Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPH0614374B2 - Binarization method for grayscale images - Google Patents
[go: Go Back, main page]

JPH0614374B2 - Binarization method for grayscale images - Google Patents

Binarization method for grayscale images

Info

Publication number
JPH0614374B2
JPH0614374B2 JP60034595A JP3459585A JPH0614374B2 JP H0614374 B2 JPH0614374 B2 JP H0614374B2 JP 60034595 A JP60034595 A JP 60034595A JP 3459585 A JP3459585 A JP 3459585A JP H0614374 B2 JPH0614374 B2 JP H0614374B2
Authority
JP
Japan
Prior art keywords
grayscale image
partial area
threshold value
value
processing
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 - Lifetime
Application number
JP60034595A
Other languages
Japanese (ja)
Other versions
JPS61194580A (en
Inventor
昭夫 塩
珠喜 斎藤
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.)
NTT Inc
Original Assignee
Nippon Telegraph and Telephone Corp
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 Nippon Telegraph and Telephone Corp filed Critical Nippon Telegraph and Telephone Corp
Priority to JP60034595A priority Critical patent/JPH0614374B2/en
Publication of JPS61194580A publication Critical patent/JPS61194580A/en
Publication of JPH0614374B2 publication Critical patent/JPH0614374B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Facsimile Image Signal Circuits (AREA)
  • Character Input (AREA)
  • Image Input (AREA)
  • Image Processing (AREA)

Description

【発明の詳細な説明】 <産業上の利用分野> 本発明は、文字認識等、画像処理の分野で広く使用され
る濃淡画像の2値化法に関する。
The present invention relates to a binarization method for a grayscale image that is widely used in the field of image processing such as character recognition.

<従来の技術> 従来、文字認識装置(OCR)等に於ては、明るさ既知の
一様な照明条件下に置かれた文字を対象にしていた為、
画像全体にわたって一定な2値化閾値により、2値化が
可能であった。また、機械部品などの物体の認識装置に
於ては、2値化を一定な閾値で行なうため、物体および
その背景の色や照明条件に制約があった。一方、認識以
外の画像処理に於ては、もともと2値に近い物を扱うOC
Rなどとは異なり、濃淡画像を一旦微分した後一定の閾
値により2値化する方法(微分2値化法)や、画像の部
分毎に閾値をダイナミックに変化させる2値化法(動的
2値化法)が考案されている。例えば、特開昭59−1
14687号公報は、画像を部分領域に分割し、部分領
域内の点の明るさ(または濃度)の平均値によりその部
分領域の中心の点の局所的閾値を決定する。画像中の任
意の点に対する閾値は、その点の周りの4つの局所的閾
値の補間によって決定する方法をとっている。
<Prior Art> Conventionally, in a character recognition device (OCR) or the like, since a character placed under uniform illumination conditions of known brightness is targeted,
Binarization was possible with a constant binarization threshold over the entire image. Further, in an apparatus for recognizing an object such as a machine part, since binarization is performed with a constant threshold value, there are restrictions on the color of the object and its background and illumination conditions. On the other hand, in image processing other than recognition, OC that originally handles objects that are close to binary
Different from R etc., the grayscale image is once differentiated and then binarized by a constant threshold (differential binarization method), or the threshold value is dynamically changed for each part of the image (dynamic 2 Valuation method) has been devised. For example, JP-A-59-1
Japanese Patent No. 146887 divides an image into partial regions, and determines a local threshold value of a point at the center of the partial region by an average value of brightness (or density) of the points in the partial region. The threshold for any point in the image is determined by interpolation of four local thresholds around that point.

<発明が解決しようとする問題点> しかしながら、上記従来の微分2値化法に関していえ
ば、画像全体を一定の閾値で2値化するため、文字や物
体などの対象物を損なわない様に閾値を設定すると背景
に多くのノイズを生じる問題があった。一方、上記のよ
うな従来の動的2値化法を、文字認識処理の前段として
用いる場合、 1) 部分領域の大きさよりも太い文字線部分や文字など
を含まない背景部分など低コントラストの領域に於て
は、文字と背景のコントラストではなく背景雑音に起因
した不適切な閾値が与えられる。
<Problems to be Solved by the Invention> However, regarding the above-mentioned conventional differential binarization method, since the entire image is binarized with a constant threshold value, the threshold value is set so as not to damage an object such as a character or an object. When set to, there was a problem that a lot of noise was generated in the background. On the other hand, when the conventional dynamic binarization method as described above is used as the preceding stage of character recognition processing, 1) a low contrast area such as a character line portion thicker than the size of the partial area or a background portion not including characters , An improper threshold is given due to background noise rather than the contrast between the characters and the background.

