JPH04167084A - Character reader - Google Patents
Character readerInfo
- Publication number
- JPH04167084A JPH04167084A JP2291733A JP29173390A JPH04167084A JP H04167084 A JPH04167084 A JP H04167084A JP 2291733 A JP2291733 A JP 2291733A JP 29173390 A JP29173390 A JP 29173390A JP H04167084 A JPH04167084 A JP H04167084A
- Authority
- JP
- Japan
- Prior art keywords
- character
- density value
- value data
- maximum
- data
- 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.)
- Pending
Links
Landscapes
- Character Input (AREA)
Abstract
Description
【発明の詳細な説明】
[発明の目的]
(産業上の利用分野)
本発明は、記録媒体上の文字等を光学的に読取る文字読
取装置に係り、特に入力される文字画像から各文字単位
の検出切出しを行なう文字の検出切出技術に関する。[Detailed Description of the Invention] [Object of the Invention] (Industrial Application Field) The present invention relates to a character reading device that optically reads characters, etc. on a recording medium. This invention relates to character detection and extraction technology for detecting and extracting characters.
(従来の技術)
この種の文字読取装置にあっては、入力された多値の文
字画像を2値の文字画像に変換した後、文字行の検出を
行ない、その後、各文字の検出切出しを行なうのが一般
的である。しがし、この方式では、局部的に濃度レベル
が低いと2値化画像が欠落し、特に文字の周囲が欠落す
ると、文字の中心がずれ、文字認識に影響を与えてしま
う。(Prior art) In this type of character reading device, after converting an input multivalued character image into a binary character image, character lines are detected, and then each character is detected and extracted. It is common to do so. However, with this method, if the density level is locally low, the binarized image will be missing, and especially if the area around the character is missing, the center of the character will shift, which will affect character recognition.
一方、これらを回避するため、複数の2値化画像を抽出
して文字認識し、最も認識結果の良いものを最終結果と
したり、画像を複数に分割して分割単位での2値化処理
から2値化画像を得るようにしているものもあるが、い
ずれも多大な回路規模が必要であるという欠点がある。On the other hand, in order to avoid these problems, it is possible to extract multiple binarized images, perform character recognition, and use the one with the best recognition result as the final result, or divide the image into multiple parts and perform the binarization process in units of divisions. Although some methods are designed to obtain binarized images, they all have the drawback of requiring a large circuit scale.
(発明が解決しようとする課題)
上記したように、入力される多値の文字画像を2値の文
字画像に変換した後、文字行の検出、各文字の検出切出
しを行なうと、特に文字の周囲の濃度レベルが低い場合
、2値化画像が欠落し、文字の中心がずれ、文字認識に
影響を与えてしまう。一方、画像の欠落を防ぐための手
段を実現するためには多大な回路規模が必要である。(Problem to be Solved by the Invention) As described above, when character lines are detected and each character is detected and extracted after converting an input multi-valued character image into a binary character image, it is difficult to If the surrounding density level is low, the binarized image will be missing, the center of the character will shift, and character recognition will be affected. On the other hand, a large circuit scale is required to implement a means for preventing image deletion.
そこで、本発明は、文字認識に影響を与えることなく、
常に安定した文字行の検出、各文字の検出切出しを行な
うことができ、しかも比較的簡単な構成でそれが実現で
きる文字読取装置を提供することを目的とする。Therefore, the present invention provides the following advantages:
To provide a character reading device that can always stably detect a character line and detect and cut out each character, and can realize this with a relatively simple configuration.
[発明の構成]
(課題を解決するための手段)
本発明の文字読取装置は、入力される多値の文字画像に
対し、文字行と同方向に繰返し走査することにより、各
走査線上での最大濃度値データまたは最小濃度値データ
を抽出する第1a度値抽出手段と、この第1濃度値抽出
手段で抽出された最大濃度値データまたは最小濃度値デ
ータのそれぞれの濃度差から文字行を検出する文字行検
出手段と、この文字行検出手段で検出された文字行内で
の文字画像に対し、文字行と垂直方向に繰返し走査する
ことにより、各走査線上での最大濃度値データまたは最
小濃度値データを抽出する第2濃度値抽出手段と、この
第2濃度値抽出手段で抽出された最大濃度値データまた
は最小濃度値データのそれぞれの濃度差から文字を検出
する文字検出手段と、この文字検出手段で検出された各
文字を認識する文字認識手段とを具備している。[Structure of the Invention] (Means for Solving the Problems) The character reading device of the present invention repeatedly scans an input multivalued character image in the same direction as the character line, thereby reading the inputted multi-valued character image on each scanning line. A character line is detected from the density difference between the first density value extraction means for extracting the maximum density value data or the minimum density value data, and the maximum density value data or the minimum density value data extracted by the first density value extraction means. By repeatedly scanning the character image within the character line detected by the character line detection means in the direction perpendicular to the character line, maximum density value data or minimum density value on each scanning line is determined. a second density value extraction means for extracting data; a character detection means for detecting a character from the density difference between the maximum density value data or the minimum density value data extracted by the second density value extraction means; and character recognition means for recognizing each character detected by the means.
(作 用)
本発明は、従来のように、2値の文字画像で文字行の検
出、各文字の検出を行なうのではなく、入力される多値
の文字画像に対し、文字行と同方向の各走査線上での最
大(または最小)1変位データを抽出し、最大(または
最小)S変位データのそれぞれの濃度差から文字行を検
出する。そして、検出した文字行内での多値の文字画像
に対し、文字行と垂直方向の各走査線上での最大(また
は最小)濃度値データを抽出し、最大(または最小)濃
度値データのそれぞれの濃度差から文字を検出するもの
である。(Function) The present invention does not detect a character line or each character in a binary character image as in the past, but detects a character line in the same direction as the character line for an input multivalued character image. Maximum (or minimum) 1 displacement data on each scanning line is extracted, and a character line is detected from each density difference of the maximum (or minimum) S displacement data. Then, for the multivalued character image within the detected character line, the maximum (or minimum) density value data on each scanning line in the vertical direction to the character line is extracted, and each of the maximum (or minimum) density value data is It detects characters based on density differences.
なお、文字画像の濃度レベルが背景の濃度レベルよりも
高い場合は最大濃度値データを用い、文字画像の濃度レ
ベルが背景の濃度レベルよりも低い場合は最小濃度値デ
ータを用いる。Note that when the density level of the character image is higher than the density level of the background, the maximum density value data is used, and when the density level of the character image is lower than the density level of the background, the minimum density value data is used.
(実施例)
以下、本発明の一実施例について図面を参照して説明す
る。(Example) Hereinafter, an example of the present invention will be described with reference to the drawings.
第1図において、光電変換部1は、たとえば、文字等が
記録された記録媒体上に光を照射する光源と、記録媒体
上からの反射光を受光し、電気信号に変換するCCD形
センサなどの光電変換器と、光源からの光を記録媒体上
に導き、その反射光を光電変換器に導く光学系などがら
なり、記録媒体上を光走査することにより電気信号(ア
ナログ信号)に変換するようになっている。光電変換部
1からのアナログ信号は、A/D変換部2において多値
のデジタル信号に変換され、文字画像として多値画像メ
モリ3に格納される。多値画像メモリ3に格納された文
字画像は、最大・最小濃度値抽出部4において最大また
は最小の濃度値データが抽出される。そして、文字検出
切出部5において、最大・最小濃度値抽出部4で抽出さ
れた最大または最小の濃度値データを用いて各文字単位
の検出切出が行なわれ、その後、文字認識部6で各文字
の認識が行なわれるようになっている。In FIG. 1, the photoelectric conversion unit 1 includes, for example, a light source that irradiates light onto a recording medium on which characters or the like are recorded, and a CCD type sensor that receives reflected light from the recording medium and converts it into an electrical signal. It consists of a photoelectric converter, an optical system that guides light from a light source onto a recording medium, and guides the reflected light to the photoelectric converter, and converts it into an electrical signal (analog signal) by scanning the recording medium with light. It looks like this. The analog signal from the photoelectric converter 1 is converted into a multi-value digital signal by the A/D converter 2 and stored in the multi-value image memory 3 as a character image. A maximum/minimum density value extraction section 4 extracts maximum or minimum density value data from the character image stored in the multivalued image memory 3. Then, in the character detection and extraction section 5, detection and extraction of each character is performed using the maximum or minimum density value data extracted by the maximum/minimum density value extraction section 4, and then the character recognition section 6 performs detection and extraction for each character. Each character is recognized.
第2図は、最大・最小濃度値抽出部4の概略構成図を示
すもので、以下、最大濃度値データによる処理を例にと
って説明する。多値画像メモリ3から入力された文字画
像は、比較器11の入力端Pと第1トライステート12
に入力される。一方、最大・最小濃度値格納メモリ13
に既に格納されている最大濃度値データは、パルスPI
(第3図参照)によってオン、オフする第2トライステ
ート14を介して比較器11の入力端Qに入力され、両
入力端P、Qに入力されるデータの比較が行なわれる。FIG. 2 shows a schematic diagram of the maximum/minimum density value extracting section 4, and the processing using maximum density value data will be described below as an example. The character image input from the multilevel image memory 3 is sent to the input terminal P of the comparator 11 and the first tristate 12.
is input. On the other hand, the maximum/minimum concentration value storage memory 13
The maximum concentration value data already stored in the pulse PI
(See FIG. 3) is input to the input terminal Q of the comparator 11 via the second tri-state 14 which is turned on and off according to FIG. 3, and the data input to both input terminals P and Q are compared.
このとき、最大・最小切換信号が最大値を検出するモー
ドに設定されていれば、入力端Pの値が入力端Qの値よ
りも大きいとき、その出力によりナントゲート15、ア
ンドゲート17を介してフリップフロップ18がセット
される。逆に、最大・最小切換信号が最小値を検出する
モードに設定されていれば、入力端Pの値が入力端Qの
値よりも小さいとき、その出力によりノアゲート16、
アンドゲート17を介してフリップフロップ18がセッ
トされる。At this time, if the maximum/minimum switching signal is set to the mode in which the maximum value is detected, when the value at the input terminal P is larger than the value at the input terminal Q, the output is used to detect the maximum value. The flip-flop 18 is set. Conversely, if the maximum/minimum switching signal is set to the mode that detects the minimum value, when the value of the input terminal P is smaller than the value of the input terminal Q, the output of the NOR gate 16,
Flip-flop 18 is set via AND gate 17.
次に、フリップフロップ18のセット出力がパルスP2
(第3図参照)をナントゲート19により抜き取り、そ
のパルスP2が書込みパルスWTとなって最大・最小濃
度値格納メモリ13に印加されることにより、ナントゲ
ート19の出力によってオン、オフする第1トライステ
ート12を通った濃度値データが新たな最大濃度値デー
タとして最大・最小濃度値格納メモリ13に格納される
。Next, the set output of the flip-flop 18 is the pulse P2
(see FIG. 3) is extracted by the Nandt gate 19, and its pulse P2 becomes the write pulse WT and is applied to the maximum/minimum density value storage memory 13. The density value data that has passed through the tristate 12 is stored in the maximum/minimum density value storage memory 13 as new maximum density value data.
以上のことを時分割パルスPI、P2を用いて一走査線
単位で行なう。カウンタ20は、最大・最小濃度値格納
メモリ13のアドレスを発生するもので、走査終了信号
により一走査終了ごとにインクリメントされる。The above operations are performed for each scanning line using the time-division pulses PI and P2. The counter 20 generates an address for the maximum/minimum density value storage memory 13, and is incremented every time one scan is completed in response to a scan end signal.
これらの処理を用いて文字の検出切出しを行なった例が
第4図である。多値画像メモリ13に格納された文字画
像は、初めに文字記載方向(文字行方向)に走査され、
各走査線上での最大濃度値データA1が抽出される。最
大濃度値データA1は、各走査線上での濃度値データの
中で最大の濃度値データが抽出される。そして、第4図
において、抽出された各走査線上の最大濃度値データA
1から微分データA2を求め、この微分データA2の最
大値から文字行の検出切出(al〜a2)を行なう。次
に、検出された文字行(al〜g2)内での文字画像に
対し、文字行と垂直方向に走査し、各走査線上での最大
濃度値データB1を抽出する。次に、抽出された各走査
線上の最大濃度値データB1から微分データB2を求め
、この微分データB2の最大値から文字の検出切出(b
l〜b2.b3〜b4.b5〜be)を行なう。そして
、検出切出(bl −b2 、b3〜b4.b5〜be
)された各文字単位は、文字行方向に同様の処理を施し
、文字の外接矩形座標を求め、文字の検出切出を終了す
る。その後、検出切出された各文字内の文字画像を2値
化することにより、文字の認識が行なわれる。FIG. 4 shows an example of character detection and extraction using these processes. The character image stored in the multivalued image memory 13 is first scanned in the character writing direction (character line direction),
Maximum density value data A1 on each scanning line is extracted. As the maximum density value data A1, the maximum density value data among the density value data on each scanning line is extracted. In FIG. 4, maximum density value data A on each extracted scanning line is shown.
Differential data A2 is obtained from the differential data A2, and character lines are detected and cut out (al to a2) from the maximum value of the differential data A2. Next, the character image within the detected character line (al to g2) is scanned in a direction perpendicular to the character line, and maximum density value data B1 on each scanning line is extracted. Next, differential data B2 is obtained from the extracted maximum density value data B1 on each scanning line, and character detection cutting (b
l~b2. b3-b4. Perform b5-be). Then, detection cutting out (bl-b2, b3~b4.b5~be
) is subjected to similar processing in the direction of the character line, the coordinates of the circumscribed rectangle of the character are determined, and character detection and extraction is completed. Thereafter, character recognition is performed by binarizing the character image within each detected and extracted character.
以上、最大濃度値データを用いた処理について説明した
が、最小濃度値データを用いた処理についても同様の考
えが適用できる。Although the processing using the maximum density value data has been described above, the same idea can be applied to the processing using the minimum density value data.
また、前記実施例においては、文字の検出切出しを最大
(最小)濃度値データから微分データを求めて行なって
いるが、最大(最小)濃度値データを最大(最小)濃度
値データで作成したヒストグラムで求めた閾値で2値化
することにより、文字の検出切出を行なうことも可能で
ある。In addition, in the above embodiment, character detection and extraction is performed by obtaining differential data from maximum (minimum) density value data, but a histogram created from maximum (minimum) density value data using maximum (minimum) density value data It is also possible to detect and cut out characters by binarizing them using the threshold value determined in .
[発明の効果]
以上詳述したように本発明の文字読取装置は、従来のよ
うに、2値の文字画像で文字行の検出、各文字の検出を
行なうのではなく、入力される多値の文字画像に対し、
文字行と同方向の各走査線上での最大(または最小)濃
度値データを抽出し、最大(または最小)濃度値データ
のそれぞれの濃度差から文字行を検出する。そして、検
出した文字行内での多値の文字画像に対し、文字行と垂
直方向の各走査線上での最大(または最小)濃度値デー
タを抽出し、最大(または最小)濃度値データのそれぞ
れの濃度差から文字を検出するものである。[Effects of the Invention] As described in detail above, the character reading device of the present invention does not detect character lines or individual characters using a binary character image as in the past, but detects input multi-valued characters. For the character image of
The maximum (or minimum) density value data on each scanning line in the same direction as the character line is extracted, and the character line is detected from the density difference between the maximum (or minimum) density value data. Then, for the multivalued character image within the detected character line, the maximum (or minimum) density value data on each scanning line in the vertical direction to the character line is extracted, and each of the maximum (or minimum) density value data is It detects characters based on density differences.
したがって、本発明によれば、従来のように文字認識に
影響を与えることなく、常に安定した文字行の検出、各
文字の検出切出しを行なうことができ、しかも比較的簡
単な構成でそれが実現できる文字読取装置を提供できる
。Therefore, according to the present invention, it is possible to always stably detect character lines and detect and extract each character without affecting character recognition as in the past, and this can be achieved with a relatively simple configuration. We can provide a character reading device that can.
図は本発明の一実施例を示すもので、第1図は全体的な
構成を概略的に示すブロック図、第2図は最大・最小濃
度値抽出部の構成を概略的に示すブロック図、第3図は
最大・最小濃度値抽出部で用いるパルスを示す図、第4
図は最大濃度値データの抽出例と検出切出し例を説明す
るための図である。
1・・・光電変換部、2・・・A/D変換部、3・・・
多値画像メモリ、4・・・最大・最小濃度値抽出部、5
・・・文字検出切出部、6・・・文字認識部、13・・
・最大・最小濃度値格納メモリ。
出願人代理人 弁理士 鈴江武彦
第2区
#g3区The figures show one embodiment of the present invention; FIG. 1 is a block diagram schematically showing the overall configuration, FIG. 2 is a block diagram schematically showing the configuration of the maximum/minimum density value extraction section, Figure 3 is a diagram showing the pulses used in the maximum/minimum density value extraction section;
The figure is a diagram for explaining an example of extracting maximum density value data and an example of detection cutting out. 1... Photoelectric conversion section, 2... A/D conversion section, 3...
Multivalued image memory, 4... Maximum/minimum density value extraction section, 5
...Character detection cutting section, 6...Character recognition section, 13...
・Maximum/minimum concentration value storage memory. Applicant Representative Patent Attorney Takehiko Suzue Ward 2 #g3 Ward
Claims (2)
向に繰返し走査することにより、各走査線上での最大濃
度値データまたは最小濃度値データを抽出する第1濃度
値抽出手段と、 この第1濃度値抽出手段で抽出された最大濃度値データ
または最小濃度値データのそれぞれの濃度差から文字行
を検出する文字行検出手段と、この文字行検出手段で検
出された文字行内での文字画像に対し、文字行と垂直方
向に繰返し走査することにより、各走査線上での最大濃
度値データまたは最小濃度値データを抽出する第2濃度
値抽出手段と、 この第2濃度値抽出手段で抽出された最大濃度値データ
または最小濃度値データのそれぞれの濃度差から文字を
検出する文字検出手段と、 この文字検出手段で検出された各文字を認識する文字認
識手段と を具備したことを特徴とする文字読取装置。(1) A first density value extraction means for extracting maximum density value data or minimum density value data on each scanning line by repeatedly scanning an input multivalued character image in the same direction as the character line; , a character line detection means for detecting a character line from the density difference between the maximum density value data or the minimum density value data extracted by the first density value extraction means; a second density value extraction means for extracting maximum density value data or minimum density value data on each scanning line by repeatedly scanning the character image in a direction perpendicular to the character line; and a character recognition means for recognizing each character detected by the character detection means. Characteristic character reading device.
の濃度レベルが背景の濃度レベルよりも高い場合は最大
濃度値データを抽出し、文字画像の濃度レベルが背景の
濃度レベルよりも低い場合は最小濃度値データを抽出す
ることを特徴とする請求項1記載の文字読取装置。(2) The first and second density value extraction means extract maximum density value data when the density level of the character image is higher than the density level of the background, and the density level of the character image is higher than the density level of the background. 2. The character reading device according to claim 1, wherein minimum density value data is extracted when the density is low.
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2291733A JPH04167084A (en) | 1990-10-31 | 1990-10-31 | Character reader |
| US07/786,046 US5381488A (en) | 1990-10-31 | 1991-10-31 | Character reading apparatus |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2291733A JPH04167084A (en) | 1990-10-31 | 1990-10-31 | Character reader |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH04167084A true JPH04167084A (en) | 1992-06-15 |
Family
ID=17772698
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2291733A Pending JPH04167084A (en) | 1990-10-31 | 1990-10-31 | Character reader |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH04167084A (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2015197681A (en) * | 2014-03-31 | 2015-11-09 | 日本電産サンキョー株式会社 | Character recognition device and character extraction method for the same |
| US9230536B2 (en) | 2013-09-25 | 2016-01-05 | Mitsubishi Electric Corporation | Voice synthesizer |
-
1990
- 1990-10-31 JP JP2291733A patent/JPH04167084A/en active Pending
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US9230536B2 (en) | 2013-09-25 | 2016-01-05 | Mitsubishi Electric Corporation | Voice synthesizer |
| JP2015197681A (en) * | 2014-03-31 | 2015-11-09 | 日本電産サンキョー株式会社 | Character recognition device and character extraction method for the same |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP2702928B2 (en) | Image input device | |
| EP0505729B1 (en) | Image binarization system | |
| JP3095437B2 (en) | Character line detection cutout device and character reading device | |
| JPH0548510B2 (en) | ||
| JP2812619B2 (en) | Image processing device | |
| JPH04294475A (en) | Character reader | |
| JP2590099B2 (en) | Character reading method | |
| JPH0119193B2 (en) | ||
| JP3020293B2 (en) | Attribute determination method | |
| JP2853140B2 (en) | Image area identification device | |
| JPH0131236B2 (en) | ||
| JP3210378B2 (en) | Image input device | |
| JPH04260181A (en) | Character reader | |
| JPH04274583A (en) | Character reader | |
| JPH0540848A (en) | Area extraction method for document image | |
| JPH04316180A (en) | Method for discriminating attribute of document picture | |
| JP3160458B2 (en) | Character reading device and character reading method | |
| KR930009161B1 (en) | Boundary pixel detection circuit of binary image | |
| JPH02135586A (en) | Optical character reader | |
| JPH07234632A (en) | Braille document reader | |
| JPS6331825B2 (en) | ||
| JPH02166583A (en) | Character recognizing device | |
| JPS63184886A (en) | Binarizing system for picture processing | |
| JPS6321954B2 (en) | ||
| JPH0877292A (en) | Image processor |