JPH0743754B2 - Character image binarization device - Google Patents

Character image binarization device

Info

Publication number
JPH0743754B2
JPH0743754B2 JP60292252A JP29225285A JPH0743754B2 JP H0743754 B2 JPH0743754 B2 JP H0743754B2 JP 60292252 A JP60292252 A JP 60292252A JP 29225285 A JP29225285 A JP 29225285A JP H0743754 B2 JPH0743754 B2 JP H0743754B2
Authority
JP
Japan
Prior art keywords
pixel
character image
character
image
value
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
JP60292252A
Other languages
Japanese (ja)
Other versions
JPS62152093A (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.)
Fuji Electric Co Ltd
Original Assignee
Fuji Electric Co 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 Fuji Electric Co Ltd filed Critical Fuji Electric Co Ltd
Priority to JP60292252A priority Critical patent/JPH0743754B2/en
Publication of JPS62152093A publication Critical patent/JPS62152093A/en
Publication of JPH0743754B2 publication Critical patent/JPH0743754B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Character Input (AREA)

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、光学的文字読取装置において、読取の対象と
する文字画像領域を走査するセンサ(画像入力センサ)
から得られる画像信号について、文字の記録されている
記録媒体の他の部分を表わす信号は“0"、文字パターン
の部分を表わす信号は“1"、のように2値化するのに用
いる文字画像2値化装置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Industrial application] The present invention relates to a sensor (image input sensor) for scanning a character image region to be read in an optical character reading device.
For the image signal obtained from, the character that is used to binarize, such as "0" for the signal representing the other part of the recording medium on which the character is recorded and "1" for the signal representing the character pattern part. The present invention relates to an image binarization device.

〔従来の技術〕[Conventional technology]

第4図は文字画像2値化装置の従来例を示す回路図であ
る。同図において、1は画像入力センサ、2は比較器、
3は抵抗、4はコンデンサ、5は可変定電圧源、6は抵
抗、である。
FIG. 4 is a circuit diagram showing a conventional example of a character image binarization device. In the figure, 1 is an image input sensor, 2 is a comparator,
Reference numeral 3 is a resistor, 4 is a capacitor, 5 is a variable constant voltage source, and 6 is a resistor.

第4A図は、第4図における各部信号の波形図であり、第
4B図は読取の対象となる画像の一例を示した説明図、で
ある。第4B図において、7は記録カード、8はバーコー
ド、Sは走査方向を示す。
FIG. 4A is a waveform diagram of signals at various parts in FIG.
FIG. 4B is an explanatory diagram showing an example of an image to be read. In FIG. 4B, 7 is a recording card, 8 is a bar code, and S is the scanning direction.

第4図、第4A図、第4B図を参照して入力画像信号を2値
化するための回路動作を説明する。
The circuit operation for binarizing the input image signal will be described with reference to FIGS. 4, 4A, and 4B.

すなわち、第4図において、画像入力センサ1が、第4B
図に示す如き記録カード7上のバーコード8をS方向に
沿って走査したときに得られる生の画像入力信号(イ)
を比較器101の(+)入力側に入れると共に、他方、該
生信号(イ)を抵抗3とコンデンサ4により構成される
ロウパスフィルタに通すことにより、高調波成分を除去
して、比較の基準に用いられる基準信号(ロ)を作成
し、これを比較器101の(−)入力側に入れる。(−)
入力側には、また可変定電圧源5から抵抗6を介して予
め一定電圧を加えてある。
That is, in FIG. 4, the image input sensor 1 is
Raw image input signal (a) obtained when the bar code 8 on the recording card 7 as shown in the figure is scanned along the S direction
Is input to the (+) input side of the comparator 101 and, on the other hand, the raw signal (a) is passed through a low-pass filter composed of a resistor 3 and a capacitor 4 to remove harmonic components and A reference signal (b) used as a reference is created and is input to the (-) input side of the comparator 101. (-)
A constant voltage is previously applied to the input side from the variable constant voltage source 5 via the resistor 6.

このようにすると、バーコード8を走査して得られる線
画像信号(イ)は比較器2の(−)入力側においては、
上述のように高調波成分を除去された滑らかな信号とな
るので、信号(イ)と(ロ)を比較器2においてレベル
比較することにより、2値化信号(ハ)がバーコード8
の読取出力として得られる。
In this way, the line image signal (a) obtained by scanning the bar code 8 at the (−) input side of the comparator 2 is
As described above, a smooth signal from which harmonic components have been removed is obtained. Therefore, by comparing the levels of the signals (a) and (b) in the comparator 2, the binarized signal (c) is converted into the barcode 8
Is obtained as the read output of.

ところで以上、説明したような従来の2値化装置では、
バーコードのような複数の平行な線分からなる画像を、
それと直角をなす方向から画像入力センサにより走査す
るような場合には有効であるが、画像入力センサの走査
方向がバーコードをなす線分と平行であるような場合に
は、その線分の長さにより2値化できる場合とできない
場合がでてくる。
By the way, in the conventional binarization apparatus as described above,
An image consisting of multiple parallel line segments, such as a barcode,
This is effective when scanning with the image input sensor from the direction perpendicular to it, but when the scanning direction of the image input sensor is parallel to the line segment forming the bar code, the length of that line segment Depending on the size, it may or may not be binary.

極端な例として、画像入力センサの走査方向と一致する
方向に延びる直線の場合には、これを2値化することが
できない。読取の対象がバーコードのような線分ではな
く、文字であるような場合、文字を構成する線分として
は、センサ走査方向に対して平行な成分,垂直な成分,
斜め成分,点成分などが混在しており、第4図に示した
ような従来の2値化装置でこれを2値化しようとする
と、その動作が不安定となる。
As an extreme example, in the case of a straight line extending in a direction coinciding with the scanning direction of the image input sensor, this cannot be binarized. When the object to be read is not a line segment such as a bar code but a character, the line segment forming the character includes a component parallel to the sensor scanning direction, a component perpendicular to the sensor scanning direction,
Oblique components, point components, and the like are mixed, and if the conventional binarizing device as shown in FIG. 4 is used to binarize the same, its operation becomes unstable.

〔発明が解決しようとする問題点〕[Problems to be solved by the invention]

そこで本発明においては、読取対象がバーコードのよう
な一方向に平行に揃った線分からなる画像ではなく、一
般の文字のように、それを構成する線分がセンサによる
走査方向に対して様々な角度をなす線分から成っている
ような画像パターンを対象として、センサから得られる
画像信号につき、パターン部分と他の部分で安定な2値
化動作を、照明、地、センサ感度などの位置むらなどに
もかかわりなく、可能にすること、を解決すべき問題点
としている。従って本発明は、上述のことを可能にする
文字画像2値化装置を提供することを目的とする。
Therefore, in the present invention, the object to be read is not an image composed of line segments aligned in parallel to one direction like a bar code, but the line segments constituting it are different from the scanning direction of the sensor like ordinary characters. Targeting an image pattern that consists of line segments that form various angles, a stable binarization operation is performed on the image signal obtained from the sensor in the pattern portion and other portions, and unevenness in position such as illumination, ground, and sensor sensitivity is detected. Regardless of the above, making possible is the problem to be solved. Therefore, it is an object of the present invention to provide a character image binarization apparatus that enables the above.

〔問題点を解決するための手段および作用〕[Means and Actions for Solving Problems]

上記目的を達するために、本発明においては、2次元局
部メモリを利用する。この2次元局部メモリというの
は、例えばテレビカメラの如き、2次元撮像装置により
撮像して得られた2次元的な画像信号を画素化し量子化
して2次元的にメモリに記憶しておき、該メモリの任意
所望の局部領域にある画素データを取り出し可能にした
ものである(なお、2次元局部メモリとしては、そのと
り得る局部領域を可変自在とした便利なものを本発明が
特願昭60−223697号において提案している)。
To achieve the above object, the present invention utilizes a two-dimensional local memory. The two-dimensional local memory is, for example, a two-dimensional image signal obtained by picking up an image with a two-dimensional image pickup device such as a television camera, pixelized and quantized, and two-dimensionally stored in the memory. The pixel data in an arbitrary desired local area of the memory can be taken out (note that as a two-dimensional local memory, the present invention is a convenient one in which the possible local area can be freely changed. −223697).

そこで本発明では、2次元局部メモリにおける局部領域
として、対象とする文字パターンを構成する線の幅より
大きい程度の局部領域を考え、該領域における中心画素
とその複数周辺画素を代表画素として読み出し得るよう
にし、これらの代表画素のそれぞれの濃淡値を調べ、そ
の中から最大値、最小値を得、さらにその最大値と最小
値の中間値を算出し、中心画素の濃淡値とこの中間値と
の差(絶対値)が所定値以上あるかどうかにより、当該
中心画素の“0"または“1"を判定し、その2値化を行お
うとするものである。
Therefore, in the present invention, as the local area in the two-dimensional local memory, a local area having a width larger than the width of the line forming the target character pattern is considered, and the central pixel and a plurality of peripheral pixels in the area can be read as the representative pixels. In this way, the gray value of each of these representative pixels is examined, the maximum value and the minimum value are obtained, and the intermediate value between the maximum value and the minimum value is calculated, and the gray value of the central pixel and this intermediate value are calculated. According to whether or not the difference (absolute value) is greater than or equal to a predetermined value, "0" or "1" of the central pixel is determined, and the binarization is performed.

すなわち、本発明において想定する局部領域において
は、その中心画素が文字パターンを構成する線分上の画
素であった場合、その周辺画素には必ず背景つまり地に
相当する部分の画素が含まれると考えている。
That is, in the local area assumed in the present invention, when the central pixel is a pixel on a line segment forming a character pattern, the peripheral pixels always include the pixel of the portion corresponding to the background, that is, the ground. thinking.

〔実施例〕〔Example〕

次に図を参照して本発明の実施例を説明する。 Next, an embodiment of the present invention will be described with reference to the drawings.

第5図は、本発明による2値化装置が2値化の対象と考
えている文字画像の一例を示すと共に、該画像を走査し
て得られる画像信号の波形を示す説明図である。
FIG. 5 is an explanatory diagram showing an example of a character image that the binarizing apparatus according to the present invention considers to be binarized and a waveform of an image signal obtained by scanning the image.

すなわち、本発明による2値化装置が2値化の対象とす
る画像信号は、第5図に示した如き、一般的な文字(ア
ルフアベットやひらがな等)を走査して得られる画像信
号である。
That is, the image signal to be binarized by the binarizing device according to the present invention is an image signal obtained by scanning general characters (alphabet, hiragana, etc.) as shown in FIG. .

例えば、主走査方向に沿う線x1上を光学的に走査して得
られる画像信号の波形はSxの如くであり、また副走査方
向に沿う線y1上を光学的に走査して得られる画像信号の
波形はSyの如くであるが、いずれも、第4A図に示した如
き、コードバーを走査して得られる画像信号とは異な
り、文字を構成する線分上の直流レベルが文字位置によ
り大きく変動しており、従来の2値化装置によっては、
先にも説明したように2値化困難なものであることが認
められるであろう。
For example, the waveform of the image signal obtained by optically scanning the line x 1 along the main scanning direction is as Sx, and is obtained by optically scanning the line y 1 along the sub scanning direction. The waveform of the image signal is like Sy, but unlike the image signal obtained by scanning the code bar as shown in Fig. 4A, the DC level on the line segment that constitutes the character is the character position. It varies greatly due to, and depending on the conventional binarization device,
It will be appreciated that it is difficult to binarize as described above.

第1図は本発明による2値化装置を取り入れた光学的文
字読取装置(OCR)全体構成を示すブロック図である。
FIG. 1 is a block diagram showing the overall construction of an optical character reader (OCR) incorporating a binarizing device according to the present invention.

同図において、11は紙などの記録媒体に書かれた文字画
像を光学的に走査して画像信号を出力するセンサ(画像
入力センサ)であり、具体的にはテレビカメラやファッ
クスの画像読取部などに相当するものと考えてよい。12
はセンサ11からの画像信号を量子化して複数ビット(例
えば6ビット、64階調)のデイジタル信号として出力す
るA/D変換器、13は前述した2次元局部メモリ、14は2
値化部、15は文字認識部、である。
In the figure, reference numeral 11 denotes a sensor (image input sensor) that optically scans a character image written on a recording medium such as paper and outputs an image signal, specifically, an image reading unit of a television camera or a fax machine. It may be considered to correspond to. 12
Is an A / D converter that quantizes the image signal from the sensor 11 and outputs it as a digital signal of a plurality of bits (for example, 6 bits, 64 gradations), 13 is the above-mentioned two-dimensional local memory, and 14 is 2
The digitization unit, 15 is a character recognition unit.

