JPS61195478A - On-line character recognizing device - Google Patents

On-line character recognizing device

Info

Publication number
JPS61195478A
JPS61195478A JP60036890A JP3689085A JPS61195478A JP S61195478 A JPS61195478 A JP S61195478A JP 60036890 A JP60036890 A JP 60036890A JP 3689085 A JP3689085 A JP 3689085A JP S61195478 A JPS61195478 A JP S61195478A
Authority
JP
Japan
Prior art keywords
pattern
strokes
node
input pattern
distance
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
JP60036890A
Other languages
Japanese (ja)
Other versions
JPH0527912B2 (en
Inventor
Kazunaga Yoshida
吉田 和永
Takao Watanabe
隆夫 渡辺
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP60036890A priority Critical patent/JPS61195478A/en
Publication of JPS61195478A publication Critical patent/JPS61195478A/en
Publication of JPH0527912B2 publication Critical patent/JPH0527912B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Character Discrimination (AREA)

Abstract

PURPOSE:To reduce a calculating amount by obtaining the stroke matching by a heuristic retrieval method so that the sum of distances between matched strokes can be minimized under conditions where the stroke is matched with overlapping. CONSTITUTION:An input pattern from a tablet 1 is inputted to an inter-stroke distance calculating part 5 through an input pattern memory 2, and an inter- stroke distance between the input pattern and a reference one is calculated. A heuristic calculating part 6 obtains a heuristic function corresponding to plural recognized characters and stores it in a heuristic memory 7. A node generating part 9 obtains on a node, and a list generating part 10 adds data on a new node to a code list in a node list memory 8. When the depth of the retrieval of the node data on the node list is equal to the number of strokes of the input pattern, the number of a standard pattern in the node data is outputted as the recognized result.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明はオンラインで入力された文字の筆跡より文字を
I!識するオンライン文字認識装置に関するものである
[Detailed Description of the Invention] (Industrial Application Field) The present invention allows characters to be extracted from the handwriting of characters input online! The present invention relates to an online character recognition device that recognizes characters.

(従来技術とその問題点) 従来、筆順(ストロークの書かれる順序)情報を利用せ
ずに1オンラインで入力された文字を入力パターンとし
て文字を認識する方式は存在した。
(Prior Art and its Problems) Conventionally, there has been a method of recognizing characters using characters input online as an input pattern without using stroke order (order in which strokes are written) information.

たとえば、入力パターンと標準パターンのストローク金
重複を許さず、かつ対応するストローク間距離の和が最
小となるストロークの対応付けを求め、この対応するス
トローク間距離の和が最小となる標準パターンに対する
文字t−認識酸果とする方式があった。昭和ω年1月9
日付出願特許願(2)(以下引用文献(1)と称す)に
は、このようなストロークの最適な対応付けをヒユーリ
スティック探索法を用いて求める方式が示されている。
For example, find the correspondence between the strokes that do not allow overlap between the input pattern and the standard pattern and the sum of the distances between corresponding strokes is the minimum, and then find the character for the standard pattern that minimizes the sum of the distances between the corresponding strokes. There was a method to use t-recognition acid. January 9, Showa era
Patent application (2) (hereinafter referred to as cited document (1)), dated 2007-2012, describes a method for finding the optimal correspondence between such strokes using a heuristic search method.

この方式では1個々の標準パターン毎に入力パターンと
のパターン間距離を次のように求める。
In this method, the distance between each standard pattern and the input pattern is determined as follows.

まず、入力パターンと標準パターンのストロークを重複
を許して対応付けた場合の最小距離の累積値をもとにヒ
為−リスティック関数の値を求める。
First, the value of the theoretical function is determined based on the cumulative value of the minimum distance when the strokes of the input pattern and the standard pattern are associated with each other with overlap allowed.

つぎに、入力パターンと標準パターンのストロークを重
複を許さずに対応付は念場合の累積距離の値と前記ヒ為
−リスティック関数の値との和として与えられる評価関
数の値が最小となるストロークの対応付けを優先させて
、最適逐ス)o−りの対応付けを探索する。この対応付
けに対するストローク間距離の累積値を求め、これをパ
ターン間距離とする。このようにして求められた入力パ
ターンと標準パターンのパタ゛−ン間距離り%小となる
標準パターンのカテゴリt−認識結果とするものである
Next, the strokes of the input pattern and the standard pattern are matched without allowing overlap, so that the value of the evaluation function given as the sum of the cumulative distance value and the value of the above-mentioned force-ristic function is minimized. Prioritize the stroke correspondence and search for the optimal sequential correspondence. The cumulative value of the inter-stroke distances for this correspondence is determined and is taken as the inter-pattern distance. The result is a category t-recognition result of a standard pattern in which the distance between the input pattern and the standard pattern obtained in this way is % smaller.

この方式で用いられているヒユーリスティ、り関数は、
入力パターンと標準パターンが類似している場合は効果
的に働き、探索に必要な計算量を大幅に減らすことがで
きる。しかし、異なる文字パターンのように類似してい
ないパターンどうしを対応付ける場合は、ヒユーリステ
ィック関数が効果的に働かfk員ため、探索に必要な計
算量が多□ くなってしまうという欠点があった。
The utility function used in this method is
It works effectively when the input pattern and the standard pattern are similar, and can significantly reduce the amount of calculation required for search. However, when associating dissimilar patterns such as different character patterns, the heuristic function does not work effectively, which has the disadvantage that the amount of calculation required for the search becomes large. .

たとえば、第2図は「木」という文字のパターンの例を
示す図であり、第3図は「木」、第4図は「円」という
文字のパターンの例を示す図である。第2図のパターン
を入力パターン、第3図と第4図のパターンを標準パタ
ーンとして、入力パターンとそれぞれの標準パターンと
のパターン間距離を求める場合を考える。第5図は、第
2図の入力パターンと第3図の標準パターンのストロー
ク間距離をマトリックス状に並べたものであり。
For example, FIG. 2 is a diagram showing an example of a pattern for the character ``ki'', FIG. 3 is a diagram showing an example of a pattern for the character ``ki'', and FIG. 4 is a diagram showing an example of a pattern for the character ``yen''. Consider the case where the pattern in FIG. 2 is used as an input pattern, and the patterns in FIGS. 3 and 4 are used as standard patterns, and the inter-pattern distances between the input pattern and each standard pattern are determined. FIG. 5 shows the inter-stroke distances of the input pattern of FIG. 2 and the standard pattern of FIG. 3 arranged in a matrix.

第6図は、第2図の入力パターンと第4図の標準パター
ンのストローク間距離をマトリックス状に並へたもので
ある。横方向に入力パターンのストローク、縦方向に標
準パターンのストロークetべ、行列要素に各ストロー
ク間の距離を示しである。第5図、第6図において、i
は標準パターンのストローク番号、jは入力パターンの
ストローク番号である。hはヒユーリスティック関数の
値であシ、入力パターンのストローク番号の大きい方よ
り各列のストローク間距離の最小値を累積したものであ
る。
FIG. 6 shows the inter-stroke distances of the input pattern of FIG. 2 and the standard pattern of FIG. 4 arranged in a matrix. The strokes of the input pattern are shown in the horizontal direction, the strokes of the standard pattern are shown in the vertical direction, and the distance between each stroke is shown in the matrix element. In Figures 5 and 6, i
is the stroke number of the standard pattern, and j is the stroke number of the input pattern. h is the value of the heuristic function, which is the sum of the minimum values of the distances between strokes in each column starting from the one with the larger stroke number of the input pattern.

@7図は、纂5図のストローク間距離をもとに最適な対
応付けを引用文献(1)K示されているヒユーリスティ
ック探索法により求めた場合の探索木の例である。節点
を表す丸の中に瞥かれた数字は前記評価関数の値であシ
1節点の右に書かれた数字は節点の作成された順序を示
すものであり、節点の左にはその節点において対応付け
られたストローク番号が(i=  j)のように示され
ている。
Figure @7 is an example of a search tree when the optimal correspondence is determined by the heuristic search method shown in Cited Document (1) K based on the distances between strokes in Figure 5. The numbers in the circles representing the nodes are the values of the evaluation function.1 The numbers written to the right of the nodes indicate the order in which the nodes were created, and the numbers to the left of the nodes indicate the values of the evaluation function. The associated stroke numbers are shown as (i=j).

第、7図の探索木では、入力パターンと標準パターンは
共K「木」という文字でちゃ、互いに類似したパターン
である。このため、ここでは作成された節点の数は10
と、必要最小限の数の節点にょり最適な対応付けを求め
ることができている。
In the search tree shown in FIG. 7, the input pattern and the standard pattern both have the letter K "tree" and are similar patterns to each other. Therefore, here the number of nodes created is 10
The optimal correspondence can be found using the minimum necessary number of nodes.

の探索木の例である。図中の数字は第7図の場合と同じ
である。ここでは、入力パターンは「木」という文字で
、標準パターンは「円」という文字であり、2つのパタ
ーンは類似していない。このため、作成された節点の数
は21と第7図の場合と比べて多くなっている。探索に
必要な計算量は作成される節点の数に#tぼ比例するた
め、この場合探索に多くの計算量を必要とすることにな
る。
This is an example of a search tree. The numbers in the figure are the same as in FIG. Here, the input pattern is the character "tree" and the standard pattern is the character "yen", and the two patterns are not similar. Therefore, the number of created nodes is 21, which is larger than in the case of FIG. Since the amount of calculation required for the search is approximately #t proportional to the number of nodes to be created, in this case, a large amount of calculation is required for the search.

また、引用文献(1)に示されているような従来方式で
は、このような探索は全ての標準パターンに対して行う
必要がある。一般に4Il!準パターン中にハ入力パタ
ーンと類似していないパターンが多く存在するので、従
来方式で文字を認識するには、多くの計算量を必要とす
る類似していないパターンどうしの対応付は探索を数多
く行う必要がある。
Furthermore, in the conventional method as shown in cited document (1), such a search needs to be performed for all standard patterns. Generally 4Il! Since there are many patterns in the quasi-patterns that are not similar to the input pattern, character recognition using conventional methods requires a large amount of calculation and requires a lot of searching to match dissimilar patterns. There is a need to do.

このため、従来方式には多くの計算量が必要であるとい
う欠点があった。
For this reason, the conventional method has the drawback of requiring a large amount of calculation.

(発明の目的) 本発明の目的は、入力パターンと標準パターンのストロ
ークの最適な対応付けをもとに求めたノ(ターン間距離
により、高性能オンライン文字glI!を実現する方式
において、計算量を大幅に低減するととくある。
(Objective of the Invention) The object of the present invention is to reduce the amount of calculation required in a method for realizing high-performance online characters glI! using the distance between turns determined based on the optimal correspondence between the strokes of an input pattern and a standard pattern. It is said that it can significantly reduce the

(発明の構成) 本発明によるオンライン文字認識装置は、文字を書く際
の鹸跡を検出し入力パターンとして読み込む筆跡検出部
と、1&!識される複数の文字に対する標準パターンを
保持する標準パターンメモリと入力パターンと標準パタ
ーンのストローク間距離を計算するストローク間距離計
算部と、前記ストローク間距離をもとに入力パターンと
標準ノ(ターンのストロークを重複を許して対応づけた
場合の最小距離を4とに前記認識される複数の文字に対
するヒューリスティック関数を求めるヒューリスティッ
ク計算部と、入力パターンと標準パターンのストローク
を重複を許さずに対応づけた場合の累積距離と前記ヒユ
ーリスティック関数の和・として求められる評価値が最
小忙なるストロークの対応づけを優先させて前記累積距
離の計算を行ない前記認識される複数の文字のうちいず
れかの標準パターンと入力パターンの全てのストローク
が対応付けられた時その標準パターンに対する文字を出
力する探索制御部とkより構成される。
(Structure of the Invention) The online character recognition device according to the present invention includes a handwriting detection unit that detects the handwriting marks when writing characters and reads them as an input pattern, and 1&! a standard pattern memory that stores standard patterns for a plurality of characters to be recognized; an inter-stroke distance calculation unit that calculates the distance between strokes between the input pattern and the standard pattern; a heuristic calculation unit that calculates a heuristic function for the plurality of recognized characters, with a minimum distance of 4 when the strokes of the input pattern and the standard pattern are matched without allowing overlap; The evaluation value obtained as the sum of the cumulative distance and the heuristic function when It is composed of a search control section and k, which output a character corresponding to the standard pattern when all the strokes of the standard pattern and the input pattern are associated with each other.

(発明の原理) こむで、本発明の原理について説明する。(Principle of the invention) Now, the principle of the present invention will be explained.

本発明によるオンライン文字認識装置は、入力パターン
と標準パターンの最適なストロークの対応付けを効率よ
く求めるためk、人工知能の分野で知られて−るヒエー
リスティ、り探索法(人工知能の原理、日本コンビ具−
夕協会(1983年)%63〜81ページ)を用いてい
る。 引用文献(1)K示されてhる方式では、個々の
標準パターン毎に入力パターンとのストロークの対応付
は管求めているが、本発明では全ての標準パターンとの
対応付けを並列しておこな麿、それら全ての探索木中で
最良の節点を優先して探索を進める。
The online character recognition device according to the present invention uses a hierarchy search method (artificial intelligence principle) known in the field of artificial intelligence to efficiently find the optimal stroke correspondence between an input pattern and a standard pattern. Japanese combination tool
Yukyokai (1983), pp. 63-81). In the method shown in cited document (1) K, the correspondence between the strokes and the input pattern is determined for each individual standard pattern, but in the present invention, the correspondence with all the standard patterns is calculated in parallel. Okona Maro prioritizes the best node among all these search trees and proceeds with the search.

まず、ス)o−り間距離を定義する。入力パターンのス
トローク数をNとする。ストローク数がHの標準パター
ンかに個ある場合、入力パターンのj番目のストローク
と% k番目の標準パターンの1番目のストロークとの
ストローク間距離’iid(km it j)とする。
First, define the distance between the two points. Let N be the number of strokes in the input pattern. When the number of strokes is H standard patterns, the inter-stroke distance between the j-th stroke of the input pattern and the first stroke of the k-th standard pattern is defined as 'iid (km it j).

