JP3113217B2 - Dashed line recognition method - Google Patents

Dashed line recognition method

Info

Publication number
JP3113217B2
JP3113217B2 JP09102202A JP10220297A JP3113217B2 JP 3113217 B2 JP3113217 B2 JP 3113217B2 JP 09102202 A JP09102202 A JP 09102202A JP 10220297 A JP10220297 A JP 10220297A JP 3113217 B2 JP3113217 B2 JP 3113217B2
Authority
JP
Japan
Prior art keywords
line
line segment
short
recognizing
dashed
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
JP09102202A
Other languages
Japanese (ja)
Other versions
JPH10293845A (en
Inventor
康浩 青木
昭夫 塩
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.)
Nippon Telegraph and Telephone Corp
Original Assignee
Nippon Telegraph and Telephone Corp
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 Nippon Telegraph and Telephone Corp filed Critical Nippon Telegraph and Telephone Corp
Priority to JP09102202A priority Critical patent/JP3113217B2/en
Publication of JPH10293845A publication Critical patent/JPH10293845A/en
Application granted granted Critical
Publication of JP3113217B2 publication Critical patent/JP3113217B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Image Analysis (AREA)

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、イメージスキャナ
などを介して入力される、手書きまたは印刷された図面
から、該図面に表記されている破線を認識する方法に係
り、特に、対象とする破線は描かれている角度が数種類
に限定されているものとし、その破線を構成する線分に
手書きなどによる歪みや雑音、他の線分との接触などが
あっても認識できるようにし、ベクトルデータに自動変
換する破線認識方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method for recognizing a dashed line described in a handwritten or printed drawing input through an image scanner or the like, and more particularly, to a target dashed line. Is assumed to be limited to several types of drawn angles, so that the lines constituting the dashed line can be recognized even if there is distortion, noise, contact with other line segments, etc. due to handwriting, etc., and vector data The present invention relates to a method for recognizing a dashed line that is automatically converted to a dashed line.

【0002】[0002]

【従来の技術】従来、図面に描かれた破線の認識方法と
しては、図面から短線分を検出し、近傍の短線分を関連
づけていく手法が使われてきた。しかし、この方法で
は、手書きなどによる歪みのある図面などに対して、う
まく短線分の関連付けができなかったり、他の線分と接
触している短線分を検出できないといった問題があっ
た。
2. Description of the Related Art Conventionally, as a method of recognizing a broken line drawn in a drawing, a method of detecting a short line segment from a drawing and associating a nearby short line segment has been used. However, this method has a problem that a short line segment cannot be properly associated with a drawing having a distortion due to handwriting or the like, and a short line segment in contact with another line segment cannot be detected.

【0003】[0003]

【発明が解決しようとする課題】本発明は、従来の破線
認識方法における上記の問題を解決し、正確に印刷され
た図面だけでなく、線の歪みや接触などが存在する手書
き図面にも対応できる破線認識方法を提供することを目
的とする。
SUMMARY OF THE INVENTION The present invention solves the above-mentioned problems in the conventional method for recognizing a broken line, and is applicable not only to a correctly printed drawing but also to a handwritten drawing in which line distortion or contact exists. It is an object of the present invention to provide a method for recognizing broken lines.

【0004】[0004]

【課題を解決するための手段】本発明の破線認識方法
は、他の線分と接触や交差せず、一定値以内の長さであ
る線分を破線を構成する短線分として検出する処理と、
他の線分と接触や交差している破線部分について局所的
な射影情報を獲得し、該射影情報に基づき前記破線部分
を破線を構成する短線分として検出する処理と、検出し
た破線の種別を短線分の並び方から認識する処理と、破
線の始終点を図面の補助線位置に近似することにより認
識する処理とを有することを特徴とする。
A dashed line recognizing method according to the present invention detects a line segment having a length within a predetermined value, which does not contact or cross another line segment, as a short line segment constituting the dashed line. ,
Obtain local projection information for a broken line portion that touches or intersects another line segment, and based on the projection information ,
, The process of recognizing the type of the detected dashed line from the arrangement of the short line, and the process of recognizing the start and end points of the dashed line by approximating the auxiliary line position in the drawing. It is characterized by the following.

【0005】このように、本発明では、抽出された短線
分をその位置と向きから、一定の位置に近似する手法
と、接触や交差によって検出できなかった短線分を垂直
方向の画素列データを利用して検出する手法を用いる。
獲得した短線分や端点をあらかじめ定めた位置に近似す
ることにより、手書きによる線分の歪みや位置ずれの影
響を少なくすることができる。さらに、線分に垂直方向
の画素列を利用することにより、短線分が他の線分と接
触することで抽出できなくなるという問題を解決してい
る。また、破線認識処理では、獲得した破線候補データ
を、手書き変動を許容するレンジの広いしきい値を使っ
て数値パターンに変換した上で、破線の種別を認識して
いる。
As described above, according to the present invention, a method for approximating an extracted short line segment to a fixed position from its position and orientation, and a method for extracting a short line segment that could not be detected due to contact or intersection with vertical pixel row data. Use a detection method.
By approximating the obtained short line segment or end point to a predetermined position, it is possible to reduce the influence of handwritten line segment distortion or positional deviation. Further, by using a pixel row in the vertical direction for a line segment, the problem that a short line segment cannot be extracted due to contact with another line segment is solved. In the dashed line recognition process, the type of dashed line is recognized after the acquired dashed line candidate data is converted into a numerical pattern using a threshold value with a wide range that allows handwriting fluctuation.

【0006】[0006]

【発明の実施の形態】以下、本発明の実施の形態につい
て図面を用いて詳述する。図1は、本発明の破線認識方
法の全体的処理の流れを示す図である。処理は破線マッ
プ作成処理10と破線認識処理20に大別される。破線
マップ作成処理10は、イメージスキャナ等を介して得
られた図面データに対し、線分の輪郭を追跡する処理1
1、輪郭追跡の結果により破線候補を抽出して破線マッ
プ登録する処理12、輪郭追跡で検出されない破線部分
をグリッド線に垂直な方向の画素列から検出して、破線
マップ登録する処理13からなる。破線認識処理20
は、破線マップから破線パターンを生成する処理21、
生成されたパターンと登録してある破線パターンと照合
することにより破線の種別を認識する処理22、破線の
種別に応じて破線の始終点を認識する処理23からな
る。図2乃至図6に、輪郭追跡処理11を除く各処理1
2,13,21〜23の詳細フローを示す。
Embodiments of the present invention will be described below in detail with reference to the drawings. FIG. 1 is a diagram showing the overall processing flow of the broken line recognition method of the present invention. The processing is roughly divided into a dashed line map creation processing 10 and a dashed line recognition processing 20 . A broken line map creation process 10 is a process 1 for tracing the outline of a line segment on drawing data obtained via an image scanner or the like.
1. A process 12 for extracting a dashed line candidate based on the result of contour tracing and registering a dashed line map, and a process 13 for detecting a dashed line portion not detected by contour tracing from a pixel row in a direction perpendicular to a grid line and registering the dashed line map. . Broken line recognition processing 20
Is a process 21 for generating a dashed line pattern from a dashed line map,
The process includes a process 22 for recognizing the type of the broken line by comparing the generated pattern with the registered broken line pattern, and a process 23 for recognizing the start and end points of the broken line according to the type of the broken line. FIGS. 2 to 6 show each processing 1 except the contour tracking processing 11.
2, 13 and 21 to 23 show a detailed flow.

【0007】図7は、破線を含む図面の描かれる用紙
に、あらかじめドロップアウトカラーなどで記されたグ
リッド状の補助線の例を示す図である。この補助線は等
間隔に交点ができるように、いくつかの方向に平行な線
を等間隔で引いたものである。図7の(a)は、縦と横
方向の2種類の補助線であり、(b)さらに左右斜め4
5度の補助線を加えたものである。
FIG. 7 is a view showing an example of a grid-like auxiliary line previously written on a sheet of paper including a broken line with a dropout color or the like. This auxiliary line is a line parallel to several directions drawn at equal intervals so that intersections are formed at equal intervals. FIG. 7A shows two types of auxiliary lines in the vertical and horizontal directions, and FIG.
5 degrees of supplementary lines are added.

【0008】以下に本発明による処理の具体例として、
間取り図面中に描かれた破線の認識に本発明を利用した
場合について説明する。
Hereinafter, as a specific example of the processing according to the present invention,
A case where the present invention is used for recognizing a broken line drawn in a floor plan will be described.

【0009】間取り図面専用の用紙には、通常、補助線
として図7の(a)に示すような縦横の線が等間隔に引
かれている。この図面上の補助線をグリッド線、補助線
の交点をグリッド交点と呼ぶこととする。間取り図面を
構成する多くの要素(壁、建具等)のサイズが、グリッ
ド線の間隔の整数倍で表現される。このため、専用用紙
に間取り図面を描く場合、大部分の線分がグリッド上に
描かれ、さらにその始終点はグリッド交点上にくる。本
発明の破線認識方法は、この特徴を利用するものであ
り、破線をグリッド線上に描くことを筆記条件としてい
る。
Usually, vertical and horizontal lines as shown in FIG. 7A are drawn at regular intervals as auxiliary lines on a sheet dedicated to a floor plan. An auxiliary line on this drawing is called a grid line, and an intersection of the auxiliary lines is called a grid intersection. The size of many elements (walls, fittings, etc.) constituting the floor plan is expressed by an integer multiple of the grid line interval. For this reason, when drawing a floor plan on dedicated paper, most of the line segments are drawn on the grid, and the start and end points are on the grid intersection. The dashed line recognition method of the present invention makes use of this feature, and draws a dashed line on a grid line as a writing condition.

【0010】〈破線マップ作成処理10〉破線マップ作
成処理10では、イメージスキャン等を介して得られた
図面データから破線候補として短線分を抽出し、破線マ
ップに登録する。破線マップとは、破線候補として抽出
した短線分を、その位置と方向を基に、最も適合するグ
リッド線上に近似し、そのグリッド線上に短線分の有無
を記録したデータのことである。具体的には、図9に示
すように、グリッド線毎に用意され、近似された短線分
領域を記録したビット列である。以下、破線マップ作成
処理10の各処理11,12,13についてその詳細を
順に説明する。
<Dashed line map creation process 10> In the dashed line map creation process 10, short line segments are extracted as drawing line candidates from drawing data obtained through image scanning or the like, and registered in the dashed line map. The dashed line map is data obtained by approximating a short line segment extracted as a dashed line candidate to the best matching grid line based on its position and direction, and recording the presence or absence of the short line segment on the grid line. More specifically, as shown in FIG. 9, the bit string is prepared for each grid line and records an approximated short line segment area. Hereinafter, the details of the processes 11, 12, and 13 of the broken line map creation process 10 will be sequentially described.

【0011】(輪郭追跡処理11)輪郭追跡処理11で
は、イメージスキャナなどを介して入力された2値図面
データに対し、図面中の線分を表す画素と背景を表す画
素の境界を追跡する。追跡結果には線分の外周と内周を
追跡したものが存在する。この中から、線分の外周追跡
であり、かつ追跡距離が一定値以下のものを、破線を構
成する短線分として抽出する。
(Contour Tracking Process 11) In the contour tracking process 11, for binary drawing data input via an image scanner or the like, a boundary between a pixel representing a line segment and a pixel representing a background in the drawing is tracked. Some of the tracking results track the outer circumference and inner circumference of the line segment. Out of these, a line segment whose outer periphery is tracked and whose tracking distance is equal to or less than a certain value is extracted as a short line segment forming a broken line.

【0012】具体的な例を説明すると、まず、入力され
た2値データの左上から画素を順次走査していき、白画
素の下側に黒画素のくるパターンを検出し、その白画素
を輪郭追跡の開始点とする。次点候補は、現在位置して
いる白画素の上下左右の4方向であり、その優先順位
は、進行方向に対して右、前、左、後の順とする。この
中で優先順位の高い白画素を次点とする。この手順で輪
郭追跡を行い、開始点に戻ってきたら探索終了とする。
この追跡結果において、輪郭追跡時の次点が進行方向に
対して右側になるケースが左側より少ない場合は内側追
跡、その逆の場合は外側追跡だったと判断する。また、
追跡画素数で、短線分かどうかを判断する。輪郭追跡処
理自体は良く知られているので、その詳細フローは省略
する。
A specific example will be described. First, pixels are sequentially scanned from the upper left of the input binary data, a pattern in which black pixels come below white pixels is detected, and the white pixels are contoured. This is the starting point of tracking. The next-point candidates are the four directions of up, down, left, and right of the currently located white pixel, and the priority order is right, front, left, and rear with respect to the traveling direction. Among these, the white pixel with the highest priority is the next point. The contour tracing is performed in this procedure, and when returning to the starting point, the search is terminated.
In this tracking result, if the number of cases where the next point at the time of contour tracking is on the right side with respect to the traveling direction is smaller than the left side, it is determined that inner tracking has been performed, and if the reverse is the case, outer tracking has been performed. Also,
It is determined from the number of tracking pixels whether or not it is a short line segment. Since the contour tracking processing itself is well known, a detailed flow thereof is omitted.

【0013】(短線分近似処理12)短線分近似処理1
2では、輪郭追跡で抽出された短線分をその中心位置
や、外接矩形形状などを基に、距離が近く、描かれてい
る方向の合うグリッド線位置に近似し、破線マップに登
録する。図2に短線分近似処理12の詳細フローを示
す。
(Short line segment approximation process 12) Short line segment approximation process 1
In step 2, based on the center position, circumscribed rectangular shape, and the like, the short line segment extracted by the contour tracking is approximated to a grid line position that is short in distance and matches the drawn direction, and is registered in a dashed line map. FIG. 2 shows a detailed flow of the short line segment approximation processing 12.

【0014】獲得した短線分を構成する輪郭画素から、
x座標の最大値と最小値、y座標の最大値と最小値をそ
れぞれ見つけ、それを基に(x座標の最小値、y座標の
最大値)、(x座標の最大値、y座標の最大値)、(x
座標の最大値、y座標の最小値)、(x座標の最小値、
y座標の最小値)の4点を頂点にした長方形を、短線分
の外接矩形とする(ステップ121)。この外接矩形の
形状が、水平/垂直のどちらの方向に長いのかを比べ、
長い方向を短線分の方向とする(ステップ122)。該
外接矩形の重心座標を求め、その座標に最も近く、かつ
先に求めた短線分方向のグリッド線位置への近似により
(ステップ123)、破線マップに登録する(ステップ
124)。
From the contour pixels constituting the acquired short line segment,
Find the maximum and minimum values of the x-coordinate and the maximum and minimum values of the y-coordinate, respectively, and based on them, (minimum value of x-coordinate, maximum value of y-coordinate), (maximum value of x-coordinate, maximum of y-coordinate) Value), (x
Coordinate maximum value, y coordinate minimum value), (x coordinate minimum value,
A rectangle having four vertices (minimum value of the y-coordinate) as vertices is set as a circumscribed rectangle of a short line (step 121). Compare whether the shape of this circumscribed rectangle is longer in the horizontal or vertical direction,
The long direction is set as the direction of the short line segment (step 122). The coordinates of the center of gravity of the circumscribed rectangle are obtained, and are registered in the dashed line map by approximation to the grid line position in the direction of the shortest line segment closest to the coordinates (step 123).

【0015】図8は短線分のグリッド線への近似の具体
例を説明する図である。図8において、同図(a)の短
線分領域について、同図(b)のように外接矩形を生成
してグリッド線位置へ近似することにより、同図(c)
のようなパターンが破線マップに登録される。図9は破
線マップの概念図である。
FIG. 8 is a diagram for explaining a specific example of approximation to a short-line grid line. 8, a circumscribed rectangle is generated for the short line segment region in FIG. 8A and approximated to a grid line position as shown in FIG.
Is registered in the broken line map. FIG. 9 is a conceptual diagram of a dashed line map.

【0016】(線分抽出処理13)線分抽出処理13で
は、他の線分との交差や接触により輪郭追跡処理11で
検出されなかった、破線を構成する線分を検出し、破線
マップに登録する。図3に線分抽出処理13の詳細フロ
ーを示す。
(Line Segment Extraction Process 13) In the line segment extraction process 13, line segments constituting a broken line, which are not detected in the contour tracking process 11 due to intersection or contact with other line segments, are detected, and a line map is generated. sign up. FIG. 3 shows a detailed flow of the line segment extraction processing 13.

【0017】破線マップ上に短線分が存在しているグリ
ッド線に於いて、該グリッド線の短線分が検出されなか
った部分を探索領域として、垂直方向の一定幅の画素列
を抽出する(ステップ131)。得られた画素列は0,
1のビット列であり、このデータ上の連続する1の部分
(黒画素)の状態から、線分の太さと本数の情報を求め
る(ステップ132)。例えば、1が連続して1〜2個
並んでいる場合には雑音として0に書き換え、3〜8は
細線、9〜20は太線、それ以上は極太線と定義するこ
とで、太さによる線種が決まり、また、1の連続する領
域がいくつ存在するかをカウントし、線分の本数を獲得
する。ただし、線分のかすれや歪みが存在しているの
で、得られた情報をグリッド線に沿って並べた際に、同
一線種が一定数以上連続していない部分は雑音として考
え、隣接する線分の線種への書き換えをおこなう。こう
して獲得した線分情報に於いて、探索領域の両端に比べ
その間の領域に線分が多く検出された場合、その部分を
短線分として破線マップへ登録する(ステップ13
3)。
In a grid line in which a short line segment exists on the broken line map, a portion where the short line segment of the grid line is not detected is used as a search area to extract a pixel row having a constant width in the vertical direction (step). 131). The obtained pixel row is 0,
Information on the thickness and the number of line segments is obtained from the state of one continuous portion (black pixel) on the data, which is a bit string of 1 (step 132). For example, when 1 or 2 are continuously arranged, 1 is rewritten to 0 as noise, 3 to 8 are defined as thin lines, 9 to 20 are defined as bold lines, and more are defined as very thick lines. The kind is determined, and how many continuous areas are present is counted, and the number of line segments is obtained. However, since the blur and distortion of the line segment is present, the resulting information when arranged along the grid lines, portions identical line style are not continuous over a predetermined number of considered as noise, adjacent lines Rewrite to the line type of the minute . In the line segment information obtained in this way, if many line segments are detected in the area between the two ends of the search area as compared to both ends, the part is registered in the dashed line map as a short line segment (step 13).
3).

【0018】図10は線分抽出処理13の具体例を説明
する図である。同図(a)に示すように、破線マップ上
に短線分が存在しているグリッド線について、他の線分
(縦線分)との交差により短線分が検出されなかった部
分を探索領域として、同図(b)に示すように垂直方向
の一定幅の画素列を抽出し、同図(c)のように線分の
太さと本数を求めて、破線候補の短線分を判断する。例
えば、同図(c)では、線なし、細線1本、極太線1
本、細線1本、線なしといった連続した領域になってい
る。この場合、両端に線がなく、その間の領域には線が
1本存在しているので、同図(d)のように、短線分を
破線マップへ登録する。
FIG. 10 is a view for explaining a specific example of the line segment extraction processing 13. As shown in FIG. 3A, a portion where a short line segment is not detected due to an intersection with another line segment (vertical line segment) is set as a search area for a grid line having a short line segment on a dashed line map. As shown in FIG. 2B, a pixel row having a constant width in the vertical direction is extracted, and the thickness and the number of line segments are obtained as shown in FIG. For example, in FIG. 3C, there is no line, one thin line, and one very thick line.
It is a continuous area such as a book, one thin line, and no line. In this case, since there is no line at both ends and there is one line in the area between them, a short line segment is registered in the broken line map as shown in FIG.

【0019】〈破線認識処理20〉破線認識処理20
は、破線パターン生成処理21で、破線マップのデータ
から破線候補部分を数値パターンに変換したものを抽出
し、パターン照合処理22で、このパターンを辞書パタ
ーンと照合することにより破線の種類を認識し、始終点
認識処理23で破線の始終点を求め、破線認識を完了と
する。以下、これらの処理についてその詳細を順に説明
する。
<Dashed line recognition process 20>
In the dashed line pattern generation process 21, a dashed line candidate portion converted into a numerical pattern is extracted from the data of the dashed line map, and the type of the dashed line is recognized by comparing the pattern with a dictionary pattern in the pattern matching process 22. The start and end points of the broken line are obtained in the start and end point recognition processing 23, and the recognition of the broken line is completed. Hereinafter, these processes will be described in detail in order.

【0020】(破線パターン生成処理21)破線パター
ン生成処理21では、破線マップ作成処理10によって
獲得した破線マップから、破線を構成する短線分として
記録されたデータ部分を、破線の種別を認識するために
数値データに変換す。図4に破線パターン生成処理の詳
細フローを示す。
(Dashed line pattern generation process 21) In the dashed line pattern generation process 21, the data portion recorded as the short line segment constituting the dashed line is recognized from the dashed line map acquired by the dashed line map generation process 10 in order to recognize the type of the dashed line. To numeric data. FIG. 4 shows a detailed flow of the broken line pattern generation processing.

【0021】図11に示すように、破線は短線分の連続
パターンであり、それぞれの破線は、長さの異なる短線
分の組み合わせパターンにより種別が区別されている。
この短線分の長さは(特に手書き図面などの場合)、明
確に決まっているわけではなく、短いものと長めのもの
とが見て区別できる程度なものであり、2種類程度の長
さの区別で破線が構成されている。そこで、破線マップ
上の短線分領域(1が記録されている領域)の長さ(1
がいくつ連続しているか)に対し、短めと長めの短線分
を一定しきい値により区別する。また、短線分の存在し
ない領域(0が記録されている領域)の長さも、短線分
に挟まれた領域とそれ以外のものを区別するために、一
定しきい値で区別する。
As shown in FIG. 11, the broken lines are continuous patterns of short lines, and the types of each broken line are distinguished by a combination pattern of short lines having different lengths.
The length of the short line segment (especially in the case of a handwritten drawing) is not clearly determined, but can be distinguished between a short one and a long one. A broken line is formed for distinction. Therefore, the length (1) of the short line segment area (the area where 1 is recorded) on the broken line map is set.
(How many are continuous) is distinguished by a fixed threshold value between a short line segment and a long short line segment. In addition, the length of the area where the short line segment does not exist (the area where 0 is recorded) is also distinguished by a certain threshold value in order to distinguish the area between the short line segment and the other area.

【0022】ここでは、パターン変換条件を次のように
定める。 ( i) 0が3〜8連続+1が3〜8連続 → 1 ( ii) 0が3〜8連続+1が9〜20連続 → 2 (iii) 上記以外 → 0 破線パターン生成処理21では、破線マップ上のデータ
列を先頭より順にチェックして(ステップ211)、0
または1の連続数をカウントし(ステップ212)、上
記パターン変換条件に基づいて、0または1の連続領域
の“0“、“1”または“2”に変換する(ステップ2
13)。こうして、“0”で挾まれたパターンに関し
て、その始線座標を破線マップから読み取り、パターン
と関連づけて記録する(ステップ214)。図12は、
破線マップのパターン化の具体例を示したものである。
Here, the pattern conversion conditions are determined as follows. (I) 0 is 3 to 8 consecutive +1 is 3 to 8 consecutive → 1 (ii) 0 is 3 to 8 consecutive + 1 is 9 to 20 consecutive → 2 (iii) Other than the above → 0 In the dashed line pattern generation processing 21, a dashed line map The upper data string is checked in order from the beginning (step 211), and 0
Alternatively, the number of consecutive 1s is counted (step 212), and is converted into “0”, “1”, or “2” in a continuous area of 0 or 1 based on the pattern conversion condition (step 2).
13). In this manner, the start line coordinates of the pattern sandwiched by "0" are read from the broken line map and recorded in association with the pattern (step 214). FIG.
It shows a specific example of patterning a broken line map.

【0023】(パターン照合処理22)パターン照合処
理22では、獲得したパターンから、包含されている破
線の種類を識別する。図5にパターン照合処理22の詳
細フローを示す。
(Pattern Matching Process 22) In the pattern matching process 22, the type of the included broken line is identified from the acquired pattern. FIG. 5 shows a detailed flow of the pattern matching processing 22.

【0024】破線パターン生成処理21で得られたパタ
ーンに含まれている“1”の数値がいくつ連続している
かをカウントし(ステップ221)、あらかじめ定めた
照合条件により線種を識別する(ステップ222)。具
体的には、例えば、図12で示した破線パターンで、0
に挟まれている部分に対し、図13に示すような照合条
件により、カウンタ値が1なら線種B、2なら線種C、
3以上なら線種Aとする。
The number of consecutive “1” values included in the pattern obtained in the dashed line pattern generation process 21 is counted (step 221), and the line type is identified based on a predetermined collation condition (step 221). 222). Specifically, for example, in the dashed pattern shown in FIG.
13, the line type B if the counter value is 1, the line type C if the counter value is 1,
If it is 3 or more, the line type is A.

【0025】(始終点認識処理23)始終点認識処理2
3では、種別が認識された破線に始終点を与える。図6
に始終点認識処理23の詳細フローを示す。
(Start and end point recognition processing 23) Start and end point recognition processing 2
In 3, the start and end points are given to the broken line whose type is recognized. FIG.
3 shows a detailed flow of the start / end point recognition processing 23.

【0026】破線Aの場合、パターンの始終点を前後に
伸ばす方向で、グリッド線の位置に近似した点を破線の
始終点とする(ステップ231,232)。破線B、C
の場合、パタンの始終点を前後に伸ばす方向に、線分検
出をおこない(ステップ233,235)、線分が途切
れる、または、太さなどが変わる部分を見つけ、その点
を近傍のグリッド線に近似した点を破線の始終点とする
(ステップ234,236)。線分検出は、例えば図4
に示した画素列抽出処理と同様にして実現できる。
In the case of the broken line A, a point approximate to the position of the grid line in the direction in which the start and end points of the pattern are extended back and forth is set as the start and end points of the broken line (steps 231 and 232). Dashed lines B, C
In the case of, a line segment is detected in the direction in which the start and end points of the pattern are extended back and forth (steps 233 and 235), and a portion where the line segment is interrupted or the thickness or the like changes is found. The approximated point is set as the start and end points of the broken line (steps 234 and 236). Line segment detection is performed, for example, by referring to FIG.
Can be realized in the same manner as the pixel row extraction processing shown in FIG.

【0027】該始終点処理23の終了後、別な破線を抽
出するために、破線パターン生成処理21に戻り、処理
を繰り返す。
After the start / end point process 23 is completed, the process returns to the broken line pattern generation process 21 to extract another broken line, and the process is repeated.

【0028】以上、本発明の一実施の形態を説明した
が、これらは、いわゆるコンピュータを利用して実現さ
れるものである。その際、図1さらには図2乃至図6に
示したような処理フロー(手順)は、アプリケーション
プログラムとしてあらかじめコンピュータ内に用意して
おいてもよいし、あるいは、これらの手順を記述したプ
ログラムを記録した記録媒体(フロッピーディスク、光
ディスク等)をコンピュータにかけて読み込ませる(イ
ンストール)ことでもよい。
The embodiments of the present invention have been described above, but these are realized using a so-called computer. At this time, the processing flow (procedure) as shown in FIG. 1 and FIGS. 2 to 6 may be prepared in advance in the computer as an application program, or a program describing these procedures may be prepared. The recorded recording medium (floppy disk, optical disk, or the like) may be read (installed) by a computer.

【0029】また、実施例では、破線を近似する位置と
して、あらかじめ図面に印刷されている補助線位置を利
用しているが、補助線でなくても、認識処理の前に自動
または手動で近似位置を決定することで対応できる。
Further, in the embodiment, the position of the auxiliary line printed in advance in the drawing is used as the position approximating the broken line. However, even if it is not the auxiliary line, it is automatically or manually approximated before the recognition processing. This can be dealt with by determining the position.

【0030】[0030]

【発明の効果】以上説明したように、本発明の破線認識
処理によれば、従来、認識対象外であった手書き図面、
例えば建築間取り図面に描かれた破線で表される記号な
どの認識が可能となり、認識システムの利用分野が大幅
に膨らむ。また、本発明の破線認識方法は、建築物にお
ける間取りの空間配置を示す間取り図面に限らず、回路
配線を示す論理回路図面やその他、様々な図面における
破線の自動認識処理に利用することができる。
As described above, according to the broken line recognition processing of the present invention, a handwritten drawing,
For example, it is possible to recognize a symbol represented by a broken line drawn on a building floor plan, and the field of use of the recognition system is greatly expanded. In addition, the dashed line recognition method of the present invention is not limited to a floor plan showing a spatial arrangement of a floor plan in a building, and can be used for automatic recognition of dashed lines in a logic circuit drawing showing circuit wiring and other various drawings. .

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

【図1】本発明の破線認識方法の全体的処理フローを示
す図である。
FIG. 1 is a diagram showing an overall processing flow of a dashed line recognition method of the present invention.

【図2】短線分近似処理の詳細フローである。FIG. 2 is a detailed flowchart of a short line segment approximation process.

【図3】線分抽出処理の詳細フローである。FIG. 3 is a detailed flowchart of a line segment extraction process.

【図4】破線パターン生成処理の詳細フローである。FIG. 4 is a detailed flow of a broken line pattern generation process.

【図5】パターン照合処理の詳細フローである。FIG. 5 is a detailed flow of a pattern matching process.

【図6】始点認識処理の詳細フローである。FIG. 6 is a detailed flowchart of a start point recognition process.

【図7】図面用紙に記される補助線の例を示す図であ
る。
FIG. 7 is a diagram illustrating an example of an auxiliary line written on a drawing sheet.

【図8】短線分のグリッド線への近似を説明する図であ
る。
FIG. 8 is a diagram illustrating approximation of a short line to a grid line.

【図9】破線マップの概念図である。FIG. 9 is a conceptual diagram of a broken line map.

【図10】線分抽出処理を説明する図である。FIG. 10 is a diagram illustrating a line segment extraction process.

【図11】破線パターンの例を示す図である。FIG. 11 is a diagram illustrating an example of a broken line pattern.

【図12】破線マップのパターン化を示す図である。FIG. 12 is a diagram showing patternization of a dashed line map.

【図13】照合パターンの一例を示す図である。FIG. 13 is a diagram illustrating an example of a matching pattern.

【符号の説明】[Explanation of symbols]

10 破線マップ作成処理 11 輪郭追跡処理 12 短線分近似処理 13 線分抽出処理 20 破線認識処理 21 破線パターン生成処理 22 パターン照合処理 23 始終点認識処理 DESCRIPTION OF SYMBOLS 10 Dashed line map creation processing 11 Contour tracking processing 12 Short line segment approximation processing 13 Line segment extraction processing 20 Dashed line recognition processing 21 Dashed line pattern generation processing 22 Pattern matching processing 23 Start and end point recognition processing

───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 平1−113883(JP,A) 特開 平4−142679(JP,A) 特開 平1−173178(JP,A) 特開 平4−52774(JP,A) (58)調査した分野(Int.Cl.7,DB名) G06T 7/00 G06T 7/60 G06F 17/50 G06K 9/36 JICSTファイル(JOIS)──────────────────────────────────────────────────続 き Continuation of the front page (56) References JP-A-1-113883 (JP, A) JP-A-4-142679 (JP, A) JP-A-1-173178 (JP, A) JP-A-4-173 52774 (JP, A) (58) Field surveyed (Int. Cl. 7 , DB name) G06T 7/00 G06T 7/60 G06F 17/50 G06K 9/36 JICST file (JOIS)

Claims (4)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 グリッド状の補助線が印刷された用紙上
に、手書きまたは印刷された図面の破線を認識する方法
であって、他の線分と接触や交差せず、一定値以内の長
さである線分を破線を構成する短線分として検出する処
理と、他の線分と接触や交差している破線部分について
局所的な射影情報を獲得し、該射影情報に基づき前記破
線部分を破線を構成する短線分として検出する処理と、
検出した破線の種別を短線分の並び方から認識する処理
と、破線の始終点を図面の補助線位置に近似することに
より認識する処理とを有することを特徴とする破線認識
方法。
1. A method for recognizing a dashed line of a handwritten or printed drawing on a sheet on which a grid-shaped auxiliary line is printed, wherein the line does not contact or intersect with another line segment and has a length within a predetermined value. a process of detecting a short line segments constituting the dashed line segments is a, won <br/> local projection information about the broken line portions in contact or intersect with other segments, based on projective data Said breaking
A process of detecting a line portion as a short line segment forming a broken line ;
A method for recognizing a dashed line, comprising: a process of recognizing a type of a detected dashed line based on the arrangement of short lines; and a process of recognizing a start and end point of a dashed line by approximating the position of an auxiliary line in the drawing.
【請求項2】 請求項1記載の破線認識方法において、
他の線分と接触や交差せず、一定値以内の長さである線
分を破線を構成する短線分として検出する処理では、破
線を構成する短線分を黒画素と白画素の境界上を追跡す
る輪郭トレースを使って抽出することを特徴とする破線
認識方法。
2. The method for recognizing a broken line according to claim 1,
In the process of detecting a line segment having a length within a certain value without contacting or intersecting with another line segment as a short line segment forming a broken line, the short line segment forming the broken line is placed on a boundary between a black pixel and a white pixel. A method for recognizing a dashed line, wherein the extraction is performed using a contour trace to be traced.
【請求項3】 請求項1記載の破線認識方法において、
他の線分と接触や交差している破線部分について局所的
な射影情報を獲得し、該射影情報に基づき前記破線部分
を破線を構成する短線分として検出する処理では、破線
の存在する可能性のある位置に対して順番に、破線に対
して垂直方向の画素列から線分の太さや本数の情報を求
めて、他の線分と接触や交差している短線分を検出する
ことを特徴とする破線認識方法。
3. The method for recognizing a broken line according to claim 1,
Obtain local projection information for a broken line portion that touches or intersects another line segment, and based on the projection information ,
In the process of detecting as a short line segment constituting the broken line, in order to the position where the broken line may be present, information on the thickness and the number of the line segment is obtained from the pixel row in the vertical direction with respect to the broken line, A broken line recognition method characterized by detecting a short line segment that is in contact with or intersects another line segment.
【請求項4】 請求項1記載の破線認識方法において、
検出した破線の種別を短線分の並び方から認識する処理
では、破線を構成している線分として抽出されたデータ
について、その線分の長さと、隣り合う線分の距離を一
定しきい値で数値化し、該数値をあらかじめ登録してあ
る条件と照合することにより破線の種別を認識すること
を特徴とする破線認識方法。
4. The method for recognizing a broken line according to claim 1,
In the process of recognizing the type of the detected dashed line from the arrangement of the short line segments, for the data extracted as the line segments constituting the dashed line, the length of the line segment and the distance of the adjacent line segment are determined by a certain threshold value. A method for recognizing a dashed line, comprising the steps of digitizing and comparing the numerical value with a pre-registered condition to recognize the type of the dashed line.
JP09102202A 1997-04-18 1997-04-18 Dashed line recognition method Expired - Lifetime JP3113217B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP09102202A JP3113217B2 (en) 1997-04-18 1997-04-18 Dashed line recognition method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP09102202A JP3113217B2 (en) 1997-04-18 1997-04-18 Dashed line recognition method

Publications (2)

Publication Number Publication Date
JPH10293845A JPH10293845A (en) 1998-11-04
JP3113217B2 true JP3113217B2 (en) 2000-11-27

Family

ID=14321090

Family Applications (1)

Application Number Title Priority Date Filing Date
JP09102202A Expired - Lifetime JP3113217B2 (en) 1997-04-18 1997-04-18 Dashed line recognition method

Country Status (1)

Country Link
JP (1) JP3113217B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4412762B2 (en) 1999-05-31 2010-02-10 富士通株式会社 Dotted line extraction method, apparatus and recording medium
JP2009303164A (en) 2008-06-17 2009-12-24 Canon Inc Image reading apparatus and method of controlling the same

Also Published As

Publication number Publication date
JPH10293845A (en) 1998-11-04

Similar Documents

Publication Publication Date Title
JP3427928B2 (en) Handwritten information processing system and method
JP3574584B2 (en) Front image processing apparatus and its program storage medium
US6246793B1 (en) Method and apparatus for transforming an image for classification or pattern recognition
JP4704601B2 (en) Character recognition method, program, and recording medium
JP2000112599A (en) Device and method for processing document image
JP3113217B2 (en) Dashed line recognition method
JP2868134B2 (en) Image processing method and apparatus
JP3466899B2 (en) Character recognition device and method, and program storage medium
JP4078045B2 (en) Image processing apparatus, method, program, and storage medium
JP3947173B2 (en) Table image processing apparatus, program recording medium, and table image processing method
JP3977473B2 (en) Handwritten character recognition method and handwritten character recognition apparatus
JP3095470B2 (en) Character recognition device
JP3077929B2 (en) Character extraction method
JP2658137B2 (en) Character recognition method
JP3437296B2 (en) High-speed character string extraction device
JP3088088B2 (en) Drawing symbol recognition method
JP4878057B2 (en) Character recognition method, program, and recording medium
JPH0670801B2 (en) Handwritten character segmentation apparatus and method
JPH07118016B2 (en) Figure recognition device
JPS62134767A (en) Automatic extracting device for symbol name and segment name
JPH10334236A (en) Recognition method for line graphic
JP3190794B2 (en) Character segmentation device
JPH11250256A (en) Graphic recognizing/processing method, and record medium recorded with the program
JP3039427B2 (en) Character extraction method and method
JP2925270B2 (en) Character reader

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080922

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080922

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090922

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090922

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100922

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100922

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110922

Year of fee payment: 11

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120922

Year of fee payment: 12

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130922

Year of fee payment: 13

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

EXPY Cancellation because of completion of term