JP2019032443A - Focus adjustment device, imaging device, focus adjustment method, and program - Google Patents
Focus adjustment device, imaging device, focus adjustment method, and program Download PDFInfo
- Publication number
- JP2019032443A JP2019032443A JP2017153555A JP2017153555A JP2019032443A JP 2019032443 A JP2019032443 A JP 2019032443A JP 2017153555 A JP2017153555 A JP 2017153555A JP 2017153555 A JP2017153555 A JP 2017153555A JP 2019032443 A JP2019032443 A JP 2019032443A
- Authority
- JP
- Japan
- Prior art keywords
- distance measurement
- distance
- background plane
- ranging
- speed
- 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
Links
Images
Landscapes
- Focusing (AREA)
- Automatic Focus Adjustment (AREA)
- Studio Devices (AREA)
Abstract
Description
本発明は、焦点調節装置、撮像装置、焦点調節方法、及びプログラムに関する。 The present invention relates to a focus adjustment device, an imaging device, a focus adjustment method, and a program.
オートフォーカス(AF)に関する技術として、特許文献1に記載の技術が知られている。特許文献1は、複数の焦点検出領域のうちの少なくとも1つが焦点検出不能であって少なくとも1つが焦点検出可能であり、撮影レンズが第1の特定位置と無限遠位置の間にある場合の制御を開示している。この場合、撮影レンズを第2の特定位置まで繰り出す制御が行われる(第1の特定位置と第2の特定位置とは同じ位置であってもよい)。これにより、近距離の主被写体を探し出すことが可能となる。
As a technique related to autofocus (AF), a technique described in
超望遠レンズを用いて、サッカーの逆サイドでのプレーを撮影したり、スケートで対面の壁の前を滑る選手を追って撮影したりする場合を考える。この場合、主被写体である選手は小さく、しかも激しく動くため、測距点(焦点検出領域)において主被写体を捉え続けることが困難である。サーボ予測AFの使用中に測距点において主被写体を捉え損なうと、スタジアムの壁やスケートリンクの看板といった背景の平面状の被写体(背景平面)が測距点に入り、背景平面に対して焦点検出してしまう。また、背景平面に対して斜めに臨む位置で撮影を行う場合、背景平面が測距点に入った状態で得られる一連の焦点検出結果は、一定の速さで移動する主被写体と同様に連続性が良好な状態になる。 Consider using a super-telephoto lens to shoot a play on the opposite side of soccer or follow a player who skates in front of a facing wall. In this case, since the player who is the main subject is small and moves violently, it is difficult to continue to capture the main subject at the distance measuring point (focus detection area). If the main subject is missed at the distance measuring point while using Servo Predictive AF, a background flat object (background plane) such as a stadium wall or a skating rink sign will enter the distance measuring point and focus on the background plane. It will be detected. When shooting at a position facing the background plane diagonally, a series of focus detection results obtained with the background plane entering the distance measuring point is continuous as with the main subject moving at a constant speed. The state becomes good.
従って、測距点において主被写体を捉え損ない背景平面に対する焦点検出を行うことが繰り返されると、サーボ予測AFが背景平面の焦点検出結果に基づいて動作するようになる。その結果、背景へとピントが抜けたままの状態が長時間継続し、その後ユーザが測距点において主被写体を捉えることに成功しても、ピントが主被写体に戻りにくくなる場合がある。 Therefore, if the focus detection for the background plane is repeatedly performed without losing the main subject at the distance measuring point, the servo prediction AF is operated based on the focus detection result of the background plane. As a result, there is a case where the state of being out of focus for the background continues for a long time, and even if the user succeeds in capturing the main subject at the distance measuring point, the focus is difficult to return to the main subject.
特許文献1の技術は、撮影レンズが無限遠付近にある場合に近距離の主被写体に対する焦点検出が行えない状況を対象としたものであり、上述した測距点において主被写体を捉え損ない背景平面が測距点に入ってしまう場合の課題に対処することはできない。
The technique of
また、サーボAFの被写体追従敏感度を「粘る」ように設定し、主被写体以外の背景平面で焦点検出が行われた場合にピントがすぐには背景平面へ移動しないように制御する仕組みも知られている。しかしながら、この仕組みを利用した場合、サーボAFの被写体追従敏感度が継続的に「粘る」状態になるため、距離の変化が激しい主被写体に対してピントを敏捷に追従させることができなくなる。 Also known is a mechanism that controls the subject tracking sensitivity of Servo AF to be “sticky” so that the focus does not immediately move to the background plane when focus detection is performed on a background plane other than the main subject. It has been. However, when this mechanism is used, the subject tracking sensitivity of the servo AF is continuously “sticky”, so that it becomes impossible to focus quickly on the main subject whose distance changes rapidly.
本発明はこのような状況に鑑みてなされたものであり、焦点距離が目的の被写体に追従する速度の低下を抑制しつつ、誤って背景に合焦する可能性を低減する焦点調節技術を提供することを目的とする。 The present invention has been made in view of such a situation, and provides a focus adjustment technique that reduces the possibility of focusing on the background accidentally while suppressing a decrease in the speed at which the focal distance follows the target subject. The purpose is to do.
上記課題を解決するために、本発明は、撮影画面内の複数の測距領域について測距を行う測距手段と、前記複数の測距領域のうちの第1グループの測距領域の測距結果に基づいて、撮影空間内の背景平面を検出する検出手段と、前記複数の測距領域のうちの前記第1グループに含まれない第1測距領域の測距結果に対応する前記撮影空間内の第1位置が前記背景平面の近傍にあるか否かを判定する判定手段と、前記第1位置が前記背景平面の近傍にない場合、第1速度で前記第1位置の距離に追従するように撮影光学系の焦点距離を制御し、前記第1位置が前記背景平面の近傍にある場合、前記第1速度よりも遅い第2速度で前記第1位置の距離に追従するように前記焦点距離を制御する制御手段と、を備えることを特徴とする焦点調節装置を提供する。 In order to solve the above-described problems, the present invention provides a distance measuring unit that performs distance measurement on a plurality of distance measurement areas in a shooting screen, and distance measurement of a first group of distance measurement areas among the plurality of distance measurement areas. Detection means for detecting a background plane in the imaging space based on the result, and the imaging space corresponding to a distance measurement result of the first distance measurement area not included in the first group among the plurality of distance measurement areas. Determining means for determining whether or not the first position is in the vicinity of the background plane, and, if the first position is not in the vicinity of the background plane, follows the distance of the first position at a first speed In this way, the focal length of the photographing optical system is controlled, and when the first position is in the vicinity of the background plane, the focal point is made to follow the distance of the first position at a second speed slower than the first speed. A focus adjustment device comprising: a control means for controlling the distance; To provide.
なお、その他の本発明の特徴は、添付図面及び以下の発明を実施するための形態における記載によって更に明らかになるものである。 Other features of the present invention will become more apparent from the accompanying drawings and the following description of the preferred embodiments.
本発明によれば、焦点距離が目的の被写体に追従する速度の低下を抑制しつつ、誤って背景に合焦する可能性を低減することが可能となる。 According to the present invention, it is possible to reduce the possibility of focusing on the background accidentally while suppressing a decrease in the speed at which the focal length follows the target subject.
以下、添付図面を参照して、本発明の実施形態を説明する。なお、本発明の技術的範囲は、特許請求の範囲によって確定されるのであって、以下の個別の実施形態によって限定されるわけではない。また、実施形態の中で説明されている特徴の組み合わせすべてが、本発明に必須とは限らない。また、別々の実施形態の中で説明されている特徴を適宜組み合せることも可能である。 Embodiments of the present invention will be described below with reference to the accompanying drawings. The technical scope of the present invention is determined by the claims, and is not limited by the following individual embodiments. In addition, not all combinations of features described in the embodiments are essential to the present invention. Moreover, it is possible to appropriately combine the features described in different embodiments.
[第1の実施形態]
図7は、焦点調節装置としての機能を持つカメラ(一眼レフカメラ)の光学系を示す図である。図7において、700は撮影レンズ、705はクイックリターンミラー、703はPN液晶を組み込んだ焦点板、701はペンタプリズム、702は接眼レンズ、704は撮像面である。また、706は楕円サブミラー、708及び709は反射ミラー、710は絞り、711は二次結像レンズ、712はAFセンサである。
[First Embodiment]
FIG. 7 is a diagram illustrating an optical system of a camera (single-lens reflex camera) having a function as a focus adjustment device. In FIG. 7, 700 is a photographing lens, 705 is a quick return mirror, 703 is a focusing plate incorporating a PN liquid crystal, 701 is a pentaprism, 702 is an eyepiece, and 704 is an imaging surface.
707は、楕円サブミラー706とクイックリターンミラー705の機構の停止位置を決定している拘束部材である。焦点調節時にはクイックリターンミラー705が拘束部材707により位置を拘束されるように固定されることで、付随する楕円サブミラー706の位置も固定され、測距に際しての光学系可動部の位置決めを行える。
なお、赤外カットフィルタ、AFセンサ712上のカバーガラス及び受光面など、光学的な性能を満足させる詳細な部品構成については説明を省略する。
It should be noted that description of detailed component configurations that satisfy optical performance, such as an infrared cut filter, a cover glass on the
撮影レンズ700を通る光束は、クイックリターンミラー705により反射する。これにより、ユーザは、接眼レンズ702を通じて、焦点板703に結像する(又は空中像として見える)映像を撮影範囲として確認することが可能である。このとき焦点板703上に見える撮影範囲の画像を、以下では「ファインダ像」と呼ぶ。
The light beam passing through the photographing
図8は、図7の光学系を持つカメラ800のカメラの回路図である。図8において、撮影レンズ700は、カメラ800の交換レンズ側の構成を示しており、図7の撮影レンズ700に対応する。但し、図8の撮影レンズ700には、図7において省略した、レンズを駆動するための回路等も模式的に示されている。
FIG. 8 is a circuit diagram of a camera of the
801はカメラ800の制御用のマイクロプロセッサ(MPU)である。MPU801は、ROM、フラッシュメモリ、又はEEPROMなどの不揮発性メモリと、RAMのような揮発性メモリとを備え、更に各種I/O回路を組み込んである、ワンチップマイコンである。そのため、図8では、MPU801とその他の回路との間のインタフェースの詳細は省略してある。例えば、MPU801とAFセンサ812との接続は実線で示されているが、実際にはシリアル通信インタフェースにより接続されている。
802は撮影レンズ700のドライバである。ドライバ802は、MPU801からの制御に従い、撮影レンズ700の接続端子に対して電源供給を行ったり、シリアル通信の中継を行ったりする役割を持っている。
803は、撮像素子804から取得した画像データを処理するプロセッサーである。804は、撮影レンズ700からの光束を画像データとして取得するための撮像素子である。805は、カメラ800のシャッタ制御用の回路である。806は、カメラ800の撮影動作に用いるモータである。
A
807及び808は、カメラ800のレリーズボタンを構成するスイッチである。807及び808は、MPU801の割り込みポートに接続されており、MPU801はスイッチ807,808のON/OFFの変化を検知することができる。ユーザ操作において、スイッチ807はオートフォーカス(AF)開始を、スイッチ808は撮影(レリーズ)開始を指示するのに利用される。スイッチ807は、後述の図9のAFボタン903に対応する。
809は、液晶表示部811を駆動するディスプレイドライバである。ディスプレイドライバ809は、MPU801からの通信で制御されて表示を行なう。また、ディスプレイドライバ809にはスイッチ入力ポートが備わっており、MPU801へスイッチ検知結果を通知することができる。
810は、ディスプレイドライバ809に接続された汎用スイッチである。汎用スイッチ810には、後述の図9の操作ダイヤル905、SETボタン906、INFOボタン907、MENUボタン908などの各種操作部材が接続されている。
A general-
811は液晶表示部である。液晶表示部は、図9の表示画面904に対応する。812は焦点調節に用いるAFセンサである。AFセンサ812は、撮影レンズ700からの光束が分割されて撮像素子804と光学的にピントが等しくなる面に配置されている。AFセンサ812は、MPU801からのシリアル通信による制御に従って動作し、位相差AFで利用するための焦点検出データをシリアル通信でMPU801に伝える。AFセンサ812は、図7のAFセンサ712に対応する。
図9は、カメラ800の背面図である。901はユーザが覗くファインダである。ユーザは、ファインダ901を覗くことで、図7の焦点板703に形成されるファインダ像を見ることができる。
FIG. 9 is a rear view of the
902は、AFセンサ812の複数の測距点(測距領域)からどの測距点を選んでAFを行うかを選択するための、測距点選択レバーである。903は、押すことでAF動作を開始するようにカメラ800に指示するためのタクトスイッチであり、AFボタンと呼ばれる。
904は、後述の図6に示されるGUI設定画面や撮影した画像を表示するための表示画面である。905は、回転させて設定値を変更する操作などに用いる操作ダイヤルである。906は、設定値の変更を確定する場合などに用いるタクトスイッチであり、SETボタンと呼ばれる。907は、情報表示やGUI設定画面での雑多な操作に用いられるタクトスイッチであり、INFOボタンと呼ばれる。908は、GUIのメニュー表示を表示画面904に表示させるときに用いられるタクトスイッチであり、MENUボタンと呼ばれる。
次に、図5を参照して、カメラ800を用いた撮影状況の一例を説明する。図5において、カメラ800には、撮影レンズ700として、超望遠レンズが装着されている。502は、主被写体となるサッカー選手である。503は、背景平面となるサッカー競技場のスタンド壁面(観客席及び観客を含む)である。
Next, an example of a shooting situation using the
カメラ800からサッカー選手502までの距離をDとし、サッカー選手502からスタンド壁面503までの距離をdとする。このとき、d<<Dである。これは、カメラ800が一方のゴールライン外にあり、サッカー選手502は逆サイドのゴール前でボールを追っているというような状況である。一般的には、超望遠レンズを用いると被写界深度が浅くなるという印象があるが、それは、被写体までの距離Dが近く背景までの距離dが比較的大きい場合である。このように距離Dが距離dよりも極めて大きい状況では、主被写体の位置にピント面があるときでも背景平面はボケないので、背景平面に対する焦点検出できてしまう。こうした状況において、測距点で主被写体を捉え損なうと、カメラ800はスタンド壁面503を測距してしまう。
The distance from the
504は、ユーザがカメラ800のファインダを覗いたときに見えるファインダ像の一例である。ファインダ像504は、サッカー選手502がスタンド壁面503の手前を走っているのを撮影する状況に対応する。
505は、主被写体であるサッカー選手502に合焦した選択測距点(第2グループの測距領域)である。「選択測距点」とは、AFセンサ812の複数の測距点(撮影画面内の複数の測距領域)のうち、測距点選択レバー902の操作に従って選択された測距点を意味する。図5の例では、27個の測距点のうち中央の3列3行(9個)の測距点が選択測距点であり、残りの18個の測距点が選択されていない測距点(非選択測距点)である。選択測距点の中で焦点検出の信頼性が高く合焦したものを、主被写体を捉えた測距点として「主測距点(主測距領域)」と呼ぶ。
506は、主被写体であるサッカー選手502に合焦していない選択測距点(第2グループの測距領域のうちの主測距領域以外の測距領域)である。即ち、ファインダ像504は、測距点を9点一組で選択測距点として利用する測距エリア設定において、選択測距点505の位置で激しく動いているサッカー選手502を捉えた様子を示している。
507は、非選択測距点(第1グループの測距領域)である。なお、ユーザは、測距点選択レバー902を操作することにより、これらの左右の測距点も9点一組で選択測距点として選ぶことができる。ユーザが左右いずれかの測距点を選択した場合は、現在選択されている選択測距点505及び506は、非選択測距点となる。図5では、非選択測距点507が背景平面(スタンドに座っている観客)を捉えている様子を示している。
図6は、被写体追従特性を設定するためのGUI設定画面を示す。図6において、601は、図9の表示画面904に表示される、被写体追従特性のGUI設定画面である。602は、被写体追従特性の設定値を示す表示領域である。
FIG. 6 shows a GUI setting screen for setting subject tracking characteristics. In FIG. 6,
603は、設定可能な範囲(「粘る」から「俊敏」)の中で設定値がどこに相当するかを示す設定表示バーである。図6では、標準値の0から1目盛「俊敏」の方向の+1が設定されている様子が示されている。被写体追従特性が「俊敏」の方向に設定されている場合、サーボ予測AF中に選択測距点で狙っている主被写体をユーザが急に変えて他の被写体を狙いはじめたときに、フォーカスが比較的速やかに(速い速度で)追従するサーボAF動作が行われる。反対に、被写体追従特性が「粘る」の方向に設定されている場合、サーボ予測AF中に選択測距点で主被写体を捉え損なったときに、フォーカスがすぐには追従しない(遅い速度で追従する)サーボAF動作が行われる。即ち、「粘る」設定の場合、「俊敏」設定の場合と比べて、ユーザが主被写体を捉え損なってから再び主被写体を捉えるまで、より長く待つようなサーボAF動作が行われる。ユーザは、図9の操作ダイヤル905を左右に回すことで、設定値を変更することができる。
606は、図9のSETボタン906を押すことで変更した設定値を確定してこのGUI設定画面601での操作を完了することができるということを示す、操作方法表示である。
607は、カメラ800が背景平面を検知した時に被写体追従特性を自動で変更するように設定するか否かを切り替えるために図9のINFOボタン907を使用することを示す、操作方法表示である。ユーザがINFOボタン907を押下する度に、操作方法表示607の右側のチェックボックスのオン/オフが切り替わる。即ち、ユーザは、INFOボタン907を用いて、被写体追従特性(焦点距離追従速度)の自動調節の有効又は無効を選択することができる。
次に、図1を参照して、カメラ800が実行するサーボAF処理について説明する。図1のフローチャートにおいて、各ステップの処理は、特に断らない限り、MPU801が制御プログラムを実行してカメラ800の各部を制御することにより実現される。
Next, a servo AF process executed by the
S102で、MPU801は、AFセンサ812を用いて選択測距点における測距を行う。S103で、MPU801は、特性自動調節がオンに設定されているか否かを判定する。図6の操作方法表示607の右側のチェックボックスがオンの場合、特性自動調節はオンに設定されている。特性自動調節がオンの場合、処理はS104に進み、そうでない場合、処理はS105へ進む。
In step S <b> 102, the
S104で、MPU801は、平面検知処理を行う。平面検知処理の詳細は図2を参照して後述する。S105で、MPU801は、サーボAFの予測処理を行う。予測処理の詳細は図3を参照して後述する。S106で、MPU801は、予測処理の結果に基づいて撮影レンズ700を駆動する。
In S104, the
図2は、平面検知処理(図1のS103)のフローチャートである。S202で、MPU801は、AFセンサ812を用いて非選択測距点における測距を行う。図5の例では、非選択測距点は18点だが、一般的には10点程度以上の非選択測距点があれば平面検出処理を実行可能である。MPU801は、各測距点を、ファインダ像504上のx,y座標に加えて、ここで得られる測距結果をz座標とする3次元座標の点として扱う。測距結果(z軸)は、デフォーカス量をレンズ駆動パルス数に換算した、被写界での距離に比例する値により表される。
FIG. 2 is a flowchart of the plane detection process (S103 in FIG. 1). In step S <b> 202, the
S203は、S202において信頼性の高い測距結果が得られた非選択測距点(高信頼性測距点)の数に基づいて平面検出を行うか否かを制御するための分岐処理である。具体的には、MPU801は、高信頼性測距点の数が5以上であるか否かを判定する。高信頼性測距点の数が5以上の場合、処理はS204へ進み、そうでない場合、平面検知処理は終了してサーボAF処理のメインフロー(図1)が再開する。なお、ここでは、簡単のために高信頼性測距点の数だけに基づいて条件分岐が行われるものとしたが、本実施形態はこれに限定されない。例えば、MPU801は、選択測距点を中心とした左右の領域で独立した平面を最低1面ずつ検知するため、左右3点(計6点)を基準に条件分岐を行ってもよい。また、非選択測距点の数が5点に満たない場合は、MPU801は、本処理がサーボAF処理中で繰り返し呼び出されるサブルーチンであることを利用し、前回の非選択測距点における測距結果を蓄積することで、擬似的に非選択測距点の数を増やしてもよい。
S203 is a branching process for controlling whether or not plane detection is performed based on the number of non-selected distance measuring points (highly reliable distance measuring points) from which a highly reliable distance measuring result is obtained in S202. . Specifically, the
S204で、MPU801は、3次元平面検出処理を行う。3次元平面検出処理の詳細は図4を参照して後述する。
In S204, the
S205で、MPU801は、S204の3次元平面検出結果に基づき、背景平面が存在するか否かを判定する。3次元平面検出結果は、平面の法線ベクトル、及びその平面にある測距点(代表測距点)の座標として出力される。法線ベクトルが零ベクトルの場合、背景平面が存在しないと判定され、非零ベクトルの法線ベクトルが存在する場合、背景平面が存在すると判定される。背景平面が存在する場合、処理はS206へ進み、背景平面が存在しない場合、平面検知処理は終了してサーボAF処理のメインフロー(図1)が再開する。
In step S205, the
S206で、MPU801は、データストア250に背景平面を登録する。具体的には、MPU801は、データストア250に、背景平面を表す代表測距点及び法線ベクトルの組み合わせを記憶する。なお、データストア250は、例えばMPU801が備える揮発性メモリにより実装される。
In S206, the
図4は、3次元平面検出処理(図2のS204)のフローチャートである。S402は、高信頼性測距点(信頼性の高い測距結果が得られた非選択測距点)を3点選ぶ各組み合わせに関する繰り返しループの先頭である。なお、高信頼性測距点が多すぎる場合、その中からの3点を選ぶ組み合せの数が非常に大きくなるので、測距点同士がファインダ像504のx,y座標上で離れたものを9点(又はそれ以下)選んでループ回数を減らしてもよい。もちろん、MPU801の演算能力が十分に高い場合には、ループ回数を減らす処理を行わなくてもよい。
FIG. 4 is a flowchart of the three-dimensional plane detection process (S204 in FIG. 2). S402 is the head of an iterative loop for each combination for selecting three highly reliable distance measuring points (non-selected distance measuring points from which highly reliable distance measurement results are obtained). Note that when there are too many highly reliable distance measuring points, the number of combinations for selecting three of them becomes very large, so that the distance measuring points are separated on the x and y coordinates of the
S403で、MPU801は、選択された3つの測距点のなす平面の法線ベクトルを求める。前述の通り、各測距点は座標(x,y,z)として扱われ、zは距離に対応するレンズ駆動パルス数である。3つの測距点をA,B,Cとすると、法線ベクトルαは、
α=AB×BC
により求められる。
In step S403, the
α = AB × BC
Is required.
S404で、MPU801は、S403において求めた法線ベクトルを、対応する測距点と共に揮発性メモリに記憶する。
In step S404, the
S405は、S402から開始するループの末尾である。即ち、高信頼性測距点を3点選ぶ全ての組み合わせについて、S403及びS404の処理が行われる。例えば、MPU801は、前述の測距点A,B,Cとは別の測距点D,E,Fについて、法線ベクトルβを、
β=DE×EF
により求め、測距点D,E,Fと法線ベクトルβとを揮発性メモリに記憶する。例えば、高信頼性測距点が全部で6点ある場合、20個の平面(20本の法線ベクトル)得られると、ループが終了して処理がS406に進む。
S405 is the end of the loop starting from S402. That is, the processing of S403 and S404 is performed for all combinations for selecting three highly reliable distance measuring points. For example, the
β = DE × EF
The distance measuring points D, E, F and the normal vector β are stored in the volatile memory. For example, when there are 6 highly reliable distance measuring points in total, when 20 planes (20 normal vectors) are obtained, the loop ends and the process proceeds to S406.
S406は、S404において記憶された法線ベクトルを2本選ぶ各組み合わせに関する繰り返しループの先頭である。 S406 is the head of an iterative loop for each combination that selects two normal vectors stored in S404.
S407で、MPU801は、2本の法線ベクトルが平行であるか否かを判定する。2本の法線ベクトルの外積がほぼ零である場合、これら2本の法線ベクトルは平行であると判定される。平行な場合、S408で、MPU801は、これら2本の法線ベクトルを対応する測距点と共に揮発性メモリに記憶する。これにより、平行な法線ベクトルの組み合わせリストが生成される。
In step S407, the
S409は、S406から開始するループの末尾である。即ち、法線ベクトルを2本選ぶ全ての組み合わせについて、S407の処理が行われ、平行な組み合わせについてはS408の処理も行われる。 S409 is the end of the loop starting from S406. That is, the process of S407 is performed for all combinations for selecting two normal vectors, and the process of S408 is also performed for parallel combinations.
S410で、MPU801は、平行な法線ベクトルの組み合わせについて、その測距点座標同士がほぼ同一平面にある組み合せを数え上げる。例えば、法線ベクトルαとβが平行な組み合わせとなった場合、法線ベクトルと測距点A,B,Cのいずれかとにより定められる平面上に、測距点D,E,Fのいずれかがあれば、同一平面にある組み合わせとして数えられる。また、その平面を表すため、MPU801は、代表的な測距点(x,y,z座標)を選ぶ。代表的な測距点(代表測距点)は、法線ベクトルの大きさが大きい方に対応する測距点の中から選ばれる。例えば、ベクトルの大きさが|α|>|β|であれば、MPU801は、測距点A,B,Cの中から代表測距点を選ぶ。例えば、MPU801は、信頼性の高いもの、デフォーカス量が小さいもの、光軸に近いもの、などの基準に基づいて、代表測距点を選択する。しかしながら、測距点A,B,Cは同じ背景平面に対応する測距点なので、選択基準の値に明確な差がない場合は、ランダムに1点を選んでもよい。MPU801は、代表測距点、及び代表測距点の選択元の測距点に対応する法線ベクトルの組み合わせを、背景平面の検出結果として出力する。複数の背景平面が検出された場合、代表測距点及び法線ベクトルの複数の組み合わせが出力される。出力された検出結果は、図2のデータストア250に格納される。なお、背景平面が検出されなかった場合、MPU801は、零ベクトルを出力する。
In step S410, the
図3は、予測処理(図1のS105)のフローチャートである。S302で、MPU801は、主測距点の測距結果が背景平面近傍にあるか否かを判定する。前述の通り、主測距点は、選択測距点の中で焦点検出の信頼性が高く合焦したものである。MPU801は、複数の選択測距点の測距結果に基づいて、複数の選択測距点から主測距点を選択することができる。
FIG. 3 is a flowchart of the prediction process (S105 in FIG. 1). In step S302, the
S302における判定について、更に詳細に説明する。MPU801は、データストア250から背景平面を表す代表測距点及び法線ベクトルの組み合わせを読み出す。そして、MPU801は、主測距点の測距結果に対応する、撮影空間内(撮影対象の3次元空間内)の被写***置(z方向を含む主測距点の座標)が、背景平面近傍にあるか否かを判定する。具体的にはMPU801は、主測距点の座標(xs,ys,zs)を、代表測距点(x0,y0,z0)を通り法線ベクトルが(a,b,c)である平面の方程式
a(x−x0)+b(y−y0)+c(z−z0)=0
の(x,y,z)に代入し、
T=a(xs−x0)+b(ys−y0)+c(zs−z0)
を求める。そして、MPU801は、求められたTの絶対値が、データストア350に格納されている平面近傍判定閾値未満であるか否かを判定する。|T|<(平面近傍判定閾値)である場合、MPU801は、主測距点の測距結果に対応する被写***置(第1位置)が背景平面近傍にあると判定する。また、|T|≧(平面近傍判定閾値)である場合、MPU801は、主測距点の測距結果に対応する被写***置が背景平面近傍にないと判定する。平面近傍判定閾値は、主測距点が背景平面に対して至近側か無限遠側かで異なる2つの値から成る。なお、平面近傍判定閾値には、主測距点の座標が光軸中心から離れるのに応じて、レンズの像面湾曲などによる誤差を考慮した補正処理が加えられてもよい。主測距点の測距結果に対応する被写***置が背景平面近傍にある場合、処理はS306に進み、そうでない場合、処理はS305に進む。
The determination in S302 will be described in more detail. The
Substituting for (x, y, z)
T = a (xs−x0) + b (ys−y0) + c (zs−z0)
Ask for. Then, the
S305で、MPU801は、主測距点の測距結果を、予測処理に用いる測距結果として採用する。この場合、撮影光学系の焦点距離は、主測距点の測距結果に対応する被写***置の距離に追従するように制御される。
In step S305, the
S306で、MPU801は、主測距点付近の選択測距点の測距結果の中から、背景平面近傍にないものを検索する。なお、S306の処理が行われる状況としては、例えば、主測距点で主被写体を捉え損なって背景平面の測距結果が得られた状況が想定される。
In step S306, the
S307で、MPU801は、S306において検出された測距結果の中に、前回までの焦点調節の結果に基づく今回の予測結果に近く、かつ背景平面より至近側の測距結果があるか否かを判定する。そのような測距結果がある場合、処理はS308に進み、そのような測距結果がない場合、処理はS309に進む。
In step S307, the
S306及びS307から理解できるように、「そのような測距結果」とは、次の条件を満たす特定の測距領域である。即ち、特定の測距領域は、選択測距領域のうちの主測距領域以外の測距領域であり、その測距結果に対応する撮影空間内の被写***置(第2位置)は、背景平面近傍になく、背景平面に対して撮影光学系に近い側にある。そして、この被写***置の距離は、前回までの焦点調節の結果から予測される今回の目標距離の近傍にある。なお、S306及びS307の処理は省略してもよい。この場合、MPU801は、S302において主測距点の測距結果が背景平面近傍にあると判定すると、処理をS309に進める。
As can be understood from S306 and S307, "such a distance measurement result" is a specific distance measurement area that satisfies the following conditions. That is, the specific distance measurement area is a distance measurement area other than the main distance measurement area in the selected distance measurement area, and the subject position (second position) in the shooting space corresponding to the distance measurement result is the background plane. It is not in the vicinity but on the side near the imaging optical system with respect to the background plane. The distance of the subject position is in the vicinity of the current target distance predicted from the focus adjustment results up to the previous time. Note that the processing of S306 and S307 may be omitted. In this case, if the
S308で、MPU801は、被写体追従特性を、GUI設定画面(図6)を介してユーザに設定された設定値(第1速度)よりも俊敏な設定(第3速度)にする。併せて、MPU801は、S307において「ある」と判定された測距結果を、予測処理に用いる測距結果として採用する。この場合、撮影光学系の焦点距離は、この測距結果に対応する被写***置の距離に追従するように制御される。なお、ユーザの設定値が最も「俊敏」である場合には、S308において設定値の変更は行われない。
In S308, the
S309で、MPU801は、被写体追従特性を、GUI設定画面(図6)を介してユーザに設定された設定値(第1速度)よりも粘る設定(第2速度)にする。この場合、例えば、MPU801は、主測距点の測距結果を、予測処理に用いる測距結果として採用する。なお、S309の処理が行われる状況としては、例えば、カメラ800が主被写体を完全に捉え損なっている状況が想定される。また、ユーザの設定値が最も「粘る」である場合には、S309において設定値の変更は行われない。
In step S309, the
S310で、MPU801は、S305、S308、又はS309において採用した測距結果に基づいて予測を行い、予測に基づくレンズ駆動量を算出する。このレンズ駆動量は、図1のS106におけるレンズ駆動処理に用いられる。
In step S310, the
以上説明したように、第1の実施形態によれば、カメラ800は、主測距点の測距結果に対応する被写***置が背景平面の近傍にあるか否かを判定する。被写***置が背景平面の近傍にある場合、カメラ800は、ユーザが設定した速度よりも遅い速度で被写***置の距離に追従するように撮影光学系の焦点距離を制御する。これにより、焦点距離が目的の被写体に追従する速度の低下を抑制しつつ、誤って背景に合焦する可能性を低減することが可能となる。
As described above, according to the first embodiment, the
なお、上述した実施形態においては、本発明をカメラ800のようなデジタルカメラに適用した場合を例にして説明したが、本発明はこの例に限定されない。即ち、本発明は、デジタルカメラ以外の焦点調節機能を備える電子機器に適用してもよい。即ち、スマートフォン、PDA、携帯電話端末やタブレット端末、ゲーム機など、撮影光学系の焦点距離を調節するAFを行う装置であれば、本発明は適用可能である。
In the above-described embodiment, the case where the present invention is applied to a digital camera such as the
[その他の実施形態]
本発明は、上述の実施形態の1以上の機能を実現するプログラムを、ネットワーク又は記憶媒体を介してシステム又は装置に供給し、そのシステム又は装置のコンピュータにおける1つ以上のプロセッサーがプログラムを読出し実行する処理でも実現可能である。また、1以上の機能を実現する回路(例えば、ASIC)によっても実現可能である。
[Other Embodiments]
The present invention supplies a program that realizes one or more functions of the above-described embodiments to a system or apparatus via a network or a storage medium, and one or more processors in a computer of the system or apparatus read and execute the program This process can be realized. It can also be realized by a circuit (for example, ASIC) that realizes one or more functions.
700…撮影レンズ、800…カメラ、801…MPU、802…ドライバ、804…撮像素子、809…ディスプレイドライバ、810…汎用スイッチ、811…液晶表示部、812…AFセンサ 700 ... Photography lens, 800 ... Camera, 801 ... MPU, 802 ... Driver, 804 ... Image sensor, 809 ... Display driver, 810 ... General-purpose switch, 811 ... Liquid crystal display unit, 812 ... AF sensor
Claims (10)
前記複数の測距領域のうちの第1グループの測距領域の測距結果に基づいて、撮影空間内の背景平面を検出する検出手段と、
前記複数の測距領域のうちの前記第1グループに含まれない第1測距領域の測距結果に対応する前記撮影空間内の第1位置が前記背景平面の近傍にあるか否かを判定する判定手段と、
前記第1位置が前記背景平面の近傍にない場合、第1速度で前記第1位置の距離に追従するように撮影光学系の焦点距離を制御し、前記第1位置が前記背景平面の近傍にある場合、前記第1速度よりも遅い第2速度で前記第1位置の距離に追従するように前記焦点距離を制御する制御手段と、
を備えることを特徴とする焦点調節装置。 Ranging means for measuring a plurality of ranging areas in the shooting screen;
Detecting means for detecting a background plane in the imaging space based on a distance measurement result of a first group of distance measurement areas of the plurality of distance measurement areas;
It is determined whether or not a first position in the imaging space corresponding to a distance measurement result of a first distance measurement area not included in the first group among the plurality of distance measurement areas is in the vicinity of the background plane. Determination means to perform,
When the first position is not in the vicinity of the background plane, the focal length of the photographing optical system is controlled to follow the distance of the first position at a first speed, and the first position is in the vicinity of the background plane. In some cases, control means for controlling the focal length so as to follow the distance of the first position at a second speed slower than the first speed;
A focus adjusting apparatus comprising:
ことを特徴とする請求項1に記載の焦点調節装置。 The first ranging area is selected from the ranging areas of the second group based on the ranging results of the second group of ranging areas not included in the first group among the plurality of ranging areas. The focus adjustment apparatus according to claim 1, further comprising a first selection unit.
ことを特徴とする請求項2に記載の焦点調節装置。 The focus adjustment apparatus according to claim 2, further comprising second selection means for selecting the second group of distance measurement areas from the plurality of distance measurement areas.
前記第2測距領域の測距結果に対応する前記撮影空間内の第2位置は、前記背景平面の近傍になく、前記背景平面に対して前記撮影光学系に近い側にあり、
前記第2位置の距離は、前記制御手段による前記焦点距離の前回までの制御から予測される目標距離の近傍にあり、
前記制御手段は、前記第1位置が前記背景平面の近傍にある場合、
前記第2測距領域が存在する場合、前記第1速度よりも速い第3速度で前記第2位置の距離に追従するように前記焦点距離を制御し、
前記第2測距領域が存在しない場合、前記第2速度で前記第1位置の距離に追従するように前記焦点距離を制御する
ことを特徴とする請求項2又は3に記載の焦点調節装置。 When the first position is in the vicinity of the background plane, the determination means includes a second ranging area in a ranging area other than the first ranging area in the ranging area of the second group. Determine if it exists,
The second position in the imaging space corresponding to the distance measurement result of the second ranging area is not near the background plane, but on the side closer to the imaging optical system with respect to the background plane,
The distance of the second position is in the vicinity of the target distance predicted from the control of the focal length by the control means until the previous time,
The control means, when the first position is in the vicinity of the background plane,
If the second ranging area is present, the focal length is controlled to follow the distance of the second position at a third speed faster than the first speed;
4. The focus adjustment apparatus according to claim 2, wherein when the second distance measurement area does not exist, the focal length is controlled to follow the distance of the first position at the second speed. 5.
ことを特徴とする請求項1乃至4のいずれか1項に記載の焦点調節装置。 The focus adjustment apparatus according to any one of claims 1 to 4, further comprising setting means for setting the first speed.
前記制御手段は、前記無効が選択された場合、前記第1位置が前記背景平面の近傍にあるか否かに関わらず、前記第1速度で前記第1位置の距離に追従するように前記焦点距離を制御する
ことを特徴とする請求項1乃至5のいずれか1項に記載の焦点調節装置。 A third selecting means for selecting whether to enable or disable the automatic adjustment of the focal length tracking speed;
When the invalidity is selected, the control means is configured to follow the distance of the first position at the first speed regardless of whether the first position is in the vicinity of the background plane. The focus adjustment device according to claim 1, wherein the distance is controlled.
ことを特徴とする請求項6に記載の焦点調節装置。 The focus adjustment apparatus according to claim 6, wherein the detection unit detects the background plane when the validity is selected.
請求項1乃至7のいずれか1項に記載の焦点調節装置と、
を備えることを特徴とする撮像装置。 Imaging means;
The focus adjustment device according to any one of claims 1 to 7,
An imaging apparatus comprising:
撮影画面内の複数の測距領域について測距を行う測距工程と、
前記複数の測距領域のうちの第1グループの測距領域の測距結果に基づいて、撮影空間内の背景平面を検出する検出工程と、
前記複数の測距領域のうちの前記第1グループに含まれない第1測距領域の測距結果に対応する前記撮影空間内の第1位置が前記背景平面の近傍にあるか否かを判定する判定工程と、
前記第1位置が前記背景平面の近傍にない場合、第1速度で前記第1位置の距離に追従するように撮影光学系の焦点距離を制御し、前記第1位置が前記背景平面の近傍にある場合、前記第1速度よりも遅い第2速度で前記第1位置の距離に追従するように前記焦点距離を制御する制御工程と、
を備えることを特徴とする焦点調節方法。 A focus adjustment method performed by the focus adjustment device,
A ranging process for measuring a plurality of ranging areas in the shooting screen;
A detection step of detecting a background plane in the imaging space based on a distance measurement result of a first group of distance measurement areas of the plurality of distance measurement areas;
It is determined whether or not a first position in the imaging space corresponding to a distance measurement result of a first distance measurement area not included in the first group among the plurality of distance measurement areas is in the vicinity of the background plane. A determination step to
When the first position is not in the vicinity of the background plane, the focal length of the photographing optical system is controlled to follow the distance of the first position at a first speed, and the first position is in the vicinity of the background plane. In some cases, a control step of controlling the focal length to follow the distance of the first position at a second speed that is slower than the first speed;
A focus adjustment method comprising:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2017153555A JP2019032443A (en) | 2017-08-08 | 2017-08-08 | Focus adjustment device, imaging device, focus adjustment method, and program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2017153555A JP2019032443A (en) | 2017-08-08 | 2017-08-08 | Focus adjustment device, imaging device, focus adjustment method, and program |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2019032443A true JP2019032443A (en) | 2019-02-28 |
Family
ID=65523445
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2017153555A Pending JP2019032443A (en) | 2017-08-08 | 2017-08-08 | Focus adjustment device, imaging device, focus adjustment method, and program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2019032443A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2021251631A1 (en) * | 2020-06-12 | 2021-12-16 | 삼성전자 주식회사 | Electronic device including focus adjustment function and method thereof |
-
2017
- 2017-08-08 JP JP2017153555A patent/JP2019032443A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2021251631A1 (en) * | 2020-06-12 | 2021-12-16 | 삼성전자 주식회사 | Electronic device including focus adjustment function and method thereof |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR100755288B1 (en) | Camera, control method therefor and storage medium | |
US7728903B2 (en) | Focus adjustment device, focus adjustment method and camera | |
US8736745B2 (en) | Camera | |
JP7088268B2 (en) | camera | |
JP2007233034A (en) | Imaging apparatus | |
US10477101B2 (en) | Focus detection apparatus, control method and storage medium | |
US9781330B2 (en) | Focus detection apparatus and control method for focus detection apparatus | |
JP5402298B2 (en) | Focus detection device and camera | |
JP5879736B2 (en) | Image tracking device and imaging device | |
US9906709B2 (en) | Image pickup apparatus having image pickup element including a plurality of pixels, each pixel including a plurality of photodiodes corresponding to microlens, lens unit to be removably mounted on image pick up apparatus, and methods of controlling image pickup apparatus and lens unit | |
CN110519504B (en) | Electronic device, control device for electronic device, storage medium, and control method | |
JP2011107501A (en) | Focusing device and imaging apparatus | |
US9742983B2 (en) | Image capturing apparatus with automatic focus adjustment and control method thereof, and storage medium | |
JP4542126B2 (en) | Focus detection device | |
JP2019032443A (en) | Focus adjustment device, imaging device, focus adjustment method, and program | |
JP4921651B2 (en) | Digital camera | |
JP5871196B2 (en) | Focus adjustment device and imaging device | |
JP2010282107A (en) | Imaging apparatus and control method therefor | |
US10834307B2 (en) | Image pickup apparatus | |
JP5789937B2 (en) | Image tracking device and imaging device | |
US6532343B1 (en) | Camera finder device | |
JP2010113130A (en) | Focus detecting device, imaging apparatus, focus detecting method | |
JP2010117488A (en) | Imaging apparatus and focal position-detecting device | |
JP2016114721A (en) | Imaging apparatus and method of controlling the same | |
JP5720767B2 (en) | Focus detection device |