ただし、1≦i≦N、  1≦j≦ト、 1≦に≦にで
ある。 ストローク間距離としては、引用文献(1)に
述べられているような、ストロークを構成する筆点の座
標値間のユークリッド距離の和を用いるとする。この他
にも、引用文献(1)中に示されているさまざまなスト
ローク間距離の定義を用いることができる。
However, 1≦i≦N, 1≦j≦t, and 1≦≦. The distance between strokes is assumed to be the sum of Euclidean distances between the coordinate values of writing points forming strokes, as described in Cited Document (1). In addition to this, various definitions of the distance between strokes shown in the cited document (1) can be used.

つづいて、このストローク間距離をもとにストロークの
対応付けを行う。本発明では、重複を許さずにストロー
クを対応付けるという条件のもとで、対応するストロー
ク間距離の和が最小となるストロークの対応付けを求め
る。ストロークの対応付けはヒユーリスティック探索法
を用いて行う。
Next, strokes are associated based on this distance between strokes. In the present invention, under the condition that strokes are matched without allowing overlap, strokes are matched such that the sum of the distances between corresponding strokes is the minimum. Stroke correspondence is performed using a heuristic search method.

評価値f (k、p)の小さい節点を優先させて探索木
の枝を伸ばす。探索木は各lisパタ′−ン毎に並行し
て作られる。標準パターン番号k (1≦に≦K)Kよ
り、これら複数の探索木を区別する。評価値f (k、
p)は。
The branches of the search tree are extended by giving priority to nodes with small evaluation values f (k, p). A search tree is created in parallel for each LIS pattern. These plurality of search trees are distinguished by the standard pattern number k (1≦to≦K). Evaluation value f (k,
p) is.

f (k、 p) =h (k、 p)       
  :p=Qなる値とする。ここで、pは探索の深さく
0≦p≦N)、T (k、j)は入力パターンのj番目
のストロークに対応付けられるに番目の標準パターンの
ストローク番号を示す。
f (k, p) = h (k, p)
: The value p=Q. Here, p indicates the search depth (0≦p≦N), and T (k, j) indicates the stroke number of the standard pattern corresponding to the j-th stroke of the input pattern.

ただし、T (k、j)は1≦j≦pにおいて全て異な
る値をとる。ここでh (k、p)は、ヒ凰17ステイ
ツク関数である。探索木中の各節点には評価値f (k
、p)の値と、それまでに対応付けられた標準パターン
のストローク番号の情報(対応履歴と呼ぶ)足保持して
おく。この対応履歴により重複せずにストロークを対応
付けることができる。
However, T (k, j) all take different values in 1≦j≦p. Here, h (k, p) is a Hi-17 stake function. Each node in the search tree has an evaluation value f (k
, p) and the stroke numbers of the standard patterns that have been associated so far (referred to as correspondence history). This correspondence history allows strokes to be associated without duplication.

探索はp=oから開始し、評価値f (k、p)が最小
の節点よシ探索を進める。すなわち、それまでに作成さ
れた節点のうちで評価値f(k、p)の値が最小の節点
を求め、この節点よシ探索の深さpを1だけ増した節点
の評価値f (k、p)の値を求めるという操作を繰り
返す。探索の深さp=Nで、かつf(k、FJ)が探索
すべき節点の評価値の中で最小となった時点で、ストロ
ークは完全に対応付けられたことくなシ探索は終了する
The search starts from p=o and proceeds to the node with the smallest evaluation value f (k, p). That is, find the node with the minimum evaluation value f (k, p) among the nodes created so far, and calculate the evaluation value f (k , p) is repeated. When the search depth p=N and f(k, FJ) becomes the minimum among the evaluation values of the nodes to be searched, the strokes are completely matched and the search ends. .

この節点を与える標準パターン番号kが認識結果となる
The standard pattern number k that gives this node becomes the recognition result.

ヒユーリスティック関数h (k、p)は、入力パター
ンと標準パターンのストロークを重複を許して対応付け
た場合の最小距離の累積値とする。
The heuristic function h (k, p) is the cumulative value of the minimum distance when the strokes of the input pattern and the standard pattern are associated with each other with overlap allowed.

すなわち、 h (k、 p) =0           : p
=FJ(2)とする。このようにヒエーリスティック関
数ヲ定めるととKより探索を効率よく行うことができる
That is, h (k, p) = 0: p
=FJ(2). If the hierarchical function is defined in this way, the search can be performed more efficiently than K.

本発明により文字を認識する場合の例を示す。An example of character recognition according to the present invention will be shown.

