JPH081643B2 - Figure pattern drawing method - Google Patents

Figure pattern drawing method

Info

Publication number
JPH081643B2
JPH081643B2 JP60260540A JP26054085A JPH081643B2 JP H081643 B2 JPH081643 B2 JP H081643B2 JP 60260540 A JP60260540 A JP 60260540A JP 26054085 A JP26054085 A JP 26054085A JP H081643 B2 JPH081643 B2 JP H081643B2
Authority
JP
Japan
Prior art keywords
pattern
symbol
grid point
label code
common part
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 - Fee Related
Application number
JP60260540A
Other languages
Japanese (ja)
Other versions
JPS62120577A (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.)
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 JP60260540A priority Critical patent/JPH081643B2/en
Publication of JPS62120577A publication Critical patent/JPS62120577A/en
Publication of JPH081643B2 publication Critical patent/JPH081643B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Character Input (AREA)
  • Image Input (AREA)
  • Processing Or Creating Images (AREA)
  • Image Analysis (AREA)

Description

【発明の詳細な説明】 〔概 要〕 予め決められた格子軸に沿って描かれた各種の方形パ
ターンシンボル(〔問題点を解決するための手段〕及び
〔作用〕の項を除き、以下矩形パターンシンボルについ
て述べる。)を各矩形パターンシンボルの辞書を用意す
ることなしに、単一の共通部分パターンの辞書を用いて
図形内の矩形パターンシンボルに描かれた共通部分パタ
ーンを格子点ラベルコードを用いて抽出し、格子点ラベ
ルコードを用いて抽出した共通部分パターン内に書き込
まれた識別文字を認識することにより、各種の矩形パタ
ーンシンボルの認識に単一の共通部分パターン辞書を用
意するだけで足りるようにした。
DETAILED DESCRIPTION OF THE INVENTION [Outline] Various rectangular pattern symbols drawn along a predetermined lattice axis (except for [Means for Solving Problems] and [Action]) Pattern symbols are described below.) A common part pattern drawn on a rectangular pattern symbol in a figure is converted to a grid point label code using a single common part pattern dictionary without preparing a dictionary of each rectangular pattern symbol. By recognizing the identification characters written in the common part pattern extracted using the grid point label code, it is only necessary to prepare a single common part pattern dictionary to recognize various rectangular pattern symbols. I made it enough.

〔産業上の利用分野〕[Industrial applications]

本発明は、図形パターン抽出方式に関し、更に詳しく
言えば描かれた図形中に存在する各種の矩形パターンシ
ンボルのための抽出処理を改善した図形パターン抽出方
式に関する。
The present invention relates to a graphic pattern extraction system, and more particularly to a graphic pattern extraction system with improved extraction processing for various rectangular pattern symbols existing in a drawn graphic.

論理回路図面等の自動処理において、その図面内の任
意のパターンを抽出することが必要になることがある。
このような抽出処理においても、他のパターン処理の場
合と同様に、処理時間の短縮化と共にその処理に要する
記憶容量の削減が望まれるところである。
In automatic processing of a logic circuit drawing or the like, it may be necessary to extract an arbitrary pattern in the drawing.
In such extraction processing as well, as in the case of other pattern processing, it is desired to reduce the processing time and the storage capacity required for the processing.

〔従来の技術〕[Conventional technology]

本出願人は、先に特開昭59−117674号公報及び特開昭
60−48580号公報において、論理回路図面等のように予
め決められた格子軸を基準として描かれた論理表記シン
ボルと、格子軸上に沿って描かれた論理表記シンボル間
の配線パターンと、シンボル名称のための文字とが混在
する図面の中から論理表記シンボルの位置及び形状を自
動抽出する技術を公にした。これら公報に開示される発
明は、各格子点毎にその近傍における図形の形状を表現
している格子点ラベルコードを論理表記シンボルの位置
及び形状の自動抽出に用いるものである。そして、その
自動抽出に当たっては、被抽出論理表記シンボルを表す
格子点ラベルコード群から成る入力パターンと、この入
力パターンの大きさに対応した同様の格子点ラベルコー
ド群から成る辞書パターンとの一致度に着目したマッチ
ング演算をそれらコード内の4方向コードについて各格
子点ラベルコード毎に行うものである。
The applicant of the present invention was previously disclosed in JP-A-59-117674 and JP-A-
In the 60-48580 publication, logical notation symbols drawn with reference to a predetermined lattice axis such as a logic circuit drawing, wiring patterns between the logical notation symbols drawn along the lattice axis, and symbols The technology for automatically extracting the position and shape of logical notation symbols from drawings in which characters for names are mixed has been made public. The inventions disclosed in these publications use a grid point label code representing the shape of a graphic in the vicinity of each grid point for automatic extraction of the position and shape of the logical notation symbol. Then, in the automatic extraction, the degree of coincidence between the input pattern consisting of the grid point label code group representing the extracted logical notation symbol and the dictionary pattern consisting of the similar grid point label code group corresponding to the size of this input pattern The matching operation focusing on the above is performed for each grid point label code for the four-direction code in those codes.

〔発明が解決しようとする課題〕[Problems to be Solved by the Invention]

上述した技法に従って論理表記シンボルの抽出を行な
う場合に、その数がそれ程多くない場合には然したる不
都合は顕在化して来ないが、論理表記シンボルの集合体
を定義する矩形パターンシンボルのように任意サイズの
大きさで書かれるシンボルが存在する場合、即ち論理表
記シンボルの数が無限に近い場合には、シンボル辞書が
膨大になるばかりでなく、そのようなシンボル辞書を用
意できたとしても上述のようなマッチング演算処理に膨
大な時間を要してしまうことになる。
When the logical notation symbols are extracted according to the technique described above, if the number is not so large, no such inconvenience will be manifested, but like the rectangular pattern symbol that defines the aggregate of the logical notation symbols. If there are symbols written in an arbitrary size, that is, if the number of logical notation symbols is near infinity, not only will the symbol dictionary become huge, but even if such a symbol dictionary can be prepared, A huge amount of time is required for such matching calculation processing.

本発明は、斯かる問題点に鑑みて創作されたもので、
用意すべき辞書数の単一化を為して処理時間の短縮化を
享受し得る図形パターン抽出方式を提供することにあ
る。
The present invention has been created in view of such problems,
An object of the present invention is to provide a graphic pattern extraction method that can shorten the processing time by unifying the number of dictionaries to be prepared.

〔問題点を解決するための手段〕[Means for solving problems]

第1図は、本発明の原理図を示す。本発明は、予め決
められた格子軸に沿って各種の方形パターンシンボルを
描いた図形の認識に各格子点毎に生成された格子点ラベ
ルコードを用いるシステムの図形パターン抽出方式にお
いて、前記方形パターンシンボル毎にその一部に描かれ
た単一の共通部分パターンと、該共通部分パターン内に
書き込まれた識別文字とを付加した前記図形を読み取っ
て格子点ラベルコード群を生成し、生成された共通部分
パターンの格子点ラベルコードと単一の共通部分パター
ン辞書の対応する格子点ラベルコードとを照合して前記
共通部分パターンを抽出し、前記生成した格子点ラベル
コードを用いて抽出した共通部分パターン内の識別文字
の各々を抽出認識し、認識された識別文字から抽出され
た共通部分パターンが描かれた方形パターンシンボルを
抽出するようにして構成したものである。
FIG. 1 shows the principle of the present invention. The present invention relates to a graphic pattern extraction method of a system that uses a grid point label code generated for each grid point to recognize a graphic drawing various kinds of square pattern symbols along a predetermined grid axis, A single common part pattern drawn on a part of each symbol and an identification character written in the common part pattern are read to generate the grid point label code group by reading the figure. The grid point label code of the common part pattern and the corresponding grid point label code of the single common part pattern dictionary are collated to extract the common part pattern, and the common part extracted using the generated grid point label code Each of the identification characters in the pattern is extracted and recognized, and the rectangular pattern symbol in which the common part pattern extracted from the recognized identification characters is drawn So as to be out are those that you configured.

〔作用〕[Action]

本発明によれば、予め決められた格子軸に沿って描か
れた図形内の方形パターンシンボルには、共通部分パタ
ーンが描かれると共に、該共通部分パターン内には識別
文字が書き込まれている。
According to the present invention, a common pattern is drawn on a rectangular pattern symbol in a graphic drawn along a predetermined lattice axis, and an identification character is written in the common pattern.

その図形が読み取られ、共通部分パターンの格子点ラ
ベルコードが各格子点毎に生成される。
The graphic is read and a grid point label code of the common part pattern is generated for each grid point.

生成された共通部分パターンの格子点ラベルコードの
各々と、前記単一の共通部分パターン辞書の対応する格
子点ラベルコードとを照合して共通部分パターンを抽出
する。この照合に用いられる共通部分パターン辞書は、
任意サイズの方形パターンに共通に用いられる。
Each grid point label code of the generated common part pattern is compared with the corresponding grid point label code of the single common part pattern dictionary to extract the common part pattern. The common part pattern dictionary used for this matching is
Commonly used for square patterns of arbitrary size.

前記格子点ラベルコードを用いて抽出された共通部分
パターン内の識別文字を抽出して認識する。
Identification characters in the common part pattern extracted using the grid point label code are extracted and recognized.

この識別文字を認識することにより、方形パターンシ
ンボルを抽出することが可能になる。
By recognizing this identification character, it becomes possible to extract a rectangular pattern symbol.

従って、本発明によれば、単一の共通部分パターン辞
書を用意し、この共通部分パターン辞書を用いて方形パ
ターンシンボル内の共通部分パターンを抽出し、その共
通部分パターン内の識別文字を認識することで、任意の
方形パターンシンボルを認識することができる。その認
識に各方形パターンシンボル辞書の照合を必要としない
から、方形パターンシンボルの認識を短時間のうちに行
うことができる。
Therefore, according to the present invention, a single common part pattern dictionary is prepared, the common part pattern in the rectangular pattern symbol is extracted using this common part pattern dictionary, and the identification character in the common part pattern is recognized. As a result, any square pattern symbol can be recognized. Since it is not necessary to collate each square pattern symbol dictionary for the recognition, the rectangular pattern symbols can be recognized in a short time.

〔実施例〕〔Example〕

第2図は、本発明の一実施例を示す。この実施例は、
特開昭60−48580号公報図面の第99図(a),(b)に
示される実施例ブロック図に、図示の如く矩形パターン
シンボル枠の抽出回路150及び重複シンボルの除去回路1
51を設けると共に、シンボル辞書128に単一の共通部分
パターン辞書を装備させたことに、本発明の特徴部分が
ある。その単一の共通部分パターン辞書に予め登録され
る共通部分パターンの格子点ラベルコードは、共通部分
パターンが第8図に示すようなパターンであったとする
と、第9図に図解するような格子点ラベルコードとな
る。
FIG. 2 shows an embodiment of the present invention. This example is
As shown in the block diagram of the embodiment shown in FIGS. 99 (a) and 99 (b) of the drawing, a rectangular pattern symbol frame extraction circuit 150 and a duplicate symbol removal circuit 1 are shown.
The feature of the present invention resides in that 51 is provided and the symbol dictionary 128 is equipped with a single common part pattern dictionary. The grid point label code of the common part pattern registered in advance in the single common part pattern dictionary is such that, if the common part pattern is a pattern as shown in FIG. It becomes a label code.

