JPH02268375A - Line segment determining method for machine drawing - Google Patents

Line segment determining method for machine drawing

Info

Publication number
JPH02268375A
JPH02268375A JP1090445A JP9044589A JPH02268375A JP H02268375 A JPH02268375 A JP H02268375A JP 1090445 A JP1090445 A JP 1090445A JP 9044589 A JP9044589 A JP 9044589A JP H02268375 A JPH02268375 A JP H02268375A
Authority
JP
Japan
Prior art keywords
area
line
determined
line segment
line segments
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
JP1090445A
Other languages
Japanese (ja)
Inventor
Sachiko Deguchi
出口 幸子
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.)
Ricoh Co Ltd
Original Assignee
Ricoh 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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP1090445A priority Critical patent/JPH02268375A/en
Publication of JPH02268375A publication Critical patent/JPH02268375A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Analysis (AREA)

Abstract

PURPOSE:To efficiently determine the coupling of line segments by modeling an area according to the condition of connection and the component of linkage with the other area of the line segment for the divided area, charging a limit condition, determining the coupling of the line segments according to the limit condition and propagating the coupling to the other area. CONSTITUTION:The machine drawing of a recognition subject is read by a scanner 11 and a binary picture is divided by the areas. Then, a result to classify the respective divided areas by feature quantity is inputted and held to the abstract slot of an area object in a node corresponding to the respective areas of tree structure information in a memory 15. A dimension line (d) is determined by using the information of an arrow in the area object. Next, by using the limit condition to the coupling of the line segments to be allowed in the area, the other line segment element of the area, for which the dimension line (d) is determined, is determined. The name of the line segment is propagated from the area, for which the dimension line (d) is determined, to the area connected to the above mentioned area. When the line segment element is determined, the other line segment element in the area is determined by using the limit condition and further propagated to the other area.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、機械図面を複数の領域に分割して認識するシ
ステムにおいて、分割領域に含まれる線分を決定する方
法に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a method for determining line segments included in divided regions in a system that recognizes a mechanical drawing by dividing it into a plurality of regions.

〔従来の技術及びその課題〕[Conventional technology and its problems]

機械図面認識システムにおいて、複雑な機械図面を認識
する場合、与えられた図面全体の画像を一度に認識する
ことは不可能である。その為、図面全体を、それぞれが
比較的単純な構造を示す複数の領域に分割し、この分割
した各領域を認識することで全体の認識を実現している
。この場合、例えば特開昭61−220077号公報に
記載のように、一般には図面全体をまず2〜4分割し。
When a mechanical drawing recognition system recognizes a complex mechanical drawing, it is impossible to recognize the entire image of a given drawing at once. Therefore, the entire drawing is divided into a plurality of regions, each of which has a relatively simple structure, and recognition of the entire drawing is achieved by recognizing each of the divided regions. In this case, the entire drawing is generally first divided into two to four parts, as described in, for example, Japanese Unexamined Patent Publication No. 61-220077.

その各領域をさらに分割するという処理を繰り返す所謂
階層分割の方法がとられる。
A so-called hierarchical division method is used in which the process of further dividing each area is repeated.

一方、機械図面を認識する際1図面に表わされている線
分の持つ意味(外形線、寸法線、寸法補助線、引出し線
等)を識別することは1図面全体を認識する上で重要な
手掛りとなる。しかしながら1分割された各領域中に含
まれる線分を決定する場合、線分の可能な組合せすべて
を考えると。
On the other hand, when recognizing mechanical drawings, it is important to identify the meaning of the line segments represented in one drawing (outline lines, dimension lines, extension lines, leader lines, etc.) in order to recognize the entire drawing. This is a clue. However, when determining the line segments included in each divided area, consider all possible combinations of line segments.

その組合せは膨大となり、はとんど不可能に近い。The combinations are vast and almost impossible.

本発明の目的は、領域分割方式を採用する機械図面認識
システムにおいて、分割領域に含まれる線分の組合せを
効率よく決定する方法を提供することにある。
An object of the present invention is to provide a method for efficiently determining combinations of line segments included in divided regions in a mechanical drawing recognition system that employs a region division method.

〔課題を解決するための手段〕[Means to solve the problem]

上記目的を達成するために1本発明は、分割した領域に
ついて、その線分の他領域との接続状況と連結成分によ
って領域をモデル化し、各々のモデルに制約条件を課し
、この制約条件を用いて領域における線分の組合せを決
定し、他の領域に伝播することを特徴とする。
In order to achieve the above object, the present invention models the divided regions based on the connections between the line segments and other regions and the connected components, imposes constraints on each model, and The method is characterized in that the combinations of line segments in a region are determined using the method, and the combinations are propagated to other regions.

〔作 用〕[For production]

まず、ある領域の特徴量における矢印の情報を用いて、
対となる矢印を他領域に求め、寸法線を決定する。次に
、寸法線が決まった領域から、それに接続される領域に
線分の名称を伝播し、制約条件を用いて線分を順次決定
していく、これにより、線分の大部分が決定できる。な
お、未決定の線分要素のある領域については、制約条件
と屈曲点、端点等の特徴量を用いて引出し線の決定や、
寸法補助線、外形線等を判定すればよい。
First, using the information of the arrow in the feature amount of a certain area,
Find a pair of arrows in other areas and determine the dimension line. Next, the name of the line segment is propagated from the area where the dimension line has been determined to the area connected to it, and the line segments are determined one by one using constraints. This allows most of the line segments to be determined. . In addition, for areas with undetermined line segment elements, leader lines are determined using constraint conditions and feature quantities such as bending points and end points.
What is necessary is to determine the dimension extension line, outline line, etc.

〔実施例〕〔Example〕

以下、本発明の一実施例について図面により説明する。 An embodiment of the present invention will be described below with reference to the drawings.

第1図は本発明で対象とする機械図面認識システムの一
実施例のブロック図である。スキャナ11は認識対象の
機械図面を読み取り、その2値画像を画像メモリ13に
格納する。プロセッサ12はマイクロプロセッサやその
他のデータ処理装置と同様の構成であり、ワーキングメ
モリ14を使用して、入力された図面の領域分割、分割
した各領域の特徴量抽出、この特徴量によるモデル化、
及び、本発明にかかわる後述の線分決定等の処理を行う
、ここでは、領域の分割は階層的に行われるとする。こ
の分割された各領域は、木構造テーブルメモリ15にお
いて木構造情報により管理される。モデル辞書メモリ1
6は、分割領域の形状を抽象して表現した情報(モデル
という)及びその制約条件をあらかじめ格納するもので
ある。
FIG. 1 is a block diagram of an embodiment of a mechanical drawing recognition system targeted by the present invention. The scanner 11 reads a mechanical drawing to be recognized and stores the binary image in the image memory 13. The processor 12 has a similar configuration to a microprocessor or other data processing device, and uses the working memory 14 to divide the input drawing into regions, extract features of each divided region, model using the features,
Then, processing such as line segment determination, which will be described later, related to the present invention is performed.Here, it is assumed that area division is performed hierarchically. Each of the divided areas is managed by tree structure information in the tree structure table memory 15. Model dictionary memory 1
Reference numeral 6 stores information (referred to as a model) that abstractly expresses the shape of the divided region and its constraint conditions in advance.

第2図は、分割された図面全体の各領域と木構造テーブ
ルメモリ15中の木構造情報の対応を示したものである
。これは、木構造情報が8分木の構造を持つ例で1分割
された一つの領域は本構造中の一つのノードで表現され
る。1回の分割は例えば2〜4のいずれかで、8個の同
一レベルのノードのうち有効なのは2〜4個のみで、他
のノードは無効(×印)とされる。一つのノードは、対
応する領域の例えば左上端と右下端の座標及び特徴量を
持ち、この領域を分割して出来た領域はその子ノードと
して表現される。分割及び線分決定時の伝播順序は、こ
の木構造情報を探索することにより実現される。
FIG. 2 shows the correspondence between each area of the entire divided drawing and the tree structure information in the tree structure table memory 15. This is an example in which the tree structure information has an 8-ary tree structure, and one divided area is expressed by one node in the main structure. One division is, for example, one of 2 to 4, and only 2 to 4 of the 8 nodes at the same level are valid, and the other nodes are invalid (marked with an x). One node has the coordinates and feature amounts of, for example, the upper left end and lower right end of the corresponding region, and the regions created by dividing this region are expressed as its child nodes. The propagation order when determining division and line segments is realized by searching this tree structure information.

ここで、分割領域の特徴量は以下の構造をしているとす
る。これを領域オブジェクトと称す、各分割領域に対し
、一つの領域オブジェクトのインスタンスが生成されて
、対応するノードに記録される。
Here, it is assumed that the feature amount of the divided region has the following structure. This is called a region object. For each divided region, one region object instance is generated and recorded in the corresponding node.

領域オブジェクト 他領域との接続状況 Value : ((Xu Yu)(Xr Yr)(X
d Yd)(Xi Yl))線分間の連結状況 Value: (nl n2 n3 n4)矢羽が乗っ
ている線分と矢の方向 Value : (U/R/D/L +/−)線分の端
点 value: 線分の屈曲点 Value ; 抽象化 Value: 他領域との接続状況の(Xu Yu)などは、他の領域
と接続している代表点の、絶対座標である。
Connection status of area object with other areas Value: ((Xu Yu) (Xr Yr) (X
d Yd) (Xi Yl)) Connection status of line segments Value: (nl n2 n3 n4) Line segment on which the arrow feather is placed and direction of arrow Value: (U/R/D/L +/-) Line segment End point value: Value of bending point of line segment; Abstraction value: Connection status with other areas (Xu Yu), etc. are the absolute coordinates of the representative point connected to other areas.

線分間の連結状況のnl n2 n3 n4は各々の領
域の上、右、下、左に対応し、連結成分数を表わす。
The connection status of line segments nl n2 n3 n4 corresponds to the top, right, bottom, and left of each area, and represents the number of connected components.

例えば、(nl n2 n3 n4)が(1120)で
あると、領域の上と右の線分は連結しており、下の成分
は連結していないことを示す。矢羽が乗っている線分と
矢の方向は、例えば(R−)として値を持つ、これは、
右方向に接続している線分上に矢羽が乗っており、矢は
左方向を向いていることを表わす、線分の端点には、端
点を持つ線分が記録される。線分の屈曲点は、屈曲点を
持つ線分が記録される。
For example, (nl n2 n3 n4) is (1120), indicating that the upper and right line segments of the region are connected, and the lower component is not. For example, the line segment on which the arrow is riding and the direction of the arrow have a value of (R-), which is,
An arrow feather is placed on a line segment that connects to the right, indicating that the arrow points to the left, and a line segment having an end point is recorded at the end point of the line segment. As for the bending point of a line segment, a line segment having a bending point is recorded.

以上は、領域を分割し、特徴量を検出した時点で記録さ
れる。抽象化スロットには、この領域が特徴抽出の結果
得られた他領域との接続状況と線分間の連結状況から、
対応するモデルを決定して、そのインスタンス名が入る
The above information is recorded at the time when the area is divided and the feature amount is detected. In the abstraction slot, the connection status of this area with other areas obtained as a result of feature extraction and the connection status of line segments,
Determine the corresponding model and enter its instance name.

モデルは5分割領域における他領域との接続状況と線分
間の連結状況のみの情報で、領域を抽象化した表現であ
る。本認識システムで、分割領域が統合されて、線の名
称が決定されることは、領域に対応するモデルのインス
タンス中の、線分の名前が決定されることによって実現
される。
The model is an abstract representation of the area, with only information about the connection status with other areas and the connection status of line segments in the 5-divided area. In this recognition system, dividing regions are integrated and a line name is determined by determining the name of a line segment in a model instance corresponding to the region.

第3図にモデル形状の具体例を示す、ここで、例えばm
odel−1100は直交する二つの隣接領域に接続し
、それらの線分(本例では上と右の線分)が領域内で連
結している。 model−1200では連結していな
い。第3図では省略したが、さらに。
FIG. 3 shows a concrete example of the model shape, where, for example, m
odel-1100 is connected to two orthogonal adjacent areas, and their line segments (in this example, the upper and right line segments) are connected within the area. In model-1200, they are not connected. Although omitted in Figure 3, there is more.

これらをそれぞれ、右回り、0,90,180゜270
度回転したものがあり1例えば0.180度回転モデル
はmodel−1010e 履odel−1020とな
る。
Rotate these clockwise, 0, 90, 180°270, respectively.
For example, a model rotated by 0.180 degrees is model-1010e and model-1020.

モデルは、まず他領域との接続状況で分類し、次に線分
間の連結状況で分類するというように階層化され、その
制約条件と一緒にモデル辞書メモリ16にあらかじめ保
持されている。第4図はモデルと制約条件(許される線
分の組合せ)の関連の一例を示したものである。なお、
第4図では外形線をV、寸法線をd、寸法補助線をe、
引出し線をΩと略記しである。
The models are hierarchically classified, first by the connection status with other areas, and then by the connection status of line segments, and are stored in the model dictionary memory 16 in advance together with their constraints. FIG. 4 shows an example of the relationship between a model and constraints (permitted combinations of line segments). In addition,
In Figure 4, the outline line is V, the dimension line is d, the dimension extension line is e,
The leader line is abbreviated as Ω.

第5図は本発明の線分決定方法の一実施例のフローチャ
ートであり、以下、これにもとづいて説明する。
FIG. 5 is a flowchart of an embodiment of the line segment determination method of the present invention, and the following description will be based on this.

入 カニ 認識対象の機械図面をスキャナ11で読み込み、その2
値化画像を第2図のように領域分割し、各々の分割領域
を特徴量によって第3図に示すモデルの何れかに分類し
た結果が入力される。これは、既に、木構造テーブルメ
モリ15内の木構造情報の各領域に対応するノードにお
ける領域オブジェクトの抽象スロットに保持されている
Input The mechanical drawing for crab recognition is read with the scanner 11, and the second
The value image is divided into regions as shown in FIG. 2, and the results of classifying each divided region into one of the models shown in FIG. 3 based on the feature amount are input. This is already held in the abstract slot of the area object in the node corresponding to each area of the tree structure information in the tree structure table memory 15.

濾l11欠決淀−: 領域オブジェクトの矢羽の情報を用いて寸法線dを決定
する。即ち、モデルに対応する領域について、矢羽があ
りかつ矢羽が乗っている線分の接続先に、対応する矢羽
があるかどうか調べる。もしあれば、領域中の矢羽の乗
っている線分に対応する線分を寸法線dと決定する。こ
のとき、矢羽の乗っている線分が他領域と接続している
方向と。
Filter l11 missing decision-: Determine the dimension line d using the information on the fletching of the area object. That is, in the region corresponding to the model, it is checked whether there is a corresponding arrow at the connection destination of the line segment on which the arrow is located. If there is, the line segment corresponding to the line segment on which the arrow feather is placed in the area is determined as the dimension line d. At this time, the direction in which the line segment on which the arrow feathers are connected to other areas.

矢羽の方向により、対となる矢羽を他領域に求めること
ができた場合にのみ、寸法線が確定する。
The dimension line is determined only when a pair of fletching feathers can be found in another region depending on the direction of the fletching feathers.

第6図Ca)はこれを示している。Figure 6 Ca) shows this.

寸法線・寸法補助線・外形線・引出線の  二次に、領
域内に許される線分の組に対する制約条件を用いて、寸
法線dが決定した領域の他の線分要素を決定する。
Next, other line segment elements in the area where the dimension line d has been determined are determined using constraints on the set of line segments allowed within the area.

寸法線dが求まった領域から、それに接続される領域に
線分の名称を伝播する。領域内の線分要素の値が、他の
領域から伝播されて決まったら、制約条件を用いて、領
域内の他の線分要素で、決定できるものは決定して、さ
らに他領域に伝播する。伝播は寸法、@d、寸法補助I
JIAe 、外形IIAvの順に伝播させる。これによ
り、d、e、v、の大半が決定される。第6図(b)は
これを示している。
The name of the line segment is propagated from the area where the dimension line d has been determined to the area connected to it. Once the values of line segment elements in the region are determined by propagation from other regions, use constraints to determine what other line segment elements in the region can be determined, and then propagate to other regions. . Propagation is dimension, @d, dimension assistance I
It is propagated in the order of JIAe and outline IIAv. This determines most of d, e, and v. FIG. 6(b) shows this.

の             と     の    
:最後に、未決定の線分要素がある領域に対し。
of and of
:Finally, for areas with undetermined line segment elements.

制約条件と、屈曲点、端点を用いて、引出線Qの決定、
寸法線補助線eと外形線Vの判定をする。
Determination of leader line Q using constraints, bending points, and end points,
Determine the dimension line auxiliary line e and the outline line V.

LU: 各分割領域に含まれる線分を、外形線(隠れ線を含む)
V、寸法IIAd、寸法補助線(中心線を含む)e、引
出し線a、の何れに分類した結果が出方される。
LU: The line segments included in each divided area are converted into outline lines (including hidden lines).
The results of classification into V, dimension IIAd, dimension extension line (including center line) e, and leader line a are displayed.

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

以上説明したように、本発明によれば、領域分割方式を
とる機械図面認識システムにおいて、制約条件により分
割領域内、領域間の線分決定が効重化される。
As described above, according to the present invention, in a mechanical drawing recognition system that uses an area division method, determining line segments within and between divided areas is given more weight according to constraint conditions.

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

第1図は本発明で対象とする機械図面認識システムの一
実施例のブロック図、第2図は領域分割と木構造情報の
対応を示す図、第3図は領域の形状モデルの一例を示す
図、第4図はモデルと制約条件の関係の一例を示す図、
第5図は本発明の線分決定方法の一実施例のフローチャ
ート、第6図はその処理の具体例を示す図である。 11・・・スキャナ、 12・・・プロセッサ、13・
・・画像メモリ、  14・・・ワーキングメモリ。 15・・・木構造テーブルメモリ、 16・・・モデル辞書メモリ。 (b) 第3 図 (え)
Figure 1 is a block diagram of an embodiment of the mechanical drawing recognition system targeted by the present invention, Figure 2 is a diagram showing the correspondence between region division and tree structure information, and Figure 3 is an example of a region shape model. Figure 4 is a diagram showing an example of the relationship between the model and constraints,
FIG. 5 is a flowchart of an embodiment of the line segment determining method of the present invention, and FIG. 6 is a diagram showing a specific example of the process. 11...Scanner, 12...Processor, 13.
...Image memory, 14...Working memory. 15... Tree structure table memory, 16... Model dictionary memory. (b) Figure 3 (e)

Claims (1)

【特許請求の範囲】[Claims] (1)図面を複数の領域に分割し、分割した各領域につ
いてその特徴量によって予め用意したモデルのいずれか
に分類して図面全体を認識する機械図面認識システムに
おいて、分割した各領域に含まれる線分(外形線、寸法
線、寸法補助線、引出線等)を決定する方法であって、 各々のモデルに、線分の他領域との接続状況と領域内の
連結成分によって定まる制約条件を付加し、まず、領域
の特徴量における矢印の情報を用いて寸法線を決定し、
次に、寸法線が決まった領域から、それに接続される領
域に線分を伝播していき、制約条件を用いて各領域の線
分を順次決定することを特徴とする機械図面の線分決定
方法。
(1) In a mechanical drawing recognition system that recognizes the entire drawing by dividing a drawing into multiple regions and classifying each divided region into one of the pre-prepared models based on its feature values, the information contained in each divided region is A method for determining line segments (outline lines, dimension lines, extension lines, leader lines, etc.), which applies constraints determined by the connections of line segments to other regions and connected components within the region to each model. First, determine the dimension line using the arrow information in the feature amount of the area,
Next, the line segment determination for mechanical drawings is characterized in that the line segments are propagated from the area where the dimension line is determined to the area connected to the area, and the line segments in each area are sequentially determined using constraint conditions. Method.
JP1090445A 1989-04-10 1989-04-10 Line segment determining method for machine drawing Pending JPH02268375A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1090445A JPH02268375A (en) 1989-04-10 1989-04-10 Line segment determining method for machine drawing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1090445A JPH02268375A (en) 1989-04-10 1989-04-10 Line segment determining method for machine drawing

Publications (1)

Publication Number Publication Date
JPH02268375A true JPH02268375A (en) 1990-11-02

Family

ID=13998819

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1090445A Pending JPH02268375A (en) 1989-04-10 1989-04-10 Line segment determining method for machine drawing

Country Status (1)

Country Link
JP (1) JPH02268375A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011054064A (en) * 2009-09-03 2011-03-17 Ricoh Co Ltd Apparatus and method for processing image, and program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011054064A (en) * 2009-09-03 2011-03-17 Ricoh Co Ltd Apparatus and method for processing image, and program

Similar Documents

Publication Publication Date Title
US5327568A (en) Apparatus for supporting graphic data driven program development and for displaying instruction execution results superimposed on the graphic program
US7737966B2 (en) Method, apparatus, and system for processing geometric data of assembled parts
US7075532B2 (en) Robust tetrahedralization and triangulation method with applications in VLSI layout design and manufacturability
JP2627512B2 (en) Network diagram creation device
US8228326B2 (en) Three dimensional surface and solid query processing
JP3205406B2 (en) Reference target variable determination processing method and translation processing system
JP3242811B2 (en) Method and apparatus for creating model for finite element analysis
US5179645A (en) Method of recognizing overlapped graphics in each degree of overlapping thereof
JP3430431B2 (en) Database search device and database search method
JPH02268375A (en) Line segment determining method for machine drawing
JP3099621B2 (en) CAD system for standard parts database
JP2701003B2 (en) Solid model synthesizing apparatus and solid model synthesizing method
JP3430273B2 (en) Database search device and database search method
JPH1078979A (en) Method for generating solid body from two-dimensional cad drawing and recording medium recording solid body generation program
US5212783A (en) System which directionally sums signals for identifying and resolving timing inconsistencies
JPH05225290A (en) Shape correction system by three dimensional parametric function
JP3032874B2 (en) Equivalent circuit creation method and logic simulation method
JPH01193973A (en) Interference checking method for three-dimensional shape
JP2800544B2 (en) Image data centering processing method
JP3603270B2 (en) Method and apparatus for converting logic circuit description data
JP2988024B2 (en) Line image collation device
JP2610822B2 (en) Optimization processing method
JPH01133176A (en) Logical circuit block segmenting system
JPH04111173A (en) Graphic expressing system
JP2867650B2 (en) Symbol candidate area detection method