JP2862235B2 - Document processing device - Google Patents

Document processing device

Info

Publication number
JP2862235B2
JP2862235B2 JP62017054A JP1705487A JP2862235B2 JP 2862235 B2 JP2862235 B2 JP 2862235B2 JP 62017054 A JP62017054 A JP 62017054A JP 1705487 A JP1705487 A JP 1705487A JP 2862235 B2 JP2862235 B2 JP 2862235B2
Authority
JP
Japan
Prior art keywords
document
counter
information
signal
image
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
JP62017054A
Other languages
Japanese (ja)
Other versions
JPS63184461A (en
Inventor
昌敬 山田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP62017054A priority Critical patent/JP2862235B2/en
Priority to US07/147,357 priority patent/US4899227A/en
Publication of JPS63184461A publication Critical patent/JPS63184461A/en
Application granted granted Critical
Publication of JP2862235B2 publication Critical patent/JP2862235B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】 〔技術分野〕 本発明は原稿を処理する原稿処理装置に関するもので
ある。 〔従来技術〕 従来、原稿台上に載置された原稿の載置位置や原稿の
サイズを検出することが提案されている。 また、原稿上の一部にしか情報が記録されていない場
合等には、情報部以外の余白部に対応した情報は無駄と
なる。 しかしながら、前述の如く原稿の位置,サイズを認識
するだけでは、それに基づいて原稿読み取りにより得た
画像情報の抽出を行っても出力される画像情報に無駄情
報が含まれてしまう。 また、特開昭61−242458号公報に記載の如く、原稿内
の情報部分の位置を検出し、その検出結果に従って原稿
画像を処理する構成も提案されている。 しかしながら、この公報記載の構成においては、原稿
台の全面を検出対象領域として、原稿内の情報部分の位
置の検出を行うものであり、原稿台や原稿押さえ板等に
汚れがある場合には、原稿台上の原稿の載置位置の外側
に情報部分が存在すると誤認識され、出力される画像情
報に無駄情報が含まれてしまう可能性がある。 〔目的〕 本発明は以上の点に鑑みてなされたもので、原稿内の
情報部分を確実に検出し、その検出結果に基づいて原稿
画像を良好に処理することを目的とし、詳しくは、情報
が記録された原稿が載置される原稿台と、前記原稿台上
に載置された原稿を走査する読取手段と、前記原稿台全
面を検出対象領域とし、前記読取手段からの出力信号に
基づいて原稿の複数の頂点に対応した複数の座標を検出
する第1検出手段と、前記第1検出手段により検出され
た複数の座標によって規定される前記原稿台上における
原稿の載置位置を検出対象領域とし、前記読取手段から
の出力信号に基づいて原稿内における情報部分の複数の
頂点に対応した複数の座標を検出する第2検出手段と、
前記第2検出手段により検出された原稿内における情報
部分の複数の頂点に対応した複数の座標に基づいて原稿
画像を処理する処理手段とを有する原稿処理装置を提供
するものである。 〔実施例〕 以下、本発明を好ましい実施例に基づいて説明する。 第1−1図に本発明を適用した原稿読取装置の外観図
及び第1−2図に断面図を示す。 原稿は原稿台ガラス3上に下向きに置かれ、原稿カバ
ー4によってガラス3上に押えつけられる。原稿カバー
4の原稿台ガラス側は後述する原稿検知の為、鏡面処理
されている。原稿は螢光灯ランプ2により照射され、そ
の反射光はミラー5,7とレンズ6を介してCCD1の面上に
集光される。ミラー7と5は2:1の相対速度でDCサーボ
モータによりPLLをかけながら一定速度で移動する。こ
れにより、原稿全域の画像をライン毎に順次CCD1により
光電的に読取る。 この原稿読取装置によって処理できる原稿サイズは最
大A3サイズで、解像度は400ドツト/インチとするとCCD
1のビツト数は4678(=287/25.4×400)ビツト必要とな
る。従って、本装置では約5000個の光電変換素子がライ
ン配列された5000ビツトCCDを用いている。また、主走
査周期を352.9μsec(=106/180×25.4/400)とする
と、等倍時ミラー7及びランプ2からなる光学系は180m
m/secの速度で移動する。 第2図に原稿読取装置のシステムブロツク図を示す。 CCD読取部301にはCCD,CCDのクロツクドライバ,CCDか
らの信号増幅器,それをA/D変換するA/Dコンバータが内
蔵されている。 CCD読取部301からは6ビツトのデジタル信号に変換さ
れた画像データが出力され、シエーデイング補正部302
に入力される。シエーデイング補正部302は画像データ
に含まれる光源及びレンズ等のシエーデイング量の検出
及び画像データからのシエーデイング量の除去を行う。
その補正を行った後、画像データはシフトメモリ部303
に一時的に蓄えられる。 シフトメモリ部303にはシフトメモリが2ライン分あ
り、Nライン目の画像データを第1メモリに書き込んで
いる時には第2メモリからN−1ライン目の画像データ
を読み出す。シフトメモリ部303にはこの他、シフトメ
モリに画像データを書き込む為のライトアドレスカウン
タ、読み出す為のリードアドレスカウンタとこの2つの
カウンタからのアドレス信号を切換える為アドレスセレ
クタ回路がある。詳しくは、第3図に示す。 また、変倍/移動処理部304では、画像データをシフ
トメモリに書き込むクロツクやシフトメモリから読み出
すクロツク及び読み出すタイミングを変えることで、主
走査方向の画像変倍や移動を行う。 シフトメモリ部303から出力された画像データは、濃
度処理部305に入力され、ここで2値化処理やデイザ処
理を施され2値信号となり、トリミング処理部306に出
力される。トリミング処理部306では主走査ライン画像
データの任意の区間を強制的に“0"や“1"に加工し、所
望領域画像のトリミングや不要画像のマスキング等の画
像の編集を行う。 また、トリミング処理部306から出力された2値信号
は、原稿位置検知部307にも入力される。ここでは2値
信号を用いて原稿台ガラス3上の原稿や原稿内の情報部
分の位置座標を検知する。 CPU部308はCPU,ROM,RAM,タイマ回路,I/Oインターフエ
ースで構成され、CPU部308は操作部310を制御し、操作
部310を用いたオペレータからの設定に応じて各部の動
作制御を行うとともに、シリアル通信によりプリンタ等
の画像データの出力先装置を制御する。 311はDCサーボデータドライバであり、CPU308により
プリセツトされた倍率に応じて速度データに従ってモー
タ315の速度を制御する。312は螢光灯ドライバで、螢光
灯316のオン/オフや点灯時の光量制御を行う。313,314
は前述のランプ2,ミラー7からなる光学系の位置をCPU3
08が知るための位置センサである。 プリンタ等の外部ユニツト(画像データの出力先装
置)とはコネクタJR1,外部ユニツトのコネクタJP1を介
して接続される。そして、本装置と外部ユニット間では
画像データ通信や命令等のシリアル通信に必要な制御信
号がやりとりされる。 クロツクジエネレータ309では、水平同期信号に同期
してCCD信号の転送クロツクやシフトメモリのリード/
ライトクロツク等が生成される。水平同期信号として、
例えばプリンタからの各ラインの画像記録に同期したBD
(Beam Dececc)信号を受けられる場合と外部から供給
されず内部で生成する場合がある。 第3図に第2図示シフトメモリ部303に係る回路図を
示す。尚、説明を簡易にすべく、2本のシフトメモリの
うちの一方に関して説明する。ライトアドレスカウンタ
904はシフトメモリ907にデータを書き込む時のアドレス
カウンタで、リードアドレスカウンタ905はシフトメモ
リ907からデータを読み出す時のアドレスカウンタであ
る。アドレスセレクタ906はCPU308からの指令をI/Oポー
ト901を介して受けてライトアドレスカウンタ904のアド
レス信号とリードアドレスカウンタ905のアドレス信号
のいずれかを選択し、シフトメモリ907をアドレシング
するためのものである。また、I/Oレジスタ902,903はラ
イトアドレスカウンタ904,リードアドレスカウンタ905
にそれぞれプリセツト値をCPU308が与えるためのレジス
タである。ライトアドレスカウンタ904,リードアドレス
カウンタ905は共にダウンカウンタで、それぞれにカウ
ント動作の開始を指令するWST信号及びRST信号が入力さ
れ、またシフトメモリへの書き込みクロツクWCLKとシフ
トメモリからの読み出しクロツクRCLKが入力される。 915,916は画像領域を決定する為の排他的オアゲー
ト、OFはそれを制御する信号で、「1」の時STカウンタ
912,ENカウンタ913で決まる。枠内をマスクし、枠外を
出力画像とし、「0」の時枠内を出力画像とし枠外をマ
スクする。 910はシフトメモリ907から出力され、濃度処理部908
を経て2値信号となった画像データを出力制御するアン
ドゲート、917は前述のマスク部分を白として出力する
か黒として出力するかを決定するアンドゲートで、PBは
それを制御する信号で「1」の時黒、「0」の時白を出
力する。 911はゲート910,917により出力される画像データをVI
DEOとして出力するオアゲート、909は画像データを白黒
反転制御する排他的オアゲート、INはそれを制御する信
号で1の時オリジナル通りの画像で0の時は反転させ
る。各信号は、CPU308がオペレータの指定したモードに
より出力する。 STカウンタ912及びENカウンタ913は各々決められた領
域のみに画像を出力するためのスタートビツトカウンタ
及びエンドビツトカウンタで、これらにはI/Oを介してC
PU308がゲートの為のカウントデータをプリセットす
る。フリツプフロツプ914はSTカウンタ912のカウントア
ツプでセツトされ、ENカウンタ913のカウントアツプで
リセツトされる。第7図にSTカウンタ12,ENカウンタ913
により決定された枠内の画像データを出力し、枠外を白
としてマスクする場合の動作を示す。即ち、OF信号が
「0」の場合STカウンタ912のカウントアツプでF/F914
のQが「1」となるとゲート915の出力が「1」とな
り、その時点からENカウンタ913がカウントアツプする
迄ゲート910は入力する画像データを出力する。一方、
画像データの出力期間外において、ゲート916の出力は
「1」なのでBB信号が「0」の時ゲート917の出力は
「0」であり、ゲート911は「0」を出力し、白マスク
となる。逆にOF=「0」,BB=「1」の時は枠外が黒マ
スクされる。 また、OF=1とするとSTカウンタ912のカウントアツ
プからENカウンタ913のカウントアツプ迄ゲート915,916
の出力が各々その間「0」,「1」となるので、BB=
「1」の時は枠内が黒、BB=「0」の時は枠内が白で夫
々マスクされる。 第4図に第2図示原稿位置検知部307における座標を
検出するための回路図を示す。また、第5図に原稿台3
上に載置された原稿ORGの様子を示す。 主走査カウンタ351はダウンカウンタであり、主走査
1ライン中における走査位置を表わす。このカウンタは
水平同期信号HSYNCで主走査方向(X方向)の最大値に
セツトされ画像データクロツクCLKが入力される毎にカ
ウントダウンする。副走査カウンタ352はアツプカウン
タでありVSYNC(画像先端信号)の立ち上がりで、“0"
にリセツトされ、HSYNC信号でカウントアツプし副走査
方向における走査位置を表わす。 原稿読取走査前に実行する前走査により原稿台3の全
面の読み取りを行い、2値化され白黒反転の為のゲート
909を通過した画像データVDOはシフトレジスタ301に8
ビツト単位で入力される。8ビツト入力が完了した時点
でゲート回路302は8ビツトデータの全てが白画像かの
チエツクを行い、全て白画像ならば信号ライン303に
「1」を出力する。 即ち、前走査開始後、最初の8ビツト白が現われた時
信号ライン303の「1」出力によりF/F304がセツトす
る。このF/F304はVSYNCによって予めリセツトされてい
る。以後、次のVSYNCの来る迄セツト状態のままであ
る。F/F304がセツトした時点で、ラツチF/F305にその時
の主走査カウンタ351の値がロードされる。これが第5
図におけるX1座標値になる。また、ラツチ306にその時
の副走査カウンタ350の値がロードされ、これが第5図
におけるY1座標値になる。従ってP1(X1,Y1)が求ま
る。 又、信号303に「1」が出力する度に主走査カウンタ3
51からの値をラツチ307にロードする。最初の8ビツト
の白が現われた時の主走査カウンタ351からの値がラツ
チ307にロードされると、ラツチ310(これにVSYNC時点
でX方向の最大値にセツトされている)のデータとコン
パレータ309で大小比較される。もし、ラツチ307のデー
タの方が小ならばラツチ307のデータがラツチ310にロー
ドされる。又、この時副走査カウンタ352の値がラツチ3
11にロードされる。この動作は次の8ビツトがシフトレ
ジスタ301に入る迄に処理される。この様にラツチ307と
ラツチ310のデータを全画像領域について行えば、ラツ
チ310には原稿領域X方向の最小値が残り、この時のY
方向の座標がラツチ311に残ることになる。主走査カウ
ンタ351はダウンカウンタなのでX方向の最小値に対応
する座標は主走査方向でSPから一番遠い座標を表わす。
これが第5図におけるP3(X3,Y3)である。 F/F312は各主走査ライン枚に最初に8ビツト白が現わ
れた時点でセツトするフリツプフロツプで、水平同期信
号HSYNCでリセツトされ最初の8ビツト白でセツトし、
次のHSYNCまで保持する。このF/F312がセツトする時点
で、1ライン中で最初に現われた白信号の位置に相当す
る主走査カウンタの値をラツチ313にセツトする。そし
て、ラツチ315とコンパレータ316で大小比較される。ラ
ツチ315にはVSYNC発生時点でX方向の最小値“0"がセツ
トされている。もし、ラツチ315のデータの方がラツチ3
13のデータより小さいか等しいならば信号317がアクテ
イブになりラツチ313のデータがラツチ315にロードされ
る。この動作はHSYNC−HSYNC間で行われる。以上の比較
動作を全画像領域について行うとラツチ315には原稿座
標のX方向の最大値、すなわち主走査方向で走査開始点
に最も近い点の白信号のX座標が残ることになる。これ
が第5図におけるX2である。又、信号ライン317が出力
する時、副走査カウンタ352からの値がラツチ318にロー
ドされる。これが第5図におけるY2になりP2(X2,Y2
座標が得られる。 ラツチ319と320には全画像領域において、8ビツト白
が現われる度にその時の主走査カウンタ351の値と副走
査カウンタ352の値がロードされる。従って、原稿前走
査完了時では最後に8ビツト白が現われた時点でのカウ
ント値がカウンタに残っていることになる。これが第5
図におけるP4(X4,Y4)である。 以上の8つのラツチ(306,311,320,318,305,310,315,
319)のデータラインは第2図のCPU部308のバスラインB
USに接続され、CPU部308は前走査終了時にこのデータを
読み込むことになる。これにより、CPU部308は原稿台3
上における原稿の4隅の座標値を得ることができ、これ
により原稿の載置位置及び原稿の大きさを認識する。
又、原稿の傾き状態を判定してもよい。 尚、第5図(a)には、原稿台上に傾いて載置された
原稿の4隅P1,P2,P3,P4の座標を検出する様子を示した
が、実際にはこのように斜めに載置されることはなく、
第5図(b)のように原稿台の辺に平行に、或いは突き
当てて載置されるので原稿の位置とサイズを示す情報と
して座標X2,X3,Y1,Y4を採用して差し支えない。 第9図にCPU部308による原稿座標検知スキヤン制御フ
ローを示し、以下に説明する。 読み取る原稿例を第6図(a)に示す。この原稿は右
下隅にだけ文字情報が記載されたものである。 まず、第3図の3つの制御信号をIN=0,OF=0,BB=1
にセツトし(SP900)、トリミングの為のカウンタであ
るSTカウンタ912,ENカウンタ913に同一の値、例えば0
をセツトする(SP901)。この作業で第4図示の原稿位
置検知部に入力される画像データVDOは常に黒信号とな
る。その後、前走査のために光学系の前進を開始し(SP
902)、第6図(b)のSP位置(原稿台3の端部:Y座標
値が0に対応する)に到達したら、トリミングの為のST
カウンタにXMIN相当値及びENカウンタにXMAX相当値をセ
ツトする(SP905)。 このXMIN,XMAXは原稿台ガラス、すなわち読取可能主
走査領域に相当する。またこの作業により、VDO信号は
原稿台ガラスの内部の画像情報については、黒,白その
まま反映するので原稿台ガラス上で原稿の外側は原稿押
えカバーの鏡面を読んで黒になり、一方原稿上で情報の
ない地肌の部分は白となり、また情報部は黒となる。 この制御を原稿台の右端、すなわち原稿台の終端に対
応する第6図(b)のEP位置迄続けたあと(SP906)、
再びST,EN両カウンタ912,913に同一値をセツトし(SP90
8)、EP以降のVDO信号を全て黒とする。そして、光学系
の反転位置TP位置に到達したら、光学系を停止する(SP
909,SP910)。 この間の読取画像の様子を示したのが第8図(a)で
ある。傾斜部はトリミング外領域でBB=1により強制的
に黒にした部分、黒く塗りつぶした部分はトリミング内
領域で、読み取った通り黒い部分であり、この中で白情
報が主走査,副走査両方向に最初と最後に現われた座標
がDX0,DX1,DY0,DY1で原稿シートの座標を示す。そし
て、光学系がTPに到達したときに第4図示の原稿位置検
知部の各ラツチには、これらの座標値がラツチされてお
り、これらの座標値をCPU部308のRAM上のエリアにセツ
トした後(SP911)、原稿シート内情報部分の座標検出
動作に移る。 まず、IN=1,OF=0,BB=1にセツトし(SP912)、ト
リミング領域内のVDO信号が白黒反転し、トリミング領
域外のVDO信号が常に黒になる様制御する。まず、全て
のVDO信号が黒になるようSTカウンタ912とENカウンタ91
3に同一値をセツトし(SP913)、光学系後進を開始する
(SP914)。 そして、光学系が往動で検出した原稿シートの右端DY
1の位置に到達したら(SP915)、STカウンタ912に原稿
の主走査方向座標に基準点側DX0をセツトし、ENカウン
タ913に基準点から遠い側DX1をセツトする(SP916)。
この制御によりこれ以降、原稿内のVDO信号が白黒反転
し、原稿外は黒となる。これを原稿の左端DY0迄続け、D
Y0に到達したら(SP917)、再びSTカウンタ,ENカウンタ
に同一値をセツトし、全画像を黒とする。HPに到達した
ら光学系を停止する(SP920)。この復動時のVDO信号の
様子を第8図(b)に示す。斜線部が強制的に黒とした
部分、黒く塗りつぶした部分が原稿内の地肌部分で白黒
反転の為、黒となる。そして、情報部分は白となる。従
って、第4図示の原稿位置検知部は情報部分の座標IX0,
IX1,IY0,IY1を第8図(b)の様に検出し、それをCPU部
308のRAM上にエリアにセツトする(SP921)。 尚、第6図(b)に示すHP,SP間隔及びEP,TP間隔は光
学系をPLL制御により一定速度に立ち上げるために必要
なあらかじめ決められた距離で、その立ち上がり時間は
既知である。また、復動時に必要なEP,DY1間隔,DY0,SP
間隔も往動時にDY0,DY1を検出した時点でその距離が明
らかとなり、さらにEP−SP間で光学系は定速で移動する
のでその移動所要時間も既知となり、第9図に述べた制
御が可能となる。 以上述べたように、往動で原稿シートの位置座標を検
出し、その結果を用いて原稿内の情報部の位置座標を検
出することができた。 従って、この原稿内の情報部の位置情報から、情報部
の原稿台上における位置や情報部の大きさをCPU部308は
知ることができる。そして、この位置情報に基づいて、
前述のSTカウンタ912,ENカウンタ913の値をセツトし、
原稿読み取りを行うと、情報部のみを抽出して出力する
ことができ、原稿のエツヂ部等に生じるノイズ画像を効
率良く除去可能となる。また、この位置情報に基づい
て、例えば情報部のサイズを求め、これによりプリンタ
の記録材を選択すれば、情報部の大きさに合った記録材
上に画像記録可能となる。また、情報部の位置情報に基
づきトリミング処理部306の画像シフト量を制御し、プ
リンタの記録材上の適正位置(例えば中央)に情報部を
記録する如くの処理が可能となる。また、読み取った画
像データを電子フアイル装置等に格納保存する場合、或
いはフアクシミリ装置の如く送信する場合にも、例えば
情報部の位置情報に従って余白部分の如く無駄な情報を
除去した画像情報のみを格納保存或いは送信することが
でき、これによりフアイル装置の効率的な利用及び伝送
効率の向上が可能となるものである。 〔効 果〕 以上説明した様に、本発明によると、原稿が載置され
る原稿台全面を検出対象領域として原稿内における情報
部分の位置の検出を行うのではなく、まず、原稿台全面
を検出対象領域とし、原稿の複数の頂点に対応した複数
の座標を検出し、その検出された複数の座標によって規
定される原稿台上における原稿の載置位置を検出対象領
域とし、原稿内における情報部分の複数の頂点に対応し
た複数の座標を検出するので、例えば、原稿台や原稿押
さえ板等に汚れがあり、原稿台上の原稿の載置位置の外
側に情報部分が存在すると誤認識される可能性のある場
合でも、原稿台全面ではなく、原稿の載置位置を検出対
象領域として原稿内における情報部分の複数の頂点に対
応した複数の座標の検出が行われるので、原稿の載置位
置の外側に情報部分が存在すると誤認識することなし
に、原稿内の情報部分を確実に検出することができ、従
って、その検出結果に基づいて原稿画像を良好に処理す
ることが可能となる。
Description: TECHNICAL FIELD The present invention relates to a document processing apparatus for processing a document. [Prior Art] Conventionally, it has been proposed to detect a placement position of a document placed on a platen and a size of the document. Further, when information is recorded only on a part of the document, information corresponding to a blank portion other than the information portion is wasted. However, simply recognizing the position and size of the document as described above causes the output image information to include waste information even if the image information obtained by reading the document is extracted based on the position and size. Further, as described in Japanese Patent Application Laid-Open No. 61-242458, a configuration has been proposed in which the position of an information portion in a document is detected and a document image is processed in accordance with the detection result. However, in the configuration described in this publication, the position of the information portion in the document is detected using the entire surface of the document table as a detection target area, and if the document table or the document pressing plate is dirty, It may be erroneously recognized that an information portion exists outside the position of the original on the platen, and the output image information may include waste information. [Purpose] The present invention has been made in view of the above points. An object of the present invention is to reliably detect an information portion in a document and appropriately process a document image based on the detection result. A document table on which a document on which the document is recorded is placed, reading means for scanning the document placed on the document table, and the entire surface of the document table as a detection target area, based on an output signal from the reading means First detecting means for detecting a plurality of coordinates corresponding to a plurality of vertices of the document, and detecting a mounting position of the document on the document table defined by the plurality of coordinates detected by the first detecting means. A second detecting means for detecting a plurality of coordinates corresponding to a plurality of vertices of an information portion in the document based on an output signal from the reading means,
A document processing apparatus for processing a document image based on a plurality of coordinates corresponding to a plurality of vertices of an information portion in the document detected by the second detection means. EXAMPLES Hereinafter, the present invention will be described based on preferred examples. FIG. 1-1 shows an external view of a document reading apparatus to which the present invention is applied, and FIG. 1-2 shows a cross-sectional view. The document is placed downward on the platen glass 3 and pressed down on the glass 3 by the document cover 4. The original platen glass side of the original cover 4 is mirror-finished for original detection described later. The original is irradiated by the fluorescent lamp 2 and the reflected light is condensed on the surface of the CCD 1 via the mirrors 5 and 7 and the lens 6. The mirrors 7 and 5 move at a constant speed while applying a PLL by a DC servomotor at a relative speed of 2: 1. Thus, the image of the entire original is photoelectrically read by the CCD 1 sequentially for each line. The maximum document size that can be processed by this document reading device is A3 size, and the resolution is 400 dots / inch.
The number of 1 bits requires 4678 (= 287 / 25.4 × 400) bits. Therefore, the present device uses a 5000-bit CCD in which about 5000 photoelectric conversion elements are arranged in a line. If the main scanning cycle is 352.9 μsec (= 10 6 /180×25.4/400), the optical system composed of the mirror 7 and the lamp 2 at the same magnification is 180 m
It moves at a speed of m / sec. FIG. 2 is a system block diagram of the document reading apparatus. The CCD reading unit 301 includes a CCD, a clock driver for the CCD, a signal amplifier from the CCD, and an A / D converter for A / D converting the signal. Image data converted into a 6-bit digital signal is output from the CCD reading unit 301, and a shading correction unit 302 is output.
Is input to A shading correction unit 302 detects a shading amount of a light source and a lens included in the image data and removes the shading amount from the image data.
After performing the correction, the image data is stored in the shift memory unit 303.
Is stored temporarily. The shift memory unit 303 has two lines of shift memories. When the image data of the Nth line is written in the first memory, the image data of the (N-1) th line is read from the second memory. The shift memory unit 303 also includes a write address counter for writing image data to the shift memory, a read address counter for reading, and an address selector circuit for switching address signals from the two counters. Details are shown in FIG. Further, the scaling / movement processing unit 304 changes the clock for writing image data to the shift memory and the clock for reading from the shift memory and the timing for reading the image data, thereby performing image scaling and movement in the main scanning direction. The image data output from the shift memory unit 303 is input to the density processing unit 305, where the image data is subjected to binarization processing and dither processing to become a binary signal, which is output to the trimming processing unit 306. The trimming processing unit 306 forcibly processes an arbitrary section of the main scanning line image data into “0” or “1”, and performs image editing such as trimming of a desired area image and masking of an unnecessary image. Further, the binary signal output from the trimming processing unit 306 is also input to the document position detection unit 307. Here, the position coordinates of the document on the platen glass 3 and the information portion in the document are detected using the binary signal. The CPU unit 308 includes a CPU, a ROM, a RAM, a timer circuit, and an I / O interface. The CPU unit 308 controls the operation unit 310, and controls operation of each unit according to settings from an operator using the operation unit 310. And a device for outputting image data, such as a printer, is controlled by serial communication. Reference numeral 311 denotes a DC servo data driver which controls the speed of the motor 315 according to the speed data in accordance with the magnification preset by the CPU 308. A fluorescent lamp driver 312 controls on / off of the fluorescent lamp 316 and control of the amount of light when the fluorescent lamp 316 is turned on. 313,314
Is the position of the optical system consisting of the lamp 2 and the mirror 7
08 is a position sensor to know. An external unit (output device of image data) such as a printer is connected via a connector JR1 and a connector JP1 of the external unit. Then, control signals required for serial communication such as image data communication and commands are exchanged between the apparatus and the external unit. In the clock generator 309, the transfer clock of the CCD signal and the read / read of the shift memory are synchronized with the horizontal synchronization signal.
A light clock or the like is generated. As a horizontal sync signal,
For example, BD synchronized with image recording of each line from printer
(Beam Dececc) signal may be received, or may be generated internally without being supplied from the outside. FIG. 3 shows a circuit diagram of the second illustrated shift memory unit 303. For simplification of description, one of the two shift memories will be described. Write address counter
Reference numeral 904 denotes an address counter for writing data to the shift memory 907, and read address counter 905 is an address counter for reading data from the shift memory 907. The address selector 906 receives a command from the CPU 308 via the I / O port 901 and selects either the address signal of the write address counter 904 or the address signal of the read address counter 905 to address the shift memory 907. It is. The I / O registers 902 and 903 are a write address counter 904 and a read address counter 905.
Is a register for the CPU 308 to give a preset value to each. The write address counter 904 and the read address counter 905 are both down counters, each of which receives a WST signal and an RST signal for instructing the start of a count operation, and outputs a write clock WCLK to the shift memory and a read clock RCLK from the shift memory. Is entered. 915 and 916 are exclusive OR gates for determining the image area, OF is a signal for controlling it, and when "1", ST counter
912, determined by EN counter 913. The inside of the frame is masked, the outside of the frame is set as the output image, and the time frame of “0” is set as the output image, and the outside of the frame is masked. Reference numeral 910 denotes an output from the shift memory 907, and a density processing unit 908.
Is an AND gate for controlling the output of image data that has been converted into a binary signal, 917 is an AND gate for determining whether to output the mask portion as white or black, and PB is a signal for controlling the mask portion. When "1", black is output, and when "0", white is output. 911 converts the image data output by gates 910 and 917 to VI
An OR gate for outputting as DEO, 909 is an exclusive OR gate for controlling black-and-white inversion of image data, IN is a signal for controlling the same, and when it is 1, it is the original image and when it is 0, it is inverted. Each signal is output by the CPU 308 in the mode specified by the operator. An ST counter 912 and an EN counter 913 are a start bit counter and an end bit counter for outputting an image only to a predetermined area, respectively.
PU308 presets the count data for the gate. The flip-flop 914 is set at the count-up of the ST counter 912, and reset at the count-up of the EN counter 913. Fig. 7 shows ST counter 12, EN counter 913
Shows the operation when the image data in the frame determined by the above is output and the outside of the frame is masked as white. That is, when the OF signal is “0”, the F / F
When the Q of "1" becomes "1", the output of the gate 915 becomes "1", and from that point on, the gate 910 outputs the input image data until the EN counter 913 counts up. on the other hand,
Outside the output period of the image data, the output of the gate 916 is "1", so when the BB signal is "0", the output of the gate 917 is "0", and the gate 911 outputs "0", which becomes a white mask. . Conversely, when OF = "0" and BB = "1", the outside of the frame is black masked. When OF = 1, the gates 915, 916 are used from the count up of the ST counter 912 to the count up of the EN counter 913.
Are “0” and “1” during that time, so BB =
When "1", the inside of the frame is masked black, and when BB = "0", the inside of the frame is masked white. FIG. 4 shows a circuit diagram for detecting coordinates in the second illustrated document position detecting unit 307. In addition, FIG.
The original ORG placed on top is shown. The main scanning counter 351 is a down counter, and indicates a scanning position in one main scanning line. This counter is set to the maximum value in the main scanning direction (X direction) by the horizontal synchronization signal HSYNC, and counts down every time the image data clock CLK is input. The sub-scanning counter 352 is an up counter, and is set to “0” at the rising edge of VSYNC (image leading edge signal).
The count value is incremented by the HSYNC signal to indicate the scanning position in the sub-scanning direction. The entire surface of the document table 3 is read by pre-scanning performed before document reading scanning, and the gate is converted into a binary image for black and white reversal.
The image data VDO that has passed through 909 is stored in the shift register 301 as 8
Entered in bit units. When the 8-bit input is completed, the gate circuit 302 checks whether all of the 8-bit data is a white image, and outputs "1" to the signal line 303 if all of the 8-bit data is a white image. That is, after the start of the pre-scan, when the first 8-bit white appears, the F / F 304 is set by the "1" output of the signal line 303. This F / F 304 is reset by VSYNC in advance. Thereafter, it remains in the set state until the next VSYNC comes. When the F / F 304 is set, the latch F / F 305 is loaded with the value of the main scanning counter 351 at that time. This is the fifth
It becomes X 1 coordinate values in FIG. The value of the sub-scanning counter 350 at that time to latch 306 is loaded, it is Y 1 coordinate values in Figure 5. Therefore, P 1 (X 1 , Y 1 ) is obtained. Each time "1" is output to the signal 303, the main scanning counter 3
Load the value from 51 into the latch 307. When the value from the main scan counter 351 at the time when the first eight bits of white appear is loaded into the latch 307, the data of the latch 310 (which is set to the maximum value in the X direction at the time of VSYNC) and the comparator The size is compared at 309. If the data of the latch 307 is smaller, the data of the latch 307 is loaded into the latch 310. At this time, the value of the sub-scanning counter 352 is
Loaded at 11. This operation is processed until the next 8 bits enter the shift register 301. If the data of the latches 307 and 310 is applied to the entire image area in this manner, the minimum value in the original area X direction remains in the latch 310, and the Y value at this time remains.
The coordinates of the direction will remain on the latch 311. Since the main scanning counter 351 is a down counter, the coordinates corresponding to the minimum value in the X direction represent the coordinates farthest from the SP in the main scanning direction.
This is P 3 (X 3 , Y 3 ) in FIG. F / F 312 is a flip-flop that is set when the first 8-bit white appears on each main scanning line, is reset by the horizontal synchronizing signal HSYNC, and is set with the first 8-bit white.
Hold until the next HSYNC. When the F / F 312 is set, the value of the main scanning counter corresponding to the position of the first white signal appearing in one line is set in the latch 313. Then, the size is compared by the latch 315 and the comparator 316. A minimum value "0" in the X direction is set in the latch 315 at the time of occurrence of VSYNC. If the data of Ratch 315 is Ratch 3
If the data is less than or equal to 13, the signal 317 becomes active and the data in the latch 313 is loaded into the latch 315. This operation is performed between HSYNC and HSYNC. When the above comparison operation is performed for all image areas, the maximum value of the document coordinates in the X direction, that is, the X coordinate of the white signal at the point closest to the scanning start point in the main scanning direction remains on the latch 315. This is X 2 in FIG. When the signal line 317 outputs, the value from the sub-scanning counter 352 is loaded into the latch 318. This becomes Y 2 in FIG. 5 and P 2 (X 2 , Y 2 )
The coordinates are obtained. The latches 319 and 320 are loaded with the value of the main scanning counter 351 and the value of the sub-scanning counter 352 each time 8-bit white appears in the entire image area. Therefore, when the original pre-scanning is completed, the count value at the time when the 8-bit white finally appears remains in the counter. This is the fifth
P 4 (X 4 , Y 4 ) in the figure. The above eight latches (306,311,320,318,305,310,315,
The data line 319) is the bus line B of the CPU unit 308 in FIG.
The data is connected to the US, and the CPU unit 308 reads this data at the end of the prescan. As a result, the CPU unit 308
The coordinate values of the four corners of the original on the upper side can be obtained, whereby the position of the original and the size of the original can be recognized.
Further, the inclination state of the document may be determined. FIG. 5A shows how the coordinates of the four corners P 1 , P 2 , P 3 , and P 4 of the document placed obliquely on the platen are detected. It is not placed diagonally like this,
As shown in FIG. 5 (b), the document is placed parallel to or against the side of the document table, so that coordinates X2, X3, Y1, and Y4 may be used as information indicating the position and size of the document. FIG. 9 shows a document coordinate detection scan control flow by the CPU unit 308, which will be described below. FIG. 6A shows an example of a document to be read. This document has character information described only in the lower right corner. First, the three control signals shown in FIG. 3 are set to IN = 0, OF = 0, BB = 1.
(ST900), the same value as ST counter 912 and EN counter 913 which are counters for trimming, for example, 0
Set (SP901). In this operation, the image data VDO input to the document position detecting unit shown in FIG. 4 always becomes a black signal. Then, advance of the optical system is started for pre-scanning (SP
902), when reaching the SP position in FIG. 6B (the end of the document table 3: the Y coordinate value corresponds to 0), ST for trimming is performed.
The XMIN equivalent value is set in the counter and the XMAX equivalent value is set in the EN counter (SP905). XMIN and XMAX correspond to the platen glass, that is, the readable main scanning area. Also, by this operation, the VDO signal reflects the image information inside the platen glass as black and white as it is, so the outside of the original on the platen glass is read black by reading the mirror surface of the document holding cover, while The background part without information becomes white, and the information part becomes black. After continuing this control to the right end of the platen, that is, the EP position in FIG. 6B corresponding to the end of the platen (SP906),
Set the same value to both ST and EN counters 912 and 913 again (SP90
8) Set all VDO signals after EP to black. When the optical system reaches the reverse position TP, the optical system is stopped (SP
909, SP910). FIG. 8A shows the state of the read image during this time. The sloping portion is a region outside the trimming that is forcibly made black by BB = 1, and a black portion is a region inside the trimming that is a black portion as read, in which white information is included in both main scanning and sub-scanning directions. The first and last appearing coordinates are DX0, DX1, DY0, DY1, indicating the coordinates of the original sheet. When the optical system reaches the TP, these coordinates are latched on the respective latches of the document position detecting unit shown in FIG. 4 and these coordinate values are set in an area on the RAM of the CPU unit 308. After that (SP911), the process proceeds to the coordinate detection operation of the information portion in the document sheet. First, IN = 1, OF = 0, and BB = 1 are set (SP912), and control is performed so that the VDO signal in the trimming area is inverted between black and white, and the VDO signal outside the trimming area is always black. First, set the ST counter 912 and EN counter 91 so that all VDO signals are black.
The same value is set to 3 (SP913), and the backward movement of the optical system is started (SP914). Then, the right end DY of the original sheet detected by the optical system in the forward movement
When the position reaches 1 (SP915), the reference point DX0 is set to the ST counter 912 in the main scanning direction of the document, and the DX1 far from the reference point is set to the EN counter 913 (SP916).
By this control, the VDO signal in the original is inverted between black and white and black outside the original. This is continued until the left end DY0 of the original, and D
When the value reaches Y0 (SP917), the same value is set again in the ST counter and the EN counter, and all the images are set to black. When reaching HP, stop the optical system (SP920). The state of the VDO signal at the time of this return is shown in FIG. The shaded portion is forcibly made black, and the black portion is the background portion in the document, which is black because of black and white reversal. Then, the information part becomes white. Accordingly, the document position detecting unit shown in FIG.
IX1, IY0, and IY1 are detected as shown in FIG.
Set the area on the 308 RAM (SP921). The HP, SP interval and EP, TP interval shown in FIG. 6 (b) are predetermined distances required to start the optical system at a constant speed by PLL control, and the rising time is known. Also, EP, DY1 interval, DY0, SP
The distance becomes clear when DY0 and DY1 are detected during the forward movement, and the optical system moves at a constant speed between EP and SP, so that the time required for the movement becomes known, and the control described in FIG. It becomes possible. As described above, the position coordinates of the document sheet are detected in the forward movement, and the position coordinates of the information section in the document can be detected using the result. Therefore, from the position information of the information section in the document, the CPU section 308 can know the position of the information section on the document table and the size of the information section. And, based on this location information,
Set the values of ST counter 912 and EN counter 913 described above,
When a document is read, only the information section can be extracted and output, and a noise image generated in an edge portion or the like of the document can be efficiently removed. Also, for example, if the size of the information section is determined based on the position information and the recording material of the printer is selected in this way, the image can be recorded on the recording material suitable for the size of the information section. Further, it is possible to control the image shift amount of the trimming processing unit 306 based on the position information of the information unit, and perform processing such as recording the information unit at an appropriate position (for example, the center) on the recording material of the printer. Also, when the read image data is stored and stored in an electronic file device or the like or transmitted as in a facsimile device, only image information from which useless information such as a blank portion is removed according to the position information of the information section is stored. It can be stored or transmitted, thereby enabling efficient use of the file device and improvement of transmission efficiency. [Effects] As described above, according to the present invention, instead of detecting the position of the information portion in the original document using the entire surface of the original platen on which the original is placed as a detection target area, first, the entire surface of the original platen is detected. A plurality of coordinates corresponding to a plurality of vertices of the document are detected as a detection target area, and a placement position of the document on the platen defined by the detected plurality of coordinates is set as a detection target area, and information in the document is detected. Since a plurality of coordinates corresponding to a plurality of vertices of the portion are detected, for example, it is erroneously recognized that the information portion exists outside the mounting position of the document on the platen if the platen or the document holding plate is dirty. Even if there is a possibility that the document may not be placed on the original platen, a plurality of coordinates corresponding to a plurality of vertices of the information portion in the document are detected using the placement position of the document as the detection target area, Outside position Without erroneous recognition when the information portion exists, the information portion of the document can be reliably detected, thus, it is possible to process the original image properly based on the detection result.

【図面の簡単な説明】 第1−1図は原稿読取装置の外観図、第1−2図は原稿
読取装置の構成図、第2図は原稿読取装置のブロツク回
路図、第3図はシフトメモリ部に係るブロツク図、第4
図は原稿位置検知部に係るブロツク図、第5図は原稿台
上の原稿の様子を示す図、第6図は座標検出の概念図、
第7図はトリミング制御のタイミングチヤート図、第8
図は座標検出時の画像の様子を示す図、第9図は制御フ
ローチヤート図であり、301はCCD読取部、303はシフト
メモリ部、306はトリミング処理部、307は原稿位置検知
部、308はCPU部である。
BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1-1 is an external view of a document reading apparatus, FIG. 1-2 is a block diagram of the document reading apparatus, FIG. 2 is a block circuit diagram of the document reading apparatus, and FIG. Block diagram of memory section, fourth
FIG. 5 is a block diagram relating to a document position detecting unit, FIG. 5 is a diagram showing a state of a document on a platen, FIG.
FIG. 7 is a timing chart of the trimming control, and FIG.
FIG. 9 is a diagram showing a state of an image at the time of coordinate detection. FIG. 9 is a control flow chart. Denotes a CPU unit.

Claims (1)

(57)【特許請求の範囲】 1.情報が記録された原稿が載置される原稿台と、 前記原稿台上に載置された原稿を走査する読取手段と、 前記原稿台全面を検出対象領域とし、前記読取手段から
の出力信号に基づいて原稿の複数の頂点に対応した複数
の座標を検出する第1検出手段と、 前記第1検出手段により検出された複数の座標によって
規定される前記原稿台上における原稿の載置位置を検出
対象領域とし、前記読取手段からの出力信号に基づいて
原稿内における情報部分の複数の頂点に対応した複数の
座標を検出する第2検出手段と、 前記第2検出手段により検出された原稿内における情報
部分の複数の頂点に対応した複数の座標に基づいて原稿
画像を処理する処理手段とを有することを特徴とする原
稿処理装置。
(57) [Claims] A document table on which a document on which information is recorded is placed; reading means for scanning the document placed on the document table; and an entire surface of the document table as a detection target area, and an output signal from the reading means. First detecting means for detecting a plurality of coordinates corresponding to a plurality of vertices of the document based on the plurality of coordinates, based on the plurality of coordinates detected by the first detecting means, for detecting a mounting position of the document on the document table A second detection unit configured to detect a plurality of coordinates corresponding to a plurality of vertexes of an information portion in the document based on an output signal from the reading unit as a target area; and a plurality of coordinates in the document detected by the second detection unit. Processing means for processing the document image based on a plurality of coordinates corresponding to a plurality of vertices of the information portion.
JP62017054A 1987-01-26 1987-01-26 Document processing device Expired - Fee Related JP2862235B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP62017054A JP2862235B2 (en) 1987-01-26 1987-01-26 Document processing device
US07/147,357 US4899227A (en) 1987-01-26 1988-01-21 Image processing apparatus detecting the size or position of an information portion of an original

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62017054A JP2862235B2 (en) 1987-01-26 1987-01-26 Document processing device

Publications (2)

Publication Number Publication Date
JPS63184461A JPS63184461A (en) 1988-07-29
JP2862235B2 true JP2862235B2 (en) 1999-03-03

Family

ID=11933278

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62017054A Expired - Fee Related JP2862235B2 (en) 1987-01-26 1987-01-26 Document processing device

Country Status (1)

Country Link
JP (1) JP2862235B2 (en)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6033778A (en) * 1983-08-05 1985-02-21 Konishiroku Photo Ind Co Ltd Method for detecting original
JPS61242458A (en) * 1985-04-19 1986-10-28 Minolta Camera Co Ltd Original detector

Also Published As

Publication number Publication date
JPS63184461A (en) 1988-07-29

Similar Documents

Publication Publication Date Title
US4899227A (en) Image processing apparatus detecting the size or position of an information portion of an original
JPH0818764A (en) Device for rectangular processing in intra-frame area
JP2862235B2 (en) Document processing device
JPS63125954A (en) Copying device
JP3179456B2 (en) Image editing device
US6674920B1 (en) Image processing apparatus
JP2547759B2 (en) Image processing device
JP3384208B2 (en) Image reading device
JPS63196163A (en) Original processor
JPS62239662A (en) Original document processor
JP2547748B2 (en) Image processing device
JP3638708B2 (en) Image playback device
JP2886870B2 (en) Document reading device
JP2728645B2 (en) Image magnification device
JPH05114996A (en) Image reader
JP2857937B2 (en) Planar scanning type image reading device
JP3014257B2 (en) Document reading device
JPH0636553B2 (en) Image processing device
JPH04335768A (en) Image forming device
JPS6346872A (en) Image processing device
JPH04132452A (en) Picture reader
JPS62208753A (en) Original reader
JPH01115267A (en) Image reader
JPS63172569A (en) Original reader
JP2003158625A (en) Image processing apparatus and method

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees