[go: up one dir, main page]

JPH11127311A - Image reading device - Google Patents

Image reading device

Info

Publication number
JPH11127311A
JPH11127311A JP9289409A JP28940997A JPH11127311A JP H11127311 A JPH11127311 A JP H11127311A JP 9289409 A JP9289409 A JP 9289409A JP 28940997 A JP28940997 A JP 28940997A JP H11127311 A JPH11127311 A JP H11127311A
Authority
JP
Japan
Prior art keywords
read
image
image sensor
line
buffer memory
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
JP9289409A
Other languages
Japanese (ja)
Inventor
Hideo Nishimatsu
英雄 西松
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP9289409A priority Critical patent/JPH11127311A/en
Publication of JPH11127311A publication Critical patent/JPH11127311A/en
Pending legal-status Critical Current

Links

Landscapes

  • Facsimile Scanning Arrangements (AREA)
  • Image Input (AREA)

Abstract

(57)【要約】 【課題】 読取可能範囲に対して任意の大きさの読取対
象画像を任意の位置に置いても画像の切り出しを自動的
に行う画像読取装置を提供することを目的とする。 【解決手段】 読取ライン検出手段を備えることによっ
てイメージセンサー副走査方向に対する読取開始ライン
と終了ラインを検出し、読取画素検出手段を備えること
によって読取対象画像のイメージセンサー主走査方向の
開始画素と終了画素を検出する。任意の大きさの読取対
象画像を任意の位置に置いても切り出された画像を得
る。
(57) [Problem] To provide an image reading apparatus that automatically cuts out an image even if a read target image of an arbitrary size is placed at an arbitrary position in a readable range. . SOLUTION: A read start line and an end line in an image sensor sub-scanning direction are detected by providing a read line detecting unit, and a start pixel and an end of an image to be read in an image sensor main scanning direction are detected by providing a read pixel detecting unit. Detect pixels. Even if a read target image of an arbitrary size is placed at an arbitrary position, a clipped image is obtained.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明はイメージセンサー等
を使用した画像読取装置に関するものである。
[0001] 1. Field of the Invention [0002] The present invention relates to an image reading apparatus using an image sensor or the like.

【0002】[0002]

【従来の技術】従来の画像読取装置を図3に示す。2. Description of the Related Art FIG. 3 shows a conventional image reading apparatus.

【0003】図3において、1は駆動装置を、2は駆動
装置制御手段を、3はイメージセンサーを、4はイメー
ジセンサー制御手段を、5はバッファメモリを、6はバ
ッファメモリ制御手段を、7はホストコンピュータを示
す。
In FIG. 3, 1 is a driving device, 2 is a driving device control unit, 3 is an image sensor, 4 is an image sensor control unit, 5 is a buffer memory, 6 is a buffer memory control unit, and 7 is a buffer memory control unit. Indicates a host computer.

【0004】従来、読取面が外光に向けられた画像読取
装置においては、ホストコンピュータ7から読取有効範
囲を指定し、読取対象画像の置かれた位置や大きさに関
係なく、読取有効範囲内のすべての画素を読み取り、画
素データとしてホストコンピュータ7に転送し、ホスト
コンピュータ7でのソフトウェアプログラム処理によ
り、読取対象画像の切り出し処理を行っていた。この場
合にホストコンピュータ7では、読み取った画素データ
を格納するために以下に示すメモリ領域Qが必要であ
る。
Conventionally, in an image reading apparatus in which the reading surface is directed to outside light, the effective reading range is designated by the host computer 7 and the effective reading range is determined regardless of the position and size of the image to be read. Are read out, transferred as pixel data to the host computer 7, and the host computer 7 performs a software program process to cut out the image to be read. In this case, the host computer 7 needs the following memory area Q to store the read pixel data.

【0005】Q=X×Y×Z X:イメージセンサー主走査方向画素数 Y:イメージセンサー副走査方向ライン数 Z:1画素あたりの階調(ビット) Q:メモリ領域(ビット) 読取対象画像の切り出し処理をするためには、さらに処
理のための作業用メモリ領域が必要となる。
Q = X × Y × Z X: The number of pixels in the main scanning direction of the image sensor Y: The number of lines in the sub-scanning direction of the image sensor Z: Gray scale (bit) per pixel Q: Memory area (bit) In order to perform the cutout processing, a work memory area for the processing is required.

【0006】図6は従来の画像読取装置におけるホスト
コンピュータ7上の画素格納用メモリ領域を示すイメー
ジ図である。
FIG. 6 is an image diagram showing a pixel storage memory area on a host computer 7 in a conventional image reading apparatus.

【0007】11は読取可能範囲を、12は読取対象画
像を、13はホストコンピュータ7上の画素格納用メモ
リ領域を、16はホストコンピュータ7から指定される
読取有効範囲を示す。このように、ホストコンピュータ
7から指定される読取有効範囲内にユーザーが任意の位
置に読取対象画像12を置いて、読取動作が行われ、明
らかに無効な画素もホストコンピュータ7に格納され
る。
[0007] Reference numeral 11 denotes a readable range, 12 denotes an image to be read, 13 denotes a memory area for storing pixels on the host computer 7, and 16 denotes a read effective range designated by the host computer 7. As described above, the user places the image to be read 12 at an arbitrary position within the effective reading range specified by the host computer 7, performs the reading operation, and stores obviously invalid pixels in the host computer 7.

【0008】図9は従来の画像読取装置の処理手順を示
すフローチャートである。ホストコンピュータ7から読
取開始位置までの移動ライン数、および読取に必要なラ
イン数の情報が、駆動装置制御手段2、イメージセンサ
ー制御手段4、バッファメモリ制御手段6に通知され、
動作を開始する。駆動装置1によってイメージセンサー
3がホームポジションから読取開始位置まで移動する。
次にイメージセンサー制御手段4によってイメージセン
サー3の光源が点灯され、読取対象画像12の読取動作
が開始され、イメージセンサー3から読み取られた画素
が、バッファメモリ制御手段6によってバッファメモリ
5へ書き込まれる。駆動装置制御手段2では、次のライ
ンへの移動を制御しながら、内部で設定したカウンタに
よって、ホストコンピュータ7から指定された読取ライ
ン数に到達したかどうかを判定し、到達しない場合は引
き続き読取動作を行い、到達した場合は、読取動作を終
了し、イメージセンサー3をホームポジション位置へ戻
して、すべての動作を終了する。
FIG. 9 is a flowchart showing a processing procedure of the conventional image reading apparatus. Information on the number of moving lines from the host computer 7 to the reading start position and the number of lines required for reading is notified to the drive device control means 2, the image sensor control means 4, and the buffer memory control means 6,
Start operation. The drive device 1 moves the image sensor 3 from the home position to the reading start position.
Next, the light source of the image sensor 3 is turned on by the image sensor control means 4, the reading operation of the image 12 to be read is started, and the pixels read from the image sensor 3 are written into the buffer memory 5 by the buffer memory control means 6. . While controlling the movement to the next line, the drive device control means 2 determines whether or not the number of read lines specified by the host computer 7 has been reached by a counter set internally. The operation is performed, and when it reaches, the reading operation is ended, the image sensor 3 is returned to the home position, and all the operations are ended.

【0009】[0009]

【発明が解決しようとする課題】しかしこのような画像
読取装置では、読取対象画像が任意の大きさの場合や、
読取対象画像の位置がユーザーの意志によって特定でき
ない場合は、読取対象画像の大きさと位置に関係なく、
ホストコンピュータで指定した読取有効範囲すべての画
素をホストコンピュータに転送しなければならず、ホス
トコンピュータ上で画素を格納するためのメモリ領域を
確保しなければならなかった。したがって、イメージセ
ンサーからホストコンピュータへ無効な画素の転送を行
っており、かつホストコンピュータ上のメモリ領域上に
は、読取対象画像に対して明らかに無効と思われる画素
の格納が必要であるとともに、切り出し処理を行わなけ
れば有効な画素に対する演算処理を行うことができなか
った。また、ユーザーが読取対象画像を置いた場所とは
離れた位置から光源が点灯し読取動作をするために、読
取対象画像と読取開始位置が異なるためにユーザーを惑
わすことになり、ユーザーインタフェースが好ましくな
いという欠点を有していた。
However, in such an image reading apparatus, when an image to be read has an arbitrary size,
If the position of the image to be read cannot be specified by the user's will, regardless of the size and position of the image to be read,
All pixels in the effective reading range specified by the host computer must be transferred to the host computer, and a memory area for storing the pixels must be secured on the host computer. Therefore, the invalid pixels are transferred from the image sensor to the host computer, and the memory area on the host computer needs to store the pixels that are apparently invalid for the image to be read, Unless the clipping process is performed, it is not possible to perform an arithmetic process on valid pixels. Further, since the light source is turned on and performs a reading operation from a position distant from the place where the user places the image to be read, the user is confused because the reading start position is different from the image to be read, and the user interface is preferable. Had the disadvantage of not having.

【0010】[0010]

【課題を解決するための手段】上記課題を解決するため
に本発明は、読取面への外光をイメージセンサーの二次
光源とし、イメージセンサーからデータを読み出しなが
ら、イメージセンサーの副走査方向に対する読取対象画
像の端を検出して、対象範囲内の画素のみをホストコン
ピュータへ転送する。この処理により、無駄な転送を削
減し、ホストコンピュータ上に格納されるメモリ領域
を、読取対象画像に対して最小限に押さえられるので、
作業メモリ領域も最小限で済み、システムのリソースを
効率的に利用できる。また、副走査方向の画像の切り出
し処理を不要にするので、画像処理全体の処理速度を向
上させることができる。
SUMMARY OF THE INVENTION In order to solve the above-mentioned problems, the present invention uses external light to a reading surface as a secondary light source of an image sensor and reads data from the image sensor while reading data from the image sensor in a sub-scanning direction. The edge of the image to be read is detected, and only the pixels within the target range are transferred to the host computer. By this processing, unnecessary transfer is reduced, and the memory area stored on the host computer can be minimized for the image to be read.
The working memory area is minimized, and system resources can be used efficiently. In addition, since it is not necessary to cut out the image in the sub-scanning direction, the processing speed of the entire image processing can be improved.

【0011】さらに加えて、本発明は、イメージセンサ
ーの主走査方向に対して有効な画素だけを転送すること
によって、さらに無駄な転送を削減し、ホストコンピュ
ータ上に格納されるメモリ領域を読取対象画像に対して
最小限に押さえられるので、作業用メモリ領域も最小限
で済み、システムのリソースを効率的に利用できる。ま
た、画像の切り出し処理を一切不要にするので、画像処
理全体の処理速度を向上させることができる。
In addition, the present invention further reduces unnecessary transfer by transferring only effective pixels in the main scanning direction of the image sensor, and reads a memory area stored on a host computer as a read target. Since images are kept to a minimum, the working memory area is also minimized, and system resources can be used efficiently. In addition, since the image clipping process is not required at all, the processing speed of the entire image processing can be improved.

【0012】[0012]

【発明の実施の形態】本発明の請求項1に記載の発明
は、イメージセンサーを同一ラインで静止させた状態で
光源を消灯・点灯するイメージセンサー制御手段と、前
記イメージセンサーの副走査方向に対して、読取対象画
像の読取開始ラインと読取終了ラインを検出する読取ラ
イン検出手段と、前記読取ライン検出手段に連動してイ
メージセンサーの位置制御を行う駆動装置制御手段と、
前記読取ライン検出手段によって読取開始ラインか読取
終了ラインまでを読み取った画素を一時的に格納するバ
ッファメモリと、前記バッファメモリの書き込みと読み
出しを制御するバッファメモリ制御手段を備えたことを
特徴とする画像読取装置であり、無駄なメモリ転送を削
減し、ホストコンピュータ上に格納されるメモリ領域
を、読取対象画像に対して最小限に押さえられるので、
作業メモリ領域も最小限で済み、システムのリソースを
効率的に利用できる。また、副走査方向の画像の切り出
し処理を不要にするので、画像処理全体の処理速度を向
上させることができるという効果を有する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS According to the first aspect of the present invention, there is provided an image sensor control means for turning off / on a light source in a state where an image sensor is stopped on the same line; On the other hand, read line detecting means for detecting a read start line and a read end line of a read target image, drive device control means for controlling the position of an image sensor in conjunction with the read line detecting means,
A buffer memory for temporarily storing pixels read up to a read start line or a read end line by the read line detection means; and a buffer memory control means for controlling writing and reading of the buffer memory. It is an image reading device that reduces unnecessary memory transfer and minimizes the memory area stored on the host computer for the image to be read.
The working memory area is minimized, and system resources can be used efficiently. In addition, since there is no need to cut out an image in the sub-scanning direction, the processing speed of the entire image processing can be improved.

【0013】本発明の請求項2に記載の発明は、請求項
1記載の発明において、読取ライン検出手段を備え、イ
メージセンサーの主走査方向に対して、読取対象画像に
対応する読取開始画素と読取終了画素を検出する読取画
素検出手段と、前記読取画素検出手段に連動して有効画
素をバッファメモリに格納、もしくは前記バッファメモ
リからの読み出しを制御するバッファメモリ制御手段を
備えたことを特徴とする画像読取装置であり、イメージ
センサーの主走査方向に対して有効な画素だけを転送す
ることによって、さらに無駄な転送を削減し、ホストコ
ンピュータ上に格納されるメモリ領域を読取対象画像に
対して最小限に押さえられるので、作業用メモリ領域も
最小限で済み、システムのリソースを効率的に利用でき
る。また、画像の切り出し処理を一切不要にするので、
画像処理全体の処理速度を向上させることができる。
According to a second aspect of the present invention, in the first aspect of the present invention, a reading line detecting means is provided, and a reading start pixel corresponding to an image to be read is provided in the main scanning direction of the image sensor. A read pixel detecting unit that detects a read end pixel; and a buffer memory control unit that stores an effective pixel in a buffer memory in conjunction with the read pixel detecting unit or controls reading from the buffer memory. An image reading device that transfers only valid pixels in the main scanning direction of the image sensor, thereby further reducing unnecessary transfer and storing the memory area stored on the host computer for the image to be read. Since it is minimized, the working memory area is also minimized, and the system resources can be used efficiently. Also, since there is no need to cut out the image at all,
The processing speed of the entire image processing can be improved.

【0014】以下、本発明の実施の形態について図面を
参照しながら説明する。 (実施の形態1)図1は本発明の第1の実施の形態にお
ける構成図である。
Hereinafter, embodiments of the present invention will be described with reference to the drawings. (Embodiment 1) FIG. 1 is a configuration diagram in a first embodiment of the present invention.

【0015】図1において、1は駆動装置、2は駆動装
置制御手段、3はイメージセンサー、4はイメージセン
サー制御手段、5はバッファメモリ、6はバッファメモ
リ制御手段、7はホストコンピュータ、8はイメージセ
ンサー3の副走査方向に対する読取有効範囲の検出を行
う読取ライン検出手段を示す。
In FIG. 1, 1 is a driving device, 2 is a driving device control means, 3 is an image sensor, 4 is an image sensor control means, 5 is a buffer memory, 6 is a buffer memory control means, 7 is a host computer, and 8 is a host computer. 5 shows a reading line detection unit for detecting a reading effective range of the image sensor 3 in the sub-scanning direction.

【0016】図4は同実施の形態におけるホストコンピ
ュータ7上の画素格納用メモリ領域を示すイメージ図で
ある。
FIG. 4 is an image diagram showing a memory area for storing pixels on the host computer 7 in the embodiment.

【0017】図4において、11は読取可能範囲、12
は読取対象画像、13はホストコンピュータ上の画素格
納用メモリ領域を、14は読取対象画像12に対する読
取有効ライン範囲を示す。
In FIG. 4, reference numeral 11 denotes a readable range;
Denotes a read target image, 13 denotes a pixel storage memory area on the host computer, and 14 denotes a read effective line range for the read target image 12.

