Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPS594071B2 - character recognition device - Google Patents
[go: Go Back, main page]

JPS594071B2 - character recognition device - Google Patents

character recognition device

Info

Publication number
JPS594071B2
JPS594071B2 JP52033386A JP3338677A JPS594071B2 JP S594071 B2 JPS594071 B2 JP S594071B2 JP 52033386 A JP52033386 A JP 52033386A JP 3338677 A JP3338677 A JP 3338677A JP S594071 B2 JPS594071 B2 JP S594071B2
Authority
JP
Japan
Prior art keywords
character
recognition device
recognition
unknown
similarity
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired
Application number
JP52033386A
Other languages
Japanese (ja)
Other versions
JPS53118942A (en
Inventor
浩道 藤沢
康明 中野
道夫 安田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP52033386A priority Critical patent/JPS594071B2/en
Publication of JPS53118942A publication Critical patent/JPS53118942A/en
Publication of JPS594071B2 publication Critical patent/JPS594071B2/en
Expired legal-status Critical Current

Links

Landscapes

  • Character Discrimination (AREA)

Description

【発明の詳細な説明】 (1)発明の利用分野 本発明は、漢字のように文字カテゴリが多い場合に適し
た、文脈情報利用による認識結果検定機能を備えた文字
認識装置に関する。
DETAILED DESCRIPTION OF THE INVENTION (1) Field of Application of the Invention The present invention relates to a character recognition device that is suitable for cases where there are many character categories, such as kanji, and is equipped with a recognition result verification function using context information.

(2)従来技術 従来、たとえば官公庁などの各種申請書の処理の多くは
人手によつてなされている。
(2) Prior Art Conventionally, most of the processing of various applications in government offices, for example, has been done manually.

これらの申請書は、普通漢字仮名混り文で書かれており
、これらの申請処理業務を機械化しようとすると、漢字
も含めた日本語文字の認識装置が入力部に必要となる。
現在、研究室のレベルでは、実用上満足し得る読取精度
を有する印刷漢字認識装置の原理実験に成功しており(
たとえば電子通信学会論文誌、58−D巻、2号、94
頁参照)、上記の各種申請書の大半は和文タイプによる
比較的高品質のタイプ印字文書であることを考えると、
上記の申請書処理業務において、印刷漢字認識装置を使
用する環境条件は整つているといえる。しかし、実際に
印刷漢字認識装置を実用化しようとする場合、申請業務
の性格上かなり高度の認識精度が要求される。
These application forms are usually written in a mixture of kanji and kana, and if the application processing task were to be automated, the input unit would need a recognition device for Japanese characters, including kanji.
Currently, at the laboratory level, we have successfully conducted a principle experiment of a printed kanji recognition device with reading accuracy that is satisfactory for practical use.
For example, Journal of the Institute of Electronics and Communication Engineers, Volume 58-D, No. 2, 94
(see page), considering that most of the various application forms mentioned above are relatively high-quality typeprinted documents in Japanese type.
It can be said that the environmental conditions for using the printed kanji recognition device in the above application processing work are in place. However, if a printed kanji recognition device is to be put into practical use, a fairly high level of recognition accuracy is required due to the nature of the application process.

一方、漢字は文字種が極めて多いことや、印字品質が比
較的良好であるといえども比較的品質の悪い申請書が入
力されることもあり得ることを考えると、読取精度は全
く十分であるとは言えない。しかるに、認識結果が正し
いか否かを検定することにより、誤認識率を著しく減少
せしめることが考えられる。
On the other hand, considering that there are an extremely large number of kanji character types, and that even if the print quality is relatively good, it is possible that an application form of relatively poor quality may be input, the reading accuracy is quite sufficient. I can't say that. However, it is conceivable that the rate of misrecognition can be significantly reduced by testing whether or not the recognition results are correct.

従来、上記の考え方は次のように行われていた。数字を
対象とした文字認識装置では、金額を扱うことが多いの
で、たとえば帳票上には各項目の金額とともにそれらの
総計をも記載しておき、認識装置では各項目の認識結果
の総計と、総計の認識結果とを比較して誤りを検出する
方法が取られている。また英字を対象とする文字認識装
置では、各英文字はある限定された語蘭の中の1つの単
語を構成しているということを前提として、N−Gra
mという手法を用いた検定方法が考えられている。しか
し、上記従来の方法はそのまま漢字を対象とした文字認
識装置に適用することができない。
Conventionally, the above idea was carried out as follows. Character recognition devices that target numbers often handle monetary amounts, so for example, the amount of each item and the total amount are written on a form, and the recognition device can write the total amount of recognition results for each item, A method is used to detect errors by comparing the total recognition results. In addition, in character recognition devices that target English characters, N-Grade
A verification method using a method called m is being considered. However, the above conventional method cannot be directly applied to a character recognition device for Chinese characters.

その理由は、漢字の場合は字種が英数字(多くて50字
)などの場合に比較して2000〜4000と多く、た
とえばN−Gramの表の記憶容量が膨大になり、その
ままでは実現不可能になる。(3)発明の目的 したがつて、本発明の目的は、字種の多い場合に適した
手法として申請書のもつ文脈上の情報を用いて読取結果
が正しいか否かを検定する手段を与え、全体として誤認
識率を下げることにある。
The reason for this is that in the case of kanji, the number of character types is 2,000 to 4,000 compared to alphanumeric characters (50 characters at most), and the storage capacity of an N-Gram table, for example, becomes enormous, making it impossible to realize it as it is. It becomes possible. (3) Purpose of the Invention Accordingly, the purpose of the present invention is to provide a means for verifying whether the reading result is correct using the contextual information of the application form as a method suitable for cases where there are many character types. , the aim is to reduce the overall misrecognition rate.

(4)発明の総括説明上記の目的を達成するために、本
発明においては、申請書などの書式(一般的には文脈情
報)を利用している。
(4) General explanation of the invention In order to achieve the above purpose, the present invention utilizes a format such as an application form (generally, context information).

たとえば、次のような書式をもつ申請書を考える。(例
) 申請書の種類 登記申請書 登記の目的 全部移転 原 因 昭和52年2月2日売買 権利者 氏 名 甲山太部 所 在 東京都国立市1−1 持 分 3分のl 義務者 氏 名 乙月次部 住 所 東京都立川市2−2 申請日 昭和52年3月3日 以上 上記の例では、申請書左側にタイプされるキー項目(申
請書の種類、登記の目的など)は限定されており、さら
にキー項目の右の欄、すなわち固定項目の字種もキー項
目が何であつたかに依存して限定される。
For example, consider an application form with the following format. (Example) Type of application Registration application Purpose of registration All transfers Cause February 2, 1978 Name of purchase and sale right holder Name Kozan Abe Office 1-1 Kunitachi City, Tokyo Ownership 1/3rd Name Otsutsujibu Address 2-2 Tachikawa-shi, Tokyo Application date March 3, 1972 or later In the above example, the key items typed on the left side of the application form (type of application, purpose of registration, etc.) are Furthermore, the column to the right of the key item, that is, the character type of the fixed item, is also limited depending on what the key item is.

したがつて、この制限、すなわち文脈情報を利用して、
読取結果の正当性を検定することができる。なおここで
、キー項目とは帳票上であらかじめ定められた欄の文字
列を言い、上記例では上述したように各行のはじめから
8文字分の欄である。
Therefore, taking advantage of this limitation, i.e., contextual information,
The validity of the reading results can be verified. Note that the key item here refers to a character string in a predetermined column on a form, and in the above example, it is a column of eight characters from the beginning of each line, as described above.

また、固定項目とはキー項目と一対一の対応を持つた欄
の文字列であり、上記例では、キー項目に続く同じ行内
の欄の文字列である。本発明装置の原理の概略を、第1
図の流れ図を用いて説明する。
Further, the fixed item is a character string in a column that has a one-to-one correspondence with a key item, and in the above example, it is a character string in a column in the same line following the key item. An outline of the principle of the device of the present invention will be explained in the first section.
This will be explained using the flowchart shown in the figure.

まず、201,202で帳票上の文字を光電変換し、一
定枠内に切り出し、1行毎に認識し、認識結果を文字コ
ードの形で1行分出力する。認識部は上記動作を帳票土
の全文字が認識されるまで続ける。以上までは従来の文
字認識装置と同じである。つぎに、本発明の中心部であ
る認識結果検定部は、キー項目(l行の左側の所定の長
さのフイールドに印刷される文字列)に対応する認識結
果の文字系列を抽出し、全キー項目が記憶されている辞
書の中から、この文字系列が何番目のキー項目に該当す
るかを203で認識する。これをキー項目の単語認識と
いう。なお・、文字認識は誤まることも考えられるので
、上記単語認識の手法は工夫する必要がある。手法は後
述する。何番目のキー項目かが分ると、このキー項目に
続く固定項目に出現し得る字種が限定可能となり、20
4で字種を指定する。
First, at 201 and 202, characters on a form are photoelectrically converted, cut out within a certain frame, recognized line by line, and the recognition result is output for one line in the form of a character code. The recognition unit continues the above operation until all characters on the form are recognized. Everything up to this point is the same as the conventional character recognition device. Next, the recognition result verification unit, which is the core of the present invention, extracts the character sequence of the recognition result corresponding to the key item (the character string printed in the field of a predetermined length on the left side of the l line), and In step 203, it is recognized to which key item this character sequence corresponds from among the dictionary in which key items are stored. This is called key item word recognition. Note that character recognition may be incorrect, so the word recognition method described above needs to be devised. The method will be described later. Once you know the number of the key item, you can limit the character types that can appear in the fixed items following this key item.
Specify the character type with 4.

従つて、文字認識結果の文字コード列の中で固定項目に
対応する文字コードを調べて、上記の許容される字種に
含まれるか否かを次に205で調べる。このとき、含ま
れないことが分れば、文字認識の結果が誤りであるか、
帳票の文字が誤字であつたかのどちらかである。したが
つて、この場合は上記の旨を認識結果に付随して出力す
る。たとえば文字コードの符号を反転させる。検定の結
果、許容字種に含まれていれば、正読と見做して、その
まま文字コードを出力する。以上の動作を帳票上の文字
がなくなるまで続ける。
Therefore, in the character code string resulting from character recognition, the character code corresponding to the fixed item is checked to see if it is included in the above-mentioned permissible character types in step 205. At this time, if it is found that it is not included, the result of character recognition is incorrect.
Either the characters on the form were misspelled. Therefore, in this case, the above information is output along with the recognition result. For example, reverse the sign of the character code. As a result of the test, if the character type is included in the allowable character types, it is assumed to be read correctly and the character code is output as is. Continue the above operations until there are no more characters on the form.

上記の考えに立つて読取り結果の検定を行うためには、
キー項目を単語として一括して認識する手段と、認識さ
れたキー項目に続く固定項目に出現し得る字種を指定す
る手段が必要である。
In order to test the reading results based on the above idea,
It is necessary to have a means for recognizing key items as words all at once, and a means for specifying character types that can appear in fixed items following the recognized key items.

本発明の実施例の説明に移る前に、上記二つの手段につ
いて説明する。まず、認識結果の文字系列を単語として
認識する手法を説明する。
Before proceeding to the description of the embodiments of the present invention, the above two means will be explained. First, a method for recognizing a character sequence resulting from recognition as a word will be explained.

一般に単語認識をするためには単語の辞書(各単語を構
成する文字コード列からなる表)を用意して、入力され
た字系列がどの辞書項目と一致するかを調べればよい。
しかし、実際には入力された文字系列がすべて正しく読
取られているとは限らないので、どの辞書項目とも完全
一致がとれない場合がある。したがつて、辞書項目と一
致がとれるか否かではなく、入力文字系列と各辞書項目
との距離または等価的に類似度(後で定義する)を求め
て、単語認識をする必要がある。たとえば[申請日」を
読取つた結果として「甲フ請日]が得られることがある
が、「甲請日」という辞書項目は明らかに存在しない。
Generally, in order to recognize words, it is sufficient to prepare a word dictionary (a table consisting of character code strings that make up each word) and check which dictionary item the input character sequence matches.
However, in reality, not all input character sequences are read correctly, so there may be cases where a complete match cannot be achieved with any dictionary entry. Therefore, it is necessary to perform word recognition by determining the distance or equivalently the degree of similarity (to be defined later) between the input character sequence and each dictionary item, rather than determining whether or not there is a match with the dictionary item. For example, reading ``Application date'' may result in ``Application date'', but there is clearly no dictionary entry for ``Application date''.

文字系列と辞書項目との類似度を各文字同志の類似度と
すると、上記例では「申」と「甲」との類似度が必要に
なる。
If the degree of similarity between a character series and a dictionary entry is the degree of similarity between each character, then in the above example, the degree of similarity between "Monkey" and "A" is required.

しかし、このような2つの文字の組合せは、読取対象字
種を2000字として4000,000の組合せとなり
、記憶しておくことは不可能である。したがつて、本発
明装置では、異なる文字同志(上記例では「甲」と「申
」)の類似度が必要になつた場合は、認識装置内の該当
する標準パターン同志の類似度を計算してその値を用い
る。同じ文字同志の類似度は常に1とする。ここで類似
度とはOから1までの値をとる数値で、二つの文字パタ
ーン同志の間に定義され、専用計算回路により容易に計
算され、公知であるので、ここでは説明を省略する。
However, such combinations of two characters are 4,000,000 combinations when the number of characters to be read is 2,000 characters, and it is impossible to store them. Therefore, in the device of the present invention, when it becomes necessary to measure the similarity between different characters (in the above example, “A” and “Mon”), the device calculates the similarity between the corresponding standard patterns in the recognition device. and use that value. The similarity between the same characters is always 1. Here, the degree of similarity is a numerical value that takes a value from O to 1, is defined between two character patterns, is easily calculated by a dedicated calculation circuit, and is well known, so its explanation will be omitted here.

上記手法による単語認識のアルゴリズムを第4図の流れ
図を用いて説明する。
The word recognition algorithm using the above method will be explained using the flowchart shown in FIG.

まず、各辞書項目は、単語を構成する文字数Nkと、文
字コード列Wk−{Wi(k)1i−1,2,・・・,
Nk}とで表現されている。全辞書項目の数をKとする
。上でkは、項目番号(単語番号)であり、lからKま
での値をとる。また単語認識部へ入力される文字認識結
果の文字系列(文字コード列)をS−{Sil−1,2
,・・・,N}で表わす。文字系列SとWkとの類似度
をρkで表わす。第2図に単語認識に必要な辞書の構成
を示す。
First, each dictionary entry has the number Nk of characters constituting a word and a character code string Wk-{Wi(k)1i-1,2,...,
Nk}. Let K be the total number of dictionary items. In the above, k is an item number (word number) and takes a value from l to K. In addition, the character sequence (character code string) of the character recognition result input to the word recognition unit is
,...,N}. The degree of similarity between the character series S and Wk is expressed as ρk. Figure 2 shows the structure of a dictionary necessary for word recognition.

