JP3684050B2 - Image processing method and apparatus - Google Patents

Image processing method and apparatus Download PDF

Info

Publication number
JP3684050B2
JP3684050B2 JP30864497A JP30864497A JP3684050B2 JP 3684050 B2 JP3684050 B2 JP 3684050B2 JP 30864497 A JP30864497 A JP 30864497A JP 30864497 A JP30864497 A JP 30864497A JP 3684050 B2 JP3684050 B2 JP 3684050B2
Authority
JP
Japan
Prior art keywords
image
document
document images
orientation
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
JP30864497A
Other languages
Japanese (ja)
Other versions
JPH11146188A (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 JP30864497A priority Critical patent/JP3684050B2/en
Publication of JPH11146188A publication Critical patent/JPH11146188A/en
Application granted granted Critical
Publication of JP3684050B2 publication Critical patent/JP3684050B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Image Processing (AREA)
  • Editing Of Facsimile Originals (AREA)
  • Image Analysis (AREA)

Description

【0001】
【発明の属する技術分野】
本発明は、原稿画像の方向を自動的に判別して、その原稿画像の画像データの処理を行う画像処理方法及び装置に関するものである。
【0002】
【従来の技術】
従来、例えば複写機では、4イン1と呼ばれるように、4枚の原稿を1枚の複写用紙に縮小して複写するモードがある。この場合、複数の原稿の内の1枚目の原稿画像の向きを判断し、その原稿に後続する3枚の原稿も同じ向きであると判断して、複写出力の方向を決定していた。
【0003】
【発明が解決しようとする課題】
しかし上述したような方法では、方向の異なる原稿が混在する場合や、原稿の両面複写を同時併用する際にはユーザーが望むような複写が得られない場合があった。そこで、このような場合に対応するには、原稿1枚毎、スキャナ等の光学的読み取り装置により読み取り、その読み取った原稿情報(画像データ)の文字を認識することにより、各原稿における文書方向を判断してその方向に応じた画像処理を行って上述の複写処理を行うことができる。
【0004】
しかし、このように各原稿毎にスキャナ等の光学的読み取り装置により原稿画像を読取り、その読み取った原稿情報(画像データ)の文字を認識することにより原稿の方向を判断する方法は多くの時間がかかるという問題があった。
【0005】
本発明は上記従来例に鑑みてなされたもので、1枚目と2枚目の原稿の向きを判断し、これら1枚目と2枚目の原稿画像の向きが同一の場合には後続の原稿画像の向きも同じであると推定して原稿向きの判定処理を省略し、画像処理に要する時間を短縮させた画像処理方法及び装置を提供することを目的とする。
【0006】
また本発明の目的は、例えば4イン1コピー等のように、複数の原稿を縮小して1枚の用紙に印刷する場合には、各4枚単位毎に1枚目と2枚目の原稿画像の向きを判断し、それら2枚の原稿画像の向きが同じ場合には後続の3枚目と4枚目の原稿画像の向きの判断を省略して、画像処理に要する時間を短縮させた文書処理方法及び装置を提供することを目的とする。
【0007】
また本発明は、複数の原稿のうち、連続して同じ向きの原稿があるときは、後続の原稿の向きも同じ向きであると判断して、後続の原稿に対する原稿向きの判定処理を省略し、画像処理に要する時間を短縮させた画像処理方法及び装置を提供することを目的とする。
【0008】
【課題を解決するための手段】
上記目的を達成するために本発明の画像処理装置は以下のような構成を備える。即ち、
原稿画像の画像データを入力する画像入力手段と、
前記画像入力手段により入力された原稿画像の向きを判別する方向判別手段と、
前記方向判別手段により判別された1枚目と2枚目の原稿画像の向きが同じかどうかを判定する判定手段と、
前記判定手段の出力に応じて、前記画像入力手段により入力された複数の原稿画像を1枚の記録媒体に記録するように前記画像データを編集する画像編集手段と、
前記画像編集手段により得られた画像データを記録する画像記録手段とを有し、
前記画像編集手段は、前記判定手段により1枚目と2枚目の原稿画像の向きが同じであると判定されると後続の原稿画像の向きも同一であるとして画像データの編集を行うことを特徴とする。
上記目的を達成するために本発明の画像処理装置は以下のような構成を備える。即ち、
原稿画像の画像データを入力する画像入力手段と、
前記画像入力手段により入力された原稿画像の向きを判別する方向判別手段と、
前記方向判別手段により判別された原稿画像の向きが複数枚連続して同じかどうかを判定する判定手段と、
前記判定手段の出力に応じて、前記画像入力手段により入力された複数の原稿画像を1枚の記録媒体に記録するように前記画像データを編集する画像編集手段と、
前記画像編集手段により得られた画像データを記録する画像記録手段とを有し、
前記画像編集手段は、前記判定手段により複数枚の原稿画像の向きが連続して同じであると判定されると後続の原稿画像の向きも同一であるとして画像データの編集を行うことを特徴とする。
【0009】
また上記目的を達成するために本発明の画像処理方法は以下のような工程を備える。即ち、
原稿画像の画像データを入力する入力工程と、
前記入力工程で入力された原稿画像の向きを判別する方向判別工程と、
前記方向判別工程で判別された1枚目と2枚目の原稿画像の向きが同じかどうかを判定する判定工程と、
前記判定工程での判定結果に応じて、前記入力工程で入力された複数の原稿画像を1枚の記録媒体に記録するように前記画像データを編集する画像編集工程とを有し、
前記画像編集工程では、前記判定工程で1枚目と2枚目の原稿画像の向きが同じであると判定されると後続の原稿画像の向きも同一であるとして画像データの編集を行うことを特徴とする。
また上記目的を達成するために本発明の画像処理方法は以下のような工程を備える。即ち、
複数枚の原稿画像からなる一連の原稿画像の画像データの編集を行う画像処理方法であって、
前記一連の原稿画像に含まれる原稿画像の向きを判別する方向判別工程と、
前記方向判別工程で判別された前記一連の原稿画像のうちの1枚目と2枚目の原稿画像の向きが同じかどうかを、前記方向判別工程にて前記一連の原稿画像の3枚目以降の原稿画像の向きを判別する前に判定する判定工程と、
前記方向判別工程での原稿画像の方向判別結果に従って、前記一連の原稿画像を1枚の記録媒体に記録するように画像データの編集を行う画像編集工程とを有し、
前記画像編集工程では、前記判定工程で前記一連の原稿画像のうちの1枚目と2枚目の原稿画像の向きが同じであると判定された場合、前記方向判別工程にて前記一連の原稿画像の3枚目以降の原稿画像の向きを判別することなく、前記1枚目と2枚目の前記原稿画像の向きに従って前記一連の原稿画像の画像データの編集を行い、前記判定工程で前記一連の原稿画像のうちの1枚目と2枚目の原稿画像の向きが同じではないと判定された場合、前記方向判別工程で前記一連の原稿画像の3枚目以降の原稿画像の向きを判別したうえで、前記一連の原稿画像の画像データの編集を行うことを特徴とする。
更に上記目的を達成するために本発明の画像処理方法は以下のような工程を備える。即ち、
原稿画像の画像データを入力する画像入力工程と、
前記画像入力工程で入力された原稿画像の向きを判別する方向判別工程と、
前記方向判別工程で判別された原稿画像の向きが複数枚連続して同じかどうかを判定する判定工程と、
前記判定工程の判定結果に応じて、前記画像入力工程で入力された複数の原稿画像を1枚の記録媒体に記録するように前記画像データ編集する画像編集工程と、
前記画像編集工程で得られた画像データを記録する画像記録工程とを有し、
前記画像編集工程では、前記判定工程で複数枚の原稿画像の向きが連続して同じであると判定されると後続の原稿画像の向きも同一であるとして画像データの編集を行うことを特徴とする。
【0010】
【発明の実施の形態】
以下、添付図面を参照して本発明の好適な実施の形態を詳細に説明する。
【0011】
図1は、本実施の形態の画像形成装置(複写機)の構成を説明する断面図である。
【0012】
図において、101は原稿台ガラスであり、原稿自動送り装置(ADF)142から給送された原稿が順次、所定位置に載置される。102は、例えばハロゲンランプ等を有する原稿照明ランプで、原稿台ガラス101に載置された原稿を露光する。103,104,105は走査ミラーであり、図示しない光学走査ユニットに収容され、図1の左右方向に往復動しながら、原稿からの反射光をCCDユニット106に導いている。CCDユニット106は、CCD等の撮像素子108に原稿からの反射光を結像させる結像レンズ107、撮像素子108を駆動するCCDドライバ109等を備えている。撮像素子108からの画像信号出力は、例えば8ビットのデジタルデータに変換された後、コントローラ139に入力される。
【0013】
110は感光ドラムであり、前露光ランプ112によって画像形成に備えて除電される。113は1次帯電器であり、感光ドラム110の表面を一様に帯電させる。117は露光手段であり、例えば半導体レーザ等で構成され、画像処理や装置全体の制御を行うコントローラ139で処理された画像データに基づいて感光ドラム110を露光して、画像データに応じた静電潜像を形成する。118は現像器であり、黒色の現像剤(トナー)が収容されている。119は転写前帯電器であり、感光ドラム110上に現像されたトナー像を用紙に転写する前に高圧をかける。120,122,124は給紙ユニットであり、各給紙ローラ121,123,125の回転駆動により、転写用紙が装置内へ給送され、レジストローラ126の配設位置で一旦停止し、感光ドラム110に形成された画像との書き出しタイミングがとられて再給送される。127は転写帯電器であり、感光ドラム110に現像されたトナー像を、給送される転写用紙に転写する。128は分離帯電器であり、転写動作の終了した転写用紙を感光ドラム110より分離する。尚、転写されずに感光ドラム110上に残ったトナーは、クリーナ111によって回収される。
【0014】
129は搬送ベルトで、転写プロセスの終了した転写用紙を定着器130の位置に搬送し、例えば熱により画像の定着を行う。131はフラッパであり、定着プロセスの終了した転写用紙の搬送パスを、ステイプルソータ132又は中間トレイ137の配置方向のいずれかに制御する。ステイプルソータ132に排紙された用紙は各ビンに仕分けされ、コントローラ139からの指示によりステイプル部141がステイプルを行う。133〜136は給送ローラであり、一度定着プロセスが終了した転写用紙を中間トレイ137に反転(多重)または非反転(両面)して給送する。138は再給送ローラであり、中間トレイ137に載置された転写用紙を再度、レジストローラ126の位置まで搬送する。コントローラ139には、後述するマイクロコンピュータ、画像処理部等を備えており、操作パネル140からの指示に従って、前述の画像形成動作を行う。
【0015】
図2は、本発明の実施の形態の画像形成装置のコントローラ139の構成を示すブロック図である。
【0016】
図2において、201は本実施の形態の画像形成装置全体の制御を行うCPUであり、装置本体の制御手順(制御プログラム)を記憶した読み取り専用メモリ203(ROM)から制御プログラムを順次読み取って実行する。CPU201のアドレスバス及びデータバスは、パスドライバ、アドレスデコーダ回路202を経て各部に接続されている。また、204は入力データの記憶や作業用記憶領域等として用いる主記憶装置であるところのランダムアクセスメモリ(RAM)である。205はI/Oインターフェース・ポートであり、操作者がキー入力を行い、装置の状態等を液晶、LEDを用いて表示する操作パネル140や、給紙系、搬送系、光学系の駆動を行うモータ類207、クラッチ類208、ソレノイド類209、また、搬送される用紙を検知するための紙検知センサ類210等の各負荷に接続される。
【0017】
現像器118には、現像器内のトナー量を検知するためのトナー残量検知センサ211が配置されており、その出力信号がI/Oポート205に入力される。215は高圧制御ユニットであり、CPU201の指示に従って、前述の1次帯電器113、現像器118、転写前帯電器119、転写帯電器127、分離帯電器128への電圧値(高圧)を制御している。
【0018】
206は画像処理部であり、CCDユニット106から出力された画像信号が入力され、後述する画像処理を行って、印刷用の画像データを生成する。こうして生成された画像データに従ってレーザユニット117を駆動する。こうしてレーザユニット117から出力されるレーザ光が感光ドラム110上を照射して露光するとともに、非画像領域において受光センサであるビーム検知センサ213によって、その発光状態が検知され、その出力信号がI/Oポート205に入力される。
【0019】
図3は、本実施の形態の画像形成装置におけるコントローラ139の画像処理部206の機能構成を示す機能ブロック図である。
【0020】
CCD108により出力される電気信号に変換された画像信号は、まずシェーディング回路301によって画素間のばらつきが補正された後、変倍回路302において縮小コピー時はデータの間引き処理が行なわれ、拡大コピー時にはデータの補間が行われる。次に、エッジ強調回路303において、例えば5×5のウインドウで2次微分を行って画像のエッジを強調する。この画像データは輝度データであるので、最終的に半導体レーザに出力するための濃度データに変換するためγ変換回路304でテーブルサーチによりデータ変換を行う。こうしてガンマ変換回路304で濃度データに変換された画像データは、2値化処理回路305に入力される。ここで例えばED(誤差拡散)法により多値データを2値データに変換する。こうして2値データに変換された画像データは、合成回路307に入力され、その入力された画像データと、例えばDRAMにより構成される画像用メモリ310の画橡データとを選択的、或は論理和をとって出力する。この画像用メモリ310に対するリードライト制御はメモリ制御部309で行われ、画像を回転させる場合は画像メモリ310の画像データの読み出しアドレスを制御することにより行われる。こうして合成回路307から出力された画像データは、半導体レーザの発光強度の信号に変換するためにPWM回路308に入力され、画像の濃度に従ったパルス幅の信号を露光手段117に出力する。また、変倍回路302から出力される画像データは文書方向判別部306に入力され、後述する文書方向の判別処理が実行される。
【0021】
次に図4〜図9を参照して、本実施の形態の文書方向判別部の動作について説明する。
【0022】
図4は文書方向判別部306の構成を示すブロック図である。
【0023】
図4において、シェーディング回路301から出力された画像データはCPU/メモリ部401に入力され、ここで画像データが一時的に保存されると共に各種制御が行われる。このCPU/メモリ部401は、コントローラ139のCPU201と、例えば図示しないデュアルポートRAM等を介してバス接続されており、これらの間でデータの送受信が行われる。尚、このデータ通信はもちろんシリアル通信でもよい。
【0024】
文字認識/方向判別部402は、文書の方向を一番正確に表しているのは文字の方向であることに着目し、文書中の数種類の文字領域を0°,90°,180°,270°の各方向から文字認識を行い、それら各方向における文字認識の精度(文字認識の自信度:文字の特徴分布に対する距離)の中で一番精度の高い方向を求めて、それを文書方向とする。領域分離部403は、文字認識/方向判別部402による文字認識・方向判別処理を行うための前処理として、文書画像データより文字部、図形部、自然画部、表部などを、それぞれ矩形の領域に分離して、各領域の属性(文字部など)を付加する処理を行う。記憶部404は、例えば、ハードディスクや光磁気ディスクなどを有し、各種データの処理結果(画像データ、領域分離結果、文字認識結果など)を保存するために利用される。I/F部405は、例えばSCSIやRS232Cなどのインターフェース仕様により動作するインターフェース部で、コンピュータ406との間でのデータ伝送を制御している。コンピュータ406は、I/F部405を介して情報を得たり、記憶部404に記憶されたデータを獲得して利用する。
【0025】
次に、本実施の形態における文書方向自動判別・補正、および文字認識処理の概要を図5のフローチャートに従って説明する。
【0026】
ステップS1で入力された画像データ(多値画像)は、ステップS2で、領域分離部403により、文字部、図形部、自然画部、表部などの属性別に矩形の領域に分離される。ここで実際には、矩形で囲まれた領域情報を作成する。
【0027】
次にステップS3に進み、各属性より文字領域の矩形情報を抽出する。ここで文字額域とは、文章部、タイトル部、表中の文字、図のキャプション部などである。
【0028】
例えば、図6(a)(c)に示す文書の場合は、それぞれ図6(b)(d)に示したような文字領域の矩形情報が抽出される。そして、これらの中の数ブロックを用いて、そこに含まれる文字を回転角0°で認識する。次にステップS5に進み、その文字を90°回転させ、ステップS6で、0°、90°、180°および270°の4つの回転方向のそれぞれに対して文字認識を行ったかを調べ、これら4つの回転方向での文字認識が終了するまでステップS4〜S6を繰返し実行する。
【0029】
こうしてこれら4つの方向での文字認識結果が得られるとステップS7に進み、図8(c)に示すような各回転角における自信度に基づいて、その文字の方向を決定する。こうしてステップS8に進み、最終的に文字認識された回転角に従って文字列の方向が決定され、更に、これに対応する領域分離情報と文字認識情報が得られる。
【0030】
ステップS5の画像回転処理における一つの方法としては、全回転画俊データに対して再び領域分離処理を行う方法、もう一つは、アドレス変換を領域分離結果にかける方法がある。この領域分離処理は、一般に画像が正方向を想定しているため、初期の段階で行った領域分離処理と回転画像データに対して行った領域分離処理との結果が異なる場合が多い。それゆえ、前者の方法を取るのが望ましい。
【0031】
この処理結果は、I/F部405を介してコンピュータ406に伝送され、コンピュータ406のファイリングのアプリケーション・プログラム等で利用される。また、コントローラ139のCPU201へ各画像毎に送信される。
【0032】
次に、文字認識処理を用いた文書方向判別の手法について説明する。
【0033】
[領域分離処理]
文書画像データにおける黒画素を検出してゆき、輪郭追跡、またはラベリング方式により、黒画素ブロックの矩形枠を作成する。次に、その矩形の中の黒画素密度、隣接矩形ブロックの有無、矩形の縦横比率などを判断基準にして、文字領域(タイトル、本文、キャプションなど)、図形領域、自然画領域、表領域などを判別する。この判別結果により文字額域の矩形領域が判別される。
【0034】
[文字認識処理]
文字認識処理の一つの方法として、特徴ベクトル抽出、比較方式がある。例えば図7(a)に示したように、「本」という文字を含む文字領域が判別されたとする。第一段階として、この文字領域について文字切り出し処理を行う(図7(b)参照)。これは、一つの文字の矩形を切り出す処理で、黒画素連続性の状態を検出していければ求められる。
【0035】
第二段階として、一文字をm×n(例えば64×64)の画素ブロックに切り出す(図7(c)参照)。そして、その中から3×3画素のウインドウを用いて、黒画素の分布方向を抽出する(方向ベクトル情報:図7(d)参照)。
【0036】
なお、図7(d)は、方向ベクトル情報の一部を例示したものであり、上記3×3画素のウインドウをずらしてゆき、方向ベクトル情報を数十個得る。このベクトル情報が文字の特徴となる。このベクトル情報(特徴ベクトル)と予め記憶されている文字認識辞書の内容とを比較して、特徴ベクトルに特徴が一番近い文字から順番に文字を抽出する。この場合、特徴ベクトルに特徴が近い順番に第1候補、第2候補、…となる。この特徴ベクトルに対する特徴の近さが、その文字に対する距離の近さ、即ち、文字認識の自信度(精度、尤度)を示す数値になる。
【0037】
[文字方向判別処理]
このようにして文字認識の自信度が求められるが、その自信度に基づいた文字方向判別処理を、図8に示した「本発明の名称」という文字列の場合を用いて説明する。
【0038】
図8(a)は正方向の文字列を示し、図8(b)は、その文字列を270°回転した文字列である。ここで文字「本」に注目すると、文字方向を判別する場合は、図8(c)に示したように、1つの文字「本」について0°,90°,180°,270°の4方向から文字認識を行ってみる。これら回転角度のそれぞれは、文字矩形の領域の読み出し方を変更すればよく、特に原稿を回転する必要はない。
【0039】
各回転角度における文字認識結果は、図8(c)に示したように、互いに異なっている。なお、図8(c)には説明用の仮の文字認識結果および自信度が示されており、現実にこの通りになるとは限らない。
【0040】
図8(c)において、正方向(0°)から文字認識を行った場合は、「本」と正しく認識され、自信度も“0.90”と高い値となる。90°回転した方向から文字認識を行った場合は、「町」と誤認識され、自信度も“0.40”と低下する。このように誤認識が発生し、自信度も低下するのは、回転した方向から見た場合の特徴ベクトルに基づいて文字認識を行ったからである。同様に180°,270°回転した方向から文字認識を行った場合も誤認識が発生し、自信度も低下する。尚、文字認識の方向別の自信度は、複雑な文字であればあるほど、その差が顕著に現れてくる。
【0041】
図8(c)の結果は、正方向の場合に自信度が1番高いため、文書は正方向に向いている可能性が高いと判断される。このような文字方向の判別精度を向上させるため、同一ブロック内の複数の文字について、同様に4方向から文字認識を行ってみる。更に、1つのブロックだけで文字方向を判別した場合、特殊な文字列について文字方向を誤って判別するおそれがあるので、複数のブロックについて同様の文字認識を行ってみる。そして、各ブロックについて、当該ブロック内の各認識対象文字の4方向別の自信度の平均値を求め、さらに、各ブロックでの4方向別の自信度の平均値に対する平均値を求め、この平均値が最も高い方向を文字方向(文書方向)として認定する。
【0042】
このように、1文字だけの自信度で文字方向を認定することなく、同一ブロック内の複数文字、更には同一ブロック内の複数文字の自信度で文字方向を認定することにより、文字(文書)方向を高精度に判別することが可能となる。ただし、1文字だけの自信度で文字方向を判別したり、あるいは同一ブロック内の複数文字の自信度で文字方向を判別しても、従来よりも高精度に文字方向を判別できる。
【0043】
次に、文字方向(文書方向)の判別結果が正方向以外の方向であるときは、文字方向が正方向になるように原画像を回転する。この回転は、図4のCPU/メモリ401を用いて公知の技術により簡単に行うことが可能であり、その説明を省略する。
【0044】
以上のような処理により、図9(A)に示した原画像データ、図9(B)に示した領域分離データ、図9(C)に示した文字認識情報を得ることができる。これらの情報は前述のようにコントローラ139のCPU201に送られ、各種画像処理、各種制御に使用する。
【0045】
ここで領域分離データのデータ形式は図9(B)に示したように、領域分離データである旨を示す「header」と、分離した領域の識別子「rect1」〜「rect4」により構成され、これら識別子で区別された各領域(ブロック)の情報は、ブロックの番号「order」、ブロックの属性(文字部、図形部など)「att」、ブロックの左上の座標値「x1」および「y1」、ブロックの幅「w」、ブロックの高さ「h」、縦書き又は横書きを示す「direction」、当該ブロックのIDである「selfID」、当該ブロックを包含する親ブロックのIDである「upperID」、親ブロックの属性「upperAtt」、予備領域「reserve」により構成されている。
【0046】
また、文字認識情報は、図9(C)に示したように、文字認識情報である旨を示す「header」を有し、例えば「本」等の単一の文字に関する文字認識情報「OCR1」等と、当該文字が含まれているブロックを示す上記「rect1」等に相当する「blk header」との組み合わせ情報により構成されている。
【0047】
そして、「OCR1」等の各文字認識情報は、文字であるか或いは空白であるかを示す「type」、前述の文字認識の自信度に従った第1〜第5候補文字「文字1」〜「文字5」、当該文字の切り出し位置「x1」および「y1」、当該文字の幅「w」、当該文字の高さ「h」、予備領域「reserve」により構成されている。
【0048】
次に、図10及び図11のフローチャートを参照して本発明の実施の形態の画像形成装置の動作について説明する。
【0049】
図10は、本実施の形態の複写機における4イン1(4枚の原稿を縮小して1枚の用紙にコピーする)の複写処理を示すフローチャートである。尚、この4イン1の処理による複写の一例を図14(A),(B)に示す。
【0050】
まずステップS11で、文書方向の判別結果に対応してセットされるフラグA,B,C,Dをそれぞれ“0”にクリアする。次にステップS12に進み、操作パネル140のコピーキーがオンされたかどうかを判断し、そうであればステップS13に進み、自動原稿送り装置142にセットされた原稿の枚数をカウントする。次にステップS14で、コピーモードが4イン1か、それ以外かを判断する。4イン1が指示されていないときはステップS15に進み、その指示された処理に対応するコピー処理を実行する。
【0051】
一方、4イン1のコピー処理が指示されたときはステップS16に進み、自動原稿送り装置142にセットされた原稿を順次原稿ガラス101上に送って、その画像を読み取り、図5のフローチャートで示した処理に従って、その原稿画像の向きを判定する。このステップS16で判別された文書方向に従って、例えば方向が“0°”であればステップS17からステップS18に進んでフラグAを“1”にセットする。また方向が“90°”であればステップS19からステップS20に進んでフラグBを“1”にセットする。また方向が“180°”であればステップS21からステップS22に進み、フラグCを“1”に、更に、方向が“270°”であればステップS23からステップS24に進み、フラグDを“1”にセットする。
【0052】
こうしてA乃至DのいずれかのフラグがセットされるとステップS25に進み、その原稿向きを判定した原稿が1枚目の原稿かどうかを判断し、1枚目であればステップS16に戻り、今度は2枚目の原稿を読み取って、その文書方向を判定し、その判定した結果に従ってステップS17〜ステップS24のいずれかにおいて、2枚目の原稿に対応するフラグをセットする。こうして2枚目の原稿画像の向きが判定されるとステップS26に進み、1枚目の原稿と2枚目の原稿の向きとが同じかどうかを調べ、そうであればステップS27に、そうでないときはステップS34に進む。
【0053】
1枚目の原稿と2枚目の原稿の向きが同じときはステップS27で、後続の原稿の向きも同じであると類推して後続の原稿向きを、1枚目(2枚目)の原稿と同じ向きに決定する。そしてステップS28に進み、その原稿が最終の原稿かどうかをみる。最終原稿であればステップS34に進み、それまで読み取っている4枚以下の原稿を縮小し、指示されたレイアウト及び原稿向きに従って印刷するイメージデータを作成する。そしてステップS35に進み、そのイメージデータに従って印刷(コピー)を行って処理を終了する。
【0054】
一方、ステップS28で最終の原稿でないときはステップS29に進み、4n枚目(最初はn=1)かどうかをみる。そうでないときはステップS30に進み、次の原稿画像を読み取ってステップS28に進む。このステップS28で読み取られた原稿の向きは判定されず、ステップS27で決定された原稿向きであるとして処理される。
【0055】
またステップS29で、4n枚目の原稿のときはステップS31に進み、前述のステップS34と同様に、指示されたレイアウト及び原稿向きに従って印刷するイメージデータを作成する。そしてステップS32に進み、そのイメージデータに従って印刷(コピー)を行う。このときに印刷される画像を1枚の用紙に4枚の原稿画像が縮小されたものとなる。尚、このときカウンタnの値を+1する。そしてステップS33で、最終の原稿まで読み取ってコピー処理を完了したかどうかを調べ、最終原稿であれば処理を終了し、そうでないときはステップS28に進み、それ以降は原稿の向きを判定することなく4イン1の縮小コピーを行う。
【0056】
またステップS26で、1枚目の原稿と2枚目の原稿とが同じ向きでないときはステップS36(図11)に進み、最終原稿かどうかを判断し、そうであればステップS43、S44で、前述のステップS34、S35と同じコピー処理を行う。
【0057】
ステップS36で最終原稿でないときはステップS37に進み、4n枚目の原稿かどうかを調べ、そうでないときはステップS38に進み、前述のステップS16〜S24と同様にして、次の原稿の向きを判断して、その原稿の向きに対応するフラグをオンにセットする。そしてステップS37で4n枚目になるとステップS40に進み、各原稿の判定された向きに基づいて、画像の縮小及びレイアウト等の画像処理を行う。こうして印刷データが作成されるとステップS41に進み、コピー処理を実行する(カウンタn=n+1)。そしてステップS42に進み、最終原稿(m枚目)までのコピー処理が完了したかどうかを調べ、そうであれば処理を終了し、そうでないときはステップS16に進み、前述したステップS16〜S24での原稿方向の判断を行う。この場合(1枚目の原稿と2枚目の原稿の向きが異なる場合)は、この文書方向(原稿向き)の判断処理は最終原稿のコピー処理が完了するまで繰返し行われることになる。
【0058】
以上説明したように本実施の形態1によれば、複数枚の原稿があるとき1枚目の原稿と2枚目の原稿とが同じ向きかどうかを調べ、同じであれば後続の複数枚の原稿の向きも同様であると推定して、後続の原稿の向きを決定する。これにより、原稿の向きの判定処理に要する時間を短縮できる。
【0059】
[実施の形態2]
次に本発明の実施の形態2を説明する。この実施の形態2では、前述の実施の形態1では、原稿全体の1枚目と2枚目の原稿だけで後続の全ての原稿を向きを決定していたのに対し、例えば4イン1のコピーの場合には、4枚毎に1枚目の原稿と2枚目の原稿との向きを判断し、同じであれば後続の2枚の原稿向きが同じであると判断して、4枚の原稿の内の3枚目と4枚目の原稿の向きの判定処理を省略するものである。これは例えばNイン1の場合も同様にして、最初の1枚目と2枚目の原稿の向きを判断し、これら2枚の原稿の向きが同じであれば後続の(N−2)枚の原稿の向きの判定処理を省略することができるようにもできる。
【0060】
図12及び図13はこの実施の形態2の処理を示すフローチャートである。
【0061】
図12のステップS51〜S57の処理は、前述の図10のステップS11〜24の処理に対応しているので、ここではその説明を省略する。ステップS58では、4イン1のコピーの場合、4枚組の内の1枚目の原稿かどうかを調べ、そうであるときはステップS56に戻り前述の処理を実行する。また1枚目の原稿でないときはステップS59に進み、4枚組の原稿のうち、1枚目と2枚目の原稿の向きが同じかどうかを調べ、同じであればステップS60に進み、後続の3枚目及び4枚目の原稿の向きも同じであると推定して原稿向きを1枚目の原稿と同じ向きに決定する。そしてステップS61に進み、最終原稿かどうかを調べ、層であればステップS67に進み、前述のステップS34〜S35と同様にしてコピー処理を実行する。
【0062】
一方ステップS61で最終原稿でないときはステップS62に進み、4n枚(最初はn=1)目の原稿かどうかを調べ、そうでないときはステップS63に進み、次の原稿を読み取ってステップS61に戻る。こうしてステップS62で4n枚目の原稿になるとステップS64に進み、ステップS60で決定された原稿向きと4枚分の原稿画像情報に基づいて必要な画像処理を行い、次にステップS65に進み、印刷イメージを作成して複写処理を実行する。このときカウンタnの値を+1する。そしてステップS66に進み、最終原稿かどうかを調べ、そうでないときはステップS56に進み、前述した原稿向きの判断処理及びフラグセットなどの処理を行う。
【0063】
一方ステップS59で4枚組の原稿の1枚目と2枚目の原稿の向きが同じでないときはステップS69(図13)に進み、最終原稿かどうかをみる。最終原稿であるときはステップS67に進み、前述した処理を実行する。またステップS69で最終原稿でないときはステップS70に進み、4n枚目の原稿かどうかを調べ、そうでないときはステップS71に進み、原稿向きの判定処理及びフラグセットを行う。4n枚目の原稿のときはステップS64に進み、前述した画像縮小及び原稿向きに応じた処理を行う。
【0064】
このように本実施の形態2によれば、例えば4イン1のコピー処理を行う場合には、1枚目の原稿向きと2枚目の原稿向きとが同じかどうかを調べ、同じであれば後続の3枚目及び4枚目の原稿向きも同じであるとして複写処理を実行する。
【0065】
尚、図12及び図13において、ステップS62及びステップS70において、N×n枚目かどうかを判断し、ステップS64及びステップS67において、Nイン1の複写処理を行うことにより、Nイン1のコピー処理を行う場合にも適用することができる。
【0066】
また前述の図10のステップS26、或いは図12において1枚目と2枚目の原稿の向きに注目したが、例えば同じ向きの原稿が連続することにより、後続の原稿向きを推定するようにもできる。
【0067】
なお、本発明は、複数の機器(例えばホストコンピュータ,インタフェイス機器,リーダ,プリンタなど)から構成されるシステムに適用しても、一つの機器からなる装置(例えば、複写機,ファクシミリ装置など)に適用してもよい。
【0068】
また、本発明の目的は、前述した実施形態の機能を実現するソフトウェアのプログラムコードを記録した記憶媒体を、システムあるいは装置に供給し、そのシステムあるいは装置のコンピュータ(またはCPUやMPU)が記憶媒体に格納されたプログラムコードを読出し実行することによっても達成される。
【0069】
この場合、記憶媒体から読出されたプログラムコード自体が前述した実施形態の機能を実現することになり、そのプログラムコードを記憶した記憶媒体は本発明を構成することになる。
【0070】
プログラムコードを供給するための記憶媒体としては、例えば、フロッピディスク,ハードディスク,光ディスク,光磁気ディスク,CD−ROM,CD−R,磁気テープ,不揮発性のメモリカード,ROMなどを用いることができる。
【0071】
また、コンピュータが読出したプログラムコードを実行することにより、前述した実施形態の機能が実現されるだけでなく、そのプログラムコードの指示に基づき、コンピュータ上で稼働しているOS(オペレーティングシステム)などが実際の処理の一部または全部を行い、その処理によって前述した実施形態の機能が実現される場合も含まれる。
【0072】
さらに、記憶媒体から読出されたプログラムコードが、コンピュータに挿入された機能拡張ボードやコンピュータに接続された機能拡張ユニットに備わるメモリに書込まれた後、そのプログラムコードの指示に基づき、その機能拡張ボードや機能拡張ユニットに備わるCPUなどが実際の処理の一部または全部を行い、その処理によって前述した実施形態の機能が実現される場合も含まれる。
【0073】
以上説明したように本実施の形態によれば、例えば4枚の原稿を読み取り1枚の複写用紙に縮小コピーする(4イン1コピー)際、方向の異なる原稿の混在や、両面複写との併用にも対応した精度の高い複写が行えるとともに、複写時間を短縮することができる。
【0074】
【発明の効果】
以上説明したように本発明によれば、1枚目と2枚目の原稿の向きを判断し、これら1枚目と2枚目の原稿画像の向きが同一の場合には後続の原稿画像の向きも同じであると推定して原稿向きの判定処理を省略し、画像処理に要する時間を短縮できるという効果がある。
【0075】
また本発明によれば、例えば4イン1コピー等のように、複数の原稿を縮小して1枚の用紙に印刷する場合には、各4枚単位毎に1枚目と2枚目の原稿画像の向きを判断し、それら2枚の原稿画像の向きが同じ場合には後続の3枚目と4枚目の原稿画像の向きの判断を省略して、画像処理に要する時間を短縮できるという効果がある。
【0076】
また本発明によれば、複数の原稿のうち、連続して同じ向きの原稿があるときは、後続の原稿の向きも同じ向きであると判断して、後続の原稿に対する原稿向きの判定処理を省略し、画像処理に要する時間を短縮できる。
【0077】
【図面の簡単な説明】
【図1】本発明の実施の形態を示す画像形成装置の構成を説明する断面図である。
【図2】本実施の形態の画像形成装置のコントローラの構成を示すブロック図である。
【図3】本実施の形態の画像形成装置のコントローラの画像処理部の構成を示すブロック図である。
【図4】図3における文書方向判別部の構成を示すブロック図である。
【図5】本実施の形態における文書方向の自動判別及び文字認識処理を示すフローチャートである。
【図6】本実施の形態の文書方向自動判別における領域分離状態を説明する図である。
【図7】文字認識処理の処理過程を説明するための説明図である。
【図8】本実施の形態の文書(文字)方向自動判別処理を説明するための説明図である。
【図9】領域分離および文字認識情報のデータ形式を説明する図である。
【図10】本実施の形態1の画像形成装置におけるNイン1複写(4イン1)モードでの処理を示すフローチャートである。
【図11】本実施の形態1の画像形成装置におけるNイン1複写(4イン1)モードでの処理を示すフローチャートである。
【図12】本実施の形態2の画像形成装置におけるNイン1複写(4イン1)モードでの処理を示すフローチャートである。
【図13】本実施の形態2の画像形成装置におけるNイン1複写(4イン1)モードでの処理を示すフローチャートである。
【図14】4イン1のコピー例を示す図である。
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to an image processing method and apparatus for automatically determining the direction of a document image and processing image data of the document image.
[0002]
[Prior art]
2. Description of the Related Art Conventionally, for example, in a copying machine, there is a mode in which four originals are reduced and copied onto one copy sheet as called 4-in-1. In this case, the orientation of the first original image of the plurality of originals is determined, and the three originals following the original are also determined to have the same orientation, and the direction of the copy output is determined.
[0003]
[Problems to be solved by the invention]
However, in the above-described method, there are cases where originals having different directions are mixed, or when a double-sided copy of the original is used at the same time, a copy desired by the user cannot be obtained. Therefore, in order to deal with such a case, each original document is read by an optical reading device such as a scanner, and the character of the read original information (image data) is recognized, whereby the document direction in each original document is determined. The above-described copying process can be performed by determining and performing image processing according to the direction.
[0004]
However, the method of determining the direction of the original by reading the original image by an optical reading device such as a scanner for each original and recognizing the characters of the read original information (image data) as described above takes a lot of time. There was a problem that it took.
[0005]
The present invention has been made in view of the above conventional example. The orientations of the first and second originals are determined. If the orientations of the first and second originals are the same, It is an object of the present invention to provide an image processing method and apparatus that reduce the time required for image processing by presuming that the orientation of the original image is the same and omitting the original orientation determination processing.
[0006]
Another object of the present invention is to reduce the number of originals to be printed on a single sheet, such as 4-in-1 copy, for example, the first and second originals every four sheets. The orientation of the image is determined, and when the orientations of the two original images are the same, the determination of the orientation of the subsequent third and fourth original images is omitted to shorten the time required for image processing. An object of the present invention is to provide a document processing method and apparatus.
[0007]
Further, according to the present invention, when there are documents having the same orientation in succession among a plurality of documents, it is determined that the orientation of the subsequent document is the same, and the document orientation determination process for the subsequent document is omitted. Another object of the present invention is to provide an image processing method and apparatus that shortens the time required for image processing.
[0008]
[Means for Solving the Problems]
In order to achieve the above object, the image processing apparatus of the present invention comprises the following arrangement. That is,
An image input means for inputting image data of an original image;
Direction discriminating means for discriminating the orientation of the document image input by the image input means;
Determining means for determining whether or not the orientations of the first and second document images determined by the direction determining means are the same;
In response to the output of the determination means, input by the image input means In order to record a plurality of document images on one recording medium Edit image data Do Image editing means;
Image recording means for recording image data obtained by the image editing means,
When the determination unit determines that the first and second document images have the same orientation, the image editing unit edits the image data on the assumption that the subsequent document images have the same orientation. Features.
In order to achieve the above object, the image processing apparatus of the present invention comprises the following arrangement. That is,
An image input means for inputting image data of an original image;
Direction discriminating means for discriminating the orientation of the document image input by the image input means;
Determination means for determining whether or not a plurality of document images determined by the direction determination means are continuously the same;
In response to the output of the determination means, input by the image input means In order to record a plurality of document images on one recording medium Edit image data Do Image editing means;
Image recording means for recording image data obtained by the image editing means,
The image editing means edits the image data assuming that the orientations of the subsequent document images are the same when the determination means determines that the orientations of the plurality of document images are continuously the same. To do.
[0009]
In order to achieve the above object, the image processing method of the present invention includes the following steps. That is,
An input process for inputting image data of an original image;
A direction discriminating step for discriminating the orientation of the document image input in the input step;
A determination step of determining whether the orientations of the first and second document images determined in the direction determination step are the same;
According to the determination result in the determination step, input in the input step In order to record a plurality of document images on one recording medium Edit image data Do An image editing process,
In the image editing step, if it is determined in the determination step that the orientations of the first and second document images are the same, the image data is edited assuming that the orientations of the subsequent document images are also the same. Features.
In order to achieve the above object, the image processing method of the present invention includes the following steps. That is,
An image processing method for editing image data of a series of document images composed of a plurality of document images,
A direction discriminating step for discriminating the orientation of the original image included in the series of original images;
Whether the first document image and the second document image in the series of document images determined in the direction determination step are in the same direction is determined in the direction determination step after the third document image. A determination step of determining before determining the orientation of the original image;
The series of document images according to the document image direction determination result in the direction determination step. To record on a single recording medium An image editing process for editing image data,
In the image editing step, when it is determined in the determination step that the orientations of the first and second original images in the series of original images are the same, the series of originals in the direction determination step The image data of the series of document images is edited in accordance with the orientations of the first and second document images without determining the orientation of the third and subsequent document images, and the determination step includes When it is determined that the orientations of the first and second document images in the series of document images are not the same, the orientation determination process determines the orientation of the third and subsequent document images in the series of document images. After the determination, the image data of the series of document images is edited.
In order to achieve the above object, the image processing method of the present invention includes the following steps. That is,
An image input process for inputting image data of an original image;
A direction discriminating step for discriminating the orientation of the document image input in the image input step;
A determination step of determining whether or not the orientation of the document image determined in the direction determination step is the same continuously.
According to the determination result of the determination step, it was input in the image input step In order to record a plurality of document images on one recording medium image data The Edit Do Image editing process,
An image recording step of recording image data obtained in the image editing step,
In the image editing step, if it is determined in the determination step that the orientations of a plurality of document images are continuously the same, the image data is edited assuming that the orientations of subsequent document images are also the same. To do.
[0010]
DETAILED DESCRIPTION OF THE INVENTION
Preferred embodiments of the present invention will be described below in detail with reference to the accompanying drawings.
[0011]
FIG. 1 is a cross-sectional view illustrating the configuration of an image forming apparatus (copier) according to the present embodiment.
[0012]
In the figure, reference numeral 101 denotes an original platen glass, on which originals fed from an automatic document feeder (ADF) 142 are sequentially placed at predetermined positions. Reference numeral 102 denotes an original illumination lamp having, for example, a halogen lamp, and exposes an original placed on the original table glass 101. Scanning mirrors 103, 104, and 105 are accommodated in an optical scanning unit (not shown), and guide reflected light from the original to the CCD unit 106 while reciprocating in the left-right direction in FIG. The CCD unit 106 includes an imaging lens 107 that forms an image of reflected light from a document on an image sensor 108 such as a CCD, a CCD driver 109 that drives the image sensor 108, and the like. The image signal output from the image sensor 108 is converted into, for example, 8-bit digital data and then input to the controller 139.
[0013]
Reference numeral 110 denotes a photosensitive drum, which is discharged by a pre-exposure lamp 112 in preparation for image formation. A primary charger 113 uniformly charges the surface of the photosensitive drum 110. Reference numeral 117 denotes an exposure unit, which is composed of, for example, a semiconductor laser, and exposes the photosensitive drum 110 based on image data processed by a controller 139 that performs image processing and overall control of the apparatus, and electrostatics corresponding to the image data. A latent image is formed. Reference numeral 118 denotes a developing device that contains a black developer (toner). A pre-transfer charger 119 applies a high voltage before transferring the toner image developed on the photosensitive drum 110 onto a sheet. Reference numerals 120, 122, and 124 denote paper feeding units, and the transfer paper is fed into the apparatus by the rotational driving of the paper feeding rollers 121, 123, and 125. The timing of writing with the image formed in 110 is taken and the paper is fed again. Reference numeral 127 denotes a transfer charger, which transfers the toner image developed on the photosensitive drum 110 onto a transfer sheet to be fed. Reference numeral 128 denotes a separation charger that separates the transfer sheet on which the transfer operation has been completed from the photosensitive drum 110. Note that the toner that remains on the photosensitive drum 110 without being transferred is collected by the cleaner 111.
[0014]
A conveyance belt 129 conveys the transfer sheet after the transfer process to the position of the fixing device 130, and fixes the image by heat, for example. 131 is a flapper that controls the transfer path of the transfer sheet after the fixing process to one of the arrangement directions of the staple sorter 132 and the intermediate tray 137. The sheets discharged to the staple sorter 132 are sorted into bins, and the staple unit 141 performs stapling according to instructions from the controller 139. Reference numerals 133 to 136 denote feeding rollers, which feed the transfer paper once the fixing process is completed to the intermediate tray 137 by being reversed (multiple) or non-reversed (both sides). Reference numeral 138 denotes a refeed roller, which again conveys the transfer paper placed on the intermediate tray 137 to the position of the registration roller 126. The controller 139 includes a microcomputer, an image processing unit, and the like, which will be described later, and performs the above-described image forming operation in accordance with instructions from the operation panel 140.
[0015]
FIG. 2 is a block diagram showing a configuration of the controller 139 of the image forming apparatus according to the embodiment of the present invention.
[0016]
In FIG. 2, reference numeral 201 denotes a CPU that controls the entire image forming apparatus according to the present embodiment, and sequentially reads and executes control programs from a read-only memory 203 (ROM) that stores control procedures (control programs) of the apparatus main body. To do. The address bus and data bus of the CPU 201 are connected to each unit via a path driver and an address decoder circuit 202. Reference numeral 204 denotes a random access memory (RAM) which is a main storage device used for storing input data, a working storage area, and the like. Reference numeral 205 denotes an I / O interface port, and an operator inputs a key to drive an operation panel 140 that displays the state of the apparatus using liquid crystal and LEDs, and a paper feed system, a transport system, and an optical system. Motors 207, clutches 208, solenoids 209, and paper detection sensors 210 for detecting the conveyed paper are connected to each load.
[0017]
The developing device 118 is provided with a toner remaining amount detection sensor 211 for detecting the amount of toner in the developing device, and its output signal is input to the I / O port 205. Reference numeral 215 denotes a high voltage control unit which controls the voltage value (high voltage) to the primary charger 113, the developing device 118, the pre-transfer charger 119, the transfer charger 127, and the separation charger 128 according to the instruction of the CPU 201. ing.
[0018]
An image processing unit 206 receives an image signal output from the CCD unit 106 and performs image processing described later to generate image data for printing. The laser unit 117 is driven according to the image data thus generated. In this way, the laser light output from the laser unit 117 irradiates and exposes the photosensitive drum 110, and the light emission state is detected by the beam detection sensor 213 which is a light receiving sensor in the non-image region, and the output signal is I / Input to O port 205.
[0019]
FIG. 3 is a functional block diagram illustrating a functional configuration of the image processing unit 206 of the controller 139 in the image forming apparatus according to the present embodiment.
[0020]
The image signal converted into an electrical signal output from the CCD 108 is first subjected to correction of variation between pixels by the shading circuit 301, and then subjected to data thinning processing at the time of reduction copying in the scaling circuit 302, and at the time of enlargement copying. Data interpolation is performed. Next, in the edge enhancement circuit 303, for example, the edge of the image is enhanced by performing second order differentiation in a 5 × 5 window. Since this image data is luminance data, the γ conversion circuit 304 performs data conversion by table search in order to finally convert it into density data for output to the semiconductor laser. The image data thus converted into density data by the gamma conversion circuit 304 is input to the binarization processing circuit 305. Here, for example, multi-value data is converted into binary data by an ED (error diffusion) method. The image data thus converted into binary data is input to the synthesis circuit 307, and the input image data and the image data of the image memory 310 constituted by, for example, a DRAM are selectively or logically ORed. Is output. The read / write control for the image memory 310 is performed by the memory control unit 309, and when the image is rotated, the read address of the image data in the image memory 310 is controlled. The image data output from the synthesizing circuit 307 is input to the PWM circuit 308 for conversion to a signal of the emission intensity of the semiconductor laser, and a signal having a pulse width according to the image density is output to the exposure unit 117. Also, the image data output from the scaling circuit 302 is input to the document direction determination unit 306, and a document direction determination process described later is executed.
[0021]
Next, with reference to FIGS. 4 to 9, the operation of the document orientation determination unit of the present embodiment will be described.
[0022]
FIG. 4 is a block diagram illustrating a configuration of the document orientation determination unit 306.
[0023]
In FIG. 4, the image data output from the shading circuit 301 is input to the CPU / memory unit 401, where the image data is temporarily stored and various controls are performed. The CPU / memory unit 401 is bus-connected to the CPU 201 of the controller 139 via a dual port RAM (not shown), for example, and data is transmitted / received between them. Of course, this data communication may be serial communication.
[0024]
The character recognition / direction discriminating unit 402 pays attention to the fact that the direction of the document most accurately represents the direction of the document, so that several types of character regions in the document are represented by 0 °, 90 °, 180 °, 270. Character recognition is performed from each direction of °, and the character recognition accuracy in each direction (character recognition confidence: distance to character feature distribution) is obtained, and this is determined as the document direction. To do. The area separation unit 403 performs rectangular processing for character parts, graphic parts, natural image parts, table parts, etc. from the document image data as preprocessing for performing character recognition / direction judgment processing by the character recognition / direction judgment part 402. A process of adding an attribute (such as a character part) of each area is performed by separating the areas. The storage unit 404 includes, for example, a hard disk or a magneto-optical disk, and is used for storing various data processing results (image data, region separation results, character recognition results, etc.). The I / F unit 405 is an interface unit that operates according to interface specifications such as SCSI and RS232C, and controls data transmission with the computer 406. The computer 406 obtains information through the I / F unit 405 and acquires and uses data stored in the storage unit 404.
[0025]
Next, an outline of automatic document direction discrimination / correction and character recognition processing according to the present embodiment will be described with reference to the flowchart of FIG.
[0026]
In step S2, the image data (multi-valued image) input in step S1 is separated into rectangular regions by attributes such as a character portion, a graphic portion, a natural image portion, and a front portion by the region separation unit 403. Here, the area information surrounded by the rectangle is actually created.
[0027]
In step S3, the rectangle information of the character area is extracted from each attribute. Here, the character amount range includes a text part, a title part, characters in a table, a caption part of a figure, and the like.
[0028]
For example, in the case of the document shown in FIGS. 6A and 6C, the rectangle information of the character area as shown in FIGS. 6B and 6D is extracted. Then, using several blocks among these, the characters included therein are recognized at a rotation angle of 0 °. In step S5, the character is rotated by 90 °. In step S6, it is checked whether character recognition is performed for each of the four rotation directions of 0 °, 90 °, 180 °, and 270 °. Steps S4 to S6 are repeated until character recognition in one rotation direction is completed.
[0029]
When the character recognition results in these four directions are thus obtained, the process proceeds to step S7, and the direction of the character is determined based on the confidence level at each rotation angle as shown in FIG. In this way, the process proceeds to step S8, where the direction of the character string is determined according to the rotation angle finally recognized, and the corresponding region separation information and character recognition information are obtained.
[0030]
One method in the image rotation processing in step S5 is a method in which region separation processing is performed again on all rotation image agility data, and the other is a method in which address conversion is applied to the region separation result. In this region separation processing, since the image is generally assumed to be in the positive direction, the results of the region separation processing performed at the initial stage and the region separation processing performed on the rotated image data are often different. Therefore, it is desirable to take the former method.
[0031]
The processing result is transmitted to the computer 406 via the I / F unit 405 and used in a filing application program of the computer 406 or the like. The image is transmitted to the CPU 201 of the controller 139 for each image.
[0032]
Next, a method for document orientation determination using character recognition processing will be described.
[0033]
[Area separation processing]
Black pixels in the document image data are detected, and a rectangular frame of black pixel blocks is created by contour tracking or labeling. Next, character areas (titles, text, captions, etc.), graphic areas, natural image areas, table areas, etc., based on criteria such as the black pixel density in the rectangle, the presence or absence of adjacent rectangular blocks, and the aspect ratio of the rectangle Is determined. Based on the determination result, the rectangular area of the character frame area is determined.
[0034]
[Character recognition processing]
One method of character recognition processing includes feature vector extraction and comparison methods. For example, as shown in FIG. 7A, it is assumed that a character area including the characters “book” is determined. As a first step, a character segmenting process is performed for this character area (see FIG. 7B). This is obtained if a black pixel continuity state is detected in the process of cutting out one character rectangle.
[0035]
As a second stage, one character is cut into m × n (for example, 64 × 64) pixel blocks (see FIG. 7C). Then, the distribution direction of black pixels is extracted from the window using a 3 × 3 pixel window (direction vector information: see FIG. 7D).
[0036]
FIG. 7D shows an example of part of the direction vector information. The above 3 × 3 pixel window is shifted to obtain several tens of direction vector information. This vector information becomes a character feature. This vector information (feature vector) is compared with the contents of the character recognition dictionary stored in advance, and characters are extracted in order from the character having the feature closest to the feature vector. In this case, the first candidate, the second candidate,... The proximity of the feature to the feature vector is a numerical value indicating the proximity of the character, that is, the confidence level (accuracy and likelihood) of character recognition.
[0037]
[Character direction discrimination processing]
In this way, the degree of confidence in character recognition is obtained. The character direction determination process based on the degree of confidence will be described using the case of the character string “name of the present invention” shown in FIG.
[0038]
FIG. 8A shows a character string in the forward direction, and FIG. 8B shows a character string obtained by rotating the character string by 270 °. Here, focusing on the character “book”, when determining the character direction, as shown in FIG. 8C, four directions of 0 °, 90 °, 180 °, and 270 ° for one character “book”. Let's do character recognition. For each of these rotation angles, it is only necessary to change the reading method of the character rectangular area, and it is not particularly necessary to rotate the document.
[0039]
The character recognition results at each rotation angle are different from each other as shown in FIG. FIG. 8C shows a temporary character recognition result and confidence for explanation, and this is not always true.
[0040]
In FIG. 8C, when character recognition is performed from the positive direction (0 °), it is correctly recognized as “book” and the confidence level is a high value of “0.90”. When character recognition is performed from a direction rotated by 90 °, it is erroneously recognized as “town”, and the degree of confidence decreases to “0.40”. The reason why erroneous recognition occurs in this way and the degree of confidence decreases is because character recognition is performed based on the feature vector when viewed from the rotated direction. Similarly, when character recognition is performed from directions rotated by 180 ° and 270 °, erroneous recognition occurs and the confidence level also decreases. Note that the difference in the degree of confidence for each direction of character recognition becomes more noticeable as the character becomes more complex.
[0041]
In the result of FIG. 8C, since the degree of confidence is highest in the case of the forward direction, it is determined that there is a high possibility that the document is directed in the forward direction. In order to improve the accuracy of character direction discrimination, character recognition is performed from four directions in the same manner for a plurality of characters in the same block. Further, when the character direction is determined by only one block, the character direction may be erroneously determined for a special character string. Therefore, similar character recognition is performed for a plurality of blocks. Then, for each block, the average value of the confidence level in each of the four directions of each recognition target character in the block is obtained, and the average value for the average value of the confidence level in each block in the four directions is obtained. The direction with the highest value is recognized as the character direction (document direction).
[0042]
In this way, a character (document) can be obtained by acknowledging the character direction with the confidence of multiple characters in the same block, and further with the confidence of multiple characters in the same block, without identifying the character direction with the confidence of only one character. It becomes possible to determine the direction with high accuracy. However, even if the character direction is determined based on the confidence level of only one character, or the character direction is determined based on the confidence level of a plurality of characters in the same block, the character direction can be determined with higher accuracy than before.
[0043]
Next, when the determination result of the character direction (document direction) is a direction other than the positive direction, the original image is rotated so that the character direction becomes the positive direction. This rotation can be easily performed by a known technique using the CPU / memory 401 of FIG. 4, and the description thereof is omitted.
[0044]
Through the processing as described above, the original image data shown in FIG. 9A, the region separation data shown in FIG. 9B, and the character recognition information shown in FIG. 9C can be obtained. These pieces of information are sent to the CPU 201 of the controller 139 as described above, and are used for various image processing and various controls.
[0045]
Here, as shown in FIG. 9B, the data format of the area separation data is composed of “header” indicating that the data is area separation data, and identifiers “rect1” to “rect4” of the separated areas. Information of each area (block) distinguished by the identifier includes a block number “order”, a block attribute (character portion, graphic portion, etc.) “att”, upper left coordinate values “x1” and “y1”, Block width “w”, block height “h”, vertical or horizontal writing “direction”, ID of the block “selfID”, ID of parent block including the block “upperID”, It is composed of a parent block attribute “upperAtt” and a spare area “reserve”.
[0046]
Further, as shown in FIG. 9C, the character recognition information has “header” indicating that it is character recognition information. For example, character recognition information “OCR1” relating to a single character such as “book”. , And “blk header” corresponding to “rect1” and the like indicating a block including the character.
[0047]
Each character recognition information such as “OCR1” is “type” indicating whether it is a character or a blank, and the first to fifth candidate characters “character 1” in accordance with the above-described confidence level of character recognition. “Character 5”, the character cutout positions “x1” and “y1”, the character width “w”, the character height “h”, and the spare area “reserve” are configured.
[0048]
Next, the operation of the image forming apparatus according to the embodiment of the present invention will be described with reference to the flowcharts of FIGS.
[0049]
FIG. 10 is a flowchart showing a 4-in-1 copying process (4 originals are reduced and copied onto one sheet) in the copying machine according to the present embodiment. An example of copying by this 4-in-1 processing is shown in FIGS.
[0050]
First, in step S11, flags A, B, C, and D set corresponding to the document orientation discrimination result are cleared to “0”. In step S12, it is determined whether or not the copy key on the operation panel 140 is turned on. If so, the process proceeds to step S13, and the number of documents set in the automatic document feeder 142 is counted. In step S14, it is determined whether the copy mode is 4-in-1 or not. When 4-in-1 is not instructed, the process proceeds to step S15, and a copy process corresponding to the instructed process is executed.
[0051]
On the other hand, when the 4-in-1 copy process is instructed, the process proceeds to step S16, where the originals set on the automatic original feeder 142 are sequentially sent onto the original glass 101, and the images are read, as shown in the flowchart of FIG. The orientation of the original image is determined according to the above processing. According to the document direction determined in step S16, for example, if the direction is “0 °”, the process proceeds from step S17 to step S18, and the flag A is set to “1”. If the direction is “90 °”, the process proceeds from step S19 to step S20, and the flag B is set to “1”. If the direction is “180 °”, the process proceeds from step S21 to step S22, and the flag C is set to “1”. If the direction is “270 °”, the process proceeds from step S23 to step S24, and the flag D is set to “1”. Set to "".
[0052]
When one of the flags A to D is set in this way, the process proceeds to step S25, where it is determined whether or not the original whose orientation has been determined is the first original, and if it is the first, the process returns to step S16. Reads the second original, determines the document orientation, and sets a flag corresponding to the second original in any of steps S17 to S24 according to the determination result. When the orientation of the second document image is determined in this way, the process proceeds to step S26 to check whether the orientation of the first document and the second document is the same. If so, the process proceeds to step S27. If so, go to Step S34.
[0053]
When the orientations of the first and second documents are the same, in step S27, the orientation of the subsequent document is changed to the first (second) document by analogy that the orientation of the subsequent document is the same. Determine in the same direction. In step S28, it is determined whether the original is the final original. If it is the final document, the process proceeds to step S34, and the four or less documents that have been read are reduced, and image data to be printed is created according to the instructed layout and document orientation. In step S35, printing (copying) is performed in accordance with the image data, and the process ends.
[0054]
On the other hand, if it is not the final document in step S28, the process proceeds to step S29 to check whether or not the 4nth sheet (initially n = 1). Otherwise, the process proceeds to step S30, the next document image is read, and the process proceeds to step S28. The orientation of the document read in step S28 is not determined, and the document orientation determined in step S27 is processed.
[0055]
In step S29, if the document is the 4nth document, the process proceeds to step S31, and image data to be printed is created in accordance with the instructed layout and document orientation, as in step S34 described above. In step S32, printing (copying) is performed in accordance with the image data. The image printed at this time is obtained by reducing four original images on one sheet. At this time, the value of the counter n is incremented by one. In step S33, it is checked whether the copy process has been completed by reading up to the final document. If it is the final document, the process ends. If not, the process proceeds to step S28, and thereafter, the orientation of the document is determined. Instead, 4-in-1 reduced copy is performed.
[0056]
If it is determined in step S26 that the first document and the second document are not in the same orientation, the process proceeds to step S36 (FIG. 11) to determine whether the document is the final document. If so, the process proceeds to steps S43 and S44. The same copy process as in steps S34 and S35 described above is performed.
[0057]
If it is determined in step S36 that the document is not the final document, the process proceeds to step S37, and it is checked whether it is the 4nth document. Then, the flag corresponding to the orientation of the document is set to ON. When the 4nth sheet is reached in step S37, the process proceeds to step S40, and image processing such as image reduction and layout is performed based on the determined orientation of each document. When the print data is created in this way, the process proceeds to step S41 to execute a copy process (counter n = n + 1). Then, the process proceeds to step S42 to check whether or not the copy process up to the final original (m-th sheet) is completed. If so, the process ends. If not, the process proceeds to step S16, and in steps S16 to S24 described above. The orientation of the original is determined. In this case (when the orientations of the first document and the second document are different), the document orientation (document orientation) determination process is repeated until the final document copy process is completed.
[0058]
As described above, according to the first embodiment, when there are a plurality of documents, it is checked whether or not the first document and the second document are in the same direction. The orientation of the original is presumed to be the same, and the orientation of the subsequent original is determined. Thereby, the time required for the document orientation determination process can be shortened.
[0059]
[Embodiment 2]
Next, a second embodiment of the present invention will be described. In the second embodiment, in the first embodiment, the orientation of all subsequent documents is determined by only the first and second documents of the entire document. In the case of copying, the orientation of the first document and the second document is judged every four pages, and if they are the same, the orientation of the subsequent two documents is judged to be the same. The process of determining the orientation of the third and fourth originals of the original is omitted. For example, in the case of N-in 1 as well, the orientations of the first and second documents are determined. If the orientations of these two documents are the same, the subsequent (N-2) sheets The document orientation determination process can be omitted.
[0060]
12 and 13 are flowcharts showing the processing of the second embodiment.
[0061]
The processing in steps S51 to S57 in FIG. 12 corresponds to the processing in steps S11 to S24 in FIG. 10 described above, and thus the description thereof is omitted here. In step S58, in the case of 4-in-1 copying, it is checked whether or not it is the first document in a set of four sheets. If so, the process returns to step S56 to execute the above-described processing. If it is not the first document, the process proceeds to step S59, and it is checked whether or not the orientations of the first and second documents in the four-sheet document are the same. If they are the same, the process proceeds to step S60. The third and fourth originals are estimated to have the same orientation, and the orientation of the original is determined to be the same as that of the first original. In step S61, it is checked whether the document is a final document. If it is a layer, the process proceeds to step S67, and the copy process is executed in the same manner as in steps S34 to S35 described above.
[0062]
On the other hand, if it is determined in step S61 that the document is not the final document, the process proceeds to step S62, and whether or not the document is the 4nth (initially n = 1) document is checked. . When the 4nth original is thus obtained in step S62, the process proceeds to step S64, and necessary image processing is performed based on the original orientation determined in step S60 and the original image information for the four sheets, and then the process proceeds to step S65. Create an image and execute the copy process. At this time, the value of the counter n is incremented by one. Then, the process proceeds to step S66, where it is checked whether or not it is the final document. If not, the process proceeds to step S56, and the above-described document orientation determination process and flag setting process are performed.
[0063]
On the other hand, if the orientations of the first and second originals in the four-sheet original are not the same in step S59, the process proceeds to step S69 (FIG. 13) to check whether the original is the final original. If it is the final document, the process proceeds to step S67 and the above-described processing is executed. If it is determined in step S69 that the document is not the final document, the process proceeds to step S70 to check whether the document is the 4nth document. If not, the process proceeds to step S71 to perform document orientation determination processing and flag setting. If it is the 4nth original, the process proceeds to step S64, and the above-described image reduction and processing according to the original orientation are performed.
[0064]
As described above, according to the second embodiment, for example, when performing 4-in-1 copy processing, it is checked whether the orientation of the first document is the same as the orientation of the second document. Copy processing is executed on the assumption that the subsequent third and fourth originals have the same orientation.
[0065]
In FIG. 12 and FIG. 13, it is determined in step S62 and step S70 whether or not it is N.times.n, and in steps S64 and S67, N-in-1 copy processing is performed, so that N-in-1 copy. It can also be applied to processing.
[0066]
Further, in step S26 of FIG. 10 or FIG. 12, attention is paid to the orientations of the first and second originals. For example, if the originals in the same direction are continuous, the orientation of the subsequent originals may be estimated. it can.
[0067]
Note that the present invention can be applied to a system including a plurality of devices (for example, a host computer, an interface device, a reader, a printer, etc.), or a device (for example, a copier, a facsimile device, etc.) including a single device. You may apply to.
[0068]
Another object of the present invention is to supply a storage medium storing software program codes for implementing the functions of the above-described embodiments to a system or apparatus, and the computer (or CPU or MPU) of the system or apparatus stores the storage medium. This can also be achieved by reading and executing the program code stored in.
[0069]
In this case, the program code itself read from the storage medium realizes the functions of the above-described embodiments, and the storage medium storing the program code constitutes the present invention.
[0070]
As a storage medium for supplying the program code, for example, a floppy disk, a hard disk, an optical disk, a magneto-optical disk, a CD-ROM, a CD-R, a magnetic tape, a nonvolatile memory card, a ROM, or the like can be used.
[0071]
Further, by executing the program code read by the computer, not only the functions of the above-described embodiments are realized, but also an OS (operating system) operating on the computer based on the instruction of the program code. A case where part or all of the actual processing is performed and the functions of the above-described embodiments are realized by the processing is also included.
[0072]
Further, after the program code read from the storage medium is written into a memory provided in a function expansion board inserted into the computer or a function expansion unit connected to the computer, the function expansion is performed based on the instruction of the program code. This includes a case where the CPU or the like provided in the board or the function expansion unit performs part or all of the actual processing and the functions of the above-described embodiments are realized by the processing.
[0073]
As described above, according to the present embodiment, for example, when four originals are read and reduced and copied on a single copy sheet (4-in-1 copy), a mixture of originals with different directions and double-sided copying are used together. Can be copied with high accuracy and the copying time can be shortened.
[0074]
【The invention's effect】
As described above, according to the present invention, the orientations of the first and second originals are determined. If the orientations of the first and second originals are the same, There is an effect that it is possible to reduce the time required for image processing by presuming that the orientations are the same and omitting the original orientation determination processing.
[0075]
Further, according to the present invention, when a plurality of originals are reduced and printed on one sheet, for example, 4 in 1 copy, the first and second originals are provided every four sheets. If the orientations of the images are determined and the orientations of the two original images are the same, the determination of the orientation of the subsequent third and fourth original images can be omitted, and the time required for image processing can be reduced. effective.
[0076]
Further, according to the present invention, when there are documents having the same orientation in succession among a plurality of documents, it is determined that the orientation of the subsequent document is also the same, and the document orientation determination process for the subsequent document is performed. Omitted, the time required for image processing can be shortened.
[0077]
[Brief description of the drawings]
FIG. 1 is a cross-sectional view illustrating a configuration of an image forming apparatus according to an embodiment of the present invention.
FIG. 2 is a block diagram illustrating a configuration of a controller of the image forming apparatus according to the present exemplary embodiment.
FIG. 3 is a block diagram illustrating a configuration of an image processing unit of a controller of the image forming apparatus according to the present exemplary embodiment.
4 is a block diagram illustrating a configuration of a document orientation determination unit in FIG. 3. FIG.
FIG. 5 is a flowchart showing automatic document orientation discrimination and character recognition processing in the present embodiment.
FIG. 6 is a diagram for explaining a region separation state in automatic document orientation determination according to the present embodiment;
FIG. 7 is an explanatory diagram for explaining a process of character recognition processing;
FIG. 8 is an explanatory diagram for explaining automatic document (character) direction determination processing according to the present embodiment;
FIG. 9 is a diagram illustrating a data format of region separation and character recognition information.
FIG. 10 is a flowchart showing processing in an N-in-1 copy (4-in-1) mode in the image forming apparatus according to the first embodiment.
FIG. 11 is a flowchart showing processing in N-in-1 copy (4-in-1) mode in the image forming apparatus according to the first embodiment;
FIG. 12 is a flowchart showing processing in an N-in-1 copy (4-in-1) mode in the image forming apparatus according to the second embodiment.
FIG. 13 is a flowchart illustrating processing in an N-in-1 copy (4-in-1) mode in the image forming apparatus according to the second embodiment.
FIG. 14 is a diagram illustrating a copy example of 4-in-1;

Claims (12)

原稿画像の画像データを入力する画像入力手段と、
前記画像入力手段により入力された原稿画像の向きを判別する方向判別手段と、
前記方向判別手段により判別された1枚目と2枚目の原稿画像の向きが同じかどうかを判定する判定手段と、
前記判定手段の出力に応じて、前記画像入力手段により入力された複数の原稿画像を1枚の記録媒体に記録するように前記画像データを編集する画像編集手段と、
前記画像編集手段により得られた画像データを記録する画像記録手段とを有し、
前記画像編集手段は、前記判定手段により1枚目と2枚目の原稿画像の向きが同じであると判定されると後続の原稿画像の向きも同一であるとして画像データの編集を行うことを特徴とする画像処理装置。
An image input means for inputting image data of an original image;
Direction discriminating means for discriminating the orientation of the document image input by the image input means;
Determining means for determining whether or not the orientations of the first and second document images determined by the direction determining means are the same;
Image editing means for editing the image data so as to record a plurality of document images input by the image input means on a single recording medium in response to an output of the determination means;
Image recording means for recording image data obtained by the image editing means,
When the determination unit determines that the first and second document images have the same orientation, the image editing unit edits the image data on the assumption that the subsequent document images have the same orientation. A featured image processing apparatus.
前記画像入力手段は、原稿画像を光電的に読み取って入力することを特徴とする請求項1に記載の画像処理装置。  The image processing apparatus according to claim 1, wherein the image input unit photoelectrically reads and inputs a document image. 前記画像編集手段は、複数枚の原稿画像を1枚の記録媒体に指示されたレイアウトで記録するように画像データの編集を行うことを特徴とする請求項1又は2に記載の画像処理装置。  The image processing apparatus according to claim 1, wherein the image editing unit edits the image data so as to record a plurality of document images in a designated layout on a single recording medium. 前記判定手段は、前記複数枚の原稿画像毎に1枚目2枚目の原稿画像の向きが同じであるかどうかを判定することを特徴とする請求項3に記載の画像処理装置。The image processing apparatus according to claim 3, wherein the determination unit determines whether the orientation of the first and second document images is the same for each of the plurality of document images. 前記方向判別手段は、前記原稿画像の文字を認識し、その認識した文字の尤度に応じて当該原稿画像の向きを判別することを特徴とする請求項1に記載の画像処理装置。  The image processing apparatus according to claim 1, wherein the direction determination unit recognizes a character of the document image and determines a direction of the document image according to a likelihood of the recognized character. 原稿画像の画像データを入力する画像入力手段と、
前記画像入力手段により入力された原稿画像の向きを判別する方向判別手段と、
前記方向判別手段により判別された原稿画像の向きが複数枚連続して同じかどうかを判定する判定手段と、
前記判定手段の出力に応じて、前記画像入力手段により入力された複数の原稿画像を1枚の記録媒体に記録するように前記画像データを編集する画像編集手段と、
前記画像編集手段により得られた画像データを記録する画像記録手段とを有し、
前記画像編集手段は、前記判定手段により複数枚の原稿画像の向きが連続して同じであると判定されると後続の原稿画像の向きも同一であるとして画像データの編集を行うことを特徴とする画像処理装置。
An image input means for inputting image data of an original image;
Direction discriminating means for discriminating the orientation of the document image input by the image input means;
Determination means for determining whether or not a plurality of document images determined by the direction determination means are continuously the same;
Image editing means for editing the image data so as to record a plurality of document images input by the image input means on a single recording medium in response to an output of the determination means;
Image recording means for recording image data obtained by the image editing means,
The image editing means edits the image data assuming that the orientations of the subsequent document images are the same when the determination means determines that the orientations of the plurality of document images are continuously the same. An image processing apparatus.
原稿画像の画像データを入力する入力工程と、
前記入力工程で入力された原稿画像の向きを判別する方向判別工程と、
前記方向判別工程で判別された1枚目と2枚目の原稿画像の向きが同じかどうかを判定する判定工程と、
前記判定工程での判定結果に応じて、前記入力工程で入力された複数の原稿画像を1枚の記録媒体に記録するように前記画像データを編集する画像編集工程とを有し、
前記画像編集工程では、前記判定工程で1枚目と2枚目の原稿画像の向きが同じであると判定されると後続の原稿画像の向きも同一であるとして画像データの編集を行うことを特徴とする画像処理方法。
An input process for inputting image data of an original image;
A direction discriminating step for discriminating the orientation of the document image input in the input step;
A determination step of determining whether the orientations of the first and second document images determined in the direction determination step are the same;
An image editing step of editing the image data so as to record a plurality of document images input in the input step on a single recording medium according to a determination result in the determination step;
In the image editing step, if it is determined in the determination step that the orientations of the first and second document images are the same, the image data is edited assuming that the orientations of the subsequent document images are also the same. A featured image processing method.
複数枚の原稿画像からなる一連の原稿画像の画像データの編集を行う画像処理方法であって、
前記一連の原稿画像に含まれる原稿画像の向きを判別する方向判別工程と、
前記方向判別工程で判別された前記一連の原稿画像のうちの1枚目と2枚目の原稿画像の向きが同じかどうかを、前記方向判別工程にて前記一連の原稿画像の3枚目以降の原稿画像の向きを判別する前に判定する判定工程と、
前記方向判別工程での原稿画像の方向判別結果に従って、前記一連の原稿画像を1枚の記録媒体に記録するように画像データの編集を行う画像編集工程とを有し、
前記画像編集工程では、前記判定工程で前記一連の原稿画像のうちの1枚目と2枚目の原稿画像の向きが同じであると判定された場合、前記方向判別工程にて前記一連の原稿画像の3枚目以降の原稿画像の向きを判別することなく、前記1枚目と2枚目の前記原稿画像の向きに従って前記一連の原稿画像の画像データの編集を行い、前記判定工程で前記一連の原稿画像のうちの1枚目と2枚目の原稿画像の向きが同じではないと判定された場合、前記方向判別工程で前記一連の原稿画像の3枚目以降の原稿画像の向きを判別したうえで、前記一連の原稿画像の画像データの編集を行うことを特徴とする画象処理方法。
An image processing method for editing image data of a series of document images composed of a plurality of document images,
A direction discriminating step for discriminating the orientation of the original image included in the series of original images;
Whether the first document image and the second document image in the series of document images determined in the direction determination step are in the same direction is determined in the direction determination step after the third document image. A determination step of determining before determining the orientation of the original image;
An image editing step of editing image data so as to record the series of document images on a single recording medium in accordance with the result of document image direction determination in the direction determination step,
In the image editing step, when it is determined in the determination step that the orientations of the first and second original images in the series of original images are the same, the series of originals in the direction determination step The image data of the series of document images is edited in accordance with the orientations of the first and second document images without determining the orientation of the third and subsequent document images, and the determination step includes When it is determined that the orientations of the first and second document images in the series of document images are not the same, the orientation determination process determines the orientation of the third and subsequent document images in the series of document images. An image processing method comprising: editing image data of the series of document images after determination.
前記画像編集工程では、複数枚の原稿画像を1枚の記録媒体に指示されたレイアウトで記録するように画像データの編集を行うことを特徴とする請求項7又は8に記載の画像処理方法。  9. The image processing method according to claim 7, wherein in the image editing step, the image data is edited so that a plurality of document images are recorded in a designated layout on one recording medium. 前記判定工程では、前記複数枚の原稿画像毎に1枚目と2枚目の原稿画像の向きが同じであるかどうかを判定することを特徴とする請求項9に記載の画像処理方法。The image processing method according to claim 9, wherein in the determination step, it is determined whether the orientations of the first and second document images are the same for each of the plurality of document images. 前記方向判別工程では、前記原稿画像の文字を認識し、その認識した文字の尤度に応じて原稿画像の向きを判別することを特徴とする請求項7に記載の画像処理方法。  8. The image processing method according to claim 7, wherein in the direction determination step, characters of the document image are recognized, and the orientation of the document image is determined according to the likelihood of the recognized characters. 原稿画像の画像データを入力する画像入力工程と、
前記画像入力工程で入力された原稿画像の向きを判別する方向判別工程と、
前記方向判別工程で判別された原稿画像の向きが複数枚連続して同じかどうかを判定する判定工程と、
前記判定工程の判定結果に応じて、前記画像入力工程で入力された複数の原稿画像を1枚の記録媒体に記録するように前記画像データ編集する画像編集工程と、
前記画像編集工程で得られた画像データを記録する画像記録工程とを有し、
前記画像編集工程では、前記判定工程で複数枚の原稿画像の向きが連続して同じであると判定されると後続の原稿画像の向きも同一であるとして画像データの編集を行うことを特徴とする画像処理方法。
An image input process for inputting image data of an original image;
A direction discriminating step for discriminating the orientation of the document image input in the image input step;
A determination step of determining whether or not the orientation of the document image determined in the direction determination step is the same continuously.
An image editing step of editing the image data so as to record a plurality of document images input in the image input step on a single recording medium in accordance with a determination result of the determination step;
An image recording step of recording image data obtained in the image editing step,
In the image editing step, if it is determined in the determination step that the orientations of a plurality of document images are continuously the same, the image data is edited assuming that the orientations of subsequent document images are also the same. Image processing method.
JP30864497A 1997-11-11 1997-11-11 Image processing method and apparatus Expired - Fee Related JP3684050B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP30864497A JP3684050B2 (en) 1997-11-11 1997-11-11 Image processing method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP30864497A JP3684050B2 (en) 1997-11-11 1997-11-11 Image processing method and apparatus

Publications (2)

Publication Number Publication Date
JPH11146188A JPH11146188A (en) 1999-05-28
JP3684050B2 true JP3684050B2 (en) 2005-08-17

Family

ID=17983554

Family Applications (1)

Application Number Title Priority Date Filing Date
JP30864497A Expired - Fee Related JP3684050B2 (en) 1997-11-11 1997-11-11 Image processing method and apparatus

Country Status (1)

Country Link
JP (1) JP3684050B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6546215B2 (en) * 2001-09-10 2003-04-08 Toshiba Tec Kabushiki Kaisha Image forming apparatus and method having document orientation control
JP6981137B2 (en) * 2017-09-22 2021-12-15 株式会社リコー Information processing equipment, image processing systems, image processing methods, and programs

Also Published As

Publication number Publication date
JPH11146188A (en) 1999-05-28

Similar Documents

Publication Publication Date Title
JP3728040B2 (en) Image forming apparatus and method
KR100306063B1 (en) Image processing method and apparatus
JP3902840B2 (en) Image processing apparatus and image processing method
JP3684050B2 (en) Image processing method and apparatus
JPH10191018A (en) Image processing method and device
JP3787440B2 (en) Image processing apparatus and image processing method
JPH11213089A (en) Image processor and its method
JPH11341252A (en) Image formation device, image formation method and storage medium
JP2905655B2 (en) Image processing device
JPH11220557A (en) Image processing unit and method
JPH10117281A (en) Image-forming method and device
JPH11103381A (en) Method and device for forming image
JPH10307460A (en) Device and method for forming image and storing medium
JP2003141444A (en) Image processing device, control method of image processing device, program and storage medium
JP2001312697A (en) Method and device for discriminating direction of picture
JPH1115224A (en) Copying device
JPH0983691A (en) Picture processor and its method
JP2000067156A (en) Processor and method for image processing
JP2003316207A (en) Image forming apparatus
JPH11195085A (en) Method for processing picture, its device and storage medium
JP2001030580A (en) Image processor, printing control method and memory medium
JPH11331549A (en) Device and method for processing image
JPH11184315A (en) Image processor
JPH11177806A (en) Image forming device
JP2000099628A (en) Image processor and image processing method

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20040713

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040720

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20040915

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20050527

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20090603

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20090603

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20100603

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20110603

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20120603

Year of fee payment: 7

LAPS Cancellation because of no payment of annual fees