Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPS598862B2 - Pattern recognition method - Google Patents
[go: Go Back, main page]

JPS598862B2 - Pattern recognition method - Google Patents

Pattern recognition method

Info

Publication number
JPS598862B2
JPS598862B2 JP49130973A JP13097374A JPS598862B2 JP S598862 B2 JPS598862 B2 JP S598862B2 JP 49130973 A JP49130973 A JP 49130973A JP 13097374 A JP13097374 A JP 13097374A JP S598862 B2 JPS598862 B2 JP S598862B2
Authority
JP
Japan
Prior art keywords
pattern
branch
standard
branches
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
Application number
JP49130973A
Other languages
Japanese (ja)
Other versions
JPS5157141A (en
Inventor
彰三 門田
好司 藤本
雅夫 山本
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.)
Hitachi Ltd
Original Assignee
Hitachi Ltd
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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP49130973A priority Critical patent/JPS598862B2/en
Publication of JPS5157141A publication Critical patent/JPS5157141A/ja
Publication of JPS598862B2 publication Critical patent/JPS598862B2/en
Expired legal-status Critical Current

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. Also, there are cases where an input pattern is accepted as two or more standard patterns, and it is not clear which category to judge.

通常そのようなパターンはまぎられしいパターンとして
リジエクトされている。すなわち、入力パターンに最も
近い標準パターンとの類似度をSmx、次に近い標準パ
ターンとの類似度をSmx、とすると5mx≧ε1・s
nx≧ε1 ・・・・・・・・・・・・(1)5mx−
5nx≧ε3 ・・・・・・・・・・・・・・・・・・
(2)ただしε1・ε2は閾値がなりたつてはじめて
、入力パターンは標準パターンmと同じカテゴリに属す
ると判定され、この条件が満たされないときはリジエク
トされる。
Usually, such patterns are rejected as confusing patterns. In other words, if the similarity with the standard pattern closest to the input pattern is Smx, and the similarity with the next closest standard pattern is Smx, then 5mx≧ε1・s
nx≧ε1 ・・・・・・・・・・・・(1)5mx−
5nx≧ε3 ・・・・・・・・・・・・・・・・・・
(2) However, the input pattern is determined to belong to the same category as the standard pattern m only after the threshold values of ε1 and ε2 are reached, and if this condition is not met, the input pattern is rejected.

しかし、5mx−5nx<ε2 ・・・・・・・・・・
・・・・・(3)の条件が満たされてリジエクトされる
パターンであつても人が見れば明らかに区別し得る場合
が多い。
However, 5mx-5nx<ε2...
...Even if the condition (3) is satisfied and the pattern is rejected, it is often clearly distinguishable by humans.

たとえば第1図に示す″7”bs”とは、人は″7”の
右上の枝は短く、゛T”のそれは長いことを知つており
、両者を区別することができる。本発明はこのようなパ
ターンを区別するために枝の長さを利用することを特徴
としている。枝の長さを比較する場合に、入力パターン
がどのパターンに近いかの情報を知つていれば比較しや
すι゛したがつて判定部では二つ以上の標準パターンに
似ていてリジエクトする場合には、どの標準パターンに
最も近いかの情報もあわせて出力し、それをもとに枝の
長さの比較を行なうものとする。以下、本発明の具体的
実施例を図を参照しつつ説明する。第2図は、本発明の
パターン認識装置を示す概略構成図である。紙上に書か
れた文字は光電変換装置により電気信号に変換され、前
処理装置に送られる。前処理装置ではノイズの除去、大
きさの正規化、位置の正規化などを行なつて1文字ずつ
切り出す。各文字パターンは細め回路により1ビツトの
線幅の線図形に変換される。この線図形から端点、分岐
点などの特徴点を抽出する。次に線図形から各特徴点を
始端および終端とする方向コード列が方向コード化回路
により作られる。方向コード化回路というのは始端から
順に、微小線素の方向を方向コードで表わし、線にそつ
て終端までコード化するもので、それぞれの枝について
、方向コード列とともに、枝の始端、終端の座標、枝の
長さなどを内容とする枝表とよばれる表を作成する。以
上の説明では、人力パターンを細めて線図形化し、線図
形から特徴点、方向コードおよび枝の長さを求める場合
を例にあげたが、特徴抽出回路としては、上記の外にい
ろいろ考えられる。
For example, regarding "7" bs shown in FIG. 1, humans know that the upper right branch of "7" is short and that of "T" is long, and can distinguish between the two. The present invention is characterized in that branch lengths are used to distinguish such patterns. When comparing branch lengths, it is easier to compare if you know which pattern the input pattern is close to.Therefore, in the judgment section, if the input pattern is similar to two or more standard patterns and is rejected. The information on which standard pattern is closest is also output, and the lengths of the branches are compared based on that information. Hereinafter, specific embodiments of the present invention will be described with reference to the drawings. FIG. 2 is a schematic configuration diagram showing the 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. The preprocessing device removes noise, normalizes the size, normalizes the position, and cuts out each character. Each character pattern is converted into a line figure with a line width of 1 bit by a narrowing circuit. Feature points such as end points and branch points are extracted from this line figure. Next, a direction code string is created from the line figure by a direction coding circuit, with each feature point as the starting and ending point. A direction encoding circuit represents the direction of a minute line element with a direction code in order from the start end, and encodes it along the line to the end.For each branch, along with the direction code string, Create a table called a branch table containing coordinates, branch lengths, etc. In the above explanation, we took as an example a case in which a human-powered pattern is thinned into a line figure, and feature points, direction codes, and branch lengths are obtained from the line figure, but there are various other possible feature extraction circuits that can be considered as feature extraction circuits. .

枝の長さが何らかの方法で求められるのであれば他の特
徴抽出回路を用いてもかまわないことが明らか 二であ
る。入力パターンが枝ごとにコード列で表わされれば、
標準パターンと枝ごとに対応をつけ【マツーチングを行
なう。
It is clear that other feature extraction circuits may be used as long as the length of the branches can be determined by some method. If the input pattern is expressed as a code string for each branch,
Make a correspondence between the standard pattern and each branch and perform mapping.

入力パターンと最も近い標準パターンのカテゴリをCm
,類似度をSmx,次に近い 工標準パターンのカテゴ
リをCn,類似度をSnxとして(1)式および(2)
式が満足されれば、入力パターンはカテゴリCmに属す
と判定される。もしも(3)式が満足されればカテゴリ
Cm,Cnを出力として枝の長さ比較回路に送られる。
枝の長さ比較回 5路では、Cm,Cnにより比べるべ
き枝を求め、比較して入力パターンの属すべきカテゴリ
を求める。調べるべき枝は、カテゴリ対Cm,Cnによ
つて異なるので、あらかじめ、それらを表にしておぼえ
ておく。あるいはハードウエア化するとき ごにCmC
nをバラメータにして異なつた回路へ入力させても良い
。簡単のためにカテゴリ対により調べるべき枝がテーブ
ルの形で記憶されている場合を例にあげて説明する。
Cm the category of the standard pattern closest to the input pattern
, the similarity is Smx, the category of the next closest technical standard pattern is Cn, and the similarity is Snx. Equations (1) and (2)
If the formula is satisfied, it is determined that the input pattern belongs to category Cm. If equation (3) is satisfied, the categories Cm and Cn are output and sent to the branch length comparison circuit.
In the branch length comparison circuit 5, branches to be compared are determined using Cm and Cn, and the category to which the input pattern belongs is determined by comparison. Since the branches to be examined differ depending on the category pair Cm and Cn, remember them in advance in a table. Or when converting to hardware, CmC
It is also possible to use n as a parameter and input it to different circuits. For the sake of simplicity, an example will be described in which branches to be examined are stored in the form of a table based on category pairs.

第3図に示す表は、カテゴリ対、枝番 4号、閾値など
の入つたバラメータ表である。第3図において″7″や
6T”のパターンを書いた欄がカテゴリ対を示す欄であ
る。図中で、1や2と印したのは枝番号を示す。次の欄
は比較すべき枝番号を示す。右端の欄は閾値を示す。判
定回路でリジエクトされて、枝比較回路に、カテゴリ対
゛7T″とともに入力されれば、2番目の枝と3番目の
枝の長さを比較する。
The table shown in FIG. 3 is a parameter table containing category pairs, branch numbers 4, thresholds, etc. In Figure 3, the columns with patterns of "7" and 6T are columns indicating category pairs. In the figure, the columns marked 1 and 2 indicate branch numbers. The next column is the branch to be compared. The number is shown.The rightmost column shows the threshold value.If it is rejected by the judgment circuit and inputted to the branch comparison circuit together with the category pair "7T", the lengths of the second branch and the third branch are compared. .

