JPH04278688A - Adaptive binary system for gradation picture - Google Patents

Adaptive binary system for gradation picture

Info

Publication number
JPH04278688A
JPH04278688A JP3065669A JP6566991A JPH04278688A JP H04278688 A JPH04278688 A JP H04278688A JP 3065669 A JP3065669 A JP 3065669A JP 6566991 A JP6566991 A JP 6566991A JP H04278688 A JPH04278688 A JP H04278688A
Authority
JP
Japan
Prior art keywords
image
processing
pixel
processed
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.)
Granted
Application number
JP3065669A
Other languages
Japanese (ja)
Other versions
JP3103387B2 (en
Inventor
Masaya Fukui
雅哉 福井
Hirotaka Tsubota
浩貴 坪田
Tomio Ebisu
戎 富雄
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.)
Glory Ltd
Original Assignee
Glory 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 Glory Ltd filed Critical Glory Ltd
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

Abstract

PURPOSE:To damp only the noise of an entry frame, etc., to restore the break and blur of a character and to prevent the burden from being given to the recognition processing at the rear step. CONSTITUTION:An original image 1 having the blur and break of a character and the noise such as the net point-shaped pattern, when it is processed by the neighbourhood concentration comparing processing, becomes a binary image 2, and sent to the neighbourhood area searching processing. A binary image 3 processed by the dot extracting processing and a binary image 4 processed by the neighbourhood concentration large bias comparing processing are both sent to the noiseless image forming processing, and a binary image 6 formed by the processing is sent to the neighbourhood area searching processing. A binary image 7 processed by the neighbourhood area searching processing is sent to the except-inside preventing processing. Together with this, a binary image 5 formed by the except-inside preventing image forming processing is also sent to the except-inside preventing processing and the image processed here becomes a binary processing image 8.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明は、種々の帳票等に手書き
された文字等を記入枠も含めて多値の濃淡画像として読
取り、手書きされた文字等を認識するための前処理とし
て多値の濃淡画像を2値の画像に変換するための方式に
関する。
[Industrial Application Field] The present invention reads handwritten characters, etc. on various forms, etc., including the entry frames, as a multivalued grayscale image, and performs multivalued gray scale images as a preprocessing for recognizing handwritten characters, etc. The present invention relates to a method for converting a grayscale image into a binary image.

【0002】0002

【従来の技術】例えば、米国の小切手に手書きされた金
額数字を認識する方法として特開平1−116782号
公報に示すものがあるが、認識処理を行なう前に、小切
手からイメージセンサ等で読取った多値の濃淡画像を前
処理として2値データに変換しておかねばらなない。こ
の2値化に際しては、読取った濃淡データの階調の分布
状態から固定的なしきい値を決定し、そのしきい値に対
する大小により2値化していた。
[Prior Art] For example, there is a method disclosed in Japanese Patent Application Laid-Open No. 1-116782 as a method for recognizing monetary figures handwritten on checks in the United States. It is necessary to convert the multi-value gray image into binary data as pre-processing. In this binarization, a fixed threshold value is determined from the gradation distribution state of the read density data, and the binarization is performed based on the magnitude of the threshold value.

【0003】0003

【発明が解決しようとする課題】しかしながら、手書き
である為に場合によっては文字のかすれや途切れがあり
、これらの部分は2値化では消されてしまっている。 また、途切れが発生し易いものについては、認識処理の
方で別途パターンを設けておけば救済できるが、文字の
かすれに対しては万全ではなく、誤認識又は認識不能と
なっていた。
[Problems to be Solved by the Invention] However, since the characters are handwritten, there may be blurred or broken characters in some cases, and these parts are erased by binarization. Additionally, characters that are likely to be interrupted can be corrected by providing a separate pattern in the recognition process, but this is not perfect against blurred characters, resulting in erroneous recognition or unrecognizability.

【0004】さらに、文字の記入枠は細線以外にも網点
状のものがあり、バックグラウンド(地)の部分にも網
点状の模様がある小切手も多く、バックグラウンドの模
様も一様ではない。この為、これら網点状の部分は、2
値化の際に消えずにノイズとして残ることが多く、後段
の認識処理に負担がかかると共に、誤認識や認識不能と
なるものが多くあった。
[0004]Furthermore, in addition to thin lines, the text frame has a halftone dot pattern, and many checks have a halftone dot pattern on the background (ground), and the background pattern is not uniform. do not have. For this reason, these dot-shaped parts are 2
They often remain as noise without disappearing when converted into values, placing a burden on subsequent recognition processing, and often resulting in erroneous recognition or unrecognizability.

【0005】本発明は上記課題に鑑みてなされたもので
あり、本発明の目的は、記入枠等のノイズのみを消すと
共に、文字の途切れ、かすれは修復して後段の認識処理
に負担をかけない適応的な2値化方式を提供することに
ある。
The present invention has been made in view of the above-mentioned problems, and an object of the present invention is to eliminate only the noise in the entry frame, etc., and to repair the broken and blurred characters, thereby eliminating the burden on the subsequent recognition processing. The purpose of the present invention is to provide an adaptive binarization method.

【0006】[0006]

【課題を解決するための手段】本発明は、細線、破線、
網点等で記入枠が指定され、網点状模様を有する地の部
分に自由に手書きされた複数個の文字を、前記記入枠全
体を含めて多値の濃淡画像として読取って2値化する方
式に関するもので、本発明の上記目的は、前記濃淡画像
の各画素に対して、その画素の近傍の濃度と比較してし
きい値を各画素毎に決定して2値化し、前記記入枠等の
ノイズの除去は不完全であっても文字のかすれ部分を修
復した第1の特徴画像を作成し、前記濃淡画像の各画素
から前記文字のかすれ部分と前記ノイズの双方を除去し
た2値の第2の特徴画像を作成し、前記第1の特徴画像
と前記第2の特徴画像とを組み合せることにより、前記
ノイズのみを除去して前記文字のかすれ部分は修復して
最適な2値画像を得るようにすることによって達成され
る。
[Means for Solving the Problems] The present invention provides thin lines, broken lines,
A writing frame is designated by halftone dots, etc., and a plurality of characters freely handwritten on a background having a halftone pattern are read and binarized as a multivalued gray image including the entire writing frame. The above-mentioned object of the present invention is to compare each pixel of the gray scale image with the density of the vicinity of the pixel, determine a threshold value for each pixel, and binarize the pixel. Even if noise removal is incomplete, a first feature image is created in which the blurred parts of the characters are repaired, and a binary image is created in which both the blurred parts of the characters and the noise are removed from each pixel of the grayscale image. By creating a second characteristic image of This is achieved by allowing the image to be obtained.

【0007】[0007]

【作用】本発明では濃淡画像を2値化するのに、固定又
は可変的なしきい値を用いて行なうのではなく、画素の
回りの状況を考慮した適応的な手法を用いている。すな
わち、原画像(濃淡画像)に対してバイアス値の異なる
2種の近傍濃度比較処理を行なうと共に、ドット抽出処
理を並列的に施しており、その後にノイズレス画像作成
処理と近傍エリア探索処理を行なっている。更には中抜
け防止画像を作成して、画像の太い部分に生じる中抜け
を除去して、完全化を図っている。
[Operation] In the present invention, to binarize a grayscale image, instead of using a fixed or variable threshold value, an adaptive method is used that takes into consideration the situation around the pixel. In other words, two types of neighboring density comparison processing with different bias values are performed on the original image (shaded image), and dot extraction processing is performed in parallel, followed by noiseless image creation processing and neighboring area search processing. ing. In addition, a hollow-hole prevention image is created to remove the hollow areas that occur in the thicker parts of the image, in order to complete the image.

【0008】[0008]