2次元局部メモリ13は、先にも述べたように、特願昭60
−223697号の明細書において詳しく説明されているが、
ここでは、本発明の理解に必要な程度において、以下、
第2図を参照して説明する。
The two-dimensional local memory 13 is, as described above, the Japanese Patent Application No. 60
-It is described in detail in the specification of No. 223697,
Here, to the extent necessary for understanding the present invention,
This will be described with reference to FIG.

第2図は2次元局部メモリ13においてとり得る局部領域
と該領域を代表する画素配置の一例を示す説明図であ
る。
FIG. 2 is an explanatory diagram showing an example of a local area that can be taken in the two-dimensional local memory 13 and a pixel arrangement representing the area.

すなわち、(Mドット)×(Nドット)の部分的文字画
像領域を局部領域として指定し、その中の中心画素D
0(黒丸印で表わす)とその周辺の任意に選択可能な周
辺画素D1(白丸印で表わす)を前記局部領域を代表する
代表画素と考えて、それら各画素の量子化された値を同
時に読み出して参照可能としたのが2次元局部メモリで
ある。従って走査画面において、走査方向に沿って中心
画素を1ドットずつずらしてゆけば、該中心画素を中心
とする局部領域も同様に移動してゆくので、画面全体に
ついて、どの画素も、それを中心画素としたときの周辺
画素が考えられ、そのときの各画素の量子化された値を
知り得ることになる。
That is, a partial character image area of (M dots) × (N dots) is designated as a local area, and a central pixel D in the area is designated.
Consider 0 (represented by a black circle) and surrounding freely selectable peripheral pixels D 1 (represented by a white circle) as representative pixels that represent the local area, and simultaneously quantize the respective pixels. The two-dimensional local memory can be read and referenced. Therefore, in the scanning screen, if the central pixel is shifted by one dot along the scanning direction, the local area centered on the central pixel also moves, so that every pixel is centered on the entire screen. The surrounding pixels when considered as a pixel are considered, and the quantized value of each pixel at that time can be known.

第3図は、第1図における2値化部14(本発明の一実施
例)の詳細を示すブロック図である。同図において、14
1は最大値算出回路、142は最小値算出回路、143は平均
値算出回路、144は絶対差算出回路、145は比較回路、で
ある。
FIG. 3 is a block diagram showing details of the binarizing unit 14 (one embodiment of the present invention) in FIG. In the figure, 14
1 is a maximum value calculation circuit, 142 is a minimum value calculation circuit, 143 is an average value calculation circuit, 144 is an absolute difference calculation circuit, and 145 is a comparison circuit.

第1図に戻って光学的文字読取装置の全体的回路動作を
簡単に説明する。画像入力センサ11が文字画像を走査し
て得られる画像信号は、A/D変換器12において各画素毎
に量子化されて2次元局部メモリ13に入力され記憶され
る。次に、2次元局部メモリ13から、局部領域を代表す
る代表画素としての中心画素とその複数周辺画素につい
て量子化された値(記録媒体における画素の濃淡値)を
読み出し、2値化部14において、該中心画素の2値化を
行い、結果を文字認識部15へ送る。文字認識部15は、以
上のようにして得られる2値化されたドット(画素)の
パターンから、センサ11により走査された対象画像の文
字認識を行う。
Returning to FIG. 1, the overall circuit operation of the optical character reader will be briefly described. An image signal obtained by scanning the character image by the image input sensor 11 is quantized by the A / D converter 12 for each pixel and input to and stored in the two-dimensional local memory 13. Next, the quantized values (shading values of pixels on the recording medium) of the central pixel as a representative pixel representing the local area and its peripheral pixels are read from the two-dimensional local memory 13, and the binarizing unit 14 reads the quantized values. , The central pixel is binarized, and the result is sent to the character recognition unit 15. The character recognition unit 15 performs character recognition on the target image scanned by the sensor 11 from the binarized dot (pixel) pattern obtained as described above.

次に、第3図を参照して本発明の一実施例としての2値
化部14の回路動作を説明する。
Next, the circuit operation of the binarization unit 14 as an embodiment of the present invention will be described with reference to FIG.

2値化部14は、すでに説明したように第3図に示す如き
構成になっている。最大値算出回路141は、2次元局部
メモリ13の出力すなわち着目中心画素と、該画素から所
定距離だけ離れた位置にある周辺複数画素の濃淡値を同
時に参照し、それらの中の最大濃淡値を知る。最小値算
出回路142は、同様に最小濃淡値を知る。対象画像が紙
などの白地に黒で書かれた文字などであるときは、最大
値算出回路141には、着目中心画素近傍の紙の色の濃淡
値が最大値として、また最小値算出回路142には文字の
色(黒)の濃淡値が最小値として、それぞれ算出されセ
ットされる。
The binarization unit 14 has the structure shown in FIG. 3 as already described. The maximum value calculation circuit 141 simultaneously refers to the output of the two-dimensional local memory 13, that is, the center pixel of interest and the grayscale values of a plurality of peripheral pixels located at a predetermined distance from the pixel, and determines the maximum grayscale value among them. know. The minimum value calculation circuit 142 similarly knows the minimum gray value. When the target image is characters written in black on a white background such as paper, the maximum value calculation circuit 141 sets the maximum value of the gray value of the color of the paper in the vicinity of the center pixel of interest and the minimum value calculation circuit 142. Is set and calculated as the minimum gray value of the character color (black).

平均値算出回路143は、上述のようにして算出された最
大値と最小値の中間値、すなわち平均値を算出する。絶
対差算出回路144は平均値算出回路143からの平均値と着
目中心画素の濃淡値との絶対差を算出する。このように
絶対差を用いることにより、白地に黒文字か黒字に白文
字のいずれの場合でも文字部と背景部を区別できる2値
化が行える。
The average value calculation circuit 143 calculates an intermediate value between the maximum value and the minimum value calculated as described above, that is, an average value. The absolute difference calculation circuit 144 calculates the absolute difference between the average value from the average value calculation circuit 143 and the grayscale value of the center pixel of interest. By using the absolute difference in this way, it is possible to perform binarization in which the character portion and the background portion can be distinguished regardless of whether the black character is on the white background or the white character is on the black character.

次に比較回路145は、絶対差算出回路144からの出力に対
し、S/Nを考慮して背景部(地の部分)中の僅かな濃淡
値の変動を誤って、文字部と認識しないように、所定の
スレッショルド値αを差し引き、その残りの値の有無に
より2値化を行う。
Next, the comparison circuit 145 does not recognize a slight change in the gray value in the background portion (ground portion) with respect to the output from the absolute difference calculation circuit 144 in consideration of the S / N and recognize it as a character portion. Then, a predetermined threshold value α is subtracted, and binarization is performed depending on the presence or absence of the remaining value.

なお、絶対差算出回路144により絶対差を求めた場合、
局部領域に文字が含まれるような文字近傍の背景部に関
しては、この背景部を中心画素として2値化を行った場
合に文字と同じように2値化されてしまう。しかし、こ
れは単に文字が太く認識されるだけであり、局部領域が
全て背景部となる位置になると、“0"となって文字部と
判別できるようになるため、実用上は問題ない。
When the absolute difference is calculated by the absolute difference calculation circuit 144,
A background portion near a character in which a character is included in a local area is binarized in the same manner as the character when the binarization is performed with the background portion as a central pixel. However, this is merely a recognition of a thick character, and when the local area is entirely in the background portion, it becomes "0" and can be discriminated from the character portion, so there is no practical problem.

以上のようにして、地の部分に存在することのある、ゆ
るやかな濃淡値変化などにまどわされることなく、文字
部を地の部分と有効に区別可能な安定した2値化ができ
る。
As described above, the stable binarization that allows the character portion to be effectively distinguished from the ground portion can be performed without being confused by the gradual change in gray value that may exist in the ground portion.

ところで、本発明による2値化方式を式で表現すると以
下のようになる。
By the way, the expression of the binarization method according to the present invention is as follows.

着目中心画素をp0、周辺画素をp1,p2…p8とする。p0
p8は局部領域ALを代表する画素である。
The center pixel of interest is p 0 , and the peripheral pixels are p 1 , p 2, ... P 8 . p 0 ~
p 8 is a pixel representing the local area AL.

局部領域AL中の最大濃淡値をpmaxとすると pmax=max{p,p,p…p} 局部領域AL中の最小濃淡値をpminとすると pmix=min{p,p,p…p} pmaxとpminの平均濃淡値をpmとすると pm=(pmax+pmin)/2 pmと着目中心画素p0との間の濃淡差をpdとすると pd=|p0−pm| 着目中心画素p0における2値化出力をpbとし、設定入力
(スレッショルド値)をαとすると、pbは次のようにな
る。
If the maximum gray value in the local area AL is p max , then p max = max {p 0 , p 1 , p 2 ... p 8 } If the minimum gray value in the local area AL is p min , then p mix = min {p 0 , p 1 , p 2 ... p 8 } Let p m be the average gray value of p max and p min , and let the gray level difference between p m = (p max + p min ) / 2 p m and the center pixel of interest p 0 be Let p d be p d = │p 0 −p m │, where p b is the binarized output at the center pixel of interest p 0 , and α is the set input (threshold value), p b is as follows.