なお、第2図において、その他の構成要素は特開昭60
−48580号公報において説明されているものであるが、
そのあらましを本発明との関連において格子点ラベルコ
ードの生成の態様を要約して説明すれば次の通りであ
る。
Incidentally, in FIG.
As described in Japanese Patent Publication No. 48580,
The outline of the outline of the generation of the grid point label code in the context of the present invention is as follows.

アドレス制御部110の制御の下に、論理回路図の図形
パターンが画像入力装置101によって読み取られ、その
図形パターンデータは画像メモリ102に格納される。該
論理回路図の図形パターンは、予め決められた格子軸に
沿って描かれ、その中に線図形、文字等が混在してい
る。そして、その本発明の処理対象となる矩形パターン
シンボル内に、第4図の点線内に示す共通部分パターン
が描かれている。その共通部分パターン内のA01,A02,A0
3が、それぞれシンボル名である。シンボル名を構成す
る各文字A,0,1等が識別文字である。
Under the control of the address control unit 110, the graphic pattern of the logic circuit diagram is read by the image input device 101, and the graphic pattern data is stored in the image memory 102. The graphic pattern of the logic circuit diagram is drawn along a predetermined lattice axis, and line graphics, characters and the like are mixed therein. Then, in the rectangular pattern symbol to be processed by the present invention, the common partial pattern shown in the dotted line in FIG. 4 is drawn. A01, A02, A0 in the common part pattern
Each 3 is a symbol name. The letters A, 0, 1 etc. that compose the symbol name are identification characters.

画像メモリ102の図形パターンデータから図面の基準
点が基準点検出回路104により検出され、その歪みに基
づいて補正された各格子点アドレスが格子点テーブル10
5に保持される。
The reference point of the drawing is detected by the reference point detection circuit 104 from the graphic pattern data of the image memory 102, and each grid point address corrected based on the distortion is stored in the grid point table 10.
Holds at 5.

格子点テーブル105のアドレスの回りの予め決められ
たサイズの部分画像データが格子点テーブル105から読
み出され、格子変換回路(水平)106及び格子変換回路
(垂直)108へ供給される。これら回路106及び108で得
られた結果情報が格子点ラベルコード生成回路(水平)
107及び格子点ラベルコード生成回路(垂直)109におい
てそれぞれ処理され、初期格子点ラベルコードLBLが生
成され、LBLテーブル113に格納される。
Partial image data of a predetermined size around the address of the grid point table 105 is read from the grid point table 105 and supplied to the grid conversion circuit (horizontal) 106 and the grid conversion circuit (vertical) 108. The result information obtained by these circuits 106 and 108 is the grid point label code generation circuit (horizontal).
107 and a grid point label code generation circuit (vertical) 109 respectively process the initial grid point label code LBL and store it in the LBL table 113.

こうして得られた初期格子点ラベルコードLBLを有す
る格子点を中心とした予め決められたサイズの領域の各
々に対し、検証窓設定回路112から順次に、第1検証
窓、第2検証窓及び第3検証窓を設定して各検証処理を
行なう。その第1の検証処理及び第2検証処理において
は、いずれもずれ情報が検証回路103から出力される
が、それらずれ情報に対応するずれ情報テーブル116,11
7へ格納され、格子点テーブル105の格子点アドレスのア
ドレス変換回路118での正規化に用いられる。正規化さ
れたアドレスは、上述した初期格子点ラベルコードの生
成と同様に、画像メモリ102の読み出しに用いられ、そ
して読み出されたデータは、格子変換回路(水平)106
及び格子変換回路(垂直)108へ与えられ、これら回路1
06,108からの情報は初期格子点ラベルコードの生成と同
様に、格子点ラベルコード生成回路(水平)107及び格
子点ラベルコード生成回路(垂直)109においてそれぞ
れ処理され、各検証処理対応の格子点ラベルコードLB1,
LB2が生成され、これらコードは、対応するコードテー
ブル114,115へ格納される。これら第1検証処理及び第
2検証処理は線パターンが存在する方向とそのずれてい
る方向を検証するものである。
For each of the areas of a predetermined size centered on the grid point having the initial grid point label code LBL obtained in this way, the verification window setting circuit 112 sequentially supplies the first verification window, the second verification window and the second verification window. 3 Verification windows are set and each verification process is performed. In both the first verification process and the second verification process, the deviation information is output from the verification circuit 103, and the deviation information tables 116 and 11 corresponding to the deviation information are output.
7 and is used for normalization in the address conversion circuit 118 of the grid point address of the grid point table 105. The normalized address is used for reading the image memory 102, as in the case of generating the initial grid point label code described above, and the read data is used for the grid conversion circuit (horizontal) 106.
And the lattice conversion circuit (vertical) 108, and these circuits 1
The information from 06 and 108 is respectively processed in the grid point label code generation circuit (horizontal) 107 and the grid point label code generation circuit (vertical) 109 in the same manner as the generation of the initial grid point label code, and the grid point label corresponding to each verification process is processed. Code LB1,
LB2 is generated, and these codes are stored in the corresponding code tables 114 and 115. The first verification process and the second verification process are for verifying the direction in which the line pattern exists and the direction in which the line pattern deviates.

そして、上述2つの検証処理により正規化されて得ら
れた画像データに対して上述2つの検証処理と同様に、
第3の検証処理を施して格子点近傍の詳細な図形状態情
報(あいまい情報)を得る。
Then, similarly to the above two verification processes, the image data obtained by normalization by the above two verification processes is
The third verification process is performed to obtain detailed graphic state information (fuzzy information) near the grid point.

そして、最終的に第1,第2及び第3の検証処理の結果
を格子点ラベルコード決定回路121で統合してそれぞれ
の格子点毎に第3図に示す格子点ラベルコードを得てこ
れをラベルコードテーブル122に格納する。
Finally, the results of the first, second and third verification processes are integrated by the grid point label code determination circuit 121 to obtain the grid point label code shown in FIG. Stored in the label code table 122.

こうして得られた格子点ラベルコードに対して次のよ
うな処理も施される。即ち、対処理回路123において格
子間の4方向コードが対となっているものを除去し、線
パターン切れ補正回路124で線パターン切れ補正を為
し、ずれ補正回路(I)及びずれ補正回路(II)126,13
8並びにあいまい補正回路(I),あいまい補正回路(I
I)127,139において格子点ラベルコードのずれフラグ,
ずれ方向,あいまいフラグ及びあいまい方向の状態によ
り格子点間でこれらの補正を行なう。又、ギャップ・あ
いまい処理回路140において、ギャップ方向コード及び
あいまい方向コードを持つ格子点に対しては4方向コー
ドを除去する。その間において、複合ゲートシンボル認
識辞書131及び複合ゲートシンボル端子辞書132を用いて
複合ゲートシンボル認識回路133で複合ゲートシンボル
を認識し、又スタート点設定処理を行なう。又、シンボ
ル領域設定回路137により追跡到達点シンボルの設定処
理を行ない、単一ゲートシンボル候補辞書134及び単一
ゲートシンボル端子位置辞書135で単一ゲートシンボル
を認識し、又スタート点の設定を格子点ラベルコードに
設定し、逆ロジックシンボル処理回路142で逆ロジック
シンボルの処理を行なう。これに加えて、端子近傍線切
れ補正回路144でスタート点位置近傍での線切れ補正を
行なうなどの線分抽出の前処理等を行なって図形パター
ン抽出のための格子点ラベルコードを得る。
The following processing is also performed on the lattice point label code thus obtained. That is, the pair processing circuit 123 removes pairs of four-direction codes between lattices, the line pattern break correction circuit 124 performs line pattern break correction, and the shift correction circuit (I) and the shift correction circuit ( II) 126,13
8 and ambiguous correction circuit (I), ambiguous correction circuit (I
I) In 127 and 139, the deviation flag of the grid point label code,
These corrections are performed between grid points according to the deviation direction, the ambiguous flag, and the state of the ambiguous direction. Further, in the gap / ambiguity processing circuit 140, the 4-direction code is removed from the grid point having the gap direction code and the fuzzy direction code. In the meantime, the composite gate symbol recognition dictionary 131 and the composite gate symbol terminal dictionary 132 are used to recognize the composite gate symbol in the composite gate symbol recognition circuit 133, and start point setting processing is performed. The symbol area setting circuit 137 performs tracking arrival point symbol setting processing, recognizes a single gate symbol in the single gate symbol candidate dictionary 134 and the single gate symbol terminal position dictionary 135, and sets the start point in a grid. The point label code is set, and the inverse logic symbol processing circuit 142 processes the inverse logic symbol. In addition to this, the terminal neighborhood line break correction circuit 144 performs preprocessing for line segment extraction such as line break correction near the start point position to obtain a grid point label code for graphic pattern extraction.

前記論理回路図面が、前述のような処理によってコー
ド化されてラベルコードテーブル122に格納されている
格子点ラベルコードを用いて論理回路内の任意サイズの
矩形パターンシンボル(第4図参照)の一部に書き込ま
れている共通部分パターンの抽出処理をシンボル抽出回
路129で行なう。
One of the rectangular pattern symbols (see FIG. 4) of an arbitrary size in the logic circuit is created by using the grid point label code, which is coded by the processing described above and stored in the label code table 122, in the logic circuit drawing. The symbol extraction circuit 129 performs the extraction process of the common partial pattern written in the copy.

この抽出処理は、特開昭59−117674号公報に開示され
ている抽出技法に従って行われるが、その抽出処理の概
要は、次の通りである。
This extraction process is performed according to the extraction technique disclosed in Japanese Patent Laid-Open No. 59-117674, and the outline of the extraction process is as follows.

説明の都合上、格子点ラベルコードと共通部分パター
ン辞書の各格子点ラベルコードとのマッチング演算によ
り共通部分パターンが読み取られ、前述のような処理に
より格子点ラベルコードが生成されてラベルコードテー
ブル122に書き込まれたものとする。
For convenience of explanation, the common part pattern is read by the matching operation of the grid point label code and each grid point label code of the common part pattern dictionary, and the grid point label code is generated by the above-described processing to generate the label code table 122. It is assumed that it was written in.

前記ラベルコードテーブル122から1つの格子点ずつ
ずらして読み出される共通部分パターンを表す各格子点
ラベルコードと、シンボル辞書128の単一の共通部分パ
ターン辞書から読み出される各辞書格子点ラベルコード
とのマッチング演算(共通部分パターンの全体的な評価
値の演算)E、 を行なう。式(1)において、MXは共通部分パターンの
X軸方向についての大きさ(パターン抽出基準格子点か
らX軸方向への格子点数)であり、MYは共通部分パター
ンのY軸方向についての大きさ(パターン抽出基準格子
点からY軸方向への格子点数)である。又、WXYは、1
つの格子点当たりの評価値で、 と表される。式(2)において、Sはシンボル辞書128
の共通部分パターン辞書から読み出された辞書格子点ラ
ベルコードがマッチング演算対象となるか否かを表すシ
ンボル領域フラグ(第3図の格子点ラベルコードのビッ
ト8)、rは各格子点での4方向のうちの1つずつを表
し、Prは当該格子点から線分パターンが存在するか否か
を表す入力パターンの4方向コードを表し、Arは前記当
該格子点における辞書格子点ラベルコードの4方向コー
ドを表し、N、はドントケアコード(辞書として当該格
子点から4方向コード対応方向において線分パターンが
存在していてもいなくてもよいことを表す前記各方向対
応のビットで表されるコード)である。は、2を法と
する論理演算、Λは論理積である。
Matching of each grid point label code representing a common partial pattern read from the label code table 122 by shifting one grid point and each dictionary grid point label code read from a single common partial pattern dictionary of the symbol dictionary 128. Calculation (calculation of overall evaluation value of common partial pattern) E, Perform In equation (1), MX is the size of the common part pattern in the X-axis direction (the number of grid points from the pattern extraction reference grid point in the X-axis direction), and MY is the size of the common part pattern in the Y-axis direction. (Number of grid points in the Y-axis direction from the pattern extraction reference grid points). Also, W XY is 1
The evaluation value per one grid point, It is expressed as In Expression (2), S is a symbol dictionary 128.
Symbol area flag (bit 8 of the grid point label code in FIG. 3) indicating whether or not the dictionary grid point label code read from the common part pattern dictionary of is a matching calculation target, and r is at each grid point. 4 represents one of the directions, P r represents the 4 direction code of the input pattern indicating whether or not there is a line segment pattern from the grid point, a r dictionary lattice point labels in the corresponding lattice point A 4-way code of the code, N, is a don't care code (represented by a bit corresponding to each direction indicating that a line segment pattern may or may not exist in the direction corresponding to the 4-way code from the lattice point as a dictionary). Code). Is a logical operation modulo 2, and Λ is a logical product.

前述の評価値WXYは、減点法を用いると、入力格子点
ラベルコードと辞書格子点ラベルコードとの4方向コー
ドが全て一致するとき、最大値“0"となり、すべて不一
致となるとき最小値“−4"となる。
When the deduction method is used, the above-mentioned evaluation value W XY becomes the maximum value “0” when all the four-direction codes of the input grid point label code and the dictionary grid point label code match, and the minimum value when all do not match. It becomes “−4”.

そして、前記全体的な評価値Eが、予め設定されたし
きい値以下であるならば、ラベルコードテーブル122か
ら読み出した図形パターンの位置において、共通部分パ
ターンが抽出されたと判定する。ここでのしきい値は、
手書き等による変形の影響を吸収するためである。
If the overall evaluation value E is less than or equal to a preset threshold value, it is determined that the common part pattern is extracted at the position of the graphic pattern read from the label code table 122. The threshold here is
This is to absorb the influence of deformation caused by handwriting.

以下、その例について説明する。例えば、第8図に示
すような共通部分パターンの抽出において生成された該
共通部分パターンの各格子点での格子点ラベルコードが
第10図に図解するような格子点ラベルコードであったと
する。第10図に図解する共通部分パターンの各格子点ラ
ベルコード(入力格子点ラベルコードという。)の4方
向コードD,L,U,Rのうち、第10図に示すように格子点か
ら腕が出ている方向の4方向コードは“1"となる。第9
図に図解する共通部分パターン辞書の各格子点ラベルコ
ード(辞書格子点ラベルコードという。)の4方向コー
ドも、又同様である。なお、第9図及び第10図中の○は
格子点を示し、各格子点から出ている腕は、当該格子点
の“1"にある4方向コードを示す。又、これらの格子点
ラベルコードのマッチング演算の結果、前述の評価値W
XYは、最大値“0"となり、この値は、予め決められたし
きい値、例えば−5以上であるから、第8図に示す矩形
パターンシンボルに描かれている共通部分パターンが抽
出されたことになる。第5図は、共通部分パターンの抽
出例を示す。
The example will be described below. For example, it is assumed that the grid point label code at each grid point of the common part pattern generated in the extraction of the common part pattern as shown in FIG. 8 is the grid point label code as illustrated in FIG. Of the four-direction codes D, L, U, and R of each grid point label code (called input grid point label code) of the common part pattern illustrated in FIG. 10, as shown in FIG. The 4-way code of the outgoing direction is "1". Ninth
The same applies to the four-direction code of each grid point label code (referred to as dictionary grid point label code) in the common partial pattern dictionary illustrated in the figure. The circles in FIGS. 9 and 10 indicate lattice points, and the arm extending from each lattice point indicates the four-direction code at “1” of the lattice point. In addition, as a result of the matching calculation of these grid point label codes, the above-mentioned evaluation value W
XY has a maximum value "0", and this value is a predetermined threshold value, for example, -5 or more, so that the common part pattern drawn on the rectangular pattern symbol shown in FIG. 8 is extracted. It will be. FIG. 5 shows an example of extracting the common part pattern.

又、前記演算過程において、前記評価値Eがしきい値
を越えるに至るときには、辞書パターンの抽出対象シン
ボル、即ち共通部分パターンではない(その矩形パター
ンシンボル内には共通部分パターンはない)と判定し、
当該マッチング演算を中止してマッチング処理の高速化
を図る。
Further, in the calculation process, when the evaluation value E exceeds the threshold value, it is determined that the extraction target symbol of the dictionary pattern, that is, the common partial pattern (there is no common partial pattern in the rectangular pattern symbol). Then
The matching calculation is stopped to speed up the matching process.

こうして共通部分パターンを抽出した後に、抽出した
共通部分パターン内に書き込まれている識別文字の抽出
を行う。この識別文字の抽出処理は、文字領域抽出回路
147で行なう。
After extracting the common part pattern in this way, the identification characters written in the extracted common part pattern are extracted. This identification character extraction processing is performed by the character area extraction circuit.
At 147.

そして、上述の如くして抽出された共通部分パターン
内の識別文字を抽出し、その文字列を構成する各文字を
認識する。これらの抽出、認識は適宜な方式で行し得る
ものであり、その一例は特開昭60−48580号に開示する
技法を挙げることができる。
Then, the identification character in the common part pattern extracted as described above is extracted, and each character forming the character string is recognized. These extractions and recognitions can be performed by an appropriate method, and an example thereof is the technique disclosed in JP-A-60-48580.

前述のようにして認識された識別文字と、当該識別文
字が書き込まれた矩形パターンシンボルは対応付けられ
ているから、共通部分パターンの抽出及び当該共通部分
パターンに書き込まれている識別文字の抽出認識を行え
ば、矩形パターンシンボルがいずれの矩形パターンシン
ボルであるかを認識することができる。このような矩形
パターンシンボルの認識に単一の共通部分パターン辞書
を用意すればよい。従って、矩形パターンシンボル毎の
辞書を用意し、それらの辞書のマッチング処理を行う必
要はなくなるから、矩形パターンシンボルを高速に抽出
でき、それに掛かる時間も大幅に短縮される。
Since the identification character recognized as described above and the rectangular pattern symbol in which the identification character is written are associated with each other, extraction of the common part pattern and extraction and recognition of the identification character written in the common part pattern are performed. By doing, it is possible to recognize which rectangular pattern symbol the rectangular pattern symbol is. A single common partial pattern dictionary may be prepared for recognition of such a rectangular pattern symbol. Therefore, it is not necessary to prepare dictionaries for each rectangular pattern symbol and perform matching processing of those dictionaries, so that the rectangular pattern symbols can be extracted at high speed and the time required for them can be greatly shortened.

なお、前述のような矩形パターンシンボルを抽出認識
する前に、複合ゲートシンボル、単一ゲートシンボルの
認識を行う。前述の複合ゲートシンボル、単一ゲートシ
ンボルの認識は、例えば第4図(a),(c)に示すよ
うな共通部分パターンを有する矩形パターンシンボルの
場合、前記認識処理によっては、矩形パターンシンボル
内のゲートシンボルは、その外側にある複合ゲートシン
ボル、或いは単一ゲートシンボルと区別なしに認識され
る。これらのゲートシンボルのうちの矩形パターンシン
ボル内のゲートシンボルを矩形パターンシンボルから除
去するための処理が重複シンボルの除去である。
The composite gate symbol and the single gate symbol are recognized before the rectangular pattern symbol as described above is extracted and recognized. For the recognition of the composite gate symbol and the single gate symbol, for example, in the case of a rectangular pattern symbol having a common partial pattern as shown in FIGS. The gate symbol is recognized without distinction from the composite gate symbol or the single gate symbol that is outside thereof. The process for removing the gate symbol in the rectangular pattern symbol among these gate symbols from the rectangular pattern symbol is the removal of duplicate symbols.

つまり、前述の矩形パターンシンボル内のゲートシン
ボルが、通常の複合ゲートシンボル、或いは単一ゲート
シンボルとして抽出されるのを防止するために、この認
識された複合ゲートシンボル、或いは単一ゲートシンボ
ルのシンボル認識テーブル130からの除去処理が、重複
シンボルの除去回路151で行われる。そのために、例え
ば、第4図の(a)の矩形パターンシンボルの場合、単
一ゲートシンボルの認識において、矩形パターンシンボ
ル内の3つのゲートシンボルが認識され、シンボル認識
テーブル130にその格子点座標位置とそのシンボル名が
格納される。その後に、共通部分パターンを有する矩形
パターンシンボルの認識処理が、前述のようにして行わ
れる。この認識処理により、当該矩形パターンシンボル
の大きさが認識されるから、この矩形パターンシンボル
内の格子点座標を知ることができる。この格子点座標を
用いて矩形パターンシンボル内の格子点座標が認識され
ている複合ゲートシンボル、或いは単一ゲートシンボル
(第4図の(a)では3つの単一ゲートシンボル)の認
識結果をシンボル認識テーブル130から除去することが
できる。
That is, in order to prevent the gate symbol in the above-mentioned rectangular pattern symbol from being extracted as a normal composite gate symbol or a single gate symbol, the recognized composite gate symbol or the symbol of the single gate symbol is recognized. The removal processing from the recognition table 130 is performed by the duplicate symbol removal circuit 151. Therefore, for example, in the case of the rectangular pattern symbol of FIG. 4A, three gate symbols in the rectangular pattern symbol are recognized in the recognition of a single gate symbol, and the symbol recognition table 130 shows the lattice point coordinate positions thereof. And its symbol name are stored. After that, the recognition processing of the rectangular pattern symbol having the common partial pattern is performed as described above. Since the size of the rectangular pattern symbol is recognized by this recognition processing, the grid point coordinates in this rectangular pattern symbol can be known. The recognition result of the composite gate symbol or the single gate symbol (three single gate symbols in FIG. 4A) in which the lattice point coordinates in the rectangular pattern symbol are recognized using the lattice point coordinates is a symbol. It can be removed from the recognition table 130.

前述のようにして認識された矩形パターンシンボルを
構成する格子点ラベルコードを他の線分(結線)を構成
する格子点ラベルコードと区別するために、認識された
矩形パターンシンボルの格子点ラベルコードのシンボル
領域フラグ(8番目のビット)の設定を行なう。このシ
ンボル領域フラグの設定は、第6図に示すように抽出さ
れた共通部分パターン位置の一部、例えば右下の格子点
ラベルコードから前述の方式により認識された矩形パタ
ーンシンボルの格子点ラベルコードの4方向コードを追
跡しながら、先ず矩形パターンシンボル枠を構成する格
子点ラベルコードの各々に上述のフラグ設定を行ない、
次いで矩形パターンシンボル枠内のすべての格子点ラベ
ルコードのシンボル領域フラグを“1"に設定する。そし
て、図形認識のために用いるスタート方向コードを認識
スタート点となる格子点ラベルコードの2〜5ビット目
に設定する(第7図の肉太部がそれを表している)。こ
のスタートコードの設定は、シンボル領域フラグを設定
する際の格子点ラベルコードの追跡処理において、第7
図に示すように、共通部分パターンを有する矩形パター
ンシンボル枠から外側方向に出る4方向コードを検出
し、その格子点ラベルコードのスタート方向コードの対
応するビット位置に“1"を設定する。又、格子点ラベル
コードのスタート方向フラグも“1"に設定する。このス
タート方向フラグを設定する意味は、その格子点ラベル
コードが矩形パターンシンボルの端子(結線端子)とな
っていることを表すものである。その端子からシンボル
領域フラグの設定されていない格子点ラベルコード(即
ち、結線を構成する格子点ラベルコード)の4方向コー
ドを、他のスタート方向フラグが設定されている格子点
ラベルコードに到達するまで、追跡することによって、
矩形パターンシンボル間の結線情報をベクトル情報とし
て抽出する。その詳細は本発明要旨に直接関係しないの
で、特開昭60−48580号公報を参照されたい。
In order to distinguish the grid point label code forming the rectangular pattern symbol recognized as described above from the grid point label code forming another line segment (connection), the grid point label code of the recognized rectangular pattern symbol The symbol area flag (8th bit) is set. This symbol area flag is set by a part of the common part pattern position extracted as shown in FIG. 6, for example, the grid point label code of the rectangular pattern symbol recognized by the above method from the grid point label code at the lower right. First, the above flag is set for each of the grid point label codes forming the rectangular pattern symbol frame while tracing the four-direction code of
Next, the symbol area flags of all the grid point label codes in the rectangular pattern symbol frame are set to "1". Then, the start direction code used for the figure recognition is set to the 2nd to 5th bits of the grid point label code serving as the recognition start point (the thick portion in FIG. 7 represents this). This start code is set in the seventh step in the lattice point label code tracking process when the symbol area flag is set.
As shown in the figure, a four-direction code extending outward from the rectangular pattern symbol frame having the common part pattern is detected, and "1" is set to the corresponding bit position of the start direction code of the lattice point label code. Also, the start direction flag of the grid point label code is set to "1". The meaning of setting the start direction flag indicates that the lattice point label code is a terminal (connection terminal) of a rectangular pattern symbol. From that terminal, the four-direction code of the grid point label code (that is, the grid point label code forming the connection) in which the symbol area flag is not set reaches the grid point label code in which another start direction flag is set. By tracking up to
The connection information between the rectangular pattern symbols is extracted as vector information. Details thereof are not directly related to the gist of the present invention, so refer to JP-A-60-48580.

〔発明の効果〕〔The invention's effect〕

以上説明したように本発明によれば、単一の共通部分
パターン辞書により図形中に描かれるいずれの方形パタ
ーンシンボルも自動的に認識することができる。従っ
て、方形パターンシンボルの認識に辞書パターン容量及
びマッチング時間の増大なしに、各種の方形パターンシ
ンボルの抽出を行うことができる。
As described above, according to the present invention, any rectangular pattern symbol drawn in a figure can be automatically recognized by a single common partial pattern dictionary. Therefore, various rectangular pattern symbols can be extracted without increasing the dictionary pattern capacity and matching time for recognizing the rectangular pattern symbols.

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

