JPH07302305A - Device for recognizing hand-written character - Google Patents

Device for recognizing hand-written character

Info

Publication number
JPH07302305A
JPH07302305A JP6096049A JP9604994A JPH07302305A JP H07302305 A JPH07302305 A JP H07302305A JP 6096049 A JP6096049 A JP 6096049A JP 9604994 A JP9604994 A JP 9604994A JP H07302305 A JPH07302305 A JP H07302305A
Authority
JP
Japan
Prior art keywords
character
handwritten character
value
comparison
handwritten
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.)
Withdrawn
Application number
JP6096049A
Other languages
Japanese (ja)
Inventor
Michiru Maeji
ミチル 前地
Akio Sakano
秋夫 坂野
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.)
Sony Corp
Original Assignee
Sony 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 Sony Corp filed Critical Sony Corp
Priority to JP6096049A priority Critical patent/JPH07302305A/en
Publication of JPH07302305A publication Critical patent/JPH07302305A/en
Withdrawn legal-status Critical Current

Links

Abstract

PURPOSE:To improve the speed of recognition without reducing the recognition rate. CONSTITUTION:The recognizing device 5 compares and verifies a handwritten character with a character pattern registered in a dictionary 4 and calculates the degree of simularity in each prescribed unit. The degree of simularity is compared with a prescribed threshold, the comparison/verification with the character pattern is stopped in accordance with the compared result and comparison/verification with a succeeding character pattern is started. The prescribed threshold is changed in accordance with the number of strokes of a hand-written character being compared/verified at present.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、手書きで入力された手
書き文字を認識する手書き文字認識装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a handwritten character recognition device for recognizing handwritten characters input by handwriting.

【0002】[0002]

【従来の技術】従来の手書き文字認識装置においては、
入力された手書き文字と、辞書に記憶された標準の文字
パターンとの比較検定が、例えば手書き文字の1ストロ
ーク単位で行われ、1つの比較検定が行われるごとに、
その文字パターンに対する手書き文字の類似度(例え
ば、手書き文字が、文字パターンに近似しているほど大
きな値とされるもの)が算出されるようになされてい
る。そして、その類似度と、所定の閾値とが比較され、
類似度が所定の閾値より小さい場合には、いま比較検定
を行っている文字パターンに対する処理が中止され、そ
の次の文字パターンとの比較検定が行われるようになさ
れている。
2. Description of the Related Art In a conventional handwritten character recognition device,
A comparison test between the input handwritten character and the standard character pattern stored in the dictionary is performed, for example, in a unit of one stroke of the handwritten character, and each time one comparison test is performed,
The degree of similarity of the handwritten character to the character pattern (for example, the closer the handwritten character is to the character pattern, the larger the value) is calculated. Then, the similarity is compared with a predetermined threshold,
When the degree of similarity is smaller than a predetermined threshold value, the process for the character pattern currently undergoing the comparison test is stopped, and the comparison test with the next character pattern is performed.

【0003】一方、手書き文字の全ストロークに対する
比較検定が行われるまでに、類似度が所定の閾値より小
さくならなかった場合には、その比較検定に用いられた
文字パターンは、手書き文字の認識結果候補とされるよ
うになされている。
On the other hand, if the similarity does not become smaller than a predetermined threshold value by the time the comparison test is performed on all strokes of the handwritten character, the character pattern used for the comparison test is the recognition result of the handwritten character. It is designed to be a candidate.

【0004】[0004]

【発明が解決しようとする課題】ところで、ある文字パ
ターンに対する手書き文字の類似度を、例えばその文字
を用いた、いままでの比較検定の結果(これは、例えば
手書き文字のある1ストロークが、そのストロークに対
応する文字パターンを構成する線に近似しているほど、
大きな値とされる)のうちの、値の低い方から所定の複
数個の平均値とする場合などにおいては、その所定の複
数個に対応する数の比較検定が行われるまでは、所定の
複数個に足りない比較検定結果として、所定の初期値が
用いられる。
By the way, the similarity between a handwritten character and a certain character pattern is, for example, the result of a comparative test up to now (for example, one stroke of a handwritten character is The closer it is to the lines that make up the character pattern corresponding to the stroke,
If the average value of a plurality of specified values is selected from the one with the lowest value among the larger values), the specified number of values must be determined until the comparison test of the number corresponding to the specified value is performed. A predetermined initial value is used as the result of the comparison test that is insufficient.

【0005】この所定の初期値としては、通常、比較検
定結果の最高値が用いられるため、手書き文字の最初の
方のストロークに対する比較検定の結果が小さな値で
も、上述した平均値である類似度は小さくならず、従っ
て手書き文字にあまり近似していない文字パターンとの
比較検定が中止されるまでに時間がかかる課題があっ
た。
Since the highest value of the comparison test result is usually used as the predetermined initial value, even if the result of the comparison test for the first stroke of the handwritten character is a small value, the similarity which is the above-mentioned average value. However, there is a problem that it takes time until the comparison and verification with the character pattern that is not so close to the handwritten character is stopped.

【0006】その結果、文字認識結果を得るまでに時間
がかかり、使用者に煩わしさを感じさせる課題があっ
た。
As a result, there is a problem in that it takes time to obtain the character recognition result and the user feels troublesome.

【0007】そこで、所定の閾値を大きな値にする方法
があるが、例えば手書き文字が傾いていたり、手書き文
字のハネが大きかったりなど、手書き文字に、使用者固
有の特徴がある場合には、正解の文字パターンに対する
比較検定が中止され易くなり、その結果認識率が低下す
る課題があった。
Therefore, there is a method of increasing the predetermined threshold value, but if the handwritten character has a characteristic peculiar to the user, for example, the handwritten character is slanted, or the amount of the handwritten character is large, There is a problem that the comparison test for the correct character pattern is easily stopped, and as a result, the recognition rate decreases.

【0008】また、辞書に、他の文字との違いを詳細に
記述しておき、その記述に基づいて、手書き文字と近似
している文字パターンと、近似していない文字パターン
とを区別する方法が考えられるが、この方法でも、手書
き文字に使用者固有の特徴がある場合には、その手書き
文字が、辞書の詳細な記述に合致せず、認識率が低下す
る課題があった。
Further, a method of describing in detail the difference from other characters in a dictionary and distinguishing a character pattern that is similar to a handwritten character and a character pattern that is not similar to a handwritten character based on the description However, even in this method, if the handwritten character has a characteristic peculiar to the user, the handwritten character does not match the detailed description in the dictionary, and there is a problem that the recognition rate is lowered.

【0009】さらに、この場合、辞書の記述に、膨大な
時間と労力が必要で、またその辞書の容量は大きくな
り、装置が高コスト化する課題があった。
Further, in this case, there is a problem that enormous amount of time and labor are required to describe the dictionary, the capacity of the dictionary becomes large, and the cost of the apparatus increases.

【0010】本発明は、このような状況に鑑みてなされ
たものであり、認識率を低下させることなく、認識速度
を向上させることができるようにするものである。
The present invention has been made in view of such a situation, and it is possible to improve the recognition speed without lowering the recognition rate.

【0011】[0011]

【課題を解決するための手段】請求項1に記載の手書き
文字認識装置は、手書きで入力された手書き文字を認識
する手書き文字認識装置において、標準の文字パターン
を記憶している記憶手段(例えば、図1に示す辞書4な
ど)と、手書き文字の特徴量を抽出する抽出手段(例え
ば、図1に示す特徴抽出装置2など)と、抽出手段によ
り抽出された特徴量を、記憶手段に記憶されている標準
の文字パターンと比較検定することにより、その標準の
文字パターンに対する、手書き文字の類似度を算出し、
その類似度に基づいて、文字認識結果候補を求める検定
手段(例えば、図1に示す認識装置5など)とを備え、
検定手段が、比較検定を、所定の単位ごとに行い、その
所定の単位ごとに類似度を算出し、その類似度と、所定
の閾値とを比較し、その比較結果に応じて、標準の文字
パターンとの比較検定を中止して、次の標準の文字パタ
ーンとの比較検定を開始し、所定の場合に、所定の閾値
を変更することを特徴とする。
A handwritten character recognition apparatus according to claim 1 is a handwritten character recognition apparatus for recognizing a handwritten character input by handwriting. , A dictionary 4 shown in FIG. 1), an extraction unit for extracting the feature amount of the handwritten character (for example, the feature extraction device 2 shown in FIG. 1), and the feature amount extracted by the extraction unit are stored in the storage unit. By comparing and verifying with the standard character pattern that has been calculated, the similarity of the handwritten character to the standard character pattern is calculated,
A verification means (for example, the recognition device 5 shown in FIG. 1) for obtaining character recognition result candidates based on the similarity,
The verification means performs a comparison test for each predetermined unit, calculates a similarity for each predetermined unit, compares the similarity with a predetermined threshold, and then, according to the comparison result, a standard character It is characterized in that the comparison test with the pattern is stopped, the comparison test with the next standard character pattern is started, and the predetermined threshold value is changed in a predetermined case.

【0012】請求項2に記載の手書き文字認識装置は、
検定手段が、所定の閾値を、いま比較検定を行っている
手書き文字のストローク数に対応して変更することを特
徴とする。
A handwritten character recognition device according to a second aspect is
The verification means is characterized in that the predetermined threshold value is changed in accordance with the number of strokes of the handwritten character for which the comparison test is being performed.

【0013】請求項3に記載の手書き文字認識装置は、
検定手段が、所定の閾値を、手書き文字の書き始めのス
トロークに対しては、それ以降のストロークに対するよ
りも、比較検定が中止され易い値にすることを特徴とす
る。
A handwritten character recognizing apparatus according to claim 3 is
The verification means is characterized in that the predetermined threshold value is set to a value at which the comparison verification is more likely to be stopped for the stroke at the beginning of writing the handwritten character than for the subsequent strokes.

【0014】請求項4に記載の手書き文字認識装置は、
検定手段が、手書き文字の全ストローク数と、所定の画
数とを比較し、その比較結果に応じて、所定の閾値を、
手書き文字の全ストロークにわたって、比較検定が中止
され難い値にすることを特徴とする。
A handwritten character recognizing device according to a fourth aspect is
The verification means compares the total number of strokes of the handwritten character with a predetermined number of strokes, and according to the comparison result, a predetermined threshold value,
It is characterized in that the comparison test is hard to be stopped over the entire stroke of the handwritten character.

【0015】[0015]

【作用】請求項1に記載の手書き文字認識装置において
は、標準の文字パターンと手書き文字との比較検定が、
所定の単位ごとに行われ、その所定の単位ごとに類似度
が算出される。そして、その類似度と、所定の場合に変
更される所定の閾値とが比較され、その比較結果に応じ
て、標準の文字パターンとの比較検定が中止されて、次
の標準の文字パターンとの比較検定が開始される。従っ
て、例えば手書き文字の書き始めの方の軌跡と近似して
いない文字パターンに対する比較検定を早く中止するこ
とができるようになり、その結果、認識率を低下させる
ことなく、認識速度を向上させることができる。
In the handwritten character recognition device according to claim 1, the comparison test between the standard character pattern and the handwritten character is performed.
The process is performed for each predetermined unit, and the similarity is calculated for each predetermined unit. Then, the similarity is compared with a predetermined threshold value changed in a predetermined case, and according to the comparison result, the comparison test with the standard character pattern is stopped, and the next standard character pattern is compared. The comparison test is started. Therefore, for example, it becomes possible to quickly stop the comparison test for a character pattern that is not close to the trajectory of the handwriting character at the beginning of writing, and as a result, improve the recognition speed without lowering the recognition rate. You can

【0016】請求項2に記載の手書き文字認識装置にお
いては、所定の閾値が、いま比較検定を行っている手書
き文字のストローク数に対応して変更される。従って、
例えば手書き文字の書き始めの方のストロークと近似し
ていない文字パターンに対する比較検定を早く中止する
ことができるようになり、その結果、認識率を低下させ
ることなく、認識速度を向上させることができる。
In the handwritten character recognition device according to the second aspect of the present invention, the predetermined threshold value is changed corresponding to the number of strokes of the handwritten character for which the comparison test is being performed. Therefore,
For example, it becomes possible to quickly stop the comparison test for a character pattern that does not approximate the stroke at the beginning of handwriting, and as a result, the recognition speed can be improved without lowering the recognition rate. .

【0017】請求項3に記載の手書き文字認識装置にお
いては、所定の閾値が、手書き文字の書き始めのストロ
ークに対しては、それ以降のストロークに対するより
も、比較検定が中止され易い値にされる。従って、手書
き文字の書き始めの方のストロークと近似していない文
字パターンに対する比較検定が早く中止されるので、認
識率を低下させることなく、認識速度を向上させること
ができる。
In the handwritten character recognition apparatus according to the third aspect, the predetermined threshold value is set to a value at which the comparison verification is more likely to be stopped for the stroke at the beginning of writing the handwritten character than for the subsequent strokes. It Therefore, the comparison and verification for the character pattern that does not approximate the stroke at the beginning of the handwritten character is stopped early, so that the recognition speed can be improved without lowering the recognition rate.

【0018】請求項4に記載の手書き文字認識装置にお
いては、手書き文字の全ストローク数と、所定の画数と
が比較され、その比較結果に応じて、所定の閾値が、手
書き文字の全ストロークにわたって、比較検定が中止さ
れ難い値にされる。従って、例えば画数の少ない手書き
文字に対する比較検定が早く中止されることによる誤認
識を防止することができる。
In the handwritten character recognition device according to the present invention, the total number of strokes of the handwritten character is compared with a predetermined stroke number, and a predetermined threshold value is set for all strokes of the handwritten character according to the comparison result. , It is set to a value that makes it difficult to cancel the comparison test. Therefore, for example, it is possible to prevent erroneous recognition due to early termination of comparison and verification for handwritten characters with a small number of strokes.

【0019】[0019]

【実施例】図1は、本発明を適用した手書き文字認識装
置の一実施例の構成を示すブロック図である。入力ペン
1aは、手書き文字入力装置1に、手書き文字を入力す
るときに操作される。手書き文字入力装置1は、例えば
タブレットなどでなり、その上に、ペン1aで描かれた
(書かれた)手書き文字の軌跡を構成する点列の座標を
検出し、特徴抽出装置2に出力するようになされてい
る。さらに、手書き文字入力装置1は、ペン1aのペン
ダウンおよびペンアップも検出し、特徴抽出装置2に出
力するようになされている。
1 is a block diagram showing the configuration of an embodiment of a handwritten character recognition device to which the present invention is applied. The input pen 1a is operated when inputting handwritten characters into the handwritten character input device 1. The handwritten character input device 1 is, for example, a tablet, and detects the coordinates of a point sequence forming a trajectory of a handwritten character drawn (written) with the pen 1a on the tablet, and outputs it to the feature extraction device 2. It is done like this. Further, the handwritten character input device 1 detects the pen-down and pen-up of the pen 1 a and outputs it to the feature extraction device 2.

【0020】なお、手書き文字入力装置1は、例えば透
明な部材でなるタブレットで構成され、図示せぬ表示装
置と一体に構成されている。
The handwritten character input device 1 is composed of, for example, a tablet made of a transparent member and is integrated with a display device (not shown).

【0021】特徴抽出装置2は、手書き文字入力装置1
からの手書き文字の軌跡を構成する点列の座標から、そ
の手書き文字の特徴量を、例えば1ストローク(ペン1
aが、ペンダウンされてからペンアップされるまでに描
かれる軌跡)単位で抽出し、特徴バッファ3に出力する
ようになされている。また、特徴抽出装置2は、ペン1
aが、ペンアップされてから所定の時間経過しても、ペ
ンダウンされない場合には、1文字の手書き入力が終了
したものとして、1文字の入力の終了を示す終了信号
を、認識装置5に出力するようになされている。
The feature extraction device 2 is a handwritten character input device 1.
From the coordinates of the point sequence forming the trajectory of the handwritten character from, the feature amount of the handwritten character is calculated, for example, by one stroke (pen 1
a is extracted in units of a locus drawn from pen-down to pen-up and is output to the feature buffer 3. In addition, the feature extraction device 2 uses the pen 1
When a is not pen-downed for a predetermined time after pen-up, it is determined that handwriting input of one character is completed, and an end signal indicating the end of inputting one character is output to the recognition device 5. It is designed to do.

【0022】なお、手書き文字入力装置1には、所定数
の文字入力枠を設け、この文字入力枠に、ペン1aによ
る手書き文字の入力を行うようにすることができ、この
場合においては、ペン1aがペンダウンされた文字入力
枠が、前回ペンダウンされた文字入力枠と異なるときな
どに、1文字の手書き入力が終了したものとして、特徴
抽出装置2に、1文字の入力の終了を示す終了信号を出
力させるようにすることができる。
The handwritten character input device 1 may be provided with a predetermined number of character input frames, and handwritten characters may be input by the pen 1a into the character input frames. When the character input box in which 1a is pen-down is different from the character input box in which the pen-down is performed last time, it is determined that the handwriting input of one character is completed, and the end signal indicating the end of the input of one character is input to the feature extraction device 2. Can be output.

【0023】特徴バッファ3は、特徴抽出装置2からの
特徴量を一時記憶するようになされている。認識装置5
は、特徴抽出装置2から終了信号を受信すると、特徴バ
ッファ3に記憶された手書き文字の特徴量を読み出し、
辞書4にあらかじめ登録された標準の文字パターンの特
徴量と比較検定するようになされている。さらに、認識
装置5は、その比較検定結果に基づいて、辞書4に登録
されている文字パターンそれぞれに対する、手書き入力
文字の類似度(手書き文字が、文字パターンに近似して
いるほど、大きな値とされる)を算出し、その類似度か
ら、認識結果候補としての文字パターンを求めて、認識
候補バッファ7に出力するようになされている。なお、
認識装置5は、後述する認識処理を行うための認識プロ
グラムを記憶しているROM、このROMに記憶された
プログラムにしたがって処理を行うCPU、およびこの
CPUの動作上必要なデータを一時記憶するRAM(い
ずれも図示せず)などから構成されている。
The feature buffer 3 is adapted to temporarily store the feature amount from the feature extracting device 2. Recognition device 5
When the end signal is received from the feature extraction device 2, reads out the feature amount of the handwritten character stored in the feature buffer 3,
A comparison and verification is performed with the characteristic amount of a standard character pattern registered in the dictionary 4 in advance. Further, the recognition device 5 determines, based on the comparison test result, the similarity of the handwritten input character to each of the character patterns registered in the dictionary 4 (the closer the handwritten character is to the character pattern, the larger the value. Is calculated, a character pattern as a recognition result candidate is obtained from the similarity, and the character pattern is output to the recognition candidate buffer 7. In addition,
The recognition device 5 includes a ROM that stores a recognition program for performing a recognition process described later, a CPU that performs processing according to the program stored in the ROM, and a RAM that temporarily stores data necessary for the operation of the CPU. (None of them are shown).

【0024】比較結果バッファ6は、認識装置5から出
力される比較検定の途中結果を、一時記憶するようにな
されている。認識候補バッファ7は、認識装置5から出
力される認識結果候補(後述する文字コード)を、その
類似度とともに記憶するようになされている。
The comparison result buffer 6 is adapted to temporarily store the intermediate result of the comparison test output from the recognition device 5. The recognition candidate buffer 7 stores the recognition result candidates (character codes described later) output from the recognition device 5 together with the degree of similarity.

【0025】次に、その動作について説明する。ペン1
aが操作され、手書き文字入力装置1に対し、手書き文
字の入力があると、その手書き文字のデータ(手書き文
字の軌跡を構成する点列の座標)が、1ストローク単位
で、手書き文字入力装置1から特徴抽出装置2に出力さ
れる。特徴抽出装置2では、手書き文字入力装置1から
の手書き文字の特徴量が、1ストローク単位で抽出さ
れ、特徴バッファ3に出力されて記憶される。
Next, the operation will be described. Pen 1
When a is operated and a handwritten character is input to the handwritten character input device 1, the data of the handwritten character (coordinates of the point sequence forming the trajectory of the handwritten character) is stroked in units of the handwritten character input device. 1 to the feature extraction device 2. In the feature extraction device 2, the feature amount of the handwritten character from the handwritten character input device 1 is extracted in units of strokes, output to the feature buffer 3 and stored.

【0026】即ち、特徴抽出装置2は、例えば図2に示
すような基本ストロークテーブルを記憶しており、手書
き文字入力装置1からの1ストロークの手書き入力が、
同図に示すような4個の基本ストロークそれぞれとみな
せる割合(以下、形状判定値という)を算出する。な
お、この4個の基本ストロークには、ユニークなコード
としての基本ストロークコード0乃至3がそれぞれ付さ
れており、形状判定値は、基本ストロークコードととも
に、特徴バッファ3に出力されて記憶されるようになさ
れている。
That is, the feature extraction device 2 stores a basic stroke table as shown in FIG. 2, for example, and one stroke of handwritten input from the handwritten character input device 1 is
A ratio (hereinafter referred to as a shape determination value) that can be regarded as each of the four basic strokes as shown in the figure is calculated. It should be noted that basic stroke codes 0 to 3 as unique codes are respectively attached to the four basic strokes, and the shape determination value is output to the feature buffer 3 and stored together with the basic stroke code. Has been done.

【0027】また、特徴抽出装置2は、前回のストロー
クに対する今回のストロークの方向を検出し、それを、
いわば量子化したものも、手書き文字の特徴量として抽
出する。具体的には、例えば前回のストロークの始点
(ペン1aがペンダウンされた座標)に対する今回のス
トロークの始点(ペン1aがペンダウンされた座標)ま
たは終点(ペン1aがペンアップされた座標)それぞれ
の方向(以下、それぞれを適宜、始点−始点、または始
点−終点の方向という)、および前回のストロークの終
点に対する今回のストロークの始点または終点それぞれ
の方向(以下、それぞれを適宜、終点−始点、または終
点−終点の方向という)が検出される。そして、これら
の4つの方向(始点−始点、始点−終点、終点−始点、
終点−終点それぞれの方向)それぞれが、例えば図3に
示す、ユニークなコードとしての方向コードが付された
方向のうちのいずれに最も近いかが検出され、その検出
された方向に付された方向コードが、特徴抽出装置2か
ら特徴バッファ3に出力されて記憶される。
Further, the feature extraction device 2 detects the direction of the current stroke with respect to the previous stroke, and
In other words, the quantized one is also extracted as the feature amount of the handwritten character. Specifically, for example, the direction of each of the start point (coordinates at which pen 1a is pen-down) or the end point (coordinates at which pen 1a is pen-down) or the end point (coordinates at which pen 1a is pen-up) relative to the start point of the previous stroke (coordinates at which pen 1a is pen-down). (Hereinafter, each is referred to as a start point-start point, or a start point-end point direction as appropriate), and the direction of each of the start point and the end point of the current stroke with respect to the end point of the previous stroke (hereinafter, respectively, as appropriate, end point-start point, or end point). The direction of the end point) is detected. Then, these four directions (start point-start point, start point-end point, end point-start point,
End direction-direction of each end point) It is detected which one of the directions to which the direction code as a unique code shown in FIG. 3 is closest, and the direction code given to the detected direction is detected. Is output from the feature extraction device 2 to the feature buffer 3 and stored therein.

【0028】例えば、図4に示すように番号を付した順
番で、矢印の方向にしたがって、手書き文字「上」の入
力があった場合には、図5に示すような特徴量が、特徴
バッファ3に記憶される。
For example, when handwritten characters "up" are input in the order of numbers as shown in FIG. 4 in the direction of the arrow, the feature amount as shown in FIG. 3 is stored.

【0029】なお、図5において、ストローク数とは、
手書き入力されたストロークの順番を示している(図4
に示したストロークに付した番号に対応している)。ま
た、図5においては、形状判定値は、その最高値を10
0としてあり、手書き入力されたストロークが、基本ス
トロークに近似する割合が小さくなるほど、小さな値に
してある。
In FIG. 5, the number of strokes means
The order of strokes input by handwriting is shown (Fig. 4
Corresponds to the number attached to the stroke shown in). Further, in FIG. 5, the maximum shape determination value is 10
It is set to 0, and is set to a smaller value as the proportion of strokes input by handwriting becomes closer to the basic stroke.

【0030】さらに、方向コードは、上述したように、
前回のストロークに対する今回のストロークの方向に対
応するものであるから、ストローク数が1の場合には、
特徴バッファ3に記憶されない(手書き文字の最初のス
トロークに対しては、特徴抽出装置2において、方向
(方向コード)の抽出は行われない)。
Further, the direction code is, as described above,
Since it corresponds to the direction of this stroke relative to the previous stroke, if the number of strokes is 1,
It is not stored in the feature buffer 3 (the feature extraction device 2 does not extract the direction (direction code) for the first stroke of the handwritten character).

【0031】以上のようにして、手書き文字の特徴量
(本実施例においては、形状判定値および方向コード)
が、1ストローク単位で抽出されて特徴バッファ3に記
憶され、その後、特徴抽出装置2から認識装置5に、終
了信号が出力されると、即ち特徴バッファ3に手書き文
字の全ストロークに対する特徴量が記憶されると、認識
装置5において、辞書4を参照しながら、手書き文字の
文字認識処理が行われる。
As described above, the feature amount of the handwritten character (the shape determination value and the direction code in this embodiment).
Is extracted in units of one stroke and stored in the feature buffer 3, and thereafter, when the end signal is output from the feature extraction device 2 to the recognition device 5, that is, the feature amount for all strokes of the handwritten character is output to the feature buffer 3. When stored, the recognition device 5 performs the character recognition process of the handwritten character while referring to the dictionary 4.

【0032】ここで、図6は、辞書4の構成を示してい
る。辞書4は、標準の文字パターンに付されたユニーク
なコード(但し、後述するように、認識候補バッファ7
をクリアするための初期値として用いられるコードを除
く)としての文字コード、その文字を書く(描く)のに
必要な基本ストロークの基本ストロークコード(図
2)、文字を正しい書き順で書くときに連続して入力さ
れる基本ストロークの間の方向を示す方向コード(図
3)、および終了コードから構成されている。基本スト
ロークコードは、その文字を書くときの正しい書き順に
対応する順番で記述されており、連続する基本ストロー
クに対応する基本ストロークコードの間には、その連続
する基本ストローク間の4つの方向コード(始点−始
点、始点−終点、終点−始点、終点−終点それぞれの方
向の方向コード)が記述されている。
FIG. 6 shows the structure of the dictionary 4. The dictionary 4 is a unique code added to a standard character pattern (however, as will be described later, the recognition candidate buffer 7
Character code (excluding the code used as the initial value for clearing), the basic stroke code of the basic stroke required to write (draw) that character (Fig. 2), when writing characters in the correct stroke order It is composed of a direction code (FIG. 3) indicating a direction between continuously input basic strokes and an end code. The basic stroke codes are described in the order corresponding to the correct writing order when writing the character, and between the basic stroke codes corresponding to the continuous basic strokes, the four direction codes between the continuous basic strokes ( Start point-start point, start point-end point, end point-start point, end point-end point direction code) are described.

【0033】そして、最後の1ストロークの基本ストロ
ークコードの後には、終了コードが記述され、さらにそ
の後に、文字コードが記述されている。
The end code is described after the last basic stroke code of one stroke, and further, the character code is described after that.

【0034】辞書4には、以上のような記述パターンが
繰り返されて、種々の標準の文字の特徴量が、あらかじ
め登録されている。
The above-described description patterns are repeated in the dictionary 4, and various standard character feature amounts are registered in advance.

【0035】なお、方向コードは、図3に示したよう
に、0乃至15の16種類のコードで表されるが、辞書
4においては、この方向コードが、16進数で示されて
いる。また、辞書4では、方向コードが、160の位に
記述され、さらにその方向コードが、始点−始点、始点
−終点、終点−始点、または終点−終点の方向を示すも
のである場合には、それぞれ、その161の位に1乃至
4が記述されるようになされている。
The direction code is represented by 16 kinds of codes of 0 to 15 as shown in FIG. 3, and in the dictionary 4, the direction code is represented by a hexadecimal number. Further, in the dictionary 4, the direction code is described in the place of 16 0 , and when the direction code indicates the direction of start point-start point, start point-end point, end point-start point, or end point-end point, , 1 to 4 are respectively described in the 16 1 position thereof.

【0036】従って、辞書4では、始点−始点、始点−
終点、終点−始点、または終点−終点の方向コードが、
10h乃至1Fh,20h乃至2Fh,30h乃至3F
h、または40h乃至4Fhの範囲の値で、それぞれ表
現されている(hは、16進数を示す)。
Therefore, in the dictionary 4, starting point-starting point, starting point-
The direction code of end point, end point-start point, or end point-end point is
10h to 1Fh, 20h to 2Fh, 30h to 3F
h, or a value in the range of 40h to 4Fh, respectively (h represents a hexadecimal number).

【0037】さらに、終了コードも16進数で表現され
ており、その値は、例えば50hとされている。
Further, the end code is also represented by a hexadecimal number, and its value is, for example, 50h.

【0038】また、使用者が、常に、正しい書き順で手
書き文字の入力を行うとは限らないので、辞書4には、
正しい書き順の他、予想される誤った書き順に対応する
順番でも、基本ストロークコードなどの記述が、別途な
されている。
Since the user does not always input handwritten characters in the correct stroke order, the dictionary 4 is
In addition to the correct writing order, the basic stroke code and the like are separately described in the order corresponding to the expected incorrect writing order.

【0039】認識装置5では、以上のような辞書4を用
いて、特徴バッファ3に記憶された特徴量から、例えば
図7に示すフローチャートにしたがって手書き文字の認
識が行われる。
The recognition device 5 recognizes handwritten characters from the feature quantity stored in the feature buffer 3 using the dictionary 4 as described above, for example, according to the flowchart shown in FIG.

【0040】即ち、まず最初にステップS1において、
認識候補バッファ7の初期化や辞書4に対する読み出し
アドレス(以下、適宜、辞書読み出しアドレスという)
の初期化などの文字認識開始処理が行われ、ステップS
2に進み、辞書4に登録された文字に対する、後述する
ステップS3乃至S6の処理が開始されるごとに行われ
る現文字検定開始処理が行われ、ステップS3に進む。
That is, first of all, in step S1,
Initialization of the recognition candidate buffer 7 and read address for the dictionary 4 (hereinafter, appropriately referred to as dictionary read address)
Character recognition start processing such as initialization of
2, the current character verification start process is performed every time the processes of steps S3 to S6 described later are started for the characters registered in the dictionary 4, and the process proceeds to step S3.

【0041】ステップS3では、辞書4に記憶された標
準の文字パターンのデータに対する、特徴バッファ4に
記憶された手書き文字の特徴量の比較検定が、例えば辞
書4の記述単位(図6に示した辞書4の基本ストローク
コードや方向コードが記述された欄単位)で行われる。
なお、ステップS3においては、上述の処理の前に、ま
ず手書き文字の比較検定が、現文字パターン(後述す
る)となっている、辞書4に登録されている文字パター
ンの記述すべてに対して行われたか否かが判定される。
In step S3, the comparison test of the feature amount of the handwritten character stored in the feature buffer 4 with respect to the standard character pattern data stored in the dictionary 4 is performed by, for example, the description unit of the dictionary 4 (shown in FIG. 6). It is performed for each column in which the basic stroke code and the direction code of the dictionary 4 are described).
In step S3, before the above-described processing, the comparison test of handwritten characters is first performed for all the descriptions of the character patterns registered in the dictionary 4, which are the current character patterns (described later). It is determined whether or not it has been broken.

【0042】ステップS3において、手書き文字の比較
検定が、上述の文字パターンの記述すべてに対して、ま
だ行われていないと判定された場合、ステップS4に進
み、いままでの比較検定結果から、いま参照している辞
書4の文字パターンに対する比較検定を続行するか、ま
たは中止するかが決定される。
If it is determined in step S3 that the comparison test of the handwritten characters has not been performed for all the descriptions of the above-mentioned character patterns, the process proceeds to step S4 and the comparison test results up to now are used. It is determined whether to continue or stop the comparison test for the character pattern of the dictionary 4 referred to.

【0043】ステップS4において、いま参照している
辞書4の文字パターンに対する比較検定を続行すると決
定された場合、ステップS3に戻り、ステップS3から
の処理を繰り返す。また、ステップS4において、いま
参照している辞書4の文字パターンに対する比較検定を
中止すると決定された場合、ステップS6に進む。
When it is determined in step S4 to continue the comparison test for the character pattern of the dictionary 4 which is being referred to, the process returns to step S3 and the processes from step S3 are repeated. When it is determined in step S4 that the comparison test for the character pattern of the dictionary 4 that is being referred to is to be stopped, the process proceeds to step S6.

【0044】一方、ステップS3において、手書き文字
の比較検定が、上述の文字パターンの記述すべてに対し
て行われたと判定された場合、ステップS5に進み、認
識候補バッファ7の、後述する書換処理が行われ、ステ
ップS6に進む。
On the other hand, if it is determined in step S3 that the comparison test of the handwritten characters has been performed for all the above described character pattern descriptions, the process proceeds to step S5, and the rewriting process of the recognition candidate buffer 7 described later is performed. After that, the process proceeds to step S6.

【0045】ステップS6では、手書き文字との比較検
定を行っていない文字パターンが、辞書4に存在するか
否かが判定される。ステップS6において、手書き文字
との比較検定を行っていない文字パターンが、辞書4の
中に、まだあると判定された場合、ステップS2に戻
り、辞書読み出しアドレスが更新され、再びステップS
2からの処理が繰り返される。一方、ステップS6にお
いて、手書き文字との比較検定を行っていない文字パタ
ーンが、辞書4の中にないと判定された場合、処理を終
了する。
In step S6, it is determined whether or not there is a character pattern in the dictionary 4 that has not been compared and verified with handwritten characters. If it is determined in step S6 that there is a character pattern in the dictionary 4 that has not been compared and verified with the handwritten character, the process returns to step S2, the dictionary read address is updated, and step S is performed again.
The process from 2 is repeated. On the other hand, in step S6, when it is determined that the character pattern that has not been subjected to the comparison test with the handwritten character is not in the dictionary 4, the process ends.

【0046】なお、ステップS1またはS2の処理は、
後述する図8のステップS100およびS101または
S102乃至S104の処理に、それぞれ対応する。ま
た、ステップS3の処理は、図8のステップS105乃
至S109および後述する図14のステップS110乃
至S116の処理に、ステップS4の処理は、後述する
図12のステップS120乃至S131の処理に、ステ
ップS5の処理は、後述する図16のステップS140
乃至155の処理に、ステップS6の処理は、後述する
図13のステップS160およびS161の処理に、そ
れぞれ対応する。
The processing in step S1 or S2 is
This corresponds to the processing of steps S100 and S101 or S102 to S104 of FIG. 8 described later, respectively. Further, the process of step S3 is the process of steps S105 to S109 of FIG. 8 and steps S110 to S116 of FIG. 14 described later, and the process of step S4 is the process of steps S120 to S131 of FIG. 12 described later, and step S5. The process of step S140 of FIG.
Through 155, the process of step S6 corresponds to the process of steps S160 and S161 of FIG.

【0047】次に、図8、図12乃至図14、および図
16のフローチャートを参照して、図7のフローチャー
トに示した処理の詳細について説明する。
Next, the details of the processing shown in the flowchart of FIG. 7 will be described with reference to the flowcharts of FIGS. 8, 12 to 14, and 16.

【0048】まず最初に、図8のステップS100にお
いて、認識候補バッファ7の初期化が行われる。
First, in step S100 of FIG. 8, the recognition candidate buffer 7 is initialized.

【0049】ここで、認識候補バッファ7には、例えば
図9に示すような、手書き文字の認識結果候補の文字コ
ードと、その文字に対する手書き文字の類似度とを記憶
する変数BPの領域が、あらかじめ確保されている。こ
の変数BPは、配列変数であり、変数BP[i]には、そ
のインデックス(サブスクリプト)(添字)(番号)i
が小さいものほど、類似度の大きい文字コードが記憶さ
れるようになされている。図9においては、インデック
ス(番号)iは、例えば0乃至5の範囲の値をとること
ができるようになされている。即ち、変数BP[i]に
は、類似度の高い順に、6個の文字コードを、認識結果
候補として、その類似度とともに記憶することができる
ようになされている。変数BP[i](認識候補バッフ
ァ7)が、類似度とともに記憶することのできる文字コ
ードの数(本実施例においては、上述したように6個)
を、以下、適宜、候補バッファ数という。
Here, in the recognition candidate buffer 7, for example, as shown in FIG. 9, a region of a variable B P for storing a character code of a recognition result candidate of a handwritten character and a similarity of the handwritten character with respect to the character. , Reserved in advance. This variable B P is an array variable, and the variable B P [i] has its index (subscript) (subscript) (number) i.
The smaller the number is, the larger the character code having the higher degree of similarity is stored. In FIG. 9, the index (number) i can take a value in the range of 0 to 5, for example. That is, in the variable B P [i], six character codes can be stored as the recognition result candidates together with the similarity in descending order of similarity. The number of character codes that the variable B P [i] (recognition candidate buffer 7) can store together with the degree of similarity (in the present embodiment, 6 as described above).
Hereinafter, the number of candidate buffers will be referred to as appropriate.

【0050】ステップS100では、変数BP[0]の
文字コードが、初期値としての、例えば0にされること
により(変数BP[0]の文字コードを記憶すべき領域
に0が代入されることにより)、認識候補バッファ7の
初期化が行われ、ステップS101に進み、辞書読み出
しアドレスが、例えば辞書4の先頭のアドレスに設定さ
れ、ステップS102に進む。
In step S100, the character code of the variable B P [0] is set to, for example, 0 as an initial value (0 is assigned to the area for storing the character code of the variable B P [0]). By doing so, the recognition candidate buffer 7 is initialized, the process proceeds to step S101, the dictionary read address is set to, for example, the first address of the dictionary 4, and the process proceeds to step S102.

【0051】ステップS102では、比較結果バッファ
6の初期化が行われる。
In step S102, the comparison result buffer 6 is initialized.

【0052】ここで、比較結果バッファ6には、例えば
図10に示すような、手書き文字の比較検定の結果得ら
れる比較結果値を記憶する変数BCの領域が、あらかじ
め確保されている。この変数BCも、上述した変数B
P[i]と同様に、配列変数であり、変数BC[j]に
は、そのインデックス(番号)jが大きいものほど、小
さい比較結果値が記憶されるようになされている。図1
0においては、インデックスjは、例えば0乃至3の範
囲の値をとることができるようになされている。即ち、
変数BC[j]には、比較結果値を、4個だけ記憶する
ことができるようになされている。
Here, in the comparison result buffer 6, for example, as shown in FIG. 10, an area of a variable B C for storing a comparison result value obtained as a result of comparison test of handwritten characters is secured in advance. This variable B C is also the above-mentioned variable B
Similar to P [i], it is an array variable, and the variable B C [j] stores a smaller comparison result value as the index (number) j increases. Figure 1
At 0, the index j can take values in the range of 0 to 3, for example. That is,
Only four comparison result values can be stored in the variable B C [j].

【0053】なお、変数BC[0]乃至BC[3]に記憶
された比較結果値は、後述するように相加平均され、そ
の結果得られる平均値が、類似度とされるので、変数B
C[j]が記憶することのできる比較結果値の数(上述
したように、本実施例においては、4個)を、以下、適
宜、平均化個数という。
The comparison result values stored in the variables B C [0] to B C [3] are arithmetically averaged as described later, and the average value obtained as a result is taken as the similarity, Variable B
The number of comparison result values that can be stored in C [j] (4 in this embodiment as described above) is hereinafter referred to as an averaged number as appropriate.

【0054】ステップS102においては、変数B
C[j]のすべてに、例えば比較結果値の最高値(本実
施例においては、例えば100とする)が、初期値とし
てセットされることにより、比較結果バッファ6の初期
化が行われる。
In step S102, the variable B
The comparison result buffer 6 is initialized by setting, for example, the highest comparison result value (for example, 100 in this embodiment) to all C [j] as an initial value.

【0055】即ち、ステップS102では、図11のフ
ローチャートに示すように、まずステップS200にお
いて、変数BC[j]のインデックス(以下、適宜、比
較結果バッファカウンタという)iがクリアされ(0に
され)、ステップS201に進み、変数[j]に初期値
(上述したように、100)が代入され、ステップS2
02に進む。
That is, in step S102, as shown in the flowchart of FIG. 11, first, in step S200, the index i of the variable B C [j] (hereinafter referred to as a comparison result buffer counter) i is cleared (set to 0). ), The process proceeds to step S201, the initial value (100 as described above) is assigned to the variable [j], and step S2
Go to 02.

