JPH10224600A - Image input device - Google Patents

Image input device

Info

Publication number
JPH10224600A
JPH10224600A JP9026829A JP2682997A JPH10224600A JP H10224600 A JPH10224600 A JP H10224600A JP 9026829 A JP9026829 A JP 9026829A JP 2682997 A JP2682997 A JP 2682997A JP H10224600 A JPH10224600 A JP H10224600A
Authority
JP
Japan
Prior art keywords
data
character
image
color
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.)
Pending
Application number
JP9026829A
Other languages
Japanese (ja)
Inventor
Shoji Imaizumi
祥二 今泉
Hideyuki Hashimoto
英幸 橋本
Toru Iida
徹 飯田
Tomoya Yoshimura
智也 吉村
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.)
Minolta Co Ltd
Original Assignee
Minolta Co Ltd
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 Minolta Co Ltd filed Critical Minolta Co Ltd
Priority to JP9026829A priority Critical patent/JPH10224600A/en
Publication of JPH10224600A publication Critical patent/JPH10224600A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To accurately and quickly recognize the direction of an original and to output image data in an appropriate direction in simple constitution. SOLUTION: From the color image data of an original read in an image read part, after replacing the color data of a chromatic color with white data in a color data cancellation circuit 520 beforehand, characters are segmented in a character segmentation circuit 530 and the feature amount of the segmented characters is extracted in a feature amount extraction circuit 540. The feature amount extraction circuit divides the feature amount into feature amount data depending on the direction of the characters and feature amount piece number information not depending on the direction of the characters, lists up the characters to be recognition candidates based on the feature amount piece number information first and outputs dictionary data relating to the candidate characters to a comparator circuit 580. In the comparator circuit 580, the dictionary data are rotated by 90 deg. and compared with the feature amount data of the segmented characters and the information of the rotation angle with a highest matching degree is sent to a CPU 501. The CPU 501 considers that the segmented character and the recognition candidate character match in the case that the matching degree is more than a prescribed threshold value, the rotation processing of the image data for the pertinent rotation angle is performed and they are outputted.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、イメージリーダや
複写機の原稿読取部として用いられる画像入力装置に関
する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image input device used as an image reader or a document reading section of a copying machine.

【0002】[0002]

【従来の技術】従来、例えば、自動原稿搬送装置を備え
た複写機において、複数枚の原稿を連続して読み取って
コピーする場合、読み取られた原稿の向きに応じてコピ
ーが排出されるので、原稿を自動原稿搬送装置にセット
する際に、各原稿が一律に同じ方向を向いているか否か
を確認する必要があった。しかし、このような確認作業
は結構手間がかかるものであり、原稿枚数が多ければ、
それだけ反対方向の原稿を見落とすおそれも多くなる。
2. Description of the Related Art Conventionally, for example, in a copier equipped with an automatic document feeder, when a plurality of documents are continuously read and copied, a copy is discharged in accordance with the direction of the read document. When documents are set on the automatic document feeder, it is necessary to check whether each document is uniformly directed in the same direction. However, such a check operation is quite time-consuming, and if the number of documents is large,
The possibility of overlooking the document in the opposite direction increases accordingly.

【0003】このような原稿方向の確認作業を怠ると、
複数の排出ビンに仕分けして排出するソートユニットを
備える複写機において所定のソートモードを実行させた
場合、各排出ビンに排出されたコピー束のそれぞれにつ
いてコピーの向きを修正しなければならないという不都
合があり、さらには、自動的にステープル止めを行うス
テープルユニットやパンチ穴開けを行うパンチユニット
を備えた複写機において、それらの機能を実行させる
と、異なる方向のコピー含むコピー束をそのままステー
プル止めしたり、パンチ穴を開けてしまうので、最悪の
場合にはもう一度コピー作業をやり直さなければならな
い事態も生じ、コピー作業における効率が大変悪くなる
と共にコピー用紙の無駄使いともなり、省資源化に反す
る。
[0003] If the operation of checking the direction of the original is neglected,
When a predetermined sort mode is executed in a copying machine having a sort unit that sorts and discharges a plurality of output bins, it is necessary to correct the copy direction for each copy bundle discharged to each output bin. Furthermore, in a copier equipped with a stapling unit for automatically stapling and a punch unit for punching holes, when those functions are executed, a copy bundle including copies in different directions is stapled as it is. In the worst case, the copying operation has to be performed again. In this case, the efficiency of the copying operation is greatly reduced, the copy paper is wasted, and the resource is not saved.

【0004】このような不都合を避けるため、読み取っ
た画像データからまず原稿の向きを判別し(このような
原稿方向の判別を以下「天地認識」という。)、その画
像出力が適切な方向になるように画像データを回転処理
して出力する方法が考えられている。例えば、特開平4
−229763号公報には、次のような天地認識方法が
開示されている。
In order to avoid such inconvenience, the orientation of the original is first determined from the read image data (this determination of the orientation of the original is hereinafter referred to as “top and bottom recognition”), and the image output is in an appropriate direction. As described above, a method of rotating image data and outputting the image data has been considered. For example, JP
Japanese Unexamined Patent Publication No. 229763 discloses the following method of recognizing the top and bottom.

【0005】すなわち、予め所定の参照文字についてそ
の線部分における複数の点(参照点)を抽出してパター
ンとして記憶しておき、原稿画像を読み取って得られた
画像データから文字画像を切り出して、当該切り出され
た文字と参照点とを比較し、各参照点における文字の画
像信号の有無を、切り出した文字画像を90゜ずつ回転
させながら確認して各回転角における一致度を求める。
その一致度が一番高い回転角を、当該文字の方向と認識
し、これにより天地認識を行うようにしている。
That is, a plurality of points (reference points) in a line portion of a predetermined reference character are previously extracted and stored as a pattern, and a character image is cut out from image data obtained by reading an original image. The cut-out character is compared with the reference point, and the presence or absence of a character image signal at each reference point is checked while rotating the cut-out character image by 90 ° to determine the degree of coincidence at each rotation angle.
The rotation angle having the highest degree of coincidence is recognized as the direction of the character, thereby performing top-bottom recognition.

【0006】具体的には、例えば、図23(a)に示す
ように、参照文字「A」について6個の参照点A1〜A
6を抽出して記憶しておき、切り出された文字画像が図
23(b)に示すように「A」が90゜左方向に横向き
になっている場合には、参照点A2、A5には文字の画
像信号は存在しないので一致度は低く、この文字画像を
90゜ずつ回転していき、参照点との一致度が最も高い
回転角を求めてこれを文字の方向として認識するように
している。
More specifically, for example, as shown in FIG. 23 (a), six reference points A1 to A
6 is extracted and stored, and when the cut-out character image has “A” oriented 90 ° leftward as shown in FIG. 23B, the reference points A2 and A5 Since there is no character image signal, the degree of coincidence is low. This character image is rotated 90 ° at a time, and the rotation angle with the highest degree of coincidence with the reference point is determined to recognize this as the direction of the character. I have.

【0007】[0007]

【発明が解決しようとする課題】ところが上述した従来
の天地認識方法においては、特定の文字について参照点
における画像信号の有無を比較するだけであるため、そ
もそも読み取った文字が「A」であるか否かは不明であ
り、多くの参照文字のデータを内部のメモリに格納して
これを順次切り替えて比較しなければならない。また、
仮に切り出された文字が「A」の文字であったとして
も、格納した「A」のデータと切り出した文字画像がま
ったく同じサイズで同じ字体(フォント)であればよい
が、文字サイズが異なったり、少しでもフォントが変わ
れば、文字の方向が一致しているにもかかわらず当該参
照点の位置に画像信号が位置しないことになり、認識率
が低下する。
However, in the above-described conventional top / bottom recognition method, since only the presence or absence of an image signal at a reference point is compared for a specific character, it is determined whether the character read in the first place is "A". Whether it is or not is unknown, and it is necessary to store data of many reference characters in an internal memory and sequentially switch and compare them. Also,
Even if the cut-out character is a character of "A", the stored data of "A" and the cut-out character image may be exactly the same size and the same font, but the character size may be different. If the font changes even a little, the image signal will not be located at the position of the reference point even though the directions of the characters match, and the recognition rate will decrease.

【0008】このような認識率の低下は、原稿がカラー
原稿であり、切り出した文字が有彩色の文字であった場
合には顕著に現れる。これは、新聞や雑誌に見られるよ
うに有彩色の文字は記事の見出しなどに使用されること
が多く、読者の注意を惹くため、故意に傾斜させたり、
極端に太字にしたりするなど、何らかの装飾もしくは変
形を施して誇張している文字が多いことに起因するもの
と考えられる。
Such a decrease in the recognition rate becomes remarkable when the original is a color original and the cut out characters are chromatic characters. This is because, as seen in newspapers and magazines, chromatic characters are often used for article headings, etc., to attract readers' attention, intentionally tilting,
This may be due to the fact that there are many characters that are exaggerated with some decoration or deformation, such as extreme bolding.

【0009】本発明は、上述のような問題点に鑑みてな
されたものであって、カラー原稿における原稿方向の認
識の精度を向上させ、適切な方向にカラー画像データを
回転して出力できる画像入力装置を提供することを目的
とする。
SUMMARY OF THE INVENTION The present invention has been made in view of the above-described problems, and it is an object of the present invention to improve the accuracy of recognizing a document direction in a color document and to output an image by rotating color image data in an appropriate direction. An object is to provide an input device.

【0010】[0010]

【課題を解決するための手段】上記目的を達成するた
め、本発明に係る画像入力装置は、カラー原稿の画像を
入力するための装置であって、原稿を読み取ってカラー
画像データを生成する画像読取手段と、前記カラー画像
データを記憶する画像データ記憶手段と、前記カラー画
像データにおける有彩色の画像データを検出するカラー
データ検出手段と、前記検出された有彩色カラー画像デ
ータを除く他の白黒画像データにおける文字画像に基づ
いて当該原稿の方向を判別する原稿方向判別手段と、前
記判別された原稿方向に応じて、前記カラー画像データ
を回転する画像データ回転手段と、を備えることを特徴
とする。
In order to achieve the above object, an image input apparatus according to the present invention is an apparatus for inputting an image of a color document, and is an apparatus for reading a document and generating color image data. Reading means, image data storage means for storing the color image data, color data detection means for detecting chromatic image data in the color image data, and other black and white except for the detected chromatic color image data Document direction determining means for determining the direction of the document based on a character image in the image data, and image data rotating means for rotating the color image data according to the determined document direction, I do.

【0011】また、本発明は、前記カラーデータ検出手
段が、当該カラー画像データを輝度と2種類の色度とで
表される色空間に変換する色空間変換手段と、前記2種
類の色度のうちいずれかの値が、それぞれについて設定
された閾値を超える場合に、有彩色の画像データである
と判別する有彩色判別手段と、を備えることを特徴とす
る。
The present invention also provides a color space detecting means for converting the color image data into a color space represented by luminance and two kinds of chromaticity; And chromatic color discriminating means for discriminating the image data as chromatic color image data when any of the values exceeds a threshold value set for each.

【0012】さらに、本発明は、前記原稿方向判別手段
が、前記検出された有彩色の画像データを白データに置
き換えて白黒画像データを生成するカラーデータ置換手
段と、前記白黒画像データから文字画像を抽出する文字
切り出し手段と、当該文字画像における局所的な形状の
相対的位置もしくはその隣接方向を文字特徴量として抽
出する特徴量抽出手段と、所定文字の文字特徴量を予め
記憶する特徴量記憶手段と、前記特徴量抽出手段により
抽出された文字特徴量と前記特徴量記憶手段に記憶され
た文字特徴量を比較する比較手段と、上記比較結果に基
づいて前記文字画像の方向を認識する認識手段とを備
え、前記認識手段で認識された文字画像の方向を原稿の
方向と判別することを特徴とする。
Further, according to the present invention, the document direction discriminating means replaces the detected chromatic image data with white data to generate black and white image data; Character extraction means for extracting the relative position of the local shape in the character image or the adjacent direction thereof as a character characteristic amount, and a characteristic amount storage for storing the character characteristic amount of a predetermined character in advance Means, comparison means for comparing the character feature quantity extracted by the feature quantity extraction means with the character feature quantity stored in the feature quantity storage means, and recognition for recognizing the direction of the character image based on the comparison result. Means for distinguishing the direction of the character image recognized by the recognition means from the direction of the document.

【0013】[0013]

【発明の実施の形態】以下、本発明に係る画像入力装置
を、フルカラーのデジタル複写機に適用した場合につい
て説明する。 (1)フルカラーデジタル複写機全体の構成 まず、図1によりフルカラーデジタル複写機(以下、単
に「複写機」という。)の全体の構成を説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS A case where an image input apparatus according to the present invention is applied to a full-color digital copying machine will be described below. (1) Overall Configuration of Full-Color Digital Copier First, the overall configuration of a full-color digital copier (hereinafter, simply referred to as "copier") will be described with reference to FIG.

【0014】同図に示すように、この複写機は、原稿を
自動的に搬送する原稿自動搬送部100と、搬送された
原稿の画像を読み取る画像読取部200と、読み取った
原稿画像のデータに基づいて記録シート上に画像を形成
するプリンタ部300と、からなる。原稿自動搬送部1
00は、原稿給紙トレイ11と、搬送ローラ群12と、
レジストローラ13と、搬送ベルト14などから構成さ
れる。原稿給紙トレイ11にセットされた原稿束は、搬
送ローラ群12により一番下の原稿から1枚ずつ下方に
給紙され、レジストローラ13でタイミングを取られ、
搬送ベルト14により画像読取部200の原稿ガラス板
21の原稿読取位置まで搬送される。
As shown in FIG. 1, the copying machine includes an automatic document feeder 100 that automatically feeds a document, an image reading unit 200 that reads an image of the fed document, and data of the read document image. And a printer unit 300 for forming an image on a recording sheet based on the image data. Automatic document feeder 1
00 is a document feed tray 11, a transport roller group 12,
It is composed of a registration roller 13, a conveyor belt 14, and the like. The bundle of documents set on the document feed tray 11 is fed downward one by one from the lowermost document by the conveying roller group 12, and is timed by registration rollers 13.
The document is conveyed to the document reading position on the document glass plate 21 of the image reading unit 200 by the conveyance belt 14.

【0015】そして、画像読取部200で画像をスキャ
ンされた後、再び、搬送ベルト14が駆動され、排紙ロ
ーラ15を経て原稿排紙トレイ16上に排出される。ま
た、この原稿の裏面もスキャンする場合には、原稿の先
端が排紙ローラ15に至る直前で、切換爪17により原
稿の搬送路を反転ローラ18方向に切り替え、当該反転
ローラ18により原稿の向きを反転させて再び原稿ガラ
ス板21方向へ移送するようになっている。
After the image is scanned by the image reading unit 200, the transport belt 14 is driven again and is discharged onto the document discharge tray 16 via the discharge roller 15. When the back side of the original is also scanned, just before the leading end of the original reaches the discharge roller 15, the switching path 17 switches the original conveyance path to the reversing roller 18, and the reversing roller 18 turns the original. , And transported again toward the original glass plate 21.

【0016】画像読取部200は、上記原稿ガラス板2
1の原稿読取位置に搬送された原稿の画像を光学的に読
み取るものであって、スキャナ22、集光レンズ23、
CCDイメージセンサ24、スキャナモータM2などか
ら構成される。スキャナ22には、露光ランプ25とこ
の露光ランプ25の照射による原稿からの反射光を原稿
ガラス板21に平行な方向に光路変更するミラー26が
設置されて、スキャナモータM2により駆動されて図の
矢印方向に移動することにより原稿ガラス板21上の原
稿をスキャンする。
The image reading section 200 includes the original glass plate 2
1 for optically reading an image of a document conveyed to the first document reading position, comprising a scanner 22, a condenser lens 23,
It comprises a CCD image sensor 24, a scanner motor M2 and the like. The scanner 22 is provided with an exposure lamp 25 and a mirror 26 for changing the optical path of light reflected from the original by irradiation of the exposure lamp 25 in a direction parallel to the original glass plate 21, and is driven by a scanner motor M2 to The original on the original glass plate 21 is scanned by moving in the direction of the arrow.

【0017】スキャナモータM2としてパルスモータが
使用されており、スキャナ22の位置は、ホームポジシ
ョンに設置された光電式のスキャナホームセンサSE1
による検出位置を基準として、その位置からの移動量、
すなわちパルスモータのステップ数に基づいて制御され
る。原稿からの反射光は、ミラー26に反射された後、
ミラー27、28および集光レンズ23を介してCCD
カラーイメージセンサ(以下、単に「CCDセンサ」と
いう)24のセンサ面まで導かれ、ここで電気信号に変
換されて各色成分(R,G,B)ごとの画像データが生
成される。
A pulse motor is used as the scanner motor M2, and the position of the scanner 22 is determined by the photoelectric scanner home sensor SE1 installed at the home position.
The amount of movement from that position,
That is, control is performed based on the number of steps of the pulse motor. The reflected light from the original is reflected by the mirror 26,
CCD via mirrors 27 and 28 and condenser lens 23
The light is guided to the sensor surface of a color image sensor (hereinafter, simply referred to as a “CCD sensor”) 24, where it is converted into an electric signal to generate image data for each color component (R, G, B).

【0018】なお、ミラー27、28は対となって、ス
キャナ22の移動速度の半分の速度で同一方向に移動す
るようになっており、これによりスキャナ22から集光
レンズ23までの光路長を一定に保ち、常に原稿画像が
CCDセンサ24のセンサ面で結像するように構成され
ている。CCDセンサ24で生成された画像データは、
制御部400内の画像信号処理部420(図2参照)に
おいてA/D変換されてデジタル信号となり、さらにシ
ェーディング補正や濃度変換、エッジ強調などの必要な
処理を加えられた後、色成分ごとに画像メモリ431
(同図2)に格納される。
The mirrors 27 and 28 are paired so as to move in the same direction at half the moving speed of the scanner 22, thereby reducing the optical path length from the scanner 22 to the condenser lens 23. The configuration is such that the original image is always formed on the sensor surface of the CCD sensor 24 while being kept constant. The image data generated by the CCD sensor 24 is
After being A / D-converted into a digital signal in an image signal processing unit 420 (see FIG. 2) in the control unit 400, and subjected to necessary processing such as shading correction, density conversion, and edge enhancement, the image signal is processed for each color component. Image memory 431
(FIG. 2).

【0019】画像メモリ431に格納された画像データ
は、後述するように原稿判別部500でなされた天地認
識の結果に応じて回転処理され、最終的に、シアン
(C)、マゼンタ(M)、イエロー(Y)、黒(K)の
印字用データに変換されて、プリンタ部300の露光ヘ
ッド部310に出力され、あるいは、通信インターフェ
ース451から電話回線等を介して他の複写機やコンピ
ュータなどに送信される。
The image data stored in the image memory 431 is subjected to rotation processing according to the result of the top / bottom recognition performed by the document discrimination unit 500 as described later, and finally, cyan (C), magenta (M), The data is converted into yellow (Y) and black (K) print data and output to the exposure head unit 310 of the printer unit 300, or transmitted to another copying machine or computer via the communication interface 451 via a telephone line or the like. Sent.

【0020】プリンタ部300は、公知の電子写真方式
により、コピー用紙やOHP用のフィルムシートなどの
記録シート上に画像を形成するものであって、露光ヘッ
ド部310と、画像形成プロセス部320と、給紙部3
30と、再給紙部340と、からなる。露光ヘッド部3
10は、上述のシアン(C)、マゼンタ(M)、イエロ
ー(Y)、黒(K)の印字用データに対応して、4つの
露光ヘッド311c、311m、311y、311kを
備えており、それぞれ、レーザダイオードとポリゴンミ
ラー等を備える。
The printer unit 300 forms an image on a recording sheet such as a copy sheet or an OHP film sheet by a known electrophotographic method. The printer unit 300 includes an exposure head unit 310, an image forming process unit 320, , Paper feed unit 3
30 and a re-feed unit 340. Exposure head 3
Reference numeral 10 includes four exposure heads 311c, 311m, 311y, and 311k corresponding to the above-described cyan (C), magenta (M), yellow (Y), and black (K) print data. , A laser diode and a polygon mirror.

【0021】また、画像形成プロセス部320も、同じ
く、C,M,Y,Kの各印字用データに対応して、4つ
の画像形成ユニット321c、321m、321y、3
21kを備えており、それぞれ、感光体ドラム322
c、322m、322y、322kを中心にしてその周
囲にクリーナ、帯電チャージャおよび現像器などを配設
して構成され、上記露光ヘッド部310によるレーザビ
ームの露光走査を受けて、各感光体ドラム322c、3
22m、322y、322kにその色成分に応じたトナ
ー像が形成される。
Similarly, the image forming process section 320 also has four image forming units 321c, 321m, 321y, and 321c corresponding to the C, M, Y, and K print data.
21k, and each of the photosensitive drums 322
c, 322m, 322y, and 322k, and a cleaner, a charging charger, a developing unit, and the like are arranged around the photosensitive drums 322c. , 3
At 22m, 322y and 322k, a toner image corresponding to the color component is formed.

【0022】例えば、シアンの印字用データが露光ヘッ
ド311cのレーザダイオード312cに出力される
と、レーザダイオード312cから変調されたレーザ光
が発光され、このレーザ光が、所定の角速度で回転する
ポリゴンミラー313cのミラー面で反射して、図1の
時計回りに回転駆動される感光体ドラム322c表面を
露光走査し、これにより感光体ドラム322c表面に静
電潜像が形成される。感光体ドラム322cに形成され
た静電潜像は、現像器323cによりシアンのトナー粒
子の供給を受けて、トナー像として顕像化される。
For example, when cyan printing data is output to the laser diode 312c of the exposure head 311c, a modulated laser beam is emitted from the laser diode 312c, and this laser beam is rotated at a predetermined angular velocity by a polygon mirror. The surface of the photosensitive drum 322c, which is reflected and reflected by the mirror surface 313c and is driven to rotate clockwise in FIG. 1, performs exposure scanning, whereby an electrostatic latent image is formed on the surface of the photosensitive drum 322c. The electrostatic latent image formed on the photosensitive drum 322c is supplied with cyan toner particles by the developing device 323c, and is visualized as a toner image.

【0023】一方、給紙部330には、異なるサイズの
記録シートを収納する3つの用紙カセット331〜33
3が設けられており、上述の感光体ドラム322cにお
ける作像動作に同期して、例えば用紙カセット331か
ら所定サイズの記録シートが給紙されて、転写用搬送ベ
ルト334により感光体ドラム322cの下方の転写位
置まで搬送され、転写チャージャ324cの静電力によ
り感光体ドラム322c表面のトナー像が当該記録シー
ト表面に転写される。
On the other hand, the paper supply unit 330 has three paper cassettes 331 to 33 for storing recording sheets of different sizes.
3, a recording sheet of a predetermined size is fed from the paper cassette 331, for example, in synchronization with the image forming operation on the photosensitive drum 322c, and the transfer belt 334 transfers the recording sheet below the photosensitive drum 322c. And the toner image on the surface of the photosensitive drum 322c is transferred to the recording sheet surface by the electrostatic force of the transfer charger 324c.

【0024】このような画像形成動作が他の露光ヘッド
311m、311y、311k、および画像形成ユニッ
ト321m,321y,321kにおいてタイミングを
ずらしながら実行され、記録シート上に各色のトナー像
が重ねて転写されることによりフルカラーの画像が再現
される。その後、記録シートは、定着部327で定着さ
れ、再給紙部340内の搬送路341を経由して排紙ト
レイ342上に排出される。
Such an image forming operation is executed while shifting the timing in the other exposure heads 311m, 311y, 311k and the image forming units 321m, 321y, 321k, and the toner images of the respective colors are transferred onto the recording sheet in a superimposed manner. Thus, a full-color image is reproduced. Thereafter, the recording sheet is fixed by the fixing unit 327 and is discharged onto the discharge tray 342 via the transport path 341 in the re-feeding unit 340.

【0025】もし、この記録シートの裏側にも印字する
場合(いわゆる両面コピーの場合)には、再給紙部34
0の切換爪343の方向を変えて記録シートを搬送路3
44方向に導き、一旦反転用搬送路345に押し出して
から、図示しない搬送ローラにより搬送路346を介し
て中間トレイ347へ送り出し、記録シートの表裏が反
転した状態で収納する。そして、当該中間トレイ347
内の記録シートを転写用搬送ベルト334に給紙するこ
とにより、その裏面への画像形成を実行し、その後、定
着部327を経由して排紙トレイ342上に排出する。
If printing is to be performed on the back side of the recording sheet (so-called double-sided copying), the re-feeding section 34
0, the recording sheet is conveyed by changing the direction of the switching claw 343.
After being guided in the 44 direction and once extruded into the reversing conveyance path 345, it is sent out to the intermediate tray 347 via the conveyance path 346 by a conveyance roller (not shown), and the recording sheet is stored in a state where the recording sheet is turned upside down. Then, the intermediate tray 347
By feeding the recording sheet therein to the transfer belt 334, an image is formed on the rear surface thereof, and then discharged onto the discharge tray 342 via the fixing unit 327.

【0026】なお、プリンタ部300におけるSE2
は、タイミングセンサであって、転写用搬送ベルト33
4上の基準マーク(不図示)を検出し、これにより記録
シートの搬送のタイミング合わせが行われる。また、各
画像形成ユニット321c、321m、321y、32
1kの内部にはそれぞれレジスト補正センサ325c、
m、y、kが内蔵されており、転写用搬送ベルト334
上の上記基準マークを順次検出することにより、各色成
分の印字用データの出力のタイミングを微調整し、各色
成分による画像形成の色ずれを防止するようにしてい
る。
Note that SE2 in the printer unit 300
Is a timing sensor, which is a transfer belt 33 for transfer.
4, a reference mark (not shown) is detected, and the conveyance timing of the recording sheet is adjusted. Further, each image forming unit 321c, 321m, 321y, 32
Each of the registration correction sensors 325c inside 1k,
m, y, and k are built in, and the transfer belt 334 for transfer is used.
By sequentially detecting the above-mentioned reference marks, the output timing of the print data of each color component is finely adjusted to prevent color shift in image formation due to each color component.

【0027】また、転写用搬送ベルト334を掛け渡し
た複数のローラの内、図の1番右側のローラ328は、
昇降可能なフレーム(図示せず)に軸支されており、黒
のみの単色画像の形成時には、当該フレームを図示しな
い昇降装置により下方に移動させることにより、補助ロ
ーラ334aより右側の部分の転写用搬送ベルト334
が、画像形成ユニット321c,321m,321yの
各感光帯ドラム322c,322m,322yから離脱
するようになっている。この際、転写チャージャ326
c,326m,326yも上記フレームと共に下方に移
動する。
The roller 328 on the rightmost side in the drawing among a plurality of rollers around which the transfer belt 334 is transferred is
It is supported by a vertically movable frame (not shown), and when forming a black-only monochromatic image, the frame is moved downward by a vertically moving device (not shown) to transfer a portion on the right side of the auxiliary roller 334a. Conveyor belt 334
Are separated from the photosensitive band drums 322c, 322m, 322y of the image forming units 321c, 321m, 321y. At this time, the transfer charger 326
c, 326m, and 326y also move downward together with the frame.

【0028】これにより単色画像形成時には、転写用搬
送ベルト334が、感光体ドラム322c,m,yと非
接触状態となり、該当する画像形成ユニット321c,
m,yの駆動を停止することができるため、各感光体ド
ラム322c,m,yやその周辺のプロセスユニットの
摩耗を低減することができる。なお、画像形成ユニット
321c、m、y、kは、それぞれ各プロセス毎に一体
化されて本体に着脱可能になっており、トナーの交換等
のメンテナンスが容易なようになっている。また、画像
読取部200の前面の操作しやすい位置には、操作パネ
ル70(図2参照)が設置されており、これにより操作
者がコピー開始やコピー部数の設定などの所定の入力操
作を行う。 (2)制御部400の構成 次に、上記複写機の内部に設置される制御部400の構
成を図2のブロック図により説明する。
As a result, during the formation of a single-color image, the transfer belt 334 is brought into non-contact with the photosensitive drums 322c, m, and y, and the corresponding image forming units 321c, 321c,
Since the driving of m and y can be stopped, the abrasion of each of the photosensitive drums 322c, m and y and the process units around them can be reduced. The image forming units 321c, m, y, and k are integrated in each process and can be attached to and detached from the main body, so that maintenance such as toner replacement can be easily performed. Further, an operation panel 70 (see FIG. 2) is provided at a position on the front of the image reading unit 200 where the operation is easy, whereby the operator performs a predetermined input operation such as start of copying and setting of the number of copies. . (2) Configuration of Control Unit 400 Next, the configuration of the control unit 400 installed inside the copying machine will be described with reference to the block diagram of FIG.

【0029】同図に示すように制御部400は、画像読
取制御部410と、画像信号処理部420と、メモリ制
御部430と、プリンタ制御部440と、外部通信制御
部450と、メイン制御部460と、原稿判別部500
等からなる。各制御部410〜460および原稿判別部
500は、それぞれCPUを中心として構成されてお
り、コマンドラインCRを介して、相互に必要なデータ
やコマンドの授受を行い、また、画像データバスGBを
介して画像データの転送が行われるようになっている。
As shown in FIG. 3, the control unit 400 includes an image reading control unit 410, an image signal processing unit 420, a memory control unit 430, a printer control unit 440, an external communication control unit 450, a main control unit. 460 and the document discrimination unit 500
Etc. Each of the control units 410 to 460 and the document discrimination unit 500 are configured with a CPU as a center. The control units 410 to 460 transmit and receive mutually necessary data and commands via a command line CR, and further, via an image data bus GB. Image data is transferred.

【0030】画像読取制御部410は、上記原稿自動搬
送部100および画像読取部200の動作を制御して原
稿の読取を実行させるものである。すなわち、操作パネ
ル70から所定のコピーモードが設定されてコピー開始
の操作がなされると、メイン制御部460を介して原稿
読取要求を受取り、原稿自動搬送部100の動作を制御
して原稿を画像読取部200の原稿ガラス板21上の所
定位置まで搬送し、その後、画像読取部200各部の動
作を制御して、スキャナ22により原稿をスキャンさ
せ、CCDセンサ24により読み取られた画像データ
を、画像信号処理部420に送信する。
The image reading control unit 410 controls the operations of the automatic document feeder 100 and the image reading unit 200 to execute reading of a document. That is, when a predetermined copy mode is set from the operation panel 70 and a copy start operation is performed, a document reading request is received via the main control unit 460, and the operation of the automatic document feeder 100 is controlled to copy the document. The document is conveyed to a predetermined position on the document glass plate 21 of the reading unit 200, and thereafter, the operation of each unit of the image reading unit 200 is controlled so that the document is scanned by the scanner 22 and the image data read by the CCD sensor 24 is converted into an image. The signal is transmitted to the signal processing unit 420.

【0031】画像信号処理部420は、A/Dコンバー
タ、シェーディング補正部、MTF補正部や、変倍部、
γ補正部などを備えており、入力された原稿の画像デー
タは、A/Dコンバータでデジタルの多値信号に変換さ
れ、シェーディング補正部で露光ランプ25の照度ムラ
やCCDセンサ24の感度ムラが補正された後、MTF
補正部でエッジ強調などの画質改善のための処理を受
け、さらに変倍部やγ補正部でそれぞれ変倍処理、γ補
正処理を加えられた後に、原稿判別部500およびメモ
リ制御部430に送られる。
The image signal processing section 420 includes an A / D converter, a shading correction section, an MTF correction section, a scaling section,
The image data of the input document is converted into a digital multi-level signal by an A / D converter, and the shading correction unit reduces unevenness in the illuminance of the exposure lamp 25 and unevenness in the sensitivity of the CCD sensor 24. After correction, MTF
After undergoing processing for improving image quality such as edge enhancement in the correction unit, and further performing scaling processing and γ correction processing in the scaling unit and the γ correction unit, respectively, Can be

【0032】原稿判別部500は、上記画像データに基
づいて、読み取った原稿の方向を判断して、所定の回転
角信号を発生し、あるいは、当該原稿が紙幣などコピー
禁止の対象となる特定の原稿の場合には、コピー禁止信
号を発生する。詳しくは後述する。メモリ制御部430
は、上記画像データを2値化し、あるいはさらに符号化
処理して、ページ単位で画像メモリ431に格納すると
共に、メイン制御部460からの読出し要求を受けて、
画像メモリ431から目的のページの画像データを読み
出して(圧縮されている場合には伸長処理を行ってか
ら)多値データに戻し、上記原稿判別部500からの回
転角度信号により回転処理部432で必要に応じて画像
データを回転処理してから、プリンタ制御部440に転
送する。なお、この回転処理は、画像データのメモリア
ドレスを変更する公知の技術(例えば、特開昭60ー1
26769号公報参照)によってなされる。
The document discrimination section 500 determines the direction of the read document based on the image data and generates a predetermined rotation angle signal, or a specific document, such as a bill, for which copying is prohibited. In the case of a document, a copy prohibition signal is generated. Details will be described later. Memory control unit 430
Receives the read request from the main control unit 460 while binarizing or further encoding the image data and storing it in the image memory 431 in page units.
The image data of the target page is read out from the image memory 431 (after decompression processing is performed if compressed) and returned to multi-valued data. After rotating the image data as necessary, the image data is transferred to the printer control unit 440. This rotation processing is performed by a known technique for changing a memory address of image data (for example, see Japanese Patent Application Laid-Open No.
26769).

【0033】プリンタ制御部440は、上記メモリ制御
部430から出力された画像データについて、内部のR
OMに格納された制御プログラムに基づいてプリンタ部
300各部の動作を制御して記録シートへの画像形成を
実行する。外部通信制御部450は、他の複写機やファ
クシミリ装置またはコンピュータなどの外部機器との画
像データなどの授受を制御するものであって、当該外部
機器から通信インターフェース451を介して受信した
画像データを上記画像メモリ431に格納し、反対に自
装置の画像読取部200で読み取った原稿の画像データ
を通信インターフェース451を介して外部機器に送信
する処理を行う。
The printer control unit 440 operates the internal R for the image data output from the memory control unit 430.
The operation of each part of the printer unit 300 is controlled based on the control program stored in the OM to execute image formation on a recording sheet. The external communication control unit 450 controls transmission and reception of image data and the like to and from an external device such as another copying machine, a facsimile machine, or a computer. The external communication control unit 450 receives image data received from the external device via the communication interface 451. The image data of the document stored in the image memory 431 and read by the image reading unit 200 of the own device is transmitted to the external device via the communication interface 451.

【0034】また、メイン制御部460は、操作パネル
70からの各種のキー入力を受け付けて、設定されたコ
ピーモードを各制御部410〜450に報告し、あるい
は、各制御部410〜450からの連絡を受けて必要な
内容を操作パネル70の表示部に表示させたりするほ
か、処理ルーチンの時間を管理しながら各制御部410
〜450、原稿判別部500に対してそれぞれの動作の
タイミングを指示して、全体を統一的に制御し、円滑な
コピー動作を実現させる。また、原稿判別部500から
コピー禁止信号を受けた場合は、プリンタ制御部440
に画像形成動作を実行しないように指示を送る。 (3)原稿判別部500の構成 図3は、上記原稿判別部500の構成を示すブロック図
である。
The main control unit 460 receives various key inputs from the operation panel 70 and reports the set copy mode to each of the control units 410 to 450. Alternatively, the main control unit 460 transmits the set copy mode to each of the control units 410 to 450. In addition to displaying the necessary contents on the display unit of the operation panel 70 in response to the notification, each control unit 410 manages the time of the processing routine.
To 450, and instructs the original discrimination unit 500 of the timing of each operation, controls the whole unity, and realizes a smooth copying operation. When a copy prohibition signal is received from the document discrimination unit 500, the printer control unit 440
To not execute the image forming operation. (3) Configuration of Document Discrimination Unit 500 FIG. 3 is a block diagram showing a configuration of the document discrimination unit 500.

【0035】なお、当該ブロック図において、普通の実
線の矢印は通常のデータもしくは制御信号の流れを、太
い実線の矢印は画像データの流れを、太い破線の矢印
は、これら以外の文字の特徴量に関するデータの流れ
を、それぞれ示している。この原稿判別部500は、画
像読取部200で読み取られた原稿の画像データに基づ
き、2つの処理を実行する。すなわち、当該原稿が紙
幣などの特定原稿であるか否かを判別して、特定原稿と
判定される場合にはメイン制御部460にコピーを禁止
するコピー禁止信号を出力する特定原稿判別処理と、
画像読取部200で読み取られた原稿の方向を判別して
適切な方向で画像データが出力されるようにメモリ制御
部430に回転角信号を出力する原稿方向判別処理(す
なわち天地認識処理)である。
In the block diagram, normal solid arrows indicate the flow of normal data or control signals, thick solid arrows indicate the flow of image data, and thick broken arrows indicate the characteristic amounts of other characters. The flow of data relating to each is shown. The document determination unit 500 performs two processes based on the image data of the document read by the image reading unit 200. That is, a specific original discriminating process of discriminating whether or not the original is a specific original such as a bill, and outputting a copy prohibition signal for prohibiting copying to the main control unit 460 when the specific original is determined,
Document direction discrimination processing (that is, top / bottom recognition processing) for discriminating the direction of the document read by the image reading unit 200 and outputting a rotation angle signal to the memory control unit 430 so that image data is output in an appropriate direction. .

【0036】前者の特定原稿判別処理は、特定色抽出回
路510からの出力に基づきCPU501で実行され、
後者の天地認識処理は、カラーデータキャンセル回路5
20、文字切り出し回路530、特徴量抽出回路54
0、さらに辞書データ発生回路560を経た後、最終的
に比較回路580においてなされる比較結果に基づきC
PU501で実行される。
The former specific document discriminating process is executed by the CPU 501 based on the output from the specific color extracting circuit 510.
The latter upside-down recognition processing is performed by the color data canceling circuit 5.
20, character extraction circuit 530, feature amount extraction circuit 54
0, and after passing through the dictionary data generation circuit 560, C is finally determined based on the comparison result performed by the comparison circuit 580.
This is executed by the PU 501.

【0037】以下、上記2つの処理に分けて説明する。 (3−1)特定原稿判別処理 画像読取部200で読み取られ、画像信号処理部420
で所定の処理を施されたR,G,Bの各色成分の画像デ
ータが画像データバスGB(図2)を介して、特定色抽
出回路510に入力されると、特定色抽出回路510
は、これらの画像データに基づいて予め設定された特定
色の色面積を求め、これにより当該原稿が特定の原稿で
あるか否かを判別する。
Hereinafter, the two processes will be described separately. (3-1) Specific Document Discrimination Processing Image read by image reading section 200 and image signal processing section 420
When the image data of each of the R, G, and B color components that have been subjected to the predetermined processing are input to the specific color extraction circuit 510 via the image data bus GB (FIG. 2), the specific color extraction circuit 510
Calculates the color area of a preset specific color based on these image data, and determines whether or not the original is a specific original.

【0038】当該特定色抽出回路510は、図4のブロ
ック図に示すように色空間変換回路511と、3個の特
定色カウンタユニット512〜514、およびOR回路
515とからなる。色空間変換回路511は、入力され
たR,G,Bの画像データの値を、輝度(Y)と2つの
色度(Cr、Cb)からなる色空間の色信号に変換する
回路である。このような色空間への変換は、一般にテレ
ビジョンなどにおける色再現のための公知の技術である
ので、ここでの詳細な説明は省略する。
The specific color extraction circuit 510 comprises a color space conversion circuit 511, three specific color counter units 512 to 514, and an OR circuit 515 as shown in the block diagram of FIG. The color space conversion circuit 511 is a circuit that converts input R, G, and B image data values into color signals in a color space including luminance (Y) and two chromaticities (Cr, Cb). Such conversion to a color space is generally a known technique for color reproduction in a television or the like, and a detailed description thereof will be omitted.

【0039】R,G,Bのデータ値のままでは、帯域幅
も広くなりデータ処理も複雑になるため、上述のように
Y、Cr、Cbの色信号に変換することにより、「色」
を比較的帯域の狭い色信号で特定することが可能とな
り、次に述べる特定色カウンタユニット512〜514
での色判定を容易にさせる。色空間変換回路511で得
られたY、Cr、Cbの色信号は、それぞれ、特定色カ
ウンタユニット512〜514に入力される。
If the data values of R, G, and B remain as they are, the bandwidth becomes wide and the data processing becomes complicated, so that the "color" is converted by converting the color values into the Y, Cr, and Cb color signals as described above.
Can be specified by a color signal having a relatively narrow band, and specific color counter units 512 to 514 described below.
To facilitate color judgment. The Y, Cr, and Cb color signals obtained by the color space conversion circuit 511 are input to specific color counter units 512 to 514, respectively.

【0040】このうち特定色カウンタユニット512
は、色判定部5121〜5123、カウンタ5124〜
5126およびAND回路5127からなり、各色判定
部5121〜5123は、それぞれ色空間変換回路51
1で変換されたY、Cr、Cbの色信号の値により、当
該画素が指定された特定の色であるか否かを判定する。
そのため、例えば、各色判定部5121〜5123は、
それぞれ複数のコンパレータを内部に有し、各コンパレ
ータには、自己の判定部に指定された特定色にについ
て、そのY,Cr,Cbの下限値と上限値が設定されて
おり、これらのコンパレータの出力結果により、各色信
号値の全てについて所定の範囲内にあると判断された場
合には、当該画素の色が当該指定された特定色であると
して、それぞれ次段のカウンタ5124〜5126にカ
ウントアップ信号を送信する。
Of these, the specific color counter unit 512
Are the color determination units 5121 to 5123, the counter 5124 to
5126 and an AND circuit 5127. Each of the color determination units 5121 to 5123
Based on the values of the Y, Cr, and Cb color signals converted in step 1, it is determined whether the pixel is a specified specific color.
Therefore, for example, each of the color determination units 5121 to 5123
Each of the comparators has a plurality of comparators therein. In each of the comparators, a lower limit value and an upper limit value of Y, Cr, and Cb are set for a specific color designated by its own determination unit. If it is determined from the output result that all of the color signal values are within the predetermined range, the color of the pixel is determined to be the specified specific color and counted up to the next-stage counters 5124 to 5126, respectively. Send a signal.

【0041】各カウンタ5124〜5126では、対応
する色判定部5121〜5123からカウントアップ信
号を得るたびにカウントを「1」だけインクリメントし
ていき、それぞれCPU501により設定された所定の
閾値を超えると、AND回路5127に色面積一致信号
を出力するようになっている。AND回路5127は、
カウンタ5124〜5126のいずれもから色面積一致
信号を受けると論理信号「1」を出力し、OR回路51
5を介して特定色カウントアップ信号をCPU501に
送る。
Each of the counters 5124 to 5126 increments the count by "1" each time a count-up signal is obtained from the corresponding color judging section 5121 to 5123. When the count exceeds a predetermined threshold value set by the CPU 501, A color area matching signal is output to the AND circuit 5127. AND circuit 5127
When a color area matching signal is received from any of the counters 5124 to 5126, a logical signal “1” is output and the OR circuit 51
A specific color count-up signal is sent to the CPU 501 via the CPU 5.

