JPS62271191A - Pattern recognition device - Google Patents

Pattern recognition device

Info

Publication number
JPS62271191A
JPS62271191A JP61113791A JP11379186A JPS62271191A JP S62271191 A JPS62271191 A JP S62271191A JP 61113791 A JP61113791 A JP 61113791A JP 11379186 A JP11379186 A JP 11379186A JP S62271191 A JPS62271191 A JP S62271191A
Authority
JP
Japan
Prior art keywords
pattern
character
stroke
partial
strokes
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP61113791A
Other languages
Japanese (ja)
Other versions
JP2505417B2 (en
Inventor
Mitsumasa Sugiyama
杉山 光正
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP61113791A priority Critical patent/JP2505417B2/en
Publication of JPS62271191A publication Critical patent/JPS62271191A/en
Application granted granted Critical
Publication of JP2505417B2 publication Critical patent/JP2505417B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Character Discrimination (AREA)
  • Image Analysis (AREA)

Abstract

PURPOSE:To improve a recognition rate and to reduce recognition time by dividing a pattern into partial patterns so as to recognize the pattern and transferring the comparison to other pattern even one the way of comparison if the degree of difference reaches a prescribed value or over. CONSTITUTION:A dictionary section 5 is provided with a character dictionary section and a partial pattern dictionary section, and at least the number of strokes of each partial pattern, coordinates of end points of each stroke and information representing the shape of stroke and information to segment the partial pattern from one-character information are registered in the partial pattern dictionary section, the partial pattern dictionary section is used to the inputted character pattern to apply partial pattern discrimination. The character pattern to be compared by the result is selected to compare the feature of the inputted character pattern and that of the selected pattern. If a value representing the result of comparison exceeds a prescribed allowable value, the comparison with the pattern in processing is finished.

Description

【発明の詳細な説明】 3、発明の詳細な説明 [産業上の利用分野コ 本発明はパターン認識装置、特に手書文字、記号、図形
等の筆跡情報をもとにして文字、記号、図形等を認識す
るパターン認識装置に関する。
[Detailed Description of the Invention] 3. Detailed Description of the Invention [Industrial Application Fields] The present invention relates to a pattern recognition device, particularly a pattern recognition device that recognizes characters, symbols, and graphics based on handwriting information such as handwritten characters, symbols, and graphics. The present invention relates to a pattern recognition device for recognizing etc.

[従来の技術] 従来、データタブレット等からペンの座標とペンのアッ
プダウン情報を入力し、データタブレット上に筆記され
た文字等のパターンを認識するオンラインパターン認識
では、筆順制限が厳しく、誤った筆順の文字等は誤認識
されるか、リジェクトされることが多かった。また、筆
順を自由にするオンラインパターン認識装置も試みられ
ていたが、筆順を制限する場合に比較して認識時間が長
くなるため認識対象パターン種の拡張が困難であったり
、あるいは筆順を自由にしたために、かえって誤認識率
が高くなるという欠点があった。
[Conventional technology] Conventionally, online pattern recognition, which recognizes the pattern of characters written on the data tablet by inputting pen coordinates and pen up/down information from a data tablet, has strict stroke order restrictions and is prone to errors. Characters in stroke order were often misrecognized or rejected. Additionally, online pattern recognition devices that allow for free stroke order have been attempted, but the recognition time is longer compared to when the stroke order is restricted, making it difficult to expand the types of patterns to be recognized. As a result, there was a disadvantage that the rate of misrecognition increased.

入カバターンを認識するという点において、データタブ
レット等からペンの座標とペンのアップダウン情報を入
力して認識するオンラインパターン認識の大きな特徴の
1つは筆順情報を利用できることである。筆順はパター
ン入力者によって異なり、必ずしも−通りとは限らない
が、筆順情報を利用することで、認識率が高く、かつ認
識時間の短い文字認識が完成するのならば、筆順情報も
大いに利用すべきである。
In terms of recognizing incoming cover patterns, one of the major features of online pattern recognition, which is recognized by inputting pen coordinates and pen up-down information from a data tablet or the like, is that stroke order information can be used. The stroke order differs depending on the person inputting the pattern, and is not necessarily the same, but if by using stroke order information, character recognition can be achieved with a high recognition rate and a short recognition time, then stroke order information can also be used to a great extent. Should.

[発明が解決しようとする問題点] 本発明は、パターン作成時の筆順変動を十分に考慮した
上で、パターンを部分パターンに分割して認識し、相違
の程度が所定以上になった場合には、比較の途中であっ
ても他のパターンとの比較に8ることにより、認識率が
高く、かつ認識時間の短いパターン認識装置を提供する
[Problems to be Solved by the Invention] The present invention recognizes a pattern by dividing it into partial patterns, taking into full consideration variations in stroke order when creating a pattern, and when the degree of difference exceeds a predetermined value. provides a pattern recognition device that has a high recognition rate and short recognition time by comparing with other patterns even during the comparison.

[問題点を解決するための手段] この問題点を解決するための一手段として、本発明のパ
ターン認識装置は、入力されたパターンと予め登録され
ているパターンを1つ又は複数の所定の部分パターンに
分解して、対応する部分パターンを比較する比較手段と
、該比較手段の比較結果に基づいて前記入力されたパタ
ーンを認識する認識手段と、前記比較手段による比較結
果を表す値が所定の許容値を越える場合に、比較中のパ
ターンとの比較を終了させる終了手段とを備える。
[Means for Solving the Problem] As a means for solving this problem, the pattern recognition device of the present invention combines an input pattern and a previously registered pattern into one or more predetermined parts. a comparison means for decomposing into patterns and comparing corresponding partial patterns; a recognition means for recognizing the inputted pattern based on the comparison result of the comparison means; and terminating means for terminating the comparison with the pattern being compared when the allowable value is exceeded.

[作用] かかる構成において、入力されたパターンと予め登録さ
れているパターンとが、部分パターンに分割されて、部
分パターン同志が比較されることによりパターンが認識
されるが、相違の程度が所定以上になった場合には、比
較の途中であっても他のパターンとの比較に移る。
[Operation] In such a configuration, the input pattern and the pre-registered pattern are divided into partial patterns, and the pattern is recognized by comparing the partial patterns, but if the degree of difference exceeds a predetermined value, If this happens, the process moves on to comparison with other patterns even if the comparison is in progress.

[実施例コ 以下、添付図面に従って本発明の実施例を詳細に説明す
る。
[Embodiments] Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings.

第1図(a)は第1実施例のパターン認識装置の構成図
であり、1はタブレット、2は入力ペン、3は特徴抽出
部、4は文字判別部、5は辞書部である。筆記者が入力
ペン2でタブレット1に文字を筆記すると、ペンの座標
とペンのアップダウン情報が特徴抽出部3に送られ、特
徴抽出部3では1文字分の入力された文字パターンから
特徴を抽出し、文字判別部4へ送る。文字判別部4では
入力された文字パターンから抽出された特徴を辞書部5
に予め登録されている各文字の文字パターンと比較して
、類似度を求め、最も類似度の高い(又は相違度の低い
)文字を認識結果として出力する。尚、文字パターンに
は、記号2図形等も含まれる。第1図(b)は、文字判
別部4の構成図であり、41は処理をするCPU、42
はCPU41の処理手順のプログラムを格納するROM
、43は補助用のRAMである。
FIG. 1(a) is a block diagram of the pattern recognition device of the first embodiment, in which 1 is a tablet, 2 is an input pen, 3 is a feature extraction section, 4 is a character discrimination section, and 5 is a dictionary section. When a scribe writes a character on the tablet 1 with the input pen 2, the coordinates of the pen and the up-down information of the pen are sent to the feature extraction unit 3, which extracts features from the input character pattern for one character. It is extracted and sent to the character discrimination section 4. The character discrimination unit 4 uses the features extracted from the input character pattern to the dictionary unit 5.
The degree of similarity is determined by comparing the character patterns of each character registered in advance with the character pattern, and the character with the highest degree of similarity (or the lowest degree of difference) is output as a recognition result. Note that the character pattern also includes symbols, 2 figures, and the like. FIG. 1(b) is a block diagram of the character discrimination unit 4, in which 41 is a CPU for processing, 42
is a ROM that stores the program of the processing procedure of the CPU 41
, 43 are auxiliary RAMs.

第2図は第1図(a)の辞書部5の構成を示す図であり
、本例では辞書部5は字画順に登録されている。51は
9画文字の文字ブロックの構成を示す図であり、52は
1つの文字ブロックが文字コード53、分割情報54、
ストローク情報55から構成されていることを示す図で
ある。
FIG. 2 is a diagram showing the configuration of the dictionary section 5 of FIG. 1(a), and in this example, the dictionary section 5 is registered in the order of strokes. 51 is a diagram showing the structure of a character block of nine stroke characters, and 52 is a diagram in which one character block has a character code 53, division information 54,
5 is a diagram showing that it is composed of stroke information 55. FIG.

第3図(a)は1つの文字ブロック52の例であり、「
思」の文字ブロックの構造を示している。r3b57J
は「思」の文字コード53であり、「5」は「思」は始
めの5画と後半の4画に分割して処理することを示す分
割情報54であり、次の9個のブロックには「思」のス
トローク情報55が措置の筆順に従って登録されている
FIG. 3(a) is an example of one character block 52, and "
It shows the structure of the character block for `` Thoughts''. r3b57J
is the character code 53 for "shi", and "5" is the division information 54 indicating that "shi" is divided into the first five strokes and the last four strokes, and is processed in the next nine blocks. The stroke information 55 for "thought" is registered according to the stroke order of the measure.

第3図(b)は分割数として「1」を別に持っている分
割情報54を持つ文字ブロックを示している。
FIG. 3(b) shows a character block having division information 54 which additionally has "1" as the number of divisions.

以下、本実施例の動作を説明する。The operation of this embodiment will be explained below.

第4図は「思」の筆記例を示す図であり、「思」では「
田」の部分の筆順変動が黴しく、40で示す筆順が基本
であるが、41,42゜43で示す筆順のように異なっ
た筆順で筆記されることが多い。ただし、「心」を筆記
してから「田」を筆記したり、「田」の途中で「心」を
筆記し、さらに「田」の残りを筆記することはなく、「
田」を筆記した後に「心」を筆記することがほとんどで
ある。このように種々な筆順の「思」を認識するには、
筆順を制限したまま、種々な筆順の「思」を辞書部5に
登録するか、あるいは筆順を自由にして人カバターンと
「想Nのすべてのパターンとの比較を行うか2通りが考
えられているが、前者では、辞書部5の8二が非常に大
きくなるので、現実的ではなく、後者では不必要な比較
を行うため、認識時間が長くなったり、かえって誤った
対応をすることがあった。
Figure 4 is a diagram showing an example of how to write ``shi'', and ``shi'' is written as ``shi''.
The stroke order of the part ``田'' varies considerably, and although the stroke order shown at 40 is the basic stroke order, it is often written in different stroke orders such as the stroke order shown at 41, 42°, and 43. However, you should not write down ``kokoro'' and then ``den,'' or write ``kokoro'' in the middle of ``den,'' and then write the rest of ``den.''
In most cases, ``kokoro'' (heart) is written after writing down ``田''. In order to recognize the ``thoughts'' of various stroke orders in this way,
There are two possible ways to do this: to register ``sou'' in various stroke orders in the dictionary section 5 while restricting the stroke order, or to freely change the stroke order and compare all the patterns of human cover turns and ``souN''. However, in the former case, the number 82 in the dictionary section 5 becomes very large, which is not practical, and in the latter case, unnecessary comparisons are made, which may increase the recognition time or result in incorrect responses. Ta.

第5図(a)は本実施例による入力された文字のストロ
ーク情報と辞書部5の文字のストローク情報との比較結
果を示す図である。第5図(b)は比較結果に対する重
み付けを示す図である。入力された文字パターンを、分
割情報54に従って始めの5画と後半の4画に分割し、
始めの5画と辞書部5の始めの5画を比較し、後半の4
画と辞書部5の後半の4画を比較している。比較結果に
は重み付けを行い、本例では許容値以下であれば、同一
文字と判断する。例えは許容値を100とすると、第5
図(a)の例では、入力された文字パターンは第4図の
42の誤った筆順で筆記されているが、比較によって正
しい対応がとれることを示している。尚、重み付は及び
許容値は本例に限らない。又、同一と判断された文字コ
ードが複数ある場合は、最も小さい値のものを同一文字
と判断する。以後、比較結果の出力値を相違度の値と呼
ぶ。重み付けを逆にすれば、類似度の値となる。
FIG. 5(a) is a diagram showing a comparison result between stroke information of input characters and stroke information of characters stored in the dictionary section 5 according to this embodiment. FIG. 5(b) is a diagram showing weighting for comparison results. The input character pattern is divided into the first 5 strokes and the latter 4 strokes according to the division information 54,
Compare the first 5 strokes with the first 5 strokes of dictionary section 5, and compare the last 4 strokes.
This figure is compared with the last four strokes of dictionary section 5. The comparison results are weighted, and in this example, if they are less than a tolerance value, they are determined to be the same character. For example, if the tolerance is 100, the fifth
In the example of FIG. 4A, the input character pattern is written in the incorrect stroke order of 42 in FIG. 4, but comparison shows that the correct correspondence can be achieved. Note that the weighting and allowable values are not limited to this example. Furthermore, if there are multiple character codes determined to be the same, the one with the smallest value is determined to be the same character. Hereinafter, the output value of the comparison result will be referred to as a dissimilarity value. Reversing the weighting results in a similarity value.

第6図は本実施例の2分割をする場合の処理手順、を示
すフローチャートである。ステップS60で特徴抽出部
3より、入力された文字パターンを受信した後、ステッ
プS61で比較の終了していない文字ブロックがあるか
どうかの判別を行い、無い場合は処理を終了する。まだ
比較していない文字ブロックがある場合は、ステップS
62でその文字ブロック52を辞書部5から入力し、特
にステップS63では文字ブロック52から分割情報5
4を取り出す。ステップS64で分割情報54に従って
入力された文字パターンを前半と後半に分割し、前半の
ストローク同志の比較を行う。ステップS65では後半
のストローク同志の比較を行い、ステップS66ではス
テップS64とステップS65の結果から入力された文
字パターンと文字ブロック52の文字パターンが同一で
あるかどうかの判別を行い、同一パターンと判断できる
場合はステップS67で文字コード53を出力した後、
ステップS61へ戻り、同一パターンと判断できない場
合は直ちにステップS61へ戻る。ステップS67で、
文字コードを出力すると同時に、その時の相違度の値を
以後の判定の許容値とすると、最終的に1つの文字を発
見できる。又、最後に許容値が所定値以上である場合は
、筆記者に入力ミスを伝達することも考えてもよい。
FIG. 6 is a flowchart showing the processing procedure for dividing into two parts according to this embodiment. After receiving the input character pattern from the feature extraction unit 3 in step S60, it is determined in step S61 whether or not there is a character block for which comparison has not been completed, and if there is no character block, the process is terminated. If there are character blocks that have not yet been compared, proceed to step S.
In step S62, the character block 52 is input from the dictionary section 5, and in particular, in step S63, the division information 5 is input from the character block 52.
Take out 4. In step S64, the input character pattern is divided into the first half and the second half according to the division information 54, and the strokes of the first half are compared. In step S65, the strokes in the latter half are compared, and in step S66, it is determined whether the input character pattern and the character pattern of the character block 52 are the same based on the results of step S64 and step S65, and it is determined that they are the same pattern. If possible, after outputting the character code 53 in step S67,
The process returns to step S61, and if it cannot be determined that the patterns are the same, the process immediately returns to step S61. In step S67,
At the same time as outputting the character code, if the value of the degree of difference at that time is set as the allowable value for subsequent determination, one character can finally be found. Furthermore, if the allowable value is at least a predetermined value at the end, it may be considered to notify the scribe of the input error.

本実施例ではタブレットに対して入力ペンで筆記シティ
るが、圧力を感知するタブレットを用。
In this embodiment, writing is performed using an input pen on a tablet, but a pressure-sensing tablet is used.

い、指で筆記するようにしても良い、又、比較結果の判
別方法は重み付けには限らない。更に、入力された文字
の画数により、本例では9画から比較を始めると処理時
間が短い。
Alternatively, it may be written with a finger, and the method for determining the comparison result is not limited to weighting. Furthermore, depending on the number of strokes of the input character, in this example, if the comparison starts from 9 strokes, the processing time will be shorter.

ところが、筆順の誤り以外に、続は書きをすることも考
えられる。そこで、次に文字が続は書きされた場合の実
施例のパターン認識装置の対応を説明する。
However, in addition to errors in stroke order, it is also possible that the continuation is written. Therefore, the response of the pattern recognition device of the embodiment when a continuation of characters is written next will be explained.

第7図は「思」の筆記例を示す図であり、70は正しい
筆順で、かつ接置で筆記された「思」を示すニオ、71
は誤った筆順で、かつ一部分が続は書きされた「思」を
示している。
Figure 7 is a diagram showing an example of the writing of ``shi'', where 70 is a nio indicating ``shi'' written in the correct stroke order and in position, 71
is written in the wrong order of strokes, and part of it shows the ``thoughts'' written.

第8図(a)は本実施例における続は書きされた「思」
の文字パターンと辞書部の文字パターンとの比較結果を
示す図である。第8図(b)は比較結果の重み付けを示
す図である。入力された文字パターンの始めの5画と辞
書部の文字パターンの始めの5画との比較を行い、入力
された文字パターンの終りの4画と辞書部の文字パター
ンの後半の4画との比較を行うことを示している。
Figure 8(a) shows the continuation in this example written as “thought”.
It is a figure which shows the comparison result of the character pattern of this and the character pattern of a dictionary part. FIG. 8(b) is a diagram showing weighting of comparison results. Compare the first five strokes of the input character pattern with the first five strokes of the character pattern in the dictionary section, and compare the last four strokes of the input character pattern with the last four strokes of the character pattern in the dictionary section. Indicates that a comparison is to be made.

第8図(a)の例では、筆順が正しくなく、かつ一部分
が続は書きされていても、比較によって正しい対応がと
れることを示している。
The example in FIG. 8(a) shows that even if the order of strokes is incorrect and some parts are continued, a correct correspondence can be taken by comparison.

以上述べた様な2つの分割ばかりでなく、3つ以上の分
割を行った方がより有利な場合がある。
It may be more advantageous to perform not only two divisions as described above but three or more divisions.

例えば、r数」という文字は「米」と1女」と「欠」に
分割した方が、認識率が高く、認識時間が短い認識が可
能である。そこで、次に文字を任意の数に分割するパタ
ーン認識装置を説明する。
For example, if the character ``r number'' is divided into ``rice'', ``1 girl'', and ``missing'', the recognition rate will be higher and the recognition time will be shorter. Next, a pattern recognition device that divides characters into arbitrary numbers will be described.

第10図(a)は「数」の文字ブロック52の例であり
、r3 F 74Jは数の文字コード53、「6」およ
び「3」は始めの6画の「米」次の3画の1女」、そし
て歿りの「欠」に分割されることを示す分割情報54で
ある。次の13偲のブロックにはr数」のストローク情
報55が正しい筆順に従って格納されている。第10図
(b)は分割数として「2」を別に持っている分割情報
54を含む文字ブロックを示している。
FIG. 10(a) is an example of the character block 52 for "number", r3 F 74J is the character code for number 53, "6" and "3" are "rice" for the first 6 strokes, and "rice" for the next 3 strokes. This is the division information 54 indicating that the information is divided into ``1 girl'' and ``missing'' of the child. In the next 13 blocks, stroke information 55 of "r number" is stored according to the correct stroke order. FIG. 10(b) shows a character block including division information 54 which additionally has "2" as the division number.

第・9図は「数」の筆記例を示す図であり、90が正し
い筆順の筆記例であるのに対し、91は誤った筆順で筆
記されている上、「欠」の部分は、一部分、続は書きさ
れた筆記例である。このようにr数」を構成する「米」
、1女」、r欠」はそれぞれ種々な筆順で筆記される。
Figure 9 is a diagram showing an example of writing the word ``number''. 90 is an example of writing in the correct stroke order, while 91 is written in the wrong stroke order, and the ``missing'' part is partially , followed by a written example. In this way, "rice" constitutes "r number"
, 1女'', and r missing are each written in various stroke orders.

しかし、「米」「女」、「欠」の順で筆記されることが
ほとんどである。
However, in most cases, it is written in the order of ``rice'', ``woman'', and ``missing''.

第11図は「数」の辞書部の文字パターンと入力された
文字パターンの比較結果を示す図である。r数」の分割
情報54は「6」と「3」であるから、文字パターンを
「米」 (6画)と「女」(3画)と「欠」に分割し、
それぞれを入力された文字パターンの始めの6画、6画
〜9画、終りの4画と比較し、正しいパターンの対応を
得ている。このように本実施例では少ない処理量で誤筆
順文字や続は文字も正しいパターンに対応させており、
実用上の筆順自由や続は書きを可能にしている。
FIG. 11 is a diagram showing a comparison result between the character pattern of the dictionary section for "number" and the input character pattern. Since the division information 54 for "r number" is "6" and "3", the character pattern is divided into "rice" (6 strokes), "woman" (3 strokes), and "missing".
Each of these is compared with the first six strokes, six to nine strokes, and the last four strokes of the input character pattern to obtain correct pattern correspondence. In this way, in this embodiment, the incorrect stroke order characters and the continuation characters are made to correspond to the correct pattern with a small amount of processing.
In practical terms, free stroke order and continuous writing are possible.

第12図は本実施例の任意の分割の場合の処理手順を示
すフローチャートである。ステップ5120で、特徴抽
出部3より入力された文字パターンを受信し、その画数
から比較する文字の画数を決定する。各文字ブロック5
2の比較ではステップ5121で終りかどうかの判別を
行い、終りの場合は処理を終了する。終りでない場合は
ステップ5122でステップ5120で決定された画数
の文字ブロックを読み込み、ステップ5123でその中
から特に分割情報54を取り出す。ステップ5124で
は分割情報54に従って文字パターンを分割し、ステッ
プ5125で入力された文字パターンと予め登録されて
いる文字パターンのストロークの比較を行う。ステップ
5126では全ストロークの比較が終了しかを判断して
、終了していなければステップ5125〜126を繰り
返す。ステップ5127ではその比較の結果、入力され
た文字パターンと文字ブロックが同一文字であるかどう
かの判別を行い、同一文字と判断された場合は、ステッ
プ3128で文字コードを出力し、ステップ5121に
戻って次の文字ブロックの比較に移る。そうでない場合
は直接ステップ5121へ戻る。尚、前述したように同
一と判断された文字コードが複数ある場合は、最も小さ
い値のものを同一文字と判断する。
FIG. 12 is a flowchart showing the processing procedure in the case of arbitrary division in this embodiment. In step 5120, the character pattern inputted from the feature extraction unit 3 is received, and the number of strokes of the character to be compared is determined from the number of strokes. Each character block 5
In the second comparison, it is determined in step 5121 whether or not it is the end, and if it is the end, the process ends. If it is not the end, in step 5122, the character block with the number of strokes determined in step 5120 is read, and in step 5123, particularly the division information 54 is extracted from it. In step 5124, the character pattern is divided according to the division information 54, and in step 5125, the strokes of the input character pattern and the previously registered character pattern are compared. In step 5126, it is determined whether the comparison of all strokes has been completed, and if not, steps 5125 to 126 are repeated. In step 5127, as a result of the comparison, it is determined whether the input character pattern and the character block are the same character. If they are determined to be the same character, the character code is output in step 3128, and the process returns to step 5121. to move on to comparing the next block of characters. Otherwise, the process returns directly to step 5121. Note that, as described above, if there are multiple character codes determined to be the same, the one with the smallest value is determined to be the same character.

又、ステップ5128で、文字コードを出力すると同時
に、その時の相違度の値を以後の判定の許容値とすると
、最終的に1つの文字を発見できるし、最後に許容値が
所定値以上である場合は、筆記者に入力ミスを伝達する
ことも考えてもよい。
In addition, in step 5128, at the same time as outputting the character code, if the value of the degree of dissimilarity at that time is set as the tolerance value for subsequent determination, one character can be finally found, and finally the tolerance value is greater than or equal to the predetermined value. If so, you may consider communicating the input error to the scribe.

本例では3つに分割した例を説明したが、分割数はいく
らでも良い。又、その分割方法もそれぞれの文字につい
て最良の方法を考えれば良い。
In this example, an example in which the image is divided into three parts has been explained, but the number of divisions may be any number. Also, as for the division method, it is sufficient to consider the best method for each character.

更に、すへてのストロークの比較を終了するのを待たず
に相違度が所定値を越えると、判断を中止するようにす
ると、次の認識に早く移ることが出来て認識時間を短く
できる。そこで、次に相違度が所定値を越えると判断を
中止するパターン認識装置を説明する。
Furthermore, if the determination is stopped when the degree of difference exceeds a predetermined value without waiting for the comparison of all strokes to be completed, the next recognition can be started quickly, and the recognition time can be shortened. Therefore, next, a pattern recognition device will be described that stops determination when the degree of difference exceeds a predetermined value.

第13図の130は辞書部5に登録されている「思」の
文字パターンであり、正しい筆順に従ったストローク情
報である。131は「計」の筆記例と正しい筆順に従っ
たストローク情報である。
Reference numeral 130 in FIG. 13 is a character pattern for "shi" registered in the dictionary section 5, which is stroke information that follows the correct stroke order. 131 is a handwriting example of "to" and stroke information according to the correct stroke order.

この2文字の比較では「思」の始めの5画である「田」
と筆記例である「計」の始めの5画である「ア」の比較
を行う。第14図は「思」と「計」のストローク対応を
示す図であるが、「田」の各ストロークは文字枠の上半
分に存在するのに対し、「F」の各ストロークは文字枠
の左半分に存在し、始めの5画同志の相違度は大きく、
許容値より大きくなる。相違度が許容値より大きくなっ
たので、残りの「心」と「フ↑」の比較は行わない。
In comparing these two characters, ``田'' is the first five strokes of ``し''.
A comparison will be made between the first five strokes of the written example ``kei'' and ``a''. Figure 14 is a diagram showing the stroke correspondence between ``shi'' and ``ke''. Each stroke of ``田'' exists in the upper half of the character frame, whereas each stroke of ``F'' exists in the upper half of the character frame. It exists in the left half, and the degree of difference between the first five strokes is large,
becomes larger than the allowable value. Since the degree of difference has become larger than the allowable value, the remaining "heart" and "fu↑" are not compared.

第15図は相違度により処理を中断する場合の処理手順
を示すフローチャートである。ステップ5150で、特
徴抽出部3より入力された文字パターンを受信し、その
画数から比較する文字の画数を決定する。各文字ブロッ
ク52の比較ではステップ5151で終りかどうかの判
別を行い、終りの場合は処理を終了する。終りでない場
合はステップ5152でステップ5150で決定された
画数の文字ブロックを読み込み、ステップ5153でそ
の中から特に分割情報54を取り出す、ステップ515
4では分割情報54に従って文字パターンを分割し、ス
テップ5155で入力された文字パターンと予め登録さ
れている文字パターンのストロークの比較を行う、ステ
ップ5156では、ステップ5155での比較結果の相
違度を加算する。ステップ5157では、ステップ51
56での加算結果が許容値以下かが判定され、許容値を
越えた場合はその文字ブロックに対する比較を中断して
、ステップ5151に戻り次の文字ブロックとの比較に
移る。ステップ3158では全ストロークの比較が終了
したかを判断して、終了していなければステップ315
5〜158を繰り返す。ステップ5159ではその比較
の結果、入力された文字パターンと文字ブロックが同一
文字であるかどうかの判別を行い、同一文字と判断され
た場合は、ステップ5160で文字コードを出力し、ス
テップ5151に戻って次の文字ブロックの比較に移る
。そうでない場合は直接ステップ5151へ戻る。尚、
前述したように同一と判断された文字コードが複数ある
場合は、最も小さい値のものを同一文字と判断する。
FIG. 15 is a flowchart showing the processing procedure when processing is interrupted due to the degree of difference. In step 5150, the character pattern inputted from the feature extraction unit 3 is received, and the number of strokes of the character to be compared is determined from the number of strokes. In comparing each character block 52, it is determined in step 5151 whether it is the end or not, and if it is the end, the process ends. If it is not the end, in step 5152, the character block with the number of strokes determined in step 5150 is read, and in step 5153, the division information 54 is particularly extracted from it, in step 515.
In Step 4, the character pattern is divided according to the division information 54, and in Step 5155, the strokes of the input character pattern and the previously registered character pattern are compared. In Step 5156, the degree of difference of the comparison result in Step 5155 is added. do. In step 5157, step 51
It is determined whether the addition result in step 5156 is less than or equal to the allowable value, and if it exceeds the allowable value, the comparison for that character block is interrupted and the process returns to step 5151 to proceed to the comparison with the next character block. In step 3158, it is determined whether the comparison of all strokes has been completed, and if not, step 315
Repeat steps 5 to 158. In step 5159, as a result of the comparison, it is determined whether the input character pattern and the character block are the same character. If they are determined to be the same character, the character code is output in step 5160, and the process returns to step 5151. to move on to comparing the next block of characters. Otherwise, the process returns directly to step 5151. still,
As described above, if there are multiple character codes determined to be the same, the one with the smallest value is determined to be the same character.

又、ステップ5160で、文字コードを出力すると同時
に、その時の相違度の値を以後の判定の許容値とすると
、最終的に1つの文字を発見できるし、最後に許容値が
所定値以上である場合は、筆記者に入力ミスを伝達する
ことも考えてもよい。
Also, in step 5160, if the character code is output and the difference value at that time is set as the tolerance value for subsequent determination, one character can be finally found, and finally the tolerance value is greater than or equal to the predetermined value. If so, you may consider communicating the input error to the scribe.

更に、辞書部の文字の順序を考えて、ステップ5157
で相違度が許容値を越えた場合は、比較の終了した部分
パターンとおなしパターンを持つ文字との比較をスキッ
プすることも出来る。
Furthermore, considering the order of characters in the dictionary section, step 5157
If the degree of dissimilarity exceeds the allowable value, it is possible to skip the comparison between the partially compared partial pattern and the character with the blank pattern.

相違度の許容値は入力された文字パターンの画数によっ
て定められていても、辞書部の文字パターンの画数によ
って定められていたり、各文字毎、あるいは各部分の画
数によって定められていてもよい。また、入力された文
字パターンの特徴と予め登録されている文字パターンと
の比較において、その入力された文字パターンの特徴と
それ以前に比較した文字パターンとの相違度のうち、最
も小さい相違度を許容値にしてもよい。又、本例では「
田」の方から比較したが、「心」から比較しても、その
文字によっては、文字の特徴が最も現れたパターンから
比較した方が認識時間が短い場合や認識率が高い場合も
ある。
The allowable value of the degree of difference may be determined by the number of strokes of the input character pattern, the number of strokes of the character pattern in the dictionary, or the number of strokes of each character or part. In addition, when comparing the characteristics of the input character pattern with character patterns registered in advance, the smallest difference between the characteristics of the input character pattern and the previously compared character pattern is selected. It may be a permissible value. Also, in this example, “
Although the comparison was made starting with ``田'', even when comparing starting with ``心'', depending on the character, the recognition time may be shorter or the recognition rate may be higher if the pattern that shows the most character features is compared first.

以上説明したように、入力された文字パターンの特徴と
辞書部の文字パターンとの比較において、この一方ある
いは両方をいくつかの部分パターンに分割し、対応する
部分パターン同志の比較の結果、相違度がある値以上で
ある場合、あるいは逆に類似度がある値以下である場合
、入力された文字パターンと辞書部の文字パターンとの
実行中の比較を終了して次の処理に進む、あるいは類似
パターンの文字の比較をスキップすることで認識時間の
短縮化が可能になる。
As explained above, when comparing the characteristics of the input character pattern and the character pattern in the dictionary, one or both of them are divided into several partial patterns, and as a result of comparing the corresponding partial patterns, the degree of dissimilarity is determined. If the similarity is greater than or equal to a certain value, or conversely, if the similarity is less than or equal to a certain value, the ongoing comparison between the input character pattern and the character pattern in the dictionary section is terminated and the process proceeds to the next step, or if the similarity is By skipping the comparison of characters in the pattern, recognition time can be shortened.

次に、ストローク情報例及びストローク情報による比較
例を説明する。
Next, an example of stroke information and a comparative example using stroke information will be described.

第16図はストローク情報の作成に使用する基本ストロ
ークの一例を示す図であり、代表的なストロークの形と
その番号が登録されている。入力された文字パターンの
各ストロークはこれらの基本ストローク16のいずれか
に分類される。
FIG. 16 is a diagram showing an example of basic strokes used to create stroke information, in which typical stroke shapes and their numbers are registered. Each stroke of the input character pattern is classified into one of these basic strokes 16.

第17図は辞書部5に登録されている文字ブロック52
の一例を示す図であり、「何」の文字パターンである。
FIG. 17 shows a character block 52 registered in the dictionary section 5.
is a diagram showing an example of the character pattern of "What".

r323 FJは「何」の文字コード53である。「6
」、r36,92J、r8,47Jは「何」の第1画で
ある「ノ」の基本ストローク番号、始点の座標、終点の
座標である。始点及び終点の座標は「何」の標準パター
ンに位置と大きさに正規化を施した後の各端点のx、y
座標値である。さらに、「7」、「22゜60」、r2
4,8Jは「何」の第2画である「1」の基本ストロー
ク番号、始点の座標、終点の座標である。以下同様にス
トローク情報55が登録されている。前述のように分割
する場合は、文字コード53とストローク情報55の間
に分割情報54が登録されている。
r323 FJ is the character code 53 for "What". "6
”, r36, 92J, r8, 47J are the basic stroke number, the coordinates of the starting point, and the coordinates of the ending point of “ノ” which is the first stroke of “What”. The coordinates of the start point and end point are the x, y of each end point after normalizing the position and size of the standard pattern.
It is a coordinate value. Furthermore, "7", "22°60", r2
4 and 8J are the basic stroke number of "1" which is the second stroke of "what", the coordinates of the starting point, and the coordinates of the ending point. Stroke information 55 is similarly registered below. When dividing as described above, division information 54 is registered between character code 53 and stroke information 55.

第18図は「何」の筆記例を示した図である。FIG. 18 is a diagram showing an example of writing "What".

180は措置かつ正しい筆順で筆記された「何」の筆記
例であるが、181,182は措置ではあるが、誤った
筆順で筆記された「何」の筆記例である。183は一部
分が続は書きされ、かつ誤った筆順で筆記された「何」
の例である。基本ストロークを利用した従来のオンライ
ン文字認識では、このような誤筆順文字や続は字の認識
は困難であった。
180 is an example of "what" written as a measure and in the correct stroke order, while 181 and 182 are examples of "what" written as a measure but in the wrong stroke order. 183 is a part of the word ``what'' written in the wrong stroke order.
This is an example. Conventional online character recognition using basic strokes has difficulty recognizing such incorrect stroke order characters and continuation characters.

第19図と第20図は本実施例による認識方法の一例の
フローチャートであり、第21図は認識の際に利用する
基本ストローク間相似度表の一部を示す図である。
19 and 20 are flowcharts of an example of the recognition method according to this embodiment, and FIG. 21 is a diagram showing a part of the basic stroke similarity table used for recognition.

第19図はストローク情報による入力された文字パター
ンと辞書部の文字パターンとの比較手順を示すフローチ
ャートであり、ステップ5191で辞書部の文字パター
ンの各ストロークと、入力された文字パターンの各スト
ロークとを比較して対応するストロークを求め、次にス
テップ5192で対応するストローク間の距離の和を求
め、入力された文字パターンと文字パターンとの相違度
にしている。このようにして辞書部に登録されている各
文字パターンと入力された文字パターンとの相違度を求
め、最も相違度の小さな文字を認識結果として出力して
いる。
FIG. 19 is a flowchart showing a procedure for comparing the input character pattern with the character pattern of the dictionary section based on stroke information. In step 5191, each stroke of the character pattern of the dictionary section and each stroke of the input character pattern are compared. are compared to find corresponding strokes, and then in step 5192 the sum of the distances between the corresponding strokes is found, which is used as the degree of difference between the input character pattern and the character pattern. In this way, the degree of difference between each character pattern registered in the dictionary section and the input character pattern is determined, and the character with the smallest degree of difference is output as the recognition result.

第20図は辞書部の文字パターンの各ストロークと入力
された文字パターンの各ストロークとの対応を求める手
順を示すフローチャートであり、ステップ5201で両
ストロークの始点同志の距離を求め、ステップ5202
で終点同志の距離を加え、さらにステップ5203で第
21図に示す基本ストローク間相違度表に従い、基本ス
トローク間相違度を加え、この値をストローク間距離と
し、辞書部の文字パターンのストロークに対し、入力さ
れた文字パターンのストロークの中で最も距離の小さい
ストロークを対応ストロークとする。
FIG. 20 is a flowchart showing the procedure for determining the correspondence between each stroke of the character pattern in the dictionary section and each stroke of the input character pattern. In step 5201, the distance between the starting points of both strokes is determined, and in step 5202
In step 5203, the distance between the end points is added, and in step 5203, the degree of difference between basic strokes is added according to the degree of difference between basic strokes table shown in FIG. 21, and this value is defined as the distance between strokes. , the stroke with the shortest distance among the strokes of the input character pattern is set as the corresponding stroke.

第22図は「何ノの筆記例であり、第18図の183の
筆記例である。第23図は第22図の筆記例に対し、筆
順に従って各ストロークの基本ストローク番号、始点の
座標、終点の座標を抽出したものである。尚、基本スト
ロークへの分解は、各ストロークと基本ストロークの始
点を同じ座標に8動して、終点間の距離の最も短い基本
ストロークを選ぶ等が考えられる。
Fig. 22 is an example of the writing of ``No'', which is the writing example of 183 in Fig. 18. Fig. 23 shows the basic stroke number of each stroke, the coordinates of the starting point, and The coordinates of the end point are extracted.For decomposition into basic strokes, it is possible to move the start point of each stroke and the basic stroke to the same coordinates by 8 and select the basic stroke with the shortest distance between the end points. .

第24図は第22図の入力された筆記例と第17図の文
字パターンの各ストロークの対応を示す図である0入力
された文字パターンに従い、辞書部の文字パターンの第
1ストロークと入力された文字パターンの各ストローク
との比較を行い、辞書部の文字パターンの第1ストロー
クには入力された文字パターンの第1ストロークが対応
したことを示している。以下同様である。入力さ、れな
文字パターンの第4ストロークは、辞書部の文字パター
ンの第5ストロークと第6ストロークに対応している。
Figure 24 is a diagram showing the correspondence between the input handwriting example in Figure 22 and each stroke of the character pattern in Figure 17. A comparison is made with each stroke of the input character pattern, and it is shown that the first stroke of the input character pattern corresponds to the first stroke of the character pattern in the dictionary section. The same applies below. The fourth stroke of the input character pattern corresponds to the fifth and sixth strokes of the character pattern in the dictionary section.

ストローク情報が正しく対応しているため、入力された
文字パターンの「何」と辞書部の文字パターンの「何」
の相違度は比較的小さな値となり正しく認識される。
Since the stroke information corresponds correctly, the input character pattern "What" and the dictionary part's character pattern "What"
The degree of difference becomes a relatively small value and is correctly recognized.

以上のように、基本ストロニクのストロークの端点の座
標を利用することで、誤筆順文字や続は字でも正しいス
トローク対応を得ることが多く、高い認識率が得られる
。尚、本例は基本ストロークに分解して比較したが、文
字ストローク自身を比較する方法等も考えられる。
As described above, by using the coordinates of the end points of basic stronic strokes, correct stroke correspondence can often be obtained even for incorrect stroke order characters and continuation characters, and a high recognition rate can be obtained. In this example, the basic strokes are broken down and compared, but a method of comparing the character strokes themselves may also be considered.

さて、文字をグループに分割するだけでなく、特定の出
現率の多い、例えば、部首等を予め比較して見付けると
認識時間が短くなる。以下、上記のパターン認識を実現
するパターン認識装置を説明する。
Now, in addition to dividing characters into groups, the recognition time can be shortened by comparing and finding specific occurrence rates, such as radicals, in advance. A pattern recognition device that realizes the above pattern recognition will be described below.

第25図は第2実施例のパターン認識装置の構成図であ
り、251はタブレット、252は入力ベン、253は
特徴抽出部、254は部分パターン判別部、255は文
字判別部、256は辞書部、257は辞書部257の内
の部分パターン辞書部、258は辞書部257の内の文
字辞書部である。筆記者が入力ベン252でタブレット
251に文字を筆記すると、ペンの座標とペンのアップ
ダウン情報が特徴抽出部253に送られ、特徴抽出部2
5−3では1文字分の入力された文字パターンに対して
位置と大きさの正規化を施し、ストロークの数、各スト
ロークの端点の座標、各ストロークの概形等の特徴を抽
出し、部分パターン判別部254へ送る。部分パターン
判別部254では特徴抽出部253から送られた特徴を
部分パターン辞書部257に登録されている各部分パタ
ーンの特徴と比較して部分パターンの候補を求め、特徴
抽出部253から送られた入力された文字パターンの特
徴とともに、候補部分パターンを文字判別部255へ送
る。文字判別部255では、部分パターン判別部254
から送られる入力された文字パターンの特徴と候補部分
パターンに従い、候補部分パターンによって文字辞書部
258に登録されている文字パターンの中から比較すべ
き文字パターンを遭別して入力された文字パターンの特
徴と文字パターンを比較し、最も相違度の小さい、ある
いは類似度の高い文字を認識結果として出力する。尚、
部分パターン判別部254及び文字判別部255は、第
1図(b)と同様にCPU、ROM、RAMから構成さ
れており、第25図に示したROM254a、255a
には、処理プログラムが格納されている。
FIG. 25 is a block diagram of the pattern recognition device of the second embodiment, in which 251 is a tablet, 252 is an input bezel, 253 is a feature extraction section, 254 is a partial pattern discrimination section, 255 is a character discrimination section, and 256 is a dictionary section. , 257 is a partial pattern dictionary section of the dictionary section 257, and 258 is a character dictionary section of the dictionary section 257. When a scribe writes characters on the tablet 251 using the input pen 252, the coordinates of the pen and the up-down information of the pen are sent to the feature extraction unit 253.
In 5-3, the position and size of the input character pattern for one character are normalized, and features such as the number of strokes, the coordinates of the end points of each stroke, and the outline of each stroke are extracted, and the partial It is sent to the pattern discrimination section 254. The partial pattern discrimination unit 254 compares the features sent from the feature extraction unit 253 with the features of each partial pattern registered in the partial pattern dictionary unit 257 to obtain partial pattern candidates, and compares the features sent from the feature extraction unit 253 with the features of each partial pattern registered in the partial pattern dictionary unit 257. The candidate partial pattern is sent to the character discrimination unit 255 along with the characteristics of the input character pattern. In the character discrimination section 255, the partial pattern discrimination section 254
According to the characteristics of the input character pattern and the candidate partial patterns sent from the character dictionary unit 258, the character pattern to be compared is identified from among the character patterns registered in the character dictionary section 258 according to the candidate partial patterns, and the characteristics of the input character pattern and the candidate partial pattern are identified. Compare character patterns and output the characters with the smallest degree of difference or highest degree of similarity as recognition results. still,
The partial pattern discrimination unit 254 and the character discrimination unit 255 are composed of a CPU, a ROM, and a RAM as in FIG. 1(b), and the ROMs 254a and 255a shown in FIG.
A processing program is stored in .

第26図は部分パターンの例を示す図であり、偏や帝、
冠等の部首や多くの漢字に出現する部分パターンに番号
を対応させている。第27図は多くの文字に出現するス
トロークの例を示す図であり、各ストロークに対して番
号を対応させている。これらのストロークは文字を構成
している基本的なストロークなので、以後、基本ストロ
ークと呼ぶ。
Figure 26 is a diagram showing an example of partial patterns.
Numbers correspond to radicals such as crowns and partial patterns that appear in many kanji. FIG. 27 is a diagram showing an example of strokes that appear in many characters, and a number is associated with each stroke. Since these strokes are the basic strokes that make up characters, they will be referred to as basic strokes hereinafter.

第28図は第25図の部分パターン辞書部257の構造
を示す図である。部分パターン辞書部257は多数の部
分パターンブロック257aの集合であり、各部分パタ
ーンブロックは部分パターン番号、部分パターンの画数
、その部分パターンの階書体の部分パターン番号、部分
257b、切り出し情報から構成されている。部分には
、その部分パターンを構成している各ストロークの端点
の座標と第27図で示した基本ストローク27を表わす
番号が登録されている。
FIG. 28 is a diagram showing the structure of the partial pattern dictionary section 257 of FIG. 25. The partial pattern dictionary section 257 is a set of a large number of partial pattern blocks 257a, and each partial pattern block is composed of a partial pattern number, the number of strokes of the partial pattern, a partial pattern number of the font of the partial pattern, a portion 257b, and cutting information. ing. In each part, the coordinates of the end points of each stroke making up the part pattern and the number representing the basic stroke 27 shown in FIG. 27 are registered.

第29図は部分パターンブロック257aの一例であり
、「糸」に対応する部分パターンブロック257aであ
る。「12」は「糸」の部分パターン番号であり、「5
」は「糸」の画数、「11」は「糸」の接置体「糸」の
部分パターン番号であり、次の5個の情報には各ストロ
ークの始点の座標、終点の座標、概形を表わす番号を含
む部分257bが登録されている。最後の「0」は切り
出し情報であり、入力された文字パターンとこの部分パ
ターンとの比較判別では、入力された文字パターンから
筆順においてr始め」の5画を切り出して比較すること
を示している。もし、切り出し情報が「1」であれば、
入力された文字パターンから筆順において「終り」の5
画を切り出して比較する。第30図は第29図の部分2
57bの基になった部分パターンを図示したものであり
、すべてのストロークが文字枠の左半分にある。
FIG. 29 is an example of a partial pattern block 257a, which corresponds to "thread". "12" is the partial pattern number of "thread", and "5" is the partial pattern number of "thread".
" is the number of strokes of "thread", "11" is the partial pattern number of "thread", which is attached to "thread", and the next five pieces of information include the coordinates of the starting point of each stroke, the coordinates of the ending point, and the outline. A portion 257b including a number representing . is registered. The last "0" is cutting information, and indicates that when comparing and determining the input character pattern and this partial pattern, 5 strokes starting from "r" in the stroke order are extracted from the input character pattern and compared. . If the extraction information is “1”,
5 of "end" in the stroke order from the input character pattern
Cut out the images and compare them. Figure 30 is part 2 of Figure 29.
This diagram illustrates the partial pattern on which 57b is based, and all strokes are in the left half of the character frame.

第31図は部分パターン判別部の処理手順を示すフロー
チャートであり、第32図は部分パターンの判別におい
て利用する各基本ストローク間の相違度表の一部を示す
図である。以下、第31図に従って動作を説明する。部
分パターン判別部254はステップ5310で特徴抽出
部253 h)ら入力された文字パターンの特徴を入力
すると、辞書部256の部分パターン辞書部257をア
クセスし、ステップ5311へ進む。ステップ5311
では比較していない部分パターンがまだあるかどうかを
判別し、ある場合はステップ5312へ進む。ステップ
5312では比較すべき部分パターンの各情報を入力し
、ステップ5313でその画数を切り出し情報により入
力された文字パターンから対応する情報を切り出し、ス
テップ5314で入力された文字パターンと部分の各ス
トロークの端点間の距踵の和、およびストローク間相違
度の和を求め、この2つの値の和を部分ストロークの画
数で割った値をこの部分パターンの入力された文字パタ
ーンに対する相違度とする。このようにして、1つの部
分パターンの相違度が求まるとステップ5310へ戻る
。ステップ5311で入力された文字パターンとすべて
の部分パターンとの比較が終了したと判断された場合は
ステップ5314へ進み、最も相違度の小さな部分パタ
ーン3個を候補部分パターンとして出力する。
FIG. 31 is a flowchart showing the processing procedure of the partial pattern discrimination section, and FIG. 32 is a diagram showing a part of the difference table between basic strokes used in discrimination of partial patterns. The operation will be explained below according to FIG. 31. When the partial pattern determination section 254 inputs the character pattern features input from the feature extraction section 253h) in step 5310, it accesses the partial pattern dictionary section 257 of the dictionary section 256, and proceeds to step 5311. Step 5311
Then, it is determined whether there are any partial patterns that have not been compared, and if there are, the process advances to step 5312. In step 5312, each information of the partial pattern to be compared is input, in step 5313, the corresponding information is extracted from the input character pattern using the cutting information, and in step 5314, the input character pattern and each stroke of the part are The sum of distances between end points and the sum of differences between strokes are calculated, and the sum of these two values divided by the number of partial strokes is determined as the difference of this partial pattern with respect to the input character pattern. In this way, once the degree of difference of one partial pattern is determined, the process returns to step 5310. If it is determined in step 5311 that the comparison between the input character pattern and all partial patterns has been completed, the process proceeds to step 5314, and the three partial patterns with the smallest degree of difference are output as candidate partial patterns.

第33図は本実施例の文字辞書部258の一例の構成を
示す図であり、文字辞書部258は画数毎に分割され、
さらに、各画数辞書部258aは部分パターン毎にまと
まっている。例えば、第33図に示すように、「シ」を
含む文字は1つのグループを形成し、「糸」を含む文字
は別の1つのグループを形成している。各グループの先
頭にはその部分パターン番号が格納されている。
FIG. 33 is a diagram showing the configuration of an example of the character dictionary section 258 of this embodiment, and the character dictionary section 258 is divided by the number of strokes,
Furthermore, each stroke number dictionary section 258a is organized for each partial pattern. For example, as shown in FIG. 33, characters including "shi" form one group, and characters including "thread" form another group. At the beginning of each group, its partial pattern number is stored.

第34図は文字判別部の処理手順を示すフローチャート
である。文字判別部255はステップ5340で部分パ
ターン判別部254から入力された文字パターンの特徴
と候補部分パターンを入力する。ステップ5341では
まだ判別していない部分パターンのグループがあるかど
うかの判別を行い、ある場合はステップ5342へ進む
。ステップ5342では、文字辞書部258をアクセス
し、部分パターンを入力し、ステップ5343でその部
分パターンが候補部分パターンに含まれているかどうか
を判別し、含まれている場合はステップ5344へ進み
、この部分パターンのグループに属する文字パターンと
入力された文字パターンとの比較を行いステップ534
1へ戻る。
FIG. 34 is a flowchart showing the processing procedure of the character discrimination section. In step 5340, the character discriminator 255 receives the characteristics of the character pattern and candidate partial patterns input from the partial pattern discriminator 254. In step 5341, it is determined whether there is a group of partial patterns that have not yet been determined, and if there is, the process advances to step 5342. In step 5342, the character dictionary section 258 is accessed and a partial pattern is input, and in step 5343 it is determined whether or not the partial pattern is included in the candidate partial patterns. A comparison is made between the character pattern belonging to the group of partial patterns and the input character pattern in step 534.
Return to 1.

ステップ5343で部分パターンが候補部分パターンに
含まれていなければステップ5345へ進み、その部分
パターンのグループに含まれる文字パターンをスキップ
し、ステップ5341へ戻る。ステップ5344で比較
を行うか、ステップ5345で文字パターンをスキップ
することにより、次の部分パターンのグループに到達す
る1画数辞書部258aの終りに到達すると、ステップ
5341で画数辞書部258aの終りを判断して終了す
る。他の画数辞書部258aについて比較する場合は、
再びステップ5340より開始する。
If the partial pattern is not included in the candidate partial patterns in step 5343, the process advances to step 5345, where character patterns included in the group of partial patterns are skipped, and the process returns to step 5341. When the end of the stroke count dictionary section 258a that reaches the next subpattern group is reached by performing a comparison in step 5344 or by skipping character patterns in step 5345, the end of the stroke count dictionary section 258a is determined in step 5341. and exit. When comparing other stroke number dictionary sections 258a,
The process starts again at step 5340.

尚、木実δに例において、部分パターン判別部は3個の
候補部分パターンを出力しているが、必ずしも3個であ
る必要はなく、1個あるいは5個というように少数個で
あれば良い。又、多くとも3個以内というようにある一
定侶以内の候補部分パターンを出力するようにしてもよ
い。さらに、入力された文字パターンの特徴と、各部分
パターン辞書部との比較において、入力された文字パタ
ーンがすべての部分パターンと大きく異なる、すなわち
、相違度が非常に大きい場合は候補部分パターンが無い
ことを出力し、そのような場合、文字判別部は入力され
た文字パターンをすべての文字パターンと比較するよう
にしてもよい。又、第1実施例と第2実施例とを組み合
わせて、それぞれの文字によって、より認識率の高く、
認識時間の短い方を選ぶような構成も考えられる。この
場合は候補部分パターンとして、相違度が所定のしきい
値より小さいものを選び、小さいものがない場合は、第
1実施例の比較をする等の組み合わせが考えられる。
In addition, in the example for tree fruit δ, the partial pattern discriminator outputs three candidate partial patterns, but it does not necessarily have to be three, and it may be as long as a small number, such as one or five. . Alternatively, a certain number of candidate partial patterns, such as three or less at most, may be output. Furthermore, when comparing the characteristics of the input character pattern with each partial pattern dictionary section, if the input character pattern is significantly different from all the partial patterns, that is, the degree of difference is very large, there is no candidate partial pattern. In such a case, the character discrimination unit may compare the input character pattern with all the character patterns. In addition, by combining the first and second embodiments, each character can have a higher recognition rate.
A configuration may also be considered in which the one with the shorter recognition time is selected. In this case, a combination can be considered, such as selecting as candidate partial patterns those whose degree of difference is smaller than a predetermined threshold value, and if there is no smaller pattern, comparing the first example.

以上説明したように、辞書部に文字辞書部とともに部分
パターン辞書部を設け、部分パターン辞書部に各部分パ
ターンの少なくともストローク数と、各ストロークの端
点の座標と、ストロークの形を表わす情報と、1文字の
情報の中からその部分パターンを切り出すための情報を
登録し、入力された文字パターンに対して部分パターン
辞書部を用いて部分パターン判別を行い、その結果によ
って比較すべき文字パターンを選別し、入力された文字
パターンの特徴と文字パターンとの比較を行うことによ
り、入力された文字パターンの特徴と文字パターンとの
比較回数が減少し、認識時間の短いパターン認識装置が
実現される。ひいては、認識文字種の拡大が可能になる
一方、多くの文字パターンを登録可能となる他、1文字
パターンとの比較にかかる処理時間が問題にならなくな
るため、画数や筆順などの制限の緩和された情報処理装
置が可能になる。
As explained above, the dictionary section is provided with a partial pattern dictionary section together with a character dictionary section, and the partial pattern dictionary section includes at least the number of strokes of each partial pattern, the coordinates of the end points of each stroke, and information representing the shape of the stroke. Register information for cutting out a partial pattern from one character's information, use the partial pattern dictionary section to identify partial patterns for the input character pattern, and select character patterns to be compared based on the results. However, by comparing the characteristics of the input character pattern with the character pattern, the number of comparisons between the characteristics of the input character pattern and the character pattern is reduced, and a pattern recognition device with short recognition time can be realized. As a result, it becomes possible to expand the number of recognized characters, register many character patterns, and eliminate the processing time required for comparison with single character patterns, which eases restrictions such as the number of strokes and stroke order. Information processing equipment becomes possible.

尚、本実施例においては、説明を記号1図形を含む文字
パターンについて行ったが、音声3画像等のパターン認
識においても、まとまりを持った部分パターンへの分割
や出現率の高い部分パターンの予備判断等の技術思想は
広く利用できる。
In this example, the explanation was given for a character pattern including one symbol, one figure, but in pattern recognition of audio, three images, etc., division into cohesive subpatterns and backup of subpatterns with a high occurrence rate are also useful. Technical ideas such as judgment can be widely used.

[発明の効果] 本発明により、パターン作成時の筆順変動を十分に考慮
した上で、パターンを部分パターンに分割して認識し、
相違の程度が所定以上になった場合には、比較の途中で
あっても他のパターンとの比較に移ることにより、認識
率が高く、かつ認識時間の短いパターン認識装置を提供
できる。
[Effects of the Invention] According to the present invention, a pattern is divided into partial patterns and recognized after fully considering variations in stroke order during pattern creation.
When the degree of difference exceeds a predetermined value, the pattern recognition device moves to comparison with another pattern even in the middle of the comparison, thereby providing a pattern recognition device with a high recognition rate and short recognition time.

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

第1図(a)は第1実施例のパターン認識装置の構成図
、 第1図(b)は文字判別部の構成図、 第2図は辞書部の構造を示す図、 第3図(a)、(b)は「思」の文字ブロックの構造を
示す図、 第4図は措置の種々な筆順の「思」を示す図、第5図(
a)は措置の「思」の比較結果を示す図、 第5図(b)は相違度を表わす重み付けを示す図、 第6図は2分割の場合の処理手順を示すフローチャート
、 第7図は続は書きされた「思」の筆記例を示す図、 第8図(a)は続は書きされた「思」の入力された文字
パターンと辞書部の文字パターンとの比較結果を示す図
、 第8図(b)は相違度を表わす重み付けを示す図、 第9図は「数」の筆記例を示す図、 第10図(a)、(b)は「数」の文字ブロックの構成
図、 第11図は「数」の入力された文字パターンと辞書部の
文字パターンとの比較結果を示す図、第12図は任意の
分割の場合の処理手順のフローチャート、 第13図は辞書部に登録されている「思」と「計」の筆
記例を示す図、 第14図は「思」と「計」のストローク対応を示す図、 第15図は相違度により処理を中断する場合の入力され
た文字パターンと辞書部の文字パターンとの処理手順を
示すフローチャート、 第16図は基本ストローク表の一例を示す図、第17図
は「何」′の文字パターンの一例を示す図、 第18図は「何」の筆記例を示す図、 第19図、第20図は認識手順を示すフローチャート、 第21図は基本ストローク間相違度表の一部を示す図、 第22図は「何」の筆記例を示す図、 第23図は第22図の[何」の筆記例の各ストロークの
基本ストローク番号と始終点の座標を示す図、 第24図は基本ストロークに分解した場合の入力された
文字パターンと辞書部の文字パターンのストロークの対
応関係を示す図、 第25図は第2実施例のパターン認識装置の構成図、 T526図は部分パターンの側口、 第27図は基本ストロークの側口、 第28図は部分パターン辞書部の構成図、第29図は部
分パターン辞書部に登録されている「糸」の部分パター
ンの一例図、 第30図は「糸」の部分パターンを示した図、第31図
は部分パターン判別部の処理手順を示すフローチャート
、 第32図は基本ストローク間の相違皮表の一部を示す図
、 第33図は文字辞書部の構成を示す図、第34図は文字
判別部の処理手順を示すフローチャートである。 図中、1・・・タブレット、2・・・入力ペン、3・・
・特徴抽出部、4・・・文字判別部、5・・・辞書部、
41・・・CPU、42・・・ROM、43・・・RA
M、251・・・情報入力部、252・・・入力ペン、
253・・・特徴抽出部、254・・・部分パターン判
別部、255・・・文字判別部、256・・・辞書部、
257・・・部分パターン辞書部、258・・・文字辞
書部、254a。 255a・・・ROMである。 特許出願人  キャノン株式会社 第1図(a) 第2図 第3図(a)    第3図(b) 第4図 1)      1u゛ 第5図(G) 入n ムn 第6図 第8図(G) 第8図(b) 第11図 第13図 第14図 第16図 第17図 第18図 第19図 第20図 第21図 第23図 第25図 第26図 第28図 第29  図 第30図 第31図 第32図 第33図 第34図
FIG. 1(a) is a block diagram of the pattern recognition device of the first embodiment, FIG. 1(b) is a block diagram of the character discrimination section, FIG. 2 is a diagram showing the structure of the dictionary section, and FIG. 3(a) is a block diagram of the pattern recognition device of the first embodiment. ), (b) is a diagram showing the structure of the character block for ``shi'', Figure 4 is a diagram showing ``shi'' in various stroke orders of measures, and Figure 5 (
Figure 5 (b) is a diagram showing the weighting that represents the degree of difference, Figure 6 is a flowchart showing the processing procedure in the case of two divisions, and Figure 7 is a diagram showing the comparison results of the "thoughts" of the measures. The following is a diagram showing a handwritten example of the written ``shi'', and Figure 8 (a) is a diagram showing the comparison result between the input character pattern of the written ``shi'' and the character pattern in the dictionary section. Figure 8 (b) is a diagram showing the weighting representing the degree of difference, Figure 9 is a diagram showing an example of writing "number", and Figures 10 (a) and (b) are configuration diagrams of the character block of "number". , Figure 11 is a diagram showing the comparison result between the input character pattern of "Number" and the character pattern of the dictionary section, Figure 12 is a flowchart of the processing procedure in case of arbitrary division, and Figure 13 is a diagram showing the comparison result of the input character pattern of "Number" with the character pattern of the dictionary section. Figure 14 shows an example of the registered writing of "shi" and "ke", Figure 14 shows the stroke correspondence between "shi" and "ke", Figure 15 shows the input when interrupting the process due to the degree of difference. Figure 16 is a diagram showing an example of a basic stroke table; Figure 17 is a diagram showing an example of a character pattern for 'What'; The figure shows an example of writing ``What''. Figures 19 and 20 are flowcharts showing the recognition procedure. Figure 21 shows a part of the basic stroke difference table. Figure 22 shows ``What''. Figure 23 is a diagram showing the basic stroke number and coordinates of the start and end points of each stroke in the writing example of 'What' in Figure 22. Figure 24 is an example of input when broken down into basic strokes. Figure 25 is a block diagram of the pattern recognition device of the second embodiment, Figure T526 is the side opening of the partial pattern, and Figure 27 is the basic stroke. Side entrance, Figure 28 is a configuration diagram of the partial pattern dictionary section, Figure 29 is an example of the partial pattern of "thread" registered in the partial pattern dictionary section, and Figure 30 shows the partial pattern of "thread". FIG. 31 is a flowchart showing the processing procedure of the partial pattern discriminator; FIG. 32 is a diagram showing a part of the difference surface between basic strokes; FIG. 33 is a diagram showing the configuration of the character dictionary section; FIG. 34 is a flowchart showing the processing procedure of the character discrimination section. In the figure, 1...tablet, 2...input pen, 3...
・Feature extraction unit, 4...Character discrimination unit, 5...Dictionary unit,
41...CPU, 42...ROM, 43...RA
M, 251... Information input section, 252... Input pen,
253...Feature extraction unit, 254...Partial pattern discrimination unit, 255...Character discrimination unit, 256...Dictionary unit,
257...Partial pattern dictionary section, 258...Character dictionary section, 254a. 255a...ROM. Patent applicant: Canon Co., Ltd. Figure 1 (a) Figure 2 Figure 3 (a) Figure 3 (b) Figure 4 (1) Figure 5 (G) Figure 6 Figure 8 (G) Figure 8 (b) Figure 11 Figure 13 Figure 14 Figure 16 Figure 17 Figure 18 Figure 19 Figure 20 Figure 21 Figure 23 Figure 25 Figure 26 Figure 28 Figure 29 Figure 30 Figure 31 Figure 32 Figure 33 Figure 34

Claims (6)

【特許請求の範囲】[Claims] (1)入力されたパターンと予め登録されているパター
ンとを比較して、前記入力されたパターンを認識するパ
ターン認識装置において、入力されたパターンと予め登
録されているパターンを1つ又は複数の所定の部分パタ
ーンに分解して、対応する部分パターンを比較する比較
手段と、該比較手段の比較結果に基づいて前記入力され
たパターンを認識する認識手段と、前記比較手段による
比較結果を表す値が所定の許容値を越える場合に、比較
中のパターンとの比較を終了させる終了手段とを備える
ことを特徴とするパターン認識装置。
(1) In a pattern recognition device that recognizes the input pattern by comparing the input pattern and a pre-registered pattern, the input pattern and the pre-registered pattern are combined into one or more a comparison means for decomposing into predetermined partial patterns and comparing corresponding partial patterns; a recognition means for recognizing the inputted pattern based on the comparison result of the comparison means; and a value representing the comparison result by the comparison means. 1. A pattern recognition device comprising: termination means for terminating a comparison with a pattern being compared when the value exceeds a predetermined tolerance value.
(2)パターンは、記号及び図形を含む文字パターンで
あることを特徴とする特許請求の範囲第1項記載のパタ
ーン認識装置。
(2) The pattern recognition device according to claim 1, wherein the pattern is a character pattern including symbols and figures.
(3)予め登録されているパターンは、パターンを識別
するコードと、パターンを分割する分割情報と、パター
ンのストロークを表すストローク情報とを含むことを特
徴とする特許請求の範囲第1項記載のパターン認識装置
(3) The pre-registered pattern includes a code for identifying the pattern, division information for dividing the pattern, and stroke information representing the strokes of the pattern. Pattern recognition device.
(4)比較手段は、予め登録されているパターンに含ま
れる分割情報に基づいて、入力されたパターンと予め登
録されているパターンとを部分パターンに分割して、所
定の順序で部分パターンを比較することを特徴とする特
許請求の範囲第1項記載のパターン認識装置。
(4) The comparison means divides the input pattern and the pre-registered pattern into partial patterns based on division information included in the pre-registered pattern, and compares the partial patterns in a predetermined order. A pattern recognition device according to claim 1, characterized in that:
(5)部分パターンは、筆順の誤りによっても順序の変
化しない、1つ又は複数のストロークを含むパターンで
あることを特徴とする特許請求の範囲第1項記載のパタ
ーン認識装置。
(5) The pattern recognition device according to claim 1, wherein the partial pattern is a pattern including one or more strokes whose order does not change even if the stroke order is incorrect.
(6)認識手段は、入力されたパターンと予め登録され
ているパターンとのストロークの違いを表す値と、所定
の許容値との大小でパターンの異同を認識することを特
徴とする特許請求の範囲第1項記載のパターン認識装置
(6) The recognition means recognizes the difference between the patterns based on the magnitude of a predetermined tolerance value and a value representing the difference in stroke between the input pattern and the pre-registered pattern. The pattern recognition device according to scope 1.
JP61113791A 1986-05-20 1986-05-20 Pattern recognition device Expired - Fee Related JP2505417B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61113791A JP2505417B2 (en) 1986-05-20 1986-05-20 Pattern recognition device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61113791A JP2505417B2 (en) 1986-05-20 1986-05-20 Pattern recognition device

Publications (2)

Publication Number Publication Date
JPS62271191A true JPS62271191A (en) 1987-11-25
JP2505417B2 JP2505417B2 (en) 1996-06-12

Family

ID=14621177

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61113791A Expired - Fee Related JP2505417B2 (en) 1986-05-20 1986-05-20 Pattern recognition device

Country Status (1)

Country Link
JP (1) JP2505417B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015069256A (en) * 2013-09-27 2015-04-13 株式会社日立製作所 Character identification system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6011978A (en) * 1983-07-01 1985-01-22 Hitachi Ltd Recognizing and processing system for on-line handwritten character
JPS60254384A (en) * 1984-05-31 1985-12-16 Fujitsu Ltd Corresponding method of stroke

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6011978A (en) * 1983-07-01 1985-01-22 Hitachi Ltd Recognizing and processing system for on-line handwritten character
JPS60254384A (en) * 1984-05-31 1985-12-16 Fujitsu Ltd Corresponding method of stroke

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015069256A (en) * 2013-09-27 2015-04-13 株式会社日立製作所 Character identification system

Also Published As

Publication number Publication date
JP2505417B2 (en) 1996-06-12

Similar Documents

Publication Publication Date Title
US7437001B2 (en) Method and device for recognition of a handwritten pattern
EP0632403B1 (en) Handwritten symbol recognizer and method for recognising handwritten symbols
JPS60217477A (en) Handwritten character recognizing device
JPH02266485A (en) Information recognizing device
JPS62271086A (en) Pattern recognizing device
JPS62271191A (en) Pattern recognition device
JPS62271087A (en) Pattern recognizing device
JPS62271088A (en) Pattern recognizing device
JP2671985B2 (en) Information recognition method
KR0126800B1 (en) Hand-written korean character, on-line recognizing apparatus and its method
JP2671984B2 (en) Information recognition device
JPS6186883A (en) Recognition system for on-line handwritten character
JPS6224382A (en) Method for recognizing handwritten character
JPH07107698B2 (en) Character recognition method
KR100258934B1 (en) Apparatus and method for recognizing english word on line by selecting alphabet from the alphabet groups
JPH045231B2 (en)
JP2865286B2 (en) Online handwritten character recognition device
KR100204618B1 (en) Method and system for recognition of character or graphic
JPS6083185A (en) On-line character recognizing system
JP2851865B2 (en) Character recognition device
JP4143148B2 (en) Character recognition device
Yamasaki Writing box free recognition of online handwritten Japanese characters
JPH03502841A (en) character recognition device
JPH04336686A (en) Handwritten character recognizing device
JPS6186881A (en) Recording system for on-line handwritten character

Legal Events

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