【0056】ステップS202では、比較結果バッファ
カウンタjが1だけインクリメントされ、ステップS2
03に進み、比較結果バッファカウンタjが、平均化個
数より小さいか否かが判定される。ステップS203に
おいて、比較結果バッファカウンタjが、平均化個数よ
り小さいと判定された場合、即ち変数BC[j]のすべ
てに、まだ初期値がセットされていない場合、ステップ
S201に戻り、ステップS203において、比較結果
バッファカウンタjが、平均化個数より小さくないと判
定されるまで、ステップS201乃至S203の処理を
繰り返す。
In step S202, the comparison result buffer counter j is incremented by 1, and in step S2
In 03, it is determined whether the comparison result buffer counter j is smaller than the averaged number. When it is determined in step S203 that the comparison result buffer counter j is smaller than the averaged number, that is, when the initial values have not been set in all the variables B C [j], the process returns to step S201 and step S203. In, the processing of steps S201 to S203 is repeated until it is determined that the comparison result buffer counter j is not smaller than the averaged number.

【0057】一方、ステップS203において、比較結
果バッファカウンタjが、平均化個数より小さくないと
判定された場合、即ち変数BC[j]のすべてに、初期
値がセットされた場合、処理を終了する。
On the other hand, if it is determined in step S203 that the comparison result buffer counter j is not smaller than the averaged number, that is, if the initial values are set in all the variables B C [j], the processing is terminated. To do.

【0058】図8に戻り、以上のようにして、ステップ
S102において、比較結果バッファ6の初期化が行わ
れた後、ステップS103に進み、特徴バッファ3の読
み出しアドレス(以下、適宜、バッファ読み出しアドレ
スという)が、手書き文字の最初のストロークの基本ス
トロークコードおよび方向コードが記憶されたアドレス
(図5に示したストローク数が1の行のデータの先頭ア
ドレス)に設定され、ステップS104に進み、これか
ら比較検定を行う手書き文字のストロークが、何ストロ
ーク目のものかをカウントする変数としての現ストロー
クカウンタ(認識装置5を構成するRAMに、あらかじ
め確保されている領域)がクリアされ(0にされ)、ス
テップS105に進む。
Returning to FIG. 8, after the comparison result buffer 6 is initialized in step S102 as described above, the process proceeds to step S103, and the read address of the feature buffer 3 (hereinafter referred to as a buffer read address as appropriate). Is set to the address where the basic stroke code and the direction code of the first stroke of the handwritten character are stored (the head address of the data of the line in which the number of strokes is 1 shown in FIG. 5), and the process proceeds to step S104. The current stroke counter (area previously reserved in the RAM configuring the recognition device 5) as a variable for counting the stroke number of the stroke of the handwritten character to be compared and verified is cleared (set to 0). , And proceeds to step S105.

【0059】ステップS105では、辞書4の、辞書読
み出しアドレスが示すアドレスからデータ(基本ストロ
ークコード、方向コード、または終了コード)(以下、
適宜、これらを総称して、特徴コードという)が読み出
され、ステップS106に進み、ステップS105で読
み出された特徴コードが、0Fh以下であるか否かが判
定される。
In step S105, data (basic stroke code, direction code, or end code) from the address indicated by the dictionary read address in the dictionary 4 (hereinafter,
As appropriate, these are collectively referred to as a characteristic code), and the process proceeds to step S106 to determine whether the characteristic code read in step S105 is 0Fh or less.

【0060】ステップS106において、特徴コード
が、0Fh以下であると判定された場合、即ち特徴コー
ドが、基本ストロークコードである場合、ステップS1
07に進み、その基本ストロークコードに対応する形状
判定値が、比較結果値として、バッファ読み出しアドレ
スが示すストローク数の行のデータの中から読み出され
る。
If it is determined in step S106 that the characteristic code is 0Fh or less, that is, if the characteristic code is the basic stroke code, step S1.
In step 07, the shape determination value corresponding to the basic stroke code is read out as the comparison result value from the data of the row of the stroke number indicated by the buffer read address.

【0061】即ち、例えばいま、図5に示した特徴量
が、特徴バッファ3に記憶されており、辞書4として、
図6に示したものが用いられている場合、最初にステッ
プS107の処理が行われるときには、ステップS10
5で、辞書4から、文字コード「三」の先頭に記述され
た基本ストロークコード1が読み出されるので、ストロ
ーク数が1の行で、且つ基本ストロークコードが1の列
の形状判定値である0が、比較判定値として、特徴バッ
ファ3から読み出されることになる。
That is, for example, the feature quantity shown in FIG. 5 is stored in the feature buffer 3 as the dictionary 4,
When the one shown in FIG. 6 is used, when the process of step S107 is performed for the first time, step S10 is performed.
5, the basic stroke code 1 described at the beginning of the character code “3” is read from the dictionary 4, so that the shape determination value of the row having the number of strokes of 1 and the column having the basic stroke code of 1 is 0. Is read from the feature buffer 3 as the comparison determination value.

【0062】その後、ステップS107では、特徴バッ
ファ3から読み出された比較判定値としての形状判定値
が、認識装置5の内蔵する比較評価レジスタ(認識装置
5を構成するRAMに、あらかじめ確保されている領
域)にセットされ、ステップS108に進む。
After that, in step S107, the shape determination value as the comparison determination value read from the feature buffer 3 is secured in advance in the comparison evaluation register (RAM constituting the recognition device 5) built in the recognition device 5. Area) and the process proceeds to step S108.

【0063】ステップS108では、バッファ読み出し
アドレスが次のストロークの基本ストロークコードおよ
び方向コードが記憶されたアドレスに設定され(例え
ば、いまバッファ読み出しアドレスが、図5に示したス
トローク数が1の行のデータの先頭アドレスに設定され
ていた場合には、ストローク数が2の行のデータの先頭
アドレスに設定され)、ステップS109に進み、現ス
トロークカウンタが1だけインクリメントされ、図12
に示すステップS120に進む。
In step S108, the buffer read address is set to the address in which the basic stroke code and the direction code of the next stroke are stored (for example, the buffer read address is the row of which the number of strokes is 1 shown in FIG. 5). If it is set to the head address of the data, the number of strokes is set to the head address of the data of the line 2), the process proceeds to step S109, the current stroke counter is incremented by 1, and
Go to step S120 shown in.

【0064】図12のステップS120では、変数BC
[0]に記憶された比較結果値が、比較評価レジスタに
記憶された比較結果値以下であるか否かが判定される。
In step S120 of FIG. 12, the variable B C
It is determined whether or not the comparison result value stored in [0] is less than or equal to the comparison result value stored in the comparison evaluation register.

【0065】ここで、比較結果バッファ6に確保された
変数BC[0]乃至BC[3]には、手書き文字の比較結
果値が、降順にセットされるようになされている。本実
施例においては、手書き文字のストロークが、そのスト
ロークに対応する、文字パターンのストロークに近似し
ているほど、比較結果値は大きな値にされるようになさ
れている。比較結果値は、上述したように最高値が10
0としてあり、またその最低値は、例えば0としてあ
る。
Here, in the variables B C [0] to B C [3] secured in the comparison result buffer 6, the comparison result values of handwritten characters are set in descending order. In this embodiment, the closer the stroke of the handwritten character is to the stroke of the character pattern corresponding to the stroke, the larger the comparison result value is. The maximum value of the comparison result value is 10 as described above.
It is set to 0, and its minimum value is set to 0, for example.

【0066】さらに、本実施例では、辞書4に記述され
た基本ストロークコードに対する比較検定の結果、特徴
バッファ3から読み出される手書き文字を構成する各ス
トロークの形状判定値の他、各ストローク間の方向コー
ドと、辞書4に記憶された方向コードとの比較検定の結
果得られる方向差から、後述するようにして求められる
もの(以下、適宜、方向差判定値という)も、比較結果
値として用いられるようになされている。認識装置5
(後述する図13のステップS116)で求められる方
向差判定値と、上述したように特徴抽出装置2で求めら
れる形状判定値とは、類似度を算出するにあたって、同
一の重みを有するように決められるようになされている
が、これらのいずれかの重み付けを大きくするようにす
ることも可能である。
Further, in the present embodiment, as a result of the comparison test with respect to the basic stroke code described in the dictionary 4, the shape determination value of each stroke constituting the handwritten character read from the feature buffer 3 and the direction between the strokes are obtained. What is obtained as described below from the direction difference obtained as a result of the comparison test between the code and the direction code stored in the dictionary 4 (hereinafter appropriately referred to as direction difference determination value) is also used as the comparison result value. It is done like this. Recognition device 5
The direction difference determination value obtained in (Step S116 of FIG. 13 described later) and the shape determination value obtained by the feature extraction device 2 as described above are determined to have the same weight when calculating the similarity. However, it is possible to increase the weighting of any of these.

【0067】認識装置5では、辞書4に登録されたある
文字パターンに対して、手書き文字から得られる比較結
果値のうちの、例えば小さいものの4個の相加平均が、
その文字パターンに対する手書き文字の類似度とされる
ようになされている。従って、辞書4に登録されたある
文字パターンに対する、手書き文字の類似度を算出する
にあたっては、まずその文字パターンに対して、手書き
文字から得られる比較結果値のうちの、1乃至4番目に
小さいものを求める必要がある。
In the recognition device 5, for a certain character pattern registered in the dictionary 4, for example, the arithmetic mean of four small comparison result values obtained from handwritten characters is
The similarity of the handwritten character to the character pattern is set. Therefore, when calculating the similarity of a handwritten character with respect to a certain character pattern registered in the dictionary 4, first, the comparison result value obtained from the handwritten character is the 1st to 4th smallest for that character pattern. You need to ask for things.

【0068】そこで、上述したように、ステップS12
0において、比較結果値の、小さい方から4つのうちの
最大値がセットされるようになされている変数B
C[0]の記憶値(比較結果値)と、比較評価レジスタ
に記憶された比較結果値とが比較されるようになされて
いる。
Therefore, as described above, step S12
At 0, the variable B is set so that the maximum value of the four comparison result values from the smallest one is set.
The stored value (comparison result value) of C [0] is compared with the comparison result value stored in the comparison evaluation register.

【0069】そして、ステップS120において、比較
評価レジスタに記憶された比較結果値が、変数B
C[0]に記憶された比較結果値以上であると判定され
た場合、即ちある文字パターンに対して、いま得られた
比較結果値が、その文字パターンに対して、いままでに
得られた比較結果値のうちの、4番目に小さいもの以上
である場合、比較評価レジスタに記憶された比較結果値
を、変数BC[j](BC[0]乃至BC[3]のうちの
いずれか)にセットする必要はないから、ステップS1
21乃至S131の処理を行わずに、図8のステップS
105に戻る。
Then, in step S120, the comparison result value stored in the comparison evaluation register is the variable B.
If it is determined that the comparison result value stored in C [0] is greater than or equal to the comparison result value, that is, the comparison result value obtained for a certain character pattern has been obtained so far for that character pattern. If it is greater than or equal to the fourth smallest value among the comparison result values, the comparison result value stored in the comparison evaluation register is set to the variable B C [j] (B C [0] to B C [3]). Since it does not need to be set to either), step S1
21 to S131 without performing the processing of S131 of FIG.
Return to 105.

【0070】即ち、この場合、ステップS121乃至S
131の処理がスキップされるので、認識速度を向上さ
せることができる。
That is, in this case, steps S121 through S
Since the processing of 131 is skipped, the recognition speed can be improved.

【0071】一方、ステップS120において、比較評
価レジスタに記憶された比較結果値が、変数BC[0]
に記憶された比較結果値以上でないと判定された場合、
即ちある文字パターンに対して、いま得られた比較結果
値が、その文字パターンに対して、いままでに得られた
比較結果値のうちの、4番目に小さいものより小さい場
合、変数BC[0]乃至BC[3]それぞれに記憶された
比較結果値、および比較評価レジスタに記憶された比較
結果値のうちの最大値である変数BC[0]の記憶値を
除いた残りを、降順に並べ替えて、変数BC[0]乃至
C[3]にセットする処理が、ステップS121乃至
S126で行われる。
On the other hand, in step S120, the comparison result value stored in the comparison evaluation register is the variable B C [0].
If it is determined that it is not greater than or equal to the comparison result value stored in,
That is, when the comparison result value obtained for a character pattern is smaller than the fourth smallest comparison result value obtained so far for the character pattern, the variable B C [ 0] to B C [3], and the rest of the comparison result values stored in the comparison evaluation register excluding the stored value of the variable B C [0], which is the maximum value, The processing of rearranging in descending order and setting the variables B C [0] to B C [3] is performed in steps S121 to S126.

【0072】即ち、まずステップS121において、変
数BC[n](但し、n=0,1,2,3)のインデッ
クスである比較結果バッファカウンタ(認識装置5を構
成するRAMに、あらかじめ確保されている領域)nが
クリアされ(0にされ)、ステップS122に進み、変
数BC[n+1]に記憶された比較結果値が、比較評価
レジスタに記憶された比較結果値以下であるか否かが判
定される。ステップS122において、変数BC[n+
1]に記憶された比較結果値が、比較評価レジスタに記
憶された比較結果値以下であると判定された場合、即ち
比較評価レジスタに記憶された比較結果値が、変数BC
[n+1]の記憶値以上で、且つ変数BC[n]の記憶
値より小さい場合、ステップS123乃至S125をス
キップして、ステップS126に進む。
That is, first, in step S121, a comparison result buffer counter (which is an index of the variable B C [n] (where n = 0, 1, 2, 3) is secured in advance in the RAM constituting the recognition device 5). Area n) is cleared (set to 0), the process proceeds to step S122, and whether or not the comparison result value stored in the variable B C [n + 1] is less than or equal to the comparison result value stored in the comparison evaluation register. Is determined. In step S122, the variable B C [n +
1], it is determined that the comparison result value stored in the comparison evaluation register is less than or equal to the comparison result value stored in the comparison evaluation register, that is, the comparison result value stored in the comparison evaluation register is the variable B C.
If it is greater than or equal to the stored value of [n + 1] and smaller than the stored value of the variable B C [n], steps S123 to S125 are skipped and the process proceeds to step S126.

【0073】また、ステップS122において、変数B
C[n+1]に記憶された比較結果値が、比較評価レジ
スタに記憶された比較結果値以下でないと判定された場
合、ステップS123に進み、変数BC[n]に、変数
C[n+1]の記憶値がセットされ、ステップS12
4に進む。ステップS124では、比較結果バッファカ
ウンタnが1だけインクリメントされ、ステップS12
5に進み、比較結果バッファカウンタnが、平均化個数
(4)−1より小さいか否かが判定される。ステップS
125において、比較結果バッファカウンタnが、平均
化個数−1より小さいと判定された場合、即ち変数BC
[0]乃至BC[3]の記憶値のうち、比較評価レジス
タの記憶値と比較していないものがある場合、ステップ
S122に戻る。
In step S122, the variable B
When it is determined that the comparison result value stored in C [n + 1] is not less than or equal to the comparison result value stored in the comparison evaluation register, the process proceeds to step S123, and variable B C [n] is replaced with variable B C [n + 1]. Stored value is set, and step S12
Go to 4. In step S124, the comparison result buffer counter n is incremented by 1, and step S12
In step 5, it is determined whether the comparison result buffer counter n is smaller than the averaged number (4) -1. Step S
In 125, when it is determined that the comparison result buffer counter n is smaller than the averaged number −1, that is, the variable B C
If some of the stored values of [0] to B C [3] are not compared with the stored value of the comparative evaluation register, the process returns to step S122.

【0074】一方、ステップS125において、比較結
果バッファカウンタnが、平均化個数−1より小さくな
いと判定された場合、即ち変数BC[0]乃至BC[3]
の記憶値それぞれと、比較評価レジスタの記憶値との比
較をすべて終了し、比較評価レジスタの記憶値が、変数
C[3]の記憶値より小さい場合、ステップS126
に進み、変数BC[n]に、比較評価レジスタに記憶さ
れた比較結果値がセットされ、ステップS127に進
む。
On the other hand, when it is determined in step S125 that the comparison result buffer counter n is not smaller than the averaged number -1, that is, the variables B C [0] to B C [3].
When the comparison between each of the stored values of No. 1 and the stored value of the comparative evaluation register is completed and the stored value of the comparative evaluation register is smaller than the stored value of variable B C [3], step S126
In step S127, the variable B C [n] is set to the comparison result value stored in the comparison evaluation register.

【0075】ステップS127においては、比較結果バ
ッファ6に記憶された比較結果値、即ち変数BC[0]
乃至BC[3]それぞれに記憶された比較結果値の平均
値(相加平均値)が、類似度として算出され、ステップ
S128に進み、手書き文字の全ストローク数が、所定
の指定画数より小さいか否かが判定される。
In step S127, the comparison result value stored in the comparison result buffer 6, that is, the variable B C [0].
To B C [3], the average value (arithmetic mean value) of the comparison result values stored in each of them is calculated as the degree of similarity, and the process proceeds to step S128, where the total number of strokes of the handwritten character is smaller than the predetermined designated number of strokes. It is determined whether or not.

【0076】ステップS128において、手書き文字の
全ストローク数が、所定の指定画数より小さくないと判
定された場合、ステップS129に進み、現ストローク
カウンタの記憶値が、所定の指定画数より小さいか否か
が判定される。ステップS129において、現ストロー
クカウンタの記憶値が、所定の指定画数より小さくない
と判定された場合、即ちいま比較検定を行っている手書
き文字のストロークが、その手書き文字の書き始めの方
のストロークではない場合、ステップS130に進む。
If it is determined in step S128 that the total number of strokes of the handwritten character is not smaller than the predetermined designated stroke number, the process proceeds to step S129, and it is determined whether or not the stored value of the current stroke counter is smaller than the predetermined designated stroke number. Is determined. If it is determined in step S129 that the stored value of the current stroke counter is not smaller than the predetermined number of strokes, that is, if the stroke of the handwritten character currently undergoing the comparison test is the stroke at the beginning of writing the handwritten character. If not, the process proceeds to step S130.

【0077】また、ステップS129において、現スト
ロークカウンタの記憶値が、所定の指定画数より小さい
と判定された場合、即ちいま比較検定を行っている手書
き文字のストロークが、その手書き文字の書き始めの方
のストロークである場合、ステップS131に進み、ス
テップS127で算出された類似度(ある文字パターン
に対して、いままでに得られた手書き文字の比較結果値
のうちの1乃至4番目に小さいものの平均値)が、所定
の閾値(限界値)B以下であるか否かが判定される。
If it is determined in step S129 that the stored value of the current stroke counter is smaller than the predetermined number of strokes, that is, the stroke of the handwritten character currently undergoing the comparison test is the start of writing the handwritten character. If the stroke is one of the strokes, the process proceeds to step S131, and the similarity calculated in step S127 (for a certain character pattern, one of the first to fourth smallest comparison result values of handwritten characters obtained so far is It is determined whether the average value) is less than or equal to a predetermined threshold value (limit value) B.

【0078】ステップS131において、ステップS1
27で算出された類似度が、所定の閾値B以下であると
判定された場合、図13に示すステップS160に進
む。また、ステップS131において、ステップS12
7で算出された類似度が、所定の閾値B以下でないと判
定された場合、図8のステップS105に戻る。
In step S131, step S1
When it is determined that the similarity calculated in 27 is less than or equal to the predetermined threshold B, the process proceeds to step S160 shown in FIG. Further, in step S131, step S12
When it is determined that the similarity calculated in 7 is not less than or equal to the predetermined threshold value B, the process returns to step S105 in FIG.

【0079】一方、ステップS128において、手書き
文字の全ストローク数が、所定の指定画数より小さいと
判定された場合、即ち手書き文字が、少ない画数でなる
場合、ステップS130に進み、ステップS127で算
出された類似度が、所定の閾値(限界値)A以下である
か否かが判定される。
On the other hand, if it is determined in step S128 that the total number of strokes of the handwritten character is smaller than the predetermined number of strokes, that is, if the number of strokes of the handwritten character is small, the process proceeds to step S130 and is calculated in step S127. It is determined whether the similarity is equal to or less than a predetermined threshold value (limit value) A.

【0080】ステップS130において、ステップS1
27で算出された類似度が、所定の閾値A以下でないと
判定された場合、図8のステップS105に戻る。ま
た、ステップS130において、ステップS127で算
出された類似度が、所定の閾値A以下であると判定され
た場合、図13に示すステップS160に進む。
In step S130, step S1
When it is determined that the similarity calculated in 27 is not less than or equal to the predetermined threshold value A, the process returns to step S105 in FIG. If it is determined in step S130 that the similarity calculated in step S127 is equal to or less than the predetermined threshold value A, the process proceeds to step S160 shown in FIG.

【0081】図13のステップS160では、辞書4に
登録されたすべての文字パターンに対して、手書き文字
の比較検定が行われたか否かが判定される。ステップS
160において、辞書4に登録されたすべての文字パタ
ーンに対して、手書き文字の比較検定が、まだ行われて
いないと判定された場合、ステップS161に進み、辞
書読み出しアドレスが、次の文字パターンのアドレスを
示すように設定(更新)され、図8のステップS102
に戻る。
In step S160 of FIG. 13, it is determined whether or not the handwritten character comparison test has been performed on all the character patterns registered in the dictionary 4. Step S
In 160, when it is determined that the comparison test of the handwritten character has not been performed for all the character patterns registered in the dictionary 4, the process proceeds to step S161, and the dictionary read address is set to the next character pattern. The address is set (updated) to indicate the address, and step S102 in FIG.
Return to.

【0082】従って、図12のステップS127で算出
された類似度が、所定の閾値AまたはB以下である場合
には、ある文字パターンに対し、手書き文字の全ストロ
ークとの比較検定が終了していなくても、その比較検定
が中止され(アボートされ)、次の文字パターンに対す
る比較検定が行われる。
Therefore, when the similarity calculated in step S127 of FIG. 12 is less than or equal to the predetermined threshold value A or B, the comparison and verification of a certain character pattern with all strokes of the handwritten character is completed. Even if it does not exist, the comparison test is stopped (abort), and the comparison test for the next character pattern is performed.

【0083】また、ステップS160において、辞書4
に登録されたすべての文字パターンに対して、手書き文
字の比較検定が行われたと判定された場合、処理を終了
する。
In step S160, the dictionary 4
When it is determined that the handwritten character comparison test has been performed on all the character patterns registered in step S3, the processing ends.

【0084】ここで、閾値Aは、例えば従来の装置と同
様の値、即ち比較検定が中止され難い値(上述したよう
に、比較結果値の範囲を0乃至100とした場合には、
例えば50など)に設定されており、閾値Bは、閾値A
より大きな値、即ち比較検定が中止され易い値(上述し
たように、比較結果値の範囲を0乃至100とした場合
には、例えば80など)に設定されている。
Here, the threshold value A is, for example, a value similar to that of the conventional apparatus, that is, a value at which the comparison test is hard to be stopped (as described above, when the range of the comparison result value is 0 to 100,
(For example, 50) and the threshold B is equal to the threshold A
It is set to a larger value, that is, a value at which the comparison test is easily stopped (for example, 80 when the comparison result value range is 0 to 100 as described above).

【0085】前述したように、手書き文字に近似してい
ない文字パターンに対する、その手書き文字の書き始め
の方のストロークにおける類似度は、あまり小さくなら
ないが、ステップS131において、従来の場合と同様
の閾値Aよりも大きな閾値Bと比較され、その類似度が
閾値B以下の場合には、いま比較検定対象となっている
文字パターン(以下、適宜、現文字パターンという)に
対する比較検定が中止され、次の文字パターンに対する
比較検定が開始される。
As described above, with respect to a character pattern that is not approximate to a handwritten character, the similarity in the stroke at the beginning of writing the handwritten character does not become so small, but in step S131, the threshold value similar to that in the conventional case is used. If it is compared with a threshold value B larger than A, and the degree of similarity is equal to or less than the threshold value B, the comparison test for the character pattern (hereinafter, appropriately referred to as the current character pattern) that is the target of the comparison test is stopped, and the next The comparison test for the character pattern of is started.

【0086】従って、手書き文字に近似していない文字
パターンに対する比較検定は、手書き文字の書き始めの
方のストロークの方で中止されるので、比較検定の実行
回数が減少し、その結果、認識速度を向上させることが
できる。
Therefore, the comparison test for a character pattern that is not close to a handwritten character is stopped at the stroke at the beginning of writing the handwritten character, so the number of times the comparison test is executed is reduced, and as a result, the recognition speed is increased. Can be improved.

【0087】また、所定の指定画数以上の、手書き文字
のストロークについては、現文字パターンに対する類似
度が、ステップS130において、従来の場合と同様の
閾値Aと比較され、その比較結果に対応して、現文字パ
ターンとの比較検定を中止するか、または続行するかが
決定される。
For the strokes of the handwritten character having a predetermined number of strokes or more, the similarity to the current character pattern is compared with the threshold value A similar to the conventional case in step S130, and the comparison result is determined. , It is determined whether to stop or continue the comparison test with the current character pattern.

【0088】従って、認識率の低下を防止することがで
きる。
Therefore, it is possible to prevent the recognition rate from decreasing.

【0089】即ち、この場合、従来の装置に比較して、
認識率を低下させることなく、認識速度を向上させるこ
とができる。
That is, in this case, as compared with the conventional device,
The recognition speed can be improved without lowering the recognition rate.

【0090】さらに、上述したように、ステップS12
8で、手書き文字の全ストローク数(手書き文字を構成
する全ストローク数)と、所定の指定画数とが比較さ
れ、手書き文字を構成する全ストローク数(画数)が、
所定の指定画数より小さい場合、即ち手書き文字を構成
する全ストローク数が少ない場合には、その手書き文字
の類似度は、ステップS130において、従来の場合と
同様の閾値Aと比較されるので、画数の少ない手書き文
字に対する比較検定が早く中止されることによる誤認識
も防止することができる。
Further, as described above, step S12
In 8, the total number of strokes of the handwritten character (the total number of strokes forming the handwritten character) is compared with a predetermined number of strokes, and the total number of strokes (the number of strokes) forming the handwritten character is
When the number of strokes is smaller than the predetermined number of strokes, that is, when the total number of strokes forming a handwritten character is small, the similarity of the handwritten character is compared with the threshold value A similar to the conventional case in step S130. It is also possible to prevent erroneous recognition due to early termination of the comparison test for handwritten characters with few characters.

【0091】図8に戻り、ステップS106において、
特徴コードが、0Fh以下でないと判定された場合、即
ち特徴コードが、方向コードおよび終了コードのうちの
いずれかである場合、図14のステップS110に進
み、その特徴コードの値が、10h乃至1Fhの範囲の
値、20h乃至2Fhの範囲の値、30h乃至3Fhの
範囲の値、40h乃至4Fhの範囲の値、および50h
のうちのいずれであるかが判定される。
Returning to FIG. 8, in step S106,
If it is determined that the feature code is not 0 Fh or less, that is, if the feature code is either the direction code or the end code, the process proceeds to step S110 in FIG. 14, and the value of the feature code is 10h to 1Fh. Values in the range, values in the range 20h to 2Fh, values in the range 30h to 3Fh, values in the range 40h to 4Fh, and 50h
Which of the above is determined.

【0092】ステップS110において、特徴コード
が、10h乃至1Fhの範囲の値、20h乃至2Fhの
範囲の値、30h乃至3Fhの範囲の値、または40h
乃至4Fhの範囲の値であると判定された場合、即ち特
徴コードが、始点−始点、始点−終点、終点−始点、ま
たは終点−終点の方向コードである場合、ステップS1
11乃至S114にそれぞれ進み、始点−始点、始点−
終点、終点−始点、または終点−終点の方向コードが、
バッファ読み出しアドレスが示すストローク数の行のデ
ータ(図5)の中から読み出される。
In step S110, the feature code is a value in the range of 10h to 1Fh, a value in the range of 20h to 2Fh, a value in the range of 30h to 3Fh, or 40h.
If it is determined that the value is in the range of 4Fh to 4Fh, that is, if the feature code is a start point-start point, start point-end point, end point-start point, or end point-end point direction code, step S1.
11 to S114, respectively, starting point-starting point, starting point-
The direction code of end point, end point-start point, or end point-end point is
The data is read from the data (FIG. 5) of the row having the stroke number indicated by the buffer read address.

【0093】即ち、例えばいま、図5に示した特徴量
が、特徴バッファ3に記憶されている場合、バッファ読
み出しアドレスが、ストローク数2の行を示していると
きには、特徴バッファ3から、12,13,3、または
2が読み出される。また、バッファ読み出しアドレス
が、ストローク数3の行を示しているときには、特徴バ
ッファ3から、10,13,9、または12が読み出さ
れる。
That is, for example, when the feature amount shown in FIG. 5 is stored in the feature buffer 3 now, when the buffer read address indicates a line with the stroke number 2, the feature buffer 3 outputs 12, 13, 3, or 2 are read. Further, when the buffer read address indicates a row having the stroke number 3, 10, 13, 9, or 12 is read from the feature buffer 3.

【0094】ステップS111乃至S114において、
特徴バッファ3から方向コードが読み出された後、ステ
ップS115に進み、辞書4から読み出された特徴コー
ドである方向コードが示す方向(以下、適宜、標準方向
という)と、ステップS111乃至S114のいずれか
で特徴バッファ3から読み出された方向コードが示す方
向(以下、適宜、入力方向という)との方向差が求めら
れる。
In steps S111 to S114,
After the direction code is read from the feature buffer 3, the process proceeds to step S115, and the direction indicated by the direction code that is the feature code read from the dictionary 4 (hereinafter, appropriately referred to as a standard direction) and steps S111 to S114. In either case, the direction difference from the direction indicated by the direction code read from the feature buffer 3 (hereinafter, appropriately referred to as the input direction) is obtained.

【0095】ここで、方向差とは、辞書4から読み出さ
れた方向コードが示す方向(標準方向)と、特徴バッフ
ァ3から読み出された方向コードが示す方向(入力方
向)との違いの度合いを示し、本実施例では、例えば0
乃至8の範囲の値で表現されるようになされている。即
ち、標準方向と、入力方向とが一致する場合には、方向
差は0とされ、標準方向と、入力方向とのずれが大きく
なるほど、方向差は大きな値にされる。そして、標準方
向と、入力方向とのずれが最も大きい場合には、方向差
は8とされる。
Here, the direction difference is the difference between the direction indicated by the direction code read from the dictionary 4 (standard direction) and the direction indicated by the direction code read from the feature buffer 3 (input direction). The degree is indicated, and in this embodiment, for example, 0
It is adapted to be represented by a value in the range of 8 to 8. That is, when the standard direction and the input direction match, the direction difference is set to 0, and the larger the deviation between the standard direction and the input direction, the larger the direction difference. When the deviation between the standard direction and the input direction is the largest, the direction difference is set to 8.

【0096】方向差が求められると、ステップS116
に進み、例えば図15に示す方向差と比較結果値との対
応関係を表すテーブルが参照され、方向差が、比較結果
値に変換される。図15に示すテーブルによれば、方向
差は、その値が小さいほど、即ち入力方向が、標準方向
に近いほど、大きな値の比較結果値に変換される。
When the direction difference is obtained, step S116.
Then, for example, the table showing the correspondence between the direction difference and the comparison result value shown in FIG. 15 is referred to, and the direction difference is converted into the comparison result value. According to the table shown in FIG. 15, the direction difference is converted into a larger comparison result value as the value is smaller, that is, the input direction is closer to the standard direction.

【0097】方向差が比較結果値に変換されると、図1
2のステップS120に進み、以下上述した処理と同様
の処理が行われる。
When the direction difference is converted into the comparison result value, the result shown in FIG.
The process proceeds to step S120 of 2 and the same process as the above-described process is performed.

【0098】一方、図14のステップS110におい
て、特徴コードが50hであると判定された場合、即ち
図8のステップS105で辞書4から読み出された特徴
コードが、終了コードであり、従って現文字パターンに
対する、手書き文字の全ストロークとの比較検定処理
が、途中で中止されずに、いわば正常に終了した場合、
その現文字パターンの文字コードが、辞書4から読み出
される。そして、図16のステップS140に進み、比
較結果バッファ6に記憶された比較結果値、即ち変数B
C[0]乃至BC[3]それぞれに記憶された、現文字パ
ターンに対する手書き文字の全ストロークの比較結果値
のうちの1乃至4番目に小さいものの平均値が、手書き
文字の、現文字パターンに対する類似度として算出さ
れ、ステップS141に進む。
On the other hand, when it is determined in step S110 of FIG. 14 that the characteristic code is 50h, that is, the characteristic code read from the dictionary 4 in step S105 of FIG. If the comparison and verification process of all strokes of handwritten characters for the pattern is completed normally without being interrupted,
The character code of the current character pattern is read from the dictionary 4. Then, the process proceeds to step S140 in FIG. 16, and the comparison result value stored in the comparison result buffer 6, that is, the variable B
Among the comparison result values of all strokes of the handwritten character with respect to the current character pattern stored in C [0] to B C [3], the average value of the first to fourth smallest values is the current character pattern of the handwritten character. Is calculated as the degree of similarity to, and the process proceeds to step S141.

【0099】ステップS141では、変数BP[k]
(但し、k=0,1,2,3,4,5)のインデックス
である認識候補バッファカウンタ(認識装置5を構成す
るRAMに、あらかじめ確保された領域)kがクリアさ
れ(0にされ)、ステップS142に進み、変数B
P[k]に記憶された文字コード(変数BP[k]の、文
字コードを記憶するのに確保された領域の記憶値)が、
認識候補バッファ7をクリアするときに用いられる初期
値である0であるか否かが判定される。
In step S141, the variable B P [k]
(However, k = 0, 1, 2, 3, 4, 5) recognition candidate buffer counter (area reserved in advance in the RAM configuring the recognition device 5) k is cleared (set to 0). , Step S142, the variable B
The character code stored in P [k] (the storage value of the area reserved for storing the character code of the variable B P [k]) is
It is determined whether or not it is 0 which is an initial value used when clearing the recognition candidate buffer 7.

【0100】ここで、認識候補バッファ7をクリアする
ときに用いられる初期値0は、後述するように、変数B
P[k]に記憶されている文字認識結果候補の終端を表
すための終端コードとしても用いられる。
Here, the initial value 0 used when clearing the recognition candidate buffer 7 is the variable B, as will be described later.
It is also used as an end code for indicating the end of the character recognition result candidate stored in P [k].

【0101】ステップS142において、変数B
P[k]に記憶されている文字コードが、0でないと判
定された場合、即ち変数BP[k]に、認識結果候補に
対応する文字コードが、その類似度とともに、既に記憶
されている場合、ステップS143に進み、変数B
P[k]に、文字コードとともに記憶された類似度(変
数BP[k]の、類似度を記憶するのに確保された領域
の記憶値)が、ステップS140で算出された現文字パ
ターンの類似度より小さいか否かが判定される。ステッ
プS143において、変数BP[k]に記憶されている
類似度が、現文字パターンの類似度より小さくないと判
定された場合、ステップS144に進み、候補バッファ
カウンタkが1だけインクリメントされ、ステップS1
42に戻る。
In step S142, the variable B
When it is determined that the character code stored in P [k] is not 0, that is, the character code corresponding to the recognition result candidate is already stored in the variable B P [k] together with its similarity. In this case, the process proceeds to step S143, and the variable B
The similarity stored in P [k] together with the character code (the storage value of the area reserved for storing the similarity of the variable B P [k]) is the current character pattern calculated in step S140. It is determined whether the degree of similarity is smaller than the similarity. When it is determined in step S143 that the similarity stored in the variable B P [k] is not lower than the similarity of the current character pattern, the process proceeds to step S144, the candidate buffer counter k is incremented by 1, and the step S1
Return to 42.

【0102】また、ステップS143において、変数B
P[k]に記憶されている類似度が、現文字パターンの
類似度より小さいと判定された場合、ステップS145
に進み、候補シフトカウンタ(認識装置5を構成するR
AMに、あらかじめ確保された領域)としての変数i
に、現文字パターンの類似度より小さい類似度が記憶さ
れている変数BP[k]のインデックスのうちの最小値
k(認識候補バッファカウンタk)がセットされ、ステ
ップS146に進む。
In step S143, the variable B
When it is determined that the similarity stored in P [k] is smaller than the similarity of the current character pattern, step S145
And the candidate shift counter (R that constitutes the recognition device 5
Variable i as an area secured in advance in AM)
Is set to the minimum value k (recognition candidate buffer counter k) of the index of the variable B P [k] in which the similarity smaller than the similarity of the current character pattern is stored, and the process proceeds to step S146.

【0103】ステップS146では、候補シフトカウン
タiが1だけインクリメントされ、ステップS147に
進み、変数BP[i]に記憶された文字コードが0であ
るか否かが判定される。ステップS147において、変
数BP[i]に記憶された文字コードが0でないと判定
された場合、ステップS146に戻り、ステップS14
7で、変数BP[i]に記憶された文字コードが0であ
ると判定されるまで、ステップS146およびS147
の処理を繰り返す。
In step S146, the candidate shift counter i is incremented by 1, and the process advances to step S147 to determine whether the character code stored in the variable B P [i] is 0. When it is determined in step S147 that the character code stored in the variable B P [i] is not 0, the process returns to step S146 and step S14.
Until it is determined in step 7 that the character code stored in the variable B P [i] is 0, steps S146 and S147.
The process of is repeated.

【0104】そして、ステップS147において、変数
P[i]に記憶された文字コードが0であると判定さ
れた場合、即ち認識候補バッファ7(変数BP)に記憶
されている文字認識結果候補の終端が見つかった場合、
ステップS148に進み、候補シフトカウンタiが、候
補バッファ数(上述したように、変数BP(認識候補バ
ッファ7)が、類似度とともに記憶することのできる文
字コードの数)−1より小さいか否かが判定される。
If it is determined in step S147 that the character code stored in the variable B P [i] is 0, that is, the character recognition result candidate stored in the recognition candidate buffer 7 (variable B P ) is detected. If the end of is found,
In step S148, it is determined whether the candidate shift counter i is smaller than the number of candidate buffers (as described above, the variable B P (recognition candidate buffer 7) is the number of character codes that can be stored together with the degree of similarity) −1. Is determined.

【0105】ステップS148において、候補シフトカ
ウンタiが、候補バッファ数−1より小さいと判定され
た場合、即ち認識候補バッファ7に、類似度とともに文
字コードを記憶する領域の空きがある場合(変数B
P[i]乃至BP[(候補バッファ数−1)]すべてに、
まだ文字コードおよび類似度が記憶されていない場
合)、ステップS149に進み、変数BP[i+1]
に、変数BP[i]の記憶値が転送されて記憶され、ス
テップS150に進む。ステップS150では、候補シ
フトカウンタiが1だけデクリメントされ、ステップS
151に進み、候補シフトカウンタiが、認識候補バッ
ファカウンタk以下であるか否かが判定される。
In step S148, when it is determined that the candidate shift counter i is smaller than the number of candidate buffers−1, that is, when the recognition candidate buffer 7 has a space for storing the character code together with the similarity (variable B
For all P [i] to BP [(number of candidate buffers-1)],
(If the character code and the similarity are not stored yet), the process proceeds to step S149, and the variable B P [i + 1]
The stored value of the variable B P [i] is transferred to and stored in, and the process proceeds to step S150. In step S150, the candidate shift counter i is decremented by 1,
Proceeding to 151, it is determined whether the candidate shift counter i is less than or equal to the recognition candidate buffer counter k.

【0106】ステップS151において、候補シフトカ
ウンタiが、認識候補バッファカウンタk以上であると
判定された場合、即ちインデックスiがk以上の変数B
P[i]に記憶されていた、現文字パターンの類似度よ
り小さい類似度と、その類似度に対応する文字コードと
を、インデックスiがk+1以上の変数BP[i]に、
順次転送することが、まだ完了していない場合、ステッ
プS149に戻る。
In step S151, when it is determined that the candidate shift counter i is equal to or larger than the recognition candidate buffer counter k, that is, the variable B whose index i is equal to or larger than k.
The similarity smaller than the similarity of the current character pattern stored in P [i] and the character code corresponding to the similarity are set in a variable B P [i] having an index i of k + 1 or more,
If the sequential transfer is not yet completed, the process returns to step S149.

【0107】また、ステップS151において、候補シ
フトカウンタiが、認識候補バッファカウンタk以上で
ないと判定された場合、即ちインデックスiがk以上の
変数BP[i]に記憶されていた、現文字パターンの類
似度より小さい類似度と、その類似度に対応する文字コ
ードとを、インデックスiがk+1以上の変数B
P[i]に、順次転送することが完了した場合、ステッ
プS153に進み、現文字パターンの類似度より小さ
く、且つそれに最も近い類似度が記憶されていた変数B
P[k]に、現文字パターンの類似度が、その文字コー
ドとともにセットされ、上述した図13のステップS1
60に進む。
If it is determined in step S151 that the candidate shift counter i is not greater than or equal to the recognition candidate buffer counter k, that is, the index i is greater than or equal to k, the current character pattern stored in the variable B P [i]. The similarity smaller than the similarity and the character code corresponding to the similarity, the variable B whose index i is k + 1 or more.
When the sequential transfer to P [i] is completed, the process proceeds to step S153, and the similarity between the current character pattern and the closest similarity variable B is stored.
The similarity of the current character pattern is set in P [k] together with the character code, and the above-described step S1 of FIG. 13 is performed.
Proceed to 60.

【0108】一方、ステップS148において、候補シ
フトカウンタiが、候補バッファ数−1より小さくない
と判定された場合、即ち認識候補バッファ7に、類似度
とともに文字コードを記憶する領域の空きがない場合
(変数BP[i]乃至BP[(候補バッファ数−1)]す
べてに、既に文字コードおよび類似度が記憶されている
場合)、ステップS152に進み、候補シフトカウンタ
iが2だけデクリメントされ、上述したステップS15
1に進む。
On the other hand, in step S148, when it is determined that the candidate shift counter i is not smaller than the number of candidate buffers−1, that is, when the recognition candidate buffer 7 has no free space for storing the character code together with the similarity. (If the character code and the similarity are already stored in all the variables B P [i] to B P [(the number of candidate buffers-1)]), the process proceeds to step S152, and the candidate shift counter i is decremented by 2. , Step S15 described above
Go to 1.

【0109】従って、この場合、変数BP[(候補バッ
ファ数−1)]には、変数BP[(候補バッファ数−
2)]の記憶値、または現文字パターンの類似度および
その文字コードが、上書きされ、変数BP[(候補バッ
ファ数−1)]に記憶されていたデータは消去されるこ
とになる。
Therefore, in this case, the variable B P [(the number of candidate buffers-1)] is set to the variable B P [(the number of candidate buffers-
2)], or the similarity of the current character pattern and its character code are overwritten, and the data stored in the variable B P [(number of candidate buffers-1)] is erased.

【0110】一方、ステップS142において、変数B
P[k]に記憶された文字コードが、0であると判定さ
れた場合、即ち現文字パターンの類似度が、いま認識候
補バッファ7に記憶されているいずれの類似度よりも小
さいか、または等しい場合、ステップS154に進み、
認識候補バッファカウンタkが、候補バッファ数−1よ
り小さいか否かが判定される。
On the other hand, in step S142, the variable B
If it is determined that the character code stored in P [k] is 0, that is, the similarity of the current character pattern is smaller than any of the similarities currently stored in the recognition candidate buffer 7, or If they are equal, the process proceeds to step S154,
It is determined whether the recognition candidate buffer counter k is smaller than the number of candidate buffers−1.

【0111】ステップS154において、認識候補バッ
ファカウンタkが、候補バッファ数−1より小さいと判
定された場合、即ち認識候補バッファ7に、類似度とと
もに文字コードを記憶する領域の空きがある場合(変数
P[0]乃至BP[(候補バッファ数−1)]すべて
に、まだ文字コードおよび類似度が記憶されていない場
合)、ステップS155に進み、変数BP[k+1]
に、終端コードがセットされ、ステップS153に進
む。ステップS153では、上述したように、変数BP
[k]に、現文字パターンの類似度が、その文字コード
とともにセットされ、図13のステップS160に進
む。
In step S154, when it is determined that the recognition candidate buffer counter k is smaller than the number of candidate buffers−1, that is, when the recognition candidate buffer 7 has a space for storing the character code together with the similarity (variable). If the character code and the similarity are not yet stored in all of B P [0] to B P [(the number of candidate buffers-1)], the process proceeds to step S155, and the variable B P [k + 1] is set.
Is set to the end code, and the process proceeds to step S153. In step S153, as described above, the variable B P
The degree of similarity of the current character pattern is set in [k] together with the character code, and the process proceeds to step S160 in FIG.

【0112】一方、ステップS154において、認識候
補バッファカウンタkが、候補バッファ数−1より小さ
いと判定された場合、即ち変数BP[0]乃至BP
[(候補バッファ数−1)]すべてに、既に文字コード
および類似度が記憶されており、且つそこに記憶されて
いるいずれの類似度と比較しても、現文字パターンの類
似度の方が小さいか、または等しい場合、上述した図1
3のステップS160に進む。即ち、この場合、現文字
パターンは、認識結果候補とされず、認識結果候補バッ
ファ7には記憶されない。
On the other hand, when it is determined in step S154 that the recognition candidate buffer counter k is smaller than the number of candidate buffers−1, that is, the variables B P [0] to BP.
The character code and the similarity are already stored in all [(the number of candidate buffers-1)], and the similarity of the current character pattern is better than any of the similarities stored therein. If less than or equal, then FIG.
3 to step S160. That is, in this case, the current character pattern is not set as the recognition result candidate and is not stored in the recognition result candidate buffer 7.

【0113】以上の処理により、既に認識候補バッファ
7(変数BP[i])に記憶されている類似度に、現文
字パターンの類似度を加えたものが、昇順に並べ替えら
れて記憶し直される(但し、(候補バッファ数+1)番
目に大きい類似度に対応する文字コードは削除され
る)。
By the above processing, the similarity degree already stored in the recognition candidate buffer 7 (variable B P [i]) and the similarity degree of the current character pattern are sorted in ascending order and stored. It is corrected (however, the character code corresponding to the (the number of candidate buffers + 1) th largest similarity is deleted).

【0114】図13のステップS160で、辞書4に登
録されたすべての文字パターンに対して、手書き文字の
比較検定が行われたと判定され、処理を終了した後、認
識候補バッファ7(変数BP[i])には、辞書4に登
録された文字パターンのうちの、手書き文字に対する類
似度が、1乃至(候補バッファ数)番目に高いものが記
憶された状態となる。そして、この認識候補バッファ7
(変数BP[i])に記憶された文字コードは、必要に
応じて読み出され、その文字コードに対応する文字(活
字)が、手書き文字入力装置1と一体に構成された表示
装置に表示される。
In step S160 of FIG. 13, it is determined that all character patterns registered in the dictionary 4 have been handwritten character comparison and verified, and after the processing is completed, the recognition candidate buffer 7 (variable B P In [i]), among the character patterns registered in the dictionary 4, one having the highest similarity to the handwritten character from 1 to (the number of candidate buffers) is stored. Then, this recognition candidate buffer 7
The character code stored in (variable B P [i]) is read out as needed, and the character (printing type) corresponding to the character code is displayed on the display device integrated with the handwritten character input device 1. Is displayed.

【0115】その後、使用者は、表示装置に表示された
活字を見て、手書き文字認識結果として正しいものを選
択する。そして、例えば表示装置に、手書き文字がエコ
ーバックされて表示されている場合には、その手書き文
字に代えて、選択された活字が表示される。
After that, the user looks at the printed characters displayed on the display device and selects the correct one as the handwritten character recognition result. Then, for example, when the handwritten character is echoed back and displayed on the display device, the selected type character is displayed instead of the handwritten character.

【0116】次に、図17乃至図19を参照して、さら
にその動作について説明する。いま、例えば図17に示
すような手書き文字「岬」が、ペン1aを操作すること
により、手書き文字入力装置1に対して入力された場
合、特徴抽出装置2では、上述したようにして、例えば
図18に示すような特徴量が抽出され(但し、同図にお
いては、方向コードの図示を省略し、基本ストロークコ
ードのみを図示してある)、特徴バッファ3に出力され
て記憶される。
Next, the operation will be further described with reference to FIGS. 17 to 19. Now, for example, when a handwritten character “cape” as shown in FIG. 17 is input to the handwritten character input device 1 by operating the pen 1a, the feature extraction device 2 operates as described above, for example, A feature amount as shown in FIG. 18 is extracted (however, in FIG. 18, the direction code is not shown and only the basic stroke code is shown), and is output to the feature buffer 3 to be stored.

【0117】そして、辞書4に、例えば図19(a)に
示すような文字パターンが登録されており(但し、同図
においては、方向コードの図示を省略し、基本ストロー
クコードのみを図示してある)、図12で説明した所定
の閾値AまたはBが、例えばそれぞれ50または80で
あったとすると、認識装置5では、図19(a)に示し
た文字パターンに対する、手書き文字の比較検定が、例
えば図19(c)に示すように行われる。
A character pattern as shown in FIG. 19A, for example, is registered in the dictionary 4 (however, in the figure, the direction code is not shown and only the basic stroke code is shown. If the predetermined threshold value A or B described in FIG. 12 is, for example, 50 or 80, the recognition device 5 performs a handwritten character comparison test on the character pattern shown in FIG. For example, it is performed as shown in FIG.

【0118】なお、比較検定は、説明を簡単にするため
に、方向コードは用いず、基本ストロークコードのみを
用いて行われるものとする。
Note that the comparison test is performed using only the basic stroke code and not the direction code for the sake of simplicity.

【0119】さらに、図19(c)(図19(b)も同
様)において、各欄に記載した上下2段の数字のうち、
上段の数字は、その欄に対応する、図19(a)に示し
た辞書4の基本ストロークコードの比較結果値(形状判
定値)を示し、また下段の数字は、比較結果バッファ6
に記憶された4つの比較結果値の平均値である類似度を
示している。
Further, in FIG. 19 (c) (the same applies to FIG. 19 (b)), among the numbers in the upper and lower two columns described in each column,
The numbers in the upper row indicate the comparison result values (shape determination values) of the basic stroke codes of the dictionary 4 shown in FIG. 19A corresponding to that column, and the numbers in the lower row indicate the comparison result buffer 6.
Shows the degree of similarity which is the average value of the four comparison result values stored in.

【0120】即ち、例えば文字パターン「門」の最初の
ストローク、即ちストローク数1の基本ストロークコー
ドは0であるから(図19(a))、それに対する手書
き文字の比較結果値(形状判定値)は、図18から10
0となる。
That is, for example, since the first stroke of the character pattern "gate", that is, the basic stroke code of the stroke number 1 is 0 (FIG. 19 (a)), the comparison result value (shape determination value) of the handwritten character against it. 18 to 10
It becomes 0.

【0121】上述したように、比較結果バッファ6に
は、初期値として、比較結果値の最高値100が、4つ
記憶されており、これらに、上述の比較結果値100を
含めたものの、1乃至4番目に小さいものの平均値は1
00となる。
As described above, the comparison result buffer 6 stores four highest comparison result values of 100 as initial values. To the 4th smallest, but the average value is 1
It becomes 00.

【0122】以上から、例えば文字パターン「門」の行
の先頭の列の欄は、上段または下段に、それぞれ100
または100が記述されている。
From the above, for example, the column of the first column of the line of the character pattern "gate" is 100 or 100 in the upper or lower row, respectively.
Or 100 is described.

【0123】また、例えば文字パターン「門」の2番目
のストローク、即ちストローク数2の基本ストロークコ
ードは3であるから(図19(a))、それに対する手
書き文字の比較結果値(形状判定値)は、図18から2
0となる。
Also, for example, since the basic stroke code of the second stroke of the character pattern "gate", that is, the stroke number 2 is 3 (FIG. 19 (a)), the comparison result value (shape determination value) of the handwritten character against it. ) Is from FIG.
It becomes 0.

【0124】文字パターン「門」の最初のストロークに
対する比較検定の結果、比較結果バッファ6には、比較
結果値の最高値100が、4つ記憶されているから、こ
れらに、上述の比較結果値20を含めたものの、1乃至
4番目に小さいものの平均値は80(=(20+100
+100+100)/4)となる。
As a result of the comparison test for the first stroke of the character pattern "gate", the comparison result buffer 6 stores four highest comparison result values 100. Although 20 is included, the average value of the first to fourth smallest values is 80 (= (20 + 100
+ 100 + 100) / 4).

【0125】以上から、例えば文字パターン「門」の行
の2列目の欄は、上段または下段に、それぞれ20また
は80が記述されている。
From the above, for example, in the second column of the row of the character pattern “gate”, 20 or 80 is described in the upper row or the lower row, respectively.

【0126】以下、同様にして、図19(b)および図
19(c)の各欄の数字を付してある。
Similarly, the numbers in the respective columns in FIGS. 19 (b) and 19 (c) are assigned in the same manner.

【0127】いま、図12に示した所定の指定画数を、
例えば4とすると、手書き文字のストローク数が3まで
の比較検定は、閾値B(=80)を用いて行われ、それ
以降は、閾値A(=50)を用いて行われることにな
る。
Now, the predetermined designated number of strokes shown in FIG.
For example, when the number is 4, the comparison test up to the number of strokes of the handwritten character is performed using the threshold value B (= 80), and thereafter, the threshold value A (= 50) is used.

【0128】これにより、前述したように、手書き文字
と近似していない、例えば文字パターン「門」や「固」
に対する類似度は、手書き文字の書き始めのストローク
において、ある程度大きな値(例えば、第1または第2
ストロークで、それぞれ100または80(図19
(c))となるが、第2ストロークで、閾値B(=8
0)以下となり、そこで、これらの文字パターンに対す
る比較検定が中止される。
As a result, as described above, for example, the character patterns “gate” and “fix” that do not approximate handwritten characters are used.
Is a relatively large value (for example, the first or second stroke) in the stroke at the beginning of handwriting.
Stroke is 100 or 80 respectively (Fig. 19).
(C)), but with the second stroke, the threshold value B (= 8)
0) or less, where the comparison test for these character patterns is stopped.

【0129】一方、従来の装置によれば、比較検定を行
う手書き文字のストローク数に関係なく、閾値A(=5
0)が用いられるため、図19(b)に示すように、手
書き文字と近似していない文字パターン「門」または
「固」に対して、それぞれ第4または第5ストロークま
で、比較検定が行われる。
On the other hand, according to the conventional device, the threshold value A (= 5) is set regardless of the number of strokes of the handwritten character for comparison and verification.
Since 0) is used, as shown in FIG. 19B, the comparison test is performed up to the fourth or fifth stroke for the character pattern “mon” or “fix” that is not approximate to the handwritten character. Be seen.

