JP5063546B2 - Focus adjustment device, focus adjustment control method, and program - Google Patents

Focus adjustment device, focus adjustment control method, and program Download PDF

Info

Publication number
JP5063546B2
JP5063546B2 JP2008244320A JP2008244320A JP5063546B2 JP 5063546 B2 JP5063546 B2 JP 5063546B2 JP 2008244320 A JP2008244320 A JP 2008244320A JP 2008244320 A JP2008244320 A JP 2008244320A JP 5063546 B2 JP5063546 B2 JP 5063546B2
Authority
JP
Japan
Prior art keywords
area
areas
evaluation value
focus
group
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.)
Expired - Fee Related
Application number
JP2008244320A
Other languages
Japanese (ja)
Other versions
JP2010078682A (en
Inventor
敦也 川西
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 JP2008244320A priority Critical patent/JP5063546B2/en
Publication of JP2010078682A publication Critical patent/JP2010078682A/en
Application granted granted Critical
Publication of JP5063546B2 publication Critical patent/JP5063546B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、被写体情報を利用してAF(オートフォーカス)を行う焦点調節装置、焦点調節制御方法、及びプログラムに関する。   The present invention relates to a focus adjustment device that performs AF (autofocus) using subject information, a focus adjustment control method, and a program.

ビデオカメラ等の焦点調節装置は、撮像素子により被写体像を光電変換して得られた画像信号から鮮鋭度を表すAF評価値を検出し、そのAF評価値が最大となるようにフォーカスレンズ位置を制御して焦点調節を行う方式が主流である。以下、この焦点調節方式をTV−AF方式という。   A focus adjustment device such as a video camera detects an AF evaluation value representing sharpness from an image signal obtained by photoelectrically converting a subject image using an imaging device, and determines a focus lens position so that the AF evaluation value is maximized. The method of controlling and adjusting the focus is the mainstream. Hereinafter, this focus adjustment method is referred to as a TV-AF method.

しかし、このTV−AF方式によって人物を撮影した場合、撮影条件や被写体条件によってはピントが主被写体である人物ではなく、コントラストの高い背景に合ってしまうという問題がある。   However, when a person is photographed by this TV-AF method, there is a problem that depending on the photographing condition and subject condition, the subject is not the person whose focus is the main subject but a background with high contrast.

そこで、近年では、顔認識機能を有する撮像装置において、認識された顔領域が含まれるようにAFエリアを設定し、焦点検出を行う手法(特許文献1)や、人物の目を検出し、その結果に基づいて焦点検出を行う手法(特許文献2)が提案されている。
特開2006−227080号公報 特開2001−215403号公報
Therefore, in recent years, in an imaging apparatus having a face recognition function, an AF area is set so as to include a recognized face area, and focus detection is performed (patent document 1), or human eyes are detected. A method of performing focus detection based on the result (Patent Document 2) has been proposed.
JP 2006-227080 A JP 2001-215403 A

上述した顔認識機能を用いた焦点検出手法では、人物の顔が認識された場合は、顔領域に対して、そうでない場合は、あらかじめ設定されている領域に対して、AFエリアを設定して焦点検出を行っている。そのため、人物の顔が常に認識されている場合は、安定して人物へピントを合わせることができる。   In the focus detection method using the face recognition function described above, an AF area is set for a face area when a human face is recognized, and for a preset area otherwise. Focus detection is performed. Therefore, when a person's face is always recognized, it is possible to focus on the person stably.

しかし、実際には、人物が横を向いたり、目を閉じたりしたときの被写体の変化や、撮影時の手ブレなどが発生すると顔の認識精度は低下してしまう。   However, in reality, if a subject changes when a person turns sideways or closes his eyes, or a camera shake occurs during shooting, the recognition accuracy of the face decreases.

このような条件下では、顔が認識された場合とそうでない場合とでAF評価値を検出する領域が頻繁に切り替わることから、AF評価値が大きく変動してしまい、安定したピント合わせを行うことができない。特に動画撮影の場合、人物が常に動いている可能性が高く、その影響はより顕著なものとなる。   Under such conditions, the AF detection value is frequently switched between the case where the face is recognized and the case where the face is not recognized, so that the AF evaluation value greatly fluctuates and stable focusing is performed. I can't. In particular, in the case of moving image shooting, there is a high possibility that a person is constantly moving, and the influence becomes more prominent.

そこで、本発明は、被写体検出機能を用いて合焦すべき被写体にピントを合わせる場合に、安定した焦点調節制御を行うことができる焦点調節装置、焦点調節制御方法、及びプログラムを提供することを目的とする。   Therefore, the present invention provides a focus adjustment device, a focus adjustment control method, and a program capable of performing stable focus adjustment control when a subject to be focused is focused using the subject detection function. Objective.

上記目的を達成するために、本発明の焦点調節装置は、フォーカスレンズを含む撮影光学系を通過した被写体像を光電変換して得られた撮像画像から被写体の特徴部位を検出する検出手段と、複数のAFエリアを前記検出手段により検出された複数の被写体の特徴部位に対応する領域に設定するAFエリア設定手段と、前記検出手段からの出力信号に基づいて生成されたAF評価値を取得する焦点検出手段と、前記複数のAFエリアの状態に応じて前記複数のAFエリアのうちからAF評価値を使用すべきAFエリアを選択するAFエリア選択手段とを有する焦点調節装置であって、前記検出手段に複数の被写体の特徴部位が検出されて前記AFエリア設定手段にて前記複数の被写体の特徴部位に対応する領域に複数のAFエリアが設定され場合、前記AFエリア選択手段は、前記複数のAFエリアを各AFエリアの位置に基づいて複数のAFエリア群にグループ化し、含まれるAFエリアの数が最も多いAFエリア群を選択し、選択されないAFエリア群のAF評価値を用いずに前記選択されたAFエリア群のAF評価値を用いて前記フォーカスレンズを移動させて方向判別を行い、その後、前記選択されたAFエリア群に含まれるAFエリアのうちから合焦させるためのAFエリアを選択し、選択されたAFエリアのAF評価値に基づいて前記フォーカスレンズを移動させて合焦判別を行う焦点調節手段を有するIn order to achieve the above object, the focus adjustment apparatus of the present invention includes a detection unit that detects a characteristic part of a subject from a captured image obtained by photoelectrically converting a subject image that has passed through a photographing optical system including a focus lens , An AF area setting unit that sets a plurality of AF areas in areas corresponding to characteristic portions of a plurality of subjects detected by the detection unit, and an AF evaluation value generated based on an output signal from the detection unit is acquired. a focus adjustment apparatus having a focus detecting means, and AF area selection means for selecting the AF area to be used AF evaluation value from among the plurality of AF areas in accordance with the state of the plurality of AF areas, the more is detected feature portion of the plurality of the plurality of AF areas set is in the region corresponding to characteristic portions of a subject in the AF area setting means of the subject Te in the detection means When the AF area selection means, said plurality of the AF area based on the position of each AF area is grouped into a plurality of AF area group, the number of the AF area to select the largest AF area group included, selected The focus lens is moved using the AF evaluation value of the selected AF area group without using the AF evaluation value of the AF area group that is not set, and then the direction is determined, and then included in the selected AF area group Focus adjustment means for selecting an AF area for focusing from among the AF areas and moving the focus lens based on an AF evaluation value of the selected AF area to perform focusing determination .

本発明の焦点調節装置は、フォーカスレンズを含む撮影光学系を通過した被写体像を光電変換して得られた撮像画像から被写体の特徴部位を検出する検出手段と、複数のAFエリアを前記検出手段により検出された複数の被写体の特徴部位に対応する領域に設定するAFエリア設定手段と、前記検出手段からの出力信号に基づいて生成されたAF評価値を取得する焦点検出手段と、前記複数のAFエリアの状態に応じて前記複数のAFエリアのうちからAF評価値を使用すべきAFエリアを選択するAFエリア選択手段とを有する焦点調節装置であって、前記検出手段に複数の被写体の特徴部位が検出されて前記AFエリア設定手段にて前記複数の被写体の特徴部位に対応する領域に複数のAFエリアが設定された場合、前記AFエリア選択手段は、前記複数のAFエリアを各AFエリアの大きさに基づいて複数のAFエリア群にグループ化し、含まれるAFエリアの数が最も多いAFエリア群を選択し、選択されないAFエリア群のAF評価値を用いずに前記選択されたAFエリア群のAF評価値を用いて前記フォーカスレンズを移動させて方向判別を行い、その後、前記選択されたAFエリア群に含まれるAFエリアのうちから合焦させるためのAFエリアを選択し、選択されたAFエリアのAF評価値に基づいて前記フォーカスレンズを移動させて合焦判別を行う焦点調節手段を有するThe focus adjustment apparatus of the present invention includes a detection unit that detects a characteristic part of a subject from a captured image obtained by photoelectrically converting a subject image that has passed through a photographing optical system including a focus lens, and a plurality of AF areas as the detection unit. AF area setting means for setting areas corresponding to the characteristic portions of the plurality of subjects detected by the above, focus detection means for acquiring an AF evaluation value generated based on an output signal from the detection means , a focusing device having an AF area selecting means for selecting the AF area to be used AF evaluation value from among the plurality of AF areas in accordance with the state of the AF area, the plurality of subjects Te to the detection means If a region characteristic site corresponds to the characteristic portions of the plurality of subjects by the AF area setting means is detected a plurality of AF areas is set, the AF area selection The means groups the plurality of AF areas into a plurality of AF area groups based on the size of each AF area, selects the AF area group having the largest number of AF areas included, and selects the AF areas that are not selected. The focus lens is moved using the AF evaluation value of the selected AF area group without using the evaluation value to determine the direction, and then the AF area included in the selected AF area group is combined. Focus adjustment means for selecting an AF area to be focused and moving the focus lens based on an AF evaluation value of the selected AF area to perform in-focus determination .

本発明の焦点調節装置は、フォーカスレンズを含む撮影光学系を通過した被写体像を光電変換して得られた撮像画像から被写体の特徴部位を検出する検出手段と、複数のAFエリアを前記検出手段により検出された複数の被写体の特徴部位に対応する領域に設定するAFエリア設定手段と、前記検出手段からの出力信号に基づいて生成されたAF評価値を取得する焦点検出手段と、前記複数のAFエリアの状態に応じて前記複数のAFエリアのうちからAF評価値を使用すべきAFエリアを選択するAFエリア選択手段を有する焦点調節装置であって、前記検出手段にて複数の被写体の特徴部位が検出されて前記AFエリア設定手段にて前記複数の被写体の特徴部位に対応する領域に複数のAFエリアが設定された場合、前記AFエリア選択手段は、前記複数のAFエリアを各AFエリアの移動方向に基づいて複数のAFエリア群にグループ化し、含まれるAFエリアの数が多いAFエリア群を選択し、選択されないAFエリア群のAF評価値を用いずに前記選択されたAFエリアのAF評価値を用いて前記フォーカスレンズを移動させて方向判別を行い、その後、前記選択されたAFエリア群に含まれるAFエリアのうちから合焦させるためのAFエリアを選択し、選択されたAFエリアのAF評価値に基づいて前記フォーカスレンズを移動させて合焦判別を行う焦点調節手段を有するThe focus adjustment apparatus of the present invention includes a detection unit that detects a characteristic part of a subject from a captured image obtained by photoelectrically converting a subject image that has passed through a photographing optical system including a focus lens, and a plurality of AF areas as the detection unit. and AF area setting means for setting a region corresponding to the characteristic portions of a plurality of subjects detected by the focus detection means for obtaining the generated AF evaluation value based on an output signal from said detecting means, said plurality of An AF area selection unit that selects an AF area to use an AF evaluation value from among the plurality of AF areas according to the state of the AF area , wherein the detection unit detects a plurality of subjects. If a region characteristic site corresponds to the characteristic portions of the plurality of subjects by the AF area setting means is detected a plurality of AF areas is set, the AF area selection The means groups the plurality of AF areas into a plurality of AF area groups based on the moving direction of each AF area, selects an AF area group having a large number of AF areas included, and performs AF evaluation of AF area groups that are not selected. The focus lens is moved by using the AF evaluation value of the selected AF area without using a value, direction determination is performed, and then the AF area included in the selected AF area group is focused. A focus adjusting unit that selects an AF area for the focus detection and moves the focus lens based on an AF evaluation value of the selected AF area to perform focusing determination .

本発明によれば、特に動画撮影の際に、撮影者の意図する被写体に対して安定した焦点調節制御を行うことができる。   According to the present invention, it is possible to perform stable focus adjustment control on a subject intended by a photographer, particularly when shooting a moving image.

以下、本発明の実施形態を図面を参照して説明する。   Hereinafter, embodiments of the present invention will be described with reference to the drawings.

安定した焦点調節制御を行うためには、あらかじめ設定されている領域のAF評価値と、顔領域等の被写体の特徴部位(以下、特定被写体という)の領域のAF評価値とを組み合わせて使用することが有効である。   In order to perform stable focus adjustment control, an AF evaluation value for a preset area and an AF evaluation value for an area of a characteristic part of a subject such as a face area (hereinafter referred to as a specific subject) are used in combination. It is effective.

ところが、通常、撮影者は画面の中央に特定被写体を配置して撮影することが一般的であるのに対し、実際には図2の例の点線で示した領域のように、画面の端や背景などで特定被写体以外の顔が検出されてしまうことがある。   However, in general, a photographer generally shoots with a specific subject placed at the center of the screen, but in practice, the edge of the screen and the area shown by the dotted line in the example of FIG. A face other than the specific subject may be detected in the background or the like.

このように、複数の顔が検出された場合、その顔のすべてが撮影者の意図したものとは限らない。特に、被写界深度が浅い条件での撮影時に、それら複数の顔が遠近競合等を含んでいる場合、意図しない顔領域の情報に影響されてハンチング等が起こるという問題がある。   Thus, when a plurality of faces are detected, not all of the faces are intended by the photographer. In particular, when shooting under conditions with a shallow depth of field, if the plurality of faces include perspective conflicts, there is a problem that hunting or the like occurs due to influence of unintended face area information.

そこで、以下の実施形態では、検出された顔の数やレンズの駆動状態(例えば、方向判別モード、合焦判別モードなど)に応じて顔領域のAF評価値を最適にして、安定した焦点調節制御を行うことを可能にする。   Therefore, in the following embodiment, stable focus adjustment is performed by optimizing the AF evaluation value of the face area according to the number of detected faces and the driving state of the lens (for example, the direction determination mode, the focus determination mode, etc.). Allows control to be performed.

(第1の実施形態)
図1は、本発明の第1の実施形態である焦点調節装置を備えるビデオカメラの構成例を説明するためのブロック図である。
(First embodiment)
FIG. 1 is a block diagram for explaining a configuration example of a video camera including a focus adjustment apparatus according to the first embodiment of the present invention.

図1に示すビデオカメラは、撮影光学系として、例えば、第1固定レンズ101、光軸方向に移動して変倍を行う変倍レンズ102、絞り103、第2固定レンズ104、及びフォーカスレンズ105を有する。フォーカスレンズ105は、変倍に伴う焦点面の移動を補正する機能とフォーカシング機能とを兼ね備えたフォーカスコンペンセータレンズである。   The video camera shown in FIG. 1 includes, as an imaging optical system, for example, a first fixed lens 101, a variable magnification lens 102 that moves in the optical axis direction and performs variable magnification, an aperture 103, a second fixed lens 104, and a focus lens 105. Have The focus lens 105 is a focus compensator lens that has both a function of correcting the movement of the focal plane accompanying zooming and a focusing function.

撮像素子106は、CCDセンサやCMOSセンサにより構成され、複数の光電変換部を有する画素を備える。この画素において、被写体像を光電変換し撮像画像を得ることができる。CDS/AGC/ADコンバータ107は、撮像素子106の出力をサンプリング、ゲイン調整、デジタル変換する。   The image sensor 106 is configured by a CCD sensor or a CMOS sensor, and includes a pixel having a plurality of photoelectric conversion units. In this pixel, a subject image can be photoelectrically converted to obtain a captured image. The CDS / AGC / AD converter 107 performs sampling, gain adjustment, and digital conversion on the output of the image sensor 106.

カメラ信号処理回路108は、CDS/AGC/ADコンバータ107からの出力信号に対して各種の画像処理を施し、画像信号を生成する。表示装置109は、カメラ信号処理回路108からの画像信号を表示する。記録装置110は、カメラ信号処理回路108からの画像信号を磁気テープ、光ディスク、半導体メモリ等の記録媒体に記録する。   The camera signal processing circuit 108 performs various types of image processing on the output signal from the CDS / AGC / AD converter 107 to generate an image signal. The display device 109 displays the image signal from the camera signal processing circuit 108. The recording device 110 records the image signal from the camera signal processing circuit 108 on a recording medium such as a magnetic tape, an optical disk, or a semiconductor memory.

AFゲート111は、CDS/AGC/ADコンバータ107からの全画素の出力信号のうち焦点検出に用いられる領域の信号のみを通すゲートである。AF評価値処理回路112は、AFゲート111を通過した信号から高周波成分や該高周波信号から生成した輝度差成分(AFゲート111を通過した信号の輝度レベルの最大値と最小値の差分)等を抽出して第1の情報としてのAF評価値を生成する。   The AF gate 111 is a gate that passes only signals in a region used for focus detection among output signals of all pixels from the CDS / AGC / AD converter 107. The AF evaluation value processing circuit 112 calculates a high frequency component from a signal that has passed through the AF gate 111, a luminance difference component generated from the high frequency signal (difference between the maximum value and the minimum value of the luminance level of the signal that has passed through the AF gate 111), and the like. The AF evaluation value as the first information is generated by extraction.

ここで、AF評価値は、撮像素子106からの出力信号に基づいて生成される画像の鮮鋭度(コントラスト状態)を表すものであるが、鮮鋭度は撮像光学系の焦点状態によって変化するので、結果的に撮像光学系の焦点状態を表す信号となる。   Here, the AF evaluation value represents the sharpness (contrast state) of the image generated based on the output signal from the image sensor 106, but the sharpness changes depending on the focus state of the imaging optical system. As a result, the signal indicates the focus state of the imaging optical system.

顔検出処理回路113は、画像信号に対して顔認識処理を施し、特定被写体情報(撮影画面内の人物の顔の大きさ、位置、顔の確からしさを示す信頼性)を検出し、その検出結果をカメラ/AF制御部114に送信する。   The face detection processing circuit 113 performs face recognition processing on the image signal, detects specific subject information (reliability indicating the size, position, and likelihood of the face of the person in the shooting screen), and detects the detection. The result is transmitted to the camera / AF control unit 114.

カメラ/AF制御部114は、上記検出結果に基づき、撮影画面内の顔領域を含む位置に焦点検出に用いられる領域を追加するようにAFゲート111へ情報を送信する。   Based on the detection result, the camera / AF control unit 114 transmits information to the AF gate 111 so as to add an area used for focus detection to a position including a face area in the shooting screen.

なお、上記の顔認識処理は、例えば、画像データで表される各画素の階調色から、肌色領域を抽出し、あらかじめ用意した顔の輪郭プレートとのマッチング度で顔を検出する方法や、抽出された目、鼻、口等の顔の特徴点からパターン認識を行う方法等がある。   Note that the face recognition process described above is, for example, a method of extracting a skin color region from the gradation color of each pixel represented by image data and detecting a face with a matching degree with a face contour plate prepared in advance, There is a method of performing pattern recognition from extracted facial feature points such as eyes, nose and mouth.

また、カメラ/AF制御部114は、AF評価値処理回路112の出力信号に基づいて、フォーカスレンズ駆動源116を制御してフォーカスレンズ105を駆動するとともに、記録装置110へ画像記録命令を出力する。   Further, the camera / AF control unit 114 controls the focus lens driving source 116 based on the output signal of the AF evaluation value processing circuit 112 to drive the focus lens 105 and outputs an image recording command to the recording device 110. .

変倍レンズ駆動源115は、変倍レンズ102を移動させるためのアクチュエータおよびそのドライバを含む。フォーカスレンズ駆動源116は、フォーカスレンズ105を移動させるためのアクチュエータおよびそのドライバを含む。変倍レンズ駆動源115およびフォーカスレンズ駆動源116のアクチュエータには、例えば、ステッピングモータ、DCモータ、振動型モータおよびボイスコイルモータ等が用いられる。   The zoom lens driving source 115 includes an actuator for moving the zoom lens 102 and a driver thereof. The focus lens driving source 116 includes an actuator for moving the focus lens 105 and a driver thereof. For example, a stepping motor, a DC motor, a vibration motor, a voice coil motor, or the like is used as the actuator of the variable power lens driving source 115 and the focus lens driving source 116.

次に、図4を参照して、カメラ/AF制御部114で行われる焦点調節制御について説明する。図4での各処理は、不図示のROMやハードディスク等に記憶された制御プログラムがRAMにロードされて、カメラ/AF制御部114のCPU等により実行される。   Next, focus adjustment control performed by the camera / AF control unit 114 will be described with reference to FIG. Each process in FIG. 4 is executed by a CPU or the like of the camera / AF control unit 114 after a control program stored in a ROM, hard disk, or the like (not shown) is loaded into the RAM.

まず、ステップSステップS401では、カメラ/AF制御部114は、AF評価値処理回路112よりTV−AF制御の基本となるAF評価値を取得するための固定のAFエリアの位置と大きさを設定し、ステップS402に進む。   First, in step S401, the camera / AF control unit 114 sets the position and size of a fixed AF area for obtaining an AF evaluation value that is the basis of TV-AF control from the AF evaluation value processing circuit 112. Then, the process proceeds to step S402.

この固定のAFエリアは、顔エリア(検出された顔に対応する領域)に対して設定されるAFエリアとは異なり、例えば、顔検出処理回路113により顔認識処理された結果に基づかない領域に設定される。   This fixed AF area is different from the AF area set for the face area (the area corresponding to the detected face), for example, an area that is not based on the result of the face recognition processing performed by the face detection processing circuit 113. Is set.

なお、その他の固定のAFエリアの例として、顔エリアに対して設定されるAFエリアよりも大きく、また当該AFエリアの領域を含む領域に設定するようにしてもよい。   As another example of the fixed AF area, the area may be set to an area larger than the AF area set for the face area and including the area of the AF area.

また、このときAF評価値処理回路112内のフィルタ係数を設定し、抽出特性の異なる複数のバンドパスフィルタを構築する。抽出特性とは、バンドパスフィルタの周波数特性であり、ここでの設定とは、AF評価値処理回路112内のバンドパスフィルタの設定値を変更することを意味する。   At this time, the filter coefficient in the AF evaluation value processing circuit 112 is set, and a plurality of band pass filters having different extraction characteristics are constructed. The extraction characteristic is the frequency characteristic of the bandpass filter, and the setting here means changing the setting value of the bandpass filter in the AF evaluation value processing circuit 112.

ステップS402では、カメラ/AF制御部114は、顔検出処理回路113から顔検出処理結果の情報を取得し、ステップS403に進む。   In step S402, the camera / AF control unit 114 acquires information on the face detection processing result from the face detection processing circuit 113, and the process proceeds to step S403.

ステップS403では、カメラ/AF制御部114は、ステップS402で取得した情報から顔が検出されたか否かを判断し、検出された場合は、ステップS404に進む、検出されない場合は、ステップS416に進む。   In step S403, the camera / AF control unit 114 determines whether a face is detected from the information acquired in step S402. If it is detected, the process proceeds to step S404. If not detected, the process proceeds to step S416. .

ステップS404では、カメラ/AF制御部114は、ステップS402で取得した情報から複数の顔が検出されたか否かを判断し、複数の顔が検出された場合は、ステップS405に進み、そうでない場合は、ステップS413に進む。   In step S404, the camera / AF control unit 114 determines whether or not a plurality of faces are detected from the information acquired in step S402. If a plurality of faces are detected, the process proceeds to step S405. Advances to step S413.

ステップS405では、カメラ/AF制御部114は、後述のステップS412で設定される顔エリア選択状態を示すフラグが立っているか否かを判断し、フラグが立っている場合は、ステップS407に進み、そうでない場合は、ステップS406に進む。   In step S405, the camera / AF control unit 114 determines whether or not a flag indicating the face area selection state set in step S412 described later is set. If the flag is set, the process proceeds to step S407. Otherwise, the process proceeds to step S406.

ここで、顔エリア選択状態とは、検出された複数の顔エリアからAF評価値を監視対象とする顔エリアをいくつか選択中であることを意味し、複数の顔エリアが検出されている期間継続する。   Here, the face area selection state means that several face areas whose AF evaluation values are to be monitored are being selected from a plurality of detected face areas, and a period during which a plurality of face areas are detected. continue.

ステップS406では、カメラ/AF制御部114は、ステップS402で取得した情報から検出されたすべての顔エリアをAF評価値の監視対象として指定し、ステップS412に進む。   In step S406, the camera / AF control unit 114 designates all face areas detected from the information acquired in step S402 as monitoring targets for AF evaluation values, and the process proceeds to step S412.

図2の例の場合では、検出されたすべての顔エリアA、B、C、D、EがAF評価値の監視対象となる。   In the case of the example in FIG. 2, all detected face areas A, B, C, D, and E are to be monitored for AF evaluation values.

一方、ステップS407では、カメラ/AF制御部114は、後述のTV−AFの制御状態が方向判別モードであるか否かを判断し、方向判別モードである場合は、ステップS408に進み、そうでない場合は、ステップS410に進む。   On the other hand, in step S407, the camera / AF control unit 114 determines whether or not the TV-AF control state described later is in the direction determination mode, and if it is in the direction determination mode, the process proceeds to step S408, otherwise. If so, the process proceeds to step S410.

ステップS408では、カメラ/AF制御部114は、複数の顔エリアを位置(所定の指標)ごとにグループ化した後、すべての顔エリアが同一グループに属するかを判断する。そして、カメラ/AF制御部114は、すべての顔エリアが同一グループに属する場合は、ステップS412に進み、そうでない場合は、ステップS409に進む。   In step S408, the camera / AF control unit 114 groups a plurality of face areas for each position (predetermined index), and then determines whether all the face areas belong to the same group. If all the face areas belong to the same group, the camera / AF control unit 114 proceeds to step S412; otherwise, the camera / AF control unit 114 proceeds to step S409.

ここで、より多くの顔エリアを含むグループをメイン顔エリア群とする。図2の例の場合、グループ化した結果は、図3に示すようになり、グループ1に含まれる顔エリアA、B、Cがメイン顔エリア群となる。ただし、含む顔エリアの数が等しいグループが複数存在する場合は、基準となる顔エリア(後述する)を含む顔エリア群をメイン顔エリア群とする。   Here, a group including more face areas is defined as a main face area group. In the case of the example of FIG. 2, the grouped result is as shown in FIG. 3, and the face areas A, B, and C included in the group 1 become the main face area group. However, when there are a plurality of groups having the same number of face areas to be included, a face area group including a reference face area (described later) is set as a main face area group.

ステップS409では、カメラ/AF制御部114は、ステップS408でメイン顔エリア群に存在しないと判断された顔エリアを、以降、AF評価値の監視対象に指定しないようにし、ステップS412に進む。   In step S409, the camera / AF control unit 114 does not designate the face area determined not to be present in the main face area group in step S408 as the AF evaluation value monitoring target, and proceeds to step S412.

つまり、その後は位置の近い複数の顔エリアのAF評価値に基づいて撮像光学系を移動させて焦点調節を行う。この結果、図2の例の場合、顔エリアA、B、Cの位置は近いのに対し、顔エリアD、Eの位置はそうでないため、顔エリアD、Eは、以降、AF評価値の監視対象とならない。   That is, after that, the focus adjustment is performed by moving the imaging optical system based on the AF evaluation values of a plurality of face areas close to each other. As a result, in the example of FIG. 2, the positions of the face areas A, B, and C are close, but the positions of the face areas D and E are not. Not subject to monitoring.

また、ステップS410では、カメラ/AF制御部114は、後述のTV−AFの制御状態が合焦判別モードであるか否かを判断し、合焦判定モードである場合は、ステップS411に進み、そうでない場合は、ステップS412に進む。   In step S410, the camera / AF control unit 114 determines whether the TV-AF control state described later is in the focus determination mode. If the focus determination mode is in focus determination mode, the process proceeds to step S411. Otherwise, the process proceeds to step S412.

ステップS411では、カメラ/AF制御部114は、最終的にピントを合わせるための基準となる顔エリアを1つ指定し、ステップS412に進む。   In step S411, the camera / AF control unit 114 designates one face area as a reference for finally focusing, and the process proceeds to step S412.

ここで、基準となる顔エリアを指定するのに満たすべき条件として、面積が最大であるもの、中央に位置するもの、もしくは、顔が最至近側に位置するものなどがある。例えば、面積が最大であるものとした場合、図2の例では顔エリアBが対象となる。また、最も中央に位置するものとした場合、図2の例の場合では顔エリアAが対象となる。   Here, the conditions to be satisfied for designating the reference face area include those having the largest area, those in the center, those in which the face is located on the closest side, and the like. For example, when the area is the maximum, the face area B is targeted in the example of FIG. Further, in the case of the example shown in FIG.

このように、焦点調節動作を行う際に参照するAF評価値を得る顔エリアを少なくして、適正な顔エリアだけにすることにより、所望の特定被写体にピントを合わせることができる。   As described above, by reducing the face area for obtaining the AF evaluation value to be referred to when performing the focus adjustment operation and making only the appropriate face area, it is possible to focus on a desired specific subject.

ステップS412では、カメラ/AF制御部114は、現在、前述の顔エリア選択状態であることを示すフラグをセットして顔選択状態を継続し、ステップS415に進む。   In step S412, the camera / AF control unit 114 sets the flag indicating that the face area is currently selected, continues the face selection state, and proceeds to step S415.

また、ステップS413では、カメラ/AF制御部114は、ステップS402で取得した情報から、検出された顔エリアをAF評価値の監視対象として指定し、ステップS414に進む。   In step S413, the camera / AF control unit 114 designates the detected face area as an AF evaluation value monitoring target from the information acquired in step S402, and the process proceeds to step S414.

ステップS414では、カメラ/AF制御部114は、前述の顔エリア選択状態であることを示すフラグをクリアして、顔選択状態を中止し、ステップS415に進む。   In step S414, the camera / AF control unit 114 clears the flag indicating the face area selection state described above, stops the face selection state, and proceeds to step S415.

ステップS415では、カメラ/AF制御部114は、現在指定されている顔エリアにAF評価値を取得するためのAFエリアを設定し、ステップS417に進む。   In step S415, the camera / AF control unit 114 sets an AF area for acquiring an AF evaluation value in the currently designated face area, and the process proceeds to step S417.

また、ステップS416では、カメラ/AF制御部114は、前述の顔エリア選択状態であることを示すフラグをクリアして、顔選択状態を中止し、ステップS417に進む。   In step S416, the camera / AF control unit 114 clears the flag indicating that the face area is selected, stops the face selection state, and proceeds to step S417.

ステップS417では、カメラ/AF制御部114は、ステップS401及びステップS415で設定したAFエリアのAF評価値を取得し、ステップS418に進む。   In step S417, the camera / AF control unit 114 acquires the AF evaluation value of the AF area set in steps S401 and S415, and the process proceeds to step S418.

ここで取得したAF評価値は、所定比率で加算(合成)したのち、以降の焦点調節制御に使用される。なお、本実施形態では、それぞれの顔エリアにおけるAF評価値は、メモリ等に履歴として記憶されているものとする。これは、制御対象とする顔エリアが変化した場合に、履歴をたどってAF評価値を合成しなおして用いることができるようにするためである。   The AF evaluation values acquired here are added (synthesized) at a predetermined ratio and then used for the subsequent focus adjustment control. In the present embodiment, it is assumed that the AF evaluation value in each face area is stored as a history in a memory or the like. This is so that when the face area to be controlled changes, the AF evaluation values can be recombined and used by following the history.

ステップS418では、カメラ/AF制御部114は、後述するTV−AF制御により焦点調節を行い、ステップS401に戻る。   In step S418, the camera / AF control unit 114 performs focus adjustment by TV-AF control described later, and returns to step S401.

次に、図5を参照して、図4のステップS418でのTV−AF制御による焦点調節処理について説明する。   Next, with reference to FIG. 5, the focus adjustment process by the TV-AF control in step S418 in FIG. 4 will be described.

図5において、ステップS501では、カメラ/AF制御部114は、微小駆動モードであるか否かを判断し、微小駆動モードである場合は、ステップS502に進み、そうでない場合は、ステップS508に進む。   In FIG. 5, in step S501, the camera / AF control unit 114 determines whether or not the mode is the minute drive mode. If the mode is the minute drive mode, the process proceeds to step S502. If not, the process proceeds to step S508. .

ステップS502では、カメラ/AF制御部114は、微小駆動動作を行い、ステップS503に進む。この微小駆動動作では、フォーカスレンズを所定の振幅で駆動し、合焦しているか、あるいはどちらの方向に合焦点が存在するかを判別するが、詳細な動作は図6で後述する。   In step S502, the camera / AF control unit 114 performs a minute driving operation, and proceeds to step S503. In this minute driving operation, the focus lens is driven with a predetermined amplitude to determine whether the focus lens is in focus or in which direction the in-focus point exists. The detailed operation will be described later with reference to FIG.

ステップS503では、カメラ/AF制御部114は、ステップS502の微小駆動動作によって合焦判別が行われたか否かを判断し、微小駆動動作によって合焦判別が行われた場合は、ステップS506に進み、そうでない場合は、ステップS504に進む。   In step S503, the camera / AF control unit 114 determines whether or not in-focus determination is performed by the minute driving operation in step S502. If the in-focus determination is performed by the minute driving operation, the process proceeds to step S506. If not, the process proceeds to step S504.

ステップS504では、カメラ/AF制御部114は、ステップS502の微小駆動動作によって方向判別ができたか否かを判断する。そして、カメラ/AF制御部114は、方向判別ができた場合は、ステップS505に進んで、山登り動作モードへ移行し、そうでない場合は、微小駆動モードを継続して、ステップS501へ戻る。   In step S504, the camera / AF control unit 114 determines whether the direction can be determined by the minute driving operation in step S502. If the direction can be determined, the camera / AF control unit 114 proceeds to step S505 and shifts to the hill-climbing operation mode. If not, the camera / AF control unit 114 continues the minute drive mode and returns to step S501.

ステップS506では、カメラ/AF制御部114は、合焦時のAF評価値レベルをメモリに格納した後、ステップS507に進んで、再起動判定モードへ移行する。   In step S506, the camera / AF control unit 114 stores the AF evaluation value level at the time of focusing in the memory, and then proceeds to step S507 to shift to the restart determination mode.

ここで、再起動判定モードとは、再び微小駆動(方向判別)をするか否かを判定するフローのことである(ステップS516、ステップS517)。   Here, the restart determination mode is a flow for determining whether or not to perform minute driving (direction determination) again (steps S516 and S517).

ステップS508では、カメラ/AF制御部114は、山登り駆動モードであるか否かを判断し、山登り駆動モードである場合は、ステップS509に進み、そうでない場合は、ステップS513に進む。   In step S508, the camera / AF control unit 114 determines whether or not the hill-climbing drive mode is selected. If the hill-climbing drive mode is selected, the process proceeds to step S509. If not, the process proceeds to step S513.

ステップS509では、カメラ/AF制御部114は、山登り駆動動作を行い、ステップS510に進む。ここでの山登り駆動は、AF評価値が大きくなる方向へ所定の速度でフォーカスレンズを山登り駆動するが、詳細な動作は図8で後述する。   In step S509, the camera / AF control unit 114 performs a hill-climbing drive operation, and proceeds to step S510. In this hill-climbing drive, the focus lens is hill-climbed and driven at a predetermined speed in the direction in which the AF evaluation value increases.

ステップS510では、カメラ/AF制御部114は、ステップS509の山登り駆動動作によってAF評価値のピーク位置が発見されたか否かを判断する。そして、カメラ/AF制御部114は、AF評価値のピーク位置が発見された場合は、ステップS511に進み、そうでない場合は、ステップS501へ戻り、山登り駆動モードを継続する。   In step S510, the camera / AF control unit 114 determines whether or not the peak position of the AF evaluation value has been found by the hill-climbing driving operation in step S509. If the peak position of the AF evaluation value is found, the camera / AF control unit 114 proceeds to step S511, otherwise returns to step S501 and continues the hill-climbing drive mode.

ここで、ステップS510でピーク位置が発見されたと判断された場合には、ピーク位置にフォーカスレンズが移動された後、合焦判別モードとなる(ステップS515)。また、このとき、焦点調節制御の対象とする顔エリアが1つに絞られる(図4のステップS411)。   If it is determined in step S510 that the peak position has been found, the focus determination mode is set after the focus lens is moved to the peak position (step S515). At this time, the face area to be subjected to the focus adjustment control is narrowed down to one (step S411 in FIG. 4).

ステップS511では、カメラ/AF制御部114は、AF評価値がピークとなったフォーカスレンズ位置を目標位置に設定した後、ステップS512に進み、停止モードへ移行する。   In step S511, the camera / AF control unit 114 sets the focus lens position where the AF evaluation value has reached its peak as the target position, and then proceeds to step S512 to shift to the stop mode.

また、ステップS513では、カメラ/AF制御部114は、停止モードであるかを判断し、停止モードである場合は、ステップS514に進み、そうでない場合は、ステップS516に進む。   In step S513, the camera / AF control unit 114 determines whether the stop mode is set. If the stop mode is set, the process proceeds to step S514. If not, the process proceeds to step S516.

ステップS514では、カメラ/AF制御部114は、フォーカスレンズがAF評価値のピークとなる位置に戻ったか否かを判断する。そして、カメラ/AF制御部114は、フォーカスレンズがAF評価値のピークとなる位置に戻った場合は、ステップS515に進んで、微小駆動(合焦判別)モードへ移行し、そうでない場合は、ステップS501へ戻り、停止モードを継続する。   In step S514, the camera / AF control unit 114 determines whether or not the focus lens has returned to the position where the AF evaluation value reaches its peak. Then, when the focus lens returns to the position where the AF evaluation value reaches the peak, the camera / AF control unit 114 proceeds to step S515 and shifts to the minute driving (focusing determination) mode. Returning to step S501, the stop mode is continued.

ステップS516では、カメラ/AF制御部114は、現在のAF評価値レベルとステップS506で保持したAF評価値レベルとを比較し、その変動量が所定値以上か否かを判断する。そして、カメラ/AF制御部114は、変動量が所定値以上の場合は、ステップS517に進んで、微小駆動(方向判別)モードへ移行し、そうでない場合は、ステップS401へ戻り、再起動判定モードを継続する。   In step S516, the camera / AF control unit 114 compares the current AF evaluation value level with the AF evaluation value level held in step S506, and determines whether or not the fluctuation amount is equal to or greater than a predetermined value. If the variation amount is equal to or greater than the predetermined value, the camera / AF control unit 114 proceeds to step S517 to shift to the minute driving (direction determination) mode. Otherwise, the camera / AF control unit 114 returns to step S401 and determines whether to restart. Continue mode.

次に、図6を参照して、図5のステップS502における微小駆動動作について説明する。   Next, with reference to FIG. 6, the minute driving operation in step S502 of FIG. 5 will be described.

図6において、ステップS601では、カメラ/AF制御部114は、微小駆動の動作状態を示すカウンタの値が現在0であるかを判断し、0である場合は、ステップS602に進み、0でない場合は、ステップS603に進む。   In FIG. 6, in step S601, the camera / AF control unit 114 determines whether the value of the counter indicating the operation state of minute driving is currently 0. If it is 0, the process proceeds to step S602. Advances to step S603.

ステップS602では、カメラ/AF制御部114は、フォーカスレンズ105が至近側にある場合の処理として、現在のAF評価値レベルを保持し、ステップS621に進む。ここでのAF評価値は、後述のステップS610でフォーカスレンズ105が無限側にあるときに撮像素子106に蓄積された電荷から生成された画像信号によるものである。   In step S602, the camera / AF control unit 114 maintains the current AF evaluation value level as a process when the focus lens 105 is on the close side, and proceeds to step S621. The AF evaluation value here is based on an image signal generated from charges accumulated in the image sensor 106 when the focus lens 105 is on the infinite side in step S610 described later.

ステップS603では、カメラ/AF制御部114は、現在のカウンタ値が1であるかを判断し、1である場合は、ステップS604に進み、1でない場合は、ステップS609に進む。   In step S603, the camera / AF control unit 114 determines whether or not the current counter value is 1. If 1, the process proceeds to step S604. If not, the process proceeds to step S609.

ステップS604では、カメラ/AF制御部114は、後述のステップS608でフォーカスレンズ105を駆動するための振動振幅、中心移動振幅を演算し、ステップS605に進む。通常、これらの振幅は焦点深度内に設定されるのが一般的である。   In step S604, the camera / AF control unit 114 calculates a vibration amplitude and a center movement amplitude for driving the focus lens 105 in step S608, which will be described later, and proceeds to step S605. Usually, these amplitudes are generally set within the depth of focus.

ステップS605では、カメラ/AF制御部114は、ステップS602で保持した無限側のAF評価値レベルと後述のステップS610で保持した至近側のAF評価値レベルとを比較する。そして、カメラ/AF制御部114は、無限側のAF評価値レベルが至近側のAF評価値レベルより大きい場合は、ステップS606に進み、至近側のAF評価値レベルが無限側のAF評価値レベルより大きい場合は、ステップS607に進む。   In step S605, the camera / AF control unit 114 compares the infinite AF evaluation value level held in step S602 with the closest AF evaluation value level held in step S610 described later. If the infinite AF evaluation value level is greater than the closest AF evaluation value level, the camera / AF control unit 114 proceeds to step S606, and the closest AF evaluation value level is the infinite AF evaluation value level. If larger, the process proceeds to step S607.

ステップS606では、カメラ/AF制御部114は、振動振幅と中心移動振幅とを加算して、駆動振幅とし、ステップS608に進む。   In step S606, the camera / AF control unit 114 adds the vibration amplitude and the center movement amplitude to obtain a drive amplitude, and proceeds to step S608.

ステップS607では、カメラ/AF制御部114は、振動振幅を駆動振幅とし、ステップS608に進む。   In step S607, the camera / AF control unit 114 sets the vibration amplitude as the drive amplitude, and proceeds to step S608.

ステップS608では、カメラ/AF制御部114は、ステップS606またはステップS607で求めた駆動振幅に基づき、フォーカスレンズ105を無限方向へ駆動し、ステップS616に進む。   In step S608, the camera / AF control unit 114 drives the focus lens 105 in an infinite direction based on the drive amplitude obtained in step S606 or step S607, and proceeds to step S616.

また、ステップS609では、カメラ/AF制御部114は、現在のカウンタ値が2であるかを判断し、2である場合は、ステップS610に進み、2でない場合は、ステップS611に進む。   In step S609, the camera / AF control unit 114 determines whether the current counter value is 2. If it is 2, the process proceeds to step S610, and if not, the process proceeds to step S611.

ステップS610では、カメラ/AF制御部114は、フォーカスレンズ105が無限側にある場合の処理として、現在のAF評価値レベルを保持し、ステップS621に進む。ここでのAF評価値は、ステップS602でフォーカスレンズ105が至近側にあるときに撮像素子106に蓄積された電荷から生成された画像信号によるものである。   In step S610, the camera / AF control unit 114 maintains the current AF evaluation value level as processing when the focus lens 105 is on the infinity side, and proceeds to step S621. The AF evaluation value here is based on the image signal generated from the charge accumulated in the image sensor 106 when the focus lens 105 is on the close side in step S602.

ステップS611では、カメラ/AF制御部114は、後述のステップS615でフォーカスレンズ105を駆動するための振動振幅、中心移動振幅を演算し、ステップS612に進む。通常、これらの振幅は焦点深度内に設定されるのが一般的である。   In step S611, the camera / AF control unit 114 calculates a vibration amplitude and a center movement amplitude for driving the focus lens 105 in step S615, which will be described later, and proceeds to step S612. Usually, these amplitudes are generally set within the depth of focus.

ステップS612では、カメラ/AF制御部114は、ステップS610で保持した至近側のAF評価値レベルとステップS602で保持した無限側のAF評価値レベルとを比較する。そして、カメラ/AF制御部114は、至近側のAF評価値レベルが無限側のAF評価値レベルより大きい場合は、ステップS613に進み、無限側のAF評価値レベルが至近側のAF評価値レベルより大きい場合は、ステップS614に進む。   In step S612, the camera / AF control unit 114 compares the near-side AF evaluation value level held in step S610 with the infinite-side AF evaluation value level held in step S602. If the closest AF evaluation value level is greater than the infinite AF evaluation value level, the camera / AF control unit 114 proceeds to step S613, and the infinite AF evaluation value level is the closest AF evaluation value level. If larger, the process proceeds to step S614.

ステップS613では、カメラ/AF制御部114は、振動振幅と中心移動振幅とを加算して、駆動振幅とし、ステップS615に進む。   In step S613, the camera / AF control unit 114 adds the vibration amplitude and the center movement amplitude to obtain a drive amplitude, and the process proceeds to step S615.

ステップS614では、カメラ/AF制御部114は、振動振幅を駆動振幅とし、ステップS615に進む。   In step S614, the camera / AF control unit 114 sets the vibration amplitude as the drive amplitude, and proceeds to step S615.

ステップS615では、カメラ/AF制御部114は、ステップS613またはステップS614で求めた駆動振幅に基づき、フォーカスレンズ105を至近方向へ駆動し、ステップS616に進む。   In step S615, the camera / AF control unit 114 drives the focus lens 105 in the closest direction based on the drive amplitude obtained in step S613 or step S614, and proceeds to step S616.

ステップS616では、カメラ/AF制御部114は、現在、方向判別モードであるかを判断し、方向判別モードである場合は、ステップS617に進み、方向判別モードでない場合は、ステップS619に進む。   In step S616, the camera / AF control unit 114 determines whether the current mode is the direction determination mode. If the mode determination mode is selected, the process proceeds to step S617; otherwise, the process proceeds to step S619.

ステップS617では、カメラ/AF制御部114は、所定回数連続して同一方向に合焦点が存在しているかを判断し、存在している場合は、ステップS618に進み、存在していない場合は、ステップS621に進む。   In step S617, the camera / AF control unit 114 determines whether the in-focus point exists in the same direction continuously for a predetermined number of times. If it exists, the process proceeds to step S618, and if it does not exist, Proceed to step S621.

ステップS618では、カメラ/AF制御部114は、方向判別ができたものと判断し、ステップS621に進む。   In step S618, the camera / AF control unit 114 determines that the direction has been determined, and proceeds to step S621.

ステップS619では、カメラ/AF制御部114は、フォーカスレンズ105が所定回数同一エリアで往復しているかを判断し、往復している場合は、ステップS620に進み、往復していない場合は、ステップS621に進む。   In step S619, the camera / AF control unit 114 determines whether the focus lens 105 has reciprocated in the same area a predetermined number of times. If it has reciprocated, the process proceeds to step S620. If it has not reciprocated, step S621 is performed. Proceed to

ステップS620では、カメラ/AF制御部114は、合焦判別できたものと判断し、ステップS621に進む。   In step S620, the camera / AF control unit 114 determines that the in-focus determination has been made, and proceeds to step S621.

ステップS621では、カメラ/AF制御部114は、微小駆動の動作状態を示すカウンタ値が3であれば0に戻し、その他の値であればカウンタ値を加算する。   In step S621, the camera / AF control unit 114 returns to 0 if the counter value indicating the micro-drive operation state is 3, and adds the counter value if it is any other value.

図7に、この微小駆動におけるフォーカスレンズ動作の時間経過を示す。   FIG. 7 shows the time course of the focus lens operation in this minute driving.

同図上部は、画像信号の垂直同期信号であり、同図下部は、横軸が時間、縦軸がフォーカスレンズ105の位置を表している。   The upper part of the figure is a vertical synchronizing signal of the image signal, and the lower part of the figure shows the time on the horizontal axis and the position of the focus lens 105 on the vertical axis.

ラベルAの時刻に撮像素子106に蓄積された電荷に対するAF評価値EVAは、時刻TAでカメラ/AF制御部114に取り込まれる。また、ラベルBの時刻に撮像素子106に蓄積された電荷に対するAF評価値EVBは、時刻TBでカメラ/AF制御部114に取り込まれる。   The AF evaluation value EVA for the charge accumulated in the image sensor 106 at the time of label A is taken into the camera / AF control unit 114 at time TA. Also, the AF evaluation value EVB for the charge accumulated in the image sensor 106 at the time of label B is taken into the camera / AF control unit 114 at time TB.

時刻TCでは、AF評価値EVAとEVBとを比較し、図中のEVBが大きい場合のみ振動中心を移動する。なお、ここでのフォーカスレンズ105の移動は焦点深度を基準とし、画面で認識できない移動量に設定する。   At time TC, the AF evaluation values EVA and EVB are compared, and the vibration center is moved only when EVB in the figure is large. Here, the movement of the focus lens 105 is set to a movement amount that cannot be recognized on the screen on the basis of the depth of focus.

次に、図8を参照して、図5のステップS509における山登り駆動動作について説明する。   Next, with reference to FIG. 8, the hill-climbing driving operation in step S509 in FIG. 5 will be described.

図8において、ステップS701では、カメラ/AF制御部114は、フォーカスレンズ105の駆動速度を設定し、ステップS702に進む。   In FIG. 8, in step S701, the camera / AF control unit 114 sets the drive speed of the focus lens 105, and the process proceeds to step S702.

ステップS702では、カメラ/AF制御部114は、現在のAF評価値レベルが前回より増加しているかを判断し、増加している場合は、ステップS703に進み、増加していない場合は、ステップS704に進む。   In step S702, the camera / AF control unit 114 determines whether or not the current AF evaluation value level has increased from the previous time. If it has increased, the process proceeds to step S703, and if not, step S704 is performed. Proceed to

ステップS703では、カメラ/AF制御部114は、ステップS701で設定した駆動速度に基づき、フォーカスレンズ105を前回と同じ順方向に山登り駆動する。   In step S703, the camera / AF control unit 114 drives the focus lens 105 to climb in the same forward direction as the previous time based on the driving speed set in step S701.

ステップS704では、カメラ/AF制御部114は、AF評価値レベルがピーク位置を越えて減少しているかどうかを判断し、ピーク位置を越えている場合は、ステップS705に進み、そうでない場合は、ステップS706に進む。   In step S704, the camera / AF control unit 114 determines whether or not the AF evaluation value level has decreased beyond the peak position. If the AF evaluation value level has exceeded the peak position, the process proceeds to step S705. The process proceeds to step S706.

ステップS705では、カメラ/AF制御部114は、ピーク位置を発見したものと判断する。   In step S705, the camera / AF control unit 114 determines that a peak position has been found.

ステップS706では、カメラ/AF制御部114は、ステップS701で設定した駆動速度に基づき、フォーカスレンズ105を前回と逆の方向に山登り駆動する。なお、山登り駆動モードでこのステップS706を繰り返している場合、被写体のAF評価値の変化量が十分に得られないためにフォーカスレンズ105がハンチング状態にあることを意味する。   In step S706, the camera / AF control unit 114 drives the focus lens 105 to climb in the direction opposite to the previous time based on the driving speed set in step S701. If step S706 is repeated in the hill-climbing drive mode, it means that the focus lens 105 is in the hunting state because a sufficient amount of change in the AF evaluation value of the subject cannot be obtained.

図9に、この山登り駆動におけるフォーカスレンズの動作を示す。   FIG. 9 shows the operation of the focus lens in this hill-climbing drive.

同図において、フォーカスレンズ105がAのように駆動している場合はAF評価値が増加しているため、同じ方向への山登り駆動を継続する。   In the same figure, when the focus lens 105 is driven like A, since the AF evaluation value is increasing, the mountain climbing drive in the same direction is continued.

ここで、フォーカスレンズ105をBの範囲で駆動するとAF評価値はピーク位置を越えて減少する。このとき、合焦点が存在するとして山登り駆動動作を終了し、フォーカスレンズ105をピーク位置まで戻した後、微小駆動動作に移行する。   Here, when the focus lens 105 is driven in the range of B, the AF evaluation value decreases beyond the peak position. At this time, the hill-climbing driving operation is terminated assuming that the in-focus point exists, and after the focus lens 105 is returned to the peak position, the operation shifts to the minute driving operation.

一方、Cのようにピーク位置を越えずにAF評価値が減少した場合は、駆動すべき方向を間違えたものとして反転し、山登り駆動動作を継続する。   On the other hand, when the AF evaluation value decreases without exceeding the peak position as in C, the direction to be driven is reversed and the hill-climbing driving operation is continued.

以上説明したように、本実施形態では、TV−AF方式による焦点調節制御において、再起動判定→微小駆動→山登り駆動→停止→微小駆動→再起動判定を繰り返しながらフォーカスレンズ105を移動させる。これにより、AF評価値が常に最大となるように合焦状態を維持することができる。   As described above, in the present embodiment, in the focus adjustment control by the TV-AF method, the focus lens 105 is moved while repeating restart determination → micro drive → mountain climbing drive → stop → micro drive → restart determination. Thereby, the in-focus state can be maintained so that the AF evaluation value is always maximized.

また、上記焦点調節制御に使用されるAF評価値は、制御状態に応じて指定された顔エリアから効果的に得ることができる。そのため、特に動画撮影時において、常に撮影者の意図する特定被写体の人物に対して安定した焦点調節動作を提供することが可能となる。   Further, the AF evaluation value used for the focus adjustment control can be effectively obtained from the face area designated according to the control state. For this reason, it is possible to provide a stable focus adjustment operation for the person of the specific subject intended by the photographer at all times, particularly during moving image shooting.

更に、フォーカスレンズ105の移動範囲において、合焦位置から離れた位置(第2の領域)で方向を判定している方向判別モードの場合には、AFエリアの総領域を大きくすることにより、AFの精度を向上させることができる。これは、多くの情報を使った方が安定したAFが行えるためである。   Further, in the direction determination mode in which the direction is determined at a position away from the in-focus position (second area) in the movement range of the focus lens 105, the AF area is enlarged to increase the AF area. Accuracy can be improved. This is because stable AF can be performed by using a lot of information.

更に、フォーカスレンズ105が合焦位置の付近に位置(第1の領域)して微小駆動している合焦判定モードの場合には、顔エリアを1つに絞り込むことにより、所望の被写体に対してピントを合わせることができる。   Further, in the focus determination mode in which the focus lens 105 is positioned in the vicinity of the focus position (first area) and is driven minutely, the face area is narrowed down to one, so that a desired subject can be selected. To focus.

(第2の実施形態)
次に、図4を流用して、本発明の第2の実施形態であるである焦点調節装置を備えるビデオカメラについて説明する。
(Second Embodiment)
Next, with reference to FIG. 4, a video camera including a focus adjustment apparatus according to the second embodiment of the present invention will be described.

上記第1の実施形態では、図4のステップS408では、複数の顔エリアを位置ごとにグループ化する場合を例示したが、本実施形態では、複数の顔エリアを大きさごとにグループ化する場合を例に採る。   In the first embodiment, the case where a plurality of face areas are grouped for each position is illustrated in step S408 of FIG. 4, but in the present embodiment, a plurality of face areas are grouped for each size. Take as an example.

すなわち、図4において、ステップS408では、カメラ/AF制御部114は、複数の顔エリアを大きさごとにグループ化した後、すべての顔エリアが同一グループに属するかを判断する。そして、カメラ/AF制御部114は、すべての顔エリアが同一グループに属する場合は、ステップS412に進み、同一グループに属さない場合は、ステップS409に進む。   That is, in FIG. 4, in step S <b> 408, the camera / AF control unit 114 groups a plurality of face areas according to size, and then determines whether all face areas belong to the same group. The camera / AF control unit 114 proceeds to step S412 when all the face areas belong to the same group, and proceeds to step S409 when they do not belong to the same group.

ここで、より多くの顔エリアを含むグループをメイン顔エリア群とする。図2の例の場合、グループ化した結果は図3のようになり、グループ1に含まれる顔エリアA、B、Cがメイン顔エリア群となる。ただし、含む顔エリアの数が等しいグループが複数存在する場合は、基準となる顔エリアを含む顔エリア群をメイン顔エリア群とする。   Here, a group including more face areas is defined as a main face area group. In the case of the example of FIG. 2, the grouped result is as shown in FIG. 3, and the face areas A, B, and C included in the group 1 become the main face area group. However, when there are a plurality of groups having the same number of face areas to be included, the face area group including the reference face area is set as the main face area group.

ステップS409では、カメラ/AF制御部114は、ステップS408でメイン顔エリア群に存在しないと判断された顔エリアを、以降、AF評価値の監視対象に指定しない。つまり、その後は、大きさの近い複数の顔エリアのAF評価値に基づいて撮像光学系を移動させて焦点調節を行う。この結果、図2の例の場合、顔エリアA、B、Cの大きさは近いのに対し、顔エリアD、Eの大きさは近くないため、顔エリアD、Eは、以降、AF評価値の監視対象とならない。その他の構成及び作用効果は、上記第1の実施形態と同様である。   In step S409, the camera / AF control unit 114 does not specify the face area determined not to exist in the main face area group in step S408 as the AF evaluation value monitoring target. That is, after that, the focus adjustment is performed by moving the imaging optical system based on the AF evaluation values of a plurality of face areas having similar sizes. As a result, in the case of the example in FIG. 2, the face areas A, B, and C are close in size, but the face areas D and E are not close in size. The value is not monitored. Other configurations and operational effects are the same as those of the first embodiment.

(第3の実施形態)
次に、図4を流用して、本発明の第3の実施形態であるである焦点調節装置を備えるビデオカメラについて説明する。
(Third embodiment)
Next, with reference to FIG. 4, a video camera provided with a focus adjustment apparatus according to the third embodiment of the present invention will be described.

上記第1の実施形態では、図4のステップS408では、複数の顔エリアを位置ごとにグループ化する場合を例示したが、本実施形態では、複数の顔エリアを移動方向ごとにグループ化する場合を例に採る。   In the first embodiment, the case where a plurality of face areas are grouped for each position is illustrated in step S408 of FIG. 4, but in the present embodiment, a plurality of face areas are grouped for each movement direction. Take as an example.

すなわち、図4において、ステップS408では、カメラ/AF制御部114は、複数の顔エリアを移動方向ごとにグループ化した後、すべての顔エリアが同一グループに属するかを判断する。そして、カメラ/AF制御部114は、すべての顔エリアが同一グループに属する場合は、ステップS412に進み、同一グループに属さない場合は、ステップS409に進む。   That is, in FIG. 4, in step S <b> 408, the camera / AF control unit 114 groups a plurality of face areas for each movement direction, and then determines whether all face areas belong to the same group. The camera / AF control unit 114 proceeds to step S412 when all the face areas belong to the same group, and proceeds to step S409 when they do not belong to the same group.

ここで、より多くの顔エリアを含むグループをメイン顔エリア群とする。図2の例の場合、グループ化した結果は図3のようになり、グループ1に含まれる顔エリアA、B、Cがメイン顔エリア群となる。ただし、含む顔エリアの数が等しいグループが複数存在する場合は、基準となる顔エリアを含む顔エリア群をメイン顔エリア群とする。   Here, a group including more face areas is defined as a main face area group. In the case of the example of FIG. 2, the grouped result is as shown in FIG. 3, and the face areas A, B, and C included in the group 1 become the main face area group. However, when there are a plurality of groups having the same number of face areas to be included, the face area group including the reference face area is set as the main face area group.

ステップS409では、カメラ/AF制御部114は、ステップS408でメイン顔エリア群に存在しないと判断された顔エリアを、以降、AF評価値の監視対象に指定しない。つまり、その後は、移動方向の等しい複数の顔エリアのAF評価値に基づいて撮像光学系を移動させて焦点調節を行う。この結果、図2の例の場合、顔エリアA、B、Cの移動方向は等しいのに対し、顔エリアD、Eの移動方向は等しくないため、顔エリアD、Eは以降、AF評価値の監視対象とならない。その他の構成及び作用効果は、上記第1の実施形態と同様である。   In step S409, the camera / AF control unit 114 does not specify the face area determined not to exist in the main face area group in step S408 as the AF evaluation value monitoring target. That is, thereafter, the imaging optical system is moved based on the AF evaluation values of a plurality of face areas having the same moving direction, and focus adjustment is performed. As a result, in the example of FIG. 2, the movement directions of the face areas A, B, and C are equal, but the movement directions of the face areas D and E are not equal. Is not subject to monitoring. Other configurations and operational effects are the same as those of the first embodiment.

なお、本発明は、上記各実施形態に例示したものに限定されるものではなく、本発明の要旨を逸脱しない範囲において適宜変更可能である。   In addition, this invention is not limited to what was illustrated by said each embodiment, In the range which does not deviate from the summary of this invention, it can change suitably.

例えば、上記各実施形態では、ビデオカメラについて説明したが、デジタルスチルカメラ等の他の撮像装置や顕微鏡等に組み込まれる焦点調節装置に本発明を適用することができる。   For example, in each of the above embodiments, the video camera has been described. However, the present invention can be applied to other imaging apparatuses such as a digital still camera, and a focus adjustment apparatus incorporated in a microscope or the like.

また、上記各実施形態において、焦点調節動作を行う際に、どの顔エリアの情報に従って焦点調節動作を行っているかを示す情報を表示装置109に表示するようにしてもよい。   Further, in each of the above embodiments, when the focus adjustment operation is performed, information indicating which face area information the focus adjustment operation is performed on may be displayed on the display device 109.

更に、上記各実施形態では、AFエリアは、撮像画面内の検出された顔の位置にしているが、他の画像、例えば、背景画像から被写体像を切り出して特定被写体を検出しても構わない。その他、外部入力手段から撮像画面内の位置を入力したり、ファインダーを見ている撮影者の視線を検出して撮像画面内の位置を決定しても構わない。   Further, in each of the embodiments described above, the AF area is set to the position of the detected face in the imaging screen. However, a specific subject may be detected by cutting out a subject image from another image, for example, a background image. . In addition, the position in the imaging screen may be determined by inputting the position in the imaging screen from an external input means or by detecting the line of sight of the photographer who is looking at the viewfinder.

更に、本発明の目的は、以下の処理を実行することによって達成される。即ち、上述した実施形態の機能を実現するソフトウェアのプログラムコードを記録した記憶媒体を、システム或いは装置に供給し、そのシステム或いは装置のコンピュータ(またはCPUやMPU等)が記憶媒体に格納されたプログラムコードを読み出す処理である。   Furthermore, the object of the present invention is achieved by executing the following processing. That is, a storage medium that records a program code of software that realizes the functions of the above-described embodiments is supplied to a system or apparatus, and a computer (or CPU, MPU, etc.) of the system or apparatus is stored in the storage medium. This is the process of reading the code.

この場合、記憶媒体から読み出されたプログラムコード自体が前述した実施の形態の機能を実現することになり、そのプログラムコード及び該プログラムコードを記憶した記憶媒体は本発明を構成することになる。   In this case, the program code itself read from the storage medium realizes the functions of the above-described embodiments, and the program code and the storage medium storing the program code constitute the present invention.

また、プログラムコードを供給するための記憶媒体としては、次のものを用いることができる。例えば、フロッピー(登録商標)ディスク、ハードディスク、光磁気ディスク、CD−ROM、CD−R、CD−RW、DVD−ROM、DVD−RAM、DVD−RW、DVD+RW、磁気テープ、不揮発性のメモリカード、ROM等である。または、プログラムコードをネットワークを介してダウンロードしてもよい。   Moreover, the following can be used as a storage medium for supplying the program code. For example, floppy (registered trademark) disk, hard disk, magneto-optical disk, CD-ROM, CD-R, CD-RW, DVD-ROM, DVD-RAM, DVD-RW, DVD + RW, magnetic tape, nonvolatile memory card, ROM or the like. Alternatively, the program code may be downloaded via a network.

また、コンピュータが読み出したプログラムコードを実行することにより、上記実施の形態の機能が実現される場合も本発明に含まれる。加えて、そのプログラムコードの指示に基づき、コンピュータ上で稼動しているOS(オペレーティングシステム)等が実際の処理の一部または全部を行い、その処理によって前述した実施形態の機能が実現される場合も含まれる。   Further, the present invention includes a case where the function of the above-described embodiment is realized by executing the program code read by the computer. In addition, an OS (operating system) running on the computer performs part or all of the actual processing based on an instruction of the program code, and the functions of the above-described embodiments are realized by the processing. Is also included.

更に、前述した実施形態の機能が以下の処理によって実現される場合も本発明に含まれる。即ち、記憶媒体から読み出されたプログラムコードが、コンピュータに挿入された機能拡張ボードやコンピュータに接続された機能拡張ユニットに備わるメモリに書き込まれる。その後、そのプログラムコードの指示に基づき、その機能拡張ボードや機能拡張ユニットに備わるCPU等が実際の処理の一部または全部を行う場合である。   Furthermore, a case where the functions of the above-described embodiment are realized by the following processing is also included in the present invention. That is, the program code read from the storage medium is written in a memory provided in a function expansion board inserted into the computer or a function expansion unit connected to the computer. Thereafter, based on the instruction of the program code, the CPU or the like provided in the function expansion board or function expansion unit performs part or all of the actual processing.

本発明の第1の実施形態である焦点調節装置を備えるビデオカメラの構成例を説明するためのブロック図である。It is a block diagram for demonstrating the structural example of a video camera provided with the focus adjustment apparatus which is the 1st Embodiment of this invention. 複数の顔が検出されたときの顔エリアの例を示す図である。It is a figure which shows the example of a face area when a some face is detected. 図2の各顔エリアをグループ化した結果を示す図である。It is a figure which shows the result of having grouped each face area of FIG. カメラ/AF制御部で行われる焦点調節制御について説明するためのフローチャート図である。It is a flowchart for demonstrating the focus adjustment control performed by a camera / AF control part. カメラ/AF制御部で行われる焦点調節制御について説明するためのフローチャート図である。It is a flowchart for demonstrating the focus adjustment control performed by a camera / AF control part. 図4のステップS418でのTV−AF制御による焦点調節処理について説明するためのフローチャート図である。FIG. 5 is a flowchart for explaining focus adjustment processing by TV-AF control in step S418 in FIG. 4; 図4のステップS418でのTV−AF制御による焦点調節処理について説明するためのフローチャート図である。FIG. 5 is a flowchart for explaining focus adjustment processing by TV-AF control in step S418 in FIG. 4; 図5のステップS502における微小駆動動作について説明するためのフローチャート図である。FIG. 6 is a flowchart for explaining a minute driving operation in step S502 of FIG. 図5のステップS502における微小駆動動作について説明するためのフローチャート図である。FIG. 6 is a flowchart for explaining a minute driving operation in step S502 of FIG. 微小駆動におけるフォーカスレンズの位置と時間との関係を示すグラフ図である。It is a graph which shows the relationship between the position of the focus lens in micro drive, and time. 図5のステップS509における山登り駆動動作について説明するためのフローチャート図である。FIG. 6 is a flowchart for explaining a hill-climbing driving operation in step S509 of FIG. 山登り駆動動作でのフォーカスレンズの位置とAF評価値との関係を示すグラフ図である。It is a graph which shows the relationship between the position of the focus lens in a hill-climbing drive operation, and AF evaluation value.

符号の説明Explanation of symbols

101 第1固定レンズ
102 変倍レンズ
103 絞り
104 第2固定レンズ
105 フォーカスレンズ
106 撮像素子
107 CDS/AGC/ADコンバータ
108 カメラ信号処理回路
109 表示装置
110 記録装置
111 AFゲート
112 AF評価値処理回路
113 顔検出処理回路
114 カメラ/AF制御部
115 変倍レンズ駆動源
116 フォーカスレンズ駆動源
DESCRIPTION OF SYMBOLS 101 1st fixed lens 102 Variable magnification lens 103 Diaphragm 104 2nd fixed lens 105 Focus lens 106 Image pick-up element 107 CDS / AGC / AD converter 108 Camera signal processing circuit 109 Display apparatus 110 Recording apparatus 111 AF gate 112 AF evaluation value processing circuit 113 Face detection processing circuit 114 Camera / AF control unit 115 Variable magnification lens drive source 116 Focus lens drive source

Claims (13)

フォーカスレンズを含む撮影光学系を通過した被写体像を光電変換して得られた撮像画像から被写体の特徴部位を検出する検出手段と、
複数のAFエリアを前記検出手段により検出された複数の被写体の特徴部位に対応する領域に設定するAFエリア設定手段と、
前記検出手段からの出力信号に基づいて生成されたAF評価値を取得する焦点検出手段と、
前記複数のAFエリアの状態に応じて前記複数のAFエリアのうちからAF評価値を使用すべきAFエリアを選択するAFエリア選択手段とを有する焦点調節装置であって、
前記検出手段に複数の被写体の特徴部位が検出されて前記AFエリア設定手段にて前記複数の被写体の特徴部位に対応する領域に複数のAFエリアが設定され場合、
前記AFエリア選択手段は、前記複数のAFエリアを各AFエリアの位置に基づいて複数のAFエリア群にグループ化し、含まれるAFエリアの数が最も多いAFエリア群を選択し、選択されないAFエリア群のAF評価値を用いずに前記選択されたAFエリア群のAF評価値を用いて前記フォーカスレンズを移動させて方向判別を行い、その後、前記選択されたAFエリア群に含まれるAFエリアのうちから合焦させるためのAFエリアを選択し、選択されたAFエリアのAF評価値に基づいて前記フォーカスレンズを移動させて合焦判別を行う焦点調節手段を有する焦点調節装置。
Detection means for detecting a characteristic part of the subject from a captured image obtained by photoelectrically converting a subject image that has passed through a photographing optical system including a focus lens ;
AF area setting means for setting a plurality of AF areas in areas corresponding to characteristic portions of a plurality of subjects detected by the detection means;
Focus detection means for obtaining an AF evaluation value generated based on an output signal from the detection means;
A focusing device having an AF area selecting means for selecting the AF area to be used AF evaluation value from among the plurality of AF areas in accordance with the state of the plurality of AF areas,
If the area corresponding to the characteristic portions of the plurality of subjects are detected characteristic portions of a plurality of subjects in the AF area setting means a plurality of AF areas set Te to said detecting means,
The AF area selection unit groups the plurality of AF areas into a plurality of AF area groups based on the positions of the respective AF areas, selects an AF area group having the largest number of AF areas included, and is not selected. The focus lens is moved using the AF evaluation value of the selected AF area group without using the AF evaluation value of the group to determine the direction, and then the AF area included in the selected AF area group is determined. A focus adjustment device having a focus adjustment unit that selects an AF area for focusing from among them and moves the focus lens based on an AF evaluation value of the selected AF area to perform focusing determination .
フォーカスレンズを含む撮影光学系を通過した被写体像を光電変換して得られた撮像画像から被写体の特徴部位を検出する検出手段と、
複数のAFエリアを前記検出手段により検出された複数の被写体の特徴部位に対応する領域に設定するAFエリア設定手段と、
前記検出手段からの出力信号に基づいて生成されたAF評価値を取得する焦点検出手段と、
前記複数のAFエリアの状態に応じて前記複数のAFエリアのうちからAF評価値を使用すべきAFエリアを選択するAFエリア選択手段とを有する焦点調節装置であって、
前記検出手段に複数の被写体の特徴部位が検出されて前記AFエリア設定手段にて前記複数の被写体の特徴部位に対応する領域に複数のAFエリアが設定された場合、
前記AFエリア選択手段は、前記複数のAFエリアを各AFエリアの大きさに基づいて複数のAFエリア群にグループ化し、含まれるAFエリアの数が最も多いAFエリア群を選択し、選択されないAFエリア群のAF評価値を用いずに前記選択されたAFエリア群のAF評価値を用いて前記フォーカスレンズを移動させて方向判別を行い、その後、前記選択されたAFエリア群に含まれるAFエリアのうちから合焦させるためのAFエリアを選択し、選択されたAFエリアのAF評価値に基づいて前記フォーカスレンズを移動させて合焦判別を行う焦点調節手段を有する焦点調節装置。
Detection means for detecting a characteristic part of the subject from a captured image obtained by photoelectrically converting a subject image that has passed through a photographing optical system including a focus lens ;
AF area setting means for setting a plurality of AF areas in areas corresponding to characteristic portions of a plurality of subjects detected by the detection means;
Focus detection means for obtaining an AF evaluation value generated based on an output signal from the detection means;
A focusing device having an AF area selecting means for selecting the AF area to be used AF evaluation value from among the plurality of AF areas in accordance with the state of the plurality of AF areas,
If the area corresponding to the characteristic portions of the plurality of subjects are detected characteristic portions of a plurality of subjects in the AF area setting means a plurality of AF areas set Te to said detecting means,
The AF area selecting means groups the plurality of AF areas into a plurality of AF area groups based on the size of each AF area, selects an AF area group having the largest number of AF areas included, and is not selected. The focus lens is moved using the AF evaluation value of the selected AF area group without using the AF evaluation value of the area group to determine the direction, and then the AF areas included in the selected AF area group A focus adjustment device having a focus adjustment unit that selects an AF area to be focused from among the two, moves the focus lens based on an AF evaluation value of the selected AF area, and performs focus determination .
フォーカスレンズを含む撮影光学系を通過した被写体像を光電変換して得られた撮像画像から被写体の特徴部位を検出する検出手段と、
複数のAFエリアを前記検出手段により検出された複数の被写体の特徴部位に対応する領域に設定するAFエリア設定手段と、
前記検出手段からの出力信号に基づいて生成されたAF評価値を取得する焦点検出手段と、
前記複数のAFエリアの状態に応じて前記複数のAFエリアのうちからAF評価値を使用すべきAFエリアを選択するAFエリア選択手段とを有する焦点調節装置であって、
前記検出手段にて複数の被写体の特徴部位が検出されて前記AFエリア設定手段にて前記複数の被写体の特徴部位に対応する領域に複数のAFエリアが設定された場合、
前記AFエリア選択手段は、前記複数のAFエリアを各AFエリアの移動方向に基づいて複数のAFエリア群にグループ化し、含まれるAFエリアの数が多いAFエリア群を選択し、選択されないAFエリア群のAF評価値を用いずに前記選択されたAFエリアのAF評価値を用いて前記フォーカスレンズを移動させて方向判別を行い、その後、前記選択されたAFエリア群に含まれるAFエリアのうちから合焦させるためのAFエリアを選択し、選択されたAFエリアのAF評価値に基づいて前記フォーカスレンズを移動させて合焦判別を行う焦点調節手段を有する焦点調節装置。
Detection means for detecting a characteristic part of the subject from a captured image obtained by photoelectrically converting a subject image that has passed through a photographing optical system including a focus lens;
AF area setting means for setting a plurality of AF areas in areas corresponding to characteristic portions of a plurality of subjects detected by the detection means;
Focus detection means for obtaining an AF evaluation value generated based on an output signal from the detection means;
An AF area selection unit that selects an AF area to use an AF evaluation value from among the plurality of AF areas according to the state of the plurality of AF areas,
When the detection unit detects feature parts of a plurality of subjects, and the AF area setting unit sets a plurality of AF areas in areas corresponding to the feature parts of the plurality of subjects,
The AF area selecting means groups the plurality of AF areas into a plurality of AF area groups based on the movement direction of each AF area, selects an AF area group having a large number of included AF areas, and selects an AF area that is not selected. Using the AF evaluation value of the selected AF area without using the AF evaluation value of the group, the focus lens is moved to determine the direction, and then among the AF areas included in the selected AF area group A focus adjustment device having a focus adjustment unit that selects an AF area to be focused from, and moves the focus lens based on an AF evaluation value of the selected AF area to perform focus determination .
前記被写体の特徴部位は、顔である請求項1乃至3の何れか一項に記載の焦点調節装置。 The focus adjustment apparatus according to any one of claims 1 to 3, wherein the characteristic part of the subject is a face . 前記合焦判別を行うために選択されたAFエリアは、前記AFエリアの面積が最大であるAFエリアである請求項1乃至の何れか一項に記載の焦点調節装置。 The AF area selected for performing focusing determination is focusing device according to any one of claims 1 to 4 area of the AF area is the AF area is the maximum. 前記合焦判別を行うために選択されたAFエリアは、前記AFエリアの位置が最も中央位置に近いAFエリアである請求項1乃至4の何れか一項に記載の焦点調節装置。 The AF area selected for performing focusing determination is focusing device according to what Re one of claims 1 to 4 the position of the AF area is the AF area closest to the center position. 前記合焦判別を行うために選択されたAFエリアは、前記AFエリアが最至近側に位置するAFエリアである請求項1乃至4の何れか一項に記載の焦点調節装置。 The AF area selected for performing focusing determination is focusing device according to any one of claims 1 to 4 which is the AF area the AF area is located on the nearest side. フォーカスレンズを含む撮影光学系を通過した被写体像を光電変換して得られた撮像画像から被写体の特徴部位を検出する検出ステップと、
複数のAFエリアを前記検出ステップで検出された複数の被写体の特徴部位に対応する領域に設定するAFエリア設定ステップと、
前記検出ステップでの出力信号に基づいて生成されたAF評価値を取得する焦点検出ステップと、
前記複数のAFエリアの状態に応じて前記複数のAFエリアのうちからAF評価値を使用すべきAFエリアを選択するAFエリア選択ステップとを有する焦点調節制御方法であって、
前記検出ステップで複数の被写体の特徴部位が検出されて前記AFエリア設定ステップで前記複数の被写体の特徴部位に対応する領域に複数のAFエリアが設定された場合、
前記AFエリア選択ステップは、前記複数のAFエリアを各AFエリアの位置に基づいて複数のAFエリア群にグループ化し、含まれるAFエリアの数が多いAFエリア群を選択し、選択されないAFエリア群のAF評価値を用いずに前記選択されたAFエリア群のAF評価値を用いて前記フォーカスレンズを移動させて方向判別を行い、その後、前記選択されたAFエリア群に含まれるAFエリアのうちから合焦させるためのAFエリアを選択し、選択されたAFエリアのAF評価値に基づいて前記フォーカスレンズを移動させて合焦判別を行う焦点調節ステップを有する焦点調節制御方法。
A detection step of detecting a characteristic part of the subject from a captured image obtained by photoelectrically converting a subject image that has passed through a photographing optical system including a focus lens;
An AF area setting step for setting a plurality of AF areas in regions corresponding to characteristic portions of a plurality of subjects detected in the detection step;
A focus detection step of obtaining an AF evaluation value generated based on the output signal in the detection step;
An AF area selection step of selecting an AF area to use an AF evaluation value from among the plurality of AF areas according to the state of the plurality of AF areas,
When a plurality of subject areas are detected in the detection step and a plurality of AF areas are set in regions corresponding to the plurality of subject feature parts in the AF area setting step,
In the AF area selecting step, the plurality of AF areas are grouped into a plurality of AF area groups based on positions of the respective AF areas, an AF area group having a large number of AF areas is selected, and an AF area group that is not selected is selected. The focus lens is moved using the AF evaluation value of the selected AF area group without using the AF evaluation value of the selected AF area, and direction determination is performed. Thereafter, among the AF areas included in the selected AF area group A focus adjustment control method including a focus adjustment step of selecting an AF area to be focused from and moving the focus lens based on an AF evaluation value of the selected AF area to perform focusing determination .
フォーカスレンズを含む撮影光学系を通過した被写体像を光電変換して得られた撮像画像から被写体の特徴部位を検出する検出ステップと、
複数のAFエリアを前記検出ステップで検出された複数の被写体の特徴部位に対応する領域に設定するAFエリア設定ステップと、
前記検出ステップでの出力信号に基づいて生成されたAF評価値を取得する焦点検出ステップと、
前記複数のAFエリアの状態に応じて前記複数のAFエリアのうちからAF評価値を使用すべきAFエリアを選択するAFエリア選択ステップとを有する焦点調節制御方法であって、
前記検出ステップで複数の被写体の特徴部位が検出されて前記AFエリア設定ステップで前記複数の被写体の特徴部位に対応する領域に複数のAFエリアが設定された場合、
前記AFエリア選択ステップは、前記複数のAFエリアを各AFエリアの大きさに基づいて複数のAFエリア群にグループ化し、含まれるAFエリアの数が多いAFエリア群を選択し、選択されないAFエリア群のAF評価値を用いずに前記選択されたAFエリア群のAF評価値を用いて前記フォーカスレンズを移動させて方向判別を行い、その後、前記選択されたAFエリア群に含まれるAFエリアのうちから合焦させるためのAFエリアを選択し、選択されたAFエリアのAF評価値に基づいて前記フォーカスレンズを移動させて合焦判別を行う焦点調節ステップを有する焦点調節制御方法。
A detection step of detecting a characteristic part of the subject from a captured image obtained by photoelectrically converting a subject image that has passed through a photographing optical system including a focus lens ;
An AF area setting step for setting a plurality of AF areas in regions corresponding to characteristic portions of a plurality of subjects detected in the detection step;
A focus detection step of obtaining an AF evaluation value generated based on the output signal in the detection step;
A focusing control method and a AF area selection step of selecting the AF area to be used AF evaluation value from among the plurality of AF areas in accordance with the state of the plurality of AF areas,
When a plurality of subject areas are detected in the detection step and a plurality of AF areas are set in regions corresponding to the plurality of subject feature parts in the AF area setting step ,
In the AF area selection step, the plurality of AF areas are grouped into a plurality of AF area groups based on the size of each AF area, an AF area group having a large number of AF areas is selected, and AF areas that are not selected are selected. The focus lens is moved using the AF evaluation value of the selected AF area group without using the AF evaluation value of the group to determine the direction, and then the AF area included in the selected AF area group is determined. A focus adjustment control method including a focus adjustment step of selecting an AF area for focusing from among them and moving the focus lens based on an AF evaluation value of the selected AF area to perform focusing determination .
フォーカスレンズを含む撮影光学系を通過した被写体像を光電変換して得られた撮像画像から被写体の特徴部位を検出する検出ステップと、
複数のAFエリアを前記検出ステップで検出された複数の被写体の特徴部位に対応する領域に設定するAFエリア設定ステップと、
前記検出ステップでの出力信号に基づいて生成されたAF評価値を取得する焦点検出ステップと、
前記複数のAFエリアの状態に応じて前記複数のAFエリアのうちからAF評価値を使用すべきAFエリアを選択するAFエリア選択ステップとを有する焦点調節制御方法であって、
前記検出ステップで複数の被写体の特徴部位が検出されて前記AFエリア設定ステップで前記複数の被写体の特徴部位に対応する領域に複数のAFエリアが設定された場合、
前記AFエリア選択ステップは、前記複数のAFエリアを各AFエリアの移動方向に基づいて複数のAFエリア群にグループ化し、含まれるAFエリアの数が多いAFエリア群を選択し、選択されないAFエリア群のAF評価値を用いずに前記選択されたAFエリア群のAF評価値を用いて前記フォーカスレンズを移動させて方向判別を行い、その後、前記選択されたAFエリア群に含まれるAFエリアのうちから合焦させるためのAFエリアを選択し、選択されたAFエリアのAF評価値に基づいて前記フォーカスレンズを移動させて合焦判別を行う焦点調節ステップを有する焦点調節制御方法。
A detection step of detecting a characteristic part of the subject from a captured image obtained by photoelectrically converting a subject image that has passed through a photographing optical system including a focus lens ;
An AF area setting step for setting a plurality of AF areas in regions corresponding to characteristic portions of a plurality of subjects detected in the detection step;
A focus detection step of obtaining an AF evaluation value generated based on the output signal in the detection step;
A focusing control method and a AF area selection step of selecting the AF area to be used AF evaluation value from among the plurality of AF areas in accordance with the state of the plurality of AF areas,
When a plurality of subject areas are detected in the detection step and a plurality of AF areas are set in regions corresponding to the plurality of subject feature parts in the AF area setting step ,
In the AF area selection step, the plurality of AF areas are grouped into a plurality of AF area groups based on the moving direction of each AF area, an AF area group having a large number of AF areas is selected, and AF areas that are not selected are selected. The focus lens is moved using the AF evaluation value of the selected AF area group without using the AF evaluation value of the group to determine the direction, and then the AF area included in the selected AF area group is determined. A focus adjustment control method including a focus adjustment step of selecting an AF area for focusing from among them and moving the focus lens based on an AF evaluation value of the selected AF area to perform focusing determination .
請求項8に記載の焦点調節制御方法をコンピュータに実行させることを特徴とするプログラム。 A program for causing a computer to execute the focus adjustment control method according to claim 8 . 請求項9に記載の焦点調節制御方法をコンピュータに実行させることを特徴とするプログラム。 A program for causing a computer to execute the focus adjustment control method according to claim 9 . 請求項10に記載の焦点調節制御方法をコンピュータに実行させることを特徴とするプログラム。A program for causing a computer to execute the focus adjustment control method according to claim 10.
JP2008244320A 2008-09-24 2008-09-24 Focus adjustment device, focus adjustment control method, and program Expired - Fee Related JP5063546B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008244320A JP5063546B2 (en) 2008-09-24 2008-09-24 Focus adjustment device, focus adjustment control method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008244320A JP5063546B2 (en) 2008-09-24 2008-09-24 Focus adjustment device, focus adjustment control method, and program

Publications (2)

Publication Number Publication Date
JP2010078682A JP2010078682A (en) 2010-04-08
JP5063546B2 true JP5063546B2 (en) 2012-10-31

Family

ID=42209254

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008244320A Expired - Fee Related JP5063546B2 (en) 2008-09-24 2008-09-24 Focus adjustment device, focus adjustment control method, and program

Country Status (1)

Country Link
JP (1) JP5063546B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2448246B1 (en) 2010-10-28 2019-10-09 Axis AB Method for focusing
JP2016197215A (en) 2015-04-06 2016-11-24 オリンパス株式会社 Focus adjustment device and method for controlling focus adjustment device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003107335A (en) * 2001-09-28 2003-04-09 Ricoh Co Ltd Image pickup device, automatic focusing method, and program for making computer execute the method
JP4706197B2 (en) * 2003-07-15 2011-06-22 オムロン株式会社 Object determining apparatus and imaging apparatus
JP2005141068A (en) * 2003-11-07 2005-06-02 Canon Inc Automatic focusing device, automatic focusing method, and control program readable by computer
JP4888191B2 (en) * 2007-03-30 2012-02-29 株式会社ニコン Imaging device

Also Published As

Publication number Publication date
JP2010078682A (en) 2010-04-08

Similar Documents

Publication Publication Date Title
JP5294647B2 (en) Focus adjustment apparatus and control method thereof
JP5773583B2 (en) Imaging apparatus, control method therefor, and computer program
JP2021002066A (en) Display control device, display control method, and display control program
JP4645413B2 (en) Imaging device
US20030169363A1 (en) Image pickup apparatus and method, and image-pickup control computer program
JP2008177785A (en) Imaging apparatus, and its control method
JP5335408B2 (en) Focus adjustment apparatus and method
JP5075110B2 (en) Focus adjustment apparatus and method
JP5063546B2 (en) Focus adjustment device, focus adjustment control method, and program
JP6851726B2 (en) Control device, image pickup device, control method, program, and storage medium
JP5322629B2 (en) Automatic focus detection apparatus, control method therefor, and imaging apparatus
JP5926757B2 (en) Automatic focusing device, automatic focusing method, and imaging device
JP6105917B2 (en) Focus adjustment apparatus and method, and imaging apparatus
JP2015079158A (en) Image capturing device and control method therefor
JP4981758B2 (en) Focus adjustment apparatus and method
JP6164978B2 (en) FOCUS ADJUSTMENT DEVICE, ITS CONTROL METHOD, CONTROL PROGRAM, AND IMAGING DEVICE
JP5164711B2 (en) Focus adjustment apparatus and control method thereof
JP5017195B2 (en) Focus adjustment apparatus and method
JP5202292B2 (en) IMAGING DEVICE, IMAGING DEVICE CONTROL METHOD, PROGRAM, AND STORAGE MEDIUM
JP4928191B2 (en) Automatic focusing device and imaging device
JP5759127B2 (en) Focus adjustment device and focus adjustment method
JP5932340B2 (en) Focus adjustment device
EP4369729A2 (en) Imaging control apparatus, imaging control method, program, and storage medium
JP5247945B2 (en) IMAGING DEVICE, IMAGING DEVICE CONTROL METHOD, PROGRAM, AND STORAGE MEDIUM
JP6420532B2 (en) Imaging apparatus and control method thereof

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20110916

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20120417

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20120418

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120608

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: 20120710

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: 20120807

R151 Written notification of patent or utility model registration

Ref document number: 5063546

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: 20150817

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees