JPH056464A - Method and device for character string recognition - Google Patents

Method and device for character string recognition

Info

Publication number
JPH056464A
JPH056464A JP3155039A JP15503991A JPH056464A JP H056464 A JPH056464 A JP H056464A JP 3155039 A JP3155039 A JP 3155039A JP 15503991 A JP15503991 A JP 15503991A JP H056464 A JPH056464 A JP H056464A
Authority
JP
Japan
Prior art keywords
character
characters
string
candidate
recognition
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.)
Granted
Application number
JP3155039A
Other languages
Japanese (ja)
Other versions
JP2903779B2 (en
Inventor
Yayoi Kobayashi
弥生 小林
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.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP3155039A priority Critical patent/JP2903779B2/en
Publication of JPH056464A publication Critical patent/JPH056464A/en
Application granted granted Critical
Publication of JP2903779B2 publication Critical patent/JP2903779B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Character Discrimination (AREA)
  • Character Input (AREA)

Abstract

PURPOSE:To use word knowledge to correctly recognize a character even in the case of erroneous recognition of the character which is simultaneously recognized and segmented. CONSTITUTION:A candidate character pattern extracting part 2 extracts a pattern as a character candidate from a character string picture. A character recognizing part 4 recognizes the candidate character pattern and stores a character code obtained as the recognition result and a character evaluation value. A character segmenting part 7 uses a number (x) of characters which is supposed based on candidate character patterns and is included on the character string picture, a character transition evaluation value preliminarily stored as knowledge, and the character evaluation values obtained by the character recognizing part 4 to search optimum one of character strings consisting of x candidate character patterns. A recognition result checking part 9 collates the searched character string with a word dictionary. If collation of all characters results in success, they are outputted as the recognition result; but otherwise, the set number of characters is changed by a character number setting part 5, and the same processing is repeated to output a character string whose collation result is best.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は文字列認識方法及びその
装置に関し、特に光学的文字読み取り装置(OCR)に
おける文字列認識方法及びその装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a character string recognition method and apparatus, and more particularly to a character string recognition method and apparatus in an optical character reader (OCR).

【0002】[0002]

【従来の技術】文字列認識方法及びその装置において、
光学的文字読み取り装置の帳票は、文字記入枠が設けら
れ、筆記者がその枠に1文字ずつを記入する方法がとら
れていた。これに対して、罫線のような緩い書式制約の
元で筆記された文字を認識するための技術が文字列認識
である。
2. Description of the Related Art In a character string recognition method and apparatus,
The form of the optical character reading device is provided with a character entry frame, and the writer has adopted a method of entering each character in the frame. On the other hand, character string recognition is a technique for recognizing characters written under loose format restrictions such as ruled lines.

【0003】文字列認識においては、文字切り出しの問
題が1つの重要な課題である。特に日本語のように一文
字が複数の連結したパタンに分かれる場合があり、ま
た、手書きのように隣接する文字パタンが接触する場合
には、必ずしもパタン間の余白やパタンの形状だけから
切り出すことは困難である。そこで、文字候補となるパ
タンをまず認識し、その結果を用いて文字列として最適
なパタンの組み合わせを探索する方法が知られている。
この方法については、例えば、文献「候補文字ラティス
法による枠無し筆記文字列のオンライン認識」、電子情
報通信学会(D)J68−D,No.4、1985、7
65〜772頁)に記載されている。
In character string recognition, the problem of character segmentation is one important issue. In particular, a character may be divided into multiple connected patterns such as Japanese, and when adjacent character patterns come into contact like handwriting, it is not necessary to cut out only from the margin between patterns or the shape of the pattern. Have difficulty. Therefore, there is known a method of first recognizing a pattern that is a character candidate and using the result to search for an optimal pattern combination as a character string.
This method is described, for example, in the document “Online recognition of a frameless written character string by the candidate character lattice method”, Institute of Electronics, Information and Communication Engineers (D) J68-D, No. 4, 1985, 7
65-772).

【0004】しかしながら、漢字には「明」のように偏
と旁に分かれて、それぞれが文字と認識できる文字もあ
り、このような文字が含まれていると上記のような方法
では正しく認識することは困難である。このような場合
にも精度良く認識するために、言語的な知識を利用した
文字列認識方法が知られている。例えば文献「言語情報
を利用した手書き文字列からの文字切り出しと認識」、
電子情報通信学会論文誌(D)、J69−D,No.
9、1986、1292−1301頁に記載されてい
る。
However, there are some Kanji characters that can be recognized as characters, such as "bright", which are divided into partial and halves, and if such characters are included, they are correctly recognized by the above method. Is difficult. In order to accurately recognize even in such a case, a character string recognition method using linguistic knowledge is known. For example, the document “Character segmentation and recognition from handwritten character strings using language information”,
IEICE Transactions (D), J69-D, No.
9, 1986, pages 1292-1301.

【0005】[0005]

【発明が解決しようとする課題】上述した従来の文字列
認識方法及びその装置では、文字候補を組み合わせてで
きる文字列候補の中に、正しい認識結果が含まれていれ
ば、単語照合によりこれを認識結果として判断すること
は可能であるが、含まれない場合には、正しい認識を行
うことは困難である。
In the above-described conventional character string recognition method and apparatus thereof, if a correct recognition result is included in the character string candidates formed by combining the character candidates, the character string candidate is recognized by word matching. It is possible to judge as a recognition result, but if it is not included, it is difficult to perform correct recognition.

【0006】また、図2のように文字パタンが誤認識さ
れている場合には、上述のように認識結果だけを利用し
て文字列候補を選出すると、正しい認識結果が数の限定
された文字列候補の中に含まれないことが多くなり、単
語照合によっても認識誤りを修正できなくなる。
Further, when the character pattern is erroneously recognized as shown in FIG. 2, when a character string candidate is selected using only the recognition result as described above, the correct recognition result is limited to a limited number of characters. It is often not included in the column candidates, and the recognition error cannot be corrected by word matching.

【0007】ところで、認識対象が住所のように予め限
定されていて、2つの文字が連続して発生する場合は非
常に限定される。例えば、ある地域の住所に限定した場
合に、「東」の次に「京」が書かれることはあるが、
「野」が書かれることはないといった知識が得られる。
従って、文字列候補を選出するときに、単に個別のパタ
ンの文字らしさの評価値だけでなく、隣接する文字との
整合性を文字遷移情報という上位の知識を用いて評価す
ることにより、たとえ、個別のパタンが誤認識され、下
位の候補として認識された場合にも、文字遷移情報によ
り、文字列候補を有効に選ぶことが可能になり、単語照
合が効果的に利用できる。
By the way, when the recognition target is limited in advance like an address and two characters occur consecutively, it is very limited. For example, if the address is limited to a certain area, "Kyo" may be written next to "East", but
You can get the knowledge that "field" is never written.
Therefore, when selecting a character string candidate, by evaluating not only the evaluation value of the character likeness of individual patterns but also the consistency with adjacent characters using higher-level knowledge called character transition information, Even when an individual pattern is erroneously recognized and is recognized as a lower candidate, the character transition information makes it possible to effectively select a character string candidate, and word matching can be effectively used.

【0008】本発明の目的は、認識対象が予め限定され
ている場合に、対象に関する知識として、文字間の遷移
情報を予め文字遷移評価値として記憶し、これを用いる
ことにより、誤認識された場合にもこれを修正すること
を可能にする。
An object of the present invention is, when a recognition target is limited in advance, by storing transition information between characters as a character transition evaluation value in advance as knowledge about the target and using this, misrecognition is performed. It also makes it possible to fix this.

【0009】[0009]

【課題を解決するための手段】本発明の文字列認識方法
は、光学的に帳票から読み取った文字列画像から候補文
字パタンを抽出し、前記候補文字パタンと文字認識辞書
の標準パタンとを照合する認識処理の結果により文字評
価値を算出し、前記候補文字パタンにより前記文字列画
像の文字数を仮定し、前記文字評価値及び予め単語辞書
から算出した文字間の遷移情報を表す文字遷移評価値に
より前記文字列画像から前記文字数を切り出して文字コ
ード列として出力し、前記文字コード列と前記単語辞書
に格納してある単語とを照合し、前記文字コード列の全
ての文字が照合された場合には前記文字コード列を前記
文字列画像の認識結果として出力し、照合しない場合に
は可能な文字数の範囲内で前記文字数を変更して前記文
字切り出し処理及び前記単語照合処理を反復し、可能な
文字数の範囲の全てに対して照合されなかった場合に
は、可能な文字数の範囲内の最適な照合結果を前記文字
列画像の認識結果として出力する。
According to a character string recognition method of the present invention, a candidate character pattern is extracted from a character string image optically read from a form, and the candidate character pattern is collated with a standard pattern of a character recognition dictionary. A character evaluation value is calculated according to the result of the recognition process, the number of characters in the character string image is assumed by the candidate character pattern, and the character evaluation value and a character transition evaluation value representing transition information between characters calculated in advance from a word dictionary. When the number of characters is cut out from the character string image and output as a character code string, the character code string is compared with a word stored in the word dictionary, and all the characters of the character code string are collated. The character code string is output as the recognition result of the character string image, and when not collated, the character number is changed within the range of the possible number of characters and the character cutting process and It said word collation processing repeated, if it is not matched against the entire range of number of characters that can outputs a best matching result of the range of the number of characters allowed in the recognition result of the character string image.

【0010】本発明の文字列認識装置は、光学的な走査
で読み取った文字列画像を格納する文字列画像記憶手段
と、前記文字列画像記憶手段から読み出された文字列画
像により文字候補となる候補文字パタンを抽出し格納す
る候補文字パタン抽出手段と、標準パタンを記憶する文
字認識辞書記憶手段と、前記候補文字パタン抽出手段か
ら読み出された候補文字パタンと前記文字認識辞書記憶
手段から読み出された標準パタンとを照合する認識処理
により文字コードと認識結果とから得られる文字評価値
を格納する文字認識手段と、前記候補文字パタン抽出手
段から読み出された候補文字パタンにより前記文字列画
像の文字数を仮定し、認識結果検定部から文字数が入力
された場合には可能な範囲内で文字数を変更する文字数
設定手段と、前記文字数設定手段からの文字数と前記文
字認識手段から読み出された候補文字パタンの文字評価
値と文字遷移評価値記憶手段から読み出された文字間の
遷移情報を表す文字遷移評価値とにより複数の候補文字
パタンから構成される文字列候補の内最適なものを探索
し、前記文字列候補と認識結果である文字コード列とを
格納する文字切り出し手段と、前記文字切り出し手段か
らの文字コード列と、単語辞書記憶手段からの単語とを
照合し、前記文字コード列の全ての文字が照合された場
合には前記文字コード列を文字列認識結果出力手段に出
力し、照合しない場合には照合文字列を記憶するととも
に、文字数を前記文字数設定手段に出力し、可能な文字
数の全てに対して照合されなかった場合には、格納され
ている照合文字列の内で最適な照合文字列を前記文字列
認識結果出力手段に出力する認識結果検定部と、前記認
識結果検定部からの文字照合結果を出力する文字列認識
結果出力手段とを有する。
The character string recognition device of the present invention is a character string image storage means for storing a character string image read by optical scanning, and character candidates based on the character string image read out from the character string image storage means. From the candidate character pattern extracting means for extracting and storing the candidate character pattern, the character recognition dictionary storing means for storing the standard pattern, the candidate character pattern read from the candidate character pattern extracting means and the character recognition dictionary storing means. Character recognition means for storing a character evaluation value obtained from a character code and a recognition result by a recognition process of collating the read standard pattern, and the character by the candidate character pattern read from the candidate character pattern extracting means. Assuming the number of characters in the column image, when the number of characters is input from the recognition result verification unit, the number of characters setting means for changing the number of characters within a possible range, A plurality of character transition evaluation values representing the transition information between characters read from the character number setting means, the character evaluation value of the candidate character pattern read from the character recognition means, and the character transition evaluation value storage means. A character cutting means for searching for an optimum one of character string candidates composed of candidate character patterns and storing the character string candidates and a character code string which is a recognition result; and a character code string from the character cutting means. , The word from the word dictionary storage means is collated, and if all the characters of the character code string are collated, the character code string is output to the character string recognition result output means, and if not collated, the collation character The column is stored, the number of characters is output to the number-of-characters setting means, and if all possible numbers of characters are not collated, the optimum collation among the stored collation character strings is performed. It has a recognition result verification unit that outputs a string on the character string recognition result output means, and a character string recognition result output means for outputting a character collation result from said recognition result verification unit.