【0130】従って、図1の手書き文字認識装置によれ
ば、従来の場合に比較して、手書き文字に近似していな
い文字パターンに対する比較検定が、より早く中止され
るので、認識速度を向上させることができる。
Therefore, according to the handwritten character recognition apparatus of FIG. 1, the comparison and verification for the character pattern which is not approximate to the handwritten character is stopped earlier than in the conventional case, so that the recognition speed is improved. be able to.

【0131】また、所定の指定画数以降のストロークに
対しては、従来の場合と同様の閾値Aが用いられるの
で、認識率の低下を防止することができる。
Further, since the threshold value A similar to that in the conventional case is used for the strokes after the predetermined designated number of strokes, the reduction of the recognition rate can be prevented.

【0132】以上、本発明を適用した手書き文字認識装
置について説明したが、本発明は、この他、手書き文字
を認識するブロックを含む、例えば携帯型コンピュータ
や電子手帳装置などにも適用可能である。
Although the handwritten character recognition device to which the present invention is applied has been described above, the present invention is also applicable to, for example, a portable computer or an electronic notebook device including a block for recognizing handwritten characters. .

【0133】なお、本実施例においては、比較検定を中
止するか、または続行するかを決める閾値として、閾値
AおよびBの2つを用いるようにしたが、この他、3以
上の閾値を用いるようにすることができる。
In this embodiment, two thresholds, A and B, are used as thresholds for deciding whether to stop or continue the comparison test. However, in addition to this, three or more thresholds are used. You can

