JPH09265510A - Optical character reader - Google Patents

Optical character reader

Info

Publication number
JPH09265510A
JPH09265510A JP8076235A JP7623596A JPH09265510A JP H09265510 A JPH09265510 A JP H09265510A JP 8076235 A JP8076235 A JP 8076235A JP 7623596 A JP7623596 A JP 7623596A JP H09265510 A JPH09265510 A JP H09265510A
Authority
JP
Japan
Prior art keywords
signal
color
peak
unit
outputs
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
JP8076235A
Other languages
Japanese (ja)
Other versions
JP3308444B2 (en
Inventor
Kazunori Akaishi
一則 赤石
Fuyuki Matsui
冬樹 松井
Masafumi Shimoyama
雅史 下山
Koji Senoo
康二 妹尾
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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry 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 Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP07623596A priority Critical patent/JP3308444B2/en
Publication of JPH09265510A publication Critical patent/JPH09265510A/en
Application granted granted Critical
Publication of JP3308444B2 publication Critical patent/JP3308444B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Character Input (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide an OCR(optical character reader) which makes an accurate color decision without being affected by the relative output level difference of a color image sensor and surely removes dropout colors. SOLUTION: Color signals rd, gr, and b1 of red, green, and blue are supplied to color decision parts 31-34 and a maximum detection part 35. The color decision parts 31-34 make color decisions on the basis of reference values of mutually different classes. The maximum value detection part 35 detects a maximum value max among the color signals and a peak detection part 50 detects a peak value peak from the maximum value max. A level decision part 60 decides the class of a color signal level from the peak value peak and supplies a decision result csel to a color information selection part 40. The color information selection part 40 selects a color decision result bsel corresponding to the color signal level out of color decision results c11-c14 outputted from the color decision parts 31-34. A luminance signal selection part 90 selects and outputs a luminance signal bw according to the selected color decision result bsel.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、光学式文字読取装
置(Optical Character Reader、以下、OCRとい
う)、特にカラーイメージセンサで読み取ったイメージ
画像中のドロップアウトカラーの処理に関するものであ
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an optical character reader (hereinafter referred to as "OCR"), and more particularly to processing dropout color in an image image read by a color image sensor.

【0002】[0002]

【従来の技術】図2は、従来のOCRの概略の構成を示
するブロック図である。このOCRは、帳票1上の文字
を光学的に読み取る装置である。図2の帳票1は、一定
のフォーマットに文字を記入してOCRに入力するため
の用紙であり、文字を記入するための文字枠1aが予め
印刷されている。この文字枠1aは、文字の読み取りに
は不要であるため、記入者には見えるが、機械的には読
み取られないことが望ましい。そのため、文字枠1aを
機械的に無視するための有彩色(ドロップアウトカラ
ー)で印刷している。そして、この文字枠1aの中に、
認識対象となる文字1bを無彩色(例えば、黒色)で記
入する。この様な帳票1は、OCRのカラーイメージ読
取部2によって、光学的に読み取られる。カラーイメー
ジ読取部2は、例えば電荷結合素子(Charge Coupled D
evice、以下、CCDという)によるライン型カラーイメ
ージセンサ等で構成されている。カラーイメージ読取部
2は、帳票1に記載された文字その他の情報を画素に分
解して光学的に読み取り、各画素に対して赤色成分信号
(以下、R信号という)rd、緑色成分信号(以下、G
信号という)gr、及び青色成分信号(以下、B信号と
いう)blを出力する。カラーイメージ読取部2の出力
は、カラー処理部3に与えられる。カラー処理部3は、
R,G,Bの各信号rd,gr,blを基に、文字以外
の色の画素を抽出して、背景色と同一の色に変換するこ
とにより、イメージデータ中の文字枠を取り除く。この
様にして文字枠が取り除かれたイメージデータimg
は、イメージメモリ4に格納される。イメージメモリ4
に格納されたイメージデータimgは、切出制御部5に
よって文字パターンが存在する所定の領域が切り取られ
る。切出制御部5は、切り取った文字パターンを文字パ
ターンメモリ6に格納する。文字パターンメモリ6に格
納された文字パターンは、文字認識部7によって読み出
され、認識辞書8を参照しながら文字認識される。
2. Description of the Related Art FIG. 2 is a block diagram showing a schematic configuration of a conventional OCR. The OCR is a device that optically reads characters on the form 1. The form 1 in FIG. 2 is a sheet for entering characters in a certain format and inputting into the OCR, and a character frame 1a for entering characters is printed in advance. Since the character frame 1a is not necessary for reading characters, it is visible to the writer but it is desirable that it cannot be mechanically read. Therefore, the character frame 1a is printed in a chromatic color (dropout color) for mechanically ignoring it. And in this character frame 1a,
The character 1b to be recognized is written in an achromatic color (for example, black). Such a form 1 is optically read by the OCR color image reading unit 2. The color image reading unit 2 is, for example, a charge coupled device (Charge Coupled D).
evice, hereinafter referred to as CCD), and is composed of a line type color image sensor or the like. The color image reading unit 2 decomposes the characters and other information described in the form 1 into pixels and optically reads them, and a red component signal (hereinafter, referred to as R signal) rd and a green component signal (hereinafter, referred to as R signal) for each pixel. , G
And a blue component signal (hereinafter, referred to as B signal) bl. The output of the color image reading unit 2 is given to the color processing unit 3. The color processing unit 3
On the basis of the R, G, B signals rd, gr, bl, pixels of colors other than characters are extracted and converted into the same color as the background color, thereby removing the character frame in the image data. Image data img with the character frame removed in this way
Are stored in the image memory 4. Image memory 4
The cutout control unit 5 cuts out a predetermined area in which the character pattern exists from the image data img stored in. The cutout control unit 5 stores the cut-out character pattern in the character pattern memory 6. The character pattern stored in the character pattern memory 6 is read by the character recognition unit 7 and is recognized by referring to the recognition dictionary 8.

【0003】図3は、図2のOCRにおける従来のカラ
ー処理部3の一構成例を示すブロック図である。このカ
ラー処理部3は、図2のカラーイメージ読取部2から出
力されるR,G,Bの各信号rd,gr,blを入力す
るセンサインタフェース部11を有している。センサイ
ンタフェース部11の出力側は、RGB整列部12へ接
続されている。RGB整列部12は、R,G,Bの各信
号rd,gr,blをサンプリングするとともに、カラ
ーイメージセンサの画素配列に起因する赤,緑,青の各
画素の位置ずれを補正し、R,G,Bの各信号rd,g
r,blを同一位置に整列させるものである。RGB整
列部12の出力側は、色判定部13及び最大値検出部1
4へ共通接続されている。色判定部13は、R,G,B
の各信号rd,gr,bl間のレベル差を算出し、それ
らのレベル差を特定の判定基準と比較して、当該画素が
有彩色か無彩色かを判定する。そして、その判定結果を
色情報信号(赤系色red、緑系色grn、青系色bl
u、又は無彩色blk)として出力する。また、最大値
検出部14は、R,G,B信号rd,gr,blのうち
最も高い信号レベルを、当該画素の最大値信号maxと
して出力するものである。色判定部13の出力側は、色
情報処理部15へ接続されている。色情報処理部15
は、出力切替部16から与えられるモード選択信号mo
deに基づいて、属性(文字/カラー)切替信号at
r、カラー(有彩色/無彩色)判定信号col、及び輝
度選択信号bselを出力するものである。色情報処理
部15の輝度選択信号bselは、輝度信号選択部17
に与えられる。輝度信号選択部17は、RGB整列部1
2から出力されるR,G,Bの各信号rd,gr,bl
と最大値検出部14から出力される最大値信号maxの
中のから、いずれか1つを輝度選択信号bselに基づ
いて選択して輝度信号bwを出力するものである。
FIG. 3 is a block diagram showing an example of the configuration of a conventional color processing section 3 in the OCR of FIG. The color processing section 3 has a sensor interface section 11 for inputting the R, G, B signals rd, gr, bl output from the color image reading section 2 of FIG. The output side of the sensor interface unit 11 is connected to the RGB alignment unit 12. The RGB alignment unit 12 samples the R, G, and B signals rd, gr, and bl, and corrects the positional deviation of the red, green, and blue pixels due to the pixel array of the color image sensor. G and B signals rd and g
r and bl are aligned at the same position. The output side of the RGB alignment unit 12 has a color determination unit 13 and a maximum value detection unit 1
4 is commonly connected. The color determination unit 13 uses R, G, B
The level difference between the signals rd, gr, and bl is calculated, and the level difference is compared with a specific criterion to determine whether the pixel is chromatic or achromatic. Then, the determination result is used as a color information signal (red color red, green color grn, blue color bl).
u or an achromatic color blk). Further, the maximum value detection unit 14 outputs the highest signal level of the R, G, B signals rd, gr, bl as the maximum value signal max of the pixel. The output side of the color determination unit 13 is connected to the color information processing unit 15. Color information processing unit 15
Is a mode selection signal mo provided from the output switching unit 16.
attribute (character / color) switching signal at based on de
r, a color (chromatic / achromatic color) determination signal col, and a luminance selection signal bsel are output. The luminance selection signal bsel of the color information processing unit 15 corresponds to the luminance signal selection unit 17
Given to. The luminance signal selection unit 17 includes the RGB alignment unit 1
R, G, B signals rd, gr, bl output from 2
Among the maximum value signals max output from the maximum value detection unit 14, any one is selected based on the brightness selection signal bsel and the brightness signal bw is output.

【0004】一方、最大値信号maxは、ピーク検出部
18へ与えられている。ピーク検出部18は、入力され
る最大値信号maxの信号レベルのピークを検出し、ピ
ーク値peakとして保持するとともに、出力するもの
である。ピーク検出部18の出力側と、輝度信号選択部
17の出力側とは、ともに輝度信号補正部19へ接続さ
れている。輝度信号補正部19は、ピーク検出部18か
ら入力されるピーク値peakによって、輝度信号bw
のレベルを補正するものである。この輝度信号補正部1
9の出力側は、図2のイメージメモリ4に接続されてい
る。この様な構成のカラー処理部3では、次のような動
作が行われる。帳票1は、図2のカラーイメージ読取部
2で光学的に読み取られ、帳票上の文字その他の情報は
画素に分解され、赤、緑、青の各原色成分に分離され
る。そしてR,G,Bの各信号rd,gr,blとして
センサインタフェース11を介してRGB整列部12へ
入力される。RGB整列部12では、入力されたR,
G,Bの各信号rd,gr,blを、図4(1)〜
(4)に示すカラーイメージ読取部2のイメージセンサ
の画素配列に応じて次のような処理を行う。
On the other hand, the maximum value signal max is given to the peak detector 18. The peak detector 18 detects the peak of the signal level of the input maximum value signal max, holds it as the peak value peak, and outputs it. The output side of the peak detection section 18 and the output side of the luminance signal selection section 17 are both connected to the luminance signal correction section 19. The brightness signal correction unit 19 uses the peak value peak input from the peak detection unit 18 to calculate the brightness signal bw.
The level of is corrected. This brightness signal correction unit 1
The output side of 9 is connected to the image memory 4 of FIG. In the color processing unit 3 having such a configuration, the following operation is performed. The form 1 is optically read by the color image reading unit 2 in FIG. 2, and characters and other information on the form are separated into pixels and separated into respective primary color components of red, green and blue. Then, R, G, and B signals rd, gr, and bl are input to the RGB alignment unit 12 via the sensor interface 11. In the RGB alignment unit 12, the input R,
The signals rd, gr and bl of G and B are shown in FIG.
The following processing is performed according to the pixel array of the image sensor of the color image reading unit 2 shown in (4).

【0005】図4(1)〜(4)は、CCDで構成され
たライン型カラーイメージセンサの画素配列パターンの
例を示す図である。例えば、図4(1)の配列のイメー
ジセンサを用いるRGB整列部12では、赤,緑,青の
各画素の位置ずれを補正する遅延用レジスタ回路を持
つ。図4(2),(3)の配列のイメージセンサを用い
るRGB整列部12では、R,G,B信号を整列させる
機能を持っている。図4(4)の配列のイメージセンサ
は、赤,緑,青の各画素の位置ずれがないので、特別な
処理は不要である。このようなイメージセンサの画素配
列に応じた処理が行われた後、R,G,B信号rd,g
r,blは、色判定部13へ入力される。色判定部13
では、R,G,Bの各信号rd,gr,bl間のレベル
差を算出し、一番レベルが高く、かつ、他の信号に対し
て特定の判定基準値以上のレベル差のある信号を選択す
る。そして選択された信号の色を帳票1上の画素の色で
あると判定する。もし、特定の判定基準値以上のレベル
差のある信号が存在しなければ、帳票1上の画素の色
は、無彩色であると判定する。これにより、帳票1上の
色の識別が可能となり、無彩色であれば文字を構成する
イメージデータであると判定される。
4 (1) to 4 (4) are diagrams showing an example of a pixel array pattern of a line type color image sensor composed of a CCD. For example, the RGB alignment unit 12 using the image sensor of the array of FIG. 4A has a delay register circuit for correcting the positional deviation of each pixel of red, green and blue. The RGB alignment unit 12 using the image sensors of the arrangements of (2) and (3) of FIG. 4 has a function of aligning R, G, and B signals. The image sensor of the array of FIG. 4 (4) does not have the positional deviation of each pixel of red, green, and blue, and thus no special processing is required. After the processing according to the pixel array of such an image sensor is performed, R, G, B signals rd, g
r and bl are input to the color determination unit 13. Color determination unit 13
Then, the level difference between the R, G, and B signals rd, gr, bl is calculated, and the signal having the highest level and having a level difference equal to or higher than a specific determination reference value with respect to other signals is calculated. select. Then, it is determined that the color of the selected signal is the color of the pixel on the form 1. If there is no signal having a level difference equal to or more than the specific determination reference value, it is determined that the color of the pixel on the form 1 is an achromatic color. As a result, the colors on the form 1 can be identified, and if the color is achromatic, it is determined that the data is image data forming a character.

【0006】[0006]

【発明が解決しようとする課題】しかしながら、従来の
OCRでは、次のような課題があった。図3の色判定部
13は、R信号rdとG信号gr、G信号grとB信号
b、及びB信号blとR信号rdの各組合わせについ
て、それぞれ信号レベルの差を算出する。そして、どれ
か1つのレベル差が特定の判定基準値以上である場合
に、そのレベルの一番高い信号の色を当該画素の色と判
定する。例えば、R信号rdの信号レベルがG信号gr
及びB信号blの信号レベルよりも高く、R信号rdの
信号レベルがG信号grの信号レベルよりも特定の判定
基準値以上高いときには、当該画素は赤系色であると判
定される。赤系色と判定されると、色判定部13の出力
信号の中の赤系色情報信号redのみがオンとなり、他
の信号はすべてオフとなる。R信号rd、G信号gr、
及びB信号blの間に特定の判定基準値以上の差が無い
場合には、当該画素は無彩色であると判定され、無彩色
情報信号blkがオンとなる。色判定部13では、この
様な色判定方法を使用しているため、カラーイメージセ
ンサの出力レベルが相対的に異なると、特定の判定基準
値のレベル差を使用した色判定方法は、次の図5(a)
〜(c)に示すような理由により不可能となる。
However, the conventional OCR has the following problems. The color determination unit 13 in FIG. 3 calculates a difference in signal level for each combination of the R signal rd and the G signal gr, the G signal gr and the B signal b, and the B signal bl and the R signal rd. Then, when any one of the level differences is equal to or larger than the specific determination reference value, the color of the signal having the highest level is determined to be the color of the pixel. For example, the signal level of the R signal rd is the G signal gr.
And when the signal level of the R signal rd is higher than the signal level of the B signal bl by a certain determination reference value or more than the signal level of the G signal gr, the pixel is determined to be a reddish color. When it is determined that the color is red, only the red color information signal red in the output signal of the color determination unit 13 is turned on and all other signals are turned off. R signal rd, G signal gr,
If there is no difference between the B signal and the B signal bl that is greater than or equal to the specific determination reference value, the pixel is determined to be achromatic and the achromatic color information signal blk is turned on. Since the color determination unit 13 uses such a color determination method, when the output levels of the color image sensors are relatively different, the color determination method using the level difference of the specific determination reference value is as follows. Figure 5 (a)
It becomes impossible for the reason shown in (c).

【0007】図5(a)〜(c)は、従来の色判定方法
の問題点を説明するための説明図である。図5(a)
は、例えば、ドロップアウトカラーとして赤色を使用し
た場合に、帳票1の赤系色部分をカラーセンサが読み取
っている状態を示している。図5(b)は、カラーセン
サAから出力されるR信号rd、G信号gr、及びB信
号blの信号レベルを示している。ここで、出力レベル
は256階調とし、R信号rd,G信号gr,B信号b
lの信号レベルは、それぞれ、200,140,140
である。そして、判定基準のレベル差ΔLを50とする
と、R信号とG信号のレベル差ΔRGは、 ΔRG=R信号レベル−G信号レベル=60>50 であるから、色判定部13は、赤系色、即ちドロップア
ウトカラーであると判定する。
FIGS. 5A to 5C are explanatory diagrams for explaining the problems of the conventional color determination method. FIG. 5 (a)
Indicates a state in which the color sensor is reading the reddish color portion of the form 1 when red is used as the dropout color, for example. FIG. 5B shows the signal levels of the R signal rd, the G signal gr, and the B signal bl output from the color sensor A. Here, the output level is 256 gradations, the R signal rd, the G signal gr, and the B signal b.
The signal levels of l are 200, 140 and 140, respectively.
It is. When the level difference ΔL of the determination standard is 50, the level difference ΔRG between the R signal and the G signal is ΔRG = R signal level−G signal level = 60> 50. That is, it is determined that the color is a dropout color.

【0008】一方、図5(c)はカラーセンサBから出
力されるR信号rd、G信号gr、及びB信号blを示
しており、R信号rd,G信号gr,B信号blの信号
レベルは、それぞれ、140,100,100である。
従って、R信号とG信号のレベル差ΔRGと、R信号と
B信号のレベル差ΔRBは、それぞれ ΔRG=R信号レベル−G信号レベル=40<50 ΔRB=R信号レベル−B信号レベル=40<50 であるから、色判定部13は、無彩色であると判定す
る。この様に、カラーセンサBから出力されるR信号r
d、G信号gr、及びB信号blの相対的なレベル関係
はカラーセンサAと変わらなくても、出力自体が相対的
に低いため、信号レベル間のレベル差が小さくなり、特
定の判定基準値(この場合は、50)でレベル差を判定
すると異なった判定結果が生じてしまう。本発明は、前
記従来技術が持っていた課題を解決し、イメージサンサ
の出力信号レベルの相対的なレベル差に対して色判定レ
ベルを補正し、正確なカラー処理を行い、ドロップアウ
トカラーを確実に除去するOCRを提供するものであ
る。
On the other hand, FIG. 5C shows the R signal rd, the G signal gr, and the B signal bl output from the color sensor B. The signal levels of the R signal rd, the G signal gr, and the B signal bl are , 140, 100, 100, respectively.
Therefore, the level difference ΔRG between the R signal and the G signal and the level difference ΔRB between the R signal and the B signal are respectively ΔRG = R signal level−G signal level = 40 <50 ΔRB = R signal level−B signal level = 40 < Therefore, the color determination unit 13 determines that the color is achromatic. In this way, the R signal r output from the color sensor B
Even if the relative level relationship between the d signal, the G signal gr, and the B signal bl is the same as that of the color sensor A, the output itself is relatively low, so the level difference between the signal levels becomes small, and the specific judgment reference value If the level difference is determined at (50 in this case), different determination results will occur. The present invention solves the problems of the above-mentioned conventional techniques, corrects the color judgment level for the relative level difference of the output signal level of the image sensor, performs accurate color processing, and ensures dropout color. To provide OCR for removal.

【0009】[0009]

【課題を解決するための手段】前記課題を解決するた
め、第1の発明は、帳票上に記載された文字を画素に分
解して光学的に読取り、赤、緑、青の原色成分信号に分
離して出力するカラーイメージ読取手段と、前記各原色
成分信号間の信号レベル差によって色判定を行い、判定
された赤、緑、青または無彩色の色成分信号をイメージ
データとして出力するカラー処理手段と、前記イメージ
データから、文字認識辞書に登録されている登録パター
ンを参照して前記帳票上に記載された文字を認識する認
識手段とを、備えた光学式文字読取装置において、前記
カラー処理手段を次のように構成している。即ち、前記
カラー処理手段は、前記信号レベル差に対してそれぞれ
異なる基準値を用いて色判定を行い、判定結果をそれぞ
れ色情報信号として出力する複数の色判定部と、前記各
原色成分信号の中から信号レベルが最大の最大値信号を
検出して出力する最大値検出部と、前記複数の色判定部
から出力される色情報信号の中から、色情報選択信号で
選択されたものを色信号として出力する色情報選択部と
を、有している。また、前記カラー処理手段は、前記最
大値信号の信号レベルの最大値を検出し、ピーク値とし
て保持しかつ出力するピーク検出部と、前記ピーク値を
基に前記信号レベル差のクラスを判定し、判定結果に応
じて前記色情報選択信号を出力するレベル判定部と、前
記色信号と処理モードに応じて与えられるモード選択信
号とに基づいて輝度選択信号を出力する色情報処理部
と、前記輝度選択信号に基づいて前記各原色成分信号と
前記最大値信号の中から1つを選択して輝度信号として
出力する輝度信号選択部と、前記ピーク値を基に前記輝
度信号の信号レベルを補正してイメージデータを前記認
識手段に出力する輝度信号補正部とを、備えている。
In order to solve the above-mentioned problems, the first invention is to decompose a character described on a form into pixels and read them optically to obtain primary color component signals of red, green and blue. Color image reading means that outputs separately, and color processing that performs color determination based on the signal level difference between each of the primary color component signals and outputs the determined red, green, blue or achromatic color component signal as image data. In the optical character reading device, the color processing includes: means for recognizing a character written on the form by referring to a registered pattern registered in a character recognition dictionary from the image data. The means is configured as follows. That is, the color processing means performs color determination using different reference values for the signal level differences, and outputs a plurality of determination results as color information signals, and the primary color component signals. The maximum value detection unit that detects and outputs the maximum value signal having the maximum signal level from among them, and the color information signal output from the plurality of color determination units is selected by the color information selection signal. A color information selection unit for outputting as a signal. Further, the color processing unit detects a maximum value of the signal level of the maximum value signal, holds a peak value and outputs the peak value, and determines a class of the signal level difference based on the peak value. A level determination unit that outputs the color information selection signal according to a determination result; a color information processing unit that outputs a luminance selection signal based on the color signal and a mode selection signal given according to a processing mode; A brightness signal selection unit that selects one of the primary color component signals and the maximum value signal based on a brightness selection signal and outputs the brightness signal, and a signal level of the brightness signal is corrected based on the peak value. And a luminance signal correction section for outputting image data to the recognition means.

【0010】第2の発明では、第1の発明のカラー処理
手段において、前記輝度信号の信号レベルのピークを検
出し、輝度補正信号として保持しかつ出力する第2のピ
ーク検出部を追加している。そして、前記輝度信号補正
部は、前記ピーク値に代えて前記輝度補正信号を基に、
前記輝度信号の信号レベルを補正してイメージデータを
前記認識手段に出力するように変更している。第3の発
明では、第2の発明のカラー処理手段の色情報選択部と
第1のピーク検出部とレベル判定部とに代えて、機能の
異なる次のような第1のピーク検出部とピーク最大値出
力部と輝度レベル選択部とレベル判定部とを設けてい
る。この第3の発明の第1のピーク検出部は、前記赤、
緑、青の各原色成分信号毎に信号レベルのピークを検出
し、それぞれピーク値として保持しかつ出力するもので
ある。ピーク最大値出力部は、前記第1のピーク検出部
から出力される複数のピーク値の中から最大のものを最
大ピーク値として出力するものである。輝度レベル選択
部は、前記第1のピーク検出部から出力される複数のピ
ーク値と前記最大ピーク値の中から、処理モードに応じ
て与えられるモード選択信号によって1つを選択して輝
度レベル値として出力するものである。そして、レベル
判定部は、前記輝度レベル値を基に前記信号レベル差の
クラスを判定し、判定結果に応じて前記色情報選択信号
を出力するものである。
According to a second aspect of the present invention, in the color processing means of the first aspect, a second peak detecting section for detecting the peak of the signal level of the luminance signal and holding and outputting it as a luminance correction signal is added. There is. Then, the brightness signal correction unit, based on the brightness correction signal instead of the peak value,
The signal level of the luminance signal is corrected so that the image data is output to the recognition means. In the third invention, instead of the color information selecting section, the first peak detecting section and the level determining section of the color processing means of the second invention, the following first peak detecting section and peak having different functions are provided. A maximum value output unit, a brightness level selection unit, and a level determination unit are provided. The first peak detector of the third invention is the red detector,
A signal level peak is detected for each of the green and blue primary color component signals, and the peaks are held and output as peak values. The peak maximum value output unit outputs the maximum value among the plurality of peak values output from the first peak detection unit as the maximum peak value. The brightness level selection unit selects one of a plurality of peak values output from the first peak detection unit and the maximum peak value by a mode selection signal given according to a processing mode, and selects a brightness level value. Is output as. The level determination unit determines the class of the signal level difference based on the brightness level value and outputs the color information selection signal according to the determination result.

【0011】第4の発明では、第3の発明のカラー処理
手段に、次の機能を有する補間信号生成部を付加してい
る。この第4の発明の補間信号生成部は、前記原色成分
信号が存在しない画素位置の原色成分信号を、その画素
位置の両隣の同一色の原色成分信号の信号レベルから補
間して補間原色成分信号を生成するものである。補間信
号生成部の付加に伴い、第4の発明では、第1のピーク
検出部と輝度信号選択部の機能を次のように変更してい
る。即ち、第1のピーク検出部は、前記赤、緑、青の各
原色成分信号及び前記補間原色成分信号毎に信号レベル
のピークを検出し、それぞれピーク値として保持しかつ
出力する。また、輝度信号選択部は、前記輝度選択信号
に基づき、前記各原色成分信号の中からまたは該各原色
成分信号及び前記補間原色成分信号の中から1つを選択
して輝度信号として出力するようにしている。第5の発
明では、第1、第2、第3または第4の発明において、
前記レベル判定部で判定する前記信号レベル差のクラス
の数は前記複数の色判定部の数と同数とし、該レベル判
定部は該複数の色判定部が色判定に用いるそれぞれの基
準値に応じて該クラスを判定する。
According to a fourth aspect of the invention, an interpolation signal generating section having the following function is added to the color processing means of the third aspect. The interpolation signal generation unit of the fourth invention interpolates the primary color component signal at a pixel position where the primary color component signal does not exist from the signal levels of the primary color component signals of the same color on both sides of the pixel position to interpolate the primary color component signal. Is generated. With the addition of the interpolation signal generation unit, in the fourth invention, the functions of the first peak detection unit and the luminance signal selection unit are changed as follows. That is, the first peak detector detects the peak of the signal level for each of the red, green, and blue primary color component signals and the interpolated primary color component signals, and holds and outputs each as a peak value. Further, the luminance signal selection unit selects, based on the luminance selection signal, one of the primary color component signals or one of the primary color component signals and the interpolated primary color component signals and outputs the selected luminance signal. I have to. In a fifth invention, in the first, second, third or fourth invention,
The number of classes of the signal level difference determined by the level determination unit is the same as the number of the plurality of color determination units, and the level determination unit is responsive to each reference value used by the plurality of color determination units for color determination. Then, the class is judged.

【0012】第1の発明によれば、以上のようにOCR
を構成したので、OCRのカラー処理手段では次のよう
な動作が行われる。カラーイメージ読取手段から赤、
緑、青の各原色成分信号が入力されると、複数の色判定
部は、それぞれ異なる基準値を用いて色判定を行い、そ
れぞれ色情報信号を出力する。また、最大値検出部は、
入力される赤、緑、青の各原色成分信号の信号レベルの
最大値を検出し、最大値信号を出力する。ピーク検出部
は、最大値信号のピークを検出し、検出したピーク値を
レベル判定部へ出力する。レベル判定部は、ピーク値を
基に色判定に用いる基準値のクラスを判定して色情報選
択信号を出力する。色情報選択部は、色情報選択信号に
基づいて、複数の色判定部から入力される色情報信号の
中から1つを選択して色信号を出力する。色情報処理部
は、色信号とモード選択信号とに基づいて輝度選択信号
を出力する。輝度信号選択部は、輝度選択信号に基づい
て、赤、緑、青の各原色成分信号と最大値信号の中から
1つを選択して輝度信号を出力する。輝度信号補正部
は、ピーク値を基に輝度信号の信号レベルを補正し、イ
メージデータとして認識手段へ出力する。第2の発明で
は、第1の発明と同様に、輝度信号選択部は輝度信号を
出力する。この出力された輝度信号は、第2のピーク検
出部と輝度信号補正部とに与えられる。第2のピーク検
出部は、入力される輝度信号のピークを検出し輝度補正
信号を出力する。輝度信号補正部は、輝度補正信号を基
に輝度信号の信号レベルを補正し、イメージデータとし
て認識手段へ出力する。
According to the first invention, the OCR is performed as described above.
As described above, the OCR color processing means performs the following operations. From the color image reading means red,
When the green and blue primary color component signals are input, the plurality of color determination sections perform color determination using different reference values, and output color information signals, respectively. Also, the maximum value detection unit
The maximum signal level of the input primary color component signals of red, green, and blue is detected and the maximum value signal is output. The peak detection unit detects the peak of the maximum value signal and outputs the detected peak value to the level determination unit. The level determination unit determines a class of reference values used for color determination based on the peak value and outputs a color information selection signal. The color information selection unit selects one of the color information signals input from the plurality of color determination units based on the color information selection signal and outputs the color signal. The color information processing unit outputs a luminance selection signal based on the color signal and the mode selection signal. The brightness signal selection unit selects one of the primary color component signals of red, green, and blue and the maximum value signal based on the brightness selection signal, and outputs the brightness signal. The brightness signal correction unit corrects the signal level of the brightness signal based on the peak value and outputs it as image data to the recognition means. In the second invention, as in the first invention, the luminance signal selection section outputs the luminance signal. The output brightness signal is provided to the second peak detection unit and the brightness signal correction unit. The second peak detection unit detects the peak of the input luminance signal and outputs the luminance correction signal. The brightness signal correction unit corrects the signal level of the brightness signal based on the brightness correction signal and outputs it as image data to the recognition means.

【0013】第3の発明では、カラーイメージ読取手段
から赤、緑、青の各原色成分信号入力されると、第1の
ピーク検出部は、赤、緑、青の各原色成分信号毎に信号
レベルのピークを検出し、それぞれのピーク値を出力す
る。ピーク最大値出力部は、赤、緑、青のピーク値の中
から最大のものを最大ピーク値として出力する。輝度レ
ベル選択部は、赤、緑、青の各ピーク値と最大ピーク値
との中から、モード選択信号によって1つを選択して輝
度レベル値を出力する。レベル判定部は、輝度レベル値
を基に色判定に用いる基準値のクラスを判定して色情報
選択信号を出力する。色情報選択部は、色情報選択信号
に基づいて、第2の発明と同様に複数の色判定部から入
力される色情報信号の中から1つを選択して輝度選択信
号を出力する。この輝度選択信号に基づき、輝度信号選
択部から出力される輝度信号に対する処理は、第2の発
明と同様である。第4の発明では、カラーイメージ読取
手段から赤、緑、青の各原色成分信号入力されると、カ
ラー処理手段の補間信号生成部は、原色成分信号が存在
しない画素位置の原色成分信号を、その画素位置の両隣
の同一色の原色成分信号の信号レベルから補間して補間
原色成分信号を生成する。そして、生成された補間原色
成分信号と、入力された赤、緑、青の各原色成分信号と
を基にして、第3の発明とほぼ同様のカラー処理が行わ
れる。
In the third aspect of the invention, when the red, green, and blue primary color component signals are input from the color image reading means, the first peak detection section outputs signals for each of the red, green, and blue primary color component signals. The peak of the level is detected and each peak value is output. The peak maximum value output unit outputs the maximum value among the red, green, and blue peak values as the maximum peak value. The brightness level selection unit selects one of the red, green, and blue peak values and the maximum peak value by the mode selection signal and outputs the brightness level value. The level determination unit determines a class of reference values used for color determination based on the brightness level value and outputs a color information selection signal. The color information selection unit selects one of the color information signals input from the plurality of color determination units based on the color information selection signal and outputs the luminance selection signal. The processing for the luminance signal output from the luminance signal selection unit based on the luminance selection signal is the same as that of the second invention. In the fourth invention, when the red, green, and blue primary color component signals are input from the color image reading means, the interpolation signal generating section of the color processing means outputs the primary color component signals at pixel positions where no primary color component signal exists. Interpolation primary color component signals are generated by interpolating from the signal levels of the primary color component signals of the same color on both sides of the pixel position. Then, based on the generated interpolated primary color component signals and the input primary color component signals of red, green, and blue, color processing substantially similar to that of the third invention is performed.

【0014】[0014]

【発明の実施の形態】第1の実施形態 図1は、本発明の第1の実施形態を示すもので、例えば
図2のOCR中のカラー処理処理部3に代えて設けられ
るカラー処理部の構成を示すブロック図である。このカ
ラー処理部は、例えば図2のカラーイメージ読取部2か
ら出力されるR,G,B信号rd,gr,blを入力す
るセンサインタフェース部21を有している。センサイ
ンタフェース部21の出力側は、RGB整列部22に接
続されている。RGB整列部22は、R,G,Bの各信
号rd,gr,blをサンプリングする。そして、図2
のカラーイメージ読取部2内のカラーイメージセンサの
画素配列に起因する赤,緑,青の各画素の位置ずれを補
正し、R,G,Bの各信号rd,gr,blを同一位置
に整列させるものである。RGB整列部22の出力側
は、例えば、それぞれ256階調のレベルを表示するた
めの8本の信号線でカラー入力部30に接続されてい
る。カラー入力部30は、色判定部31,32,33,
34と、最大値検出部35とで構成されている。各色判
定部31〜34は、それぞれR,G,Bの各信号rd,
gr,bl間のレベル差を算出し、そのレベル差をそれ
ぞれ色判定部毎に異なる基準値を用いて比較することに
より、当該画素が赤系色か、緑系色か、青系色か、又は
無彩色かを判定する。そして、その判定結果をそれぞれ
色情報信号cl1,cl2,cl3,cl4として出力
するものである。各色判定部31〜34の出力側は、そ
れぞれ4種類の色情報を表示するための2本の信号線で
色情報選択部40へ接続されている。一方、最大値検出
部35は、R,G,B信号rd,gr,blのうち,最
も高い信号レベルを当該画素の最大値信号maxとして
出力するものである。最大値検出部35の出力側は、ピ
ーク検出部50へ接続されている。
First Embodiment FIG. 1 shows a first embodiment of the present invention. For example, a color processing unit provided in place of the color processing unit 3 in the OCR of FIG. It is a block diagram which shows a structure. The color processing section has a sensor interface section 21 for inputting R, G, B signals rd, gr, bl output from the color image reading section 2 of FIG. 2, for example. The output side of the sensor interface unit 21 is connected to the RGB alignment unit 22. The RGB alignment unit 22 samples the R, G, B signals rd, gr, bl. And FIG.
Of the red, green, and blue pixels due to the pixel array of the color image sensor in the color image reading unit 2 of FIG. 2 is corrected, and the R, G, and B signals rd, gr, and bl are aligned at the same position. It is what makes me. The output side of the RGB aligning unit 22 is connected to the color input unit 30 by, for example, eight signal lines for displaying 256 gradation levels. The color input unit 30 includes color determination units 31, 32, 33,
34 and a maximum value detection unit 35. The color determination units 31 to 34 respectively output the R, G, and B signals rd,
By calculating a level difference between gr and bl and comparing the level differences using different reference values for each color determination unit, it is possible to determine whether the pixel is a reddish color, a greenish color, or a bluish color. Or, determine whether it is an achromatic color. Then, the determination results are output as color information signals cl1, cl2, cl3, cl4, respectively. The output side of each of the color determination sections 31 to 34 is connected to the color information selection section 40 by two signal lines for displaying four types of color information. On the other hand, the maximum value detection unit 35 outputs the highest signal level of the R, G, B signals rd, gr, bl as the maximum value signal max of the pixel. The output side of the maximum value detection unit 35 is connected to the peak detection unit 50.

【0015】ピーク検出部50は、入力された最大値信
号maxのレベルの最大値を記憶するメモリを持ち、記
憶されたレベルよりも更に高いレベルが入力されたとき
は、その記憶内容を更新する。このようにして、入力さ
れた最大値信号maxのピークをピーク値peakとし
て保持して出力するものである。ピーク検出部50の出
力側は、レベル判定部60へ接続されている。レベル判
定部60は、ピーク値peakを4つの色判定部31〜
34の検出レベルに対応した4段階のクラスに区分し、
その区分結果を色情報選択信号cselとして出力する
ものである。レベル判定部60の出力側は、色情報信号
選択部40の選択端子SELに接続されている。色情報
選択部40は、色情報選択信号cselに基づいて色判
定部31〜34から入力される色情報信号cl1〜cl
4の中から1つを選択して色信号colを出力するもの
であり、その出力側が、色情報処理部70へ接続されて
いる。色情報処理部70は、出力切替部80から与えら
れるモード選択信号modeに基づいて、属性(文字/
カラー)切替信号art、カラー(有彩色/無彩色)判
定信号col、及び輝度選択信号bselを出力するも
のである。色情報処理部70から出力される輝度選択信
号bselは、輝度信号選択部90へ与えられる。輝度
信号選択部90は、RGB整列部22から出力される
R,G,Bの各信号rd,gr,blと最大値検出部3
5から出力される最大値信号maxの中から、1つを輝
度選択信号bselに基づいて選択し、輝度信号bwと
して出力するものである。輝度信号選択部90の出力側
とピーク検出部50の出力側とは、それぞれ輝度信号補
正部100の入力側に接続されている。輝度信号補正部
100は、ピーク検出部50から与えられるピーク値p
eakによって、輝度信号bwの信号レベルを補正する
ものである。輝度信号補正部100の出力側は、ドロッ
プアウト処理部110へ接続されている。ドロップアウ
ト処理部110は、色情報処理部70から出力される属
性切替信号atr及びカラー判定信号colに基づき、
当該画素がドロップアウトカラーか否かを判定して、ド
ロップアウトカラーを除去するものである。ドロップア
ウト処理部110の出力側は、図2のイメージメモリ4
に接続されている。
The peak detector 50 has a memory for storing the maximum value of the level of the input maximum value signal max, and updates the stored content when a level higher than the stored level is input. . In this way, the peak of the input maximum value signal max is held as the peak value peak and output. The output side of the peak detection unit 50 is connected to the level determination unit 60. The level determination unit 60 determines the peak value peak from the four color determination units 31 to 31.
Divided into 4 classes corresponding to 34 detection levels,
The result of the classification is output as the color information selection signal csel. The output side of the level determination unit 60 is connected to the selection terminal SEL of the color information signal selection unit 40. The color information selection unit 40 receives the color information signals cl1 to cl input from the color determination units 31 to 34 based on the color information selection signal csel.
One of the four signals is selected and the color signal col is output, and its output side is connected to the color information processing unit 70. The color information processing unit 70, based on the mode selection signal mode given from the output switching unit 80, attributes (character / character / character).
A color) switching signal art, a color (chromatic / achromatic color) determination signal col, and a luminance selection signal bsel are output. The luminance selection signal bsel output from the color information processing unit 70 is given to the luminance signal selection unit 90. The luminance signal selection unit 90 includes R, G, and B signals rd, gr, bl output from the RGB alignment unit 22 and the maximum value detection unit 3.
One of the maximum value signals max output from 5 is selected based on the brightness selection signal bsel and output as the brightness signal bw. The output side of the brightness signal selection unit 90 and the output side of the peak detection unit 50 are connected to the input side of the brightness signal correction unit 100, respectively. The brightness signal correction unit 100 uses the peak value p supplied from the peak detection unit 50.
The eak corrects the signal level of the luminance signal bw. The output side of the luminance signal correction unit 100 is connected to the dropout processing unit 110. The dropout processing unit 110, based on the attribute switching signal atr and the color determination signal col output from the color information processing unit 70,
The dropout color is removed by determining whether or not the pixel is a dropout color. The output side of the dropout processing unit 110 is the image memory 4 of FIG.
It is connected to the.

【0016】図6は、図1のピーク検出部50の構成を
示すブロック図である。このピーク検出部50は、最大
値信号maxが入力されるピークデータ比較部51を有
している。ピークデータ比較部51は、入力された最大
値信号maxとランダムアクセスメモリ(以下、RAM
という)52に保持されているデータとを比較し、最大
値信号maxがRAM52のデータよりも大きい場合
に、更新信号renを出力するものである。ピークデー
タ比較部51の出力側は、ピークデータ更新判定部53
へ接続されている。ピークデータ更新判定部53は、ピ
ークリセット信号rstが与えられている場合にのみ、
入力された更新信号renに従って、データ切替信号c
ngをオンにして出力するものである。ピークデータ更
新判定部53の出力側は、更新データ切替部54の制御
端子Cに接続されている。更新データ切替部54は、最
大値信号maxが入力される端子AとRAM52に保持
されているデータが入力される端子Bとを有し、データ
切替信号cngがオンである間、端子Aに入力された信
号を出力端子Oへ出力するものである。更新データ切替
部54の出力端子Oは、RAM52のデータ入力端子D
Iに接続されている。RAM52は、アドレス端子Aに
接続されているアドレス制御部55から与えられるアド
レス信号adrに従って、当該アドレスのデータを読み
書きするものであり、ライン型カラーイメージセンサの
1ラインに相当する画素数の容量を有している。更新デ
ータ切替部54の出力は、ピーク値peakとしてRA
M52に書き込まれて保持されるとともに、図1のレベ
ル判定部60及び輝度信号補正部100へ出力される。
FIG. 6 is a block diagram showing the configuration of the peak detector 50 of FIG. The peak detection unit 50 has a peak data comparison unit 51 to which the maximum value signal max is input. The peak data comparison unit 51 receives the maximum value signal max and the random access memory (hereinafter referred to as RAM).
The data held in 52) is compared and the update signal ren is output when the maximum value signal max is larger than the data in the RAM 52. The output side of the peak data comparison unit 51 has a peak data update determination unit 53.
Connected to The peak data update determination unit 53 only operates when the peak reset signal rst is given.
According to the input update signal ren, the data switching signal c
ng is turned on for output. The output side of the peak data update determination unit 53 is connected to the control terminal C of the update data switching unit 54. The update data switching unit 54 has a terminal A to which the maximum value signal max is input and a terminal B to which the data held in the RAM 52 is input, and is input to the terminal A while the data switching signal cng is on. The output signal is output to the output terminal O. The output terminal O of the update data switching unit 54 is the data input terminal D of the RAM 52.
I. The RAM 52 reads / writes the data of the address according to the address signal adr provided from the address control unit 55 connected to the address terminal A, and has a capacity of the number of pixels corresponding to one line of the line type color image sensor. Have The output of the update data switching unit 54 is RA as the peak value peak.
The data is written and stored in M52, and is output to the level determination unit 60 and the luminance signal correction unit 100 in FIG.

【0017】次に、図1のカラー処理部の動作を説明す
る。まず、色判定部31〜34に、RGB整列部22で
整列されたR,G,B信号rd,gr,blが入力され
る。各色判定部31〜34は、色判定を行う基準値(例
えば、検出パラメータ)を個別に有しており、この検出
パラメータと入力されたR,G,B信号rd,gr,b
l間のレベル差とを比較してその結果を色情報信号cl
1〜cl4として出力する。ここで、各色判定部31〜
34の判定基準を、それぞれクラス1,2,3,4とす
る。各クラスに対する検出パラメータは、例えば、次の
ように設定する。クラス1の色判定部41は、R,G,
B信号rd,gr,blに対する検出パラメータをそれ
ぞれΔR1,ΔG1,ΔB1とする。クラス2の色判定
部32は、色判定部31に対して出力レベルが色差に関
係なく一様に10%低下したものとして、R,G,B信
号rd,gr,blに対する検出パラメータをそれぞれ
ΔR1×0.9,ΔG1×0.9,ΔB1×0.9とす
る。クラス3の色判定部33は、色判定部31に対して
出力レベルが色差に関係なく一様に20%低下したもの
として、R,G,B信号rd,gr,blに対する検出
パラメータをそれぞれΔR1×0.8,ΔG1×0.
8,ΔB1×0.8とする。そして、クラス4の色判定
部34は、色判定部31に対して出力レベルが色差に関
係なく一様に30%低下したものとして、R,G,B信
号rd,gr,blに対する検出パラメータをそれぞれ
ΔR1×0.7,ΔG1×0.7,ΔB1×0.7とす
る。これにより、例えば、クラス1の検出パラメータを
ΔR1=50としたとき、図5のセンサAを使用した場
合の各レベルの色判定部31〜34の出力する色情報信
号cl1〜cl4は、すべて赤系色を示すを信号とな
る。一方、センサBを使用した場合、クラス2,3,4
の各検出パラメータは、ΔR2=45,ΔR3=40,
ΔR4=35となるので、クラス2,3,4の色判定部
32,33,34では赤系色を示す色情報信号cl2〜
cl4を出力し、クラス1の色判定部31では無彩色を
示す色情報信号cl1を出力する。これらの各色判定部
31〜34の出力は色情報信号選択部40へ与えられ
る。
Next, the operation of the color processing section of FIG. 1 will be described. First, the R, G, B signals rd, gr, bl aligned by the RGB alignment unit 22 are input to the color determination units 31-34. Each of the color determination units 31 to 34 individually has a reference value (for example, a detection parameter) for performing color determination, and the detection parameters and the input R, G, B signals rd, gr, b.
and the level difference between l and the result is compared with the color information signal cl
Output as 1 to cl4. Here, each color determination unit 31 to
The judgment criteria of 34 are classes 1, 2, 3, and 4, respectively. The detection parameters for each class are set as follows, for example. The color determination unit 41 of class 1 uses R, G,
The detection parameters for the B signals rd, gr, and bl are ΔR1, ΔG1, and ΔB1, respectively. The class 2 color determination unit 32 determines that the output level of the color determination unit 31 is uniformly reduced by 10% irrespective of the color difference, and the detection parameters for the R, G, B signals rd, gr, bl are each ΔR1. X0.9, ΔG1 × 0.9, ΔB1 × 0.9. The class 3 color determination unit 33 determines that the output level of the color determination unit 31 is uniformly reduced by 20% irrespective of the color difference, and the detection parameters for the R, G, B signals rd, gr, bl are each ΔR1. × 0.8, ΔG1 × 0.
8, ΔB1 × 0.8. Then, the class 4 color determination unit 34 determines that the output level of the color determination unit 31 is uniformly reduced by 30% irrespective of the color difference, and detects the detection parameters for the R, G, B signals rd, gr, bl. Let ΔR1 × 0.7, ΔG1 × 0.7, and ΔB1 × 0.7, respectively. Thus, for example, when the detection parameter of class 1 is ΔR1 = 50, the color information signals cl1 to cl4 output by the color determination units 31 to 34 at each level when the sensor A of FIG. 5 is used are all red. A signal indicating a system color is used. On the other hand, when sensor B is used, classes 2, 3, 4
The detection parameters of ΔR2 = 45, ΔR3 = 40,
Since ΔR4 = 35, the color determination units 32, 33, and 34 of classes 2, 3, and 4 have color information signals cl2 to cl2 indicating a reddish color.
cl4 is output, and the class 1 color determination unit 31 outputs a color information signal cl1 indicating an achromatic color. The outputs of these color determination units 31 to 34 are given to the color information signal selection unit 40.

【0018】一方、最大値検出部35は、R,G,B信
号rd,gr,blの中から信号レベルが最大のものを
最大値信号maxとして検出し、ピーク検出部50へ出
力する。ここで、ピーク検出部50の動作を、図6を参
照しながら説明する。図6のピークデータ比較部51に
最大値信号maxが入力される。ピークデータ比較部5
1には、更にRAM52からのデータが入力されてい
る。いま、RAM52から入力されるデータよりも、最
大値信号maxの方が大きいとする。ピークデータ比較
部51の出力の更新信号renはオンとなるので、ピー
クデータ更新判定部53は、更新データ切替部54の制
御端子Cにデータ切替信号cngを出力する。更新デー
タ切替部54は、制御端子Cにデータ切替信号cngが
入力されると、端子Aに入力されている最大値信号ma
xを出力端子Oへ出力する。出力端子Oは、RAM52
のデータ入力端子DIに接続されているので、RAM5
4のデータは、最大値信号maxに書き換えられる。R
AM52のアドレス端子Aには、アドレス制御部55か
らピークデータ比較部51で比較を行っている画素に対
応したアドレスが入力されるので1ライン中の各画素に
対する最大値信号maxが更新されてピーク値peak
としてRAM52に記憶される。この様な、ピーク値更
新処理は、帳票の読取り開始直後に、先端の余白部分に
対応する複数ラインに亘って、ピークリセット信号rs
tをオンにすることによって行われる。この処理例を図
7に示す。
On the other hand, the maximum value detecting section 35 detects the maximum value signal max from the R, G, B signals rd, gr, bl as the maximum value signal max and outputs it to the peak detecting section 50. Here, the operation of the peak detector 50 will be described with reference to FIG. The maximum value signal max is input to the peak data comparison unit 51 in FIG. Peak data comparison unit 5
The data from the RAM 52 is further input to 1. Now, it is assumed that the maximum value signal max is larger than the data input from the RAM 52. Since the update signal ren output from the peak data comparison unit 51 is turned on, the peak data update determination unit 53 outputs the data switching signal cng to the control terminal C of the update data switching unit 54. When the data switching signal cng is input to the control terminal C, the update data switching unit 54 receives the maximum value signal ma input to the terminal A.
x is output to the output terminal O. The output terminal O is the RAM 52
RAM5 because it is connected to the data input terminal DI of
The data of 4 is rewritten to the maximum value signal max. R
Since the address corresponding to the pixel being compared by the peak data comparison unit 51 is input from the address control unit 55 to the address terminal A of the AM 52, the maximum value signal max for each pixel in one line is updated and the peak is obtained. The value peak
Is stored in the RAM 52 as In such a peak value updating process, immediately after the reading of the form is started, the peak reset signal rs is spread over a plurality of lines corresponding to the margin portion at the leading end.
This is done by turning on t. An example of this processing is shown in FIG.

【0019】図7は、帳票の読取り位置とピークリセッ
ト信号rstとの関係の一例を示す図である。ピークリ
セット信号rstがオフになると、ピーク値更新処理は
行われず、RAM52に記憶保持されているデータがピ
ーク値peakとして更新データ切替部54から出力さ
れる。このようにして、ピーク検出部50は、入力され
た最大値信号maxの信号レベルの中で最大のものをピ
ーク値peakとしてレベル判定部60へ出力する。レ
ベル判定部60では、入力されるピーク値peakを基
に、カラーイメージセンサの出力レベルのクラス分けを
次の図8のように行う。図8は、レベル判定部60にお
ける処理の一例を示す説明図である。図8に示すよう
に、ピーク値peakをカラーイメージセンサの出力レ
ベルの目安として用いて、信号力レベルを4段階に分け
る。即ち、クラス1を100〜90%、クラス2を90
〜80%、クラス3を80〜70%、クラス4を70%
以下として、各クラスの判定レベルを設定する。レベル
判定部60は、これらの判定レベルと入力されたピーク
値peakとを比較し、該当するクラスを示す信号を色
情報選択信号cselとして出力する。例えば、図5の
センサAのピーク値peakが、レベル値240である
と、レベル判定部60は、色情報選択信号cselとし
てクラス1を出力し、センサBのピーク値peakがレ
ベル値160であると、クラス4を出力する。そしてこ
の判定結果の色情報選択信号cselは、色情報信号選
択部40へ出力される。センサBの場合、クラス4と判
定されるので、色情報信号選択部40は、クラス4の色
判定部、即ち色判定部34の色情報信号cl4を選択し
て出力する。従って、センサBのクラス4についての検
出結果は、赤系色を示すので、センサBの色認識結果と
センサAの色認識結果とは、同一になる。
FIG. 7 is a diagram showing an example of the relationship between the reading position of the form and the peak reset signal rst. When the peak reset signal rst is turned off, the peak value update processing is not performed, and the data stored and held in the RAM 52 is output from the update data switching unit 54 as the peak value peak. In this way, the peak detection unit 50 outputs the maximum signal level of the input maximum value signals max to the level determination unit 60 as the peak value peak. The level determination unit 60 classifies the output levels of the color image sensor based on the input peak value peak as shown in FIG. FIG. 8 is an explanatory diagram showing an example of processing in the level determination unit 60. As shown in FIG. 8, the peak value peak is used as a standard of the output level of the color image sensor to divide the signal power level into four stages. That is, 100 to 90% for class 1 and 90 for class 2.
~ 80%, Class 3 80-70%, Class 4 70%
Below, the judgment level of each class is set. The level determination unit 60 compares these determination levels with the input peak value peak and outputs a signal indicating the corresponding class as the color information selection signal csel. For example, when the peak value peak of the sensor A in FIG. 5 is the level value 240, the level determination unit 60 outputs class 1 as the color information selection signal csel, and the peak value peak of the sensor B is the level value 160. And class 4 is output. Then, the color information selection signal csel as the determination result is output to the color information signal selection unit 40. In the case of the sensor B, since it is determined to be class 4, the color information signal selection unit 40 selects and outputs the color determination unit of class 4, that is, the color information signal cl4 of the color determination unit 34. Therefore, since the detection result of the class 4 of the sensor B shows a reddish color, the color recognition result of the sensor B and the color recognition result of the sensor A are the same.

【0020】色情報信号選択部40の出力は、色情報処
理部70へ与えられ、更に出力切替部80からのモード
切替信号modeによって、輝度選択信号bselが生
成される。輝度選択信号bselは、輝度信号選択部9
0へ与えられる。これにより、輝度信号選択部90は、
レベル判定部60で判定されたピーク値peakに対応
するクラスの色判定部(例えば、色判定部31)が色判
定した色情報信号cl1に基づいて、例えば赤系色(R
信号rd)を選択して、輝度信号bwとして輝度信号補
正部100へ出力する。輝度信号補正部100は、ピー
ク検出部50から与えられるピーク値peakを基に、
入力された輝度信号bwを補正してドロップアウト処理
部110へ出力する。ドロップアウト処理部110は、
色情報処理部70から出力される属性切替信号atr及
びカラー判定信号colに基づき、当該画素がドロップ
アウトカラーか否かを判定して、ドロップアウトカラー
を除去し、その結果をイメージデータimgとして図2
のイメージメモリ4へ出力する。この様に、第1の実施
形態のカラー処理部は、異なった信号レベルの判定基準
によってクラス分けされた4個の色判定部31〜34
と、カラーイメージセンサの出力レベルによってカラー
イメージセンサの出力クラスを判定するレベル判定部6
0とを有している。そして、色情報信号選択部40で
は、レベル判定部60で判定されたクラス(色情報選択
信号csel)に基づいて色判定部31〜34の色情報
信号cl1〜cl4を選択し、輝度選択信号bselを
得ている。更に輝度選択信号bselに基づいて輝度信
号を選択しているので、カラーイメージセンサの個々の
特性の差(個体差)に起因する出力レベルの差に影響さ
れることなく、一様に色認識を行うことができるという
利点がある。
The output of the color information signal selection unit 40 is given to the color information processing unit 70, and the brightness selection signal bsel is generated by the mode switching signal mode from the output switching unit 80. The brightness selection signal bsel is supplied to the brightness signal selection unit 9
Given to 0. As a result, the luminance signal selection unit 90
Based on the color information signal cl1 that has been color-determined by the color determination unit (for example, the color determination unit 31) of the class corresponding to the peak value peak determined by the level determination unit 60, for example, a reddish color (R
The signal rd) is selected and output to the brightness signal correction unit 100 as the brightness signal bw. The brightness signal correction unit 100 uses the peak value peak provided from the peak detection unit 50 as a basis.
The input luminance signal bw is corrected and output to the dropout processing unit 110. The dropout processing unit 110
Based on the attribute switching signal atr and the color determination signal col output from the color information processing unit 70, it is determined whether or not the pixel is a dropout color, the dropout color is removed, and the result is shown as image data img. Two
Output to the image memory 4. As described above, the color processing unit according to the first embodiment has four color determination units 31 to 34 classified into classes according to different signal level determination criteria.
And a level determination unit 6 that determines the output class of the color image sensor based on the output level of the color image sensor.
0. Then, the color information signal selection unit 40 selects the color information signals cl1 to cl4 of the color determination units 31 to 34 based on the class (color information selection signal csel) determined by the level determination unit 60, and the luminance selection signal bsel. Is getting Further, since the brightness signal is selected based on the brightness selection signal bsel, color recognition is performed uniformly without being affected by the difference in output level caused by the difference in individual characteristics (individual difference) of the color image sensor. It has the advantage that it can be done.

【0021】第2の実施形態 図9は、本発明の第2の実施形態を示すOCRにおける
カラー処理部の構成を示すブロック図であり、図1中の
要素と共通の要素には共通の符号が付されている。この
実施形態のカラー処理部では、図1のカラー処理部の色
判別部31〜34の出力側に遅延回路36を付加し、輝
度信号選択部90の出力側にピーク検出部50と同一機
能を有するピーク検出部91を追加している。更に、図
1のピーク検出部50の出力に代えて、追加したピーク
検出部91から出力される輝度補正信号bcorを輝度
信号補正部100へ与えるようにしている。このような
構成としたので、ピーク検出部50とレベル判定部60
での処理のための時間に相当する遅延時間を遅延回路3
6で発生させることにより、色情報選択部40における
色情報信号cl1〜cl4と色情報選択信号cselの
時間的なずれがなくなる。また、輝度信号補正部100
においても、輝度信号bwと輝度補正信号bcorが輝
度信号選択部90で選択された画素に対して同一のタイ
ミングで入力される。従って、処理時間による遅延の影
響を受けずに、画素単位に正確に色判定と輝度信号補正
ができるという利点がある。
Second Embodiment FIG. 9 is a block diagram showing the configuration of a color processing unit in an OCR showing a second embodiment of the present invention, and common reference numerals are given to elements common to those in FIG. Is attached. In the color processing unit of this embodiment, a delay circuit 36 is added to the output side of the color discrimination units 31 to 34 of the color processing unit of FIG. 1, and the same function as the peak detection unit 50 is provided on the output side of the luminance signal selection unit 90. The peak detecting unit 91 having the same is added. Further, instead of the output of the peak detection unit 50 of FIG. 1, the brightness correction signal bcor output from the added peak detection unit 91 is applied to the brightness signal correction unit 100. With such a configuration, the peak detection unit 50 and the level determination unit 60
The delay time corresponding to the time for processing in the delay circuit 3
6, the color information selection unit 40 eliminates the time difference between the color information signals cl1 to cl4 and the color information selection signal csel. Also, the brightness signal correction unit 100
Also in the above, the brightness signal bw and the brightness correction signal bcor are input to the pixel selected by the brightness signal selection unit 90 at the same timing. Therefore, there is an advantage that the color determination and the luminance signal correction can be accurately performed for each pixel without being affected by the delay due to the processing time.

【0022】第3の実施形態 図10は、本発明の第3の実施形態を示すOCRにおけ
るカラー処理部の構成を示すブロック図であり、図9中
の要素と共通の要素には共通の符号が付されている。こ
の実施形態のカラー処理部では、図9のカラー処理部の
ピーク検出部50に代えて、ピーク切替部50Aを設け
ている。ピーク切替部50Aは、ピーク検出部50−
1,50−2,50−3と、ピーク最大値検出部56
と、輝度レベル選択部57とで構成されている。ピーク
検出部50−1,50−2,50−3には、R,G,B
信号rd,gr,blが、それぞれ入力される。各ピー
ク検出部50−1〜50−3は、図8のピーク検出部5
0と同一の機能を有するものであり、これらの各ピーク
検出部50−1〜50−3の出力側が、それぞれピーク
最大値出力部56と、輝度レベル選択部57へ接続され
ている。ピーク最大値出力部56は、ピーク検出部50
−1〜50−3から入力されるピーク値pk1,pk
2,pk3の中から最大のものを最大ピーク値mxpk
として出力するものである。ピーク最大値出力部56の
出力側は、輝度レベル選択部57へ接続されている。
Third Embodiment FIG. 10 is a block diagram showing the arrangement of a color processing unit in an OCR showing a third embodiment of the present invention, and elements common to those in FIG. Is attached. In the color processing unit of this embodiment, a peak switching unit 50A is provided instead of the peak detection unit 50 of the color processing unit of FIG. The peak switching unit 50A includes a peak detection unit 50-
1, 50-2, 50-3 and peak maximum value detection unit 56
And a brightness level selection unit 57. The peak detectors 50-1, 50-2, and 50-3 have R, G, and B, respectively.
The signals rd, gr, bl are input respectively. The peak detectors 50-1 to 50-3 are the peak detectors 5 of FIG.
The output side of each of the peak detection sections 50-1 to 50-3 is connected to the peak maximum value output section 56 and the brightness level selection section 57, respectively. The peak maximum value output unit 56 includes the peak detection unit 50.
Peak values pk1 and pk input from -1 to 50-3
The maximum peak value of 2 and pk3 is the maximum peak value mxpk
Is output. The output side of the peak maximum value output unit 56 is connected to the brightness level selection unit 57.

【0023】輝度レベル選択部57は、ピーク検出部5
0−1〜50−3から入力されるそれぞれのピーク値p
k1〜pk3と、ピーク最大値出力部56から入力され
る最大ピーク値mxpkとの中から、出力切替部80か
ら与えられるモード選択信号modeに基づいて1つを
選択して輝度レベル値blvlとして出力するものであ
る。輝度レベル選択部57の出力側は、レベル判定部6
0へ接続されている。この様に、ピーク切替部50Aを
構成したので、ピーク切替部50Aでは、次のような動
作が行われる。図2のカラーイメージ読取部2において
帳票1が読み取られると、図7に示すように、読み取り
開始直後の複数ラインに亘って、ピークリセット信号r
stがオンになる.これにより、ピーク検出部50−1
〜50−3は、それぞれR,G,B信号rd,gr,b
lのピークを検出し、それぞれR信号ピーク値pk1,
G信号ピーク値pk2,B信号ピーク値pk3として保
持する。ピーク検出部50−1〜50−3に保持された
各ピーク値pk1〜pk3は、ピーク最大値出力部56
へ与えられる。ピーク最大値出力部56は、各ピーク値
pk1〜pk3の中から最大のものを選択し、最大ピー
ク値mxpkとして出力する。この最大ピーク値mxp
kとピーク検出部50−1〜50−3に保持された各ピ
ーク値pk1〜pk3が、輝度レベル選択部57へ入力
される。輝度レベル選択部57は、出力切替部80から
与えられるモード選択信号modeに基づいて、入力さ
れた各ピーク値pk1〜pk3の中から1つを選択す
る。
The brightness level selecting section 57 includes a peak detecting section 5
Each peak value p input from 0-1 to 50-3
From k1 to pk3 and the maximum peak value mxpk input from the peak maximum value output unit 56, one is selected based on the mode selection signal mode given from the output switching unit 80 and output as the brightness level value blvl. To do. The output side of the brightness level selection unit 57 is the level determination unit 6
0. Since the peak switching unit 50A is configured in this way, the peak switching unit 50A performs the following operation. When the form 1 is read by the color image reading unit 2 of FIG. 2, the peak reset signal r is displayed over a plurality of lines immediately after the start of reading, as shown in FIG.
st is turned on. Thereby, the peak detector 50-1
50-3 are R, G, B signals rd, gr, b, respectively.
l peak is detected, and R signal peak value pk1,
The G signal peak value pk2 and the B signal peak value pk3 are held. The peak values pk1 to pk3 held in the peak detection units 50-1 to 50-3 are the peak maximum value output unit 56.
Given to. The peak maximum value output unit 56 selects the maximum value from the peak values pk1 to pk3 and outputs it as the maximum peak value mxpk. This maximum peak value mxp
k and the respective peak values pk1 to pk3 held in the peak detection units 50-1 to 50-3 are input to the brightness level selection unit 57. The brightness level selection unit 57 selects one of the input peak values pk1 to pk3 based on the mode selection signal mode given from the output switching unit 80.

【0024】輝度レベル選択部57は、例えば処理モー
ドが“赤系色のみを除くモード”の時は、R信号ピーク
値pk1を選択し、“青系色のみを除くモード”の時
は、G信号ピーク値pk2またはB信号ピーク値pk3
を選択する。また、“黒以外のすべての色を除くモー
ド”の時は、最大ピーク値mxpkを輝度レベル値bl
vlとして選択する。この様にして、輝度レベル選択部
57で選択された輝度レベル値blvlは、レベル判定
部60へ出力される。なお、ピーク切替部50A以外の
動作は、図9のカラー処理部と同様である。図11は、
図10のカラー処理部の効果を説明するための説明図で
ある。この図11では、ピークリセット信号rstによ
り、帳票の先端の余白部分を走査してピーク値pk1〜
pk3を検出している場合のR,G,Bの各信号rd,
gr,blの信号レベルの一例を示している。白色を走
査している場合、R信号rdのピーク値pk1(=22
0)より、G信号grのピーク値pk2(=236)の
方が高くなったとする。この場合、最大ピーク値mxp
k(=236)を輝度レベル値blvlとして使用する
と、青系色の画素であれば、G信号grのピーク値pk
2を基にレベル判定部60でクラス判定が行われるので
問題は生じない。しかし、赤系色の画素であると、実際
のR信号rdのピーク値pk1がクラス2であるのに、
レベル判定部60では、クラス1と判定されてしまい、
正規のクラス(即ち、クラス2)での輝度信号選択がで
きなくなる。
The brightness level selecting section 57 selects the R signal peak value pk1 when the processing mode is "a mode excluding only red colors", and G when it is "a mode excluding only blue colors". Signal peak value pk2 or B signal peak value pk3
Select Further, in the "mode excluding all colors other than black", the maximum peak value mxpk is set to the brightness level value bl.
Select as vl. In this way, the brightness level value blvl selected by the brightness level selection unit 57 is output to the level determination unit 60. The operation other than the peak switching unit 50A is the same as that of the color processing unit of FIG. FIG.
It is explanatory drawing for demonstrating the effect of the color processing part of FIG. In FIG. 11, the peak reset signal rst is used to scan the blank area at the leading edge of the form to scan the peak values pk1 to pk1.
Each signal rd of R, G, B when pk3 is detected,
An example of the signal levels of gr and bl is shown. When scanning white, the peak value pk1 (= 22) of the R signal rd
It is assumed that the peak value pk2 (= 236) of the G signal gr is higher than 0). In this case, the maximum peak value mxp
When k (= 236) is used as the brightness level value blvl, the peak value pk of the G signal gr is calculated for pixels of bluish color.
Since the class determination is performed by the level determination unit 60 based on 2, no problem occurs. However, if the pixel is a reddish color pixel, the actual peak value pk1 of the R signal rd is class 2,
The level determination unit 60 has determined that the class is 1,
It becomes impossible to select the luminance signal in the regular class (that is, class 2).

【0025】図10のカラー処理部では、ピーク切替部
50A内の各ピーク検出部50−1〜50−3において
それぞれR,G,B信号rd,gr,blのピーク値p
k1〜pk3が保持される。そして、モード選択信号m
odeが、例えば、“赤系色のみを除くモード”の時
は、R信号rdのピーク値pk1が選択されてレベル判
定部60へ与えられるので、レベル判定部60では、ク
ラス2と判定する。これにより、正規のクラスでの輝度
信号選択が行われ、正しく色認識をすることができる。
これとは逆に、R信号rdのピーク値pk1が高い場合
に、“青系色のみを除くモード”を指定すると、G信号
grまたはB信号blのピーク値pk2,pk3によ
り、レベル判定部におけるクラス判定が行われるので、
青系色についても正しく色認識が行われる。このよう
に、第3の実施形態では、R,G,B信号rd,gr,
bl毎にピーク検出部50−1〜50−3を設け、更に
各ピーク値pk1〜pk3の最大値を最大ピーク値mx
pkとして出力するピーク最大値出力部56と、最大ピ
ーク値mxpkと各ピーク値pk1〜pk3とを切り替
える輝度レベル選択部57を設けている。これにより、
R,G,Bの各信号rd,gr,blの信号レベルに差
があっても、処理モードが単原色画素信号を使用するモ
ードにおいて、正規のピーク値peakで輝度レベル選
択を行うことができる。このため、正確なイメージデー
タimgが得られるという利点がある。
In the color processing section of FIG. 10, the peak value p of the R, G, B signals rd, gr, bl in each of the peak detecting sections 50-1 to 50-3 in the peak switching section 50A.
k1 to pk3 are retained. Then, the mode selection signal m
When the ode is, for example, "mode excluding only red color", the peak value pk1 of the R signal rd is selected and given to the level determination unit 60, so the level determination unit 60 determines to be class 2. As a result, the luminance signal is selected in the regular class, and correct color recognition can be performed.
On the contrary, when the peak value pk1 of the R signal rd is high and the "mode excluding only blue color" is specified, the peak value pk2, pk3 of the G signal gr or the B signal bl causes the level determination unit Since the class judgment is done,
Correct color recognition is performed for blue colors. Thus, in the third embodiment, the R, G, B signals rd, gr,
Peak detectors 50-1 to 50-3 are provided for each bl, and the maximum value of each peak value pk1 to pk3 is set to the maximum peak value mx.
A peak maximum value output unit 56 that outputs pk and a brightness level selection unit 57 that switches between the maximum peak value mxpk and each peak value pk1 to pk3 are provided. This allows
Even if there is a difference in the signal levels of the R, G, and B signals rd, gr, and bl, the luminance level can be selected with the regular peak value peak in the processing mode in which the single primary color pixel signal is used. . Therefore, there is an advantage that accurate image data img can be obtained.

【0026】第4の実施形態 本発明の第4の実施形態は、図2のOCRのカラーイメ
ージ読取部2におけるライン型カラーイメージセンサ
が、図4(2)に示すような画素配列になっている場合
に、分解能を上げて処理するものである。図4(2)の
画素配列では、RB(赤青)ラインは赤と青のカラーセ
ンサが交互に配列されているため、G(緑)ラインに比
べて赤と青の画素の数が半分しかない。このため、Gラ
インと同等の分解能を得るためには、存在していない画
素位置の原色成分信号を両隣の同一色の原色成分信号か
ら補間する必要がある。図12は、本発明の第4の実施
形態を示すOCRにおけるカラー処理部の構成を示すブ
ロック図であり、図10中の要素と共通の要素には共通
の符号が付されている。
Fourth Embodiment In the fourth embodiment of the present invention, the line type color image sensor in the color image reading section 2 of the OCR of FIG. 2 has a pixel array as shown in FIG. 4 (2). If so, the resolution is increased and the processing is performed. In the pixel arrangement of FIG. 4 (2), the red and blue color sensors are alternately arranged on the RB (red and blue) line, so that the number of red and blue pixels is only half that of the G (green) line. Absent. Therefore, in order to obtain a resolution equivalent to that of the G line, it is necessary to interpolate the primary color component signals of the pixel positions that do not exist from the primary color component signals of the same color on both sides. FIG. 12 is a block diagram showing a configuration of a color processing unit in the OCR showing the fourth embodiment of the present invention, and elements common to those in FIG. 10 are designated by common reference numerals.

【0027】この第4の実施形態のカラー処理部は、例
えば図4(2)に示すような画素配列のライン型カラー
イメージセンサによるカラーイメージ読取部2から出力
されるRB信号とG信号とを入力するセンサインタフェ
ース部21Aを有している。センサインタフェース部2
1Aの出力側は、RGB整列部22Aと補間信号生成部
23とに接続されている。RGB整列部22Aは、R,
G,Bの各信号rd、gr、blをサンプリングすると
ともに、ライン型カラーイメージセンサの画素配列ライ
ン上の偶数番目の画素と奇数番目の画素とを分離して出
力するものである。また、補間信号生成部23は、セン
サインタフェース部21Aから与えられるRB信号rb
から、R信号rdとB信号blを補間して補間R信号r
iと補間B信号biを生成するものである。RGB整列
部22Aと補間信号生成部23の出力側は、同一構成の
偶数画素処理部200と奇数画素処理部300とへ接続
されている。
The color processing unit of the fourth embodiment outputs the RB signal and the G signal output from the color image reading unit 2 of the line type color image sensor having a pixel arrangement as shown in FIG. 4B, for example. It has a sensor interface section 21A for inputting. Sensor interface unit 2
The output side of 1A is connected to the RGB alignment section 22A and the interpolation signal generation section 23. The RGB alignment unit 22A has R,
The G, B signals rd, gr, bl are sampled, and even-numbered pixels and odd-numbered pixels on the pixel array line of the line-type color image sensor are separately output. In addition, the interpolation signal generation unit 23 uses the RB signal rb supplied from the sensor interface unit 21A.
From the R signal rd and the B signal bl to interpolate the R signal r
i and the interpolation B signal bi. The output sides of the RGB alignment unit 22A and the interpolation signal generation unit 23 are connected to the even pixel processing unit 200 and the odd pixel processing unit 300 having the same configuration.

【0028】偶数画素処理部200は、ライン型カラー
イメージセンサでライン毎に読み取られた帳票上の画素
に対応する原色成分信号と補間信号生成部23で生成さ
れた補間信号のうち、偶数番目の画素に対応する信号の
処理を行う。奇数画素処理部300は奇数番目の画素に
対応する信号の処理を行うものである。偶数画素処理部
200は、図10のカラー処理部の色判定部31〜3
4、最大値検出部35、遅延回路36、色情報選択部4
0、ピーク検出部50−1〜50−3、ピーク最大値出
力部56、輝度レベル選択部57、レベル判定部60、
色情報処理部70、及び輝度信号選択部90とほぼ同様
の機能と構成を有するものとなっている。即ち、偶数画
素処理部200は、色判定部31e〜34e、最大値検
出部35e、遅延回路36e、色情報選択部40e、ピ
ーク検出部50−1e〜50−3e、ピーク最大値出力
部56e、輝度レベル選択部57e、レベル判定部60
e、色情報処理部70e、及び輝度信号選択部90eと
で、構成されている。そして、輝度信号選択部90eの
出力側は、データ切替部91へ接続されている。
The even-numbered pixel processing section 200 has an even-numbered pixel among primary color component signals corresponding to the pixels on the form read by the line-type color image sensor line by line and the interpolation signal generated by the interpolation signal generation section 23. The signal corresponding to the pixel is processed. The odd-numbered pixel processing unit 300 processes a signal corresponding to an odd-numbered pixel. The even-numbered pixel processing unit 200 includes the color determination units 31 to 3 of the color processing unit of FIG.
4, maximum value detector 35, delay circuit 36, color information selector 4
0, peak detection units 50-1 to 50-3, peak maximum value output unit 56, brightness level selection unit 57, level determination unit 60,
The color information processing unit 70 and the luminance signal selecting unit 90 have substantially the same functions and configurations. That is, the even-numbered pixel processing unit 200 includes the color determination units 31e to 34e, the maximum value detection unit 35e, the delay circuit 36e, the color information selection unit 40e, the peak detection units 50-1e to 50-3e, and the peak maximum value output unit 56e. Brightness level selection unit 57e, level determination unit 60
e, a color information processing unit 70e, and a luminance signal selection unit 90e. The output side of the luminance signal selection unit 90e is connected to the data switching unit 91.