【0042】図3に戻り、CPU501は、この特定色
カウントアップ信号を受けた場合には、当該原稿が特定
原稿であると判断して、メイン制御部460にコピー禁
止信号を送信する。メイン制御部460は、このコピー
禁止信号を受けて、操作パネル70からの操作の受付け
を拒否すると共に、プリンタ制御部440に対し当該画
像データに基づく画像形成動作を禁止する。
Referring back to FIG. 3, when receiving the specific color count-up signal, CPU 501 determines that the document is a specific document and transmits a copy prohibition signal to main control unit 460. Upon receiving the copy prohibition signal, the main control unit 460 refuses to accept the operation from the operation panel 70 and prohibits the printer control unit 440 from performing an image forming operation based on the image data.

【0043】このように特定色カウンタユニット512
は、読み取ったカラー原稿の画像データについて、3種
類の特定色の画素数(色面積)をカウントし、各特定色
の画素数が全て所定の閾値より大きい場合のみ、特定色
カウントアップ信号を生成し、これにより当該原稿のコ
ピーが禁止される。例えば、コピー禁止の対象となる原
稿が1万円札である場合には、この紙幣に使用されてい
る特徴的な色を3色選択し、各特定色を判定できるよう
に色信号Y、Cr、Cbに分解して表したときの各色信
号値の上限値と下限値を3つの特徴色ごとに色判定部5
121〜5123内部のコンパレータに設定すると共
に、その特定色を有する画素をカウントしてその合計値
を各カウンタ5124〜5126に閾値として設定して
おく、そして原稿を読み取って得られた画像データの特
定色の画素数が選択された3色について共に上記閾値よ
り多い場合には、その原稿を1万円札とみなしてコピー
禁止信号を発生し、これによりカラーデジタル複写機の
悪用を事前に防止することができる。
As described above, the specific color counter unit 512
Counts the number of pixels (color area) of three specific colors in the read image data of a color original, and generates a specific color count-up signal only when the number of pixels of each specific color is all larger than a predetermined threshold value Accordingly, copying of the original is prohibited. For example, if the copy-protected original is a 10,000-yen bill, three characteristic colors used for this bill are selected, and the color signals Y and Cr are used so that each specific color can be determined. , Cb, the upper limit value and the lower limit value of each color signal value for each of three characteristic colors.
In addition to the setting of the internal comparators 121 to 5123, the pixels having the specific color are counted, and the total value is set as a threshold value in each of the counters 5124 to 5126, and the image data obtained by reading the original is specified. If the number of color pixels is greater than the threshold value for all three selected colors, the original is regarded as a 10,000-yen bill and a copy prohibition signal is generated, thereby preventing the color digital copier from being misused in advance. be able to.

【0044】紙幣には、通常の印刷では使用されない特
徴的な色が使用されており、紙幣以外の原稿において当
該特徴的な色が3色の全部について所定の色面積以上と
なる可能性はほとんどなく、上記構成により当該原稿が
ほぼ確実に1万円札であると判別しうる。また、このよ
うなコピー禁止の動作を免れるため、わずかにコピー倍
率を変更して特定色の画素数のカウントに誤差を生ぜし
めるような場合も考えられる。このような場合には、C
PU501により当該コピー倍率の設定に連動してカウ
ンタ5124〜5126に与える閾値も変更するように
しておけばよい。
Characteristic colors that are not used in normal printing are used for banknotes, and it is unlikely that all of the three characteristic colors of a document other than a banknote will exceed a predetermined color area. In addition, the above configuration makes it possible to almost certainly determine that the original is a 10,000-yen bill. In order to avoid such a copy prohibition operation, there may be a case where the copy magnification is slightly changed to cause an error in counting the number of pixels of a specific color. In such a case, C
The threshold value given to the counters 5124 to 5126 may be changed by the PU 501 in conjunction with the setting of the copy magnification.

【0045】なお、他の特定色カウンタユニット51
3、514も上述の特定色カウンタユニット512と同
じ構成であって、それぞれのコピー禁止の対象となるカ
ラー原稿に応じて各色判定部における色信号の上限・下
限の値や各カウンタにおける画素数の閾値が異なって設
定されているだけでなので説明を省略する。これらによ
り、上記一万円札のほか五千円札や千円札も判別するこ
とが可能となり、そのコピーを禁止することができる。
The other specific color counter unit 51
Reference numerals 3 and 514 also have the same configuration as the above-described specific color counter unit 512. The upper and lower limits of the color signal in each color determination unit and the number of pixels in each counter are determined in accordance with the color document to be copy-prohibited. The description is omitted because only the thresholds are set differently. As a result, in addition to the 10,000-yen bill, a 5,000-yen bill and a 1,000-yen bill can be determined, and copying thereof can be prohibited.

【0046】以上のような特定原稿判別方法によれば、
極めて簡易かつ容易に特定原稿が判別されることにな
る。すなわち、従来の複写機においては、特定原稿のパ
ターンを抽出し、予め内部に設定されたパターンとマッ
チングすることにより特定原稿か否かを判別するように
なっていたので、当該パターン画像を内部のメモリに格
納しておく必要があり、新紙幣が発行されてその模様が
変更された場合には、当該新紙幣のパターンを新たに登
録しなければならない不便さがあり、その上、パターン
マッチングのための制御プログラムも複雑であるという
問題もあったが、本実施の形態においては、複数の特定
色の色面積のみで判断しているので、複雑な制御プログ
ラムは一切不要となり上述のような簡易なハード回路の
みで、リアルタイムに特定原稿を判別でき、しかもCP
U501により各色信号の上限・下限値や対応する特定
色の画素数の閾値を変更するのみで、国内の紙幣のみな
らず外国紙幣の判別にも容易に対応できる。
According to the specific document discriminating method as described above,
The specific document can be determined very easily and easily. That is, in a conventional copying machine, a pattern of a specific document is extracted, and it is determined whether or not the specific document is a specific document by matching the pattern with a pattern set in advance. When a new banknote is issued and its pattern is changed, it is necessary to store the new banknote pattern in a new manner. However, in the present embodiment, since the determination is made only based on the color areas of a plurality of specific colors, a complicated control program is not required at all, and the simple A specific document can be identified in real time with only a simple hardware circuit.
Only by changing the upper and lower limit values of each color signal and the threshold value of the number of pixels of the corresponding specific color by U501, it is possible to easily cope with not only domestic bills but also foreign bills.

【0047】また、装置特有のばらつきにより、各色信
号の値に多少の誤差や読取値のばらつきがあってもCP
U501により上記諸値を補正することにより容易に補
正可能となる。さらに、各特定色カウンタユニット51
2〜514における色判定部およびカウンタの数を増加
して判定可能な特定色の数を増加すれば、特定原稿の判
別精度をより向上させることができ、また、特定色カウ
ンタユニット512〜514自体の数を増加すれば、よ
り多くの種類の特定原稿を判別することが可能となる。
Further, even if there is a slight error in the value of each color signal or a variation in the read value due to the variation peculiar to the apparatus, the CP value is not changed.
By correcting the above values by U501, correction can be easily performed. Further, each specific color counter unit 51
If the number of specific colors that can be determined is increased by increasing the number of color determination units and counters in 2 to 514, the accuracy of determining a specific document can be further improved, and the specific color counter units 512 to 514 themselves can be used. By increasing the number of documents, it is possible to determine more types of specific documents.

【0048】なお、CPU501は、原稿中にコピー禁
止を示す文字もしくは記号を発見した場合にもコピー禁
止信号を発生するが、これについては後述する。 (3−2)天地認識処理 天地認識処理は、大きく分けて、原稿画像から文字画
像を1文字ずつ切り出す文字切り出し処理と、この切
り出された文字からその特徴量を抽出する特徴量抽出処
理と、当該特徴量のうち文字の方向に依存しないデー
タから天地認識のための候補文字の辞書データを選択す
る辞書データ生成処理と、上記特徴量のうち文字の方
向に依存するデータと上記辞書データとを比較して回転
角を決定する回転角決定処理と、からなる。
It should be noted that the CPU 501 also generates a copy prohibition signal when a character or symbol indicating copy prohibition is found in a document, which will be described later. (3-2) Top / bottom recognition process The top / bottom recognition process is roughly divided into a character cutout process of cutting out a character image from a document image one by one, a feature amount extraction process of extracting a feature amount from the cutout character, A dictionary data generation process of selecting dictionary data of candidate characters for top-bottom recognition from data that does not depend on the direction of the character in the feature amount; and data that depends on the direction of the character in the feature amount and the dictionary data. And a rotation angle determination process for determining a rotation angle by comparison.

【0049】[文字切り出し処理]図3において、画像
メモリ431から読み出されたR,G,Bの画像データ
はカラーデータキャンセル回路520に入力され、ここ
で有彩色のカラー画像データを白データに置き換える処
理がなされる。具体的には、例えば、R、G、Bの画像
データを、上記特定色抽出回路510における色空間変
換回路511(図4)と同じ色空間変換回路を用いて、
Y、Cr、Cbの色信号に変換する。一般に、Cr,C
bの値が小さいほど無彩色に近いので、「0」に近い所
定の閾値を予め設定しておき、画素ごとにCr、Cbの
値と閾値と比較して、双方の値が当該閾値より小さい場
合には、無彩色の画像データとみなして当該画素のYの
値をそのまま出力し、Cr,Cbの少なくとも一方が、
上記閾値より大きな場合には、カラー画像データとみな
して当該画素のYの値を「白」に相当する値に置き換え
て出力するようにすればよい。
[Character Extraction Processing] In FIG. 3, the R, G, B image data read from the image memory 431 is input to a color data cancel circuit 520, where the chromatic color image data is converted into white data. Replacement processing is performed. Specifically, for example, R, G, and B image data are converted using the same color space conversion circuit as the color space conversion circuit 511 (FIG. 4) in the specific color extraction circuit 510.
The color signals are converted into Y, Cr and Cb color signals. Generally, Cr, C
Since the smaller the value of b, the closer to achromatic color, a predetermined threshold value close to “0” is set in advance, and the values of Cr and Cb are compared with the threshold value for each pixel, and both values are smaller than the threshold value. In this case, it is regarded as achromatic image data and the value of Y of the pixel is output as it is, and at least one of Cr and Cb is
If the value is larger than the threshold value, the pixel value is regarded as color image data, and the value of Y of the pixel is replaced with a value corresponding to “white” and output.

【0050】このように有彩色のカラー画像データを予
めキャンセルするのは、読み取った原稿がカラー写真画
像であるような場合には、天地認識を行うにあたり不要
なデータであり、また新聞や雑誌の見出しなどに用いら
れるカラー文字は、デザイン上の処理が施されていた
り、意図的に傾いて配置されていたりして、文字の方向
を認識を行うのに適していないと考えられるからであ
る。このような誤認識のおそれのあるデータを予め除外
することにより以降の天地認識処理をより確実にするこ
とができる。
Canceling the chromatic color image data in advance as described above is unnecessary data for performing the top-bottom recognition when the read original is a color photographic image. This is because color characters used for headings or the like have been subjected to design processing or are intentionally placed at an angle, and are considered to be unsuitable for recognizing the direction of the characters. By excluding such data having a possibility of erroneous recognition in advance, it is possible to further ensure the subsequent top and bottom recognition processing.

【0051】カラーデータキャンセル回路520から出
力された画像データ(輝度信号Y)は濃淡の階調を含む
ので、次の2値化回路521により2値化して不要な階
調情報を除去し、以後のデータ処理をさらに容易かつ確
実にする。この2値化回路521は、CPU501から
与えられた所定のパラメータに基づき、上記画像データ
を「0」と「1」に2値化し、ヒストグラム生成回路5
22と文字切り出し回路530のそれぞれに出力する。
Since the image data (luminance signal Y) output from the color data canceling circuit 520 includes gradations of density, unnecessary binarization information is removed by binarization by the next binarization circuit 521. Makes data processing easier and more reliable. The binarizing circuit 521 binarizes the image data into “0” and “1” based on predetermined parameters given from the CPU 501,
22 and the character extraction circuit 530.

【0052】ヒストグラム生成回路522は、上記2値
化された画像データの濃度値を主走査方向と副走査方向
に積分したヒストグラムを生成する。図5は、このヒス
トグラム生成の例を示す図である。原稿1枚分の2値画
像データD1を主走査方向に積分すると第1のヒストグ
ラムH1のようになり、副走査方向に積分すると第2の
ヒストグラムH2のようになる。これらの第1、第2の
ヒストグラムH1,H2がヒストグラムデータとしてヒ
ストグラムメモリ523に格納される。
The histogram generation circuit 522 generates a histogram in which the density values of the binarized image data are integrated in the main scanning direction and the sub scanning direction. FIG. 5 is a diagram showing an example of this histogram generation. When the binary image data D1 for one document is integrated in the main scanning direction, the result becomes a first histogram H1, and when integrated in the sub-scanning direction, the result becomes a second histogram H2. These first and second histograms H1 and H2 are stored in the histogram memory 523 as histogram data.

【0053】文字切り出し回路530は、このヒストグ
ラムデータに基づき2値画像データから1文字ずつ文字
画像を切り出す。このような文字切り出しの処理自体は
公知の技術であり、上記図5の第1のヒストグラムH1
の分布を見れば分かるようにヒストグラムの谷の部分が
行間を示しており、これにより、まず各行ごとに画像デ
ータを抽出し、抽出された各行を副走査方向に積分して
第3のヒストグラムを得る。この第3のヒストグラムに
おいてほぼ等間隔に生じる積分値の谷部は文字間を示し
ている筈であり、この位置により1文字分の画像データ
が文字画像として切り出されることになる。
The character extracting circuit 530 extracts character images one by one from the binary image data based on the histogram data. Such character extraction processing itself is a known technique, and the first histogram H1 shown in FIG.
As can be seen from the distribution, the valley portion of the histogram indicates the line spacing, whereby image data is first extracted for each row, and the extracted rows are integrated in the sub-scanning direction to obtain a third histogram. obtain. In the third histogram, the valleys of the integral values occurring at substantially equal intervals should indicate the space between characters, and image data for one character is cut out as a character image based on this position.

【0054】文字切り出し回路530は、上記文字切り
出し処理の結果に基づき、当該切り出した文字画像のサ
イズ(画素数)を示す「XY信号」と、白黒比を示す
「B/W信号」をCPU501に出力する。XY信号
は、切り出された文字画像の横方向の画素数Xと縦方向
の画素数Yの積として表され、B/W信号は、当該文字
画像中の線部分を示す画素(2値化された「1」の部
分。これを以下、「黒画素」という)の数Bを、線部以
外の画素(2値化された「0」の部分。以下、「白画
素」という。)の数Wで除した値として示される。
Based on the result of the character extracting process, the character extracting circuit 530 sends the CPU 501 an "XY signal" indicating the size (number of pixels) of the extracted character image and a "B / W signal" indicating the black and white ratio. Output. The XY signal is expressed as the product of the number X of pixels in the horizontal direction and the number Y of pixels in the vertical direction of the cut-out character image, and the B / W signal is a pixel (binarized) indicating a line portion in the character image. The number B of "1", which is hereinafter referred to as "black pixel", and the number of pixels other than the line portion (the binary "0"portion; hereinafter, referred to as "white pixel"). It is shown as a value divided by W.

