JP2013140262A - Focusing device - Google Patents

Focusing device Download PDF

Info

Publication number
JP2013140262A
JP2013140262A JP2012000424A JP2012000424A JP2013140262A JP 2013140262 A JP2013140262 A JP 2013140262A JP 2012000424 A JP2012000424 A JP 2012000424A JP 2012000424 A JP2012000424 A JP 2012000424A JP 2013140262 A JP2013140262 A JP 2013140262A
Authority
JP
Japan
Prior art keywords
subject
focus
operation mode
focus adjustment
predetermined
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
JP2012000424A
Other languages
Japanese (ja)
Other versions
JP5894440B2 (en
Inventor
Kazunori Ishii
和憲 石井
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 JP2012000424A priority Critical patent/JP5894440B2/en
Publication of JP2013140262A publication Critical patent/JP2013140262A/en
Application granted granted Critical
Publication of JP5894440B2 publication Critical patent/JP5894440B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Abstract

PROBLEM TO BE SOLVED: To provide an automatic focusing device and method capable of improving stability in focusing and also capable of reducing discomfort given to a photographer, at an AF control using a detection function of a predetermined subject.SOLUTION: A focusing device includes: means 113 for generating an AF evaluation value from an electric signal corresponding to a preset focus detection area including a predetermined subject; control means 114 for driving and controlling a focus lens 105 to adjust focus; and means 114 for determining existence of a movement of the subject in at least one of horizontal and vertical directions. The control means includes a first focus operation mode and a second focus operation mode different from the first focus operation mode with regard to a drive control mode of the focus lens and configured to perform a tracking drive operation corresponding to a distance change of the subject. If it is determined that there exists a predetermined movement of the subject, the control means restricts the second focus operation mode.

Description

本発明は、撮像対象に人物などの予め定められた被写体を含む場合に、撮影画面内の被写体領域を検出して、その検出結果に基づいて焦点調節を行う撮像装置における自動焦点調節装置及び方法に関する。 The present invention relates to an automatic focus adjustment apparatus and method in an imaging apparatus that detects a subject area in a shooting screen and performs focus adjustment based on the detection result when a subject such as a person is included in an imaging target. About.

ビデオカメラ等の撮像装置のオートフォーカス(AF)制御では、次のTV−AF方式が主流である。この方式では、撮像素子を用いて生成された映像信号の鮮鋭度(コントラスト状態)を示すAF評価信号を生成し、該AF評価信号におけるAF評価値が最大となるフォーカスレンズの位置を探索する。また、人物を撮影する場合において、主人物被写体に安定したピント合わせを行うために、顔検出機能を有する撮像装置が知られている。例えば、認識された顔検出領域を含む焦点検出領域を設定し、焦点検出を行う撮像装置が提案されている(特許文献1参照)。また、人物の目を検出し、その目に基づいて焦点検出を行う撮像装置が提案されている(特許文献2参照)。 In the auto focus (AF) control of an imaging apparatus such as a video camera, the following TV-AF method is the mainstream. In this method, an AF evaluation signal indicating the sharpness (contrast state) of a video signal generated using an image sensor is generated, and the position of the focus lens that maximizes the AF evaluation value in the AF evaluation signal is searched. In addition, an imaging apparatus having a face detection function is known in order to stably focus on a main person subject when shooting a person. For example, there has been proposed an imaging apparatus that performs focus detection by setting a focus detection area including a recognized face detection area (see Patent Document 1). In addition, an imaging apparatus that detects the eyes of a person and performs focus detection based on the eyes has been proposed (see Patent Document 2).

特開2006−227080号公報JP 2006-227080 A 特開2001−215403号公報JP 2001-215403 A

上記の撮影画面から顔を検出し、その検出された顔に対してAF制御を行う顔AF制御において、人ごみ中で歩き撮りのような撮影をする際に、人物は大きくなりながら、画面の左右方向へ向かって移動し、すぐに画面から外れてしまうことがある。この場合、顔が検出されても、すぐに画面から外れてしまうために、検出された顔に対して顔AF制御を実行し、応答性を重視してピントを追従させると、ふわついて見えたりして、ピント合わせが不安定となってしまうことがある。また、撮影画面内の人物の移動が速い場合、顔を検出する処理時間によるタイムラグがあるために、実際の顔位置と検出された顔位置とのズレが発生し、正確なピント合わせが出来ずに、誤った方向にピント合わせを行ってしまう可能性がある。特に動画撮影の場合、このふわつきが記録されてしまう可能性があるために、撮影者に不快感を与えてしまう。 In face AF control, which detects a face from the above shooting screen and performs AF control on the detected face, when shooting in a crowd like a walk shot, the person grows and the It may move in the direction and quickly get out of the screen. In this case, even if a face is detected, it will be off the screen immediately, so if you perform face AF control on the detected face and focus on the responsiveness, it will appear flickering. As a result, focusing may become unstable. Also, if the person in the shooting screen moves fast, there will be a time lag due to the processing time to detect the face, so the actual face position will be misaligned with the detected face position, making it impossible to focus accurately. In addition, there is a possibility of focusing in the wrong direction. In particular, in the case of moving image shooting, this flicker may be recorded, which causes discomfort to the photographer.

ここで、ピントが大きくふわついて見える要因として、次の点が挙げられる。すなわち、後述のTV―AF方式の2種類の動作モード(微小駆動動作モードと山登り駆動動作モード)のうち、合焦している状態であるにも関わらず、山登り駆動動作モードで動作してしまう場合に上記ふわつきが目だってしまう。この点、微小駆動動作モードは、ピントのボケが見えないようにフォーカスレンズを細かく往復駆動させ画面の安定性を重視した動作モードである。これに対して、山登り駆動動作モードは、ボケたところから素早く合焦位置へ移動させるためにフォーカスレンズを高速に動かすといった応答性を重視した動作モードである。よって、合焦している状態から、誤って山登り駆動動作モードを実行してしまうと、ボケが目立ってしまうことになる。上述したように、合焦しているところからピントが大きくふわついたりしてしまうと、撮影者に対して不快感を与えてしまう。 Here, the following points can be cited as factors that make the focus appear to be largely flickering. That is, among the two types of operation modes of the TV-AF system described later (a micro-driving operation mode and a hill-climbing driving operation mode), the operation is performed in the hill-climbing driving operation mode despite being in focus. In some cases, the above fluffiness is noticeable. In this regard, the minute drive operation mode is an operation mode in which the focus lens is finely reciprocated so as not to see out of focus and the stability of the screen is emphasized. On the other hand, the hill-climbing drive operation mode is an operation mode that emphasizes responsiveness such as moving the focus lens at a high speed in order to quickly move from the blurred position to the in-focus position. Therefore, if the hill-climbing drive operation mode is mistakenly executed from the focused state, blurring will be conspicuous. As described above, if the focus is greatly fluctuated from the point of focus, the photographer will be uncomfortable.

本発明の目的は、上述したような事態を鑑みてなされたものであり、顔などのAF制御の安定性を向上させることができる自動焦点調節装置及び方法などを提供することにある。 An object of the present invention is to provide an automatic focus adjustment apparatus and method that can improve the stability of AF control of a face or the like in view of the above-described situation.

本発明の自動焦点調節装置は、フォーカスレンズを含む撮像光学系を通過した被写体からの光を光電変換して電気信号に変換する撮像素子と、撮像素子から出力される電気信号から撮影画面内の所定の被写体を検出する検出手段と、撮像素子から出力される電気信号のうち、前記所定の被写体を含んで設定された焦点検出領域に対応する電気信号からAF評価値を生成する生成手段と、撮影画面内に設定された焦点検出領域から得られるAF評価値を用いてフォーカスレンズを駆動制御して焦点調節を行う制御手段と、検出手段による検出結果から、被写体の左右及び上下方向の少なくとも一方の方向への所定の移動の有無を判定する被写体移動判定手段を有する。そして、制御手段は、フォーカスレンズを駆動制御して焦点調節を行う上で、安定性を重視した第1の焦点調節動作モードと、該第1の焦点調節動作モードとはフォーカスレンズの駆動制御態様が異なり被写体の距離変化に対応させた追従駆動動作を行う応答性を重視した第2の焦点調節動作モードとを有しており、被写体移動判定手段により被写体の前記移動が無いと判定された場合には前記第2の焦点調節動作モードをフォーカスレンズの駆動制御として実行し、被写体移動判定手段により被写体の前記移動があると判定された場合には前記第2の焦点調節動作モードを制限する。 The automatic focus adjustment apparatus of the present invention includes an image sensor that photoelectrically converts light from a subject that has passed through an imaging optical system including a focus lens into an electric signal, and an electric signal output from the image sensor in an imaging screen. Detection means for detecting a predetermined subject; and generation means for generating an AF evaluation value from an electrical signal corresponding to a focus detection region set including the predetermined subject among electrical signals output from the image sensor; Control means for controlling the focus by driving the focus lens using the AF evaluation value obtained from the focus detection area set in the photographing screen, and at least one of the left and right and up and down directions of the subject based on the detection result by the detection means Subject movement determination means for determining the presence or absence of a predetermined movement in the direction of Then, the control means controls the focus lens to perform focus adjustment to perform focus adjustment. The first focus adjustment operation mode in which stability is emphasized, and the first focus adjustment operation mode are drive control modes of the focus lens. And a second focus adjustment operation mode emphasizing responsiveness for performing a follow-up driving operation corresponding to a change in the distance of the subject, and the subject movement determining means determines that the subject has not moved. The second focus adjustment operation mode is executed as focus lens drive control, and the second focus adjustment operation mode is limited when the subject movement determining means determines that the subject has moved.

また、本発明の自動焦点調節方法は、フォーカスレンズを含む撮像光学系を通過した被写体からの光を光電変換して電気信号に変換する撮像ステップと、撮像ステップにおいて出力される電気信号から撮影画面内の所定の被写体を検出する検出ステップと、撮像ステップにおいて出力される電気信号のうち、前記所定の被写体を含んで設定された焦点検出領域に対応する電気信号からAF評価値を生成する生成ステップと、撮影画面内に設定された焦点検出領域から得られるAF評価値を用いてフォーカスレンズを駆動制御して焦点調節を行う制御ステップと、検出ステップの検出結果から、被写体の左右及び上下方向の少なくとも一方の方向への所定の移動の有無を判定する被写体移動判定ステップを有する。そして、制御ステップにおいて、フォーカスレンズを駆動制御して焦点調節を行う上で、安定性を重視した第1の焦点調節動作モードと、該第1の焦点調節動作モードとはフォーカスレンズの駆動制御態様が異なり被写体の距離変化に対応させた追従駆動動作を行う応答性を重視した第2の焦点調節動作モードとが実行可能であり、被写体移動判定ステップにおいて被写体の前記移動が無いと判定された場合には前記第2の焦点調節動作モードをフォーカスレンズの駆動制御として実行し、被写体移動判定ステップにおいて被写体の前記移動があると判定された場合には前記第2の焦点調節動作モードを制限する。 The automatic focus adjustment method of the present invention includes an imaging step for photoelectrically converting light from a subject that has passed through an imaging optical system including a focus lens into an electrical signal, and an imaging screen from the electrical signal output in the imaging step. A detection step for detecting a predetermined subject in the image, and a generation step for generating an AF evaluation value from an electrical signal corresponding to a focus detection region set including the predetermined subject among the electrical signals output in the imaging step And a control step for controlling the focus by driving the focus lens using the AF evaluation value obtained from the focus detection area set in the shooting screen, and the detection result of the detection step, the left and right and up and down directions of the subject A subject movement determination step of determining whether or not there is a predetermined movement in at least one direction. In the control step, when the focus lens is driven and controlled to perform focus adjustment, the first focus adjustment operation mode in which stability is emphasized, and the first focus adjustment operation mode are drive control modes of the focus lens. And the second focus adjustment operation mode emphasizing responsiveness for performing a follow-up driving operation corresponding to a change in the distance of the subject can be executed, and it is determined in the subject movement determination step that the subject has not moved. The second focus adjustment operation mode is executed as focus lens drive control, and the second focus adjustment operation mode is limited when it is determined in the subject movement determination step that the subject has moved.

本発明によれば、被写体移動判定により被写体の左右及び上下方向の少なくとも一方の方向への所定の移動があると判定された場合には、被写体の距離変化に対応させた応答性を重視した追従駆動動作をフォーカスレンズの駆動制御として行うことを制限する。したがって、顔などのAF制御の安定性を向上させることができ、撮影者の不快感などを軽減することができる。 According to the present invention, when it is determined by subject movement determination that there is a predetermined movement in at least one of the left and right and up and down directions of the subject, the follow-up focusing on responsiveness corresponding to a change in the distance of the subject Limiting the drive operation as focus lens drive control is limited. Therefore, the stability of AF control of the face and the like can be improved, and the photographer's discomfort can be reduced.

本発明の自動焦点調節装置を備えるビデオカメラの構成を示すブロック図。The block diagram which shows the structure of a video camera provided with the automatic focus adjustment apparatus of this invention. 本発明の一実施例における顔AF制御処理を示すフローチャート。The flowchart which shows the face AF control process in one Example of this invention. 本発明の一実施例における被写体の移動監視処理を示すフローチャート。5 is a flowchart showing subject movement monitoring processing in an embodiment of the present invention. TV−AF処理における微小駆動動作モードを説明するための図。The figure for demonstrating the micro drive operation mode in TV-AF process. TV−AF処理における山登り駆動動作モードを説明するための図。The figure for demonstrating the hill-climbing drive operation mode in TV-AF process. 他の実施例における被写体の移動監視処理を示すフローチャート。The flowchart which shows the movement monitoring process of the to-be-photographed object in another Example. 顔枠および通常枠の設定の例を示す図。The figure which shows the example of a setting of a face frame and a normal frame.

本発明の特徴は、検出結果から被写体の左右及び上下方向の少なくとも一方の方向への所定の移動の有無を判定し、前記移動が無いと判定された場合には、安定性を重視した第1の焦点調節動作モードに替って、応答性を重視した第2の焦点調節動作モードをフォーカスレンズの駆動制御として実行し、前記移動があると判定された場合には第2の焦点調節動作モードを制限することを特徴とする。この考え方に基づき、本発明の焦点調節装置及び方法は、課題を解決するための手段のところで述べた様な基本的な構成を有する。後述の第1の実施例で説明する様に、第1の焦点調節動作モードは、例えば、フォーカスレンズを所定駆動量ずつ往復駆動させて焦点調節を実行する微小駆動動作を含むモードである。また、第1の焦点調節動作モードとはフォーカスレンズの駆動制御態様が異なる第2の焦点調節動作モードは、例えば、第1の焦点調節動作モードに加えて、フォーカスレンズを所定方向に連続して第1の焦点調節動作モードよりも高速に駆動させて焦点調節を実行する山登り駆動動作を含むモードである。 A feature of the present invention is that the presence or absence of a predetermined movement in at least one of the left and right and up and down directions of the subject is determined from the detection result. If it is determined that there is no movement, a first emphasis on stability is provided. In place of the focus adjustment operation mode, the second focus adjustment operation mode emphasizing responsiveness is executed as drive control of the focus lens. If it is determined that there is the movement, the second focus adjustment operation mode is determined. It is characterized by restricting. Based on this concept, the focus adjustment apparatus and method of the present invention have the basic configuration as described in the section for solving the problems. As will be described in the first embodiment to be described later, the first focus adjustment operation mode is a mode including a minute drive operation in which focus adjustment is performed by reciprocally driving the focus lens by a predetermined drive amount, for example. In addition, the second focus adjustment operation mode, which is different from the first focus adjustment operation mode in the focus lens drive control mode, is, for example, in addition to the first focus adjustment operation mode, the focus lens is continuously moved in a predetermined direction. This is a mode including a hill-climbing driving operation in which the focus adjustment is performed by driving at a higher speed than the first focus adjustment operation mode.

以下、本発明の実施例を説明する。図1は、本発明の実施例である自動焦点調節装置を含むビデオカメラ(撮像装置)の構成を示す。以下の実施例では、ビデオカメラについて説明するが、本発明はデジタルスチルカメラ等の他の撮像装置にも適用できる。 Examples of the present invention will be described below. FIG. 1 shows a configuration of a video camera (image pickup apparatus) including an automatic focus adjustment apparatus according to an embodiment of the present invention. In the following embodiments, a video camera will be described, but the present invention can also be applied to other imaging devices such as a digital still camera.

<第1の実施例>
第1の実施例に係る撮像装置としてのビデオカメラの主要部の構成を示す図1において、101は第1の固定レンズ群、102は光軸方向に移動して変倍を行い焦点距離を変化させることができる変倍レンズ、103は絞りである。また、104は第2の固定レンズ群、105は変倍に伴う焦点面の移動を補正する機能とフォーカシングの機能とを兼ね備えたフォーカスコンペンセータレンズ(「フォーカスレンズ」とも記す)である。第1の固定レンズ群101、変倍レンズ102、絞り103、第2の固定レンズ群104及びフォーカスレンズ105により撮像光学系が構成される。
<First embodiment>
In FIG. 1 showing the configuration of the main part of a video camera as an image pickup apparatus according to the first embodiment, 101 is a first fixed lens group, 102 is moved in the direction of the optical axis and zoomed to change the focal length. A variable magnification lens 103 can be made to stop. Reference numeral 104 denotes a second fixed lens group, and reference numeral 105 denotes a focus compensator lens (also referred to as a “focus lens”) having both a function of correcting the movement of the focal plane due to zooming and a focusing function. The first fixed lens group 101, the variable magnification lens 102, the stop 103, the second fixed lens group 104, and the focus lens 105 constitute an imaging optical system.

106は、CCDセンサやCMOSセンサにより構成される光電変換素子としての撮像素子である。撮像素子106は、フォーカスレンズを含む撮像光学系により形成された被写体像を撮像して光電変換による電気信号を出力する。107は、撮像素子106の出力をサンプリングし、ゲイン調整するCDS/AGC回路である。108はカメラ信号処理回路であり、CDS/AGC回路107からの出力信号に対して各種の画像処理を施し、映像信号を生成する。109はLCD等により構成されるモニタであり、カメラ信号処理回路108からの映像信号を表示する。115は記録部であり、カメラ信号処理回路108からの映像信号を磁気テープ、光ディスク、半導体メモリ等の記録媒体に記録する。 Reference numeral 106 denotes an image sensor as a photoelectric conversion element constituted by a CCD sensor or a CMOS sensor. The image sensor 106 captures a subject image formed by an imaging optical system including a focus lens and outputs an electrical signal by photoelectric conversion. Reference numeral 107 denotes a CDS / AGC circuit that samples the output of the image sensor 106 and adjusts the gain. A camera signal processing circuit 108 performs various image processing on the output signal from the CDS / AGC circuit 107 to generate a video signal. Reference numeral 109 denotes a monitor constituted by an LCD or the like, which displays a video signal from the camera signal processing circuit 108. A recording unit 115 records the video signal from the camera signal processing circuit 108 on a recording medium such as a magnetic tape, an optical disk, or a semiconductor memory.

110は、変倍レンズ102を移動させるためのズーム駆動源である。111は、フォーカスレンズ105を移動させるためのフォーカシング駆動源である。ズーム駆動源110及びフォーカシング駆動源111は、ステッピングモータ、DCモータ、振動型モータ及びボイスコイルモータ等のアクチュエータにより構成される。112は、CDS/AGC回路107からの全画素の出力信号のうち焦点検出に用いられる領域(後述の所定の被写体を含んで設定された焦点検出領域)の信号のみを通すAFゲートである。AF信号処理回路113は、AFゲート112を通過した信号から高周波成分や輝度差成分(AFゲート112を通過した信号の輝度レベルの最大値と最小値の差分)等を抽出してAF評価信号を生成する。AF評価信号は、カメラ/AFマイクロコンピュータ(単に「マイクロコンピュータ」とも記す)114に出力される。AF評価信号は、撮像素子106からの出力信号に基づいて生成される映像信号の鮮鋭度(コントラスト状態)を表すものであるが、鮮鋭度は撮像光学系の焦点状態によって変化するので、結果的にAF評価信号は撮像光学系の焦点状態を表す信号となる。 Reference numeral 110 denotes a zoom drive source for moving the variable magnification lens 102. Reference numeral 111 denotes a focusing drive source for moving the focus lens 105. The zoom drive source 110 and the focusing drive source 111 are configured by actuators such as a stepping motor, a DC motor, a vibration motor, and a voice coil motor. Reference numeral 112 denotes an AF gate that passes only signals in an area used for focus detection (a focus detection area set to include a predetermined subject described later) in the output signals of all pixels from the CDS / AGC circuit 107. The AF signal processing circuit 113 extracts a high frequency component, a luminance difference component (difference between the maximum value and the minimum value of the luminance level of the signal that has passed through the AF gate 112) and the like from the signal that has passed through the AF gate 112, and outputs an AF evaluation signal. Generate. The AF evaluation signal is output to a camera / AF microcomputer (also simply referred to as “microcomputer”) 114. The AF evaluation signal represents the sharpness (contrast state) of the video signal generated based on the output signal from the image sensor 106, but the sharpness varies depending on the focus state of the imaging optical system. The AF evaluation signal is a signal representing the focus state of the imaging optical system.

制御手段であるマイクロコンピュータ114は、ビデオカメラ全体の動作の制御を司ると共に、フォーカシング駆動源111を制御してフォーカスレンズ105を駆動制御するAF制御を行う。すなわち、制御手段は、撮影画面内に設定された焦点検出領域から得られるAF評価値を用いてフォーカスレンズを駆動制御して焦点調節をも行う。マイクロコンピュータ114は、AF制御として、TV−AF方式でのAF制御(単に「TV−AF」とも記す)を行う。顔検出部116は、映像信号に対して公知の顔検出処理を施して、撮影画面内の人物の顔(所定の被写体)を検出し、その検出結果をマイクロコンピュータ114に送信する。マイクロコンピュータ114は、上記検出結果に基づき、撮影画面内の顔を含む領域に顔枠を追加するようにAFゲート112へ情報を送信する。ここで、顔検出部116により複数の人物の顔を検出した場合には、顔の位置、顔のサイズ、もしくは撮影者の指示によって優先順位をつける主顔判定処理部があり、この主顔判定処理部によって最も優先と判断された顔を主顔(主被写体)とする。例えば、撮影者の指示によって選択された顔が最も優先度が高く、続いて顔の位置が画面中央に近い程、そして、顔のサイズが大きい程、優先度が高くなるように判定を行う。但し、この限りではない。顔検出処理としては、例えば、画像データで表される各画素の階調色から、肌色領域を抽出し、予め用意する顔の輪郭プレートとのマッチング度で顔を検出する方法がある。また、周知のパターン認識技術を用いて、目、鼻、口等の顔の特徴点を抽出することで顔検出を行う方法等もある。本実施例では、顔検出処理の方法については、上述した方法に限られず、どのような方法を用いてもよい。 The microcomputer 114, which is a control means, controls the operation of the entire video camera, and performs AF control for controlling the focusing drive source 111 to drive and control the focus lens 105. That is, the control means also performs focus adjustment by driving and controlling the focus lens using the AF evaluation value obtained from the focus detection area set in the photographing screen. The microcomputer 114 performs AF control (also simply referred to as “TV-AF”) in the TV-AF method as AF control. The face detection unit 116 performs known face detection processing on the video signal, detects a human face (predetermined subject) in the shooting screen, and transmits the detection result to the microcomputer 114. Based on the detection result, the microcomputer 114 transmits information to the AF gate 112 so as to add a face frame to an area including the face in the shooting screen. Here, when the faces of a plurality of persons are detected by the face detection unit 116, there is a main face determination processing unit that prioritizes according to the position of the face, the size of the face, or an instruction from the photographer. The face determined to be the highest priority by the processing unit is set as the main face (main subject). For example, the face selected by the photographer's instruction has the highest priority, and the determination is performed such that the priority is higher as the face position is closer to the center of the screen and the face size is larger. However, this is not the case. As face detection processing, for example, there is a method of extracting a skin color region from the gradation color of each pixel represented by image data and detecting the face with a matching degree with a face contour plate prepared in advance. There is also a method of performing face detection by extracting facial feature points such as eyes, nose and mouth using a known pattern recognition technique. In the present embodiment, the face detection processing method is not limited to the above-described method, and any method may be used.

次に、マイクロコンピュータ114が実行する顔AF制御処理について説明する。図2は、図1におけるマイクロコンピュータ114が実行する顔AF制御処理を示すフローチャートである。本処理は、マイクロコンピュータ114内に格納されたコンピュータプログラムに従って実行され、例えば、1フィールド画像を生成するための撮像素子106からの撮像信号の読み出し周期にて繰り返し実行される。図2において、まず、顔検出部116から、最新の映像信号に対して顔検出処理を実行した結果を取得する(Step201)。次いで、Step202で、Step201の結果、顔が存在する場合には、Step205へ移行し、顔が存在しない場合には、Step203へ移行する。Step203では、画面上の所定の固定された位置にAFゲート112により領域(「AF枠」とも記す)を設定し、後述する被写体移動フラグをクリアし(Step204)、TV−AF制御を実行する(Step209)。一方、Step205では、顔検出部116で検出された結果から、主顔の位置にAF枠(顔枠)を設定する。さらに、顔枠を含み被写体に追従しない所定のAF枠(通常枠)を設定する。 Next, face AF control processing executed by the microcomputer 114 will be described. FIG. 2 is a flowchart showing face AF control processing executed by the microcomputer 114 in FIG. This process is executed in accordance with a computer program stored in the microcomputer 114, and is repeatedly executed, for example, at the readout cycle of the imaging signal from the imaging device 106 for generating one field image. In FIG. 2, first, the result of performing face detection processing on the latest video signal is acquired from the face detection unit 116 (Step 201). Next, in Step 202, if a face exists as a result of Step 201, the process proceeds to Step 205, and if there is no face, the process proceeds to Step 203. In Step 203, an area (also referred to as “AF frame”) is set by the AF gate 112 at a predetermined fixed position on the screen, a subject movement flag described later is cleared (Step 204), and TV-AF control is executed (Step 204). Step 209). On the other hand, in Step 205, an AF frame (face frame) is set at the position of the main face from the result detected by the face detection unit 116. Further, a predetermined AF frame (normal frame) that includes the face frame and does not follow the subject is set.

次に、後述する本発明の特徴である被写体の移動監視処理を実行し(Step206)、その結果を受けて、Step207で被写体移動フラグがセットされている場合には、後述するTV−AF制御に用いられる山登り移行カウンタをクリアし(Step208)、そしてTV−AF制御処理(Step209)を実行し、本処理を終了する。また、被写体移動フラグがセットされていない場合には(Step207でNo)、TV−AF制御処理(Step209)を実行する。TV−AF制御処理については、後に詳細な説明をする公知の微小駆動動作モードと山登り駆動動作モードを組み合わせた方式であり、AF評価値が最大となるように、フォーカスレンズを駆動させながら、AF評価値の増減を判定し、合焦点を探索する方法である。 Next, subject movement monitoring processing, which is a feature of the present invention to be described later, is executed (Step 206), and when the subject movement flag is set in Step 207 in response to the result, TV-AF control to be described later is performed. The used hill-climbing transition counter is cleared (Step 208), the TV-AF control process (Step 209) is executed, and this process ends. If the subject movement flag is not set (No in Step 207), the TV-AF control process (Step 209) is executed. The TV-AF control process is a method that combines a well-known minute driving operation mode and a hill-climbing driving operation mode, which will be described in detail later, while driving the focus lens so that the AF evaluation value is maximized. This is a method of determining increase / decrease of the evaluation value and searching for a focal point.

本実施例における被写体の移動監視処理(Step206)について説明する。図3は、本実施例における被写体の移動監視処理のフローチャートである。まず、Step301で、顔サイズから被写体が移動していると判定するしきい値を算出する。同じ移動量でも、顔サイズにより変化は異なるためである。このしきい値は、経験に基づくと、顔サイズの25%と設定し、顔サイズによって変更しても良い。次に、顔位置の移動量を算出する(Step302)。顔位置の移動量は、現在の検出された顔の中心位置と、顔位置の履歴を揮発性のメモリ等(不図示)に保存しておいた前回の検出された顔の中心位置との差を算出して取得する。ここで、前回の検出された顔の中心位置としたが、被写体の動きが常にある場合に安定した移動量を算出するために、例えば、過去数回の顔の中心位置の平均値と現在の検出された顔との中心位置との差を算出してもよい。また、X方向とY方向を組み合わせてもよいし、ハイビジョン撮影が増えるにしたがって16:9の横長のアスペクト比となっている様な場合、X方向のみを考慮してもよい。そして、Step302で算出された顔位置の移動量とStep301で算出された移動量のしきい値とを比較する(Step303)。顔位置の移動量が移動量のしきい値を超えた場合(Step303でYes)、被写体移動フラグをセットする(Step305)。顔位置の移動量が移動量のしきい値以下の場合(Step303でNo)、被写体移動フラグをクリアする(Step304)。 A subject movement monitoring process (Step 206) in the present embodiment will be described. FIG. 3 is a flowchart of subject movement monitoring processing in this embodiment. First, in Step 301, a threshold value for determining that the subject is moving from the face size is calculated. This is because the change varies depending on the face size even with the same movement amount. This threshold may be set to 25% of the face size based on experience and may be changed depending on the face size. Next, the amount of movement of the face position is calculated (Step 302). The amount of movement of the face position is the difference between the current detected face center position and the previous detected face center position in which the face position history is stored in a volatile memory or the like (not shown). Is calculated and obtained. Here, although the center position of the face detected last time is used, in order to calculate a stable movement amount when the subject always moves, for example, the average value of the center position of the past several times and the current You may calculate the difference with the center position with the detected face. In addition, the X direction and the Y direction may be combined, or in the case where the aspect ratio of 16: 9 is increased as high-definition shooting increases, only the X direction may be considered. Then, the movement amount of the face position calculated in Step 302 is compared with the threshold value of the movement amount calculated in Step 301 (Step 303). When the movement amount of the face position exceeds the movement amount threshold value (Yes in Step 303), the subject movement flag is set (Step 305). When the movement amount of the face position is equal to or smaller than the movement amount threshold value (No in Step 303), the subject movement flag is cleared (Step 304).

このStep303の比較処理は、本発明の特徴とするところであり、顔位置の左右あるいは上下方向の移動が大きい場合には、人物が画面から外れることが考えられる。また、人物と設定する顔枠とのズレも大きくなる可能性がある。その際に、異なる被写体にピント合わせを行い、画面全体が合焦している状態で、山登り駆動動作モードに移行してしまうと、顔AF制御が不安定になってしまう。また、人物の動きが速い場合に、像が流れてしまうことにより、低コントラストとなってしまう可能性も考えられる。その際に、画面全体が合焦している状態で、山登り駆動動作モードに移行してしまうと、顔AF制御が不安定になってしまう。よって、山登り駆動動作モードを制限することが必要になってくるのである。 This comparison processing in Step 303 is a feature of the present invention. When the movement of the face position in the left-right or up-down direction is large, it is conceivable that the person is off the screen. In addition, there is a possibility that the difference between the person and the face frame to be set becomes large. At that time, if a different subject is focused and the entire screen is in focus and the mode is shifted to the hill-climbing drive operation mode, the face AF control becomes unstable. In addition, when a person moves fast, there is a possibility that an image will flow, resulting in low contrast. At that time, if the hill-climbing drive operation mode is entered while the entire screen is in focus, the face AF control becomes unstable. Therefore, it is necessary to limit the hill-climbing drive operation mode.

図4は、図2のTV−AF処理におけるStep209で実行されるフォーカスレンズ105の微小駆動動作モードを説明するための図である。図4において、横軸は時間を、縦軸はフォーカスレンズ105の位置を示している。また、図中上方において、映像信号の垂直同期信号を示している。図4に示すように、期間Aの間に撮像素子106に蓄積された電荷(図中、斜線楕円で示す)に対するAF評価値EVが時刻Tで取り込まれ、期間Bの間に撮像素子106に蓄積された電荷に対するAF評価値EVが時刻Tで取り込まれる。また、期間Cの間に撮像素子106に蓄積された電荷に対するAF評価値EVが時刻Tで取り込まれる。そして、時刻Tでは、AF評価値EV、EV、EVを比較して、EV>EVかつEV>EVであれば、微小駆動の駆動(振動)中心を移動させる。一方、EV<EVまたはEV<EVあれば、振動中心を移動させない。このように、フォーカスレンズ105を移動させながらAF評価値が増加する方向を判定したり、AF評価値が最も大きくなるフォーカスレンズ105の位置(ピーク位置)を探したりするのが微小駆動動作モードである。なお、AF評価値の変化から合焦状態か否かを判定するためにフォーカスレンズ105を微小駆動させる制御は、合焦確認制御ということもできる。また、AF評価値の変化から合焦方向を判定するためにフォーカスレンズ105を微小駆動させる制御は、合焦方向判別制御ということもできる。 FIG. 4 is a diagram for explaining the minute driving operation mode of the focus lens 105 executed in Step 209 in the TV-AF process of FIG. In FIG. 4, the horizontal axis indicates time, and the vertical axis indicates the position of the focus lens 105. In the upper part of the figure, a vertical synchronizing signal of the video signal is shown. As shown in FIG. 4, the AF evaluation value EV A for the electric charge (indicated by the slanted ellipse in the figure) accumulated in the image sensor 106 during the period A is taken in at time TA, and during the period B, the image sensor The AF evaluation value EV B for the electric charge accumulated in 106 is taken in at time T B. Also, the AF evaluation value EV C for the charge accumulated in the image sensor 106 during the period C is taken in at time T C. Then, at time T D, AF evaluation values EV A, EV B, by comparing the EV C, if EV A> EV B and EV C> EV B, moves the driving (vibration) center of the minute drive. On the other hand, if EV A <EV B or EV C <EV B , the vibration center is not moved. As described above, the minute driving operation mode is used to determine the direction in which the AF evaluation value increases while moving the focus lens 105 or to search for the position (peak position) of the focus lens 105 where the AF evaluation value is the largest. is there. It should be noted that the control for finely driving the focus lens 105 to determine whether or not the in-focus state is based on the change in the AF evaluation value can also be referred to as in-focus confirmation control. Also, the control for finely driving the focus lens 105 to determine the in-focus direction from the change in the AF evaluation value can be referred to as in-focus direction discrimination control.

次に、山登り駆動動作モードについて、図5を用いて説明する。山登り駆動動作モードでは、フォーカスレンズ105を高速で駆動して、その間に得られたAF評価値がピークとなるピーク位置又はその近傍を検出する。図5には、山登り駆動動作モード時におけるフォーカスレンズ105の移動とAF評価値の変化との関係を示している。ここで、Aの動きでは、AF評価値がピークを越えて減少するので、ピーク位置(合焦位置)の存在を確認することができ、山登り駆動動作モードを終了して微小駆動動作モードに移行する、一方、Bの動きではピークが無く、単調に減少しているので、フォーカスレンズ105の駆動方向が誤りであると判定できる。この場合は、駆動方向を反転して山登り駆動動作モードを続ける。 Next, the hill-climbing drive operation mode will be described with reference to FIG. In the hill-climbing driving operation mode, the focus lens 105 is driven at a high speed, and the peak position where the AF evaluation value obtained during that time reaches a peak or the vicinity thereof is detected. FIG. 5 shows the relationship between the movement of the focus lens 105 and the change in the AF evaluation value in the hill-climbing drive operation mode. Here, in the movement of A, since the AF evaluation value decreases beyond the peak, the existence of the peak position (focusing position) can be confirmed, and the hill-climbing driving operation mode is terminated and the mode is shifted to the minute driving operation mode. On the other hand, since there is no peak in the movement of B and it decreases monotonously, it can be determined that the drive direction of the focus lens 105 is incorrect. In this case, the driving direction is reversed and the hill-climbing driving operation mode is continued.

そして、図2におけるStep209のTV−AF処理は、微小駆動動作モードにより合焦方向を判定し、山登り駆動動作モードへ移行し、山登り駆動動作モードにより合焦位置を探索し、再度微小駆動動作モードへ移行し、合焦確認を行うことを繰り返して実行する。ここで、この微小駆動動作モードで合焦方向を判定し、山登りへ移行する際に、駆動(振動)中心を移動させる方向が連続して同方向に移動しているかどうかで判定する。つまり、駆動中心を移動させる方向が連続している場合に、カウントアップしていき、所定のカウント値を超えた場合に山登り駆動動作モードへ移行する。これが、図2におけるStep208で用いられた山登り移行カウンタであり、この山登り移行カウンタをクリアすることにより、山登り駆動動作モードへ移行することを禁止することが可能となる。また、所定のカウント値は、簡易な合焦度に応じて変更することができ、大ボケの場合は、3カウント、小ボケの場合は、5カウントとなり、合焦位置に近くなるにつれて、所定のカウント値は多くなる。ここで、本実施例では、山登り移行カウンタをクリアすることで山登り駆動動作モードへの移行を禁止したが、前述の所定のカウント値を増やすことで山登り駆動動作モードへの移行を制限してもよい。例えば、大ボケの場合は、5カウント、小ボケの場合は、10カウントとする。 Then, the TV-AF process in Step 209 in FIG. 2 determines the in-focus direction by the minute driving operation mode, shifts to the hill-climbing driving operation mode, searches for the in-focus position by the hill-climbing driving operation mode, and again performs the minute driving operation mode. The process is shifted to and the focus confirmation is repeatedly executed. Here, the in-focus direction is determined in this minute driving operation mode, and it is determined whether or not the direction of moving the driving (vibration) center is continuously moving in the same direction when shifting to mountain climbing. That is, when the direction in which the drive center is moved is continuous, the count is incremented, and when the predetermined count value is exceeded, the hill-climbing drive operation mode is entered. This is the hill-climbing transition counter used in Step 208 in FIG. 2. By clearing this hill-climbing transition counter, it is possible to prohibit transition to the hill-climbing drive operation mode. In addition, the predetermined count value can be changed according to a simple degree of focus, and is 3 counts for large blur and 5 counts for small blur. The count value of increases. Here, in this embodiment, the transition to the hill-climbing driving operation mode is prohibited by clearing the hill-climbing transition counter, but even if the transition to the hill-climbing driving operation mode is restricted by increasing the predetermined count value described above, Good. For example, 5 counts for large blur and 10 counts for small blur.

ここで、顔枠および通常枠の設定例について、図7を用いて説明する。図7(a)は、撮像画面内に顔枠Aと通常枠Bとを設定した例を示す。通常枠Bが撮像画面の中央を中心として設定されると共に、顔認識がなされた位置に対して顔枠Aが設定される。本実施例では、顔枠AのAF評価値と通常枠BのAF評価値を加算してTV−AF制御を行う。これにより、顔枠Aが低コントラストとなった場合にも、通常枠BのAF評価値で、安定した顔AF制御を実現することができる。但し、山登り制限フラグがセットされていない場合には、顔枠Aのみで顔AF制御を行ってもよい。図7(b)は、Step203で設定される通常枠のみでTV−AF制御を行う場合の例である。ここで、撮像画面内に通常枠のみを設定する場合、図7(a)に例示される状態から単純に顔枠Aを削除して、通常枠BのみでAF評価値を検出しTV−AF制御を行うことができる。ただし、これに限らず、撮影者が撮像画面の中央に被写体を配置する場合が多いことを考慮し、通常枠Bよりも小さい通常枠Cを、画面中央を中心としてさらに設定するようにしてもよい。この場合、通常枠Bおよび通常枠Cそれぞれから取得されたAF評価値を加算してTV−AF制御を行う。 Here, a setting example of the face frame and the normal frame will be described with reference to FIG. FIG. 7A shows an example in which a face frame A and a normal frame B are set in the imaging screen. The normal frame B is set around the center of the imaging screen, and the face frame A is set at the position where the face recognition is performed. In the present embodiment, the TV-AF control is performed by adding the AF evaluation value of the face frame A and the AF evaluation value of the normal frame B. As a result, even when the face frame A has a low contrast, stable face AF control can be realized with the AF evaluation value of the normal frame B. However, when the hill climbing restriction flag is not set, the face AF control may be performed using only the face frame A. FIG. 7B shows an example in the case where the TV-AF control is performed only with the normal frame set in Step 203. Here, when only the normal frame is set in the imaging screen, the face frame A is simply deleted from the state illustrated in FIG. 7A, the AF evaluation value is detected only by the normal frame B, and TV-AF is performed. Control can be performed. However, the present invention is not limited to this, and in consideration of the fact that the photographer often places the subject in the center of the imaging screen, a normal frame C smaller than the normal frame B may be further set around the center of the screen. Good. In this case, the TV-AF control is performed by adding the AF evaluation values acquired from the normal frame B and the normal frame C, respectively.

以上に説明した様に、本実施例は、フォーカスレンズを駆動制御して焦点調節を行う上で、微小駆動動作モードを含む第1の焦点調節動作モードと、被写体の距離変化に対応させた追従駆動動作を行う山登り駆動動作モードを含む第2の焦点調節動作モードを有する。そして、制御手段中の被写体移動判定手段により被写体の所定の移動があると判定された場合には、第2の焦点調節動作モードを制限する。また、本実施例は、被写体移動判定手段は、検出手段から出力された被写体の位置の履歴を保持する被写体位置記憶手段(揮発性のメモリ等)を有し、現在の被写体位置と前の被写体位置との差が所定の位置差以上ある場合に、被写体の前記移動があると判定する。さらに、本実施例では、被写体移動判定手段における前記所定の位置差は、検出手段から出力された被写体の大きさに応じて変更し、被写体の大きさが大きくなる程、前記所定の位置差を大きくする。 As described above, in the present embodiment, when the focus lens is driven and controlled to perform focus adjustment, the first focus adjustment operation mode including the minute drive operation mode and the tracking corresponding to the change in the distance of the subject. A second focus adjustment operation mode including a hill-climbing drive operation mode for performing the drive operation; When the subject movement determining means in the control means determines that there is a predetermined movement of the subject, the second focus adjustment operation mode is limited. Further, in this embodiment, the subject movement determination unit has a subject position storage unit (a volatile memory or the like) that holds a history of the position of the subject output from the detection unit, and the current subject position and the previous subject When the difference from the position is greater than or equal to a predetermined position difference, it is determined that the subject has moved. Further, in this embodiment, the predetermined position difference in the subject movement determination unit is changed according to the size of the subject output from the detection unit, and the predetermined position difference is increased as the subject size increases. Enlarge.

<第2の実施例>
第2の実施例におけるマイクロコンピュータ114が実行する顔AF制御処理について説明する。顔AF制御処理については、第1の実施例における処理(図2)と同様である。図6は、図1におけるマイクロコンピュータ114が実行する被写体の移動監視処理を示すフローチャートである。本処理は、第1の実施例における顔AF制御処理と基本的に同じであるので、図3と共通する動作については下2桁を図3と同数字にして説明に代え、異なる動作についてのみ説明する。
<Second embodiment>
A face AF control process executed by the microcomputer 114 in the second embodiment will be described. The face AF control process is the same as the process in the first embodiment (FIG. 2). FIG. 6 is a flowchart showing subject movement monitoring processing executed by the microcomputer 114 in FIG. Since this process is basically the same as the face AF control process in the first embodiment, the operations common to those in FIG. 3 are replaced with the same numerals as those in FIG. explain.

まず、顔サイズから移動量のしきい値を算出し(Step601)、続いて顔位置の移動量を算出する(Step602)。顔位置の移動量が移動量のしきい値を超えている場合は(Step603でYes)、Step610へ移行する。顔位置の移動量が移動量のしきい値以下の場合は(Step603でNo)、後述する連続移動カウントをクリアする(Step614)。そして、被写体移動フラグをクリアし(Step604)、処理を終了する。次に、Step610では、連続移動カウントと比較するしきい値を設定する。そして、連続移動カウントがしきい値よりも大きい場合には(Step611でYes)、Step613へ移行する。連続移動カウントがしきい値以下の場合には(Step611でNo)、連続移動カウントをカウントアップし(Step612)、そして被写体移動フラグをクリアし(Step604)、処理を終了する。 First, the movement amount threshold value is calculated from the face size (Step 601), and then the movement amount of the face position is calculated (Step 602). When the movement amount of the face position exceeds the movement amount threshold value (Yes in Step 603), the process proceeds to Step 610. When the movement amount of the face position is equal to or smaller than the movement amount threshold value (No in Step 603), the continuous movement count described later is cleared (Step 614). Then, the subject movement flag is cleared (Step 604), and the process ends. Next, in Step 610, a threshold value to be compared with the continuous movement count is set. If the continuous movement count is greater than the threshold (Yes in Step 611), the process proceeds to Step 613. If the continuous movement count is equal to or smaller than the threshold value (No in Step 611), the continuous movement count is incremented (Step 612), the subject movement flag is cleared (Step 604), and the process is terminated.

ここは、本発明の第2の実施例における特徴となる部分であり、判定の精度を向上させ、安定して移動しているかを判断するために、連続して移動と判定されているかどうかを判別し被写体の移動があるか否かを判定する。つまり、山登り駆動動作モードへの移行を制限するか否かを判別する。そこで、連続移動カウントを用いて、連続的に移動が検出されているかどうかを判定する。また、連続移動カウンタと比較するしきい値は、経験に基づいて、例えば2カウントを設定すれば良いと考えるが、この限りではない。また、移動量だけでなく、移動方向も含めて連続性をカウントしても良い。 This is a characteristic part of the second embodiment of the present invention. In order to improve the accuracy of the determination and determine whether it is moving stably, it is determined whether it is determined that the movement is continuously performed. It is determined and it is determined whether or not there is a movement of the subject. That is, it is determined whether or not to limit the transition to the hill-climbing drive operation mode. Therefore, it is determined whether continuous movement is detected using the continuous movement count. In addition, the threshold value to be compared with the continuous movement counter may be set to 2 counts based on experience, but is not limited thereto. Further, not only the movement amount but also the continuity including the movement direction may be counted.

次に、Step613では、顔位置が画面の所定領域外か否かを判定する。顔位置が画面の所定領域外である場合には(Step613でYes)、被写体移動フラグをセットする(Step605)。顔位置が画面の所定領域内である場合には(Step613でNo)、被写体移動フラグをクリアする(Step604)。この判定処理は、本発明の第2の実施例における特徴となる部分であり、撮影画面の顔位置に応じて、被写体移動フラグをセットするか否か、つまり、山登り駆動動作モードを制限するか否かを判定する。これは、人物が撮影画面の中心から端へ移動した際には、画面から外れる可能性が高いが、逆に撮影画面の端から中央へ移動してきた場合には、主被写体の人物である可能性がある。そのために、現在の顔位置が画面の所定領域外か否かを判定し、人物が移動してきた結果、撮影画面の中央に位置したのか、撮影画面の端へ位置したのかを判別する。そして、画面から外れる可能性が高いと判定するところの画面の所定領域外の場合には、被写体移動フラグをセットし、山登り駆動動作モードへの移行を禁止し、不用意なふわつきが発生するのを軽減する。ここで、画面の所定領域とは、画面の中心位置を含む領域であり、例えば、Step205で設定される人物に追従しない固定の通常枠の領域とすればよい(図7の通常枠B)。または、例えば、画面の中心位置を中心に撮影画面の50%から60%と設定すれば良い。 Next, in Step 613, it is determined whether or not the face position is outside a predetermined area of the screen. If the face position is outside the predetermined area of the screen (Yes in Step 613), the subject movement flag is set (Step 605). If the face position is within a predetermined area of the screen (No in Step 613), the subject movement flag is cleared (Step 604). This determination process is a characteristic part of the second embodiment of the present invention. Whether or not to set the subject movement flag according to the face position on the shooting screen, that is, whether to limit the hill-climbing drive operation mode. Determine whether or not. This is likely to be off the screen when the person moves from the center of the shooting screen to the end, but conversely, if the person moves from the end of the shooting screen to the center, the person may be the main subject. There is sex. For this purpose, it is determined whether or not the current face position is outside a predetermined area of the screen, and it is determined whether the person has moved, as a result of being moved, positioned at the center of the shooting screen or at the end of the shooting screen. And if it is outside the predetermined area of the screen that is determined to be likely to be off the screen, the subject movement flag is set and the transition to the hill-climbing drive operation mode is prohibited, and inadvertent flickering occurs To alleviate Here, the predetermined area of the screen is an area including the center position of the screen, and may be, for example, a fixed normal frame area that does not follow the person set in Step 205 (normal frame B in FIG. 7). Alternatively, for example, the center position of the screen may be set to 50% to 60% of the shooting screen.

上述した様に、本実施例では、制御手段中の被写体移動判定手段は、現在の被写体位置と前の被写体位置との差が所定の位置差以上あり且つ撮像画面の中心位置を中心とした所定の領域の範囲外に現在の被写体位置が存在する場合に、被写体の前記移動があると判定する。 As described above, in this embodiment, the subject movement determination unit in the control unit is a predetermined unit centered on the center position of the imaging screen and the difference between the current subject position and the previous subject position is greater than or equal to a predetermined position difference. If the current subject position is outside the range of the region, it is determined that the subject has moved.

以上説明したように、本発明の実施例では、顔AF制御において、左右及び上下方向の少なくとも一方の方向への人物の移動が大きいと判定された場合、さらには、現在の顔位置の撮影画面上の位置に応じて、山登り駆動動作モードへの移行を禁止する。このことで、安定した顔AF制御を実現し、ふわつきによる撮影者の不快感を軽減することができる。 As described above, in the embodiment of the present invention, in the face AF control, when it is determined that the movement of the person in at least one of the left and right and up and down directions is large, the shooting screen of the current face position is further displayed. According to the upper position, the transition to the hill-climbing drive operation mode is prohibited. Thus, stable face AF control can be realized, and the photographer's discomfort caused by fluff can be reduced.

上記実施例の機能を実現するソフトウェアのプログラムを、記録媒体から直接或いは有線/無線通信を用いて、プログラムを実行可能なコンピュータを有するシステム又は装置に供給し、そのプログラムを実行する場合も本発明に含まれる。従って、本発明の機能処理をコンピュータで実現するために、該コンピュータに供給、インストールされるプログラムコード自体も本発明を実現するものである。つまり、本発明の機能処理を実現するためのコンピュータプログラム自体も本発明に含まれる。その場合、プログラムの機能を有していれば、オブジェクトコード、インタプリタにより実行されるプログラム、OSに供給するスクリプトデータ等、プログラムの形態を問わない。プログラムを供給するための記録媒体としては、例えば、ハードディスク、磁気テープ等の磁気記録媒体、光/光磁気記憶媒体、不揮発性の半導体メモリでもよい。また、プログラムの供給方法としては、コンピュータネットワーク上のサーバに本発明を構成するコンピュータプログラムを記憶し、接続のあったクライアントコンピュータがコンピュータプログラムをダウンロードしてプログラムするような方法も考えられる。 The present invention also includes a case where a software program that realizes the functions of the above-described embodiments is supplied from a recording medium directly or using wired / wireless communication to a system or apparatus having a computer that can execute the program, and the program is executed. include. Accordingly, the program code itself supplied and installed in the computer in order to implement the functional processing of the present invention by the computer also realizes the present invention. That is, the computer program itself for realizing the functional processing of the present invention is also included in the present invention. In this case, the program may be in any form as long as it has a program function, such as an object code, a program executed by an interpreter, or script data supplied to the OS. As a recording medium for supplying the program, for example, a magnetic recording medium such as a hard disk or a magnetic tape, an optical / magneto-optical storage medium, or a nonvolatile semiconductor memory may be used. As a program supply method, a method in which a computer program constituting the present invention is stored in a server on a computer network, and a connected client computer downloads and programs the computer program is also conceivable.

以上、本発明をその好適な実施例に基づいて詳述してきたが、本発明はこれら特定の実施例に限られるものではなく、この発明の要旨を逸脱しない範囲の様々な形態も本発明に含まれる。上述の実施例の一部を適宜組み合わせてもよい。 The present invention has been described in detail based on the preferred embodiments thereof, but the present invention is not limited to these specific embodiments, and various forms within the scope of the present invention are also included in the present invention. included. A part of the above-described embodiments may be appropriately combined.

105‥‥フォーカスレンズ、106‥‥CCD(撮像素子)、113‥‥AF信号処理回路(生成手段)、114‥‥カメラ/AFマイクロコンピュータ(制御手段、被写体移動判定手段)、116‥‥顔検出部(検出手段) 105 ... Focus lens, 106 ... CCD (imaging device), 113 ... AF signal processing circuit (generation means), 114 ... Camera / AF microcomputer (control means, subject movement determination means), 116 ... Face detection (Detection means)

Claims (6)

フォーカスレンズを含む撮像光学系を通過した被写体からの光を光電変換して電気信号に変換する撮像素子と、
前記撮像素子から出力される電気信号から撮影画面内の所定の被写体を検出する検出手段と、
前記撮像素子から出力される電気信号のうち、前記所定の被写体を含んで設定された焦点検出領域に対応する電気信号からAF評価値を生成する生成手段と、
撮影画面内に設定された焦点検出領域から得られるAF評価値を用いてフォーカスレンズを駆動制御して焦点調節を行う制御手段と、
前記検出手段による検出結果から、被写体の左右及び上下方向の少なくとも一方の方向への所定の移動の有無を判定する被写体移動判定手段と、
を有する自動焦点調節装置であって、
前記制御手段は、フォーカスレンズを駆動制御して焦点調節を行う上で、第1の焦点調節動作モードと、該第1の焦点調節動作モードとはフォーカスレンズの駆動制御態様が異なり被写体の距離変化に対応させた追従駆動動作を行う第2の焦点調節動作モードとを有しており、前記被写体移動判定手段により被写体の前記移動が無いと判定された場合には前記第2の焦点調節動作モードをフォーカスレンズの駆動制御として実行し、前記被写体移動判定手段により被写体の前記移動があると判定された場合には前記第2の焦点調節動作モードを制限することを特徴とする自動焦点調節装置。
An image sensor that photoelectrically converts light from a subject that has passed through an imaging optical system including a focus lens into an electrical signal;
Detecting means for detecting a predetermined subject in a photographing screen from an electrical signal output from the image sensor;
Generating means for generating an AF evaluation value from an electric signal corresponding to a focus detection area set including the predetermined subject among the electric signals output from the image sensor;
A control means for performing focus adjustment by driving and controlling the focus lens using an AF evaluation value obtained from a focus detection area set in the photographing screen;
Subject movement determination means for determining the presence or absence of a predetermined movement in at least one of the left and right and up and down directions of the subject from the detection result by the detection means;
An autofocus device having
When the focus control is performed by driving the focus lens, the control means differs in the focus lens drive control mode between the first focus adjustment operation mode and the first focus adjustment operation mode. And a second focus adjustment operation mode for performing a follow-up drive operation corresponding to the second focus adjustment operation mode when the subject movement determination means determines that there is no movement of the subject. Is executed as focus lens drive control, and the second focus adjustment operation mode is limited when the subject movement determination means determines that the subject is moving.
前記第1の焦点調節動作モードは、前記フォーカスレンズを所定駆動量ずつ往復駆動させて焦点調節を実行する微小駆動動作を含むモードであり、前記第2の焦点調節動作モードは、前記第1の焦点調節動作モードに加えて、前記フォーカスレンズを所定方向に連続して前記第1の焦点調節動作モードよりも高速に駆動させて焦点調節を実行する山登り駆動動作を含むモードであることを特徴とする請求項1に記載の自動焦点調節装置。 The first focus adjustment operation mode is a mode including a minute drive operation that performs focus adjustment by reciprocatingly driving the focus lens by a predetermined drive amount, and the second focus adjustment operation mode is the first focus adjustment operation mode. In addition to the focus adjustment operation mode, the focus lens is a mode including a hill-climbing drive operation in which the focus lens is continuously driven in a predetermined direction at a speed higher than that of the first focus adjustment operation mode. The automatic focusing apparatus according to claim 1. 前記被写体移動判定手段は、前記検出手段から出力された被写体の位置の履歴を保持する被写体位置記憶手段を有し、
現在の被写体位置と前の被写体位置との差が所定の位置差以上ある場合に、被写体の前記移動があると判定することを特徴とする請求項1または2に記載の自動焦点調節装置。
The subject movement determination unit includes a subject position storage unit that holds a history of the position of the subject output from the detection unit,
3. The automatic focus adjustment apparatus according to claim 1, wherein when the difference between the current subject position and the previous subject position is equal to or greater than a predetermined position difference, it is determined that the subject has moved. 4.
前記被写体移動判定手段における前記所定の位置差は、前記検出手段から出力された被写体の大きさに応じて変更し、被写体の大きさが大きくなる程、前記所定の位置差を大きくすることを特徴とする請求項3に記載の自動焦点調節装置。 The predetermined position difference in the subject movement determination unit is changed according to the size of the subject output from the detection unit, and the predetermined position difference is increased as the size of the subject increases. The automatic focusing apparatus according to claim 3. 前記被写体移動判定手段は、前記現在の被写体位置と前の被写体位置との差が所定の位置差以上あり且つ前記撮像画面の中心位置を中心とした所定の領域の範囲外に現在の被写体位置が存在する場合に、被写体の前記移動があると判定することを特徴とする請求項3または4に記載の自動焦点調節装置。 The subject movement determination means is configured such that a difference between the current subject position and the previous subject position is equal to or greater than a predetermined position difference, and the current subject position is outside a predetermined area centered on the center position of the imaging screen. 5. The automatic focus adjustment apparatus according to claim 3, wherein when it exists, it is determined that there is the movement of the subject. フォーカスレンズを含む撮像光学系を通過した被写体からの光を光電変換して電気信号に変換する撮像ステップと、
前記撮像ステップにおいて出力される電気信号から撮影画面内の所定の被写体を検出する検出ステップと、
前記撮像ステップにおいて出力される電気信号のうち、前記所定の被写体を含んで設定された焦点検出領域に対応する電気信号からAF評価値を生成する生成ステップと、
撮影画面内に設定された焦点検出領域から得られるAF評価値を用いてフォーカスレンズを駆動制御して焦点調節を行う制御ステップと、
前記検出ステップの検出結果から、被写体の左右及び上下方向の少なくとも一方の方向への所定の移動の有無を判定する被写体移動判定ステップと、
を有する自動焦点調節方法であって、
前記制御ステップにおいて、フォーカスレンズを駆動制御して焦点調節を行う上で、第1の焦点調節動作モードと、該第1の焦点調節動作モードとはフォーカスレンズの駆動制御態様が異なり被写体の距離変化に対応させた追従駆動動作を行う第2の焦点調節動作モードとが実行可能であり、前記被写体移動判定ステップにおいて被写体の前記移動が無いと判定された場合には前記第2の焦点調節動作モードをフォーカスレンズの駆動制御として実行し、前記被写体移動判定ステップにおいて被写体の前記移動があると判定された場合には前記第2の焦点調節動作モードを制限することを特徴とする自動焦点調節方法。
An imaging step for photoelectrically converting light from a subject passing through an imaging optical system including a focus lens into an electrical signal;
A detection step of detecting a predetermined subject in the shooting screen from the electrical signal output in the imaging step;
A generation step of generating an AF evaluation value from an electric signal corresponding to a focus detection region set including the predetermined subject among the electric signals output in the imaging step;
A control step of performing focus adjustment by driving and controlling the focus lens using an AF evaluation value obtained from a focus detection area set in the photographing screen;
A subject movement determination step for determining the presence or absence of a predetermined movement in at least one of the left and right and up and down directions of the subject from the detection result of the detection step;
An automatic focus adjustment method comprising:
In the control step, when the focus lens is driven and controlled to perform focus adjustment, the first focus adjustment operation mode differs from the first focus adjustment operation mode in the focus lens drive control mode, and the subject distance change And a second focus adjustment operation mode in which a follow-up driving operation corresponding to the second focus adjustment operation mode can be executed, and when it is determined in the subject movement determination step that the subject has not moved, the second focus adjustment operation mode. Is executed as focus lens drive control, and the second focus adjustment operation mode is limited when it is determined in the subject movement determination step that the subject has moved.
JP2012000424A 2012-01-05 2012-01-05 Focus adjustment device Active JP5894440B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2012000424A JP5894440B2 (en) 2012-01-05 2012-01-05 Focus adjustment device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2012000424A JP5894440B2 (en) 2012-01-05 2012-01-05 Focus adjustment device

Publications (2)

Publication Number Publication Date
JP2013140262A true JP2013140262A (en) 2013-07-18
JP5894440B2 JP5894440B2 (en) 2016-03-30

Family

ID=49037743

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2012000424A Active JP5894440B2 (en) 2012-01-05 2012-01-05 Focus adjustment device

Country Status (1)

Country Link
JP (1) JP5894440B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2020085918A (en) * 2018-11-15 2020-06-04 エスゼット ディージェイアイ テクノロジー カンパニー リミテッドSz Dji Technology Co.,Ltd Determination device, imaging device, imaging system, moving body, determination method and program

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009139688A (en) * 2007-12-07 2009-06-25 Nikon Corp Focus adjustment device and camera
JP2010152162A (en) * 2008-12-25 2010-07-08 Canon Inc Automatic focus detection device and method for controlling the same
JP2010224058A (en) * 2009-03-19 2010-10-07 Olympus Corp Imaging apparatus
JP2011039455A (en) * 2009-08-18 2011-02-24 Canon Inc Automatic focusing device, automatic focusing method, and program
JP2011039433A (en) * 2009-08-18 2011-02-24 Canon Inc Imaging apparatus, and method for controlling the same

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009139688A (en) * 2007-12-07 2009-06-25 Nikon Corp Focus adjustment device and camera
JP2010152162A (en) * 2008-12-25 2010-07-08 Canon Inc Automatic focus detection device and method for controlling the same
JP2010224058A (en) * 2009-03-19 2010-10-07 Olympus Corp Imaging apparatus
JP2011039455A (en) * 2009-08-18 2011-02-24 Canon Inc Automatic focusing device, automatic focusing method, and program
JP2011039433A (en) * 2009-08-18 2011-02-24 Canon Inc Imaging apparatus, and method for controlling the same

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2020085918A (en) * 2018-11-15 2020-06-04 エスゼット ディージェイアイ テクノロジー カンパニー リミテッドSz Dji Technology Co.,Ltd Determination device, imaging device, imaging system, moving body, determination method and program

Also Published As

Publication number Publication date
JP5894440B2 (en) 2016-03-30

Similar Documents

Publication Publication Date Title
JP5368723B2 (en) Imaging apparatus and control method thereof
US8447178B2 (en) Image pickup apparatus and method for controlling image pickup apparatus
JP5294647B2 (en) Focus adjustment apparatus and control method thereof
JP2010139666A (en) Imaging device
US9160916B2 (en) Focus adjustment apparatus with a size detector
JP5335408B2 (en) Focus adjustment apparatus and method
JP5075110B2 (en) Focus adjustment apparatus and method
JP5873336B2 (en) Focus adjustment device
JP6851726B2 (en) Control device, image pickup device, control method, program, and storage medium
JP6053287B2 (en) Automatic focusing apparatus and automatic focusing method
JP2014106411A (en) Automatic focus adjustment device and automatic focus adjustment method
JP6039184B2 (en) Automatic focusing device, imaging device, and automatic focusing method
JP5894440B2 (en) Focus adjustment device
JP2010152162A (en) Automatic focus detection device and method for controlling the same
JP6164978B2 (en) FOCUS ADJUSTMENT DEVICE, ITS CONTROL METHOD, CONTROL PROGRAM, AND IMAGING DEVICE
JP5882745B2 (en) Focus adjustment device
JP5017195B2 (en) Focus adjustment apparatus and method
JP5932340B2 (en) Focus adjustment device
JP5913902B2 (en) Automatic focusing device and automatic focusing method
JP6159055B2 (en) Automatic focusing device, imaging device, and automatic focusing method
JP5451869B2 (en) Focus adjustment apparatus and method
JP6120478B2 (en) Automatic focusing device and automatic focusing method
JP2014109661A (en) Automatic focus adjustment device and automatic focus adjustment method
JP2014016637A (en) Imaging device and control method thereof
JP5247945B2 (en) IMAGING DEVICE, IMAGING DEVICE CONTROL METHOD, PROGRAM, AND STORAGE MEDIUM

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20141225

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20150819

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20150825

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20151019

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20160226

R151 Written notification of patent or utility model registration

Ref document number: 5894440

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

RD03 Notification of appointment of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: R3D03