JPH02288978A - Drawing processing method - Google Patents
Drawing processing methodInfo
- Publication number
- JPH02288978A JPH02288978A JP1072093A JP7209389A JPH02288978A JP H02288978 A JPH02288978 A JP H02288978A JP 1072093 A JP1072093 A JP 1072093A JP 7209389 A JP7209389 A JP 7209389A JP H02288978 A JPH02288978 A JP H02288978A
- Authority
- JP
- Japan
- Prior art keywords
- loop
- line
- end points
- contour
- vector
- 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
Links
Landscapes
- Image Analysis (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明は、図面処理に係り、特に図面認識システム等に
おける手書き図面等のセグメンテーションに関する。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to drawing processing, and particularly to segmentation of handwritten drawings in drawing recognition systems and the like.
〔従来の技術と発明が解決しようとする課題〕従来の図
面認識システムにおいては、図面の2値画像の細線化を
行い、その結果よりシンボルの認識や線分のベク(−ル
化を行っている。しかし、シンボル等の細かい処理が必
要な部分も線分等の大まかな処理で十分な部分でも同一
の処理を行うので処理時間がかかり、またシンボル等の
認識精度が十分でなかった。[Prior art and problems to be solved by the invention] In conventional drawing recognition systems, the binary image of the drawing is thinned, and the result is used to recognize symbols and vectorize line segments. However, since the same processing is performed on parts that require detailed processing, such as symbols, and parts that require rough processing, such as line segments, processing time is required, and the recognition accuracy of symbols, etc. is not sufficient.
なお、この種のシステムに関しては、論文「図面読取り
装置TO8GRARHJ (湯用ほか;情報処理学会第
33目金国大会、pp、2353−2354)や論文[
機械図面自動認識システム”ARCADIA−M”」
(日板ほか;情報処理学会第33目金国大会、pp、1
489−1498)等に記載がある。Regarding this type of system, please refer to the paper "Drawing reading device TO8GRARHJ (Yuyo et al.; Information Processing Society of Japan, 33rd Gold Country Conference, pp. 2353-2354)" and the paper [
Mechanical drawing automatic recognition system “ARCADIA-M”
(Nichiban et al.; Information Processing Society of Japan 33rd Gold Country Conference, pp. 1
489-1498) etc.
本発明の目的は、手書き図面等のセグメンテーションを
高速化できるとともに、かなり複雑なシンボルの領域の
切出し精度を向」二できる図面処理方法を提供できるこ
とにある。An object of the present invention is to provide a drawing processing method that can speed up the segmentation of handwritten drawings and the like and improve the accuracy of cutting out regions of fairly complex symbols.
本発明は1図面の2値画像の黒画素追跡により輪郭ベク
トルを抽出し、抽出した輪郭ベク1〜ルのペアにより芯
線を抽出し、抽出した芯線より確実な線分または直線と
しての芯線を抽出し、残った芯線に対応した輪郭ベクト
ルの塊の領域をシンボル領域として切り出すことを特徴
とする。The present invention extracts a contour vector by tracing black pixels of a binary image of one drawing, extracts a skeleton using a pair of extracted contour vectors 1 to 1, and extracts a skeleton as a reliable line segment or straight line from the extracted skeleton. The method is characterized in that a region of clusters of contour vectors corresponding to the remaining core lines is cut out as a symbol region.
図面のセグメンテーションをベタ[〜ルの処理で行うた
め高速処理が可能であり、また矢印、小円、二重丸等の
かなり複雑なシンボルの領域も正確に切り出すことがで
きる。Segmentation of drawings is performed by solid-level processing, which enables high-speed processing, and it is also possible to accurately cut out regions of fairly complex symbols such as arrows, small circles, and double circles.
なお、このようにして切り出されたシンボル領域にのみ
、線分などの部分より細かい処理を行うようにすれば、
シンボルの認識率を向」ニし、かつ図面認識処理全体を
高速化できる。Note that if you perform more detailed processing on only the symbol area cut out in this way than on parts such as line segments,
It is possible to improve the symbol recognition rate and speed up the entire drawing recognition process.
以下、図面を用い、本発明の一実施例を説明する。 An embodiment of the present invention will be described below with reference to the drawings.
第]−図は本発明を実施するだめのハードウェア構成例
を示す。」は機械図面などの2値画像データを記憶する
ための画像メモリで、その2値画像データは外部のスキ
ャナーなどから人出力インタフェース回路2を介して入
力する。3は図面認識のためのプログラムなど仕格納し
たプログラムメモリである。このブロク゛う11には、
輪郭ヘクi−ル化、芯線の抽出、セグメンテ・−ジョン
等の各種処理のプログラムが含まれる5、4はこtシら
のプログラムを実行するC P Uである。5は処理に
よって得られるデータを一時的に記憶するデータメモリ
である。FIG. 1 shows an example of a hardware configuration for implementing the present invention. '' is an image memory for storing binary image data such as mechanical drawings, and the binary image data is inputted from an external scanner or the like via the human output interface circuit 2. 3 is a program memory that stores programs such as drawing recognition programs. In this block 11,
Reference numerals 5 and 4 are CPUs that execute programs for various processes such as contour conversion, core line extraction, and segmentation. A data memory 5 temporarily stores data obtained through processing.
本発明に直接関係する処理の流れを、第2図に示す。ま
ず、図面の2値画像データを人力し画像メモリ]に記憶
する(ステップの)。次に入力された2値画像の黒画素
を追跡することにより輪郭ベクトルの抽出(生成)を行
う(ステップ■)。The flow of processing directly related to the present invention is shown in FIG. First, the binary image data of the drawing is manually generated and stored in the image memory (step 1). Next, a contour vector is extracted (generated) by tracing the black pixels of the input binary image (step 2).
この輪郭ベタ1−ルのデータより、ベアをなづ二つの輪
郭ベクトルの中心線を芯線として抽出する(ステップ■
)。From the data of this contour vector, the center line of the two contour vectors is extracted as the skeleton line (step
).
なお、このような輪郭ベタ1−ルの生成、芯線の抽出に
−)いては、論文「多次元データ構造を用いた図面処理
」 (大沢ほか:電子通信学会論文誌’85/4 V
ol、、J 68−D Na4.、 pp、84585
2ンおよび論文「輪郭線をベースにした芯線化方式の改
良」 (大沢はか;情報処理学会第337目金国人会p
p、、’L600−1601)に述べられている方法に
よるとする。ただし、他の方法によってもよい。Regarding the generation of contour planes and the extraction of core lines, please refer to the paper "Drawing processing using multidimensional data structure" (Osawa et al.: Transactions of the Institute of Electronics and Communication Engineers '85/4 V
ol,, J 68-D Na4. , pp, 84585
2 and the paper “Improvement of core line generation method based on contour lines” (Haka Osawa; Information Processing Society of Japan, 337th MEGANE Kokujinkai p.
p., 'L600-1601). However, other methods may also be used.
以下のヤグメーテションの説明において、第33図を適
宜参照する。第23図は軸郭ベクI〜ル化および芯線化
の結果の一例を示しており、細線は輪郭へりI−ル、太
線は芯線、破線は輪郭ベタ1〜ルと芯線とを結ぶために
補間されたベクj〜ル(前記論文「輪郭線をベースにし
た芯線化方式の改良」に述べられているgl u eへ
り1−ルに相当。便宜のため、これも輪郭ベタ1〜ルと
呼ぶ)である。In the following explanation of Yagmation, FIG. 33 will be referred to as appropriate. Figure 23 shows an example of the results of converting the axis contour vectors and core lines, where the thin lines are the contour edges, the thick lines are the core lines, and the broken lines are interpolated to connect the contour vectors and the core lines. The vector j~ (corresponds to the gl u e edge 1-le described in the above-mentioned paper ``Improvement of the core line generation method based on contour lines''. For convenience, this is also called the contour line 1~ ).
なお、第3図に示した例は、例えば第5図に示すような
図面の破線で囲んだ部分子)の輪郭ベクトル化・芯線抽
出処理の結果である。The example shown in FIG. 3 is the result of contour vectorization and center line extraction processing of a portion (encircled by a broken line in the drawing, for example, as shown in FIG. 5).
ここで、以下の説明中で用いられる″ループ″について
第7図によって説明する。第7図において、ベタ1〜ル
Δ、B、Cはそれぞれが1本の芯線のベタ1ヘルである
。また各ベタ1〜ルA、13.Cの端点に付けられた(
)内のAs、Bs、Csは各ベタ1〜ルA、B、Cの
始点座標、Ae、Be。Here, the "loop" used in the following explanation will be explained with reference to FIG. In FIG. 7, solid 1 to Δ, B, and C are each solid 1 hell of one core wire. Also, each solid 1 to A, 13. Attached to the end point of C (
As, Bs, and Cs in ) are the starting point coordinates of each solid 1 to A, B, and C, and Ae and Be.
Ceは各ベタI−ルA、B、Cの終点座標である1、そ
して、芯線(ベタ1−ルA)を含むループは、ベクトル
A、B、Cにより達成される一つのセグメン1〜を意味
する。また、このループの両端点間の距離とは、Asと
Ceとの距離に相当する。Ce is 1 which is the end point coordinate of each solid line A, B, C, and the loop containing the core line (solid line A) is one segment 1~ achieved by vectors A, B, C. means. Further, the distance between both end points of this loop corresponds to the distance between As and Ce.
再び、第;3図の例に注目し、処理内容を説明する。ま
ず、未処理の(処理済みフラグが(=J加されていない
)芯線AOを含むループL Aを捜ず(ステップ■)。Once again, attention will be paid to the example shown in FIG. 3, and the processing contents will be explained. First, a loop LA including an unprocessed (processed flag (=J not added) skeleton AO is searched for (step ■).
ここで、ループL Aは芯線A、 OとA1により構成
される。Here, loop LA is composed of core wires A, O and A1.
芯線AOとループLAか見つかると、ループ■。If you find core wire AO and loop LA, loop ■.
Aの両端点間の長さが予め設定された閾値(例えば1文
字のサイズ)より大きいか否かを調べる(ステップ■)
。太きいときは、芯線AO,Alを確実な線分としくス
テップ■)、芯線AO,A1−に処理済みのフラグを付
けてからステップ■へ戻る。Check whether the length between both end points of A is larger than a preset threshold (for example, the size of one character) (step ■)
. If it is too thick, set the core wires AO and Al as reliable line segments in step (2), attach a processed flag to the core wires AO and A1-, and then return to step (2).
ループI、Aの両端点1?JJの長さが閾(i/4以ト
のときは、ループ■、Aに接する直進性の良いループを
右側および左側について捜す(ステップ■)1.右側に
も左側にも接したループが一つも存在しないとき、およ
び存在しても直進性が良くないときは、芯線AO,Ai
に処理済みフラグを付け、ステップ■へ戻る。第3図の
例では、ループLAに接する直線性の良いループは、ベ
クトル(芯線)BO。Both end points of loop I and A are 1? When the length of JJ is less than the threshold (i/4), search for loops with good straightness that touch A on the right and left side (step ■) 1. Loops that touch both the right and left side When the core wires AO and Ai do not exist, or when the straightness is not good even if they exist,
Add a processed flag to , and return to step ■. In the example of FIG. 3, the loop with good linearity that is in contact with the loop LA is the vector (core line) BO.
B1より構成されるループである。This is a loop consisting of B1.
ここで直進性が良いとは、ループLAとそれに接したル
ープの角度がある閾値以下であるということである。ま
た、ループとループの角度は第6図に示す角度Oである
。ループLAに接する直線性が良好なループが見つかっ
たときは、このループより先について同様に直進性の良
好なループを捜すという手順を繰り返す。Here, good straightness means that the angle between the loop LA and the loop in contact with it is less than a certain threshold value. Further, the angle between the loops is the angle O shown in FIG. When a loop with good linearity that is in contact with loop LA is found, the procedure of similarly searching for loops with good straightness beyond this loop is repeated.
ステップ■で見つかった直線性の良いループ群の全体の
両端点を求め、その両端点間を結ぶ仮想の直線に、各ル
ープを構成する各芯線バク1〜ルの端点より垂線を下ろ
す。そして、各々の端点と、その足までの長さを求め、
その長さが所定の線幅を越えないか調べる(ステップ■
)。第8図はループLA、LBについての、この判定の
説明図である。また、仮想の直線の両側に芯線バク1〜
ルの端点が位置する他の例を第9図に示す。Find both end points of the entire group of loops with good linearity found in step (2), and draw a perpendicular line from the end point of each core line back 1 to 1 constituting each loop to a virtual straight line connecting the two end points. Then, find each end point and the length to its foot,
Check whether the length exceeds the specified line width (step ■
). FIG. 8 is an explanatory diagram of this determination regarding loops LA and LB. Also, on both sides of the imaginary straight line, add 1~
Another example of where the end points of the file are located is shown in FIG.
垂線の長さが一つでも線幅を越えるときは、ループ群に
対応する各芯線に処理済みのフラグを伺はステップ■に
戻るが、全ての垂線が線幅以下のときは、ループ群に対
応した芯線群を直線であるとしくステップ■)、各芯線
に処理済みのフラグを付はステップ■に戻る。If the length of even one perpendicular line exceeds the line width, check the processed flag for each core line corresponding to the loop group and return to step ■; however, if all the perpendicular lines are less than the line width, The corresponding core wire group is determined to be a straight line (step (2)), a processed flag is attached to each core wire, and the process returns to step (2).
第3図に示した例では、ループLAの右側に接するルー
プとして、芯線B、O,Blに対応したループL +3
、芯線COに対応したループL C1芯線DOに対応し
たループLDおよび芯線EOに対応したループL Eが
あり、この中で最も直線性が良いループLBがステップ
■で選ばれる。そして、ループLA、LBについてはス
テップ■の条件を満足するので直線とし抽出される。In the example shown in FIG. 3, the loop L +3 corresponding to the core wires B, O, and Bl is the loop that is in contact with the right side of the loop LA.
, a loop LC corresponding to the core wire CO, a loop LD corresponding to the core wire DO, and a loop LE corresponding to the core wire EO, among which the loop LB with the best linearity is selected in step (2). Since loops LA and LB satisfy the condition of step (2), they are extracted as straight lines.
未処理の芯線が見つからなくなると、ステップ■よりス
テップ[相]へ進む。ここでは、ステップ■で確実な線
分とされた芯線およびステップ■で直線とされた芯線に
対応した輪郭ベタ1−ルを、輪郭バク1〜ル化で得られ
た輪郭ベタ1〜ルより除去する。When no untreated core wires are found, the process proceeds from step (■) to step [phase]. Here, the contour lines corresponding to the core lines that were determined to be reliable line segments in step ■ and the core lines that were determined to be straight lines in step do.
次のステップ0において、除去されずに残った輪郭ベク
トルの塊の外接矩形を求め、この外接矩形の範囲をシン
ボル領域とする。In the next step 0, a circumscribed rectangle of the remaining contour vector mass is determined, and the range of this circumscribed rectangle is defined as a symbol area.
第3図に示した例のセグメンテーション結果を第4図に
示す。第4図において、太線は確実な線分または直線と
して抽出された芯線化、鎖線は外接矩形(シンボル領域
)、細線はシンボル部の輪郭線である。FIG. 4 shows the segmentation results for the example shown in FIG. 3. In FIG. 4, thick lines are skeleton lines extracted as reliable line segments or straight lines, chain lines are circumscribed rectangles (symbol areas), and thin lines are outlines of symbol parts.
以上の説明から明らかなように、本発明によれば、輪郭
ベタlヘル化と芯線化を利用し、セグメンテーションを
全てベクトルで処理するので、処理の高速化が可能とな
り、また、かなり複雑なシンボルの部分も正確に切り出
すことができるようになる。As is clear from the above description, according to the present invention, all segmentation is processed using vectors using contour conversion and core line conversion. It is now possible to accurately cut out parts.
第1図は本発明を実施するためのハードウェア構成の一
例を示すブロック図、第2図は処理の概要フローチャー
1〜、第3図は輪郭ベクトル化・芯線化の結果の一例を
示す図、第4図は第3図に示した例のセグメンーション
結果を示す図、第5図は第3図に対応する具体的な図面
の部分の例を示す図、第6図はループとループの角度の
説明図、第7図は芯線とループの説明図、第8図および
第9図はループ群の両端点を結ぶ仮想直線への各芯線ベ
クトルの端点からの垂線の長さの判定の説明図である。
1・・・画像メモリ、 3・プログラムメモリ、4・・
・CPU、 5・・・データメモリ。
。易→(FIG. 1 is a block diagram showing an example of a hardware configuration for carrying out the present invention, FIG. 2 is an overview flowchart of processing from 1 to 3, and FIG. 3 is a diagram showing an example of the results of contour vectorization and skeletonization. , Fig. 4 is a diagram showing the segmentation result of the example shown in Fig. 3, Fig. 5 is a diagram showing an example of a specific drawing part corresponding to Fig. 3, and Fig. 6 is a diagram showing a loop and a loop. 7 is an explanatory diagram of skeleton lines and loops. Figures 8 and 9 are illustrations of the length of the perpendicular line from the end point of each skeleton vector to the virtual straight line connecting both end points of the loop group. It is an explanatory diagram. 1...Image memory, 3.Program memory, 4...
・CPU, 5...Data memory. . Easy → (
Claims (1)
を抽出し、抽出した輪郭ベクトルのペアにより芯線を抽
出し、抽出した芯線より確実な線分または直線としての
芯線を抽出し、残った芯線に対応した輪郭ベクトルの塊
の領域をシンボル領域として切り出すことを特徴とする
図面処理方法。(1) Extract the contour vector by tracing the black pixels of the binary image of the drawing, extract the skeleton line from the extracted pair of contour vectors, extract the skeleton line as a reliable line segment or straight line from the extracted skeleton line, and extract the skeleton line as a line segment or straight line. A drawing processing method characterized by cutting out a region of clusters of contour vectors corresponding to core lines as a symbol region.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1072093A JPH02288978A (en) | 1989-02-13 | 1989-03-24 | Drawing processing method |
Applications Claiming Priority (3)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1-33415 | 1989-02-13 | ||
| JP3341589 | 1989-02-13 | ||
| JP1072093A JPH02288978A (en) | 1989-02-13 | 1989-03-24 | Drawing processing method |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH02288978A true JPH02288978A (en) | 1990-11-28 |
Family
ID=26372093
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP1072093A Pending JPH02288978A (en) | 1989-02-13 | 1989-03-24 | Drawing processing method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH02288978A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH08329227A (en) * | 1995-03-27 | 1996-12-13 | Nippon Steel Corp | Interactive drawing recognition processing method |
-
1989
- 1989-03-24 JP JP1072093A patent/JPH02288978A/en active Pending
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH08329227A (en) * | 1995-03-27 | 1996-12-13 | Nippon Steel Corp | Interactive drawing recognition processing method |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN116259064B (en) | Table structure identification method, training method and training device for table structure identification model | |
| Song et al. | Line net global vectorization: an algorithm and its performance evaluation | |
| Dori et al. | Segmentation and recognition of dimensioning text from engineering drawings | |
| US20020006224A1 (en) | Computer automated process for vectorization of raster images | |
| JPH02263277A (en) | Line image vectorization method | |
| Islam et al. | An approach to extract text regions from scene image | |
| JPH1166238A (en) | Handwritten character recognition method | |
| JPH02288978A (en) | Drawing processing method | |
| CN108345853B (en) | Character recognition method, device and terminal device based on isomorphism theory | |
| JPH07200735A (en) | Figure recognition device | |
| JP2683026B2 (en) | Line figure vectorization device | |
| JPH02171977A (en) | How to cut out characters that touch a line segment | |
| JP3077929B2 (en) | Character extraction method | |
| Yan | Detection of curved text path based on the fuzzy curve-tracing (FCT) algorithm | |
| JP2656802B2 (en) | Drawing input device | |
| JPS6334682A (en) | Character recognition system | |
| JPS613287A (en) | Graphic form input system | |
| Tursun et al. | A Joint Approach of Harris Corners Detection and Baseline Searching for Localization of Uyghur Text Lines in Image Sequences. | |
| JPH0394385A (en) | Drawing reader | |
| JPH04117579A (en) | Hatching area extracting method | |
| JPH02264375A (en) | Chain line extracting method | |
| JP2785438B2 (en) | Character recognition method | |
| JPH02264374A (en) | Broken line extracting method | |
| CN118710810A (en) | A method, device and medium for reconstructing arrow objects based on principal component analysis | |
| JPH04236678A (en) | Method for shaping area |