JPS6322348B2 - - Google Patents
Info
- Publication number
- JPS6322348B2 JPS6322348B2 JP57111896A JP11189682A JPS6322348B2 JP S6322348 B2 JPS6322348 B2 JP S6322348B2 JP 57111896 A JP57111896 A JP 57111896A JP 11189682 A JP11189682 A JP 11189682A JP S6322348 B2 JPS6322348 B2 JP S6322348B2
- Authority
- JP
- Japan
- Prior art keywords
- symbol
- logical
- code
- bit
- dictionary
- 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
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/20—Image preprocessing
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Multimedia (AREA)
- Theoretical Computer Science (AREA)
- Character Input (AREA)
- Image Analysis (AREA)
Description
【発明の詳細な説明】
発明の技術分野
本発明は、格子軸上に沿つて描かれた論理シン
ボルに、該シンボル間の結線およびシンボルの名
称等を示す文字が混在する論理回路図面より論理
シンボルを自動認識する方式に係り、該図面内の
シンボルがオーバラツプして抽出されるのを防ぐ
と共にシンボル情報を文字、結線情報から分離し
ようとするものである。DETAILED DESCRIPTION OF THE INVENTION Technical Field of the Invention The present invention is based on a logic circuit drawing in which logic symbols drawn along lattice axes are mixed with characters indicating connections between the symbols, symbol names, etc. The present invention relates to a system for automatically recognizing symbols in a drawing, and attempts to prevent symbols in the drawing from being extracted in an overlapping manner, and to separate symbol information from characters and connection information.
技術の背景
従来、論理回路図面情報の計算機への入力は全
て人手によるカードパンチ方式またはデジタイザ
などに依つており、甚だ時間のかゝるまた作業者
にとつて単調で苦痛な仕事であつた。そこで自動
入力方式が鋭意開発されつつあり、本発明者等も
「線パターン自動認識方式」(特願昭56−48252、
特開昭57−162059)、「円形を有する線図形の認識
方式」(特願昭56−201465、特開昭58−103074)、
「パターンマツチング方式」(特願昭57−43954、
特開昭58−161088)など多数の出願をしている。BACKGROUND OF THE TECHNOLOGY Conventionally, inputting logic circuit drawing information into a computer has been done manually using a card punching method or a digitizer, which is extremely time-consuming, monotonous, and painful work for the operator. Therefore, automatic input methods are being intensively developed, and the present inventors also proposed the "Line pattern automatic recognition method" (Japanese Patent Application No.
``Recognition method for line figures having circular shapes'' (Japanese Patent Application 1982-201465, JP 58-103074),
"Pattern matching method" (Patent application 1986-43954,
He has filed numerous applications, including JP-A-58-161088).
従来技術と問題点
ところでこれらの方式では論理図形中の1つの
シンボルが2つ以上の認識結果として抽出される
ことがあり、また論理図形には文字が付加されて
いるものがあるがこれらがシンボルおよび結線情
報の一部と混同されることがある。Prior art and problems By the way, in these methods, one symbol in a logical figure may be extracted as two or more recognition results, and some logical figures have characters added, but these are not symbols. and may be confused with part of the wiring information.
発明の目的
本発明は、論理シンボルの認識に用いる“格子
点単位に圧縮した線分情報を示すコード”に、辞
書を用いて当該格子点コードは論理シンボルのパ
ターン情報を示すものであるか否かのビツトSを
立てるようにして、論理シンボルと文字等他の図
形情報とを分離しようとするものである。また該
ビツトのセツトは一度限りとし、再セツトはしな
いようにして論理ビツトの2重選択、誤認識を回
避しようとするものである。Purpose of the Invention The present invention uses a dictionary for "a code indicating line segment information compressed into lattice points" used to recognize logical symbols, and determines whether the lattice point code indicates pattern information of a logical symbol. By setting bit S, logical symbols and other graphical information such as characters are separated. Further, the bits are set only once and are not set again to avoid double selection of logical bits and erroneous recognition.
発明の構成
本発明は格子軸上に沿つて描かれた論理シンボ
ルに文字および配線が混在する論理回路図面を入
力装置で読み取り、得られたビデオ信号から各格
子点における線分の方向を示す4方向コードを含
む格子点ラベルコードを求め、走査窓領域内の該
格子点ラベルコードを、予め作成された辞書(論
理シンボルの形状に対応した4方向コードと比較
のためのドントケアビツトの情報を含む)と比較
して論理シンボルを自動的に認識し分離する方式
において、該格子点ラベルコードにシンボル領域
ビツトを格納する領域を設け、格子点ラベルコー
ドの4方向コードと辞書との比較演算により認識
された論理シンボルの認識結果を格納する論理シ
ンボル認識結果格納手段と、該論理シンボル認識
結果格納手段から論理シンボル認識情報を順次読
み出すとともに該読み出された論理シンボルに対
応する辞書を読み出して、該論理シンボルを構成
する線分に対応する格子点ラベルコードのシンボ
ル領域ビツトが既に設定されているか否かを検出
するシンボル領域ビツト検出手段と、該シンボル
領域ビツト検出手段によりシンボル領域ビツトが
既設定であると判定されたとき、前記論理シンボ
ル認識結果格納手段に格納され、今読み出されて
いる論理シンボルの認識結果を無効にする手段
と、前記シンボル領域ビツト検出手段によりシン
ボル領域ビツトが未設定であると判定されたと
き、今読み出されている論理シンボルを構成する
線分に対応する格子点ラベルコードのシンボル領
域ビツトの設定を、該論理シンボルに対応する今
読み出されている辞書のドントケアビツトに基づ
いて実行するシンボル領域ビツト設定手段とを備
え、文字および配線情報より論理シンボル情報を
分離することを特徴とするが、次に実施例を参照
しながらこれを説明する。Structure of the Invention The present invention reads a logic circuit diagram in which characters and wiring are mixed in logic symbols drawn along a lattice axis using an input device, and uses the obtained video signal to indicate the direction of a line segment at each lattice point. A lattice point label code including a direction code is obtained, and the lattice point label code within the scanning window area is added to a dictionary created in advance (including a four-way code corresponding to the shape of a logical symbol and information on don't care bits for comparison). ), the lattice point label code is provided with an area for storing symbol area bits, and the lattice point label code is recognized by a comparison operation between the four-way code of the lattice point label code and a dictionary. logical symbol recognition result storage means for storing recognition results of the logical symbols read out, and logical symbol recognition information is sequentially read from the logical symbol recognition result storage means, and a dictionary corresponding to the read logical symbols is read out. symbol area bit detection means for detecting whether or not a symbol area bit of a lattice point label code corresponding to a line segment constituting a logical symbol has already been set; When it is determined that the logical symbol recognition result is present, a means for invalidating the recognition result of the logical symbol stored in the logical symbol recognition result storage means and currently being read out, and a means for invalidating the recognition result of the logical symbol that is currently being read out, and a means for determining whether the symbol area bit is unset by the symbol area bit detecting means. When it is determined that there is, the setting of the symbol area bit of the grid point label code corresponding to the line segment constituting the logical symbol that is currently being read is changed to the don't care setting of the dictionary that is currently being read that corresponds to the logical symbol. The present invention is characterized by comprising a symbol area bit setting means executed based on bits, and separating logical symbol information from character and wiring information.This will be explained below with reference to embodiments.
発明の実施例
論理回路図面に現われる論理シンボルには第2
図に示すように矩形状のフリツプフロツプa、椀
型のナンドゲートbおよび排他オアゲートd、三
角状のインバータcなどがある。これらには入出
力線が付いており、また信号反転を示す〇印が必
要に応じて付されている。これらは所定の格子軸
つまり多数の等間隔で平行な縦線と横線からなる
格子縞の該縦線及び又は横線に可及的に沿つて手
書きされ、同様に手書きされる文字などと共に論
理回路を構成し、自動認識、計算機への入力に供
されるが、それに先立つてフアクシミリなどの読
取装置で読取り、得られたビデオ信号の持つ情報
を格子単位に、格子点近傍の図形構造を表現する
格子点ラベルコードに圧縮する。この処理は前述
の「線パターン自動認識方式」及び「円形を有す
る線図形の認識方式」等の技術で実行されるが、
得られる格子点ラベルコードのフオーマツトを第
1図に示す。「線パターン自動認識方式」によつ
て、格子点ラベルコードの第0ビツト、第3−15
ビツトの情報が設定され、「円形を有する線図形
の認識方式」によつて、逆ロジツクシンボルが認
識され、格子点ラベルコードの第2ビツトにその
格子点に逆ロジツクシンボルが存在するか否かを
示す逆ロジツクシンボルの有無の情報が設定され
れる。Embodiments of the invention Logic symbols appearing in logic circuit drawings have a second
As shown in the figure, there are a rectangular flip-flop a, a bowl-shaped NAND gate b and an exclusive-OR gate d, and a triangular inverter c. These have input/output lines, and are marked with O marks to indicate signal inversion, as necessary. These are handwritten along the predetermined lattice axes, that is, the vertical and/or horizontal lines of a lattice strip consisting of a large number of equally spaced parallel vertical and horizontal lines, and together with similarly handwritten characters, etc., they form a logic circuit. The video signal is then automatically recognized and input to a computer, but prior to that, it is read by a reading device such as a facsimile, and the information contained in the obtained video signal is used as a grid point to express the graphical structure near the grid point. Compress into label code. This process is performed using techniques such as the above-mentioned "automatic line pattern recognition method" and "recognition method for line figures with circles," but
The format of the resulting grid point label code is shown in FIG. Using the "line pattern automatic recognition method", the 0th bit, 3rd to 15th bit of the grid point label code
The bit information is set, the inverse logic symbol is recognized by the "recognition method for line figures with circles", and the second bit of the grid point label code indicates whether an inverse logic symbol exists at that grid point. Information about the presence or absence of the reverse logic symbol is set.
図示のようにこのコードは16ビツトからなり、
その第12〜15ビツトは4方向コードで、当該格子
点(視野をやゝ大きくして矩形領域としてみる)
では線が上下左右UDLRのいずれに走つている
かを示す。例えば当該格子点から始つて右に延び
ているならR=1でU,D,Lは0とする。上下
に延びているならU,Dが1でL,Rが0であ
る。第8〜11ビツトはあいまい方向を示し、“文
字らしい”をビツト1で示す。これは4方向コー
ドに対応しており、例えばR=1であつたが、線
幅などからこれは文字を構成する線素らしいと判
断されるとFR=1となる。第7ビツトはズレフ
ラグである。このフラグF1はずれが存在する、
しないを示し、そのずれの方向は第3〜第6ビツ
トで示す。具体的には縦、横線(格子軸)に沿つ
て書いた線分が正しく線上になくそれにより上、
下、左、または右にずれているとF1=1であり、
右にずれているならZR=1である。これは2重選
択を阻止する目的を持つ。即ちずれてもその線分
を検出できるように視野は広げてあるので、右に
ずれた場合その次の格子点では左にずれているよ
うに見えることがあり(格子点間の中央にまでず
れた場合)、2重選択となるが、これを防止する
ものである。第2ビツトは逆ロジツクシンボルの
有無を示すビツトで、このビツトが“1”なら
第2図の小丸印つまり回転マークがあることを示
す。第1ビツトは本発明で設けたシンボル領域ビ
ツトで、これは後述する。第0ビツトはあいまい
フラグで、このビツトF2が1なら第8〜第11ビ
ツトに“1”が立つている、具体的には当該格子
点情報は線分ではなく文字らしい、を示す。 As shown, this code consists of 16 bits,
The 12th to 15th bits are a 4-way code, and the corresponding grid point (view it as a rectangular area by making the field of view a little larger)
This shows whether the line runs up, down, left, or UDLR. For example, if it starts from the grid point and extends to the right, R=1 and U, D, and L are set to 0. If it extends vertically, U and D are 1 and L and R are 0. The 8th to 11th bits indicate an ambiguous direction, with bit 1 indicating "like a character". This corresponds to a four-way code, and for example, R=1, but if it is determined from the line width that this is likely a line element constituting a character, F R =1. The 7th bit is a shift flag. This flag F 1 has a deviation,
The direction of the deviation is indicated by the third to sixth bits. Specifically, the line segments drawn along the vertical and horizontal lines (lattice axes) are not on the line correctly, so the upper
If it is shifted down, to the left, or to the right, F 1 =1,
If it is shifted to the right, Z R =1. This has the purpose of preventing double selection. In other words, the field of view is widened so that the line segment can be detected even if it shifts, so if it shifts to the right, the next grid point may appear to shift to the left (if it shifts to the center between the grid points) ), double selection will occur, but this is to prevent this. The second bit is a bit indicating the presence or absence of an inverse logic symbol, and if this bit is "1", it indicates the presence of the small circle or rotation mark shown in FIG. The first bit is a symbol area bit provided in the present invention, which will be described later. The 0th bit is an ambiguity flag, and if this bit F2 is 1, the 8th to 11th bits are set to "1", specifically indicating that the grid point information is likely to be a character rather than a line segment.
かゝる格子ラベルコードをメモリ上に展開した
論理回路図面のビデオ信号の全体に亘つて抽出
し、この結果につき前述の「パターンマツチング
方式」を適用して第2図に示す如き論理シンボル
を認識し、第3図に示す論理シンボルの分類テー
ブルを作成する。第3図のi,jは第4図に示す
ように論理シンボルの代表点(・印で示す)の格
子点座標を示し、NOは論理シンボルの番号を、
またSDRCTは論理シンボルの方向を示す。こゝ
で方向とは第4図aの如き右向き、同bの如き上
向き、同cの如き左向き、同dの如き下向きを示
し(これは走査方向によつて決る)、それぞれ
SDRCTは0,1,2,3とする。更にSNOは論
理シンボルの認識結果(最終的に決つたシンボル
の名前)を格納する欄であるが、本発明では使用
しない。最後はFLAGであるが、こゝではすべて
0とする(詳細は後述する)。縦方向に並ぶ1,
2,3……は抽出して分類テーブルに収納した論
理シンボルの順番を示し、TOTALとはこゝに収
納した論理シンボルの個数である。本発明はこの
第3図の論理シンボルの分類テーブルが作成され
た段階から適用される。 The lattice label code is extracted from the entire video signal of the logic circuit diagram developed in memory, and the above-mentioned "pattern matching method" is applied to the result to generate logic symbols as shown in Figure 2. The logical symbol classification table shown in FIG. 3 is created. As shown in FIG. 4, i and j in FIG. 3 indicate the grid point coordinates of the representative point of the logic symbol (indicated by a * mark), and NO indicates the number of the logic symbol.
SDRCT also indicates the direction of the logical symbol. Here, the direction refers to the right direction as shown in Figure 4 a, the upward direction as shown in Figure 4 b, the left direction as shown in Figure 4 c, and the downward direction as shown in Figure 4 d (this is determined by the scanning direction), respectively.
SDRCT is 0, 1, 2, 3. Further, SNO is a column for storing the logical symbol recognition result (finally determined symbol name), but it is not used in the present invention. The last one is FLAG, but here it is all set to 0 (details will be explained later). 1 arranged vertically,
2, 3, . . . indicate the order of logical symbols extracted and stored in the classification table, and TOTAL is the number of logical symbols stored here. The present invention is applied from the stage when the logical symbol classification table shown in FIG. 3 is created.
論理シンボルの認識に際して最も基本となるも
のは前述の4方向コードD,L,U,Rである。
第5図bは同図aの論理シンボルに対する4方向
コードを図形で示し、“・“は“0000”つまりシン
ボルパターンなし、“「”は1001”つまりシンボル
の左角、を示す。以下これに準じる。論理シンボ
ルには第6図aのように文字が書かれていること
があり、この場合の4方向コードは同図bの如く
なる。矩形枠内の図形要素Eが文字A82FDDに
対応するもの(格子点ラベルコードに変換された
もの)である。論理シンボルの認識は、第5図b
と同じ内容の辞書パターンを用意して比較し、一
致した(距離が小さい)辞書パターンが持つ論理
シンボル名を当該論理シンボルに与えることによ
り行なう。手書き論理シンボルには大、小がある
が、格子軸に沿つて書くので単位は格子ピツチで
あり、この格子ピツチに合せて大、小の辞書パタ
ーンを用意しておく。しかし論理シンボル内の文
字については辞書には用意してないので、第6図
aの如き論理シンボルでは不一致度が大になる。 The most basic codes for recognizing logical symbols are the aforementioned four-way codes D, L, U, and R.
Figure 5b graphically shows the four-way code for the logic symbol in figure a, where "•" indicates "0000", that is, no symbol pattern, and "" indicates 1001, that is, the left corner of the symbol. Logic symbols may have characters written as shown in Figure 6a, and in this case the four-way code will be as shown in Figure 6b.Graphic element E within the rectangular frame corresponds to the character A82FDD. (converted to grid point label code).Recognition of logical symbols is shown in Figure 5b.
This is done by preparing and comparing dictionary patterns with the same contents as , and giving the logical symbol name of the matching (smaller distance) dictionary pattern to the logical symbol. There are large and small handwritten logical symbols, but since they are written along the grid axis, the unit is the grid pitch, and large and small dictionary patterns are prepared according to the grid pitch. However, since the characters in logical symbols are not prepared in the dictionary, the degree of inconsistency is large for logical symbols such as the one shown in FIG. 6a.
前述の「パターンマツチング方式」ではこのよ
うな論理シンボルにも対処し得るように第7図に
示す辞書つまりあいまい性を加味した辞書パター
ンを用いる。これは第6図bの第P4列に対応す
るもののみを示す。この列では第6図aより推定
できるように第1行はパターンなし従つて4方向
コードは0000、第2行は左右に延びる線分あり従
つて4方向コードは0101、第3行から第11行まで
はパターンなし0000、第12行は左右と下に線分あ
り従つて1101、第13行は上下に線分あり従つて
1010であるから、第7図bの第P4列の辞書の標
準コード欄SCには上記データ群を格納し、それ
に加えてドントケアコードDCを用意する。これ
はDLURに対応するN1―N4の4ビツトからな
る。また全体に対するドントケアビツトNTを用
意する。フリツプフロツプを示す矩形枠内はシン
ボル認識には不要であるからこの部分つまり第3
行〜第11行間はNT=1とし、何らかの4方向コ
ードが抽出されてもそれは無視することにする。
第2行は論理シンボルの線分があるので無視しな
いが、枠内に書いた文字が近接もしくは接触して
いることがあるのでドントケアコードDCのN1ビ
ツトを1にして下方への突き出し(4方向コード
のDビツト)を無視するようにする。同様に第12
行にも論理シンボルの線分があるので無視せず、
そして枠内文字による上方への突き出し(4方向
コードのUビツト)は考えられるのでこれに対処
するにはN3ビツトを1にすればよいが、文字は
枠内上部又は中央に書くのが普通で、下部には書
かないとしてここではDC=0即ち無視するもの
なしとしてある。このような方法で、認識すべき
論理シンボルに応じた辞書を作成しておく。第7
図aは同図bの内容をマークの形で示したもので
ある。 In the above-mentioned "pattern matching method", a dictionary shown in FIG. 7, that is, a dictionary pattern that takes ambiguity into account, is used to deal with such logical symbols. This only shows what corresponds to column P4 in FIG. 6b. In this column, as can be estimated from Figure 6a, there is no pattern in the first row, so the 4-way code is 0000, and in the second row there is a line segment extending left and right, so the 4-way code is 0101, and the 4-way code is 0101 from the 3rd row to the 11th row. There is no pattern up to the row 0000, the 12th row has line segments on the left, right and bottom, so 1101, and the 13th row has line segments on the top and bottom, so
1010, the above data group is stored in the standard code column SC of the dictionary in column P4 of FIG. 7b, and in addition, a don't care code DC is prepared. This consists of 4 bits N 1 - N 4 corresponding to DLUR. Also, prepare don't care bits N T for the whole. The area inside the rectangular frame indicating the flip-flop is not necessary for symbol recognition, so this part, that is, the third
It is assumed that N T =1 between rows to the 11th row, and even if any four-way code is extracted, it will be ignored.
The second line has a logical symbol line segment, so it is not ignored, but the characters written in the frame may be close to each other or touch each other, so set the N1 bit of the don't care code DC to 1 and push it downward (4 D bit of the direction code) is ignored. Similarly the 12th
There is a logical symbol line segment in the line, so do not ignore it,
It is possible that the characters inside the frame will stick out upwards (the U bit of the 4-way code), so to deal with this, you can set the N3 bit to 1, but it is normal to write the characters at the top or center of the frame. So, it is not written at the bottom, and here it is set as DC=0, that is, there is nothing to ignore. In this way, a dictionary is created according to the logical symbols to be recognized. 7th
Figure a shows the contents of Figure b in the form of marks.
こゝで分類テーブルの作成などにつき説明を補
足する。 Here, we will provide additional explanations regarding the creation of classification tables.
(a) 「分類テーブル」の作成について:認識・分
類すべき論理シンボルに応じたシンボル分類用
辞書を、上記の考え方に従つて、認識・分類す
べき論理シンボルの数だけ作成・用意してお
き、入力図面から抽出された格子点ラベルコー
ドの4方向コードと、シンボル分類用辞書に記
述された4方向コードSC、ドントケアコード
DCとドントケアビツトNTとの類似度演算によ
つて論理シンボルを認識・分類して作成する。(a) Regarding the creation of a "classification table": Create and prepare symbol classification dictionaries corresponding to the logical symbols to be recognized and classified according to the number of logical symbols to be recognized and classified, according to the above idea. , the four-way code of the grid point label code extracted from the input drawing, the four-way code SC written in the symbol classification dictionary, and the don't care code.
Logical symbols are recognized, classified and created by similarity calculation between DC and don't care bit N T.
類似度演算は、左上隅の格子点(アドレスを
1,1とする)から開始し、まず、左上隅の格
子点位置1,1からシンボル分類用辞書に記述
されたその辞書に対応するシンボルの大きさ
MX,MYの大きさの格子点ラベルコードの4
方向コードとの類似度を計算する。この類似度
が高ければ、第3図に示したシンボル分類テー
ブルのi,j欄に1,1を格納し、NO欄にそ
の辞書に対応する論理シンボル番号を格納す
る。類似度が低ければ、次の辞書(別の論理シ
ンボル用の辞書)との類似度演算を行う。すな
わち、1つの格子点に対して、類似度の高いも
のが現れるまで、すべての論理シンボルの辞書
とのマツチングを行うわけである。格子点アド
レス1,1に対しての類似度演算を終了する
と、次の格子点アドレス2,1に移つて、類似
度演算を行い、類似度の高いものがあれば、同
様にして、シンボル分類テーブルにそのアドレ
スと論理シンボル番号を格納する。このように
して、全格子点に対して類似度演算を行い、シ
ンボル分類テーブルを作成する。 The similarity calculation starts from the grid point in the upper left corner (address is 1, 1), and first, from the grid point position 1, 1 in the upper left corner, the symbol corresponding to the dictionary described in the symbol classification dictionary is calculated. size
4 of grid point label code of size MX, MY
Calculate the similarity with the direction code. If this degree of similarity is high, 1 and 1 are stored in the i and j columns of the symbol classification table shown in FIG. 3, and the logical symbol number corresponding to the dictionary is stored in the NO column. If the degree of similarity is low, a degree of similarity calculation is performed with the next dictionary (dictionary for another logical symbol). That is, for one grid point, matching with all logical symbol dictionaries is performed until one with a high degree of similarity appears. After completing the similarity calculation for grid point address 1, 1, move to the next grid point address 2, 1, perform similarity calculation, and if there is one with high similarity, perform symbol classification in the same way. Store the address and logical symbol number in the table. In this way, similarity calculations are performed on all grid points to create a symbol classification table.
詳細は、「パターンマツチング方式(特願昭
57−43954号、特開昭58−161088号)」を参照さ
れたい。 For details, see “Pattern matching method (Special application)
57-43954, Japanese Patent Application Laid-open No. 58-161088).
(b) 「論理シンボルの認識」の具体態様につい
て:基本的には、シンボル分類用辞書に記述さ
れた4方向コードと、格子点ラベルコードの4
方向コードとの類似度演算によつて、類似度の
高いものに論理シンボルを分類する。但し、そ
の際にドントケアビツトNTやドントケアコー
ドDCを旨く利用して、分類(認識)すべきシ
ンボル内部や周辺に文字等が書かれていても問
題なく分類できるような工夫をしている。(b) Concerning the specific aspects of "logical symbol recognition": Basically, the four-way code described in the symbol classification dictionary and the four-way grid point label code are used.
By calculating the degree of similarity with the direction code, logical symbols are classified into those having a high degree of similarity. However, in doing so, we make good use of Don't Care Bits N T and Don't Care Codes DC to ensure that the symbols to be classified (recognized) can be classified without any problems even if there are characters written inside or around them.
詳細は、「パターンマツチング方式(特願昭
57−43954号、特開昭58−161088号)」を参照さ
れたい。 For details, see "Pattern matching method (Special application
57-43954, Japanese Unexamined Patent Publication No. 58-161088).
(c) 「全体に対するドントケアビツトNT」の具
体的な意味について:上述のように、シンボル
分類用辞書は、辞書の容量が膨大になるのを防
ぐために、論理シンボル内に文字が書かれた場
合も、書かれていない場合も同一の分類辞書を
用いているため、シンボル分類用辞書と格子点
ラベルコードの4方向コードとの類似度をとる
際に、本来の論理シンボルの形状と、それ以外
の文字の部分とを区別するために、その部分の
4方向コードは異なつてもよい。すなわち、異
なつていても一致したとみなせるということを
表現するためのビツトがNTである。(c) Concerning the specific meaning of "don't care bits N T for the whole": As mentioned above, symbol classification dictionaries are designed so that characters are written within logical symbols to prevent the dictionary from becoming too large. Since the same classification dictionary is used for cases where the symbol is not written or not, when calculating the similarity between the symbol classification dictionary and the four-way code of the grid point label code, the original shape of the logical symbol and its The four-way code for that part may be different to distinguish it from other parts of the character. In other words, N T is the bit used to express that even if they are different, they can be considered to match.
全体という意味は、ドントケアコードDC
(N1―N4)がSC(DLUR)の各々に対応するド
ントケアビツトであるのに対し、ドントケアビ
ツトNTはSCすべてのドントケアビツトとなつ
ているということである。 Overall means don't care code DC
(N 1 - N 4 ) is a don't care bit corresponding to each SC (DLUR), whereas don't care bit NT is a don't care bit for all SCs.
(d) 「全体に対するドントケアビツトNT」の作
成態様について:人間(システム開発者或いは
システム利用者)が作成する。(d) Regarding the creation mode of "don't care bits N T for the whole": Created by a human (system developer or system user).
ところでこのようにして作成したシンボル分
類用辞書と格子点ラベルコードの4方向コード
の類似度演算によつて抽出した第3図のシンボ
ル分類テーブルを基にシンボル領域を設定する
場合、単に座標i,jを基準にそのシンボルの
大きさMX,MY内の格子点ラベルコードを全
てシンボル内としたのでは第6図の例ではシン
ボル枠内文字がシンボル領域に含まれてしま
い、別途文字を切出して認識するのに不都合で
ある(シンボル内であるから文字探索はしない
ことになる)。 By the way, when setting a symbol area based on the symbol classification table of FIG. 3 extracted by calculating the similarity between the symbol classification dictionary created in this way and the four-way code of the grid point label code, simply use the coordinates i, If all the grid point label codes within the symbol size MX and MY are placed within the symbol using j as the reference, in the example shown in Figure 6, the characters inside the symbol frame will be included in the symbol area, so the characters must be cut out separately. This is inconvenient for recognition (character search is not performed because it is inside the symbol).
また第2図dの如き論理シンボルでは一部が
ノアと同じであるので第8図のaまたはbのい
ずれかとして認識される傾向がある。これは論
理シンボルの認識に当つては窓Wに現われるパ
ターンが認識対象となり、この窓Wが格子ビツ
チで移動して各位置における窓内パターンが辞
書パターンと比較されるのでW1の位置では第
8図aのシンボル、W2の位置では同図bのシ
ンボルとなることによる。 Furthermore, since a part of the logic symbol as shown in FIG. 2d is the same as NOAH, it tends to be recognized as either a or b in FIG. This is because when recognizing a logical symbol, the pattern that appears in the window W is the recognition target, and this window W moves in a grid bit and the pattern within the window at each position is compared with the dictionary pattern. This is because the symbol in Figure 8a becomes the symbol in Figure 8b at the W2 position.
本発明はかゝる問題を解決しようとするもの
で、シンボル認識辞書の前記ドントケアビツト
N1〜N4、NTを利用する。先ず第3図のシンボル
分類テーブルから順次シンボルのアドレスi,j
とそのシンボルNO、を読出し、シンボルNO、
に対応する分類辞書パターンを読出す。次にi,
jを基準にそのシンボル領域の大きさMX*MY
の各格子点ラベルコードのシンボル領域ビツト即
ち第1図の第1ビツトSに1,0を設定する。こ
の決定にはシンボル分類辞書の全ドントケアビツ
トNTを調べ、NT=1なら無条件にS=0とし、
この格子点情報は論理シンボルパターンのそれで
はない旨を明示する。NT=0で標準コードSCの
いずれかのビツトが1ならS=1とする。こうし
て該MX*MYの矩形領域内の格子点ラベルコー
ド群はS=1のもののみを取出すと辞書パターン
と全く同じであり、配線、文字などは消去された
ことになる。つまりこの操作で、認識された論理
シンボルのパターン情報はいわば辞書パターンに
よる修正、浄化が行なわれ、シンボルパターンと
それ以外とが明瞭に分離される。 The present invention aims to solve such a problem, and the above-mentioned don't care bits of a symbol recognition dictionary are
N 1 to N 4 and N T are used. First, the symbol addresses i, j are sequentially determined from the symbol classification table in FIG.
and its symbol NO, read out the symbol NO,
Read the classification dictionary pattern corresponding to . Then i,
The size of the symbol area based on j is MX*MY
The symbol area bits of each lattice point label code, that is, the first bit S in FIG. 1, are set to 1 or 0. To make this decision, check all don't care bits N T in the symbol classification dictionary, and if N T = 1, unconditionally set S = 0,
This grid point information clearly indicates that it is not a logical symbol pattern. If N T =0 and any bit of the standard code SC is 1, S=1. In this way, if only those with S=1 are extracted from the lattice point label code group in the MX*MY rectangular area, it is exactly the same as the dictionary pattern, and wiring, characters, etc. are erased. In other words, through this operation, the pattern information of the recognized logical symbol is corrected and purified using the dictionary pattern, so that symbol patterns and others are clearly separated.
上記シンボル領域ビツトSの設定に際し、格子
点ラベルコードの該ビツトSに既設定されたもの
があれば当該シンボルは重複して抽出されたもの
とみなし、論理シンボルの分類テーブルのFLAG
を1にし(このシンボルは重複している、を意味
する)、シンボル領域ビツトSの設定は実行しな
い。これにより第8図を参照して述べた二重抽
出、認識を回避できる。なおSビツトが既設定で
あれば再設定は行なわないので、処理が早いもの
の方が優先度が大であることになる。そこで認識
に当つて辞書パターンは大型パターンのものから
小型パターンのものへの順で行なう。このように
すると第8図の窓W1に対する辞書パターンは窓
W2に対する辞書パターンよりも大きい(詳しく
は細幅の辞書パターンで始めて一致がとれる)の
で、第8図bシンボルの抽出が回避される。 When setting the above symbol area bit S, if there is something already set in the bit S of the lattice point label code, the symbol is considered to have been extracted redundantly, and the FLAG of the logic symbol classification table is
is set to 1 (meaning that this symbol is duplicated), and the symbol area bit S is not set. This makes it possible to avoid double extraction and recognition as described with reference to FIG. Note that if the S bit has already been set, it will not be reset, so the faster the processing, the higher the priority. Therefore, the dictionary patterns are recognized in order from large patterns to small patterns. In this way, the dictionary pattern for window W 1 in Figure 8 is
Since it is larger than the dictionary pattern for W 2 (specifically, a match can be achieved only with a narrow dictionary pattern), extraction of the symbol in FIG. 8b is avoided.
以上本方式によればシンボルの重複検出を回避
できると共に、文字部分および結線と論理シンボ
ルとを厳密に分離できる。 As described above, according to the present method, it is possible to avoid detection of duplicate symbols, and to strictly separate character parts and connections from logical symbols.
第9図に上記の処理例を示す。aは手書きした
論理回路図面、bはそれを格子点ラベルコードに
圧縮してなるデータ群を2次元図形表示する図で
ある。格子間隔は比較的大であるので図示のよう
に円弧の部分は直線化され、文字は判読できない
までに変形している。太線部分は前述の処理でS
=1に設定された格子点ラベルコードを持つ部分
であり、太線のみを眺めれば明らかなように文字
及び配線は消去され、論理シンボルのみになつて
いる。 FIG. 9 shows an example of the above processing. A is a hand-drawn logic circuit diagram, and b is a two-dimensional graphical representation of a data group obtained by compressing the logic circuit diagram into a grid point label code. Since the grid spacing is relatively large, the arc portions are straightened as shown in the figure, and the characters are deformed to the point that they are unreadable. The thick line part is S by the above process.
This is the part with the lattice point label code set to =1, and as is clear from looking at only the thick lines, the characters and wiring have been erased, leaving only logical symbols.
第10図および11図は本発明の実施例装置の
概要を示す。10は例えばフアクシミリである画
像入力装置、12は該装置10の出力ビデオ信号
を書込まれる画像メモリ、14は該メモリのアク
セス用アドレス信号を発生するアドレス制御部、
15は全体の制御部、16,18,20,22、
および24は該メモリ12の読出し出力を受ける
検証回路16、基準点検出回路、格子変換回路
(水平)、同(垂直)、およびLB3生成回路であ
る。26は基準点検出回路18が検出した格子点
を格納するテーブル、28および30は格子点ラ
ベルコード生成回路(水平)および同(垂直)、
32はLBLテーブル、34,36,38はLB1
〜LB3テーブル、40は検証窓Wの設定回路、
42,44は検証回路16が出力したSX1,SY
1,SX2,SY2を格納するテーブル、46はア
ドレス変換回路、52,54,56,58、およ
び60は第11図のラベルテーブル50よりラベ
ルを入力されて処理を行なう対処理回路、線パタ
ーン切れ補正回路、文字除去回路、ズレ補正回
路、あいまい補正回路である。更に第11図の6
2はシンボル分類用辞書メモリ、64は類似度演
算回路、66は該回路が認識した論理シンボルを
格納する分類テーブル、68はシンボル領域の検
出回路、70はシンボル分類用辞書メモリ、72
はシンボル領域の設定回路である。尚、62のシ
ンボル分類用辞書メモリと70のシンボル分類用
辞書メモリは同一のものである。これらの大部分
は「パターンマツチング方式」と同じであり、
誰、本発明ではそれにシンボル領域の検出回路6
8とシンボル領域の設定回路72が付加される。
シンボル領域つまりSビツトの設定の仕方は前述
の通りであり、シンボル領域の検出回路68は、
シンボル分類テーブル66に格納された論理シン
ボルとその存在するアドレスを読み出すととも
に、その論理シンボルに対応する辞書をシンボル
分類用辞書メモリ70から読み出し、その辞書に
記述された全ドントケアビツトNTに基づいてシ
ンボル領域の設定を行う際に、その格子点ラベル
コードの第1ビツトSが1であるか否かを検出
し、S=1(既設定)であれば、シンボル分類テ
ーブル上の今シンボル領域の設定を行おうとして
いるシンボルのFLAGを1にする。S=0(未設
定)であれば、シンボル領域の設定回路72を起
動する。また、シンボル領域の設定回路72はシ
ンボル分類辞書の全ドントケアビツトNTに基づ
いて、シンボル領域の設定を行うべき格子点ラベ
ルコードの第1ビツトSの設定を実行する。 10 and 11 show an outline of an embodiment of the present invention. 10 is an image input device such as a facsimile; 12 is an image memory into which the output video signal of the device 10 is written; 14 is an address control unit that generates an address signal for accessing the memory;
15 is an overall control unit, 16, 18, 20, 22,
and 24 are a verification circuit 16, a reference point detection circuit, a lattice conversion circuit (horizontal), a lattice conversion circuit (vertical), and an LB3 generation circuit which receive the readout output of the memory 12. 26 is a table storing the grid points detected by the reference point detection circuit 18; 28 and 30 are grid point label code generation circuits (horizontal) and the same (vertical);
32 is LBL table, 34, 36, 38 are LB1
~LB3 table, 40 is the verification window W setting circuit,
42 and 44 are SX1 and SY output by the verification circuit 16
1, a table for storing SX2, SY2; 46 is an address conversion circuit; 52, 54, 56, 58, and 60 are pair processing circuits that perform processing by inputting labels from the label table 50 in FIG. 11; They are a correction circuit, a character removal circuit, a misalignment correction circuit, and an ambiguity correction circuit. Furthermore, 6 in Figure 11
2 is a symbol classification dictionary memory, 64 is a similarity calculation circuit, 66 is a classification table for storing the logical symbols recognized by the circuit, 68 is a symbol area detection circuit, 70 is a symbol classification dictionary memory, 72
is a symbol area setting circuit. Note that the symbol classification dictionary memory 62 and the symbol classification dictionary memory 70 are the same. Most of these are the same as the "pattern matching method",
In the present invention, the symbol area detection circuit 6
8 and a symbol area setting circuit 72 are added.
The method of setting the symbol area, that is, the S bit, is as described above, and the symbol area detection circuit 68 is as follows.
The logical symbols stored in the symbol classification table 66 and their addresses are read out, and the dictionary corresponding to the logical symbols is read out from the symbol classification dictionary memory 70, and based on all don't care bits N T written in the dictionary. When setting a symbol area, it is detected whether the first bit S of the grid point label code is 1 or not. If S = 1 (already set), the current symbol area on the symbol classification table is Set the FLAG of the symbol you are trying to set to 1. If S=0 (not set), the symbol area setting circuit 72 is activated. Further, the symbol area setting circuit 72 sets the first bit S of the lattice point label code for which the symbol area is to be set, based on all don't care bits N T of the symbol classification dictionary.
発明の効果
以上説明したように本発明では格子点ラベルコ
ードに当該格子点情報が論理シンボルパターンに
係るものであるか否かを示すシンボル領域ビツト
を設け、論理シンボルが認識された段階で辞書パ
ターンに従つて該シンボル領域ビツトの設定を行
なうので、論理シンボルに付加されている配線お
よび文字などを論理シンボルから分離し、論理シ
ンボルの正確な自動読取りを可能にすることがで
きる。該シンボル領域ビツトの設定は1度のみと
し再設定は行なわないので、同じ論理シンボルを
複数の異なる論理シンボルに誤認識するようなこ
とがない利点が得られる。Effects of the Invention As explained above, in the present invention, a symbol area bit is provided in the lattice point label code to indicate whether or not the lattice point information is related to a logical symbol pattern, and when a logical symbol is recognized, a dictionary pattern is set. Since the symbol area bits are set according to the following, wires, characters, etc. attached to the logic symbol can be separated from the logic symbol, and the logic symbol can be read accurately and automatically. Since the symbol area bits are set only once and are not reset, there is an advantage that the same logical symbol will not be mistakenly recognized as a plurality of different logical symbols.
第1図は格子点ラベルコードの説明図、第2図
は論理シンボルの例を示す図、第3図は論理シン
ボルの分類テーブルの説明図、第4図は論理シン
ボルの方向及び代表点の説明図、第5図は標準パ
ターンのまた第6図は変形パターンの説明図、第
7図はあいまい性を加味した辞書パターンの説明
図、第8図は重複したシンボルの説明図、第9図
は処理例を示す説明図、第10図および第11図
は実施例回路を示すブロツク図である。
図面でDLURは4方向コード、Wは走査窓、
Sはシンボル領域ビツトである。
Figure 1 is an explanatory diagram of the grid point label code, Figure 2 is an illustration of an example of a logical symbol, Figure 3 is an explanatory diagram of a logical symbol classification table, and Figure 4 is an explanation of the direction and representative point of the logical symbol. Figure 5 is an explanatory diagram of the standard pattern, Figure 6 is an explanatory diagram of a modified pattern, Figure 7 is an explanatory diagram of a dictionary pattern that takes into account ambiguity, Figure 8 is an explanatory diagram of duplicate symbols, and Figure 9 is an explanatory diagram of a dictionary pattern that takes into account ambiguity. FIGS. 10 and 11 are explanatory diagrams showing processing examples, and are block diagrams showing embodiment circuits. In the drawing, DLUR is a 4-way code, W is a scanning window,
S is a symbol area bit.
Claims (1)
字および配線が混在する論理回路図面を入力装置
で読み取り、得られたビデオ信号から各格子点に
おける線分の方向を示す4方向コードを含む格子
点ラベルコードを求め、走査窓領域内の該格子点
ラベルコードを、予め作成された辞書(論理シン
ボルの形状に対応した4方向コードと比較のため
のドントケアビツトの情報を含む)と比較して論
理シンボルを自動的に認識し分離する方式におい
て、 該格子点ラベルコードにシンボル領域ビツトを
格納する領域を設け、格子点ラベルコードの4方
向コードと辞書との比較演算により認識された論
理シンボルの認識結果を格納する論理シンボル認
識結果格納手段と、該論理シンボル認識結果格納
手段から論理シンボル認識情報を順次読み出すと
ともに該読み出された論理シンボルに対応する辞
書を読み出して、該論理シンボルを構成する線分
に対応する格子点ラベルコードのシンボル領域ビ
ツトが既に設定されているか否かを検出するシン
ボル領域ビツト検出手段と、該シンボル領域ビツ
ト検出手段によりシンボル領域ビツトが既設定で
あると判定されたとき、前記論理シンボル認識結
果格納手段に格納され、今読み出されている論理
シンボルの認識結果を無効にする手段と、前記シ
ンボル領域ビツト検出手段によりシンボル領域ビ
ツトが未設定であると判定されたとき、今読み出
されている論理シンボルを構成する線分に対応す
る格子点ラベルコードのシンボル領域ビツトの設
定を、該論理シンボルに対応する今読み出されて
いる辞書のドントケアビツトに基づいて実行する
シンボル領域ビツト設定手段とを備え、文字およ
び配線情報より論理シンボル情報を分離すること
を特徴とする論理シンボルの自動認識・分離方
式。 2 シンボル領域ビツトの設定は1回のみで、設
定済の該ビツトの再設定はしないことを特徴とす
る特許請求の範囲第1項記載の論理シンボル領域
の自動認識・分離方式。[Claims] 1. A logic circuit drawing in which characters and wiring are mixed in logic symbols drawn along a grid axis is read by an input device, and the direction of a line segment at each grid point is indicated from the obtained video signal. A lattice point label code including a 4-way code is obtained, and the lattice point label code within the scanning window area is added to a dictionary created in advance (4-way code corresponding to the shape of the logical symbol and don't care bit information for comparison). In this method, logical symbols are automatically recognized and separated by comparing the 4-way code of the lattice point label code with a dictionary by providing an area for storing symbol area bits in the lattice point label code a logical symbol recognition result storage means for storing recognition results of recognized logical symbols; sequentially reading logical symbol recognition information from the logical symbol recognition result storing means; and reading a dictionary corresponding to the read logical symbols; symbol area bit detection means for detecting whether a symbol area bit of a lattice point label code corresponding to a line segment constituting the logical symbol has already been set; When it is determined that the logical symbol recognition result is stored in the logical symbol recognition result storage means and is currently being read out, means for invalidating the recognition result of the logical symbol currently being read out, and means for determining whether the symbol area bit is not set by the symbol area bit detection means When it is determined that 1. An automatic recognition and separation method for logical symbols, comprising a symbol area bit setting means executed based on don't care bits, and separating logical symbol information from character and wiring information. 2. The automatic recognition/separation method for logical symbol areas according to claim 1, wherein the symbol area bits are set only once, and the bits that have already been set are not reset.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP57111896A JPS592190A (en) | 1982-06-29 | 1982-06-29 | Separating system of logical symbol domain |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP57111896A JPS592190A (en) | 1982-06-29 | 1982-06-29 | Separating system of logical symbol domain |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS592190A JPS592190A (en) | 1984-01-07 |
| JPS6322348B2 true JPS6322348B2 (en) | 1988-05-11 |
Family
ID=14572846
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP57111896A Granted JPS592190A (en) | 1982-06-29 | 1982-06-29 | Separating system of logical symbol domain |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS592190A (en) |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS62107378A (en) * | 1985-11-05 | 1987-05-18 | Mitsubishi Electric Corp | Drawing data managing system |
| JP7435886B1 (en) * | 2023-06-19 | 2024-02-21 | 横河電機株式会社 | Plant drawing symbol detection system, plant drawing symbol detection method, and plant drawing symbol detection program |
| JP7442762B1 (en) * | 2023-06-19 | 2024-03-05 | 横河電機株式会社 | Plant drawing line detection system, plant drawing line detection method, and plant drawing line detection program |
-
1982
- 1982-06-29 JP JP57111896A patent/JPS592190A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS592190A (en) | 1984-01-07 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPH0420226B2 (en) | ||
| JPH08305796A (en) | Pattern extraction device, pattern re-recognition table creation device, and pattern recognition device | |
| JP2012181653A (en) | Scoring method, program of scoring method, and scoring system | |
| JPS6322348B2 (en) | ||
| US5671427A (en) | Document editing apparatus using a table to link document portions | |
| JPS6321949B2 (en) | ||
| JPH11312215A (en) | Two-dimensional code decoding device and storage medium | |
| JPS6322349B2 (en) | ||
| JPH09288714A (en) | Table recognition method and device | |
| JPH07230526A (en) | Character reader | |
| JP5619111B2 (en) | Image determination apparatus and program | |
| JPS6325385B2 (en) | ||
| JPH0421228B2 (en) | ||
| JPH0697470B2 (en) | Character string extractor | |
| JPH07113951B2 (en) | Character recognition result confirmation and correction processing method in drawing recognition processing | |
| JPS62134767A (en) | Automatic extracting device for symbol name and segment name | |
| JPH0420506B2 (en) | ||
| JPS60120480A (en) | System for recognizing logical circuit drawing | |
| JPS62133584A (en) | Document image processing system | |
| JPS648872B2 (en) | ||
| JPS6057110B2 (en) | Optical character recognition method and device | |
| JPH0433082A (en) | Document recognizing device | |
| JPS6261180A (en) | Character area extraction system | |
| JPH0434652A (en) | Drawing input device | |
| JPH0430634B2 (en) |