【0011】[0011]

【作用】本発明の文字列認識方法について説明する。以
下の説明では、縦書き文字列画像を例として用いるが、
横書きの文字列についても同様に適用できる。図3
(a)は手書き文字列画像の例である。入力された文字
列画像に対して、文字候補となるパタン(候補文字パタ
ン)を抽出する。図3(b)はその抽出結果を表したラ
ティスである。ラティスの各ノードが文字列画像の切り
出し候補位置に対応し、2つのノードを結ぶリンクが、
対応する切り出し位置に挟まれたパタンで、候補文字パ
タンを表す。
The character string recognition method of the present invention will be described. In the following description, a vertically written character string image is used as an example,
The same applies to a horizontally written character string. Figure 3
(A) is an example of a handwritten character string image. A pattern that is a character candidate (candidate character pattern) is extracted from the input character string image. FIG. 3B is a lattice showing the extraction result. Each node of the lattice corresponds to the cutout candidate position of the character string image, and the link connecting the two nodes is
A candidate character pattern is represented by a pattern sandwiched between corresponding cutout positions.

【0012】各候補文字パタンと文字認識辞書の標準パ
タンとを照合し、候補文字パタンの認識を行い、これに
基づいて候補文字パタンの文字である信頼性を表す文字
評価値を算出する。文字評価値の算出方法として、例え
ば特願平1−334347「文字列認識方法及びその装
置」が知られている。これにより、候補文字パタンが文
字らしいほど高い評価値を得ることが可能である。
Each candidate character pattern is compared with the standard pattern of the character recognition dictionary, the candidate character pattern is recognized, and based on this, a character evaluation value representing the reliability of the character of the candidate character pattern is calculated. As a method for calculating the character evaluation value, for example, Japanese Patent Application No. 1-334347 “Character string recognition method and device thereof” is known. This makes it possible to obtain a higher evaluation value as the candidate character pattern seems to be a character.

【0013】候補文字パタンを組み合わせて構成される
文字列候補に対して、単語照合を行い、文字列認識を行
うが、一般にはすべての組み合わせを照合すると処理量
が膨大となる。そのために、ある文字の次に別の文字が
発生することがあるかどうかを文字遷移評価値として、
予め単語辞書があるいは学習データから算出しておく。
文字遷移評価値としては、例えば文字Ciの次に文字C
jがくることがある場合には1、そうでない場合には0
として、2値で表す方法、あるいはカテゴリの出現確率
という形で算出する方法等がある。この文字遷移評価値
と文字評価値を利用して文字列候補を絞ることによっ
て、たとえ文字パタンが図2のように誤認識されて文字
評価値が低く、下位の候補として認識されていても、文
字遷移評価値により文字列候補の中に選出することが可
能となる。
Word matching and character string recognition are performed for character string candidates formed by combining candidate character patterns. Generally, if all combinations are matched, the processing amount becomes enormous. Therefore, as a character transition evaluation value, it is determined whether another character may occur next to one character.
The word dictionary is calculated in advance or from learning data.
As the character transition evaluation value, for example, the character C is followed by the character C.
1 if j may come, 0 otherwise
As a method, there is a method of expressing in binary or a method of calculating in the form of the appearance probability of a category. By narrowing down the character string candidates using the character transition evaluation value and the character evaluation value, even if the character pattern is erroneously recognized as shown in FIG. 2 and the character evaluation value is low and it is recognized as a lower candidate, The character transition evaluation value enables selection among character string candidates.

【0014】具体的には、文字数の違いによる文字列候
補の評価誤差を生じないために、文字数の等しい文字列
候補毎に、候補を絞る。このときに、文字列候補に含ま
れる候補文字パタンの文字評価値及び文字遷移評価値の
和を文字列評価値として、文字列評価値の最大となるも
のを探索し、これを候補とする方法を採る。これによっ
て、最終的には文字列候補として互いに文字数が異なる
ものが選出されるが、この中から単語照合によって、最
も良く照合した文字列を認識結果として出力する処理に
より、たとえ文字パタンが誤認識されても文字遷移情報
を利用することにより、これを修正し、正しく認識する
ことが可能となる。
Specifically, in order to prevent an error in evaluation of character string candidates due to the difference in the number of characters, the candidates are narrowed down for each character string candidate having the same number of characters. At this time, the sum of the character evaluation value and the character transition evaluation value of the candidate character pattern included in the character string candidate is used as the character string evaluation value, and the one having the largest character string evaluation value is searched for, and this is used as the candidate Take. As a result, character strings with different numbers of characters are finally selected as candidate character strings.However, even if character patterns are erroneously recognized by the process of outputting the character string with the best match by word matching as a recognition result. However, by using the character transition information, it is possible to correct this and correctly recognize it.

【0015】[0015]

【実施例】次に本発明について図面を参照して説明す
る。図1は本発明の一実施例を示すブロック図である。
The present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing an embodiment of the present invention.

