JP2002027207A - Image reader, controlling method therefor, memory medium with stored control procedure therefor and data structure for coding and transmitting computer program signals - Google Patents

Image reader, controlling method therefor, memory medium with stored control procedure therefor and data structure for coding and transmitting computer program signals

Info

Publication number
JP2002027207A
JP2002027207A JP2000202601A JP2000202601A JP2002027207A JP 2002027207 A JP2002027207 A JP 2002027207A JP 2000202601 A JP2000202601 A JP 2000202601A JP 2000202601 A JP2000202601 A JP 2000202601A JP 2002027207 A JP2002027207 A JP 2002027207A
Authority
JP
Japan
Prior art keywords
data
procedure
sensor unit
reliability
focus
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
JP2000202601A
Other languages
Japanese (ja)
Inventor
Nobuhiro Fujinawa
展宏 藤縄
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.)
Nikon Corp
Original Assignee
Nikon Corp
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 Nikon Corp filed Critical Nikon Corp
Priority to JP2000202601A priority Critical patent/JP2002027207A/en
Publication of JP2002027207A publication Critical patent/JP2002027207A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide an image reader capable of quickly detect the reliability for evaluation of the focus adjusting condition, a controlling method for image readers, a memory medium having stored control procedure for image readers and a data structure for coding and transmitting computer program signals. SOLUTION: An optical sensor unit moving by driving a focus mechanism outputs data of each optical image. The data are taken in to extract contrast data of each optical image therefrom, and the contrast data are compared to evaluate the focus adjusting condition between a manuscript and the sensor unit. Smoothed data of each optical image are extracted from the data of each optical image, and the dispersion among the extracted smoothed data is obtained as an index showing the reliability of the evaluation. The evaluation reliability is quickly detected, using the data of the optical images.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、フィルムなどの原
稿に読取光を照射してその原稿上の画像を光学的に読み
取る画像読取装置、画像読取装置に対する制御方法、画
像読取装置に対する制御手順を記憶した記憶媒体、及び
コンピュータプログラム信号を符号化して伝送するため
のデータ構造に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image reading apparatus for optically reading an image on a document by irradiating a document such as a film with reading light, a control method for the image reading apparatus, and a control procedure for the image reading apparatus. The present invention relates to a stored storage medium and a data structure for encoding and transmitting a computer program signal.

【0002】[0002]

【従来の技術】一般に、銀塩カメラで撮影したフィルム
などの原稿上の画像を、ディジタル化してコンピュータ
に取り込む際には、フィルムスキャナ(画像読取装置)
が使用される。画像読取装置による読み取りが可能な原
稿の種類には、ストリップフィルム、APSフィルム、
スライドマウントなどがあり、これらはそれぞれの専用
アダプタにより保持された状態で、画像読取装置に装填
される。
2. Description of the Related Art Generally, when an image on a document such as a film taken by a silver halide camera is digitized and taken into a computer, a film scanner (image reading device) is used.
Is used. The types of documents that can be read by the image reading device include a strip film, an APS film,
There are slide mounts and the like, which are loaded into the image reading device while being held by respective dedicated adapters.

【0003】図8は、画像読取装置内の様子を示す図で
ある。画像読取装置内には、原稿81上を読取光によっ
て走査するための光学センサユニット83が備えられ
る。光学センサユニット83は、原稿81上をライン状
に照明する読取光を出射する照明光学系と、原稿81上
の読取光の照射領域を挟みその照明光学系と対向する位
置に配置されたラインセンサとを有している。
FIG. 8 is a diagram showing a state inside the image reading apparatus. An optical sensor unit 83 for scanning the original 81 with the reading light is provided in the image reading apparatus. The optical sensor unit 83 includes an illumination optical system that emits reading light that illuminates the original 81 in a line shape, and a line sensor that is disposed at a position opposite to the illumination optical system with the irradiation area of the reading light on the original 81 interposed therebetween. And

【0004】個々の原稿81では、画像記憶領域8Eの
位置(原稿81の乳剤面の形成されている厚さ方向の位
置)が、製造元の相違や、製造のばらつき、さらには保
管状態の相違などによって異なるので、画像読取装置で
は、原稿81が装填される毎に、画像記憶領域8Eの全
体を読み取る画像読み取り処理に先立ち、カム機構等を
使用したフォーカス機構によって光学センサユニット8
3の全体を焦点調節方向に動かすことで、画像記憶領域
8E上に光学センサユニット83の焦点を合致させる
「焦点調節」が行われる。
In each of the originals 81, the position of the image storage area 8E (the position in the thickness direction where the emulsion surface of the original 81 is formed) differs depending on the manufacturer, the manufacturing variation, and the storage state. Therefore, in the image reading apparatus, each time the document 81 is loaded, prior to the image reading process for reading the entire image storage area 8E, the optical sensor unit 8 is provided by a focus mechanism using a cam mechanism or the like.
By moving the whole of 3 in the focus adjustment direction, “focus adjustment” for matching the focus of the optical sensor unit 83 on the image storage area 8E is performed.

【0005】焦点調節に当たっては、先ず、読取光の照
射領域が原稿81の中央に位置するような状態を保つと
共に、光学センサユニット83を焦点調節方向の各位置
(サンプリングポイント)に移動させ、各サンプリング
ポイントの焦点調節状態を示すデータとして、各サンプ
リングポイントにおいてラインセンサが出力する輝度デ
ータをそれぞれ取得する。なお、実際に焦点調節状態を
示すデータとして使用されるのは、1ライン分の輝度デ
ータのうち、原稿81の中央近傍のフォーカス対象範囲
8e(図9参照)に対応するデータ(以下、フォーカス
対象範囲8eに対応する輝度データを「ラインデータ」
という。)である。
In the focus adjustment, first, while maintaining the state where the irradiation area of the reading light is located at the center of the original 81, the optical sensor unit 83 is moved to each position (sampling point) in the focus adjustment direction. As data indicating the focus adjustment state of the sampling point, luminance data output by the line sensor at each sampling point is obtained. The data actually used as the data indicating the focus adjustment state is data corresponding to the focus target range 8e (see FIG. 9) near the center of the document 81 among the luminance data for one line (hereinafter referred to as focus target). The luminance data corresponding to the range 8e is “line data”
That. ).

【0006】ここで、合焦状態のサンプリングポイント
(フォーカスポイント)において得られるラインデータ
には、絵柄の濃度分布を示す低周波成分(大まかな凹
凸)が現れると共に、原稿81上の個々の粒子を示す高
周波成分(細かな凹凸)までもがはっきりと現れるの
で、一般にコントラストが高い。一方、非合焦状態のサ
ンプリングポイント(デフォーカスポイント)において
得られるラインデータには、絵柄を示す低周波成分は現
れるものの、原稿81上の個々の粒子を示す高周波成分
までは現れないので、一般にコントラストが低い。
Here, low-frequency components (rough irregularities) indicating the density distribution of a picture appear in line data obtained at a sampling point (focus point) in a focused state, and individual particles on the original 81 are removed. Since even the high-frequency components (fine irregularities) shown clearly appear, the contrast is generally high. On the other hand, in the line data obtained at the sampling point (defocus point) in the out-of-focus state, although a low-frequency component indicating a picture appears, but a high-frequency component indicating an individual particle on the document 81 does not appear. Low contrast.

【0007】そこで、画像読取装置では、各サンプリン
グポイントにおける各ラインデータからそれぞれコント
ラストデータ(例えば隣接画素同士の差分の絶対値の総
和)を抽出し、コントラストデータが最も高くなるよう
なサンプリングポイントをフォーカスポイントであると
認識し、そのフォーカスポイントまで光学センサユニッ
ト83を移動させることで、焦点調節処理を完了する。
Therefore, the image reading apparatus extracts contrast data (for example, the sum of absolute values of differences between adjacent pixels) from each line data at each sampling point, and focuses on the sampling point at which the contrast data becomes highest. The focus adjustment process is completed by recognizing the point and moving the optical sensor unit 83 to the focus point.

【0008】[0008]

【発明が解決しようとする課題】ところで、原稿81上
のフォーカス対象範囲8eの位置は、光学センサユニッ
ト83の移動に伴う機械的なガタや傾きにより、サンプ
リングポイント毎に微妙にずれる。また、原稿81のフ
ォーカス対象範囲8eのサイズは、読取光の光束を一定
に保つことが困難であることに起因して、サンプリング
ポイント毎に若干異なる(なお、図10(a)(b)
は、異なるサンプリングポイントの原稿81’、81”
上のそれぞれのフォーカス対象範囲8e’8e”を示し
ている。)。
By the way, the position of the focus target range 8e on the document 81 is slightly shifted for each sampling point due to mechanical play or inclination accompanying the movement of the optical sensor unit 83. In addition, the size of the focus target range 8e of the document 81 is slightly different for each sampling point due to the difficulty in keeping the light flux of the reading light constant (see FIGS. 10A and 10B).
Are originals 81 'and 81 "at different sampling points.
The respective upper focus target ranges 8e'8e "are shown.)

【0009】仮に、原稿81上の画像が、図9に示すよ
うに副走査方向に急峻に濃度が変化する幾何学模様であ
り、かつフォーカス対象範囲8eが濃度の境界域(以
下、「濃度境界域」という。)の近傍に位置したとす
る。
[0009] Assuming that the image on the original 81 is a geometric pattern in which the density changes sharply in the sub-scanning direction as shown in FIG. Area).).

【0010】このとき行われる焦点調節処理では、フォ
ーカス対象範囲8eの位置又はサイズが少しでも変化す
ると、サンプリングポイント毎に、ラインデータが示す
ところの絵柄が変化してしまう。そして互いに異なる絵
柄から得たコントラストデータの大小関係は、各絵柄の
コントラストの大小関係を示しているのか、それとも焦
点調節状態の大小関係を示しているのか峻別できない。
In the focus adjustment process performed at this time, if the position or size of the focus target range 8e changes even a little, the picture indicated by the line data changes for each sampling point. The magnitude relationship between contrast data obtained from mutually different pictures cannot be distinguished as to whether it represents the magnitude relation of the contrast of each picture or the magnitude relation of the focus adjustment state.

【0011】この結果、焦点調節処理が失敗に終わる可
能性が生じる。事実、フォーカス対象範囲8eが濃度境
界域(図9参照)に位置している場合には、フォーカス
対象範囲8eに含まれる絵柄が黒領域と白領域が均等に
含まれる絵柄となったり、単一濃度の絵柄となったり、
2つの濃度が均等に含まれる絵柄となったり、2つの濃
度が非均等に含まれる絵柄となったりし、このように異
なる絵柄のコントラストデータは、たとえそれらが同じ
焦点調節状態のサンプリングポイントにおいて得られた
ものであったとしても、異なる値となる。
As a result, there is a possibility that the focus adjustment processing will fail. In fact, when the focus target range 8e is located in the density boundary area (see FIG. 9), the pattern included in the focus target range 8e becomes a pattern in which the black area and the white area are equally included, or a single pattern. It becomes a pattern of concentration,
A pattern in which two densities are included evenly, or a pattern in which two densities are non-uniformly displayed, such that contrast data of different patterns are obtained even at the sampling point where they are in the same focusing state. However, even if they have been done, they will have different values.

【0012】因みに、図11に示す各種のラインデータ
は、何れも合焦状態において得られたラインデータであ
るが、それぞれ異なる絵柄を示すので、低周波成分の出
現の仕方が異なる。しかも、この図11では、個々の粒
子を示す高周波成分の出現の仕方まで異なっている。し
たがって、コントラストデータに基づく焦点調節処理に
失敗の可能性が生じるのは明白である。
Incidentally, the various line data shown in FIG. 11 are all line data obtained in a focused state, but since they show different patterns, the appearance of low frequency components is different. Moreover, in FIG. 11, the appearance of high-frequency components representing individual particles is different. Therefore, it is clear that the focus adjustment processing based on the contrast data may fail.

【0013】したがって、従来は、原稿81の画像に濃
度境界域が存在するような場合、フォーカス対象範囲8
eが濃度境界域に位置して焦点調節処理を失敗に終わら
せることがあった。そして焦点調節処理の失敗が確認さ
れるのは、画像読み取り処理が完了した後にモニタなど
の表示器に表示された画像がボケているのを操作者が見
たときである。
Therefore, conventionally, when a density boundary area exists in the image of the original 81, the focus target area 8
In some cases, e was located in the density boundary area, causing the focus adjustment process to fail. The failure of the focus adjustment processing is confirmed when the operator sees that the image displayed on the display such as the monitor is blurred after the image reading processing is completed.

【0014】なお、従来の焦点調節処理の中には、焦点
調節状態の評価の信頼性を高めるために原稿81上のフ
ォーカス対象範囲8eを複数箇所に増加させたものもあ
るが、これでは焦点調節処理の時間をその増加した分だ
け常に余計に要すため、非効率的である。そこで本発明
は、焦点調節状態の評価の信頼度を迅速に検知できる画
像読取装置、画像読取装置に対する制御方法、画像読取
装置に対する制御手順を記憶した記憶媒体、及びコンピ
ュータプログラム信号を符号化して伝送するためのデー
タ構造を提供することを目的とする。
In some conventional focus adjustment processing, the focus target range 8e on the document 81 is increased to a plurality of places in order to increase the reliability of evaluation of the focus adjustment state. This is inefficient because the time required for the adjustment process is always extra by the increased amount. Therefore, the present invention provides an image reading device capable of quickly detecting the reliability of evaluation of a focus adjustment state, a control method for the image reading device, a storage medium storing a control procedure for the image reading device, and encoding and transmitting a computer program signal. It is intended to provide a data structure for performing

【0015】特に、請求項2、請求項6、請求項10に
記載の発明は、焦点調節状態の評価の信頼度をより迅速
に検知することを目的とし、請求項3、請求項7、請求
項11に記載の発明は、画像読取装置の信頼性を向上さ
せることを目的とし、請求項4、請求項8、請求項12
に記載の発明は、画像読取装置のハードウエア部分の変
更をきたすことなく焦点調節の精度を向上させることを
目的とする。
In particular, the invention according to claims 2, 6, and 10 aims at detecting the reliability of the evaluation of the focus adjustment state more quickly, and it is intended that the invention be described in claims 3, 7, and 10. An object of the present invention is to improve the reliability of an image reading apparatus, and it is an object of the present invention to improve the reliability of an image reading apparatus.
An object of the invention described in (1) is to improve the accuracy of focus adjustment without changing the hardware of the image reading apparatus.

【0016】[0016]

【課題を解決するための手段】請求項1に記載の画像読
取装置は、原稿に対して読取光を照射すると共に、その
原稿における前記読取光の照射領域を透過又は反射した
光がなす光学像を検出する光学センサユニットと、前記
原稿と前記光学センサユニットとの位置関係を焦点調節
方向に変化させるフォーカス機構と、前記フォーカス機
構の駆動によって変化する各前記位置関係の下で前記光
学センサユニットが検出する各光学像のデータを取り込
むサンプリング手段と、前記サンプリング手段が検出す
る各光学像のデータから各光学像のコントラストデータ
を抽出して比較することによって、前記原稿と前記光学
センサユニットとの間の焦点調節状態を評価する焦点検
出手段とを備えた画像読取装置であって、前記各光学像
のデータから各光学像の平滑化データを抽出すると共
に、前記焦点検出手段による前記評価の信頼度を示す指
標として、抽出した各平滑化データ間のばらつきを取得
する信頼度取得手段を備えたことをを特徴とする。
An image reading apparatus according to claim 1, which irradiates a document with reading light and forms an optical image formed by light transmitted or reflected by an irradiation area of the document with the reading light. An optical sensor unit for detecting the position, a focus mechanism for changing the positional relationship between the original and the optical sensor unit in the focus adjustment direction, and the optical sensor unit under each of the positional relationships changed by driving the focus mechanism. A sampling unit that captures the data of each optical image to be detected, and a contrast data of each optical image extracted from the data of each optical image detected by the sampling unit and compared to extract the data between the original and the optical sensor unit. And a focus detection unit for evaluating a focus adjustment state of the optical image. The image processing apparatus further includes a reliability acquisition unit that extracts smoothed data of an image and acquires a variation between the extracted smoothed data as an index indicating the reliability of the evaluation by the focus detection unit. .

【0017】上記各平滑化データ間のばらつきは、各光
学像の絵柄の変化のばらつきを示し、そのばらつきの大
きさによって評価の信頼度が変わる。このような平滑化
データ間のばらつきを取得する信頼度取得手段は、焦点
検出手段による評価の信頼度を確実に検知することがで
きる。さらに、その取得は、サンプリング手段がコント
ラストデータを抽出するために取得した光学像のデータ
を利用して行われる。
The variations among the smoothed data indicate variations in changes in the design of each optical image, and the reliability of the evaluation changes depending on the magnitude of the variations. The reliability acquiring means for acquiring such a variation between the smoothed data can reliably detect the reliability of the evaluation by the focus detecting means. Further, the acquisition is performed using the data of the optical image acquired by the sampling means to extract the contrast data.

【0018】したがって、この画像読取装置では、焦点
調節状態の評価の信頼度を、焦点検出手段が実際に評価
を行うよりも前に、迅速に検知することができる。請求
項2に記載の画像読取装置は、請求項1に記載の画像読
取装置において、前記信頼度取得手段は、前記平滑化デ
ータとして平坦化データを抽出するものである。
Therefore, in the image reading apparatus, the reliability of the evaluation of the focus adjustment state can be quickly detected before the focus detection means actually performs the evaluation. According to a second aspect of the present invention, in the image reading apparatus according to the first aspect, the reliability acquiring unit extracts flattened data as the smoothed data.