【0055】CPU501は、これらの情報を基づき所
定の閾値と比較して当該切り出された文字がその向きを
認識する上で適しているか否かを判定し、当該文字が大
サイズの場合や黒画素が多い場合には、RETRY信号
を生成して文字切り出し回路530に送信して、次の文
字画像の切り出しを促す。詳しくは後述する。 [特徴量抽出処理」文字切り出し回路530は、上記R
ETRY信号を受信しない限り、当該切り出した文字の
画像データを次段の特徴量抽出回路540に出力する。
The CPU 501 compares this information with a predetermined threshold value to determine whether the cut-out character is suitable for recognizing the direction of the cut-out character. When there are many characters, a RETRY signal is generated and transmitted to the character cutout circuit 530 to prompt cutout of the next character image. Details will be described later. [Feature Extraction Processing] The character extraction circuit 530 uses the R
Unless an ETRY signal is received, the image data of the cut-out character is output to the feature extraction circuit 540 at the next stage.

【0056】この特徴量抽出回路540は、入力された
画像データに基づき、当該文字を特徴付ける複数の局所
的形状、すなわち閉ループ、十字交差点、T字交差点、
端点(これらを以下、単に「特徴形状」という。)や要
素数などを抽出して所定のデータを生成する回路であっ
て、図6に示すように外接長方形比率抽出回路541、
要素数抽出回路542、閉ループ抽出回路543、十字
抽出回路544、T字抽出回路545、端点抽出回路5
46、細線化処理回路547、エラーチェック回路54
8、特徴データ並び変え回路549とからなる。
Based on the input image data, the characteristic amount extraction circuit 540 generates a plurality of local shapes that characterize the character, that is, a closed loop, a cross intersection, a T-shaped intersection,
This is a circuit that extracts end points (hereinafter simply referred to as “feature shape”), the number of elements, and the like to generate predetermined data. As shown in FIG.
Element number extraction circuit 542, closed loop extraction circuit 543, cross extraction circuit 544, T-shaped extraction circuit 545, end point extraction circuit 5
46, thinning processing circuit 547, error check circuit 54
8, a feature data rearranging circuit 549.

【0057】外接長方形比率抽出回路541は、切り出
されたXYドットの文字画像の縦横の比率(X/Y)を
計算し、これを比率情報として8bitのデータで表し
て出力する。要素数抽出回路532は、文字を構成する
要素の数(例えば、「く」は1個、「い」は2個、
「ば」は4個)を抽出し、その要素数を個数情報として
3bit(最大8個)で表して出力する。このような要
素数は、公知の画像処理技術により得ることができる。
例えば、文字画像の左上画素を初期点として副走査方向
にラスタ走査を実行し、最初に黒画素を発見すると、こ
れを追跡開始点として所定方向に文字の線部の外側の輪
郭の画素を追跡していき(この処理を以下「輪郭線追跡
処理」という。)、再び追跡開始点の黒画素に帰着した
ときに、当該輪郭線で囲まれた領域が1個の要素である
と判断されるので、このような追跡走査を繰り返すこと
により、当該文字の全要素数を抽出することができる。
The circumscribed rectangle ratio extraction circuit 541 calculates the vertical / horizontal ratio (X / Y) of the cut-out XY dot character image, and expresses this as 8-bit data as ratio information and outputs it. The number-of-elements extraction circuit 532 determines the number of elements constituting a character (for example, "ku" is one, "i" is two,
"B" is extracted as 4), and the number of elements is represented as 3-bit (up to 8) as number information and output. Such a number of elements can be obtained by a known image processing technique.
For example, a raster scan is performed in the sub-scanning direction with the upper left pixel of the character image as an initial point, and when a black pixel is first found, the pixel of the outline outside the line portion of the character is traced in a predetermined direction using this as a tracking start point. (This processing is hereinafter referred to as “contour line tracking processing”), and when it returns to the black pixel at the tracking start point again, it is determined that the area surrounded by the contour line is one element. Therefore, by repeating such tracking scan, the total number of elements of the character can be extracted.

【0058】上記以外の閉ループ抽出回路543、十字
抽出回路544、T字抽出回路545および端点抽出回
路546には、CPU501から辞書サイズ切り替え信
号が与えられており、各抽出回路543〜546は、当
該切り替え信号の内容に応じて特徴量抽出のための解像
度を切り替えるようになっている。具体的には、文字切
出回路530で切り出された文字画像を3×3の9ブロ
ックもしくは5×5の25ブロックに分割し、各ブロッ
ク内で特徴形状を抽出する。この際、例えば、閉ループ
抽出回路543において一つのブロック内を走査して閉
ループを一つでも発見すれば、もうそのブロック内にお
ける閉ループの走査は行わず、次のブロック内の閉ルー
プの走査に移る。したがって、3×3の方が、5×5の
場合よりも抽出速度が早くなるが、1つのブロック内に
2つの閉ループがあっても1個としかカウントしないこ
とになるので、5×5の場合よりも解像度が劣ることに
なる。後述する辞書データ発生回路560に格納された
辞書データもこの解像度に合わせて作成されているの
で、以下、このような解像度の区別をその分割ブロック
数に基づき、3×3辞書サイズ、5×5辞書サイズと呼
ぶことにする。
A dictionary size switching signal from the CPU 501 is supplied to the closed loop extraction circuit 543, the cross extraction circuit 544, the T-shaped extraction circuit 545, and the end point extraction circuit 546 other than those described above, and the extraction circuits 543 to 546 The resolution for extracting the feature amount is switched according to the content of the switching signal. Specifically, the character image cut out by the character cutout circuit 530 is divided into 3 × 3 9 blocks or 5 × 5 25 blocks, and a characteristic shape is extracted from each block. At this time, for example, if the closed loop extraction circuit 543 scans one block and finds at least one closed loop, it does not scan the closed loop in the other block, but proceeds to scan the closed loop in the next block. Therefore, the extraction speed of 3 × 3 is faster than that of 5 × 5, but even if there are two closed loops in one block, only one is counted. The resolution will be lower than in the case. Since the dictionary data stored in the dictionary data generation circuit 560, which will be described later, is also created in accordance with this resolution, the following distinction of the resolution is made based on the number of divided blocks in a 3 × 3 dictionary size, 5 × 5 I will call it the dictionary size.

【0059】このようなCPU501からの辞書サイズ
の指定に基づき、閉ループ抽出回路543では、文字画
像内に存在する閉ループを分割されたブロックごとに検
出し、その個数(例えば、「く」は0個、「は」は1
個、「ぱ」は2個)および、当該閉ループの位置を求
め、閉ループについての個数情報および位置情報を出力
する。
Based on the specification of the dictionary size from the CPU 501, the closed loop extraction circuit 543 detects the closed loops present in the character image for each divided block, and detects the number of the closed loops (for example, “く” is 0). , "Ha" is 1
And the position of the closed loop is obtained, and the number information and the position information of the closed loop are output.

【0060】この閉ループの抽出も公知の画像処理技術
により行うことができ、例えば上述の輪郭線追跡処理に
より、まず文字の要素を抽出し、次に当該要素内部を走
査して白画素の領域の数を上記要素数の抽出の場合と同
様にして抽出することによって達成できる。そして、抽
出された当該閉ループの個数を3bit(最大8個)で
表して個数情報として出力する。
The extraction of the closed loop can also be performed by a known image processing technique. For example, by extracting the character element by the above-described contour line tracing processing, the inside of the element is scanned, and the white pixel area is extracted. This can be achieved by extracting the number in the same manner as in the case of extracting the number of elements. Then, the number of the extracted closed loops is represented by 3 bits (up to 8) and output as number information.

【0061】その一方で、当該閉ループの文字画像にお
ける相対的位置から位置情報が生成される。この位置情
報は、分割されたブロックごとに閉ループの有無を判断
して生成される。具体的に図7を参照して、切り出され
た文字が「ぱ」、「ぬ」であった場合における閉ループ
の位置情報の生成について説明する。
On the other hand, position information is generated from the relative position of the closed loop in the character image. This position information is generated by determining the presence or absence of a closed loop for each divided block. With reference to FIG. 7, generation of closed-loop position information when the extracted characters are “Δ” and “nu” will be specifically described.

【0062】図7(a)は、「ぱ」の文字画像を3×3
の9ブロックに分割した図である。11〜33までの各
ブロックに対応するbitが用意され、位置情報は当該
閉ループを有するブロックに対応するbitを「1」
に、それ以外のbitを「0」にそれぞれセットするこ
とにより生成される。「ぱ」の場合、ブロック13と3
2に閉ループL1、L2が存するので、当該ブロックに
対応するbitが「1」にセットされることになる。な
お、ブロック22に閉ループが位置しても、この位置情
報は文字の回転に依存しないので、天地認識のデータと
しては不要であり、本実施の形態では、このブロック2
2を除くブロック数8に対応した8bitで閉ループの
位置情報を示すようにしている(同様に、5×5辞書サ
イズの場合は24bitとなる)。
FIG. 7A shows that a character image of “ぱ” is 3 × 3
It is the figure divided | segmented into nine blocks. Bits corresponding to blocks 11 to 33 are prepared, and the position information is set to “1” for the bit corresponding to the block having the closed loop.
, And other bits are set to “0”. If "ぱ", blocks 13 and 3
2, there are closed loops L1 and L2, so that the bit corresponding to the block is set to "1". Even if a closed loop is located in the block 22, the position information does not depend on the rotation of the character, so that it is unnecessary as top-down recognition data.
The position information of the closed loop is indicated by 8 bits corresponding to the number of blocks 8 excluding 2 (similarly, in the case of a 5 × 5 dictionary size, 24 bits are used).

【0063】一方、「ね」の場合、図7(b)に示すよ
うに1個の閉ループL3をブロック32と33にまたが
って有している。この場合の位置情報は、閉ループL3
内の白画素をより多く含むブロック、すなわち、図7
(b)の例では、ブロック32に閉ループL3が位置す
ると判断して、そのブロックに対応するbitを「1」
セットして位置情報を生成することになる。
On the other hand, in the case of “ne”, as shown in FIG. 7B, one closed loop L 3 is provided across the blocks 32 and 33. The position information in this case is a closed loop L3
The block containing more white pixels in FIG.
In the example of (b), it is determined that the closed loop L3 is located in the block 32, and the bit corresponding to the block is set to “1”.
Set to generate location information.

【0064】上記外接長方形比率抽出回路541、要素
数抽出回路542および閉ループ抽出回路543では、
文字切り出し回路530から出力された画像データを加
工しないまま各抽出処理を行ったが、以下に述べる十字
抽出回路544、T字抽出回路545、端点抽出回路5
46においては、それらの抽出処理を容易かつ確実に行
うため、予め細線化処理回路547において文字の線部
(線図形)の幅を狭くする細線化処理を行う。
In the circumscribed rectangle ratio extraction circuit 541, the element number extraction circuit 542, and the closed loop extraction circuit 543,
Each extraction process was performed without processing the image data output from the character extraction circuit 530. However, the cross extraction circuit 544, the T-character extraction circuit 545, and the end point extraction circuit 5 described below.
In step 46, in order to easily and surely perform the extraction processing, the thinning processing circuit 547 performs a thinning processing for narrowing the width of the line portion (line figure) of the character in advance.

【0065】この細線化処理においては、主に次の要件
が充足される必要がある。 (i) 線幅が1(1画素単位)となる。 (ii) 線の位置はもとの線図形のほぼ中心にくる。 (iii)図形の連結性が保存される。 (iv) 線図形の端の部分が必要以上に縮退しない。
In the thinning process, it is necessary to mainly satisfy the following requirements. (I) The line width is 1 (one pixel unit). (Ii) The position of the line is approximately at the center of the original line figure. (Iii) The connectivity of the figures is preserved. (Iv) The end of the line figure does not shrink more than necessary.

【0066】このような細線化処理を行うため、画像処
理の分野において従来から様々な細線化処理の方法が提
案されているので、ここでの具体的な説明は省略する。
細線化処理回路547で細線化された文字画像のデータ
は、十字抽出回路544、T字抽出回路545、端点抽
出回路546にそれぞれ出力される。十字抽出回路54
4では、細線化された画像データに基づいて、分割され
たブロックごとに十字交差点を検出して、その個数情報
および位置情報を生成する。
In order to perform such thinning processing, various thinning processing methods have been conventionally proposed in the field of image processing, and a detailed description thereof will be omitted.
The data of the character image thinned by the thinning processing circuit 547 is output to the cross extraction circuit 544, the T-shaped extraction circuit 545, and the end point extraction circuit 546, respectively. Cross extraction circuit 54
In step 4, a cross intersection is detected for each of the divided blocks based on the thinned image data, and the number information and the position information are generated.

【0067】十字交差点の抽出は、例えば、特定の黒画
素(以下、「注目画素」という。)を中心にしてその周
囲の隣接画素(8近傍)を走査し、当該注目画素に隣接
する黒画素数Mを検出する。当該画像データは細線化処
理回路547で細線化されているため、注目点の8近傍
同士で黒画素が隣接することはないので、M=4の場合
には、当該注目画素は十字交差点であると判断できる。
The cross intersection is extracted by, for example, scanning a neighboring black pixel (near 8) around a specific black pixel (hereinafter referred to as a “pixel of interest”) and scanning a black pixel adjacent to the pixel of interest. Detect number M. Since the image data is thinned by the thinning processing circuit 547, no black pixels are adjacent to each other in the vicinity of eight points of interest, so when M = 4, the pixel of interest is a cross intersection. Can be determined.

【0068】この走査をブロックごとに実行していけ
ば、当該文字画像における十字交差点の個数が判明す
る。例えば、「く」は0個、「さ」は1個、「き」は2
個である。十字交差点の位置は、文字の方向に合わせて
変化するので、その位置は天地認識のための有用な情報
となる。この位置情報は上述の閉ループの位置情報の場
合と同様、十字交差点が存在するブロックに対応するb
itを「1」にセットすることにより、3×3辞書サイ
ズの場合は9bit、5×5辞書サイズの場合は25b
itで表現される。
If this scanning is performed for each block, the number of cross intersections in the character image is determined. For example, "ku" has 0, "sa" has 1, and "ki" has 2
Individual. Since the position of the cross intersection changes according to the direction of the character, the position is useful information for top and bottom recognition. This position information is similar to the case of the above-described closed loop position information, and corresponds to the block where the cross intersection exists.
By setting it to “1”, 9 bits for 3 × 3 dictionary size and 25b for 5 × 5 dictionary size
It is represented by it.

【0069】T字抽出回路545は、細線化された画像
データについて、T字交差点を分割されたブロックごと
に検出して、その個数、位置および隣接方向の情報を生
成する。このT字交差点は、上述の十字交差点抽出にお
いて注目画素の8近傍の黒画素数M=3である場合に検
出され、この走査をブロックごとに実行することによ
り、当該文字画像におけるT字交差点の個数が判明す
る。例えば、「く」は0個、「と」は1個、「エ」は2
個となる。
The T-shaped extraction circuit 545 detects a T-shaped intersection for each divided block in the thinned image data, and generates information on the number, position, and adjacent direction. This T-shaped intersection is detected when the number of black pixels near the target pixel is M = 3 in the above-mentioned crossed intersection extraction, and by performing this scan for each block, the T-shaped intersection of the character image is detected. The number is determined. For example, "ku" has 0, "to" has 1, and "e" has 2
Individual.

【0070】これに合わせて、当該T字交差点の位置情
報を生成する。この位置情報は上述の十字交差点の場合
と同様にして生成される。T字交差点の隣接方向も、文
字の方向により異なるため天地認識のため有用な情報で
ある。このT字交差点の隣接方向は、(上/下/左/
右)の計4種類の隣接方向があり、例えば、上記「と」
におけるT字交差点の隣接方向は「上」となり、これら
を当該T字交差点の存するブロックについて2bitの
信号として表現し、分割されたブロック数×2のbit
数で表現する。
In accordance with this, the position information of the T-shaped intersection is generated. This position information is generated in the same manner as in the case of the cross intersection described above. Since the direction adjacent to the T-shaped intersection also differs depending on the direction of the character, it is useful information for top and bottom recognition. The adjacent direction of this T-shaped intersection is (up / down / left /
There are a total of four types of adjacent directions (right).
The direction adjacent to the T-shaped intersection in is “up”, and these are expressed as a 2-bit signal for the block where the T-shaped intersection exists, and the number of divided blocks × 2 bits
Expressed as a number.

【0071】端点抽出回路546は、細線化された画像
データについて、その文字端点を分割されたブロックご
とに検出して、その個数、位置および隣接方向の情報を
生成する。端点は、上述の十字交差点検出において注目
画素の8近傍の黒画素数M=1である場合に検出され、
この検出動作をブロックごとに実行することにより、当
該文字画像における端点の個数が判明する。例えば、
「の」は1個、「く」は2個、「エ」は4個である。
The end point extraction circuit 546 detects the character end points of the thinned image data for each divided block, and generates information on the number, position, and adjacent direction. An end point is detected when the number of black pixels M = 1 in the vicinity of 8 of the pixel of interest in the above-described cross intersection detection,
By performing this detection operation for each block, the number of end points in the character image is determined. For example,
There are one "no", two "ku", and four "e".

【0072】これに合わせて当該端点の位置情報を生成
する。この位置情報は上述の閉ループや十字交差点の場
合と同じように、端点が存在するブロックに対応するb
itを「1」にセットすることにより表現される。端点
の隣接方向も、文字の方向により異なるため天地認識の
ため有用な情報となる。この端点のT字交差点の隣接方
向は、(上/下/左/右/左上/右上/左下/右下)の
計8種類あり、この8種類の隣接方向を3bitの信号
として表現するので、それぞれの端点に対する隣接方向
を分割されたブロック数×3bitで表現することにな
る。
In accordance with this, position information of the end point is generated. This position information is, as in the case of the above-described closed loop and cross intersection, b corresponding to the block in which the end point exists.
It is represented by setting it to “1”. The direction adjacent to the end point also differs depending on the direction of the character, and thus is useful information for top-bottom recognition. There are eight types of adjacent directions of the T-shaped intersection at this end point (up / down / left / right / upper left / upper right / lower left / lower right). Since these 8 types of adjacent directions are expressed as 3-bit signals, The direction adjacent to each end point is expressed by the number of divided blocks × 3 bits.

【0073】CPU501は、上記抽出回路543〜5
46に辞書サイズ切り替え信号を送信して、辞書サイズ
を切り替えて天地認識に必要な解像度で各特徴量を抽出
するように指示するが、この切り替え動作の詳細につい
ては後述する。以上のようにして、各抽出回路541〜
546で生成された12種類の情報は、文字の方向に依
存しないデータ、すなわち、各抽出回路542〜546
からの個数情報と、文字の方向に依存するデータ、すな
わち、外接長方形比率抽出回路541からの比率情報お
よびその他の抽出回路542〜546からの位置情報や
隣接方向情報とに2分することができ、以下、前者の情
報を「特徴量個数情報」と総称し、後者の情報を「特徴
量データ」と総称することにする。
The CPU 501 includes the extraction circuits 543-5
A dictionary size switching signal is transmitted to 46 to instruct to switch the dictionary size and extract each feature amount at a resolution required for top and bottom recognition. The details of this switching operation will be described later. As described above, each of the extraction circuits 541 to 541
The 12 types of information generated in 546 are data independent of the direction of the character, that is, each of the extraction circuits 542 to 546.
And the data depending on the direction of the character, that is, the ratio information from the circumscribed rectangle ratio extraction circuit 541 and the position information and the adjacent direction information from the other extraction circuits 542 to 546 can be divided into two. Hereinafter, the former information will be collectively referred to as “feature amount number information”, and the latter information will be collectively referred to as “feature amount data”.

【0074】上記特徴量個数情報と特徴量データは、次
段のエラーチェック回路548に入力され、そのうち特
徴量個数情報と、特徴量データのうちの比率情報の各値
が、それぞれについて予め定められた閾値以下であるか
否か判定され、ひとつでも所定の閾値を超える場合に
は、抽出された特徴量が、天地認識を行う上で適当では
ないと判断される。
The above-mentioned feature quantity number information and feature quantity data are input to an error check circuit 548 at the next stage, and the values of the feature quantity number information and the ratio information in the feature quantity data are determined in advance. It is determined whether the threshold value is equal to or less than the threshold value. If at least one of the threshold values exceeds a predetermined threshold value, it is determined that the extracted feature amount is not appropriate for performing the top-bottom recognition.

【0075】例えば、切り出された文字が「購」という
文字であった場合、閉ループ抽出回路543から出力さ
れた閉ループの個数は、5×5辞書サイズでは、7内至
9個となると考えられるが、後述する辞書データにはそ
のような複雑な文字のデータが格納されていないので、
当該切り出し文字は天地認識に適当な文字ではない。そ
こで、辞書データから予め閉ループの個数情報の上限値
を求めて、これをエラーチェック回路548内部のコン
パレータ等に閾値として設定しておき、入力された閉ル
ープの個数情報が当該閾値を超える場合に特徴量抽出エ
ラー信号を発生してCPU501に送信する。
For example, if the extracted character is the character "purchase", the number of closed loops output from the closed loop extraction circuit 543 is considered to be 9 to 7 in a 5 × 5 dictionary size. Since the dictionary data described later does not store such complicated character data,
The cut-out character is not a character suitable for top and bottom recognition. Therefore, an upper limit value of the number information of closed loops is obtained in advance from the dictionary data, and this is set as a threshold value in a comparator or the like in the error check circuit 548. This is a feature when the input number information of closed loops exceeds the threshold value. An amount extraction error signal is generated and transmitted to the CPU 501.

【0076】CPU501は、このエラー信号を受信す
ると、次の文字画像の切り出しを行うためにRETRY
信号を文字切り出し回路530に送信して新たな文字切
り出しを実行させると共に、現在の抽出済みの特徴量の
情報を破棄する。なお、上記各抽出回路541〜546
における特徴量抽出や、エラーチェック回路548にお
ける特徴量抽出チェックは全てハード回路により行わ
れ、CPU501は当該エラーチェック回路548から
の特徴量抽出エラー信号をチェックするだけなので、高
速な処理が可能である。
When the CPU 501 receives the error signal, the CPU 501 executes RETRY to cut out the next character image.
A signal is transmitted to the character extraction circuit 530 to execute a new character extraction, and the information of the current extracted feature amount is discarded. The extraction circuits 541 to 546 described above are used.
, And the feature extraction check in the error check circuit 548 are all performed by a hardware circuit, and the CPU 501 only checks the feature extraction error signal from the error check circuit 548, so that high-speed processing is possible. .

【0077】また、エラーチェック回路548に設定さ
れる上記閾値は、3×3辞書サイズの方が5×5辞書サ
イズの場合よりも少なく設定される。これは、3×3辞
書サイズの場合には1つのブロックサイズが大きく、そ
の中に2個以上の同種の特徴量が含まれても上述のよう
に特徴量の個数をブロックごとに最大1個しかカウント
しないようにしているので、それだけ5×5辞書サイズ
の場合より特徴量のカウント数が少なくなることによる
ものである。
The threshold set in the error check circuit 548 is set smaller in the 3 × 3 dictionary size than in the 5 × 5 dictionary size. This is because, in the case of a 3 × 3 dictionary size, one block size is large, and even if two or more similar types of feature amounts are included in the dictionary size, the number of feature amounts is one maximum per block as described above. This is due to the fact that the count of the feature amount is smaller than in the case of the 5 × 5 dictionary size.

【0078】各抽出回路541〜546で抽出された特
徴量個数情報および比率情報のいずれもがエラーチェッ
ク回路548でのチェックをパスすると、特徴量個数情
報および特徴量データが次段の特徴データ並び変え回路
549に送られる。特徴データ並び変え回路549は、
これらの特徴量の情報を、それぞれ辞書データ発生回路
560、比較回路580で処理しやすい順序に並び変え
て出力する。
When both the feature quantity information and the ratio information extracted by the extraction circuits 541 to 546 pass the check by the error check circuit 548, the feature quantity information and the feature data are arranged in the next stage of the feature data list. It is sent to the change circuit 549. The characteristic data rearranging circuit 549
The information of these feature amounts is rearranged and output in an order that is easily processed by the dictionary data generation circuit 560 and the comparison circuit 580, respectively.

【0079】特に特徴量データは、後述する辞書データ
発生回路560から出力される辞書データと同じ順に並
び変えられ、CPU501からの辞書データ切り替え信
号を受けて、8bit単位で共通バス上に出力されるよ
うになっており、このような構成にすることにより、少
ないビット幅のバスで複数の特徴量データを効果的に扱
うことができ、回路の簡略化を可能にすると共に、比較
回路580における辞書データとの比較処理を容易にす
ることができる。
In particular, the feature amount data is rearranged in the same order as dictionary data output from a dictionary data generation circuit 560 described later, and receives a dictionary data switching signal from the CPU 501 and is output on a common bus in 8-bit units. With such a configuration, a plurality of feature amount data can be effectively handled by a bus having a small bit width, the circuit can be simplified, and the dictionary in the comparison circuit 580 can be obtained. The comparison processing with the data can be facilitated.

【0080】[辞書データ発生処理]次に辞書データ発
生回路560について説明する。辞書データ発生回路5
60は、特徴量抽出回路540から特徴量個数情報を受
信すると、内部に格納された複数の文字の中から当該特
徴量個数情報に適合するものを認識候補文字としてリス
トアップし、この認識候補文字について予め格納されて
いる特徴量データを辞書データとして所定の順序で比較
回路580に出力する。
[Dictionary Data Generation Processing] Next, the dictionary data generation circuit 560 will be described. Dictionary data generation circuit 5
When receiving the feature quantity number information from the feature quantity extraction circuit 540, the list of characters matching the feature quantity number information among a plurality of characters stored therein is listed as recognition candidate characters. Is output to the comparison circuit 580 in a predetermined order as feature data stored in advance as dictionary data.

【0081】この辞書データ発生回路560は、図8の
ブロック図に示すように、辞書アドレス発生回路56
1、RETRYカウンタ562、辞書データROM56
3、切り替え信号カウンタ564とからなり、辞書アド
レス発生回路561と辞書データROM563には辞書
サイズ切り替え信号が、切り替え信号カウンタ564に
は特徴データ切り替え信号が、それぞれCPU501に
より与えられる。
As shown in the block diagram of FIG. 8, this dictionary data generation circuit 560
1, RETRY counter 562, dictionary data ROM 56
3, a switching signal counter 564, a dictionary size switching signal is supplied to the dictionary address generating circuit 561 and the dictionary data ROM 563, and a feature data switching signal is supplied to the switching signal counter 564 by the CPU 501.

【0082】辞書データROM563には、次の(表
1)に示す天地認識用の256個の文字もしくは記号に
ついて(以下、単に「参照文字」という。)、3×3,
5×5の2種類の辞書サイズごとに上述の特徴量データ
に相当するデータ(辞書データ)が予め求められて格納
されている。
In the dictionary data ROM 563, 256 characters or symbols for the top and bottom recognition shown in the following (Table 1) (hereinafter, simply referred to as “reference characters”), 3 × 3.
Data (dictionary data) corresponding to the above-described feature amount data is previously obtained and stored for each of two types of 5 × 5 dictionary sizes.

【0083】[0083]

【表1】 [Table 1]

【0084】一方、辞書アドレス発生回路561は、特
徴量個数情報(計15bit)とRETRYカウンタ5
62からの3bitおよび辞書サイズ切り替え信号(1
bit)の計19bitをアドレスとして、上記辞書デ
ータROM563内の対応する辞書データのアドレスを
8bitのデータとして出力する256KByteのR
OMテーブル(以下、「アドレス発生ROMテーブル」
という。)として構成されている。
On the other hand, the dictionary address generation circuit 561 has the feature quantity number information (total 15 bits) and the RETRY counter 5
3 and the dictionary size switching signal (1
R) of 256 Kbytes that outputs the address of the corresponding dictionary data in the dictionary data ROM 563 as 8-bit data, with a total of 19 bits as an address.
OM table (hereinafter "address generation ROM table")
That. ).

【0085】具体的にこのアドレス発生ROMテーブル
の作成手順について説明すると次のようになる。すなわ
ち、まず、256個の各参照文字について、予めその個
数情報を上述の手順で3×3、5×5の辞書サイズごと
に求めておき、その個数の組合わせごとに256文字を
分類する。図9は、上記(表1)の参照文字のうち、ひ
らがなの46文字について、その4つの特徴形状(閉ル
ープ、十字交差点、T字交差点、文字端点)の個数およ
び要素数を5×5辞書サイズで求めてリストアップした
ものである。
The procedure for creating the address generation ROM table will be described specifically below. That is, first, for each of the 256 reference characters, the number information is obtained in advance for each dictionary size of 3 × 3, 5 × 5 by the above-described procedure, and the 256 characters are classified for each combination of the number. FIG. 9 shows the number of the four characteristic shapes (closed loop, cross intersection, T-shaped intersection, character end point) and the number of elements of 46 characters of the hiragana character among the reference characters of the above (Table 1) in a 5 × 5 dictionary size. Listed in the search.

【0086】この図表から、例えば、(閉ループ数、十
字交差数、T字交差数、文字端数、要素数)=(0、
0、0、4、2)個という個数情報の組合せに該当する
ひらがなは、「い」、「う」、「こ」、「り」の4文字
あることが分かる。したがって、当該個数情報の組合わ
せに対して、ひらがなではこの4文字が後の比較回路5
80で比較の対象となるための認識候補文字としてリス
トアップされ、当該特徴量個数情報に関係付けられてア
ドレス発生ROMテーブルに格納される。これと同様に
して他の参照文字についても個数情報の組合せごとの分
類が実行され、アドレス発生ROMテーブル内に格納さ
れる。
From this table, for example, (the number of closed loops, the number of crosses, the number of T-shaped intersections, the number of characters, the number of elements) = (0,
It can be seen that the hiragana corresponding to the combination of the number information of 0, 0, 4, 2) includes four characters of “i”, “u”, “ko”, and “ri”. Therefore, for the combination of the number information, the four characters in Hiragana will
At 80, the list is listed as recognition candidate characters to be compared, and stored in the address generation ROM table in association with the feature quantity number information. Similarly, other reference characters are classified for each combination of the number information, and stored in the address generation ROM table.

【0087】また、本実施の形態では、上記ROMテー
ブル内に同一の特徴量個数情報について最大8個の認識
候補文字を格納できるできるようになっており、当該R
OMテーブルにより入力された特徴量個数情報に該当す
る認識候補文字の個数Nが判明すると、その個数を辞書
数信号(3bit)としてCPU501に送信するよう
になっている。
In this embodiment, a maximum of eight recognition candidate characters can be stored in the ROM table for the same feature quantity number information.
When the number N of recognition candidate characters corresponding to the input feature amount information is found from the OM table, the number is transmitted to the CPU 501 as a dictionary number signal (3 bits).

【0088】CPU501は、上記辞書数信号により、
所定の特徴量個数情報に該当する認識候補文字の個数N
を知ることができ、辞書RETRY信号をRETRYカ
ウンタ562に送信して、そのカウント値を最高Nまで
更新することにより上記複数の認識候補文字からを1文
字ずつ選択していく。したがって、例えば、上述の認識
候補文字の「こ」は、(閉ループ数、十字交差数、T字
交差数、文字端数、要素数)=(0、0、0、4、2)
を示す特徴量個数情報(15bit)と、3番目を示す
RETRYカウンタ562からのカウント数(3bi
t)により選択されることになる。
The CPU 501 uses the dictionary number signal to
Number N of recognition candidate characters corresponding to predetermined feature quantity number information
Is transmitted, a dictionary RETRY signal is transmitted to the RETRY counter 562, and the count value is updated to the maximum N, thereby selecting one of the plurality of recognition candidate characters one by one. Therefore, for example, “ko” of the recognition candidate character is (closed loop number, cross intersection number, T-shaped intersection number, character fraction, element number) = (0, 0, 0, 4, 2)
And the count number (3bi) from the RETRY counter 562 indicating the third.
t).

【0089】実際には、アドレス発生ROMテーブルに
は、各文字が8bitで示される文字コードで格納され
ており、上述のように認識候補文字として「こ」が選択
されるとその文字コードが辞書アドレスとして辞書デー
タROM563に送られる。辞書データROM563
は、上記辞書アドレス(8bit)と辞書サイズ切り替
え信号(1bit)と切り替え信号カウンタ(5bi
t)をアドレスとし、該当する文字の辞書データを8b
itずつ出力する16KByteのROMテーブル(以
下、「辞書発生ROMテーブルという」)として構成さ
れている。
Actually, each character is stored in the address generation ROM table in a character code represented by 8 bits. When "ko" is selected as a recognition candidate character as described above, the character code is stored in the dictionary. The address is sent to the dictionary data ROM 563 as an address. Dictionary data ROM563
Is a dictionary address (8 bits), a dictionary size switching signal (1 bit), and a switching signal counter (5bi).
t) is the address, and the dictionary data of the corresponding character is 8b
It is configured as a 16-Kbyte ROM table (hereinafter, referred to as a “dictionary generation ROM table”) that outputs each it.

【0090】図10は、当該辞書発生ROMテーブル内
に各文字コードごとに格納されている辞書データの構成
を示す図であり、同じ文字コードについて左側は3×3
辞書サイズ、右側は5×5辞書サイズの辞書データが格
納され、それぞれ各アドレスごとに8bit単位で比率
情報、閉ループ情報および特徴点データ情報が格納され
ている。
FIG. 10 is a diagram showing the structure of dictionary data stored for each character code in the dictionary generation ROM table.
The dictionary size and the right side store dictionary data of 5 × 5 dictionary size, and ratio information, closed loop information and feature point data information are stored in units of 8 bits for each address.

【0091】同図のデータ欄において、「比率情報」
は、文字の外接する長方形の縦横比を8bitで表わし
ている。また、「閉ループ情報」は、上述の閉ループ位
置情報に相当する情報である。この情報は、図7で説明
したのと同様な方法で求められ、例えば、3×3辞書サ
イズにおけるひらがなの閉ループの位置は、図11で○
印を付した位置となり、当該ブロックに対応するbit
が「1」にセットされる。これによれば、3×3辞書サ
イズの場合には9bit、5×5辞書サイズの場合には
25bitが必要となるが、上述のように中央の閉ルー
プの有無は、文字の方向には関与しないので、天地認識
には不要のデータであり、それぞれ1bitを削減し、
3×3辞書サイズの場合には、8bit(1Byt
e)、5×5辞書サイズの場合には24bit(3By
te)のデータで表現され、前者は1個のアドレスに、
後者は3個のアドレス(閉ループ情報1、2、3)に分
けて格納される。
In the data column of FIG.
Represents the aspect ratio of a rectangle circumscribing the character in 8 bits. “Closed loop information” is information corresponding to the above-described closed loop position information. This information is obtained by a method similar to that described with reference to FIG. 7. For example, the position of the closed loop of Hiragana in a 3 × 3 dictionary size is represented by a circle in FIG.
It becomes the position marked with a bit, and the bit corresponding to the block
Is set to “1”. According to this, 9 bits are required for the 3 × 3 dictionary size and 25 bits are required for the 5 × 5 dictionary size, but the presence or absence of the central closed loop does not affect the direction of the character as described above. Therefore, it is unnecessary data for top and bottom recognition, reducing 1 bit each,
In the case of a 3 × 3 dictionary size, 8 bits (1 Byte
e) In the case of a 5 × 5 dictionary size, 24 bits (3 By
te) data, the former in one address,
The latter is stored separately in three addresses (closed loop information 1, 2, 3).

【0092】「特徴点データ」は、十字交差点、T字交
差点、端点の3種類の特徴点についての位置情報もしく
は隣接方向情報を総称するものであり、分割されたブロ
ックにおける各特徴点の有無やその隣接方向を該当する
ブロックごとに8bitずつのデータとして表現され
る。図12は、3×3辞書サイズにおける当該特徴点デ
ータの格納状態をビットプレーンで示す図である。
"Feature point data" is a general term for position information or adjacent direction information for three types of feature points, such as a cross intersection, a T-shaped intersection, and an end point. The adjacent direction is expressed as 8-bit data for each corresponding block. FIG. 12 is a diagram illustrating a storage state of the feature point data in a 3 × 3 dictionary size in a bit plane.

【0093】同図に示すように各ブロック(MAT3_
11〜33)における各特徴点の有無または隣接方向の
情報を示すビットプレーンが手前から奥に8種類用意さ
れており、これらのビットプレーンのデータを各ブロッ
ク毎にまとめたものをそれぞれ8bit(1Byte)
の特徴点データMAT3_11〜33(図10の左側)
として取り扱っている。従って、3×3辞書サイズの場
合には9個のブロックに分割されているため、この特徴
点データは、1文字について9Byteのデータとして
表現される。
As shown in the figure, each block (MAT3_
Eight types of bit planes indicating the presence or absence of each feature point or information on adjacent directions in 11 to 33) are prepared from the front to the back, and the data of these bit planes for each block are collected in 8 bits (1 byte). )
Feature point data MAT3_1-11-33 (left side in FIG. 10)
It is treated as. Therefore, in the case of a 3 × 3 dictionary size, the data is divided into nine blocks, and this feature point data is represented as 9 bytes of data for one character.

【0094】このような特徴点データの作成も基本的に
は、上記特徴量データの抽出の際に説明したのと同様な
方法でなされ、まず、(表1)の各参照文字を図13の
一例に示すように3×3の9ブロックに分割する。そし
て、十字位置情報は、ビットプレーンのMAT3_11
〜33のうち、文字の十字交差点が存するブロックのb
itを「1」とし、それ以外のブロックのbitを
「0」とする。同様にT字位置情報や端点位置情報も当
該特徴量の位置するブロックのbitを「1」とし、そ
れ以外のブロックのbitを「0」とする。
The creation of such feature point data is basically performed in the same manner as that described in the case of extracting the feature amount data. First, each reference character in (Table 1) is converted to the reference character in FIG. As shown in an example, it is divided into 3 × 3 9 blocks. The cross position information is the MAT3_11 of the bit plane.
B of the block where the cross intersection of the character exists
It is set to “1”, and the bits of the other blocks are set to “0”. Similarly, in the T-shaped position information and the end point position information, the bit of the block where the feature amount is located is set to “1”, and the bits of the other blocks are set to “0”.

【0095】また、T字隣接方向情報は、T字交差点の
存するブロックにおいてT字の隣接方向を2bitデー
タで示すようになっている。すなわち、隣接方向が、
(上/左/右/下)に応じて「00」、「01」、「1
0」、「11」で示されており、このため2枚のビット
プレーン(T字隣接方向情報bit1、2)が用意され
ている。
The T-character adjacent direction information is such that the T-character adjacent direction is indicated by 2-bit data in the block where the T-character intersection exists. That is, the adjacent direction is
“00”, “01”, “1” according to (up / left / right / down)
0 "and" 11 ", and therefore, two bit planes (T-shaped adjacent direction information bits 1 and 2) are prepared.

【0096】端点隣接方向情報は、端点の存するブロッ
クにおいてその隣接方向を3bitデータで示す。すな
わち、隣接方向が、(上/下/左/右/左上/右上/左
下/右下)に応じて「000」、「001」、「01
0」、「011」、「100」、「101」、「11
0」、「111」で示しており、このため3つのビット
プレーン(端点隣接方向情報bit1、2、3)が用意
されている。
The end point adjacent direction information indicates the adjacent direction in the block where the end point exists by 3-bit data. That is, the adjacent directions are “000”, “001”, “01” according to (up / down / left / right / upper left / upper right / lower left / lower right).
0 "," 011 "," 100 "," 101 "," 11 "
0 "and" 111 ". Therefore, three bit planes (end point adjacent direction information bits 1, 2, and 3) are prepared.

【0097】図14は、辞書サイズ5×5の場合の特徴
点データのビットプレーンを示す図であり、図15の一
例に示すように(表1)の各参照文字を25のブロック
に分割し、各ブロックについてbitを割り当て、上述
の3×3辞書サイズの場合と同じ要領で特徴点データを
作成する。各ブロックにおける特徴点データは8bit
(1Byte)で示されるので、上記特徴点データは1
文字につき、1×25=25Byteのデータとして表
現されることになる。
FIG. 14 is a diagram showing bit planes of feature point data in the case of a dictionary size of 5.times.5. As shown in an example of FIG. 15, each reference character in (Table 1) is divided into 25 blocks. , Bits are allocated to each block, and feature point data is created in the same manner as in the case of the above 3 × 3 dictionary size. The feature point data in each block is 8 bits
(1 Bytes), the feature point data is 1
Each character is represented as 1 × 25 = 25 Byte data.

【0098】以上のような辞書データが、(表1)に示
す全256個の参照文字について予め作成され、その文
字コードごとに辞書データROM563(図8)の辞書
発生ROMテーブルに格納されており、辞書アドレス発
生回路561から出力された上記辞書アドレス(文字コ
ード)、CPU501からの辞書サイズ切り替え信号お
よび特徴データ切り替え信号の受信状態に応じて必要な
データを図10のアドレス番号××01(3×3辞書サ
イズの場合)もしくは××21(5×5辞書サイズの場
合)からそのアドレス番号順に8bitずつ、比較回路
580(図3)に出力される。
The above dictionary data is created in advance for all 256 reference characters shown in (Table 1), and stored in the dictionary generation ROM table of the dictionary data ROM 563 (FIG. 8) for each character code. The data required according to the dictionary address (character code) output from the dictionary address generation circuit 561 and the reception state of the dictionary size switching signal and the characteristic data switching signal from the CPU 501 are represented by the address number xx01 (3) in FIG. Eight bits are output to the comparison circuit 580 (FIG. 3) in order of their address numbers from the × 3 dictionary size) or × 21 (5 × 5 dictionary size).

【0099】前述したようにCPU501からの特徴デ
ータ切り替え信号は、上記切り替え信号カウンタ564
のほかに特徴量抽出回路540の特徴データ並び変え回
路549(図6)にも与えられており、特徴データ並び
変え回路549は、切り出した文字から抽出された特徴
量データをその辞書サイズに応じて上記図10の格納状
態と同じ順序になるように並び変え、上記特徴データ切
り替え信号を受けるたびに並び変え処理後の特徴量デー
タを8bitずつ比較回路580に出力するようになっ
ており、これにより、特徴量抽出回路540で述べたの
と同様に少ないbit幅のバスを介して効率よくデータ
を送信できると共に、比較回路580での比較処理が容
易となり、そのハード回路も簡易化できるという利点が
ある。
As described above, the feature data switching signal from the CPU 501 is transmitted to the switching signal counter 564.
In addition, the feature data rearranging circuit 549 of the feature amount extracting circuit 540 (FIG. 6) is also provided. The feature data rearranging circuit 549 converts the feature amount data extracted from the extracted characters according to the dictionary size. In this case, the data is rearranged in the same order as the storage state of FIG. 10 described above, and every time the characteristic data switching signal is received, the characteristic amount data after the rearrangement processing is output to the comparison circuit 580 in units of 8 bits. As described above, the data can be efficiently transmitted through a bus having a small bit width as described in the feature amount extraction circuit 540, and the comparison processing in the comparison circuit 580 becomes easy, and the hardware circuit thereof can be simplified. There is.

【0100】[回転角決定処理]比較回路580は、辞
書データ発生回路560から出力された辞書データを9
0゜ずつ回転したものと、特徴量抽出回路540から出
力された特徴量データを比較し、各回転角における特徴
量データと辞書データの一致度に関する情報を生成する
一方、内部の特定文字辞書と比較して、当該切り出され
た文字がコピー禁止を意味する特定の文字と認められる
場合にコピー禁止情報を生成する。
[Rotation Angle Determination Processing] The comparison circuit 580 converts the dictionary data output from the dictionary data generation circuit 560 into 9
The data rotated by 0 ° is compared with the feature data output from the feature extraction circuit 540 to generate information on the degree of coincidence between the feature data and the dictionary data at each rotation angle. In comparison, if the cut-out character is recognized as a specific character meaning copy prohibition, copy prohibition information is generated.

【0101】図16は、上記比較回路580の構成を示
すブロック図である。同図に示すように比較回路580
は、入力部と出力部にそれぞれ配設されたセレクタ58
1、582と、特定文字辞書583と、3×3辞書サイ
ズに対応した回転角評価回路584・特定文字評価回路
585と、5×5辞書サイズに対応した回転角評価回路
586・特定文字評価回路587とを備える。
FIG. 16 is a block diagram showing the structure of the comparison circuit 580. As shown in FIG.
Are selectors 58 provided at the input unit and the output unit, respectively.
1, 582, a specific character dictionary 583, a rotation angle evaluation circuit 584 and a specific character evaluation circuit 585 corresponding to a 3 × 3 dictionary size, and a rotation angle evaluation circuit 586 and a specific character evaluation circuit corresponding to a 5 × 5 dictionary size 587.

【0102】特定文字辞書583には、通常のコピー禁
止文書に含まれる特定の文字、例えば「秘」の文字を丸
印で囲んだいわゆる「マル秘」文字に関する辞書データ
(この辞書データを上記辞書データ発生回路560から
出力された天地認識のための辞書データと区別するた
め、以下「禁止辞書データ」という。)が、辞書サイズ
3×3と5×5ごとに予め格納され、セレクタ581に
与えられる。
The specific character dictionary 583 stores dictionary data related to specific characters included in a normal copy-inhibited document, for example, so-called “secret” characters in which “secret” characters are circled. In order to distinguish the dictionary data from the top / bottom recognition dictionary data output from the data generation circuit 560, hereinafter referred to as “forbidden dictionary data”), the dictionary sizes 3 × 3 and 5 × 5 are stored in advance and given to the selector 581. Can be

【0103】特徴量抽出回路540、辞書データ発生回
路560から同種の特徴量データと辞書データが、それ
ぞれセレクタ581に入力されると、セレクタ581
は、CPU501から送られてくる辞書サイズ切り替え
信号の内容に応じて、当該特徴量データおよび辞書デー
タの送り先を切り替える。以下、CPU501から3×
3辞書サイズの切り替え信号が送信されている場合につ
いて主に説明するが、5×5辞書サイズの場合について
も、ほぼ同様に処理される。
When the same kind of feature amount data and dictionary data are input from the feature amount extraction circuit 540 and the dictionary data generation circuit 560 to the selector 581, respectively,
Switches the destination of the feature amount data and the dictionary data according to the contents of the dictionary size switching signal sent from the CPU 501. Hereinafter, 3 × from the CPU 501
A description will be given mainly of a case where a switching signal of three dictionary sizes is transmitted. However, the same processing is performed for a case of a 5 × 5 dictionary size.

【0104】セレクタ581は、3×3の辞書切り替え
信号を受信すると、特徴量データを、回転角評価回路5
84と特定文字評価回路585に、辞書データを回転角
評価回路584に送る。一方、特定文書辞書583にも
辞書サイズ切り替え信号が与えられており、これにより
3×3辞書サイズの禁止辞書データが選択され、セレク
タ581は、これを特定文字評価回路585に送る。
Upon receiving the 3 × 3 dictionary switching signal, the selector 581 converts the feature data into the rotation angle evaluation circuit 5
The dictionary data is sent to the rotation angle evaluation circuit 584 and the specific character evaluation circuit 585. On the other hand, the dictionary size switching signal is also given to the specific document dictionary 583, whereby the 3 × 3 dictionary size prohibited dictionary data is selected, and the selector 581 sends this to the specific character evaluation circuit 585.

【0105】回転角評価回路584は、図17のブロッ
ク図に示すように、閉ループ評価回路590、縦横比評
価回路591、特徴点評価回路592と、各評価回路5
90〜592からの出力値にそれぞれ所定の係数K1〜
K3を掛けて重み付けを行う重み付け回路593〜59
5と、この重み付け回路からの出力値を回転角ごとに加
算する加算回路596と、この重み付けの結果で最大の
ものを抽出する最大値抽出回路597とからなってお
り、各回転角ごとに特徴量データと辞書データを比較し
てその一致度を求め、このうち最も高いもの抽出して、
これを完全に一致した場合に対するパーセンテージに換
算して一致度情報とすると共にそのときの回転角を回転
角情報としてCPU501に出力する。
As shown in the block diagram of FIG. 17, the rotation angle evaluation circuit 584 includes a closed loop evaluation circuit 590, an aspect ratio evaluation circuit 591, a feature point evaluation circuit 592, and each evaluation circuit 5
The output values from 90 to 592 have predetermined coefficients K1 to K1 respectively.
Weighting circuits 593 to 59 for weighting by multiplying by K3
5, an addition circuit 596 for adding the output value from the weighting circuit for each rotation angle, and a maximum value extraction circuit 597 for extracting the maximum value as a result of the weighting. Compare the quantity data with the dictionary data to determine the degree of coincidence, and extract the highest one,
This is converted into a percentage for the case of complete coincidence to obtain coincidence information, and the rotation angle at that time is output to the CPU 501 as rotation angle information.

【0106】すなわち、特徴量データと辞書データは、
その内容ごとに、閉ループ評価回路590と縦横比評価
回路591と特徴点評価回路592に入力され、各評価
回路590〜592は、入力された辞書データを90°
単位で回転させる回転処理回路を有しており、それぞれ
の回転角で回転させた辞書データと特徴データの内容を
分割されたブロックごとに対照して一致度を算出する。
That is, the feature data and the dictionary data are
The contents are input to the closed loop evaluation circuit 590, the aspect ratio evaluation circuit 591 and the feature point evaluation circuit 592, and each evaluation circuit 590 to 592 converts the input dictionary data to 90 °.
It has a rotation processing circuit for rotating the data in units, and calculates the degree of coincidence by comparing the contents of the dictionary data and the feature data rotated by each rotation angle for each divided block.

【0107】ここで算出される一致度とは、縦横比評価
回路591を除いて、対応するbitのセット状態の一
致を排他的論理和の否定形(一致したときのみ「1」と
する)を用いて判断し、これに基づいて得られる評価ポ
イントを加算することにより得られる。例えば、閉ルー
プ評価回路590では、閉ループの有無を、分割された
ブロック数に相当する9bit(5×5辞書サイズでは
25bit)の内、上述したように中央のブロックの1
bitを除いた他の8bit(同24bit)について
対応するブロックごとに辞書データと比較し、全てのb
itが一致すれば8ポイント(同24ポイント)が付与
される。
The degree of coincidence calculated here is a negative form of exclusive OR of the coincidence of the set state of the corresponding bit (except for the coincidence, except for the aspect ratio evaluation circuit 591, which is set to “1” only when the bit coincides). It is obtained by adding and using the evaluation points obtained based on the judgment. For example, the closed loop evaluation circuit 590 determines whether or not a closed loop exists in one of the central blocks among 9 bits (25 bits in a 5 × 5 dictionary size) corresponding to the number of divided blocks as described above.
The other 8 bits (except 24 bits) excluding the bits are compared with the dictionary data for each corresponding block, and all b bits are compared.
If it matches, 8 points (24 points) are given.

【0108】また、縦横の比率情報は分割ブロック数に
無関係なので、縦横比評価回路591では次のようにし
て比率情報の一致度を評価する。すなわち、辞書データ
の縦横比Aと特徴量データの縦横比Bの比率A/Bを求
め、一致度が高い程、すなわちA/Bが1に近いほど高
ポイントとなるようにする。例えば、|A/B−1|<
0.1のとき、8ポイント、O.1≦|A/B−1|<
0.2のとき7ポイント・・・というようにA/Bの値
と1との誤差の大きさにより0〜8ポイントを付与する
ようになっている。
Since the vertical / horizontal ratio information is irrelevant to the number of divided blocks, the vertical / horizontal ratio evaluating circuit 591 evaluates the degree of coincidence of the ratio information as follows. That is, the ratio A / B of the aspect ratio A of the dictionary data and the aspect ratio B of the feature data is determined, and the higher the degree of coincidence, that is, the closer the A / B is to 1, the higher the score. For example, | A / B-1 | <
At 0.1, 8 points, O.D. 1 ≦ | A / B-1 | <
0 to 8 points are given according to the magnitude of the error between the A / B value and 1, such as 7 points when 0.2.

【0109】この場合、縦横比という性質上、0°と1
80°の評価ポイントと、90°と270°の評価ポイ
ントはそれぞれ一致し、また、この評価ポイントは、上
述のようにブロックの分割数とは関係なしに求められる
ので、当然辞書サイズには依存しない。特徴点評価回路
592では、分割されたブロックにおける3つの特徴点
(十字交差点、T字交差点、端点)に関する特徴点デー
タ(図10参照)ついて比較する。
In this case, 0 ° and 1
The evaluation point of 80 ° matches the evaluation point of 90 ° and 270 °, and since this evaluation point is obtained irrespective of the number of block divisions as described above, it naturally depends on the dictionary size. do not do. The feature point evaluation circuit 592 compares feature point data (see FIG. 10) regarding three feature points (cross intersection, T-shaped intersection, and end point) in the divided blocks.

【0110】各特徴点データは、図12(図14)で示
したように8種類のビットプレーンの情報を各ブロック
ごとに8bitで表現されており、辞書データとの一致
度は次のようにして求められる。すなわち、十字位置情
報ついては、当該ブロックでの有無が辞書データと一致
すればそのまま1ポイント与える。T字交差点、端点の
位置情報については、当該ブロックでのT字交差点もし
くは端点の有無が辞書データと一致しても、「有」の場
合にはさらにその隣接方向の情報を比較して、当該隣接
情報も一致している場合のみ1ポイントを与えるように
する。「無」で一致している場合には、隣接情報を比較
するまでもなくそのまま1ポイントが与えられる。
As shown in FIG. 12 (FIG. 14), each feature point data expresses eight types of bit plane information in 8 bits for each block, and the degree of coincidence with dictionary data is as follows. Required. That is, as for the cross position information, if the presence or absence in the block matches the dictionary data, one point is given as it is. Regarding the position information of the T-shaped intersection and the end point, even if the presence or absence of the T-shaped intersection or the end point in the block matches the dictionary data, if “Yes”, the information of the adjacent direction is further compared, and One point is given only when the adjacent information also matches. In the case of a match with "absence", one point is given as it is without comparing adjacent information.

【0111】従って一つの特徴点について全てのブロッ
クでの情報が一致すれば9ポイント(5×5辞書サイズ
の場合は、25ポイント)が与えられ、3種類の特徴点
の全てについて完全に一致した場合には、最高ポイント
として27ポイント(同75ポイント)が与えられるこ
とになる。以上のような評価処理が、閉ループ評価回路
590、縦横比評価回路591、特徴点評価回路592
において、対応する辞書データを0゜、90゜、180
゜、270゜に回転しながら実行され、各回転角での評
価ポイントが次段の重み付け回路593〜594に出力
され、それぞれの評価ポイントに重み付け係数K1、K
2、K3が乗算されて加算回路596に出力される。
Therefore, if the information in one block matches the information in all blocks, 9 points (25 points in the case of a 5 × 5 dictionary size) are given, and all three types of feature points completely match. In this case, 27 points (75 points) are given as the highest points. The above evaluation processing is performed by the closed loop evaluation circuit 590, the aspect ratio evaluation circuit 591 and the feature point evaluation circuit 592.
, The corresponding dictionary data is 0 ゜, 90 ゜, 180
{270}, the evaluation points at each rotation angle are output to the next-stage weighting circuits 593 to 594, and the weighting coefficients K1 and K are assigned to the respective evaluation points.
2, and K3 are multiplied and output to the addition circuit 596.

【0112】ここで各特徴量データの評価ポイントに重
み付けにより軽重を付するのは、各特徴量データについ
て得られた評価の結果が文字方向の認識(すなわち天地
認識)に与える影響は必ずしも均等ではなく、原稿の内
容によっては評価の比重を変更した方がより正確に天地
認識を行える場合があると考えられるからである。例え
ば、原稿が通常の日本語の文章では、ひらがな占める割
合が原稿全体の6〜7割もあり、天地認識する上で非常
に重要な役割をもっているため、この場合にはひらがな
に多く含まれる閉ループの評価ポイントを高くして、そ
の影響力を高くする方が、他の縦横比などにおける評価
ポイントを参考にするよりも効果的に天地認識を行え
る。そこで、重み付け回路594における係数K2を、
他の重み付け回路593、594における係数K1、K
3より大きくすることにより、天地認識の精度を高める
ことができる。
Here, the reason why the evaluation points of each feature data are weighted by weighting is that the result of the evaluation obtained for each feature data does not necessarily affect the recognition in the character direction (ie, top and bottom recognition) equally. In other words, depending on the contents of the document, it may be considered that changing the specific gravity of the evaluation may allow more accurate top-bottom recognition. For example, if the manuscript is an ordinary Japanese sentence, the hiragana accounts for 60 to 70% of the whole manuscript and plays a very important role in recognizing the top and bottom. In this case, the closed loop containing many hiragana is used. If the evaluation point is increased and its influence is increased, the top and bottom recognition can be performed more effectively than by referring to the evaluation points in other aspect ratios. Therefore, the coefficient K2 in the weighting circuit 594 is
Coefficients K1, K in other weighting circuits 593, 594
By making it larger than 3, the accuracy of the top and bottom recognition can be improved.

【0113】また、原稿にアルファベットの文字が多い
場合には、天地認識のためには、特徴点データの評価ポ
イントが影響力が大きいと考えられるため、係数K3の
値を他の係数K1,K2より大きくするようにすればよ
い。これらの係数K1〜K3の値は、実験的もしくは経
験的に求め得るものであって、これらを予めCPU50
1内部のメモリに格納しておき、必要に応じて、例え
ば、操作パネル70に原稿の種類を入力するスイッチを
設けて、これにより操作者が予め文章の種類を入力する
ことにより、各重み付け回路593〜595設定される
ようにしておけばよい。
When the original contains many letters of the alphabet, it is considered that the evaluation point of the feature point data has a large influence for the top-bottom recognition. Therefore, the value of the coefficient K3 is changed to other coefficients K1 and K2. What is necessary is just to make it larger. The values of these coefficients K1 to K3 can be obtained experimentally or empirically, and they are
1 is stored in an internal memory, and a switch for inputting the type of the document is provided on the operation panel 70 as needed, for example. What is necessary is just to make it set to 593-595.

【0114】このようにして各重み付け回路593〜5
95により評価の比重を変更された評価ポイントは、加
算回路596において回転角ごとに上記評価項目の個数
分だけ加算され、次段の最大値抽出回路597に出力さ
れる。最大値抽出回路597は、各回転角における加算
ポイントのうち最大のものを抽出し、その加算ポイント
を、完全に一致した場合の最大ポイントに対するパーセ
ンテージに換算して「一致度情報」とすると共に、その
ときの角度を「回転角情報」として、CPU501に送
信する。
Thus, each of the weighting circuits 593-5
The evaluation points for which the specific gravity of the evaluation has been changed by 95 are added by the number of the evaluation items for each rotation angle in the addition circuit 596 and output to the maximum value extraction circuit 597 in the next stage. The maximum value extraction circuit 597 extracts the maximum one of the addition points at each rotation angle, converts the addition point into a percentage with respect to the maximum point in the case of complete coincidence to obtain “matching degree information”, The angle at that time is transmitted to the CPU 501 as “rotation angle information”.

【0115】図16に戻り、特定文字評価回路585で
は、各回転角ごとに特徴量データと禁止辞書データが比
較される。この特定文字評価回路585の構成も基本的
には、上記回転角評価回路584における動作と同じで
あって、各回転角において特徴量データと禁止辞書デー
タと比較して評価ポイントを算出し、その最大の評価ポ
イントが内部に設定された所定の閾値を超えた場合に、
「マル秘」などのコピー禁止文字であると判定し、コピ
ー禁止信号をセレクタ582を介してCPU501に送
信する。
Returning to FIG. 16, the specific character evaluation circuit 585 compares the feature data and the prohibited dictionary data for each rotation angle. The configuration of the specific character evaluation circuit 585 is basically the same as the operation of the rotation angle evaluation circuit 584. The evaluation point is calculated by comparing the feature data and the prohibited dictionary data at each rotation angle. If the maximum evaluation point exceeds a predetermined threshold set internally,
It is determined that the character is a copy prohibited character such as “confidential”, and a copy prohibited signal is transmitted to the CPU 501 via the selector 582.

【0116】CPU501は、比較回路580からコピ
ー禁止情報を受けた場合には、コピー禁止信号をメイン
制御部460(図2)に送信し、メイン制御部460
は、さらにメモリ制御部430、プリンタ制御部440
にコピー禁止の指示を送って、当該原稿のコピー動作を
実行させないようにする。通常、コピー禁止文句は原稿
の上部に記載されていることが多いが、原稿下部に記載
されている場合や、原稿の上部であってもたまたま当該
原稿が上下逆さまである場合も考えられるので、上記特
定文字評価処理は、原稿1ページ分の文字の全てについ
て行う必要がある。そのため、特定文字の評価時間が長
くなりコピー動作が遅延する場合も考えられるので、例
えば、装置内部に施錠可能なスイッチボックスを設けて
内部にモード切り替えスイッチを設置するか、あるいは
操作パネルから暗証コードを入力することにより、特定
の者のみが必要に応じて当該特定文字の認識を行わない
モードに切り替え可能なようにしておけば便利である。
When CPU 501 receives copy prohibition information from comparison circuit 580, CPU 501 transmits a copy prohibition signal to main control section 460 (FIG. 2),
Further includes a memory control unit 430 and a printer control unit 440
Of the original, so as not to execute the copy operation of the original. Usually, the copy prohibition phrase is often described at the top of the document, but it may be described at the bottom of the document, or even if the document is upside down by chance even at the top of the document, The above-described specific character evaluation process needs to be performed for all the characters of one page of the document. For this reason, it may be considered that the evaluation time of a specific character becomes longer and the copy operation is delayed. For example, a lockable switch box is provided inside the apparatus, and a mode changeover switch is provided inside the apparatus, or a security code is provided from the operation panel. It is convenient if only a specific person can switch to a mode in which recognition of the specific character is not performed as necessary by inputting.

【0117】一方、CPU501は、比較回路580か
ら出力された上記一致度情報の値と内部に設定されてい
る所定の閾値とを比較して、当該一致度情報の値が閾値
より大きい場合には、切り出された文字と参照文字が一
致した結果であると判断し、その回転角情報の回転角を
示す信号を回転角信号としてメモリ制御部430に送信
する。
On the other hand, the CPU 501 compares the value of the coincidence information output from the comparison circuit 580 with a predetermined threshold value set therein, and when the value of the coincidence information is larger than the threshold value, Then, it is determined that the extracted character and the reference character match, and a signal indicating the rotation angle of the rotation angle information is transmitted to the memory control unit 430 as a rotation angle signal.

【0118】メモリ制御部430は、当該原稿の画像デ
ータを上記CPU501から指定された回転角だけ回転
処理する。そして、原稿1ページ分の特定文字の評価に
必要な時間を経過してもCPU501が比較回路580
から上記コピー禁止情報を受信せず、かつ、特定色抽出
回路510から特定色カウントアップ信号を受信しない
場合には、当該原稿はコピー禁止の対象となる原稿では
ないと判断して、上記回転処理された画像データをプリ
ンタ制御部440に出力し、これにより記録シート上に
正しい方向で原稿画像が再生される。
The memory control section 430 rotates the image data of the document by the rotation angle designated by the CPU 501. Then, even if the time required for evaluating a specific character for one page of the document has elapsed, the CPU 501 causes the comparison circuit 580 to operate.
If the copy prohibition information is not received from the printer and the specific color count-up signal is not received from the specific color extraction circuit 510, it is determined that the original is not a copy-inhibited original, and the rotation processing is performed. The output image data is output to the printer control unit 440, whereby the original image is reproduced on the recording sheet in the correct direction.

【0119】なお、一致度情報の値が内部に設定された
閾値より低い場合には、辞書サイズを切り替えて再評価
し、もしくは次の文字の切り出しを実行して、上記特徴
量抽出回路540、辞書データ発生回路560、比較回
路580での処理を天地認識が完了するまで繰り返す。
詳細は後述する。 (4)制御部400における動作 図18は、制御部400で実行される制御動作のメイン
ルーチンを示すフローチャートである。
If the value of the degree of coincidence information is lower than the threshold value set therein, the dictionary size is switched and re-evaluated, or the next character is cut out, and the feature amount extraction circuit 540, The processing in the dictionary data generation circuit 560 and the comparison circuit 580 is repeated until the top and bottom recognition is completed.
Details will be described later. (4) Operation in Control Unit 400 FIG. 18 is a flowchart showing a main routine of a control operation executed in control unit 400.

【0120】装置に電源が投入されると、まず、各CP
U内部のレジスタなどの初期設定が行われる(ステップ
S1、S2)。この際、辞書サイズ切り替え信号も初期
値として3×3辞書サイズに設定される。その後、待機
中処理として直接コピー動作には関与しない定着部32
7(図1)の温度制御や操作パネルの表示制御などが行
われ(ステップS3)、操作パネル70のスタートキー
が押下されてコピー開始の指示があると(ステップS
4)、原稿自動搬送部100で原稿を順次原稿ガラス板
21に搬送して、スキャナ22で走査し、読み取った画
像データを画像信号処理部420で画像処理して、画像
メモリ431に原稿1ページごとに書き込む画像入力処
理を行う(ステップS5)。
When the apparatus is turned on, first, each CP
Initial settings of registers inside U are performed (steps S1, S2). At this time, the dictionary size switching signal is also set to the 3 × 3 dictionary size as an initial value. After that, the fixing unit 32 not directly involved in the copy operation as a waiting process
7 (FIG. 1), the display control of the operation panel, and the like are performed (step S3). When the start key of the operation panel 70 is pressed and a copy start instruction is issued (step S3).
4) The originals are sequentially conveyed to the original glass plate 21 by the automatic original conveyance unit 100, scanned by the scanner 22, the read image data is subjected to image processing by the image signal processing unit 420, and one page of the original is stored in the image memory 431. An image input process for writing each time is performed (step S5).

【0121】そして、画像メモリ431から所定の原稿
1ページ分の画像データを読み出し、原稿判別部500
において、文字の方向を認識して原稿の天地認識処理を
行い(ステップS6)、この天地認識処理の結果、原稿
の画像データを適切な方向に回転する必要がある場合に
は、回転処理部432で必要な回転角だけ回転処理を行
う(ステップS7)。
Then, image data for one page of a predetermined document is read from the image memory 431, and the document discrimination section 500
In step S6, the orientation of the character is recognized, and the top and bottom of the document is recognized (step S6). As a result of the top and bottom recognition, if the image data of the document needs to be rotated in an appropriate direction, the rotation processing unit 432 Then, a rotation process is performed by a necessary rotation angle (step S7).

【0122】次に、当該原稿がコピー禁止の対象である
か否かを判断する(ステップS8)。すなわち、上述の
ように原稿がコピー禁止の対象となっている、紙幣やコ
ピー禁止文書であると原稿判別部500で判断されて、
そのコピー禁止信号をメイン制御部460が受信する
と、プリンタ制御部440に対し画像形成処理を行わな
いように指示を送り、そうでない場合には、画像形成処
理を実行させ(ステップS9)、その後ステップ3の待
機中処理にリターンする。
Next, it is determined whether or not the original is copy-prohibited (step S8). That is, as described above, the document discrimination unit 500 determines that the document is a banknote or a copy-prohibited document that is subject to copy prohibition,
When the main control unit 460 receives the copy prohibition signal, the main control unit 460 sends an instruction not to perform the image forming process to the printer control unit 440. If not, the image forming process is executed (step S9). The process returns to the waiting process 3.

【0123】図19、図20は、上記ステップS6の天
地認識処理のサブルーチンを示すフローチャートであ
る。まず、図19のステップS601において、CPU
501は、RETRY信号発して文字切り出し回路53
0に画像メモリ431の画像データから文字画像を切り
出すように指示する。
FIGS. 19 and 20 are flow charts showing a subroutine of the top-bottom recognition process in step S6. First, in step S601 in FIG.
501 is a character extraction circuit 53 which generates a RETRY signal.
0 is instructed to cut out a character image from the image data in the image memory 431.

【0124】文字切り出し回路530は、この信号に基
づいて上述したように1文字分の文字画像を切り出し、
その横画素数Xと縦画素数Yの積で示される文字サイズ
をXY信号とすると共に黒画素と白画素の比をB/W信
号として、それぞれCPU501に送信する。CPU5
01は、まず、XY信号により、当該切り出された文字
が所定サイズ以上の大サイズの文字でないか否かを判定
する(ステップS602)。ここでいう大サイズの文字
は、縦横の文字サイズが例えば10mm以上(400d
piでは、XまたはYが157dotを超えるもの)を
示す。
The character extracting circuit 530 extracts a character image for one character based on this signal as described above,
The character size indicated by the product of the number of horizontal pixels X and the number of vertical pixels Y is transmitted to the CPU 501 as an XY signal and the ratio of black pixels to white pixels as a B / W signal. CPU5
First, the XY signal is used to determine whether or not the cut-out character is a large-size character of a predetermined size or more (step S602). The large-sized character referred to here has a vertical and horizontal character size of, for example, 10 mm or more (400 d
pi indicates that X or Y exceeds 157 dots).

【0125】このように文字のサイズを判定するのは、
通常の原稿に用いられる文字としてこれほど大サイズの
ものはあまり使用されないし、仮に新聞等において見出
しとして大サイズの文字が使用されていたとしても、強
調文字や傾いた文字などかなりデフォルメされている可
能性が高く、天地認識の対象とする文字としては適当で
ないと考えられるからである。
The character size is determined as described above.
Such large-sized characters are rarely used as characters used in ordinary manuscripts, and even if large-sized characters are used as headlines in newspapers etc., emphasized characters and inclined characters are considerably deformed. This is because the possibility is high and it is considered that the character is not suitable as a character to be subjected to top-bottom recognition.

【0126】次に、CPU501は、B/W信号によ
り、切り出された文字画像における黒画素と白画素の比
B/Wが所定値、例えば、1以上ではないか否かを判定
する(ステップS603)。B/W比が、1以上、すな
わち黒画素が全体の画素の50%以上ある場合には、当
該文字は、極端にデフォルメされた太字もしくは反転文
字であると考えられるので、これもまた天地認識の対象
文字としては適当ではなく、予め排除しておく方が望ま
しい。
Next, the CPU 501 determines from the B / W signal whether the ratio B / W of black pixels to white pixels in the cut-out character image is not a predetermined value, for example, 1 or more (step S603). ). When the B / W ratio is 1 or more, that is, when the number of black pixels is 50% or more of the total pixels, the character is considered to be an extremely deformed bold or inverted character, and this is also recognized as upside down. Is not appropriate as a target character, and it is desirable to eliminate it in advance.

【0127】CPU501は、上述の判定の結果、文字
サイズもしくはB/W比がそれぞれの所定値を超える場
合には、文字切り出しのエラーがあったものとみなして
(ステップS604でYes)、再び文字切り出し回路
530にRETRY信号を発して、次の文字の切り出し
を実行させる。一方、ステップS604において、文字
切り出しエラーであると判断されなかった場合には、そ
の切り出された画像データは特徴量抽出回路540に送
られると共に、CPU501は、3×3の辞書サイズで
処理するように特徴量抽出回路540、辞書データ発生
回路560、比較回路580の各部に当該辞書サイズ切
り替え信号を送信する(ステップS605)。
If the character size or the B / W ratio exceeds the respective predetermined values as a result of the above-described determination, the CPU 501 regards that a character cutout error has occurred (Yes in step S604), and returns to step S604. A cutout circuit 530 issues a RETRY signal to cause the next character to be cut out. On the other hand, if it is not determined in step S604 that there is a character cutout error, the cutout image data is sent to the feature amount extraction circuit 540, and the CPU 501 processes the image data in a 3 × 3 dictionary size. The dictionary size switching signal is transmitted to each unit of the feature amount extraction circuit 540, the dictionary data generation circuit 560, and the comparison circuit 580 (step S605).

【0128】そして、上述した特徴量抽出回路540に
おける各抽出回路541〜546(図6)により当該文
字の特徴量の抽出を行って(ステップS606)、エラ
ーチェック回路548においてその比率情報および、要
素数、閉ループ、十字交差点、T字交差点、端点の各個
数情報がそれぞれ3×3辞書サイズについて設定された
閾値以上ではないかを判定する(ステップS607)。
Then, the feature amount of the character is extracted by each of the extraction circuits 541 to 546 (FIG. 6) in the above-described feature amount extraction circuit 540 (step S606). It is determined whether the number information of each of the number, the closed loop, the cross intersection, the T-shaped intersection, and the end point is equal to or larger than the threshold set for the 3 × 3 dictionary size (step S607).

【0129】もし、一つの情報でも、その情報に該当す
る閾値を超えていれば、ステップS608において特徴
量抽出エラーと判断され、その信号(特徴量抽出エラー
信号)がCPU501に送られ、CPU501は、現在
の辞書サイズが3×3であるか否かを判断するが(ステ
ップS611)、初期設定において上述のように3×3
辞書サイズに設定されているので、より解像度の高い5
×5辞書サイズでさらに正確な特徴量の抽出を実行させ
るべく、5×5辞書サイズへの辞書切り替え信号を特徴
量抽出回路540等に送信する(ステップS612)。
If at least one piece of information exceeds the threshold value corresponding to the information, it is determined in step S608 that a feature quantity extraction error has occurred, and a signal (feature quantity extraction error signal) is sent to the CPU 501. It is determined whether or not the current dictionary size is 3 × 3 (step S611).
Since the size is set to the dictionary size, 5
In order to execute more accurate extraction of the feature amount in the × 5 dictionary size, a dictionary switching signal to the 5 × 5 dictionary size is transmitted to the feature amount extraction circuit 540 and the like (step S612).

【0130】これにより特徴量抽出回路540は、5×
5辞書サイズで再度特徴量の抽出を実行した後、各特徴
量の個数情報についてエラーチェックを行い(ステップ
S606、S607)、それでもなお特徴量抽出エラー
有りと判断された場合には(ステップS608でYe
s)、ステップS611に移るが、このときにはすでに
5×5辞書サイズとなっているので、「No」と判断さ
れてステップS601に戻って、RETRY信号により
次の文字の切り出しを指示し、新たに切り出された文字
について上述のステップS602以下の処理を実行す
る。
As a result, the feature quantity extraction circuit 540 has a 5 ×
After the feature amount is extracted again with five dictionary sizes, an error check is performed on the number information of each feature amount (steps S606 and S607). If it is still determined that there is a feature amount extraction error (step S608) Ye
s) Then, the process proceeds to step S611. At this time, since the size of the dictionary is already 5 × 5, it is determined to be “No” and the process returns to step S601 to instruct the extraction of the next character by the RETRY signal. The above-described processing of step S602 and subsequent steps is performed on the cut-out character.

【0131】図21は、上記ステップS608での特徴
量抽出のエラーチェックと辞書切り替え動作(ステップ
S611、S612)の関係を示す図である。同図にお
いて特徴量数は上方にいくほど多くなっているが、上述
のように縦横比率情報や要素数は辞書サイズには依存し
ないので、ここでの特徴量数は、当該比率情報および要
素数を除く4つの特徴形状(閉ループ、十字交差点、T
字交差点、端点)の各個数情報を意味している。
FIG. 21 is a diagram showing the relationship between the error check of the feature amount extraction in step S608 and the dictionary switching operation (steps S611 and S612). In the figure, the number of feature values increases as going upwards. However, as described above, the aspect ratio information and the number of elements do not depend on the dictionary size. Except for the four feature shapes (closed loop, cross intersection, T
Character intersections, end points).

【0132】まず、3×3辞書サイズで特徴量の抽出が
行われ、このときの特徴量個数が3×3辞書サイズにお
ける特徴量抽出エラー値(閾値)を超えた場合には、次
に5×5の辞書サイズに切り替えて特徴量の抽出を行
う。上述したように縦横比率情報や要素数を除く各個数
情報は、同じブロック内に同一の特徴点などが複数含ま
れていても1個しかカウントしないので、分割ブロック
数を多くして解像度を高くするほど正確な個数情報を把
握することができる。
First, feature quantities are extracted in the 3 × 3 dictionary size. If the number of feature quantities at this time exceeds the feature quantity extraction error value (threshold) in the 3 × 3 dictionary size, then 5 The size is switched to the dictionary size of × 5, and the feature amount is extracted. As described above, each piece of information excluding the aspect ratio information and the number of elements counts only one even if the same block includes a plurality of the same feature points and the like, so the number of divided blocks is increased to increase the resolution. The more accurate the number information can be obtained.

【0133】したがって、通常は高速に比較処理が行え
る3×3辞書サイズで処理を行い、特徴量が多い複雑な
文字に対しては正確な比較処理が行える5×5辞書サイ
ズで処理し、それでも特徴量抽出エラーが発生する場合
には、そもそも切り出された文字が画数の多い漢字など
参照文字に含まれない文字であると判断されるので、切
り出し文字自体を切り替えることにより誤判定を防止す
るのである。
Therefore, usually, processing is performed with a 3 × 3 dictionary size that enables high-speed comparison processing, and processing is performed with a 5 × 5 dictionary size that can perform accurate comparison processing on complex characters having many feature values. If a feature extraction error occurs, the extracted character is determined to be a character that is not included in the reference characters such as kanji with a large number of strokes, so erroneous determination is prevented by switching the extracted character itself. is there.

【0134】図22は、辞書サイズごとの各特徴量にお
ける特徴量抽出エラー値を示す図表である。各エラー値
には、上述の表1に示した参照文字について3×3辞
書、5×5辞書ごとに求められた各特徴量個数情報の最
高値が設定されており、上述したように所定の特徴形状
については解像度が高い方が抽出される個数情報も多く
なるので、そのエラー値も高く設定される。
FIG. 22 is a table showing feature value extraction error values in each feature value for each dictionary size. For each error value, the maximum value of each piece of feature quantity information obtained for each of the 3 × 3 dictionary and the 5 × 5 dictionary for the reference characters shown in Table 1 above is set. As for the feature shape, the higher the resolution, the greater the number of pieces of information to be extracted, so that the error value is also set higher.

【0135】なお、同図表で要素数個数情報や端点個数
情報のエラー値が大きいのは、上述した「マル秘」の文
字は、辞書データ発生回路560に内蔵された256個
の参照文字に比較して要素数、端点とも個数が多く、こ
のようにエラー値を大きくしておかないと当該文字の特
徴量データが比較回路580に入力される前に、特徴量
抽出回路540のエラーチェック回路548(図6)に
おけるチェックにより排除されてしまうからである。な
お、当該エラー値におけるカッコ内の数値は、マル秘文
書の判定によるコピー禁止モードが解除されたときに採
用されるべきエラー値を示している。
It is to be noted that the error value of the number-of-elements information and the number-of-endpoints information in the table is large because the above-mentioned “confidential” character is compared with the 256 reference characters built in the dictionary data generation circuit 560. The number of elements and the number of end points are large, and unless the error value is increased in this way, the error check circuit 548 of the feature extraction circuit 540 before the feature data of the character is input to the comparison circuit 580. This is because it is excluded by the check in FIG. The numerical value in parentheses in the error value indicates an error value to be adopted when the copy prohibition mode based on the determination of the secret document is released.

【0136】図19に戻り、ステップS608において
特徴量抽出エラーでないと判定された場合には、当該切
り出し文字の特量量個数情報に基づき辞書データ発生回
路560の辞書アドレス発生回路561(図8)で参照
文字から認識候補文字が選択され、その個数が辞書数信
号NとしてCPU501に送信される。CPU501
は、この辞書数信号Nを確認し(ステップS609)、
辞書RETRY信号を辞書データ発生回路560の送信
して辞書データを出力するように指示する。
Returning to FIG. 19, if it is determined in step S608 that there is no feature amount extraction error, the dictionary address generation circuit 561 of the dictionary data generation circuit 560 (FIG. 8) based on the characteristic quantity number information of the cut-out character. , A recognition candidate character is selected from the reference characters, and the number thereof is transmitted to the CPU 501 as a dictionary number signal N. CPU 501
Confirms this dictionary number signal N (step S609),
The dictionary RETRY signal is transmitted from the dictionary data generation circuit 560 to instruct to output the dictionary data.

【0137】次に、比較回路580の回転角評価回路5
84、586の各重み付け回路(図17参照)における
重み付け係数K1〜K3が設定される(ステップS61
0)。この重み付け係数は、上述したように、例えば、
原稿に用いられている日本文や英文の種類ごとに予め求
められてCPU501内部に格納されており、操作者が
原稿の種類を操作パネルから入力することによりCPU
501により設定される。
Next, the rotation angle evaluation circuit 5 of the comparison circuit 580
Weighting coefficients K1 to K3 in each of the weighting circuits 84 and 586 (see FIG. 17) are set (step S61).
0). This weighting factor is, for example,
Each type of Japanese or English sentence used in the document is obtained in advance and stored in the CPU 501. When the operator inputs the type of the document from the operation panel, the CPU
501.

【0138】このような準備が完了してから図20のス
テップS613に移り、辞書データの読み出しを実行す
る。これは、辞書データ発生回路560がCPU501
からの辞書RETRY信号を受信することにより開始さ
れ、当該辞書データ発生回路560内のRETRYカウ
ンタ562(図8)は、上記辞書RETRY信号を受信
するたびにカウントアップし、そのカウント値を辞書ア
ドレス発生回路561に送信する。辞書アドレス発生回
路561は、上記N個の認識候補文字からカウント値に
相当する文字を選択してその文字コードを辞書アドレス
として辞書データROM563に送信する。辞書データ
ROM563はこの辞書アドレスとCPU501からの
辞書サイズ切り替え信号に基づいて図10で説明したよ
うな辞書データを読み出し、CPU501からの特徴デ
ータ切り替え信号の受信によりカウントアップする切り
替え信号カウンタ564のカウント値に基づいて、該当
するアドレスの辞書データを上から順に8bit(1B
yte)ずつ比較回路580に送信する。
After such preparation is completed, the flow shifts to step S613 in FIG. 20, and the dictionary data is read. This is because the dictionary data generation circuit 560 uses the CPU 501.
, A RETRY counter 562 (FIG. 8) in the dictionary data generating circuit 560 counts up each time the dictionary RETRY signal is received, and generates a dictionary address. The signal is transmitted to the circuit 561. The dictionary address generation circuit 561 selects a character corresponding to the count value from the N recognition candidate characters, and transmits the character code to the dictionary data ROM 563 as a dictionary address. The dictionary data ROM 563 reads out the dictionary data as described in FIG. 10 based on the dictionary address and the dictionary size switching signal from the CPU 501, and counts up by the switching signal counter 564 which counts up by receiving the characteristic data switching signal from the CPU 501. , The dictionary data of the corresponding address is stored in 8 bits (1B
yte) to the comparison circuit 580 at a time.

【0139】この際、CPU501からの特徴データ切
り替え信号は、辞書サイズが3×3の時は特徴点データ
が9Byteであるため9回、辞書サイズが5×5の時
は特徴点データが25Byteであるため25回出力さ
れるため、特徴点データの比較だけを考えると辞書サイ
ズが5×5の時は辞書サイズが3×3の時に比べ約2.
5倍の処理時間を必要とすることになる。
At this time, the feature data switching signal from the CPU 501 is 9 times when the dictionary size is 3 × 3 because the feature point data is 9 bytes, and when the dictionary size is 5 × 5, the feature point data is 25 bytes. Since it is output 25 times, considering only the feature point data, when the dictionary size is 5 × 5, it is about 2.
This would require five times the processing time.

【0140】比較回路580は、特徴量抽出回路540
からの特徴量データと、辞書データ発生回路560から
の辞書データの内容を上述のように回転角度ごとに比較
して、それぞれの評価ポイントを算出して一致度を求
め、そのうち最大のものを完全に一致した場合に対する
パーセンテージに換算し、これを一致度情報としてその
回転角に関する情報と共にCPU501に送信する(ス
テップS614)。
The comparison circuit 580 includes a feature amount extraction circuit 540
Is compared with the contents of the dictionary data from the dictionary data generation circuit 560 for each rotation angle as described above, and the respective evaluation points are calculated to obtain the degree of coincidence. Is converted to a percentage with respect to the case where it matches, and this is transmitted as matching degree information to the CPU 501 together with information about the rotation angle (step S614).

【0141】CPU501は、上記一致度情報の値と予
め内部に設定されている閾値TH1(例えば、95%)
と比較し(ステップS615)、一致度情報の値がこの
閾値TH1を超える場合には、切り取られた文字と辞書
データの文字が当該回転角において完全に一致したもの
とみなして、そのときの回転角情報の角度を回転角信号
としてメモリ制御部430(図2)に送信し、リターン
する(ステップS619)。
The CPU 501 compares the value of the coincidence information with a preset threshold TH1 (for example, 95%).
(Step S615), and when the value of the matching degree information exceeds the threshold value TH1, it is considered that the cut character and the character of the dictionary data completely match at the rotation angle, and the rotation at that time is determined. The angle of the angle information is transmitted as a rotation angle signal to the memory control unit 430 (FIG. 2), and the process returns (step S619).

【0142】一方、ステップS615において比較回路
580から送信されてきた一致度情報の示す値が閾値T
H1以下の場合には、他の認識候補文字の辞書データを
読み出して特徴量データと比較し、得られた一致度情報
同士を比較してその最大値を抽出する(ステップS61
6)。そのため、ステップS617で、認識候補文字の
辞書数Nの全部について比較したか否かを判断し、全部
について比較していなければ、CPU501は辞書RE
TRY信号を送信して、これにより辞書データ発生回路
560は辞書データを切り替えて出力し(ステップS6
13)、この辞書データに基づいて比較回路580で新
たに求められた一致度情報が上記TH1を超えておれ
ば、その回転角を回転確信号としてメモリ制御部430
に送信し、そうでなければ再びステップS616に移っ
て、一致度情報の最大値の抽出を行う。
On the other hand, in step S615, the value indicated by the coincidence information transmitted from comparison circuit 580 is equal to threshold value T.
If the value is equal to or less than H1, the dictionary data of another recognition candidate character is read and compared with the feature amount data, and the obtained coincidence information is compared with each other to extract the maximum value (step S61).
6). Therefore, in step S617, it is determined whether or not the comparison has been made for all of the dictionary numbers N of the recognition candidate characters.
A TRY signal is transmitted, whereby the dictionary data generating circuit 560 switches and outputs dictionary data (step S6).
13) If the coincidence information newly obtained by the comparison circuit 580 based on the dictionary data exceeds the above TH1, the rotation angle is used as a rotation certain signal as the memory control unit 430.
Otherwise, the process returns to step S616 to extract the maximum value of the matching degree information.

【0143】このステップS616における抽出処理
は、N個の全認識候補文字の辞書データと比較するまで
最大(N−1)回繰り返されることになるが(ステップ
S617)、その途中で一致度情報がTH1を超えるも
のがあれば、そのときの回転角情報を回転角信号とし
(ステップS615でNo、S619)、全ての認識候
補文字について一致度情報を求めたにもかかわらず、T
H1を超えるものがなかった場合には(ステップS61
7でYes)、仕方がないのでステップS616で抽出
された最大の一致度情報を、閾値TH1より小さな閾値
TH2(例えば、90%程度)と比較し(ステップS6
18)、当該一致度情報がこの閾値TH2以上であれ
ば、そのときの回転角を回転角信号とする(ステップS
619)。
The extraction processing in step S616 is repeated up to (N-1) times until comparison with the dictionary data of all N recognition candidate characters (step S617). If any of the characters exceeds TH1, the rotation angle information at that time is used as a rotation angle signal (No in step S615, S619).
If none exceeds H1 (step S61)
(Yes in 7), there is no help for it, and the maximum matching degree information extracted in step S616 is compared with a threshold TH2 (for example, about 90%) smaller than the threshold TH1 (step S6).
18) If the matching degree information is equal to or greater than the threshold value TH2, the rotation angle at that time is used as a rotation angle signal (step S).
619).

【0144】もし、ステップS618において、一致度
情報の最大値が、閾値TH2未満であった場合には、ス
テップS620に移り、現在の辞書サイズが3×3であ
るか否かを確認して、辞書サイズが3×3であれば、図
19のステップS612に移って、辞書サイズを5×5
に切り替えて解像度を上げ、この辞書サイズで再度ステ
ップS606〜S619の処理を実行する。
If the maximum value of the coincidence information is smaller than the threshold value TH2 in step S618, the process proceeds to step S620 to check whether the current dictionary size is 3 × 3. If the dictionary size is 3 × 3, the process proceeds to step S612 in FIG.
And the resolution is increased, and the processing of steps S606 to S619 is executed again with this dictionary size.

【0145】また、図20のステップS620におい
て、すでに辞書サイズ5×5に切り替えられていた場合
には、当該切り出した文字が、天地認識に不適当な文字
であったとみなして、図19のステップS601に戻っ
て、切り出し文字を切り替え、以下上述の天地認識処理
の動作を繰り返すことになる。以上のように、本実施の
形態においては、予め認識の対象となる256個の参照
文字に関する辞書データを内部に格納しておき、文字切
り出し回路530で切り出された文字について、特徴量
抽出回路540において文字の方向に依存しない特徴量
個数情報と文字の方向に依存する特徴量データを生成
し、まず、特徴量個数情報に基づいて上記256文字の
中から認識候補文字を選択して、これらの限定された数
の辞書データと切り出した文字の特徴量データとを比較
するので、比較処理の回数を極端に低減して、天地認識
のための処理時間を大幅に減少させることができ、最短
の場合には1回の一致度情報の比較により文字の方向が
判定できる。
If it is determined in step S620 in FIG. 20 that the dictionary size has already been changed to 5 × 5, it is determined that the cut-out character is inappropriate for the top-bottom recognition, and the process proceeds to step S620 in FIG. Returning to step S601, the cut-out character is switched, and the above-described operation of the top and bottom recognition processing is repeated. As described above, in the present embodiment, dictionary data relating to the 256 reference characters to be recognized is stored in advance, and the characters extracted by the character extraction circuit 530 are stored in the feature extraction circuit 540. Generates feature quantity number information that does not depend on the direction of the character and feature quantity data that depends on the direction of the letter. First, recognition candidate characters are selected from the 256 characters based on the feature quantity number information. Since a limited number of dictionary data is compared with the cut-out character feature data, the number of comparison processes is extremely reduced, and the processing time for top-bottom recognition can be greatly reduced. In this case, the direction of the character can be determined by comparing the matching degree information once.

【0146】しかも、特徴量の抽出および辞書データと
の比較などの処理は、全てハード回路で達成できるの
で、複雑なパターン認識のアルゴリズムの実行は不要で
あり、さらに迅速な処理が可能となる。また、切り出し
た文字についても、予め天地認識の判定の難しそうな文
字については、上記文字切り出しエラーの判定(図1
9、ステップS604)や特徴量抽出エラーの判定(同
図、ステップS608)において予め除外しているの
で、辞書データと異なる文字について比較を行って、偶
然、比較結果がよかった場合の誤認識の防止が可能とな
る。 (5)変形例 以上、本発明に係る画像入力装置の実施の形態を説明し
てきたが、本発明は、上述の実施の形態に限定されない
のは勿論であり、以下のような変形例を考えることがで
きる。
In addition, since the processes such as the extraction of the feature amount and the comparison with the dictionary data can all be achieved by a hardware circuit, it is not necessary to execute a complicated pattern recognition algorithm, and the process can be performed more quickly. Also, regarding the extracted characters, for the characters for which it is difficult to determine the upside-down recognition in advance, the above-described character extraction error determination (FIG. 1)
9, step S604) and feature amount extraction error determination (step S608 in the figure), so that comparison is made for characters different from the dictionary data to prevent erroneous recognition when the comparison result is good by chance. Becomes possible. (5) Modifications While the embodiments of the image input device according to the present invention have been described above, the present invention is not limited to the above-described embodiments, and the following modifications are considered. be able to.

