JPS59117674A - Pattern matching processing system of graphic pattern extracting processing - Google Patents

Pattern matching processing system of graphic pattern extracting processing

Info

Publication number
JPS59117674A
JPS59117674A JP57231860A JP23186082A JPS59117674A JP S59117674 A JPS59117674 A JP S59117674A JP 57231860 A JP57231860 A JP 57231860A JP 23186082 A JP23186082 A JP 23186082A JP S59117674 A JPS59117674 A JP S59117674A
Authority
JP
Japan
Prior art keywords
pattern
dictionary
symbol
matching
matching operation
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
JP57231860A
Other languages
Japanese (ja)
Inventor
Junji Hatsuzaki
初崎 純士
Shigemi Osada
茂美 長田
Akira Inoue
彰 井上
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP57231860A priority Critical patent/JPS59117674A/en
Publication of JPS59117674A publication Critical patent/JPS59117674A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To improve processing speed by stopping succeeding matching operation to start matching operation to the next dictionary pattern when the degree of disaccord between a sample pattern and a dictionary pattern exceeds a preliminarily determined threshold. CONSTITUTION:A dictionary pattern is preliminarily generated for all logical notational symbols to be extracted to register in dictionary. In case of the automatic extraction of a logical notational symbol, a sample pattern having MXXMY size in the position, extracting the symbol from an input pattern is called and the matching operation to the individual dictionary pattern of said dictionary is performed in accordance with an equation I . In the equation I , Wxy is given by an equation II. When an overall evaluated value E indicated by said equation I exceeds a prescribed threshold which is set for the purpose of absorbing the influence of deformation due to hand-writing or the like, the sample pattern is judged to be not the symbol of the dictionary pattern, and the succeeding matching operation is stopped to start the matching operation to the next dictionary pattern.

Description

【発明の詳細な説明】 (4)発明の技術分野 本発明は2図形パターン抽出処理におけるパターンマツ
チング処理方式、特に予め定められた格子軸の上に沿っ
て描かれた図面内からある特定の図形パターンを自動抽
出する場合におけるパターンマツチング方式に関するも
のである。
Detailed Description of the Invention (4) Technical Field of the Invention The present invention relates to a pattern matching processing method in two-figure pattern extraction processing, and in particular, to a pattern matching processing method in two-figure pattern extraction processing. This invention relates to a pattern matching method when automatically extracting graphic patterns.

(B)  技術の背景と問題点 この技術分野の応用例としては、論理回路図面等のよう
に、予め定められた格子軸を基準として描かれた論理表
記シンボルと、格子軸上に沿って描かれた論理表記シン
ボル間の配線パターンとシンボルの名称を意味する文字
が混在する図面の中から論理表記シンボルの位置および
形状を自動抽出するものがある。
(B) Technical Background and Problems Application examples of this technical field include logic notation symbols drawn with reference to predetermined lattice axes, such as logic circuit drawings, and logic notation symbols drawn along the lattice axes. There is a method that automatically extracts the position and shape of a logical notation symbol from a drawing in which wiring patterns between the logical notation symbols and characters that mean the names of the symbols coexist.

これを実現する方法として1本出願人は先に「線パター
ン自動認識方式J(fi、願昭56−482524)、
rパターンマツチング方式J(特願昭57−43954
号)等の数種の提案を行っている。これらは上記のよう
な例えば手書き等にょシ描がれた図面を光学的に軟取如
、この人力画像情報を格子点を中心とした小さな矩形領
域単位で情報を圧縮して格子点近傍の情報をコード化し
、この圧縮コードを用いて論理表記シンボルを抽出する
ようにしている。そしてこれら提案においては、後述の
実施例でも示すように、入力画像データの格子点を中心
とした矩形領域のそれぞれを検証回路によ、り 、 (
1)画像データの格子軸に対する水平、垂直方向のズレ
をサイズを異にする2つの検証窓を用いて、第1.第2
の検証処理を行って、線パターンが存在する方向とそれ
のズしている方向とを検出し、 (I+)続いて第1.
第2の検証処理の結果得られる正規化された画像データ
に対し、第3の検証窓を用いる第3の検証処理にょシあ
いまい情報を検出し、 (iil)そして最終的に第1
.第2.第3の検証処理の結果を統合して、それぞれの
格子虚毎に第1図に示す格子点ラベルコードを得るよう
にして込る。第1図図示の格子点ラベルコードにおける
16ビツトの区分のうち、第12〜15ピツトは正規化
された画像データの線パターンの有無を格子点から4方
向すなわち下の)、左部)、上0.右■に対応して1ま
たは0を与えることによって表わし。
As a method for realizing this, the applicant has previously proposed ``Line pattern automatic recognition method J (fi, patent application No. 56-482524).
r pattern matching method J (Japanese Patent Application No. 57-43954
We have made several proposals, including (No. 1). These methods include optically taking a hand-drawn drawing such as the one mentioned above, and compressing this human image information into small rectangular areas centered around the grid points to generate information in the vicinity of the grid points. is encoded, and this compressed code is used to extract logical notation symbols. In these proposals, as will be shown in the examples described later, each rectangular area centered on a lattice point of input image data is verified by a verification circuit.
1) The horizontal and vertical deviations of the image data relative to the grid axis are determined using two verification windows of different sizes. Second
The verification process is performed to detect the direction in which the line pattern exists and the direction in which it is shifted.
A third verification process using a third verification window detects ambiguous information on the normalized image data obtained as a result of the second verification process;
.. Second. The results of the third verification process are integrated to obtain the lattice point label code shown in FIG. 1 for each imaginary lattice. Of the 16-bit divisions in the lattice point label code shown in Figure 1, the 12th to 15th pits indicate the presence or absence of a line pattern in the normalized image data in four directions from the lattice point, namely (lower), left), upper). 0. Represented by giving 1 or 0 corresponding to ■ on the right.

これらの方向に対応してズレ方向が第3〜6ビツトに、
あいまい方向が第8〜11ビツトに示され。
Corresponding to these directions, the shift direction is 3rd to 6th bits,
The ambiguous direction is shown in the 8th to 11th bits.

あいまい方向とズレ方向との有無に応じてそれぞれ第θ
ビットと第7ビツトに7ラグが設けられている。
θth depending on the presence or absence of the ambiguous direction and the misalignment direction.
Seven lags are provided for the bit and the seventh bit.

上記の提案におじでは、上述のようにして格子点ラベル
コードを仮決定しく初期格子点ラベルコード)1手書き
等にょる線パターン切れ補正、ズレ補正、あいまい補正
等の処理を施して、各ビットを操作した結果の格子点ラ
ベルコードを入カバターンとする。そして論理表記シン
ボルが抽出されるであろう位置での辞書パターンの大き
さに対応した大きさにまとめられた格子点ラベルコード
群を標本パターンとし、当該標本パターンと抽出すべき
論理表記シンボルパターンの4方向コードを登録した辞
書パターンとで、各格子点対応に「一致度Jに着目した
形でマツチング演算を行い。
In accordance with the above proposal, the lattice point label code is tentatively determined as described above, the initial lattice point label code) 1 is processed by handwritten line pattern breakage correction, misalignment correction, ambiguity correction, etc., and each bit is Let the grid point label code resulting from the operation be the input cover pattern. Then, a group of lattice point label codes compiled into a size corresponding to the size of the dictionary pattern at the position where the logical notation symbol will be extracted is taken as a sample pattern, and the sample pattern and the logical notation symbol pattern to be extracted are Using the dictionary pattern in which the 4-way code is registered, a matching operation is performed for each grid point, focusing on the degree of matching J.

論理表記シンボルの位置とその形状を自動抽出している
The position and shape of logical notation symbols are automatically extracted.

しかし、このような論理表記シンボルを自動抽出する場
合、論理表記シンボルに様々な大きさのものかあり、し
かも手書きによる変形が生じる可能性が高いから、マツ
チング演算による判定には。
However, when automatically extracting such logical notation symbols, the logical notation symbols have various sizes and are likely to be deformed by handwriting, so it is difficult to make a judgment using matching calculations.

第1にそれぞれの辞書パターンの大きさが異なるために
、この大きさに合わせてマツチング演算の評価値も変え
る必要があわ、第2に変形によふ影響を吸収するために
マツチング演算の評価値に閾値を設定する必要がある。
Firstly, since the sizes of each dictionary pattern are different, it is necessary to change the evaluation value of the matching operation according to this size.Secondly, the evaluation value of the matching operation must be changed in order to absorb the influence of deformation. It is necessary to set a threshold for

このために、おる位置での標本パターンは、多くとも1
つの辞書パターンとしかマツチしないにもかかわらず9
個々の辞書パターンとのマツチング演算を最終まで行い
For this reason, the sample pattern at the position is at most 1
9 even though it only matches one dictionary pattern
Performs matching calculations with individual dictionary patterns until the final stage.

その評価値が設定した閾値を越えるか否がで判定してい
るので、辞書全体とのマツチング処理に厖大な時間がか
かつていた。
Since the evaluation value is determined based on whether or not it exceeds a set threshold value, it takes an enormous amount of time to perform matching processing with the entire dictionary.

(C)  発明の目的と構成 本発明は、上記従来提案における問題点を解決するとと
を目的としているものであり、標本パターンと辞書に登
録されている個々の辞書パターンとの不一致を早期に判
定し、マツチング演算を中止させることで、辞書全体と
のマツチング処理を高速に実行できるようにしたパター
ンマツチング方式を提供することを目的とする。そして
そのため2本発明においては、マツチング演算を標本パ
ターンと辞書に登録されている辞書パターンとの「不一
致度Jに着目し、演算過程で不一致度数が予め定められ
た閾値を越えると、その辞書パターンに対する以後のマ
ツチング演算を中止し2次の辞書パターンとのマツチン
グ演算を開始させるようにしたものである。
(C) Object and Structure of the Invention The present invention aims to solve the problems in the above-mentioned conventional proposals, and it is possible to quickly determine the mismatch between a sample pattern and each dictionary pattern registered in a dictionary. However, it is an object of the present invention to provide a pattern matching method that can perform matching processing with the entire dictionary at high speed by stopping the matching operation. Therefore, in the present invention, the matching operation is performed by focusing on the degree of mismatch J between the sample pattern and the dictionary pattern registered in the dictionary, and when the degree of mismatch exceeds a predetermined threshold in the calculation process, The subsequent matching calculation for the dictionary pattern is stopped and the matching calculation for the secondary dictionary pattern is started.

■)発明の実施例 第2図な旨し第4図は本発明の詳細な説明する説明図で
ある。
(2) Embodiment of the Invention FIG. 2 is an explanatory diagram for explaining the present invention in detail.

第2図は本発明に言う標本パターンを構成している格子
点の1格子点についての4方向コードを表わしておシア
4ビツトの4方向コードR1+ P 21P、s 、 
P i はそれぞれ格子点ラベルコードの4方向コード
D、L、U、Rに相当する。
FIG. 2 shows a 4-way code for one of the lattice points constituting the sample pattern according to the present invention.
P i corresponds to four-way codes D, L, U, and R of the grid point label code, respectively.

第3図は本発明に言う辞書パターンを構成している格子
点の1格子点についての情報コードを表わしておシ、第
0〜3ビットは標準パターンコードであって標準パター
ンとして格子点から対応する方向に線分パターンが存在
すべきか否かを下(Al)左(Am)、上(A3) 、
右(A4)で表わし、第4〜7ビツトはドントケアコー
ドであって標準パターンとして格子点から対応する方向
に線パターンが存在していてもいなくてもよいことを下
(Nl) 、左(N2) 、上(Ns)。
Figure 3 shows the information code for one grid point of the grid points that make up the dictionary pattern according to the present invention, and the 0th to 3rd bits are standard pattern codes and correspond from the grid point as a standard pattern. Whether there should be a line segment pattern in the direction of down (Al), left (Am), up (A3),
The 4th to 7th bits are don't care codes, and the line pattern may or may not exist in the corresponding direction from the grid point as a standard pattern. ), top (Ns).

右(N4)で表わしている。また、その格子点全体がマ
ツチング演算の対象となるか否かを表わすシンボル領域
フラグを9ビツト目に設けている。
It is represented by the right (N4). Further, a symbol area flag indicating whether or not the entire grid point is to be subjected to matching calculation is provided at the 9th bit.

第4図には辞書パターンを説明する説明図を示す。同図
(a)は論理表記シンボルの一例として示した3人力A
NDゲートであシ、同図C)は同図(a)のシンボルの
形状が影響を及ぼすと考えられる領域(MX、MYはそ
の大きさを表わす)および4方向コードパターンを示し
ている。すなわち、各格子点に対し4方向コードを図形
で表わしたもので。
FIG. 4 shows an explanatory diagram for explaining dictionary patterns. Figure (a) shows a three-man power A as an example of a logical notation symbol.
ND gate (C) in the same figure shows a region (MX, MY represent the size) and a four-way code pattern that are considered to be affected by the shape of the symbol in (a) of the same figure. In other words, it is a graphical representation of the four-way code for each grid point.