【0019】先ず、信頼度を取得するために最低限必要
な情報は、各光学像の「絵柄」それ自体ではなく、各光
学像における「絵柄のばらつき」であるので、平滑化値
は、異なる光学像間における絵柄の相違が現れるような
値であり、かつできるだけ簡単な演算で求められる値で
あることが望ましい。その点、平坦化値は、光学像のデ
ータのうち周期成分がすべて除去された非周期成分の大
きさを示す値であって、絵柄の相違を表す一方で、各画
素値の平均値(又は各画素値の総和)により極めて簡単
に求められるので好適である。
First, the minimum information required to obtain the reliability is not the "picture" of each optical image itself but the "variation of the picture" in each optical image. It is desirable that the value be a value that causes a difference in the picture between the optical images, and that the value be obtained by a calculation as simple as possible. In this regard, the flattening value is a value indicating the magnitude of the non-periodic component from which all the periodic components have been removed from the data of the optical image, and represents the difference in the picture, while the average value of each pixel value (or This is preferable because it can be obtained extremely easily by the sum of the pixel values.

【0020】したがって、この画像読取装置では、焦点
調節状態の評価の信頼度をより迅速に検知することがで
きる。請求項3に記載の画像読取装置は、請求項1又は
請求項2に記載の画像読取装置において、情報を外部に
報知する報知手段を更に備え、前記信頼度取得手段は、
前記取得したばらつきと所定値とを比較して、そのばら
つきがその所定値よりも高い場合、前記焦点検出手段に
よる評価の信頼度が不十分であるとみなし、前記報知手
段に対しその旨報知するよう指示する判断手段を有する
ことを特徴とする。
Therefore, the image reading apparatus can more quickly detect the reliability of the evaluation of the focus adjustment state. The image reading device according to a third aspect is the image reading device according to the first or second aspect, further comprising a notifying unit that notifies information to the outside, and the reliability obtaining unit includes:
The obtained variation is compared with a predetermined value, and if the variation is higher than the predetermined value, it is considered that the reliability of the evaluation by the focus detection unit is insufficient, and the notification unit is notified to that effect. It is characterized by having a judgment means for giving an instruction to the user.

【0021】したがって、操作者は、報知手段による報
知がなされない限りは、焦点検出手段による評価が適正
に行われているとみなせる。したがって、その評価に基
づいて動作する画像読取装置の信頼性は向上する。請求
項4に記載の画像読取装置は、請求項1又は請求項2に
記載の画像読取装置において、前記原稿と前記光学セン
サユニットとの位置関係を、前記照射領域により前記原
稿上が走査されるような方向に変化させるスキャン機構
を更に備え、前記信頼度取得手段は、前記取得したばら
つきと所定値とを比較して、そのばらつきがその所定値
よりも高い場合、前記スキャン機構を駆動して前記原稿
上における前記照射領域の位置を変更した上で、前記サ
ンプリング手段を再動作させる判断手段を有することを
を特徴とする。
Therefore, the operator can regard that the evaluation by the focus detection means is properly performed unless the notification is made by the notification means. Therefore, the reliability of the image reading device that operates based on the evaluation is improved. According to a fourth aspect of the present invention, in the image reading apparatus according to the first or second aspect, the positional relationship between the document and the optical sensor unit is scanned on the document by the irradiation area. Further comprising a scanning mechanism for changing in such a direction, the reliability acquiring means compares the acquired variation with a predetermined value, and drives the scanning mechanism when the variation is higher than the predetermined value. It is characterized in that it has a judging means for re-operating the sampling means after changing the position of the irradiation area on the document.

【0022】このように照射領域の位置を移動させれ
ば、たとえ1回目のサンプリング手段の動作中に照射領
域が濃度境界域(一般に焦点調節状態の評価を困難とす
る)上に位置していたとしても、再動作においてはその
濃度境界域から外すことができる。このように必要に応
じて再動作が行われる結果、焦点調節の精度は向上す
る。しかも、判断手段による比較、照射領域の位置の変
更、再動作の指示は、何れもソフトウエア上の処理によ
って実現可能である。
If the position of the irradiation area is moved in this manner, the irradiation area is located on the density boundary area (generally making it difficult to evaluate the focus adjustment state) even during the first operation of the sampling means. However, in the re-operation, it can be removed from the density boundary area. As a result of performing the re-operation as needed, the accuracy of the focus adjustment is improved. Moreover, the comparison by the determination means, the change of the position of the irradiation area, and the instruction of the re-operation can all be realized by processing on software.

【0023】したがって、画像読取装置内のハードウエ
ア部分に変更をきたすことなく焦点調節の精度を向上さ
せるこができる。請求項5に記載の画像読取装置に対す
る制御方法は、原稿に対して読取光を照射すると共に、
その原稿における前記読取光の照射領域を透過又は反射
した光がなす光学像を検出する光学センサユニットと、
前記原稿と前記光学センサユニットとの位置関係を焦点
調節方向に変化させるフォーカス機構とを備えた画像読
取装置に対する制御方法であって、前記フォーカス機構
の駆動によって変化する各前記位置関係の下で前記光学
センサユニットが検出する各光学像のデータを取り込む
サンプリング手順と、前記サンプリング手順において取
り込まれた各光学像のデータから各光学像のコントラス
トデータを抽出して比較することによって、前記原稿と
前記光学センサユニットとの間の焦点調節状態を評価す
る焦点検出手順と、前記各光学像のデータから各光学像
の平滑化データを抽出すると共に、前記焦点検出手順に
よる前記評価の信頼度を示す指標として、抽出した各平
滑化データ間のばらつきを取得する信頼度取得手順とを
有することを特徴とする。
Therefore, it is possible to improve the accuracy of focus adjustment without changing the hardware in the image reading apparatus. A control method for an image reading apparatus according to claim 5 irradiates a reading light to a document,
An optical sensor unit that detects an optical image formed by light transmitted or reflected by the irradiation area of the reading light on the original,
A focus mechanism for changing a positional relationship between the document and the optical sensor unit in a focus adjustment direction, the control method for an image reading apparatus, wherein the The original and the optical system are extracted by comparing a sampling procedure for capturing data of each optical image detected by the optical sensor unit and contrast data of each optical image from the data of each optical image captured in the sampling procedure. A focus detection procedure for evaluating the focus adjustment state between the sensor unit and extracting the smoothed data of each optical image from the data of each optical image, as an index indicating the reliability of the evaluation by the focus detection procedure. And a reliability obtaining procedure for obtaining a variation between the extracted smoothed data. To.

【0024】請求項6に記載の画像読取装置に対する制
御方法は、請求項5に記載の画像読取装置に対する制御
方法において、前記信頼度取得手順は、前記平滑化デー
タとして平坦化データを抽出する手順であることを特徴
とする。請求項7に記載の画像読取装置に対する制御方
法は、請求項5に記載の光学センサユニット及びフォー
カス機構を備えると共に、情報を外部に報知する報知手
段を更に備えた画像読取装置に対する制御方法であっ
て、請求項5に記載のサンプリング手順及び焦点検出手
順と、請求項5又は請求項6に記載の信頼度取得手順と
を有し、前記信頼度取得手順には、前記取得したばらつ
きと所定値とを比較して、そのばらつきがその所定値よ
りも高い場合、前記焦点検出手順による評価の信頼度が
不十分であるとみなし、前記報知手段に対しその旨報知
するよう指示する判断手順が含まれることを特徴とす
る。
According to a sixth aspect of the present invention, in the control method of the image reading apparatus according to the fifth aspect, the reliability obtaining step includes extracting flattened data as the smoothed data. It is characterized by being. A control method for an image reading apparatus according to a seventh aspect is a control method for an image reading apparatus including the optical sensor unit and the focus mechanism according to the fifth aspect, and further including a notifying unit for notifying information to the outside. And a focus detection procedure according to claim 5, and a reliability acquisition procedure according to claim 5 or 6, wherein the reliability acquisition procedure includes the acquired variation and a predetermined value. If the variation is higher than the predetermined value, it is considered that the reliability of the evaluation by the focus detection procedure is insufficient, and a determination procedure for instructing the notification means to notify the user is included. It is characterized by being performed.

【0025】請求項8に記載の画像読取装置に対する制
御方法は、請求項5に記載の光学センサユニット及びフ
ォーカス機構を備えると共に、前記原稿と前記光学セン
サユニットとの位置関係を、前記照射領域により前記原
稿上が走査されるような方向に変化させるスキャン機構
を更に備えた画像読取装置に対する制御方法であって、
請求項5に記載のサンプリング手順及び焦点検出手順
と、請求項5又は請求項6に記載の信頼度取得手順とを
有し、前記信頼度取得手順には、前記取得したばらつき
と所定値とを比較して、そのばらつきがその所定値より
も高い場合、前記スキャン機構を駆動して前記原稿上に
おける前記照射領域の位置を変更した上で前記サンプリ
ング手順を再実行させる判断手順が含まれることを特徴
とする。
[0025] A control method for an image reading apparatus according to an eighth aspect includes the optical sensor unit and the focus mechanism according to the fifth aspect, and the positional relationship between the original and the optical sensor unit is determined by the irradiation area. A control method for an image reading apparatus further comprising a scanning mechanism that changes a direction in which the document is scanned,
It has a sampling procedure and a focus detection procedure according to claim 5, and a reliability acquisition procedure according to claim 5 or 6, wherein the reliability variation procedure includes the acquired variation and a predetermined value. In comparison, if the variation is higher than the predetermined value, a determination step of driving the scanning mechanism to change the position of the irradiation area on the document and re-executing the sampling procedure is included. Features.

【0026】これら請求項5、請求項6、請求項7、請
求項8に記載の画像読取装置に対する制御方法は、それ
ぞれ請求項1、請求項2、請求項3、請求項4に記載の
画像読取装置と同じ作用効果を得ることができる。請求
項9に記載の画像読取装置に対する制御手順を記憶した
記憶媒体は、原稿に対して読取光を照射すると共に、そ
の原稿における前記読取光の照射領域を透過又は反射し
た光がなす光学像を検出する光学センサユニットと、前
記原稿と前記光学センサユニットとの位置関係を焦点調
節方向に変化させるフォーカス機構とを備えた画像読取
装置に対する制御手順を記憶した記憶媒体であって、前
記フォーカス機構の駆動によって変化する各前記位置関
係の下で前記光学センサユニットが検出する各光学像の
データを取り込むサンプリング手順と、前記サンプリン
グ手順が取り込んだ各光学像のデータから各光学像のコ
ントラストデータを抽出して比較することによって、前
記原稿と前記光学センサユニットとの間の焦点調節状態
を評価する焦点検出手順と、前記各光学像のデータから
各光学像の平滑化データを抽出すると共に、前記焦点検
出手順による前記評価の信頼度を示す指標として、抽出
した各平滑化データ間のばらつきを取得する信頼度取得
手順とを記憶したことを特徴とする。
The control methods for the image reading apparatus according to the fifth, sixth, seventh, and eighth aspects are respectively applied to the image reading apparatus according to the first, second, third, and fourth aspects. The same operation and effect as those of the reader can be obtained. A storage medium storing a control procedure for the image reading apparatus according to claim 9, irradiates a document with reading light and forms an optical image formed by light transmitted or reflected by an irradiation area of the reading light on the document. A storage medium storing a control procedure for an image reading device including an optical sensor unit for detecting, and a focus mechanism for changing a positional relationship between the document and the optical sensor unit in a focus adjustment direction, wherein A sampling procedure for capturing data of each optical image detected by the optical sensor unit under each of the positional relationships changed by driving, and extracting contrast data of each optical image from data of each optical image captured by the sampling procedure. Comparing the original and the optical sensor unit to evaluate the focus adjustment state between the original and the optical sensor unit. A detection procedure and smoothed data of each optical image are extracted from the data of each optical image, and a variation between the extracted smoothed data is obtained as an index indicating the reliability of the evaluation by the focus detection procedure. And a reliability acquisition procedure.

【0027】請求項10に記載の画像読取装置に対する
制御手順を記憶した記憶媒体は、請求項9に記載の画像
読取装置に対する制御手順を記憶した記憶媒体におい
て、前記信頼度取得手順は、前記平滑化データとして平
坦化データを抽出する手順であることを特徴とする。請
求項11に記載の画像読取装置に対する制御手順を記憶
した記憶媒体は、請求項9に記載の光学センサユニット
及びフォーカス機構を備えると共に、情報を外部に報知
する報知手段を更に備えた画像読取装置に対する制御手
順を記憶した記憶媒体であって、請求項9に記載のサン
プリング手順及び焦点検出手順と、請求項9又は請求項
10に記載の信頼度取得手順とを記憶し、前記信頼度取
得手順には、前記取得したばらつきと所定値とを比較し
て、そのばらつきがその所定値よりも高い場合、前記焦
点検出手順による評価の信頼度が不十分であるとみな
し、前記報知手段に対しその旨報知するよう指示する判
断手順が含まれることを特徴とする。
The storage medium storing the control procedure for the image reading apparatus according to claim 10 is the storage medium storing the control procedure for the image reading apparatus according to claim 9, wherein the reliability acquisition step is performed by the smoothing step. Characterized in that it is a procedure for extracting flattened data as converted data. A storage medium storing a control procedure for the image reading apparatus according to claim 11, further comprising an optical sensor unit according to claim 9, a focus mechanism, and a notifying unit for notifying information to the outside. And a focus detection procedure according to claim 9 and a reliability acquisition procedure according to claim 9 or 10, wherein the reliability acquisition procedure is a storage medium. Comparing the obtained variation with a predetermined value, if the variation is higher than the predetermined value, it is considered that the reliability of the evaluation by the focus detection procedure is insufficient, and It is characterized in that a judgment procedure for giving an instruction to notify the effect is included.

【0028】請求項12に記載の画像読取装置に対する
制御手順を記憶した記憶媒体は、請求項9に記載の光学
センサユニット及びフォーカス機構を備えると共に、前
記原稿と前記光学センサユニットとの位置関係を、前記
照射領域により前記原稿上が走査されるような方向に変
化させるスキャン機構を更に備えた画像読取装置に対す
る制御手順を記憶した記憶媒体であって、請求項9に記
載のサンプリング手順及び焦点検出手順と、請求項9又
は請求項10に記載の信頼度取得手順とを記憶し、前記
信頼度取得手順には、前記取得したばらつきと所定値と
を比較して、そのばらつきがその所定値よりも高い場
合、前記スキャン機構を駆動して前記原稿上における前
記照射領域の位置を変更した上で前記サンプリング手順
を再実行させる判断手順が含まれることを特徴とする。
According to a twelfth aspect of the present invention, a storage medium storing a control procedure for the image reading apparatus includes the optical sensor unit and the focus mechanism according to the ninth aspect, and stores a positional relationship between the original and the optical sensor unit. 10. A storage medium storing a control procedure for an image reading apparatus further comprising a scanning mechanism for changing a direction in which the original is scanned by the irradiation area, wherein the sampling procedure and focus detection according to claim 9 are stored. Storing the procedure and the reliability acquisition procedure according to claim 9 or 10, wherein the reliability acquisition procedure compares the acquired variation with a predetermined value, and the variation is larger than the predetermined value. Is higher, it is determined that the scanning mechanism is driven to change the position of the irradiation area on the document and the sampling procedure is executed again. Characterized to include sequentially.

【0029】これら請求項9、請求項10、請求項1
1、請求項12によれば、それぞれ請求項1、請求項
2、請求項3、請求項4に記載の画像読取装置と同じ効
果を得るための画像読取装置に対する制御手順を記憶し
た記憶媒体を提供できる。請求項13に記載のコンピュ
ータプログラム信号を符号化して伝送するためのデータ
構造は、原稿に対して読取光を照射すると共に、その原
稿における前記読取光の照射領域を透過又は反射した光
がなす光学像を検出する光学センサユニットと、前記原
稿と前記光学センサユニットとの位置関係を焦点調節方
向に変化させるフォーカス機構とを備えた画像読取装置
に対する制御手順を含んだコンピュータプログラム信号
を符号化して伝送するためのデータ構造において、前記
制御手順は、前記フォーカス機構の駆動によって変化す
る各前記位置関係の下で前記光学センサユニットが検出
する各光学像のデータを取り込むサンプリング手順と、
前記サンプリング手順が取り込んだ各光学像のデータか
ら各光学像のコントラストデータを抽出して比較するこ
とによって、前記原稿と前記光学センサユニットとの間
の焦点調節状態を評価する焦点検出手順と、前記各光学
像のデータから各光学像の平滑化データを抽出すると共
に、前記焦点検出手順による前記評価の信頼度を示す指
標として、抽出した各平滑化データ間のばらつきを取得
する信頼度取得手順とを含むことを特徴とする。
These claim 9, claim 10, and claim 1
According to the first and twelfth aspects of the present invention, there is provided a storage medium storing a control procedure for an image reading apparatus for obtaining the same effect as the image reading apparatus according to the first, second, third, and fourth aspects. Can be provided. 14. The data structure for encoding and transmitting a computer program signal according to claim 13, wherein the document is irradiated with reading light, and the light transmitted or reflected by the irradiation area of the reading light on the document forms an optical structure. Encoding and transmitting a computer program signal including a control procedure for an image reading apparatus including an optical sensor unit for detecting an image, and a focus mechanism for changing a positional relationship between the original and the optical sensor unit in a focus adjustment direction. In the data structure for performing, the control procedure, the sampling procedure to capture the data of each optical image detected by the optical sensor unit under each of the positional relationship changes by driving the focus mechanism,
A focus detection step of evaluating a focus adjustment state between the original and the optical sensor unit by extracting and comparing contrast data of each optical image from data of each optical image captured by the sampling procedure; Along with extracting the smoothed data of each optical image from the data of each optical image, and as an index indicating the reliability of the evaluation by the focus detection procedure, a reliability obtaining procedure of obtaining a variation between the extracted smoothed data, It is characterized by including.

【0030】このコンピュータプログラム信号を符号化
して伝送するためのデータ構造によれば、請求項9に記
載の画像読取装置に対する制御手順を記憶した記憶媒体
と同じ効果を得るためのコンピュータプログラム信号
を、符号化して伝送することが可能となる。
According to the data structure for encoding and transmitting the computer program signal, the computer program signal for obtaining the same effect as the storage medium storing the control procedure for the image reading apparatus according to claim 9 is provided. It becomes possible to encode and transmit.

【0031】[0031]

【発明の実施の形態】以下、図面に基づいて本発明の実
施形態について説明する。 <第1実施形態>先ず、図1、図2、図3、図4、図
5、図6に基づいて本発明の第1実施形態について説明
する。
Embodiments of the present invention will be described below with reference to the drawings. <First Embodiment> First, a first embodiment of the present invention will be described with reference to FIGS. 1, 2, 3, 4, 5, and 6. FIG.

【0032】(構成)図1は、本実施形態の画像読取装
置1の構成を示すブロック図である。画像読取装置1
は、ホストコンピュータ12に外付けされると共に、ス
ライドマウント、ストリップフィルム、APSフィルム
などの各状態の原稿11を、それぞれその外形に対応し
たアダプタ14を介して装着することができる。
(Configuration) FIG. 1 is a block diagram showing the configuration of an image reading apparatus 1 according to the present embodiment. Image reading device 1
Can be attached externally to the host computer 12 and can be attached to the document 11 in various states such as a slide mount, a strip film, and an APS film via an adapter 14 corresponding to the external shape.

【0033】画像読取装置1内では、画像読取装置1の
本体側にアダプタ14が固定され、原稿11上の画像記
憶領域1Eは光学センサユニット13(請求項における
光学センサユニットに対応する。)から出射される読取
光1Lによって走査される。光学センサユニット13に
は、LEDなどの光源から出射される光を集光してなる
読取光1Lにより原稿11上の一部をライン状に照明す
る照明光学系13aと、原稿11における透過光から、
読取光1Lによる照射領域の光学像を光電検出するライ
ンセンサ13dと、その他の光学系(ミラー13b、結
像レンズ13cなど)とが所定の位置関係で備えられ
る。
In the image reading apparatus 1, an adapter 14 is fixed to the main body of the image reading apparatus 1, and an image storage area 1E on the document 11 is provided from an optical sensor unit 13 (corresponding to an optical sensor unit in the claims). Scanning is performed by the emitted reading light 1L. The optical sensor unit 13 includes an illumination optical system 13a that linearly illuminates a part of the document 11 with a reading light 1L formed by condensing light emitted from a light source such as an LED, and the like. ,
A line sensor 13d that photoelectrically detects an optical image of an irradiation area by the reading light 1L and other optical systems (a mirror 13b, an imaging lens 13c, and the like) are provided in a predetermined positional relationship.

【0034】ここで本明細書では、読取光1Lの光軸方
向に沿う方向を「焦点調節方向」といい、原稿11上の
照射領域の長手方向を「主走査方向」といい、原稿11
に水平かつその主走査方向に垂直な方向であってライン
センサ13dの主走査方向に対応する方向を「副走査方
向」という。また、光学センサユニット13は、読取光
1Lの照射領域によって原稿11の画像記憶領域1E内
を走査するべく、スキャン機構16(スキャンモータ1
6a、スキャンモータ16aの回転軸に固定されたリー
ドねじ16b、リードねじ16bの回転に伴い光学セン
サユニット13を副走査方向に移動させるガイド機構
等)により画像読取装置1内を副走査方向に移動可能と
なっている。
Here, in this specification, the direction along the optical axis direction of the reading light 1L is referred to as "focus adjustment direction", the longitudinal direction of the irradiation area on the original 11 is referred to as "main scanning direction", and the original 11
The direction that is horizontal to the main scanning direction and perpendicular to the main scanning direction and that corresponds to the main scanning direction of the line sensor 13d is referred to as a “sub-scanning direction”. Further, the optical sensor unit 13 scans the image storage area 1E of the document 11 with the irradiation area of the reading light 1L so that the scanning mechanism 16 (scan motor 1
6a, a lead screw 16b fixed to the rotating shaft of the scan motor 16a, and a guide mechanism for moving the optical sensor unit 13 in the sub-scanning direction with the rotation of the lead screw 16b) in the image reading apparatus 1 in the sub-scanning direction. It is possible.

【0035】また、光学センサユニット13は、焦点調
節をするべく、フォーカス機構18(請求項におけるフ
ォーカス機構に対応する。)(光学センサユニット13
を読取光1Lから十分に離れた回動軸0(支点)により
支持するアーム18c、光学センサユニット13に焦点
調節方向の回転変位を与えるカム機構18a、カム機構
18aを駆動するAFモータ18bなど)によって焦点
調節方向に揺動可能な状態でスキャン機構16に取り付
けられている(なお、このフォーカス機構18は、光学
センサユニット13を揺動させることにより読取光1L
を焦点調節方向に移動させる支点揺動型の構造をしてい
るが、光学センサユニット13を焦点調節方向に平行移
動させることにより同じ機能を得る平行移動型の構造で
あってもよい。)。
The optical sensor unit 13 has a focus mechanism 18 (corresponding to the focus mechanism in the claims) for adjusting the focus (optical sensor unit 13).
18c that supports the optical sensor unit 13 in the focus adjustment direction, an AF motor 18b that drives the cam mechanism 18a, etc.) Is attached to the scanning mechanism 16 so as to be able to swing in the focus adjustment direction (the focus mechanism 18 swings the optical sensor unit 13 so that the reading light 1L
Is moved in the focus adjustment direction, but may be a translational structure in which the same function is obtained by moving the optical sensor unit 13 in the focus adjustment direction in parallel. ).

