JP2003215439A - Focus detector - Google Patents

Focus detector

Info

Publication number
JP2003215439A
JP2003215439A JP2002014598A JP2002014598A JP2003215439A JP 2003215439 A JP2003215439 A JP 2003215439A JP 2002014598 A JP2002014598 A JP 2002014598A JP 2002014598 A JP2002014598 A JP 2002014598A JP 2003215439 A JP2003215439 A JP 2003215439A
Authority
JP
Japan
Prior art keywords
focus
lens
evaluation value
drive
mode
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
JP2002014598A
Other languages
Japanese (ja)
Inventor
Toshimi Watanabe
利巳 渡邉
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 JP2002014598A priority Critical patent/JP2003215439A/en
Publication of JP2003215439A publication Critical patent/JP2003215439A/en
Pending legal-status Critical Current

Links

Landscapes

  • Automatic Focus Adjustment (AREA)
  • Studio Devices (AREA)
  • Focusing (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To obtain a focus detector which restarts the driving of a lens in a close-range direction when a focus evaluated value is decreased after stopping the driving of the lens. <P>SOLUTION: An AF digital camera is provided with a photographic lens 1, a solid-state image pickup element 2, an A/D converter 3, a memory 4, an image processing circuit 5, an external recording circuit 6, a control circuit 8, a motor 13, a focus control mechanism 14 and a CPU 12. The CPU 12 divides the driving mode of a focus lens to a scanning mode, a restarting mode and a hill-climbing mode, and the relation of respective driving amounts is set to Ms≥Mr≥Mm. In the scanning mode, the focus lens is driven from a long distance side to the close-range side in a fixed direction. In the restarting mode, the driving of the focus lens focused and stopped is restarted to search a new focusing position. In the climbing mode, the driving direction of the focus lens is decided according to the change of the focus evaluated value. The CPU 12 sets the lens driving direction to the close-range side in the scanning mode and the restarting mode. <P>COPYRIGHT: (C)2003,JPO

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、カメラの焦点検出
装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a focus detection device for a camera.

【0002】[0002]

【従来の技術】CCDなどの撮像素子を用いて被写体像
を撮像し、撮像素子から出力される撮像信号に基づいて
撮影レンズによる焦点位置の調節状態を検出する焦点検
出装置が知られている。中でも山登り方式と呼ばれる焦
点検出方法は、撮影レンズを合焦位置に対して光軸方向
に進退させながら、撮像信号が有する周波数の高域成分
のデータ、すなわち、焦点評価値を最大とするように合
焦位置を検出する。山登り方式は、撮影レンズを常に駆
動させるので被写体の移動に対して追従性がよくなる反
面、レンズ駆動のために多くの電力を消費する。そこ
で、焦点評価値が所定値以上になると合焦状態とみなし
て一旦撮影レンズの駆動を停止し、焦点評価値が所定値
を下回ると撮影レンズの駆動を再開することが行われ
る。
2. Description of the Related Art There is known a focus detecting device for picking up an image of a subject using an image pickup device such as a CCD and detecting an adjustment state of a focus position by a photographing lens based on an image pickup signal output from the image pickup device. Among them, the focus detection method called the hill climbing method is designed to maximize the data of the high frequency component of the frequency of the image pickup signal, that is, the focus evaluation value while moving the taking lens forward and backward with respect to the in-focus position in the optical axis direction. The focus position is detected. In the mountain climbing method, since the photographing lens is always driven, the followability with respect to the movement of the subject is improved, but a lot of power is consumed for driving the lens. Therefore, when the focus evaluation value becomes equal to or higher than a predetermined value, it is considered to be in focus and the driving of the taking lens is stopped once, and when the focus evaluation value is lower than the predetermined value, the driving of the taking lens is restarted.

【0003】[0003]

【発明が解決しようとする課題】撮影レンズの駆動を再
開するとき、被写体がカメラに近づくことによって焦点
評価値が減少したのか、被写体がカメラから遠ざかるこ
とによって焦点評価値が減少したのかがわからない。一
般に、合焦後にレンズ駆動を再開させる状況として次の
2つが考えられる。 1.合焦した被写体が移動する場合 2.カメラが別の被写体にパンニングされた場合 上記1の場合は、被写体がカメラに近づくことが多く、
上記2の場合は、最至近の被写体が主要被写体である可
能性が高い。このため、レンズ駆動再開時のレンズ駆動
方向は、至近側にする方が無駄なレンズ駆動をしなくて
すむ。
When the driving of the taking lens is restarted, it is not known whether the focus evaluation value has decreased due to the subject approaching the camera or the focus evaluation value has decreased due to the subject moving away from the camera. Generally, the following two situations can be considered as situations in which the lens drive is restarted after focusing. 1. When a focused subject moves 2. When the camera is panned by another subject In the case of 1 above, the subject often approaches the camera,
In the case of 2, the closest subject is likely to be the main subject. Therefore, when the lens driving is restarted, it is possible to avoid unnecessary lens driving when the lens driving direction is set to the close side.

【0004】本発明の目的は、レンズ駆動を再開する場
合に駆動方向を至近側にするようにした焦点検出装置を
提供することにある。
An object of the present invention is to provide a focus detection device in which the driving direction is set to the close side when the lens driving is restarted.

【0005】[0005]

【課題を解決するための手段】本発明による焦点検出装
置は、撮影レンズを通して被写体像を撮像する撮像素子
と、撮像素子から出力される撮像信号を用いて焦点評価
値を演算する評価値演算回路と、評価値演算回路により
演算される焦点評価値を最大にするように、撮影レンズ
を至近側および遠距離側に駆動する駆動信号を出力する
駆動信号出力回路と、評価値演算回路により演算される
焦点評価値に応じて撮影レンズに対する駆動信号の出力
停止、および撮影レンズを至近側へ駆動する方向から撮
影レンズに対する駆動信号の出力再開を行うように駆動
信号出力回路を制御する制御回路とを備えることによ
り、上述した目的を達成する。制御回路は、評価値演算
回路で演算される焦点評価値の変化によって2種類の駆
動信号を切換えて出力するように駆動信号出力回路を制
御してもよい。上記制御回路は、(1)評価値演算回路で
過去に演算された焦点評価値が単調に減少する場合に第
1の駆動速度で撮影レンズを駆動する駆動信号を出力
し、(2)評価値演算回路で演算された焦点評価値が所定
値以上減少する場合に第1の駆動速度より速い第2の駆
動速度で撮影レンズを駆動する駆動信号を出力するよう
に駆動信号出力回路を制御することもできる。制御回路
は、評価値演算回路で過去に演算された焦点評価値が単
調に減少する場合に撮影レンズに対する駆動信号の出力
を再開させてもよい。
A focus detection apparatus according to the present invention comprises an image pickup device for picking up a subject image through a taking lens, and an evaluation value calculation circuit for calculating a focus evaluation value using an image pickup signal output from the image pickup device. And a drive signal output circuit that outputs a drive signal for driving the photographing lens to the close-up side and the long-distance side so that the focus evaluation value calculated by the evaluation value calculation circuit is maximized, and is calculated by the evaluation value calculation circuit. And a control circuit that controls the drive signal output circuit to stop the output of the drive signal to the photographing lens according to the focus evaluation value and restart the output of the drive signal to the photographing lens from the direction of driving the photographing lens to the close side. By providing, the above-mentioned object is achieved. The control circuit may control the drive signal output circuit so as to switch and output the two types of drive signals according to a change in the focus evaluation value calculated by the evaluation value calculation circuit. The control circuit outputs (1) a drive signal for driving the photographing lens at the first drive speed when the focus evaluation value calculated in the past by the evaluation value calculation circuit monotonously decreases, and (2) the evaluation value. Controlling the drive signal output circuit so as to output a drive signal for driving the photographing lens at a second drive speed higher than the first drive speed when the focus evaluation value calculated by the arithmetic circuit decreases by a predetermined value or more. You can also The control circuit may restart the output of the drive signal to the photographing lens when the focus evaluation value calculated in the past by the evaluation value calculation circuit monotonously decreases.

【0006】[0006]

【発明の実施の形態】以下、図面を参照して本発明の実
施の形態を説明する。図1は、本発明の一実施の形態に
よるAF(オートフォーカス)ディジタルカメラのブロッ
ク図である。図1において、ディジタルカメラは、撮影
レンズ1と、固体撮像素子2と、A/D変換器3と、メ
モリ4と、画像処理回路5と、外部記録回路6と、AE
/AWB処理回路7と、コントロール回路8と、バンド
パスフィルタ9と、積算回路10と、AF演算回路11
と、モータ13と、フォーカス制御機構14とを有す
る。これらのうち、AE/AWB処理回路7、バンドパ
スフィルタ9、積算回路10、およびAF演算回路11
は、CPU12の中に構成される。
BEST MODE FOR CARRYING OUT THE INVENTION Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram of an AF (autofocus) digital camera according to an embodiment of the present invention. In FIG. 1, the digital camera includes a taking lens 1, a solid-state image sensor 2, an A / D converter 3, a memory 4, an image processing circuit 5, an external recording circuit 6, and an AE.
/ AWB processing circuit 7, control circuit 8, bandpass filter 9, integrating circuit 10, AF arithmetic circuit 11
, A motor 13, and a focus control mechanism 14. Among these, the AE / AWB processing circuit 7, the bandpass filter 9, the integrating circuit 10, and the AF arithmetic circuit 11
Are configured in the CPU 12.

【0007】撮影レンズ1は、当該レンズを通過した被
写体像を固体撮像素子2の撮像面上に結像させるように
焦点位置の調節を行う不図示のフォーカスレンズを含
む。固体撮像素子2は、たとえば、CCDであり、撮像
面上に結像される被写体像の光の強弱に応じて画素ごと
に信号電荷を蓄積する。固体撮像素子2には、コントロ
ール回路8からタイミング信号が供給される。固体撮像
素子2に蓄積された信号電荷は、タイミング信号によっ
て掃き出され、撮像信号としてA/D変換器3へ送られ
る。なお、固体撮像素子2は、CCDの代わりにMOS
センサやCIDなどを用いて構成してもよい。
The taking lens 1 includes a focus lens (not shown) for adjusting the focus position so that the subject image passing through the lens is formed on the image pickup surface of the solid-state image pickup device 2. The solid-state image sensor 2 is, for example, a CCD, and accumulates a signal charge for each pixel according to the intensity of light of a subject image formed on the imaging surface. A timing signal is supplied from the control circuit 8 to the solid-state image sensor 2. The signal charge accumulated in the solid-state image pickup device 2 is swept out by the timing signal and sent to the A / D converter 3 as an image pickup signal. Note that the solid-state image sensor 2 is a MOS instead of a CCD.
You may comprise using a sensor, CID, etc.

【0008】A/D変換器3はアナログ信号をディジタ
ル信号に変換し、変換後の画像データをメモリ4へ出力
する。画像データはメモリ4に一旦格納された後、画像
処理回路5へ出力される。画像処理回路5は、ゲイン制
御回路、AE用積算回路、輝度信号生成回路、および色
差信号生成回路などの信号処理回路を含む。画像処理回
路5は、ディジタル変換後の画像データに対して輪郭補
償やガンマ補正などの画像処理を施す。画像処理回路5
はさらに、画像処理を施した画像データを所定の圧縮形
式(たとえば、JPEG方式)でデータ圧縮して外部記
録回路6へ出力する。外部記録回路6は、ディジタルカ
メラに対して着脱されるCFメモリカードなどの不図示
の外部記憶媒体に、圧縮データを記録したり読み出した
りする。画像処理回路5は、外部記憶媒体に記録されて
いる圧縮データを読み出して伸長する際の伸長処理も行
う。
The A / D converter 3 converts an analog signal into a digital signal and outputs the converted image data to the memory 4. The image data is temporarily stored in the memory 4 and then output to the image processing circuit 5. The image processing circuit 5 includes a signal processing circuit such as a gain control circuit, an AE integration circuit, a luminance signal generation circuit, and a color difference signal generation circuit. The image processing circuit 5 performs image processing such as contour compensation and gamma correction on the digitally converted image data. Image processing circuit 5
Further, the image data subjected to the image processing is data-compressed in a predetermined compression format (for example, JPEG method) and output to the external recording circuit 6. The external recording circuit 6 records and reads the compressed data on an external storage medium (not shown) such as a CF memory card that is attached to and detached from the digital camera. The image processing circuit 5 also performs decompression processing when reading and decompressing the compressed data recorded in the external storage medium.

【0009】コントロール回路8は、固体撮像素子2に
タイミング信号を生成して送出する。CPU12は、コ
ントロール回路8、画像処理回路5、メモリ4などと接
続され、ディジタルカメラの焦点検出(AF)や測光(A
E)、ホワイトバランス調整(AWB)などの各種演算と
カメラ動作のシーケンス制御とを行う。CPU12に
は、不図示のレリーズスイッチなどから各種操作信号が
入力される。
The control circuit 8 generates and sends a timing signal to the solid-state image pickup device 2. The CPU 12 is connected to the control circuit 8, the image processing circuit 5, the memory 4, etc., and is used for focus detection (AF) and photometry (A) of the digital camera.
E), various calculations such as white balance adjustment (AWB), and sequence control of camera operation are performed. Various operation signals are input to the CPU 12 from a release switch (not shown) or the like.

【0010】上述したディジタルカメラで行われる焦点
検出処理について説明する。固体撮像素子2の各画素に
対応して出力される撮像信号は、各画素に入射された光
の強さに応じてその信号レベルが異なる。CPU12
は、固体撮像素子2から出力され、上述したメモリ4に
記憶されている画像データのうち焦点検出用のデータ
を、当該データが記憶されている所定のアドレスを指定
してメモリ4から読み出す。メモリ4から読み出された
焦点検出用のデータは、高周波成分が抽出されて焦点評
価値が演算される。具体的には、焦点検出用データをバ
ンドパスフィルタ9に通して画像データが有する所望の
周波数成分を抽出し、抽出された信号の絶対値を積算回
路10で積算することにより焦点評価値を得る。
The focus detection processing performed by the above digital camera will be described. The image pickup signal output corresponding to each pixel of the solid-state image pickup device 2 has a different signal level according to the intensity of light incident on each pixel. CPU12
Of the image data output from the solid-state imaging device 2 and stored in the memory 4 described above reads out the data for focus detection from the memory 4 by designating a predetermined address where the data is stored. A high-frequency component is extracted from the focus detection data read from the memory 4, and a focus evaluation value is calculated. Specifically, the focus detection data is passed through a bandpass filter 9 to extract a desired frequency component contained in the image data, and the absolute value of the extracted signal is integrated by an integrating circuit 10 to obtain a focus evaluation value. .

【0011】図2は、撮影レンズ1内の不図示のフォー
カスレンズの位置と焦点評価値との関係の一例を示す図
である。図2において、横軸はフォーカスレンズの位置
であり、縦軸は焦点評価値である。焦点評価値を最大に
するレンズ位置D1は、主要被写体に対するフォーカス
レンズの合焦位置である。
FIG. 2 is a diagram showing an example of the relationship between the position of a focus lens (not shown) in the taking lens 1 and the focus evaluation value. In FIG. 2, the horizontal axis is the position of the focus lens, and the vertical axis is the focus evaluation value. The lens position D1 that maximizes the focus evaluation value is the focus position of the focus lens with respect to the main subject.

【0012】AF演算回路11は、演算される焦点評価
値を最大にするように、すなわち、固体撮像素子2によ
って撮像される被写体像のエッジのボケをなくしてコン
トラストを最大にするように、フォーカスレンズ駆動信
号をモータ13に出力する。モータ13が回転すること
により、フォーカス制御機構14はフォーカスレンズを
光軸方向に進退移動させる。AF演算回路11は、フォ
ーカスレンズを図2の至近方向に駆動して焦点評価値が
減少すると、フォーカスレンズを∞(遠距離)方向に駆
動する。また、AF演算回路11は、フォーカスレンズ
を∞方向に駆動して焦点評価値が減少すると、フォーカ
スレンズを至近方向に駆動する。つまり、フォーカスレ
ンズは、焦点評価値を最大にする位置(合焦位置D1)を
挟んで至近方向と∞方向に交互に駆動される。
The AF calculation circuit 11 focuses so as to maximize the calculated focus evaluation value, that is, to maximize the contrast by eliminating the blurring of the edge of the subject image captured by the solid-state image sensor 2. The lens drive signal is output to the motor 13. When the motor 13 rotates, the focus control mechanism 14 moves the focus lens forward and backward in the optical axis direction. The AF calculation circuit 11 drives the focus lens in the direction of ∞ (far distance) when the focus lens is driven in the closest direction of FIG. 2 and the focus evaluation value decreases. Further, the AF calculation circuit 11 drives the focus lens in the close-up direction when the focus evaluation value decreases by driving the focus lens in the ∞ direction. That is, the focus lens is alternately driven in the close-up direction and the ∞ direction with the position (focus position D1) at which the focus evaluation value is maximized.

【0013】上述したAFディジタルカメラの焦点検出
装置による焦点検出処理は山登り方式と呼ばれる。山登
り方式の焦点検出処理では、固体撮像素子2で繰り返し
撮像される画像データから焦点評価値が繰り返し演算さ
れる。AFカメラは、新たに演算された焦点評価値が前
回演算された焦点評価値に対して変化していない場合
(厳密にいえば変化量が所定値未満の場合)に、焦点評
価値が最大になる合焦位置から所定の範囲内でフォーカ
スレンズの駆動を停止する。
The focus detection processing by the focus detection device of the AF digital camera described above is called a hill climbing method. In the hill-climbing focus detection process, a focus evaluation value is repeatedly calculated from image data repeatedly captured by the solid-state image sensor 2. The AF camera maximizes the focus evaluation value when the newly calculated focus evaluation value has not changed from the previously calculated focus evaluation value (strictly speaking, when the amount of change is less than the predetermined value). The drive of the focus lens is stopped within a predetermined range from the in-focus position.

【0014】AFカメラは、フォーカスレンズの駆動が
停止された状態で焦点評価値が変化すると、フォーカス
レンズの駆動を再び開始する。本発明は、山登り方式の
焦点検出処理で停止されているフォーカスレンズの駆動
を再開するとき、フォーカスレンズの駆動方向を至近側
にするようにしたものである。
The AF camera restarts the drive of the focus lens when the focus evaluation value changes while the drive of the focus lens is stopped. The present invention is such that, when the drive of the focus lens stopped in the hill climbing focus detection process is restarted, the drive direction of the focus lens is set to the close side.

【0015】以上のAFディジタルカメラのCPU12
で行われるAF処理について、図3のフローチャートを
参照して説明する。図3による処理は、カメラの不図示
のメインスイッチがパワーオン操作されると開始され
る。ステップ#1において、CPU12は、AF処理に
必要なデータおよびフラグなどを初期化し、ステップ#
2へ進む。このとき、CPU12はレンズ駆動モードを
スキャンモードにする。スキャンモードは、フォーカス
レンズをたとえば∞(遠距離)側から至近側へ一定方向
に駆動するモードである。焦点評価値が変化する位置ま
でフォーカスレンズを高速に駆動するのに適している。
CPU 12 of the AF digital camera described above
The AF processing performed in step 3 will be described with reference to the flowchart in FIG. The process shown in FIG. 3 is started when the main switch (not shown) of the camera is powered on. In step # 1, the CPU 12 initializes data and flags required for AF processing,
Go to 2. At this time, the CPU 12 sets the lens driving mode to the scan mode. The scan mode is a mode in which the focus lens is driven in a fixed direction from, for example, the ∞ (far distance) side to the close side. It is suitable for driving the focus lens at high speed up to the position where the focus evaluation value changes.

【0016】ステップ#2において、CPU12は、メ
モリ4に記憶されている焦点検出用の画像データから焦
点評価値VFvalを計算してステップ#3へ進む。ステ
ップ#3において、CPU12は、フォーカスレンズの
位置を取得する。フォーカスレンズの位置は、フォーカ
ス制御機構14からレンズ位置を示す情報を入力して取
得する。CPU12は、ステップ#2の計算で用いられ
た画像データが固体撮像素子2で電荷蓄積されたときの
フォーカスレンズの位置の平均LPavと、現在のフォー
カスレンズの位置LPとを取得してステップ#4へ進
む。
In step # 2, the CPU 12 calculates the focus evaluation value VF val from the image data for focus detection stored in the memory 4, and proceeds to step # 3. In step # 3, the CPU 12 acquires the position of the focus lens. The position of the focus lens is acquired by inputting information indicating the lens position from the focus control mechanism 14. The CPU 12 acquires the average LPav of the position of the focus lens when the image data used in the calculation of step # 2 is accumulated in the solid-state image sensor 2 and the current position LP of the focus lens, and then acquires step # 4. Go to.

【0017】ステップ#4において、CPU12は、レ
ンズ駆動モードを決定する処理を行ってステップ#5へ
進む。レンズ駆動モードには、上述したスキャンモード
の他に、山登りモードおよび再開モードがある。山登り
モードは、焦点評価値の変化に応じてフォーカスレンズ
の駆動方向を決定するモードである。フォーカスレンズ
が合焦位置の近くまで移動され、フォーカスレンズの移
動によって焦点評価値が変化する状態で用いられる。再
開モードは、合焦して停止されているフォーカスレンズ
の駆動を再開して新たな合焦位置を探すモードである。
レンズ駆動モードを決定する処理の詳細については後述
する。
In step # 4, the CPU 12 performs a process for determining the lens drive mode, and proceeds to step # 5. In addition to the scan mode described above, the lens drive mode includes a hill climbing mode and a restart mode. The mountain climbing mode is a mode in which the driving direction of the focus lens is determined according to the change in the focus evaluation value. The focus lens is moved to a position close to the in-focus position, and the focus evaluation value changes due to the movement of the focus lens. The restart mode is a mode in which the drive of the focus lens stopped after focusing is restarted to search for a new focus position.
Details of the process for determining the lens drive mode will be described later.

【0018】ステップ#5において、CPU12は、合
焦判定を行ってステップ#6へ進む。合焦判定は、算出
した焦点評価値VFvalの値、焦点評価値VFvalが前回
算出した焦点評価値に比べて変化した変化量、および現
在のフォーカスレンズ位置LPなどによって判定する。
In step # 5, the CPU 12 makes a focus determination and proceeds to step # 6. The focus determination is performed based on the calculated focus evaluation value VF val , the amount of change in the focus evaluation value VF val compared to the previously calculated focus evaluation value, the current focus lens position LP, and the like.

【0019】ステップ#6において、CPU12は、フ
ォーカスレンズの駆動量Mおよび駆動方向を決定する処
理を行ってステップ#7へ進む。レンズの駆動量Mおよ
び駆動方向を決定する処理の詳細については後述する。
ステップ#7において、CPU12は、ステップ#6で
決定された駆動量Mおよび駆動方向でフォーカスレンズ
を駆動するように、フォーカスレンズ駆動指示をモータ
13へ出力してステップ#2へ戻る。これにより、指示
された駆動量Mで、指示された駆動方向にフォーカスレ
ンズが駆動される。
In step # 6, the CPU 12 performs a process of determining the drive amount M and drive direction of the focus lens, and proceeds to step # 7. Details of the process for determining the driving amount M and the driving direction of the lens will be described later.
In step # 7, the CPU 12 outputs a focus lens drive instruction to the motor 13 so as to drive the focus lens in the drive amount M and the drive direction determined in step # 6, and returns to step # 2. As a result, the focus lens is driven in the instructed drive direction with the instructed drive amount M.

【0020】図3による処理では、焦点検出用の画像デ
ータから焦点評価値VFvalを計算する(ステップ#
2)ごとにレンズ駆動モード(ステップ#4)、レンズ
駆動量Mおよび駆動方向(ステップ#6)を決定し、決
定した駆動量Mおよび駆動方向でフォーカスレンズを駆
動する(ステップ#7)一連の動作が繰り返し行われ
る。レンズ駆動量Mは、モータ13に対する1回の駆動
指示でフォーカスレンズが駆動される量である。つま
り、フォーカスレンズは、駆動量Mによるステップ駆動
が繰り返されることによって光軸方向に進退移動する。
フォーカスレンズの移動速度は、ステップ駆動1回当た
りの駆動量Mを変化させることによって増減される。
In the process shown in FIG. 3, the focus evaluation value VF val is calculated from the image data for focus detection (step #
The lens drive mode (step # 4), the lens drive amount M and the drive direction (step # 6) are determined for each 2), and the focus lens is driven with the determined drive amount M and drive direction (step # 7). The operation is repeated. The lens driving amount M is the amount by which the focus lens is driven by one driving instruction to the motor 13. That is, the focus lens moves back and forth in the optical axis direction by repeating the step driving with the driving amount M.
The moving speed of the focus lens is increased or decreased by changing the driving amount M per step driving.

【0021】図4は、レンズ駆動モードを決定する処理
の流れを説明するフローチャートである。ステップ#1
01において、CPU12は、合焦停止中か否かを判定
する。CPU12は、合焦してフォーカスレンズの駆動
が停止されている場合にステップ#101を肯定判定し
てステップ#105へ進み、フォーカスレンズの駆動が
停止されていない場合にステップ#101を否定判定し
てステップ#102へ進む。フォーカスレンズの駆動停
止の判定は、合焦停止フラグが1にセットされていると
き停止中、合焦停止フラグが0にセットされているとき
駆動中と判定する。なお、図3による処理が開始される
ときの合焦停止フラグは、初期値0にセットされてい
る。
FIG. 4 is a flow chart for explaining the flow of processing for determining the lens drive mode. Step # 1
At 01, the CPU 12 determines whether or not focusing is stopped. The CPU 12 makes an affirmative decision in step # 101 if the focus lens drive is stopped and the focus lens drive is stopped, and proceeds to step # 105, and makes a negative decision in step # 101 if the focus lens drive is not stopped. And proceeds to step # 102. The drive stop of the focus lens is determined to be stopped when the focus stop flag is set to 1, and is driven when the focus stop flag is set to 0. The focus stop flag when the process of FIG. 3 is started is set to the initial value 0.

【0022】ステップ#102において、CPU12
は、現在設定されているレンズ駆動モードが山登りモー
ドか否かを判定する。CPU12は、レンズ駆動モード
が山登りモードに設定されている場合にステップ#10
2を肯定判定し、図4による処理を終了して図3のステ
ップ#5へ進む。この場合には、山登りモードが継続さ
れる。一方、CPU12は、レンズ駆動モードが山登り
モードに設定されていない場合にステップ#102を否
定判定し、ステップ#103へ進む。
In step # 102, the CPU 12
Determines whether the currently set lens drive mode is the hill climbing mode. The CPU 12 proceeds to step # 10 when the lens drive mode is set to the mountain climbing mode.
Affirmative determination is made for 2, the process of FIG. 4 is terminated, and the process proceeds to step # 5 of FIG. In this case, the mountain climbing mode is continued. On the other hand, when the lens driving mode is not set to the mountain climbing mode, the CPU 12 makes a negative determination in step # 102, and proceeds to step # 103.

【0023】ステップ#103において、CPU12
は、焦点評価値VFvalが所定値CLt h1以上か否かを判
定する。CPU12は、VFval≧CLth1が成立する場
合にステップ#103を肯定判定してステップ#104
へ進む。この場合は、フォーカスレンズの移動によって
焦点評価値が変化する状態にあると想定されるため、山
登りモードが適している。一方、CPU12は、VF
val≧CLth1が成立しない場合にステップ#103を否
定判定し、図4による処理を終了して図3のステップ#
5へ進む。この場合は、焦点評価値VFvalが小さいの
でノイズなどの影響を受けやすく、山登りモードにする
とフォーカスレンズの駆動方向を誤って判定するおそれ
がある。このため、この時点で設定されているスキャン
モード、もしくは再開モードが継続される。
In step # 103, the CPU 12
Determines whether the focus evaluation value VF val is greater than or equal to a predetermined value CL t h1 . If VF val ≧ CL th1 is established, the CPU 12 makes an affirmative decision in step # 103 to determine in step # 104.
Go to. In this case, since it is assumed that the focus evaluation value changes due to the movement of the focus lens, the mountain climbing mode is suitable. On the other hand, the CPU 12
If val ≧ CL th1 is not established, a negative decision is made in step # 103, the processing in FIG. 4 is terminated, and step # 103 in FIG.
Go to 5. In this case, since the focus evaluation value VF val is small, the focus evaluation value VF val is small and is easily affected by noise, and the drive direction of the focus lens may be erroneously determined in the mountain climbing mode. Therefore, the scan mode or the restart mode set at this point is continued.

【0024】ステップ#104において、CPU12
は、レンズ駆動モードを山登りモードに設定し、図4に
よる処理を終了して図3のステップ#5へ進む。ステッ
プ#105において、CPU12は、合焦再開するか否
かを判定する。CPU12は、焦点評価値VFvalが合
焦判定時の焦点評価値に比べて所定値CLth2以上低下
したか否かを判定する。CPU12は、合焦判定(ステ
ップ#5)時の焦点評価値に比べて焦点評価値VFval
が所定値CLth2以上低下した場合にステップ#105
を肯定判定し、合焦停止フラグを0にセットしてステッ
プ#106へ進む。この場合には、フォーカスレンズの
駆動が再開される。一方、CPU12は、合焦判定時の
焦点評価値に比べて焦点評価値VFvalが所定値CLth2
以上低下していない場合にステップ#105を否定判定
し、図4による処理を終了して図3のステップ#5へ進
む。この場合には、合焦停止が継続される。
In step # 104, the CPU 12
Sets the lens drive mode to the hill climbing mode, ends the processing in FIG. 4, and proceeds to step # 5 in FIG. In step # 105, the CPU 12 determines whether or not to restart focusing. The CPU 12 determines whether or not the focus evaluation value VF val has decreased by a predetermined value CL th2 or more compared to the focus evaluation value at the time of focus determination. The CPU 12 compares the focus evaluation value at the time of focus determination (step # 5) with the focus evaluation value VF val.
Is less than the predetermined value CL th2 , step # 105
Is affirmatively determined, the focus stop flag is set to 0, and the process proceeds to step # 106. In this case, driving of the focus lens is restarted. On the other hand, the CPU 12 sets the focus evaluation value VF val to a predetermined value CL th2 as compared with the focus evaluation value at the time of focus determination.
If it has not decreased more than the above, a negative determination is made in step # 105, the processing in FIG. In this case, focusing stop is continued.

【0025】ステップ#106において、CPU12
は、合焦判定(ステップ#5)されてから所定時間ごと
の焦点評価値の変化をチェックする。図5は、合焦停止
後に被写体が移動することにより、焦点評価値が徐々に
減少する状態を示す図である。図5において、横軸は時
間を表し、縦軸は焦点評価値を表す。時刻t0は合焦判
定した時点である。時刻t0においてVF(t0)であった
焦点評価値は、時間の経過とともに被写体が移動すると
徐々に減少する。CPU12は、焦点評価値が1つ前の
時点の焦点評価値より小さい状態が続く単調減少の状
態、すなわち、VF(t0)>VF(t1)>VF(t2)>VF(t
3)…が成立する場合に、ステップ#106を肯定判定し
てステップ#107へ進む。ただし、時刻t1における
焦点評価値をVF(t1)、時刻t2における焦点評価値を
VF(t2)、時刻t3における焦点評価値をVF(t3)とす
る。
In step # 106, the CPU 12
Checks the change in the focus evaluation value every predetermined time after the focus determination (step # 5). FIG. 5 is a diagram showing a state in which the focus evaluation value gradually decreases due to the movement of the subject after the focus is stopped. In FIG. 5, the horizontal axis represents time and the vertical axis represents the focus evaluation value. Time t0 is the time when the focus determination is made. The focus evaluation value that was VF (t0) at time t0 gradually decreases as the subject moves over time. The CPU 12 is in a monotonically decreasing state in which the state in which the focus evaluation value is smaller than the focus evaluation value at the immediately preceding time point continues, that is, VF (t0)> VF (t1)> VF (t2)> VF (t.
When 3) is established, the affirmative decision is made in step # 106 and the operation proceeds to step # 107. However, the focus evaluation value at time t1 is VF (t1), the focus evaluation value at time t2 is VF (t2), and the focus evaluation value at time t3 is VF (t3).

【0026】図6は、合焦停止後にカメラが別の被写体
にパンニングされることにより、焦点評価値が急激に減
少する状態を示す図である。図6において、横軸は時間
を表し、縦軸は焦点評価値を表す。時刻t0は合焦判定
した時点である。CPU12は、焦点評価値VF(tn)が
1つ前の時点の焦点評価値VF(tn-1)に比べて所定値C
th3以上低下した場合、すなわち、VF(tn-1)−VF
(tn)≧CLth3が成立する場合に、ステップ#106を
否定判定してステップ#108へ進む。
FIG. 6 is a diagram showing a state in which the focus evaluation value is sharply reduced by panning the camera to another object after the focus is stopped. In FIG. 6, the horizontal axis represents time and the vertical axis represents the focus evaluation value. Time t0 is the time when the focus determination is made. The CPU 12 compares the focus evaluation value VF (tn) with the focus evaluation value VF (tn-1) at the time immediately before by a predetermined value C.
If it decreases L th3 above, i.e., VF (tn-1) -VF
When (tn) ≧ CL th3 is satisfied, the negative determination is made in step # 106, and the process proceeds to step # 108.

【0027】ステップ#107において、CPU12
は、レンズ駆動モードを再開モード(微調)に設定し、
図4による処理を終了して図3のステップ#5へ進む。
ステップ#108において、CPU12は、レンズ駆動
モードを再開モード(粗調)に設定し、図4による処理
を終了して図3のステップ#5へ進む。
In step # 107, the CPU 12
Sets the lens drive mode to restart mode (fine adjustment),
The process according to FIG. 4 is terminated and the process proceeds to step # 5 in FIG.
In step # 108, the CPU 12 sets the lens drive mode to the restart mode (coarse adjustment), ends the process in FIG. 4, and proceeds to step # 5 in FIG.

【0028】図7は、フォーカスレンズの駆動量および
駆動方向を決定する処理の流れを説明するフローチャー
トである。ステップ#201において、CPU12は、
合焦中か否かを判定する。CPU12は、合焦判定(ス
テップ#5)の結果合焦が判定されているとき、ステッ
プ#201を肯定判定してステップ#202へ進み、合
焦が判定されていないとき、ステップ#201を否定判
定してステップ#203へ進む。ステップ#202にお
いて、CPU12は、合焦停止フラグに1をセットする
とともに、レンズ駆動量Mに0をセットする。駆動量M
=0は、フォーカスレンズの駆動停止を意味する。CP
U12は、レンズ駆動量Mに0をセットすると図7によ
る処理を終了し、図3のステップ#7へ進む。
FIG. 7 is a flow chart for explaining the flow of processing for determining the drive amount and drive direction of the focus lens. In step # 201, the CPU 12
It is determined whether or not it is in focus. The CPU 12 makes an affirmative decision in step # 201 to proceed to step # 202 when the result of the in-focus determination (step # 5) shows that the in-focus state has been determined, whereas it negates step # 201 when the in-focus state has not been determined. It is determined and the process proceeds to step # 203. In step # 202, the CPU 12 sets the focus stop flag to 1 and sets the lens drive amount M to 0. Drive amount M
= 0 means stopping driving of the focus lens. CP
When the lens drive amount M is set to 0, U12 terminates the process shown in FIG. 7, and proceeds to step # 7 in FIG.

【0029】ステップ#203において、CPU12
は、設定されているレンズ駆動モードがスキャンモード
か否かを判定する。CPU12は、レンズ駆動モードが
スキャンモードに設定されている場合にステップ#20
3を肯定判定してステップ#204へ進み、レンズ駆動
モードがスキャンモードに設定されていない場合にステ
ップ#203を否定判定し、ステップ#205へ進む。
In step # 203, the CPU 12
Determines whether the set lens drive mode is the scan mode. The CPU 12 proceeds to step # 20 when the lens drive mode is set to the scan mode.
When the lens drive mode is not set to the scan mode, a negative determination is made in step # 203, and the process proceeds to step # 205.

【0030】ステップ#204において、CPU12
は、フォーカスレンズの駆動方向を至近方向にセットす
るとともに、フォーカスレンズの駆動量MにMsをセッ
トして図7による処理を終了し、図3のステップ#7へ
進む。ステップ#205において、CPU12は、設定
されているレンズ駆動モードが再開モードか否かを判定
する。CPU12は、レンズ駆動モードが再開モードに
設定されている場合にステップ#205を肯定判定して
ステップ#206へ進み、レンズ駆動モードが再開モー
ドに設定されていない場合にステップ#205を否定判
定してステップ#207へ進む。ステップ#207へ進
む場合は山登りモードの場合である。
In step # 204, the CPU 12
Sets the drive direction of the focus lens to the closest direction, sets Ms to the drive amount M of the focus lens, ends the processing in FIG. 7, and proceeds to step # 7 in FIG. In step # 205, the CPU 12 determines whether the set lens drive mode is the restart mode. The CPU 12 makes an affirmative decision in step # 205 if the lens drive mode is set to the restart mode to proceed to step # 206, and makes a negative decision in step # 205 if the lens drive mode is not set to the restart mode. And proceeds to step # 207. The case of proceeding to step # 207 is the case of the mountain climbing mode.

【0031】ステップ#206において、CPU12
は、フォーカスレンズの駆動方向を至近方向にセットす
るとともに、再開モード(粗調)の場合にフォーカスレ
ンズの駆動量MにMrを、再開モード(微調)の場合に
フォーカスレンズの駆動量MにMr/2を、それぞれセ
ットして図7による処理を終了し、図3のステップ#7
へ進む。
In step # 206, the CPU 12
Sets the drive direction of the focus lens to the close-up direction, sets Mr to the drive amount M of the focus lens in the restart mode (coarse adjustment), and sets Mr to the drive amount M of the focus lens in the restart mode (fine adjustment). / 2, respectively, and the process of FIG. 7 is terminated, and step # 7 of FIG.
Go to.

【0032】ステップ#207において、CPU12
は、フォーカスレンズの駆動方向を焦点評価値が増加す
る方向にセットするとともに、フォーカスレンズの駆動
量MにMmをセットして図7による処理を終了し、図3
のステップ#7へ進む。ここで、焦点評価値が増加する
方向は、上述したフォーカスレンズの位置の平均LPa
v、現在のフォーカスレンズの位置LP、ならびに過去
のフォーカスレンズの位置および焦点評価値の変化の履
歴により決定する。
At step # 207, the CPU 12
3 sets the drive direction of the focus lens in the direction in which the focus evaluation value increases, sets Mm to the drive amount M of the focus lens, and ends the processing in FIG.
No. # 7. Here, the direction in which the focus evaluation value increases is the average LPa of the positions of the focus lens described above.
v, the current position LP of the focus lens, and the history of changes in the past focus lens position and focus evaluation value.

【0033】上述したステップ#7では、セットされて
いるフォーカスレンズの駆動方向および駆動量Mにした
がってモータ13に対するフォーカスレンズ駆動信号が
出力される。レンズ駆動量Mが0の場合は、モータ13
が停止される。これにより、合焦中に無駄なフォーカス
レンズ駆動をしないから、カメラの消費電力が低減され
る。駆動量Mの大きさは、たとえば、Ms≧Mr≧Mm
とする。
In step # 7 described above, the focus lens drive signal to the motor 13 is output according to the drive direction and drive amount M of the focus lens that has been set. When the lens drive amount M is 0, the motor 13
Is stopped. As a result, unnecessary focus lens driving is not performed during focusing, so that power consumption of the camera is reduced. The magnitude of the driving amount M is, for example, Ms ≧ Mr ≧ Mm
And

【0034】フォーカスレンズが光軸方向に進退移動す
る移動速度は、ステップ#2〜ステップ#7が繰り返さ
れる周期と、1回当たりのレンズ駆動量M(Ms、M
r、Mm)の大きさとによって決定される。これら周期
および駆動量M(Ms、Mr、Mm)の値は、フォーカ
スレンズがスムーズに進退移動するように設定される。
The moving speed at which the focus lens moves back and forth in the direction of the optical axis is the cycle in which steps # 2 to # 7 are repeated, and the lens drive amount M (Ms, M) per time.
r, Mm). The values of the cycle and the drive amount M (Ms, Mr, Mm) are set so that the focus lens moves back and forth smoothly.

【0035】以上説明した実施の形態によれば、次の作
用効果が得られる。 (1)フォーカスレンズの駆動モードをスキャンモー
ド、再開モード、および山登りモードに分け、それぞれ
の駆動量の関係をMs≧Mr≧Mmとした。これによ
り、スキャンモードでは、焦点評価値が変化する位置ま
でフォーカスレンズを高速に移動させるので、合焦に要
する時間が短縮される。再開モードでは、スキャンモー
ドより低速でフォーカスレンズを移動させるので、焦点
評価値の変化に比べてフォーカスレンズを早く移動し過
ぎることが防止される。山登りモードでは、レンズ駆動
速度をさらに低速にして焦点評価値を最大にするように
合焦停止させる合焦判定がやりやすくなる。さらに、山
登りモードの駆動量Mmを小さくすることで、合焦停止
する際のオーバーランを小さくできる。 (2)再開モードを微調と粗調とに分け、微調時のフォ
ーカスレンズの駆動量を粗調時のフォーカスレンズの駆
動量Mrの1/2にした。合焦停止後に被写体が移動す
ることにより焦点評価値が単調減少する場合に、フォー
カスレンズの位置を微調して焦点検出処理を行うので、
主要被写体に対してフォーカスレンズを移動し過ぎるこ
となくピント合わせを行うことができる。一方、合焦停
止後にカメラが別の被写体にパンニングされることによ
り焦点評価値が急激に減少する場合に、フォーカスレン
ズの位置を粗調して焦点検出を行うので、素早く主要被
写体に対してピント合わせを行うことができる。 (3)上記(2)に加えて、再開モード時はフォーカス
レンズを必ず至近側に駆動するようにした。一般に、合
焦停止後に主要被写体が移動する場合は被写体がカメラ
に近づくことが多い。また、カメラが別の被写体にパン
ニングされる場合は、最至近の被写体が主要被写体であ
る可能性が高い。このため、レンズ駆動再開時のレンズ
駆動方向を至近側にすることは、ピント合わせが素早く
行えるとともに、無駄なレンズ駆動を防止してレンズ駆
動にともなう電力消費を低減できる。
According to the embodiment described above, the following operational effects can be obtained. (1) The drive mode of the focus lens is divided into a scan mode, a restart mode, and a hill climbing mode, and the relationship of the respective drive amounts is set to Ms ≧ Mr ≧ Mm. As a result, in the scan mode, the focus lens is moved at high speed to the position where the focus evaluation value changes, so that the time required for focusing is shortened. In the restart mode, the focus lens is moved at a lower speed than in the scan mode, so that it is possible to prevent the focus lens from moving too fast as compared with the change in the focus evaluation value. In the hill climbing mode, it becomes easy to perform the focus determination in which the focus is stopped so that the lens drive speed is further reduced to maximize the focus evaluation value. Furthermore, by reducing the drive amount Mm in the mountain climbing mode, it is possible to reduce the overrun when the focus is stopped. (2) The restart mode is divided into fine adjustment and coarse adjustment, and the drive amount of the focus lens during fine adjustment is set to 1/2 of the drive amount Mr of the focus lens during coarse adjustment. When the focus evaluation value monotonously decreases due to the movement of the subject after stopping focusing, the focus detection processing is performed by finely adjusting the position of the focus lens.
Focusing can be performed on the main subject without moving the focus lens too much. On the other hand, when the focus evaluation value sharply decreases due to the camera panning to another subject after the focus is stopped, the focus lens position is roughly adjusted to perform focus detection, so that the focus on the main subject quickly. Matching can be done. (3) In addition to the above (2), the focus lens is always driven to the close side in the restart mode. Generally, when the main subject moves after the focus is stopped, the subject often approaches the camera. Also, when the camera is panned to another subject, the closest subject is likely to be the main subject. Therefore, when the lens driving direction is set to the close side when the lens driving is restarted, focusing can be quickly performed, and unnecessary lens driving can be prevented to reduce power consumption accompanying lens driving.

【0036】上述したステップ#103において、山登
りモードに設定する条件として焦点評価値VFvalが所
定値CLth1以上か否かを判定するようにした。この代
わりに、過去の焦点評価値に対する変化の傾きの大きさ
から山登りモードに設定する条件を判定してもよい。こ
の場合には、傾きの大きさが所定値を超えると山登りモ
ードに設定する。
In step # 103, it is determined whether or not the focus evaluation value VF val is the predetermined value CL th1 or more as a condition for setting the mountain climbing mode. Instead of this, the condition for setting the mountain climbing mode may be determined based on the magnitude of the inclination of the change with respect to the past focus evaluation value. In this case, the hill climbing mode is set when the magnitude of inclination exceeds a predetermined value.

【0037】山登りモードに設定する条件を次のように
判定してもよい。バンドパスフィルタ9と通過帯域が異
なる他のバンドパスフィルタを用い、バンドパスフィル
タ9の場合と別の周波数成分を抽出して焦点評価値を演
算し、この演算値の大きさによって山登りモードに設定
するか否かを判定する。
The conditions for setting the mountain climbing mode may be determined as follows. Using another bandpass filter having a different passband from the bandpass filter 9, a frequency component different from that of the bandpass filter 9 is extracted to calculate the focus evaluation value, and the mountain climbing mode is set according to the magnitude of this calculation value. It is determined whether to do.

【0038】以上の説明では、スキャンモード時の駆動
量Msを1番大きく、山登りモード時の駆動量Mmを1
番小さく、再開モード(粗調)の駆動量Mrを両者の中
間にしたが、各駆動量の大きさは説明した通りでなくて
もよい。
In the above description, the drive amount Ms in the scan mode is the largest and the drive amount Mm in the hill climbing mode is 1.
Although the driving amount Mr in the restart mode (coarse adjustment) is the smallest, it is in the middle of both, the magnitude of each driving amount may not be as described.

【0039】上述した説明では、再開モード(粗調)の
駆動量Mrに対し、再開モード(微調)の駆動量をMr
/2にしたが、再開モード(微調)の駆動量は、Mr以
下であればよい。
In the above description, the drive amount in the restart mode (fine adjustment) is set to Mr in contrast to the drive amount Mr in the restart mode (coarse adjustment).
However, the drive amount in the restart mode (fine adjustment) may be Mr or less.

【0040】フォーカスレンズの駆動量M(Ms、M
r、Mm)の値は、各レンズ駆動モードごとに固定の値
としたが、これらの値は、算出される焦点評価値の値に
応じて変化させるようにしてもよい。
Focus lens drive amount M (Ms, M
The values of r, Mm) are fixed values for each lens drive mode, but these values may be changed according to the calculated focus evaluation value.

【0041】上述した例では、A/D変換器3でディジ
タル値に変換したデータを一旦メモリ4に記憶し、メモ
リ4から焦点検出用のデータを読み出して焦点評価値を
演算するようにした。この代わりに、メモリ4を介さず
にA/D変換器3から出力されるディジタル値を直接用
いて焦点評価値を演算するようにしてもよい。
In the above-described example, the data converted into the digital value by the A / D converter 3 is temporarily stored in the memory 4, the focus detection data is read from the memory 4, and the focus evaluation value is calculated. Alternatively, the focus evaluation value may be calculated by directly using the digital value output from the A / D converter 3 without passing through the memory 4.

【0042】以上説明した例では、合焦後に焦点評価値
が減少し、この焦点評価値の減少に応じてフォーカスレ
ンズの駆動を再開する場合について説明した。カメラが
別の被写体にパンニングされる場合は、焦点評価値が増
加する場合も想定される。この場合には、ステップ#1
06において、焦点評価値VF(tn)が1つ前の時点の焦
点評価値VF(tn-1)に比べて所定値CLth3以上変化し
た場合、すなわち、|VF(tn-1)−VF(tn)|≧CL
th3が成立する場合に、ステップ#106を否定判定し
てステップ#108へ進むようにすればよい。
In the example described above, the focus evaluation value decreases after focusing, and the drive of the focus lens is restarted in response to the decrease in the focus evaluation value. When the camera is panned to another subject, the focus evaluation value may increase. In this case, step # 1
At 06, the focus evaluation value VF (tn) changes by a predetermined value CL th3 or more as compared with the focus evaluation value VF (tn-1) at the immediately previous time, that is, | VF (tn-1) -VF ( tn) | ≧ CL
If th3 is satisfied, the determination in step # 106 is negative, and the process proceeds to step # 108.

【0043】特許請求の範囲における各構成要素と、発
明の実施の形態における各構成要素との対応について説
明する。撮像素子は、たとえば、固体撮像素子2によっ
て構成される。評価値演算回路、駆動信号出力回路、お
よび制御回路は、たとえば、CPU12によって構成さ
れる。2種類の駆動信号は、たとえば、駆動量Mrでモ
ータ13を駆動する駆動信号と、駆動量Mr/2でモー
タ13を駆動する駆動信号とがそれぞれ対応する。第1
の駆動速度は、駆動量Mr/2によるフォーカスレンズ
の駆動速度が対応する。第2の駆動速度は、駆動量Mr
によるフォーカスレンズの駆動速度が対応する。
Correspondence between each component in the claims and each component in the embodiment of the invention will be described. The image pickup device is configured by, for example, the solid-state image pickup device 2. The evaluation value calculation circuit, the drive signal output circuit, and the control circuit are configured by the CPU 12, for example. The two types of drive signals correspond, for example, to a drive signal that drives the motor 13 with the drive amount Mr and a drive signal that drives the motor 13 with the drive amount Mr / 2. First
The drive speed of (1) corresponds to the drive speed of the focus lens according to the drive amount Mr / 2. The second drive speed is the drive amount Mr.
The drive speed of the focus lens by means of.

【0044】[0044]

【発明の効果】以上詳細に説明したように本発明によれ
ば、焦点評価値に応じてレンズを至近側および遠距離側
に駆動するレンズ駆動信号を出力する焦点検出装置で、
レンズ駆動を再開する場合の駆動方向を至近側にするよ
うにした。これにより、たとえば、レンズ駆動を停止し
ている状態で被写体が近づく場合に、当該被写体に対す
るピント合わせを素早く行うことができる。
As described in detail above, according to the present invention, a focus detection device for outputting a lens drive signal for driving the lens to the close-up side and the long-distance side according to the focus evaluation value,
When the lens driving is restarted, the driving direction is set to the close side. Thereby, for example, when the subject approaches while the lens drive is stopped, it is possible to quickly focus on the subject.

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

【図1】本発明の一実施の形態によるAFディジタルカ
メラのブロック図である。
FIG. 1 is a block diagram of an AF digital camera according to an embodiment of the present invention.

【図2】撮影レンズ内のフォーカスレンズの位置と焦点
評価値との関係の一例を示す図である。
FIG. 2 is a diagram showing an example of a relationship between a position of a focus lens in a photographing lens and a focus evaluation value.

【図3】AFディジタルカメラのCPUで行われるAF
処理の流れを説明するフローチャートである。
[FIG. 3] AF performed by a CPU of an AF digital camera
It is a flow chart explaining the flow of processing.

【図4】レンズ駆動モードを決定する処理の流れを説明
するフローチャートである。
FIG. 4 is a flowchart illustrating a flow of processing for determining a lens drive mode.

【図5】合焦停止後に被写体が移動することにより、焦
点評価値が徐々に減少する状態を示す図である。
FIG. 5 is a diagram showing a state in which a focus evaluation value gradually decreases due to a subject moving after stopping focusing.

【図6】合焦停止後にカメラが別の被写体にパンニング
されることにより、焦点評価値が急激に減少する状態を
示す図である。
FIG. 6 is a diagram showing a state in which the focus evaluation value sharply decreases by panning the camera to another subject after stopping focusing.

【図7】フォーカスレンズの駆動量および駆動方向を決
定する処理の流れを説明するフローチャートである。
FIG. 7 is a flowchart illustrating the flow of processing for determining the drive amount and drive direction of the focus lens.

【符号の説明】 1…撮影レンズ、 2…固体撮像素
子、3…A/D変換器、 4…メモリ、
5…画像処理回路、 6…外部記録回
路、7…AE/AWB処理回路、 8…コントロ
ール回路、9…バンドパスフィルタ、 10…積
算回路、11…AF演算回路11、 12…C
PU、13…モータ、 14…フォ
ーカス制御機構
[Explanation of Codes] 1 ... Shooting lens, 2 ... Solid-state imaging device, 3 ... A / D converter, 4 ... Memory,
5 ... Image processing circuit, 6 ... External recording circuit, 7 ... AE / AWB processing circuit, 8 ... Control circuit, 9 ... Bandpass filter, 10 ... Integration circuit, 11 ... AF arithmetic circuit 11, 12 ... C
PU, 13 ... Motor, 14 ... Focus control mechanism

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】撮影レンズを通して被写体像を撮像する撮
像素子と、 前記撮像素子から出力される撮像信号を用いて焦点評価
値を演算する評価値演算回路と、 前記評価値演算回路により演算される焦点評価値を最大
にするように、前記撮影レンズを至近側および遠距離側
に駆動する駆動信号を出力する駆動信号出力回路と、 前記評価値演算回路により演算される焦点評価値に応じ
て前記撮影レンズに対する駆動信号の出力停止、および
前記撮影レンズを至近側へ駆動する方向から前記撮影レ
ンズに対する駆動信号の出力再開を行うように前記駆動
信号出力回路を制御する制御回路とを備えることを特徴
とする焦点検出装置。
1. An image pickup device for picking up a subject image through a taking lens, an evaluation value calculation circuit for calculating a focus evaluation value by using an image pickup signal output from the image pickup device, and calculation by the evaluation value calculation circuit. A drive signal output circuit that outputs a drive signal that drives the photographing lens to the close-up side and the long-distance side so as to maximize the focus evaluation value, and the drive signal output circuit according to the focus evaluation value calculated by the evaluation value calculation circuit. And a control circuit for controlling the drive signal output circuit so as to stop the output of the drive signal to the photographing lens and restart the output of the drive signal to the photographing lens from the direction of driving the photographing lens to the close side. Focus detection device.
【請求項2】請求項1に記載の焦点検出装置において、 前記制御回路は、前記評価値演算回路で演算される焦点
評価値の変化によって2種類の駆動信号を切換えて出力
するように前記駆動信号出力回路を制御すること特徴と
する焦点検出装置。
2. The focus detection device according to claim 1, wherein the control circuit drives the drive so as to switch and output two kinds of drive signals according to a change in the focus evaluation value calculated by the evaluation value calculation circuit. A focus detection device characterized by controlling a signal output circuit.
【請求項3】請求項2に記載の焦点検出装置において、 前記制御回路は、(1)前記評価値演算回路で過去に演算
された焦点評価値が単調に減少する場合に第1の駆動速
度で前記撮影レンズを駆動する駆動信号を出力し、(2)
前記評価値演算回路で演算された焦点評価値が所定値以
上減少する場合に前記第1の駆動速度より速い第2の駆
動速度で前記撮影レンズを駆動する駆動信号を出力する
ように前記駆動信号出力回路を制御することを特徴とす
る焦点検出装置。
3. The focus detection device according to claim 2, wherein the control circuit has: (1) a first drive speed when the focus evaluation value calculated in the past by the evaluation value calculation circuit monotonically decreases. Output the drive signal to drive the shooting lens with, (2)
The drive signal for outputting the drive signal for driving the photographing lens at the second drive speed higher than the first drive speed when the focus evaluation value calculated by the evaluation value calculation circuit decreases by a predetermined value or more. A focus detection device characterized by controlling an output circuit.
【請求項4】請求項1に記載の焦点検出装置において、 前記制御回路は、前記評価値演算回路で過去に演算され
た焦点評価値が単調に減少する場合に前記撮影レンズに
対する駆動信号の出力を再開させることを特徴とする焦
点検出装置。
4. The focus detection device according to claim 1, wherein the control circuit outputs a drive signal to the photographing lens when the focus evaluation value calculated in the past by the evaluation value calculation circuit monotonically decreases. A focus detection device characterized by restarting.
JP2002014598A 2002-01-23 2002-01-23 Focus detector Pending JP2003215439A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002014598A JP2003215439A (en) 2002-01-23 2002-01-23 Focus detector

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002014598A JP2003215439A (en) 2002-01-23 2002-01-23 Focus detector

Publications (1)

Publication Number Publication Date
JP2003215439A true JP2003215439A (en) 2003-07-30

Family

ID=27651232

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002014598A Pending JP2003215439A (en) 2002-01-23 2002-01-23 Focus detector

Country Status (1)

Country Link
JP (1) JP2003215439A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010078764A (en) * 2008-09-25 2010-04-08 Nikon Corp Focus detection device and method
WO2018096790A1 (en) * 2016-11-28 2018-05-31 オリンパス株式会社 Imaging device, method for controlling imaging device, and recording medium storing focus adjustment program

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010078764A (en) * 2008-09-25 2010-04-08 Nikon Corp Focus detection device and method
WO2018096790A1 (en) * 2016-11-28 2018-05-31 オリンパス株式会社 Imaging device, method for controlling imaging device, and recording medium storing focus adjustment program
US10841480B2 (en) 2016-11-28 2020-11-17 Olympus Corporation Imaging device, control method of imaging device, and recording medium storing focus adjustment program

Similar Documents

Publication Publication Date Title
JP4265233B2 (en) camera
JP4543602B2 (en) camera
JP4647885B2 (en) camera
JP2004361484A (en) Autofocus camera
JP4645413B2 (en) Imaging device
JP4614143B2 (en) Imaging apparatus and program thereof
CN106470317B (en) Image pickup apparatus and control method thereof
US7355634B2 (en) Moving image pickup apparatus carrying out automatic focus adjustment and still image recording method therefor
JP2007052061A (en) Imaging device, focusing operation control method, and electronic information apparatus
JP5335408B2 (en) Focus adjustment apparatus and method
JP2001249267A (en) Automatic focusing device, digital camera, portable information inputting device, focal position detecting method, and recording medium which can be read by computer
JP4434345B2 (en) Automatic focusing apparatus and method
JP5765935B2 (en) Focus adjustment apparatus and method
JP4902946B2 (en) Auto focus camera
JP2000258681A (en) Focusing device
JP2007171807A (en) Focus detection device and camera
JP5326613B2 (en) Imaging apparatus and program
JP2003215439A (en) Focus detector
JP2004077960A (en) Camera
JP6069853B2 (en) Focus detection device
JP4967930B2 (en) Focus detection device
JPH11331676A (en) Automatic focus controller
JP4496051B2 (en) Imaging device
JP4777001B2 (en) Automatic focusing device and imaging device
JP2003215438A (en) Focus detector