JPS598864B2 - Pattern recognition method - Google Patents
Pattern recognition methodInfo
- Publication number
- JPS598864B2 JPS598864B2 JP49130975A JP13097574A JPS598864B2 JP S598864 B2 JPS598864 B2 JP S598864B2 JP 49130975 A JP49130975 A JP 49130975A JP 13097574 A JP13097574 A JP 13097574A JP S598864 B2 JPS598864 B2 JP S598864B2
- Authority
- JP
- Japan
- Prior art keywords
- pattern
- branch
- register
- input pattern
- 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, particularly to a recognition method for an optical character reading device.
光学的文字読取装置において、入力パターンと標準パタ
ーンとのマッチングを取るなり、入力パターンを特徴コ
ード列に変換して順序論理回路を通すなりして、入力パ
ターンを識別しているが、いずれの方式においても、入
力パターンが二つ以上の標準パターンに受理されてどち
らのカテゴリに属すべきか判断しにくい場合がある。In optical character reading devices, input patterns are 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 some cases, an input pattern is accepted by two or more standard patterns and it is difficult to determine which category it should belong to.
通常このようなパターンはまぎられしいパターンとして
リジエクトされている。すなわち、入力パターンに最も
近い標準パターンのカテゴリをcm)類似度をsmx)
次に近い標準パターンのカテゴリをcm)類似度をSm
xとすると、5mx≧ε1、snx≧ε1 ゛゜゜゜゜
゜゜゜0(1)5mx−5nx≧ε2 ・・・・・・・
・・(2)ただしε10、ε2はしきい値がなりたつて
はじめて、入力パターンはカテゴリCmに属すると判定
される。Usually, such a pattern is rejected as a confusing pattern. That is, 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, 5mx≧ε1, snx≧ε1 ゛゜゜゜゜゜゜゜゜0(1) 5mx-5nx≧ε2 ・・・・・・・・・
(2) However, the input pattern is determined to belong to the category Cm only after the threshold values of ε10 and ε2 are reached.
もしも5mx−5nx<ε2 ・・・・・・・・・(3
)のときはリジエクトされる。If 5mx-5nx<ε2 ・・・・・・・・・(3
), it will be rejected.
しかし(3)式がなりたつパターンであつても、人が見
ればあきらかに区別し得る場合が多い。たとえば第1図
に示bw”と″に” は文字読取装置にとつては区別し
にくいが人は″X” は左の二本の枝が鋭角をなしてお
り゛に” のそれはおよそ1800をなしていることを
知つており、枝の交叉のしかたにより両者を区別してい
る。本発明は、このようなパターンを区別するために、
枝の両端または一端の座標を利用する。However, even if the pattern holds true for equation (3), it is often possible for humans to clearly distinguish the patterns. For example, in Figure 1, bw" and "ni" are difficult to distinguish for a character reader, but humans can recognize that the two left branches of "X" form an acute angle, and that of "ni" is approximately 1800. The two are distinguished by the way their branches intersect. In order to distinguish between such patterns, the present invention
Use the coordinates of both ends or one end of the branch.
枝の両端の座標でもつて比較するときに、どの枝とどの
枝を比較すればよいか、枝の始端を比較すべきか終端を
比較すべきか、X座標を使用すべきか、Y座標を使用す
べきかは比較すべきパターンによつて異なつてくる。し
たがつて入力パターンがどのようなパターンに近いかを
あらかじめ知つていれば比較しやすい。判定部では、そ
のために、最も近いカテゴリCmおよび次に近いカテゴ
リCnを出力し、この情報をもとに枝の座標を比較する
ことにする。以下、本発明の具体的一実施例を、第2図
の概略構成図を参照しながら、説明する。When comparing the coordinates of both ends of a branch, which branch should be compared with which branch? Should the start or end of the branches be compared? Should the X coordinate be used or should the Y coordinate be used? varies depending on the patterns to be compared. Therefore, it is easier to compare if you know in advance what pattern the input pattern is similar to. For this purpose, the determination unit outputs the closest category Cm and the next closest category Cn, and compares the coordinates of the branches based on this information. Hereinafter, a specific embodiment of the present invention will be described with reference to the schematic configuration diagram of FIG. 2.
紙上に書かれた文字は光電変換装置により電気信号に変
換され、前処理装置へ送られる。Characters written on paper are converted into electrical signals by a photoelectric conversion device and sent to a preprocessing device.
前処理装置では、ノイズの除去、大きさの正規化、位置
の正規化などを行なつて1文字ずつ切り出す。各文字パ
ターンは細め回路により1ビツトの線幅まで細められ線
図形に変換される。この線図形から端点、分岐点などの
特徴点を抽出する。この表を以後、特徴点表とよぶこと
にする。一方、線図形から各特徴点を始点および終点と
する特徴コード列が特徴コード化回路により作られる。
この特徴コード列からなる枝はそれぞれ枝の始端、終端
の座標、枝の長さなどを内容とする表の形式であられさ
れる。この表を以後、枝表とよぶ。この実施例では、入
力パターンを細めて線図形にし、線図形から特徴点およ
び特徴コード列を求める場合を例にあげたが、特徴抽出
回路は、上記の価にいろいろ考えられる。The preprocessing device removes noise, normalizes the size, normalizes the position, and cuts out each character. Each character pattern is reduced to a line width of 1 bit by a reduction circuit and converted into a line figure. Feature points such as end points and branch points are extracted from this line figure. This table will hereinafter be referred to as a feature point table. On the other hand, a feature code string having each feature point as a starting point and an ending point is created from the line figure by a feature encoding circuit.
Each branch consisting of this feature code string is drawn in the form of a table containing the coordinates of the start and end of the branch, the length of the branch, and the like. This table is hereinafter referred to as the branch table. In this embodiment, an example is given in which an input pattern is narrowed into a line figure and feature points and a feature code string are obtained from the line figure, but the feature extraction circuit can be designed in various ways to meet the above requirements.
枝の両端の特徴点が何らかの方法で求められるのであれ
ば、他の特徴回路を用いてもかまわない。 ゜入
力パターンが枝ごとに特徴コード列で表わされれば、標
準パターンと入力パターンを枝ごとに対応させてマツチ
ングを行なう。Other feature circuits may be used as long as the feature points at both ends of the branch can be found by some method. If the input pattern is expressed as a feature code string for each branch, matching is performed by making the standard pattern and input pattern correspond to each other for each branch.
入力パターンに最も近い標準パターンのカテゴリをCm
l類似度をSmxl次に近い標準パターンのカテゴリを
、Cnl類似度をSmxとして(1)式および(2)式
が満足されるとき、入力パターンはカテゴリCmに属す
ると判定される。もしも(3)式が満されれば、カテゴ
リ対Cm,Cnを出力として、座標比較回路に送られる
。座標比較回路では、カテゴリ対Cm,Cnにより比べ
る枝を求め、入力パターンかどちらに属すかの判定を下
す。調べるべき枝は、カテゴリ対Cm,Cnにより異な
るのであらかじめそれらを表にしておぼえておく。Cm the standard pattern category closest to the input pattern
When equations (1) and (2) are satisfied, the input pattern is determined to belong to the category Cm, with the standard pattern category closest to Smxl having the l similarity and Smx having the Cnl similarity. If equation (3) is satisfied, the category pair Cm, Cn is output and sent to the coordinate comparison circuit. The coordinate comparison circuit finds a branch to be compared based on the category pair Cm and Cn, and determines which category the input pattern belongs to. The branches to be examined differ depending on the category pair Cm and Cn, so remember them in advance in a table.
あるいは表にせずすべてをハードウエア化してCmCn
の組み合せにより機なる回路へ入力するつようにしてお
いてもよい。Or CmCn without showing it all in hardware.
It is also possible to input the signals to the machine circuit by a combination of the following.
簡単のために、カテゴリ対により調べるべき枝の対がテ
ーブルの形で記憶されている場合を例にあげて説明する
。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.
第3図は、カテゴリ対、枝番号、しきい値などの入つた
パラメータ表を示している。この図において、ClC,
欄はカテゴリ対を示す。この図ではカテゴリを示すパタ
ーンに枝の番号をつけてある。I,,I,欄は比較すべ
き枝の番号が格納されている。TlT,欄はしきい値が
格納されている。マツチング回路から入力パターンが▲
〜)6K″のどちらかであると出力されると、パラメー
タ表から“XK”の項を求め、2番目と3番目の枝を比
較すべきことを知る。FIG. 3 shows a parameter table containing category pairs, branch numbers, threshold values, etc. In this figure, ClC,
Columns indicate category pairs. In this figure, branch numbers are attached to patterns indicating categories. The I,,I, column stores the number of the branch to be compared. The TIT column stores threshold values. The input pattern from the matching circuit is ▲
~) 6K", the term "XK" is found from the parameter table and the second and third branches are known to be compared.
この枝を第4図に示す座標でもつて比較する。2番目の
枝の始端および終端を(XrYT),(X?,Y5)、
3番目の始端および終端を(Xt,Yr),(X打孟)
とすると(X:一X1)+(X?−Xr)≧T,
ノのときには″Xel
(XFXi)+(Xi−Xh)〈T1
のときには0K″<15判定する。This branch will be compared using the coordinates shown in FIG. The start and end of the second branch are (XrYT), (X?, Y5),
The third start and end are (Xt, Yr), (X stroke Meng)
Then, it is determined that (X: -
以上の操作を第5図の座標比較回路を使つてさらにくわ
しく説明する。The above operation will be explained in more detail using the coordinate comparison circuit shown in FIG.
判定回路により、カテゴリ対CmCnがレジスタ1rに
セツトされる。The determination circuit sets the category pair CmCn in the register 1r.
アドレスレジスタ10をパラメータ表の先頭にセツトし
、順に読み出し、メモリレジスタ13にセツトする。C
lC,とCmCnとを比較器18で比較する。もしも等
しくなければ信号100で11の加算器を動作させ、ア
ドレスレジスタ10の内容を+1し、次の情報をパラメ
ータ表12から読み出す。もしもClC,とCmCnと
が等しいときには11の内容をアドレスレジスタ14へ
セツトする。レジスタ14をアドレスとして枝表の内容
をレジスタ16に読み出す。この図では簡単のため、座
標情報のみが読み出されることにしてある。レジスタ1
6には枝の始端(X,Yl)および終端(X,Y,)が
読み出される。X座標を用いるか、Y座標を用いるかが
、信号103,104,105,106を用いて区別さ
れ、19の減算器に入力される。最初減算器(X1−X
,)はレジスタ20へセツトされる。The address register 10 is set at the beginning of the parameter table, read out in order, and set in the memory register 13. C
A comparator 18 compares lC, and CmCn. If they are not equal, adder 11 is operated with signal 100, the contents of address register 10 are incremented by 1, and the next information is read from parameter table 12. If ClC, and CmCn are equal, the contents of 11 are set in the address register 14. The contents of the branch table are read into the register 16 using the register 14 as an address. In this figure, for simplicity, only the coordinate information is read out. register 1
6, the starting end (X, Yl) and ending end (X, Y,) of the branch are read out. It is determined whether the X coordinate or the Y coordinate is to be used using signals 103, 104, 105, and 106, which are input to a subtracter 19. First subtractor (X1-X
, ) are set in register 20.
レジスタ20へ入れるべきかレジスタ21へ入れるべき
かは信号101,108により制御される。次に信号1
02で1,の内容をアドレスレジスタ14へ移し、1,
番目の枝の枝表をレジスタ16に読み出す。前と同様に
して今度はレジスタ21へ格納される。次にレジスタ2
0とレジスタ21の内容を加え合わせてレジスタ23へ
格納する。レジスタ23には(心−XJ)++(X1−
XI)が入ることになる。この内容とT2の内容とを比
較器24を用いて比較する。もしも(心−X1!)+(
Xi−X2j)≧T,であれば信号109でCmの内容
をレジスタ26へ移す。Whether the data should be entered into register 20 or register 21 is controlled by signals 101 and 108. Next signal 1
At 02, the contents of 1, are transferred to the address register 14, and 1,
The branch table of the th branch is read into the register 16. This time it is stored in the register 21 in the same way as before. Next register 2
0 and the contents of register 21 are added and stored in register 23. The register 23 has (heart-XJ)++(X1-
XI) will be included. This content is compared with the content of T2 using a comparator 24. If (heart-X1!) + (
If Xi−X2j)≧T, the contents of Cm are transferred to the register 26 by a signal 109.
もしも(心−X2l)+(X{−Xノ)〈T2
であればT1と比較し、
(Xll−XJ)+(X{−XJ)〈T1であれば信号
111でCmの内容をレジスタ26へ移す。If (Min - Move to.
もしも(X,l一心)+(X{−XJ)≧T, であれば入力パターンをリジエクトする。If (X, l single mind) + (X{-XJ)≧T, If so, reject the input pattern.
以上の処理でレジスタ26には、座標比較回路で判定さ
れた結果が求まる。Through the above processing, the result determined by the coordinate comparison circuit is obtained in the register 26.
上記の例では、二本の枝の両端のX座標の差をつ比較し
たが、必ずしも二本の枝を用いる必要もないしX座標に
限定する必要もない。In the above example, the difference in the X coordinates at both ends of the two branches was compared, but it is not necessarily necessary to use two branches, nor is it necessary to limit it to the X coordinate.
X座標、Y座標ともに使つてもよいし、一本の枝の一端
の座標、あるいは3本以上の枝の座標を用いることも可
能である。いずれにしても、本発明を使用することによ
り、従来にまぎられしいパターンとしてリジエクトされ
ていたパターンであつても、枝の座標を比較することに
より正しく認識することができる。It is also possible to use both the X and Y coordinates, the coordinates of one end of a single branch, or the coordinates of three or more branches. In any case, by using the present invention, even a pattern that has conventionally been rejected as a misleading pattern can be correctly recognized by comparing the coordinates of the branches.
なお比べるべき枝をカテゴリ対を用いて限定したために
、あらゆる枝の座標を比較するという冗長な処理をせず
にすみ、ハードウエアを簡単化できるとともに認識精度
を高めることができる。Note that since the branches to be compared are limited using category pairs, there is no need for the redundant process of comparing the coordinates of all branches, making it possible to simplify the hardware and improve recognition accuracy.
第1図はまぎられしいパターン対の1例を示す図、第2
図は本発明の実施例を示す概略構成図、第3図は、パラ
メータ表の内容を示す図、第4図は枝の両端の座標のと
り方を示す図、第5図は、座標比較回路を示す図である
。
12はパラメータ表を格納する記憶装置、10,13は
それぞれ、そのアドレスレジスタおよびメモリレジスタ
である。
15は枝表の格納された記憶装置、14,16はそれぞ
れ、そのアドレスレジスタおよびメモリレジスタである
。
1T,20,21,23,26はレジスタ、18,24
,25は比較器、19は減算器、22は加算器である。Figure 1 shows an example of a confusing pattern pair, Figure 2 shows an example of a confusing pattern pair;
3 is a diagram showing the contents of a parameter table, FIG. 4 is a diagram showing how to take the coordinates of both ends of a branch, and FIG. 5 is a diagram showing a coordinate comparison circuit. FIG. 12 is a storage device for storing a parameter table, and 10 and 13 are its address register and memory register, respectively. 15 is a storage device in which the branch table is stored, and 14 and 16 are its address register and memory register, respectively. 1T, 20, 21, 23, 26 are registers, 18, 24
, 25 is a comparator, 19 is a subtracter, and 22 is an adder.
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 determination step of re-determining which of the patterns it belongs to, the second determination step creates a branch table that defines the branches of the input pattern, and then determines which of the standard patterns it belongs to. By quoting the coordinates of both ends or one end of a branch in a predetermined part from the above branch table,
A pattern recognition method comprising the step of comparing the input pattern with each of the standard patterns and performing the re-judgment.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP49130975A JPS598864B2 (en) | 1974-11-15 | 1974-11-15 | Pattern recognition method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP49130975A JPS598864B2 (en) | 1974-11-15 | 1974-11-15 | Pattern recognition method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS5157143A JPS5157143A (en) | 1976-05-19 |
| JPS598864B2 true JPS598864B2 (en) | 1984-02-28 |
Family
ID=15046966
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP49130975A Expired JPS598864B2 (en) | 1974-11-15 | 1974-11-15 | Pattern recognition method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS598864B2 (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS61211166A (en) * | 1985-03-15 | 1986-09-19 | Toyoda Mach Works Ltd | Controller for power steering device |
-
1974
- 1974-11-15 JP JP49130975A patent/JPS598864B2/en not_active Expired
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS61211166A (en) * | 1985-03-15 | 1986-09-19 | Toyoda Mach Works Ltd | Controller for power steering device |
Also Published As
| Publication number | Publication date |
|---|---|
| JPS5157143A (en) | 1976-05-19 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| KR880002662B1 (en) | Character recognition device | |
| JPS6140684A (en) | Contour tracking device | |
| JPS598864B2 (en) | Pattern recognition method | |
| JPS56149676A (en) | Pattern recognizer | |
| JPS63205698A (en) | Pattern identifier | |
| JP2801602B2 (en) | Word recognition device | |
| JP3066530B2 (en) | Online handwriting recognition device | |
| JPH0376065B2 (en) | ||
| JPS598863B2 (en) | Pattern recognition method | |
| JP3046711B2 (en) | Correlation arithmetic unit | |
| JP2918380B2 (en) | Post-processing method of character recognition result | |
| JP2684818B2 (en) | Distance value calculation / extraction circuit in character recognition device | |
| JPS6349274B2 (en) | ||
| JPS62162182A (en) | Extraction system for bending point of hand-written picture input device | |
| KR890003724B1 (en) | Minimization of Character Pattern Strings and Circuit for Performing This Method | |
| JPS63103393A (en) | Word recognizing device | |
| JPS5975374A (en) | Character recognizer | |
| JPS59221772A (en) | Pre-processor for recognition of on-line handwritten pattern | |
| JPH01183796A (en) | Character recognizing device | |
| JPS58218090A (en) | Memory circuit | |
| JPS6022793B2 (en) | character identification device | |
| JPH0425981A (en) | Data processor and data processing method | |
| JPH0527917B2 (en) | ||
| JPS5814708B2 (en) | Pattern recognition device classification device | |
| JPS60138689A (en) | Character recognizing method |