JPH07120367B2 - Symbol recognition method for drawing reader - Google Patents
Symbol recognition method for drawing readerInfo
- Publication number
- JPH07120367B2 JPH07120367B2 JP2154911A JP15491190A JPH07120367B2 JP H07120367 B2 JPH07120367 B2 JP H07120367B2 JP 2154911 A JP2154911 A JP 2154911A JP 15491190 A JP15491190 A JP 15491190A JP H07120367 B2 JPH07120367 B2 JP H07120367B2
- Authority
- JP
- Japan
- Prior art keywords
- loop
- symbol
- shape
- determined
- recognition method
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Landscapes
- Character Discrimination (AREA)
- Image Analysis (AREA)
Description
【発明の詳細な説明】 [概要] ループを形成する読取図面中のシンボルを抽出して認識
する図面読取装置のシンボル認識方法に関し、 テンプレートやプロッタ等で描かれたシンボルの認識率
を向上し、且つ図面の種類毎のシンボル辞書を不要にす
ることを目的とし、 図面イメージの内側輪郭線をベクトル化してループを作
成し、接続できるループ毎にグループ化した後にグルー
プ内の各ループの形状をループ形状辞書パターンとのマ
ッチングにより判定し、最終的にループ形状パターンの
組合せを示すシンボル辞書パターンとマッチングしてシ
ンボル形状を決定するように構成する。DETAILED DESCRIPTION OF THE INVENTION [Outline] A symbol recognition method of a drawing reading apparatus for extracting and recognizing symbols in a read drawing forming a loop, and improving a recognition rate of symbols drawn by a template or a plotter. In addition, for the purpose of eliminating the need for a symbol dictionary for each type of drawing, the inside contour lines of the drawing image are vectorized to create loops, the loops are grouped for each loop that can be connected, and then the shape of each loop in the group is looped. The determination is made by matching with the shape dictionary pattern, and finally the symbol shape is determined by matching with the symbol dictionary pattern indicating the combination of the loop shape patterns.
[産業上の利用分野] 本発明は、ループを形成する読取図面中のシンボルを抽
出して認識する図面読取装置のシンボル認識方法に関
し、特にテンプレートやプロッタ等で綺麗に描かれたシ
ンボルを抽出して認識する図面読取装置のシンボル認識
方法に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a symbol recognition method of a drawing reading device for extracting and recognizing a symbol in a read drawing forming a loop, and in particular, extracting a symbol neatly drawn by a template, plotter or the like. TECHNICAL FIELD The present invention relates to a symbol recognition method of a drawing reading device for recognition.
近年、石油精製プラント装置の系統図で入力図面規約に
従うフリーハンド図面を対象としたCADシステムに読取
図面データを入力する自動入力システムは、研究開発も
進み実用化レベルにまで達したものも出現してきてい
る。しかし、この自動入力システムをテンプレートやプ
ロッタで描かれた綺麗な図面に適用した場合、図面内の
シンボルの歪みが少ないのにもかかわらずフリーハンド
の場合と同程度の認識率しか得られず、認識率の改善が
望まれる。In recent years, automatic input systems that input read drawing data into CAD systems for freehand drawings that comply with input drawing conventions in the system diagrams of petroleum refining plant equipment have come to the level of practical use due to research and development. ing. However, when this automatic input system is applied to a clean drawing drawn with a template or plotter, the recognition rate is almost the same as in the freehand case, although the distortion of the symbols in the drawing is small. Improvement of recognition rate is desired.
[従来の技術] 従来のシンボル認識方法は、入力図面規約に従ったフリ
ーハンド図面を対象としており、図面シンボルのイメー
ジデータを細線化処理により細線化ベクトルデータに変
換し、細線化ベクトルデータからループ、屈曲点、塗り
潰しなどの特徴条件からシンボル抽出を行ない、その
後、シンボル辞書とのイメージデータレベルでのパター
ンマッチングによりシンボル認識を行なっている(日経
エレクトロニクス418,pp80-82(1987)「手書き図面自
動読取りシステム」、電子情報通信学会編「パターン認
識」コロナ社(1988)pp196-201参照)。[Prior Art] A conventional symbol recognition method is intended for a freehand drawing according to an input drawing convention, and converts image data of a drawing symbol into thinned vector data by thinning processing, and loops from thinned vector data. , Symbol points are extracted based on characteristic conditions such as bending points and fills, and then symbol recognition is performed by pattern matching at the image data level with the symbol dictionary (Nikkei Electronics 418, pp80-82 (1987) "Handwriting Drawing Automatic "Reading system", edited by the Institute of Electronics, Information and Communication Engineers, "Pattern Recognition," Corona Publishing Co., Ltd. (1988) pp196-201).
[発明が解決しようとする課題] しかしながら、従来のシンボル認識方法にあっては、イ
メージデータから生成された細線化ベクトルデータをベ
ースにループ抽出を行なっており、テンプレート、プロ
ッタにより描かれたシンボルのように歪みが少ないもの
であっても、シンボルを構成するループの形状を判定で
きないためにシンボル抽出に誤りを発生し、認識率を向
上できない問題があった。[Problems to be Solved by the Invention] However, in the conventional symbol recognition method, the loop extraction is performed based on the thinned vector data generated from the image data, and the symbols drawn by the template and the plotter are extracted. Even if the distortion is small, there is a problem in that the shape of the loop forming the symbol cannot be determined, an error occurs in symbol extraction, and the recognition rate cannot be improved.
第11図は従来方法におけるシンボル抽出の誤りの例を示
したもので、同図(a)の場合には、A部の線が短いた
めに本来のシンボル以外の部分を含んだシンボル抽出を
行ってしまった場合であり、また同図(b)は、矩形に
包含された円により4箇所に形成されるループの各々を
独立したシンボルと見做したために誤りを生じた場合で
ある。FIG. 11 shows an example of a symbol extraction error in the conventional method. In the case of FIG. 11A, since the line of the part A is short, the symbol extraction including the part other than the original symbol is performed. FIG. 2B shows a case where an error occurs because each of the loops formed by the circles included in the rectangle at four positions is regarded as an independent symbol.
一方、図面シンボルは円、円弧、三角形、四角形、六角
形等の基本図面のみならず、これら基本図形の組合せか
ら成り、例えば石油精製プラント装置系統図から電気回
路図というように入力図面の種類が変わると使用してい
るシンボルが全く異なるため、図面の種類毎にシンボル
辞書を準備しなければならない問題もあった。On the other hand, the drawing symbols are not only basic drawings such as circles, arcs, triangles, quadrangles, and hexagons, but also consist of combinations of these basic figures. For example, the type of input drawings such as oil refinery plant system diagram to electric circuit diagram There is also a problem that a symbol dictionary must be prepared for each type of drawing, because the symbols used are completely different when changing.
本発明は、このような従来の問題点に鑑みてなされたも
ので、テンプレートやプロッタ等で正確に描かれたシン
ボルの認識率を向上すると共に図面毎のシンボル辞書を
不要にした図面読取装置のシンボル認識方法を提供する
ことを目的とする。The present invention has been made in view of such conventional problems, and improves a recognition rate of symbols accurately drawn by a template, a plotter, or the like, and a drawing reading apparatus that does not require a symbol dictionary for each drawing. It is intended to provide a symbol recognition method.
[課題を解決するための手段] 第1図は本発明の原理説明図である。[Means for Solving the Problems] FIG. 1 is a diagram illustrating the principle of the present invention.
まず本発明は、テンプレートやプロッタ等で描かれたル
ープを形成する読取図面中のシンボルを抽出して認識す
る図面読取装置のシンボル認識方法を対象とする。First, the present invention is directed to a symbol recognition method of a drawing reading device for extracting and recognizing symbols in a read drawing forming a loop drawn by a template, plotter, or the like.
このようなシンボル認識方法につき本発明にあっては、 図面イメージの内側輪郭線をベクトル化してループを
作成する第1過程10と; 第1過程10で作成されたループを接続できるループ毎
にグループ化する第2過程12と; 第2過程12で得られたグループ毎の各ループの形状を
ループ形状辞書パターンとのマッチングにより判定する
第3過程14と; 第3過程14で判定されたグループ内の各ループ形状の
組合せをシンボル形状辞書パターンとマッチングしてシ
ンボル形状を決定する第4過程16と; を備えたことを特徴とする。According to the present invention regarding such a symbol recognition method, a first step 10 for vectorizing an inner contour line of a drawing image to create a loop; and a group for each loop to which the loop created in the first step 10 can be connected. A second step 12 for converting the loop shape of each group obtained in the second step 12 by matching with a loop shape dictionary pattern; and a third step 14; within the group determined in the third step 14. And a fourth step 16 for determining a symbol shape by matching each combination of loop shapes with a symbol shape dictionary pattern.
ここで第1過程10で図面イメージの内側輪郭線をベクト
ル化してループを作成する際には、所定の矩形サイズで
決まる許容範囲内に作成ループが包含されるか否か判定
し、該許容範囲内に包含される場合にのみベクトル化さ
れたループを有効とする。Here, in the first step 10, when the loop is created by vectorizing the inner contour line of the drawing image, it is determined whether the created loop is included in the allowable range determined by the predetermined rectangular size, and the allowable range is determined. A vectorized loop is valid only if it is contained within.
また第2過程12で作成ループをグループ化する際には、
所定の矩形サイズで決まる許容範囲内にグループ化され
る複数のループが包含されるか否か判定し、該許容範囲
内に包含される場合にのみ同一グループにグループ化す
る。Also, when grouping created loops in the second step 12,
It is determined whether or not a plurality of loops grouped within an allowable range determined by a predetermined rectangular size are included, and only when included within the allowable range, the loops are grouped into the same group.
更に第3過程14におけるグループ内の各ループ形状の判
定は、少なくとも円、半円、1/4円、3/4円、台形、正方
形、長方形、六角形、三角形及び直角三角形に分類した
ループ形辞書パターンを使用して判定する。Further, the determination of each loop shape in the group in the third step 14 is at least a loop shape classified into a circle, a semicircle, a 1/4 circle, a 3/4 circle, a trapezoid, a square, a rectangle, a hexagon, a triangle and a right triangle. Determine using a dictionary pattern.
更に又、第4過程16において複数のループ形状の組合わ
せを含む特定のシンボル形状を判定した際には、複数の
ループ形状の接続形状を追加確認する。Furthermore, when the specific symbol shape including the combination of the plurality of loop shapes is determined in the fourth step 16, the connection shapes of the plurality of loop shapes are additionally confirmed.
[作用] このような構成を備えた本発明による図面読取装置のシ
ンボル認識方法によれば、テンプレートやプロッタ等で
描かれた図面内のシンボルにおいて、内側輪郭線の歪み
が少ない点に着目し、内側輪郭線をベクトル化してルー
プ形状を決定し、この結果を基にシンボル抽出及び認識
を行ない、テンプレートやプロッタによる図面のシンボ
ル認識率を向上させることができる。[Operation] With the symbol recognition method of the drawing reading device according to the present invention having such a configuration, attention is paid to the fact that the inside contour line is less distorted in a symbol in a drawing drawn by a template, plotter, or the like. It is possible to vectorize the inner contour line to determine the loop shape, perform symbol extraction and recognition based on the result, and improve the symbol recognition rate of the drawing by the template or plotter.
また内側輪郭線から決定されたループ形状を接続できる
ループ毎にグループ化し、ループ基本形状を格納したル
ープ形状辞書パターンとのマッチングによりループ形状
を決定し、最終的にループ形状の組合せによってシンボ
ル形状を特定したシンボル構成辞書パターンとグループ
を構成するループ形状の組合せとマッチングによりシン
ボル形状を認識しているため、円、円弧、三角形、四角
形、六角形等の基本形状でなるループ形状辞書パターン
は、図面の種類が変っても共通に使用でき、基本形状の
組合せを決めたシンボル辞書パターンを変えるだけで、
図面の種類に応じたシンボル認識を可能とし、実質的に
図面毎のシンボル辞書を不要にできる。In addition, the loop shape determined from the inner contour line is grouped for each loop that can be connected, the loop shape is determined by matching with the loop shape dictionary pattern that stores the basic loop shape, and finally the symbol shape is determined by combining the loop shapes. Since the symbol shape is recognized by the combination and matching of the specified symbol structure dictionary pattern and the loop shape forming the group, the loop shape dictionary pattern consisting of basic shapes such as circles, arcs, triangles, squares and hexagons is Can be used in common even if the type of changes, just change the symbol dictionary pattern that determines the combination of basic shapes,
The symbols can be recognized according to the type of the drawing, and the symbol dictionary for each drawing can be substantially eliminated.
[実施例] 第2図は本発明のシンボル認識方法が実施される図面読
取装置の実施例構成図である。[Embodiment] FIG. 2 is a block diagram of an embodiment of a drawing reading apparatus in which the symbol recognition method of the present invention is implemented.
第2図において、18は画像入力部であり、例えばOCR等
により光学的に図面、例えば石油精製プラント装置系統
図等を読み取ってイメージデータに変換する。本発明に
あっては、画像入力部18からテンプレートやプロッタで
描かれた図面を読み取った場合の読取図面中のシンボル
の認識を有効に行なうものである。画像入力部18で読み
取られた図面イメージデータは輪郭ベクトル化部20に与
えられ、イメージの輪郭を円とラインでベクトル近似し
てループを作成する。この輪郭ベクトル化部20として従
来方法にあっては、細線化処理により細線化ベクトルを
生成してループを作成しているが、本発明のシンボル認
識方法にあっては、シンボルイメージの内側輪郭線を円
とラインでベクトル近似してループを作成している。即
ち、第4図に示すように、例えばテンプレートやプロッ
タで描かれたシンボルとして円の入力イメージを対象と
した場合、テンプレートやプロッタで描かれた円のシン
ボル44は、線にある程度の太さをもつイメージデータと
して生成される。このような線の太さをもったシンボル
44に対し、従来方法にあっては、に示すように細線化
処理を施し、外側輪郭線と内側輪郭線の間に細線化され
たイメージデータを残し、これを円とラインでベクトル
近似して細線化ベクトルを生成する。この細線化処理に
あっては、細線化されたイメージ46は必ずしも真円とは
ならず、図示のように線の太さの範囲でふらつきをもっ
たデータとなってしまう。このため、テンプレートやプ
ロッタによりシンボル44に示すようにきれいに描かれた
円であっても、細線化処理により歪んだ細線化イメージ
データ46となってしまい、シンボル認識に失敗する原因
となる。In FIG. 2, reference numeral 18 denotes an image input unit, which optically reads a drawing, for example, a petroleum refining plant system diagram, by OCR or the like and converts it into image data. According to the present invention, when a drawing drawn by a template or a plotter is read from the image input unit 18, the symbols in the read drawing are effectively recognized. The drawing image data read by the image input unit 18 is given to the contour vectorization unit 20, and the contour of the image is vector-approximated by a circle and a line to create a loop. In the conventional method as the contour vectorization unit 20, a thinning vector is generated by thinning processing to create a loop, but in the symbol recognition method of the present invention, the inner contour line of the symbol image is generated. A vector is approximated with a circle and a line to create a loop. That is, as shown in FIG. 4, when a circle input image is used as a symbol drawn on a template or plotter, for example, the circle symbol 44 drawn on the template or plotter has a line with a certain thickness. It is generated as image data. A symbol with such a line thickness
On the other hand, in the conventional method, the thinning process is performed as shown in (4), and the thinned image data is left between the outer contour line and the inner contour line. Generate a thinned vector. In this thinning processing, the thinned image 46 does not necessarily become a perfect circle, but becomes data having fluctuation in the range of line thickness as shown in the figure. For this reason, even a circle drawn neatly as shown by the symbol 44 by the template or plotter becomes the thinned image data 46 which is distorted by the thinning process, which causes the symbol recognition to fail.
そこで本発明にあっては、に示すように、テンプレー
トやプロッタで描かれたシンボルの内側輪郭線48に歪み
が殆どないことに着目し、この内側輪郭線48をイメージ
データ50として取り出し、この内側輪郭線イメージデー
タ50を円とラインでベクトル近似してループを作成す
る。Therefore, in the present invention, as shown in, paying attention to the fact that the inner contour line 48 of the symbol drawn by the template or plotter has almost no distortion, the inner contour line 48 is taken out as the image data 50, and A loop is created by vector-approximating the outline image data 50 with a circle and a line.
ここで、ループとは、線図形上のある点から出発し、同
じ点を2度通ることなく元の出発点に戻ることのできる
線図形の部分のうち、この内側に他の連結した閉ループ
が存在しないものと定義される。Here, a loop is a portion of a line figure that can start from a certain point on the line figure and return to the original starting point without going through the same point twice, and inside this, another connected closed loop Defined as nonexistent.
再び第2図を参照するに、輪郭線ベクトル化部20でシン
ボルの内側輪郭線を対象としたベクトル化で得られたル
ープはシンボル抽出部22に与えられる。シンボル抽出部
22は輪郭ループグループ化部24とグループループ形状決
定部26を備える。輪郭ループグループ化部24におけるル
ープ処理を実行するため、ワークテーブル1,2,3が設け
られる。また、グループループ形状決定部26においてル
ープ形状を決定するため、ループ形状辞書テーブル34が
使用される。Referring again to FIG. 2, the loop obtained by vectorization of the inner contour line of the symbol in the contour vectorization unit 20 is given to the symbol extraction unit 22. Symbol extractor
22 includes a contour loop grouping unit 24 and a group loop shape determining unit 26. Work tables 1, 2, and 3 are provided to execute the loop processing in the contour loop grouping unit 24. In addition, the loop shape dictionary table 34 is used to determine the loop shape in the group loop shape determination unit 26.
即ち、輪郭ループグループ化部24は輪郭ベクトル化部20
で作成されたループを接続できるループ毎にまとめてグ
ループ化する。また、グループループ形状決定部26は輪
郭ループグループ化部24で得られたグループを構成する
各ループの形状をループ形状辞書テーブル34の登録パタ
ーンとのマッチングにより判定し、判定したループ形状
パターン番号をグループ毎に格納したシンボル構成ルー
プ形状テーブル36を作成する。シンボル認識部38はシン
ボル構成ループ形状テーブル36からグループ毎にグルー
プを構成するループ形状パターン番号を取り出し、シン
ボル構成辞書テーブル40に予め格納されているシンボル
形状を構成するループ形状パターンの組合せとのマッチ
ングを行なってシンボル形状を決定し、認識結果42とし
て出力する。That is, the contour loop grouping unit 24 includes the contour vectorization unit 20.
Group the loops created in the above for each loop that can be connected. Further, the group loop shape determination unit 26 determines the shape of each loop forming the group obtained by the contour loop grouping unit 24 by matching with the registered pattern of the loop shape dictionary table 34, and determines the determined loop shape pattern number. A symbol configuration loop shape table 36 stored for each group is created. The symbol recognition unit 38 retrieves the loop shape pattern number forming the group for each group from the symbol structure loop shape table 36, and matches it with the combination of the loop shape patterns forming the symbol shape stored in the symbol structure dictionary table 40 in advance. Is performed to determine the symbol shape and output as the recognition result 42.
第3図は第2図の実施例構成図で実施される本発明のシ
ンボル認識方法の一実施例を示した実施例処理フロー図
である。FIG. 3 is an example processing flow chart showing an example of the symbol recognition method of the present invention implemented in the configuration diagram of the example of FIG.
第3図の処理フローはステップS1〜S12で構成される
が、第1図に示した第1過程〜第4過程との対応関係
は、ステップS1〜S4が第1過程、ステップS5〜S8が第2
過程、ステップS9,S10が第3過程、ステップS11,S12が
第4過程となっている。以下、第3図の第1過程〜第4
過程のそれぞれにつき詳細に説明する。The processing flow of FIG. 3 is composed of steps S1 to S12, but the correspondence with the first to fourth steps shown in FIG. 1 is that steps S1 to S4 are the first step and steps S5 to S8 are the same. Second
Steps S9 and S10 are the third step, and steps S11 and S12 are the fourth step. Hereinafter, the first process to the fourth process in FIG.
Each of the processes will be described in detail.
[第1過程] この第1過程はステップS1〜S4で構成され、テンプレー
トやプロッタ等で描かれたループを形成する読取図面中
のシンボルを抽出し、図面イメージの内側輪郭線をベク
トル化してループを作成する。[First Step] This first step is composed of steps S1 to S4, extracts symbols in the read drawing forming a loop drawn by a template or plotter, and vectorizes the inner contour line of the drawing image to create a loop. To create.
まず、ステップS1(以下「ステップ」は省略)で円、円
弧、ラインにより図面イメージデータの内側輪郭線をベ
クトル化してループを作成する。この内側輪郭線のベク
トル化によるループ作成は第3図に示したとおりであ
る。First, in step S1 (hereinafter “step” is omitted), the inner contour line of the drawing image data is vectorized by a circle, a circular arc, and a line to create a loop. The loop creation by vectorization of the inner contour line is as shown in FIG.
続いてS2に進み全ループのチェックが終了したか否か判
定し、全ループのチェックが済んでいなければS3に進
み、S1で作成したループのループサイズが許容範囲内か
否か判定する。即ち、第5図に示すように、図面の種類
によりシンボルを構成するループを包含する縦H、横V
の寸法をもつ最小矩形サイズが予め定まっていることか
ら、このループサイズを決める最小矩形サイズで定まる
許容範囲内に作成したループが包含されるか否か判定す
る。具体的には、例えばループを構成する三角形のx軸
への投影距離を水平上限サイズVと比較し、また三角形
のy軸投影距離を垂直上限サイズHと比較すればよい。Then, the process proceeds to S2, and it is determined whether or not the checking of all loops is completed. If the checking of all loops is not completed, the process proceeds to S3, and it is determined whether or not the loop size of the loop created in S1 is within the allowable range. That is, as shown in FIG. 5, a vertical H and a horizontal V that include loops forming a symbol depending on the type of drawing.
Since the minimum rectangle size having the dimension of is determined in advance, it is determined whether the created loop is included within the allowable range determined by the minimum rectangle size that determines this loop size. Specifically, for example, the projection distance of the triangle forming the loop on the x-axis may be compared with the horizontal upper limit size V, and the y-axis projection distance of the triangle may be compared with the vertical upper limit size H.
再び第3図を参照するに、S3でループサイズが許容範囲
内にあればS4に進み、第2図のワークテーブル1に作成
したループを格納する。一方、S3で作成したループのサ
イズが許容範囲内を外れている場合には、シンボルを構
成するループとは見做さず、ワークテーブル1へのルー
プ登録を行なわない。Referring again to FIG. 3, if the loop size is within the allowable range in S3, the process proceeds to S4, and the created loop is stored in the work table 1 in FIG. On the other hand, if the size of the loop created in S3 is out of the allowable range, it is not regarded as a loop forming a symbol and the loop is not registered in the work table 1.
S2で読取図面から得られた全ループのチェックが終了す
ると、S5〜S8で成る第2過程に進む。When the checking of all loops obtained from the read drawing is completed in S2, the process proceeds to the second step consisting of S5 to S8.
[第2過程] この第2過程にあっては、第1過程で作成されたワーク
テーブル1に格納されたループを対象とし、接続できる
ループ毎にグループ化する処理を行なう。[Second Process] In the second process, the loops stored in the work table 1 created in the first process are targeted, and a process of grouping each connectable loop is performed.
まずS5でワークテーブル1内のループを対象として隣接
関係を調べ、接続できるループ毎にグループ化してワー
クテーブル2に格納する。First, in S5, the adjacency relation is examined for the loops in the work table 1, and the loops that can be connected are grouped and stored in the work table 2.
続いてS6に進み、ワークテーブル2のチェック済みの判
定処理を経てS7に進み、ワークテーブル2に格納したグ
ループ化したループサイズは許容範囲内か否か判定す
る。このS7におけるグループ化したループサイズの許容
範囲内か否かの判定は第6図に示すようにして行なわれ
る。Then, the process proceeds to S6, and after the checked process of the work table 2 is performed, the process proceeds to S7, and it is determined whether the grouped loop size stored in the work table 2 is within the allowable range. The determination in S7 as to whether or not it is within the allowable range of the grouped loop size is performed as shown in FIG.
第6図は石油精製プラント装置系統図に使用されるシン
ボルの1つを(a)に入力形状として示しており、第3
図の第1過程のS3におけるループサイズの許容範囲内か
否かの判定で使用した各ループを包含する最小矩形は
(b)に示すようになる。この第6図(b)に示す4つ
の最小矩形に含まれる各ループは接続関係にあることか
ら、グループ化されてワークテーブル2に格納されてい
る。そこで、第3図のS7にあっては、第6図(c)に示
すように、同図(b)の各ループを包含する最小矩形サ
イズで決まる許容範囲内にグループ化したループサイズ
が含まれるか否か判定する。FIG. 6 shows one of the symbols used in the oil refining plant equipment system diagram in (a) as an input shape.
The minimum rectangle including each loop used in the determination of whether the loop size is within the allowable range in S3 in the first step in the figure is as shown in (b). Since the loops included in the four minimum rectangles shown in FIG. 6B have a connection relationship, they are grouped and stored in the work table 2. Therefore, in S7 of FIG. 3, as shown in FIG. 6C, the loop size grouped within the allowable range determined by the minimum rectangular size including each loop of FIG. 6B is included. Is determined.
再び第3図を参照するに、S7でグループ化したループサ
イズが許容範囲内にあればS8に進み、ワークテーブル2
のグループをワークテーブル3に格納する。Referring again to FIG. 3, if the loop size grouped in S7 is within the allowable range, the process proceeds to S8 and the work table 2
Group is stored in the work table 3.
S6〜S8によりグループ化したループサイズが許容範囲内
に含まれるか否かのチェックがワークテーブル2の全て
について終了すると、S9,S10で成る第3過程に進む。When the check on whether or not the loop size grouped by S6 to S8 is included in the allowable range is completed for all of the work table 2, the process proceeds to the third step consisting of S9 and S10.
[第3過程] 第3過程にあっては第2過程で判定されたグループのそ
れぞれに付き、各グループを構成する1または複数のル
ープ形状をループ形状辞書パターンとのマッチングによ
り判定する。[Third Process] In the third process, for each of the groups determined in the second process, one or a plurality of loop shapes forming each group are determined by matching with the loop shape dictionary pattern.
即ち、S9でワークテーブル3の全チェックが終了したか
否か判定してS10に進み、S10でグループを構成する各ル
ープ形状を判定し、判定結果によりシンボル構成ループ
形状テーブル36を作成する。That is, in S9, it is determined whether or not all the checks of the work table 3 are completed, and the process proceeds to S10. In S10, each loop shape forming the group is determined, and the symbol configuration loop shape table 36 is created based on the determination result.
具体的に石油精製プラント装置系統図で使用するシンボ
ルを例にとって説明すると次のようになる。A concrete example of symbols used in the oil refining plant system diagram is as follows.
第7図は石油精製プラント装置系統図で使用されるシン
ボルの説明図であり、図示のようにNo.1からNo.12の12
種類のループ構成を持つシンボルが使用される。このよ
うなNo.1〜No.12から成るシンボルに付き、第3図のS10
におけるループ形状を判定するために使用するループ形
状辞書テーブル34には第8図に示すループ形状辞書パタ
ーンが予め登録されている。Fig. 7 is an explanatory diagram of the symbols used in the petroleum refining plant system diagram. As shown in the figure, No. 1 to No. 12
Symbols with different loop configurations are used. For symbols consisting of No. 1 to No. 12 like this, refer to S10 in FIG.
The loop shape dictionary pattern 34 shown in FIG. 8 is registered in advance in the loop shape dictionary table 34 used to determine the loop shape.
第8図においてループ形状辞書パターンは円としてのパ
ターン100、上側の半円としてのパターン110、下側の半
円としてのパターン111、3/4円で成るパターン120、1/4
円で成るパターン121、正方形で成るパターン200、長方
形で成るパターン210、六角形で成るパターン300、上向
きの台形で成るパターン310、下向きの台形で成るパタ
ーン320、右向きの三角形で成るパターン400、左向きの
三角形で成るパターン410、直角部分が左上隅の直角三
角形で成るパターン500、直角部分が左下隅の直角三角
形で成るパターン501、直角部分が右下隅の直角三角形
で成るパターン502、更に直角部分が右上隅の直角三角
形で成るパターン503で構成される。In FIG. 8, the loop-shaped dictionary pattern is a pattern 100 as a circle, a pattern 110 as an upper half circle, a pattern 111 as a lower half circle, and a pattern 120, 1/4 consisting of 3/4 circles.
Circle pattern 121, Square pattern 200, Rectangular pattern 210, Hexagonal pattern 300, Upward trapezoidal pattern 310, Downward trapezoidal pattern 320, Rightward triangular pattern 400, Leftward facing Pattern 410 composed of triangles, a pattern 500 composed of right-angled triangles in the upper left corner, a pattern 500 composed of right-angled triangles in the lower left corner, a pattern 502 composed of right-angled triangles in the lower right corner, and a right-angled part It consists of a pattern 503 consisting of a right triangle in the upper right corner.
尚、直角三角形のパターン500,501,502,503については
直角部分を頂点とした場合の底辺の線については、直線
以外に図示のようにギザギザ線、折れ線、円弧のいずれ
であっても良い。In the right-angled triangle patterns 500, 501, 502, 503, the bottom line when the right-angled portion is the apex may be a jagged line, a polygonal line, or an arc, as shown in the figure, other than a straight line.
このような第8図に示す各パターンを登録したループ形
状辞書テーブル34に対し、グループ毎に分けてワークテ
ーブル3に登録された各ループ形状を読み出してマッチ
ングを行ない、一致したパターン番号をグループ毎に並
べたシンボル構成ループ形状テーブル36を最終的に作成
する。With respect to the loop shape dictionary table 34 in which each pattern shown in FIG. 8 is registered, each loop shape registered in the work table 3 is read out for grouping and matching is performed. Finally, the symbol configuration loop shape table 36 is arranged.
第3図のS9でワークテーブル3が全てのチェックが終了
すると、S11,S12で成る第4過程に進む。When all the work table 3 checks have been completed in S9 of FIG. 3, the process proceeds to the fourth step of S11 and S12.
[第4過程] 第4過程にあっては第3過程で判定されたグループを構
成する各ループ形状、具体的にはループ形状を示すパタ
ーン番号の組合せで成るシンボル構成ループ形状テーブ
ル36の内容をグループ毎に読出し、予め準備されたシン
ボル構成辞書テーブル40の辞書パターンとのマッチング
を行なってシンボル形状を決定する。[Fourth Process] In the fourth process, the contents of the symbol configuration loop shape table 36, which is a combination of the loop shapes forming the group determined in the third step, specifically, pattern numbers indicating the loop shapes, The symbol shape is determined by reading out for each group and performing matching with the dictionary pattern of the symbol configuration dictionary table 40 prepared in advance.
即ち、S11でシンボル構成ループ形状テーブル36の全チ
ェックが終了したか否か判定してS12に進み、シンボル
構成ループ形状テーブル36から最初のグループを構成す
るループ形状のパターン番号の組合せを読み出してシン
ボル構成辞書テーブル40とのマッチングを行なう。That is, in S11, it is determined whether or not all checks of the symbol configuration loop shape table 36 have been completed, the process proceeds to S12, the combination of the pattern numbers of the loop shapes forming the first group is read from the symbol configuration loop shape table 36, and the symbol is read. Matches with the configuration dictionary table 40.
第9図はシンボル構成辞書テーブル40の説明図であり、
第7図に示したNo.1〜No.12の12種類のシンボルNo.と、
各シンボルNo.のシンボル形状を構成するループパター
ンの個数と、各ループパターンのパターン番号と、更に
シンボル決定後に行なわれる追加確認事項で成るテーブ
ル情報が格納されている。FIG. 9 is an explanatory diagram of the symbol configuration dictionary table 40,
12 kinds of symbol No. 1 to No. 12 shown in Fig. 7,
It stores the number of loop patterns forming the symbol shape of each symbol No., the pattern number of each loop pattern, and table information including additional confirmation items to be performed after symbol determination.
例えばシンボルNo.1は第7図に示すように円のシンボル
であり、ループを構成するパターンの個数は当然に1つ
であり、このループ形状のパターン番号は第8図から明
らかなように100となる。For example, symbol No. 1 is a circular symbol as shown in FIG. 7, and the number of patterns forming a loop is naturally one, and the pattern number of this loop shape is 100 as shown in FIG. Becomes
またシンボルNo.6を見ると、第7図に示したようにシン
ボルNo.6は矩形に円を内接し、更に円に横1本のライン
を入れたシンボルであり、ループを構成するパターンの
数は6個であり、6個のパターンの種類は第8図のパタ
ーン100(円)、パターン111(下側の半円)、パターン
501及びパターン500〜503(ようするに直角三角形)と
なる。Looking at symbol No. 6, as shown in Fig. 7, symbol No. 6 is a symbol in which a circle is inscribed in a rectangle, and one line is added to the circle. The number of patterns is 6, and the types of 6 patterns are pattern 100 (circle), pattern 111 (lower half circle), and pattern in FIG.
501 and patterns 500-503 (like right triangles).
更に第9図のシンボル構成辞書テーブルにあっては追加
確認事項が設けられている。この追加確認は原則として
1つのシンボルを複数のループ形状パターンの組合せで
生成した場合に行なわれる。即ち、第9図にあってはシ
ンボルNo.4とNo.6については円の確認を行ない、シンボ
ルNo.7については矩形確認を行ない、シンボルNo.10に
ついては六角形の確認を行ない、更にシンボルNo.12に
ついては接続確認を行なう。Further, in the symbol structure dictionary table of FIG. 9, additional confirmation items are provided. This additional confirmation is performed in principle when one symbol is generated by combining a plurality of loop shape patterns. That is, in FIG. 9, a circle is confirmed for symbols No. 4 and No. 6, a rectangle is confirmed for symbol No. 7, and a hexagon is confirmed for symbol No. 10. Check the connection for symbol No.12.
この追加確認を第10図について具体的に説明すると次の
ようになる。This additional confirmation will be specifically described with reference to FIG.
第10図(a)はシンボルNo.4とNo.6についての円の確認
であり、シンボルNo.4にあっては第8図のループ形状パ
ターン110と111の組合せでシンボルを構成しており、半
径部分で接続せずに円周部分で上下に接続してしまう誤
りを防ぐため円確認を行なう。この点はシンボルNo.6に
ついても第8図の半円パターン110と111を組合せている
ことから実線で示す部分の円確認を行なう。FIG. 10 (a) is a confirmation of a circle for symbols No. 4 and No. 6, and in symbol No. 4, the symbol is formed by the combination of the loop shape patterns 110 and 111 of FIG. , Check the circle to prevent the mistake of connecting up and down at the circumference without connecting at the radius. Regarding this point, since the semi-circular patterns 110 and 111 shown in FIG. 8 are combined with respect to the symbol No. 6, the circle indicated by the solid line is confirmed.
第10図(b)のシンボルNo.7にあっては第8図のループ
パターン210を2つ重ねており、上下に重ねずに横に重
ねてしまうような誤りを防ぐため、実線で示す矩形確認
を行なっている。In the symbol No. 7 of FIG. 10 (b), two loop patterns 210 of FIG. 8 are overlapped, and a rectangle shown by a solid line is formed to prevent an error of overlapping them horizontally instead of vertically. Checking.
第10図(c)のシンボルNo.10にあっては第8図のルー
プパターン310と320を上下に重ねて六角形としているこ
とから、対角線部分で重ね合せずに上下に開いたように
重ねてしまう誤りを防ぐため、実線の六角形確認を行な
う。In the case of symbol No. 10 in FIG. 10 (c), the loop patterns 310 and 320 in FIG. 8 are piled up and down to form a hexagon. Check the solid line hexagons to prevent mistakes.
更に第10図(d)のシンボルNo.12にあっては、第8図
の三角形で成るループパターン400と410を接続したシン
ボル形状であることから、三角形の頂点で接続し、且つ
互いに反対側に三角形が位置することの接続確認を行な
う。Further, the symbol No. 12 in FIG. 10 (d) has a symbol shape in which the loop patterns 400 and 410 formed by the triangles in FIG. 8 are connected to each other. Check that the triangle is located at.
以上第1過程から第4過程に示した一連の処理によりテ
ンプレートやプロッタ等できれいに描かれたループ構成
を持つシンボルを正確に認識してシンボル形状を決定す
ることができる。Through the series of processes shown in the first process to the fourth process, it is possible to accurately recognize a symbol having a loop structure that is neatly drawn by a template, plotter or the like, and determine the symbol shape.
尚、上記の実施例は石油精製プラント装置系統図の図面
シンボルを対象とするものであったが、例えば電気回路
図のように図面の種類が変わってシンボル形状が異なっ
てもシンボルを構成するループ形状としては第8図に示
したように円、半円、1/4円、3/4円、三角形、台形、四
角形、六角形等の基本図形から構成されており、第9図
に示したシンボル構成辞書テーブルの内容は図面の種類
に適合したパターン個数、パターン番号の組合せとする
必要があるが、ループ形状辞書テーブルについては図面
の種類に関わりなく基本図形を格納した状態で共通に使
用することができ、実質的に図面毎のシンボル辞書を不
要にすることができる。Although the above embodiment is intended for the drawing symbols of the petroleum refining plant system diagram, for example, a loop that constitutes a symbol even if the type of the drawing is changed and the symbol shape is different, such as an electric circuit diagram. As shown in FIG. 8, the shape is composed of basic figures such as circle, semicircle, 1/4 circle, 3/4 circle, triangle, trapezoid, square, and hexagon, as shown in FIG. The contents of the symbol configuration dictionary table must be a combination of the number of patterns and pattern numbers that match the drawing type, but the loop shape dictionary table is used commonly with basic figures stored regardless of the drawing type. Therefore, the symbol dictionary for each drawing can be substantially eliminated.
[発明の効果] 以上説明してきたように、本発明によれば、プロッタや
テンプレート等できれいに描かれた読取図面中のシンボ
ルの抽出を正確に行なってシンボル認識率を向上するこ
とができ、手書き図面に対しプロッタやテンプレートで
描かれた図面のシンボル認識率を高めて、より実用的な
図面自動入力システムを構築することができる。[Effects of the Invention] As described above, according to the present invention, it is possible to accurately extract a symbol in a read drawing that is neatly drawn by a plotter, a template, or the like, and improve the symbol recognition rate. It is possible to build a more practical drawing automatic input system by increasing the symbol recognition rate of the drawing drawn by the plotter or the template with respect to the drawing.
第1図は本発明の原理説明図; 第2図は本発明が適用される装置の実施例構成図; 第3図は本発明の実施例処理フロー図; 第4図は本発明の内側輪郭線ベクトル化説明図; 第5図は本発明のループを包含する最小矩形サイズの判
定説明図; 第6図は本発明のグループを包含する採用矩形の説明
図; 第7図は石油精製プラント装置系統図を対象としたシン
ボル説明図; 第8図は本発明のループ形状辞書パターンの説明図; 第9図は本発明のシンボル構成辞書テーブル説明図; 第10図は本発明の辞書マッチング時の追加確認説明図; 第11図は従来方法によるシンボル抽出の誤り説明図であ
る。 図中、 18:画像入力部 20:輪郭ベクトル化部 22:シンボル抽出部 24:輪郭ループグループ化部 26:グループループ形状決定部 34:ループ形状辞書テーブル 36:シンボル構成ループ形状テーブル 38:シンボル認識部 40:シンボル構成辞書テーブル 42:認識結果FIG. 1 is a diagram for explaining the principle of the present invention; FIG. 2 is a block diagram of an embodiment of an apparatus to which the present invention is applied; FIG. 3 is a process flow chart of an embodiment of the present invention; Line vectorization explanatory diagram; FIG. 5 is an explanatory diagram of determination of the minimum rectangular size including the loop of the present invention; FIG. 6 is an explanatory diagram of adopted rectangle including the group of the present invention; FIG. 8 is an explanatory diagram of a symbol for a systematic diagram; FIG. 8 is an explanatory diagram of a loop shape dictionary pattern of the present invention; FIG. 9 is an explanatory diagram of a symbol configuration dictionary table of the present invention; and FIG. 10 is a dictionary matching of the present invention. Additional confirmation explanatory diagram; FIG. 11 is an explanatory diagram of errors in symbol extraction by the conventional method. In the figure, 18: image input unit 20: contour vectorization unit 22: symbol extraction unit 24: contour loop grouping unit 26: group loop shape determination unit 34: loop shape dictionary table 36: symbol configuration loop shape table 38: symbol recognition Part 40: Symbol structure dictionary table 42: Recognition result
Claims (5)
プを形成する読取図面中のシンボルを抽出して認識する
図面読取装置のシンボル認識方法に於いて、 図面イメージの内側輪郭線をベクトル化してループを作
成する第1過程(10)と; 該第1過程で作成されたループを接続できるループ毎に
グループ化する第2過程(12)と; 該第2過程で得られたグループ毎の各ループの形状をル
ープ形状辞書パターンとのマッチングにより判定する第
3過程(14)と; 該第3過程で判定されたグループ内の各ループ形状の組
合せをシンボル構成辞書パターンとマッチングしてシン
ボル形状を決定する第4過程(16)と; を備えたことを特徴とする図面読取装置のシンボル認識
方法。1. A symbol recognition method of a drawing reading device for extracting and recognizing symbols in a read drawing forming a loop drawn by a template, plotter or the like, wherein a loop is formed by vectorizing an inner contour line of a drawing image. A first step (10) for creating a loop; a second step (12) for grouping loops created in the first step into loops that can be connected; and a loop for each group obtained in the second step A third step (14) for determining the shape of the loop shape by matching with a loop shape dictionary pattern; and a symbol shape is determined by matching the combination of each loop shape in the group determined in the third step with the symbol configuration dictionary pattern. A symbol recognition method for a drawing reading device, comprising: a fourth step (16) of
識方法に於いて、 前記第1過程(10)で図面イメージの内側輪郭線をベク
トル化してループを作成する際に、所定の矩形サイズで
決まる許容範囲内に前記作成ループが包含されるか否か
判定し、該許容範囲内に包含される場合にのみベクトル
化されたループを有効とすることを特徴とする図面読取
装置のシンボル認識方法。2. The symbol recognition method for a drawing reading apparatus according to claim 1, wherein a predetermined rectangular size is used when the inner contour line of the drawing image is vectorized to form a loop in the first step (10). Symbol recognition of the drawing reading device characterized in that it is determined whether or not the created loop is included in the allowable range determined by, and the vectorized loop is validated only when the created loop is included in the allowable range. Method.
識方法に於いて、 前記第2過程(12)で作成ループをグループ化する際
に、所定の矩形サイズで決まる許容範囲内に前記グルー
プ化されるループが包含されるか否か判定し、該許容範
囲内に包含される場合にのみ同一グループにグループ化
することを特徴とする図面読取装置のシンボル認識方
法。3. The symbol recognition method for a drawing reading device according to claim 1, wherein when the created loops are grouped in the second step (12), the groups are within an allowable range determined by a predetermined rectangular size. A method for recognizing symbols in a drawing reading device, comprising determining whether or not a loop to be converted is included, and grouping into a same group only when included in the allowable range.
識方法に於いて、 前記第3過程(14)におけるグループ内の各ループ形状
の判定は、少なくとも円、半円、1/4円、3/4円、台形、
正方形、長方形、六角形、三角形及び直角三角形に分類
してループ形状辞書パターンを使用して判定することを
特徴とする図面読取装置のシンボル認識方法。4. The symbol recognition method for a drawing reading device according to claim 1, wherein the determination of each loop shape in the group in the third step (14) is at least a circle, a semicircle, a 1/4 circle, 3/4 yen, trapezoid,
A symbol recognition method for a drawing reading device, characterized by classifying into a square, a rectangle, a hexagon, a triangle, and a right triangle, and making a determination using a loop shape dictionary pattern.
識方法に於いて、 前記第4過程(16)において複数のループ形状の組合わ
せを含む特定のシンボル形状を判定した際には、複数の
ループ形状の接続形状を追加確認することを特徴とする
図面読取装置のシンボル認識方法。5. The symbol recognition method for a drawing reading apparatus according to claim 1, wherein when a specific symbol shape including a combination of a plurality of loop shapes is determined in the fourth step (16), a plurality of symbol shapes are determined. A method for recognizing symbols in a drawing reading device characterized in that the connection shape of the loop shape is additionally confirmed.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2154911A JPH07120367B2 (en) | 1990-06-13 | 1990-06-13 | Symbol recognition method for drawing reader |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2154911A JPH07120367B2 (en) | 1990-06-13 | 1990-06-13 | Symbol recognition method for drawing reader |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH0447460A JPH0447460A (en) | 1992-02-17 |
| JPH07120367B2 true JPH07120367B2 (en) | 1995-12-20 |
Family
ID=15594657
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2154911A Expired - Fee Related JPH07120367B2 (en) | 1990-06-13 | 1990-06-13 | Symbol recognition method for drawing reader |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH07120367B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP3607433B2 (en) * | 1996-10-04 | 2005-01-05 | 株式会社リコー | Method and apparatus for extracting electrical symbols from construction drawings |
-
1990
- 1990-06-13 JP JP2154911A patent/JPH07120367B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JPH0447460A (en) | 1992-02-17 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| Cordella et al. | Symbol recognition in documents: a collection of techniques? | |
| US5995659A (en) | Method of searching and extracting text information from drawings | |
| Aoki et al. | A prototype system for interpreting hand-sketched floor plans | |
| JPH08305796A (en) | Pattern extraction device, pattern re-recognition table creation device, and pattern recognition device | |
| CN120524876B (en) | Circuit netlist generation method supporting deep learning model multi-stage reasoning | |
| JPH07120367B2 (en) | Symbol recognition method for drawing reader | |
| CN113837068A (en) | PDF form character recognition method and device | |
| JP2022184331A (en) | Ledger sheet particular field recognizing method and particular field reading device | |
| JPH0773228A (en) | Automatic drawing recognizing method | |
| JP4313178B2 (en) | Method and apparatus for creating vectorized figures | |
| Ishii et al. | An automatic recognition system for piping and instrument diagrams | |
| CN121807850A (en) | Data processing method and device based on process flow chart | |
| JPH11126216A (en) | Automatic drawing input device | |
| CN121884384A (en) | A system and method for primitive matching and intelligent recognition based on SVG vector graphics. | |
| JPS6312307B2 (en) | ||
| JPH0357509B2 (en) | ||
| Banerjee et al. | Automatic Elevation Datum Detection and Hyperlinking of Architecture, Engineering & Construction Documents | |
| Takahashi | Fujitsu automatic drawing input systems for the process industry | |
| JPH07109612B2 (en) | Image processing method | |
| CN121920286A (en) | A method and system for generating netlists based on circuit diagram recognition | |
| JPS62286187A (en) | Drawing reading system | |
| JPH10134143A (en) | Character extraction device | |
| JPS6047637B2 (en) | Shape recognition processing device | |
| JPS60120480A (en) | System for recognizing logical circuit drawing | |
| JPS63104190A (en) | Drawing read system |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| LAPS | Cancellation because of no payment of annual fees |