JPS62114079A - Closed loop graphic extracting device - Google Patents

Closed loop graphic extracting device

Info

Publication number
JPS62114079A
JPS62114079A JP25368485A JP25368485A JPS62114079A JP S62114079 A JPS62114079 A JP S62114079A JP 25368485 A JP25368485 A JP 25368485A JP 25368485 A JP25368485 A JP 25368485A JP S62114079 A JPS62114079 A JP S62114079A
Authority
JP
Japan
Prior art keywords
feature
closed
dictionary
loop
extraction
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP25368485A
Other languages
Japanese (ja)
Inventor
Kenichiro Uchimura
内村 憲一朗
Masahisa Yano
矢野 雅久
Yoshiyuki Yamashita
山下 義征
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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry Co 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 Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP25368485A priority Critical patent/JPS62114079A/en
Publication of JPS62114079A publication Critical patent/JPS62114079A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Analysis (AREA)

Abstract

PURPOSE:To extract a closed loop graphic from in a graphic having a deformation and a noise, by extracting successively a point for satisfying condition which has been prescribed in a closed loop graphic extracting dictionary, from in fundamental feature points which have been extracted and registered from an input drawing. CONSTITUTION:With regard to all picture elements of a binary image data from an image input device 1, a fundamental feature extracting device 2 encodes a pattern shape of its minute peripheral area, and outputs a point for satisfying a condition which has been designated in a fundamental feature extracting dictionary, as a fundamental feature point candidate, to a fundamental feature table 3. On the other hand, in a closed loop graphic extracting dictionary 5, a P feature code for using one of two adjacent apexes of a closed loop graphic of a recognition object, and detecting the other, an N feature code which must not exist in a detection range, and a parameter for prescribing a detecting direction and a detecting range are stored successively, and a closed for satisfying a condition which has been prescribed in the dictionary 5, from in a fundamental feature table 3.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、図形認識装置における閉ループ図形抽出装置
に関Jるものである。
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to a closed-loop figure extraction device in a figure recognition device.

(従来の技術) 従来、この神の装置は処理すべき図形を細線化し、該細
線化された図形の線分を追跡して、また、細線化を行な
わない揚台でも図形の輪郭線を追跡して、隣接点の連結
性あるいは方向の変化を調べ、図形の抽出に必要な特徴
点の抽出を行ない、前記特徴点の接続関係を検出するこ
とにより、閉ループ図形を抽出していた。
(Prior art) Conventionally, this divine device thins the figure to be processed, traces the line segments of the thinned figure, and also traces the outline of the figure even on a platform that does not thin the figure. Then, a closed-loop figure is extracted by examining the connectivity or change in direction of adjacent points, extracting the feature points necessary for extracting the figure, and detecting the connection relationship between the feature points.

(発明が解+Js シJ、うとJる問題点)しかし’r
Kがら、細線化を行なう場合には、ヒゲ等のノイズの発
生の問題があり、また、細線化を行なわない場合ぐも、
図形の輪郭線を追跡する方法では、線の切れ、はみ出し
、凹凸等の各種の変形やノイズににす、必ずしも安定し
た閉ループ図形の抽出ができないという問題点があった
(Invention is the solution + Js shi J, uto Jru problem) But 'r
However, when thinning the line, there is a problem of generation of noise such as whiskers, and when line thinning is not carried out,
The method of tracing the outline of a figure has the problem that it is not always possible to extract a stable closed-loop figure, despite various deformations such as broken lines, protrusion, unevenness, etc., and noise.

本発明は前記問題点を解決し、各種のゆ形やノイズを有
する図形中コーリ、精度良くかつ高速に所望の閉ループ
図形を抽出し得る装置を提供Jることを目的とする。
SUMMARY OF THE INVENTION It is an object of the present invention to solve the above-mentioned problems and provide an apparatus capable of extracting a desired closed-loop figure with high accuracy and high speed from among figures having various shapes and noises.

(問題点を解決するための手段) 本発明では前記問題点を解決するため、Ifli画像を
入力して2値画像を得る画像入力手段と、該入力画像を
走査して、少なくども屈折点2分岐点。
(Means for Solving the Problems) In order to solve the above problems, the present invention includes an image input means for inputting an Ifli image to obtain a binary image, and scanning the input image to obtain at least two refraction points. branch point.

交差点、端点を図形パターンの基本特徴として予め抽出
する基本特徴抽出手段と、基本特徴毎に割り当てられた
特徴コード名および位置情報を登録する基本特徴テーブ
ルど、複数個の屈折点を頂点とする認識対象の閉ループ
図形の形状毎に、任意の隣接する頂点の一方を始点とし
て他方の頂点の特徴コード名、検出方向、検出範囲を規
定した閉ループ図形抽出辞書と、入力図面から抽出、登
録した基本特徴点の中から、前記辞書に規定された条例
を満?Jる点を順次抽出JることにJ:り所望の図形を
抽出する閉ループ図形抽出手段とを備えlこ 。
A basic feature extraction means that extracts intersections and end points as basic features of a graphic pattern in advance, and a basic feature table that registers feature code names and position information assigned to each basic feature, and recognition that uses multiple bending points as vertices. For each shape of the target closed-loop figure, a closed-loop figure extraction dictionary that specifies the feature code name, detection direction, and detection range of arbitrary adjacent vertices starting from one of the other vertices, and the basic features extracted and registered from the input drawing. Which of the points satisfies the regulations stipulated in the dictionary? A closed-loop figure extraction means is provided for sequentially extracting the desired figure.

(作用) 本発明によれば、2値化された図形より屈折点。(effect) According to the present invention, the inflection point is determined from the binarized figure.

分岐点、交差点、端点等の基本特徴を取出し、ざらにイ
のうりの−の屈折点等より他の屈折点等の特徴を課まで
の方向、範囲、又はその特徴コード名等を、これらにつ
いて予め特定の閉ループ図形に対して規定した辞書と比
較し、該辞書に規定された全ての条着を満足した場合の
み、所定の閉ループ図形として抽出器る。
Extract the basic features such as branch points, intersections, and end points, and calculate the direction, range, or feature code name, etc. of other bending points from the bending point, etc. It is compared with a dictionary defined in advance for a specific closed-loop figure, and only when all the conditions defined in the dictionary are satisfied is extracted as a predetermined closed-loop figure.

(実施例) 第1図は本発明の一実施例を示すブロック図であり、図
中、1は原画像を入力して2値画像を得るための画像入
力装置、2は基本特徴抽出@置、3は基本特徴テーブル
、4は本発明の中心部分である閉ループ図形抽出装置、
5は閉ループ図形抽出辞書、6は抽出された結果を出力
するだめの抽出結果メモリである。
(Embodiment) FIG. 1 is a block diagram showing an embodiment of the present invention. In the figure, 1 is an image input device for inputting an original image to obtain a binary image, and 2 is a basic feature extraction @ , 3 is a basic feature table, 4 is a closed-loop figure extraction device which is the central part of the present invention,
5 is a closed-loop figure extraction dictionary, and 6 is an extraction result memory for outputting the extracted results.

また、基本特徴抽出装置2は、第2図に示すように画素
特徴抽出装置7と、画素特徴コードメモリ8と、基本特
徴抽出器9ど、基本特徴抽出辞書10と、代表点決定器
11とからなる。
The basic feature extraction device 2 also includes a pixel feature extraction device 7, a pixel feature code memory 8, a basic feature extractor 9, a basic feature extraction dictionary 10, and a representative point determiner 11, as shown in FIG. Consisting of

前記画素特徴抽出装置7は、入力画像の全画素について
、その微小な周辺領域のパターン形状をコード化し、画
素特徴コードメモリ8へ出力する装置である。また、基
本特徴抽出器9は、前記画素特徴コードメモリ8上をラ
スク走査し、基本特徴抽出辞書10に指定された条件を
満足する点を、基本特徴点候補として、基本特徴テーブ
ル3に出力する装置である。また、代表点決定器11は
、前記基本特徴点候補の中から代表点を決定する装置で
ある。
The pixel feature extraction device 7 is a device that codes the pattern shape of a minute peripheral area for all pixels of the input image and outputs the code to the pixel feature code memory 8. Further, the basic feature extractor 9 performs a rask scan on the pixel feature code memory 8 and outputs points that satisfy the conditions specified in the basic feature extraction dictionary 10 to the basic feature table 3 as basic feature point candidates. It is a device. Further, the representative point determiner 11 is a device that determines a representative point from among the basic feature point candidates.

前記画素特徴がミクロな領域の特徴であるのに対し、基
本特徴は着目点周辺の画素特徴の出現状態を総合的に判
定して抽出する、よりマク[]な領域の特徴である。こ
のような特徴抽出法を行なう哩由は、後述する第5図(
a)の例にも見られるように、枠状の閉ループ図形の左
上屈折点における−  4  一 画素特徴と同一の特徴が下辺の白丸図形の一部にも存在
し、画素特徴のみでは図形の構造的な特徴を衣用できな
いことが第1にあげられ、また、他の重要な理由番よ、
本方式のように二重構造の抽出を行なうことにより部分
的なパターンの切れや変形に対しても安定した特徴抽出
が可能となるためである。
While the pixel features are micro area features, the basic features are more micro area features that are extracted by comprehensively determining the appearance state of pixel features around the point of interest. The procedure for performing such a feature extraction method is shown in Figure 5 (described later).
As can be seen in example a), the same feature as the −4 one pixel feature at the upper left inflection point of the frame-like closed loop figure also exists in a part of the white circle figure on the lower side, and the structure of the figure cannot be determined by pixel features alone. The first reason is the inability to use personal characteristics, and other important reasons include:
This is because by extracting a double structure as in this method, stable feature extraction is possible even when partial patterns are cut or deformed.

以下、基本特徴抽出装置2の細部について説明する。The details of the basic feature extraction device 2 will be explained below.

画素特徴抽出装置7は、前記画像入力装置1からの2値
画像データを一時的に格納する2値画像バッファメモリ
12と、画素特徴抽出器13と、閾値設定器14とより
成る。
The pixel feature extraction device 7 includes a binary image buffer memory 12 that temporarily stores binary image data from the image input device 1, a pixel feature extractor 13, and a threshold value setter 14.

第3図は画素特徴抽出器13についての説明図である。FIG. 3 is an explanatory diagram of the pixel feature extractor 13.

同図(a)は画素特徴抽出器13を概念的に表わしたマ
スク14を示すものであり、認識すべき゛個々の画素(
以下、着目画素と称す。)15を含む着目領1jA(S
)16と、該着目領域16周囲にあり目つ画素特徴抽出
に関与しない不感帯領域17と、不感帯領域17の周辺
に設定した複数の感知領1Illi18a、18b、1
8c、IF’l(1゜18e、18f、18o、18h
とからな−) ’−(イる。ここで、着目領域16およ
び感知領II!1i188〜18F)は、それぞれ3画
素×3画素の9画素から構成し、また、不感帯領1[l
i!17は3画素の幅で構成し、マスク14全体として
は15画素×15画素の225画素から構成Jるように
なした。
FIG. 5(a) shows a mask 14 conceptually representing the pixel feature extractor 13, and shows "individual pixels" to be recognized (
Hereinafter, this will be referred to as a pixel of interest. ) 15, area of interest 1jA (S
) 16, a dead zone region 17 that is located around the region of interest 16 and is not involved in pixel feature extraction, and a plurality of sensing regions 1Illi18a, 18b, 1 set around the dead zone region 17.
8c, IF'l (1°18e, 18f, 18o, 18h
The region of interest 16 and the sensing region II!1i188 to 18F are each composed of 9 pixels (3 pixels x 3 pixels), and the dead zone region 1[l
i! The mask 17 has a width of 3 pixels, and the mask 14 as a whole consists of 225 pixels (15 pixels×15 pixels).

該画素特徴抽出器13は、前記2値画像バッファメモリ
12を走査し、着目領域16および感知領域188〜1
8hの各領域に含まれる黒画素数を、前配閾111’i
設定器10に設定されlc飴と比較し、(黒画素数)≧
(閾値)の場合は1゛1」、(黒画素数)<(閾値)の
場合はrOJと判定して、各領域の判定結果を、第3図
(b)に示t 、J:うに領域18a、18b、1fl
c、18d、16,18e。
The pixel feature extractor 13 scans the binary image buffer memory 12 and extracts the region of interest 16 and the sensing regions 188 to 1.
The number of black pixels included in each area of 8h is calculated using the front threshold 111'i
Compared with the LC candy set in the setting device 10, (number of black pixels) ≧
If (threshold value), it is determined to be 1゛1'', and if (number of black pixels) < (threshold value), it is determined to be rOJ. The determination results for each area are shown in Figure 3 (b). 18a, 18b, 1fl
c, 18d, 16, 18e.

18f、180.18hの順に並べた9ピツ1〜の内索
特徴コード19として画素時ff1l]−トメモリ8に
出力する。
18f, 180.18h are outputted to the pixel time ff1l]-to memory 8 as inner search feature codes 19 of 9 pixels 1 to 18h.

前記画素特徴抽出器13、即ちマスク14において、不
感帯領域17を設定した理由は、図形中の線幅の変動を
吸収するためと、少ないビット数で特徴表現を行なうた
めである。ここで、画像入力装置1の分解能を8本/ 
tnm %即ち1画素当たりの面積を0.125馴X 
0.125mmとし、前記閾値を「3」ど寸れば、0.
125〜1.125mmの線幅を有する線分を一本の線
分と認識することができる。
The reason why the dead zone area 17 is set in the pixel feature extractor 13, ie, the mask 14, is to absorb variations in line width in a figure and to express features with a small number of bits. Here, the resolution of the image input device 1 is set to 8 lines/
tnm %, that is, the area per pixel is 0.125 x
If the threshold value is set to 0.125 mm and the threshold value is set to 3, it becomes 0.125 mm.
A line segment having a line width of 125 to 1.125 mm can be recognized as one line segment.

第4図は前記画素特徴抽出装置7による画素特徴抽出の
一例を示すもので、2画素分の線幅を有するノ1カギ括
弧形状の2値画像20上をマスク14が左方向に走査し
ていくようすと、この際に1qられる内索特徴コードを
示す。第4図(a)は2値画像20が6目領域16.感
知領域18d。
FIG. 4 shows an example of pixel feature extraction by the pixel feature extraction device 7, in which the mask 14 scans leftward over a binary image 20 in the shape of a square bracket having a line width of two pixels. As it progresses, the inner search feature code that is 1q at this time is shown. In FIG. 4(a), the binary image 20 is in the 6th eye area 16. Sensing area 18d.

180.18丁を交差する場合を示し、この時は[00
0111100]の画素特徴コード21が得られる。ま
た、第4図(b)は走査位置を第4図(a)に対し′C
7画素分移動した場合を示し、2値画像20が着目領1
416.感知領域18e、18qを交差し、この時はr
ooool 1010Jの画素特徴コード22が得られ
る。
180.18 block is shown, and in this case, [00
0111100] is obtained. In addition, Fig. 4(b) shows the scanning position as 'C' compared to Fig. 4(a).
The case where the movement is 7 pixels is shown, and the binary image 20 is the area of interest 1.
416. intersects the sensing regions 18e and 18q, and at this time r
A pixel feature code 22 of oooool 1010J is obtained.

第5図は、基本特徴抽出器9における基本特徴=  7
 − 抽出の原理を示寸ものである。
FIG. 5 shows that the basic feature in the basic feature extractor 9 is 7.
- Demonstrates the principle of extraction.

第5図(a)に示すように、枠状の図形23の左上の角
部を走査した場合でも、円状の図形24の左上の線上を
走査した場合でも、画素特徴抽出装置7からは同様に屈
折点を示す画素特徴コードが得られる。従って、図形の
微小な部分におりる特徴のみを表現し得る画素特徴コー
ドのみで、図形の特徴を判定しようとすると、不都合が
生ずることになる。
As shown in FIG. 5(a), whether the upper left corner of the frame-shaped figure 23 is scanned or the upper left line of the circular figure 24 is scanned, the pixel feature extraction device 7 receives the same information. A pixel feature code indicating the refraction point is obtained. Therefore, if it is attempted to determine the features of a figure using only pixel feature codes that can express only the features in minute parts of the figure, problems will arise.

そこで、基本特徴抽出器9では、大きさ、形状等が異な
る識別対象図形が混在する入力図形に対し、識別に必要
な特徴を抽出層るため、抽出対象となった画素特徴コー
ド(以下、着目画素特徴コードと称す。)の抽出位置を
起点として、その周辺領域内に1ケ所以上の他の画素特
徴]−ドの抽出位置を設定し、これらより特徴を抽出す
るようになしている。
Therefore, in the basic feature extractor 9, the pixel feature code (hereinafter referred to as the focused Starting from the extraction position of the pixel feature code (referred to as pixel feature code), one or more other extraction positions of the pixel feature (referred to as pixel feature code) are set in the surrounding area, and features are extracted from these.

第5図(a)において、同一の着目画素特徴コード(2
値表示でrl 11100100J 、又はroooo
l 1010Jの]−ド)の抽出点23a、 24aか
ら同一の位置関係にある領域25a〜25dおよび26
a〜26dより求められる画素特徴コードを比較すると
、領域25aと26a125Cと26C1および25d
と26dはそれぞれ賃なる特徴を有する図形と判定でき
る。即ち、着目画素特徴コードを起点とする右側の領域
には水平線分を示す画素特徴コード、上側および左側の
領域には空白を示す画素特徴]−ド、下側の領域には縦
線分を示す画素特徴コードが存在する時のみ、左カギ括
弧形の基本特徴を有づる特徴図形であると定義すると、
第5図(a)の場合、抽出点23aのみが目的の特徴図
形27を有する点として抽出Jることができる。
In FIG. 5(a), the same target pixel feature code (2
In the value display rl 11100100J or roooo
Areas 25a to 25d and 26 in the same positional relationship from the extraction points 23a and 24a of 1010J]-do)
Comparing the pixel feature codes obtained from a to 26d, areas 25a, 26a, 125C, 26C1, and 25d
and 26d can be determined to be figures having special characteristics. That is, the area to the right of the pixel feature code of interest as a starting point is a pixel feature code indicating a horizontal line segment, the areas above and to the left are pixel features indicating blank spaces, and the area below is indicating a vertical line segment. Defining it as a feature figure that has the basic feature of left square bracket only when the pixel feature code exists,
In the case of FIG. 5(a), only the extraction point 23a can be extracted as a point having the target feature figure 27.

また、第5図(b)のように線分の切れによって抽出点
28から目的とする着目画素特徴コード、ここでは左カ
ギ括弧形のコードが得られない場合でも、着目画素特徴
コードと各領1ifR29a、29b、29C,29d
より得られる画素特徴]−ドより、同一の基本特徴を有
する図形27を抽出することが可能となる。
In addition, even if the target pixel feature code, here the code in the form of a left square bracket, cannot be obtained from the extraction point 28 due to a break in the line segment as shown in FIG. 5(b), the pixel feature code of interest and each region 1ifR29a, 29b, 29C, 29d
pixel features obtained from] - It becomes possible to extract figures 27 having the same basic features.

基本特徴抽出器9は、このような原理に基づいて画素特
徴コードメモリ8上をラスク走査し、基本特徴抽出辞書
10に指定された条件の判定を行ない、該条件を満足す
る点が存在覆れば、ぞの基本特徴コードに対応した基本
特徴テーブル3内の所定の場所に、抽出点の座標を特徴
点候補として出力づる。
The basic feature extractor 9 scans the pixel feature code memory 8 based on this principle, determines the conditions specified in the basic feature extraction dictionary 10, and determines whether there are points that satisfy the conditions. For example, the coordinates of the extraction point are output as feature point candidates to a predetermined location in the basic feature table 3 corresponding to the respective basic feature code.

第6図は、前記基本特徴抽出器9が参照する基本特徴抽
出辞書(以下、単に辞書と称1o)10の構成を示した
もので、辞書1頁が1つの基本特徴抽出辞書となってい
る。以下、辞書の第1頁を例として、その内容と該辞■
10による抽出動作について説明する。
FIG. 6 shows the configuration of a basic feature extraction dictionary (hereinafter simply referred to as dictionary 1o) 10 referred to by the basic feature extractor 9, in which one page of the dictionary is one basic feature extraction dictionary. . Below, using the first page of the dictionary as an example, its contents and the dictionary ■
The extraction operation according to No. 10 will be explained.

辞書10の先頭には基本特徴コード名C1が格納され、
次にキー(KFY)特徴のマスクと]−ドが格納される
。キー特徴とは基本特徴抽出の起点となる画素特徴であ
り、コード(COI)F)1がそのコード名である。マ
スクとは画素特徴]−ドの各ビットの有効/無効を指定
するもので、該マスクと]−ドにより、画素特徴]−ト
メモリ8内の現在の走査点がキー特徴点であるか否かの
判定を行なうbのである。即ち、現在の走査点の画素特
徴]−ドPFに対して、 (P F△HASKI )■(C0DE i△HASK
1 ) = 0・・・・・・(1) を満足する場合は以後の辞書に示される検出領域1〜N
1に出現する画素特徴のチェックを行ない、(1)式を
満足しない場合は次頁の処理へ進む。
The basic feature code name C1 is stored at the beginning of the dictionary 10,
Next, the key (KFY) feature mask and ]-code are stored. The key feature is a pixel feature that is the starting point for basic feature extraction, and code (COI) F) 1 is its code name. The mask specifies the validity/invalidity of each bit of the pixel feature]-do, and by using the mask and the pixel feature]-do, it is determined whether the current scanning point in the pixel feature]-to memory 8 is a key feature point. This is b, which makes the determination. That is, for the pixel feature of the current scanning point]-doPF, (PF△HASKI)■(C0DE i△HASK
1) = 0...If (1) is satisfied, the detection areas 1 to N shown in the subsequent dictionary
The pixel characteristics appearing in 1 are checked, and if the expression (1) is not satisfied, the process proceeds to the next page.

検出領域数N1はキー特徴周辺に出坦する画素特徴の判
定領域数であって、1〜N1までの台頭ll1itにつ
いてキー特徴と検出領域との間の距離d x 1i、 
d yli、検出領域の大きさΔx1i。
The number of detection regions N1 is the number of determination regions of pixel features that appear around the key feature, and for the rises from 1 to N1, the distance between the key feature and the detection region d x 1i,
d yli, detection area size Δx1i.

Δyli、ポジティブ(PO8ITVE )特徴のマス
クとコード、ネガティブ(NEG^TTVE)特徴のマ
スクとコードが順に格納される。
Δyli, the mask and code of the positive (PO8ITVE) feature, and the mask and code of the negative (NEG^TTVE) feature are stored in order.

第7図はキー特徴と周辺の検出領域の位置関係を示1も
ので、図中、30はキー(KEY)特徴、31a、31
b、31c、31dは検出領域である。なお、図中、添
字jは辞書の頁に対応したものである。ここで、ポジテ
ィブ特徴とは、前記検出頭域内に存在しなければならな
い画素特徴のことであり、ネガディプ特徴とは、同領域
内に存在してはならない画素特徴のことである。マスク
と]−ドの意味はキー特徴におけるマスクど」−ドの意
味と同じである。即ち、現在の走査点周辺の検出領域i
内の1点(x、y)における画素特徴をP F ixy
どして、 (P F ixv A Pmaskil)■(Pcod
eN△P maskil) −〇  −・・−(2)(
p F ixy A N maskN)■(N cod
ei1△Nmaskil)−1・・−・(3)が全ての
検出領tiAi (i=1〜Nl)内の全ての点(x、
y)で満足される時にのみ、該走査に謹をコードC1の
基本特徴点候補であると判定し、(2)、(3)式のい
ずれか一方が満足されh番ノれば、次頁の辞書の処理へ
進む。
FIG. 7 shows the positional relationship between the key feature and the surrounding detection area. In the figure, 30 is the key feature, 31a, 31
b, 31c, and 31d are detection areas. Note that in the figure, the subscript j corresponds to the page of the dictionary. Here, the positive feature refers to a pixel feature that must exist within the detected head area, and the negative feature refers to a pixel feature that must not exist within the same area. The meaning of mask and ]-do is the same as the meaning of mask and ]-do in the key feature. That is, the detection area i around the current scanning point
The pixel feature at one point (x, y) in P F ixy
How, (P Fixv A Pmaskil)■(Pcod
eN△P maskil) −〇 −・・−(2)(
p Fixy A N maskN)■(N cod
ei1△Nmaskil)-1...(3) is all the points (x,
Only when y) is satisfied, it is determined that the scan is a basic feature point candidate for code C1, and if either formula (2) or (3) is satisfied and the number h is reached, the next page is Proceed to dictionary processing.

このように、基本特徴抽出器9は画素特徴]−トメモリ
8内をラスク走査しながら、辞書10の1頁目から前述
した判定を順次行ない、該頁の全ての条件を満足する点
があれば、該辞書頁の基本特徴コード名に対応した基本
特徴テーブル3内の所定の場所に位置座標を出力し、基
本特徴点候補とする。
In this way, the basic feature extractor 9 sequentially performs the above-mentioned judgments from the first page of the dictionary 10 while scanning the pixel feature memory 8, and if there is a point that satisfies all the conditions of the page, , the position coordinates are output to a predetermined location in the basic feature table 3 corresponding to the basic feature code name of the dictionary page, and are used as basic feature point candidates.

ところで、第8図に示す左カギ括弧形の図形320角部
33に見られるように、基本特徴候補点は、図形線幅に
相当する範囲に隣接して出現する性質を持つ。
By the way, as seen in the corner 33 of the left-angled bracket-shaped figure 320 shown in FIG. 8, the basic feature candidate points have a property of appearing adjacent to a range corresponding to the figure line width.

代表点決定器11は、]−ド別に座標点の格納された前
記基本特徴テーブル3内を検索し、第8図に示1ような
隣接関係にある座標点の矩形枠の中心点を」1算して代
表点とし、それまでの座標点集合を、代表点で置き換え
る処理を行ない、第9図に示す形式で再度、基本特徴テ
ーブル3に出力する。第9図(a)はテーブル内の基本
特徴の形状と]−ド名について説明した図であり、同図
(b)は、その詳細内容を]−ド1の基本特徴を例とし
て示したもので、(xl 、yl)、(x2 、y2 
)・・・・・・(xn 、 yn )が該コード名の基
本特徴点の代表点(以下、基本特徴点という。)である
The representative point determiner 11 searches the basic feature table 3 in which the coordinate points are stored for each point, and determines the center point of the rectangular frame of the coordinate points in an adjacent relationship as shown in FIG. The coordinate point set thus far is replaced with the representative point, and the result is again output to the basic feature table 3 in the format shown in FIG. FIG. 9(a) is a diagram explaining the shape of the basic feature in the table and the name of ]-do, and FIG. 9(b) shows the detailed content of the basic feature of ]-do 1 as an example. So, (xl, yl), (x2, y2
)...(xn, yn) is a representative point of the basic feature points of the code name (hereinafter referred to as basic feature points).

第10図(a)、 (b)、 (c) ハ、本実施例ニ
オイテ対象としだ論理回路図を示す−閉ループ図形34
゜35.36を示すものであり、同図形の抽出に必要な
基本特徴の形状を太線で示している。
Figure 10 (a), (b), (c) C. Showing a logic circuit diagram for this embodiment - closed loop figure 34
35.36, and the shape of the basic feature necessary for extracting the same figure is shown by a thick line.

第11図は前記対象図形の抽出のための本実施例におけ
る抽出辞書5の内容を証1明した図である。
FIG. 11 is a diagram illustrating the contents of the extraction dictionary 5 in this embodiment for extracting the target figure.

抽出辞書はその先頭に、4 IQ点の抽出を順次行なう
ための抽出開始点の特徴コード名Csが格納され、以後
に隣接する10点を順次抽出するために必要な情報が、
1抽出処理を1頁として格納された構成となっている。
At the beginning of the extraction dictionary, the feature code name Cs of the extraction start point for sequentially extracting 4 IQ points is stored, and the information necessary for sequentially extracting 10 adjacent points is stored at the beginning of the dictionary.
The configuration is such that one extraction process is stored as one page.

同図(a)は頁毎の処理内容を示すものであり、1頁の
辞書の例では、特徴コード50点([)を始点として、
Y軸止方向に特徴コード6の点(L)を検出Jることを
示し、以下、前頁の検出点を始自として、次の頂点の検
出外押を行なう内容となっている。
Figure (a) shows the processing content for each page. In the example of a one-page dictionary, the starting point is 50 feature codes ([),
This indicates that the point (L) of feature code 6 is to be detected in the Y-axis stop direction, and from now on, starting from the detection point on the previous page, the next vertex will be detected and pushed out.

具体的には、同図(b)に示すように検出目標コード(
以下、P特徴コードと称す。)検出範囲内に存在しては
ならない特徴]−ド(以F、N特徴コードと称す。)、
検出方向、範囲を規定するパラメータΔX、ΔYの順に
格納されている。N特徴コードとは、例えば第10図(
a)の図形34の場合、1−辺の頂点3=1a〜34b
間では、基本特徴点チー1ル3の特徴コード1,3,6
.8等のことぐあり、閉ループ図形34の形状と矛盾す
る特徴を示している。
Specifically, the detection target code (
Hereinafter, it will be referred to as the P feature code. )Features that must not exist within the detection range]-do (hereinafter referred to as F and N feature codes),
Parameters ΔX and ΔY defining the detection direction and range are stored in this order. The N feature code is, for example, as shown in Figure 10 (
In the case of figure 34 in a), 1 - vertex 3 of side = 1a to 34b
In between, feature codes 1, 3, and 6 of basic feature point team 1 and 3
.. 8, etc., which shows a feature inconsistent with the shape of the closed loop figure 34.

