JP2006243609A - Autofocus device - Google Patents

Autofocus device Download PDF

Info

Publication number
JP2006243609A
JP2006243609A JP2005062174A JP2005062174A JP2006243609A JP 2006243609 A JP2006243609 A JP 2006243609A JP 2005062174 A JP2005062174 A JP 2005062174A JP 2005062174 A JP2005062174 A JP 2005062174A JP 2006243609 A JP2006243609 A JP 2006243609A
Authority
JP
Japan
Prior art keywords
subject
subject distance
distance
continuous shooting
focusing operation
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
JP2005062174A
Other languages
Japanese (ja)
Inventor
Toshiaki Maeda
敏彰 前田
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 JP2005062174A priority Critical patent/JP2006243609A/en
Publication of JP2006243609A publication Critical patent/JP2006243609A/en
Pending legal-status Critical Current

Links

Images

Landscapes

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

Abstract

<P>PROBLEM TO BE SOLVED: To provide an autofocus device of a hybrid AF system capable of preventing a main subject from getting out of focus in the midst of consecutive photographing. <P>SOLUTION: When the decision is made that a difference between a subject distance P detected in a step S11 and a previous subject distance P0 stored is larger than a predetermined value (th) in the midst of consecutive photographing, that is, when a range-finding area comes off from the main subject, focusing operation is performed not based on the subject distance P detected at that time but based on the previous subject distance P0. At such a time, since the previous subject distance P0 is the subject distance of the main subject, a picture where the main subject is brought into focus is taken. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本発明は、コントラスト検出方式AFおよび測距方式AFを行うことができるハイブリッド方式のオートフォーカス装置に関する。   The present invention relates to a hybrid autofocus apparatus capable of performing contrast detection AF and distance measurement AF.

従来より、デジタルスチルカメラ等の電子カメラでは、撮像素子で撮像された画像の高周波成分を鮮鋭度に置き換えた焦点評価値を利用して焦点自動調節(以下ではAFと記す)を行う、コントラスト検出AFが知られている。コントラスト検出AFでは、撮像面そのものの合焦状態を検出しているため合焦精度面で優れているとともに、焦点検出用のセンサを別途設ける必要がないため、カメラの低コスト化や小型化の面でも有利である。   Conventionally, an electronic camera such as a digital still camera performs automatic focus adjustment (hereinafter referred to as AF) by using a focus evaluation value obtained by replacing a high-frequency component of an image captured by an image sensor with a sharpness. AF is known. Contrast detection AF is superior in focusing accuracy because it detects the in-focus state of the imaging surface itself, and it is not necessary to provide a separate focus detection sensor. This is also advantageous.

しかし、複数回のサンプリングが必要なため、合焦動作に時間がかかるという欠点を有している。そのため、合焦速度の高速化を向上させるために、上述したコントラスト検出AFと測距センサを用いた周知の外光AFとを切り換えて使用することができるハイブリッドAF式の測距装置が提案されている(例えば、特許文献1参照)。この測距装置では、コントラスト検出AFと外光AFとの二つのAF方式を、合焦時間短縮を優先させる撮影モードの設定の有無に基づき適宜切り換え可能に構成したことで、タイムラグが好ましくないシーンでもシャッターチャンスを逃さない高速なAFを可能としている。   However, since a plurality of samplings are required, the focusing operation takes time. For this reason, in order to improve the speeding up of the focusing speed, a hybrid AF type distance measuring device that can be used by switching between the above-described contrast detection AF and known outside light AF using a distance measuring sensor has been proposed. (For example, refer to Patent Document 1). In this distance measuring device, the two AF methods of contrast detection AF and external light AF can be appropriately switched based on the presence / absence of a shooting mode setting in which priority is given to shortening the focusing time, so that a scene where the time lag is not preferable However, it enables high-speed AF that never misses a photo opportunity.

特開2001−255456号公報JP 2001-255456 A

しかしながら、外光AFにおける測距エリアは比較的狭いため、動いている被写体を連写している場合に測距エリアが被写体から外れてしまうと背景にピントが合ってしまうことになる。その結果、連写された複数コマの中に、被写体にピントが合っていない画像が含まれるてしまうという不都合が生じる。   However, since the distance measurement area in the external light AF is relatively narrow, the background is in focus when the distance measurement area is out of the subject when continuously shooting a moving subject. As a result, there is an inconvenience that an image whose subject is not in focus is included in a plurality of continuously shot frames.

請求項1の発明によるオートフォーカス装置は、撮影レンズにより結像された被写体像を撮像して得られる撮像信号に基づいて、被写体像の焦点評価値を算出する評価値演算手段と、被写体光を受光して被写体距離を検出する測距手段と、焦点評価値が最大となるように撮影レンズのフォーカスレンズを駆動して合焦動作を行う第1のオートフォーカス手段と、測距手段で検出した被写体距離に基づいて合焦動作を行う第2のオートフォーカス手段と、連写撮影指令により複数回連続して撮影する連続撮影モードを設定する設定手段と、設定手段による連続撮影モードの設定がない場合に第1のオートフォーカス手段で合焦動作を行わせ、設定手段により連続撮影モードが設定されると、連続撮影の初回撮影を第1のオートフォーカス手段で合焦動作を行わせた後に、連続撮影の2回目撮影以後は第2のオートフォーカス手段で合焦動作させる第1の制御手段と、初回撮影時の合焦状態に対応する被写体距離を記憶する記憶手段と、連続撮影中の2回目以後の撮影時に、測距手段により検出される被写体距離と記憶手段に記憶された被写体距離との差が、被写体距離変化の判定値以下か否かを判定する判定手段と、連続撮影中に、(a)判定手段により判定値以下と判定された場合は、測距手段により検出される被写体距離に基づいて合焦動作を行わせるとともに、記憶手段に記憶されている被写体距離を測距手段により検出される被写体距離で置き換え、(b)判定手段により判定値以下でないと判定された場合は、記憶手段に記憶された被写体距離に基づいて合焦動作を行わせる第2の制御手段とを備えたことを特徴とする。
請求項2の発明によるオートフォーカス装置は、撮影レンズにより結像された被写体像を撮像して得られる撮像信号に基づいて、被写体像の焦点評価値を算出する評価値演算手段と、被写体光を受光して被写体距離を検出する測距手段と、焦点評価値が最大となるように撮影レンズのフォーカスレンズを駆動して合焦動作を行う第1のオートフォーカス手段と、測距手段で検出した被写体距離に基づいて合焦動作を行う第2のオートフォーカス手段と、連写撮影指令により複数回連続して撮影する連続撮影モードを設定する設定手段と、設定手段による連続撮影モードの設定がない場合に第1のオートフォーカス手段で合焦動作を行わせ、設定手段により連続撮影モードが設定されると、連続撮影の初回撮影を第1のオートフォーカス手段で合焦動作させた後に、連続撮影の2回目撮影以後は第2のオートフォーカス手段で合焦動作させる第1の制御手段と、(a)連続撮影の2回目撮影時に、測距手段により検出される被写体距離と初回撮影時の合焦状態に対応する被写体距離との差が被写体距離変化の判定値よりも大きい場合には、初回撮影時の被写体距離に基づいて合焦動作を行わせ、(b)連続撮影の3回目以後の撮影時に、測距手段により検出される被写体距離と当該撮影の1回前および2回前の各撮影時に測距手段によりそれぞれ検出される被写体距離との差が、それぞれ判定値よりも大きい場合には、当該撮影の1回前の被写体距離に基づいて合焦動作を行わせる第2の制御手段とを備えたことを特徴とする。
An autofocus device according to a first aspect of the present invention includes an evaluation value calculation means for calculating a focus evaluation value of a subject image based on an imaging signal obtained by imaging a subject image formed by a photographing lens, and subject light. Detected by a distance measuring means that detects a subject distance by receiving light, a first autofocus means that performs a focusing operation by driving a focus lens of a photographing lens so that a focus evaluation value is maximized, and a distance measuring means There is no second autofocus means for performing a focusing operation based on the subject distance, setting means for setting a continuous shooting mode for continuously shooting a plurality of times by a continuous shooting command, and no continuous shooting mode is set by the setting means In this case, when the focusing operation is performed by the first autofocus unit and the continuous shooting mode is set by the setting unit, the first autofocus unit performs the initial shooting of the continuous shooting. After performing the focusing operation, after the second continuous shooting, the first control means for performing the focusing operation with the second autofocus means, and the memory for storing the subject distance corresponding to the focusing state at the time of the first shooting. And the difference between the subject distance detected by the distance measuring means and the subject distance stored in the storage means at the time of the second and subsequent photographing during the continuous photographing is determined as to whether or not the difference between the subject distance and the subject distance During the continuous shooting with the determination means, if (a) the determination means determines that the value is equal to or less than the determination value, the focusing operation is performed based on the subject distance detected by the distance measurement means, and is stored in the storage means. The subject distance detected is replaced with the subject distance detected by the distance measuring means. When the determination means determines that it is not less than the determination value, the focusing operation is performed based on the subject distance stored in the storage means. Sase Characterized by comprising a second control means.
According to a second aspect of the present invention, there is provided an autofocus device comprising: an evaluation value calculating means for calculating a focus evaluation value of a subject image based on an imaging signal obtained by imaging a subject image formed by a photographing lens; Detected by a distance measuring means that detects a subject distance by receiving light, a first autofocus means that performs a focusing operation by driving a focus lens of a photographing lens so that a focus evaluation value is maximized, and a distance measuring means There is no second autofocus means for performing a focusing operation based on the subject distance, setting means for setting a continuous shooting mode for continuously shooting a plurality of times by a continuous shooting command, and no continuous shooting mode is set by the setting means In this case, when the focusing operation is performed by the first autofocus unit and the continuous shooting mode is set by the setting unit, the first autofocus unit performs the initial shooting of the continuous shooting. After the second focusing operation, after the second continuous shooting, the first control unit performs the focusing operation with the second autofocus unit, and (a) the distance measuring unit detects the second continuous shooting. When the difference between the subject distance and the subject distance corresponding to the in-focus state at the first shooting is larger than the determination value of the subject distance change, the focusing operation is performed based on the subject distance at the first shooting, and (b ) The difference between the subject distance detected by the distance measuring unit at the time of the third and subsequent shootings of the continuous shooting and the subject distance detected by the distance measuring unit at the first and second shootings before the shooting, And a second control unit that performs a focusing operation based on a subject distance one time before the shooting when the determination value is larger than each of the determination values.

本発明によれば、連続撮影中に測距手段による捕捉対象が主要被写体から外れた場合でも、得られた複数の撮影画像の中に主要被写体にピントが合っていない画像が含まれてしまうという不具合を防止または低減することができる。   According to the present invention, even when the object to be captured by the distance measuring means is deviated from the main subject during continuous shooting, the obtained plurality of captured images include an image in which the main subject is not in focus. Problems can be prevented or reduced.

以下、図を参照して本発明を実施するための最良の形態について説明する。図1は本発明の一実施の形態を示す図であり、オートフォーカス装置を搭載したデジタルスチルカメラのブロック図である。撮影レンズ1は焦点調節を行うためのフォーカシングレンズ(不図示)を備えており、そのフォーカシングレンズをフォーカスモータ9で駆動することにより撮影レンズ1の焦点調節が行われる。一般的に、フォーカスモータ9にはステッピングモータが使用され、CPU8からのパルス駆動によりオープンループ制御が行われる。   Hereinafter, the best mode for carrying out the present invention will be described with reference to the drawings. FIG. 1 shows an embodiment of the present invention, and is a block diagram of a digital still camera equipped with an autofocus device. The photographic lens 1 is provided with a focusing lens (not shown) for adjusting the focus, and the focus of the photographic lens 1 is adjusted by driving the focusing lens with a focus motor 9. In general, a stepping motor is used as the focus motor 9, and open loop control is performed by pulse driving from the CPU 8.

撮影レンズ1により結像された被写体像は撮像素子2の撮像面上に投影され、撮像素子2は撮像面上に結像された被写体像の光強度に応じた電気信号を出力する。フォーカスモータ9でフォーカシングレンズを駆動して焦点調節を行うことにより、撮像面上にピントの合った被写体像が結像される。撮像素子2にはCCD撮像素子やMOS型撮像素子などが用いられ、撮像素子2から出力された撮像信号はアナログ信号処理部3に入力される。   The subject image formed by the photographic lens 1 is projected on the imaging surface of the imaging device 2, and the imaging device 2 outputs an electrical signal corresponding to the light intensity of the subject image formed on the imaging surface. By performing focus adjustment by driving the focusing lens by the focus motor 9, a focused subject image is formed on the imaging surface. A CCD image sensor, a MOS type image sensor, or the like is used as the image sensor 2, and an image signal output from the image sensor 2 is input to the analog signal processing unit 3.

アナログ信号処理部3にはCDS回路、AGC回路および色分離回路などが設けられており、CDS回路では撮像信号のノイズ低減を行う相関二重サンプリング(CDS)処理が行われ、AGC回路ではゲイン調整により画像信号のレベル調整を行うオートゲインコントロール(AGC)処理が行われる。アナログ信号処理部3で処理された撮像信号は、A/D変換器4によりアナログ信号からデジタル信号に変換される。   The analog signal processing unit 3 is provided with a CDS circuit, an AGC circuit, a color separation circuit, and the like. The CDS circuit performs correlated double sampling (CDS) processing for reducing noise of the imaging signal, and the AGC circuit performs gain adjustment. Thus, auto gain control (AGC) processing for adjusting the level of the image signal is performed. The imaging signal processed by the analog signal processing unit 3 is converted from an analog signal to a digital signal by the A / D converter 4.

A/D変換された信号は、デジタル信号処理部5およびCPU8に入力される。デジタル信号処理部5はゲイン制御回路、輝度信号生成回路、および色差信号生成回路などの信号処理回路を備えており、入力された撮像信号に対して輪郭強調やガンマ補正やホワイトバランス調整などの種々の画像処理を行う。なお、デジタル信号処理部5に入力された撮像信号は一旦バッファメモリ11に記憶され、上述した各処理毎にバッファメモリ11から読み出され、処理後の信号は再びバッファメモリ11に格納される。バッファメモリ11は、撮像素子2で撮像された複数フレーム分のデータを記憶することができるフレームメモリである。   The A / D converted signal is input to the digital signal processing unit 5 and the CPU 8. The digital signal processing unit 5 includes signal processing circuits such as a gain control circuit, a luminance signal generation circuit, and a color difference signal generation circuit, and performs various functions such as edge enhancement, gamma correction, and white balance adjustment on the input imaging signal. Perform image processing. The imaging signal input to the digital signal processing unit 5 is temporarily stored in the buffer memory 11, read out from the buffer memory 11 for each process described above, and the processed signal is stored in the buffer memory 11 again. The buffer memory 11 is a frame memory that can store data for a plurality of frames imaged by the imaging device 2.

測距部10は公知のパッシブ測距やアクティブ測距を行う外光AF方式の測距装置であり、撮影レンズ1とは別に設けられた受光レンズや、その受光レンズを介して取り込んだ被写体光を受光する測距センサ等を備えている。測距部10はCPU8の指令により被写体光を受光し、測距センサの出力に基づいて測距データを演算する。その演算結果はCPU8に出力される。   The distance measuring unit 10 is an external light AF type distance measuring device that performs known passive distance measurement and active distance measurement, and includes a light receiving lens provided separately from the photographing lens 1 and subject light captured via the light receiving lens. A distance measuring sensor for receiving light is provided. The distance measurement unit 10 receives subject light in response to a command from the CPU 8 and calculates distance measurement data based on the output of the distance measurement sensor. The calculation result is output to the CPU 8.

カメラ全体の制御を行うCPU8は、AE演算部81,外光AF演算部82,コントラストAF演算部83なども備えている。AE演算部81は、A/D変換器4からの撮像信号に基づいて自動露出演算を行う。外光AF演算部82は、測距部10からの測距データに基づいて被写体距離を算出し、さらに算出された被写体距離をフォーカシングレンズの駆動量に変換する。コントラストAF演算部83では、バンドパスフィルタ等によりAFエリア内の画像データの空間周波数から所定の高周波成分を抽出し、抽出された高周波成分の絶対値を積算することにより焦点評価値が算出される。   The CPU 8 that controls the entire camera also includes an AE calculator 81, an external light AF calculator 82, a contrast AF calculator 83, and the like. The AE calculation unit 81 performs automatic exposure calculation based on the imaging signal from the A / D converter 4. The external light AF calculation unit 82 calculates the subject distance based on the distance measurement data from the distance measurement unit 10, and further converts the calculated subject distance into the driving amount of the focusing lens. The contrast AF calculation unit 83 extracts a predetermined high frequency component from the spatial frequency of the image data in the AF area by a band pass filter or the like, and calculates the focus evaluation value by integrating the absolute value of the extracted high frequency component. .

外光AFを行う場合には、外光AF演算部82で算出されたフォーカシングレンズ駆動量に基づいてフォーカスモータ9を駆動し、撮影レンズ1の焦点調節動作を行う。また、コントラスト検出AFを行う場合には、コントラストAF演算部83で算出される焦点評価値がピークとなるレンズ位置へフォーカシングレンズを移動して焦点調節動作を行う。なお、AE演算およびAF演算には撮像素子2の全撮像領域あるいは、一部の領域(例えば画面中央部や、一定領域ごとの中央、上下左右の5カ所など)の撮像信号を用いて演算を行う。   When performing external light AF, the focus motor 9 is driven based on the focusing lens drive amount calculated by the external light AF calculation unit 82, and the focus adjustment operation of the photographing lens 1 is performed. When performing contrast detection AF, the focus adjustment operation is performed by moving the focusing lens to a lens position where the focus evaluation value calculated by the contrast AF calculation unit 83 reaches a peak. In the AE calculation and AF calculation, calculation is performed using imaging signals of the entire image pickup area of the image pickup device 2 or a part of the area (for example, the center of the screen, the center of each fixed area, the top, bottom, left, and right). Do.

デジタル信号処理回部5による一連の処理が施されてバッファメモリ11に格納された画像データは、記録・再生信号処理回路13を介してメモリカード等の外部記憶媒体14に記録される。画像データを外部記憶媒体14に記録する際には、一般的に所定の圧縮形式、例えば、JPEG方式でデータ圧縮が行われる。記録・再生信号処理回路13では、画像データを外部記録媒体14に記録する際のデータ圧縮および外部記憶媒体14から圧縮された画像データを読み込む際のデータ伸長処理を行う。記録・再生信号処理回路13には外部記憶媒体14とデータ通信を行うためのインタフェースも含まれている。   Image data that has been subjected to a series of processing by the digital signal processing circuit 5 and stored in the buffer memory 11 is recorded in an external storage medium 14 such as a memory card via a recording / reproducing signal processing circuit 13. When recording image data in the external storage medium 14, data compression is generally performed in a predetermined compression format, for example, the JPEG method. The recording / reproduction signal processing circuit 13 performs data compression when recording image data on the external recording medium 14 and data expansion processing when reading compressed image data from the external storage medium 14. The recording / playback signal processing circuit 13 also includes an interface for performing data communication with the external storage medium 14.

7は被写体画像を表示するための表示装置であり、例えば、液晶を用いたLCDモニタが用いられる。撮影を行うモードにおいては、撮像素子2により所定時間間隔毎に撮像された撮像信号が、アナログ信号処理回路3,A/D変換器4,デジタル信号処理回路5により信号処理された後、バッファメモリ11に記憶されるとともにVRAM6に転送され、VRAM6に記憶された画像データに基づく画像が表示装置7に表示される。また、外部記憶媒体14に記憶された画像データを表示装置7に画像表示する場合には、外部記憶媒体14から読み出された画像データがVRAM6に転送され、表示装置7に再生表示される。ユーザによる動作指示や各種設定を行うための操作部12には、例えば、レリーズボタンや連写モード設定等を行う設定ボタン等が設けられている。   Reference numeral 7 denotes a display device for displaying a subject image. For example, an LCD monitor using liquid crystal is used. In the shooting mode, the image signal picked up by the image pickup device 2 at predetermined time intervals is subjected to signal processing by the analog signal processing circuit 3, the A / D converter 4, and the digital signal processing circuit 5, and then the buffer memory. 11 and transferred to the VRAM 6, and an image based on the image data stored in the VRAM 6 is displayed on the display device 7. When image data stored in the external storage medium 14 is displayed on the display device 7, the image data read from the external storage medium 14 is transferred to the VRAM 6 and reproduced and displayed on the display device 7. The operation unit 12 for performing operation instructions and various settings by the user is provided with a release button, a setting button for setting a continuous shooting mode, and the like, for example.

《AF処理動作の説明》
図2,3はAF処理動作を説明するフローチャートであり、図3のフローチャートは図2の処理に続く処理を示している。このAF処理は、操作部12に設けられたレリーズボタンが半押しされたことをCPU8が検出するとスタートする。AF処理がスタートすると、ステップS1で外光AF処理を行った後に、ステップS2においてコントラスト検出AF処理を行う。
<< Description of AF processing operation >>
2 and 3 are flowcharts for explaining the AF processing operation, and the flowchart of FIG. 3 shows processing following the processing of FIG. The AF process starts when the CPU 8 detects that the release button provided on the operation unit 12 is half-pressed. When the AF process starts, the external light AF process is performed in step S1, and then the contrast detection AF process is performed in step S2.

図4は、ステップS1,S2の処理におけるフォーカシングレンズの移動を説明する図である。曲線L1はフォーカシングレンズのレンズ位置と焦点評価値との関係を示したものである。撮像素子2の結像面に形成される被写体像のボケの程度とコントラストとの間には相関があり、焦点が合ったときに像のコントラストは最大になる。コントラストの高低は、撮像信号の高周波成分を抽出して得られる焦点評価値によって評価することができ、焦点評価値がピークとなるD1が合焦レンズ位置となる。   FIG. 4 is a diagram for explaining the movement of the focusing lens in the processes of steps S1 and S2. A curve L1 shows the relationship between the lens position of the focusing lens and the focus evaluation value. There is a correlation between the degree of blur of the subject image formed on the imaging surface of the image sensor 2 and the contrast, and the contrast of the image becomes maximum when the image is focused. The level of contrast can be evaluated by a focus evaluation value obtained by extracting a high-frequency component of the imaging signal, and D1 at which the focus evaluation value reaches a peak is the focus lens position.

コントラスト検出AFの場合、フォーカシングレンズを通常無限遠(∞)側または至近側に所定量ずらして、そのときに算出される焦点評価値と移動前の焦点評価値と比較する。そして、移動後の焦点評価値の方が大きい場合には、その移動方向に関しては解像感(合焦度合い)がより高まる傾向であるとみなして、フォーカシングレンズをさらに同一方向に移動して同様の演算および比較を行う。また移動後の焦点評価値の方が小さい場合は、その移動方向は合焦度合いが低くなる傾向にあるので、フォーカシングレンズを逆方向に移動して同様の演算および比較を行う。このような処理を繰り返し行う山登りAFを行うことにより、焦点評価値が極大となる合焦位置を探す。   In contrast detection AF, the focusing lens is normally shifted by a predetermined amount toward the infinity (∞) side or the close side, and the focus evaluation value calculated at that time is compared with the focus evaluation value before movement. If the focus evaluation value after movement is larger, it is considered that the resolution (focusing degree) tends to increase with respect to the movement direction, and the focusing lens is further moved in the same direction. Calculate and compare If the focus evaluation value after movement is smaller, the degree of focusing tends to be lower in the moving direction, so the same calculation and comparison are performed by moving the focusing lens in the reverse direction. By performing hill-climbing AF in which such processing is repeated, a focus position where the focus evaluation value is maximized is searched.

このように、コントラスト検出AFのみを用いて焦点調節を行う場合には、合焦点サーチ開始点から焦点評価値が増大する方向に所定量ずつ移動しながら探査を行うため、ピークを検出するのに広い範囲をサーチする必要がある。例えば、探査開始位置が無限遠端でピーク位置が至近端付近にある場合には、図4の(a)のようにサーチ範囲はほぼ駆動可能範囲と同じになってしまう。   In this way, when focus adjustment is performed using only contrast detection AF, the search is performed while moving by a predetermined amount in the direction in which the focus evaluation value increases from the in-focus search start point, so that the peak is detected. It is necessary to search a wide range. For example, when the search start position is at the infinity end and the peak position is near the close end, the search range becomes substantially the same as the drivable range as shown in FIG.

一方、コントラスト検出AFと外光AFとを組み合わせたハイブリッドAF方式の場合には、上述したステップS1の外光AF処理により合焦レンズ位置D1の近傍までフォーカシングレンズを移動し、その後、ステップS2のコントラスト検出AF処理により焦点評価値のピークを探査する。この場合、探査開始位置はレンズ位置D1の近傍であるため、コントラスト検出AFにおけるサーチ範囲は(a)の場合よりも狭くなり探査時間の短縮を図ることができる。その結果、トータルの合焦時間をコントラスト検出AFのみの場合に比べて短縮することができる。   On the other hand, in the case of the hybrid AF method in which contrast detection AF and external light AF are combined, the focusing lens is moved to the vicinity of the focusing lens position D1 by the external light AF processing in step S1 described above, and then in step S2. The peak of the focus evaluation value is searched by contrast detection AF processing. In this case, since the search start position is in the vicinity of the lens position D1, the search range in the contrast detection AF is narrower than in the case of (a), and the search time can be shortened. As a result, the total focusing time can be shortened compared to the case of only contrast detection AF.

ステップS3ではレリーズボタンが全押しされている否かを判定し、全押しされていると判定した場合にはステップS4へ進み撮影記録動作を行う。一方、ステップS3でレリーズボタンが全押しされていないと判定した場合には、一連のAF処理を終了する。ステップS5では、操作部12を介して連写モードが設定されているか否かを判定し、設定されている場合には図3のステップS10へ進む。   In step S3, it is determined whether or not the release button has been fully pressed. If it is determined that the release button has been fully pressed, the process proceeds to step S4 to perform a shooting and recording operation. On the other hand, if it is determined in step S3 that the release button has not been fully pressed, the series of AF processing ends. In step S5, it is determined whether or not the continuous shooting mode is set via the operation unit 12. If it is set, the process proceeds to step S10 in FIG.

ところで、ステップS2でコントラスト検出AF動作が行われると、フォーカシングレンズは焦点評価値のピーク位置へと移動される。ステップS10では、このピーク位置へ移動後のフォーカシングレンズのレンズ位置から被写体距離を算出し、その被写体距離をCPU8に設けられた記憶部(不図示)に記憶する。または、コントラスト検出AF動作が完了したときに測距を行ってその時の被写体距離を求め、それを記憶するようにしても良い。なお、この被写体距離は前回被写体距離P0として記憶される。   By the way, when the contrast detection AF operation is performed in step S2, the focusing lens is moved to the peak position of the focus evaluation value. In step S10, the subject distance is calculated from the lens position of the focusing lens after moving to the peak position, and the subject distance is stored in a storage unit (not shown) provided in the CPU 8. Alternatively, distance measurement may be performed when the contrast detection AF operation is completed, the subject distance at that time may be obtained, and this may be stored. This subject distance is stored as the previous subject distance P0.

ステップS11では外光AFにより被写体距離Pを求める。なお、ステップS11では被写体距離Pの算出までに止めておき、フォーカシングレンズの移動処理は行わない。ステップS12ではレリーズボタンが全押しされている否かを判定し、全押しされていると判定した場合にはステップS13へ進み、全押しされていないと判定した場合には一連のAF処理を終了する。   In step S11, the subject distance P is obtained by external light AF. In step S11, the process is stopped until the subject distance P is calculated, and the focusing lens moving process is not performed. In step S12, it is determined whether or not the release button is fully pressed. If it is determined that the release button is fully pressed, the process proceeds to step S13. If it is determined that the release button is not fully pressed, a series of AF processing ends. To do.

ステップS13では、記憶されている前回被写体距離P0とステップS11で取得された今回の被写体距離Pとの差の絶対値「|P0−P|」が所定値thよりも大きいか否かを判定する。ステップS13で「|P0−P|>th」と判定されるとステップS14へ進んで測距エラーフラグerrflgをerrflg=1とし、「|P0−P|≦th」と判定されるとステップS15へ進んで測距エラーフラグerrflgをerrflg=0とし、それぞれステップS16へと進む。   In step S13, it is determined whether or not the absolute value “| P0−P |” of the difference between the stored previous subject distance P0 and the current subject distance P acquired in step S11 is greater than a predetermined value th. . If “| P0−P |> th” is determined in step S13, the process proceeds to step S14, the distance measurement error flag errflg is set to errflg = 1, and if “| P0−P | ≦ th” is determined, the process proceeds to step S15. Then, the distance measurement error flag errflg is set to errflg = 0, and the process proceeds to step S16.

例えば、連写中に測距エリアが主要被写体から背景に外れてしまったり、主要被写体よりも手前を何らかの物体が横切ったような場合には、P0に対するP1の変化が通常の連写から想定されるものよりも大きくなる。図5はこのような場合の撮影コマと被写体距離との関係を示したものである。横軸は連写中の何コマ目かを表すコマ数、縦軸は各コマにおける被写体距離を表している。図5(a)に示す例では、3コマ目処理時に測距エリアが主要被写体から外れており、4コマ目以降は再び主要被写体を捉えている。また、図5(b)に示す例では、3コマ目および4コマ目処理時に測距エリアが主要被写体から外れている。   For example, if the ranging area is out of the background from the main subject during continuous shooting, or if some object crosses in front of the main subject, the change in P1 with respect to P0 is assumed from normal continuous shooting. Larger than the ones. FIG. 5 shows the relationship between the shooting frame and the subject distance in such a case. The horizontal axis represents the number of frames representing the number of frames during continuous shooting, and the vertical axis represents the subject distance in each frame. In the example shown in FIG. 5A, the distance measurement area is out of the main subject during the third frame processing, and the main subject is captured again after the fourth frame. In the example shown in FIG. 5B, the distance measurement area is out of the main subject during the third and fourth frame processing.

図5(a)および図5(b)のいずれの場合にも、3コマ目撮影時には前回被写体距離P0である2コマ目の被写体距離との差「|P0−P|」は所定値thよりも大きくなっている。この所定値thは、このように連写中に測距エリアが主要被写体から外れてしまったか否かを判定するための許容値であり、「|P0−P|>th」の場合には上述したような状況が発生したと判定し、すなわち、被写体距離Pが取得された測距はエラーと判定して測距エラーフラグerrflgをerrflg=1に設定する。   In both cases of FIG. 5A and FIG. 5B, the difference “| P0−P |” from the subject distance of the second frame, which is the previous subject distance P0, is larger than the predetermined value th at the time of shooting the third frame. Is also getting bigger. The predetermined value th is an allowable value for determining whether or not the distance measurement area has been removed from the main subject during continuous shooting. In the case of “| P0−P |> th”, the predetermined value th is described above. It is determined that such a situation has occurred, that is, the distance measurement for which the subject distance P has been acquired is determined to be an error, and the distance measurement error flag errflg is set to errflg = 1.

ステップS16では測距エラーフラグerrflgが1であるか否かを判定する。ステップS16でerrflg=1と判定された場合には、ステップS17へ進んで前回被写体距離P0を被写体目標位置Pxに設定し、その後ステップS20へと進む。一方、ステップS16でerrflg=0と判定された場合には、ステップS18へ進んで今回の被写体距離Pを被写体目標位置Pxに設定した後、ステップS19に進んで、今回取得された被写体距離Pを新たな前回被写体距離P0として記憶する。ステップS20では、フォーカシングレンズを被写体目標位置Pxに対応するレンズ位置へ移動する。   In step S16, it is determined whether or not the ranging error flag errflg is 1. If it is determined in step S16 that errflg = 1, the process proceeds to step S17 to set the previous subject distance P0 to the subject target position Px, and then proceeds to step S20. On the other hand, if it is determined in step S16 that errflg = 0, the process proceeds to step S18, where the current subject distance P is set as the subject target position Px, and then the process proceeds to step S19 where the subject distance P acquired this time is set. Stored as a new previous subject distance P0. In step S20, the focusing lens is moved to a lens position corresponding to the subject target position Px.

その後、ステップS21で撮影動作処理を行ったならば、ステップS22においてレリーズボタンの全押し動作が行われているか否かを判定する。ステップS22で全押し動作が行われていると判定されると、連写操作が継続しているので次の撮影を行うべくステップS11へ戻り、ステップS11からステップS21までの処理を繰り返す。一方、ステップS22で全押し動作が行われていないと判定されると、一連のAF処理を終了する。   After that, if the photographing operation process is performed in step S21, it is determined in step S22 whether or not the release button is fully pressed. If it is determined in step S22 that the full-pressing operation has been performed, the continuous shooting operation is continued, so that the process returns to step S11 to perform the next shooting, and the processing from step S11 to step S21 is repeated. On the other hand, if it is determined in step S22 that the full-pressing operation has not been performed, the series of AF processing ends.

図5(a),(b)の1コマ目および2コマ目の処理時には、ステップS11で取得される被写体距離Pとそれぞれの場合の前回被写体距離P0との関係は「|P0−P|≦th」となっている。そのため、ステップS13,ステップS15と進んで、測距エラーフラグerrflgはerrflg=0に設定される。そして、ステップS16,ステップS18,ステップS19,ステップS20と進み、フォーカシングレンズは今回被写体距離Pを被写体目標位置として駆動される。なお、3コマ目の処理開始時には、前回被写体距離P0として2コマ目処理時に取得された被写体距離が記憶されている。   At the time of processing the first frame and the second frame in FIGS. 5A and 5B, the relationship between the subject distance P acquired in step S11 and the previous subject distance P0 in each case is “| P0−P | ≦≦ th ". Therefore, the process proceeds to step S13 and step S15, and the ranging error flag errflg is set to errflg = 0. Then, the process proceeds to step S16, step S18, step S19, and step S20, and the focusing lens is driven with the current subject distance P as the subject target position. At the start of the third frame processing, the subject distance acquired during the second frame processing is stored as the previous subject distance P0.

次の3コマ目処理時には、前回被写体距離P0である2コマ目の被写体距離との関係は「|P0−P|>th」となる。そのため、ステップS13,ステップS14と進んで、測距エラーフラグerrflgはerrflg=1に設定される。そして、ステップS16,ステップS17,ステップS20と進み、フォーカシングレンズは2コマ目に取得された被写体距離である前回被写体距離P0を被写体目標位置として合焦駆動され、ステップS21で撮影が行われる。すなわち、測距エリアが主要被写体から外れていても、主要被写体にピントが合った画像を撮影することができる。   At the time of the next third frame process, the relationship with the subject distance of the second frame, which is the previous subject distance P0, is “| P0−P |> th”. Therefore, the process proceeds to step S13 and step S14, and the ranging error flag errflg is set to errflg = 1. Then, the process proceeds to step S16, step S17, and step S20, and the focusing lens is driven to focus with the previous subject distance P0, which is the subject distance acquired in the second frame, as the subject target position, and photographing is performed in step S21. That is, even if the distance measurement area is out of the main subject, an image in which the main subject is in focus can be taken.

次いで、4コマ目の処理については図5の(a)と(b)では異なるので、先ず図5(a)について説明する。図5(a)の場合には「|P0−P|>th」となっているので、3コマ目と同様の処理が行われる。すなわち、測距エラーフラグerrflgはerrflg=1に設定され、ステップS16,ステップS17,ステップS20と進んで2コマ目に取得された被写体距離である前回被写体距離P0を被写体目標位置として合焦駆動される。そのため、ステップS21の撮影では、主要被写体にピントが合った画像が撮影される。5コマ目以降の処理は2コマ目の場合と同様であり、主要被写体にピントが合った画像が撮影される。   Next, since the processing of the fourth frame is different between FIGS. 5A and 5B, first, FIG. 5A will be described. In the case of FIG. 5A, since “| P0−P |> th”, the same processing as that in the third frame is performed. That is, the distance measurement error flag errflg is set to errflg = 1, and the process proceeds to step S16, step S17, and step S20 and is driven to focus with the previous subject distance P0 that is the subject distance acquired in the second frame as the subject target position. The Therefore, in the shooting in step S21, an image in which the main subject is in focus is shot. The processing for the fifth frame and thereafter is the same as that for the second frame, and an image in which the main subject is in focus is photographed.

一方、図5(b)の場合には、「|P0−P|≦th」となっているので、ステップS13,ステップS15と進んで、測距エラーフラグerrflgはerrflg=0に設定される。そして、ステップS16,ステップS18,ステップS19,ステップS20と進み、フォーカシングレンズは、4コマ目に取得された今回被写体距離Pを被写体目標位置として駆動される。その結果、4コマ目では、主要被写体にピントが合った画像が撮影される。   On the other hand, in the case of FIG. 5B, since “| P0−P | ≦ th”, the process proceeds to step S13 and step S15, and the distance measurement error flag errflg is set to errflg = 0. Then, the process proceeds to step S16, step S18, step S19, and step S20, and the focusing lens is driven with the current subject distance P acquired in the fourth frame as the subject target position. As a result, in the fourth frame, an image in which the main subject is in focus is captured.

なお、ステップS19の処理により、前回被写体距離P0として4コマ目に取得された被写体距離が記憶されている。そのため、次の5コマ目の処理は、図5(a)の場合の4コマ目の処理と同様であるが、前回被写体距離P0である4コマ目に取得された被写体距離に基づいて合焦動作が行われる。その結果、5コマ目の画像は、主要被写体に対してはピントが合っていない。6コマ目以降の処理は図5(a)の場合の5コマ目以降の処理と同様であって、主要被写体にピントのあった画像が撮影される。このように、図5(b)のような状況においては、従来ではピントがずれた画像が2コマ(3コマ目と4コマ目)発生してしまうが、本実施の形態では1コマ(5コマ目)に低減することができる。   Note that the subject distance acquired in the fourth frame as the previous subject distance P0 is stored by the processing in step S19. Therefore, the processing of the next fifth frame is the same as the processing of the fourth frame in the case of FIG. 5A, but focusing is performed based on the subject distance acquired at the fourth frame which is the previous subject distance P0. Operation is performed. As a result, the image in the fifth frame is not in focus with respect to the main subject. The processing after the sixth frame is the same as the processing after the fifth frame in the case of FIG. 5A, and an image in which the main subject is in focus is photographed. As described above, in the situation shown in FIG. 5B, conventionally, an out-of-focus image is generated in two frames (third and fourth frames), but in this embodiment, one frame (5 Frame).

《変形例》
上述した実施の形態では、図5に示すように測距エリアが主要被写体が外れてしまう場合について説明したが、例えば、連写中にカメラをパンニングしたりして主要被写体が実際に変化した場合には、検出される被写体距離は図6に示すように変化する。すなわち、測距エリアが主要被写体が外れてしまう場合は、被写体距離が大きく変化した状態はせいぜい2コマ程度であるが、パンニングが行われた場合、図6に示すようにパンニング以降は被写体距離が大きく変化した状態が継続される。
<Modification>
In the above-described embodiment, the case where the main subject is out of the distance measurement area as shown in FIG. 5 has been described. However, for example, when the main subject actually changes due to panning the camera during continuous shooting, for example. The detected subject distance changes as shown in FIG. In other words, when the main subject is out of the distance measurement area, the subject distance greatly changes to about two frames at most, but when panning is performed, the subject distance after panning as shown in FIG. The greatly changed state is continued.

図6のように被写体距離が変化した場合、図3に示す処理では、3コマ目以降において前回被写体距離P0の書き換えが行われないため、3コマ目以降も2コマ目の被写体距離に基づいて合焦動作が行われてしまうという不都合がある。そこで、変形例では図3のフローチャートに代えて図7のフローチャート用いることにより、パンニングにも対応できるようにした。なお、図3と同じ処理を行うステップには図3の場合と同一の符号を付した。   When the subject distance changes as shown in FIG. 6, in the process shown in FIG. 3, the previous subject distance P0 is not rewritten after the third frame, so the third and subsequent frames are also based on the subject distance of the second frame. There is an inconvenience that the focusing operation is performed. Therefore, in the modified example, the flowchart of FIG. 7 is used instead of the flowchart of FIG. Steps that perform the same processing as in FIG. 3 are assigned the same reference numerals as in FIG.

図7に示した変形例では、前回被写体距離P0だけでなく前々回被写体距離P1も考慮して測距エラーフラグerrflgの設定を行うようにした。まず、ステップS100では、連写1コマ目に得られた被写体距離を前回被写体距離P0および前々回被写体距離P1として記憶する。そして、ステップS12で全押しと判定されてステップS103へ進んだ場合には、記憶されている前回被写体距離P0とステップS11で取得された今回の被写体距離Pとの差の絶対値「|P0−P|」が所定値thよりも大きいか否かを判定する。ステップS103で「|P0−P|≦th」と判定されるとステップS106へ進み、測距エラーフラグerrflgをerrflg=0とする。一方、「|P0−P|>th」と判定された場合にはステップS104へ進む。   In the modification shown in FIG. 7, the distance measurement error flag errflg is set in consideration of not only the previous subject distance P0 but also the subject distance P1 twice in advance. First, in step S100, the subject distance obtained in the first frame of continuous shooting is stored as the previous subject distance P0 and the previous subject distance P1. If it is determined in step S12 that the button is fully pressed and the process proceeds to step S103, the absolute value “| P0− of the difference between the previous subject distance P0 stored and the current subject distance P acquired in step S11. It is determined whether or not “P |” is greater than a predetermined value th. If “| P0−P | ≦ th” is determined in step S103, the process proceeds to step S106, and the ranging error flag errflg is set to errflg = 0. On the other hand, if it is determined that “| P0−P |> th”, the process proceeds to step S104.

ステップS104では、記憶されている前々回被写体距離P1とステップS11で取得された今回の被写体距離Pとの差の絶対値「|P1−P|」が所定値thよりも大きいか否かを判定する。ステップS104で「|P0−P|≦th」と判定されるとステップS106へ進み測距エラーフラグerrflgをerrflg=0とし、「|P0−P|>th」と判定されるとステップS105へ進んで測距エラーフラグerrflgをerrflg=1とする。各ステップS105,S106でフラグ設定が行われたら、いずれの場合もステップS107へと進む。   In step S104, it is determined whether or not the absolute value “| P1-P |” of the difference between the stored subject distance P1 and the current subject distance P acquired in step S11 is greater than a predetermined value th. . If “| P0−P | ≦ th” is determined in step S104, the process proceeds to step S106, the distance measurement error flag errflg is set to errflg = 0, and if “| P0−P |> th” is determined, the process proceeds to step S105. The distance measurement error flag errflg is set to errflg = 1. If the flag is set in each of steps S105 and S106, the process proceeds to step S107 in any case.

ステップS107では測距エラーフラグerrflgが1であるか否かを判定する。ステップS107でerrflg=1と判定された場合には、ステップS108へ進んで前回の被写体距離P0を被写体目標位置Pxに設定する。一方、ステップS107でerrflg=0と判定された場合には、ステップS109へ進んで今回の被写体距離Pを被写体目標位置Pxに設定する。続くステップS110では、フォーカシングレンズを被写体目標位置Pxに対応するレンズ位置へ移動する。   In step S107, it is determined whether or not the ranging error flag errflg is 1. If it is determined in step S107 that errflg = 1, the process proceeds to step S108, and the previous subject distance P0 is set as the subject target position Px. On the other hand, if it is determined in step S107 that errflg = 0, the process proceeds to step S109 to set the current subject distance P as the subject target position Px. In the subsequent step S110, the focusing lens is moved to a lens position corresponding to the subject target position Px.

ステップS111では、次の連写コマ撮影に備えて、前回被写体距離P0を新たな前々回被写体距離P1として記憶し、さらに、今回取得された被写体距離Pを新たな前回被写体距離P0として記憶する。ステップS112では、撮影動作処理を行う。ステップS113では、レリーズボタンの全押し動作が行われているか否かを判定する。ステップS113で全押し動作が行われていると判定されると、連写操作が継続しているので次コマの撮影を行うべくステップS11へ戻り、ステップS11からステップS112までの処理を繰り返す。一方、ステップS113で全押し動作が行われていないと判定されると、一連のAF処理を終了する。   In step S111, in preparation for the next continuous frame shooting, the previous subject distance P0 is stored as a new previous subject distance P1, and the subject distance P acquired this time is stored as a new previous subject distance P0. In step S112, photographing operation processing is performed. In step S113, it is determined whether or not the release button has been fully pressed. If it is determined in step S113 that the full-pressing operation has been performed, the continuous shooting operation is continued, so that the process returns to step S11 to shoot the next frame, and the processing from step S11 to step S112 is repeated. On the other hand, if it is determined in step S113 that the full-pressing operation has not been performed, the series of AF processes is terminated.

次に、具体的な処理の流れを、図5(a)の場合と、図6に示すパンニングの場合について説明する。
[図5(a)の場合]
2コマ目の処理では、前回被写体距離P0も前々回被写体距離P1も1コマ目に取得された被写体距離なので、ステップS103でNOと判定されてステップS106へ進み、測距エラーフラグerrflgはerrflg=0と設定される。その結果、ステップS107,ステップS109,ステップS110と進み、ステップS11で取得された今回被写体距離Pにより合焦動作が行われ、ステップS112では主要被写体にピントの合った画像が撮影される。なお、ステップS111の処理により、今回被写体距離が前回被写体距離P0として記憶される。
Next, a specific processing flow will be described for the case of FIG. 5A and the case of panning shown in FIG.
[In the case of FIG. 5A]
In the processing of the second frame, since the previous subject distance P0 and the previous subject distance P1 are both the subject distances acquired in the first frame, NO is determined in step S103 and the process proceeds to step S106, and the ranging error flag errflg is errflg = 0. Is set. As a result, the process proceeds to step S107, step S109, and step S110, and a focusing operation is performed based on the current subject distance P acquired in step S11. In step S112, an image focused on the main subject is captured. Note that the current subject distance is stored as the previous subject distance P0 by the processing in step S111.

3コマ目の処理では、ステップS11で取得される今回被写体距離Pは、「|P0−P|>th」および「|P1−P|>th」のいずれも満たしている。そのため、ステップS103およびステップS104においてそれぞれYESと判定され、ステップS105において測距エラーフラグerrflgがerrflg=1と設定される。その後、ステップS105からステップS107,ステップS108と順に進み、前回被写体距離P0である2コマ目の被写体距離を被写体目標位置Pxに設定する。その結果、ステップS112の撮影により、主要被写体にピントのあった画像が得られる。   In the process of the third frame, the current subject distance P acquired in step S11 satisfies both “| P0−P |> th” and “| P1−P |> th”. Therefore, YES is determined in each of steps S103 and S104, and the distance measurement error flag errflg is set to errflg = 1 in step S105. Thereafter, the process proceeds from step S105 to step S107 and step S108 in order, and the subject distance of the second frame, which is the previous subject distance P0, is set as the subject target position Px. As a result, an image in which the main subject is in focus is obtained by photographing in step S112.

次の4コマ目の処理においては、前回被写体距離P0は3コマ目に取得された被写体距離であり、前々回被写体距離P1は2コマ目に取得された被写体距離である。そのため、4コマ目に取得される今回被写体距離Pとの関係は、「|P0−P|>th」,「|P1−P|≦th」となっている。そのため、ステップS103,ステップS104,ステップS106の順に処理が進み、測距エラーフラグerrflgはerrflg=0に設定される。そして、ステップS107,ステップS109,ステップS110と進み、フォーカシングレンズは、4コマ目に取得された今回被写体距離Pを被写体目標位置として駆動される。その結果、パンニングした後の主要被写体にピントのあった画像が撮影される。   In the processing of the next fourth frame, the previous subject distance P0 is the subject distance acquired in the third frame, and the subject distance P1 is the subject distance acquired in the second frame. Therefore, the relationship with the current subject distance P acquired in the fourth frame is “| P0−P |> th” and “| P1−P | ≦ th”. Therefore, the process proceeds in the order of step S103, step S104, and step S106, and the distance measurement error flag errflg is set to errflg = 0. Then, the process proceeds to step S107, step S109, and step S110, and the focusing lens is driven with the current subject distance P acquired at the fourth frame as the subject target position. As a result, an image focused on the main subject after panning is taken.

[図6の場合]
4コマ目までの処理は図5(a)の場合と同様なので省略する。5コマ目の処理では、ステップS11で取得される今回被写体距離Pと前回被写体距離P0および前々回被写体距離P1との関係が「|P0−P|≦th」,「|P1−P|≦th」となるので、ステップS103,ステップS106と進んで測距エラーフラグerrflgがerrflg=0に設定される。そのため、ステップS107,ステップS109,ステップS110と進み、フォーカシングレンズは、4コマ目に取得された今回被写体距離Pを被写体目標位置として駆動される。その結果、パンニングした後の主要被写体にピントのあった画像が撮影される。
[In the case of FIG. 6]
The processing up to the fourth frame is the same as in the case of FIG. In the process of the fifth frame, the relationship between the current subject distance P acquired in step S11, the previous subject distance P0, and the previous subject distance P1 is “| P0−P | ≦ th”, “| P1-P | ≦ th”. Therefore, the process proceeds to step S103 and step S106, and the distance measurement error flag errflg is set to errflg = 0. Therefore, the process proceeds to step S107, step S109, and step S110, and the focusing lens is driven using the current subject distance P acquired in the fourth frame as the subject target position. As a result, an image focused on the main subject after panning is taken.

このように、上述した変形例においては、パンニング後の最初のコマを除いて目的とする主要被写体(パンニング前後の主要被写体)にピントの合った画像を撮影することができる。なお、図5(b)の状況に関しては、図3に示したフローの場合と同様の撮影結果となる。   Thus, in the above-described modification, an image focused on the target main subject (main subject before and after panning) can be taken except for the first frame after panning. Note that the situation shown in FIG. 5B is the same as in the case of the flow shown in FIG.

なお、ハイブリッド方式のカメラの場合、単写の場合の設定をハイブリッドAFを設定したり、コントラスト検出AFのみに設定したり、外光AFのみに設定することができる。図2のステップS1,ステップS2は、ハイブリッドAFで単写を行う場合の処理を示したものである。例えば、コントラスト検出AFのみに設定されている場合にはステップS1を行わずにステップS2だけを実行し、外光AFのみに設定されている場合にはステップS2を行わずにステップS1だけを実行するようにすれば良い。外光AFで連写の1コマ目撮影が行われた場合には、その時に検出されるの被写体距離がステップS10において記憶される。   In the case of a hybrid camera, the setting for single shooting can be set to hybrid AF, only contrast detection AF, or only ambient light AF. Steps S1 and S2 in FIG. 2 show processing when single shooting is performed by hybrid AF. For example, when only contrast detection AF is set, only step S2 is executed without performing step S1, and when only external light AF is set, only step S1 is executed without performing step S2. You should do it. When the first frame of continuous shooting is performed with external light AF, the subject distance detected at that time is stored in step S10.

以上説明した実施の形態と特許請求の範囲の要素との対応において、コントラストAF演算部83は評価値演算手段を、測距部10および外光AF演算部82は測距手段を、CPU8およびフォーカスモータ9は第1および第2のオートフォーカス手段を、操作部12は設定手段を、CPU8は記憶手段,判定手段,置換手段,第1および第2の制御手段をそれぞれ構成する。なお、以上の説明はあくまでも一例であり、発明を解釈する際、上記実施の形態の記載事項と特許請求の範囲の記載事項の対応関係に何ら限定も拘束もされない。   In the correspondence between the embodiment described above and the elements of the claims, the contrast AF calculation unit 83 is an evaluation value calculation unit, the distance measurement unit 10 and the outside light AF calculation unit 82 are distance measurement units, and the CPU 8 and the focus. The motor 9 constitutes first and second autofocus means, the operation unit 12 constitutes setting means, and the CPU 8 constitutes storage means, determination means, replacement means, and first and second control means. The above description is merely an example, and when interpreting the invention, there is no limitation or restriction on the correspondence between the items described in the above embodiment and the items described in the claims.

本発明によるオートフォーカス装置を搭載したデジタルスチルカメラのブロック図である。1 is a block diagram of a digital still camera equipped with an autofocus device according to the present invention. AF処理動作を説明するためのフローチャートである。It is a flowchart for demonstrating AF process operation | movement. 図2のフローチャートに続くAF処理動作を示すフローチャートである。3 is a flowchart showing an AF processing operation following the flowchart of FIG. 2. ステップS1,S2の処理におけるフォーカシングレンズの移動を説明する図である。It is a figure explaining a movement of a focusing lens in processing of Steps S1 and S2. 撮影コマと被写体距離との関係を示す図である。It is a figure which shows the relationship between an imaging | photography frame | piece and object distance. パンニングの場合の撮影コマと被写体距離との関係を示す図である。It is a figure which shows the relationship between the imaging | photography frame in the case of panning, and a to-be-photographed object distance. 変形例におけるフローチャートを示す図である。It is a figure which shows the flowchart in a modification.

符号の説明Explanation of symbols

1 撮影レンズ
2 撮像素子
8 CPU
9 フォーカスモータ
10 測距部
12 操作部
81 AE演算部
82 外光AF演算部
83 コントラストAF演算部
1 Shooting Lens 2 Image Sensor 8 CPU
DESCRIPTION OF SYMBOLS 9 Focus motor 10 Distance measuring part 12 Operation part 81 AE calculating part 82 Outside light AF calculating part 83 Contrast AF calculating part

Claims (2)

撮影レンズにより結像された被写体像を撮像して得られる撮像信号に基づいて、前記被写体像の焦点評価値を算出する評価値演算手段と、
被写体光を受光して被写体距離を検出する測距手段と、
前記焦点評価値が最大となるように前記撮影レンズのフォーカスレンズを駆動して合焦動作を行う第1のオートフォーカス手段と、
前記測距手段で検出した被写体距離に基づいて合焦動作を行う第2のオートフォーカス手段と、
連写撮影指令により複数回連続して撮影する連続撮影モードを設定する設定手段と、
前記設定手段による連続撮影モードの設定がない場合に前記第1のオートフォーカス手段で合焦動作を行わせ、前記設定手段により連続撮影モードが設定されると、連続撮影の初回撮影を前記第1のオートフォーカス手段で合焦動作を行わせた後に、連続撮影の2回目撮影以後は前記第2のオートフォーカス手段で合焦動作させる第1の制御手段と、
前記初回撮影時の合焦状態に対応する被写体距離を記憶する記憶手段と、
前記連続撮影中の2回目以後の撮影時に、前記測距手段により検出される被写体距離と前記記憶手段に記憶された被写体距離との差が、被写体距離変化の判定値以下か否かを判定する判定手段と、
前記連続撮影中に、(a)前記判定手段により前記判定値以下と判定された場合は、前記測距手段により検出される被写体距離に基づいて前記合焦動作を行わせるとともに、前記記憶手段に記憶されている前記被写体距離を前記測距手段により検出される被写体距離で置き換え、(b)前記判定手段により前記判定値以下でないと判定された場合は、前記記憶手段に記憶された被写体距離に基づいて前記合焦動作を行わせる第2の制御手段とを備えたことを特徴とするオートフォーカス装置。
Evaluation value calculating means for calculating a focus evaluation value of the subject image based on an imaging signal obtained by imaging the subject image formed by the photographing lens;
Ranging means for detecting subject distance by receiving subject light;
A first autofocus means for performing a focusing operation by driving a focus lens of the photographing lens so that the focus evaluation value is maximized;
Second autofocus means for performing a focusing operation based on the subject distance detected by the distance measuring means;
A setting means for setting a continuous shooting mode for continuously shooting a plurality of times by a continuous shooting command;
When the setting unit does not set the continuous shooting mode, the first autofocus unit performs a focusing operation, and when the setting unit sets the continuous shooting mode, the first shooting of the continuous shooting is performed. A first control unit that performs a focusing operation with the second autofocusing unit after the second shooting of continuous shooting after performing the focusing operation with the autofocusing unit,
Storage means for storing the subject distance corresponding to the in-focus state at the time of the first shooting;
It is determined whether the difference between the subject distance detected by the distance measuring unit and the subject distance stored in the storage unit is equal to or less than a determination value of the subject distance change during the second and subsequent shootings during the continuous shooting. A determination means;
During the continuous shooting, (a) when the determination means determines that the value is equal to or less than the determination value, the focusing operation is performed based on the subject distance detected by the distance measurement means, and the storage means The stored subject distance is replaced with the subject distance detected by the distance measuring means, and (b) if the determination means determines that it is not less than or equal to the determination value, the object distance stored in the storage means is An autofocus device comprising: a second control unit that performs the focusing operation based on the second control unit.
撮影レンズにより結像された被写体像を撮像して得られる撮像信号に基づいて、前記被写体像の焦点評価値を算出する評価値演算手段と、
被写体光を受光して被写体距離を検出する測距手段と、
前記焦点評価値が最大となるように前記撮影レンズのフォーカスレンズを駆動して合焦動作を行う第1のオートフォーカス手段と、
前記測距手段で検出した被写体距離に基づいて合焦動作を行う第2のオートフォーカス手段と、
連写撮影指令により複数回連続して撮影する連続撮影モードを設定する設定手段と、
前記設定手段による連続撮影モードの設定がない場合に前記第1のオートフォーカス手段で合焦動作を行わせ、前記設定手段により連続撮影モードが設定されると、連続撮影の初回撮影を前記第1のオートフォーカス手段で合焦動作させた後に、連続撮影の2回目撮影以後は前記第2のオートフォーカス手段で合焦動作させる第1の制御手段と、
(a)連続撮影の2回目撮影時に、前記測距手段により検出される被写体距離と前記初回撮影時の合焦状態に対応する被写体距離との差が被写体距離変化の判定値よりも大きい場合には、前記初回撮影時の被写体距離に基づいて前記合焦動作を行わせ、(b)連続撮影の3回目以後の撮影時に、前記測距手段により検出される被写体距離と当該撮影の1回前および2回前の各撮影時に前記測距手段によりそれぞれ検出される被写体距離との差が、それぞれ前記判定値よりも大きい場合には、当該撮影の1回前の被写体距離に基づいて前記合焦動作を行わせる第2の制御手段とを備えたことを特徴とするオートフォーカス装置。
Evaluation value calculating means for calculating a focus evaluation value of the subject image based on an imaging signal obtained by imaging the subject image formed by the photographing lens;
Ranging means for detecting subject distance by receiving subject light;
A first autofocus means for performing a focusing operation by driving a focus lens of the photographing lens so that the focus evaluation value is maximized;
Second autofocus means for performing a focusing operation based on the subject distance detected by the distance measuring means;
A setting means for setting a continuous shooting mode for continuously shooting a plurality of times by a continuous shooting command;
When the setting unit does not set the continuous shooting mode, the first autofocus unit performs a focusing operation, and when the setting unit sets the continuous shooting mode, the first shooting of the continuous shooting is performed. A first control unit that performs a focusing operation with the second autofocusing unit after the second shooting of the continuous shooting after the focusing operation with the autofocusing unit,
(A) When the subject distance detected by the distance measuring means and the subject distance corresponding to the in-focus state at the first photographing are larger than the determination value of the subject distance change during the second continuous photographing. Performs the focusing operation based on the subject distance at the time of the first photographing, and (b) the subject distance detected by the distance measuring means at the time of the third and subsequent photographings and the one time before the photographing. And when the difference between the subject distances detected by the distance measuring means at the time of each previous photographing is larger than the determination value, the in-focus state is based on the subject distance one time before the photographing. An autofocus device comprising: a second control unit that performs an operation.
JP2005062174A 2005-03-07 2005-03-07 Autofocus device Pending JP2006243609A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005062174A JP2006243609A (en) 2005-03-07 2005-03-07 Autofocus device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005062174A JP2006243609A (en) 2005-03-07 2005-03-07 Autofocus device

Publications (1)

Publication Number Publication Date
JP2006243609A true JP2006243609A (en) 2006-09-14

Family

ID=37050047

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005062174A Pending JP2006243609A (en) 2005-03-07 2005-03-07 Autofocus device

Country Status (1)

Country Link
JP (1) JP2006243609A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010170042A (en) * 2009-01-26 2010-08-05 Canon Inc Imaging apparatus and method for controlling the same
JP2011064987A (en) * 2009-09-18 2011-03-31 Canon Inc Imaging apparatus and control method thereof
CN114384091A (en) * 2021-12-16 2022-04-22 苏州镁伽科技有限公司 Automatic focusing device, panel detection equipment and method thereof

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010170042A (en) * 2009-01-26 2010-08-05 Canon Inc Imaging apparatus and method for controlling the same
JP2011064987A (en) * 2009-09-18 2011-03-31 Canon Inc Imaging apparatus and control method thereof
CN114384091A (en) * 2021-12-16 2022-04-22 苏州镁伽科技有限公司 Automatic focusing device, panel detection equipment and method thereof
CN114384091B (en) * 2021-12-16 2024-06-18 苏州镁伽科技有限公司 Automatic focusing device, panel detection equipment and method thereof

Similar Documents

Publication Publication Date Title
JP4674471B2 (en) Digital camera
JP5088118B2 (en) Focus adjustment device
KR100925319B1 (en) Image pickup apparatus equipped with function of detecting image shaking, control method of the image pickup apparatus, and recording medium recording control program of the image pickup apparatus
EP2168005B1 (en) Focus control apparatus, image sensing apparatus, and control method therefor
US8259214B2 (en) Image pickup apparatus and auto-focus detection method
JP4543602B2 (en) camera
US9906708B2 (en) Imaging apparatus, imaging method, and non-transitory storage medium storing imaging program for controlling an auto-focus scan drive
KR101728042B1 (en) Digital photographing apparatus and control method thereof
JP2007086596A (en) Camera
JP5115210B2 (en) Imaging device
JP4645413B2 (en) Imaging device
US20100026819A1 (en) Method and apparatus for compensating for motion of an autofocus area, and autofocusing method and apparatus using the same
JP4775644B2 (en) Imaging apparatus and program thereof
JP5100410B2 (en) Imaging apparatus and control method thereof
JP2003244520A (en) Photographing device
JP5217451B2 (en) Imaging device
JP2011217311A (en) Imaging apparatus and method of controlling the same
JP2011217334A (en) Imaging apparatus and method of controlling the same
US8514305B2 (en) Imaging apparatus
JP2006243609A (en) Autofocus device
JP4046276B2 (en) Digital camera
JP2008287050A (en) Automatic focusing device and imaging apparatus
JPH11211974A (en) Image pickup device
JP5069076B2 (en) Imaging apparatus and continuous imaging method
JP2003315665A (en) Camera