JP3480229B2 - Image reading device - Google Patents

Image reading device

Info

Publication number
JP3480229B2
JP3480229B2 JP06781297A JP6781297A JP3480229B2 JP 3480229 B2 JP3480229 B2 JP 3480229B2 JP 06781297 A JP06781297 A JP 06781297A JP 6781297 A JP6781297 A JP 6781297A JP 3480229 B2 JP3480229 B2 JP 3480229B2
Authority
JP
Japan
Prior art keywords
data
noise
image
reading
shading
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP06781297A
Other languages
Japanese (ja)
Other versions
JPH10271328A (en
Inventor
孝元 鍋島
Original Assignee
ミノルタ株式会社
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 ミノルタ株式会社 filed Critical ミノルタ株式会社
Priority to JP06781297A priority Critical patent/JP3480229B2/en
Publication of JPH10271328A publication Critical patent/JPH10271328A/en
Application granted granted Critical
Publication of JP3480229B2 publication Critical patent/JP3480229B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、デジタル複写機や
イメージリーダに用いられる画像読取り装置に関し、よ
り詳しくは、光電変換部の複数のCCDチップなどの受
光センサで画像を読み取る際に各受光センサがもつ読取
りレベル差をシェーディング板を用いてシェーディング
補正する画像読取り装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image reading apparatus used in a digital copying machine or an image reader, and more specifically, each light receiving sensor at the time of reading an image with a light receiving sensor such as a plurality of CCD chips of a photoelectric conversion unit. The present invention relates to an image reading apparatus for shading-correcting a reading level difference of the image reading apparatus using a shading plate.

【0002】[0002]

【従来の技術】一般に、CCD(チャージカップルドデ
バイス)チップは1画素毎に感度が異なり、原稿を照ら
す光源にも配光むらがある。そのため、CCDチップを
用いた画像読取り装置において、高画質の画像読取りを
安定して行なうためには、CCD各チップの読取りレベ
ル差を補正することが必要になる。
2. Description of the Related Art Generally, a CCD (charge coupled device) chip has a different sensitivity for each pixel, and a light source for illuminating a document has uneven light distribution. Therefore, in order to stably perform high-quality image reading in an image reading apparatus using CCD chips, it is necessary to correct the reading level difference between CCD chips.

【0003】従来、CCD各チップの読取りレベル差を
補正する画像読取り装置として、例えば特開平6−78
147号公報に記載のものが知られている。この画像読
取り装置は、基準読取り板としてのシェーディング板を
主走査方向に延びるCCDチップにより複数のラインで
読み取り、画素毎に複数ラインのデータの平均値を算出
し、算出した平均値について最大値,平均値,最小値を求
めて操作パネルのLCD(液晶表示装置)に表示し、これ
を見た操作者が、画素の異常やシェーディング板上のご
み等の有無を判断するものである。また、いくつものピ
ークのある配光特性をもつハロゲンランプなどの光源を
有する画像読取り装置の場合、上記シェーディング板の
読取りデータの画素毎の平均値が所定値以下であると
き、光量不足と判断してエラー表示をさせるものがあ
る。
Conventionally, as an image reading apparatus for correcting the reading level difference between CCD chips, for example, Japanese Patent Laid-Open No. 6-78.
The one described in Japanese Patent No. 147 is known. This image reading device reads a shading plate as a reference reading plate in a plurality of lines by a CCD chip extending in the main scanning direction, calculates an average value of data of a plurality of lines for each pixel, and calculates a maximum value of the calculated average value. The average value and the minimum value are obtained and displayed on the LCD (liquid crystal display device) of the operation panel, and the operator who sees this determines the presence or absence of abnormal pixels or dust on the shading plate. Further, in the case of an image reading apparatus having a light source such as a halogen lamp having a light distribution characteristic having several peaks, it is determined that the light amount is insufficient when the average value of the read data of the shading plate for each pixel is less than or equal to a predetermined value. There is one that causes an error display.

【0004】[0004]

【発明が解決しようとする課題】CCDによりシェーデ
ィング板を複数ラインで読み取った画素データを、画素
を横軸に,その出力を縦軸にとって重ね合わせて示すと
図28(A)のようになり、画素データは、蛍光灯光源の
配光特性のため中央部が高くなった凸状のカーブMをな
して所定幅Wで分布する。ここで、上記公報の画像読取
り装置は、画素毎に複数ラインのデータの平均値を算出
して、算出した平均値について最大値,平均値,最小値を
表示するものだから、処理後に得られる補正基準データ
は、シェーディング板上のごみ等または不良画素が無い
場合は、図28(B)に示すように同様の凸状のカーブM
となり、表示される最大値,平均値,最小値は、夫々図中
のMax,Ave,Minとなる。一方、シェーディング板上に
ごみ等または不良画素が有る場合は、ごみ等の箇所に相
当する画素の出力が著しく低下するため、その画素デー
タの平均値も図28(C)のMinに示すようにAveに比し
て著しく低下し、操作者はこの箇所にごみ等があると判
断できる。しかし、上記公報の画素読取り装置は、画素
毎に複数ラインの読取りデータの平均値を算出するもの
であるため、装置の電気回路系に起因してシェーディン
グ板の読取りデータに重畳されたショットノイズが平均
化により消されて検出できず、ショットノイズの重畳さ
れたシェーディングデータに基づく補正によって、後に
読み取られる原稿画像にシェーディング筋等の欠陥が出
るという問題がある。
The pixel data obtained by reading the shading plate in a plurality of lines by the CCD is shown in FIG. 28 (A) by superimposing the pixel on the horizontal axis and the output on the vertical axis. Pixel data is distributed in a predetermined width W in a convex curve M having a high central portion due to the light distribution characteristic of the fluorescent lamp light source. Here, the image reading apparatus of the above publication calculates the average value of the data of a plurality of lines for each pixel and displays the maximum value, the average value, and the minimum value of the calculated average value. The reference data is the same convex curve M as shown in FIG. 28 (B) when there is no dust or the like on the shading plate or defective pixels.
The displayed maximum value, average value, and minimum value are Max, Ave, and Min in the figure, respectively. On the other hand, when dust or a defective pixel is present on the shading plate, the output of the pixel corresponding to the dust or the like is remarkably reduced, and the average value of the pixel data is also as shown by Min in FIG. 28 (C). It is significantly lower than Ave, and the operator can judge that there is dust or the like at this location. However, since the pixel reading device of the above publication calculates the average value of the read data of a plurality of lines for each pixel, shot noise superimposed on the read data of the shading plate due to the electric circuit system of the device is generated. There is a problem in that the image is erased by averaging and cannot be detected, and the correction based on the shading data on which the shot noise is superimposed causes defects such as shading streaks in a document image to be read later.

【0005】上記公報の画像読取り装置によって、ハロ
ゲンランプで照らされたシェーディング板を複数ライン
で読み取った画素データを、同様に重ね合わせて示すと
図29(A)のようになり、画素データは、ハロゲンラン
プの配光特性のため短周期かつ小振幅の波形Mをなして
所定幅Wで分布する。そして、平均化処理後の補正基準
データは、シェーディング板上にごみ等が無い場合は、
図29(B)に示すように同様の波形Mとなるが、ごみ等
が有る場合は、図29(C)に示すようにごみ等の箇所に
相当する画素の平均値データが、同図のMinに示すよう
にAveに比して著しく低下し、操作者はごみ等があると
判断できる。しかし、この場合も平均化処理を行なって
いるため、光源の配光の影響を排除したりごみ等を検出
したりはできても、装置の電気回路系に起因してシェー
ディング板の読取りデータに重畳されたショットノイズ
を検出できず、後に読み取られる原稿画像にシェーディ
ング筋等の欠陥が出るという問題がある。
Pixel data obtained by reading the shading plate illuminated by a halogen lamp with a plurality of lines by the image reading apparatus disclosed in the above publication is similarly superimposed and shown in FIG. 29 (A). Due to the light distribution characteristics of the halogen lamp, a waveform M having a short period and a small amplitude is formed and distributed with a predetermined width W. Then, the correction reference data after the averaging process is as follows when there is no dust or the like on the shading plate.
The waveform M is similar as shown in FIG. 29 (B), but if there is dust or the like, the average value data of pixels corresponding to the dust or the like is shown in FIG. 29 (C). As indicated by Min, it is significantly lower than Ave, and the operator can judge that there is dust or the like. However, even in this case, since the averaging process is performed, the influence of the light distribution of the light source can be eliminated and dust can be detected, but the read data of the shading plate is caused by the electric circuit system of the device. There is a problem in that the shot noise that has been superimposed cannot be detected, and defects such as shading lines appear in the document image that is read later.

【0006】そこで、本発明の目的は、電気回路系等に
起因する画像ノイズや光源の光量低下を検出することが
でき、シェーディング筋のない良好な原稿読取り画像を
得ることができる画像読取り装置を提供することにあ
る。
Therefore, an object of the present invention is to provide an image reading apparatus which can detect image noise and a decrease in the light amount of a light source due to an electric circuit system and the like and can obtain a good original read image without shading streaks. To provide.

【0007】[0007]

【課題を解決するための手段】上記目的を達成するた
め、請求項1の発明は、原稿からの反射光を受けて電気
信号に変換する光電変換部と、この光電変換部からのア
ナログ信号をデジタル信号に変換するA/D変換部と、
上記光電変換部の各受光センサの読取りレベル差を補正
するための基準読取り板としてのシェーディング板と、
このシェーディング板の読取りデータと実際の原稿の読
取りデータとを演算し、上記各受光センサの読取りレベ
ル差を補正するシェーディング補正部を備えた画像読取
り装置において、上記シェーディング板を複数ラインで
読み取って画像データをライン上の対応する画素毎に平
均して補正基準データを生成する平均化データ生成手段
と、上記シェーディング板を複数ラインで読み取ってラ
イン上の対応する画素毎に画像データのピークをホール
ドして補正基準データを生成するピークホールドデータ
生成手段と、上記平均化データ生成手段により得られた
補正基準データと上記ピークホールドデータ生成手段に
より得られた補正基準データの差を算出し、算出した差
が所定値以上であるか否かを判断することによって画像
データに重畳されているノイズの大きさを判定する判定
手段とを備えたことを特徴とする。
In order to achieve the above-mentioned object, the invention of claim 1 provides a photoelectric conversion unit for receiving reflected light from a document and converting it into an electric signal, and an analog signal from this photoelectric conversion unit. An A / D conversion unit for converting into a digital signal,
A shading plate as a reference reading plate for correcting the reading level difference of each light receiving sensor of the photoelectric conversion unit,
In an image reading device equipped with a shading correction unit that calculates the read data of the shading plate and the read data of the actual document and corrects the reading level difference of the light receiving sensors, the shading plate is read in a plurality of lines to form an image. Averaging data generation means for averaging data for each corresponding pixel on the line to generate correction reference data, and reading the shading plate in a plurality of lines to hold the peak of the image data for each corresponding pixel on the line. Peak hold data generating means for generating the correction reference data, and the difference between the correction reference data obtained by the averaging data generating means and the correction reference data obtained by the peak hold data generating means, and the calculated difference Is superimposed on the image data by determining whether or not And further comprising a judging means for judging the magnitude of the noise are.

【0008】原稿読取りに先立つシェーディング補正の
際、シェーディング板からの反射光は、光電変換部によ
り複数ラインで受光されてアナログの電気信号に変換さ
れ、次いでこの電気信号は、A/D変換部でデジタル信
号に変換されて、シェーディング補正部のための補正基
準データが生成される。ここで、平均化データ生成手段
は、上記A/D変換部からのデジタル信号である複数ラ
インの画像データを、ライン上の対応する画素毎に平均
して補正基準データを生成する一方、ピークホールドデ
ータ生成手段は、複数ラインのライン上の対応する画素
毎に画像データのピーク値をホールドして補正基準デー
タを生成する。従って、A/D変換部からのデジタル信
号に装置の電気回路系等に起因するショットノイズが含
まれていない場合は、平均化データ生成手段およびピー
クホールドデータ生成手段の双方の補正基準データのば
らつきは小さい。一方、ショットノイズが含まれている
場合は、読み取られたショットノイズは、他のラインの
対応画素データとの平均値が求められる平均化データ生
成手段の補正基準データには影響せず、補正基準データ
のばらつきは小さいが、他のラインの対応画素データと
の間でピーク値が求められるピークホールドデータ生成
手段の補正基準データには影響して、補正基準データの
ばらつきが大きくなる。
In the shading correction prior to reading the original, the reflected light from the shading plate is received by the photoelectric conversion section on a plurality of lines and converted into an analog electric signal, and this electric signal is then converted by the A / D conversion section. After being converted into a digital signal, correction reference data for the shading correction unit is generated. Here, the averaged data generating means averages the image data of a plurality of lines, which is a digital signal from the A / D conversion unit, for each corresponding pixel on the line to generate the correction reference data, and the peak hold. The data generating means holds the peak value of the image data for each corresponding pixel on the plurality of lines to generate the correction reference data. Therefore, when the digital signal from the A / D converter does not include shot noise caused by the electric circuit system of the device, the variation of the correction reference data of both the averaging data generating means and the peak hold data generating means. Is small. On the other hand, when the shot noise is included, the read shot noise does not affect the correction reference data of the averaging data generation unit that obtains the average value with the corresponding pixel data of other lines, and the correction reference Although the variation of the data is small, the variation of the correction reference data is increased by affecting the correction reference data of the peak hold data generating means for which the peak value is obtained with the corresponding pixel data of another line.

【0009】ここで、判定手段は、平均化データ生成手
段とピークホールドデータ生成手段により得られた補正
基準データの差を算出するから、算出した差が所定値以
上である場合は、ピークホールド方式の補正基準データ
のばらつきが大きくてショットノイズが含まれている,
つまりノイズが大きいと判定し、算出した差が所定値未
満である場合は、両方式の補正基準データのばらつきが
小さくてショットノイズが含まれていない,つまりノイ
ズが小さいと判定する。従って、判定手段によってノイ
ズが大きいと判定されれば、電気回路系等にノイズの原
因があるので、この原因を除去することにより補正基準
データをノイズのないものにし、シェーディング筋のな
い良好な原稿読取り画像を得ることができる。
Here, the judging means calculates the difference between the correction reference data obtained by the averaged data generating means and the peak hold data generating means. Therefore, if the calculated difference is equal to or more than a predetermined value, the peak hold method is used. The variation of the correction reference data of is large and shot noise is included.
That is, it is determined that the noise is large, and when the calculated difference is less than the predetermined value, it is determined that the variation in the correction reference data of both formulas is small and shot noise is not included, that is, the noise is small. Therefore, if the determination means determines that the noise is large, there is a cause of noise in the electric circuit system, etc. Therefore, by removing this cause, the correction reference data is made noise-free, and a good original without shading lines is obtained. A read image can be obtained.

【0010】請求項2の画像読取り装置は、上述と同じ
光電変換部,A/D変換部,シェーディング板,シェーデ
ィング補正部を備えた画像読取り装置において、上述と
同じ平均化データ生成手段およびピークホールドデータ
生成手段と、上記平均化データ生成手段により得られた
補正基準データと上記ピークホールドデータ生成手段に
より得られた補正基準データの差を所定領域の複数画素
について算出し、算出した差の平均値を求め、この平均
値が所定値以上であるか否かを判断することによって画
像データに重畳されているノイズの大きさを判定する判
定手段とを備えたことを特徴とする。この画像読取り装
置は、判定手段の構成のみが請求項1の装置と異なるだ
けなので、上述と同様に動作し、A/D変換部からのデ
ジタル信号に装置の電気回路系等に起因するショットノ
イズが含まれていない場合は、両方式による補正基準デ
ータのばらつきは共に小さい。一方、ショットノイズが
含まれている場合は、読み取られたショットノイズは、
ピークホールドデータ生成手段による補正基準データの
ばらつきのみが大きくなる。
An image reading apparatus according to a second aspect of the present invention is an image reading apparatus including the same photoelectric conversion unit, A / D conversion unit, shading plate, and shading correction unit as described above, and the same averaged data generating means and peak hold as described above. A difference between the correction reference data obtained by the data generation means and the averaged data generation means and the correction reference data obtained by the peak hold data generation means is calculated for a plurality of pixels in a predetermined area, and the average value of the calculated differences is calculated. And determining means for determining the magnitude of noise superimposed on the image data by determining whether or not the average value is equal to or more than a predetermined value. Since this image reading apparatus is different from the apparatus according to claim 1 only in the configuration of the judging means, it operates in the same manner as described above, and shot noise caused by an electric circuit system or the like of the apparatus is generated in the digital signal from the A / D converter. If is not included, the variations in the correction reference data according to both formulas are small. On the other hand, if shot noise is included, the read shot noise is
Only the variation of the correction reference data by the peak hold data generating means becomes large.

【0011】ここで、判定手段は、平均化データ生成手
段とピークホールドデータ生成手段により得られた補正
基準データの差を所定領域の複数画素について算出し、
算出した差の平均値を求め、この平均値が所定値以上で
あるか否かを判断する。そして、算出した差が所定値以
上である場合は、ピークホールド方式の補正基準データ
のばらつきが大きくてショットノイズが含まれていると
判定し、算出した差が所定値未満である場合は、両方式
の補正基準データのばらつきが小さくてショットノイズ
が含まれていないと判定する。従って、上述と同様の理
由により、シェーディング筋のない良好な原稿読取り画
像を得ることができる。なお、この装置は、両方式によ
る補正基準データの差の所定領域における平均値を求
め、この平均値が所定値以上であるか否かを判断してい
るので、請求項1の装置と比べて、局所的,突発的なノ
イズの検出には適さないが、恒常的なノイズの検出に適
している。
Here, the determination means calculates the difference between the correction reference data obtained by the averaged data generation means and the peak hold data generation means for a plurality of pixels in a predetermined area,
An average value of the calculated differences is obtained, and it is determined whether or not this average value is equal to or larger than a predetermined value. Then, if the calculated difference is equal to or greater than the predetermined value, it is determined that the variation in the correction reference data of the peak hold method is large and shot noise is included, and if the calculated difference is less than the predetermined value, both It is determined that the variation in the correction reference data of the method is small and shot noise is not included. Therefore, for the same reason as described above, it is possible to obtain a good original read image without shading streaks. It should be noted that, since this apparatus obtains an average value of the difference between the correction reference data by both methods in a predetermined area and judges whether or not this average value is equal to or more than a predetermined value, it is different from the apparatus of claim 1. It is not suitable for detecting local, sudden noise, but is suitable for detecting constant noise.

【0012】請求項3の画像読取り装置は、上記判定手
段が、算出した差または平均値が所定値以上であると判
断してノイズが大きいと判定したとき、警告を発する警
告手段をさらに備えたことを特徴とする。警告手段は、
判定手段がノイズが大きいと判定すると、例えば警告と
して表示部に「ノイズが大きい」などの表示をさせる。
従って、装置の使用者は、シェーディング板を読み取っ
た時点で装置を止め、原稿の読み取りを中止することに
よって、原稿読取画像の悪化を未然に防止することがで
きる。
An image reading apparatus according to a third aspect of the present invention further comprises warning means for issuing a warning when the judgment means judges that the calculated difference or average value is equal to or more than a predetermined value and noise is large. It is characterized by The warning means is
When the determination unit determines that the noise is large, the display unit displays "Noise is large" as a warning, for example.
Therefore, the user of the apparatus can prevent the deterioration of the original read image by stopping the apparatus when reading the shading plate and stopping the reading of the original.

【0013】請求項4の画像読取り装置は、上記判定手
段の判定結果に基づいて、ノイズの大小に応じて上記原
稿を照らす光源の光量を増減する光量調整手段をさらに
備えたことを特徴とする。光量調整手段は、判定手段が
ノイズが大きいと判定したとき、例えば照明を強めてノ
イズを相対的に低減すべく光源の光量を増加し、判定手
段がノイズが小さいと判定したとき、例えば照明を弱め
ても原稿読取りに支障ないとして、光源の光量を減少さ
せて消費電力の節減を図る。従って、ノイズの低減によ
り原稿読取画像の悪化をある程度防止でき、また省電力
を図ることができる。
An image reading apparatus according to a fourth aspect of the present invention further comprises a light quantity adjusting means for increasing / decreasing a light quantity of a light source for illuminating the original according to the magnitude of noise, based on the judgment result of the judging means. . When the determination means determines that the noise is large, for example, when the determination means determines that the noise is small, for example, the light amount of the light source is increased to strengthen the illumination and relatively reduce the noise. Even if it is weakened, it does not hinder the reading of originals, so the amount of light from the light source is reduced to save power consumption. Therefore, it is possible to prevent deterioration of the original read image due to noise reduction to some extent, and it is possible to save power.

【0014】請求項5の画像読取り装置は、上記判定手
段の判定結果に基づいて、ノイズが大きい場合に、読取
りモードに制限を加える読取りモード制限手段をさらに
備えたことを特徴とする。読取りモード制限手段は、判
定手段がノイズが大きいと判定した場合、ノイズが小さ
くないと良好に読み取れないような対象を読み取るモー
ドの使用を制限する。従って、このような対象が誤って
読み取られて、読取画像が悪化することが防止できる。
According to a fifth aspect of the present invention, there is provided an image reading apparatus further comprising a reading mode limiting means for limiting the reading mode when the noise is large based on the determination result of the determining means. When the determination unit determines that the noise is large, the read mode limiting unit limits the use of a mode for reading an object that cannot be properly read unless the noise is small. Therefore, it is possible to prevent such an object from being erroneously read and the read image from being deteriorated.

【0015】請求項6の画像読取り装置は、上記読取り
モード制限手段が、ノイズが大きい場合に、文字読取り
モードのみを使用可能にし、写真読取りモードを使用不
可能にすることを特徴とする。読取りモード制限手段
は、判定手段がノイズが大きいと判定した場合、中間調
の再現が必要なため、ノイズが小さくないと良好に読み
取れない写真を読み取る写真読取りモードの使用を制限
し、ノイズが大きくても読み取りが可能な文字を読み取
る文字読取りモードのみを使用可能にする。従って、写
真が誤って読み取られて、読取画像が悪化することが防
止できる。
An image reading apparatus according to a sixth aspect of the present invention is characterized in that the reading mode limiting means enables only the character reading mode and disables the photo reading mode when the noise is large. When the determination means determines that the noise is large, the reading mode limiting means needs to reproduce halftones.Therefore, the use of the photo reading mode for reading a photograph that cannot be read well unless the noise is small is restricted, and the noise is large. Enables only the character reading mode to read readable characters. Therefore, it is possible to prevent a photograph from being mistakenly read and the read image from being deteriorated.

【0016】請求項7の画像読取り装置は、上記判定手
段が、上記原稿を照らす光源を消した状態においてもノ
イズの大きさを判定し、光源点灯時および消灯時におけ
る上記判定手段の判定結果に基づいて、ノイズの原因が
画像読取り装置の光学系または電気回路のいずれにある
かを判断するノイズ原因判断手段をさらに備えたことを
特徴とする。平均化データ生成手段とピークホールドデ
ータ生成手段は、まず光源点灯状態でシェーディング板
から読み取られたデータについて夫々補正基準データを
生成し、判定手段は、生成された両補正基準データの差
を算出し、算出した差が所定値以上のとき、ノイズが大
きいと判定する。この判定に基づき、ノイズ原因判断手
段は、例えば光源の光量が最大か否かを判断し、否なら
光量を最大値まで漸増し、それでもノイズが減らない場
合、光源に異常はないとして光源を消灯する。次に、ノ
イズ原因判断手段は、電気回路のゲインを最大にする一
方、判定手段は、照明されていないシェーディング板か
ら読み取られ、平均化データ生成手段とピークホールド
データ生成手段で夫々生成された補正基準データについ
て、同様の処理をして、電気回路自体に起因するノイズ
の大きさを判定する。そこで、ノイズ原因判断手段は、
ノイズが大きいと判定されると、電気回路にノイズ原因
があると判断し、ノイズが大きくないと判定されると、
光源を除く光学系にノイズの原因があると判断する。従
って、装置の操作者や保守係員は、ノイズ原因手段の判
断結果に基づいて、後の原稿等の読み取りを中止して、
読取画像の悪化を未然に防止できるのみならず、ノイズ
の発生箇所を知って迅速に修理等を行なうことができ
る。
According to another aspect of the image reading apparatus of the present invention, the determination means determines the magnitude of noise even when the light source illuminating the original is turned off, and the determination result of the determination means when the light source is turned on and off is determined. It is characterized by further comprising a noise cause determining means for determining whether the cause of the noise is in the optical system or the electric circuit of the image reading device. The averaged data generation means and the peak hold data generation means first generate correction reference data for the data read from the shading plate in the light source lighting state, and the determination means calculates the difference between both generated correction reference data. When the calculated difference is equal to or larger than the predetermined value, it is determined that the noise is large. Based on this determination, the noise cause determination means determines, for example, whether or not the light amount of the light source is the maximum, and if not, gradually increases the light amount to the maximum value, and if the noise still does not decrease, it is determined that there is no abnormality in the light source and the light source is turned off. To do. Next, the noise cause judging means maximizes the gain of the electric circuit, while the judging means reads the unshaded shading plate, and the corrections generated by the averaging data generating means and the peak hold data generating means, respectively. Similar processing is performed on the reference data to determine the magnitude of noise caused by the electric circuit itself. Therefore, the noise cause determination means is
If it is determined that the noise is large, it is determined that the electric circuit has a cause of noise, and if it is determined that the noise is not large,
Judge that the optical system excluding the light source has a cause of noise. Therefore, the operator or maintenance staff of the device stops reading subsequent documents etc. based on the judgment result of the noise-causing means,
Not only the deterioration of the read image can be prevented, but also the location of the noise can be known and the repair can be performed quickly.

【0017】[0017]

【発明の実施の形態】以下、本発明を図示の実施の形態
により詳細に説明する。図1は、本発明の画像読取り装
置を用いたデジタル複写機の全体構成図である。このデ
ジタル複写機は、上部の画像読取り装置10と、下部の
画像記録装置20からなる。上記画像読取り装置10
は、手置き原稿読取り装置16と原稿流し読取り装置1
7を備えるとともに、縮小光学系を用いて光源11から
原稿に光をあて、その反射光をミラー12とレンズ13
を介してライン状のCCD14上に結像させて光電変換
されたアナログ電気信号を得、このアナログ電気信号を
画像処理ユニット15においてデジタルデータに変換し
た後,変倍や画質補正等の画像処理を施すようになって
いる。上記CCD14は、400dpi(ドット/インチ)
の解像度を有し、最大A3サイズ(1ライン約5000ドッ
ト)の原稿まで読み取ることができる。原稿の走査は、
ライン状のCCD14の図1の紙面に垂直な方向を主走
査方向、これと直交する方向を副走査方向yとすれば、
手置き原稿の場合は、主走査方向をCCD14で,副走
査方向をミラー12の水平方向移動で行ない、原稿流し
撮りの場合は、主走査方向を同じくCCD14で,副走
査方向を原稿の搬送で行なっている。
BEST MODE FOR CARRYING OUT THE INVENTION The present invention will be described in detail below with reference to the embodiments shown in the drawings. FIG. 1 is an overall configuration diagram of a digital copying machine using the image reading apparatus of the present invention. This digital copying machine comprises an image reading device 10 on the upper side and an image recording device 20 on the lower side. The image reading device 10
Is a manual document reader 16 and a document flow reader 1
7, a reduction optical system is used to apply light from a light source 11 to an original, and the reflected light is reflected by a mirror 12 and a lens 13.
An image is formed on the CCD 14 in a line shape through a photoelectric conversion to obtain an analog electric signal which is photoelectrically converted, and the analog electric signal is converted into digital data in the image processing unit 15, and then image processing such as scaling and image quality correction is performed. It is supposed to be given. The CCD 14 is 400 dpi (dot / inch)
It has a resolution of up to A3 and can read documents up to A3 size (about 5000 dots per line). Scanning the original is
If the direction perpendicular to the paper surface of FIG. 1 of the linear CCD 14 is the main scanning direction and the direction orthogonal to this is the sub scanning direction y,
In the case of a manually placed document, the CCD 14 is used in the main scanning direction and the mirror 12 is moved in the sub scanning direction in the horizontal direction. In the case of document follow shot, the CCD 14 is used in the main scanning direction and the document is conveyed in the sub scanning direction. I am doing it.

【0018】上記画像記録装置20は、画像処理ユニッ
ト15から入力されるデジタル画像データをレーザダイ
オード駆動ユニット21でアナログ電気信号に変換し、
これをレーザ発光源22で画素単位に強弱の光信号に変
換して、ポリゴンミラー23を介して感光体ドラム24
上に結像させ、これに強弱に付着させたトナーを用紙2
5の表面に転写して、電子写真方式によって400dpi,
256階調の画像を再現するようになっている。
The image recording device 20 converts digital image data input from the image processing unit 15 into an analog electric signal by the laser diode drive unit 21,
The laser light emission source 22 converts this into an optical signal of strong and weak pixel by pixel, and the photosensitive drum 24 is passed through the polygon mirror 23.
The toner imaged on the top and strongly adhered to the paper 2
Transfer to the surface of No. 5, 400dpi by electrophotographic method,
An image with 256 gradations is reproduced.

【0019】図2,図3は、モード切替機能をもつ上記
デジタル複写機の夫々全体動作および原稿モード設定サ
ブルーチンを示すフローチャートである。図2のステッ
プS1で、原稿を原稿台にセットし、ステップS2で、
原稿の種類に応じて「写真モード」または「文字モー
ド」のコピーモードをセットし、ステップS3で、コピ
ー枚数のほか自動設定される用紙サイズ,原稿濃度等を
必要に応じてマニュアルでセットする。設定が終わる
と、ステップS4で、コピースタート釦を押すと、ステ
ップS5で、コピーが始まり、ステップS6で、原稿走
査系が動きだし、ステップS7で、走査しながらCCD
14が画像データを読み取り、ステップ8で、画像処理
ユニット15が読み取られた画像データを処理しし、ス
テップS9で、画像記録装置20が処理された画像デー
タをプリント出力する。
FIGS. 2 and 3 are flowcharts showing the overall operation of the digital copying machine having the mode switching function and the original mode setting subroutine, respectively. In step S1 of FIG. 2, the document is set on the document table, and in step S2,
A copy mode such as "photograph mode" or "character mode" is set according to the type of document, and in step S3, the number of copies, the automatically set paper size, document density, etc. are manually set. When the setting is completed, if the copy start button is pressed in step S4, copying starts in step S5, the original scanning system starts to move in step S6, and the CCD is scanned while scanning in step S7.
14 reads the image data, the image processing unit 15 processes the read image data in step 8, and the image recording device 20 prints out the processed image data in step S9.

【0020】上記ステップS2の原稿モード設定は、図
3のサブルーチンに示すように、ステップS11で、複
写機の操作パネルに図4(A)に示す表示がされていると
きにその原稿モード釦34を押すと、図4(B)に示すよ
うな表示に切り替わり、コピーすべき原稿の種類に応じ
て、ステップS12で、「写真」,「文字」のいずれか
の釦36,37を押すと、それ応じてステップS13,S
14で写真モードの回路に、ステップS15,S16で
文字モードの回路に夫々切り替えられる一方、ステップ
S12で「初期画面」の釦38を押すと、ステップS1
7,S18でパネルリセットされて図4(A)の表示に戻
る。なお、図4は、原稿モード設定のための操作パネル
の画面を示しており、原稿を原稿台にセット後、原稿濃
度,倍率,用紙サイズを夫々の釦31,32,33で設定し
てから、原稿モード切替え釦32を押す。パネル画面が
図4(B)に切り替わったところで、原稿の種類に応じて
写真,文字のいずれかの釦36,37を押した後、「初期
画面」釦38を押すと、図4(A)の初期画面に戻り、図
示しないテンキーでコピー枚数をセットした後、コピー
スタート釦35を押すことにより、コピーが始まる。
As shown in the subroutine of FIG. 3, the document mode setting in step S2 is performed by the document mode button 34 when the display shown in FIG. 4A is displayed on the operation panel of the copying machine in step S11. When is pressed, the display is changed to that shown in FIG. 4B, and in step S12, if any one of the "photograph" and "text" buttons 36 and 37 is pushed, depending on the type of original to be copied, Accordingly, steps S13, S
14 is switched to the photo mode circuit, and in steps S15 and S16, the mode is switched to the character mode circuit, respectively. On the other hand, when the "initial screen" button 38 is pressed in step S12, step S1
7, the panel is reset in S18, and the display returns to that shown in FIG. FIG. 4 shows the screen of the operation panel for setting the original mode. After the original is set on the original table, the original density, magnification, and paper size are set with the buttons 31, 32, and 33, respectively. , Press the original mode switching button 32. When the panel screen is switched to that shown in FIG. 4 (B), if one of the photo and character buttons 36 and 37 is pressed according to the type of document, and then the "initial screen" button 38 is pressed, the screen shown in FIG. After returning to the initial screen of (1) and setting the number of copies with a ten key (not shown), the copy start button 35 is pressed to start copying.

【0021】図5は、デジタル複写機の全体制御ブロッ
ク図であり、全体制御部41は、他の総てのブロックを
制御し、パネル制御部42は、図4で述べた操作パネル
43の表示およびキー入力時のインターフェースを制御
し、IR走査制御部44は、コピースタート釦35(図
4(A)参照)の押下を検知してスキャンモータ45を起
動し、スキャンされる原稿の画像を画像処理制御部46
の制御下で画像処理回路47が読み取って所定の画像処
理を施す。画像処理されたデータは、I/F(インター
フェース)部48を介して外部機器に出力されるか、あ
るいはメモリ制御部49の制御下でメモリ部50に記憶
され、メモリ部50に記憶された画像データは、エンジ
ン部52に送られた後、プリンタ制御部51の制御下で
プリントされる。
FIG. 5 is an overall control block diagram of the digital copying machine. The overall control unit 41 controls all other blocks, and the panel control unit 42 displays the operation panel 43 described in FIG. The IR scanning control unit 44 detects the depression of the copy start button 35 (see FIG. 4A) and activates the scan motor 45 to control the interface for key input and the image of the document to be scanned is displayed. Processing control unit 46
Under the control of 1), the image processing circuit 47 reads and performs predetermined image processing. The image-processed data is output to an external device via the I / F (interface) unit 48, or stored in the memory unit 50 under the control of the memory control unit 49, and the image stored in the memory unit 50 is stored. After being sent to the engine unit 52, the data is printed under the control of the printer control unit 51.

【0022】図6は、図5の46,47に対応する画像
処理ブロックを示す図である。この画像処理ブロック
は、原稿からの反射光を電気信号に変換する光電変換部
としてのCCD14と、このCCD14からアナログ処
理回路62を経て入力されるアナログ信号をデジタル信
号に変換するA/D変換部63と、原稿台の端部に基準
白出力を得るため設けられた白色のシェーディング板1
8(図1参照)から複数ラインで読み取られた画像データ
をライン上の対応する画素毎に平均して補正基準データ
を生成する平均化データ生成手段としての第1シェーデ
ィング回路65と、ライン上の対応する画素毎に上記画
像データのピークをホールドして補正基準データを生成
するピークホールドデータ生成手段としての第2シェー
ディング回路66と、上記第1シェーディング回路65
で得られた補正基準データの状態に応じて、あるいは上
記第1,第2シェーディング回路65,66で得られた両
補正基準データを互いに比較した結果に応じて、上記両
シェーディング回路65,66のいずれかを選択して作
動させる比較器72およびCPU73と、光源11(図
1参照)の光量を直接モニタするランプ光量モニタセン
サ76とを備える。
FIG. 6 is a diagram showing image processing blocks corresponding to 46 and 47 in FIG. The image processing block includes a CCD 14 as a photoelectric conversion unit that converts reflected light from a document into an electric signal, and an A / D conversion unit that converts an analog signal input from the CCD 14 through an analog processing circuit 62 into a digital signal. 63, and a white shading plate 1 provided at the end of the document table to obtain a reference white output.
8 (see FIG. 1), the first shading circuit 65 as an averaging data generating means for averaging the image data read in a plurality of lines for each corresponding pixel on the line to generate the correction reference data; A second shading circuit 66 as peak hold data generating means for holding the peak of the image data for each corresponding pixel and generating correction reference data, and the first shading circuit 65.
Of the shading circuits 65, 66 according to the state of the correction reference data obtained in step S1 or the result of comparing the two correction reference data obtained by the first and second shading circuits 65, 66 with each other. A comparator 72 and a CPU 73 for selecting and operating any one of them, and a lamp light amount monitor sensor 76 for directly monitoring the light amount of the light source 11 (see FIG. 1) are provided.

【0023】上記アナログ処理回路62は、入力される
アナログ信号をサンプル/ホールド,ゲイン増幅,クラン
プ等の回路で処理し、所定のダイナミックレンジの信号
にして出力する。上記A/D変換部63からのデジタル
信号は、2方向に分岐して第1,第2シェーディング回
路65,66に入力され、原稿画像読取りスライダがシ
ェーディング板の位置を移動しながら読み取った複数ラ
インのデータを、夫々のラインRAM64,67に順次
書き込みながら、前者の回路65は画素毎に平均値を求
め(平均化方式)、後者の回路66は画素毎にピーク値を
ホールドする(ピークホールド方式)。上記CPU73
は、夫々図を用いて後述する判定手段(図20)、警告手
段(図23)、光量調整手段(図24)、読取りモード制限
手段(図25)およびノイズ原因判断手段(図26,27)
を構成する。CPU73は、第1,第2シェーディング
回路65,66で求められたライン状の夫々の補正基準
データについて、ある画素とその近傍の画素の画素デー
タ相互間に所定以上のレベル差があるとき,その画素を
特異点として抽出し(図10参照)、あるいは一連の複数
画素について両方式の画素データの標準偏差を算出した
後,両標準偏差の大小を比較する(図11参照)。そし
て、両方式における特異点の現われ方,あるいは標準偏
差の大小を比較器72で比較してその結果に基づいて、
原稿読取りに用いるシェーディング方式を決定し(図9
参照)、決定した方のシェーディング回路65または6
6をセレクタ68で選択するとともに、ランプ光量モニ
タセンサ76からの検出信号に基づいて上記光量調整手
段およびノイズ原因判断手段として働く。
The analog processing circuit 62 processes the input analog signal by circuits such as sample / hold, gain amplification, and clamp, and outputs it as a signal having a predetermined dynamic range. The digital signal from the A / D converter 63 is branched into two directions and input to the first and second shading circuits 65 and 66, and a plurality of lines read while the original image reading slider is moving the position of the shading plate. While sequentially writing the data in the respective line RAMs 64 and 67, the former circuit 65 obtains an average value for each pixel (averaging method), and the latter circuit 66 holds the peak value for each pixel (peak hold method). ). CPU73
Is a determination means (FIG. 20), a warning means (FIG. 23), a light amount adjusting means (FIG. 24), a reading mode limiting means (FIG. 25), and a noise cause determining means (FIGS. 26 and 27), which will be described later with reference to the drawings.
Make up. When there is a predetermined level difference or more between the pixel data of a pixel and the pixel data of its neighboring pixels in the linear correction reference data obtained by the first and second shading circuits 65 and 66, the CPU 73 Pixels are extracted as singular points (see FIG. 10), or standard deviations of pixel data of both formulas are calculated for a series of plural pixels, and then the magnitudes of both standard deviations are compared (see FIG. 11). Then, the appearance of the singularity in both equations, or the magnitude of the standard deviation is compared by the comparator 72, and based on the result,
Decide the shading method to be used for reading the original (Fig. 9
), The determined shading circuit 65 or 6
6 is selected by the selector 68, and it functions as the light quantity adjusting means and the noise cause judging means based on the detection signal from the lamp light quantity monitor sensor 76.

【0024】次いで、上記セレクタ68で選択されたシ
ェーディング補正部としてのシェーディング回路65ま
たは66のみがそのシェーディング方式で動作して、原
稿から読み取られた画像データについて光源11(図1
参照)の配光むらやCCD14の画素感度のばらつきの
補正して画像処理回路69に出力し、ここで反射率/濃
度変換,MTF補正,拡大/縮小補完等の処理が行なわれ
た後、I/F部70から画像記録装置20(図1参照)ま
たは外部接続機器に出力される。ヒストグラム回路71
は、画像データのヒストグラムを作成し、AE(自動露
出)処理を行ない、また、シェーディング動作時にはヒ
ストグラム上からデータばらつき量を算出し、一定範囲
外のデータを平均化やピークホールド処理の対象から除
外する。上述の一連の処理は、CPU73,ROM75,
タイミング制御部74によって制御される。
Then, only the shading circuit 65 or 66 as the shading correction unit selected by the selector 68 operates in the shading method, and the light source 11 (see FIG. 1) is used for the image data read from the original.
(See (1)) and outputs it to the image processing circuit 69 after correcting the unevenness of the light distribution of the CCD 14 and the pixel sensitivity of the CCD 14, and after performing processing such as reflectance / density conversion, MTF correction, and enlargement / reduction complementation, I The data is output from the / F unit 70 to the image recording device 20 (see FIG. 1) or an externally connected device. Histogram circuit 71
Creates a histogram of image data, performs AE (automatic exposure) processing, calculates the amount of data variation from the histogram during shading operation, and excludes data outside a certain range from the targets of averaging and peak hold processing. To do. The series of processes described above is performed by the CPU 73, the ROM 75,
It is controlled by the timing controller 74.

【0025】図7は、図6の第1シェーディング回路6
5(平均化方式)の詳細ブロック図である。このブロック
図において、画像読取り装置10(図1参照)がシェーデ
ィングデータ生成モードになると、リセット回路82が
ラインメモリ81内のデータをリセットし、シェーディ
ング板から読み取られ,A/D変換部63(図6参照)を
経て入力された複数ラインの画像データが、加算器88
により画素毎にラインメモリ81に既格納のデータに加
算されて上書きされるとともに、上記ラインの数がカウ
ンタ83で計数され、この計数値の逆数が逆数ROM8
4で算出され、この算出値とラインメモリ81からの画
素毎の加算値との積,つまり平均データが乗算器89で
求められ、画素毎の平均データの逆数が逆数ROM85
で算出,格納される。こうして、シェーディングデータ
生成モードが終了して、通常の画像読取りモードになる
と、CPU73(図6参照)からの命令でセレクタ68が
乗算器86側にセットされ、原稿の画像データは、画素
毎に乗算器86で逆数ROM85に格納された逆数を掛
けられてシェーディング補正が施された後、後段の画像
処理回路69(図6参照)へ送られる。なお、シェーディ
ング補正をしない場合や、シェーディングデータのヒス
トグラムをヒストグラム回路72(図6参照)で生成する
場合は、セレクタ68が、画像データを乗算器86をバ
イパスさせる側にCPU73によってセットされる。
FIG. 7 shows the first shading circuit 6 of FIG.
5 is a detailed block diagram of No. 5 (averaging method). FIG. In this block diagram, when the image reading device 10 (see FIG. 1) enters the shading data generation mode, the reset circuit 82 resets the data in the line memory 81, and the data is read from the shading plate and the A / D converter 63 (see FIG. Image data of a plurality of lines input via the adder 88.
By this, the data stored in the line memory 81 for each pixel is added and overwritten, and the number of lines is counted by the counter 83, and the reciprocal of this count is the reciprocal ROM 8
4, the product of this calculated value and the added value for each pixel from the line memory 81, that is, the average data is obtained by the multiplier 89, and the reciprocal of the average data for each pixel is the reciprocal ROM 85.
Calculated and stored in. In this way, when the shading data generation mode ends and the normal image reading mode is entered, the selector 68 is set to the multiplier 86 side by an instruction from the CPU 73 (see FIG. 6), and the image data of the document is multiplied by each pixel. The device 86 multiplies the reciprocal stored in the reciprocal ROM 85 to perform shading correction, and then sends it to the image processing circuit 69 (see FIG. 6) in the subsequent stage. When the shading correction is not performed or when the histogram of the shading data is generated by the histogram circuit 72 (see FIG. 6), the selector 68 is set by the CPU 73 on the side where the image data is bypassed by the multiplier 86.

【0026】図8は、図6の第2シェーディング回路6
6(ピークホールド方式)の詳細ブロック図である。この
ブロック図において、シェーディングデータ生成モード
になると、リセット回路94がラインメモリ93内のデ
ータをリセットし、シェーディング板から読み取られて
入力される最初の1ライン分の画像データは、セレクタ
92の端子Aを経てラインメモリ93に書き込まれ、次
に入力される2ライン目以降の画像データは、画素毎に
比較器91でラインメモリ93に既格納の画像データと
比較され、比較結果により端子A,Bのうち大きい方の
データのある側の端子が開かれて、ラインメモリ93に
上書きされ、ラインメモリには画素毎の複数ライン中で
最大のデータ(ピークデータ)が保持される。こうして、
シェーディング生成モードが終了して、画像読取りモー
ドになると、CPU73からの命令によりセレクタ68
が乗算器96側Cにセットされ、ラインメモリ93から
読み出されたシェーディングデータの逆数が逆数ROM
95で算出されるとともに、入力される原稿の画像デー
タは、画素毎に乗算器96により上記逆数を掛けられて
シェーディング補正が施された後、後段の画像処理回路
69へ送られる。なお、シェーディング補正をしない場
合や、シェーディングデータのヒストグラムを生成する
場合は、セレクタ68が、画像データを乗算器96をバ
イパスさせる側DにCPU73によってセットされる。
FIG. 8 shows the second shading circuit 6 of FIG.
6 is a detailed block diagram of 6 (peak hold method). FIG. In this block diagram, when the shading data generation mode is entered, the reset circuit 94 resets the data in the line memory 93, and the image data for the first one line read and input from the shading plate is the terminal A of the selector 92. The image data of the second and subsequent lines, which are written into the line memory 93 through the following, are compared with the image data already stored in the line memory 93 by the comparator 91 for each pixel, and the terminals A and B are compared according to the comparison result. The terminal on the side with the larger data is opened and overwritten in the line memory 93, and the line memory holds the maximum data (peak data) in a plurality of lines for each pixel. Thus
When the shading generation mode ends and the image reading mode is entered, the selector 68 is instructed by the CPU 73.
Is set in the multiplier 96 side C, and the reciprocal of the shading data read from the line memory 93 is the reciprocal ROM.
The image data of the original document, which is calculated in 95, is multiplied by the reciprocal number by the multiplier 96 for each pixel to perform shading correction, and then sent to the image processing circuit 69 in the subsequent stage. When the shading correction is not performed or when the histogram of the shading data is generated, the selector 68 is set by the CPU 73 on the side D where the image data is bypassed by the multiplier 96.

【0027】図9は、図2で述べた画像データ読取りス
テップS7のサブルーチンを示すフローチャートであ
る。画像データの読み取りは、次のように行なわれる。
原稿走査系が始動し、画像読取り動作に入ると、図9の
ステップS21で、シェーディング板18(図1参照)に
読取りスライダが移動し、ステップS22で、シェーデ
ィング板を幅方向に走査位置を変えて複数ラインで読み
取り、ステップS23で、シェーディングデータを生成
し、かつ読取りライン数をステップS24でカウント
し、カウント数が予め定められたnになれば、ステップ
S25で肯と判断し、ステップS26に進んでシェーデ
ィング板の読取りを終了する。次に、ごみ検出のサブル
ーチン(図16参照)として後述するステップS27で、
シェーディング板上または光学系にごみ(汚れ)等が付着
してイるか否かを検出し、ミラーを含む光学系にごみ等
があれば、ステップS28,ステップS29を経てステ
ップS30で警告を行なった後、シェーディング板上に
ごみ等がある場合またはごみ等が無い場合は、直接、夫
々ステップS31に進む。ステップS31では、図20
で後述するサブルーチン,つまり画像データに重畳され
ているノイズ量を検出し、続いてステップS32で、検
出されたノイズ量に応じて図21,24,25で後述する
サブルーチン,つまり警告処理を行なう。さらに、ステ
ップS33に進んで、図10,11のサブルーチンで後
述するシェーディング方法の切替え,つまり図6のCP
U73を介してセレクタ68により第1,第2シェーデ
ィング回路65,66のいずれかの選択を行なう。続い
て、ステップS34で、本スキャンを開始し、ステップ
S35で、所定サイズ分の画像原稿の読み取りを行なっ
てメインルーチンにリターンする。
FIG. 9 is a flowchart showing a subroutine of the image data reading step S7 described in FIG. The reading of the image data is performed as follows.
When the document scanning system is started and the image reading operation is started, the reading slider is moved to the shading plate 18 (see FIG. 1) in step S21 of FIG. 9, and the scanning position of the shading plate is changed in the width direction in step S22. Reading with a plurality of lines, shading data is generated in step S23, and the number of read lines is counted in step S24. If the number of counts reaches a predetermined n, it is determined to be affirmative in step S25, and the process proceeds to step S26. Proceed to finish reading the shading plate. Next, in step S27 described later as a dust detection subroutine (see FIG. 16),
It is detected whether dust (dirt) adheres to the shading plate or the optical system and if there is dust in the optical system including the mirror, a warning is given in step S30 through step S28 and step S29. After that, if there is dust or the like on the shading plate, or if there is no dust or the like, the process directly proceeds to step S31. In step S31, FIG.
In step S32, a subroutine to be described later, that is, the amount of noise superimposed on the image data is detected. Then, in step S32, a subroutine to be described later, that is, a warning process in FIGS. 21, 24 and 25 is performed according to the detected amount of noise. Further, the procedure proceeds to step S33, and switching of the shading method described later in the subroutine of FIGS. 10 and 11, that is, CP of FIG.
The selector 68 selects one of the first and second shading circuits 65 and 66 via U73. Then, in step S34, main scanning is started, and in step S35, an image original of a predetermined size is read and the process returns to the main routine.

【0028】図10は、図9で述べたシェーディング方
法の切替ステップS33のサブルーチンの第1例を示す
フローチャートである。このサブルーチンは、次のよう
に行なわれる。まず、CPU73(図6参照)は、ステッ
プS41で、図6の第1シェーディング回路65(平均
化方式)に生成,格納された画素毎の補正基準データ(平
均値)Diを順次読み出し、ステップS42で、注目画素
lのデータのその前後m個の画素データに対する各差Δ
-m〜ΔD+mを算出する。次に、ステップS43で、算
出した差ΔD-m〜ΔD+mの中から最大値ΔDmaxlを算出
し、ステップ44で、注目画素の累計数lが所定数Pに
達したか否かを判断し、否の場合は、ステップS45で
画素累計数lをインクリメントして,(l+1)番目の画素に
ついてステップS42,43で同様の処理を行なう一
方、肯の場合は、ステップS46に進んで、算出された
最大値ΔDmaxlの中で最大のものQを算出する。そし
て、ステップS47で、上記最大値Qが予め定められた
値Gを超えるか否かを判断し、肯の場合は、シェーディ
ング板18(図1参照)上のごみ等の影響を受けやすい平
均化方式に特異点が出たとして、ステップS49に進ん
でごみ等の影響を受けにくいピークホールド方式を選択
し、否の場合は、ステップS48に進んでシェーディン
グで得られる補正基準データのばらつきがピークホール
ド方式による場合よりも少ない平均化方式を選択する。
最後に、ステップS50で、上記選択したシェーディン
グ方式に応じてセレクタ68(図6参照)をセットして第
1,第2シェーディング回路65,66のいずれかを作動
させ、メインルーチンにリターンする。
FIG. 10 is a flow chart showing a first example of the subroutine of the switching step S33 of the shading method described in FIG. This subroutine is performed as follows. First, the CPU 73 (see FIG. 6) sequentially reads the correction reference data (average value) D i for each pixel generated and stored in the first shading circuit 65 (averaging method) of FIG. At S42, the differences Δ between the data of the pixel of interest l and the m pixel data before and after the data Δ
Calculate D −m to ΔD + m . Next, in step S43, the maximum value ΔD maxl is calculated from the calculated differences ΔD −m to ΔD + m , and in step 44, it is determined whether the cumulative number l of the target pixel has reached the predetermined number P or not. If not, the cumulative pixel number l is incremented in step S45, and the same processing is performed for the (l + 1) th pixel in steps S42 and 43. On the other hand, if the result is affirmative, the process proceeds to step S46. The maximum value Q among the calculated maximum values ΔD maxl is calculated. Then, in step S47, it is determined whether or not the maximum value Q exceeds a predetermined value G, and if it is affirmative, averaging that is easily affected by dust on the shading plate 18 (see FIG. 1). If there is a singular point in the method, proceed to step S49 to select the peak hold method that is less likely to be affected by dust and the like, and if not, proceed to step S48 and hold the peak hold variation of the correction reference data obtained by shading. Choose less averaging method than by method.
Finally, in step S50, the selector 68 (see FIG. 6) is set according to the selected shading method to operate either the first or second shading circuit 65 or 66, and the process returns to the main routine.

【0029】図11は、図9で述べたシェーディング方
法の切替ステップS33のサブルーチンの第2例を示す
フローチャートである。このサブルーチンは、次のよう
に行なわれる。まず、CPU73は、ステップS51
で、図6の第1,第2シェーディング回路65,66に夫
々生成,格納された画素毎の補正基準データの読み出し
範囲,つまりj〜k番目の画素を設定し、ステップS5
2で、第1シェーディング回路65から上記範囲のデー
タを読み出し、ステップS53で、読み出したデータの
標準偏差σ1を算出する。次いで、ステップS54で、
第2シェーディング回路66から上記範囲のデータを読
み出し、ステップS55で、読み出したデータの標準偏
差σ2を算出する。そして、ステップS56で、上記両
標準偏差σ12の大きさを比較し、標準偏差σ1がσ2
を超える場合は、データのばらつきがより小さいσ2側,
つまりピークホールド方式をステップS58で選択し、
標準偏差σ1がσ2以下の場合は、データのばらつきがよ
り小さい平均化方式をステップS57で選択する。最後
に、上述と同様にセレクタ68を上記選択に応じてセッ
トして、メインルーチンにリターンする。
FIG. 11 is a flow chart showing a second example of the subroutine of the switching step S33 of the shading method described in FIG. This subroutine is performed as follows. First, the CPU 73 causes the step S51.
Then, the read range of the correction reference data for each pixel generated and stored in the first and second shading circuits 65 and 66 of FIG. 6, that is, the jth to kth pixels are set, and step S5
In step 2, the data in the above range is read from the first shading circuit 65, and in step S53, the standard deviation σ 1 of the read data is calculated. Then, in step S54,
The data in the above range is read from the second shading circuit 66, and the standard deviation σ 2 of the read data is calculated in step S55. Then, in step S56, the two standard deviations σ 1 and σ 2 are compared, and the standard deviation σ 1 is σ 2
, The variation of the data is smaller on the σ 2 side,
That is, the peak hold method is selected in step S58,
If the standard deviation σ 1 is less than or equal to σ 2 , the averaging method with smaller data variation is selected in step S57. Finally, the selector 68 is set according to the above selection in the same manner as described above, and the process returns to the main routine.

【0030】図12は、シェーディング板上にごみがあ
る場合に、CCD14のライン状画素で読み取られるデ
ータを示している。図12(A)に示すように、主走査方
向xに画素が一直線に並んだCCDが、副走査方向yに
幅Wの範囲で位置を変えてn本のラインで、中央にごみ
19があるシェーディング18を読み取った場合、各ラ
インの読み取りデータは、図12(B)〜(E)に示すよう
になる。即ち、CCDの出力は、概ね光源の配光の影響
で中央部が高くなった凸状のカーブになるが、CCDが
ごみ19の上を通る図12(D)だけは、ごみの位置に相
当する画素の出力がごみの吸光の影響を受けて急峻に低
下している。
FIG. 12 shows data read by the linear pixels of the CCD 14 when dust is present on the shading plate. As shown in FIG. 12 (A), a CCD in which pixels are arranged in a straight line in the main scanning direction x changes its position in the width W range in the sub scanning direction y, and has n lines with a dust 19 in the center. When the shading 18 is read, the read data of each line is as shown in FIGS. That is, the output of the CCD becomes a convex curve whose central portion becomes high due to the influence of the light distribution of the light source, but only the position where the CCD passes the dust 19 in FIG. 12D corresponds to the dust position. The output of the corresponding pixel sharply drops under the influence of the absorption of dust.

【0031】図13,図14は、図12(A)に示したシ
ェーディング板から読み取られた図12(B)〜(E)に示
すデータを、平均化方式,ピークホールド方式で夫々処
理した後のシェーディング補正基準データを示してい
る。図13(A)に示した平均化方式による補正基準デー
タは、この方式が各ラインの読取りデータを画素毎に平
均しているため、ごみ19の位置に相当する箇所で凹部
26が見られる一方、その他の箇所ではショットノイズ
等によるデータのばらつきが平均されるので、図13
(B)の部分拡大図(図13(A)のb部に相当)に示すよう
に隣接する補正基準データ間のばらつきが小さくなって
いる。なお、後に読み取った原稿画像を、上記凹部26
をもつ不完全な補正基準データでシェーディング補正し
てしまうと、凹部に相当する箇所にいわゆるシェーディ
ング筋が現われる。一方、図14(A)に示したピークホ
ールド方式による補正基準データは、この方式が画素毎
に複数ラインのピーク値をホールドしているため、ごみ
19の位置に相当する画素のデータは、ごみによる小さ
い値のデータの代わりにその前後のラインの大きい値の
データがホールドされるから、ごみ位置の補正基準デー
タには図13(A)の凹部26の如き凹みが現われない一
方、図14(B)の部分拡大図(図14(A)のb部に相当)
のピーク27に示すように、ショットノイズ等の影響に
よって隣接する補正基準データ間のばらつきが大きくな
っている。なお、後に読み取った原稿画像を、上記ノイ
ズピーク27をもつ不完全な補正基準データでシェーデ
ィング補正してしまうと、ピークに相当する箇所にいわ
ゆるシェーディング筋が現われる。
FIGS. 13 and 14 show the data shown in FIGS. 12B to 12E read from the shading plate shown in FIG. 12A after being processed by the averaging method and the peak hold method, respectively. 3 shows shading correction reference data. In the correction reference data by the averaging method shown in FIG. 13 (A), since this method averages the read data of each line for each pixel, the concave portion 26 is seen at a position corresponding to the position of the dust 19. Since the data variations due to shot noise and the like are averaged at other locations,
As shown in the partially enlarged view of FIG. 13B (corresponding to part b of FIG. 13A), the variation between the adjacent correction reference data is small. It should be noted that the original image read later is used as the concave portion 26.
If the shading correction is performed with the incomplete correction reference data having, a so-called shading streak appears at a portion corresponding to the concave portion. On the other hand, in the correction reference data by the peak hold method shown in FIG. 14A, since this method holds the peak values of a plurality of lines for each pixel, the data of the pixel corresponding to the position of the dust 19 is the dust. Since the large value data of the preceding and following lines are held in place of the small value data of FIG. 14, the dents such as the concave portion 26 of FIG. 13 (A) do not appear in the dust reference correction reference data, while FIG. Partial enlarged view of B) (corresponding to part b of FIG. 14A)
As indicated by the peak 27, the variation between adjacent correction reference data is large due to the influence of shot noise and the like. If the original image read later is shading-corrected with the incomplete correction reference data having the noise peak 27, so-called shading streaks appear at the position corresponding to the peak.

【0032】図15は、シェーディング板をCCDで読
み取った場合のCCDの各画素の出力を第1シェーディ
ング回路65(図6参照)により平均化処理して得られた
補正基準データを図解的に示している。図15(A)は、
l番目の注目画素(図中の黒丸)を含むその前後m個の画
素に対応するシェーディング板上にごみがない場合のC
CD出力を示しており、注目画素と周辺の画素のデータ
相互間の差ΔDの最大値−ΔDmax;+ΔDmaxは、ごみ
が無いため所定値以内に収まっている。一方、図15
(B)は、注目画素l(図中の黒丸)に対応するシェーディ
ング板上にごみがある場合のCCD出力を示しており、
周辺画素とのデータ差ΔDの最大値ΔDmaxは、ごみの
ために注目画素のデータが大きく低下するため所定値を
超えることになる。
FIG. 15 schematically shows the correction reference data obtained by averaging the output of each pixel of the CCD when the shading plate is read by the CCD by the first shading circuit 65 (see FIG. 6). ing. FIG. 15A shows
C when there is no dust on the shading plate corresponding to m pixels before and after the 1st pixel of interest (black circle in the figure)
The CD output is shown, and the maximum value −ΔD max ; + ΔD max of the difference ΔD between the data of the target pixel and the data of the peripheral pixels is within a predetermined value because there is no dust. On the other hand, FIG.
(B) shows the CCD output when there is dust on the shading plate corresponding to the target pixel 1 (black circle in the figure),
The maximum value ΔD max of the data difference ΔD with the peripheral pixels exceeds a predetermined value because the data of the pixel of interest is greatly reduced due to dust.

【0033】そこで、図15(A)に示す最大値±ΔD
maxは、図10で述べたQに相当し、これが所定値G以
内であるので、単なるデータのばらつきと判断されると
ともに、同図のステップS47で否と判断されて、平均
化のシェーディング方式,つまり第1シェーディング回
路65が選択される一方、図15(B)に示す最大値ΔD
max=Qは、所定値Gを超えているので、シェーディン
グ板上にごみがあると判断されるとともに、上記ステッ
プS47で肯と判断されて、ピークホールドのシェーデ
ィング方式,つまり第2シェーディング回路66が選択
される。つまり、シェーディング板上にごみが有っても
無かっても、生成される補正基準データのばらつきが小
さい方のシェーディング方式が原稿読取り時(本スキャ
ン)に採用されるので、シェーディング筋などの欠陥の
ない良好な原稿読取り画像を得ることができる。
Therefore, the maximum value ± ΔD shown in FIG.
Since max corresponds to Q described in FIG. 10 and is within the predetermined value G, it is determined that it is a mere variation in data, and it is determined no in step S47 in the figure, and the averaging shading method, That is, while the first shading circuit 65 is selected, the maximum value ΔD shown in FIG.
Since max = Q exceeds the predetermined value G, it is determined that there is dust on the shading plate, and affirmative in step S47, and the peak hold shading method, that is, the second shading circuit 66 is To be selected. In other words, the shading method with the smaller variation in the generated correction reference data is used during document reading (main scan) regardless of whether or not there is dust on the shading plate. It is possible to obtain a good original read image.

【0034】図11で述べたシェーディング方法の切
替、つまり両シェーディング方式で得られた補正基準デ
ータの標準偏差σ12の大小を比較して切替を行なう
場合も同様である。即ち、シェーディング板上のごみ等
を読み取った場合、得られる補正基準データは、図15
(B)と図14(B)の比較から明らかなように、ピークホ
ールド方式の方がばらつき,つまり標準偏差が小さく、
逆に、ごみ等の無いシェーディング板を読み取った場合
は、得られる補正基準データは、図13(B)と図14
(B)の比較から明らかなように、平均化方式の方がばら
つき,つまり標準偏差が小さい。従って、図11のステ
ップS56〜S58で、シェーディング板上にごみが有
っても無かっても、生成される補正基準データのばらつ
きが小さい方のシェーディング方式が原稿読取り時(本
スキャン)に採用されることになるので、シェーディン
グ筋などの欠陥のない良好な原稿読取り画像を得ること
ができるのである。
The same applies to the switching of the shading method described with reference to FIG. 11, that is, switching between the standard deviations σ 1 and σ 2 of the correction reference data obtained by both shading methods. That is, when the dust or the like on the shading plate is read, the correction reference data obtained is as shown in FIG.
As is clear from the comparison between (B) and FIG. 14 (B), the peak hold method has more variation, that is, the standard deviation is smaller,
On the contrary, when the shading plate without dust is read, the obtained correction reference data is as shown in FIG.
As is clear from the comparison of (B), the averaging method has a smaller variation, that is, a smaller standard deviation. Therefore, in steps S56 to S58 in FIG. 11, the shading method with the smaller variation in the generated correction reference data is adopted at the time of reading the original (main scan) regardless of whether or not there is dust on the shading plate. Therefore, it is possible to obtain a good original read image without defects such as shading streaks.

【0035】図16は、図9で述べたごみ検出のステッ
プS27のサブルーチンを示すフローチャートである。
このサブルーチンは、次のように行なわれる。まず、C
PU73(図6参照)は、ステップS61で、図6の第1
シェーディング回路65に生成,格納された平均化方式
による補正用生データを順次読み出し、図17のサブル
ーチンで後述するステップS62で、各注目画素とその
前後の画素のデータ相互間の差を算出し、算出されたデ
ータ差の最大値Qを求める。次に、ステップS63で、
上記最大値Qが予め定められた値Gを超えるか否かを判
断し、肯の場合は、ステップS64でごみ等に起因する
特異画素データが有るとして平均化方式側のフラグaを
a=1にセットする一方、否の場合は、ステップS65
で特異画素データが無いとして上記フラグaをa=0に
セットする。次に、ステップS66で、図6の第2シェ
ーディング回路66に生成,格納されたピークホールド
方式による補正用生データを順次読み出し、ステップS
67で、各注目画素とその前後の画素のデータ相互間の
差を算出し、算出されたデータ差の最大値Qを求める。
そして、ステップS68で、上記最大値Qが予め定めら
れた値Gを超えるか否かを判断し、肯の場合は、ステッ
プS69でごみ等に起因する特異画素データが有るとし
てピークホールド方式側のフラグbをb=1にセットす
る一方、否の場合は、ステップS70で特異画素データ
が無いとして上記フラグbをb=0にセットする。
FIG. 16 is a flow chart showing a subroutine of the dust detection step S27 described in FIG.
This subroutine is performed as follows. First, C
In step S61, the PU 73 (see FIG. 6) performs the first
The correction raw data generated and stored in the shading circuit 65 by the averaging method are sequentially read out, and in step S62 described later in the subroutine of FIG. 17, the difference between the data of each pixel of interest and the pixels before and after it is calculated, The maximum value Q of the calculated data differences is obtained. Next, in step S63,
It is determined whether or not the maximum value Q exceeds a predetermined value G, and if the result is affirmative, it is determined in step S64 that there is peculiar pixel data due to dust or the like, and the averaging method flag a is set to a = 1 On the other hand, if not, step S65
Then, the flag a is set to a = 0 because there is no peculiar pixel data. Next, in step S66, the correction raw data generated and stored in the second shading circuit 66 of FIG.
At 67, the difference between the data of each pixel of interest and the pixels before and after it is calculated, and the maximum value Q of the calculated data differences is obtained.
Then, in step S68, it is determined whether or not the maximum value Q exceeds a predetermined value G. If the result is affirmative, it is determined in step S69 that there is peculiar pixel data due to dust or the like, and the peak hold method side On the other hand, while setting the flag b to b = 1, in the case of no, the flag b is set to b = 0 because there is no unique pixel data in step S70.

【0036】続いて、CPU73は、ステップS71
で、両フラグa,bの論理積a×bが1であるか否かを
判断する。ここで、シェーディング板上のごみ等は読取
りラインの例えば1つで読み取られるから、このごみ等
に起因する特異データは、特異データの影響が補正用生
データに残る平均化方式にのみ現われる一方、シェーデ
ィング板以外の光学系のごみ等は読取りラインの総てで
読み取られるから、このごみ等に起因する特異データ
は、平均化方式のみならずピークホールド方式の補正用
生データにも現われることになる。そこで、上記判断ス
テップS71で、肯,つまり両方式に特異データがある
場合は、ステップS72に進んでミラー12(図1参照)
を含む光学系にごみ等が有ると判断される一方、否の場
合は、ステップS73に進んでフラグaが1であるか否
かが判断され、a=1なら平均化方式の補正用生データ
に特異データがあるのでステップS74でシェーディン
グ板上にごみ等が有ると判断し、a=0ならステップS
75でごみ等が無いと判断される。こうして、以上のス
テップを終了すると、メインルーチンにリターンする。
Subsequently, the CPU 73 causes the step S71.
Then, it is determined whether the logical product a × b of both flags a and b is 1. Here, since dust and the like on the shading plate is read by, for example, one of the reading lines, the peculiar data caused by the dust and the like appears only in the averaging method in which the influence of the peculiar data remains in the correction raw data. Since dusts of optical systems other than the shading plate are read in all the reading lines, the peculiar data caused by the dusts will appear not only in the averaging method but also in the correction raw data of the peak hold method. . Therefore, in the judgment step S71, if there is singular, that is, peculiar data in both formulas, the process proceeds to step S72 and the mirror 12 (see FIG. 1).
On the other hand, if it is determined that there is dust or the like in the optical system including, the process proceeds to step S73 to determine whether the flag a is 1, and if a = 1, the correction raw data of the averaging method is used. Since there is peculiar data in step S74, it is determined in step S74 that there is dust on the shading plate, and if a = 0, step S74.
At 75, it is determined that there is no garbage. When the above steps are completed in this way, the process returns to the main routine.

【0037】図17は、図16で述べた各注目画素とそ
の前後の画素のデータ相互間の差を算出するステップS
62,S67のサブルーチンを示すフローチャートであ
る。このサブルーチンでは、ステップ76で、順次読み
出された平均化方式またはピークホールド方式による補
正用生データについて、注目画素lとその前後m個の画
素のデータ相互間の差ΔD-m〜ΔD+mを算出し、ステッ
プS77で、算出されたデータ差の最大値ΔDmaxlを求
める。次に、ステップS78で、注目画素の累計数lが
所定値Pに達したか否かを判断し、否の場合は、ステッ
プS79で画素累計数lをインクリメントして,(l+1)番
目の画素についてステップS76,77で同様の処理を
行なう一方、肯の場合は、ステップS90に進んで、算
出された最大値ΔDmaxlの中で最大のものQを算出した
後、メインルーチンへリターンする。
FIG. 17 is a step S for calculating the difference between the data of each pixel of interest described in FIG. 16 and the data before and after it.
62 is a flowchart showing a subroutine of S67. In this subroutine, in step 76, with respect to the correction raw data sequentially read by the averaging method or the peak hold method, the difference ΔD −m to ΔD + m between the data of the target pixel 1 and the data of m pixels before and after the target pixel 1. Is calculated, and the maximum value ΔD maxl of the calculated data difference is obtained in step S77. Next, in step S78, it is determined whether or not the cumulative number l of the target pixels has reached the predetermined value P. If not, the cumulative pixel number l is incremented in step S79 to obtain the (l + 1) th pixel. While the same processing is performed for the pixel of step S76, 77, if the result is affirmative, the process proceeds to step S90 to calculate the maximum Q among the calculated maximum values ΔD maxl , and then return to the main routine. .

【0038】図18は、光学読取系と、シェーディング
板18と、ごみ19があるミラー12aと、CCD14
により複数ラインでシェーディング板を読み取ったとき
の出力とを示している。上記光学読取系は、図18(A)
に示すように図1で既述のシェーディング板18、光源
11、3つのミラー12a,12b,12c、レンズ13およ
びCCD14からなる。シェーディング板18上には、
図18(B)に示すようにごみ等はなく、ミラー12aの
略中央の読取り線L上に図18(C)に示すようなごみ1
9がある。図18(D)〜(F)は、CCD14をシェーデ
ィング板18の副走査方向yに移動させて1,2,n番目
のラインで読み取ったときの出力を示しているが、ミラ
ー12a上のごみ19に起因していずれの出力曲線にも
略中央に凹部28が現れている。これは、シェーディン
グ板上で読取り位置を移動させても、反射光の光路は図
18(A)から分かるように常にミラー12a〜12cの略
中央を通るからである。ここで、仮にごみがミラー上で
なく、シェーディング板18上にあるなら、読取り位置
の移動により既述の図12(B),(C),(E)の如く凹部が
現われなくなるのである。
FIG. 18 shows an optical reading system, a shading plate 18, a mirror 12a having dust 19, and a CCD 14.
Shows the output when the shading plate is read by a plurality of lines. The optical reading system is shown in FIG.
As shown in FIG. 1, the shading plate 18, the light source 11, the three mirrors 12a, 12b, and 12c, the lens 13, and the CCD 14 described above with reference to FIG. On the shading plate 18,
There is no dust or the like as shown in FIG. 18 (B), and dust 1 as shown in FIG. 18 (C) is placed on the read line L at substantially the center of the mirror 12a.
There is 9. 18D to 18F show the output when the CCD 14 is moved in the sub-scanning direction y of the shading plate 18 and read at the 1st, 2nd, and nth lines. Due to No. 19, a concave portion 28 appears in the center of each output curve. This is because even if the reading position is moved on the shading plate, the optical path of the reflected light always passes through substantially the center of the mirrors 12a to 12c as can be seen from FIG. 18 (A). Here, if the dust is not on the mirror but on the shading plate 18, the concave portion will not appear as shown in FIGS. 12B, 12C, and 12E due to the movement of the reading position.

【0039】図19(A),(B)は、図18(D)〜(F)の
CCD出力を平均化方式で処理して第1シェーディング
回路65(図6参照)に格納,またはピークホールド方式
で処理して第2シェーディング回路66に格納される補
正用生データを夫々示している。この場合、図18(D)
〜(F)のどのラインのCCD出力にもミラーのごみに起
因する凹部28があるため、図19(A)の平均化方式で
凹部29が現われるのみならず、図19(B)のピークホ
ールド方式でも凹部30が現われるのである。従って、
このような平均化,ピークホールドの両方式における凹
部の現われ方の差異に基づいて、ごみ等がシェーディン
グ板上にあるのか、あるいはミラーを含む光学系にある
のかを判断することができる。
19A and 19B, the CCD output of FIGS. 18D to 18F is processed by the averaging method and stored in the first shading circuit 65 (see FIG. 6), or peak hold. The correction raw data processed by the method and stored in the second shading circuit 66 are shown. In this case, FIG. 18 (D)
Since the CCD output of any line of (F) to (F) has a concave portion 28 caused by dust on the mirror, not only the concave portion 29 appears in the averaging method of FIG. 19 (A) but also the peak hold of FIG. 19 (B). The concave portion 30 also appears in the method. Therefore,
Based on the difference in how the concave portions appear in both the averaging and peak hold systems, it is possible to determine whether dust or the like is on the shading plate or in the optical system including the mirror.

【0040】図20は、図9で述べたノイズ量検出のス
テップS31のサブルーチンを示すフローチャートであ
る。請求項2の判定手段としてのCPU73(図6参照)
は、平均化方式で得られた補正基準データ(補正用生デ
ータ)とピークホールド方式で得られた補正基準データ
の差を所定領域の複数画素について算出し、算出した差
の平均値を求め、この平均値が所定値以上であるか否か
を判断することによって画像データに重畳されているノ
イズの大きさを判定する。即ち、CPU73は、ステッ
プS91で平均化方式による補正基準データを、ステッ
プS92でピークホールド方式による補正基準データを
夫々読み出し、ステップS93で、読み出した両補正基
準データの差を画素毎に求め、次いでステップS94
で、求めた差の中央部所定範囲(図21(B)参照)におけ
る平均値Mを算出して、メインルーチンにリターンす
る。
FIG. 20 is a flow chart showing the subroutine of step S31 for noise amount detection described in FIG. CPU 73 as the determination means of claim 2 (see FIG. 6)
Is the difference between the correction reference data obtained by the averaging method (correction raw data) and the correction reference data obtained by the peak hold method is calculated for a plurality of pixels in a predetermined area, and the average value of the calculated differences is calculated. The magnitude of noise superimposed on the image data is determined by determining whether or not this average value is equal to or greater than a predetermined value. That is, the CPU 73 reads the correction reference data by the averaging method at step S91 and the correction reference data by the peak hold method at step S92, obtains the difference between the read correction reference data for each pixel at step S93, and then, Step S94
Then, an average value M of the calculated difference in a predetermined central portion range (see FIG. 21B) is calculated, and the process returns to the main routine.

【0041】図21,22は、夫々ノイズ量が小さい,大
きい場合について、図20で述べたノイズ量検出の手法
を図解的に示している。まず、ノイズ量が小さい図21
において、CCD14(図1参照)により複数ラインで読
み取られたシェーディング板18のデータは、画素を横
軸に,その出力を縦軸にとって重ね合わせて示すと図2
1(A)のようになり、画素データは、蛍光灯光源の配光
特性のため中央部が高くなった凸状のカーブをなして所
定幅Wで分布する。そして、これらの画素データから平
均化方式によって得られた補正基準データは、複数ライ
ンのデータを画素毎に平均するので、上記所定幅Wの中
央を通る曲線S1となる一方、上記画素データからピー
クホールド方式によって得られた補正基準データは、複
数ラインのデータを画素毎にピークホールドするので、
上記所定幅Wの上縁を通る曲線S2となる。ここで、両
方式による補正基準データの差(差分)、つまり上記曲線
S2と曲線S1の差を求めると、この差Mは、図21
(B)に示すように、ノイズ量が小さいので所定値mより
も小さくなる。なお、図20のステップS94では、上
記曲線S1,S2の差の中央部所定範囲Rにおける平均
値をMとしているが、CPU73は、請求項1で定義す
る判定手段として、S1,S2の差Mを画素毎に所定値
mと比較してノイズ量の大小を判定することもできる。
21 and 22 schematically show the noise amount detection method described in FIG. 20 when the noise amount is small and large, respectively. First, the amount of noise is small in FIG.
2, the data of the shading plate 18 read in a plurality of lines by the CCD 14 (see FIG. 1) is shown by superimposing the pixel on the horizontal axis and the output on the vertical axis.
1 (A), the pixel data is distributed with a predetermined width W in a convex curve having a high central portion due to the light distribution characteristics of the fluorescent light source. Then, the correction reference data obtained from these pixel data by the averaging method averages the data of a plurality of lines for each pixel, so that it becomes a curve S1 passing through the center of the predetermined width W, while peaking from the pixel data. The correction reference data obtained by the hold method peak-holds the data of a plurality of lines for each pixel,
The curve S2 passes through the upper edge of the predetermined width W. 21. Here, when the difference (difference) between the correction reference data by both equations, that is, the difference between the curve S2 and the curve S1 is obtained, this difference M is
As shown in (B), since the noise amount is small, it becomes smaller than the predetermined value m. Note that, in step S94 of FIG. 20, the average value of the difference between the curves S1 and S2 in the central predetermined range R is M, but the CPU 73 uses the difference M between S1 and S2 as the determination means defined in claim 1. Can be compared with a predetermined value m for each pixel to determine the magnitude of the noise amount.

【0042】ノイズ量が大きい場合は、シェーディング
板の複数ラインによる読取りデータは、図22(A)に示
すように、より広い所定幅W'をもつ凸状のカーブをな
して分布し、これらのデータから平均化,ピークホール
ドの各方式で得られた補正基準データは、夫々曲線S
1',S2'となる。ここで、両補正基準データの中央部
所定範囲Rにおける差の平均値を求めると、この平均値
M'は、図22(B)に示すように、ノイズ量が大きいの
で上記所定値mよりも大きくなる。この場合も、CPU
73は、請求項1で定義する判定手段として、S1',S
2'の差M'を画素毎に所定値mと比較してノイズ量の大
小を判定することができる。
When the amount of noise is large, the read data by a plurality of lines on the shading plate are distributed in the form of a convex curve having a wider predetermined width W ', as shown in FIG. The correction reference data obtained by the averaging and peak hold methods from the data are respectively the curve S
1 ', S2'. Here, when the average value of the difference in the center predetermined range R of both correction reference data is calculated, this average value M ′ is larger than the predetermined value m because the noise amount is large as shown in FIG. 22 (B). growing. Also in this case, the CPU
Reference numeral 73 denotes S1 ′, S as the determination means defined in claim 1.
It is possible to determine the magnitude of the noise amount by comparing the difference M ′ of 2 ′ with the predetermined value m for each pixel.

【0043】図23は、図9で述べた警告処理のステッ
プS32のサブルーチンを示すフローチャートである。
請求項3の警告手段としてのCPU73は、上述の手法
でノイズ量が大きいと判定したとき、警告を発する。即
ち、CPU73は、ステップS95で、両補正基準デー
タの差(またはこの差の平均値)Mが所定値mを超えるか
否かを判断し、肯の場合のみ、ノイズが大きいと判断し
てステップS96に進んで、「ノイズ大」の警告を画像
読取り装置の表示部に表示させた後、メインルーチンに
リターンする。
FIG. 23 is a flow chart showing the subroutine of step S32 of the warning processing described in FIG.
The CPU 73 as the warning means of claim 3 issues a warning when it is determined that the amount of noise is large by the above method. That is, the CPU 73 determines in step S95 whether the difference (or average value of the differences) M between the two correction reference data exceeds a predetermined value m. Only when the difference is affirmative, it is determined that the noise is large. After proceeding to S96 to display a "noisy" warning on the display unit of the image reading apparatus, the process returns to the main routine.

【0044】図24は、判定手段が判定したノイズの大
小に応じて原稿を照らす光源の光量を増減する請求項4
の光量調整手段としてのCPU73(図6参照)の処理フ
ローを示しており、この処理は、図9で述べたステップ
S32の警告処理のサブルーチンに含まれる。CPU7
3は、まずステップS101で、ノイズ量検出フロー(図2
0参照)で算出された平均化とピークホールドの両方式
による補正基準データの差の中央部所定範囲における平
均値Mが、所定値mよりも大きいか否かを判断し、肯な
ら、画像データに多くのノイズが重畳しているとして、
ランプ(光源)光量を上げることでノイズ低減を図るべく
ステップS102に進む。そして、このステップで、ラン
プの調光レベルが最大かどうかを判断し、最大でなけれ
ば,ステップS103に進んでランプ光量を所定量増加させ
る一方、ランプ光量が最大であれば,光量を増やせない
のでステップS104に進んで画像ノイズが大きいことを
表示などにより警告させ、その後いずれの場合もメイン
ルーチンへリターンする。また、ステップS101で、上
記平均値Mが所定値m以下と判断されると、ランプ光量
の減少により消費電力削減を図るべくステップS105に
進んで、ランプ調光レベルが最小かどうかを判断する。
そして、ランプ調光レベルが最小でないと判断すれば、
ステップS106に進んでランプこのを所定量減少させた
後、メインルーチンへリターンする一方、最小であれ
ば、光量を減らせないのでそのままメインルーチンへリ
ターンする。
24. The light quantity of the light source for illuminating the original is increased or decreased according to the magnitude of the noise judged by the judging means.
7 shows the processing flow of the CPU 73 (see FIG. 6) as the light amount adjusting means of FIG. 6, and this processing is included in the warning processing subroutine of step S32 described in FIG. CPU7
3. First, in step S101, the noise amount detection flow (see FIG.
0)), it is determined whether the average value M of the difference between the correction reference data obtained by both the averaging and peak hold equations in the central predetermined range is larger than the predetermined value m. As much noise is superimposed on
The process proceeds to step S102 in order to reduce noise by increasing the light amount of the lamp (light source). Then, in this step, it is determined whether or not the dimming level of the lamp is the maximum, and if it is not the maximum, the process proceeds to step S103 to increase the lamp light amount by a predetermined amount, while if the lamp light amount is the maximum, the light amount cannot be increased. Therefore, the process proceeds to step S104 to warn by display that the image noise is large, and then returns to the main routine in any case. If it is determined in step S101 that the average value M is less than or equal to the predetermined value m, the process proceeds to step S105 to reduce the power consumption by reducing the lamp light amount, and it is determined whether or not the lamp dimming level is minimum.
Then, if it is determined that the lamp dimming level is not the minimum,
After proceeding to step S106, the lamp is reduced by a predetermined amount, and then the process returns to the main routine. On the other hand, if it is minimum, the light amount cannot be reduced, and therefore the process directly returns to the main routine.