丸印は格子点を、太線は格子点からその方向に線パター
ンが存在すべきことを、二重線は格子点からその方向に
線パターンが存在していてもいなくてもよいこと(ドン
トケア)を、線が無い方向は線パターンが存在してはな
らないことを表わしている。同図(a)のシンボルの右
上、右下の部分は曲線になって込るのでこの部分での4
方向コード情報はあいまいであシ、そのため、同図(−
fL)に示すパターンのこの部分はドントケアとなって
いる。−向。
A circle indicates a grid point, a thick line indicates that a line pattern should exist in that direction from the grid point, and a double line indicates that a line pattern may or may not exist in that direction from the grid point (don't care). The direction in which there are no lines indicates that there should be no line pattern. The upper right and lower right parts of the symbol in figure (a) are curved, so the 4
The direction code information is ambiguous, so the
This part of the pattern shown in fL) is a don't care. - towards.

同図(e)は同図C)の標準パターンの第3列目に対応
する辞書パターンを示したも°のである。また、このシ
ンボルの辞書パターンの大きさはMxXMyとなる。
Figure (e) shows a dictionary pattern corresponding to the third column of the standard pattern in figure C). Further, the size of the dictionary pattern of this symbol is MxXMy.

以上のようにして、抽出すべき全ての論理表記シンボル
について辞書パターンを作成して辞書に登録しておく。
As described above, dictionary patterns are created for all logical notation symbols to be extracted and registered in the dictionary.

そして、論理表記シンボルの自動抽出においては、入カ
バターンよりシンボルが抽出される位置からMxXMy
の大きさの標本パターンを呼出し、辞書内の個々の辞書
パターンとのマツチング演算を次式に従って行う。いま
シンボルの全体的な評価値をEとすると。
In automatic extraction of logical notation symbols, MxXMy
A sample pattern with a size of is called, and a matching operation with each dictionary pattern in the dictionary is performed according to the following equation. Let us now assume that the overall evaluation value of the symbol is E.

ここで、−格子点描シの評価値W□は、第2図に示す入
カバターンの4方向コードPと、第3図に示す標準パタ
ーンAと、ドントケアコードNとにもとづいて次式の如
く与えられる。
Here, the evaluation value W□ of the -lattice stippling pattern is given as follows based on the four-way code P of the input pattern shown in FIG. 2, the standard pattern A shown in FIG. 3, and the don't care code N. It will be done.

この−格子点描シの評価値W2vは、標本パーターンと
辞書パターンとの4方向コードが全て一致する場合は最
小値″0”をとり、全て不一致の場合は最大値″4”を
とる。そして、全体的な評価値Eはシンボルの形状が影
響を及はすと考えられる領域内の全格子点の評価値の和
で表わされる。この全体的な評価値Eに対して1手書き
等による変形の影響を吸収するために閾値を設定し、こ
の閾値以下であればシンボルと判定される。そのために
2本発明においては、マツチング演算過程で全体的な評
価kEがこの閾値を越えた場合は、標本パターンはその
辞書パターンのシンボルではないと判定でき、以後のマ
ツチング演算を中止し1次の辞書パターンとのマツチン
グ演算を開始するようにする。そして、最終的に全ての
辞書パターンとマツチング演算を行った結果全体的な評
価値Eが最小のものが、その辞書パターンの形状を持っ
たシンボルとして標本パターンを入カバターンよシ呼出
した位置において抽出されたことになる。また。
The evaluation value W2v of this lattice pointillism takes the minimum value "0" when all the four-way codes of the sample pattern and the dictionary pattern match, and takes the maximum value "4" when they all do not match. The overall evaluation value E is expressed as the sum of the evaluation values of all grid points within a region considered to be influenced by the shape of the symbol. A threshold value is set for this overall evaluation value E in order to absorb the influence of deformation due to one handwriting, etc., and if it is less than this threshold value, it is determined to be a symbol. Therefore, in the present invention, if the overall evaluation kE exceeds this threshold value during the matching calculation process, it can be determined that the sample pattern is not a symbol of the dictionary pattern, and the subsequent matching calculation is stopped and the first-order Starts matching operation with dictionary pattern. Finally, as a result of performing a matching operation with all dictionary patterns, the one with the smallest overall evaluation value E is extracted as a symbol with the shape of that dictionary pattern at the position where the sample pattern is recalled from the input pattern. It means that it was done. Also.

全ての辞書パターンとマツチしなかった。つまシ全体的
な評価値Eが全て閾値を越えた場合は、その位置におい
てはシンボルが存在しなかったことになる。
It did not match all dictionary patterns. If all of the overall evaluation values E exceed the threshold, it means that no symbol exists at that position.

第5図は上述の原理に従う本発明の実施例のプロック図
である。
FIG. 5 is a block diagram of an embodiment of the invention according to the principles described above.

図において2手書き図面が画像入力装置1によシ読取ら
れ2画像データが画像メモリ2に記憶される。この画像
メモリ2に記憶された画像データから図面の基準点の入
力状態が基準点検出回路4によシ検出され、その入力歪
に基づき補正された各格子点のアドレスが格子点テーブ
ル5に保持される。
In the figure, two handwritten drawings are read by an image input device 1 and two image data are stored in an image memory 2. The input state of the reference point of the drawing is detected by the reference point detection circuit 4 from the image data stored in the image memory 2, and the address of each grid point corrected based on the input distortion is stored in the grid point table 5. be done.

次に、制御部11はこの格子点テーブル5から得られた
アドレスに基づき2画像メモリ2から格子軸間のサイズ
で2×2の大きさの部分画像データを読出し、これを格
子変換回路(水平)6および格子変換回路(垂直)8に
転送し、その結果得られた情報を格子点ラベルコード生
成回路(水平)7および格子点ラベルコード生成回路(
垂直)9においてそれぞれ処理し、初期格子点ラベルコ
ードLBOを生成し、これをLBOテーブル13に格納
する。
Next, the control unit 11 reads partial image data of size 2×2 between the grid axes from the two-image memory 2 based on the address obtained from the grid point table 5, and converts it into the grid conversion circuit (horizontal ) 6 and the grid conversion circuit (vertical) 8, and the resulting information is transferred to the grid point label code generation circuit (horizontal) 7 and the grid point label code generation circuit (
vertical) 9 to generate an initial lattice point label code LBO, which is stored in the LBO table 13.

この初期格子点ラベルコードLBOに応じて、検証窓設
定回路12によシ所定のサイズの第1検証窓を設定し、
これを用い検証回路3によシ第1検証処理を行う。この
結果得られた第1検証ズレ情報SXI、SYIをSX1
・SYIテーブル16に格納する。
In accordance with this initial grid point label code LBO, a first verification window of a predetermined size is set by the verification window setting circuit 12,
Using this, the verification circuit 3 performs the first verification process. The first verification deviation information SXI and SYI obtained as a result is SX1
- Store in the SYI table 16.

このようにして得られた第1検証ズレ情報SXI。The first verification deviation information SXI obtained in this way.

SYIを基にして格子点テーブル5の格子点アドレスを
アドレス変換回路18で変換し正規化させた後、再び格
子変換回路(水平)6および格子変換回路(垂直)8と
、格子点ラベルコード生成回路(水平)7および格子点
ラベルコード生成回路(垂直)9によシ第1検証ラベル
コードLBIを求め、これをLBIテーブル14に格納
する。この第1検証ラベルコードLBIに基づき、検証
窓設定回路12によシ所定のサイズの第2検証窓を設定
し。
After converting and normalizing the lattice point address of the lattice point table 5 based on SYI by the address conversion circuit 18, the lattice conversion circuit (horizontal) 6 and the lattice conversion circuit (vertical) 8 are again used to generate a lattice point label code. A first verification label code LBI is obtained by the circuit (horizontal) 7 and the grid point label code generation circuit (vertical) 9, and is stored in the LBI table 14. Based on this first verification label code LBI, the verification window setting circuit 12 sets a second verification window of a predetermined size.

これを用い検証回路3によシ第2検証処理を行う。Using this, the verification circuit 3 performs a second verification process.

この結果得られた第゛2検証ズレ情報SX2.SY2を
SX2・SX2テーブル17に格納する。
The second verification deviation information SX2 obtained as a result. SY2 is stored in the SX2/SX2 table 17.

このようにして得られた第2検証ズレ情報SX2゜SX
2によシ格子点テーブル5から得られる格子点アドレス
をアドレス変換回路18で変換正規化した後、前述と同
様にして第2検証ラベルコードLI2を求め、これをL
B2テーブル15に格納する0 次に格子点近傍の詳細な図形状態を調べるため。
Second verification deviation information SX2゜SX obtained in this way
After the address conversion circuit 18 converts and normalizes the lattice point address obtained from the lattice point table 5 according to 2, the second verification label code LI2 is obtained in the same manner as described above, and this is
0 to be stored in the B2 table 15 Next, to check the detailed figure state near the lattice points.

第3検証窓を検証窓設定回路12で設定し、前述の第1
.第2検証処理と同様に検証回路3によシ第3検証処理
を行う。その結果得られた情報をLB3生成回路19に
送出し、第3検証ラベルコードLB3を得て、これをL
B3B3テーブル20納する。
A third verification window is set by the verification window setting circuit 12, and the third verification window is set by the verification window setting circuit 12.
.. Similar to the second verification process, the verification circuit 3 performs a third verification process. The information obtained as a result is sent to the LB3 generation circuit 19 to obtain the third verification label code LB3.
Contains 20 B3B3 tables.

そして以上の処理によシ得られたLBOテーブル13か
らの初期格子点ラベルコードLBO,LBIテーブル1
4からの第1検証ラベルコードLBI。
Then, the initial grid point label code LBO, LBI table 1 from the LBO table 13 obtained through the above processing.
The first verification label code LBI from 4.

L]32テーブル15からの第2検証ラベルコードLB
2.LB3B3テーブル20の第3検証ラベルコ」ドL
B3.SXI・SYI  テーブル16からの第1検証
ズレ情報SXI 、SYI 、およびSX2・SX2テ
ーブル17からの第2検証ズレ情報SX2゜SX2は格
子点ラベルコード決定回路21で統合。
L] 32 Second verification label code LB from table 15
2. Third verification label code L of LB3B3 table 20
B3. The first verification deviation information SXI, SYI from the SXI/SYI table 16 and the second verification deviation information SX2°SX2 from the SX2/SX2 table 17 are integrated in the lattice point label code determination circuit 21.

処理され、その結果得られた格子点ラベルコードがラベ
ルコードテーブル22に格納される。
The resulting grid point label code is stored in the label code table 22.

このラベルコードテーブル22からの格子点ラベルコー
ドに対し、対処理回路23によシ格子点間の4方向コー
ドが対となっていないものを除去する処理を行い、線パ
ターン切れ補正回路24により線パターン切れを補正し
1文字除去回路25により格子点間の関係が文字の特徴
を有するものを除去し1次のズレ補正回路26およびあ
いまい補正回路27により格子点ラベルコードのズレフ
ラグ、ズレ方向、あいまいフラグおよびあいオい方向の
状態によシ格子点間でこれらの補正を行う。
For the lattice point label codes from the label code table 22, a pair processing circuit 23 performs processing to remove the four-way codes between lattice points that are not paired, and a line pattern breakage correction circuit 24 The pattern breakage is corrected, and the one-character removal circuit 25 removes those in which the relationship between grid points has character characteristics.The primary deviation correction circuit 26 and ambiguity correction circuit 27 correct the deviation flag, deviation direction, and ambiguity of the grid point label code. These corrections are made between grid points depending on the state of the flag and the opposite direction.

上記補正回路23〜27で補正された格子点ラベルコー
ドは再びラベルコードテーブル22に格納される。
The lattice point label codes corrected by the correction circuits 23 to 27 are stored in the label code table 22 again.

そして次に、ラベルコードテーブル22から標本パター
ンとして第2図に示す4方向コードを呼出してシンボル
抽出回路29に入れ、一方辞書メモリ28から第3図に
示す標準パターンコードA1〜A4 t  ドントケア
コードNl−N4 、シンボル領域フラグSよシ成る辞
書バタ・−ンをシンボル抽出回路29に入れる。ここで
両者を用い式(1) 、 (2)による逐次的なマツチ
ング演算を行い、抽出されたシンボルの位置およびその
形状をシンボル認識テーブル30に格納する。
Next, the four-way code shown in FIG. 2 is called as a sample pattern from the label code table 22 and inputted into the symbol extraction circuit 29, while the standard pattern codes A1 to A4 shown in FIG. 3 are read from the dictionary memory 28, don't care code Nl -N4, a dictionary pattern consisting of the symbol area flag S is input into the symbol extraction circuit 29. Here, sequential matching calculations are performed using both equations (1) and (2), and the position of the extracted symbol and its shape are stored in the symbol recognition table 30.

■ 発明の詳細 な説明したように2本発明によれば、標本パターンと辞
書パターンとの大量の逐次的なマツチング演算において
1両パターン間の不一致度に着目して辞書全体とのマツ
チング処理を高速に実行することができる。
■Detailed Description of the Invention As described in detail, according to the present invention, in a large number of sequential matching operations between a sample pattern and a dictionary pattern, the matching process with the entire dictionary is performed at high speed by focusing on the degree of mismatch between two patterns. can be executed.

また本発明によると、シンボルの一部に曲線や斜線を含
む場合でも辞書パターン自体がこの部分のあいまい性を
許容できる構成となっておシ8通常では辞書内に酷似し
た辞書パターンは登録されない。このため式(1) 、
 (2)による標本パターンと個々の辞書パターンとの
マツチングの結果、全体的な評価値Eが′θ″とAつた
場合は、その時点で標本パターンがどのシンボルである
かを決定できるので、それ以降の辞書パターンとのマツ
チング演算を省略することができ、更に高速なマツチン
グ処理が可能となる。
Further, according to the present invention, even if a part of a symbol includes a curved line or diagonal line, the dictionary pattern itself is configured to tolerate ambiguity in this part.8 Normally, dictionary patterns that are very similar to each other are not registered in the dictionary. For this reason, formula (1),
As a result of matching the sample pattern and the individual dictionary patterns in (2), if the overall evaluation value E is 'θ'' and A, it is possible to determine which symbol the sample pattern is at that point. The subsequent matching calculation with the dictionary pattern can be omitted, and even faster matching processing becomes possible.

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

第1図は格子点ラベルコード、第2図および第3図はマ
ツチング演算の対象となる格子点単位の標本パターンお
よび辞書パターン、第4図(a)は論理表記シンボル例
、同図C)はその情報圧縮による標準パターン例、同図
(c)はその辞書パターン例。 第5図は本発明の実施例のブロック図を夫々示す。 図中、1は画像入力装置、2は画像メモリ、3は検証回
路、4は基準点検出回路、5は格子点テーブル、6は格
子変換回路(水平)、7は格子点ラベルコード生成回路
(水平)、8は格子変換回路(垂直)、9は格子点ラベ
ルコード生成回路(垂直)、10はアドレス制御部、1
1は制御部。 12は検証窓設定回路、13はLBOテーブル。 14はLBIテーブル、15はLB2テーブル。 16はSX1・SYIテーブル、17はSX2・SY2
テーブル、18はアドレス変換回路、19はLB3生成
回路、20はLB3B3テーブル1は格子点ラベルコー
ド決定回路、22はラベルコードテーブル、23は対処
理回路、24は線パターン切れ補正回路、25は文字除
去回路、26はズレ補正回路、27はあいまい補正回路
、28は辞書メモリ、29はシンボル抽出回路、30は
シンボル認識テーブルを示す。 特許出願人 富士通株式会社 代理人弁理士 森 1) 寛例1名) 中1m >2図 才31 ?4図 (a ’I           (−&)(C)
Figure 1 shows the lattice point label code, Figures 2 and 3 show the sample pattern and dictionary pattern for each lattice point that is subject to matching operations, Figure 4 (a) shows an example of a logical notation symbol, and C) in the same figure shows An example of a standard pattern based on the information compression, and FIG. 3(c) is an example of the dictionary pattern. FIG. 5 shows block diagrams of embodiments of the present invention. In the figure, 1 is an image input device, 2 is an image memory, 3 is a verification circuit, 4 is a reference point detection circuit, 5 is a grid point table, 6 is a grid conversion circuit (horizontal), and 7 is a grid point label code generation circuit ( 8 is a grid conversion circuit (vertical), 9 is a grid point label code generation circuit (vertical), 10 is an address control unit, 1
1 is the control section. 12 is a verification window setting circuit, and 13 is an LBO table. 14 is the LBI table, 15 is the LB2 table. 16 is SX1/SYI table, 17 is SX2/SY2
18 is an address conversion circuit, 19 is an LB3 generation circuit, 20 is an LB3B3 table 1 is a lattice point label code determination circuit, 22 is a label code table, 23 is a pair processing circuit, 24 is a line pattern breakage correction circuit, 25 is a character 26 is a deviation correction circuit, 27 is an ambiguity correction circuit, 28 is a dictionary memory, 29 is a symbol extraction circuit, and 30 is a symbol recognition table. Patent applicant Fujitsu Ltd. Representative Patent Attorney Mori 1) Hirona 1 person) Junior high school student 1m > 2 figure age 31? Figure 4 (a'I (-&) (C)

Claims (1)

【特許請求の範囲】[Claims] 画像の中からある特定の図形パターンの存在する位置と
その形状を自動抽出するに当って1画像全体を2次元的
な小領域単位に分割し圧縮コード化した情報を入カバタ
ーンとし、一方抽出される図形パターンの辞書パターン
として前記小領域単位の情報圧縮により得られる標準パ
ターンとあいまいさを許容するパターンとを組合わせて
構成したものを用い2図形パターンが抽出される位置で
の前記辞書パターンの大きさに対応する前記圧縮コード
群を標本パターンとして、当該標本パターンと前記辞書
パターンとの逐次的なマツチング演算を行うようにした
図、形パターン抽出処理におけるパターンマツチング処
理方式において、前記標本パターンと前記辞書パターン
とのマツチング演算に肖って両パターン間の不一致度数
を抽出するよう構成してなシ、当該演算過程で両パター
ン間の不一致度数が所定の評価閾値を越えたことを判定
して当該辞書パターンに対する以後のマツチング演算を
中止し2次の辞書パターンとのマツチング演算を開始す
るようにしたことを特徴とする図形ハターン抽出処理に
おけるパターンマツチング処理方式。
In order to automatically extract the location and shape of a specific graphic pattern from an image, the entire image is divided into two-dimensional small area units and compressed coded information is used as the input pattern. The dictionary pattern of the figure pattern at the position where two figure patterns are extracted is constructed by combining the standard pattern obtained by compressing the information in small area units and the pattern that allows ambiguity. In the pattern matching processing method in the shape pattern extraction process, the sample pattern is sequentially matched with the dictionary pattern using the compressed code group corresponding to the size as the sample pattern. and the dictionary pattern to extract the degree of mismatch between the two patterns, and in the process of the calculation, it is determined that the degree of mismatch between the two patterns exceeds a predetermined evaluation threshold. 1. A pattern matching processing method in figure pattern extraction processing, characterized in that subsequent matching calculations for the dictionary pattern are stopped and matching calculations for a secondary dictionary pattern are started.
JP57231860A 1982-12-25 1982-12-25 Pattern matching processing system of graphic pattern extracting processing Pending JPS59117674A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP57231860A JPS59117674A (en) 1982-12-25 1982-12-25 Pattern matching processing system of graphic pattern extracting processing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP57231860A JPS59117674A (en) 1982-12-25 1982-12-25 Pattern matching processing system of graphic pattern extracting processing

Publications (1)

Publication Number Publication Date
JPS59117674A true JPS59117674A (en) 1984-07-07

Family

ID=16930149

Family Applications (1)

Application Number Title Priority Date Filing Date
JP57231860A Pending JPS59117674A (en) 1982-12-25 1982-12-25 Pattern matching processing system of graphic pattern extracting processing

Country Status (1)

Country Link
JP (1) JPS59117674A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61262987A (en) * 1985-05-17 1986-11-20 Fujitsu Ltd Graphic pattern extracting system containing learning function

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS51120134A (en) * 1975-04-12 1976-10-21 Nec Corp Character recognition processing devise
JPS57162059A (en) * 1981-03-31 1982-10-05 Fujitsu Ltd Automatic recognizing system of linear pattern
JPS58161088A (en) * 1982-03-19 1983-09-24 Fujitsu Ltd Pattern matching system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS51120134A (en) * 1975-04-12 1976-10-21 Nec Corp Character recognition processing devise
JPS57162059A (en) * 1981-03-31 1982-10-05 Fujitsu Ltd Automatic recognizing system of linear pattern
JPS58161088A (en) * 1982-03-19 1983-09-24 Fujitsu Ltd Pattern matching system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61262987A (en) * 1985-05-17 1986-11-20 Fujitsu Ltd Graphic pattern extracting system containing learning function
JPH0444308B2 (en) * 1985-05-17 1992-07-21 Fujitsu Ltd

Similar Documents

Publication Publication Date Title
CN108615058A (en) A kind of method, apparatus of character recognition, equipment and readable storage medium storing program for executing
JPS59117674A (en) Pattern matching processing system of graphic pattern extracting processing
Cheng et al. ID numbers recognition by local similarity voting
JPH0520794B2 (en)
JPS6321949B2 (en)
JPS592191A (en) Recognizing and processing system of handwritten japanese sentence
JPS62120577A (en) Graphic pattern extracting system
JPH041383B2 (en)
JPS5952385A (en) Recognizing system of terminal position of gate cell symbol
JPS648872B2 (en)
JP2972443B2 (en) Character recognition device
JPH0421228B2 (en)
JPH0589190A (en) Drawing information checking system
JPS648871B2 (en)
JPS6322349B2 (en)
JPS62257583A (en) Character recognizing system
JPH06231310A (en) Character recognition method in chracter recognition device
JPS6222186A (en) Drawing reader
JPS6047636B2 (en) Feature extraction processing method
JP2851865B2 (en) Character recognition device
JPS5814709B2 (en) Shape recognition method for closed shapes
JPS6097481A (en) Pattern recognizing device
JPH0444308B2 (en)
JPS5952383A (en) Pattern abnormality extracting system
JPH0576666B2 (en)