【0036】さらに画像読取装置1には、照明光学系1
3aを駆動する照明駆動回路21、ラインセンサ13d
から出力される輝度データを処理する画像処理回路2
3、AFモータ18bを駆動するAFモータ駆動回路2
5、スキャンモータ16aを駆動するスキャンモータ駆
動回路27、及びそれらの回路に指示を与えるCPU2
0(請求項におけるサンプリング手段、焦点検出手段、
信頼度取得手段に対応する。)、CPU20の各処理に
使用される記憶領域としてのメモリ20aなどが備えら
れる。
The image reading apparatus 1 further includes an illumination optical system 1.
Illumination drive circuit 21 for driving 3a, line sensor 13d
Processing circuit 2 for processing luminance data output from
3. AF motor drive circuit 2 for driving AF motor 18b
5. Scan motor drive circuit 27 for driving scan motor 16a, and CPU 2 for giving instructions to those circuits
0 (the sampling means, the focus detection means,
Corresponds to reliability acquisition means. ), A memory 20a as a storage area used for each processing of the CPU 20, and the like.

【0037】また、画像読取装置1は、インタフェース
回路22を介してホストコンピュータ12に接続され、
ホストコンピュータ12からの指示を受けたCPU20
が画像読取装置1において画像読み取り処理を実行す
る。画像読み取り処理では、CPU20は、スキャンモ
ータ駆動回路27に指示を与えてスキャンモータ16a
を駆動し、光学センサユニット13を副走査方向に移動
させることによって読取光1Lの照射領域で原稿11上
を副走査方向に走査しつつ、画像処理回路23を介して
ラインセンサ13dを駆動し、そのときにラインセンサ
13dから出力されるラインデータを順次取得する。こ
の結果、画像記憶領域1Eの画像データが取得される。
The image reading device 1 is connected to the host computer 12 via the interface circuit 22.
CPU 20 receiving instructions from host computer 12
Executes an image reading process in the image reading device 1. In the image reading process, the CPU 20 gives an instruction to the scan motor driving circuit 27 to
And scanning the original 11 in the sub-scanning direction in the irradiation area of the reading light 1L by moving the optical sensor unit 13 in the sub-scanning direction, while driving the line sensor 13d via the image processing circuit 23, At this time, line data output from the line sensor 13d is sequentially acquired. As a result, the image data in the image storage area 1E is obtained.

【0038】以下、この画像読み取り処理に先行して行
われる焦点調節処理について詳しく説明する。 (動作)図2は、CPU20による焦点調節処理の動作
フローチャートである。また、図3は、CPU20によ
る焦点調節処理を説明する図である。
Hereinafter, the focus adjustment processing performed prior to the image reading processing will be described in detail. (Operation) FIG. 2 is an operation flowchart of the focus adjustment processing by the CPU 20. FIG. 3 is a diagram for explaining the focus adjustment processing by the CPU 20.

【0039】焦点調節処理が開始されると、CPU20
は、スキャンモータ駆動回路27に指示を与えることに
よりスキャンモータ16aを駆動し、読取光1Lの照射
領域が原稿11中央の所定アドレスに位置するよう光学
センサユニット13を副走査方向に移動させる(ステッ
プS1)。この状態でCPU20は、AFモータ駆動回
路25に指示を与えることによりAFモータ18bを駆
動し、各サンプリングポイントPiのうち最初のサンプ
リングポイント(例えば照明光学系13aが原稿11に
最も近くなるようなポイントP1)に位置するよう光学
センサユニット13を焦点調節方向に移動させる(ステ
ップS2)。
When the focus adjustment process is started, the CPU 20
Drives the scan motor 16a by giving an instruction to the scan motor drive circuit 27, and moves the optical sensor unit 13 in the sub-scanning direction such that the irradiation area of the reading light 1L is located at a predetermined address in the center of the document 11 (step S1). In this state CPU20, such as to drive the AF motor 18b by giving instructions to the AF motor drive circuit 25, the first sampling point (for example, the illumination optical system 13a of each sampling point P i is closest to the original 11 the optical sensor unit 13 to be positioned at point P 1) is moved in the focusing direction (step S2).

【0040】さらにこの状態でCPU20は、画像処理
回路23を介してラインセンサ13dを駆動し、ライン
センサ13dの出力する輝度データのうち、原稿11の
中央近傍のフォーカス対象範囲1e(図9におけるフォ
ーカス対象範囲8eと同じである)に対応するラインデ
ータDLiを画像処理回路23を介して取り込む(ステ
ップS3)。
Further, in this state, the CPU 20 drives the line sensor 13d through the image processing circuit 23, and among the luminance data output from the line sensor 13d, the focus target range 1e near the center of the document 11 (the focus range in FIG. 9). line data DL i corresponding to the same in a) and target range 8e captures via the image processing circuit 23 (step S3).

【0041】このラインデータDLiから、CPU20
は焦点調節状態を示すコントラスト値Ciを抽出すると
共に、絵柄を示す平滑化値Aiを抽出し、これらの値を
サンプリングポイントPiに対応づけてメモリ20aに
格納する(ステップS4、図3参照)。
[0041] From this line data DL i, CPU20
The extracts a contrast value C i indicating a focusing state, extracts the smoothed value A i indicating a pattern, and stores these values in memory 20a in association with the sampling point P i (step S4, FIG. 3 reference).

【0042】このうち、コントラスト値Ciは、例え
ば、ラインデータDLiの隣接画素間の画素値の差分の
絶対値を全体について加算したものである。一方、平滑
化値Aiについては、図4を用いて以下に詳細に説明す
る。図4(a),(b),(c)に示すように、一般
に、ラインデータDLの波形(すなわちフォーカス対象
範囲1eの濃度分布を示す波形)には、絵柄を示す低周
波成分と、原稿11上の個々の粒子を示す高周波成分と
が重ね合わされている。
The contrast value C i is obtained, for example, by adding the absolute value of the difference between the pixel values of adjacent pixels of the line data DL i for the whole. On the other hand, the smoothed value A i will be described in detail below with reference to FIG. As shown in FIGS. 4A, 4B, and 4C, generally, the waveform of the line data DL (that is, the waveform indicating the density distribution of the focus target range 1e) includes a low-frequency component indicating a picture and a document. 11 are superimposed with high frequency components representing individual particles.

【0043】したがって、絵柄を示す情報として抽出す
べき平滑化値Aiは、ラインデータDLiから少なくとも
原稿11上の個々の粒子を示す高周波成分を除去(平滑
化)したものとする。但し、信頼度を取得するために最
低限必要な情報は、各サンプリングポイントPiにおけ
る「絵柄」それ自体ではなく、各サンプリングポイント
i間における「絵柄のばらつき」であるので、平滑化
値Aiは、異なるサンプリングポイントPm,Pn間にお
ける絵柄の相違が現れるような値であり、かつできるだ
け簡単な演算で求められる値であることが望ましい。
Therefore, the smoothed value A i to be extracted as information indicating a picture is obtained by removing (smoothing) at least high frequency components indicating individual particles on the document 11 from the line data DL i . However, the minimum necessary information for obtaining the reliability is not the “picture” at each sampling point P i itself, but the “variation of the picture” between the sampling points P i , and thus the smoothed value A It is desirable that i be a value that causes a difference in the picture between the different sampling points P m and P n , and that the value be obtained by a calculation as simple as possible.

【0044】そこで本実施形態では、平滑化値Aiを、
ラインデータDLiの平坦化値とする。平坦化値は、ラ
インデータDLiから周期成分を全て除去した非周期成
分の大きさを示す値であるが、絵柄によって異なる値を
とるはずである。また、ラインデータDLiにおける高
周波成分は、原稿11上の個々の粒子によるものなの
で、絵柄を示す波形に上下均等に振動する波形である。
したがって、最も簡単に算出できる平坦化値としては、
ラインデータDLiの各画素値の平均値(又は各画素値
の総和)が挙げられる。
Therefore, in this embodiment, the smoothed value A i is
And flattening value of the line data DL i. Flat cation is a value indicating the magnitude of the aperiodic component to remove any cyclic component from the line data DL i, should have different values by design. The high frequency component in the line data DL i is because those of the individual particles on the original 11 is a waveform which oscillates up and down evenly waveform showing a picture.
Therefore, the most easily calculated flattening value is:
Average value of each pixel value of the line data DL i (or sum of the pixel values) can be mentioned.

【0045】このような平滑化値Aiは、絵柄の相違を
確実に表す一方で、極めて簡単に求められるものである
(以下では、平滑化値Aiを、ラインデータDLiの各画
素値の平均値とする。)。
Such a smoothed value A i can be determined very easily while reliably representing the difference between pictures (hereinafter, the smoothed value A i is referred to as the pixel value of the line data DL i ). Of the average.)

【0046】因みに、図4(a)に示すようにほぼ同じ
絵柄のラインデータDLa,DLb,DLcそれぞれの平
滑化値Aa,Ab,Acの間には、ほとんどばらつきが生
じることなく(図4(a’))、また、図4(b)に示
すようにやや異なる絵柄のラインデータDLa,DLb
DLcそれぞれの平滑化値Aa,Ab,Acの間には多少の
ばらつきが生じ(図4(b’))、図4(c)に示すよ
うに比較的大きく異なる絵柄のラインデータDLa,D
b,DLcそれぞれの平滑化値Aa,Ab,Acの間には
比較的大きなばらつきが生じる(図4(c’))。この
図4からも、平滑化値Aiのばらつきが絵柄のばらつき
を示すことが分かる。
[0046] Incidentally, substantially between line data DL a same pattern, DL b, DL c of each smoothed value A a, A b, A c as shown in FIG. 4 (a), most variations occur 4 (a ′), and as shown in FIG. 4 (b), the line data DL a , DL b ,
DL c each smoothed value A a, A b, slight variations between the A c occurs (FIG. 4 (b ')), line data of relatively significantly different pattern as shown in FIG. 4 (c) DL a , D
L b, DL c of each smoothed value A a, A b, a relatively large variation between A c occurs (FIG. 4 (c ')). It can also be seen from FIG. 4 that the variation in the smoothed value A i indicates the variation in the picture.

【0047】図2に戻り、ステップS5では、CPU2
0は、AFモータ駆動回路25に指示を与えることによ
りAFモータ18bを駆動し、次のサンプリングポイン
トP i+1に位置するよう光学センサユニット13を1ス
テップ(例えば光軸1L位置における距離にして40〜
50μm程度)移動させる。CPU20は、最初のサン
プリングポイントP1から最終のサンプリングポイント
n(例えば、n=70)までの各サンプリングポイン
トPiにおいて、以上のラインデータDLiの取得(ステ
ップS3)、コントラスト値Ci及び平滑化値Aiの抽出
(ステップS4)を繰り返す(以下、このようなステッ
プS3〜ステップS6の処理を「サンプリング処理」と
いう。)。
Returning to FIG. 2, in step S5, the CPU 2
0 is given by giving an instruction to the AF motor drive circuit 25.
The AF motor 18b is driven, and the next sampling point
To P i + 1Optical sensor unit 13
Tep (for example, the distance at the optical axis 1L position is 40 to
(About 50 μm). The CPU 20 executes the first sun
Pulling point P1From the last sampling point
PnEach sampling point up to (for example, n = 70)
To PiIn the above, the line data DLiAcquisition (step
Step S3), contrast value CiAnd smoothed value AiExtraction
(Step S4) is repeated (hereinafter, such a step is performed).
The processing of steps S3 to S6 is referred to as "sampling processing".
Say. ).

【0048】この結果、各サンプリングポイントPi
おけるコントラスト値Ci,及び平滑化値Aiがメモリ2
0aに格納される(図3参照)。サンプリング処理を終
えたCPU20は、メモリ20aに格納された平滑化値
1,・・・,Anを参照し、焦点調節状態の評価の信頼
度指標ΔAとして、平滑化値A1,・・・,Anの最大値
と最小値との差分(ばらつき)を求める(ステップS
7)。
[0048] As a result, the contrast value C i at each sampling point P i, and the smoothed value A i is the memory 2
0a (see FIG. 3). CPU20 completing the sampling process, the smoothed value stored in the memory 20a A 1, · · ·, with reference to the A n, the reliability index ΔA rating focusing state, the smoothed value A 1, · · - obtains a difference (variation) between the maximum value and the minimum value of a n (step S
7).

【0049】ここで上記したように、平滑化値A1,・
・・,Anは、各サンプリングポイントP1,・・・Pn
における絵柄を示すので、そのばらつきが大きいほど、
焦点調節状態の評価が困難となる傾向にある。したがっ
て、信頼度指標ΔAの値が小さいほど、焦点調節状態の
評価の信頼度が高い。CPU20は、この信頼度指標Δ
Aが、所定の閾値ΔA0よりも小さく抑えられているか
否かを判別し(ステップS8)、小さく抑えられていれ
ば、その時点でメモリ20aに格納されている各コント
ラスト値C1,・・・,Cnによる焦点調節状態の評価が
十分な信頼度で行われるとみなしてステップS9へ進
む。
As described above, the smoothed values A 1 ,.
.., An are sampling points P 1 ,.
, The larger the variation,
It tends to be difficult to evaluate the focus adjustment state. Therefore, the smaller the value of the reliability index ΔA, the higher the reliability of the evaluation of the focus adjustment state. The CPU 20 calculates the reliability index Δ
It is determined whether or not A is smaller than a predetermined threshold value ΔA 0 (step S8). If it is smaller, each of the contrast values C 1 ,... Stored in the memory 20a at that time is determined. · proceeds regarded as evaluation of the focusing state according to C n is performed with sufficient confidence to step S9.

【0050】なお、ラインデータDLiが16ビットで
表現される場合には、閾値ΔA0を2000程度に設定
し、ラインデータDLiが8ビットで表現される場合に
は、閾値ΔA0を30程度に設定するとよい。また、図
5(a)〜(g)はそれぞれ、異なる原稿(又は同じ原
稿の異なる位置)から個別に取得した信頼度指標ΔAa
〜ΔAgを示す図である。このうち、(c),(e),
(f),(g)についてはそれぞれ信頼度指標ΔAc
ΔAe,ΔAf,ΔAgが閾値ΔA0よりも小さく抑えられ
るので焦点調節状態の評価の信頼度が十分に高いとみな
される。
When the line data DL i is expressed by 16 bits, the threshold ΔA 0 is set to about 2000, and when the line data DL i is expressed by 8 bits, the threshold ΔA 0 is set to 30. It is good to set to about. FIGS. 5A to 5G respectively show the reliability index ΔA a individually obtained from different documents (or different positions of the same document).
It is a diagram illustrating a ~ΔA g. Of these, (c), (e),
For (f) and (g), the reliability index ΔA c ,
Since ΔA e , ΔA f , and ΔA g are kept smaller than the threshold value ΔA 0 , the reliability of the evaluation of the focus adjustment state is considered to be sufficiently high.

【0051】図6は、焦点調節状態の評価処理を説明す
る図である。ステップS9では、焦点調節状態の評価処
理として、CPU20は、メモリ20aに格納されたコ
ントラスト値C1,・・・,Cnを参照し、その中の最大
のコントラスト値Cfに対応するサンプリングポイント
fをフォーカスポイントとみなす。
FIG. 6 is a diagram for explaining the evaluation process of the focus adjustment state. In step S9, as the focus adjustment state evaluation processing, the CPU 20 refers to the contrast values C 1 ,..., C n stored in the memory 20a, and selects the sampling point corresponding to the maximum contrast value C f among them. the P f regarded as a focus point.

【0052】そしてCPU20は、AFモータ駆動回路
25に指示を与えることによりAFモータ18bを駆動
し、そのフォーカスポイントPfに位置するよう光学セ
ンサユニット13を焦点調節方向に移動させることで焦
点調節を行う(ステップS10) その後CPU20は、スキャンモータ駆動回路27に指
示を与えることによりスキャンモータ16aを駆動し、
後続する画像読み取り処理の開始が可能な状態を保つべ
く、読取光1Lの照射領域が原稿11上の画像読み取り
開始アドレスに位置するよう光学センサユニット13を
副走査方向に移動させることで、焦点調節処理を終了す
る(ステップS11)。
[0052] The CPU20 is focusing by moving the optical sensor unit 13 in the focusing direction so as to drive the AF motor 18b by giving instructions to the AF motor drive circuit 25, positioned at the focus point P f Perform (Step S10) Thereafter, the CPU 20 drives the scan motor 16a by giving an instruction to the scan motor drive circuit 27,
The focus adjustment is performed by moving the optical sensor unit 13 in the sub-scanning direction so that the irradiation area of the reading light 1L is located at the image reading start address on the document 11 so as to maintain a state where the subsequent image reading process can be started. The process ends (step S11).

【0053】一方、ステップS8における判別の結果、
信頼度指標ΔAが閾値ΔA0を超過しているときには、
CPU20は、その時点でメモリ20aに格納されてい
るコントラストデータC1,・・・,Cnに基づく焦点調
節状態の評価は信頼度が低くなるとみなし、ステップS
9を実行することなくステップS12へ進む。この判別
(ステップS8)によれば、フォーカス対象範囲1eが
画像の濃度境界域に位置しているときのように焦点調節
状態の評価が困難であるときには、それが確実に検知さ
れる。
On the other hand, as a result of the determination in step S8,
When the reliability index ΔA exceeds the threshold ΔA 0 ,
CPU20 regards at that time contrast data C 1 stored in the memory 20a, · · ·, evaluation of the focus adjustment state based on C n and the reliability decreases, the step S
The process proceeds to step S12 without executing step S9. According to this determination (step S8), when it is difficult to evaluate the focus adjustment state, such as when the focus target range 1e is located in the density boundary area of the image, it is reliably detected.

【0054】因みに、図5(a),(b),(d)に示
すような信頼度指標ΔAa,ΔAb,ΔAdが得られたと
きには、閾値ΔA0を超過するために、焦点調節状態の
評価の信頼度が低いとみなされる。ステップS12にお
いてCPU20は、スキャンモータ駆動回路27に指示
を与えることによりスキャンモータ16aを駆動し、読
取光1Lの照射領域が副走査方向に所定ラインだけずれ
るよう、光学センサユニット13を副走査方向に所定ア
ドレスだけ移動させる。
[0054] Incidentally, FIG. 5 (a), (b) , the reliability index as shown in (d) ΔA a, ΔA b , when the .DELTA.A d is obtained, in order to exceed the threshold .DELTA.A 0, focusing The state evaluation is considered to be unreliable. In step S12, the CPU 20 drives the scan motor 16a by giving an instruction to the scan motor drive circuit 27, and moves the optical sensor unit 13 in the sub-scanning direction so that the irradiation area of the reading light 1L is shifted by a predetermined line in the sub-scanning direction. Move by a predetermined address.

【0055】この移動によれば、たとえ1回目のサンプ
リング処理においてフォーカス対象範囲1eが濃度境界
域上に位置していたとしても、サンプリング処理が再実
行されるときにはその濃度境界域から外される。なお、
この移動量は、十分な距離(例えば500ライン程度、
距離にして2mm〜3mm)とることが好ましい。その
後のサンプリング処理の結果、得られた信頼度指標ΔA
が閾値ΔA0を下回っていれば(ステップS8YES)、そ
の時点でメモリ20aに格納されているコントラスト値
1,・・・,Cnに基づく焦点調節状態の評価処理(ス
テップS9)、及びそれに応じた焦点調節処理(ステッ
プS10)が実行される。
According to this movement, even if the focus target range 1e is located on the density boundary area in the first sampling processing, it is excluded from the density boundary area when the sampling processing is executed again. In addition,
This movement amount is sufficient for a sufficient distance (for example, about 500 lines,
The distance is preferably 2 mm to 3 mm). As a result of the subsequent sampling processing, the obtained reliability index ΔA
Is smaller than the threshold value ΔA 0 (step S8 YES), the focus adjustment state evaluation process based on the contrast values C 1 ,..., C n stored in the memory 20a at that time (step S9), and The corresponding focus adjustment processing (step S10) is executed.

【0056】なお、以上説明した図2において、ステッ
プS3〜S6(サンプリング処理)が請求項におけるサ
ンプリング手順に対応し、ステップS7,S8,S12
が請求項における信頼度取得手順に対応し、ステップS
9(焦点調節状態の評価処理)が請求項における焦点検
出手順に対応する。 (効果)以上説明したとおり、本実施形態では、サンプ
リング処理(ステップS3〜S6)が実行されても、そ
の結果に基づく焦点調節状態の評価が困難となるような
場合には、実際にその評価処理が実行されるより前に、
ラインデータDL1,・・・,DLnから得た信頼度指標
ΔAの値の大小に基づいて検知される(ステップS
8)。
In FIG. 2 described above, steps S3 to S6 (sampling processing) correspond to the sampling procedure in claims, and steps S7, S8, S12
Corresponds to the reliability acquisition procedure in the claims, and step S
9 (focus evaluation state evaluation processing) corresponds to a focus detection procedure in claims. (Effect) As described above, in the present embodiment, even if the sampling process (steps S3 to S6) is executed, if it becomes difficult to evaluate the focus adjustment state based on the result, the evaluation is actually performed. Before the action is taken,
It is detected based on the magnitude of the reliability index ΔA obtained from the line data DL 1 ,..., DL n (step S
8).

【0057】しかも、信頼度指標ΔAは、ラインデータ
DL1,・・・,DLnに基づく極めて簡単な演算により
高速に求められるので、焦点調節処理の処理速度をほと
んど低下させることはない。また、信頼度指標ΔAを利
用し、必要に応じてサンプリング処理(ステップS3〜
S6)が再実行されるので、焦点調節の失敗を未然に防
止できる。
Further, since the reliability index ΔA is obtained at a high speed by an extremely simple calculation based on the line data DL 1 ,..., DL n , the processing speed of the focus adjustment processing is hardly reduced. In addition, sampling processing is performed as necessary using the reliability index ΔA (steps S3 to S3).
Since S6) is executed again, it is possible to prevent a failure in focus adjustment.

【0058】すなわち、本実施形態によれば、焦点調節
精度が高く保たれる。 <第2実施形態>次に、図1、図2、図7に基づいて本
発明の第2実施形態について説明する。図1に示すよう
に、本実施形態の画像読取装置2は、第1実施形態の画
像読取装置1において、CPU20に代えてCPU40
が備えられたものに等しい。
That is, according to the present embodiment, the focus adjustment accuracy is kept high. <Second Embodiment> Next, a second embodiment of the present invention will be described with reference to FIGS. As shown in FIG. 1, the image reading device 2 of the present embodiment is different from the image reading device 1 of the first embodiment in that a CPU 40
Is equal to

【0059】CPU40は、CPU20と同様にホスト
コンピュータ12からの指示を受けて画像読み取り処理
を実行するが、焦点調節処理がCPU20によるもの
(図2参照)とは一部異なる。図7は、CPU40によ
る焦点調節処理の動作フローチャートである。図7にお
いて、図2に示すステップと同じものについては同一の
符号を付して示し、ここではその説明を省略する。
The CPU 40 executes an image reading process in response to an instruction from the host computer 12 similarly to the CPU 20, but the focus adjustment process is partially different from that performed by the CPU 20 (see FIG. 2). FIG. 7 is an operation flowchart of the focus adjustment processing by the CPU 40. 7, steps that are the same as the steps shown in FIG. 2 are given the same reference numerals, and descriptions thereof are omitted here.

【0060】CPU40は、信頼度指標ΔAが閾値ΔA
0を超過しているか否かを判別するステップS8のNO
側、かつ光学センサユニット13を副走査方向に移動さ
せるステップ12の前段に、ステップS21,22,2
3を順に実行する。ステップS21においてCPU40
は、焦点調節状態の評価の信頼度が低いこと(焦点調節
失敗の可能性)を操作者に通知する。この通知は、例え
ば、CPU40がホストコンピュータ12側に指示を与
えることによって、ホストコンピュータ12に外付けさ
れたモニタなどの表示器12aに対してその旨表示する
ことにより行われる。
The CPU 40 determines that the reliability index ΔA is equal to the threshold value ΔA
NO in step S8 for determining whether or not it exceeds 0
And before the step 12 of moving the optical sensor unit 13 in the sub-scanning direction, steps S21, S22, S2
Step 3 is performed in order. In step S21, the CPU 40
Notifies the operator that the reliability of the evaluation of the focus adjustment state is low (possibility of focus adjustment failure). This notification is performed by, for example, giving an instruction to the host computer 12 by the CPU 40 and displaying the fact on a display 12 a such as a monitor externally attached to the host computer 12.

【0061】また、CPU40は、表示器12aにおい
て、操作者に対し、サンプリング処理を再実行した上で
焦点調節状態の評価処理を行う(再実行)か、再実行を
省き焦点調節状態の評価処理を行う(続行)かを選択さ
せるための表示も行う。操作者は、画像読み取りの対象
となっている画像の種類などから焦点調節を高い精度で
行う必要があると判断した場合には、「再実行」の指示
をホストコンピュータ12に接続されたマウスなどの入
力器12bを介して入力し、焦点調節を高い精度で行う
必要がないと判断した場合には、「続行」の指示を入力
することができる。
The CPU 40 allows the operator to re-execute the sampling process and then evaluate the focus adjustment state on the display 12a (re-execution), or omit the re-execution and evaluate the focus adjustment state. Is also displayed for selecting whether to perform (continue). If the operator determines that it is necessary to perform the focus adjustment with high accuracy based on the type of the image to be read, the operator gives an instruction of “re-execute” to the mouse or the like connected to the host computer 12. If it is determined that there is no need to perform focus adjustment with high precision, an instruction to “continue” can be input.

【0062】CPU40は、続行の指示が入力されると
(ステップS22YES)ステップS9へ進み、再実行の
指示が入力されると(ステップS23YES)ステップS
12へ進む。なお、以上説明した図7において、ステッ
プS3〜S6(サンプリング処理)が請求項におけるサ
ンプリング手順に対応し、ステップS7,S8,S1
2,S21,S22,S23が請求項における信頼度取
得手順に対応し、ステップS9(焦点調節状態の評価処
理)が請求項における焦点検出手順に対応する。
The CPU 40 proceeds to step S9 when a continuation instruction is input (step S22 YES), and proceeds to step S9 when a re-execution instruction is input (step S23 YES).
Proceed to 12. Note that, in FIG. 7 described above, steps S3 to S6 (sampling processing) correspond to the sampling procedure in claims, and steps S7, S8, S1
Steps S2, S21, S22, and S23 correspond to the reliability acquisition procedure in the claims, and step S9 (focus adjustment state evaluation processing) corresponds to the focus detection procedure in the claims.

【0063】以上説明した結果、操作者は、焦点調節失
敗の可能性が表示器12aに表示されない限りは、焦点
調節(ステップS9,S10)が適正に行われるとみな
せる。また、仮に焦点調節が失敗したとしても、ステッ
プS22により操作者の判断を介しているので、その失
敗が確認されるのが画像読み取り処理の終了後となるこ
とはない。
As a result of the above description, the operator can regard that the focus adjustment (steps S9 and S10) is properly performed unless the possibility of the focus adjustment failure is displayed on the display 12a. Even if the focus adjustment fails, the failure is not confirmed after the end of the image reading process because the determination is made by the operator in step S22.

【0064】すなわち、画像読取装置2の信頼性は、高
く保たれる。 <その他>なお、上記各実施形態では、平滑化値A
iを、ラインデータDLiの各画素値の平均値としたが、
各画素値の和としてもよい。また、ラインデータDLi
のうち原稿11上の個々の粒子を示す高周波成分を除去
した波形を示すのであれば、如何なるデータに代えても
よい。但し、上記したとおり、各画素値の平均値又は各
画素値の和とすることが演算を簡略化する上で好ましい
(なお、上記閾値ΔA0の値についても、この平滑化値
iに採用された物理量に応じて決められる。)。
That is, the reliability of the image reading device 2 is kept high. <Others> In the above embodiments, the smoothed value A
i is the average value of each pixel value of the line data DL i ,
The sum of the pixel values may be used. Also, the line data DL i
Any data may be used as long as it shows a waveform from which high-frequency components representing individual particles on the document 11 have been removed. However, as described above, it is preferable to set the average value of the pixel values or the sum of the pixel values in order to simplify the calculation (the value of the threshold value ΔA 0 is also adopted as the smoothed value A i) . It is determined according to the physical quantity.)

【0065】また、上記各実施形態では、各サンプリン
グポイントPiにおける平滑化値Ai及びコントラスト値
iが、各ラインデータDLiが取り込まれる毎(ステッ
プS3)に抽出されているが、全ラインデータDL1
・・・,DLnが取り込まれた後に一括して抽出されて
もよい。但し、後者によると全ラインデータDL1,・
・・,DLnを一時期に格納するための広い記憶領域を
要するため、1つのラインデータDLiを格納するだけ
の記憶領域しか要しない点で、前者が好ましい。
In each of the above embodiments, the smoothed value A i and the contrast value C i at each sampling point P i are extracted each time each line data DL i is fetched (step S3). Line data DL 1 ,
.., May be extracted collectively after DL n is taken in. However, according to the latter, all line data DL 1 ,.
..., it takes a large storage area for storing at one time the DL n, in that only require storage space to store one line data DL i, the former is preferable.

【0066】上記各実施形態では、焦点調節状態の評価
処理(ステップS9)が、信頼度指標ΔAの算出及び比
較の処理(ステップS7,S8)よりも後に実行される
が、この算出及び比較の処理と並行して実行されてもよ
い。また、上記各実施形態においては、画像読み取り処
理(焦点調節処理を含む)を、ホストコンピュータ12
内のCPUに実行させてもよい。また、画像読み取り処
理の一部をホストコンピュータ12内のCPUが実行
し、他の一部を画像読取装置内のCPUが実行すること
としてもよい。また、ホストコンピュータ12内のCP
Uに行わせる場合には、その動作プログラムを記憶媒体
12cに予め書き込んでおき、ホストコンピュータ12
内のドライブ装置にそれを読みとらせた後、そのCPU
に実行させることとしてもよい(図1右下参照)。
In each of the above embodiments, the focus adjustment state evaluation process (step S9) is executed after the reliability index ΔA calculation and comparison process (steps S7 and S8). It may be executed in parallel with the processing. Further, in each of the above embodiments, the image reading process (including the focus adjustment process) is performed by the host computer 12.
May be executed by a CPU in the system. Further, a part of the image reading processing may be executed by the CPU in the host computer 12, and another part may be executed by the CPU in the image reading apparatus. Also, the CP in the host computer 12
U, the operation program is written in the storage medium 12c in advance, and the host computer 12
After having the drive device inside read it, the CPU
(See the lower right of FIG. 1).

【0067】また、上述した動作プログラムの一部又は
全部は、ホストコンピュータ12から、インターネット
を介して所定のホームページにアクセスし、ドライバソ
フトまたはファームウエアとしてダウンロードすること
もできる。例えば、このようなダウンロードは、ホスト
コンピュータ12から所定のホームページにアクセスし
た状態において、画面上の製品表示の中から画像読取装
置の1つであるフィルムスキャナを選択したり、ホスト
コンピュータ12のOS環境に合致するドライバソフト
またはファームウエアを選択することにより実行するこ
とができる。
A part or all of the above-mentioned operation program can be downloaded from the host computer 12 as driver software or firmware by accessing a predetermined homepage via the Internet. For example, such a download can be performed by selecting a film scanner, which is one of the image reading apparatuses, from the product display on the screen while accessing a predetermined homepage from the host computer 12, or using the OS environment of the host computer 12. This can be performed by selecting driver software or firmware that matches the above.

【0068】また、ホストコンピュータ12とインター
ネットとの接続形態として、次のようなダイヤルアップ
接続が適用できる。すなわち、ホストコンピュータ12
は、モデムまたはターミナルアダプタを介して電話回線
に接続され、この電話回線により、インターネット接続
サービス会社であるプロバイダのモデムまたはターミナ
ルアダプタに接続される。プロバイダのモデムまたはタ
ーミナルアダプタは、サーバに接続され、サーバは、イ
ンターネットに中継経路を設定するためのルータを介し
て24時間接続されている。ホストコンピュータ12か
らは、必要なときに電話をかけて、プロバイダのサーバ
経由でインターネット(ホームページ)に接続する。な
お、ホストコンピュータ12とインターネットとの接続
形態は、このようなダイヤルアップ接続に限定されず、
プロバイダとの間を専用線を用いて常時接続する形態で
あっても良い。
The following dial-up connection can be applied as a connection form between the host computer 12 and the Internet. That is, the host computer 12
Is connected to a telephone line via a modem or a terminal adapter, and the telephone line is connected to a modem or a terminal adapter of an Internet connection service provider. The provider's modem or terminal adapter is connected to the server, which is connected for 24 hours via a router for setting up a relay route to the Internet. The host computer 12 makes a telephone call when necessary, and connects to the Internet (homepage) via the server of the provider. Note that the connection form between the host computer 12 and the Internet is not limited to such a dial-up connection,
A configuration in which connection with the provider is always established using a dedicated line may be employed.

【0069】[0069]

【発明の効果】以上説明したように本発明によれば、焦
点調節状態の評価の信頼度を迅速に検知できる。特に、
請求項2、請求項6、請求項10に記載の発明は、焦点
調節状態の評価の信頼度をより迅速に検知することがで
き、請求項3、請求項7、請求項11に記載の発明は、
画像読取装置の信頼性を向上させることができ、請求項
4、請求項8、請求項12に記載の発明は、画像読取装
置のハードウエア部分の変更をきたすことなく焦点調節
の精度を向上させることができる。
As described above, according to the present invention, the reliability of the evaluation of the focus adjustment state can be quickly detected. In particular,
According to the second, sixth, and tenth aspects of the present invention, the reliability of the evaluation of the focus adjustment state can be detected more quickly, and the third, seventh, and eleventh aspects of the invention. Is
The reliability of the image reading device can be improved, and the invention according to claims 4, 8 and 12 improves the accuracy of focus adjustment without changing the hardware of the image reading device. be able to.

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

【図1】画像読取装置1,2の構成を示すブロック図で
ある。
FIG. 1 is a block diagram illustrating a configuration of image reading apparatuses 1 and 2.

【図2】CPU20による焦点調節処理の動作フローチ
ャートである。
FIG. 2 is an operation flowchart of a focus adjustment process by a CPU 20;

【図3】CPU20による焦点調節処理を説明する図で
ある。
FIG. 3 is a diagram illustrating focus adjustment processing by a CPU 20.

【図4】平滑化値Aiを説明する図である。FIG. 4 is a diagram illustrating a smoothed value A i .

【図5】異なる原稿(又は同じ原稿の異なる位置)から
それぞれ得られた信頼度指標ΔAa〜ΔAgを示す図であ
る。
FIG. 5 is a diagram showing reliability indices ΔA a to ΔA g obtained from different documents (or different positions of the same document).

【図6】焦点調節状態の評価処理を説明する図である。FIG. 6 is a diagram illustrating a focus adjustment state evaluation process.

【図7】CPU40による焦点調節処理の動作フローチ
ャートである。
FIG. 7 is an operation flowchart of a focus adjustment process by a CPU 40;

【図8】画像読取装置内の様子を示す図である。FIG. 8 is a diagram showing a state inside the image reading apparatus.

【図9】フォーカス対象範囲8eを示す図である。FIG. 9 is a diagram showing a focus target range 8e.

【図10】読取光の光束とサンプリングポイントとの関
係を示す図である。
FIG. 10 is a diagram illustrating a relationship between a light beam of reading light and a sampling point.

【図11】合焦状態において得られた異なる絵柄のライ
ンデータを比較する図である。
FIG. 11 is a diagram comparing line data of different patterns obtained in a focused state.

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

1,2 画像読取装置 11,81 原稿 12 ホストコンピュータ 12a 表示器 12b 入力器 12c 記憶媒体 13,83 光学センサユニット 14 アダプタ 16 スキャン機構 18 フォーカス機構 1L 読取光 1E,8E 画像記憶領域 1e,8e フォーカス対象範囲 21 照明駆動回路21 23 画像処理回路 25 AFモータ駆動回路 27 スキャンモータ駆動回路 22 インタフェース回路 20,40 CPU 20a メモリ 1, 2 Image reading device 11, 81 Document 12 Host computer 12a Display 12b Input device 12c Storage medium 13, 83 Optical sensor unit 14 Adapter 16 Scanning mechanism 18 Focusing mechanism 1L Reading light 1E, 8E Image storage area 1e, 8e Focus target Range 21 Illumination drive circuit 21 23 Image processing circuit 25 AF motor drive circuit 27 Scan motor drive circuit 22 Interface circuit 20, 40 CPU 20a Memory

Claims (13)

【特許請求の範囲】[Claims] 【請求項1】 原稿に対して読取光を照射すると共に、
その原稿における前記読取光の照射領域を透過又は反射
した光がなす光学像を検出する光学センサユニットと、 前記原稿と前記光学センサユニットとの位置関係を焦点
調節方向に変化させるフォーカス機構と、 前記フォーカス機構の駆動によって変化する各前記位置
関係の下で前記光学センサユニットが検出する各光学像
のデータを取り込むサンプリング手段と、 前記サンプリング手段が取り込んだ各光学像のデータか
ら各光学像のコントラストデータを抽出して比較するこ
とによって、前記原稿と前記光学センサユニットとの間
の焦点調節状態を評価する焦点検出手段とを備えた画像
読取装置であって、 前記各光学像のデータから各光学像の平滑化データを抽
出すると共に、前記焦点検出手段による前記評価の信頼
度を示す指標として、抽出した各平滑化データ間のばら
つきを取得する信頼度取得手段を備えたことを特徴とす
る画像読取装置。
1. A method of irradiating a document with reading light,
An optical sensor unit that detects an optical image formed by light transmitted or reflected by the irradiation area of the reading light on the original; a focusing mechanism that changes a positional relationship between the original and the optical sensor unit in a focus adjustment direction; Sampling means for capturing data of each optical image detected by the optical sensor unit under each of the positional relationships changed by driving of a focus mechanism; and contrast data of each optical image from data of each optical image captured by the sampling means. And a focus detection unit that evaluates a focus adjustment state between the document and the optical sensor unit by extracting and comparing the optical images. Along with extracting the smoothed data of, as an index indicating the reliability of the evaluation by the focus detection means, An image reading apparatus comprising: a reliability obtaining unit that obtains a variation between the extracted smoothed data.
【請求項2】 請求項1に記載の画像読取装置におい
て、 前記信頼度取得手段は、 前記平滑化データとして平坦化データを抽出することを
特徴とする画像読取装置。
2. The image reading apparatus according to claim 1, wherein the reliability acquisition unit extracts flattened data as the smoothed data.
【請求項3】 請求項1又は請求項2に記載の画像読取
装置において、 情報を外部に報知する報知手段を更に備え、 前記信頼度取得手段は、 前記取得したばらつきと所定値とを比較して、そのばら
つきがその所定値よりも高い場合、前記焦点検出手段に
よる評価の信頼度が不十分であるとみなし、前記報知手
段に対しその旨報知するよう指示する判断手段を有する
ことを特徴とする画像読取装置。
3. The image reading device according to claim 1, further comprising a notifying unit that notifies information to the outside, wherein the reliability obtaining unit compares the obtained variation with a predetermined value. When the variation is higher than the predetermined value, it is considered that the reliability of the evaluation by the focus detection means is insufficient, and a determination means is provided for instructing the notification means to report the fact. Image reading device.
【請求項4】 請求項1又は請求項2に記載の画像読取
装置において、 前記原稿と前記光学センサユニットとの位置関係を、前
記照射領域により前記原稿上が走査されるような方向に
変化させるスキャン機構を更に備え、 前記信頼度取得手段は、 前記取得したばらつきと所定値とを比較して、そのばら
つきがその所定値よりも高い場合、前記スキャン機構を
駆動して前記原稿上における前記照射領域の位置を変更
した上で、前記サンプリング手段を再動作させる判断手
段を有することを特徴とする画像読取装置。
4. The image reading apparatus according to claim 1, wherein a positional relationship between the document and the optical sensor unit is changed in a direction such that the irradiation area scans the document. Further comprising a scanning mechanism, wherein the reliability obtaining means compares the obtained variation with a predetermined value, and when the variation is higher than the predetermined value, drives the scanning mechanism to irradiate the irradiation on the document. An image reading apparatus, comprising: a determination unit for re-operating the sampling unit after changing a position of an area.
【請求項5】 原稿に対して読取光を照射すると共に、
その原稿における前記読取光の照射領域を透過又は反射
した光がなす光学像を検出する光学センサユニットと、 前記原稿と前記光学センサユニットとの位置関係を焦点
調節方向に変化させるフォーカス機構とを備えた画像読
取装置に対する制御方法であって、 前記フォーカス機構の駆動によって変化する各前記位置
関係の下で前記光学センサユニットが検出する各光学像
のデータを取り込むサンプリング手順と、 前記サンプリング手順において取り込まれた各光学像の
データから各光学像のコントラストデータを抽出して比
較することによって、前記原稿と前記光学センサユニッ
トとの間の焦点調節状態を評価する焦点検出手順と、 前記各光学像のデータから各光学像の平滑化データを抽
出すると共に、前記焦点検出手順による前記評価の信頼
度を示す指標として、抽出した各平滑化データ間のばら
つきを取得する信頼度取得手順とを有することを特徴と
する画像読取装置に対する制御方法。
5. A method of irradiating a document with reading light,
An optical sensor unit that detects an optical image formed by light transmitted or reflected by the irradiation area of the reading light on the original; and a focus mechanism that changes a positional relationship between the original and the optical sensor unit in a focus adjustment direction. A control method for the image reading apparatus, wherein a sampling procedure for capturing data of each optical image detected by the optical sensor unit under each of the positional relationships changed by driving the focus mechanism; and a sampling procedure for capturing data in the sampling procedure. A focus detection procedure for evaluating a focus adjustment state between the original and the optical sensor unit by extracting and comparing contrast data of each optical image from the data of each optical image, and data of each optical image. And extracting the smoothed data of each optical image from A method for acquiring a variation between extracted smoothed data as an index indicating the reliability.
【請求項6】 請求項5に記載の画像読取装置に対する
制御方法において、 前記信頼度取得手順は、 前記平滑化データとして平坦化データを抽出する手順で
あることを特徴とする画像読取装置に対する制御方法。
6. The control method for an image reading apparatus according to claim 5, wherein the reliability acquisition step is a step of extracting flattened data as the smoothed data. Method.
【請求項7】 請求項5に記載の光学センサユニット及
びフォーカス機構を備えると共に、情報を外部に報知す
る報知手段を更に備えた画像読取装置に対する制御方法
であって、 請求項5に記載のサンプリング手順及び焦点検出手順
と、 請求項5又は請求項6に記載の信頼度取得手順とを有
し、 前記信頼度取得手順には、 前記取得したばらつきと所定値とを比較して、そのばら
つきがその所定値よりも高い場合、前記焦点検出手順に
よる評価の信頼度が不十分であるとみなし、前記報知手
段に対しその旨報知するよう指示する判断手順が含まれ
ることを特徴とする画像読取装置に対する制御方法。
7. A control method for an image reading apparatus comprising: the optical sensor unit according to claim 5; and a focus mechanism, and further comprising a notifying unit for notifying information to the outside, wherein the sampling according to claim 5 is performed. The method further comprises: a procedure and a focus detection procedure; and a reliability acquisition procedure according to claim 5 or 6. The reliability acquisition procedure includes: comparing the acquired variation with a predetermined value; An image reading apparatus which, when higher than the predetermined value, considers that the reliability of the evaluation by the focus detection procedure is insufficient, and includes a determination procedure for instructing the notification means to report the fact; Control method for
【請求項8】 請求項5に記載の光学センサユニット及
びフォーカス機構を備えると共に、前記原稿と前記光学
センサユニットとの位置関係を、前記照射領域により前
記原稿上が走査されるような方向に変化させるスキャン
機構を更に備えた画像読取装置に対する制御方法であっ
て、 請求項5に記載のサンプリング手順及び焦点検出手順
と、 請求項5又は請求項6に記載の信頼度取得手順とを有
し、 前記信頼度取得手順には、 前記取得したばらつきと所定値とを比較して、そのばら
つきがその所定値よりも高い場合、前記スキャン機構を
駆動して前記原稿上における前記照射領域の位置を変更
した上で前記サンプリング手順を再実行させる判断手順
が含まれることを特徴とする画像読取装置に対する制御
方法。
8. An optical sensor unit and a focus mechanism according to claim 5, wherein a positional relationship between the original and the optical sensor unit is changed in a direction such that the irradiation area scans the original. A control method for an image reading apparatus further comprising a scanning mechanism for causing the image reading apparatus to have a sampling procedure and a focus detection procedure according to claim 5, and a reliability acquisition procedure according to claim 5 or 6, In the reliability acquisition step, the acquired variation is compared with a predetermined value, and when the variation is higher than the predetermined value, the scan mechanism is driven to change the position of the irradiation area on the document. A control procedure for the image reading apparatus, which includes a determination procedure for re-executing the sampling procedure.
【請求項9】 原稿に対して読取光を照射すると共に、
その原稿における前記読取光の照射領域を透過又は反射
した光がなす光学像を検出する光学センサユニットと、 前記原稿と前記光学センサユニットとの位置関係を焦点
調節方向に変化させるフォーカス機構と を備えた画像読取装置に対する制御手順を記憶した記憶
媒体であって、 前記フォーカス機構の駆動によって変化する各前記位置
関係の下で前記光学センサユニットが検出する各光学像
のデータを取り込むサンプリング手順と、 前記サンプリング手順が取り込んだ各光学像のデータか
ら各光学像のコントラストデータを抽出して比較するこ
とによって、前記原稿と前記光学センサユニットとの間
の焦点調節状態を評価する焦点検出手順と、 前記各光学像のデータから各光学像の平滑化データを抽
出すると共に、前記焦点検出手順による前記評価の信頼
度を示す指標として、抽出した各平滑化データ間のばら
つきを取得する信頼度取得手順とを記憶したことを特徴
とする画像読取装置に対する制御手順を記憶した記憶媒
体。
9. While irradiating a reading light to a document,
An optical sensor unit for detecting an optical image formed by light transmitted or reflected by the irradiation area of the reading light on the original; and a focus mechanism for changing a positional relationship between the original and the optical sensor unit in a focus adjustment direction. A storage medium storing a control procedure for the image reading apparatus, wherein a sampling procedure for capturing data of each optical image detected by the optical sensor unit under each of the positional relationships changed by driving the focus mechanism; By extracting and comparing contrast data of each optical image from the data of each optical image captured by the sampling procedure and comparing the focus data, a focus detection procedure for evaluating a focus adjustment state between the document and the optical sensor unit, While extracting the smoothed data of each optical image from the optical image data, Wherein as an index indicating the reliability of the evaluation, the image reading storage medium storing a control procedure for the apparatus characterized by storing the reliability obtaining step of obtaining the variation between the smoothed data extracted.
【請求項10】 請求項9に記載の画像読取装置に対す
る制御手順を記憶した記憶媒体において、 前記信頼度取得手順は、 前記平滑化データとして平坦化データを抽出する手順で
あることを特徴とする画像読取装置に対する制御手順を
記憶した記憶媒体。
10. The storage medium storing a control procedure for the image reading device according to claim 9, wherein the reliability acquisition step is a step of extracting flattened data as the smoothed data. A storage medium storing a control procedure for the image reading device.
【請求項11】 請求項9に記載の光学センサユニット
及びフォーカス機構を備えると共に、情報を外部に報知
する報知手段を更に備えた画像読取装置に対する制御手
順を記憶した記憶媒体であって、 請求項9に記載のサンプリング手順及び焦点検出手順
と、 請求項9又は請求項10に記載の信頼度取得手順とを記
憶し、 前記信頼度取得手順には、 前記取得したばらつきと所定値とを比較して、そのばら
つきがその所定値よりも高い場合、前記焦点検出手順に
よる評価の信頼度が不十分であるとみなし、前記報知手
段に対しその旨報知するよう指示する判断手順が含まれ
ることを特徴とする画像読取装置に対する制御手順を記
憶した記憶媒体。
11. A storage medium storing a control procedure for an image reading apparatus, comprising: the optical sensor unit according to claim 9; and a focus mechanism, and further comprising a notifying unit for notifying information to the outside. And storing the sampling procedure and the focus detection procedure according to claim 9, and the reliability acquisition procedure according to claim 9 or 10, wherein the reliability acquisition procedure compares the acquired variation with a predetermined value. If the variation is higher than the predetermined value, a determination procedure is included that considers that the reliability of the evaluation by the focus detection procedure is insufficient and instructs the notification means to notify the user. A storage medium storing a control procedure for the image reading apparatus.
【請求項12】 請求項9に記載の光学センサユニット
及びフォーカス機構を備えると共に、前記原稿と前記光
学センサユニットとの位置関係を、前記照射領域により
前記原稿上が走査されるような方向に変化させるスキャ
ン機構を更に備えた画像読取装置に対する制御手順を記
憶した記憶媒体であって、 請求項9に記載のサンプリング手順及び焦点検出手順
と、 請求項9又は請求項10に記載の信頼度取得手順とを記
憶し、 前記信頼度取得手順には、 前記取得したばらつきと所定値とを比較して、そのばら
つきがその所定値よりも高い場合、前記スキャン機構を
駆動して前記原稿上における前記照射領域の位置を変更
した上で前記サンプリング手順を再実行させる判断手順
が含まれることを特徴とする画像読取装置に対する制御
手順を記憶した記憶媒体。
12. An optical sensor unit and a focus mechanism according to claim 9, wherein a positional relationship between said document and said optical sensor unit is changed in a direction such that said document is scanned by said irradiation area. A storage medium storing a control procedure for an image reading apparatus further comprising a scanning mechanism for causing the image reading apparatus to perform a sampling procedure and a focus detection procedure according to claim 9, and a reliability acquisition procedure according to claim 9 or 10. In the reliability obtaining step, the obtained variation is compared with a predetermined value, and when the variation is higher than the predetermined value, the scanning mechanism is driven to drive the irradiation on the document. A control procedure for the image reading apparatus, which includes a determination procedure for re-executing the sampling procedure after changing the position of the area, is described. The storage medium.
【請求項13】 原稿に対して読取光を照射すると共
に、その原稿における前記読取光の照射領域を透過又は
反射した光がなす光学像を検出する光学センサユニット
と、 前記原稿と前記光学センサユニットとの位置関係を焦点
調節方向に変化させるフォーカス機構とを備えた画像読
取装置に対する制御手順を含んだコンピュータプログラ
ム信号を符号化して伝送するためのデータ構造におい
て、 前記制御手順は、 前記フォーカス機構の駆動によって変化する各前記位置
関係の下で前記光学センサユニットが検出する各光学像
のデータを取り込むサンプリング手順と、 前記サンプリング手順が取り込んだ各光学像のデータか
ら各光学像のコントラストデータを抽出して比較するこ
とによって、前記原稿と前記光学センサユニットとの間
の焦点調節状態を評価する焦点検出手順と、 前記各光学像のデータから各光学像の平滑化データを抽
出すると共に、前記焦点検出手順による前記評価の信頼
度を示す指標として、抽出した各平滑化データ間のばら
つきを取得する信頼度取得手順とを含むことを特徴とす
るコンピュータプログラム信号を符号化して伝送するた
めのデータ構造。
13. An optical sensor unit for irradiating a document with reading light, and detecting an optical image formed by light transmitted or reflected in the reading light irradiation area of the document, the document and the optical sensor unit. A data structure for encoding and transmitting a computer program signal including a control procedure for an image reading apparatus having a focus mechanism for changing a positional relationship between the focus mechanism and the focus mechanism. A sampling procedure for capturing data of each optical image detected by the optical sensor unit under each of the positional relationships changed by driving; and extracting contrast data of each optical image from data of each optical image captured by the sampling procedure. Comparing the focus between the original and the optical sensor unit Focus detection procedure for evaluating the knot state, and extracted smoothed data of each optical image from the data of each optical image, and each extracted smoothed data as an index indicating the reliability of the evaluation by the focus detection procedure And a reliability obtaining procedure for obtaining a variation between the two. A data structure for encoding and transmitting a computer program signal.
JP2000202601A 2000-07-04 2000-07-04 Image reader, controlling method therefor, memory medium with stored control procedure therefor and data structure for coding and transmitting computer program signals Pending JP2002027207A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000202601A JP2002027207A (en) 2000-07-04 2000-07-04 Image reader, controlling method therefor, memory medium with stored control procedure therefor and data structure for coding and transmitting computer program signals

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000202601A JP2002027207A (en) 2000-07-04 2000-07-04 Image reader, controlling method therefor, memory medium with stored control procedure therefor and data structure for coding and transmitting computer program signals

Publications (1)

Publication Number Publication Date
JP2002027207A true JP2002027207A (en) 2002-01-25

Family

ID=18700099

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000202601A Pending JP2002027207A (en) 2000-07-04 2000-07-04 Image reader, controlling method therefor, memory medium with stored control procedure therefor and data structure for coding and transmitting computer program signals

Country Status (1)

Country Link
JP (1) JP2002027207A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006268835A (en) * 2005-02-14 2006-10-05 Fujifilm Electronic Imaging Ltd Method and device for predicting focus position

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006268835A (en) * 2005-02-14 2006-10-05 Fujifilm Electronic Imaging Ltd Method and device for predicting focus position

Similar Documents

Publication Publication Date Title
US20070183652A1 (en) Method for detecting a code with the aid of a mobile station
JP4412214B2 (en) Pattern recognition apparatus, pattern recognition method, and electronic apparatus having the pattern recognition apparatus
CN111612696B (en) Image stitching method, device, medium and electronic equipment
CN111031359B (en) Video playing method and device, electronic equipment and computer readable storage medium
JPH11215498A (en) Image processor, image processing method and program storage medium thereof
JP2006211046A (en) Photographing apparatus, image processing method for photographing apparatus, and program
JP4182937B2 (en) Image capturing apparatus, image processing method for image capturing apparatus, and program
CN113923352A (en) Holder control method, holder control device, electronic equipment and storage medium
US10373329B2 (en) Information processing apparatus, information processing method and storage medium for determining an image to be subjected to a character recognition processing
JP4600019B2 (en) Imaging apparatus, image processing method, and program
JP2002027207A (en) Image reader, controlling method therefor, memory medium with stored control procedure therefor and data structure for coding and transmitting computer program signals
JP2001307017A (en) Character plate recognizing device
JP4524616B2 (en) Imaging apparatus, image processing method and program for captured image
JP2005346012A (en) Display device, display method, and program
JP2006115334A (en) Photographing device, and image processing method and program of photographing device
JP2885969B2 (en) Micro film reader
JP3903048B2 (en) Image extraction method
JP5322842B2 (en) Automatic focusing device, automatic focusing method and program
WO2018003090A1 (en) Image processing device, image processing method, and program
JP4315025B2 (en) Imaging apparatus, image acquisition method, and program
JPH08154166A (en) Image reader
JP2003125172A (en) Control method for image reader
CN116582658A (en) Parameter determination method, corrected image correction device, corrected image correction medium, and projection apparatus
WO2012089116A1 (en) Device and method for scanning and recognizing
JP5068883B1 (en) Image processing apparatus and document reading system having the same