JPH07282200A - On-line character recognizing device - Google Patents

On-line character recognizing device

Info

Publication number
JPH07282200A
JPH07282200A JP6065886A JP6588694A JPH07282200A JP H07282200 A JPH07282200 A JP H07282200A JP 6065886 A JP6065886 A JP 6065886A JP 6588694 A JP6588694 A JP 6588694A JP H07282200 A JPH07282200 A JP H07282200A
Authority
JP
Japan
Prior art keywords
value
character
registered
correction
partial pattern
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
JP6065886A
Other languages
Japanese (ja)
Inventor
Shizuo Nagata
静男 永田
Hideo Tanimoto
英雄 谷本
Kinya Endo
欽也 遠藤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP6065886A priority Critical patent/JPH07282200A/en
Publication of JPH07282200A publication Critical patent/JPH07282200A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Character Discrimination (AREA)

Abstract

PURPOSE:To execute the matching with high precision without increasing dictionary capacity by taking an error occurring set the time of the matching of a deformed handwritten character like an inclined character, etc., into consideration. CONSTITUTION:In a preprocessing part 2, the linearization of the handwritten character inputted from a tablet 1 is executed. In a feature point extracting part 3, feature point extraction processing is executed. In a stroke coding part 4, stroke coding is executed. In a broadly classifying part 5, broad classification using a stroke number is executed. In an intermediately classifying part 6, an inter partial-pattern vector is calculated, and inter partial-pattern vector matching processing is executed. In a partial pattern value matching part 7, a partial pattern Q value is calculated, and in a correction value processing part 12, the partial pattern Q value is corrected by a correction judging part 11 by using the correction value stored in a memory. In a partial pattern stroke code matching part 8, the matching processing of partial pattern stroke code distribution is executed.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、実時間にて筆記文字を
識別するオンライン文字認識装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an on-line character recognition device for identifying written characters in real time.

【0002】[0002]

【従来の技術】従来、このような分野の技術としては、
例えば、次のような文献に記載されるものがあった。 文献;特願昭62−229384号公報 従来、オンライン文字認識装置において、一般的な文字
認識方法としては、パターンマッチング方式がある。こ
のパターンマッチング方式では、筆記入力されたストロ
ーク(ペンオンからペンオフまでの筆記部分)の座標デ
ータ列より特徴点を抽出し、登録しておいたパターン
(以下、登録パターンという)の情報とマッチングし、
文字認識を行う。このパターンマッチング方式では、筆
記された各ストロークを登録パターンの各ストロークの
どのストロークとマッチングすべきかの処理に多大の時
間を要する。また、全体の字のバランスが乱れると、例
えば“河”という文字において“シ”が小さく“可”が
大の時、マッチング結果は似ていないという結果が得ら
れる等、筆記文字変形に弱い。そこで、パターンマッチ
ング方式の以上の欠点を補い、しかも処理量が少なくて
すむオンライン文字認識方式として、前記文献に記載さ
れたものがある。前記文献では、筆記文字のストローク
数により大分類を行い、筆記上一連のものとして筆記す
る部分を部分パターンとする。そして、この部分パター
ンを重心間のベクトルにより中分類を行い、部分パター
ンの特徴パラメータとしてのQ値なる値及びストローク
コード分布なる値をもってマッチングを行う。これによ
って、全体の字のバランスの変動に強く、しかも処理量
の少ない文字認識が行うことができる。
2. Description of the Related Art Conventionally, as a technique in such a field,
For example, some documents were described in the following documents. Document: Japanese Patent Application No. 62-229384. Conventionally, in an online character recognition device, there is a pattern matching method as a general character recognition method. In this pattern matching method, feature points are extracted from the coordinate data string of a stroke (writing portion from pen-on to pen-off) input by handwriting, and matched with information of a registered pattern (hereinafter referred to as a registered pattern),
Performs character recognition. In this pattern matching method, it takes a lot of time to process which stroke of each stroke of the registered pattern each written stroke should be matched with. In addition, if the balance of the entire characters is disturbed, for example, when the character "kawa" has a small "shi" and a large "OK", the matching result is not similar, and it is vulnerable to handwritten character deformation. Therefore, there is an online character recognition method described in the above-mentioned document that compensates for the above-mentioned drawbacks of the pattern matching method and requires less processing amount. In the above-mentioned literature, a large classification is made according to the number of strokes of a writing character, and a portion to be written as a series in writing is defined as a partial pattern. Then, this partial pattern is subjected to middle classification by the vector between the centers of gravity, and matching is performed using the value of Q value and the value of stroke code distribution as the characteristic parameter of the partial pattern. This makes it possible to perform character recognition that is resistant to fluctuations in the overall character balance and that requires less processing.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、従来の
オンライン文字認識装置では、全体の字のバランスの変
動に強く、しかも処理量が少ないくて済むという利点を
有するものの、以下のよう問題点があった。従来のオン
ライン文字認識装置では、傾斜文字、例えば極端に右上
がりあるいは右下がりの文字等の癖字に対しては、基本
辞書として通常の文字より抽出した特徴パラメータであ
るQ値なる値の他に、識別精度を向上すべく辞書定義文
字すべての文字に対して傾斜文字に対応する特徴パラメ
ータにて辞書を作成して置く等により対処していた。こ
のため、辞書容量が極めて大となり、またこの辞書容量
とともに検索する処理量が増大し、認識に要する時間が
長くなる等の問題点があった。
However, although the conventional online character recognition device has the advantage that it is resistant to fluctuations in the overall character balance and requires a small amount of processing, it has the following problems. It was In the conventional online character recognition device, in addition to the Q value, which is a characteristic parameter extracted from a normal character as a basic dictionary, in addition to the value of a tilted character, for example, a habit character such as a character that rises or falls to the extreme right, as a basic dictionary. In order to improve the identification accuracy, a dictionary is created and placed for all the characters of the dictionary definition character with the characteristic parameter corresponding to the slanted character. For this reason, there is a problem that the dictionary capacity becomes extremely large, the amount of processing for searching increases with the dictionary capacity, and the recognition time becomes long.

【0004】[0004]

【課題を解決するための手段】第1の発明は、前記課題
を解決するために、筆記者によってタブレットに筆記入
力された座標データ列の不要データを除去し、直線化処
理を施す前処理部と、前記前処理部により直線化された
座標データ列から、筆記文字を構成するストロークの特
徴抽出する特徴点抽出部と、前記特徴点抽出部で抽出さ
れた特徴点の位置関係により各ストロークをコード化す
るストロークコード化部と、筆記上一連ものとして筆記
する部分を部分パターンとし、前記ストロークコード化
部の出力より前記部分パターンの特徴パラメータQ値を
算出し、予め登録された登録文字の登録部分パターンか
ら算出された登録特徴パラメータQ値と前記特徴パラメ
ータQ値とを比較する部分パターンQ値マッチング部と
を、備え、前記特徴点抽出部又はストロークコード化部
の出力データと予め登録されている前記登録文字の登録
パターンとの比較結果、又は部分パターンQ値マッチン
グ処理部の比較結果に基づき文字認識を行うオンライン
文字認識装置において、以下の処理部を設けている。す
なわち、筆記者によって筆記入力された筆記文字の前記
特徴パラメータQ値と該筆記文字に対応する前記登録文
字の登録特徴パラメータQ値との間の相対距離値を補正
値として記憶し、筆記者によって筆記入力された時、該
筆記入力された筆記文字の前記特徴パラメータQ値又は
前記登録文字の登録特徴パラメータQ値を前記記憶され
た補正値に基づいて補正する補正部を設けている。そし
て、前記部分パターンQ値マッチング処理部が前記補正
部により補正された特徴パラメータQ値と前記登録特徴
パラメータQ値とを比較し、又は特徴パラメータQ値と
前記補正部により補正された登録特徴パラメータQ値と
を比較するようにした。第2の発明は、第1の発明の補
正部が以下の処理を行う。即ち、前記登録文字に対応す
る筆記者の筆記文字を予め筆記者に筆記入力させること
により学習する学習モードにおいて、前記補正部が、前
記予め筆記者に筆記入力させた筆記文字の特徴パラメー
タQ値と該筆記文字に対応する登録文字の登録特徴パラ
メータQ値との間の相対距離値を算出し、該相対距離値
を補正値として記憶する。第3の発明は、第1の発明の
補正部が以下の処理を行う。即ち、前記筆記者の筆記文
字に対応する前記登録文字が候補文字として文字認識さ
れ、該文字認識された候補文字が前記筆記者によって確
定された時、前記補正部が、該筆記文字の特徴パラメー
タと前記候補文字の登録特徴パラメータとの相対距離値
を算出し、該相対距離値を補正値として記憶する。
In order to solve the above-mentioned problems, the first invention removes unnecessary data of a coordinate data string written on a tablet by a writer and executes a linearization process. From the coordinate data string linearized by the pre-processing unit, each stroke is defined by the feature point extraction unit that extracts the features of the strokes that make up the written character and the positional relationship between the feature points extracted by the feature point extraction unit. A stroke coding unit to be coded and a portion to be written as a series in writing are used as a partial pattern, the characteristic parameter Q value of the partial pattern is calculated from the output of the stroke coding unit, and the registered character is registered in advance. A partial pattern Q value matching unit that compares the registered characteristic parameter Q value calculated from the partial pattern with the characteristic parameter Q value is provided. An online character recognition device for performing character recognition based on a comparison result between output data of a point extraction unit or a stroke coding unit and a registered pattern of the registered character registered in advance or a comparison result of a partial pattern Q value matching processing unit. The following processing units are provided. That is, the relative distance value between the characteristic parameter Q value of the written character handwritten by the writer and the registered characteristic parameter Q value of the registered character corresponding to the written character is stored as a correction value, and the writer writes the relative distance value. A correction unit is provided for correcting the characteristic parameter Q value of the handwritten character or the registered characteristic parameter Q value of the registered character when the handwriting is input, based on the stored correction value. The partial pattern Q value matching processing unit compares the characteristic parameter Q value corrected by the correcting unit with the registered characteristic parameter Q value, or the characteristic parameter Q value and the registered characteristic parameter corrected by the correcting unit. The Q value is compared. In the second invention, the correction unit of the first invention performs the following processing. That is, in the learning mode in which the writing character of the writer corresponding to the registered character is learned by allowing the writer to input the writing character in advance, the correction unit causes the correction unit to previously input the characteristic parameter Q value of the writing character. And the relative distance value between the registered characteristic parameter Q value of the registered character corresponding to the written character is calculated, and the relative distance value is stored as a correction value. In the third invention, the correction unit of the first invention performs the following processing. That is, when the registered character corresponding to the handwritten character of the writer is character-recognized as a candidate character, and the character-recognized candidate character is confirmed by the writer, the correction unit determines the characteristic parameter of the handwritten character. And a relative distance value between the candidate character and the registered characteristic parameter are calculated, and the relative distance value is stored as a correction value.

【0005】[0005]