【実施例】図1は本発明の2値化方式の概要を示す流れ
図であり、文字のかすれ、途切れや網点状の模様等のノ
イズがある原画像(濃淡画像)1は例えば、元の濃淡画
像を最暗部を0、最明部を63とする64段階の濃淡で
各画素毎に記憶されたものであり、この原画像(濃淡画
像)1は、近傍濃度比較処理(ステップS10) 、ド
ット抽出処理(ステップS20) 、近傍濃度大バイア
ス比較処理(ステップS30) 及び中抜け防止画像作
成処理(ステップS40) で並列的に処理される。近
傍濃度比較処理(ステップS10) で処理されると2
値画像2となり、そのデータは近傍エリア探索処理(ス
テップS60) に送られる。
[Example] Fig. 1 is a flow chart showing an overview of the binarization method of the present invention. The gradation image is stored for each pixel in 64 levels of gradation, with the darkest part being 0 and the brightest part being 63, and this original image (gradation image) 1 is processed through neighboring density comparison processing (step S10), The dot extraction process (step S20), the neighboring density large bias comparison process (step S30), and the void prevention image creation process (step S40) are processed in parallel. When processed in the neighborhood density comparison process (step S10), 2
The value image becomes value image 2, and its data is sent to the nearby area search process (step S60).

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

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

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

【0012】0012

【数1】max1>(max4−bias)であるか否
かの判定を行ない(ステップS14) 、そうであれば
文字でないとみなして画素ai=0とし(ステップS1
5) 、数1が成立しなければ文字とみなして画素ai
=1とする(ステップS16) 。従って、図3の(A
),(D)及び(C)の場合はai=0となり、図3の
(B),(E)の場合はai=1となる。つまり文字の
かすれ部分はai=1となる為、修復されたことになる
。上述の動作を全画素について繰り返すことにより(ス
テップS17,S18) 、画像全体を2値化すること
ができ、図1の画像2に示すように小さな網点状模様は
残らない。
[Equation 1] It is determined whether max1>(max4-bias) (step S14), and if so, it is assumed that it is not a character and the pixel ai is set to 0 (step S1
5) If the formula 1 does not hold, it is considered a character and the pixel ai
=1 (step S16). Therefore, (A
), (D) and (C), ai=0, and in cases (B) and (E) of FIG. 3, ai=1. In other words, since ai=1 for the faded part of the character, it is said that it has been repaired. By repeating the above operation for all pixels (steps S17 and S18), the entire image can be binarized, and no small halftone dot pattern remains as shown in image 2 in FIG.

【0013】ところが、図4の(C)に示すような太い
文字部のサイズ関係の場合の読取濃淡は図4の(A)の
ようになるので、数1が成立して画素ai=0となり、
画像2に示すような中抜け(画像中の白部)が生じる。 また、図4の(D)に示すような大きな網点状模様の場
合の読取濃淡は図4の(B)のようになるので、数1が
成立せず画素ai=1となる。つまり、大きな網点状模
様はノイズとして残ってしまう。以上より、原画像1に
対して近傍濃度比較処理(ステップS10) を施すと
2値画像2となる。この2値画像2が第1の特徴画像に
相当する。この近傍濃度比較処理ではノイズの除去は不
完全であるが、文字のかすれ部分は修復されている。
However, in the case of the size relationship of a thick character part as shown in (C) of FIG. 4, the reading shading is as shown in (A) of FIG. 4, so Equation 1 holds and pixel ai=0 ,
Hollow holes (white areas in the image) as shown in Image 2 occur. Further, in the case of a large halftone pattern as shown in FIG. 4(D), the reading gradation is as shown in FIG. 4(B), so the equation 1 does not hold and the pixel ai=1. In other words, the large halftone pattern remains as noise. As described above, when the neighboring density comparison process (step S10) is applied to the original image 1, a binary image 2 is obtained. This binary image 2 corresponds to the first characteristic image. Although noise removal is incomplete in this neighborhood density comparison process, faded portions of characters are repaired.

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

【0
015】
0
015]

【数2】 を算出し、かつ[Math 2] Calculate and

【0016】[0016]

【数3】 を満たす数N(整数)を求める(ステップS22) 。[Math 3] Find a number N (integer) that satisfies the requirement (step S22).

【0017】そして、[0017] And,

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

【001
8】
001
8]

【数5】N≧K3 であるか否かを判定し(ステップS26) 、そうであ
れば上記ステップS24に進み、そうでなければ画素a
i=0として当該画素を消去する(ステップS27) 
。つまり、総和が−K1以下とならなかっても画素ai
よりもかなり明るい画素(
[Equation 5] Determine whether N≧K3 (step S26), and if so, proceed to step S24, otherwise the pixel a
Erase the pixel by setting i=0 (step S27)
. In other words, even if the sum is not less than -K1, the pixel ai
Pixels much brighter than (

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

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

【0020】近傍濃度大バイアス比較処理(ステップS
30) は前述した近傍濃度比較処理(ステップS10
) と同様の処理であり、ステップS14の数1におけ
るbiasの値が相対的に大きくなり、bias2(>
bias)となっている点のみが異なっている。図8は
その動作を説明するものであり、同図(C)のような少
し大きなドットも、同図(A)で示すように
Neighboring concentration large bias comparison process (step S
30) is the above-mentioned neighborhood density comparison process (step S10).
), the value of bias in Equation 1 in step S14 becomes relatively large, and bias2(>
The only difference is that it is (bias). Figure 8 explains the operation, and the slightly larger dots as shown in Figure (C) are also similar to those shown in Figure (A).

【0021
0021
]

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

【0022】[0022]

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

【0023】上述のように、近傍濃度大バイアス比較処
理(ステップS30)では大きな値のbias2のため
に、少し大きなドットやかすれ文字も消えてしまう。こ
のため、図1の原画像1は、近傍濃度大バイアス比較処
理(ステップS30) を施すことによって2値画像4
となる。
As described above, in the neighboring density large bias comparison process (step S30), due to the large value of bias2, slightly large dots and blurred characters disappear. Therefore, the original image 1 in FIG.
becomes.

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

【0025】先ず画像4の“1”の画素と画像3の“1
”の画素とを画素毎に比較し(ステップS51) 、画
像4の“1”の画素に対応する画像3の画素が“1”か
否かを判定する(ステップS52) 。対応画素が“1
”であれば、画像4の“1”の画素を消去して“0”と
し(ステップS53) 、対応画素が“1”でなければ
、画像4の“1”の画素をそのまま残す(ステップS5
4) 。上記ステップS52〜S54の動作が、画像4
の全ての“1”の画素の対応が終了するまで繰り返され
る(ステップS55) 。
First, the “1” pixel of image 4 and the “1” pixel of image 3
” pixel by pixel (step S51), and determines whether the pixel of image 3 corresponding to the pixel of “1” of image 4 is “1” (step S52).If the corresponding pixel is “1”
”, the pixel “1” of image 4 is erased and set to “0” (step S53), and if the corresponding pixel is not “1”, the pixel “1” of image 4 is left as is (step S53).
4). The operations of steps S52 to S54 described above are performed on image 4.
This process is repeated until all "1" pixels have been dealt with (step S55).

【0026】ノイズレス画像作成処理(ステップS50
) で作成された2値画像6は、近傍濃度比較処理(ス
テップS10) で作成された2値画像2と共に近傍エ
リア探索処理(ステップS60) で処理される。すな
わち、図10のフローチャートに示すように先ず画像2
と画像6とを比較し(ステップS61) 、画像2の“
1”の画素に対応する画像6の画素について7×7のエ
リアを探索する(ステップS62) 。図11はこの様
子を示している。次に、上記エリア内に“1”の画素が
1個以上あるか否かを判定し(ステップS63) 、そ
うであれば画像2の“1”の画素をそのまま残し(ステ
ップS64) 、そうでなければ画像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 S50)
The binary image 6 created in ) is processed in the neighborhood area search process (step S60) together with the binary image 2 created in the neighborhood density comparison process (step S10). That is, as shown in the flowchart of FIG.
and image 6 (step S61), and “
A 7×7 area is searched for the pixel of image 6 corresponding to the pixel of “1” (step S62). FIG. 11 shows this situation. Next, if there is one pixel of “1” in the above area, It is determined whether or not there are more than 1 (step S63), and if so, the "1" pixel of image 2 is left as is (step S64), and if not, the "1" pixel of image 2 is deleted and "0" (step S65). For example, pixel A indicated by an , On the other hand, pixel B indicated by the X mark has no "1" pixels in the corresponding 7x7 area, so pixel B is "1".
is erased and set to “0”. Above steps S62 to S65
This is repeated until all "1" pixels of image 2 have been dealt with (step S66). As a result, noise is removed, breaks due to blurring etc. are interpolated, and an image as shown in FIG. 1 is obtained.

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

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

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

【0030】[0030]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

【図13】中抜け防止画像作成処理を説明するための図
である。
FIG. 13 is a diagram for explaining image creation processing to prevent hollow portions.

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

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

1  原画像(濃淡画像) 2  2値画像 3  2値画像 4  2値画像 5  中抜け防止画像 8  処理画像(2値画像) 1 Original image (shaded image) 2 Binary image 3 Binary image 4 Binary image 5. Hollow-out prevention image 8 Processed image (binary image)

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】  記入枠が指定され、網点状模様を有す
る地の部分に手書きされた複数個の文字を、前記記入枠
全体を含めて多値の濃淡画像として読取って2値化する
方式において、前記濃淡画像の各画素に対して、その画
素の近傍の濃度と比較してしきい値を各画素毎に決定し
て2値化し、前記記入枠等のノイズの除去は不完全であ
っても文字のかすれ部分を修復した第1の特徴画像を作
成し、前記濃淡画像の各画素から前記文字のかすれ部分
と前記ノイズの双方を除去した2値の第2の特徴画像を
作成し、前記第1の特徴画像と前記第2の特徴画像とを
組み合せることにより、前記ノイズのみを除去して前記
文字のかすれ部分は修復して最適な2値画像を得るよう
にしたことを特徴とする濃淡画像の適応2値化方式。
Claim 1: A method in which a writing frame is designated and a plurality of characters handwritten on a background having a halftone pattern are read as a multi-valued gray image including the entire writing frame and then binarized. In this step, for each pixel of the grayscale image, a threshold value is determined for each pixel by comparing it with the density in the vicinity of that pixel, and the noise is binarized. creating a first feature image in which the blurred portions of the characters are repaired, and creating a binary second feature image in which both the blurred portions of the characters and the noise are removed from each pixel of the grayscale image; By combining the first feature image and the second feature image, only the noise is removed and the blurred portions of the characters are repaired to obtain an optimal binary image. An adaptive binarization method for grayscale images.
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 true JPH04278688A (en) 1992-10-05
JP3103387B2 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)

Cited By (1)

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

Cited By (2)

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

Also Published As

Publication number Publication date
JP3103387B2 (en) 2000-10-30

Similar Documents

Publication Publication Date Title
US7636180B2 (en) Methods and apparatus for smoothing text outlines
US6686922B2 (en) Adaptive thresholding using loose gray scale template matching
US7292375B2 (en) Method and apparatus for color image processing, and a computer product
US5583659A (en) Multi-windowing technique for thresholding an image using local image properties
JPH09270917A (en) Image processor
US7130085B2 (en) Half-tone dot elimination method and system thereof
US6389178B1 (en) Method of downsampling documents
JPH04278688A (en) Adaptive binary system for gradation picture
JPH0818785A (en) Image output device
JP3115065B2 (en) Image information edge enhancement device
US7567725B2 (en) Edge smoothing filter for character recognition
JP3358133B2 (en) Image processing device
KR100242298B1 (en) Image processing method for converting gray-scale image of text document into binary image
JP3830269B2 (en) Image correction processing method
JPH1031717A (en) Image recognition method
JP3210224B2 (en) Character recognition device
JP3302420B2 (en) Image processing device
JP2789647B2 (en) Line image recognition method
JPH09167228A (en) Method and device for transformation, method and device for reshaping picture using them and system using them
JP3355234B2 (en) Image binarization device
JPH1166240A (en) Method and device for character recognition
JPH10233930A (en) Image processor
JPH0375889A (en) Picture extracting method
JPH08265569A (en) Pseudo halftone processor
JPH0962791A (en) Character recognition device and method therefor

Legal Events

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