【0045】図25は、判定手段がノイズが大きい判別
したとき、文字読取りモードのみを使用可能にする請求
項6の読取り制限手段としてのCPU73(図6参照)の
処理フローを示しており、この処理は、図9で述べたス
テップS32の警告処理のサブルーチンに含まれる。C
PU73は、まずステップS111で、ノイズ量検出フロ
ー(図20参照)で算出された平均化とピークホールドの
両方式による補正基準データの差の中央部所定範囲にお
ける平均値Mが、大きい方の所定値m1よりも大きいか
否かを判断し、肯なら、画像データに多くのノイズが重
畳しているとして、ステップS114にジャンプして画像
ノイズが大きいことを表示などにより警告させた後,メ
インルーチンにリターンする一方、否なら、ステップS
112に進んで上記平均値Mが小さい方の所定値m2よりも
大きいか否かをさらに判断する。そして、このステップ
で、否と判断すると、画像ノイズが小さいとしてそのま
まメインルーチンへリターンする一方、肯と判断する
と、ステップS113に進んで、設定されているモードが
文字または写真のいずれであるかを判断する。上記ステ
ップS113で、写真モードと判断すると、中間調の再現
も必要になるから、ノイズがこの程度でも問題になるの
で、ステップS114に進んで画像ノイズが大きいことを
警告させる一方、文字モードと判断すると、白黒の2値
データであるから、この程度のノイズは影響しないの
で、警告させずにそのままメインルーチンへリターンす
る。つまり、ノイズが中程度に大きい場合は、読取りに
おいて文字モードのみを使用可能にし、写真モードを使
用不可能にするのである。
FIG. 25 shows a processing flow of the CPU 73 (see FIG. 6) as the reading restricting means of claim 6 which enables only the character reading mode when the judging means judges that the noise is large. The process is included in the warning process subroutine of step S32 described in FIG. C
First, in step S111, the PU 73 determines that the average value M in the central predetermined range of the difference between the correction reference data calculated by the noise amount detection flow (see FIG. 20) by both the averaging method and the peak hold method is larger. determining whether greater than the value m 1, if affirmative, a lot of noise in the image data is superimposed, after a warning by a display that image noise is large jumps to step S114, the main While returning to the routine, if not, step S
In step 112, it is further determined whether or not the average value M is larger than the smaller predetermined value m 2 . Then, in this step, if it is determined to be no, the process returns to the main routine as it is because the image noise is small, and if it is determined to be affirmative, the process proceeds to step S113 to determine whether the set mode is character or photograph. to decide. If it is determined in the step S113 that the mode is the photo mode, it is necessary to reproduce the halftone, so noise is a problem even at this level. Therefore, the process proceeds to step S114 to warn that the image noise is large, while the mode is determined to be the character mode. Then, since it is binary data of black and white, noise of this degree does not affect, and the process directly returns to the main routine without warning. That is, when the noise is moderately high, only the character mode is enabled for reading and the photo mode is disabled.

【0046】図26は、消灯状態においても判定手段が
ノイズの大きさを判定し、光源点灯時および消灯時の判
定手段の判定結果に基づいて、ノイズの原因が光学系ま
たは電気回路のいずれにあるかを判断するノイズ原因判
断手段をさらに備えた請求項7の一例としてのCPU7
3(図6参照)の処理フローを示している。CPU73
は、点検員により図示しないサービスマンモード釦が押
されると、ステップS121で、操作パネルの表示をサー
ビスマン用に変化させ、ステップS122で、この操作パネ
ル上の図示しないノイズ原因解析モード釦が押される
と、ノイズ原因解析モードを開始する。そして、ステッ
プS123で、ランプ(光源)11を点灯し、ステップS124
で、読取りスライダをシェーディング板18へ移動さ
せ、ステップS125で、スライダがシェーディング位置
まで達したと判断すると、ステップS126に進んで電気
回路のゲイン調整を行なう。そして、ステップS127
で、回路ゲインが最小か否かを判断し、最小でない場合
は、回路系が飽和していないのでシェーディングデータ
の読込みおよびノイズ量の検出を行なうべく、ステップ
S137に進む一方、最小の場合は、ランプの光量が十分
にあるとして上記処理を省略して、ステップS128へジ
ャンプする。
In FIG. 26, the determination means determines the magnitude of noise even when the light source is off, and the cause of the noise is either the optical system or the electric circuit based on the determination result of the determination means when the light source is on or off. The CPU 7 as an example of claim 7, further comprising noise cause determining means for determining whether there is any noise.
3 (see FIG. 6) is shown. CPU73
When the serviceman mode button (not shown) is pressed by the inspector, the display on the operation panel is changed to the serviceman display in step S121, and the noise cause analysis mode button (not shown) on this operation panel is pressed in step S122. Then, the noise cause analysis mode is started. Then, in step S123, the lamp (light source) 11 is turned on, and in step S124
Then, the reading slider is moved to the shading plate 18, and if it is determined in step S125 that the slider has reached the shading position, the process proceeds to step S126 to adjust the gain of the electric circuit. Then, in step S127
Then, it is determined whether or not the circuit gain is the minimum. If it is not the minimum, the circuit system is not saturated, so that the processing proceeds to step S137 in order to read the shading data and detect the noise amount. Assuming that the light quantity of the lamp is sufficient, the above process is omitted and the process jumps to step S128.

【0047】ステップS137では、シェーディング板か
らデータを読み込み、ステップS138で、図20のサブ
ルーチンで述べた両シェーディング方式の差分によるノ
イズ量検出を行ない、ステップS139で、差分の平均値
Mが所定値mよりも大きいか否かを判断する。そして、
このステップS139で否と判断すれば、ノイズ量が小さ
いのでステップS146を経て問題無しとして処理を終了
する。一方、ステップS139で肯と判断すれば、ステッ
プS140に進んでノイズ量が大きいと判定した後、ステ
ップS141で、ランプ調光レベルが最大かどうかを判断
し、最大でなければ,ステップS142に進んでランプ光量
を所定量増加させる一方、最大であれば,ランプに欠陥が
ないかどうかを調べるべく、ステップS143に進んで、
ランプ光量モニタセンサ76(図6参照)からの検出信号
が表わす光量モニタ値Lが所定値Pよりも大きいか否か
を判断する。そして、否の場合は、光量不足なのでステ
ップS144で、ランプ不良と判断し、ステップS145で、
操作パネルにその旨の表示1を行なって処理を終了す
る。
In step S137, the data is read from the shading plate, in step S138 the noise amount is detected by the difference between the two shading methods described in the subroutine of FIG. 20, and in step S139, the average value M of the differences is a predetermined value m. Is greater than or equal to. And
If it is determined to be no in step S139, the noise amount is small, and therefore the process ends after step S146 without any problem. On the other hand, if affirmative is determined in step S139, the process proceeds to step S140 and it is determined that the amount of noise is large. Then, in step S141, it is determined whether or not the lamp dimming level is maximum. If not, the process proceeds to step S142. While increasing the lamp light intensity by a predetermined amount in step S1, if it is the maximum, the process proceeds to step S143 in order to check whether the lamp has a defect,
It is determined whether or not the light quantity monitor value L represented by the detection signal from the lamp light quantity monitor sensor 76 (see FIG. 6) is larger than the predetermined value P. Then, in the case of no, since the light amount is insufficient, it is determined that the lamp is defective in step S144, and in step S145,
The display 1 to that effect is displayed on the operation panel, and the process is terminated.

【0048】上記ステップS143で肯の場合は、ランプ
は正常だから、また既述のステップS127で肯の場合
は、ゲインが最小で十分光量があるとして、ランプ以外
の光学系や電気回路の欠陥を調べるべく、ステップS12
8に進んで、ランプを消灯する。次いで、ステップS129
で、回路のゲインを最大に設定し、ステップS130で、
シェーディングデータを読み込み、ステップS131で、
図20のサブルーチンで述べた両シェーディング方式の
差分によるノイズ量検出を行なう。そして、ステップS
132で、差分の平均値Mが所定値mよりも大きいか否を
判断し、肯と判断すれば、ステップS133に進んで回路
側にノイズが重畳していると判断し、ステップS134で
操作パネルにその旨の表示2を行なって処理を終了す
る。また、ステップS132で否と判断すれば、回路系に
異常はないので、ステップS135に進んでランプ以外の
光学系に異常があるとして、ステップS136に進んでそ
の旨の表示3を行なって処理を終了する。
If the answer is YES in step S143, the lamp is normal. If the answer is YES in step S127, it is determined that the gain is minimum and the light intensity is sufficient. Step S12 to check
Go to 8 and turn off the lamp. Then, step S129.
Then, set the gain of the circuit to the maximum, and in step S130,
Read the shading data, and in step S131,
The amount of noise is detected by the difference between the two shading methods described in the subroutine of FIG. And step S
In 132, it is determined whether or not the average value M of the differences is larger than the predetermined value m, and if it is determined as affirmative, it is determined in step S133 that noise is superimposed on the circuit side, and in step S134 the operation panel. Then, display 2 to that effect is displayed, and the process is terminated. If it is determined to be no in step S132, there is no abnormality in the circuit system. Therefore, it is determined that there is an abnormality in the optical system other than the lamp in step S135, and the process proceeds to step S136 to display 3 to that effect and the processing is performed. finish.

【0049】図28は、図6で述べたランプ光量モニタ
センサ76が無い場合の図26に対応するノイズ原因判
断手段の一例の処理フローを示している。この処理フロ
ーは、図26の処理フローと比較して、図26のステッ
プS143〜S145が無く、ステップS141で、肯と判断し
たとき直ちにステップS128に進む点のみが異なるの
で、同じステップには同一番号を付して説明を省略す
る。この処理フローでは、ランプ光量モニタセンサ76
が無いため、ランプ不良を検知して表示することはでき
ないが、図26で述べたと同様にノイズが大きいときに
その原因が回路側またはランプ以外の光学系のどちらに
あるのかを検知して表示することができる。
FIG. 28 shows a processing flow of an example of the noise cause judging means corresponding to FIG. 26 when the lamp light amount monitor sensor 76 described in FIG. 6 is not provided. Compared with the processing flow of FIG. 26, this processing flow is different from that of FIG. 26 in that steps S143 to S145 of FIG. 26 are not provided, and the step proceeds to step S128 immediately when a positive determination is made in step S141. The numbers are attached and the description is omitted. In this processing flow, the lamp light amount monitor sensor 76
Since it is not possible to detect and display the lamp failure, it is possible to detect and display whether the cause is the circuit side or the optical system other than the lamp when there is a large amount of noise, as described in FIG. can do.

【0050】上記実施の形態では、本発明を複写機に適
用した例について説明したが、本発明は、複写機に限ら
ず、例えばコンピュータに画像情報を入力するための画
像入力装置などにも適用することができる。また、本発
明の警告手段は、上記操作パネルへの表示に限らず、音
や警報灯などによる異常報知であってもよい。さらに、
本発明の読取りモード制限手段は、ノイズが大きい場合
に、ノイズの影響を受けやすい読取りモードの使用を不
可能にするものであればよく、上記実施の形態の写真読
取りモードを禁止するものに限られない。
In the above embodiment, the example in which the present invention is applied to the copying machine has been described, but the present invention is not limited to the copying machine, and is also applied to, for example, an image input device for inputting image information to a computer. can do. Further, the warning means of the present invention is not limited to the display on the operation panel, but may be an alarm notification by sound or a warning light. further,
The reading mode limiting means of the present invention may be any one that makes it impossible to use the reading mode susceptible to noise when the noise is large, and is not limited to the one that prohibits the photo reading mode of the above embodiment. I can't.

【0051】[0051]

【発明の効果】以上の説明で明らかなように、本発明に
よれば、平均化とピークホールドの2つの異なったシェ
ーディング方式をシェーディング板を読み取り、両方式
で得られた補正基準データの差に基づいて、ランプを含
む光学系および電気回路に起因する画像ノイズや光源の
光量低下を検出することができ、読取り画像の劣化を未
然に防止して、シェーディング筋のない良好な原稿読取
り画像を得ることができる。
As is apparent from the above description, according to the present invention, two different shading methods of averaging and peak hold are read by the shading plate, and the difference between the correction reference data obtained by both methods is used. Based on this, it is possible to detect the image noise and the decrease in the light amount of the light source due to the optical system including the lamp and the electric circuit, prevent the read image from being deteriorated, and obtain a good original read image without shading streaks. be able to.

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

【図1】 本発明の画像読取り装置を用いたデジタル複
写機の全体構成図である。
FIG. 1 is an overall configuration diagram of a digital copying machine using an image reading apparatus of the present invention.

【図2】 モード切替機能をもつ上記デジタル複写機の
全体動作を示すフローチャートである。
FIG. 2 is a flowchart showing the overall operation of the digital copying machine having a mode switching function.

【図3】 図2の原稿モード設定のサブルーチンを示す
フローチャートである。
FIG. 3 is a flowchart showing a document mode setting subroutine in FIG.

【図4】 上記デジタル複写機の原稿モード設定のため
の操作パネルの画面を示す図である。
FIG. 4 is a diagram showing a screen of an operation panel for setting a document mode of the digital copying machine.

【図5】 上記デジタル複写機の全体制御ブロック図で
ある。
FIG. 5 is an overall control block diagram of the digital copying machine.

【図6】 図5の画像処理ブロックを示すブロック図で
ある。
FIG. 6 is a block diagram showing the image processing block of FIG. 5;

【図7】 図6の第1シェーディング回路の詳細ブロッ
ク図である。
FIG. 7 is a detailed block diagram of the first shading circuit of FIG.

【図8】 図6の第2シェーディング回路の詳細ブロッ
ク図である。
FIG. 8 is a detailed block diagram of a second shading circuit of FIG.

【図9】 図2の画像データ読取りステップのサブルー
チンを示すフローチャートである。
9 is a flowchart showing a subroutine of an image data reading step of FIG.

【図10】 図9のシェーディング方法の切替ステップ
のサブルーチンの第1例を示すフローチャートである。
10 is a flowchart showing a first example of a subroutine of a switching step of the shading method of FIG.

【図11】 図9のシェーディング方法の切替ステップ
のサブルーチンの第2例を示すフローチャートである。
FIG. 11 is a flowchart showing a second example of a subroutine of the switching step of the shading method of FIG.

【図12】 シェーディング板上にごみがある場合のC
CDで読み取られるデータを示す図である。
FIG. 12 C when there is dust on the shading board
It is a figure which shows the data read by CD.

【図13】 図12の読取りデータを平均化方式で処理
した後の補正基準データを示す図である。
13 is a diagram showing correction reference data after the read data of FIG. 12 is processed by the averaging method.

【図14】 図12の読取りデータをピークホールド方
式で処理した後の補正基準データを示す図である。
FIG. 14 is a diagram showing correction reference data after the read data of FIG. 12 is processed by the peak hold method.

【図15】 ごみが有る場合,無い場合のシェーディン
グ板を読み取ったCCDの出力を平均化方式で処理した
後の補正基準データを示す図である。
FIG. 15 is a diagram showing correction reference data after the output of the CCD reading the shading plate with and without dust is processed by an averaging method.

【図16】 図9のごみ検出のステップのサブルーチン
を示すフローチャートである。
16 is a flowchart showing a subroutine of a step of dust detection in FIG.

【図17】 図16の注目画素前後のデータ差算出のス
テップのサブルーチンを示す図である。
17 is a diagram showing a subroutine of a step of calculating a data difference before and after the pixel of interest in FIG.

【図18】 光学系のミラー上にごみが有る場合のシェ
ーディング板を読み取ったCCDの出力を示す図であ
る。
FIG. 18 is a diagram showing the output of the CCD reading the shading plate when dust is present on the mirror of the optical system.

【図19】 図18の読取りデータを平均化方式および
ピークホールド方式で処理した後の補正用生データを示
す図である。
FIG. 19 is a diagram showing correction raw data after the read data of FIG. 18 is processed by the averaging method and the peak hold method.

【図20】 図9,図26のノイズ量検出のステップの
サブルーチンを示すフローチャートである。
FIG. 20 is a flowchart showing a subroutine of steps of noise amount detection of FIGS. 9 and 26.

【図21】 図20のノイズ量検出の手法をノイズ量が
小さい場合について図解した図である。
FIG. 21 is a diagram illustrating the noise amount detection method of FIG. 20 when the noise amount is small.

【図22】 図20のノイズ量検出の手法をノイズ量が
大きい場合について図解した図である。
FIG. 22 is a diagram illustrating the noise amount detection method of FIG. 20 in the case where the noise amount is large.

【図23】 図9の警告処理のステップのサブルーチン
を示すフローチャートである。
23 is a flowchart showing a subroutine of a step of the warning process of FIG.

【図24】 光量調整手段としてのCPUのサブルーチ
ン処理を示すフローチャートである。
FIG. 24 is a flowchart showing a subroutine process of a CPU as a light amount adjusting means.

【図25】 読取り制限手段としてのCPUのサブルー
チン処理を示すフローチャートである。
FIG. 25 is a flowchart showing a subroutine process of a CPU as a read limiting unit.

【図26】 ノイズ原因判断手段を兼ねるCPUのサブ
ルーチン処理を示すフローチャートである。
FIG. 26 is a flowchart showing a subroutine process of a CPU that also serves as noise cause determination means.

【図27】 図26の変形例を示すフローチャートであ
る。
FIG. 27 is a flowchart showing a modified example of FIG. 26.

【図28】 従来の蛍光灯光源をもつ画像読取り装置に
よりシェーディング板から読み取った画素データを示す
図である。
FIG. 28 is a diagram showing pixel data read from a shading plate by an image reading apparatus having a conventional fluorescent light source.

【図29】 従来のハロゲンランプをもつ画像読取り装
置によりシェーディング板から読み取った画素データを
示す図である。
FIG. 29 is a diagram showing pixel data read from a shading plate by a conventional image reading device having a halogen lamp.

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

10…画像読取り装置、11…光源、12…ミラー、1
4…CCD、15…画像処理ユニット、62…アナログ
処理回路、63…A/D変換部、65…第1シェーディ
ング回路、66…第2シェーディング回路、68…セレ
クタ、69…画像処理回路、72…比較器、73…CP
U、74…タイミング制御部、76…ランプ光量モニタ
センサ。
10 ... Image reading device, 11 ... Light source, 12 ... Mirror, 1
4 ... CCD, 15 ... Image processing unit, 62 ... Analog processing circuit, 63 ... A / D converter, 65 ... First shading circuit, 66 ... Second shading circuit, 68 ... Selector, 69 ... Image processing circuit, 72 ... Comparator, 73 ... CP
U, 74 ... Timing control unit, 76 ... Lamp light amount monitor sensor.

───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 平6−292001(JP,A) 特開 平1−177278(JP,A) 特開 平6−6589(JP,A) 特開 昭59−223062(JP,A) 特開 平3−289872(JP,A) 特開 昭62−172861(JP,A) 特開 平9−200515(JP,A) (58)調査した分野(Int.Cl.7,DB名) H04N 1/40 - 1/409 H04N 1/46 H04N 1/60 ─────────────────────────────────────────────────── ─── Continuation of the front page (56) Reference JP-A-6-292001 (JP, A) JP-A-1-177278 (JP, A) JP-A-6-6589 (JP, A) JP-A-59- 223062 (JP, A) JP-A-3-289872 (JP, A) JP-A-62-172861 (JP, A) JP-A-9-200515 (JP, A) (58) Fields investigated (Int.Cl. 7 , DB name) H04N 1/40-1/409 H04N 1/46 H04N 1/60

Claims (7)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 原稿からの反射光を受けて電気信号に変
換する光電変換部と、この光電変換部からのアナログ信
号をデジタル信号に変換するA/D変換部と、上記光電
変換部の各受光センサの読取りレベル差を補正するため
の基準読取り板としてのシェーディング板と、このシェ
ーディング板の読取りデータと実際の原稿の読取りデー
タとを演算し、上記各受光センサの読取りレベル差を補
正するシェーディング補正部を備えた画像読取り装置に
おいて、 上記シェーディング板を複数ラインで読み取って画像デ
ータをライン上の対応する画素毎に平均して補正基準デ
ータを生成する平均化データ生成手段と、 上記シェーディング板を複数ラインで読み取ってライン
上の対応する画素毎に画像データのピークをホールドし
て補正基準データを生成するピークホールドデータ生成
手段と、 上記平均化データ生成手段により得られた補正基準デー
タと上記ピークホールドデータ生成手段により得られた
補正基準データの差を算出し、算出した差が所定値以上
であるか否かを判断することによって画像データに重畳
されているノイズの大きさを判定する判定手段とを備え
たことを特徴とする画像読取り装置。
1. A photoelectric conversion unit that receives reflected light from a document and converts it into an electric signal, an A / D conversion unit that converts an analog signal from this photoelectric conversion unit into a digital signal, and each of the photoelectric conversion units. A shading plate as a reference reading plate for correcting the reading level difference of the light receiving sensor, and shading for calculating the reading data of the shading plate and the reading data of the actual document to correct the reading level difference of each of the light receiving sensors. In an image reading apparatus including a correction unit, an averaging data generation unit that reads the shading plate in a plurality of lines and averages image data for each corresponding pixel on the line to generate correction reference data, and the shading plate. It reads in multiple lines and holds the peak of the image data for each corresponding pixel on the line to generate the correction reference data. The peak hold data generating means, the difference between the correction reference data obtained by the averaged data generating means and the correction reference data obtained by the peak hold data generating means is calculated, and the calculated difference is equal to or more than a predetermined value. An image reading apparatus, comprising: a determination unit that determines the magnitude of noise superimposed on image data by determining whether or not it is.
【請求項2】 原稿からの反射光を受けて電気信号に変
換する光電変換部と、この光電変換部からのアナログ信
号をデジタル信号に変換するA/D変換部と、上記光電
変換部の各受光センサの読取りレベル差を補正するため
の基準読取り板としてのシェーディング板と、このシェ
ーディング板の読取りデータと実際の原稿の読取りデー
タとを演算し、上記各受光センサの読取りレベル差を補
正するシェーディング補正部を備えた画像読取り装置に
おいて、 上記シェーディング板を複数ラインで読み取って画像デ
ータをライン上の対応する画素毎に平均して補正基準デ
ータを生成する平均化データ生成手段と、 上記シェーディング板を複数ラインで読み取ってライン
上の対応する画素毎に画像データのピークをホールドし
て補正基準データを生成するピークホールドデータ生成
手段と、 上記平均化データ生成手段により得られた補正基準デー
タと上記ピークホールドデータ生成手段により得られた
補正基準データの差を所定領域の複数画素について算出
し、算出した差の平均値を求め、この平均値が所定値以
上であるか否かを判断することによって画像データに重
畳されているノイズの大きさを判定する判定手段とを備
えたことを特徴とする画像読取り装置。
2. A photoelectric conversion unit that receives reflected light from a document and converts it into an electric signal, an A / D conversion unit that converts an analog signal from this photoelectric conversion unit into a digital signal, and each of the photoelectric conversion units. A shading plate as a reference reading plate for correcting the reading level difference of the light receiving sensor, and shading for calculating the reading data of the shading plate and the reading data of the actual document to correct the reading level difference of each of the light receiving sensors. In an image reading apparatus including a correction unit, an averaging data generation unit that reads the shading plate in a plurality of lines and averages image data for each corresponding pixel on the line to generate correction reference data, and the shading plate. It reads in multiple lines and holds the peak of the image data for each corresponding pixel on the line to generate the correction reference data. The peak hold data generating means, the difference between the correction reference data obtained by the averaging data generating means and the correction reference data obtained by the peak hold data generating means is calculated for a plurality of pixels in a predetermined area, and the calculated difference is calculated. The image reading is characterized by including a determination means for determining the average value of the noises and determining whether or not the average value is equal to or more than a predetermined value to determine the magnitude of noise superimposed on the image data. apparatus.
【請求項3】 請求項1または2に記載の画像読取り装
置において、上記判定手段が、算出した差または算出し
た差の平均値が所定値以上であると判断してノイズが大
きいと判定したとき、警告を発する警告手段をさらに備
えたことを特徴とする画像読取り装置。
3. The image reading apparatus according to claim 1, wherein the determining means determines that the calculated difference or the average value of the calculated differences is equal to or more than a predetermined value and that the noise is large. An image reading device further comprising warning means for issuing a warning.
【請求項4】 請求項1乃至3のいずれか1つに記載の
画像読取り装置において、上記判定手段の判定結果に基
づいて、ノイズの大小に応じて上記原稿を照らす光源の
光量を増減する光量調整手段をさらに備えたことを特徴
とする画像読取り装置。
4. The image reading apparatus according to claim 1, wherein the light amount of a light source that illuminates the document is increased or decreased according to the magnitude of noise based on the determination result of the determination means. An image reading apparatus further comprising adjusting means.
【請求項5】 請求項1乃至3のいずれか1つに記載の
画像読取り装置において、上記判定手段の判定結果に基
づいて、ノイズが大きい場合に、読取りモードに制限を
加える読取りモード制限手段をさらに備えたことを特徴
とする画像読取り装置。
5. The image reading apparatus according to claim 1, further comprising a reading mode limiting unit that limits the reading mode when noise is large based on the determination result of the determination unit. An image reading device further provided.
【請求項6】 請求項5に記載の画像読取り装置におい
て、上記読取りモード制限手段は、ノイズが大きい場合
に、文字読取りモードのみを使用可能にし、写真読取り
モードを使用不可能にすることを特徴とする画像読取り
装置。
6. The image reading apparatus according to claim 5, wherein the reading mode limiting means enables only the character reading mode and disables the photograph reading mode when noise is large. Image reader.
【請求項7】 請求項1乃至6のいずれか1つに記載の
画像読取り装置において、上記判定手段は、上記原稿を
照らす光源を消した状態においてもノイズの大きさを判
定し、光源点灯時および消灯時における上記判定手段の
判定結果に基づいて、ノイズの原因が画像読取り装置の
光学系または電気回路のいずれにあるかを判断するノイ
ズ原因判断手段をさらに備えたことを特徴とする画像読
取り装置。
7. The image reading apparatus according to claim 1, wherein the determination unit determines the noise level even when the light source illuminating the document is turned off, and when the light source is turned on. Further, the image reading further comprises noise cause judging means for judging whether the cause of the noise is in the optical system or the electric circuit of the image reading device based on the judgment result of the judging means when the light is off. apparatus.
JP06781297A 1997-03-21 1997-03-21 Image reading device Expired - Lifetime JP3480229B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP06781297A JP3480229B2 (en) 1997-03-21 1997-03-21 Image reading device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP06781297A JP3480229B2 (en) 1997-03-21 1997-03-21 Image reading device

Publications (2)

Publication Number Publication Date
JPH10271328A JPH10271328A (en) 1998-10-09
JP3480229B2 true JP3480229B2 (en) 2003-12-15

Family

ID=13355743

Family Applications (1)

Application Number Title Priority Date Filing Date
JP06781297A Expired - Lifetime JP3480229B2 (en) 1997-03-21 1997-03-21 Image reading device

Country Status (1)

Country Link
JP (1) JP3480229B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4110715B2 (en) 2000-07-11 2008-07-02 コニカミノルタビジネステクノロジーズ株式会社 Image processing device
JP2012044506A (en) * 2010-08-20 2012-03-01 Seiko Epson Corp Image reader and defective pixel detection method

Also Published As

Publication number Publication date
JPH10271328A (en) 1998-10-09

Similar Documents

Publication Publication Date Title
JP3754870B2 (en) Image reading apparatus, shading correction method, and storage medium
US6297872B1 (en) Image forming apparatus
EP0940971A1 (en) Image input device and method for providing scanning artifact detection
US6775419B2 (en) Image processing method, image processing apparatus, and storage medium for storing control process
US20060061830A1 (en) Image reading apparatus
US6301019B1 (en) Image reading apparatus, image reading method, whiteness level correcting method and whiteness level generating method
US6122393A (en) Image input device and method for providing scanning artifact detection
JP2005065276A (en) System and method for automatic correction of illumination noise caused by ambient light
US7113619B1 (en) Image reading method, image reading apparatus and method of discriminating defect of image data
JP2021141467A (en) Reading device, image processing device, and feature amount detection method
JPH09331451A (en) Image reader
JP3480229B2 (en) Image reading device
JP3752790B2 (en) Image reading device
JP3404955B2 (en) Document size detector
JP3453197B2 (en) Document size detector
JP3478042B2 (en) Image reading device
JP3396006B2 (en) Digital copier
JPH11317850A (en) Detection method and detection system
JPH11317851A (en) Detection method and detection system
US6788831B1 (en) Image reading apparatus
JPH10243187A (en) Image reader
JPH08237485A (en) Image reader
JPH066524A (en) Method for discriminating presence of read original and device thereof
JP2002027196A (en) Image reader and image forming device
KR100671548B1 (en) Multi-function product capable of setting adaptive contrast and method thereof

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20071010

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20081010

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20091010

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20091010

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20101010

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20101010

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20111010

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20111010

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20121010

Year of fee payment: 9