JP3641935B2 - Document detection device - Google Patents

Document detection device Download PDF

Info

Publication number
JP3641935B2
JP3641935B2 JP13018298A JP13018298A JP3641935B2 JP 3641935 B2 JP3641935 B2 JP 3641935B2 JP 13018298 A JP13018298 A JP 13018298A JP 13018298 A JP13018298 A JP 13018298A JP 3641935 B2 JP3641935 B2 JP 3641935B2
Authority
JP
Japan
Prior art keywords
document
unit
inclination
edge
image data
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
JP13018298A
Other languages
Japanese (ja)
Other versions
JPH11331547A (en
Inventor
創 廣田
和弘 上田
信広 三縞
大雪 遠山
Original Assignee
ミノルタ株式会社
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 ミノルタ株式会社 filed Critical ミノルタ株式会社
Priority to JP13018298A priority Critical patent/JP3641935B2/en
Publication of JPH11331547A publication Critical patent/JPH11331547A/en
Application granted granted Critical
Publication of JP3641935B2 publication Critical patent/JP3641935B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Control Or Security For Electrophotography (AREA)
  • Facsimiles In General (AREA)
  • Facsimile Scanning Arrangements (AREA)
  • Editing Of Facsimile Originals (AREA)

Description

【0001】
【発明の属する技術分野】
この発明は、原稿検出装置に関するものであり、特に、画像データに基づいて原稿の載置位置や画像領域を検出する原稿検出装置に関するものである。
【0002】
【従来の技術】
デジタル複写機などのデジタル画像形成装置は、デジタル画像データの画像処理の後に、用紙上に画像を形成する。画素ごとのデジタル画像データは、原稿台に載置された原稿の画像をCCD等の読取手段により読み取って生成される。
原稿の載置位置や画像領域は、デジタル画像データに基づいて検出できる。そこで、原稿が傾いて置かれた場合に、デジタル画像データから原稿の4頂点を検出し、これから傾きを求めて、原稿が傾いて置かれた場合にも自動的に傾きを補正することが知られている。
【0003】
【発明が解決しようとする課題】
原稿の傾き補正において、本発明者らは、原稿のエッジデータよりすべての頂点(エッジ変化点)を求め、それらの各頂点を結ぶ線分より原稿の傾き及び原稿領域を算出し、これに基づいて原稿データの傾きを補正することを提案している。しかし、原稿の傾きの補正をするか否かにかかわらず常に傾き補正処理をすると、たとえばほとんど原稿が傾いていない場合のように傾き補正をする必要がなくても処理時間が不必要に長くなってしまうという問題があった。また、オペレータが故意に原稿を斜めにおいた場合などのように、原稿を置いたとおりに複写した場合も、傾き補正をしてしまうという問題があった。
【0004】
本発明の目的は、必要な場合にのみ原稿の傾きの補正をする原稿検出装置を提供することである。
【0005】
【課題を解決するための手段】
本発明に係る第1の原稿検出装置は、原稿台に載置された原稿を読み取り、原稿の画像データを出力する原稿読取手段と、傾き補正モードを手動で設定するモード設定手段と、原稿の傾きと原稿領域を検出する第1の原稿検出手段と、第1の原稿検出手段により検出された原稿の傾きに基づいて原稿読み取り手段により読み取られた画像データを補正する傾き補正手段と、原稿領域のみを検出する第2の原稿検出手段と、前記モード設定手段の設定に基づいて、第1の原稿検出手段と第2の原稿検出手段を切り替える切り替え手段とを備える。傾き補正モードが設定されているときは、第1の原稿検出手段を用いて、原稿の傾きを検出して画像データを補正する。傾き補正モードが設定されていないときは、第2の原稿検出手段を用いて、原稿の傾きを求めずに、原稿を検出し、高速に処理する。
本発明に係る第2の原稿検出装置は、原稿台に載置された原稿を読み取り、原稿の画像データを出力する原稿読取手段と、高速モードを手動で設定するモード設定手段と、原稿の傾きと原稿領域を検出する第1の原稿検出手段と、第1の原稿検出手段により検出された原稿の傾きに基づいて原稿読み取り手段により読み取られた画像データを補正する傾き補正手段と、原稿領域のみを検出する第2の原稿検出手段と、前記モード設定手段により高速モードが設定されたか否かに基づいて、第1の原稿検出手段と第2の原稿検出手段を切り替える原稿検出手段切り替え手段とを備える。高速モードが設定されているときは、第2の原稿検出手段を用いて、原稿の傾きを求めずに、原稿領域を検出するので、検出が高速におこなえる。高速モードが設定されていないときは、第1の原稿検出手段を用いて、原稿の傾きを検出して原稿データを補正する。
本発明に係る第3の原稿検出装置は、原稿台に載置された原稿を読み取り、原稿の画像データを出力する原稿読取手段と、原稿を原稿台に自動的に載置する原稿搬送部と、原稿の傾きと原稿領域を検出する第1の原稿検出手段と、第1の原稿検出手段により検出された原稿の傾きに基づいて原稿読み取り手段により読み取られた画像データを補正する傾き補正手段と、原稿領域のみを検出する第2の原稿検出手段と、原稿搬送部が使用されたか否かに基づいて、第1の原稿検出手段と第2の原稿検出手段を切り替える原稿検出手段切り替え手段とを備える。原稿搬送部は、複数の原稿を扱うことが多いので、第2の原稿検出手段を用いることにより処理時間を短縮する。
好ましくは、上述の第1の原稿検出手段は、画像データから得たエッジアドレスから各頂点を検出し、次に、検出された各頂点に基づいて傾き角度を求め、次に、求められた傾き角度に基づいて原稿領域を検出し、第2の原稿検出手段は、エッジアドレスから原稿領域を検出する。
また、好ましくは、上述の第1の原稿検出手段は、画像データから得たエッジアドレスから各頂点を検出し、次に、検出された各頂点に基づいて傾き角度を求め、次に、求められた傾き角度に基づいて原稿領域を検出するが、上述の第2の原稿検出手段は、原稿台に載置された原稿のサイズを検出するセンサを備え、センサの出力から原稿領域を検出する。センサを用いた原稿サイズ検出は、画像データからの原稿サイズ検出より短時間におこなえるので、原稿検出時間がさらに効率的におこなえる。
【0006】
【発明の実施の形態】
以下、本発明の実施の形態を、添付の図面を参照して説明する。なお、これらの図面において、同じ参照番号は同一または同様なものを表す。
まず、図1は、本発明の実施形態に係るデジタル複写機の全体構成を示す。複写機は、原稿を読み取って画像信号に変換する走査系10、走査系10から送られる画像信号を処理する画像処理ユニット20、画像処理ユニット20から入力される画像データをそのままプリンタ装置に出力するか、または画像データを処理してからプリンタ装置に出力するか等の制御を行う回転メモリユニット30、回転メモリユニット30から出力される画像データに基づいて半導体レーザー61を駆動する印字処理ユニット40、半導体レーザー61からのレーザー光を感光体ドラム71上の露光位置に導くレーザー光学系、露光による潜像を現像し、記録紙上に転写し、定着して画像を形成する作像系、複写紙を供給し排出する用紙搬送系、複写機本体の上面に設けられた操作パネル90(図示しない)、原稿を搬送する原稿搬送部500から構成されている。なお、画像読取部100は、走査系10及び画像処理ユニット20などによって、また、プリンタ部200は、印字処理部40、レーザー光学系60及び作像系などによって、それぞれ構成される。
【0007】
原稿搬送部500は、画像読取部100のプラテンガラス19上に、開閉可能に取り付けられる。原稿搬送部500は、給紙トレイ510上にセットされた原稿を自動的にプラテンガラス19上に搬送し、また、走査系10によって読取られた原稿を排紙トレイ511に排出する。通常モードにおいては、1枚または複数枚の原稿を、読み取るべき面を上に向けて給紙トレイ510にセットし、サイド規制板513を原稿の幅に合せる。そして、エンプティセンサ(図示しない)により原稿の有無が検知される。搬送動作が開始されると、トレイ511上の最下部の原稿から順に給紙ローラ501によって用紙が搬送され、捌きローラ502と捌きパッド503によって捌かれて、1枚づつ給紙される。搬送される原稿は中間ローラ504を通り、レジストセンサ551及び幅サイズセンサ553により原稿が検出された後、レジストローラ505によって斜行を補正される。その後、原稿は、レジストローラ505と搬送ベルト506により、プラテンガラス19上を搬送され、原稿の先端が原稿スケール512に突き当たった直後に、搬送ベルト506及びレジストローラ505は停止する。これにより、原稿の左端は原稿スケール512の端縁に当接し、原稿はプラテンガラス19上の正確な位置に設定される。このとき、次の原稿の先端はレジストローラ505に達しており、次の原稿の搬送時間を短縮するようになっている。
【0008】
原稿がプラテンガラス19上の正確な読み取り位置に設定されると、走査系10による原稿の読み取り走査が行われる。原稿の読み取りが終了すると、まず、原稿スケール512が、図示しないソレノイドによってプラテンガラス19の上面の高さよりも下方に押し下げられる。その後、原稿は搬送ベルト506により左方に搬送され、反転ローラ507で搬送方向が変更され、切換爪508の上方を通過して排紙トレイ511上に排出される。
【0009】
ここで、ステップ送りモードが選択されている場合において、原稿サイズが露光基準位置からレジストローラ505のニップ位置までの半分以下のサイズである時、先の原稿を露光基準位置で停止させると共に、次の原稿を露光基準位置とレジストローラ505の中間位置まで搬送しておき、更に次の原稿(3枚目)を先端がレジストローラ505に当接するまで先出し給紙が行なわれる。そうすることにより、原稿は露光基準位置とレジストローラ間の距離の半分ずつステップ送りされるために、原稿交換時間が短くて済み、露光終了後に走査系10がホームポジションへリターンする時間内に原稿を交換でき、コピー生産性が向上する。しかも、後続の原稿(3枚目)はその先端がレジストローラ505に当接するまで先出して給紙される。この先出し給紙は先の原稿の露光中に行なわれ、コピー生産性の向上に寄与する。
【0010】
なお、両面原稿の場合は、第1面の読み取りが終了すると搬送ベルト506により左方に搬送され、反転ローラ507で搬送方向が変更された後、切換爪508により再びプラテンガラス19上に送り出され、原稿も第2面が読み取り位置に設定される。第2面の読み取りが終了した原稿は、搬送ベルト506により左方に搬送され、反転ローラ507、切換爪508、排出ローラ509を経て排紙トレイ511上に排出される。
更に、ステップ送りモード、両面モード等のモードが選択された場合は、通常の場合と違い、原稿の先端が原稿スケール512の右端に突き当たる直前で、搬送ベルト506の搬送は停止し、原稿スケール512から少し離れた位置に原稿が設定される。
【0011】
また、搬送ベルト506のプラテンガラス19側の面は、橙色に着色されている。これにより、露光ランプ12の光の原稿搬送ベルト506による反射光が、ラインセンサ17にとっては分光感度が小さい色になる。即ち、ラインセンサ17にとって、搬送ベルト506が黒色であるのと同じである。従って、原稿の地肌は通常白色であるので、搬送ベルト506を閉じた状態においても、ラインセンサ17は原稿と搬送ベルト506の下面とを識別することができる。また、原稿搬送部500を閉じない状態であっても、露光ランプ12による搬送ベルト506の反射光がラインセンサ17に届かないので、原稿領域が識別可能である。
【0012】
画像読取部100は、プラテンガラス19上に載置された原稿の画像を読み取り、その原稿の画像の各画素に対応する画像データを生成する。原稿読み取り部100において、露光ランプ12及び第1ミラー13aを有する第1スキャナ11と第2、第3ミラー13b、13cを有する第2スキャナ14とは、スキャンモータM2の駆動により矢印b、b'方向(副走査方向)に移動される。露光ランプ12の光はプラテンガラス19上の原稿によって反射され、ミラー13a、13b、13c、レンズ15を介してラインセンサ17に照射される。ラインセンサ17は図1の紙面に直交する方向(主走査方向)に多数の光電変換素子(CCD)を配列したものであり、400DPIで画像を読み取り、各画素に対応する画像データを出力する。また、上述のように第1スキャナ14が矢印b、b'方向に移動することにより、ラインセンサ17は原稿画像を副走査方向に走査することができる。スキャナ11、14が矢印b方向に移動した時のラインセンサ17による画像の走査が予備走査であり、この時ラインセンサ17から出力される画像データに基づいて、原稿台上の原稿の位置が検出される。一方、スキャナ11、14が矢印b'方向に移動した時のラインセンサ17による画像の走査が本走査であり、この時ラインセンサ17から出力される画像データに基づいて、原稿画像の複写が行われる。
ラインセンサ17から出力された画像データは、画像処理ユニット20にて処理された後、回転メモリユニット30へ送信される。回転メモリユニット30は、画像処理ユニット20から受信した画像データを一旦記憶し、回転編集処理後に、または、直接に、プリント部200へ送信する。
【0013】
次に、プリント部200を説明する。プリント部200において、印字処理ユニット40は、回転処理メモリ部30から受信した画像データに基づいてレーザ光学系を制御する。レーザ光学系は、印字処理ユニット40によって変調(オン、オフ)制御されるレーザビームを放射する半導体レーザー61と、この半導体レーザー61から放射されたレーザービームを感光体ドラム71上で走査させるためのポリコンミラー62、fθレンズ63およびミラー64a、64bを備える。
矢印c方向に回転駆動される感光体ドラム71の周囲には、その回転方向(矢印c方向)に沿って、帯電チャージャ72、現像器73、転写チャージャ74、分離チャージャ75、クリーナ76、イレーサランプ77が配置されており、周知の電子写真プロセスによってトナー画像を形成し、用紙上に転写する。用紙は、給紙カセット81a、81bから給紙ローラ82a,82bによって供給され、用紙搬送通路83、タイミングローラ84によって転写チャージャ74の方へ送り込まれる。転写チャージャ74の位置でトナー像が転写された用紙は、搬送ベルト85、定着器86、排出ローラ87を介して、排紙トレイ88上へ排出される。
【0014】
次に、図2は、デジタル複写機を制御する制御系の全体ブロック図を示す。画像読取部100の制御部102、回転メモリユニット30の制御部300、プリンタ200の制御部202、原稿搬送部500の制御部520から構成され、全体制御部400と通信ラインで接続されている。全体制御部400は、各制御部102、300、202、520とのデータのやり取りを行うと同時に、操作パネル90も制御する。
図3は、操作パネル90を示す。操作パネル90は、傾き補正モードを設定する傾き補正モードキー99と、傾き補正モードであることを表示する表示部99aが設けられる。さらに、操作パネル90は、通常の複写機におけるように、液晶タッチパネル91、原稿のページ番号順や複写枚数などの置数や複写倍率などを入力するテンキー92、置数等を標準値「1」に戻すクリアキー93、複写機内部に設定された設定値を標準値に戻すパネルリセットキー94、コピー動作を中止させるストップキー95、コピー動作を開始させるスタートキー96が設けられている。さらに、コピーモードとしてコピー片面モード、片面2in1モード、片面4in1モードのいずれか1つを選択設定するコピーモード設定キー97、原稿モードとして原稿片面モード、原稿両面モードのいずれか1つを選択設定する原稿モード設定キー98、選択設定されたコピーモードがコピー片面モードであることを表示する表示部97a、片面2in1モードであることを表示する表示部97b、片面4in1モードであることを表示する表示部97c、選択設定された原稿モードが原稿片面モードであることを表示する表示部98a、原稿両面モードであることを表示する表示部98b等が設けられる。また、 液晶タッチパネル91は、露光レベル、複写倍率、記録紙サイズなどの複写機の動作状態、ジャムの発生などの複写機の各種の異常状態、その他の情報を表示すると共に、濃度、複写倍率、記録紙等の自動選択モードを指定する入力ができる。
【0015】
次に、回転メモリユニット30における画像の回転を説明する。図4は、回転メモリユニット30の制御部300の画像データ入出力インターフェースの構成を示し、図5は、画像読取制御部102から回転メモリユニット制御部300へのタイミングシーケンスを示し、図6は、回転メモリユニット制御部300からプリンタ制御部202へのタイミングシーケンスを示す。
図4に示すように、画像データ入出力インターフェースは、画像読取制御部102から、信号VD_IR、HD_IR、SYNCK_IR、VIDEO0-7_IRを受信する。図5は、画像読取制御部102より転送される画像データのシーケンスである。ここで、VD_IR信号は、ページデータ出力を示し、低レベルの間にアクティブとなる。HD_IR信号は、ラインデータ出力を示し、低レベルの間にアクティブとなる。VD_IR、HD_IRともにアクティブであるとき、SYNCK_IR信号に同期して有効画像データVIDEO0-7_IRが転送される。ここでは、1画素8ビットの多値データとする。
【0016】
図4に示すように、画像データ入出力インターフェースは、プリンタ制御部202へ、信号IDREQ、VD_PR、LSYNC、HD_PR、SYNCK_PR、VIDEO0-7_PRを受信する。図6は、プリンタ制御部202へ転送される画像データのシーケンスである。ここに、IDREQ信号は、プリンタからのページデータ転送スタート信号を示し、LSYNCは、プリンタからの1ライン開始基準信号であり、これらに同期して回転メモリユニット30から画像信号を転送する。VD_PRは、低レベルでページデータ出力アクティブを示し、HD_PR信号は、低レベルでラインデータ出力アクティブとなる。VD_PR、HD_PRともにアクティブであるとき、SYNCK_PR信号に同期して有効画像データVIDEO0-7_PRが転送される。
【0017】
図7は、回転メモリユニット制御部300のブロック図を示す。画像読取部100より転送された画像データは、バッファである入力ページメモリ302へ格納されるとともに、原稿エッジ検出部304へ入力される。これより原稿エッジの座標データが座標データ発生部306にて発生され、得られた座標データが順にスタックメモリ308に書き込まれる。入力ページメモリ302は、2次元座標で管理され、格納された画像データは、スタックメモリ308内の原稿エッジデータを元に回転処理部310にて編集され、出力ページメモリ312へ転送される。なお、編集処理のためのデータの入出力、コマンド設定などは、全体制御部400からの信号に基づいてCPU314により行われる。また、出力ページメモリ312も2次元座標にて管理されており、プリントアウト時に内部画像データが順次出力される。
【0018】
図8は、原稿エッジ検出回路304を示す。画像読取部100より送られる画像データVIDEO0-7_IRを、原稿の地肌の濃度と原稿搬送ベルト506、またはプラテンガラス19上に何もない状態の濃度とを比較する比較器320に入力する。画像データVIDEO0-7_IR(1画素8ビットの多値データ)は、ラインデータが出力されているとき(HD_IRがアクティブ)、SYNCK_IR信号に同期して転送される。それぞれの画像データに対し、マージンを考慮したリファレンスデータrefと比較することにより、確実に原稿の有無を判定し、2値のデータに変換する。次段のシフトレジスタ322では、8画素単位での処理をしてノイズを除去する。シフトレジスタ322の出力信号は、ANDゲート324及びNANDゲート326に入力され、両ゲート324、326の出力は、次にJ−Kフリップフロップ328のJ入力とK入力に入力される。J−Kフリップフロップ328の出力信号は、ANDゲート320の負論理入力と、もう1つのANDゲート322に入力される。このJ−Kフリップフロップ328の出力信号は、Dフリップフロップ334にも入力される。Dフリップフロップ334の出力信号は、ANDゲート320と、もう1つのANDゲート322の負論理入力に入力される。負論理ANDゲート336には、HD_IR信号とSYNCK_IR信号が入力され、その出力信号は、シフトレジスタ320、J−Kフリップフロップ328及びDフリップフロップ334のT端子に供給される。この終段の構成より、ANDゲート330、332は、それぞれ、原稿の無→有のエッジ(+EDGE)、原稿の有→無のエッジ(−EDGE)を検出し、1ショットパルスを出力する。
【0019】
図9は、座標データ発生回路306を示す。カウンタ340に、HD_IR(CLK端子)とVD_IR(CLEAR端子)を入力することにより、副走査側のX座標を発生する。同様に、SYNCK_IR(CLK端子)とHD_IR(CLEAR端子)を入力したカウンタ342より、主走査側のY座標を発生する。ラッチ344において、+EDGEでのY座標を一旦ラッチし、加算器346で16減算し、−EDGEでのX及びY座標データと共にスタックメモリ308に格納する。書き込みアドレスは、CLKカウンタ348において−EDGEにより順次更新され、VD_IRにより初期化される。
【0020】
図10は、回転処理部310のブロック図を示し、図11は、その動作を説明するための図である。画像の回転処理には、アフィン変換処理を用いている。これは、座標間の幾何学的変換手法で次式で表される。
【数1】

Figure 0003641935
アフィン変換部350は、式(1)によりx−y座標系のデータ(画像)をu−v座標系に変換するものであり、画像の平行移動、拡大、縮小、回転などを行うものである。本実施形態では、平行移動及び回転のみの処理を行う。図10に示すアフィン変換部350では、4点座標による矩形領域を設定することにより、入力ページメモリ302内の回転処理対象領域を指定し(図11の左側参照)、さらに、編集原点座標(Uo,Vo)、回転処理するための座標の原点(x,y)及び回転角度θを指定して、回転処理を行う(図11の中央参照)。次に、編集処理としてはu−v座標に対して回転ずみの画像領域の原点(回転座標)を割り付ける(Uo,Vo)(図11の右側参照)。式で表すと次のようになる。
【0021】
【数2】
Figure 0003641935
また、回転及び編集の後の領域のmax座標(Umax,Vmax)が出力される。アフィン変換で得られた座標(u,v)は、整数とはならないのが普通であるため、出力濃度値f(u,v)を原画像の濃度データf(Xn,Yn)を用いて補間する必要がある。濃度補間処理部351は、この補間を行なう。補間の手法としては、最近傍法、線形補間法、3次元スプライン補間法などが提案されているが、ここでは詳細な説明を省略する。濃度補間処理部351で補完されたデータは、出力ページメモリ312へ送られ2次元の座標軸(u−v座標)に従って格納される。データは、プリントタイミングに従い、ライン単位で出力される。
【0022】
図12に、出力ページメモリ312を示し、図13に、その動作説明のための図を示す。出力ページメモリ312ヘデータが格納された後、画像の不要な部分のイレース処理をすることができる。方法としては、2点のイレース領域座標(Uerase0,Verase0)、(Uerase1,Verase1)を設定することにより、それを対角線とする座標軸に平行な矩形領域が白データに変換される(図13の左側参照)。また、ペーパーサイズ座標(Upaper,Vpaper)を設定することにより、ペーパーサイズが、原点座標とペーパーサイズ座標の2点を対角線とする矩形領域がデータ出力領域となる(図13の右側参照)。ここで、V軸が主走査方向、U軸が副走査方向となる。出力ページメモリ312に出力イネーブル信号を入力することにより、信号VIDEOが出力される。
【0023】
次に、以上に述べたシステムを用いた原稿検出について説明する。このシステムでは、見出し等がついた原稿や矩形以外の原稿でも、原稿の傾きや原稿領域を精度よく誤検出を少なく決定できる。プラテンガラスに載置された原稿が読み取られるが、図14において、斜線部で表す画像読取領域(プラテンガラス19)以外の領域(白い部分)が原稿を表す。この例では、原稿は傾いて置かれている。画像読取部100において、スキャナ11が図15に示すX軸(副走査)方向へ移動しながらCCDセンサ17により画像がライン単位で検出される(図15の破線位置)。ただし、スキャナ11による実際の読み取りにおいては、図15に示したような、X方向のサンプリングピッチが均等である理想的状態ではなく、図16に示すように、スキャナ11のピッチむらにより、副走査方向のサンプリングピッチがばらつくのが通常である。これは、サンプリングが、図8、図9に示すようにハードウエア回路のタイミング信号(SYNCK_IR)により、すなわち、一定時間間隔で処理されるためである。しかし、画像読取部100におけるスキャナ11の動作は、副走査方向への振動(ピッチむら)を伴うため、理想的なサンプリングピッチ位置ではサンプリングがされない。したがって、原稿(のエッジ)は、このサンプリングピッチのばらつきの影響がないように検出することが望ましい。
【0024】
読み取りデータに基づく編集処理は回転メモリユニット部30において行われる。CCDセンサ17からのデータは、図5に示すシーケンスに従いライン単位で送信され、回転メモリユニット30内の入力ページメモリ302へ格納される。同時に原稿エッジ検出部304により原稿エッジを検出する。図15、図16において、白点部が黒から白へ変化するエッジ(+EDGE)、黒点部が白から黒へ変化するエッジ(−EDGE)を示す。これら2つの座標データがペアでスタックメモリ308へ順番に書込まれることになる。スタックメモリ308内には、ライン番号Xn、+EDGEのカウント値YWm、−EDGEのカウント値YBmがセットで格納されており、格納された順番にピックアップされ処理される。
【0025】
その後、CPU314は、図17に示すように、スタックメモリ308内に格納された座標データより、各原稿エッジの座標データ間の傾きの変化を検出し、傾きの変化する点(エッジ変化点)を求め、それらエッジ変化点を結ぶ線分を抽出する(図16では、線分a、b、d、c)。図18において、小さな丸がエッジ変化点を示し、太い線が検出された線分を示す。スタックメモリ内に格納された座標データより、各原稿エッジの座標データの間の傾きの変化を検出し、検出された変化点を結ぶ線分が抽出される。そして、抽出された線分の中で、X方向(副走査方向)に対して45゜以下の線分(図18の例では線分520a、520c、520e、520g)が選択される。X方向(副走査方向)に対して45゜以下の線分を選択することにより、副走査方向の読み取りピッチがばらついても、正確な傾きが検出できる。好ましくは、抽出された線分の中で、X方向(副走査方向)に対して45゜以下の線分で、かつ、一番長い線分(図18の例では線分520a)が選択される。これにより、矩形でない原稿でも、原稿領域設定の基となる最適の原稿辺が選択される。または、好ましくは、抽出された線分の中で、X方向(副走査方向)に対して45゜以下の線分で、かつ、直交する線分を有する線分(図18の例では線分520a)が選択される。これにより、原稿領域の誤検出が避けられる。
【0026】
ここで、抽出された線分の中で副走査方向に対して所定角度(ここでは45゜)以下の線分を選択する理由は以下のとおりである。1ライン上の原稿のエッジは2点で検出されるので、副走査方向に対して45゜を越える(主走査方向に対して45°以下の)角度を持つ辺におけるエッジの検出は、図15と図16に示されるように、非常に粗くなる。したがって、上述のサンプリングピッチのばらつきの影響が非常にでやすい状態である。逆に、副走査方向にほぼ平行な辺のサンプリングにおいては、多少理想的な位置からずれても、検出されるエッジのアドレスの変化量は非常に小さい。そこで、所定角度以下か否かにより異なった取り扱いをし、副走査方向に対して所定角度以下の線分を選択する。
【0027】
ここで、45゜は、主走査方向に平行か副走査方向に平行かを切り分けるしきい値であり、これにより、ある直線(辺)の角度(傾き)が直交する2直線(主走査方向と副走査方向)に対してどちらに近いかを切り分ける。通常の原稿は長方形であるので、各辺は互いに直交している。原稿が副走査方向に対して45゜傾くと、すべての辺が副走査方向に対して45゜の角度を持つ。原稿の1辺が副走査方向に対して45゜の角度を持つと、すべての辺が副走査方向に対して45゜の角度を持つ。また、副走査方向に対して45゜を越える角度を持つ辺は、主走査方向に対して45゜以下の角度を持つ辺である。また、その辺に隣合う辺は、副走査方向に対して45゜以下の角度を持つ辺であり、その辺に対向する辺は、副走査方向に対して45゜を越える角度を持つ辺である。したがって、副走査方向にほぼ平行な辺を注目する場合は、副走査方向に対して45゜以下の角度を持つ辺を探せばよい。
【0028】
こうして選択された線分を基に、原稿の傾きが決定される。また、検出された全頂点を含む原稿領域を定義するための4点の座標(図中の大きな丸)を決定する。また、一番長い線分の傾きより、原稿の傾き方向及び回転角度を検出する。図19は、X1−Xmin<Y1−Yminの場合の原稿の位置を示し、図20は、この原稿の回転角度の設定を示す。回転は、(X1,Ymin)を原点とし、回転角度θは−tan-1{(Y1−Ymin)/(Xmin−X1)}である。また、図21は、X1−Xmin>Y1−Yminの場合の原稿の位置を示し、図22は、この原稿の回転角度の設定を示す。回転は、(Xmin,Y1)を原点とし、回転角度θは−tan-1{(Ymax−Y1)/(X2−Xmin)}である。
以上の結果により、回転処理部310において回転処理と平行移動のための各設定が行われ、その設定に基づいて回転処理および平行移動処理が行われる。そして、得られた画像データが出力ページメモリ312に記憶される。この画像データに基づいて画像形成部200において画像形成がおこなわれる。
【0029】
次に、画像形成の動作の詳細を、図23〜図34のフローチャートに従って説明する。なお、エッジ変化点の検出による各線分の抽出および原稿領域の大きさ、傾き角度、ずれ量の算出は、画像読取制御部102の制御の下で、画像信号処理部20により行われ、任意角回転を含む編集処理は、回転メモリユニット30にて行われ、パラメータの設定などは、メモリユニット制御部300によりなされる。ここでは説明の簡単のため、1つの流れの全体フローで制御を説明している。
図23は、本システムの全体フローチャートを示す。まず、初期化を行い(ステップS11)、操作パネル90からの各種スイッチ類の入力信号の制御処理(ステップS12、図24、図25参照)、原稿搬送装置500による原稿の搬送処理(ステップS13)、原稿読取部100による画像入力処理(ステップS14)を行う。そして、画像データの入力が終了したか否かを判定し(ステップS15)、終了した場合は、原稿の排紙処理を行う(ステップS16)。次に、傾き補正モードか否かを判定する(ステップS17)。傾き補正モードでない場合は、原稿領域検出処理(ステップS18,図33参照)で原稿領域を検出し、スルーモード用の編集処理(ステップS19、図34参照)で編集を実行し、次に、画像データ出力処理を行い(ステップS23、図32参照)、ステップS12に戻る。ステップS17の判定で、傾き補正モードである場台は、原稿頂点検出処理(ステップS20、図26〜図28参照)、領域アドレス設定処理(ステップS21、図29〜図30参照)および編集処理を行い(ステップS22、図31参照)、画像データ出力処理を行って(ステップS23、図32参照)、ステップS12に戻る。
【0030】
図24と図25は、入力信号処理(図23、ステップS12)の詳細を示すフローチャートである。まず、原稿モードの選択設定状態を原稿モード設定キー98のオンエッジ(オフレベルからオンレベルになったこと)で判定し(ステップS101)、オンエッジの場合は原稿片面モードの選択を示す表示部98aの点灯状態を判定する(ステップS102)。点灯の場合は表示部98aを消灯し、原稿両面モードの選択を示す表示部98bを点灯し、原稿両面モードを設定する(ステップS103)。ステップS102の判定で表示部98aが消灯の場合は、表示部98bは点灯状態であるので、表示部98bを消灯し、原稿片面モードの選択を示す表示部98aを点灯し、原稿片面モードを設定する(ステップS104)。次に、コピーモードの選択設定状態をコピーモード設定キー97のオンエッジで判定し(ステップS105)、オンエッジの場合はコピー片面モードの選択を示す表示部97aの点灯状態を判定する(ステップS106)。点灯の場合は表示部97aを消灯し、片面2in1モードの選択を示す表示部97bを点灯し、片面2in1モードを設定する(ステップS107)。ステップS108の判定で表示部97aが消灯の場合は、表示部97bの点灯状態を判定する(ステップS108)。点灯の場合は表示部97bを消灯し、片面4in1モードの選択を示す表示部97cを点灯し、片面4in1モードを設定する(ステップS109)。ステップS110の判定で表示部97bが消灯の場合は、表示部97cは点灯状態であるので、表示部97cを消灯し、コピー片面モードの選択を示す表示部97aを点灯し、コピー片面モードを設定する(ステップS110)。
【0031】
次に、傾き補正モードの選択設定状態を傾き補正モード設定キー99のオンエッジで判定し(ステップS111)、オンエッジの場合は傾き補正モードの選択を示す表示部99aの点灯状態を判定する(ステップS112)。点灯の場合は表示部99aを消灯し、傾き補正モードを解除する(ステップS113)。ステップS112の判定で表示部99aが消灯の場合は、傾き補正モードの選択を示す表示部99aを点灯し、傾き補正モードを設定する(ステップS114)。次に、複写開始を指示する操作パネル上のスタートキー96が押されたか否かをスタートキー96のオンエッジで判定し(ステップS119)、オンエッジの場合は、原稿搬送部500のエンプティセンサ(図示しない)がオフか否かを判定し(ステップS120)、オフの場合は、スキャンスタート要求を出力する(ステップS121)。ステップS120の判定でエンプティセンサ554がオフでない場合は、原稿搬送装置(ADF)500の給紙トレイ510に原稿がセットされている状態であるので、ADFスタート要求を出力する(ステップS122)。
【0032】
図26〜図28は、原稿のエッジアドレスの変化による頂点の検出処理を行う原稿頂点検出(図23、ステップS20)のフローチャートである。まず、+EDGE座標と−EDGE座標でペアになっていた座標データを分解する(ステップS301)。
(Xn,YWm,YBm)→ edge_first_adr(Xn)、edge_last_adr(Xn)
ここに、edge_first_adr(Xn)はXnラインの+EDGE座標であり、edge_last_adr(Xn)はXnラインの−EDGE座標である。
【0033】
次に、エッジ未検出ラインを抽出する。まず、変数及びフラグを初期化する(ステップS302)。そして、x=1のラインからチェックを開始する。注目する1ラインにおける先端エッジアドレスedge_first_adr(x)及び後端エッジアドレスedge_last_adr(x)が、共にε1以上かどうかを判定する(ステップS303)。なお、ε1の値は、原稿スケールの位置のY方向のアドレスが適当である。edge_first_adr(x)とedge_last_adr(x)の両方がε1よりも大きい場合は、原稿のエッジを検出したと判断し、ステップS306へ進む。各エッジアドレスのいずれかが、ε1よりも小さい場合には、エッジ未検出のラインであると判断し、次に、原稿の先端を検出しているかどうかのフラグであるflg_doc_topをチェックする(ステップS304)。原稿の先端を検出していない場合(ステップS304でNO)は、注目ラインの各エッジアドレスが両方ともε1より大きくなるまで、xをインクリメントしつつ(ステップS305)、ステップS303〜S304の処理を繰り返す。原稿の先端を検出している場合には、原稿頂点検出終了と判断し、処理を終了する。
【0034】
次に、 原稿先端の処理を説明する。まず、原稿の先端を検出しているかどうかのフラグであるflg_doc_topをチェックする(ステップS306)。原稿の先端を検出していない場合(ステップS306でNO)は、上記エッジ未検出ラインの処理において、チェックされていないx−1ラインの各エッジアドレスが、共にε1よりも大きいかどうか判定し(ステップS307)、共にε1よりも大きければx−1ラインの値を各エッジアドレスの線分検出の始点として、以下の値を各頂点用の配列point_f、point_lに格納する(ステップS308)。
【数3】
Figure 0003641935
いずれかがεlよりも小さければ、xラインの値を各エッジアドレスの線分検出の始点として、以下の値を各頂点用の配列point_f、point_lに格納する(ステップS309)。
【数4】
Figure 0003641935
そして、原稿先端検出フラグflg_doc_topに1をセットし(ステップS310)、ステップS311に進む。原稿の先端を検出している場合(ステップS306でYES)は、ただちにステップS311に進む。
【0035】
次に、傾きの変化の検出(線分(頂点)の検出)を説明する。まず、以下の式(5)の通り、注目ラインの前後の連続する3ラインの各ラインにおける先端エッジアドレスedge_first_adr(x−1)〜edge_first_adr(x+1)及び後端エッジアドレスedge_last_adr(x−1)〜edge_last_adr(x+1)の注目ライン(x)との差の絶対値を算出する(ステップS311)。
【数5】
Figure 0003641935
次に、以下の式(6)の通り、注目ラインの前後の連続する3ラインの各ライン間の傾きの差の絶対値を算出する(ステップS312)。
【数6】
Figure 0003641935
【0036】
次に、ステップS311で算出された先端エッジアドレスの差の絶対値cline_f(x−1)、cline_f(x+1)が、共にε2よりも小さいかどうかを判定する(ステップS313)。なお、ε2の値は2mm程度が適当である。cline_f(x−1)、cline_l(x+1)の内のいずれかがε2よりも大きい場合(ステップS313でNO)は、主走査方向とほぼ平行な線分であると判断し、ただちに後端エッジのためのステップS317に進む。また、cline_f(x−1)、cline_f(x+1)の両方がε2よりも小さい場合(ステップS313でYES)は、各先端エッジアドレスは、急激なエッジアドレスの変化がないので、原稿の主走査方向とほぼ平行な辺ではないと判断し、ステップS314へ進む。そして、同じ線分上にあるかないかを判断するために、上記ステップS312で算出された先端エッジアドレスの傾きの差の絶対値sub_fが、ε3よりも小さいかどうかを判定する(ステップS314)。なお、ε3の値は8ドット程度が適当である。sub_fがε3よりも大きい場合(ステップS314でNO)は、先端エッジアドレスの傾きの変化があったと判断し、頂点の設定処理(ステップS315)へ進み、注目ラインのライン数xと、注目ラインの先端エッジアドレスedge_first_adr(x)を先端エッジ頂点用の配列point_fに格納し、先端エッジの頂点のカウンタをインクリメントする(ステップS316)。そして、ステップS317へ進む。また、sub_fがε3よりも小さい場合(ステップS314でYES)は、後端エッジアドレスの傾きは、急激な変化がないので、原稿の辺の頂点ではないと判断し、ただちにステップS317へ進む。
【0037】
同様に、ステップS317では、ステップS311で算出された後端エッジアドレスの差cline_l(x−1)、cline_l(x+1)が、共にε2よりも小さいかどうかを判定する。cline_l(x−1)、cline_l(x+1)の内のいずれかがε2よりも大きい場合(ステップS316でNO)は、主走査方向とほぼ平行な線分であると判断し、ただちにステップS321へ進む。また、cline_l(x−1)、cline_l(x+1)の両方がε2よりも小さい場合(ステップS316でYES)は、各後端エッジアドレスは、急激なエッジアドレスの変化がないので、原稿の主走査方向とほぼ平行な辺ではないと判断し、ステップS318へ進み、同じ線分上にあるかないかを判断するために、ステップS312で算出された後端エッジアドレスの傾きの差の絶対値sub_lが、ε3よりも小さいかどうかを判定する。sub_lがε3よりも大きい場合(ステップS318でNO)は、後端エッジアドレスの傾きの変化があったと判断し、頂点の設定処理(ステップS319)へ進む。そして、注目ラインのライン数xと、注目ラインの後端エッジアドレスedge_last_adr(x)を後端エッジ頂点用の配列point_lに格納し(ステップS319)、後端エッジの頂点のカウンタをインクリメントする(ステップS320)。また、sub_lがε3よりも小さい場合(ステップS318でYES)は、後端エッジアドレスの傾きは、急激な変化がないので、原稿の辺の頂点ではないと判断し、ただちにステップS320へ進む。ステップS320では、注目ラインxをインクリメントし、ステップS303以降の処理を繰り返す。
【0038】
図29〜図30は、原稿頂点検出の処理(図23、ステップS20)により検出された各頂点より原稿の領域を定義付けするための4点座標の設定処理を行う領域アドレス設定処理(図23、ステップS21)のフローチャートである。
まず、各頂点間の距離の算出(線分の長さの算出)をする。はじめに、隣り合う各頂点間の距離を算出する(ステップS330)。ここでは、各頂点間の距離を比較することを目的とするため、下記の通り、x,y方向のそれぞれの差の2乗の和を算出する。また、隣り合う頂点とは、先端エッジの最初の頂点(point_f[0][0],point_f[0][1])と、後端エッジの最初の頂点(point_l[0][0],point_l[0][1])及び先端エッジの最後の頂点(point_f[0][0],point_f[0][1])と、後端エッジの最後の頂点(point_l[0][0],point_l[0][1])とを含む各先端エッジ及び後端エッジの隣り合う頂点とする。
【数7】
Figure 0003641935
【0039】
次に、各項点間の距離を比較し、一番長い距離の2頂点(x1,y1)、(x2,y2)を選択する(ステップS331)。さらに、選択された2頂点を通る直線の方程式を下記の式に従って算出する(ステップS332)。
【数8】
Y=(y2−y1)/(x2−x1)*X−(x12−x21)/(x2−x1) (8)
ここに、傾きは(y2−y1)/(x2−x1) であり、y切片は−(x12−x21)/(x2−x1) である。求まった傾きとy切片をline[point_count][0]とline[point_count][1]に格納する。
【0040】
次に、求められた各線分の直線の方程式(傾きとy切片)より、副走査方向に対して45゜以下の線分か否かによってグループ分けを行う(ステップS332)。ここで、傾き(line[point_count][0])が "1”の場合が45゜の線分であり、副走査方向がY方向にあたるため、傾きが "1”以上の線分(line[point_count][0]>1)を抽出することにより、副走査方向に対して45゜以下の線分であると判定できる。次に、グループ化された副走査方向に対して45゜以下の線分のうち、最も長い線分を抽出する(ステップS333)。
次に、その線分の有効性を高めるために、その線分にほぼ直交する線分が存在するか否かをチェックし(ステップS334)、存在しなければ、今回抽出した線分を、副走査方向に対して45゜以下の線分のグループから削除し(ステップS335)、ステップS333に戻り、処理を繰り返す。その線分にほぼ直交する線分が存在すれば(ステップS334でYES)、その線分の傾きline[point_count][0]を原稿の傾きdoc_clineとする(ステップS336)。
【0041】
次に、原稿の領域を決定するために、ステップS336で算出された直線に直交する直線で、且つ、原稿頂点検出処理により検出された頂点を通る直線をすべて算出する(ステップS337)。直交する直線の方程式は、下記のようになり、この方程式のX及びYに各項点の座標を代入し、y切片であるbを求めることになる。
【数9】
Y=−1/doc_cline*X−b (9)
そして、上述のように算出された各頂点を通る直線のy切片であるbの内、最大値Vbmaxと最小値Vbminを算出する(ステップS338)。
また、ステップS336で算出された直線に平行な直線で、且つ、原稿頂点検出処理により検出された頂点を通る直線をすべて算出する(ステップS339)。平行な直線の方程式は、下記のようになり、この方程式のX及びYに各頂点の座標を代入し、y切片であるbを求めることになる。
【数10】
Y=doc_cline*X−b (10)
そして、ステップS339により算出された各頂点を通る平行な直線のy切片であるbの内、最大値Hbmaxと最小値Hbminを算出する(ステップS340)。
【0042】
以上の処理により、原稿領域を取り囲む以下の4直線の方程式が算出されたことになる。直交する直線は次のとおりである。
【数11】
Y=−1/doc_cline*X−Vbmax (11)
Y=−1/doc_cline*X−Vbmin (12)
また、 平行な直線は次のとおりである。
【数12】
Y=doc_cline*X−Hbmax (13)
Y=doc_cline*X−Hbmin (14)
そこで、y切片が最大値及び最小値である上記の平行な直線及び直交する直線のそれぞれの交点を算出することにより、原稿領域としての4点の座標を決定する(ステップS341)。
次に,決定された4点の座標から、X座標の最小のものと最大のもの、Y座標の最小のものと最大のものを抽出し、それぞれ(Xmin,Y1)、(Xmax,Y2)、(X1,Ymin)、(X2,Ymax)と定義付ける(ステップS341〜S345)。こうして、原稿領域が検出される。
【0043】
図31は、編集処理(図23、ステップS22)のフローチャートである。ここでは、図10と図11で説明した回転処理部310に対するCPUのデータ及びコマンド設定の実際の処理内容となる。まず、領域アドレス設定処理(図23、ステップS21)で抽出された4点の座標を、変換領域座標として設定する(ステップS401)。次に、特定の2つの座標間距離を比較することにより、原稿の傾き方向を判断し、回転座標変換及び回転角度の設定を行う。ここでは、図19〜図22に示すルールに従って設定を行う。
【0044】
1−Xmin>Y1−Yminの場合(ステップS402でYES)、回転座標(x,y)の原点は、(Xmin,Y1)、回転角度θは、tan-1((Ymax−Y1)/(X2−Xmin))(回転方向は反時計回り方向)とする(ステップS403、S404)。また、X1−Xmin≦Y1−Yminの場合(ステップS402でNO)、回転座標(x,y)の原点は、(X1,Ymin)、回転角度θは、−tan-1((Y1−Ymin)/(Xmin−X1))(回転方向は時計回り方向)とする(ステップS405、S406)。以上の条件に従うことにより、小さい補正角度(45°以下)で補正の基準となる辺の位置と基準座標の位置が統一される。その後、編集原点座標(u0,v0)を設定し(ステップS407)、準備ができたら(ステップS408)、上述の設定を基に回転処理を実行する(ステップS409)。
【0045】
図32は、画像データ出力(図23、ステップS23)のフローチャートである。まず、ペーパーサイズの座標(Upaper,Vpaper)を設定する(ステップS501)。次に、イレースする必要のある領域があるか否かを判定し(ステップS502)、イレースする必要のある領域がある場合は、イレース領域座標の2点(Uerase0,Verase0),(Uerase1,Verase1)を設定する(ステップS503)。その後、イレース設定が終了したかを判定し(ステップS504)、終了していなければステップS503に戻る。イレース設定が終了し、準備ができたら(ステップS505でYES)、出力をイネーブルとし、プリンタへのデータ転送を許可する(ステップS506)。
【0046】
図33は、傾き補正モードでない場合に実行される、原稿のエッジアドレスによる原稿領域検出処理(図23、ステップS18)のフローチャートである。まず+エッジ座標と−エッジ座標で対となっていたXnラインのデータ(Xn,YWm,YBm)を、edge_first_adr(Xn)とedge_last_adr(Xn)に分解する(ステップS601)。
次に、エッジ未検出ラインを抽出する。まず、変数X,Xmax,Ymaxとカウンタend_countを初期化する(ステップS602)。次に、注目する1ラインにおける先端エッジアドレス(edge_first_adr(X))及び後端エッジアドレス(edge_last_adr(X))が共にε1以上であるか否かを判定する(ステップS603)。なお、ε1の値は原稿スケールの位置のY方向のアドレスが適当である。先端エッジアドレスedge_first_adr(X)及び後端エッジアドレスedge_last_adr(X)の両方がε1よりも大きい場合は、原稿のエッジを検出したと判断し、ステップS607に進む。先端エッジアドレスedge_first_adr(X)及び後端エッジアドレスedge_last_adr(X)の少なくとも1つがε1よりも小さい場合は、エッジ未検出のラインであると判断し、次に、原稿検出終了用のカウンタedge_countをインクリメントし(ステップS604)、そのインクリメントした値がε4よりも大きいか否かであるを判定する(ステップS605)。もし大きければ原稿検出を終了し、小さければ、Xの値をインクリメントして(ステップS606)、ステップS603に戻る。
【0047】
原稿のエッジを検出したと判断した場合は(ステップS603であるとYES)、次に、後端エッジアドレスedge_last_adr(X)がYmaxより大きいか否かを判断し(ステップS607)、大きい場合は、Y方向の最大値Ymaxとして、Xラインの値edge_last_adr(X)の値を格納し(ステップS608)、次に、X方向の最大値としてXの値を格納する(ステップS609)。後端エッジアドレスedge_last_adr(X)がYmax以下である場合は、Y方向の最大値Ymaxを変えずに、X方向の最大値としてXの値を格納する(ステップS609)。次に、原稿検出用カウンタend_countをクリアし(ステップS610)、Xの値をインクリメントして(ステップS606)、ステップS603に戻る。
このように、edge_countがε4以上になるまで処理を繰り返すことにより、原稿領域のX方向とY方向の最大値XmaxとYmaxを求めることができる。ここで求められる原稿領域は、原稿を含む原点からの最小矩形領域である。なお、ε4の値が小さすぎると、基準位置より離して原稿を載せた場合に検出ができなかったり、原稿に原稿搬送ベルトと同じ色の帯パターンがある場合、誤検出して実際の原稿サイズより小さく判定してしまうことがある。また反対に、ε4の値が大きすぎると、処理時間が長くなってしまう。実際には20〜30mmが適当である。
【0048】
図34は、傾き補正モードでない場合に実行されるスルーモード用編集処理(図23、ステップS19)のフローチャートである。まず、最大サイズの4点の座標を、変換領域座標として設定する(ステップS701)。そして、回転座標は、原画像原点とし(ステップS702)、回転角度は0°(ステップS703)、編集原点座標(u0,v0)は、(α,β)(ステップS704)として設定する。準備ができたら(ステップS705)、上記の設定を基に回転処理を実行する(ステップS706)。
【0049】
なお、本実施形態では、傾きを採用する線分の有効性を高める処理として、直交する線分が存在するか否かを調べているが、さらに、直交する線分の長さも調べ、直交する線分が存在する副走査方向に対して45度以下の線分のうち、直交する線分が一番長い線分の傾きを採用するようにすれば、さらに有効性の高い傾きを検出できる。
【0050】
次に、本発明の第2の実施の形態の複写機について説明する。以下では、第1の実施の形態の複写機と異なる部分についてのみ説明する。この複写機では、原稿の種類などに応じて、上記の画像データから原稿サイズを検出する方法と、固定センサにより原稿サイズを検出する方法を使い分ける。固定センサを用いることにより原稿検出時間がさらに短縮できる。固定センサとしては、発光素子と受光素子とからなる反射型フォトセンサや発光素子と位置検出素子からなる距離センサなどがある。以下では、固定センサとして距離センサを用いる例について説明する。
【0051】
図35と図36は、距離センサユニット21を示す。各センサユニット21は、2個の発光素子(LED)22、23と1個の位置検出素子(PSD)24を内蔵する。LED22により照明される位置とLED23により照明される位置との2カ所を1つのセンサユニットで検出できる。LED22、23は、LED駆動回路(図示しない)に入力されるLED信号の状態に応じていずれかの一方が発光する。被測定物までの距離はPSD24上での検知位置により検出される。PSD24のアナログ検出信号は、信号処理回路にてデジタル信号に変換された後、クロック信号に同期して出力される。各センサユニット21では、LED22、23から発せられた光が原稿に対して斜めに照射されるように設置されており、PSD24は原稿から乱反射光を検出する。
【0052】
次に、複数のセンサユニット21の配置について説明する。図37は、原稿読み取り領域におけるセンサユニット21の配置を示す。5個のセンサユニット21(FD1,FD2,FD3,CD1,CD2)が複数の定型原稿サイズを検出できるように配置される。図38は、5個のセンサ21の8個の出力(1〜8)と11種の定型サイズ(A3縦、B4縦、A4縦、B5縦、A4横、B5横、A5縦、11*17、リーガル、レター縦、レター横)との対応関係を示す。なお、センサユニット(FD3、CD2)はオプションである。図38において、「〇」は原稿が検出されたことを示し、「×」は、原稿が検出されなかったことを示す。図18に示すように、センサ出力から原稿のサイズが決定できる。
【0053】
図39は、この実施の形態の複写機の制御回路のブロック図である。原稿サイズ検出部1410は、第1CPU1412とEEPROM1414を有する。第1CPU1412は、複数のセンサユニット21から入力される距離情報をEEPROM1414内に記憶されたしきい値と比較し、原稿の有無を判断する。第1CPU1412は、あらかじめ図38に示されるテーブルを格納しており、このテーブルと原稿有無情報とを対照して、原稿サイズを判別する。さらに、第1CPU1412は、判別した原稿サイズに応じて原稿サイズコードを生成し、本体を制御する第2CPU1400に転送する。
上述の固定センサを用いた原稿検出は、検出アルゴリズムが簡略であるため、画像データからの原稿サイズ検出より短時間でおこなえる。そのため、固定センサを併用することにより、複写機の操作性を向上させることができる。
【0054】
図40は、固定センサを併用する本実施形態の第2CPUによる全体制御のフローチャートを示す。まず、初期化を行い(ステップS1011)、操作パネル90からの各種スイッチ類の入力信号の制御処理(ステップS1012)、原稿搬送装置500による原稿の搬送処理(ステップS1013)を行う。次に、傾き補正モードか否かを判定する(ステップS1014)。
ユーザーが傾き補正モードを選択しない場合は、原稿の頂点データは、必ずしも必要でないため、固定センサにより原稿サイズを検出する(S1051)。このようにすれば、傾き補正をしない場合に、自動的に複写に要する時間が短縮される。次に、原稿読取部100により画像データを入力する(ステップS1052)。入力が終了すると(ステップS1053でYES)、原稿を排紙し(ステップS1054)、ステップS1021に進み、画像データを出力し、プリント部200において紙上に画像を形成する。
【0055】
傾き補正モードである場合は、原稿読取部100による画像入力処理(ステップS1015)を行う。そして、画像データの入力が終了したか否かを判定し(ステップS1016)、終了した場合は、原稿の排紙処理を行う(ステップS1017)。次に、画像データに基づいて、原稿頂点検出処理(ステップS1018)、領域アドレス設定処理(ステップS1019)および編集処理を行う(ステップS1020)。これにより、画像データより原稿の傾きを検出し、画像データを補正する。原稿頂点検出処理、領域アドレス設定処理及び編集処理が第1実施形態の場合と同じ処理であるので、説明を省略する。そして、ステップS1021に進み、画像データ出力処理を行って、ステップS1012に戻る。この傾き補正モードでの処理は、第1の実施の形態の場合と同じである。
【0056】
図41は、高速モードを設定できる固定センサを併用する第3の実施形態のフローチャートを示す。本実施形態でも、原稿領域検出に固定センサを併用する。操作パネル90'には、図42に示すように、高速モードを設定するためのボタン99'を設ける。ユーザーは、高速モードを選択できる。初期設定では、高速モードを設定しない。高速モードが選択されていない場合は(ステップS1014'でNO)、原稿サイズ検出及び傾き検出処理をおこなう(ステップS1018〜S1020)。高速モードが選択された場合は(ステップS1014'でYES)、傾き補正処理を行わずに、固定センサにより原稿サイズを検出し(ステップS1051)、検出された原稿のサイズに対応した複写動作を行う。傾き補正は行われないので、複写に要する処理時間が短縮され、高速な複写動作が可能になる。
【0057】
図43は、原稿搬送部500の使用により原稿検出方法を切り換える固定センサを併用する第4の変形実施形態のフローチャートを示す。本実施形態でも、固定センサを併用する。ここで、原稿搬送部500を使用する/しないによって固定センサを使用する/しないを切り換える(ステップS1014")。原稿搬送部500を使う場合(ステップS1014"でYES)、定型(矩形)の原稿を扱うことが多いため、固定センサによる原稿サイズ検出を行う(ステップS1051)。その後、この原稿サイズに基づいて画像データを入力する(ステップS1052〜S1053)。原稿搬送部500を使う場合、複数枚の原稿を扱う場合が多いため、こうすることにより複写時間を大幅に短縮できる。原稿搬送部500を使わずに(ステップS1014"でNO)原稿をプラテンガラス19上に手置きする場合、非定型原稿を扱う場合もあるため、画像データを入力し(ステップS1015〜S1016)、画像データによる原稿サイズ検出および傾き検出をおこなう(ステップS1018〜S1020)。この場合、ユーザーは、原稿を置く位置を必ずしも基準点やスケールに正確に合わせて置く必要がないため、ユーザーの負担を軽減できる。
【0058】
また、図44は、その場合の入力処理(ステップS1012')のフローチャートである。この入力処理は、第1の実施形態における入力処理(図24〜図25)と同様であるが、ステップS111〜S114の処理は不要なので省かれている。
なお、固定センサを併用する他の例として、原稿が定型が非定型であるかをユーザーが操作パネルで設定し、定型なら固定センサにより原稿サイズを検出し、非定型なら画像データにより原稿サイズを検出してもよい。
【0059】
【発明の効果】
この発明によれば、読み取られた原稿の傾きの補正をする必要がない場合には、原稿検出方法を切り替えて傾きを検出することなく原稿を検出できるようにしたので、むだな処理時間を短縮できる。
また、傾き補正モードの設定、高速モードの設定、原稿搬送部の使用などにより、傾き補正処理を行うか行わないかを切り替えることができ、原稿検出を高速で行える。
また、好ましくは固定センサを用いた原稿領域検出を併用するので、処理時間をさらに短縮できる。
【図面の簡単な説明】
【図1】複写機の内部構成の概略を示す正面図。
【図2】制御系の全体ブロックを示すブロック図。
【図3】操作パネルの構成を示す平面図。
【図4】回転メモリユニット制御部の画像入出力インターフェースの構成を示すブロック図。
【図5】画像読取制御部より転送される画像データのシーケンスを示す図。
【図6】画像形成制御部へ転送する画像データのシーケンスを示す図。
【図7】回転メモリユニット制御部のブロック図。
【図8】原稿エッジ検出回路の回路図。
【図9】座標データ発生回路の回路図。
【図10】回転処理部のブロック図。
【図11】回転処理部の動作を説明する図。
【図12】出力ページメモリ部のブロック図。
【図13】出力ページメモリ部の動作を説明する図。
【図14】プラテンガラス上にセットされた原稿を示す図。
【図15】原稿を読み取る様子を説明する図。
【図16】原稿読み取りのサンプリングピッチがばらつく場合において、原稿を読み取る様子を説明する図。
【図17】エッジの変化点及び線分を説明する図。
【図18】原稿領域設定を説明する図。
【図19】原稿の傾き方向を説明する図。
【図20】回転角度の設定を説明する図。
【図21】原稿の傾き方向を説明する図。
【図22】回転角度の設定を説明する図。
【図23】複写機制御のフローチャート。
【図24】入力処理の一部のフローチャート。
【図25】入力処理の一部のフローチャート。
【図26】原稿頂点検出の一部のフローチャート。
【図27】原稿頂点検出の一部のフローチャート。
【図28】原稿頂点検出の一部のフローチャート。
【図29】領域アドレス設定処理の一部のフローチャート。
【図30】領域アドレス設定処理の一部のフローチャート。
【図31】編集処理のフローチャート。
【図32】画像データ出力のフローチャート。
【図33】原稿領域検出のフローチャート。
【図34】スルーモードでの編集処理のフローチャート。
【図35】距離センサの断面図。
【図36】距離センサの平面図。
【図37】距離センサによる定型原稿の検出を示す図。
【図38】原稿サイズ検出のテーブル。
【図39】第2の実施形態における複写機の制御系のブロック図。
【図40】第2の実施形態における複写機制御のフローチャート。
【図41】第3の実施形態における複写機制御のフローチャート。
【図42】操作パネルの変形例の図。
【図43】第4の実施形態における複写機制御のフローチャート。
【図44】入力処理のフローチャート。
【符号の説明】
10 走査系、 20 画像信号処理部、 21 センサユニット、 30 回転メモリユニット部、 40 印字処理部、 60 レーザー光学系、 70作像系、 500 原稿搬送部、 302 入力ページメモリ、 304 原稿エッジ検出部、 308 スタックメモリ、 310 回転処理部、 312出力ページメモリ、 314 CPU。[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a document detection apparatus, and more particularly to a document detection apparatus that detects a document placement position and an image area based on image data.
[0002]
[Prior art]
A digital image forming apparatus such as a digital copying machine forms an image on paper after image processing of digital image data. Digital image data for each pixel is generated by reading an image of a document placed on a document table by a reading unit such as a CCD.
The document placement position and image area can be detected based on the digital image data. Therefore, it is known that when the original is placed at an inclination, the four vertices of the original are detected from the digital image data, and the inclination is obtained from this, and the inclination is automatically corrected even when the original is placed at an inclination. It has been.
[0003]
[Problems to be solved by the invention]
In correcting the inclination of the document, the present inventors obtain all the vertices (edge change points) from the edge data of the document, calculate the document inclination and the document area from the line segment connecting these vertices, and based on this It is proposed to correct the skew of the original data. However, if the inclination correction process is always performed regardless of whether or not the document is corrected, the processing time becomes unnecessarily long even if it is not necessary to correct the inclination as in the case where the document is hardly inclined. There was a problem that. In addition, when the operator intentionally places the document at an angle and copies the document as it is placed, there is a problem that the inclination is corrected.
[0004]
SUMMARY OF THE INVENTION An object of the present invention is to provide an original detection apparatus that corrects an inclination of an original only when necessary.
[0005]
[Means for Solving the Problems]
A first document detection apparatus according to the present invention includes a document reading unit that reads a document placed on a document table and outputs image data of the document, a mode setting unit that manually sets an inclination correction mode, A first document detecting unit for detecting a tilt and a document region; a tilt correcting unit for correcting image data read by the document reading unit based on a document tilt detected by the first document detecting unit; and a document region Second document detection means for detecting only the first document detection means and switching means for switching between the first document detection means and the second document detection means based on the setting of the mode setting means. When the tilt correction mode is set, the first document detection unit is used to detect the tilt of the document and correct the image data. When the inclination correction mode is not set, the second original detection unit is used to detect the original without obtaining the original inclination and process it at high speed.
A second document detection apparatus according to the present invention includes a document reading unit that reads a document placed on a document table and outputs image data of the document, a mode setting unit that manually sets a high-speed mode, and a tilt of the document. A first document detecting means for detecting the document area, a tilt correcting means for correcting the image data read by the document reading means based on the tilt of the document detected by the first document detecting means, and only the document area A second document detecting means for detecting the document, and a document detecting means switching means for switching between the first document detecting means and the second document detecting means based on whether or not the high speed mode is set by the mode setting means. Prepare. When the high-speed mode is set, the second document detection means is used to detect the document area without obtaining the document tilt, so that the detection can be performed at high speed. When the high-speed mode is not set, the document data is corrected by detecting the inclination of the document using the first document detection means.
A third document detection apparatus according to the present invention includes a document reading unit that reads a document placed on a document table and outputs image data of the document, and a document transport unit that automatically places the document on the document table. A first document detecting unit for detecting a document tilt and a document region; a tilt correcting unit for correcting image data read by the document reading unit based on the document tilt detected by the first document detecting unit; A second document detection means for detecting only the document area, and a document detection means switching means for switching between the first document detection means and the second document detection means based on whether or not the document transport section is used. Prepare. Since the document feeder often handles a plurality of documents, the processing time is shortened by using the second document detection means.
Preferably, the first document detection unit described above detects each vertex from the edge address obtained from the image data, then obtains an inclination angle based on each detected vertex, and then obtains the obtained inclination The document area is detected based on the angle, and the second document detection means detects the document area from the edge address.
Preferably, the first document detection unit described above detects each vertex from the edge address obtained from the image data, then obtains an inclination angle based on each detected vertex, and then obtains the inclination angle. The document area is detected based on the tilt angle. The second document detection unit described above includes a sensor that detects the size of the document placed on the document table, and detects the document area from the output of the sensor. Since document size detection using a sensor can be performed in a shorter time than document size detection from image data, document detection time can be performed more efficiently.
[0006]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, embodiments of the present invention will be described with reference to the accompanying drawings. In these drawings, the same reference numerals denote the same or similar elements.
FIG. 1 shows the overall configuration of a digital copying machine according to an embodiment of the present invention. The copying machine scans a document and converts it into an image signal, an image processing unit 20 that processes an image signal sent from the scanning system 10, and outputs image data input from the image processing unit 20 to the printer as it is. A rotation memory unit 30 that controls whether image data is processed and then output to the printer device, a print processing unit 40 that drives the semiconductor laser 61 based on the image data output from the rotation memory unit 30, A laser optical system that guides laser light from the semiconductor laser 61 to an exposure position on the photosensitive drum 71, an image forming system that develops a latent image by exposure, transfers it to a recording paper, and fixes it to form an image; A paper transport system for supplying and discharging, an operation panel 90 (not shown) provided on the upper surface of the copier body, and a document transport for transporting a document And a section 500. The image reading unit 100 includes the scanning system 10 and the image processing unit 20, and the printer unit 200 includes the print processing unit 40, the laser optical system 60, the image forming system, and the like.
[0007]
The document conveyance unit 500 is attached to the platen glass 19 of the image reading unit 100 so as to be opened and closed. The document transport unit 500 automatically transports the document set on the paper feed tray 510 onto the platen glass 19 and discharges the document read by the scanning system 10 to the paper discharge tray 511. In the normal mode, one or more originals are set on the paper feed tray 510 with the surface to be read facing up, and the side regulating plate 513 is adjusted to the width of the originals. An empty sensor (not shown) detects the presence or absence of a document. When the conveying operation is started, the sheets are conveyed in order from the lowermost document on the tray 511 by the sheet feeding roller 501, and are fed by the separating roller 502 and the separating pad 503 to be fed one by one. The conveyed document passes through the intermediate roller 504, and the skew is corrected by the registration roller 505 after the document is detected by the registration sensor 551 and the width size sensor 553. Thereafter, the document is conveyed on the platen glass 19 by the registration roller 505 and the conveyance belt 506, and immediately after the leading edge of the document hits the document scale 512, the conveyance belt 506 and the registration roller 505 are stopped. As a result, the left end of the document comes into contact with the edge of the document scale 512, and the document is set at an accurate position on the platen glass 19. At this time, the leading edge of the next document reaches the registration roller 505, and the time for transporting the next document is shortened.
[0008]
When the original is set at an accurate reading position on the platen glass 19, the original is read and scanned by the scanning system 10. When the reading of the original is finished, first, the original scale 512 is pushed down below the height of the upper surface of the platen glass 19 by a solenoid (not shown). Thereafter, the document is conveyed leftward by the conveyance belt 506, the conveyance direction is changed by the reverse roller 507, passes over the switching claw 508, and is discharged onto the sheet discharge tray 511.
[0009]
Here, when the step feed mode is selected, when the document size is half or less from the exposure reference position to the nip position of the registration roller 505, the previous document is stopped at the exposure reference position and the next This document is conveyed to an intermediate position between the exposure reference position and the registration roller 505, and the next document (the third sheet) is fed in advance until the leading edge contacts the registration roller 505. By doing so, since the original is stepped by half the distance between the exposure reference position and the registration roller, the original replacement time can be shortened, and the original is within the time when the scanning system 10 returns to the home position after the exposure is completed. Can be exchanged, improving copy productivity. In addition, the succeeding document (third sheet) is fed out in advance until the leading edge thereof contacts the registration roller 505. This first-out feeding is performed during the exposure of the previous document, and contributes to the improvement of copy productivity.
[0010]
In the case of a double-sided document, when reading of the first surface is completed, the document is conveyed leftward by the conveying belt 506, changed in the conveying direction by the reverse roller 507, and then sent again onto the platen glass 19 by the switching claw 508. The second side of the document is also set as the reading position. The document whose second surface has been read is transported to the left by the transport belt 506, and is discharged onto the paper discharge tray 511 through the reverse roller 507, the switching claw 508, and the discharge roller 509.
Further, when a mode such as the step feed mode or the duplex mode is selected, unlike the normal case, the conveyance of the conveyance belt 506 stops immediately before the leading edge of the document hits the right end of the document scale 512, and the document scale 512 is stopped. The document is set at a position slightly away from the.
[0011]
Further, the surface of the transport belt 506 on the side of the platen glass 19 is colored orange. As a result, the light reflected from the original conveying belt 506 of the light from the exposure lamp 12 becomes a color with low spectral sensitivity for the line sensor 17. That is, for the line sensor 17, the conveyance belt 506 is the same as black. Therefore, since the background of the document is usually white, the line sensor 17 can distinguish between the document and the lower surface of the transport belt 506 even when the transport belt 506 is closed. Even when the document conveying section 500 is not closed, the reflected light from the conveying belt 506 by the exposure lamp 12 does not reach the line sensor 17, and the document area can be identified.
[0012]
The image reading unit 100 reads an image of a document placed on the platen glass 19 and generates image data corresponding to each pixel of the image of the document. In the document reading section 100, the first scanner 11 having the exposure lamp 12 and the first mirror 13a and the second scanner 14 having the second and third mirrors 13b and 13c are driven by the arrows b and b ′ by driving the scan motor M2. Is moved in the direction (sub-scanning direction). The light from the exposure lamp 12 is reflected by the original on the platen glass 19 and is applied to the line sensor 17 through the mirrors 13a, 13b, 13c and the lens 15. The line sensor 17 has a large number of photoelectric conversion elements (CCDs) arranged in a direction (main scanning direction) orthogonal to the paper surface of FIG. 1, reads an image with 400 DPI, and outputs image data corresponding to each pixel. Further, as described above, the first scanner 14 moves in the directions of arrows b and b ′, so that the line sensor 17 can scan the document image in the sub-scanning direction. The scanning of the image by the line sensor 17 when the scanners 11 and 14 move in the direction of the arrow b is preliminary scanning, and the position of the document on the document table is detected based on the image data output from the line sensor 17 at this time. Is done. On the other hand, the scanning of the image by the line sensor 17 when the scanners 11 and 14 are moved in the direction of the arrow b ′ is the main scanning. Is called.
The image data output from the line sensor 17 is processed by the image processing unit 20 and then transmitted to the rotating memory unit 30. The rotation memory unit 30 temporarily stores the image data received from the image processing unit 20 and transmits the image data to the printing unit 200 after the rotation editing process or directly.
[0013]
Next, the print unit 200 will be described. In the print unit 200, the print processing unit 40 controls the laser optical system based on the image data received from the rotation processing memory unit 30. The laser optical system emits a semiconductor laser 61 that emits a laser beam that is modulated (on / off) by the print processing unit 40, and scans the laser beam emitted from the semiconductor laser 61 on the photosensitive drum 71. A polycon mirror 62, an fθ lens 63, and mirrors 64a and 64b are provided.
Around the photosensitive drum 71 that is rotationally driven in the direction of the arrow c, the charging charger 72, the developing device 73, the transfer charger 74, the separation charger 75, the cleaner 76, and the eraser lamp are arranged along the rotational direction (the direction of the arrow c). 77 is arranged, and a toner image is formed by a well-known electrophotographic process and transferred onto a sheet. The paper is supplied from the paper feed cassettes 81 a and 81 b by the paper feed rollers 82 a and 82 b, and is sent toward the transfer charger 74 by the paper transport path 83 and the timing roller 84. The paper on which the toner image has been transferred at the position of the transfer charger 74 is discharged onto the paper discharge tray 88 via the transport belt 85, the fixing device 86, and the discharge roller 87.
[0014]
Next, FIG. 2 shows an overall block diagram of a control system for controlling the digital copying machine. The control unit 102 of the image reading unit 100, the control unit 300 of the rotary memory unit 30, the control unit 202 of the printer 200, and the control unit 520 of the document conveying unit 500 are connected to the overall control unit 400 via a communication line. The overall control unit 400 exchanges data with the control units 102, 300, 202, and 520, and simultaneously controls the operation panel 90.
FIG. 3 shows the operation panel 90. The operation panel 90 is provided with a tilt correction mode key 99 for setting the tilt correction mode and a display unit 99a for displaying that the tilt correction mode is set. Further, the operation panel 90 has a standard value “1” for the liquid crystal touch panel 91, the numeric keypad 92 for inputting the number of copies such as the order of the page number of the original, the number of copies, the copy magnification, and the like, as in a normal copying machine. A clear key 93 for returning to the default value, a panel reset key 94 for returning the set value set in the copying machine to the standard value, a stop key 95 for stopping the copy operation, and a start key 96 for starting the copy operation are provided. Further, a copy mode setting key 97 for selecting and setting any one of a copy single-sided mode, a single-sided 2 in 1 mode, and a single-sided 4 in 1 mode as a copy mode, and selecting and setting any one of a document single-sided mode and a document double-sided mode as a document mode. Document mode setting key 98, a display portion 97a for displaying that the selected copy mode is the copy one-side mode, a display portion 97b for displaying the one-side 2-in-1 mode, and a display portion for displaying the single-side 4-in-1 mode. 97c, a display unit 98a that displays that the selected document mode is the document single-sided mode, a display unit 98b that displays that the document double-sided mode is provided, and the like. The liquid crystal touch panel 91 displays the copying machine operating status such as exposure level, copying magnification and recording paper size, various abnormal states of the copying machine such as occurrence of jam, and other information, as well as the density, copying magnification, An input for specifying an automatic selection mode for recording paper or the like can be performed.
[0015]
Next, image rotation in the rotation memory unit 30 will be described. 4 shows the configuration of the image data input / output interface of the control unit 300 of the rotating memory unit 30, FIG. 5 shows the timing sequence from the image reading control unit 102 to the rotating memory unit control unit 300, and FIG. A timing sequence from the rotating memory unit control unit 300 to the printer control unit 202 is shown.
As shown in FIG. 4, the image data input / output interface receives signals VD_IR, HD_IR, SYNCK_IR, VIDEO from the image reading control unit 102. 0-7 _IR is received. FIG. 5 is a sequence of image data transferred from the image reading control unit 102. Here, the VD_IR signal indicates page data output and becomes active during a low level. The HD_IR signal indicates line data output and becomes active during a low level. When both VD_IR and HD_IR are active, the effective image data VIDEO is synchronized with the SYNCK_IR signal. 0-7 _IR is transferred. Here, multi-value data of 8 bits per pixel is assumed.
[0016]
As shown in FIG. 4, the image data input / output interface sends signals IDREQ, VD_PR, LSYNC, HD_PR, SYNCK_PR, VIDEO to the printer control unit 202. 0-7 _PR is received. FIG. 6 is a sequence of image data transferred to the printer control unit 202. Here, the IDREQ signal indicates a page data transfer start signal from the printer, and LSYNC is a one-line start reference signal from the printer, and an image signal is transferred from the rotary memory unit 30 in synchronization with these signals. VD_PR indicates page data output active at a low level, and the HD_PR signal becomes line data output active at a low level. When both VD_PR and HD_PR are active, the effective image data VIDEO is synchronized with the SYNCK_PR signal. 0-7 _PR is transferred.
[0017]
FIG. 7 shows a block diagram of the rotating memory unit controller 300. The image data transferred from the image reading unit 100 is stored in the input page memory 302 serving as a buffer and is input to the document edge detection unit 304. Thus, the coordinate data of the document edge is generated by the coordinate data generation unit 306, and the obtained coordinate data is sequentially written in the stack memory 308. The input page memory 302 is managed by two-dimensional coordinates, and the stored image data is edited by the rotation processing unit 310 based on the document edge data in the stack memory 308 and transferred to the output page memory 312. Data input / output, command setting, and the like for editing processing are performed by the CPU 314 based on signals from the overall control unit 400. The output page memory 312 is also managed in two-dimensional coordinates, and internal image data is sequentially output when printing out.
[0018]
FIG. 8 shows the document edge detection circuit 304. Image data VIDEO sent from the image reading unit 100 0-7 _IR is input to the comparator 320 that compares the density of the background of the document with the density of the document conveying belt 506 or the state of nothing on the platen glass 19. Image data VIDEO 0-7 _IR (multi-value data of 8 bits per pixel) is transferred in synchronization with the SYNCK_IR signal when line data is output (HD_IR is active). Each image data is compared with reference data ref in consideration of a margin, so that the presence / absence of a document is surely determined and converted into binary data. The shift register 322 at the next stage removes noise by performing processing in units of 8 pixels. The output signal of the shift register 322 is input to the AND gate 324 and the NAND gate 326, and the outputs of both the gates 324 and 326 are then input to the J input and K input of the J-K flip-flop 328. The output signal of the JK flip-flop 328 is input to the negative logic input of the AND gate 320 and the other AND gate 322. The output signal of the JK flip-flop 328 is also input to the D flip-flop 334. The output signal of the D flip-flop 334 is input to the negative logic input of the AND gate 320 and the other AND gate 322. The HD_IR signal and the SYNCK_IR signal are input to the negative logic AND gate 336, and the output signals are supplied to the T terminals of the shift register 320, JK flip-flop 328 and D flip-flop 334. With this final configuration, the AND gates 330 and 332 detect a non-existent edge of the original (+ EDGE) and an original non-existent edge (-EDGE), respectively, and output a one-shot pulse.
[0019]
FIG. 9 shows the coordinate data generation circuit 306. By inputting HD_IR (CLK terminal) and VD_IR (CLEAR terminal) to the counter 340, the X coordinate on the sub-scanning side is generated. Similarly, the Y coordinate on the main scanning side is generated from the counter 342 to which SYNCK_IR (CLK terminal) and HD_IR (CLEAR terminal) are input. The latch 344 temporarily latches the Y coordinate at + EDGE, subtracts 16 by the adder 346, and stores it in the stack memory 308 together with the X and Y coordinate data at -EDGE. The write address is sequentially updated by -EDGE in the CLK counter 348 and initialized by VD_IR.
[0020]
FIG. 10 is a block diagram of the rotation processing unit 310, and FIG. 11 is a diagram for explaining the operation. An affine transformation process is used for the image rotation process. This is expressed by the following equation using a geometric conversion method between coordinates.
[Expression 1]
Figure 0003641935
The affine transformation unit 350 converts the data (image) in the xy coordinate system to the uv coordinate system according to the equation (1), and performs translation, enlargement, reduction, rotation, and the like of the image. . In this embodiment, only parallel movement and rotation are performed. The affine transformation unit 350 shown in FIG. 10 specifies a rotation processing target area in the input page memory 302 by setting a rectangular area with four-point coordinates (see the left side of FIG. 11), and further, edit origin coordinates (U o , V o ), The origin (x, y) of the coordinates for the rotation process and the rotation angle θ are designated to perform the rotation process (see the center of FIG. 11). Next, as editing processing, the origin (rotation coordinates) of the rotated image area is assigned to the uv coordinates (U o , V o (See the right side of FIG. 11). This is expressed as follows.
[0021]
[Expression 2]
Figure 0003641935
Also, the max coordinate (U max , V max ) Is output. Since the coordinates (u, v) obtained by the affine transformation are usually not an integer, the output density value f (u, v) is used as the density data f (X of the original image. n , Y n ) Must be used for interpolation. The density interpolation processing unit 351 performs this interpolation. As an interpolation method, a nearest neighbor method, a linear interpolation method, a three-dimensional spline interpolation method, and the like have been proposed, but detailed description thereof is omitted here. The data supplemented by the density interpolation processing unit 351 is sent to the output page memory 312 and stored according to a two-dimensional coordinate axis (uv coordinate). Data is output in line units according to the print timing.
[0022]
FIG. 12 shows the output page memory 312, and FIG. 13 shows a diagram for explaining the operation. After the data is stored in the output page memory 312, the unnecessary part of the image can be erased. As a method, two point erase area coordinates (U erase0 , V erase0 ), (U erase1 , V erase1 ) Is set, the rectangular area parallel to the coordinate axis having the diagonal line is converted into white data (see the left side of FIG. 13). Also, paper size coordinates (U paper , V paper ), A rectangular area whose paper size is a diagonal line with two points of the origin coordinate and the paper size coordinate becomes the data output area (see the right side of FIG. 13). Here, the V-axis is the main scanning direction and the U-axis is the sub-scanning direction. By inputting an output enable signal to the output page memory 312, a signal VIDEO is output.
[0023]
Next, document detection using the system described above will be described. In this system, it is possible to accurately determine the inclination of the document and the document area with few false detections even for a document with a heading or a document other than a rectangle. A document placed on the platen glass is read. In FIG. 14, a region (white portion) other than the image reading region (platen glass 19) represented by the hatched portion represents the document. In this example, the document is placed at an angle. In the image reading unit 100, the image is detected in line units by the CCD sensor 17 while the scanner 11 moves in the X-axis (sub-scan) direction shown in FIG. 15 (dashed line position in FIG. 15). However, the actual reading by the scanner 11 is not an ideal state in which the sampling pitch in the X direction is uniform as shown in FIG. 15, but the sub-scan is caused by the uneven pitch of the scanner 11 as shown in FIG. The sampling pitch in the direction usually varies. This is because sampling is processed by a hardware circuit timing signal (SYNC_IR) as shown in FIGS. 8 and 9, that is, at regular time intervals. However, since the operation of the scanner 11 in the image reading unit 100 is accompanied by vibration (uneven pitch) in the sub-scanning direction, sampling is not performed at an ideal sampling pitch position. Therefore, it is desirable to detect the document (the edge thereof) so as not to be affected by the variation of the sampling pitch.
[0024]
Editing processing based on the read data is performed in the rotating memory unit 30. Data from the CCD sensor 17 is transmitted line by line according to the sequence shown in FIG. 5 and stored in the input page memory 302 in the rotating memory unit 30. At the same time, the document edge detection unit 304 detects the document edge. In FIGS. 15 and 16, an edge where the white spot portion changes from black to white (+ EDGE) and an edge where the black spot portion changes from white to black (−EDGE) are shown. These two coordinate data are written in pairs to the stack memory 308 in order. In the stack memory 308, the line number Xn, the count value YWm of + EDGE, and the count value YBm of -EDGE are stored as a set, and are picked up and processed in the stored order.
[0025]
Thereafter, as shown in FIG. 17, the CPU 314 detects a change in inclination between the coordinate data of each document edge from the coordinate data stored in the stack memory 308, and determines a point (edge change point) where the inclination changes. The line segments connecting the edge change points are extracted (in FIG. 16, line segments a, b, d, c). In FIG. 18, a small circle indicates an edge change point and a thick line is detected. From the coordinate data stored in the stack memory, a change in inclination between the coordinate data of each document edge is detected, and a line segment connecting the detected change points is extracted. Then, among the extracted line segments, line segments of 45 ° or less with respect to the X direction (sub-scanning direction) (line segments 520a, 520c, 520e, and 520g in the example of FIG. 18) are selected. By selecting a line segment of 45 ° or less with respect to the X direction (sub scanning direction), an accurate inclination can be detected even if the reading pitch in the sub scanning direction varies. Preferably, the longest line segment (the line segment 520a in the example of FIG. 18) that is 45 ° or less with respect to the X direction (sub-scanning direction) is selected from the extracted line segments. The As a result, even for a non-rectangular document, the optimum document side that is the basis for the document region setting is selected. Or, preferably, among the extracted line segments, a line segment having a line segment of 45 ° or less with respect to the X direction (sub-scanning direction) and having an orthogonal line segment (the line segment in the example of FIG. 18). 520a) is selected. This avoids erroneous detection of the document area.
[0026]
Here, the reason why a line segment having a predetermined angle (here 45 °) or less with respect to the sub-scanning direction is selected from the extracted line segments is as follows. Since the edge of the document on one line is detected at two points, detection of an edge at a side having an angle exceeding 45 ° with respect to the sub-scanning direction (less than 45 ° with respect to the main scanning direction) is shown in FIG. And becomes very rough as shown in FIG. Therefore, the influence of the above-described variation in sampling pitch is very likely. On the other hand, in the sampling of the side substantially parallel to the sub-scanning direction, the change amount of the detected edge address is very small even if it is slightly deviated from the ideal position. Therefore, different handling is performed depending on whether or not the angle is equal to or smaller than a predetermined angle, and a line segment equal to or smaller than the predetermined angle with respect to the sub scanning direction is selected.
[0027]
Here, 45 ° is a threshold value for separating whether it is parallel to the main scanning direction or the sub-scanning direction, and thereby two straight lines (in the main scanning direction and the angle (inclination) of a certain straight line (side) are orthogonal to each other. It is determined which is closer to (sub-scanning direction). Since a normal document is rectangular, the sides are orthogonal to each other. When the document is inclined 45 ° with respect to the sub-scanning direction, all sides have an angle of 45 ° with respect to the sub-scanning direction. If one side of the document has an angle of 45 ° with respect to the sub-scanning direction, all sides have an angle of 45 ° with respect to the sub-scanning direction. A side having an angle exceeding 45 ° with respect to the sub-scanning direction is a side having an angle of 45 ° or less with respect to the main scanning direction. The side adjacent to the side is a side having an angle of 45 ° or less with respect to the sub-scanning direction, and the side facing the side is a side having an angle exceeding 45 ° with respect to the sub-scanning direction. is there. Therefore, when attention is paid to a side substantially parallel to the sub-scanning direction, a side having an angle of 45 ° or less with respect to the sub-scanning direction may be searched.
[0028]
Based on the selected line segment, the inclination of the document is determined. Also, the coordinates of four points (large circles in the figure) for defining the document area including all detected vertices are determined. Further, the inclination direction and rotation angle of the document are detected from the inclination of the longest line segment. FIG. 1 -X min <Y 1 -Y min FIG. 20 shows the setting of the rotation angle of the document. The rotation is (X 1 , Y min ) As the origin, and the rotation angle θ is −tan -1 {(Y 1 -Y min ) / (X min -X 1 )}. In addition, FIG. 1 -X min > Y 1 -Y min FIG. 22 shows the setting of the rotation angle of the document. The rotation is (X min , Y 1 ) As the origin, and the rotation angle θ is −tan -1 {(Y max -Y 1 ) / (X 2 -X min )}.
Based on the above results, each setting for the rotation process and the parallel movement is performed in the rotation processing unit 310, and the rotation process and the parallel movement process are performed based on the settings. The obtained image data is stored in the output page memory 312. Image formation is performed in the image forming unit 200 based on the image data.
[0029]
Next, details of the image forming operation will be described with reference to the flowcharts of FIGS. The extraction of each line segment by the detection of the edge change point and the calculation of the size, inclination angle, and deviation amount of the document area are performed by the image signal processing unit 20 under the control of the image reading control unit 102, and an arbitrary angle Editing processing including rotation is performed by the rotating memory unit 30, and parameter setting and the like are performed by the memory unit control unit 300. Here, for the sake of simplicity of explanation, the control is described with the entire flow of one flow.
FIG. 23 shows an overall flowchart of the present system. First, initialization is performed (step S11), input signal control processing for various switches from the operation panel 90 (see steps S12, 24, and 25), and document conveyance processing by the document conveyance device 500 (step S13). Then, image input processing (step S14) by the document reading unit 100 is performed. Then, it is determined whether or not the input of the image data has been completed (step S15). If the input has been completed, a document discharge process is performed (step S16). Next, it is determined whether or not the tilt correction mode is set (step S17). If it is not the tilt correction mode, the document area is detected by the document area detection process (step S18, see FIG. 33), the editing is executed by the edit process for the through mode (step S19, see FIG. 34), and then the image Data output processing is performed (step S23, see FIG. 32), and the process returns to step S12. In step S17, the stage in the tilt correction mode performs document vertex detection processing (step S20, see FIGS. 26 to 28), area address setting processing (step S21, see FIGS. 29 to 30), and editing processing. Perform (step S22, see FIG. 31), perform image data output processing (see step S23, FIG. 32), and return to step S12.
[0030]
24 and 25 are flowcharts showing details of the input signal processing (FIG. 23, step S12). First, the original mode selection setting state is determined by the on-edge of the original mode setting key 98 (from the off level to the on-level) (step S101), and in the case of the on-edge, the selection of the original single-side mode is displayed on the display unit 98a. The lighting state is determined (step S102). In the case of lighting, the display unit 98a is turned off, the display unit 98b indicating selection of the original duplex mode is turned on, and the original duplex mode is set (step S103). If the display unit 98a is turned off in the determination of step S102, the display unit 98b is in the lit state, so the display unit 98b is turned off, the display unit 98a indicating the selection of the original single-sided mode is turned on, and the original single-sided mode is set. (Step S104). Next, the selection setting state of the copy mode is determined by the on-edge of the copy mode setting key 97 (step S105), and in the case of the on-edge, the lighting state of the display unit 97a indicating the selection of the copy one-side mode is determined (step S106). In the case of lighting, the display unit 97a is turned off, the display unit 97b indicating selection of the single-sided 2-in-1 mode is turned on, and the single-sided 2-in-1 mode is set (step S107). If the display unit 97a is turned off in the determination in step S108, the lighting state of the display unit 97b is determined (step S108). In the case of lighting, the display unit 97b is turned off, the display unit 97c indicating selection of the single-sided 4-in-1 mode is turned on, and the single-sided 4-in-1 mode is set (step S109). If the display unit 97b is turned off in the determination of step S110, the display unit 97c is in the lit state, so the display unit 97c is turned off, the display unit 97a indicating the selection of the copy one-side mode is turned on, and the copy one-side mode is set. (Step S110).
[0031]
Next, the selection setting state of the inclination correction mode is determined by the on-edge of the inclination correction mode setting key 99 (step S111). If the edge is on-edge, the lighting state of the display unit 99a indicating the selection of the inclination correction mode is determined (step S112). ). If it is lit, the display unit 99a is turned off and the tilt correction mode is canceled (step S113). When the display unit 99a is turned off in the determination of step S112, the display unit 99a indicating the selection of the inclination correction mode is turned on and the inclination correction mode is set (step S114). Next, whether or not the start key 96 on the operation panel for instructing the start of copying has been pressed is determined based on the on-edge of the start key 96 (step S119). ) Is turned off (step S120). If it is off, a scan start request is output (step S121). If the empty sensor 554 is not turned off in the determination in step S120, since an original is set on the paper feed tray 510 of the original conveying apparatus (ADF) 500, an ADF start request is output (step S122).
[0032]
26 to 28 are flowcharts of document vertex detection (FIG. 23, step S20) in which vertex detection processing is performed by changing the edge address of the document. First, the coordinate data paired with the + EDGE coordinate and the -EDGE coordinate is decomposed (step S301).
(X n , YW m , YB m ) → edge_first_adr (X n ), Edge_last_adr (X n )
Where edge_first_adr (X n ) Is X n + EDGE coordinate of the line, edge_last_adr (X n ) Is X n This is the -EDGE coordinate of the line.
[0033]
Next, an edge undetected line is extracted. First, variables and flags are initialized (step S302). Then, the check is started from the line of x = 1. It is determined whether the leading edge address edge_first_adr (x) and the trailing edge address edge_last_adr (x) in one line of interest are both equal to or larger than ε1 (step S303). The value of ε1 is an appropriate Y-direction address of the original scale position. If both edge_first_adr (x) and edge_last_adr (x) are larger than ε1, it is determined that the edge of the document has been detected, and the process proceeds to step S306. If any of the edge addresses is smaller than ε1, it is determined that the line has not been detected as an edge, and flg_doc_top, which is a flag indicating whether the leading edge of the document is detected, is checked (step S304). ). If the leading edge of the document has not been detected (NO in step S304), the process of steps S303 to S304 is repeated while incrementing x (step S305) until both edge addresses of the target line are both greater than ε1. . If the leading edge of the document has been detected, it is determined that the document vertex detection has been completed, and the processing is terminated.
[0034]
Next, processing of the front end of the document will be described. First, flg_doc_top, which is a flag indicating whether the leading edge of the document is detected, is checked (step S306). If the leading edge of the document has not been detected (NO in step S306), it is determined whether the edge addresses of the unchecked x-1 line are both greater than ε1 in the processing of the edge undetected line ( In step S307), if both are larger than ε1, the value of the x-1 line is used as the starting point for detecting the line segment of each edge address, and the following values are stored in the array point_f and point_l for each vertex (step S308).
[Equation 3]
Figure 0003641935
If any of them is smaller than εl, the following values are stored in the array point_f and point_l for each vertex using the value of the x line as the starting point of line segment detection of each edge address (step S309).
[Expression 4]
Figure 0003641935
Then, 1 is set to the document leading edge detection flag flg_doc_top (step S310), and the process proceeds to step S311. If the leading edge of the document is detected (YES in step S306), the process immediately proceeds to step S311.
[0035]
Next, detection of a change in inclination (detection of a line segment (vertex)) will be described. First, as shown in the following equation (5), the leading edge address edge_first_adr (x−1) to edge_first_adr (x + 1) and the trailing edge address edge_last_adr (x−1) to three consecutive lines before and after the target line. The absolute value of the difference between edge_last_adr (x + 1) and the target line (x) is calculated (step S311).
[Equation 5]
Figure 0003641935
Next, as shown in the following formula (6), an absolute value of a difference in inclination between each of three consecutive lines before and after the target line is calculated (step S312).
[Formula 6]
Figure 0003641935
[0036]
Next, it is determined whether or not the absolute values cline_f (x−1) and cline_f (x + 1) of the difference between the leading edge addresses calculated in step S311 are smaller than ε2 (step S313). The value of ε2 is suitably about 2 mm. If either cline_f (x−1) or cline_l (x + 1) is greater than ε2 (NO in step S313), it is determined that the line segment is substantially parallel to the main scanning direction, and the trailing edge is immediately detected. For step S317. If both cline_f (x−1) and cline_f (x + 1) are smaller than ε2 (YES in step S313), the leading edge address does not change abruptly, and therefore the main scanning direction of the document. And the process proceeds to step S314. Then, in order to determine whether or not they are on the same line segment, it is determined whether or not the absolute value sub_f of the inclination difference of the leading edge address calculated in step S312 is smaller than ε3 (step S314). The value of ε3 is suitably about 8 dots. If sub_f is larger than ε3 (NO in step S314), it is determined that there has been a change in the inclination of the leading edge address, and the process proceeds to the vertex setting process (step S315). The tip edge address edge_first_adr (x) is stored in the tip edge vertex array point_f, and the tip edge vertex counter is incremented (step S316). Then, the process proceeds to step S317. If sub_f is smaller than ε3 (YES in step S314), the inclination of the trailing edge address does not change rapidly, so it is determined that it is not a vertex of the document side, and the process immediately proceeds to step S317.
[0037]
Similarly, in step S317, it is determined whether or not the trailing edge address differences cline_l (x−1) and cline_l (x + 1) calculated in step S311 are both smaller than ε2. If either cline_l (x−1) or cline_l (x + 1) is greater than ε2 (NO in step S316), it is determined that the line segment is substantially parallel to the main scanning direction, and the process immediately proceeds to step S321. . If both cline_l (x−1) and cline_l (x + 1) are smaller than ε2 (YES in step S316), the trailing edge address does not change abruptly, so the main scanning of the document is performed. It is determined that the sides are not substantially parallel to the direction, and the process proceeds to step S318. In order to determine whether they are on the same line segment, the absolute value sub_l of the difference in the slope of the trailing edge address calculated in step S312 is determined. , Ε3 or less is determined. If sub_l is larger than ε3 (NO in step S318), it is determined that the inclination of the trailing edge address has changed, and the process proceeds to the vertex setting process (step S319). Then, the line number x of the target line and the rear end edge address edge_last_adr (x) of the target line are stored in the rear end edge vertex array point_l (step S319), and the counter of the rear end edge vertex is incremented (step S319). S320). If sub_l is smaller than ε3 (YES in step S318), since the inclination of the trailing edge address does not change rapidly, it is determined that it is not a vertex of the side of the document, and the process immediately proceeds to step S320. In step S320, the line of interest x is incremented, and the processing after step S303 is repeated.
[0038]
29 to 30 show an area address setting process (FIG. 23) for performing a four-point coordinate setting process for defining a document area from each vertex detected by the document vertex detection process (FIG. 23, step S20). , Step S21).
First, the distance between the vertices is calculated (the length of the line segment is calculated). First, the distance between adjacent vertices is calculated (step S330). Here, in order to compare the distances between the vertices, the sum of the squares of the differences in the x and y directions is calculated as follows. The adjacent vertices are the first vertex of the leading edge (point_f [0] [0], point_f [0] [1]) and the first vertex of the trailing edge (point_l [0] [0], point_l [0] [1]) and the last vertex of the leading edge (point_f [0] [0], point_f [0] [1]) and the last vertex of the trailing edge (point_l [0] [0], point_l [0] [1]) and the adjacent vertexes of the leading edge and trailing edge.
[Expression 7]
Figure 0003641935
[0039]
Next, the distance between each term point is compared, and the two vertices (x 1 , Y 1 ), (X 2 , Y 2 ) Is selected (step S331). Further, an equation of a straight line passing through the two selected vertices is calculated according to the following equation (step S332).
[Equation 8]
Y = (y 2 -Y 1 ) / (X 2 -X 1 ) * X- (x 1 y 2 -X 2 y 1 ) / (X 2 -X 1 (8)
Where the slope is (y 2 -Y 1 ) / (X 2 -X 1 ) And the y-intercept is-(x 1 y 2 -X 2 y 1 ) / (X 2 -X 1 ). The obtained slope and y-intercept are stored in line [point_count] [0] and line [point_count] [1].
[0040]
Next, grouping is performed according to whether or not the line segment is 45 ° or less with respect to the sub-scanning direction based on the obtained straight line equation (slope and y intercept) (step S332). Here, when the inclination (line [point_count] [0]) is “1”, the line segment is 45 °, and the sub-scanning direction is the Y direction, so that the line segment (line [point_count] ] [0]> 1) is extracted, it can be determined that the line segment is 45 ° or less with respect to the sub-scanning direction. Next, the longest line segment is extracted from the grouped line segments of 45 ° or less with respect to the sub-scanning direction (step S333).
Next, in order to increase the effectiveness of the line segment, it is checked whether or not there is a line segment that is substantially orthogonal to the line segment (step S334). It deletes from the line segment group of 45 degrees or less with respect to the scanning direction (step S335), returns to step S333, and repeats the process. If there is a line segment that is substantially orthogonal to the line segment (YES in step S334), the inclination line [point_count] [0] of the line segment is set as the document inclination doc_cline (step S336).
[0041]
Next, in order to determine the document area, all straight lines orthogonal to the straight line calculated in step S336 and passing through the vertices detected by the document vertex detection process are calculated (step S337). An orthogonal straight line equation is as follows, and the coordinates of each item point are substituted into X and Y of this equation to obtain b which is a y-intercept.
[Equation 9]
Y = -1 / doc_cline * X-b (9)
Then, the maximum value Vb out of b which is the y-intercept of the straight line passing through each vertex calculated as described above. max And the minimum value Vb min Is calculated (step S338).
Further, all straight lines that are parallel to the straight line calculated in step S336 and that pass through the vertices detected by the document vertex detection process are calculated (step S339). The parallel straight line equation is as follows, and the coordinates of each vertex are substituted into X and Y of this equation to obtain b which is a y-intercept.
[Expression 10]
Y = doc_cline * X-b (10)
Then, the maximum value Hb out of b which is the y-intercept of the parallel straight line passing through each vertex calculated in step S339. max And the minimum value Hb min Is calculated (step S340).
[0042]
With the above processing, the following four straight line equations surrounding the document area are calculated. The orthogonal straight lines are as follows.
[Expression 11]
Y = -1 / doc_cline * X-Vb max (11)
Y = -1 / doc_cline * X-Vb min (12)
The parallel straight lines are as follows.
[Expression 12]
Y = doc_cline * X-Hb max (13)
Y = doc_cline * X-Hb min (14)
Accordingly, the coordinates of the four points as the document area are determined by calculating the intersections of the parallel straight line and the orthogonal straight line whose y-intercept is the maximum value and the minimum value (step S341).
Next, the minimum and maximum X coordinates and the minimum and maximum Y coordinates are extracted from the four determined coordinates, and (X min , Y 1 ), (X max , Y 2 ), (X 1 , Y min ), (X 2 , Y max ) Is defined (steps S341 to S345). Thus, the document area is detected.
[0043]
FIG. 31 is a flowchart of the editing process (FIG. 23, step S22). Here, the actual processing contents of CPU data and command setting for the rotation processing unit 310 described with reference to FIGS. First, the coordinates of the four points extracted in the area address setting process (FIG. 23, step S21) are set as conversion area coordinates (step S401). Next, by comparing the distance between two specific coordinates, the inclination direction of the document is determined, and rotation coordinate conversion and rotation angle setting are performed. Here, the setting is performed according to the rules shown in FIGS.
[0044]
X 1 -X min > Y 1 -Y min (YES in step S402), the origin of the rotational coordinates (x, y) is (X min , Y 1 ), The rotation angle θ is tan -1 ((Y max -Y 1 ) / (X 2 -X min )) (The rotation direction is counterclockwise) (steps S403 and S404). X 1 -X min ≦ Y 1 -Y min (NO in step S402), the origin of the rotational coordinates (x, y) is (X 1 , Y min ), The rotation angle θ is −tan -1 ((Y 1 -Y min ) / (X min -X 1 )) (The rotation direction is clockwise) (steps S405 and S406). By following the above conditions, the position of the side serving as the reference for correction and the position of the reference coordinates are unified at a small correction angle (45 ° or less). Then, edit origin coordinates (u 0 , V 0 ) Is set (step S407), and when ready (step S408), a rotation process is executed based on the above-described setting (step S409).
[0045]
FIG. 32 is a flowchart of image data output (FIG. 23, step S23). First, the paper size coordinates (U paper , V paper ) Is set (step S501). Next, it is determined whether there is an area that needs to be erased (step S502). If there is an area that needs to be erased, two points (U erase0 , V erase0 ), (U erase1 , V erase1 ) Is set (step S503). Thereafter, it is determined whether or not the erase setting has been completed (step S504), and if not completed, the process returns to step S503. When the erase setting is completed and ready (YES in step S505), the output is enabled and data transfer to the printer is permitted (step S506).
[0046]
FIG. 33 is a flowchart of the document area detection process (FIG. 23, step S18) based on the edge address of the document, which is executed when not in the tilt correction mode. First, Xn line data (X n , YW m , YB m ), Edge_first_adr (X n ) And edge_last_adr (X n (Step S601).
Next, an edge undetected line is extracted. First, variables X and X max , Y max And a counter end_count are initialized (step S602). Next, it is determined whether or not both the leading edge address (edge_first_adr (X)) and trailing edge address (edge_last_adr (X)) in one line of interest are ε1 or more (step S603). The value of ε1 is suitably an address in the Y direction of the position of the document scale. If both the leading edge address edge_first_adr (X) and the trailing edge address edge_last_adr (X) are larger than ε1, it is determined that the edge of the document has been detected, and the process proceeds to step S607. If at least one of the leading edge address edge_first_adr (X) and the trailing edge address edge_last_adr (X) is smaller than ε1, it is determined that the line has not been detected, and then the document detection end counter edge_count is incremented. Then, it is determined whether or not the incremented value is larger than ε4 (step S605). If it is larger, the document detection ends, and if it is smaller, the value of X is incremented (step S606), and the process returns to step S603.
[0047]
If it is determined that the edge of the document is detected (YES in step S603), then the trailing edge address edge_last_adr (X) is Y max It is determined whether or not it is larger (step S607). If larger, the maximum value Y in the Y direction is determined. max Then, the value of the X line value edge_last_adr (X) is stored (step S608), and then the value of X is stored as the maximum value in the X direction (step S609). Trailing edge address edge_last_adr (X) is Y max The maximum value Y in the Y direction if max Without changing, the value of X is stored as the maximum value in the X direction (step S609). Next, the document detection counter end_count is cleared (step S610), the value of X is incremented (step S606), and the process returns to step S603.
Thus, by repeating the processing until edge_count becomes equal to or greater than ε4, the maximum value X in the X direction and the Y direction of the document area max And Y max Can be requested. The document area obtained here is a minimum rectangular area from the origin including the document. If the value of ε4 is too small, detection cannot be performed when an original is placed at a distance from the reference position, or if the original has a band pattern of the same color as the original conveyance belt, the actual original size is detected. It may be judged smaller. Conversely, if the value of ε4 is too large, the processing time will be long. In practice, 20 to 30 mm is appropriate.
[0048]
FIG. 34 is a flowchart of through-mode editing processing (FIG. 23, step S19) executed when the mode is not the tilt correction mode. First, the coordinates of the four points of the maximum size are set as conversion area coordinates (step S701). The rotation coordinates are the original image origin (step S702), the rotation angle is 0 ° (step S703), and the edit origin coordinates (u 0 , V 0 ) Is set as (α, β) (step S704). When ready (step S705), rotation processing is executed based on the above settings (step S706).
[0049]
In the present embodiment, as a process for improving the effectiveness of the line segment that adopts the inclination, it is checked whether or not there is an orthogonal line segment. Further, the length of the orthogonal line segment is also checked and orthogonal. By adopting the inclination of the longest line segment orthogonal to the sub-scanning direction of 45 degrees or less with respect to the sub-scanning direction in which the line segment exists, a more effective inclination can be detected.
[0050]
Next, a copying machine according to a second embodiment of the present invention will be described. In the following, only the parts different from the copying machine of the first embodiment will be described. In this copying machine, a method for detecting the document size from the above image data and a method for detecting the document size by a fixed sensor are selectively used according to the type of document. By using the fixed sensor, the document detection time can be further shortened. Examples of the fixed sensor include a reflective photosensor composed of a light emitting element and a light receiving element, and a distance sensor composed of a light emitting element and a position detecting element. Below, the example which uses a distance sensor as a fixed sensor is demonstrated.
[0051]
35 and 36 show the distance sensor unit 21. FIG. Each sensor unit 21 includes two light emitting elements (LEDs) 22 and 23 and one position detecting element (PSD) 24. Two locations, a position illuminated by the LED 22 and a position illuminated by the LED 23, can be detected by one sensor unit. One of the LEDs 22 and 23 emits light according to the state of an LED signal input to an LED drive circuit (not shown). The distance to the object to be measured is detected by the detection position on the PSD 24. The analog detection signal of the PSD 24 is converted into a digital signal by the signal processing circuit and then output in synchronization with the clock signal. Each sensor unit 21 is installed so that light emitted from the LEDs 22 and 23 is obliquely applied to the document, and the PSD 24 detects irregularly reflected light from the document.
[0052]
Next, the arrangement of the plurality of sensor units 21 will be described. FIG. 37 shows the arrangement of the sensor unit 21 in the document reading area. Five sensor units 21 (FD1, FD2, FD3, CD1, CD2) are arranged so that a plurality of standard document sizes can be detected. FIG. 38 shows eight outputs (1 to 8) of five sensors 21 and 11 standard sizes (A3 vertical, B4 vertical, A4 vertical, B5 vertical, A4 horizontal, B5 horizontal, A5 vertical, 11 * 17). , Legal, letter vertical, letter horizontal). The sensor unit (FD3, CD2) is an option. In FIG. 38, “◯” indicates that a document is detected, and “X” indicates that a document is not detected. As shown in FIG. 18, the size of the document can be determined from the sensor output.
[0053]
FIG. 39 is a block diagram of the control circuit of the copying machine of this embodiment. The document size detection unit 1410 includes a first CPU 1412 and an EEPROM 1414. The first CPU 1412 compares the distance information input from the plurality of sensor units 21 with the threshold value stored in the EEPROM 1414, and determines the presence or absence of a document. The first CPU 1412 stores a table shown in FIG. 38 in advance, and compares the table with document presence / absence information to determine the document size. Further, the first CPU 1412 generates a document size code according to the determined document size and transfers it to the second CPU 1400 that controls the main body.
Document detection using the above-described fixed sensor can be performed in a shorter time than document size detection from image data because the detection algorithm is simple. Therefore, the operability of the copying machine can be improved by using a fixed sensor together.
[0054]
FIG. 40 shows a flowchart of overall control by the second CPU of this embodiment using a fixed sensor together. First, initialization is performed (step S1011), input signal control processing of various switches from the operation panel 90 (step S1012), and document conveyance processing by the document conveyance device 500 (step S1013). Next, it is determined whether or not the tilt correction mode is set (step S1014).
If the user does not select the tilt correction mode, the vertex data of the document is not necessarily required, and the document size is detected by the fixed sensor (S1051). In this way, the time required for copying automatically can be shortened when tilt correction is not performed. Next, image data is input by the document reading unit 100 (step S1052). When the input is completed (YES in step S1053), the document is discharged (step S1054), the process proceeds to step S1021, image data is output, and the print unit 200 forms an image on the paper.
[0055]
In the case of the inclination correction mode, image input processing (step S1015) by the document reading unit 100 is performed. Then, it is determined whether or not the input of image data has been completed (step S1016). If the input has been completed, a document discharge process is performed (step S1017). Next, based on the image data, document vertex detection processing (step S1018), area address setting processing (step S1019), and editing processing are performed (step S1020). Thereby, the inclination of the original is detected from the image data, and the image data is corrected. Since the document vertex detection process, the area address setting process, and the editing process are the same as those in the first embodiment, the description thereof is omitted. In step S1021, image data output processing is performed, and the process returns to step S1012. The processing in the tilt correction mode is the same as that in the first embodiment.
[0056]
FIG. 41 shows a flowchart of the third embodiment in which a fixed sensor capable of setting the high-speed mode is used in combination. In the present embodiment, a fixed sensor is also used for document area detection. As shown in FIG. 42, the operation panel 90 ′ is provided with a button 99 ′ for setting the high speed mode. The user can select the high speed mode. In the initial setting, the high-speed mode is not set. If the high speed mode is not selected (NO in step S1014 ′), document size detection and inclination detection processing is performed (steps S1018 to S1020). If the high speed mode is selected (YES in step S1014 ′), the document size is detected by the fixed sensor without performing the inclination correction process (step S1051), and the copying operation corresponding to the detected document size is performed. . Since tilt correction is not performed, the processing time required for copying is shortened and high-speed copying operation is possible.
[0057]
FIG. 43 shows a flowchart of a fourth modified embodiment in which a fixed sensor that switches the document detection method by using the document conveying unit 500 is used together. Also in this embodiment, a fixed sensor is used together. Here, whether or not the fixed sensor is used is switched depending on whether or not the document conveyance unit 500 is used (step S1014 "). When using the document conveyance unit 500 (YES in step S1014"), a standard (rectangular) document is selected. Since it is often handled, the document size is detected by a fixed sensor (step S1051). Thereafter, image data is input based on the document size (steps S1052 to S1053). When using the document conveying section 500, a plurality of documents are often handled, so that the copying time can be greatly shortened. When the original is manually placed on the platen glass 19 without using the original conveying section 500 (NO in step S1014 "), an atypical original may be handled, and therefore image data is input (steps S1015 to S1016). Document size detection and inclination detection based on data are performed (steps S1018 to S1020) In this case, the user does not necessarily have to position the document in accordance with the reference point or the scale, so the burden on the user can be reduced. .
[0058]
FIG. 44 is a flowchart of the input process (step S1012 ′) in that case. This input process is the same as the input process (FIGS. 24 to 25) in the first embodiment, but is omitted because the processes in steps S111 to S114 are unnecessary.
As another example of using a fixed sensor together, the user sets whether the document is a fixed type or a non-standard type on the operation panel. If the standard type is set, the fixed size sensor detects the size of the original. It may be detected.
[0059]
【The invention's effect】
According to the present invention, when it is not necessary to correct the inclination of the read original, the original can be detected without detecting the inclination by switching the original detection method. it can.
Further, it is possible to switch whether or not to perform the tilt correction processing by setting the tilt correction mode, setting the high-speed mode, using the document transport unit, and the like, and document detection can be performed at high speed.
Further, since the document area detection using a fixed sensor is preferably used together, the processing time can be further shortened.
[Brief description of the drawings]
FIG. 1 is a front view showing an outline of an internal configuration of a copying machine.
FIG. 2 is a block diagram showing an overall block of a control system.
FIG. 3 is a plan view showing a configuration of an operation panel.
FIG. 4 is a block diagram illustrating a configuration of an image input / output interface of a rotating memory unit control unit.
FIG. 5 is a diagram illustrating a sequence of image data transferred from an image reading control unit.
FIG. 6 is a diagram showing a sequence of image data transferred to an image formation control unit.
FIG. 7 is a block diagram of a rotating memory unit control unit.
FIG. 8 is a circuit diagram of a document edge detection circuit.
FIG. 9 is a circuit diagram of a coordinate data generation circuit.
FIG. 10 is a block diagram of a rotation processing unit.
FIG. 11 is a diagram illustrating the operation of a rotation processing unit.
FIG. 12 is a block diagram of an output page memory unit.
FIG. 13 is a diagram for explaining the operation of the output page memory unit;
FIG. 14 is a view showing a document set on a platen glass.
FIG. 15 is a diagram illustrating a state in which a document is read.
FIG. 16 is a diagram for explaining how a document is read when the sampling pitch for document reading varies.
FIG. 17 is a diagram illustrating edge change points and line segments;
FIG. 18 is a diagram illustrating document area setting.
FIG. 19 is a diagram for explaining a document tilt direction.
FIG. 20 is a diagram illustrating setting of a rotation angle.
FIG. 21 is a diagram for explaining a document tilt direction;
FIG. 22 is a diagram illustrating setting of a rotation angle.
FIG. 23 is a flowchart of copier control.
FIG. 24 is a flowchart of a part of the input process.
FIG. 25 is a flowchart illustrating a part of input processing.
FIG. 26 is a flowchart illustrating a part of document vertex detection.
FIG. 27 is a flowchart illustrating a part of document vertex detection.
FIG. 28 is a flowchart of a part of document vertex detection.
FIG. 29 is a partial flowchart of area address setting processing;
FIG. 30 is a partial flowchart of area address setting processing;
FIG. 31 is a flowchart of editing processing.
FIG. 32 is a flowchart of image data output.
FIG. 33 is a flowchart of document area detection.
FIG. 34 is a flowchart of editing processing in through mode.
FIG. 35 is a sectional view of a distance sensor.
FIG. 36 is a plan view of the distance sensor.
FIG. 37 is a diagram showing detection of a standard document by a distance sensor.
FIG. 38 is a document size detection table.
FIG. 39 is a block diagram of a control system of the copying machine according to the second embodiment.
FIG. 40 is a flowchart of copier control according to the second embodiment.
FIG. 41 is a flowchart of copier control in the third embodiment.
FIG. 42 is a diagram of a modification of the operation panel.
FIG. 43 is a flowchart of copier control in the fourth embodiment.
FIG. 44 is a flowchart of input processing.
[Explanation of symbols]
10 Scanning System, 20 Image Signal Processing Unit, 21 Sensor Unit, 30 Rotation Memory Unit Unit, 40 Printing Processing Unit, 60 Laser Optical System, 70 Imaging System, 500 Document Conveying Unit, 302 Input Page Memory, 304 Document Edge Detection Unit 308, stack memory, 310 rotation processing unit, 312 output page memory, 314 CPU.

Claims (5)

原稿台に載置された原稿を読み取り、原稿の画像データを出力する原稿読取手段と、
傾き補正モードを手動で設定するモード設定手段と、
原稿の傾きと原稿領域を検出する第1の原稿検出手段と、
第1の原稿検出手段により検出された原稿の傾きに基づいて原稿読み取り手段により読み取られた画像データを補正する傾き補正手段と、
原稿領域のみを検出する第2の原稿検出手段と、
前記モード設定手段の設定に基づいて、第1の原稿検出手段と第2の原稿検出手段を切り替える切り替え手段とを備える原稿検出装置。
A document reading means for reading a document placed on a document table and outputting image data of the document;
Mode setting means for manually setting the tilt correction mode;
First document detection means for detecting document inclination and document area;
An inclination correction unit that corrects image data read by the original reading unit based on the inclination of the original detected by the first original detection unit;
A second document detecting means for detecting only the document area;
A document detection apparatus comprising a switching unit that switches between a first document detection unit and a second document detection unit based on the setting of the mode setting unit.
原稿台に載置された原稿を読み取り、原稿の画像データを出力する原稿読取手段と、
高速モードを手動で設定するモード設定手段と、
原稿の傾きと原稿領域を検出する第1の原稿検出手段と、
第1の原稿検出手段により検出された原稿の傾きに基づいて原稿読み取り手段により読み取られた画像データを補正する傾き補正手段と、
原稿領域のみを検出する第2の原稿検出手段と、
前記モード設定手段により高速モードが設定されたか否かに基づいて、第1の原稿検出手段と第2の原稿検出手段を切り替える原稿検出手段切り替え手段とを備える原稿検出装置。
A document reading means for reading a document placed on a document table and outputting image data of the document;
Mode setting means for manually setting the high speed mode;
First document detection means for detecting document inclination and document area;
An inclination correction unit that corrects image data read by the original reading unit based on the inclination of the original detected by the first original detection unit;
A second document detecting means for detecting only the document area;
A document detection apparatus comprising: a document detection means switching means for switching between a first document detection means and a second document detection means based on whether or not the high-speed mode is set by the mode setting means.
原稿台に載置された原稿を読み取り、原稿の画像データを出力する原稿読取手段と、
原稿を原稿台に自動的に載置する原稿搬送部と、
原稿の傾きと原稿領域を検出する第1の原稿検出手段と、
第1の原稿検出手段により検出された原稿の傾きに基づいて原稿読み取り手段により読み取られた画像データを補正する傾き補正手段と、
原稿領域のみを検出する第2の原稿検出手段と、
原稿搬送部が使用されたか否かに基づいて、第1の原稿検出手段と第2の原稿検出手段を切り替える原稿検出手段切り替え手段と
を備える原稿検出装置。
A document reading means for reading a document placed on a document table and outputting image data of the document;
A document transport section for automatically placing a document on a document table;
First document detection means for detecting document inclination and document area;
An inclination correction unit that corrects image data read by the original reading unit based on the inclination of the original detected by the first original detection unit;
A second document detecting means for detecting only the document area;
A document detection apparatus comprising a first document detection unit and a document detection unit switching unit that switches between a second document detection unit and a second document detection unit based on whether or not a document transport unit is used.
前記の第1の原稿検出手段は、画像データから得たエッジアドレスから各頂点を検出し、次に、検出された各頂点に基づいて傾き角度を求め、次に、求められた傾き角度に基づいて原稿領域を検出し、前記の第2の原稿検出手段は、エッジアドレスから原稿領域を検出することを特徴とする請求項1〜3のいずれかに記載された原稿検出装置。The first document detection means detects each vertex from the edge address obtained from the image data, then obtains an inclination angle based on each detected vertex, and then, based on the obtained inclination angle. 4. The document detection apparatus according to claim 1, wherein the document area is detected, and the second document detection means detects the document area from an edge address. 前記の第1の原稿検出手段は、画像データから得たエッジアドレスから各頂点を検出し、次に、検出された各頂点に基づいて傾き角度を求め、次に、求められた傾き角度に基づいて原稿領域を検出し、前記の第2の原稿検出手段は、原稿台に載置された原稿のサイズを検出するセンサを備え、センサの出力から原稿領域を検出することを特徴とする請求項1〜3のいずれかに記載された原稿検出装置。The first document detection means detects each vertex from the edge address obtained from the image data, then obtains an inclination angle based on each detected vertex, and then, based on the obtained inclination angle. The document area is detected, and the second document detection means includes a sensor for detecting the size of the document placed on the document table, and detects the document area from the output of the sensor. The document detection apparatus described in any one of 1-3.
JP13018298A 1998-05-13 1998-05-13 Document detection device Expired - Fee Related JP3641935B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP13018298A JP3641935B2 (en) 1998-05-13 1998-05-13 Document detection device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP13018298A JP3641935B2 (en) 1998-05-13 1998-05-13 Document detection device

Publications (2)

Publication Number Publication Date
JPH11331547A JPH11331547A (en) 1999-11-30
JP3641935B2 true JP3641935B2 (en) 2005-04-27

Family

ID=15028036

Family Applications (1)

Application Number Title Priority Date Filing Date
JP13018298A Expired - Fee Related JP3641935B2 (en) 1998-05-13 1998-05-13 Document detection device

Country Status (1)

Country Link
JP (1) JP3641935B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106559599A (en) * 2015-09-28 2017-04-05 富士施乐株式会社 Image read-out and image forming apparatus

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005196659A (en) * 2004-01-09 2005-07-21 Fuji Xerox Co Ltd Program, recording medium and apparatus for processing image
JP4777024B2 (en) * 2005-09-06 2011-09-21 キヤノン株式会社 Image processing apparatus and image processing apparatus control method
US8284463B2 (en) 2007-12-28 2012-10-09 Brother Kogyo Kabushiki Kaisha Image reading apparatus
US8174737B2 (en) 2007-12-28 2012-05-08 Brother Kogyo Kabushiki Kaisha Image reading apparatus
JP5002497B2 (en) 2008-03-11 2012-08-15 株式会社Pfu Image processing apparatus, image processing method, and image processing program
JP5462522B2 (en) * 2009-05-07 2014-04-02 キヤノン株式会社 Image processing apparatus, image processing method, and program for causing computer to realize the image processing method
JP5542380B2 (en) * 2009-07-22 2014-07-09 シャープ株式会社 Image processing apparatus, image forming apparatus, image processing method, image processing program, and recording medium
JP5220828B2 (en) 2010-11-11 2013-06-26 シャープ株式会社 Image processing apparatus, image forming apparatus, image reading apparatus, image processing method, program, and recording medium
JP5742476B2 (en) * 2011-05-30 2015-07-01 ブラザー工業株式会社 Image reading apparatus and read image data correction method
JP5736068B2 (en) * 2014-02-13 2015-06-17 シャープ株式会社 Image processing apparatus, image forming apparatus, image processing method, image processing program, and recording medium
JP5970582B2 (en) * 2015-04-17 2016-08-17 シャープ株式会社 Image processing apparatus, image forming apparatus, image processing method, image processing program, and recording medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106559599A (en) * 2015-09-28 2017-04-05 富士施乐株式会社 Image read-out and image forming apparatus

Also Published As

Publication number Publication date
JPH11331547A (en) 1999-11-30

Similar Documents

Publication Publication Date Title
EP1624664B1 (en) Document size detection apparatus
US5649033A (en) Image processing apparatus outputting desired image irrespective of directions of original and output paper
JP2007124523A (en) Device for simultaneously reading both side, copying device, image processor, and image processing method
JP3641935B2 (en) Document detection device
JP2006020129A (en) Image reading apparatus
US6535706B1 (en) Image editing system and image forming system
JPH11177774A (en) Detector for original
JPH09146428A (en) Image forming device
JPH11237576A (en) Image forming device and exposing scanner
JPH06103410A (en) Picture processor
JPH07245682A (en) Image reader and copying machine incorporating it
JPH11177775A (en) Detector for original
JPH1169096A (en) Image forming device
JPH11177773A (en) Detector for original
JP2011171992A (en) Document scanner and image forming apparatus
JP2010028682A (en) Image reading apparatus and image forming apparatus
JP2008193553A (en) Original reader
JP2007019854A (en) Image processing apparatus and image processing method
JP3710309B2 (en) Image forming apparatus
JPH07245680A (en) Image reader and copying machine incorporating it
JP4988679B2 (en) Image reading apparatus and image forming apparatus
JP3078421B2 (en) Digital image forming apparatus and laser scanning light correction method for digital image forming apparatus
JP4057751B2 (en) Image forming apparatus
JP4201757B2 (en) Image editing device
JP4204682B2 (en) Image forming apparatus

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20041110

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20050117

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080204

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090204

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100204

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110204

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110204

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120204

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120204

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130204

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140204

Year of fee payment: 9

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees