[go: up one dir, main page]

JPS62271086A - Pattern recognizing device - Google Patents

Pattern recognizing device

Info

Publication number
JPS62271086A
JPS62271086A JP61113788A JP11378886A JPS62271086A JP S62271086 A JPS62271086 A JP S62271086A JP 61113788 A JP61113788 A JP 61113788A JP 11378886 A JP11378886 A JP 11378886A JP S62271086 A JPS62271086 A JP S62271086A
Authority
JP
Japan
Prior art keywords
pattern
character
stroke
strokes
partial
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.)
Pending
Application number
JP61113788A
Other languages
Japanese (ja)
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 JP61113788A priority Critical patent/JPS62271086A/en
Publication of JPS62271086A publication Critical patent/JPS62271086A/en
Pending legal-status Critical Current

Links

Landscapes

  • Character Discrimination (AREA)

Abstract

(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。
(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.

Description

【発明の詳細な説明】 3、発明の詳細な説明 [産業上の利用分野] 本発明はパターン認識装置、特に手書文字、記号、図形
等の筆跡情報をもとにして文字、記号、図形等を認識す
るパターン認識装置に関する。
[Detailed Description of the Invention] 3. Detailed Description of the Invention [Field of Industrial Application] The present invention relates to a pattern recognition device, in particular, 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. This has the disadvantage that the rate of misrecognition increases.

入カバターンを認識するという点において、データタブ
レット等からペンの座標とペンのアップダウン情報を人
力して認識するオンラインパターン認識の大きな特徴の
1つは筆順情報を利用できることである。筆順はパター
ン入力者によって異なり、必ずしも−通りとは限らない
が、筆順情報を利用することで、認識率が高く、かつ認
識時間の短い文字認識が完成するのならば、筆順情報も
大いに利用すべきである。
In terms of recognizing input cover patterns, one of the major features of online pattern recognition, which manually recognizes 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.

[発明が解決しようとする問題点] 本発明は、パターン作成時の筆順変動を十分に考慮した
上で、パターンを部分パターンに分割して認識すること
により、認識率が高く、かつ認識時間の短いパターン認
識装置を提供する。
[Problems to be Solved by the Invention] The present invention achieves a high recognition rate and a short recognition time by dividing a pattern into partial patterns and recognizing them after fully considering stroke order variations during pattern creation. To provide a short pattern recognition device.

[問題点を解決するための手段] この問題点を解決するための一手段として、本発明のパ
ターン認識装置は、人力されたパターンと予め登録され
てい、るパターンとを、筆順の誤りによっても順序がほ
とんど変化しない1つ又は複数の部分パターンに分割し
て、対応する部分パターン同志を比較する比較手段と、
該比較手段の比較結果に基づいて前記入力されたパター
ンを認識する認識手段とを備える。
[Means for Solving the Problem] As a means for solving this problem, the pattern recognition device of the present invention distinguishes between a manually created pattern and a pre-registered pattern even if the stroke order is incorrect. Comparison means for dividing into one or more partial patterns whose order hardly changes and comparing corresponding partial patterns;
and recognition means for recognizing the input pattern based on the comparison result of the comparison means.

[作用] かかる構成において・、入力されたパターンと予め登録
されているパターンとが、順序がほとんど変化しない部
分パターンに分割されて、部分パターン同志が比較され
ることによりパターンが認識される。
[Operation] In this configuration, the input pattern and the pre-registered pattern are divided into partial patterns whose order hardly changes, and the pattern is recognized by comparing the partial patterns.

(以下余白) [実施例] 以下、添付図面に従って本発明の実施例を詳細に説明す
る。
(The following is a margin) [Example] Hereinafter, an example 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へ送る0文字判別部4では
入力された文字パターンから抽出された特徴を辞書部5
に予め登録されている各文字の文字パターンと比較して
、類似度を求め、最も類似度の高い(又は相違度の低い
)文字を認識結果として出力する。尚、文字パターンに
は、記号1図形等も含まれる。第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. The zero character discriminator 4 extracts the features extracted from the input character pattern and sends them to the character discriminator 4.
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, 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 stroke classes. 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,
It is a diagram showing that it is composed of stroke information 55.

第3図(a)は1つの文字ブロック52の例であり、「
思」の文字ブロックの構造を示している。  r3 b
 57Jは「思」の文字コード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''. r3 b
57J is the character code 53 for "thought", and "5" is "
"I think" is the division information 54 indicating that the processing is divided into the first five strokes and the latter four strokes, and the next nine blocks are "
Stroke information 55 for "I think" 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に
登録するか、あるいは筆順を自由にして入カバターンと
「思」のすべてのパターンとの比較を行うか2通りが考
えられているが、前者では、辞書部5の容量が非常に大
きくなるので、現実的ではなく、後者では不必要な比較
を行うため、認識時間が長くなったり、かえって誤った
対応をすることがあった。
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 ``田'' fluctuates widely, 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 orders shown at 41, 42, and 43. However, do not write down ``kokoro'' and then ``den,'' or write ``kokoro'' in the middle of ``den,'' and then write the rest of ``den'' in the middle.
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: register ``shi'' in various stroke orders in the dictionary section 5 while restricting the stroke order, or set the stroke order freely and compare the entered cover patterns with all patterns of ``shi''. However, in the former case, the capacity of the dictionary section 5 becomes extremely large, which is not practical, and in the latter case, unnecessary comparisons are made, which increases the recognition time and may even lead to incorrect responses. .

第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 allowable value is 100, the fifth
In the example of Figure (a), the manually created character pattern is written in the incorrect stroke order of 42 in Figure 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
より、入力された文字パターンを受信した後、ステップ
361で比較の終了していない文字ブロックがあるかど
うかの判別を行い、無い場合は処理を終了する。まだ比
較していない文字ブロックがある場合は、ステップS6
2でその文字ブロック52を辞書部5から人力し、特に
ステップS63では文字ブロック52から分割情報54
を取り出す、ステップ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. In step S60, the feature extraction unit 3
After receiving the input character pattern, it is determined in step 361 whether there is any character block for which comparison has not been completed, and if there is no character block, the process is terminated. If there is a character block that has not been compared yet, step S6
In step S63, the character block 52 is manually extracted from the dictionary section 5, and in particular, in step S63, the division information 54 is extracted from the character block 52.
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 patterns and the character patterns 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, the character code 53 is output in step S67, and then the process returns to step S61. If it cannot be determined that the patterns are the same, the process immediately returns to step S61. In step S67, when the character code is output and the difference value at that time is set as the allowable value for subsequent determination, one character can finally be found. Also, if the allowable value is greater than or equal to the predetermined value,
You may also consider communicating human errors to the scribe.

本実施例ではタブレットに対して人力ペンで筆記してい
るが、圧力を感知、するタブレットを用い、指で筆記す
るようにしても良い。又、比較結果の判別方法は重み付
けには限らない。更に、入力された文字の画数により、
本例では9画から比較を始めると処理時間が短い。
In this embodiment, writing is performed using a human pen on a tablet, but writing may be performed using a finger using a tablet that senses pressure. Further, 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, the processing time is short if the comparison starts from the 9th stroke.

ところが、筆順の誤り以外に、続は書きをすることも考
えられる。そこで、次に文字が続は書きされた場合の実
施例のパターン認識装置の対応を説明する。
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 writing ``shi'', and 70 shows ``shi'' written in the correct stroke order and with measures, while 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. The first five strokes of the human-entered character pattern are compared with the first five strokes of the dictionary character pattern, and the last four strokes of the input character pattern are compared with the last four strokes of the dictionary character pattern. 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.

例えば、「数」という文字は「米」と「女」と「欠」に
分割した方が、認識率が高く、認識時間が短い認識が可
能である。そこで、次に文字を任意の数に分割するパタ
ーン認識装置を説明する。
For example, if the character ``number'' is divided into ``rice'', ``woman'', and ``miss'', 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個のブロックには「数」のストローク情
報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 division information 54 indicating that the information is divided into ``1 girl'' and the remaining ``missing''. In the next 13 blocks, "number" stroke information 55 is stored in 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は誤った筆順で筆記
されている上、「欠」の部分は、一部分、続は書きされ
た筆記例である。このように「数」を構成する「米」、
1女」、「欠」はそれぞれ種々な筆順で筆記される。し
かし、「米」1女」、「欠」の順で筆記されることがほ
とんどである。
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 What follows is a written example. In this way, "rice" constitutes "number",
``1女'' and ``missing'' are each written in various stroke orders. However, most of the time they are written in the order of ``rice'' and ``missing''.

第11図はr数」の辞書部の文字パターンと人力された
文字パターンの比較結果を示す図である。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 part of "r number" and the character pattern created manually. 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では全ストロークの比較が終了しかを判断して
、終了していなければステップ3125〜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. In step 5125, the strokes of the manually created character pattern and the previously registered character pattern are compared. In step 5126, it is determined whether the comparison of all strokes is completed. , if not completed, repeat steps 3125-126. 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 start 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画である「田」
と筆記例である「計」の始めの5wiである「τ」の比
較を行う。第14図は「思」と「計」のストローク対応
を示す図であるが、「田」の各ストロークは文字枠の上
半分に存在するのに対し、「r」の各ストロークは文字
枠の左半分に存在し、始めの5画同志の相違度は大きく
、許容値より大きくなる。相違度が許容値より大きくな
ったので、残りの「心」と「口↑」の比較は行わない。
In comparing these two characters, ``田'' is the first five strokes of ``し''.
A comparison will be made between ``τ'' and ``τ'', which is the first 5wi of the written example ``MET''. 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 ``r'' 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 and exceeds the allowable value. Since the degree of dissimilarity has become larger than the allowable value, the remaining "heart" and "mouth↑" are not compared.

第15図は相違度により処理を中断する場合の処理手順
を示すフローチャートである。ステップ5150で、特
徴抽出部3より入力された文字パターンを受信し、その
画数から比較する文字の画数を決定する。各文字ブロッ
ク52の比較ではステップ5151で終りかどうかの判
別を行い、終りの場合は処理を終了する。終りでない場
合はステップ5152でステップ5150で決定された
画数の文字ブロックを読み込み、ステップ5153でそ
の中から特に分割情報54を取り出す。ステップ515
4では分割情報54に従って文字パターンを分割し、ス
テップ5155で人力された文字パターンと予め登録さ
れている文字パターンのストロークの比較を行う。ステ
ップ5156では、ステップ5155での比較結果の相
違度を加算する。ステップ5157では、ステップ31
56での加算結果が許容値以下かが判定され、許容値を
越えた場合はその文字ブロックに対する比較を中断して
、ステップ5151に戻り次の文字ブロックとの比較に
Bる。ステップ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, particularly the division information 54 is extracted from it. Step 515
In step 4, the character pattern is divided according to the division information 54, and in step 5155, the strokes of the manually created 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. In step 5157, step 31
It is determined whether the addition result in step 56 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 start 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 a character pattern manually created, by the number of strokes of a character pattern in a dictionary, or by the number of strokes of each character or part. In addition, when comparing the characteristics of a manually input character pattern with a character pattern 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 set to a permissible value, or 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 human-generated 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,92」、r8,47Jは「何」の第1画で
あるrノ」の基本ストローク番号、始点の座標、終点の
座標である。始点及び終点の座標は「何」の標準パター
ンに位置と大きさに正規化を施した後の各端点のx、y
座標値である。さらに、「7」、「22゜60」、r2
4,8」は「何」の第2画である「1」の基本ストロー
ク番号、始点の座標、終点の座標である。以下同様にス
トローク情報55が登録されている。前述のように分割
する場合は、文字コード53とストローク情報55の間
に分割情報54が登録されている。
r323 FJ is the character code 53 for "What". "6
", r36,92" and r8,47J are the basic stroke number, the coordinates of the starting point, and the coordinates of the ending point of "rノ" 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, 8'' are the basic stroke number, starting point coordinates, and ending point coordinates of ``1'', which is the second stroke of ``what''. 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 writing "What", which is an example of writing 183 in FIG. FIG. 23 shows the basic stroke number, starting point coordinates, and ending point coordinates of each stroke extracted from the writing example shown in FIG. 22 according to the stroke order. Note that for decomposition into basic strokes, it is conceivable to set the starting point of each stroke and the basic stroke to the same coordinates and select the basic stroke with the shortest distance between the end points.

第24図は第22図の人力された筆記例と第17図の文
字パターンの各ストロークの対応を示す図である。入力
された文字パターンに従い、辞書部の文字パターンの第
1ストロークと入力された文字パターンの各ストローク
との比較を行い、辞書部の文字パターンの第1ストロー
クには入力された文字パターンの第1ストロークが対応
したことを示している。以下同様である。人力された文
字パターンの第4ストロークは、辞書部の文字パターン
の第5ストロークと第6ストロークに対応している。ス
トローク情報が正しく対応しているため、入力された文
字パターンの「何」と辞書部の文字パターンの「何」の
相違度は比較的φさな値となり正しく認識される。
FIG. 24 is a diagram showing the correspondence between the handwritten example in FIG. 22 and each stroke of the character pattern in FIG. 17. According to the input character pattern, the first stroke of the character pattern in the dictionary section is compared with each stroke of the input character pattern, and the first stroke of the character pattern in the dictionary section is compared with the first stroke of the input character pattern. This indicates that the strokes corresponded. The same applies below. The fourth stroke of the human-written character pattern corresponds to the fifth and sixth strokes of the character pattern of the dictionary section. Since the stroke information corresponds correctly, the degree of difference between the input character pattern "what" and the dictionary part character pattern "what" becomes a relatively small value and is correctly recognized.

以上のように、基本ストロークのストロークの端点の座
標を利用することで、誤筆順文字や続は字でも正しいス
トローク対応を得ることが多く、高い認識率が得られる
。尚、本例は基本ストロークに分解して比較したが、文
字ストローク自身を比較する方法等も考えられる。
As described above, by using the coordinates of the stroke end points of the basic strokes, correct stroke correspondence is often obtained even for incorrect stroke order characters and continuation characters, resulting in a high recognition rate. 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
53では1文字分の人力された文字パターンに対して位
置と大きさの正規化を施し、ストロークの数、各ストロ
ークの端点の座標、各ストロークの概形等の特徴を抽出
し、部分パターン判別部254へ送る。部分パターン判
別部254では特徴抽出部253から送られた特徴を部
分パターン辞書部257に登録されている各部分パター
ンの特徴と比較して部分パターンの候補を求め、特徴抽
出部253から送られた入力された文字パターンの特徴
とともに、候補部分パターンを文字判別部255へ送る
。文字判別部255では、部分パターン判別部254か
ら送られる人力された文字パターンの特徴と候補部分パ
ターンに従い、候補部分パターンによって文字辞書部2
58に登録されている文字パターンの中から比較すべき
文字パターンを選別して入力された文字パターンの特徴
と文字パターンを比較し、最も相違度の小さい、あるい
は類似度の高い文字を認識結果として出力する。尚、部
分パターン判別部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 pen, 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 with the human pen 252, the coordinates of the pen and the up-down information of the pen are sent to the feature extraction unit 253.
53 normalizes the position and size of the human-generated character pattern for one character, extracts features such as the number of strokes, the coordinates of the end points of each stroke, and the outline of each stroke, and identifies partial patterns. 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. The character discrimination unit 255 uses the candidate partial patterns to determine the character dictionary unit 2 according to the human character pattern characteristics and candidate partial patterns sent from the partial pattern discrimination unit 254.
Select character patterns to be compared from among the character patterns registered in 58, compare the characteristics of the input character pattern with the character pattern, and select the characters with the smallest degree of difference or highest degree of similarity as the recognition result. Output. Note that the partial pattern discrimination unit 254 and the character discrimination unit 255 are
As in FIG. 25, it is composed of a CPU, ROM, and RAM, and processing programs are stored in the ROMs 254a and 255a shown in FIG.

第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 measure body 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」は切り
出し情報であり、人力された文字パターンとこの部分パ
ターンとの比較判別では、入力された文字パターンから
筆順において「始め」の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 the measure body "thread" of "thread", and the next five pieces of information contain the coordinates of the starting point, coordinates of the ending point, and outline of each stroke. A portion 257b including the representing number is registered. The last "0" is cutting information, and indicates that when comparing and determining the manually generated character pattern and this partial pattern, the "first" 5 strokes 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から人力された文字パターンの特徴を人力する
と、辞書部256の部分パターン辞書部257をアクセ
スし、ステップ5311へ進む。ステップ5311では
比較していない部分パターンがまだあるかどうかを判別
し、ある場合はステップ5312へ進む。ステップ53
12では比較すべき部分パターンの各情報を入力し、ス
テップ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 discrimination section 254 inputs the features of the character pattern manually input from the feature extraction section 253 in step 5310, it accesses the partial pattern dictionary section 257 of the dictionary section 256, and proceeds to step 5311. In step 5311, it is determined whether there are any partial patterns that have not been compared, and if there are, the process advances to step 5312. Step 53
In step 12, each piece of information on the partial pattern to be compared is input, in step 5313 the number of strokes is extracted, and corresponding information is cut out from the manually input character pattern using the information, and in step 5314, the input character pattern and the end point of each stroke of the part are The sum of the distances between the strokes and the sum of the degrees of dissimilarity between strokes are calculated, and the sum of these two values divided by the number of partial strokes is determined as the degree of dissimilarity 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図は文字判別部の処理手順を示すフローチャート
である0文字判別部255はステップ5340で部分パ
ターン判別部254から人力された文字パターンの特徴
と候補部分パターンを入力する。ステップ5341では
まだ判別していない部分パターンのグループがあるかど
うかの判別を行い、ある場合はステップ5342へ進む
。ステップ5342では、文字辞書部258をアクセス
し、部分パターンを入力し、ステップ5343でその部
分パターンが候補部分パターンに含まれているかどうか
を判別し、含まれている場合はステラ7’5344へ進
み、この部分パターンのグループに属する文字パターン
と入力された文字パターンとの比較を行いステップ53
41へ戻る。
FIG. 34 is a flowchart showing the processing procedure of the character discriminating section. In step 5340, the character discriminating section 255 inputs the manually input character pattern features and candidate partial patterns from the partial pattern discriminating section 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 the partial pattern is included in the candidate partial patterns, and if it is included, the process advances to Stella 7'5344. , the character pattern belonging to this partial pattern group and the input character pattern are compared, and step 53
Return to 41.

ステップ5343で部分パターンが候補部分パターンに
含まれていなければステップ5345へ進み、その部分
パターンのグループに含まれる文字パターンをスキップ
し、ステップ5341へ戻る。ステップ5344で比較
を行うか、ステップ5345で文字パターンをスキップ
することにより、次の部分パターンのグループに到達す
る。画数辞書部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. The next group of subpatterns is reached by performing a comparison in step 5344 or by skipping character patterns in step 5345. When the end of the stroke number dictionary section 258a is reached, the end of the stroke number dictionary section 258a is determined in step 5341, and the process ends. When comparing other stroke number dictionary sections 258a,
The process starts again at step 5340.

尚、本実施例において、部分パターン判別部は3個の候
補部分パターンを出力しているが、必ずしも3個である
必要はなく、1個あるいは5個というように少数個であ
れば良い。又、多くとも3個以内というようにある一定
個以内の候補部分パターンを出力するようにしてもよい
。さらに、入力された文字パターンの特1攻と、各部分
パターン辞書部との比較において、人力された文字パタ
ーンがすべての部分パターンと大きく異なる、すなわち
、相違度が非常に大きい場合は候補部分パターンが無い
ことを出力し、そのような場合、文字判別部は入力され
た文字パターンをすべての文字パターンと比較するよう
にしてもよい。又、第1実施例と第2実施例とを組み合
わせて、それぞれの文字によって、より認識率の高く、
認識時間の短い方を遷ぶような構成も考えられる。この
場合は候補部分パターンとして、相違度が所定のし辣い
値より小さいものを選び、小さいものがない場合は、第
1実施例の比較をする等の組み合わせが考えられる。
In this embodiment, the partial pattern discriminator outputs three candidate partial patterns, but the number does not necessarily have to be three, and may be as few as one or five. Alternatively, a certain number of candidate partial patterns, such as three or less at most, may be output. Furthermore, in comparing the input character pattern special 1st attack with each partial pattern dictionary section, if the human-generated character pattern is significantly different from all partial patterns, that is, the degree of difference is very large, the candidate partial pattern is In such a case, the character discrimination unit may compare the input character pattern with all character patterns. In addition, by combining the first and second embodiments, each character can have a higher recognition rate.
It is also possible to consider a configuration in which the recognition time is shifted to the one with the shortest recognition time. 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 severe 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図形を含む文字
パターンについて行ったが、音声9画像等のパターン認
識においても、まとまりを持った部分パターンへの分割
や出現率の高い部分パターンの予僅判断等の技術思想は
広く利用できる。
In this example, the explanation was given for a character pattern that includes a symbol 1 figure, but in pattern recognition of audio 9 images, etc., division into cohesive subpatterns and prediction of subpatterns with a high occurrence rate are also possible. Technical ideas such as slight judgment can be widely used.

[発明の効果] 本発明により、パターン作成時の筆順変動を十分に考慮
した上で、パターンを部分パターンに分割して認識する
ことにより、認識率が高く、かつ認識時間の短いパター
ン認識装置を提供することができる。
[Effects of the Invention] The present invention provides a pattern recognition device with a high recognition rate and a short recognition time by dividing a pattern into partial patterns and recognizing them after fully considering stroke order variations during pattern creation. can be provided.

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

第1図(a)は第1実施例のパターン認識装置の構成図
、 第1図(b)は文字判別部の構成図、 第2図は辞書部の構造を示す図、 第3図(a)、(b)は「思」の文字ブロックの構造を
示す図、 第4図は積置の種々な筆順のr思」を示す図、第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実施例のパターン認識製蓋の構成図、 第26図は部分パターンの側口、 第27図は基本ストロークの側口、 第28図は部分パターン辞書部の構成図、第29図は部
分パターン辞書部に登録されている「糸」の部分パター
ンの一例図、 第30図は「糸」の部分パターンを示した図、第31図
は部分パターン判別部の処理手順を示すフローチャート
、 第32図は基本ストローク間の相違度表の一部を示す図
、 第33図は文字辞書部の構成を示す図、第34図は文字
判別部の処理手順を示すフローチャートである。 図中、1・・・タブレット、2・・・人力ベン、3・・
・特徴抽出部、4・・・文字判別部、5・・・辞書部、
41・・・CPU  、  42  ・  ROM、 
  43  ・  RAM、   251  ・・・情
報人力部、252・・・入力ベン、253・・・特徴抽
出部、254・・・部分パターン判別部、255・・・
文字判別部、256・・・辞書部、257・・・部分パ
ターン辞書部、258・・・文字辞書部、254a。 255a・・・ROMである。 特許出願人  キャノン株式会社 第1図(a) 第2図 第5図(a) 第5図(b) 第6図 第8図(a) 第8図(b) 第11図 第16図 第17図 第18図 第19図 第20図 第21図 第22図 第23図 第25図 第26図 第28図 第29  図 第30図 第31図 第32図 第33図
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 of ``shi'', Figure 4 is a diagram showing various stroke orders of ``r shi'', 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 human-generated character pattern of the written ``shi'' and the dictionary part's character pattern. 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 character pattern created manually for "number" and the character pattern in the dictionary section, Figure 12 is a flowchart of the processing procedure in the case of arbitrary division, and Figure 13 is a diagram showing the comparison result in 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. 16 is a diagram showing an example of a basic stroke table; FIG. 17 is a diagram showing an example of a character pattern for "What"; Figure 19 and Figure 20 are flowcharts showing the recognition procedure. Figure 21 is a diagram showing a part of the basic stroke dissimilarity table. 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 the input result when broken down into basic strokes. A diagram showing the correspondence between the strokes of the character pattern and the character pattern of the dictionary section, Figure 25 is a configuration diagram of the pattern recognition lid of the second embodiment, Figure 26 is the side opening of the partial pattern, and Figure 27 is the basic stroke. 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". 31 is a flowchart showing the processing procedure of the partial pattern discrimination section, FIG. 32 is a diagram showing a part of the difference table between basic strokes, and 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 diagram, 1...Tablet, 2...Manpowered Ben, 3...
・Feature extraction unit, 4...Character discrimination unit, 5...Dictionary unit,
41...CPU, 42・ROM,
43・RAM, 251...Information human resources department, 252...Input bench, 253...Feature extraction section, 254...Partial pattern discrimination section, 255...
Character discrimination section, 256... Dictionary section, 257... Partial pattern dictionary section, 258... Character dictionary section, 254a. 255a...ROM. Patent applicant: Canon Corporation Figure 1 (a) Figure 2 Figure 5 (a) Figure 5 (b) Figure 6 Figure 8 (a) Figure 8 (b) Figure 11 Figure 16 Figure 17 Figure 18 Figure 19 Figure 20 Figure 21 Figure 22 Figure 23 Figure 25 Figure 26 Figure 28 Figure 29 Figure 30 Figure 31 Figure 32 Figure 33

Claims (5)

【特許請求の範囲】[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 detected as having incorrect stroke order. a comparison means for dividing the partial patterns into one or more partial patterns whose order hardly changes even if the pattern is changed and comparing corresponding partial patterns; and a recognition means for recognizing the input pattern based on the comparison result of the comparison means. A pattern recognition device comprising:
(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項記載のパターン認識装置
(5) The recognition means recognizes the difference between the patterns based on the magnitude of a value representing the difference in stroke between the input pattern and the pre-registered pattern and a predetermined tolerance value. The pattern recognition device according to scope 1.
JP61113788A 1986-05-20 1986-05-20 Pattern recognizing device Pending JPS62271086A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61113788A JPS62271086A (en) 1986-05-20 1986-05-20 Pattern recognizing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61113788A JPS62271086A (en) 1986-05-20 1986-05-20 Pattern recognizing device

Publications (1)

Publication Number Publication Date
JPS62271086A true JPS62271086A (en) 1987-11-25

Family

ID=14621108

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61113788A Pending JPS62271086A (en) 1986-05-20 1986-05-20 Pattern recognizing device

Country Status (1)

Country Link
JP (1) JPS62271086A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8253553B2 (en) 2008-12-30 2012-08-28 Oneevent Technologies, Inc. Portable occupancy detection unit
US8749392B2 (en) 2008-12-30 2014-06-10 Oneevent Technologies, Inc. Evacuation system
US8970365B2 (en) 2008-12-30 2015-03-03 Oneevent Technologies, Inc. Evacuation system
US9679449B2 (en) 2008-12-30 2017-06-13 Oneevent Technologies, Inc. Evacuation system
US10657797B2 (en) 2013-07-15 2020-05-19 Oneevent Technologies, Inc. Owner controlled evacuation system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5882373A (en) * 1981-11-12 1983-05-17 Oki Electric Ind Co Ltd Online character recognizing method
JPS60254384A (en) * 1984-05-31 1985-12-16 Fujitsu Ltd Stroke correspondence method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5882373A (en) * 1981-11-12 1983-05-17 Oki Electric Ind Co Ltd Online character recognizing method
JPS60254384A (en) * 1984-05-31 1985-12-16 Fujitsu Ltd Stroke correspondence method

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8253553B2 (en) 2008-12-30 2012-08-28 Oneevent Technologies, Inc. Portable occupancy detection unit
US8749392B2 (en) 2008-12-30 2014-06-10 Oneevent Technologies, Inc. Evacuation system
US8970365B2 (en) 2008-12-30 2015-03-03 Oneevent Technologies, Inc. Evacuation system
US9129498B2 (en) 2008-12-30 2015-09-08 Oneevent Technologies, Inc. Evacuation system
US9189939B2 (en) 2008-12-30 2015-11-17 Oneevent Technologies, Inc. Evacuation system
US9633550B2 (en) 2008-12-30 2017-04-25 Oneevent Technologies, Inc. Evacuation system
US9679449B2 (en) 2008-12-30 2017-06-13 Oneevent Technologies, Inc. Evacuation system
US10032348B2 (en) 2008-12-30 2018-07-24 Oneevent Technologies, Inc. Evacuation system
US10529199B2 (en) 2008-12-30 2020-01-07 Oneevent Technologies, Inc. Evacuation system
US10657797B2 (en) 2013-07-15 2020-05-19 Oneevent Technologies, Inc. Owner controlled evacuation system

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 recognition device
US5659633A (en) Character recognition method utilizing compass directions and torsion points as features
JPS62271086A (en) Pattern recognizing device
JPS62271191A (en) Pattern recognition device
JPS62111369A (en) Symbol recognition method
JPS62271088A (en) Pattern recognizing device
JPS62271087A (en) pattern recognition device
JP2671984B2 (en) Information recognition device
JPH069064B2 (en) Handwriting recognition device
JPS6186883A (en) Online handwritten character recognition method
JP2671985B2 (en) Information recognition method
JPH0527916B2 (en)
JP3066530B2 (en) Online handwriting recognition device
JPH07107698B2 (en) Character recognition method
JP4143148B2 (en) Character recognition device
JPH045231B2 (en)
JPH04336686A (en) handwritten character recognition device
JP2953162B2 (en) Character recognition device
JPS6215681A (en) Recognizing system for on-line handwritten character
JPS61153787A (en) Information processing device
JPH07122889B2 (en) Pen input character recognition method
JPH02105982A (en) character recognition device