JPS6239459B2 - - Google Patents
Info
- Publication number
- JPS6239459B2 JPS6239459B2 JP54093473A JP9347379A JPS6239459B2 JP S6239459 B2 JPS6239459 B2 JP S6239459B2 JP 54093473 A JP54093473 A JP 54093473A JP 9347379 A JP9347379 A JP 9347379A JP S6239459 B2 JPS6239459 B2 JP S6239459B2
- Authority
- JP
- Japan
- Prior art keywords
- image
- character
- frame
- unnecessary
- black pixel
- 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N1/00—Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
- H04N1/40—Picture signal circuits
- H04N1/409—Edge or detail enhancement; Noise or error suppression
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Character Input (AREA)
- Editing Of Facsimile Originals (AREA)
- Facsimile Image Signal Circuits (AREA)
Description
【発明の詳細な説明】
この発明は光学文字読取装置の前処理部に使用
し文字の分離(切出し)処理を行なう雑音画像除
去装置に関する。DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a noise image removing device used in a preprocessing section of an optical character reading device to perform character separation (cutting) processing.
光学文字読取装置では記入された文字を1文字
づつ分離(切出し)する前処理を行なうことが必
要である。この前処理において各文字毎の分離
(切出し)が不十分で分離された文字に不要部分
が或る程度以上混入されると、その文字の識別が
不可能になつてしまう。この発明は上述の光学文
字読取装置の前処理部での従来の難点を解決し、
文字枠内の画像を示す画像信号から不要画像部分
を除去することを可能にしたものである。 In optical character reading devices, it is necessary to perform preprocessing to separate (cut out) written characters one by one. If each character is insufficiently separated (cut out) in this preprocessing and unnecessary parts are mixed into the separated characters to a certain extent, it becomes impossible to identify the characters. This invention solves the conventional difficulties in the preprocessing section of the optical character reading device mentioned above,
This makes it possible to remove unnecessary image portions from an image signal representing an image within a character frame.
このために、この発明の雑音画像除去装置にお
いては枠外像検出手段によつて隣接する文字枠間
に存在する像を枠外像として検出する。不要画像
検出手段により前記検出された枠外像に連続して
文字枠内に像が存在するかどうかを検知し、像が
存在すれば枠外像を基にしてこの文字枠内に存在
する像を不要画像として抽出する。不要画像除去
手段により前記抽出された不要画像を用いて文字
枠内の画像を示す画像信号から対応する不要画像
部分を除去して雑音のない画像信号を得る。 For this reason, in the noise image removing apparatus of the present invention, the out-of-frame image detection means detects an image existing between adjacent character frames as an out-of-frame image. The unnecessary image detection means detects whether an image exists within the character frame following the detected image outside the frame, and if an image exists, the image existing within the character frame is made unnecessary based on the image outside the frame. Extract as an image. The unnecessary image removing means uses the extracted unnecessary image to remove a corresponding unnecessary image portion from the image signal representing the image within the character frame to obtain a noise-free image signal.
この発明の雑音画像除去装置によれば、例えば
第1図に示すような文字が入力された場合、1文
字目と2文字目の枠内に存在する雑音画像となる
不要画像部分を第3図に示す如く除去する。この
発明の対象とされる帳票等に記入された文字は光
学的スキヤナー等によつて走査され、かつ各画素
は1,0の2値に量子化されて第1図に示すよう
な縦横に配列された画素よりなる画像となる。こ
の画像に基づいた画像信号が第7図に示すこの発
明の雑音画像除去装置の記憶回路1に記憶され
る。説明を容易にするためにこのように量子化さ
れた各文字は1縦画素線、つまり1ライン16ビツ
トで1文字当り12ラインの文字領域と1ラインの
境界領域とによつて表わされるものとする。 According to the noise image removal device of the present invention, for example, when a character as shown in FIG. Remove as shown. Characters written on forms, etc., which are the subject of this invention, are scanned by an optical scanner, etc., and each pixel is quantized into binary values of 1 and 0, and arranged in a vertical and horizontal manner as shown in Figure 1. The resulting image is made up of pixels. An image signal based on this image is stored in the storage circuit 1 of the noise image removing apparatus of the present invention shown in FIG. For ease of explanation, each character quantized in this way is represented by one vertical pixel line, that is, one line is 16 bits, and each character is represented by a character area of 12 lines and a boundary area of one line. do.
第1図は1文字目の文字11が2文字目の文字
枠12にまた2文字目の文字13が1文字目の文
字枠14にくい込んでいる場合を示している。又
図でラインを示す番地中のn及びn+13番地は文
字の記入ピツチ等によつて予め計算設定された文
字の枠外であるとする。即ちn番地は文字枠12
及び14の間の枠外を示している。 FIG. 1 shows a case where the first character 11 is embedded in the second character frame 12, and the second character 13 is embedded in the first character frame 14. Also, it is assumed that addresses n and n+13 among the addresses indicating lines in the figure are outside the character frame calculated and set in advance by the character entry pitch and the like. In other words, address n is character frame 12
The outside of the frame between and 14 is shown.
一般的には文字の大きさのばらつきや文字位置
のばらつきが実際上発生するために1ライン16ビ
ツトでは不足な場合が多く1ライン数ワード必要
とする。また単に記入ピツチによつてのみ文字を
完全に分離することが実際には不可能な場合があ
るが、枠外領域についてこの発明をさらに細部に
わたつて拡張適用することで解決できるので、
こゝでは簡単のために記入ピツチによつて文字を
完全に分離可能なものとして説明を進める。 Generally, 16 bits per line is often insufficient due to variations in character size and character position, and several words per line are often required. In addition, although there are cases in which it is actually impossible to completely separate characters simply by the input pitch, this can be solved by extending and applying this invention in more detail to areas outside the frame.
For the sake of simplicity, the explanation here will be based on the assumption that characters can be completely separated depending on the input pitch.
第2図に示す如く第1番目の文字11と第2番
目の文字13との境界でこれら両文字を分離する
と、1文字目及び2文字目にそれぞれ不要部分
N1,N2が残つた不要画像を含むパターンが得ら
れる。このような雑音となる不要画像部分を含ん
だ文字は一般には識別不可能となつてしまう。こ
の発明の雑音画像除去装置によれば、この場合1
文字目の文字のパターンに含まれる逆L字形の不
要画像部分N1と2文字目の文字パターンに含ま
れる棒状の不要画像部分N2を雑音画像として検
出しこれ等を第3図の1及び2に示すように
これらを除去したパターンを得る。即ちこの発明
の雑音画像除去装置では不要画像部分N1を含ん
だ1文字目の全体のパターンをLとし、この不要
画像部分のみのパターンをN1とすれば1文字目
の画像信号についてはL・1なる論理演算を行
つて不要部分N1が除去された第3図aに示すよ
うなパターンが得られる。 As shown in Figure 2, if these two characters are separated at the boundary between the first character 11 and the second character 13, unnecessary parts will appear in the first and second characters.
A pattern including unnecessary images with N 1 and N 2 remaining is obtained. Characters that include such unnecessary image portions that become noise generally become unidentifiable. According to the noise image removing device of the present invention, in this case, 1
The inverted L-shaped unnecessary image part N1 included in the character pattern of the first character and the bar-shaped unnecessary image part N2 included in the second character pattern are detected as noise images, and these are divided into 1 and 1 in Fig. 3. A pattern with these removed is obtained as shown in 2 . That is, in the noise image removal device of the present invention, if the entire pattern of the first character including the unnecessary image portion N1 is L, and the pattern of only this unnecessary image portion is N1 , then the image signal of the first character is L.・A pattern as shown in FIG. 3a is obtained in which the unnecessary portion N1 is removed by performing a logical operation of 1 .
最初にパターンに含まれる不要部分の形状の抽
出方法について以下に説明する。 First, a method for extracting the shape of an unnecessary portion included in a pattern will be described below.
先づ、この発明においては雑音画像となる不要
画像部分としては、a不要画像部分が文字から分
離していること、すなわち不要画像部分は文字に
接していないこと、b不要画像部分はmライン
(例えば4ライン)以上文字の境界からくい込ん
でいないこと、の2条件を満足するものと定義し
ておく。 First of all, in this invention, the unnecessary image portions that become noise images are: (a) The unnecessary image portion is separated from the characters, that is, the unnecessary image portion is not in contact with the characters, and (b) The unnecessary image portion is separated from the characters by the m line ( It is defined as satisfying two conditions: (for example, 4 lines) or more and not extending beyond the character boundary.
以下この不要画像部分を除去するアルゴリズム
について説明する。 An algorithm for removing this unnecessary image portion will be explained below.
最初に第1図の1文字枠14と2文字枠12の
文字枠間の画像信号(メモリのn番地の内容)を
検知し、第4図aに示すように2個の黒のブロツ
クに対応する論理値“1”の画素が枠外像信号と
して得られる。この文字枠間の内容が“0”でな
い場合には雑音画像となる不要画像部分が存在す
る可能性があり、“0”の場合は不要部分は存在
しないことを意味している。第4図aの場合、文
字枠間に2つの黒のブロツクが検出されるので雑
音画像となる2つの不要画像部分が存在する可能
性があることになる。 First, the image signal between the character frames 14 and 2 character frame 12 in Figure 1 is detected (the contents of address n in the memory), and as shown in Figure 4 a, the image signal corresponding to the two black blocks is detected. A pixel with a logical value of "1" is obtained as an out-of-frame image signal. If the content between the character frames is not "0", there is a possibility that an unnecessary image part that becomes a noise image exists, and if it is "0", it means that no unnecessary part exists. In the case of FIG. 4a, since two black blocks are detected between the character frames, there is a possibility that there are two unnecessary image parts that become noise images.
この検出された第4図aに示した2つの黒のブ
ロツクの枠外像信号を同図b及びcに示す如くそ
れぞれのブロツクに分離し得られる枠外画信号
n1,n2を基にして不要画像部分の判定を行なう。
この段階での操作は単純なシフト動作を行なえば
容易に実現可能なのでその動作の詳細についての
説明は省略する。 The detected out-of-frame image signals of the two black blocks shown in Fig. 4a are separated into respective blocks as shown in Fig. 4b and c.
Unnecessary image parts are determined based on n 1 and n 2 .
Since the operation at this stage can be easily realized by performing a simple shift operation, a detailed explanation of the operation will be omitted.
まず第4図bの枠外像信号n1の位置を起点とし
てこれと連続する像を追跡し不要部分であるか否
かを調べる。このためこの発明の実施例の構成を
示す第7図の記憶回路1より第4図bに示す枠外
像信号n1に対応する黒画素が第5図aに示すよう
に読出されてレジスタ4及びレジスタ5にセツト
される。この発明では、文字枠内にこの枠外像信
号n1と連続する黒画素が存在するか否かを探索す
る。この探索のために予め探索領域が設定され
る。即ち、演算回路3の演算動作が上シフト状態
に選択され、レジスタ5にセツトされている値が
同一番地ライン上で1ビツト上位にシフトされ、
その出力がレジスタ6にセツトされる。 First, starting from the position of the out-of-frame image signal n1 in FIG. 4b, images continuous with this are tracked to check whether they are unnecessary parts or not. Therefore, the black pixel corresponding to the out-of-frame image signal n1 shown in FIG. 4b is read out from the storage circuit 1 in FIG. 7 showing the configuration of an embodiment of the present invention as shown in FIG. Set in register 5. In this invention, it is searched whether or not there is a black pixel within the character frame that is continuous with this outside-frame image signal n1 . A search area is set in advance for this search. That is, the arithmetic operation of the arithmetic circuit 3 is selected to be in the upward shift state, and the value set in the register 5 is shifted one bit higher on the same ground line.
The output is set in register 6.
次いで演算回路3は演算動作が論理和に選択さ
れ、レジスタ5及びレジスタ6の値の論理和演算
が行なわれる。この論理和演算の結果がレジスタ
6に与えられ蓄積される。 Next, the arithmetic operation of the arithmetic circuit 3 is selected as OR, and the values of the registers 5 and 6 are ORed. The result of this OR operation is given to register 6 and stored.
演算回路3が次いで下シフト状態に選択され、
レジスタ5にセツトされている値が同一番地ライ
ン上で1ビツト下位にシフトされ、その出力がレ
ジスタ5にセツトされる。このレジスタ5にセツ
トされた値と前回の演算で得られレジスタ6に蓄
積されている値が、演算回路3の演算動作が論理
和に選択されて行なわれる。この演算値がレジス
タ5にセツトされる。この結果は第5図bに示す
ような黒画素画像に対応するものである。このよ
うにこの発明では、検出された枠外像はレジスタ
4にセツトされ、その枠外像を基にした演算によ
り、枠外像及びその上下の各1画素分を含む探索
領域が設定される。 Arithmetic circuit 3 is then selected to shift down,
The value set in register 5 is shifted one bit lower on the same first line, and its output is set in register 5. The value set in the register 5 and the value obtained in the previous operation and stored in the register 6 are selected for the arithmetic operation of the arithmetic circuit 3 as a logical sum. This calculated value is set in register 5. This result corresponds to a black pixel image as shown in FIG. 5b. As described above, in the present invention, the detected out-of-frame image is set in the register 4, and a search area including the out-of-frame image and one pixel each above and below the out-of-frame image is set by calculation based on the out-of-frame image.
探索領域が設定されると、枠外像と隣接する第
1縦画素線を読出して、探索領域と対応する第1
縦画素線の各画素について黒画素が存在するか否
かを判定する。そのために先ず、記憶回路1から
データバス7を介してn―1番地、即ち文字枠間
番地と隣接する文字枠内の番地の第5図cに示す
黒画素画像の内容が読み出されてレジスタ6にセ
ツトされる。演算回路3の演算動作が論理積に選
択され、すでにレジスタ5にセツトされている第
5図bに示す黒画素画像の内容と、レジスタ6に
セツトされている第5図cに示す黒画素画像の内
容との論理積演算が行なわれる。この演算結果は
レジスタ5にセツトされるが、これは第5図dに
示す黒画素画像に対応するものである。 When the search area is set, the first vertical pixel line adjacent to the out-of-frame image is read out, and the first vertical pixel line corresponding to the search area is read out.
It is determined whether a black pixel exists for each pixel in the vertical pixel line. To do this, first, the contents of the black pixel image shown in FIG. It is set to 6. The arithmetic operation of the arithmetic circuit 3 is selected as AND, and the contents of the black pixel image shown in FIG. A logical AND operation with the contents of is performed. The result of this operation is set in register 5, which corresponds to the black pixel image shown in FIG. 5d.
このように文字枠間番地を減算しn−1番地の
黒画素画像との間での演算を行なつたのは1文字
目の場合には、その右側から不要部分がくい込ん
でいる可能性があるからである。2文字目の場合
で左側から不要部分がくい込んでいる可能性があ
る場合には、枠外像とその枠外像に対する第1縦
画素線の画像として記憶回路1のアドレスを加算
してn+1番地の黒画素画像との間で論理積演算
を行ない2文字目の場合でも右側から不要部分が
くい込んでいる可能性がある場合には1文字目と
同様にアドレスを減算して得られた番地の黒画素
画像との間で論理積演算を行なう。 In this way, if the address between character frames is subtracted and the operation is performed with the black pixel image at address n-1 for the first character, there is a possibility that unnecessary parts are inserted from the right side. Because there is. In the case of the second character, if there is a possibility that an unnecessary part is digging in from the left side, add the address of the memory circuit 1 as the image outside the frame and the image of the first vertical pixel line for the image outside the frame, and write the black at address n+1. Perform a logical AND operation with the pixel image, and if there is a possibility that unnecessary parts are inserted from the right side even in the case of the second character, subtract the address in the same way as the first character and use the black pixel at the address obtained. Performs an AND operation with the image.
この実施例の場合2文字の枠間に検出された枠
外像に基づいて作成された黒画素画像と、アドレ
スを減算したn−1番地の黒画素画像との論理積
の値が0であれば不要画像部分N1は1文字目の
文字(この場合は2)とは分離していることにな
る。しかしこの実施例の場合には第5図dに示す
ようにこの値が0でないので不要画像部分N1が
どのような形状であるかをさらに追跡する。この
不要画像部分は1ライン以上文字枠内にくい込ん
でいる可能性がある。この状態を明確にするため
に各ラインに対応するノイズゲート信号なるもの
を形成する。この場合のノイズゲート信号は不要
部分の各ライン毎の形状そのものを抽出した値に
等しいものである。例えば1文字目に含まれる不
要画像部分に対応するノイズゲート信号は第6図
aに示すようになる。 In this example, if the value of the logical product of the black pixel image created based on the image outside the frame detected between the frames of two characters and the black pixel image at address n-1 obtained by subtracting the address is 0, then The unnecessary image portion N1 is separated from the first character (2 in this case). However, in this embodiment, since this value is not 0 as shown in FIG. 5d, the shape of the unnecessary image portion N1 is further tracked. This unnecessary image portion may be embedded within the character frame by one or more lines. In order to clarify this state, a noise gate signal corresponding to each line is generated. The noise gate signal in this case is equal to the value obtained by extracting the shape itself of each line of the unnecessary portion. For example, the noise gate signal corresponding to the unnecessary image portion included in the first character is as shown in FIG. 6a.
不要画像部分N1が第5図dに示す黒画素画像
を起点としてまず上にのびているかどうかを追跡
する。即ち、先づ前回迄の演算でレジスタ5にセ
ツトされている第5図dに示す黒画素画像に対し
て演算回路3が上シフト状態に選択されてシフト
演算が行なわれる。この結果がレジスタ6にセツ
トされる。演算回路3が論理和演算に選択されレ
ジスタ5とレジスタ6の値の論理和がとられる。
この結果第5図eに示す黒画素画像に対応するも
のが得られる。この結果がレジスタ5にセツトさ
れる。 First, it is tracked whether or not the unnecessary image portion N1 extends upward from the black pixel image shown in FIG. 5d. That is, first, the arithmetic circuit 3 is selected to be in the upward shift state and a shift operation is performed on the black pixel image shown in FIG. 5D that has been set in the register 5 in the previous operation. This result is set in register 6. Arithmetic circuit 3 is selected for a logical sum operation, and the values of registers 5 and 6 are logically summed.
As a result, an image corresponding to the black pixel image shown in FIG. 5e is obtained. This result is set in register 5.
次いで記憶回路1からデータバス7を介してn
−1番地の第5図fに示す黒画素画像の内容が読
み出されレジスタ6にセツトされ、このレジスタ
6の値とレジスタ5の値との論理積が演算回路3
で演算される。この論理積演算の結果は第5図g
に示す黒画素画像に対応するものが得られる。 Then from the memory circuit 1 via the data bus 7
The contents of the black pixel image shown in FIG.
It is calculated by The result of this AND operation is shown in Figure 5g.
An image corresponding to the black pixel image shown in is obtained.
次に演算回路3が排他的論理和状態に選択され
上の論理積演算で得られレジスタ6にセツトされ
ている値とレジスタ5の第5図eに示す黒画素画
像の内容との排他的論理和演算が行なわれる。そ
の結果は第5図hに示すような黒画素画像に対応
するものが得られる。 Next, the arithmetic circuit 3 is selected to be in the exclusive OR state, and the exclusive logic between the value obtained by the above AND operation and set in the register 6 and the contents of the black pixel image shown in FIG. 5e in the register 5 is performed. A sum operation is performed. As a result, an image corresponding to a black pixel image as shown in FIG. 5h is obtained.
同図hに示す排他的論理和の結果が0というこ
とはn−1番地のラインの不要画像部分が上にの
びていることを意味し、この排他的論理和の結果
が0でないということはn−1番地のラインの不
要画像部分がさらに上にはのびていないことを意
味している。従つて同図hに示す前記排他的論理
和の値が0でなくなるまで第5図dに示す黒画素
画像の同一番地ライン上での上限値のシフトを重
ね、このようにして得た黒画素画像とn−1番地
の黒画素画像との論理積をくり返してn−1番地
に対応する12ライン目の不要画像部分の最上位ビ
ツトの位置を抽出する。この実施例の場合には1
回の演算操作で同図hに示す排他的論理和の値が
0でなくなるのでこの動作は終了し最初に得られ
た第5図dに示す黒画素画像がノイズゲート信号
の一部となつていて不要画像部分N1はn−1番
地のライン上では第5図dを起点として上にはの
びていないことがわかる。 The fact that the result of the exclusive OR shown in h of the figure is 0 means that the unnecessary image part of the line at address n-1 extends upwards, and the fact that the result of this exclusive OR is not 0 means that the result of the exclusive OR is not 0. This means that the unnecessary image portion of the line at address -1 does not extend further upwards. Therefore, the upper limit value of the black pixel image shown in FIG. 5D is repeatedly shifted on the same ground line until the value of the exclusive OR shown in FIG. The logical product of the image and the black pixel image at address n-1 is repeated to extract the position of the most significant bit of the unnecessary image portion on the 12th line corresponding to address n-1. In this example, 1
After this operation, the exclusive OR value shown in Figure 5h is no longer 0, so this operation ends and the black pixel image obtained initially, shown in Figure 5D, becomes part of the noise gate signal. It can be seen that the unnecessary image portion N1 does not extend upward from the starting point d in FIG. 5 on the line at address n-1.
次にn−1番地に対応する12ライン目の不要画
像部分が下にのびている可能性があるので、この
ことを確認するため下方にさらに追跡を行なう必
要がある。ノイズゲート信号の一部を形成してい
ることが上述の追跡で判明した第5図dに示す黒
画素画像の同一ライン下限値を1ビツト下にシフ
トした黒画素画像と同図dに示す黒画素画像との
論理和を演算して同図jに示すような黒画素画像
を作成する。このようにして得られた黒画素画像
と記憶回路1のn−1番地の黒画素画像の内容と
の論理積を演算して同図lに示す黒画素画像を得
る。上方追跡の場合と同様にこのようにして得ら
れた同図lに示す黒画素画像とjに示す黒画素画
像との排他的論理和をとるとこの実施例の場合に
はその値が0となる。この状態が同図mに示され
ている。 Next, since there is a possibility that the unnecessary image portion of the 12th line corresponding to address n-1 extends downward, it is necessary to perform further downward tracking to confirm this. The same line lower limit value of the black pixel image shown in Fig. 5d, which was found to form part of the noise gate signal by the above-mentioned tracking, is shifted down by 1 bit, and the black pixel image shown in Fig. 5d. By calculating the logical sum with the pixel image, a black pixel image as shown in FIG. The black pixel image thus obtained and the contents of the black pixel image at address n-1 in the storage circuit 1 are logically ANDed to obtain the black pixel image shown in FIG. As in the case of upward tracking, if we take the exclusive OR of the black pixel image shown in FIG. Become. This state is shown in figure m.
この状態はn−1番地に対応する12ライン目の
不要画像部分N1がさらに下にのびていることを
意味している。従つてこの場合には前記の上方追
跡の場合に準じて下方追跡を継続する。即ち第5
図iに示す黒画素画像の同一番地ライン上での下
限値のシフトを重ね同図i〜mの動作をくり返し
行ない下限画素を順次下方に延長して得た黒画素
画像と記憶回路1のn−1番地の黒画素画像との
論理積をとる。次いでこの論理積の演算で得た黒
画素画像と下限画素を順次下方に延長して得た黒
画素画像との排他的論理和を演算しこの値が0で
なくなるまでこの操作を行なう。このような演算
をくり返すことにより最終的に枠外像n1に対する
第1縦画素線であるn−1番地に対応する12ライ
ン目のノイズゲート信号として第5図nに示すも
のが得られる。 This state means that the unnecessary image portion N1 on the 12th line corresponding to address n- 1 extends further down. Therefore, in this case, downward tracking is continued in the same manner as in the case of upward tracking. That is, the fifth
The black pixel image obtained by shifting the lower limit value on the same ground line of the black pixel image shown in FIG. Performs a logical product with the black pixel image at address -1. Next, an exclusive OR is calculated between the black pixel image obtained by this AND operation and the black pixel image obtained by sequentially extending the lower limit pixels downward, and this operation is performed until this value is no longer 0. By repeating such calculations, the noise gate signal shown in FIG. 5n is finally obtained as the noise gate signal of the 12th line corresponding to address n- 1 , which is the first vertical pixel line for the out-of-frame image n1.
このようにして得られた第5図nに示す黒画素
部分が、枠外像と連続して第1縦画素線に存在す
る黒画素部分である。この第5図nに示す画像は
第1縦画素線に対する判定結果として記憶回路1
に記憶される。次に、第1縦画素線と隣接する第
2縦画素線に、第5図nに示した黒画素部分と連
続する黒画素が存在するか否かを判定する。この
場合も上述の過程と同様に第5図nに示すn−1
番地に対応する12ライン目のノイズゲート信号に
基にしてこれを第5図aの黒画素画像に対応付け
て演算操作を開始すればよい。この場合の演算過
程の詳細な重複説明は省略するが最終的には第5
図oに示すノイズゲート信号が得られる。 The black pixel portion shown in FIG. 5n obtained in this way is a black pixel portion that exists in the first vertical pixel line continuous with the out-of-frame image. The image shown in FIG.
is memorized. Next, it is determined whether or not there is a black pixel continuous with the black pixel portion shown in FIG. 5n in the second vertical pixel line adjacent to the first vertical pixel line. In this case as well, n-1 shown in FIG.
Based on the noise gate signal of the 12th line corresponding to the address, it is sufficient to associate this with the black pixel image of FIG. 5a and start the arithmetic operation. A detailed explanation of the calculation process in this case will be omitted, but ultimately the fifth
The noise gate signal shown in Figure o is obtained.
第2縦画素線であるn−2番地に対応する11ラ
イン目の抽出完了後、引き続いて第3縦画素線で
あるn−3番地に対応する10ライン目のノイズゲ
ート信号の抽出が行なわれる。この場合にはn−
2番地に対応する11ライン目の抽出で得られた同
図oに示すn−2番地に対応する11ライン目のノ
イズゲート信号を基にしてこれを同図aの黒画素
画像に対応付けて同様に演算操作を開始するとよ
い。この場合も演算操作の過程の詳細説明は省略
するが第5図bとcの動作に対応する段階で演算
出力が0となるので不要部分N1は3ライン以上
は文字部分にくい込んでいないことになる。 After the extraction of the 11th line corresponding to address n-2, which is the second vertical pixel line, is completed, the noise gate signal of the 10th line corresponding to address n-3, which is the third vertical pixel line, is extracted. . In this case n-
Based on the noise gate signal of the 11th line corresponding to address n-2 shown in o in the same figure, which was obtained by extracting the 11th line corresponding to address 2, this is associated with the black pixel image in a in the figure It is a good idea to start arithmetic operations in the same way. In this case as well, a detailed explanation of the process of arithmetic operations will be omitted, but since the arithmetic output becomes 0 at the stage corresponding to the operations shown in Figure 5 b and c, it is important to note that the unnecessary part N1 does not embed more than 3 lines into the character part. become.
この実施例ではこゝまでの操作の過程で第4図
bの黒画素n1を基にしたノイズゲート信号の作成
動作は終了し、その結果として第6図aに示すよ
うなノイズゲート信号が得られこれが記憶回路1
に記憶される。 In this embodiment, the operation of creating the noise gate signal based on the black pixel n1 in FIG. 4b is completed in the process of the operations up to this point, and as a result, the noise gate signal as shown in FIG. 6a is generated. This is the memory circuit 1
is memorized.
次に第4図cに示す黒画素n2の位置を起点とし
て黒画素n1の位置を起点とした場合と同様にして
ノイズゲート信号の作成動作を行なう。この場合
の動作の詳細な重複説明は省略するが、この場合
には前述のmライン(例えば4ライン)以上文字
の境界からくい込んでいないという不要部分の条
件bを満足せず、mライン以上動作を行なつても
分離できないので12〜9ラインのノイズゲートを
リセツトしてこれは不要画像部分とは判定しな
い。 Next, a noise gate signal is generated in the same manner as in the case where the position of black pixel n 2 is used as the starting point and the position of black pixel n 1 is used as the starting point, as shown in FIG. 4c. A detailed explanation of the operation in this case will be omitted, but in this case, the above-mentioned condition b of the unnecessary part that does not extend beyond the character boundary by more than m lines (for example, 4 lines) is not satisfied, and the operation is performed by more than m lines. Since the noise gates for lines 12 to 9 cannot be separated even after doing this, the noise gates for lines 12 to 9 are reset and these are not determined to be unnecessary image parts.
以上に説明した一連の動作によつて第6図aに
示すような1文字目のノイズゲート信号が得られ
るとになり、このノイズゲート信号は第2図aに
示す不要画像部分の形状と完全に一致する。 Through the series of operations described above, a noise gate signal for the first character as shown in Figure 6a is obtained, and this noise gate signal is completely identical to the shape of the unnecessary image part shown in Figure 2a. matches.
従つて第2図aに示す不要画像部分を含んだ文
字枠内に存在する文字パターンと第6図aに示す
1文字目の不要画像部分の信号のコンプリメント
との論理積を演算することにより雑音画像となる
不要画像部分のみを除去することが可能で第3図
aに示す画像信号が得られる。 Therefore, by calculating the logical product of the character pattern existing in the character frame including the unnecessary image part shown in FIG. 2a and the complement of the signal of the unnecessary image part of the first character shown in FIG. 6a, It is possible to remove only the unnecessary image portion that becomes a noise image, and the image signal shown in FIG. 3a is obtained.
2文字目の処理も同様に行なわれ、この場合に
は、枠外像n1,n2を起点とし、これら枠外像n1,
n2と、これに隣接する第1縦画素線の画像として
記憶回路1のアドレスを加算しn+1番地の黒画
素画像との演算を行なわせるようにすればよい。
このような処理を行なうことにより結局第6図b
に示すノイズゲート信号が得られる。従つて第2
図bに示すような不要画像部分N1を含んだ2文
字目の文字枠内に存在する文字パターンと第6図
bに示す2文字目の不要画像部分の信号とのコン
プリメントとの論理積を演算することにより不要
画像部分を除去した第3図bに示すような画像信
号が得られる。 Processing for the second character is performed in the same way, and in this case, starting from the out-of-frame images n 1 , n 2 , these out-of-frame images n 1 ,
n2 and the address of the storage circuit 1 as the image of the first vertical pixel line adjacent thereto may be added to perform an operation with the black pixel image at address n+1.
By performing such processing, the result shown in Fig. 6b is
The noise gate signal shown in is obtained. Therefore, the second
The logical product of the character pattern existing in the character frame of the second character including the unnecessary image part N1 as shown in Figure b and the complement of the signal of the unnecessary image part of the second character shown in Figure 6b. By calculating , an image signal as shown in FIG. 3b from which unnecessary image portions have been removed can be obtained.
さらに第1図に示す3文字目については2文字
目との境界領域での不要部分の画素信号値(n+
13番地の値)が0なので不要画像部分は存在せず
雑音画像は発生しないと判断する。さらに1文字
中に複数個の不要部分が混入した状態でもこの発
明によれば全く同様の処理を行なつて雑音画像と
判断される不要画像部分を除去することができる
のはいうまでもない。なお第7図に示したこの発
明の実施例の回路は現在のデイジタル技術下にお
いては一般にマイクロプロセツサーを用いて簡単
に構成することができる。前述の不要部分除去の
アルゴリズムは論理積、論理和、排他的論理和と
シフト演算の組合せであり、このような演算動作
はマイクロプロセツサーを使用して容易に実現可
能である。 Furthermore, regarding the third character shown in Figure 1, the pixel signal value (n+
Since the value at address 13) is 0, it is determined that no unnecessary image portion exists and no noise image is generated. Furthermore, it goes without saying that even when a plurality of unnecessary image parts are mixed in one character, according to the present invention, the same process can be performed to remove the unnecessary image parts that are determined to be noise images. Note that the circuit of the embodiment of the present invention shown in FIG. 7 can generally be easily constructed using a microprocessor under current digital technology. The algorithm for removing unnecessary parts described above is a combination of logical AND, logical OR, exclusive OR, and shift operations, and such arithmetic operations can be easily realized using a microprocessor.
以上詳細に説明したように、この発明の雑音画
像除去装置は、その構成が簡単であり、動作も単
純なシフト動作、論理和演算、論理積演算及び加
算演算の組合せで複雑な操作を要せずに雑音画像
を除去した文字画像を迅速正確に得ることが可能
である。 As described in detail above, the noise image removal device of the present invention has a simple configuration and operates by combining a simple shift operation, an OR operation, an AND operation, and an addition operation without requiring complex operations. It is possible to quickly and accurately obtain a character image from which noise images have been removed.
第1図は記憶回路に蓄積される状態の量子化さ
れた文字を示す図、第2図は各文字の計算上の境
界ラインで各文字を分離した状態を示す図、第3
図は第2図のパターンから不要画像部分を除去し
た状態を示す図、第4図は1文字目と2文字目の
文字枠間に存在する像を2つの黒のブロツクに分
割した状態を示す図、第5図は1文字目の不要画
像部分を除去する過程での演算結果を示す図、第
6図は1文字目と2文字目の抽出された不要画像
部分を示す図、第7図はこの発明の実施例の構成
を示すブロツク図である。
1:記憶回路、2:アドレスレジスタ、3:演
算回路、4,5,6:レジスタ、7:データバ
ス。
Figure 1 is a diagram showing quantized characters stored in a memory circuit, Figure 2 is a diagram showing each character separated by a calculation boundary line, and Figure 3 is a diagram showing a state in which each character is separated by a calculation boundary line.
The figure shows a state in which unnecessary image parts have been removed from the pattern in Fig. 2, and Fig. 4 shows a state in which the image existing between the character frames of the first and second characters has been divided into two black blocks. Figure 5 is a diagram showing the calculation results in the process of removing the unnecessary image part of the first character, Figure 6 is a diagram showing the extracted unnecessary image part of the first and second characters, and Figure 7 1 is a block diagram showing the configuration of an embodiment of the present invention. FIG. 1: Memory circuit, 2: Address register, 3: Arithmetic circuit, 4, 5, 6: Register, 7: Data bus.
Claims (1)
画素が2値の何れかをとる2値画像とする手段
と、 隣接する文字枠間に存在する2値画像を枠外像
として検出する枠外像検出手段と、 検出された枠外像を起点としてそれを上下に拡
大して探索領域とし、これと一方に隣接する文字
枠の第1縦画素線の対応画素毎に前記枠外像に連
続する黒画素が存在するか否かを判定し、 その判定した黒画素部分を上下に拡大して探索
領域とし、これと第2縦画素線の対応画素毎に前
記黒画素部分に連続する黒画素が存在するか否か
を判定し、 以下同様の処理を前記文字枠内の縦画素線につ
いて順次繰り返し、新たに設定された探索領域と
対応する全ての画素にその縦画素線の黒画素が存
在しないと判定すると、それまでに連続すると判
定された黒画素部分をノイズゲート信号とし、 前記判定する処理を所定回数繰り返しても探索
領域と対応する画素に黒画素が存在する場合はそ
れまでに連続すると判定された黒画素部分を前記
枠外像に係わるノイズゲート信号とはしないノイ
ズゲート信号検出手段と、 前記文字枠内の画像を示す画像信号から前記検
出されたノイズゲート信号で、これと対応する部
分を除去する手段と、 を有することを特徴とする雑音画像除去装置。[Claims] 1. Means for converting a target image consisting of pixels arranged vertically and horizontally into a binary image in which each pixel takes one of two values, and converting a binary image existing between adjacent character frames into an outside-frame image. an out-of-frame image detection means for detecting an out-of-frame image; It is determined whether or not there are continuous black pixels, and the determined black pixel portion is expanded vertically to form a search area, and each corresponding pixel of this and the second vertical pixel line is continuous to the black pixel portion. It is determined whether a black pixel exists or not, and the same process is repeated sequentially for the vertical pixel lines in the character frame, and the black pixels of that vertical pixel line are added to all pixels corresponding to the newly set search area. If it is determined that the black pixels do not exist, the black pixel portion that has been determined to be continuous up to that point is used as a noise gate signal. noise gate signal detection means that does not use a black pixel portion that is determined to be continuous with the image outside the frame as a noise gate signal related to the image outside the frame; A noise image removal device comprising: means for removing a corresponding portion;
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP9347379A JPS5617574A (en) | 1979-07-23 | 1979-07-23 | Noise picture eliminating device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP9347379A JPS5617574A (en) | 1979-07-23 | 1979-07-23 | Noise picture eliminating device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS5617574A JPS5617574A (en) | 1981-02-19 |
| JPS6239459B2 true JPS6239459B2 (en) | 1987-08-24 |
Family
ID=14083303
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP9347379A Granted JPS5617574A (en) | 1979-07-23 | 1979-07-23 | Noise picture eliminating device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS5617574A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH0223452U (en) * | 1988-07-30 | 1990-02-16 |
Families Citing this family (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS581274A (en) * | 1981-06-26 | 1983-01-06 | Fujitsu Ltd | Character cut-out system |
| JPS5953983A (en) * | 1982-09-21 | 1984-03-28 | Toshiba Corp | Detecting and segmenting method of character |
| JPS6083186A (en) * | 1983-10-14 | 1985-05-11 | Nec Corp | Character recognizer |
| JPS63163684A (en) * | 1986-12-26 | 1988-07-07 | Toshiba Corp | Character pattern segmentation device |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS522339A (en) * | 1975-06-24 | 1977-01-10 | Nec Corp | Unnecessary portion eliminating equipment in pattern identifying equip ment |
-
1979
- 1979-07-23 JP JP9347379A patent/JPS5617574A/en active Granted
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH0223452U (en) * | 1988-07-30 | 1990-02-16 |
Also Published As
| Publication number | Publication date |
|---|---|
| JPS5617574A (en) | 1981-02-19 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5619592A (en) | Detection of highlighted regions | |
| US5048109A (en) | Detection of highlighted regions | |
| US4162482A (en) | Pre-processing and feature extraction system for character recognition | |
| EP0173098A2 (en) | Pattern outline tracking method and apparatus | |
| JPH0467234B2 (en) | ||
| JPH0315793B2 (en) | ||
| JPS59136875A (en) | Pattern identifier | |
| JPS6239459B2 (en) | ||
| JP4253265B2 (en) | Shadow detection apparatus, shadow detection method and shadow detection program, image processing apparatus using shadow detection apparatus, image processing method using shadow detection method, and image processing program using shadow detection program | |
| CN114782586B (en) | A method for automatically generating sketch painting sequence sets | |
| JP3379663B2 (en) | Character recognition device | |
| JP2853140B2 (en) | Image area identification device | |
| JP3193943B2 (en) | Image processing device | |
| JP2688666B2 (en) | How to vectorize shapes | |
| JPH04205271A (en) | Optimal binarization threshold determination method | |
| JPH05191649A (en) | Image binarization circuit | |
| JP2506071B2 (en) | Contour tracking device | |
| JP3061830B2 (en) | Image processing device | |
| JP4129320B2 (en) | Image processing apparatus and recording medium | |
| JPH0620091A (en) | Character size extraction method | |
| JPH01319872A (en) | Distortion measuring method and device by lattice picture | |
| KR100332753B1 (en) | Image processing method of image processing system | |
| JP2985981B2 (en) | Binary image feature extraction method and image processing system using the same | |
| JPH08241376A (en) | Character recognition device and character recognition method | |
| JPS6410872B2 (en) |