辞書の最初の語501(番号D)はキー項目の数Kを保
持し、つぎに各項目の文字コード列を記憶する番地Al
,A2,・・・,ANを記憶する語502が続く。つぎ
は各キー項目の文字コード列を記憶する語がつづく。た
とえばA1番地503は、項目番号1の単語を構成する
文字の長さ(文字数)N1を保持し、以下のNO語50
4は各文字コードを記憶している。第3図に単語認識の
対象となる文字コード列を図示する。
The first word 501 (number D) of the dictionary holds the number K of key items, and then the address Al where the character code string of each item is stored.
, A2, . . . , a word 502 for storing AN follows. Next follows a word that stores the character code string of each key item. For example, address A1 503 holds the length (number of characters) N1 of the characters that make up the word of item number 1, and the following NO word 50
4 stores each character code. FIG. 3 illustrates a character code string that is a target of word recognition.

文字コード列はメモリの作業用領域に一担格納され、N
語からなる。第4図において、単語認識は次のように実
行される。
The character code string is stored in the working area of memory, and N
Consists of words. In FIG. 4, word recognition is performed as follows.

まず101,102で初期化をする。103において、
単語長が入力文字系列長に一致するか否かを判定して、
一致しないときは類似度ρkは0のままとして、次の単
語を調べる。
First, initialization is performed in steps 101 and 102. In 103,
Determine whether the word length matches the input character sequence length,
If there is no match, the similarity ρk remains 0 and the next word is examined.