【0018】ユーザーが読取可能範囲11に読取対象画
像12を置いて読取動作を開始する。すなわち、ホスト
コンピュータ7が駆動装置制御手段2およびイメージセ
ンサー制御手段4に対して、読取動作開始のコマンドを
発行する。次に駆動装置制御手段2によって、駆動装置
1が作動し、イメージセンサー3をホームポジション位
置から設定されたライン単位で移動させる。イメージセ
ンサー制御手段4から、イメージセンサー3の仕様に応
じた制御信号がイメージセンサー3に対して送られ、イ
メージセンサー3の光源を消灯した状態で、イメージセ
ンサー3から画素を読み取り、読取ライン検出手段8に
転送される。読取ライン検出手段8では、ライン全体の
読み取った画素と、前ラインで獲得した画素を比較し、
イメージセンサー3が読取対象画像12の置かれている
位置に到達したかどうかを判定する。到達していなけれ
ば、駆動装置制御手段2に対して引き続きイメージセン
サー3の移動を行うように制御する。次に比較の結果、
読取対象画像12の置かれた位置に到達したと判断した
場合は、読取ライン検出手段8がイメージセンサー制御
手段4およびバッファメモリ制御手段6に対して、本ラ
インから読取動作を行う指示を発行する。イメージセン
サー制御手段4により、イメージセンサー3の光源を点
灯させ、読取対象画像12の読取を開始する。バッファ
メモリ制御手段6は読み取った画素をバッファメモリ5
に書き込む。次に駆動装置1によりイメージセンサー3
は次ラインに移動する。イメージセンサー制御手段4に
より、イメージセンサー3の光源を消灯させ、読み取っ
た画素を読取ライン検出手段8に転送し、前ライン画素
を比較し、イメージセンサー3が読取対象画像12の範
囲にあるかどうかを判断する。読取対象画像12の範囲
にあると判定した場合は、光源を点灯させ、読取対象画
像12に対する読取動作を行う。読取対象画像12の範
囲を越えるまで、以上の動作を繰り返す。イメージセン
サー3が読取対象画像12の範囲にないと判定した場合
は、光源を消灯したまま、駆動装置制御手段2は駆動装
置1を制御し、イメージセンサー3をホームポジション
へ戻して読取動作を終了する。駆動装置制御手段2で
は、移動動作の終了をホストコンピュータ7に通知す
る。またバッファメモリ制御手段6は読取対象画像12
の範囲を示すライン数をホストコンピュータ7に通知す
る。バッファメモリ5としては、アドレス指定をしてデ
ータを格納する汎用メモリや、アドレスを指定しないで
バッファするメモリ、たとえばFIFOメモリ(Fir
st in FirstOut メモリ)などを用いて
も構わない。ホストコンピュータ7は、バッファメモリ
制御手段6から有効ライン数と転送終了の情報を得るこ
とで、画像の組み立てを行うことができる。
The user places the image 12 to be read in the readable range 11 and starts the reading operation. That is, the host computer 7 issues a reading operation start command to the driving device control means 2 and the image sensor control means 4. Next, the drive device 1 is operated by the drive device control means 2, and the image sensor 3 is moved from the home position position by the set line unit. A control signal corresponding to the specifications of the image sensor 3 is sent from the image sensor control unit 4 to the image sensor 3, and the pixels are read from the image sensor 3 in a state where the light source of the image sensor 3 is turned off. 8 is transferred. The read line detecting means 8 compares the read pixels of the entire line with the pixels obtained in the previous line,
It is determined whether the image sensor 3 has reached the position where the image 12 to be read is placed. If it has not arrived, the controller controls the driving device control means 2 so that the image sensor 3 is continuously moved. Next, as a result of the comparison,
If it is determined that the image has reached the position where the image 12 to be read is located, the reading line detecting means 8 issues an instruction to perform a reading operation from this line to the image sensor control means 4 and the buffer memory control means 6. . The image sensor control unit 4 turns on the light source of the image sensor 3 and starts reading the image 12 to be read. The buffer memory control means 6 stores the read pixels in the buffer memory 5
Write to. Next, the image sensor 3 is driven by the driving device 1.
Moves to the next line. The image sensor control unit 4 turns off the light source of the image sensor 3, transfers the read pixel to the read line detection unit 8, compares the previous line pixel, and determines whether the image sensor 3 is within the range of the image 12 to be read. Judge. When it is determined that the image is within the range of the image to be read 12, the light source is turned on, and the reading operation for the image to be read 12 is performed. The above operation is repeated until the range of the image to be read 12 is exceeded. If it is determined that the image sensor 3 is not within the range of the image 12 to be read, the drive control means 2 controls the drive 1 while turning off the light source, returns the image sensor 3 to the home position, and ends the reading operation. I do. The drive control means 2 notifies the host computer 7 of the end of the moving operation. The buffer memory control means 6 stores the image to be read 12
Is notified to the host computer 7. As the buffer memory 5, a general-purpose memory for storing data by specifying an address, a memory for buffering without specifying an address, for example, a FIFO memory (File)
st in FirstOut memory) or the like may be used. The host computer 7 can assemble an image by obtaining information on the number of valid lines and the end of transfer from the buffer memory control unit 6.

【0019】図7は本発明の処理手順を示すフローチャ
ートである。以下に処理手順について詳細に説明する。
FIG. 7 is a flowchart showing the processing procedure of the present invention. Hereinafter, the processing procedure will be described in detail.

【0020】ホストコンピュータ7から読取動作開始の
コマンドが駆動装置制御手段2とイメージセンサー制御
手段4に与えられると、駆動装置制御手段2により解像
度に対応したラインのステップ数だけイメージセンサー
3を移動させる。光源を消灯した状態で読取面の画素を
読み取る。この画素の値をVdとする。イメージセンサ
ー制御手段4はラインの移動時間サイクル中にイメージ
センサー1の光源を消灯した状態のまま画素を読み出
し、1ライン分の画素を読取ライン検出手段8に転送す
る。このとき読み込んだ任意の画素の値をVdとする
と、読取可能範囲11に到達するまでにこの動作を行
う。Vdはすなわち読取面に何も置かない状態の画素値
である。読取可能範囲11に到達してから読み込んだ画
素の値をVd+nとすると、読み取ったライン上に読取
対象画像がある場合は読取対象画像によって二次光源が
遮断されるために、式(1)に示すような変化が生じ
る。
When a command for starting the reading operation is given from the host computer 7 to the drive control means 2 and the image sensor control means 4, the drive control means 2 moves the image sensor 3 by the number of steps of the line corresponding to the resolution. . The pixels on the reading surface are read with the light source turned off. Let the value of this pixel be Vd. The image sensor control unit 4 reads out the pixels while the light source of the image sensor 1 is turned off during the line movement time cycle and transfers the pixels for one line to the read line detection unit 8. Assuming that the value of an arbitrary pixel read at this time is Vd, this operation is performed until the readable range 11 is reached. Vd is a pixel value when nothing is placed on the reading surface. Assuming that the value of the pixel read after reaching the readable range 11 is Vd + n, if the read target image is on the read line, the secondary light source is blocked by the read target image. The following changes occur.

