JPH0119190B2 - - Google Patents
Info
- Publication number
- JPH0119190B2 JPH0119190B2 JP56163083A JP16308381A JPH0119190B2 JP H0119190 B2 JPH0119190 B2 JP H0119190B2 JP 56163083 A JP56163083 A JP 56163083A JP 16308381 A JP16308381 A JP 16308381A JP H0119190 B2 JPH0119190 B2 JP H0119190B2
- Authority
- JP
- Japan
- Prior art keywords
- separation
- circuit
- outer edge
- frame
- separation frame
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V30/00—Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
- G06V30/40—Document-oriented image-based pattern recognition
- G06V30/42—Document-oriented image-based pattern recognition based on the type of document
- G06V30/422—Technical drawings; Geographical maps
Landscapes
- Engineering & Computer Science (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Artificial Intelligence (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Multimedia (AREA)
- Theoretical Computer Science (AREA)
- Image Analysis (AREA)
- Character Input (AREA)
Description
【発明の詳細な説明】
この発明は図形や記号等の認識装置に関し、特
にドラムスキヤナ等のスキヤナにより図面等を走
査して得た2次元画像データ中から指定された距
離以下に近接して存在する指定された寸法以下の
大きさの図形や記号を分離する図形分離回路に関
する。DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a recognition device for figures, symbols, etc., and in particular, the present invention relates to a device for recognizing figures, symbols, etc. This invention relates to a figure separation circuit that separates figures and symbols whose size is smaller than a specified size.
図形や記号を計算機に入力する方法として、従
来はタブレツトやデイジタイザ等の座標入力装置
を利用して図形の外周部を点列データとして入力
する方法や、英数字、カナ、漢字キーボード等の
キー打鍵による方法が広く利用されている。 Conventional methods for inputting figures and symbols into a calculator include inputting the outer periphery of the figure as a sequence of points using a coordinate input device such as a tablet or digitizer, or using keys such as an alphanumeric, kana, or kanji keyboard. The method is widely used.
しかし最近のスキヤナ技術やパターン認識処理
技術の進歩に伴なつて、図面等をスキヤナで走査
して得た2次元画像データから所望の図形や記号
を認識して計算機に入力する方法が試みられ実用
化されつつある。一般に利用される回路図等の図
面においては、例えば図形と記号の如く幾可学的
な寸法や認識方法が異なるものが混在しており、
以後の認識処理を効率よく行なうためにも認識処
理に先立つて、これらの異質の物を分離すること
が必要である。 However, with recent advances in scanner technology and pattern recognition processing technology, methods have been attempted to recognize desired figures and symbols from two-dimensional image data obtained by scanning drawings, etc. with a scanner, and input them into a computer. It is becoming more and more popular. In commonly used drawings such as circuit diagrams, there are a mixture of figures and symbols with different geometric dimensions and recognition methods.
In order to perform the subsequent recognition processing efficiently, it is necessary to separate these different substances prior to the recognition processing.
従来このように図形や記号が混在する場合に
は、例えば図形の右側に記号を書くというように
図形と記号の相対位置関係を規定したり、図形は
自由に書ける記号は定められた位置にしか書けな
い等の制限を設けることにより、図形と文字を分
離する必要が無いかあるいは分離の必要があつて
も容易に分離できるように図面の作画仕様を規定
していた。しかしこの様な制限を設けることは、
図面を作画する立場から見ると融通性に乏しく、
またそれ故に限定された利用法しかできないとい
う欠点を生じる。また従来は分離される図形や記
号が、連続した画素で構成される物に限定されて
いた。例えば「ヘン」と「ツクリ」に分離される
漢字のような分離記号に対しては、「ヘン」と
「ツクリ」が個別に分離されてしまうので、1つ
の意味のある図形や記号に分離後再編集しなけれ
ばならない欠点を有していた。 Conventionally, when shapes and symbols are mixed like this, the relative positional relationship between the shapes and symbols must be defined, such as writing the symbol on the right side of the shape, or the symbol can be written freely in the shape, but only in a specified position. By setting restrictions such as not being able to write, drawing specifications were stipulated so that there was no need to separate figures and characters, or even if it was necessary to separate them, they could be easily separated. However, setting such restrictions,
From the perspective of drawing a drawing, it lacks flexibility,
Moreover, it also has the disadvantage that it can only be used in limited ways. Furthermore, in the past, the figures and symbols to be separated were limited to those composed of continuous pixels. For example, for separable symbols such as kanji that are separated into "hen" and "tsukuri", "hen" and "tsukuri" are separated separately, so after separating them into one meaningful figure or symbol, It had the disadvantage of requiring re-editing.
本発明の目的はこれらの事情を考慮してなされ
たもので、図形と文字等の如く幾可学的寸法上の
特徴や、以後の処理方法が異なる図形や記号が自
由に書かれている図面をスキヤナで走査して得ら
れる2次元画像データから、幾可学的寸法の違い
に基いて図形や記号を意味のある単位で分離可能
な図形分離回路を提供することにある。 The purpose of the present invention has been made in consideration of these circumstances, and it is a drawing in which figures and symbols, such as figures and characters, are freely drawn with geometrical dimensional features, and figures and symbols that require different processing methods thereafter. An object of the present invention is to provide a figure separation circuit capable of separating figures and symbols into meaningful units based on differences in geometric dimensions from two-dimensional image data obtained by scanning the image with a scanner.
本発明によれば図形と記号のように寸法の異な
るものを含む図面等をスキヤナ等で走査して得ら
れる2次元画像データから、指定された距離以下
に近接して存在する指定された寸法以下の図形部
分に対応する画像データを分離抽出する回路にお
いて、前記2次元画像データを記憶保持するため
の画像メモリと、外縁点検出開始信号を受けて該
画像メモリに対しラスタ走査を行ないながら前記
図形部分の外縁点を検出する外縁点検出回路と、
前記外縁点検出回路で得た外縁点から隣接した外
縁点を順次検出しながら図形部分の外縁部を追跡
する図形外縁部追跡回路と、前記図形外縁部追跡
回路で得た図形領域に外接する矩形領域であると
ころの分離枠を設定もしくは後記分離判定回路で
得た分離枠の拡張情報に基づいて分離枠を辺毎に
拡張して新しい分離枠を設定し該分離枠と予め外
部情報処理装置から設定されている分離図形の最
大枠とを比較し前記分離枠が該最大枠を越えてい
る場合には外縁点検出開始信号を、越えていない
場合には画像メモリ読み出し開始信号を発生する
分離枠設定回路と、前記画像メモリ読み出し開始
信号を受けて前記分離枠の上辺を除く各辺を拡張
した点に対応する画像メモリの値を順次読みとる
画像メモリ読み取り回路と、該画像メモリ読み取
り回路で得られた信号の値に基づいて図形の分離
が可能か否かを判定し分離が可能であれば切出開
始信号を、分離が不可能であれば分離枠の各辺毎
の拡張情報を出力する分離判定回路と、前記切出
開始信号を受けて現在の分離枠内に含まれる図形
部分とその外接矩形領域で切出す図形切出回路
と、前記画像メモリとのデータ読み出し、書き込
みや、外部情報処理装置とのインタフエース動作
および前記各回路を制御し外縁点検出開始信号等
の図形分離動作を行なわしめる信号を発生する制
御回路とを具備する図形分離回路が得られる。 According to the present invention, from two-dimensional image data obtained by scanning drawings, etc. that include figures and symbols with different dimensions using a scanner, etc., images of sizes less than or equal to the specified distance that exist in close proximity than the specified distance are obtained. A circuit for separating and extracting image data corresponding to a figure part includes an image memory for storing and holding the two-dimensional image data, and a raster scanning circuit for raster scanning the image memory in response to an outer edge point detection start signal. an outer edge point detection circuit that detects an outer edge point of a portion;
a figure outer edge tracking circuit that tracks the outer edge of a figure portion while sequentially detecting outer edge points adjacent to the outer edge point obtained by the outer edge point detection circuit; and a rectangle circumscribing the figure area obtained by the figure outer edge tracking circuit. Set a separation frame that is a region, or expand the separation frame side by side based on extension information of the separation frame obtained by the separation judgment circuit described later, set a new separation frame, and use the separation frame and the external information processing device in advance. A separation frame that compares the separation frame with the maximum frame of a set separation figure and generates an outer edge point detection start signal if the separation frame exceeds the maximum frame, and generates an image memory readout start signal if the separation frame does not exceed the maximum frame. a setting circuit; an image memory reading circuit that receives the image memory read start signal and sequentially reads values in the image memory corresponding to points obtained by expanding each side of the separation frame except for the upper side; and a value obtained by the image memory reading circuit. A separation function that determines whether or not it is possible to separate the figures based on the value of the signal, and outputs a cutting start signal if separation is possible, and outputs extended information for each side of the separation frame if separation is not possible. A determination circuit, a figure cutting circuit which receives the cutout start signal and cuts out the figure part included in the current separation frame and its circumscribed rectangular area, reads data from and writes data to and from the image memory, and performs external information processing. A graphic separation circuit is obtained which includes an interface operation with the device and a control circuit which controls each of the circuits and generates signals such as an edge point detection start signal for performing the graphic separation operation.
本発明の図形分離回路によれば、分離しようと
する図形や記号を予め定められた位置や枠内に書
くという図面の作画仕様の制御がなくなるため
に、図面の作成にあたつて作成者の負担を大巾に
軽減することができ、従つて図面作成工数の低減
化が実現される。 According to the figure separation circuit of the present invention, there is no need to control the drawing specifications of drawings, such as drawing figures or symbols to be separated in predetermined positions or frames. The burden can be greatly reduced, and therefore the number of man-hours required for creating drawings can be reduced.
さらに本発明の図形分離回路によれば、漢字の
「ヘン」と「ツクリ」のように、複数の画像デー
タ部から1つの図形または記号が構成されている
場合、個々の画像データを個別に分離・切出しを
行なわずに、指定された範囲の領域内に存在する
画像データをまとめて1つの図形または記号とし
て切り出すことが可能である。したがつて複数の
画像データ部から構成されている図形や記号を含
む図面等の2次元画像データに対しても、図形や
記号を切出した後の認識処理が簡単化されるとい
つた利点が生じる。 Further, according to the figure separation circuit of the present invention, when one figure or symbol is composed of a plurality of image data parts, such as the Kanji characters "hen" and "tsukuri", each image data is separated individually. - It is possible to cut out all the image data existing within a specified area as one figure or symbol without cutting out. Therefore, even for two-dimensional image data such as drawings that include figures and symbols that are composed of multiple image data parts, there is an advantage that the recognition process after cutting out the figures and symbols is simplified. arise.
以下本発明を図面を参照して詳細に説明する。
第1図は幾可学的寸法の異なる図形や記号の混在
する図面の例としてフローチヤートの一部を示す
図である。図中には、処理ブロツクと、各ブロツ
ク間を結ぶ接続線で表わされる大きな連続図形
と、各ブロツク内外に書かれた文字で表わされる
小さな記号とが含まれている。 The present invention will be described in detail below with reference to the drawings.
FIG. 1 is a diagram showing a part of a flowchart as an example of a drawing in which figures and symbols of different geometric dimensions coexist. The diagram includes processing blocks, large continuous figures represented by connecting lines connecting each block, and small symbols represented by characters written inside and outside each block.
第2図は、第1図で示したような図形部あるい
は記号部の外縁点を検出する方法を説明するため
に示した図である。なお以下の説明では、対象と
する2次元画像データを値が1と0の2値パター
ンとして取り扱う。図中黒丸部は、画像データ中
で値が1である1ドツトの点を示している。白丸
部は、画像データ中で値が0の1ドツトの点を示
しており、簡単のため説明に必要なものは記した
が、それ以外は記載を省略している。 FIG. 2 is a diagram illustrating a method for detecting the outer edge points of a figure part or a symbol part as shown in FIG. 1. Note that in the following explanation, the target two-dimensional image data will be treated as a binary pattern with values of 1 and 0. A black circle in the figure indicates a dot having a value of 1 in the image data. The white circle indicates a one-dot point with a value of 0 in the image data, and for the sake of simplicity, only those necessary for explanation have been described, but the other descriptions have been omitted.
黒丸群で表わされる図形または記号部の外縁点
の検出は、第2図において点線で示すように2次
元画像データ全体をラスタ走査することにより得
られる。まずi番目のラインを左から右に走査し
ながら値が0→1(白→黒)の変化点を見つけ、
その位置aを記憶する。次にi→1番目のライン
について位置a−1、aの2点の値も調べ、すべ
ての点の値が0であればi番目のラインのa点が
図形や記号部を表わす黒丸群の外縁点として検出
されたことになる。しかしi−1番目のラインの
位置a−1、aの少くとも一方の点が値1であれ
ば、i番目のラインの位置aの点は既に追跡済の
外縁後か、内縁部の点と見なし、外縁部検出に続
く以後の処理は行なわずに、2次元画像データの
ラスタ走査を引き続き行なう。 Detection of the outer edge points of a graphic or symbol portion represented by a group of black circles is obtained by raster scanning the entire two-dimensional image data as shown by the dotted line in FIG. First, scan the i-th line from left to right and find the point where the value changes from 0 to 1 (white to black).
Store that position a. Next, check the values of the two points at positions a-1 and a for the i->1st line, and if the values of all points are 0, the point a of the i-th line is one of the black circles representing figures and symbols. This means that it has been detected as an outer edge point. However, if at least one point at position a-1, a on the i-1th line has a value of 1, the point at position a on the i-th line is either after the outer edge that has already been tracked or at the inner edge. Therefore, the raster scanning of the two-dimensional image data is continued without performing any processing subsequent to the outer edge detection.
第3図は第2図を用いて説明した方法で検出し
た黒丸群の外縁点を始点として、外縁点を追跡し
黒丸群に外接する矩形で表わされる分離枠を求め
る方法を説明するために示す図である。第3図a
は、第2図で検出された外縁点を始点として外縁
部を追跡していく状態を示した図である。外縁部
の追跡は第3図aに示される1の点より開始さ
れ、以後2、3、4、5、…、と矢印で示される
経路で外縁部の追跡を始点1に戻るまで行なう。
追跡処理に伴ない、追跡された1、2、3、…の
各点の位置を記憶しておく。第3図bは、第3図
aの外縁部追跡で求めた外縁部の各位置情報より
黒丸群に外接する矩形領域である分離枠を設定し
た状態を示した図である。図では分離枠は巾が7
ビツト、高さが5ビツトとなつている。 FIG. 3 is shown to explain a method of finding a separation frame represented by a rectangle circumscribing the black circles by tracing the outer edge points starting from the outer edge points of the black circles detected by the method explained using FIG. 2. It is a diagram. Figure 3a
2 is a diagram showing a state in which the outer edge portion is tracked starting from the outer edge point detected in FIG. 2. FIG. The tracking of the outer edge is started from point 1 shown in FIG.
Along with the tracking process, the positions of the tracked points 1, 2, 3, . . . are stored. FIG. 3b is a diagram showing a state in which a separation frame, which is a rectangular area circumscribing a group of black circles, is set based on the position information of the outer edge obtained by the outer edge tracking in FIG. 3a. In the figure, the width of the separation frame is 7.
The height is 5 bits.
第4図は、第3図で検出された分離枠を上辺を
除く各辺方向に予め設定された巾だけ拡張した状
態を示す図である。第4図aは拡張された分離枠
(実線で示す)と拡張前の分離枠(点線で示す)
を示す図である。第4図aの実線で示される枠と
点線で示される枠との間の領域である拡張された
部分の値を読みとり、値が1の部分が存在しなけ
れば点線で示される拡張前の分離枠により黒丸群
を完全に分離することができる。第4図bは、拡
張された部分に値が1の部分、すなわち他の図形
部や記号部を示す黒丸群が存在する場合を示して
いる。この場合は、分離枠の拡張により新たに検
出された黒丸群の外縁部を第2図aで示したのと
同様な手順で追跡を行なう。追跡の結果得られた
新たな黒丸群の位置情報を用いて点線で示される
分離枠で囲まれた黒丸群と新たに検出された黒丸
群とを共に含む外接矩形領域を、新たに設定され
た分離枠とする。第4図cは、このようにして新
たに設定された分離枠を示す図である。 FIG. 4 is a diagram showing a state in which the separation frame detected in FIG. 3 is expanded by a preset width in each side direction except for the upper side. Figure 4a shows the expanded separation frame (indicated by a solid line) and the separation frame before expansion (indicated by a dotted line).
FIG. Read the value of the expanded part, which is the area between the frame shown by the solid line and the frame shown by the dotted line in Figure 4a, and if there is no part with a value of 1, the separation before expansion shown by the dotted line. The black circles can be completely separated by the frame. FIG. 4b shows a case where the expanded portion includes a portion with a value of 1, that is, a group of black circles indicating other graphic portions or symbol portions. In this case, the outer edges of the black circles newly detected by expanding the separation frame are tracked in the same manner as shown in FIG. 2a. Using the position information of the new black circle group obtained as a result of tracking, a new circumscribed rectangular area is set that includes both the black circle group surrounded by the separation frame indicated by the dotted line and the newly detected black circle group. Separate frame. FIG. 4c is a diagram showing the separation frame newly set in this way.
以上説明した手順を、分離枠を上辺を除く各辺
方向に順次拡張していき、拡張された領域内に新
たに値が1の部分が検出されなくなるまで繰り返
すが、分離したい図形や記号の幾可学的寸法の最
大枠を越えての拡張は不要である。したがつて分
離枠が拡張され新しい分離枠が決定される毎に前
記最大枠と分離枠との寸法を比較し、最大枠の寸
法を越えた時には分離不可能と判断し、第2図で
説明した外縁点検出処理に戻り、次の図形や記号
の外縁点を検出する。 The above-described steps are repeated to sequentially expand the separation frame in the direction of each side except the top edge, and repeat until no new part with a value of 1 is detected in the expanded area. No expansion beyond the maximum possible dimensions is necessary. Therefore, each time the separation frame is expanded and a new separation frame is determined, the dimensions of the maximum frame and the separation frame are compared, and when the size of the maximum frame is exceeded, it is determined that separation is impossible, and this is explained in Fig. 2. Returning to the outer edge point detection process, the outer edge point of the next figure or symbol is detected.
以上説明した方法を用いて第1図に示されるフ
ローチヤートから、図中の処理ブロツク内外に書
かれた文字を分離抽出する場合を例に説明する。
第5図は、説明のため第1図に示したフローチヤ
ートの一部を拡大して表わした図である。図中黒
実線部は画像データ中で値が1の部分であり、そ
れ以外の部分は値が0の領域である。簡単のため
画像データをドツト単位で表わさず連続した線情
報の形で表現している。第5図において点線で示
されるように2次元画像データ全体をラスタ走査
する。i番目のラインを左から右に走査しながら
値が0→1(白→黒)の変化点を見つけ、その位
置aを記憶する。次にi−1番目のラインについ
て位置a−1、aの2点の値が共に0であるの
で、i番目のラインのaの位置の点が図形を表わ
す黒データ群の外縁点として検出されたことにな
る。次に検出された黒データ群の外縁点の位置a
を始点として、黒データ群の外縁部を追跡する。
ここで外縁部とは処理ブロツクを表わす楕円、矩
形、菱形および各処理ブロツク間を結ぶ矢印付の
接続線の一番外側の黒点群である。外縁部の追跡
を始点位置aに戻るまで行ない、追跡時に求めら
れている外縁部の各点情報から、黒データ群、こ
の場合は各処理ブロツクおよび接続線で構成され
る図形群、に外接する矩形領域である分離枠も設
定する。分離したい文字の幾可学的寸法の最大枠
に比べて、前記分離枠の寸法の方が大きいため点
aから追跡して得られた黒データ群の分離は不可
能と判断し、ラスタ走査を継続して次の図形の外
縁点検出操作を行なう。 An example will be described in which the method described above is used to separate and extract characters written inside and outside the processing blocks in the flowchart shown in FIG. 1.
FIG. 5 is an enlarged view of a part of the flowchart shown in FIG. 1 for explanation. The black solid line portion in the figure is a portion where the value is 1 in the image data, and the other portions are areas where the value is 0. For simplicity, the image data is not expressed in units of dots, but in the form of continuous line information. The entire two-dimensional image data is raster scanned as indicated by the dotted line in FIG. While scanning the i-th line from left to right, a point where the value changes from 0 to 1 (white to black) is found and its position a is memorized. Next, since the values of the two points at positions a-1 and a on the i-1th line are both 0, the point at position a on the i-th line is detected as the outer edge point of the black data group representing the figure. That means that. Position a of the outer edge point of the next detected black data group
Starting from , trace the outer edge of the black data group.
Here, the outer edges are the outermost black dots of the ellipses, rectangles, and rhombuses representing processing blocks, and the connecting lines with arrows connecting each processing block. The outer edge is traced until it returns to the starting point position a, and from the information on each point of the outer edge obtained during tracking, the black data group, in this case a figure group consisting of each processing block and connection line, is circumscribed. A separation frame, which is a rectangular area, is also set. Since the size of the separation frame is larger than the maximum frame of the geometric dimensions of the characters to be separated, it is determined that it is impossible to separate the black data group obtained by tracking from point a, and raster scanning is performed. Continue to perform the outer edge point detection operation for the next figure.
ラスタ走査をさらに行なうと、j番目のライン
を左から右に走査して値が0→1の変化点がbの
位置で見つかるが、位置bの点はi番目のライン
上の位置aを始点とする外縁部追跡操作時に既に
追跡されている点であるので、さらにi+1番目
のライン上のラスタ走査を継続する。さらにj番
目のライン上の走査で値が0→1の変化点がcの
位置で見つかる。j−1番目のラインについて位
置c−1、cの2点の値が共に0である時、j番
目のライン上の位置cの点が図形を表わす黒デー
タ群の外縁点として検出されたことになる。 When raster scanning is further performed, the jth line is scanned from left to right and a change point where the value changes from 0 to 1 is found at position b, but the point at position b starts from position a on the ith line. Since this point has already been tracked during the outer edge tracking operation, raster scanning on the i+1th line is continued. Further, when scanning the j-th line, a point where the value changes from 0 to 1 is found at position c. When the values of the two points at positions c-1 and c on the j-1st line are both 0, the point at position c on the j-th line is detected as the outer edge point of the black data group representing the figure. become.
次に検出された黒データ群の外縁点の位置cを
始点して黒データ群の外縁部を追跡することによ
り、黒データ群、この場合は「始」という文字の
ヘン「女」、に外接する図中点線で示される矩形
領域である分離枠1が設定される。次に設定され
た分離枠1を上辺を除く各辺方向に予め設定され
た巾だけ拡張する。図中一点鎖線で示される分離
枠2が拡張された分離枠である。拡張された部分
に値が1の部分、この場合は「始」という文字の
ツクリ「台」の一部、が存在するので新たに検出
された黒データ群の外縁部を追跡する。追跡の結
果得られた新たな黒データ群の位置情報を用い
て、点線で示される分離枠1で囲まれた黒データ
群と新たに検出された黒データ群とを共に含む外
接矩形領域を、新たに設定された図中で点線で示
される分離枠3とする。分離枠3をさらに予め設
定されている巾だけ拡張して新たに黒データ群が
含まれなければ、分離枠3で囲まれた領域内のデ
ータ、ここでは「始」という文字を分離抽出され
たデータとして処理する。ここに示したように
「ヘン」と「ツクリ」に分れる漢字のような分離
文字が意味のある1文字単位に分離抽出可能な点
が、本方法の特長である。 Next, by tracing the outer edge of the black data group starting from the position c of the outer edge point of the detected black data group, it circumscribes the black data group, in this case, the hen ``woman'' of the character ``beginning''. A separation frame 1, which is a rectangular area indicated by a dotted line in the figure, is set. Next, the set separation frame 1 is expanded by a preset width in each side direction except for the upper side. A separation frame 2 indicated by a dashed line in the figure is an expanded separation frame. Since there is a part with a value of 1 in the expanded part, in this case a part of the ``base'' of the character ``Hajime'', the outer edge of the newly detected black data group is traced. Using the position information of the new black data group obtained as a result of tracking, a circumscribed rectangular area including both the black data group surrounded by the separation frame 1 shown by the dotted line and the newly detected black data group is created. The newly set separation frame 3 is indicated by a dotted line in the figure. If the separation frame 3 is further expanded by a preset width and no new black data group is included, the data within the area surrounded by the separation frame 3, in this case the character ``Hajime'', is separated and extracted. Process as data. As shown here, the feature of this method is that it is possible to separate and extract separated characters, such as the kanji character that is divided into "hen" and "tsukuri", into meaningful single character units.
1文字の分離が終了したので、次の図形の外縁
点を検出するためにj番目のラインの走査を継続
する。次に値が0→1に変化する位置dの点は、
j−1番目の位置dあるいは位置d−1の点のい
ずれかが値1であるので、シンボルブロツクの内
縁点であると判断される。したがつて外縁部検出
に続く以後の処理は行なわずに、2次元画像デー
タのラスタ走査を引き続き行なう。 Since the separation of one character is completed, scanning of the jth line is continued to detect the outer edge point of the next figure. Next, the point at position d where the value changes from 0 to 1 is
Since either the point at the j-1th position d or the point at position d-1 has a value of 1, it is determined that it is an inner edge point of the symbol block. Therefore, the raster scanning of the two-dimensional image data is continued without performing any subsequent processing following the detection of the outer edge.
以上に述べた操作を第1図に示すフローチヤー
ト図面全体に渡り行なうことにより、フローチヤ
ート図面中の文字を分離抽出することができる。 By performing the above-described operations over the entire flowchart shown in FIG. 1, the characters in the flowchart can be separated and extracted.
第6図は本発明である図形分離回路を図面自動
読取装置に利用した場合のブロツク図である。第
6図において、参照番号4は情報処理装置、5は
ドラムスキヤナ、6は2値化回路、7は本発明で
ある図形分離回路、8は図形認識回路である。 FIG. 6 is a block diagram when the graphic separation circuit according to the present invention is used in an automatic drawing reading device. In FIG. 6, reference number 4 is an information processing device, 5 is a drum scanner, 6 is a binarization circuit, 7 is a graphic separation circuit according to the present invention, and 8 is a graphic recognition circuit.
ドラムスキヤナ5は情報処理装置4より信号線
100を通して制御され、ドラム表面に貼付され
ている読取対象図面を走査し、得られた濃度値す
なわち多値データを信号線200を通して2値化
回路6に送る。2値化回路6は情報処理装置4よ
り信号線300を通して制御され、ドラムスキヤ
ナ5より信号線200を通して送られる多値デー
タを信号線300を通して情報処理装置4により
予め設定されている閾値で2値化し、信号線40
0を通して図形分離回路7に送る。図形分離回路
7は信号線400を通して順次送られる前期2値
データを内蔵する2値画像メモリに蓄積した後、
情報処理装置4より信号線500を通して送られ
る各種パラメータに応じて指持された幾可学的寸
法以内の図形を分離し、その2値パターンを表わ
す2次元画像データを信号線600を通して図形
認識回路8に送る。図形認識回路8は前記分離さ
れた図形の2値パターンを表わす2次元画像デー
タに対し、例えばパターンマツチング等の方法に
よりその図形の認識を行ない認識結果を信号線7
00を通して情報処理装置4に送る。 The drum scanner 5 is controlled by the information processing device 4 through a signal line 100, scans the drawing to be read attached to the drum surface, and sends the obtained density value, that is, multivalued data, to the binarization circuit 6 through the signal line 200. . The binarization circuit 6 is controlled by the information processing device 4 through a signal line 300, and binarizes the multivalued data sent from the drum scanner 5 through the signal line 200 through the signal line 300 using a threshold value preset by the information processing device 4. , signal line 40
0 to the graphic separation circuit 7. After the graphic separation circuit 7 stores the previous binary data sequentially sent through the signal line 400 in a built-in binary image memory,
Figures within specified geometric dimensions are separated according to various parameters sent from the information processing device 4 through the signal line 500, and two-dimensional image data representing the binary pattern is sent to the figure recognition circuit through the signal line 600. Send to 8. The figure recognition circuit 8 recognizes the two-dimensional image data representing the binary pattern of the separated figures by a method such as pattern matching, and sends the recognition result to the signal line 7.
00 to the information processing device 4.
第7図は本発明である図形分離回路7の主要部
のブロツク図である。第7図において参照番号7
0は制御回路、71は外縁点検出回路、72は外
縁部追跡回路、73は分離枠設定回路、74は画
像メモリ読取回路、75は分離判定回路、76は
図形切出回路、77は画像メモリである。外縁点
検出回路71は第2図の説明で述べた如く、信号
線707を通して画像メモリ77をラスタ走査し
ながら図形部に対応する黒丸群の外縁点を検出す
るよう構成されており、図形を表わす黒丸群の外
縁点を検出する毎に信号線702を通して検出し
た外縁点の位置座標を、外縁部追跡回路72に送
る。 FIG. 7 is a block diagram of the main part of the graphic separation circuit 7 according to the present invention. Reference number 7 in FIG.
0 is a control circuit, 71 is an outer edge point detection circuit, 72 is an outer edge tracking circuit, 73 is a separation frame setting circuit, 74 is an image memory reading circuit, 75 is a separation determination circuit, 76 is a figure cutting circuit, and 77 is an image memory It is. As described in the explanation of FIG. 2, the outer edge point detection circuit 71 is configured to raster scan the image memory 77 through the signal line 707 and detect the outer edge points of a group of black circles corresponding to a figure. Every time an outer edge point of a group of black circles is detected, the position coordinates of the detected outer edge point are sent to the outer edge tracking circuit 72 through a signal line 702.
外縁部追跡回路72は第3図aの説明で述べた
如く外縁点検出回路71で検出した外縁点を始点
として分離の外縁部を追跡し外縁部を構成する各
点位置情報を信号線703を通して分離枠設定回
路73へ出力する。 The outer edge tracking circuit 72 tracks the outer edge of the separation starting from the outer edge point detected by the outer edge point detection circuit 71 as described in the explanation of FIG. It is output to the separation frame setting circuit 73.
分離枠設定回路73は、第3図bの説明で述べ
た如く外縁部追跡回路72で検出された外縁部の
各点位置情報から初期分離枠を設定し、あるいは
第4図a,b,cの説明でも述べた如く画像メモ
リ読取回路74で読みとつた値を分離判定回路7
5で判定して得られる分離枠の拡張情報に基いて
分離枠を辺毎に拡張するように構成されている。
加えて分離枠設定回路73は、拡張して得た新し
い分離枠が内蔵する最大枠レジスタに予め情報処
理装置1により与えられている最大枠の寸法を越
えているか否かを判定し、越えている場合には外
縁点検出開始信号を発生して制御回路70に送る
ことにより外縁点検出回路71に対し、次の黒丸
群の外縁点の検出動作を開始させる。一方越えて
ない場合は現在の分離枠の値を信号線704を通
して画像メモリ読取回路74に送ると同時に、制
御回路70に対し画像メモリ読取開始信号を送る
ことにより画像メモリ読取回路74の画像メモリ
読取動作を開始させる。 The separation frame setting circuit 73 sets the initial separation frame from the position information of each point on the outer edge detected by the outer edge tracking circuit 72 as described in the explanation of FIG. As mentioned above, the values read by the image memory reading circuit 74 are sent to the separation judgment circuit 7.
The separation frame is configured to be expanded side by side based on the expansion information of the separation frame obtained by the determination in step 5.
In addition, the separation frame setting circuit 73 determines whether the new separation frame obtained by expansion exceeds the maximum frame size previously given by the information processing device 1 in the built-in maximum frame register, and If so, an outer edge point detection start signal is generated and sent to the control circuit 70, thereby causing the outer edge point detection circuit 71 to start detecting the outer edge point of the next group of black circles. On the other hand, if the current separation frame value is not exceeded, the value of the current separation frame is sent to the image memory reading circuit 74 through the signal line 704, and at the same time, an image memory reading start signal is sent to the control circuit 70, so that the image memory reading circuit 74 reads the image memory. Start the action.
画像メモリ読取回路74は第4図の説明で述べ
た如く、現在の分離枠の上辺を除く各辺方向に拡
張された領域内に対応する画像メモリ上の値を読
取るように構成されており、読み取つた結果を信
号線705を通して分離判定回路75に送る。 As described in the explanation of FIG. 4, the image memory reading circuit 74 is configured to read values on the image memory corresponding to areas expanded in the direction of each side of the current separation frame except for the upper side. The read result is sent to the separation determination circuit 75 through a signal line 705.
分離判定回路75は、新たに拡張された部分に
対応する画像メモリ上の値を調べ、すべての値が
0である場合は現在の分離枠の値を信号線706
を通して図形切出回路76に送ると同時に分離可
能である事を示す切出開始信号を発生し、信号線
701を通して制御回路70に送ることにより、
図形切出回路76での切出動作を開始させる。一
方、元の分離枠の上辺を除く3辺方向に拡張した
領域に、少くとも1点以上の値1の点が存在する
場合は、その値が1の領域をも含むように分離枠
を拡張するための分離枠拡張信号を発生し、制御
回路70を介して分離枠設定回路73に送る。 The separation determination circuit 75 checks the values on the image memory corresponding to the newly expanded part, and if all the values are 0, the current separation frame value is sent to the signal line 706.
At the same time, a cutting start signal indicating that separation is possible is generated and sent to the control circuit 70 through the signal line 701.
The cutting operation in the figure cutting circuit 76 is started. On the other hand, if there is at least one point with a value of 1 in the area expanded in the three side directions excluding the top edge of the original separation frame, the separation frame is expanded to include the area with the value 1 as well. A separation frame extension signal is generated and sent to the separation frame setting circuit 73 via the control circuit 70.
図形切出回路76は、信号線706より送られ
る分離枠の値を基にこの分離枠に対応する2値デ
ータを画像メモリ77から切出し制御回路70を
介して第5図の図面自動読取装置での実施例で説
明した如く、信号線600を通して図形認識回路
8に送る。 The figure cutting circuit 76 cuts out binary data corresponding to the separating frame from the image memory 77 based on the value of the separating frame sent from the signal line 706, and transmits it to the automatic drawing reading device shown in FIG. As explained in the embodiment, the signal is sent to the figure recognition circuit 8 through the signal line 600.
画像メモリ77は1図面分の2値パターンが記
憶できる容量を有し、信号線400を通して第5
図中の2値化回路6から送られる2値パターンを
記憶する。 The image memory 77 has a capacity to store a binary pattern for one drawing, and the fifth
The binary pattern sent from the binarization circuit 6 in the figure is stored.
制御回路70は以上の各回路71〜77の説明
で述べた如く、情報処理装置4との指令やデータ
の送受信と各回路71〜77を制御して図形の分
離動作を行なわしめる。 As described above in the description of each of the circuits 71 to 77, the control circuit 70 transmits and receives commands and data to and from the information processing device 4, and controls each of the circuits 71 to 77 to perform the graphic separation operation.
以上図面を用いて説明した如く、本発明により
寸法の異なる図形や記号等を混在して含む図面を
表わす2次元画像データから、指定された寸法以
内の図形や記号を分離できるために、各々の認識
方法が異なる場合に認識処理を効率よく行なうこ
とができる。 As explained above using the drawings, according to the present invention, figures and symbols within specified dimensions can be separated from two-dimensional image data representing a drawing that includes a mixture of figures and symbols of different dimensions. Recognition processing can be performed efficiently when recognition methods are different.
さらに、分離した図形や記号も、指定された距
離内に近接して存在していれば1つのまとまつた
図形や記号として切出されるために、分離・切出
後の編集処理が不要になる。さらにまた、図面作
成の際、例えば記号等を格子枠の中に書く等の制
限から解放され図面作成を融通性よく行うことが
できる。加えて本発明の図形分離回路は回路構成
が簡単であるため容易にハードウエア化でき、従
つて図形分離の高速化が実現される。 Furthermore, if separated figures and symbols exist close to each other within a specified distance, they are cut out as one unified figure or symbol, so editing processing after separation and cutout is not necessary. Furthermore, when creating drawings, it is possible to create drawings with great flexibility by being freed from restrictions such as writing symbols etc. in lattice frames. In addition, since the graphic separation circuit of the present invention has a simple circuit configuration, it can be easily implemented in hardware, thereby realizing high-speed graphic separation.
第1図は大きさの異なる図形・文字の混在する
図面の例を示す図、第2図は外縁点を検出する方
法を説明する図、第3図は検出された外縁点を基
に図形部を分離するための分離枠を得るための方
法を説明する図、第4図は近接の図形部を一緒に
分離するため分離枠を拡張する方法を説明する
図、第5図は第1図の1部を拡大した図、第6図
は本発明である図形分離回路を図面自動読取装置
に適用した実施例を示すブロツク図、第7図は本
発明の図形分離回路を具体的に示すブロツク図で
ある。
図において、1〜3……設定された分離枠、4
……情報処理装置、5……ドラムスキヤナ、6…
…2値化回路、7……図形分離回路、8……図形
認識回路、70……制御回路、71……外縁点検
出回路、72……外縁部追跡回路、73……分離
枠拡張回路、74……画像メモリ読取回路、75
……分離判定回路、76……図形切出回路、77
……画像メモリを示す。
Figure 1 is a diagram showing an example of a drawing in which shapes and characters of different sizes coexist, Figure 2 is a diagram explaining a method for detecting outer edge points, and Figure 3 is a diagram showing how to detect a figure based on the detected outer edge points. FIG. 4 is a diagram explaining a method of expanding the separation frame to separate adjacent graphic parts together. FIG. FIG. 6 is a block diagram showing an embodiment in which the figure separating circuit of the present invention is applied to an automatic drawing reading device, and FIG. 7 is a block diagram specifically showing the figure separating circuit of the present invention. It is. In the figure, 1 to 3... set separation frame, 4
...Information processing device, 5...Drum scanner, 6...
...binarization circuit, 7...figure separation circuit, 8...figure recognition circuit, 70...control circuit, 71...outer edge point detection circuit, 72...outer edge tracking circuit, 73...separation frame expansion circuit, 74... Image memory reading circuit, 75
... Separation judgment circuit, 76 ... Figure cutting circuit, 77
...Indicates image memory.
Claims (1)
から、指定された距離以下に近接して存在する指
定された寸法以下の図形部分に対応する画像デー
タを分離抽出する回路において、前記2次元画像
データを記憶保持するための画像メモリと、外縁
点検出開始信号を受けて該画像メモリに対しラス
タ走査を行ないながら前記図形部分の外縁点を検
出する外縁点検出回路と、前記外縁点検出回路で
得た外縁点から隣接した外縁点を順次検出しなが
ら図形部分の外縁部を追跡する図形外縁部追跡回
路と、前記図形外縁部追跡回路で得た図形領域に
外接する矩形領域であるところの分離枠を設定も
しくは後記分離判定回路で得た分離枠の拡張情報
に基づいて分離枠を辺毎に拡張して新しい分離枠
を設定し該分離枠と予め外部情報処理装置とで設
定されている分離図形の最大枠とも比較し前記分
離枠が該最大枠を越えている場合には再び外縁点
検出開始信号を、越えていない場合には画像メモ
リ読み出し開始信号を発生する分離枠設定回路
と、前記画像メモリ読み出し開始信号を受けて前
記分離枠の上辺を除く各辺を拡張した点に対応す
る画像メモリの値を順次読みとる画像メモリ読み
取り回路と、該画像メモリ読み取り回路で得られ
た信号の値に基づいて図形の分離が可能か否かを
判定し分離が可能であれば切出開始信号を、分離
が不可能であれば分離枠の各辺毎の拡張情報を出
力する分離判定回路と、前記切出開始信号を受け
て現在の分離枠内に含まれる図形部分をその外接
矩形領域で切出す図形切出回路と、前記画像メモ
リとのデータの読み出し、書込み、外部情報処理
装置とのインタフエース動作および前記各回路を
制御し外縁点検出開始信号等の図形分離動作を行
なわしめる信号を発生する制御回路とを具備して
なる図形分離回路。1. In a circuit that separates and extracts image data corresponding to a graphic part of a specified size or less that is located close to a specified distance or less from two-dimensional image data obtained by scanning a drawing, etc., the two-dimensional image an image memory for storing and holding data; an outer edge point detection circuit that receives an outer edge point detection start signal and detects outer edge points of the graphic portion while raster scanning the image memory; and the outer edge point detection circuit. A figure outer edge tracking circuit that tracks the outer edge of a figure part while successively detecting adjacent outer edge points from the obtained outer edge point, and separation of a rectangular area circumscribing the figure area obtained by the figure outer edge tracking circuit. A new separation frame is set by setting a frame or extending the separation frame side by side based on the extension information of the separation frame obtained by the separation determination circuit described later, and the separation set in advance between the separation frame and the external information processing device is performed. a separation frame setting circuit that compares the separation frame with the maximum frame of the figure and generates an outer edge point detection start signal again if the separation frame exceeds the maximum frame, and generates an image memory read start signal if the separation frame does not exceed the maximum frame; an image memory reading circuit that receives an image memory reading start signal and sequentially reads values in the image memory corresponding to points obtained by expanding each side of the separation frame except for the upper side; and a value of the signal obtained by the image memory reading circuit. a separation determination circuit that determines whether or not the figures can be separated based on the separation frame, and outputs a cutting start signal if separation is possible, and outputs extended information for each side of the separation frame if separation is not possible; A figure cutout circuit that receives a cutout start signal and cuts out a figure portion included in the current separation frame in its circumscribed rectangular area, reads and writes data to and from the image memory, and interfaces with an external information processing device. A figure separating circuit comprising: a control circuit for controlling the operation and each of the circuits and generating a signal such as an outer edge point detection start signal for performing a figure separating operation.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP56163083A JPS5864576A (en) | 1981-10-13 | 1981-10-13 | Graph separating circuit |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP56163083A JPS5864576A (en) | 1981-10-13 | 1981-10-13 | Graph separating circuit |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS5864576A JPS5864576A (en) | 1983-04-16 |
| JPH0119190B2 true JPH0119190B2 (en) | 1989-04-10 |
Family
ID=15766853
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP56163083A Granted JPS5864576A (en) | 1981-10-13 | 1981-10-13 | Graph separating circuit |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS5864576A (en) |
-
1981
- 1981-10-13 JP JP56163083A patent/JPS5864576A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS5864576A (en) | 1983-04-16 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP2812982B2 (en) | Table recognition method | |
| JP4704601B2 (en) | Character recognition method, program, and recording medium | |
| JPH0119190B2 (en) | ||
| JP2890306B2 (en) | Table space separation apparatus and table space separation method | |
| JP2868134B2 (en) | Image processing method and apparatus | |
| JPS58197581A (en) | Method and device for recognizing character and figure | |
| US5073957A (en) | Graphic editing system | |
| JP2846486B2 (en) | Image input device | |
| JP3422634B2 (en) | Handwritten character recognition method and apparatus | |
| JP2957729B2 (en) | Line direction determination device | |
| JPH0713994A (en) | Character recognition device | |
| JP2755299B2 (en) | Image processing method | |
| JP3052438B2 (en) | Table recognition device | |
| JP2803736B2 (en) | Character recognition method | |
| JP2968284B2 (en) | Character recognition apparatus and character area separation method | |
| JP2009259291A (en) | Character recognition method, program and recording medium | |
| JP2991761B2 (en) | Line segmentation method | |
| JP3077929B2 (en) | Character extraction method | |
| JPH0573725A (en) | Handwritten character / figure recognition device | |
| JPH09114925A (en) | Optical character reader | |
| JP2762476B2 (en) | Copy-writing device | |
| JP2539026B2 (en) | Character extraction device | |
| JPH0721816B2 (en) | Character image extraction processor | |
| JPS61196382A (en) | Character segmenting system | |
| JPS6214263A (en) | Document image processing method |