【0016】文字画像記憶部1は、2値化された文字列
画像を格納する。候補文字パタン抽出部2は、文字列画
像記憶部1から読み出した文字列画像信号11により文
字候補となるパタンを抽出して、これをラティスとして
記憶装置に格納する。文字候補となるパタンの抽出方法
としては、例えば以下のようにして実現できる。まず、
文字列画像から図形としてのまとまりの最小単位のパタ
ンを抽出するために、文字列画像に対してその文字列方
向と垂直な方向に黒画素を計数して得られる投影関数を
f(x)とする。関数f(x)に対して式(1)で表さ
れるガウシァン関数g(x)を用いて、式(2)の計算
を施し、平滑化した投影関数f′(x)を算出する。
The character image storage unit 1 stores a binarized character string image. The candidate character pattern extraction unit 2 extracts a character candidate pattern from the character string image signal 11 read from the character string image storage unit 1 and stores it as a lattice in the storage device. A method of extracting a pattern that is a character candidate can be realized as follows, for example. First,
In order to extract the pattern of the minimum unit of a figure as a unit from a character string image, a projection function obtained by counting black pixels in a direction perpendicular to the character string image is defined as f (x). To do. The Gaussian function g (x) represented by the equation (1) is used for the function f (x) to perform the calculation of the equation (2) to calculate a smoothed projection function f ′ (x).

【0017】 [0017]

【0018】この投影関数f′(x)の極小値を与える
全てのx座標を算出し、この点を切り出し候補位置Ni
(i=0,…,K)とし、この点を通り文字列方向と垂
直な方向の直線を切り出し候補線とし、この隣接する2
つの切り出し候補線に挟まれたパタンを処理の最小パタ
ンとする。文字列画像から平滑化した投影関数を算出
し、その極小点を算出する。また、隣接する文字が接触
したり、重なったりする場合にも、その分離点は投影関
数f′(x)の極小点となることが予想される。従っ
て、このように画像を細かく分割しておくことにより、
たとえ文字と文字が接触したり、重なったりしていて
も、これを分離しておくことが可能になる。この切り出
し候補位置を記憶手段に格納しておく。
All the x-coordinates that give the minimum value of this projection function f '(x) are calculated, and this point is cut out and the candidate position Ni is extracted.
(I = 0, ..., K), and a straight line that passes through this point and is perpendicular to the character string direction is cut out as a candidate line.
The pattern sandwiched between two cutout candidate lines is the minimum pattern for processing. A smoothed projection function is calculated from the character string image, and the minimum point is calculated. Also, when adjacent characters come into contact with each other or overlap each other, the separation point is expected to be the minimum point of the projection function f ′ (x). Therefore, by dividing the image finely like this,
Even if characters are in contact with each other or overlap, it is possible to separate them. This cutout candidate position is stored in the storage means.

【0019】次に異なる2つの切り出し候補線に挟まれ
たパタンが1文字であるか否かを判断し、1文字と判断
されたパタンを候補文字パタンとして記憶手段に格納す
る。ここで、1文字である可能性のあるパタンは、判定
基準(1)及び(2)により判定する。
Next, it is judged whether or not the pattern sandwiched between two different cutout candidate lines is one character, and the pattern judged to be one character is stored in the storage means as a candidate character pattern. Here, the pattern that may be one character is determined by the determination criteria (1) and (2).

【0020】判定基準(1)はパタンの外接矩形の縦横
比(w/h)が、0.5≦r≦2.5ならばそのパタン
は候補文字パタンとする(図4)。判定基準(2)はパ
タンの内部の余白(s)の文字幅(w)に対する比が
0.5以下ならば、候補文字パタンとする(図4)。
The criterion (1) is that if the aspect ratio (w / h) of the circumscribed rectangle of the pattern is 0.5≤r≤2.5, the pattern is a candidate character pattern (FIG. 4). The criterion (2) is a candidate character pattern if the ratio of the margin (s) inside the pattern to the character width (w) is 0.5 or less (FIG. 4).

【0021】文字認識部4は、候補文字パタン抽出部2
から信号12として各候補文字パタンを読み込み、文字
認識辞書記憶部3から信号13として標準パタンを読み
込み、候補文字パタンの認識を行い、認識結果の候補そ
れぞれに対する信頼性を示す文字評価値を算出し(図
5)、候補文字パタンの文字コードと文字評価値を記憶
手段に記憶する。候補文字パタンの各認識候補に対する
信頼性が0から1までの値で表され、1に近いほど信頼
性が高いと評価されることになる。文字数設定部5は候
補文字パタン抽出部2から全ての候補文字パタンを信号
14として読み込み、候補文字パタンを基に、入力され
た文字列画像に対して可能な文字数を設定し、この文字
数を信号15として出力する。
The character recognition unit 4 includes a candidate character pattern extraction unit 2
From the character recognition dictionary storage unit 3 to read the standard pattern as the signal 13, recognize the candidate character pattern, and calculate a character evaluation value indicating the reliability of each candidate of the recognition result. (FIG. 5), the character code of the candidate character pattern and the character evaluation value are stored in the storage means. The reliability of the candidate character pattern for each recognition candidate is represented by a value from 0 to 1, and the closer it is to 1, the higher the reliability is evaluated. The number-of-characters setting unit 5 reads all candidate character patterns from the candidate character pattern extraction unit 2 as a signal 14, sets the number of characters that can be input to the input character string image based on the candidate character pattern, and signals this number of characters. Output as 15.

