JPH1115224A - Copying device - Google Patents

Copying device

Info

Publication number
JPH1115224A
JPH1115224A JP9167232A JP16723297A JPH1115224A JP H1115224 A JPH1115224 A JP H1115224A JP 9167232 A JP9167232 A JP 9167232A JP 16723297 A JP16723297 A JP 16723297A JP H1115224 A JPH1115224 A JP H1115224A
Authority
JP
Japan
Prior art keywords
image
character
processing
document
bookbinding
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.)
Pending
Application number
JP9167232A
Other languages
Japanese (ja)
Inventor
Hisatsugu Tawara
久嗣 田原
Toshiaki Yagasaki
敏明 矢ヶ崎
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 JP9167232A priority Critical patent/JPH1115224A/en
Publication of JPH1115224A publication Critical patent/JPH1115224A/en
Pending legal-status Critical Current

Links

Landscapes

  • Paper Feeding For Electrophotography (AREA)
  • Control Or Security For Electrophotography (AREA)
  • Facsimiles In General (AREA)

Abstract

PROBLEM TO BE SOLVED: To prevent bookbinding processing from being executed while the directions of the images of pages are different by discriminating the direction of the image and discriminating whether the directions of all the images being moved on a sheet placing means are identical or not in copying sheets which are bound as a book. SOLUTION: By a CPU 201, documents set in an automatic document feeder are successively fed to a document glass and the images thereof are read when a copying key arranged on a control panel 140 is turned on. The writing direction of the image data thereof is discriminated by a writing direction discrimination part and respectively set. Next, when the image forming actions of the whole sheets on which the image is formed is finished, a stapling mode or a bookbinding mode is inputted from the key on the panel 140. Besides, since the writing directions where the image is formed are not uniform when plural flags out of the flags for discriminating the writing direction are set, the processing is finished without executing the processing in the stapling mode or in the bookbinding mode. When the plural flags are not set, the stapling processing or the bookbinding processing is executed.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は原稿画像の方向を認
識できる複写装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a copying apparatus capable of recognizing the direction of a document image.

【0002】[0002]

【従来の技術】従来の複写機においては、複写すべき原
稿中に画像の向きが180度回転した状態の原稿が混ざ
ったまま、複写機の原稿給送装置にセットされてしまう
と、複写機はこのことは認識できずにそのまま複写動作
していた。
2. Description of the Related Art In a conventional copying machine, if a document to be copied is set in a document feeder of the copying machine while a document whose image direction is rotated by 180 degrees is mixed with the original, the copying machine is not used. Was not able to recognize this and was just performing the copying operation.

【0003】[0003]

【発明が解決しようとする課題】そのため、後処理とし
てステイプル処理や製本処理が選択されている場合、ペ
ージの画像の方向が異なったまま製本されてしまうの
で、不完全な製本となってしまうという問題があった。
Therefore, if staple processing or bookbinding processing is selected as post-processing, bookbinding is performed with the page image direction being different, resulting in incomplete bookbinding. There was a problem.

【0004】[0004]

【課題を解決するための手段】上記問題に鑑み本発明
は、読み取った原稿画像に応じて画像の方向を判別する
第1の判別手段と、前記第1の判別手段による各原稿の
判別結果に基づいて製本すべき複写シート中の画像全て
が同一方向であるか否かを判別する第2の判別手段と、
前記第2の判別手段の判別結果に応じて製本処理を制御
する制御手段と、を有することを特徴とする複写装置を
提供するものである。
SUMMARY OF THE INVENTION In view of the above-mentioned problems, the present invention provides a first discriminating means for discriminating the direction of an image according to a read document image, and a discrimination result of each document by the first discriminating means. Second determining means for determining whether all the images in the copy sheet to be bound are in the same direction based on the same;
And a control unit for controlling the bookbinding process in accordance with the result of the determination by the second determination unit.

【0005】[0005]

【発明の実施の形態】以下に、図面を参照して本発明の
実施の形態を説明する。
Embodiments of the present invention will be described below with reference to the drawings.

【0006】図1はこの発明の一実施例を示す画像形成
装置の構成を説明する断面図である。101は原稿台ガラ
スであり、原稿自動送り装置142から給送された原稿が
順次、所定位置に載置される。102は例えばハロゲンラ
ンプから構成される原稿照明ランプで、原稿台ガラス10
1に載置された原稿を露光する。103、104、105は走査ミ
ラーであり、図示しない光学走査ユニットに収容され、
往復動しながら、原稿からの反射光をCCDユニット106に
導く。CCDユニット106はCCDに原稿からの反射光を結像
させる結像レンズ107、例えばCCDから構成される撮像素
子108、撮像素子108を駆動するCCDドライバ109等から構
成されている。撮像素子108からの画像信号出力は例え
ば8ビットのデジタルデータに変換された後、コントロ
ーラ部139に入力される。また、110は感光ドラムであ
り、112の前露光ランプによって画像形成に備えて除電
される。113は1次帯電器であり、感光ドラム110を一様
に帯電させる。117は露光手段であり、例えば半導体レ
ーザー等で構成され、画像処理や装置全体の制御を行う
コントローラ部139で処理された画像データに基づいて
感光ドラム110を露光し、静電潜像を形成する。118は現
像器であり、黒色の現像剤(トナー)が収容されてい
る。119は転写前帯電器であり、感光ドラム110上に現像
されたトナー像を用紙に転写する前に高圧をかける。12
0、122、124は給紙ユニットであり、各給紙ローラ121、
123、125の駆動により、転写用紙が装置内へ給送され、
レジストローラ126の配設位置で一旦停止し、感光ドラ
ム110に形成された画像との書き出しタイミングがとら
れ再給送される。127は転写帯電器であり、感光ドラム1
10に現像されたトナー像を給送される転写用紙に転写す
る。128は分離帯電器であり、転写動作の終了した転写
用紙を感光ドラム110より分離する。転写されずに感光
ドラム110上に残ったトナーはクリーナー111によって回
収される。129は搬送ベルトで、転写プロセスの終了し
た転写用紙を定着器130に搬送し、例えば熱により定着
される。131はフラッパであり、定着プロセスの終了し
た転写用紙の搬送パスを、ステイプルソーター132また
は中間トレイ137の配置方向のいずれかに制御する。ス
テイプルソーター132に排紙された用紙は各ビンに仕分
けされ、コントローラ部139からの指示により141のステ
イプル部141がステイプルを行う。また、ステイプルソ
ーター132の代りに製本装置(グルーバインダー)145が
装着されている場合はコントローラ部139からの指示に
より143のバインダー部で予め糊のついた背表紙と紙束
を糊づけし、スタッカー144に製本後の紙束を貯える。
また、133〜136は給送ローラであり、一度定着プロセス
の終了した転写用紙を中間トレイ137に反転(多重)ま
たは非反転(両面)して給送する。138は再給送ローラ
であり、中間トレイ137に載置された転写用紙を再度、
レジストローラ126の配設位置まで搬送する。139のコン
トローラ部には後述するマイクロコンピュータ、画像処
理部等を備えており、操作パネル140からの指示に従っ
て、前述の画像形成動作を行う。
FIG. 1 is a sectional view illustrating the structure of an image forming apparatus according to an embodiment of the present invention. Reference numeral 101 denotes an original platen glass on which originals fed from the automatic original feeder 142 are sequentially placed at predetermined positions. Reference numeral 102 denotes a document illumination lamp composed of, for example, a halogen lamp,
The document placed on 1 is exposed. 103, 104, 105 are scanning mirrors, accommodated in an optical scanning unit not shown,
The light reflected from the document is guided to the CCD unit 106 while reciprocating. The CCD unit 106 includes an imaging lens 107 that forms an image of reflected light from a document on the CCD, an image sensor 108 including 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 unit 139. 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 charges the photosensitive drum 110 uniformly. Reference numeral 117 denotes an exposure unit that is configured by, for example, a semiconductor laser or the like, and that exposes the photosensitive drum 110 based on image data processed by a controller unit 139 that performs image processing and control of the entire apparatus to form an electrostatic latent image. . Reference numeral 118 denotes a developing device which stores a black developer (toner). Reference numeral 119 denotes a pre-transfer charger, which applies a high voltage before transferring the toner image developed on the photosensitive drum 110 to a sheet. 12
Reference numerals 0, 122, and 124 are paper feed units, and each paper feed roller 121,
By the drive of 123 and 125, the transfer paper is fed into the device,
The image forming apparatus temporarily stops at the position where the registration roller 126 is provided, and starts rewriting the image formed on the photosensitive drum 110 at the timing. 127 is a transfer charger, and is a photosensitive drum 1
The toner image developed in step 10 is transferred to the fed transfer paper. Reference numeral 128 denotes a separation charger, which separates the transfer paper after the transfer operation from the photosensitive drum 110. The toner remaining on the photosensitive drum 110 without being transferred is collected by the cleaner 111. Reference numeral 129 denotes a transport belt which transports the transfer paper on which the transfer process has been completed to the fixing device 130, and fixes the transfer paper by, for example, heat. Reference numeral 131 denotes a flapper, which controls the transfer path of the transfer sheet having undergone the fixing process in one of the arranging directions of the staple sorter 132 or the intermediate tray 137. The paper discharged to the staple sorter 132 is sorted into each bin, and the staple unit 141 staples 141 according to an instruction from the controller unit 139. When a bookbinding device (glue binder) 145 is attached instead of the staple sorter 132, the backstrip and the paper bundle with glue are glued by the binder unit 143 according to an instruction from the controller unit 139, and the stacker is used. Store the bundle of bound paper in 144.
Reference numerals 133 to 136 denote feeding rollers, which feed the transfer sheet, for which the fixing process has been completed, once to the intermediate tray 137 by inversion (multiplexing) or non-inversion (both sides). Reference numeral 138 denotes a re-feed roller, which transfers the transfer sheet placed on the intermediate tray 137 again.
The sheet is transported to the position where the registration roller 126 is provided. The controller unit 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 an instruction from the operation panel 140.

【0007】図2は画像形成装置におけるコントローラ
部139のブロック図である。201は画像処理装置全体の制
御を行うCPUであり、装置本体の制御手順(制御プログ
ラム)を記憶した読み取り専用メモリ203(ROM)からプ
ログラムを順次読み取り、実行する。CPU201のアドレス
バスおよびデータバスは202のバスドライバー回路、ア
ドレスデコーダ回路をへて各負荷に接続されている。ま
た、204は入カデータの記憶や作業用記憶領域等として
用いる主記憶装置であるところのランダムアクセスメモ
リ(RAM)である。205はI/Oインターフェースであり、
操作者がキー入力を行い、装置の状態等を液晶、LEDを
用いて表示する140の操作パネルや給紙系、搬送系、光
学系の駆動を行うモーター類207、クラッチ類208、ソレ
ノイド類209、また、搬送される用紙を検知するための
紙検知センサ類210等の装置の各負荷に接続される。現
像器118には現像器内のトナー量を検知する211のトナー
残検センサが配置されており、その出力信号がI/Oポー
ト205に入力される。215は高圧ユニットであり、CPUの
指示に従って、前述の1次帯電器113、現像器118、転写
前帯電器119、転写帯電器127、分離帯電器128へ高圧を
出力する。
FIG. 2 is a block diagram of the controller 139 in the image forming apparatus. Reference numeral 201 denotes a CPU that controls the entire image processing apparatus, and sequentially reads and executes programs from a read-only memory 203 (ROM) that stores control procedures (control programs) for the apparatus main body. An address bus and a data bus of the CPU 201 are connected to each load via a bus driver circuit and an address decoder circuit of the CPU 202. Reference numeral 204 denotes a random access memory (RAM), which is a main storage device used as storage of input data and a work storage area. 205 is an I / O interface,
The operator performs key input, displays the status of the apparatus using liquid crystal and LEDs, and displays an operation panel 140, and motors 207, clutches 208, and solenoids 209 for driving a paper feeding system, a conveyance system, and an optical system. Also, it is connected to each load of a device such as paper detection sensors 210 for detecting the paper being conveyed. The developing device 118 is provided with a residual toner detection sensor 211 for detecting the amount of toner in the developing device, and an output signal thereof is input to the I / O port 205. A high voltage unit 215 outputs a 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 an instruction from the CPU.

【0008】206は画像処理部であり、CCDユニット106
から出力された画像信号が入力され、後述する画像処理
を行い、画像データに従って117のレーザーユニットの
制御信号を出力する。レーザーユニット 7から出力され
るレーザー光は感光ドラム110を照射し、露光するとと
もに非画像領域において受光センサであるところの213
のビーム検知センサによって発光状態が検知され、その
出力信号がI/Oポート205に入力される。
Reference numeral 206 denotes an image processing unit, and the CCD unit 106
The image signal output from the CPU is input, the image processing described below is performed, and a control signal for the laser unit 117 is output in accordance with the image data. The laser light output from the laser unit 7 irradiates the photosensitive drum 110, exposes the photosensitive drum 110, and 213 which is a light receiving sensor in a non-image area.
The light-emitting state is detected by the beam detection sensor, and the output signal is input to the I / O port 205.

【0009】図3は画像形成装置におけるコントローラ
部139内の画像処理部206のブロック図である。CCD108に
より電気信号に変換された画像信号は、まずシェーデイ
ング回路301によって画素間のばらつきの補正を行った
後、302の変倍回路において、縮小コピー時はデータの
間引き処理を行い、拡大コピー時はデータの補間を行
う。次に、303のエッジ強調回路において、例えば5×5
のウインドウで2次微分を行い、画像のエッジを強調す
る。この画像データは輝度データであるのでプリンター
に出力するための濃度データに変換するため304のγ変
換回路でテーブルサーチによりデータ変換を行う。濃度
データに変換された画像データは305の2値化処理部へ入
力される。ここでは例えばED法により多値データを2値
データに変換する。2値に変換された画像データは307の
合成回路に入力される。合成回路307では、入力された
画像データと例えばDRAMにより構成される画像用メモリ
310内の画像データを選択的に出力する、またはORをと
って出力する。この画像用メモリ310に対するリードラ
イト制御はメモリ制御部309で行う。これらの画像デー
タはレーザーの発光強度の信号に変換するためPWM回路3
08へ入力され、画像の濃度に従ったパルス幅をレーザー
ユニットに対して出力する。また、変倍回路302からの
画像出力は文書方向判別部306へ入力され、後述する文
書方向判別処理を行う。
FIG. 3 is a block diagram of the image processing section 206 in the controller section 139 in the image forming apparatus. The image signal converted into an electric signal by the CCD 108 is first corrected by a shading circuit 301 for variations between pixels, and then, in a scaling circuit 302, data is thinned out at the time of reduced copy, and at the time of enlarged copy. Performs data interpolation. Next, in the edge enhancement circuit 303, for example, 5 × 5
The second derivative is performed in the window of, and the edge of the image is emphasized. Since this image data is luminance data, data conversion is performed by a table search in a γ conversion circuit 304 in order to convert the image data into density data to be output to a printer. The image data converted to the density data is input to the binarization processing unit 305. Here, multivalued data is converted into binary data by, for example, the ED method. The binary converted image data is input to the synthesis circuit 307. In the combining circuit 307, input image data and an image memory configured by, for example, a DRAM are provided.
The image data in 310 is selectively output or ORed and output. The read / write control for the image memory 310 is performed by the memory control unit 309. These image data are converted to a signal of the laser emission intensity by a PWM circuit 3
08, and outputs a pulse width according to the image density to the laser unit. The image output from the scaling circuit 302 is input to the document direction discrimination unit 306, and performs a document direction discrimination process described later.

【0010】次に図4〜図9を用いて文書方向判別動作
について説明する。図4は文書方向判別部306内のブロ
ック図である。変倍部302から出力された画像データは
スキャナ部1は、CPU/メモリ部401に入力され、画像デ
ータを一時的に保存すると共に、各種制御を行う。コン
トローラ部139内のCPU201とは例えば、図示しないデュ
アルポートRAMによリバス接続されており、データを送
受信する。もちろんシリアル通信でもよい。
Next, the document direction discriminating operation will be described with reference to FIGS. FIG. 4 is a block diagram of the document direction determining unit 306. The image data output from the scaling unit 302 is input to the CPU / memory unit 401, and the scanner unit 1 temporarily stores the image data and performs various controls. The CPU 201 in the controller unit 139 is re-connected to the CPU 201 by, for example, a dual-port RAM (not shown), and transmits and receives data. Of course, serial communication may be used.

【0011】文字認識/方向判別部402は、文書の方向
を一番正確に表しているのは文字であることに着目し、
文書中の数種類の文字領域をそれぞれ0°、90°、180
°、270°の方向から文字認識を行い、それら各方向に
おける文字認識の自信度(読み取った文字と認識した文
字の近似度)の中で一番自信度の高い方向を文書方向と
判定する。
The character recognition / direction discriminating unit 402 focuses on the fact that the most accurate representation of the direction of a document is a character.
0, 90, 180
Character recognition is performed from the directions of ° and 270 °, and the direction with the highest confidence among the degrees of confidence in character recognition in each direction (the degree of approximation between the read character and the recognized character) is determined to be the document direction.

【0012】領域分離部403は文字認識/方向判別部402
による文字認識。方向判別処理を行うための前処理とし
て、文書画像データより、文字部、図形部、自然画部、
表部などを矩形の領域に分離して、各領域の属性(文字
部など)を付加する処理を行うブロックである。
An area separation unit 403 is a character recognition / direction determination unit 402
Character recognition by. As pre-processing for performing the direction discrimination processing, a text part, a graphic part, a natural image part,
This is a block for performing processing of separating a table portion or the like into rectangular regions and adding an attribute (such as a character portion) of each region.

【0013】記憶装置404は、例えば、ハードディスク
や光磁気ディスクなどにより構成され、各種処理結果
(画像データ、領域分離結果、文字認識結果など)を保
存するために利用される。I/F部405は、SCSIやRS232Cな
どにより構成され、外部ヘデータを伝送するために設け
られている。コンピュータ406は、I/F部405を介して情
報を得たり、光磁気デイスク等の移動可能の記憶装置よ
リデータを得て利用する。
The storage device 404 is composed of, for example, a hard disk or a magneto-optical disk, and is used to store various processing results (image data, area separation results, character recognition results, etc.). The I / F unit 405 is configured by SCSI, RS232C, or the like, and is provided for transmitting data to an external device. The computer 406 obtains information via the I / F unit 405 or obtains and uses data from a movable storage device such as a magneto-optical disk.

【0014】次に、本実施例における文書方向自動判別
・補正、および文字認識処理の概要を図5のフローチャ
ートに従って説明する。入力された画像データ(多値画
像)は、まず領域分離部403により、文字部、図形部、
自然画部、表部などの属性別に矩形の領域に分離される
(ステップS1、S2)。ここでは、実際には、矩形で囲ま
れた領域情報を作成する。
Next, an outline of the document direction automatic discrimination / correction and character recognition processing in this embodiment will be described with reference to the flowchart of FIG. The input image data (multi-valued image) is first converted into a character portion, a graphic portion,
The image is separated into rectangular areas according to attributes such as a natural image portion and a front portion (steps S1 and S2). Here, actually, area information surrounded by a rectangle is created.

【0015】次に、各属性より文字領域の矩形情報を抽
出する(ステップS3)。ここで、文字領域とは、文章
部、タイトル部、表中の文字、図のキャプション部など
である。例えば、図6(a)、(c)の文書の場合は、そ
れぞれ図6(b)、(d)に示したような文字領域の矩形
情報が抽出される。そして、これらの中の数ブロックを
用いて、文書方向判別を行う(ステップS4)。その結
果、文書方向が正方向であれば、引き続き画像中の文字
ブロックに対して文字認識処理を行う (ステップS
7)。
Next, rectangle information of the character area is extracted from each attribute (step S3). Here, the character area includes a text portion, a title portion, characters in a table, a caption portion of a figure, and the like. For example, in the case of the documents shown in FIGS. 6A and 6C, rectangle information of a character area as shown in FIGS. 6B and 6D is extracted. Then, the document direction is determined by using several blocks among them (step S4). As a result, if the document direction is the forward direction, the character recognition process is continuously performed on the character blocks in the image (step S
7).

【0016】一方、文書方向が不正方向であれば、画像
データを正しい方向に回転させる(ステップS5)。そし
て、回転画像に対して領域分離を行い、領域分離情報の
補正処理を行う (ステップS6)。これは、画像回転に
伴う領域分離情報の相違を補正するもので、一つの方法
としては、全回転画像データに対して再び領域分離処理
を行う方法と、もう一つは、アドレス変換を領域分離結
果にかける方法がある。領域分離処理は、一般に画像が
正方向を想定しているため、初期の段階で行った領域分
離処理と回転画像データに対して行った領域分離処理は
結果が異なることが多い。それゆえ、前者の方法がとら
れるのが望ましい。次に、ステップS7に進んで、回転画
像データ中の文字領域ブロックは、文字認識処理系で文
字認識される。この結果、最終的に、回転なし/回転あ
りの両方の場合とも、領域分離情報と文字認識情報が得
られる(ステップS8)。
On the other hand, if the document direction is incorrect, the image data is rotated in the correct direction (step S5). Then, region separation is performed on the rotated image, and correction processing of region separation information is performed (step S6). This is to correct the difference of the area separation information due to the image rotation. One method is to perform the area separation processing again on all the rotated image data, and the other is to perform the address conversion by the area separation. There is a way to multiply the results. Since the area separation processing generally assumes that the image is in the forward direction, the results of the area separation processing performed in the initial stage and the area separation processing performed on the rotated image data often differ. Therefore, it is desirable that the former method be used. Next, proceeding to step S7, the character area block in the rotated image data is recognized by the character recognition processing system. As a result, the segmentation information and the character recognition information are finally obtained in both the case without the rotation and the case with the rotation (step S8).

【0017】この処理結果は、I/F部405を介してコンピ
ュータ406に伝送され、コンピュータ406上のファイリン
グのアプリケーションソフト等で利用される。また、処
理結果はコントローラ部139内のCPU201へ各画像毎に送
信される。
The processing result is transmitted to the computer 406 via the I / F unit 405, and is used by filing application software on the computer 406. The processing result is transmitted to the CPU 201 in the controller unit 139 for each image.

【0018】次に、文字認識処理を用いた文書方向判別
の手法について説明する。
Next, a description will be given of a method of determining the document direction using the character recognition processing.

【0019】(領域分離処理)文書画像データの黒画素
を検出してゆき、輪郭線追跡、またはラベリング方式に
より、黒画素ブロックの矩形粋を作成する。次に、その
矩形の中の黒画素密度、隣接矩形ブロックの有無、矩形
の縦横比率などを判断基準にして、文字領域(タイト
ル、本文、キャプションなど)、図形領域、自然画領
域、表領域などを判別する。この処理結果により、文字
領域の矩形領域が判別される。
(Area Separation Processing) The black pixels in the document image data are detected, and a rectangle of a black pixel block is created by contour tracing or labeling. Next, the character area (title, body, caption, etc.), graphic area, natural image area, table area, etc. are determined based on the black pixel density in the rectangle, the presence or absence of adjacent rectangular blocks, the aspect ratio of the rectangle, and the like. Is determined. The rectangular area of the character area is determined based on the processing result.

【0020】(文字認識処理)文字認識処理の一つの方
法として、特徴ベクトル抽出、比較方式がある。例えば
図7(a)に示したように、「本」という文字を含む文
字領域が判別されたとする。第一段階として、この文字
領域について文字切り出し処理を行う(図7(b)参
照)。これは、一つの文字の矩形を切り出す処理で、黒
画素連続性の状態を検出していけば求められる。第二段
階として、一文字をm×n(例えば64×64)の画素ブロッ
クに切り出す(図7(c)参照)。そして、その中から3
×3画素のウインドウを用いて、黒画素の分布方向を抽
出する(方向ベクトル情報:図7(d)参照)。
(Character Recognition Processing) One method of character recognition processing is a feature vector extraction and comparison method. For example, as shown in FIG. 7A, it is assumed that a character area including the character "book" is determined. As a first step, character extraction processing is performed on this character area (see FIG. 7B). This is a process of cutting out a rectangle of one character, and is obtained by detecting the state of black pixel continuity. As a second step, one character is cut into m × n (for example, 64 × 64) pixel blocks (see FIG. 7C). And 3 of them
The distribution direction of black pixels is extracted using a window of 3 pixels (direction vector information: see FIG. 7D).

【0021】なお、図7(d)は、方向ベクトル情報の
一部を例示したものであり、上記3×3画素のウインドウ
をずらしてゆき、方向ベクトル情報を数十個得る。この
ベクトル情報が文字の特徴となる。この特徴ベクトルと
予め記憶されている文字認識辞書の内容と比較して、特
徴ベクトルに特徴が一番近い文字から順番に文字を抽出
する。この場合、特徴ベクトルに特徴が近い順番に第1
候補、第2候補・・。となる。この特徴ベクトルに対す
る特徴の近さが、その文字に対する距離の近さ、すなわ
ち文字認識の自信度という数値になる。
FIG. 7 (d) illustrates a part of the direction vector information. The window of 3 × 3 pixels is shifted to obtain several tens of direction vector information. This vector information is a character feature. By comparing this feature vector with the contents of a character recognition dictionary stored in advance, characters are extracted in order from the character whose feature is closest to the feature vector. In this case, the first
Candidate, second candidate ... Becomes The closeness of the feature to this feature vector is a numerical value of the closeness to the character, that is, the degree of confidence in character recognition.

【0022】(文字方向判別処理)このようにして文字
認識の自信度が求められるが、その自信度に基づいた文
字方向判別処理を、図8に示した「本発明の名称」とい
う文例を用いて説明する。
(Character Direction Discrimination Processing) The degree of confidence in character recognition is obtained in this manner. The character direction discrimination processing based on the degree of confidence is performed using the sentence example of "Name of the present invention" shown in FIG. Will be explained.

【0023】図8(a)は正方向の文、図8(b)は270
°回転した文である。ここで「本」に注目すると、文字
方向を判別する場合は、図8(c)に示したように、1つ
の文字「本」について0°、90°、180°、270°の4方向
から文字認識を行ってみる。
FIG. 8A shows a sentence in the forward direction, and FIG.
° The sentence is rotated. Here, paying attention to “book”, when determining the character direction, as shown in FIG. 8C, one character “book” is determined from four directions of 0 °, 90 °, 180 °, and 270 °. Try character recognition.

【0024】各回転角度は、文字矩形の領域の読み出し
方を変更すればよく、特に原稿を回転する必要はない。
各回転角度における文字認識結果は、図8(c)に示し
たように、互いに異なっている。なお、図8(c)には
説明用の仮の文字認識結果および自信度が示されてお
り、現実にこの通りになるとは限らない。
For each rotation angle, it is sufficient to change the method of reading the character rectangular area, and it is not necessary to rotate the document.
The character recognition results at each rotation angle are different from each other as shown in FIG. FIG. 8 (c) shows the temporary character recognition result and the degree of confidence for explanation, and this is not always the case.

【0025】図8(c)において、正方向(0°)から文
字認識を行った場合は、「本」と正しく認識され、自信
度も0.90と高い値となる。90°回転した方向から文字認
識を行った場合は、「町」と誤認識され、自信度も0.40
と低下する。このように誤認識が発生し、自信度も低下
するのは、回転した方向から見た場合の特徴ベクトルに
基づいて文字認識を行ったからである。同様に180°、2
70°回転した方向から文字認識を行った場合も、誤認識
が発生し、自信度も低下する。なお、文字認識の方向別
の自信度は、複雑な文字であればあるほど、その差が顕
著に現れてくる。
In FIG. 8C, when character recognition is performed from the positive direction (0 °), the character is correctly recognized as a “book” and the confidence level is as high as 0.90. When character recognition is performed from a direction rotated by 90 °, it is erroneously recognized as “town” and the confidence level is 0.40.
And decline. The reason why the erroneous recognition occurs and the confidence level is reduced is that the character recognition is performed based on the feature vector when viewed from the rotating direction. Similarly 180 °, 2
Even when character recognition is performed from a direction rotated by 70 °, erroneous recognition occurs and the degree of confidence decreases. The degree of confidence in the direction of character recognition becomes more noticeable as the characters are more complex.

【0026】図8(c)の結果は、正方向の場合に自信
度が1番高いため、文書は正方向に向いている可能性が
高いと判断される。文字方向判別の精度を向上させるた
め、同一ブロック内の複数の文字について、同様に4方
向から文字認識を行ってみる。さらに、1つのブロック
だけで文字方向を判別した場合、特殊な文字列について
文字方向を誤って判別するおそれがあるので、複数のブ
ロックについて同様の文字認識を行ってみる。そして、
各ブロックについて、当該ブロック内の各認識対象文字
の4方向別の自信度の平均値を求め、さらに、各ブロッ
クでの4方向別の自信度の平均値に対する平均値を求
め、この平均値が最も高い方向を文字方向(文書方向)
として認定する。
In the result shown in FIG. 8C, the degree of confidence is highest in the forward direction, so that it is determined that the document is likely to be oriented in the forward direction. In order to improve the accuracy of character direction discrimination, character recognition is performed for a plurality of characters in the same block from four directions in the same manner. Furthermore, when the character direction is determined only by one block, the character direction may be erroneously determined for a special character string. Therefore, similar character recognition is performed on a plurality of blocks. And
For each block, calculate the average value of the confidence in each direction of each recognition target character in the block, and calculate the average value of the confidence in each block in each direction. The highest direction is the text direction (document direction)
Certified as

【0027】このように、1文字だけの自信度で文字方
向を認定することなく、同一ブロック内の複数文字、さ
らには同一ブロック内の複数文字の自信度で文字方向を
認定することにより、文字(文書)方向を高精度に判別
することが可能となる。ただし、1文字だけの自信度で
文字方向を判別したり、あるいは同一ブロック内の複数
文字の自信度で文字方向を判別しても、従来よりも高精
度に文字方向を判別できることは言うまでもない。
As described above, the character direction is determined based on the confidence of a plurality of characters in the same block, and further, the character direction is determined based on the confidence of a plurality of characters in the same block without determining the character direction based on the confidence of only one character. The (document) direction can be determined with high accuracy. However, it is needless to say that the character direction can be determined with higher accuracy than before 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 levels of a plurality of characters in the same block.

【0028】次に、文字方向(文書方向)の判別結果が
正方向以外の方向であるときは、文字方向が正方向にな
るように原画像を回転する。この回転は、第4図のCPU/
メモリ401を用いて公知の技術により簡単に行うことが
可能であり、その説明は省略する。
Next, when the result of determination of the character direction (document direction) is a direction other than the forward direction, the original image is rotated so that the character direction becomes the forward direction. This rotation is based on the CPU /
This can be easily performed by a known technique using the memory 401, and a description thereof will be omitted.

【0029】以上のような処理により、図9(a)に示
した原画像データ、図9(b)に示した領域分離デー
タ、図9(c)に示した文字認識情報を得ることができ
る。これらの情報は前述のようにコントローラ部139のC
PU201へ送られ、各種画像処理、各種制御に使用する。
With the above processing, the original image data shown in FIG. 9A, the segmentation data shown in FIG. 9B, and the character recognition information shown in FIG. 9C can be obtained. . These information are stored in the C of the controller unit 139 as described above.
It is sent to PU201 and used for various image processing and various controls.

【0030】領域分離データの形式は図9(b)に示し
たように、領域分離データである旨を示す「header」
と、分離した領域の識別子「rect1」〜「rect4」により
構成され、この識別子で区別された各領域(ブロック)
の情報は、ブロックの番号「order」、ブロックの属性
(文字部、図形部など) 「art」、ブロックの左上の座
標値「x1」および「y1」、ブロックの幅「w」、ブロッ
クの高さ「h」、縦書き、または横書きを示す「directi
on」、当該ブロックのIDである「selfID」、当該ブロッ
クを包含する親ブロックのIDである「upperID」、親ブ
ロックの属性「upperAtt」、予備領域「reserve」によ
り構成されている。
As shown in FIG. 9B, the format of the area separation data is "header" indicating that the area separation data is used.
And each area (block) identified by the identifiers “rect1” to “rect4” of the separated areas.
Is the block number "order", the block attribute (character part, graphic part, etc.) "art", the coordinate value "x1" and "y1" at the upper left of the block, the block width "w", and the block height "H" or "directi" indicating vertical or horizontal writing
on ", the ID of the block" selfID ", the ID of the parent block containing the block" upperID ", the attribute of the parent block" upperAtt ", and the reserved area" reserve ".

【0031】また、文字認識情報は、図9(c)に示し
たように、文字認識情報である旨を示す「header」を有
し、例えば「本」等の単一の文字に関する文字認識情報
「OCR1」等、当該文字が含まれているブロックを示す上
記「rect1」等に相当する「blkheader」との組み合わせ
情報により構成されている。
As shown in FIG. 9C, the character recognition information has a "header" indicating that the character recognition information is character recognition information. It is composed of combination information such as "OCR1" and "blkheader" corresponding to the above "rect1" indicating a block including the character.

