JPH03244094A - Character recognition device - Google Patents

Character recognition device

Info

Publication number
JPH03244094A
JPH03244094A JP2042046A JP4204690A JPH03244094A JP H03244094 A JPH03244094 A JP H03244094A JP 2042046 A JP2042046 A JP 2042046A JP 4204690 A JP4204690 A JP 4204690A JP H03244094 A JPH03244094 A JP H03244094A
Authority
JP
Japan
Prior art keywords
pattern
character
sub
input pattern
character direction
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
JP2042046A
Other languages
Japanese (ja)
Inventor
Hirohisa Goto
後藤 裕久
Yoshiyuki Yamashita
山下 義征
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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry 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 Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP2042046A priority Critical patent/JPH03244094A/en
Publication of JPH03244094A publication Critical patent/JPH03244094A/en
Pending legal-status Critical Current

Links

Landscapes

  • Character Input (AREA)

Abstract

PURPOSE:To obtain a character recognition device which is fast and small in size and provides good operability by providing a subpattern extracting means, a character direction decision means, a converting means, and a rotation direction decision means. CONSTITUTION:The subpattern extracting means 13 extracts the vertical subpattern and horizontal subpattern of an input pattern and the character direction decision means 20 decides whether the input pattern is written longitudinally or laterally, i.e. the character direction according to the extraction result. Then the converting means 15 extracts two different features from the input pattern and the rotation direction decision means 23 decides the angle of rotation of the character direction decision result outputted by the character direction decision means 20 according to the results obtained by discriminating the extracted features by a discriminating means 22 and decides the character direction of the input pattern. Therefore, a dictionary for four-directional matching need not be prepared and the storage capacity of a dictionary storage means 21 is reducible. Consequently, the character recognition device is reduced in size and the processing time may be short; and the processing speed can be increased and the operability is improved.

Description

【発明の詳細な説明】 (産業上の利用分野〉 本発明は、印刷文書等を光学的に読取る光学式文字読取
り装置(Optical Character Rea
der、以下OCRという)等における高速かつ小型で
、操作性の良い文字認識装置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION (Industrial Field of Application) The present invention relates to an optical character reading device that optically reads printed documents, etc.
The present invention relates to a high-speed, small-sized, and easy-to-operate character recognition device such as OCR (hereinafter referred to as OCR).

(従来の技術) 従来、このような分野の技術としては特開昭62−16
6479号公報に記載されるものがあった。
(Prior art) Conventionally, as a technology in this field, Japanese Patent Application Laid-Open No. 62-16
There was one described in Publication No. 6479.

近年、日本語情報処理システムの普及により、日本語印
刷文書を計算機に入力する要求が急速に高まり、入力の
高速化及び省力化のために、印刷漢字OCRの必要性が
急速に高まってきている。
In recent years, with the spread of Japanese information processing systems, the demand for inputting Japanese printed documents into computers has rapidly increased, and the need for printed kanji OCR has rapidly increased to speed up input and save labor. .

この印刷漢字OCRでは、文字認識装置が設けられ、そ
の文字認識装置によって印刷文書中の漢字等を読取り、
その読取った漢字等の文字パタンを識別することが必要
となる。
This printed kanji OCR is equipped with a character recognition device that reads kanji, etc. in a printed document, and
It is necessary to identify the character pattern of the read kanji.

ところで、印刷文書には、横書きの文書と、新聞や文庫
本等の縦書きの文書とがある。
By the way, printed documents include horizontally written documents and vertically written documents such as newspapers and paperback books.

例えば、印刷文書の一例として名刺を挙げると、第2図
(a−1>、  (a−2)〜(di、)(d−2>に
示すように、横書きの名刺(第2図(a−1>、(b−
王)〉と、縦書きの名刺(第2図(c−1)、  (d
−1>)とがある。さらに、名刺の置き方により、帳票
の形は同じでも、]−80°回転している場合がある。
For example, if we take a business card as an example of a printed document, as shown in Figure 2 (a-1>, (a-2) to (di,) (d-2>), horizontally written business cards (Figure 2 (a) -1>, (b-
King)> and vertical business cards (Fig. 2 (c-1), (d
-1>). Furthermore, depending on how the business card is placed, even if the form of the form is the same, it may be rotated by -80°.

例えば、第2図(a−1>を1−80°回転した状態が
第2図(b↑)であり、第2図(c−1,>を1−80
°回転した状態が第2図(d−1)である。また、第2
図(a−1,)、 (b−1>、 (c−1>、 (d
l)の各パタン例が、第2図(a−2>、12)、(c
−2>、(d−2)にそれぞれ示されている。ここで、
第2図(a−2>を基準にすると、同図(b−2)は1
−80°、同図(c−2>は270°、同図(d−2)
は90°、それぞれ時計方向に回転させたパタンになっ
ている。
For example, Fig. 2 (b↑) is the state in which Fig. 2 (a-1> is rotated by 1-80 degrees, and Fig. 2 (c-1,> is rotated by 1-80 degrees).
FIG. 2(d-1) shows the state rotated by .degree. Also, the second
Figures (a-1,), (b-1>, (c-1>, (d
Examples of each pattern of l) are shown in Fig. 2 (a-2>, 12) and (c
-2> and (d-2), respectively. here,
Based on Figure 2 (a-2>), Figure 2 (b-2) is 1
-80°, same figure (c-2> is 270°, same figure (d-2)
is a pattern rotated clockwise by 90 degrees.

従来の印刷漢字0CRJこおける文字認識装置では、光
電変換手段により読取った入力パタンをパタン記憶手段
に記憶し、特徴抽出手段により、パタン記憶手段に記憶
された入力パタンからその入力パタンの特徴を抽出する
。そして、識別手段により、特徴抽出手段で抽出された
特徴と、辞書記憶手段に記憶された辞書とを照合して入
力パタンの識別を行うようになっている。
In the conventional character recognition device for printed kanji 0CRJ, the input pattern read by the photoelectric conversion means is stored in the pattern storage means, and the feature extraction means extracts the characteristics of the input pattern from the input pattern stored in the pattern storage means. do. Then, the identification means identifies the input pattern by comparing the features extracted by the feature extraction means with a dictionary stored in the dictionary storage means.

このような文字認識装置では、第2図に示すように、印
刷文書には縦書きと横書きがあり、しかも帳票が180
°回転してセットされるおそれがあるような文書を認識
する場合、オペレータが帳票を見ながら、文字毎や帳票
毎にキーボード等で文字方向を指定しなければ、正しく
文字認識を行うことができなかっノ2゜ そこで、このような問題を解決するため、前記文献の技
術では、06.90°、180°、270°回転した4
種類の辞書を予め辞書記憶手段に記憶させておく。そし
て、入力パタンを前記4種類の辞書で認識し、それぞれ
の辞書で認識して得られた認識結果から、最も類似度の
高い結果が出力された辞書の方向を文字方向と判定し、
その判定結果に基づき文字の認識を行うようになってい
た。
In such a character recognition device, as shown in Figure 2, printed documents have vertical and horizontal writing, and forms have 180 characters.
°When recognizing a document that may be set in a rotated position, character recognition cannot be performed correctly unless the operator specifies the character direction for each character or form using a keyboard while looking at the form. Therefore, in order to solve such a problem, the technique of the above-mentioned document uses four
A dictionary of types is stored in a dictionary storage means in advance. Then, the input pattern is recognized with the four types of dictionaries, and from the recognition results obtained by each dictionary, the direction of the dictionary that outputs the result with the highest degree of similarity is determined to be the character direction,
Characters were recognized based on the determination results.

(発明が解決しようとする課題) しかしながら、上記構成の装置では、次のような課題が
あった。
(Problems to be Solved by the Invention) However, the apparatus with the above configuration has the following problems.

(a〉 1つの文字パタンに対し、0°、90″180
°、270°回転に対応する4回の識別を行うことが必
要となるため、文字認識処理に時間がかかるという問題
があった。
(a> 0°, 90″180 for one character pattern
Since it is necessary to perform identification four times corresponding to rotations of 270° and 270°, there is a problem in that character recognition processing takes time.

(b)  06.90°、180’ 、270’ とい
った4種類の辞書を用意しなければならないため、それ
らを記憶する辞書記憶手段のメモリ容量が非常に大きく
なってしまい、装置の大型化を招くという問題があった
(b) Since four types of dictionaries such as 06.90°, 180', and 270' must be prepared, the memory capacity of the dictionary storage means for storing them becomes extremely large, leading to an increase in the size of the device. There was a problem.

(c)  前記文献の技術では、文字方向を判定してそ
の判定結果に基づき文字の認識を行うため、オペレータ
が文字方向を文字毎や、帳票毎に指定する必要かなくな
り、それによって操作の煩雑化や処理時間がかかるとい
う問題を解決できる。しかし、前記文献の技術では、縦
書きや横書きの名刺を自動的に認識することはできても
、名刺以外の印刷文書等については認識することができ
ず、そのため装置としての汎用性が低く、技術的に十分
満足のゆくものではなかった。
(c) In the technology disclosed in the above document, the character direction is determined and character recognition is performed based on the determination result, so the operator does not need to specify the character direction for each character or for each form, thereby reducing the complexity of the operation. This solves the problem of processing time and processing time. However, although the technology disclosed in the above document can automatically recognize vertically or horizontally written business cards, it cannot recognize printed documents other than business cards, and as a result, the device has low versatility. It was not technically satisfactory.

本発明は前記従来技術が持っていた課題として、認識処
理に時間がかかる、装置が大型化する、汎用性がない等
といった点について解決した文字認識装置を提供するも
のである。
The present invention provides a character recognition device that solves the problems of the prior art, such as the recognition process taking a long time, the device becoming large, and lack of versatility.

(課題を解決するための手段) 本発明は前記課題を解決するために、読取られた入力パ
タンを記憶するパタン記憶手段と、前記パタン記憶手段
に記憶された入力パタンからその入力パタンの特徴を抽
出する特徴抽出手段と、辞書を記憶する辞書記憶手段と
、前記特徴抽出手段で抽出された特徴と前記辞書とを照
合して前記入力パタンの識別を行う識別手段とを、備え
た文字認識装置において、前記パタン記憶手段に記憶さ
れた入カバクンを複数の方向に走査して垂直サブパタン
及び水平サブパタンを抽出するサブパタン抽出手段と、
文字方向判定手段と、変換手段と、回転方向判定手段と
を設けたものである。
(Means for Solving the Problems) In order to solve the above problems, the present invention provides a pattern storage means for storing read input patterns, and a feature of the input pattern stored in the pattern storage means. A character recognition device comprising: a feature extraction means for extracting features; a dictionary storage means for storing a dictionary; and an identification means for identifying the input pattern by comparing the features extracted by the feature extraction means with the dictionary. sub-pattern extraction means for scanning the input pattern stored in the pattern storage means in a plurality of directions to extract vertical sub-patterns and horizontal sub-patterns;
The apparatus is provided with a character direction determining means, a converting means, and a rotation direction determining means.

ここで、文字方向判定手段は、前記サブパタン抽出手段
で抽出された垂直サブパタン及び水平ザブパタンの各線
幅を計算し、その両線幅の比と予め定めた線幅比基準値
とを比較して文字方向(例えば、横書き、縦書き〉を判
定する機能を有している。変換手段は、前記文字方向判
定手段の出力に基づいて特徴変換またはパタン変換を行
うことにより、前記パタン記憶手段に記憶された入力パ
タンから異なる2方向の特徴の抽出を行ってその抽出結
果を前記識別手段で識別させる機能を有している。また
、回転方向判定手段は、前記識別手段の出力に基づき、
前記文字方向判定手段の出力が所定角度(例えば、O′
もしくは180°)回転しているか否かを判定して前記
文字パタンの回転方向を判定する機能を有している。
Here, the character direction determining means calculates the line widths of the vertical sub-pattern and the horizontal sub-pattern extracted by the sub-pattern extracting means, and compares the ratio of both line widths with a predetermined line width ratio reference value to determine the character direction of the character. The conversion means has a function of determining the direction (for example, horizontal writing, vertical writing).The conversion means performs feature conversion or pattern conversion based on the output of the character direction determination means, thereby storing the text in the pattern storage means. The rotation direction determining means has a function of extracting features in two different directions from the input pattern and having the identification means identify the extraction results.Furthermore, the rotation direction determining means is configured to extract features in two different directions from the input pattern and identify the extraction results with the identification means.
The output of the character direction determining means is set at a predetermined angle (for example, O'
The character pattern has a function of determining whether the character pattern is rotated (or 180°) and determining the direction of rotation of the character pattern.

(作用〉 本発明によれば、以上のように文字認識装置を構成した
ので、帳票上の文字等が光電変換手段等で読取られると
、その読取られた入力パタンかパタン記憶手段に記憶さ
れる。すると、サブパタン抽出手段は、パタン記憶手段
に記憶された入力パタンを複数方向(例えば、水平及び
垂直方向等)に走査し、垂直サブパタン及び水平サブパ
タンを抽出してその抽出結果を文字方向判定手段に与え
る。文字方向判定手段では、抽出された垂直ザブパタン
及び水平サブパタンの各線幅を計算し、その垂直サブパ
タンの線幅と水平ザブパタンの線幅との比を求め、その
比と予め設定された線幅比基準値とを比較し、入力パタ
ンの文字方向(例えば、横書き、縦書き)を判定し、そ
の文字方向判定結果を変換手段及び回転方向判定手段に
与える。
(Operation) According to the present invention, since the character recognition device is configured as described above, when characters etc. on a form are read by the photoelectric conversion means etc., the read input pattern is stored in the pattern storage means. Then, the sub-pattern extraction means scans the input pattern stored in the pattern storage means in multiple directions (for example, horizontal and vertical directions), extracts vertical sub-patterns and horizontal sub-patterns, and applies the extraction results to the character direction determination means. The character direction determining means calculates the line width of each of the extracted vertical sub-patterns and horizontal sub-patterns, calculates the ratio of the line width of the vertical sub-pattern to the line width of the horizontal sub-pattern, and calculates the ratio between the line width of the vertical sub-pattern and the horizontal sub-pattern. The width ratio reference value is compared to determine the character direction (for example, horizontal writing, vertical writing) of the input pattern, and the character direction determination result is provided to the conversion means and rotation direction determination means.

変換手段は、文字方向判定結果に基づき、特徴抽出手段
で抽出される文字パタンの特徴71ヘリクスあるいは入
力パタン等を、所定角度回転することにより、パタン記
憶手段に記憶された入力パタンから異なる2方向の特徴
の抽出(例えば、横書きの場合は、回転させないパタン
の特徴抽出と↓80°回転したパタン用の特徴抽出、縦
書きの場合は、90°回転したパタン用の特徴抽出と2
70°回転したパタン用の特徴抽出)を行い、その抽出
結果を識別手段で識別させるように働く。回転方向判定
手段は、識別手段の識別結果に基づき、文字方向判定手
段から出力される横書きか縦書きかの文字方向判定結果
が、所定角度(例えば、0°もしくは380’)回転し
ているか否かを判定して入力パタンの回転方向を判定す
る。
The converting means converts the input pattern stored in the pattern storage means into two different directions by rotating the characteristic 71 helix or input pattern of the character pattern extracted by the feature extraction means by a predetermined angle based on the character direction determination result. Extraction of features (for example, in the case of horizontal writing, feature extraction for a pattern that is not rotated and feature extraction for a pattern rotated by 80 degrees, and for vertical writing, feature extraction for a pattern rotated by 90 degrees, and 2)
70° rotated pattern), and the extraction result is identified by the identification means. The rotation direction determining means determines whether the character direction determination result of horizontal writing or vertical writing outputted from the character direction determining means is rotated by a predetermined angle (for example, 0° or 380') based on the identification result of the identifying means. The direction of rotation of the input pattern is determined by determining whether

このように、文字方向判定手段と回転方向判定手段とで
、それぞれ文字方向を判定するため、1つの文字パタン
に対する識別回数が少なくなって、認識処理を短時間で
行えると共に、照合用の辞書の数も少なくて済み、それ
によって辞書記憶手段の容量の削減により、装置の小型
化が図れる。さらに、この装置は、名刺以外の印刷文書
等に対しても、処理可能であるため、汎用性の向上が図
れる。従って、前記課題を解決できるのである。
In this way, since the character direction determining means and the rotation direction determining means each determine the character direction, the number of times of identification for one character pattern is reduced, and the recognition process can be performed in a short time. The number of dictionary storage means can be reduced, and the capacity of the dictionary storage means can be reduced, thereby making it possible to downsize the device. Furthermore, since this device can process printed documents other than business cards, its versatility can be improved. Therefore, the above problem can be solved.

(実施例) 第1図は、本発明の一実施例を示す文字認識装置の機能
ブロック図である。
(Embodiment) FIG. 1 is a functional block diagram of a character recognition device showing an embodiment of the present invention.

この機能ブロック図を説明する前に、先ず本実施例の原
理を説明する。
Before explaining this functional block diagram, the principle of this embodiment will be explained first.

印刷文書に使用される活字の大部分を占める、例えば明
朝体について、その線幅に着目し、後述するサブパタン
抽出方法を用いて得た水平サブパタンの線幅と垂直サブ
パタンの線幅との比について測定を行った結果を第1表
に示す。
Focusing on the line width of Mincho fonts, which account for most of the type used in printed documents, we calculated the ratio of the line width of horizontal sub-patterns to the line width of vertical sub-patterns, which was obtained using the sub-pattern extraction method described later. The results of the measurements are shown in Table 1.

0 第11表 水平サブパタン及び垂直サブパタンの 線幅比測定結果 第3図(a)〜(f>は、明朝体「亜」の垂直サブパタ
ンと水平サブパタンを示す図である。第1表の測定では
、第3図(a>に示す明朝体の「亜」の文字について、
活字の大きさ8.12、及び]6ポインI・を対象に、
分解能37.5μmのイメージスキャンにより得られf
s2値パタンについて水平サブパタン及び垂直サブパタ
ンを抽出し、水平サブパタン線幅及び垂直サブパタン線
幅をそれぞれ求めた。
0 Table 11 Measurement results of line width ratio of horizontal sub-pattern and vertical sub-pattern Now, regarding the character “A” in the Mincho typeface shown in Figure 3 (a>),
For type size 8.12 and ]6 point I,
Obtained by image scanning with a resolution of 37.5 μm f
A horizontal sub-pattern and a vertical sub-pattern were extracted from the s binary pattern, and the horizontal sub-pattern line width and vertical sub-pattern line width were determined, respectively.

水平サブパタン及び垂直ザブパタンの抽出方法は、後述
する(コ−)式を用いて入力パタンの線幅を求め、該入
力パタンを水平及び垂直方向に走査して検出した文字線
の断面の中から、その断面長が該入力パタンの線幅より
も十分に長い断面を抽出して行う。
The method for extracting horizontal sub-patterns and vertical sub-patterns is to obtain the line width of an input pattern using the (Co) formula described later, and then scan the input pattern in the horizontal and vertical directions to find a cross-section of the character line. This is performed by extracting a cross section whose cross-sectional length is sufficiently longer than the line width of the input pattern.

第3図(a)に示す明朝体の横書きの「亜」の垂直サブ
パタン例が第3図(b)に、及び水平サブパタン例が第
3図(C)にそれぞれ示されている。また、第3図(a
>、(b)、(c)に対応する縦書きのパタン例が第3
図(d)、(e)(f)にそれぞれ示されている。すな
わち、第3図(d)は、縦書きの明朝体の「亜」であり
、第3図(a)の文字パタンを反時計方向に90°回転
させた状態となっている。従って、第3図(d)圭1− 2 の垂直サブパタンを示す第3図(e)と水平サブパタン
を示す第3図(f>とは、それぞれ第3図(c)、(b
)のパタンを反時計方向に90°回転させたものと同一
のパタンとなる。
An example of the vertical sub-pattern of the horizontally written "A" in the Mincho font shown in FIG. 3(a) is shown in FIG. 3(b), and an example of the horizontal sub-pattern is shown in FIG. 3(C). Also, Figure 3 (a
The vertical writing pattern examples corresponding to >, (b), and (c) are shown in the third example.
These are shown in figures (d), (e) and (f), respectively. That is, FIG. 3(d) shows the vertically written Mincho font "A", which is obtained by rotating the character pattern of FIG. 3(a) by 90 degrees counterclockwise. Therefore, FIG. 3(d) and FIG. 3(e) showing the vertical sub-pattern of Kei 1-2 and FIG. 3(f> showing the horizontal sub-pattern) are respectively shown in FIG.
) is rotated 90° counterclockwise to create the same pattern.

第工表から明らかなように、明朝体は、水平サブパタン
線幅と垂直サブパタン線幅の大きさが大きく異なる。従
って、横書き文字の線幅比(−垂直サブパタン線幅/水
平サブパタン線幅〉の大きさは、2.8以上となってい
る。同様に、縦書き文字の線幅比(−垂直サブパタン線
幅/水平ザブパタン線幅〉は、0.36以下となってい
る。
As is clear from the table, the horizontal sub-pattern line width and the vertical sub-pattern line width of Mincho fonts differ greatly. Therefore, the line width ratio of horizontally written characters (-vertical sub-pattern line width/horizontal sub-pattern line width) is 2.8 or more.Similarly, the line width ratio of vertically written characters (-vertical sub-pattern line width) is 2.8 or more. /horizontal subpattern line width> is 0.36 or less.

以上のことから理解できるように、入力パタンの線幅比
(−垂直サブパタン線幅/水平サブパタン線幅)の大き
さにより、入力パタンか横書きが、縦書きかを判断する
ことが可能となる。
As can be understood from the above, it is possible to determine whether the input pattern is horizontal writing or vertical writing, depending on the magnitude of the line width ratio (-vertical sub-pattern line width/horizontal sub-pattern line width) of the input pattern.

次に、以上のような原理に基づき構成された第1図の文
字認識装置の構成を説明する。
Next, the configuration of the character recognition device shown in FIG. 1, which is configured based on the above principle, will be explained.

この文字認識装置は、入力帳票上の文字や図形等を光電
変換により電気信号に変換して文字図形パタンを出力す
る光電変換手段上を有し、その光電変換手段lの出力側
には、ランダム・アクセスメモリ(RAM)等で構成さ
れるパタン記憶手段2と、線幅計算手段3とが接続され
ている。パタン記憶手段2は、光電変換手段上から出力
される文字図形パタンの例えば1パタン分を記憶するも
ので、その出力側には特徴抽出手段10が接続されてい
る。線幅計算手段3は、光電変換手段1から出力された
文字図形パタンを受けると入力パタンの線幅Wを計算す
る回路であり、その出力側には特徴抽出手段lOが接続
されている。
This character recognition device has a photoelectric conversion means that converts characters, figures, etc. on an input form into electrical signals by photoelectric conversion and outputs a character figure pattern. - A pattern storage means 2 composed of an access memory (RAM) or the like is connected to a line width calculation means 3. The pattern storage means 2 stores, for example, one character/figure pattern outputted from the photoelectric conversion means, and the feature extraction means 10 is connected to the output side thereof. The line width calculation means 3 is a circuit that calculates the line width W of the input pattern upon receiving the character/figure pattern output from the photoelectric conversion means 1, and the feature extraction means 1O is connected to the output side thereof.

特徴抽出手段10は、パタン記憶手段2から出力された
大カパタンの特徴を抽出して2種類の特徴マトリクスを
出力するもので、文字枠検出手段↓1、文字枠分割決定
手段12、サブパ゛タン抽出手段13、特徴マトリクス
抽出手段14及び特徴変換手段15より構成されている
。文字枠検出手段1工は、パタン記憶手段2内の文字パ
タンに外接する文字枠を検出し、その検出結果を文字枠
分割決定手段12へ出力する機能を有している。文字枠
分割決定手段12は、検出された文字枠の向上3 4 部領域をMXNの領域(但し、M、Nは整数であり、本
実施例では、例えばM=N=5とする)に分割するため
のX軸(文字枠の水平方向)、Y軸(文字枠の垂直方向
)上の分割点座標を決定し、その決定結果を特徴マトリ
クス抽出手段14へ出力する機能を有している。
The feature extraction means 10 extracts the features of the large pattern output from the pattern storage means 2 and outputs two types of feature matrices. It is composed of extraction means 13, feature matrix extraction means 14, and feature conversion means 15. The character frame detection means 1 has a function of detecting a character frame circumscribing a character pattern in the pattern storage means 2 and outputting the detection result to the character frame division determining means 12. The character frame division determining means 12 divides the detected character frame improvement region into MXN regions (M and N are integers, and in this embodiment, for example, M=N=5). It has a function of determining division point coordinates on the X-axis (horizontal direction of the character frame) and Y-axis (vertical direction of the character frame) for the purpose of the character frame, and outputting the determination results to the feature matrix extraction means 14.

サブパタン抽出手段13は、パタン記憶手段2Gこ記憶
された入力パタンを複数の方向に走査(例えば、垂直走
査、水平走査、右斜め45°走査、及び左斜め45°走
査)して、垂直サブパタンVSP、水平サブパタンH3
P、右斜めサブパタンR3P、及び左斜めサブパタンL
SPをそれぞれ抽出し、その抽出結果を特徴マトリクス
抽出手段14へ出力する機能を有している。特徴マトリ
クス抽出手段14は、文字枠分割決定手段12から出力
される分割点座標に基づき、ザブパタン抽出手段↑3の
出力から特徴マトリクスを抽出し、その抽出結果を特徴
変換手段1−5に与える機能を有している。特徴変換手
段15は、入力された特徴マトリクスを所定方向に回転
して2種類の特徴マトリクスを出力する機能を有してい
る。
The sub-pattern extraction means 13 scans the input pattern stored in the pattern storage means 2G in a plurality of directions (for example, vertical scanning, horizontal scanning, 45° diagonal scanning to the right, and 45° diagonal scanning to the left) to obtain a vertical sub-pattern VSP. , horizontal sub-pattern H3
P, right diagonal sub-pattern R3P, and left diagonal sub-pattern L
It has a function of extracting each SP and outputting the extraction results to the feature matrix extraction means 14. The feature matrix extraction means 14 has a function of extracting a feature matrix from the output of the sub pattern extraction means ↑3 based on the division point coordinates output from the character frame division determination means 12, and providing the extraction result to the feature conversion means 1-5. have. The feature converter 15 has a function of rotating the input feature matrix in a predetermined direction and outputting two types of feature matrices.

サブパタン抽出手段の出力側には、文字方向判定手段2
0が接続され、その文字方向判定手段20の出力側が、
特徴変換手段1−5及び回転方向判定手段23に接続さ
れている。さらに、辞書記憶手段2丁が設けられ、その
辞書記憶手段21と特徴変換手段1−5が識別手段22
に接続され、その識別手段22が回転方向判定手段23
に接続されている。
On the output side of the sub-pattern extracting means, a character direction determining means 2 is provided.
0 is connected, and the output side of the character direction determining means 20 is
It is connected to the feature conversion means 1-5 and the rotation direction determination means 23. Furthermore, two dictionary storage means are provided, and the dictionary storage means 21 and the feature conversion means 1-5 are connected to the identification means 22.
The identification means 22 is connected to the rotation direction determination means 23
It is connected to the.

文字方向判定手段20は、サブパタン抽出手段13の出
力から入力パタンの文字方向を判定して文字方向判定結
果を特徴変換手段15及び回転方向判定手段23へ出力
する機能を有している。辞書記憶手段21−は、例えば
横書き用の照合辞書マスクを記憶するもので、リード・
オンリ・メモリ(ROM)等で構成されている。識別手
段22は、辞書記憶手段2]−の内容を参照し、特徴変
換手段15から出力される2種類の1寺徴71〜リクス
に対する辞書マスクのカテゴリ名と距離(類似度)を回
転方向判定手段23へ出力する機能を有してい5 1.6 る。回転方向判定手段23は、識別手段22の出力を記
憶するバッファ等の記憶手段を有し、識別手段22の出
力りこ基づき、文字方向判定手段20から出力された文
字方向判定結果が所定角度(例えば、○°もしくは工8
0°〉回転しているか否かを判定して入力パタンの回転
方向を判定し、文字名及び文字方向をそれぞれ出力する
機能を有している。
The character direction determining means 20 has a function of determining the character direction of the input pattern from the output of the sub-pattern extracting means 13 and outputting the character direction determination result to the feature converting means 15 and the rotation direction determining means 23. The dictionary storage means 21- stores, for example, a collation dictionary mask for horizontal writing, and is used for reading and writing.
It consists of only memory (ROM) and the like. The identification means 22 refers to the contents of the dictionary storage means 2]- and determines the rotation direction based on the category name and distance (similarity) of the dictionary mask for the two types of one-temple signs 71 to rikus output from the feature conversion means 15. It has a function of outputting to the means 23. The rotation direction determining means 23 has a storage means such as a buffer for storing the output of the identifying means 22, and based on the output rotation of the identifying means 22, the character direction determination result output from the character direction determining means 20 is rotated at a predetermined angle (e.g. , ○° or engineering 8
It has a function of determining whether the input pattern is rotated by 0°>, determining the direction of rotation of the input pattern, and outputting the character name and character direction, respectively.

次に、以上のように構成される文字認識装置の動作を、
第4図(a)〜(e)を参照しつつ説明する。なお、第
4図(a)〜(e>は、2値パタンと各サブパタンとを
説明するための図である。
Next, we will explain the operation of the character recognition device configured as above.
This will be explained with reference to FIGS. 4(a) to 4(e). Note that FIGS. 4(a) to 4(e) are diagrams for explaining the binary pattern and each sub-pattern.

第上図において、帳票上の文字、図形に対応した光信号
が光電変換手段■に入力されると、光電変換手段上は、
入力された光信号を電気信号に変換して文字図形パタン
をパタン記憶手段2及び線幅計算手段3へ出力する。パ
タン記憶手段2は、光電変換手段1から出力された文字
図形パタンの例えば↑パタン分を記憶する。
In the above figure, when the optical signal corresponding to the characters and figures on the form is input to the photoelectric conversion means ■, the photoelectric conversion means
The input optical signal is converted into an electrical signal and a character/figure pattern is output to the pattern storage means 2 and the line width calculation means 3. The pattern storage means 2 stores, for example, the ↑ pattern of the character/figure patterns output from the photoelectric conversion means 1.

線幅計算手段3は、光電変換手段↓から出力された文字
図形パタンを入力すると、その入力パタンの線幅Wを計
算し、その計算結果をサブパタン抽出手段13及び特徴
マトリクス抽出手段14へ出力する。
When the line width calculation means 3 receives the character/figure pattern outputted from the photoelectric conversion means ↓, it calculates the line width W of the input pattern, and outputs the calculation result to the subpattern extraction means 13 and the feature matrix extraction means 14. .

この線幅計算手段3は、例えば公知の画像処理用フィル
タ回路と同様にシフトレジスタ構成となっており、次式
に示すような公知の近似式を用いて線幅Wを計算する。
The line width calculation means 3 has a shift register configuration, for example, similar to a known image processing filter circuit, and calculates the line width W using a known approximate expression as shown in the following equation.

W−1/(1−(Q/A)+    ・・・・・・(1
)この〈1〉式において、Qは(2x2)の窓(Wln
dOw;方形領域〉の全ての点が黒点となる点くこれを
4黒点という〉の個数、Aは全黒点の個数である。線幅
計算手段3では、これら4黒点の個数Q及び全黒点の個
数Aを計数し、その計数結果から(1〉式に従って線幅
Wを演算(こより求める。
W-1/(1-(Q/A)+ ・・・・・・(1
) In this formula <1>, Q is a (2x2) window (Wln
dOw is the number of points in which all points in the rectangular area are black points, which is called 4 black points, and A is the total number of black points. The line width calculating means 3 counts the number Q of these four black dots and the number A of all black dots, and calculates the line width W from the counting results according to formula (1).

次に、特徴抽出手段10において、文字枠検出手段11
により、パタン記憶手段2内の文字パタ 7 )8 ンに外接する文字枠が検出される。文字枠分割決定手段
1−2では、検出された文字枠の内部領域をMXN (
例えば、M=N=5>の領域に分割するためのX軸、Y
軸上の分割点座標を決定し、その決定結果を特徴マトリ
クス抽出手段14へ出力する。
Next, in the feature extraction means 10, the character frame detection means 11
As a result, a character frame circumscribing the character pattern in the pattern storage means 2 is detected. The character frame division determining means 1-2 divides the internal area of the detected character frame into MXN (
For example, the X axis, Y axis for dividing into regions of M=N=5>
The coordinates of the division points on the axis are determined, and the determination results are output to the feature matrix extraction means 14.

一方、サブパタン抽出手段13では、パタン記憶手段2
に記憶された入力パタンに対し、垂直走査を全面に行っ
て黒点(文字線部を黒点とする)の連続する長さと、線
幅計算手段3により計算された線幅Wとの関係により、
垂直サブパタンVSPを抽出する。同様に、サブパタン
抽出手段13では、水平走査によって水平サブパタンH
S Pを、右斜め45°走査によって右斜めサブパタン
R3Pを、左斜め45°走査によって左斜めサブパタン
LSPを、それぞれ抽出する。
On the other hand, in the sub-pattern extraction means 13, the pattern storage means 2
Based on the relationship between the length of continuous black dots (character line portions are black dots) by performing vertical scanning over the input pattern stored in the input pattern and the line width W calculated by the line width calculation means 3,
Extract the vertical sub-pattern VSP. Similarly, the sub-pattern extracting means 13 extracts a horizontal sub-pattern H by horizontal scanning.
A right diagonal sub-pattern R3P is extracted by scanning S P diagonally at 45 degrees to the right, and a left diagonal sub-pattern LSP is extracted by scanning S P diagonally at 45 degrees to the left.

このようにして抽出されたサブパタンの例が第4図(a
)〜(e)に示されている。第4図(a)は外接する文
字枠F内の2値パタンからなる原パタンであり、このよ
うな原パタンから得られた垂直ヅフ゛パタンか第4図(
b)に、水平サブパタンが第4図(C)に、右斜めサブ
パタンが第4図(d)に、左斜めサブパタンか第4図(
e)に、それぞれ示されている。このようなサブパタン
は、特徴マトリクス抽出手段14及び文字方向判定手段
20へ与えられる。
An example of sub-patterns extracted in this way is shown in Figure 4 (a
) to (e). Figure 4(a) is an original pattern consisting of a binary pattern within the circumscribed character frame F, and the vertical double pattern obtained from such an original pattern is shown in Figure 4(a).
b), the horizontal sub-pattern is shown in Fig. 4(C), the right diagonal sub-pattern is shown in Fig. 4(d), and the left diagonal sub-pattern is shown in Fig. 4(d).
e), respectively. Such sub-patterns are provided to the feature matrix extraction means 14 and the character direction determination means 20.

特徴マトリクス抽出手段14は、文字枠分割決定手段1
2によって決定された分割点座標に基づき、垂直、水平
、右斜め及び左斜めの各サブパタン(VSP、H8P、
R3P及びLSP)におけるパタン記憶手段2上の文字
枠領域を、MXNの領域に分割し、得られた各分割領域
内の黒点数Bjjを計数する。この黒点数Bijと、線
幅計算手段3で求めた線幅Wとを用い、次の式(2)に
よって文字線長Lijを示す特徴を計算し、M×NX4
次元の特徴マトリクスを作成する。
The feature matrix extraction means 14 includes the character frame division determination means 1
Based on the dividing point coordinates determined in step 2, vertical, horizontal, right diagonal, and left diagonal sub-patterns (VSP, H8P,
The character frame area on the pattern storage means 2 in R3P and LSP) is divided into MXN areas, and the number of black dots Bjj in each of the resulting divided areas is counted. Using this number of black dots Bij and the line width W obtained by the line width calculation means 3, a feature indicating the character line length Lij is calculated by the following formula (2), and M×NX4
Create a dimensional feature matrix.

Lij=Bij/W      ・・・・・・(2)さ
らに、この特徴マトリクス抽出手段14では、1つ 0 垂直サブパタンVSPの特徴マトリクスに対しては文字
枠FのY軸方向の長さΔYで、水平サブパタンH3Pの
特徴マトリクスに対してはX軸方向の長さ△Xで、右斜
めサブパタンR3P及び左斜めサブパタンLSPの特徴
マトリクスに対しては(△X+△Y)/2で、それぞれ
正規化を行い、文字の大きさによる変動を吸収したMX
NX4次元の特徴マトリクスを作成する。
Lij=Bij/W (2) Furthermore, this feature matrix extraction means 14 extracts 1 0. For the feature matrix of the vertical sub-pattern VSP, the length ΔY of the character frame F in the Y-axis direction is The feature matrix of the horizontal sub-pattern H3P is normalized by the length △X in the X-axis direction, and the feature matrix of the right diagonal sub-pattern R3P and left diagonal sub-pattern LSP is normalized by (△X + △Y)/2. MX that absorbs fluctuations due to font size
Create a NX4-dimensional feature matrix.

文字方向判定手段20は、線幅計算手段3と同様に、サ
ブパタン抽出手段]−3に格納されている垂直サブパタ
ンを走査し、垂直サブパタンの4黒点数Qvと全黒点数
Avを求め、(1−〉式を用いて垂直サブパタンの線幅
Wvを求める。さらに、サブパタン抽出手段13に格納
されている水平サブパタンを走査し、その水平サブパタ
ンの4黒点数Qhと全黒点数Ahを求め、(1)式を用
いて水平サブパタンの線幅Whを求める。そして、垂直
サブパタン及び水平サブパタンの線幅比Wv/whを計
算し、その線幅比Wv/Whと、予め設定された線幅比
基準値wthとを比較し、次の(3〉式、(4〉式を満
足するか否かの判定を行W v /W h  ≧wth
     ・・・・・・(3)Wv/Wh  <Wt 
h     ・=−(4)(本実施例では、例えばWt
 h= 1 >即ち、文字方向判定手段20では、(3
)式を満足すれば、文字方向を横書きと判定して横書き
の文字方向判定結果を、(4)式を満足ずれは、文字方
向を縦書きと判定して縦書きの文字方向判定結果を、特
徴変換手段↑5及び回転方向判定手段23へ出力する。
Similarly to the line width calculation means 3, the character direction determination means 20 scans the vertical sub-pattern stored in the sub-pattern extraction means]-3, calculates the number of four black dots Qv and the total number of black dots Av of the vertical sub-pattern, -> Find the line width Wv of the vertical sub-pattern using the formula.Furthermore, scan the horizontal sub-pattern stored in the sub-pattern extraction means 13, find the number Qh of four black dots and the number Ah of all black dots of the horizontal sub-pattern, and calculate (1 ) formula to find the line width Wh of the horizontal sub-pattern.Then, calculate the line width ratio Wv/wh of the vertical sub-pattern and the horizontal sub-pattern, and calculate the line width ratio Wv/Wh and the preset line width ratio reference value. wth and determines whether the following expressions (3> and (4) are satisfied or not: W v /W h ≧wth
・・・・・・(3) Wv/Wh <Wt
h ・=−(4) (in this example, for example, Wt
h= 1 > In other words, the character direction determining means 20 determines (3
) If the formula is satisfied, the character direction is determined to be horizontal writing, and the character direction determination result for horizontal writing is determined.If the formula (4) is satisfied, the character direction is determined to be vertical writing, and the character direction determination result for vertical writing is determined. It is output to the feature conversion means ↑5 and the rotation direction determination means 23.

特徴変換手段圭5は、文字方向判定手段20から出力さ
れた文字方向判定結果が横書きの場合、特徴マトリクス
抽出手段14から入力した各特徴マトリクス(f IH
1]−1−1MXN>と、各特徴マトリクスを180°
回転した特徴マトリクス(f21.i−111−1lと
を、識別手段22へ出力する。また、文字方向判定手段
20から出力された文字方向判定結果が縦書きの場合、
特徴変換手段15では、先ず、特徴マトリクス抽出手段
J4から出力された特徴マトリクスについて、垂直特徴
マトリクスと水平特徴マトリクスを入れ換えると共に、
右斜め特徴マトリクスと左斜め特徴マトリクスを入れ換
える。次に、入れ換え後の各特徴マトリクスを時計方向
に90°回転させた特徴マトリクス(f 1;、1−1
9MXN >と、270°回転させた特徴マトリクス(
f 2 H、]−:l−MXN)とを、識別手段22へ
出力する。
When the character direction determination result outputted from the character direction determination means 20 is horizontal writing, the feature conversion means Kei 5 converts each of the characteristic matrices (f IH
1]-1-1MXN> and each feature matrix by 180°
The rotated feature matrix (f21.i-111-1l) is output to the identification means 22.Furthermore, if the character direction determination result output from the character direction determination means 20 is vertical writing,
The feature conversion means 15 first replaces the vertical feature matrix and the horizontal feature matrix with respect to the feature matrix output from the feature matrix extraction means J4, and
Swap the right diagonal feature matrix and the left diagonal feature matrix. Next, a feature matrix (f 1;, 1-1
9MXN > and the feature matrix rotated by 270° (
f 2 H,]-:l-MXN) is output to the identification means 22.

識別手段22は、特徴変換手段15から出力された2種
類の特徴マトリクスの内、先ず、工種類の特徴マトリク
スf11と、辞書記憶手段214こ記憶された照合辞書
マスクg・どの間に、次の(5〉式で定義される距離(
類似度〉Dlllを適用し、この距離Dmが最小の値と
なる辞書マスクのカテゴリ名C1と距離D1を、回転方
向判定手段23へ出力する。
Of the two types of feature matrices outputted from the feature conversion means 15, the identification means 22 first selects the feature matrix f11 of the work type and the matching dictionary mask g stored in the dictionary storage means 214. (5> Distance defined by formula (
Similarity>Dlll is applied, and the category name C1 and distance D1 of the dictionary mask for which this distance Dm is the minimum value are output to the rotation direction determining means 23.

同様に、識別手段22では、もう工種類の特徴マトリク
スf21と、辞書記憶手段2]−に記憶された照合辞書
マスクg・どの距離を求め、(5)式で求めた距離Dl
llが最小となる辞書マスクのカテゴリ名C2と距離D
2を、回転方向判定手段23へ出力する。
Similarly, the identification means 22 calculates the feature matrix f21 of the type of work and the matching dictionary mask g stored in the dictionary storage means 2]-, and calculates the distance Dl calculated by equation (5).
Category name C2 and distance D of the dictionary mask that minimizes ll
2 is output to the rotation direction determining means 23.

回転方向判定手段23は、バッファ等の記憶手段を有し
ており、識別手段22から出力された2種類のカテゴリ
名C1,C2と距離Di 、C2を格納し、距離の比較
を行い、距離の小さい方のカテゴリ名を文字名として出
力すると共(、こ、そのカテゴリ名を得た特徴マトリク
スの回転方向を文字方向として出力する。
The rotational direction determining means 23 has a storage means such as a buffer, stores the two category names C1, C2 and the distances Di, C2 output from the identifying means 22, compares the distances, and calculates the distance. The smaller category name is output as a character name, and the rotation direction of the feature matrix from which the category name was obtained is output as the character direction.

即ち、カテゴリ名C2は、カテゴリ名C1に対して18
0°回転した特徴マトリクスから得た結3 果である。回転方向判定手段23では、このカテゴリ名
C1かC2かを判定した後、文字方向判定手段20から
出力された横書きか、縦書きかの文字方向判定結果に基
づき、文字が0°、90°、↓80°、270°のどの
方向になっているかを判定し、その判定結果を前記の文
字名と共に文字方向として出力する。これらの出力は、
例えば′CRT等の表示部で表示されたり、プリンタ等
で印字される。
In other words, the category name C2 is 18
These are the results obtained from the feature matrix rotated by 0°. After determining whether the category name is C1 or C2, the rotation direction determination means 23 determines whether the character is 0°, 90°, or ↓It is determined whether the direction is 80° or 270°, and the determination result is output as the character direction along with the character name. These outputs are
For example, it may be displayed on a display unit such as a CRT, or printed on a printer or the like.

以上のように、本実施例では次のような利点を有してい
る。
As described above, this embodiment has the following advantages.

本実施例では、サブパタン抽出手段13により、入力パ
タンに対する垂直サブパタンと水平ザブパタンを抽出し
、その抽出結果に基づき、文字方向判定手段20により
、入力パタンか縦書きか、横書きかの文字方向を判定す
る。この文字方向判定結果に基づき、特徴変換手段15
では、入力パタンから異なる2つの特徴抽出を行い、そ
の抽出した2種類の特徴マトリクスを識別手段22へ与
える。識別手段22では、抽出された2種類の特徴4 マトリクスを照合辞書マスクと照合して識別処理を行う
。回転方向判定手段23では、識別手段22からの識別
結果Gこ基づき、文字方向判定手段20から出力される
文字方向判定結果に対して0゜及び↑80°回転してい
るか否かを判定し、入力パタンの文字方向を判定する。
In this embodiment, the sub-pattern extracting means 13 extracts vertical sub-patterns and horizontal sub-patterns for the input pattern, and based on the extraction results, the character direction determining means 20 determines the character direction of the input pattern, whether it is vertical writing or horizontal writing. do. Based on this character direction determination result, the feature conversion means 15
Now, two different features are extracted from the input pattern, and the extracted two types of feature matrices are provided to the identification means 22. The identification means 22 performs identification processing by comparing the extracted two types of feature 4 matrices with the matching dictionary mask. The rotation direction determining means 23 determines whether or not the character is rotated by 0° and ↑80° with respect to the character direction determination result output from the character direction determining means 20, based on the identification result G from the identifying means 22, Determine the character direction of the input pattern.

これにより、高速かつ小型で、操作性の良い文字認識装
置が実現できる、 すなわち、本実施例では、文字方向判定手段20により
、入力パタンに対する垂直サブパタンの線幅Wvと水平
サブパタンの線幅Whとの比に基づいて縦書きか、横書
きかの文字方向を判定する。
As a result, a character recognition device that is fast, compact, and easy to operate can be realized. That is, in this embodiment, the character direction determining means 20 determines the line width Wv of the vertical sub-pattern and the line width Wh of the horizontal sub-pattern with respect to the input pattern. The character direction (vertical or horizontal writing) is determined based on the ratio of .

これにより、0°、90°、180°、270゜の4方
向のうち、互いに180°異なる2方向に限定される。
As a result, out of the four directions of 0°, 90°, 180°, and 270°, the angle is limited to two directions that are different from each other by 180°.

さらに、特徴変換手段]5により、異なる2つの特徴抽
出を行い、その抽出された特徴を識別手段22て識別し
た後、回転方向判定手段2B4こより、前記2方向に限
定された識別結果を比較して互いに180°異なる2方
向から、上方向に文字方向を決定している。そのため、
従来5 6 のように、0°、90°、工80°、270°の4方向
の照合辞書マスクを用意する必要がなく、しかも識別手
段22による文字認識を、従来の4回に比べ2回しか行
わないので、処理時間が少なくて済み、高速かつ小型の
文字認識装置を実現できる。
Further, the feature converting means] 5 extracts two different features, and the extracted features are identified by the identifying means 22, and then the rotation direction determining means 2B4 compares the identification results limited to the two directions. The character direction is determined upward from two directions that are 180° different from each other. Therefore,
There is no need to prepare matching dictionary masks in four directions of 0°, 90°, 80°, and 270° as in the conventional 5 6 , and character recognition by the identification means 22 is performed twice compared to the conventional 4 times. Since only a small amount of processing is required, processing time is reduced, and a high-speed and compact character recognition device can be realized.

また、本実施例では、従来のような名刺以外の帳票に対
する認識処理も可能となるので、オペレータが文字毎や
、帳票毎に、文字方向を指定する必要がなく、汎用性が
あり、操作性の良い文字認識装置を実現できる。
Furthermore, in this embodiment, it is possible to recognize documents other than business cards as in the past, so there is no need for the operator to specify the character direction for each character or for each document, resulting in versatility and ease of use. A good character recognition device can be realized.

なお、本発明は、図示の実施例に限定されず、種々の変
形が可能である。その変形例としては、例えば次のよう
なものがある。
Note that the present invention is not limited to the illustrated embodiment, and various modifications are possible. Examples of such modifications include the following.

(i) 上記実施例では、サブパタン抽出手段1−3に
より、入力パタンからサブパタンを抽出し、そのサブパ
タンから特徴マトリクス抽出手段14及び特徴変換手段
15によって抽出した特徴マトリクスを変換し、回転方
向判定手段23に対する回転方向判定用の特徴を生成し
ているが、他の方法で特徴を抽出するようにしても良い
。例えば、パタン記憶手段2の出力側にパタン変換手段
を設け、そのパタン変換手段の出力側を文字枠検出手段
1−1及びサブパタン抽出手段上3に接続し、文字方向
判定手段20から出力される文字方向判定結果に基づき
、該パタン変換手段によって入力パタンを所定角度回転
した後、その回転結果をサブパタン抽出手段13に与え
ることにより、特徴抽出を行うようにしても、上記実施
例とほぼ同様の利点が得られる。
(i) In the above embodiment, the sub-pattern extracting means 1-3 extracts a sub-pattern from the input pattern, the feature matrix extracted from the sub-pattern by the feature matrix extracting means 14 and the feature converting means 15 is converted, and the rotation direction determining means Although the features for determining the rotation direction for 23 are generated, the features may be extracted using other methods. For example, a pattern conversion means is provided on the output side of the pattern storage means 2, the output side of the pattern conversion means is connected to the character frame detection means 1-1 and the sub-pattern extraction means 3, and the output from the character direction determination means 20 is Even if feature extraction is carried out by rotating the input pattern by a predetermined angle by the pattern converting means based on the character direction determination result and then giving the rotation result to the sub-pattern extracting means 13, the result is almost the same as in the above embodiment. Benefits can be obtained.

(ii)  Jz記記構内線幅計算手段3、特徴抽出手
段10、文字方向判定手段20、識別手段22、及び回
転方向判定手段23等は、個別回路で構成する以外に、
計算機によるプログラム制御等tこより実行するように
しても良い。
(ii) The Jz notation premises line width calculation means 3, the feature extraction means 10, the character direction determination means 20, the identification means 22, the rotation direction determination means 23, etc. are configured by individual circuits,
It may also be executed by computer program control or the like.

(発明の効果〉 以上詳細に説明したように、本発明によれば、サブパタ
ン抽出手段により、入力パタンの垂直ザブパタンと水平
サブパタンを抽出し、その抽出結果に基づき、文字方向
判定手段によって人カバタフ ンが、例えば縦書きか、横書きかの文字方向を判定する
ようにしたので、例えば文字方向が0°、90°、18
0°、270°の4方向のうち、互いに180°異なる
2方向の文字方向が的確に判定できる。
(Effects of the Invention) As described above in detail, according to the present invention, the sub-pattern extracting means extracts the vertical sub-pattern and the horizontal sub-pattern of the input pattern, and based on the extraction results, the character direction determining means extracts the vertical sub-pattern and the horizontal sub-pattern. , for example, the character direction is determined whether it is vertical or horizontal writing, so for example, if the character direction is 0°, 90°, 18
Out of the four directions of 0° and 270°, character directions in two directions that are 180° different from each other can be accurately determined.

そして、変換手段により、入力パタンから異なる2つの
特徴抽出を行い、その抽出した特徴を識別手段で識別し
て得られたそれぞれの結果に基づき、回転方向判定手段
により、文字方向判定手段から出力される文字方向判定
結果に対してその回転角度を判定して入力パタンの文字
方向を判定するようにしたので、識別手段によって抽出
された異なる2つの特徴が、該回転方向判定手段によっ
て2方向から1方向の文字方向が決定される。
Then, the conversion means extracts two different features from the input pattern, and the extracted features are identified by the identification means. Based on the respective results obtained, the rotation direction determination means outputs the extracted features from the character direction determination means. Since the character direction of the input pattern is determined by determining the rotation angle for the character direction determination result, the two different features extracted by the identification means can be extracted from two directions by the rotation direction determination means. The character direction of the direction is determined.

そのため、従来のように、例えば0″、90。Therefore, as in the past, for example, 0'', 90.

180°、270°の4方向の照合用の辞書を用意する
必要がなく、辞書記憶手段の記憶容量を小さくでき、そ
れによって認識装置の小型化が図れる。しかも、識別手
段による照合は、従来の4回に比べ、2回しか行わない
ので、処理時間が少なくて済み、処理速度の高速化が可
能となる。さらに、従来のような名刺以外の帳票等に対
しても、文字方向の判定と、その判定結果に基づく的確
な文字の認識が行えるため、名刺以外の帳票等に対して
、オペレータが文字毎や、帳票毎に、文字方向を指定す
る必要がなく、操作性が良く、汎用性のある文字認識装
置を実現できる。
There is no need to prepare a dictionary for checking in four directions of 180° and 270°, and the storage capacity of the dictionary storage means can be reduced, thereby making it possible to downsize the recognition device. Moreover, since the verification by the identification means is performed only twice, compared to the conventional four times, the processing time is reduced and the processing speed can be increased. Furthermore, since it is possible to determine the character direction and accurately recognize characters based on the determination results for documents other than business cards, operators can , it is not necessary to specify the character direction for each form, and a character recognition device with good operability and versatility can be realized.

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

第1図は本発明の実施例を示す文字認識装置の機能ブロ
ック図、第2図(a−↓>、(a−2)〜(d.−1>
、(d−2>は印刷文書の例を示す図、第3図(a)・
〜(f>は明朝体の垂直サブパタンと水平サブパタンを
示す図、第4図(a)〜(e)は2値パタンと各サブパ
タンを説明するための図である。 l・・・・・・光電変換手段、2・・・・・・パタン記
憶手段、3・・・・・・線幅計算手段、10・・・・・
・特徴抽出手段、11−・・・・・・・文字枠検出手段
、12・・・・・・文字枠分割決定手段、13・・・・
・・サブパタン抽出手段、14・・・・・・特徴マトリ
クス抽出手段、15・・・・・・特徴変換手段、2つ 0 20 ・文字方向判定手段、 1− ・辞書記憶子 段、 2 ・識別手段、 3 回転方向判定子 段。
FIG. 1 is a functional block diagram of a character recognition device showing an embodiment of the present invention, and FIG. 2 (a-↓>, (a-2) to (d.-1>)
, (d-2> is a diagram showing an example of a printed document, FIG. 3(a).
~(f> is a diagram showing the vertical sub-pattern and horizontal sub-pattern of the Mincho font, and Figures 4 (a) to (e) are diagrams for explaining the binary pattern and each sub-pattern. l...・Photoelectric conversion means, 2...Pattern storage means, 3...Line width calculation means, 10...
・Feature extraction means, 11-...Character frame detection means, 12...Character frame division determination means, 13...
...Sub-pattern extraction means, 14...Feature matrix extraction means, 15...Feature conversion means, two 0 20 - Character direction determination means, 1- - Dictionary storage child stage, 2 - Identification Means: 3. Rotation direction determiner stage.

Claims (1)

【特許請求の範囲】 読取られた入力パタンを記憶するパタン記憶手段と、前
記パタン記憶手段に記憶された入力パタンからその入力
パタンの特徴を抽出する特徴抽出手段と、辞書を記憶す
る辞書記憶手段と、前記特徴抽出手段で抽出された特徴
と前記辞書とを照合して前記入力パタンの識別を行う識
別手段とを、備えた文字認識装置において、 前記パタン記憶手段に記憶された入力パタンを複数の方
向に走査して垂直サブパタン及び水平サブパタンを抽出
するサブパタン抽出手段と、前記サブパタン抽出手段で
抽出された垂直サブパタン及び水平サブパタンの各線幅
を計算し、その両線幅の比と予め定めた線幅比基準値と
を比較して文字方向を判定する文字方向判定手段と、前
記文字方向判定手段の出力に基づいて特徴変換またはパ
タン変換を行うことにより、前記パタン記憶手段に記憶
された入力パタンから異なる2方向の特徴の抽出を行っ
てその抽出結果を前記識別手段で識別させる変換手段と
、 前記識別手段の出力に基づき、前記文字方向判定手段の
出力が所定角度回転しているか否かを判定して前記入力
パタンの回転方向を判定する回転方向判定手段とを、 設けたことを特徴とする文字認識装置。
[Scope of Claims] Pattern storage means for storing a read input pattern, feature extraction means for extracting features of the input pattern from the input pattern stored in the pattern storage means, and dictionary storage means for storing a dictionary. and identification means for identifying the input pattern by comparing the features extracted by the feature extraction means with the dictionary, wherein a plurality of input patterns stored in the pattern storage means are identified. a sub-pattern extracting means for scanning in the direction of and extracting a vertical sub-pattern and a horizontal sub-pattern, and calculating the line width of each of the vertical sub-patterns and horizontal sub-patterns extracted by the sub-pattern extracting means, and calculating the ratio of both line widths and a predetermined line. Character direction determining means for determining the character direction by comparing the character direction with a width ratio reference value, and character conversion or pattern conversion based on the output of the character direction determining means, thereby converting the input pattern stored in the pattern storage means. converting means for extracting features in two different directions from the character and identifying the extraction results by the identifying means; and based on the output of the identifying means, determining whether or not the output of the character direction determining means is rotated by a predetermined angle. A character recognition device comprising: rotation direction determining means for determining the rotation direction of the input pattern.
JP2042046A 1990-02-22 1990-02-22 Character recognition device Pending JPH03244094A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2042046A JPH03244094A (en) 1990-02-22 1990-02-22 Character recognition device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2042046A JPH03244094A (en) 1990-02-22 1990-02-22 Character recognition device

Publications (1)

Publication Number Publication Date
JPH03244094A true JPH03244094A (en) 1991-10-30

Family

ID=12625180

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2042046A Pending JPH03244094A (en) 1990-02-22 1990-02-22 Character recognition device

Country Status (1)

Country Link
JP (1) JPH03244094A (en)

Similar Documents

Publication Publication Date Title
CA1160347A (en) Method for recognizing a machine encoded character
JP3086702B2 (en) Method for identifying text or line figure and digital processing system
US5748809A (en) Active area identification on a machine readable form using form landmarks
JPH05242292A (en) Separating method
JP4098845B2 (en) How to compare symbols extracted from binary images of text
US5835634A (en) Bitmap comparison apparatus and method using an outline mask and differently weighted bits
JPS5991582A (en) Character reader
JPH03244094A (en) Character recognition device
Agarwal et al. Bank check analysis and recognition by computers
JPH03246779A (en) Character recognizing device
JP3384634B2 (en) Character type identification method
JPS6227887A (en) Character type separation method
JP3197441B2 (en) Character recognition device
JPH03273372A (en) Character recognizing device
JP3083609B2 (en) Information processing apparatus and character recognition apparatus using the same
JP3276554B2 (en) Format recognition device and character reader
JPS63269267A (en) Character recognition method
JP3428504B2 (en) Character recognition device
JP2747136B2 (en) Character recognition device
JP3197464B2 (en) Character recognition method and character recognition device
JP3517077B2 (en) Pattern extraction device and method for extracting pattern area
JP2616995B2 (en) Character recognition device
JPS62164182A (en) Character and pattern recognizing method
JPH05174179A (en) Document image processor
JP2001126025A (en) OCR format parameter creation method