第1図は本発明の原理図、 第2図は本発明の一実施例を示す図、 第3図は格子点ラベルコードを示す図、 第4図は共通部分パターン及びシンボル名を示す図、 第5図は共通部分パターンの抽出を示す図、 第6図はシンボル領域の設定を示す図、 第7図はスタート方向コードの設定を示す図、 第8図は矩形パターンシンボル内に描かれた共通部分パ
ターンを示す図、 第9図は共通部分パターン辞書の例を図解して示す図、 第10図は入力された共通部分パターンの格子点ラベルコ
ードを図解して示す図である。 第1図において、 1は格子点ラベルコード生成部、 2は共通部分パターン抽出部、 3は識別文字抽出認識部、 4は方形パターンシンボル抽出部である。
FIG. 1 is a principle diagram of the present invention, FIG. 2 is a diagram showing an embodiment of the present invention, FIG. 3 is a diagram showing lattice point label codes, FIG. 4 is a diagram showing common part patterns and symbol names, FIG. 5 is a diagram showing extraction of a common part pattern, FIG. 6 is a diagram showing setting of a symbol area, FIG. 7 is a diagram showing setting of a start direction code, and FIG. 8 is drawn in a rectangular pattern symbol. FIG. 9 is a view showing an example of a common part pattern dictionary, and FIG. 10 is a view showing a grid point label code of an input common part pattern. In FIG. 1, 1 is a grid point label code generation unit, 2 is a common partial pattern extraction unit, 3 is an identification character extraction recognition unit, and 4 is a rectangular pattern symbol extraction unit.

───────────────────────────────────────────────────── フロントページの続き (72)発明者 西川 克彦 神奈川県川崎市中原区上小田中1015番地 富士通株式会社内 (56)参考文献 特開 昭57−159377(JP,A) 特開 昭58−3077(JP,A) 特開 昭58−3078(JP,A) 特開 昭58−5882(JP,A) 特開 昭58−195987(JP,A) 特開 昭60−48580(JP,A) 特開 昭59−117674(JP,A) ─────────────────────────────────────────────────── ─── Continuation of the front page (72) Inventor Katsuhiko Nishikawa 1015 Kamiodanaka, Nakahara-ku, Kawasaki-shi, Kanagawa Fujitsu Limited (56) References JP-A-57-159377 (JP, A) JP-A-58-3077 (JP, A) JP 58-3078 (JP, A) JP 58-5882 (JP, A) JP 58-195987 (JP, A) JP 60-48580 (JP, A) Kaisho 59-117674 (JP, A)

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】予め決められた格子軸に沿って各種の方形
パターンシンボルを描いた図形の認識に各格子点毎に生
成された格子点ラベルコードを用いるシステムの図形パ
ターン抽出方式において、 前記方形パターンシンボル毎にその一部に描かれた単一
の共通部分パターンと、該共通部分パターン内に書き込
まれた識別文字とを付加した前記図形を読み取って格子
点ラベルコード群を生成し、 生成された共通部分パターンの格子点ラベルコードと単
一の共通部分パターン辞書の対応する格子点ラベルコー
ドとを照合して前記共通部分パターンを抽出し、 前記生成した格子点ラベルコードを用いて抽出した共通
部分パターン内の識別文字の各々を抽出認識し、 認識された識別文字から抽出された共通部分パターンが
描かれた方形パターンシンボルを抽出することを特徴と
する図形パターン抽出方式。
1. A graphic pattern extraction method for a system, which uses a grid point label code generated for each grid point to recognize a graphic in which various kinds of square pattern symbols are drawn along a predetermined grid axis. A single common part pattern drawn on a part of each pattern symbol and an identification character written in the common part pattern are read to generate the grid point label code group by reading the figure. The common point pattern of the common part pattern and the corresponding grid point label code of the single common part pattern dictionary are collated to extract the common part pattern, and the common point pattern is extracted by using the generated grid point label code. Each of the identification characters in the partial pattern is extracted and recognized, and a rectangular pattern symbol that depicts the common partial pattern extracted from the recognized identification characters is drawn. A pattern extraction method characterized by extracting a pattern.
JP60260540A 1985-11-20 1985-11-20 Figure pattern drawing method Expired - Fee Related JPH081643B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60260540A JPH081643B2 (en) 1985-11-20 1985-11-20 Figure pattern drawing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60260540A JPH081643B2 (en) 1985-11-20 1985-11-20 Figure pattern drawing method

Publications (2)

Publication Number Publication Date
JPS62120577A JPS62120577A (en) 1987-06-01
JPH081643B2 true JPH081643B2 (en) 1996-01-10

Family

ID=17349382

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60260540A Expired - Fee Related JPH081643B2 (en) 1985-11-20 1985-11-20 Figure pattern drawing method

Country Status (1)

Country Link
JP (1) JPH081643B2 (en)

Also Published As

Publication number Publication date
JPS62120577A (en) 1987-06-01

Similar Documents

Publication Publication Date Title
JPH0424781A (en) Document processor
JPH081643B2 (en) Figure pattern drawing method
JPS6132187A (en) Character recognition system
JPH0150954B2 (en)
JPH0520794B2 (en)
JPS6321949B2 (en)
CN112183538B (en) Manchu recognition method and system
JP2972443B2 (en) Character recognition device
JPH0421228B2 (en)
JP2940974B2 (en) Matching method
JP3151866B2 (en) English character recognition method
JPS648872B2 (en)
JP2519782B2 (en) Character separation method
JPH06231310A (en) Character recognition method in chracter recognition device
JPS648871B2 (en)
JP2963474B2 (en) Similar character identification method
JPS5952385A (en) Recognizing system of terminal position of gate cell symbol
JP2851865B2 (en) Character recognition device
JPH0351029B2 (en)
JPH0444308B2 (en)
JPH041383B2 (en)
JPS585882A (en) Character figure separating device
JPS6154578A (en) Character reader
JPS63173188A (en) Character processing system
JPS59117674A (en) Pattern matching processing system of graphic pattern extracting processing

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees