Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPH0325823B2 - - Google Patents
[go: Go Back, main page]

JPH0325823B2 - - Google Patents

Info

Publication number
JPH0325823B2
JPH0325823B2 JP60047481A JP4748185A JPH0325823B2 JP H0325823 B2 JPH0325823 B2 JP H0325823B2 JP 60047481 A JP60047481 A JP 60047481A JP 4748185 A JP4748185 A JP 4748185A JP H0325823 B2 JPH0325823 B2 JP H0325823B2
Authority
JP
Japan
Prior art keywords
end point
line
extracted
extension
predetermined range
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 - Lifetime
Application number
JP60047481A
Other languages
Japanese (ja)
Other versions
JPS61208183A (en
Inventor
Hiroko Kurosaki
Takashi Tsunekawa
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.)
Toshiba Corp
Original Assignee
Tokyo Shibaura 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 Tokyo Shibaura Electric Co Ltd filed Critical Tokyo Shibaura Electric Co Ltd
Priority to JP60047481A priority Critical patent/JPS61208183A/en
Publication of JPS61208183A publication Critical patent/JPS61208183A/en
Publication of JPH0325823B2 publication Critical patent/JPH0325823B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)

Description

【発明の詳細な説明】 〔発明の技術分野〕 本発明は、線図形を認識する装置において、線
図形の断線部分の接続方式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Technical Field of the Invention] The present invention relates to a method for connecting disconnected parts of a line figure in a line figure recognition device.

〔発明の技術的背景とその問題点〕[Technical background of the invention and its problems]

近年、種々の設計図面の自動入力装置の研究・
開発が行われるようになつた。このような図面処
理では、線図形を認識するのに線図形の構造的な
特徴や幾何学的な特徴を用いる。このため、図面
処理の性能は、入力図面のていねいさや画質に大
きく左右され、例えば線のかすれ等の断線が生じ
ると構造的に第10図に示すように1つの連結図
形が複数の連結図形となつたり閉図形が開図形と
なつたりして、接続線やシンボルの認識率が悪化
し、また本来接続関係にあるシンボル接続線の接
続情報が失われてしまう。すなわち、従来技術で
は乱雑に書かれた図面や画質の悪い図面が入力さ
れると性能が落ちるという問題点があつた。
In recent years, research and development of automatic input devices for various design drawings has been conducted.
Development has begun. In such drawing processing, structural features and geometric features of line figures are used to recognize line figures. For this reason, the performance of drawing processing greatly depends on the neatness and image quality of the input drawing. For example, if a break such as a blurred line occurs, one connected figure will structurally become multiple connected figures as shown in Figure 10. As a result, a closed figure becomes an open figure, which deteriorates the recognition rate of connecting lines and symbols, and also causes connection information of symbol connecting lines that are originally connected to each other to be lost. That is, in the conventional technology, there was a problem in that performance deteriorated when a randomly drawn drawing or a drawing with poor image quality was input.

〔発明の目的〕 本発明の目的は線図形を認識する装置におい
て、線図形の断線部分を自動的に修復するための
断線接続方式を提供することにある。
[Object of the Invention] An object of the present invention is to provide a disconnection connection method for automatically repairing a disconnected portion of a line figure in a line figure recognition device.

〔発明の概要〕[Summary of the invention]

本発明は、一定以上の長さを持つ線セグメント
の端点近傍を解析し、接続の優先順位をある端点
から、線の延長上でかつ所定範囲以内の端点、
所定範囲以内の端点、線の延長上で所定範囲
以内の途中点として断線部分を接続することによ
り長い線セグメントを描くときに起りやすい、第
11図aに示す筆圧変動による断線、bに示す屈
折点、cに示すT字路のように2回に分けて線を
書くことの多い箇所の3種の断線を自動的に接続
する方式である。
The present invention analyzes the vicinity of the end points of a line segment having a certain length or more, and prioritizes connection from a certain end point to end points on the extension of the line and within a predetermined range.
Broken lines due to pen pressure fluctuations shown in Figure 11a, which tend to occur when drawing long line segments by connecting broken parts as endpoints within a predetermined range or intermediate points within a predetermined range on the extension of the line, as shown in Figure 11b. This is a method that automatically connects three types of disconnections at locations where the line is often drawn in two parts, such as the inflection point and the T-junction shown in c.

又、〜の順に断線接続処理されることによ
りこの処理が精度よく行われるのである。つま
り、線図形における断線処理においてまず、比較
的処理し易く対象部位の多い順にの処理を施
し、この処理により直線的修復がされた線図形に
の屈折点に関する処理が施し、最後に処理が高
度で対象部位が直線やL字に比較して少ないT字
処理()を施すという処理手順(優先順位)を
設けることにより誤つた接続処理が行われ難くな
るという効果を有する。
Moreover, this process can be performed with high accuracy by performing the disconnection/connection process in the order of . In other words, when processing disconnections in line figures, first perform processing in order of ease of processing and the number of target parts, then process related to refraction points on the line figure that has been linearly repaired by this process, and finally, By providing a processing procedure (priority order) in which the target portion is subjected to less T-shaped processing () compared to a straight line or L-shaped portion, an effect is obtained in that erroneous connection processing is less likely to be performed.

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

本発明によれば、入力された線図形の断線部分
を自動的に接続するので、乱雑に描いた図面や画
質の悪い図面においても性能を悪化させることな
く確実に図面の自動入力ができる。
According to the present invention, disconnected portions of inputted line figures are automatically connected, so drawings can be reliably automatically input without deteriorating performance even in drawings that are randomly drawn or drawings with poor image quality.

〔発明の実施例〕[Embodiments of the invention]

以下、本発明の一実施例につき図面を参照して
説明する。第1図は、本発明の一実施例の全体構
成図である。まず、この第1図を用いて全体の動
作の概略を述べる。設計図面1はフアクシミリ等
の撮像装置によつて構成した入力部2を介して画
像メモリ3に白黒2値の画像として記憶される。
入力した線図形画像は後に続く処理を容易にする
ため、画像前処理部4によつて、細線化や雑画成
分の除去(孤立点除去、ひげとり)等の処理が施
される。雑画成分をとり除いた、細線化画像が格
納された画像メモリ3は、断線接続処理部5によ
つて、断線部分の接続断線部分に“黒”の値をセ
ツトすることがなされ、再び画像メモリ3に格納
される。この断線接続処理がなされた細線化画像
を参照することにより認識処理部6は線図形を文
字接続線・シンボルといつたように認識し、その
結果であるコードデータが認識データメモリ7に
格納される。このようにして、図面が自動的に入
力されコードデータに変換される。
Hereinafter, one embodiment of the present invention will be described with reference to the drawings. FIG. 1 is an overall configuration diagram of an embodiment of the present invention. First, the overall operation will be outlined using FIG. 1. The design drawing 1 is stored as a black and white binary image in an image memory 3 via an input unit 2 configured by an imaging device such as a facsimile.
In order to facilitate subsequent processing, the input line figure image is subjected to processing such as thinning and removal of coarse image components (removal of isolated points, hair removal) by the image preprocessing unit 4. In the image memory 3 in which the thinned image from which the miscellaneous image components have been removed is stored, the connection processing unit 5 sets a "black" value to the connection disconnection portion of the disconnection, and the image is restored. It is stored in memory 3. By referring to the thinned image that has undergone this disconnection/connection processing, the recognition processing unit 6 recognizes the line figure as a character connection line/symbol, and the resulting code data is stored in the recognition data memory 7. Ru. In this way, drawings are automatically input and converted into code data.

次に本発明である断線接続処理部について述べ
る。断線が起きると少なくとも2つの端点が生じ
る。従つて、断線処理は線図形中の端点の近傍を
解析することにより行われる。以下、本アルゴリ
ズムを説明する。属する線セグメントの長さが
TL1以上の端点についてこれらの処理を順次行
う。
Next, the disconnection/connection processing section according to the present invention will be described. When a wire break occurs, at least two endpoints occur. Therefore, the disconnection process is performed by analyzing the vicinity of the end points in the line figure. This algorithm will be explained below. The length of the line segment to which it belongs is
These processes are performed sequentially for endpoints with TL 1 or higher.

線セグメントの延長上にある端点の接続ま
ず、線セグメントの延長線上にある端点への接
続を行う。第2図においてある端点E1より長
さTL1/2、TL1さかのぼつた点をそれぞれL1
L2とする。E1−L2とE1−L1とのなす角θ1が、
θ1≦Tθ1のとき、L2−E1の延長上、幅TD1
(TD1<線間隔)、長さTD2の矩形をE1より探索
する(第3図)。端締E2が検出されたならば、
E1とE2を接続する。E2の属する線セグメント
E2−E3の長さがTL3以下でかつ孤立していると
きは、E3よりL2−E1の延長上をさらに追跡す
る。
Connecting end points on the extension of a line segment First, connect the end points on the extension of the line segment. In Fig. 2, the points extending lengths TL 1/2 and TL 1 from a certain end point E 1 are L 1 , respectively.
Let it be L 2 . The angle θ 1 between E 1 −L 2 and E 1 −L 1 is
When θ 1 ≦Tθ 1 , the width TD 1 is an extension of L 2 −E 1
(TD 1 <line spacing), a rectangle with length TD 2 is searched from E 1 (Figure 3). If end tightening E 2 is detected,
Connect E 1 and E 2 . Line segment to which E 2 belongs
When the length of E 2 −E 3 is less than TL 3 and is isolated, the extension of L 2 −E 1 is further traced from E 3 .

一定範囲以内の端点同志の接続 次に接続されなかつた端点の1点より第4図
に示すように長さTL4以内に、θ2≦Tθ2となる
端点が1個存在する場合は、それらの端点を接
続する。この条件に該当する端点が2個以上存
在する場合は、最も距離の小さいもの同志を結
ぶ。
Connection of end points within a certain range Next, as shown in Figure 4, if there is one end point within a length TL 4 of which θ 2 ≦Tθ 2 from one of the unconnected end points, then Connect the end points of If there are two or more endpoints that meet this condition, the ones with the shortest distance are connected.

端点と線分の途中点との接続 ある端点E1の近隣に接続すべき端点が存在
しない場合、その端点の属する線セグメントの
延長上を探索し、E1よりTL4以内に線分の途中
点L3が存在するときは(第5図)、E1とL3を接
続する。
Connection between an end point and a point in the middle of a line segment If there is no end point to be connected near a certain end point E 1 , search the extension of the line segment to which that end point belongs, and find a point in the middle of the line segment within TL 4 from E 1 . When point L 3 exists (Fig. 5), connect E 1 and L 3 .

第6図にアルゴリズムのフローテヤートを示
す。まず画像メモリ3内の細線化画像から長さ
TL1以上の線セグメントの端点を全て抽出し、端
点テーブル8に登録する。端点テーブルの例を第
7図に示す。端点テーブルを参照することによ
り、条件、、の優先順位で接続を行う。本
方式で第8図に示した図面の断線処理を施すと、
まず線セグメントの延長上にある端点の接続で
第8図aの部分が接続され、所定範囲以内の端
点同志の接続により第8図bの部分が接続され、
端点と線分の途中点との接続で第8図cの部分
が接続され結果として第9図のようになる。
Figure 6 shows the flow chart of the algorithm. First, calculate the length from the thinned image in image memory 3.
Extract all endpoints of line segments with TL 1 or higher and register them in the endpoint table 8. An example of the endpoint table is shown in FIG. By referring to the endpoint table, connections are made according to the priority order of conditions . When the disconnection process in the drawing shown in Fig. 8 is performed using this method,
First, the part in Figure 8a is connected by connecting the end points on the extension of the line segment, and the part in Figure 8b is connected by connecting the end points within a predetermined range.
The portion c in FIG. 8 is connected by the connection between the end point and the midpoint of the line segment, resulting in the result as shown in FIG. 9.

第8図において、内部カウンタiは端点接続の
条件判定アルゴリズムを指定している。断線接
続処理部5は、ポインタPで指定された端点デー
タを端点テーブル8から読み出し、処理済か否か
を示すフラグが立つていなければ線セグメントの
延長上にある端点であるかどうかを判定し上述し
た条件を満たす端点E1、E2がある場合には、画
像メモリ3内の細線化画像において、この端点
E1、E2間に黒画素を書き込んで修復する。以上
の処理を端点テーブル内の各点について調べた後
は、内部カウンタiを歩進させて端点接続の条件
判定アルゴリズム、を順次選び夫々において
同様処理を実行する。
In FIG. 8, an internal counter i specifies an algorithm for determining conditions for end point connections. The disconnection connection processing unit 5 reads the end point data specified by the pointer P from the end point table 8, and if the flag indicating whether or not it has been processed is not set, determines whether the end point is on an extension of the line segment. If there are endpoints E 1 and E 2 that satisfy the above conditions, these endpoints are
Write a black pixel between E 1 and E 2 to repair. After examining the above processing for each point in the end point table, the internal counter i is incremented and the end point connection condition determination algorithm is sequentially selected and the same processing is executed for each point.

〔発明の他の実施例〕[Other embodiments of the invention]

以上本発明の一実施例につき説明したが、本発
明はこれに限定されるものではない。例えば、実
施例では各処理部はすべて専用のハードウエアで
実行するように書いたが、第1図4,5,6の各
処理部をすべて同一の計算機上でプログラムとし
て実行することも当然可能である。また処理画像
は細線化を行なわなくても例えば輪郭線の追跡で
端点等を抽出して処理してももちろんよい。また
線セグメントの延長上の端点への接続を行うとき
の探索領域は、第3図に示した矩形でなくても、
例えば第12図に示すように、L2−E1の延長線
の両側にE1より角θの探索領域を設定してもよ
い。また第4図の探索領域も正方形である必要は
なく例えば円形であつてもよい。すなわち適当な
探索領域を設定すればよい。
Although one embodiment of the present invention has been described above, the present invention is not limited to this. For example, in the embodiment, each processing section is written to be executed by dedicated hardware, but it is of course also possible to execute all the processing sections 4, 5, and 6 in FIG. 1 as a program on the same computer. It is. Furthermore, the processed image may, of course, be processed by extracting end points and the like by tracing the contour line, for example, without performing line thinning. Also, the search area when connecting to the end point on the extension of the line segment does not have to be the rectangle shown in Figure 3.
For example, as shown in FIG. 12, search regions having an angle θ from E 1 may be set on both sides of the extension line of L 2 −E 1 . Further, the search area in FIG. 4 does not have to be square, but may be circular, for example. That is, it is sufficient to set an appropriate search area.

要するに本発明はその要旨を逸脱しない範囲で
種々変形して実施することができる。
In short, the present invention can be implemented with various modifications without departing from the gist thereof.

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

第1図は本発明に係る図面処理装置の一例の全
体構成図、第2図は端点の属する線セグメントの
方向を推定する方法を説明するための図、第3図
は線セグメントの延長上にある端点を探索する方
法を説明するための図、第4図は所定範囲以内の
端点を探索する方法を説明するための図、第5図
は線セグメントの延長上の線の途中点との接続方
法を説明するための図、第6図は本方式である断
線接続処理の一例を示す流れ図、第7図は端点テ
ーブルの一例を示す図、第8図及び第9図は入力
図面の一例とその処理結果を示す図、第10図は
断線が生じたときの問題点を説明するための図、
第11図は本方式が接続対象とする断線を示す
図、第12図は線セグメントの延長上にある端点
を探索するときの設定領域の変形例を示す図であ
る。 1……設計図面、2……入力部、3……画像メ
モリ、4……画像前処理部、5……断線接続部、
6……認識処理部、7……認識データメモリ。
FIG. 1 is an overall configuration diagram of an example of a drawing processing device according to the present invention, FIG. 2 is a diagram for explaining a method for estimating the direction of a line segment to which an end point belongs, and FIG. 3 is a diagram for explaining the direction of a line segment to which an end point belongs. Figure 4 is a diagram to explain how to search for a certain end point. Figure 4 is a diagram to explain how to search for an end point within a predetermined range. Figure 5 is a diagram to explain how to search for an end point within a predetermined range. Figure 5 is a diagram to explain how to search for an end point within a predetermined range. Figure 5 is a diagram to explain how to search for an end point within a predetermined range. A diagram for explaining the method, FIG. 6 is a flowchart showing an example of disconnection connection processing according to this method, FIG. 7 is a diagram showing an example of an end point table, and FIGS. 8 and 9 are examples of input drawings. A diagram showing the processing results, FIG. 10 is a diagram for explaining the problem when a disconnection occurs,
FIG. 11 is a diagram showing a disconnection to be connected by this method, and FIG. 12 is a diagram showing a modification of the setting area when searching for an end point on an extension of a line segment. 1...Design drawing, 2...Input section, 3...Image memory, 4...Image preprocessing section, 5...Disconnection connection section,
6... Recognition processing unit, 7... Recognition data memory.

Claims (1)

【特許請求の範囲】 1 入力された線図形の端点または分岐点で区切
られる線図形をセグメントとし、一定の長さ以上
のセグメントの端点を抽出し、 抽出された第1の端点の属するセグメントの延
長上でかつその延長線上から所定範囲以内に第2
の端点が抽出された場合に前記第1の端点とこの
第2の端点とを接続する第1の処理と、 抽出された第3の端点より所定範囲内に第4の
端点が抽出された場合に前記第3の端点とこの第
4の端点とを接続する第2の処理と、 抽出された第5の端点の属するセグメントの延
長上の所定範囲内に線の途中点が抽出された場合
に前記第5の端点とこの途中点とを接続する第3
の処理とを備え、 前記第1の処理、第2の処理及び第3の処理の
順に入力された線図形に対し処理を施すことを特
徴とする線図形の断線接続方式。 2 第1の処理は、抽出された第1の端点の属す
るセグメントの延長上でかつ延長線上から所定範
囲以内に第2の端点が抽出された場合で、前記第
2の端点の属するセグメントが孤立していて、か
つ長さが所定の範囲以内である場合は、前記第1
の端点と前記第2の端点とを接続し、さらに前記
第2の端点と反対の第6の端点と接続するべき別
の端点を前記第1の端点の属するセグメントの延
長上で前記第6の端点から所定範囲以内の領域で
探索を行うことを特徴とする特許請求の範囲第1
項記載の線図形の断線接続方式。
[Claims] 1 Line figures separated by end points or branch points of the input line figure are defined as segments, and end points of segments of a certain length or more are extracted, and the segment to which the extracted first end point belongs is extracted. A second line on the extension line and within a specified range from the extension line.
a first process of connecting the first end point and the second end point when the end point is extracted, and a fourth end point is extracted within a predetermined range from the extracted third end point. a second process of connecting the third end point and this fourth end point, and when a midway point of the line is extracted within a predetermined range on the extension of the segment to which the extracted fifth end point belongs; A third point connecting the fifth end point and this halfway point
A method for disconnecting and connecting line figures, characterized in that the first process, the second process, and the third process are performed on input line figures in this order. 2 The first process is when a second end point is extracted on the extension of the segment to which the extracted first end point belongs and within a predetermined range from the extension line, and the segment to which the second end point belongs is isolated. and the length is within a predetermined range, the first
and the second end point, and further connect another end point to be connected to the sixth end point opposite to the second end point on the extension of the segment to which the first end point belongs. Claim 1, characterized in that the search is performed in an area within a predetermined range from the end point.
Disconnection connection method of line diagram described in section.
JP60047481A 1985-03-12 1985-03-12 Connection system for line break of diagram form Granted JPS61208183A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60047481A JPS61208183A (en) 1985-03-12 1985-03-12 Connection system for line break of diagram form

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60047481A JPS61208183A (en) 1985-03-12 1985-03-12 Connection system for line break of diagram form

Publications (2)

Publication Number Publication Date
JPS61208183A JPS61208183A (en) 1986-09-16
JPH0325823B2 true JPH0325823B2 (en) 1991-04-09

Family

ID=12776319

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60047481A Granted JPS61208183A (en) 1985-03-12 1985-03-12 Connection system for line break of diagram form

Country Status (1)

Country Link
JP (1) JPS61208183A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101602057B1 (en) * 2014-09-25 2016-03-10 주식회사 서일 Straw Packing Belt Continuous Connection Methods That Do Not Affect The Film Cutting Straw

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03105574A (en) * 1989-09-20 1991-05-02 Honda Motor Co Ltd Image processor and image processing method
JP2815263B2 (en) * 1992-06-04 1998-10-27 松下電器産業株式会社 Fine line image shaping method
JP5936989B2 (en) * 2012-10-30 2016-06-22 有限会社シンビー Drawing support program, drawing support system, and drawing support method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5924471B2 (en) * 1979-09-03 1984-06-09 株式会社日立製作所 Line recognition method in pattern recognition device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101602057B1 (en) * 2014-09-25 2016-03-10 주식회사 서일 Straw Packing Belt Continuous Connection Methods That Do Not Affect The Film Cutting Straw

Also Published As

Publication number Publication date
JPS61208183A (en) 1986-09-16

Similar Documents

Publication Publication Date Title
US4989258A (en) Character recognition apparatus
CN116309562B (en) Board defect identification method and system
JPS6140684A (en) Contour tracking device
US5261033A (en) Method of and apparatus for converting line graphic into graphic having curve
JPH0325823B2 (en)
US20260004564A1 (en) Data detection method and apparatus, computer, storage medium, and program product
CN113688263B (en) Method, computing device, and storage medium for searching for image
CN111681244B (en) Blade image segmentation method, system, equipment and storage medium
JPH0981740A (en) Line figure input device
CN115619813A (en) SEM image foreground extraction method, device, computer equipment and storage medium
JPH024950B2 (en)
JPH09185726A (en) Ruled line removing method
JPH0520433A (en) Inspection device for printed wiring board
JPH0225553B2 (en)
JP2650443B2 (en) Line figure vectorization method
CN117275004A (en) Text refining method and device
JPS6111886A (en) Character recognition system
JPH0683890A (en) Line kind recognizing method in automatic drawing input device
CN117058720A (en) Feature point extraction method, device, terminal equipment and storage medium
JP3335032B2 (en) Image connected component extraction device
JPH0554089A (en) Figure recognition device and recognition error correction device
JP2867650B2 (en) Symbol candidate area detection method
CN119251683A (en) Tea stem and leaf hyperspectral separation and extraction method, device, equipment and medium
JPH04367986A (en) Rectangle extraction method and rectangle extraction device
JPH02232780A (en) Linear graphic correcting system