JP2008177785A - Imaging apparatus, and its control method - Google Patents

Imaging apparatus, and its control method Download PDF

Info

Publication number
JP2008177785A
JP2008177785A JP2007008497A JP2007008497A JP2008177785A JP 2008177785 A JP2008177785 A JP 2008177785A JP 2007008497 A JP2007008497 A JP 2007008497A JP 2007008497 A JP2007008497 A JP 2007008497A JP 2008177785 A JP2008177785 A JP 2008177785A
Authority
JP
Japan
Prior art keywords
focus
moving
focus lens
evaluation value
movement
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.)
Granted
Application number
JP2007008497A
Other languages
Japanese (ja)
Other versions
JP2008177785A5 (en
JP5020643B2 (en
Inventor
Kazuki Konishi
一樹 小西
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP2007008497A priority Critical patent/JP5020643B2/en
Publication of JP2008177785A publication Critical patent/JP2008177785A/en
Publication of JP2008177785A5 publication Critical patent/JP2008177785A5/ja
Application granted granted Critical
Publication of JP5020643B2 publication Critical patent/JP5020643B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Abstract

<P>PROBLEM TO BE SOLVED: To achieve appropriate focusing accuracy and to suppress a shutter time lag to be a short time when photographing still images in a moving image photographing mode. <P>SOLUTION: The imaging apparatus capable of photographing still images during a moving image photographing mode for recording moving images comprises: a setting means (24) for setting the number of pixels of the still image; an instruction means (24) for instructing still image photographing during the moving image photographing mode; focus adjusting means (15, 19, 22) capable of executing first focusing control of controlling focusing by first focusing accuracy during the moving image photographing mode by controlling the position of a focus lens; and a control means (15) for controlling whether or not to make the focus adjusting means execute second focusing control of accuracy higher than the first focusing accuracy corresponding to the number of pixels of the moving image and the number of pixels set by the setting means when still image photographing is instructed. <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

本発明は、撮像装置及びその制御方法に関し、詳しくは撮像光学系により結像される被写体像を光電変換する撮像素子により取得される画像信号を使用して、焦点調整を行う撮像装置及びその制御方法に関する。   The present invention relates to an imaging apparatus and a control method thereof, and more specifically, an imaging apparatus that performs focus adjustment using an image signal acquired by an imaging element that photoelectrically converts a subject image formed by an imaging optical system, and a control thereof. Regarding the method.

従来より、動画撮影と静止画撮影が共に可能な撮像装置があり、更には、動画撮影中に静止画撮影が可能な撮像装置もある。そのような撮像装置において用いられる様々な自動焦点調節(AF)方法が提案されている。一般的に、動画よりも静止画の方が多数の画素を用いて撮影されると共に、静止画では撮影された1枚の画像を鑑賞するため、動画よりも高い合焦精度が要求される。   2. Description of the Related Art Conventionally, there are imaging devices capable of both moving image shooting and still image shooting, and there are also imaging devices capable of shooting still images during moving image shooting. Various autofocusing (AF) methods used in such imaging devices have been proposed. In general, a still image is photographed using a larger number of pixels than a moving image, and in order to view one photographed image in a still image, higher focusing accuracy is required than that of a moving image.

そのため、動画撮影中に静止画撮影を行う場合に、動画撮影時のAF結果を利用して静止画撮影用の焦点調節を行うことが提案されている(例えば、特許文献1参照)。   For this reason, when taking a still image during moving image shooting, it has been proposed to perform focus adjustment for still image shooting using an AF result during moving image shooting (see, for example, Patent Document 1).

一方、近年では撮像素子の高画素化が進み、数百から数千万画素の撮像素子を備える撮像装置が実用化されている。そのような高画素の撮像素子を使用した場合においても短時間で高精度な合焦ができるように、画像撮影時の記録画素数に応じて、フォーカスレンズ系の移動量またはAF動作の回数を制御することが提案されている(例えば、特許文献2参照)。   On the other hand, in recent years, the number of pixels of an image sensor has increased, and an image pickup apparatus including an image sensor having hundreds to tens of millions of pixels has been put into practical use. Depending on the number of recorded pixels at the time of image capture, the amount of movement of the focus lens system or the number of AF operations can be adjusted so that high-precision focusing can be achieved in a short time even when such a high-pixel imaging device is used. Control is proposed (for example, refer patent document 2).

特許第3639823号公報Japanese Patent No. 3639823 特開2000−59670号公報JP 2000-59670 A

しかしながら、特許文献1に記載された方法では、動画撮影中の合焦動作は動画の記録画素数において十分な合焦精度のみを考慮して行われる。そのため、動画撮影中の静止画撮影時に、例えば、動画撮影中の合焦時とほぼ同一エリアに被写体がいる場合であっても、動画の記録画素数より静止画の記録画素数が十分に大きい場合には、静止画において十分な合焦精度を得ることができないことがある。   However, in the method described in Patent Document 1, the focusing operation during moving image shooting is performed considering only sufficient focusing accuracy in the number of recorded pixels of the moving image. Therefore, when shooting still images during movie shooting, for example, even when the subject is in the same area as when focusing during movie shooting, the number of recorded pixels of the still image is sufficiently larger than the number of recorded pixels of the movie. In some cases, sufficient focusing accuracy may not be obtained in a still image.

また、ほぼ同一エリア内であっても、当該同一エリアから外れたと判断されるまでの範囲で被写体が光軸方向に移動している場合は、静止画において十分な合焦精度を得られないことがある。動画の場合は被写体の光軸方向の移動により一時的に非合焦状態になったとしても直後に合焦状態になれば画質的に問題ないが、この非合焦状態で静止画が撮影されてしまうと、ピントがぼけた画像となってしまう。このように同じ焦点状態であっても、複数の画像を連続して再生する動画では問題ない場合であっても、1枚の画像を鑑賞する静止画では問題になる場合がある。   In addition, even if the subject is moving in the direction of the optical axis within a range until it is determined that the subject is out of the same area, sufficient focusing accuracy cannot be obtained in a still image. There is. In the case of moving images, even if the subject is temporarily out of focus due to movement in the optical axis direction, there is no problem with image quality if the subject is in focus right after that, but still images are shot in this out of focus state. If this happens, the image will be out of focus. In this way, even in the same focus state, even if there is no problem with a moving image that continuously reproduces a plurality of images, there may be a problem with a still image that appreciates one image.

また特許文献2では、記録画素数に応じてフォーカスレンズ系の移動量またはAF動作の回数を変更するが、記録画素数が変化したときにはAF動作を最初からやり直すため、動画記録中に静止画撮影を行う場合、シャッタタイムラグが長くなってしまう。また、一旦AF動作が行われた後は、そのときのフォーカスレンズ系の位置を維持するため、被写体が動いている場合は、静止画、動画ともに十分な合焦精度を達成することができない。   In Patent Document 2, the amount of movement of the focus lens system or the number of AF operations is changed according to the number of recording pixels. However, since the AF operation is restarted from the beginning when the number of recording pixels changes, still image shooting is performed during moving image recording. When performing the above, the shutter time lag becomes long. In addition, once the AF operation is performed, the position of the focus lens system at that time is maintained. Therefore, when the subject is moving, sufficient focusing accuracy cannot be achieved for both still images and moving images.

本発明は上記問題点を鑑みてなされたものであり、動画を記録するための動画撮影モード中に、静止画を撮影可能な本発明の撮像装置であって、静止画の画素数を設定する設定手段と、前記動画撮影モード中に静止画撮影を指示する指示手段と、フォーカスレンズの位置を制御することにより、動画撮影モード中に第1の合焦精度で合焦制御する第1の合焦制御を実行可能な焦点調節手段と、前記指示手段により静止画撮影が指示された場合に、動画の画素数と、前記設定手段により設定された静止画の画素数とに応じて、前記焦点調節手段に前記第1の合焦精度よりも高い第2の合焦精度で第2の合焦制御を実行させるかどうかを制御する制御手段とを有する。   The present invention has been made in view of the above problems, and is an imaging apparatus according to the present invention that can capture a still image during a moving image recording mode for recording a moving image, and sets the number of pixels of the still image. A first focusing unit that controls focusing with the first focusing accuracy during the moving image shooting mode by controlling a setting unit, an instruction unit that instructs to capture a still image during the moving image shooting mode, and a position of the focus lens. A focus adjusting unit capable of executing focus control; and when the still image shooting is instructed by the instructing unit, the focus in accordance with the number of moving image pixels and the number of still image pixels set by the setting unit. And a control unit that controls whether or not the adjusting unit causes the second focusing control to be executed with a second focusing accuracy higher than the first focusing accuracy.

また、動画を記録するための動画撮影モード中に、静止画を撮影可能な撮像装置の本発明の制御方法は、静止画の画素数を設定する設定工程と、前記動画撮影モード中に静止画撮影を指示する指示工程と、フォーカスレンズの位置を制御することにより、動画撮影モード中に第1の合焦精度で合焦制御する第1の合焦制御工程と、前記指示工程で静止画撮影が指示された場合に、動画の画素数と、前記設定工程で設定された静止画の画素数とに応じて、前記第1の合焦精度よりも高い第2の合焦精度で合焦制御を実行するかどうかを制御する制御工程と、前記第2の合焦精度で合焦制御を実行する場合に、前記フォーカスレンズの位置を制御することにより、前記第2の合焦精度で合焦制御する第2の合焦制御工程とを有する。   Further, the control method of the present invention for an imaging apparatus capable of shooting a still image during a moving image shooting mode for recording a moving image includes a setting step for setting the number of pixels of the still image, and a still image during the moving image shooting mode. An instruction step for instructing shooting, a first focus control step for controlling the focus with the first focus accuracy during the moving image shooting mode by controlling the position of the focus lens, and still image shooting in the instruction step Is controlled with a second focusing accuracy higher than the first focusing accuracy according to the number of pixels of the moving image and the number of pixels of the still image set in the setting step. And controlling the position of the focus lens when performing focusing control with the second focusing accuracy, and controlling with the second focusing accuracy. And a second focus control step for controlling.

また、本発明の別の一様態によれば、本発明の焦点調節装置は、前記フォーカスレンズの移動量及び移動方向を設定する移動量設定手段と、前記フォーカスレンズを前記移動量設定手段により設定された移動量で往復移動する際に出力される撮像手段からの出力信号に基づいて、合焦状態を示す焦点評価値を算出する算出手段と、前記算出手段から得られた焦点評価値に基づいて、被写体に合焦する前記フォーカスレンズの移動方向を検出する検出手段とを有し、前記移動量設定手段は、前記算出手段により算出された焦点評価値及び、フォーカスレンズの移動方向の履歴に応じて、前記往復移動する際の移動量及び移動方向を設定し直す。   According to another aspect of the present invention, the focus adjustment apparatus of the present invention includes a movement amount setting unit that sets a movement amount and a movement direction of the focus lens, and the focus lens is set by the movement amount setting unit. Based on an output signal from the imaging means that is output when the reciprocating movement is performed with the amount of movement performed, based on a focus evaluation value obtained from the calculation means, and a calculation means for calculating a focus evaluation value indicating a focused state Detecting means for detecting a moving direction of the focus lens that focuses on the subject, and the moving amount setting means includes a focus evaluation value calculated by the calculating means and a history of the moving direction of the focus lens. Accordingly, the moving amount and moving direction when reciprocating are reset.

また、本発明の一様態によれば、本発明の焦点調節方法は、フォーカスレンズの移動量及び移動方向を設定する移動量設定工程と、前記フォーカスレンズを前記移動量設定工程で設定された移動量で往復移動する際に出力される撮像手段からの出力信号に基づいて、合焦状態を示す焦点評価値を算出する算出工程と、前記算出工程で算出された焦点評価値及び、前記フォーカスレンズの移動方向の履歴に応じて、前記往復移動する際の移動量及び移動方向を設定し直す再設定工程と、前記フォーカスレンズを前記再設定工程で設定された移動量で往復移動する際に出力される撮像手段からの出力信号に基づいて、合焦状態を示す焦点評価値を算出する再算出工程と、前記再設定工程と前記再算出工程とを繰り返し実行する反復工程とを有し、前記反復工程における前記再設定工程では、前記再算出工程で算出された焦点評価値を用いて焦点評価値を算出する。   According to one aspect of the present invention, the focus adjustment method of the present invention includes a movement amount setting step for setting a movement amount and a movement direction of a focus lens, and a movement set by the movement amount setting step. A calculation step of calculating a focus evaluation value indicating an in-focus state based on an output signal from the imaging means that is output when reciprocating by an amount; a focus evaluation value calculated in the calculation step; and the focus lens Output when reciprocating the focus lens with the amount of movement set in the resetting step, and a resetting step for resetting the moving amount and moving direction for the reciprocating movement according to the movement direction history A recalculation step for calculating a focus evaluation value indicating an in-focus state based on an output signal from the imaging means, and an iterative step for repeatedly executing the resetting step and the recalculation step, In the resetting step in the serial iteration, it calculates a focus evaluation value using a focus evaluation value the calculated recalculation process.

本発明によれば、動画撮影モードにおいて静止画撮影を行う場合に、十分な合焦精度を達成すると共に、シャッタタイムラグを短時間に抑えることができる。   According to the present invention, when still image shooting is performed in the moving image shooting mode, sufficient focusing accuracy can be achieved and the shutter time lag can be suppressed in a short time.

以下、添付図面を参照して本発明を実施するための最良の形態を詳細に説明する。   The best mode for carrying out the present invention will be described below in detail with reference to the accompanying drawings.

<第1の実施形態>
図1は、本発明の第1の実施形態における撮像装置の構成を示すブロック図である。図1において、1は撮像装置、2はズームレンズ群、3はフォーカスレンズ群、4はズームレンズ群2及びフォーカスレンズ群3等からなる撮像光学系を透過した光束の量を制御する光量調節及び後述する個体撮像素子5への露出を制御する絞りである。31は、ズームレンズ群2、フォーカスレンズ群3、絞り4等からなる撮影レンズ鏡筒である。5はCCDやCMOSセンサ等に代表される固体撮像素子(以下、「CCD」と呼ぶ。)で、撮影レンズ鏡筒31を透過し、絞り4によって光量調節された光学被写体像がその受光面に結像され、この結像した被写体像を光電変換して電気的な画像信号を出力する。CCD5からは、複数の異なる読み出し方法により、複数の異なる画素数の画像信号を出力することができる。
<First Embodiment>
FIG. 1 is a block diagram illustrating a configuration of an imaging apparatus according to the first embodiment of the present invention. In FIG. 1, 1 is an imaging device, 2 is a zoom lens group, 3 is a focus lens group, 4 is a light amount adjustment for controlling the amount of light beam transmitted through an imaging optical system including the zoom lens group 2 and the focus lens group 3, and the like. It is a stop for controlling exposure to the individual image sensor 5 described later. A photographing lens barrel 31 includes a zoom lens group 2, a focus lens group 3, a diaphragm 4, and the like. Reference numeral 5 denotes a solid-state imaging device (hereinafter referred to as “CCD”) typified by a CCD or CMOS sensor. An optical subject image that is transmitted through the taking lens barrel 31 and whose light amount is adjusted by the diaphragm 4 is formed on the light receiving surface. The formed subject image is photoelectrically converted and an electrical image signal is output. The CCD 5 can output a plurality of image signals having different numbers of pixels by a plurality of different readout methods.

6はCCD5から出力された画像信号を受けて各種の画像処理を施すことにより所定のフォーマットの画像信号を生成する撮像回路、7は撮像回路6により生成されたアナログ画像信号をデジタル画像信号(画像データ)に変換するA/D変換回路である。8はこのA/D変換回路7から出力される画像データを一時的に記憶するバッファメモリ等のメモリ(VRAM)である。9はVRAM8に記憶された画像信号を読み出してアナログ画像信号に変換すると共に、再生表示に適する形態の画像信号に変換するD/A変換回路、10はこのアナログ画像信号を表示する液晶表示装置(LCD)等の画像表示装置(以下、「LCD」と呼ぶ。)である。CCD5により得られた画像を、後述する記憶用メモリ12に記憶せずにVRAM8及びD/A変換回路9を介してLCD10に逐次表示することで、電子ファインダ機能を実現することができる。   An image pickup circuit 6 receives an image signal output from the CCD 5 and performs various image processing to generate an image signal of a predetermined format. 7 denotes an analog image signal generated by the image pickup circuit 6 as a digital image signal (image image). This is an A / D conversion circuit that converts data). Reference numeral 8 denotes a memory (VRAM) such as a buffer memory for temporarily storing image data output from the A / D conversion circuit 7. A D / A conversion circuit 9 reads out an image signal stored in the VRAM 8 and converts it into an analog image signal. The D / A conversion circuit 10 converts the image signal into a format suitable for reproduction display. A liquid crystal display device (10) displays the analog image signal. An image display device (hereinafter referred to as “LCD”) such as an LCD. An image obtained by the CCD 5 is sequentially displayed on the LCD 10 via the VRAM 8 and the D / A conversion circuit 9 without being stored in the storage memory 12 to be described later, thereby realizing an electronic finder function.

また、12は半導体メモリ等からなる画像データを記憶する記憶用メモリである。記憶用メモリ12としては、フラッシュメモリ等の半導体メモリや、カード形状やスティック形状をし、撮像装置1に対して着脱自在に形成されるカード型フラッシュメモリ等の半導体メモリが用いられる。他にも、ハードディスクやフロッピーディスク(登録商標)等の磁気記憶媒体等、様々な形態のものが適用される。   Reference numeral 12 denotes a storage memory for storing image data including a semiconductor memory. As the storage memory 12, a semiconductor memory such as a flash memory, or a semiconductor memory such as a card type flash memory that has a card shape or a stick shape and is detachably attached to the imaging device 1 is used. In addition, various forms such as a magnetic storage medium such as a hard disk and a floppy disk (registered trademark) are applied.

11は圧縮伸長回路であって、圧縮回路と伸長回路とからなる。圧縮回路は、VRAM8に一時記憶された画像データを読み出し、記憶用メモリ12への記憶に適した形態に変換するために圧縮処理や符号化処理等を施す。伸長回路は、記憶用メモリ12に記憶された画像データを再生表示等をする為に適した形態に変換するための復号化処理や伸長処理等を施す。例えば、後述する操作スイッチ24のうち、不図示のモード切替スイッチが操作されて撮影モードになり、更にレリーズスイッチが操作されて露光記録動作が指示されると、以下の処理が行われる。まず、上述したようにしてVRAM8に一時記憶された画像データは圧縮伸長回路11の圧縮回路により圧縮及び符号化された後、記憶用メモリ12に記憶される。また、再生モードになると再生動作が開始され、以下の処理が行われる。まず、記憶用メモリ12に記憶された画像データは圧縮伸長回路11の伸長回路において復号及び伸長された後、VRAM8に一時的に記憶される。VRAM8に一時的に記憶された画像データはD/A変換回路9を介して上述した処理により表示に適したフォーマットのアナログ信号に変換され、LCD10に画像として再生表示される。   Reference numeral 11 denotes a compression / decompression circuit, which includes a compression circuit and an expansion circuit. The compression circuit reads the image data temporarily stored in the VRAM 8 and performs a compression process, an encoding process, and the like in order to convert the image data into a form suitable for storage in the storage memory 12. The decompression circuit performs a decoding process, a decompression process, and the like for converting the image data stored in the storage memory 12 into a form suitable for reproduction and display. For example, among the operation switches 24 to be described later, a mode change switch (not shown) is operated to enter the photographing mode, and when the release switch is operated to instruct an exposure recording operation, the following processing is performed. First, the image data temporarily stored in the VRAM 8 as described above is compressed and encoded by the compression circuit of the compression / decompression circuit 11 and then stored in the storage memory 12. When the playback mode is entered, the playback operation is started and the following processing is performed. First, the image data stored in the storage memory 12 is decoded and expanded in the expansion circuit of the compression / expansion circuit 11 and then temporarily stored in the VRAM 8. The image data temporarily stored in the VRAM 8 is converted into an analog signal in a format suitable for display through the D / A conversion circuit 9 and is reproduced and displayed as an image on the LCD 10.

15は撮像装置1全体の制御を行う演算用のメモリを内蔵したCPU、13はA/D変換回路7から出力されるデジタル画像信号に基づいて自動露出(AE)処理を行うAE処理回路である。AE処理回路13は、A/D変換回路7によってデジタル化された一画面分のデジタル画像信号の輝度値に対して累積加算等の演算処理を行って、被写体の明るさに応じたAE評価値を算出する。このAE評価値はCPU15に出力される。   Reference numeral 15 denotes a CPU incorporating a calculation memory for controlling the entire image pickup apparatus 1, and 13 denotes an AE processing circuit that performs automatic exposure (AE) processing based on a digital image signal output from the A / D conversion circuit 7. . The AE processing circuit 13 performs arithmetic processing such as cumulative addition on the luminance value of the digital image signal for one screen digitized by the A / D conversion circuit 7, and an AE evaluation value corresponding to the brightness of the subject. Is calculated. This AE evaluation value is output to the CPU 15.

14はA/D変換回路7から出力されるデジタル画像信号に基づいて自動焦点調節(AF)処理を行うAF処理回路である。AF処理回路14では、A/D変換回路7によってデジタル化された一画面分のデジタル画像信号の内、AF領域として指定された画面の一部分の領域に相当する画像データの高周波成分をハイパスフィルター(HPF)等を介して抽出する。更に、累積加算等の演算処理を行って、高域側の輪郭成分量等に対応するAF評価値を算出する。このように、AF処理回路14は、AF処理を行う過程において、CCD5によって生成された画像信号から所定の高周波成分を検出する高周波成分検出手段の役割を担っている。なお、AF領域は中央部分の一箇所である場合や中央部分とそれに隣接する複数箇所である場合、離散的に分布する複数箇所である場合などがある。   Reference numeral 14 denotes an AF processing circuit that performs automatic focus adjustment (AF) processing based on the digital image signal output from the A / D conversion circuit 7. In the AF processing circuit 14, high frequency components of image data corresponding to a partial area of the screen designated as the AF area in the digital image signal for one screen digitized by the A / D conversion circuit 7 are processed with a high-pass filter ( HPF) or the like. Further, arithmetic processing such as cumulative addition is performed to calculate an AF evaluation value corresponding to the contour component amount on the high frequency side. As described above, the AF processing circuit 14 serves as a high-frequency component detection unit that detects a predetermined high-frequency component from the image signal generated by the CCD 5 in the process of performing the AF processing. Note that there are cases where the AF area is a single location in the central portion, the central portion and a plurality of locations adjacent thereto, and a plurality of locations distributed discretely.

16は所定のタイミング信号を発生するタイミングジェネレータ(TG)、17はCCD5を駆動するCCDドライバである。TG16は、所定のタイミング信号をCPU15、撮像回路6、CCDドライバ17へ出力し、CPU15はこのタイミング信号に同期させて各種の制御を行う。また撮像回路6は、TG16からのタイミング信号を受け、これに同期させて色信号の分離等の各種画像処理を行う。さらにCCDドライバ17は、TG16のタイミング信号を受け、これに同期してCCD5を駆動する。   Reference numeral 16 denotes a timing generator (TG) that generates a predetermined timing signal, and reference numeral 17 denotes a CCD driver that drives the CCD 5. The TG 16 outputs a predetermined timing signal to the CPU 15, the imaging circuit 6, and the CCD driver 17, and the CPU 15 performs various controls in synchronization with this timing signal. The imaging circuit 6 receives the timing signal from the TG 16 and performs various image processing such as separation of color signals in synchronization with the timing signal. Further, the CCD driver 17 receives the timing signal of the TG 16 and drives the CCD 5 in synchronization therewith.

また、21は絞り4を駆動する絞り駆動モータ、18は絞り駆動モータ21を駆動制御する第1モータ駆動回路、22はフォーカスレンズ群3を駆動するフォーカス駆動モータ、19はフォーカス駆動モータ22を駆動制御する第2モータ駆動回路である。23はズームレンズ群2を駆動するズーム駆動モータ、20はズーム駆動モータ23を駆動制御する第3モータ駆動回路、24は各種のスイッチ群からなる操作スイッチである。   Reference numeral 21 denotes a diaphragm drive motor that drives the diaphragm 4, 18 denotes a first motor drive circuit that drives and controls the diaphragm drive motor 21, 22 denotes a focus drive motor that drives the focus lens group 3, and 19 drives the focus drive motor 22. It is the 2nd motor drive circuit to control. Reference numeral 23 denotes a zoom drive motor for driving the zoom lens group 2, reference numeral 20 denotes a third motor drive circuit for driving and controlling the zoom drive motor 23, and reference numeral 24 denotes an operation switch including various switch groups.

CPU15は、第1モータ駆動回路18、第2モータ駆動回路19、第3モータ駆動回路20をそれぞれ制御する。これにより、絞り駆動モータ21、フォーカス駆動モータ22、ズーム駆動モータ23を介して、絞り4、フォーカスレンズ群3、ズームレンズ群2をそれぞれ駆動制御する。具体的には、CPU15はAE処理回路13において算出されたAE評価値等に基づき第1モータ駆動回路18を制御して絞り駆動モータ21を駆動し、絞り4の絞り量を適正になるように調整するAE制御を行う。   The CPU 15 controls the first motor drive circuit 18, the second motor drive circuit 19, and the third motor drive circuit 20, respectively. As a result, the diaphragm 4, the focus lens group 3, and the zoom lens group 2 are driven and controlled via the diaphragm drive motor 21, the focus drive motor 22, and the zoom drive motor 23, respectively. Specifically, the CPU 15 controls the first motor drive circuit 18 based on the AE evaluation value calculated in the AE processing circuit 13 to drive the aperture drive motor 21 so that the aperture amount of the aperture 4 becomes appropriate. AE control to be adjusted is performed.

またCPU15はスキャンAF処理回路14において算出されるAF評価値信号に基づき第2モータ駆動回路19を制御してフォーカス駆動モータ22を駆動し、フォーカスレンズ群3を合焦位置に移動させるAF制御を行う。また操作スイッチ24のうち不図示のズームスイッチが操作された場合は、これを受けてCPU15は、第3モータ駆動回路20を制御してズーム駆動モータ23を駆動制御することによりズームレンズ群2を移動させ、撮像光学系の変倍動作(ズーム動作)を行う。   Further, the CPU 15 controls the second motor drive circuit 19 based on the AF evaluation value signal calculated by the scan AF processing circuit 14 to drive the focus drive motor 22 and perform AF control for moving the focus lens group 3 to the in-focus position. Do. When a zoom switch (not shown) among the operation switches 24 is operated, the CPU 15 controls the third motor drive circuit 20 and controls the zoom drive motor 23 to control the zoom lens group 2. The zooming operation is performed for the imaging optical system.

また、操作スイッチ24としては、例えば、以下のものがある。撮像装置1を起動させて電源供給を行うための主電源スイッチや撮影動作(記憶動作)等を開始させるレリーズスイッチ、再生動作を開始させる再生スイッチ、ズーム倍率の変更、すなわち、ズームレンズ群2の移動を指示するズームスイッチ等である。本実施の形態では、レリーズスイッチは、第1ストローク(以下、「SW1」と呼ぶ。)と、第2ストローク(以下、「SW2」と呼ぶ。)との二段スイッチにより構成される。SW1は撮像動作に先立ってAE処理及びAF処理を開始させる指示信号を発生する。SW2は実際に画像を撮影して記録する露光記録動作を開始させる指示信号を発生する。また、CCD5から読み出す画像信号の画素数を選択するためのスイッチも含まれる。   The operation switch 24 includes the following, for example. A main power switch for activating the imaging device 1 to supply power, a release switch for starting a shooting operation (storage operation), a playback switch for starting a playback operation, a change in zoom magnification, that is, the zoom lens group 2 For example, a zoom switch for instructing movement. In the present embodiment, the release switch is configured by a two-stage switch of a first stroke (hereinafter referred to as “SW1”) and a second stroke (hereinafter referred to as “SW2”). SW1 generates an instruction signal for starting AE processing and AF processing prior to the imaging operation. SW2 generates an instruction signal for starting an exposure recording operation for actually capturing and recording an image. A switch for selecting the number of pixels of the image signal read from the CCD 5 is also included.

25は各種制御等を行うプログラムや各種動作を行わせるために使用するデータ等が予め記憶されている電気的に書き換え可能な読み出し専用メモリであるEEPROMである。26は電池、28はストロボ発光部、27はストロボ発光部28の閃光発光を制御するスイッチング回路、29は警告表示などを行うLEDなどの表示素子、30は音声によるガイダンスや警告などを行うためのスピーカーである。   An EEPROM 25 is an electrically rewritable read-only memory in which programs for performing various controls, data used for performing various operations, and the like are stored in advance. 26 is a battery, 28 is a strobe light emitting unit, 27 is a switching circuit for controlling flash light emission of the strobe light emitting unit 28, 29 is a display element such as an LED for displaying a warning, etc. 30 is for voice guidance or warning It is a speaker.

次に、上記構成を有する撮像装置1の撮影動作について図2に示すフローチャートを用いて説明する。   Next, the photographing operation of the imaging apparatus 1 having the above configuration will be described using the flowchart shown in FIG.

なお、以下の説明において、フォーカスレンズ群3を光軸方向に駆動しながらCCD5の出力に基づいてAF評価値を取得する動作をスキャンと呼ぶ。また、AF評価値を取得するフォーカスレンズ群3の位置をスキャンポイント、スキャンポイントの間隔をスキャン間隔、AF評価値を取得するフォーカスレンズ群3の駆動範囲をスキャン範囲、フォーカスレンズ群3を駆動する速度をスキャン速度と呼ぶ。   In the following description, the operation of acquiring the AF evaluation value based on the output of the CCD 5 while driving the focus lens group 3 in the optical axis direction is referred to as scanning. Further, the position of the focus lens group 3 for acquiring the AF evaluation value is a scan point, the interval between the scan points is a scan interval, the drive range of the focus lens group 3 for acquiring the AF evaluation value is a scan range, and the focus lens group 3 is driven. The speed is called the scan speed.

図2に示す撮影処理シーケンスは、撮像装置1の主電源スイッチがオン状態であり、かつ撮像装置1の動作モードが撮影(録画)モードにあるときに実行される。   The imaging processing sequence shown in FIG. 2 is executed when the main power switch of the imaging apparatus 1 is in the on state and the operation mode of the imaging apparatus 1 is in the imaging (recording) mode.

まずステップS1において、CPU15は、上述したように、撮影レンズ鏡筒31を透過しCCD5上に結像した被写体光学像を、撮像回路6、A/D変換回路7、VRAM8、D/A変換回路9を介して、LCD10に画像として表示する。この処理を所定時間おきに行うことで、LCD10は電子ビューファインダーとして機能する。ユーザーはLCD10に表示された画像を観察することで、撮影するシーンを確認することができる。   First, in step S1, as described above, the CPU 15 converts the subject optical image formed on the CCD 5 through the photographing lens barrel 31 into the imaging circuit 6, the A / D conversion circuit 7, the VRAM 8, and the D / A conversion circuit. 9, the image is displayed on the LCD 10 as an image. By performing this process every predetermined time, the LCD 10 functions as an electronic viewfinder. The user can confirm the scene to be photographed by observing the image displayed on the LCD 10.

次いでステップS2において、動画撮影モードに設定されているか否かの判定を行う。動画撮影モードに設定されている場合はステップS3に進み、動画用AE、AF処理を行い、CCD5から順次入力される画像データに基づいて常に被写体に露出とピントを合わせ続けるようにする。なお、ステップS3で行う動画用AF処理については、詳細に後述する。   Next, in step S2, it is determined whether or not the moving image shooting mode is set. If the moving image shooting mode is set, the process proceeds to step S3 where AE and AF processing for moving images are performed, and the subject is always kept in focus and exposure based on image data sequentially input from the CCD 5. The moving image AF process performed in step S3 will be described in detail later.

そしてステップS4において操作スイッチ24のレリーズスイッチの状態を確認する。撮影者によってレリーズスイッチが操作され、SW1がオン状態になったことをCPU15が確認すると次のステップS5に進み、動画中静止画用AE、AF処理を実行する。なお、ステップS5で行う動画中静止画用AF処理については、詳細に後述する。また、ステップS5では合焦位置を求める前にAF評価値の信頼性を評価しておく。そして、動画中静止画用AE、AF処理が終了すると、ステップS9に進む。   In step S4, the state of the release switch of the operation switch 24 is confirmed. When the release switch is operated by the photographer and the CPU 15 confirms that the SW1 is turned on, the process proceeds to the next step S5, where the AE and AF processes for still image in moving image are executed. The moving image still image AF processing performed in step S5 will be described later in detail. In step S5, the reliability of the AF evaluation value is evaluated before obtaining the in-focus position. When the moving image still image AE and AF processing ends, the process proceeds to step S9.

一方、ステップS2で動画撮影モードに設定されていない場合は、静止画撮影モードであると判断してステップS6に進む。   On the other hand, if the moving image shooting mode is not set in step S2, it is determined that the still image shooting mode is set, and the process proceeds to step S6.

ステップS6において、操作スイッチ24のレリーズスイッチの状態を確認する。撮影者によってレリーズスイッチが操作され、SW1がオン状態になったことをCPU15が確認すると次のステップS7に進み、静止画用AE処理を行う。ここでは、CPU15がAE処理回路13により求められたAE評価値に基づいて第1モータ駆動回路18を制御することにより、絞り駆動モータ21を介して絞り4の開口状態を制御するとともにCCD5の露出時間を制御する。   In step S6, the state of the release switch of the operation switch 24 is confirmed. When the release switch is operated by the photographer and the CPU 15 confirms that the SW1 is turned on, the process proceeds to the next step S7, where still image AE processing is performed. Here, the CPU 15 controls the first motor drive circuit 18 based on the AE evaluation value obtained by the AE processing circuit 13, thereby controlling the aperture state of the diaphragm 4 through the diaphragm drive motor 21 and exposing the CCD 5. Control the time.

続いてステップS8において静止画用AF処理が行われる。静止画用AF処理では、CCD5により得られた画像信号の高周波成分が最も多くなるフォーカスレンズ群3の位置を求め、CPU15は第2モータ駆動回路19を介してフォーカス駆動モータ22を制御し、フォーカスレンズ群3をその求めた位置に移動する。ここで、静止画用AF処理の概略を図3を用いて説明する。   Subsequently, in step S8, still image AF processing is performed. In the still image AF processing, the position of the focus lens group 3 where the high-frequency component of the image signal obtained by the CCD 5 is the largest is obtained, and the CPU 15 controls the focus drive motor 22 via the second motor drive circuit 19 to focus. The lens group 3 is moved to the obtained position. Here, the outline of the still image AF processing will be described with reference to FIG.

静止画用AF処理はCCD5によって生成された画像信号から出力される高周波成分が最も多くなるフォーカスレンズ群3の位置を求めることにより行われる。先ず、CPU15は第2モータ駆動回路19を介してフォーカス駆動モータ22を制御し、フォーカスレンズ群3を無限遠に相当する位置(図3における「A」)に移動させる。そして、無限遠位置から各々の撮影モードにおいて設定される至近距離に相当する位置(図3における「B」)までのスキャン範囲を、予め設定されたスキャン間隔でスキャンする。そして、各スキャンポイントでAF処理回路14によりAF評価値を取得する。フォーカスレンズ群3の駆動が終了した時点で、各スキャンポイントで取得したAF評価値から、高周波成分が最大になる位置、即ち合焦位置(図3における「C」)を求め、その位置にフォーカスレンズ群3を移動する。ただし、合焦位置を求める前にAF評価値の信頼性を評価する。そして、その信頼性が十分であれば、合焦位置を求めてフォーカスレンズ群3を移動してからステップS9に進み、信頼性が低い場合には、合焦位置を求める処理は行わずにステップS9に進む。   The still image AF process is performed by obtaining the position of the focus lens group 3 where the high-frequency component output from the image signal generated by the CCD 5 is the largest. First, the CPU 15 controls the focus drive motor 22 via the second motor drive circuit 19 to move the focus lens group 3 to a position corresponding to infinity (“A” in FIG. 3). Then, a scan range from the infinity position to a position (“B” in FIG. 3) corresponding to the closest distance set in each photographing mode is scanned at a preset scan interval. Then, an AF evaluation value is acquired by the AF processing circuit 14 at each scan point. When the driving of the focus lens group 3 is completed, a position where the high frequency component is maximized, that is, a focus position ("C" in FIG. 3) is obtained from the AF evaluation value acquired at each scan point, and the focus is set at that position. The lens group 3 is moved. However, the reliability of the AF evaluation value is evaluated before obtaining the in-focus position. If the reliability is sufficient, the focus position is obtained and the focus lens group 3 is moved, and then the process proceeds to step S9. If the reliability is low, the process for obtaining the focus position is not performed and the step is performed. Proceed to S9.

なお、スキャンAF処理の高速化のために、ステップS4のスキャン間隔は、フォーカスレンズ群3を停止させることが可能な全ての停止位置ではなく、所定の停止可能位置おきにする。この場合、図3に示すように、実際にAF評価値が最大値となるスキャンポイントでAF評価値の取得が行われず、その前後のスキャンポイントa1、a2、a3においてAF評価値を取得することがあり得る。このような場合は得られたAF評価値の内、最大値となったスキャンポイントとその前後のスキャンポイントから合焦位置Cを計算にて求める。なお、静止画用AF処理は上記方法に限るものではなく、従来用いられている方法により行っても構わない。   In order to increase the speed of the scan AF process, the scan interval in step S4 is set at predetermined stoppable positions instead of all stop positions at which the focus lens group 3 can be stopped. In this case, as shown in FIG. 3, the AF evaluation value is not acquired at the scan point where the AF evaluation value is actually the maximum value, and the AF evaluation value is acquired at the scan points a1, a2, and a3 before and after that. There can be. In such a case, the in-focus position C is obtained by calculation from the scan point having the maximum value among the obtained AF evaluation values and the scan points before and after that. Note that the still image AF processing is not limited to the above method, and may be performed by a conventionally used method.

次に、ステップS9において、ステップS5における動画中静止画用AF処理またはステップS8における静止画用AF処理の結果、その信頼性に応じて「AF OK」表示または「AF NG」表示を行う。「AF OK」表示では表示素子29を点灯すると同時に、LCD10上に緑の枠を表示するなどの処理を行う。「AF NG」表示では、表示素子29を点滅すると同時に、LCD10上に黄色の枠を表示するなどの処理を行う。なお、表示方法についてはこれらに限るものではなく、撮影者に信頼性を知らせることができれば、表示に限らずどのような方法を用いても構わない。例えば、音声を表示と併用して用いたり、音声のみにより通知するようにしてもよい。   Next, in step S9, “AF OK” display or “AF NG” display is performed depending on the reliability of the still image AF processing in moving image in step S5 or the still image AF processing in step S8. In the “AF OK” display, the display element 29 is turned on, and at the same time, a process such as displaying a green frame on the LCD 10 is performed. In the “AF NG” display, processing such as blinking the display element 29 and displaying a yellow frame on the LCD 10 is performed. Note that the display method is not limited to these, and any method may be used as long as the photographer can be notified of the reliability. For example, voice may be used in combination with display, or notification may be made only by voice.

このようにしてAF表示を終了後、CPU15はステップS10において、SW1のオン状態が継続しているかをチェックする。オフであればステップS2に戻り、オンであればステップS11に進んでSW2の確認を行う。なお、SW1のオン状態が保持されている場合は、AF・AEの状態は保持される。   After finishing the AF display in this way, the CPU 15 checks in step S10 whether the ON state of SW1 continues. If it is off, the process returns to step S2, and if it is on, the process proceeds to step S11 to confirm SW2. Note that when the ON state of SW1 is held, the AF / AE state is held.

SW2がオフであればステップS10に戻り、SW2がオンになっていたならばステップS12に進む。   If SW2 is off, the process returns to step S10, and if SW2 is on, the process proceeds to step S12.

ステップS12では、被写体の画像を記録するための露光処理を実行する。露光してCCD5から得た画像信号は、上述したように、撮像回路6、A/D変換回路7、VRAM8、圧縮伸長回路11を介して記憶用メモリ12に記憶する。   In step S12, an exposure process for recording an image of the subject is executed. The image signal obtained from the CCD 5 by exposure is stored in the storage memory 12 via the imaging circuit 6, the A / D conversion circuit 7, the VRAM 8, and the compression / decompression circuit 11, as described above.

露光処理が終わると、ステップS13で再びSW2の確認を行う。SW2がオフになっていたならばステップS14に進んでSW1がオフされるのを待ち、処理を終了する。   When the exposure process is completed, SW2 is confirmed again in step S13. If SW2 is off, the process proceeds to step S14, waits for SW1 to be turned off, and ends the process.

動画画像の記録は動画記録指示の操作により開始・終了が行われるが、動画記録中・待機中にかかわらず図2の動作が行われる。すなわち動画モードに設定されていれば、動画記録中であるか待機中であるかによらず自動焦点調節に関しては同一の動作が行われる。   Recording of a moving image is started and ended by an operation of a moving image recording instruction, and the operation of FIG. 2 is performed regardless of whether the moving image is being recorded or in standby. That is, if the moving image mode is set, the same operation is performed with respect to automatic focus adjustment regardless of whether the moving image is being recorded or is in standby.

次に、ステップS3で行われる動画用AF処理の詳細について説明する。動画用AF処理中のAFモードには微小駆動AFモード41、山登りAFモード42、レンズ停止43の3つの状態があり、図4に示すように、それぞれの状態での動作結果に応じて他の状態に遷移する。   Next, details of the moving image AF process performed in step S3 will be described. The AF mode during the AF process for moving images has three states: a micro-drive AF mode 41, a hill-climbing AF mode 42, and a lens stop 43. As shown in FIG. 4, other modes are selected depending on the operation result in each state. Transition to the state.

微小駆動AFモード41とは、フォーカスレンズ群3のスキャン間隔を微小距離とし、フォーカスレンズ群3移動前後のスキャンポイントで取得したAF評価値を比較することで、合焦判別、合焦位置の方向判別、短距離のピント調整を行う動作モードである。フォーカスレンズ群3移動前後のAF評価値を比較した結果、AF評価値が増加していれば同一方向に移動し、減少していれば逆方向に移動する。また同一方向に所定回数連続して移動すると、山登りAFモード42に遷移する(P41a)。この場合、フォーカスレンズ群3は、ある基準位置に基づいて決められたステップ幅で往復移動動作を行う。このようなフォーカスレンズの往復移動の際にAF評価値を取得することで、被写体画像のコントラストが高くなるフォーカスレンズの移動方向を見つけ出すモードである。   The micro drive AF mode 41 is a method in which the focus interval is determined by comparing the AF evaluation values acquired at the scan points before and after the movement of the focus lens group 3 with the scan interval of the focus lens group 3 as a minute distance. This is an operation mode for performing discrimination and short-range focus adjustment. As a result of comparing the AF evaluation values before and after the movement of the focus lens group 3, if the AF evaluation value increases, it moves in the same direction, and if it decreases, it moves in the reverse direction. Moreover, if it moves predetermined times continuously in the same direction, it will change to the hill-climbing AF mode 42 (P41a). In this case, the focus lens group 3 performs a reciprocating movement operation with a step width determined based on a certain reference position. In this mode, the AF evaluation value is acquired during the reciprocating movement of the focus lens to find the moving direction of the focus lens in which the contrast of the subject image is high.

一方、所定時間(または所定回数)連続して所定範囲内(同一とみなせるエリア)で反転を繰り返している場合は、合焦しているものと判断する。そして、AF評価値がピークとなる位置(AF評価値を取得したフォーカスレンズ位置の中でAF評価値が最大となる位置、もしくは補間演算を行って求めたAF評価値が最大となる位置)にフォーカスレンズ群3を移動する。その後、レンズ停止43の状態に遷移する(P41b)。従来は、レンズ停止43の状態に遷移する際に詳細な合ピントを合わせる動作は行わず、微小駆動におけるAF評価値取得位置のうちでAF評価値が最大となる位置へフォーカスレンズ群3を移動してレンズ停止状態に遷移していた。これに対し、本発明においては微小駆動動作中に被写体の光軸方向の移動量を検出し、その量が小さい場合には更に詳細にピントを合わせる動作を行う。逆にその量が大きい場合には更に詳細にピントを合わせる動作を行なわず、従来と同様に微小駆動におけるAF評価値取得位置のうちでAF評価値が最大となる位置へフォーカスレンズ群3を移動する。   On the other hand, if the inversion is repeated within a predetermined range (area that can be regarded as the same) continuously for a predetermined time (or a predetermined number of times), it is determined that the subject is in focus. Then, at the position where the AF evaluation value reaches a peak (the position where the AF evaluation value becomes the maximum among the focus lens positions where the AF evaluation value is acquired, or the position where the AF evaluation value obtained by performing the interpolation calculation becomes the maximum). The focus lens group 3 is moved. Thereafter, the state transits to the lens stop 43 state (P41b). Conventionally, the focus lens group 3 is moved to the position where the AF evaluation value is maximized among the AF evaluation value acquisition positions in the minute drive without performing a detailed focusing operation when the state is shifted to the lens stop 43 state. Then, the lens transitioned to the stopped state. On the other hand, in the present invention, the movement amount of the subject in the optical axis direction is detected during the minute driving operation, and when the amount is small, the operation of focusing in more detail is performed. On the contrary, when the amount is large, the focus lens group 3 is moved to a position where the AF evaluation value is maximized among the AF evaluation value acquisition positions in the minute driving as in the conventional case without performing the focusing operation in more detail. To do.

山登りAFモード42とは、微小駆動AFモード41と比較して、フォーカスレンズ群3のより広いスキャン範囲に亘って、より高速に合焦判別を行うモードである。上述したようにして、微小駆動AFモード41から遷移した場合に(P41a)、微小駆動AFモード41で判定した方向に、フォーカスレンズ群3を微小駆動AFモード41での移動速度よりも速い一定速で移動する。この移動中に、微小駆動AFモード41におけるスキャン間隔よりも広いスキャン間隔で、即ち、より高速なスキャン速度でフォーカスレンズ群3を駆動しながらAF評価値を取得する。そして、AF評価値がピークを越えて減少すると、ピーク位置にフォーカスレンズ群3を戻し、微小駆動AFモード41に遷移する(P42)。   The hill-climbing AF mode 42 is a mode in which in-focus determination is performed at a higher speed over a wider scan range of the focus lens group 3 as compared with the minute driving AF mode 41. As described above, when a transition is made from the micro drive AF mode 41 (P41a), the focus lens group 3 moves at a constant speed faster than the moving speed in the micro drive AF mode 41 in the direction determined by the micro drive AF mode 41. Move with. During this movement, an AF evaluation value is acquired while driving the focus lens group 3 at a scan interval wider than the scan interval in the micro drive AF mode 41, that is, at a higher scan speed. When the AF evaluation value decreases beyond the peak, the focus lens group 3 is returned to the peak position, and the mode is changed to the micro drive AF mode 41 (P42).

レンズ停止43とは、合焦状態を維持するモードである。上述したようにして、微小駆動AFモード41から遷移した場合に(P41b)、遷移時のAF評価値を記録し、その後取得されるAF評価値との比較を行い、所定以上変動したら微小駆動AFモードに遷移する(P43)。   The lens stop 43 is a mode for maintaining the in-focus state. As described above, when a transition is made from the micro drive AF mode 41 (P41b), the AF evaluation value at the time of transition is recorded, and compared with the AF evaluation value acquired thereafter. The mode is changed (P43).

上記のように3つのAFモード間で遷移することで、非合焦状態から合焦状態を得、更に合焦状態を維持する。   By shifting between the three AF modes as described above, the in-focus state is obtained from the out-of-focus state, and the in-focus state is maintained.

次に図5(A)及び図5(B)を参照して、上述した微小駆動AFモードにおける動作ついて詳細に説明する。なお、図5(A)及び図5(B)に示す処理において、後述するステップS54以降の処理は、所定時間間隔で繰り返し実行される。   Next, the operation in the above-described micro drive AF mode will be described in detail with reference to FIGS. In the processes shown in FIGS. 5A and 5B, processes after step S54 described later are repeatedly executed at predetermined time intervals.

微小駆動AFモードでは、カウンタのクリアなどの初期化動作の後、ステップS51において停止状態から微小駆動AFモードに遷移したか否かを調べる。この判断結果に応じて、今回のルーチンでフォーカスレンズ群3を移動する量(初期移動量)を設定する。停止状態から微小駆動AFモードに遷移した場合(図4のP43)はステップS52に進み、前回に微小駆動AFモードから停止状態に遷移した時(図4のP41b)の移動量をフォーカスレンズ群3の初期移動量とする。一方、停止状態以外(山登りAFモードや電源投入時など)から微小駆動AFモードに遷移した場合はステップS53に進み、デフォルト移動量をフォーカスレンズ群3の初期移動量とする。   In the micro drive AF mode, after an initialization operation such as clearing the counter, it is checked in step S51 whether or not a transition is made from the stop state to the micro drive AF mode. In accordance with this determination result, an amount (initial movement amount) for moving the focus lens group 3 is set in the current routine. When the micro drive AF mode is changed from the stop state (P43 in FIG. 4), the process proceeds to step S52, and the movement amount when the micro drive AF mode is changed from the micro drive AF mode to the stop state (P41b in FIG. The initial movement amount of On the other hand, when a transition is made from a state other than the stopped state (such as hill-climbing AF mode or when the power is turned on) to the micro-drive AF mode, the process proceeds to step S53 and the default movement amount is set as the initial movement amount of the focus lens group 3.

上記のように初期移動量を設定するのは以下の理由による。即ち、停止状態から微小駆動AFモードに遷移した場合は、微小駆動AFモードから停止状態へ遷移した時と同じ被写体を撮影しており、その被写体の光軸方向の移動速度もほぼ等しい可能性が高いと予測される。そのため、フォーカスレンズ群3の初期移動量を停止状態に遷移した時と同じ移動量にして遷移時と同じスキャン速度にすることで、光軸方向の移動被写体への追従が良好になると予想される。   The initial movement amount is set as described above for the following reason. That is, when the micro drive AF mode is changed from the stop state, the same subject as when the micro drive AF mode is changed to the stop state is photographed, and the moving speed of the subject in the optical axis direction may be almost equal. Expected to be high. Therefore, by setting the initial movement amount of the focus lens group 3 to the same movement amount as that at the time of transition to the stop state and the same scanning speed as at the time of transition, it is expected that the tracking of the moving subject in the optical axis direction will be improved. .

これに対して、山登りAFモードや電源投入時など、停止状態以外から微小駆動AFモードに遷移した場合は、被写体の光軸方向の移動速度を予測することができない。よってこの場合は、デフォルト移動量を微小駆動動作の初期移動量とする。なおデフォルト移動量は、例えば、設定された画像の画素数における焦点深度の半分程度に設定する。勿論、デフォルト移動量はこれに限るものではなく、適宜設定することが可能であることは言うまでもない。   On the other hand, when the hill-climbing AF mode or when the power is turned on, the movement speed of the subject in the optical axis direction cannot be predicted when the micro drive AF mode is changed from other than the stop state. Therefore, in this case, the default movement amount is set as the initial movement amount of the minute driving operation. Note that the default movement amount is set to, for example, about half of the depth of focus in the set number of pixels of the image. Needless to say, the default movement amount is not limited to this, and can be set as appropriate.

ステップS52またはS53でフォーカスレンズ群3の初期移動量の設定が終了したらステップS54へ進み、AF評価値を取得して記録する。ここではスキャンAF処理回路14より次の2つの評価値を取得する。1つは、入力されたデジタル画像信号を受けてハイパスフィルタ(HPF)等を介して抽出されたAF領域の画像データの高周波成分の最大値であり、これを第1のAF評価値(TEP)とする。もう1つは入力されたデジタル画像信号を受けてHPF等を介して抽出されたAF領域の画像データの高周波成分の累積加算値であり、これを第2のAF評価値(TES)とする。   When the setting of the initial movement amount of the focus lens group 3 is completed in step S52 or S53, the process proceeds to step S54, and the AF evaluation value is acquired and recorded. Here, the following two evaluation values are acquired from the scan AF processing circuit 14. One is the maximum value of the high-frequency component of the image data in the AF area extracted by receiving the input digital image signal through a high-pass filter (HPF) or the like, and this is the first AF evaluation value (TEP). And The other is a cumulative addition value of high-frequency components of image data in the AF area that is extracted via the HPF or the like after receiving the input digital image signal, and this is a second AF evaluation value (TES).

次いでステップS55で、今回のルーチンでステップS54において取得した第2のAF評価値(TES)と、前回のルーチンで取得した第2のAF評価値(TES)との比較を行う。なお、1回目のAF評価値取得の場合はこの処理は行わず、ステップS56に進む。   Next, in step S55, the second AF evaluation value (TES) acquired in step S54 in the current routine is compared with the second AF evaluation value (TES) acquired in the previous routine. Note that this process is not performed in the case of the first AF evaluation value acquisition, and the process proceeds to step S56.

前回よりも第2のAF評価値(TES)が大きい場合は、ステップS56にて連続反転カウンタをクリアする。このカウンタは被写体の移動速度に対して微小駆動AFモードでのスキャン速度が遅い場合に、フォーカスレンズ群3を無限遠側、至近側のどちらに動かしても第2のAF評価値が減少してしまう現象を検出するためのカウンタである。なお、この現象については、図10(A)を参照して後述する。   If the second AF evaluation value (TES) is larger than the previous time, the continuous inversion counter is cleared in step S56. When the scanning speed in the micro drive AF mode is slow relative to the moving speed of the subject, this counter decreases the second AF evaluation value regardless of whether the focus lens group 3 is moved to the infinity side or the close side. This is a counter for detecting the phenomenon. This phenomenon will be described later with reference to FIG.

ついでステップS57で、フォーカスレンズ群3の移動方向を前回と同一方向のままにする。次のステップS58では、フォーカスレンズ群3を所定回(N回)連続して同一方向に移動したか否かを調べる。N回連続して同一方向に移動した場合はステップS81に、していない場合は図5(B)のステップS59に進む。   In step S57, the moving direction of the focus lens group 3 is kept the same as the previous direction. In the next step S58, it is checked whether or not the focus lens group 3 has been moved in the same direction for a predetermined number of times (N times). If it has moved N times in the same direction, the process proceeds to step S81. If not, the process proceeds to step S59 in FIG.

ステップS81では、フォーカスレンズ群3を所定回(M回)連続して同一方向に移動したか否かを調べる。M回連続して同一方向に移動した場合はステップS83に進み、当該方向を山登りAFモードでのフォーカスレンズ群3の移動方向として設定した後、ステップS84で山登りAFモードに移行する(S41a)。   In step S81, it is checked whether or not the focus lens group 3 has been moved in the same direction continuously for a predetermined number of times (M times). If it has moved M times in the same direction, the process proceeds to step S83, where the direction is set as the moving direction of the focus lens group 3 in the hill-climbing AF mode, and then the hill-climbing AF mode is shifted in step S84 (S41a).

一方、M回連続して同一方に移動していない場合は(ステップS81でNO)ステップS82でフォーカスレンズ群3の移動量を増加した後にステップS59に進む。なおステップS82におけるフォーカスレンズ群3の移動量の増加の仕方は後で述べる。   On the other hand, if it has not moved in the same direction M times consecutively (NO in step S81), the amount of movement of the focus lens group 3 is increased in step S82, and then the process proceeds to step S59. A method of increasing the movement amount of the focus lens group 3 in step S82 will be described later.

ここで、所定回Nと所定回MはN<Mの関係があり、Nは3回程度、Mは6〜8回程度に設定するのが望ましいが、勿論、本発明はこれらの値に限られるものではない。このように、連続して同一方向に移動した回数がNとMとの間である場合に、微小駆動時のフォーカスレンズ群3の移動量を増加することにより、図10(B)に示す現象を回避することができる。なお、この現象についても詳細に後述する。   Here, the predetermined times N and M have a relationship of N <M, and it is desirable that N is set to about 3 times, and M is set to about 6 to 8 times. Of course, the present invention is limited to these values. It is not something that can be done. In this way, when the number of times of continuous movement in the same direction is between N and M, the amount of movement of the focus lens group 3 at the time of minute driving is increased, whereby the phenomenon shown in FIG. Can be avoided. This phenomenon will be described later in detail.

また、ステップS55で、今回取得した第2のAF評価値(TES)と前回取得した第2のAF評価値(TES)との比較を行った結果、前回より第2のAF評価値(TES)が小さい場合はステップS71に進み、連続反転カウンタをカウントアップする。そして、ステップS72で連続反転カウンタが所定値を越えたか否かをチェックする。所定値は5回程度に設定するのが好ましいが、本発明はこれに限られるものではなく、適宜設定することができる。所定値を超えた場合はステップS73でフォーカスレンズ群3の移動量を増加した後にステップS74に進む。なお、ステップS73におけるフォーカスレンズ群3の移動量の増加の仕方は後で述べる。   In step S55, the second AF evaluation value (TES) acquired this time is compared with the second AF evaluation value (TES) acquired last time. As a result, the second AF evaluation value (TES) from the previous time is compared. If is smaller, the process proceeds to step S71, and the continuous inversion counter is counted up. In step S72, it is checked whether or not the continuous inversion counter exceeds a predetermined value. The predetermined value is preferably set to about 5 times, but the present invention is not limited to this, and can be set as appropriate. If it exceeds the predetermined value, the movement amount of the focus lens group 3 is increased in step S73, and then the process proceeds to step S74. A method of increasing the moving amount of the focus lens group 3 in step S73 will be described later.

ついでステップS74でフォーカスレンズ群3の移動方向を前回と逆方向に設定し、ステップS75で反転カウンタをカウントアップするとともに、反転位置、即ちその時点でのフォーカスレンズ群3の位置を記録する。記録する反転位置の数は、少なくとも後述するステップS59で比較される反転回数の所定値の数と同じにする。ここでは、一例として4個程度に設定する。そして図5(B)のステップS59に進む。   In step S74, the moving direction of the focus lens group 3 is set in the opposite direction to the previous time. In step S75, the reversal counter is counted up, and the reversal position, that is, the position of the focus lens group 3 at that time is recorded. The number of inversion positions to be recorded is at least the same as the predetermined number of inversion times compared in step S59 described later. Here, as an example, it is set to about four. Then, the process proceeds to step S59 in FIG.

ステップS59では反転回数が所定回数を越えたかどうかをチェックする。この所定回数は4回程度の値に設定することが望ましい。なお反転回数カウンタは上述したようにステップS75でカウントアップされ、後述するステップS68でクリアされる。反転回数カウンタをチェックした結果、反転回数が所定回数を越えていなければ、ステップS91に進む。   In step S59, it is checked whether the number of inversions exceeds a predetermined number. This predetermined number is desirably set to a value of about four times. The inversion counter is counted up in step S75 as described above and cleared in step S68 described later. As a result of checking the inversion counter, if the inversion number does not exceed the predetermined number, the process proceeds to step S91.

一方、反転回数が所定回数を越えている場合はステップS60に進み、前回と今回の反転位置の間隔を調べ、それが動画の画素数における焦点深度以下の場合はステップS62に進む。   On the other hand, if the number of inversions exceeds the predetermined number, the process proceeds to step S60, the interval between the previous and current inversion positions is checked, and if it is less than the depth of focus in the number of pixels of the moving image, the process proceeds to step S62.

反転位置の間隔が焦点深度を越える場合はステップS61に進み、以下の3つの条件を満たすか調べる。   If the interval between the inversion positions exceeds the depth of focus, the process proceeds to step S61 to check whether the following three conditions are satisfied.

・連続反転カウンタの値が1
・直前(1つ前)の反転位置(1)と3つ前の反転位置(3)が等しい
・2つ前の反転位置(2)と4つ前の反転位置(4)が等しい
上記の3つの条件を全て満たした場合はステップS66に進む。
ステップS66では、設定されているフォーカスレンズ群3の移動量が設定された画素数での焦点深度の半分より大きいか否かを調べ、大きくなければステップS62に進む。
・ The value of the continuous inversion counter is 1.
The immediately preceding (one previous) reverse position (1) is the same as the third previous reverse position (3). If all the conditions are satisfied, the process proceeds to step S66.
In step S66, it is checked whether or not the set movement amount of the focus lens group 3 is larger than half of the focal depth at the set number of pixels. If not, the process proceeds to step S62.

大きければステップS67に進み、フォーカスレンズ群3の移動量を減少した後にステップS91に進む。なお、ステップS67におけるフォーカスレンズ群3の移動量の減少の仕方は後で述べる。ここでフォーカスレンズ群3の移動量を減少するのは、この移動量が大きいために反転位置の間隔が焦点深度程度にならない不具合を解決するためである。合焦している場合は移動量が設定された画素数における焦点深度の半分以下となれば反転間隔が焦点深度程度になる。しかしフォーカスレンズ群3の移動量が大きい場合は一挙に焦点深度の半分以下にしてしまうと被写体の動きに追従できなくなってしまう。よって反転する状況になった場合において、フォーカスレンズ群3の移動量を徐々に少なくし、追従が可能な間は移動量を徐々に減少し、スキャン速度を焦点深度の半分以下にすることで合焦させることが可能になる。   If larger, the process proceeds to step S67, and after the amount of movement of the focus lens group 3 is reduced, the process proceeds to step S91. A method of reducing the moving amount of the focus lens group 3 in step S67 will be described later. Here, the amount of movement of the focus lens group 3 is reduced in order to solve the problem that the distance between the inversion positions does not reach the depth of focus because the amount of movement is large. When in focus, the inversion interval is about the depth of focus if the amount of movement is less than half of the depth of focus for the set number of pixels. However, when the movement amount of the focus lens group 3 is large, if the focus lens group 3 is reduced to half or less of the depth of focus at once, it becomes impossible to follow the movement of the subject. Therefore, when the situation is reversed, the amount of movement of the focus lens group 3 is gradually reduced, the amount of movement is gradually reduced while tracking is possible, and the scanning speed is reduced to half or less of the focal depth. It becomes possible to burn.

一方ステップS62では、直近のピーク位置が反転している区間にあるか否かをチェックする。ピーク位置は第2のAF評価値(TES)がその前後の値に比べて大きい位置である。例えば図3のスキャンポイントa1、a2、a3で第2のAF評価値(TES)を取得する場合、フォーカスレンズ群3をa1→a2と移動させると第2のAF評価値(TES)が増加するので、次にa3へ移動する。すると第2のAF評価値(TES)は減少するので、移動方向が反転し、a2に移動する。今度は第2のAF評価値(TES)が増加するのでa1へ移動する。この場合にも第2のAF評価値(TES)は減少するので、移動方向が反転しa2に移動する。よってフォーカスレンズ群3は、・・・・・・a1→a2→a3→a2→a1→a2→a3→a2→a1→a2→a3→a2と移動する。そして反転位置は1番目がa3、2番目がa1、3番目がa3、4番目がa1、前回のピーク位置がa2となる。従ってこの例では、直近のピーク位置が反転している区間にあることになる。   On the other hand, in step S62, it is checked whether or not it is in a section where the latest peak position is reversed. The peak position is a position where the second AF evaluation value (TES) is larger than the previous and subsequent values. For example, when the second AF evaluation value (TES) is acquired at the scan points a1, a2, and a3 in FIG. 3, the second AF evaluation value (TES) increases when the focus lens group 3 is moved from a1 to a2. Therefore, it moves to a3 next. Then, since the second AF evaluation value (TES) is decreased, the moving direction is reversed and the second AF evaluation value (TES) is moved to a2. This time, since the second AF evaluation value (TES) increases, the process moves to a1. Also in this case, since the second AF evaluation value (TES) decreases, the movement direction is reversed and the movement to a2. Therefore, the focus lens group 3 moves from a1 → a2 → a3 → a2 → a1 → a2 → a3 → a2 → a1 → a2 → a3 → a2. The inversion position is a3 for the first, a1 for the second, a3 for the third, a1 for the fourth, and a2 for the previous peak position. Therefore, in this example, the most recent peak position is in the inverted section.

直近のピーク位置が反転している区間にある場合はステップS62からステップS63に進み、被写体の光軸方向の移動速度を検出する。その後ステップS64で合焦位置へフォーカスレンズ群3を移動する。そしてステップS65でレンズを停止し、レンズ停止状態へ移行する。   When the latest peak position is in the inverted section, the process proceeds from step S62 to step S63, and the moving speed of the subject in the optical axis direction is detected. Thereafter, in step S64, the focus lens group 3 is moved to the in-focus position. In step S65, the lens is stopped and the lens is shifted to a stopped state.

一方、前回のピーク位置が反転している区間に無い場合はステップS62からステップS68に進んで反転カウンタをクリアし、ステップS91へ進む。   On the other hand, if the previous peak position is not in the inverted section, the process proceeds from step S62 to step S68 to clear the inversion counter, and the process proceeds to step S91.

ステップS91では、第1のAF評価値(TEP)が所定値より小さいか否かを調べる。第1のAF評価値(TEP)が所定値より小さくなければ、ステップS96に進む。そして、ステップS57またはS74で設定されている方向に、ステップS52、S53、S67、S73またはS82で設定されたスキャン速度でフォーカスレンズ群3を移動した後、ステップS54へ戻る。第1のAF評価値(TEP)が所定値より小さくないということは、AF評価値の値が十分であり微小駆動AFモードにおいて合焦判定やフォーカスレンズ群3の移動方向の判別が可能であるため、微小駆動AFモードを継続する。   In step S91, it is checked whether or not the first AF evaluation value (TEP) is smaller than a predetermined value. If the first AF evaluation value (TEP) is not smaller than the predetermined value, the process proceeds to step S96. Then, after moving the focus lens group 3 in the direction set in step S57 or S74 at the scan speed set in step S52, S53, S67, S73 or S82, the process returns to step S54. The fact that the first AF evaluation value (TEP) is not smaller than the predetermined value means that the AF evaluation value is sufficient and the focus determination and the movement direction of the focus lens group 3 can be determined in the micro drive AF mode. Therefore, the minute driving AF mode is continued.

第1のAF評価値(TEP)が所定値より小さければ、ステップS92で非合焦カウンタをカウントアップする。そしてステップS93で非合焦カウンタの値を所定値と比較する。   If the first AF evaluation value (TEP) is smaller than the predetermined value, the out-of-focus counter is counted up in step S92. In step S93, the value of the out-of-focus counter is compared with a predetermined value.

その結果、非合焦カウンタの値が所定値以下の場合は、ステップS96で上述したように設定された移動量だけフォーカスレンズ群3を移動した後、ステップS54へ戻る。これは非合焦カウンタの値が所定値以下の場合は微小駆動AFモードで合焦判定や方向判別ができる可能性があるからである。   As a result, when the value of the out-of-focus counter is equal to or smaller than the predetermined value, the focus lens group 3 is moved by the amount of movement set as described above in step S96, and then the process returns to step S54. This is because when the value of the out-of-focus counter is equal to or smaller than a predetermined value, it is possible to perform focus determination and direction determination in the minute driving AF mode.

逆に非合焦カウンタの値が所定値を越えた場合、微小駆動AFモードで合焦判定や方向判別ができる可能性が非常に低い、もしくは多くの時間を必要とする。そのため、ステップS94に進み山登りAFモードにおけるフォーカスレンズ群3の移動方向を所定方向に設定した後、ステップS95で山登りAFモードに移行する。例えば、大きくピントが外れ、画像のコントラストがほとんど無くなってしまっている場合などがこのケースにあたる。なお、ステップS94で設定する所定方向は、山登りAFモードにおいて適用する山登りAF処理方法に応じて決めればよい。   Conversely, when the value of the out-of-focus counter exceeds a predetermined value, it is very unlikely that focus determination and direction determination can be performed in the micro drive AF mode, or a long time is required. For this reason, the process proceeds to step S94, the movement direction of the focus lens group 3 in the hill-climbing AF mode is set to a predetermined direction, and then the hill-climbing AF mode is shifted to in step S95. For example, this is the case when the image is greatly out of focus and the contrast of the image is almost lost. The predetermined direction set in step S94 may be determined according to the hill-climbing AF processing method applied in the hill-climbing AF mode.

次に、ステップS67、S73、S82で行われる微小駆動AFモードにおけるフォーカスレンズ群3の移動量の増減の仕方について、図6及び図7を参照して説明する。   Next, how to increase or decrease the amount of movement of the focus lens group 3 in the minute driving AF mode performed in steps S67, S73, and S82 will be described with reference to FIGS.

従来、微小駆動AFモードを行うことによって、被写体が移動するような場合においても焦点を合わせることができた(例えば、特許第2744336号公報)。しかしながら、このような技術を使っても、被写体の動きが速い場合には、その動きに追従することが困難な場合があった。これに対し、以下に説明するように、微小駆動時にフォーカスレンズ群3の移動量を増減することによって、従来に比べてより動きのある被写体にも追従可能なAFを実現することが可能となる。   Conventionally, by performing the micro drive AF mode, it was possible to focus even when the subject moved (for example, Japanese Patent No. 2744336). However, even if such a technique is used, if the movement of the subject is fast, it may be difficult to follow the movement. On the other hand, as described below, it is possible to realize AF that can follow a subject that moves more than before by increasing or decreasing the amount of movement of the focus lens group 3 during minute driving. .

先ず、ステップS73でフォーカスレンズ群3の微小駆動時の移動量を増加するのは、図10(A)に示すような問題に対応するためである。図10(A)に示すように、被写体の光軸方向の移動速度に対してフォーカスレンズ群3の微小駆動時のスキャン速度が遅い場合は、フォーカスレンズ群3をどちらの方向に移動しても第2のAF評価値は前回に比べて小さくなってしまう。そのため、フォーカスレンズ群3の移動方向は、常に前回と逆方向に設定される。そして、ステップS56を通過することが無いので連続反転カウンタはクリアされることなくカウントアップされていく。そのためこの状態がしばらく継続すると、連続反転カウンタが所定値を越える。このような状態では、微小駆動AFで合焦することのみならず山登りAFモードにおける移動方向の設定(方向判別)を行うことすら不可能である。   First, the movement amount of the focus lens group 3 at the time of minute driving is increased in step S73 in order to cope with the problem as shown in FIG. As shown in FIG. 10A, when the scan speed when the focus lens group 3 is driven minutely is slower than the movement speed of the subject in the optical axis direction, the focus lens group 3 can be moved in either direction. The second AF evaluation value is smaller than the previous value. Therefore, the moving direction of the focus lens group 3 is always set in the opposite direction to the previous time. Since the process does not pass through step S56, the continuous inversion counter is incremented without being cleared. Therefore, when this state continues for a while, the continuous inversion counter exceeds a predetermined value. In such a state, it is impossible to set the moving direction (direction discrimination) in the hill-climbing AF mode as well as focusing with the minute driving AF.

そこで連続反転カウンタが所定値を越える場合は、フォーカスレンズ群3の移動量を増加してスキャン速度を上げることで、スキャン速度が被写体の光軸方向の移動速度に対して小さいために生じる問題を回避する。   Therefore, when the continuous inversion counter exceeds a predetermined value, the scanning speed is increased by increasing the moving amount of the focus lens group 3 to increase the scanning speed. This causes the problem that the scanning speed is lower than the moving speed of the subject in the optical axis direction. To avoid.

また、ステップS82でフォーカスレンズ群3の微小駆動時の移動量を増加するのは、図10(B)のような問題に対応するためである。図10(B)に示すように被写体の光軸方向の移動速度に対してフォーカスレンズ群3の微小駆動時のスキャン速度がやや大きい場合は、フォーカスレンズ群3を同一方向に移動すれば第2のAF評価値は前回に比べて大きくなる。しかし被写体の移動速度とフォーカスレンズ群3のスキャン速度に大差がないために移動方向が反転するまでに時間がかかってしまう。また連続して同一方向に移動する回数が所定回を越え山登りAFモードに移行してしまうこともある。このような場合、合焦までに多くの時間を要することになる。しかしながら、同一方向に連続して移動している場合には、ピントが大きく外れている状態から、合焦状態に近づいている場合もある。   Further, the reason why the amount of movement of the focus lens group 3 during minute driving is increased in step S82 is to deal with the problem as shown in FIG. As shown in FIG. 10B, when the scanning speed when the focus lens group 3 is slightly driven is slightly higher than the moving speed of the subject in the optical axis direction, the second lens can be moved by moving the focus lens group 3 in the same direction. The AF evaluation value becomes larger than the previous time. However, since there is no great difference between the moving speed of the subject and the scanning speed of the focus lens group 3, it takes time until the moving direction is reversed. In addition, the number of times of continuous movement in the same direction may exceed a predetermined number of times and shift to the hill-climbing AF mode. In such a case, it takes a lot of time to focus. However, when moving continuously in the same direction, there may be a case where the in-focus state is approaching from a state where the focus is greatly out of focus.

そこでN回以上、M回未満連続して同一方向にフォーカスレンズ群3が移動させられたなら、フォーカスレンズ群3の移動量を増加してスキャン速度を上げることで、この問題を回避する。   Therefore, if the focus lens group 3 is moved in the same direction continuously for N times or more and less than M times, this problem can be avoided by increasing the scan amount by increasing the movement amount of the focus lens group 3.

また、ステップS67でフォーカスレンズ群3の微小駆動時の移動量を減少するのは、図10(C)のような問題に対応するためである。図10(C)に示すように被写体の光軸方向の移動速度に対してフォーカスレンズ群3の微小駆動時のスキャン速度が速すぎてスキャン間隔が大きすぎる場合、フォーカスレンズ群3は常に同一の範囲で移動させられる。そのため、合焦している場合の条件が成立して、レンズ停止に遷移してしまう場合がある。この際には被写体が光軸方向に動いていても移動速度は0と計算され、正しい移動速度を計算することができない。   Further, the reason why the amount of movement of the focus lens group 3 during the minute driving in step S67 is decreased is to cope with the problem as shown in FIG. As shown in FIG. 10C, when the scanning speed when the focus lens group 3 is micro-driven is too high with respect to the moving speed of the subject in the optical axis direction and the scan interval is too large, the focus lens group 3 is always the same. Moved in range. For this reason, there may be a case where the condition when the subject is in focus is established and the lens is stopped. At this time, even if the subject moves in the optical axis direction, the moving speed is calculated as 0, and the correct moving speed cannot be calculated.

そこで、ステップS61において上述した3つの条件を満たし、移動量が設定された画素数での焦点深度の半分よりも大きい場合に、フォーカスレンズ群3の移動量を減少してスキャン速度を遅くする。このようにすることで、スキャン速度が被写体の光軸方向の移動速度に対して大きすぎるために生じる問題を回避する。つまり、フォーカスレンズ群3の移動量が大きいために反転位置の間隔が焦点深度程度にならない不具合を解決する。   Therefore, in step S61, when the above three conditions are satisfied and the moving amount is larger than half of the focal depth at the set number of pixels, the moving amount of the focus lens group 3 is decreased to reduce the scanning speed. By doing so, the problem that occurs because the scanning speed is too large relative to the moving speed of the subject in the optical axis direction can be avoided. That is, the problem that the distance between the inversion positions does not reach the depth of focus due to the large amount of movement of the focus lens group 3 is solved.

次に、ステップS73もしくはステップS82におけるフォーカスレンズ群3の移動量の具体的な増加方法の一例について図6を用いて説明する。   Next, an example of a specific method for increasing the amount of movement of the focus lens group 3 in step S73 or step S82 will be described with reference to FIG.

ステップS101で現在のフォーカスレンズ群3の移動量とデフォルトの移動量とを比較し、現在の移動量がデフォルト移動量以下であればステップS102に進み、次回の移動量を現在の移動量の2倍に設定する。逆にデフォルト移動量より大きい場合は、ステップS103で現在の移動量にデフォルト移動量を加え、次回の移動量とする。ステップS104で移動量の上限値と比較し、上限値を超えていればステップS105で上限値を次回の移動量とする。   In step S101, the current movement amount of the focus lens group 3 is compared with the default movement amount. If the current movement amount is equal to or less than the default movement amount, the process proceeds to step S102, and the next movement amount is set to 2 of the current movement amount. Set to double. On the contrary, if it is larger than the default movement amount, the default movement amount is added to the current movement amount in step S103 to obtain the next movement amount. In step S104, the upper limit value of the movement amount is compared. If the upper limit value is exceeded, the upper limit value is set as the next movement amount in step S105.

次に、ステップS67におけるフォーカスレンズ群3の移動量の具体的な減少方法の一例について図7を用いて説明する。   Next, an example of a specific method for reducing the amount of movement of the focus lens group 3 in step S67 will be described with reference to FIG.

ステップS111で現在のフォーカスレンズ群3の移動量とデフォルトの移動量とを比較し、現在の移動量がデフォルト移動量を越えていれば、ステップS112に進む。そして現在の移動量からデフォルト移動量を引いた値を次回の移動量とする。逆にデフォルト移動量以下の場合は、ステップS113で現在の移動量を半分にし、次回の移動量とする。ステップS114で移動量の下限値と比較し、下限値未満であればステップS115で下限値を次回の移動量とする。   In step S111, the current movement amount of the focus lens group 3 is compared with the default movement amount. If the current movement amount exceeds the default movement amount, the process proceeds to step S112. A value obtained by subtracting the default movement amount from the current movement amount is set as the next movement amount. On the other hand, if it is equal to or less than the default movement amount, the current movement amount is halved in step S113 to obtain the next movement amount. In step S114, it is compared with the lower limit value of the movement amount. If it is less than the lower limit value, the lower limit value is set as the next movement amount in step S115.

なお、フォーカスレンズ群3の移動量の上限値はデフォルト移動量の4倍程度、下限値はデフォルト移動量の4分の1程度に設定するのが好ましい。   The upper limit value of the movement amount of the focus lens group 3 is preferably set to about four times the default movement amount, and the lower limit value is preferably set to about one quarter of the default movement amount.

ただし、本発明は上記図6及び図7に示した増減方法に限定されるものではなく、増減幅を一定にしたり、所定割合で増減するようにするなど、様々な他の方法が考えられ、図10(A)〜図10(C)に示すような問題を解決できるような増減方法であればよい。   However, the present invention is not limited to the increase / decrease method shown in FIGS. 6 and 7, and various other methods such as making the increase / decrease range constant or increasing / decreasing at a predetermined ratio are conceivable. Any increase / decrease method that can solve the problems shown in FIGS. 10 (A) to 10 (C) may be used.

次に、ステップS63〜S64で行われる被写体の光軸方向の動き量を検出し、その結果に応じて合焦位置へ駆動する方法について説明する。   Next, a method of detecting the amount of movement of the subject in the optical axis direction performed in steps S63 to S64 and driving to the in-focus position according to the result will be described.

動き量が大きい場合は詳細なピント合わせを行わない。すなわち、微小駆動AFモードで取得した複数の第2のAF評価値の内、極大値となったスキャンポイントへフォーカスレンズ群3を移動する。例えば図3に示すように、スキャンポイントa1、a2、a3でAF評価値を取得している場合は、フォーカスレンズ群3はa2へ移動される。これは被写体の光軸方向への動き量が大きい場合は詳細な合焦位置を求める効果が少ないからである。すなわち合焦と判定されてレンズ停止状態に移行しても、比較的短い時間でAF評価値などが所定量以上変化して微小駆動AFモードに移行する確率が高いため、その間に静止画撮影が行われる確率が低いからである。またレンズ停止状態で静止画撮影が行われた場合でも、詳細な合焦位置へフォーカスレンズ群3を移動しても、実際に静止画を撮影する時には詳細な合焦位置が移動しているからである。   If the amount of movement is large, detailed focusing is not performed. That is, the focus lens group 3 is moved to the scan point where the maximum value is obtained among the plurality of second AF evaluation values acquired in the micro drive AF mode. For example, as shown in FIG. 3, when the AF evaluation values are acquired at the scan points a1, a2, and a3, the focus lens group 3 is moved to a2. This is because when the amount of movement of the subject in the optical axis direction is large, the effect of obtaining a detailed in-focus position is small. That is, even if it is determined that the lens is in focus and the lens is stopped, there is a high probability that the AF evaluation value or the like changes by a predetermined amount or more in a relatively short time to shift to the micro drive AF mode. This is because the probability of being performed is low. Even when the still image is shot with the lens stopped, the detailed focus position is moved when actually shooting a still image even if the focus lens group 3 is moved to the detailed focus position. It is.

動き量が小さい場合は詳細なピント合わせを行う。すなわち、微小駆動AFモードで取得した複数の第2のAF評価値から詳細な合焦位置を求め、そこへフォーカスレンズ群3を移動する。例えば図3のスキャンポイントa1、a2、a3でAF評価値を取得している場合は、a1、a2、a3の3つの位置および各スキャンポイントで得られた第2のAF評価値から補間計算を行い、詳細な合焦位置cを求めてフォーカスレンズ群3をそこに移動する。補間計算の方法としては極大値付近の3つスキャンポイント及び第2のAF評価値から二次関数を導出し、その2次関数の最大値に対応するスキャンポイントを求める方法などが考えられる。これは被写体の光軸方向への動き量が小さい場合、詳細な合焦位置を求める効果があるからである。すなわち合焦と判定されてレンズ停止状態に移行した後、比較的長い時間AF評価値などの変化が小さくレンズ停止状態に滞在し、その間に静止画撮影が行われる確率が高いからである。またその際も、被写体の動き量が小さいので詳細な合焦位置から移動していない確率が高いからである。   If the amount of movement is small, perform detailed focusing. That is, a detailed focus position is obtained from a plurality of second AF evaluation values acquired in the micro drive AF mode, and the focus lens group 3 is moved there. For example, when the AF evaluation values are acquired at the scan points a1, a2, and a3 in FIG. 3, the interpolation calculation is performed from the three positions a1, a2, and a3 and the second AF evaluation values obtained at the respective scan points. The focus lens group 3 is moved to the focus position c in detail. As a method of interpolation calculation, a method of deriving a quadratic function from three scan points in the vicinity of the maximum value and the second AF evaluation value, and obtaining a scan point corresponding to the maximum value of the quadratic function can be considered. This is because when the amount of movement of the subject in the optical axis direction is small, there is an effect of obtaining a detailed in-focus position. That is, after the focus is determined and the lens is stopped, the AF evaluation value or the like changes for a relatively long time and stays in the lens stopped state for a relatively long period of time. Also in this case, since the amount of movement of the subject is small, there is a high probability that the subject has not moved from the detailed in-focus position.

なお動き量は以下のようにして求める。   The amount of movement is obtained as follows.

山登りモードなどから微小駆動AFモードに移行した際の移動平均と、微小駆動AFモードからレンズ停止状態に移行した際の移動平均から、微小駆動AFモード実行中の移動量を求める。すなわち、微小駆動AFモードに移行した後の最初のn回の評価値を取得したフォーカスレンズ群3の位置の平均値と、レンズ停止状態に推移する直前のn回の評価値を取得したフォーカスレンズ群3の位置の平均値とから、平均移動速さを求める。式にすると、   The amount of movement during execution of the micro drive AF mode is obtained from the moving average when shifting from the hill-climbing mode to the micro driving AF mode and the moving average when shifting from the micro driving AF mode to the lens stop state. That is, the focus lens which acquired the average value of the position of the focus lens group 3 which acquired the first n evaluation values after shifting to the micro drive AF mode and the n evaluation values immediately before the lens stop state is changed. The average moving speed is obtained from the average value of the positions of the group 3. In the formula

平均移動速さ=[(停止状態に推移する直前のn回のレンズ位置の平均値)―(最初のn回のレンズ位置の平均値)]/[(停止状態に推移する直前の時刻)―(最初の評価値取得時刻)−(n−1)*AF評価値取得間隔]
となる。なおnは5回程度の数値が好ましい。
そして、この平均移動速さを被写体の光軸方向の動き量を表す量とする。この他に、微小駆動AFモードから停止モードに遷移するまでのフォーカスレンズ群3の移動量を被写体の光軸方向の動き量を表す量としても良い。
Average moving speed = [(average value of n lens positions immediately before shifting to the stopped state) − (average value of first n lens positions)] / [(time immediately before shifting to the stopped state) − (First evaluation value acquisition time) − (n−1) * AF evaluation value acquisition interval]
It becomes. Note that n is preferably a numerical value of about 5 times.
The average moving speed is set as an amount representing the amount of movement of the subject in the optical axis direction. In addition, the amount of movement of the focus lens group 3 from the minute drive AF mode to the transition to the stop mode may be an amount representing the amount of movement of the subject in the optical axis direction.

次に、図2のステップS5で行われる動画撮影モードにおける動画中静止画用AF処理の詳細に関して、図8のフローチャートを参照して説明する。   Next, details of the moving image still image AF process in the moving image shooting mode performed in step S5 of FIG. 2 will be described with reference to the flowchart of FIG.

図2の動画撮影モードにおいて、ステップS4で撮影者によってレリーズスイッチが操作され、SW1がオン状態になったことをCPU15が確認すると、図8の処理が開始される。先ずステップS201において、図8の処理開始時点でのフォーカスレンズ群3の位置における合焦度合いを求める。合焦度合いはスキャンAF処理回路14によって求められる次の2つのAF評価値から求める。   In the moving image shooting mode of FIG. 2, when the release switch is operated by the photographer in step S4 and the CPU 15 confirms that SW1 is turned on, the processing of FIG. 8 is started. First, in step S201, the degree of focus at the position of the focus lens group 3 at the time of starting the processing in FIG. 8 is obtained. The degree of focus is obtained from the following two AF evaluation values obtained by the scan AF processing circuit 14.

一つは、図5のステップS54と同様にして求める第1のAF評価値(TEP)である。もう一つは、入力されたデジタル画像信号を受けてハイパスフィルタ(HPF)等を介さずに抽出されたAF領域の画像データの最大値と最小値との差であり、これを第3のAF評価値(MMP)とする。そして、合焦度合いは、第1のAF評価値と第3のAF評価値の比、すなわち、第1のAF評価値(TEP)を第3のAF評価値(MMP)で割った値(TEP/MMP)とする。   One is a first AF evaluation value (TEP) obtained in the same manner as in step S54 of FIG. The other is a difference between the maximum value and the minimum value of the image data in the AF area extracted by receiving the input digital image signal without passing through a high-pass filter (HPF) or the like. Assume an evaluation value (MMP). The degree of focus is the ratio of the first AF evaluation value to the third AF evaluation value, that is, a value obtained by dividing the first AF evaluation value (TEP) by the third AF evaluation value (MMP) (TEP / MMP).

また実際に合焦位置を求める際には、入力されたデジタル画像信号を受けてHPF等を介して抽出された一画面分の画像データの高周波成分の累積加算処理された第2のAF評価値(TES)を用いる。   When actually obtaining the in-focus position, the second AF evaluation value obtained by accumulating high-frequency components of the image data for one screen extracted via the HPF or the like after receiving the input digital image signal. (TES) is used.

ステップS202では、ステップS201で求めた合焦度合いから、合焦度合いが高いか、低いか、中間的なものかを判定する。実際には、高いと判定できる閾値、低いと判定する閾値と比較し、合焦度合いの「高」「中」「低」を判定する。高いと判定する閾値より合焦度合いが大きければ合焦度合いは高いと判定し、ステップS210へ進む。低いと判定する閾値より合焦度合いが小さければ合焦度合いは低いと判定し、ステップS203へ進む。ステップS201で求められた値が2つの閾値の間であれば合焦度合いは中と判定し、ステップS220へ進む。   In step S202, it is determined from the focus level obtained in step S201 whether the focus level is high, low, or intermediate. In practice, the degree of focus is determined to be “high”, “medium”, or “low” by comparing with a threshold that can be determined to be high and a threshold that is determined to be low. If the degree of focus is greater than the threshold value for determining high, the degree of focus is determined to be high, and the process proceeds to step S210. If the focus level is smaller than the threshold value for determining that the focus level is low, it is determined that the focus level is low, and the process proceeds to step S203. If the value obtained in step S201 is between two threshold values, it is determined that the degree of focus is medium, and the process proceeds to step S220.

合焦度合いが低い場合は、ピントが大きくボケていて合焦させるためにはフォーカスレンズ群3を大きく動かす必要がある。また合焦位置が現在のフォーカスレンズ群3の位置より無限遠側にピントを合わせる方向にあるのか、逆に至近側にピントを合わせる方向にあるのかがわからない場合が多い。更にコントラストが低く合焦が困難な場合も想定される。   When the in-focus level is low, the focus lens group 3 needs to be moved greatly in order to focus in great focus. In many cases, it is not known whether the in-focus position is in the direction of focusing on the infinity side relative to the current position of the focus lens group 3 or on the contrary. In addition, it may be assumed that the contrast is low and focusing is difficult.

このような場合はフォーカスレンズ群3が大きく動くため、動画として記録された画像が再生時に見苦しくなる。この現象はピントの方向を間違えた場合顕著になる。すなわち一旦ボケ量が増したのち、フォーカスレンズ群3の移動方向が反転しボケ量が減少して合焦状態に至るため、AFが誤動作したような印象を与える場合がある。更に合焦困難なコントラストが低い場合などは合焦に近い状態から非合焦状態になり、その後のフォーカスレンズ群3が反転して合焦状態に至る。この場合は、動作開始時に合焦に近い状態にあるので、ピントの方向を間違えた場合以上に見え方が悪くなる。   In such a case, since the focus lens group 3 moves greatly, an image recorded as a moving image becomes unsightly during reproduction. This phenomenon becomes prominent when the focus direction is wrong. That is, once the amount of blur is increased, the moving direction of the focus lens group 3 is reversed and the amount of blur is decreased to reach a focused state, which may give the impression that the AF has malfunctioned. Further, when the contrast that is difficult to focus is low or the like, the state close to the focus is changed to the out-of-focus state, and the subsequent focus lens group 3 is reversed to reach the focus state. In this case, since it is in a state close to the focus at the start of the operation, it looks worse than when the direction of focus is wrong.

またこのような大きくボケた状態から静止画撮影に十分な合焦精度を得られる状態になるまでAF動作を行うと、それに要する時間が長くなり、動画中のAFがおろそかになる。その結果、パンニングなどシーン変化や被写体の前後左右の動きなど動画撮影時にAF動作で対応しなければならない状況への対応が遅れる。そのような場合、動画撮影中に撮影された静止画のピントが合わないばかりではなく、その後に撮影、記録される動画のピントをも悪化させる可能性がある。   Further, if the AF operation is performed from such a largely blurred state until a focusing accuracy sufficient for still image shooting can be obtained, the time required for the AF operation becomes long, and AF in the moving image is neglected. As a result, a response to a situation that must be dealt with by the AF operation at the time of moving image shooting, such as a scene change such as panning or a front / back / left / right movement of the subject, is delayed. In such a case, not only the still image taken during moving image shooting is out of focus, but also the focus of a moving image shot and recorded thereafter may be deteriorated.

従って、このように合焦度合いが低い場合は、合焦動作を行わない。すなわちステップS203に進み、非合焦であることを記録し、図2のステップS9に進んで非合焦表示を行う。   Therefore, when the degree of focusing is low, the focusing operation is not performed. That is, the process proceeds to step S203 to record that the image is out of focus, and the process proceeds to step S9 in FIG.

ステップS202で合焦度合いが高いと判定され、ステップS210へ進んだ場合は、動画の画素数では十分とみなせる合焦状態であると言える。この場合は、静止画の画素数によっては、現在のフォーカスレンズ群3の位置で合焦とみなせる可能性がある。もしくはすぐ近くに静止画の画素数でも合焦とみなせる位置にフォーカスレンズ群3がある。従ってその位置で撮影するか、極狭いスキャン範囲でピントの探索を行い撮影すれば、短時間で十分に合焦した画像を得ることが可能となる。   If it is determined in step S202 that the degree of focus is high and the process proceeds to step S210, it can be said that the in-focus state can be considered that the number of pixels of the moving image is sufficient. In this case, depending on the number of pixels of the still image, there is a possibility that the current focus lens group 3 can be regarded as in-focus. Alternatively, the focus lens group 3 is located at a position that can be regarded as in-focus even when the number of pixels of the still image is close. Therefore, if an image is taken at that position, or if an image is taken by searching for a focus within an extremely narrow scanning range, it is possible to obtain a sufficiently focused image in a short time.

そこでまずステップS210で設定された静止画の画素数を調べ、所定の画素数より小さければステップS211へ進み、大きければ極狭いスキャン範囲でピント探索の処理を行うステップS213へ進む。所定の画素数は動画の画素数によって異なるが、VGA動画(640画素×480画素)の場合は例えばSVGAサイズ(800×600)まで、HD動画(1920×1080)の場合は例えば2592×1944(または2400×1350)までとする。なお、ここでは動画の画素数より一回り大きいサイズまでを許容するサイズとしたが、本発明はこれに限定されるものではない。   Therefore, first, the number of pixels of the still image set in step S210 is checked. If it is smaller than the predetermined number of pixels, the process proceeds to step S211. If it is larger, the process proceeds to step S213 for performing a focus search process in an extremely narrow scan range. The predetermined number of pixels differs depending on the number of pixels of the moving image, but for a VGA moving image (640 pixels × 480 pixels), for example, up to SVGA size (800 × 600), for an HD moving image (1920 × 1080), for example, 2592 × 1944 ( Or 2400 × 1350). Here, the size is allowed to be one size larger than the number of pixels of the moving image, but the present invention is not limited to this.

ステップS211で図5のステップS63または同様にして求められた光軸方向の被写体の動き量が所定値を越えるか否かをチェックし、所定値を越えていればステップS213へ進む。微小駆動AFモード中の平均移動速さを動き量を表す値にしている場合の所定値は、動画の画素数よりひとまわり大きいサイズでの焦点深度の半分に設定するとよい。   In step S211, it is checked whether or not the amount of movement of the subject in the optical axis direction obtained in the same manner as in step S63 of FIG. 5 or in the same way exceeds a predetermined value, and if it exceeds the predetermined value, the process proceeds to step S213. The predetermined value in the case where the average moving speed in the minute driving AF mode is set to a value representing the amount of motion may be set to half the depth of focus at a size slightly larger than the number of pixels of the moving image.

動き量が所定値以下の場合はステップS212で詳細なピント合わせが済んでいるかをチェックする。微小駆動AFモードにおいて合焦と判断されるとステップS64で詳細な合焦位置への駆動(詳細なピント合わせ)が行われる。従って、通常は詳細なピント合わせは既に行われているが、稀に詳細な合焦位置へのフォーカスレンズ群3の移動中にSW1がオンされることがある。この場合は上述の処理を行うために詳細なピント合わせが完了していない場合がある。このような場合はステップS213へ進む。   If the amount of movement is less than or equal to the predetermined value, it is checked in step S212 whether or not detailed focusing has been completed. If it is determined that the in-focus state is in the minute driving AF mode, in step S64, the driving to the in-focus position is performed (detailed focusing). Therefore, normally, although the detailed focusing has already been performed, SW1 may be turned on during the movement of the focus lens group 3 to the detailed in-focus position. In this case, in order to perform the above-mentioned process, the detailed focusing may not be completed. In such a case, the process proceeds to step S213.

詳細なピント合わせが済んでいる場合は合焦であることを記憶し、図2のステップのS9に進み合焦表示を行う。   If detailed focusing has been completed, it is stored that the subject is in focus, and the process proceeds to step S9 in FIG. 2 to display focus.

また、ステップS213では極狭いスキャン範囲でピントの探索を行う。そしてステップS214において、ステップS213のスキャンで得られたAF評価値から合焦可能であるか否かを判定するローコントラスト判定を行う。ローコントラストでは無く合焦が可能と判断された場合はステップS215に進み合焦動作を行う。ローコントラストで合焦が不可能と判断された場合は、ステップS216へ進み非合焦であることを記憶したのち、図2のステップS9に進み非合焦表示を行う。   In step S213, the focus is searched in an extremely narrow scan range. In step S214, low contrast determination is performed to determine whether or not focusing is possible from the AF evaluation value obtained in the scan in step S213. If it is determined that focusing is possible instead of low contrast, the process proceeds to step S215 to perform focusing operation. If it is determined that focusing is impossible due to low contrast, the process proceeds to step S216 to store the fact that it is out of focus, and then the process proceeds to step S9 in FIG.

ローコントラスト判定方法としては、例えば、特開2004−101766号公報で説明されている方法を適用することができる。   As a low contrast determination method, for example, a method described in Japanese Patent Application Laid-Open No. 2004-101766 can be applied.

ここで、ステップS213〜S215で行われる合焦動作の概略を図9を用いて説明する。   Here, the outline of the focusing operation performed in steps S213 to S215 will be described with reference to FIG.

スキャンAFはCCD5によって生成された画像信号から出力される高周波成分が最も多くなるフォーカスレンズ群3の位置を求めることにより行われる。先ず、CPU15は第2モータ駆動回路19を介してフォーカス駆動モータ22を制御し、フォーカスレンズ群3を現在の位置からスキャン開始位置A1へ移動する。そしてその位置から所定のスキャン速度でスキャン終了位置B1へフォーカスレンズ群3を移動し、その間に所定のスキャン間隔でAF評価値を取得する。フォーカスレンズ群3の移動が終了した時点で、取得したAF評価値から最大になる位置(図9における「C」)を求め、その位置にフォーカスレンズ群3を移動する。   Scan AF is performed by obtaining the position of the focus lens group 3 where the high-frequency component output from the image signal generated by the CCD 5 is the largest. First, the CPU 15 controls the focus drive motor 22 via the second motor drive circuit 19 to move the focus lens group 3 from the current position to the scan start position A1. Then, the focus lens group 3 is moved from that position to a scan end position B1 at a predetermined scan speed, and an AF evaluation value is acquired at a predetermined scan interval during that time. When the movement of the focus lens group 3 is completed, a maximum position (“C” in FIG. 9) is obtained from the acquired AF evaluation value, and the focus lens group 3 is moved to that position.

なお、ステップS213のスキャンにおけるAF評価値のスキャンポイント数は、例えば、5ポイント程度に設定する。またこの微小スキャン範囲はA1−B1の幅が動画撮影時の焦点深度の約2倍、A1への移動前のフォーカスレンズ群3の位置からはA1、B1ともに動画撮影時の焦点深度幅程度に設定する。この設定により動画中の静止画撮影のためのAFでフォーカスレンズ群3を移動させても、記録された動画ではほとんどピントの変化が認識されないため、動画の画質を損ねることがない。   Note that the number of AF evaluation value scan points in the scan of step S213 is set to, for example, about 5 points. Further, in this micro scan range, the width of A1-B1 is about twice the depth of focus at the time of moving image shooting, and from the position of the focus lens group 3 before moving to A1, both A1 and B1 are about the depth of focus depth at the time of moving image shooting. Set. With this setting, even if the focus lens group 3 is moved by AF for still image shooting in a moving image, the recorded moving image hardly recognizes a change in focus, so the image quality of the moving image is not impaired.

なお、スキャンAFの高速化のために、ステップS213のスキャン間隔は、フォーカスレンズ群3を停止させることが可能な全ての停止位置ではなく、所定の停止可能位置おきにする。この場合、図9に示すように、実際にAF評価値が最大値となるスキャンポイントでAF評価値の取得が行われず、その前後のスキャンポイントa1、a2、a3においてAF評価値を取得することがあり得る。このような場合は得られたAF評価値の内、最大値となったスキャンポイントとその前後のスキャンポイントから合焦位置Cを計算にて求める。   Note that in order to increase the speed of scan AF, the scan interval in step S213 is set at predetermined stoppable positions instead of all stop positions at which the focus lens group 3 can be stopped. In this case, as shown in FIG. 9, the AF evaluation value is not acquired at the scan point where the AF evaluation value is actually the maximum value, and the AF evaluation value is acquired at the scan points a1, a2, and a3 before and after that. There can be. In such a case, the in-focus position C is obtained by calculation from the scan point having the maximum value among the obtained AF evaluation values and the scan points before and after that.

そして合焦であることを記憶し、図2のステップS9に進み合焦表示を行う。   And it memorize | stores that it is focusing, and it progresses to step S9 of FIG. 2, and performs a focusing display.

ステップS202で、合焦度合いが2つの閾値の間で中と判定され、ステップS220へ進む場合は、動画の画素数では合焦状態に近いが、静止画の画素数ではピントの合わせこみが必要な状態であると言える。この場合は現在のフォーカスレンズ群3の位置のあまり遠くない位置に静止画撮影の画素数でも合焦とみなせるフォーカスレンズ群3位置があると考えられる。従って、やや狭い範囲でピントの探索を行う。よってステップS220では小スキャン範囲でスキャンを行う。そしてステップS221において、ステップS214と同様に、ステップS220のスキャンで得られたAF評価値から合焦可能であるか否かを判定するローコントラスト判定を行う。ローコントラストでは無く合焦が可能と判断された場合はステップS222に進み合焦動作を行う。ローコントラストで合焦が不可能と判断された場合は、ステップS223へ進み非合焦であることを記憶したのち、図2のステップS9に進み非合焦表示を行う。   If it is determined in step S202 that the degree of focus is medium between the two threshold values and the process proceeds to step S220, the number of pixels of the moving image is close to the focused state, but the number of still image pixels needs to be focused. It can be said that it is a state. In this case, it is considered that there is a position of the focus lens group 3 that can be regarded as in-focus even with the number of pixels for still image shooting at a position not far from the current position of the focus lens group 3. Therefore, the focus is searched in a slightly narrow range. Therefore, in step S220, scanning is performed in the small scan range. In step S221, as in step S214, low contrast determination is performed to determine whether or not focusing is possible from the AF evaluation value obtained in the scan in step S220. If it is determined that focusing is possible instead of low contrast, the process proceeds to step S222 and a focusing operation is performed. If it is determined that focusing is impossible due to the low contrast, the process proceeds to step S223 to store the fact that it is out of focus, and then the process proceeds to step S9 in FIG.

ここで、ステップS220〜S222で行われる合焦動作の概略を図9を用いて説明する。   Here, the outline of the focusing operation performed in steps S220 to S222 will be described with reference to FIG.

スキャンAFはCCD5によって生成された画像信号から出力される高周波成分が最も多くなるフォーカスレンズ群3の位置を求めることにより行われる。先ず、CPU15は第2モータ駆動回路19を介してフォーカス駆動モータ22を制御し、フォーカスレンズ群3を現在の位置からスキャン開始位置A2へ移動する。そしてその位置から所定のスキャン速度でスキャン終了位置B2へフォーカスレンズ群3を移動し、その間に所定のスキャン間隔でAF評価値を取得する。フォーカスレンズ群3の移動が終了した時点で、取得したAF評価値から最大になる位置(図9における「C」)を求め、その位置にフォーカスレンズ群3を移動する。   Scan AF is performed by obtaining the position of the focus lens group 3 where the high-frequency component output from the image signal generated by the CCD 5 is the largest. First, the CPU 15 controls the focus drive motor 22 via the second motor drive circuit 19 to move the focus lens group 3 from the current position to the scan start position A2. Then, the focus lens group 3 is moved from that position to a scan end position B2 at a predetermined scan speed, and an AF evaluation value is acquired at a predetermined scan interval during that time. When the movement of the focus lens group 3 is completed, a maximum position (“C” in FIG. 9) is obtained from the acquired AF evaluation value, and the focus lens group 3 is moved to that position.

なお、ステップS220のスキャンにおけるAF評価値のスキャンポイント数は、例えば、5ポイント程度に設定する。この小スキャン範囲はA2−B2の幅が動画撮影時の焦点深度の約5倍、A2への移動前のフォーカスレンズ群3の位置からはA2、B2ともに動画撮影時の焦点深度の2.5程度に設定する。この設定では動画中の静止画撮影のためのAFでフォーカスレンズ群3を移動させた場合、記録された動画でピントの変化が認識されるが、その変化量は小さくかつ変化している時間も短いため、動画の画質を大きく損ねることはない。   Note that the number of AF evaluation value scan points in the scan of step S220 is set to about 5 points, for example. In this small scan range, the width of A2-B2 is about 5 times the depth of focus at the time of moving image shooting, and from the position of the focus lens group 3 before moving to A2, both A2 and B2 are 2.5 of the depth of focus at the time of moving image shooting. Set to degree. With this setting, if the focus lens group 3 is moved by AF for still image shooting in a moving image, the change in focus is recognized in the recorded moving image, but the amount of change is small and the time during which the change is occurring Because it is short, the quality of the video is not greatly impaired.

なお、スキャンAFの高速化のために、ステップS220のスキャン間隔は、フォーカスレンズ群3を停止させることが可能な全ての停止位置ではなく、所定の停止可能位置おきにする。この場合の処理はステップS215の場合と同様である。   In order to increase the speed of scan AF, the scan interval in step S220 is set at predetermined stoppable positions instead of all stop positions at which the focus lens group 3 can be stopped. The process in this case is the same as in step S215.

そして合焦であることを記録し、図2のステップS9に進み合焦表示を行う。   And it records that it is in focus, and it progresses to step S9 of FIG. 2, and performs a focus display.

上記の通り、本第1の実施形態においては、静止画の画素数が動画の画素数より多いことを考慮する。即ち、動画撮影モード中に静止画撮影を行う際に、動画撮影中の合焦位置を中心にフォーカスレンズを駆動し、静止画記録においても十分合焦とみなせる位置を探すようにした。   As described above, in the first embodiment, it is considered that the number of pixels of the still image is larger than the number of pixels of the moving image. That is, when taking a still image during the moving image shooting mode, the focus lens is driven around the in-focus position during the moving image shooting, and a position that can be regarded as being sufficiently in focus in the still image recording is searched.

一方で、動画撮影中に撮影する静止画の撮影画像サイズが小さい場合は、動画撮影中の静止画撮影時には詳細なピント合わせを行わないようにした。   On the other hand, if the size of the still image taken during movie shooting is small, detailed focusing is not performed during still image shooting during movie shooting.

また、動画記録中もしくは動画記録待機中に被写体の光軸方向の動きを検出し、その量が小さいならば動画記録中もしくは動画記録待機中に詳細にピント合わせをし、動画中の静止画撮影時には詳細なピント合わせを行わないようにした。   Also, the motion of the subject in the optical axis direction is detected during movie recording or movie recording standby, and if the amount is small, focus is performed in detail during movie recording or movie recording standby, and still image shooting during movie recording Sometimes we don't focus in detail.

更に、動画の画素数によって、動画中の静止画撮影時には詳細なピント合わせを行わないようにする静止画の画素数を変更するようにした。これにより動画記録中もしくは動画記録待機中の静止画撮影におけるレリーズタイムラグを短縮し、シャッターチャンスを逃さないようにすることが可能となる。また静止画の画素数が大きいときにも十分な合焦精度を得ることができる。   Furthermore, depending on the number of pixels of the moving image, the number of pixels of the still image is changed so that detailed focusing is not performed during still image shooting in the moving image. As a result, the release time lag in still image shooting during moving image recording or standby for moving image recording can be shortened so that a photo opportunity is not missed. Further, sufficient focusing accuracy can be obtained even when the number of pixels of the still image is large.

なお、上記第1の実施形態においては、スキャン時に各スキャンポイントでフォーカスレンズ群3を停止するものとして説明したが、本願発明はこれに限るものではない。例えば、等速でフォーカスレンズ群3を駆動しながら、所定時間間隔でCCD5から画像信号を読み出してAF評価値を取得するように制御しても良い。その場合には、上述した処理においてフォーカスレンズ群3の移動量を制御する代わりに、スキャン速度を制御すればよい。   In the first embodiment, the focus lens group 3 is stopped at each scan point during scanning. However, the present invention is not limited to this. For example, the focus lens group 3 may be driven at a constant speed, and control may be performed so as to read an image signal from the CCD 5 at predetermined time intervals and acquire an AF evaluation value. In that case, instead of controlling the amount of movement of the focus lens group 3 in the above-described processing, the scan speed may be controlled.

<第2の実施形態>
次に、本発明の第2の実施形態について説明する。
<Second Embodiment>
Next, a second embodiment of the present invention will be described.

本第2の実施形態においても、図1を参照して説明したものと同様の撮像装置を用いるため、ここでは説明を省略する。   Also in the second embodiment, since the same imaging apparatus as that described with reference to FIG. 1 is used, the description thereof is omitted here.

本第2の実施形態では、図5(A)及び図5(B)のステップS67、S73、S82で行われる微小駆動AFモードにおける移動量の増減方法が、第1の実施形態で図6及び図7を参照して上述した方法と異なる。これ以外は、第1の実施形態と同様であるためここでは説明を省略し、以下、相違点に関して説明を行う。   In the second embodiment, the movement amount increasing / decreasing method in the micro-drive AF mode performed in steps S67, S73, and S82 of FIGS. 5A and 5B is the same as that of the first embodiment shown in FIGS. Different from the method described above with reference to FIG. Other than this, since it is the same as that of the first embodiment, the description is omitted here, and the difference will be described below.

本第2の実施形態は、フォーカスレンズ群3を至近側に移動する場合と無限遠側に移動する場合とで増減量を異ならせることを特徴とする。至近側に移動する場合の方が無限遠側に移動する場合に比べて移動量が大きくなるようにする。またその上限値も至近方向に移動する場合を大きくしている。例えば、至近方向に移動する場合の上限値は、無限遠方向に移動する場合の上限値に比べてデフォルト移動量の2倍程度大きな値(至近方向の上限値=無限遠方向の上限値+2×デフォルト移動量)とする。   The second embodiment is characterized in that the amount of increase / decrease differs between when the focus lens group 3 is moved to the closest side and when it is moved to the infinity side. The amount of movement is larger when moving to the close side than when moving to the infinity side. The upper limit value is also increased when moving in the closest direction. For example, the upper limit value when moving in the near direction is a value about twice as large as the default movement amount compared with the upper limit value when moving in the infinity direction (upper limit value in the near direction = upper limit value in the infinity direction + 2 × Default movement amount).

先ず、ステップS73もしくはステップS82におけるフォーカスレンズ群3の移動量の本第2の実施形態の具体的な増減方法の一例について図11を用いて説明する。   First, an example of a specific method of increasing / decreasing the moving amount of the focus lens group 3 in step S73 or step S82 in the second embodiment will be described with reference to FIG.

先ず、ステップS301で、次回のフォーカスレンズ群3の移動方向を判定する。移動方向が至近方向ならステップS303へ進み、移動量の増減倍率αを1に、上限値を至近側上限値に設定する。逆に次回の移動方向が無限遠方向ならステップS302へ進み、移動量の増減倍率αを0.5に、上限値を無限遠側上限値に設定する。なおここでは移動量の増減倍率αは0.5の例を示したが、1未満の適当な数値であれば構わない。その後ステップS101へ進む。   First, in step S301, the next moving direction of the focus lens group 3 is determined. If the movement direction is the closest direction, the process proceeds to step S303, where the movement amount increase / decrease magnification α is set to 1, and the upper limit value is set to the closest upper limit value. Conversely, if the next movement direction is the infinity direction, the process proceeds to step S302, where the movement amount increase / decrease magnification α is set to 0.5, and the upper limit value is set to the infinity side upper limit value. Here, an example in which the movement amount increase / decrease magnification α is 0.5 is shown, but any appropriate numerical value less than 1 may be used. Thereafter, the process proceeds to step S101.

ステップS101で現在のフォーカスレンズ群3の移動量とデフォルトの移動量とを比較し、現在の移動量がデフォルト移動量以下であればステップS102に進み、次回の移動量を現在の移動量の2倍に設定する。逆にデフォルト移動量より大きい場合は、ステップS304で現在の移動量にデフォルト移動量×αを加え、次回の移動量とする。ステップS104で移動量の上限値と比較し、上限値を超えていればステップS105で上限値を次回の移動量とする。   In step S101, the current movement amount of the focus lens group 3 is compared with the default movement amount. If the current movement amount is equal to or less than the default movement amount, the process proceeds to step S102, and the next movement amount is set to 2 of the current movement amount. Set to double. On the contrary, if it is larger than the default movement amount, the default movement amount × α is added to the current movement amount in step S304 to obtain the next movement amount. In step S104, the upper limit value of the movement amount is compared. If the upper limit value is exceeded, the upper limit value is set as the next movement amount in step S105.

次に、ステップS67におけるフォーカスレンズ群3の移動量の本第2の実施形態の具体的な減少方法の一例について図12を用いて説明する。   Next, an example of a specific method for reducing the amount of movement of the focus lens group 3 in step S67 according to the second embodiment will be described with reference to FIG.

先ず、ステップS311では次回のフォーカスレンズ群3の移動方向を判定する。移動方向が至近方向ならステップS313へ進み、移動量の増減倍率αを1に、上限値を至近側上限値に設定する。その後ステップS111へ進む。逆に次回の移動方向が無限遠方向ならステップS312へ進み、移動量の増減倍率αを0.5に、上限値を無限遠側上限値に設定する。その後ステップS314へ進み、現在の移動量が上限値(無限遠方向の上限値)を越えていないかを調べる。移動方向が反転した場合は至近方向の移動量が設定されており、それが無限遠方向の上限値を越えている可能性があるからである。越えていればステップS315へ進み、次回移動量を上限値(無限遠方向の上限値)に設定する。越えていなければ、ステップS111へ進む。   First, in step S311, the next moving direction of the focus lens group 3 is determined. If the movement direction is the closest direction, the process proceeds to step S313, where the movement amount increase / decrease magnification α is set to 1, and the upper limit value is set to the closest upper limit value. Thereafter, the process proceeds to step S111. On the other hand, if the next movement direction is the infinity direction, the process proceeds to step S312, where the movement amount increase / decrease magnification α is set to 0.5, and the upper limit value is set to the infinity side upper limit value. Thereafter, the process proceeds to step S314, and it is checked whether the current movement amount exceeds the upper limit value (upper limit value in the infinity direction). This is because when the moving direction is reversed, the moving amount in the closest direction is set, which may exceed the upper limit value in the infinity direction. If so, the process proceeds to step S315, and the next movement amount is set to an upper limit value (upper limit value in the infinity direction). If not, the process proceeds to step S111.

ステップS111で現在のフォーカスレンズ群3の移動量とデフォルトの移動量とを比較し、現在の移動量がデフォルト移動量を越えていれば、ステップS316に進む。そして現在の移動量からデフォルト移動量×αを引いた値を次回の移動量とする。逆にデフォルト移動量以下の場合は、ステップS113で現在の移動量を半分にし、次回の移動量とする。ステップS114で移動量の下限値と比較し、下限値未満であればステップS115で下限値を次回の移動量とする。   In step S111, the current movement amount of the focus lens group 3 is compared with the default movement amount. If the current movement amount exceeds the default movement amount, the process proceeds to step S316. A value obtained by subtracting the default movement amount × α from the current movement amount is set as the next movement amount. On the other hand, if it is equal to or less than the default movement amount, the current movement amount is halved in step S113 to obtain the next movement amount. In step S114, it is compared with the lower limit value of the movement amount. If it is less than the lower limit value, the lower limit value is set as the next movement amount in step S115.

なお、フォーカスレンズ移動量の上限値は無限遠側がデフォルト移動量の4倍程度、至近側はデフォルト移動量の6倍程度、下限値はデフォルト移動量の4分の1程度に設定するのが好ましい。   The upper limit value of the focus lens movement amount is preferably set to about four times the default movement amount on the infinity side, about six times the default movement amount on the closest side, and the lower limit value is set to about one quarter of the default movement amount. .

本発明の第1の実施形態における撮像装置の構成を示すブロック図である。1 is a block diagram illustrating a configuration of an imaging apparatus according to a first embodiment of the present invention. 本発明の第1の実施形態における撮像処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of the imaging process in the 1st Embodiment of this invention. オートフォーカス処理を説明するための概略図である。It is the schematic for demonstrating an autofocus process. 本発明の第1の実施形態における動画用AF処理におけるAFモードの遷移の概要を示す図である。It is a figure which shows the outline | summary of the transition of AF mode in the AF process for moving images in the 1st Embodiment of this invention. 本発明の第1の実施形態における微小駆動AFモードにおける詳細処理を示すフローチャートである。It is a flowchart which shows the detailed process in the micro drive AF mode in the 1st Embodiment of this invention. 本発明の第1の実施形態における微小駆動AFモードにおける詳細処理を示すフローチャートである。It is a flowchart which shows the detailed process in the micro drive AF mode in the 1st Embodiment of this invention. 本発明の第1の実施形態におけるフォーカスレンズ群の移動量の増加の仕方の一例について説明するフローチャートである。It is a flowchart explaining an example of how to increase the amount of movement of the focus lens group in the first embodiment of the present invention. 本発明の第1の実施形態におけるフォーカスレンズ群の移動量の減少の仕方の一例について説明するフローチャートである。It is a flowchart explaining an example of the method of reduction of the moving amount | distance of the focus lens group in the 1st Embodiment of this invention. 本発明の第1の実施形態における動画中静止画用AF処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of the AF process for still images in a moving image in the 1st Embodiment of this invention. 本発明の第1の実施形態における動画中静止画用AF処理におけるオートフォーカス処理を説明する概略図である。It is the schematic explaining the autofocus process in the AF process for still images in a moving image in the 1st Embodiment of this invention. 本発明の第1の実施形態における被写体の移動速度と、微小駆動AFモードにおけるフォーカスレンズのスキャン速度とに起因する問題点を説明する図である。It is a figure explaining the problem resulting from the moving speed of the to-be-photographed object in the 1st Embodiment of this invention, and the scanning speed of the focus lens in micro drive AF mode. 本発明の第1の実施形態における被写体の移動速度と、微小駆動AFモードにおけるフォーカスレンズの移動量とに起因する別の問題点を説明する図である。It is a figure explaining another problem resulting from the moving speed of the to-be-photographed object in the 1st Embodiment of this invention, and the movement amount of the focus lens in micro drive AF mode. 本発明の第1の実施形態における被写体の移動速度と、微小駆動AFモードにおけるフォーカスレンズの移動量とに起因する別の問題点を説明する図である。It is a figure explaining another problem resulting from the moving speed of the to-be-photographed object in the 1st Embodiment of this invention, and the movement amount of the focus lens in micro drive AF mode. 本発明の第2の実施形態におけるフォーカスレンズの移動量の増加の仕方の一例について説明するフローチャートである。It is a flowchart explaining an example of the method of the increase in the moving amount | distance of a focus lens in the 2nd Embodiment of this invention. 本発明の第2の実施形態におけるフォーカスレンズの移動量の減少の仕方の一例について説明するフローチャートである。It is a flowchart explaining an example of the method of reduction of the moving amount | distance of the focus lens in the 2nd Embodiment of this invention.

符号の説明Explanation of symbols

1 撮像装置
2 ズームレンズ群
3 フォーカスレンズ群
4 絞り
5 固体撮像素子
6 撮像回路
7 A/D変換回路
8 VRAM
9 D/A変換回路
10 画像表示装置
11 圧縮伸長回路
12 記憶用メモリ
13 AE処理回路
14 AF処理回路
15 CPU
16 タイミングジェネレータ
17 CCDドライバ
18 第1モータ駆動回路
19 第2モータ駆動回路
20 第3モータ駆動回路
21 絞り駆動モータ
22 フォーカス駆動モータ。
23 ズーム駆動モータ
24 操作スイッチ
25 EEPROM
26 電池
27 スイッチング回路
28 ストロボ発光部
29 表示素子
30 スピーカー
31 撮影レンズ鏡筒
DESCRIPTION OF SYMBOLS 1 Imaging device 2 Zoom lens group 3 Focus lens group 4 Aperture 5 Solid-state image sensor 6 Imaging circuit 7 A / D conversion circuit 8 VRAM
9 D / A conversion circuit 10 Image display device 11 Compression / decompression circuit 12 Memory for storage 13 AE processing circuit 14 AF processing circuit 15 CPU
16 Timing Generator 17 CCD Driver 18 First Motor Drive Circuit 19 Second Motor Drive Circuit 20 Third Motor Drive Circuit 21 Aperture Drive Motor 22 Focus Drive Motor
23 Zoom drive motor 24 Operation switch 25 EEPROM
26 Battery 27 Switching circuit 28 Strobe light emitting unit 29 Display element 30 Speaker 31 Shooting lens barrel

Claims (12)

動画を記録するための動画撮影モード中に、静止画を撮影可能な撮像装置であって、
静止画の画素数を設定する設定手段と、
前記動画撮影モード中に静止画撮影を指示する指示手段と、
フォーカスレンズの位置を制御することにより、動画撮影モード中に第1の合焦精度で合焦制御する第1の合焦制御を実行可能な焦点調節手段と、
前記指示手段により静止画撮影が指示された場合に、動画の画素数と、前記設定手段により設定された静止画の画素数とに応じて、前記焦点調節手段に前記第1の合焦精度よりも高い第2の合焦精度で第2の合焦制御を実行させるかどうかを制御する制御手段と
を有することを特徴とする撮像装置。
An imaging device capable of shooting a still image during a movie shooting mode for recording a movie,
Setting means for setting the number of pixels of the still image;
Instruction means for instructing still image shooting during the video shooting mode;
A focus adjusting means capable of executing a first focus control for controlling a focus with a first focus accuracy during a moving image shooting mode by controlling a position of the focus lens;
When still image shooting is instructed by the instructing unit, the focus adjusting unit has the first focusing accuracy according to the number of pixels of the moving image and the number of still image pixels set by the setting unit. And a control means for controlling whether or not to execute the second focusing control with a high second focusing accuracy.
前記制御手段は、前記設定手段により設定された静止画の画素数が予め設定された画素数よりも小さい場合に、前記焦点調節手段が前記第2の合焦制御を行わないように制御することを特徴とする請求項1に記載の撮像装置。   The control unit controls the focus adjustment unit not to perform the second focus control when the number of pixels of the still image set by the setting unit is smaller than a preset number of pixels. The imaging apparatus according to claim 1. 前記動画撮影モード中に、前記フォーカスレンズの光軸方向の被写体の移動速度を検出する検出手段を更に有し、
前記制御手段は、前記指示手段により静止画撮影が指示された場合に、更に前記検出手段により検出された光軸方向の被写体の移動速度が予め設定された速度よりも遅い場合に、前記焦点調節手段が前記第2の合焦制御を行わないように制御することを特徴とする請求項1または2に記載の撮像装置。
A detecting means for detecting a moving speed of the subject in the optical axis direction of the focus lens during the moving image shooting mode;
The control means adjusts the focus when the instruction means instructs to take a still image and when the moving speed of the subject detected in the optical axis direction detected by the detection means is slower than a preset speed. The imaging apparatus according to claim 1, wherein the control unit performs control so as not to perform the second focus control.
前記焦点調節手段は、前記第1の合焦制御を行って得られた合焦度合いが予め設定された合焦度合いよりも高い場合に、低い場合よりも、前記第2の合焦制御のために前記フォーカスレンズを駆動する駆動範囲を狭くすることを特徴とする請求項1乃至3のいずれか1項に記載の撮像装置。   The focus adjusting unit is configured to perform the second focus control when the focus degree obtained by performing the first focus control is higher than a preset focus degree, rather than when the focus degree is low. The imaging apparatus according to claim 1, wherein a driving range for driving the focus lens is narrowed. 前記第1の合焦制御で得られた前記フォーカスレンズの合焦位置を、前記第2の合焦制御における前記駆動範囲の中心とすることを特徴とする請求項4に記載の撮像装置。   The imaging apparatus according to claim 4, wherein a focus position of the focus lens obtained by the first focus control is set as a center of the drive range in the second focus control. フォーカスレンズの移動量及び移動方向を設定する移動量設定手段と、
前記フォーカスレンズを前記移動量設定手段により設定された移動量で往復移動する際に出力される撮像手段からの出力信号に基づいて、合焦状態を示す焦点評価値を算出する算出手段と、
前記算出手段から得られた焦点評価値に基づいて、被写体に合焦する前記フォーカスレンズの移動方向を検出する検出手段とを有し、
前記移動量設定手段は、前記算出手段により算出された焦点評価値及び、前記フォーカスレンズの移動方向の履歴に応じて、前記往復移動する際の移動量及び移動方向を設定し直すことを特徴とする焦点調節装置。
A moving amount setting means for setting the moving amount and moving direction of the focus lens;
A calculation unit that calculates a focus evaluation value indicating an in-focus state based on an output signal from an imaging unit that is output when the focus lens is reciprocally moved by a movement amount set by the movement amount setting unit;
Detecting means for detecting the moving direction of the focus lens focusing on the subject based on the focus evaluation value obtained from the calculating means;
The movement amount setting means resets the movement amount and the movement direction for the reciprocating movement according to the focus evaluation value calculated by the calculation means and the movement direction history of the focus lens. Focusing device.
前記移動量設定手段は、前記焦点評価値が算出される度にその1つ前に算出された焦点評価値と比較し、前記1つ前に算出された焦点評価値よりも減少した場合に前記フォーカスレンズの移動方向を反転し、予め決められた回数の範囲で同一方向を前記移動方向として決定した場合に、前記移動量を大きくすることを特徴とする請求項6に記載の焦点調節装置。   The moving amount setting means compares the focus evaluation value calculated one time before the focus evaluation value is calculated, and when the focus evaluation value is smaller than the focus evaluation value calculated one time before, The focus adjustment apparatus according to claim 6, wherein when the movement direction of the focus lens is reversed and the same direction is determined as the movement direction within a predetermined number of times, the movement amount is increased. 前記移動量設定手段は、前記焦点評価値が算出される度にその1つ前に算出された焦点評価値と比較し、値が減少した場合に前記フォーカスレンズの移動方向を反転し、予め決められた回数以上、前記移動方向が連続して反転した場合に、前記移動量を大きくすることを特徴とする請求項6または7に記載の焦点調節装置。   The movement amount setting means compares the focus evaluation value calculated one time before the focus evaluation value is calculated, and inverts the movement direction of the focus lens when the value decreases and determines in advance. The focus adjustment apparatus according to claim 6 or 7, wherein the moving amount is increased when the moving direction is continuously reversed more than a predetermined number of times. 前記移動量設定手段は、前記焦点評価値が算出される度にその1つ前に算出された焦点評価値と比較し、値が減少した場合に前記フォーカスレンズの移動方向を反転し、予め決められた回数以上、前記フォーカスレンズが同じ移動範囲で反転した場合に、前記移動量を小さくすることを特徴とする請求項6乃至8のいずれか1項に記載の焦点調節装置。   The movement amount setting means compares the focus evaluation value calculated one time before the focus evaluation value is calculated, and inverts the movement direction of the focus lens when the value decreases and determines in advance. 9. The focus adjustment apparatus according to claim 6, wherein the amount of movement is reduced when the focus lens is reversed within the same movement range more than a predetermined number of times. 前記移動量設定手段は、前記移動方向として無限遠方向を設定した場合に、至近方向の場合よりも前記移動量の変更幅を狭くすることを特徴とする請求項7乃至9のいずれか1項に記載の焦点調節装置。   10. The movement amount setting means, when the infinity direction is set as the movement direction, narrows the change range of the movement amount compared to the case of the closest direction. The focus adjustment device described in 1. 動画を記録するための動画撮影モード中に、静止画を撮影可能な撮像装置の制御方法であって、
静止画の画素数を設定する設定工程と、
前記動画撮影モード中に静止画撮影を指示する指示工程と、
フォーカスレンズの位置を制御することにより、動画撮影モード中に第1の合焦精度で合焦制御する第1の合焦制御工程と、
前記指示工程で静止画撮影が指示された場合に、動画の画素数と、前記設定工程で設定された静止画の画素数とに応じて、前記第1の合焦精度よりも高い第2の合焦精度で合焦制御を実行するかどうかを制御する制御工程と、
前記第2の合焦精度で合焦制御を実行する場合に、前記フォーカスレンズの位置を制御することにより、前記第2の合焦精度で合焦制御する第2の合焦制御工程と
を有することを特徴とする制御方法。
A method for controlling an imaging apparatus capable of shooting a still image during a movie shooting mode for recording a movie,
A setting process for setting the number of pixels of the still image;
An instruction process for instructing still image shooting during the video shooting mode;
A first focus control step of controlling focus with a first focus accuracy during moving image shooting mode by controlling the position of the focus lens;
When still image shooting is instructed in the instruction step, a second higher than the first focusing accuracy is obtained according to the number of pixels of the moving image and the number of pixels of the still image set in the setting step. A control process for controlling whether or not focus control is executed with focus accuracy;
A second focus control step of performing focus control with the second focus accuracy by controlling the position of the focus lens when performing focus control with the second focus accuracy. A control method characterized by that.
フォーカスレンズの移動量及び移動方向を設定する移動量設定工程と、
前記フォーカスレンズを前記移動量設定工程で設定された移動量で往復移動する際に出力される撮像手段からの出力信号に基づいて、合焦状態を示す焦点評価値を算出する算出工程と、
前記算出工程で算出された焦点評価値及び、前記フォーカスレンズの移動方向の履歴に応じて、前記往復移動する際の移動量及び移動方向を設定し直す再設定工程と、
前記フォーカスレンズを前記再設定工程で設定された移動量で往復移動する際に出力される撮像手段からの出力信号に基づいて、合焦状態を示す焦点評価値を算出する再算出工程と、
前記再設定工程と前記再算出工程とを繰り返し実行する反復工程とを有し、
前記反復工程における前記再設定工程では、前記再算出工程で算出された焦点評価値を用いて焦点評価値を算出することを特徴とする焦点調節方法。
A moving amount setting step for setting the moving amount and moving direction of the focus lens;
A calculation step of calculating a focus evaluation value indicating an in-focus state based on an output signal from the imaging means that is output when the focus lens is reciprocated by the movement amount set in the movement amount setting step;
A resetting step for resetting a moving amount and a moving direction in the reciprocating movement according to the focus evaluation value calculated in the calculating step and the moving direction history of the focus lens;
A recalculation step of calculating a focus evaluation value indicating an in-focus state based on an output signal from an imaging unit that is output when the focus lens is reciprocated by the movement amount set in the resetting step;
An iterative process for repeatedly executing the resetting process and the recalculating process,
In the resetting step in the iterative step, a focus evaluation value is calculated using the focus evaluation value calculated in the recalculation step.
JP2007008497A 2007-01-17 2007-01-17 Imaging apparatus and control method thereof Expired - Fee Related JP5020643B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007008497A JP5020643B2 (en) 2007-01-17 2007-01-17 Imaging apparatus and control method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007008497A JP5020643B2 (en) 2007-01-17 2007-01-17 Imaging apparatus and control method thereof

Publications (3)

Publication Number Publication Date
JP2008177785A true JP2008177785A (en) 2008-07-31
JP2008177785A5 JP2008177785A5 (en) 2010-03-11
JP5020643B2 JP5020643B2 (en) 2012-09-05

Family

ID=39704482

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007008497A Expired - Fee Related JP5020643B2 (en) 2007-01-17 2007-01-17 Imaging apparatus and control method thereof

Country Status (1)

Country Link
JP (1) JP5020643B2 (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010134210A (en) * 2008-12-05 2010-06-17 Sanyo Electric Co Ltd Electronic camera
JP2011154148A (en) * 2010-01-27 2011-08-11 Sanyo Electric Co Ltd Electronic camera
JP2011242791A (en) * 2009-10-22 2011-12-01 Panasonic Corp Focus system, interchangeable lens, and imaging apparatus
JP2013130818A (en) * 2011-12-22 2013-07-04 Canon Inc Automatic focusing device, control method thereof and program
WO2013168658A1 (en) * 2012-05-07 2013-11-14 株式会社ニコン Focus detection device
JP2013235048A (en) * 2012-05-07 2013-11-21 Nikon Corp Focus detection device
JP2016038427A (en) * 2014-08-06 2016-03-22 キヤノン株式会社 Imaging apparatus, control method thereof, and control program
JP2021051314A (en) * 2016-06-30 2021-04-01 株式会社ニコン camera

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05308557A (en) * 1992-04-28 1993-11-19 Olympus Optical Co Ltd Automatic focusing device
JP2004158967A (en) * 2002-11-05 2004-06-03 Konica Minolta Holdings Inc Mobile phone with imaging apparatus
JP2005128565A (en) * 2001-08-10 2005-05-19 Canon Inc Lens barrel
JP2006171470A (en) * 2004-12-16 2006-06-29 Canon Inc Photographing apparatus
JP2006301378A (en) * 2005-04-21 2006-11-02 Canon Inc Imaging apparatus
JP2006325194A (en) * 2005-04-21 2006-11-30 Canon Inc Image sensing apparatus and control method therefor

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05308557A (en) * 1992-04-28 1993-11-19 Olympus Optical Co Ltd Automatic focusing device
JP2005128565A (en) * 2001-08-10 2005-05-19 Canon Inc Lens barrel
JP2004158967A (en) * 2002-11-05 2004-06-03 Konica Minolta Holdings Inc Mobile phone with imaging apparatus
JP2006171470A (en) * 2004-12-16 2006-06-29 Canon Inc Photographing apparatus
JP2006301378A (en) * 2005-04-21 2006-11-02 Canon Inc Imaging apparatus
JP2006325194A (en) * 2005-04-21 2006-11-30 Canon Inc Image sensing apparatus and control method therefor

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010134210A (en) * 2008-12-05 2010-06-17 Sanyo Electric Co Ltd Electronic camera
JP2011242791A (en) * 2009-10-22 2011-12-01 Panasonic Corp Focus system, interchangeable lens, and imaging apparatus
JP2011154148A (en) * 2010-01-27 2011-08-11 Sanyo Electric Co Ltd Electronic camera
JP2013130818A (en) * 2011-12-22 2013-07-04 Canon Inc Automatic focusing device, control method thereof and program
WO2013168658A1 (en) * 2012-05-07 2013-11-14 株式会社ニコン Focus detection device
JP2013235048A (en) * 2012-05-07 2013-11-21 Nikon Corp Focus detection device
CN104285173A (en) * 2012-05-07 2015-01-14 株式会社尼康 Focus detection device
US9497374B2 (en) 2012-05-07 2016-11-15 Nikon Corporation Focus detection device
JP2016038427A (en) * 2014-08-06 2016-03-22 キヤノン株式会社 Imaging apparatus, control method thereof, and control program
JP2021051314A (en) * 2016-06-30 2021-04-01 株式会社ニコン camera
JP7088268B2 (en) 2016-06-30 2022-06-21 株式会社ニコン camera

Also Published As

Publication number Publication date
JP5020643B2 (en) 2012-09-05

Similar Documents

Publication Publication Date Title
US7796182B2 (en) Image-taking apparatus and focusing method
ES2199728T3 (en) AUTOFOCUS DEVICE.
JP3302003B2 (en) Imaging device having autofocus function
JP5020643B2 (en) Imaging apparatus and control method thereof
JP5004649B2 (en) Focus adjustment device, imaging device, and focus adjustment method
JP2010102041A (en) Autofocusing device, autofocusing method, and imaging apparatus
JP2006215546A (en) Focusing method, focusing apparatus and imaging apparatus
US9654680B2 (en) Image capturing apparatus and control method therefor
JP4845628B2 (en) Focus adjustment device, imaging device, and focus adjustment method
US20030169363A1 (en) Image pickup apparatus and method, and image-pickup control computer program
JP5173676B2 (en) Automatic focus adjustment device and control method thereof
JP2006033023A (en) Image pickup device
JP2007129310A (en) Imaging apparatus
JP6139960B2 (en) Imaging apparatus and control method thereof
JP2004151609A (en) Autofocus system
US9357124B2 (en) Focusing control device and controlling method of the same
JP2010156851A (en) Focus adjustment device and method
JP5075110B2 (en) Focus adjustment apparatus and method
JP6087714B2 (en) Imaging apparatus and control method thereof
JP5926757B2 (en) Automatic focusing device, automatic focusing method, and imaging device
JP5858658B2 (en) Imaging device
JP2011048265A (en) Focus detection device and focus detection method
JP2006023653A (en) Optical equipment
JP2015079158A (en) Image capturing device and control method therefor
JP2006157604A (en) Camera apparatus and automatic photographing control program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20100118

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100122

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20110615

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110624

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110816

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20120611

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20120613

R151 Written notification of patent or utility model registration

Ref document number: 5020643

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20150622

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees