JPS648871B2 - - Google Patents

Info

Publication number
JPS648871B2
JPS648871B2 JP56212791A JP21279181A JPS648871B2 JP S648871 B2 JPS648871 B2 JP S648871B2 JP 56212791 A JP56212791 A JP 56212791A JP 21279181 A JP21279181 A JP 21279181A JP S648871 B2 JPS648871 B2 JP S648871B2
Authority
JP
Japan
Prior art keywords
pattern
image
code
small area
acceptable
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired
Application number
JP56212791A
Other languages
Japanese (ja)
Other versions
JPS58117080A (en
Inventor
Shigemi Osada
Akira Inoe
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 JP56212791A priority Critical patent/JPS58117080A/en
Publication of JPS58117080A publication Critical patent/JPS58117080A/en
Publication of JPS648871B2 publication Critical patent/JPS648871B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/24Aligning, centring, orientation detection or correction of the image

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Image Analysis (AREA)
  • Character Input (AREA)

Description

【発明の詳細な説明】 (A) 発明の技術分野 本発明は、図形パターン抽出処理方式、特に、
例えば格子軸に沿わせる形で論理回路図などを手
書きした入力図面を読取つてデータ処理装置に入
力する如き図形処理システムにおいて、論理回路
図中の予め定めた論理記号シンボルなどを抽出す
る図形パターン抽出処理方式に関するものであ
る。
[Detailed Description of the Invention] (A) Technical Field of the Invention The present invention relates to a graphic pattern extraction processing method, in particular,
For example, in a graphic processing system where an input drawing, such as a logic circuit diagram drawn by hand along a lattice axis, is read and input into a data processing device, graphic pattern extraction is used to extract predetermined logic symbols, etc. from the logic circuit diagram. This is related to the processing method.

(B) 技術背景と問題点 例えば格子軸を描いた方眼用紙上に出来るだけ
格子軸に沿うように論理回路図を手書きするよう
にし、当該手書きした論理回路図について、論理
記号やシンボルや配線パターンなどを自動的に読
取つて判定し、データ処理装置に入力することが
考慮され、研究されている。
(B) Technical background and problems For example, a logic circuit diagram is drawn by hand on a graph paper with lattice axes drawn along the lattice axes as much as possible, and the logic symbols, symbols, and wiring patterns of the handwritten logic circuit diagram are drawn. It is being considered and researched to automatically read and determine information such as information, and input it into a data processing device.

このような図形処理システムにおいては、手書
きであることによつて、上記格子軸上に正しく線
が乗つていないこと、論理記号シンボルや配線パ
ターンのみでなく必要に応じてANDなどの本字
が書き込まれることがあることなどのために、図
形処理が複雑とならざるを得ない。
In such a graphic processing system, due to handwriting, lines may not be placed correctly on the grid axes, and not only logical symbols and wiring patterns but also real characters such as AND may be written as necessary. Graphical processing must be complicated because it may be written.

本発明者らは、上記の如き図形処理システムの
一環として、特願昭56−101842号や特願昭56−
101843号の特許出願を行なつた。これらの特許出
願においては、処理対象画像を、格子軸の交点
(格子点という)を中心とする小領域単位によつ
て区分し、各区分された小領域単位内のパターン
を格子点に対応する格子点ラベル・コードとして
16ビツトのコードにて表現し、該コードを用いて
以後の処理を行なつてゆくようにしている。
The present inventors have developed Japanese Patent Application No. 101842/1984 and Japanese Patent Application No.
Filed patent application No. 101843. In these patent applications, an image to be processed is divided into small area units centered at intersections of grid axes (referred to as lattice points), and a pattern within each segmented small area unit is associated with the lattice points. As grid point label code
It is expressed as a 16-bit code, and the code is used to perform subsequent processing.

即ち第1図図示の如き、格子軸1をもつ方眼用
紙上に(図示の格子間隔は拡大されて示されてい
る)、論理記号シンボル2などを手書きし、これ
を自動的に読取つてデータ処理装置に入力するよ
うにする。該読取りに当つて、格子点3を中心と
する小領域単位4によつて区分し、各小領域単位
4毎に当該小領域単位4内のパターンを第2図図
示の如く格子点ラベル・コード5として16ビツト
で表現するようにし、以後当該コードを用いて処
理を行なつてゆくようにしている。
That is, as shown in FIG. 1, logic symbols 2, etc. are handwritten on a graph paper with grid axis 1 (the grid spacing shown is enlarged), and these are automatically read and data processed. input into the device. In this reading, the grid point 3 is divided into small area units 4 centered on the grid point 3, and the pattern within the small area unit 4 is divided into grid point labels and codes for each small area unit 4 as shown in FIG. 5 and is expressed in 16 bits, and subsequent processing will be performed using this code.

第2図図示の格子点ラベル・コード5を抽出す
る詳細説明は上述の特許出願にゆずるが、上記格
子点ラベル・コード5には「4方向コード」とし
て「D、L、U、R」の4ビツトが与えられる。
該4方向コードは次の如き状態を表現している。
即ち、1つの小領域単位4内において、実質的に
下方向の線分が存在するとみなされた場合にD=
1が与えられ、実質的に左方向の線分が存在する
とみなされた場合にL=1が与えられ、実質的に
上方向の線分が存在するとみなされた場合にU=
1が与えられ、実質的に右方向の線分が存在する
とみなされる場合にR=1が与えられる。第1図
図示の例で言えば、小領域単位4−1に対しては
「DLUR」として「1001」が与えられ、小領域単
位4−2に対しては「DLUR」として「1011」
が与えられる。
The detailed explanation of how to extract the lattice point label code 5 shown in FIG. 2 is given to the above-mentioned patent application. 4 bits are given.
The four-way code expresses the following conditions.
That is, when it is considered that there is a substantially downward line segment within one small area unit 4, D=
1 is given, L=1 is given when it is assumed that a line segment substantially to the left exists, and U= is given when it is considered that a line segment substantially upwards exists.
1 is given, and R=1 is given when it is considered that a substantially rightward line segment exists. In the example shown in Figure 1, "1001" is given as "DLUR" to the small area unit 4-1, and "1011" is given as "DLUR" to the small area unit 4-2.
is given.

(C) 発明の目的と構成 本発明は、上述の如く抽出された格子点ラベ
ル・コード上の4方向コードに注目して、第1図
図示の論理記号シンボル2の如き予め定めたパタ
ーンを、パターン辞書メモリの内容と照合して抽
出することを目的としており、上記4方向コード
生成の過程において本来の4方向コードが多少変
化しても正しく抽出できるようにすることを目的
としている。そしてそのため、本発明の図形パタ
ーン抽出処理方式は、画像入力手段と、 該画像入力手段から入力され、画像存在域を2
次元上の小領域単位に分割し、当該小領域単位内
の画像を方向コードを含む格子点ラベル・コード
として表現した画像データを保持する画像データ
保持手段と を有してなる図形処理システムにおいて、 上記画像中の予め定めたパターンに対応する複
数個の各標準パターンについて、当該標準パター
ンを構成する各小領域単位内の画像を、少なくと
も、標準パターンの画像に実質上合致する第1の
画像と、合致しないが許容できる第2の画像と、
合致せず許容きない第3の画像とを方向コードに
よつて表現したパターン辞書メモリと、 上記格子点ラベル・コード中の方向コードと当
該パターン辞書メモリに格納されている方向コー
ドとを小領域単位で比較して類似度を計算する類
似度抽出回路とを設け、 該類似度計算された結果に基いて、抽出する図
形パターンが上記標準パターンと実質上合致する
か、合致しないが許容できるか、合致せず許容で
きないのいずれかを決定する ことを特徴としている。以下図面を参照しつつ説
明する。
(C) Object and structure of the invention The present invention focuses on the four-way code on the lattice point label code extracted as described above, and generates a predetermined pattern such as the logical symbol symbol 2 shown in FIG. The purpose is to extract the four-way code by comparing it with the contents of the pattern dictionary memory, and to enable correct extraction even if the original four-way code changes somewhat in the process of generating the four-way code. Therefore, the graphic pattern extraction processing method of the present invention includes an image input means, and an input from the image input means that divides the image existence area into two.
A graphic processing system comprising: an image data holding means that divides into dimensional small area units and holds image data representing an image within the small area unit as a lattice point label code including a direction code, For each of the plurality of standard patterns corresponding to a predetermined pattern in the above-mentioned image, the image within each small area unit constituting the standard pattern is at least a first image that substantially matches the image of the standard pattern. , a non-matching but acceptable second image, and
A pattern dictionary memory that expresses the third image that does not match and is not acceptable using a direction code, and a small area in which the direction code in the grid point label code and the direction code stored in the pattern dictionary memory are stored. A similarity extraction circuit that calculates similarity by comparing units is provided, and based on the result of the similarity calculation, it is determined whether the graphic pattern to be extracted substantially matches the standard pattern or whether it does not match but is acceptable. , does not match and is not acceptable. This will be explained below with reference to the drawings.

(D) 発明の実施例 第3図ないし第6図は本発明の問題点を説明す
る説明図、第7図A,Bは本発明に用いる一実施
例パターン辞書メモリを説明する説明図、第8図
は本発明の一実施例構成を示す。
(D) Embodiment of the invention FIGS. 3 to 6 are explanatory diagrams for explaining the problems of the present invention. FIGS. 7A and B are explanatory diagrams for explaining an embodiment of the pattern dictionary memory used in the present invention. FIG. 8 shows the configuration of an embodiment of the present invention.

第3図Aは第1図図示の論理記号シンボル2に
対応する標準パターン6を示しており、当該標準
パターン6に対応して各小領域単位4についての
4方向コードを概念的に示すと、第3図B図示の
如きものとなる。本発明の場合には、第3図Bに
示す如き方向コードを各標準パターン毎にパター
ン辞書メモリに格納しておき、入力された画像か
ら得られた各小領域単位毎の方向コードとの照合
をとつて、例えば標準パターン6に対向するパタ
ーンを画像中から抽出するようにする。即ち、第
4図において、パターン辞書内に格納されている
所の標準パターンに対応する方向コード群7と、
入力された画像から得られた方向コード群8とに
ついて、各小領域単位4対応に方向コードを照合
してゆくようにする。
FIG. 3A shows a standard pattern 6 corresponding to the logic symbol 2 shown in FIG. The result will be as shown in FIG. 3B. In the case of the present invention, a direction code as shown in FIG. 3B is stored in a pattern dictionary memory for each standard pattern, and the direction code is compared with the direction code for each small area unit obtained from the input image. For example, a pattern opposite to the standard pattern 6 is extracted from the image. That is, in FIG. 4, the direction code group 7 corresponding to the standard pattern stored in the pattern dictionary,
With respect to the direction code group 8 obtained from the input image, the direction codes are compared for each small area unit 4.

ただし、上記特許出願書類にも示されるよう
に、上述の4方向コードを生成するに当つて複雑
な処理が行なわれており、かつ手書き図形である
ことなどから、第3図A図示の標準パターン6に
対応する入力画像からのパターンが、例えば第5
図A図示の如きもの即ち第5図Bに概念的に示し
た方向コード群8をもつものとなることが生じ易
い。なお方向コード群8において座標(、A)
の小領域単位での方向コード(DLUR)が
(1010)となつていて第3図B図示のものとは異
なつてしまつている。このような変形に対しても
正しくパターンを抽出することが望まれる。しか
し、例えば第6図図示の方向コード群8の如く、
座標(、A)の小領域単位内で空白を示してい
るものは、第5図B図示のものとは異なつた形で
認識できることが望まれる。
However, as shown in the above-mentioned patent application documents, the standard pattern shown in Figure 3A is complicated because the above-mentioned four-way code is generated using complicated processing and is a handwritten figure. For example, if the pattern from the input image corresponding to
It is easy to have the direction code group 8 as shown in FIG. 5A, that is, as conceptually shown in FIG. In addition, in the direction code group 8, the coordinates (, A)
The direction code (DLUR) for each small area is (1010), which is different from that shown in FIG. 3B. It is desirable to extract patterns correctly even with such deformation. However, for example, as in the direction code group 8 shown in FIG.
It is desired that blank spaces within the small area unit of coordinates (,A) be recognized in a different form from that shown in FIG. 5B.

このために、本発明の場合に、パターン辞書の
内容として次の如きものと用意するようにする。
第7図Aは、第3図B図示の小領域(、A)、
(、A)、…(、A)に対応する範囲における
辞書内容を示している。即ち、座標(、A)の
小領域単位について、空白「・」(0000)であれ
ば重み「1」とし、下方向「〓」(1000)であれ
ば重み「0」とし、その他であれば重み「−1」
とするように辞書内容を用意する。同様に座標
(A)の小領域単位について、下・右方向「〓」
(1001)であれば重み「1」とし、上・下・右方
向「〓」(1011)であれば重み「0」とし、その
他であれば重み「−1」とするように辞書内容を
用意する。
For this purpose, in the case of the present invention, the following contents of the pattern dictionary are prepared.
FIG. 7A shows the small area (,A) shown in FIG. 3B,
The dictionary contents in the range corresponding to (,A),...(,A) are shown. That is, for the small area unit of coordinates (, A), if it is a blank "・" (0000), the weight is set to "1", if it is a downward direction "〓" (1000), the weight is set to "0", and if it is other than that, the weight is set to "1". Weight “-1”
Prepare the dictionary contents as follows. Similarly, for the small area unit of coordinate (A), move downward/rightward "〓"
Prepare the dictionary contents so that if it is (1001), the weight is ``1'', if it is ``〓'' (up/down/rightward), it is the weight ``0'', and if it is otherwise, the weight is ``-1''. do.

そして、上記照合に当つて、上述の如き重みを
乗じて累和値をとつて閾値と比較するようにす
る。実際にパターン辞書メモリ中には、「その他」
という形で記述することは出来ず、第7図B図示
の如く、例えば、座標(、A)において、(i)方
向コード(1111)、(1110)、(1101)、(1100)、
(1011)、(1010)、(1001)が現われたとき重み
「−1」を与え、(ii)方向コード(1000)が現われ
たとき重み「0」を与え、(iii)方向コード(0111)、
(0110)、(0101)、(0100)、(0011)、(0010)、
(0001)が現われたとき重み「−1」を与え、(iv)
方向コード(0000)が現われたとき重み「1」を
与えるように、辞書内容を用意する。
Then, in the above verification, the weights as described above are multiplied, the cumulative sum value is obtained, and the sum value is compared with the threshold value. In fact, in the pattern dictionary memory, "Other"
For example, at coordinates (,A), (i) direction codes (1111), (1110), (1101), (1100),
When (1011), (1010), and (1001) appear, a weight of “-1” is given, (ii) when a direction code (1000) appears, a weight of “0” is given, and (iii) a direction code (0111) is given a weight of “0”. ,
(0110), (0101), (0100), (0011), (0010),
When (0001) appears, give weight “-1”, (iv)
The dictionary contents are prepared so that when the direction code (0000) appears, a weight of "1" is given.

第8図は本発明の一実施例構成を示している。 FIG. 8 shows the configuration of an embodiment of the present invention.

図中、11は画像入力装置であつて、手書き入
力図形を読取つて画像データとして出力するもの
で、例えばフアクシミリの如きものが使用され
る。12は画像メモリであつて、画像入力装置1
から供給された画像データを保持するものであ
る。13は検証回路であつて上述の小領域単位内
を1×nメツシユの検証窓によつて第1ないし第
3の検証を行つてゆく処理を行なうものである。
14は基準点検出回路であつて、入力データ用紙
上の基準点を検出して、画像データに生じている
回転歪などを算出して、画像メモリ12から読出
されるデータの歪を補正するものである。15は
格子点テーブルであつて、入力された画像データ
の格子点のアドレスを保持しているものである。
In the figure, reference numeral 11 denotes an image input device that reads handwritten input figures and outputs them as image data, such as a facsimile device. 12 is an image memory, and the image input device 1
It holds the image data supplied from. Reference numeral 13 denotes a verification circuit which performs the first to third verification processes within the above-mentioned small area unit using a 1.times.n mesh verification window.
14 is a reference point detection circuit which detects a reference point on an input data sheet, calculates rotational distortion etc. occurring in image data, and corrects distortion of data read out from image memory 12. It is. Reference numeral 15 is a grid point table that holds addresses of grid points of input image data.

16は格子変換回路(水平)であり、また18
は格子変換回路(垂直)であつて、格子点近傍の
画像データを抽出して処理するものである。17
は格子点ラベル・コード生成回路(水平)であ
り、19は格子点ラベル・コード生成回路(垂
直)であつて、上記回路16または18からの出
力にもとづいてラベル・コード中の位置ズレに関
連するビツトを生成するための処理を行なうもの
である。
16 is a lattice conversion circuit (horizontal), and 18
is a lattice conversion circuit (vertical) that extracts and processes image data near lattice points. 17
is a grid point label code generation circuit (horizontal), and 19 is a grid point label code generation circuit (vertical), which generates information related to positional deviation in the label code based on the output from the circuit 16 or 18. It performs processing to generate bits.

20はアドレス制御部であつて、画像メモリ1
2から必要とする画像データを取出すための制御
を行うものである。21は制御部であつて、手書
き図形からデータを読出し、各種制御を行なうも
のである。22は検証ウインドウ設定回路であつ
て、各種の検証窓を設定する回路である。23は
LBLテーブルであつて、初期格子点ラベル・コ
ードLBLを保持するテーブルである。24は
LB1テーブルであつて、第1検証ラベル・コード
LB1を保持するテーブルである。25はLB2テー
ブルであつて、第2検証ラベル・コードLB2を保
持するテーブルである。
20 is an address control section, which controls the image memory 1.
This is to perform control for extracting the necessary image data from 2. Reference numeral 21 is a control unit that reads data from handwritten figures and performs various controls. 22 is a verification window setting circuit, which is a circuit for setting various verification windows. 23 is
This is an LBL table that holds initial grid point label codes LBL. 24 is
LB1 table, first validation label code
This is a table that holds LB1. 25 is an LB2 table that holds the second verification label code LB2.

26はSX1・SY1テーブルであつて、第1検証
処理の結果得られた第1検証ズレ情報SX1および
SY1を保持するテーブルである。27はSX2・
SY2テーブルであつて、第2検証処理の結果得ら
れた第2検証ズレ情報SX2およびSY2を保持する
テーブルである。
26 is the SX1/SY1 table, which contains the first verification deviation information SX1 and SX1 obtained as a result of the first verification process.
This is the table that holds SY1. 27 is SX2・
The SY2 table is a table that holds second verification deviation information SX2 and SY2 obtained as a result of the second verification process.

28はアドレス変換回路であつて、上述の検証
ズレ情報SX1、SY1、SX2、SX2などによつて格
子点テーブル15から伝達される格子点アドレス
を正規化するに必要なビツト数だけシフトしたア
ドレスを出力するものである。29はLB3生成回
路であつて第3検証ラベル・コードLB3を生成す
るものであり、30はLB3テーブルであつてLB3
生成回路29によつて得られたコードLB3を保持
するテーブルである。
Reference numeral 28 is an address conversion circuit which converts the address shifted by the number of bits necessary to normalize the lattice point address transmitted from the lattice point table 15 using the above-mentioned verification deviation information SX1, SY1, SX2, SX2, etc. This is what is output. 29 is an LB3 generation circuit that generates the third verification label code LB3, and 30 is an LB3 table that generates LB3.
This table holds the code LB3 obtained by the generation circuit 29.

31は格子点ラベル・コード決定回路であつ
て、第2図に示す如き格子点ラベル・コード5を
生成するものであり、32はLABELテーブルで
あつて上述の格子点ラベル・コード5を保持する
テーブルである。
31 is a lattice point label code determination circuit, which generates the lattice point label code 5 as shown in FIG. 2, and 32 is a LABEL table which holds the above-mentioned lattice point label code 5. It's a table.

33は対処理回路であつて、第2図図示の格子
点ラベル・コード5において「あいまいフラグ」
が立つている小領域単位についての修正処理など
を行なうものである。34は線パターン切れ補正
回路であつて、線状のパターンについて明瞭な切
れ部分が見出されたとき、これを補正する回路で
ある。35は文字除去()回路であつて、第1
図図示の如き入力図形に描かれているANDなど
の文字の部分に対応する情報を除去して論理記号
シンボルなどの抽出を容易にするものである。3
6はズレ補正回路()、37はあいまい補正回
路()を夫々示している。なお回路33ないし
37は、最初に得られた格子点ラベル・コード5
について修正を行なつて、よりあるべき形の格子
点ラベル・コード5を得るものと考えてよい。
33 is a pair processing circuit, and in the grid point label code 5 shown in FIG.
It performs correction processing for small area units in which . Reference numeral 34 is a line pattern breakage correction circuit, which corrects when a clear breakage portion is found in a linear pattern. 35 is a character removal () circuit, and the first
Information corresponding to characters such as AND drawn in the input figure as shown in the figure is removed to facilitate the extraction of logical symbols and the like. 3
Reference numeral 6 indicates a deviation correction circuit (), and numeral 37 indicates an ambiguity correction circuit (). Note that the circuits 33 to 37 are based on the grid point label code 5 obtained first.
It can be considered that the lattice point label code 5 is obtained by modifying the lattice point label code 5 in a more desirable form.

上記符号11ないし37についての構成とその
動作については、上述の特許出願に明らかにされ
ている所であつて、具体的な説明を省略するが、
第2図図示の如き格子点ラベル・コード5を各小
領域単位について抽出するものと考えてよい。本
発明においては、上述の如く得られた格子点ラベ
ル・コード中の「4方向コード」を利用して、第
3図ないし第7図を参照して説明した如く、例え
ば論理記号シンボルの如き標準パターンに対応し
たパターンを抽出するようにする。そのために、
第8図中に示される如く、パターン辞書メモリ3
8と、類似度抽出回路39と、シンボル認識テー
ブル40とをもつようにしている。
The configurations and operations of the reference numerals 11 to 37 are disclosed in the above-mentioned patent application, and detailed explanations will be omitted.
It can be considered that grid point label codes 5 as shown in FIG. 2 are extracted for each small region. In the present invention, the "4-way code" in the lattice point label code obtained as described above is used to create a standard code, such as a logical symbol, as explained with reference to FIGS. 3 to 7. Extract a pattern that corresponds to the pattern. for that,
As shown in FIG. 8, the pattern dictionary memory 3
8, a similarity extraction circuit 39, and a symbol recognition table 40.

パターン辞書メモリ38は、第7図を参照して
説明した如く、各標準パターンを構成している1
つ1つの小領域単位内「方向コード」について、 (i) 重み「1」を与える所の、標準パターンの画
像に実質上合致する第1の画像の方向コード、 (ii) 重み「0」を与える所の、合致していないが
許容できる程度の変形である第2の画像の方向
コード、 (iii) 重み「−1」を与える所の、合致してなくか
つ許容できない変形に対応する第3の画像の方
向コード、 の形で格納している。
As explained with reference to FIG. 7, the pattern dictionary memory 38 stores one
For each "direction code" within a small area unit, (i) the direction code of the first image that substantially matches the image of the standard pattern, which is given a weight of "1"; (ii) the direction code of the first image that is given a weight of "0"; (iii) the orientation code of the second image corresponding to the non-matching but acceptable deformation, giving a weight of '-1'; The orientation code of the image is stored in the form of .

類似度抽出回路39は、格子点ラベル・コー
ド・テーブル32から読出される当該コード5中
の「方向コード」と辞書メモリ38内の「方向コ
ード」とを比較して類似度を計算する。即ち、今
パターン辞書メモリ38内に、第3図B図示の座
標(A)、(A)、(A)、(A)、(A)

(A)、()に関連して、第7図図示の如き内
容が格納されていて、第5図B図示の如き方向コ
ード群8が与えられたとすると、類似度は、 1+1+0+1+1+1+1=6 とされる。また第6図図示の如き方向コード群8
が与えられると、類似度は、 1+1+(−1)+1+1+1+1=5 とされる。勿論、第3図A図示の標準パターン6
に対応するパターンが存在したか否かについて
は、座標(A)、…、(A)、(B)、…、(
C)のすべてについて上述の照合が行なわれた上
で判定される。
The similarity extraction circuit 39 compares the "direction code" in the code 5 read from the grid point label code table 32 with the "direction code" in the dictionary memory 38 to calculate the similarity. That is, the coordinates (A), (A), (A), (A), (A) shown in FIG. 3B are currently stored in the pattern dictionary memory 38.
,
Assuming that the contents as shown in Figure 7 are stored in relation to (A) and (), and the direction code group 8 as shown in Figure 5B is given, the degree of similarity is 1+1+0+1+1+1+1=6. Ru. Also, the direction code group 8 as shown in FIG.
Given, the similarity is 1+1+(-1)+1+1+1+1=5. Of course, the standard pattern 6 shown in FIG.
As for whether there is a pattern corresponding to the coordinates (A), ..., (A), (B), ..., (
The determination is made after the above-mentioned verification is performed for all of C).

シンボル認識テーブル40は、上記抽出された
類似度にもとづいて、予め定めた標準パターンに
対応するパターンが存在した場合に、座標位置と
一緒にその標準パターンのラベルをテーブル上に
保持する。勿論、上記類似度のみによつて、上記
パターンを判定する形をとらず、他の判断情報と
合わせ考えて判定する形をとることは任意であ
る。
The symbol recognition table 40 holds the label of the standard pattern on the table together with the coordinate position when a pattern corresponding to the predetermined standard pattern exists based on the extracted similarity. Of course, it is optional to decide on the pattern not only based on the degree of similarity but also on the basis of other judgment information.

本発明によれば上述の如く、論理記号シンボル
などを抽出することができるが、パターン辞書メ
モリ38における各小領域単位の読出し態様を選
択することによつて、第1図図示の論理シンボル
2のみでなく、当該シンボルの出力が上方向に向
いたシンボル、左方向に向いたシンボル、下方向
に向いたシンボルなどのための辞書として共通に
用いることができる。即ち、例えば第3図B図示
の座標(B)を中心に座標(A)と(C)とを交換した形で、
パターン辞書メモリ38の内容を読出すようにす
れば、出力が左方向に向いているシンボルを抽出
するために利用できる。
According to the present invention, as described above, it is possible to extract logical symbols, etc., but by selecting the reading mode for each small area in the pattern dictionary memory 38, only the logical symbol 2 shown in FIG. Instead, it can be commonly used as a dictionary for symbols whose outputs are upward, leftward, downward, etc. That is, for example, by exchanging coordinates (A) and (C) around coordinate (B) shown in FIG. 3B,
By reading the contents of the pattern dictionary memory 38, it can be used to extract symbols whose output is directed toward the left.

(E) 発明の効果 以上説明した如く、本発明によれば、各小領域
単位内の図形を格子点ラベル・コードとして抽出
に当つて図形の変形を吸収し、かつパターン辞書
メモリとの照合に当つても変形を吸収しつつ排除
すべき変形を除去するように配慮している。この
ために、例えば手書き論理回路図などを正しく判
読して、データ処理装置に入力することが可能と
なる。
(E) Effects of the Invention As explained above, according to the present invention, deformation of the figure can be absorbed when extracting the figure in each small area unit as a grid point label code, and it can be compared with the pattern dictionary memory. Care is taken to absorb deformations even if they occur, while eliminating deformations that should be eliminated. For this reason, it becomes possible to correctly interpret, for example, a handwritten logic circuit diagram and input it into a data processing device.

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

第1図は本発明の前提とされた特許出願の処理
概念を説明する説明図、第2図は本発明に用いら
れる一実施例格子点ラベル・コード、第3図ない
し第6図は本発明の問題点を説明する説明図、第
7図A,Bは本発明に用いる一実施例パターン辞
書メモリを説明する説明図、第8図は本発明の一
実施例構成を示す。 図中、2は論理記号シンボル、3は格子点、4
は小領域単位、5は格子点ラベル・コード、6は
標準パターン、8は方向コード群、11は画像入
力装置、12は画像メモリ、32は格子点ラベ
ル・コード・テーブル、38はパターン辞書メモ
リ、39は類似度抽出回路、40はシンボル認識
テーブルを表わす。
FIG. 1 is an explanatory diagram explaining the concept of processing a patent application, which is the premise of the present invention, FIG. 2 is an example of a grid point label code used in the present invention, and FIGS. 3 to 6 are diagrams of the present invention. FIGS. 7A and 7B are explanatory diagrams illustrating a pattern dictionary memory according to an embodiment of the present invention, and FIG. 8 shows the configuration of an embodiment of the present invention. In the figure, 2 is a logical symbol, 3 is a lattice point, and 4 is a
is a small area unit, 5 is a grid point label code, 6 is a standard pattern, 8 is a direction code group, 11 is an image input device, 12 is an image memory, 32 is a grid point label code table, 38 is a pattern dictionary memory , 39 represents a similarity extraction circuit, and 40 represents a symbol recognition table.

Claims (1)

【特許請求の範囲】 1 画像入力手段と、 該画像入力手段から入力され、画像存在域を2
次元上の小領域単位に分割し、当該小領域単位内
の画像を方向コードを含む格子点ラベル・コード
として表現した画像データを保持する画像データ
保持手段と を有してなる図形処理システムにおいて、 上記画像中の予め定めたパターンに対応する複
数個の各標準パターンについて、当該標準パター
ンを構成する各小領域単位内の画像を、少なくと
も、標準パターンの画像に実質上合致する第1の
画像と、合致しないが許容できる第2の画像と、
合致せず許容できない第3の画像とを方向コード
によつて表現したパターン辞書メモリと、 上記格子点ラベル・コード中の方向コードと当
該パターン辞書メモリに格納されている方向コー
ドとを小領域単位で比較して類似度を計算する類
似度抽出回路とを設け、 該類似度計算された結果に基いて、抽出する図
形パターンが上記標準パターンと実質上合致する
か、合致しないが許容できるか、合致せず許容で
きないのいずれかを決定する ことを特徴とする図形パターン抽出処理方式。
[Claims] 1. An image input means; and 2.
A graphic processing system comprising: an image data holding means that divides into dimensional small area units and holds image data representing an image within the small area unit as a grid point label code including a direction code, For each of the plurality of standard patterns corresponding to a predetermined pattern in the above-mentioned image, the image within each small area unit constituting the standard pattern is at least a first image that substantially matches the image of the standard pattern. , a non-matching but acceptable second image, and
A pattern dictionary memory that expresses the third image that does not match and is not acceptable using a direction code, and the direction code in the grid point label code and the direction code stored in the pattern dictionary memory in small area units. and a similarity extraction circuit that calculates the degree of similarity by comparing with the standard pattern, and based on the result of the calculation of the degree of similarity, determines whether the graphic pattern to be extracted substantially matches the standard pattern, or whether it does not match but is acceptable. A graphic pattern extraction processing method characterized by determining whether the pattern does not match or is not acceptable.
JP56212791A 1981-12-30 1981-12-30 Pickup processing system of diagram pattern Granted JPS58117080A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP56212791A JPS58117080A (en) 1981-12-30 1981-12-30 Pickup processing system of diagram pattern

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP56212791A JPS58117080A (en) 1981-12-30 1981-12-30 Pickup processing system of diagram pattern

Publications (2)

Publication Number Publication Date
JPS58117080A JPS58117080A (en) 1983-07-12
JPS648871B2 true JPS648871B2 (en) 1989-02-15

Family

ID=16628438

Family Applications (1)

Application Number Title Priority Date Filing Date
JP56212791A Granted JPS58117080A (en) 1981-12-30 1981-12-30 Pickup processing system of diagram pattern

Country Status (1)

Country Link
JP (1) JPS58117080A (en)

Also Published As

Publication number Publication date
JPS58117080A (en) 1983-07-12

Similar Documents

Publication Publication Date Title
JP2812982B2 (en) Table recognition method
JPH0772861B2 (en) Program creation device
WO1990001198A1 (en) Character recognition apparatus
JPS648871B2 (en)
JPS6132187A (en) Character recognition system
JP2846486B2 (en) Image input device
JPH0150954B2 (en)
JP2006227824A (en) Drawing recognition method and apparatus
JPS592191A (en) Recognizing and processing system of handwritten japanese sentence
JPH01129358A (en) table numerical calculation device
JPS6321949B2 (en)
JPS648872B2 (en)
JP2962525B2 (en) Text block recognition method
JP2972443B2 (en) Character recognition device
JPH081643B2 (en) Figure pattern drawing method
JP2020064438A (en) Learning data generation device and learning data generation method
JPH0586585B2 (en)
JP3245241B2 (en) Character recognition apparatus and method
JPS59117674A (en) Pattern matching processing system of graphic pattern extracting processing
JP3199033B2 (en) Optical character reading method and optical character reading device
JPH01292586A (en) Back-up device for recognition of character
JPS5952385A (en) Recognizing system of terminal position of gate cell symbol
JPH06131466A (en) Method and device for recognizing pattern
JPH01283682A (en) Character reader
JPH07182455A (en) Character recognition apparatus and method