【作用】第1の発明によれば、以上のようにオンライン
文字認識装置を構成したので、補正部は筆記者によって
筆記入力された筆記文字の前記特徴パラメータQ値と該
筆記文字に対応する前記登録文字の登録特徴パラメータ
Q値との間の相対距離値を補正値として記憶し、筆記者
によって筆記入力された時、該筆記入力された筆記文字
の前記特徴パラメータQ値又は前記登録文字の登録特徴
パラメータQ値を前記記憶された補正値に基づいて補正
するので、筆記者によって筆記入力される筆記文字の癖
字等による特徴パラメータQ値が補正される。よって、
筆記文字の癖字等による認識率の低下を防止する働きが
ある。第2の発明によれば、補正部が、予め筆記者に筆
記入力させた筆記文字の特徴パラメータQ値と該筆記文
字に対応する登録文字の登録特徴パラメータQ値との間
の相対距離値を算出し、該相対距離値を補正値として記
憶する。そして、この補正値に基づいて、筆記者の筆記
文字の特徴パラメータQ値又は登録特徴パラメータQ値
を補正する。第3の発明によれば、筆記者の筆記文字に
対応する登録文字が候補文字として文字認識され、該文
字認識された候補文字が前記筆記者によって確定された
時、補正部が、該筆記文字の特徴パラメータと前記候補
文字の登録特徴パラメータとの相対距離値を算出し、該
相対距離値を補正値として記憶する。そして、この補正
値に基づいて、筆記者の筆記文字の特徴パラメータQ値
又は登録特徴パラメータQ値を補正する。従って、前記
課題を解決できるのである。
According to the first aspect of the present invention, since the online character recognition device is configured as described above, the correction unit includes the characteristic parameter Q value of the handwritten character handwritten by the writer and the characteristic parameter Q value corresponding to the handwritten character. The relative distance value between the registered character and the registered characteristic parameter Q value is stored as a correction value, and when the writing is input by a writer, the characteristic parameter Q value of the written character input by the writer or the registration of the registered character is registered. Since the characteristic parameter Q value is corrected based on the stored correction value, the characteristic parameter Q value due to the habit character of the handwritten character written by the writer is corrected. Therefore,
It has the function of preventing the recognition rate from decreasing due to the habit of written characters. According to the second aspect of the invention, the correction unit determines the relative distance value between the characteristic parameter Q value of the handwritten character that the writer previously inputs by hand and the registered characteristic parameter Q value of the registered character corresponding to the handwritten character. The calculated relative distance value is stored as a correction value. Then, based on this correction value, the characteristic parameter Q value or the registered characteristic parameter Q value of the written character of the writer is corrected. According to the third invention, the registered character corresponding to the written character of the writer is character-recognized as a candidate character, and when the character-recognized candidate character is confirmed by the writer, the correction unit causes the written character to be The relative distance value between the characteristic parameter of No. 1 and the registered characteristic parameter of the candidate character is calculated, and the relative distance value is stored as a correction value. Then, based on this correction value, the characteristic parameter Q value or the registered characteristic parameter Q value of the written character of the writer is corrected. Therefore, the above problem can be solved.

【0006】[0006]

【実施例】本実施例では、辞書に予め登録された登録文
字と筆記者の筆記文字との対応を確認するモードとし
て、以下の3つのモード(1)〜(3)を設けており、
登録文字と筆記者の筆記文字が確認されたとき、後述す
る登録文字の登録特徴パラメータQ値と筆記者の筆記文
字の特徴パラメータQ値との相対距離値を補正値として
登録する。 (1)学習モード このモードでは、予め決められた文字を筆記させ、その
筆記文字の特徴パラメータQ値と登録文字の登録特徴パ
ラメータQ値との相対距離値を補正値として使用するも
のである。例えば、電源オンまたは、リセット時に、こ
のモードにし最初の筆記文字を学習させるのが一般的で
ある。 (2)次候補選択モード このモードは、筆記者が筆記した文字の認識結果を見
て、認識結果が筆記文字と一致すれば、筆記者が認識結
果を確認し、認識結果が筆記文字と異なった場合には、
次候補を選択するモードであって、筆記者が認識結果を
確認した場合に、その筆記文字の特徴パラメータQ値と
登録文字の登録パラメータQ値との相対距離値を補正値
として使用するものである。 (3)確認モード このモードは、筆記された筆記文字列を別モードに転送
したかどうかを判定することによって、筆記文字が筆記
者によって確認されたことを認識し、筆記された筆記文
字列を別モードに転送した時に、筆記文字列の各文字の
特徴パラメータQ値と対応する登録文字の登録特徴パラ
メータQ値との相対距離値を補正値として使用するもの
である。一般的に、文章を作成する場合、先ず文章入力
モードを設け、単語単位の筆記文字を筆記し、この筆記
文字列を、別モード、例えば文章モードに転送し文章を
作成する。このモードの切り替えを文字確定の判定に使
用する。まず、前記(1)〜(3)の各モードに応じた
本発明の実施例のオンライン文字認識装置を説明し、そ
の後、これらの実施例のオンライン文字認識装置の動作
を説明する。
[Embodiment] In the present embodiment, the following three modes (1) to (3) are provided as modes for confirming the correspondence between registered characters registered in the dictionary in advance and the written characters of the writer,
When the registered character and the written character of the writer are confirmed, the relative distance value between the registered characteristic parameter Q value of the registered character and the characteristic parameter Q value of the written character of the writer described later is registered as a correction value. (1) Learning Mode In this mode, a predetermined character is written, and the relative distance value between the characteristic parameter Q value of the written character and the registered characteristic parameter Q value of the registered character is used as a correction value. For example, when the power is turned on or reset, it is common to enter this mode and learn the first written character. (2) Next candidate selection mode In this mode, if the recognition result matches the written character, the writer checks the recognition result and the recognition result is different from the written character. If
In the mode for selecting the next candidate, when the writer confirms the recognition result, the relative distance value between the characteristic parameter Q value of the written character and the registered parameter Q value of the registered character is used as the correction value. is there. (3) Confirmation mode This mode recognizes that the written character has been confirmed by the writer by determining whether or not the written written character string has been transferred to another mode, and the written written character string is recognized. When transferred to another mode, the relative distance value between the characteristic parameter Q value of each character of the written character string and the registered characteristic parameter Q value of the corresponding registered character is used as a correction value. Generally, when creating a sentence, first, a sentence input mode is provided to write a written character in word units, and this written character string is transferred to another mode, for example, a sentence mode to create a sentence. This mode switching is used for character determination. First, the online character recognition devices according to the embodiments of the present invention corresponding to the modes (1) to (3) will be described, and then the operations of the online character recognition devices according to these embodiments will be described.

【0007】第1の実施例 図1は、本発明の第1の実施例を示すオンライン文字認
識装置の機能ブロック図である。本発明の第1の実施例
は、前記学習モードを実現するためのオンライン文字認
識装置である。このオンライン文字認識装置は、集積回
路を用いた個別回路、あるいはディジタル・シグナル・
プロセッサ(DSP)等のプログラム制御等によって構
成されるもので、文字の位置座標をペンタッチ入力する
タブレット1を有している。タブレット1には前処理部
2が接続され、さらにその出力側には筆記文字の特徴点
を抽出する特徴点抽出部3が接続されている。特徴点抽
出部3にはストロークの特徴を抽出するストロークコー
ド部4が接続され、さらにそのその出力側にはストロー
ク数によって分類する大分類部5が接続されている。大
分類部5の出力側には中分類部6が接続され、さらにそ
の出力側には部分パターンQ値マッチング部7が接続さ
れている。部分パターンQ値マッチング部7の出力側に
は部分パターンストロークコード分布マッチング部8が
接続されている。部分パターンストロークコード分布マ
ッチング部8には表示器等への出力端子10が接続され
ている。部分パターンQ値マッチング部7には補正部と
しての補正処理部12及び補正判定部11が接続されて
いる。部分パターンストロークコード分布マッチング部
8及び補正処理部12には補正判定部11が接続されて
いる。また、学習モードの判別を行い、筆記者に予め決
められた文字を筆記させ、登録文字との対応を確認する
補正制御部13が設けられ、この補正制御部13には補
正処理部12が接続されている。補正処理部12は筆記
者の筆記文字の全てのQ値と登録文字の全てのQ値との
相対距離値を算出し、該相対距離値に基づき補正値を作
成し、該補正値を補正判定部11に出力するものであ
る。また、補正処理部12は補正判定部11により記憶
された登録文字に対応する補正値に基づいて筆記者の筆
記文字のQ値を補正し、該補正されたQ値を部分パター
ンQ値マッチング部7に出力するものである。補正判定
部11は、部分パターンQ値マッチング部7、補正処理
部12、及び部分パターンストロークコードマッチング
部8からの出力に基づき、前記補正値を補正判定部11
に設けられたメモリに記憶する否かの判定をするもので
ある。第2の実施例 図2は、本発明の第2の実施例を示すオンライン文字認
識装置の機能ブロック図であり、図1中の第1の実施例
と同様の要素には同一の符号を付している。本発明の第
2の実施例は、前記次候補選択モードを実現するための
オンライン文字認識装置であり、タブレット1に接続さ
れた補正制御部23を有し、補正制御部23には補正処
理部22が接続されている。補正制御部23は前処理前
のタブレット1より入力された座標値から筆記者が次候
補選択操作を行ったかを判定し、その判定結果を補正処
理部22に出力するものである。補正処理部22は補正
制御部23の判定結果に基づき、筆記者の筆記文字の全
てのQ値と登録文字の全てのQ値との相対距離値を算出
し、該相対距離値に基づき補正値を作成し、該補正値を
補正判定部11に出力するものである。また、補正処理
部22は補正判定部11により記憶された登録文字に対
応する補正値に基づいて筆記者の筆記文字のQ値の補正
し、該補正されたQ値を部分パターンQ値マッチング部
7に出力するものである。
First Embodiment FIG. 1 is a functional block diagram of an online character recognition device showing a first embodiment of the present invention. The first embodiment of the present invention is an online character recognition device for realizing the learning mode. This online character recognition system can be used for individual circuits using integrated circuits, or digital signal
It is configured by program control of a processor (DSP) or the like, and has a tablet 1 for pen position input of position coordinates of characters. A pre-processing unit 2 is connected to the tablet 1, and a feature point extracting unit 3 for extracting feature points of written characters is connected to the output side thereof. A stroke code unit 4 for extracting stroke features is connected to the feature point extraction unit 3, and a large classification unit 5 for classification according to the number of strokes is connected to the output side thereof. The middle classification unit 6 is connected to the output side of the large classification unit 5, and the partial pattern Q value matching unit 7 is further connected to the output side thereof. A partial pattern stroke code distribution matching unit 8 is connected to the output side of the partial pattern Q value matching unit 7. An output terminal 10 to a display or the like is connected to the partial pattern stroke code distribution matching unit 8. A correction processing unit 12 and a correction determination unit 11 as a correction unit are connected to the partial pattern Q value matching unit 7. A correction determination unit 11 is connected to the partial pattern stroke code distribution matching unit 8 and the correction processing unit 12. Further, a correction control unit 13 is provided which determines the learning mode, causes the writer to write a predetermined character, and confirms the correspondence with the registered character. The correction processing unit 12 is connected to the correction control unit 13. Has been done. The correction processing unit 12 calculates a relative distance value between all the Q values of the written character of the writer and all the Q values of the registered character, creates a correction value based on the relative distance value, and corrects the correction value. It is output to the unit 11. Further, the correction processing unit 12 corrects the Q value of the handwritten character of the writer based on the correction value corresponding to the registered character stored by the correction determination unit 11, and the corrected Q value is used as the partial pattern Q value matching unit. 7 is output. The correction determination unit 11 determines the correction value based on the outputs from the partial pattern Q value matching unit 7, the correction processing unit 12, and the partial pattern stroke code matching unit 8.
It is determined whether or not to store in the memory provided in. Second Embodiment FIG. 2 is a functional block diagram of an online character recognition device showing a second embodiment of the present invention, in which elements similar to those in the first embodiment in FIG. is doing. The second embodiment of the present invention is an online character recognition device for realizing the next candidate selection mode, which has a correction control unit 23 connected to the tablet 1, and the correction control unit 23 has a correction processing unit. 22 is connected. The correction control unit 23 determines whether the writer has performed the next candidate selection operation from the coordinate values input from the tablet 1 before preprocessing, and outputs the determination result to the correction processing unit 22. The correction processing unit 22 calculates the relative distance value between all the Q values of the written characters of the writer and all the Q values of the registered characters based on the determination result of the correction control unit 23, and the correction value based on the relative distance value. Is generated and the correction value is output to the correction determination unit 11. Further, the correction processing unit 22 corrects the Q value of the handwritten character of the writer based on the correction value corresponding to the registered character stored by the correction determination unit 11, and uses the corrected Q value for the partial pattern Q value matching unit. 7 is output.

【0008】第3の実施例 図3は、本発明の第3の実施例を示すオンライン文字認
識装置の機能ブロック図であり、図2中の第2の実施例
と同様の要素には同一の符号を付している。本発明の第
3の実施例は、第2の実施例と同様の次候補選択モード
を実現するためのオンライン文字認識装置であるが、第
2の実施例と異なる点は、筆記者の筆記文字のY方向の
Q値と登録文字のY方向のQ値との相対距離値を算出
し、該相対距離値に基づき補正値を作成するものであ
る。図3のオンライン文字認識装置では、図2中の補正
処理部22の代わりに補正処理部32が設けられてい
る。補正処理部32は筆記者の筆記文字のY方向のQ値
と登録文字のY方向のQ値との相対距離値を算出し、該
相対距離値に基づき補正値を作成し、該補正値を補正判
定部11に出力するものである。また、補正処理部32
は補正判定部11により記憶された登録文字に対応する
補正値に基づいて筆記者の筆記文字のY方向のQ値を補
正し、該補正されたQ値を部分パターンQ値マッチング
部7に出力するものである。
Third Embodiment FIG. 3 is a functional block diagram of an online character recognition device showing a third embodiment of the present invention. The same elements as those of the second embodiment in FIG. The code is attached. The third embodiment of the present invention is an online character recognition device for realizing the next candidate selection mode similar to the second embodiment. However, the difference from the second embodiment is that the writing characters of the writer are written. The relative distance value between the Q value in the Y direction and the Q value in the Y direction of the registered character is calculated, and a correction value is created based on the relative distance value. The online character recognition device in FIG. 3 is provided with a correction processing unit 32 instead of the correction processing unit 22 in FIG. The correction processing unit 32 calculates a relative distance value between the Q value of the writing character in the Y direction and the Q value of the registered character in the Y direction, creates a correction value based on the relative distance value, and calculates the correction value. It is output to the correction determination unit 11. Further, the correction processing unit 32
Corrects the Q value in the Y direction of the written character of the writer based on the correction value corresponding to the registered character stored by the correction determination unit 11, and outputs the corrected Q value to the partial pattern Q value matching unit 7. To do.

【0009】第4の実施例 図4は、本発明の第4の実施例を示すオンライン文字認
識装置の機能ブロック図であり、図1中の第1の実施例
と同様の要素には同一の符号を付している。本発明の第
4の実施例は、前記確認モードを実現するためのオンラ
イン文字認識装置である。図4中の補正処理部42は筆
記された筆記文字列が別モードに転送されたかどうかを
判定し、判定結果に基づき、筆記者の筆記文字の全ての
Q値と登録文字の全てのQ値との相対距離値を算出し、
該相対距離値に基づき補正値を作成し、該補正値を補正
判定部11に出力する。また、補正処理部42は補正判
定部11により登録された登録文字に対応する補正値に
基づいて筆記者の筆記文字のQ値の補正し、該補正され
たQ値を部分パターンQ値マッチング部7に出力するも
のである。図5は、図1〜図4のオンライン文字認識装
置の機能の概略を示すフローチャートであり、この図を
用いて図1〜図4のオンライン文字認識装置の動作の概
要を説明する。ステップ1では前処理部2の処理を行
う。また、次候補選択時の補正処理の際、タブレット1
より入力された前処理前の座標値から、図2又は図3中
の補正制御部23により筆者が、次候補選択操作を行っ
たかを判定し、後述する次候補選択時の補正処理を行
う。ステップ2では特徴点抽出部3の特徴点抽出処理を
行う。ステップ3では、ストロークコード化部4のスト
ロークコード化を行う。ステップ4では、大分類部5で
のストローク数による大分類処理を行う。ステップ5〜
8では、中分類部6での処理を行う。ステップ5は文字
辞書終了の判定処理であり、ステップ6は部分パターン
間ベクトル算出処理であり、ステップ7は部分パターン
間ベクトルマッチング処理であり、ステップ8はマッチ
ング結果の判定処理である。
Fourth Embodiment FIG. 4 is a functional block diagram of an online character recognizing device showing a fourth embodiment of the present invention. The same elements as those of the first embodiment in FIG. The code is attached. The fourth embodiment of the present invention is an online character recognition device for realizing the confirmation mode. The correction processing unit 42 in FIG. 4 determines whether the written character string written is transferred to another mode, and based on the determination result, all Q values of the written character of the writer and all Q values of the registered character. Calculate the relative distance value between
A correction value is created based on the relative distance value, and the correction value is output to the correction determination unit 11. Further, the correction processing unit 42 corrects the Q value of the handwritten character of the writer based on the correction value corresponding to the registered character registered by the correction determination unit 11, and the corrected Q value is used by the partial pattern Q value matching unit. 7 is output. FIG. 5 is a flow chart showing the outline of the functions of the online character recognition device of FIGS. 1 to 4, and the outline of the operation of the online character recognition device of FIGS. 1 to 4 will be described using this figure. In step 1, the process of the preprocessing unit 2 is performed. In addition, when performing the correction process when selecting the next candidate, the tablet 1
The correction control unit 23 in FIG. 2 or FIG. 3 determines whether the writer has performed the next candidate selection operation based on the coordinate values before preprocessing that have been input, and performs the correction process when selecting the next candidate, which will be described later. In step 2, the characteristic point extraction processing of the characteristic point extraction unit 3 is performed. In step 3, the stroke coding unit 4 carries out stroke coding. In step 4, the large classification unit 5 performs large classification processing according to the number of strokes. Step 5
In 8, the processing in the middle classification unit 6 is performed. Step 5 is a character dictionary end determination process, step 6 is a partial pattern vector calculation process, step 7 is a partial pattern vector matching process, and step 8 is a matching result determination process.

【0010】ステップ9〜14は部分パターンQ値マッ
チング部7での処理である。ステップ9は特徴パラメー
タQ値Qn を算出する部分パターンQ値算出処理であ
る。ステップ10は図1中の補正値処理部12,図2中
の補正値処理部22,図3中の補正処理部32,図4中
の補正処理部42での補正処理であり、補正判定部11
内のメモリに格納された補正値で部分パターンQ値を補
正する処理である。ステップ11は補正された部分パタ
ーンのQ値、Qn ´と辞書文字のQ値とをマッチング
する部分パターンQ値マッチング処理である。ステップ
12はステップ11でQ値マッチングした結果に基づき
各文字を構成する部分パターンのQ値マッチング距離d
Qn のQn に対する相対値{dQn /Qn } m
(以下この値を{ΔQn } m と呼ぶ)を確保する処理で
ある。ここで、 nはQ値の数で1〜16、m は部分パタ
ーンの番号を示す。ステップ13は距離値di の算出処
理であり、ステップ14は距離di のソーティング処理
である。ステップ15〜18は部分パターンストローク
コード分布マッチング部8での処理であり、ステップ1
5はマッチング処理、ステップ16は部分パターンスト
ロークコード分布の算出処理であり、ステップ17は部
分パターンマッチング距離dsの算出処理であり、ステ
ップ18はソーティング処理である。
Steps 9 to 14 are processes in the partial pattern Q value matching unit 7. Step 9 is a partial pattern Q value calculation process for calculating the characteristic parameter Q value Q n * . Step 10 is the correction processing in the correction value processing unit 12 in FIG. 1, the correction value processing unit 22 in FIG. 2, the correction processing unit 32 in FIG. 3, and the correction processing unit 42 in FIG. 11
This is a process of correcting the partial pattern Q value with the correction value stored in the internal memory. Step 11 Q value of the corrected partial pattern, a partial pattern Q value matching processing of matching the Q value of Q n '* and the dictionary characters. In step 12, the Q-value matching distance d of the partial pattern forming each character is based on the result of the Q-value matching in step 11.
Value relative to Q n * of Qn {dQ n / Q n * } m,
(Hereinafter, this value is referred to as {ΔQ n } m ) is secured. Here, n is the number of Q values from 1 to 16, and m is the number of the partial pattern. Step 13 is a process of calculating the distance value d i , and step 14 is a process of sorting the distance d i . Steps 15 to 18 are processing in the partial pattern stroke code distribution matching unit 8, and Step 1
5 is a matching process, step 16 is a partial pattern stroke code distribution calculation process, step 17 is a partial pattern matching distance ds calculation process, and step 18 is a sorting process.

【0011】ステップ19は図1中の補正制御部13で
の処理であり,予め決められた文字を筆記させ、その筆
記文字の特徴パラメータQ値と辞書の登録特徴パラメー
タQ値とのマッチング結果を補正値として使用する学習
モードかを判定する処理である。ステップ20は図2又
は図3中の補正制御部23での処理であり、筆記者が筆
記文字の認識結果を見て、認識結果が筆記文字と異なっ
た場合、次候補を選択する操作をしたかどうかを判定す
る処理である。ステップ21は、図4中補正処理部42
の処理であり、筆記文字が筆記者の確認により確認さ
れ、筆記された筆記文字列を別モードに転送したかどう
かを判定する文字確定判定処理である。ステップ30〜
33は、図1中の補正処理部12で行う学習モードでの
Q値補正処理である。ステップ30は学習モードにおい
て、予め決められた文字が筆記された時、この文字を構
成する部分パターン値と辞書に登録された同じ部分の部
分パターンQ値とのマッチング距離であるdQn (n は
Q値の数1〜16)を求め筆記入力されたQn 値にて
正規化(相対化)する処理である。即ち、{ΔQn } を
部分パターン数分算出し、{ΔQn } m を求める処理
である。
Step 19 is a process in the correction control unit 13 in FIG. 1, in which a predetermined character is written, and the matching result of the characteristic parameter Q value of the written character and the registered characteristic parameter Q value of the dictionary is calculated. This is a process of determining whether the learning mode is used as a correction value. Step 20 is a process in the correction control unit 23 in FIG. 2 or FIG. 3, and the writer looks at the recognition result of the written character and, if the recognition result is different from the written character, performs the operation of selecting the next candidate. This is a process of determining whether or not. Step 21 is the correction processing unit 42 in FIG.
This is the character confirmation determination processing for determining whether or not the written character is confirmed by the confirmation of the writer and the written character string written is transferred to another mode. Step 30-
33 is a Q value correction process in the learning mode performed by the correction processing unit 12 in FIG. Step 30 is a matching distance dQ n (n is a matching distance between a partial pattern value forming the character and a partial pattern Q value of the same portion registered in the dictionary when a predetermined character is written in the learning mode. This is a process for obtaining (Q values 1 to 16) and normalizing (relativeizing) with the written Q n * value. That is, this is a process of calculating {ΔQ n } for the number of partial patterns and obtaining {ΔQ n * } m .

【0012】ステップ31は、ステップ30で算出した
{ΔQn } m を部分パターン毎に部分パターンの画数
にて重み付けし加算する等の処理を行う補正値算出処理
である。ステップ32は、補正判定部11の処理であり
ステップ31にて算出した補正値がある閾値εより小さ
いかを判定し閾値εより大の時、即ち、極端に距離が離
れている場合は、間違った補正をする可能性が高いた
め、次のステップ33での補正値格納処理をスキップす
る処理である。ステップ33は算出した補正値を補正判
定部11内のメモリに格納する処理である。ステップ4
0〜43は図2又は図3中の補正処理部22又は32で
行う次候補選択モード時のQ値補正処理である。ステッ
プ40は次候補選択モードにおいて、次候補が選択され
た時、この選択された文字を構成する部分パターンQと
辞書に登録された同じ部分の部分パターンQ値とのマッ
チング距離であるdQn (nはQ値の数1〜16)を求
め、筆記入力されたQn 値にて正規化(相対化)する
処理である。即ち、{ΔQn } を部分パターン数分算出
し、{ΔQn m を求める処理である。ステップ41
は、ステップ40で算出した{ΔQn m を部分パター
ン毎に部分パターンの画数にて重み付けし加算する等の
処理を行う補正値算出処理である。ステップ42は、ス
テップ41にて算出した補正値がある閾値εより小さい
かを判定し閾値εより大の時、即ち、極端に距離が離れ
ている場合は、間違った補正をする可能性が高いため、
次ステップ43での補正値格納処理をスキップする処理
である。ステップ43は算出した補正値を補正判定部1
1内のメモリに格納する処理である。
Step 31 is a correction value calculation processing for performing processing such as weighting and adding {ΔQ n * } m calculated in step 30 for each partial pattern by the number of strokes of the partial pattern. Step 32 is a process of the correction determination unit 11, and it is determined whether the correction value calculated in step 31 is smaller than a threshold value ε, and when it is larger than the threshold value ε, that is, when the distance is extremely large, it is incorrect. Since there is a high possibility that the correction will be performed, the correction value storing process in the next step 33 is skipped. Step 33 is a process of storing the calculated correction value in the memory in the correction determination unit 11. Step 4
0 to 43 are Q value correction processing in the next candidate selection mode performed by the correction processing unit 22 or 32 in FIG. 2 or 3. In step 40, when the next candidate is selected in the next candidate selection mode, dQ n (a matching distance between the partial pattern Q forming the selected character and the partial pattern Q value of the same part registered in the dictionary). n is a process of obtaining the Q values 1 to 16) and normalizing (relativeizing) the written Q n * value. That is, this is a process of calculating {ΔQ n } for the number of partial patterns and obtaining {ΔQ n } m . Step 41
Is a correction value calculation processing for performing processing such as weighting and adding {ΔQ n } m calculated in step 40 for each partial pattern by the number of strokes of the partial pattern. In step 42, it is determined whether or not the correction value calculated in step 41 is smaller than a threshold value ε, and when it is larger than the threshold value ε, that is, when the distance is extremely large, there is a high possibility that a wrong correction is performed. For,
This is processing for skipping the correction value storage processing in the next step 43. In step 43, the calculated correction value is used as the correction determination unit 1
This is a process of storing in the memory in 1.

【0013】ステップ50〜53は図4中の補正処理部
42で行う候補確定時のQ値補正処理である。ステップ
50は候補確定された時、第1位文字を構成する部分パ
ターンQ値と辞書に登録された同じ部分の部分パターン
Q値とのマッチング距離であるdQn (nはQ値の数1〜
16)を求め筆記入力されたQn 値にて正規化(相対
化)する処理である。即ち、{ΔQn }を部分パターン
数分算出し、{ΔQnm を求める処理である。ステッ
プ51は、ステップ50で算出した{ΔQn m を部分
パターン毎に部分パターンの画数にて重み付けし加算す
る等の処理を行う補正値算出処理である。ステップ52
は、ステップ51にて算出した補正値がある閾値εより
小さいかを判定し閾値εより大の時、即ち、極端に距離
が離れている場合は、間違った補正をする可能性が高い
ため、次ステップ53での補正値格納処理をスキップす
る処理である。ステップ53は算出した補正値を補正判
定部11内のメモリに格納する処理である。図6は図1
〜4のオンライン文字認識装置が備えている文字辞書の
構成例を示す図であり、この文字辞書は画数(ストロー
ク数)により文字の選択ができるようになっている。図
7は図1〜4のオンライン文字認識装置が備えている部
分パターン辞書の構成例を示す図である。以下、図5〜
図7を用いて、図1〜図4のオンライン文字認識装置の
処理内容を以下(1)〜(6)に詳細に説明する。
Steps 50 to 53 are Q-value correction processing at the time of candidate determination, which is performed by the correction processing unit 42 in FIG. Step 50 is a matching distance between the partial pattern Q value forming the first character and the partial pattern Q value of the same portion registered in the dictionary when the candidate is determined, dQ n (n is the number of Q values 1 to 1).
16) is a process of obtaining (normalizing) (relativeizing) the written Q n * value. That, {Delta] Q n} the calculated number of partial patterns, a process for obtaining a {ΔQ n} m. Step 51 is a correction value calculation process for performing processing such as weighting and adding {ΔQ n } m calculated in step 50 for each partial pattern by the number of strokes of the partial pattern. Step 52
Determines whether the correction value calculated in step 51 is smaller than a threshold ε, and when the correction value is larger than the threshold ε, that is, when the distance is extremely large, there is a high possibility that incorrect correction is performed. This is processing for skipping the correction value storage processing in the next step 53. Step 53 is a process of storing the calculated correction value in the memory in the correction determination unit 11. 6 is shown in FIG.
4 is a diagram showing a configuration example of a character dictionary provided in the online character recognition device Nos. 4 to 4, in which the character dictionary can select a character by the number of strokes (the number of strokes). FIG. 7 is a diagram showing a configuration example of a partial pattern dictionary provided in the online character recognition device of FIGS. Below, FIG.
The processing contents of the online character recognition device of FIGS. 1 to 4 will be described in detail below in (1) to (6) with reference to FIG.

【0014】(1) 入力及び前処理(ステップ1) 図8(a)〜(c)は、図2のステップ1の前処理を説
明するための図であり、図中の「・」はタブレット1か
らの筆記データ列あるいは特徴点を表す。図1〜図4中
のタブレット1は文字を筆記入力するための入力装置で
あり、このタブレット1によって文字が筆記入力される
と、図8(a)に示すように、筆記データ列{(xi
i )、i=1,2,…,nj }が抽出され、前処理部2へ送
られる。前処理部2では、送られてきた筆記データ列に
対し、ノイズ除去処理、移動平均処理、あるいは平滑化
処理を行うことによりデータを図8(b)に示すように
平滑化し特徴点抽出部3へ出力する。 (2) 特徴点抽出処理(ステップ2) 図1〜図4の特徴点抽出処理部3では、前処理部2の出
力から特徴点の抽出を行う。この特徴点抽出処理として
はいくつかの方法があるが、ここでは一例として、平滑
化されたデータ列{(xi ,yi )、i=1,2,…,nj
j のデータ間のx,y方向のサイン(正、負、0の符
号)を算出し、サインの状態の変化点を特徴点として抽
出する方法について述べる。データ間のx,y方向のサ
インXSi ,YSi を次式(1)により求め、+,0,
−で表現する。 XSi =Sign(xi −xi-1 ) YSi =Sign(yi −yi-1 ) ・・・(1) このようにして求めた各データ間のx方向、y方向のサ
インを一つ前のデータ間のサインと比較し、同じであれ
ば特徴点として登録せず、異なった場合には状態が変わ
ったと認識し特徴点として登録する。図8(c)は、こ
のようにして求めた点の他に始点、終点を加えた特徴点
を示す。一般には、この処理を直線化と称する場合もあ
る。この特徴点間を以下セグメントと称し、特徴点を
{(xi ,yi )、i=1,2,…,lj j で表すことにす
る。以上のようにして得られた特徴点情報は、ストロー
クコード部4及び中分類部6に出力される。
(1) Input and preprocessing (step 1) FIGS. 8A to 8C are diagrams for explaining the preprocessing of step 1 in FIG. 2, and "." It represents a writing data string from 1 or a feature point. A tablet 1 in FIGS. 1 to 4 is an input device for writing characters, and when a character is written by the tablet 1, as shown in FIG. 8A, a writing data string {(x i ,
y i ), i = 1, 2, ..., N j } are extracted and sent to the preprocessing unit 2. The preprocessing unit 2 smoothes the data as shown in FIG. 8B by performing noise removal processing, moving average processing, or smoothing processing on the transmitted writing data string, and the feature point extraction unit 3 Output to. (2) Feature Point Extraction Processing (Step 2) The feature point extraction processing unit 3 of FIGS. 1 to 4 extracts feature points from the output of the preprocessing unit 2. There are several methods for this feature point extraction processing, but here, as an example, a smoothed data string {(x i , y i ), i = 1, 2, ..., N j }.
A method of calculating a sign (positive, negative, sign of 0) in the x and y directions between data of j and extracting a change point of the sign state as a feature point will be described. Signs XS i and YS i in the x and y directions between the data are obtained by the following equation (1), and +, 0,
Express with −. XS i = Sign (x i −x i −1 ) YS i = Sign (y i −y i −1 ) (1) The signs in the x and y directions between the respective data thus obtained are If it is the same as the signature between the previous data, if it is the same, it is not registered as a feature point. FIG. 8 (c) shows feature points to which start points and end points are added in addition to the points thus obtained. In general, this process may be called linearization. These feature points are hereinafter referred to as segments, and the feature points are represented by {(x i , y i ), i = 1, 2, ..., I j } j . The feature point information obtained as described above is output to the stroke code unit 4 and the middle classification unit 6.

【0015】 (3) ストロークコード化処理(ステップ3) 図1〜図4のストロークコード化部4では、特徴点抽出
部3により得られた特徴点情報に基づき、各ストローク
をコード化する。このコード化には数多くの方法がある
が、一般的には、例えば各セグメントのX,Yサイン、
セグメントの角度、及びセクメント間の回転角度により
分類し、コード化を行う。図9は上記コード処理の説明
図であり、図中θ1 ,θ2 ,θ3 は各セグメントの角度
(ユークリッド空間極座標の角度)を示し、θ´1 ,θ
´2 ,θ´3 は隣接するセグメント間の回転角度を示
す。コード化されたストロークデータは、大分類部5及
び部分パターンストローク分布マッチング部8に出力さ
れる。 (4) 大分類処理(ステップ4) 図1〜図4の大分類部5では、ストロークコード化部4
の出力を受け、ストローク数によって対象文字に対する
大分類を行う。そのため、予め画数毎にその画数となり
得る文字を、図6に示すように文字辞書に用意してお
く。例えば、筆記入力された文字パターンのストローク
数が10画であったとする。この場合、文字辞書に格納
されている内、図6に示すような10画となり得る文字
“唖”,…,“晃”,…,“倍”,…,“剖”…を候補
文字として選択する。
(3) Stroke Encoding Process (Step 3) The stroke encoding unit 4 of FIGS. 1 to 4 encodes each stroke based on the characteristic point information obtained by the characteristic point extracting unit 3. There are many ways to do this coding, but typically one will take, for example, the X, Y signature of each segment,
Classification is performed according to the angle of the segment and the rotation angle between the segments, and coding is performed. FIG. 9 is an explanatory diagram of the above code processing. In the figure, θ 1 , θ 2 , and θ 3 indicate angles of each segment (angles of Euclidean space polar coordinates), and θ ′ 1 and θ
2 and θ ′ 3 indicate the rotation angle between adjacent segments. The encoded stroke data is output to the large classification unit 5 and the partial pattern stroke distribution matching unit 8. (4) Major classification processing (step 4) In the major classification unit 5 of FIGS. 1 to 4, the stroke coding unit 4
, The target character is roughly classified according to the number of strokes. Therefore, a character that can be the number of strokes is prepared in advance in the character dictionary for each number of strokes, as shown in FIG. For example, it is assumed that the stroke number of the character pattern input by handwriting is 10 strokes. In this case, among the characters stored in the character dictionary, characters that can be 10 strokes as shown in FIG. 6 are selected as candidate characters such as "nuisance", ..., "Akira", ..., "double", ... To do.

【0016】(5) 中分類処理(ステップ5〜8) 図1〜図4に示す中分類処理部6では、大分類部5にて
画数により大分類した得た候補文字を以下に説明する部
分パターン間ベクトルによりさらに中分類する(ステッ
プ5)。ここで、部分パターンとは、1つの文字のうち
筆記上一連のものとして筆記する部分をいうものとし、
部分パターン間ベクトルとは、1つの部分パターンの重
心と別の部分パターンの重心をそれぞれ始点、終点とす
るベクトルをいうものとする。まず、部分パターン間ベ
クトルの算出方法の一例を説明する。部分パターン中の
各セグメントをx,y成分を(dxi ,dyi )とする
と、各セグメントの長さdli は次式(2)で表され
る。 dli =(dxi 2 +dyi 2 1/2 ・・・(2) また、文字幅HX,HYで除算することによって正規化
した各セグメントの中心座標を(xi ,yi )とす
ると、部分パターンの重心座標(Xw ,Yw )は次式
(3)により求められる。
(5) Medium Classification Processing (Steps 5-8) In the medium classification processing unit 6 shown in FIGS. 1 to 4, the candidate characters obtained by large classification by the large classification unit 5 are described below. The pattern is further classified into medium (step 5). Here, the partial pattern refers to a portion of one character that is written as a series of characters in writing,
The inter-partial-pattern vector is a vector whose start point and end point are the center of gravity of one partial pattern and the center of gravity of another partial pattern, respectively. First, an example of a method of calculating a vector between partial patterns will be described. Assuming that each segment in the partial pattern is x and y components are (dx i , dy i ), the length dl i of each segment is expressed by the following equation (2). dl i = (dx i 2 + dy i 2 ) 1/2 (2) Further, the center coordinates of each segment normalized by dividing by the character widths HX and HY are (x i * , y i * ) Then, the barycentric coordinates (X w , Y w ) of the partial pattern are obtained by the following equation (3).

【0017】[0017]

【数1】 以上の方法で各部分パターンの重心を求め、1つの部分
パターンの重心と別の部分パターンの重心をそれぞれ始
点、終点として部分パターン間ベクトルを求める。な
お、ここでは部分パターン間ベクトルはx方向とy方向
について考えるものとする。部分パターン間ベクトルの
説明図として、図10に文字“唖”の部分パターン
“口”、“亜”の各重心及び部分パターン間ベクトルB
x (口,亜),By (口,亜)の例を示す。但し、Bは
ベクトルを表すものとする。中分類部6では、前記部分
パターンベクトルにより、大分類部5で選択された候補
文字を絞り込んで中分類を行うわけであるが、ここで一
例として“晃”が筆記入力された場合を考え、以下この
入力文字に対する中分類処理の手順を説明する。
[Equation 1] The center of gravity of each partial pattern is obtained by the above method, and the vector between partial patterns is obtained with the center of gravity of one partial pattern and the center of gravity of another partial pattern as the starting point and the ending point, respectively. Note that here, the inter-partition-pattern vector is considered in the x direction and the y direction. As an explanatory diagram of the inter-partition-pattern vector, FIG.
x (mouth, nitrite) shows an example of a B y (mouth, nitrite). However, B represents a vector. The middle classification unit 6 narrows down the candidate characters selected by the large classification unit 5 by the partial pattern vector to perform the middle classification. Here, as an example, consider the case where "Akira" is written and input. The procedure of the middle classification process for this input character will be described below.

【0018】筆記入力された文字“晃”は10画である
ので、図6に示す文字辞書の10画の部分を参照する。
すると、ここには文字“唖”が第1番目に配されてお
り、その欄には“唖”を構成する部分パターン、部分パ
ターンの筆記順に各部分パターンのストローク情報(以
下、カット位置と称する)、及び登録パターンより予め
算出した各部分パターン間ベクトル値が示されている。
以下、順に“晃”、“倍”、“剖”の文字について同様
の情報が並んでおり、中分類部6はこの文字順に従い、
候補とすべきか否かをそれぞれ判定し、次のように中分
類を行う。まず、筆記入力した文字が“唖”であるとし
て、部分バターン間ベクトルのマッチング距離dvec
求める。図6に示すように、“唖”はカット位置が
(3,7)、即ち第1ストローク〜第3ストロークで
“口”が形成され、第4ストローク〜第10ストローク
で“亜”が形成されが、本例では入力パターンが“晃”
てあるので、このカット位置であるので、このカット位
置で“晃”について部分パターン間ベクトルを考える
と、図11のようになる。図11のように求められた入
力パターンの部分ベクトル間ベクトルBx (口、
亜)、By (口、亜)と、辞書にかかれている部分パ
ターン間ベクトルをBx (口、亜)、By (口、亜)と
の差が、マッチング距離dvec であり、次式(4)に従
って算出される。 dvec = |Bx (口、亜)−Bx (口、亜)| +|By (口、亜)−By (口、亜)| ・・・(4) 筆記した文字の部分パターン数が複数の場合、部分パタ
ーン数BPNで正規化を行い、マッチング距離dvec
次式(5)にしたがって算出される(ステップ7)。
Since the character "Akira" written and input has 10 strokes, the 10 stroke portion of the character dictionary shown in FIG. 6 is referred to.
Then, the character "mute" is arranged in the first place here, and in that column, the partial patterns constituting the "mute" and the stroke information of each partial pattern in the writing order of the partial patterns (hereinafter referred to as "cut position"). ) And the inter-partial-pattern vector value calculated in advance from the registered pattern are shown.
Below, similar information is lined up for the letters "Akira", "double", and "auto", and the middle classification unit 6 follows this letter order.
Whether or not it should be a candidate is determined, and middle classification is performed as follows. First, assuming that the character input by handwriting is "mute", the matching distance d vec of the vector between partial patterns is obtained. As shown in FIG. 6, the "mute" has a cut position of (3, 7), that is, a "mouth" is formed in the first stroke to the third stroke, and a "sub" is formed in the fourth stroke to the tenth stroke. However, in this example, the input pattern is "Akira"
Since this is the cut position, the vector between partial patterns for "Akira" at this cut position is as shown in FIG. The inter-partial vector B x * (mouth,
Nitrous), B y * (mouth, nitrous), the partial pattern between vectors B x (mouth that Kakare dictionary, nitrous), B y (mouth, nitrite) the difference between the is the matching distance d vec, It is calculated according to the following equation (4). d vec = | B x * (mouth, nitrous) -B x (mouth, nitrous) | + | B y * (mouth, nitrous) -B y (mouth, nitrous) | ··· (4) Writing the character of When the number of partial patterns is plural, normalization is performed by the number of partial patterns BPN, and the matching distance d vec is calculated according to the following equation (5) (step 7).

【0019】[0019]

【数2】 ここで、ある閾値vecrejを設定し、算出したマッチング
距離dvec がvecrejより大きいか否かを判定し(ステッ
プ8)、判定結果に応じて以下の処理をする。 (a)dvec >vecrejのとき 参照した文字(この場合“唖”)でないとして、“唖”
を候補とせず、次の文字の部分パターン間マッチングを
行う。 (b)dvec ≦vecrejのとき “唖”らしいとして、次に説明する部分パターンQ値の
算出及びマッチングを行う。入力文字が“晃”のとき、
図11に示すように下向きのベクトルとなるが、辞書の
“唖”は右向きであり部分パターンベクトル距離は大
(dvec >vecrej)となり、“唖”は候補として残らな
い。
[Equation 2] Here, a certain threshold value vecrej is set, it is determined whether or not the calculated matching distance d vec is larger than vecrej (step 8), and the following processing is performed according to the determination result. (A) When d vec > vecrej Assuming that it is not the referenced character (in this case, "mute"), "mute"
Matching between the partial patterns of the next character is performed without using as a candidate. (B) When d vec ≤vecrej, it is assumed that "a mute", and calculation and matching of the partial pattern Q value described below are performed. When the input character is "Akira",
As shown in FIG. 11, the vector becomes a downward vector, but the "mute" in the dictionary is to the right, the partial pattern vector distance is large (d vec > vecrej), and the "mute" does not remain as a candidate.

【0020】(6) 部分パターンQ値マッチグ処理
(ステップ9〜13) 図1〜図4の部分パターン値マッチング部7では、中分
類部6における部分パターン間ベクトルによる中分類で
残った候補文字について部分パターンの特徴パラメータ
Q値(以下、部分パターンQ値と呼ぶ)を算出し、図7
に示す部分パターン辞書中の部分パターンの登録特徴パ
ラメータQ値(同様に、部分パターンQ値と呼ぶ)とマ
ッチングを行う。この部分パターン辞書の部分パターン
Q値は、登録パターンにより予め作成され、格納されて
いるものである。ここで、部分パターンQ値とは、各セ
グメントの長さ、方向、位置を表す特徴パラメータであ
る。オンライン文字認識では、筆記するペンの動きと
し、X方向、Y方向、+、または−の方向が重要な情報
として得られ、この情報を有効に使用したのがこの部分
パターンQ値である。まず、部分パターンQ値の算出方
法を説明する。なお、次式(6)〜(13)において、
Σは全ストローク、全セグメントに関する加算、HX,
HYは文字幅を示す。
(6) Partial Pattern Q-Value Matching Process (Steps 9 to 13) In the partial pattern value matching unit 7 of FIGS. The characteristic parameter Q value of the partial pattern (hereinafter referred to as the partial pattern Q value) is calculated, and
The matching is performed with the registered characteristic parameter Q value of the partial pattern in the partial pattern dictionary shown in (also called the partial pattern Q value). The partial pattern Q value of this partial pattern dictionary is created and stored in advance by the registered pattern. Here, the partial pattern Q value is a characteristic parameter indicating the length, direction, and position of each segment. In the online character recognition, the movement of a pen to be written is obtained as important information in the X direction, Y direction, +, or − direction, and this partial information Q value is effectively used. First, a method of calculating the partial pattern Q value will be described. In the following equations (6) to (13),
Σ is the total stroke, addition for all segments, HX,
HY indicates the character width.

【0021】+x方向成分のx方向位置X-direction position of + x-direction component

【数3】 −x方向成分のx方向位置[Equation 3] -X direction position of x direction component

【数4】 +y方向成分のy方向位置[Equation 4] Y-direction position of + y-direction component

【数5】 −y方向成分のy方向位置[Equation 5] -Y direction position of y direction component

【数6】 +x方向成分のy方向位置[Equation 6] Y-direction position of + x-direction component

【数7】 −x方向成分のy方向位置[Equation 7] -Y direction position of x direction component

【数8】 +y方向成分のx方向位置[Equation 8] X-direction position of + y-direction component

【数9】 −y方向成分のx方向位置[Equation 9] -X direction position of y direction component

【数10】 式(6)〜(13)の場合、原点を左下に設定したときの
各方向位置の値であるが、このとき原点近くにあるもの
は乗算すると0になってしまう。そのため0となるのを
防ぐため、原点を右上に設定したときの各方向位置の値
9 〜Q16についても同様に記述し、Q1 〜Q16の合計
16個の値により、対象文字の各ストロークのセグメン
トの長さ、方向及び位置を表すものとする。
[Equation 10] In the case of the expressions (6) to (13), the values are the values in the respective directional positions when the origin is set to the lower left. At this time, the values near the origin become 0 when multiplied. To prevent a 0 Therefore, also described in the same manner for the value Q 9 to Q 16 in each direction position at the time of setting the origin at the top right, the total of 16 values of Q 1 to Q 16, the target character It shall represent the length, direction and position of the segment of each stroke.

【0022】部分パターンQ値マッチング部7では、部
分パターン間ベクトルによる分類により残ったものに対
して、前記部分パターンQ値を算出する(ステップ9)
のであるが、例えば、“剖”を筆記入力して“倍”が部
分パターン間ベクトルによる分類により残ったとする。
この場合、“倍”のカット位置は、図3に示すように
(2,5,3)であり、部分パターンはイ+立+口であ
るので、入力パターンカット位置(2,5,3)でカッ
トし、各Q1 〜Q16 を算出する。本例の場合、第1
のカットでは、
The partial pattern Q-value matching unit 7 calculates the partial pattern Q-values for those left by classification by the vector between partial patterns (step 9).
However, for example, it is assumed that “auto” is written in and “double” remains due to the classification by the partial pattern vectors.
In this case, the “double” cut position is (2, 5, 3) as shown in FIG. 3, and the partial pattern is a + stand + mouth, so the input pattern cut position (2,5,3). Cut and calculate each Q 1 * to Q 16 * . In the case of this example, the first
In the cut of

【外1】 各々算出した部分パターンQ値を後述する前ステップに
おいて図1〜図4中の補正判定部11内のメモリに格納
した補正値{ΔQn m にて、下式(14)のように補
正する(ステップ10)。 (1)全成分補正の場合(図1,3,4中の補正処理部
12,32,42での処理) {Qn ´m ={Qn +(ΔQn ・Qn )}m ここで、n =1〜16,m =1〜BPN ・・・(14) (2)部分成分補正の場合または傾斜文字(右上がりあ
るいは右下がり)による変形を考えた場合(図3中の補
正処理部32での処理) Y方向成分のみを補正すればよいから、例えばn=3
(Q3 +Y方向成分のY方向位置)、n=4(Q4
−Y方向成分のY方向位置)、n=7(Q7 −Y方向
成分のX方向位置)、n=8(Q8 +Y方向成分のX
方向位置)等の計8個を上式(14)に従って補正す
る。
[Outer 1] Each calculated partial pattern Q value is corrected by the following equation (14) with the correction value {ΔQ n } m stored in the memory in the correction determination unit 11 in FIGS. (Step 10). (1) For all component correction (processing in the correction processing unit 12,32,42 in Figure 1,3,4) {Q n '*} m = {Q n * + (ΔQ n · Q n *) } m where, n = 1~16, m = 1~BPN ··· (14) (2) when considering the deformation by case or inclined characters (upper right or right edge) of the partial component correction (in Fig. 3 Processing by the correction processing unit 32), since only the Y-direction component needs to be corrected, for example, n = 3
(Q 3: + Y direction component in the Y direction position), n = 4 (Q 4 :
Y-direction position of the -Y direction component), n = 7 (Q 7 : -Y direction <br/> X-direction position of the component), n = 8 (Q 8 : + Y direction component of X
A total of eight (direction positions) etc. are corrected according to the above equation (14).

【0023】次に、各々補正した部分パターンQ値Q1
´〜Q16´と、図7に示す部分パターン辞書にある部分
パターンQ値とのマッチングを行う。このマッチングで
は、まず、
Next, the corrected partial pattern Q value Q 1
′ To Q 16 ′ and the partial pattern Q value in the partial pattern dictionary shown in FIG. 7 are matched. In this matching, first

【外2】 算出したQ1 〜Q16 と部分パターン辞書“口”のQ
1 〜Q16をマッチングさせる。これらのマッチングにお
ける差を合計したものをマッチング距離dBPとする。こ
のとき、マッチング距離dBPは入力パターン“剖”が
“倍”にどれだけ近いかを表す。通常、各部分パターン
のストローク数BSj により、次式(15)のように重
み付けを行い、それをマッチング距離dBPとする(ステ
ップ11)。
[Outside 2] Calculated Q 1 * to Q 16 * and Q of partial pattern dictionary “mouth”
Match 1 to Q 16 . The sum of the differences in these matchings is the matching distance d BP . At this time, the matching distance d BP represents how close the input pattern “auto” is to “double”. Normally, the number of strokes BS j of each partial pattern is used to perform weighting as in the following equation (15), which is used as the matching distance d BP (step 11).

【数11】 この時、補正値を格納するために、各文字候補毎に次式
(16)にて各部分パターンのQ値距離値を算出し相対
値を求める。 {ΔQn m ={(Qn −Qn )/Qn m ・・・(16) この{ΔQn m 値を各文字候補毎に補正値算出のた
めに補正判定部11のメモリに一時的に格納する(ステ
ップ12)。図12は、マッチング距離の格納フォーマ
ットを示す図である。図に示すように候補文字(JIS
コード)、部分パターン数、各部分パターンの各Q値相
対距離値{ΔQn m を候補順に格納する。一方、式
(15)で求めた距離dBPと、前ステップで求めた部分
パターン間ベクトルのマッチングにより得られたdvec
とをそれぞれ予め画数ごとに式(17)の重み付けパラ
メータwvec ,wBPを決めて記憶しておいたきwvec
BPで重み付けしたものを加算した距離di を求める
(ステップ13)。 di =wvec ・dvec +wBP・dBP ・・・(17) 以上の操作を部分パターン間ベクトルによる分類で残っ
た全ての候補文字について行い、di によるソーティン
グを行う(ステップ14)。
[Equation 11] At this time, in order to store the correction value, the Q value distance value of each partial pattern is calculated for each character candidate by the following equation (16) to obtain a relative value. {ΔQ n * } m = {(Q n −Q n * ) / Q n * } m (16) This {ΔQ n * } m value is corrected and determined for each character candidate to calculate a correction value. It is temporarily stored in the memory of the unit 11 (step 12). FIG. 12 is a diagram showing a storage format of the matching distance. As shown in the figure, candidate characters (JIS
Code), the number of partial patterns, and each Q-value relative distance value {ΔQ n * } m of each partial pattern are stored in the order of candidates. On the other hand, the distance d BP obtained by the equation (15) and the d vec obtained by matching the vector between partial patterns obtained in the previous step
The weighting parameters w vec and w BP of the equation (17) are previously determined and stored for each number of strokes, and the weighted values w vec and w BP are added to obtain the distance d i (step 13). d i = w vecd vec + w BPd BP (17) The above operation is performed for all candidate characters remaining in the classification by the partial pattern vectors, and sorting by d i is performed (step 14).

【0024】(7)部分パターンストロークコード分布
マッチング処理(ステップ15〜18) 図1〜4の部分パターンストローク分布マッチング部8
では、部分パターンQ値マッチング部7及びストローク
コード化部4の出力を受け、中分類により絞られた候補
文字につき、部分パターンストローク分布を求める。そ
して、この分布と、登録パターンより予め作成され図7
の部分パターン辞書に格納されている部分パターンスト
ロークコード分布とのマッチングを行い、さらに上位候
補の順序付けを行う(ステップ15)。この順序付けを
行う対象の範囲は、例えばdi のソーティングで得られ
た第1候補の距離d1 との比率で決める。即ち、di
1 ≦ZRATEの候補文字までを対象の範囲として順
序付けを行う。ここで閾値ZRATEは、筆記文字の画
数毎に予め記憶しておく。次に、部分パターンストロー
クコード分布の算出方法について説明する。一例とし
て、入力パターンが“剖”で第1候補として選ばれた文
字が“倍”であったとする。図3の文字辞書より、候補
文字“倍”のカット位置は(2,5,3)で部分パター
ンは“イ”+“立”+“口”であることが分かるので、
この位置で入力パターン“剖”をカットする。カットし
て得た各部分パターン毎に、ストロークコード化部4に
より得られたストロークコードの本数の分布を算出する
(ステップ16)。
(7) Partial pattern stroke code distribution matching processing (steps 15 to 18) Partial pattern stroke distribution matching unit 8 of FIGS.
Then, receiving the outputs of the partial pattern Q value matching unit 7 and the stroke coding unit 4, the partial pattern stroke distribution is obtained for the candidate characters narrowed down by the middle classification. Then, based on this distribution and the registered pattern, it is created in advance.
The partial pattern stroke code distribution stored in the partial pattern dictionary is matched and the upper candidates are ordered (step 15). The target range for this ordering is determined by, for example, the ratio with the distance d 1 of the first candidate obtained by sorting d i . That is, d i /
Ordering is performed with the candidate character of d 1 ≦ ZRATE as the target range. Here, the threshold value ZRATE is stored in advance for each stroke number of the written character. Next, a method of calculating the partial pattern stroke code distribution will be described. As an example, it is assumed that the input pattern is “auto” and the character selected as the first candidate is “double”. From the character dictionary of FIG. 3, it can be seen that the cut position of the candidate character “double” is (2, 5, 3) and the partial pattern is “a” + “standing” + “mouth”.
At this position, cut the input pattern "Auto". The distribution of the number of stroke codes obtained by the stroke encoding unit 4 is calculated for each partial pattern obtained by cutting (step 16).

【0025】例えば、第1のカット位置のFor example, in the first cutting position

【外3】 であるので、S03が1本、S04が1本というストロ
ークコード分布が求められる。このようにして算出され
た部分パターンストロークコード分布は、予め数個のト
ウロクパターンから同様な手順により算出し、平均化し
て作成しておいた図8の部分パターン辞書の部分パター
ンストロークコード分布とマッチングされる。本例の場
合、まず、以上のようにして算出した
[Outside 3] Therefore, the stroke code distribution in which S03 is one and S04 is one is obtained. The partial pattern stroke code distribution calculated in this way is matched with the partial pattern stroke code distribution of the partial pattern dictionary of FIG. 8 which is calculated by averaging in advance from several Touroku patterns by the same procedure. To be done. In the case of this example, first, the calculation was performed as described above.

【外4】 図7の部分パターン辞書の“イ”のストロークコード分
布との差を、マッチング距離ds (イ)として得る。
[Outside 4] The difference from the stroke code distribution of “a” in the partial pattern dictionary of FIG. 7 is obtained as the matching distance d s (a).

【0026】即ち、 入力パターン 部分パターン辞書 S01・・・ 0本 S01・・・ 0.8本 S02・・・ 0本 S02・・・ 1.2本 S03・・・ 1本 S03・・・ 0 本 S04・・・ 1本 S04・・・ 0 本 S05・・・ 0本 S05・・・ 0 本 の差0.8+1.2+1.0+1.0=4.0本がds
(イ)として求められる。同様に、
That is, input pattern partial pattern dictionary S01 ... 0 book S01 ... 0.8 book S02 ... 0 book S02 ... 1.2 book S03 ... 1 book S03 ... 0 book S04 ... 1 S04 ... 0 S05 ... 0 S05 ... 0 difference 0.8 + 1.2 + 1.0 + 1.0 = 4.0 is d s
It is required as (a). Similarly,

【外5】 s (口)を得る。[Outside 5] Get d s (mouth).

【0027】そして、これらを各部分パターンストロー
クコード数BSJ により正規化し、正規化された各部分
パターンのマッチング距離の合計ds 、次式(18)よ
り算出する(ステップ17)。
[0027] Then, it was normalized by each partial pattern stroke code number BS J, the sum d s of the matching distances of the partial patterns that are normalized, calculated from the following equation (18) (step 17).

【数12】 次に、以上求めた部分パターン間ベクトルマッチングに
よる距離dvec 、部分パターンQ値マッチングによる距
離dBP、及び部分パターンストロークコード分布マッチ
ングによる距離ds に対し、重み付けバラメータ
vec ,wBp,ws により次式(19)従って距離Dを
求める(ステップ18)。 D=wvec ・dvec +wBP・dBP+ws ・ds ・・・(19) この距離値Dにより、順序付けし結果として文字列を出
力端子10より出力する。
[Equation 12] Next, the weighted parameters w vec , w Bp , w s are calculated with respect to the distance d vec obtained by the vector matching between the partial patterns, the distance d BP obtained by the partial pattern Q-value matching, and the distance d s obtained by the partial pattern stroke code distribution matching obtained above. Then, the distance D is calculated according to the following equation (19) (step 18). D = w vec · d vec + w BP · d BP + w s · d s (19) The distance value D is used for ordering and outputting character strings as a result from the output terminal 10.

【0028】この時、以下に述べるような各モード
(i)〜(iii)での補正値を抽出し格納する。 (i)学習モードでの補正値抽出(ステップ30〜3
3) 予め決めた文字を筆記者に筆記させ、筆記者の文字の特
徴を抽出する学習モードでは、図9のように補正判定部
11内のメモリに一時的に格納した各候補文字毎の補正
用Q値距離値{ΔQn m 値により、予め決めた文字
を検索し補正用Q値距離値を部分パターン数抽出し(ス
テップ30)、式(17)で相対距離値ΔQn を算出
する(ステップ31)。式(20)の{ΔQn m
の絶対値の加算値dQがある閾値εより小であるか否か
を判定し(ステップ32)、判定結果に基づき以下の処
理をする。既に、学習モードで補正値を算出してない場
合は、式(20)の{ΔQn m 値の絶対値の加算値
dQがある閾値εより大の時は、距離が極端に大きく操
作誤り、あるいは筆記誤りがあった可能性が高いとし補
正値を格納せず、筆者にブザー、警告表示等を行い、次
文字の認識処理に移行する。また、{ΔQn m 値の
絶対値の加算値がある閾値εより小の時は、{Δ
n m 値を補正値{ΔQn m としてそのまま格
納する(ステップ33)。
At this time, the correction values in the respective modes (i) to (iii) described below are extracted and stored. (I) Correction value extraction in learning mode (steps 30 to 3)
3) In the learning mode in which the writer writes a predetermined character and the character characteristics of the writer are extracted, correction for each candidate character temporarily stored in the memory in the correction determination unit 11 as shown in FIG. Q value distance value for use {ΔQ n * } m value is searched for a predetermined character and the correction Q value distance value is extracted by the number of partial patterns (step 30), and the relative distance value ΔQ n * is calculated by the equation (17). Calculate (step 31). It is determined whether or not the added value dQ of the absolute value of the {ΔQ n * } m value in the expression (20) is smaller than a certain threshold value ε (step 32), and the following processing is performed based on the determination result. If the correction value has not already been calculated in the learning mode, the distance is extremely large when the added value dQ of the absolute value of the {ΔQ n * } m value of the equation (20) is larger than a certain threshold ε. If there is a high possibility that there is an error or a writing error, the correction value is not stored, the buzzer, warning display, etc. are displayed to the writer, and the process proceeds to the recognition process for the next character. When the sum of absolute values of {ΔQ n * } m values is smaller than a certain threshold ε, {ΔQ n * } m
Q n *} the m value as it is stored as a correction value {Delta] Q n} m (step 33).

【数13】 既に、学習モードで補正値を算出し格納してある場合、
{ΔQn m 値の絶対値の加算値dQが、ある閾値ε
以下の時は、次式(21)により補正値を平均化し、補
正判定部11内のメモリに格納する(ステップ33)。 {ΔQn m =[{ΔQn m +{ΔQn m ]/2 ・・・(21) {ΔQn }値の絶対値の加算値dQが、ある閾値ε以
上の時は、既に格納してある補正値を変えず、次文字の
認識処理に移行する。
[Equation 13] If the correction value has already been calculated and stored in the learning mode,
The addition value dQ of the absolute value of the {ΔQ n * } m value is a threshold value ε.
In the following cases, the correction values are averaged by the following equation (21) and stored in the memory in the correction determination unit 11 (step 33). Addition value dQ of {ΔQ n} m = [{ ΔQ n} m + {ΔQ n *} m] / 2 ··· (21) the absolute value of {Delta] Q n *} value, when above a certain threshold value ε is , The process proceeds to the recognition process for the next character without changing the already stored correction value.

【0029】(ii)次候補選択モードでの補正値抽出
(ステップ40〜43) 筆記者により筆記した文字より、次候補を選択し、確定
した時、第1位とした文字から筆記者の文字の特徴を抽
出する。式(17)で算出し(ステップ40)、図12
のように補正判定部11内のメモリに格納した各候補文
字毎の補正用Q値距離値{ΔQn m 値により、第1
位とした文字を検索し補正用Q値距離値を部分パターン
数抽出する(ステップ41)。式(20)の{Δ
n m 値の絶対値の加算値dQがある閾値εより小
であるか否かを判定し(ステップ42)、判定結果に基
づき以下の処理をする。既に、次候補選択モードで補正
値を算出してない場合は、学習モードと同様に式(2
0)の{ΔQn m 値の絶対値の加算値dQがある閾
値εより大の時は、距離が極端に大きく操作誤り、ある
いは筆記誤りがあった可能性が高いとし補正値を格納せ
ず、筆者にブザー、警告表示等を行い、次文字の認識処
理に移行する。また、{ΔQn m 値の絶対値の加算
値がある閾値εより小の時は、{ΔQn m 値を補正
値{ΔQn m としてそのまま格納する(ステップ4
3)。既に、学習モード等で補正値を算出し、格納して
ある場合、{ΔQn m 値の絶対値の加算値dQが、
ある閾値ε以下の時は、式(21)により補正値を平均
化し、補正判定部11内のメモリに格納する(ステップ
43)。{ΔQn m 値の絶対値の加算値dQが、あ
る閾値ε以上の時は、既に格納してある補正値を変え
ず、次文字の認識処理に移行する。
(Ii) Extraction of Correction Value in Next Candidate Selection Mode (Steps 40-43) When the next candidate is selected and confirmed from the characters written by the writer, the character of the writer is selected from the first ranked character. To extract the features of. It is calculated by the equation (17) (step 40), and FIG.
The correction Q-value distance value {ΔQ n * } m value for each candidate character stored in the memory of the correction determination unit 11 as described above
The character as the rank is searched and the correction Q value distance value is extracted as the number of partial patterns (step 41). {Δ in equation (20)
Q n *} it is determined whether the absolute value smaller than the threshold ε there is additional value dQ of the m value (step 42), the following processing based on the determination result. If the correction value has not been calculated in the next candidate selection mode, the formula (2
When the addition value dQ of the absolute value of {ΔQ n * } m value in 0) is larger than a certain threshold value ε, the correction value is stored because the distance is extremely large and there is a high possibility that an operation error or a writing error has occurred. Instead, the buzzer, warning display, etc. are displayed to the writer, and the process proceeds to the recognition process for the next character. When the sum of the absolute values of the {ΔQ n * } m values is smaller than a certain threshold value ε, the {ΔQ n * } m value is stored as the correction value {ΔQ n } m as it is (step 4
3). When the correction value has already been calculated and stored in the learning mode or the like, the addition value dQ of the absolute value of the {ΔQ n * } m value is
When the threshold value is less than or equal to a certain threshold value ε, the correction values are averaged by the equation (21) and stored in the memory in the correction determination unit 11 (step 43). When the addition value dQ of the absolute value of the {ΔQ n * } m value is equal to or larger than a certain threshold value ε, the correction value already stored is not changed and the process proceeds to the recognition process of the next character.

【0030】(iii)次候補確定時の補正値抽出(ステッ
プ50〜53) 筆記者により筆記した文字列を別モード、例えば単語単
位で筆記した文字列を確認後、文章作成モードへ転送す
る操作を行った時、候補文字確定とし、確定した第1位
文字から筆記者の文字の特徴を抽出する。式(17)で
算出し(ステップ50)、図9のように補正判定部11
内のメモリに格納した各候補文字毎の補正用Q値距離値
{ΔQn m 値により、第1位とした文字を検索し補
正用Q値距離値を部分パターン数抽出する(ステップ5
1)。式(20)の{ΔQn m 値の絶対値の加算値
dQがある閾値εより小であるか否かを判定し(ステッ
プ52)、判定結果に基づき以下の処理をする。既に、
次候補確定時に補正値を算出してない場合は、学習モー
ドと同様に式(20)の{ΔQn m 値の絶対値の加
算値dQがある閾値εより大の時は、距離が極端に大き
く操作誤り、あるいは筆記誤りがあった可能性が高いと
し補正値を格納せず、筆者にブザー、警告表示等を行
い、次文字の認識処理に移行する。また、{ΔQn
m 値の絶対値の加算値がある閾値εより小の時は、{Δ
n m 値をそのまま格納する(ステップ53)。既
に、学習モード等で補正値を算出し、格納してある場
合、{ΔQn m 値の絶対値の加算値dQが、ある閾
値ε以下の時は、式(21)により補正値を平均化し、
補正判定部11内のメモリに格納する(ステップ5
3)。{ΔQn }値の絶対値の加算値dQが、ある閾
値ε以上の時は、既に格納してある補正値を変えず、次
文字の認識処理に移行する。
(Iii) Extraction of correction value when the next candidate is determined (steps 50 to 53) The operation of transferring the character string written by the writer to another mode, for example, after confirming the character string written in word units, to the sentence creation mode. When, the candidate character is determined, and the character characteristics of the writer are extracted from the determined first character. It is calculated by the equation (17) (step 50), and as shown in FIG.
The correction Q-value distance value {ΔQ n * } m value for each candidate character stored in the internal memory is used to search the character ranked first and the correction Q-value distance value is extracted as the number of partial patterns (step 5).
1). It is determined whether or not the added value dQ of the absolute values of the {ΔQ n * } m values in the equation (20) is smaller than a certain threshold value ε (step 52), and the following processing is performed based on the determination result. already,
If the correction value is not calculated when the next candidate is determined, as in the learning mode, when the addition value dQ of the absolute value of the {ΔQ n * } m value in Expression (20) is larger than a certain threshold value ε, the distance is If it is highly possible that an operation error or a writing error is extremely large, the correction value is not stored, the buzzer, a warning display, etc. are displayed to the writer, and the process proceeds to the recognition process of the next character. In addition, {ΔQ n * }
When the sum of the absolute values of m values is smaller than a certain threshold ε, {Δ
Q n *} m value as it is stored (step 53). If the correction value has already been calculated and stored in the learning mode or the like, and the addition value dQ of the absolute value of the {ΔQ n * } m value is less than or equal to a certain threshold value ε, the correction value is calculated by the equation (21). Average,
The data is stored in the memory in the correction determination unit 11 (step 5
3). When the added value dQ of the absolute values of the {ΔQ n * } values is equal to or more than a certain threshold value ε, the correction value already stored is not changed and the process proceeds to the recognition process of the next character.

【0031】以上のように、本実施例では、学習モー
ド、次候補選択時、あるいは候補確定時に、予め決めら
れた文字の筆記データあるいは第1位文字の特徴パラメ
ータであるQ値の距離値により筆記者固有の筆記文字の
特徴を抽出し、これをマッチング時の補正値とし補正す
る補正処理部13を設けたので、傾斜等による筆記者特
有の癖字に対しても、辞書容量を増やすことなく、文字
の傾斜等による誤差を補正することができ、識別率を向
上させることができるという利点がある。なお、本発明
は、上記実施例に限定されず種々の変形が可能である。
その変形例としては、例えば次のようなものがある。 (1) 特徴パラメータQ値マッチグにおいてマッチン
グにおいてマッチング距離を逐次候補文字毎に格納する
例を示したが、認識対象文字が多くメモリが増加する場
合は、学習モード、次候補選択、該当する文字にて文字
辞書及び部分パターン辞書を再度検索しマッチング距離
{ΔQn m を算出することも可能である。 (2) 特徴パラメータQ値の補正値を部分パターン毎
に持つのではなく、各文字について16個の補正値{Δ
n }(n=1〜16)にすることも可能である。この
とき、部分パターン距離値{ΔQn m について、情報
量の多い、即ち、画数の多いほど重み付けを大きくする
ため次式(22)に従って各部分パターンの画数BSm
にて重み付けを行い補正値{ΔQn }を求める。
As described above, in the present embodiment, in the learning mode, when the next candidate is selected, or when the candidate is determined, the writing data of a predetermined character or the distance value of the Q value which is the characteristic parameter of the first character is used. Since the correction processing unit 13 that extracts the characteristic of the writing character peculiar to the writer and corrects it as the correction value at the time of matching is provided, the dictionary capacity can be increased even for the habit character peculiar to the writer due to inclination or the like. However, there is an advantage that an error due to the inclination of characters can be corrected and the identification rate can be improved. The present invention is not limited to the above embodiment, and various modifications can be made.
The following are examples of such modifications. (1) In the characteristic parameter Q-value matching, an example is shown in which the matching distance is sequentially stored for each candidate character in matching. However, when the number of recognition target characters increases and the memory increases, the learning mode, the next candidate selection, and the corresponding character are selected. It is also possible to search the character dictionary and the partial pattern dictionary again and calculate the matching distance {ΔQ n * } m . (2) Rather than having a correction value for the characteristic parameter Q value for each partial pattern, 16 correction values for each character {Δ
It is also possible to Q n} (n = 1~16) . At this time, for the partial pattern distance value {ΔQ n } m , the number of strokes BS m of each partial pattern is increased according to the following equation (22) in order to increase the weighting as the amount of information increases, that is, the number of strokes increases.
Are weighted to obtain a correction value {ΔQ n }.

【数14】 そして、この補正値{ΔQn }を用いて、補正の際、筆
記入力文字の部分パターンの各Qn 値を乗じ、部分パタ
ーンのストローク数による重み付けを行うことにより相
対補正値を絶対値に変換して補正するため、式(14)
の代わりに、次式(23)によって補正する。 {Qn ´m ={Qn +(ΔQn ・Qn )BSm /N}m ・・・(23) このように、文字について各部分パターン毎に補正値を
持つのではなく、文字について部分パターンの画数によ
る重み付けによって平均化することにより補正値を記憶
する容量を少なくすることができる。 (3) 登録文字の登録特徴パラメータQ値を補正値に
よって、補正して、この補正した登録パターンQ値と筆
記文字の特徴パラメータQ値とのマッチングすることも
可能である。
[Equation 14] Then, by using this correction value {ΔQ n }, at the time of correction, each Q n value of the partial pattern of the handwritten input character is multiplied, and the relative correction value is converted into an absolute value by weighting the stroke number of the partial pattern. Equation (14)
Instead of, it is corrected by the following equation (23). {Q n '*} m = {Q n * + (ΔQ n · Q n *) BS m / N} m ··· (23) Thus, of having a correction value for each partial pattern for characters Instead, the capacity for storing the correction value can be reduced by averaging the characters by weighting with the number of strokes of the partial pattern. (3) It is also possible to correct the registered characteristic parameter Q value of the registered character by the correction value, and match the corrected registered pattern Q value and the written character characteristic parameter Q value.

【0032】[0032]

【発明の効果】以上詳細に説明したように、第1〜第3
の発明によれば、補正部を設け、部分パターンQ値マッ
チング処理部が補正部により補正された特徴パラメータ
Q値と登録特徴パラメータQ値とを比較し、又は特徴パ
ラメータQ値と補正部により補正された登録特徴パラメ
ータQ値とを比較するようにした。したがって、傾斜等
による筆記者特有の癖字に対しても、辞書容量を増やす
ことなく、文字の傾斜等による誤差を補正することがで
き、識別率を向上させることができる。
As described in detail above, the first to third aspects
According to the invention, a correction unit is provided, and the partial pattern Q value matching processing unit compares the characteristic parameter Q value corrected by the correction unit with the registered characteristic parameter Q value, or the characteristic parameter Q value is corrected by the correction unit. The registered registered characteristic parameter Q value is compared. Therefore, even for a habit character peculiar to a writer due to inclination or the like, an error due to the inclination or the like of the character can be corrected without increasing the dictionary capacity, and the identification rate can be improved.

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

【図1】本発明の第1の実施例のオンライン文字認識装
置の機能ブロック図である。
FIG. 1 is a functional block diagram of an online character recognition device according to a first embodiment of the present invention.

【図2】本発明の第2の実施例のオンライン文字認識装
置の機能ブロック図である。
FIG. 2 is a functional block diagram of an online character recognition device according to a second embodiment of the present invention.

【図3】本発明の第3の実施例のオンライン文字認識装
置の機能ブロック図である。
FIG. 3 is a functional block diagram of an online character recognition device according to a third embodiment of the present invention.

【図4】本発明の第4の実施例のオンライン文字認識装
置の機能ブロック図である。
FIG. 4 is a functional block diagram of an online character recognition device according to a fourth embodiment of the present invention.

【図5】図1〜図4のオンライン文字認識装置の動作を
説明するためのフローチャートである。
5 is a flowchart for explaining the operation of the online character recognition device of FIGS. 1 to 4. FIG.

【図6】文字辞書の構成例を示す図である。FIG. 6 is a diagram showing a configuration example of a character dictionary.

【図7】部分パターン辞書の構成例を示す図である。FIG. 7 is a diagram showing a configuration example of a partial pattern dictionary.

【図8】図5の前処理を説明するための図である。FIG. 8 is a diagram for explaining the preprocessing of FIG.

【図9】ストロークコード化処理を説明するための図で
ある。
FIG. 9 is a diagram for explaining stroke encoding processing.

【図10】部分パターン間ベクトルを説明するための図
である。
FIG. 10 is a diagram for explaining vectors between partial patterns.

【図11】筆記文字例“晃”の部分パターンベクトルを
説明するための図である。
FIG. 11 is a diagram for explaining a partial pattern vector of a handwritten character example “Akira”.

【図12】マッチング距離{ΔQn m の格納フォー
マットを示す図である。
FIG. 12 is a diagram showing a storage format of a matching distance {ΔQ n * } m .

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

1 タブレット 2 前処理部 3 特徴点抽出部 4 ストロークコード化部 5 大部類部 6 中分類部 7 部分パターンQ値マッチング
部 8 部分パターンストロークコー
ドマッチング部 11 補正判定部 12、22,32,42 補正処理部 13,23 補正制御部
1 Tablet 2 Pre-Processing Part 3 Feature Point Extracting Part 4 Stroke Encoding Part 5 Major Class Part 6 Medium Classification Part 7 Partial Pattern Q Value Matching Part 8 Partial Pattern Stroke Code Matching Part 11 Correction Judgment Part 12, 22, 32, 42 Correction Processing unit 13, 23 Correction control unit

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 筆記者によってタブレットに筆記入力さ
れた座標データ列の不要データを除去し、直線化処理を
施す前処理部と、 前記前処理部により直線化された座標データ列から、筆
記文字を構成するストロークの特徴抽出する特徴点抽出
部と、 前記特徴点抽出部で抽出された特徴点の位置関係により
各ストロークをコード化するストロークコード化部と、 筆記上一連ものとして筆記する部分を部分パターンと
し、前記ストロークコード化部の出力より前記部分パタ
ーンの特徴パラメータQ値を算出し、予め登録された登
録文字の登録部分パターンから算出された登録特徴パラ
メータQ値と前記特徴パラメータQ値とを比較する部分
パターンQ値マッチング部とを、 備え、 前記特徴点抽出部又はストロークコード化部の出力デー
タと予め登録されている前記登録文字の登録パターンと
の比較結果、又は部分パターンQ値マッチング処理部の
比較結果に基づき文字認識を行うオンライン文字認識装
置において、 筆記者によって筆記入力された筆記文字の前記特徴パラ
メータQ値と該筆記文字に対応する前記登録文字の登録
特徴パラメータQ値との間の相対距離値を補正値として
記憶し、筆記者によって筆記入力された時、該筆記入力
された筆記文字の前記特徴パラメータQ値又は前記登録
文字の登録特徴パラメータQ値を前記記憶された補正値
に基づいて補正する補正部を、 設け、 前記部分パターンQ値マッチング処理部が前記補正部に
より補正された特徴パラメータQ値と前記登録特徴パラ
メータQ値とを比較し、又は特徴パラメータQ値と前記
補正部により補正された登録特徴パラメータQ値とを比
較するようにしたことを特徴とするオンライン文字認識
装置。
1. A preprocessing unit that removes unnecessary data in a coordinate data string written by a writer by a writer and performs linearization processing, and a written character from a coordinate data string linearized by the preprocessing unit. A feature point extraction unit that extracts the features of the strokes that make up the stroke, a stroke encoding unit that encodes each stroke according to the positional relationship of the feature points extracted by the feature point extraction unit, and a portion that is written as a series in writing. As a partial pattern, the characteristic parameter Q value of the partial pattern is calculated from the output of the stroke encoding unit, and the registered characteristic parameter Q value and the characteristic parameter Q value calculated from the registered partial pattern of the registered character registered in advance. And a partial pattern Q-value matching unit that compares the partial pattern Q value with the output data of the feature point extraction unit or the stroke coding unit in advance. In the online character recognition device for performing character recognition based on the comparison result of the registered character recorded with the registered pattern or the comparison result of the partial pattern Q value matching processing unit, the characteristics of the handwritten character written and input by the writer. The relative distance value between the parameter Q value and the registered characteristic parameter Q value of the registered character corresponding to the writing character is stored as a correction value, and when the writing input is performed by the writer, the writing character of the writing input character is input. A correction unit that corrects the characteristic parameter Q value or the registered characteristic parameter Q value of the registered character based on the stored correction value is provided, and the partial pattern Q value matching processing unit is corrected by the correction unit. The parameter Q value is compared with the registered characteristic parameter Q value, or the characteristic parameter Q value and the registration corrected by the correction unit are registered. Online character recognition apparatus characterized by being adapted to compare the symptom parameter Q value.
【請求項2】 前記登録文字に対応する筆記者の筆記文
字を予め筆記者に筆記入力させることにより学習する学
習モードにおいて、 前記補正部が、前記予め筆記者に筆記入力させた筆記文
字の特徴パラメータQ値と該筆記文字に対応する登録文
字の登録特徴パラメータQ値との間の相対距離値を算出
し、該相対距離値を補正値として記憶することを特徴と
する請求項1記載のオンライン文字認識装置。
2. A learning mode in which a writing character of a writer corresponding to the registered character is learned in advance by allowing the writer to input the written character, wherein the correction unit has a characteristic of the writing character that the writer has previously input. The online according to claim 1, wherein a relative distance value between the parameter Q value and the registered characteristic parameter Q value of the registered character corresponding to the written character is calculated, and the relative distance value is stored as a correction value. Character recognizer.
【請求項3】 前記筆記者の筆記文字に対応する前記登
録文字が候補文字として文字認識され、該文字認識され
た候補文字が前記筆記者によって確定された時、前記補
正部が、該筆記文字の特徴パラメータと前記候補文字の
登録特徴パラメータとの相対距離値を算出し、該相対距
離値を補正値として記憶することを特徴とする請求項1
記載のオンライン文字認識装置。
3. The registered character corresponding to the written character of the writer is character-recognized as a candidate character, and when the character-recognized candidate character is confirmed by the writer, the correction unit is configured to detect the written character. 2. The relative distance value between the characteristic parameter of the above and the registered characteristic parameter of the candidate character is calculated, and the relative distance value is stored as a correction value.
Online character recognition device described.
JP6065886A 1994-04-04 1994-04-04 On-line character recognizing device Withdrawn JPH07282200A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6065886A JPH07282200A (en) 1994-04-04 1994-04-04 On-line character recognizing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6065886A JPH07282200A (en) 1994-04-04 1994-04-04 On-line character recognizing device

Publications (1)

Publication Number Publication Date
JPH07282200A true JPH07282200A (en) 1995-10-27

Family

ID=13299913

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6065886A Withdrawn JPH07282200A (en) 1994-04-04 1994-04-04 On-line character recognizing device

Country Status (1)

Country Link
JP (1) JPH07282200A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20170096078A (en) * 2016-02-15 2017-08-23 삼성전자주식회사 Electronic device and method for providing handwriting calibration function thereof

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20170096078A (en) * 2016-02-15 2017-08-23 삼성전자주식회사 Electronic device and method for providing handwriting calibration function thereof

Similar Documents

Publication Publication Date Title
US7437001B2 (en) Method and device for recognition of a handwritten pattern
US7630551B2 (en) Method and system for line extraction in digital ink
US7756335B2 (en) Handwriting recognition using a graph of segmentation candidates and dictionary search
JP4787275B2 (en) Segmentation-based recognition
JP5522408B2 (en) Pattern recognition device
US5787197A (en) Post-processing error correction scheme using a dictionary for on-line handwriting recognition
EP2138959B1 (en) Word recognizing method and word recognizing program
JP2005084765A (en) Character recognition device, method and program thereof
Singh et al. Online handwritten Gurmukhi words recognition: An inclusive study
JP4651876B2 (en) PATTERN IDENTIFICATION DEVICE, PATTERN IDENTIFICATION METHOD, AND PATTERN IDENTIFICATION PROGRAM
JPH07282200A (en) On-line character recognizing device
KR100301216B1 (en) Online text recognition device
JP2903779B2 (en) Character string recognition method and apparatus
JP3419251B2 (en) Character recognition device and character recognition method
US20230419701A1 (en) Method, System and Apparatus for Processing Candidate Strings Detected in an Image
JPH076211A (en) On-line character recognition device
JPH09114926A (en) Method and device for rough classifying input characters for on-line character recognition
JP2004005761A (en) Keyword extraction/search system
JP2930996B2 (en) Image recognition method and image recognition device
JPH06187500A (en) On-line character recognizing device
JP3162419B2 (en) Recognition dictionary update method
JP2023002090A (en) Information processing system, display control method, and program
JPH07319376A (en) Character recognition system
JP2004030695A (en) Keyword extracting/retrieval apparatus
JPH09319826A (en) Hand-written character recognition 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: 20010605