JPH08265564A - Picture input device - Google Patents

Picture input device

Info

Publication number
JPH08265564A
JPH08265564A JP7091574A JP9157495A JPH08265564A JP H08265564 A JPH08265564 A JP H08265564A JP 7091574 A JP7091574 A JP 7091574A JP 9157495 A JP9157495 A JP 9157495A JP H08265564 A JPH08265564 A JP H08265564A
Authority
JP
Japan
Prior art keywords
image
binary
input device
document
valued
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP7091574A
Other languages
Japanese (ja)
Inventor
Yoshinobu Takeyama
佳伸 竹山
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP7091574A priority Critical patent/JPH08265564A/en
Publication of JPH08265564A publication Critical patent/JPH08265564A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE: To accurately input a picture by detecting whether the document picture is a multilevel picture or a binary picture based on whether or not the picture element density level is a halftone level between the black reference and the white reference. CONSTITUTION: In a document picture discriminating device, a comparator 21 compares an output signal Sout from a CCD sensor with the black reference, and a comparator 22 compares the output signal Sout from the CCD sensor with the white reference. An exclusive OR circuit 23 which operates exclusive OR between the comparison result of the comparator 21 and that of the comparator 22 is provided. The output from the circuit 23 is latched in a latch circuit 24 by a clock CLK, and a detection circuit 25 discriminates whether the original picture is binary or multilevel based on the output from the latch circuit 24 and outputs the discrimination result. The circuit 25 discriminates the document picture as a multilevel picture when the output signal from the circuit 24 goes to the high level at least once, for example, in one prescanning, but the circuit 25 discriminates it as a binary picture when the output signal from the circuit 24 is fixed to the low level then.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、複写機,電子ファイル
等の画像入力装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image input device such as a copying machine or an electronic file.

【0002】[0002]

【従来の技術】従来、例えば特開平5−122436等
に示されているような画像入力装置が知られている。こ
の画像入力装置では、必要な画像データが2値データの
ようにセンサ出力信号の精度よりも速度を優先して読み
取りができる場合には、通常読み取り時に高速な基本ク
ロックを用いて読み取りを高速に行ない、必要な画像デ
ータが多値データのようにセンサ出力信号の精度が重視
される場合には、基本クロックよりも低い周波数の基本
クロックを用いて読み取りを行ない、全体として読み取
りの高速化を図るようにしている。
2. Description of the Related Art Conventionally, an image input device as disclosed in, for example, JP-A-5-122436 is known. In this image input device, when necessary image data can be read by giving priority to speed over sensor output signal accuracy like binary data, high-speed basic clock is used during normal reading to perform high-speed reading. When the required image data is multi-valued data and the accuracy of the sensor output signal is important, the basic clock with a lower frequency than the basic clock is used for reading, and the reading speed is increased as a whole. I am trying.

【0003】[0003]

【発明が解決しようとする課題】上述のような画像入力
装置において、適確なクロックの切換選択を行なうに
は、画像データが2値データであるか多値データである
かを精度良く判別できることが不可欠となるが、従来で
は、画像データが2値データであるか多値データである
かを精度良く判別する技術が確立されておらず、従っ
て、適確なクロックの切換選択,すなわち適確な画像入
力を行なうことができないという問題があった。
In the above-described image input apparatus, in order to perform the proper switching selection of the clock, it is possible to accurately determine whether the image data is binary data or multi-valued data. However, in the past, a technique for accurately discriminating whether image data is binary data or multi-valued data has not been established, and therefore, accurate clock switching selection, that is, accurate clock There is a problem that it is not possible to input various images.

【0004】本発明は、原稿画像が多値画像であるか2
値画像であるかを精度良く判別し、適確な画像入力を行
なうことの可能な画像入力装置を提供することを目的と
している。
According to the present invention, whether the original image is a multi-valued image or not
It is an object of the present invention to provide an image input device capable of accurately determining whether a value image is input and inputting an appropriate image.

【0005】[0005]

【課題を解決するための手段および作用】上記目的を達
成するために、請求項1,請求項2記載の発明は、原稿
画像を撮像して読み取る撮像手段と、原稿画像が2値画
像であるか多値画像であるかを判別する原稿画像判別手
段と、前記原稿画像判別手段における原稿画像の判別結
果が2値画像であるか多値画像であるかに応じて、前記
撮像手段の駆動用クロックを高速のクロックまたは低速
のクロックに切換えるクロック切換手段とを有し、前記
原稿画像判別手段は、前記撮像手段からの画素濃度レベ
ルを、予め設定されている黒基準,白基準とそれぞれ比
較し、画素濃度レベルが黒基準と白基準との間の中間調
レベルにあるか否かに基づいて、原稿画像が多値画像で
あるか2値画像であるかを検出するようになっている。
これにより、原稿画像が多値画像であるか2値画像であ
るかを精度良く判別し、適確なクロック切換選択を行な
い、適確な画像入力を行なうことができる。特に、原稿
画像判別手段を簡単な構成のものとすることができ、原
稿画像の多値,2値の判別をリアルタイムにかつ容易に
行なうことができる。
In order to achieve the above object, the inventions according to claim 1 and claim 2 are image pickup means for picking up and reading an original image, and the original image is a binary image. A manuscript image discriminating means for discriminating whether the image is a multivalued image or not, and for driving the image pickup means depending on whether the discrimination result of the manuscript image in the manuscript image discriminating means is a binary image or a multivalued image. The original image discrimination means compares the pixel density level from the image pickup means with a preset black reference and white reference, respectively. Whether the original image is a multi-valued image or a binary image is detected based on whether or not the pixel density level is at a halftone level between the black reference and the white reference.
As a result, it is possible to accurately determine whether the original image is a multi-valued image or a binary image, make an appropriate clock switching selection, and input an appropriate image. In particular, the document image discriminating means can be made to have a simple structure, and multi-valued / binary discrimination of the document image can be easily performed in real time.

【0006】また、請求項3記載の発明では、前記黒基
準,白基準として、黒基準読取画像における各画素の画
素濃度レベルの平均値,白基準読取画像における各画素
の画素濃度レベルの平均値をそれぞれ用いる。これによ
り、多値,2値の判別をより安定に行なうことができ
る。
According to the third aspect of the invention, as the black reference and the white reference, the average value of the pixel density levels of the respective pixels in the black reference read image and the average value of the pixel density levels of the respective pixels in the white reference read image. Are used respectively. This makes it possible to more stably discriminate between multi-value and binary.

【0007】また、請求項4記載の発明では、前記原稿
画像判別手段は、前記撮像手段からの画素濃度レベルが
黒基準と白基準の間の中間調レベルにある画素の個数ま
たは中間調レベルにない画素の個数を計数し、該計数値
が所定の閾値よりも大きくなるとき多値画像または2値
画像と判別し、所定の閾値よりも大きくないとき2値画
像または多値画像と判別する。これにより、原稿画像が
2値画像であるか多値画像であるかを信頼性良く判別す
ることができる。
Further, in the invention according to claim 4, the original image discrimination means sets the number of pixels or the halftone level at which the pixel density level from the image pickup means is at the halftone level between the black reference and the white reference. The number of non-existing pixels is counted, and when the count value is larger than a predetermined threshold value, it is discriminated as a multi-valued image or a binary image, and when it is not larger than the predetermined threshold value, it is discriminated as a binary image or a multi-valued image. This makes it possible to reliably determine whether the original image is a binary image or a multi-valued image.

【0008】また、請求項5記載の発明では、前記原稿
画像判別手段は、前記撮像手段からの画素濃度レベルが
中間調レベルにある画素または中間調レベルにない画素
の連続した個数を計数し、該計数値が所定の閾値よりも
大きくなるとき多値画像または2値画像と判別し、所定
の閾値よりも大きくないとき2値画像または多値画像と
判別する。これにより、原稿画像が2値画像であるか多
値画像であるかを信頼性良く判別することができる。
Further, in the invention according to claim 5, the original image discrimination means counts the number of consecutive pixels whose pixel density level from the image pickup means is at a halftone level or not. When the count value is larger than a predetermined threshold value, it is determined to be a multi-valued image or a binary image, and when it is not larger than the predetermined threshold value, it is determined to be a binary image or a multi-valued image. This makes it possible to reliably determine whether the original image is a binary image or a multi-valued image.

【0009】また、請求項6,請求項7記載の発明は、
外部入力で容易に原稿画像の種別を指定でき、プレスキ
ャンを行なわずに、ファインスキャンを直接行なうこと
ができて、この場合にも、適確な画像入力を行なうこと
ができる。
The inventions according to claims 6 and 7 are:
The type of the original image can be easily specified by an external input, and the fine scan can be directly performed without performing the prescan. Even in this case, the accurate image input can be performed.

【0010】また、請求項8記載の発明は、A/D変換
手段と、2値化手段と、ビット分配手段とが設けられて
おり、原稿画像が前記原稿画像判別手段により多値画像
と判別された場合、または、前記画像データ指示手段に
より多値画像と指示された場合には、前記撮像手段から
の出力信号を前記A/D変換手段によりデジタル化し、
また、原稿画像が前記原稿画像判別手段により2値画像
と判別された場合、または、前記画像データ指示手段に
より2値画像と指示された場合には、前記撮像手段から
の出力信号を前記2値化手段によって2値化し、該2値
化データを前記ビット分配手段により多ビット化するよ
うになっており、図14の構成例では、2値画像データ
については2値化手段,分配手段で高速にデジタル変換
処理がなされ、A/D変換手段は、2値画像データに比
べて差程高速性の要求されない多値画像データに対する
デジタル変換処理にのみ用いられる。これにより、A/
D変換手段には、高価な高速A/D変換器を用いる必要
がなく、画像入力装置を低コストのものにすることがで
きる。すなわち、A/D変換手段に高速のものを用いず
とも、2値画像データを高速にデジタル変換処理するこ
とができ、2値画像,多値画像の両方について最適な画
像入力を行なうことができる。
According to the present invention, the A / D conversion means, the binarization means, and the bit distribution means are provided, and the document image is discriminated as a multi-valued image by the document image discrimination means. If the image data is instructed, or if the image data instructing means indicates a multi-valued image, the output signal from the imaging means is digitized by the A / D converting means,
Further, when the original image is discriminated by the original image discriminating means as a binary image, or when the image data instructing means is instructed as a binary image, the output signal from the image pickup means is set to the binary image. The binarizing means binarizes the binarized data and the bit distributing means multi-bits the binary data. In the configuration example of FIG. 14, the binary image data is binarized and distributed at high speed. The A / D conversion means is used only for digital conversion processing for multi-valued image data which is not required to be as fast as binary image data. As a result, A /
It is not necessary to use an expensive high-speed A / D converter as the D conversion means, and the image input device can be made low in cost. That is, binary image data can be digitally converted at high speed without using a high-speed A / D converter, and optimum image input can be performed for both binary and multi-valued images. .

【0011】また、請求項9記載の発明は、A/D変換
手段と、画素に同期したクロックをn分周する分周手段
と、2値化手段と、分周手段からの分周信号に同期させ
て、前記2値化手段からのデジタル出力をn画素単位に
まとめて出力する直並列変換手段と、記憶装置と、記憶
装置のアドレスを生成するアドレス生成手段とが設けら
れており、原稿画像が前記原稿画像判別手段により多値
画像と判別された場合、または、前記画像データ指示手
段により多値画像と指示された場合には、前記撮像手段
からの出力信号をA/D変換手段によりデジタル化して
記憶装置に与え、また、アドレス生成手段には、画素に
同期したクロックが加わり、アドレス生成手段は、1画
素に同期させて前記記憶装置のアドレスを生成し、これ
により、前記記憶装置の1つのアドレスにA/D変換手
段からの1画素分のデジタルデータを記憶させ、また、
原稿画像が原稿画像判別手段により2値画像と判別され
た場合、または、画像データ指示手段により2値画像と
指示された場合には、前記撮像手段からの出力信号を前
記2値化手段によってデジタル化し、該2値化手段から
の出力を直並列変換手段によりn画素単位に記憶装置に
与え、また、アドレス生成手段には、画素に同期したク
ロックを分周手段でn分周した分周クロックが加わり、
アドレス生成手段は、n画素単位に前記記憶装置のアド
レスを生成し、これにより、前記記憶装置の1つのアド
レスに直並列変換手段からのn画素分のデジタルデータ
を記憶させるようになっており、2値画像データについ
ては2値化手段,直並列変換手段で高速にデジタル変換
処理がなされ、A/D変換手段は、2値画像データに比
べて差程高速性の要求されない多値画像データに対する
デジタル変換処理にのみ用いられる。これにより、A/
D変換手段には、高価な高速A/D変換器を用いる必要
がなく、画像入力装置を低コストのものにすることがで
きる。すなわち、請求項8記載の発明と同様に、A/D
変換手段に高速のものを用いずとも、2値画像データを
高速にデジタル変換処理することができ、2値画像,多
値画像の両方について最適な画像入力を行なうことがで
きる。さらに、請求項9記載の発明では、原稿画像が2
値画像の場合、センサ出力を2値化回路によりデジタル
化し、1つのメモリアドレスに対しnビットのメモリセ
ルを有する記憶装置にn画素のデータを格納すること
で、大容量の記憶装置を必要とすることなく、読み取り
領域の大きい(読み取り画素数の多い)、安定した画像を
得ることができる。
According to a ninth aspect of the invention, the A / D conversion means, the frequency division means for dividing the clock synchronized with the pixel by n, the binarization means, and the frequency division signal from the frequency division means are used. A serial / parallel conversion means for synchronously outputting the digital outputs from the binarization means collectively in n-pixel units, a storage device, and an address generation means for generating an address of the storage device are provided. When the image is discriminated as a multi-valued image by the document image discriminating means, or when the image data instructing means is instructed to be a multi-valued image, the output signal from the image pickup means is outputted by the A / D conversion means. The data is digitized and given to the memory device, and a clock synchronized with the pixel is added to the address generation means, and the address generation means generates the address of the memory device in synchronization with one pixel, whereby the memory is stored. To one address of the location to store the digital data for one pixel from the A / D converting means,
When the document image is discriminated by the document image discriminating means as a binary image, or when the image data instructing means is designated as a binary image, the output signal from the image pickup means is digitalized by the binarizing means. And outputs the output from the binarizing means to the storage device in units of n pixels by the serial / parallel converting means, and the address generating means divides the clock synchronized with the pixels into n by the dividing means. Is added,
The address generating means generates an address of the storage device in units of n pixels, and thereby stores one pixel of digital data from the serial-parallel conversion means in one address of the storage device. The binary image data is subjected to high-speed digital conversion processing by the binarization means and the serial / parallel conversion means, and the A / D conversion means is for multi-valued image data which is not required to be as fast as the binary image data. Used only for digital conversion processing. As a result, A /
It is not necessary to use an expensive high-speed A / D converter as the D conversion means, and the image input device can be made low in cost. That is, similar to the invention of claim 8, the A / D
Binary image data can be digitally converted at high speed without using a high-speed converting means, and optimum image input can be performed for both binary images and multivalued images. Further, in the invention according to claim 9, the original image is 2
In the case of a value image, a sensor output is digitized by a binarization circuit, and data of n pixels is stored in a storage device having an n-bit memory cell for one memory address, which requires a large-capacity storage device. Without doing so, it is possible to obtain a stable image with a large reading area (a large number of reading pixels).

【0012】また、請求項10記載の発明では、前記2
値化手段は、ファインスキャン開始時に読み取った黒基
準読取画像の画素濃度レベルの平均値と白基準読取画像
の画素濃度レベルの平均値とに基づいて前記撮像手段か
らの出力信号をデジタル化する。これにより、センサの
駆動用クロックを高速クロックCLK2に切り換えた場
合でも、また光源変動等が生じた場合でも、常に適切な
2値化が行なわれ安定した画像を得ることができる。
According to the invention of claim 10, the above-mentioned 2
The binarizing means digitizes the output signal from the imaging means based on the average value of the pixel density levels of the black reference read image and the average value of the pixel density levels of the white reference read image read at the start of the fine scan. As a result, even when the driving clock of the sensor is switched to the high-speed clock CLK 2 , or when a light source variation or the like occurs, appropriate binarization is always performed and a stable image can be obtained.

【0013】また、請求項11記載の発明では、原稿画
像が多値画像の場合、積算平均化手段による積算処理を
実行し、原稿画像が2値画像の場合、積算平均化手段に
よる積算処理を行なわないようにすることで、多値画像
ではより良好な読み取り品質が得られ、2値画像では読
み取り時間を短縮することができる。
According to the eleventh aspect of the invention, when the original image is a multi-valued image, the integrating process is executed by the integrating and averaging means, and when the original image is a binary image, the integrating process by the integrating and averaging means is executed. By not performing it, better reading quality can be obtained in the multi-valued image, and the reading time can be shortened in the binary image.

【0014】また、請求項12記載の発明では、原稿画
像の種別に応じ最適な光量で原稿画像の読取りがなされ
る。これにより、良好な原稿画像を得ることができると
ともに、原稿画像が2値画像の場合、光源の光量を多値
画像の場合よりも低下させるようにすることで、装置の
発熱を防ぐとともに電力の省力化が可能となる。
According to the twelfth aspect of the present invention, the original image is read with an optimum light amount according to the type of the original image. As a result, a good original image can be obtained, and when the original image is a binary image, the light amount of the light source is made lower than that in the case of a multi-valued image, thereby preventing heat generation of the device and reducing power consumption. Labor saving is possible.

【0015】また、請求項13記載の発明では、原稿画
像が2値画像の場合、センサ駆動クロックを高速クロッ
クに切り換え、かつ光源の光量を多値画像の時よりも低
下させるようにすることで、原稿画像データに応じ読み
取り時間の短縮が可能で、かつ原稿画像の種別に応じ最
適な光量で原稿画像の読取りがなされる。これにより、
良好な原稿画像を得ることができるとともに、装置の発
熱を防ぐとともに電力の省力化が可能となる。
According to the thirteenth aspect of the present invention, when the original image is a binary image, the sensor drive clock is switched to a high-speed clock, and the light amount of the light source is made lower than in the case of a multi-valued image. The reading time can be shortened according to the original image data, and the original image is read with an optimum light amount according to the type of the original image. This allows
A good original image can be obtained, heat generation of the device can be prevented, and power can be saved.

【0016】[0016]

【実施例】以下、本発明の実施例を図面に基づいて説明
する。図1は本発明に係る画像入力装置の一実施例の構
成図である。図1を参照すると、この画像入力装置は、
原稿台(コンタクトガラス)2上の原稿1に光を照射する
光源4と、光源4を駆動する光源駆動手段(光源駆動回
路)14と、原稿台2を矢印xの方向に移動させるモー
タ5と、モータ5を駆動制御するモータ駆動制御部15
と、原稿1からの反射光がミラー3,結像レンズ6を介
し入射し、原稿1の画像を撮像するCCDセンサ7と、
CCDセンサ7からの出力信号をサンプルホールドする
サンプルホールド手段(サンプルホールド回路)8と、サ
ンプルホールド回路8からの出力信号(画素濃度レベル)
outをデジタル信号に変換するA/D変換手段(A/D
変換回路)9と、A/D変換回路9からの信号に対して
暗出力の補正を行なう暗出力補正回路10と、シェーデ
ィング補正を行なうシェーディング補正回路11と、線
密度変換を行なう線密度変換回路12と、出力装置ある
いは記憶装置とのインタフェースとして機能するインタ
フェース回路13と、サンプルホールド回路8からの出
力信号Soutに基づいて原稿画像データが2値であるか
多値であるかを判別する原稿画像判別手段17と、原稿
画像の判別結果に基づいて、CCDセンサ7の駆動用ク
ロックの切換えを行なうクロック切換手段18と、クロ
ック切換手段18からのクロックに基づいてCCDセン
サ7を駆動する撮像駆動手段(CCD駆動回路)16とを
備えている。
Embodiments of the present invention will be described below with reference to the drawings. 1 is a block diagram of an embodiment of an image input apparatus according to the present invention. Referring to FIG. 1, the image input device is
A light source 4 for irradiating the original 1 on the original table (contact glass) 2 with light, a light source driving means (light source drive circuit) 14 for driving the light source 4, and a motor 5 for moving the original table 2 in the direction of arrow x. , A motor drive controller 15 for controlling the drive of the motor 5.
A reflected light from the original 1 enters through the mirror 3 and the imaging lens 6, and a CCD sensor 7 for picking up an image of the original 1;
A sample and hold means (sample and hold circuit) 8 for sampling and holding the output signal from the CCD sensor 7, and an output signal (pixel density level) from the sample and hold circuit 8.
A / D conversion means (A / D) for converting S out into a digital signal
(Conversion circuit) 9, a dark output correction circuit 10 that corrects a dark output for a signal from the A / D conversion circuit 9, a shading correction circuit 11 that performs shading correction, and a linear density conversion circuit that performs linear density conversion. 12, an interface circuit 13 that functions as an interface with an output device or a storage device, and an original that determines whether the original image data is binary or multivalued based on an output signal S out from the sample hold circuit 8. An image discriminating means 17, a clock switching means 18 for switching the driving clock of the CCD sensor 7 based on the discrimination result of the original image, and an image pickup drive for driving the CCD sensor 7 based on the clock from the clock switching means 18. And means (CCD drive circuit) 16.

【0017】図2は原稿画像判別手段17の構成例を示
す図である。図2の例では、原稿画像判別手段17は、
CCDセンサ7(サンプルホールド回路8)からの出力信
号(画素濃度レベル)Soutと黒基準との大小を比較する
第1の比較器21と、CCDセンサ7(サンプルホール
ド回路8)からの出力信号Soutと白基準との大小を比較
する第2の比較器22と、第1の比較器21の比較結果
と第2の比較器22の比較結果との排他的論理和をとる
排他的論理和回路23と、排他的論理和回路23からの
出力を所定のクロックCLKによりラッチするラッチ回
路24と、ラッチ回路24からの出力に基づき、原稿画
像が2値か多値かを判別し、これを判別結果として出力
する検出器25とを有している。
FIG. 2 is a view showing an example of the arrangement of the original image discrimination means 17. In the example of FIG. 2, the document image discrimination means 17 is
The output signal (pixel density level) S out from the CCD sensor 7 (sample and hold circuit 8) and the output signal from the CCD sensor 7 (sample and hold circuit 8) and the first comparator 21 for comparing the magnitude of the black reference. An exclusive OR that takes an exclusive OR of the second comparator 22 that compares the magnitude of S out and the white reference, and the comparison result of the first comparator 21 and the comparison result of the second comparator 22. Based on the circuit 23, the latch circuit 24 that latches the output from the exclusive OR circuit 23 by a predetermined clock CLK, and whether the original image is binary or multivalued based on the output from the latch circuit 24, this is determined. It has a detector 25 which outputs as a discrimination result.

【0018】なお、ラッチ回路24に加わる上記クロッ
クCLKは、サンプルホールド回路8のホールドパルス
(図示しない)よりも位相の遅れた画素に同期したものと
なっており、ラッチ回路24は、このクロックCLKで
比較結果をラッチするようになっている。また、検出器
25は、例えば、1回のプレスキャンにおいて、ラッチ
回路24からの出力信号が少なくとも1回、“H”とな
るときに原稿画像が多値画像であると検出し、また、ラ
ッチ回路24からの出力信号が全て“L”であるとき、
原稿画像が2値画像であると検出するようになってお
り、検出器25は、プレスキャン毎にクリアされる。
The clock CLK applied to the latch circuit 24 is the hold pulse of the sample hold circuit 8.
It is synchronized with a pixel whose phase is behind that (not shown), and the latch circuit 24 latches the comparison result with this clock CLK. Further, the detector 25 detects that the original image is a multi-valued image when the output signal from the latch circuit 24 becomes “H” at least once in one pre-scan, and the latch 25 also latches. When the output signals from the circuit 24 are all "L",
The original image is detected as a binary image, and the detector 25 is cleared every prescan.

【0019】また、白基準は、例えばプレスキャン開始
時に白色基準板を読み取ったときにセンサから出力され
る白色基準読取画像の画素濃度レベルの最小値(最低値)
として、予め設定されている。また、黒基準は、例えば
プレスキャン開始時に黒色基準板を読み取ったときにセ
ンサから出力される黒色基準読取画像の画素濃度レベル
の最大値(ピーク値)として、予め設定されている。
The white reference is, for example, the minimum value (minimum value) of the pixel density level of the white reference read image output from the sensor when the white reference plate is read at the start of prescan.
Is set in advance. The black reference is set in advance as the maximum value (peak value) of the pixel density level of the black reference read image output from the sensor when the black reference plate is read at the start of prescan.

【0020】また、クロック切換手段18は、CCDセ
ンサ7の駆動用クロックとして、高速クロックCL
1,低速クロックCLK2のいずれかに、クロックを切
換えるようになっている。すなわち、原稿1が多値画像
であるときには、低速クロックCLK1に切換え、原稿
1が2値画像であるときには、高速クロックCLK2
切換えて原稿画像を高速に読取らせるようになってい
る。但し、高速クロックCLK2としては、センサ7が
読み出し可能なものが用いられる。また、原稿画像判別
手段17のラッチ回路24に加わるクロックCLKは、
クロック切換手段18によって例えば低速クロックCL
1が選択されて原稿画像が読み取られているときに
は、この低速クロックCLK1が用いられる。
The clock switching means 18 uses the high-speed clock CL as a clock for driving the CCD sensor 7.
The clock is switched to either K 1 or the low speed clock CLK 2 . That is, when the original 1 is a multi-valued image, the low-speed clock CLK 1 is switched to, and when the original 1 is a binary image, the high-speed clock CLK 2 is switched to read the original image at high speed. However, as the high-speed clock CLK 2 , one that can be read by the sensor 7 is used. Further, the clock CLK applied to the latch circuit 24 of the document image discrimination means 17 is
By the clock switching means 18, for example, the low speed clock CL
When K 1 is selected and the original image is read, this low speed clock CLK 1 is used.

【0021】このような構成の画像入力装置では、コン
タクトガラス2上にセットされた原稿1に光源4からの
光を照射し、その反射光をミラー3、結像レンズ6を介
してCCDセンサ7に導き、CCDセンサ7上に原稿1
の像を結像させる。なお、この際、副走査は、原稿1す
なわちコンタクトガラス2をモータ5により矢印xの方
向に移動させることにより行なわれる。
In the image input apparatus having such a structure, the original 1 set on the contact glass 2 is irradiated with the light from the light source 4, and the reflected light is passed through the mirror 3 and the imaging lens 6 to the CCD sensor 7. The original 1 on the CCD sensor 7
Form an image of. At this time, the sub-scanning is performed by moving the original 1, that is, the contact glass 2 by the motor 5 in the direction of the arrow x.

【0022】CCDセンサ7からの出力信号は、サンプ
ルホールド回路8によってセンサの転送クロック成分が
取り除かれて、Soutとして、A/D変換回路9に加わ
り、A/D変換回路9においてデジタル信号に変換され
る。しかる後、A/D変換回路9からのデジタル信号
は、暗出力補正回路10において、例えば、予め記憶さ
せておいた補正メモリのデータを画素ごとに読み出し演
算することでCCDセンサ7の画素ごとの暗出力の補正
が行なわれ、また、シェーデイング補正回路11におい
て、暗出力の補正と同様に、予め記憶されているデータ
を補正メモリから読み出し画素毎に演算することで照明
系,結像系による明るさのバラツキやCCDセンサ7の
感度バラツキ等の補正が行なわれる。しかる後、線密度
変換回路12により必要に応じて主走査方向の密度変換
が行なわれ、インタフェース回路13を介して出力装置
あるいは記憶装置へ送られる。
The output signal from the CCD sensor 7 has the transfer clock component of the sensor removed by the sample and hold circuit 8 and is added to the A / D conversion circuit 9 as S out and converted into a digital signal in the A / D conversion circuit 9. To be converted. Thereafter, the digital signal from the A / D conversion circuit 9 is read by the dark output correction circuit 10 for each pixel, for example, by reading out the data of the correction memory stored in advance, and the calculated signal is calculated for each pixel of the CCD sensor 7. The dark output is corrected, and in the shading correction circuit 11, similarly to the dark output correction, prestored data is read out from the correction memory and calculated for each pixel, so that the illumination system and the image forming system are used. Correction of variations in brightness and variations in sensitivity of the CCD sensor 7 is performed. Thereafter, the linear density conversion circuit 12 performs density conversion in the main scanning direction as necessary, and the density conversion is sent to the output device or the storage device via the interface circuit 13.

【0023】ここで、光源4およびCCDセンサ7は、
多値画像においても十分なセンサ出力が得られるような
光蓄積時間に設定駆動されている。
Here, the light source 4 and the CCD sensor 7 are
The light accumulation time is set and driven so that a sufficient sensor output can be obtained even in a multi-valued image.

【0024】図3(a)はCCDセンサ7の1ライン出
力の一例を示す図である。なお、図3(a)のライン出
力において、DS(E)は感光部が無く転送部のみの画素
の出力であり、DS(S)は感光部が光シールドされた画
素の出力であり、このDS(S)に続いて、原稿読み取り
データの出力がある。
FIG. 3A is a diagram showing an example of one-line output of the CCD sensor 7. In the line output of FIG. 3 (a), DS (E) is the output of a pixel having no photosensitive section and only the transfer section, and DS (S) is the output of a pixel whose photosensitive section is optically shielded. Following DS (S), document reading data is output.

【0025】図3(a)に示すようなセンサ出力をサン
プルホールド回路8に与えると、サンプルホールド回路
8では、図3(a)に示すセンサ出力から転送クロック
成分を取り除き、図3(b)に示すようなアナログ信号
にする。
When the sensor output as shown in FIG. 3A is given to the sample and hold circuit 8, the sample and hold circuit 8 removes the transfer clock component from the sensor output as shown in FIG. Use analog signals as shown in.

【0026】このサンプルホールド回路8からの図3
(b)に示すような出力信号のうち、例えばDS(E)の
値を図示しない別のサンプルホールド回路によりサンプ
ルホールドしてA/D変換回路9の上限のリファレンス
電圧VrefTとし、また、白色基準板を読み込んだ時の出
力のピーク値を図示しないピークホールド回路で検出保
持してA/D変換回路9の下限のリファレンス電圧V
refBとすることで、A/D変換回路9のダイナミックレ
ンジが決定される。
FIG. 3 from this sample hold circuit 8
Of the output signals as shown in (b), for example, the value of DS (E) is sampled and held by another sample and hold circuit (not shown) to obtain the upper limit reference voltage V refT of the A / D conversion circuit 9, and white. The peak value of the output when the reference plate is read is detected and held by a peak hold circuit (not shown) and the lower limit reference voltage V of the A / D conversion circuit 9 is held.
By setting refB , the dynamic range of the A / D conversion circuit 9 is determined.

【0027】このようにして、原稿1の実際の読み取り
(ファインスキャン)が行なわれるが、このファインスキ
ャンに先立ってプレスキャンを行ない、原稿1が2値画
像であるか、多値画像であるかを判別し、その判別結果
に応じてCCDセンサ7の駆動条件等を予め設定してお
く必要がある。
In this way, the actual reading of the original 1 is performed.
Although (fine scan) is performed, a prescan is performed prior to this fine scan to determine whether the original 1 is a binary image or a multi-valued image, and the CCD sensor 7 of the CCD sensor 7 is determined according to the determination result. It is necessary to set driving conditions in advance.

【0028】このため、図1の画像入力装置では、ファ
インスキャンに先立ってプレスキャンを行ない、プレス
キャン時に読取った原稿1の画像に基づき、原稿画像判
別手段17において原稿画像が2値画像であるか多値画
像であるかの判別を行なう。
Therefore, in the image input apparatus of FIG. 1, the prescan is performed prior to the fine scan, and the original image is the binary image in the original image discriminating means 17 based on the image of the original 1 read during the prescan. It is determined whether the image is a multivalued image.

【0029】より詳しくは、原稿画像判別手段17は、
サンプルホールド回路8からの出力信号(より具体的に
は、サンプルホールド回路8からの出力信号を所定の増
幅器(図示せず)で増幅した信号)Sout(なお、以下で
は、便宜上、Soutをセンサ出力と呼ぶ)を、プレスキャ
ン開始時に例えば黒色基準板,白色基準板を読み取るこ
とで求められた黒基準,白基準とそれぞれ大小比較す
る。
More specifically, the document image discrimination means 17 is
The output signal from the sample hold circuit 8 (more specifically, sample the output signal from the hold circuit 8 without a predetermined amplifier (shown) amplified signal) S out (In the following, for convenience, the S out (Referred to as sensor output) is compared with the black reference and the white reference obtained by reading, for example, a black reference plate and a white reference plate at the start of prescan.

【0030】図4には、黒基準よりも大きく、白基準よ
りも小さい画像の中間調領域IMが示されている。プレ
スキャン時に原稿1を読み取ったときのCCDセンサ7
(サンプルホールド回路8)からの出力信号Soutのレベ
ルが、この中間調領域IMにある場合には、第1の比較
器21の比較結果は、ハイレベル“H”となり、また、
第2の比較器22の比較結果は、ロウレベル“L”とな
るので、排他的論理和回路23からの出力は、ハイレベ
ル“H”となる。これにより、ラッチ回路24の出力が
“H”となるので、検出器25は、原稿画像が多値画像
であると検出する。
FIG. 4 shows a halftone region IM of an image which is larger than the black reference and smaller than the white reference. CCD sensor 7 when reading document 1 during prescan
When the level of the output signal S out from the (sample and hold circuit 8) is in this halftone region IM, the comparison result of the first comparator 21 becomes the high level “H”, and
Since the comparison result of the second comparator 22 becomes the low level "L", the output from the exclusive OR circuit 23 becomes the high level "H". As a result, the output of the latch circuit 24 becomes "H", and the detector 25 detects that the original image is a multi-valued image.

【0031】これに対し、CCDセンサ7(サンプルホ
ールド回路8)からの出力信号Soutのレベルが、中間調
領域IMにないときには、第1の比較器21,第2の比
較器22の比較結果は、両方ともロウレベル“L”にな
るか、あるいは、両方ともハイレベル“H”になるの
で、排他的論理和回路23からの出力は、ロウレベル
“L”となる。これにより、ラッチ回路24の出力は
“L”であり、検出器25は、原稿画像が2値画像であ
ると検出する。
On the other hand, when the level of the output signal S out from the CCD sensor 7 (sample hold circuit 8) is not in the halftone region IM, the comparison result of the first comparator 21 and the second comparator 22 Both become low level "L", or both become high level "H", so the output from the exclusive OR circuit 23 becomes low level "L". As a result, the output of the latch circuit 24 is "L", and the detector 25 detects that the original image is a binary image.

【0032】具体的に、センサ出力Soutが図5に示す
ようなものであるとき、t1のタイミングで、第1の比
較器21が“H”、第2の比較器22が“L”となり、
排他的論理和回路23からの出力が“H”となって、ラ
ッチ回路24の出力がこのとき“H”となるので、検出
器25は、原稿画像が多値画像であるとの判別結果を出
力する。
Specifically, when the sensor output S out is as shown in FIG. 5, the first comparator 21 is "H" and the second comparator 22 is "L" at the timing of t 1. Next to
Since the output from the exclusive OR circuit 23 becomes "H" and the output of the latch circuit 24 becomes "H" at this time, the detector 25 determines that the original image is a multi-valued image. Output.

【0033】また、センサ出力が図6に示すようなもの
であるときにも、t1,t2,t3のタイミングで、排他
的論理和回路23の出力が“H”となって、ラッチ回路
24の出力が複数回“H”となるので、検出器25は、
原稿画像が多値画像であるとの判別結果を出力する。
Further, even when the sensor output is as shown in FIG. 6, the output of the exclusive OR circuit 23 becomes "H" at the timing of t 1 , t 2 , and t 3 , and the latch Since the output of the circuit 24 becomes “H” multiple times, the detector 25
The determination result that the original image is a multi-valued image is output.

【0034】これに対し、CCDセンサ7の出力が図7
に示すようなものであるとき、t0〜t4全てのタイミン
グで、排他的論理和回路23の出力は“L”となって、
ラッチ回路24の出力が“L”のままであるので、検出
器25は、原稿画像が2値画像であるとの判別結果を出
力する。
On the other hand, the output of the CCD sensor 7 is shown in FIG.
, The output of the exclusive OR circuit 23 becomes “L” at all timings t 0 to t 4 .
Since the output of the latch circuit 24 remains "L", the detector 25 outputs the result of the determination that the original image is a binary image.

【0035】原稿画像判別手段17は、原稿画像が多値
画像であると判別すると、クロック切換手段18に多値
画像である旨の信号を出力する。この信号により、クロ
ック切換手段18は、CCDセンサ7の駆動用クロック
として、低速のクロックCLK1に切換えて、CCDセ
ンサ7に原稿1のファインスキャンを行なわせる。
When the document image discriminating means 17 discriminates that the document image is a multi-valued image, it outputs a signal to the clock switching means 18 to the effect that it is a multi-valued image. By this signal, the clock switching means 18 switches to the low-speed clock CLK 1 as the driving clock of the CCD sensor 7 and causes the CCD sensor 7 to perform fine scanning of the original 1.

【0036】これに対し、原稿画像判別手段17は、原
稿画像が2値画像であると判別すると、クロック切換手
段18に2値画像である旨の信号を出力する。この信号
により、クロック切換手段18は、CCDセンサ7の駆
動用クロックとして、高速のクロックCLK2に切り換
え、CCDセンサ7に原稿1のファインスキャンを行な
わせる。
On the other hand, when the manuscript image discriminating means 17 discriminates that the manuscript image is a binary image, it outputs a signal indicating that the manuscript image is a binary image to the clock switching means 18. In response to this signal, the clock switching means 18 switches to the high-speed clock CLK 2 as the driving clock of the CCD sensor 7, and causes the CCD sensor 7 to perform fine scanning of the original 1.

【0037】図8(a),(b)には、それぞれ、低速のク
ロックCLK1,高速のクロックCLK2が示されてい
る。なお、図8(a),(b)において、TL,THは、1ラ
インの走査時間すなわち光蓄積時間であり、図8(a)の
ように低速のクロックCLK1に切換えられるときに
は、十分な大きさのセンサ出力が得られるよう、光蓄積
時間TLを(低速のクロックCLK1の周期×読み出し画
素数+α)としているが、図8(b)のように高速のクロ
ックCLK2に切換えるときには、光蓄積時間THを(高
速のクロックCLK2の周期×読み出し画素数)程度にし
ている。
8A and 8B show a low speed clock CLK 1 and a high speed clock CLK 2 , respectively. 8 (a) and 8 (b), TL and TH are the scanning time of one line, that is, the light accumulation time, and when switching to the low-speed clock CLK 1 as shown in FIG. 8 (a), large enough so that the sensor output is obtained, the light accumulating time T L has been the (slower clock CLK 1 cycle × read pixel number + alpha), the high-speed clock CLK 2 as shown in FIG. 8 (b) At the time of switching, the light accumulation time T H is set to about (the cycle of the high-speed clock CLK 2 × the number of read pixels).

【0038】このように、この実施例では、原稿画像判
別手段17は、プレスキャン時において、センサ出力S
outを、リファレンスとしての黒基準,白基準とそれぞ
れ大小比較することで、原稿画像が2値であるか多値で
あるかを判別するようにしており、従って、原稿画像が
2値であるか多値であるかの判別を正確に行なうことが
でき、原稿画像に応じたクロックの切換えを正確に行な
うことができて、ファインスキャン時に原稿画像に対し
て、これが2値であるか多値であるかに応じ適切な処理
を行なうことが可能となる。
As described above, in this embodiment, the document image discriminating means 17 outputs the sensor output S during the prescan.
Out is compared with a black reference and a white reference as a reference to determine whether the original image is binary or multi-valued. Therefore, whether the original image is binary is determined. It is possible to accurately determine whether it is multi-valued, it is possible to accurately switch the clock according to the original image, and when the image is fine-scanned, the original image is binary or multi-valued. Appropriate processing can be performed depending on the existence.

【0039】なお、上述の実施例では、原稿画像判別手
段17が図2に示すような構成例のものであるとして説
明したが、図2の構成例に対し、種々の変形,改良を加
えることも可能である。
In the above-mentioned embodiment, the original image discriminating means 17 is explained as having the constitutional example shown in FIG. 2, but various modifications and improvements are added to the constitutional example of FIG. Is also possible.

【0040】図9は原稿画像判別手段17の他の構成例
を示す図である。図9の構成例では、図2の構成例にお
いて、検出器25のかわりに、カウンタ27が設けられ
たものとなっており、カウンタ27は、ラッチ回路24
の出力が“H”となる回数を計数(カウント)し、このカ
ウント値に基づいて、原稿画像が2値であるか多値であ
るかを判別するようになっている。
FIG. 9 is a diagram showing another example of the configuration of the document image discrimination means 17. In the configuration example of FIG. 9, a counter 27 is provided instead of the detector 25 in the configuration example of FIG. 2, and the counter 27 includes the latch circuit 24.
Is counted "H", and whether the original image is binary or multi-valued is determined based on this count value.

【0041】すなわち、CCDセンサ7(サンプルホー
ルド回路8)からは、原稿画像の各画素ごとに出力信号
outが出力されて、原稿画像判別手段17に加わり、
排他的論理和回路23からは、各画素ごとの判別結果、
すなわち、画素のレベルが図4の中間調領域IMのもの
か(多値レベルのものか)、中間調領域IMのものでない
か(2値レベルのものか)の判別結果が出力されてラッチ
回路24に加わり、ラッチ回路24は、画素のレベルが
多値レベルのときには、“H”を出力し、2値レベルの
ときには、“L”を出力するので、カウンタ27は、原
稿画像において、多値レベルとなる画素の個数を計数
(カウント)し、この画素数(多値レベルとなる画素の個
数)が予め設定された個数よりも少ない場合には、原稿
画像が2値画像であると判別し、また、上記画素数が予
め設定された個数よりも大きいときには、原稿画像が多
値画像であると判別するようになっている。
That is, the CCD sensor 7 (sample hold circuit 8) outputs the output signal S out for each pixel of the original image, and the output signal S out is added to the original image discriminating means 17.
From the exclusive OR circuit 23, the determination result for each pixel,
That is, the determination result of whether the pixel level is in the halftone area IM (multi-value level) or not in the halftone area IM (binary level) of FIG. 4 is output and the latch circuit is output. In addition to 24, the latch circuit 24 outputs "H" when the pixel level is a multi-valued level and outputs "L" when the pixel level is a binary level. Count the number of level pixels
(Counting), and when the number of pixels (the number of pixels at the multi-valued level) is less than the preset number, it is determined that the original image is a binary image, and the number of pixels is determined in advance. When the number is larger than the set number, it is determined that the original image is a multi-valued image.

【0042】このような構成では、各画素ごとの判別結
果に基づいて、原稿画像が2値画像であるか多値画像で
あるかを判別できるので、より信頼性の高い判別が可能
となる。
With such a configuration, it is possible to determine whether the original image is a binary image or a multi-valued image based on the determination result for each pixel, so that more reliable determination can be performed.

【0043】また、図10は原稿画像判別手段17のさ
らに他の構成例を示す図である。図10の構成例は、図
2の構成例において、検出器25の前段に積分器29を
設けたものとなっており、積分器29は、ラッチ回路2
4の出力を積算して検出器25に与えるようになってい
る。
FIG. 10 is a diagram showing still another configuration example of the document image discrimination means 17. In the configuration example of FIG. 10, the integrator 29 is provided in the preceding stage of the detector 25 in the configuration example of FIG.
The outputs of 4 are integrated and given to the detector 25.

【0044】このような構成では、積分器29において
は、多値レベルの画素の連続した個数を積算値として計
数することができ、積分器29の出力,すなわち積算値
が所定の閾値Vt以上となると、検出器25が“H”と
なって、原稿画像が多値画像であると判別することがで
きる。なお、ここで、積分器29の時定数および検出器
25の所定の閾値Vtは、多値レベル画像と判別するの
に必要な連続画素数に応じて予め設定されている。
In such a configuration, the integrator 29 can count the continuous number of pixels of multi-valued level as the integrated value, and the output of the integrator 29, that is, the integrated value is equal to or larger than the predetermined threshold value Vt. Then, the detector 25 becomes "H", and it can be determined that the original image is a multi-valued image. Here, the time constant of the integrator 29 and the predetermined threshold value Vt of the detector 25 are set in advance in accordance with the number of continuous pixels required to discriminate the multi-level image.

【0045】図11には、センサ出力Sout1〜t2
間のみ多値レベルであって、多値レベルが1画素しかな
いときの様子が示されている。このときには、ラッチ回
路24の出力はクロック1サイクル分しか“H”となら
ず、積分器29の出力は所定の閾値Vtに達することが
できず、この場合、検出器25は原稿画像が2値画像で
あるとの判別結果を出力する。
FIG. 11 shows a state in which the sensor output S out t 1 -t 2 has a multi-valued level only during the output, and the multi-valued level has only one pixel. At this time, the output of the latch circuit 24 becomes “H” for only one clock cycle, and the output of the integrator 29 cannot reach the predetermined threshold value Vt. In this case, the detector 25 outputs the binary image of the original image. The result of determination that the image is an image is output.

【0046】また、図12には、センサ出力Soutがt1
〜t4の間、連続して多値レベルであって、多値レベル
が3画素以上続いたときの様子が示されている。このと
き、ラッチ回路24の出力はクロック3サイクル分
“H”となり、積分器29の出力は所定の閾値Vtに達
し、この場合、検出器25は原稿画像が多値画像である
との判別結果を出力する。
Further, in FIG. 12, the sensor output S out is t 1
During the ~t 4, a multi-level continuously, state is shown when the multi-level continues for three pixels or more. At this time, the output of the latch circuit 24 becomes “H” for three clock cycles, and the output of the integrator 29 reaches the predetermined threshold value Vt. In this case, the detector 25 determines that the original image is a multi-valued image. Is output.

【0047】また、図13には、センサ出力Soutがt0
〜t4全てのタイミングで2値レベルであって、全ての
画素が2値レベルであるときの様子が示されている。こ
のとき、ラッチ回路24の出力は全て“L”となり、積
分器29の出力は所定の閾値Vtに達しないので、検出
器25は原稿画像が2値画像であるとの判別結果を出力
する。
Further, in FIG. 13, the sensor output S out is t 0.
It is shown that all the pixels are at the binary level at all timings up to t 4 and all the pixels are at the binary level. At this time, all the outputs of the latch circuit 24 become “L” and the output of the integrator 29 does not reach the predetermined threshold value Vt, so the detector 25 outputs the determination result that the original image is a binary image.

【0048】また、上述の実施例では、黒基準,白基準
として、黒基準読取画像における画素濃度レベルの最大
値,白基準読取画像における画素濃度レベルの最小値を
用いているが、これのかわりに、黒基準読取画像におけ
る画素濃度レベルの平均値,白基準読取画像における画
素濃度レベルの平均値を用いることもできる。より詳し
くは、図2,図9,図10の構成例において、原稿画像
判別手段17にセンサ出力Soutの加算平均値を求める
加算平均化手段を設け、例えばプレスキャン開始時に黒
色基準板を読取ったときの黒基準読取画像における各画
素の画素濃度レベルの平均値を黒基準として用い、ま
た、例えばプレスキャン開始時に白色基準板を読取った
ときの白基準読取画像における各画素の画素濃度レベル
の平均値を白基準として用いることもでき、この場合に
は、より安定に判別を行なうことができる。
In the above-described embodiment, the maximum value of the pixel density level in the black reference read image and the minimum value of the pixel density level in the white reference read image are used as the black reference and the white reference. Alternatively, the average value of the pixel density levels in the black reference read image and the average value of the pixel density levels in the white reference read image can be used. More specifically, in the configuration examples of FIGS. 2, 9 and 10, the original image discrimination means 17 is provided with an averaging means for obtaining an arithmetic mean value of the sensor output S out , and for example, a black reference plate is read at the start of prescanning. The average value of the pixel density level of each pixel in the black reference read image at the time of scanning is used as the black reference, and, for example, the pixel density level of each pixel in the white reference scan image when the white reference plate is read at the start of prescan The average value can be used as the white reference, and in this case, the determination can be performed more stably.

【0049】また、図9の構成例では、中間調レベル
(多値レベル)にある画素の個数をカウンタ27で計数す
るようにしているが、中間調レベルにない画素の個数を
カウンタ27で計数し、このカウント値が所定の閾値よ
りも大きいとき2値画像と判別し、所定の閾値よりも大
きくないとき多値画像と判別することもできる。
In the configuration example of FIG. 9, the halftone level is
The counter 27 counts the number of pixels at the (multi-valued level), but the counter 27 counts the number of pixels that are not at the halftone level, and when the count value is larger than a predetermined threshold value, it is a binary value. It is also possible to determine that the image is a multi-valued image when it is not larger than a predetermined threshold value.

【0050】同様に、図10の構成例では、積分器29
は、中間調レベル(多値レベル)の画素の連続した個数を
積算するように構成されているが、これのかわりに、中
間調レベルにない画素の連続した個数を積算するよう構
成されていても良い。この場合には、積分器29の出力
が所定の閾値以上となるとき、2値画像と判別し、所定
の閾値以下のときは多値画像と判別することができる。
Similarly, in the configuration example of FIG.
Is configured to integrate the continuous number of pixels at the halftone level (multilevel), but instead is configured to integrate the continuous number of pixels that are not at the halftone level. Is also good. In this case, when the output of the integrator 29 is equal to or higher than a predetermined threshold value, it can be determined as a binary image, and when it is equal to or lower than the predetermined threshold value, it can be determined as a multi-value image.

【0051】また、図14は本発明に係る画像入力装置
の他の実施例の部分構成図である。なお、図14におい
て、図1と同様の箇所には同じ符号を付している。
FIG. 14 is a partial block diagram of another embodiment of the image input apparatus according to the present invention. Note that, in FIG. 14, the same parts as those in FIG. 1 are denoted by the same reference numerals.

【0052】図14の画像入力装置では、図1の構成に
おいて、CCDセンサ7(サンプルホールド回路8)から
の出力信号Soutをデジタル化するA/D変換回路9の
前段および後段に、それぞれスイッチ手段31,32が
設けられ、また、A/D変換回路9と並列に、2値化手
段(2値化回路)33および分配手段(分配器)34が設け
られている。
In the image input device of FIG. 14, in the configuration of FIG. 1, switches are provided at the front stage and the rear stage of the A / D conversion circuit 9 for digitizing the output signal S out from the CCD sensor 7 (sample hold circuit 8). Means 31 and 32 are provided, and a binarization means (binarization circuit) 33 and a distribution means (distributor) 34 are provided in parallel with the A / D conversion circuit 9.

【0053】ここで、スイッチ手段31,32は、原稿
画像判別手段17の判別結果に応じて切換わるようにな
っており、原稿画像判別手段17が原稿画像を2値画像
と判別した場合には、スイッチ手段31は、センサ出力
outを2値化回路33,分配器34に与え、センサ出
力Soutを2値化回路33でデジタル化し、その後、分
配器(例えばnビットの分配器)34で多ビット化(例え
ばnビット化)してスイッチ手段32から線密度変換回
路12に与え、また、原稿画像判別手段17が原稿画像
を多値画像と判別した場合には、スイッチ手段31は、
CCDセンサ7からの出力信号をA/D変換回路9に与
え、A/D変換回路9でデジタル化してスイッチ手段3
2から暗出力補正回路10に与えるようになっている。
Here, the switch means 31, 32 are adapted to switch according to the discrimination result of the document image discrimination means 17, and when the document image discrimination means 17 discriminates the document image as a binary image. The switch means 31 supplies the sensor output S out to the binarization circuit 33 and the distributor 34, digitizes the sensor output S out by the binarization circuit 33, and then the distributor (for example, an n-bit distributor) 34. When the original image discriminating means 17 discriminates the original image as a multi-valued image, the switch means 31
The output signal from the CCD sensor 7 is given to the A / D conversion circuit 9, digitized by the A / D conversion circuit 9, and the switch means 3 is provided.
2 to the dark output correction circuit 10.

【0054】図14のような構成では、原稿画像が多値
の場合には、原稿画像判別手段17からの信号により、
スイッチ手段31はセンサ出力SoutをA/D変換回路
9に与え、A/D変換回路9はセンサ出力Soutを例え
ばnビットにデジタル化し、スイッチ手段32はA/D
変換回路9からのnビットのデジタル信号を暗出力補正
回路10に出力することができる。
In the configuration shown in FIG. 14, when the original image is multi-valued, the signal from the original image discrimination means 17 causes
The switch means 31 gives the sensor output S out to the A / D conversion circuit 9, the A / D conversion circuit 9 digitizes the sensor output S out to, for example, n bits, and the switch means 32 makes the A / D.
The n-bit digital signal from the conversion circuit 9 can be output to the dark output correction circuit 10.

【0055】また、原稿画像が2値の場合には、スイッ
チ手段31はセンサ出力Soutを2値化回路33,分配
器34に与え、2値化回路33は、センサ出力Sout
1ビットにデジタル化し(すなわち、2値化し)、分配器
34は2値化回路33からのデジタル化された信号(1
ビットの信号)を、A/D変換回路9におけるのと同じ
nビットの信号に変換し(nビット化し)、スイッチ手段
32は、分配器34からのnビット化されたデジタル信
号を線密度変換回路12に出力することができる。な
お、原稿画像が2値画像の場合には、このように、暗出
力補正およびシェーディング補正を行なわず、nビット
のデジタル信号を線密度変換回路12に直接出力するこ
とができる。
When the original image is binary, the switch means 31 gives the sensor output S out to the binarizing circuit 33 and the distributor 34, and the binarizing circuit 33 makes the sensor output S out 1 bit. And digitized (i.e., binarized) into a digital signal from the binarization circuit 33 (1
(Bit signal) into the same n-bit signal as in the A / D conversion circuit 9 (n-bit conversion), and the switch means 32 converts the n-bit digital signal from the distributor 34 into linear density conversion. It can be output to the circuit 12. When the original image is a binary image, the n-bit digital signal can be directly output to the linear density conversion circuit 12 without performing the dark output correction and the shading correction.

【0056】このように、図14の構成例では、2値画
像データについては2値化回路33,分配器34で高速
にデジタル変換処理がなされ、A/D変換回路9は、2
値画像データに比べて差程高速性の要求されない多値画
像データに対するデジタル変換処理にのみ用いられるの
で、A/D変換回路9には、高価な高速A/D変換器を
用いる必要がなく、画像入力装置を低コストのものにす
ることができる。すなわち、A/D変換回路9に高速の
ものを用いずとも、2値画像データを高速にデジタル変
換処理することができ、2値画像,多値画像の両方につ
いて最適な画像入力を行なうことができる。
As described above, in the configuration example of FIG. 14, the binary image data is subjected to high-speed digital conversion processing by the binarization circuit 33 and the distributor 34, and the A / D conversion circuit 9 outputs 2 bits.
Since it is used only for digital conversion processing for multi-valued image data that is not required to be as fast as value image data, it is not necessary to use an expensive high-speed A / D converter for the A / D conversion circuit 9. The image input device can be made low cost. That is, binary image data can be digitally converted at high speed without using a high-speed A / D conversion circuit 9, and optimal image input can be performed for both binary images and multi-valued images. it can.

【0057】また、図15は図14の画像入力装置の変
形例を示す図である。なお、図15では、デジタル化さ
れたデータを暗出力補正回路10,シェーディング補正
回路11,線密度変換回路12,インターフェイス13
に与えるかわりに、外部記憶装置36に書き込むものと
している。
FIG. 15 is a diagram showing a modification of the image input device of FIG. In FIG. 15, the digitized data is converted into the dark output correction circuit 10, the shading correction circuit 11, the linear density conversion circuit 12, and the interface 13.
It is assumed that the data is written in the external storage device 36 instead of being given to

【0058】図15を参照すると、この画像入力装置で
は、図14の画像入力装置において、2値化回路33と
スイッチ手段32との間に、分配器34を設けるかわり
に、直並列変換手段(直並列変換器)38が設けられ、ま
た、直並列変換器38と外部記憶装置36との間には、
分周手段(分周器)39,スイッチ手段40,アドレス生
成手段(アドレスカウンタ)41が設けられている。
Referring to FIG. 15, in this image input device, in the image input device of FIG. 14, instead of providing a distributor 34 between the binarization circuit 33 and the switch means 32, a serial / parallel conversion means ( (Serial-parallel converter) 38 is provided, and between the serial-parallel converter 38 and the external storage device 36,
A frequency dividing means (frequency divider) 39, a switching means 40, and an address generating means (address counter) 41 are provided.

【0059】ここで、直並列変換器38,分周器39,
スイッチ手段40には、図2に示した画素データ(ホー
ルドパルス)に同期したクロックCLKが加わり、分周
器39はクロックCLKをn分周し、同期信号Sn,分
周クロックCLKnを生成して、直並列変換器38,ス
イッチ手段40にそれぞれ出力し、直並列変換器38
は、クロックCLKに同期して順次に入力する画素デー
タ(1ビット)を分周信号Snに同期させてn画素単位(n
ビット)でスイッチ手段32を介し外部記憶装置36に
出力するようになっている。なお、このため、外部記憶
装置36には、1つのメモリアドレスに対し、nビット
のメモリセルを有しているもの(すなわち、nビットの
データを記憶できるもの)が用いられる。
Here, the serial-parallel converter 38, the frequency divider 39,
A clock CLK synchronized with the pixel data (hold pulse) shown in FIG. 2 is applied to the switch means 40, and a frequency divider 39 divides the clock CLK by n to generate a synchronization signal S n and a divided clock CLK n . And outputs to the serial-parallel converter 38 and the switch means 40, respectively, and the serial-parallel converter 38
Synchronizes pixel data (1 bit), which is sequentially input in synchronization with the clock CLK, with the frequency-divided signal S n in n pixel units (n
(Bit) is output to the external storage device 36 via the switch means 32. Therefore, as the external storage device 36, one having n-bit memory cells for one memory address (that is, one capable of storing n-bit data) is used.

【0060】また、各スイッチ手段31,32,40
は、原稿画像が多値画像か2値画像かの原稿画像判別手
段17からの判別結果により信号を切り換えるようにな
っており、原稿画像が多値の場合、スイッチ手段31
は、センサ出力SoutをA/D変換回路9に与え、ま
た、スイッチ手段32はA/D変換回路9からの1画素
単位(1ビット)のデジタルデータを外部記憶装置36に
出力し、また、スイッチ手段40はクロックCLKをア
ドレスカウンタ41のクロックとして出力するようにな
っており、これにより、外部記憶装置36には、データ
が1画素分ずつ記憶される。
Further, each switch means 31, 32, 40
Is adapted to switch the signal according to the discrimination result from the document image discriminating means 17 whether the document image is a multi-valued image or a binary image. When the document image is multi-valued, the switch means 31 is used.
Supplies the sensor output S out to the A / D conversion circuit 9, and the switch means 32 outputs the digital data of one pixel unit (1 bit) from the A / D conversion circuit 9 to the external storage device 36. The switch means 40 outputs the clock CLK as the clock of the address counter 41, whereby data is stored in the external storage device 36 pixel by pixel.

【0061】これに対し、原稿画像が2値の場合は、ス
イッチ手段31は、センサ出力Soutを2値化回路3
3,直並列変換器38に与え、スイッチ手段32は、直
並列変換器38からのn画素単位(nビット)のデジタル
データを外部記憶装置36に出力し、また、スイッチ手
段40は、分周器39によりクロックCLKをn分周し
た分周クロックCLKnをアドレスカウンタ41のクロ
ックとして出力するようになっており、これにより、外
部記憶装置36には、n画素分のデータが一度に記憶さ
れる。
On the other hand, when the original image is binary, the switch means 31 outputs the sensor output S out to the binary circuit 3.
3, the switch means 32 outputs the digital data in n pixel units (n bits) from the serial-parallel converter 38 to the external storage device 36, and the switch means 40 divides the frequency. A frequency-divided clock CLKn obtained by dividing the clock CLK by n is output as a clock of the address counter 41 by the device 39, whereby data of n pixels is stored in the external storage device 36 at one time. .

【0062】図16は原稿画像が2値の場合の図15の
画像入力装置の動作を説明するためのタイムチャートで
ある。なお、図16では、分周器39の分周比nが4で
ある場合が示されている。
FIG. 16 is a time chart for explaining the operation of the image input device of FIG. 15 when the original image is binary. Note that FIG. 16 shows a case where the frequency division ratio n of the frequency divider 39 is 4.

【0063】図15の画像入力装置では、原稿画像が2
値であるとき、センサ出力Soutは2値化回路33でデ
ジタル化され直並列変換器38に加わる。このとき、直
並列変換器38では、2値化回路33からのデジタルデ
ータ(画素データ)をクロックCLKにより順次に取り込
む。一方、分周器39は、クロックCLKをn(=4)分
周したクロックCLKn(CLK4)と、4分周毎の同期
信号Sn(S4)を生成し、直並列変換器38には同期信
号Sn(S4)を与える。これにより、直並列変換器38
は、分周器39によって生成された信号Sn(S4)に同
期させて、4画素単位で外部記憶装置36に出力する。
また、スイッチ手段40は、分周器39によって分周さ
れたクロック信号CLKn(CLK4)をアドレスカウン
タ41のクロックとして出力し、これにより、アドレス
カウンタ41は分周クロックCLKn(CLK4)で外部
記憶装置36のメモリアドレスを設定する。
In the image input device of FIG. 15, the original image is 2
When it is a value, the sensor output S out is digitized by the binarization circuit 33 and added to the serial-parallel converter 38. At this time, the serial-parallel converter 38 sequentially takes in the digital data (pixel data) from the binarization circuit 33 with the clock CLK. On the other hand, the frequency divider 39 generates a clock CLKn (CLK 4 ) obtained by dividing the clock CLK by n (= 4) and a synchronization signal Sn (S 4 ) for every four divisions, and the serial-parallel converter 38 has A synchronization signal Sn (S 4 ) is given. As a result, the serial-parallel converter 38
Outputs to the external storage device 36 in units of 4 pixels in synchronization with the signal Sn (S 4 ) generated by the frequency divider 39.
Further, the switch means 40 outputs the clock signal CLKn (CLK 4 ) divided by the frequency divider 39 as a clock of the address counter 41, whereby the address counter 41 uses the divided clock CLKn (CLK 4 ) as an external signal. The memory address of the storage device 36 is set.

【0064】このようにして、直並列変換器38におい
て、クロックCLKで順次に取り込まれた画素データ
は、同期信号Sn(S4)のタイミングP0においてD0
3が一度に出力され、外部記憶装置36のメモリアド
レスA0に記憶され、次いで、同期信号Sn(S4)のタイ
ミングP1においてD4〜D7が一度に出力され、外部記
憶装置36のメモリアドレスA1に記憶されるというよ
うに、外部記憶装置36に4画素分ずつ一度に記憶さ
れ、高速処理が可能となる。
In this way, in the serial-parallel converter 38, the pixel data sequentially fetched by the clock CLK is output from D 0 to D 0 at the timing P 0 of the synchronizing signal Sn (S 4 ).
D 3 is output at one time and stored in the memory address A 0 of the external storage device 36, and then D 4 to D 7 are output at one time at the timing P 1 of the synchronization signal Sn (S 4 ), and the external storage device 36 is output. of so that they are stored in the memory address a 1, stored in the external storage device 36 at a time by 4 pixel minutes, high-speed processing is possible.

【0065】このように、図15の構成例においても、
2値画像データについては2値化回路33,直並列変換
器38で高速にデジタル変換処理がなされ、A/D変換
回路9は、2値画像データに比べて差程高速性の要求さ
れない多値画像データに対するデジタル変換処理にのみ
用いられるので、A/D変換回路9には、高価な高速A
/D変換器を用いる必要がなく、画像入力装置を低コス
トのものにすることができる。すなわち、A/D変換回
路9に高速のものを用いずとも、2値画像データを高速
にデジタル変換処理することができ、2値画像,多値画
像の両方について最適な画像入力を行なうことができ
る。さらに、図15の構成例では、原稿画像が2値画像
の場合、センサ出力を2値化回路によりデジタル化し、
1つのメモリアドレスに対しnビットのメモリセルを有
する記憶装置にn画素のデータを格納することで、大容
量の記憶装置を必要とすることなく、読み取り領域の大
きい(読み取り画素数の多い)、安定した画像を得ること
ができる。
Thus, also in the configuration example of FIG.
The binary image data is subjected to high-speed digital conversion processing by the binarization circuit 33 and the serial / parallel converter 38, and the A / D conversion circuit 9 is a multi-valued image which is not required to be as fast as the binary image data. Since the A / D conversion circuit 9 is used only for digital conversion processing of image data, expensive high-speed A
Since it is not necessary to use the / D converter, the image input device can be manufactured at low cost. That is, binary image data can be digitally converted at high speed without using a high-speed A / D conversion circuit 9, and optimal image input can be performed for both binary images and multi-valued images. it can. Further, in the configuration example of FIG. 15, when the original image is a binary image, the sensor output is digitized by a binarization circuit,
By storing n-pixel data in a memory device having n-bit memory cells for one memory address, a large read area (a large number of read pixels) can be obtained without requiring a large-capacity memory device. A stable image can be obtained.

【0066】なお、このようにして外部記憶装置36に
書き込んだ画像データを外部記憶装置36から読み出す
場合は、図示しないが、nビットの並直列変換器を設
け、上述したと同様に分周器を用いてメモリアドレスを
設定し、また必要に応じnビットの分配器等で2値デー
タを出力機器(プリンタ、ディスプレイ等)のビット数に
変換すれば良い。
When the image data thus written in the external storage device 36 is read out from the external storage device 36, although not shown, an n-bit parallel-serial converter is provided and the frequency divider is operated in the same manner as described above. Is used to set the memory address, and if necessary, the n-bit distributor may be used to convert the binary data into the number of bits of the output device (printer, display, etc.).

【0067】また、図14,図15に示した2値化回路
33の2値化閾値は、ファインスキャンの開始時に、例
えば黒色基準板および白色基準板を読み取り、それぞれ
の画素濃度レベルの平均値を閾値の下限値および上限値
として設定することができる。このように、2値化回路
のリファレンスをファインスキャン開始時に読み取った
黒基準読取画像の画素濃度レベルの平均値と白基準読取
画像の画素濃度レベルの平均値とから生成することで、
センサの駆動用クロックを高速クロックCLK2に切り
換えた場合でも、また光源変動等が生じた場合でも、常
に適切な2値化が行なわれ安定した画像を得ることがで
きる。
The binarization threshold value of the binarization circuit 33 shown in FIGS. 14 and 15 is, for example, a black reference plate and a white reference plate read at the start of the fine scan, and the average value of the respective pixel density levels is read. Can be set as the lower limit value and the upper limit value of the threshold. In this way, by generating the reference of the binarization circuit from the average value of the pixel density levels of the black reference read image and the average value of the pixel density levels of the white reference read image read at the start of the fine scan,
Even when the driving clock of the sensor is switched to the high-speed clock CLK 2 or when the light source changes or the like, appropriate binarization is always performed and a stable image can be obtained.

【0068】また、図17は本発明に係る画像入力装置
のさらに他の実施例の構成図である。図17の画像入力
装置では、図1の画像入力装置において、さらに、読み
取ったライン信号を所定のライン数(m回)分副走査方向
に積算平均化し、積算平均化された出力を1ラインの信
号とする積算平均化手段43がA/D変換回路9の後段
に設けられ、また、このような積算平均化処理に伴な
い、所定の走査速度で原稿1が副走査されるようモータ
5を制御するためのライン積算処理制御手段45が設け
られている。
FIG. 17 is a block diagram of still another embodiment of the image input apparatus according to the present invention. In the image input device of FIG. 17, the read line signal is further averaged in the sub-scanning direction by a predetermined number of lines (m times) in the image input device of FIG. A cumulative averaging means 43 which is a signal is provided in the subsequent stage of the A / D conversion circuit 9, and the motor 5 is sub-scanned at a predetermined scanning speed in accordance with such a cumulative averaging process. Line integration processing control means 45 for controlling is provided.

【0069】このような構成の画像入力装置では、プレ
スキャン時に原稿画像判別手段17において原稿画像が
多値であると判別されると、ファインスキャン時には、
積算平均化手段43では、原稿画像が多値であるとの判
別結果に基づいて、A/D変換回路9からの原稿1のラ
インデータを予め設定された所定のライン数(m回)分、
積算平均化して、暗出力補正回路10に出力すると同時
に、ライン積算処理制御手段45では予め設定された走
査速度の1/mの走査速度で原稿1が走査されるようモ
ータ駆動制御部15を制御する。
In the image input device having such a structure, when the document image discriminating means 17 discriminates that the document image is multi-valued at the time of prescan, at the time of fine scan,
In the integration and averaging means 43, the line data of the document 1 from the A / D conversion circuit 9 is set for a predetermined number of lines (m times) set in advance, based on the determination result that the document image is multivalued.
Simultaneously averaging and outputting to the dark output correction circuit 10, at the same time, the line integration processing control means 45 controls the motor drive control unit 15 so that the document 1 is scanned at a scanning speed of 1 / m of a preset scanning speed. To do.

【0070】また、プレスキャン時に原稿画像判別手段
17において原稿画像が2値であると判別された場合、
ファインスキャン時には、原稿画像が2値であるとの判
別結果に基づいてA/D変換回路9からのデジタルデー
タ(ラインデータ)に対して積算平均化処理を行なうこと
なく、暗出力補正回路10に出力する。
When the document image discrimination means 17 discriminates that the document image is binary during the prescan,
At the time of fine scanning, the dark output correction circuit 10 does not perform the integration and averaging process on the digital data (line data) from the A / D conversion circuit 9 based on the determination result that the original image is binary. Output.

【0071】図18は積算平均化処理を説明するための
タイムチャートである。ここで、図18(a)はA/D変
換回路9から積算平均化手段43への入力信号を示して
おり、L1,L2,…,L17はそれぞれ1ライン分の
信号すなわちラインデータをそれぞれ表わしている。ま
た、図18(b),(c)は積算回数mを4とする時の制御
信号CTL1,CTL2を示し、図18(d),(e)は積算
回数mを8とする時の制御信号CTL1,CTL2を示し
ている。
FIG. 18 is a time chart for explaining the integration and averaging process. Here, FIG. 18A shows an input signal from the A / D conversion circuit 9 to the integration and averaging means 43, and L1, L2, ..., L17 respectively represent signals for one line, that is, line data. ing. 18B and 18C show control signals CTL 1 and CTL 2 when the number of integrations m is 4, and FIGS. 18D and 18E show when the number of integrations m is 8. The control signals CTL 1 and CTL 2 are shown.

【0072】なお、これらの制御信号CTL1,CTL2
は、積算平均化手段43内において、クロックCLKに
同期させて生成されるようになっている。また、これら
の制御信号CTL1,CTL2は、原稿画像判別手段17
が原稿画像を多値画像と判別した時の積算平均化処理に
おいてのみ用いられ、積算平均化処理を行なわない場
合、すなわち原稿画像判別手段17が原稿画像を2値画
像と判別した時には、これらの制御信号CTL1,CT
2は用いられず、この場合、A/D変換回路9からの
デジタルデータは積算平均化手段43から暗出力補正回
路10にそのままの状態で直接出力される。
Note that these control signals CTL 1 and CTL 2
Is generated in the integrating and averaging means 43 in synchronization with the clock CLK. Further, these control signals CTL 1 and CTL 2 are supplied to the original image discrimination means 17
Is used only in the integrated averaging process when the original image is discriminated as a multi-valued image, and when the integrated averaging process is not performed, that is, when the original image discriminating means 17 discriminates the original image as a binary image. Control signals CTL 1 , CT
L 2 is not used, and in this case, the digital data from the A / D conversion circuit 9 is directly output from the integration / averaging means 43 to the dark output correction circuit 10 as it is.

【0073】いま、m=4の積算が行なわれる場合につ
いて説明する。この場合、先ず、図18(b)の制御信号
CTL1がロウレベル“L”になると、入力信号のライ
ンデータL1のみが積算平均化手段43のメモリに書き
込まれる。次に、制御信号CTL1がハイレベル“H”
になるタイミングで、次の入力信号,すなわちラインデ
ータL2が入力するが、この際、メモリに書き込まれて
いるラインデータL1を読み出して、これを入力信号の
ラインデータL2の対応するドット位置データに積算
し、L1+L2として、再びメモリに書き込む。次い
で、制御信号CTL1が“H”となっている次のタイミ
ングでは、ラインデータL3が入力するが、このときも
前のタイミング時と同様、メモリに書き込まれているラ
インデータL1+L2を読み出して、これをラインデー
タL3に積算し、L1+L2+L3として、再びメモリ
に書き込む。そして、次のタイミングで、図18(c)の
制御信号CTL2がロウレベル“L”になると、入力信
号のラインデータL4にL1+L2+L3が積算され
て、L1+L2+L3+L4となった後、これを平均化
し(例えば4で割算し)、新たな1ラインデータL1’と
して暗出力補正回路10に出力する。
Now, the case where the integration of m = 4 is performed will be described. In this case, first, when the control signal CTL 1 of FIG. 18B becomes low level “L”, only the line data L 1 of the input signal is written in the memory of the integrating / averaging means 43. Next, the control signal CTL 1 is high level “H”.
At the timing, the next input signal, that is, the line data L2 is input. At this time, the line data L1 written in the memory is read and this is used as the dot position data corresponding to the line data L2 of the input signal. It is integrated and written as L1 + L2 again in the memory. Next, at the next timing when the control signal CTL 1 is “H”, the line data L3 is input. At this time as well, similarly to the previous timing, the line data L1 + L2 written in the memory is read, This is added to the line data L3 and written as L1 + L2 + L3 in the memory again. Then, at the next timing, when the control signal CTL 2 of FIG. 18C becomes low level “L”, L1 + L2 + L3 is integrated with the line data L4 of the input signal to become L1 + L2 + L3 + L4, and then this is averaged (for example, (Divided by 4) and output to the dark output correction circuit 10 as new 1-line data L1 ′.

【0074】次いで、再び制御信号CTL1が“L”に
なると、入力信号のラインデータL5のみがメモリに書
き込まれ、以後、上述と同様の動作を繰り返し、ライン
データL5〜L8を積算平均化し、新たな1ラインデー
タL2’として出力し、また、ラインデータL9〜L1
2を積算平均化し、新たな1ラインデータL3’として
出力することができる。
Next, when the control signal CTL 1 becomes "L" again, only the line data L5 of the input signal is written in the memory, and thereafter, the same operation as described above is repeated to integrate and average the line data L5 to L8. It is output as new 1-line data L2 ', and line data L9-L1 is output.
2 can be integrated and averaged and output as new 1-line data L3 ′.

【0075】m=8の積算の場合も、図18(c),(d)
の制御信号CTL1,CTL2を用いて同様に行なわれ、
ラインデータL1〜L8を積算平均化し、新たな1ライ
ンデータL1”として出力し、また、ラインデータL9
〜L16を積算平均化し、新たな1ラインデータL2”
として出力する。
Also in the case of integration of m = 8, FIGS. 18 (c) and 18 (d)
Are similarly performed using the control signals CTL 1 and CTL 2 of
The line data L1 to L8 are integrated and averaged and output as new 1-line data L1 ″.
~ L16 is integrated and averaged to create new 1-line data L2 "
Output as

【0076】なお、上述のような処理において、積算平
均化手段43のメモリに書き込まれるデータは、1ライ
ンデータが入力される度に更新されていくので、積算平
均化手段43のメモリの容量は、1ライン分あれば十分
である。また、ラインデータのビット数は積算がなされ
るに従って増加するので、例えばデータバスの本数(ビ
ット数)については、積算回数に応じ予め余分に用意し
ておく。例えばm=16である場合には、4ビット余分
に必要となる。
In the above-described processing, the data written in the memory of the integration / averaging means 43 is updated every time one line data is input. One line is enough. In addition, since the number of bits of line data increases as integration is performed, for example, the number of data buses (bit number) is prepared in advance according to the number of integrations. For example, when m = 16, 4 bits are additionally required.

【0077】このように、原稿画像が多値画像の場合、
積算平均化手段による積算処理を実行し、原稿画像が2
値画像の場合、積算平均化手段による積算処理を行なわ
ないようにすることで、多値画像ではより良好な読み取
り品質が得られ、2値画像では読み取り時間を短縮する
ことができる。
As described above, when the original image is a multi-valued image,
The original image is 2 after the integration processing by the integration and averaging means is executed.
In the case of the value image, by omitting the integration processing by the integration and averaging means, better reading quality can be obtained in the multivalued image and the reading time can be shortened in the binary image.

【0078】また、上述の各実施例,各構成例では、原
稿画像判別手段17からの判別結果に応じて、クロック
切換手段18がCCDセンサ7用のクロックを切換える
ようになっているが、これのかわりに、原稿画像判別手
段17からの判別結果に応じて、光源4の光量を制御す
るようにすることも可能である。
In each of the above-described embodiments and configuration examples, the clock switching means 18 switches the clock for the CCD sensor 7 in accordance with the discrimination result from the document image discrimination means 17. Instead of this, it is also possible to control the light amount of the light source 4 according to the discrimination result from the document image discrimination means 17.

【0079】図19はこのような画像入力装置の構成例
を示す図である。図19を参照すると、図1のクロック
切換手段18のかわりに光源制御手段47が設けられて
おり、この光源制御手段47は、プレスキャン時に原稿
画像が多値であるとの判別結果が出力されると、ファイ
ンスキャン時には、光源4の光量が予め設定された光量
となるように光源4を制御し、また、プレスキャン時に
原稿画像判別手段17から原稿画像が2値であるとの判
別結果が出力されると、ファインスキャン時には、光源
4の光量を多値画像の場合よりも低下させるように光源
4を制御するようになっている。
FIG. 19 is a diagram showing a configuration example of such an image input device. Referring to FIG. 19, a light source control unit 47 is provided in place of the clock switching unit 18 of FIG. 1, and the light source control unit 47 outputs a determination result that a document image is multi-valued during prescan. Then, at the time of fine scanning, the light source 4 is controlled so that the light amount of the light source 4 becomes a preset light amount, and at the time of pre-scanning, the document image discriminating means 17 determines that the document image is binary. When output, the light source 4 is controlled so as to reduce the light amount of the light source 4 during fine scanning as compared with the case of a multi-valued image.

【0080】このような構成では、原稿画像の種別に応
じ最適な光量で原稿画像の読取りがなされるので、良好
な原稿画像を得ることができるとともに、原稿画像が2
値画像の場合、光源の光量を多値画像の場合よりも低下
させるようにすることで、装置の発熱を防ぐとともに電
力の省力化が可能となる。
With such a configuration, since the original image is read with an optimum light amount according to the type of the original image, a good original image can be obtained and the original image is 2
In the case of the value image, the light amount of the light source is made lower than that in the case of the multi-value image, so that heat generation of the device can be prevented and the power consumption can be saved.

【0081】また、さらに、図1と図19とを組合わ
せ、図20に示すように、原稿画像判別手段17からの
判別結果に応じ、クロック切換手段18で、クロックの
切換えを行なうとともに、光量制御手段47で光源4の
光量を制御するようにすることも可能である。このよう
な構成では、原稿画像が2値画像の場合、センサ駆動ク
ロックを高速クロックに切り換え、かつ光源の光量を多
値画像の時よりも低下さるようにすることで、原稿画像
データに応じ読み取り時間の短縮が可能で、かつ原稿画
像の種別に応じ最適な光量で原稿画像の読取りがなされ
るので、良好な原稿画像を得ることができるとともに、
装置の発熱を防ぐとともに電力の省力化が可能となる。
Further, as shown in FIG. 20 by combining FIG. 1 and FIG. 19, the clock switching means 18 switches the clock according to the discrimination result from the document image discrimination means 17, and the light amount is changed. It is also possible to control the light amount of the light source 4 by the control means 47. With such a configuration, when the original image is a binary image, the sensor driving clock is switched to a high-speed clock, and the light amount of the light source is set to be lower than that in the case of a multi-valued image, so that the original image data is read. The time can be shortened, and the original image is read with the optimum light amount according to the type of the original image, so that a good original image can be obtained, and
It is possible to prevent heat generation of the device and save power.

【0082】上述の各実施例,構成例では、原稿画像判
別手段17はA/D変換回路9の前段に設けられてお
り、従って、原稿画像判別手段17はアナログ信号を用
いて原稿画像が2値か多値かを判別するとしたが、原稿
画像判別手段17をA/D変換回路9の後段に設け、デ
ジタル信号を用いて、原稿画像が2値か多値かを判別す
るように構成することもできる。
In each of the above-described embodiments and configuration examples, the original image discriminating means 17 is provided in the preceding stage of the A / D conversion circuit 9. Therefore, the original image discriminating means 17 uses the analog signal to output the original image 2 Although it is determined whether the original image is multivalued or not, the original image discriminating means 17 is provided in the subsequent stage of the A / D conversion circuit 9 and configured to discriminate whether the original image is binary or multivalued by using a digital signal. You can also

【0083】また、上述の各実施例,構成例において、
原稿画像判別手段17のかわりに、原稿が2値画像であ
るか多値画像であるかを外部から入力指示させる画像デ
ータ指示手段を用いることもできる。図21には、図1
の構成例において、原稿画像判別手段17のかわりに、
外部から原稿画像の種別を入力指示させる画像データ指
示手段60が設けられている画像入力装置が示されてい
る。
In each of the above-mentioned embodiments and configuration examples,
Instead of the document image discrimination means 17, it is also possible to use an image data designating means for instructing from the outside whether the document is a binary image or a multi-valued image. In FIG. 21, FIG.
In the configuration example of the above, instead of the document image discrimination means 17,
An image input device provided with an image data instructing means 60 for instructing to input the type of a document image from the outside is shown.

【0084】図21のような画像入力装置では、外部か
ら原稿画像の種別が入力指定されると、クロック切換手
段18に原稿画像の種別を与える。これにより、クロッ
ク切換手段18は、原稿画像の種別に応じて、クロック
の切換えを行なう。具体的に、画像データ指示手段60
により外部から2値画像が指定されると、クロック切換
手段18は、クロックを高速のクロックCLK2に切り
換え、これにより、高速読み取りを行なわせることがで
きる。また、外部入力の画像データ指示手段60を設け
た図21の画像入力装置において、読み取りモードとし
て簡易読み取りモードが設けられている場合、外部から
2値画像が指示されるとき、プレスキャンは実行せず、
すぐにファインスキャンを行なうことができる。
In the image input device as shown in FIG. 21, when the type of the original image is designated from the outside, the type of the original image is given to the clock switching means 18. As a result, the clock switching unit 18 switches the clock according to the type of document image. Specifically, the image data instruction means 60
When a binary image is designated from the outside by the, the clock switching means 18 switches the clock to the high-speed clock CLK 2 , and thereby high-speed reading can be performed. Further, in the image input device of FIG. 21 provided with the externally input image data instructing means 60, when the simple reading mode is provided as the reading mode, when the binary image is instructed from the outside, the pre-scan is not executed. No
Fine scan can be performed immediately.

【0085】また、上述の各実施例,構成例では、原稿
1からの反射光により原稿画像を得ているが、原稿1の
種類等に応じ、原稿1を透過した光(透過光)により原稿
画像を得ることも可能である。
Further, in each of the above-described embodiments and configuration examples, the original image is obtained by the reflected light from the original 1, but the original image is obtained by the light (transmitted light) transmitted through the original 1 depending on the type of the original 1. It is also possible to obtain an image.

【0086】また、上述の各実施例,構成例では、撮像
素子としてCCDセンサを用いているが、CCDセンサ
以外の撮像素子を用いることも可能である。また、撮像
素子とサンプルホールド回路8とを含めて、原稿画像を
撮像として読取る撮像手段として捉えることもできる。
Although the CCD sensor is used as the image sensor in each of the above-described embodiments and configuration examples, it is possible to use an image sensor other than the CCD sensor. Further, the image pickup device and the sample hold circuit 8 can be included and can be regarded as an image pickup unit for reading an original image as an image pickup.

【0087】[0087]

【発明の効果】以上に説明したように、請求項1,請求
項2記載の発明によれば、原稿画像を撮像して読み取る
撮像手段と、原稿画像が2値画像であるか多値画像であ
るかを判別する原稿画像判別手段と、前記原稿画像判別
手段における原稿画像の判別結果が2値画像であるか多
値画像であるかに応じて、前記撮像手段の駆動用クロッ
クを高速のクロックまたは低速のクロックに切換えるク
ロック切換手段とを有し、前記原稿画像判別手段は、前
記撮像手段からの画素濃度レベルを、予め設定されてい
る黒基準,白基準とそれぞれ比較し、画素濃度レベルが
黒基準と白基準との間の中間調レベルにあるか否かに基
づいて、原稿画像が多値画像であるか2値画像であるか
を検出するようになっているので、原稿画像が多値画像
であるか2値画像であるかを精度良く判別し、適確なク
ロック切換選択を行ない、適確な画像入力を行なうこと
ができる。特に、原稿画像判別手段を簡単な構成のもの
とすることができ、原稿画像の多値,2値の判別をリア
ルタイムにかつ容易に行なうことができる。
As described above, according to the first and second aspects of the invention, the image pickup means for picking up and reading the original image and the original image are binary images or multivalued images. The driving clock of the image pickup means is set to a high-speed clock according to the manuscript image discrimination means for discriminating whether there is an image, and whether the discrimination result of the manuscript image in the manuscript image discrimination means is a binary image or a multivalued image. Or a clock switching means for switching to a low-speed clock, and the original image discrimination means compares the pixel density level from the imaging means with a preset black reference and white reference, respectively, and Since it is detected whether the original image is a multi-valued image or a binary image on the basis of whether or not it is at a halftone level between the black reference and the white reference, it is possible to detect whether the original image is a multi-valued image. Value image or binary image Whether or accurately determined, performs accurately clock switching selection can be performed accurately image input. In particular, the document image discriminating means can be made to have a simple structure, and multi-valued / binary discrimination of the document image can be easily performed in real time.

【0088】また、請求項3記載の発明によれば、前記
黒基準,白基準としては、黒基準読取画像における各画
素の画素濃度レベルの平均値,白基準読取画像における
各画素の画素濃度レベルの平均値がそれぞれ用いられる
ので、多値,2値の判別をより安定に行なうことができ
る。
According to the third aspect of the invention, as the black reference and the white reference, the average value of the pixel density levels of each pixel in the black reference read image and the pixel density level of each pixel in the white reference read image are used. Since the respective average values of are used, it is possible to more stably discriminate between multi-value and binary.

【0089】また、請求項4記載の発明によれば、前記
原稿画像判別手段は、前記撮像手段からの画素濃度レベ
ルが黒基準と白基準の間の中間調レベルにある画素の個
数または中間調レベルにない画素の個数を計数し、該計
数値が所定の閾値よりも大きくなるとき多値画像または
2値画像と判別し、所定の閾値よりも大きくないとき2
値画像または多値画像と判別するので、原稿画像が2値
画像であるか多値画像であるかを信頼性良く判別するこ
とができる。
According to the fourth aspect of the invention, the original image discrimination means is the number of pixels or the halftone of which the pixel density level from the image pickup means is in the halftone level between the black reference and the white reference. The number of pixels that are not in the level is counted, and when the count value is larger than a predetermined threshold value, it is discriminated as a multi-valued image or a binary image, and when it is not larger than the predetermined threshold value, 2
Since it is determined that the original image is a binary image or a multi-valued image, it is possible to reliably determine whether the original image is a binary image or a multi-valued image.

【0090】また、請求項5記載の発明によれば、前記
原稿画像判別手段は、前記撮像手段からの画素濃度レベ
ルが中間調レベルにある画素または中間調レベルにない
画素の連続した個数を計数し、該計数値が所定の閾値よ
りも大きくなるとき多値画像または2値画像と判別し、
所定の閾値よりも大きくないとき2値画像または多値画
像と判別するので、原稿画像が2値画像であるか多値画
像であるかを信頼性良く判別することができる。
According to the fifth aspect of the invention, the original image discriminating means counts the number of consecutive pixels whose pixel density level from the image pickup means is at the halftone level or not. However, when the count value is larger than a predetermined threshold value, it is determined as a multi-valued image or a binary image,
Since the image is determined to be a binary image or a multi-valued image when it is not larger than the predetermined threshold value, it is possible to reliably determine whether the original image is a binary image or a multi-valued image.

【0091】また、請求項6,請求項7記載の発明によ
れば、外部入力で容易に原稿画像の種別を指定でき、プ
レスキャンを行なわずに、ファインスキャンを直接行な
うことができて、この場合にも、適確な画像入力を行な
うことができる。
According to the sixth and seventh aspects of the present invention, the type of the original image can be easily designated by external input, and the fine scan can be directly performed without performing the prescan. Even in this case, it is possible to perform accurate image input.

【0092】また、請求項8記載の発明によれば、A/
D変換手段と、2値化手段と、ビット分配手段とが設け
られており、原稿画像が前記原稿画像判別手段により多
値画像と判別された場合、または、前記画像データ指示
手段により多値画像と指示された場合には、前記撮像手
段からの出力信号を前記A/D変換手段によりデジタル
化し、また、原稿画像が前記原稿画像判別手段により2
値画像と判別された場合、または、前記画像データ指示
手段により2値画像と指示された場合には、前記撮像手
段からの出力信号を前記2値化手段によって2値化し、
該2値化データを前記ビット分配手段により多ビット化
するようになっており、図14の構成例では、2値画像
データについては2値化手段,分配手段で高速にデジタ
ル変換処理がなされ、A/D変換手段は、2値画像デー
タに比べて差程高速性の要求されない多値画像データに
対するデジタル変換処理にのみ用いられるので、A/D
変換手段には、高価な高速A/D変換器を用いる必要が
なく、画像入力装置を低コストのものにすることができ
る。すなわち、A/D変換手段に高速のものを用いずと
も、2値画像データを高速にデジタル変換処理すること
ができ、2値画像,多値画像の両方について最適な画像
入力を行なうことができる。
According to the invention described in claim 8, A /
A D conversion means, a binarization means, and a bit distribution means are provided, and when a document image is discriminated as a multivalued image by the document image discrimination means, or a multivalued image by the image data instruction means. Is output, the output signal from the image pickup means is digitized by the A / D conversion means, and the original image is detected by the original image discriminating means.
When it is determined that the image is a value image, or when the image data instructing unit indicates a binary image, the output signal from the image capturing unit is binarized by the binarizing unit,
The binarized data is made to be multi-bit by the bit distribution means. In the configuration example of FIG. 14, the binary image data is subjected to high-speed digital conversion processing by the binarization means and the distribution means. Since the A / D conversion means is used only for digital conversion processing for multi-valued image data which is not required to be as fast as binary image data,
It is not necessary to use an expensive high-speed A / D converter as the conversion means, and the image input device can be made low in cost. That is, binary image data can be digitally converted at high speed without using a high-speed A / D converter, and optimum image input can be performed for both binary and multi-valued images. .

【0093】また、請求項9記載の発明によれば、A/
D変換手段と、画素に同期したクロックをn分周する分
周手段と、2値化手段と、分周手段からの分周信号に同
期させて、前記2値化手段からのデジタル出力をn画素
単位にまとめて出力する直並列変換手段と、記憶装置
と、記憶装置のアドレスを生成するアドレス生成手段と
が設けられており、原稿画像が前記原稿画像判別手段に
より多値画像と判別された場合、または、前記画像デー
タ指示手段により多値画像と指示された場合には、前記
撮像手段からの出力信号をA/D変換手段によりデジタ
ル化して記憶装置に与え、また、アドレス生成手段に
は、画素に同期したクロックが加わり、アドレス生成手
段は、1画素に同期させて前記記憶装置のアドレスを生
成し、これにより、前記記憶装置の1つのアドレスにA
/D変換手段からの1画素分のデジタルデータを記憶さ
せ、また、原稿画像が原稿画像判別手段により2値画像
と判別された場合、または、画像データ指示手段により
2値画像と指示された場合には、前記撮像手段からの出
力信号を前記2値化手段によってデジタル化し、該2値
化手段からの出力を直並列変換手段によりn画素単位に
記憶装置に与え、また、アドレス生成手段には、画素に
同期したクロックを分周手段でn分周した分周クロック
が加わり、アドレス生成手段は、n画素単位に前記記憶
装置のアドレスを生成し、これにより、前記記憶装置の
1つのアドレスに直並列変換手段からのn画素分のデジ
タルデータを記憶させるようになっており、2値画像デ
ータについては2値化手段,直並列変換手段で高速にデ
ジタル変換処理がなされ、A/D変換手段は、2値画像
データに比べて差程高速性の要求されない多値画像デー
タに対するデジタル変換処理にのみ用いられるので、A
/D変換手段には、高価な高速A/D変換器を用いる必
要がなく、画像入力装置を低コストのものにすることが
できる。すなわち、請求項8記載の発明と同様に、A/
D変換手段に高速のものを用いずとも、2値画像データ
を高速にデジタル変換処理することができ、2値画像,
多値画像の両方について最適な画像入力を行なうことが
できる。さらに、請求項9記載の発明では、原稿画像が
2値画像の場合、センサ出力を2値化回路によりデジタ
ル化し、1つのメモリアドレスに対しnビットのメモリ
セルを有する記憶装置にn画素のデータを格納すること
で、大容量の記憶装置を必要とすることなく、読み取り
領域の大きい(読み取り画素数の多い)、安定した画像を
得ることができる。
According to the invention of claim 9, A /
The digital output from the binarizing unit is synchronized with the D converting unit, the frequency dividing unit that divides the clock synchronized with the pixel by n, the binarizing unit, and the frequency dividing signal from the frequency dividing unit. A serial / parallel conversion means for collectively outputting in pixel units, a storage device, and an address generation means for generating an address of the storage device are provided, and the document image is discriminated as a multi-valued image by the document image discrimination means. In the case, or when the image data instructing means indicates a multi-valued image, the output signal from the imaging means is digitized by the A / D converting means and given to the storage device, and the address generating means , A clock synchronized with the pixel is added, and the address generation means generates the address of the storage device in synchronization with one pixel, whereby A is added to one address of the storage device.
When one pixel of digital data from the / D conversion means is stored and the original image is discriminated by the original image discrimination means as a binary image, or when the image data instruction means indicates a binary image. In addition, the output signal from the image pickup means is digitized by the binarization means, the output from the binarization means is given to the storage device in n-pixel units by the serial-parallel conversion means, and the address generation means , A frequency-divided clock obtained by frequency-dividing a clock synchronized with the pixel by the frequency dividing means is added, and the address generating means generates an address of the memory device in units of n pixels, whereby one address of the memory device is generated. Digital data for n pixels from the serial / parallel conversion means is stored, and binary image data can be digitally converted at high speed by the binarization means and the serial / parallel conversion means. Is, A / D conversion means, since only used digitally converting the multivalued image data that is not high-speed requirements smaller the difference in comparison with the binary image data, A
It is not necessary to use an expensive high-speed A / D converter for the / D conversion means, and the image input device can be manufactured at low cost. That is, as in the invention according to claim 8, A /
Binary image data can be digitally converted at high speed without using a high-speed D conversion means.
Optimal image input can be performed for both multi-valued images. Further, in the invention described in claim 9, when the original image is a binary image, the sensor output is digitized by a binarizing circuit, and n pixel data is stored in a memory device having n bit memory cells for one memory address. By storing the data, it is possible to obtain a stable image with a large reading area (a large number of reading pixels) without requiring a large-capacity storage device.

【0094】また、請求項10記載の発明によれば、前
記2値化手段は、ファインスキャン開始時に読み取った
黒基準読取画像の画素濃度レベルの平均値と白基準読取
画像の画素濃度レベルの平均値とに基づいて前記撮像手
段からの出力信号をデジタル化するので、センサの駆動
用クロックを高速クロックCLK2に切り換えた場合で
も、また光源変動等が生じた場合でも、常に適切な2値
化が行なわれ安定した画像を得ることができる。
According to the tenth aspect of the invention, the binarizing means averages the pixel density level of the black reference read image read at the start of the fine scan and the average pixel density level of the white reference read image. Since the output signal from the image pickup means is digitized on the basis of the value, even when the sensor driving clock is switched to the high-speed clock CLK 2 , or when a light source fluctuation or the like occurs, the binarization is always appropriate. Is performed and a stable image can be obtained.

【0095】また、請求項11記載の発明によれば、原
稿画像が多値画像の場合、積算平均化手段による積算処
理を実行し、原稿画像が2値画像の場合、積算平均化手
段による積算処理を行なわないようにすることで、多値
画像ではより良好な読み取り品質が得られ、2値画像で
は読み取り時間を短縮することができる。
According to the eleventh aspect of the present invention, when the original image is a multi-valued image, the integrating process is executed by the integrating and averaging means, and when the original image is a binary image, the integrating and averaging means integrates it. By not performing the process, it is possible to obtain better reading quality in the multi-valued image and shorten the reading time in the binary image.

【0096】また、請求項12記載の発明によれば、原
稿画像の種別に応じ最適な光量で原稿画像の読取りがな
されるので、良好な原稿画像を得ることができるととも
に、原稿画像が2値画像の場合、光源の光量を多値画像
の場合よりも低下させるようにすることで、装置の発熱
を防ぐとともに電力の省力化が可能となる。
According to the twelfth aspect of the invention, since the original image is read with an optimum light amount according to the type of the original image, a good original image can be obtained and the original image is binary. In the case of an image, by making the light amount of the light source lower than that in the case of a multi-valued image, it is possible to prevent heat generation of the device and save power.

【0097】また、請求項13記載の発明によれば、原
稿画像が2値画像の場合、センサ駆動クロックを高速ク
ロックに切り換え、かつ光源の光量を多値画像の時より
も低下させるようにすることで、原稿画像データに応じ
読み取り時間の短縮が可能で、かつ原稿画像の種別に応
じ最適な光量で原稿画像の読取りがなされるので、良好
な原稿画像を得ることができるとともに、装置の発熱を
防ぐとともに電力の省力化が可能となる。
According to the thirteenth aspect of the invention, when the original image is a binary image, the sensor drive clock is switched to the high speed clock, and the light amount of the light source is made lower than that in the case of the multivalued image. As a result, the reading time can be shortened according to the original image data, and the original image can be read with the optimum light amount according to the type of the original image, so that a good original image can be obtained and the heat of the apparatus can be prevented. It is possible to prevent the power consumption and save electricity.

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

【図1】本発明に係る画像入力装置の一実施例の構成図
である。
FIG. 1 is a configuration diagram of an embodiment of an image input device according to the present invention.

【図2】原稿画像判別手段の構成例を示す図である。FIG. 2 is a diagram showing a configuration example of a document image discrimination means.

【図3】サンプルホールド回路の動作を説明するための
図である。
FIG. 3 is a diagram for explaining the operation of a sample hold circuit.

【図4】画像の中間調領域を示す図である。FIG. 4 is a diagram showing a halftone region of an image.

【図5】原稿画像の判別の仕方を説明するための図であ
る。
FIG. 5 is a diagram for explaining how to determine a document image.

【図6】原稿画像の判別の仕方を説明するための図であ
る。
FIG. 6 is a diagram for explaining how to determine a document image.

【図7】原稿画像の判別の仕方を説明するための図であ
る。
FIG. 7 is a diagram illustrating a method of determining a document image.

【図8】低速のクロック,高速のクロックを示す図であ
る。
FIG. 8 is a diagram showing a low-speed clock and a high-speed clock.

【図9】原稿画像判別手段の他の構成例を示す図であ
る。
FIG. 9 is a diagram showing another configuration example of the document image discrimination means.

【図10】原稿画像判別手段の他の構成例を示す図であ
る。
FIG. 10 is a diagram showing another configuration example of the document image discrimination means.

【図11】原稿画像の判別の仕方を説明するための図で
ある。
FIG. 11 is a diagram for explaining how to determine a document image.

【図12】原稿画像の判別の仕方を説明するための図で
ある。
FIG. 12 is a diagram for explaining how to determine a document image.

【図13】原稿画像の判別の仕方を説明するための図で
ある。
FIG. 13 is a diagram for explaining how to determine a document image.

【図14】本発明に係る画像入力装置の他の実施例の部
分構成図である。
FIG. 14 is a partial configuration diagram of another embodiment of the image input device according to the invention.

【図15】図14の画像入力装置の変形例を示す図であ
る。
FIG. 15 is a diagram showing a modification of the image input device of FIG.

【図16】図15の画像入力装置の動作を説明するため
のタイムチャートである。
16 is a time chart for explaining the operation of the image input device in FIG.

【図17】本発明に係る画像入力装置の他の実施例の構
成図である。
FIG. 17 is a configuration diagram of another embodiment of the image input device according to the invention.

【図18】積算平均化処理を説明するためのタイムチャ
ートである。
FIG. 18 is a time chart for explaining a cumulative averaging process.

【図19】本発明に係る画像入力装置の他の実施例の構
成図である。
FIG. 19 is a configuration diagram of another embodiment of the image input device according to the invention.

【図20】本発明に係る画像入力装置の他の実施例の構
成図である。
FIG. 20 is a configuration diagram of another embodiment of the image input device according to the invention.

【図21】本発明に係る画像入力装置の他の実施例の構
成図である。
FIG. 21 is a configuration diagram of another embodiment of the image input device according to the invention.

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

1 原稿 2 原稿台 3 ミラー 4 光源 5 モータ 6 結像レンズ 7 CCDセンサ 8 サンプルホールド回路 9 A/D変換回路 10 暗出力補正回路 11 シェーディング補正回路 12 線密度変換回路 13 インタフェース回路 14 光源駆動回路 15 モータ駆動制御部 16 CCD駆動回路 17 原稿画像判別手段 18 クロック切換手段 21 第1の比較器 22 第2の比較器 23 排他的論理和回路 24 ラッチ回路 25 検出器 27 カウンタ 29 積分器 31,32,40 スイッチ手段 33 2値化回路 34 分配器 36 外部記憶装置 38 直並列変換器 39 分周器 43 積算平均化手段 45 ライン積算平均化手段 47 光源制御手段 1 Document 2 Document Platen 3 Mirror 4 Light Source 5 Motor 6 Imaging Lens 7 CCD Sensor 8 Sample Hold Circuit 9 A / D Conversion Circuit 10 Dark Output Correction Circuit 11 Shading Correction Circuit 12 Linear Density Conversion Circuit 13 Interface Circuit 14 Light Source Driving Circuit 15 Motor drive control unit 16 CCD drive circuit 17 Original image discrimination means 18 Clock switching means 21 First comparator 22 Second comparator 23 Exclusive OR circuit 24 Latch circuit 25 Detector 27 Counter 29 Integrators 31, 32, 40 switch means 33 binarization circuit 34 distributor 36 external storage device 38 serial-parallel converter 39 frequency divider 43 integrating and averaging means 45 line integrating and averaging means 47 light source control means

Claims (13)

【特許請求の範囲】[Claims] 【請求項1】 原稿画像を撮像して読み取る撮像手段
と、原稿画像が2値画像であるか多値画像であるかを判
別する原稿画像判別手段と、前記原稿画像判別手段にお
ける原稿画像の判別結果が2値画像であるか多値画像で
あるかに応じて、前記撮像手段の駆動用クロックを高速
のクロックまたは低速のクロックに切換えるクロック切
換手段とを有し、前記原稿画像判別手段は、前記撮像手
段からの画素濃度レベルを、予め設定されている黒基
準,白基準とそれぞれ比較し、画素濃度レベルが黒基準
と白基準との間の中間調レベルにあるか否かに基づい
て、原稿画像が多値画像であるか2値画像であるかを検
出するようになっていることを特徴とする画像入力装
置。
1. An image pickup unit for picking up and reading a document image, a document image discriminating unit for discriminating whether the document image is a binary image or a multi-valued image, and discriminating the document image in the document image discriminating unit. A manuscript image discriminating means, and a clock switching means for switching a driving clock of the image pickup means to a high speed clock or a low speed clock depending on whether the result is a binary image or a multivalued image. Pixel density levels from the image pickup means are respectively compared with preset black reference and white reference, and based on whether or not the pixel density level is a halftone level between the black reference and the white reference, An image input device, which is adapted to detect whether a document image is a multi-valued image or a binary image.
【請求項2】 請求項1記載の画像入力装置において、
前記黒基準,白基準としては、黒基準読取画像における
画素濃度レベルの最大値,白基準読取画像における画素
濃度レベルの最小値がそれぞれ用いられることを特徴と
する画像入力装置。
2. The image input device according to claim 1,
An image input device characterized in that a maximum value of a pixel density level in a black reference read image and a minimum value of a pixel density level in a white reference read image are used as the black reference and the white reference, respectively.
【請求項3】 請求項1記載の画像入力装置において、
前記黒基準,白基準としては、黒基準読取画像における
各画素の画素濃度レベルの平均値,白基準読取画像にお
ける各画素の画素濃度レベルの平均値がそれぞれ用いら
れることを特徴とする画像入力装置。
3. The image input device according to claim 1, wherein
As the black reference and the white reference, the average value of the pixel density level of each pixel in the black reference read image and the average value of the pixel density level of each pixel in the white reference read image are used, respectively. .
【請求項4】 請求項1記載の画像入力装置において、
前記原稿画像判別手段は、前記撮像手段からの画素濃度
レベルが黒基準と白基準の間の中間調レベルにある画素
の個数または中間調レベルにない画素の個数を計数し、
該計数値が所定の閾値よりも大きくなるとき多値画像ま
たは2値画像と判別し、所定の閾値よりも大きくないと
き2値画像または多値画像と判別することを特徴とする
画像入力装置。
4. The image input device according to claim 1,
The original image discrimination means counts the number of pixels whose pixel density level from the image pickup means is in a halftone level between the black reference and the white reference or the number of pixels which are not in the halftone level,
An image input device characterized in that when the count value is larger than a predetermined threshold value, it is discriminated as a multi-valued image or a binary image, and when it is not larger than a predetermined threshold value, it is discriminated as a binary image or a multi-valued image.
【請求項5】 請求項1記載の画像入力装置において、
前記原稿画像判別手段は、前記撮像手段からの画素濃度
レベルが中間調レベルにある画素または中間調レベルに
ない画素の連続した個数を計数し、該計数値が所定の閾
値よりも大きくなるとき多値画像または2値画像と判別
し、所定の閾値よりも大きくないとき2値画像または多
値画像と判別することを特徴とする画像入力装置。
5. The image input device according to claim 1, wherein
The document image discrimination means counts the number of consecutive pixels whose pixel density level from the image pickup means is at the halftone level or is not at the halftone level, and when the counted value becomes larger than a predetermined threshold value, it is often determined. An image input device characterized by being discriminated as a value image or a binary image, and discriminated as a binary image or a multi-valued image when it is not larger than a predetermined threshold value.
【請求項6】 原稿画像を撮像して読み取る撮像手段
と、原稿画像が2値画像であるか多値画像であるかを外
部からの入力で指示する画像データ指示手段と、前記画
像データ指示手段による2値画像であるか多値画像であ
るかの指示に応じて、前記撮像手段の駆動用クロックを
高速のクロックまたは低速のクロックに切換えるクロッ
ク切換手段とを有していることを特徴とする画像入力装
置。
6. An image pickup means for picking up and reading an original image, an image data instructing means for instructing whether the original image is a binary image or a multivalued image by an external input, and the image data instructing means. And a clock switching means for switching the driving clock of the image pickup means to a high-speed clock or a low-speed clock according to the instruction of whether the image is a binary image or a multi-valued image. Image input device.
【請求項7】 請求項6記載の画像入力装置において、
前記画像データ指示手段により2値画像が指示された場
合、プレスキャンを行なわずに、ファインスキャンを直
接行なうことを特徴とする画像入力装置。
7. The image input device according to claim 6,
An image input device, wherein when a binary image is instructed by the image data instructing means, a fine scan is directly performed without performing a prescan.
【請求項8】 請求項1または請求項6記載の画像入力
装置において、さらに、A/D変換手段と、2値化手段
と、ビット分配手段とが設けられており、原稿画像が前
記原稿画像判別手段により多値画像と判別された場合、
または、前記画像データ指示手段により多値画像と指示
された場合には、前記撮像手段からの出力信号を前記A
/D変換手段によりデジタル化し、また、原稿画像が前
記原稿画像判別手段により2値画像と判別された場合、
または、前記画像データ指示手段により2値画像と指示
された場合には、前記撮像手段からの出力信号を前記2
値化手段によって2値化し、該2値化データを前記ビッ
ト分配手段により多ビット化することを特徴とする画像
入力装置。
8. The image input device according to claim 1 or 6, further comprising an A / D conversion means, a binarization means, and a bit distribution means, and the original image is the original image. When it is judged as a multi-valued image by the judgment means,
Alternatively, when a multi-valued image is instructed by the image data instructing means, the output signal from the imaging means is set to the A
If the document image is digitized by the D / D conversion unit and the document image is discriminated by the document image discrimination unit,
Alternatively, when the image data instructing means instructs a binary image, the output signal from the imaging means is changed to the
An image input device, wherein the binarizing means binarizes the binarized data and the bit distributing means multi-bits the binarized data.
【請求項9】 請求項1または請求項6記載の画像入力
装置において、さらに、A/D変換手段と、画素に同期
したクロックをn分周する分周手段と、2値化手段と、
分周手段からの分周信号に同期させて、前記2値化手段
からのデジタル出力をn画素単位にまとめて出力する直
並列変換手段と、記憶装置と、記憶装置のアドレスを生
成するアドレス生成手段とが設けられており、原稿画像
が前記原稿画像判別手段により多値画像と判別された場
合、または、前記画像データ指示手段により多値画像と
指示された場合には、前記撮像手段からの出力信号をA
/D変換手段によりデジタル化して記憶装置に与え、ま
た、アドレス生成手段には、画素に同期したクロックが
加わり、アドレス生成手段は、1画素に同期させて前記
記憶装置のアドレスを生成し、これにより、前記記憶装
置の1つのアドレスにA/D変換手段からの1画素分の
デジタルデータを記憶させ、また、原稿画像が原稿画像
判別手段により2値画像と判別された場合、または、画
像データ指示手段により2値画像と指示された場合に
は、前記撮像手段からの出力信号を前記2値化手段によ
ってデジタル化し、該2値化手段からの出力を直並列変
換手段によりn画素単位に記憶装置に与え、また、アド
レス生成手段には、画素に同期したクロックを分周手段
でn分周した分周クロックが加わり、アドレス生成手段
は、n画素単位に前記記憶装置のアドレスを生成し、こ
れにより、前記記憶装置の1つのアドレスに直並列変換
手段からのn画素分のデジタルデータを記憶させること
を特徴とする画像入力装置。
9. The image input device according to claim 1, further comprising an A / D conversion unit, a frequency dividing unit that divides a clock synchronized with a pixel by n, and a binarizing unit.
A serial / parallel conversion means for collectively outputting the digital output from the binarization means in units of n pixels in synchronization with the frequency division signal from the frequency division means, a storage device, and an address generation for generating an address of the storage device. Means is provided, and when the document image is discriminated as a multi-valued image by the document image discriminating means, or when the image data instructing means instructs the document image as a multi-valued image, Output signal is A
The data is digitized by the D / D conversion means and given to the storage device, and a clock synchronized with the pixel is added to the address generation means, and the address generation means generates the address of the storage device in synchronization with one pixel. By this, when one pixel of digital data from the A / D conversion means is stored in one address of the storage device, and when the document image is discriminated by the document image discrimination means as a binary image, or When the instruction means indicates a binary image, the output signal from the image pickup means is digitized by the binarization means, and the output from the binarization means is stored in n-pixel units by the serial / parallel conversion means. A frequency-divided clock obtained by frequency-dividing a clock synchronized with a pixel by the frequency-dividing means is added to the address generating means. Generates an address of the storage device, thereby, an image input apparatus characterized by storing the n pixels of the digital data from the serial-parallel conversion means into one address of the memory device.
【請求項10】 請求項8または請求項9記載の画像入
力装置において、前記2値化手段は、ファインスキャン
開始時に読み取った黒基準読取画像の画素濃度レベルの
平均値と白基準読取画像の画素濃度レベルの平均値とに
基づいて前記撮像手段からの出力信号をデジタル化する
ことを特徴とする画像入力装置。
10. The image input device according to claim 8 or 9, wherein the binarizing unit averages the pixel density levels of the black reference read image read at the start of the fine scan and the pixels of the white reference read image. An image input device, wherein an output signal from the image pickup means is digitized based on an average value of density levels.
【請求項11】 請求項1または請求項6記載の画像入
力装置において、前記撮像手段により撮像され読み取ら
れたライン信号を所定ライン数分、副走査方向に積算平
均化し、該積算平均化された出力を新たな1ラインの信
号とする積算平均化手段がさらに設けられており、原稿
画像が前記原稿画像判別手段により多値画像と判別され
た場合、または、前記画像データ指示手段により多値画
像と指示された場合には、前記積算平均化手段による積
算平均化処理が実行されることを特徴とする画像入力装
置。
11. The image input apparatus according to claim 1 or 6, wherein the line signals imaged and read by the image pickup means are integrated and averaged in a sub-scanning direction for a predetermined number of lines, and the integrated and averaged. A cumulative averaging unit that outputs a new one-line signal is further provided, and when the document image is discriminated by the document image discriminating unit as a multivalued image, or by the image data instructing unit. The image input device is characterized in that the integrated averaging processing is executed by the integrated averaging means when the above is instructed.
【請求項12】 請求項1または請求項6記載の画像入
力装置において、前記クロック切換手段のかわりに光源
制御手段が設けられており、前記原稿画像判別手段が原
稿画像を2値画像と判別した場合、または、前記画像デ
ータ指示手段により2値画像が指示された場合、前記光
源制御手段は、多値画像読取時よりも光源の光量を低下
させて原稿画像の読み取りを行なうことを特徴とする画
像入力装置。
12. The image input apparatus according to claim 1 or 6, wherein a light source control means is provided instead of the clock switching means, and the document image discrimination means discriminates the document image as a binary image. In this case, or when a binary image is instructed by the image data instructing means, the light source control means reads the original image by lowering the light amount of the light source as compared with the reading of the multivalued image. Image input device.
【請求項13】 請求項1または請求項6記載の画像入
力装置において、さらに、光源制御手段が設けられてお
り、原稿画像判別手段が原稿画像を2値画像と判別した
場合、または、画像データ指示手段により2値画像と指
示された場合、前記光源制御手段は、多値画像読み取り
時よりも光源の光量を低下させて画像の読み取りを行な
うことを特徴とする画像入力装置。
13. The image input device according to claim 1 or 6, further comprising a light source control means, when the document image discrimination means discriminates the document image as a binary image, or image data. The image input device wherein the light source control means reads the image by lowering the light amount of the light source when reading the multi-valued image when the instruction means indicates the binary image.
JP7091574A 1995-03-24 1995-03-24 Picture input device Pending JPH08265564A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7091574A JPH08265564A (en) 1995-03-24 1995-03-24 Picture input device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7091574A JPH08265564A (en) 1995-03-24 1995-03-24 Picture input device

Publications (1)

Publication Number Publication Date
JPH08265564A true JPH08265564A (en) 1996-10-11

Family

ID=14030313

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7091574A Pending JPH08265564A (en) 1995-03-24 1995-03-24 Picture input device

Country Status (1)

Country Link
JP (1) JPH08265564A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013085199A (en) * 2011-10-12 2013-05-09 Kyocera Document Solutions Inc Image reader and image forming apparatus
JP2013104876A (en) * 2011-11-14 2013-05-30 Leica Microsystems Cms Gmbh Method for measurement of lifetime of excitation state in sample

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013085199A (en) * 2011-10-12 2013-05-09 Kyocera Document Solutions Inc Image reader and image forming apparatus
JP2013104876A (en) * 2011-11-14 2013-05-30 Leica Microsystems Cms Gmbh Method for measurement of lifetime of excitation state in sample

Similar Documents

Publication Publication Date Title
JPH0683365B2 (en) Image processing device
US4811037A (en) Image processing apparatus
US6728418B1 (en) Image read apparatus and method that can obtain favorable readout image
JP3130593B2 (en) Document reader
JP3180827B2 (en) Method and apparatus for dynamically adjusting background level
US7359099B2 (en) Image reading device and image forming apparatus
US5267055A (en) Image signal processing apparatus
JPH08265564A (en) Picture input device
JPH08251355A (en) Image reader
JP2946520B2 (en) Image reading device
JP3625962B2 (en) Image reading device
JP3444509B2 (en) Image reading device
JPH0249589B2 (en)
JP3548320B2 (en) Image reading device
JP2797957B2 (en) Flatbed scanner with document size detection function
JP2541937B2 (en) Image processing device
JP3936696B2 (en) Image reader
JPH04271667A (en) Reading system for color information
JP3701094B2 (en) Image reading device
JP2539447Y2 (en) Image processing device
JPH08181870A (en) Image reader
JPS61214865A (en) Picture processing device
JPH0310463A (en) Picture reader
JPH01177278A (en) Picture reader
JP2002330260A (en) Original reader