JP5395925B2 - Image reading apparatus, image reading apparatus control method, and program - Google Patents

Image reading apparatus, image reading apparatus control method, and program Download PDF

Info

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
Application number
JP2012105826A
Other languages
Japanese (ja)
Other versions
JP2012151906A (en
Inventor
洋平 伊藤
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.)
Canon Electronics Inc
Original Assignee
Canon Electronics Inc
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 Canon Electronics Inc filed Critical Canon Electronics Inc
Priority to JP2012105826A priority Critical patent/JP5395925B2/en
Publication of JP2012151906A publication Critical patent/JP2012151906A/en
Application granted granted Critical
Publication of JP5395925B2 publication Critical patent/JP5395925B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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.

特許第2935505号公報Japanese Patent No. 2935505

そこで、本発明は、画像読取装置において、読取走査中の原稿と読取手段との間の相対的な速度変化に起因するカラーモノクロ判定の誤判定を防止することができる仕組みを提供することを目的とする。   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.

本発明の実施形態の一例である画像読取装置を通信ケーブルを介してホストコンピュータに接続した状態を示す斜視図である。1 is a perspective view illustrating a state in which an image reading apparatus which is an example of an embodiment of the present invention is connected to a host computer via a communication cable. 画像読取装置の内部構造を説明するための概略断面図である。It is a schematic sectional drawing for demonstrating the internal structure of an image reading apparatus. 画像読取装置の回路構成を説明するためのブロック図である。It is a block diagram for demonstrating the circuit structure of an image reading apparatus. ステッピングモータが一定速度の場合のタイマ割り込み処理を説明するためのフローチャート図である。It is a flowchart for demonstrating a timer interruption process in case a stepping motor is constant speed. ステッピングモータが減速中の場合のタイマ割り込み処理を説明するためのフローチャート図である。It is a flowchart for demonstrating a timer interruption process in case the stepping motor is decelerating. ステッピングモータが加速中の場合のタイマ割り込み処理を説明するためのフローチャート図である。It is a flowchart for demonstrating a timer interruption process in case a stepping motor is accelerating. カラーモノクロ判定の処理例を説明するためのフローチャート図である。It is a flowchart for demonstrating the processing example of a color / monochrome determination. 原稿の読取画像と、その画像ライン位置におけるステッピングモータのモータスピードとの関係を示す図である。It is a figure which shows the relationship between the read image of a document, and the motor speed of the stepping motor in the image line position.

以下、本発明の実施形態の一例を図面を参照して説明する。   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 image reading apparatus 1 that is an example of an embodiment of the present invention is connected to a host computer 2 via a communication line such as a communication cable 3.

画像読取装置1は、図2に示すように、原稿台102に積載された原稿101を給紙ローラ106によって1枚ずつ分離して搬送路108に送り出す。送り出された原稿101は、搬送ローラ107によって搬送路108を搬送され、レジストセンサ109及びイメージセンサ104を通過した後、排紙部103へ排出される。   As shown in FIG. 2, the image reading apparatus 1 separates the originals 101 stacked on the original table 102 one by one by a paper feed roller 106 and sends them out to the conveyance path 108. The sent document 101 is transported along a transport path 108 by transport rollers 107, passes through a registration sensor 109 and an image sensor 104, and is discharged to a paper discharge unit 103.

図3は、画像読取装置1の回路構成を説明するためのブロック図である。   FIG. 3 is a block diagram for explaining a circuit configuration of the image reading apparatus 1.

図3に示すように、画像読取装置1は、CPU202、RAM203、ROM204、読取部206、モータドライバ207、ステッピングモータ208、外部I/F205、イメージセンサ104及びLED210R,210G,210Bを備える。これらのブロックは、回路基板200上でシステムバス201により相互に接続されている。   As shown in FIG. 3, the image reading apparatus 1 includes a CPU 202, a RAM 203, a ROM 204, a reading unit 206, a motor driver 207, a stepping motor 208, an external I / F 205, an image sensor 104, and LEDs 210R, 210G, and 210B. These blocks are connected to each other by a system bus 201 on the circuit board 200.

光源210R,210G,210Bは、それぞれ赤色,緑色,青色のLED等からなり、CPU202の点灯制御により原稿101の読取面を所定時間ずつ順次照射する。   The light sources 210R, 210G, and 210B include red, green, and blue LEDs, respectively, and sequentially irradiate the reading surface of the document 101 for a predetermined time by the lighting control of the CPU 202.

イメージセンサ104は、光源210R,210G,210Bから原稿101の読取面に照射された光の反射光を受光して、その受光量に応じたアナログの読取画像信号を出力する。   The image sensor 104 receives the reflected light of the light irradiated on the reading surface of the original 101 from the light sources 210R, 210G, and 210B, and outputs an analog read image signal corresponding to the received light amount.

読取部206は、イメージセンサ104から出力された赤色、緑色、青色のアナログの読取画像信号をA/D変換し、シェーディング補正を行って、RAM203へ画像データの書き込みを行う。   The reading unit 206 performs A / D conversion on analog read image signals of red, green, and blue output from the image sensor 104, performs shading correction, and writes image data to the RAM 203.

ステッピングモータ208は、不図示のギヤやベルトによって搬送ローラ107に連結され、モータドライバ207を介してCPU202により制御される。なお、本実施形態では、ステッピングモータ208の駆動に用いるパルス信号の1パルスに対応する原稿の搬送量を、イメージセンサ104が読み出す各色1ラインの間隔と等しくした場合を例に採って説明する。   The stepping motor 208 is connected to the conveyance roller 107 by a gear or a belt (not shown), and is controlled by the CPU 202 via the motor driver 207. In the present embodiment, an example will be described in which the document conveyance amount corresponding to one pulse of the pulse signal used to drive the stepping motor 208 is equal to the interval of one line of each color read by the image sensor 104.

CPU202は、ROM204に格納されたプログラムに基づいて画像読取装置1全体を制御する。   The CPU 202 controls the entire image reading apparatus 1 based on a program stored in the ROM 204.

具体的には、CPU202は、イメージセンサ104による原稿101の画像の読取動作を一時的に中断し、搬送ローラ107を停止させる搬送制御を実行する。また、CPU202は、RAM203に一時保存された画像データの全画素を通してカラー画素かモノクロ画素かを判定する。また、CPU202は、各ライン読取時の原稿101の搬送速度(移動速度)を検出してRAM203に記憶し、画素データとそのラインにおける搬送速度とを使用して画素のカラーモノクロ判定を行う。   Specifically, the CPU 202 executes conveyance control for temporarily stopping the image reading operation of the original 101 by the image sensor 104 and stopping the conveyance roller 107. The CPU 202 determines whether the pixel is a color pixel or a monochrome pixel through all the pixels of the image data temporarily stored in the RAM 203. Further, the CPU 202 detects the conveyance speed (movement speed) of the document 101 at the time of reading each line, stores it in the RAM 203, and performs pixel color / monochrome determination using the pixel data and the conveyance speed in the line.

RAM203は、CPU202にワーク領域を提供するとともに、原稿101の画像読取時には、読取部206から得られる画像データを一時記憶するバッファメモリとして機能する。   The RAM 203 provides a work area to the CPU 202 and functions as a buffer memory that temporarily stores image data obtained from the reading unit 206 when the original 101 is read.

ROM204には、各種のプログラムや初期設定値などが格納されている。本実施形態では、ROM204には、搬送ローラ107により原稿101とイメージセンサ209との相対的な位置を変更させながら、光源210R,210G,210Bを順次点灯させるプログラムが格納されている。また、ROM204には、光源210R,210G,210Bの点灯により原稿101から反射した光を各色毎に1ラインずつイメージセンサ104により読み取るプログラムが格納されている。さらに、ROM204には、1枚の原稿101に対する読取動作を一時的に中断するときに、搬送ローラ107を停止させるための搬送制御プログラムを含むプログラムが格納されている。   The ROM 204 stores various programs and initial setting values. In the present embodiment, the ROM 204 stores a program for sequentially turning on the light sources 210R, 210G, and 210B while changing the relative positions of the document 101 and the image sensor 209 by the transport roller 107. The ROM 204 stores a program for reading light reflected from the original 101 by turning on the light sources 210R, 210G, and 210B by the image sensor 104 for each color line by line. Further, the ROM 204 stores a program including a conveyance control program for stopping the conveyance roller 107 when the reading operation for one document 101 is temporarily interrupted.

次に、上記構成の画像読取装置1の動作例について説明する。   Next, an operation example of the image reading apparatus 1 configured as described above will be described.

原稿101の画像読取に際しては、CPU202は、モータドライバ207を介してステッピングモータ208を制御し、搬送ローラ107により原稿101を副走査方向に所定速度で搬送させる。   When reading the image of the document 101, the CPU 202 controls the stepping motor 208 via the motor driver 207 and transports the document 101 at a predetermined speed in the sub-scanning direction by the transport roller 107.

次に、CPU202は、搬送される原稿101がレジストセンサ109を通過したことを検知すると、一定時間後に光源210R,210G,210Bの順次点灯とイメージセンサ104の駆動を開始する。   Next, when the CPU 202 detects that the conveyed document 101 has passed through the registration sensor 109, the light source 210 </ b> R, 210 </ b> G, 210 </ b> B is sequentially turned on and the image sensor 104 is started after a predetermined time.

具体的には、CPU202は、ステッピングモータ208への駆動パルスを出力すると同時に、光源210R,210G,210Bのうちのいずれかの光源を点灯し、イメージセンサ104より1ラインの画像を読み出す。これにより、搬送される原稿101全体の画像データを読み取る。   Specifically, the CPU 202 outputs a drive pulse to the stepping motor 208 and simultaneously turns on one of the light sources 210 </ b> R, 210 </ b> G, and 210 </ b> B and reads an image of one line from the image sensor 104. As a result, the image data of the entire conveyed document 101 is read.

ここで、光源210R,210G,210Bの点灯順序が赤、緑、青の順であったとすると、光源210R,210G,210Bの順に光が原稿101に照射される。そして、イメージセンサ104は、原稿101に各色の光が照射されるごとに原稿101からの反射光を受光して、その受光光量に応じた1ラインのアナログの読取画像信号を読取部206に順次出力する。   Here, assuming that the lighting order of the light sources 210R, 210G, and 210B is in the order of red, green, and blue, the original 101 is irradiated with light in the order of the light sources 210R, 210G, and 210B. The image sensor 104 receives reflected light from the original 101 each time the original 101 is irradiated with light of each color, and sequentially outputs an analog read image signal of one line corresponding to the received light quantity to the reading unit 206. Output.

イメージセンサ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 reading unit 206, subjected to shading correction, and temporarily stored in the RAM 203.

RAM203に格納された画像は、CPU202によって一連の画像処理を施された後、外部I/F205を通じてホストコンピュータ2へ転送される。   The image stored in the RAM 203 is subjected to a series of image processing by the CPU 202 and then transferred to the host computer 2 through the external I / F 205.

RAM203に格納された画像データのサイズは、CPU202によって管理され、そのサイズは読取時に画像データがRAM203へ格納されていくにつれて増し、ホストコンピュータ2への画像データの転送によって減る。また、RAM203に一時格納できる画像サイズはあらかじめ定められており、ホストコンピュータ2への画像データの転送スピードが、読取部206での画像読取スピードより遅い場合、RAM203に一時格納される画像データが増大し、空き容量は減少する。   The size of the image data stored in the RAM 203 is managed by the CPU 202, and the size increases as the image data is stored in the RAM 203 at the time of reading, and decreases by transferring the image data to the host computer 2. The image size that can be temporarily stored in the RAM 203 is determined in advance. When the transfer speed of the image data to the host computer 2 is slower than the image reading speed in the reading unit 206, the image data temporarily stored in the RAM 203 increases. However, the free space decreases.

CPU202は、タイマ割り込みを使用してモータドライバ207を介してステッピングモータ208の駆動を制御し、また、同タイマ割り込みを使用して光源210R,210G,210Bの点灯信号とイメージセンサ104への1ライン読み込み信号を出力する。すなわち、CPU202は、原稿101のレジストセンサ109の通過を検知して一定時間経過後、タイマ割り込みにより、光源210R,210G,210Bの点灯制御とイメージセンサ104の駆動制御を開始する。   The CPU 202 uses the timer interrupt to control the driving of the stepping motor 208 via the motor driver 207, and also uses the timer interrupt to turn on the light sources 210R, 210G, and 210B and one line to the image sensor 104. Outputs a read signal. That is, the CPU 202 detects the passage of the document 101 through the registration sensor 109 and, after a lapse of a certain time, starts the lighting control of the light sources 210R, 210G, 210B and the drive control of the image sensor 104 by a timer interruption.