第2図の「木」という文字のパターンを入力パターンと
し、第3図の「木」という文字のパターンを標準パター
ン番号に=lの標準パターン、第4図の「円」という文
字のパターンを標準パターン番号に=Jの標準パターン
、以上の2つのパターンを標準パターンとして文字を認
識する場合を考える。前記し良ごとく、第2図の入力パ
ターンと!3図の標準パターンのストローク間距離が第
5図に1第2図の入力パターンと第4図の標準パターン
のストローク間距離が第6図に示されている。
The pattern of the character ``tree'' in Figure 2 is the input pattern, the pattern of the character ``tree'' in Figure 3 is the standard pattern number = the standard pattern of l, the pattern of the character ``circle'' in Figure 4. Consider a case where characters are recognized using the standard pattern number =J as the standard pattern and the above two patterns as standard patterns. As mentioned above, with the input pattern shown in Figure 2! The distance between strokes of the standard pattern shown in FIG. 3 is shown in FIG. 5, and the distance between strokes of the input pattern shown in FIG. 2 and the standard pattern shown in FIG. 4 is shown in FIG.

このトキ、と、−リスティック関数h(1,0)=12
. h (2,0) =24であるので、まず評価値f
 (1・0)=稔の節点から探索が開始される。
This toki, -ristic function h (1, 0) = 12
.. Since h (2,0) = 24, first the evaluation value f
(1.0) = Search starts from Minoru's node.

探索は第7図の探索木に従って進められる。一方評価値
f (2,0)=uである。この評価値は、第7図の探
索木を探索する際のいかなる時点における最小の評価値
よりも大きい。このため、標準パターン番号に==2の
標準パターンに対しては、ストローク対応付けの探索は
行われない。
The search proceeds according to the search tree shown in FIG. On the other hand, the evaluation value f (2,0)=u. This evaluation value is larger than the minimum evaluation value at any point in time when searching the search tree in FIG. Therefore, a search for stroke correspondence is not performed for the standard pattern whose standard pattern number is 2.

すなわち、第8図の探索木が作成されることなく探索が
終了する。認識結果は、最小の評価値f(1,4)=1
2の節点を与える標準パターン番号に=lの標準パター
ンの文字、すなわち「木」という文字となる。
In other words, the search ends without creating the search tree shown in FIG. The recognition result is the minimum evaluation value f (1, 4) = 1
The standard pattern number that gives the node 2 is the character of the standard pattern =l, that is, the character ``tree''.

このように本発明によれば、IR索に必要な計算量を大
幅に減少させることができる。引用文献(1)に述べら
れているような従来方式では、前記の例において第8図
の探索木も探索する必要があった。
As described above, according to the present invention, the amount of calculation required for IR search can be significantly reduced. In the conventional method as described in the cited document (1), it was necessary to also search the search tree shown in FIG. 8 in the above example.

前記の例では標準パターンの数は2であったが、一般に
は標準パターンの数はより多いため、本発明による計算
量低減の効果はより大きいものになる。
In the above example, the number of standard patterns was two, but since the number of standard patterns is generally larger, the effect of reducing the amount of calculation by the present invention is even greater.

(実施例) 以下本発明の一実施例について図面を参照して詳細に説
明する。第1図は本発明の一実施例を示す構成図である
(Example) An example of the present invention will be described in detail below with reference to the drawings. FIG. 1 is a block diagram showing an embodiment of the present invention.

タフレット1より入力された文字のパターンは入力パタ
ーンメモリ2に保持される。標準パターンメモリ3Kt
[識される文字の標準パターンが保持されている。制御
部4からの制御信号に−i・jKより入力パターンメモ
リ2からは入力パターンの1番目のストロークのパター
ンSO)、標準パターンメモリ3からは標準パターン番
号にの標準パターンの1番目のストロークのパターンM
(k。
The character pattern input from the tufflet 1 is held in the input pattern memory 2. Standard pattern memory 3Kt
[A standard pattern of recognized characters is maintained.] From the input pattern memory 2, the first stroke of the input pattern SO) is sent to the control signal from the control unit 4, and from the standard pattern memory 3, the first stroke of the standard pattern is sent to the standard pattern number. pattern M
(k.

i)が読みだされる。ストローク間距離計算部5では読
みだされたパターン5(i)とパターンM (k。
i) is read out. The inter-stroke distance calculation unit 5 reads pattern 5(i) and pattern M(k.

i)の間のストローク間距離d (k、 i、 j)が
計算される。このストローク間距離d(k、i、j)は
引用文献(1)K示されているようなニークリ、ド距離
を用いるとする。
The interstroke distance d(k, i, j) between i) is calculated. Assume that this distance between strokes d(k, i, j) uses the distance between the strokes and the distance shown in the cited document (1)K.

まず、ヒユーリスティック関数h (k、 p)の値を
求める。求められたストローク間距離d (k。
First, find the value of the heuristic function h (k, p). The determined distance between strokes d (k.

i、j)tもとK、ヒユーリスティック計算部6におい
て(2)弐に従うてヒユーリスティック関数h(k、p
)の値が求められる。このヒエーリステ。
i, j) t, the heuristic calculation unit 6 calculates the heuristic function h(k, p
) is calculated. This Hieriste.

イツ/l1lah (k、 p)の値は、ヒユーリステ
ィックメモリ7に保持される。
The value of /l1lah (k, p) is held in the heuristic memory 7.

節点リストメモリ8中には、探索木の節点のデータNd
が評価値f (k、 p)の小さい順にリスト形式で保
持されている。節点のデータNdには評価値f (k、
p)の他に、累積距離δd (k、 p)(ヒユーリス
ティックを含まない評価値の値)、標準パターン番号k
、探索の深さp及び対応履歴が含まれる。対応履!には
それまでに対応付けられ次標準パターンのストローク番
号が保持されている。全く対応付けされてない場合は空
である。
The node list memory 8 contains data Nd of nodes of the search tree.
are stored in a list format in descending order of evaluation value f (k, p). The node data Nd has an evaluation value f (k,
p), cumulative distance δd (k, p) (value of evaluation value not including heuristic), standard pattern number k
, search depth p, and correspondence history. Compatible shoes! holds the stroke number of the next standard pattern that has been associated so far. It is empty if there is no correspondence at all.

初期状態において、節点リストメモリ8中には評価値f
 (k、 J))の値が充分大き一節点のデータNdが
保持されている。
In the initial state, the evaluation value f is stored in the node list memory 8.
(k, J)) is sufficiently large, and data Nd of one node is held.

つぎに% I)=OKおける節点が、節点作成部9によ
り作成される。p=OKおける評価値f (k・p)は
、(1)弐に示すごとくヒューリスティック関数h (
k、p)の値に等しい。制御部4からは制御信号に、p
が、p=0・ l≦に≦になろ値をとり順次出力される
。この制御−号に、pK従い、ヒエーリスティ、クメモ
リ7からヒユーリスティック関数h (k、p)の値が
節点作成部9に出力される。節点作成部9で社新しい節
点のデータNdnewが作成される。ここで作成される
新しい節点のデータNdnewは、 探索の深さ   :p=0 標準パターンメモリ k  (ヒユーリスティック関数
h (k、 0)のkと同じI 累積距離    :  sd (ke p) =。
Next, a node at %I)=OK is created by the node creation section 9. The evaluation value f (k・p) when p=OK is the heuristic function h (
k, p). From the control unit 4, the control signal is p.
takes the value p=0・l≦≦ and is sequentially output. In response to this control signal, the value of the heuristic function h (k, p) is output from the hierarchic memory 7 to the node creation unit 9 in accordance with pK. The node creation unit 9 creates new node data Ndnew. The data Ndnew of the new node created here is: Search depth: p = 0 Standard pattern memory k (heuristic function h I same as k of (k, 0) Cumulative distance: sd (ke p) =.

評価値   :  f (k、 p) =h (k、 
0)対応履歴    : 空 なるデータよシ成り立りてhる。
Evaluation value: f (k, p) = h (k,
0) Correspondence history: It consists of empty data.

リスト作成部1αでは、新しい節点のデータNdnew
 t−節点リストメモリ8中の節点リストに付は加える
処理が行われる。すなわち、新しい節点のデータNdn
ew中の評価値f (k、p)″ft節点リストの先頭
から節点リスト中の節点データNdの評価値f (k’
、 p)と比較してbき。
In the list creation part 1α, the new node data Ndnew
A process of adding to the node list in the t-node list memory 8 is performed. That is, the new node data Ndn
Evaluation value f (k, p)'' in ew from the beginning of the node list to evaluation value f (k') of node data Nd in the node list
, b compared to p).

f (k、 p) <f (k’ 、 p)を満たす節
点データNdの前に新しい節点データNdnewを付加
する。
New node data Ndnew is added before node data Nd that satisfies f (k, p) < f (k', p).

節点作成部9は、はじめに節点リストメモリ8中の節点
リストの先頭にある(評価値f(k、p)の最も小さい
)節点のデータNdi読みだす。
The node creation unit 9 first reads data Ndi of the node at the head of the node list in the node list memory 8 (the one with the smallest evaluation value f(k, p)).

この節点のデータNdをもとに制御信号に、 i、 j
Based on the data Nd of this node, i, j
.

pの値を求める。すなわち、Kは節点データNd中の標
準パターン番号に′の値、iは対応履歴中tζ保持され
ていないストロークの番号を順次出力するとし、j=p
′+l、P=p′+1とする。(7tだし節点データN
d中の探索の深さをp′とする)これらの制御信号は制
御部4に送られ、さらに入力パターンメモリ2、標準パ
ターンメモリ3゜ヒユーリスティックメモリ7に送られ
る。これらの制御信号により、入力パターンメモリ2か
らはパターンS (j) 、標準パターンメモリ3から
ハハターンM(k、i)が出力され、ストローク間距離
計算部5によpストローク間距glld (k、 j、
 j)が求められる。また、ヒューリスティックメモリ
7からはヒユーリスティック関数h (k、 p)が出
力される。
Find the value of p. That is, K is the standard pattern number in the node data Nd, and i is the number of strokes that are not retained at tζ in the correspondence history, and j = p.
'+l, P=p'+1. (7t, nodal data N
These control signals are sent to the control section 4, and further sent to the input pattern memory 2, the standard pattern memory 3, and the heuristic memory 7. According to these control signals, the input pattern memory 2 outputs the pattern S (j), the standard pattern memory 3 outputs the haha turn M (k, i), and the inter-stroke distance calculation unit 5 outputs the inter-stroke distance glld (k, j ,
j) is required. Further, the heuristic function h (k, p) is output from the heuristic memory 7.

節点作成部9では、これらの値をもとに新しい節点のデ
ータNdnewが求められる。
The node creation unit 9 obtains new node data Ndnew based on these values.

すなわち、 探索の深さ   :p==p’+1 m準パターン番号:に=に′ 累積距離  :Sd(ト)、p)±9d (k’、 I
)’) +d(ト)slej)評価値 : f (k、
 p)司d (k、p)十h (k、p)対応履!M 
  :Ndの対応履歴にiを加える。
That is, search depth: p = = p' + 1 m Quasi-pattern number: ni = ni' Cumulative distance: Sd (g), p) ± 9d (k', I
)') +d(g)slej) Evaluation value: f(k,
p) Tsukasa d (k, p) 10h (k, p) correspondence wear! M
: Add i to Nd's correspondence history.

である。これらの新しい節点のデータNdnewは。It is. The data Ndnew of these new nodes is.

リスト作成部10に出力される。リスト作成部10では
、すでに述ぺ九ような処理により新しい節点のデータN
dnew1z節点リストメモリ8中の節点リストに符は
加える。
It is output to the list creation section 10. In the list creation unit 10, new node data N is created by the process described above.
The mark is added to the node list in the dnew1z node list memory 8.

節点リストの先頭の節点データNdの探索の深さtがN
と等しくtった時、探索は終了する。この節点データN
d中の標蕩パターン番号kが認識結果として出力される
The search depth t of the node data Nd at the head of the node list is N
When t is equal to , the search ends. This node data N
The signature pattern number k in d is output as a recognition result.

以上本発明の実施例について説明したが、たとえば第2
候補を求めたい場合1節点リストの先頭に探索の深さy
=Nで、かつ標準パターン番号kが第1候補と異なるも
のが見つかるまで探索を続ければよい。第X候補も同様
にして求められるのは明らかである。
The embodiments of the present invention have been described above, but for example, the second embodiment
If you want to find candidates, enter the search depth y at the beginning of the node list.
=N and the search can be continued until a standard pattern number k different from the first candidate is found. It is clear that candidate X can be found in the same way.

節点リストメモリ8中には全ての節点のデータを保持し
ているが、メモリ量および計算量低減のために評価値f
 (k、p)の値の上位n位までの節点のデータのみを
保持してもよい。このときnの値は2織性能が低下しな
いように適当に定める。
The node list memory 8 holds data for all nodes, but to reduce the amount of memory and calculation, the evaluation value f
Only the data of the top n nodes of the value of (k, p) may be retained. At this time, the value of n is determined appropriately so that the two-weave performance does not deteriorate.

(発明の効果) 本発明によれば、従来方式と比べて認識性能を低下させ
ることなく、大幅に計算量を低減させることができる。
(Effects of the Invention) According to the present invention, the amount of calculation can be significantly reduced without deteriorating recognition performance compared to conventional methods.

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

第1図は本発明の一実施例を示す構成図、第2図〜第8
図は本発明の原理%訃よび従来技術の問題点を説明する
ための図である。 図Kj?いて、 1・・・・・・タブレット% 2・・・・・・入力パタ
ーンメモリ。 3・・・・・・6mパターンメモリ、4・・・・・・制
御部、5・・・・・・ストローク間距離計算部、6・・
・・・・ヒ為−リスティック計算部、        
 − 7・・・・・・ヒューリスティックメモリ% 8・・・
・・・節点νλにメモリ、9・・・・・・節点作置部、
lO・・・・・・リスト作−        !
Figure 1 is a configuration diagram showing one embodiment of the present invention, Figures 2 to 8
The figure is a diagram for explaining the principle of the present invention and problems of the prior art. Figure Kj? 1...Tablet% 2...Input pattern memory. 3...6m pattern memory, 4...control unit, 5...stroke distance calculation unit, 6...
・・・・Hitame-Ristic Calculation Department,
- 7... Heuristic memory% 8...
...memory at node νλ, 9...node placement section,
lO...List made-!

Claims (1)

【特許請求の範囲】[Claims] 文字を書く際の筆跡を検出し入力パターンとして読み込
む筆跡検出部と、認識される複数の文字に対する標準パ
ターンを保持する標準パターンメモリと、入力パターン
と標準パターンのストローク間距離を計算するストロー
ク間距離計算部と、前記ストローク間距離をもとに入力
パターンと標準パターンのストロークを重複を許して対
応づけた場合の最小距離を、とに前記認識される複数の
文字に対するヒューリスティック関数を求めるヒューリ
スティック計算部と、入力パターンと標準パターンのス
トロークを重複を許さずに対応づけた場合の累積距離と
前記ヒューリスティック関数の和として求められる評価
値が最小になるストロークの対応づけを優先させて前記
累積距離の計算を行ない前記認識される複数の文字のう
ちいずれかの標準パターンと入力パターンの全てのスト
ロークが対応付けられた時その標準パターンに対する文
字を出力する探索制御部とを有して成るオンライン文字
認識装置。
A handwriting detection unit that detects handwriting when writing characters and reads it as an input pattern, a standard pattern memory that holds standard patterns for multiple characters to be recognized, and an interstroke distance that calculates the distance between strokes between the input pattern and the standard pattern. a heuristic calculation unit that calculates a heuristic function for the plurality of characters to be recognized based on the distance between the strokes, and a minimum distance when the strokes of the input pattern and the standard pattern are correlated with overlap allowed; Then, the cumulative distance is calculated by prioritizing the stroke matching that minimizes the evaluation value obtained as the sum of the cumulative distance and the heuristic function when the strokes of the input pattern and the standard pattern are matched without allowing overlap. and a search control unit that outputs a character corresponding to the standard pattern when all the strokes of the input pattern are associated with any standard pattern of the plurality of characters to be recognized. .
JP60036890A 1985-02-26 1985-02-26 On-line character recognizing device Granted JPS61195478A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60036890A JPS61195478A (en) 1985-02-26 1985-02-26 On-line character recognizing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60036890A JPS61195478A (en) 1985-02-26 1985-02-26 On-line character recognizing device

Publications (2)

Publication Number Publication Date
JPS61195478A true JPS61195478A (en) 1986-08-29
JPH0527912B2 JPH0527912B2 (en) 1993-04-22

Family

ID=12482369

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60036890A Granted JPS61195478A (en) 1985-02-26 1985-02-26 On-line character recognizing device

Country Status (1)

Country Link
JP (1) JPS61195478A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0519737A2 (en) * 1991-06-19 1992-12-23 Technibuild, Inc. Image recognition system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0519737A2 (en) * 1991-06-19 1992-12-23 Technibuild, Inc. Image recognition system
EP0519737A3 (en) * 1991-06-19 1994-01-19 Technibuild Inc

Also Published As

Publication number Publication date
JPH0527912B2 (en) 1993-04-22

Similar Documents

Publication Publication Date Title
Younger Recognition and parsing of context-free languages in time n3
Bunke et al. Syntactic and structural pattern recognition: theory and applications
US5029223A (en) Constraint driven-on line recognition of handwritten characters and symbols
JP2010044637A (en) Data processing apparatus, method, and program
Brotsky An algorithm for parsing flow graphs
JPS61195478A (en) On-line character recognizing device
JP2656923B2 (en) Spreadsheet processor
Daciuk et al. Natural Language Dictionaries Implemented as Finite Automata.
JPH05314320A (en) Recognition result evaluating system using difference of recognition distance and candidate order
Kim et al. Top-down search with bottom-up evidence for recognizing handwritten mathematical expressions
JPH10334187A (en) Device and method for character recognition
Kaur et al. Identification of recurring patterns of code to detect structural clones
JP7082542B2 (en) Trajectory search device and trajectory search program
JPS6129982A (en) On-line recognition system of hand-written character string
JPH0766423B2 (en) Character recognition device
JPS62169290A (en) Chemical structure formula recognizing system
JPH08137668A (en) Finite automation generating method for retrieving similar word
JP2752762B2 (en) Node matching processing method
JP2748936B2 (en) Character recognition method
JPS61198382A (en) On-line character input device
JP2724235B2 (en) Variable name inference device
CN116821150A (en) Heterogeneous data source query method and system based on natural language
JPH05225248A (en) Data base retrieval system
JP2813207B2 (en) Voice recognition device
JPS61161586A (en) On-line character recognizing device

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term