単語長が一致するときは、105〜112の過程で類似
度ρkを求める。104で初期化を行い、105で辞書
内k番目の項目のi番目の文字コードWi(k)と入力
文字系列のi番目の文字コードSiとが一致するか否か
を調べ、一致するときは、106でρkに1を加え、一
致しないときは107において判定不能であつたかどう
かを調べる。
When the word lengths match, the degree of similarity ρk is calculated in steps 105 to 112. Initialization is performed in 104, and in 105 it is checked whether the i-th character code Wi(k) of the k-th item in the dictionary matches the i-th character code Si of the input character series, and if they match, , 106 adds 1 to ρk, and if they do not match, it is checked in 107 whether it was impossible to determine.

Si=0のときは判定不能を示し、このときは106を
実行し、Si\0のときは108において、認識装置内
の標準パターンを用いて、Wi(k)の標準パターンと
Siの標準パターンの類似度を計算し、ρkに加える。
そこまでの文字数1でρkを割つた値が閾値εを越える
かどうかを109で判定し、越えない場合は項目kは候
補から113において除外する。越える場合は次の文字
に進み、全文字に対して105〜111の処理が終了し
たときは112において、文字系列同志の類似度を文字
数Nで割つて正規化する。115において全辞書項目の
処理が済んだことが検知されたときは、116で求めら
れた全類似度{ρKlk=1,2,・・・,K}の中の
最大値ρ皆次大値ρ2を求め、絶対閾値δとρ1を比較
し117、さらにρlとρ2の差に十分な開きがあるか
否かを相対閾値γにより検定し、十分なときは119で
ρlを与える単語番号k*を出力し、十分でないときは
判定不能を120で出力する。
When Si=0, it indicates that it is impossible to determine, in this case, execute step 106, and when Si\0, in step 108, use the standard pattern in the recognition device to determine the standard pattern of Wi(k) and the standard pattern of Si. , and add it to ρk.
It is determined in step 109 whether the value obtained by dividing ρk by the number of characters up to that point (1) exceeds the threshold value ε, and if it does not, item k is excluded from the candidates in step 113. If the number exceeds the number, the process advances to the next character, and when the processing in steps 105 to 111 is completed for all characters, in step 112, the degree of similarity between the character series is divided by the number of characters N to normalize it. When it is detected in 115 that all dictionary items have been processed, the maximum value ρ among all the similarities {ρKlk=1, 2, ..., K} found in 116 is the maximum value ρ2. , compare the absolute threshold δ and ρ1 (117), and then test whether there is a sufficient difference between ρl and ρ2 using the relative threshold γ. If it is not sufficient, output 120 indicating that it cannot be determined.

つぎに、キー項目に続く固定項目に出現し得る字種を指
定する手段を説明する。
Next, a method for specifying character types that can appear in fixed items following a key item will be explained.

本発明では、フラグ表なるものを第5図に示すごとく、
またビツト番号変換表なるものを第6図に示すごとく用
意する。キー項目の単語認識結果がk*のときは、まず
ビツト番号変換表を参照してフラグ表のどのビツトを利
用するかを示すビツト位置番号b(k*)を求める。つ
ぎに任意の文字に対するフラグ表の内容を取り出し、b
(k*)ビツト目の値がlであるときは同文字は同キー
項目に続く字種として許され、0であるときは許されな
いということが分る。したがつて、この結果を用いて、
原理の説明で述べたように認識結果を検定することがで
きる。
In the present invention, the flag table is as shown in FIG.
In addition, a bit number conversion table is prepared as shown in FIG. When the word recognition result for the key item is k*, first, the bit number conversion table is referred to to find the bit position number b(k*) indicating which bit in the flag table is to be used. Next, extract the contents of the flag table for any character, and b
It can be seen that when the value of the (k*)th bit is l, the same character is allowed as a character type following the same key item, and when it is 0, it is not allowed. Therefore, using this result,
The recognition results can be tested as described in the explanation of the principle.

(5)実施例以下、本発明を実施例を参照して詳細に説
明する。
(5) Examples Hereinafter, the present invention will be explained in detail with reference to Examples.

} 第7図は本発明装置の一実施例のプロツク図である。} FIG. 7 is a block diagram of one embodiment of the apparatus of the present invention.

以下、同図に従つて実施例を説明する。同図において1
は従来の文字認識装置で、3が未知パターンを観測する
文字観測部、4が文字認識処理装置、5は標準パターン
記憶装置である。上記の部分は公知であるのでここでは
詳述しない。認識処理装置4の出力6は、帳票上の文字
を行単位に認識した結果で、文字コード列の形で転送さ
れる。ここで、文字コードがOのときは、その文字は認
識不能であつたことを表わす。本発明の中心部である検
定処理装置10は、メモリ11と類似度計算回路30と
、マイクロプロセツサ20から成つている。
An example will be described below with reference to the same figure. In the same figure, 1
is a conventional character recognition device, 3 is a character observation unit for observing unknown patterns, 4 is a character recognition processing device, and 5 is a standard pattern storage device. The above portions are well known and will not be described in detail here. The output 6 of the recognition processing device 4 is the result of recognizing characters on a form line by line, and is transferred in the form of a character code string. Here, when the character code is O, it means that the character was unrecognizable. The verification processing device 10, which is the central part of the present invention, is composed of a memory 11, a similarity calculation circuit 30, and a microprocessor 20.

回路30は、マイクロプロセツサ20から2個の文字コ
ードを受けて、同文字コードに対応する2個の標準パタ
ーンを5より受けて同標準パターン同志の類似度を計算
し、結果の類似度を20へ返送する。回路30は、第4
図の処理108を実行するときに用いられる。メモリ1
1は、第5図に示したフラグ表を記憶する部分12と、
第6図に示したビツト番号変換表を記憶する部分13と
、第2図に示したキー項目辞書を記憶する部分14と、
さらに作業用領域15とからなつている。マイクロプロ
セツサ20は20内に持つマイクロプログラムに従つて
、第4図で説明したアルゴリズムにより単語認識(キー
項目認識)を行い、固定項目の字種の指定を12を用い
て行い、固定項目の認識結果である文字コードを検定す
る。
The circuit 30 receives two character codes from the microprocessor 20, receives two standard patterns corresponding to the same character code from 5, calculates the similarity between the same standard patterns, and calculates the resulting similarity. Return to 20. The circuit 30 is the fourth
It is used when executing the process 108 in the figure. memory 1
1 is a section 12 for storing the flag table shown in FIG. 5;
A part 13 for storing the bit number conversion table shown in FIG. 6, a part 14 for storing the key item dictionary shown in FIG.
Furthermore, it consists of a work area 15. The microprocessor 20 performs word recognition (key item recognition) using the algorithm explained in FIG. Verify the character code that is the recognition result.

つぎに、文字認識装置としての処理の流れに沿つて説明
する。帳票上に印刷された文字パターンは3により光電
変換され、一定の枠内に切り出され、4へ転送される。
Next, the flow of processing as a character recognition device will be explained. The character pattern printed on the form is photoelectrically converted by 3, cut out within a certain frame, and transferred to 4.

4では3から送られて来た未知パターンと5内の各標準
パターンとの類似度を計算し、最大類似度を与える文字
のコードを、1行分まとめて、文字コード列として出力
線6上に出力する。
In 4, the degree of similarity between the unknown pattern sent from 3 and each standard pattern in 5 is calculated, and the code of the character that gives the maximum degree of similarity is compiled for one line and output as a character code string on the output line 6. Output to.

ただし、ここで4は最大類似度が所定の閾値以上になつ
ているかどうかを検定し、閾値に達しない場合は出力コ
ードを0とする。検定処理装置10内のマイクロプロセ
ツサ20は1行ごとの認識結果の文字コード列を6を通
して受け取りメモリ15に格納する。
However, here, in 4, it is tested whether the maximum similarity is greater than or equal to a predetermined threshold, and if the threshold is not reached, the output code is set to 0. The microprocessor 20 in the verification processing device 10 receives the character code string of the recognition result for each line through 6 and stores it in the memory 15.

まず1行分の文字系列(ブランクも1つの文字コードを
与えられている)からキー項目に対応する文字コード系
列を抽出し、単語認識に移る。l行分の文字コード列の
例を第8図に示す。l行は25文字からなり、先頭の8
文字801がキー項目に対応し、後半の17文字802
が固定項目に対応する。文字コード9999はブランク
を意味する。欄801内のブランタでない文字コード(
第8図に於いてはSl,S2,・・・,S6)がキー項
目の文字を認識した結果の文字コード列である。単語認
識はマイクロプログラムにより、第4図に示したアルゴ
リズムに従づて行う。
First, a character code sequence corresponding to a key item is extracted from a character sequence for one line (blanks are also given one character code), and the process moves on to word recognition. An example of a character code string for l lines is shown in FIG. The l line consists of 25 characters, the first 8
Character 801 corresponds to the key item, and the latter 17 characters 802
corresponds to a fixed item. Character code 9999 means blank. Non-blunter character code in column 801 (
In FIG. 8, S1, S2, . . . , S6) are character code strings resulting from recognition of characters in key items. Word recognition is performed by a microprogram according to the algorithm shown in FIG.

ただし、同アルゴリズムにおいて、第4図の処理108
は、類似度計算回路によつて行う。すなわち、20は2
個の文字コードS1とk番目の辞書項目のi番目の文字
コードWi(k)(第4図参照)を30に転送し、類似
度計算の命令を30に対して発する。30は同命令を受
けて、Si(5wi(k)に対応する2個の標準パター
ンを5より読み出し、同標準パターン同志の類似度ρ*
を計算し、20に対し返送する。
However, in the same algorithm, processing 108 in FIG.
is performed by a similarity calculation circuit. In other words, 20 is 2
character code S1 and the i-th character code Wi(k) of the k-th dictionary entry (see FIG. 4) are transferred to 30, and a similarity calculation command is issued to 30. 30 receives the same command, reads two standard patterns corresponding to Si(5wi(k) from 5, and calculates the similarity ρ* between the same standard patterns.
Calculate and send back 20.

以上は第1図の処理203である。マイクロプログラム
は単語認識が終了すると、検定処理に移る。まず第1図
の処理204を行う。まず、キー項目認識の結果のキー
項目番号が分ると、メモリ13内のビツト番号変換表を
調べて、同キー項目に続く固定項目の字種を指定する所
のフラグ表のビツト番号b*を得る。続いて固定項目の
認識結果の検定処理205を行う。20はメモリ15内
の認識結果文字コード列(第8図)の内、固定項目に対
応する文字コード802から1つづつ取り出し、メモリ
12内のフラグ表(第5図参照)の各文字コードに対応
するフラグのb*ビツト目を調べる。
The above is the process 203 in FIG. When the microprogram completes word recognition, it moves on to verification processing. First, processing 204 in FIG. 1 is performed. First, when the key item number as a result of key item recognition is known, the bit number conversion table in the memory 13 is checked and the bit number b* of the flag table that specifies the character type of the fixed item following the same key item is determined. get. Subsequently, a verification process 205 of the fixed item recognition results is performed. 20 extracts one character code from the character code 802 corresponding to the fixed item from the recognition result character code string (Fig. 8) in the memory 15, and writes it to each character code in the flag table (see Fig. 5) in the memory 12. Check the b*th bit of the corresponding flag.

同ビツトがlのときは、許容される字種であるので、そ
の時は何もしないが、0のときは許容されない字種であ
るので、同結果を与えた802内の文字コードの符号を
反転させる。たとえば、固定項目のある認識結果文字コ
ードが500であり、検定の結果許容されない文字のと
きは符号を反転させて−500とする。ここで、固定項
目の認識結果の文字コードが4から送出された段階で負
の符号のときは、同文字コードに対する検定処理は行わ
ない。また、キー項目に対応する文字コードは、単語認
識結果の辞書の文字コード列を第8図に示したキー項目
の文字コード列に代人する。
When the same bit is l, the character type is allowed, so nothing is done at that time, but when it is 0, the character type is not allowed, so the sign of the character code in 802 that gave the same result is reversed. let For example, if the recognition result character code with a fixed item is 500, and the character is not allowed as a result of the verification, the code is inverted to -500. Here, if the character code of the fixed item recognition result is a negative sign at the stage when it is sent from 4, the verification process for the same character code is not performed. Further, as for the character code corresponding to the key item, the character code string of the dictionary of the word recognition result is substituted for the character code string of the key item shown in FIG.

例えば、文字認識結果801が「甲請日」であつても単
語認識の結果が[−申請日]に対応するキー項目番号で
あるとすると20は[甲請日」の代りに「申請田に対応
する文字コード列をメモリ14に格納してある辞書から
取り出して801を書き替えるので、文字認識結果に誤
りがあつても正しく修正される。キー項目の単語認識の
結果が判定不能であつた場合は、以後の文字コードの検
定ができないので同行の文字コードをすべて負に反転さ
せる。検定が終了して第8図に示した文字コード列が書
さ替えられると(誤りがない場合は結果的には変更がな
い。
For example, if the character recognition result 801 is "Application date" but the word recognition result is the key item number corresponding to [-Application date], 20 will be replaced with "Application date". Since the corresponding character code string is retrieved from the dictionary stored in the memory 14 and 801 is rewritten, even if there is an error in the character recognition result, it is corrected correctly.The result of word recognition of the key item was undecidable. In this case, the subsequent character codes cannot be verified, so all the accompanying character codes are reversed to negative values.When the verification is completed and the character code string shown in Figure 8 is rewritten (if there is no error, the result is There is essentially no change.

)、20は同文字コード列801,802を出力線50
上に出力する。以上の過程は帳票の行単位に実行される
), 20 outputs the same character code strings 801 and 802 to the output line 50
Output on top. The above process is executed for each line of the form.

(6)まとめ 以上説明したごとく、本発明装置は文字認識結果を文脈
情報を利用して検定し、認識結果が誤りと判断される場
合は、文字コードの符号を逆転させ、またキー項目部の
一部の文字の誤認識は正しく修正されて出力されるので
、誤認識率を低下させることができる。
(6) Summary As explained above, the device of the present invention verifies character recognition results using context information, and if the recognition result is determined to be incorrect, it reverses the sign of the character code and also changes the key item part. Since some characters that are misrecognized are correctly corrected and output, the misrecognition rate can be reduced.

本文字認識装置の結果を、たとえばつぎのように表示し
、人手により最終判定を仰ぐことができる。
The results of this character recognition device can be displayed, for example, as shown below, and the final judgment can be made manually.

すなわち、正の文字コードが出力された場合は通常に表
示し、負の文字コードが出力された場合は、誤認識の可
能性が高いので、輝度や色を変えてデイスプレイしたり
、表示文字の脇に特殊記号を付して表示したりでき、人
手を介して修正できる。本発明装置の特徴は、従来の文
字認識装置の後段に付ければよいので大きな変更を必要
としないこと、本検定処理部を容易に取除くことができ
認識部はそのまま従来の認識装置として動作できるので
、本検定処理部をオプシヨンとして取扱えることである
。また、単語認識に際して、誤りを含んだ文字コード系
列から辞書を検索する手法で必要になる任意の二つの文
字の近さの測度を、標準パターン同志の類似度によつて
得ている点も特徴である。
In other words, if a positive character code is output, it is displayed normally, but if a negative character code is output, there is a high possibility of misrecognition, so you may change the display brightness or color, or change the displayed character. It can be displayed with special symbols added to the side, and can be corrected manually. The features of the device of the present invention are that it does not require major changes as it can be installed after the conventional character recognition device, and that the verification processing section can be easily removed and the recognition section can operate as a conventional recognition device as is. Therefore, this verification processing section can be handled as an option. Another feature of word recognition is that the measure of the closeness between any two characters, which is required when searching a dictionary from a character code sequence containing errors, is obtained from the similarity between standard patterns. It is.

したがつて、近さの測度を貯えるための膨大な記憶装置
が不必要である。なお、本明.細書に述べた実施例にお
いては、第5図で10の中に類似度計算回路30を設け
たが、類似度計算機能は4が本来持つているので、4を
若干変更することにより、30を4の中に含め、全体と
して効率的なものにすることができる。本発明では、一
行ごとにキー項目と固定項目が書かれている書式とした
が、書式が変わつた場合は、検定処理部のマイクロプロ
グラムを変更すればよいので、本発明は行単位の検定方
式に限られない。
Therefore, extensive storage for storing proximity measures is unnecessary. In addition, the present invention. In the embodiment described in the specification, the similarity calculation circuit 30 is provided in 10 in FIG. 5, but since 4 originally has the similarity calculation function, by slightly changing 4, 4, making it more efficient as a whole. In the present invention, the format is such that key items and fixed items are written for each line, but if the format changes, the microprogram of the verification processing section can be changed, so the present invention uses a line-by-line verification method. Not limited to.

また、書式を表の形で記憶装置11内に記憶しておき、
マイクロプログラムを変更しないでもすむようにもでき
る。また、キー項目により固定項目の字種を限定したが
、固定項目の中を更に分割して、単語認識をしながら以
後の字種を限定するように変更することもできる。
Further, the format is stored in the storage device 11 in the form of a table,
It is also possible to avoid changing the microprogram. Further, although the character types of fixed items are limited by key items, it is also possible to further divide the fixed items and change the character types afterward while performing word recognition.

例えば、地名の場合などで、都道府県名を認識して市町
村名の字種を限定するなどである。さらに、帳票の第1
行目に大目出しを作り、その単語認識結果によりキー項
目辞書や、フラグ表を動的に変更するように作ることも
可能であり、これらすべて本発明に含まれる。以上の説
明でも明らかなように、本発明の中心である検定処理部
は、その前段である認識処理部の具体的な手法にはなん
ら依存せず、同じく採用することができる。
For example, in the case of place names, it is possible to recognize prefecture names and limit the character types of city, town, and village names. Furthermore, the first
It is also possible to create a large mark on each row and dynamically change the key item dictionary and flag table based on the word recognition results, and all of these are included in the present invention. As is clear from the above description, the verification processing section, which is the core of the present invention, does not depend on the specific method of the recognition processing section, which is the preceding stage, and can be similarly adopted.

なお、本発明に似た考え方として欄ごとに数字、英字あ
るいは片仮名といつた字種を限定する方法があるが、本
発明原理は、その欄はどの字種であるのかをキー項目認
識の結果に依存して選択するのであり、動的に字種を限
定している。
Note that a method similar to the present invention is to limit the character types such as numbers, alphabets, or katakana for each column, but the principle of the present invention is to determine which character type the column is based on as a result of key item recognition. The character type is dynamically limited.

したがつて、本発明は従来のそのような方法とは本質的
に異なる。
The present invention therefore differs substantially from such conventional methods.

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

第1図は本発明の原理を説明するための流れ図である。 FIG. 1 is a flow chart for explaining the principle of the present invention.

Claims (1)

【特許請求の範囲】 1 記録媒体上に設定された文字フィールド上の未知文
字パターンを入力し、入力された未知文字パターンをあ
らかじめ用意された標準パターンと照合して認識をおこ
なう文字認識装置において、単語辞書を格納する記憶手
段と、上記文字フィールド上のあらかじめ指定された文
脈同定領域上に存在する未知文字パターン列の認識結果
と上記単語辞書中の単語との照合度にもとづき所定の文
字フィールドにおける未知文字パターン列の文脈を同定
する同定手段と、同定された文脈により指定された文字
パターンの部分集合にもとづき各文字フィールド上の未
知文字パターン列の認識結果を検定する検定手段とを備
えたことを特徴とする文字認識装置。 2 上記照合度は認識結果を表わす文字パターンコード
列と単語を表わす文字コード列とを比較し、各文字パタ
ーンに対応する文字コードが一致した場合は類似度1を
与え、一致しない場合は各文字コードに対応する文字パ
ターン間の類似度を与えることにより算出されることを
特徴とする特許請求の範囲第1項の文字認識装置。 3 上記照合において、一致しない場合は各文字コード
に対応する標準文字パターン間の類似度を与えることを
特徴とする特許請求の範囲第2項の文字認識装置。 4 上記文脈同定領域上に存在する未知文字パターン列
は対応する文字フィールドの種類を指定するキー項目を
含むことを特徴とする特許請求の範囲第1項の文字認識
装置。 5 上記文脈同定領域上に存在する未知文字パターン列
は対応する文字フィールドに続く次の文字フィールドの
種類を指定する遷移規則を含むことを特徴とする特許請
求の範囲第1項の文字認識装置。 6 上記検定手段は、未知文字パターンのカテゴリー数
をM(M:2以上の整数)、文字パターンの部分集合数
をN(N:2以上の整数)としてM行N列の行列状に配
列された記憶要素からなる記憶手段を含み、n(n=1
、2、…、N)番目の部分集合に含まれる文字パターン
のカテゴリーは上記行列の第n列における各行に対応し
た記憶要素の記憶内容により指定することを特徴とする
特許請求の範囲第1項の文字認識装置。 7 上記同定手段は上記文脈の同定結果により上記単語
辞書を変更する手段を含むことを特徴とする特許請求の
範囲第1項の文字認識装置。 8 上記同定手段は上記文脈の同定結果により上記記憶
要素の記憶内容を変更する手段を含むことを特徴とする
特許請求の範囲第6項の文字認識装置。
[Claims] 1. A character recognition device that inputs an unknown character pattern on a character field set on a recording medium and performs recognition by comparing the input unknown character pattern with a standard pattern prepared in advance, a storage means for storing a word dictionary; and a memory means for storing a word dictionary; and a memory means for storing a word dictionary; The present invention includes an identification means for identifying the context of the unknown character pattern string, and a testing means for testing the recognition result of the unknown character pattern string on each character field based on a subset of the character pattern specified by the identified context. A character recognition device featuring: 2 The above matching degree is determined by comparing the character pattern code string representing the recognition result with the character code string representing the word. If the character codes corresponding to each character pattern match, a similarity of 1 is given, and if they do not match, each character 2. The character recognition device according to claim 1, wherein the character recognition device is calculated by giving a degree of similarity between character patterns corresponding to codes. 3. The character recognition device according to claim 2, wherein in the above verification, if there is no match, a degree of similarity between standard character patterns corresponding to each character code is given. 4. The character recognition device according to claim 1, wherein the unknown character pattern string existing on the context identification area includes a key item specifying the type of the corresponding character field. 5. The character recognition device according to claim 1, wherein the unknown character pattern string existing on the context identification area includes a transition rule that specifies the type of the next character field following the corresponding character field. 6. The testing means is arranged in a matrix of M rows and N columns, with the number of categories of unknown character patterns being M (M: an integer of 2 or more) and the number of subsets of character patterns being N (N: an integer of 2 or more). n (n=1)
, 2, . . . , N)-th subset of character patterns is specified by the storage contents of storage elements corresponding to each row in the n-th column of the matrix. character recognition device. 7. The character recognition device according to claim 1, wherein the identification means includes means for changing the word dictionary according to the identification result of the context. 8. The character recognition device according to claim 6, wherein the identification means includes means for changing the stored content of the storage element based on the identification result of the context.
JP52033386A 1977-03-28 1977-03-28 character recognition device Expired JPS594071B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP52033386A JPS594071B2 (en) 1977-03-28 1977-03-28 character recognition device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP52033386A JPS594071B2 (en) 1977-03-28 1977-03-28 character recognition device

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP58079399A Division JPS6055866B2 (en) 1983-05-09 1983-05-09 character recognition device

Publications (2)

Publication Number Publication Date
JPS53118942A JPS53118942A (en) 1978-10-17
JPS594071B2 true JPS594071B2 (en) 1984-01-27

Family

ID=12385145

Family Applications (1)

Application Number Title Priority Date Filing Date
JP52033386A Expired JPS594071B2 (en) 1977-03-28 1977-03-28 character recognition device

Country Status (1)

Country Link
JP (1) JPS594071B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5748163A (en) * 1980-09-03 1982-03-19 Hitachi Ltd Method and device for inspection of pattern

Also Published As

Publication number Publication date
JPS53118942A (en) 1978-10-17

Similar Documents

Publication Publication Date Title
US5161245A (en) Pattern recognition system having inter-pattern spacing correction
US5467407A (en) Method and apparatus for recognizing cursive writing from sequential input information
US10963717B1 (en) Auto-correction of pattern defined strings
US5329598A (en) Method and apparatus for analyzing character strings
JPS594071B2 (en) character recognition device
JPS6262388B2 (en)
JPS6055866B2 (en) character recognition device
JPH0520797B2 (en)
JP4442136B2 (en) Character recognition method and apparatus
JPS63268082A (en) Pattern recognizing device
JPS59197974A (en) Character recognizing device
JP3245415B2 (en) Character recognition method
JPS6336487A (en) Character reading system
JP2529421B2 (en) Character recognition device
JPS61161588A (en) Character recognition post-processing method
JPS60225273A (en) Word retrieving system
JPS5930176A (en) Character discrimination processing system
JP3007697B2 (en) Word matching device and word matching method
JPH08305698A (en) Natural language analysis method and device
KR101629726B1 (en) Method and program for proofreading word spacing
JPS62285189A (en) Character recognition post processing system
JPH0212481A (en) Character string recognizing device
JPH0546806A (en) Character recognition method
JPH0420229B2 (en)
JPH0583957B2 (en)