{0……(pd<α} pb= {1……(pd≧α} 〔発明の効果〕 この発明によれば、文字を構成する線分の幅より十分大
きな幅、広さをもつ局部領域における中心画素と、複数
周辺画素の濃淡値を参照しながら局部領域中の背景部,
文字部の濃淡レベルを知り、その平均値に対する中心画
素の濃淡レベルの変化の程度を知り、それにより2値化
を行っているので、画像中の背景部の濃淡レベルの変
動、文字部の濃淡レベルの変動などがあっても、文字部
と背景を区別できる安定な2値化が行えるという利点が
ある。
{0 ... ( Pd <α} pb = {1 ... ( pd ≧ α} [Effect of the Invention] According to the present invention, a width and a width that are sufficiently larger than the width of the line segment that constitutes a character can be obtained. The central part in the local area and the background part in the local area while referring to the gray values of a plurality of peripheral pixels,
The binarization is performed by knowing the lightness level of the character part and the degree of change of the lightness level of the central pixel with respect to the average value, and thus the fluctuation of the lightness level of the background part in the image and the lightness of the character part. There is an advantage that stable binarization can be performed so that the character part and the background can be distinguished from each other even if the level changes.

また、この発明によれば、絶対差を用いているため、白
文字と黒文字が混在している場合でも、2値化のための
スレッショルド値を変更することなく安定な2値化を行
うことができる。
Further, according to the present invention, since the absolute difference is used, it is possible to perform stable binarization without changing the threshold value for binarization even when white characters and black characters are mixed. it can.

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

第1図は本発明による2値化装置を取り入れた光学的文
字読取装置(OCR)の全体構成を示すブロック図、第2
図は2次元局部メモリにおいてとり得る局部領域と該領
域を代表する画素配置の一例を示す説明図、第3図は第
1図における2次元局部メモリ13の詳細を示すブロック
図、第4図は文字画像2値化装置の従来例を示す回路
図、第4A図はその入力信号と出力信号(2値化出力)の
波形を示す波形図、第4B図は読取の対象となる画像の一
例を示した説明図、第5図は本発明による2値化装置が
2値化の対象と考えている文字画像の一例と、該画像を
走査して得られる画像信号の波形を示す説明図、であ
る。 符号の説明 1…画像入力センサ、2…比較器、3…抵抗、4…コン
デンサ、5…可変定電圧源、6…抵抗、7…記録カー
ド、8…バーコード、11…画像入力センサ、12…A/D変
換器、13…2次元局部メモリ、14…2値化部、15…文字
認識部、141…最大値算出回路、142…最小値算出回路、
143…平均値算出回路、144…絶対差算出回路、145…比
較回路、
FIG. 1 is a block diagram showing the overall structure of an optical character reading device (OCR) incorporating a binarizing device according to the present invention.
FIG. 4 is an explanatory diagram showing an example of a local area that can be taken in the two-dimensional local memory and an example of pixel arrangement representing the area. FIG. 3 is a block diagram showing the details of the two-dimensional local memory 13 in FIG. 1, and FIG. A circuit diagram showing a conventional example of a character image binarization device, FIG. 4A is a waveform diagram showing waveforms of its input signal and output signal (binarized output), and FIG. 4B is an example of an image to be read. FIG. 5 is an explanatory diagram showing an example of a character image that the binarizing apparatus according to the present invention considers to be binarized, and an explanatory diagram showing a waveform of an image signal obtained by scanning the image. is there. Explanation of symbols 1 ... Image input sensor, 2 ... Comparator, 3 ... Resistor, 4 ... Capacitor, 5 ... Variable constant voltage source, 6 ... Resistor, 7 ... Recording card, 8 ... Bar code, 11 ... Image input sensor, 12 ... A / D converter, 13 ... Two-dimensional local memory, 14 ... Binarization section, 15 ... Character recognition section, 141 ... Maximum value calculation circuit, 142 ... Minimum value calculation circuit,
143 ... Average value calculation circuit, 144 ... Absolute difference calculation circuit, 145 ... Comparison circuit,

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】対象とする文字画像領域を画素に分解し、
主走査方向、副走査方向に走査して各画素毎に文字画像
信号を感知して出力する文字画像入力センサと、 該センサから出力された前記文字画像信号を入力され量
子化して出力するA/D(アナログ/デイジタル)変換器
と、 該変換器からの量子化信号を入力され、前記文字画像領
域上に、着目画素を中心画素として、前記文字画像を構
成する線分の幅よりも大きな幅,広さに設定された2次
元局部領域における当該中心画素とその周辺複数画素に
ついての量子化信号を、前記走査と同期して、着目画素
毎に逐次出力する2次元局部メモリと、 前記局部領域毎に中心画素と周辺画素についての量子化
信号の中から最大値、最小値を選んでその平均値を求
め、かつ該平均値と前記中心画素の量子化信号との間の
絶対差を求める演算手段と、 該絶対差と或る設定値を比較し、その大小関係により当
該中心画素の2値化判定を行う2値化手段と、 を具備してなることを特徴とする文字画像2値化装置。
1. A target character image area is decomposed into pixels,
A character image input sensor that scans in the main scanning direction and sub-scanning direction to detect and output a character image signal for each pixel, and an A / A that outputs the character image signal output from the sensor by quantizing A D (analog / digital) converter and a quantized signal from the converter are input, and a width larger than the width of a line segment forming the character image with the pixel of interest as the center pixel in the character image area. A two-dimensional local memory that sequentially outputs, for each pixel of interest, quantized signals for the central pixel and a plurality of peripheral pixels in the two-dimensional local area set to a wide area, the local area Calculation for obtaining the average value by selecting the maximum value and the minimum value from the quantized signals for the central pixel and the peripheral pixels for each, and for obtaining the absolute difference between the average value and the quantized signal of the central pixel. Means and the absolute difference And a certain set value, and a binarizing means for making a binarization judgment of the central pixel according to the magnitude relationship between the two, and a character image binarizing apparatus.
JP60292252A 1985-12-26 1985-12-26 Character image binarization device Expired - Lifetime JPH0743754B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60292252A JPH0743754B2 (en) 1985-12-26 1985-12-26 Character image binarization device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60292252A JPH0743754B2 (en) 1985-12-26 1985-12-26 Character image binarization device

Publications (2)

Publication Number Publication Date
JPS62152093A JPS62152093A (en) 1987-07-07
JPH0743754B2 true JPH0743754B2 (en) 1995-05-15

Family

ID=17779405

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60292252A Expired - Lifetime JPH0743754B2 (en) 1985-12-26 1985-12-26 Character image binarization device

Country Status (1)

Country Link
JP (1) JPH0743754B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE69822608T2 (en) 1998-05-28 2005-01-05 International Business Machines Corp. Binarization method in a character recognition system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS49118335A (en) * 1973-03-12 1974-11-12
JPS60229179A (en) * 1984-04-26 1985-11-14 Nec Corp Quantizing device of picture signal

Also Published As

Publication number Publication date
JPS62152093A (en) 1987-07-07

Similar Documents

Publication Publication Date Title
EP0187911B1 (en) Method and apparatus for thresholding image data
JPS60204177A (en) Picture signal processor
US4850029A (en) Adaptive threshold circuit for image processing
US5315405A (en) Binary circuit of scanner read image data
JPH08172532A (en) Image reader and read method
JPH0743754B2 (en) Character image binarization device
EP0504576A2 (en) Document scanner
JP2001036744A (en) Image reading method, image reader and image processor
JPS58219682A (en) Read system of character picture information
JPS6146875B2 (en)
JPS61225975A (en) Conversion to binary signal
JPS62171085A (en) Character image binarization device
WO1993017518A1 (en) Image scanner
JP3210378B2 (en) Image input device
JP2001118031A (en) Optical character reader
JPS63136180A (en) Binarization circuit
JPS6160475B2 (en)
JPS63308471A (en) Picture signal binarization device
JPS6053915B2 (en) Graphic input device
JP2936766B2 (en) Image input device
JPS60232777A (en) Quantizing device of picture signal
JP3027400B2 (en) Image binarization circuit
JPS60229179A (en) Quantizing device of picture signal
JPH0157393B2 (en)
JPS627266A (en) Picture processor