【0134】即ち、例えば3つの閾値A乃至C(但し、
A<B<Cとする)を用いる場合には、2つの所定の指
定画数a,b(但し、a<bとする)を設けるようにす
る。そして、現ストロークカウンタの記憶値(いま比較
検定を行っている手書き文字のストローク数)が、指定
画数aより小さい場合には閾値Cを、指定画数a以上
で、且つ指定画数bより小さい場合には閾値Bを、指定
画数b以上の場合には閾値Aを、それぞれ用いるように
すれば良い。
That is, for example, three threshold values A to C (however,
When A <B <C is used, two predetermined designated stroke numbers a and b (provided that a <b) are provided. Then, if the stored value of the current stroke counter (the number of strokes of the handwritten character currently undergoing the comparison test) is smaller than the specified stroke number a, the threshold value C is set. The threshold value B may be used, and the threshold value A may be used when the number of strokes is equal to or more than the designated stroke number b.

【0135】また、本実施例では、用いる閾値を、いま
比較検定を行っている手書き文字のストローク数そのも
のに対応して変更するようにしたが、この他、例えば手
書き文字の全ストローク数から、いま比較検定を行って
いるストローク数を減算した減算値に対応して変更する
ようにすることも可能である。但し、この場合、減算値
が大きいときには、大きい閾値を、減算値が小さいとき
には、小さい閾値を用いるようにする必要がある。
Further, in the present embodiment, the threshold to be used is changed corresponding to the number of strokes of the handwritten character which is currently undergoing the comparison test. It is also possible to change the stroke number corresponding to the subtraction value obtained by subtracting the number of strokes for which the comparison test is being performed. However, in this case, it is necessary to use a large threshold value when the subtraction value is large and a small threshold value when the subtraction value is small.

【0136】さらに、手書き文字から抽出する特徴量お
よび比較結果値の算出方法は、上述したものに限定され
るものではない。
Further, the method of calculating the feature amount and the comparison result value extracted from the handwritten character is not limited to the above.

【0137】また、本実施例では、辞書4として、階層
的に構成されていないもの(図6)を用いるようにした
が、この辞書4には、例えば図20(a)に示すように
階層的に構成されているもの(ツリー構造を有するも
の)を用いるようにすることができる(このような構造
の辞書に関しては、例えば特開平02−062683な
どに、その詳細が開示されている)。
In this embodiment, the dictionary 4 is not hierarchically structured (FIG. 6), but the dictionary 4 has a hierarchical structure as shown in FIG. 20 (a), for example. It is possible to use a structured dictionary (having a tree structure) (the details of the dictionary having such a structure are disclosed in, for example, Japanese Patent Laid-Open No. 02-062683).

【0138】この場合、従来ならば、例えば図20
(b)に示すように、第3ストローク目まで、手書き文
字に近似していない文字パターンに対する比較検定が行
われるが、本発明によれば、その比較検定が、例えば図
20(c)に示すように、第1ストローク目で中止され
る(なお、図20(b)および図20(c)において、
(x,y)のうちのxまたはyは、各時点での比較結果
値または類似度を示している)。従って、辞書4を階層
的に構成した場合には、より認識速度を向上させること
ができる。
In this case, in the conventional case, for example, as shown in FIG.
As shown in (b), a comparison test is performed on character patterns that do not approximate handwritten characters up to the third stroke. According to the present invention, the comparison test is shown in FIG. 20 (c), for example. Thus, the stroke is stopped at the first stroke (note that in FIG. 20 (b) and FIG. 20 (c),
X or y of (x, y) indicates the comparison result value or the similarity at each time point). Therefore, when the dictionary 4 is hierarchically constructed, the recognition speed can be further improved.

【0139】[0139]

【発明の効果】以上の如く、本発明によれば、認識率を
低下させることなく、認識速度を向上させることができ
る。
As described above, according to the present invention, the recognition speed can be improved without lowering the recognition rate.

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

【図1】本発明を適用した手書き文字認識装置の一実施
例の構成を示すブロック図である。
FIG. 1 is a block diagram showing the configuration of an embodiment of a handwritten character recognition device to which the present invention is applied.

【図2】基本ストロークと、それに付された基本ストロ
ークコードとの対応関係を示す図である。
FIG. 2 is a diagram showing a correspondence relationship between a basic stroke and a basic stroke code attached to the basic stroke.

【図3】量子化された方向と、それに付された方向コー
ドとの対応関係を示す図である。
FIG. 3 is a diagram showing a correspondence relationship between a quantized direction and a direction code attached to it.

【図4】手書き文字を示す図である。FIG. 4 is a diagram showing handwritten characters.

【図5】図4の手書き文字から抽出された特徴量を示す
図である。
FIG. 5 is a diagram showing a feature amount extracted from the handwritten character of FIG.

【図6】辞書4の構成を説明する図である。FIG. 6 is a diagram illustrating a configuration of a dictionary 4.

【図7】認識装置5の動作を説明するフローチャートで
ある。
FIG. 7 is a flowchart illustrating an operation of the recognition device 5.

【図8】認識装置5のより詳細な動作を説明するフロー
チャートである。
FIG. 8 is a flowchart illustrating a more detailed operation of the recognition device 5.

【図9】手書き文字の認識結果候補の文字コードと類似
度とが記憶される認識候補バッファ7を説明する図であ
る。
FIG. 9 is a diagram illustrating a recognition candidate buffer 7 in which character codes and similarity of handwritten character recognition result candidates are stored.

【図10】比較結果値が記憶される比較結果バッファ6
を説明する図である。
FIG. 10 is a comparison result buffer 6 in which comparison result values are stored.
It is a figure explaining.

【図11】図8のステップS102の処理のより詳細を
説明するフローチャートである。
FIG. 11 is a flowchart illustrating more details of the process of step S102 of FIG.

【図12】認識装置5のより詳細な動作を説明するフロ
ーチャートである。
FIG. 12 is a flowchart illustrating a more detailed operation of the recognition device 5.

【図13】認識装置5のより詳細な動作を説明するフロ
ーチャートである。
FIG. 13 is a flowchart illustrating a more detailed operation of the recognition device 5.

【図14】認識装置5のより詳細な動作を説明するフロ
ーチャートである。
FIG. 14 is a flowchart illustrating a more detailed operation of the recognition device 5.

【図15】方向差と比較結果値との対応関係を示す図で
ある。
FIG. 15 is a diagram showing a correspondence relationship between direction differences and comparison result values.

【図16】認識装置5のより詳細な動作を説明するフロ
ーチャートである。
FIG. 16 is a flowchart illustrating a more detailed operation of the recognition device 5.

【図17】手書き文字を示す図である。FIG. 17 is a diagram showing handwritten characters.

【図18】図17の手書き文字から抽出された特徴量を
示す図である。
FIG. 18 is a diagram showing a feature amount extracted from the handwritten character of FIG. 17.

【図19】図17の手書き文字が比較検定される様子を
説明する図である。
FIG. 19 is a diagram for explaining how the handwritten characters of FIG. 17 are compared and verified.

【図20】辞書4の他の構成例を示す図である。FIG. 20 is a diagram showing another configuration example of the dictionary 4.

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

1 手書き文字入力装置 1a ペン(入力ペン) 2 特徴抽出装置 3 特徴バッファ 4 辞書 5 認識装置 6 比較結果バッファ 7 認識候補バッファ 1 Handwritten character input device 1a Pen (input pen) 2 Feature extraction device 3 Feature buffer 4 Dictionary 5 Recognition device 6 Comparison result buffer 7 Recognition candidate buffer

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 手書きで入力された手書き文字を認識す
る手書き文字認識装置において、 標準の文字パターンを記憶している記憶手段と、 前記手書き文字の特徴量を抽出する抽出手段と、 前記抽出手段により抽出された特徴量を、前記記憶手段
に記憶されている標準の文字パターンと比較検定するこ
とにより、その標準の文字パターンに対する、前記手書
き文字の類似度を算出し、その類似度に基づいて、文字
認識結果候補を求める検定手段とを備え、 前記検定手段は、 前記比較検定を、所定の単位ごとに行い、その所定の単
位ごとに前記類似度を算出し、 その類似度と、所定の閾値とを比較し、その比較結果に
応じて、前記標準の文字パターンとの比較検定を中止し
て、次の標準の文字パターンとの比較検定を開始し、 所定の場合に、前記所定の閾値を変更することを特徴と
する手書き文字認識装置。
1. A handwriting character recognition device for recognizing a handwritten character input by handwriting, a storage means for storing a standard character pattern, an extracting means for extracting a feature amount of the handwritten character, and the extracting means. By comparing and testing the feature amount extracted by the standard character pattern stored in the storage means, the similarity of the handwritten character to the standard character pattern is calculated, and based on the similarity. A character recognition result candidate, and the verification means performs the comparison test for each predetermined unit, calculates the similarity for each predetermined unit, and calculates the similarity and the predetermined value. Compare with the threshold value, according to the comparison result, the comparison test with the standard character pattern is stopped, the comparison test with the next standard character pattern is started, and in a predetermined case, Handwritten character recognition apparatus characterized by changing the serial predetermined threshold.
【請求項2】 前記検定手段は、 前記所定の閾値を、いま比較検定を行っている前記手書
き文字のストローク数に対応して変更することを特徴と
する請求項1に記載の手書き文字認識装置。
2. The handwritten character recognition device according to claim 1, wherein the verification unit changes the predetermined threshold value in accordance with the number of strokes of the handwritten character which is being compared and verified. .
【請求項3】前記検定手段は、 前記所定の閾値を、前記手書き文字の書き始めのストロ
ークに対しては、それ以降のストロークに対するより
も、前記比較検定が中止され易い値にすることを特徴と
する請求項2に記載の手書き文字認識装置。
3. The verification means sets the predetermined threshold value to a value at which the comparison verification is more likely to be stopped for a stroke at the beginning of writing the handwritten character than for subsequent strokes. The handwritten character recognition device according to claim 2.
【請求項4】 前記検定手段は、 前記手書き文字の全ストローク数と、所定の画数とを比
較し、その比較結果に応じて、前記所定の閾値を、前記
手書き文字の全ストロークにわたって、前記比較検定が
中止され難い値にすることを特徴とする請求項2または
3に記載の手書き文字認識装置。
4. The verification means compares the total number of strokes of the handwritten character with a predetermined number of strokes, and according to the comparison result, the predetermined threshold value is applied to the comparison of the total strokes of the handwritten character. The handwritten character recognition device according to claim 2 or 3, wherein the value is set such that the test is difficult to stop.
JP6096049A 1994-05-10 1994-05-10 Device for recognizing hand-written character Withdrawn JPH07302305A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6096049A JPH07302305A (en) 1994-05-10 1994-05-10 Device for recognizing hand-written character

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6096049A JPH07302305A (en) 1994-05-10 1994-05-10 Device for recognizing hand-written character

Publications (1)

Publication Number Publication Date
JPH07302305A true JPH07302305A (en) 1995-11-14

Family

ID=14154615

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6096049A Withdrawn JPH07302305A (en) 1994-05-10 1994-05-10 Device for recognizing hand-written character

Country Status (1)

Country Link
JP (1) JPH07302305A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110287839A (en) * 2019-06-17 2019-09-27 上海理工大学 Handwritten numeral image recognition classification method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110287839A (en) * 2019-06-17 2019-09-27 上海理工大学 Handwritten numeral image recognition classification method

Similar Documents

Publication Publication Date Title
US7369702B2 (en) Template-based cursive handwriting recognition
US7302099B2 (en) Stroke segmentation for template-based cursive handwriting recognition
JP3077765B2 (en) System and method for reducing search range of lexical dictionary
JPH05324903A (en) Pattern recognizing device
WO1995008158A1 (en) Universal symbolic handwriting recognition system
US8009915B2 (en) Recognition of mathematical expressions
JPH08161429A (en) Method and apparatus for recognition of character
JP4817297B2 (en) Character search device
US6724936B1 (en) Handwriting input device and method using a single character set
US20230096728A1 (en) System and method for text line and text block extraction
JPH07302305A (en) Device for recognizing hand-written character
JPH0610829B2 (en) Handwriting recognition method
JP3977473B2 (en) Handwritten character recognition method and handwritten character recognition apparatus
JP3817281B2 (en) Information processing apparatus and method
JPH09319828A (en) On-line character recognition device
JP2000163514A (en) Character recognizing method and device and storage medium
JP3657077B2 (en) Online character recognition device
JP3815934B2 (en) Handwritten character recognition apparatus and method
JP3164962B2 (en) Method and apparatus for creating character recognition dictionary
AU2020103527A4 (en) IPDN- Read Handwriting: Intelligent Process to Read Handwriting Using Deep Learning and Neural Networks
JPH09179938A (en) On-line handwritten character recognition device
JP3221488B2 (en) Online character recognition device with verification function
JP3198218B2 (en) Online handwriting recognition method
JPH10143610A (en) Character recognizing device
JP2882327B2 (en) Line figure matching device

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20010731