JPS63220370A - Automatic layer recognizing system for cad data based on knowledge processing - Google Patents

Automatic layer recognizing system for cad data based on knowledge processing

Info

Publication number
JPS63220370A
JPS63220370A JP5506687A JP5506687A JPS63220370A JP S63220370 A JPS63220370 A JP S63220370A JP 5506687 A JP5506687 A JP 5506687A JP 5506687 A JP5506687 A JP 5506687A JP S63220370 A JPS63220370 A JP S63220370A
Authority
JP
Japan
Prior art keywords
data
frame
vector
graphic
data storage
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
JP5506687A
Other languages
Japanese (ja)
Inventor
Hirokuni Monzen
門前 弘邦
Akihiro Abe
昭博 阿部
Noritoshi Rokujiyou
六条 範俊
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 JP5506687A priority Critical patent/JPS63220370A/en
Publication of JPS63220370A publication Critical patent/JPS63220370A/en
Pending legal-status Critical Current

Links

Landscapes

  • Processing Or Creating Images (AREA)

Abstract

PURPOSE:To reduce input cost and to speed up processing by sorting vector data on a screen by means of knowledge and constituting hierarchical data. CONSTITUTION:Vector data outputted from a graphic input device 2 are written in a vector information storing means 4 and a frame forming part 5 describes the properties of graphic elements constituting a picture or relation among the graphic elements as abstract data structure based upon a frame model on the basis of graphic constituting data based on vector expression. The frame data formed by the part 5 are written in a frame data storing means 7 and a knowledge base 8 stores plural IF-THEN type production rules describing restricting conditions inherent in the graphic. An estimation engine 9 executes the production rules and the abstract frame data stored in the means 7 are sorted based on the contents of the knowledge base 8 and the sorted result is converted into a CAD data format. Consequently, the multimedia formation of a data base can be easily executed.

Description

【発明の詳細な説明】 〔概要〕 地図等を図面入力装置に入力し、図面入力装置によって
入力地図をベクトル情報の集まりとして表現し、ベクト
ル情報をフレーム生成部に入力し、フレーム生成部によ
り、認識対象図形の属性(面積、座標値等)や対象間の
関係(面と線の構造関係や線と線の平行関係等)をフレ
ーム・モデルによる抽象的データ構造として記述し、「
家屋は街区に含まれる。」と言う知識や「家屋は独立し
、内部には何も含まれない、」と言う知識、「隣接する
街区と街区との間は道路である。」と言う知識等を利用
して、フレーム・データを分類し、家屋のCADデータ
や道路のCADデータ、鉄道のCADデータなどを出力
できるように構成したものである。
[Detailed Description of the Invention] [Summary] A map or the like is input to a drawing input device, the input map is expressed as a collection of vector information by the drawing input device, the vector information is input to a frame generation section, and the frame generation section generates The attributes of the figure to be recognized (area, coordinate values, etc.) and the relationships between objects (structural relationships between surfaces and lines, parallel relationships between lines, etc.) are described as an abstract data structure using a frame model.
Houses are included in blocks. '', ``Houses are independent and contain nothing inside,'' and ``There are roads between adjacent blocks.'' - It is configured to classify data and output CAD data of houses, CAD data of roads, CAD data of railways, etc.

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

本発明は、フレーム・モデルによる抽象的データ構造で
以て入力図面を記述し、知識ベースを利用して家屋を表
現しているフレーム・データや道路を表現しているフレ
ーム・データ、鉄道を表現しているフレーム・データな
どを見つけ出し、家屋のCADデータや道路のCADデ
ータ、鉄道のCADデータなどを出力できるようになっ
た知識処理によるCADデータ自動レイヤ認識システム
に関するものである。
The present invention describes input drawings using an abstract data structure based on a frame model, and utilizes a knowledge base to create frame data that represents houses, frames data that represents roads, and frame data that represents railways. The present invention relates to a CAD data automatic layer recognition system using knowledge processing that is capable of finding frame data, etc., that are being used in a building, and outputting CAD data of houses, CAD data of roads, CAD data of railways, etc.

〔従来の技術〕[Conventional technology]

近年、データベースのマルチメゾイヤ化が急速に進展し
ている。図形データにおいても、従来からのCAD/C
AMの分野はもとより、最近では自治体やニーテリティ
企業等が地図のデータベース化を積極的に進めている。
In recent years, the development of multi-mezzo databases has rapidly progressed. Even for graphic data, traditional CAD/C
In addition to the AM field, local governments and niche companies have recently been actively creating map databases.

従来の技術では、家屋や道路、鉄道等を計算機に入力す
る場合、家屋の図形や道路の図形、鉄道の図形を個別に
デジタイザ等を利用して入力している。
In conventional technology, when inputting houses, roads, railways, etc. into a computer, the shapes of the house, roads, and railways are input individually using a digitizer or the like.

〔解決しようとする問題点〕[Problem to be solved]

従来の技術では、図面利用システムの初期入力は人手に
よるデジタイジング入力に頼っており、これが大きなボ
トルネックになっている。
In conventional technology, the initial input of drawing utilization systems relies on manual digitizing input, which has become a major bottleneck.

本発明は、この点に鑑みて創作されたものであって、図
面のベクトル・データを知識を用いて分類し、階層デー
タを構築し、CADデータを出力できるようになった知
識処理によるCADデータ自動レイヤ認識システムを提
供することを目的としている。
The present invention was created in view of this point, and uses knowledge to classify vector data of drawings, construct hierarchical data, and output CAD data using knowledge processing. It aims to provide an automatic layer recognition system.

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

第1図は本発明の原理図である0図面入力装置2は、図
面のイメージ・データをベクトル・データに変換する。
FIG. 1 is a diagram illustrating the principle of the present invention. A drawing input device 2 converts image data of a drawing into vector data.

図面入力装置2から出力されたベクトル・データは、ベ
クトル情報記憶手段4に書き込まれる。フレーム生成部
5は、ベクトル情報記憶手段4に格納されているベクト
ル表現の図面構成データをもとに、図面を構成する図形
要素の属性や図形要素間の関係をフレーム・モデルによ
る抽象的データ構造として記述する。フレーム生成部5
によって生成されたフレーム・データは、フレーム・デ
ータ記憶手段7に書き込まれる。知識ベース8は、図面
固有の拘束条件を記述したIF−THEN型のプロダク
ション・ルールの複数個を記憶する。推論エンジン9は
、プロダクション・ルールを実行する。知識ベース8の
内容に基づいてフレーム・データ記憶手段7に格納され
ている抽象的なフレーム・データが分類され、分類結果
はCADデータ・フォーマットに変換される。
The vector data output from the drawing input device 2 is written into the vector information storage means 4. The frame generation unit 5 generates an abstract data structure based on a frame model based on the vector representation drawing structure data stored in the vector information storage means 4, and the attributes of the graphical elements constituting the drawing and the relationships between the graphical elements. Describe it as Frame generation section 5
The frame data generated by is written to the frame data storage means 7. The knowledge base 8 stores a plurality of IF-THEN type production rules that describe drawing-specific constraints. Inference engine 9 executes production rules. The abstract frame data stored in the frame data storage means 7 is classified based on the contents of the knowledge base 8, and the classification results are converted into a CAD data format.

〔実施例〕〔Example〕

第2図は本発明の1実施例の機能ブロック図である。同
図において、1は計算機、2は図面入力装置、3はTS
S端末、4はベクトル・データ記憶部、5はフレーム生
成部、6は図形演算ライブラリ、7はフレーム・データ
記憶部、8は知識ベース、9は推論エンジン、10はC
ADフォーマット変換部をそれぞれ示している。
FIG. 2 is a functional block diagram of one embodiment of the present invention. In the figure, 1 is a calculator, 2 is a drawing input device, and 3 is a TS
S terminal, 4 is a vector data storage unit, 5 is a frame generation unit, 6 is a graphic operation library, 7 is a frame data storage unit, 8 is a knowledge base, 9 is an inference engine, 10 is a C
Each AD format converter is shown.

計算機1は、O8やTSS、ベクトル・データ記憶部4
、フレーム生成部5、図形演算ライプラI76、フレー
ム・データ記憶部7、知識ベース8、推論エンジン9及
びCADデータ・フォーマット変換部10などを有して
いる0図面入力装置2は、図面のイメージ・データをベ
クトル・データに変換するものである0図面入力装置2
から出力されるベクトル・データはベクトル・データ記
憶部4に格納される。ベクトル・データは、始点情報及
び終点情報を持つ。始点情報は、X座標、Y座標及び端
点情報を持つ、端点情報とは、開いているか、或いは他
のベクトルと連結しているかを示すものである。終点情
報は、始点情報と同じ形式を持つ。フレーム生成部5は
、ベクトル・データ記憶部4に格納されているベクトル
・データに基づいてフレーム・データを生成するもので
ある。図形演算ライブラリ6は、図形の近隣関係や包含
関係、外接関係、内接関係、交差関係、部分関係を調べ
るためのプログラムを格納している。フレーム・データ
はフレーム・データ記憶部7に格納される。知識ベース
8には、「家屋は街区に含まれる。」と言う知−や「家
屋は独立し、内部には何も含まない。」と言う知識、「
隣接する街区の間は道路である。」と言う知識などが格
納される。
Computer 1 includes O8, TSS, vector data storage unit 4
The drawing input device 2, which includes a frame generation section 5, a graphical operation Lypra I 76, a frame data storage section 7, a knowledge base 8, an inference engine 9, a CAD data format conversion section 10, etc., inputs images of drawings. 0 drawing input device 2 that converts data into vector data
The vector data output from the vector data storage section 4 is stored in the vector data storage section 4. Vector data has start point information and end point information. The starting point information has an X coordinate, a Y coordinate, and end point information. The end point information indicates whether the vector is open or connected to another vector. The end point information has the same format as the start point information. The frame generation unit 5 generates frame data based on vector data stored in the vector data storage unit 4. The graphic operation library 6 stores programs for examining neighboring relationships, inclusion relationships, circumscribed relationships, inscribed relationships, intersection relationships, and partial relationships of graphics. Frame data is stored in frame data storage section 7. Knowledge base 8 includes the knowledge that ``A house is included in a city block.'' and the knowledge that ``A house is independent and does not contain anything inside.''
There are roads between adjacent blocks. ” is stored.

知識ベース8に格納されている知識はプロダクション・
ルール型のものである。推論エンジン9は、プロダクシ
ョン・ルールのIFパートの真偽を調べ、真であればT
 II ENパートの処理を実行するものである。CA
Dデータ・フォーマット変換部10は、家屋を表す図形
データや道路を表す図形データ、鉄道を表す図形データ
をCAD′システムが理解できる形に変換し、出力する
ものである。
The knowledge stored in knowledge base 8 is
It is a rule type thing. The inference engine 9 checks whether the IF part of the production rule is true or not, and if it is true, T
II This is to execute the processing of the EN part. CA
The D data format conversion section 10 converts graphic data representing houses, graphic data representing roads, and graphic data representing railways into a form that can be understood by the CAD' system and outputs the data.

第3図は図形モデルの例を示す図である。本発明の1実
施例では、ライン、フェイス、ツリーおよびコンプレッ
クスと言う図形モデルを使用している。ラインとは、成
る直線度を基準にして連結したベクトルの集合であり、
フェイスとは、左手アルゴリズムで発見したループの内
で時計回りの順序と方向とを持つラインの集まりであり
、ツリーとは、フェイスを持たないラインを連結したも
の(但し、仮想フェイスを作る際に向きが変わることあ
り)あり、コンプレックスとは、上記図形モデルの複数
個から構成される図形である。
FIG. 3 is a diagram showing an example of a graphic model. One embodiment of the invention uses the following graphical models: lines, faces, trees, and complexes. A line is a set of vectors connected based on straightness,
A face is a collection of lines with a clockwise order and direction within a loop discovered by the left-handed algorithm, and a tree is a collection of lines that have no faces (however, when creating a virtual face, The direction may change), and a complex is a figure composed of a plurality of the above figure models.

第4図はフレーム論理構造の例を示す図である。FIG. 4 is a diagram showing an example of a frame logical structure.

同図において、例えば構造的地図世界と言うフレームは
、CLASSと言うスロットと、PARTと言うスロッ
トを有しており、CLASSと言うスロットは¥VAL
UEと言う属性を持ち、GENERICと言う値を持っ
ており・PARTと言うスロットは¥LINKと言う属
性を有しており、記号列、独立図形および地図枠と言う
値を有している。
In the same figure, for example, a frame called the structural map world has a slot called CLASS and a slot called PART, and the slot called CLASS has a slot called \VAL.
The slot has an attribute called UE and a value called GENERIC. A slot called PART has an attribute called ¥LINK, and has values called symbol string, independent figure, and map frame.

第5図はフレーム階層構造の例を示す図である。FIG. 5 is a diagram showing an example of a frame hierarchical structure.

同図において、4角枠はプロトタイプ・フレームを表し
、九枠はインスタンス・フレームを表している。同図に
示すように、構造的地図世界と言うフレームは、記号列
と言うプロトタイプ・フレームと、地図枠と言うプロト
タイプ・フレームと、独立図形と言うプロトタイプ・フ
レームとリンクしている。記号列と言うプロトタイプ・
フレームは、記号と言うプロトタイプ・フレームとリン
クしている。また、記号列と言うプロトタイプ・フレー
ムは、インスタンス・フレームとして記号列01を持つ
。以下、図示の通りである。
In the figure, square frames represent prototype frames, and nine frames represent instance frames. As shown in the figure, the frame called the structural map world is linked to a prototype frame called a symbol string, a prototype frame called a map frame, and a prototype frame called an independent figure. A prototype called a symbol string.
Frames are linked to prototype frames called symbols. Further, a prototype frame called a symbol string has a symbol string 01 as an instance frame. The following is as shown.

知識ベース8には、プロダクション・ルールが格納され
ている。プロダクション・ルールは、(ルール番号(r
p    条件部) (THEN   結果部) と言う形式をしている。知識ベース8の中には、例えば
、 (#1    (IF(包含゛街区 図形A)(=図形
A”家屋))) (#2     (IF(近隣゛街区 図形A)(−図
形A゛街区)) と言うようなプロダクション・ルールが複数個格納され
ている。
The knowledge base 8 stores production rules. The production rule is (rule number (r
p condition part) (THEN result part). In the knowledge base 8, for example, (#1 (IF (inclusive block figure A) (= figure A "house"))) (#2 (IF (neighborhood block figure A) (- figure A block) ) are stored.

第6図は認識部の機能を説明する図である。同図におい
て、11はメタ・コントローラ、12は幾何的特徴によ
る認識処理部、13は二次元的関係による認識処理部を
それぞれ示している。認識部は、知識ベース8と推論エ
ンジン9から構成されていると考えて良い。メタ・コン
トローラ11は、処理の大まかな管理と、開路と終了の
管理を行う。幾何的特徴による認識処理部12は、図形
の形状を調べて、認識の開始地点を求める。二次元的関
係による認識処理部13は、図形が何を表しているかと
言う仮説を立て、その仮説を検証する処理等を行う。
FIG. 6 is a diagram explaining the function of the recognition section. In the figure, reference numeral 11 indicates a meta controller, 12 a recognition processing unit based on geometric features, and 13 a recognition processing unit based on two-dimensional relationships. The recognition unit can be considered to be composed of a knowledge base 8 and an inference engine 9. The meta controller 11 performs general management of processing and management of opening and termination. The recognition processing unit 12 based on geometric features examines the shape of the figure and determines the recognition starting point. The two-dimensional relationship recognition processing unit 13 forms a hypothesis as to what the figure represents, and performs processing to verify the hypothesis.

第7図はシステム処理の例を示す図である。図面入力装
置2は、図面を読み取り、ベクトル・データを出力する
。フレーム生成部5はベクトル・データを入力としてフ
レーム生成を行う。フレーム生成は、初期処理、入力処
理、地図枠処理、文字・シンボル処理、独立図形処理、
構造認識処理、フレーム出力処理の順に行われる。初期
処理では各種パラメタのセット・アップが行われ、入力
処理ではベクトル図面データの読み込みが行われ、地図
枠処理では地図枠の認識が行われ、文字・シンボル処理
では文字やシンボルの認識が行われ、独立図形処理では
連続した線を−纏まりの図形単位とする処理が行われる
。構造認識処理では、構造認識、仮想処理、関係処理等
が行われる。構造認識では図形の構造認識(例えばルー
プの抽出など)が行われ、仮想処理では断線等によって
開いている図形を仮想的に結ぶ処理などが行われ、関係
処理では要素図形間の関係(近隣、包含、外接。
FIG. 7 is a diagram showing an example of system processing. The drawing input device 2 reads drawings and outputs vector data. The frame generation unit 5 receives vector data as input and generates a frame. Frame generation includes initial processing, input processing, map frame processing, character/symbol processing, independent figure processing,
Structure recognition processing and frame output processing are performed in this order. In initial processing, various parameters are set up, in input processing, vector drawing data is read, in map frame processing, map frames are recognized, and in character/symbol processing, characters and symbols are recognized. In the independent figure processing, continuous lines are treated as a group of figures. In the structure recognition process, structure recognition, virtual processing, relational processing, etc. are performed. Structural recognition involves recognizing the structure of figures (for example, extracting loops), virtual processing involves virtually connecting figures that are open due to disconnections, etc., and relational processing involves recognizing the relationships between element figures (neighborhood, etc.). Inclusion, circumscription.

内接、交差2部分など)が抽出される。フレーム出力処
理では、認識部の処理するフレーム図形データをフレー
ム・データ記憶部7に出力する処理が行われる。
(inscribed, intersecting two parts, etc.) are extracted. In the frame output process, the frame graphic data processed by the recognition unit is output to the frame data storage unit 7.

フレーム・データが生成された後に、フレーム・データ
を知識ベースを用いながら図形の意味(家屋、道路等)
を認識する。メタ・コントローラ11は、幾何的特徴処
理と二次元的特徴処理の制御、処理の開始・終了の管理
を行う。処理の大まかな流れは下記の通りである。
After the frame data is generated, the meaning of the shape (house, road, etc.) is determined using the frame data using the knowledge base.
Recognize. The meta controller 11 controls geometric feature processing and two-dimensional feature processing, and manages the start and end of the processing. The general flow of the process is as follows.

1)図面中の認識開始地点を、幾何的特徴認識(形状か
ら家屋らしい所)によって見つける。
1) Find the recognition starting point in the drawing by geometric feature recognition (a place that seems to be a house based on its shape).

2) その図形を仮説生成のための「事実」とする。2) Use the figure as a “fact” for generating a hypothesis.

3)二次元的関係認識に制御を移し、「事実」をもとに
仮説を生成する。仮説は知識ベース8上の「もし家屋な
ら街区に包含される」等を用いて生成される。
3) Transfer control to two-dimensional relationship recognition and generate hypotheses based on "facts." The hypothesis is generated using the knowledge base 8, such as "If it is a house, it is included in the block."

4)生成された仮説は、その生成に適用されたルールの
信用度が低い場合、検証処理によって周囲との整合性が
チェックされる。
4) If the reliability of the rules applied to the generated hypothesis is low, the generated hypothesis is checked for consistency with the surroundings through a verification process.

5)検証に失敗した場合、再び仮説の生成が行われる。5) If verification fails, hypothesis generation is performed again.

6)検証に成功したならば、それを「事実」として次の
仮説を生成して行く。
6) If the verification is successful, the next hypothesis is generated using it as a "fact".

7)二次元的関係が成立していない場合には、幾何的特
徴認識に制御を移す。
7) If a two-dimensional relationship is not established, control is transferred to geometric feature recognition.

8)1)から同様な処理を、終了まで繰り返す。8) Repeat the same process from 1) until the end.

図面を意味的に分類した結果は、CADデータフォーア
ット変換部10によってそれぞれ対象とするCADデー
タに変換されたレイヤ構造になる。
The result of semantically classifying the drawings is a layered structure that is converted into target CAD data by the CAD data format conversion unit 10.

上述の実施例においては、図形をライン、フェイス、ツ
リー、コンプレックス、シンボルなどの5つの図形要素
に分けているが、図形を面、線、点、シンボルなどの4
つの図形要素に分けることも出来る。また、図形要素間
の関係概念として、近隣、包含、外接、内接、交差、部
分などの6つの概念を使用することも出来る。第8図は
地形図を上記図形要素に分けた時に現れる図形要素間の
関係を示す図である。
In the above embodiment, the figure is divided into five figure elements such as line, face, tree, complex, and symbol.
It can also be divided into two graphical elements. Additionally, six concepts such as neighborhood, inclusion, circumscription, inscription, intersection, and part can also be used as relationships between graphic elements. FIG. 8 is a diagram showing the relationships between the graphical elements that appear when the topographic map is divided into the graphical elements.

第9図(a)は包含関係抽出手順を示す図である。FIG. 9(a) is a diagram showing the inclusion relation extraction procedure.

■ 関係を見つけたい図形を注目図形とよび、包含関係
を調べる対象を候補図形とよぶ。
■ The shape for which you want to find a relationship is called the target shape, and the object whose inclusion relationship is to be investigated is called a candidate shape.

■ 第9図(b)に示すように、注目図形の外接矩形に
含まれるような外接矩形を持つ図形を、候補図形群の中
から選ぶ。
(2) As shown in FIG. 9(b), a figure whose circumscribed rectangle is included in the circumscribed rectangle of the figure of interest is selected from the group of candidate figures.

■ 候補図形の頂点が全て注目図形上にないか否かをチ
ェックする。あれば対象外となる。
■ Check whether all the vertices of the candidate figure are on the figure of interest. If so, it will be excluded.

■ 第9図(C)に示すように、候補図形の1端点から
水平に大きなベクトルを引き、voとする。
(2) As shown in FIG. 9(C), a large vector is drawn horizontally from one end point of the candidate figure, and it is set as vo.

■ 注目図形を構成している全てのラインとベクトルv
0との交差チェックを行い、交差数をカウントする。
■ All lines and vectors that make up the figure of interest v
Check the intersection with 0 and count the number of intersections.

■ 交差の回数が奇数の場合には含まれると判定し、偶
数の場合は含まれないと判定する。但し、交差チェック
の段階で、第9図(dl、 (e)に示すように、外積
の値が0になる時がある。この場合、外積の値がOと正
になった時、その回数をカウントする。カウントが奇数
の場合には交差の回数に1を加え、カウントが偶数の場
合には交差の回数をそのままにする。
■ If the number of intersections is an odd number, it is determined that it is included, and if it is an even number, it is determined that it is not included. However, at the stage of cross checking, there are times when the value of the cross product becomes 0, as shown in Figure 9 (dl, (e)).In this case, when the value of the cross product becomes positive O, the number of times If the count is odd, add 1 to the number of crossings; if the count is even, leave the number of crossings as is.

第10図+a)は近隣関係抽出手順を示す図である。FIG. 10+a) is a diagram showing the neighborhood relationship extraction procedure.

■ 関係を見つけたい図形を注目図形とよび、近隣関係
を調べる対象を候補図形とよぶ。
■ The shape for which you want to find a relationship is called the target shape, and the object whose neighborhood relationships are to be investigated is called a candidate shape.

■ 注目図形を構成する全ラインと、候補図形の各ライ
ンについて、以下の条件を満たしているか否かをチェッ
クする。満たしていれば、近隣関係となる。
■ Check whether the following conditions are satisfied for all the lines that make up the figure of interest and each line of the candidate figure. If the conditions are met, the relationship is a neighbor relationship.

1)候補ラインの両端点から注目ラインに下ろした足の
少なくともどちらか一方が闇値以下である。
1) At least one of the legs dropped from both end points of the candidate line to the line of interest is below the darkness value.

2)注目ラインとの直線性が閾値以下である。2) Linearity with the line of interest is below a threshold.

3) 候補ラインの注目ラインに対する平行長が候補ラ
イン中で最大のもの(第11図参照)。
3) The candidate line whose parallel length to the line of interest is the largest among the candidate lines (see Figure 11).

第10図(b)は垂線長の算出を説明する図である。FIG. 10(b) is a diagram illustrating calculation of the perpendicular length.

こで垂線の足の長さhl、h2はそれぞれ次式で与え(
XI−X2) ・(Y3−Yl)−(Y2−Yl)  
(X3−XI) −第10図(C)は平行長の算出を説
明する図である。
Here, the leg lengths hl and h2 of the perpendicular line are given by the following formulas (
XI-X2) ・(Y3-Yl)-(Y2-Yl)
(X3-XI) - FIG. 10(C) is a diagram illustrating calculation of parallel length.

ベクトルAと、ベクトルAの乗る直線り上にない点p(
x3.Y3) 、更に点Pから直線りに下ろした垂線と
直線りとの交点をQ (X4. Y4)とする。ここで
、点Qの座標は次式で与えられる。
Vector A and a point p that is not on the straight line on which vector A rides (
x3. Y3), and let the intersection of the perpendicular line drawn straight down from point P and the straight line be Q (X4. Y4). Here, the coordinates of point Q are given by the following equation.

X4.E/F Y4=G/F である、交点Qが直線りに乗っているベクトルA上の点
か、どうかを判断する必要がある。同様にして点Rにつ
いても直線りとの交点Sを求める。
X4. E/F Y4=G/F It is necessary to judge whether the intersection Q is a point on the vector A on a straight line. Similarly, for point R, the intersection point S with the straight line is determined.

こうして求まった2つの交点とベクトルAの関係を整理
すると、第11図に示すように・5つのパターンに分類
される。それらの各々について平行長を計算する。
When the relationship between the two intersection points and the vector A thus determined is sorted out, it is classified into five patterns as shown in FIG. Calculate the parallel length for each of them.

第12図(alは交差関係抽出手順を示す図である。FIG. 12 (al is a diagram showing the intersection relation extraction procedure.

■ 交差関係を見つけたい図形を注目図形とよび、交差
関係を調べる対象を候補図形とよぶ。
■ The figure whose intersection relationship you want to find is called the target figure, and the object whose intersection relationship is to be investigated is called the candidate figure.

■ 注目図形を構成する全ラインと、候補図形の各ライ
ンについて外接矩形を求め、注目図形の構成ラインの外
接矩形に重なったラインについてのみ交差チェックを行
う。第12回出)のような場合には交差チェックを行い
、第12図(C)のような場合には交差チェックを行わ
ない。
(2) Obtain circumscribing rectangles for all the lines constituting the figure of interest and each line of the candidate figure, and perform intersection checking only on lines that overlap the circumscribed rectangles of the constituent lines of the figure of interest. In a case like the one shown in the 12th issue), a cross check is performed, and in a case like FIG. 12 (C), a cross check is not performed.

■ 第12図(d)に示すように、”a Xplql及
び1×plq2の外積を求める。求まった値により端点
Qlと92が注目ベクトルの両側に存在するか否かを調
べる。存在する場合は交差候補として次の処理を行い、
存在しない場合は交差しないと判定する。
■ As shown in Figure 12(d), find the cross product of "a" Perform the following processing as an intersection candidate,
If it does not exist, it is determined that they do not intersect.

■ 第12図(e)に示すように、前と同様な処理を候
補ラインを基準として計算する。求まった値により、端
点p1とp2が注目ベクトルの両側に存在するか否かを
調べる。存在する場合は交差していると判定し、存在し
ない場合は交差しないと判定する。
(2) As shown in FIG. 12(e), the same process as before is performed using the candidate line as a reference. Based on the obtained value, it is checked whether the end points p1 and p2 exist on both sides of the vector of interest. If they exist, it is determined that they intersect, and if they do not exist, it is determined that they do not intersect.

第12図(f)は外積計算を説明する図である。外積は
下記のようにして求められる。
FIG. 12(f) is a diagram illustrating cross product calculation. The cross product can be found as follows.

ZL□  Xtt−X++ ZY+=    Lz−Lt Z)h=  Xzr−X++ ”1t=Yz+−Y++ ZXs−Xtt−Ye+ ZYz・Xzz−Yt+ ZB+ −ZL * Z’h −ZY+ lk ZXt
ZBz =ZL 傘ZYs −ZY+ * ZXsZB
、がOより大きく ZBgが0より小さい場合、または
その逆の場合に候補ラインの端点が注目ラインの両側に
存在すると判定する。
ZL□ Xtt-X++ ZY+= Lz-Lt Z)h= lk ZXt
ZBz =ZL Umbrella ZYs -ZY+ * ZXsZB
, is larger than O and ZBg is smaller than 0, or vice versa, it is determined that the end points of the candidate line exist on both sides of the line of interest.

第13図(alは内接関係抽出手順を示す図である。FIG. 13 (al is a diagram showing the inscribed relation extraction procedure.

■ 関係を見つけたい図形を注目図形とよび、内接関係
を調べる対象を候補図形とよぶ。
■ The figure for which you want to find a relationship is called the target figure, and the object whose inscribed relationship is to be investigated is called a candidate figure.

■ 第13図(b)に示すように、注目図形の外接矩形
に含まれるか、或いは重なる外接矩形を持つ図形を候補
図形群の中から選ぶ。
(2) As shown in FIG. 13(b), a figure whose circumscribed rectangle is included in or overlaps with the circumscribed rectangle of the figure of interest is selected from the group of candidate figures.

■ 候補図形の頂点が1つ以上、注目図形上にあるもの
を選ぶ。
■ Select candidate shapes with one or more vertices on the target shape.

■ 注目図形上にない候補図形の1頂点から水平に大き
な”ベクトルを引き、voとする。
■ Draw a large vector horizontally from one vertex of a candidate figure that is not on the target figure and set it as vo.

■゛注目図形を構成している全てのラインとベクトル■
。の交差チェックを行い、交差数をカウントする。
■゛All lines and vectors that make up the figure of interest■
. Check the intersections and count the number of intersections.

■ 交差回数が奇数の場合は内接と判定し、交差回数が
偶数の場合は内接しないと判定する。
■ If the number of intersections is an odd number, it is determined that it is inscribed, and if the number of intersections is an even number, it is determined that it is not inscribed.

第14図(a)は外接関係抽出手順を示す図である。FIG. 14(a) is a diagram showing a circumscribed relationship extraction procedure.

■ 外接関係をみつけたい図形を注目図形とよび、外接
関係を調べる対象を候補図形とよぶ。
■ The figure for which you want to find a circumscribed relationship is called the figure of interest, and the object whose circumscribed relationship is to be investigated is called a candidate figure.

■ 第14図(b)に示すように、注目図形の外接矩形
と、候補図形の外接矩形とを調べ、重なるか、或いは接
するものを選ぶ。
(2) As shown in FIG. 14(b), check the circumscribed rectangle of the target figure and the circumscribed rectangle of the candidate figure, and select those that overlap or are in contact with each other.

■ 注目図形の各頂点と候補図形について、1)頂点の
1つ以上が候補図形上にある。
■ For each vertex of the target figure and the candidate figure, 1) one or more of the vertices is on the candidate figure.

2)他の頂点は候補図形外に存在する。2) Other vertices exist outside the candidate figure.

と言う条件を満たすかを調べ、満たしている場合に外接
関係ありとする。
Check whether the condition is satisfied, and if it is, it is determined that there is a circumscribed relationship.

第15図(a)は部分関係抽出手順を示す図である。FIG. 15(a) is a diagram showing a partial relationship extraction procedure.

■ 部分関係を見つけたい図形を注目図形とよび、部分
関係を調べる対象を候補図形とよぶ。
■ The figure for which you want to find a partial relationship is called the target figure, and the object whose partial relationship is to be investigated is called a candidate figure.

■ 第15図(blに示すように、注目図形の外接矩形
に含まれるか、或いは同一の外接矩形をもつ図形を、候
補図形群から選ぶ。
■ As shown in FIG. 15 (bl), figures that are included in the circumscribed rectangle of the figure of interest or have the same circumscribed rectangle are selected from the group of candidate figures.

■ 注目図形を構成する全てのラインと、候補図形の各
ラインの関係を調べ、交わる、交わらない、接するの関
係以外なら、部分関係ありとする。
■ Check the relationship between all the lines composing the target figure and each line of the candidate figure, and if the relationship is other than intersecting, not intersecting, or touching, it is determined that there is a partial relationship.

〔発明の効果〕〔Effect of the invention〕

以上の説明から明らかなように、本発明によれば、図面
入力装置からのベクトル情報と、CADシステム等の利
用システム・レベルのデータとのギャップを埋めること
が出来る。また、本発明によれば、入力コストの低減や
処理の高速化などの効果を奏することが出来るので、デ
ータベースのマルチメゾイヤ化が容易になる。
As is clear from the above description, according to the present invention, it is possible to fill the gap between vector information from a drawing input device and data at the level of a usage system such as a CAD system. Further, according to the present invention, it is possible to achieve effects such as reducing input costs and speeding up processing, so it becomes easy to create a multi-mezzo layer of a database.

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

第1図は本発明の原理図、第2図は本発明の1実施例の
ブロック図、第3図は図形モデルの例を示す図、第4図
はフレーム論理構造の例を示す図、第5図はフレーム階
層構造の例を示す図、第6図は認識部の機能を説明する
図、第7図はシステム処理の例を示す図、第8図は地形
図における要素間の関係を示す図、第9図は包含関係抽
出手順を説明する図、第10図は近隣関係抽出手順を説
明する図、第11図は平行長のパターンを示す図、第1
2図は交差関係抽出手順を説明する図、第13図は内接
関係抽出手順を説明する図、第14図は外接関係抽出手
順を説明する図、第15図は部分関係抽出手順を説明す
る図である。 l・・・計算機、2・・・図面入力装置、3・・・TS
S端末、4・・・ベクトル・データ記憶部、5・・・フ
レーム生成部、6・・・図形演算ライブラリ、7・・・
フレーム・データ記憶部、8・・・知識ベース、9・・
・推論エンジン、IO・・・CADフォーマット変換部
。 不発萌りt絶倒 1」−−−1 図@Eテ゛Iしの張11 賃・11帥の″jI4双硬1 都6図 δOν丁 勿な関娠抽出手111鍵 蛎q国 パフーン3゜ ハ゛7−ン4゜ V−行表のへ゛ターン %//図 訃(11発」1)イテしクリ社1手咳 悴13閏 イ疾4町日8’l!ifデシ 7ト千参謹)イ糸1Dぶつ一用身 第14−図
FIG. 1 is a diagram showing the principle of the present invention, FIG. 2 is a block diagram of an embodiment of the present invention, FIG. 3 is a diagram showing an example of a graphical model, FIG. 4 is a diagram showing an example of a frame logical structure, and FIG. Figure 5 is a diagram showing an example of the frame hierarchical structure, Figure 6 is a diagram explaining the function of the recognition unit, Figure 7 is a diagram showing an example of system processing, and Figure 8 is a diagram showing the relationship between elements in a topographic map. 9 is a diagram explaining the inclusion relationship extraction procedure, FIG. 10 is a diagram explaining the neighborhood relationship extraction procedure, FIG. 11 is a diagram showing the parallel length pattern,
Figure 2 is a diagram for explaining the intersecting relationship extraction procedure, Figure 13 is a diagram for explaining the inscribed relationship extraction procedure, Figure 14 is a diagram for explaining the circumscribed relationship extraction procedure, and Figure 15 is a diagram for explaining the partial relationship extraction procedure. It is a diagram. l...Calculator, 2...Drawing input device, 3...TS
S terminal, 4... Vector data storage unit, 5... Frame generation unit, 6... Graphic calculation library, 7...
Frame data storage unit, 8...Knowledge base, 9...
- Inference engine, IO...CAD format conversion unit. Unexploded Moe t Zetsukou 1'' ---1 Figure @ E-type H 7 - 4 ゜ V - row table start turn % // figure (11 shots) 1) ite, chestnut company 1 hand cough 13 jump 4 town days 8'l! If Deci7th Thousand Sansin) Iito 1D Butsuichi Yoshin No. 14-Figure

Claims (2)

【特許請求の範囲】[Claims] (1)図面のイメージ・データをベクトル・データに変
換する図面入力装置(2)と、 図面入力装置(2)から出力されるベクトル・データを
記憶するベクトル・データ記憶手段(4)と、ベクトル
・データ記憶手段(4)に格納されているベクトル表現
の図面構成データをもとに、図面を構成する図形要素の
属性や図形要素間の関係をフレーム・モデルによる抽象
的データ構造として記述するフレーム生成部(5)と、 フレーム生成部(5)から出力されたフレーム・データ
を記憶するフレーム・データ記憶手段(7)と、図面固
有の拘束条件を記述したIF−THEN型のプロダクシ
ョン・ルールの複数個を記憶する知識ベース(8)と、 プロダクション・ルールを実行する推論エンジン(9)
と、 を具備し、 且つ、上記知識ベース(8)の内容を用いてフレーム・
データ記憶手段(7)に格納されている抽象的なフレー
ム・データを分類し、分類結果をCADデータ・フォー
マットに変換する ことを特徴とする知識処理によるCADデータ自動レイ
ヤ認識システム。
(1) A drawing input device (2) that converts image data of a drawing into vector data, a vector data storage means (4) that stores vector data output from the drawing input device (2), and a vector data storage means (4) that stores vector data output from the drawing input device (2).・A frame that describes the attributes of the graphical elements composing the drawing and the relationships between the graphical elements as an abstract data structure using a frame model based on the vector representation drawing configuration data stored in the data storage means (4) A generation unit (5), a frame data storage means (7) for storing frame data output from the frame generation unit (5), and an IF-THEN type production rule that describes drawing-specific constraints. A knowledge base that stores multiple information (8) and an inference engine that executes production rules (9)
and a frame using the contents of the knowledge base (8) above.
A CAD data automatic layer recognition system using knowledge processing, characterized in that it classifies abstract frame data stored in a data storage means (7) and converts the classification results into a CAD data format.
(2)上記フレーム・データ生成部(5)は、ベクトル
・データ記憶手段(7)に格納されているベクトル表現
の図面構成データを面、線、点、シンボルの4つの図形
要素に分類すると共に、近隣、包含、外接、内接、交差
および部分と言う6つの関係概念を用いて図形要素間の
関係を抽出するよう構成されている ことを特徴とする特許請求の範囲第(1)項記載の知識
処理によるCADデータ自動レイヤ認識システム。
(2) The frame data generation unit (5) classifies the vector representation drawing configuration data stored in the vector data storage unit (7) into four graphic elements: planes, lines, points, and symbols. Claim 1 is characterized in that the system is configured to extract relationships between graphical elements using six relationship concepts: , neighborhood, inclusion, circumscription, inscription, intersection, and part. CAD data automatic layer recognition system based on knowledge processing.
JP5506687A 1987-03-10 1987-03-10 Automatic layer recognizing system for cad data based on knowledge processing Pending JPS63220370A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5506687A JPS63220370A (en) 1987-03-10 1987-03-10 Automatic layer recognizing system for cad data based on knowledge processing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5506687A JPS63220370A (en) 1987-03-10 1987-03-10 Automatic layer recognizing system for cad data based on knowledge processing

Publications (1)

Publication Number Publication Date
JPS63220370A true JPS63220370A (en) 1988-09-13

Family

ID=12988317

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5506687A Pending JPS63220370A (en) 1987-03-10 1987-03-10 Automatic layer recognizing system for cad data based on knowledge processing

Country Status (1)

Country Link
JP (1) JPS63220370A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7181422B1 (en) * 2000-10-20 2007-02-20 Tranquilmoney, Inc. Segregation and management of financial assets by rules

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7181422B1 (en) * 2000-10-20 2007-02-20 Tranquilmoney, Inc. Segregation and management of financial assets by rules

Similar Documents

Publication Publication Date Title
Dey et al. Defining and computing curve-skeletons with medial geodesic function
Patrick et al. Visual dataflow modelling: a comparison of three systems
JPH05500874A (en) Polygon-based method for automatic extraction of selected text in digitized documents
JP2718485B2 (en) Character recognition method
Xiaogang et al. An online composite graphics recognition approach based on matching of spatial relation graphs
Boyer et al. GUEST EDITORS'INTRODUCTION: Perceptual Organization in Computer Vision: Status, Challenges, and Potential
Pavlidis Structural pattern recognition: Primitives and juxtaposition relations
WO2024051498A1 (en) Polygon correction method and apparatus and polygon generation method and apparatus, electronic device, and computer readable storage medium
Jiang et al. Recognizing vector graphics without rasterization
CN103065009B (en) Intelligent design system and method of traffic sign lines
Henderson Analysis of engineering drawings and raster map images
Manandhar et al. Magic layouts: Structural prior for component detection in user interface designs
Yang et al. Street Layout Design via Conditional Adversarial Learning
Liu et al. Online Chinese character recognition using attributed relational graph matching
Chen et al. Automatic data capture for geographic information systems
JPS63220370A (en) Automatic layer recognizing system for cad data based on knowledge processing
Jorge Parsing adjacency grammars for calligraphic interfaces
Liu et al. Chinese document layout analysis based on adaptive split-and-merge and qualitative spatial reasoning
Farrugia et al. A language for representing and extracting 3D geometry semantics from paper-based sketches
Vasin et al. Geometric modeling of raster images of documents with weakly formalized description of objects
Chen et al. Holo-extraction of information from paper drawings for 3D reconstruction
Zhao Handsketch-based diagram editing
Wu et al. Improved Faster R-CNN for the Detection Method of Industrial Control Logic Graph Recognition
Chuang et al. Using subgraph isomorphisms to recognize and decompose boundary representation features
Lu et al. Panoptic-DLA: Document Layout Analysis of Historical Newspapers Based on Proposal-Free Panoptic Segmentation Model