JPH10283522A - Shading correction method of linear image sensor - Google Patents

Shading correction method of linear image sensor

Info

Publication number
JPH10283522A
JPH10283522A JP9103916A JP10391697A JPH10283522A JP H10283522 A JPH10283522 A JP H10283522A JP 9103916 A JP9103916 A JP 9103916A JP 10391697 A JP10391697 A JP 10391697A JP H10283522 A JPH10283522 A JP H10283522A
Authority
JP
Japan
Prior art keywords
level
value
pixel
image sensor
turned
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP9103916A
Other languages
Japanese (ja)
Inventor
Tatsuya Chiba
龍也 千葉
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.)
Musashi Engineering Co Ltd
Hitachi High Tech Corp
Original Assignee
Musashi Engineering Co Ltd
Hitachi Electronics Engineering 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 Musashi Engineering Co Ltd, Hitachi Electronics Engineering Co Ltd filed Critical Musashi Engineering Co Ltd
Priority to JP9103916A priority Critical patent/JPH10283522A/en
Publication of JPH10283522A publication Critical patent/JPH10283522A/en
Pending legal-status Critical Current

Links

Landscapes

  • Facsimile Scanning Arrangements (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Inspection Of Paper Currency And Valuable Securities (AREA)
  • Image Input (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a method which does not need to adjust an offset level that corresponds to the offset charge value of an image sensor when a light source is turned off and also automates shading correction. SOLUTION: A reference white level of each pixel for one line that corresponds to reference white paper which becomes a reference is read and preliminarily stored in line memory part 51 when a light source is turned on, and next, an offset level for one line that corresponds to an offset charge value of each pixel of an image sensor 1 is read and preliminarily stored when the light source is turned off after the power source is turned on. Here, a correction coefficient value of each pixel is successively calculated based on the reference white level, the offset level and a white level correction target value that is preliminarily set and stored for one line. Next, an image on sheet paper one line each is read when the light source is truned on in a normal operation, the offset level is subtracted from each image level and correction value of each pixel is acquired by multiplying subtraction result value by the correction coefficient value.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、シェーディング補
正を自動化することができるイメージセンサのシェーデ
ィング補正方法に関し、例えば紙幣判別装置等への応用
に適したものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a shading correction method for an image sensor capable of automating shading correction, and is suitable for application to, for example, a bill discriminating apparatus.

【0002】[0002]

【従来の技術】従来の画像読取装置においては、光源か
らの光を、読取対象画像が記載されている紙葉上に照射
し、その反射光または透過光をイメージセンサに入力
し、該紙葉上の画像情報をアナログビデオ信号に光電変
換して出力する。次に、アナログビデオ信号はA/D変
換されてデジタル値に変換された後に、シェーディング
補正、ピークレベル補正等の処理を施される。ここで、
シェーディング補正、ピーク補正等の処理は、紙葉上の
画像読み取り開始時に白基準となる白板の反射光に基づ
いて各係数を決定するようにしている。また、従来の画
像読取装置においては、紙葉から画像読取を行うとき
に、読取開始直後に各紙葉毎に該紙葉の白基準の補正を
行っている。このとき、紙葉の先端を検出した後に、光
源を点灯する。次に、イメージセンサが白基準補正用の
白板から反射光または透過光を読み込み、この白基準に
基づいてシェーディング補正を行っている。
2. Description of the Related Art In a conventional image reading apparatus, light from a light source is radiated onto a sheet on which an image to be read is described, and reflected light or transmitted light is input to an image sensor, and the light is transmitted to the image sensor. The above image information is photoelectrically converted into an analog video signal and output. Next, after the analog video signal is A / D converted and converted into a digital value, processing such as shading correction and peak level correction is performed. here,
In the processing such as the shading correction and the peak correction, each coefficient is determined based on the reflected light of the white plate serving as the white reference at the start of the image reading on the paper sheet. Further, in the conventional image reading apparatus, when reading an image from a sheet, the white reference of the sheet is corrected for each sheet immediately after the reading is started. At this time, after detecting the leading end of the sheet, the light source is turned on. Next, the image sensor reads reflected light or transmitted light from a white plate for white reference correction, and performs shading correction based on the white reference.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、LED
アレイを点灯した場合には、イメージセンサの光量ムラ
や、光源の光量ムラや、セルホックレンズのムラ等に起
因して、イメージセンサの出力レベルにムラができてい
た。一方、LEDアレイを消灯した場合には、完全に暗
いときの黒レベルが特有のオフセット値を有して出力さ
れるので、黒レベルに対応させてオフセット調整を必要
としていた。本発明は、上記に鑑みてなされたもので、
その目的としては、光源消灯時のイメージセンサのオフ
セット電荷値に対応するオフセットレベルの調整を不要
にすることができ、また、シェーディング補正を自動化
することができるイメージセンサのシェーディング補正
方法を提供することにある。
SUMMARY OF THE INVENTION However, LEDs
When the array was turned on, the output level of the image sensor was uneven due to the uneven light amount of the image sensor, the uneven light amount of the light source, the unevenness of the cell hook lens, and the like. On the other hand, when the LED array is turned off, the black level when it is completely dark is output with a specific offset value, so that it is necessary to perform offset adjustment corresponding to the black level. The present invention has been made in view of the above,
An object of the present invention is to provide an image sensor shading correction method that can eliminate the need for adjusting an offset level corresponding to an offset charge value of an image sensor when a light source is turned off, and that can automate shading correction. It is in.

【0004】[0004]

【課題を解決するための手段】本発明は、光源光を紙葉
に照射してイメージセンサを用いて読み取りA/D変換
して量子化し、該読取値を出力する画像読取装置におい
て、前記光源点灯時に、基準となる基準白紙に対応する
1ライン分の各画素毎の基準白レベルを読み取り予め記
憶する白レベル読取工程と、電源投入後の前記光源消灯
時に、前記イメージセンサの各画素毎のオフセット電荷
値に対応する1ライン分のオフセットレベルを読み取り
予め記憶するオフセットレベル読取工程と、前記基準白
レベルと、前記オフセットレベルと、予め設定してある
白レベル補正目標値とに基づいて画素毎の補正係数値を
順次に算出して1ライン分記憶する補正係数値算出工程
と、通常動作での前記光源点灯時に、紙葉上の画像イメ
ージを1ライン毎に読み取り各画像レベルから前記オフ
セットレベルを減算し、該減算結果値に前記補正係数値
を乗算して各画素毎の補正値を得る画像レベル補正工程
とを有することを要旨とする。
According to the present invention, there is provided an image reading apparatus which irradiates a sheet with light from a light source, reads and A / D converts the light using an image sensor, quantizes the read light, and outputs the read value. At the time of lighting, a white level reading step of reading a reference white level of each pixel corresponding to one line corresponding to a reference white sheet as a reference and storing the reference white level in advance, and at the time of turning off the light source after power-on, for each pixel of the image sensor. An offset level reading step of reading and storing in advance an offset level for one line corresponding to the offset charge value; and for each pixel based on the reference white level, the offset level, and a preset white level correction target value. A correction coefficient value calculating step of sequentially calculating the correction coefficient values for each line and storing the correction coefficient value for one line; By subtracting the offset level from the read each image level, and summarized in that and an image level correcting step of obtaining a correction value for each pixel by multiplying the correction coefficient value to the subtraction result value.

【0005】[0005]

【発明の実施の形態】以下、本発明の実施の形態を図面
を参照して説明する。図1はイメージセンサ1の構成を
示す図である。図1に示すように、イメージセンサ1
は、ライン状に例えば1048個の光電変換素子13が
並ぶように構成されている。光電変換素子13に蓄積さ
れた電荷はシフトゲート19,21を介して、シフトパ
ルスによって偶数画素のシフトレジスタ15と奇数画素
のシフトレジスタ17に移される。それぞれのシフトレ
ジスタ15,17に移された電荷は、転送パルスによっ
て順次に出力ゲート23に送出される。出力ゲート23
からの出力は、P1,P2,P3……,P10のように
奇数番目素子の出力と、偶数番目素子の出力が交互に選
択されて出力される。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a diagram illustrating a configuration of the image sensor 1. As shown in FIG.
Is configured such that, for example, 1048 photoelectric conversion elements 13 are arranged in a line. The charges accumulated in the photoelectric conversion element 13 are transferred to the shift register 15 for even-numbered pixels and the shift register 17 for odd-numbered pixels via shift gates 19 and 21 by a shift pulse. The charges transferred to the respective shift registers 15 and 17 are sequentially sent to the output gate 23 by a transfer pulse. Output gate 23
, The outputs of the odd-numbered elements and the outputs of the even-numbered elements are alternately selected and output like P1, P2, P3,..., P10.

【0006】図2は本発明を適用した紙幣判別装置31
の一例を示す図である。図2に示すように、紙幣判別装
置31の光学系では、光源33から照射された照射光を
紙葉37で反射させ、紙葉37からの反射光をセルホッ
クレンズアレイ35を介して集光させた後に、イメージ
センサ1で各画素毎に光電変換素子13で電荷を蓄積さ
せるように構成されている。光源33は、紙葉37に照
射光を供給する機能を有するLEDアレイや蛍光管等が
一般的に用いられている。LEDアレイは、LED素子
を例えば30個程度に主走査方向に配置して構成される
ため、蛍光管に比較して光量ムラが目立つ反面、装置の
ローコスト化に不可欠な部品である。
FIG. 2 shows a bill discriminating apparatus 31 to which the present invention is applied.
It is a figure showing an example of. As shown in FIG. 2, in the optical system of the banknote discriminating device 31, the irradiation light emitted from the light source 33 is reflected by the paper leaf 37, and the reflected light from the paper leaf 37 is condensed via the cell hook lens array 35. After that, the image sensor 1 is configured to accumulate electric charges in the photoelectric conversion element 13 for each pixel. As the light source 33, an LED array or a fluorescent tube having a function of supplying irradiation light to the paper sheet 37 is generally used. Since the LED array is configured by arranging about 30 LED elements in the main scanning direction, for example, the light amount unevenness is more conspicuous than that of a fluorescent tube, but is an indispensable component for reducing the cost of the apparatus.

【0007】なお、本発明はイメージスキャナを有する
画像読取装置に適用可能であり、スキャナの形態として
は、例えば原稿搬送形スキャナや原稿台移動形スキャナ
やフラットベッド形スキャナや手動形スキャナ等が普及
しているが、いずれのスキャナ形態を用いた場合にも、
本発明に係るリニアイメージセンサのシェーディング補
正方法が適応可能であることはいうまでもない。一方、
紙幣判別装置31の機械系では、モータ制御部47から
出力される駆動パルスを受けたステッピングモータ39
が1ステップ回転する都度、ベルト41を介してこの回
転がローラ43に伝達され、ローラ43の回転に応じて
紙葉37が搬送される。なお、ローラ45a,45b,
45cは、ローラ43の回転に追随して紙葉37を搬送
するように構成された紙葉37の搬送を補助するための
機構であるため、ここではその説明及び図示を省略す
る。
The present invention is applicable to an image reading apparatus having an image scanner, and as a form of the scanner, for example, a document transport type scanner, a document table moving type scanner, a flat bed type scanner, a manual type scanner and the like are widely used. However, no matter which scanner configuration is used,
It goes without saying that the shading correction method for a linear image sensor according to the present invention is applicable. on the other hand,
In the mechanical system of the bill discriminating device 31, a stepping motor 39 receiving a drive pulse output from the motor control unit 47
Each time is rotated by one step, this rotation is transmitted to the roller 43 via the belt 41, and the paper sheet 37 is conveyed according to the rotation of the roller 43. The rollers 45a, 45b,
Reference numeral 45c denotes a mechanism configured to convey the paper sheet 37 following the rotation of the roller 43 and to assist the conveyance of the paper sheet 37, so that the description and illustration thereof are omitted here.

【0008】次に、紙幣判別装置31の電子回路系の構
成を説明する。図2において、A/D変換器49は、イ
メージセンサ1で各画素毎に光電変換された電荷量を表
す出力信号(アナログ)にアナログ/ディジタル変換を
施して出力レベル(ディジタル)に変換する。A/D変
換器49には、入力されるアナログ信号をどの程度のデ
ィジタル値に変換するかを決定するための基準値VREF
+,VREF-が入力されている。ラインメモリ部51は、
調整モード時にのみ書き換えられるメモリであり、常
時、基準になる白紙の各画素毎の出力レベルVWiが記憶
されている。また、ラインメモリ部51には、バッテリ
53によってバックアップされているため、装置の電源
断時にも記憶内容な保持されている。
Next, the configuration of the electronic circuit system of the bill discriminating device 31 will be described. In FIG. 2, an A / D converter 49 performs analog / digital conversion on an output signal (analog) representing the amount of charge photoelectrically converted for each pixel by the image sensor 1 to convert the output signal into an output level (digital). The A / D converter 49 has a reference value VREF for determining how much the input analog signal is to be converted into a digital value.
+, VREF- are input. The line memory unit 51 includes:
This memory is rewritten only in the adjustment mode, and always stores an output level VWi for each pixel of a blank white paper as a reference. In addition, since the line memory unit 51 is backed up by the battery 53, the stored contents are retained even when the apparatus is turned off.

【0009】CPU部55は、内部ROMに記憶された
制御プログラムに従って装置全体を制御するとともに、
シェーディング補正に係る諸演算を実行する。RAM部
57は、電源投入時にイメージセンサ1から取り込まれ
た画素毎の黒レベルVDi、シェーディング補正を行うた
めの補正係数Ki を記憶する揮発性メモリである。デュ
アルポートRAM部59は、イメージセンサ1から取り
込まれた画素毎の出力レベルVi にシェーディング補正
を施した後の結果である補正出力Vi ´を記憶するとと
もに、ホストコンピュータ側のインターフェースと接続
して高速転送を可能にするために相方向からの読み書き
を可能にするためのバッファメモリである。
The CPU 55 controls the entire apparatus in accordance with a control program stored in an internal ROM.
Performs various operations related to shading correction. The RAM unit 57 is a volatile memory that stores a black level VDi for each pixel taken from the image sensor 1 when the power is turned on, and a correction coefficient Ki for performing shading correction. The dual-port RAM unit 59 stores a correction output Vi 'obtained as a result of performing shading correction on the output level Vi of each pixel taken in from the image sensor 1 and connects to an interface on the host computer side for high-speed operation. It is a buffer memory for enabling reading and writing from each direction to enable transfer.

【0010】モータ制御部47は、ステッピングモータ
39を1ステップ毎に回転させるための駆動パルスを出
力する。SW1は、LEDアレイ33に電源Vccを供給
して点灯するためのスイッチであり、CPU部55によ
って断続制御される。次に、図2及び図3を参照しつ
つ、イメージセンサ1のシェーディング補正方法につい
て説明する。なお、図3にはイメージセンサ1の各画素
の出力レベルが示されている。まず、第1の工程は、装
置調整時に白レベルを読み取るための白レベル読取モー
ドである。紙幣判別装置31の開口部61から紙葉37
として基準白紙を挿入すると、ローラ43の回転に従っ
て基準白紙は装置内部へと順次に搬送される。この時、
CPU部55からは光源33を点灯するためのON信号
がSW1に加えられて、光源33が点灯する。次に、イ
メージセンサ1は、図3(ア)に示すように、各画素毎
に基準白紙の電荷量に対応する出力信号を出力する。A
/D変換器49では、イメージセンサ1から出力される
出力信号に順次にA/D変換を施して量子化し、画像デ
ータバス50を介してラインメモリ51に1ライン分基
準白紙の白レベルVWiを記憶する。なお、ラインメモリ
部51はバッテリ53によってバックアップされている
ので、電源切断時にも記憶内容を記憶しているものであ
る。
The motor control unit 47 outputs a drive pulse for rotating the stepping motor 39 for each step. SW <b> 1 is a switch for supplying power Vcc to the LED array 33 to turn on the LED array 33, and is intermittently controlled by the CPU 55. Next, a shading correction method for the image sensor 1 will be described with reference to FIGS. FIG. 3 shows the output level of each pixel of the image sensor 1. First, the first step is a white level reading mode for reading a white level at the time of adjusting the apparatus. From the opening 61 of the bill discriminating device 31, the paper 37
When the reference blank paper is inserted, the reference blank paper is sequentially conveyed into the apparatus according to the rotation of the roller 43. At this time,
An ON signal for turning on the light source 33 is applied to SW1 from the CPU unit 55, and the light source 33 is turned on. Next, as shown in FIG. 3A, the image sensor 1 outputs an output signal corresponding to the charge amount of the reference white paper for each pixel. A
In the / D converter 49, the output signal output from the image sensor 1 is sequentially subjected to A / D conversion and quantized, and the white level VWi of the reference blank sheet for one line is stored in the line memory 51 via the image data bus 50. Remember. Since the line memory unit 51 is backed up by the battery 53, the memory contents are stored even when the power is turned off.

【0011】第2の工程は、電源投入時に、黒レベルを
読み取るための黒レベル読取モードである。CPU部5
5からは光源33を消灯するためのOFF信号がSW1
に加えられて、光源33が消灯状態になる。次に、イメ
ージセンサ1は、図3(イ)に示すように、各画素毎に
消灯時の電荷量に対応する出力信号を出力する。A/D
変換器49では、イメージセンサ1から出力される出力
信号に順次にA/D変換を施して量子化し、画像データ
バス50を介してRAM部57に1ライン分黒レベルV
Diを記憶する。次に、第3の工程は、装置を用いて補正
係数Ki を算出するための補正係数算出モードである。
CPU部55は、ラインメモリ部51に記憶されている
白レベルVWi、RAM部57に記憶されている黒レベル
VDi、予め設定してある白レベル補正目標値V0 に基づ
いて画素毎の補正係数Ki を以下のように順次に計算
し、その計算結果をRAM部57に記憶する。 Ki =V0 /(VWi−VDi) (数1) (0≦i ≦192)
The second step is a black level reading mode for reading a black level when the power is turned on. CPU unit 5
5 is an SW1 signal for turning off the light source 33.
And the light source 33 is turned off. Next, as shown in FIG. 3A, the image sensor 1 outputs, for each pixel, an output signal corresponding to the charge amount when the light is turned off. A / D
In the converter 49, the output signal output from the image sensor 1 is sequentially subjected to A / D conversion and quantized, and the black level V for one line is stored in the RAM unit 57 via the image data bus 50.
Remember Di. Next, the third step is a correction coefficient calculation mode for calculating the correction coefficient Ki using the apparatus.
The CPU 55 calculates a correction coefficient Ki for each pixel based on the white level VWi stored in the line memory 51, the black level VDi stored in the RAM 57, and a preset white level correction target value V0. Are sequentially calculated as follows, and the calculation result is stored in the RAM unit 57. Ki = V0 / (VWi-VDi) (Equation 1) (0≤i≤192)

【0012】第4の工程は、装置を用いて読み取り画素
毎にシェーディング補正を施して出力する通常動作モー
ドである。通常動作時に、紙幣判別装置31の開口部6
1から紙葉37として文字または画像が記入された紙葉
を挿入すると、ローラ43の回転に従って紙葉37は装
置内部へと順次に搬送される。この時、CPU部55か
らは光源33を点灯するためのON信号がSW1に加え
られて、光源33が点灯状態になる。次に、イメージセ
ンサ1は各画素毎に点灯時の電荷量に対応する出力信号
を出力する。A/D変換器49では、イメージセンサ1
から出力される出力信号に順次にA/D変換を施して量
子化し、画像データバス50を介してRAM部57に1
ライン分の出力レベルVi を記憶する。次に、CPU部
55は、RAM部57に記憶された出力レベルVi に対
して、以下の計算式により補正出力Vi ´を順次に得
る。 Vi ´=Ki (Vi −VDi) (数2) 同時に、CPU部55は、この補正出力Vi ´を順次に
デュアルポートRAM部59に記憶する。こうして、イ
メージセンサ1から取り込まれた画素毎の出力レベルV
i にシェーディング補正を施した後の結果である補正出
力Vi ´は、デュアルポートRAM部59に記憶される
とともに、デュアルポートRAM部59を介して上位プ
ロセッサ側のインターフェースと接続されて高速転送を
可能にすることができる。
The fourth step is a normal operation mode in which shading correction is performed for each read pixel by using the apparatus and output. During normal operation, the opening 6 of the bill discriminating device 31
When a paper sheet on which a character or an image is written is inserted as the paper sheet 37 from 1, the paper sheet 37 is sequentially conveyed into the apparatus according to the rotation of the roller 43. At this time, an ON signal for turning on the light source 33 is applied to SW1 from the CPU unit 55, and the light source 33 is turned on. Next, the image sensor 1 outputs an output signal corresponding to the charge amount at the time of lighting for each pixel. In the A / D converter 49, the image sensor 1
A / D conversion is sequentially performed on the output signals output from the A / D converter to quantize the output signals.
The output level Vi for the line is stored. Next, the CPU unit 55 sequentially obtains a correction output Vi 'for the output level Vi stored in the RAM unit 57 by the following formula. Vi '= Ki (Vi-VDi) (Equation 2) At the same time, the CPU 55 sequentially stores the corrected output Vi' in the dual port RAM 59. Thus, the output level V for each pixel taken in from the image sensor 1
The corrected output Vi ', which is the result of performing shading correction on i, is stored in the dual-port RAM unit 59, and is connected to the interface of the host processor via the dual-port RAM unit 59 to enable high-speed transfer. Can be

【0013】なお、本発明に用いられる黒レベルVDi
は、A/D変換器49のリファレンス電圧の下限値(V
REFー)よりも必ず大きく設定する必要がある。このよう
に、光源点灯時に、基準となる基準白紙に対応する1ラ
イン分の各画素毎の基準白レベルを読み取り予め記憶
し、次に、電源投入後の光源消灯時に、イメージセンサ
の各画素毎のオフセット電荷値に対応する1ライン分の
オフセットレベルを読み取り予め記憶する。ここで、基
準白レベル、オフセットレベル及び予め設定してある白
レベル補正目標値とに基づいて画素毎の補正係数値を順
次に算出して1ライン分記憶し、次に、通常動作での光
源点灯時に、紙葉を1ライン毎に読み取り各画像レベル
からオフセットレベルを減算し、該減算結果値に補正係
数値を乗算して各画素毎の補正値を得るようにしている
ので、光源消灯時のイメージセンサのオフセット電荷値
に対応するオフセットレベルの調整を不要にすることが
でき、また、シェーディング補正を自動化することがで
きる。従って、イメージセンサの画素毎の光量ムラや、
光源の光量ムラや、セルホックレンズのムラ等に起因し
て発生していたイメージセンサの画素毎の出力レベルの
バラつきを補正することができる。さらに、イメージセ
ンサからの出力信号のダイナミックレンジを拡大するこ
とができ、イメージセンサの感度バラつきを画素毎に調
整することができる。また、予め割算が入った補正係数
値の計算式を画素毎に計算しているので、通常動作時に
は割算のような多大な処理時間を必要とする演算を回避
でき、装置の処理速度を向上することができる。
The black level VDi used in the present invention is
Is the lower limit of the reference voltage of the A / D converter 49 (V
REF-) must always be set higher. As described above, when the light source is turned on, the reference white level of each pixel for one line corresponding to the reference white paper as a reference is read and stored in advance, and then, when the light source is turned off after the power is turned on, each pixel of the image sensor is turned off. The offset level for one line corresponding to the offset charge value is read and stored in advance. Here, a correction coefficient value for each pixel is sequentially calculated based on the reference white level, the offset level, and a preset white level correction target value and stored for one line. At the time of lighting, the sheet is read line by line, the offset level is subtracted from each image level, and the subtraction result value is multiplied by a correction coefficient value to obtain a correction value for each pixel. In this case, the adjustment of the offset level corresponding to the offset charge value of the image sensor can be made unnecessary, and the shading correction can be automated. Therefore, the light amount unevenness for each pixel of the image sensor,
It is possible to correct variations in the output level of each pixel of the image sensor, which are caused by unevenness of the light amount of the light source, unevenness of the cell hook lens, and the like. Further, the dynamic range of the output signal from the image sensor can be expanded, and the sensitivity variation of the image sensor can be adjusted for each pixel. In addition, since the calculation formula of the correction coefficient value including the division in advance is calculated for each pixel, it is possible to avoid a calculation requiring a large processing time such as division during a normal operation, and to reduce the processing speed of the apparatus. Can be improved.

【0014】[0014]

【発明の効果】以上、説明したように、本発明によれ
ば、光源点灯時に、基準となる基準白紙に対応する1ラ
イン分の各画素毎の基準白レベルを読み取り予め記憶
し、次に、電源投入後の光源消灯時に、イメージセンサ
の各画素毎のオフセット電荷値に対応する1ライン分の
オフセットレベルを読み取り予め記憶する。ここで、基
準白レベル、オフセットレベル及び予め設定してある白
レベル補正目標値とに基づいて画素毎の補正係数値を順
次に算出して1ライン分記憶し、次に、通常動作での光
源点灯時に、紙葉上の画像イメージを1ライン毎に読み
取り各画像レベルからオフセットレベルを減算し、該減
算結果値に補正係数値を乗算して各画素毎の補正値を得
るようにしているので、光源消灯時のイメージセンサの
オフセット電荷値に対応するオフセットレベルの調整を
不要にすることができ、また、シェーディング補正を自
動化することができる。
As described above, according to the present invention, when the light source is turned on, the reference white level of each pixel of one line corresponding to the reference white paper as a reference is read and stored in advance, and When the light source is turned off after the power is turned on, the offset level for one line corresponding to the offset charge value for each pixel of the image sensor is read and stored in advance. Here, a correction coefficient value for each pixel is sequentially calculated based on the reference white level, the offset level, and a preset white level correction target value and stored for one line. At the time of lighting, an image on a sheet is read line by line, an offset level is subtracted from each image level, and the subtraction result value is multiplied by a correction coefficient value to obtain a correction value for each pixel. In addition, it is not necessary to adjust the offset level corresponding to the offset charge value of the image sensor when the light source is turned off, and the shading correction can be automated.

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

【図1】イメージセンサ1の構成を示す図である。FIG. 1 is a diagram showing a configuration of an image sensor 1;

【図2】本発明を適用した紙幣判別装置の一例を示す図
である。
FIG. 2 is a diagram illustrating an example of a bill discriminating apparatus to which the present invention is applied.

【図3】イメージセンサ1の各画素の出力レベルが示さ
れている。
FIG. 3 shows an output level of each pixel of the image sensor 1;

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

1 イメージセンサ 31 紙幣判別装置 33 光源 37 紙葉 49 A/D変換器 51 ラインメモリ 55 CPU部 57 RAM部 59 デュアルポートRAM部 DESCRIPTION OF SYMBOLS 1 Image sensor 31 Banknote discriminating device 33 Light source 37 Paper sheet 49 A / D converter 51 Line memory 55 CPU section 57 RAM section 59 Dual port RAM section

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 光源光を紙葉に照射してイメージセンサ
を用いて読み取りA/D変換して量子化し、該読取値を
出力する画像読取装置において、 前記光源点灯時に、基準となる基準白紙に対応する1ラ
イン分の各画素毎の基準白レベルを読み取り予め記憶す
る白レベル読取工程と、 電源投入後の前記光源消灯時に、前記イメージセンサの
各画素毎のオフセット電荷値に対応する1ライン分のオ
フセットレベルを読み取り予め記憶するオフセットレベ
ル読取工程と、 前記基準白レベルと、前記オフセットレベルと、予め設
定してある白レベル補正目標値とに基づいて画素毎の補
正係数値を順次に算出して1ライン分記憶する補正係数
値算出工程と、 通常動作での前記光源点灯時に、紙葉上の画像イメージ
を1ライン毎に読み取り各画像レベルから前記オフセッ
トレベルを減算し、該減算結果値に前記補正係数値を乗
算して各画素毎の補正値を得る画像レベル補正工程とを
有することを特徴とするリニアイメージセンサのシェー
ディング補正方法。
1. An image reading apparatus which irradiates a light source light onto a paper sheet, reads and A / D converts the read light using an image sensor, quantizes the read light, and outputs the read value, wherein a reference white paper as a reference when the light source is turned on. A white level reading step of reading a reference white level of each pixel corresponding to one line and storing the reference white level in advance, and one line corresponding to an offset charge value of each pixel of the image sensor when the light source is turned off after power is turned on. An offset level reading step of reading and storing an offset level for each minute, and sequentially calculating a correction coefficient value for each pixel based on the reference white level, the offset level, and a preset white level correction target value. A correction coefficient value calculating step of storing one line and reading the image on the sheet for each line when the light source is turned on in the normal operation. Subtracted et the offset level, shading correction method for a linear image sensor and having an image level correcting step of obtaining a correction value for each pixel by multiplying the correction coefficient value to the subtraction result value.
JP9103916A 1997-04-07 1997-04-07 Shading correction method of linear image sensor Pending JPH10283522A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9103916A JPH10283522A (en) 1997-04-07 1997-04-07 Shading correction method of linear image sensor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9103916A JPH10283522A (en) 1997-04-07 1997-04-07 Shading correction method of linear image sensor

Publications (1)

Publication Number Publication Date
JPH10283522A true JPH10283522A (en) 1998-10-23

Family

ID=14366762

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9103916A Pending JPH10283522A (en) 1997-04-07 1997-04-07 Shading correction method of linear image sensor

Country Status (1)

Country Link
JP (1) JPH10283522A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104802514A (en) * 2015-05-13 2015-07-29 广州广电运通金融电子股份有限公司 Detector for sheet class media with foreign bodies stuck to surfaces
US10275970B2 (en) 2012-11-14 2019-04-30 Mitsubishi Electric Corporation Signal processing device, signal processing method and information reading apparatus

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10275970B2 (en) 2012-11-14 2019-04-30 Mitsubishi Electric Corporation Signal processing device, signal processing method and information reading apparatus
CN104802514A (en) * 2015-05-13 2015-07-29 广州广电运通金融电子股份有限公司 Detector for sheet class media with foreign bodies stuck to surfaces
US10140799B2 (en) 2015-05-13 2018-11-27 Grg Banking Equipment Co., Ltd. Device for detecting foreign object attached on surface of sheet-like medium

Similar Documents

Publication Publication Date Title
EP0868072B1 (en) Shading correction for an image scanner
US7782496B2 (en) Image signal processing circuit, image reading device, and image forming apparatus
US5325210A (en) Shading data accepting system in image readers
US20070127091A1 (en) Image reading apparatus, image processing apparatus, and computer program product
JP3275541B2 (en) Image reading device
EP1156664B1 (en) Image reading device and image forming apparatus
JP2003230007A (en) Image reader, its control method, and control program
JPH10283522A (en) Shading correction method of linear image sensor
JP3262609B2 (en) Image reading device
JP3494462B2 (en) Signal processing device
JPH0732447B2 (en) Reader
JPH10336444A (en) Image read method and device therefor
JP2002057899A (en) Picture reader and picture forming apparatus
US6897989B2 (en) Black reference data calculation method and image reader
JP3150185B2 (en) Image reading device
JP3885984B2 (en) Image reading device
JP3787197B2 (en) Shading correction method and apparatus therefor
JP3347787B2 (en) Image density correction method in image reading device
JPH10224574A (en) Image reader
JPH099056A (en) Picture reader
JPH03241968A (en) Picture reader
JPS61123361A (en) Image read device
JPH09247393A (en) Image processor
JPS6096076A (en) Device for correcting shading distortion
JPH07212527A (en) Picture reader