JPS63141190A - Method for extracting isolated drawing - Google Patents

Method for extracting isolated drawing

Info

Publication number
JPS63141190A
JPS63141190A JP61286725A JP28672586A JPS63141190A JP S63141190 A JPS63141190 A JP S63141190A JP 61286725 A JP61286725 A JP 61286725A JP 28672586 A JP28672586 A JP 28672586A JP S63141190 A JPS63141190 A JP S63141190A
Authority
JP
Japan
Prior art keywords
operator
isolated
frame
value
latch
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.)
Pending
Application number
JP61286725A
Other languages
Japanese (ja)
Inventor
Masayo Oka
岡 昌世
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.)
Ikegami Tsushinki Co Ltd
Original Assignee
Ikegami Tsushinki 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 Ikegami Tsushinki Co Ltd filed Critical Ikegami Tsushinki Co Ltd
Priority to JP61286725A priority Critical patent/JPS63141190A/en
Publication of JPS63141190A publication Critical patent/JPS63141190A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Analysis (AREA)

Abstract

PURPOSE:To execute a processing at high speed by using an operator including an isolated drawing and executing the scanning. CONSTITUTION:In a longitudinal direction by latches 11, 12 and 13 of the number equal to the number of picture elements of the longitudinal direction of an operator, the data for one picture element are read from a frame memory, for the part of an intermediate 12, OR is obtained by an OR gate 14 and the part is added to a latch 15 together with the 11 and 13. The output of the latch 15 is successively added to a latch 16, a register 17 and latches 18 and 19, and the output of the latches 15, 16, 18 and 19 and shows the upper part, intermediate part and lower part values respectively at the time of t+1, t, t-u-1 and t-u. The number of steps between latches 15-19 shows the number of the picture elements in the lateral direction of the operator. Respective outputs of the latches 15-19 are added to an arithmetic circuit 20, further, the value Qt of a frame at the time of (t) is added from an 8-bit register 21 and the value Qt+1 of the frame at the time of t+1 is obtained.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、図面の自動読取りにおける孤立図形(文字及
び孤立している記号)を他の連続している線・記号から
分離して抽出する方法に関するものである。
[Detailed Description of the Invention] (Industrial Application Field) The present invention extracts isolated figures (characters and isolated symbols) by separating them from other continuous lines and symbols in automatic reading of drawings. It is about the method.

(従来の技術) 最近、CAD又は図面の自動清書等の分野において、図
面を自動的に読取り、このデータをいろいろと加工して
所要の結果を得ることが行われている。現在のところ、
自動的に読取ることのできる図面は、限定された約束に
よって書かれ、背景が0で記録部分が1の2値画面に限
られている。
(Prior Art) Recently, in the field of CAD or automatic drafting of drawings, drawings are automatically read and this data is processed in various ways to obtain desired results. at present,
Drawings that can be automatically read are written with limited conventions and are limited to binary screens with a background of 0 and recorded portions of 1.

このようにして書かれた2値図面を自動的に読取り、更
に線と文字又は記号と分離するには、図面を3行3列の
オペレータによって走査し、1の画素があるとその画素
を起点として伝播処理を行ってその連結成分を確定して
ラベルを付け、次々とこの操作を繰返してすべての連結
成分にラベルを付けた上、それぞれの連結成分の性質を
調べることによって行うのが一般的である。ここに連結
成分とは連続した境界線で囲まれた領域をいい、伝播処
理とは始めに1になり、ある値のラベルを付けた上記3
行3列のオペレータの中心画素に対し、他の8個の画素
で同じく1をとる画素に中心を移して同じラベルを付け
、次々とこの操作を繰返すことをいう。
In order to automatically read a binary drawing written in this way and further separate lines from characters or symbols, the drawing is scanned by an operator in 3 rows and 3 columns, and if a pixel of 1 is found, that pixel is used as the starting point. Generally, this is done by performing propagation processing as , determining and labeling the connected components, repeating this operation one after another to label all connected components, and then examining the properties of each connected component. It is. Here, a connected component refers to an area surrounded by continuous border lines, and the propagation process refers to a region surrounded by continuous boundaries, and the propagation process is a component that initially becomes 1 and is labeled with a certain value.
This refers to moving the center to the center pixel of the operator in row 3 and column 3 to a pixel that also takes 1 in the other 8 pixels, giving the same label, and repeating this operation one after another.

上記のラベリングの方法には、第1の連結成分を確定し
た後この連結成分を図面から除去し、残りの図面につい
て同様な操作を行って第2の連結成分を確定し、この操
作を繰返して全ての連結成分を確定するのが一般的であ
る。この方法によるときは処理時間がかかり過ぎるので
、出願人は特願昭61−140285号「高速ラベリン
グ」において、数回の走査によってラベリングを完了す
ることのできる方法を開示している。
The above labeling method involves determining the first connected component, removing this connected component from the drawing, performing the same operation on the remaining drawings to determine the second connected component, and repeating this operation. It is common to determine all connected components. Since this method takes too much processing time, the applicant has disclosed in Japanese Patent Application No. 61-140285 "High Speed Labeling" a method that can complete labeling with several scans.

(発明が解決しようとする問題点) 前項において述べたような方法によって図形を読取ると
きは、一つ一つの連結成分について伝播処理を行うので
処理時間を多く要し、文字及び記号の認識はラベリング
終了後において行うのであるから、処理時間は更に長く
なる欠点がある。出願人の提案した高速ラベリングによ
れば走査回数は減少することができるが、伝播処理を行
うことは同じなので処理時間の減少には限度がある。次
に連結成分が多数に上るときは、その区別に必要な多値
メモリーが必要になる問題がある。例えば、連結成分の
数が100程度であれば6ビツトのメモリーでよいが、
1000程度になれば10ビツトのメモリーが必要にな
る。更に、それぞれの連結成分を記憶する必要があるの
で、必要なメモリー容量は極めて多くなり、装置のコス
トアップは免れない。
(Problems to be Solved by the Invention) When reading figures using the method described in the previous section, propagation processing is performed for each connected component, which requires a lot of processing time, and recognition of characters and symbols requires labeling. Since it is carried out after the completion of the process, there is a disadvantage that the processing time becomes even longer. Although the high-speed labeling proposed by the applicant can reduce the number of scans, there is a limit to the reduction in processing time since the propagation process remains the same. Next, when there are a large number of connected components, there is a problem in that a multi-valued memory is required to distinguish between them. For example, if the number of connected components is about 100, 6-bit memory is sufficient, but
If the number is around 1000, 10-bit memory will be required. Furthermore, since it is necessary to store each connected component, the required memory capacity becomes extremely large, which inevitably increases the cost of the device.

本発明の目的は上述した不具合を解消して、孤立図形の
抽出を1回の走査によって直接に行い、極めて短時間に
処理を完了することができる方法を提供しようとするも
のである。
SUMMARY OF THE INVENTION An object of the present invention is to provide a method that can solve the above-mentioned problems and directly extract isolated figures by one scan, thereby completing the process in an extremely short time.

本発明の他の目的は、メモリーのビット数が1ビツトで
済むとともに、使用するメモリーの容量が少なくて済む
方法を提供しようとするものである。
Another object of the present invention is to provide a method in which the number of memory bits is only 1 bit and the capacity of the memory used is small.

(問題点を解決するための手段) 本発明の孤立図の抽出方法は、孤立図の大きさよりやや
大きいオペレータによって図面を走査し、該オペレータ
の枠の部分の画素の合計が背景の値に等しく、前記オペ
レータ内部の部分の画素の合計が前記背景の値と異なる
とき、オペレータの内部にある図形を孤立図と判定する
ことを特徴とするものである。
(Means for Solving the Problems) The isolated figure extraction method of the present invention scans the drawing with an operator whose size is slightly larger than the size of the isolated figure, and the sum of pixels in the frame of the operator is equal to the background value. , when the sum of pixels in the portion inside the operator is different from the value of the background, the figure inside the operator is determined to be an isolated figure.

(作 用) 図形は線・文字及び記号の集合体であるが、文字は必ず
孤立しており、記号には孤立しているものと孤立してい
ないものがある。又、両者とも大きさに限度があるのが
特徴である。これに比べ、線は必ず連続しており長い。
(Function) A figure is a collection of lines, characters, and symbols, but characters are always isolated, and some symbols are isolated and some are not. Also, both have a size limit. In comparison, lines are always continuous and long.

本発明は、この一般的な図形の性質を利用して孤立図形
の抽出を行うものである。それには、文字又は記号を含
む適当な大きさのオペレータを作り、このオペレータに
よって図形を走査し、背景の値が0の2値画像の場合オ
ペレータの枠上の画素はすべてOで枠の内部に1の部分
があるときはこの1の部分は孤立しており文字又は記号
であるからこれを抽出するものである。
The present invention extracts isolated figures by utilizing the properties of these general figures. To do this, create an operator of an appropriate size that includes characters or symbols, scan the figure with this operator, and if the background value is a binary image with a value of 0, all pixels on the operator's frame will be O and will be inside the frame. When there is a 1 part, this 1 part is isolated and is a character or symbol, so it is extracted.

このオペレータによって孤立図形を抽出するには、図形
は一定の約束によって書かれていることが必要であり、
本発明においては、■文字の太きさは所定の大きさく実
施例の場合は30〜20mm)以下であること、■用紙
の端部には書かないこと(3nua以下は無効)、■文
字は他の文字・記号又は線に接触してないこと、の3つ
を制限事項としている。オペレータは正方形のものが一
般的であるが、孤立図の形によっては縦又は横の長四角
であってもよく、更に他の形状であってもよい。抽出し
た図形は、そのアドレスをスタックメモリーに書き込ん
だ上消去し、残りの図形について同様な走査を行い次の
孤立図を抽出する。以下同様な操作を繰返して全孤立図
のアドレスを確定する。
In order to extract isolated shapes using this operator, the shapes must be written according to a certain convention,
In the present invention, ■ the thickness of the characters must be less than a predetermined size (30 to 20 mm in the case of the example), ■ they must not be written on the edge of the paper (those below 3 nua are invalid), and ■ the characters must be There are three restrictions: it must not touch other characters, symbols, or lines. The operator is generally square, but depending on the shape of the isolated figure, it may be a vertical or horizontal rectangle, or may have other shapes. The extracted figure is erased by writing its address into the stack memory, and the remaining figures are scanned in the same manner to extract the next isolated figure. Thereafter, similar operations are repeated to determine the addresses of all isolated diagrams.

抽出した孤立図形は文字パターンと比較してそれぞれの
文字を認識し、文字と認識されなかったものは記号とす
る。文字認識は公知の方法によればよい。
The extracted isolated figures are compared with character patterns to recognize each character, and those that are not recognized as characters are treated as symbols. Character recognition may be performed using a known method.

上述した孤立図の抽出はソフトウェアのみによって行う
こともできるが、線や文字・記号が密集した図形にあっ
ては時間がかかり処理速度が遅れて好ましくないので、
実施例においてはハードウェアによって構成した。
The above-mentioned extraction of isolated figures can be performed only by software, but it is undesirable for figures with dense lines, characters, and symbols because it takes time and slows down the processing speed.
In the embodiment, it is configured by hardware.

(実施例) 以下実施例につき、図面を用いて詳細に説明する。(Example) Examples will be described in detail below with reference to the drawings.

入力図形のデータ入力は、図形の細かさと大きさによっ
て、それに見合った解像度と走査範囲の撮像装置を選択
する必要がある。本発明の実施例においては、走査線の
画素数2000、走査線数3000の高解像度の撮像装
置を用いて図形を入力している。この装置によれば、A
4版(210X 297mm)の図面の場合有効範囲を
90%とすれば横方向の解像度は1mm当たり約io本
となり、A3版(297X 420mm )の場合は約
7.5本となるので、通常の図形認識に必要な解像度を
持っている。このため、A3版までは1回の走査によっ
てデータを入力することができる。A2版以上の図面の
場合は分割して撮像すればよい。
When inputting data of an input figure, it is necessary to select an imaging device with a resolution and scanning range commensurate with the fineness and size of the figure. In the embodiment of the present invention, graphics are input using a high-resolution imaging device with 2000 pixels per scan line and 3000 scan lines. According to this device, A
In the case of a 4th edition (210 x 297 mm) drawing, if the effective range is 90%, the horizontal resolution will be approximately io lines per 1 mm, and in the case of an A3 edition (297 x 420 mm), it will be approximately 7.5 lines, so the normal It has the resolution necessary for shape recognition. Therefore, data can be input by one scan for up to A3 size. In the case of a drawing of A2 size or larger, the image may be captured in parts.

入力されたデータはフレームメモリーに格納され、孤立
図の抽出はこのフレームメモリーからデータを読出して
行う。孤立図の抽出は適当な画素数を有する正方形のオ
ペレータを用い走査を行っている。オペレータの大きさ
は、図形の細かさによって異なり、A4版の図面の場合
30X30.25X25、20X20の3種、A3版の
場合20X20.18X18゜14 X 14のご種を
使用している。ここで同一の図面で3種のオペレータを
使用するのは、線・文字・記号の配置によっては1種の
オペレータだけでは孤立図の分離が困難な場合があるた
めであるが、図形の大きさが予めわかっているときは最
適な大きさのオペレータを1種選んでそのオペレータの
みを使用することもできる。又、A3版のオペレータを
小さく選んであるのは、図形を同じ大きさに書いである
ときは、各図形光たりの画素数が少なくなるためである
。第1図はオペレータによる走査の状況を概念的に図示
したもので、オペレータによって横方向の走査を行うと
共に、オペレータが画像の右端に達した後、縦方向に1
走査線ずつ送る。オペレータの位置は左上角の座標によ
って表す。オペレータaは(m、n)の位置にあり、オ
ペレータbは1走査線送られた(m’、n+1)の位置
にあることを表す。
The input data is stored in a frame memory, and the isolated figure is extracted by reading the data from this frame memory. To extract an isolated figure, scanning is performed using a square operator having an appropriate number of pixels. The size of the operator varies depending on the fineness of the figure, and for A4 size drawings, three sizes are used: 30x30.25x25 and 20x20, and for A3 size, 20x20.18x18°14x14. The reason why three types of operators are used in the same drawing is that it may be difficult to separate isolated drawings with just one type of operator depending on the arrangement of lines, characters, and symbols, but the size of the figure When it is known in advance, it is also possible to select one type of operator with the optimal size and use only that operator. Moreover, the reason why the operator for the A3 size is chosen to be small is that when the figures are drawn in the same size, the number of pixels for each figure light decreases. Figure 1 conceptually illustrates the scanning situation by the operator, in which the operator scans in the horizontal direction, and after the operator reaches the right edge of the image, moves one step in the vertical direction.
Send one scan line at a time. The operator's position is represented by the coordinates of the upper left corner. Operator a is located at position (m, n), and operator b is located at position (m', n+1), which has been moved by one scanning line.

第2図(A) 、 (B)はオペレータによる孤立図検
出のアルゴリズムを説明するための図である。tの時点
における第2図(A)において、オペレータの右端の上
部1、下部2及びその中間3のとる値をそれぞれAt 
、BL 、Ctとする。ここに01はAt、Btを除く
縦線上の画素値のオア値で、At、Bt、C,、は2値
画像の場合何れも1又はOの値をとる。右端と左端のと
る時間間隔をUとすれば、左端4,5.6のとる値はそ
れぞれAt−、。
FIGS. 2A and 2B are diagrams for explaining an algorithm for detecting isolated figures by an operator. In FIG. 2(A) at time t, the values taken by the upper part 1, the lower part 2, and the middle part 3 at the right end of the operator are respectively At
, BL, and Ct. Here, 01 is the OR value of the pixel values on the vertical line excluding At and Bt, and At, Bt, C, . . . all take the value of 1 or O in the case of a binary image. If the time interval between the right end and the left end is U, the values taken by the left end 4 and 5.6 are At-, respectively.

B、−1+  Ct−uとなる。tより1画素分経過し
た(t + 1)の時点における第2図(B)において
は、右端の値?、8.9はそれぞれAいI+BいI+C
い1、左端の中間10の値はCL−u+1’となる。を
及び(t+1)の時点における枠の値をそれぞれQ、、
Qい4、枠の内部の値をRL I RL*1 とすれば
、(t + 1)の時点における枠の部分はtの時点に
おける値に、7.8.9と10の部分が新たに加わり、
4,5゜6と3の部分が差し引かれる。枠の内部の部分
は3が加わり10が差し引かれる。これを式で表示すれ
ば、 QL−1= Qt   (At−u  + Bt−8”
Ct−u)+  (Aい、+Bい、+Cい、) ” CL−a+I   Ct’−−−−・−・・−・・
 (1)Rt−+  = Rc  −Ct、、□u+I
  +C(、・−・・−・−・・ (2)となる。
B, -1+Ct-u. In FIG. 2 (B) at the time (t + 1), one pixel after t, the rightmost value ? , 8.9 are A I + B I + C respectively.
1, and the value of the leftmost middle 10 is CL-u+1'. and the value of the frame at time (t+1) as Q, respectively.
Q4. If the value inside the frame is RL I RL*1, the part of the frame at time (t + 1) is the value at time t, and the parts 7.8.9 and 10 are newly added. join,
4,5°6 and 3 are subtracted. For the part inside the frame, 3 is added and 10 is subtracted. Expressing this as a formula, QL-1=Qt (At-u + Bt-8"
Ct-u)+ (A, +B, +C,) ” CL-a+I Ct'−−−−・−・・−・・
(1) Rt-+ = Rc-Ct, □u+I
+C(,・−・・−・−・・(2).

第3図は孤立図抽出回路の動作を示すブロック図で、フ
レームメモリーからオペレータの縦方向の画素数と等し
い数のラッチ11.12.13によって縦方向に1画素
分のデータを読出し、中間の12の部分はオアゲート1
4によってオアをとり、11.13とともにラッチ15
に加える。このようにしてオペレータによる走査を行う
。11の出力をA、13の出力をB、12の出力をCと
する。ラッチ15の出力は、ラッチ16.レジスタ17
.  ラッチ18.19に次々に加えられるが、ラッチ
15.16.18.19に出力はそれぞれt+l、  
t、  t−u+l、  t−uの時点における上部、
中間、下部の値を示す。ランチ15〜19間のステップ
数はオペレータの横方向の画素数を示す。ラッチ15の
出力はそれぞれAいl +  Bt、I+Ct1、sラ
ッチ16のC出力はCt%ラフチ18の出力はCL−u
+I 、ラッチ19の出力はそれぞれAt−11+Bt
−u+ct−uであるから、これらの出力を図のように
演算回路20に加え、更に8ビツトレジスタ21によっ
てQ、を加えれば出力に(11弐のQい、を得ることが
できる。このQt、、は、レジスタ21に帰還され次の
画素の演算においてはQtとしてカウンタ21に加えら
れる。上記の動作と同様にして、ラッチ16.18の出
力と8ビツトレレスタ24の出力を演算回路23に加え
ることにより、(2)式のRい。
FIG. 3 is a block diagram showing the operation of the isolated figure extraction circuit. Data for one pixel is read in the vertical direction from the frame memory by latches 11, 12, and 13, the number of which is equal to the number of pixels in the vertical direction of the operator. 12 part is or gate 1
Take or by 4 and latch 15 with 11.13
Add to. In this manner, scanning is performed by the operator. Let the output of No. 11 be A, the output of No. 13 be B, and the output of No. 12 be C. The output of latch 15 is the output of latch 16. register 17
.. The outputs are applied to latches 18.19 one after another, but the outputs to latches 15.16.18.19 are t+l and t+l, respectively.
t, tu+l, the upper part at the time of tu,
Indicates the middle and lower values. The number of steps between launches 15 to 19 indicates the number of pixels in the horizontal direction of the operator. The output of the latch 15 is A1+Bt, I+Ct1, s The C output of the latch 16 is Ct%, and the output of the latch 18 is CL-u.
+I, and the output of latch 19 is At-11+Bt, respectively.
-u+ct-u, so if we add these outputs to the arithmetic circuit 20 as shown in the figure and then add Q using the 8-bit register 21, we can obtain the output (112 Q).This Qt , , are fed back to the register 21 and added to the counter 21 as Qt in the calculation of the next pixel.Same as the above operation, the output of the latch 16.18 and the output of the 8-bit register 24 are added to the calculation circuit 23. By doing so, R in equation (2).

を得ることができる。上記の回路において、初期値とし
てオペレータの幅の分だけO値を加えている。Qい、及
びkIはコンパレータ22.25によって背景の値0と
比較し、コンパレータ22の出力はOすなわち枠の値が
O、コンパレータ25の出力は0でないときすなわち枠
の内部が1以上の値をとるとき、すなわち枠内に孤立図
があるときアンドゲート26に出力が出る。前述した通
り、それぞれの大きさの用紙に対し3種のオペレータを
使うが、これらのオペレータはラッチ12及びレジスタ
17のエレメント数を変えて作成し、それぞれ孤立図の
抽出を行う。上記の回路は一つの実施例であって、同一
の機能を有する回路は外にいろいろ作成できることはい
うまでもない。
can be obtained. In the above circuit, an O value corresponding to the width of the operator is added as an initial value. Qi and kI are compared with the background value 0 by comparators 22 and 25, and the output of the comparator 22 is O, that is, the value of the frame is O, and the output of the comparator 25 is when it is not 0, that is, the inside of the frame is a value of 1 or more. In other words, when there is an isolated figure within the frame, an output is output to the AND gate 26. As described above, three types of operators are used for each size of paper, and these operators are created by changing the number of elements of the latch 12 and register 17, and each extracts an isolated figure. The above circuit is one example, and it goes without saying that various circuits having the same function can be created.

第4図は総合的なブロック図、第5図はこのブロック図
の動作を示すフローチャートである。孤立図の抽出は、
まずフレームメモリー31から前述した孤立図抽出回路
32にデータを読込み、孤立図を抽出したときはオペレ
ータのアドレスとして左上角のアドレスをアドレススタ
ックRAM33に書込み、孤立図消去回路34によって
抽出した孤立図を消去し、その部分を飛び越えた所から
オペレータによる走査を続ける。走査線の端を検出する
と、走査線を1本送って同様なオペレータによる走査を
続け、画面の最終アドレスを見出すと終了となる。各部
回路の制御はすべてCPU35によって行う。
FIG. 4 is a general block diagram, and FIG. 5 is a flowchart showing the operation of this block diagram. To extract an isolated figure,
First, data is read from the frame memory 31 into the isolated diagram extraction circuit 32 mentioned above, and when an isolated diagram is extracted, the address in the upper left corner is written to the address stack RAM 33 as the operator's address, and the isolated diagram extracted by the isolated diagram deletion circuit 34 is written. The operator continues scanning from the point where the area is erased. When the end of the scan line is detected, the process advances one scan line and continues scanning by the same operator, ending when the final address of the screen is found. All circuits are controlled by the CPU 35.

このようにして孤立図形の位置を検出した後、それぞれ
の孤立図形につき、文字であるか記号であるかを検出し
、文字でないものは記号とする。
After detecting the position of the isolated figure in this way, it is detected whether each isolated figure is a character or a symbol, and non-characters are treated as symbols.

この場合、文字認識は公知の方法を使用すればよい。In this case, a known method may be used for character recognition.

(発明の効果) 以上説明したように、本発明においては孤立図を包含す
る好ましくは四角のオペレータを使用し、ハード回路に
よって走査するので、従来の伝播処理による方法に比べ
極めて高速に孤立図を抽出することができる。高速化の
程度は図面の内容によって異なるが、1/2〜1/10
0の高速化が可能となる。
(Effects of the Invention) As explained above, in the present invention, a preferably rectangular operator that includes an isolated figure is used, and scanning is performed by a hard circuit, so that an isolated figure can be produced at an extremely high speed compared to the conventional method using propagation processing. can be extracted. The degree of speedup varies depending on the content of the drawing, but it is 1/2 to 1/10
0 speedup is possible.

又、従来は連結成分の数が多いときはビット数の多いメ
モリーを必要とし、連結成分をそのまま記憶するため大
きな容量のメモリーを必要としたが、本発明においては
孤立図のアドレスを記憶するだけでよいので、歩容量の
2値メモリーがあればよく、メモリー容量は約1710
程度ですむ。
Furthermore, in the past, when there were a large number of connected components, a memory with a large number of bits was required, and a memory with a large capacity was required to store the connected components as they were, but in the present invention, only the addresses of isolated diagrams are stored. Therefore, all you need is a binary memory of walking distance, and the memory capacity is approximately 1710.
It's only a matter of degree.

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

第1図はオペレータによる走査の状況を示す説明図、 第2図はオペレータによる孤立図検出のアルゴリズムを
説明するための図、 第3図は孤立図抽出回路のブロック図、第4図は総合的
なブロック図、 第5図はこのブロック図の動作を示すフローチャートで
ある。 1.7・・・オペレータの右端上部 2.9・・・オペレータの右端下部 3.8・・・オペレータの右端中間 4・・・オペレータの左端上部 5・・・オペレータの左端下部 6.10・・・オペレータの左端中間 11・・・入力ラッチの上部 12・・・入力ラッチの中間 13・・・入力ラッチの下部 14・・・オアゲート15.18.19・・・ラッチ1
7・・・レジスタ      20.23・・・演算回
路21、24・・・8ビツトレジスタ 22、25・・・コンパレータ 26・・・アンドゲー
ト31・・・フレームメモリー 32・・・孤立図抽出
回路33・・・アドレススタックRAM 34・・・孤立図消去回路  35・・・CPU第3図 Ktチf <       悶
Figure 1 is an explanatory diagram showing the scanning situation by the operator, Figure 2 is a diagram to explain the algorithm for isolated figure detection by the operator, Figure 3 is a block diagram of the isolated figure extraction circuit, and Figure 4 is a comprehensive diagram. FIG. 5 is a flowchart showing the operation of this block diagram. 1.7... Upper right end of the operator 2.9... Lower right end of the operator 3.8... Middle right end of the operator 4... Upper left end of the operator 5... Lower left end of the operator 6.10. ... left end middle 11 of the operator ... upper part of the input latch 12 ... middle of the input latch 13 ... lower part of the input latch 14 ... OR gate 15.18.19 ... latch 1
7...Register 20.23...Arithmetic circuit 21, 24...8-bit register 22, 25...Comparator 26...And gate 31...Frame memory 32...Isolated figure extraction circuit 33 ... Address stack RAM 34 ... Isolated diagram erase circuit 35 ... CPU Figure 3 Ktchif < Agony

Claims (1)

【特許請求の範囲】 1、孤立図の大きさよりやや大きいオペレータによって
図面を走査し、該オペレータの枠の部分の画素の合計が
背景の値に等しく、前記オペレータ内部の部分の画素の
合計が前記背景の値と異なるとき、オペレータの内部に
ある図形を孤立図と判定することを特徴とする孤立図の
抽出方法。 2、2値画面を正方形のオペレータによって走査するよ
うにした特許請求の範囲第1項記載の孤立図の抽出方法
。 3、正方形オペレータの縦線上端の画素データA、下端
の画素データB及びその中間の画素データのオア値Cを
検出する工程と、1画素を送る時間を単位として測った
時間t及び (t−u)(uはオペレータの幅だけ送るに要する時間
)における上記のc値(C_t、C_t_−_1)を検
出する工程と、時間(t+1)及び(t−u+1)にお
けるA、B及びC値(A_t_+_1、B_t_+_1
、C_t_+_1;A_t_−_u_+_1、B_t_
−_u_+_1、C_t_−_u_+_1)を算出する
工程と、時間t及びt+1における上記オペレータの枠
の値をQ_t、Q_t_+_1、内部の値をR_t、R
_t_+_1とするとき、前記各データより下記(1)
式及び(2)式によりQ_t_+_1及びR_t_+_
1を算出する工程と、 Q_t_+_1=Q_t−(A_t_−_u+B_t_
−_u+C_t_−_u)+(A_t_+_1+B_t
_+_1+C_t_+_1)+C_t_−_u_+_1
−C_t………(1)R_t_+_1=R_t−C_t
_−_u_+_1………(2)前記演算結果よりQ_t
_+_1が背景の値0と一致しR_t_+_1が0と一
致しないことを出力する工程とから構成される特許請求
の範囲第2項記載の孤立図の抽出方法。
[Claims] 1. The drawing is scanned by an operator whose size is slightly larger than the size of the isolated drawing, and the sum of the pixels in the part of the frame of the operator is equal to the background value, and the sum of the pixels in the part inside the operator is An isolated figure extraction method characterized in that a figure inside an operator is determined to be an isolated figure when it differs from a background value. 2. A method for extracting an isolated figure according to claim 1, wherein a binary screen is scanned by a square operator. 3. Detecting the OR value C of pixel data A at the top end of the vertical line of the square operator, pixel data B at the bottom end, and pixel data in between, and the time t and (t- u) Detecting the above c values (C_t, C_t_-_1) at (u is the time required to feed the width of the operator) and the A, B and C values at times (t+1) and (t-u+1) ( A_t_+_1, B_t_+_1
, C_t_+_1; A_t_-_u_+_1, B_t_
-_u_+_1, C_t_-_u_+_1), and the values of the operator's frame at times t and t+1 are Q_t, Q_t_+_1, and the internal values are R_t, R
When _t_+_1, the following (1) is obtained from each of the above data.
Q_t_+_1 and R_t_+_ by equation and equation (2)
1, and Q_t_+_1=Q_t-(A_t_-_u+B_t_
-_u+C_t_-_u)+(A_t_+_1+B_t
_+_1+C_t_+_1)+C_t_−_u_+_1
−C_t……(1) R_t_+_1=R_t−C_t
____u_+_1……(2) From the above calculation result, Q_t
3. The isolated diagram extraction method according to claim 2, comprising the step of outputting that _+_1 matches the background value 0 and R_t_+_1 does not match 0.
JP61286725A 1986-12-03 1986-12-03 Method for extracting isolated drawing Pending JPS63141190A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61286725A JPS63141190A (en) 1986-12-03 1986-12-03 Method for extracting isolated drawing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61286725A JPS63141190A (en) 1986-12-03 1986-12-03 Method for extracting isolated drawing

Publications (1)

Publication Number Publication Date
JPS63141190A true JPS63141190A (en) 1988-06-13

Family

ID=17708205

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61286725A Pending JPS63141190A (en) 1986-12-03 1986-12-03 Method for extracting isolated drawing

Country Status (1)

Country Link
JP (1) JPS63141190A (en)

Similar Documents

Publication Publication Date Title
JP2940936B2 (en) Tablespace identification method
US5048109A (en) Detection of highlighted regions
US5272764A (en) Detection of highlighted regions
JPH0315793B2 (en)
JPS6357831B2 (en)
JP3887843B2 (en) Method and apparatus for detecting and correcting vertical and horizontal lines of digitized image
JPS63141190A (en) Method for extracting isolated drawing
JP2002342710A (en) Character segmenting device and character segmenting method used for the same device and its program
JPS5941230B2 (en) Contour extraction method
JPH04255080A (en) Image input device
JP2800192B2 (en) High-speed character / graphic separation device
JP2785269B2 (en) Noise removal device
JPS6239459B2 (en)
JP2507949B2 (en) Character / graphic area determination device
JPH04156691A (en) Image area extracting method
JP2966448B2 (en) Image processing device
JPH02166583A (en) Character recognizing device
JPH0816921B2 (en) Figure separation device
JP3923104B2 (en) Table processing method and table processing apparatus
JPH0433074B2 (en)
KR930005568B1 (en) Error extraction line detection method
JP2522511B2 (en) Image contour tracking unit
JPH0245229B2 (en)
JPH0271379A (en) Picture processor
JPH04316180A (en) Method for discriminating attribute of document picture