JPH01119874A - Drawing recognizing device - Google Patents

Drawing recognizing device

Info

Publication number
JPH01119874A
JPH01119874A JP27760887A JP27760887A JPH01119874A JP H01119874 A JPH01119874 A JP H01119874A JP 27760887 A JP27760887 A JP 27760887A JP 27760887 A JP27760887 A JP 27760887A JP H01119874 A JPH01119874 A JP H01119874A
Authority
JP
Japan
Prior art keywords
line
shape
shape line
label
elements
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
JP27760887A
Other languages
Japanese (ja)
Inventor
Motohiro Matsuzaka
松坂 基弘
Mayumi Daikuya
大工谷 まゆみ
Nobuaki Sakamoto
信明 坂本
Hideo Kada
秀夫 加田
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP27760887A priority Critical patent/JPH01119874A/en
Publication of JPH01119874A publication Critical patent/JPH01119874A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To detect a line cut part and to connect it by obtaining the candidate of the line cut part on a shape line beforehand, discriminating it from a line segment with characteristics for the shape line, and performing a labeling and a propagation processing. CONSTITUTION:Two opening end points to approximate in a prescribed distance are detected, a linear element to be connected to them is registered as the shape line cut candidate, and a shape line cut candidate label is added. Next, the linear element obviously different from the shape line is extracted, and a non-shape line label is added. Next, the processing to propagate the non-shape line label for the linear element to which the label is not added is performed, thereafter, the processing to propagate the shape line cut candidate label for the linear element, to which the label is not added, is performed. Further, based on the characteristics on the lines which the shape line and the non-shape line, the shape line is extracted. Finally, trailing is started from the linear element which is obviously not the shape line, and the linear element to constitute the respective types of symbols is extracted, and the symbol composed of the series of the linear elements which have been extracted is recognized.

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、形状を表す線図形と、形状の寸法を表すため
の各種シンボルを構成する線図形が混在する図面データ
において、形状線上に線切れが発生している場合にも、
ループを成す形状線を抽出することができ、また、形状
の寸法を表すための各種シンボルを抽出、認識すること
ができる図面認識装置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION Field of Industrial Application The present invention provides a method for detecting line breaks on shape lines in drawing data in which line figures representing a shape and line figures constituting various symbols for expressing the dimensions of the shape coexist. Even if it is occurring,
The present invention relates to a drawing recognition device that is capable of extracting shape lines that form a loop, and is also capable of extracting and recognizing various symbols for representing the dimensions of shapes.

従来の技術 従来の図面認識装置には、スキャナがら入力された機械
部品図面の画像データより、ループを成す形状線を抽出
するとともに、寸法線、寸法補助線、引出し線および破
線等の各種シンボルを抽出、認識するシステムがある。
2. Description of the Related Art Conventional drawing recognition devices extract loop-forming lines from image data of machine parts drawings input through scanners, and also extract various symbols such as dimension lines, dimension extension lines, leader lines, and dashed lines. There is a system to extract and recognize it.

以下に、従来例における形状線ループおよび各種シンボ
ルの抽出、認識手法を示す。
Below, methods for extracting and recognizing shape line loops and various symbols in the conventional example will be described.

(1)入力された画像データ中の文字を除く線図形に対
して細線化処理を行い、線要素に近似符号化する。
(1) Thinning processing is performed on line figures excluding characters in the input image data, and approximate encoding is performed into line elements.

(2)開放端点を有する短い線要素を抽出し、寸法線の
矢印図形を認識する。
(2) Extract short line elements with open end points and recognize arrow shapes of dimension lines.

(3)(2)で求めた矢印図形より、矢印の軸に相当す
る線要素を直線的に追跡して、寸法線図形を抽出する。
(3) From the arrow figure obtained in (2), a dimension line figure is extracted by linearly tracing the line element corresponding to the axis of the arrow.

この場合、追跡を終了する条件は、他方の矢印図形に到
達するか、開放端点に到達するか、のいずれかである。
In this case, the condition for terminating tracking is either reaching the other arrow figure or reaching an open end point.

(4)矢印図形以外で、両端が開放端点である直線要素
を抽出し、これを寸法補助線とする。
(4) Extract a straight line element other than an arrow shape whose both ends are open end points, and use this as a dimension extension line.

(5)残された線要素のうち、閉図形を構成する線要素
を、形状線として抽出する。
(5) Among the remaining line elements, line elements constituting a closed figure are extracted as shape lines.

(6)形状線に接続している開放端点を有する短い線要
素を破線の候補とし、これらの中で直線上で対を成すも
のを破線として抽出する。
(6) Short line elements having open end points that are connected to the shape line are considered as dashed line candidates, and those that form a pair on a straight line are extracted as dashed lines.

(例えば、図面読取装置TO8GRAPH5部品図面へ
の応用(1)、(2) 情報処理学会第33口金国大会
予稿集、5S−2〜3.1986)発明が解決しようと
する問題点 従来例における手法では、次のような問題点がある。
(For example, application to drawing reading device TO8GRAPH5 parts drawings (1), (2) Information Processing Society of Japan 33rd National Conference Proceedings, 5S-2~3.1986) Problems to be solved by the invention Techniques in conventional examples Then, there are the following problems.

(1)従来例のように、図面をスキャナがら入力するシ
ステムでは、入力図面の品質やスキャナ入力時の2値化
のしきい値の影響等により、入力後の画像データ上に線
切れが発生し易い。従来例では、前記の線切れが形状線
上に発生することにより閉ループを成さない場合には、
前記形状線を抽出することができない。
(1) In conventional systems where drawings are input using a scanner, line breaks may occur on the input image data due to the quality of the input drawings or the influence of the binarization threshold during scanner input. Easy to do. In the conventional example, when the line break occurs on the shape line and a closed loop is not formed,
The shape line cannot be extracted.

(2)従来例では、残された線分中より閉ループを成す
ものを形状線として抽出する手法を採っている。このた
め、実際には形状線上に線切れが発生していない場合で
も、例えば、真の形状線上に、スキャナ入力時に発生す
るノイズや細線化処理により発生するヒゲが矢印と同様
のパターンで出現した場合、形状線の一部が寸法線とし
て抽出されるため、形状線を抽出できないことがある。
(2) In the conventional example, a method is adopted in which lines forming a closed loop are extracted from the remaining line segments as shape lines. For this reason, even if there are no line breaks on the shape line, for example, whiskers caused by noise generated during scanner input or line thinning processing may appear on the true shape line in a pattern similar to the arrow. In this case, a part of the shape line is extracted as a dimension line, so the shape line may not be extracted.

(3)細線化処理の影響により、特に、複数の線分が浅
い角度で交差する箇所では、複数のシンボル構成要素を
兼ねる線要素(以降、多義性線要素と呼ぶ)が出現する
。この多義性線要素は、1番目のシンボルを分離、抽出
する際に除かれるために、2番目以降のシンボルは途中
で分断される=4− ことになり、抽出できない結果となる。また、矢印の短
い線要素も細線化処理の影響により出現しないことがあ
り、矢印図形より矢印の軸を追跡して寸法線とする従来
手法では抽出できない場合がある。
(3) Due to the influence of the line thinning process, line elements (hereinafter referred to as ambiguous line elements) that also serve as multiple symbol constituent elements appear, particularly at locations where multiple line segments intersect at shallow angles. Since this ambiguous line element is removed when the first symbol is separated and extracted, the second and subsequent symbols are divided in the middle =4-, resulting in the inability to extract them. In addition, line elements with short arrows may not appear due to the thinning process, and may not be extracted using the conventional method of tracing the axis of the arrow from the arrow shape to obtain a dimension line.

(4)機械図面のように、多種多様の線図形が任意角度
で記入され、かつ、それら線分が任意箇所で交差するよ
うな図面においては、本来、開放端点であるべき特徴点
上に、他の線分が接触あるいは交差するようにして描か
れることがあり、前記特徴点が開放端点として出現しな
い場合がある。
(4) In drawings such as mechanical drawings in which a wide variety of line figures are drawn at arbitrary angles and where these line segments intersect at arbitrary points, on feature points that should originally be open end points, Other line segments may be drawn so as to touch or intersect, and the feature point may not appear as an open end point.

このために、寸法補助線は両端ともに開放端点であると
する従来例においては、抽出できないことになる。
For this reason, in the conventional example in which both ends of the dimension extension line are open end points, extraction cannot be performed.

問題点を解決するための手段 本発明は、上記問題点を解決するために、一定距離内で
近接する2開放端点に接続する線要素を形状線線切れ候
補として予め登録するとともに形状線線切れ候補ラベル
を付与する形状線線切れ候補ラベル付与処理部と、明ら
かに形状を示す線ではない線要素に対して非形状線ラベ
ルを付与する非形状線ラベル付与処理部と、前記形状線
線切れ候補ラベルと前記非形状線ラベルが重複する場合
、前記形状線線切れ候補ラベルを前記非形状線ラベルに
変更するとともに、前記登録済みの形状線線切れ候補を
削除する形状線線切れ候補削除処理部と、前記の非形状
線ラベルを、ラベル未付与の線要素に対して伝播させる
非形状線ラベル伝播処理部と、前記の形状線線切れ候補
ラベルを、ラベル未付与の線要素に対して伝播させる形
状線線切れ候補ラベル伝播処理部と、前記の非形状線ラ
ベルおよび形状線線切れ候補ラベルが付与または伝播さ
れていない総ての線要素に対して形状線ループ候補ラベ
ルを付与する形状線ループ候補ラベル付与処理部と、形
状線および非形状線上の特徴に基づいて、図面内の整合
を図りながら形状線ループを抽出する形状線ループ抽出
処理部と、形状線上に線切れが発生している場合に、線
切れ箇所を検出、接続する形状線線切れ接続処理部と、
明らかに形状線ではない線要素から追跡を開始し、形状
線以外の各種シンボルを構成する複数の線要素を抽出す
るシンボル構成線要素抽出部と、前記抽出済みの一連の
線要素を認識するシンボル認識部という構成を備えたも
のである。
Means for Solving the Problems In order to solve the above-mentioned problems, the present invention registers in advance a line element that connects two open end points close to each other within a certain distance as shape line break candidates, and a shape line break candidate label adding processing unit that gives a candidate label; a non-shape line label adding processing unit that gives a non-shape line label to a line element that clearly does not indicate a shape; If the candidate label and the non-shape line label overlap, a shape line break candidate deletion process that changes the shape line break candidate label to the non-shape line label and deletes the registered shape line break candidate. a non-shape line label propagation processing unit that propagates the non-shape line label to unlabeled line elements; and a non-shape line label propagation processing unit that propagates the shape line break candidate label to unlabeled line elements. A shape line break candidate label propagation processing unit to propagate, and a shape to give shape line loop candidate labels to all line elements to which the non-shape line labels and shape line break candidate labels have not been attached or propagated. A line loop candidate labeling processing unit, a shape line loop extraction processing unit that extracts shape line loops while ensuring consistency in the drawing based on features on shape lines and non-shape lines, and a shape line loop extraction processing unit that extracts shape line loops while ensuring consistency in the drawing, a shape line break connection processing unit that detects and connects the line break point when
a symbol component line element extraction unit that starts tracing from a line element that is clearly not a shape line and extracts a plurality of line elements that constitute various symbols other than shape lines; and a symbol that recognizes the series of extracted line elements. It is equipped with a configuration called a recognition section.

作用 本発明は、前記の構成によって、まず、一定距離内で近
接する2開放端点を検出し、それらに接続する線要素を
形状線線切れ候補として登録するとともに、形状線線切
れ候補ラベルを付与する。
According to the above configuration, the present invention first detects two open end points that are close to each other within a certain distance, registers the line elements connected to them as shape line break candidates, and assigns a shape line break candidate label. do.

次に、明らかに形状線ではない線要素を抽出し、非形状
線ラベルを付与する。その際、形状線線切れ候補ラベル
と非形状線ラベルが重複する線要素に対しては、形状線
線切れ候補から削除するとともに、形状線線切れ候補ラ
ベルを非形状線ラベルに変更する。次に、非形状線ラベ
ルをラベル未付与の線要素に対して伝播させる処理を行
い、その後、形状線線切れ候補ラベルをラベル未付与の
線要素に対して伝播させる処理を行う。前記のラベル伝
播処理によってもラベルが未付与である総ての線要素に
対して形状線ループ候補ラベルを付与する。さらに、形
状線および形状線でない線上の特徴に基づいて、形状線
を抽出する。なお、形状線上に線切れが発生している場
合には、線切れ箇所を検出し、接続処理を行う。最後に
、明らかに形状線ではない線要素から追跡を開始し、形
状線以外の各種シンボルを構成する複数の線要素を抽出
する処理を行い、前記抽出済みの一連の線要素が構成す
るシンボルを認識する。
Next, line elements that are clearly not shape lines are extracted and given non-shape line labels. At this time, a line element for which a shape line break candidate label and a non-shape line label overlap is deleted from the shape line break candidates, and the shape line break candidate label is changed to a non-shape line label. Next, a process is performed to propagate the non-shape line label to unlabeled line elements, and then a process is performed to propagate the shape line break candidate label to unlabeled line elements. Shape line loop candidate labels are assigned to all line elements to which no labels have been assigned even through the label propagation process. Furthermore, a shape line is extracted based on features on the shape line and a line that is not a shape line. Note that if a line break occurs on the shape line, the line break point is detected and connection processing is performed. Finally, tracing is started from a line element that is clearly not a shape line, a process is performed to extract multiple line elements that constitute various symbols other than shape lines, and a symbol composed of the series of extracted line elements is extracted. recognize.

以上により、形状線上に線切れが発生している場合にも
、形状線ループを抽出することができ、また、形状の寸
法を表すための各種シンボルを認識することができる。
As described above, even when a line break occurs on the shape line, a shape line loop can be extracted, and various symbols representing the dimensions of the shape can be recognized.

実施例 以下、本発明の一実施例を図面を用いて説明する。第1
図に、本発明の図面認識装置の一実施例におけるブロッ
ク図を示す。なお、本実施例では、認識対象図面を機械
図面(2次元加工図面)とする。
EXAMPLE Hereinafter, an example of the present invention will be described with reference to the drawings. 1st
The figure shows a block diagram of an embodiment of the drawing recognition device of the present invention. In this embodiment, the drawing to be recognized is a mechanical drawing (two-dimensional processing drawing).

第1図において、図面データ12は、例えば、前記機械
図面をスキャナより入力して得た画像デ−タに対して、
細線化処理を行った後、線図形上の特徴点である開放端
点および分岐点を抽出するとともに、前記特徴点間を結
ぶ前記線図形を直線、円、円弧よりなる線要素で近似符
号化し、前記特徴点および線要素をグラフ構造で表した
ものである。なお、以降、前記特徴点をノード、前記線
要素をエレメント、と呼ぶ。
In FIG. 1, drawing data 12 is, for example, image data obtained by inputting the machine drawing using a scanner.
After performing the line thinning process, extract open end points and branch points that are feature points on the line figure, and approximately encode the line figure connecting the feature points with line elements consisting of straight lines, circles, and arcs, The feature points and line elements are expressed in a graph structure. Note that hereinafter, the feature points will be referred to as nodes, and the line elements will be referred to as elements.

本実施例の図面認識装置1は、以上のようにして抽出さ
れたエレメント、およびノードのデータを基に、図面内
の形状線を抽出するものである。
The drawing recognition device 1 of this embodiment extracts shape lines in a drawing based on the data of the elements and nodes extracted as described above.

抽出結果は、例えば、モニタ13により確認することが
できる。
The extraction result can be confirmed on the monitor 13, for example.

上記のように構成された一実施例の図面認識装置におい
て、以下その動作を各処理部毎に説明する。
In the drawing recognition apparatus of one embodiment configured as described above, the operation thereof will be explained for each processing section below.

(1)形状線線切れ候補ラベル付与処理部2一般に、形
状線は濃い太線で描かれるため、薄い細線で記入される
寸法線や寸法補助線に比べ、図面データ上における線切
れの発生頻度は極めて低い。しかも、形状線上の線切れ
は、そのほとんどが図面上における線分の消去跡に交差
して描かれた場合に発生するものであり、筆記具の線幅
程度である。従って、形状線上に発生する線切れは、一
定間隔Lc以下であると考えられる。第2図に、本実施
例で対処する形状線の線切れパターンの例を示す。第2
図(a)、(b)および(c)に示す、それぞれの2開
放端点間距離LL、L2およびL3は、いずれも前記の
一定間隔Lc以下である。また、同図(d)に示すよう
に、線切れが連続して発生するような場合においても、
それぞれの2開放端点間距離L4およびL5が前記一定
間隔Lc以下であればよい。
(1) Shape line line break candidate labeling processing unit 2 Generally, shape lines are drawn as thick, thick lines, so line breaks occur less frequently on drawing data than dimension lines and dimension extension lines that are drawn as thin, thin lines. Extremely low. Moreover, most line breaks on the shape line occur when the line is drawn across the erased trace of the line segment on the drawing, and are approximately the width of the line of a writing instrument. Therefore, it is considered that the line breaks that occur on the shape line are equal to or less than the constant interval Lc. FIG. 2 shows an example of a line break pattern of a shape line handled in this embodiment. Second
The distances LL, L2, and L3 between the two open end points shown in FIGS. (a), (b), and (c) are all equal to or less than the above-mentioned constant distance Lc. In addition, even in cases where line breaks occur continuously, as shown in Figure (d),
It is sufficient that the distances L4 and L5 between the two open end points are equal to or less than the above-mentioned constant distance Lc.

本処理部では、上記条件を満たす開放端点ノードに接続
するエレメントの組合せを、形状線線切れ候補として抽
出し、形状線線切れ候補リス1へに格納するとともに、
該当エレメントに形状線線切れ候補ラベルを付与する。
This processing unit extracts combinations of elements connected to open end nodes that satisfy the above conditions as shape line break candidates, and stores them in the shape line break candidate list 1.
A shape line break candidate label is assigned to the corresponding element.

なお、第3図に示すように、着目している開放端点ノー
ドN1に対して、上記条件を満たす開放端点ノードが複
数存在する場合には、総てのエレメントの組み合せ(L
l、L2)、(LL、L3)および(L2.L3)を形
状線線切れ候補として抽出する。
As shown in FIG. 3, if there are multiple open end nodes satisfying the above conditions for the open end node N1 of interest, all element combinations (L
l, L2), (LL, L3), and (L2.L3) are extracted as shape line break candidates.

(2)非形状線ラベル付与処理部3 本実施例の図面認識装置では、明らかに形状線ではない
エレメントにラベル付けを行い、そのラベルを伝播をさ
せることによって、最後までラベルが伝播されずに残る
ニレメンI・を形状線ループ候補としている。本処理部
では、まず、機械図面中の非形状線(寸法線、寸法補助
線、−点鎖線、引出し線等)を抽出し、非形状線ラベル
を付与する処理を行う。
(2) Non-shape line labeling processing unit 3 In the drawing recognition device of this embodiment, by labeling an element that is clearly not a shape line and propagating the label, the label is not propagated until the end. The remaining Niremen I. is considered a shape line loop candidate. This processing section first extracts non-shaped lines (dimension lines, dimension extension lines, -dot-dashed lines, leader lines, etc.) in the mechanical drawing, and performs a process of assigning non-shaped line labels.

一般に、機械図面中の非形状線には、開放端点を有する
ものが多い。本処理部では、上述の明らかに形状線では
ないエレメントのうち、端線エレメント(開放端点ノー
ドに接続するエレメントのうち、形状線線切れ候補ラベ
ルが付与されていないもの)に対して、以下の要領で非
形状線ラベルを付与する処理を行う。
Generally, many non-shaped lines in mechanical drawings have open end points. In this processing unit, among the elements mentioned above that are clearly not shape lines, the following is applied to end line elements (elements connected to open end point nodes that are not assigned shape line break candidate labels). Perform the process of adding a non-shape line label according to the procedure.

[着目] 総ての開放端点ノード [条件] 着目開放端点ノードに接続するエレメントに、形状線線
切れ候補ラベルが付与されていないこと。
[Focus] All open end nodes [Conditions] No shape line break candidate label is assigned to the element connected to the open end node of interest.

[処理] 該当エレメントに対して非形状線ラベルを付与する。[process] Add a non-shape line label to the corresponding element.

(3)形状線線切れ候補削除処理部4 非形状線ラベル付与処理部3で述べた非形状線ラベルの
付与処理中に、第4図に示すような状況が発生すること
が考えられる。例えば、第4図(a)において、エレメ
ントの組み合せ(LL、L2)は、形状線線切れ候補ラ
ベル付与処理部2の処理によって、形状線線切れ候補と
して既に登録されているにも係わらず、一方の開放端点
N3に着目することにより、非形状線ラベルとしての条
件も満たず場合である。本処理部では、このような状況
に際して、非形状線ラベルを優先視し、L2に付与した
形状線線切れ候補ラベルを非形状線ラベルに付は換える
。これに伴い、相手側のニレメントL1に対しても、同
様にラベルの変更を行うとともに、形状線線切れ候補リ
スト内のエレメントの組み合せ(Ll、L2)の情報を
削除する。
(3) Shape Line Break Candidate Deletion Processing Unit 4 During the non-shape line labeling processing described in the non-shape line labeling processing unit 3, a situation as shown in FIG. 4 may occur. For example, in FIG. 4(a), although the element combination (LL, L2) has already been registered as a shape line break candidate by the process of the shape line break candidate labeling processing unit 2, By focusing on one open end point N3, we can see that the condition for a non-shape line label is also not satisfied. In such a situation, this processing section gives priority to the non-shape line label and replaces the shape line break candidate label assigned to L2 with the non-shape line label. Along with this, the label is similarly changed for the second element L1 on the other side, and the information on the combination of elements (L1, L2) in the shape line break candidate list is deleted.

ただし、第4図(b)に示すように、ニレメン)L2が
複数のエレメントと線切れ候補の組み合せを構成してい
る場合には、相手側エレメントL1およびL3の形状線
線切れ候補ラベルを変更せず、形状線線切れ候補リスト
内の上記該当エレメントL2を含む組合せの登録のみを
削除する。
However, as shown in FIG. 4(b), if L2 constitutes a combination of multiple elements and line break candidates, the shape line break candidate labels of the other elements L1 and L3 are changed. Instead, only the registration of the combination including the corresponding element L2 in the shape line break candidate list is deleted.

(4)非形状線ラベル伝播処理部5 本処理部では、非形状線ラベル付与処理部3でラベル付
けした非形状線ラベルの伝播処理を以下の要領で行うこ
とにより、形状線ループ候補の絞り込みを行う。
(4) Non-shape line label propagation processing unit 5 This processing unit narrows down shape line loop candidates by performing the propagation process of the non-shape line labels labeled by the non-shape line labeling processing unit 3 in the following manner. I do.

[着目] 総ての開放端点以外のノード(以降、内部ノードと呼ぶ
) [条件] (イ)非形状線ラベル、あるいは下記[処理]で与えら
れる非形状線伝播ラベル付与エレメントが1本以上接続
していること。
[Focus] All nodes other than open end points (hereinafter referred to as internal nodes) [Conditions] (a) One or more non-shaped line labels or non-shaped line propagation labeling elements given by the following [processing] are connected Doing things.

(ロ)非形状線および非形状線伝播ラベル以外のラベル
付与エレメントが1本のみ接続していること。
(b) Only one labeling element other than non-shaped lines and non-shaped line propagation labels is connected.

(ハ)上記(ロ)該当のエレメントが、着目内部ノート
に端点て接続していること。
(c) The element corresponding to (b) above must be connected to the internal note of interest at the end point.

[処理コ 上記[条件]に該当するエレメントに、非形状線伝播ラ
ベルを付与する。
[Processing] Add a non-shape line propagation label to the element that meets the above [condition].

上記処理により、非形状線ラベルが伝播されるパターン
の一部を、第5図に示す。第5図(a)。
FIG. 5 shows a part of the pattern in which the non-shape line label is propagated through the above process. Figure 5(a).

(b)、(c)において、着目内部ノードN1に接続す
るエレメントEl、E2およびE3は、非形状線ラベル
あるいは非形状線伝播ラベルが付与されており、着目内
部ノードN1に端点て接続するエレメントL1には、前
記いずれのラベルも付与されていないものとする。この
ように、非形状線ばかりが接続するノードに、1本のみ
端点て接続するエレメントは形状線であり得ないため、
前記エレメントL1に非形状線伝播ラベルが伝播される
ことになる。
In (b) and (c), elements El, E2, and E3 connected to the internal node N1 of interest are given non-shape line labels or non-shape line propagation labels, and elements connected to the internal node N1 of interest at their end points. It is assumed that none of the above labels is attached to L1. In this way, an element that connects only one end point to a node that is connected only by non-shape lines cannot be a shape line, so
A non-shape line propagation label will be propagated to the element L1.

ただし、第6図に示すように、上記1条件]に該当する
エレメントL2が、形状線線切れ候補ラベル付与処理部
2により、既に形状線線切れ候補ラベルを有する場合は
、形状線線切れ候補削除処理部4で述べたように、形状
線線切れ候補ラベルを非形状線ラベルに変更し、形状線
線切れ候補リストより削除する。
However, as shown in FIG. 6, if the element L2 that corresponds to the above-mentioned condition 1 already has a shape line breakage candidate label by the shape line breakage candidate label assignment processing unit 2, the shape line breakage candidate label As described in the deletion processing unit 4, the shape line break candidate label is changed to a non-shape line label and deleted from the shape line break candidate list.

なお、本処理はアルゴリズムの簡単のために、エレメン
トの追跡処理を行わず、各内部ノードに対して上述の処
理を行うものである。従って、各内部ノードの着目順序
によっては、ラベルの伝播が完全に行われない場合が考
えられる。そこで、本処理では、全内部ノードに対して
上記処理を行う毎に、ラベルの伝播が実際に行われたか
否かを調べ、1箇所でも伝播が行われた場合には、再度
、全内部ノードに対して上記処理を行う。このようなサ
イクルをラベルの伝播が全く行われなくなるまで繰返し
ている。
In order to simplify the algorithm, this processing does not perform element tracking processing, but performs the above-mentioned processing on each internal node. Therefore, depending on the order of focus on each internal node, it is possible that the label propagation may not be completed completely. Therefore, in this process, each time the above process is performed for all internal nodes, it is checked whether label propagation has actually been performed, and if propagation has been performed at even one location, the process is repeated again for all internal nodes. The above processing is performed on . This cycle is repeated until no label propagation occurs at all.

(5)形状線線切れ候補ラベル伝播処理部6本処理部で
は、形状線線切れ候補ラベル付与処理部2で付与された
形状線線切れ候補ラベルの伝播処理を、以下の要領で行
う。
(5) Shape line break candidate label propagation processing unit 6 This processing unit performs the propagation process of the shape line break candidate label assigned by the shape line break candidate label assignment processing unit 2 in the following manner.

[着目] 総ての内部ノード [条件] (イ)形状線線切れ候補ラベル、あるいは下記[処理]
で与えられる形状線線切れ候補伝播ラベルの付与エレメ
ントが1本以上接続していること。
[Focus] All internal nodes [Conditions] (a) Shape line break candidate labels or the following [Processing]
One or more elements to which the shape line break candidate propagation label given by is connected.

(ロ)非形状線、非形状線伝播、形状線線切れ候補、お
よび形状線線切れ候補伝播ラベルが付与されていないエ
レメントが1本のみ接続していること。
(b) Only one element to which a non-shape line, non-shape line propagation, shape line break candidate, or shape line break candidate propagation label is attached is connected.

(ハ)上記(ロ)該当のエレメントが着目ノードに端点
て接続していること。
(c) The element corresponding to (b) above is connected to the node of interest at the end point.

[処理] 上記[条件]に該当するエレメントに、形状線線切れ候
補伝播ラベルを付与する。
[Processing] A shape line break candidate propagation label is assigned to the element that meets the above [condition].

なお、本処理も、非形状線ラベル伝播処理部5と同様に
、上記処理はラベルの伝播が全く行われなくなるまで繰
返される。
Note that in this process as well, similarly to the non-shape line label propagation processing section 5, the above process is repeated until no label propagation is performed at all.

(6)形状線ループ候補抽出処理部7 以上のように、まず、確実に外形線ではない総てのエレ
メントに対して、非形状線ラベルの付与および伝播を行
った後に、形状線上の線切れの可能性がある総てのエレ
メントに対しても、形状線線切れ候補ラベルの付与およ
び伝播を行った。従って、図面中の総ての開放端点から
開始した上記の処理により、ループを成さない総てのエ
レメントに対しては、何等かのラベルが付与されたこと
になる。本処理部では、まず、この時点でいずれのラベ
ルも付与されていない総てのエレメントを形状線ループ
候補とみなし、形状線ループ候補ラベルを付与する。従
って、第7図(a)に示すように、形状線上に線切れが
ない場合は、真の形状線を構成するエレメントは総て(
C)の領域に含まれることになる。(C)の領域の残り
の部分には、巣、あるいは寸法線や寸法補助線により偶
発する閉ループエレメント等が含まれている。これらは
、形状線ループ抽出処理部8により、次第に判明し除去
されてゆくものである。一方、第7図(b)に示すよう
に、形状線上に線切れが発生している場合は、真の形状
線を構成するエレメントは(B)および(C)の領域に
含まれていることになる。このような場合にも、先と同
様、形状線ループ抽出処理部8の処理経過に伴い、次第
にその属性を明確にしてゆくアプローチを採る。
(6) Shape line loop candidate extraction processing unit 7 As described above, first, after assigning and propagating non-shape line labels to all elements that are definitely not contour lines, Shape line break candidate labels were assigned and propagated to all elements with the possibility of . Therefore, by the above process starting from all the open end points in the drawing, some sort of label has been given to all the elements that do not form a loop. In this processing section, first, all elements to which no labels have been assigned at this point are regarded as shape line loop candidates, and are assigned shape line loop candidate labels. Therefore, as shown in FIG. 7(a), if there is no line break on the shape line, all the elements constituting the true shape line are (
It will be included in area C). The remainder of the region (C) contains nests, closed loop elements, etc. that are incidental to dimension lines and extension lines. These are gradually identified and removed by the shape line loop extraction processing section 8. On the other hand, as shown in FIG. 7(b), if a line break occurs on the shape line, the elements constituting the true shape line are included in the areas (B) and (C). become. In such a case, as before, an approach is taken in which the attributes are gradually clarified as the process of the shape line loop extraction processing section 8 progresses.

上記までのラベル付けおよび伝播処理の結果、形状線ル
ープ候補および形状線線切れ候補となるエレメント群が
抽出できた。これらのエレメントは、線切れ候補箇所を
論理的に接続しているものと見なせば、開放端点を全く
持たないエレメント群である。従って、これらのエレメ
ント群は、分岐点を持たず閉ループを構成するパスと、
ある分岐点から他の分岐点に至るパスとに大別される。
As a result of the labeling and propagation processing described above, element groups that are shape line loop candidates and shape line break candidates were extracted. These elements are a group of elements that do not have any open end points if the line break candidate locations are considered to be logically connected. Therefore, these element groups are divided into paths that form a closed loop with no branch points, and
Paths are broadly divided into paths from one branch point to another.

なお、このパスをループ候補エレメント、分岐点をルー
プ候補ノードと呼ぶ。
Note that this path is called a loop candidate element, and the branch point is called a loop candidate node.

次に、ループ候補エレメントおよびループ候補ノードを
抽出する処理を、以下の要領で行う。
Next, processing for extracting loop candidate elements and loop candidate nodes is performed in the following manner.

[着目コ 総てのエレメント し条件] (イ)形状線ループ候補、形状線線切れ候補、あるいは
形状線線切れ候補伝播ラベルのいずれかが付与されてい
ること。
[Conditions for all elements of interest] (a) Either a shape line loop candidate, a shape line break candidate, or a shape line break candidate propagation label is assigned.

(ロ)下記[処理](ロ)において、処理済みフラグが
セットされていないこと。
(b) In [Processing] (b) below, the processed flag must not be set.

[処理] (イ)上記着目エレメントの両側に、上記ラベルのいず
れかを有するエレメントを追跡、抽出する。
[Processing] (a) Track and extract elements that have either of the above labels on both sides of the above element of interest.

追跡は、初めの着目エレメントに戻るか、あるいは追跡
中のエレメントを除く上記ラベルを有するエレメントが
複数接続するノード(ループ候補ノードとする)に到達
するまで行う。追跡、抽出された一連のエレメント群を
ループ候補エレメントとする。
Tracking is continued until the element returns to the first element of interest or reaches a node (referred to as a loop candidate node) to which a plurality of elements having the above-mentioned labels other than the element being tracked are connected. A series of traced and extracted elements is set as a loop candidate element.

(ロ)上記[処理](イ)で抽出したパスを構成する総
てのエレメントに処理済みフラグをセ・ン卜する。
(b) Set a processed flag on all elements constituting the path extracted in [Processing] (b) above.

(7)形状線ループ抽出処理部 8 本処理部では、前記の形状線ループ候補抽出処理部7で
求めたループ候補エレメント毎に、真の形状線であるか
否かを判定する処理を行い、形状−19= 線ループを決定、抽出する。このために、本実施例では
、次の特徴に着目する。
(7) Shape line loop extraction processing unit 8 This processing unit performs a process of determining whether or not each loop candidate element obtained by the shape line loop candidate extraction processing unit 7 is a true shape line, Shape-19= Determine and extract line loops. To this end, this embodiment focuses on the following features.

○屈曲点ノード 2本のエレメントのみが、互いの端点て、一定値以上の
開き角度をもって接続するノードを屈曲点ノードと呼ぶ
。屈曲点ノードは、第8図(a)および(b)に示すよ
うに、形状線上に多く出現するものであり、形状線を特
定するうえで、大きな特徴を与える。なお、機械図面中
には、第8図(C)に示すように、引出し線上にも出現
するが、これに接続する2エレメントは非形状線および
非形状線伝播ラベルが付与されており、容易に区別がで
きる。
○Inflection Point Node A node in which only two elements are connected with an opening angle of a certain value or more at their end points is called an inflection point node. As shown in FIGS. 8(a) and 8(b), bending point nodes often appear on the shape line, and provide a significant feature in identifying the shape line. In the machine drawing, as shown in Figure 8 (C), it also appears on the leader line, but the two elements connected to this are given non-shape lines and non-shape line propagation labels, so they can be easily identified. A distinction can be made between

○準屈曲点ノート 細線化処理を施した画像データにおいては、第9図(a
)および(b)に示すように、本来の屈曲点ノードにヒ
ゲ状の線要素が発生する場合があり、このようなノード
を準屈曲点ノードと呼ぶ。
○Semi-inflection point note In the image data that has been subjected to line thinning processing, Fig. 9 (a
) and (b), whisker-like line elements may occur at the original bending point nodes, and such nodes are called quasi-bending point nodes.

準屈曲点ノードは、前記屈曲点ノードとほぼ同様の特徴
を与える。
Quasi-inflection point nodes provide substantially similar characteristics to the inflection point nodes.

○矢印側面方向接続ノード 第10図(a)、(b)、  (c)および(d)に示
すように、開放端点を有する斜め方向の矢印と交差する
ループ候補エレメント、あるいは第10図(e)、(f
)および(g)に示すように、開放端点を有する水平方
向エレメントを介して接続する斜め方向の矢印と交差す
るループ候補エレメントは、明らかに形状線である。一
方、例えば、第10図(h)に示すように、ループ候補
エレメント群トるエレメント上に矢尻が存在する場合、
明らかにこのエレメントを含むループ候補エレメントは
、形状線ではない。このように、矢印は寸法線や寸法補
助線により偶発するループを検出するうえで、非常に重
要な手掛かりとなる。しかし、細線化処理を施した画像
データにおいては、矢尻の一部が失われる場合や、逆に
ノイズあるいは前記のヒゲ状エレメントの発生により、
矢印と類似した形状を成す場合があり、その取扱いには
注意を要する。
○Arrow side direction connection node As shown in FIGS. 10(a), (b), (c) and (d), a loop candidate element that intersects with a diagonal arrow having an open end point, or as shown in FIG. 10(e) ), (f
) and (g), loop candidate elements intersecting diagonal arrows connecting via horizontal elements with open endpoints are clearly shape lines. On the other hand, for example, as shown in FIG. 10(h), if an arrowhead exists on an element that is in the loop candidate element group,
Clearly, the loop candidate element that includes this element is not a shape line. In this way, arrows are very important clues for detecting accidental loops caused by dimension lines and extension lines. However, in image data that has been subjected to line thinning processing, part of the arrowhead may be lost, or conversely, due to the occurrence of noise or the above-mentioned whisker-like elements,
It may have a shape similar to an arrow, so care must be taken when handling it.

本処理部では、第10図(a)〜(g)に示す矢印を確
実に抽出するために、開放端点を有する斜め方向のエレ
メント、および開放端点を有する水平方向エレメントを
介して接続する斜め方向のエレメントを、ループ候補エ
レメントが接続するノードに到達するまで追跡し、前記
ノードの近辺に矢尻が存在することを確認したうえで、
前記のノードを矢印側面接続ノードとして抽出する。
In this processing section, in order to reliably extract the arrows shown in FIGS. 10(a) to (g), diagonal elements with open end points and diagonal elements connected via horizontal elements with open end points are used. After tracing the element until it reaches the node to which the loop candidate element connects, and confirming that the arrowhead exists near the node,
The above node is extracted as an arrow side connection node.

O矢印順方向接続ノード 第10図(h)に示すような矢尻が、ループ候補エレメ
ント上に存在する場合、前記矢尻が接続するノードを、
矢印率方向接続ノードと呼ぶ。前述のように、細線化処
理を施して得た画像データにおいては、矢印順方向ノー
ドを有するルーズ候補エレメントが、必ずしも真の形状
線でないとは限らないが、ループ候補エレメント上に複
数の矢印順方向接続ノードが存在する場合には、形状線
でない可能性が強いということができる。
O Arrow Forward Connection Node When an arrowhead as shown in FIG. 10(h) exists on a loop candidate element, the node to which the arrowhead connects is
It is called an arrow rate direction connection node. As mentioned above, in image data obtained by performing line thinning processing, a loose candidate element having an arrow forward direction node is not necessarily a true shape line, but there are multiple arrow forward direction nodes on a loop candidate element. If a directional connection node exists, there is a strong possibility that it is not a shape line.

O非形状線接続ノード 各ループ候補エレメントに属するエレメント同士が、例
えば第11図(a)および(b)に示すような形態で接
続するノードを、非形状線接続ノードと呼ぶ。即ち、第
11図(a)において、エレメントL1およびL2はル
ープ候補エレメントに属するエレメント、エレメントE
1は非形状線ラベルを有するエレメントであり、エレメ
ントL1およびElは、はぼ直線を成し、また、同図(
b)において、エレメントLlおよびL2はループ候補
エレメントに属するエレメント、ニレメン)Elおよび
E2は非形状線ラベルを有するエレメントであり、エレ
メントLl、ElおよびL2゜E2は、それぞれほぼ直
線を成している。このような非形状線接続ノードが真の
形状線上に出現することは希であり、エレメントLlお
よびL2は形状線でない可能性が強い。ただし、前述の
ように、細線化を施して得た画像データ上では、第11
図(C)に示すようなヒゲ状のエレメントE1が形状線
上のノードに出現することがある。従って、このような
ヒゲ状のエレメントと区別するため、第11図(a>お
よび(b)に示すニレメン 、トE1およびE2は、十
分な長さを有するものとする。
O Non-shape line connection node A node in which elements belonging to each loop candidate element are connected in the form shown in FIGS. 11(a) and (b), for example, is called a non-shape line connection node. That is, in FIG. 11(a), elements L1 and L2 belong to loop candidate elements, and element E
1 is an element having a non-shape line label, and elements L1 and El form a straight line, and in the same figure (
In b), elements Ll and L2 are elements belonging to loop candidate elements, El and E2 are elements having non-shape line labels, and elements Ll, El and L2゜E2 each form a substantially straight line. . It is rare for such a non-shape line connection node to appear on a true shape line, and there is a strong possibility that elements Ll and L2 are not shape lines. However, as mentioned above, the 11th
A whisker-like element E1 as shown in Figure (C) may appear at a node on the shape line. Therefore, in order to distinguish them from such whisker-like elements, the elms E1 and E2 shown in FIGS. 11 (a> and (b)) are assumed to have sufficient length.

○ループ候補エレメント接続方向 第12図(a)に示すように、複数のループ候補エレメ
ントLl、L2およびL3が接続するループ候補ノード
N1において、例えば、2本のループ候補エレメントL
1およびL2が、はぼ直線を成す場合、前述のように、
ループ候補ニレメン)L3は形状線でない可能性が強い
。ただし、第12図(b)に示すように、2組のループ
候補エレメントLay、L2およびL3.L4が、とも
にほぼ直線を成す場合は、いずれの直線成分が形状線で
あるかは断定できない。
○Loop candidate element connection direction As shown in FIG. 12(a), in a loop candidate node N1 to which a plurality of loop candidate elements Ll, L2, and L3 are connected, for example, two loop candidate elements L
When 1 and L2 form a straight line, as mentioned above,
There is a strong possibility that loop candidate L3 is not a shape line. However, as shown in FIG. 12(b), two sets of loop candidate elements Lay, L2 and L3. When both L4 form a substantially straight line, it cannot be determined which straight line component is the shape line.

本処理部では、上記の特徴に着目し、以下の要領で、形
状線ループを抽出する。まず、各ループ候補エレメント
毎に、形状線である度合、および形状線でない度合を計
測する。次に、上記特徴の計測結果を総合的に評価し、
各ループ候補エレメントに対して、確実に形状線である
場合は形状線ループラベル、確実に形状線でない場合は
非形状線ループラベル、を付与する。なお、形状線であ
るか非形状線であるかが曖昧である場合には、無理に区
別を行わず、不明ラベルを付与する。そののち、各ルー
プ候補ノードに着目して、不明ラベルが付与されたルー
プ候補エレメントに対し、図面全体の整合を図りながら
、形状線ループラベルあるいは非形状線ループラベルの
伝播処理を行う。
This processing section focuses on the above characteristics and extracts shape line loops in the following manner. First, for each loop candidate element, the degree to which it is a shape line and the degree to which it is not a shape line is measured. Next, we comprehensively evaluate the measurement results of the above characteristics,
For each loop candidate element, a shape line loop label is given if it is definitely a shape line, and a non-shape line loop label is given if it is definitely not a shape line. Note that if it is ambiguous whether the line is a shape line or a non-shape line, an unknown label is assigned without forcing the distinction. Thereafter, focusing on each loop candidate node, a process of propagating a shape line loop label or a non-shape line loop label is performed for the loop candidate element to which an unknown label has been assigned, while ensuring consistency throughout the drawing.

以下に、上記のラベルを伝播させる手法について述べる
A method for propagating the above labels will be described below.

まず、第13図(a)に示すように、ループ候補ノード
N1に、形状線ループラベルを有する2本のループ候補
エレメントL1およびL2と、不明ラベルを有するL3
が接続する場合、2次元の加工図面においては形状線が
交差することは有り得ないため、ループ候補ニレメン)
・L3は明らかに形状線ではない。従って、L3の不明
ラベルを非形状線ループラベルに変更するとともに、L
3をループ候補エレメントから、N1をループ候補ノー
ドから削除し、ループ候補エレメントL1およびL2を
統合する。なお、この場合、ループ候補ノードN1に、
L3以外にも不明ラベルを有する他のループ候補エレメ
ントが接続していても、扱いは同じである。また、第1
3図(b)に示すように、ループ候補ノードN1に、不
明ラベルを有するループ候補エレメントL3と、非形状
線ループラベルを有するループ候補エレメントL1およ
びL2が接続している場合、形状線が途中で断線するこ
とは有り得ないため、ループ候補エレメントL3は明ら
かに形状線ではない。この場合にも、L3の不明ラベル
を非形状線ループラベルに変更するとともに、Ll、L
2およびL3をループ候補エレメントから、N1をルー
プ候補ノードから、それぞれ削除する。なお、この場合
、ループ候補ノードN1に、LlおよびL2以外にも、
非形状線ループラベルを有する他のループ候補エレメン
トが接続していても構わない。さらに、第13図(c)
に示すように、形状線ループラベルを有するLlと、不
明ラベルを有するL3と、非形状線ループラベルを有す
るL2が接続している場合、やはり形状線が途中で断線
しないことより、L3の不明ラベルを形状線ループラベ
ルに変更するとともに、L2をループ候補エレメントか
ら、N1をループ候補ノードから削除し、ループ候補エ
レメントL1およびL3を統合する。なお、この場合、
ループ候補ノードN1に、L2を含め複数の非形状線ル
ープラベルを有するループ候補エレメントが接続してい
ても構わない。
First, as shown in FIG. 13(a), a loop candidate node N1 includes two loop candidate elements L1 and L2 having shape line loop labels, and L3 having an unknown label.
When connected, it is impossible for the shape lines to intersect in a two-dimensional processing drawing, so there are no loop candidates)
・L3 is clearly not a shape line. Therefore, while changing the unknown label of L3 to a non-shape line loop label,
3 is deleted from the loop candidate element, N1 is deleted from the loop candidate node, and the loop candidate elements L1 and L2 are merged. In addition, in this case, the loop candidate node N1 is
Even if other loop candidate elements having unknown labels other than L3 are connected, the handling is the same. Also, the first
As shown in FIG. 3(b), when a loop candidate element L3 having an unknown label and loop candidate elements L1 and L2 having non-shape line loop labels are connected to a loop candidate node N1, a shape line is connected in the middle. Since it is impossible for the line to break at , the loop candidate element L3 is clearly not a shape line. In this case as well, the unknown label of L3 is changed to a non-shape line loop label, and Ll, L
2 and L3 are deleted from the loop candidate element, and N1 is deleted from the loop candidate node. In addition, in this case, the loop candidate node N1 has, in addition to Ll and L2,
Other loop candidate elements having non-shape line loop labels may be connected. Furthermore, Fig. 13(c)
As shown in , when Ll with a shape line loop label, L3 with an unknown label, and L2 with a non-shape line loop label are connected, the shape line is not disconnected in the middle, so L3 is unknown. The label is changed to a shape line loop label, L2 is deleted from the loop candidate element, N1 is deleted from the loop candidate node, and the loop candidate elements L1 and L3 are integrated. In this case,
Loop candidate elements having a plurality of non-shaped line loop labels including L2 may be connected to the loop candidate node N1.

一方、第13図(d)に示すように、形状線ループラベ
ルを有するループ候補エレメントL4と、他が総て不明
ラベルを有するループ候補エレメントL3およびL5が
接続する場合は、この時点では、状況が明確でないため
処理を行わない。同様に・、第13図(e)においても
、非形状線ループラベルを有するループ候補エレメント
L4と、他が総て不明ラベルを有するループ候補エレメ
ントL3およびL4が接続しており、ラベルの伝播を行
わない。しかし、第13図(d)および(e)のような
明確でない接続状態における処理を後′廻しにし、第1
3図(a)、(b)および(c)のように明らかな接続
状態における伝播処理を先に行うことにより、次のよう
な状況が発生する。
On the other hand, as shown in FIG. 13(d), when loop candidate element L4 having a shape line loop label is connected to loop candidate elements L3 and L5, all of which have unknown labels, the situation at this point is No processing is performed because it is not clear. Similarly, in FIG. 13(e), loop candidate element L4 having a non-shape line loop label is connected to loop candidate elements L3 and L4, all of which have unknown labels, and label propagation is prevented. Not performed. However, the processing in the unclear connection states as shown in FIGS. 13(d) and (e) is postponed to the first stage.
By performing the propagation process in the obvious connection states as shown in FIGS. 3(a), (b), and (c) first, the following situation occurs.

第14図(a)において、ループ候補ノードN2を中心
とする接続状態は第13図(d)と全く同じであり、単
独ではラベルが伝播されないが、ループ候補ノードN1
を中心とする接続状態は第13図(a)と全く同じであ
るため、先に述べたように、ループ候補エレメントL3
の不明ラベルが非形状線ループラベルに変更される。こ
れにより、第14図(a)に示すループ候補ノードN2
を中心とする接続状態は、第13図(c)に示すものと
同じになるため、ループ候補エレメントL5が有する不
明ラベルは形状線ループラベルに変更することができる
。また、第14図(b)において、ループ候補ノードN
2を中心とする接続状態は第13図(e)と全く同じで
あり、ループ候補ノードN1を中心とする接続状態は第
13図(a)と全く同じであるため、ループ候補エレメ
ントL3の不明ラベルが非形状線ループラベルに変更さ
れる。これにより、第14図(b)に示すループ候補ノ
ードN2を中心とする接続状態は、第13図(b)に示
すものと同じになるなめ、ルー=28= プ候補エレメントL5が有する不明ラベルは非形状線ル
ープラベルに変更することができる。このように、単独
のループ候補ノードにおける接続状態だけでは判断でき
ない場合でも、互いの接続関係の整合を図ることにより
、確実な情報を図面全体に伝播させることができる。な
お、第14図(c)、(d)、(e)および(f)は、
第13図(b)と(d)、 (b)と(e)、(c)と
(d)、(C)と(e)を組み合わせたものであるが、
同様にラベルの伝播処理を行うことができる。
In FIG. 14(a), the connection state centered on the loop candidate node N2 is exactly the same as in FIG. 13(d), and the label is not propagated independently, but the loop candidate node N1
Since the connection state centered on L3 is exactly the same as in FIG. 13(a), as mentioned earlier, the loop candidate element L3
unknown label is changed to non-shape line loop label. As a result, the loop candidate node N2 shown in FIG. 14(a)
Since the connection state centered on is the same as that shown in FIG. 13(c), the unknown label of the loop candidate element L5 can be changed to the shape line loop label. In addition, in FIG. 14(b), loop candidate node N
The connection state centered on node 2 is exactly the same as in FIG. 13(e), and the connection state centered on loop candidate node N1 is exactly the same as in FIG. 13(a), so loop candidate element L3 is unknown. The label is changed to a non-shape line loop label. As a result, the connection state centered on the loop candidate node N2 shown in FIG. 14(b) becomes the same as that shown in FIG. can be changed to a non-shape line loop label. In this way, even if the connection state of a single loop candidate node cannot be determined, reliable information can be propagated throughout the drawing by matching the connection relationships. In addition, FIG. 14(c), (d), (e) and (f) are
Fig. 13 is a combination of (b) and (d), (b) and (e), (c) and (d), (C) and (e),
Similarly, label propagation processing can be performed.

上記処理を、図面内の不明ラベルを有する総てのループ
候補エレメントに伝播させ、総てのループ候補ノードが
削除されるまで繰り返し行うことにより、形状線ループ
ラベルを有する分岐点を持たない複数のループ候補エレ
メントのみが残ることになる。なお、上記処理により、
寸法線や寸法補助線により偶発するループは、総て除か
れる。
By propagating the above process to all loop candidate elements with unknown labels in the drawing and repeating it until all loop candidate nodes are deleted, multiple Only loop candidate elements remain. In addition, by the above processing,
Any loops caused by dimension lines or extension lines are removed.

次に、上記の形状線ループラベルを有するループ候補エ
レメントそれぞれについて、真の形状線であるか否かを
判定する。この時点では、巣を構成するエレメントのみ
が、形状線ループラベルを有するループ候補エレメント
に混在しており、巣の判定、除去を行う必要がある。巣
は、小穴と形状が類似しているが、小穴には、その位置
および半径(あるいは直径)を示すための水平、垂直な
中心線および寸法線が記入されているため、容易に区別
することができ、これらをループ候補エレメントから削
除する。
Next, it is determined whether each loop candidate element having the above-mentioned shape line loop label is a true shape line. At this point, only the elements constituting the nest are mixed in the loop candidate elements having the shape line loop label, and it is necessary to determine and remove the nest. Nests are similar in shape to small holes, but small holes are easily distinguished because they have horizontal and vertical center lines and dimension lines marked to indicate their location and radius (or diameter). , and remove them from the loop candidate elements.

以上の処理により、真の形状線を構成する総てのループ
候補エレメントを抽出することができる。
Through the above processing, all loop candidate elements constituting the true shape line can be extracted.

なお、これらループ候補エレメントを構成する総てのエ
レメント中に、形状線線切れ候補および形状線線切れ候
補伝播ラベルを有するエレメントが全く存在しない場合
は、これらを形状線ループとして抽出する。
Note that if there are no elements having a shape line break candidate or a shape line break candidate propagation label among all the elements constituting these loop candidate elements, these are extracted as shape line loops.

なお、抽出した形状線ループを構成する総てのエレメン
トのラベルを形状線ラベル、その他総てのエレメントの
ラベルを非形状線ラベルに統一する。
Note that the labels of all elements constituting the extracted shape line loop are unified as shape line labels, and the labels of all other elements are unified as non-shape line labels.

(8)形状線線切れ接続処理部9 本処理部は、前記の形状線ループ抽出処理部8において
抽出されたループ候補エレメント中に、形状線線切れ候
補および形状線線切れ候補伝播ラベルを有するエレメン
トが存在する場合にのみ、処理が実行される。本実施例
においては、以上述べてきたように、形状線線切れ候補
として登録されている箇所を、論理的に接続されている
ものとして取り扱ってきたが、本処理部では、実際に上
記形状線線切れ箇所の接続処理を行った後、上記ループ
候補エレメントを形状線ループとして抽出する。第2図
(a)、(b)、(c)および(d)に示す形状線上の
線切れ箇所に対して、接続処理を行った結果を、第15
図(a>、(b)、(c)および(d)に示す。
(8) Shape line break connection processing section 9 This processing section has shape line break candidates and shape line break candidate propagation labels in the loop candidate elements extracted by the shape line loop extraction processing section 8. Processing is performed only if the element exists. In this embodiment, as described above, the locations registered as shape line break candidates have been treated as being logically connected. After performing connection processing at the line break locations, the loop candidate elements are extracted as shape line loops. The results of connection processing performed on the line breaks on the shape lines shown in FIGS. 2(a), (b), (c), and (d) are
Shown in Figures (a>, (b), (c) and (d)).

以上のように、形状線上に線切れが発生している場合に
おいても、ループを成す形状線を抽出することができる
。なお、この場合にも、上記線切れ接続を行ったエレメ
ントを含め、抽出した形状線ループを構成する総てのエ
レメントのラベルを形状線ラベル、その他総てのエレメ
ントのラベルを非形状線ラベルに統一する。
As described above, even when a line break occurs on a shape line, a shape line forming a loop can be extracted. In this case as well, the labels of all elements constituting the extracted shape line loop, including the element with the line break connection described above, are changed to shape line labels, and the labels of all other elements are changed to non-shape line labels. Unify.

3l− (9)シンボル構成線要素抽出部 10以上のように、
形状を表す線図形と、形状の寸法を表すための各種シン
ボルを構成する線図形が混在する図面データにおいて、
ループを成すというもっとも大きな特徴を有する形状線
要素を抽出することができた。従って、直線、円弧の任
意の組合せ、および円より成る形状線要素を除く総ての
線要素は、形状の寸法を表すための各種シンボルを構成
するものであり、寸法線、寸法補助線、引出し線、−点
鎖線等のシンボルを構成する線要素の抽出処理は、直線
的に、しかも、かなり強引に行うことができるようにな
る。
3l- (9) Symbol component line element extraction unit As above 10,
In drawing data that includes a mixture of line figures that represent shapes and line figures that constitute various symbols that represent the dimensions of the shape,
We were able to extract the shape line element that has the most significant feature of forming a loop. Therefore, all line elements except shape line elements consisting of straight lines, arbitrary combinations of circular arcs, and circles constitute various symbols for expressing the dimensions of shapes, and include dimension lines, extension lines, and drawers. The process of extracting line elements constituting symbols such as lines and dashed-dotted lines can now be performed linearly and with considerable force.

本処理部では、各種シンボルを構成する線要素を抽出す
る処理を行うが、その際に、上記の非形状線ラベルを有
するエレメントの中で最も長いエレメントから順番に着
目して処理を行う。、これは、長いエレメント程、線分
の交差部分での114II線化処理による歪の影響を受
けに<<、追跡方向を示すエレメントの傾き角度が安定
しているためである。
This processing unit performs a process of extracting line elements constituting various symbols, and at that time, performs processing in order from the longest element among the elements having the above-mentioned non-shaped line labels. This is because the longer the element, the more stable the inclination angle of the element indicating the tracking direction is due to the influence of distortion caused by the 114II line conversion process at the intersection of line segments.

以下に、シンボル構成線要素の追跡、抽出処理の要領を
示す。
The outline of the tracing and extraction processing of symbol constituent line elements is shown below.

[着目] 総てのエレメント (ただし、エレメント長の長い順) [条件] (イ〉非形状線ラベルを有すること。[Focus] all elements (However, in descending order of element length) [conditions] (a) Must have a non-shaped line label.

(ロ)下記[処理](ハ)により、フラグがセットされ
ていないこと。
(b) The flag must not be set by [Processing] (c) below.

[処理] (イ)着目エレメントの両方向に、下記[追跡終了条件
コに示すいずれかのノードに到達するまで、接続エレメ
ントを直線的に追跡する。
[Processing] (a) Connected elements are linearly traced in both directions of the element of interest until reaching one of the nodes shown in [Tracing End Conditions] below.

(ロ)上記追跡済みの一連のエレメント毎に、同一の分
類番号を与える。
(b) Give the same classification number to each of the above-mentioned series of tracked elements.

〈ハ)上記追跡済みの一連のエレメントに対して、フラ
グをセットする。
(c) Set a flag for the series of tracked elements.

[追跡終了条件コ 下記のいずれかのノードに到達するまで、非形状線ラベ
ルを有するエレメントの追跡を行う。
[Tracing End Conditions] Elements with non-shape line labels are traced until one of the nodes below is reached.

(イ)開放端点ノード (ロ)追跡可能なエレメントが接続しないノード(ハ)
追跡可能なエレメントが複数接続するノード(ニ)形状
線ラベルを有するエレメントが接続するノード ただし、第16図(a)に示すように、2エレメントL
1およびL2の補角りがf (LL、L2)以下であり
、かつ、2ノードN1およびN3を結ぶ線分へのノード
N2からの垂線の足の長さVLがg (Ll、L2)以
下である場合に、ニレメン)L2はLlに対して追跡可
能であるとする。なお、f (Ll、L2>は、エレメ
ントL1およびL2の長さにより算出される角度のしき
い値であり、g (Ll、L2)は、エレメントL1お
よびL2の長さにより算出される垂線の足の長さのしき
い値である。
(B) Open end node (B) Node to which traceable elements are not connected (C)
Node to which multiple traceable elements are connected (D) Node to which elements with shape line labels are connected. However, as shown in FIG. 16(a), two elements L
The supplementary angle of 1 and L2 is less than or equal to f (LL, L2), and the leg length VL of the perpendicular line from node N2 to the line segment connecting two nodes N1 and N3 is less than or equal to g (Ll, L2) In this case, it is assumed that L2 can be traced to Ll. Note that f (Ll, L2> is the threshold value of the angle calculated from the lengths of elements L1 and L2, and g (Ll, L2) is the threshold value of the perpendicular line calculated from the lengths of elements L1 and L2. This is the threshold of leg length.

なお、本処理部では細線化処理による多義性エレメント
の発生を考慮し、第16図(b)に示すように、追跡中
に形状線ラベルを有する追跡可能なエレメントL2が接
続するノードN1に到達した場合は、エレメントL2の
長さが一定長以下であり、かつ、反対側ノードN2に追
跡可能なエレメントL3が接続している場合に限り、追
跡を続行する。また、第16図(c)に示すように、追
跡中に既に上記[処理]2)によって分類番号が与えら
れているエレメントL2が接続するノードN1に到達し
た場合は、先と同様、エレメントL2の長さが一定長以
下であり、かつ、反対側ノードN2に追跡可能なエレメ
ントL3が接続している場合に限り、追跡を続行する。
Note that this processing unit takes into account the occurrence of ambiguous elements due to line thinning processing, and as shown in FIG. In this case, tracking is continued only if the length of element L2 is equal to or less than a certain length and a traceable element L3 is connected to the opposite node N2. Furthermore, as shown in FIG. 16(c), if element L2, which has already been assigned a classification number in [processing] 2), reaches the connected node N1 during tracking, as before, element L2 Tracking is continued only if the length of is less than a certain length and the traceable element L3 is connected to the opposite node N2.

この場合、エレメントL2に対しては、複数の分類番号
が与えられることになる。
In this case, multiple classification numbers will be given to element L2.

(10)シンボル認識部11 本処理部では、前記シンボル構成線要素抽出部10にお
いて与えられた分類番号に基づき、最終的に、同一分類
番号を有する一連の線要素が構成するシンボルを認識す
る。
(10) Symbol Recognition Unit 11 This processing unit finally recognizes a symbol constituted by a series of line elements having the same classification number, based on the classification number given in the symbol constituent line element extraction unit 10.

機械図面においては、定形を成さない形状線を除けば、
各種シンボルは、その構成エレメントの傾き角度と、極
めて相関が強い。本処理部では、これに着目してシンボ
ルの認識を行う。
In mechanical drawings, except for irregular shape lines,
Various symbols have a very strong correlation with the inclination angle of their constituent elements. This processing unit recognizes symbols by paying attention to this.

まず、形状線ループ抽出処理部8において、矢印側面方
向接続ノードおよび矢印順方向接続ノードを抽出する際
に、第10図(a)〜(g)に示すシンボルを構成する
一連のエレメントが抽出されている。本処理部では、同
図(a)〜(d)に示すように、開放端点に接続する斜
め方向のエレメント、およびそのエレメントが形状線ラ
ベルを有するエレメントと交差するノードの近辺におい
て接続する矢尻形状エレメントを、寸法線として抽出す
る。また、同図(e)〜(g)に示すように、開放端点
に接続する水平方向線要素を介して接続する斜め方向線
要素、およびそのエレメントが形状線ラベルを有するエ
レメントと交差するノードの近辺において接続する矢尻
形状エレメントを、同様に寸法線として抽出する。なお
、細線化処理の影響により、矢尻形状が出現しない場合
が考えられるため、上記認識処理は必ずしも矢尻形状を
成すエレメントを必要としない。ただし、第17図に示
すように、開放端点を有する水平方向エレメントを介し
て接続する斜め方向エレメントは、通常矢尻形状エレメ
ントが記入されないが、形状線ラベルを有するエレメン
トに交差しないため、第10図(e)〜(g)に示す状
態とは容易に区別することができる。なお、第17図に
示すエレメントを、引出し線として認識する。また、第
18図(a)および(b)に示すように、同一の分類番
号を有する斜め方向のエレメントのうち、いずれか一方
の端点において、形状線ラベルを有するエレメントと交
差する場合、その交差ノードの近辺において矢尻形状エ
レメントが接続していれば、同様に寸法線として認識す
る。なお、この場合においても、矢尻形状エレメントは
必ずしも存在しなくても良い。
First, in the shape line loop extraction processing unit 8, when extracting arrow side direction connection nodes and arrow forward direction connection nodes, a series of elements forming the symbols shown in FIGS. 10(a) to (g) are extracted. ing. In this processing section, as shown in (a) to (d) in the same figure, an element in a diagonal direction that connects to an open end point, and an arrowhead shape that connects in the vicinity of a node where that element intersects an element having a shape line label. Extract elements as dimension lines. In addition, as shown in (e) to (g) of the same figure, diagonal line elements connected via horizontal line elements connected to open end points, and nodes where these elements intersect elements with shape line labels. Arrowhead-shaped elements connected in the vicinity are similarly extracted as dimension lines. Note that the above recognition process does not necessarily require an element forming an arrowhead shape, since it is conceivable that the arrowhead shape may not appear due to the influence of the thinning process. However, as shown in FIG. 17, for diagonal elements connected via horizontal elements with open end points, arrowhead-shaped elements are usually not drawn, but since they do not intersect elements with shape line labels, as shown in FIG. It can be easily distinguished from the states shown in (e) to (g). Note that the elements shown in FIG. 17 are recognized as leader lines. In addition, as shown in FIGS. 18(a) and (b), if diagonal elements with the same classification number intersect with an element having a shape line label at one end point, the intersection If arrowhead-shaped elements are connected near a node, it is similarly recognized as a dimension line. Note that even in this case, the arrowhead-shaped element does not necessarily have to exist.

次に、同一分類番号を有する水平および垂直方向シンボ
ルの認識を行う。第19図(a)〜(d)に示すように
、同一分類番号を有する非形状線エレメントのうち、形
状線ループ抽出処理部8において述べたように、矢尻形
状エレメントが順方向に接続するエレメントを寸法線、
直交するエレメントを寸法補助線、として認識する。
Next, horizontal and vertical symbols having the same classification number are recognized. As shown in FIGS. 19(a) to (d), among the non-shaped line elements having the same classification number, as described in the shaped line loop extraction processing unit 8, the arrowhead-shaped elements are connected in the forward direction. the dimension line,
Recognize orthogonal elements as dimension extension lines.

最後に、第20図(a)および(b)に示すように、直
線上に長短のエレメントが繰り返し出現する場合、これ
らを−点鎖線として認識する。
Finally, as shown in FIGS. 20(a) and 20(b), when long and short elements repeatedly appear on a straight line, they are recognized as a dashed line.

発明の効果 以上述べてきたように、本発明によれば次のような効果
が得られる。
Effects of the Invention As described above, according to the present invention, the following effects can be obtained.

(1)形状線上の線切れ箇所の候補を予め挙げておき、
明らかに形状線ではない特徴を有する線分と区別してラ
ベル付けおよび伝播処理を行うことにより、形状線上に
線切れが発生している場合でも、線切れ箇所を検出、接
続することができ、形状線を抽出することができる。
(1) List candidates for line break points on the shape line in advance,
By performing labeling and propagation processing to distinguish line segments that have features that are clearly not shape lines, even if a line break occurs on a shape line, the broken line can be detected and connected, and the shape Lines can be extracted.

(2)機械図面のように、多種多様の線分が任意角度で
記入され、かつ、それら線分が任意箇所で交差するよう
な対象においては、至る所で閉ループが偶発するため、
エレメントを単純に追跡するような手法では、複雑なス
タック処理を強いられることになり、効率の良い処理は
望めない。本発明のように、ラベル付けおよび伝播処理
を行うことにより、小さな記憶容量で、かつ高速に処理
することができるので、処理効率が向上する。
(2) In objects such as mechanical drawings, where a wide variety of line segments are drawn at arbitrary angles and these line segments intersect at arbitrary locations, closed loops occur everywhere.
A method that simply tracks elements would require complicated stack processing, and efficient processing cannot be expected. By performing labeling and propagation processing as in the present invention, processing can be performed at high speed with a small storage capacity, thereby improving processing efficiency.

(3)本発明の図面認識装置では、細線化処理の影響に
より発生する多義性エレメントを認識できるため、多義
性エレメントを介する複数のシンボルを完全に分離して
認識することができる。
(3) Since the drawing recognition device of the present invention can recognize ambiguous elements that occur due to the influence of the thinning process, it is possible to completely separate and recognize a plurality of symbols via ambiguous elements.

(4)細線化処理の影響により、矢尻形状線分の一部あ
るいは全部が出現しない場合でも、確実に寸法線および
寸法補助線を認識することができる。
(4) Even if some or all of the arrowhead-shaped line segments do not appear due to the thinning process, the dimension lines and dimension extension lines can be reliably recognized.

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

第1図は本発明の一実施例の図面認識装置のブロック構
成図、第2図は形状線上の線切れパターンを示す図、第
3図は、形状線線切れ候補が複数の組み合せを成すパタ
ーン図、第4図はラベル付は時に行う形状線線切れ候補
の削除を示す説明図、第5図はラベルの伝播経路の説明
図、第6図はラベルの伝播処理中に行う形状線線切れ候
補の削除の説明図、第7図は各種ラベル付与エレメント
と形状線の包含関係図、第8図は屈曲点ノートの説明図
、第9図は準屈曲点ノードの説明図、第10図は矢印側
面方向接続ノートおよび矢印順方内接続ノードの説明図
、第11図は非形状線接続ノードの説明図、第12図は
ループ候補エレメント接続方向の説明図、第13図は形
状線および非形状線ループラベルが伝播する様子を示す
説明図、第14図は図面内の整合性により形状線および
非形状線ループラベルが伝播する様子を示す説明図、第
15図は形状線上の線切れ箇所に対して整形処理を行っ
た結果の説明図、第16図は追跡可能なエレメントの接
続状態図、第17図は引出線の説明図、第18図は開放
端点を持たない斜め方向の寸法線を示す説明図、第19
図は水平および垂直方向のエレメントより成る寸法線お
よび寸法補助線を示す説明図、第20図は一点鎖線を示
す説明図である。 1・・・図面認識装置、2・・形状線線切れ候補ラベル
付与処理部、3・・・非形状線ラベル付与処理部、4 
・形状線線切れ候補削除処理部、5・・・非形状線ラベ
ル伝播処理部、6・・・形状線線切れ候補ラベル伝播処
理部、7・・・形状線ループ候補抽出処理部、8 ・・
形状線ループ抽出処理部、9・・形状線線切れ接続処理
部、10・・・シンボル構成要素抽出部、11・・・シ
ンボル認識部、12・・・図面データ、13・・・モニ
タ。 代理人の氏名 弁理士 中尾敏男 はか1名第10図 (CL)      (b) (C2(チ2 第11図 (α]             (b)      
      (c)第12図 (a、)(I)) 区 C) 一 唾 ミ11 烟 □−□ \ノ 区 q 鵬
FIG. 1 is a block configuration diagram of a drawing recognition device according to an embodiment of the present invention, FIG. 2 is a diagram showing line break patterns on shape lines, and FIG. 3 is a pattern in which shape line break candidates form a plurality of combinations. Figure 4 is an explanatory diagram showing the deletion of shape line break candidates that is sometimes performed during labeling, Figure 5 is an explanatory diagram of the label propagation path, and Figure 6 is a diagram showing the deletion of shape line break candidates that is sometimes performed during label propagation processing. An explanatory diagram of candidate deletion, Fig. 7 is a diagram of the inclusion relationship between various labeling elements and shape lines, Fig. 8 is an explanatory diagram of bending point notes, Fig. 9 is an explanatory diagram of quasi-bending point nodes, and Fig. 10 is an illustration of the inclusion relationship between various labeling elements and shape lines. 11 is an explanatory diagram of a non-shape line connection node, FIG. 12 is an explanatory diagram of a loop candidate element connection direction, and FIG. 13 is an explanatory diagram of a shape line and a non-shape line connection node. An explanatory diagram showing how shape line loop labels are propagated. Figure 14 is an explanatory diagram showing how shape lines and non-shape line loop labels are propagated due to consistency within the drawing. Figure 15 is a line break point on a shape line. Figure 16 is a diagram of the connection state of traceable elements, Figure 17 is an illustration of leader lines, and Figure 18 is a diagonal dimension line with no open end points. Explanatory diagram showing, No. 19
The figure is an explanatory diagram showing dimension lines and dimension extension lines made up of horizontal and vertical elements, and FIG. 20 is an explanatory diagram showing a dashed-dotted line. DESCRIPTION OF SYMBOLS 1...Drawing recognition device, 2...Shape line break candidate labeling processing unit, 3...Non-shape line labeling processing unit, 4
- Shape line break candidate deletion processing section, 5... Non-shape line label propagation processing section, 6... Shape line break candidate label propagation processing section, 7... Shape line loop candidate extraction processing section, 8.・
Shape line loop extraction processing section, 9.. Shape line break connection processing section, 10.. Symbol component extraction section, 11.. Symbol recognition section, 12.. Drawing data, 13.. Monitor. Name of agent Patent attorney Toshio Nakao (1 person) Figure 10 (CL) (b) (C2 (CH2 Figure 11 (α)) (b)
(c) Figure 12 (a,) (I)) Ward C) Issakumi 11 Smoke □-□ \ノ区q Peng

Claims (1)

【特許請求の範囲】[Claims] 形状を表す線図形と、形状の寸法を表すための各種シン
ボルを構成する線図形に対し、細線化処理が行われた後
に、前記線図形上の特徴点である開放端点および分岐点
が抽出されるとともに、前記特徴点間を結ぶ前記線図形
が線要素に符号化されている図面データにおいて、一定
距離内で近接する2開放端点に接続する線要素を形状線
線切れ候補として予め登録するとともに形状線線切れ候
補ラベルを付与する形状線線切れ候補ラベル付与処理部
と、明らかに形状を示す線ではない線要素に対して非形
状線ラベルを付与する非形状線ラベル付与処理部と、前
記形状線線切れ候補ラベルと前記非形状線ラベルが重複
する場合、前記形状線線切れ候補ラベルを前記非形状線
ラベルに変更するとともに、前記登録済みの形状線線切
れ候補を削除する形状線線切れ候補削除処理部と、前記
の非形状線ラベルを、ラベル未付与の線要素に対して伝
播させる非形状線ラベル伝播処理部と、前記の形状線線
切れ候補ラベルを、ラベル未付与の線要素に対して伝播
させる形状線線切れ候補ラベル伝播処理部と、前記の非
形状線ラベルおよび形状線線切れ候補ラベルが付与また
は伝播されていない総ての線要素に対して形状線ループ
候補ラベルを付与する形状線ループ候補ラベル付与処理
部と、形状線および非形状線上の特徴に基づいて形状線
ループを抽出する形状線ループ抽出処理部と、形状線上
に線切れが発生している場合に、線切れ箇所を検出、接
続する形状線線切れ接続処理部と、明らかに形状線では
ない線要素から追跡を開始し、形状線以外の各種シンボ
ルを構成する複数の線要素を抽出するシンボル構成線要
素抽出部と、前記抽出済みの一連の線要素を認識するシ
ンボル認識部とを具備し、形状線をはじめとする各種シ
ンボルを抽出、認識することを特徴とする図面認識装置
After thinning processing is performed on the line figures representing the shape and the line figures constituting various symbols for expressing the dimensions of the shape, open end points and branch points, which are feature points on the line figures, are extracted. At the same time, in drawing data in which the line figure connecting the feature points is encoded as a line element, a line element connecting two open end points close to each other within a certain distance is registered in advance as a shape line break candidate. a shape line break candidate label adding processing section that gives a shape line break candidate label; a non-shape line label adding processing section that gives a non-shape line label to a line element that is not a line clearly indicating a shape; If the shape line break candidate label and the non-shape line label overlap, the shape line break candidate label is changed to the non-shape line label, and the registered shape line break candidate is deleted. a break candidate deletion processing unit; a non-shape line label propagation processing unit that propagates the non-shape line label to unlabeled line elements; A shape line break candidate label propagation processing unit that propagates to elements, and a shape line loop candidate label for all line elements to which the non-shape line labels and shape line break candidate labels have not been assigned or propagated. a shape line loop candidate labeling processing unit that assigns a shape line loop candidate label; a shape line loop extraction processing unit that extracts shape line loops based on features on shape lines and non-shape lines; , a shape line line break connection processing unit that detects and connects line breaks, and a symbol configuration that starts tracing from a line element that is obviously not a shape line and extracts multiple line elements that constitute various symbols other than shape lines. A drawing recognition device comprising a line element extraction unit and a symbol recognition unit that recognizes the series of extracted line elements, and extracts and recognizes various symbols including shape lines.
JP27760887A 1987-11-02 1987-11-02 Drawing recognizing device Pending JPH01119874A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP27760887A JPH01119874A (en) 1987-11-02 1987-11-02 Drawing recognizing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP27760887A JPH01119874A (en) 1987-11-02 1987-11-02 Drawing recognizing device

Publications (1)

Publication Number Publication Date
JPH01119874A true JPH01119874A (en) 1989-05-11

Family

ID=17585794

Family Applications (1)

Application Number Title Priority Date Filing Date
JP27760887A Pending JPH01119874A (en) 1987-11-02 1987-11-02 Drawing recognizing device

Country Status (1)

Country Link
JP (1) JPH01119874A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03214273A (en) * 1989-06-30 1991-09-19 Mita Ind Co Ltd Image discriminating device
US5542388A (en) * 1994-08-17 1996-08-06 Toyota Jidosha Kabushiki Kaisha Air-flow control device for engine
US5596957A (en) * 1994-08-17 1997-01-28 Toyota Jidosha Kabushiki Kaisha Engine
US5676101A (en) * 1995-05-23 1997-10-14 Toyota Jidosha Kabushiki Kaisha Controllers for a combustion engine able to lower the intake air pressure to a vacuum during an engine cranking operation
US5826564A (en) * 1996-06-10 1998-10-27 Toyota Jidosha Kabushiki Kaisha Fuel injection control apparatus and method for engine
US5915362A (en) * 1996-06-10 1999-06-29 Toyota Jidosha Kabushiki Kaisha Intake control apparatus and method for engine

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03214273A (en) * 1989-06-30 1991-09-19 Mita Ind Co Ltd Image discriminating device
US5542388A (en) * 1994-08-17 1996-08-06 Toyota Jidosha Kabushiki Kaisha Air-flow control device for engine
US5596957A (en) * 1994-08-17 1997-01-28 Toyota Jidosha Kabushiki Kaisha Engine
US5666919A (en) * 1994-08-17 1997-09-16 Toyota Jidosha Kabushiki Kaisha Engine
US5671708A (en) * 1994-08-17 1997-09-30 Toyota Jidosha Kabushiki Kaisha Engine
US5676102A (en) * 1994-08-17 1997-10-14 Toyota Jidosha Kabushiki Kaisha Engine
US5676101A (en) * 1995-05-23 1997-10-14 Toyota Jidosha Kabushiki Kaisha Controllers for a combustion engine able to lower the intake air pressure to a vacuum during an engine cranking operation
US5826564A (en) * 1996-06-10 1998-10-27 Toyota Jidosha Kabushiki Kaisha Fuel injection control apparatus and method for engine
US5915362A (en) * 1996-06-10 1999-06-29 Toyota Jidosha Kabushiki Kaisha Intake control apparatus and method for engine

Similar Documents

Publication Publication Date Title
JPH01121988A (en) Method for separating contact character
Beun A flexible method for automatic reading of handwritten numerals
JP3709803B2 (en) Pattern matching device, pattern matching method, and pattern matching program
Uchoa et al. Fast local search for Steiner trees in graphs
JPH01119874A (en) Drawing recognizing device
CN105975527A (en) Road up-down relationship identification method and apparatus
JPH01119875A (en) Symbol constituting element separating/extracting device
JPH0981740A (en) Diagram input device
US6009194A (en) Methods, systems and computer program products for analyzing information in forms using cell adjacency relationships
JPH01106185A (en) Drawing recognizing device
JPS63261481A (en) Pattern symmetry identification system in pattern recognizing device
JP2778483B2 (en) Design rule verification system
JP2815263B2 (en) Fine line image shaping method
JP2000020693A (en) Fingerprint image processor, fingerprint image processing method and recording medium therefor
Rufai et al. A Simple Convex Layers Algorithm
JP3077929B2 (en) Character extraction method
JPH0357509B2 (en)
JPH02204881A (en) Pattern-character separating method
JPH04260980A (en) Device for recognizing graphic
Chen et al. Optimal Construction for Time-Convex Hull with Two Orthogonal Highways in the L1-metric
JPH0348379A (en) Character recognizing system
JP2959054B2 (en) Line type discrimination method in pattern recognition device
JPS63316171A (en) System for extracting broken line and chain line
Bauer Intelligent Pen: A least cost search approach to Stroke Extraction in Historical Documents
Hu et al. A new framework for generating skeletons and centerlines based on distance transform: theory and practice