[go: up one dir, main page]

JP2011107501A - Focusing device and imaging apparatus - Google Patents

Focusing device and imaging apparatus Download PDF

Info

Publication number
JP2011107501A
JP2011107501A JP2009263751A JP2009263751A JP2011107501A JP 2011107501 A JP2011107501 A JP 2011107501A JP 2009263751 A JP2009263751 A JP 2009263751A JP 2009263751 A JP2009263751 A JP 2009263751A JP 2011107501 A JP2011107501 A JP 2011107501A
Authority
JP
Japan
Prior art keywords
focus
area
unit
focus detection
optical system
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2009263751A
Other languages
Japanese (ja)
Inventor
Naoyuki Onishi
直之 大西
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nikon Corp
Original Assignee
Nikon Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nikon Corp filed Critical Nikon Corp
Priority to JP2009263751A priority Critical patent/JP2011107501A/en
Publication of JP2011107501A publication Critical patent/JP2011107501A/en
Pending legal-status Critical Current

Links

Images

Landscapes

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

Abstract

<P>PROBLEM TO BE SOLVED: To provide a focusing device capable of focusing by determining an appropriate tracking position even when a plurality of object positions are recognized. <P>SOLUTION: The focusing device includes: a focus detection part for detecting a focus state of an optical system with respect to a plurality of focus detection positions set in an image plane by the optical system; a recognition part for repeatedly recognizing a position of an image of a specified object out of images by the optical system, as the object position; a selection part for selecting any of the plurality of object positions based on the focus states detected by the focus detection part corresponding to the plurality of object positions when the plurality of object positions are recognized by the recognition part; and a focusing part for performing focusing of the optical system based on the focus state detected by the focus detection part with respect to the focus detection position corresponding to the object position selected by the selection part. <P>COPYRIGHT: (C)2011,JPO&INPIT

Description

本発明は、焦点調節装置、および、撮像装置に関する。   The present invention relates to a focus adjustment device and an imaging device.

撮像対象を含む画像をテンプレート画像とし、このテンプレート画像に類似した画像の位置を撮像対象の位置として認識することにより、撮像対象を追尾する。そして、この追尾した位置に対する焦点検出結果に基づいて、撮影光学系の焦点調節を行う焦点調節装置が知られている(例えば、特許文献1参照)。   An image including the imaging target is used as a template image, and the imaging target is tracked by recognizing the position of an image similar to the template image as the position of the imaging target. A focus adjustment device that performs focus adjustment of the photographing optical system based on the focus detection result for the tracked position is known (see, for example, Patent Document 1).

特開2009−111742号公報JP 2009-111742 A

しかしながら、特許文献1に示す焦点調節装置にあっては、対象位置が複数認識された場合に、認識された複数の対象位置のうち、いずれを追尾位置とするかを決定することができず、適切な焦点調節ができないという問題がある。   However, in the focus adjustment device shown in Patent Literature 1, when a plurality of target positions are recognized, it is not possible to determine which of the plurality of recognized target positions is the tracking position, There is a problem that proper focus adjustment cannot be performed.

本発明は、このような事情に鑑みてなされたもので、対象位置が複数認識された場合であっても、適切な追尾位置を決定して焦点調節することができる焦点調節装置、および、撮像装置を提供することにある。   The present invention has been made in view of such circumstances, and a focus adjustment device capable of determining an appropriate tracking position and performing focus adjustment even when a plurality of target positions are recognized, and imaging To provide an apparatus.

この発明は、光学系による像面内に設定された複数の焦点検出位置に対して前記光学系の焦点状態を検出する焦点検出部と、前記光学系による像のうち、特定の対象の像の位置を対象位置として繰り返し認識する認識部と、前記認識部により複数の前記対象位置が認識された場合に、該複数の対象位置に対応して前記焦点検出部によって検出される焦点状態に基づいて、前記複数の対象位置のいずれかを選択する選択部と、前記選択部によって選択された前記対象位置に対応する焦点検出位置に対して前記焦点検出部によって検出される焦点状態に基づいて、前記光学系の焦点調節を行う焦点調節部とを備えることを特徴とする焦点調節装置である。   The present invention includes a focus detection unit that detects a focus state of the optical system with respect to a plurality of focus detection positions set in an image plane of the optical system, and a specific target image among the images of the optical system. A recognition unit that repeatedly recognizes a position as a target position, and when a plurality of the target positions are recognized by the recognition unit, based on a focus state detected by the focus detection unit corresponding to the plurality of target positions A selection unit that selects one of the plurality of target positions; and a focus state detected by the focus detection unit with respect to a focus detection position corresponding to the target position selected by the selection unit, And a focus adjusting unit that performs focus adjustment of the optical system.

この発明は、上記に記載の焦点調節装置と、前記光学系による像を撮像する撮像部と、を備えることを特徴とする撮像装置である。   The present invention is an imaging apparatus comprising: the focus adjustment apparatus described above; and an imaging unit that captures an image by the optical system.

この発明によれば、対象位置が複数認識された場合であっても、適切な追尾位置を決定して焦点調節することができる。   According to the present invention, even when a plurality of target positions are recognized, it is possible to determine an appropriate tracking position and perform focus adjustment.

この発明の一実施形態による焦点検出装置を備えたデジタル一眼レフカメラの構成を示すブロック図である。It is a block diagram which shows the structure of the digital single-lens reflex camera provided with the focus detection apparatus by one Embodiment of this invention. 焦点検出装置が備える複数の測距領域を示す説明図である。It is explanatory drawing which shows the some ranging area with which a focus detection apparatus is provided. 図2の焦点検出装置において、複数の追尾領域が検出された場合を説明する説明図である。FIG. 3 is an explanatory diagram for explaining a case where a plurality of tracking regions are detected in the focus detection apparatus of FIG. 2. 本実施形態のカメラによる焦点調節の動作を示すフローチャートである。It is a flowchart which shows the operation | movement of the focus adjustment by the camera of this embodiment. 図4のフローチャートにおけるステップS103の処理を示すフローチャートである。It is a flowchart which shows the process of step S103 in the flowchart of FIG. 図4のフローチャートにおけるステップS104の処理を示すフローチャートである。It is a flowchart which shows the process of step S104 in the flowchart of FIG. 図4のフローチャートにおけるステップS109の処理を示すフローチャートである。It is a flowchart which shows the process of step S109 in the flowchart of FIG. 採用エリアを決める処理の変形例1を説明する説明図である。It is explanatory drawing explaining the modification 1 of the process which determines an employment area. 採用エリアを決める処理の変形例2を説明する説明図である。It is explanatory drawing explaining the modification 2 of the process which determines an employment area. 採用エリアを決める処理の変形例3を説明する説明図である。It is explanatory drawing explaining the modification 3 of the process which determines an employment area.

以下、図面を参照して、本発明の実施の形態について説明する。図1は、一実施の形態による焦点調節装置を備えたデジタル一眼レフカメラ(以下、カメラという)の構成を示す図である。なお、本発明の焦点調節装置および撮像装置に関わる機器および装置以外のカメラの一般的な機器および装置については図示と説明を省略する。   Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a diagram illustrating a configuration of a digital single-lens reflex camera (hereinafter referred to as a camera) including a focus adjustment device according to an embodiment. It should be noted that illustrations and descriptions of general devices and apparatuses of cameras other than the devices and apparatuses related to the focus adjustment apparatus and the imaging apparatus of the present invention are omitted.

一実施の形態のカメラはカメラボディ100にレンズ鏡筒200が装着され、レンズ鏡筒200は各種の撮影レンズに交換可能である。なお、この一実施の形態ではレンズ交換式カメラを例に上げて説明するが、本発明はレンズ交換式カメラに限定されず、レンズ固定式カメラに対しても適用できる。   In a camera according to an embodiment, a lens barrel 200 is attached to a camera body 100, and the lens barrel 200 can be replaced with various types of photographing lenses. In this embodiment, an interchangeable lens camera will be described as an example. However, the present invention is not limited to the interchangeable lens camera, and can be applied to a fixed lens camera.

レンズ鏡筒200は、ズーミングレンズおよびフォーカスレンズなどの複数のレンズから構成される撮影光学系(光学系)1と、レンズ駆動用モータ14と、を備えている。撮影光学系1のうち、焦点を調整するフォーカスレンズは、レンズ駆動用モータ14により光軸方向に駆動される。これにより、撮影光学系1の焦点が調節される。   The lens barrel 200 includes a photographing optical system (optical system) 1 including a plurality of lenses such as a zooming lens and a focus lens, and a lens driving motor 14. In the photographic optical system 1, the focus lens for adjusting the focus is driven in the optical axis direction by the lens driving motor 14. Thereby, the focus of the photographing optical system 1 is adjusted.

カメラボディ100は、メインミラー2、焦点板3、ペンタプリズム4、接眼レンズ5、撮像部6、サブミラー7、位相差検出方式の焦点検出装置8(以下、焦点検出装置8とする)、測光用レンズ15、測光センサー16、操作部材18、焦点調節装置300、および、制御部400、を備えている。   The camera body 100 includes a main mirror 2, a focusing plate 3, a pentaprism 4, an eyepiece 5, an imaging unit 6, a sub mirror 7, a phase difference detection type focus detection device 8 (hereinafter referred to as a focus detection device 8), and photometry. The lens 15, the photometric sensor 16, the operation member 18, the focus adjustment device 300, and the control unit 400 are provided.

撮像部6はCCDやCMOSなどから構成され、撮影光学系1により結像した被写体像を電気信号に変換して出力する。この撮像部6から出力される電気信号を記録することにより、被写体像が撮像される。   The imaging unit 6 is composed of a CCD, a CMOS, or the like, and converts the subject image formed by the photographing optical system 1 into an electrical signal and outputs it. By recording the electrical signal output from the imaging unit 6, a subject image is captured.

焦点検出装置8は、図2に示すように撮像画面上に対応付けて複数の焦点検出位置(複数の測距領域)を備えており、複数の焦点検出位置ごとに検出される焦点検出信号を焦点調節装置300に出力する。   As shown in FIG. 2, the focus detection device 8 includes a plurality of focus detection positions (a plurality of distance measurement areas) in association with each other on the imaging screen, and a focus detection signal detected for each of the plurality of focus detection positions. Output to the focus adjustment apparatus 300.

焦点調節装置300は、焦点検出装置8から入力された焦点検出信号に基づいて、撮影光学系1の焦点調節状態を示すデフォーカス量を求め、求めたデフォーカス量に基づいて、レンズ駆動用モータ14を介して撮影光学系1の焦点を調節する。   The focus adjustment device 300 obtains a defocus amount indicating the focus adjustment state of the photographing optical system 1 based on the focus detection signal input from the focus detection device 8, and based on the obtained defocus amount, a lens driving motor. The focus of the photographing optical system 1 is adjusted via 14.

撮影時以外は、メインミラー2とサブミラー7が図1に示すように撮影光路中に置かれる。このとき、撮影光学系1を透過した被写体からの光の一部は、メインミラー2に反射されて焦点板3へ導かれ、焦点板3上に被写体像を結像する。   Except for shooting, the main mirror 2 and the sub mirror 7 are placed in the shooting optical path as shown in FIG. At this time, a part of the light from the subject that has passed through the photographing optical system 1 is reflected by the main mirror 2 and guided to the focusing screen 3, and an object image is formed on the focusing screen 3.

焦点板3上の被写体像は、ペンタプリズム4と接眼レンズ5を介して撮影者に観測可能となるとともに、その光束は、ペンタプリズム4と測光用レンズ15を介して測光用センサー16へ導かれる。   The subject image on the focusing screen 3 can be observed by the photographer via the pentaprism 4 and the eyepiece lens 5, and the luminous flux is guided to the photometric sensor 16 via the pentaprism 4 and the photometric lens 15. .

測光センサー16は、被写体像に対応した撮影画面を複数の領域に分割して各領域ごとの輝度に応じた測光信号を、焦点調節装置300に出力する。   The photometric sensor 16 divides the shooting screen corresponding to the subject image into a plurality of areas, and outputs a photometric signal corresponding to the luminance of each area to the focus adjustment apparatus 300.

撮影時は、メインミラー2とサブミラー7が撮影光路から退避(ミラーアップ)され、撮影光学系1を透過した被写体からの光束が撮像部6へ導かれ、撮像部6の撮像面に結像された被写体像が撮像される。   At the time of shooting, the main mirror 2 and the sub mirror 7 are retracted (mirror-up) from the shooting optical path, and the light flux from the subject that has passed through the shooting optical system 1 is guided to the imaging unit 6 and formed on the imaging surface of the imaging unit 6. A subject image is captured.

制御部400は、カメラボディ100が備えるメインミラー2、撮像部6、サブミラー7、焦点検出装置8、測光センサー16、および、焦点調節装置300を制御する。   The control unit 400 controls the main mirror 2, the imaging unit 6, the sub mirror 7, the focus detection device 8, the photometric sensor 16, and the focus adjustment device 300 included in the camera body 100.

操作部18は、ユーザにより操作されることにより、ユーザの操作に応じた信号を、制御部400に出力する。この操作部18は、たとえば、撮影光学系1の焦点調節を行う動作を起動するスイッチであるレリーズ半押しスイッチSW1(以降、スイッチSW1とする)を備えている。   When operated by the user, the operation unit 18 outputs a signal corresponding to the user operation to the control unit 400. The operation unit 18 includes, for example, a release half-press switch SW1 (hereinafter referred to as a switch SW1) that is a switch that activates an operation for adjusting the focus of the photographing optical system 1.

<焦点調節装置300の構成>
次に、焦点調節装置300の構成について説明する。この焦点調節装置300は、AF−CCD制御部9、デフォーカス演算部(焦点検出部)10、フォーカスエリア位置決定部(選択部)11、レンズ駆動量演算部(焦点調節部)12、レンズ駆動制御部13、および、認識部17を備えている。
<Configuration of Focus Adjustment Device 300>
Next, the configuration of the focus adjustment apparatus 300 will be described. The focus adjustment apparatus 300 includes an AF-CCD control unit 9, a defocus calculation unit (focus detection unit) 10, a focus area position determination unit (selection unit) 11, a lens drive amount calculation unit (focus adjustment unit) 12, and a lens drive. A control unit 13 and a recognition unit 17 are provided.

AF−CCD制御部9は、上述した被写体からの光の他の一部に基づいて、焦点検出装置8が備える電荷蓄積型の光電変換素子からなるラインセンサに電荷を蓄積させる制御をするとともに、蓄積された電荷を焦点検出装置8から読み出して、デフォーカス演算部10に出力する。   The AF-CCD control unit 9 performs control for accumulating charges in a line sensor including a charge accumulation type photoelectric conversion element included in the focus detection device 8 based on another part of the light from the subject described above. The accumulated charges are read from the focus detection device 8 and output to the defocus calculation unit 10.

デフォーカス演算部10は、AF−CCD制御部9を介して焦点検出装置8から読み出された出力に基づいて、撮影光学系1による像面内に設定された複数の焦点検出位置に対して撮影光学系1の焦点状態を算出する。   The defocus calculation unit 10 performs a plurality of focus detection positions set in the image plane by the photographing optical system 1 based on the output read from the focus detection device 8 via the AF-CCD control unit 9. The focus state of the photographing optical system 1 is calculated.

認識部17は、測光センサー16から出力された測光信号、すなわち、撮影画面を複数の領域に分割して各領域ごとの輝度に応じた測光信号に基づいて、撮影光学系1による像のうち、特定の対象の像の位置を対象位置として繰り返し認識する。   Based on the photometric signal output from the photometric sensor 16, that is, based on the photometric signal corresponding to the luminance of each region, by dividing the photographing screen into a plurality of regions, the recognizing unit 17, The position of a specific target image is repeatedly recognized as the target position.

この認識部17は、たとえば、特定の対象の像をテンプレート画像として記憶部に記憶しておく。そして、認識部17は撮影光学系1による像のうち、この記憶部から読み出した特定の対象の像、すなわち、テンプレート画像の位置を繰り返し検出することにより、撮影光学系1による像のうち、特定の対象の像の位置を対象位置として繰り返し認識する。   For example, the recognizing unit 17 stores a specific target image as a template image in the storage unit. Then, the recognizing unit 17 repeatedly identifies the specific target image read from the storage unit, that is, the position of the template image, among the images obtained by the photographing optical system 1, thereby identifying the specific image among the images obtained by the photographing optical system 1. The position of the target image is repeatedly recognized as the target position.

なお、たとえば、起動時やフォーカス処理が開始された場合に、撮影光学系1による像のうち、自動被写体認識技術により選択された特定の対象の像、または、操作部18の操作によりユーザに選択された特定の対象の像が、この記憶部にテンプレート画像として記憶されてもよい。ここでいう自動被写体認識技術とは、たとえば、顔認識技術や移動体検出技術である。   Note that, for example, when starting up or when focus processing is started, a specific target image selected by the automatic subject recognition technique among the images obtained by the photographing optical system 1 or the operation unit 18 is selected by the user. The specified image of the specific object may be stored as a template image in this storage unit. Here, the automatic subject recognition technique is, for example, a face recognition technique or a moving body detection technique.

なお、認識部17は、撮影光学系1による像のうち、フォーカスエリア位置決定部11により選択された対象位置に対応する像に基づいて、対象の像を決定してもよい。   Note that the recognition unit 17 may determine the target image based on the image corresponding to the target position selected by the focus area position determination unit 11 among the images obtained by the photographing optical system 1.

フォーカスエリア位置決定部11は、認識部17により複数の対象位置が認識された場合に、該複数の対象位置に対応してデフォーカス演算部10によって算出される焦点状態に基づいて、複数の対象位置のいずれかを選択する。   When the recognition unit 17 recognizes a plurality of target positions, the focus area position determination unit 11 selects a plurality of targets based on the focus state calculated by the defocus calculation unit 10 corresponding to the plurality of target positions. Select one of the positions.

たとえば、図3に示すように、認識部17により認識された複数の対象位置として、追尾領域1と追尾領域2とがあるとする。この場合、フォーカスエリア位置決定部11は、該複数の対象位置に対応してデフォーカス演算部10によって検出される焦点状態に基づいて、複数の対象位置のいずれかを選択する。すなわち、この場合、フォーカスエリア位置決定部11は、追尾領域1と追尾領域2とのうちいずれかを選択する。なお、この図3には、前回の追尾領域(前回選択した追尾領域)が波線で示されている。   For example, as shown in FIG. 3, it is assumed that there are a tracking area 1 and a tracking area 2 as a plurality of target positions recognized by the recognition unit 17. In this case, the focus area position determination unit 11 selects one of the plurality of target positions based on the focus state detected by the defocus calculation unit 10 corresponding to the plurality of target positions. That is, in this case, the focus area position determination unit 11 selects one of the tracking area 1 and the tracking area 2. In FIG. 3, the previous tracking area (the tracking area selected last time) is indicated by a wavy line.

図1の説明にもどる。また、このフォーカスエリア位置決定部11は、認識部17による第1認識動作によって認識された第1の対象位置に基づいて、第1認識動作の後の第2認識動作によって認識された複数の対象位置のいずれかを選択する。   Returning to the description of FIG. In addition, the focus area position determination unit 11 has a plurality of targets recognized by the second recognition operation after the first recognition operation, based on the first target position recognized by the recognition unit 17 by the first recognition operation. Select one of the positions.

この第1認識動作によって認識された第1の対象位置とは、たとえば、図3に示される前回の追尾領域のことである。また、この第2認識動作によって認識された複数の対象位置とは、たとえば、図3に示される追尾領域1と追尾領域2とのことである。   The first target position recognized by the first recognition operation is, for example, the previous tracking area shown in FIG. Moreover, the plurality of target positions recognized by the second recognition operation are, for example, the tracking area 1 and the tracking area 2 shown in FIG.

また、このフォーカスエリア位置決定部11は、第2認識動作によって認識された複数の対象位置のうち、第1の対象位置に対応する焦点検出位置に対して検出される焦点状態との差が所定条件を満たす焦点状態が検出される焦点検出位置に対応する対象位置を選択する。   Further, the focus area position determination unit 11 has a predetermined difference from a focus state detected with respect to a focus detection position corresponding to the first target position among a plurality of target positions recognized by the second recognition operation. A target position corresponding to a focus detection position where a focus state satisfying the condition is detected is selected.

また、このフォーカスエリア位置決定部11は、第2認識動作によって認識された複数の対象位置のうち、第1の対象位置に対応する焦点検出位置の近傍に位置する焦点検出位置に対応する対象位置を選択する。   The focus area position determination unit 11 also includes a target position corresponding to a focus detection position located in the vicinity of the focus detection position corresponding to the first target position among the plurality of target positions recognized by the second recognition operation. Select.

レンズ駆動量演算部12は、フォーカスエリア位置決定部11によって選択された対象位置に対応する焦点検出位置に対してデフォーカス演算部10によって検出される焦点状態(デフォーカス量)に基づいてレンズ駆動量を算出し、当該算出したレンズ駆動量に基づいてレンズ駆動制御部13を介してレンズ駆動用モータ14を制御することにより、撮影光学系1の焦点調節を行う。   The lens drive amount calculation unit 12 drives the lens based on the focus state (defocus amount) detected by the defocus calculation unit 10 with respect to the focus detection position corresponding to the target position selected by the focus area position determination unit 11. The focal point of the photographing optical system 1 is adjusted by calculating the amount and controlling the lens driving motor 14 via the lens driving control unit 13 based on the calculated lens driving amount.

レンズ駆動制御部13は、レンズ駆動量演算部12から出力されるレンズ駆動量に基づいてレンズ駆動用モータ14を制御し、撮影光学系1の焦点調節を行う。   The lens drive controller 13 controls the lens drive motor 14 based on the lens drive amount output from the lens drive amount calculator 12 to adjust the focus of the photographing optical system 1.

<本実施形態のカメラによる焦点調節の動作>
次に、図4のフローチャートを用いて、本実施形態のカメラによる焦点調節の動作について説明する。以降においては、撮影光学系1の焦点調節を行う動作をAF(オートフォーカス)動作と称して説明する。また、焦点調節をAFと称して説明する。また、焦点検出位置をAFエリアまたはエリアと称するとともに、複数の対象位置の中から選択された対象位置を採用エリアと称して説明する。
<Operation of Focus Adjustment by Camera of this Embodiment>
Next, the focus adjustment operation by the camera of the present embodiment will be described using the flowchart of FIG. In the following, the operation for adjusting the focus of the photographic optical system 1 will be referred to as an AF (autofocus) operation. The focus adjustment will be described as AF. The focus detection position will be referred to as an AF area or area, and a target position selected from a plurality of target positions will be referred to as an adoption area.

まず、ステップS101において、制御部400は、スイッチSW1がONされているか否かを判定する。ここで、スイッチSW1の半押しは、AF動作の起動に対応するため、スイッチSW1がOFFからONへ変化したことに応じて、制御部400がAF動作を開始することになる。   First, in step S101, the control unit 400 determines whether or not the switch SW1 is turned on. Here, the half-pressing of the switch SW1 corresponds to the activation of the AF operation, and therefore the control unit 400 starts the AF operation in response to the switch SW1 changing from OFF to ON.

このステップS101で判定した結果が、スイッチSW1がONされていない場合には、制御部400はステップS101からの処理を繰り返す。一方、このステップS101で判定した結果が、スイッチSW1がONされている場合には、制御部400は次のステップS102に処理を進める。   If the result of determination in step S101 is that the switch SW1 is not turned on, the control unit 400 repeats the processing from step S101. On the other hand, if the result determined in step S101 is that the switch SW1 is ON, the control unit 400 proceeds to the next step S102.

次に、ステップS102において、制御部400は、AF動作が初回AF動作であるか否かを判定する。ここで、初回AF動作とは、上述したステップS101でOFFからONに切り替わった直後であって、AFの演算結果が何も出力されていない段階のことである。
このステップS102で判定した結果が初回AF動作である場合には、制御部400は処理をステップS103に進める。一方、このステップS102で判定した結果が初回AF動作でない場合には、制御部400は処理をステップS104に進める。
Next, in step S102, the control unit 400 determines whether or not the AF operation is a first AF operation. Here, the first AF operation is a stage immediately after switching from OFF to ON in step S101 described above, and no AF calculation result is output.
When the result determined in step S102 is the first AF operation, the control unit 400 advances the process to step S103. On the other hand, when the result determined in step S102 is not the first AF operation, the control unit 400 advances the process to step S104.

ステップS103において、AF動作が開始された直後であるため、制御部400の制御に基づいて、認識部17により所定の初回追尾制御を行う。この初回追尾制御については、後に図5を用いて詳細に説明する。   Since it is immediately after the AF operation is started in step S103, the recognition unit 17 performs predetermined initial tracking control based on the control of the control unit 400. This initial tracking control will be described in detail later with reference to FIG.

また、ステップS104において、AF動作が継続中であり、既に追尾制御が行われているため、制御部400の制御に基づいて、認識部17により追尾演算処理を行う。この追尾演算処理については、後に図6を用いて詳細に説明する。   In step S104, since the AF operation is continuing and tracking control is already performed, the recognition unit 17 performs tracking calculation processing based on the control of the control unit 400. This tracking calculation process will be described later in detail with reference to FIG.

上述のステップS103またはステップS104に続いて、次のステップS105において、制御部400の制御に基づいて、AF−CCD制御部9は、焦点検出装置8に対して蓄積制御を行わせる。なお、制御部400は、ステップS101でスイッチSW1がONされていれば、ステップS102〜ステップS104の動作と並行して本処理を実行してもよい。   Subsequent to step S103 or step S104 described above, in the next step S105, the AF-CCD control unit 9 causes the focus detection device 8 to perform accumulation control based on the control of the control unit 400. Note that the control unit 400 may execute this process in parallel with the operations in steps S102 to S104 as long as the switch SW1 is turned on in step S101.

次に、ステップS106において、制御部400の制御に基づいて、AF−CCD制御部9は、ステップS105で蓄積した電荷を焦点検出装置8から読み出し、A/D変換してデフォーカス演算部10に出力する。   Next, in step S <b> 106, based on the control of the control unit 400, the AF-CCD control unit 9 reads out the electric charge accumulated in step S <b> 105 from the focus detection device 8, performs A / D conversion, and sends it to the defocus calculation unit 10. Output.

次に、ステップS107において、制御部400の制御に基づいて、デフォーカス演算部10は、焦点検出装置8から入力された電荷信号に基づいて相関演算により像ズレ量を求め、この求めた像ズレ量に基づいてデフォーカス量を算出する。   Next, in step S107, based on the control of the control unit 400, the defocus calculation unit 10 calculates an image shift amount by correlation calculation based on the charge signal input from the focus detection device 8, and the calculated image shift. A defocus amount is calculated based on the amount.

なお、上述したステップS105からステップS107の処理は、焦点検出装置8が備えるAFエリアのうち、追尾の領域に相当するAFエリア、または、焦点検出装置8が備え持つ全てのAFエリアについて実行されてもよい。   It should be noted that the processing from step S105 to step S107 described above is executed for the AF area corresponding to the tracking area or all the AF areas included in the focus detection device 8 among the AF areas included in the focus detection device 8. Also good.

次に、ステップS108において、制御部400は、所定エリア数のデフォーカス量の演算が終了したか否かを判定する。ここでいう所定数とは、たとえば、焦点検出装置8が備えるAFエリアのうち、追尾の領域に相当するAFエリア数や、焦点検出装置8が備える全てのAFエリア数である。   Next, in step S108, the control unit 400 determines whether or not the calculation of the defocus amount for the predetermined number of areas has been completed. The predetermined number here is, for example, the number of AF areas corresponding to the tracking area among the AF areas provided in the focus detection device 8 or the number of all AF areas provided in the focus detection device 8.

このステップS108の判定結果として所定エリア数のデフォーカス量の演算が終了していない場合には、制御部400は、ステップS105からの処理を繰り返す。一方、ステップS108の判定結果として所定エリア数のデフォーカス量の演算が終了した場合には、制御部400は、次のステップS109に処理を進める。   If the calculation of the defocus amount for the predetermined number of areas is not completed as a result of the determination in step S108, the control unit 400 repeats the processing from step S105. On the other hand, when the calculation of the defocus amount for the predetermined number of areas is completed as the determination result of step S108, the control unit 400 advances the processing to the next step S109.

次に、ステップS109において、制御部400の制御に基づいて、フォーカスエリア位置決定部11はエリア決定処理を実行する。このエリア決定処理については、後に図7を用いて詳細に説明する。   Next, in step S109, based on the control of the control unit 400, the focus area position determination unit 11 executes an area determination process. This area determination process will be described later in detail with reference to FIG.

次に、ステップS110において、制御部400の制御に基づいて、レンズ駆動量演算部12は、ステップS109のエリア決定処理により選択されたエリアに基づいてレンズ駆動量演算を実行する。   Next, in step S110, based on the control of the control unit 400, the lens driving amount calculation unit 12 performs lens driving amount calculation based on the area selected by the area determination process in step S109.

次に、ステップS111において、制御部400の制御に基づいて、レンズ駆動制御部13は、ステップS110のレンズ駆動量演算の結果に応じてレンズ駆動用モータ14を介してフォーカスレンズの位置を変更することにより、撮影光学系1の焦点調節を行う。   Next, in step S111, based on the control of the control unit 400, the lens drive control unit 13 changes the position of the focus lens via the lens drive motor 14 in accordance with the result of the lens drive amount calculation in step S110. Thus, the focus of the photographing optical system 1 is adjusted.

次に、ステップS112において、制御部400は、後述する被写体追尾制御の探索範囲の制限、および、テンプレート画像の再取得の判定処理を実行する。   Next, in step S112, the control unit 400 executes processing for limiting the search range for subject tracking control, which will be described later, and determination processing for reacquisition of the template image.

<ステップS103:初回追尾制御>
次に、図5のフローチャートを用いて、図4のステップS103における初回追尾制御について説明する。
まず、ステップS201において、認識部17は、追尾初期画像中のAFエリアに対応する領域の画像の被写体の色情報を記憶部に記憶する。
<Step S103: Initial tracking control>
Next, the initial tracking control in step S103 of FIG. 4 will be described using the flowchart of FIG.
First, in step S201, the recognizing unit 17 stores the subject color information of the image in the area corresponding to the AF area in the tracking initial image in the storage unit.

次に、ステップS202において、認識部17は、追尾初期画像中のAFエリアの周辺部で、被写体色情報と同様な色情報を示す同色情報を検出する。
次に、ステップS203において、認識部17は、検出した同色情報を初期被写体領域とする。
Next, in step S202, the recognizing unit 17 detects the same color information indicating the same color information as the subject color information in the peripheral portion of the AF area in the tracking initial image.
Next, in step S203, the recognition unit 17 sets the detected same color information as an initial subject area.

次に、ステップS204において、認識部17は、追尾初期画像中の被写体追尾領域を以降の追尾処理に用いるテンプレート画像として記憶部に記憶する。
次に、ステップS205において、認識部17は、被写体追尾領域を所定画素ずつ拡大した領域を探索領域に設定する。
Next, in step S204, the recognition unit 17 stores the subject tracking region in the tracking initial image in the storage unit as a template image used for the subsequent tracking processing.
Next, in step S205, the recognizing unit 17 sets an area obtained by enlarging the subject tracking area by a predetermined pixel as a search area.

<ステップS104:追尾演算処理>
次に、図6のフローチャートを用いて、図4のステップS104における追尾演算処理について説明する。
<Step S104: Tracking Calculation Process>
Next, the tracking calculation process in step S104 of FIG. 4 will be described using the flowchart of FIG.

まず、ステップS301において、認識部17は、追尾画像の探索領域からテンプレート画像と同じサイズの領域を順次切り出し、切り出した画像とテンプレート画像とを対比し、画素ごとに色情報の差分を演算する。   First, in step S301, the recognition unit 17 sequentially cuts out a region having the same size as the template image from the search region of the tracking image, compares the cut-out image with the template image, and calculates a color information difference for each pixel.

次に、ステップS302において、認識部17は、色情報の差が最も小さい領域を探索し、その領域を新しい追尾領域に決定する。ここで、認識部17は、新しい追尾被写体領域の画像情報を用いてテンプレート画像の画像情報を変更してもよい。また、本実施形態では、ここで色情報の差が小さい領域が複数存在する場合(図3参照)、複数の追尾領域を出力する。   Next, in step S302, the recognizing unit 17 searches for an area with the smallest difference in color information, and determines that area as a new tracking area. Here, the recognition unit 17 may change the image information of the template image using the image information of the new tracking subject area. In this embodiment, when there are a plurality of areas where the difference in color information is small (see FIG. 3), a plurality of tracking areas are output.

次に、ステップS303において、認識部17は、新しい追尾領域の周辺に所定画素ずつ拡大した領域を、新しい探索領域として設定する。   Next, in step S303, the recognizing unit 17 sets an area enlarged by predetermined pixels around a new tracking area as a new search area.

<ステップS109:エリア決定処理>
次に、図7のフローチャートを用いて、図4のステップS109におけるエリア決定処理について説明する。
<Step S109: Area determination processing>
Next, the area determination process in step S109 of FIG. 4 will be described using the flowchart of FIG.

まず、ステップS401において、フォーカスエリア位置決定部11は、初回AF動作かどうか判定する。初回AF動作であれば追尾制御も初回動作であり、何も被写体の移動情報が出力されていないため、フォーカスエリア位置決定部11は、AFの情報、または、顔認識などの認識情報を用いてAFを行う。   First, in step S401, the focus area position determination unit 11 determines whether the first AF operation is performed. If it is the first AF operation, the tracking control is also the first operation, and no subject movement information is output. Therefore, the focus area position determination unit 11 uses AF information or recognition information such as face recognition. Perform AF.

このステップS401において、初回AF動作であると判定された場合には、フォーカスエリア位置決定部11は処理をステップS402に進め、初回AF動作でないと判定された場合には処理をステップS405に進める。   In step S401, when it is determined that the first AF operation is performed, the focus area position determination unit 11 advances the process to step S402, and when it is determined that the first AF operation is not performed, the process advances to step S405.

次に、ステップS402において、すなわち、ステップS401において初回AF動作であると判定された場合、フォーカスエリア位置決定部11は現在のAFモードが自動選択モードであるかどうかを判定する。   Next, in step S402, that is, when it is determined in step S401 that the first AF operation is performed, the focus area position determination unit 11 determines whether or not the current AF mode is the automatic selection mode.

このステップS402において、現在のAFモードが自動選択モードであると判定された場合には、フォーカスエリア位置決定部11は処理をステップS403に進め、現在のAFモードが自動選択モードでないと判定された場合には処理をステップS404に進める。   If it is determined in step S402 that the current AF mode is the automatic selection mode, the focus area position determination unit 11 advances the process to step S403, and determines that the current AF mode is not the automatic selection mode. If so, the process proceeds to step S404.

次に、ステップS403において、すなわち、ステップS402において自動選択モードであると判定された場合、フォーカスエリア位置決定部11は、採用エリアをカメラが自動で選択したエリアとする。ここではエリアの決め方の詳細は省略するが、例えば、顔認識機能などを使用して顔だと判別された位置に相当するエリアを採用エリアとする。   Next, in step S403, that is, when it is determined in step S402 that the automatic selection mode is set, the focus area position determination unit 11 sets the adopted area as an area automatically selected by the camera. Although details of how to determine the area are omitted here, for example, an area corresponding to a position determined to be a face using a face recognition function or the like is set as an adopted area.

一方、ステップS404において、すなわち、ステップS402において自動選択モードでない場合、フォーカスエリア位置決定部11は、ユーザが手動でエリアを選択する必要があるのでユーザ選択エリアを採用エリアとする。   On the other hand, in step S404, that is, when the automatic selection mode is not set in step S402, the focus area position determination unit 11 sets the user selection area as the adoption area because the user needs to manually select the area.

一方、上述したステップS401において初回AF動作でないと判定された場合、フォーカスエリア位置決定部11は、次のステップS405において、類似していると判定された被写体追尾の領域が複数存在するか否かを判定する。   On the other hand, when it is determined that the first AF operation is not performed in step S401 described above, the focus area position determination unit 11 determines whether or not there are a plurality of subject tracking areas determined to be similar in the next step S405. Determine.

なお、上述したステップS401からステップS404の処理により、初回AF動作において採用エリアが決定されているため、このステップS405以降の処理が実行される場合、すなわち、初回AF動作でない場合の処理が実行される場合には、既に採用エリアが決定されていることになる。   It should be noted that since the adopted area is determined in the initial AF operation by the processing from step S401 to step S404 described above, the processing after this step S405 is executed, that is, the processing in the case of not being the initial AF operation is executed. In this case, the adoption area has already been determined.

このステップS405において、類似していると判定された被写体追尾の領域が複数存在すると判定された場合には、フォーカスエリア位置決定部11は、処理をステップS406に進める。また、類似していると判定された被写体追尾の領域が複数存在しないと判定された場合には、フォーカスエリア位置決定部11は処理をステップS409に進める。   If it is determined in step S405 that there are a plurality of subject tracking areas determined to be similar, the focus area position determination unit 11 advances the process to step S406. If it is determined that there are not a plurality of subject tracking areas determined to be similar, the focus area position determination unit 11 advances the process to step S409.

次に、ステップS406において、フォーカスエリア位置決定部11は、前回の追尾領域と今回の追尾領域との位置関係を比較する。なお、本フローでは、たとえば図3に示すように、今回の追尾領域は2つの場合である。そのため、今回の2つの追尾領域のうち、前回の追尾領域に近い位置にあるものを判定する。図3の例では、追尾領域2が前回の追尾領域に近いということになる。   Next, in step S406, the focus area position determination unit 11 compares the positional relationship between the previous tracking area and the current tracking area. In this flow, for example, as shown in FIG. 3, there are two tracking areas this time. For this reason, the current two tracking areas are determined to be located at a position close to the previous tracking area. In the example of FIG. 3, the tracking area 2 is close to the previous tracking area.

ステップS407において、追尾領域が複数存在する場合、フォーカスエリア位置決定部11は、まず追尾領域2に相当するAFエリアのデフォーカス量に基づいて、前回のフォーカス状態から所定差の閾値を満たし、かつ、目標位置に対するデフォーカス量差が最小となるエリアを探索する。   In step S407, when there are a plurality of tracking areas, the focus area position determination unit 11 first satisfies a predetermined difference threshold from the previous focus state based on the defocus amount of the AF area corresponding to the tracking area 2, and The area where the defocus amount difference with respect to the target position is minimized is searched.

ステップS407に続くステップS408において、フォーカスエリア位置決定部11は、ステップS407の場合と同様に、追尾領域1に相当するAFエリアのデフォーカス量に基づいて、前回のフォーカス状態から所定差の閾値を満たし、かつ、目標位置に対するデフォーカス量差が最小となるエリアを探索する。   In step S408 following step S407, the focus area position determination unit 11 sets a threshold value of a predetermined difference from the previous focus state based on the defocus amount of the AF area corresponding to the tracking area 1, as in step S407. An area that satisfies the condition and has the smallest defocus amount difference with respect to the target position is searched.

なお、ここでは追尾領域1と追尾領域2との2つの場合について説明しているが、複数の追尾領域がある場合には、フォーカスエリア位置決定部11は、このステップS407またはステップS408と同様の処理を複数の追尾領域に対して順に実行してもよい。   Here, two cases of the tracking area 1 and the tracking area 2 are described, but when there are a plurality of tracking areas, the focus area position determination unit 11 is the same as in step S407 or step S408. The process may be executed sequentially for a plurality of tracking areas.

また、複数の追尾領域がある場合、フォーカスエリア位置決定部11は、複数の追尾領域と前回の追尾領域との距離をそれぞれ算出し、複数の追尾領域のうち、当該算出した距離が近い順にこのステップS407またはステップS408と同様の処理を行ってもよい。   Further, when there are a plurality of tracking areas, the focus area position determination unit 11 calculates the distances between the plurality of tracking areas and the previous tracking area, and among the plurality of tracking areas, You may perform the process similar to step S407 or step S408.

また、フォーカスエリア位置決定部11は、複数の追尾領域の全てについて、ステップS407またはステップS408と同様の処理を実行せずに、複数の追尾領域のうち、前回の追尾領域との距離が近い追尾領域に対してのみ、ステップS407またはステップS408と同様の処理を実行するようにしてもよい。このようにすることにより、フォーカスエリア位置決定部11は、複数の追尾領域がある場合であっても全体の処理を軽減できるとともに、適切な追尾ができる。   In addition, the focus area position determination unit 11 does not perform the same processing as step S407 or step S408 for all of the plurality of tracking areas, and the tracking is close to the previous tracking area among the plurality of tracking areas. The process similar to step S407 or step S408 may be executed only for the region. By doing in this way, the focus area position determination unit 11 can reduce the entire processing even when there are a plurality of tracking areas, and can perform appropriate tracking.

一方、ステップS409において、フォーカスエリア位置決定部11は、追尾領域が1つしか存在しない為、追尾領域に相当するAFエリアのデフォーカス量から、前回のフォーカス状態から所定の閾値を満たし、かつ、目標位置に対するデフォーカス量差が最小となるエリアを探索する。   On the other hand, in step S409, since there is only one tracking area, the focus area position determination unit 11 satisfies a predetermined threshold from the previous focus state from the defocus amount of the AF area corresponding to the tracking area, and An area where the defocus amount difference with respect to the target position is minimized is searched.

上述したステップS408またはステップS409に続いて、ステップS410において、フォーカスエリア位置決定部11は、追尾領域1と追尾領域2とのデフォーカス量を比較する。ここでは、フォーカスエリア位置決定部11は、ステップS408とステップS408において、それぞれの領域に対して求めた最小デフォーカス量を比較する。
そして、フォーカスエリア位置決定部11は、比較した結果に基づいて、たとえば次のようにして採用エリアを決定する。
Subsequent to step S408 or step S409 described above, in step S410, the focus area position determination unit 11 compares the defocus amounts of the tracking area 1 and the tracking area 2. Here, the focus area position determination unit 11 compares the minimum defocus amounts obtained for the respective areas in step S408 and step S408.
Then, the focus area position determination unit 11 determines the adoption area based on the comparison result as follows, for example.

(1)2つの領域のどちらも採用判定を満たしたものがない場合、採用エリア未定とする。
(2)2つの領域のどちらかで採用判定を満たした場合、採用判定を満たした領域に属するエリアを採用エリアとする。
(3)2つの領域の両方で採用判定を満たしたエリアがある場合、採用エリアの決め方は色々あってよいが、ここでは、一例としての次の(A)と(B)との2つの例について説明する。
(1) If neither of the two areas satisfies the employment determination, the employment area is determined to be undecided.
(2) When the employment determination is satisfied in one of the two areas, the area belonging to the area satisfying the employment determination is set as the employment area.
(3) When there is an area that satisfies the adoption determination in both of the two areas, there are various ways of determining the adoption area, but here, the following two examples (A) and (B) as examples Will be described.

(A)2つの領域で、より目標位置に対する最小のデフォーカス量差となるエリアを採用する
(B)2つの領域の位置関係(S2の比較)から前回の追尾領域に近い方のエリアを採用する
(A) Adopt the area that is the smallest difference in defocus amount with respect to the target position in the two areas (B) Adopt the area closer to the previous tracking area from the positional relationship of the two areas (comparison of S2) Do

この(A)と(B)との使いわけは、例えば(B)の判定は、被写体追尾の類似性はあるが信頼性はない場合、平面で周期パターンの被写体などの繰り返しパターンを見ている場合は有効である。被写体は実際には動いていないのでエリアは移動させたくないが、あえて(A)を用いて最小のデフォーカス量をとるエリアを採用する必要もないためである。   The reason for using (A) and (B) is that, for example, when the determination of (B) is similar to subject tracking but is not reliable, a repetitive pattern such as a subject having a periodic pattern is seen on a plane. The case is valid. This is because the subject does not actually move and thus the area is not desired to be moved, but it is not necessary to employ an area that takes the minimum defocus amount by using (A).

次に、ステップS411において、フォーカスエリア位置決定部11は、上述したステップS403からステップS405、または、ステップS409の処理から合焦させるための採用エリアが、ステップS410の処理により決定されたかどうかを判定する。   Next, in step S411, the focus area position determination unit 11 determines whether or not the adoption area for focusing from the processing of step S403 to step S405 or step S409 described above is determined by the processing of step S410. To do.

たとえば、ステップS406からステップS408の処理を実行した場合、採用エリアの判定条件を満たすものが1つでもあれば採用エリアが決定される。また、ステップS406からステップS408で、複数の追尾領域の両方ともで採用判定を満たすものがある場合には、その中から前回のフォーカス状態からの差が最小となるエリアを採用エリアとして決定する。また、たとえば、複数のエリアがある場合には、前回採用したエリアと近い方のエリアを採用エリアとして選択する。どちらか一方の領域のみで採用判定を満たしていれば、そのエリアが採用エリアとなる。
このようにして採用エリアが決定されたかどうかを、ステップS411において、フォーカスエリア位置決定部11が、判定する。
For example, when the processing from step S406 to step S408 is executed, the employment area is determined if there is at least one that satisfies the employment area determination condition. Also, if there are those that satisfy the adoption determination in both of the plurality of tracking areas in steps S406 to S408, the area where the difference from the previous focus state is minimized is determined as the adoption area. Further, for example, when there are a plurality of areas, the area closer to the previously adopted area is selected as the adopted area. If the employment determination is satisfied only in one of the areas, that area becomes the employment area.
In step S411, the focus area position determination unit 11 determines whether the adoption area has been determined in this way.

このステップS411で採用エリアが決定した場合、フォーカスエリア位置決定部11は処理をステップS412に進め、ステップS411で採用エリアが決定しなかった場合、フォーカスエリア位置決定部11は処理をステップS413に進める。   When the adopted area is determined in step S411, the focus area position determining unit 11 advances the process to step S412. When the adopted area is not determined in step S411, the focus area position determining unit 11 advances the process to step S413. .

ステップS412において、ステップS411で採用エリアが決定したため、フォーカスエリア位置決定部11は、この決定された採用エリアを合焦エリアとする。   In step S412, since the adopted area is determined in step S411, the focus area position determining unit 11 sets the determined adopted area as the in-focus area.

一方、ステップS413において、ステップS411で採用エリアが決定しなかったため、フォーカスエリア位置決定部11は、採用エリアを前回採用エリアとする。なお、ここで、フォーカスエリア位置決定部11は、採用エリアを必ずしも前回採用エリアとする必要はなく、未定としてもよいし、残りのAFエリアから再度採用エリアを決める処理を行ってもよい。   On the other hand, in step S413, since the adoption area is not determined in step S411, the focus area position determination unit 11 sets the adoption area as the previous adoption area. Here, the focus area position determination unit 11 does not necessarily have to adopt the adoption area as the previous adoption area, and may determine the adoption area from the remaining AF areas.

ステップS412またはステップS413に続いて、次に、ステップS414において、フォーカスエリア位置決定部11は、複数の追尾領域のうち、採用エリアとなったAFエリアに対応している追尾領域の画像を、次回のテンプレート画像とするため、認識部17へ出力する。   Following step S412 or step S413, next, in step S414, the focus area position determination unit 11 next selects an image of the tracking area corresponding to the AF area that is the adopted area among the plurality of tracking areas. Is output to the recognition unit 17.

そして、認識部17は、記憶部に記憶しているテンプレート画像を変更する。なお、上述したように、ステップS413で前回採用エリアとした場合や未定とした場合は、フォーカスエリア位置決定部11は、認識部17に対してテンプレート画像を変更しないようにする。   Then, the recognition unit 17 changes the template image stored in the storage unit. Note that, as described above, when the previous adoption area is set or undecided in step S413, the focus area position determination unit 11 does not change the template image with respect to the recognition unit 17.

<採用エリアを決める処理の変形例>
次に、図8から図10を用いて、図4のステップS107からS109における採用エリアを決める処理の変形例について説明する。
<Modified example of processing for determining employment area>
Next, a modified example of the process for determining the adoption area in steps S107 to S109 in FIG. 4 will be described with reference to FIGS.

(1)違うサイズで出力された場合
大きさが前回から変わった方の領域のデフォーカス量を演算する。
たとえば、図8の場合、追尾領域2を前回から大きさが変わった方の領域とする。追尾領域2でデフォーカス量が採用判定を満たしつつ前ピン側の値を示す場合、被写体が前に動いた可能性が高いので領域1と領域2の両方の判定を大きさが変わらない場合と同じルーチンで行えばよい。
追尾領域2に相当するデフォーカス量が採用判定を満たすが後ピンの場合、追尾領域2は除外して追尾領域1の中で採用判定を満たすエリアを優先して採用する。追尾領域1のエリアが採用判定を満たさなかった場合は追尾領域2の中の採用判定を満たすエリアを採用エリアとする。
(1) When output in a different size The defocus amount of the area whose size has changed from the previous time is calculated.
For example, in the case of FIG. 8, the tracking area 2 is the area whose size has changed from the previous time. When the defocus amount in the tracking area 2 shows the value on the front pin side while satisfying the adoption determination, the subject is likely to have moved forward, so the determination of both the area 1 and the area 2 does not change in size. The same routine can be used.
When the defocus amount corresponding to the tracking area 2 satisfies the adoption determination but is a rear pin, the tracking area 2 is excluded and the area satisfying the adoption determination in the tracking area 1 is preferentially adopted. When the area of the tracking area 1 does not satisfy the employment determination, the area that satisfies the employment determination in the tracking area 2 is set as the employment area.

(2)エリアが粗であった場合
追尾領域内に1つもしくは2つのエリアしか含まれない場合は、採用判定を行うエリアを先に1つに限定する。
たとえば、図9で、追尾領域1内に2つのAFエリアが含まれているのを一例とすると、追尾領域のより中心側にあるエリアを選ぶ。一例としては、追尾領域1では右側にあるエリアの方が追尾領域の中心に近いのでそのエリアに規定する。
(2) When the area is rough When only one or two areas are included in the tracking area, the area where the employment determination is performed is limited to one first.
For example, in FIG. 9, taking two AF areas in the tracking area 1 as an example, an area closer to the center of the tracking area is selected. As an example, since the area on the right side in the tracking area 1 is closer to the center of the tracking area, the area is defined as that area.

(3)追尾領域が大きい場合
追尾領域が大きく、かつ、AFエリアが密で多点ある場合、図10の点線の枠のように領域内にもう1つ小さな領域を設け、その中に含まれるAFエリアの採用判定を行う。
この場合、領域1、2ともに採用判定を満たすエリアはあるが、内側の小さな領域に採用判定を満たすエリアを持つ領域の方が信頼性が高いと考え、追尾領域1のエリアを採用エリアとする。
(3) When the tracking area is large When the tracking area is large and the AF area is dense and multipoint, another small area is provided in the area as shown by the dotted frame in FIG. AF area adoption determination is performed.
In this case, although there are areas that satisfy the adoption determination in both areas 1 and 2, it is considered that the area having the area that satisfies the employment determination in the small inner area is more reliable, and the area of the tracking area 1 is set as the adoption area. .

上記に図8から図10を用いて説明したように、フォーカスエリア位置決定部11は、AFエリアの分布に基づいてAFエリアを採用するようにしてもよい。   As described above with reference to FIGS. 8 to 10, the focus area position determination unit 11 may adopt the AF area based on the distribution of the AF area.

上記に説明した本実施形態による焦点調節装置300によれば、焦点調節装置300が備えるフォーカスエリア位置決定部11は、認識部17により複数の対象位置が認識された場合に、該複数の対象位置に対応してデフォーカス演算部10によって検出される焦点状態に基づいて、複数の対象位置のいずれかを選択する。これにより、本実施形態による焦点調節装置300は、対象位置が複数認識された場合であっても、複数の焦点検出位置の中から焦点検出に用いる焦点検出位置を選択することができる。   According to the focus adjustment apparatus 300 according to the present embodiment described above, the focus area position determination unit 11 included in the focus adjustment apparatus 300 has a plurality of target positions when the recognition unit 17 recognizes the plurality of target positions. In response to this, one of a plurality of target positions is selected based on the focus state detected by the defocus calculation unit 10. Thereby, the focus adjustment apparatus 300 according to the present embodiment can select a focus detection position used for focus detection from a plurality of focus detection positions even when a plurality of target positions are recognized.

なお、上述した制御部400または焦点調節装置300は専用のハードウェアにより実現されるものであってもよく、また、メモリおよびマイクロプロセッサにより実現させるものであってもよい。
なお、この制御部400または焦点調節装置300は専用のハードウェアにより実現されるものであってもよく、また、この制御部400または焦点調節装置300はメモリおよびCPU(中央演算装置)により構成され、制御部400または焦点調節装置300の機能を実現するためのプログラムをメモリにロードして実行することによりその機能を実現させるものであってもよい。
The control unit 400 or the focus adjustment device 300 described above may be realized by dedicated hardware, or may be realized by a memory and a microprocessor.
The control unit 400 or the focus adjustment device 300 may be realized by dedicated hardware. The control unit 400 or the focus adjustment device 300 includes a memory and a CPU (central processing unit). The function may be realized by loading a program for realizing the function of the control unit 400 or the focus adjustment apparatus 300 into a memory and executing the program.

以上、この発明の実施形態を図面を参照して詳述してきたが、具体的な構成はこの実施形態に限られるものではなく、この発明の要旨を逸脱しない範囲の設計等も含まれる。   The embodiment of the present invention has been described in detail with reference to the drawings. However, the specific configuration is not limited to this embodiment, and includes design and the like within a scope not departing from the gist of the present invention.

1…撮影光学系、10…デフォーカス演算部、11…フォーカスエリア位置決定部、12…レンズ駆動量演算部、17…認識部、6…撮像部、300…焦点調節装置   DESCRIPTION OF SYMBOLS 1 ... Imaging optical system, 10 ... Defocus calculating part, 11 ... Focus area position determination part, 12 ... Lens drive amount calculating part, 17 ... Recognition part, 6 ... Imaging part, 300 ... Focus adjustment apparatus

Claims (6)

光学系による像面内に設定された複数の焦点検出位置に対して前記光学系の焦点状態を検出する焦点検出部と、
前記光学系による像のうち、特定の対象の像の位置を対象位置として繰り返し認識する認識部と、
前記認識部により複数の前記対象位置が認識された場合に、該複数の対象位置に対応して前記焦点検出部によって検出される焦点状態に基づいて、前記複数の対象位置のいずれかを選択する選択部と、
前記選択部によって選択された前記対象位置に対応する焦点検出位置に対して前記焦点検出部によって検出される焦点状態に基づいて、前記光学系の焦点調節を行う焦点調節部と
を備えることを特徴とする焦点調節装置。
A focus detection unit that detects a focus state of the optical system with respect to a plurality of focus detection positions set in an image plane by the optical system;
A recognition unit that repeatedly recognizes a position of a specific target image as a target position among images by the optical system;
When a plurality of the target positions are recognized by the recognition unit, one of the plurality of target positions is selected based on a focus state detected by the focus detection unit corresponding to the plurality of target positions. A selection section;
A focus adjustment unit configured to adjust the focus of the optical system based on a focus state detected by the focus detection unit with respect to a focus detection position corresponding to the target position selected by the selection unit. Focus adjustment device.
請求項1に記載の焦点調節装置において、
前記選択部は、前記認識部による第1認識動作によって認識された第1の対象位置に基づいて、前記第1認識動作の後の第2認識動作によって認識された複数の前記対象位置のいずれかを選択することを特徴とする焦点調節装置。
The focus adjustment apparatus according to claim 1,
The selection unit is one of a plurality of the target positions recognized by the second recognition operation after the first recognition operation based on the first target position recognized by the first recognition operation by the recognition unit. A focus adjustment device characterized by selecting.
請求項2に記載の焦点調節装置において、
前記選択部は、
前記第2認識動作によって認識された複数の対象位置のうち、前記第1の対象位置に対応する前記焦点検出位置に対して検出される焦点状態との差が所定条件を満たす焦点状態が検出される前記焦点検出位置に対応する対象位置を選択することを特徴とする焦点調節装置。
The focusing apparatus according to claim 2, wherein
The selection unit includes:
Among a plurality of target positions recognized by the second recognition operation, a focus state in which a difference from a focus state detected with respect to the focus detection position corresponding to the first target position satisfies a predetermined condition is detected. A focus adjustment device that selects a target position corresponding to the focus detection position.
請求項2または請求項3に記載の焦点調節装置において、
前記選択部は、
前記第2認識動作によって認識された複数の対象位置のうち、前記第1の対象位置に対応する前記焦点検出位置の近傍に位置する前記焦点検出位置に対応する対象位置を選択することを特徴とする焦点調節装置。
The focusing apparatus according to claim 2 or 3,
The selection unit includes:
A target position corresponding to the focus detection position located in the vicinity of the focus detection position corresponding to the first target position is selected from a plurality of target positions recognized by the second recognition operation. Focusing device.
請求項1から請求項4のいずれか1項に記載の焦点調節装置において、
前記認識部は、
前記光学系による像のうち、前記選択部により選択された前記対象位置に対応する像に基づいて、前記対象の像を決定する、
ことを特徴とする焦点調節装置。
In the focus adjustment apparatus according to any one of claims 1 to 4,
The recognition unit
Determining an image of the target based on an image corresponding to the target position selected by the selection unit among the images of the optical system;
A focusing device characterized by that.
請求項1から請求項5のいずれか1項に記載の焦点調節装置と、
前記光学系による像を撮像する撮像部と、
を備えることを特徴とする撮像装置。
The focus adjustment apparatus according to any one of claims 1 to 5,
An imaging unit that captures an image by the optical system;
An imaging apparatus comprising:
JP2009263751A 2009-11-19 2009-11-19 Focusing device and imaging apparatus Pending JP2011107501A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009263751A JP2011107501A (en) 2009-11-19 2009-11-19 Focusing device and imaging apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009263751A JP2011107501A (en) 2009-11-19 2009-11-19 Focusing device and imaging apparatus

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2014220512A Division JP5871196B2 (en) 2014-10-29 2014-10-29 Focus adjustment device and imaging device

Publications (1)

Publication Number Publication Date
JP2011107501A true JP2011107501A (en) 2011-06-02

Family

ID=44231021

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009263751A Pending JP2011107501A (en) 2009-11-19 2009-11-19 Focusing device and imaging apparatus

Country Status (1)

Country Link
JP (1) JP2011107501A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012093775A (en) * 2011-12-14 2012-05-17 Nikon Corp Focus detector and imaging apparatus
JP2013162225A (en) * 2012-02-02 2013-08-19 Olympus Imaging Corp Tracker and imaging apparatus, and tracking method to be used for imaging apparatus
JP2013200530A (en) * 2012-03-26 2013-10-03 Canon Inc Imaging apparatus and control method thereof
JP2015052799A (en) * 2014-10-29 2015-03-19 株式会社ニコン Focus adjustment device and imaging apparatus
JP2022502970A (en) * 2018-10-12 2022-01-11 ホアウェイ・テクノロジーズ・カンパニー・リミテッド Focusing methods and devices applicable to terminal devices, as well as terminal devices

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009015117A (en) * 2007-07-06 2009-01-22 Nikon Corp Focusing device and image pickup apparatus
JP2009044382A (en) * 2007-08-08 2009-02-26 Nikon Corp Display of camera
JP2009147607A (en) * 2007-12-13 2009-07-02 Victor Co Of Japan Ltd Person tracking device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009015117A (en) * 2007-07-06 2009-01-22 Nikon Corp Focusing device and image pickup apparatus
JP2009044382A (en) * 2007-08-08 2009-02-26 Nikon Corp Display of camera
JP2009147607A (en) * 2007-12-13 2009-07-02 Victor Co Of Japan Ltd Person tracking device

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012093775A (en) * 2011-12-14 2012-05-17 Nikon Corp Focus detector and imaging apparatus
JP2013162225A (en) * 2012-02-02 2013-08-19 Olympus Imaging Corp Tracker and imaging apparatus, and tracking method to be used for imaging apparatus
JP2013200530A (en) * 2012-03-26 2013-10-03 Canon Inc Imaging apparatus and control method thereof
JP2015052799A (en) * 2014-10-29 2015-03-19 株式会社ニコン Focus adjustment device and imaging apparatus
JP2022502970A (en) * 2018-10-12 2022-01-11 ホアウェイ・テクノロジーズ・カンパニー・リミテッド Focusing methods and devices applicable to terminal devices, as well as terminal devices
JP7347903B2 (en) 2018-10-12 2023-09-20 ホアウェイ・テクノロジーズ・カンパニー・リミテッド Focusing methods and devices applied to terminal devices, and terminal devices

Similar Documents

Publication Publication Date Title
CN102812391B (en) Auto-focus controlling apparatus, electronic imaging apparatus and digital still camera
US8531587B2 (en) Image pickup apparatus that provides focus control based on focusing information obtained from an interchangeable lens
JP2003241070A (en) Camera, object image taking device, automatic focusing system and automatic focusing method
JP6702746B2 (en) Imaging device, control method thereof, program, and storage medium
JP2009017155A (en) Image recognizing device, focus adjusting device and imaging apparatus
JP2007286438A (en) Imaging apparatus and its control method
JP5871196B2 (en) Focus adjustment device and imaging device
JP5879736B2 (en) Image tracking device and imaging device
JP2011107501A (en) Focusing device and imaging apparatus
JP2000180709A (en) Range-finding device
JP2016110001A (en) Imaging apparatus and method of controlling the imaging apparatus
JP2007206451A (en) Imaging apparatus, control method therefor, and computer program
JP6486098B2 (en) Imaging apparatus and control method thereof
JP2013024900A (en) Lens control device of optical apparatus
JP2008271006A (en) Image-tracking device and method therefor, and imaging device
US8355626B2 (en) Lens-interchangeable camera performing focus control, lens barrel, and program
US8325977B2 (en) Image recognition and focus adjustment using weighted image difference information
JP5789937B2 (en) Image tracking device and imaging device
JP5402053B2 (en) Imaging device
JP2010282107A (en) Imaging apparatus and control method therefor
JP5476947B2 (en) TRACKING DEVICE, FOCUS ADJUSTMENT DEVICE, AND IMAGING DEVICE
JP5447579B2 (en) Tracking device, focus adjustment device, and photographing device
JP5347834B2 (en) Image tracking device
US10834307B2 (en) Image pickup apparatus
JP5428559B2 (en) Focus detection apparatus and imaging apparatus

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20121019

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20130717

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20130917

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20140218

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20140421

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20140729