【0032】そして、「OCR1」等の各文字認識情報は、
文字であるか或いは空白であるかを示す「type」、前述
の文字認識の自信度に従った第1〜第5候補文字「文字
1」〜「文字5」、当該文字の切り出し位置「x1」および
「y1」、当該文字の幅「w」、当該文字の高さ「h」、予
備領域「reserve」により構成されている。
Each character recognition information such as "OCR1"
"Type" indicating whether it is a character or a blank, and the first to fifth candidate characters "character" according to the above-described character recognition confidence.
1 ”to“ character 5 ”, the cut-out positions“ x1 ”and“ y1 ”of the character, the width“ w ”of the character, the height“ h ”of the character, and a reserved area“ reserve ”.

【0033】次に、第10図のCPU201のフローチャートを
用いて複写装置の詳細な動作について説明する。まず、
ステップS1で文書方向判別結果に対応したフラグA、B、
C、Dをそれぞれ0にクリアする。そしてステップS2で操
作パネル140上のコピーキーがONになったかどうかを判
断し、ONされればステップS3で自動原稿送り装置142に
セットされた原稿を順次原稿ガラス101上に送り、画像
を読み取る。読み取られた画像データは前述した文書方
向判別方法によって文書方向を判別する(ステップS
4)。ここで判別された文書方向に従って、例えば方向
が0°であればフラグAを1に、方向が90°であればフラ
グBを1に、方向が180°であればフラグCを1に、方向が2
70°であればフラグDを1にそれぞれセットする(ステッ
プS5〜S8)。次に、ステップS9で画像形成すべき全枚数
の画像形成が終了したかどうかを判断し、終了していな
ければステップS3からS8までの動作を繰り返し、終了す
ればステップS10でステイプルモードまたは製本モード
が操作パネル140上のキーから入力されていたかどうか
を判断し、ステイプルモードまたは製本モードが指定さ
れていなければそのまま画像形成動作は終了する。
Next, a detailed operation of the copying apparatus will be described with reference to the flowchart of the CPU 201 in FIG. First,
At step S1, flags A, B,
Clear C and D to 0 respectively. In step S2, it is determined whether or not the copy key on the operation panel 140 is turned on. If the copy key is turned on, the documents set in the automatic document feeder 142 are sequentially fed onto the document glass 101 in step S3, and the image is read. . The read image data is used to determine the document direction by the above-described document direction determination method (step S
Four). According to the determined document direction, for example, if the direction is 0 °, the flag A is set to 1, if the direction is 90 °, the flag B is set to 1, and if the direction is 180 °, the flag C is set to 1, and the direction is set. Is 2
If it is 70 °, the flag D is set to 1 (steps S5 to S8). Next, in step S9, it is determined whether or not the image formation for all sheets to be formed has been completed, and if not completed, the operations from steps S3 to S8 are repeated, and if completed, the staple mode or bookbinding mode is performed in step S10. Is determined from a key on the operation panel 140, and if the stapling mode or the binding mode is not specified, the image forming operation ends as it is.

【0034】ステイプルモードまたは製本モードが指定
されていれば、ステップS11で文書方向判別用のフラグA
〜Dまでのなかで複数のフラグがセットされているかど
うかを判断する。ここで複数のフラグがセットされてい
れば画像形成した文書の方向が一様ではなかったという
ことになるので、ステイプルモードまたは製本モードが
セットされていてもその処理を行わずに終了する。ここ
で複数のフラグがセットされていなければ画像形成した
文書の方向が一様にそろっていたという事になるので、
ステップS12でステイプル処理または製本処理を実行し
てすべての動作を終了する。
If the staple mode or the bookbinding mode has been designated, a flag A for document direction discrimination is set in step S11.
It is determined whether or not a plurality of flags are set among. Here, if a plurality of flags are set, it means that the direction of the image-formed document is not uniform. Therefore, even if the staple mode or the bookbinding mode is set, the process is terminated without performing the processing. Here, unless a plurality of flags are set, it means that the direction of the image-formed document has been uniformly aligned.
In step S12, staple processing or bookbinding processing is executed, and all operations are completed.

【0035】本実施形態では複写装置として説明した
が、本発明は複写装置に適用できるだけでなく、他の構
成においても適用可能である。例えば、スキャナにより
読み取った原稿画像をホストコンピュータに取り込み、
ホストコンピュータから画像を製本装置付のプリンタへ
出力するような構成にも適用できる。この場合、図5か
ら図10で説明した処理を実行するソフトウエアプログ
ラムを用意し、これをフロッピーディスクやハードディ
スクに保存しておき、ホストコンピュータがこの保存さ
れたプログラムを読み出してプリンタに接続された製本
装置を制御することにより実現できる。
Although the present embodiment has been described as a copying apparatus, the present invention can be applied not only to a copying apparatus but also to other configurations. For example, a document image read by a scanner is imported to a host computer,
The present invention is also applicable to a configuration in which an image is output from a host computer to a printer equipped with a bookbinding device. In this case, a software program for executing the processing described with reference to FIGS. 5 to 10 is prepared and stored in a floppy disk or a hard disk, and the host computer reads the stored program and connects to the printer. It can be realized by controlling the bookbinding device.

【0036】[0036]

【発明の効果】以上説明したように、本発明によれば、
読み取った原稿画像に応じて画像の方向を判別し、各原
稿の判別結果に基づいて製本すべき複写シート中の画像
全てが同一方向であるか否かを判別し、この判別結果に
応じて製本処理を制御するので、ページの画像の方向が
異なったまま製本されてしまうことを防止することがで
きる。
As described above, according to the present invention,
The orientation of the image is determined in accordance with the read original image, and it is determined whether all the images in the copy sheet to be bound are in the same direction based on the determination result of each original, and the binding is performed in accordance with the determination result. Since the processing is controlled, it is possible to prevent bookbinding with the image directions of the pages being different.