【0029】奇数画素処理部300も偶数画素処理部2
00とそれぞれ同様の機能を有する色判定部31o〜3
4o、最大値検出部35o、遅延回路36o、色情報選
択部40o、ピーク検出部50−1o〜50−3o、ピ
ーク最大値出力部56o、輝度レベル選択部57o、レ
ベル判定部60o、色情報処理部70o、及び輝度信号
選択部90oとで、構成されている。そして、輝度信号
選択部90oの出力側は、データ切替部91へ接続され
ている。データ切替部91は、輝度信号選択部90eと
輝度信号選択部90oとから入力される輝度信号bwを
交互に切替えて出力するものである。データ切替部91
の出力側は、ピーク検出部95及び輝度信号補正部10
0へ接続されている。ピーク検出部95の出力側は、輝
度信号補正部100へ接続され、輝度信号補正部100
の出力側は、ドロップアウト処理部110へ接続されて
いる。
The odd pixel processing unit 300 and the even pixel processing unit 2 are also included.
00, the color determination units 31o to 3 each having the same function.
4o, maximum value detection unit 35o, delay circuit 36o, color information selection unit 40o, peak detection units 50-1o to 50-3o, peak maximum value output unit 56o, brightness level selection unit 57o, level determination unit 60o, color information processing The unit 70o and the luminance signal selection unit 90o are included. The output side of the brightness signal selection unit 90o is connected to the data switching unit 91. The data switching unit 91 alternately switches and outputs the brightness signal bw input from the brightness signal selection unit 90e and the brightness signal selection unit 90o. Data switching unit 91
The output side of the peak detection unit 95 and the luminance signal correction unit 10
0. The output side of the peak detection unit 95 is connected to the brightness signal correction unit 100, and the brightness signal correction unit 100 is connected.
The output side of is connected to the dropout processing unit 110.

【0030】図13は、図12のRGB整列部22Aの
構成を示すブロック図である。このRGB整列部22A
は、センサインタフェース部21Aから入力されるRB
信号rbを転送クロックclk1に同期して読み込むレ
ジスタ22aを有している。レジスタ22aの出力側は
レジスタ22bへ接続され、レジスタ22bの出力側は
レジスタ22cへ接続されている。更に、レジスタ22
bとレジスタ22cの出力側は、レジスタ22dへ接続
されている。これらのレジスタ22b,22c,22d
は、転送クロックclk1と逆の位相を有する転送クロ
ックclk2に同期して、それぞれ入力側の信号を読み
取って出力するものである。レジスタ22dの出力側に
は、奇数番目のR信号であるR3信号rd3とR1信号
rd1とが出力される。また、RB信号rbは、レジス
タ22eへ与えられ、レジスタ22eの出力側は、レジ
スタ22fへ接続されている。更に、レジスタ22eと
レジスタ22fの出力側は、レジスタ22gへ接続され
ている。これらのレジスタ22e,22f,22gは、
転送クロックclk2に同期して、それぞれ入力側の信
号を読み取って出力するものである。レジスタ22gの
出力側には、偶数番目のB信号であるB4信号bl4と
B2信号bl2とが出力される。
FIG. 13 is a block diagram showing the structure of the RGB alignment section 22A shown in FIG. This RGB alignment section 22A
Is the RB input from the sensor interface unit 21A.
It has a register 22a for reading the signal rb in synchronization with the transfer clock clk1. The output side of the register 22a is connected to the register 22b, and the output side of the register 22b is connected to the register 22c. Furthermore, the register 22
The output sides of b and the register 22c are connected to the register 22d. These registers 22b, 22c, 22d
Is to read and output signals on the input side in synchronization with a transfer clock clk2 having a phase opposite to that of the transfer clock clk1. The R3 signal rd3 and the R1 signal rd1 which are odd-numbered R signals are output to the output side of the register 22d. The RB signal rb is given to the register 22e, and the output side of the register 22e is connected to the register 22f. Further, the output sides of the registers 22e and 22f are connected to the register 22g. These registers 22e, 22f, 22g are
The signal on the input side is read and output in synchronization with the transfer clock clk2. The B4 signal bl4 and the B2 signal bl2, which are even-numbered B signals, are output to the output side of the register 22g.

【0031】一方、センサインタフェース部21Aから
入力されるG信号grは、レジスタ22hによって、転
送クロックclk1に同期して読み込まれる。レジスタ
22hの出力側はレジスタ22iへ接続され、レジスタ
22iの出力側はレジスタ22jへ接続されている。ま
た、G信号grはレジスタ22kへ入力される。レジス
タ22kの出力側はレジスタ22lへ接続され,レジス
タ22lの出力側はレジスタ22mへ接続されている。
これらのレジスタ22i,22j,22k,22l,2
2mは、転送クロックclk2に同期して、それぞれ入
力側の信号を読み取って出力するものである。これによ
り、レジスタ22jの出力側には、奇数番目のG信号で
あるG3信号gr3が出力され、レジスタ22mの出力
側には、偶数番目のG信号であるG2信号gr2が出力
される。
On the other hand, the G signal gr input from the sensor interface section 21A is read by the register 22h in synchronization with the transfer clock clk1. The output side of the register 22h is connected to the register 22i, and the output side of the register 22i is connected to the register 22j. Further, the G signal gr is input to the register 22k. The output side of the register 22k is connected to the register 22l, and the output side of the register 22l is connected to the register 22m.
These registers 22i, 22j, 22k, 22l, 2
2m is for reading and outputting the signal on the input side in synchronization with the transfer clock clk2. As a result, the output side of the register 22j outputs the G3 signal gr3 which is an odd-numbered G signal, and the output side of the register 22m outputs the G2 signal gr2 which is an even-numbered G signal.

【0032】図14は、図12の補間信号生成部23の
構成を示すブロック図である。この補間信号生成部23
は、センサインタフェース部21AからRB信号rbが
入力されるレジスタ23aを有している。レジスタ23
aの出力側はレジスタ23bへ接続され、レジスタ23
bの出力側はレジスタ23cへ接続されている。レジス
タ23a,23b,23cは、それぞれ転送クロックc
lk1の2倍の周波数の転送クロックclk3に同期し
て、入力側の信号を読み取って出力するものである。レ
ジスタ23aとレジスタ23cの出力側は、平均データ
作成部23dへ接続されている。平均データ作成部23
dは、2つの入力信号の平均値を計算して出力するもの
である。平均データ作成部23dの出力側は、レジスタ
23eとレジスタ23fへ接続されている。レジスタ2
3eの出力側はレジスタ23gへ接続され、レジスタ2
3fの出力側はレジスタ23hへ接続されている。レジ
スタ23fは、転送クロックclk1に同期して入力側
の信号を読み取って出力するものである。レジスタ23
e,23g,23hは、転送クロックclk2に同期し
て入力側の信号を読み取って出力するものである。レジ
スタ23gの出力側には補間された偶数番目のR信号r
iが出力され,レジスタ23hの出力側には補間された
奇数番目のB信号biが出力される。
FIG. 14 is a block diagram showing the structure of the interpolation signal generator 23 of FIG. This interpolation signal generation unit 23
Has a register 23a to which the RB signal rb is input from the sensor interface unit 21A. Register 23
The output side of a is connected to the register 23b, and the register 23b
The output side of b is connected to the register 23c. The registers 23a, 23b, and 23c respectively transfer clocks c
The signal on the input side is read and output in synchronization with a transfer clock clk3 having a frequency twice that of lk1. The output sides of the registers 23a and 23c are connected to the average data creation unit 23d. Average data creation unit 23
d is for calculating and outputting the average value of two input signals. The output side of the average data creation unit 23d is connected to the registers 23e and 23f. Register 2
The output side of 3e is connected to the register 23g, and the register 2
The output side of 3f is connected to the register 23h. The register 23f reads and outputs the signal on the input side in synchronization with the transfer clock clk1. Register 23
e, 23g, and 23h are for reading and outputting the signal on the input side in synchronization with the transfer clock clk2. On the output side of the register 23g, the interpolated even-numbered R signal r
i is output, and the interpolated odd-numbered B signal bi is output to the output side of the register 23h.

【0033】図15は、図13に示すRGB整列部22
Aと図14に示す補間信号生成部23の動作を説明する
ための図である。以下、これらの図13〜図15を参照
しつつ、図12のカラー処理部の動作を説明する。図2
のOCRのカラーイメージ読取部2から、センサインタ
フェース部21Aを介して、RGB整列部22AへRB
信号rb、G信号gr、及び転送クロックclk1,c
lk2が入力される。図13のRGB整列部22Aで
は、RB信号rbとG信号grを、転送クロックclk
1に同期してそれぞれレジスタ22a,22hへ読み込
み、転送クロックclk2に同期してそれぞれレジスタ
22e,レジスタ22kへ読み込む。レジスタ22b,
22c,22dは、レジスタ22aに読み込んだRB信
号rbを、転送クロックclk2に同期して時間的に整
列し、奇数番目のR信号(R3信号rd3及びR1信号
rd2)として出力する。同様に、レジスタ22eは、
読み込んだRB信号rbを偶数番目のB信号(B4信号
bl4及びB2信号bl2)として出力する。また、レ
ジスタ22hとレジスタ22kは、読み込んだG信号g
rを、それぞれ奇数番目のG信号(G3信号gr3)と
偶数番目のG信号(G2信号gr2)として出力する。
図15には、時刻t1,t2,…において転送クロック
clk1,clk2に同期して読み取られるRB信号,
G信号と、RGB整列部22Aで整列されて出力される
R3,R1,B4,B2,G3,G2の各信号の時間関
係が示されている。
FIG. 15 shows the RGB alignment section 22 shown in FIG.
It is a figure for demonstrating operation | movement of A and the interpolation signal production | generation part 23 shown in FIG. The operation of the color processing unit shown in FIG. 12 will be described below with reference to FIGS. 13 to 15. FIG.
RB from the OCR color image reading unit 2 to the RGB alignment unit 22A through the sensor interface unit 21A.
Signal rb, G signal gr, and transfer clocks clk1, c
lk2 is input. In the RGB alignment section 22A of FIG. 13, the RB signal rb and the G signal gr are transferred to the transfer clock clk.
The data is read into the registers 22a and 22h in synchronism with 1 and read into the registers 22e and 22k in synchronism with the transfer clock clk2. Register 22b,
22c and 22d time-align the RB signal rb read in the register 22a in synchronization with the transfer clock clk2 and output it as odd-numbered R signals (R3 signal rd3 and R1 signal rd2). Similarly, register 22e
The read RB signal rb is output as an even-numbered B signal (B4 signal bl4 and B2 signal bl2). In addition, the register 22h and the register 22k receive the read G signal g
r is output as an odd-numbered G signal (G3 signal gr3) and an even-numbered G signal (G2 signal gr2), respectively.
15, RB signals read in synchronization with transfer clocks clk1, clk2 at times t1, t2, ...
The time relationship between the G signal and the R3, R1, B4, B2, G3, and G2 signals aligned and output by the RGB alignment unit 22A is shown.

【0034】一方、図14の補間信号生成部23では、
RB信号rbを入力し、転送クロックclk1の2倍の
周波数を有する転送クロックclk3に同期して、レジ
スタ23aに読み込む。レジスタ23b,23cは、レ
ジスタ23aに読み込んだRB信号rbを、転送クロッ
クckl3によって時間的に整列し、平均データ作成部
23dへ出力する。平均データ作成部23dは、2つの
入力信号の平均値を次のように算出して出力する。 補間R信号=(R1+R3)/2 補間B信号=(B2+B4)/2 レジスタ23e,23f,23g,23hは、これらの
出力をRGB整列部22Aの出力と同一の時間となるよ
うに、転送クロックclk1,clk2でタイミングを
とり、補間R信号ri及び補間B信号biとして出力す
る。図15には、補間信号生成部23で整列されて出力
される補間R信号ri及び補間B信号biの時間関係が
示されている。例えば、図15の時刻t7において、R
GB整列部22Aと補間信号生成部23の出力側には、
偶数番目の画素信号として、(R1+R3)/2,G
2,B2の各信号ri2,gr2,bl2が出力され
る。また、奇数番目の画素信号として、R3,(B2+
B4)/2,G3の各信号rd3,bi3,gr3が出
力される。
On the other hand, in the interpolation signal generator 23 of FIG.
The RB signal rb is input and read into the register 23a in synchronization with the transfer clock clk3 having a frequency twice that of the transfer clock clk1. The registers 23b and 23c temporally align the RB signal rb read into the register 23a by the transfer clock ckl3, and output the RB signal rb to the average data creating unit 23d. The average data creation unit 23d calculates and outputs the average value of the two input signals as follows. Interpolated R signal = (R1 + R3) / 2 Interpolated B signal = (B2 + B4) / 2 Registers 23e, 23f, 23g, and 23h transfer clock clk1 so that these outputs have the same time as the output of RGB alignment unit 22A. , Clk2, and outputs as an interpolating R signal ri and an interpolating B signal bi. FIG. 15 shows the time relationship between the interpolated R signal ri and the interpolated B signal bi that are aligned and output by the interpolated signal generation unit 23. For example, at time t7 in FIG.
On the output side of the GB alignment unit 22A and the interpolation signal generation unit 23,
As an even-numbered pixel signal, (R1 + R3) / 2, G
The signals ri2, gr2 and bl2 of 2 and B2 are output. In addition, as odd-numbered pixel signals, R3, (B2 +
B4) / 2 and G3 signals rd3, bi3 and gr3 are output.

【0035】これらの偶数番目の画素信号は、図12の
カラー処理部の偶数画素処理部200へ与えられる。ま
た、奇数番目の画素信号は、奇数画素処理部300へ与
えられる。偶数画素処理部200と奇数画素処理部30
0の相違は、偶数画素処理部200はR信号rdの代わ
りに補正R信号riを使用し、奇数画素処理部300は
B信号blの代わりに補正B信号biを使用しているこ
とである。偶数画素処理部200の輝度信号選択部90
eから出力される輝度信号bwと、奇数画素処理部30
0の輝度信号選択部90oから出力される輝度信号bw
は、データ切替部91へ与えられる。データ切替部91
は、入力される2つの輝度信号bwを交互に切替えて、
ピーク検出部95及び輝度信号補正部100へ出力す
る。輝度信号補正部100は、ピーク検出部95から与
えられるピーク値peakを基に、入力された輝度信号
bwを補正してドロップアウト処理部110へ出力す
る。ドロップアウト処理部110は、色情報処理部70
から出力される属性切替信号atr及びカラー判定信号
colに基づき、当該画素がドロップアウトカラーか否
かを判定して、ドロップアウトカラーを除去し、その結
果をイメージデータimgとして図2のイメージメモリ
4へ出力する。
These even-numbered pixel signals are supplied to the even-numbered pixel processing section 200 of the color processing section of FIG. Further, the odd-numbered pixel signals are given to the odd-numbered pixel processing unit 300. Even pixel processing unit 200 and odd pixel processing unit 30
The difference of 0 is that the even pixel processing unit 200 uses the corrected R signal ri in place of the R signal rd, and the odd pixel processing unit 300 uses the corrected B signal bi in place of the B signal bl. Luminance signal selection unit 90 of the even pixel processing unit 200
The luminance signal bw output from e and the odd pixel processing unit 30
The brightness signal bw output from the brightness signal selection unit 90o of 0
Are given to the data switching unit 91. Data switching unit 91
Alternately switches between the two input luminance signals bw,
The signal is output to the peak detection unit 95 and the brightness signal correction unit 100. The brightness signal correction unit 100 corrects the input brightness signal bw based on the peak value peak given from the peak detection unit 95 and outputs the corrected brightness signal bw to the dropout processing unit 110. The dropout processing unit 110 includes a color information processing unit 70.
It is determined whether or not the pixel is a dropout color based on the attribute switching signal atr and the color determination signal col that are output from the dropout color, and the dropout color is removed. The result is used as the image data img in the image memory 4 of FIG. Output to.

【0036】この様に、この第4の実施形態では、赤,
緑,青の原色画素配列が2列のライン型カラーイメージ
センサを用いたOCRのカラー処理において、補間信号
生成部23を設けている。そして、R信号rd及びB信
号blが存在しない画素位置の信号を、その両隣のR信
号rd及びB信号blから補間して補間R信号ri及び
補間B信号biを生成する。これらの補間信号ri,b
iを正規のR,G,B信号rd,gr,blと同様に扱
い、ピーク検出部50−1〜50−3でピーク値pk1
〜pk3を検出し、レベル判定部60で入力信号レベル
の判定を行う。そして、その判定結果に基づき色情報選
択部40で色判定を行い、輝度信号選択部90で輝度信
号bwの選択を行う。このため、単色画素信号を使用す
る場合であっても、正しい色判定が可能となる。更に、
補間信号ri,biはイメージデータimgとしても使
用されるので、分解能を向上することが可能となり、文
字パターンをより忠実に再現できるという利点がある。
As described above, in the fourth embodiment, red,
An interpolation signal generation unit 23 is provided in OCR color processing using a line-type color image sensor having two rows of green and blue primary color pixel arrays. Then, the signal at the pixel position where the R signal rd and the B signal bl do not exist is interpolated from the R signal rd and the B signal bl on both sides thereof to generate an interpolated R signal ri and an interpolated B signal bi. These interpolated signals ri, b
i is treated in the same manner as the normal R, G, B signals rd, gr, bl, and the peak value pk1 is calculated by the peak detectors 50-1 to 50-3.
~ Pk3 is detected, and the level determination unit 60 determines the input signal level. Then, based on the determination result, the color information selection unit 40 performs color determination, and the brightness signal selection unit 90 selects the brightness signal bw. Therefore, correct color determination is possible even when using a single-color pixel signal. Furthermore,
Since the interpolation signals ri and bi are also used as the image data img, the resolution can be improved and the character pattern can be reproduced more faithfully.

【0037】なお、本発明は、上記実施形態に限定され
ず、種々の変形が可能である。この変形例としては、例
えば、次のようなものがある。 (a)図1、図9、図10、及び図12のカラー処理部
では、それぞれ4個の色判定部31〜34を用いている
が、これ以外の数の色判定部を用いてもよい。カラーイ
メージセンサから入力される色成分信号のレベルが細分
化されている場合は、色判定部の数を多くすることによ
り、より正確な判定をすることが可能となる。 (b)図12のカラー処理部では、赤と青の色信号を補
間しているが、カラーイメージセンサの画素配列に応じ
て他の色を補間することとしてもよい。 (c)図12のカラー処理部では、偶数番目の信号と奇
数番目の信号をそれぞれ偶数画素処理部200と奇数画
素処理部300とで別々に処理し、その後データ切替部
91で結合しているが、1つの処理部で処理を行うよう
にすることも可能である。この場合、各信号が偶数か奇
数かによって、入力する信号を切り替える回路を必要と
するが、処理部の重複を避けて簡素化することが可能と
なる。
The present invention is not limited to the above embodiment, and various modifications can be made. For example, there are the following modifications. (A) Each of the color processing units in FIGS. 1, 9, 10, and 12 uses four color determination units 31 to 34, but a different number of color determination units may be used. . When the level of the color component signal input from the color image sensor is subdivided, more accurate determination can be performed by increasing the number of color determination units. (B) In the color processing unit of FIG. 12, the red and blue color signals are interpolated, but other colors may be interpolated according to the pixel arrangement of the color image sensor. (C) In the color processing unit of FIG. 12, even-numbered signals and odd-numbered signals are separately processed by the even-numbered pixel processing unit 200 and the odd-numbered pixel processing unit 300, and then combined by the data switching unit 91. However, it is also possible to perform processing by one processing unit. In this case, although a circuit for switching the input signal is required depending on whether each signal is an even number or an odd number, it is possible to avoid the duplication of the processing units and simplify the processing.

【0038】[0038]

【発明の効果】以上詳細に説明したように、第1の発明
では、異なる基準値を用いる複数の色判定部と、入力さ
れる信号レベルのピーク値から入力信号レベルのクラス
を判定するレベル判定部とを設けている。これにより、
レベル判定部で判定されたクラスに対応する基準値を用
いる色判定部の判定結果に従って、入力される色成分信
号と輝度信号を選択することができる。このため、カラ
ーイメージセンサの出力レベルに影響されることなく、
安定した文字認識が可能になるという効果がある。第2
の発明では、第1の発明の構成に、選択された輝度信号
のピークを検出する第2のピーク検出部を付加したの
で、輝度信号補正をする補正信号と補正される輝度信号
の時間的なずれが無くなる。これにより、第1の発明の
効果に加えて、画素単位に正確な色判定と正確な輝度信
号補正が可能になるという効果がある。第3の発明で
は、第2の発明における第1のピーク検出部に代えて、
赤、緑、青の各成分信号のピーク値を検出する第1のピ
ーク検出部を設けたので、処理モードに応じたピーク値
を選択して使用することが可能である。これにより、第
2の発明よりも更に正確な色判定が可能となり、より正
確な文字認識ができるという効果がある。第4の発明で
は、第3の発明の構成に、原色成分信号を補間する補完
信号生成部を付加したので、疑似的に画素密度を増やす
ことが可能となる。これにより、第3の発明と同様の効
果に加えて、画素密度の少ないカラーイメージセンサを
使用した場合でも、分解能を向上させて正確な文字認識
が可能になるという効果がある。
As described in detail above, according to the first aspect of the invention, a plurality of color determining units that use different reference values and a level determining unit that determines the class of the input signal level from the peak value of the input signal level. Section is provided. This allows
The input color component signal and luminance signal can be selected according to the determination result of the color determination unit that uses the reference value corresponding to the class determined by the level determination unit. Therefore, without being affected by the output level of the color image sensor,
This has the effect of enabling stable character recognition. Second
In the invention, since the second peak detection unit for detecting the peak of the selected luminance signal is added to the configuration of the first invention, the correction signal for correcting the luminance signal and the temporal correction of the luminance signal to be corrected are performed. The gap disappears. As a result, in addition to the effect of the first invention, there is an effect that accurate color determination and accurate luminance signal correction can be performed in pixel units. In the third invention, in place of the first peak detector in the second invention,
Since the first peak detector that detects the peak values of the red, green, and blue component signals is provided, it is possible to select and use the peak value according to the processing mode. As a result, it is possible to perform more accurate color determination than the second aspect of the invention, and it is possible to perform more accurate character recognition. In the fourth invention, since the complementary signal generating unit for interpolating the primary color component signal is added to the configuration of the third invention, it is possible to increase the pixel density in a pseudo manner. As a result, in addition to the same effect as the third aspect of the invention, there is an effect that the resolution is improved and accurate character recognition is possible even when a color image sensor having a low pixel density is used.

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

【図1】本発明の第1の実施形態を示すOCRのカラー
処理部の構成を示すブロック図である。
FIG. 1 is a block diagram showing a configuration of a color processing unit of an OCR showing a first embodiment of the present invention.

【図2】従来のOCRの概略の構成を示すブロック図で
ある。
FIG. 2 is a block diagram showing a schematic configuration of a conventional OCR.

【図3】従来の図2のOCRのカラー処理部の構成を示
すブロック図である。
3 is a block diagram showing a configuration of a color processing unit of the conventional OCR of FIG.

【図4】ライン型カラーイメージセンサの画素配列パタ
ーンの例を示す図である。
FIG. 4 is a diagram showing an example of a pixel array pattern of a line type color image sensor.

【図5】従来の色判定方法の問題点を説明するための図
である。
FIG. 5 is a diagram for explaining a problem of the conventional color determination method.

【図6】図1のピーク検出部の構成を示すブロック図で
ある。
FIG. 6 is a block diagram showing a configuration of a peak detection unit in FIG.

【図7】帳票の読取り位置とピークリセット信号の関係
の一例を示す図である。
FIG. 7 is a diagram showing an example of a relationship between a reading position of a form and a peak reset signal.

【図8】図1のレベル判定部の処理の一例を示す説明図
である。
8 is an explanatory diagram illustrating an example of processing of a level determination unit in FIG.

【図9】本発明の第2の実施形態を示すOCRのカラー
処理部の構成を示すブロック図である。
FIG. 9 is a block diagram showing a configuration of a color processing unit of the OCR showing the second embodiment of the present invention.

【図10】本発明の第3の実施形態を示すOCRのカラ
ー処理部の構成を示すブロック図である。
FIG. 10 is a block diagram showing a configuration of a color processing unit of the OCR showing the third embodiment of the present invention.

【図11】図10のカラー処理部の効果を説明するため
の図である。
FIG. 11 is a diagram for explaining the effect of the color processing unit in FIG.

【図12】本発明の第4の実施形態を示すOCRのカラ
ー処理部の構成を示すブロック図である。
FIG. 12 is a block diagram showing a configuration of a color processing unit of an OCR showing a fourth embodiment of the present invention.

【図13】図12のRGB整列部の構成を示すブロック
図である。
13 is a block diagram showing a configuration of an RGB aligning unit in FIG.

【図14】図12の補間信号生成部の構成を示すブロッ
ク図である。
14 is a block diagram showing a configuration of an interpolation signal generation unit in FIG.

【図15】図13のRGB整列部と図14の補間信号生
成部の動作説明図である。
15 is an operation explanatory diagram of the RGB alignment unit of FIG. 13 and the interpolation signal generation unit of FIG.

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

1 帳票 23 補間信号生成部 31〜34 色判定部 35 最大値検出部 40 色情報選択部 50,50-1〜50-3,95 ピーク検出部 56 ピーク最大値出力部 57 輝度レベル選択部 60 レベル判定部 90 輝度信号選択部 100 輝度信号補正部 bcor 輝度補正信号 bi 補間B信号 bl B信号 blvl 輝度レベル値 bsel 輝度選択信号 bw 輝度信号 cl1〜cl4 色情報信号 col 色信号 csel 色情報選択信号 gr G信号 img イメージデータ max 最大値信号 mode モード選択信号 mxpk 最大ピーク値 rd R信号 ri 補間R信号 peak,pk1〜pk3 ピーク値 1 Form 23 Interpolation signal generation part 31 to 34 Color determination part 35 Maximum value detection part 40 Color information selection part 50, 50-1 to 50-3, 95 Peak detection part 56 Peak maximum value output part 57 Brightness level selection part 60 Level Judgment unit 90 Luminance signal selection unit 100 Luminance signal correction unit bcor Luminance correction signal bi Interpolation B signal bl B signal blvl Luminance level value bsel Luminance selection signal bw Luminance signal cl1 to cl4 Color information signal col Color signal csel Color information selection signal gr G Signal img image data max maximum value signal mode mode selection signal mxpk maximum peak value rd R signal ri interpolated R signal peak, pk1 to pk3 peak value

フロントページの続き (72)発明者 妹尾 康二 東京都港区虎ノ門1丁目7番12号 沖電気 工業株式会社内Front Page Continuation (72) Inventor Koji Senoo 1-7-12 Toranomon, Minato-ku, Tokyo Oki Electric Industry Co., Ltd.

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 帳票上に記載された文字を画素に分解し
て光学的に読取り、赤、緑、青の原色成分信号に分離し
て出力するカラーイメージ読取手段と、 前記各原色成分信号間の信号レベル差によって色判定を
行い、判定された赤、緑、青または無彩色の色成分信号
をイメージデータとして出力するカラー処理手段と、 前記イメージデータから、文字認識辞書に登録されてい
る登録パターンを参照して前記帳票上に記載された文字
を認識する認識手段とを、備えた光学式文字読取装置に
おいて、 前記カラー処理手段は、 前記信号レベル差に対してそれぞれ異なる基準値を用い
て色判定を行い、判定結果をそれぞれ色情報信号として
出力する複数の色判定部と、 前記各原色成分信号の中から信号レベルが最大の最大値
信号を検出して出力する最大値検出部と、 前記複数の色判定部から出力される色情報信号の中か
ら、色情報選択信号で選択されたものを色信号として出
力する色情報選択部と、 前記最大値信号の信号レベルのピークを検出し、ピーク
値として保持しかつ出力するピーク検出部と、 前記ピーク値を基に前記信号レベル差のクラスを判定
し、判定結果に応じて前記色情報選択信号を出力するレ
ベル判定部と、 前記色信号と処理モードに応じて与えられるモード選択
信号とに基づいて輝度選択信号を出力する色情報処理部
と、 前記輝度選択信号に基づいて前記各原色成分信号と前記
最大値信号の中から1つを選択して輝度信号として出力
する輝度信号選択部と、 前記ピーク値を基に前記輝度信号の信号レベルを補正し
てイメージデータを前記認識手段に出力する輝度信号補
正部とを、 備えたことを特徴とする光学式文字読取装置。
1. A color image reading means for decomposing characters written on a form into pixels, optically reading them, and separating and outputting to primary color component signals of red, green, and blue, and between the respective primary color component signals. Color processing means for performing color determination based on the signal level difference and outputting the determined color component signal of red, green, blue or achromatic color as image data, and registration from the image data registered in the character recognition dictionary. In an optical character reader comprising a recognition means for recognizing a character written on the form with reference to a pattern, the color processing means uses different reference values for the signal level difference. A plurality of color determination units that perform color determination and output the determination results as color information signals, respectively, and a maximum output that detects and outputs the maximum value signal with the maximum signal level from the primary color component signals. A value detection unit, a color information selection unit that outputs a color information signal selected by a color information selection signal from the color information signals output from the plurality of color determination units, and a signal level of the maximum value signal A peak detection unit that detects the peak of the signal and holds and outputs it as a peak value, and determines the class of the signal level difference based on the peak value and outputs the color information selection signal according to the determination result. Section, a color information processing section for outputting a luminance selection signal based on the color signal and a mode selection signal given according to the processing mode, and each of the primary color component signals and the maximum value signal based on the luminance selection signal. A luminance signal selecting section for selecting one from the above and outputting it as a luminance signal; and a luminance signal for correcting the signal level of the luminance signal based on the peak value and outputting image data to the recognizing means. Tadashibu Prefecture the optical character reading apparatus characterized by comprising.
【請求項2】 帳票上に記載された文字を画素に分解し
て光学的に読取り、赤、緑、青の原色成分信号として出
力するカラーイメージ読取手段と、 前記各原色成分信号間の信号レベル差によって色判定を
行い、判定された赤、緑、青または無彩色の色成分信号
をイメージデータとして出力するカラー処理手段と、 前記イメージデータから、文字認識辞書に登録されてい
る登録パターンを参照して前記帳票上に記載された文字
を認識する認識手段とを、備えた光学式文字読取装置に
おいて、 前記カラー処理手段は、 前記信号レベル差に対してそれぞれ異なる基準値を用い
て色判定を行い、判定結果をそれぞれ色情報信号として
出力する複数の色判定部と、 前記各原色成分信号の中から信号レベルが最大の最大値
信号を検出して出力する最大値検出部と、 前記複数の色判定部から出力される色情報信号の中か
ら、色情報選択信号で選択されたものを色信号として出
力する色情報選択部と、 前記最大値信号の信号レベルのピークを検出し、ピーク
値として保持しかつ出力する第1のピーク検出部と、 前記ピーク値を基に前記信号レベル差のクラスを判定
し、判定結果に応じて前記色情報選択信号を出力するレ
ベル判定部と、 前記色信号と処理モードに応じて与えられるモード選択
信号とに基づいて輝度選択信号を出力する色情報処理部
と、 前記輝度選択信号に基づいて前記各原色成分信号と前記
最大値信号の中から1つを選択して輝度信号として出力
する輝度信号選択部と、 前記輝度信号の信号レベルのピークを検出し、輝度補正
信号として保持しかつ出力する第2のピーク検出部と、 前記輝度補正信号を基に前記輝度信号の信号レベルを補
正してイメージデータを前記認識手段に出力する輝度信
号補正部とを、 備えたことを特徴とする光学式文字読取装置。
2. A color image reading means for separating characters written on a form into pixels and optically reading them and outputting them as red, green, and blue primary color component signals, and a signal level between the primary color component signals. A color processing unit that performs color determination based on the difference and outputs the determined red, green, blue, or achromatic color component signal as image data; and from the image data, refer to a registered pattern registered in a character recognition dictionary. Then, in the optical character reading device comprising a recognition unit for recognizing the characters written on the form, the color processing unit performs color determination using different reference values for the signal level difference. A plurality of color determination units that perform determination and output the determination results as color information signals, respectively, and a maximum value that detects and outputs the maximum value signal having the maximum signal level from the primary color component signals. An output unit, a color information selection unit that outputs a color information signal selected by a color information selection signal from among the color information signals output from the plurality of color determination units, and a signal level of the maximum value signal. A first peak detection unit that detects a peak, holds and outputs it as a peak value, and determines the class of the signal level difference based on the peak value, and outputs the color information selection signal according to the determination result. A level determination unit, a color information processing unit that outputs a luminance selection signal based on the color signal and a mode selection signal given according to the processing mode, and each of the primary color component signals and the maximum based on the luminance selection signal. A brightness signal selection unit that selects one of the value signals and outputs it as a brightness signal, and a second peak detection unit that detects the peak of the signal level of the brightness signal and holds and outputs it as a brightness correction signal. The luminance and a luminance signal correction section that outputs the image data to the recognizing means corrects the signal level of the luminance signal correction signal based on the optical character reader, characterized in that it includes.
【請求項3】 帳票上に記載された文字を画素に分解し
て光学的に読取り、赤、緑、青の原色成分信号として出
力するカラーイメージ読取手段と、 前記各原色成分信号間の信号レベル差によって色判定を
行い、判定された赤、緑、青または無彩色の色成分信号
をイメージデータとして出力するカラー処理手段と、 前記イメージデータから、文字認識辞書に登録されてい
る登録パターンを参照して前記帳票上に記載された文字
を認識する認識手段とを、備えた光学式文字読取装置に
おいて、 前記カラー処理手段は、 前記信号レベル差に対してそれぞれ異なる基準値を用い
て色判定を行い、判定結果をそれぞれ色情報信号として
出力する複数の色判定部と、 前記各原色成分信号の中から信号レベルが最大の最大値
信号を検出して出力する最大値検出部と、 前記複数の色判定部から出力される色情報信号の中か
ら、色情報選択信号で選択されたものを色信号として出
力する色情報選択部と、 前記赤、緑、青の各原色成分信号毎に信号レベルのピー
クを検出し、それぞれピーク値として保持しかつ出力す
る第1のピーク検出部と、 前記第1のピーク検出部から出力される複数のピーク値
の中から最大のものを最大ピーク値として出力するピー
ク最大値出力部と、 前記第1のピーク検出部から出力される複数のピーク値
と前記最大ピーク値の中から、処理モードに応じて与え
られるモード選択信号によって1つを選択して輝度レベ
ル値として出力する輝度レベル選択部と、 前記輝度レベル値を基に前記信号レベル差のクラスを判
定し、判定結果に応じて前記色情報選択信号を出力する
レベル判定部と、 前記色信号と前記モード選択信号とに基づいて輝度選択
信号を出力する色情報処理部と、 前記輝度選択信号に基づいて前記各原色成分信号と前記
最大値信号の中から1つを選択して輝度信号として出力
する輝度信号選択部と、 前記輝度信号の信号レベルのピークを検出し、輝度補正
信号として保持しかつ出力する第2のピーク検出部と、 前記輝度補正信号を基に前記輝度信号の信号レベルを補
正してイメージデータを前記認識手段に出力する輝度信
号補正部とを、 備えたことを特徴とする光学式文字読取装置。
3. A color image reading means for separating characters written on a form into pixels, optically reading them, and outputting them as red, green, and blue primary color component signals, and a signal level between the respective primary color component signals. A color processing unit that performs color determination based on the difference and outputs the determined red, green, blue, or achromatic color component signal as image data; and from the image data, refer to a registered pattern registered in a character recognition dictionary. Then, in the optical character reading device comprising a recognition unit for recognizing the characters written on the form, the color processing unit performs color determination using different reference values for the signal level difference. A plurality of color determination units that perform determination and output the determination results as color information signals, respectively, and a maximum value that detects and outputs the maximum value signal having the maximum signal level from the primary color component signals. An output unit, a color information selection unit that outputs a color information signal selected by a color information selection signal from among the color information signals output from the plurality of color determination units, and each of the red, green, and blue A first peak detection unit that detects a peak of a signal level for each primary color component signal, holds and outputs each as a peak value, and a maximum peak value among a plurality of peak values output from the first peak detection unit A peak-maximum value output section that outputs a thing as a maximum peak value; and a plurality of peak values output from the first peak detection section and the maximum peak value, depending on a mode selection signal given according to a processing mode. A brightness level selection unit that selects one and outputs it as a brightness level value, and a level that determines the class of the signal level difference based on the brightness level value and outputs the color information selection signal according to the determination result. A color determination section, a color information processing section that outputs a luminance selection signal based on the color signal and the mode selection signal, and one of the primary color component signals and the maximum value signal based on the luminance selection signal. A luminance signal selecting section for selecting one of the luminance signals and outputting it as a luminance signal; a second peak detecting section for detecting the peak of the signal level of the luminance signal and holding and outputting it as a luminance correction signal; An optical character reading device, comprising: a luminance signal correction unit that corrects the signal level of the luminance signal based on the output and outputs image data to the recognition unit.
【請求項4】 帳票上に記載された文字を画素に分解し
て光学的に読取り、赤、緑、青の原色成分信号として出
力するカラーイメージ読取手段と、 前記各原色成分信号間の信号レベル差によって色判定を
行い、判定された赤、緑、青または無彩色の色成分信号
をイメージデータとして出力するカラー処理手段と、 前記イメージデータから、文字認識辞書に登録されてい
る登録パターンを参照して前記帳票上に記載された文字
を認識する認識手段とを、備えた光学式文字読取装置に
おいて、 前記カラー処理手段は、 前記原色成分信号が存在しない画素位置の原色成分信号
を、その画素位置の両隣の同一色の原色成分信号の信号
レベルから補間して補間原色成分信号を生成する補間信
号生成部と、 前記信号レベル差に対してそれぞれ異なる基準値を用い
て色判定を行い、判定結果をそれぞれ色情報信号として
出力する複数の色判定部と、 前記各原色成分信号の中から信号レベルが最大の最大値
信号を検出して出力する最大値検出部と、 前記複数の色判定部から出力される色情報信号の中か
ら、色情報選択信号で選択されたものを色信号として出
力する色情報選択部と、 前記赤、緑、青の各原色成分信号及び前記補間原色成分
信号毎に信号レベルのピークを検出し、それぞれピーク
値として保持しかつ出力する第1のピーク検出部と、 前記第1のピーク検出部から出力される複数のピーク値
の中から最大のものを最大ピーク値として出力するピー
ク最大値出力部と、 前記第1のピーク検出部から出力される複数のピーク値
と前記最大ピーク値の中から、処理モードに応じて与え
られるモード選択信号によって1つを選択して輝度レベ
ル値として出力する輝度レベル選択部と、 前記輝度レベル値を基に前記信号レベル差のクラスを判
定し、判定結果に応じて前記色情報選択信号を出力する
レベル判定部と、 前記色信号と前記モード選択信号とに基づいて輝度選択
信号を出力する色情報処理部と、 前記輝度選択信号に基づき、前記各原色成分信号の中か
らまたは該各原色成分信号及び前記補間原色成分信号の
中から1つを選択して輝度信号として出力する輝度信号
選択部と、 前記輝度信号の信号レベルのピークを検出し、輝度補正
信号として保持しかつ出力する第2のピーク検出部と、 前記輝度補正信号を基に前記輝度信号の信号レベルを補
正してイメージデータを前記認識手段に出力する輝度信
号補正部とを、 備えたことを特徴とする光学式文字読取装置。
4. A color image reading means for separating characters written on a form into pixels and optically reading them and outputting them as primary color component signals of red, green and blue, and a signal level between the respective primary color component signals. A color processing unit that performs color determination based on the difference and outputs the determined red, green, blue, or achromatic color component signal as image data; and from the image data, refer to a registered pattern registered in a character recognition dictionary. Then, in the optical character reading device comprising a recognition means for recognizing the characters described on the form, the color processing means, the primary color component signal of the pixel position where the primary color component signal does not exist, the pixel Interpolation signal generators that interpolate from the signal levels of the primary color component signals of the same color on both sides of the position to generate interpolated primary color component signals, and different standards for the signal level difference. A plurality of color determination units that perform color determination using the above, and output the determination results as color information signals, and a maximum value detection that detects and outputs a maximum value signal with a maximum signal level from each of the primary color component signals. Section, a color information selection section that outputs, as a color signal, one selected by a color information selection signal from among the color information signals output from the plurality of color determination sections, each of the primary colors of red, green, and blue. A first peak detection unit that detects a peak of a signal level for each of the component signal and the interpolation primary color component signal, holds and outputs each as a peak value, and a plurality of peak values output from the first peak detection unit Of the maximum peak value output unit that outputs the maximum value as the maximum peak value from among the plurality of peak values and the maximum peak value output from the first peak detection unit, depending on the processing mode. To be A brightness level selection unit that selects one by a mode selection signal and outputs it as a brightness level value; a class of the signal level difference is determined based on the brightness level value; and the color information selection signal is determined according to the determination result. A level determination unit for outputting, a color information processing unit for outputting a luminance selection signal based on the color signal and the mode selection signal, and based on the luminance selection signal, from among the respective primary color component signals or the respective primary colors A luminance signal selecting section that selects one of the component signal and the interpolation primary color component signal and outputs it as a luminance signal; a peak of the signal level of the luminance signal that is detected and held and output as a luminance correction signal; And a brightness signal correction unit for correcting the signal level of the brightness signal based on the brightness correction signal and outputting image data to the recognition unit. Optical character reader according to claim.
【請求項5】 前記レベル判定部で判定する前記信号レ
ベル差のクラスの数は前記複数の色判定部の数と同数と
し、該レベル判定部は該複数の色判定部が色判定に用い
るそれぞれの基準値に応じて該クラスを判定することを
特徴とする請求項1、2、3、または4記載の光学式文
字読取装置。
5. The number of classes of the signal level difference determined by the level determination unit is the same as the number of the plurality of color determination units, and the level determination unit uses each of the plurality of color determination units for color determination. 5. The optical character reader according to claim 1, wherein the class is determined according to the reference value of.
JP07623596A 1996-03-29 1996-03-29 Optical character reader Expired - Fee Related JP3308444B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP07623596A JP3308444B2 (en) 1996-03-29 1996-03-29 Optical character reader

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP07623596A JP3308444B2 (en) 1996-03-29 1996-03-29 Optical character reader

Publications (2)

Publication Number Publication Date
JPH09265510A true JPH09265510A (en) 1997-10-07
JP3308444B2 JP3308444B2 (en) 2002-07-29

Family

ID=13599516

Family Applications (1)

Application Number Title Priority Date Filing Date
JP07623596A Expired - Fee Related JP3308444B2 (en) 1996-03-29 1996-03-29 Optical character reader

Country Status (1)

Country Link
JP (1) JP3308444B2 (en)

Also Published As

Publication number Publication date
JP3308444B2 (en) 2002-07-29

Similar Documents

Publication Publication Date Title
EP0388833B1 (en) Optical recording system
US6130661A (en) Seamless parallel neighborhood process halftoning
US4533942A (en) Method and apparatus for reproducing an image which has a coarser resolution than utilized in scanning of the image
US5014129A (en) Video signal processing apparatus for converting composite image input signals into output signals having increased scan lines
US5592310A (en) Image processing method and apparatus
JP3308444B2 (en) Optical character reader
US6674547B1 (en) Image processing apparatus for performing image formation using signals obtained by pulse-width modulating an image signal by a plurality of modulating methods
CA2017600C (en) Apparatus for superimposing character patterns in accordance with dot-matrix on video signals
US6064761A (en) Near black under color removal
US6775418B1 (en) Image processing device and processing method
JPH04358288A (en) Reducing printer
JP3260801B2 (en) Image processing apparatus, test method therefor, and determination circuit
JP3880234B2 (en) Image forming apparatus and image forming method
JP4141082B2 (en) Printed matter inspection method and apparatus
JPH0369230B2 (en)
JP2000341549A (en) Color image processor
JP3308451B2 (en) Optical character reader
JPH04122991A (en) Composing method for image and character
JPH08129356A (en) Display device
JP3669008B2 (en) Image processing apparatus and image processing method
JP2618894B2 (en) Image signal processing device
JP2000221931A (en) Image display method
JPH0727451B2 (en) Video hardcopy device
JP2001078016A (en) Picture processor
JP2959574B2 (en) Image processing device

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20020507

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080517

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090517

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100517

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100517

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110517

Year of fee payment: 9

LAPS Cancellation because of no payment of annual fees