【0021】 Vd+n<Vd ……(1) Vs=Vd−Vd+n ……(2) Vp1≦Vs≦Vp2 ……(3) このとき読取ライン検出手段8はライン上に読取対象画
像12が存在することを通知し、イメージセンサー制御
手段4はイメージセンサー3の光源を点灯する。同時に
読取ライン検出手段8はバッファメモリ制御手段6に対
しても読み出した画素が有効であることを通知し、バッ
ファメモリ制御手段6よりバッファメモリ5に書き込み
タイミングを与え、イメージセンサー3から読み出した
画素をバッファメモリ5に一時的に格納する。このよう
に同位置ライン上で光源の消灯・点灯を繰り返し、消灯
時には読取対象画像の有無の検出を行い、点灯時には読
取対象画像の画素をバッファメモリに格納する操作を繰
り返す。
Vd + n <Vd (1) Vs = Vd−Vd + n (2) Vp1 ≦ Vs ≦ Vp2 (3) At this time, the read line detecting means 8 requires that the read target image 12 exists on the line. And the image sensor control means 4 turns on the light source of the image sensor 3. At the same time, the read line detecting means 8 also notifies the buffer memory control means 6 that the read pixels are valid, gives write timing to the buffer memory 5 from the buffer memory control means 6, and outputs the pixels read from the image sensor 3. Is temporarily stored in the buffer memory 5. In this manner, the light source is repeatedly turned off and turned on on the same position line, the presence or absence of the image to be read is detected when the light source is turned off, and the operation of storing the pixels of the image to be read in the buffer memory is repeated when turned on.

【0022】式(2)のVsの値は読取面に何も置かな
い状態(開放状態)の値Vdと、読取対象画像存在下の
値Vd+nの差であり、読取面に照射される外光の照度
に応じて変化が生じるので、Vsが式(3)で示すよう
に値Vp1と値Vp2の間に該当するかどうかを比較す
る。Vp1とVp2は外光の照度によって変更するパラ
メータである。
The value of Vs in the equation (2) is the difference between the value Vd when nothing is placed on the reading surface (open state) and the value Vd + n in the presence of the image to be read. Is changed according to the illuminance, and it is compared whether Vs falls between the value Vp1 and the value Vp2 as shown in the equation (3). Vp1 and Vp2 are parameters that change according to the illuminance of external light.

【0023】イメージセンサー3の位置が読取対象画像
12の範囲を逸脱した場合は、Vsの値が式(3)を満
足しないために、読取ライン検出手段8は駆動装置制御
手段2およびバッファメモリ制御手段6に読取動作終了
を通知する。駆動装置制御手段2はこの通知に基づいて
駆動装置1に対してイメージセンサー3をホームポジシ
ョンに戻す。バッファメモリ制御手段6はこの通知に基
づいてバッファメモリ5への書き込み動作を終了する。
バッファメモリ5がFiFo等の場合は、ホストコンピ
ュータ7からの読み出し動作をカウントし、有効ライン
数に達したならば、バッファメモリ制御手段6からホス
トコンピュータ7に対して終了通知を行う。また有効ラ
イン数の通知を行うことで、ホストコンピュータ7では
画像の組み立て処理をスムーズに行うことが可能とな
る。
When the position of the image sensor 3 deviates from the range of the image 12 to be read, the value of Vs does not satisfy the equation (3). The means 6 is notified of the end of the reading operation. The drive control means 2 returns the image sensor 3 to the home position with respect to the drive 1 based on this notification. The buffer memory control means 6 ends the write operation to the buffer memory 5 based on this notification.
When the buffer memory 5 is a FIFO or the like, the number of read operations from the host computer 7 is counted, and when the number of valid lines has been reached, the buffer memory control means 6 notifies the host computer 7 of completion. In addition, by notifying the number of valid lines, the host computer 7 can smoothly perform the image assembling process.

【0024】尚、VdとVd+1の比較は隣どうしのラ
インの比較ばかりでなく、例えば連続する3ラインで比
較する等も可能である。また、比較の精度がよくない場
合は、単純な比較の結果で判定するのではなく、値の偏
移(画素値変化の傾き)により判定することで良好な結
果を得ることが可能である。
The comparison between Vd and Vd + 1 is not limited to the comparison between adjacent lines, but may be performed, for example, on three consecutive lines. If the accuracy of the comparison is not good, a good result can be obtained by making a determination based on a value shift (slope of a pixel value change) instead of a determination based on a simple comparison result.

【0025】次に本発明の第2の実施の形態を図面を参
照しながら説明する。 (実施の形態2)図2は本発明の第2の実施の形態にお
ける構成図である。
Next, a second embodiment of the present invention will be described with reference to the drawings. (Embodiment 2) FIG. 2 is a configuration diagram in a second embodiment of the present invention.

【0026】図2において、9はイメージセンサー3の
読取対象画像12に対する有効な読取画素を検出する読
取画素検出手段である。読み取った画素が読取対象画像
12に該当するかどうかを判断する原理は、実施の形態
1と同じである。イメージセンサー3の主走査方向に対
して、第M画素から第N画素まで有効であるという情報
をバッファメモリ制御手段6に与え、画素をバッファメ
モリ5に書き込むとき、もしくはバッファメモリ5から
ホストコンピュータ7へ読み出すときのどちらかに対し
て制御を行うことで、主走査方向の有効画素のみをホス
トコンピュータ7へ転送する。さらに実施の形態1と同
じ手順により、読取ライン検出手段8により、有効なラ
インの画素のみを転送することで、読取対象画像12に
対する二次元的な有効画素だけをホストコンピュータ7
に転送することが可能となる。
In FIG. 2, reference numeral 9 denotes a read pixel detecting means for detecting an effective read pixel for the image 12 to be read by the image sensor 3. The principle of determining whether the read pixel corresponds to the read target image 12 is the same as in the first embodiment. Information is provided to the buffer memory control means 6 in the main scanning direction of the image sensor 3 to indicate that the pixel is effective from the Mth pixel to the Nth pixel, and the pixel is written to the buffer memory 5 or the buffer memory 5 By controlling either one of the reading operations, only the effective pixels in the main scanning direction are transferred to the host computer 7. Further, only the pixels of the valid line are transferred by the read line detecting means 8 in the same procedure as in the first embodiment, so that only the two-dimensional valid pixels for the image 12 to be read are transferred to the host computer 7.
Can be transferred to

【0027】図5は本発明におけるホストコンピュータ
7上の画素格納用メモリ領域を示すイメージ図である。
FIG. 5 is an image diagram showing a pixel storage memory area on the host computer 7 according to the present invention.

【0028】図5において、15はイメージセンサー3
における主走査方向の読取有効画素範囲を示す。
In FIG. 5, reference numeral 15 denotes the image sensor 3.
5 shows a read effective pixel range in the main scanning direction in FIG.

【0029】ユーザーが読取可能範囲11に読取対象画
像12を置いて画像読取装置が読取動作を開始する。す
なわち、ホストコンピュータ7が駆動装置制御手段2お
よびイメージセンサー制御手段4に対して、読取動作開
始のコマンドを発行する。次に駆動装置制御手段2によ
って、駆動装置1が作動し、イメージセンサー3をホー
ムポジション位置から設定されたライン単位で移動させ
る。イメージセンサー制御手段4から、イメージセンサ
ー3の仕様に応じた制御信号がイメージセンサー3に対
して送られ、イメージセンサー3の光源を消灯した状態
で、イメージセンサー3から1ライン分の画素を読み取
り、読取ライン検出手段8と読取画素検出手段9に転送
される。読取ライン検出手段8での動作は実施の形態1
と同様である。一方、読取画素検出手段9では、読み取
った画素の値の中で、隣合う画素どうしの値を比較する
ことで、読取対象画像12が置かれている主走査方向の
有効画素を検出する。一度検出すれば、イメージセンサ
ー3が読取対象画像の範囲にある限り、有効画素の情報
を保存しておき、バッファメモリ5に書き込むとき、あ
るいはバッファメモリ5からホストコンピュータ7へ読
み出すときのどちらかに、主走査方向に対する有効な画
素データを転送すればよい。バッファメモリ制御手段6
は読取対象画像12に対して検出した主走査方向の有効
画素の始点と終点をホストコンピュータ7に通知する。
この情報を元にホストコンピュータ7で画像の組み立て
を行うことができる。
The image reading apparatus starts the reading operation with the image to be read 12 placed in the readable range 11 by the user. That is, the host computer 7 issues a reading operation start command to the driving device control means 2 and the image sensor control means 4. Next, the drive device 1 is operated by the drive device control means 2, and the image sensor 3 is moved from the home position position by the set line unit. A control signal according to the specifications of the image sensor 3 is sent from the image sensor control unit 4 to the image sensor 3, and one line of pixels is read from the image sensor 3 with the light source of the image sensor 3 turned off. The data is transferred to the reading line detecting means 8 and the reading pixel detecting means 9. The operation of the reading line detecting means 8 is the same as that of the first embodiment.
Is the same as On the other hand, the read pixel detecting means 9 detects an effective pixel in the main scanning direction where the image 12 to be read is placed by comparing values of adjacent pixels among the read pixel values. Once detected, as long as the image sensor 3 is within the range of the image to be read, the information of the effective pixels is stored and either when writing to the buffer memory 5 or when reading from the buffer memory 5 to the host computer 7. , Effective pixel data in the main scanning direction may be transferred. Buffer memory control means 6
Notifies the host computer 7 of the start and end points of the effective pixels detected in the main scanning direction for the image 12 to be read.
An image can be assembled by the host computer 7 based on this information.

【0030】図8は本発明の第2の実施の形態における
処理手順を示すフローチャートである。
FIG. 8 is a flowchart showing a processing procedure according to the second embodiment of the present invention.

【0031】以下、処理手順について詳細に説明する。
読取ライン検出手段8によって、読取開始位置を検出す
る動作は実施の形態1と同様である。読取対象画像12
に対する読取開始ラインを検出した後、読取ライン検出
手段8は、読取画素検出手段9の動作を有効にする。す
なわち、読取画素検出手段9において、主走査方向に隣
合う画素の値を比較する。今、n番めの画素値をVnと
し、隣の画素値をVn−1、あるいはVn+1とする
と、 Vn<Vn−1 ……(4) Vn>Vn+1 ……(5) Vp1<Vn−1−Vn<Vp2 ……(6) Vp1≦Vn−Vn+1≦Vp2 ……(7) 式(4)で示された場合、n番めの画素が有効画素の始
点となり、式(5)で示された場合、n番めの画素が有
効画素の終点となる。これにより主走査方向の有効画素
を決める。Vp1とVp2は外光によって変わるパラメ
ータである。これらの情報はバッファメモリ制御手段6
に通知される。次にイメージセンサー3の光源を点灯
し、読み取った画素がバッファメモリ5へ転送される。
読取画素検出手段9によって検出された有効画素は、バ
ッファメモリ検出手段6の制御方法に従い、バッファメ
モリ5へ書き込むか、もしくは有効画素をバッファメモ
リ5からホストコンピュータ7に読み出す。以降の処理
は実施の形態1と同様である。バッファメモリ制御手段
6から、ホストコンピュータ7に対して、有効ライン
数、有効開始画素、有効終了画素を通知することで、ホ
ストコンピュータ7では画像の組み立て処理をスムーズ
に行うことが可能となる。
Hereinafter, the processing procedure will be described in detail.
The operation of detecting the reading start position by the reading line detecting means 8 is the same as in the first embodiment. Image 12 to be read
After detecting the read start line for the read line, the read line detecting means 8 enables the operation of the read pixel detecting means 9. That is, the read pixel detecting means 9 compares the values of pixels adjacent in the main scanning direction. Now, assuming that the n-th pixel value is Vn and the adjacent pixel value is Vn−1 or Vn + 1, Vn <Vn−1 (4) Vn> Vn + 1 (5) Vp1 <Vn−1− Vn <Vp2 (6) Vp1 ≦ Vn−Vn + 1 ≦ Vp2 (7) In the case of Expression (4), the n-th pixel is a starting point of an effective pixel, and is expressed by Expression (5). In this case, the n-th pixel is the end point of the effective pixel. This determines the effective pixels in the main scanning direction. Vp1 and Vp2 are parameters that change depending on external light. These information are stored in the buffer memory control means 6
Will be notified. Next, the light source of the image sensor 3 is turned on, and the read pixels are transferred to the buffer memory 5.
The valid pixels detected by the read pixel detecting means 9 are written to the buffer memory 5 or the valid pixels are read from the buffer memory 5 to the host computer 7 according to the control method of the buffer memory detecting means 6. Subsequent processing is the same as in the first embodiment. The buffer memory control unit 6 notifies the host computer 7 of the number of valid lines, the valid start pixel, and the valid end pixel, so that the host computer 7 can smoothly perform an image assembling process.

【0032】尚、VnとVn−1あるいはVn+1のよ
うな隣合う画素どうしの比較ばかりでなく、例えば連続
する3画素を1つのセットとし、隣合う3画素で比較す
る等も可能である。また、比較の精度がよくない場合
は、単純な比較の結果で判定するのではなく、値の偏移
(画素値変化の傾き)により判定することで良好な結果
を得ることが可能である。あるいは、読取ライン検出手
段と連動し、主走査方向と副走査方向の3×3の画素の
まとまりを一つの単位として比較することで、読取対象
画像の位置検出の精度が向上されることが可能である。
In addition to the comparison between adjacent pixels such as Vn and Vn-1 or Vn + 1, for example, it is possible to make three consecutive pixels into one set and compare the three adjacent pixels. If the accuracy of the comparison is not good, a good result can be obtained by making a determination based on a value shift (slope of a pixel value change) instead of a determination based on a simple comparison result. Alternatively, the accuracy of position detection of the image to be read can be improved by comparing a set of 3 × 3 pixels in the main scanning direction and the sub-scanning direction as one unit in conjunction with the reading line detection unit. It is.

【0033】[0033]

【発明の効果】以上のように本発明によれば、ユーザー
は読取可能範囲内であれば、読取対象画像の位置を気に
する必要なく、自由に置いて、画像の読み取りを行うこ
とができる。
As described above, according to the present invention, the user can freely read an image within the readable range without worrying about the position of the image to be read. .

【0034】また、画像の有効範囲に応じたメモリ格納
処理が行われるためにメモリへの無効なデータ転送がな
くなり、ソフトウェア処理による画像の切り出し処理を
不要とし、画像処理の総合的な速度の向上が期待できる
画像読取装置を提供することができる。またユーザーか
らは自動的に画像の位置を検出して読取動作を行ってい
るように見えるために、ユーザーインタフェースの向上
が図られる。
Further, since the memory storage processing according to the effective range of the image is performed, invalid data transfer to the memory is eliminated, so that the image clipping processing by software processing becomes unnecessary, and the overall speed of image processing is improved. Can be provided. In addition, the user can automatically detect the position of the image and perform a reading operation, thereby improving the user interface.

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

【図1】本発明の第1の実施の形態における構成図FIG. 1 is a configuration diagram according to a first embodiment of the present invention.

【図2】本発明の第2の実施の形態における構成図FIG. 2 is a configuration diagram according to a second embodiment of the present invention.

【図3】従来の画像読取装置の構成図FIG. 3 is a configuration diagram of a conventional image reading apparatus.

【図4】本発明の第1の実施の形態における画素格納用
メモリ領域を示すイメージ図
FIG. 4 is an image diagram showing a memory area for storing pixels according to the first embodiment of the present invention;

【図5】本発明の第2の実施の形態における画素格納用
メモリ領域を示すイメージ図
FIG. 5 is an image diagram showing a pixel storage memory area according to the second embodiment of the present invention;

【図6】従来の画像読取装置における画素格納用メモリ
領域を示すイメージ図
FIG. 6 is an image diagram showing a memory area for storing pixels in a conventional image reading apparatus.

【図7】本発明の第1の実施の形態における処理手順を
示したフローチャート
FIG. 7 is a flowchart showing a processing procedure according to the first embodiment of the present invention;

【図8】本発明の第2の実施の形態における処理手順を
示したフローチャート
FIG. 8 is a flowchart showing a processing procedure according to the second embodiment of the present invention;

【図9】従来の画像処理装置の処理手順を示したフロー
チャート
FIG. 9 is a flowchart showing a processing procedure of a conventional image processing apparatus.

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

1 駆動装置 2 駆動装置制御手段 3 イメージセンサー 4 イメージセンサー制御手段 5 バッファメモリ 6 バッファメモリ制御手段 7 ホストコンピュータ 8 読取ライン検出手段 9 読取画素検出手段 11 読取可能範囲 12 読取対象画像 13 ホストコンピュータ上の画素格納用メモリ領域 14 読取有効ライン範囲 15 読取有効画素範囲 16 ホストコンピュータで指定された読取ライン範囲 REFERENCE SIGNS LIST 1 drive device 2 drive device control means 3 image sensor 4 image sensor control means 5 buffer memory 6 buffer memory control means 7 host computer 8 read line detection means 9 read pixel detection means 11 readable range 12 image to be read 13 on host computer Memory area for pixel storage 14 Effective read line range 15 Effective read pixel range 16 Read line range specified by host computer

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】イメージセンサー等のラインセンサーを使
用した画像読取装置において、イメージセンサーを同一
ラインで静止させた状態で光源を消灯・点灯するイメー
ジセンサー制御手段と、前記イメージセンサーの副走査
方向に対して、読取対象画像の読取開始ラインと読取終
了ラインを検出する読取ライン検出手段と、前記読取ラ
イン検出手段に連動してイメージセンサーの位置制御を
行う駆動装置制御手段と、前記読取ライン検出手段によ
って読取開始ラインか読取終了ラインまで読み取った画
素を一時的に格納するバッファメモリと、前記バッファ
メモリの書き込みと読み出しを制御するバッファメモリ
制御手段を備えたことを特徴とする画像読取装置。
In an image reading apparatus using a line sensor such as an image sensor, an image sensor control means for turning off and on a light source while the image sensor is stationary on the same line, and in a sub-scanning direction of the image sensor. On the other hand, read line detecting means for detecting a read start line and a read end line of an image to be read, drive control means for controlling the position of an image sensor in conjunction with the read line detect means, and read line detect means An image reading apparatus comprising: a buffer memory for temporarily storing pixels read up to a read start line or a read end line, and buffer memory control means for controlling writing and reading of the buffer memory.
【請求項2】イメージセンサーの主走査方向に対して、
読取対象画像に対応する読取開始画素と読取終了画素を
検出する読取画素検出手段と、前記読取画素検出手段に
連動して有効画素をバッファメモリに格納、もしくは前
記バッファメモリからの読み出しを制御するバッファメ
モリ制御手段を備えたことを特徴とする請求項1に記載
の画像読取装置。
2. The image sensor according to claim 1, wherein:
Read pixel detection means for detecting a read start pixel and a read end pixel corresponding to an image to be read, and a buffer for storing effective pixels in a buffer memory in conjunction with the read pixel detection means or for controlling reading from the buffer memory The image reading device according to claim 1, further comprising a memory control unit.
JP9289409A 1997-10-22 1997-10-22 Image reading device Pending JPH11127311A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9289409A JPH11127311A (en) 1997-10-22 1997-10-22 Image reading device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9289409A JPH11127311A (en) 1997-10-22 1997-10-22 Image reading device

Publications (1)

Publication Number Publication Date
JPH11127311A true JPH11127311A (en) 1999-05-11

Family

ID=17742875

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9289409A Pending JPH11127311A (en) 1997-10-22 1997-10-22 Image reading device

Country Status (1)

Country Link
JP (1) JPH11127311A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004062903A (en) * 2003-07-28 2004-02-26 Hitachi Ltd Personal authentication device
US7352448B2 (en) 2000-09-20 2008-04-01 Hitachi, Ltd. Personal identification system
JP2012054758A (en) * 2010-09-01 2012-03-15 Ricoh Co Ltd Image reading apparatus and image forming apparatus
US8384885B2 (en) 2000-09-20 2013-02-26 Hitachi, Ltd. Personal identification system

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7352448B2 (en) 2000-09-20 2008-04-01 Hitachi, Ltd. Personal identification system
US7612875B2 (en) 2000-09-20 2009-11-03 Hitachi, Ltd. Personal identification system
US7671977B2 (en) 2000-09-20 2010-03-02 Hitachi, Ltd. Personal identification system
US7864306B2 (en) 2000-09-20 2011-01-04 Hitachi, Ltd. Personal identification system
US8149393B2 (en) 2000-09-20 2012-04-03 Hitachi, Ltd. Personal identification system
US8384885B2 (en) 2000-09-20 2013-02-26 Hitachi, Ltd. Personal identification system
US8767195B2 (en) 2000-09-20 2014-07-01 Hitachi, Ltd. Personal identification system
JP2004062903A (en) * 2003-07-28 2004-02-26 Hitachi Ltd Personal authentication device
JP2012054758A (en) * 2010-09-01 2012-03-15 Ricoh Co Ltd Image reading apparatus and image forming apparatus

Similar Documents

Publication Publication Date Title
JPH05252379A (en) Image processor
JP2000349984A (en) Image reading device and image processing device
JP2000276578A (en) Image capture device having scan mode switching and / or reversal function
JPH11127311A (en) Image reading device
KR910000203B1 (en) Picture processing apparatus
US10817166B2 (en) Information processing apparatus, method of controlling information processing apparatus, and recording medium
US6934058B2 (en) Image reading apparatus and method with reading suspension and resumption based on memory characteristics
JP3274334B2 (en) Image scanner and control method thereof
CN110072032B (en) image processing device
KR100517892B1 (en) How to scan quickly of scaner
JP2717282B2 (en) Document reading device control method
JPH10225184A (en) Motor control device and storage medium
EP0315061A2 (en) Method of reading and displaying an image in an information filing apparatus
JP3312958B2 (en) Electronic filing equipment
JP4435840B2 (en) Image reading apparatus, image reading method, and storage medium
JPH0546343A (en) Electronic filing device
JP2000050053A (en) Image reading device
JPH11134351A (en) Electronic book display control device
JPH07254061A (en) Dma transfer device for image processor
KR19990009437A (en) Monitor unit with scanner function
JPH1132172A (en) Image reading device
JPH06217087A (en) Image reader
JPH0140755B2 (en)
JP2000307829A (en) Image reading device
JPS6243262A (en) Electronic file system