JPS62202287A - Graphic separating device - Google Patents

Graphic separating device

Info

Publication number
JPS62202287A
JPS62202287A JP61043774A JP4377486A JPS62202287A JP S62202287 A JPS62202287 A JP S62202287A JP 61043774 A JP61043774 A JP 61043774A JP 4377486 A JP4377486 A JP 4377486A JP S62202287 A JPS62202287 A JP S62202287A
Authority
JP
Japan
Prior art keywords
pattern
black
graphic
temporary
data
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
JP61043774A
Other languages
Japanese (ja)
Other versions
JPH0816921B2 (en
Inventor
Masahisa Yano
矢野 雅久
Kenichiro Uchimura
内村 憲一朗
Yoshiyuki Yamashita
山下 義征
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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry 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 Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP61043774A priority Critical patent/JPH0816921B2/en
Publication of JPS62202287A publication Critical patent/JPS62202287A/en
Publication of JPH0816921B2 publication Critical patent/JPH0816921B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Abstract

PURPOSE:To separate a graphic simply and without fail by binarizing an input, in which the graphic, character, etc., are mixed, at an image input part, forming a temporary graphic pattern at a segment frame deciding part, extracting black and white elements related to the temporary graphic pattern and outputting a graphic pattern and a character pattern. CONSTITUTION:An image input part 1 photoelectrically converts an input image where a graphic, a character, etc., are mixed, executes the raster-scanning and outputs binary image data D1. The data D1 are sent to a segment frame deciding part 2, binary data D2, which synchronizes with a temporary graphic pattern, are outputted from the deciding part 2 and a black element, which is adjoining and continuous in the data D1, is counted in the horizontal and vertical directions. When the counting value is threshold or above, the black picture element is outputted, when the value is less than the threshold, the white picture element is outputted and a temporary graphic pattern D3 is prepared. Here, A black linking propagating part 5 extracts the black picture element of the data D2 adjoining to the black picture element of the pattern D3 and the black picture element in the optional direction continuous to this and outputs them as a graphic pattern D4. On the other hand, a character pattern memory 6 synchronizes with a graphic pattern memory 4 where an original memory 3 and the pattern D4 are stored, executes the scanning and outputs a character pattern D5.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、図形1文字、記号等が混在する入力画像より
図形のみを含む図形パタン、もしくは該図形パタンと文
字、記号等を含む文字パタンとを分離し抽出する装置に
関するものである。
Detailed Description of the Invention (Industrial Field of Application) The present invention is capable of generating a graphic pattern containing only a figure from an input image containing a mixture of figures, characters, symbols, etc., or a character pattern containing the figure pattern and characters, symbols, etc. The present invention relates to a device for separating and extracting

(従来の技術) 図形1文字、記号等が混在する入力両像を効率良く認識
しようとする場合、認識処即に先だって、図形と、文字
、記号等(以下、文字等と称す。)とを分離する必要が
ある。
(Prior Art) When attempting to efficiently recognize both input images in which figures, characters, symbols, etc. coexist, figures, characters, symbols, etc. (hereinafter referred to as characters, etc.) must be recognized prior to the recognition process. need to be separated.

従来、この種の装置では、[文字等は閉ループ図形の内
側に書く」というような、図形と文字等どの相対位向関
係を記入制限条項とし、記入制限条項ぞのものを図形と
文字等との分離・抽出の論理として図形と文字等とを分
離・抽出し、あるいは角氷 他著「図面に書かれた文字
の一処理方式、j(昭和52年度電子通信学会情報部門
全国大会論文集、173)に記載されたように「一定収
ドの大きさの孤立図形」のみを文字等として、図形と文
字等とを分離・抽出Jる如くなしていた。
Conventionally, in this type of device, the relative positional relationship between figures and characters, such as ``write characters, etc. inside a closed-loop figure,'' is used as an entry restriction clause, and the writing restriction clause itself is defined as a relation between figures and characters, etc. The logic of separation and extraction is to separate and extract figures and characters, or to separate and extract figures and characters. 173), only ``isolated figures of a certain size'' were used as characters, etc., and figures and characters, etc. were separated and extracted.

(発明が解決しようと−する問題点) しかしながら、前者の装置では、融通性がなく認識対象
画像が限定されると共に、記入制限事項を守ることは記
入者にとって困難であり、実用的でなく、また、後者の
装置では、文字と文字との接触等により、分離対象の孤
立図形の大きさが一定以上となった場合、文字等として
分離不可能であり、また、孤立図形を抽出するための手
段が複雑となる等の問題点があった。
(Problems to be Solved by the Invention) However, with the former device, there is no flexibility and images to be recognized are limited, and it is difficult for the filler to comply with entry restrictions, making it impractical. In addition, with the latter device, if the size of the isolated figure to be separated exceeds a certain level due to contact between characters, etc., it is impossible to separate the isolated figure as a character, etc. There were problems such as complicated methods.

本発明は前記問題点を除去し、図形のみを含む図形パタ
ン、もしくは該図形パタンと文字等を含む文字パタンと
を、簡単Hつ確実に分離・仙出し得る装置を提供するこ
とを目的とする。
SUMMARY OF THE INVENTION An object of the present invention is to eliminate the above-mentioned problems and provide a device that can easily and reliably separate and extract a graphic pattern containing only graphics, or a character pattern containing characters and the like from the graphic pattern. .

(問題点を解決するための手段) 前記問題点を解決するため、第1の発明では図形1文字
、記号等が混在する入力画像を2値画像に変換覆る第1
の手段と、前記2値画像中より水平方向又は垂直方向の
いずれかで隣接し、目つ、水平(又は垂直)方向に所定
数以上連続づ−る黒画素を抽出し、仮図形パタンを作成
(る第2の手段と、前記2値画像中より、前記仮図形パ
タン内の黒画素に隣接する黒画素およびこれに連続する
あらゆる方向の黒画素を抽出し、これら全ての黒画素よ
り図形パタンを作成する第3の手段とを備え、また、第
2発明では前記第1.第2および第3の手段に加えて、
前記2値画像中の黒画素のうち、前記図形パタン中に存
在する黒画素を取除き、文字、記号等を含む文字パタン
を作成する第4の手−3一 段とを備六だ。
(Means for Solving the Problems) In order to solve the above-mentioned problems, the first invention provides a method for converting an input image containing a mixture of figures, single characters, symbols, etc. into a binary image.
and extracting a predetermined number or more of consecutive black pixels in the horizontal (or vertical) direction that are adjacent in either the horizontal or vertical direction from the binary image, and create a temporary figure pattern. (Second means for extracting black pixels adjacent to black pixels in the temporary figure pattern and black pixels in all directions continuous to the black pixels in the temporary figure pattern from the binary image, and extracting the figure pattern from all these black pixels. Further, in the second invention, in addition to the first, second and third means,
A fourth method-3-1 step is provided in which black pixels existing in the graphic pattern are removed from among the black pixels in the binary image to create a character pattern including characters, symbols, etc.

(作用) 第1弁明に」Jれば、図形2文字、記号等が混在する入
力画像を変換した2値画像より、水平方向又は垂直方向
のいずれかで隣接し、1つ、水平(又は垂直)方向に所
定数以上連続づ−る黒画素を抽出することにより、図形
の一部が、例えば該図形が傾いている場合等においても
抽出され、さらに2値画像中より図形の一部に相当する
黒画素に隣接する黒画素およびこれに連続するあらゆる
方向の黒画素を抽出することにより、前記抽出した図形
の一部に連続する図形の全てが抽出され、また、第2発
明によれば、前記2値画像中より前記図形として抽出さ
れた黒画素を取除くことにより、文字、記号等が抽出さ
れる。
(Operation) In the first defense, if a binary image is converted from an input image containing a mixture of figures, two characters, symbols, etc., one horizontal (or vertical) ) By extracting a predetermined number or more of consecutive black pixels in the direction of By extracting black pixels adjacent to a black pixel and black pixels continuous thereto in all directions, all of the figures that are continuous to a part of the extracted figure are extracted, and according to the second invention, Characters, symbols, etc. are extracted by removing the black pixels extracted as the graphics from the binary image.

(実施例) まず、本発明の考え方を第2図(a)について説明する
。図中、10は図形や文字等が混在する人力画像、例え
ば論理回路図を含む図面であり、また図面10中、11
は抵抗、アンド回路等を示Jシンボル、12は信号線、
13は文字等である。
(Example) First, the concept of the present invention will be explained with reference to FIG. 2(a). In the figure, numeral 10 is a human-made image containing a mixture of figures, characters, etc., such as a logical circuit diagram, and in drawing 10, 11
is the J symbol indicating a resistor, AND circuit, etc., 12 is a signal line,
13 is a character or the like.

各シンボル11は、信号線12にて々いに連結されてお
り、該シンボル11又は信号線12はその一部に一定の
長さ以上の線分を有している。この線分は、水平方向又
は垂直方向に伸びている場合が多いが、図形が紙面に対
して傾いたりして斜めになる場合もある。この場合でも
、該線分は水平(又は垂直)方向に所定の長さ、例えば
り4以上の長さく広がり)を有している。これに対して
、文字等13における水平(又は垂直)方向の線分の良
さは、2つ又はそれ以上の文字等同士が接触した場合に
おいても前記長さL1以上になることはほとんどない。
Each symbol 11 is closely connected by a signal line 12, and each symbol 11 or signal line 12 has a line segment having a certain length or more in part. This line segment often extends in the horizontal or vertical direction, but the figure may also be tilted with respect to the paper surface. Even in this case, the line segment has a predetermined length in the horizontal (or vertical) direction, for example, a length of 4 or more. On the other hand, the quality of the horizontal (or vertical) line segment in the characters 13 is almost never greater than the length L1 even when two or more characters are in contact with each other.

また通常、文字等13はシンボル11および信号線12
より、やや離れた所に記入されている。
Also, normally, characters etc. 13 are connected to symbols 11 and signal lines 12.
It is written a little further away.

従って、図面10中より水平方向又は垂直方向のいずれ
かで隣接し、且つ、水平(又は垂直)方向に前記長さ1
−を以上をもつで連続する線分を検出し、その線分と連
結している線分のみを抽出することによって、信号線1
2およびシンボル11のみを抽出リ−る、即ち図形と文
字等とを分離1することが可能とイにる。
Therefore, in the drawing 10, the length 1 is adjacent in either the horizontal direction or the vertical direction, and the length 1 in the horizontal (or vertical) direction.
By detecting continuous line segments with - or more and extracting only the line segments connected to the line segments,
It becomes possible to extract and read only 2 and symbols 11, that is, to separate figures and characters.

’tTお、以下の説明では、前記水平方向に隣接して連
続する線分、又は垂直方向に隣接して連続する線分、あ
るいは水平方向おJ:び垂直7j向に隣接して連続する
線分を、全て一括して線分枠ど称するものどする。
'tT, In the following explanation, the line segments that are adjacent and continuous in the horizontal direction, the line segments that are adjacent and continuous in the vertical direction, or the lines that are adjacent and continuous in the horizontal direction and vertical direction. All the minutes are collectively called a line segment frame.

第1図は本発明の一実施例を示すものぐ、図中、1は画
像入力部、2は線分砕料宇部、3はオリジナルパタンメ
モリ、4は図形パタンメモリ、5は黒連結伝幡部、6は
文字パタン抽出部ぐある。
FIG. 1 shows an embodiment of the present invention. In the figure, 1 is an image input section, 2 is a line segment block, 3 is an original pattern memory, 4 is a figure pattern memory, and 5 is a black connection transmission. Part 6 is a character pattern extraction part.

画像入力部1は、図形や文字等が混在する入力画像、例
えば前記図面10を光電変換し、第2図(b)に示す走
査方向■に沿ってラスク走査し、2値画像データr)1
を出力する。
The image input unit 1 photoelectrically converts an input image containing a mixture of figures, characters, etc., for example the drawing 10, performs rask scanning along the scanning direction {circle around (2)} shown in FIG. 2(b), and generates binary image data r)1.
Output.

線分砕料宇部2は、前記2値画像データD111より後
述する仮図形パタンと同期した2値画像データD2を出
力するとともに、前記2値画像データD1中の水平方向
又は垂直方向のいずれかで隣接して連続した黒画素数を
、水平方向および垂直方向別に計数し、水平方向又は垂
直方向のいずれか一方のh1数結果が予め定められた閾
値以1−とイ1つだ場合は黒画素を出力し、閾値未満の
場合は白画素を出力し、仮図形パタン[〕3を作成する
The line segmentation material Ube 2 outputs binary image data D2 synchronized with a temporary figure pattern, which will be described later, from the binary image data D111, and also outputs binary image data D2 synchronized with a temporary figure pattern, which will be described later, from the binary image data D111. Count the number of consecutive black pixels in the horizontal and vertical directions, and if the h1 count result in either the horizontal or vertical direction is less than a predetermined threshold, it is considered a black pixel. is output, and if it is less than the threshold, a white pixel is output, and a temporary figure pattern [ ] 3 is created.

オリジナルパタンメモリ3は、前記仮図形パタンU′)
3と同期した2伯画像データ[)2を記憶する如くなっ
ている。
The original pattern memory 3 is the temporary figure pattern U')
2 and 2 synchronized with 3 are stored.

図形パタンメ上り4は、前配仮図形パタンO3ど、後述
する図形パタンを記憶する。
The graphic pattern upstream 4 stores graphic patterns to be described later, such as the predistributed temporary graphic pattern O3.

黒)1!結伝帽部5は、適当イT大ぎさのウィンドで図
形パタンメモリ11どオリジナルパタンメモリ3とを同
期して走査覆ることによって、仮図形パタン03の黒画
素に隣接する2値画像データD 2 cl、+の黒画素
およびこれに連続するあらゆる方向の黒画素を順次抽出
し、図形パタンl)4どしで図形パタンメtす4に出力
する如くなっている。
Black) 1! The cap section 5 scans and covers the graphic pattern memory 11 and the original pattern memory 3 in synchronization with a window of an appropriate size T, thereby generating binary image data D2 adjacent to the black pixels of the temporary graphic pattern 03. The black pixel cl, + and the black pixels in all directions following this are sequentially extracted and output to the graphic pattern t4 in the graphic pattern l)4.

文字パタンメモリ6は、オリジナルパタンメモリ3と前
記図形パタンD4が格納された図形パタンメモリ4とを
同期して走査し、得られるデータ同士の間で排他的論理
和をとって、文字等を含む文字パタンD5を出力する。
The character pattern memory 6 synchronously scans the original pattern memory 3 and the graphic pattern memory 4 in which the graphic pattern D4 is stored, performs an exclusive OR between the obtained data, and generates data containing characters, etc. Output character pattern D5.

次に細部の構成、動作について説明する。Next, the detailed configuration and operation will be explained.

線分砕料宇部2は、第3図に示すように2値画像バッフ
ァ211と連結判定ウィンド212と黒連結判定器21
3とからなる黒連結判定部210ど、枠データバッファ
221ど枠データウィンド222と枠計算器223とか
らなる枠データ伝幅部220と、砕料定器231と閾値
設定器232とからなる砕料室部230どから構成され
ている。
As shown in FIG.
3, a frame data buffer 221, a frame data propagation unit 220 consisting of a frame data window 222 and a frame calculator 223, a particle sizer 231 and a threshold value setter 232 It is composed of a chamber section 230 and the like.

前記構成にd3いて、画像入力部1のラスク走査に同期
して得ら4する2値画像データD1は、主走査(水平)
方向(X)の画素数と同一ビット数のシフトレジスタ2
列からなる2値画像バッファ211に入力される。従っ
て、2値画像バッファ211に接続された(2X2)画
素の連結判定ウィンド212と、連結判定器213とは
、実質的に入力図面10−1−を水平方向にラスク走査
していることになる。
In the above configuration d3, the binary image data D1 obtained in synchronization with the rask scan of the image input section 1 is main scanning (horizontal)
Shift register 2 with the same number of bits as the number of pixels in the direction (X)
It is input into a binary image buffer 211 consisting of columns. Therefore, the (2×2) pixel connection determination window 212 connected to the binary image buffer 211 and the connection determination device 213 are essentially scanning the input drawing 10-1- in the horizontal direction. .

枠データバッファ221は、1画素毎に該画素に連結し
ている線分枠の水平方向の連続数(幅)のデータと、垂
直方向の連続数(高さ)のデータどからなる枠データ値
を記憶するもので、主走査方向Xの画素数と同一ビット
数のシフ1〜レジスタ2列から構成されており、枠計客
)器223の出力がラスク走査に同期してシフトされる
。従って、枠データバッファ221に接続されている(
2x4)桝の枠データウィンド222と枠KI算器22
3とは、実質的に連結判定ウィンド212eよび黒連結
判定器213と同期して、入力図面1o−1−をラスク
走査していることになる。
The frame data buffer 221 stores, for each pixel, a frame data value consisting of data on the number of consecutive line segments (width) in the horizontal direction and data on the number of consecutive lines in the vertical direction (height) connected to the pixel. It is composed of shift 1 to register 2 columns with the same number of bits as the number of pixels in the main scanning direction Therefore, it is connected to the frame data buffer 221 (
2x4) Box frame data window 222 and frame KI calculator 22
3 means that the input drawing 1o-1- is rask-scanned substantially in synchronization with the connection determination window 212e and the black connection determination unit 213.

連結判定ウィンド212の画素状態による黒連結判定器
213の出力、即ち枠目算器223への指示信号U′)
213による枠hi算器223の動作は次の通りである
The output of the black connection determiner 213 according to the pixel state of the connection determination window 212, that is, the instruction signal U' to the frame calculator 223)
The operation of the frame hi calculator 223 based on 213 is as follows.

d22=oの時: AxR−0,AyR−O町・・(1) d22= 1 、 d 11= 1の時:AXR= A
X11+ 1 、IyR= /Iy11+1・・・・・
・(2) (122= 1 、 d 11= Oであって、Ax1
2> 、4x21の時: %xR= ax12          ・・・・・・
(3)Δx12≦/X21の時: axR= Jx21q 1        ・・・・”
(4)Ay12≧、Iy2iの時: 1!IVR= 1Iy12−1−1         
 ・・・・・・(5)1/12< 、4y21の時: ayR= Ay21          ・・・・・・
(6)ここで、lIx  、aVHは枠it粋器223
の出力(枠データ)値であり、aXll、  、!lX
12. .6X21゜、/IVII、aV12.  /
IIV21は枠データウィンド222の各桝内に格納さ
れた枠データ値である。また、dll、d22は連結判
定ウィンド212の各桝内の画素値であり、黒画素の場
合を11」とし、白画素の場合を「0」としている。な
お、初期状態において、枠データバッファ221および
枠データウィンド222は「0」にクリアされているも
のとする。
When d22=o: AxR-0, AyR-O Town...(1) When d22=1, d11=1: AXR=A
X11+ 1, IyR= /Iy11+1...
・(2) (122=1, d11=O, Ax1
2>, when 4x21: %xR= ax12...
(3) When Δx12≦/X21: axR= Jx21q 1 ・・・・”
(4) When Ay12≧, Iy2i: 1! IVR= 1Iy12-1-1
・・・・・・(5) When 1/12< , 4y21: ayR= Ay21 ・・・・・・
(6) Here, lIx and aVH are the frame 223
is the output (frame data) value of aXll, ,! lX
12. .. 6X21°, /IVII, aV12. /
IIV21 is a frame data value stored in each cell of the frame data window 222. Further, dll and d22 are pixel values in each box of the connection determination window 212, and are set to 11'' for a black pixel and 0 for a white pixel. It is assumed that in the initial state, the frame data buffer 221 and the frame data window 222 are cleared to "0".

前記枠データ値(、!IX、  AXR)は枠データバ
ッファ221に送出され、ラスク走査に同期して画素単
位に順次シフトされていくため、入力図面10十の連結
した黒画素、即ち線分枠の枠データ値が更新されながら
、入力図面10−1−をノtから右。
The frame data values (,!IX, AXR) are sent to the frame data buffer 221 and sequentially shifted pixel by pixel in synchronization with rask scanning, so that 100 connected black pixels in the input drawing, that is, a line segment frame While the frame data value of is being updated, the input drawing 10-1- is changed to the right from the notation.

上から下へ順次伝帳されていくことになる。The transfers will be made sequentially from top to bottom.

砕料定器231は、画素用Mlに伝帳されてくる枠デー
タ(W(、ax  、  AyR>と、閾値設定器23
2に予め設定された閾値、例えば前記長さ1−一こ対応
”J’;bl  とを比較し、AxRSI!11]つA
yR≦IV1の時、図形は検出されていないと判定し、
仮図形パタンD3として白画素を出力い AXR〉p 
又は/!UyR>11の時、図形の一部が検出されたと
判定し、仮図形パタンl)3として黒画素を出力する。
The debris leveler 231 uses the frame data (W(, ax, AyR>) sent to the pixel Ml and the threshold value setter 23.
A
When yR≦IV1, it is determined that no figure has been detected,
Output white pixels as temporary figure pattern D3 AXR〉p
Or/! When UyR>11, it is determined that a part of the figure has been detected, and black pixels are output as the temporary figure pattern l)3.

ここで閾値I!t(長さ1−t)は、図面10に記入さ
れる文字等に存在し得る線分枠の最大値と、図形に存在
し1qる線分枠の最小値で決まる値である。
Here is the threshold I! t (length 1 - t) is a value determined by the maximum value of line segment frames that may exist in characters etc. written in drawing 10 and the minimum value of 1q line segment frames that exist in the figure.

第4図は、2値画像データl)1と仮図形パタンD3と
の対応を示すもので、ここでは閾値!1は便宜上「10
」に設定しである。図中、2値画像データD1における
無印は白画素、・印おJ:び[株]印は黒画素を示し、
仮図形パタンD3における無印および・印は白画素、[
株]印は黒画素をホす。
FIG. 4 shows the correspondence between the binary image data l)1 and the temporary figure pattern D3, and here, the threshold value! 1 is ``10'' for convenience.
”. In the figure, in the binary image data D1, no mark indicates a white pixel, and a J: mark indicates a black pixel.
In the temporary figure pattern D3, unmarked and ・marks are white pixels, [
] mark indicates a black pixel.

第5図は、前記第4図に示す2値画像データ[)1に対
応した枠データ値(IJx 、/IyR)を各桝毎に表
わしたものである。ここで、図中の桝内の上段の数字は
枠データ値ΔXRを示し、下段の数字は枠データ値Ay
Rを示す。
FIG. 5 shows frame data values (IJx, /IyR) corresponding to the binary image data [)1 shown in FIG. 4 for each cell. Here, the numbers in the upper row in the box in the figure indicate the frame data value ΔXR, and the numbers in the lower row indicate the frame data value Ay.
Indicates R.

黒連結伝幅部5は、第6図(a)〜(d)に示すにうな
(2X2)画素のウィンド(以下、単にウィンドと称す
。)5aを有し、該ウィンド5 El ”C図形パタン
メモリ4とオリジナルパタンメモリ3上を、第6図(a
)〜(d)に示す走査方向◎、Q、Q。
The black connection propagation portion 5 has a window 5a of 2×2 pixels (hereinafter simply referred to as a window) 5a as shown in FIGS. The memory 4 and original pattern memory 3 are shown in Figure 6 (a).
) to (d) scanning directions ◎, Q, Q.

■の順に走査し、後述する如くして仮図形パタンD3中
の黒画素に隣接する2値画像データ1)2上の黒画素を
検出し、順次、図形パタンメモリ4に図形パタンD4と
して格納する。
Scanning is performed in the order of (2), and black pixels on the binary image data 1)2 adjacent to black pixels in the temporary figure pattern D3 are detected as described later, and sequentially stored in the figure pattern memory 4 as a figure pattern D4. .

まず、図形パタンメモリ4上におかれたウィンド5a内
に黒画素が存在するか否か、即ち下記式(7)を満すか
どうかを調べ、満たさない場合は走査を進め、満たす場
合はオリジナルパタンメモリ3土のウィンド5a内の黒
画素が存在りる桝に対応した図形パタンメモリ4十のウ
ィンド5aの桝を黒画素とする、即ち下記式(8)の処
理を行なう。
First, it is checked whether a black pixel exists in the window 5a placed on the figure pattern memory 4, that is, whether the following formula (7) is satisfied. If it is not satisfied, scanning is continued, and if it is, the original pattern is The cell in the window 5a of the graphic pattern memory 40 corresponding to the cell in which the black pixel exists in the window 5a of the memory 3 is set as a black pixel, that is, the process of the following equation (8) is performed.

Z (x、V)=R(x、y)    ・・・・・・・
・・(8)前記式(7) 、 (8)において、X、y
はウィンド5a内の座標であり、その値は1又は2、Z
(X。
Z (x, V) = R (x, y) ・・・・・・
...(8) In the above formulas (7) and (8), X, y
is the coordinate within the window 5a, and its value is 1 or 2, Z
(X.

y)は図形パタンメモリ4上におかれたウィンド5aの
各座標点の値であって黒画素の時に「1」、白画素の時
に「0」である。R(x、y)はオリジナルパタンメモ
リ3上におかれたウィンド5aの各座標点の値であって
黒画素の時に「1]、白画素の時に「0」である。
y) is the value of each coordinate point of the window 5a placed on the graphic pattern memory 4, and is "1" for a black pixel and "0" for a white pixel. R(x,y) is the value of each coordinate point of the window 5a placed on the original pattern memory 3, and is "1" for a black pixel and "0" for a white pixel.

第7図(a)〜(C)は黒連結伝幅部5の動作のJ:う
覆を示すものである。第7図(a)はある時点における
図形パタンメモリ4上のウィンド5a内の内容20を示
し、また、第7図(b)は同一時点におけるオリジナル
パタンメモリ2−トのウィンド5a内の内容30を示す
。この際、内容21内の黒画素21 (x=1.V=1
)に対し、内容30内の黒画素31 (x−2,y=1
>が隣接しており、さらにこの黒画素31に黒画素32
(x−2,y・−2)が隣接しているため、図形パタン
メモリ4」−の内容20は、第7図(C)に承すにうに
画素22 (x=2.V=1)と画素23(x−2,y
−2)の点が黒画素に変換される。
FIGS. 7(a) to 7(C) show J: overturning of the operation of the black connection propagation portion 5. FIG. 7(a) shows the contents 20 in the window 5a on the figure pattern memory 4 at a certain point in time, and FIG. 7(b) shows the contents 30 in the window 5a in the original pattern memory 2 at the same point in time. shows. At this time, black pixel 21 in content 21 (x=1.V=1
), black pixel 31 in content 30 (x-2, y=1
> is adjacent to black pixel 31, and black pixel 32 is adjacent to this black pixel 31.
(x-2, y・-2) are adjacent to each other, the contents 20 of the figure pattern memory 4'' are as follows: pixel 22 (x=2.V=1) as shown in FIG. 7(C). and pixel 23 (x-2, y
-2) point is converted to a black pixel.

第8図は黒連結伝幅部5にJ:って得られた図形パタン
の一例を示す。図中、無印は白画素、■印は線分砕料宇
部2によって仮図形パタンどして抽出された黒画素、−
印は第7図における走査方向◎の走査によって抽出され
た黒画素、1印は走査方向[相]の走査によって抽出さ
れた黒画素、・印は2値画像データr)2上においては
黒画素であるが、図形パタンD4では白画素となる画素
である。
FIG. 8 shows an example of a graphic pattern obtained by J: on the black connection propagation portion 5. In the figure, unmarked white pixels, ■ marked black pixels extracted by line segmentation material Ube 2 using a temporary figure pattern, -
The mark is a black pixel extracted by scanning in the scanning direction ◎ in Fig. 7, the 1 mark is a black pixel extracted by scanning in the scanning direction [phase], and the mark is a black pixel in the binary image data r) 2. However, in the graphic pattern D4, this pixel becomes a white pixel.

なお、^7.記走査方向◎の走査と、画像入力部1にお
Cノる走査どを同時に行なうことによって処理時間の短
縮を図ることができる。
In addition, ^7. By simultaneously performing scanning in the scanning direction ◎ and scanning in the C direction on the image input section 1, processing time can be shortened.

文字パタン抽出部6は、黒連結伝幡部5の処理の終了後
、オリジナルパタンメモリ3と図形パタンメモリ4とを
同期して走査し、得られたデータをデータ毎に排他的論
理和の油筒を施JことにJ:つて文字パタンD5を抽出
Jる。
After the processing of the black connection transmission unit 5 is completed, the character pattern extraction unit 6 scans the original pattern memory 3 and the graphic pattern memory 4 in synchronization, and extracts the obtained data by exclusive ORing for each data. After applying the cylinder, extract the character pattern D5.

(発明の効果) 以上説明したJ:うに第1発明によれば、従来のJ:う
に文字等の記入制限条項を設置ノる必要がなく、文字等
の大きさにもあまり左右されずに図形のみを含む図形パ
タンを、図形の傾き等に左右されることなく抽出でき、
また、第2発明にJ:れば、図形パタンととbに文字等
を含む文字パタンを抽出でき、安価で確実な固形分1l
Il装岡を提供できる等の利点がある。
(Effects of the Invention) According to the first invention of J: Sea urchin explained above, there is no need to set up the conventional J: Sea urchin entry restriction clause, etc. It is possible to extract figure patterns that include
In addition, if J: is used in the second invention, it is possible to extract a graphic pattern and a character pattern including letters, etc. in and b, and the solid content of 1 liter is inexpensive and reliable.
There are advantages such as being able to provide an Il mounting plate.

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

第1図は本発明の図形分離装置の一実施例を示す構成図
、第2図(a)(h)は入力図面の一例とその走査方向
を示す図、第3図は線分砕料宇部の構成図、第4図は2
 firi画像データと仮図形パタンとの対応を示1図
、第5図は第4図に示?12(lTIii!Ii像デー
タにλ1応する枠デ〜り値を示で図、第6図(a)〜(
d)は黒連結伝幅部にお(−Jる走査方向を示す図、第
7図(a)〜(C)は図形パタンへの変換のにう(を示
ず図、第8図は抽出された図形パタンの一例を示す図で
ある。 1・・・画像入力部、2・・・オリジナルパタンメ干り
、3・・・線分砕料宇部、1・・・図形パタンメ七り、
5・・・黒連結伝幅部、6・・・文字パタン抽出部。
Figure 1 is a block diagram showing an embodiment of the figure separation device of the present invention, Figures 2 (a) and (h) are diagrams showing an example of an input drawing and its scanning direction, and Figure 3 is a line segmentation material Ube. The configuration diagram, Figure 4 is 2
The correspondence between the firi image data and the temporary figure pattern is shown in Figure 1 and Figure 5 is shown in Figure 4. 12 (lTIii!Ii image data λ1 corresponding frame de-values are shown in Figures 6(a)-(
d) is a diagram showing the scanning direction (-J) in the black connection propagation part, Figures 7 (a) to (C) are diagrams showing the (-J) scanning direction in the black connection propagation part, Figure 8 is an extraction diagram. 1 is a diagram illustrating an example of a graphic pattern that has been created. 1... Image input section, 2... Original pattern pattern, 3... Line segment crusher Ube, 1... Graphic pattern pattern seven,
5...Black connection width part, 6...Character pattern extraction part.

Claims (2)

【特許請求の範囲】[Claims] (1)図形、文字、記号等が混在する入力画像を2値画
像に変換する第1の手段と、 前記2値画像中より水平方向又は垂直方向のいずれかで
隣接し、1つ、水平(又は垂直)方向に所定数以上連続
する黒画素を抽出し、仮図形パタンを作成する第2の手
段と、 前記2値画像中より、前記仮図形パタン内の黒画素に隣
接する黒画素およびこれに連続するあらゆる方向の黒画
素を抽出し、これら全ての黒画素より図形のみを含む図
形パタンを作成する第3の手段と を備えたことを特徴とする図形分離装置。
(1) A first means for converting an input image containing a mixture of figures, characters, symbols, etc. into a binary image; a second means for extracting a predetermined number or more of consecutive black pixels in a direction (or vertically) to create a temporary figure pattern; and third means for extracting continuous black pixels in all directions and creating a graphic pattern containing only figures from all of these black pixels.
(2)図形、文字、記号等が混在する入力画像を2値画
像に変換する第1の手段と、 前記2値画像中より水平方向又は垂直方向のいずれかで
隣接し、且つ、水平(又は垂直)方向に所定数以上連続
する黒画素を抽出し、仮図形パタンを作成する第2の手
段と、 前記2値画像中より、前記仮図形パタン内の黒画素に隣
接する黒画素およびこれに連続するあらゆる方向の黒画
素を抽出し、これら全ての黒画素より図形のみを含む図
形パタンを作成する第3の手段と、 前記2値画像中の黒画素のうち、前記図形パタン中に存
在する黒画素を取除き、文字、記号等を含む文字パタン
を作成する第4の手段と を備えたことを特徴とする図形分離装置。
(2) A first means for converting an input image containing a mixture of figures, characters, symbols, etc. into a binary image; a second means for extracting a predetermined number or more of consecutive black pixels in the (vertical) direction to create a temporary figure pattern; a third means for extracting continuous black pixels in all directions and creating a figure pattern including only figures from all these black pixels; and fourth means for removing black pixels and creating a character pattern including characters, symbols, etc.
JP61043774A 1986-02-28 1986-02-28 Figure separation device Expired - Lifetime JPH0816921B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61043774A JPH0816921B2 (en) 1986-02-28 1986-02-28 Figure separation device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61043774A JPH0816921B2 (en) 1986-02-28 1986-02-28 Figure separation device

Publications (2)

Publication Number Publication Date
JPS62202287A true JPS62202287A (en) 1987-09-05
JPH0816921B2 JPH0816921B2 (en) 1996-02-21

Family

ID=12673099

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61043774A Expired - Lifetime JPH0816921B2 (en) 1986-02-28 1986-02-28 Figure separation device

Country Status (1)

Country Link
JP (1) JPH0816921B2 (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS57211674A (en) * 1981-06-23 1982-12-25 Ricoh Co Ltd Frame recognizing method

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS57211674A (en) * 1981-06-23 1982-12-25 Ricoh Co Ltd Frame recognizing method

Also Published As

Publication number Publication date
JPH0816921B2 (en) 1996-02-21

Similar Documents

Publication Publication Date Title
US7170647B2 (en) Document processing apparatus and method
JP2940936B2 (en) Tablespace identification method
EP1403813B1 (en) Image processing method, image processing apparatus and image processing program for dealing with inverted characters
US5075895A (en) Method and apparatus for recognizing table area formed in binary image of document
EP0490687A2 (en) Method and apparatus for image processing
JPH10143604A (en) Device for extracting pattern
JP2000207489A (en) Character extracting method and device and record medium
KR0167616B1 (en) Image processing apparatus and method of the same
JP2502175B2 (en) Original image pattern data reproducing method and device
JPH04270485A (en) Printing character recognition device
JPS62202287A (en) Graphic separating device
JP2002342710A (en) Character segmenting device and character segmenting method used for the same device and its program
JPS63304387A (en) Document reader
JP2004334461A (en) Character recognition device and character recognition program
JP4763113B2 (en) High speed labeling method
JP2789622B2 (en) Character / graphic area determination device
US6142374A (en) Optical character reader
JPS6254380A (en) Character recognizing device
JP2006277509A (en) Dot texture superposition notation part shape restoration method and program therefor
JPH03142691A (en) Table format document recognizing system
JPS62196778A (en) Graphic separating device
JP2574795B2 (en) Drawing symbol extraction method
JP2002269547A (en) Method and device for reading seal imprint
JPH05274472A (en) Image recognizing device
JPH0271379A (en) Picture processor