JP3103387B2 - Adaptive binarization method for gray image - Google Patents

Adaptive binarization method for gray image

Info

Publication number
JP3103387B2
JP3103387B2 JP03065669A JP6566991A JP3103387B2 JP 3103387 B2 JP3103387 B2 JP 3103387B2 JP 03065669 A JP03065669 A JP 03065669A JP 6566991 A JP6566991 A JP 6566991A JP 3103387 B2 JP3103387 B2 JP 3103387B2
Authority
JP
Japan
Prior art keywords
image
pixel
noise
character
binary
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 - Fee Related
Application number
JP03065669A
Other languages
Japanese (ja)
Other versions
JPH04278688A (en
Inventor
雅哉 福井
浩貴 坪田
富雄 戎
Original Assignee
グローリー工業株式会社
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 グローリー工業株式会社 filed Critical グローリー工業株式会社
Priority to JP03065669A priority Critical patent/JP3103387B2/en
Publication of JPH04278688A publication Critical patent/JPH04278688A/en
Application granted granted Critical
Publication of JP3103387B2 publication Critical patent/JP3103387B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Character Input (AREA)

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は、種々の帳票等に手書き
された文字等を記入枠も含めて多値の濃淡画像として読
取り、手書きされた文字等を認識するための前処理とし
て多値の濃淡画像を2値の画像に変換するための方
関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention reads multi-valued gray-scale images of characters and the like handwritten on various forms, including entry frames, and performs multi-valued preprocessing for recognizing the hand-written characters and the like. the grayscale image regarding <br/> to how to convert a binary image.

【0002】[0002]

【従来の技術】例えば、米国の小切手に手書きされた金
額数字を認識する方法として特開平1−116782号
公報に示すものがあるが、認識処理を行なう前に、小切
手からイメージセンサ等で読取った多値の濃淡画像を前
処理として2値データに変換しておかねばらなない。こ
の2値化に際しては、読取った濃淡データの階調の分布
状態から固定的なしきい値を決定し、そのしきい値に対
する大小により2値化していた。
2. Description of the Related Art For example, Japanese Patent Laid-Open Publication No. 1-116782 discloses a method for recognizing a money amount handwritten on a check in the United States. Before recognition processing, the check is read by an image sensor or the like. A multi-valued gray image must be converted into binary data as preprocessing. In the binarization, a fixed threshold value is determined from the distribution state of the gradation of the read grayscale data, and the binarization is performed according to the magnitude of the threshold value.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、手書き
である為に場合によっては文字のかすれや途切れがあ
り、これらの部分は2値化では消されてしまっている。
また、途切れが発生し易いものについては、認識処理の
方で別途パターンを設けておけば救済できるが、文字の
かすれに対しては万全ではなく、誤認識又は認識不能と
なっていた。
However, in some cases, characters are blurred or interrupted due to handwriting, and these portions are erased by binarization.
In the case where a break is likely to occur, it can be remedied by providing a separate pattern in the recognition process. However, blurring of characters is not thorough and incorrect recognition or recognition is impossible.

【0004】さらに、文字の記入枠は細線以外にも網点
状のものがあり、バックグラウンド(地)の部分にも網
点状の模様がある小切手も多く、バックグラウンドの模
様も一様ではない。この為、これら網点状の部分は、2
値化の際に消えずにノイズとして残ることが多く、後段
の認識処理に負担がかかると共に、誤認識や認識不能と
なるものが多くあった。
[0004] Further, there are halftone dots in the character entry frame in addition to the fine lines, and there are many checks in which the background (ground) portion has a halftone dot pattern, and the background pattern is not uniform. Absent. For this reason, these halftone dots are
In many cases, the noise remains without being erased at the time of value conversion, so that a burden is placed on recognition processing in a later stage, and in many cases, erroneous recognition or recognition becomes impossible.

【0005】本発明は上記課題に鑑みてなされたもので
あり、本発明の目的は、記入枠及び網点(ドット)状模
等のノイズのみを消すと共に、文字の途切れ、かすれ
は修復して後段の認識処理に負担をかけない適応的な2
値化方を提供することにある。
The present invention has been made in view of the above problems, and an object of the present invention is to provide an input frame and a halftone dot (dot) pattern.
Along with the erase only the noise of the like, etc., interruption of character, blur is a adaptive not put a burden on the subsequent stage of the recognition process to repair 2
It is to provide a Nekakata method.

【0006】[0006]

【課題を解決するための手段】本発明は、細線、破線、
網点等で記入枠が指定され、網点状模様を有する地の部
分に自由に手書きされた複数個の文字を、前記記入枠全
体を含めて多値の濃淡画像として読取って2値化する方
に関するもので、本発明の上記目的は、前記濃淡画像
の各画素に対して、その画素の近傍の濃度と比較してし
きい値を前記各画素毎に決定して2値化し、前記記入枠
及び前記網点状模様等のノイズの除去は不完全ではある
が前記文字のかすれ部分を修復した第1の特徴画像を作
する一方、前記濃淡画像の各画素から前記ノイズ部分
のみを抽出した2値画像を作成すると共に前記しきい値
を変更して前記ノイズ及び前記文字のかすれ部分を消去
した2値画像を作成し、これら2つの2値画像の各画素
を比較、判定して前記文字のかすれ部分と前記ノイズの
双方を除去した第2の特徴画像を作成し、しかる後、
記第1の特徴画像と前記第2の特徴画像の各画素を比
較、判定することにより、前記ノイズのみを除去して前
記文字のかすれ部分修復し最適な2値画像を得るよ
うにすることによって達成される。
SUMMARY OF THE INVENTION The present invention provides thin lines, broken lines,
A plurality of characters freely designated by hand on a ground portion having a halftone dot pattern are read as a multi-valued grayscale image including the entire entry frame and binarized. One
Relates to law, the object of the present invention, for each pixel of the gray image, binarized to determine a threshold value for each said pixel as compared to the concentration in the vicinity of the pixel, the fill frame
And removal of noise such as the dot-like pattern is the incomplete
The noise part but while creating a first feature image repair blurring portion of the character, from the pixels of the grayscale image
Create a binary image by extracting only
To eliminate the noise and blurred parts of the characters
A binary image is created, and each pixel of these two binary images is
Comparing and determining the blurred portion of the character and the noise
A second feature image from which both have been removed is created, and then each pixel of the first feature image and the second feature image is compared.
This is achieved by comparing and judging to obtain an optimal binary image in which only the noise is removed and the blurred portion of the character is restored.

【0007】[0007]

【作用】本発明では濃淡画像を2値化するのに、固定又
は可変的なしきい値を用いて行なうのではなく、画素の
回りの状況を考慮した適応的な手法を用いている。すな
わち、原画像(濃淡画像)に対してバイアス値の異なる
2種の近傍濃度比較処理を行なうと共に、ドット抽出処
理を並列的に施しており、その後にノイズレス画像作成
処理と近傍エリア探索処理を行なっている。更には中抜
け防止画像を作成して、画像の太い部分に生じる中抜け
を除去して、完全化を図っている。
According to the present invention, binarization of a grayscale image is not performed by using a fixed or variable threshold value, but by an adaptive method taking into account the situation around pixels. That is, two types of neighborhood density comparison processes having different bias values are performed on the original image (shade image), and the dot extraction process is performed in parallel. Thereafter, the noiseless image creation process and the neighborhood area search process are performed. ing. Furthermore, a hollowing-out prevention image is created, and hollowing-out occurring in a thick portion of the image is removed to complete the image.

【0008】[0008]

【実施例】図1は本発明の2値化方の概要を示す流れ
図であり、文字のかすれ、途切れ(以下「文字のかす
れ」という)記入枠及び網点状の模様等のノイズ(以
下「ノイズ」という)がある原画像(濃淡画像)1は例
えば、元の濃淡画像を最暗部を0、最明部を63とする
64段階の濃淡で各画素毎に記憶されたものであり、こ
の原画像(濃淡画像)1は、近傍濃度比較処理(ステッ
プS10) 、ドット抽出処理(ステップS20) 、近傍
濃度大バイアス比較処理(ステップS30) 及び中抜け
防止画像作成処理(ステップS40) で並列的に処理さ
れる。近傍濃度比較処理(ステップS10) で処理され
ると2値画像2となり、そのデータは近傍エリア探索処
理(ステップS60) に送られる。
DETAILED DESCRIPTION FIG. 1 is a flowchart outlining an 2 Nekakata method of the present invention, blurring of characters, interrupted (dregs of the "Character
Re "hereinafter) and the entry frame and dot-like pattern or the like of noise (hereinafter
An original image (grayscale image) 1 having a lower “noise” is, for example, an original grayscale image that is stored for each pixel in 64 levels of shades, with the darkest part being 0 and the brightest part being 63. The original image (shade image) 1 is subjected to a neighborhood density comparison process (step S10), a dot extraction process (step S20), a neighborhood density large bias comparison process (step S30), and a center hole prevention image creation process (step S40). Processed in parallel. When processed in the neighborhood density comparison process (step S10), the binary image 2 is obtained, and the data is sent to the neighborhood area search process (step S60).

【0009】また、ドット抽出処理(ステップS20)
で処理された2値画像3と、近傍濃度大バイアス比較処
理(ステップS30) で処理された2値画像4とは共に
ノイズレス画像作成処理(ステップS50) に送られ、
その処理で作成された2値画像6は近傍エリア探索処理
(ステップS60)に送られる。近傍エリア探索処理
(ステップS60) で処理された2値画像7は中抜け防
止処理(ステップS70) に送られる。これと共に、中
抜け防止画像作成処理(ステップS40) で作成された
2値画像5も中抜け防止処理(ステップS70) に送ら
れ、ここで処理された画像は2値の処理画像8となる。
Further, a dot extraction process (step S20)
Both the binary image 3 processed in step (1) and the binary image 4 processed in the neighborhood density large bias comparison processing (step S30) are sent to a noiseless image creation processing (step S50).
The binary image 6 created in that process is sent to the nearby area search process (step S60). The binary image 7 processed in the nearby area search processing (step S60) is sent to the center loss prevention processing (step S70). At the same time, the binary image 5 created in the centering prevention image creation process (step S40) is also sent to the centering prevention process (step S70), and the processed image becomes a binary processed image 8.

【0010】図2は近傍濃度比較処理(ステップS1
0) の動作例を示すフローチャートであり、先ずiに画
素番号を設定し(ステップS11) 、図3の(D),
(E)及び図4の(C),(D)に示すように画素a
を中心とする3×3のエリア内の画素の濃淡の最大値
(そのエリア内で最も明るい画素の値)をmax1とす
る(ステップS12) 。尚、図3の(D),(E)及び
図4の(C),(D)における斜線部が画像を示してい
る。次に、画素aを中心とする9×9のエリア内の画
素の濃淡の最大値をmax4とする。図3の(D)に示
すような網点状模様の場合、最大値max1及びmax
4は図3の(A)のようになり、図3の(E)に示すよ
うな文字部の場合の最大値max1及びmax4は図3
の(B)のようになる。同図(B)の破線は文字がかす
れている場合の様子を示している。また、図3の(C)
は、バックグラウンド(地)を読取った場合における最
大値max1及びmax4を示している。
FIG. 2 shows a neighborhood density comparison process (step S1).
0) is a flowchart showing an operation example of FIG. 3A. First, a pixel number is set to i (step S11), and (D) and (D) of FIG.
(E) and FIG. 4 (C), the pixel a i as shown in (D)
The maximum value of the density of the pixels in the 3 × 3 area (the value of the brightest pixel in the area) is set to max1 (step S12). Note that the hatched portions in (D) and (E) of FIG. 3 and (C) and (D) of FIG. 4 indicate images. Next, let the maximum value of the shading of the pixel in the 9 × 9 area centered on the pixel a i be max4. In the case of a halftone dot pattern as shown in FIG. 3D, the maximum values max1 and max
4 is as shown in FIG. 3A, and the maximum values max1 and max4 in the case of a character portion as shown in FIG.
(B). The dashed line in FIG. 7B shows the case where characters are blurred. In addition, FIG.
Indicates the maximum values max1 and max4 when the background (ground) is read.

【0011】上述のようにして最大値max1及びma
x4を求めた後、
As described above, the maximum values max1 and ma
After finding x4,

【0012】[0012]

【数1】max1>(max4−bias) であるか否かの判定を行ない(ステップS14) 、そう
であれば文字でないとみなして画素a=0とし(ステ
ップS15) 、数1が成立しなければ文字とみなして画
素a=1とする(ステップS16) 。従って、図3の
(A),(D)及び(C)の場合はa=0となり、図
3の(B),(E)の場合はa=1となる。つまり文
字のかすれ部分はa=1となる為、修復されたことに
なる。上述の動作を全画素について繰り返すことにより
(ステップS17,S18) 、画像全体を2値化するこ
とができ、図1の画像2に示すように小さな網点状模様
は残らない。
## EQU1 ## It is determined whether or not max1> (max4-bias) (step S14). If so, it is determined that the pixel is not a character, and pixel a i = 0 (step S15). If not, it is regarded as a character and the pixel a i = 1 (step S16). Therefore, in the case of (A), (D), and (C) of FIG. 3, a i = 0, and in the case of (B), (E) of FIG. 3, a i = 1. That is, the blurred portion of the character is a i = 1, which means that the character has been restored. By repeating the above operation for all pixels (steps S17 and S18), the entire image can be binarized, and a small halftone dot pattern does not remain as shown in image 2 in FIG.

【0013】ところが、図4の(C)に示すような太い
文字部の場合の読取濃淡は図4の(A)のようになるの
で、数1が成立して画素a=0となり、画像2に示す
ような中抜け(画像中の白部)が生じる。また、図4の
(D)に示すような大きな網点状模様の場合の読取濃淡
は図4の(B)のようになるので、数1が成立せず画素
=1となる。つまり、大きな網点状模様はノイズと
して残ってしまう。以上より、原画像1に対して近傍濃
度比較処理(ステップS10) を施すと2値画像2とな
る。この2値画像2が第1の特徴画像に相当する。この
近傍濃度比較処理ではノイズの除去は不完全であるが、
文字のかすれ部分は修復されている。
However, as shown in FIG.
Since the reading density in the case of the character portion is as shown in FIG. 4A, the expression 1 is established and the pixel a i = 0, and a hollow portion (white portion in the image) as shown in image 2 occurs. . In addition, since the reading density in the case of a large halftone dot pattern as shown in FIG. 4D is as shown in FIG. 4B, the equation 1 does not hold and the pixel a i = 1. That is, a large halftone dot pattern remains as noise. As described above, when the neighborhood density comparison processing (step S10) is performed on the original image 1, the binary image 2 is obtained. This binary image 2 corresponds to a first feature image. Although noise removal is incomplete in this neighborhood density comparison process,
The faint parts of the letters have been restored.

【0014】図5はドット抽出処理(ステップS20)
の動作例を示すフローチャートであり、先ずiに画素番
号を設定し(ステップS21) 、図6に示す様な画素a
の周囲8画素aij(j=1〜8)に対して
FIG. 5 shows a dot extraction process (step S20).
6 is a flowchart showing an example of the operation. First, a pixel number is set to i (step S21), and a pixel a as shown in FIG.
For eight pixels a ij (j = 1 to 8) around i

【0015】[0015]

【数2】 を算出し、かつ(Equation 2) Is calculated, and

【0016】[0016]

【数3】 を満たす数N(整数)を求める(ステップS22) 。(Equation 3) Is obtained (step S22).

【0017】そして、And

【数4】Δ≦−K であるか否かを判定し(ステップS23) 、そうであれ
ば画素a=1として当該画素を残す(ステップS2
4) 。つまり、画素aから周囲の画素の階調を差引
き、その総和がある一定の値−K以下であるというこ
とはaの周囲にaよりも明るい画素がいくつかある
ということであり、この場合aはドットであると見な
しa=1とする。図7に示す画素aも同様である。
もしステップS23で数4が成立しなければ、
Equation 4] determines whether the delta ≦ -K 1 (step S23), leaving the pixel as a pixel a i = 1 if so (step S2
4). In other words, subtracting the gray level of the surrounding pixels from the pixels a i, that the sum thereof that is a constant value -K 1 below there are some pixels are several brighter than a i around a i In this case, a i is regarded as a dot and a i = 1. The same applies to the pixel ai shown in FIG.
If Equation 4 does not hold in step S23,

【0018】[0018]

【数5】N≧K であるか否かを判定し(ステップS26) 、そうであれ
ば上記ステップS24に進み、そうでなければ画素a
=0として当該画素を消去する(ステップS27) 。つ
まり、総和が−K以下とならなかったとしても画素a
よりもかなり明るい画素(
[Equation 5] N ≧ K3  Is determined (step S26).
If so, the process proceeds to step S24; otherwise, the pixel ai
= 0 and the pixel is erased (step S27). One
Mari, the sum is -K1Does not becomeToutEven pixel a
iPixels that are significantly brighter than

【数3】も満たす)がaの周囲に、一定値K以上あ
るならばaをドットとみなしa=1としている。上
記ステップS24で当該画素a=1として残された
後、周囲の画素も残すようにaij(j=1〜8)=1
とする(ステップS25) 。これはドットをより確実に
表わす為である。上記動作を全画素が終了するまで繰り
返す(ステップS28,S29) 。
Equation 3] also satisfy) is around a i, is set to a i = 1 considers a i a dot if a certain value K 3 above. After the pixel a i = 1 is left in step S24, a ij (j = 1 to 8) = 1 is set so that surrounding pixels are also left.
(Step S25). This is to more reliably represent the dots. The above operation is repeated until all pixels are completed (steps S28 and S29).

【0019】上述のようなドット抽出処理(ステップS
20) を施すことにより、図6の斜線部で示すようなド
ット及び図7の斜線部で示すような細線が抽出される。
このため、図1の原画像1はドット抽出処理(ステップ
S20)で2値画像3のようになる。
The above-described dot extraction processing (step S
20), a dot as shown by a hatched portion in FIG. 6 and a thin line as shown by a hatched portion in FIG. 7 are extracted.
Therefore, the original image 1 in FIG. 1 becomes like a binary image 3 in the dot extraction process (step S20).

【0020】近傍濃度大バイアス比較処理(ステップS
30) は前述した近傍濃度比較処理(ステップS10)
と同様の処理であり、ステップS14の数1におけるb
iasの値が相対的に大きくなり、bias2(>bi
as)となっている点のみが異なっている。図8はその
動作を説明するものであり、同図(C)のような少し大
きなドットも、同図(A)で示すように
Near density large bias comparison processing (step S
30) is the neighborhood density comparison process described above (step S10).
Is the same as that of b in the expression 1 in step S14.
The value of ias becomes relatively large, and bias2 (> bi
as)). FIG. 8 explains the operation, and even a slightly larger dot as shown in FIG.

【0021】[0021]

【数6】max1>(max4−bias2) となるので、画素a=0として消去される。これが、
近傍濃度比較処理(ステップS10) のbiasの大き
さでは
## EQU6 ## Since max1> (max4-bias2), the pixel is erased as ai = 0. This is,
In the neighborhood size comparison process (step S10), the size of the bias is

【0022】[0022]

【数7】max1<(max4−bias) となるため、画素a=1として残ってしまうのであ
る。また、図8の(D)に示すかすれ文字の場合も数5
が成り立つので、画素a=0として消去される。図8
の(B)は図3の(B)の破線と同一のかすれ文字を示
している。
## EQU7 ## Since max1 <(max4-bias), the pixel a i = 1 remains as it is. Also, in the case of faint characters shown in FIG.
Holds, the pixel is erased as ai = 0. FIG.
(B) shows the same faint character as the broken line in (B) of FIG.

【0023】上述のように、近傍濃度大バイアス比較処
理(ステップS30)では大きな値のbias2のため
に、少し大きなドットやかすれ文字も消えてしまう。こ
のため、図1の原画像1は、近傍濃度大バイアス比較処
理(ステップS30) を施すことによって2値画像4と
なる。
As described above, in the neighborhood density large bias comparison processing (step S30), a slightly large dot or faint character disappears because of the large value bias2. For this reason, the original image 1 in FIG. 1 becomes a binary image 4 by performing the neighborhood density large bias comparison process (step S30).

【0024】ドット抽出処理(ステップS20) で作成
された2値画像3及び近傍濃度大バイアス比較処理(ス
テップS30) で作成された2値画像4は、ノイズレス
画像作成処理(ステップS50) で処理されてノイズの
ない2値画像6が作成される。この2値画像6が第2の
特徴画像に相当する。ここではノイズの他、文字のかす
れ部分も除去されている。この様子を図9のフローチャ
ートを参照して説明する。
The binary image 3 created in the dot extraction process (step S20) and the binary image 4 created in the neighborhood density large bias comparison process (step S30) are processed in a noiseless image creation process (step S50). Thus, a binary image 6 without noise is created. This binary image 6 corresponds to a second feature image. Here, in addition to noise, blurred portions of characters are also removed. This will be described with reference to the flowchart of FIG.