CPU202は、RAM203の空き容量が所定値以上であるかどうかを判断する。そして、CPU202は、RAM203の空き容量が所定値以上であれば、ステッピングモータ208を一定速度で継続駆動して搬送ローラ107を回転させるとともに、イメージセンサ104による原稿101の画像読取を継続する。   The CPU 202 determines whether or not the free space in the RAM 203 is greater than or equal to a predetermined value. If the free space in the RAM 203 is equal to or greater than a predetermined value, the CPU 202 continuously drives the stepping motor 208 at a constant speed to rotate the transport roller 107 and continue reading the image of the document 101 by the image sensor 104.

一方、CPU202は、RAM203の空き容量が所定値未満であれば、ステッピングモータ208の駆動を減速制御し、搬送ローラ107を停止して、イメージセンサ104による原稿101の画像読取を中断する。その後、CPU202は、RAM203の空き容量が所定値以上になるのを待った後、ステッピングモータ208の駆動を加速制御して搬送ローラ107を回転させるとともに、イメージセンサ104による原稿101の画像読取を再開する。   On the other hand, if the free space in the RAM 203 is less than the predetermined value, the CPU 202 controls the deceleration of the driving of the stepping motor 208, stops the conveyance roller 107, and interrupts the image reading of the document 101 by the image sensor 104. After that, the CPU 202 waits for the free space of the RAM 203 to be equal to or greater than a predetermined value, and then accelerates the driving of the stepping motor 208 to rotate the transport roller 107 and restarts image reading of the document 101 by the image sensor 104. .

次に、図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 image sensor 104 will be described. Each process in FIGS. 4 to 6 is executed by the CPU 202 after a program stored in the ROM 204 or the like is loaded into the RAM 203.

まず、上述したように、イメージセンサ104による原稿101の画像読取を開始した後、一定速度で画像を読み出している区間でタイマ割り込みが発生すると、図4の「一定速度割り込み」が呼び出されるように設定しておく。   First, as described above, after the image reading of the document 101 by the image sensor 104 is started, when a timer interruption occurs in a section in which an image is read at a constant speed, the “constant speed interruption” in FIG. 4 is called. Set it.

図4において、ステップS401では、CPU202は、モータドライバ207を介してステッピングモータ208に駆動パルスを出力して搬送ローラ107を回転駆動し、ステップS402に進む。   In FIG. 4, in step S <b> 401, the CPU 202 outputs a drive pulse to the stepping motor 208 via the motor driver 207 to rotationally drive the transport roller 107, and the process proceeds to step S <b> 402.

ステップS402では、CPU202は、イメージセンサ104に対して1ライン読取のための駆動パルスを出力すると共に光源210R,210G,210Bの点灯を変更するように制御し、ステップS403に進む。なお、光源210R,210G,210Bの点灯変更とは、例えば、赤(R)の光源210Rが点灯している状態から緑(G)の光源210Gが点灯する状態に変更することをいう。   In step S402, the CPU 202 outputs a drive pulse for reading one line to the image sensor 104 and controls the lighting of the light sources 210R, 210G, and 210B to be changed, and the process proceeds to step S403. Note that changing the lighting of the light sources 210R, 210G, and 210B means, for example, changing from a state in which the red (R) light source 210R is turned on to a state in which the green (G) light source 210G is turned on.

ステップS403では、CPU202は、現在のステッピングモータ208のモータ速度をあらかじめRAM203に格納したモータスピードテーブルSpeed[y]に記憶し、ステップS404に進む。ここで、yは、画像読み出し開始位置を0として、イメージセンサ104が読み取った副走査方向の走査位置である。   In step S403, the CPU 202 stores the current motor speed of the stepping motor 208 in the motor speed table Speed [y] stored in the RAM 203 in advance, and proceeds to step S404. Here, y is the scanning position in the sub-scanning direction read by the image sensor 104 with the image reading start position set to 0.

ステップS404では、CPU202は、タイマ割り込みへの割り込み時間をセットし、ステップS405に進む。   In step S404, the CPU 202 sets an interrupt time for the timer interrupt, and proceeds to step S405.

ステップS405では、CPU202は、RAM203の空き容量が一定量V以上かどうかを判断し、RAM203の空き容量が一定量V以上の場合は、RAM203の空き容量が十分であるとして、本割り込み処理を終了する。一方、CPU202は、ステップS405において、RAM203の空き容量が一定量V未満の場合は、ステップS406に進む。   In step S405, the CPU 202 determines whether or not the free space in the RAM 203 is equal to or greater than a certain amount V. If the free space in the RAM 203 is equal to or greater than the certain amount V, it is determined that the free space in the RAM 203 is sufficient and ends this interrupt processing. To do. On the other hand, if the free capacity of the RAM 203 is less than the predetermined amount V in step S405, the CPU 202 proceeds to step S406.

ステップS406では、CPU202は、原稿101の搬送を停止する減速処理を開始するために割り込みベクタを変更することにより、タイマ割り込み時に呼び出される処理を「減速割り込み処理」に変更し、処理を終了する。   In step S406, the CPU 202 changes the interrupt vector to start the deceleration process for stopping the conveyance of the document 101, thereby changing the process called at the time of the timer interruption to the “deceleration interrupt process”, and ends the process.

次に、図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 CPU 202 determines whether or not the stepping motor 208 cannot decelerate any more, that is, whether it is the minimum speed. If it is not the minimum speed, the process proceeds to step S506, and if it is the minimum speed, the process proceeds to step S505. .

ステップS505では、CPU202は、タイマを停止して、一時中断状態に遷移する。一時中断状態では、CPU202は、RAM203の空き状況を監視し、空き容量が一定値以上(V)となったところで、原稿101の搬送を開始すべく加速処理を開始するタイマ割り込みを再設定する。すなわち、CPU202は、割り込みベクタを変更してタイマ割り込み時に呼び出される処理を「加速割り込み処理」に変更し、タイマ割り込みを起動して、処理を終了する。   In step S505, the CPU 202 stops the timer and transitions to a temporarily suspended state. In the temporarily interrupted state, the CPU 202 monitors the availability of the RAM 203, and resets the timer interrupt for starting the acceleration process to start the conveyance of the document 101 when the available capacity becomes equal to or greater than a certain value (V). That is, the CPU 202 changes the interrupt vector to change the process called at the time of the timer interrupt to “accelerated interrupt process”, starts the timer interrupt, and ends the process.

ステップS506では、CPU202は、ステッピングモータ208が現在よりも低速回転となるようにタイマ値をセットし、処理を終了する。   In step S506, the CPU 202 sets a timer value so that the stepping motor 208 rotates at a lower speed than the current time, and ends the process.

次に、図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 CPU 202 sets a timer value so that the stepping motor 208 rotates at a higher speed than the current time, and the process proceeds to step S605.

ステップS605では、CPU202は、ステッピングモータ208が目標速度に達したかどうかを判断し、目標速度に到達した場合はステップS606に進み、目標速度に到達していない場合は割り込み処理を終了する。   In step S605, the CPU 202 determines whether or not the stepping motor 208 has reached the target speed. If the target speed has been reached, the process proceeds to step S606, and if the target speed has not been reached, the interrupt process is terminated.

ステップS606では、CPU202は、加速処理から一定速度処理へ変更する。すなわち、CPU202は、割り込みベクタを変更して、タイマ割り込み時に呼び出される処理を「一定速割り込み処理」に変更し、処理を終了する。   In step S606, the CPU 202 changes from acceleration processing to constant speed processing. That is, the CPU 202 changes the interrupt vector, changes the process called at the time of the timer interrupt to “constant speed interrupt process”, and ends the process.

このようにして、CPU202は、ステッピングモータ208の加減速を行いながら、イメージセンサ104で読み取った原稿101の画像データとステッピングモータ208のモータスピードとをRAM203に格納していく。   In this way, the CPU 202 stores the image data of the original 101 read by the image sensor 104 and the motor speed of the stepping motor 208 in the RAM 203 while accelerating / decelerating the stepping motor 208.

次に、カラーモノクロ判定方法について説明する。   Next, a color / monochrome determination method will be described.

カラーモノクロ判定方法は、カラーラインと判別されたラインの本数が連続して一定ライン(T)続けば、原稿101の画像がカラー画像であると判定する。カラーラインの判別とは、ライン毎にカラー画素を計数し、計数したカラー画素が一定以上あれば、カラーラインと判別する。すなわち、(カラー画素数)>(カラーライン判定閾値)である場合、カラーラインと判別する。ライン毎の画素におけるカラー判定とは、(明度)>(カラー画素判定用明度閾値(基準値))かつ(彩度)>(カラー画素判定用彩度閾値(基準値))の場合にカラー画素と判定される。   The color / monochrome determination method determines that the image of the document 101 is a color image if the number of lines determined to be color lines continues for a fixed line (T). Color line discrimination refers to counting color pixels for each line, and if the counted color pixels are above a certain level, they are determined as color lines. That is, when (color pixel number)> (color line determination threshold), it is determined as a color line. Color determination in pixels for each line means color pixels when (lightness)> (lightness threshold for color pixel determination (reference value)) and (saturation)> (saturation threshold for color pixel determination (reference value)) It is determined.

ただし、前記明度および前記彩度は、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 document 101 is color or monochrome from the image data temporarily stored in the RAM 203 and the motor speed data of the stepping motor 208 in each line will be described with reference to FIGS. To do. 7 is executed by the CPU 202 after a program stored in the ROM 204 or the like is loaded into the RAM 203.

図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 image sensor 104 and the motor speed of the stepping motor 208 at the image line position.

図中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 motor 208 at the scanning position y. In FIG. 8, after the reading of the image of the original 101 is started at a constant motor speed of the stepping motor 208, the image is decelerated in the vicinity of y = 5, temporarily stopped in the vicinity of y = 6 to 7, and then the maximum acceleration is performed. In this example, the speed returns to a constant speed in the vicinity of y = 9.

図7において、ステップS700では、CPU202は、イメージセンサ104による原稿101の画像の読取動作開始時、すなわちy=0のとき、カラーライン連続数を表す変数:contを0に初期化し、ステップS701に進む。   In FIG. 7, in step S700, the CPU 202 initializes a variable: cont indicating the number of continuous color lines to 0 when the image sensor 104 starts reading an image of the original 101, that is, when y = 0, and the process proceeds to step S701. move on.

ステップS701では、CPU202は、RAM203に一時格納した画像データを画像上端より走査し、カラーラインを検索する。このとき、CPU202は、注目しているラインが加速中もしくは減速中の場合、カラーライン判定をスキップする。   In step S701, the CPU 202 scans the image data temporarily stored in the RAM 203 from the upper end of the image and searches for a color line. At this time, if the line of interest is accelerating or decelerating, the CPU 202 skips the color line determination.

例えば、本実施形態では、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 CPU 202 is in an acceleration / deceleration state as compared with the motor speed Speed [y] stored in the RAM 203 for each line and the motor speed Speed [y-2] on two lines. To determine. That is, if Speed [y] ≠ Speed [y-2], the CPU 202 determines an acceleration / deceleration line and proceeds to step S706. If Speed [y] = Speed [y-2], the CPU 202 determines a constant speed line. Then, the process proceeds to step S702.

ステップS702では、CPU202は、上記カラーライン判定処理によって、カラーラインかどうかを判定し、カラーラインと判定された場合、ステップS703でカラーライン連続数contをインクリメントし、ステップS705に進む。   In step S702, the CPU 202 determines whether it is a color line by the color line determination process. If it is determined to be a color line, the CPU 202 increments the number of continuous color lines cont in step S703, and proceeds to step S705.

一方、ステップ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 CPU 202 clears the continuous color line number cont in step S704 and proceeds to step S705.

ステップS705では、CPU202は、カラーライン連続数contが一定ライン数(T)以上であるかどうかを判断する。そして、CPU202は、カラーライン連続数contが一定ライン数(T)以上の場合はステップS708に進み、カラーライン連続数contが一定ライン数(T)未満の場合はステップS706に進む。   In step S705, the CPU 202 determines whether or not the color line continuation number cont is equal to or greater than a certain number of lines (T). The CPU 202 proceeds to step S708 when the color line continuation number cont is equal to or larger than the predetermined line number (T), and proceeds to step S706 when the color line continuation number cont is less than the predetermined line number (T).

ステップS708では、CPU202は、原稿101の読取画像はカラー画像であると判定し、処理を終了する。   In step S708, the CPU 202 determines that the read image of the document 101 is a color image, and ends the process.

一方、ステップS706では、CPU202は、注目ラインyをインクリメントしてステップS707に進む。   On the other hand, in step S706, the CPU 202 increments the attention line y and proceeds to step S707.

ステップS707では、CPU202は、RAM203に一時格納した画像データの画像下端まで走査が行われるまで上記処理を繰り返し、画像下端まで走査が行われると、ステップS709で原稿101の読取画像はモノクロ画像であると判定し、処理を終了する。   In step S707, the CPU 202 repeats the above processing until scanning to the lower end of the image data of the image data temporarily stored in the RAM 203. When scanning is performed to the lower end of the image, the read image of the document 101 is a monochrome image in step S709. And the process is terminated.

以上説明したように、本実施形態では、ステッピングモータ208のスピード、すなわち、原稿101の搬送スピードの加減速ラインまたは一時中断前後のラインのカラーライン判定処理をスキップしている。これにより、原稿101の搬送スピードの加減速や搬送の一時中断によって原稿101が慣性力等で予期せぬ動きをし、発生する色ずれによるカラーモノクロ判定の誤判定を減らすことができる。   As described above, in this embodiment, the color line determination processing of the speed of the stepping motor 208, that is, the acceleration / deceleration line of the conveyance speed of the original 101 or the lines before and after the temporary interruption is skipped. As a result, it is possible to reduce the erroneous determination of the color / monochrome determination due to the color misregistration caused by the unexpected movement of the original 101 due to the inertia force or the like due to acceleration / deceleration of the conveyance speed of the original 101 or temporary interruption of the conveyance.

また、原稿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 motor 208 is exemplified, but the determination criterion for the color / monochrome determination in this section is based on the acceleration or deceleration of the stepping motor 208. May be changed.

例えば、図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 image reading apparatus 1 has been described. However, the image data and the motor speed table Speed [y] are transferred to the host computer 2 to perform the color / monochrome determination. You may make it process by 2 sides. In that case, a system in which the image reading apparatus 1 and the host computer 2 are connected corresponds to the image reading apparatus of the present invention, and a control method and program executed in the host computer 2 correspond to the control method and program of the present invention.

なお、本発明は、上記実施形態に例示したものに限定されるものではなく、本発明の要旨を逸脱しない範囲において適宜変更可能である。   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 document 101 is moved with respect to the fixedly arranged line sensor 104 is illustrated. However, the document image is read and scanned by moving the line sensor along the document while the document is stopped. In this case, the present invention can be applied. In this case, the motor speed of the stepping motor 208 is replaced with the motor speed of the drive motor that moves the line sensor.

また、上記実施形態では、明度閾値及び彩度閾値の両方を変更することが好適であるため、両方を変更しているが、明度閾値の変更は行わないようにしてもよい。   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 SYMBOLS 1 Image reading apparatus 2 Host computer 3 Communication cable 101 Original 102 Original stand 103 Paper discharge part 104 Image sensor 106 Paper feed roller 107 Conveyance roller 108 Conveyance path 109 Registration sensor 200 Circuit board 201 System bus 202 CPU
203 RAM
204 ROM
205 External I / F
206 Reading unit 207 Motor driver 208 Stepping motor 210R Light source (red LED)
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.
前記判定手段は、前記相対的な移動速度、又は該移動速度の変化に基づいて、カラー画像の判定基準を変更する、ことを特徴とする請求項3に記載の画像読取装置。   The image reading apparatus according to claim 3, wherein the determination unit changes a determination criterion for a color image based on the relative moving speed or a change in the moving speed. 相対的に移動する原稿の画像を走査して読み取る読取手段と、原稿及び前記読取手段を相対的に移動させる駆動モータとを備える画像読取装置の制御方法であって、
前記読取手段により読み取られた原稿の画像データに基づいて、原稿の画像がカラー画像かモノクロ画像かを判定する判定ステップを備え、
前記判定ステップは、前記読取手段に対する原稿の相対的な移動速度、又は該移動速度の変化の何れか一方を示す前記駆動モータのモータスピード情報に基づいて、加速区間と減速区間とでカラー画像の判定基準を変更して原稿がカラー画像かモノクロ画像かを判定する、ことを特徴とする画像読取装置の制御方法。
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.
JP2012105826A 2012-05-07 2012-05-07 Image reading apparatus, image reading apparatus control method, and program Active JP5395925B2 (en)

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)

* Cited by examiner, † Cited by third party
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

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