JPS5876977A - Line drawing detecting method - Google Patents

Line drawing detecting method

Info

Publication number
JPS5876977A
JPS5876977A JP56174117A JP17411781A JPS5876977A JP S5876977 A JPS5876977 A JP S5876977A JP 56174117 A JP56174117 A JP 56174117A JP 17411781 A JP17411781 A JP 17411781A JP S5876977 A JPS5876977 A JP S5876977A
Authority
JP
Japan
Prior art keywords
line
drawings
closed
sampled
figures
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
JP56174117A
Other languages
Japanese (ja)
Inventor
Kenichi Igarashi
賢一 五十嵐
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.)
NEC Corp
Original Assignee
NEC Corp
Nippon Electric 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 NEC Corp, Nippon Electric Co Ltd filed Critical NEC Corp
Priority to JP56174117A priority Critical patent/JPS5876977A/en
Publication of JPS5876977A publication Critical patent/JPS5876977A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis

Abstract

PURPOSE:To pick up a line drawing only, by detecting a background area other than a part corresponding to the internal side of a closed drawing from a drawing scanned and sampled in two-dimension lattice shape and taking logic operation between the background area and the sampled drawing. CONSTITUTION:A pattern design drawing 101 of a printed wiring board is scanned in two-dimension lattice shape for quantization sampling. A sampled drawing 201 of the background area eliminating closed drawings 1021-1029 from the drawing 101 is formed. The drawings 101 and 201 are logically processed to pick up line drawings 1031-1036 from other drawings separatingly. Thus, the automatic reading processing only for line drawings can very easily be executed.

Description

【発明の詳細な説明】 本発明は図面の自動読取)に必要とされる線図形の検出
方法に関するものである。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a method for detecting line figures required for automatic reading of drawings.

図面、例えばプリント配線基板(以下PWBと記憶)の
パターン設計図面必らパターン原画フィルムを作成する
ためKは、図面の内容を何ら小の形で、原画作成用の数
値データに変換する必要があるが、従来この作業はディ
ジタイザを用いて人間が、すべての情報入力を行ってい
た。このため必要とされる作業時間も極めて長く、かつ
また単調な作業のために誤った情報の入力も避は得ない
ものでありた・ こうした事情から図面を自動的に読取シ、データ化する
装置が必要とされて一九が、図面読取シ作業の中には比
較的高度な図形判定処理が含まれて―るため、従来この
種の自動機は、はとんど提供されてい&ψのが実情であ
る。
Drawings, for example, pattern design drawings for printed wiring boards (hereinafter referred to as PWB) In order to create original pattern films, K needs to convert the contents of the drawings into numerical data for creating original images in any small form. However, in the past, this work involved humans inputting all the information using digitizers. For this reason, the required work time was extremely long, and the input of incorrect information was unavoidable due to the monotonous work. In view of these circumstances, a device that automatically reads drawings and converts them into data was developed. However, since the drawing reading work includes relatively advanced figure judgment processing, this type of automatic machine has rarely been provided in the past. This is the reality.

本発明の目的は、PWBのパターン設計図面などを自動
的に読取シ、処理するための有効な方法を提供しようと
するものである。
An object of the present invention is to provide an effective method for automatically reading and processing PWB pattern design drawings and the like.

以下の説明では、PWBのパターン設計図面c以下単に
図面と記す)を中心として述べる。
The following description will focus on the PWB pattern design drawing c (hereinafter simply referred to as drawing).

一般に図面は、図形を表わす表記部分と図面用紙そのも
のである背景部分とKよって構成される。
In general, a drawing is composed of a notation part representing a figure, a background part which is the drawing paper itself, and K.

また、表記図形は、さらに各種のシンボルとそれらを結
ぶライン図形によシ構成される。図面の自動読取りを行
う場合、通常こうしたシンプルの位番i赫劇座において
閉図形の検出装置と検出方法につ−て出願済みであるが
、これらは前記シンボルの位置や種類の検出に関するも
のである。
In addition, the notation figures are further composed of various symbols and line figures connecting them. When automatically reading drawings, applications have been filed for closed figure detection devices and detection methods, but these are related to the detection of the positions and types of symbols. be.

上記発明において、図面に表記されているシンボルの形
状が円形もしくは正方形といつだ閉じている1図形が多
いことに着目し、図形を構成する線が閉じて−るが否必
を調べるととKより各種のシンボルを分離するものであ
った。すなわち、ある図形を構成する線が閉じているな
らば、図面の背景部分は、その線によ抄2つに分割され
る・図面領域の最外縁は閉図形が分割すゐ背景のうち外
側のものと考えられるので、最外縁から線によってさえ
「られない連結する背景部分の検出を打電えば、閉じた
il[KI!すれた背景部分は取残されることになり、
シンボル等の閉じ九図形の存在およびその位置が検出で
きる。
In the above invention, we pay attention to the fact that there are many shapes in which the symbols shown in the drawings are closed, such as circles or squares, and examine whether the lines that make up the shapes are closed or not. It was intended to separate various symbols. In other words, if a line constituting a figure is closed, the background part of the drawing is divided into two parts by that line.The outermost edge of the drawing area is the outermost part of the background that the closed figure is divided into. Since it is considered to be a closed background part, if you call to detect a connected background part that cannot be defined even by a line from the outermost edge, the closed background part will be left behind.
The presence and position of closed nine figures such as symbols can be detected.

本発明は、閉じていない線図形の処理に関するものであ
シ、閉じていない図形すなわちラインにつ−ては、その
上下または左右が最外縁から線によってさえぎられな一
連結する背景領域に囲まれている線図形を検出すること
によシ、閉じていないラインを分離して抽出することが
可能となシ、ラインの始点・終点の位置情報およびその
他の特徴となる点を容易に判定できるため、図面の自動
読取りに極めて有効な方法を与えるものである。
The present invention relates to the processing of unclosed line figures, that is, lines whose top and bottom or left and right sides are surrounded by a continuous background area that is not obstructed by lines from the outermost edge. By detecting line figures that are closed, it is possible to separate and extract unclosed lines, and it is also possible to easily determine the positional information of the start and end points of the line and other characteristic points. , which provides an extremely effective method for automatically reading drawings.

一般に、図面情報は光電変換器を用いてMANの2次元
格子状に走査かつ標本化され、かつその輝度レベルを2
値に量子化して図面記tagに記憶される。本発明によ
る線図形検出方法は、このように記憶された図面情報に
対して単純かつ画−的一な処理を実行することKよ〉容
易に実現される。
Generally, drawing information is scanned and sampled in a two-dimensional grid of MAN using a photoelectric converter, and its brightness level is
The value is quantized and stored in the drawing tag. The line figure detection method according to the present invention can be easily realized by executing simple and uniform processing on the drawing information stored in this way.

以F1図面を参照して本発明の内容を詳細に説明する。Hereinafter, the content of the present invention will be explained in detail with reference to the F1 drawing.

第1図は模擬的Kl!わし九PWBの図面を示している
。最外縁が矩形101で示される図面の中に9つのシン
ボル図形1G21.1022.1G23.1024.1
0251026.1027.102& 1029があ)
、また6本のライン図形1031.1032.1033
.1034.103翫1036およびPWB上におψて
鋼箔部分を形成する閉じている線図形104がある◎ 本発明による線図形検出力、法では、閉じていないライ
ン図形1031.1032.1033.1034.10
35.1036のみを他の図形群必も分離して抽出する
ことにより、その後の判定蛤理!容易にするものである
Figure 1 is a simulated Kl! It shows a drawing of the Eagle Nine PWB. There are nine symbol figures 1G21.1022.1G23.1024.1 in the drawing whose outermost edge is indicated by a rectangle 101.
0251026.1027.102 & 1029)
, and six line figures 1031.1032.1033
.. 1034.103 There is a closed line figure 104 that forms a steel foil part on the wire 1036 and the PWB ◎ In the line figure detection method according to the present invention, an unclosed line figure 1031.1032.1033.1034 .10
By separating and extracting only 35.1036 from other groups of figures, the subsequent judgment is easy! It makes it easier.

こうした閉じていなφライン図形はPWB上では導体線
を構成するものであや、図面の自動読取抄に際しては不
可欠な情報である。
These closed φ line figures constitute conductor lines on the PWB, and are essential information for automatic reading and editing of drawings.

第2図は同一出願人による特願昭5←90245号果を
示したものであ抄、閉じている図形の内部以外の背景部
分は図面の最外縁と連結した背景部分201とみなされ
、連結記憶部へ記憶される。
Figure 2 shows the result of Japanese Patent Application No. 5←90245 filed by the same applicant.The background part other than the inside of the closed figure is considered to be the background part 201 connected to the outermost edge of the drawing, and the background part is connected to the outermost edge of the drawing. Stored in the storage unit.

第3図(荀は図面記憶11に記憶されている図面情報の
一部を取抄出してみた場合の図で、図中の小矩形301
.302が標本化された1画素を表わす。
Figure 3 (Xun is a diagram when a part of the drawing information stored in the drawing memory 11 is extracted, and the small rectangle 301 in the figure
.. 302 represents one sampled pixel.

ここで、%θ′の値をもつ画素301を背景部分とし1
・の値をもつ画素302を表記部分と考えると第3図(
a)は水平方向に連なるライン図形の一部・′とみなせ
る。ここで表記図形は、一定範囲の有限の太さの線から
構成されてお映、量子化の際に混入する誤差を除けば平
均的にある線幅、言いかえれば、ある画素数をもってい
る。
Here, pixel 301 having a value of %θ' is assumed to be the background part, and 1
If we consider the pixel 302 with the value .
A) can be regarded as a part of a line figure that continues in the horizontal direction. Here, the depicted figure is composed of lines with a finite thickness within a certain range, and, excluding errors introduced during quantization, has a certain line width on average, or in other words, a certain number of pixels.

第3図(−は図面の最外縁からの連結判定処理を行った
例であ)、第3図(場のライン図形が閉じていなければ
、連結画素′″1’ 311とライン図形部すなわち非
連結画素%X’ 312が上下とも接して(る◎ 先に述べたように、表記図形は一定線幅の線から構成さ
れており、一般にこの線幅は閉図形を構成する各種シン
ボルに比較して、極めて小さい。従って、上下あるψは
左右を連結領域にはさまれ丸線図形のみを抽出すること
は容易にでき最大線幅よ抄若干大自い領域に着目するだ
けで良くこの場合シンボルに対応する閉図形は除外する
仁とができる。
Figure 3 (- is an example in which connection determination processing is performed from the outermost edge of the drawing), Figure 3 (If the line figure in the field is not closed, the connected pixel '''1' 311 and the line figure part, that is, the non- Connected pixel % Therefore, it is easy to extract only the round line figure with the upper and lower ψ sandwiched between the connected areas on the left and right, and it is only necessary to focus on the area where the maximum line width is slightly larger than the symbol. Closed figures corresponding to can be excluded.

第4図は閉じていないil!図形のみを抽出するだめの
本発明による方式を実施し九−例で、図面記憶部40λ
 連結記憶部401のデータを、図面の標本化格子Mi
Nの水平方向の画素WkMに相当する長さをもつシフト
レジスタ4041.4G42.4043゜4044、4
045.4046.4047.4048 KF1次送9
出して次の条件が成立したときに!!図形記憶部403
に’l”すなわち、線図形を叢き込み、それ以外のとき
は1X′すなわち背景部分とする。
Figure 4 is not closed! In an example of implementing the method according to the present invention that does not extract only figures, the drawing storage unit 40λ
The data in the connection storage unit 401 is stored as a sampling grid Mi in the drawing.
A shift register 4041.4G42.4043°4044,4 with a length corresponding to N horizontal pixels WkM
045.4046.4047.4048 KF primary feed 9
When the following conditions are met! ! Graphic storage section 403
In other words, 'l', that is, a line figure is embedded in the area, and in other cases, it is set as 1X', that is, a background part.

C条件) 11−0必つX!−〇 ふつ ア、−1かつy、−1 かつ y・−1 第4図における笑1例は、ライン図形の線幅の最大値を
2画素とし、かつ、水平方向のライン図の構成例である
が、垂直方向のライン図形、45方向のライン図形につ
ψても同様の手段によし容易に構成μ1能である。
Condition C) 11-0 must be X! -〇futsua, -1 and y, -1 and y・-1 The first example in Figure 4 is an example of the configuration of a horizontal line diagram in which the maximum line width of the line figure is 2 pixels. However, vertical line figures and line figures in 45 directions can also be easily constructed by similar means.

第5図は第1図および第2図にL記の手段を実施した例
であり、閉じていない線図形501.502゜503、
504.505.506のみが分離・抽出される。
FIG. 5 is an example in which the means described in FIG. 1 and FIG.
Only 504.505.506 are separated and extracted.

なお、第5図の例ふらライン図形に関する各種情報、例
えば、始点・終点の座標を求めることは通常の技術で容
易に行なえるので、ここでは述べない。
It should be noted that various information regarding the example wandering line figure shown in FIG. 5, such as the coordinates of the starting point and ending point, can be easily obtained using ordinary techniques, and will not be described here.

以上に述べたごとく、本発明による線図形検出方法を用
いれば、各槙シンボル図形、ライン図形が混在する図面
の中から閉じていない線図形のみを容易に抽出でき、ひ
いては−図形の自動読取り処理が極めて容易に実行でき
る。
As described above, by using the line figure detection method according to the present invention, it is possible to easily extract only unclosed line figures from a drawing in which each Maki symbol figure and line figure are mixed, and as a result - automatic figure reading process is extremely easy to implement.

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

第1図は本発明を、わかり易く説明するために作った模
擬的なPWB図面、第2図は第1図に対る線図形の検出
をid!明する丸めに抜自出した図面記憶部および連結
記憶部の部分拡大図、#I4図は本発lidよる検出方
法を実現するための一実施例を示した構成図、第5図は
本発F14による腺固形検出方式をMb1図に実行した
結果を示した図である。 図中、101は図面の最外縁を示す矩形、104はai
パターンを示すW4線図形、企01は連結判定領域、4
01は連結記憶部、402は図面記m&6.403は縞
図形記tag、4051.4052は否定回路、406
1 ハ論3!1棟回路である。
Fig. 1 is a simulated PWB drawing created to explain the present invention in an easy-to-understand manner, and Fig. 2 shows line figure detection for Fig. 1. Fig. #I4 is a block diagram showing an embodiment of the detection method using the lid of the present invention, and Fig. FIG. 3 is a diagram showing the results of performing the gland solid detection method using F14 on the Mb1 diagram. In the figure, 101 is a rectangle indicating the outermost edge of the drawing, 104 is ai
W4 line figure showing the pattern, 01 is the connection judgment area, 4
01 is a connection storage unit, 402 is a drawing m & 6. 403 is a striped diagram tag, 4051.4052 is a negative circuit, 406
1 Theory C 3! It is a one-building circuit.

Claims (1)

【特許請求の範囲】[Claims] 図面上に書禽込まれて−る線図形および各種シンダルを
光電麦換器を用いて2次元格子状に走査標本化し、ふっ
、その輝度レベルを2億に量子化して記憶して―る図面
画像データを基に矩形図面領域内の背景部分に対応する
観測点が、該矩形領域の最外縁の観測点詳と同一量子化
値で連結しているか否かの判肩を行い、lll1l形の
内部に相当する部分以外の背景領域を連結領域として検
出し、該連結領域にはさまれた線図形すなわち閉図形を
構成しない線図形のみを検出することを特徴とする線図
形検出方法。
A drawing in which the line figures and various cyndals written on the drawing are scanned and sampled into a two-dimensional grid using a photoelectric transducer, and the brightness levels are quantized into 200 million and stored. Based on the image data, it is determined whether the observation point corresponding to the background part in the rectangular drawing area is connected with the observation point detail at the outermost edge of the rectangular area with the same quantization value. A line figure detection method characterized by detecting a background area other than a portion corresponding to the interior as a connected area, and detecting only line figures sandwiched between the connected areas, that is, line figures that do not constitute a closed figure.
JP56174117A 1981-10-30 1981-10-30 Line drawing detecting method Pending JPS5876977A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP56174117A JPS5876977A (en) 1981-10-30 1981-10-30 Line drawing detecting method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP56174117A JPS5876977A (en) 1981-10-30 1981-10-30 Line drawing detecting method

Publications (1)

Publication Number Publication Date
JPS5876977A true JPS5876977A (en) 1983-05-10

Family

ID=15972931

Family Applications (1)

Application Number Title Priority Date Filing Date
JP56174117A Pending JPS5876977A (en) 1981-10-30 1981-10-30 Line drawing detecting method

Country Status (1)

Country Link
JP (1) JPS5876977A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6254371A (en) * 1985-09-03 1987-03-10 Matsukueito:Kk Method for extracting wiring pattern

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5679359A (en) * 1979-11-29 1981-06-29 Fujitsu Ltd Graphic conversion processing system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5679359A (en) * 1979-11-29 1981-06-29 Fujitsu Ltd Graphic conversion processing system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6254371A (en) * 1985-09-03 1987-03-10 Matsukueito:Kk Method for extracting wiring pattern

Similar Documents

Publication Publication Date Title
US5091964A (en) Apparatus for extracting a text region in a document image
US5075895A (en) Method and apparatus for recognizing table area formed in binary image of document
JPH04104324A (en) Program generating device
JP3659426B2 (en) Edge detection method and edge detection apparatus
CN108804978B (en) Layout analysis method and device
CN108388898A (en) Character identifying method based on connector and template
KR20150099116A (en) Method for recognizing a color character using optical character recognition and apparatus thereof
JPS5876977A (en) Line drawing detecting method
WO2022056875A1 (en) Method and apparatus for segmenting nameplate image, and computer-readable storage medium
CN114529922A (en) Method for identifying table structure of wireless frame table image
JPH07168910A (en) Document layout analysis device and document format identification device
JPH06231253A (en) Image correcting device and drawing inputting device
US7298918B2 (en) Image processing apparatus capable of highly precise edge extraction
JPH0548510B2 (en)
JP6613625B2 (en) Image processing program, image processing apparatus, and image processing method
JP2993007B2 (en) Image area identification device
JP2800192B2 (en) High-speed character / graphic separation device
JP4810995B2 (en) Image processing apparatus, method, and program
JP2007328652A (en) Image processing device and image processing program
JP2870640B2 (en) Figure recognition method
JP3756660B2 (en) Image recognition method, apparatus and recording medium
JPH07120392B2 (en) Character pattern cutting device
JPH0522598A (en) Picture input device
JP2004240500A (en) Device and program for processing image, and storing medium
Ghazouani et al. Comparative Study of Two Segmentation Methods of Handwritten Arabic Text