2) 部分領域の大きさは文字等の大きさに合わせてダイ
ナミックに決定する必要がある、 などの問題がある。従って従来法では、二値パタン中の
背景部分に於て雑音が生じ文字の切り出しや認識が困難
になることや、扱う濃淡画像の性質によって部分領域の
数を設定しなおす必要があるなどの欠点があった。ま
た、従来の動的2値化法に於て、部分領域の大きさを大
きくとることによって、背景に生ずる雑音をある程度抑
制できるが、逆に情景の照明や影などに対する2値化処
理の安定性を損なう問題があった。したがって、この発
明の目的は、このような従来法の欠点を解消する濃淡画
像の2値化方法を提供することである。
2) There is a problem that the size of the partial area must be dynamically determined according to the size of the characters. Therefore, the conventional method has drawbacks such as noise in the background portion of the binary pattern, which makes it difficult to cut out and recognize characters, and it is necessary to reset the number of partial areas depending on the nature of the grayscale image to be handled. was there. Further, in the conventional dynamic binarization method, the noise generated in the background can be suppressed to some extent by increasing the size of the partial area, but on the contrary, the binarization processing for the illumination and shadow of the scene is stable. There was a problem that impaired sex. Therefore, it is an object of the present invention to provide a binarization method for a grayscale image that overcomes the drawbacks of the conventional method.

<問題点を解決するための手段> この発明は前記問題点を解決するため、特に不均一な照
明条件下に於ける三次元情景中の文字・図形を検出して
認識する前段の前処理として、また微分画像のダイナミ
ックな2値化法として、文字・図形などをその大きさに
よらず確実に背景と分離すると共に、背景の雑音を極力
低減させるようにしたものである。
<Means for Solving Problems> In order to solve the above problems, the present invention provides a pre-processing as a previous stage for detecting and recognizing characters and figures in a three-dimensional scene particularly under non-uniform illumination conditions. In addition, as a dynamic binarization method of a differential image, characters and figures are surely separated from the background regardless of their size, and background noise is reduced as much as possible.

<作用> このようにすると文字背景など低コントラストの部分領
域に対して求められた不適切な閾値を、その周りの部分
領域に対して求められた閾値および重み値によって補正
することによって適正な閾値を決定することができる。
<Operation> In this way, an appropriate threshold value is corrected by correcting an inappropriate threshold value obtained for a low contrast partial area such as a character background with a threshold value and a weight value obtained for the surrounding partial areas. Can be determined.

<実施例> 第2図は、本発明濃淡画像の2値化方法による情景中の
文字の認識処理手順の一実施例を示し、1は2値化処
理、2は文字切り出し処理、3は文字認識処理である。
まず、2値化処理1では、濃淡画像パタンを入力とし
て、白黒2値の2値画像パタンを出力する。文字切り出
し処理2では、2値画像パタンを縦横に走査して、一文
字単位にその外接四角形で文字を切り出す。次に文字認
識処理3では、切り出された文字を一文字づつ認識して
結果を出力する。
<Embodiment> FIG. 2 shows an embodiment of a recognition processing procedure of characters in a scene by the binarization method of the grayscale image of the present invention, 1 is a binarization processing, 2 is a character cutting processing, and 3 is a character. This is recognition processing.
First, in the binarization processing 1, a grayscale image pattern is input, and a monochrome binary binary image pattern is output. In the character cut-out process 2, the binary image pattern is scanned in the vertical and horizontal directions, and the character is cut out on a character-by-character basis by the circumscribed quadrangle. Next, in character recognition processing 3, the cut-out characters are recognized one by one and the result is output.

第3図は、2値化処理1の詳細な処理手順を示し、11
は領域分割処理、12は閾値決定処理、13は重み値決
定処理、14は第1の補間処理、15は第2の補間処
理、16は2値判定処理である。
FIG. 3 shows a detailed processing procedure of the binarization processing 1.
Is a region division process, 12 is a threshold value determination process, 13 is a weight value determination process, 14 is a first interpolation process, 15 is a second interpolation process, and 16 is a binary determination process.

まず、濃淡画像パタンG(i,j)は、領域分割処理1
1で、予め与えられた大きさ(例えば、16×16画
素)の部分領域(部分領域の番号を(m,n)とする)
に分割される。この分割処理は、必ずしも第4図(a)に
示す様な等分割である必要なく、第4図(b),(c)の様に
互いの領域が重なり合っていたり、互いに離れていても
良い。
First, the grayscale image pattern G (i, j) is subjected to the region division processing 1
1 is a partial area of a predetermined size (for example, 16 × 16 pixels) (partial area number is (m, n))
Is divided into This division processing does not necessarily have to be equal division as shown in FIG. 4 (a), and the areas may overlap or be separated from each other as shown in FIGS. 4 (b) and 4 (c). .

閾値決定処理12では、分割された部分領域毎にその部
分領域内の画素の濃淡値の出現頻度から閾値を決定す
る。濃度値の出現頻度から閾値を決定する方法として
は、種々のものが考えられ、例えば濃度値の平均値、中
央値、最大値と最小値の平均値などを閾値とする簡易な
方法や、閾値処理を白黒2つのクラスに分離する2クラ
ス問題としてとらえ、最も分離度のよい(クラス間分散
が最大となる)濃度値を閾値とする方法(判別分析法)
などがある。
In the threshold value determination process 12, a threshold value is determined for each of the divided partial areas from the appearance frequency of the gray value of the pixel in the partial area. Various methods are conceivable for determining the threshold value from the appearance frequency of the density value. For example, a simple method using the average value of the density values, the median value, the average value of the maximum value and the minimum value as the threshold value, or the threshold value Considering the processing as a two-class problem that separates two classes into black and white, and using the density value with the highest degree of separation (maximum interclass variance) as the threshold (discriminant analysis method)
and so on.

重み値決定処理13では、分割された部分領域(m,
n)毎にその部分領域内の画素の明るさの平均値Amn
その分散値σ mnを求め、これをもとにコントラストを
示す重み値Wmnを決定する。重み値Wmnには、例えば次
の4種がある。
In the weight value determination process 13, the divided partial regions (m,
For each n), the average value A mn of the brightness of the pixels in the partial area and its variance value σ 2 mn are obtained, and the weight value W mn indicating the contrast is determined based on this. The weight value W mn has, for example, the following four types.

〔方法a〕:Wmn=σ mn 〔方法b〕:Wmn=σmn 〔方法c〕:Wmn=σ mn/Amn 〔方法d〕:Wmn=σmn/Amn 重み値として、分散や標準偏差を用いる場合(方法a,
b)は、部分領域のコントラストが高いほどその中に画
像処理上重要な情報が含まれる可能性が高いと判断し
て、その部分領域で与えられた閾値に高い重み値を与え
るものであり、照明条件が比較的良好な場合に有効であ
る。また、重み値として、分散や標準偏差を明るさの平
均値で割った(正規化した)ものを用いる場合(方法
c,d)は、例えば同じコントラストを持つ文字列が一
様でない照明条件下に置かれた場合に於て、照明の強さ
が異なっていても文字列のもともとのコントラストが同
じであればその重みも同じ値になる様にするものであ
り、文字等のある部分の明るさが一様でない場合に有効
である。
[Method a]: W mn = σ 2 mn [Method b]: W mn = σ 2 mn [Method c]: W mn = σ 2 mn / A mn [Method d]: W mn = σ mn / A mn Weight value When using variance or standard deviation as (method a,
In b), it is determined that the higher the contrast of the partial area is, the higher the possibility that the important information is included in the image processing is included, and a higher weight value is given to the threshold value given in the partial area. This is effective when the lighting conditions are relatively good. In addition, when a value obtained by dividing (normalized) the variance or standard deviation by the average value of brightness is used as the weight value (methods c and d), for example, in a lighting condition in which character strings having the same contrast are not uniform. If the original contrast of the character string is the same, even if the lighting intensity is different, the weight is set to the same value. This is effective when the values are not uniform.

第1の補間処理14は、閾値決定処理12で得られた閾
値θmn、および重み値決定処理13で得られた重み値W
mnをもとに、閾値θmnを修正する処理であり、第1の補
間処理後の閾値をθ′mn、第1の補間処理前の閾値をθ
mnとするとき、次式で与えられる2つの方法がある。
The first interpolation processing 14 includes the threshold value θ mn obtained in the threshold value determination processing 12 and the weight value W obtained in the weight value determination processing 13.
This is a process of correcting the threshold value θ mn based on mn , where the threshold value after the first interpolation processing is θ ′ mn , and the threshold value before the first interpolation processing is θ
When mn , there are two methods given by the following equation.

〔方法1〕 〔方法2〕 ここで、 ωmn=0 :Wmn<φ1(定数) Wmn:otherwise ただし、重み値がWmn≧φ2(φ2は定数)ならこの処
理を行なわない。
[Method 1] [Method 2] Here, ω mn = 0: W mn <φ1 (constant) W mn : otherwise However, if the weight value is W mn ≧ φ2 (φ2 is a constant), this processing is not performed.

この処理の繰り返しにより、大きな重み値が与えられた
部分領域の閾値が、その周りの部分領域に伝播され、文
字を含まない小領域の閾値が補正されて背景ノイズの発
生を抑制できる。
By repeating this processing, the threshold value of the partial area to which a large weight value is given is propagated to the surrounding partial areas, and the threshold value of the small area that does not include characters is corrected, so that the occurrence of background noise can be suppressed.

第5図は、第2の補間処理15の説明図であって、任意
の隣接する4つの部分領域の配置を示し、各部分領域の
中心には、第1の補間処理によって修正された閾値θ′
,θ′2n,θ′,θ′が与えられているものと
する。このとき、4つの部分領域の中心を頂点とする四
角形を考え、この四角形内の任意の画素P(i,j)に
対応する閾値T(i,j)を4つの閾値θ′
θ′,θ′,θ′の補間によって求める。すなわ
ち、画素P(i,j)における閾値T(i,j)は、上
記四角形の横と縦の長さをL,L、四角形の左上の
頂点から画素P(i,j)までの横、縦方向の距離を
α,βとするとき、次式で与えられる。
FIG. 5 is an explanatory diagram of the second interpolation processing 15, showing an arrangement of arbitrary four adjacent partial areas, and the threshold value θ corrected by the first interpolation processing is provided at the center of each partial area. ′
It is assumed that 1 , θ ′ 2n , θ ′ 3 and θ ′ 4 are given. At this time, a quadrangle having the centers of the four partial regions as vertices is considered, and the threshold T (i, j) corresponding to an arbitrary pixel P (i, j) in the quadrangle is set to four thresholds θ ′ 1 ,
It is obtained by interpolation of θ ′ 2 , θ ′ 3 and θ ′ 4 . That is, the threshold value T (i, j) in the pixel P (i, j) is the horizontal and vertical lengths of the quadrangle L 1 , L 2 , from the upper left apex of the quadrangle to the pixel P (i, j). When the horizontal and vertical distances are α and β, they are given by the following equation.

T(i,j)=θ′・(L−α)(L−β)/L
・L +θ′・(L−α)・β/L・L +θ′・α・(L−β)/L・L +θ′・α・β/L・L この式で表わされる表面形状は、任意の4点を通らなけ
ればないから明らかに平面にはならないが、4辺上では
直線になることを示すことができる。たとえば、第5図
の上辺の上のT(i,j)の値を考えてみると、上式に
j=0、β=0を代入すると、右辺第2項および第4項
がゼロとなるため、 となる。他の辺についても同様の計算によって証明が可
能であり、結局、辺上では直線補間を意味していること
を示すことができる。
T (i, j) = θ ′ 1 · (L 1 −α) (L 2 −β) / L
1 · L 2 + θ ′ 2 · (L 1 −α) · β / L 1 · L 2 + θ ′ 3 · α · (L 2 −β) / L 1 · L 2 + θ ′ 4 · α · β / L 1 · L 2 surface shape represented by the formula is not a clearly plane since there to go through any four points, it can be shown that a straight line is on four sides. For example, considering the value of T (i, j) on the upper side of FIG. 5, substituting j = 0 and β = 0 into the above equation, the second and fourth terms on the right side become zero. For, Becomes It can be proved by the same calculation for the other edges, and it can be shown that linear interpolation is meant on the edges.

2値判定処理16では、濃淡画像G(i,j)と第2の
補間処理15で得られた閾値T(i,j)との大小比較
から2値パタンB(i,j)を求める。
In the binary determination process 16, a binary pattern B (i, j) is obtained from the magnitude comparison between the grayscale image G (i, j) and the threshold value T (i, j) obtained in the second interpolation process 15.

B(i,j)=0:G(i,j)<T(i,j) 1:G(i,j)≧T(i,j) 第1図は、上記2値化処理1を実現するハードウェアの
構成例であって、101は共通制御部、102はフレー
ムメモリ(1)、103はアドレス制御部、104は閾値
/重み値決定部、105は補間処理部(I)、106は補
間処理部(II)、107はフレームメモリ(2)、108は
比較回路である。同図に於て、各部は共通制御部101
から与えられるタイミング信号に従って動作する。ま
ず、フレームメモリ(1)102は、濃淡画像パタンを格
納する濃淡画像1画面分のメモリであり、テレビカメラ
等(図示せず)を介して画像パタンが入力される。アド
レス制御部103は、フレームメモリ(1)102から、
指定された部分領域の画像パタンを読み出す為のアドレ
スを閾値/重み決定部104に与える。閾値/重み値決
定部104は、アドレス制御部103に対し部分領域番
号を順次与え、各部分領域毎に閾値及び重み値を求め、
これを補間処理部(I)105に与える。補間処理部(I)1
05は、閾値/重み値決定部104から得られた閾値及
び重み値から閾値を補正しこれを村補間処理部(II)10
6に与える。補間処理部(II)106は、補間処理部(I)
で補正された部分領域毎の閾値を補間して画像パタン全
体に対する閾値を求め、これをフレームメモリ(2)10
7に出力する。比較回路108は、フレームメモリ(1)
102およびフレームメモリ(2)107の対応する画素
のレベルの大小比較により濃淡画像パタンを2値化し、
その結果をフレームメモリ(2)107に出力する。
B (i, j) = 0: G (i, j) <T (i, j) 1: G (i, j) ≧ T (i, j) FIG. 1 shows the binarization process 1 described above. 1 is a common control unit, 102 is a frame memory (1), 103 is an address control unit, 104 is a threshold value / weight value determination unit, 105 is an interpolation processing unit (I), and 106 is a hardware configuration example. The interpolation processing unit (II), 107 is a frame memory (2), and 108 is a comparison circuit. In the figure, each unit is a common control unit 101.
It operates according to the timing signal given from the. First, the frame memory (1) 102 is a memory for one screen of a grayscale image that stores a grayscale image pattern, and the image pattern is input via a television camera or the like (not shown). The address control unit 103 receives from the frame memory (1) 102,
An address for reading the image pattern of the designated partial area is given to the threshold / weight determining unit 104. The threshold value / weight value determination unit 104 sequentially gives the partial area numbers to the address control unit 103, obtains the threshold value and the weight value for each partial area,
This is given to the interpolation processing unit (I) 105. Interpolation processing unit (I) 1
Reference numeral 05 denotes the threshold value and the weight value obtained from the threshold value / weight value determination unit 104, and the threshold value is corrected and the village interpolation processing unit (II) 10
Give to 6. The interpolation processing unit (II) 106 is an interpolation processing unit (I).
The threshold value for the entire image pattern is obtained by interpolating the threshold value for each partial area corrected by
Output to 7. The comparison circuit 108 includes a frame memory (1)
The grayscale image pattern is binarized by comparing the levels of the corresponding pixels in 102 and the frame memory (2) 107,
The result is output to the frame memory (2) 107.

<発明の効果> 以上述べた様に、本発明では、文字背景など低コントラ
ストの部分領域に対して求められた不適切な閾値を、そ
の周りの部分領域に対して求められた閾値および重み値
によって補正することによって適正な閾値を決定する。
従って、本発明によれば、情景中の文字図形や物体の認
識などのための領域抽出処理の前処理として、濃淡画像
中の文字、図形、物体などをその大きさによらず自動的
かつ安定に2値化できる。
<Effects of the Invention> As described above, according to the present invention, an inappropriate threshold value obtained for a low contrast partial area such as a character background is set as a threshold value and a weight value obtained for the surrounding partial areas. An appropriate threshold value is determined by correcting the threshold value.
Therefore, according to the present invention, as a pre-process of a region extraction process for recognizing a character or a figure or an object in a scene, a character, a figure or an object in a grayscale image is automatically and stably maintained regardless of its size. Can be binarized to

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

第1図は本発明濃淡画像の2値化方法の一実施例を示す
2値化処理のハードウエアの構成例、第2図は情景中の
文字の認識処理手順、第3図は2値化処理の詳細な手
順、第4図(a),(b),(c)は部分領域の分割例、第5図
は第2の補間処理の説明図である。 1……2値化処理、2……文字切り出し処理、3……文
字認識処理、11……領域分割処理、12……閾値決定
処理、13……重み値決定処理、14……第1の補間処
理、15……第2の補間処理、16……2値判定処理、
101……共通制御部、102……フレームメモリ
(1)、103……アドレス制御部、104……閾値/重
み決定部、105……補間処理部(I)、106……補間
処理部(II)、107……フレームメモリ(2)、108…
…比較回路。
FIG. 1 is a hardware configuration example of a binarization process showing an embodiment of a binarization method of a grayscale image of the present invention, FIG. 2 is a recognition process procedure of characters in a scene, and FIG. 3 is a binarization process. Detailed procedures of the processing, FIGS. 4 (a), (b), and (c) are examples of division of partial regions, and FIG. 5 is an explanatory diagram of the second interpolation processing. 1 ... Binarization processing, 2 ... Character cut-out processing, 3 ... Character recognition processing, 11 ... Region division processing, 12 ... Threshold value determination processing, 13 ... Weight value determination processing, 14 ... First Interpolation processing, 15 ... Second interpolation processing, 16 ... Binary determination processing,
101: common control unit, 102: frame memory
(1), 103 ... Address control unit, 104 ... Threshold / weight determination unit, 105 ... Interpolation processing unit (I), 106 ... Interpolation processing unit (II), 107 ... Frame memory (2), 108 …
… Comparison circuit.

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】濃淡画像の部分領域毎に該部分領域内の画
素の濃度の出現頻度をもとに該部分領域に対する局所的
閾値を決定し、得られた該局所的閾値に基いて、該濃淡
画像全体に対する閾値を求め、該濃淡画像全体に対する
閾値と該濃淡画像の値との大小により2値画像を得る2
値化方法に於て、 該部分領域毎に該部分領域内の濃淡画像に関して濃度の
コントラストを表わす重み値を求める手段と、 各部分領域に与えられた局所的閾値および重み値を、そ
の周辺の部分領域に与えられた局所的閾値および重み値
によって補正する第1の補間手段と、 該第1の補間手段による処理またはその繰り返し処理に
よって補正された局所的閾値をもとに、濃淡画像の全て
の画素に対する閾値を求める第2の補間手段を有する事
を特徴とする濃淡画像の2値化方法。
1. A local threshold value for each partial area of a grayscale image is determined based on the appearance frequency of the density of pixels in the partial area, and the local threshold value is determined based on the obtained local threshold value. A threshold value for the entire grayscale image is obtained, and a binary image is obtained based on the magnitude of the threshold value for the entire grayscale image and the value of the grayscale image.
In the binarization method, means for obtaining, for each of the partial areas, a weight value representing the contrast of the density for a grayscale image in the partial area, and a local threshold value and weight value given to each partial area Based on the local threshold corrected by the local threshold and the weight value given to the partial region and the local threshold corrected by the processing by the first interpolation means or the repeated processing, all the grayscale images The method for binarizing a grayscale image, comprising: a second interpolating means for obtaining a threshold value for each pixel.
【請求項2】重み値は、部分領域内の濃淡画像の明るさ
の標準偏差で与えられることを特徴とする特許請求の範
囲第(1)項記載の濃淡画像の2値化方法。
2. The binarizing method for a grayscale image according to claim 1, wherein the weight value is given by a standard deviation of the brightness of the grayscale image in the partial area.
【請求項3】重み値は、部分領域内の濃淡画像の明るさ
の平均値をA、標準偏差をSとするとき、 S/A で与えられることを特徴とする特許請求の範囲第(1)項
記載の濃淡画像の2値化方法。
3. A weight value is an average value of the brightness of the grayscale image A v in the partial area, when the standard deviation and S d, claims, characterized in that given by S d / A v A method of binarizing a grayscale image according to the range (1).
【請求項4】第1の補間手段は、横方向にm番目、縦方
向にn番目の部分領域(m,n)に対する重み値を
mn、該第1の補間手段によって補正する前及び後の閾
値をそれぞれθmn、θ′mnとするとき、 なる処理を1回または繰り返し行なうことを特徴とする
特許請求の範囲第(1)項、または第(2)項、または第(3)
項記載の濃淡画像の2値化方法。
4. The first interpolating means W mn is a weight value for the m-th partial area (m, n) in the horizontal direction and n-th partial area in the vertical direction, before and after correction by the first interpolating means. If the thresholds of θ mn and θ ′ mn are Claims (1), (2), or (3), characterized in that the following process is performed once or repeatedly.
A method of binarizing a grayscale image according to the item.
【請求項5】第1の補間手段は、横方向にm番目、縦方
向にn番目の部分領域(m,n)に対する重み値を
mn、φ、φを予め定めるφ≦φなるパラメー
タとするとき、Wmn≦φならWmn=0に置き換えて該
部分領域に対する補間処理を行ない、φ<Wmnなら該
部分領域に対する補間処理を行わないことを特徴とする
特許請求の範囲第(1)項または第(2)項、または第(3)
項、または第(4)項記載の濃淡画像の2値化方法。
5. The first interpolating means sets predetermined weighting values W mn , φ 1 and φ 2 for the m-th partial area (m, n) in the horizontal direction and the n-th partial area in the vertical direction, φ 1 ≦ φ when the 2 becomes parameter, patents, characterized in that W is replaced with mn ≦ phi 1 if W mn = 0 performs interpolation processing on the partial area, does not perform the interpolation process for phi 2 <W mn if the partial region Claim (1) or (2), or (3)
The method for binarizing a grayscale image according to item (4).
JP60034595A 1985-02-25 1985-02-25 Binarization method for grayscale images Expired - Lifetime JPH0614374B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60034595A JPH0614374B2 (en) 1985-02-25 1985-02-25 Binarization method for grayscale images

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60034595A JPH0614374B2 (en) 1985-02-25 1985-02-25 Binarization method for grayscale images

Publications (2)

Publication Number Publication Date
JPS61194580A JPS61194580A (en) 1986-08-28
JPH0614374B2 true JPH0614374B2 (en) 1994-02-23

Family

ID=12418686

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60034595A Expired - Lifetime JPH0614374B2 (en) 1985-02-25 1985-02-25 Binarization method for grayscale images

Country Status (1)

Country Link
JP (1) JPH0614374B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63220375A (en) * 1987-03-09 1988-09-13 Toray Ind Inc Binarization processing method for image

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS58215169A (en) * 1982-06-08 1983-12-14 Konishiroku Photo Ind Co Ltd Method and device for binary coding picture signal
JPS59114687A (en) * 1982-12-20 1984-07-02 Matsushita Electric Ind Co Ltd Binarization method of image data

Also Published As

Publication number Publication date
JPS61194580A (en) 1986-08-28

Similar Documents

Publication Publication Date Title
US6347156B1 (en) Device, method and storage medium for recognizing a document image
JPH0737103A (en) Inclination angle detection device
JP3576654B2 (en) Exposure determination method, figure extraction method, and face area determination method
JP3636936B2 (en) Grayscale image binarization method and recording medium recording grayscale image binarization program
JPH0614374B2 (en) Binarization method for grayscale images
JPH10285399A (en) Image binarization method
JP3533050B2 (en) Image area dividing device
JP3062394B2 (en) Moving image extraction method
JPH0718812B2 (en) Foreign object detection method
JP5337844B2 (en) Region detection apparatus, region detection method, and program
JP3462960B2 (en) Image processing method
JP2020188424A (en) Image processing apparatus, image forming apparatus, and image area determination method
JPH09305707A (en) Image extracting system
JP2960468B2 (en) Method and apparatus for binarizing grayscale image
JP2002183713A (en) Method and device for processing image
JP2956151B2 (en) Image processing method and apparatus
JPH09305766A (en) Recognition method for two-dimensional object
JP3460216B2 (en) Binarization method and apparatus
JPH06152947A (en) Image processor
JP3355234B2 (en) Image binarization device
JP2005184403A (en) Image processing apparatus
JP2671556B2 (en) Cleft line detection method and device
JP2000293629A (en) Image processing method, image processor and recording medium
JPH07115542A (en) Image processing device
JP2002216124A (en) Conversion method of image contrast by moving normalization method

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term