JP3341174B2 - Binarization processing method - Google Patents

Binarization processing method

Info

Publication number
JP3341174B2
JP3341174B2 JP27751693A JP27751693A JP3341174B2 JP 3341174 B2 JP3341174 B2 JP 3341174B2 JP 27751693 A JP27751693 A JP 27751693A JP 27751693 A JP27751693 A JP 27751693A JP 3341174 B2 JP3341174 B2 JP 3341174B2
Authority
JP
Japan
Prior art keywords
data
image data
gradation
density
image
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
JP27751693A
Other languages
Japanese (ja)
Other versions
JPH06197224A (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.)
Omron Corp
Original Assignee
Omron 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 Omron Corp filed Critical Omron Corp
Priority to JP27751693A priority Critical patent/JP3341174B2/en
Publication of JPH06197224A publication Critical patent/JPH06197224A/en
Application granted granted Critical
Publication of JP3341174B2 publication Critical patent/JP3341174B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

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

【0001】[0001]

【産業上の利用分野】この発明は、アナログ図形画像デ
ータやアナログ文字画像データを単ビットの2値化(bi
narization)画像データに変換するような2値化処理方
法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to the conversion of analog graphic image data and analog character image data into single-bit binary
The present invention relates to a binarization processing method for converting image data into image data.

【0002】[0002]

【従来の技術】一般に、濃淡画像、カラー画像などの多
値の画像(analog image、アナログ画像)から、2値
(1,0)の画像(binary image、2値化画像)を得る
ための2値化処理方法としては、単純2値化処理方法と
浮動2値化処理方法とがある。
2. Description of the Related Art Generally, a binary (1,0) image (binary image) for obtaining a binary (1,0) image from a multivalued image (analog image, analog image) such as a grayscale image or a color image. As the binarization processing method, there are a simple binarization processing method and a floating binarization processing method.

【0003】前者の単純2値化処理方法は、しきい値
(スレッショルドレベル)を設定(一定値に固定)して
2値化を行なう方法であり、例えば図12にしきい値を
128/255に設定した2値化を示し、図13にしき
い値を96/255に設定した2値化を示し、図14に
しきい値を64/255に設定した2値化を示すよう
に、しきい値が大きい場合には図12、図13に示す如
く潰れが生じやすく、特にこの潰れは画数の多い文字で
顕著となる。逆にしきい値が小さい場合には図14に示
す如く掠れが生じやすく、特にこの掠れは画数の少ない
文字で顕著となる。
The former simple binarization processing method is a method of performing a binarization by setting a threshold value (threshold level) (fixed to a constant value). For example, FIG. 13 shows the binarization with the threshold set to 96/255, and FIG. 14 shows the binarization with the threshold set to 64/255. When the size is large, crushing is likely to occur as shown in FIGS. 12 and 13, and this crushing is particularly remarkable in a character having a large number of strokes. Conversely, when the threshold value is small, blurring tends to occur as shown in FIG. 14, and this blurring is particularly noticeable in characters having a small number of strokes.

【0004】このような問題点を解決するためには、2
値化処理時のしきい値を調整すればある程度は対処でき
るが、潰れと掠れとはトレードオフ(trade off )の関
係となり、最適なしきい値を決定するためには濃淡ボリ
ューム、コントラスト(contrast、明暗)ボリューム等
のボリュームが必要となる。
In order to solve such a problem, 2
Adjustment of the threshold value at the time of the binarization process can cope to some extent, but crushing and blurring are in a trade-off relationship, and in order to determine the optimal threshold value, the shading volume, contrast (contrast, A light and dark volume is required.

【0005】一方、後者の浮動2値化処理方法は、2値
化しようとする対象画素の周辺の明るさ(画素濃度)か
ら逐次しきい値を変化させて2値化する方法であって、
図15に示すように良好な2値化処理を行なうことがで
きる。
On the other hand, the latter floating binarization processing method is a method in which the threshold value is sequentially changed from the brightness (pixel density) around the target pixel to be binarized, and the binarization is performed.
As shown in FIG. 15, good binarization processing can be performed.

【0006】しかし、この浮動2値化処理方法において
は、階調性(ここに階調とは、tone、白黒および中間調
からなる濃淡の程度を、視感覚における明るさの段階と
して対比したもの)を忠実に表現する方法であるから、
文字の背景が白地ではなく色付きの場合には、その背景
までも忠実に2値化することになり、例えば図16に示
す如き2値化画像となる。なお、図16では2値化され
た背景部分を図示の便宜上、ハッチングにて示してい
る。
[0006] However, in this floating binarization processing method, the gradation (where gradation is a contrast of the degree of shading consisting of tone, black and white, and halftone) as the level of brightness in the visual sense. ) Because it is a faithful representation of
If the background of the character is colored rather than a white background, the background is also faithfully binarized, resulting in a binarized image as shown in FIG. In FIG. 16, the binarized background portion is indicated by hatching for convenience of illustration.

【0007】図16に示すような画像(背景までも2値
化された画像)を例えば文字認識のベースデータとして
用いた場合、図16にハッチングを施して示す背景部分
は、単なるノイズ成分であるから、認識率を低下させる
要因となる。
When an image as shown in FIG. 16 (an image in which the background is binarized) is used, for example, as base data for character recognition, the background portion shown by hatching in FIG. 16 is merely a noise component. Therefore, it becomes a factor to lower the recognition rate.

【0008】上述の背景の2値化を修正するためには、
単純2値化処理方法によりしきい値を調整することで、
2値化された背景をある程度カットすることができる
が、この場合には濃淡ボリューム、コントラストボリュ
ーム等のボリュームが必要となり、加えて、文字の画数
の多少により潰れや掠れが生ずるため根本的な解決とは
なり得ない。
In order to correct the above-mentioned background binarization,
By adjusting the threshold value by the simple binarization processing method,
The binarized background can be cut to some extent. In this case, however, a volume such as a light and shade volume and a contrast volume is required. Can not be.

【0009】また上述の浮動2値化処理方法において、
文字の色が淡い場合には、下地と文字とのコントラスト
が弱すぎて(階調差が少なすぎて)、浮動2値の特徴を
充分に生かすことができず、図17に示すように掠れを
生ずる問題点があった。
In the above-mentioned floating binary processing method,
When the color of the character is light, the contrast between the background and the character is too weak (the gradation difference is too small), so that the floating binary feature cannot be fully utilized, and as shown in FIG. There was a problem that caused.

【0010】一方、上述の2値化処理後において背景の
データを除去する方法としては、孤立点除去方法が知ら
れている。この孤立点除去方法は図18に示すように例
えば2値化処理後の画像データから3×3(9画素)の
ブロックを作り、9画素の中央のみに黒データ(図18
においては図示の便宜上、ハッチングを施して黒データ
を示している)が存在する場合には、この中央の黒デー
タを孤立点として除去し、中央以外の3×3(9画素)
のブロック内の周辺部に黒データが存在する場合には、
データが枠外に連続している可能性があるので除去を禁
止する方法である。
On the other hand, as a method of removing background data after the above-mentioned binarization processing, an isolated point removal method is known. In this isolated point removing method, as shown in FIG. 18, for example, a block of 3 × 3 (9 pixels) is created from image data after binarization processing, and black data (FIG.
, Black data is shown by hatching for convenience of illustration), the black data at the center is removed as an isolated point, and 3 × 3 (9 pixels) other than the center is removed.
If there is black data in the periphery of the block of
This is a method of prohibiting removal because there is a possibility that the data is continuous outside the frame.

【0011】しかし、この孤立点除去方法においては、
2値化処理後の画像のデータを蓄えるメモリが必要とな
り、また全ての画像データ上で3×3(9画素)のブロ
ックを作り、孤立点を検知して、この孤立点を取り除く
方法であるから、ハード構造においては回路規模が大と
なり、ソフト処理においては処理時間が長くなる問題点
があった。
However, in this isolated point removing method,
In this method, a memory for storing image data after binarization processing is required, and a 3 × 3 (9 pixel) block is formed on all image data, an isolated point is detected, and the isolated point is removed. Therefore, there is a problem that the circuit scale becomes large in the hardware structure, and the processing time becomes long in the software processing.

【0012】以上要するに従前の各種従来方法において
濃淡ボリュームやコントラストボリューム、2値化処理
を選択する切替えスイッチ等を備えた場合には、ユーザ
がボリュームや切替えスイッチを操作しなければなら
ず、これらボリューム、切替えスイッチの適切な選択は
ユーザにとっては容易な操作ではありえない。このため
間違った選択が行なわれることが多々あり、斯るミス選
択時には画像の取り直しが必要となる。また文字認識等
に使用する際には、認識結果がでるまで適切な画像であ
ったか否かの判定が不可となり、仮りに画像データが適
切であったか否かを判定するには、画像を表示する必要
があるため、装置が複雑化することはもとより、画像が
ディスプレイ装置で表示されてもユーザにとっては当該
画像が適切な画像か否かの判断が困難であり、何れにし
ても従来方法においては上述した諸種の実用上の問題点
があった。
In the conventional various conventional methods described above, when a changeover switch for selecting a grayscale volume, a contrast volume, and a binarization process is provided, the user must operate the volume and the changeover switch. The appropriate selection of the changeover switch cannot be an easy operation for the user. For this reason, erroneous selections are often made, and it is necessary to retake images when such erroneous selections are made. In addition, when used for character recognition, etc., it is impossible to determine whether or not an appropriate image is obtained until a recognition result is obtained, and it is necessary to display an image in order to determine whether or not image data is appropriate. Therefore, it is difficult for the user to determine whether or not the image is an appropriate image, even if the image is displayed on the display device, in addition to the complexity of the device. There are various practical problems.

【0013】上述の問題点を解決する従来技術として、
自動濃淡補正方法がある。この自動濃淡補正方法は、2
値化しようとする画像データを全てメモリに蓄え、かつ
画像データの濃度(明るさ)別の度数分布表を作成し、
図19に示すように最濃濃度(真っ黒)と最淡濃度(真
っ白)から総数の数パーセント、例えば真っ白と真っ黒
から各2%に達するまで濃度を検出し、検出された濃度
をそれぞれ新たな最濃、最淡濃度としてダイナミックレ
ンジ(dynamic range 、動作範囲)を広げ(増幅し)、
コントラスト調整の補正計算を行なう方法である。
As a prior art for solving the above problems,
There is an automatic shading correction method. This automatic shading correction method is
Store all image data to be valued in memory, and create a frequency distribution table for each density (brightness) of the image data,
As shown in FIG. 19, the densities are detected from the highest density (pure black) and the lightest density (pure white) to a few percent of the total number, for example, from pure white and pure black to reach 2% each. The dynamic range (dynamic range, operating range) is expanded (amplified) as dark and lightest density,
This is a method for performing a correction calculation for contrast adjustment.

【0014】しかし、この自動濃淡補正方法においては
次のような問題点があった。すなわち、画像データを一
旦蓄えるメモリと、プレスキャンが必要であって、リア
ルタイム処理が不可能になると共に、ダイナミックレン
ジを広げる計算に乗算器およびCPU等が必要な関係
上、ハードウエアの構成およびゲート回路数が増大し
て、コストアップとなる問題点があった。
However, there are the following problems in this automatic shading correction method. That is, since a memory for temporarily storing image data and a pre-scan are required, real-time processing becomes impossible, and a multiplier, a CPU, and the like are required for calculations for expanding a dynamic range, a hardware configuration and a gate are required. There is a problem that the number of circuits increases and the cost increases.

【0015】[0015]

【発明が解決しようとする課題】この発明は、最適なし
きい値を決定するための濃淡ボリューム、コントラスト
ボリューム等を必要とすることなく、また背景の有無や
文字の濃淡の如何にかかわらず、ターゲットとする文字
や図形(chart )のみを潰れ、掠れを生ずることなく簡
易な回路構成にて2値化することができる2値化処理方
法の提供を目的とする。
SUMMARY OF THE INVENTION The present invention does not require the use of a contrast volume, a contrast volume, etc. for determining an optimum threshold value, and regardless of the presence or absence of a background and the contrast of a character. It is an object of the present invention to provide a binarization processing method which can binarize only characters and graphics (chart) with a simple circuit configuration without crushing and blurring.

【0016】[0016]

【課題を解決するための手段】この発明は、二値化画像
データへの変換を行なう元の画像データに対して 該画
像データにおける各階調域での画像データの存在を検出
する濃度検出部と、画像データの各階調域から対象画像
の濃度分布の特徴により定義して画像特性を分けた複数
のモードを設定すると共に 前記濃度検出部で検出され
た画像データの階調域から対象画像の濃度分布を判定
し、該判定に基づいて画像データを前記各モードに場合
分けを行なう判定部と、上記判定部で判定されたモード
に従って、画像データの所定の階調域のデータをカット
した後に、残りの画像データを元のデータ範囲に拡大す
るデータ補正部と、上記判定部で判定されたモードに
づいて選択した上記データ補正部の補正データ または
ノーマルデータを2値化処理する2値化処理部とを備
え、アナログ画像データを2値化画像データに変換する
2値化処理方法であることを特徴とする。
SUMMARY OF THE INVENTION The present invention provides a binary image
The original image data to be converted to data, 該画
A density detector for detecting the presence of image data in each gradation area in the image data; and a target image from each gradation area of the image data.
Image characteristics divided by defining the density distribution characteristics
Mode is set, and the density is detected by the concentration detection unit.
A determination unit that determines the density distribution of the target image from the gradation range of the image data obtained, and classifies the image data into the respective modes based on the determination; and a mode determined by the determination unit.
Cuts the data in the predetermined gradation range of the image data according to
The remaining image data to the original data range.
That data correction unit and a mode based on determined in the determination unit
Correction data of the data correction unit selected by Zui or,
A binarization processing unit for performing binarization processing on normal data, and a binarization processing method for converting analog image data into binarized image data.

【0017】[0017]

【作用】この発明によれば、上述の濃度検出部は各階調
域での画像データの存在を検出し、判定部は上述の濃度
検出部により検出された画像データの階調域から対象画
像の濃度分布を判定すると共に、各モードに場合分けを
実行し、データ補正部はモードに従って、画像データの
所定の階調域のデータをカットした後に、残りの画像デ
ータを元のデータ範囲に拡大して補正する。したがっ
て、上述の2値化処理部はモードに基づいて選択した上
記データ補正部の補正データ またはノーマルデータ
を、上述の判定されたモードに従って、例えば、浮動2
値化処理または単純2値化処理による2値化処理を行な
うことで、アナログ画像データを2値化画像データに変
換する。
According to the present invention, the above-mentioned density detecting section detects the presence of image data in each gradation area, and the determination section determines the target image from the gradation area of the image data detected by the above-mentioned density detecting section. In addition to determining the density distribution, a case classification is performed for each mode, and the data correction unit determines the image data according to the mode.
After cutting the data in the specified gradation range, the remaining image data
Data is expanded to the original data range and corrected. Accordingly
The above-described binarization processing unit selects based on the mode.
Serial data correction of the correction data or normal data,
According to the determined mode, for example, floating 2
The analog image data is converted into binary image data by performing a binarization process by a binarization process or a simple binarization process.

【0018】[0018]

【発明の効果】この結果、従来のような最適なしきい値
を決定するための濃淡ボリューム、コントラストボリュ
ーム、或は切替えスイッチ等を何等必要とすることな
く、また背景の有無や文字、図形の濃淡の如何にかかわ
らず、ターゲートとする文字、図形のみを潰れ、掠れを
生ずることなく、簡易な回路構成にて2値化することが
できる効果がある。
As a result, there is no need for a contrast volume, a contrast volume, or a changeover switch for determining an optimum threshold value as in the prior art. Irrespective of the above, there is an effect that binarization can be performed with a simple circuit configuration without crushing or blurring only characters and figures used as target.

【0019】[0019]

【実施例】この発明の一実施例を以下図面に基づいて詳
述する。図1は2値化処理方法に用いる2値化処理装置
を示し、7ビットA/Dコンバータ11はアナログ画素
データを7ビットのデジタルデータに変換する。上述の
7ビットA/Dコンバータ11の次段には濃度検出部2
2(図5参照)、カウンタ回路34(図6参照)および
判定部(図9参照)を含む濃度検知回路12と、データ
補正部13とを接続している。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS One embodiment of the present invention will be described below in detail with reference to the drawings. FIG. 1 shows a binarization processing device used in a binarization processing method. A 7-bit A / D converter 11 converts analog pixel data into 7-bit digital data. Following the above 7-bit A / D converter 11, the density detector 2
2 (see FIG. 5), a density detection circuit 12 including a counter circuit 34 (see FIG. 6) and a determination unit (see FIG. 9), and a data correction unit 13.

【0020】この実施例では画素データのダイナミック
レンジを明るさ毎に図2に示す合計8つの階調域「0」
「1」「2」「3」「4」「5」「6」「7」に分類
し、さらに同図に示すように明部1/8を非常に明るい
階調域A(エリアA)に、暗部3/8を非常に暗い階調
域B(エリアB)に、明部3/8をわりと明るい階調域
C(エリアC)にそれぞれ設定し、上述の濃度検知回路
12において、各階調域A,B,Cでの画素データの存
在をリアルタイム(real-time )で検出すると共に、画
素データが検出された階調域A,B,Cから対象画像の
濃度分布を判定し、次に表1で示す判定条件に従って各
モード1〜4に場合分けを行なうように構成している。
In this embodiment, the dynamic range of the pixel data is divided into eight gradation ranges "0" shown in FIG.
It is classified into “1”, “2”, “3”, “4”, “5”, “6”, and “7”, and as shown in FIG. , The dark part 3/8 is set in a very dark gradation area B (area B), and the light part 3/8 is set in a relatively light gradation area C (area C). The presence of pixel data in the adjustment areas A, B, and C is detected in real time, and the density distribution of the target image is determined from the gradation areas A, B, and C where the pixel data is detected. Are configured so that the cases are classified into the modes 1 to 4 according to the determination conditions shown in Table 1.

【0021】[0021]

【表1】 [Table 1]

【0022】上述の各モード1〜4への場合分けは次の
ように実行される。すなわち、階調域Aが真(YE
S)、階調域Bが真(YES)を共に満足する時はモー
ド1、階調域Aが真(YES)、階調域Bが偽(NO)
を共に満足する時はモード2、階調域Aが偽(NO)、
階調域Cが真(YES)を共に満足する時はモード3、
階調域Aが偽(NO)、階調域Cが偽(NO)を共に満
足する時はモード4、となるように上述の各階調域A,
B,Cから画像の状態をデコード(decode、解読)す
る。
The above-mentioned division into the modes 1 to 4 is executed as follows. That is, the gradation area A is true (YE
S), when the gradation range B satisfies both true (YES), mode 1, the gradation range A is true (YES), and the gradation range B is false (NO).
When both are satisfied, the mode 2, the gradation area A is false (NO),
When the gradation range C satisfies both true (YES), mode 3,
When the gradation area A satisfies both false (NO) and the gradation area C satisfies both false (NO), the above-mentioned gradation areas A,
The state of the image is decoded (decoded) from B and C.

【0023】上述のデータ補正部13は7ビットA/D
コンバータ11でアナログ・デジタル変換された画素デ
ータを、上述の表1のデータ補正内容に従って常時3種
類の補正データに補正する。
The above-mentioned data correction unit 13 has a 7-bit A / D
The pixel data that has been converted from analog to digital by the converter 11 is constantly corrected to three types of correction data in accordance with the data correction contents in Table 1 described above.

【0024】すなわち、モード1、モード4の時は補正
を実行しないノーマル態様とし、モード2の時は、画素
データ値の暗い方1/2をカット(零に)し、残った明
るい方1/2のデータ値を2倍にして元のレンジへ戻す
データ補正を実行し、モード3の時は、画素データ値の
明るい方3/4をカット(最大の明るさの値に)し、残
った暗い方1/4のデータを4倍にして元のレンジへ戻
すデータ補正を実行する。
That is, in modes 1 and 4, a normal mode is used in which no correction is performed. In mode 2, the darker half of the pixel data value is cut (to zero) and the remaining brighter half is removed. Data correction for doubling the data value of 2 to return to the original range was executed. In mode 3, the brighter 3/4 of the pixel data value was cut (to the maximum brightness value) and remained. Data correction is performed to return the data of the darker quarter to four times the original range.

【0025】上述のモード2、モード3に対応する一例
を図3、図4に示す。図3はモード2に対応するデータ
補正のアルゴリズム(algorithm)を示し、0ポイント
〜127ポイントの画像データの暗い方1/2つまり6
4ポイント以下のものを零とし、残った明るい方1/2
のデータを2倍にレンジ拡大して元のレンジへ戻す。な
お、2値化に際しては補正データを5ビットに変換して
用いる。すなわち7ビットデータD,D,D,D
,D,D,Dを5ビットに変換する場合にはデ
ータD〜Dを用い、この際、D=0の時には5ビ
ットデータD〜Dをすべて零とする。
An example corresponding to the above-mentioned modes 2 and 3 is shown in FIGS. FIG. 3 shows a data correction algorithm (algorithm) corresponding to mode 2, in which the darker half of the image data of 0 to 127 points, that is, 6
Anything less than 4 points is regarded as zero, and the remaining brighter half
The range of the data is doubled and returned to the original range. In binarization, the correction data is converted into 5 bits and used. That is, the 7-bit data D 7 , D 6 , D 5 , D
4, D 3, D 2, using the data D 6 to D 2 in the case of converting D 1 to 5 bits, this time, at the time of D 7 = 0 and all the 5-bit data D 6 to D 2 zero .

【0026】同様に、図4はモード3に対応するデータ
補正のアルゴリズムを示し、0ポイント〜127ポイン
トの画像データの明るい方3/4つまり31ポイント以
上のものをカット(127ポイントに)し、残った暗い
方1/4のデータを4倍にレンジ拡大して元のレンジへ
戻す。なお、2値化に際しては補正データを5ビットに
変換して用いる。すなわち、7ビットデータD
,D,D,D,D,Dを5ビットに変換
する場合、D=D=0の時にはデータD〜D
5ビットデータとし、7ビットデータD,Dのう
ち、何れか一方でも「1」の時には5ビットデータは全
て127ポイントとする。また、ノーマルモード時のデ
ータ補正のアルゴリズムは、7ビットデータを5ビット
データに変換する場合、D,Dを無視してD〜D
の5ビット分を5ビットデータに変換したデータとす
る。
Similarly, FIG. 4 shows an algorithm for data correction corresponding to mode 3, in which the brighter 3/4 of the image data of 0 to 127 points, that is, the data of 31 points or more is cut (to 127 points). The remaining dark 1/4 data is expanded to 4 times the range and returned to the original range. In binarization, the correction data is converted into 5 bits and used. That is, the 7-bit data D 7 ,
When D 6 , D 5 , D 4 , D 3 , D 2 , and D 1 are converted to 5 bits, when D 7 = D 6 = 0, the data D 5 to D 1 are 5 bit data, and the 7 bit data D 7, of the D 6, and all 5-bit data 127 points at the time of either one nor "1". In the normal mode data correction algorithm, when converting 7-bit data to 5-bit data, D 7 to D 1 are ignored ignoring D 2 and D 1.
It is assumed that 5 bits of 3 are converted into 5-bit data.

【0027】ところで、図1において上述のデータ補正
部13の次段には5ビット変換回路14を接続してい
る。この5ビット変換回路14は後段の2値化回路18
において5ビットで処理を行なうため7ビットデータを
5ビットデータに変換するための回路である。換言すれ
ば上述のデータ補正部13は2値化処理を行なうデータ
4倍の階調性を持つデータを有している。つまり5ビッ
トデータにて2値化処理を行なうことに対応して2
7−5=2=4倍の階調性を備えることで、4倍の階
調性のデータから補正データを算出し、階調性を損なう
ことなくデータを補正するように構成している。
In FIG. 1, a 5-bit conversion circuit 14 is connected to the next stage of the data correction unit 13 described above. This 5-bit conversion circuit 14 is a binary conversion circuit 18 at the subsequent stage.
Is a circuit for converting 7-bit data to 5-bit data in order to perform processing with 5 bits. In other words, the above-described data correction unit 13 has data having four times the gradation of the data to be subjected to the binarization processing. In other words, in response to performing the binarization processing using 5-bit data,
By providing 7−5 = 2 2 = 4 times gradation, correction data is calculated from data of 4 times gradation, and data is corrected without impairing gradation. .

【0028】また上述の5ビット変換回路14の次段に
はデータ選択回路15を接続している。このデータ選択
回路15は濃度検知回路12からのモード判定信号mに
従って、ノーマル、上位1/2のみ、下位1/4のみの
3種類の画素データから1つを選択する回路である。こ
のデータ選択回路15の次段には、浮動2値化しきい値
設定回路16と、2値化回路18とをそれぞれ接続して
いる。
A data selection circuit 15 is connected to the next stage of the 5-bit conversion circuit 14 described above. The data selection circuit 15 is a circuit that selects one of three types of pixel data, i.e., normal, only the upper half, and only the lower quarter, according to the mode determination signal m from the density detection circuit 12. To the next stage of the data selection circuit 15, a floating binarization threshold value setting circuit 16 and a binarization circuit 18 are connected.

【0029】ここで、上述の浮動2値化しきい値設定回
路16は2値化対象画素の周辺濃度を算出する周辺濃度
算出部19と、浮動2値化しきい値を算出するしきい値
算出部20とを備え、上述のモード1、モード2、モー
ド3に対応して浮動2値化しきい値を設定する。また単
純2値化しきい値設定回路17は、上述のモード4に対
応して暗い方へ片寄ったしきい値、例えばしきい値=3
Hを設定する。具体的には、しきい値=3Hとは、5ビ
ットデータの値が0〜2ポイント時は0にし、3〜31
ポイントは1に2値化することを示す。
Here, the above-mentioned floating binarization threshold setting circuit 16 has a peripheral density calculator 19 for calculating the peripheral density of the pixel to be binarized, and a threshold calculator for calculating the floating binarization threshold. 20 and a floating binary threshold is set corresponding to the above-described modes 1, 2 and 3. Further, the simple binarization threshold value setting circuit 17 provides a threshold value which is deviated to a darker direction, for example, the threshold value = 3 corresponding to the above-described mode 4.
Set H. Specifically, the threshold value = 3H means that the value of 5-bit data is set to 0 when the value of the 5-bit data is 0 to 2 points.
The point indicates that it is binarized to 1.

【0030】上述の各しきい値設定回路16、17の次
段には、しきい値選択回路21を接続している。このし
きい値選択回路21は濃度検知回路12からのモード判
定信号mに従って、モード1、モード2、モード3に対
応する浮動2値化しきい値を用いるか或はモード4に対
応する暗い方へ片寄った単純2値化しきい値を用いるか
を選択する。そして、このしきい値選択回路21の次段
に接続した2値化回路18は、該しきい値選択回路21
で選択されたしきい値に従って2値化処理を実行する。
A threshold selection circuit 21 is connected to the next stage of each of the threshold setting circuits 16 and 17 described above. This threshold value selection circuit 21 uses a floating binarization threshold value corresponding to mode 1, mode 2, mode 3 according to the mode determination signal m from the density detection circuit 12, or to a darker one corresponding to mode 4. Select whether to use a biased simple binarization threshold. Then, the binarizing circuit 18 connected to the next stage of the threshold value selecting circuit 21
The binarization process is executed according to the threshold value selected in.

【0031】図5は図1で示した濃度検知回路12の一
部を構成する濃度検出部22の具体的回路構成を示し、
否定回路としての合計6つのNOT回路23〜28と、
論理和回路としての合計2つのOR回路29,30と、
否定論理積回路としての合計3つのNAND回路31,
32,33とを備え、7ビットA/Dコンバータ11で
A/D変換された上位3ビットの信号AD5,AD6,
AD7入力に基づいて論理演算を行ない、NAND回路
31の出力より暗いデータが存在するエリアB信号を、
NAND回路32の出力よりわりと明るいデータが存在
するエリアC信号を、NAND回路33の出力より非常
に明るいデータが存在するエリアA信号を得るデコード
回路である(図5、図6において、上記各エリアA,
B,Cの信号は図中バーを付けた信号に対応する)。
FIG. 5 shows a specific circuit configuration of the density detecting section 22 constituting a part of the density detecting circuit 12 shown in FIG.
A total of six NOT circuits 23 to 28 as a NOT circuit;
A total of two OR circuits 29 and 30 as an OR circuit;
A total of three NAND circuits 31 as a NAND circuit,
32, 33, and the upper three bits of signals AD5, AD6, A / D converted by the 7-bit A / D converter 11.
A logical operation is performed based on the AD7 input, and an area B signal in which data darker than the output of the NAND circuit 31 exists
This is a decoding circuit that obtains an area C signal in which data that is considerably brighter than the output of the NAND circuit 32 exists and an area A signal in which data that is much brighter than the output of the NAND circuit 33 exists (in FIGS. Area A,
The signals B and C correspond to the signals with bars in the figure).

【0032】図6は図5で示した濃度検出部22と、図
9で示す判定部47との間に介設されるカウンタ回路3
4を示し、このカウンタ回路34は否定論理積回路とし
ての合計3つのAND回路35,36,37と、合計9
個のフリップフロップ回路38〜46とを備え、図5に
示す各信号つまりエリアA信号、エリアB信号、エリア
C信号がそれぞれ4回確認された時、当該エリア信号の
存在を確定することで、ノイズ等に影響されにくい濃度
検出を行なうように構成している。
FIG. 6 shows a counter circuit 3 interposed between the density detecting section 22 shown in FIG. 5 and the judging section 47 shown in FIG.
The counter circuit 34 includes three AND circuits 35, 36, and 37 as a NAND circuit, and a total of nine AND circuits.
When the signals shown in FIG. 5, that is, the area A signal, the area B signal, and the area C signal are respectively confirmed four times, the existence of the area signal is determined. It is configured to perform density detection that is not easily affected by noise or the like.

【0033】そして、非常に明るいデータが存在するエ
リアA信号を4回確認した場合には、フリップフロップ
回路40からエリアAの条件確定信号CONAを、暗い
データが存在するエリアB信号を4回確認した場合に
は、フリップフロップ回路43からエリアBの条件確定
信号CONBを、わりと明るいデータが存在するエリア
C信号を4回確認した場合には、フリップフロップ回路
46からエリアCの条件確定信号CONCをそれぞれ出
力する。
When the area A signal containing very bright data is confirmed four times, the condition confirmation signal CONA of the area A is confirmed from the flip-flop circuit 40 and the area B signal containing dark data is confirmed four times. In this case, when the condition determination signal CONB for the area B is confirmed from the flip-flop circuit 43 four times, and when the area C signal having relatively bright data exists is confirmed four times, the condition determination signal CONC for the area C is determined from the flip-flop circuit 46. Are output.

【0034】但し、エリアAの条件確定信号CONAを
出力するためのフリップフロップ回路38,39,40
およびエリアCの条件確定信号CONCを出力するため
のフリップフロップ回路44,45,46は各クリア端
子をCLR1信号でクリアし、また、エリアBの条件確
定信号のCONBを出力するためのフリップフロップ回
路41,42,43は各クリア端子をCLR2信号でク
リアする。これらCLR1,2の各信号のタイミングは
図20に示す通りであって、例えば、図8に示す「木」
の1文字を1スキャンしたとき、CLR1信号は画素デ
ータの1ラインごとに出力し、また、CLR2信号は1
スキャンに1回出力する。
However, flip-flop circuits 38, 39, 40 for outputting the condition determination signal CONA of area A
And flip-flop circuits 44, 45 and 46 for outputting the condition determination signal CONC of the area C clear the respective clear terminals with the CLR1 signal, and for outputting the condition determination signal CONB of the area B. Reference numerals 41, 42 and 43 clear the respective clear terminals with the CLR2 signal. The timing of each signal of these CLRs 1 and 2 is as shown in FIG. 20, for example, "tree" shown in FIG.
When one character is scanned for one line, the CLR1 signal is output for each line of pixel data, and the CLR2 signal is output for one line.
Output once per scan.

【0035】これは明部(背景)データは多くあると考
えられるので、各ラインごとにフリップフロップ回路3
8〜40,44〜46をクリアすることで、汚れ等の影
響を受け難くし、暗部(文字)データは少ないラインも
あるので、1スキャン分継続的に検知して確実性を求め
ている。
This is thought to be due to the fact that there is a lot of bright part (background) data.
By clearing 8 to 40 and 44 to 46, the influence of dirt and the like is reduced, and there are some lines in which the dark part (character) data is small. Therefore, detection is continuously performed for one scan to obtain certainty.

【0036】図7、図8は対象画素のサンプリング範囲
を示し、図7に示すように1ラインの画素数が126画
素の場合には中心部の64画素のみをサンプリングし、
また図8に示すように読取幅が8mmの場合には中央部4
mmのみを検索範囲とする。すなわち、上述の濃度検知回
路12、詳しくは濃度検出部22では、主走査の全ての
画素を対象に濃度検出を行なうのではなく、中央部の画
素のみを対象に濃度検出を行ない、主走査先頭部および
末部は対象にしないことで、ノイズや背景の変化に影響
されにくい濃度検出を行なう。
7 and 8 show the sampling range of the target pixel. As shown in FIG. 7, when the number of pixels in one line is 126, only the central 64 pixels are sampled.
When the reading width is 8 mm as shown in FIG.
Only mm is the search range. That is, the above-described density detection circuit 12, specifically, the density detection unit 22, does not perform the density detection for all the pixels in the main scan, but performs the density detection for only the pixels in the central portion. By not targeting the part and the end part, density detection that is not easily affected by noise or background change is performed.

【0037】図9は、画像データが検出された階調域
A,B,Cから対象画像の濃度分布を判定し、モード
1、モード2、モード3、モード4の各モードに場合分
けを行なう判定部47の具体的回路構成を示し、この判
定部47は否定論理積回路としての合計4つのNAND
回路48,49,50,51と、論理積回路としての1
つのAND回路52とを備え、図6に示すカウンタ回路
34からの各出力信号を、この判定部47の入力信号と
し、それぞれの条件確定信号CONA,CONB,CO
NCと、各条件確定NOT信号(図9においては条件確
定信号にバーを付して示す信号)との入力に基づいて論
理演算を行ない、各モードに場合分けを行なう。
FIG. 9 shows a case where the density distribution of the target image is determined from the gradation areas A, B, and C in which the image data is detected, and the cases are classified into mode 1, mode 2, mode 3, and mode 4. 4 shows a specific circuit configuration of the determination unit 47, and the determination unit 47 includes a total of four NANDs as a NAND circuit.
Circuits 48, 49, 50, 51 and one as an AND circuit
Each of the output signals from the counter circuit 34 shown in FIG. 6 is used as an input signal of this determination unit 47, and the respective condition determination signals CONA, CONB, CO
A logical operation is performed based on the input of the NC and each condition determination NOT signal (a signal in which a bar is added to the condition determination signal in FIG. 9), and the respective modes are classified.

【0038】なお、この実施例では各ゲート回路48〜
52のそれぞれの出力段にNOTMODE4,NOTM
ODE3,NOTMODE2,NOTMODE1,NO
TMODE23(但し、図9においては各モード信号に
バーを付して示す)のモード信号を得る。この判定条件
は先に示した[表1]の通りである。
In this embodiment, each of the gate circuits 48 to
52, NOTMODE4, NOTM
ODE3, NOTMODE2, NOTMODE1, NO
A mode signal of TMODE23 (however, each mode signal is indicated by a bar in FIG. 9) is obtained. This determination condition is as shown in [Table 1] described above.

【0039】図10は、図1で示したデータ補正部13
と5ビット変換回路14とデータ選択回路15の具体的
回路構成を示し、図10において前段のデータ補正部1
3は論理積回路としての合計5つのAND回路53〜5
7と、論理和回路としての合計6つのOR回路58〜6
3とを備え、上述のAND回路ブロックをモード2に対
応する上位1/2補正用とし、上述のOR回路ブロック
をモード3に対応する下位1/4補正用としている。
FIG. 10 shows the data correction unit 13 shown in FIG.
FIG. 10 shows a specific circuit configuration of the 5-bit conversion circuit 14 and the data selection circuit 15, and FIG.
3 is a total of five AND circuits 53 to 5 as AND circuits
7 and a total of six OR circuits 58 to 6 as OR circuits.
3 and the above-mentioned AND circuit block is used for the upper half correction corresponding to the mode 2 and the above-mentioned OR circuit block is used for the lower quarter correction corresponding to the mode 3.

【0040】図10において後段の5ビット変換回路1
4およびデータ選択回路15は、2つのセレクタ回路6
4,65と、2つのセレクタ回路66,67とを有し、
7ビットを5ビットデータに変換すると共に、モードに
よってセレクト(選択)された5ビットデータを出力す
る。すなわち、これら両回路13,14,15において
は7ビットA/Dコンバータ11でA/D変換された7
ビット信号AD1,AD2,AD3,AD4,AD5,
AD6,AD7をノーマル、上位1/2、下位1/4に
補正した後に、5ビットデータにビット変換されたデー
タDATA0,DATA1,DATA2,DATA3,
DATA4を出力するように構成している。
In FIG. 10, the subsequent 5-bit conversion circuit 1
4 and the data selection circuit 15 include two selector circuits 6
4, 65, and two selector circuits 66, 67,
7 bits are converted into 5-bit data, and 5-bit data selected (selected) according to the mode is output. That is, in these two circuits 13, 14, and 15, the 7-bit A / D converter 11 performs A / D conversion.
Bit signals AD1, AD2, AD3, AD4, AD5
After correcting AD6 and AD7 to normal, upper half, and lower quarter, data DATA0, DATA1, DATA2, DATA3, which are bit-converted into 5-bit data
It is configured to output DATA4.

【0041】なお、前述のセレクタ回路64,65,6
6,67の論理出力は、SEL端子にハイ(High)
が入力されると、Y端子の出力はB端子側と同一、ま
た、SEL端子にロウ(Low)が入力されると、Y端
子の出力はA端子側と同一となる。
The above-described selector circuits 64, 65, 6
6, 67 logic outputs are high at the SEL terminal.
Is input, the output of the Y terminal is the same as that of the B terminal, and when a low (Low) signal is input to the SEL terminal, the output of the Y terminal is the same as that of the A terminal.

【0042】このように構成した2値化処理装置を用い
て、アナログ画像データを2値化する処理方法につい
て、以下に詳述する。アナログ画像データは図1の7ビ
ットA/Dコンバータ11で7ビットのデジタルデータ
に変換され、変換された7ビットのデジタルデータは次
段の濃度検知回路12およびデータ補正部13に出力さ
れる。
A processing method for binarizing analog image data using the binarization processing device configured as described above will be described in detail below. The analog image data is converted into 7-bit digital data by the 7-bit A / D converter 11 shown in FIG. 1, and the converted 7-bit digital data is output to the next-stage density detection circuit 12 and data correction unit 13.

【0043】上述の濃度検知回路12における濃度検出
部22(図5参照)で、上位3ビットの信号AD5,A
D6,AD7が論理演算され、図2に示す合計8つの階
調域に分類されたそれぞれの階調域のうち、非常に明る
い階調域A、非常に暗い階調域B、わりと明るい階調域
Cの何れのデータが存在するかが検出されて、同濃度検
出部22の出力段には、その存在に対応してエリアA信
号、エリアB信号、エリアC信号が取出される。
In the density detecting section 22 (see FIG. 5) of the density detecting circuit 12, the upper three bits of the signals AD5, A
D6 and AD7 are logically operated, and among the gradation areas classified into a total of eight gradation areas shown in FIG. 2, a very bright gradation area A, a very dark gradation area B, and a relatively bright gradation area. It is detected which data of the tuning range C is present, and an area A signal, an area B signal, and an area C signal are taken out from the output stage of the density detecting section 22 in accordance with the presence.

【0044】上述の各エリア信号は図6に示すカウンタ
回路34に出力され、このカウンタ回路34では当該エ
リア信号を4回確認した場合にのみ、当該エリア信号の
存在を確定する条件確定信号CONA,CONB,CO
NCを出力する。
Each of the above-mentioned area signals is output to a counter circuit 34 shown in FIG. 6. Only when the area signal is confirmed four times, the condition determination signal CONA, which determines the existence of the area signal, is output. CONB, CO
Output NC.

【0045】これらの各条件確定信号CONA,CON
B,CONCと、各条件確定NOT信号とが次段の判定
部47(図9参照)に出力され、この判定部47では濃
度分布に対してモード1〜モード4に場合分けが実行さ
れる。
Each of these condition determination signals CONA, CON
B, CONC, and each condition determination NOT signal are output to the determination unit 47 (see FIG. 9) at the next stage, and the determination unit 47 classifies the density distribution into modes 1 to 4.

【0046】上述のデータ補正部13ではモード1〜モ
ード4に対応してデータの補正が実行される。すなわ
ち、モード1、モード4の時には補正を実行しないノー
マル態様とされ、モード2の時は、画素データ値の暗い
方1/2をカット(零に)し、残った明るい方1/2の
データ値を2倍にして元のレンジへ戻すデータ補正が実
行され、モード3の時には、画素データ値の明るい方3
/4をカット(最も明るい画素値に)し、残った暗い方
1/4のデータ値を4倍にして元のレンジに戻すデータ
補正が実行される。
The data correction section 13 corrects data corresponding to Modes 1 to 4. That is, in the mode 1 and the mode 4, the correction is not performed in the normal mode. In the mode 2, the darker half of the pixel data value is cut (to zero), and the remaining brighter half data is removed. Data correction for doubling the value to return to the original range is executed.
/ 4 is cut (to the brightest pixel value) and the data value of the remaining darker quarter is quadrupled to return to the original range.

【0047】そして、これらの補正データ(ノーマルデ
ータを含む)は次段の5ビット変換回路14で7ビット
から5ビットにビット変換され、次段のデータ選択回路
15は濃度検知回路12、詳しくは判定部47からのモ
ード判定信号mに従って、ノーマル、上位1/2のみ、
下位1/4のみの3種類の補正データから1つを選択す
る。
The correction data (including normal data) is bit-converted from 7 bits to 5 bits by a 5-bit conversion circuit 14 in the next stage, and a data selection circuit 15 in the next stage is a density detection circuit 12, specifically, According to the mode determination signal m from the determination unit 47, only the normal, upper half,
One is selected from three types of correction data of only the lower 1/4.

【0048】つまり、先の[表1]に示すようにモード
1およびモード4の場合にはノーマルデータを選択し、
モード2の場合には上位1/2データを選択し、モード
3の場合には下位1/4データを選択する。
That is, as shown in Table 1 above, in the case of mode 1 and mode 4, normal data is selected,
In the case of mode 2, the upper 1/2 data is selected, and in the case of mode 3, the lower 1/4 data is selected.

【0049】このようにして上述のデータ選択回路15
で選択された補正後の画像データに基づいて次段の各し
きい値設定回路16,17でしきい値が設定されるが、
モード1,モード2、モード3の時には浮動2値化しき
い値設定回路16により浮動2値化のしきい値が設定さ
れ、モード4の時には単純2値化しきい値設定回路17
により、暗い方へ片寄った単純2値化のしきい値、例え
ばしきい値=3Hが設定される。
In this manner, the above-described data selection circuit 15
The threshold value is set by each of the threshold value setting circuits 16 and 17 in the next stage based on the corrected image data selected in the above.
In mode 1, mode 2 and mode 3, the floating binarization threshold setting circuit 16 sets the threshold for floating binarization, and in mode 4, the simple binarization threshold setting circuit 17
As a result, a threshold value for simple binarization that is deviated toward the dark side, for example, a threshold value = 3H is set.

【0050】さらに次段のしきい値選択回路21では、
モード判定信号mによりモード1〜4に対応したしきい
値つまり浮動2値化しきい値と単純2値化しきい値とが
選定され、このしきい値選択回路21で選定されたしき
い値により次段の2値化回路18で2値化処理が実行さ
れる。
Further, in the threshold selection circuit 21 at the next stage,
Thresholds corresponding to modes 1 to 4, ie, a floating binarization threshold and a simple binarization threshold, are selected by mode determination signal m. A binarization process is performed by the binarization circuit 18 of the stage.

【0051】以上要するに、図2に示す非常に明るい階
調域Aと非常に暗い階調域Bとの両対極の階調域を有す
る画像データ(モード1に対応)に対しては補正なしの
条件下にて浮動2値化しきい値が選定された後に、2値
化され、図2に示す非常に明るい階調域Aを有し、非常
に暗い階調域Bを有さない画像データ(モード2に対
応)に対しては、画像データが明るい側に片寄っている
ので、当該画像データの暗い方1/2すなわち各画素値
の暗い方1/2をカット(零に)し、残った明るい方1
/2を2倍にして元のレンジに戻すデータ補正を行なう
と共に、浮動2値化しきい値が選定された後に、2値化
され、図2に示す非常に明るい階調域Aがなく、わりと
明るい階調域Cを有する画像データ(モード3に対応)
に対しては、画像データが一側に片寄っている(例え
ば、文字図形の背景が白地ではなく色付きの場合)の
で、当該画像データの明るい方3/4をカット(最大の
明るさの値に)し、残った暗い方1/4を4倍にして元
のレンジに戻すデータ補正を行なうと共に、浮動2値化
しきい値が選定された後に、2値化され、図2に示す非
常に明るい階調域Aとわりと明るい階調域Cとを共に有
さない画像データ(モード4に対応)に対しては、画像
データが暗い側に片寄っているので、当該画像データに
対しては単純2値化しきい値を暗い方へ片寄ったしきい
値に設定した後に、2値化される。
In short, there is no correction for image data (corresponding to mode 1) having both opposite gray scale areas of a very bright gray scale area A and a very dark gray scale area B shown in FIG. After the floating binarization threshold value is selected under the condition, the binarized image data having the very bright gradation area A and not having the very dark gradation area B shown in FIG. (Corresponding to mode 2), since the image data is deviated to the bright side, the darker half of the image data, that is, the darker half of each pixel value is cut (reduced to zero) and remains. Bright one 1
/ 2 is doubled, data is returned to the original range, and after the floating binarization threshold value is selected, binarization is performed and there is no very bright gradation area A shown in FIG. And image data having a bright gradation range C (corresponding to mode 3)
, Since the image data is biased to one side (for example, when the background of the character graphic is colored instead of a white background), the brighter 3/4 of the image data is cut (to the maximum brightness value). The data is returned to the original range by quadrupling the remaining dark 1/4, and after the floating binarization threshold is selected, it is binarized and very bright as shown in FIG. For image data that does not have both the gradation area A and the light gradation area C (corresponding to mode 4), the image data is shifted to the dark side, so that the image data is simply After setting the binarization threshold value to a threshold value that is biased toward darker, binarization is performed.

【0052】このように、従来方法に見られるような濃
淡ボリューム、コントラストボリューム、切替えスイッ
チ等を何等必要とすることなく、また背景の有無や文
字、図形の濃淡の如何にかかわらず、ターゲットとする
文字、図形のみを潰れ、掠れを生ずることなく、簡易な
回路構成にて2値化することができる効果がある。具体
的には2値化回路以外の回路を約100ゲートにて構成
することができる。
As described above, the target is used without any need for the density volume, contrast volume, changeover switch, and the like, which are found in the conventional method, and irrespective of the presence or absence of the background and the density of the characters and figures. There is an effect that binarization can be performed with a simple circuit configuration without crushing or blurring only characters and figures. Specifically, circuits other than the binarization circuit can be configured with about 100 gates.

【0053】また請求項3で示したように、カウンタ回
路34で各モードに該当する画像データの存在をカウン
トし、所定画素以上存在した場合に当該画像データの存
在を確定すると、ノイズ等に影響されにくい濃度検出を
行なうことができる。
Further, as described in claim 3, when the presence of image data corresponding to each mode is counted by the counter circuit 34 and the existence of the image data is determined when the number of pixels exceeds a predetermined value, noise and the like are affected. It is possible to perform concentration detection that is difficult to be performed.

【0054】さらに請求項4で示したように、濃度検出
部22で、主走査先頭部および末部を除く中央部の画素
のみを対象に濃度検出を行なうと、ノイズや背景の変化
に影響されにくい濃度検出を行なうことができる。
[0054] As further shown in claim 4, in a concentration detection unit 22, when the main scanning head portion and the end portion concentration detected for only the pixels in the central portion except for being affected by changes in the noise or background Difficult density detection can be performed.

【0055】さらにまた請求項5、6に示すように濃度
検出部22で、上述のA,B,Cの三つ以上の階調域で
データの存在を検出すべく構成すると、デコード回路を
比較的簡易に構成することができる。
[0055] Furthermore a concentration detection unit 22 as shown in claim 5, 6, the above-described A, B, when configured to detect the presence of data in three or more gradation region and C, comparing a decode circuit It can be easily configured.

【0056】また請求項7、8に示すように、上述のデ
ータ補正部13において2値化処理を行なうデータの少
なくとも2倍(実施例では5ビットデータにて2値化処
理を行なう時、データ補正部13が7ビットであるから
4倍)の階調性を有するデータを備えると、階調性を損
なうことなくデータ補正を実行することができる。
[0056] Also as shown in claim 7, 8, when performing binarization processing by 5-bit data at least twice (example of data to be binarized in the data correcting section 13 described above, the data If the correction unit 13 includes data having a gradation characteristic of 7 bits (4 times), data correction can be performed without deteriorating the gradation characteristic.

【0057】さらに、請求項2に示すように、濃度検出
部22、判定部47、データ補正部13、2値化回路1
8での処理を画像の読取りと同時に行なうと、ソフト処
理の処理時間短縮を図ることができる。なお、本実施例
の2値化処理前に画像データの孤立点除去を予め実行し
てもよい。
Further, as described in claim 2 , the density detector 22, the determiner 47, the data corrector 13, the binarization circuit 1
If the processing in step 8 is performed simultaneously with the reading of the image, the processing time of the software processing can be reduced. Note that before the binarization processing of the present embodiment , the removal of the isolated points of the image data may be performed in advance.

【0058】さらに、請求項に示すようにカウンタ回
路34(図6参照)の明濃度のカウンタと暗濃度のカウ
ンタとのクリア信号CLR1,2を別々にすると、すな
わち、暗濃度(文字)の検知を1スキャンにすれば、そ
の間継続的になされるので、文字細部の掠れの発生を抑
えることができ、また明濃度(背景)の検知を1ライン
毎にすれば、該明濃度の検知範囲が充分広いので、1ラ
イン毎のクリアで、背景の汚れ等の影響を受け難くで
き、より正確な濃度検知ができる。
[0058] Further, when the separate clear signal CLR1,2 between the bright concentration of the counter and dark levels of the counter according to claim 9 are shown as counter circuit 34 (see FIG. 6), i.e., dark concentration (characters) If the detection is set to one scan, the detection is continuously performed during that period, so that the occurrence of blurring of the character details can be suppressed. If the detection of the light density (background) is performed for each line, the detection range of the light density Is sufficiently wide so that it is clear for each line, and is less susceptible to the effects of background stains and the like, and more accurate density detection is possible.

【0059】図11は、2値化処理方法に用いる2値化
処理装置の他の実施例を示し、図1の実施例においては
浮動2値化しきい値設定回路16を用いたが、図11に
示すこの実施例においては該回路16に代えて単純2値
化しきい値設定回路68を用い、この単純2値化しきい
値設定回路68で、ダイナミックレンジの略中間のしき
い値、例えばしきい値=10Hを設定すべく構成してい
る。このように構成した2値化処理装置を用いる2値化
処理方法においても、先の実施例とほぼ同様の作用、効
果を奏するので、図11において図1と同一の部分には
同一番号および同一符号を付して、その詳しい説明を省
略する。
FIG. 11 shows another embodiment of the binarization processing device used in the binarization processing method. In the embodiment of FIG. 1, the floating binarization threshold value setting circuit 16 is used. In this embodiment, a simple binarization threshold setting circuit 68 is used in place of the circuit 16, and the simple binarization threshold setting circuit 68 uses a threshold substantially in the middle of the dynamic range, for example, a threshold. It is configured to set the value = 10H. Also in the binarization processing method using the binarization processing device configured as described above, the same operation and effect as in the previous embodiment can be obtained, and therefore, in FIG. 11, the same parts as those in FIG. The reference numerals are attached and the detailed description is omitted.

【0060】なお、図1、図11に示す2値化処理装置
は何れもデジタル回路により構成したが、これはアナロ
グ回路により構成することも可能である。すなわち、図
1、図11の7ビットA/Dコンバータを用いる代わり
に、アナログデータをコンパレータ(比較器)により比
較し、電圧によって、エリアA、エリアB、エリアCを
認識し、認識したエリア信号をホールドした後に、デコ
ードしてモード分けを実行する一方、アナログ画像信号
は、識別されたモードに従ってデータ補正する。
Although the binarization processing devices shown in FIGS. 1 and 11 are all constituted by digital circuits, they may be constituted by analog circuits. That is, instead of using the 7-bit A / D converter shown in FIGS. 1 and 11, analog data is compared by a comparator, and areas A, B, and C are recognized by voltage, and the recognized area signal is compared. Is held and then decoded and mode division is performed, while the analog image signal is data corrected according to the identified mode.

【0061】この場合、モード1、モード4の時は補正
を行なわないノーマル態様とし、モード2の時は、画像
データの暗い方1/2を引き算し、残りの明るい方1/
2を2倍のレンジに増幅するデータ補正を実行し、モー
ド3の時は、画像データを4倍のレンジに増幅するデー
タ補正を実行し、その後、識別されたデータをアナログ
マルチプレクサにて選択して、2値化処理を行なえばよ
い。
In this case, in the modes 1 and 4, the normal mode in which no correction is performed is used. In the mode 2, the dark half of the image data is subtracted, and the remaining bright half is subtracted.
Data correction is performed to amplify 2 to a double range, and in mode 3, data correction is performed to amplify image data to a quadruple range. Then, the identified data is selected by an analog multiplexer. Then, a binarization process may be performed.

【0062】さらにデータ補正を行なう他の実施例とし
ては、上記各実施例のようにデータそのものを補正する
方法に代えて、A/Dコンバータの基準電圧を変更する
ことでデータ補正を実行してもよい。
In another embodiment for further performing data correction, data correction is executed by changing the reference voltage of the A / D converter instead of the method of correcting the data itself as in the above embodiments. Is also good.

【0063】すなわち、判定されたモードに対応して、
A/Dコンバータの基準電圧を、モード1、モード4の
時は変更しないで、そのまま用い、モード2の時はL基
準電圧(refL)をrefL+(refH−ref
L)/2に、モード3の時はH基準電圧(refH)を
refH+(refH−refL)/4に変更し、また
上述の基準電圧の選択にはアナログマルチプレクサを用
いるとよい。
That is, corresponding to the determined mode,
In mode 1 and mode 4, the reference voltage of the A / D converter is not changed and is used without change. In mode 2, the L reference voltage (refL) is changed to refL + (refH-ref).
L) / 2, in mode 3, the H reference voltage (refH) is changed to refH + (refH-refL) / 4, and an analog multiplexer may be used to select the above-mentioned reference voltage.

【0064】この発明の構成と、上述の実施例との対応
において、この発明の濃度検出部は、実施例の濃度検出
部22(図5参照)に対応し、以下同様に、判定部は判
定部47(図9参照)に対応し、2値化処理部は、2値
化回路18に対応し、画像データの存在をカウントする
手段は、カウンタ回路34に対応し、データ補正部は、
データ補正部13(図1、図10参照)に対応するも、
この発明は、上述の実施例の構成のみに限定されるもの
ではない。
In correspondence between the configuration of the present invention and the above-described embodiment, the density detecting section of the present invention corresponds to the density detecting section 22 (see FIG. 5) of the embodiment, and similarly, the determining section determines The binarization processing section corresponds to the binarization circuit 18, the means for counting the presence of image data corresponds to the counter circuit 34, and the data correction section corresponds to
Although it corresponds to the data correction unit 13 (see FIGS. 1 and 10),
The present invention is not limited only to the configuration of the above embodiment.

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

【図1】 本発明の2値化処理方法に用いる2値化処理
装置のブロック図。
FIG. 1 is a block diagram of a binarization processing device used in a binarization processing method of the present invention.

【図2】 画像データを全8階調域に分類する説明図。FIG. 2 is an explanatory diagram for classifying image data into all eight gradation ranges.

【図3】 上位1/2補正の説明図。FIG. 3 is an explanatory diagram of upper half correction.

【図4】 下位1/4補正の説明図。FIG. 4 is an explanatory diagram of lower 1/4 correction.

【図5】 濃度検出部を示す回路図。FIG. 5 is a circuit diagram illustrating a concentration detection unit.

【図6】 カウンタ回路を示す回路図。FIG. 6 is a circuit diagram illustrating a counter circuit.

【図7】 対象画素のサンプリング範囲を示す説明図。FIG. 7 is an explanatory diagram showing a sampling range of a target pixel.

【図8】 対象画素の読取幅に対する検索範囲を示す説
明図。
FIG. 8 is an explanatory diagram showing a search range with respect to a reading width of a target pixel.

【図9】 判定部を示す回路図。FIG. 9 is a circuit diagram illustrating a determination unit.

【図10】 データ補正部および5ビット変換回路なら
びにデータ選択回路を示す回路図。
FIG. 10 is a circuit diagram showing a data correction unit, a 5-bit conversion circuit, and a data selection circuit.

【図11】 2値化処理装置の他の実施例を示すブロッ
ク図。
FIG. 11 is a block diagram showing another embodiment of the binarization processing device.

【図12】 従来の単純2値化処理方法による潰れ発生
を示す説明図。
FIG. 12 is an explanatory diagram showing collapse occurrence by a conventional simple binarization processing method.

【図13】 従来の単純2値化処理方法による若干の潰
れ発生を示す説明図。
FIG. 13 is an explanatory diagram showing occurrence of slight collapse by a conventional simple binarization processing method.

【図14】 従来の単純2値化処理方法による掠れ発生
を示す説明図。
FIG. 14 is an explanatory diagram showing occurrence of blurring by a conventional simple binarization processing method.

【図15】 従来の浮動2値化処理方法による適正な2
値化を示す説明図。
FIG. 15 shows an example of a proper floating-point binarization processing method.
Explanatory drawing which shows value conversion.

【図16】 従来の浮動2値化処理方法により背景が2
値化される欠点を示す説明図。
FIG. 16 shows a case where the background is 2 by a conventional floating binarization processing method.
Explanatory drawing which shows the defect which is valued.

【図17】 従来の浮動2値化処理方法による掠れ発生
を示す説明図。
FIG. 17 is an explanatory diagram showing occurrence of blurring by a conventional floating binary processing method.

【図18】 従来の孤立点除去方法を示す説明図。FIG. 18 is an explanatory diagram showing a conventional isolated point removing method.

【図19】 従来の自動濃淡補正方法を示す説明図。FIG. 19 is an explanatory diagram showing a conventional automatic shading correction method.

【図20】 カウンタ回路のCLR1,2信号のタイム
チャート。
FIG. 20 is a time chart of the CLR1 and CLR2 signals of the counter circuit.

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

13…データ補正部 18…2値化回路 22…濃度検出部 34…カウンタ回路 47…判定部 13: Data correction unit 18: Binarization circuit 22: Density detection unit 34: Counter circuit 47: Judgment unit

───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 平1−218166(JP,A) 特開 平1−237142(JP,A) 特開 平4−159863(JP,A) 特開 平1−126876(JP,A) 特開 昭62−186667(JP,A) 特開 昭62−107572(JP,A) (58)調査した分野(Int.Cl.7,DB名) H04N 1/40 - 1/409 H04N 1/46 H04N 1/60 ──────────────────────────────────────────────────続 き Continuation of the front page (56) References JP-A-1-218166 (JP, A) JP-A-1-237142 (JP, A) JP-A-4-159863 (JP, A) JP-A-1 126876 (JP, A) JP-A-62-186667 (JP, A) JP-A-62-107572 (JP, A) (58) Fields investigated (Int. Cl. 7 , DB name) H04N 1 / 40-1 / 409 H04N 1/46 H04N 1/60

Claims (9)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】二値化画像データへの変換を行なう元の画
像データに対して 該画像データにおける各階調域での
画像データの存在を検出する濃度検出部と、画像データの各階調域から対象画像の濃度分布の特徴に
より定義して画像特性を分けた複数のモードを設定する
と共に 前記濃度検出部で検出された画像データの 階調
域から対象画像の濃度分布を判定し、該判定に基づいて
画像データを前記各モードに場合分けを行なう判定部
と、上記判定部で判定されたモードに従って、画像データの
所定の階調域のデータをカットした後に、残りの画像デ
ータを元のデータ範囲に拡大するデータ補正部と、 上記判定部で判定されたモードに基づいて選択した上記
データ補正部の補正データ またはノーマルデータを2
値化処理する2値化処理部とを備え、 アナログ画像データを2値化画像データに変換する2値
化処理方法。
(1)Original image to be converted to binary image data
For image data , In the image dataIn each gradation range
A density detector for detecting the presence of image data;From each gradation range of image data to the feature of density distribution of target image
Set multiple modes with more defined and different image characteristics
With , Of the image data detected by the density detection unit. tone
Determine the density distribution of the target image from the area,Based on the judgment
Image dataJudgment unit that classifies each mode
When,According to the mode determined by the determination unit, the image data
After cutting the data in the specified gradation range, the remaining image data
A data correction unit for expanding data to the original data range,  The mode determined by the above determination unitBased on the above selected
Correction data of data correction section , Or 2 for normal data
Perform value processingA binary processing unit for converting analog image data into binary image data
Treatment method.
【請求項2】上記濃度検出部、判定部、データ補正部、
2値化処理部での処理を画像の読取りと同時に行なう請
求項1記載の2値化処理方法。
2. The apparatus according to claim 1, wherein the density detecting section, the determining section, the data correcting section,
2. The binarization processing method according to claim 1, wherein the processing in the binarization processing unit is performed simultaneously with reading of the image.
【請求項3】上記濃度検出部で画像データの存在をカウ
ントし、所定画素以上存在した場合に当該画像データの
存在を確定する請求項1記載の2値化処理方法。
3. The binarization processing method according to claim 1, wherein said density detection section counts the presence of image data, and determines the presence of said image data when the number of pixels exceeds a predetermined value.
【請求項4】上記濃度検出部で、主走査先頭部および末
部を除く中央部の画素のみを対象に濃度検出を行なう請
求項1記載の2値化処理方法。
4. The binarization processing method according to claim 1, wherein the density detection section detects the density only for a pixel at a central portion excluding a leading portion and a trailing portion of the main scanning.
【請求項5】上記濃度検出部で、3個以上の階調域にて
画像データの存在を検出する請求項1記載の2値化処理
方法。
5. The binarization processing method according to claim 1, wherein said density detecting section detects the presence of image data in three or more gradation ranges.
【請求項6】上記濃度検出部で、明るい階調域と、暗い
階調域と、前記明るい階調域を含み明るい階調域と暗い
階調域との中間階調域よりも明るい階調域を示すやや明
るい階調域との3つの階調域にて画像データの存在を検
出する請求項1記載の2値化処理方法。
6. The density detecting section includes a bright gradation area, a dark gradation area, and a bright gradation area including the bright gradation area and a dark gradation area.
2. The binarization processing method according to claim 1, wherein the presence of the image data is detected in three gradation regions indicating a gradation region which is brighter than the intermediate gradation region and a slightly brighter gradation region.
【請求項7】上記データ補正部は2値化処理を行なうデ
ータ2倍の階調性で補正する機能を備え、該補正機能で
画像データから補正データを算出する請求項1記載の2
値化処理方法。
7. The data correction unit according to claim 1, wherein the data correction unit performs a binarization process.
Data has a function to correct with twice the gradation.
2. The method according to claim 1, wherein the correction data is calculated from the image data.
Value processing method.
【請求項8】上記データ補正部は2値化処理を行なうデ
ータ4倍の階調性で補正する機能を備え、該補正機能で
画像データから補正データを算出する請求項記載の2
値化処理方法。
8. The data correction unit according to claim 1, wherein the data correction unit performs a binarization process.
Data with a 4 times higher gradation.
2 according to claim 1, wherein calculating the correction data from the image data
Value processing method.
【請求項9】上記濃度検出部で明濃度と暗濃度との画像
データの存在を別々のカウンタでカウントし、明濃度の
カウンタは主走査の1ライン毎に、また、暗濃度のカウ
ンタは副走査を含めて1スキャン毎にそれぞれクリアす
請求項記載の2値化処理方法。
9. An image of a light density and a dark density in the density detecting section.
The presence of data is counted by separate counters,
The counter is provided for each line of the main scan and for the dark density counter.
Printer clears each scan including sub-scan.
The binarization processing method according to claim 1 .
JP27751693A 1992-10-15 1993-10-08 Binarization processing method Expired - Fee Related JP3341174B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP27751693A JP3341174B2 (en) 1992-10-15 1993-10-08 Binarization processing method

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP4-304744 1992-10-15
JP30474492 1992-10-15
JP27751693A JP3341174B2 (en) 1992-10-15 1993-10-08 Binarization processing method

Publications (2)

Publication Number Publication Date
JPH06197224A JPH06197224A (en) 1994-07-15
JP3341174B2 true JP3341174B2 (en) 2002-11-05

Family

ID=26552430

Family Applications (1)

Application Number Title Priority Date Filing Date
JP27751693A Expired - Fee Related JP3341174B2 (en) 1992-10-15 1993-10-08 Binarization processing method

Country Status (1)

Country Link
JP (1) JP3341174B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5998750B2 (en) * 2012-08-27 2016-09-28 株式会社リコー Electrostatic latent image measuring method and electrostatic latent image measuring apparatus

Also Published As

Publication number Publication date
JPH06197224A (en) 1994-07-15

Similar Documents

Publication Publication Date Title
JPS6198069A (en) Image processor
US6178260B1 (en) Image segmentation apparatus and method
US5278919A (en) Image area determining apparatus
JPH07262374A (en) Image processor
US6272240B1 (en) Image segmentation apparatus and method
JPH07193705A (en) Area discriminating circuit for dot picture
JP3014252B2 (en) Image processing method and image processing apparatus
JP3341174B2 (en) Binarization processing method
US6529629B2 (en) Image segmentation apparatus and method
JPH08237475A (en) Image area separation method, image area separator and image processing method and image processing unit
JPH03185574A (en) Multivalued image filtering processor
JPS6359272A (en) Picture processor
JP2972500B2 (en) Resolution adaptive control device
JP3256267B2 (en) Image processing device
JP3239447B2 (en) Isolated point judgment circuit
JP3215146B2 (en) Image processing device
JP2000011088A (en) Method for exracting feature information of read image, image processor and mail address reader
JP3466655B2 (en) Image processing device
US6681047B1 (en) Method and system for determining character edges based upon edges pair and image characteristics of pixels between the edge pair
JPH0951438A (en) Image processing unit
JPH1127514A (en) Information encoding method and information decoding method
KR100484170B1 (en) Method and apparatus for improvement of digital image quality
JPH0563965A (en) Original picture reader
JP2853141B2 (en) Image area identification device
JPH0614189A (en) Image processing device

Legal Events

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