【0022】次に図6を参照して、具体的な処理動作を
説明する。まず、ステップ61ではレジスタに文字数x
として0をセットする。ステップ62では、x=x+1
と文字数をインクリメントして、ステップ63で文字数
xが最大値K以下であるか否かを判断する。ステップ6
3で、xが最大値K以下の場合はステップ64におい
て、入力文字列画像がx個の候補文字パタンから構成さ
れるか否かを判断する。これは、切り出し候補位置Ni
(i=0,…,K)をノードとし、候補文字パタンl
(i,j)をリンクとする2端子有向グラフの始点から
終点に至るパスの内、x個のリンクを通るパスが存在す
るかどうかを調べることにより容易に実現できる。ステ
ップ64において肯定された場合は、文字数xを信号1
5として出力する。否定された場合は、ステップ62に
戻る。ステップ63で文字数xが最大値kを越えた場合
は、信号15を通して処理の終了を伝える。
Next, a specific processing operation will be described with reference to FIG. First, in step 61, the number of characters x
Is set to 0. In step 62, x = x + 1
And the number of characters is incremented, and it is determined in step 63 whether the number of characters x is less than or equal to the maximum value K. Step 6
If x is less than or equal to the maximum value K in step 3, it is determined in step 64 whether the input character string image is composed of x candidate character patterns. This is the cutout candidate position Ni
With (i = 0, ..., K) as a node, the candidate character pattern l
This can be easily realized by checking whether or not there is a path passing through x links among the paths from the start point to the end point of the two-terminal directed graph having the link (i, j). If affirmative in step 64, signal character number x
Output as 5. If not, return to step 62. When the number of characters x exceeds the maximum value k in step 63, the end of the process is notified through the signal 15.

【0023】文字遷往評価値記憶部6は、カテゴリCi
の次にカテゴリCjが発生するかどうかを予め単語辞書
から文字遷移評価値t(Ci,Cj)として算出し、こ
れを通常の記憶装置に格納しておく。文字遷移評価値t
としては、例えばカテゴリCiの次のカテゴリCjが発
生することがある場合には1で、無い場合には0の2値
で表す。
The character transition evaluation value storage unit 6 stores the category Ci.
Whether or not the category Cj occurs next is calculated in advance as a character transition evaluation value t (Ci, Cj) from the word dictionary, and this is stored in a normal storage device. Character transition evaluation value t
Is represented by a binary value of 1 when a category Cj next to the category Ci may occur, and a binary value of 0 when it does not exist.

【0024】文字切り出し部7は文字数設定部5から信
号15として文字数xを読み込み、文字認識部4から信
号16として文字評価値を読み込み、文字遷移評価値記
憶部6から信号17として文字遷移評価値を読み込み、
x個の候補文字パタンから構成される文字列候補の内、
最適なものを文字評価値と文字遷移評価値とを使って決
定し、その切り出し位置及び文字コード列を記憶する。
The character slicing unit 7 reads the number of characters x from the character number setting unit 5 as the signal 15, the character evaluation value from the character recognition unit 4 as the signal 16, and the character transition evaluation value as the signal 17 from the character transition evaluation value storage unit 6. Read
Of the character string candidates composed of x candidate character patterns,
The optimum one is determined using the character evaluation value and the character transition evaluation value, and the cutout position and the character code string are stored.

【0025】x個の文字からなる最適な文字列の決定
は、以下のようにして実現できる。s(t)(t=0,
…,x)を第t番目文字の終了位置(切り出し位置)と
する。s(0)=0,s(x)=Kである。また、r
(t)(t=1,…,x)を第t番目の候補文字パタン
の認識結果の順位とする。文字切り出し部7では、文字
評価値と文字遷移評価値により算出される式(3)を最
大にする切り出し位置s(t)と認識結果の順位r
(t)を、動的計画法を用いて決定する。但し、切り出
し候補位置NiとNjに挟まれた候補文字パタンl
(i,j)の認識結果として、第1位から第R位までの
文字コードをc(i,j,k)(k=1,…,R)及び
その文字評価値w(i,j,k)と表す。また、文字C
iの次に文字Cjが発生する時の文字遷移評価値をt
(Ci,Cj)と表し、文字Ciが文字列の先頭に位置
するかどうかを表す評価値をt′(Ci)で表す。パラ
メータαは、文字遷移評価値の文字評価値に対する影響
を制御するためのパラメータである。これにより、各文
字のパタンの文字である信頼性が高く、かつ直前の文字
に対する出現の可能性の大きい文字が最適な文字列とし
て決定される。
The optimum character string consisting of x characters can be determined as follows. s (t) (t = 0,
, X) is the end position (cutout position) of the t-th character. s (0) = 0 and s (x) = K. Also, r
Let (t) (t = 1, ..., X) be the rank of the recognition result of the t-th candidate character pattern. In the character cutout unit 7, the cutout position s (t) that maximizes the expression (3) calculated by the character evaluation value and the character transition evaluation value and the rank r of the recognition result.
(T) is determined using dynamic programming. However, the candidate character pattern l sandwiched between the cutout candidate positions Ni and Nj
As the recognition result of (i, j), the character codes from the first rank to the Rth rank are c (i, j, k) (k = 1, ..., R) and the character evaluation value w (i, j, k). Also, the letter C
The character transition evaluation value when the character Cj occurs next to i is t
It is represented by (Ci, Cj), and an evaluation value indicating whether or not the character Ci is located at the beginning of the character string is represented by t ′ (Ci). The parameter α is a parameter for controlling the influence of the character transition evaluation value on the character evaluation value. As a result, a character that is a pattern character of each character and that has high reliability and that has a high possibility of appearing with respect to the immediately preceding character is determined as the optimum character string.

【0026】 [0026]

【0027】ここで、最適な文字列の探索は式(4)と
(5)を用いることにより、実現できる。但し、φt
(nt-1 ,nt ,rt-1 ,rt )はt個の候補文字パタ
ンからなる文字列候補の内、t−1番目のパタンの終了
位置がnt-1 で、第rt-1 位の認識結果を採用し、t番
目のパタンの終了位置がnt で、第rt 位の認識結果を
採用する文字列候補の評価値の中で最大の評価値を表
す。また、式(4)の中で、t=2の場合には式(6)
により算出する。
Here, the search for the optimum character string can be realized by using the equations (4) and (5). However, φt
(N t-1 , n t , r t-1 , r t ) is a character string candidate consisting of t candidate character patterns, the end position of the t-1 th pattern is n t-1 , The recognition result at the ( t-1) th position is adopted, the end position of the tth pattern is nt , and the maximum evaluation value is shown among the evaluation values of the character string candidates adopting the recognition result at the rtth position. Further, in the equation (4), when t = 2, the equation (6)
Calculate by

【0028】単語辞書記憶部8には、単語としての文字
コード列を記憶手段によって記憶しておく。認識結果検
定部9は文字切り出し部7から信号18として文字コー
ド列を読み込み、単語辞書記憶部8に格納してある各単
語の文字コード列を信号19として読み込み、文字コー
ド列の意味が成立するかどうかを検定する。具体的には
以下のような手段により実現できる。
The character dictionary as a word is stored in the word dictionary storage unit 8 by a storage means. The recognition result verification unit 9 reads the character code string as the signal 18 from the character cutout unit 7, reads the character code string of each word stored in the word dictionary storage unit 8 as the signal 19, and the meaning of the character code string is established. Test whether or not. Specifically, it can be realized by the following means.

【0029】文字コード列をc0 ,c1 ,…cx とす
る。文字コード列の先頭の文字コードc0 から単語辞書
のすべての単語と照合を行う。1文字でも照合された単
語があれば、その単語及び先頭の文字位置と最後の文字
位置および一致した文字数を記憶手段により記憶する。
例えば、図7(a)では単語「東京都」に対して、一致
文字数3、先頭文字位置C0 ,末端文字位置C2 を記憶
する。次に照合する文字位置を1つずつずらして同様に
単語辞書と照合を行う。このようにして、文字コード列
の各文字位置を先頭として可能な単語を全て記憶する。
その結果を示したのが図7(b)である。この照合され
た単語候補を組み合わせてできる文字列の中から、最も
一致文字数の多い文字列d0 1 …dy を探索する。
Let the character code strings be c 0 , c 1 , ... C x . All the words in the word dictionary are matched from the character code c 0 at the head of the character code string. If there is a matched word even with one character, the word, the starting character position, the ending character position, and the number of matching characters are stored by the storage means.
For example, in FIG. 7A, the number of matching characters 3, the start character position C 0 , and the end character position C 2 are stored for the word “Tokyo”. Next, the character positions to be matched are shifted one by one and similarly matched with the word dictionary. In this way, all possible words starting from each character position of the character code string are stored.
The result is shown in FIG. 7 (b). From the character strings formed by combining the matched word candidates, the character string d 0 d 1 ... D y having the largest number of matching characters is searched.

【0030】文字コード列c0 ,c1 ,…cx の全ての
文字が照合結果の文字列d0 1 …dy と一致した場合
は、この文字コード列を文字列認識結果出力部10に信
号21として出力し、処理を終了する。そうでない場合
は、文字数設定部5に信号20として文字数xを出力す
る。文字数設定部5では、ステップ62で文字数xを入
力し、前述と同様の処理を行う。
The character code string c 0, c 1, ... every character collation result string c x d 0 d 1 ... If a match with a d y, the character string recognition result output unit 10 to the character code string Is output as a signal 21 to end the processing. Otherwise, the number of characters x is output as the signal 20 to the number of characters setting unit 5. In the number-of-characters setting unit 5, the number of characters x is input in step 62 and the same processing as described above is performed.

【0031】また、文字数設定部5から処理終了の信号
が送られているときには、各文字数xに対して得られて
いる照合結果の文字コード列d0 x1 x …dy x の最
適なものを探索する。例えば、照合結果の文字コード列
0 x 1 x …dy x から、入力文字コード列c0 1
…cx との一致文字数、照合単語数および照合結果の文
字数yを計数し、これらを基に最良の照合結果を以下の
ような基準を用いて探索する。基準1は最も一致文字数
の多い文字列コード列とし、基準2は基準1を満たす文
字コード列が複数ある場合には、それらの内で照合単語
数の最小の文字コード列とし、基準3は基準2を満たす
文字コード列が複数ある場合には、それらの内で文字数
yの最も多い文字コード列とする。
When a signal indicating the end of processing is sent from the character number setting unit 5, the optimum character code string d 0 x d 1 x ... dy x of the collation result obtained for each character number x is obtained. Search for things. For example, the result of matching character code string d 0 x d 1 x ... d y x, the input character code string c 0 c 1
... number of matched characters between c x, counts the number of characters y matching word count and the collation result, searches using the following criteria the best matching result on the basis of these. Criterion 1 is the character string code string with the largest number of matching characters, Criterion 2 is the character code string with the smallest number of matching words among them when there are multiple character code strings, and Criterion 3 is the criterion When there are a plurality of character code strings satisfying 2, the character code string having the largest number of characters y is selected from among them.

【0032】文字列認識結果出力部10は文字コード列
の先頭から認識結果を出力する。
The character string recognition result output unit 10 outputs the recognition result from the beginning of the character code string.

【0033】なお、本実施例では、縦書きの文字列を使
って説明したが、横書きの文字列にも本実施例と同様に
適用できる。また、候補文字パタンの抽出方法も、本実
施例に限らず、接触した文字でも分離することが可能な
方法ならば、支障なく適用できる。また、住所などの読
み取り対象が限定され、知識の階層化が可能な対象に対
しては、単語辞書として木(ツリー)構造の表現を用い
て単語を記憶しておくことにより、単語照合時の処理を
削減することが可能であると共に、より高精度の認識が
可能になる。
Although the present embodiment has been described by using a vertically written character string, it can be applied to a horizontally written character string in the same manner as this embodiment. Also, the method of extracting the candidate character pattern is not limited to this embodiment, and any method that can separate even the touched characters can be applied without any trouble. In addition, for objects such as addresses that can be read and whose knowledge can be hierarchized, words are stored using a tree-structured expression as a word dictionary. The processing can be reduced, and more accurate recognition can be performed.

【0034】また、文字遷移評価値についても本実施例
に限定されることはなく、例えば、式(7)で算出され
る評価値を用いても本実施例と同様の結果が得られる。
Also, the character transition evaluation value is not limited to this embodiment, and the same result as that of this embodiment can be obtained by using the evaluation value calculated by the equation (7).

【0035】 [0035]

【0036】また、文字遷移評価値の算出のためのデー
タを単語辞書すべてを用いて行う必要もなく、学習デー
タとして、本装置に入力される可能性のあるもの、ある
いは出現頻度の多いデータに限っても良い。
Further, it is not necessary to perform the data for calculating the character transition evaluation value by using all the word dictionaries, and learning data that is likely to be input to this device or data that appears frequently is used. You can limit it.

【0037】[0037]

【発明の効果】以上説明したように本発明によれば、隣
接する文字が接触したり重なったりして、比較的自由に
筆記された文字列画像からも、文字を正確に切り出すこ
とを可能にすると共に、個別文字が誤認識されたときに
も単語情報を用いて修正することが可能である。
As described above, according to the present invention, it is possible to accurately cut out a character from an image of a character string in which adjacent characters come into contact with each other or overlap each other and are relatively freely written. In addition, even when the individual character is erroneously recognized, it can be corrected using the word information.

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

【図1】本発明の文字列認識装置の一実施例を示すブロ
ック図である。
FIG. 1 is a block diagram showing an embodiment of a character string recognition device of the present invention.

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

【図3】本実施例の手書き文字列画像に対する候補文字
パタン抽出の説明図である。
FIG. 3 is an explanatory diagram of candidate character pattern extraction for a handwritten character string image according to the present embodiment.

【図4】本実施例の文字パタンの評価要素の説明図であ
る。
FIG. 4 is an explanatory diagram of a character pattern evaluation element of the present embodiment.

【図5】本実施例の候補文字パタンの文字評価値の説明
図である。
FIG. 5 is an explanatory diagram of character evaluation values of candidate character patterns of this embodiment.

【図6】本実施例の文字数設定部5の処理内容を示すフ
ローチャートである。
FIG. 6 is a flowchart showing the processing contents of a character number setting unit 5 of this embodiment.

【図7】本実施例の認識結果検定部9の単語照合の説明
図である。
FIG. 7 is an explanatory diagram of word matching of the recognition result verification unit 9 of the present embodiment.

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

1 文字列画像記憶部 2 候補文字パタン抽出部 3 文字認識辞書記憶部 4 文字認識部 5 文字数設定部 6 文字遷移評価値記憶部 7 文字切り出し部 8 単語辞書記憶部 9 認識結果検定部 10 文字列認識結果出力部 1 Character string image storage 2 Candidate character pattern extraction unit 3 character recognition dictionary storage 4 Character recognition part 5 character number setting section 6 Character transition evaluation value storage 7 character cutout 8 word dictionary storage 9 Recognition result verification section 10 Character string recognition result output section

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 光学的に帳票から読み取った文字列画像
から候補文字パタンを抽出し、前記候補文字パタンと文
字認識辞書の標準パタンとを照合する認識処理の結果に
より文字評価値を算出し、前記候補文字パタンにより前
記文字列画像の文字数を仮定し、前記文字評価値及び予
め単語辞書から算出した文字間の遷移情報を表す文字遷
移評価値により前記文字列画像から前記文字数を切り出
して文字コード列として出力し、前記文字コード列と前
記単語辞書に格納してある単語とを照合し、前記文字コ
ード列の全ての文字が照合された場合には前記文字コー
ド列を前記文字列画像の認識結果として出力し、照合し
ない場合には可能な文字数の範囲内で前記文字数を変更
して前記文字切り出し処理及び前記単語照合処理を反復
し、可能な文字数の範囲の全てに対して照合されなかっ
た場合には、可能な文字数の範囲内の最適な照合結果を
前記文字列画像の認識結果として出力することを特徴と
する文字列認識方法。
1. A character evaluation value is calculated from a result of a recognition process of extracting a candidate character pattern from a character string image optically read from a form and comparing the candidate character pattern with a standard pattern of a character recognition dictionary. Assuming the number of characters in the character string image by the candidate character pattern, the character evaluation value and a character transition evaluation value representing transition information between characters calculated in advance from a word dictionary are used to cut out the number of characters from the character string image and a character code. Output as a string, collate the character code string with the word stored in the word dictionary, and if all the characters of the character code string are collated, the character code string is recognized as the character string image. Output as a result, if not collated, the number of characters is changed within the range of the number of possible characters, the character cutout process and the word matching process are repeated, and A character string recognition method, which outputs an optimum matching result within the range of the possible number of characters as the recognition result of the character string image when the entire range is not matched.
【請求項2】 光学的な走査で読み取った文字列画像を
格納する文字列画像記憶手段と、前記文字列画像記憶手
段から読み出された文字列画像により文字候補となる候
補文字パタンを抽出し格納する候補文字パタン抽出手段
と、標準パタンを記憶する文字認識辞書記憶手段と、前
記候補文字パタン抽出手段から読み出された候補文字パ
タンと前記文字認識辞書記憶手段から読み出された標準
パタンとを照合する認識処理により文字コードと認識結
果とから得られる文字評価値を格納する文字認識手段
と、前記候補文字パタン抽出手段から読み出された候補
文字パタンにより前記文字列画像の文字数を仮定し、認
識結果検定部から文字数が入力された場合には可能な範
囲内で文字数を変更する文字数設定手段と、前記文字数
設定手段からの文字数と前記文字認識手段から読み出さ
れた候補文字パタンの文字評価値と文字遷移評価値記憶
手段から読み出された文字間の遷移情報を表す文字遷移
評価値とにより複数の候補文字パタンから構成される文
字列候補の内最適なものを探索し、前記文字列候補と認
識結果である文字コード列とを格納する文字切り出し手
段と、前記文字切り出し手段からの文字コード列と、単
語辞書記憶手段からの単語とを照合し、前記文字コード
列の全ての文字が照合された場合には前記文字コード列
を文字列認識結果出力手段に出力し、照合しない場合に
は照合文字列を記憶するとともに、文字数を前記文字数
設定手段に出力し、可能な文字数の全てに対して照合さ
れなかった場合には、格納されている照合文字列の内で
最適な照合文字列を前記文字列認識結果出力手段に出力
する認識結果検定部と、前記認識結果検定部からの文字
照合結果を出力する文字列認識結果出力手段とを有する
ことを特徴とする文字列認識装置。
2. A character string image storage means for storing a character string image read by optical scanning, and a candidate character pattern to be a character candidate is extracted by the character string image read out from the character string image storage means. Candidate character pattern extraction means for storing, character recognition dictionary storage means for storing standard patterns, candidate character patterns read from the candidate character pattern extraction means, and standard patterns read from the character recognition dictionary storage means A character recognition unit that stores a character evaluation value obtained from a character code and a recognition result by a recognition process that collates the character string and a candidate character pattern read from the candidate character pattern extraction unit are used to assume the number of characters in the character string image. , A character number setting means for changing the number of characters within a possible range when the number of characters is input from the recognition result verification section, and the number of characters from the character number setting means And a character evaluation value of the candidate character pattern read out from the character recognition means and a character transition evaluation value representing transition information between characters read out from the character transition evaluation value storage means. From the character string candidates for searching for the optimum one of the character string candidates and the character code string that is the recognition result, the character code string from the character cutting means, and the word dictionary storage means. Of the character code string, if all the characters of the character code string is matched, the character code string is output to the character string recognition result output means, and if not matched, the matching character string is stored, The number of characters is output to the number-of-characters setting means, and when all the possible number of characters are not matched, the optimum matching character string among the stored matching character strings is selected as the character string recognition result. A recognition result verification unit that outputs the force means, the recognition result verification unit string recognition apparatus characterized by having a character string recognition result output means for outputting a character collation result from.
JP3155039A 1991-06-27 1991-06-27 Character string recognition method and apparatus Expired - Fee Related JP2903779B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3155039A JP2903779B2 (en) 1991-06-27 1991-06-27 Character string recognition method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3155039A JP2903779B2 (en) 1991-06-27 1991-06-27 Character string recognition method and apparatus

Publications (2)

Publication Number Publication Date
JPH056464A true JPH056464A (en) 1993-01-14
JP2903779B2 JP2903779B2 (en) 1999-06-14

Family

ID=15597338

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3155039A Expired - Fee Related JP2903779B2 (en) 1991-06-27 1991-06-27 Character string recognition method and apparatus

Country Status (1)

Country Link
JP (1) JP2903779B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11120293A (en) * 1997-10-16 1999-04-30 Fujitsu Ltd Character recognition/correction system
CN112784125A (en) * 2021-01-14 2021-05-11 辽宁工程技术大学 Mode identification method and device for input information
CN113614737A (en) * 2019-03-27 2021-11-05 三菱电机大楼技术服务株式会社 Information collecting system for equipment

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11120293A (en) * 1997-10-16 1999-04-30 Fujitsu Ltd Character recognition/correction system
CN113614737A (en) * 2019-03-27 2021-11-05 三菱电机大楼技术服务株式会社 Information collecting system for equipment
CN113614737B (en) * 2019-03-27 2023-08-29 三菱电机楼宇解决方案株式会社 Machine equipment information collection system
CN112784125A (en) * 2021-01-14 2021-05-11 辽宁工程技术大学 Mode identification method and device for input information

Also Published As

Publication number Publication date
JP2903779B2 (en) 1999-06-14

Similar Documents

Publication Publication Date Title
US11715014B2 (en) System and method of character recognition using fully convolutional neural networks with attention
US10936862B2 (en) System and method of character recognition using fully convolutional neural networks
US6950555B2 (en) Holistic-analytical recognition of handwritten text
Lee et al. A new methodology for gray-scale character segmentation and recognition
US9665768B2 (en) Process of handwriting recognition and related apparatus
EP0355748B1 (en) A pattern recognition apparatus and method for doing the same
KR100412317B1 (en) Character recognizing/correcting system
JP2000353215A (en) Character recognition device and recording medium where character recognizing program is recorded
JP3480404B2 (en) Vocabulary major classification device, its major category classification method, and recording medium recording its control program
Hussain et al. Nastalique segmentation-based approach for Urdu OCR
JP2730665B2 (en) Character recognition apparatus and method
Procter et al. Cursive handwriting recognition using hidden Markov models and a lexicon-driven level building algorithm
JP2903779B2 (en) Character string recognition method and apparatus
Amrouch et al. A novel feature set for recognition of printed amazigh text using maximum deviation and hmm
US10997452B2 (en) Information processing apparatus and non-transitory computer readable medium storing program
Wang et al. Multi-branch and two-pass HMM modeling approaches for off-line cursive handwriting recognition
Koga et al. Segmentation of Japanese handwritten characters using peripheral feature analysis
Fermanian et al. Deep recognition-based character segmentation in handwritten syriac manuscripts
Pourreza et al. Persian OCR with Cascaded Convolutional Neural Networks Supported by Language Model
JP3419251B2 (en) Character recognition device and character recognition method
Amin Recognition of printed Arabic text using machine learning
JPH04363780A (en) Method and device for recognizing character string
JP3374762B2 (en) Character recognition method and apparatus
JPH08202830A (en) Character recognition system
JPH04299485A (en) Character string recognizing method and its device

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees