JPH04260980A - Device for recognizing graphic - Google Patents

Device for recognizing graphic

Info

Publication number
JPH04260980A
JPH04260980A JP2406769A JP40676990A JPH04260980A JP H04260980 A JPH04260980 A JP H04260980A JP 2406769 A JP2406769 A JP 2406769A JP 40676990 A JP40676990 A JP 40676990A JP H04260980 A JPH04260980 A JP H04260980A
Authority
JP
Japan
Prior art keywords
basic
graphic
line
feature
figures
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2406769A
Other languages
Japanese (ja)
Other versions
JPH07118016B2 (en
Inventor
Takashi Nimata
二俣 隆
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP2406769A priority Critical patent/JPH07118016B2/en
Publication of JPH04260980A publication Critical patent/JPH04260980A/en
Publication of JPH07118016B2 publication Critical patent/JPH07118016B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Image Analysis (AREA)

Abstract

PURPOSE:To correctly detect an objective graphic even at the time of inputting a drawing on which other elements such as characters are written on a graphic element with contact. CONSTITUTION:This graphic recognizing device is provided with a basic graphic detecting means 51 for detecting a basic graphic to be used for objective graphics in common, a linear graphic segmenting means 52 for segmenting a linear graphic from which the basic graphic is removed, a graphic feature variable defining means 8 for defining the graphic feature variable of a graphic element to be added to the basic graphic, a graphic element discriminating means 71 for calculating the graphic feature variable of the linear graphic segmented by the means 52, collating the calculated value with a graphic feature variable defined by the means 8 and discriminating the sort of the graphic element, and a graphic discriminating means 72 for discriminating the graphic based upon the detected basic graphic and the graphic element added to the basic element.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】この発明は、図面に書かれている
情報を自動的に計算機等に入力するため、図面中の特定
の図形を検出して、その種類を判定する図形認識装置に
関するものである。
[Field of Industrial Application] This invention relates to a figure recognition device that detects a specific figure in a drawing and determines its type in order to automatically input information written on the drawing into a computer, etc. It is.

【0002】0002

【従来の技術】図13は、例えば情報処理学会第37回
全国大会予稿集1W−1(1598ページ)に示されて
いる従来の図形認識装置の構成図である。図において、
1は図面を画像として入力し2値のディジタル画像デー
タを得る画像入力手段、2は入力した2値の画像データ
を記憶するための2値化データ記憶手段、3は2値化デ
ータ記憶手段2に記憶されている画像データを入力し、
図形を構成する線の中心座標を示す点列データを作成す
る点列化手段、4は点列化手段3によって作成された点
列データを記憶する点列データ記憶手段、5は点列デー
タ記憶手段4に記憶されている点列データを入力して特
定の対象図形を検出する図形検出手段、6は図形検出手
段5によって検出された対象図形のデータを記憶する図
形記憶手段、7は図形記憶手段6によって記憶されてい
る図形データを入力して図形の種類を判定する図形判定
手段である。
2. Description of the Related Art FIG. 13 is a block diagram of a conventional figure recognition device, which is shown, for example, in the Information Processing Society of Japan's 37th National Conference Proceedings 1W-1 (page 1598). In the figure,
1 is an image input means for inputting a drawing as an image and obtains binary digital image data; 2 is a binary data storage means for storing the input binary image data; 3 is a binary data storage means 2 Input the image data stored in
Point sequence forming means for creating point sequence data indicating the center coordinates of lines forming a figure; 4 is a point sequence data storage means for storing the point sequence data created by the point sequence forming means 3; 5 is a point sequence data storage Figure detection means inputs the point sequence data stored in the means 4 and detects a specific target figure; 6 is a figure storage means that stores data of the target figure detected by the figure detection means 5; 7 is a figure memory This figure determining means inputs the figure data stored by the means 6 and determines the type of figure.

【0003】従来の図形認識装置は上記のように構成さ
れ、例えば図2に示すような図面を画像入力手段1に入
力すると、画像入力手段1は2値のディジタル画像デー
タに変化して2値化データ記憶手段2に記憶する。点列
化手段3は、2値化データ記憶手段2に記憶された上記
画像データの幅を持った線を細めてゆき1画素の幅の線
にする細線化処理を施して、端点や分岐点である特徴点
から特徴点までの線ごとに点列データを作成し、点列デ
ータ記憶手段4に記憶する。図形検出手段5はループを
構成する線や端点をもつ線を検出し、これらの線の集ま
りを対象図形として図形記憶手段6に記憶する。図形判
定手段7は図形記憶手段6に記憶されている対象図形に
対し、ループの数や端点の数などの図形特徴量を算出し
、その特徴量に基づき図形の種類を判定する。
The conventional figure recognition device is constructed as described above. When a drawing as shown in FIG. 2 is input to the image input means 1, the image input means 1 converts it into binary digital image data. The converted data is stored in the converted data storage means 2. The point string forming means 3 thins the line having the width of the above-mentioned image data stored in the binarized data storage means 2 to form a line with a width of one pixel, thereby forming end points and branching points. Point sequence data is created for each line from feature point to feature point, and is stored in the point sequence data storage means 4. The figure detection means 5 detects lines forming a loop and lines having end points, and stores a collection of these lines in the figure storage means 6 as a target figure. The figure determining means 7 calculates figure feature quantities such as the number of loops and the number of end points for the target figure stored in the figure storage means 6, and determines the type of figure based on the feature quantities.

【0004】0004

【発明が解決しようとする課題】従来の図形認識装置は
以上のように構成されているので、対象図形を構成する
線に例えば文字を構成する線が接触して書かれるような
場合、図形検出手段は文字を構成する線を誤って対象図
形に含めて検出してしまうため、図形判定手段ではルー
プ数や端点の数などの特徴量を誤って算出し、そのため
に図形の種類の判定を誤ってしまうという問題点があっ
た。
[Problem to be Solved by the Invention] Since the conventional figure recognition device is configured as described above, when a line constituting a target figure is written in contact with a line constituting a character, it is difficult to detect the figure. Since the method detects the lines that make up the character as being included in the target figure, the figure determination means may incorrectly calculate the feature quantities such as the number of loops and end points, and therefore incorrectly determine the type of figure. There was a problem with this.

【0005】この発明は、上記のような問題点を解消す
るためになされたもので、対象図形に文字などの他の要
素が接触しても正しく図形を検出してその種類を判定す
ることができる図形認識装置を得ることを目的とする。
[0005] This invention was made to solve the above-mentioned problems, and it is not possible to correctly detect a figure and determine its type even if another element such as a character comes into contact with the target figure. The purpose is to obtain a figure recognition device that can.

【0006】[0006]

【課題を解決するための手段】第1の発明に係る図形認
識装置は、対象図形を構成する予め定められた図形要素
のうち、対象図形に共通して用いられる複数種の基本図
形を定義して記憶する基本図形定義手段と、この基本図
形を点列データ記憶手段に記憶された点列データに基づ
いて検出する基本図形検出手段と、対象図形から検出さ
れた基本図形を除いた線図形の中から線の任意の組合せ
に基づき線図形を切出す線図形切出し手段と、基本図形
ごとに定められた、その基本図形に付加される図形要素
について、図形特徴量の判別許容値を定義する図形特徴
量定義手段と、線図形切出し手段によって切出された線
図形の図形特徴量を算出し、これと図形特徴量定義手段
に定義された図形特徴量の判別許容値との照合を行い基
本図形に付加された図形要素の種類を判定する図形要素
判定手段と、検出された基本図形と図形要素の種類の判
定結果に基づき、対象図形の種類を判定する図形判定手
段とを備えたものである。
[Means for Solving the Problems] A figure recognition device according to a first aspect of the present invention defines a plurality of types of basic figures that are commonly used for a target figure among predetermined figure elements constituting the target figure. basic figure defining means for storing the basic figures in the point sequence data storage means; basic figure detecting means for detecting the basic figures based on the point sequence data stored in the point sequence data storage means; A line figure cutting means that cuts out a line figure based on an arbitrary combination of lines, and a figure that defines a discrimination tolerance value of figure features for figure elements added to that basic figure, which is determined for each basic figure. The feature definition means calculates the figure feature of the line figure cut out by the line figure cutting means, and compares this with the discrimination tolerance value of the figure feature defined in the figure feature definition means to determine the basic figure. A graphical element determining means for determining the type of a graphical element added to the object, and a graphical determining means for determining the type of the target graphic based on the detected basic graphic and the determination result of the type of the graphical element. .

【0007】また、第2の発明に係る図形認識装置は、
所定の規則にあてはまるものを基本図形であろうとして
検出する基本図形検出手段と、検出された基本図形の中
から線の任意の組合せに基づいていくつかの線図形を切
出す線図形切出し手段と、基本図形の図形特徴量を定義
しておく図形特徴量定義手段と、この基本図形の図形特
徴量と、線図形切出し手段によって切出されるいくつか
の線図形の図形特徴量を算出して比較することにより、
図形を特定する図形判定手段を備えたことを特徴とする
ものである。
[0007]Furthermore, the figure recognition device according to the second invention includes:
A basic figure detection means for detecting a basic figure that fits a predetermined rule; and a line figure cutting means for cutting out some line figures based on an arbitrary combination of lines from the detected basic figures. , a figure feature definition means for defining the figure feature of a basic figure; the figure feature of this basic figure; and a figure feature of several line figures cut out by the line figure cutting means, calculated and compared. By doing so,
The present invention is characterized in that it includes a figure determining means for specifying a figure.

【0008】[0008]

【作用】第1の発明における基本図形検出手段は、点列
データから対象図形の一部を構成する基本図形を検出す
る。線図形切手出し手段は、対象図形から検出された基
本図形を除いて残る線図形の中から、線図形を構成する
線の組合わせに基づいていくつかの線図形を切出す。図
形要素判定手段は、切出された個々の線図形について、
図形特徴量を算出し、図形特徴量定義手段により定義さ
れた図形要素の図形特徴量の判別許容値との照合を行い
基本図形に付加された図形要素の種類を判定する。そし
て、図形判定手段により基本図形とその基本図形に付加
された図形要素を結合し図形の特定を行なう。
[Operation] The basic figure detecting means in the first invention detects a basic figure constituting a part of the target figure from point sequence data. The line figure stamp cutting means cuts out some line figures from the line figures remaining after removing the basic figure detected from the target figure, based on the combination of lines forming the line figure. The graphic element determination means determines, for each cut out line figure,
The graphic feature amount is calculated, and the type of the graphic element added to the basic graphic is determined by comparing it with the discrimination tolerance value of the graphic feature amount of the graphic element defined by the graphic feature amount definition means. Then, the basic figure and the graphic elements added to the basic figure are combined by the figure determining means to specify the figure.

【0009】また、第2の発明における基本図形検出手
段は、所定の仕様にあうものを基本図形として検出する
がこの時点ではまだ基本図形であると確定していない。 そこで、線図形切出し手段により、検出された基本図形
を構成する線を任意に組合わせて、いくつかの基本図形
候補を切出す。図形特徴量定義手段により、基本図形の
特徴量が定義されているので、図形判定手段は、これら
いくつかの基本図形候補の中から真の基本図形であるも
のをこれら特徴量の比較照合により選出する。
Further, the basic figure detecting means in the second invention detects a basic figure that meets predetermined specifications as a basic figure, but at this point it has not yet been determined that it is a basic figure. Therefore, the line figure cutting means cuts out some basic figure candidates by arbitrarily combining the lines constituting the detected basic figures. Since the feature values of the basic figure are defined by the figure feature value definition means, the figure determination means selects the true basic figure from among these several basic figure candidates by comparing and matching these feature values. do.

【0010】0010

【実施例】以下、第1の発明の一実施例を図を用いて説
明する。図1は、この発明の一実施例を示す全体構成図
で図中1〜4は、前記従来装置と同一の構成要素、9は
対象図形内で共通に用いられる基本図形を定義記憶する
基本図形定義手段、51は、点列データから対象図形を
構成する基本図形を検出する基本図形検出手段、61は
検出された基本図形データを記憶する基本図形記憶手段
、52は対象図形から検出された基本図形を除いた線図
形の中から、線の任意の組合せに基づいて線図形を切出
す線図形切出し手段、62は切出された線図形を記憶す
る線図形記憶手段、8は基本図形に付加される図形要素
について、図形特徴量の判別許容値を定義する図形特徴
量定義手段、71は線図形記憶手段62に記憶された線
図形の図形特徴量を算出し、これと図形特徴量定義手段
8に定義された図形特徴量の判別許容値との照合を行い
基本図形に付加された図形要素の種類を判定する図形要
素判定手段、72は、検出された基本図形と、図形要素
の種類の判定結果に基づいて、対象図形の種類を判定す
る図形判定手段である。
DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the first invention will be described below with reference to the drawings. FIG. 1 is an overall configuration diagram showing an embodiment of the present invention. In the figure, 1 to 4 are the same components as the conventional device, and 9 is a basic figure that defines and stores basic figures that are commonly used within the target figure. Defining means 51 is a basic figure detection means for detecting basic figures constituting the target figure from point sequence data; 61 is a basic figure storage means for storing detected basic figure data; 52 is a basic figure detected from the target figure. Line figure cutting means for cutting out line figures based on any combination of lines from line figures excluding figures; 62 is a line figure storage means for storing cut out line figures; 8 is added to basic figures; 71 calculates the graphic feature of the line figure stored in the line figure storage means 62, and calculates the figure feature of the line figure stored in the line figure storage means 62; A figure element determining means 72 determines the type of a figure element added to a basic figure by comparing it with the discrimination tolerance value of the figure feature defined in 8; It is a figure determining means that determines the type of target figure based on the determination result.

【0011】次に上記実施例の動作について説明する。 まず、画像入力手段1によって図2に示すような図面を
入力すると、2値のディジタル画像データが作成され、
2値化データ記憶手段2に記憶される。点列化手段3は
、2値化データ記憶手段2に記憶された上記画像データ
の幅を持った線を細めてゆき1画素の幅の線にする細線
化処理を施して、端点や分岐点である特徴点から特徴点
までの線ごとに点列データを作成し、点列データ記憶手
段4に記憶する。
Next, the operation of the above embodiment will be explained. First, when a drawing as shown in FIG. 2 is input using the image input means 1, binary digital image data is created.
It is stored in the binarized data storage means 2. The point string forming means 3 thins the line having the width of the above-mentioned image data stored in the binarized data storage means 2 to form a line with a width of one pixel, thereby forming end points and branching points. Point sequence data is created for each line from feature point to feature point, and is stored in the point sequence data storage means 4.

【0012】基本図形検出手段51は、基本図形定義手
段9により定義された基本図形を参照しながら点列デー
タをもとにして基本図形を検出する。図3は、基本図形
およびその基本図形を含む認識対象図形の例を示した図
、図4は、この基本図形(a)、(b)、(c)の検出
方法を説明した図であり、これらを用いて基本図形検出
手段51の作用を詳述する。
The basic figure detecting means 51 detects a basic figure based on the point sequence data while referring to the basic figure defined by the basic figure defining means 9. FIG. 3 is a diagram showing an example of a basic figure and a figure to be recognized including the basic figure, and FIG. 4 is a diagram illustrating a method for detecting the basic figures (a), (b), and (c). Using these, the operation of the basic figure detection means 51 will be explained in detail.

【0013】まず点列データにおいて接続関係を持った
線を順に追跡してゆき、閉ループを検出する。次に、検
出された閉ループごとに、外接長方形の縦と横の長さお
よび閉ループを構成する点列の画素数(これをループ長
とする)を求める。基本図形の(b)と(c)は、外接
長方形の縦と横の長さおよびループ長が基本図形定義手
段9によって記憶されている予め決められた範囲内にあ
るものを見つけることによって検出する。基本図形の(
a)は、外接長方形の縦と横の長さおよびループ長が基
本図形定義9によって記憶されている予め決められた範
囲内にあるもの同志であって、かつ任意の2つの組合わ
せについて、2つの外接長方形の間の距離dがある長さ
以下のものを見つけることによって検出する。基本図形
の(a)では、さらに、2つの閉ループの間にある垂直
方向の線も検出する。このようにして検出された基本図
形データは基本図形記憶手段61に記憶されている。
First, lines having a connection relationship are sequentially traced in point sequence data to detect closed loops. Next, for each detected closed loop, the vertical and horizontal lengths of the circumscribed rectangle and the number of pixels in the sequence of points constituting the closed loop (this is defined as the loop length) are determined. The basic figures (b) and (c) are detected by finding the circumscribed rectangle whose vertical and horizontal lengths and loop length are within a predetermined range stored by the basic figure definition means 9. . Basic shapes (
a) is a rectangle whose vertical and horizontal lengths and loop lengths are within the predetermined range stored by the basic figure definition 9, and for any combination of the two, 2 It is detected by finding the distance d between two circumscribed rectangles that is less than or equal to a certain length. In the basic figure (a), a vertical line between two closed loops is also detected. The basic figure data detected in this way is stored in the basic figure storage means 61.

【0014】次に、線図形切出し手段52は、上記基本
図形データをもとにして、対象図形から基本図形を取り
除いて残る線図形の中から、線の任意の組合せに基づき
線図形を切出す。図5はこのようにして切出される線図
形の例を示している。図中、(ア)は認識対象の図形、
(イ)は、認識対象図形から基本図形を取り除いて残る
線図形、■〜■は、(イ)の線図形の中から線の任意の
組み合せに基づき切出された線図形である。切出された
線図形は線図形記憶手段62に記憶される。
Next, based on the basic figure data, the line figure cutting means 52 cuts out a line figure based on an arbitrary combination of lines from the remaining line figure after removing the basic figures from the target figure. . FIG. 5 shows an example of a line figure cut out in this way. In the figure, (a) is the figure to be recognized;
(a) is a line figure that remains after removing the basic figure from the figure to be recognized, and (1) to (2) are line figures cut out from the line figure of (a) based on an arbitrary combination of lines. The cut out line figure is stored in the line figure storage means 62.

【0015】一方、図形特徴量定義手段8には、基本図
形こどに、基本図形に付加される図形要素について、特
徴点の数や線の本数、各線の長さなどの図形特徴量の判
別許容値が定義される。図6は、図形特徴量定義手段8
に図形特徴量の判別許容値が定義されている図形要素を
示す図である。
On the other hand, the figure feature definition means 8 determines the figure features, such as the number of feature points, the number of lines, and the length of each line, for each basic figure and the figure elements added to the basic figure. Tolerances are defined. FIG. 6 shows the graphic feature definition means 8
FIG. 3 is a diagram showing graphic elements for which discrimination tolerance values of graphic feature amounts are defined.

【0016】図形要素判定手段71は、線図形記憶手段
62に記憶された各々の線図形について、特徴量の数や
線の本数、各線の長さなどの図形特徴量を算出し、これ
と図形特徴量定義手段8に定義された図形特徴量の判別
許容値との照合を行い、基本図形に付加された図形要素
の種類を判定する。図7は、図5の認識対象図形から切
出された線図形が、図形要素判定手段71によって図形
要素の種類を判定された結果を示している。図中、×印
は照合が失敗、○印は照合が成功したことを表している
。即ち、線図形■と図形要素(A)のみが照合に成功し
ているため、基本図形に付加された図形要素は(A)で
あると判定されている。
The graphic element determination means 71 calculates graphic feature quantities such as the number of features, the number of lines, and the length of each line for each line figure stored in the line figure storage means 62, and The figure feature quantity defined in the feature quantity definition means 8 is compared with the discrimination tolerance value, and the type of the figure element added to the basic figure is determined. FIG. 7 shows the result of determining the type of graphic element of the line figure cut out from the recognition target figure in FIG. 5 by the graphic element determining means 71. In the figure, an x mark indicates a failed match, and an ○ mark indicates a successful match. That is, since only the line figure ■ and the figure element (A) have been successfully matched, it is determined that the figure element added to the basic figure is (A).

【0017】最後に、図形判定手段72は、上記により
検出された基本図形の種類と、基本図形に付加される図
形要素の種類の判定結果に基づき、認識対象図形の種類
を最終決定する。以上の結果、図5の認識対象(ア)に
示した図形のうち、図形判定手段により最終決定された
ものが、所定の図形であることになり、その他の部分は
文字であると判定できることになる。この例では残り部
分の形がCであるため、これをアルファベットのCであ
ると判定できる。特に、この第1の発明によれば、基本
図形をまずとりのぞき、残りの線図形から基本図形に付
加される図形要素を判定するため、文字等の他の要素が
図形要素に付加されている場合にその区別がしやすくな
る。
Finally, the figure determining means 72 finalizes the type of figure to be recognized based on the result of the determination of the type of the basic figure detected above and the type of figure element added to the basic figure. As a result of the above, among the figures shown in recognition target (a) in FIG. 5, the one finally determined by the figure determination means is the predetermined figure, and the other parts can be determined to be characters. Become. In this example, since the remaining part has the shape C, it can be determined that this is the letter C. In particular, according to the first invention, the basic figure is first removed and other elements such as characters are added to the figure element in order to determine the figure element to be added to the basic figure from the remaining line figures. This makes it easier to distinguish between cases.

【0018】次に、第2の発明に係る図形認識装置につ
いて説明する。上記の第1の発明の実施例では、線図形
切出し手段として対象図形から検出された基本図形を取
り除いた線図形の中から、線の任意の組合わせに基づい
て線図形を切出す手段を用いているが、検出された基本
図形の中から、基本図形を構成している線の任意の組み
合せに基づいて線図形を切出す手段を用いても、同様の
動作を期待できる。
Next, a figure recognition device according to a second invention will be explained. In the above-mentioned embodiment of the first invention, a means for cutting out a line figure based on an arbitrary combination of lines from a line figure obtained by removing basic figures detected from the target figure is used as the line figure cutting means. However, a similar operation can be expected by using means for cutting out line figures from the detected basic figures based on any combination of lines that constitute the basic figure.

【0019】図8は第2の発明の実施例を示す図であり
、1〜4は図1と同様のものである。図9は、認識対象
の図形が書かれた入力図面、図10は認識対象図形を示
した図で、各図形(A)、(B)、(C)については、
図形特徴量定義手段8に図形特徴量の判別許容値が定義
されている。また、ここでは、認識対象図形に共通して
用いられる基本図形を認識するための規則として、大き
さが一定範囲の閉ループである場合を考えている。
FIG. 8 is a diagram showing an embodiment of the second invention, and 1 to 4 are similar to FIG. 1. FIG. 9 is an input drawing in which the figure to be recognized is written, and FIG. 10 is a diagram showing the figure to be recognized. For each figure (A), (B), and (C),
The graphic feature definition means 8 defines a discrimination tolerance value for the graphic feature. Further, here, we consider a case where the rules for recognizing basic figures that are commonly used as recognition target figures are closed loops with a fixed size range.

【0020】基本図形検出手段51は、図9の図面に対
して作成された線図形の中から、大きさが一定範囲の閉
ループを基本図形として検出する。線図形切出し手段5
2は、検出された閉ループを構成する線図形の中から、
線の任意の組合せに基づいて線図形を切出す。但し、こ
の時、認識対象図形はすべて閉ループであるから、切出
す線図形は閉ループに限る。図11は、検出された基本
図形の例と、これから切出された線図形を示している。
The basic figure detection means 51 detects a closed loop having a fixed size range as a basic figure from among the line figures created for the drawing of FIG. Line figure cutting means 5
2 is the line figure that constitutes the detected closed loop.
Cut out a line figure based on an arbitrary combination of lines. However, at this time, since all the figures to be recognized are closed loops, the line figures to be cut out are limited to closed loops. FIG. 11 shows an example of a detected basic figure and a line figure cut out from it.

【0021】図形判定手段72は、切出された線図形に
ついて、図形特徴量を算出し、これと図形特徴量定義手
段8に定義された各図形(A)、(B)、(C)の図形
特徴量の判別許容値との照合を行い、図形の種類を判定
する。図12は、図11の基本図形から切出された線図
形が、図形判定手段72によって図形の種類を判定され
た結果を示している。即ち、図形の種類は(A)である
と判定されている。
The figure determining means 72 calculates the figure feature amount for the cut out line figure, and calculates the figure feature quantity for each figure (A), (B), (C) defined in the figure feature quantity defining means 8. The type of figure is determined by comparing the figure feature amount with the discrimination tolerance value. FIG. 12 shows the result of determining the type of a line figure cut out from the basic figure shown in FIG. 11 by the figure determining means 72. That is, the type of figure is determined to be (A).

【0022】なお、上記実施例では、基本図形検出手段
が基本図形を検出するために用いたのは「大きさが一定
範囲の閉ループ」という規則であったが、このほかに以
下のような規則であってもよい。「ループ長が一定範囲
の閉ループ」「外接長方形の面積が一定範囲の図形」「
外接長方形の縦の長さ、あるいは横の長さが一定範囲の
図形」「端点が一定以上数ある図形」「端点がない図形
」「分岐点がある図形、あるいはない図形」もちろん、
これら以外の規則あるいは仕様であってもよい。さらに
これらの規則・仕様の組合せであってもかまわない。
[0022] In the above embodiment, the basic figure detecting means used the rule "closed loop with a fixed size range" to detect the basic figures, but in addition to this, the following rules were used: It may be. "Closed loop with loop length within a certain range""Figure whose circumscribed rectangle area is within a certain range""
A figure whose circumscribing rectangle has a certain length or width, a figure with a certain number of endpoints or more, a figure with no endpoints, a figure with or without a branch point, and of course,
Rules or specifications other than these may be used. Furthermore, a combination of these rules and specifications may be used.

【0023】このように、第2の発明によれば、線図形
切出し手段として、検出された基本図形の中から、線の
任意の組合せに基づいて線図形を切出す手段を用いるこ
とにより、基本図形に文字等の他の要素が接触して書か
れている図面についても、対象図形を正しく検出して、
その種類を判定できる効果がある。
As described above, according to the second invention, by using means for cutting out a line figure based on an arbitrary combination of lines from among the detected basic figures as the line figure cutting means, basic figures can be cut out based on an arbitrary combination of lines. Even in drawings where other elements such as characters are in contact with shapes, the target shape can be detected correctly.
It has the effect of determining its type.

【0024】[0024]

【発明の効果】以上のようにこの発明によれば、基本図
形や基本図形に付加される図形要素を先に判定するよう
にしたので、基本図形や図形要素に文字等の他の要素が
接触して書かれている図面を入力してもこれに惑わされ
ることなく対象図形を正しく検出できる効果がある。
[Effects of the Invention] As described above, according to the present invention, since the basic figure or the figure element added to the basic figure is determined first, other elements such as characters come into contact with the basic figure or the figure element. Even if you input a drawing written in

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

【図1】第1の発明の一実施例である図形認識装置を示
す全体構成図。
FIG. 1 is an overall configuration diagram showing a figure recognition device which is an embodiment of the first invention.

【図2】認識対象とする図面の一例を示す図。FIG. 2 is a diagram showing an example of a drawing to be recognized.

【図3】基本図形の例および各基本図形に対応する認識
対象図形の例を示す図。
FIG. 3 is a diagram showing examples of basic figures and examples of recognition target figures corresponding to each basic figure.

【図4】基本図形検出方法の説明図。FIG. 4 is an explanatory diagram of a basic figure detection method.

【図5】認識対象図形から基本図形を除いた部分から切
出される線図形の例を示す図。
FIG. 5 is a diagram showing an example of a line figure cut out from a part of the recognition target figure excluding the basic figure.

【図6】図形特徴量の判別許容値が定義される図形要素
の例を示す図。
FIG. 6 is a diagram illustrating an example of a graphic element for which a discrimination tolerance value of a graphic feature is defined.

【図7】切出された線図形について図形要素の種類が判
定された結果を示す図。
FIG. 7 is a diagram showing the result of determining the type of graphic element for the cut out line figure.

【図8】第2の発明の実施例である図形認識装置を示す
全体構成図。
FIG. 8 is an overall configuration diagram showing a figure recognition device that is an embodiment of the second invention.

【図9】認識対象とする図面の一例を示す図。FIG. 9 is a diagram showing an example of a drawing to be recognized.

【図10】認識対象図形の例を示す図。FIG. 10 is a diagram showing an example of a figure to be recognized.

【図11】基本図形の中から切出される線図形の例を示
す図。
FIG. 11 is a diagram showing an example of a line figure cut out from a basic figure.

【図12】切出された線図形について、図形の種類が判
定された結果を示す図。
FIG. 12 is a diagram showing the result of determining the type of a cut out line figure.

【図13】従来の図形認識装置の構成図。FIG. 13 is a configuration diagram of a conventional figure recognition device.

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

1  画像入力手段 2  2値化データ記憶手段 3  点列化手段 4  点列データ記憶手段 51  基本図形検出手段 52  線図形切出し手段 61  基本図形記憶手段 62  線図形記憶手段 71  図形要素判定手段 72  図形判定手段 8  図形特徴量定義手段 9  基本図形定義手段 1 Image input means 2 Binarized data storage means 3. Point array means 4 Point sequence data storage means 51 Basic figure detection means 52 Line figure cutting means 61 Basic figure storage means 62 Line figure storage means 71 Graphic element determination means 72 Figure determination means 8 Graphic feature definition means 9 Basic figure definition means

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】  以下の要素を有する図形認識装置(a
)画像を入力し、2値の画像データを作成する画像入力
手段、(b)入力された画像データに基づき、図形を構
成する線の点列データを作成する点列化手段、(c)認
識対象図形に共通して用いられる基本図形を定義して記
憶しておく基本図形定義手段、(d)点列データによっ
てあらわされた線により構成された線図形の中から、基
本図形定義手段により定義された基本図形を検出する基
本図形検出手段、(e)線図形の中から基本図形検出手
段により検出された基本図形を除いた残りの線図形を切
出す線図形切出し手段、(f)基本図形とともに用いら
れる図形要素の図形特徴量を定義して記憶しておく図形
特徴量定義手段、(g)線図形切出し手段によって切出
された線図形の図形特徴量を算出して図形特徴量定義手
段で定義されたものと比較し、線図形を図形要素として
特定する図形要素判定手段、(h)基本図形検出手段に
より検出された基本図形と図形要素判定手段により判定
された図形要素から図形を判定する図形判定手段。
Claim 1: A figure recognition device (a
) image input means for inputting an image and creating binary image data; (b) point sequence generating means for creating point sequence data of lines forming a figure based on the input image data; (c) recognition. (d) A basic figure definition means that defines and stores basic figures that are commonly used for target figures; basic figure detection means for detecting the basic figure detected by the basic figure detection means; (e) line figure cutting means for cutting out the remaining line figure excluding the basic figure detected by the basic figure detection means from the line figure; (f) basic figure (g) a figure feature definition means for defining and storing the figure feature of the figure element to be used; (g) a figure feature definition means for calculating the figure feature of the line figure cut out by the line figure cutting means; (h) determining a figure from the basic figure detected by the basic figure detection means and the figure element determined by the figure element judgment means; figure determination means.
【請求項2】  以下の要素を肖する図形認識装置(a
)画像を入力し、2値の画像データを作成する画像入力
手段、(b)入力された画像データに基づき、図形を構
成する線の点列データを作成する点列化手段、(c)点
列データにより構成された線図形の中から、所定の規則
にあてはまるものを認識対象図形に共通して用いられる
基本図形として検出する基本図形検出手段、(d)検出
された基本図形を構成する線の任意の組合せによってつ
くられる線図形を切出す線図形切出し手段、(e)認識
対象図形に共通に用いられる基本図形の図形特徴量を定
義して記憶しておく図形特徴量定義手段、(f)線図形
切出し手段によって切出された線図形について、図形特
徴量を算出し、これと図形特徴量定義手段により定めら
れた基本図形の図形特徴量の判別許容値との照合を行い
図形の種類を判定する図形判定手段。
Claim 2: A figure recognition device (a) comprising the following elements:
) image input means for inputting an image and creating binary image data; (b) point sequence generating means for creating point sequence data of lines forming a figure based on the input image data; (c) points. basic figure detection means for detecting, from among line figures constituted by column data, those that meet a predetermined rule as basic figures commonly used in recognition target figures; (d) lines constituting the detected basic figures; (e) a figure feature defining means for defining and storing figure features of basic figures commonly used for recognition target figures; (f) ) Calculate the figure feature amount for the line figure cut out by the line figure cutter, and compare this with the discrimination tolerance value of the figure feature quantity of the basic figure determined by the figure feature value definition means to determine the type of figure. A figure determining means for determining.
JP2406769A 1990-12-26 1990-12-26 Figure recognition device Expired - Fee Related JPH07118016B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2406769A JPH07118016B2 (en) 1990-12-26 1990-12-26 Figure recognition device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2406769A JPH07118016B2 (en) 1990-12-26 1990-12-26 Figure recognition device

Publications (2)

Publication Number Publication Date
JPH04260980A true JPH04260980A (en) 1992-09-16
JPH07118016B2 JPH07118016B2 (en) 1995-12-18

Family

ID=18516393

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2406769A Expired - Fee Related JPH07118016B2 (en) 1990-12-26 1990-12-26 Figure recognition device

Country Status (1)

Country Link
JP (1) JPH07118016B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010003102A (en) * 2008-06-20 2010-01-07 Zuken Inc Automatic recognition device, automatic recognition method, program, and computer readable recording medium
WO2011128933A1 (en) * 2010-04-13 2011-10-20 三菱電機株式会社 Image vectorization device, image vectorization method, and image vectorization program

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP4276740A1 (en) * 2021-01-06 2023-11-15 Toyobo Co., Ltd. Analysis method for images of fiber-containing products and program and analysis device therefor

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60200376A (en) * 1984-03-26 1985-10-09 Hitachi Ltd Partial pattern matching system
JPS61208168A (en) * 1985-03-12 1986-09-16 Toshiba Corp Drawing reader
JPS61208171A (en) * 1985-03-12 1986-09-16 Toshiba Corp Drawing reader
JPS62206694A (en) * 1986-03-07 1987-09-11 Toshiba Corp Drawing reader
JPS6379183A (en) * 1986-09-22 1988-04-09 Mitsubishi Electric Corp Graphic recognizing device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60200376A (en) * 1984-03-26 1985-10-09 Hitachi Ltd Partial pattern matching system
JPS61208168A (en) * 1985-03-12 1986-09-16 Toshiba Corp Drawing reader
JPS61208171A (en) * 1985-03-12 1986-09-16 Toshiba Corp Drawing reader
JPS62206694A (en) * 1986-03-07 1987-09-11 Toshiba Corp Drawing reader
JPS6379183A (en) * 1986-09-22 1988-04-09 Mitsubishi Electric Corp Graphic recognizing device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010003102A (en) * 2008-06-20 2010-01-07 Zuken Inc Automatic recognition device, automatic recognition method, program, and computer readable recording medium
WO2011128933A1 (en) * 2010-04-13 2011-10-20 三菱電機株式会社 Image vectorization device, image vectorization method, and image vectorization program

Also Published As

Publication number Publication date
JPH07118016B2 (en) 1995-12-18

Similar Documents

Publication Publication Date Title
US5907631A (en) Document image processing method and system having function of determining body text region reading order
JPH06309498A (en) Picture extracting system
JPH08305796A (en) Pattern extracting device, table preparing device for pattern recognition and pattern recognition device
JPH0728937A (en) Image extracting device
CN113095267B (en) Data extraction method of statistical chart, electronic device and storage medium
CN115223172A (en) Text extraction method, device and equipment
Liang et al. Performance evaluation of document layout analysis algorithms on the UW data set
KR20010015025A (en) Character extracting method
CN100456317C (en) Program, method and device for determining line direction
JPH04260980A (en) Device for recognizing graphic
JP2002063548A (en) Handwritten character recognizing method
JP3798179B2 (en) Pattern extraction device and character segmentation device
JP4810853B2 (en) Character image cutting device, character image cutting method and program
JP2995650B2 (en) Ruled line removal method
JPH06180771A (en) English letter recognizing device
JP3157530B2 (en) Character extraction method
JP3710164B2 (en) Image processing apparatus and method
JP3077929B2 (en) Character extraction method
JP3000480B2 (en) Character area break detection method
JPH0573718A (en) Area attribute identifying system
JP2890307B2 (en) Table space separation device
JPH0746363B2 (en) Drawing reader
JPS6379183A (en) Graphic recognizing device
JPH10214308A (en) Character discrimination method
JP2002063547A (en) Handwritten character recognizing method

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees