JPS598863B2 - Pattern recognition method - Google Patents
Pattern recognition methodInfo
- Publication number
- JPS598863B2 JPS598863B2 JP49130974A JP13097474A JPS598863B2 JP S598863 B2 JPS598863 B2 JP S598863B2 JP 49130974 A JP49130974 A JP 49130974A JP 13097474 A JP13097474 A JP 13097474A JP S598863 B2 JPS598863 B2 JP S598863B2
- Authority
- JP
- Japan
- Prior art keywords
- pattern
- register
- branch
- contents
- category
- 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.)
- Expired
Links
Landscapes
- Character Discrimination (AREA)
Description
【発明の詳細な説明】
本発明はパターン認識装置、特に光学的文字読取装置の
認識方式に関する。DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a pattern recognition device, and particularly to a recognition method for an optical character reading device.
光学的文字読取装置において、入力パターンと標準パタ
ーンとのマッチングをとるなり、入力パターンを特徴コ
ード列に変換して、順序論理回路を通すなりして入力パ
ターンを識別する方式がとられているが、いずれの方式
においても、入力パターンか二つ以上の標準パターンで
受理されて、どちらのカテゴリに属すべきかを判断しに
くいことかある。In optical character reading devices, the input pattern is identified by matching the input pattern with a standard pattern, or by converting the input pattern into a feature code string and passing it through a sequential logic circuit. In either method, the input pattern or two or more standard patterns may be accepted, making it difficult to determine which category the pattern should belong to.
通常このようなパターンはまぎられしいパターンとして
リジエクトされている。すなわち・入力パターンに最も
近い標準パターンのカテゴリをcm)類似度をsmx)
次に近い標準パターンのカテゴリをcm)類似度をSm
xとするとsmx≧ε1、snx≧ε、 ・・・・・・
・・・・・・・・・・・・・・・(1)5mx−5nx
≧ε2 ・・・・・・ ・・・・・・・・・・・・・・
・(2)ここでε4、ε2はしきい値がなりたつてはじ
めて、入力パターンはカテゴリCmに属すと判定される
。Usually, such a pattern is rejected as a confusing pattern. In other words, the category of the standard pattern closest to the input pattern is cm) the degree of similarity is smx)
The category of the next closest standard pattern is cm) the degree of similarity is Sm
If x is smx≧ε1, snx≧ε, ...
・・・・・・・・・・・・・・・(1) 5mx-5nx
≧ε2 ・・・・・・ ・・・・・・・・・・・・・・・
(2) Here, the input pattern is determined to belong to the category Cm only after ε4 and ε2 reach the threshold values.
5mx−5nx<ε2 ・・・・・・・・・ ・・・・
・・・・・ ・・(3)のときには、このパターンはま
ぎられしいパターンとしてリジエクトされる。5mx-5nx<ε2 ・・・・・・・・・ ・・・・
...... In the case of (3), this pattern is rejected as a misleading pattern.
しかし(3成がなりたつているパターンでも、人か見れ
は明らかに区別し得る場合が多い。たとえは第1図に示
す、゛J”bs’’は、類似度だけでは区別しにくいパ
ターンであるが、人bi”の脚か曲かつているのに対b
s”の脚はまつすぐであることを知つており両者を区別
することかできる。本発明は、このようなパターンを区
別するために、枝の両端、または一端の方向コードを利
用する。However, (even if the pattern consists of three elements, it is often possible to clearly distinguish whether it is a person or not. For example, ゛J"bs'' shown in Figure 1 is a pattern that is difficult to distinguish based on similarity alone. However, while the legs of the person "bi" are bent,
It is known that the legs of "s" are straight and can distinguish between the two.The present invention utilizes the directional code at both ends or one end of the branch to distinguish between these patterns.
すなわbi”の脚を構成している枝はその始端か右下さ
かりに始まるのに対し、゛T”の脚を構成している枝は
その始端か上あかりに始まる。枝の両端または一端の方
向コードでもつて比較するときに、どの枝とどの枝を比
較すべきかは、入力パターンによつて異なつてくる。た
とえば、″J″と″T1を区別するときには、脚の部分
の枝を比較すればよいが、第2図に示す″B″と゛8″
では1番目の枝の終端方向と2番目の枝の始端方向とを
比較しなければならない。(ただし、枝の順序は図に示
した番号順になつているものとする。)しかし入力パタ
ーンがどのパターン対に近いかをあらかじめ知つておれ
ば比較しやすい。したがつて判別部で最も近いカテゴリ
Cmsおよび次に近いカテゴリCnを出力し、この情報
をもとに比較すべき枝を求めることにする〇以下、本発
明の具体的実施例を図を参照して説明する。In other words, the branches that make up the legs of "bi" start at its starting point or at the bottom right, while the branches that make up the legs of "T" start at its starting point or at the top. When comparing the direction codes of both ends or one end of a branch, which branch should be compared differs depending on the input pattern. For example, when distinguishing between "J" and "T1", it is sufficient to compare the branches of the leg, but "B" and "8" shown in Fig.
Now we have to compare the direction of the end of the first branch and the direction of the start of the second branch. (However, the order of the branches is assumed to be in the numerical order shown in the figure.) However, it is easier to compare if you know in advance which pattern pair the input pattern is close to. Therefore, the discriminator outputs the closest category Cms and the next closest category Cn, and based on this information, the branch to be compared is determined. Hereinafter, specific embodiments of the present invention will be described with reference to the figures. I will explain.
第3図は本発明のパターン認識装置を示す概略構成図で
ある。紙上に書かれた文字は光電変換装置により電気信
号に変換され、前処理装置へ送られる。FIG. 3 is a schematic configuration diagram showing a pattern recognition device of the present invention. Characters written on paper are converted into electrical signals by a photoelectric conversion device and sent to a preprocessing device.
前処理装置では ノスイの除去、大きさの正規化、位置
の正規化などを行なつて1文字ずつ切り出す。各文字パ
ターンは細め回路により1ビツトの線幅の線図形に変換
される0この線図形から特徴点抽出回路により端点、分
枝点などの特徴点を抽出する。一方、線図形から各特徴
点を始点および終点とする方向コード列が枝ごとに方向
コード化回路により作られる。方向コード化回路という
のは、始端から順に、微小線素の方向をたとえば第4図
に示す8方向コードで表わし、線にそつて終端までコー
ド列化する回路である。この回路では、さらに、枝の両
端の座標、枝の長さなどの情報を表の形で出力する。こ
の表を以後、枝表とよぶ。入力パターンが枝ごとに方向
コード列で表わされれば、標準パターンと入力パターン
を枝ごとに対応させてマツチングを行なう。The preprocessing device removes noise, normalizes the size, normalizes the position, and extracts each character. Each character pattern is converted into a line figure with a line width of 1 bit by a thinning circuit. From this line figure, feature points such as end points and branch points are extracted by a feature point extraction circuit. On the other hand, a direction coding circuit generates a direction code string for each branch from the line figure, with each feature point as the starting point and ending point. The direction encoding circuit is a circuit that sequentially represents the direction of a minute line element by an eight-directional code shown in FIG. 4, starting from the starting end, and converts it into a code string along the line to the terminal end. This circuit also outputs information such as the coordinates of both ends of the branch and the length of the branch in the form of a table. This table is hereinafter referred to as the branch table. If the input pattern is expressed as a direction code string for each branch, matching is performed by making the standard pattern and the input pattern correspond to each other for each branch.
入力パターンに最も近い標準パターンのカテゴリをCm
l類似度をSmxl次に近い標準パターンのカテゴリを
Cn類似度をSnxとして(1),(2成が満足される
と、入カパターンはカテゴリCmに属すと判定される〇
もしも(3)式か満足されると、リジエクトされ、さら
に細かく調べるために、カテゴリ対Cm,Cnを出力と
して平均方向コード比較回路に送られる〇方向コード比
較回路では、Cm,Cnにより比べるべき枝を求め、入
力パターンがどちらのカテゴリに属すかの判定を下す〇
調べるべき枝は、カテゴリ対Cm,Cnにより異なるの
で、あらかじめそれらを表にしておき、憶えておくrあ
るいはすべてをハードウエア化するには、Cm,Cnの
組み合せにより異なつた回路へ入力させてもよい。Cm the standard pattern category closest to the input pattern
l Similarity is Smxl The category of the standard pattern closest to Cn similarity is Snx (1), (If the two conditions are satisfied, the input pattern is determined to belong to the category Cm〇 If the equation (3) When satisfied, the category pair Cm, Cn is rejected and sent to the average direction code comparison circuit as an output for further detailed investigation. The direction code comparison circuit calculates the branch to be compared using Cm, Cn, and calculates the branch to be compared based on the input pattern. Determine which category belongs to 〇 The branches to be examined differ depending on the category pair Cm, Cn, so make a table of them in advance and memorize them. Or, to make all of them into hardware, Cm, The signals may be input to different circuits depending on the combination of Cn.
簡単のために、カテゴリ対により調べるべき枝の対がテ
ーブルの形で記憶されている場合を例にあげて説明する
。For the sake of simplicity, an example will be described in which pairs of branches to be examined based on category pairs are stored in the form of a table.
第5図はその表の1例である。以後この表をパラメータ
表とよぶ0この表のCl,C2欄にはカテゴリ対が格納
されている。第5図においてこの欄の図に1,2などの
番号をうつてあるのは枝の順番を示す。1112欄は枝
の番号が格納されている。FIG. 5 is an example of such a table. Hereinafter, this table will be referred to as a parameter table.Category pairs are stored in the Cl and C2 columns of this table. In FIG. 5, the numbers 1, 2, etc. in the figures in this column indicate the order of the branches. The 1112 column stores branch numbers.
NlN2欄には、平均すべきコードの長さが格納されて
いる。FlF2欄には枝の始端、終端を区別する情報が
格納されている。Fi=1の場合は始端、Fi=0の場
合は終端を示す〇この表を用いて比較すべき枝の番号、
しきい値などを求める。たとえば判定回路からカテゴリ
対7JT7と出力されれば、第1番目の枝の始端方向C
sと同じく第1番目の枝の終端方向CEを求め、CS−
CE≧T2ならば7J″と
C8−CE<T1
であれば、4T″と判定される0それ以外はリジエクト
される〇以上の処理手順をさらにくわしく説明しよう。The NlN2 column stores the length of the code to be averaged. The FlF2 column stores information that distinguishes between the starting end and the ending end of a branch. If Fi = 1, it indicates the starting point, and if Fi = 0, it indicates the ending point. 〇 Use this table to indicate the number of the branch to be compared,
Find threshold values, etc. For example, if the determination circuit outputs category pair 7JT7, the starting end direction of the first branch is C.
Similarly to s, find the terminal direction CE of the first branch and calculate CS-
If CE≧T2, then 7J'' and C8-CE<T1, then 4T'' is determined.Otherwise, it is rejected.Let us explain in more detail the processing procedure above.
第6図は、平均方向コード比較回路の概略構成図である
。この回路はパラメータ表読み出し回路、枝表読み出し
回路、平均方向計算回路、および比較回洛から構成され
ている。第1図はパラメータ表読み出し回路およびカテ
ゴリ対比較回路を示す。FIG. 6 is a schematic diagram of the average direction code comparison circuit. This circuit consists of a parameter table reading circuit, a branch table reading circuit, an average direction calculation circuit, and a comparison circuit. FIG. 1 shows a parameter table reading circuit and a category pair comparison circuit.
カテゴリ対・CmCnPが判定回路から出力されると、
レジスタ14にセツトされる。アドレスレジスタ10の
内容をパラメータ表の先頭アドレスにセツトし、パラメ
ータ表12から順に情報を読み出しメモリレジスタ13
に格納する。ClC2とCmCnを比較器15で比較す
る。もしも等しくなければ11の加算器でレジスタ10
の内容を+1し、次の情報を読み出す。もしも等しいと
きには信号101で枝表の内容を読み出す。第8図は枝
表読み出し回路である0まず信号101でI,の内容が
アドレスレジスタ20へセツトされる0このアドレスで
枝表の内容を読み出しレジスタ22へセツトする0簡単
のため、レジスタ22へは枝の長さLと方向コード列の
先頭アドレスADRのみが読み出されるものとする〇A
DRの内容をアドレスレジスタ23へ入れ、方向コード
列をレジスタ25へ読み出す。When the category pair CmCnP is output from the judgment circuit,
Set in register 14. The contents of the address register 10 are set to the first address of the parameter table, and the information is read out in order from the parameter table 12 to the memory register 13.
Store in. A comparator 15 compares ClC2 and CmCn. If not equal, adder 11 and register 10
Add 1 to the contents and read the next information. If they are equal, the contents of the branch table are read out using signal 101. FIG. 8 shows a branch table reading circuit. 0 First, the contents of I, are set to the address register 20 using the signal 101. 0 The contents of the branch table are read at this address and set to the register 22. 0 For simplicity, the contents of the branch table are set to the register 22. Assume that only the branch length L and the start address ADR of the direction code string are read out.〇A
The contents of DR are put into the address register 23 and the direction code string is read out into the register 25.
第9図は平均方向計算回路である。FIG. 9 shows an average direction calculation circuit.
平均方向コードを求めるためにはを計算する。To find the average direction code, calculate .
まずレジスタ25の内容がシフトレジスタ31へ入れら
れる。First, the contents of register 25 are put into shift register 31.
F1がOのときはL−N1だけコードを左へシフトする
。一つのコードが4ビツトで構成されているとして、演
算器33で4倍し、シフトすべき枝をカウンタ34へセ
ツトする。クロツクが加えられるたびにカウンタの内容
を−1し、ボロ一が立つとやめる。F1が1のときは、
シフトは行なわない。これでシフトレジスタ31の先頭
には平均すべきコードの先頭コードCOが来たことにな
る。なおN1の内容をカウンタ30へセツトする。まず
COをレジスタ36へセツトする。When F1 is O, the code is shifted to the left by L-N1. Assuming that one code consists of 4 bits, the arithmetic unit 33 multiplies it by 4 and sets the branch to be shifted in the counter 34. Each time a clock is added, the contents of the counter are decremented by 1, and the game stops when the number is one. When F1 is 1,
No shifts will be made. This means that the first code CO of the codes to be averaged has arrived at the beginning of the shift register 31. Note that the contents of N1 are set in the counter 30. First, CO is set in register 36.
次にカウンタ30を−1し、カウンタ35に4をセツト
する0タロツクで4ビツトシフトレジスタをシフトし、
C1をシフトレジスタ31の先頭にもつてくる。C1を
レジスタ31にセツトする。CO−C1を38の減算器
をもちいレジスタ39へセツトする。次にレジスタ39
の内容とレジスタ41の内容を加え、レジスタ41へ格
納する。ただしレジスタ41には最初0がセツトされて
いるものとする。さらにカウンタ35に4をセツトし、
次のコードをとり出して同様の計算をカウンタ30がO
になるまで続ける。Oになれば、レジスタ41の内容を
N,で割り、結果をレジスタ43へ格納する。さらに加
算器44を用いレジスタ36の内容をそれに加えて、レ
ジスタ45へ格納する。これで、11番目の枝の平均方
向コードがまとまつたことになる。次に信号102で1
2をレジスタ20へセツトし、以下同様に12番目の枝
の平均方向コードを求め、こんどはレジスタ46へ格納
する。Next, the counter 30 is decremented by 1, the counter 35 is set to 4, and the 4-bit shift register is shifted with a 0 tarlock.
C1 is also brought to the beginning of the shift register 31. Set C1 in register 31. CO-C1 is set in register 39 using 38 subtracters. Next, register 39
The contents of and the contents of register 41 are added and stored in register 41. However, it is assumed that the register 41 is initially set to 0. Furthermore, set the counter 35 to 4,
Take the following code and perform the same calculation until the counter 30 is O.
Continue until. If it becomes O, the contents of the register 41 are divided by N, and the result is stored in the register 43. Furthermore, the contents of the register 36 are added thereto using the adder 44, and the result is stored in the register 45. This means that the average direction code for the 11th branch has been compiled. Then 1 at signal 102
2 is set in the register 20, and the average direction code of the 12th branch is obtained in the same manner and stored in the register 46 this time.
次にレジスタ45の内容からレジスタ46の内容を引き
レジスタ48へ格納する0この内容とT2とを比較器4
9で比較し、C8−CE≧T2
であればCmの内容をレジスタ51へ移し、そうでない
ときは、今度はT,と比較器50で比較する。Next, the contents of the register 46 are subtracted from the contents of the register 45 and stored in the register 48. This contents and T2 are compared to the comparator 4.
If C8-CE≧T2, the contents of Cm are transferred to the register 51, and if not, then the comparator 50 compares the contents with T.
CS−CE<T1 であればCnの内容をレジスタ51へ移す。CS-CE<T1 If so, the contents of Cn are moved to register 51.
そうでないときにはリジエクト信号103を出す。レジ
スタ51には平均方向コード比較回路により判定された
カテゴリ名が格納されている。上記の例では、一本また
は二本の枝の方向コードの差を求めてそれとしきい値と
を比較したが、必ぜしも差を求めなくてもよい場合があ
る。Otherwise, a reject signal 103 is issued. The register 51 stores the category name determined by the average direction code comparison circuit. In the above example, the difference between the direction codes of one or two branches is determined and compared with the threshold value, but there are cases where the difference does not necessarily need to be determined.
一本又は数本の枝の始端または終端の方向そのものを比
較してもよいし、三本以上の枝の方向の関係を比較して
もよい。いずれにしても本発明を使用することにより、
従来はまぎられしいパターンとしてリジエクトされてい
たパターンであつても、方向コードを比較することによ
り正しく認識できる。The direction of the starting end or end of one or several branches may be compared, or the relationship between the directions of three or more branches may be compared. In any case, by using the present invention,
Even patterns that were conventionally rejected as confusing patterns can be correctly recognized by comparing direction codes.
なお比べるべき枝をパラメータ表を用いて限定したため
に、あらゆる枝の方向コードを比較するという冗長な処
理をせずにすみ、ハードウエアを簡単化できるとともに
、認識精度を高めることができる〇なお、本発明では方
向コードを用いたか、候補カテゴリーが選はれたとき、
この候補カテゴリー間で顕著な特徴の違いのある一部分
を、あらかじめ他の(方向コード以外の)パラメータを
使つて求めておいて、これを判定基準としてもよい。Furthermore, since the branches to be compared are limited using a parameter table, there is no need for the redundant process of comparing the direction codes of all branches, which simplifies the hardware and improves recognition accuracy. In the present invention, the direction code is used, or when a candidate category is selected,
A portion of the candidate categories with notable differences in features may be determined in advance using other parameters (other than the direction code), and this may be used as the criterion.
第1図、第2図はまぎられしいパターン対を示す図、第
3図は本発明の実施例を示す概略構成図、第4図は8方
向コードを示す図、第5図はパラメータ表の内容を示す
図、第6図は平均方向コード比較回路の概略構成図、第
r図はパラメータ表読み出し回路およびカテゴリ対比較
回路図である。
12はパラメータ表を格納した記憶装置、10,13は
それぞれのアドレスレジスタおよびメモリレジスタであ
る。
14はレジスタ、15は比較器である。
第8図は枝表読み出し回路図である。21は枝表を、2
4は方向コード列を記憶した記憶装置である。
20,23はアドレスレジスタ、22,25はメモリレ
ジスタである。Figures 1 and 2 are diagrams showing confusing pattern pairs, Figure 3 is a schematic configuration diagram showing an embodiment of the present invention, Figure 4 is a diagram showing an 8-direction code, and Figure 5 is a parameter table. FIG. 6 is a schematic diagram of the average direction code comparison circuit, and FIG. R is a diagram of the parameter table reading circuit and category pair comparison circuit. 12 is a storage device storing a parameter table; 10 and 13 are respective address registers and memory registers. 14 is a register, and 15 is a comparator. FIG. 8 is a branch table reading circuit diagram. 21 is the branch table, 2
4 is a storage device that stores the direction code string. 20 and 23 are address registers, and 22 and 25 are memory registers.
Claims (1)
上記入力パターンがどの標準パターンとよく一致するか
判定する第1の判定段階と、上記第1の判定段階によつ
て、よく一致する上記標準パターンが複数個得られたと
き、入力パターンが上記標準パターンのいずれに属する
かの再判定をする第2の判定段階とを有するパターン認
識方式において、上記第2の判定段階は上記標準パター
ンに対してあらかじめ定められた部分における枝の両端
または一端での該枝の方向を用いることにより、上記入
力パターンと上記標準パターンのそれぞれとを比較し、
上記再判定をする段階からなることを特徴とするパター
ン認識方式。1 Calculate the similarity between the input pattern and the standard pattern,
A first determination step of determining which standard pattern the input pattern closely matches, and when a plurality of the standard patterns that closely match are obtained through the first determination step, the input pattern matches the standard pattern. In a pattern recognition method that includes a second judgment step of re-judging which of the patterns it belongs to, the second judgment step is a pattern recognition method that includes a second judgment step of re-determining which of the patterns the pattern belongs to. Compare the input pattern with each of the standard patterns by using the direction of the branch,
A pattern recognition method comprising the step of re-judging as described above.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP49130974A JPS598863B2 (en) | 1974-11-15 | 1974-11-15 | Pattern recognition method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP49130974A JPS598863B2 (en) | 1974-11-15 | 1974-11-15 | Pattern recognition method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS5157142A JPS5157142A (en) | 1976-05-19 |
| JPS598863B2 true JPS598863B2 (en) | 1984-02-28 |
Family
ID=15046942
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP49130974A Expired JPS598863B2 (en) | 1974-11-15 | 1974-11-15 | Pattern recognition method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS598863B2 (en) |
-
1974
- 1974-11-15 JP JP49130974A patent/JPS598863B2/en not_active Expired
Also Published As
| Publication number | Publication date |
|---|---|
| JPS5157142A (en) | 1976-05-19 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US4040009A (en) | Pattern recognition system | |
| KR960706662A (en) | METHOD FOR PAIRING FINGERPRINT MINUTIA USING ATTRIBUTED RELATIONAL GRAPHS | |
| US3889234A (en) | Feature extractor of character and figure | |
| JPS598863B2 (en) | Pattern recognition method | |
| JPH0132556B2 (en) | ||
| JPS598864B2 (en) | Pattern recognition method | |
| JPH0157837B2 (en) | ||
| JP2918380B2 (en) | Post-processing method of character recognition result | |
| JP3106550B2 (en) | Voice recognition result display device | |
| KR940007933B1 (en) | User Independent Online Korean Character Recognition Method | |
| JPS6349274B2 (en) | ||
| JPS6252912B2 (en) | ||
| JPH0475556B2 (en) | ||
| JPS63103393A (en) | Word recognizing device | |
| JPS6224837B2 (en) | ||
| So et al. | Invariant line segmentation for object recognition | |
| JPS583032A (en) | Tree structure access processing system | |
| JPH01113883A (en) | Method and device for input of line pattern | |
| JPS59161783A (en) | Pattern matching method | |
| JPS6170677A (en) | pattern recognition device | |
| JPS59128681A (en) | Character reader | |
| JPS6174087A (en) | Word reading device | |
| JPS5935469B2 (en) | Character recognition method suitable for reading multiple character sets | |
| JPS62271191A (en) | Pattern recognition device | |
| JPS6344287A (en) | Character reader |