JPS62152093A - Character picture binary-coding device - Google Patents

Character picture binary-coding device

Info

Publication number
JPS62152093A
JPS62152093A JP60292252A JP29225285A JPS62152093A JP S62152093 A JPS62152093 A JP S62152093A JP 60292252 A JP60292252 A JP 60292252A JP 29225285 A JP29225285 A JP 29225285A JP S62152093 A JPS62152093 A JP S62152093A
Authority
JP
Japan
Prior art keywords
value
contrast
pixel
calculation circuit
character 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.)
Granted
Application number
JP60292252A
Other languages
Japanese (ja)
Other versions
JPH0743754B2 (en
Inventor
Masao Nito
正夫 仁藤
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)

Abstract

PURPOSE:To attain the stable binary-coding by recognizing the contrast level of a background part and a character part white referencing the contrast of a center picture element and plural peripheral picture elements so as to recognize the change in the contrast level of the center picture element with respect to the average value. CONSTITUTION:The contrast of plural peripheral picture elements at a position parted from a noticed center picture element by a prescribed distance, that is, an output of a memory 13 of a 2-dimension part is referenced, the maximum contrast and the minimum contrast of the center element are recognized and the result is set to a maximum value calculation circuit 141 and a minimum value calculation circuit 142. The mean value between the calculated maximum and minimum values is calculated by a means value calculation circuit 143 and an absolute value difference calculation circuit 144 calculates the absolute difference between the means value and the contrast of the noticed center picture element. A comparison circuit 145 subtracts a prescribed threshold value alphafrom the result and binary-coding is applied depending on the presence of the remaining value.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、光学的文字読取装置において、読取の対象と
する文字画像領域を走査するセンサ(画像入力センサ)
から得られる画像信号について、文字の記録されている
記録媒体の地の部分を表わす信号は“0”、文字パター
ンの部分を表わす信号は1″、のように2値化するのに
用いる文字画像2値化装置に関するものである。
[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to a sensor (image input sensor) that scans a character image area to be read in an optical character reading device.
Regarding the image signal obtained from the character image used for binarization, the signal representing the ground part of the recording medium on which characters are recorded is "0", the signal representing the character pattern part is 1", etc. This relates to a 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,
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 each part signal in FIG. 4,
FIG. 4B is an explanatory diagram showing an example of an image to be read. In FIG. 4B, 7 indicates a recording card, 8 indicates a bar code, and S indicates a scanning direction.

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

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

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

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

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

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

そこで本発明においては、読取対象がバーコードのよう
な一方向に平行に揃った線分からなる画像ではなく、一
般の文字のように、それを構成する線分がセンサによる
走査方向に対して様々な角度をなす線分から成っている
ような画像パターンを対象として、センサから得られる
画像信号につき、パターン部分と地の部分で安定な2値
化動作を、照明、地、センサ感度などの位置むらなどに
もかかわりなく、可能にすること、を解決すべき問題点
としている。従って本発明は、上述のことを可能にする
文字画像2値化装置を提供することを目的とする。
Therefore, in the present invention, the object to be read is not an image consisting of line segments arranged parallel to one direction like a bar code, but like a general character, the line segments that make up the image vary in the scanning direction of the sensor. For image patterns that are made up of line segments that form a certain angle, the image signal obtained from the sensor can be converted into a stable binarization operation between the pattern part and the ground part. The problem that needs to be solved is to make it possible, regardless of the situation. Therefore, an object of the present invention is to provide a character image binarization device that makes the above possible.

〔問題点を解決すための手段および作用〕上記目的を達
するために、本発明においては、2次元局部メモリを利
用する。この2次元局部メモリというのは、例えばテレ
ビカメラの如き、2次元撮像装置により盪像して得られ
た2次元的な画像信号を画素化し量子化して2次元的に
メモリに記憶しておき、該メモリの任意所望の局部領域
にある画素データを取り出し可能にしたものである(な
お、2次元局部メモリとしては、そのとり得る局部領域
を可変自在とした便利なものを本発明者が特願昭60−
223697号において提案している)。
[Means and effects for solving the problem] In order to achieve the above object, the present invention utilizes a two-dimensional local memory. This two-dimensional local memory pixelizes and quantizes a two-dimensional image signal obtained by imaging with a two-dimensional imaging device such as a television camera, and stores it two-dimensionally in the memory. It is possible to retrieve pixel data in any desired local area of the memory (the inventor has filed a patent application for a convenient two-dimensional local memory in which the possible local area can be changed freely). 1986-
223697).

そこで本発明では、2次元局部メモリにおける局部領域
として、対象とする文字パターンを構成する線の幅より
大きい程度の局部領域を考え、該領域における中心画素
とその複数周辺画素を代表面素として読み出し得るよう
にし、これらの代表面素のそれぞれの濃淡値を調べ、そ
の中から最大値、最小値を得、さらにその最大値と最小
値の中間値を算出し、中心画素の濃淡値とこの中間値と
の差(絶対値)が所定値以上あるがどうかにより、当該
中心画素の“0”または“1”を判定し、その2値化を
行おうとするものである。
Therefore, in the present invention, as a local area in the two-dimensional local memory, we consider a local area that is larger than the width of the line constituting the target character pattern, and read out the central pixel and its surrounding pixels in the area as representative surface elements. Then, check the grayscale values of each of these representative surface elements, obtain the maximum and minimum values from them, calculate the intermediate value between the maximum and minimum values, and calculate the grayscale value of the center pixel and this intermediate value. The purpose is to determine whether the center pixel is "0" or "1" depending on whether the difference (absolute value) with the value is greater than or equal to a predetermined value, and to perform binarization.

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

〔実施例〕〔Example〕

次に図を参照して本発明の詳細な説明する。 The present invention will now be described in detail with reference to the drawings.

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

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

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

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

同図において、11は紙などの記録媒体に書かれた文字
画像を光学的に走査して画像信号を出力するセンサ(画
像入力センサ)であり、具体的にはテレビカメラやファ
ックスの画像読取部などに相当するものと考えてよい。
In the figure, 11 is a sensor (image input sensor) that optically scans a character image written on a recording medium such as paper and outputs an image signal, and specifically, it is an image reading unit of a television camera or a fax machine. It can be thought of as equivalent to

12はセンサ11からの画像信号を量子化して複数ビッ
ト(例えば6ビツト、64階調)のディジタル信号とし
て出力するA/D変換器、13は前述した2次元局部メ
モリ、14は2値化部、15は文字認識部、である。
12 is an A/D converter that quantizes the image signal from the sensor 11 and outputs it as a digital signal of multiple bits (for example, 6 bits, 64 gradations); 13 is the aforementioned two-dimensional local memory; and 14 is a binarization unit. , 15 is a character recognition unit.

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

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

すなわち、(Mドツト)×(Nドツト)の部分的文字画
像領域を局部領域として指定し、その中の中心画素り、
(黒丸印で表わす)とその周辺の任意に選択可能な周辺
画素り、(白丸印で表わす)を前記局部領域を代表する
代表面素と考えて、それら各画素の量子化された値を同
時に読み出して参照可能としたのが2次元局部メモリで
ある。従って走査画面において、走査方向に沿って中心
画素を1ドツトずつずらしてゆけば、該中心画素を中心
とする局部領域も同様に移動してゆくので、画面全体に
ついて、どの画素も、それを中心画素としたときの周辺
画素が考えられ、そのときの各画素の量子化された値を
知り得ることになる。
In other words, a partial character image area of (M dots) x (N dots) is designated as a local area, and the central pixel within it is
(represented by a black circle) and surrounding pixels that can be selected arbitrarily, and (represented by a white circle) are considered to be representative surface elements representing the local area, and the quantized values of these pixels are simultaneously calculated. The two-dimensional local memory allows for reading and reference. Therefore, if you shift the center pixel one dot at a time along the scanning direction on the scanning screen, the local area centered on the center pixel will also move in the same way, so any pixel on the entire screen will be shifted one dot at a time along the scanning direction. When a pixel is used, surrounding pixels can be considered, and the quantized value of each pixel at that time can be known.

第3図は、第1図における2値化部14(本発明の一実
施例)の詳細を示すブロック図である。
FIG. 3 is a block diagram showing details of the binarization section 14 (an embodiment of the present invention) in FIG. 1.

同図において、141は最大値算出回路、142は最小
値算出回路、143は平均値算出回路、144は絶対差
算出回路、145は比較回路、である。
In the figure, 141 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 reading device will be briefly described. An image signal obtained by scanning a character image by the image input sensor 11 is quantized for each pixel by the A/D converter 12, and input to and stored in the two-dimensional local memory 13. Next, from the two-dimensional local memory 13, the quantized values (shading values of pixels on the recording medium) of the central pixel as a representative surface pixel representing the local area and its surrounding pixels are read out, and the binarization unit At step 14, the central pixel is binarized and the result is sent to the character recognition section 15. The character recognition unit 15 performs character recognition of the target image scanned by the sensor 11 from the binarized dot (pixel) pattern obtained as described above.

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

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

平均値算出回路143は、上述のようにして算出された
最大値と最小値の中間値、すなわち平均値を算出する。
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.

絶対差算出回路144は平均値算出回路143からの平
均値と着目中心画素の濃淡値との絶対差(地と文字の色
の濃淡値の逆つまり白地に黒文字か黒地に白文字かの逆
がなければ単純差の算出でもよい)を算出する。
The absolute difference calculation circuit 144 calculates the absolute difference between the average value from the average value calculation circuit 143 and the shading value of the center pixel of interest (the opposite of the shading values of the background and character colors, that is, the opposite of black characters on a white background or white characters on a black background). If not, calculate the simple difference).

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

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

ところで、本発明による2値化力式を式で表現すると以
下のようになる。
By the way, the binarization force formula according to the present invention can be expressed as follows.

着目中心画素をpo、周辺画素をp++  pz・・・
pHとする。p0〜p、は局部領域ALを代表する画素
である。
The center pixel of interest is po, the surrounding pixels are p++ pz...
Set to pH. p0 to p are pixels representing the local area AL.

局部領域AL中の最大濃淡値をpIIIIIXとすると
pH1llX=l、1.X(po、pl、pz・・・p
g)局部領域AL中の最小濃淡値をpl、アとするとp
、in = 1Ii11(po +  pr +  p
g・・・pg)pmaxとp。、7の平均濃淡値をp。
Letting the maximum density value in the local area AL be pIIIIIIX, pH1llX=l, 1. X(po, pl, pz...p
g) If the minimum gray value in the local area AL is pl, then p
, in = 1Ii11(po + pr + p
g...pg) pmax and p. , 7, p.

とするとpm = (pmmx ” pm=n ) /
 2pイと着目中心画素p0との間の濃淡差をp、とす
ると pd= I po −pg 1 着目中心画素p0における2値化出力をpbとし、設定
入力(スレッショルド値)をαとすると、p、は次のよ
うになる。
Then, pm = (pmmx ” pm=n) /
If p is the gradation difference between 2p i and the center pixel of interest p0, then pd = I po - pg 1 If the binarized output at the center pixel of interest p0 is pb, and the setting input (threshold value) is α, then p , becomes as follows.

〔発明の効果〕〔Effect of the invention〕

この発明によれば、文字を構成する線分の幅より十分大
きな幅、広さをもつ局部領域における中心画素と、複数
周辺画素の濃淡値を参照しながら局部領域中の背景部1
文字部の濃淡レベルを知り、その平均値に対する中心画
素の濃淡レベルの変化の程度を知り、それにより2値化
を行っているので、画像中の背景部の濃淡レベルの変動
、文字部の濃淡レベルの変動などがあっても、文字部と
背景を区別できる安定な2値化が行えるという利点があ
る。
According to this invention, the background part 1 in the local area is determined by referring to the gray scale values of the center pixel in the local area having a width sufficiently larger than the width of the line segment constituting the character, and the shading values of a plurality of surrounding pixels.
Since the gray level of the text area is known, the degree of change in the gray level of the center pixel relative to the average value is known, and binarization is performed based on this, it is possible to detect variations in the gray level of the background area in the image and the gray level of the text area. This method has the advantage of being able to perform stable binarization that can distinguish between text and background even when there are level fluctuations.

【図面の簡単な説明】[Brief explanation 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(a化部
、15・・・文字認識部、141・・・最大値算出回路
、142・・・最小値算出回路、143・・・平均値算
出回路、144・・・絶対差算出回路、145・・・比
較回路、 代理人 弁理士 並 木 昭 夫 代理人 弁理士 松 崎   清 第1図 第2図 B:J’J 第4B図 第5図 主追遣方向(X)
Fig. 1 is a block diagram showing the overall configuration of an optical character reading device (OCR) incorporating the binarization device according to the present invention, and Fig. 2 shows possible local areas in a two-dimensional local memory and pixels representing the areas. FIG. 3 is a block diagram showing details of the two-dimensional local memory 13 in FIG. 1, FIG. 4 is a circuit diagram showing a conventional example of a character image binarization device, and FIG. 4A is an explanatory diagram showing an example of the arrangement. A waveform diagram showing the waveforms of the input signal and output signal (binarized output), FIG. 4B is an explanatory diagram showing an example of an image to be read, and FIG. An explanatory diagram showing an example of a character image considered as a target for value conversion and the waveform of an image signal obtained by scanning the image,
It is. Explanation of symbols 1... Image input sensor, -2... Comparator, 3...
Resistor, 4... Capacitor, 5... Variable constant voltage source, 6
... Resistor, 7... Recording card, 8... Barcode, 11... Image input sensor, 12... A/D converter, 13... Two-dimensional local memory, 14... 2 (a conversion unit, 15... Character recognition unit, 141... Maximum value calculation circuit, 142... Minimum value calculation circuit, 143... Average value calculation circuit, 144... Absolute difference calculation circuit, 145...Comparison circuit, Agent Patent attorney Akio Namiki Agent Patent attorney Kiyoshi Matsuzaki Figure 1 Figure 2 B: J'J Figure 4B Figure 5 Main pursuit direction (X)

Claims (1)

【特許請求の範囲】[Claims] 1)対象とする文字画像領域を画素に分解し、主走査方
向、副走査方向に走査して各画素毎に文字画像信号を感
知して出力する文字画像入力センサと、該センサから出
力された前記文字画像信号を入力され量子化して出力す
るA/D(アナログ/デイジタル)変換器と、該変換器
からの量子化信号を入力され、前記文字画像領域上に、
着目画素を中心画素として、予め定められた大きさに選
定された2次元局部領域における当該中心画素とその周
辺複数画素についての量子化信号を、前記走査と同期し
て、着目画素毎に逐次出力する2次元局部メモリと、前
記局部領域毎に中心画素と周辺画素についての量子化信
号の中から最大値、最小値を選んでその平均値を求め、
かつ該平均値と前記中心画素の量子化信号との間の絶対
差を求める演算手段と、該絶対差と或る設定値を比較し
、その大小関係により当該中心画素の2値化判定を行う
2値化手段と、を具備して成ることを特徴とする文字画
像2値化装置。
1) A character image input sensor that decomposes a target character image area into pixels, scans in the main scanning direction and sub-scanning direction, and detects and outputs a character image signal for each pixel; an A/D (analog/digital) converter that inputs the character image signal, quantizes it, and outputs it; and an A/D (analog/digital) converter that receives the quantized signal from the converter and places it on the character image area.
With the pixel of interest as the center pixel, quantized signals for the center pixel and multiple surrounding pixels in a two-dimensional local area selected to have a predetermined size are sequentially output for each pixel of interest in synchronization with the scanning. a two-dimensional local memory to select the maximum value and minimum value from among the quantized signals for the center pixel and peripheral pixels for each local area, and calculate the average value thereof;
and an arithmetic means for calculating the absolute difference between the average value and the quantized signal of the center pixel, and comparing the absolute difference with a certain set value and determining whether the center pixel is to be binarized based on the magnitude relationship. A character image binarization device comprising: binarization means.
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 true JPS62152093A (en) 1987-07-07
JPH0743754B2 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)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6438265B1 (en) 1998-05-28 2002-08-20 International Business Machines Corp. Method of binarization in an optical character recognition system

Citations (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

Patent Citations (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

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6438265B1 (en) 1998-05-28 2002-08-20 International Business Machines Corp. Method of binarization in an optical character recognition system

Also Published As

Publication number Publication date
JPH0743754B2 (en) 1995-05-15

Similar Documents

Publication Publication Date Title
US7764835B2 (en) Method and apparatus for recognizing code
JPH05227425A (en) Improvement in automatic image segmentation
EP0118905A2 (en) Adaptive threshold circuit for image processing
JPH08172532A (en) Image reader and read method
US5315405A (en) Binary circuit of scanner read image data
US4856076A (en) Binary coding circuit for OCR
JPS62152093A (en) Character picture binary-coding device
JPS6146875B2 (en)
JPH0233195B2 (en) DEJITARUJOHONOKIROKUHOHOOYOBIKIROKUTANTAI
JP5453594B2 (en) Symbol information reading apparatus and symbol information reading method
JPS60229179A (en) Quantizing device of picture signal
JPS60232777A (en) Quantizing device of picture signal
JPS62171085A (en) Character image binarization device
JP2937603B2 (en) Binary discrimination method of image data in image data reading device
JPH0157393B2 (en)
JPS63136180A (en) Binarization circuit
JP3210378B2 (en) Image input device
JP2936766B2 (en) Image input device
JPS63308471A (en) Picture signal binarization device
JPS6160475B2 (en)
JPH0231557A (en) Picture input device
JPS6180965A (en) Picture signal processing method
JPH01213770A (en) Character detecting/segmenting system
JPS627266A (en) Picture processor
JPS60220661A (en) Picture signal processing system