JPH0927035A - Linear graphic recognition system - Google Patents

Linear graphic recognition system

Info

Publication number
JPH0927035A
JPH0927035A JP7176977A JP17697795A JPH0927035A JP H0927035 A JPH0927035 A JP H0927035A JP 7176977 A JP7176977 A JP 7176977A JP 17697795 A JP17697795 A JP 17697795A JP H0927035 A JPH0927035 A JP H0927035A
Authority
JP
Japan
Prior art keywords
polygon
closed
line
digital image
dimensional digital
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.)
Granted
Application number
JP7176977A
Other languages
Japanese (ja)
Other versions
JP2882314B2 (en
Inventor
Naoya Tanaka
直哉 田中
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
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 filed Critical NEC Corp
Priority to JP17697795A priority Critical patent/JP2882314B2/en
Publication of JPH0927035A publication Critical patent/JPH0927035A/en
Application granted granted Critical
Publication of JP2882314B2 publication Critical patent/JP2882314B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Image Analysis (AREA)

Abstract

PROBLEM TO BE SOLVED: To detect a closed figure and recognize its attribute such as the kind even if a segment is partially broken in a binary two-dimensional digital image or a broken line or alternate long and short dash line. SOLUTION: The linear graphic recognition system which recognizes a closed figure drawn with lines in a binary two-dimensional digital image is equipped with an initial polygon generation part 11 which inputs the two-dimensional digital image and generates a polygon in the closed figure in the two-dimensional digital image, a polygon fitting part 12 which inputs the polygon and two-dimensional digital image and expands and deforms the polygon until it is inscribed in the closed figure, and a figure detection part 13 which decides an attribute such as the kind of the closed figure by inputting the polygon inscribed in the closed figure as a result of the expansion deformation and measuring figure features of the polygon.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は紙面上に線図形で描かれ
た地図、図面、流れ図等をイメージスキャナ等で入力し
て得られる二値の二次元ディジタル画像上で、線分に部
分的に途切れのある場合や、線の種類が破線・一点鎖線
の場合でも、閉図形を検出してその種別等の属性を認識
することが出来る線図形認識方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a line segment on a binary two-dimensional digital image obtained by inputting a map, a drawing, a flow chart, etc. drawn in a line figure on a paper by an image scanner or the like. The present invention relates to a line figure recognition method capable of detecting a closed figure and recognizing attributes such as the type of the closed figure even when there is a break or when the type of the line is a broken line or an alternate long and short dash line.

【0002】地図、図面の自動読み取りを実現する為の
基本技術としてこの線図形認識方式は広く利用できる。
This line figure recognition method can be widely used as a basic technique for realizing automatic reading of maps and drawings.

【0003】[0003]

【従来の技術】従来、図形部分が値1の画素、背景部分
が値0の画素で表される二値の二次元ディジタル画像I
上で閉図形を検出し、その属性を認識する為には以下の
ような方式が利用される。
2. Description of the Related Art Conventionally, a binary two-dimensional digital image I in which a graphic portion is represented by pixels having a value of 1 and a background portion is represented by pixels having a value of 0
The following method is used to detect a closed figure and recognize its attribute.

【0004】始めに、画像Iに対して細線化処理を施
し、細線化画像I′を生成する。細線化処理は画像をラ
スタ走査する過程で、図形部分に含まれ背景と接する画
素を0へ変換する操作を該図形が幅1の芯線図形となる
まで繰り返し施す処理である。
First, the image I is thinned to generate a thinned image I '. The thinning process is a process in which, in the process of raster-scanning an image, an operation of converting pixels included in a graphic portion and in contact with the background to 0 is repeated until the graphic becomes a core line graphic having a width of 1.

【0005】次に、細線化画像I′上の芯線化された図
形をトレースして座標値の系列で近似する。その後、途
切れのある閉図形と、破線・一点鎖線で描かれた閉図形
の検出を考慮して、距離の短いギャップの接続処理を行
う。接続処理は開放端点対の組み合わせの中から互いの
距離が十分小さく、また接続した時に角度の大きなコー
ナーが出来ないものを選択して、これらの開放端点間の
ギャップを補間して接続する処理である。接続を行うか
否かを判定するための開放端点間の距離とコーナー角の
しきい値は予め与えておく。
Next, the skeletonized figure on the thinned image I'is traced and approximated by a series of coordinate values. After that, in consideration of the detection of the closed figure having a break and the closed figure drawn by the broken line and the alternate long and short dash line, the connection processing of the gap having a short distance is performed. The connection process is a process of selecting from the combination of open end point pairs that the distance between them is sufficiently small and that a large angle corner cannot be created when connecting, and interpolating the gap between these open end points to connect. is there. The distance between the open end points and the threshold value of the corner angle for determining whether or not to connect are given in advance.

【0006】次に、ギャップの接続処理の結果得られた
座標値の系列データ上で閉ループをなす部分を検出す
る。
Then, a closed loop portion is detected on the series data of the coordinate values obtained as a result of the gap connection processing.

【0007】次に閉ループをなす座標値の系列に対して
ディジタル化誤差の影響を取り除く為に近似処理を施
す。近似処理を施された閉ループに対し、頂点数、内角
の大きさ、辺の長さ、向かい合う辺の平行度等を測定し
て形状判定を行う。この形状判定結果をもって該閉ルー
プに対応する閉図形の認識結果とする。
Next, an approximation process is applied to the series of coordinate values forming a closed loop in order to remove the influence of digitization error. For the closed loop that has been subjected to the approximation processing, the shape determination is performed by measuring the number of vertices, the size of the internal angle, the length of the side, the parallelism of the opposite sides, and the like. The shape determination result is used as the recognition result of the closed figure corresponding to the closed loop.

【0008】[0008]

【発明が解決しようとする課題】しかし、従来のように
線図形の途切れを補間接続した後に閉図形を検出する方
式では、補間接続処理において図5に見られるように複
数の端点対の接続候補が検出される時に接続すべき正し
い端点対の検出が困難なことがある。その結果、閉図形
を検出できなかったり、誤った閉図形を検出してしまう
問題があった。
However, in the conventional method of detecting a closed figure after interpolating and connecting a discontinuity of a line figure, as shown in FIG. 5, in the interpolating and connecting process, as shown in FIG. It may be difficult to find the correct pair of endpoints to connect when is detected. As a result, there is a problem that a closed figure cannot be detected or an incorrect closed figure is detected.

【0009】[0009]

【課題を解決するための手段】本発明は、二値の二次元
ディジタル画像上に閉じた線で描かれた閉図形を認識す
る線図形認識方式において、前記二次元ディジタル画像
を入力として前記二次元ディジタル画像上の閉図形の内
部にポリゴンを生成する初期ポリゴン生成部と、該ポリ
ゴンと前記二次元ディジタル画像とを入力として該閉図
形に内接するまで該ポリゴンを膨張変形するポリゴンフ
ィッテング部と、膨張変形の結果該閉図形に内接した該
ポリゴンを入力として該ポリゴンの図形特徴を測定する
ことにより該閉図形の種別等の属性を判定する図形検出
部とを備えることを特徴とする。
According to the present invention, in a line figure recognition system for recognizing a closed figure drawn by a closed line on a binary two-dimensional digital image, the two-dimensional digital image is used as an input. An initial polygon generation unit for generating a polygon inside a closed figure on a three-dimensional digital image, and a polygon fitting section for expanding and deforming the polygon until the polygon and the two-dimensional digital image are inscribed in the closed figure. It is characterized by further comprising a figure detecting unit for determining an attribute such as a type of the closed figure by measuring the figure feature of the polygon with the polygon inscribed in the closed figure as an input as a result of the expansion deformation.

【0010】[0010]

【作用】本発明の作用を図1を用いて説明する。The operation of the present invention will be described with reference to FIG.

【0011】閉図形を含む二値画像Iが初期ポリゴン生
成部11に入力されると、初期ポリゴン生成部11では
まず、入力画像Iに図形膨張処理を施した画像Gが生成
される。ここで、図形膨張処理は、画像をラスタ走査し
ながら着目点を中心とする3×3画素の領域で画素値の
配置から輪郭画素に隣接する背景画素であるかどうかを
判定し、もし輪郭画素に隣接する背景画素であれば画素
値を0から1へ書き換える処理である。輪郭画素は図形
部分に含まれていて背景と接している画素である。1回
の処理で図形は1画素分背景側に膨張する。画像Gは図
形膨張処理を繋ぎたいギャップ間距離の1/2回程度施
された画像であり、線分間のギャップは埋められた状態
にある。
When a binary image I containing a closed figure is input to the initial polygon generator 11, the initial polygon generator 11 first generates an image G obtained by subjecting the input image I to a figure expansion process. Here, in the graphic expansion processing, while raster scanning the image, it is determined whether or not it is a background pixel adjacent to the contour pixel based on the arrangement of pixel values in a 3 × 3 pixel area centered on the point of interest. If it is a background pixel adjacent to, the pixel value is rewritten from 0 to 1. The contour pixel is a pixel included in the graphic portion and in contact with the background. The graphic expands to the background side by one pixel by one processing. The image G is an image that has been subjected to about 1/2 of the gap distance to which the graphic expansion process is to be connected, and the gap between the line segments is in a filled state.

【0012】次に、画像G上の各図形の輪郭の内、図形
内部に存在する内側輪郭が検出される。さらに検出され
た内側輪郭を近似処理し、得られた閉じた座標値系列を
初期ポリゴンとして出力する。
Next, of the contours of each figure on the image G, the inner contour existing inside the figure is detected. Further, the detected inner contour is approximated, and the obtained closed coordinate value series is output as an initial polygon.

【0013】次に、ポリゴンフィッテング部12におい
て、前記初期ポリゴンを入力画像I上で膨張変形させて
画像上の閉図形に内接させる。初期ポリゴンの膨張変形
の方法は実施例において述べる。
Next, in the polygon fitting section 12, the initial polygon is expanded and deformed on the input image I to be inscribed in a closed figure on the image. A method of expanding and deforming the initial polygon will be described in an embodiment.

【0014】次に、図形検出部13において、膨張変形
の結果得られたポリゴンの頂点数、内角の大きさ、辺の
長さ、向かい合う辺の平行度等を測定して形状判定を行
う。該ポリゴンの形状判定結果をもって該ポリゴンが接
触していた閉図形の判定結果とする。
Next, in the figure detecting unit 13, the shape is determined by measuring the number of vertices of the polygon obtained as a result of the expansion and deformation, the size of the internal angle, the length of the side, the parallelism of the opposite sides, and the like. The shape determination result of the polygon is used as the determination result of the closed figure with which the polygon is in contact.

【0015】このように、まず閉図形内にポリゴンを発
生させた後、該ポリゴンを膨張変形させて該閉図形に内
接させることにより、途切れ箇所や破線のギャップの接
続を行うことなく該閉図形の形状を検出することが可能
になる。その結果、従来の接続処理の誤りによって正し
いポリゴンが検出されない問題を解消することができ
る。
As described above, first, after the polygon is generated in the closed figure, the polygon is expanded and deformed and inscribed in the closed figure, so that the closed point is not connected without connecting a gap or a broken line gap. It becomes possible to detect the shape of the figure. As a result, it is possible to solve the problem that a correct polygon is not detected due to an error in the conventional connection processing.

【0016】[0016]

【実施例】始めに本発明の全体構成について述べる。図
2は本発明の一実施例の構成図であり、図1と同一部分
には同一符号を付している。
First, the overall structure of the present invention will be described. FIG. 2 is a configuration diagram of an embodiment of the present invention, and the same parts as those in FIG. 1 are designated by the same reference numerals.

【0017】11は入力された二値画像上に実線、破
線、一点鎖線等で描かれた閉図形または実線で描かれた
閉図形に包含される初期ポリゴンを生成して出力する初
期ポリゴン生成部である。初期ポリゴンは、N個の節点
Q1,Q2,・・・,QNを順に結んでなるポリゴンで
ある。ここで節点数Nは予め与えられている。初期ポリ
ゴン生成部11は、図形膨張処理部11aと内側輪郭抽
出部11bとポリゴン生成部11cとから構成される。
Reference numeral 11 denotes an initial polygon generation unit for generating and outputting an initial polygon included in a closed figure drawn by a solid line, a broken line, a dash-dotted line or the like or a closed figure drawn by a solid line on the input binary image. Is. The initial polygon is a polygon formed by connecting N nodes Q1, Q2, ..., QN in order. Here, the number of nodes N is given in advance. The initial polygon generator 11 includes a graphic expansion processor 11a, an inner contour extractor 11b, and a polygon generator 11c.

【0018】図形膨張処理部11aは入力された二値画
像Iに対して予め与えられた回数の膨張処理を施す。図
形膨張処理部11aに入力された画像Iはまずラスタ走
査され、輪郭画素に隣接する画素にマークが付与され
る。ここでマークは画像Iの画素値を記憶するプレーン
とは別のプレーンに付与される。輪郭画素に隣接する画
素であるか否かの判定はラスタ走査中の着目画素を中心
とする3×3画素の領域で画素値の配置から行われる。
着目画素の画素値が0でその近傍8画素の何れかの画素
値が1であった時、着目画素は求める背景画素と判定さ
れる。画像I全面のラスタ走査が終了した後、マークさ
れた画素の値は0から1へ書き換えられる。以上の処理
により図形が1画素分背景側に膨張した画像Gが生成さ
れる。
The graphic expansion processing unit 11a performs expansion processing a predetermined number of times on the input binary image I. The image I input to the graphic expansion processing unit 11a is first raster-scanned, and marks are added to pixels adjacent to the contour pixels. Here, the mark is added to a plane different from the plane that stores the pixel value of the image I. Whether or not the pixel is adjacent to the contour pixel is determined from the arrangement of pixel values in a 3 × 3 pixel area centered on the pixel of interest during raster scanning.
When the pixel value of the pixel of interest is 0 and any of the 8 pixels in the vicinity thereof is 1, the pixel of interest is determined to be the background pixel to be obtained. After the raster scanning of the entire image I is completed, the value of the marked pixel is rewritten from 0 to 1. By the above processing, the image G in which the figure is expanded by one pixel toward the background side is generated.

【0019】内側輪郭抽出部11bは入力された二値画
像G中の黒画素連結成分の輪郭を輪郭追跡することによ
って抽出した後、内側輪郭のみを選択して出力する。輪
郭追跡はラスタ走査によって未見出の黒画素連結成分の
輪郭画素を検出した後に、該黒画素連結成分上で該輪郭
画素に隣接する輪郭画素を次々に追跡して検出する処理
である。追跡済みの画素には画像Gの別のプレーン上に
追跡済マークが与えられる。一周分の輪郭が検出された
時、再びラスタ走査が行われ未検出の輪郭画素が検出さ
れた場合には上記と同様な処理が行われる。以上の処理
の結果、全画像中の輪郭が検出される。輪郭の検出結果
は輪郭画素の座標値列として保存される。
The inner contour extracting unit 11b extracts the contour of the black pixel connected component in the input binary image G by tracing the contour, and then selects and outputs only the inner contour. The contour tracking is a process in which after detecting a contour pixel of a black pixel connected component which has not been found by raster scanning, a contour pixel adjacent to the contour pixel on the black pixel connected component is sequentially tracked and detected. Tracked pixels are given a tracked mark on another plane of image G. When the contour for one round is detected, raster scanning is performed again, and when undetected contour pixels are detected, the same processing as described above is performed. As a result of the above processing, the contours in all the images are detected. The contour detection result is stored as a coordinate value sequence of contour pixels.

【0020】ラスタ走査による輪郭画素の検出は着目画
素pとその近傍画素{p0,p2,p4,p6}の値を
調べることによって行われる。着目画素pとその近傍画
素{p0,p2,p4,p6}の相対位置関係を図3に
示す。着目画素pの値が1、pの近傍画素{p0,p
2,p4,p6}の何れかが値0を持つ時、着目画素p
は輪郭画素である。
The contour pixels are detected by raster scanning by checking the values of the pixel of interest p and its neighboring pixels {p0, p2, p4, p6}. FIG. 3 shows the relative positional relationship between the pixel of interest p and its neighboring pixels {p0, p2, p4, p6}. The pixel of interest p has a value of 1, and neighboring pixels {p0, p
2, p4, p6} has the value 0, the pixel of interest p
Is a contour pixel.

【0021】ラスタ走査と輪郭画素の追跡処理によって
検出された各輪郭はその座標値の系列を多角形と見做し
た時の偏角の総和を算出され、図形の外側の輪郭が内側
の輪郭(内側輪郭)かを判定される。偏角の総和が+2
πとなる時、外側の輪郭であり、−2πとなる時、内側
の輪郭である。以上の処理によって検出された図形の内
側輪郭の各座標値の系列はポリゴン生成部11cへ出力
される。
For each contour detected by raster scanning and contour pixel tracking processing, the sum of the deviation angles when the series of coordinate values is regarded as a polygon is calculated, and the outer contour of the figure is the inner contour ( Inner contour). The sum of declination is +2
When it becomes π, it is the outer contour, and when it becomes −2π, it is the inner contour. The series of coordinate values of the inner contour of the figure detected by the above processing is output to the polygon generator 11c.

【0022】ポリゴン生成部11cは、内側輪郭の座標
値の系列を入力とし、該内側輪郭を予め与えられた頂点
数Nの多角形で近似する処理である。入力された各輪郭
の座標値系列は間引き処理が施されて頂点数Nの多角形
に変換される。
The polygon generator 11c is a process for inputting a series of coordinate values of the inner contour and approximating the inner contour with a polygon having a predetermined number N of vertices. The input coordinate value series of each contour is subjected to thinning processing to be converted into a polygon having the number of vertices N.

【0023】以上が初期ポリゴン生成部11の構成であ
る。
The above is the configuration of the initial polygon generator 11.

【0024】12は初期ポリゴン生成部11で生成され
たポリゴンを入力画像I上で膨張変形させ、閉図形に内
接させた後、この閉図形に内接したポリゴンを図形検出
部13へ出力するポリゴンフィッテング部である。ポリ
ゴンフィッテング部12は、ポリゴン変形部12aおよ
び変形停止判定部12bから構成される。
Reference numeral 12 expands and deforms the polygon generated by the initial polygon generator 11 on the input image I to inscribe the closed figure, and then outputs the polygon inscribed to the closed figure to the figure detector 13. This is the polygon fitting section. The polygon fitting unit 12 includes a polygon deforming unit 12a and a deformation stop determining unit 12b.

【0025】ポリゴン変形部12aは入力されたポリゴ
ンに対し膨張変形を施す。ポリゴンは初期ポリゴン生成
部11または変形停止判定部12bから入力される。膨
張変形はポリゴンの節点Q1,Q2,・・・,QN中の
連続する3つの節点Qn−1,Qn,Qn+1につい
て、Qn−1,Qn,Qn+1のなすポリゴンの内角が
180度未満であった時、Qn−1およびQn+1の位
置を前記内角を広げる方向へ微小距離移動させる。ただ
し、変形停止判定部12bから再入力されたポリゴンに
対しては許可された節点についてのみ移動処理を施す。
以上の操作を全ての連続する3つの節点の組み合わせに
ついて行う。膨張変形後のポリゴンは変形停止判定部1
2bへ出力される。
The polygon deforming section 12a expands and deforms the input polygon. The polygon is input from the initial polygon generation unit 11 or the deformation stop determination unit 12b. The expansion deformation was such that, for three consecutive nodes Qn-1, Qn, Qn + 1 among the nodes Q1, Q2, ..., QN of the polygon, the interior angle of the polygon formed by Qn-1, Qn, Qn + 1 was less than 180 degrees. At this time, the positions of Qn-1 and Qn + 1 are moved by a minute distance in the direction of expanding the interior angle. However, with respect to the polygon re-input from the deformation stop determination unit 12b, only the permitted nodes are moved.
The above operation is performed for all combinations of three consecutive nodes. The polygon after expansion and deformation is the deformation stop determination unit 1
2b is output.

【0026】変形停止判定部12bは入力されたポリゴ
ンに対して、これを包含する図形との距離および内角の
総和を算出し、該ポリゴンの各節点Q1,Q2,・・
・,QNの更なる移動を認めるか否かを判定する。節点
Qnと図形との距離dnについてはdn>0ならば、節
点Qnの更なる移動を認める。変形可能な節点が存在し
なくなった場合、ポリゴンは閉図形に内接したと判定し
て膨張処理を完了する。膨張処理の完了したポリゴンを
図形検出部13へ出力する。
The deformation stop determination unit 12b calculates the sum of the distances and interior angles of the input polygon with respect to the figure containing the polygon, and the respective nodes Q1, Q2, ... Of the polygon.
.., Determine whether to allow further movement of QN. If the distance dn between the node Qn and the figure is dn> 0, further movement of the node Qn is permitted. When there is no deformable node, it is determined that the polygon is inscribed in the closed figure, and the expansion process is completed. The polygon whose expansion processing has been completed is output to the figure detection unit 13.

【0027】以上がポリゴンフィッテング部12の構成
である。
The above is the configuration of the polygon fitting section 12.

【0028】13はポリゴンフィッテング部から出力さ
れたポリゴンに対して、まずこれを近似処理した後、コ
ーナー数、コーナー角度、辺の長さや、向かい合う辺の
平行度等を測定し、ポリゴンが内接した閉図形の属性を
判定し、その結果を最終出力する図形判定部である。コ
ーナー数から多角形の種別が、向かい合う辺の平行度や
辺の長さから平行四辺形、正方形等の特別な多角形の種
別が判定される。これら属性判定に必要な条件は予め辞
書データとして登録しておく。
A polygon 13 output from the polygon fitting part is first approximated, and then the number of corners, the corner angle, the length of the side, the parallelism of the opposite sides, etc. are measured, and the polygon is inscribed. The figure determination unit determines the attribute of the closed figure and finally outputs the result. The type of polygon is determined from the number of corners, and the type of special polygon such as a parallelogram or a square is determined from the parallelism of opposite sides and the length of the sides. The conditions necessary for these attribute determinations are registered in advance as dictionary data.

【0029】以上が全体構成である。The above is the overall configuration.

【0030】次に本発明の全体動作について説明する。Next, the overall operation of the present invention will be described.

【0031】閉図形を含む二値画像Iが初期ポリゴン検
出部11に入力されると、図形膨張処理部11aによっ
て図形膨張処理が施され途切れや破線等のギャップの埋
められた画像Gが生成される。この時、図形膨張処理の
回数は繋ぎたいギャップ間距離の1/2回程度に予め設
定されているものとする。画像Gは内側輪郭検出部11
bに入力される。
When a binary image I containing a closed figure is input to the initial polygon detecting section 11, the figure expanding section 11a performs a figure expanding process to generate an image G in which gaps such as breaks and broken lines are filled. It At this time, it is assumed that the number of times of the graphic expansion processing is preset to about 1/2 of the gap distance to be connected. The image G is the inner contour detection unit 11
b.

【0032】内側輪郭検出部11bでは、画像G中の内
側輪郭を検出する処理が行われ、その検出結果が出力さ
れる。内側輪郭の検出結果はポリゴン生成部11cへ入
力されてここで近似処理され、予め決められたN個の節
点を有するポリゴンとしてポリゴンフィッテング部12
へ出力される。このポリゴンを初期ポリゴンと呼ぶ。初
期ポリゴンおよび二値画像Iはポリゴンフィッテング部
12へ入力される。
The inner contour detecting section 11b performs a process of detecting the inner contour in the image G, and outputs the detection result. The detection result of the inner contour is input to the polygon generation unit 11c, where it is approximated, and the polygon fitting unit 12 determines that the polygon has N predetermined nodes.
Output to This polygon is called an initial polygon. The initial polygon and the binary image I are input to the polygon fitting unit 12.

【0033】ポリゴンフィッテング部12内部のポリゴ
ン変形部12aは、入力された初期ポリゴンを微小量膨
張変形させる。微小量膨張変形されたポリゴンは変形停
止判定部12bにおいて二値画像Iを利用して閉図形に
内接しているか否かを判定される。内接していないと判
定された場合は、更なる移動が可能な節点の情報と共に
ポリゴン変形部へ評価したポリゴンは再入力される。こ
の時、ポリゴン変形部12aは再入力されたポリゴンに
対して更に膨張変形を行う。以上の処理の繰り返しの結
果変形停止判定部12bにおいてポリゴンが閉図形に内
接していると判定された場合は該ポリゴンは図形検出部
13へ出力される。初期ポリゴンと図形検出部13へ出
力される最終的なポリゴンの例をそれぞれ図4の(a)
と(b)に示す。
The polygon deforming section 12a inside the polygon fitting section 12 expands and deforms the input initial polygon by a small amount. The polygon which has undergone a slight amount of expansion and deformation is judged by the deformation stop judgment unit 12b using the binary image I whether or not it is inscribed in the closed figure. When it is determined that the polygon is not inscribed, the evaluated polygon is re-input to the polygon deforming unit together with the information of the node that can be further moved. At this time, the polygon deforming unit 12a further expands and deforms the re-input polygon. As a result of repeating the above processing, when the deformation stop determination unit 12b determines that the polygon is inscribed in the closed figure, the polygon is output to the figure detection unit 13. Examples of the initial polygon and the final polygon output to the figure detection unit 13 are shown in FIG.
And (b).

【0034】次に、図形検出部13において、膨張変形
の結果得られたポリゴンは近似処理される。近似された
ポリゴンに対して頂点数、内角の大きさ、辺の長さ、向
かい合う辺の平行度等が測定され、ポリゴンが内接する
閉図形の形状判定が行われる。
Next, in the figure detecting section 13, the polygon obtained as a result of the expansion and deformation is approximated. For the approximated polygon, the number of vertices, the size of the internal angle, the length of the side, the parallelism of the opposite sides, etc. are measured, and the shape of the closed figure inscribed by the polygon is determined.

【0035】[0035]

【発明の効果】以上本発明では、従来のように閉図形の
途切れ箇所や閉図形が破線等で描かれていることから生
じる破線等の線素間のギャップを細線化画像上の線図形
の開放端点対探索から補間接続するのではなく、入力画
像上の閉図形内部に生成したポリゴンを該閉図形に内接
するまで膨張変形し、得られたポリゴンの形状をもって
該閉図形の属性を判定するように構成した。その結果、
従来方式においては途切れ箇所を一意に決定出来ない為
検出できなかった閉図形についても検出とその属性認識
を正しく行うことが可能となる。よって、従来の方式を
超える高精度な閉図形認識が可能となる。
As described above, according to the present invention, a gap between line elements such as broken lines caused by a broken portion of a closed figure or a closed figure being drawn by a broken line as in the conventional art is used as a line figure on a thinned image. Rather than interpolating from the open end point pair search, the polygon generated inside the closed figure on the input image is expanded and deformed until it is inscribed in the closed figure, and the attribute of the closed figure is determined by the shape of the obtained polygon. As configured. as a result,
In the conventional method, it is possible to correctly detect and recognize the attribute of a closed figure that cannot be detected because the discontinuity cannot be uniquely determined. Therefore, it is possible to perform highly accurate closed figure recognition that exceeds the conventional method.

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

【図1】本発明の構成を示すブロック図。FIG. 1 is a block diagram showing a configuration of the present invention.

【図2】本発明の一実施例を示すブロック図。FIG. 2 is a block diagram showing one embodiment of the present invention.

【図3】輪郭画素の検出方法を説明する為の図。FIG. 3 is a diagram for explaining a method of detecting contour pixels.

【図4】(a)は閉図形と初期ポリゴンの関係を示す
図、(b)は初期ポリゴンを膨張変形させた結果を示す
図。
4A is a diagram showing a relationship between a closed figure and an initial polygon, and FIG. 4B is a diagram showing a result of expanding and deforming the initial polygon.

【図5】従来の方式では閉図形検出が困難な画像の例を
示す図。
FIG. 5 is a diagram showing an example of an image in which it is difficult to detect a closed figure by a conventional method.

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

11 初期ポリゴン生成部 11a 図形膨張処理部 11b 内側輪郭抽出部 11c ポリゴン生成部 12 ポリゴンフィッテング部 12a ポリゴン変形部 12b 変形停止判定部 13 図形検出部 Reference Signs List 11 initial polygon generation unit 11a graphic expansion processing unit 11b inner contour extraction unit 11c polygon generation unit 12 polygon fitting unit 12a polygon deformation unit 12b deformation stop determination unit 13 graphic detection unit

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】二値の二次元ディジタル画像上に閉じた線
で描かれた閉図形を認識する線図形認識方式において、
前記二次元ディジタル画像を入力として前記二次元ディ
ジタル画像上の閉図形の内部にポリゴンを生成する初期
ポリゴン生成部と、前記ポリゴンと前記二次元ディジタ
ル画像とを入力として前記閉図形に内接するまで前記ポ
リゴンを膨張変形するポリゴンフィッテング部と、膨張
変形の結果、前記閉図形に内接した前記ポリゴンを入力
として前記ポリゴンの図形特徴を測定することにより前
記閉図形の種別等の属性を判定する図形検出部とを備え
ることを特徴とする線図形認識方式。
1. A line figure recognition system for recognizing a closed figure drawn by a closed line on a binary two-dimensional digital image,
An initial polygon generation unit that generates a polygon inside a closed figure on the two-dimensional digital image by using the two-dimensional digital image as an input, and the polygon and the two-dimensional digital image as inputs until the inscribed shape is applied to the closed figure. A polygon fitting part that expands and deforms a polygon, and a graphic detection that determines attributes such as the type of the closed graphic by measuring the graphic features of the polygon by inputting the polygon inscribed in the closed graphic as a result of the expansion and deformation. And a line figure recognition method.
【請求項2】前記初期ポリゴン生成部は、ギャップの埋
められた画像を生成する図形膨張処理手段と、 前記画像中の内側輪郭を検出する内側輪郭検出手段と、 前記内側輪郭を近似処理し、予め決められたN個の節点
を有するポリゴンを生成するポリゴン生成手段とから構
成されることを特徴とする請求項1記載の線図形認識方
式。
2. The initial polygon generation unit, a graphic expansion processing means for generating an image in which a gap is filled, an inner contour detection means for detecting an inner contour in the image, an approximation processing for the inner contour, 2. The line figure recognition system according to claim 1, further comprising a polygon generation means for generating a polygon having a predetermined number of N nodes.
【請求項3】前記ポリゴンフィッテング部は、入力され
た初期ポリゴンを微小量膨張変形するポリゴン変形手段
と、 前記微小量膨張変形されたポリゴンが閉図形に内接する
か否かを判定する変形停止判定手段とから構成されるこ
とを特徴とする請求項1又は2記載の線図形認識方式。
3. The polygon fitting section, a polygon deforming means for slightly expanding and deforming an input initial polygon, and a deformation stop determination for judging whether or not the minutely expanded and deformed polygon is inscribed in a closed figure. 3. The line figure recognition system according to claim 1, further comprising:
【請求項4】前記図形検出部は、膨張変形の結果得られ
たポリゴンを近似し、近似されたポリゴンに対して頂点
数、内角の大きさ、辺の長さ、向かい合う辺の平行度等
を測定し、ポリゴンが内接する閉図形の形状判定を行う
ことを特徴とする請求項1、2又は3記載の線図形認識
方式。
4. The figure detecting unit approximates a polygon obtained as a result of expansion and deformation, and calculates the number of vertices, the size of the internal angle, the length of the side, the parallelism of the facing sides, etc. with respect to the approximated polygon. The line figure recognition method according to claim 1, 2 or 3, wherein the shape of the closed figure in which the polygon is inscribed is measured.
JP17697795A 1995-07-13 1995-07-13 Line figure recognition method Expired - Fee Related JP2882314B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP17697795A JP2882314B2 (en) 1995-07-13 1995-07-13 Line figure recognition method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP17697795A JP2882314B2 (en) 1995-07-13 1995-07-13 Line figure recognition method

Publications (2)

Publication Number Publication Date
JPH0927035A true JPH0927035A (en) 1997-01-28
JP2882314B2 JP2882314B2 (en) 1999-04-12

Family

ID=16023024

Family Applications (1)

Application Number Title Priority Date Filing Date
JP17697795A Expired - Fee Related JP2882314B2 (en) 1995-07-13 1995-07-13 Line figure recognition method

Country Status (1)

Country Link
JP (1) JP2882314B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013196225A (en) * 2012-03-16 2013-09-30 Fujitsu Ltd Program, information processing method and information processor
JP2014021613A (en) * 2012-07-13 2014-02-03 Casio Comput Co Ltd Image processor, image tone conversion method and program

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH096961A (en) * 1995-06-16 1997-01-10 Sony Corp Processing device and method for dividing area

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH096961A (en) * 1995-06-16 1997-01-10 Sony Corp Processing device and method for dividing area

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013196225A (en) * 2012-03-16 2013-09-30 Fujitsu Ltd Program, information processing method and information processor
JP2014021613A (en) * 2012-07-13 2014-02-03 Casio Comput Co Ltd Image processor, image tone conversion method and program

Also Published As

Publication number Publication date
JP2882314B2 (en) 1999-04-12

Similar Documents

Publication Publication Date Title
US7450765B2 (en) Increasing accuracy of discrete curve transform estimates for curve matching in higher dimensions
JP5109294B2 (en) 3D position correction device
US9959475B2 (en) Table data recovering in case of image distortion
Lee et al. Machine vision system for curved surface inspection
JP2882314B2 (en) Line figure recognition method
JPH1196372A (en) Method and device for processing image and recording medium of control program for image processing
JP2005331285A (en) Image processing method and image processing device
JP2002183739A (en) Ellipse detection method and ellipse detection device
JPH05280941A (en) Inputting apparatus of three-dimensional shape
JP2002536709A (en) Method and apparatus for calculating a similarity between a first structure and at least one preset second structure
JP2500758B2 (en) Printed circuit board pattern inspection device
Gadelmawla et al. On-line measurement of product dimensions using computer vision
Quach et al. Low-level track finding and completion using random fields
JPH0534117A (en) Image processing method
Chuang et al. X? Test for Feature Detection
Śluzek A local algorithm for real-time junction detection in contour images
JP2998518B2 (en) Pattern inspection equipment
JP3048718B2 (en) Vertex detector
JP2762082B2 (en) Object shape expression device
JP2959017B2 (en) Circular image discrimination method
JPS603676B2 (en) Intersection extraction method
JP4333457B2 (en) Image processing apparatus and image processing method
JP2943733B2 (en) Position detection device
KR20010104458A (en) regenerative method of three-dimensional shape
JPH0973554A (en) Method for restoring three-dimensional scene and its device

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19990105

LAPS Cancellation because of no payment of annual fees