【0025】先ず画像4の“1”の画素と画像3の
“1”の画素とを画素毎に比較し(ステップS51) 、
画像4の“1”の画素に対応する画像3の画素が“1”
か否かを判定する(ステップS52) 。対応画素が
“1”であれば、画像4の“1”の画素を消去して
“0”とし(ステップS53) 、対応画素が“1”でな
ければ、画像4の“1”の画素をそのまま残す(ステッ
プS54) 。上記ステップS52〜S54の動作が、画
像4の全ての“1”の画素の対応が終了するまで繰り返
される(ステップS55) 。
First, the "1" pixel of the image 4 is compared with the "1" pixel of the image 3 for each pixel (step S51).
The pixel of image 3 corresponding to the pixel of “1” of image 4 is “1”
It is determined whether or not this is the case (step S52). If the corresponding pixel is “1”, the “1” pixel of the image 4 is erased to “0” (step S53). If the corresponding pixel is not “1”, the “1” pixel of the image 4 is deleted. It is left as it is (step S54). The operations of steps S52 to S54 are repeated until the correspondence of all “1” pixels of the image 4 is completed (step S55).

【0026】ノイズレス画像作成処理(ステップS5
0) で作成された2値画像6は、近傍濃度比較処理(ス
テップS10) で作成された2値画像2と共に近傍エリ
ア探索処理(ステップS60) で処理される。すなわ
ち、図10のフローチャートに示すように先ず画像2と
画像6とを比較し(ステップS61) 、画像2の“1”
の画素に対応する画像6の画素について7×7のエリア
を探索する(ステップS62) 。図11はこの様子を示
している。次に、上記エリア内に“1”の画素が1個以
上あるか否かを判定し(ステップS63) 、そうであれ
ば画像2の“1”の画素をそのまま残し(ステップS6
4) 、そうでなければ画像2の“1”の画素を消去して
“0”とする(ステップS65) 。例えば図11のX印
で示す画素Aは、対応する7×7のエリア内に“1”の
画素が1個以上あるので画素Aは“1”のまま残し、一
方X印で示す画素Bは対応する7×7のエリア内に
“1”の画素が全くないので、画素Bは“1”を消去し
て“0”とする。上記ステップS62〜S65を、画像
2の全ての“1”の画素の対応が終了となるまで繰り返
す(ステップS66) 。その結果、ノイズは除去され、
かすれ等による途切れは補間され、図1のような画像が
得られる。
Noiseless image creation processing (step S5)
The binary image 6 created in step (0) is processed in the neighborhood area search processing (step S60) together with the binary image 2 created in the neighborhood density comparison processing (step S10). That is, as shown in the flowchart of FIG. 10, first, the image 2 is compared with the image 6 (step S61), and "1" of the image 2 is determined.
A 7 × 7 area is searched for the pixel of the image 6 corresponding to the pixel (step S62). FIG. 11 shows this state. Next, it is determined whether or not there is one or more “1” pixels in the area (step S63). If so, the “1” pixel of the image 2 is left as it is (step S6).
4) If not, the pixel of "1" of the image 2 is erased and set to "0" (step S65). For example, the pixel A indicated by the mark X in FIG. 11 has one or more pixels of “1” in the corresponding 7 × 7 area, so that the pixel A is left as “1”, while the pixel B indicated by the mark X is Since there is no “1” pixel in the corresponding 7 × 7 area, the pixel B erases “1” to “0”. The above steps S62 to S65 are repeated until the correspondence of all “1” pixels of the image 2 is completed (step S66). As a result, noise is removed,
Breaks due to blurring or the like are interpolated, and an image as shown in FIG. 1 is obtained.

【0027】一方、図4の(A),(C)では近傍濃度
比較処理(ステップS10) において太部での中抜けが
生じることを説明したが、この不具合を解決するために
本発明では中抜け防止処理(ステップS70) を行な
う。
On the other hand, in FIGS. 4A and 4C, it has been described that a hollow portion occurs in a thick portion in the neighborhood density comparing process (step S10). A dropout prevention process (step S70) is performed.

【0028】かかる処理の前提として、本発明では原画
像1に対して中抜け防止画像作成処理(ステップS4
0) を施す。すなわち、図12のフローチャートに示す
ように先ずiに画素番号を設定し(ステップS41) 、
画素aを中心とする5×5のエリア内の画素の濃淡の
平均値aを算出する(ステップS42) 。図13はそ
の様子を示している。そして、平均値aがしきい値K
よりも小さいか否かを判定し(ステップS43) 、そ
うであれば当該画素a=1としてそのまま残し(ステ
ップS44) 、平均値aがしきい値K以上であれば
当該画素aを消去して“0”とする(ステップS4
5) 。上記ステップS42〜S45を、全画素について
繰り返す(ステップS46,S47) ことによって、図
1に示すような中抜け防止画像5を作成することができ
る。
As a prerequisite for such processing, in the present invention, the centering prevention image creation processing (step S4) is performed on the original image 1.
0). That is, as shown in the flowchart of FIG. 12, first, the pixel number is set to i (step S41).
It calculates an average value a m of the contrast of pixels in an area of 5 × 5 centered pixels a i (step S42). FIG. 13 shows this state. Then, the average value a m threshold K
4 Small whether determined than (step S43), and if so it is left as the pixel a i = 1 (step S44), the mean value a m is the long threshold K 4 or more pixels a i is erased to "0" (step S4
5). By repeating the above steps S42 to S45 for all the pixels (steps S46 and S47), it is possible to create the center hole prevention image 5 as shown in FIG.

【0029】上述のようにして作成された中抜け防止画
像5は、2値画像7と共に中抜け防止処理(ステップS
70) に送られ、図14に示すように加え合せることに
よって処理画像8が得られる。
The anti-dropout image 5 created as described above is processed together with the binary image 7 (step S).
70), and the processed image 8 is obtained by adding them as shown in FIG.

【0030】[0030]

【発明の効果】以上のように本発明では濃淡画像に対し
て、近傍濃度比較処理、ドット抽出処理及び近傍濃度大
バイアス比較処理を並列的に行ない、更にはノイズレス
画像作成処理及び近傍エリア探索処理を行なって2値の
処理画像を得ているため、ノイズやかすれ等が存在して
も文字のみを確実に2値化することができる。また、太
い文字部に対しては中抜けが生じるが、中抜け防止画像
を作成して加算することによって中抜けを防止すること
ができる。
As described above, in the present invention, near-density comparison processing, dot extraction processing, and near-density large bias comparison processing are performed in parallel on a grayscale image, and further, noiseless image creation processing and neighborhood area search processing. Is performed to obtain a binary processed image, so that only characters can be surely binarized even if noise, blurring, or the like exists. In addition, although a hollow portion occurs in a thick character portion, the hollow portion can be prevented by creating and adding a hollow portion preventing image.

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

【図1】本発明の2値化方を模式的に示す流れ図であ
る。
1 is a flow diagram showing schematically the 2 Nekakata method of the present invention.

【図2】近傍濃度比較処理の動作例を示すフローチャー
トである。
FIG. 2 is a flowchart illustrating an operation example of a neighborhood density comparison process.

【図3】近傍濃度比較処理の動作を説明するための図で
ある。
FIG. 3 is a diagram for explaining the operation of a neighborhood density comparison process.

【図4】近傍濃度比較処理の不具合を説明するための図
である。
FIG. 4 is a diagram for explaining a problem in the neighborhood density comparison process.

【図5】ドット抽出処理の動作例を示すフローチャート
である。
FIG. 5 is a flowchart illustrating an operation example of a dot extraction process.

【図6】ドット抽出処理を説明するための図である。FIG. 6 is a diagram for explaining a dot extraction process.

【図7】ドット抽出処理を説明するための図である。FIG. 7 is a diagram illustrating a dot extraction process.

【図8】近傍濃度大バイアス比較処理を説明するための
図である。
FIG. 8 is a diagram for explaining a neighborhood density large bias comparison process;

【図9】ノイズレス画像作成処理の動作例を示すフロー
チャートである。
FIG. 9 is a flowchart illustrating an operation example of a noiseless image creation process.

【図10】近傍エリア探索処理の動作例を示すフローチ
ャートである。
FIG. 10 is a flowchart illustrating an operation example of a nearby area search process.

【図11】近傍エリア探索処理を説明するための図であ
る。
FIG. 11 is a diagram for explaining a nearby area search process.

【図12】中抜け防止画像作成処理の動作例を示すフロ
ーチャートである。
FIG. 12 is a flowchart illustrating an example of an operation of a center defect prevention image creation process.

【図13】中抜け防止画像作成処理を説明するための図
である。
FIG. 13 is a diagram for explaining a center hole prevention image creation process.

【図14】中抜け防止処理を示すフローチャートであ
る。
FIG. 14 is a flowchart showing a hollowing out prevention process.

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

1 原画像(濃淡画像) 2 2値画像 3 2値画像 4 2値画像 5 中抜け防止画像 8 処理画像(2値画像) Reference Signs List 1 Original image (shade image) 2 Binary image 3 Binary image 4 Binary image 5 Dropout prevention image 8 Processed image (binary image)

───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 平2−245882(JP,A) 特開 平2−252084(JP,A) 特公 昭49−32019(JP,B1) (58)調査した分野(Int.Cl.7,DB名) G06K 9/38 G06K 9/40 ────────────────────────────────────────────────── ─── Continuation of the front page (56) References JP-A-2-245882 (JP, A) JP-A-2-2522084 (JP, A) JP-B-49-32019 (JP, B1) (58) Field (Int.Cl. 7 , DB name) G06K 9/38 G06K 9/40

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 細線、破線あるいは網点等により記入枠
が指定され、網点状模様を有する地の部分に手書きされ
た複数個の文字を、前記記入枠全体を含めて多値の濃淡
画像として読取って2値化する方において、前記濃淡
画像の各画素に対して、その画素の近傍の濃度と比較し
てしきい値を前記各画素毎に決定して2値化し、前記記
入枠及び前記網点状模様等のノイズの除去は不完全で
あるが前記文字のかすれ部分を修復した第1の特徴画像
を作成する一方、前記濃淡画像の各画素から前記ノイズ
部分のみを抽出した2値画像を作成すると共に前記しき
い値を変更して前記ノイズ及び前記文字のかすれ部分を
消去した2値画像を作成し、これら2つの2値画像の各
画素を比較、判定して前記文字のかすれ部分と前記ノイ
ズの双方を除去した第2の特徴画像を作成し、しかる
後、前記第1の特徴画像と前記第2の特徴画像の各画素
を比較、判定することにより、前記ノイズのみを除去し
て前記文字のかすれ部分修復し最適な2値画像を得
るようにしたことを特徴とする濃淡画像の適応2値化方
An input frame is designated by a thin line, a dashed line, a halftone dot, or the like, and a plurality of characters handwritten on a ground portion having a halftone dot pattern are multi-valued grayscale images including the entire input frame. in how binarized read as, for each pixel of the gray image, binarizing the to threshold comparison to determine for each said pixel and the concentration in the vicinity of the pixel, the entry frame and removal of noise such as the dot-like pattern is incomplete
There is one for creating a first feature image repair blurring portion of the character, the noise from each pixel of the grayscale image
Create a binary image by extracting only the part and
The noise and the blurred part of the character
Create an erased binary image and make each of these two binary images
Pixels are compared and determined, and the blurred part of the character and the noise
Create a second feature image to remove both's, accordingly
Then, each pixel of the first feature image and the second feature image
Comparing and judging to obtain an optimal binary image in which only the noise is removed and a blurred portion of the character is restored.
Law .
JP03065669A 1991-03-06 1991-03-06 Adaptive binarization method for gray image Expired - Fee Related JP3103387B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP03065669A JP3103387B2 (en) 1991-03-06 1991-03-06 Adaptive binarization method for gray image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP03065669A JP3103387B2 (en) 1991-03-06 1991-03-06 Adaptive binarization method for gray image

Publications (2)

Publication Number Publication Date
JPH04278688A JPH04278688A (en) 1992-10-05
JP3103387B2 true JP3103387B2 (en) 2000-10-30

Family

ID=13293640

Family Applications (1)

Application Number Title Priority Date Filing Date
JP03065669A Expired - Fee Related JP3103387B2 (en) 1991-03-06 1991-03-06 Adaptive binarization method for gray image

Country Status (1)

Country Link
JP (1) JP3103387B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111583157B (en) * 2020-05-13 2023-06-02 杭州睿琪软件有限公司 Image processing method, system and computer readable storage medium

Also Published As

Publication number Publication date
JPH04278688A (en) 1992-10-05

Similar Documents

Publication Publication Date Title
JP3768052B2 (en) Color image processing method, color image processing apparatus, and recording medium therefor
US6160913A (en) Method and apparatus for digital halftone dots detection and removal in business documents
JP3904840B2 (en) Ruled line extraction device for extracting ruled lines from multi-valued images
US6393150B1 (en) Region-based image binarization system
JPH02196565A (en) Picture binarizing system
US7130085B2 (en) Half-tone dot elimination method and system thereof
US7151859B2 (en) Method and system for correcting direction or orientation of document image
JPH09270917A (en) Image processor
US20010021034A1 (en) Image processing apparatus and method
JP3103387B2 (en) Adaptive binarization method for gray image
EP0680194B1 (en) Image processing device and image output device converting binary image into multi-valued image
JP4420440B2 (en) Image processing apparatus, image processing method, character recognition apparatus, program, and recording medium
JPH09305707A (en) Image extracting system
EP1006476A2 (en) Method of enhancing characters in an original binary image of a document
JP3115065B2 (en) Image information edge enhancement device
JP6797763B2 (en) Character recognition device
JP2001236467A (en) Method and device for pattern recognition, and recording medium with pattern recognition program recorded thereon
JP3733154B2 (en) Image processing apparatus and method
JP2002157552A (en) Optical character reader
JP2001291056A (en) Document picture recognizing device and recording medium
JPH11175663A (en) Method for preparing learning data for character recognition and recording medium
JP3210224B2 (en) Character recognition device
JP2789647B2 (en) Line image recognition method
JP3291101B2 (en) Image processing device
JPH1031717A (en) Image recognition method

Legal Events

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