それぞれの枝の長さをL2,L3とするとL3−L2〉
T2 のときは″7― L3−L2≦T1 のときは″T″を出力する。
Letting the length of each branch be L2 and L3, L3-L2〉
When T2, it outputs "7-" When L3-L2≦T1, it outputs "T".

ただし、Tl,T2はバラメータ表に与えられた閾値で
ある。以上の処理を第4図に示す枝の長さ比較回路によ
りさらにくわしく説明する。
However, Tl and T2 are threshold values given in the parameter table. The above processing will be explained in more detail with reference to the branch length comparison circuit shown in FIG.

枝表は方向コード化回路によりすでに作成されているも
のとし、バラメータ表はカテゴリ対、枝番号、閾値など
があらかじめ与えられているものとする。
It is assumed that the branch table has already been created by the direction encoding circuit, and that the parameter table has category pairs, branch numbers, threshold values, etc. given in advance.

第4図の12はバラメータ表の格納されている記憶装置
、15は枝表(簡単のために枝の長さのみ格納されてい
るものとする)の格納されている記憶装置である。判定
回路よりの出力カテゴリ対CmCnがレジスタ17にセ
ツトされる。アドレスレジスタ10をバラメータ表の先
頭にあわせ、内容を読み出し、メモリレジスタ13に格
納する。13に読み出された内容のうちCl,C2をC
mCnと比較器18を用いて比較する。
Reference numeral 12 in FIG. 4 is a storage device in which a parameter table is stored, and 15 is a storage device in which a branch table (for simplicity, it is assumed that only branch lengths are stored). The output category pair CmCn from the determination circuit is set in the register 17. The address register 10 is set to the beginning of the parameter table, and the contents are read out and stored in the memory register 13. 13, Cl and C2 are changed to C
A comparison is made using mCn and comparator 18.

それらが等しくないときには11の加算器を働かせて、
アドレスレジスタ10の内容を一つカウントアツプする
。もしも等しければ11の内容をアドレスレジスタ14
にセツトし、枝表の内容を16のメモリレジスタに読み
出す。レジスタ16の内容を信号103を使つてレジス
タ19へ移す。次に信号102で12の内容をアドレス
レジスタ14へ移し、枝表の内容をレジスタ16へ読み
出し、さらに信号104でゲートを開いてレジスタ20
へ移す。減算器21はLi,Ljを演算し、結果を比較
器23へ移す。比較器ではLi−LJの結果とT2とを
比較する。Li,LJ>T2であればCmの内容をレジ
スタ22へ移し、Li−Lj≦T2であれば比較器24
でL1−LjとT1を比較する。Li−Lj≦T1のと
きにはCmの内容をレジスタ22に移す。Li−Lj>
T1のときにはリジエクト信号を出力する。上記の例で
は、二本の枝の長さの差を閾値と比較しているが、枝の
長さを比較するのに必ずしも二本の枝の長さの差ばかり
みる必要はない。
If they are not equal, run 11 adders,
The contents of address register 10 are counted up by one. If they are equal, the contents of 11 are transferred to address register 14.
and reads the contents of the branch table into 16 memory registers. The contents of register 16 are transferred to register 19 using signal 103. Next, the contents of 12 are transferred to the address register 14 by the signal 102, the contents of the branch table are read to the register 16, and the gate is opened by the signal 104, and the contents of the register 20 are read.
Move to. The subtracter 21 calculates Li and Lj and transfers the result to the comparator 23. The comparator compares the Li-LJ result with T2. If Li,LJ>T2, the contents of Cm are transferred to the register 22, and if Li-Lj≦T2, the contents of Cm are transferred to the comparator 24.
Compare L1-Lj and T1. When Li-Lj≦T1, the contents of Cm are transferred to the register 22. Li-Lj>
At T1, a reject signal is output. In the above example, the difference in length between the two branches is compared with the threshold value, but it is not necessary to only look at the difference in length between the two branches in order to compare the lengths of the branches.

一本の枝の長さで比較してもよいし、3本以上の枝の長
さの関係をたとえば、重みづけして用いてもよい。また
、標準パターン中の注目している2本の枝どうしの長さ
比と、未知パターン中の2本の枝どうしの長さ比とを比
較して、これを判断基準としてもよい。いずれにしても
本発明を使用することにより、従来はまぎられしいパタ
ーンとしてリジエクトされていたパターンであつても枝
の長さを比較することにより正しく認識できる。
The length of a single branch may be used for comparison, or the relationship between the lengths of three or more branches may be weighted and used. Alternatively, the length ratio between the two branches of interest in the standard pattern and the length ratio between the two branches in the unknown pattern may be compared, and this may be used as the criterion. In any case, by using the present invention, even patterns that were conventionally rejected as confusing patterns can be correctly recognized by comparing the lengths 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 lengths of all branches, which makes it possible to simplify the hardware and improve recognition accuracy.

【図面の簡単な説明】 第1図はまぎられしいパターン対の1例を示す図、第2
図は杢発明の実施例を示す概略構成図、第3図は、バラ
メータ表の内容を示す図、第4図は、枝の長さ比較回路
を示す図である。 12はバラメータ表の格納された記憶装置、10はアド
レスレジスタ、13はメモリレジスタである。 15は枝表の格納された記憶装置、14はそのアドレス
レジスタ、16はメモリレジスタである。 17は判定回路から出力されたカテゴリ対を入れるレジ
スタ、19,20,22はレジスタ、18,23,24
は比較器、21は減算器である。
[Brief explanation of the drawings] Figure 1 is a diagram showing an example of a confusing pattern pair, Figure 2 is a diagram showing an example of a confusing pattern pair;
3 is a diagram showing the contents of a parameter table, and FIG. 4 is a diagram showing a branch length comparison circuit. 12 is a storage device in which a parameter table is stored, 10 is an address register, and 13 is a memory register. 15 is a storage device in which the branch table is stored, 14 is its address register, and 16 is a memory register. 17 is a register for storing the category pair output from the determination circuit; 19, 20, 22 are registers; 18, 23, 24
is a comparator, and 21 is a subtracter.

Claims (1)

【特許請求の範囲】[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 having a second determination step of re-determining which of the patterns it belongs to, the second determination step uses the length of a branch in a predetermined portion of the standard pattern. A pattern recognition method comprising the step of comparing the input pattern with each of the standard patterns and making the re-judgment.
JP49130973A 1974-11-15 1974-11-15 Pattern recognition method Expired JPS598862B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP49130973A JPS598862B2 (en) 1974-11-15 1974-11-15 Pattern recognition method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP49130973A JPS598862B2 (en) 1974-11-15 1974-11-15 Pattern recognition method

Publications (2)

Publication Number Publication Date
JPS5157141A JPS5157141A (en) 1976-05-19
JPS598862B2 true JPS598862B2 (en) 1984-02-28

Family

ID=15046922

Family Applications (1)

Application Number Title Priority Date Filing Date
JP49130973A Expired JPS598862B2 (en) 1974-11-15 1974-11-15 Pattern recognition method

Country Status (1)

Country Link
JP (1) JPS598862B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5853389B2 (en) * 1976-03-30 1983-11-29 富士通株式会社 character identification device

Also Published As

Publication number Publication date
JPS5157141A (en) 1976-05-19

Similar Documents

Publication Publication Date Title
US4040009A (en) Pattern recognition system
JPS6140684A (en) Contour tracking device
US4015239A (en) Character recognition apparatus
JPS598862B2 (en) Pattern recognition method
JPS598864B2 (en) Pattern recognition method
JPS56149676A (en) Pattern recognizer
JP3985614B2 (en) Automatic identification method of serial memory
JPH024033B2 (en)
JPH0458073B2 (en)
JP2686745B2 (en) Character reader
JPS5958971A (en) Coding circuit
JPS6111886A (en) Character recognition system
JPS63103393A (en) Word recognizing device
JPH0475556B2 (en)
JPS6043556B2 (en) character reading device
SU842870A1 (en) Device for recognizing symbols
JPS63208182A (en) Pattern recognizing device
JPS59106084A (en) Character reader
SU585520A1 (en) Command recognition apparatus
JPS62280985A (en) optical character reader
JPS599336Y2 (en) character recognition device
JPS5922178A (en) Pattern recognition device
JPS5897784A (en) Character discriminator
JP2655637B2 (en) Voice pattern matching method
JPS60138689A (en) Character recognizing method