JPH0449148B2 - - Google Patents

Info

Publication number
JPH0449148B2
JPH0449148B2 JP60017885A JP1788585A JPH0449148B2 JP H0449148 B2 JPH0449148 B2 JP H0449148B2 JP 60017885 A JP60017885 A JP 60017885A JP 1788585 A JP1788585 A JP 1788585A JP H0449148 B2 JPH0449148 B2 JP H0449148B2
Authority
JP
Japan
Prior art keywords
elements
broken line
line
broken
lines
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
JP60017885A
Other languages
Japanese (ja)
Other versions
JPS61175880A (en
Inventor
Shinichi Matsui
Takayuki Kageyama
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP1788585A priority Critical patent/JPS61175880A/en
Publication of JPS61175880A publication Critical patent/JPS61175880A/en
Publication of JPH0449148B2 publication Critical patent/JPH0449148B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Image Analysis (AREA)

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、図形、図面の認識や理解などを行な
う際、画像中に存在する破線を他の画像要素と分
離して抽出する破線抽出装置に関するものであ
る。
DETAILED DESCRIPTION OF THE INVENTION Field of Industrial Application The present invention relates to a broken line extraction device that separates and extracts broken lines existing in an image from other image elements when recognizing or understanding figures or drawings. It is.

従来の技術 近年、ワードプロセツサ等の普及により文書作
成等の業務が自動化される傾向にあり、表の作成
等のために実線、破線等の線を自動的に認識する
必要が生じている。以下図面を参照しながら、上
述した破線の抽出装置に関して従来の一例を説明
する。第8図は従来例の構成、第9図の従来例の
破線の構成要素である破線素の連結性判定方法を
示すものである。第8図において、1は画像を2
値化して入力する画像読取部、2は単連結な黒画
素領域を1画素幅の骨状の線で表わすようにする
細線化部、3は細線化された一つの領域内で角度
が急激に変化する屈曲点を抽出する屈曲点抽出
部、4は細線化された各要素の方向性を判定する
方向判定部、5は連結すべき要素を判定する連結
性判定部である。また第9図において、a,bは
それぞれ細線化された要素を、a1、a2、b
1、2はa及びbの両端点を、θはaとbのなす
角度を表わす。第8図のように構成された破線抽
出装置について、以下その動作を説明する。
2. Description of the Related Art In recent years, with the spread of word processors and the like, tasks such as document creation are becoming automated, and there is a need to automatically recognize lines such as solid lines and broken lines for creating tables and the like. A conventional example of the above-mentioned broken line extraction device will be described below with reference to the drawings. FIG. 8 shows a configuration of a conventional example and a method for determining connectivity of dashed line elements, which are components indicated by broken lines in the conventional example of FIG. In Figure 8, 1 is the image 2
2 is a line thinning unit that represents a simply connected black pixel area with a bone-like line with a width of 1 pixel; 3 is a line thinning unit that converts the black pixel area into a value and inputs the data; A bending point extracting section extracts a changing bending point, a direction determining section 4 determines the directionality of each thinned element, and a connectivity determining section 5 determines elements to be connected. In addition, in FIG. 9, a, b represent thinned elements, a1, a2, b
1 and 2 represent the end points of a and b, and θ represents the angle formed by a and b. The operation of the broken line extraction device configured as shown in FIG. 8 will be described below.

まず、1の画像読取部において対象画像を2値
化して画像用メモリに入力する。次に2の細線化
部において、入力画像のすべての単連結黒画素領
域を細線化する。このとき、一定のしきい値以下
の長さを持つ細線化された要素について、以下3
の屈曲点抽出部で角度の急変する個所を検出し、
両端点と分岐点、さらに上記屈曲点が新たな端点
となるように、必様ならば要素を複数に分割す
る。4の方向判定部では要素の両端点座標から要
素の方向を決定する。最後に5の連結性判定部に
おいて、各要素の連結性の安定を行なう。上記の
連結性の判定は、第9図に示すa、b2要素の場
合、a一端点であるa2から一定のしきい値以内
の距離にbの一端点b1が存在し、かつabのな
す角度θ(すなわちaの方向とbの方向の差の絶
対値)がある一定のしきい値以内の場合に連結で
きる、とする。このようにして各要素を連結して
いき、連結できた部分を破線として抽出する。
First, an image reading section 1 binarizes a target image and inputs it into an image memory. Next, in the thinning section 2, all singly connected black pixel areas of the input image are thinned. At this time, for thinned elements whose length is less than a certain threshold, the following 3
The bending point extraction section detects points where the angle suddenly changes,
If necessary, the element is divided into multiple parts so that both end points, the branch point, and the bending point become new end points. The direction determining section 4 determines the direction of the element from the coordinates of both end points of the element. Finally, the connectivity determining section 5 stabilizes the connectivity of each element. In the case of elements a and b2 shown in FIG. 9, the above connectivity determination is based on the fact that one end point b1 of b exists within a certain threshold distance from a2, which is one end point of a, and the angle formed by ab is It is assumed that connection is possible when θ (that is, the absolute value of the difference between the direction of a and the direction of b) is within a certain threshold. In this way, each element is connected, and the connected portion is extracted as a broken line.

発明が解決しようとする問題点 しかしながら上記のような構成では、細線化あ
るいは要素の方向性判定等、複雑な処理のために
処理時間が多くかかり、また文字等の図形要素が
画像上に混在する場合には無駄な処理をするばか
りか誤つて上記図形要素を破線の一部としてしま
つたり、さらには破線要素の連結性の判定に一定
の距離しきい値を用いているため、破線要素の長
さとその間隔の変化があつた場合、破線要素をう
まくつなぐことができず、意図したようには破線
の抽出ができないといつた問題があつた。
Problems to be Solved by the Invention However, with the above configuration, a lot of processing time is required due to complicated processing such as thinning or determining the direction of elements, and graphical elements such as characters are mixed on the image. In some cases, not only is unnecessary processing performed, but the graphical elements are mistakenly included as part of the dashed line, and furthermore, a fixed distance threshold is used to determine the connectivity of the dashed line elements. There was a problem that when the length and the interval between them changed, the broken line elements could not be connected properly, and the broken line could not be extracted as intended.

本発明は上記問題点に鑑み、高速で、直線や曲
線等の他の線要素に加えて文字等の図形要素が混
在していてもよく、破線要素の長さ及び間隔の変
化に柔軟に対応できる破線抽出装置を提供するも
のである。
In view of the above problems, the present invention is high-speed, allows graphic elements such as characters to be mixed in addition to other line elements such as straight lines and curved lines, and flexibly responds to changes in the length and spacing of broken line elements. The present invention provides a broken line extraction device that can perform the following steps.

問題点を解決するための手段 上記問題点を解決するために、本発明の破線抽
出装置は、2値化された図面画像から黒画素の連
結成分の凹凸性を用いて、破線の構成要素である
破線素を、図形要素や文字から分離して1要素ず
つ抽出する線要素抽出部と、この破線素をクラス
タ化して同一クラスタ内の隣接した2破線素の連
結性を2破線素間で破線素がない部分の長さ、い
わゆる間隔長と、その間隔長に前述の2破線素の
長さを加えた全長との比によつて判定し、破線を
認識する破線認識部とを具備したものである。
Means for Solving the Problems In order to solve the above problems, the broken line extraction device of the present invention uses the unevenness of the connected components of black pixels from the binarized drawing image to extract the constituent elements of the broken lines. A line element extraction unit that separates a certain dashed line element from graphic elements and characters and extracts it one by one; and a line element extraction unit that separates a certain dashed line element from graphic elements and characters and extracts it one by one; It is equipped with a broken line recognition unit that recognizes a broken line by determining it based on the ratio of the length of the part without elements, so-called interval length, and the total length obtained by adding the above-mentioned length of the two broken line elements to that interval length. It is.

作 用 本発明は上記した構成によつて、直線や曲線等
の他の線要素に加えて文字等の混在した入力画像
から、線要素抽出部により破線の構成要素である
破線素のみを抽出し、上記破線素の連結性を破線
認識部により適切に判定することにより、高速か
つ柔軟な破線抽出を行なえることとなる。
Effects With the above-described configuration, the present invention allows the line element extraction unit to extract only broken line elements, which are constituent elements of broken lines, from an input image containing characters, etc. in addition to other line elements such as straight lines and curved lines. , by appropriately determining the connectivity of the broken line elements with the broken line recognition unit, it is possible to perform fast and flexible broken line extraction.

実施例 以下本発明の破線抽出装置の一実施例につい
て、図面を参照しながら説明する。
Embodiment An embodiment of the broken line extraction device of the present invention will be described below with reference to the drawings.

第1図は本発明の実施例における破線抽出装置
の構成を示すものである。第1図において、11
は制御部で破線抽出装置全体の実行手順とデータ
の流れを制御する。12は読取部で紙などの二次
元平面上に描かれた図形要素を白黒の2値画像と
して入力する。13は被処理画像記憶部で上記入
力画像を2値データとして保持する。14は線要
素抽出部で黒画素領域の連結成分を水平線、垂直
線、斜線、文字及び破線の構成要素である破線素
に分類する。15は破線素記憶部であつて、破線
素のデータを保持する。16は直線記憶部で水平
線、垂直線、斜線のデータを保持する。17は破
線認識部で15のデータの連結性を判定して破線
の認識を行ない、16のデータとあわせて破線デ
ータを決定する。18は破線記憶部で破線データ
を保持する。19は表示部で18のデータをもと
に破線を表示を行なう。
FIG. 1 shows the configuration of a broken line extraction device in an embodiment of the present invention. In Figure 1, 11
The control unit controls the execution procedure and data flow of the entire dashed line extraction device. Reference numeral 12 denotes a reading unit which inputs graphic elements drawn on a two-dimensional plane such as paper as a black and white binary image. Reference numeral 13 denotes a processed image storage unit that stores the input image as binary data. 14 is a line element extraction unit which classifies the connected components of the black pixel area into horizontal line, vertical line, diagonal line, character, and broken line elements which are constituent elements of broken line. Reference numeral 15 denotes a broken line element storage unit that holds data of broken line elements. Reference numeral 16 denotes a linear storage unit that holds data for horizontal lines, vertical lines, and diagonal lines. 17 is a broken line recognition unit that determines the connectivity of the data in 15, recognizes the broken line, and determines the broken line data together with the data in 16. 18 is a broken line storage unit that holds broken line data. A display unit 19 displays a broken line based on the data 18.

以上のように構成された破線抽出装置につい
て、以下第1図、第2図、第3図、第4図、第5
図、第6図及び第7図を用いてその動作を説明す
る。
Regarding the broken line extracting device configured as above, the following shows FIG. 1, FIG. 2, FIG.
The operation will be explained using FIG. 6 and FIG. 7.

第1図12の読取部で入力された2値画像は13
の被処理画像記憶部に保持される。この画像は1
4の線要素抽出部においてまず水平方向及び垂直
方向に一度ずつ走査され、一定のしきい値以上の
長さをもつ水平及び垂直方向の黒画素の連続部分
がそれぞれ水平線、垂直線として検出される。こ
の後、さらにもう一度水平走査を行ない、水平
線、垂直線以外の黒画素の連結領域を斜線、文
字、破線素に分類する。ここで斜線については単
調な右上がりもしくは右下がりである形状と、文
字等に比して多きな領域を占めることから容易に
判別できるので、文字と破線素の識別が問題とな
る。そこで水平線、垂直線、斜線以外の連結黒領
域一つずつについて、文字であるか破線素である
かの判定を行ない、破線素に分類されたものを15
の破線素記憶部のデータとして保持する。第2図
は文字と破線素の分類を示したもので、第2図a
に示すように連結黒画素領域中にループを持つも
のや、上下左右の4側面のうち一つ以上の側面に
深い(しきい値以上の)凹部を持つものは文字
に、そうでない第2図bに示すような形状のもの
は破線素に分類する。このようにして、入力され
た2値画像がその凹凸性を利用して、破線素を図
形要素や文字から分離される。本実施例では破線
を水平及び垂直方向のものに限定しているため、
破線素の外接矩形枠の形状により、破線素を水平
方向の破線(以下水平破線と呼ぶ)の構成要素で
ある水平破線素と、垂直方向の破線(以下垂直破
線と呼ぶ)の構成要素である垂直破線素と、水平
破線と垂直破線の交点に生じる接続破線素とに分
類している。斜め方向の破線を考慮するならば単
調な右上がり右下がりを安定しその方向の破線素
に分類してもよい。また、水平線、垂直線、斜線
のデータは第1図16の直線記憶部に保持される。
The binary image input in the reading section of Fig. 12 is 13
The processed image is stored in the processed image storage unit. This image is 1
In the line element extraction section 4, the pixels are first scanned once in the horizontal direction and once in the vertical direction, and consecutive parts of black pixels in the horizontal and vertical directions having lengths longer than a certain threshold are detected as horizontal lines and vertical lines, respectively. . Thereafter, another horizontal scan is performed, and connected areas of black pixels other than horizontal lines and vertical lines are classified into diagonal lines, characters, and broken line elements. Here, diagonal lines can be easily distinguished because they have a monotonous upward-toward or downward-rightward shape and because they occupy a larger area than letters, etc., so it becomes a problem to distinguish between letters and broken line elements. Therefore, for each connected black area other than horizontal lines, vertical lines, and diagonal lines, we determine whether it is a character or a broken line element, and 15
It is retained as data in the dashed line element memory section. Figure 2 shows the classification of characters and dashed line elements.
As shown in Figure 2, if there is a loop in the connected black pixel area, or if there is a deep recess (more than the threshold) on one or more of the four sides (top, bottom, left, right), it will be marked as a character, and if it is not, it will be marked as a character. The shape shown in b is classified as a broken line element. In this way, the unevenness of the input binary image is utilized to separate broken line elements from graphic elements and characters. In this example, since the broken lines are limited to those in the horizontal and vertical directions,
Depending on the shape of the circumscribed rectangular frame of the dashed line element, the dashed line element is a horizontal dashed line element that is a component of a horizontal dashed line (hereinafter referred to as a horizontal dashed line), and a component of a vertical dashed line (hereinafter referred to as a vertical dashed line). It is classified into vertical broken line elements and connecting broken line elements that occur at the intersection of horizontal broken lines and vertical broken lines. If a dashed line in an oblique direction is considered, a monotonous upward-toward-right downward downward direction may be stabilized and classified as a dashed line element in that direction. Further, data of horizontal lines, vertical lines, and diagonal lines are held in the linear storage section shown in FIG. 16.

線要素抽出部14で抽出された水平線、垂直
線、斜線及び各破線素のデータは、以後2次元平
面上の画素データをアクセスする必要がないよう
に、リスト化されたコード情報となつている。第
3図aに、水平破線素データの内容を例として示
す。
The data of horizontal lines, vertical lines, diagonal lines, and each broken line element extracted by the line element extraction unit 14 are listed as code information so that there is no need to access pixel data on a two-dimensional plane thereafter. . FIG. 3a shows an example of the contents of the horizontal broken line element data.

上記破線素のデータから、各破線素間の連結性
を判定して破線の認識を行なうのが第1図17の
破線認識部である。水平破線と垂直破線の認識は
同様の方法で行なうので、水平破線を例にとつて
説明する。前水平破線素を垂直方向の座標値(以
下y座標とする)の昇順にソートして、隣接2破
線素間のy座標値の差がしきい値以下のものが一
つのクラスタを構成するようにクラスタ化する。
The broken line recognition unit shown in FIG. 17 recognizes broken lines by determining the connectivity between each broken line element from the data of the broken line elements. Since horizontal broken lines and vertical broken lines are recognized using the same method, the horizontal broken lines will be explained as an example. The previous horizontal dashed line elements are sorted in ascending order of their vertical coordinate values (hereinafter referred to as y coordinates), so that two adjacent dashed line elements whose y coordinate value difference is less than a threshold constitute one cluster. cluster into.

このように本発明でいうクラスタ化とは、同一
方向の破線を構成する破線素の集合を、前記破線
方向に直交する方向でみた座標値の差が少ない破
線素同士の部分集合群に分割することをいう。こ
こで座標値の差が少ないかどうかの判定には、前
記水平破線の例のように一定のしきい値を用いて
もよいし、破線素の散らばり具合などをみた局所
的な複数のしきい値を用いたり、あるいは破線素
の大きさからの比率で決定したしきい値を用いて
もよい。
In this way, clustering in the present invention means dividing a set of dashed line elements constituting a dashed line in the same direction into a subset group of dashed line elements that have small differences in coordinate values when viewed in a direction perpendicular to the direction of the dashed line. Say something. Here, to determine whether the difference in coordinate values is small, a fixed threshold may be used as in the example of the horizontal broken line, or multiple local thresholds may be used based on the scattering of the broken line elements. A value may be used, or a threshold determined by a ratio from the size of the dashed line element may be used.

第4図は上記クラスタ化の様子を示す。この場
合、全水平破線素は、a、b、cの3つのクラス
タに分類できる。次に同一クラスタ内の水平破線
素を水平方向の座標値(以下x座標とする)の昇
順にソートし、隣接1破線素間の連結性を判定し
て、連結可能な部分を一つの破線として認識す
る。第4図の場合には、a1、a2、b、cの4
つの破線が認識できるが、前述のように、クラス
タ化が、隣接2破線素間のy座標の差がしきい値
以下のものが一つのクラスタを構成するように処
理するため、a1とa2は一つのクラスタとな
る。
FIG. 4 shows the above clustering. In this case, all horizontal dashed line elements can be classified into three clusters: a, b, and c. Next, the horizontal dashed line elements in the same cluster are sorted in ascending order of the horizontal coordinate value (hereinafter referred to as x coordinate), the connectivity between adjacent dashed line elements is determined, and the connectable parts are treated as one broken line. recognize. In the case of Figure 4, 4 of a1, a2, b, c
Two dashed lines can be recognized, but as mentioned above, a1 and a2 are It becomes one cluster.

上記水平方向の連結性の判断を詳細に説明する
と、隣接2水平破線素のy座標の差がしきい値以
下であり、かつ第5図に示すような水平方向の隣
接2水平破線素の間隔と、間隔を含む全長との比
である白割合wがしきい値以下の場合に連結可能
であるとする。第5図においてm、nはどちらも
水平破線素であり、lgはmとnの水平破線素がな
い白い間隔部分の水平方向の長さいわゆる間隔
長、laはmとnそれぞれの水平方向の長さの和に
間隔長lgを加えた全長である。この間隔長lgと全
長laとの比である白割合はwで連結性が判断され
る。説明を2水平破線素で行つたが、連続するも
のは順次隣接する破線素同士に適用することで処
理が行われる。この破線データもリスト化コード
情報として保持される。第3図bに例として水平
破線データの内容を示す。
To explain in detail the determination of the connectivity in the horizontal direction, the difference in the y-coordinates of two adjacent horizontal dashed line elements is equal to or less than the threshold value, and the interval between two adjacent horizontal dashed line elements in the horizontal direction is as shown in FIG. It is assumed that connection is possible when the white ratio w, which is the ratio of the total length including the interval, is less than or equal to the threshold value. In Figure 5, m and n are both horizontal dashed line elements, lg is the horizontal length of the white interval part of m and n where there is no horizontal dashed line element, so-called interval length, and la is the horizontal length of m and n, respectively. The total length is the sum of the lengths plus the interval length lg. The white ratio, which is the ratio of the interval length lg to the total length la, is used to determine connectivity by w. Although the explanation has been given using two horizontal dashed line elements, continuous processing is performed by sequentially applying the process to adjacent dashed line elements. This broken line data is also held as listed code information. FIG. 3b shows the contents of the horizontal broken line data as an example.

上記と同様にして垂直破線も認識したあと、接
続破線素を用いて破線の統合を行なう。第6図に
その様子を示す。接続破線素は水平破線と垂直破
線の交点に生じるものなので、接続破線素の上下
左右に白割合で連結できる範囲内の水平破線及び
垂直破線がどちらも最低1本ずつある場合にのみ
統合を行なう。
After vertical broken lines are also recognized in the same manner as above, the broken lines are integrated using connected broken line elements. Figure 6 shows the situation. Since a connected dashed line element occurs at the intersection of a horizontal broken line and a vertical broken line, integration is performed only when there is at least one horizontal broken line and one vertical broken line on both the top, bottom, left, and right sides of the connected dashed line element within the range that can be connected with the white ratio. .

統合がすんだ後にも構成破線素数が非常に少な
い破線は、実は単純な形状の文字が破線素として
抽出されたものであると判断し、破線ではないも
のとして除去する。
Even after the integration is complete, it is determined that a dashed line that has very few component dashed line primes is actually a character with a simple shape extracted as a dashed line element, and is removed as not being a broken line.

最後に破線の端点、すなわち始終点を決定す
る。原則として破線の端点はその破線を構成する
破線素の両端のものの端点で、近傍に連結破線素
をもたない2端点とするが、第7図に示すような
場合、j、kの2本の破線とも、作図者の意図と
しては垂直線pから始まるものとするが妥当であ
るから、破線kの端点をp上に移動することも可
能である。端点付近に直交する実線あるいは破線
がない場合は、端点の移動は行なう必要はない。
Finally, determine the end points of the broken line, that is, the start and end points. In principle, the end points of a broken line are the end points of both ends of the broken line elements that make up the broken line, and there are no connected broken line elements nearby, but in the case shown in Figure 7, two end points, j and k, Both dashed lines are assumed to start from the vertical line p as the designer's intention, but since it is reasonable, it is also possible to move the end point of the dashed line k onto p. If there is no solid line or broken line perpendicular to the vicinity of the end point, there is no need to move the end point.

上記のようにして認識した破線のデータは第3
図の18端線記憶部に保持される。必要があれば1
9の表示部で表示することができる。
The broken line data recognized as above is the third
It is held in the 18 end line storage unit shown in the figure. 1 if necessary
It can be displayed on 9 display units.

なお簡単のために本実施例では、黒画素の連結
成分が水平線、垂直線、斜線の線要素、文字、及
び破線素のみであるような図面を対象としている
が、円などの曲線図形を含む図面への拡張も容易
である。すなわち、線要素抽出部において、走査
の過程で水平線、垂直線と決定できないような形
状であり、かつ文字や破線素に比して大きな領域
を占める成分を、細線化等の手段により詳細に調
べる部分を追加することによつて、斜線以外の曲
線図形要素などをも判別できる。また、小領域の
曲線図形に関しては凹凸性の判定によつて破線素
と区別できるので、破線確認の妨げとはならな
い。この種の図形要素を抽出する場合には、前記
の凹凸性による判別の際に一度文字として分類
し、その後の辞書とのマツチングなどの手法で分
類する部分を設けることによつてこれを行うこと
が可能である。破線を認識することだけを目的と
する場合には、これらの要素はすべて除去したも
かまわない。
For simplicity, this embodiment deals with drawings in which the connected components of black pixels are only horizontal lines, vertical lines, diagonal line elements, characters, and broken line elements, but curved figures such as circles are also included. It is also easy to extend to drawings. That is, in the line element extraction unit, components that have shapes that cannot be determined as horizontal lines or vertical lines during the scanning process and that occupy a larger area than characters or broken line elements are examined in detail by means such as line thinning. By adding parts, curved graphic elements other than diagonal lines can also be determined. Further, since the curved figure in a small area can be distinguished from a broken line element by determining the irregularity, it does not interfere with checking the broken line. When extracting this type of graphical element, it is possible to do this by first classifying it as a character during the above-mentioned discrimination based on unevenness, and then providing a section to be classified using a method such as matching with a dictionary. is possible. If the only purpose is to recognize broken lines, all of these elements may be removed.

発明の効果 以上のように本発明は2値化された図面画像か
ら黒画素の連続成分の凹凸性を用いて破線素を抽
出する線要素抽出部と、破線素をクラスタ化して
破線素の連結性を分析して破線を認識する破線認
識部とを設けることにより、直線や曲線などの他
の線要素だけでなく、文字等の図形要素の混在す
る画像から高速かつ柔軟に破線を抽出することで
きる。
Effects of the Invention As described above, the present invention includes a line element extraction unit that extracts broken line elements from a binarized drawing image using the unevenness of continuous components of black pixels, and a line element extraction unit that extracts broken line elements from a binarized drawing image using the unevenness of continuous components of black pixels, and a line element extraction unit that clusters the broken line elements and connects the broken line elements. By providing a broken line recognition unit that analyzes the character and recognizes broken lines, it is possible to quickly and flexibly extract broken lines from images that contain not only other line elements such as straight lines and curves, but also graphic elements such as characters. can.

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

第1図から第7図は本発明に関するものであ
り、第1図は本発明の一実施例の構成図、第2図
は文字と破線素の判別を示す図、第3図は水平破
線素及び水平破線のデータ内容の図、第4図は水
平破線素のクラスタ化を示す図、第5図は破線素
の連結性判定のための白割合の図、第6図は接続
破線素を用いた破線の統合を示す図、第7図は破
線の端点決定の様子を示す図、第8図は従来例の
破線抽出装置の構成図、第9図は同装置の動作説
明図である。 11……制御部、12……読取部、13……被
処理画像記憶部、14……線要素抽出部、15…
…破線素記憶部、16……直線記憶部、17……
破線認識部、18……破線記憶部、19……表示
部。
FIGS. 1 to 7 relate to the present invention. FIG. 1 is a block diagram of an embodiment of the present invention, FIG. 2 is a diagram showing discrimination between characters and broken line elements, and FIG. 3 is a diagram showing horizontal broken line elements. Figure 4 is a diagram showing the clustering of horizontal dashed line elements, Figure 5 is a diagram of the white ratio for determining the connectivity of dashed line elements, and Figure 6 is a diagram showing the use of connected dashed line elements. 7 is a diagram showing how end points of broken lines are determined, FIG. 8 is a block diagram of a conventional broken line extracting device, and FIG. 9 is an explanatory diagram of the operation of the same device. 11...Control unit, 12...Reading unit, 13...Processed image storage unit, 14...Line element extraction unit, 15...
...Dotted line element memory section, 16... Linear memory section, 17...
Broken line recognition section, 18... broken line storage section, 19... display section.

Claims (1)

【特許請求の範囲】[Claims] 1 2値化された図面画像から、黒画素の連結成
分の凹凸性を用いて、破線の構成要素である破線
素を、図形要素や文字から分離して1要素ずつ抽
出する線要素抽出部と、前記破線素をクラスタ化
して、同一クラスタ内の隣接した2破線素の連結
性を前記2破線素間の破線素を有しない間隔長
と、前記間隔長と前記2破線素の長さの和からな
る全長との比によつて判定し、破線を認識する破
線認識部とを備えたことを特徴とする破線抽出装
置。
1. A line element extraction unit that separates broken line elements, which are constituent elements of broken lines, from graphical elements and characters and extracts them one by one from a binarized drawing image using the unevenness of connected components of black pixels. , the dashed line elements are clustered, and the connectivity of two adjacent dashed line elements in the same cluster is determined by the interval length without a dashed line element between the two dashed line elements, and the sum of the length of the interval length and the length of the two dashed line elements. What is claimed is: 1. A broken line extraction device comprising: a broken line recognition unit that recognizes a broken line by making a determination based on a ratio of the total length of the broken line to the total length of the broken line.
JP1788585A 1985-01-31 1985-01-31 Broken line extracting device Granted JPS61175880A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1788585A JPS61175880A (en) 1985-01-31 1985-01-31 Broken line extracting device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1788585A JPS61175880A (en) 1985-01-31 1985-01-31 Broken line extracting device

Publications (2)

Publication Number Publication Date
JPS61175880A JPS61175880A (en) 1986-08-07
JPH0449148B2 true JPH0449148B2 (en) 1992-08-10

Family

ID=11956157

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1788585A Granted JPS61175880A (en) 1985-01-31 1985-01-31 Broken line extracting device

Country Status (1)

Country Link
JP (1) JPS61175880A (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR2603414B1 (en) * 1986-08-29 1988-10-28 Bull Sa READING AMPLIFIER
JPH0792833B2 (en) * 1987-10-28 1995-10-09 三菱電機株式会社 Line figure input method and device
JPH01173178A (en) * 1987-12-26 1989-07-07 Fujitsu Ltd Extracting system for broken/dotted line string area
EP2416282A4 (en) 2009-03-31 2016-09-28 Fujitsu Frontech Ltd Character recognition device and character recognition method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5636769A (en) * 1979-09-03 1981-04-10 Hitachi Ltd Line recognizing method of pattern recognition unit
JPS5638683A (en) * 1979-09-05 1981-04-13 Hitachi Ltd Discriminating method of type of line in pattern recognizer

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5636769A (en) * 1979-09-03 1981-04-10 Hitachi Ltd Line recognizing method of pattern recognition unit
JPS5638683A (en) * 1979-09-05 1981-04-13 Hitachi Ltd Discriminating method of type of line in pattern recognizer

Also Published As

Publication number Publication date
JPS61175880A (en) 1986-08-07

Similar Documents

Publication Publication Date Title
USRE47889E1 (en) System and method for segmenting text lines in documents
US6006240A (en) Cell identification in table analysis
CN108197642B (en) Seal identification method and device
Hase et al. Character string extraction from color documents
Clark et al. Estimating the Orientation and Recovery of Text Planes in a Single Image.
Xiao et al. Knowledge-based English cursive script segmentation
JPH02306386A (en) Character recognizing device
JPH0449148B2 (en)
JP3476595B2 (en) Image area division method and image binarization method
JP2890306B2 (en) Table space separation apparatus and table space separation method
JPH06187489A (en) Character recognizing device
JPH02116987A (en) Character recognizing device
JP7283756B2 (en) Information processing device and program
JPH0573718A (en) Area attribute identifying system
JP7370574B2 (en) Frame extraction method and program
JPS6227887A (en) Character type separating system
Kataria et al. Review on text detection and recognition in images
JPH02252078A (en) Method for identifying area of document
Zhang et al. Using Orientation Voting to Extract Text Lines with Various Mixed Directions from a Document Image
JPS61131183A (en) Picture processing system
JP2987877B2 (en) Character recognition method
JPH0628520A (en) Character recognition device
JPS62194590A (en) Character recognizing system
JPH0215388A (en) Character recognizing device
JPH0262682A (en) Method for recognizing character