【0147】(5−1)上記実施の形態においては、天
地認識のための特徴量として、閉ループ、十字交差点、
T字交差点、端点などの文字特有の局所的形状の位置情
報あるいは隣接方向情報を抽出して文字方向の判定に利
用した。このような情報量が多いほど天地認識の確実性
が増すことはいうまでもないが、認識する文字によって
は、そのうち一部の情報に基づいて方向を判定すること
も可能であり、必ずしも全ての情報は必要ではない。
(5-1) In the above embodiment, a closed loop, a cross intersection,
Position information or adjacent direction information of a character-specific local shape such as a T-shaped intersection or an end point was extracted and used for determining the character direction. It goes without saying that the greater the amount of such information, the more certainty of top and bottom recognition increases, but depending on the character to be recognized, it is also possible to determine the direction based on some of the information, and not necessarily all of the characters. No information is needed.

【0148】また、反対に、上記実施の形態では、切り
出した1文字についてその一致度情報が閾値TH1より
大きい場合に、すぐにその回転角を原稿方向とみなして
画像データの回転処理を行ったが、別の切り出し文字に
ついても確認して、その結果が一致した場合のみ当該回
転角を原稿方向と認識するようにすれば、天地認識の精
度が増す。
On the other hand, in the above embodiment, when the matching degree information of one cut-out character is larger than the threshold value TH1, the rotation angle is immediately regarded as the document direction and the rotation processing of the image data is performed. However, if another cut-out character is also checked and the rotation angle is recognized as the document direction only when the result matches, the accuracy of the top-bottom recognition increases.

【0149】(5−2)また、上記実施の形態において
は、切り出された文字画像について、文字の方向に依存
しない特徴量個数情報と、文字の方向に依存する特徴量
データの双方を抽出し、特徴量個数情報によってまず比
較すべき認識候補文字をリストアップし、その認識候補
文字の辞書データと特徴量データを順に比較するように
したので、極めて効率的かつ迅速に天地認識処理を行う
ことが可能となったが、場合によっては特徴量個数情報
によって認識候補文字をリストアップする処理を行わず
に、全ての辞書データと特徴量データを順に比較するよ
うにしてもよい。この場合、上記実施の形態に比べて処
理時間が少し長くなるが、それでも従来のパターン照合
による処理に比べて迅速かつ正確な天地認識が行える。
(5-2) In the above embodiment, both the feature quantity number information independent of the character direction and the feature quantity data dependent on the character direction are extracted from the cut-out character image. First, the recognition candidate characters to be compared are listed up based on the feature quantity number information, and the dictionary data of the recognition candidate characters and the feature data are compared in order. However, in some cases, all dictionary data and feature amount data may be compared in order without performing a process of listing recognition candidate characters based on feature amount number information. In this case, although the processing time is slightly longer than in the above-described embodiment, quicker and more accurate top-and-bottom recognition can be performed as compared with the conventional processing using pattern matching.

【0150】(5−3)上記実施の形態においては、カ
ラーデータキャンセル回路520において有彩色の画像
データを検出して、これを白データに置き換える処理を
行ってから、文字切り出し回路530において文字の切
り出し処理を行ったが、先にカラー画像データのまま文
字切り出し処理を行い、その後有彩色の文字を検出し
て、これを除いた他の白黒文字に基づき特徴量を抽出す
るようにしてもよい。この場合には不要な有彩色の画像
データについてまでヒストグラムを生成し、文字切り出
し処理を行うことになるので、それぞれの処理回路が複
雑になると共に処理時間が若干長くなると考えられる
が、白黒の画像データに基づく原稿方向の認識精度は維
持できる。
(5-3) In the above embodiment, the chromatic image data is detected by the color data cancel circuit 520, and the chromatic image data is replaced by white data. Although the cutout process is performed, the character cutout process may be performed first with the color image data unchanged, and thereafter, a chromatic character may be detected, and the feature amount may be extracted based on other black and white characters excluding this. . In this case, a histogram is generated even for unnecessary chromatic image data, and character extraction processing is performed. Therefore, it is considered that each processing circuit is complicated and processing time is slightly longer. The recognition accuracy in the document direction based on the data can be maintained.

【0151】(5−4)上記回転角評価回路584(5
86)では、辞書データの方を90゜ずつ回転して特徴
量データと比較しているが、特徴量データの方を回転し
て比較してもよいのは勿論である。この場合には回転処
理部432により画像データを回転する方向が逆とな
る。また、通常の原稿は、縦長の原稿に横書きで文字が
印刷されているものがほとんどなので、90゜、270
゜の回転角での比較を省略してもあまり不都合はないで
あろう。反対に、90゜の回転角の幅をもっと小さくし
て少しずつ回転しながら比較することにより、原稿自動
搬送装置100の搬送ベルト14の不都合等により、原
稿が原稿ガラス板21の原稿読取位置に斜めに設置され
た場合でも、正しい方向に画像データを回転して出力す
ることが可能となる。
(5-4) The rotation angle evaluation circuit 584 (5
86), the dictionary data is rotated by 90 ° and compared with the feature data. However, it is needless to say that the feature data may be rotated and compared. In this case, the direction in which the image data is rotated by the rotation processing unit 432 is reversed. In addition, most of ordinary documents have a portrait document in which characters are printed in horizontal writing.
Omitting the comparison at the rotation angle of ゜ would not be too inconvenient. Conversely, by making the width of the rotation angle of 90 ° smaller and making a comparison while rotating the document little by little, the document is moved to the document reading position of the document glass plate 21 due to the inconvenience of the conveyance belt 14 of the automatic document conveyance device 100. Even when the image data is installed obliquely, the image data can be rotated and output in a correct direction.

【0152】(5−5)上記実施の形態においては、本
発明に係る画像入力装置を複写機に適用した例を説明し
たが、その他の原稿の読取が必要な装置、例えばファク
シミリ装置における画像入力装置としても適用される。
(5-5) In the above embodiment, an example in which the image input apparatus according to the present invention is applied to a copying machine has been described. It is also applied as a device.

【0153】[0153]

【発明の効果】以上説明してきたように、本発明に係る
画像入力装置によれば、カラーデータ検出手段によりカ
ラー画像データにおける有彩色の画像データを検出し、
当該検出された有彩色の画像データを除いた他の白黒画
像データにおける文字画像に基づいて当該原稿の方向を
判別するので、文字方向の認識に適しない有彩色の文字
画像を予め排除して、装飾や変形の施されている可能性
のほとんどない白黒の画像データのみからなる文字画像
に基づいて確実に原稿の方向を認識することができる。
As described above, according to the image input apparatus of the present invention, the chromatic image data in the color image data is detected by the color data detecting means.
Since the direction of the document is determined based on the character image in the other black-and-white image data excluding the detected chromatic image data, the chromatic character image that is not suitable for character direction recognition is excluded in advance. It is possible to reliably recognize the direction of the document based on a character image consisting of only black and white image data that has almost no possibility of being decorated or deformed.

【0154】また、本発明によれば、前記カラーデータ
検出手段が、当該カラー画像データを輝度と2種類の色
度とで表される色空間に変換する色空間変換手段と、前
記2種類の色度のうちいずれかの値が、それぞれについ
て設定された閾値を超える場合に、有彩色の画像データ
であると判別する有彩色判別手段とからなるので、これ
により確実に有彩色の画像データを検出できる。
Further, according to the present invention, the color data detecting means converts the color image data into a color space represented by luminance and two kinds of chromaticity, and the two kinds of color space data. If any one of the chromaticity values exceeds a threshold value set for each of the chromaticity, the chromaticity determination unit determines that the image data is chromatic color image data. Can be detected.

【0155】さらに、本発明によれば、前記原稿方向判
別手段が、前記検出された有彩色の画像データを白デー
タに置き換えて白黒画像データを生成し、その白黒画像
データから文字画像を切り出して、当該文字画像におけ
る局所的な形状の相対的位置もしくはその隣接方向を文
字特徴量として抽出し、これを予め記憶していた所定文
字の文字特徴量と比較することにより原稿の方向を判別
しており、予め、有彩色の画像データを白データに置き
換えるので、その後の文字切り出しが容易に行え、ま
た、文字方向の認識は、パターンの認識によるのではな
く、文字画像の局所的な形状の相対的位置もしくは隣接
方向の比較のみで行われるので、パターン認識のための
複雑なアルゴリズムなどは一切不要であり簡易なハード
回路による迅速な処理が可能となる。
Further, according to the present invention, the original direction discriminating means generates monochrome image data by replacing the detected chromatic image data with white data, and cuts out a character image from the monochrome image data. Then, the relative position of the local shape in the character image or the adjacent direction is extracted as a character feature amount, and this is compared with the character feature amount of a predetermined character stored in advance to determine the direction of the document. Since the chromatic image data is replaced in advance with white data, the subsequent character segmentation can be easily performed.In addition, the recognition of the character direction is not based on the pattern recognition but on the relative local shape of the character image. Since only the comparison of the target position or the adjacent direction is performed, no complicated algorithm for pattern recognition is required at all, and quick processing by a simple hardware circuit is performed. It is possible.

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

【図1】本発明に係る画像入力装置が適用される複写機
の全体の構成を示す図である。
FIG. 1 is a diagram showing an overall configuration of a copying machine to which an image input device according to the present invention is applied.

【図2】上記複写機における制御部の構成を示すブロッ
ク図である。
FIG. 2 is a block diagram showing a configuration of a control unit in the copying machine.

【図3】上記制御部における原稿判別部の構成を示すブ
ロック図である。
FIG. 3 is a block diagram showing a configuration of a document discrimination unit in the control unit.

【図4】上記原稿判別部の特定色抽出回路の構成を示す
ブロック図である。
FIG. 4 is a block diagram illustrating a configuration of a specific color extraction circuit of the document discrimination unit.

【図5】上記原稿判別部のヒストグラム生成回路で生成
されるヒストグラムの内容を説明するための図である。
FIG. 5 is a diagram for explaining the contents of a histogram generated by a histogram generation circuit of the document determination unit.

【図6】上記原稿判別部の特徴量抽出回路の構成を示す
ブロック図である。
FIG. 6 is a block diagram illustrating a configuration of a feature amount extraction circuit of the document determination unit.

【図7】上記特徴量抽出回路における閉ループ抽出回路
で抽出される、閉ループの位置情報の内容を説明するた
めの図である。
FIG. 7 is a diagram for explaining contents of closed loop position information extracted by a closed loop extraction circuit in the feature amount extraction circuit.

【図8】上記原稿判別部における辞書データ発生回路の
構成を示すブロック図である。
FIG. 8 is a block diagram showing a configuration of a dictionary data generation circuit in the document discrimination section.

【図9】参照文字のうち、ひらがなの46文字につい
て、5×5辞書サイズにおける各特徴量個数情報の値を
示す図である。
FIG. 9 is a diagram showing the value of each feature quantity number information in a 5 × 5 dictionary size for 46 hiragana characters among reference characters.

【図10】上記辞書データ発生回路の辞書データROM
における各参照文字ごとの辞書データの内容を示す図で
ある。
FIG. 10 is a dictionary data ROM of the dictionary data generation circuit.
FIG. 4 is a diagram showing the contents of dictionary data for each reference character in FIG.

【図11】3×3辞書サイズの場合の上記辞書データに
格納される閉ループ位置情報の生成を説明するための図
である。
FIG. 11 is a diagram for explaining generation of closed loop position information stored in the dictionary data in the case of a 3 × 3 dictionary size.

【図12】上記辞書データにおける3×3辞書サイズの
特徴点データの格納状態をビットプレーンにより模式的
に示す図である。
FIG. 12 is a diagram schematically showing a storage state of feature point data of a 3 × 3 dictionary size in the dictionary data by a bit plane.

【図13】3×3の辞書サイズにおいて、ひらがなの文
字を9ブロックに分割して各特徴点の位置情報を得る場
合について説明するための図である。
FIG. 13 is a diagram for explaining a case in which a hiragana character is divided into nine blocks to obtain position information of each feature point in a 3 × 3 dictionary size.

【図14】上記辞書データにおける5×5辞書サイズの
特徴点データの格納状態をビットプレーンにより模式的
に示す図である。
FIG. 14 is a diagram schematically showing a storage state of feature point data of 5 × 5 dictionary size in the dictionary data by a bit plane.

【図15】5×5の辞書サイズにおいて、ひらがなの文
字を25ブロックに分割して各特徴点の位置情報を得る
場合について説明するための図である。
FIG. 15 is a diagram for describing a case in which a hiragana character is divided into 25 blocks to obtain position information of each feature point in a dictionary size of 5 × 5.

【図16】上記制御部における比較回路の構成を示すブ
ロック図である。
FIG. 16 is a block diagram illustrating a configuration of a comparison circuit in the control unit.

【図17】上記比較回路における回転角評価回路の構成
を示すブロック図である。
FIG. 17 is a block diagram showing a configuration of a rotation angle evaluation circuit in the comparison circuit.

【図18】上記制御部における制御動作のメインルーチ
ンを示すフローチャートである。
FIG. 18 is a flowchart showing a main routine of a control operation in the control unit.

【図19】図18のステップS6における天地認識処理
のサブルーチンを示すフローチャートである。
FIG. 19 is a flowchart illustrating a subroutine of a top-bottom recognition process in step S6 of FIG. 18;

【図20】図19の続きのフローチャートである。FIG. 20 is a flowchart continued from FIG. 19;

【図21】辞書サイズの切り替えと特徴量数との関係を
示す図である。
FIG. 21 is a diagram showing the relationship between dictionary size switching and the number of feature quantities.

【図22】各辞書サイズにおける特徴量数の抽出エラー
値の一例を示す図である。
FIG. 22 is a diagram illustrating an example of an extraction error value of the number of feature values in each dictionary size.

【図23】従来の文字方向の認識方法を説明するための
図である。
FIG. 23 is a diagram for explaining a conventional character direction recognition method.

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

100 原稿自動搬送部 200 画像読取部 300 プリンタ部 400 制御部 410 画像読取制御部 420 画像信号処理部 430 メモリ制御部 431 画像メモリ 432 回転処理部 440 プリンタ制御部 450 外部通信制御部 460 メイン制御部 500 原稿判別部 501 CPU 510 特定色抽出回路 520 カラーデータキャンセル回路 530 文字切り出し回路 532 要素数抽出回路 540 特徴量抽出回路 560 辞書データ発生回路 580 比較回路 REFERENCE SIGNS LIST 100 automatic document feeder 200 image reader 300 printer 400 controller 410 image reader controller 420 image signal processor 430 memory controller 431 image memory 432 rotation processor 440 printer controller 450 external communication controller 460 main controller 500 Document discriminating unit 501 CPU 510 Specific color extraction circuit 520 Color data cancellation circuit 530 Character extraction circuit 532 Element number extraction circuit 540 Feature quantity extraction circuit 560 Dictionary data generation circuit 580 Comparison circuit

───────────────────────────────────────────────────── フロントページの続き (72)発明者 飯田 徹 大阪府大阪市中央区安土町二丁目3番13号 大阪国際ビル ミノルタ株式会社内 (72)発明者 吉村 智也 大阪府大阪市中央区安土町二丁目3番13号 大阪国際ビル ミノルタ株式会社内 ──────────────────────────────────────────────────続 き Continuing on the front page (72) Inventor Toru Iida 2-3-1-13 Azuchicho, Chuo-ku, Osaka-shi, Osaka Inside Osaka International Building Minolta Co., Ltd. (72) Tomoya Yoshimura, Azuchi-cho, Chuo-ku, Osaka-shi, Osaka 2-3-13 Osaka International Building Minolta Co., Ltd.

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 カラー原稿の画像を入力するための装置
であって、 原稿を読み取ってカラー画像データを生成する画像読取
手段と、 前記カラー画像データを記憶する画像データ記憶手段
と、 前記カラー画像データにおける有彩色の画像データを検
出するカラーデータ検出手段と、 前記検出された有彩色カラー画像データを除く他の白黒
画像データにおける文字画像に基づいて当該原稿の方向
を判別する原稿方向判別手段と、 前記判別された原稿方向に応じて、前記カラー画像デー
タを回転する画像データ回転手段と、 を備えることを特徴とする画像入力装置。
1. An apparatus for inputting an image of a color document, comprising: image reading means for reading a document to generate color image data; image data storage means for storing the color image data; Color data detection means for detecting chromatic image data in the data, and document direction discrimination means for discriminating the direction of the document based on a character image in black and white image data other than the detected chromatic color image data And an image data rotating means for rotating the color image data in accordance with the determined document direction.
【請求項2】 前記カラーデータ検出手段は、 当該カラー画像データを輝度と2種類の色度とで表され
る色空間に変換する色空間変換手段と、 前記2種類の色度のうちいずれかの値が、それぞれにつ
いて設定された閾値を超える場合に、有彩色の画像デー
タであると判別する有彩色判別手段と、 を備えることを特徴とする請求項1記載の画像入力装
置。
2. The color data detecting unit, wherein the color image detecting unit converts the color image data into a color space represented by luminance and two types of chromaticity, and one of the two types of chromaticity. 2. The image input device according to claim 1, further comprising: a chromatic color determining unit that determines that the image data is chromatic image data when the value of the image data exceeds a threshold value set for each of the image data.
【請求項3】 前記原稿方向判別手段は、 前記検出された有彩色の画像データを白データに置き換
えて白黒画像データを生成するカラーデータ置換手段
と、 前記白黒画像データから文字画像を抽出する文字切り出
し手段と、 当該文字画像における局所的な形状の相対的位置もしく
はその隣接方向を文字特徴量として抽出する特徴量抽出
手段と、 所定文字の文字特徴量を予め記憶する特徴量記憶手段
と、 前記特徴量抽出手段により抽出された文字特徴量と前記
特徴量記憶手段に記憶された文字特徴量を比較する比較
手段と、 上記比較結果に基づいて前記文字画像の方向を認識する
認識手段と、 を備え、前記認識手段で認識された文字画像の方向を原
稿の方向と判別することを特徴とする請求項2記載の画
像入力装置。
3. The document direction discriminating means includes: color data replacing means for generating black and white image data by replacing the detected chromatic image data with white data; and a character for extracting a character image from the black and white image data. A cutout unit; a feature amount extracting unit that extracts a relative position of a local shape in the character image or an adjacent direction thereof as a character feature amount; a feature amount storage unit that stores a character feature amount of a predetermined character in advance; Comparison means for comparing the character feature quantity extracted by the feature quantity extraction means with the character feature quantity stored in the feature quantity storage means; and recognition means for recognizing the direction of the character image based on the comparison result. 3. The image input device according to claim 2, wherein the direction of the character image recognized by the recognition unit is determined as the direction of the document.
JP9026829A 1997-02-10 1997-02-10 Image input device Pending JPH10224600A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9026829A JPH10224600A (en) 1997-02-10 1997-02-10 Image input device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9026829A JPH10224600A (en) 1997-02-10 1997-02-10 Image input device

Publications (1)

Publication Number Publication Date
JPH10224600A true JPH10224600A (en) 1998-08-21

Family

ID=12204168

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9026829A Pending JPH10224600A (en) 1997-02-10 1997-02-10 Image input device

Country Status (1)

Country Link
JP (1) JPH10224600A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8805080B2 (en) 2011-06-29 2014-08-12 Fujitsu Limited Method of and device for identifying direction of characters in image block

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8805080B2 (en) 2011-06-29 2014-08-12 Fujitsu Limited Method of and device for identifying direction of characters in image block

Similar Documents

Publication Publication Date Title
US5629990A (en) Image processing system
KR0136039B1 (en) Duplicating apparatus having unit for recognizing special original
EP0675631B1 (en) Anti-counterfeiting device for use in an image-processing apparatus
KR0145763B1 (en) Image forming apparatus
US6185404B1 (en) Image processing apparatus and method for generating a control signal based on a discrimination of whether an input image includes a specific image
JPH0918707A (en) Image processing method and device, copying machine, scanner and printer mounting the device
JPH09274660A (en) Method, device for recognizing image, copy machine mounting the same and scanner
JPH0765120A (en) Image reader and image forming device equipped with the same
US6360028B1 (en) Image processing apparatus and method
JPH06268859A (en) Picture processing unit
JP3587009B2 (en) Image input device
JP3587008B2 (en) Image input device
JPH01316783A (en) Image processor
JPH10224600A (en) Image input device
JPH10224598A (en) Image input device
JP4050371B2 (en) Image processing device
JPH10224602A (en) Image input device
JPH10224601A (en) Image input device
JPH10224597A (en) Image input device
JPH10224599A (en) Image input device
JPH07143335A (en) Copy-inhibited original copying preventing device/method for color copying machine
JPH10224619A (en) Original discrimination device
JPH11213089A (en) Image processor and its method
JPH09130516A (en) Image processing unit recognizing top and bottom of original image
JPH08139916A (en) Image processor and image processing method