【0037】また、本発明によれば、原稿画像中の文字
について4方向それぞれの方向から文字認識を行い、原
稿画像中の文字と文字認識した結果の文字の近似度の高
い方向を画像の方向であると判別するので、精度の高い
方向判別を行って製本処理を行うか否か制御できる。
Further, according to the present invention, characters in a document image are recognized in four directions, and the direction in which the characters in the document image and the character obtained as a result of the character recognition have a high degree of similarity is determined as the direction of the image. Therefore, it is possible to control whether or not to perform the bookbinding process by performing highly accurate direction determination.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明の実施の形態である複写装置の構成を説
明する断面図である。
FIG. 1 is a cross-sectional view illustrating a configuration of a copying apparatus according to an embodiment of the present invention.

【図2】複写装置におけるコントローラ部139のブロッ
ク図である。
FIG. 2 is a block diagram of a controller unit 139 in the copying apparatus.

【図3】コントローラ部139内の画像処理部206のブロッ
ク図である。
FIG. 3 is a block diagram of an image processing unit 206 in the controller unit 139.

【図4】文書方向判別部306のブロック図である。FIG. 4 is a block diagram of a document direction determination unit 306.

【図5】文書方向自動判別、文字認識処理を示すフロー
チャートである。
FIG. 5 is a flowchart illustrating a document direction automatic determination and character recognition process.

【図6】文書方向自動判別における領域分離状態を示す
図である。
FIG. 6 is a diagram illustrating a region separation state in automatic document direction determination.

【図7】文字認識処理の処理過程を説明するための説明
図である。
FIG. 7 is an explanatory diagram for describing a process of a character recognition process.

【図8】文字方向自動判別処理を説明するための説明図
である。
FIG. 8 is an explanatory diagram for explaining a character direction automatic discrimination process.

【図9】領域分離および文字認識情報のデータ形式を示
した図である。
FIG. 9 is a diagram showing a data format of area separation and character recognition information.

【図10】複写装置の詳細な動作を示したフローチャー
トである。
FIG. 10 is a flowchart showing a detailed operation of the copying apparatus.

【符号の説明】[Explanation of symbols]

132 ステイプルソーター 145 製本装置 306 文書方向判別部 132 Staple sorter 145 Bookbinding device 306 Document direction discrimination unit

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 読み取った原稿画像に応じて画像の方向
を判別する第1の判別手段と、 前記第1の判別手段による各原稿の判別結果に基づいて
製本すべき複写シート中の画像全てが同一方向であるか
否かを判別する第2の判別手段と、 前記第2の判別手段の判別結果に応じて製本処理を制御
する制御手段と、 を有することを特徴とする複写装置。
A first discriminating means for discriminating a direction of the image in accordance with a read document image; and all images in a copy sheet to be bound based on a discrimination result of each document by the first discriminating means. A copying apparatus comprising: a second determination unit that determines whether the directions are the same direction; and a control unit that controls a bookbinding process according to a determination result of the second determination unit.
【請求項2】 前記制御手段は、前記第2の判別手段の
判別結果が否定判定のとき製本処理を実行させないこと
を特徴とする請求項1記載の複写装置。
2. The copying apparatus according to claim 1, wherein the control unit does not execute the bookbinding process when the determination result of the second determination unit is a negative determination.
【請求項3】 前記第1の判別手段は、原稿画像中の文
字について4方向それぞれの方向から文字認識を行い、
原稿画像中の文字と文字認識した結果の文字の近似度の
高い方向を画像の方向であると判別することを特徴とす
る請求項1記載の複写装置。
3. The method according to claim 1, wherein the first determining unit performs character recognition on characters in the document image from four directions.
2. The copying apparatus according to claim 1, wherein a direction in which the degree of similarity between the character in the original image and the character obtained as a result of the character recognition is high is determined to be the direction of the image.
【請求項4】 読み取った原稿画像に応じて画像の方向
を判別する処理を行うためのプログラムと、 各原稿の方向判別結果に基づいて製本すべき複写シート
中の画像全てが同一方向であるか否かを判別するための
プログラムと、 この判別結果に応じて製本処理を制御するためのプログ
ラムと、からなるプログラムを記憶した記録媒体。
4. A program for performing a process of determining a direction of an image according to a read document image, and whether all images in a copy sheet to be bound based on a result of determining the direction of each document are in the same direction. A recording medium storing a program comprising: a program for determining whether or not the content is not included; and a program for controlling a bookbinding process in accordance with a result of the determination.
JP9167232A 1997-06-24 1997-06-24 Copying device Pending JPH1115224A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9167232A JPH1115224A (en) 1997-06-24 1997-06-24 Copying device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9167232A JPH1115224A (en) 1997-06-24 1997-06-24 Copying device

Publications (1)

Publication Number Publication Date
JPH1115224A true JPH1115224A (en) 1999-01-22

Family

ID=15845909

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9167232A Pending JPH1115224A (en) 1997-06-24 1997-06-24 Copying device

Country Status (1)

Country Link
JP (1) JPH1115224A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010087852A (en) * 2008-09-30 2010-04-15 Oki Data Corp Image processor
US10482338B2 (en) 2016-12-12 2019-11-19 Kyocera Document Solutions Inc. Image reading apparatus that aligns directions of document images, image reading method, image forming apparatus, and recording medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010087852A (en) * 2008-09-30 2010-04-15 Oki Data Corp Image processor
US8462396B2 (en) 2008-09-30 2013-06-11 Oki Data Corporation Image processing device and method for rotating a scanned image
US10482338B2 (en) 2016-12-12 2019-11-19 Kyocera Document Solutions Inc. Image reading apparatus that aligns directions of document images, image reading method, image forming apparatus, and recording medium

Similar Documents

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

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20050523

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20050531

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20051122