パラメータΔX、ΔYは、検出方向がX軸方向の場合、
Δ×−±XM(正負の符号は各々X軸の正負の方向に対
応する。)、ΔY=O1検出方向がY軸方向の場合、Δ
X−0.ΔY−±YM(正負の符号は各々Y軸の正負の
方向に対応する。)であり、XM、YMの値は、対象図
形の抽出に必要な最大寸法を考慮した始点からの相対距
離を示している。
When the detection direction is the X-axis direction, the parameters ΔX and ΔY are
Δ×−±XM (The positive and negative signs correspond to the positive and negative directions of the X-axis, respectively.), ΔY=O1 If the detection direction is the Y-axis direction, Δ
X-0. ΔY−±YM (the positive and negative signs correspond to the positive and negative directions of the Y axis, respectively), and the values of XM and YM indicate the relative distance from the starting point considering the maximum dimension required to extract the target figure. ing.

第12図は、閉ループ図形、例えば枠状の図形37の1
(1点の検出範囲378〜37dについて示したもので
あり、図中、DX、I)Vは後述するパラメータである
FIG. 12 shows a closed loop figure, for example, one of the frame-shaped figures 37.
(The detection range of one point 378 to 37d is shown, and in the figure, DX, I)V is a parameter described later.

このように閉ループ図形抽出辞書5は、認識対象の閉ル
ープ図形の隣接する2頂点の一方を起点として、他方を
検出するためのP特徴コード、N特徴コード、検出方向
、検出範囲が順次格納されたものであり、本発明の閉ル
ープ図形抽出装置4はこの抽出辞書5を用いて、第9図
に示した基本特徴テーブル3の中から辞書5に規定され
た条件を満足する魚を順次抽出することにより、対象図
形の抽出を行なう。
In this way, the closed-loop figure extraction dictionary 5 sequentially stores, starting from one of two adjacent vertices of the closed-loop figure to be recognized, the P feature code, N feature code, detection direction, and detection range for detecting the other. The closed-loop figure extraction device 4 of the present invention uses this extraction dictionary 5 to sequentially extract fish that satisfy the conditions specified in the dictionary 5 from the basic feature table 3 shown in FIG. Then, the target figure is extracted.

以下、第13図の流れ図に沿って閉ループ図形の抽出処
理を説明する。
Hereinafter, the closed-loop figure extraction process will be explained along the flowchart of FIG.

まず、ステップSP1で辞書先頭に格納される抽出対象
図形の抽出開始点コード名Csを持つ基本特徴点の数を
、基本特徴テーブル3から求め定数Nに格納する。次に
、ステップSP2でこの個数をカウントするカウンタn
の初期値を1とする。ステップSP3では前記カウンタ
nに対応して、特徴コード名がC8であるn番目の特徴
点座標(xn 。
First, in step SP1, the number of basic feature points having the extraction start point code name Cs of the figure to be extracted stored at the beginning of the dictionary is determined from the basic feature table 3 and stored in a constant N. Next, in step SP2, a counter n is used to count this number.
The initial value of is set to 1. In step SP3, the coordinates of the n-th feature point (xn) whose feature code name is C8 are determined corresponding to the counter n.

yn)を始点座標(xo 、 yO)に格納する。ステ
ップSP4では抽出辞書5の頁カウンタを示す変数Sの
初期値を1とし、ステップSP5〜ステップ5P11で
1頁から4頁の辞書に規定された条f1を満足する点の
抽出処理を基本特徴テーブル3の検索により行なう。
yn) at the starting point coordinates (xo, yO). In step SP4, the initial value of the variable S indicating the page counter of the extraction dictionary 5 is set to 1, and in steps SP5 to 5P11, the extraction process of points satisfying the rule f1 specified in the dictionary from pages 1 to 4 is performed in the basic feature table. Perform the search in step 3.

即ち、ステップ5P5rは、始点(xo 、 yO)と
、辞書のΔX、ΔYから下記(4) 、 (5)式で示
す検出領域Rs (xO、yO)の61粋を行なう。
That is, in step 5P5r, the detection area Rs (xO, yO) is calculated from the starting point (xo, yO) and ΔX, ΔY of the dictionary as shown in equations (4) and (5) below.

検出方向がY軸方向の場合(ΔX=O)、R8(XO,
VO)=((X、V”)1xo −Dx/2≦×≦xo
 +Dx/2゜111in  (yo 、 yo十ΔY
)≦y≦max  (yo 、  yo十ΔY ) )
  ・・・・−(4)検出方向がX軸方向の場合(ΔY
−0)、Rs (xo 、yO)= ((x、V’)1
111in  (XO、xO+ΔX)≦X≦max  
(xo 、 xo+ΔX)。
When the detection direction is the Y-axis direction (ΔX=O), R8(XO,
VO)=((X,V”)1xo −Dx/2≦×≦xo
+Dx/2゜111in (yo, yo1ΔY
)≦y≦max (yo, yo ΔY))
....-(4) When the detection direction is the X-axis direction (ΔY
−0), Rs (xo, yO)= ((x, V')1
111in (XO, xO+ΔX)≦X≦max
(xo, xo+ΔX).

VO−DV/2≦y≦yo+I)y/2)・・・・・・
(5) (但し、l)X、l)Vは線分の傾斜1曲り等を考慮し
たパラメータである。) 次に、ステップSP6で辞書の第8頁に指定されたP特
徴コード点のうち、前記篩用した領bltRs内に存在
J−るものを、基本特徴テーブル3の中から抽出する。
VO-DV/2≦y≦yo+I)y/2)・・・・・・
(5) (However, l) ) Next, in step SP6, among the P feature code points specified on the eighth page of the dictionary, those existing in the sieved region bltRs are extracted from the basic feature table 3.

領域R3内に存在する点が1貞もない場合はステップ5
P14へ、1点以ト存在する場合は、ステップSP7へ
進み、その中で始点(×0゜yO)から、最短距離にあ
るものを(xps、 yps)に格納し、P特徴コード
点の候補と16゜次にステップSP8で辞書に指定した
N特徴コード点のチェックを行なう。即ち、検出方向が
Y軸方向の場合、(4)式のΔYを(yps−yO)で
置き換え、また、検出方向がX軸方向の場合、(5)式
のΔ×を(xps−xO) ’C−置き換えることにJ
:す、R3’ (XO、yO)を計算し、前記N特徴−
」−ド点が前記領域Rs’ (xo 、 yO)内に1
白でも存在すればステップ5P14へ進み、1点も存在
しなければ前記座標(xps、 yps)がP特徴コー
ド点となる。
If there is no point within area R3, step 5
If there is one or more points in step SP7, the point closest to the start point (x0°yO) is stored in (xps, yps), and it is used as a candidate for the P feature code point. and 16° Next, in step SP8, the N feature code points specified in the dictionary are checked. That is, when the detection direction is the Y-axis direction, ΔY in equation (4) is replaced with (yps-yO), and when the detection direction is the X-axis direction, Δ× in equation (5) is replaced with (xps-xO). 'C-J to replace
:S, R3' (XO, yO) is calculated, and the N feature -
” - point is 1 in the region Rs' (xo, yO)
If white also exists, the process advances to step 5P14, and if no point exists, the coordinates (xps, yps) become the P feature code point.

ステップSP9は辞書の頁が最終頁か否かの判定を行な
い、最終頁でなければ、前記抽出されたP特徴コード点
(xps、 yps)を始点としくステップ5PIO)
 、辞書を1頁進め(ステップ5P11) 、ステップ
SP5へ戻り最終頁の処理が終了するまで、前記ステッ
プSP5〜SP11を繰返す。
In step SP9, it is determined whether the page of the dictionary is the final page, and if it is not the final page, the process starts from the extracted P feature code point (xps, yps) and performs step 5 PIO).
, advances the dictionary by one page (step 5P11), returns to step SP5, and repeats steps SP5 to SP11 until the processing of the final page is completed.

ステップSP9で辞書の最終頁の処理終了と判定される
と、ステップ5P12で閉ループの条件判定を行くKい
、条f1を調定しなければステップ5P14へ、満Wす
”れば(XDS、 y113>  (但し、s=1〜4
)を閉ループ図形の4頂点として抽出結果メモリ6に出
力しくステップ5P13) 、ステップ5P14へ進む
If it is determined in step SP9 that the processing of the last page of the dictionary has been completed, a closed loop condition determination is performed in step 5P12.If the condition f1 is not adjusted, the process proceeds to step 5P14; > (However, s=1 to 4
) are output to the extraction result memory 6 as the four vertices of the closed loop figure (step 5P13), and the process proceeds to step 5P14.

ステップ5P14.5P15は前記ステップSPI〜5
P13までの処理を、全てのnに対し6行なうためのも
のであり、n=Nで入力画面に含まれる閉ループ図形の
抽出を終了する。
Step 5P14.5P15 is the step SPI~5
The process up to P13 is performed six times for all n, and when n=N, the extraction of closed loop figures included in the input screen is completed.

(発明の効宋) 以上説明したように本発明によれば、細線化外押を行な
わないため、安定した正確な基本特徴点の抽出が可能で
あり、図形線分の追跡を行イ【わずに基本特徴テーブル
の検索処理のみにより、目的とする図形の基本特徴点抽
出を行なうため、高速外押が可能であり、また、着目す
る領域に存在し−Cはいけない特徴を指示することによ
り、部分的に類似した形状の図形を誤って抽出すること
がなく、粘度良く目つ高速に目的の図形の抽出を行なう
ことができ、さらに辞書の内容を変えることにより、あ
らゆる種類の図面、例えば、市街地図の多角形状の建物
の抽出等にも利用できる等の利点がある。
(Effects of the Invention) As explained above, according to the present invention, since external thinning is not performed, basic feature points can be extracted stably and accurately, and geometric line segments can be traced easily. Because the basic feature points of the target figure are extracted only by searching the basic feature table without searching, high-speed external pressing is possible. , it is possible to extract the target figure at high speed and with good viscosity without accidentally extracting figures with partially similar shapes, and further, by changing the contents of the dictionary, it is possible to extract all kinds of drawings, e.g. It has the advantage that it can also be used to extract polygonal buildings from city maps.

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

第1図は本発明の閉めるループ図形抽出装量の一実施例
を示すブロック図、第2図は基本特徴抽出装置の構成を
示すブロック図、第3図(a)(b)は画素特徴抽出器
の説明図、第4図(a)(b)は画素特徴抽出のようす
の一例を示す図、第5図(a)(b)は基本特徴抽出の
原理の説明図、第6図は基本特徴テーブルの構成を示す
図、第7図はキー特徴と検出領域との位置関係を示す図
、第8図は基本特徴候補点のようすを示す図、第9図(
a)(b)は基本特徴テーブルの構成を示す図、第10
図(a)(b)(C)は閉ループ図形の一例を示寸図、
第11図(a)(b)は閉ループ図形抽出辞書の構成を
示す図、第12図は閉ループ図形の頂点の検出範囲を示
す図、第13図は閉ループ図形の抽出処理の流れを示す
図である。 1・・・画像入力装置、2・・・基本特徴抽出装置、3
・・・基本特徴テーブル、4・・・閉ループ図形抽出装
置、5−・・閉ループ図形抽出辞書、6・・・抽出結果
メモリ。 特許出願人 沖電気工業株式会社 代理人弁即十 吉  1) 精  孝 18a−18h:感知領域 (b) 画素特徴細土器の説明図 第3図 (MmI画@rトーヘ (a)              (b)画素特徴抽
出の一例牙示す図 第4因 (a)              (b)基本特徴抽
呂の説明図 第5図 第6図 キー特徴と検出領域との位置関係図 第7図 「「「・ ・ ・ ・ ・ ・ ・ ・ ・ ・「「「
・ ・ ・ ・ ・・ ・ ・ ・・第8図 ×軸 (8)       (b)        (C)閉
ループ図形の一例を示す図 第10図 (a)                (b)閉ルー
プ図形抽出辞書の構成を示す図 第11図 □X軸 特開昭11i2−114079(10)37a検出範囲 閉ループ図形の頂点の検品範囲を示す図第12図
FIG. 1 is a block diagram showing an embodiment of the closed loop figure extraction device of the present invention, FIG. 2 is a block diagram showing the configuration of a basic feature extraction device, and FIGS. 3(a) and 3(b) are pixel feature extraction Figure 4 (a) and (b) are diagrams showing an example of pixel feature extraction, Figures 5 (a) and (b) are diagrams explaining the principle of basic feature extraction, and Figure 6 is the basic FIG. 7 is a diagram showing the configuration of the feature table, FIG. 7 is a diagram showing the positional relationship between key features and detection areas, FIG. 8 is a diagram showing basic feature candidate points, and FIG. 9 (
a) and (b) are diagrams showing the structure of the basic feature table, 10th
Figures (a), (b), and (C) are dimensional drawings of examples of closed loop shapes.
11(a) and 11(b) are diagrams showing the structure of a closed-loop figure extraction dictionary, FIG. 12 is a diagram showing the detection range of the vertices of a closed-loop figure, and FIG. 13 is a diagram showing the flow of the closed-loop figure extraction process. be. 1... Image input device, 2... Basic feature extraction device, 3
...Basic feature table, 4.. Closed loop figure extraction device, 5.. Closed loop figure extraction dictionary, 6.. Extraction result memory. Patent Applicant Oki Electric Industry Co., Ltd. Agent Ben Sokujukichi 1) Seiko 18a-18h: Sensing area (b) Pixel characteristics Explanatory diagram of fine earthenware Figure 3 (MmI picture @ r Tohe (a) (b) Pixel Figure 4 shows an example of feature extraction Figure 4 (a) (b) Explanation of basic features Figure 6 Diagram of the positional relationship between key features and detection areas Figure 7・ ・ ・ ・ ・"""
・ ・ ・ ・ ・ ・ ・ ...Figure 8 x axis (8) (b) (C) Diagram showing an example of a closed-loop figure Figure 10 (a) (b) Diagram showing the structure of a closed-loop figure extraction dictionary Figure 11 □ X axis Detection range Diagram showing the inspection range of the vertex of the closed loop figure Figure 12

Claims (2)

【特許請求の範囲】[Claims] (1)原画像を入力して2値画像を得る画像入力手段と
、 該入力画像を走査して、少なくとも屈折点、分岐点、交
差点、端点を図形パターンの基本特徴として予め抽出す
る基本特徴抽出手段と、 基本特徴毎に割り当てられた特徴コード名および位置情
報を登録する基本特徴テーブルと、複数個の屈折点を頂
点とする認識対象の閉ループ図形の形状毎に、任意の隣
接する頂点の一方を始点として他方の頂点の特徴コード
名、検出方向、検出範囲を規定した閉ループ図形抽出辞
書と、入力図面から抽出、登録した基本特徴点の中から
、前記辞書に規定された条件を満足する点を順次抽出す
ることにより所望の図形を抽出する閉ループ図形抽出手
段とを備えたことを特徴とする閉ループ図形抽出装置。
(1) Image input means for inputting an original image to obtain a binary image, and basic feature extraction for scanning the input image and extracting in advance at least refraction points, branch points, intersections, and end points as basic features of a graphic pattern. means, a basic feature table that registers feature code names and position information assigned to each basic feature, and one of arbitrary adjacent vertices for each shape of a closed-loop figure to be recognized whose vertices are multiple inflection points. A closed-loop figure extraction dictionary that specifies the feature code name, detection direction, and detection range of the other vertex with the starting point as the starting point, and points that satisfy the conditions specified in the dictionary from among the basic feature points extracted and registered from the input drawing. 1. A closed-loop figure extracting device comprising: closed-loop figure extracting means for extracting a desired figure by sequentially extracting the figures.
(2)閉ループ図形抽出辞書が、認識対象の閉ループ図
形の隣接する頂点間に存在してはならない基本特徴を備
えたことを特徴とする特許請求の範囲第1項項記載の閉
ループ図形抽出装置。
(2) The closed-loop figure extraction device according to claim 1, wherein the closed-loop figure extraction dictionary includes a basic feature that must not exist between adjacent vertices of a closed-loop figure to be recognized.
JP25368485A 1985-11-14 1985-11-14 Closed loop graphic extracting device Pending JPS62114079A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP25368485A JPS62114079A (en) 1985-11-14 1985-11-14 Closed loop graphic extracting device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP25368485A JPS62114079A (en) 1985-11-14 1985-11-14 Closed loop graphic extracting device

Publications (1)

Publication Number Publication Date
JPS62114079A true JPS62114079A (en) 1987-05-25

Family

ID=17254712

Family Applications (1)

Application Number Title Priority Date Filing Date
JP25368485A Pending JPS62114079A (en) 1985-11-14 1985-11-14 Closed loop graphic extracting device

Country Status (1)

Country Link
JP (1) JPS62114079A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0250774A (en) * 1988-08-13 1990-02-20 Fuji Xerox Co Ltd Table area separating device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0250774A (en) * 1988-08-13 1990-02-20 Fuji Xerox Co Ltd Table area separating device

Similar Documents

Publication Publication Date Title
JP4738469B2 (en) Image processing apparatus, image processing program, and image processing method
JPH09128429A (en) Method for recognizing dimensional numerical value and its device
JPS62114079A (en) Closed loop graphic extracting device
JPH04141783A (en) Device and method for preparing electron beam graphic data
CN111027521B (en) Text processing method and system, data processing device and storage medium
JP3172498B2 (en) Image recognition feature value extraction method and apparatus, storage medium for storing image analysis program
JP3516540B2 (en) Construction drawing recognition method and recognition device
JPH06289849A (en) Character/pattern input method
JP2022090469A (en) Format defining device, format defining method, and program
JPS6337487A (en) Character recognizing device
JP2000076378A (en) Character recognizing method
JP3095470B2 (en) Character recognition device
JP2686479B2 (en) Graphic identification code input device
JPH01126774A (en) Graphic input device
JP2803736B2 (en) Character recognition method
JPH0644406A (en) Method and device for processing image
JPH01156887A (en) Character recognizing device
JP2001075984A (en) Filing system
JP4455294B2 (en) Image information processing apparatus, determination method, and computer program
JPH1021398A (en) Method for extracting directional characteristic vector
JPH0434652A (en) Drawing input device
JPS6292085A (en) Recognizing system for symmetrical characteristics of graphic form
JPH0350690A (en) Character recognizing device
JP2019197444A (en) Image processing program, image processing method, and image processing device
JPH1021397A (en) Method for extracting directional characteristic vector