JP5395925B2 - Image reading apparatus, image reading apparatus control method, and program - Google Patents
Image reading apparatus, image reading apparatus control method, and program Download PDFInfo
- Publication number
- JP5395925B2 JP5395925B2 JP2012105826A JP2012105826A JP5395925B2 JP 5395925 B2 JP5395925 B2 JP 5395925B2 JP 2012105826 A JP2012105826 A JP 2012105826A JP 2012105826 A JP2012105826 A JP 2012105826A JP 5395925 B2 JP5395925 B2 JP 5395925B2
- Authority
- JP
- Japan
- Prior art keywords
- image
- document
- color
- reading
- speed
- 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.)
- Active
Links
Images
Description
本発明は、特に原稿の画像がカラー画像かモノクロ画像かを自動的に判定する機能を備えた画像読取装置、画像読取装置の制御方法及びプログラムに関する。 The present invention particularly relates to an image reading apparatus having a function of automatically determining whether an image of a document is a color image or a monochrome image, a control method for the image reading apparatus, and a program.
一般に、画像読取装置は、処理対象の原稿がカラー原稿かモノクロ原稿かに応じて、画像データをカラーのまま保存するかモノクロで保存するかを切り換えている。カラーモノクロ判定機能を有する画像読取装置では、ホストコンピュータの処理を待つなどの特定要因によって、原稿画像の読取走査中であっても走査を停止する場合がある。なお、原稿画像を読取走査する方法としては、原稿を停止させた状態でラインセンサを原稿に沿って移動させて原稿画像を読取走査する方法や、固定配置されたラインセンサに対して原稿を移動させて原稿画像を読取走査する方法がある。 In general, the image reading apparatus switches between storing image data as color or monochrome according to whether the document to be processed is a color document or a monochrome document. In an image reading apparatus having a color / monochrome determination function, scanning may be stopped even during scanning of a document image due to a specific factor such as waiting for processing of a host computer. As a method of reading and scanning a document image, a method of reading and scanning a document image by moving the line sensor along the document while the document is stopped, or a method of moving the document with respect to a fixedly arranged line sensor. There is a method of reading and scanning a document image.
しかし、原稿画像の読取走査中に走査を停止した場合、原稿やラインセンサの慣性力等によって原稿とラインイセンサの走査位置とがずれることがある。このため、ライン抜けまたはライン重複が発生して、モノクロ原稿であっても読取画像に色味を帯びてしまい、モノクロ原稿をカラー画像と誤判定してしまう場合がある。 However, when scanning is stopped during scanning of a document image, the document and the scanning position of the line sensor may shift due to the inertia of the document or the line sensor. For this reason, line omission or line duplication occurs, and even a monochrome original may be tinted in the read image, and the monochrome original may be erroneously determined as a color image.
また、走査速度が低下することでモノクロ判定しやすくするために、判定条件を変更する技術(特許文献1)が提案されているが、読取走査中の原稿とラインセンサとの間の相対的な速度変化に起因する誤判定を防止することはできない。 Further, a technique for changing the determination condition (Patent Document 1) has been proposed in order to facilitate monochrome determination due to a decrease in scanning speed, but the relative relationship between the document being read and scanned and the line sensor is proposed. A misjudgment caused by speed change cannot be prevented.
そこで、本発明は、画像読取装置において、読取走査中の原稿と読取手段との間の相対的な速度変化に起因するカラーモノクロ判定の誤判定を防止することができる仕組みを提供することを目的とする。 SUMMARY OF THE INVENTION Accordingly, an object of the present invention is to provide a mechanism capable of preventing an erroneous determination of color / monochrome determination caused by a relative speed change between a document being scanned and a reading unit in an image reading apparatus. And
上記目的を達成するために、本発明の画像読取装置は、相対的に移動する原稿の画像を走査して読み取る読取手段と、原稿及び前記読取手段を相対的に移動させる駆動モータと、前記読取手段により読み取られた原稿の画像データに基づいて、原稿の画像がカラー画像かモノクロ画像かを判定する判定手段と、を備え、前記判定手段は、前記読取手段に対する原稿の相対的な移動速度、又は該移動速度の変化の何れか一方を示す前記駆動モータのモータスピード情報に基づいて、加速区間と減速区間とでカラー画像の判定基準を変更して原稿がカラー画像かモノクロ画像かを判定する、ことを特徴とする。 In order to achieve the above object, an image reading apparatus of the present invention includes a reading unit that scans and reads an image of a relatively moving document, a driving motor that relatively moves the document and the reading unit, and the reading Determining means for determining whether the image of the original is a color image or a monochrome image based on the image data of the original read by the means, wherein the determining means is a relative moving speed of the original with respect to the reading means, Alternatively, based on the motor speed information of the drive motor indicating either one of the movement speed changes , the color image determination criterion is changed between the acceleration section and the deceleration section to determine whether the document is a color image or a monochrome image. It is characterized by that.
本発明の画像読取装置は、相対的に移動する原稿の画像を走査して読み取る読取手段と、原稿及び前記読取手段を相対的に移動させる駆動モータと、前記読取手段により読み取られた原稿の画像データに基づいて、原稿の画像がカラー画像かモノクロ画像かを判定する判定手段と、前記読取手段に対する原稿の相対的な移動速度の変化を示す前記駆動モータのモータスピード情報に基づいて、前記判定手段によるカラー画像の判定を行うか否かを判断する判断手段と、を備え、前記判定手段は、前記読み取られた原稿の画像を構成するラインをカラー画素数に基づいてカラーラインか否かを判別し、判別されたカラーラインの連続する本数に基づいて、カラー画像か否かを判定するにあたり、前記カラーラインか否かを判別する基準及び前記カラー画像か否かを判定する基準の少なくとも一方は、前記相対的な移動速度、又は該移動速度の変化の何れか一方を示す前記駆動モータのモータスピード情報に応じて変更される、ことを特徴とする。 The image reading apparatus of the present invention includes a reading unit that scans and reads an image of a relatively moving document, a drive motor that relatively moves the document and the reading unit, and an image of the document that is read by the reading unit. Based on the data, the determination means for determining whether the image of the document is a color image or a monochrome image, and the determination based on the motor speed information of the drive motor indicating a change in the relative movement speed of the document with respect to the reading means. Determining means for determining whether or not to determine a color image by the means, wherein the determining means determines whether or not a line constituting the read original image is a color line based on the number of color pixels. discriminated, based on the sequential number of the determined color line, when determining whether a color image, the reference and the determines whether or not the color line At least one of the criteria for determining whether the color image, the relative moving speed, or is changed in accordance with either the motor speed information of the drive motor shown one of a change of the moving speed, that characterized And
本発明の画像読取装置によれば、読取走査中の原稿と読取手段との間の相対的な速度変化に起因するカラーモノクロ判定の誤判定を防止して、カラー原稿かモノクロ原稿かを精度よく判定することができる。 According to the image reading apparatus of the present invention, it is possible to prevent erroneous determination of color / monochrome determination caused by a relative speed change between the document being scanned and the reading unit, and to accurately determine whether the document is a color document or a monochrome document. Can be determined.
以下、本発明の実施形態の一例を図面を参照して説明する。 Hereinafter, an example of an embodiment of the present invention will be described with reference to the drawings.
図1に示すように、本発明の実施形態の一例である画像読取装置1は、通信ケーブル3等の通信回線を介してホストコンピュータ2に接続される。
As shown in FIG. 1, an
画像読取装置1は、図2に示すように、原稿台102に積載された原稿101を給紙ローラ106によって1枚ずつ分離して搬送路108に送り出す。送り出された原稿101は、搬送ローラ107によって搬送路108を搬送され、レジストセンサ109及びイメージセンサ104を通過した後、排紙部103へ排出される。
As shown in FIG. 2, the
図3は、画像読取装置1の回路構成を説明するためのブロック図である。
FIG. 3 is a block diagram for explaining a circuit configuration of the
図3に示すように、画像読取装置1は、CPU202、RAM203、ROM204、読取部206、モータドライバ207、ステッピングモータ208、外部I/F205、イメージセンサ104及びLED210R,210G,210Bを備える。これらのブロックは、回路基板200上でシステムバス201により相互に接続されている。
As shown in FIG. 3, the
光源210R,210G,210Bは、それぞれ赤色,緑色,青色のLED等からなり、CPU202の点灯制御により原稿101の読取面を所定時間ずつ順次照射する。
The
イメージセンサ104は、光源210R,210G,210Bから原稿101の読取面に照射された光の反射光を受光して、その受光量に応じたアナログの読取画像信号を出力する。
The
読取部206は、イメージセンサ104から出力された赤色、緑色、青色のアナログの読取画像信号をA/D変換し、シェーディング補正を行って、RAM203へ画像データの書き込みを行う。
The
ステッピングモータ208は、不図示のギヤやベルトによって搬送ローラ107に連結され、モータドライバ207を介してCPU202により制御される。なお、本実施形態では、ステッピングモータ208の駆動に用いるパルス信号の1パルスに対応する原稿の搬送量を、イメージセンサ104が読み出す各色1ラインの間隔と等しくした場合を例に採って説明する。
The
CPU202は、ROM204に格納されたプログラムに基づいて画像読取装置1全体を制御する。
The
具体的には、CPU202は、イメージセンサ104による原稿101の画像の読取動作を一時的に中断し、搬送ローラ107を停止させる搬送制御を実行する。また、CPU202は、RAM203に一時保存された画像データの全画素を通してカラー画素かモノクロ画素かを判定する。また、CPU202は、各ライン読取時の原稿101の搬送速度(移動速度)を検出してRAM203に記憶し、画素データとそのラインにおける搬送速度とを使用して画素のカラーモノクロ判定を行う。
Specifically, the
RAM203は、CPU202にワーク領域を提供するとともに、原稿101の画像読取時には、読取部206から得られる画像データを一時記憶するバッファメモリとして機能する。
The
ROM204には、各種のプログラムや初期設定値などが格納されている。本実施形態では、ROM204には、搬送ローラ107により原稿101とイメージセンサ209との相対的な位置を変更させながら、光源210R,210G,210Bを順次点灯させるプログラムが格納されている。また、ROM204には、光源210R,210G,210Bの点灯により原稿101から反射した光を各色毎に1ラインずつイメージセンサ104により読み取るプログラムが格納されている。さらに、ROM204には、1枚の原稿101に対する読取動作を一時的に中断するときに、搬送ローラ107を停止させるための搬送制御プログラムを含むプログラムが格納されている。
The
次に、上記構成の画像読取装置1の動作例について説明する。
Next, an operation example of the
原稿101の画像読取に際しては、CPU202は、モータドライバ207を介してステッピングモータ208を制御し、搬送ローラ107により原稿101を副走査方向に所定速度で搬送させる。
When reading the image of the
次に、CPU202は、搬送される原稿101がレジストセンサ109を通過したことを検知すると、一定時間後に光源210R,210G,210Bの順次点灯とイメージセンサ104の駆動を開始する。
Next, when the
具体的には、CPU202は、ステッピングモータ208への駆動パルスを出力すると同時に、光源210R,210G,210Bのうちのいずれかの光源を点灯し、イメージセンサ104より1ラインの画像を読み出す。これにより、搬送される原稿101全体の画像データを読み取る。
Specifically, the
ここで、光源210R,210G,210Bの点灯順序が赤、緑、青の順であったとすると、光源210R,210G,210Bの順に光が原稿101に照射される。そして、イメージセンサ104は、原稿101に各色の光が照射されるごとに原稿101からの反射光を受光して、その受光光量に応じた1ラインのアナログの読取画像信号を読取部206に順次出力する。
Here, assuming that the lighting order of the
イメージセンサ209から順次出力された赤、緑、青の各色の1ラインの読取画像信号は、読取部206でA/D変換されるとともに、シェーディング補正が行われ、RAM203に一時格納される。
A read image signal of one line of each color of red, green, and blue sequentially output from the image sensor 209 is A / D converted by the
RAM203に格納された画像は、CPU202によって一連の画像処理を施された後、外部I/F205を通じてホストコンピュータ2へ転送される。
The image stored in the
RAM203に格納された画像データのサイズは、CPU202によって管理され、そのサイズは読取時に画像データがRAM203へ格納されていくにつれて増し、ホストコンピュータ2への画像データの転送によって減る。また、RAM203に一時格納できる画像サイズはあらかじめ定められており、ホストコンピュータ2への画像データの転送スピードが、読取部206での画像読取スピードより遅い場合、RAM203に一時格納される画像データが増大し、空き容量は減少する。
The size of the image data stored in the
CPU202は、タイマ割り込みを使用してモータドライバ207を介してステッピングモータ208の駆動を制御し、また、同タイマ割り込みを使用して光源210R,210G,210Bの点灯信号とイメージセンサ104への1ライン読み込み信号を出力する。すなわち、CPU202は、原稿101のレジストセンサ109の通過を検知して一定時間経過後、タイマ割り込みにより、光源210R,210G,210Bの点灯制御とイメージセンサ104の駆動制御を開始する。
The
CPU202は、RAM203の空き容量が所定値以上であるかどうかを判断する。そして、CPU202は、RAM203の空き容量が所定値以上であれば、ステッピングモータ208を一定速度で継続駆動して搬送ローラ107を回転させるとともに、イメージセンサ104による原稿101の画像読取を継続する。
The
一方、CPU202は、RAM203の空き容量が所定値未満であれば、ステッピングモータ208の駆動を減速制御し、搬送ローラ107を停止して、イメージセンサ104による原稿101の画像読取を中断する。その後、CPU202は、RAM203の空き容量が所定値以上になるのを待った後、ステッピングモータ208の駆動を加速制御して搬送ローラ107を回転させるとともに、イメージセンサ104による原稿101の画像読取を再開する。
On the other hand, if the free space in the
次に、図4〜図6を参照して、イメージセンサ104による原稿101の画像読取中に実行されるタイマ割り込み処理について説明する。図4〜図6での各処理は、ROM204等に記憶されたプログラムがRAM203にロードされて、CPU202により実行される。
Next, with reference to FIG. 4 to FIG. 6, a timer interruption process executed during image reading of the original 101 by the
まず、上述したように、イメージセンサ104による原稿101の画像読取を開始した後、一定速度で画像を読み出している区間でタイマ割り込みが発生すると、図4の「一定速度割り込み」が呼び出されるように設定しておく。
First, as described above, after the image reading of the
図4において、ステップS401では、CPU202は、モータドライバ207を介してステッピングモータ208に駆動パルスを出力して搬送ローラ107を回転駆動し、ステップS402に進む。
In FIG. 4, in step S <b> 401, the
ステップS402では、CPU202は、イメージセンサ104に対して1ライン読取のための駆動パルスを出力すると共に光源210R,210G,210Bの点灯を変更するように制御し、ステップS403に進む。なお、光源210R,210G,210Bの点灯変更とは、例えば、赤(R)の光源210Rが点灯している状態から緑(G)の光源210Gが点灯する状態に変更することをいう。
In step S402, the
ステップS403では、CPU202は、現在のステッピングモータ208のモータ速度をあらかじめRAM203に格納したモータスピードテーブルSpeed[y]に記憶し、ステップS404に進む。ここで、yは、画像読み出し開始位置を0として、イメージセンサ104が読み取った副走査方向の走査位置である。
In step S403, the
ステップS404では、CPU202は、タイマ割り込みへの割り込み時間をセットし、ステップS405に進む。
In step S404, the
ステップS405では、CPU202は、RAM203の空き容量が一定量V以上かどうかを判断し、RAM203の空き容量が一定量V以上の場合は、RAM203の空き容量が十分であるとして、本割り込み処理を終了する。一方、CPU202は、ステップS405において、RAM203の空き容量が一定量V未満の場合は、ステップS406に進む。
In step S405, the
ステップS406では、CPU202は、原稿101の搬送を停止する減速処理を開始するために割り込みベクタを変更することにより、タイマ割り込み時に呼び出される処理を「減速割り込み処理」に変更し、処理を終了する。
In step S406, the
次に、図5を参照して、「減速割り込み処理」について説明する。なお、図5のステップS501〜ステップS503については、図4のステップS401〜ステップS403と同様であるので、その説明を省略する。 Next, the “deceleration interrupt process” will be described with reference to FIG. Note that steps S501 to S503 in FIG. 5 are the same as steps S401 to S403 in FIG.
図5において、ステップS504では、CPU202は、ステッピングモータ208がこれ以上減速できない状態、すなわち最低速度かどうかを判定し、最低速度でない場合はステップS506に進み、最低速度である場合はステップS505に進む。
In FIG. 5, in step S504, the
ステップS505では、CPU202は、タイマを停止して、一時中断状態に遷移する。一時中断状態では、CPU202は、RAM203の空き状況を監視し、空き容量が一定値以上(V)となったところで、原稿101の搬送を開始すべく加速処理を開始するタイマ割り込みを再設定する。すなわち、CPU202は、割り込みベクタを変更してタイマ割り込み時に呼び出される処理を「加速割り込み処理」に変更し、タイマ割り込みを起動して、処理を終了する。
In step S505, the
ステップS506では、CPU202は、ステッピングモータ208が現在よりも低速回転となるようにタイマ値をセットし、処理を終了する。
In step S506, the
次に、図6を参照して、「加速割り込み処理」について説明する。なお、図6のステップS601〜ステップS603については、図4のステップS401〜ステップS403と同様であるので、その説明を省略する。 Next, the “acceleration interrupt process” will be described with reference to FIG. Note that steps S601 to S603 in FIG. 6 are the same as steps S401 to S403 in FIG.
図6において、ステップS604では、CPU202は、ステッピングモータ208が現在よりも高速回転となるように、タイマ値をセットし、ステップS605に進む。
In FIG. 6, in step S604, the
ステップS605では、CPU202は、ステッピングモータ208が目標速度に達したかどうかを判断し、目標速度に到達した場合はステップS606に進み、目標速度に到達していない場合は割り込み処理を終了する。
In step S605, the
ステップS606では、CPU202は、加速処理から一定速度処理へ変更する。すなわち、CPU202は、割り込みベクタを変更して、タイマ割り込み時に呼び出される処理を「一定速割り込み処理」に変更し、処理を終了する。
In step S606, the
このようにして、CPU202は、ステッピングモータ208の加減速を行いながら、イメージセンサ104で読み取った原稿101の画像データとステッピングモータ208のモータスピードとをRAM203に格納していく。
In this way, the
次に、カラーモノクロ判定方法について説明する。 Next, a color / monochrome determination method will be described.
カラーモノクロ判定方法は、カラーラインと判別されたラインの本数が連続して一定ライン(T)続けば、原稿101の画像がカラー画像であると判定する。カラーラインの判別とは、ライン毎にカラー画素を計数し、計数したカラー画素が一定以上あれば、カラーラインと判別する。すなわち、(カラー画素数)>(カラーライン判定閾値)である場合、カラーラインと判別する。ライン毎の画素におけるカラー判定とは、(明度)>(カラー画素判定用明度閾値(基準値))かつ(彩度)>(カラー画素判定用彩度閾値(基準値))の場合にカラー画素と判定される。
The color / monochrome determination method determines that the image of the
ただし、前記明度および前記彩度は、HSV色空間によって算出される。すなわち、画素の赤,緑,青の出力値をそれぞれR,G,Bとしたとき、(明度)=MAX(R,G,B)、(彩度)={MAX(R,G,B)−MIN(R,G,B)}÷MAX(R,G,B)で算出することができる。 However, the brightness and the saturation are calculated by the HSV color space. That is, when the red, green, and blue output values of the pixels are R, G, and B, respectively, (lightness) = MAX (R, G, B), (saturation) = {MAX (R, G, B) -MIN (R, G, B)} / MAX (R, G, B).
次に、図7及び図8を用いて、RAM203に一時格納された画像データと各ラインにおけるステッピングモータ208のモータスピードデータから、原稿101の画像がカラーなのかモノクロなのかの判定する方法を説明する。なお、図7での各処理は、ROM204等に記憶されたプログラムがRAM203にロードされて、CPU202により実行される。
Next, a method for determining whether the image of the
図8は、イメージセンサ104による原稿101の読取画像と、その画像ライン位置におけるステッピングモータ208のモータスピードとの関係の一例を示す図である。
FIG. 8 is a diagram illustrating an example of a relationship between an image read from the original 101 by the
図中yは、読取画像中の副走査方向の走査位置を示し、Speed[y]は、走査位置yにおけるステッピングモータ208のモータスピードである。図8においては、ステッピングモータ208のモータスピードが一定速で原稿101の画像の読み取りを開始した後、y=5近傍で減速し、y=6〜7近傍で一時停止した後、最加速を行ってy=9近傍で一定速度に戻る例を示している。
In the figure, y indicates the scanning position in the sub-scanning direction in the read image, and Speed [y] is the motor speed of the stepping
図7において、ステップS700では、CPU202は、イメージセンサ104による原稿101の画像の読取動作開始時、すなわちy=0のとき、カラーライン連続数を表す変数:contを0に初期化し、ステップS701に進む。
In FIG. 7, in step S700, the
ステップS701では、CPU202は、RAM203に一時格納した画像データを画像上端より走査し、カラーラインを検索する。このとき、CPU202は、注目しているラインが加速中もしくは減速中の場合、カラーライン判定をスキップする。
In step S701, the
例えば、本実施形態では、CPU202は、各ラインに応じてRAM203に記憶してあるモータスピードSpeed[y]と2ライン上のモータスピードSpeed[y−2]と比較して、加減速状態であるか判定する。すなわち、CPU202は、Speed[y]≠Speed[y−2]であれば加減速ラインと判定してステップS706に進み、Speed[y]=Speed[y−2]であれば一定速ラインと判定してステップS702に進む。
For example, in the present embodiment, the
ステップS702では、CPU202は、上記カラーライン判定処理によって、カラーラインかどうかを判定し、カラーラインと判定された場合、ステップS703でカラーライン連続数contをインクリメントし、ステップS705に進む。
In step S702, the
一方、ステップS702において、CPU202は、カラーラインではないと判定した場合、ステップS704でカラーライン連続数contをクリアしてステップS705に進む。
On the other hand, if it is determined in step S702 that the color is not a color line, the
ステップS705では、CPU202は、カラーライン連続数contが一定ライン数(T)以上であるかどうかを判断する。そして、CPU202は、カラーライン連続数contが一定ライン数(T)以上の場合はステップS708に進み、カラーライン連続数contが一定ライン数(T)未満の場合はステップS706に進む。
In step S705, the
ステップS708では、CPU202は、原稿101の読取画像はカラー画像であると判定し、処理を終了する。
In step S708, the
一方、ステップS706では、CPU202は、注目ラインyをインクリメントしてステップS707に進む。
On the other hand, in step S706, the
ステップS707では、CPU202は、RAM203に一時格納した画像データの画像下端まで走査が行われるまで上記処理を繰り返し、画像下端まで走査が行われると、ステップS709で原稿101の読取画像はモノクロ画像であると判定し、処理を終了する。
In step S707, the
以上説明したように、本実施形態では、ステッピングモータ208のスピード、すなわち、原稿101の搬送スピードの加減速ラインまたは一時中断前後のラインのカラーライン判定処理をスキップしている。これにより、原稿101の搬送スピードの加減速や搬送の一時中断によって原稿101が慣性力等で予期せぬ動きをし、発生する色ずれによるカラーモノクロ判定の誤判定を減らすことができる。
As described above, in this embodiment, the color line determination processing of the speed of the stepping
また、原稿101の搬送の一時停止区間前後のカラーライン連続数contの値を保持することで、カラー面積が比較的小さい原稿101の画像においても、可能な限りカラーモノクロ判定を行うことができる。 Further, by holding the value of the number of continuous color lines cont before and after the conveyance stop period of the original 101, color / monochrome determination can be performed as much as possible even for an image of the original 101 having a relatively small color area.
なお、本実施形態では、ステッピングモータ208の加減速ライン中にカラーモノクロ判定処理をスキップする場合を例示したが、ステッピングモータ208の加速度または減速度に基づいて、本区間のカラーモノクロ判定の判定基準を変更してもよい。
In the present embodiment, the case where the color / monochrome determination process is skipped during the acceleration / deceleration line of the stepping
例えば、図7のステップ701において、一時停止区間近傍のみカラーモノクロ判定処理をスキップする(YES方向へ進む)ようにする。そして、一時停止区間近傍に含まれない加速区間と減速区間とで閾値を変えるようにする。つまり、Speed[y−2]<Speed[y]では、(明度)>(加速区間用明度閾値)かつ(彩度)>(加速区間用彩度閾値)の場合にカラー画素判定とする。また、Speed[y−2]>Speed[y]では、(明度)>(減速区間用明度閾値)かつ(彩度)>(減速区間用彩度閾値)の場合にカラー画素判定とする。さらに、Speed[y−2]=Speed[y]では、(明度)>(一定速区間用明度閾値)かつ(彩度)>(一定速区間用彩度閾値)の場合にカラー画素判定とする。 For example, in step 701 in FIG. 7, the color / monochrome determination process is skipped only in the vicinity of the pause section (proceeding in the YES direction). Then, the threshold value is changed between an acceleration section and a deceleration section that are not included in the vicinity of the temporary stop section. That is, in Speed [y−2] <Speed [y], color pixel determination is performed when (lightness)> (acceleration section lightness threshold) and (saturation)> (acceleration section saturation threshold). In Speed [y-2]> Speed [y], color pixel determination is made when (lightness)> (lightness threshold for deceleration zone) and (saturation)> (saturation threshold for deceleration zone). Further, when Speed [y−2] = Speed [y], color pixel determination is made when (lightness)> (constant speed interval lightness threshold) and (saturation)> (constant speed interval saturation threshold). .
また、本実施形態では、カラー画素判定用明度閾値、カラー画素判定用彩度閾値、カラーライン判定閾値を原稿の搬送速度の変化に基づいて変更したが、原稿の搬送速度の大小によって変更してもよい。 In this embodiment, the brightness threshold for color pixel determination, the saturation threshold for color pixel determination, and the color line determination threshold are changed based on the change in the document conveyance speed, but may be changed depending on the size of the document conveyance speed. Also good.
また、カラーモノクロ判定処理のスキップを行わず、ステップS705の判断で用いるライン数T、またはステップS702のカラーライン判定で用いるカラーライン判定閾値を変更してもよい。 Further, without skipping the color / monochrome determination process, the number T of lines used in the determination in step S705 or the color line determination threshold used in the color line determination in step S702 may be changed.
また、本実施形態では、カラーモノクロ判定を画像読取装置1内で処理する例を示したが、画像データとモータスピードテーブルSpeed[y]をホストコンピュータ2に転送して、カラーモノクロ判定をホストコンピュータ2側で処理するようにしてもよい。その場合は、画像読取装置1とホストコンピュータ2を接続したシステムが本発明の画像読取装置に相当し、ホストコンピュータ2において実行される制御方法及びプログラムが本発明の制御方法及びプログラムに相当する。
In this embodiment, an example in which the color / monochrome determination is processed in the
なお、本発明は、上記実施形態に例示したものに限定されるものではなく、本発明の要旨を逸脱しない範囲において適宜変更可能である。 In addition, this invention is not limited to what was illustrated to the said embodiment, In the range which does not deviate from the summary of this invention, it can change suitably.
例えば、上記実施形態では、固定配置されたラインセンサ104に対して原稿101を移動させる場合を例示したが、原稿を停止させた状態でラインセンサを原稿に沿って移動させて原稿画像を読取走査する場合にも本発明を適用することができる。この場合、ステッピングモータ208のモータスピードをラインセンサを移動させる駆動モータのモータスピードに置き換えて対応する。
For example, in the above-described embodiment, the case where the
また、上記実施形態では、明度閾値及び彩度閾値の両方を変更することが好適であるため、両方を変更しているが、明度閾値の変更は行わないようにしてもよい。 Moreover, in the said embodiment, since it is suitable to change both a lightness threshold value and a saturation threshold value, although both are changed, you may make it not change a lightness threshold value.
また、本発明の目的は、以下の処理を実行することによっても達成される。即ち、上述した実施形態の機能を実現するソフトウェアのプログラムコードを記録した記憶媒体を、システム或いは装置に供給し、そのシステム或いは装置のコンピュータ(またはCPUやMPU等)が記憶媒体に格納されたプログラムコードを読み出す処理である。 The object of the present invention can also be achieved by executing the following processing. That is, a storage medium that records a program code of software that realizes the functions of the above-described embodiments is supplied to a system or apparatus, and a computer (or CPU, MPU, etc.) of the system or apparatus is stored in the storage medium. This is the process of reading the code.
この場合、記憶媒体から読み出されたプログラムコード自体が前述した実施の形態の機能を実現することになり、そのプログラムコード及び該プログラムコードを記憶した記憶媒体は本発明を構成することになる。 In this case, the program code itself read from the storage medium realizes the functions of the above-described embodiments, and the program code and the storage medium storing the program code constitute the present invention.
また、プログラムコードを供給するための記憶媒体としては、次のものを用いることができる。例えば、フロッピー(登録商標)ディスク、ハードディスク、光磁気ディスク、CD−ROM、CD−R、CD−RW、DVD−ROM、DVD−RAM、DVD−RW、DVD+RW、磁気テープ、不揮発性のメモリカード、ROM等である。または、プログラムコードをネットワークを介してダウンロードしてもよい。 Moreover, the following can be used as a storage medium for supplying the program code. For example, floppy (registered trademark) disk, hard disk, magneto-optical disk, CD-ROM, CD-R, CD-RW, DVD-ROM, DVD-RAM, DVD-RW, DVD + RW, magnetic tape, nonvolatile memory card, ROM or the like. Alternatively, the program code may be downloaded via a network.
また、コンピュータが読み出したプログラムコードを実行することにより、上記実施の形態の機能が実現される場合も本発明に含まれる。加えて、そのプログラムコードの指示に基づき、コンピュータ上で稼動しているOS(オペレーティングシステム)等が実際の処理の一部または全部を行い、その処理によって前述した実施形態の機能が実現される場合も含まれる。 Further, the present invention includes a case where the function of the above-described embodiment is realized by executing the program code read by the computer. In addition, an OS (operating system) running on the computer performs part or all of the actual processing based on an instruction of the program code, and the functions of the above-described embodiments are realized by the processing. Is also included.
更に、前述した実施形態の機能が以下の処理によって実現される場合も本発明に含まれる。即ち、記憶媒体から読み出されたプログラムコードが、コンピュータに挿入された機能拡張ボードやコンピュータに接続された機能拡張ユニットに備わるメモリに書き込まれる。その後、そのプログラムコードの指示に基づき、その機能拡張ボードや機能拡張ユニットに備わるCPU等が実際の処理の一部または全部を行う場合である。 Furthermore, a case where the functions of the above-described embodiment are realized by the following processing is also included in the present invention. That is, the program code read from the storage medium is written in a memory provided in a function expansion board inserted into the computer or a function expansion unit connected to the computer. Thereafter, based on the instruction of the program code, the CPU or the like provided in the function expansion board or function expansion unit performs part or all of the actual processing.
1 画像読取装置
2 ホストコンピュータ
3 通信ケーブル
101 原稿
102 原稿台
103 排紙部
104 イメージセンサ
106 給紙ローラ
107 搬送ローラ
108 搬送路
109 レジストセンサ
200 回路基板
201 システムバス
202 CPU
203 RAM
204 ROM
205 外部I/F
206 読取部
207 モータドライバ
208 ステッピングモータ
210R 光源(赤色LED)
210G 光源(緑色LED)
210B 光源(青色LED)
DESCRIPTION OF
203 RAM
204 ROM
205 External I / F
206
210G Light source (green LED)
210B Light source (blue LED)
Claims (6)
原稿及び前記読取手段を相対的に移動させる駆動モータと、
前記読取手段により読み取られた原稿の画像データに基づいて、原稿の画像がカラー画像かモノクロ画像かを判定する判定手段と、を備え、
前記判定手段は、前記読取手段に対する原稿の相対的な移動速度、又は該移動速度の変化の何れか一方を示す前記駆動モータのモータスピード情報に基づいて、加速区間と減速区間とでカラー画像の判定基準を変更して原稿がカラー画像かモノクロ画像かを判定する、ことを特徴とする画像読取装置。 Reading means for scanning and reading an image of a relatively moving document;
A drive motor for relatively moving the document and the reading unit;
Determination means for determining whether the image of the document is a color image or a monochrome image based on the image data of the document read by the reading unit;
The determination unit is configured to display a color image in an acceleration section and a deceleration section based on motor speed information of the driving motor indicating either a relative movement speed of the document with respect to the reading section or a change in the movement speed. An image reading apparatus characterized by changing a determination criterion to determine whether a document is a color image or a monochrome image.
前記判定手段は、前記算出手段により算出された彩度及び明度に基づいて、前記原稿の画像がカラー画像であると判定する、ことを特徴とする請求項1に記載の画像読取装置。 A calculation unit that calculates saturation and brightness from image data of the document read by the reading unit;
The image reading apparatus according to claim 1, wherein the determination unit determines that the image of the document is a color image based on the saturation and brightness calculated by the calculation unit.
原稿及び前記読取手段を相対的に移動させる駆動モータと、
前記読取手段により読み取られた原稿の画像データに基づいて、原稿の画像がカラー画像かモノクロ画像かを判定する判定手段と、
前記読取手段に対する原稿の相対的な移動速度の変化を示す前記駆動モータのモータスピード情報に基づいて、前記判定手段によるカラー画像の判定を行うか否かを判断する判断手段と、を備え、
前記判定手段は、前記読み取られた原稿の画像を構成するラインをカラー画素数に基づいてカラーラインか否かを判別し、判別されたカラーラインの連続する本数に基づいて、カラー画像か否かを判定するにあたり、
前記カラーラインか否かを判別する基準及び前記カラー画像か否かを判定する基準の少なくとも一方は、前記相対的な移動速度、又は該移動速度の変化の何れか一方を示す前記駆動モータのモータスピード情報に応じて変更される、ことを特徴とする画像読取装置。 Reading means for scanning and reading an image of a relatively moving document;
A drive motor for relatively moving the document and the reading unit;
Determining means for determining whether the image of the original is a color image or a monochrome image based on the image data of the original read by the reading means;
Determination means for determining whether or not to determine a color image by the determination means based on motor speed information of the drive motor indicating a change in the moving speed of the document relative to the reading means;
The determination means determines whether or not a line constituting the read image of the original is a color line based on the number of color pixels, and whether or not the line is a color image based on the number of consecutive color lines determined. In determining
At least one of the reference for determining whether or not the color line is the color image and the reference for determining whether or not the color image is the motor of the drive motor indicating either the relative movement speed or the change in the movement speed An image reading apparatus that is changed according to speed information.
前記読取手段により読み取られた原稿の画像データに基づいて、原稿の画像がカラー画像かモノクロ画像かを判定する判定ステップを備え、
前記判定ステップは、前記読取手段に対する原稿の相対的な移動速度、又は該移動速度の変化の何れか一方を示す前記駆動モータのモータスピード情報に基づいて、加速区間と減速区間とでカラー画像の判定基準を変更して原稿がカラー画像かモノクロ画像かを判定する、ことを特徴とする画像読取装置の制御方法。 A control method for an image reading apparatus, comprising: a reading unit that scans and reads an image of a relatively moving document; and a driving motor that relatively moves the document and the reading unit.
A determination step of determining whether the image of the document is a color image or a monochrome image based on the image data of the document read by the reading unit;
In the determination step, based on the motor speed information of the drive motor indicating either the relative movement speed of the document with respect to the reading unit or the change in the movement speed , the color image is detected in the acceleration section and the deceleration section. A control method for an image reading apparatus, characterized in that a determination criterion is changed to determine whether a document is a color image or a monochrome image.
前記読取手段に対する原稿の相対的な移動速度、又は該移動速度の変化の何れか一方を示す前記駆動モータのモータスピード情報に基づいて、加速区間と減速区間とで前記判定ステップでのカラー画像の判定基準を変更する変更ステップと、をコンピュータに実行させる、ことを特徴とするプログラム。 A program for controlling an image reading apparatus, comprising: a reading unit that scans and reads an image of a relatively moving document; and a drive motor that relatively moves the document and the reading unit, and is read by the reading unit. A determination step for determining whether the original image is a color image or a monochrome image based on the original image data;
Based on the motor speed information of the driving motor indicating either the relative moving speed of the document with respect to the reading means or the change in the moving speed, the color image in the determination step is determined in the acceleration section and the deceleration section . A program for causing a computer to execute a changing step for changing a determination criterion.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2012105826A JP5395925B2 (en) | 2012-05-07 | 2012-05-07 | Image reading apparatus, image reading apparatus control method, and program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2012105826A JP5395925B2 (en) | 2012-05-07 | 2012-05-07 | Image reading apparatus, image reading apparatus control method, and program |
Related Parent Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2008170695A Division JP5258418B2 (en) | 2008-06-30 | 2008-06-30 | Image reading apparatus, image reading apparatus control method, and program |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2012151906A JP2012151906A (en) | 2012-08-09 |
JP5395925B2 true JP5395925B2 (en) | 2014-01-22 |
Family
ID=46793652
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2012105826A Active JP5395925B2 (en) | 2012-05-07 | 2012-05-07 | Image reading apparatus, image reading apparatus control method, and program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP5395925B2 (en) |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH03270382A (en) * | 1990-03-19 | 1991-12-02 | Canon Inc | Image processing method |
JPH11331626A (en) * | 1998-03-09 | 1999-11-30 | Minolta Co Ltd | Image processor |
JP2000172850A (en) * | 1998-12-09 | 2000-06-23 | Canon Inc | Device and method for processing picture |
JP2003259133A (en) * | 2002-03-05 | 2003-09-12 | Fuji Xerox Co Ltd | Image reader |
JP2004134910A (en) * | 2002-10-09 | 2004-04-30 | Minolta Co Ltd | Image processing apparatus |
JP4160445B2 (en) * | 2003-05-26 | 2008-10-01 | 松下電器産業株式会社 | Image processing system and image processing method |
-
2012
- 2012-05-07 JP JP2012105826A patent/JP5395925B2/en active Active
Also Published As
Publication number | Publication date |
---|---|
JP2012151906A (en) | 2012-08-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8953216B2 (en) | Original reader capable of reading originals of various sizes and method of reading original | |
US9571020B2 (en) | Motor drive control device, motor drive control method, and non-transitory computer-readable medium | |
US20080297858A1 (en) | Image reading apparatus, image forming apparatus, control method, and program | |
JP6572674B2 (en) | Image reading device | |
US20060071416A1 (en) | Motor control apparatus, image forming apparatus, motor control method, and program for implementing the method | |
JP5258418B2 (en) | Image reading apparatus, image reading apparatus control method, and program | |
JP5395925B2 (en) | Image reading apparatus, image reading apparatus control method, and program | |
US9681011B2 (en) | Original reading apparatus with original tray, and control method therefor | |
US10382648B2 (en) | Scanner, and scanned image generating method | |
JP2003250054A (en) | Image processor | |
JP6330506B2 (en) | Image reading device | |
JP2008077356A (en) | Design support method, design support device, design support program, and storage medium | |
JP2003087500A (en) | Image reader, image read method, recording medium and program | |
JP2007074554A (en) | Document feeding and reading apparatus | |
JP2008199143A (en) | Image reading apparatus | |
JP6406095B2 (en) | Image reading apparatus and image reading apparatus control method | |
JP2008148067A (en) | Image processor, control method therefor, image forming apparatus, and program | |
US11339020B2 (en) | Paper stacking apparatus, control method, and recording medium | |
JP5798862B2 (en) | Image forming apparatus | |
CN114212630B (en) | Elevator operation control method and device, elevator and computer readable storage medium | |
JP5002185B2 (en) | Image reading device | |
JP2011211688A (en) | Image reader and image reading method | |
JP7192495B2 (en) | Image reading system, image reading method, and computer program. | |
JP6176022B2 (en) | scanner | |
JP2007008687A (en) | Image processing device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20120507 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20130402 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20130513 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20130702 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20130902 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20130924 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20131018 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 5395925 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |