JP6476539B2 - Focus detection apparatus and imaging apparatus - Google Patents
Focus detection apparatus and imaging apparatus Download PDFInfo
- Publication number
- JP6476539B2 JP6476539B2 JP2013199249A JP2013199249A JP6476539B2 JP 6476539 B2 JP6476539 B2 JP 6476539B2 JP 2013199249 A JP2013199249 A JP 2013199249A JP 2013199249 A JP2013199249 A JP 2013199249A JP 6476539 B2 JP6476539 B2 JP 6476539B2
- Authority
- JP
- Japan
- Prior art keywords
- focus
- focus detection
- unit
- value
- image
- 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.)
- Active
Links
Images
Landscapes
- Focusing (AREA)
- Automatic Focus Adjustment (AREA)
- Studio Devices (AREA)
Description
本発明は、焦点検出装置および撮像装置に関する。 The present invention relates to a focus detection apparatus and an imaging apparatus.
従来より、夜間に、外灯などの点光源を含む被写体を撮影する際に、点光源に対応する画素の画像信号が飽和してしまい、画像信号に基づいて、光学系の焦点状態を検出できない場合があった。一方、点光源が存在する場合には、点光源にピントが合うほど、点光源の像は小さくなり、その分、点光源に対応する画素の数も少なくなるため、点光源を含む所定の画像領域内における画像信号の積算値は小さくなる。そのため、点光源により画像信号が飽和している場合に、点光源を含む所定の画像領域内の画像信号を積算し、画像信号の積算値が最小となるレンズ位置を合焦位置として検出する技術が知られている(たとえば、特許文献1参照)。 Conventionally, when photographing a subject including a point light source such as an outdoor light at night, the image signal of the pixel corresponding to the point light source is saturated, and the focus state of the optical system cannot be detected based on the image signal. was there. On the other hand, when a point light source is present, the more focused the point light source is, the smaller the image of the point light source, and the corresponding number of pixels corresponding to the point light source is reduced. The integrated value of the image signal in the area becomes small. Therefore, when the image signal is saturated by the point light source, the image signal within the predetermined image area including the point light source is integrated, and the lens position where the integrated value of the image signal is minimum is detected as the in-focus position. Is known (see, for example, Patent Document 1).
しかしながら、従来技術は、点光源にピントが合う焦点調節レンズのレンズ位置を合焦位置として検出するものであり、たとえば、夜間に、眼鏡をかけた人の顔を撮影する場合において、外灯の光や照明光が眼鏡で反射している場合には、外灯や照明などの点光源にピントが合ってしまい、人の顔にピントの合った画像を撮影することができない場合があった。 However, the conventional technique detects a lens position of a focusing lens that is focused on a point light source as a focus position. For example, when photographing a face of a person wearing glasses at night, When the illumination light is reflected by the spectacles, the point light source such as an external light or illumination is in focus, and it may not be possible to take an image in focus on the human face.
本発明は、以下の解決手段によって上記課題を解決する。 The present invention solves the above problems by the following means.
[1]本発明に係る焦点検出装置は、焦点調節レンズを含む光学系による像に対応する画像信号を取得する取得部と、前記画像信号に基づいて前記像に含まれる顔領域を特定被写体として特定する特定部と、前記光学系による像面に設定された複数の焦点検出領域のうち前記特定被写体に対応する前記焦点検出領域を検出対象領域として設定する設定部と、所定値以上の輝度の被写体を高輝度被写体として検出する検出部と、前記画像信号から特定の周波数成分に対応する周波数信号を抽出する抽出部と、前記検出対象領域内の複数の画像領域において抽出された複数の前記周波数信号を積算して第1積算値として出力する第1積算値出力部と、前記検出対象領域内の複数の画像領域における前記画像信号を積算して第2積算値として出力する第2積算値出力部と、前記検出対象領域内の複数の画像領域において抽出された複数の前記周波数信号の最大値を出力する最大値出力部と、前記第1積算値または前記周波数信号の最大値を用いて、前記光学系の焦点状態を検出する焦点検出部と、を備え、前記焦点検出部は、前記特定部による前記顔領域が特定され、かつ、前記検出対象領域において前記検出部により前記高輝度被写体が検出された場合、前記最大値を用いて前記光学系の焦点状態を検出し、前記特定部による前記顔領域が特定され、かつ、前記検出対象領域において前記検出部により前記高輝度被写体が検出されない場合、前記第1積算値を用いて前記光学系の焦点状態を検出し、前 記特定部による前記顔領域が特定されず、かつ、前記検出部により前記高輝度被写体が検出された場合、前記第2積算値を用いて前記光学系の焦点状態を検出する。
[2]上記焦点検出装置に係る発明において、前記第1積算値出力部は、前記焦点調節レンズの所定のレンズ位置ごとに、前記周波数信号の積算値を出力し、前記最大値出力部は、前記焦点調節レンズの所定のレンズ位置ごとに、前記周波数信号の最大値を出力し、前記焦点検出部は、前記検出対象領域において前記高輝度被写体が検出されている場合には、前記周波数信号の最大値が最も大きいレンズ位置を合焦位置として検出し、前記検出対象領域において前記高輝度被写体が検出されていない場合には、前記第1積算値が最も大きいレンズ位置を合焦位置として検出することができる。
[3]上記焦点検出装置に係る発明において、前記検出部は、前記像に相当する画像の全体の輝度の平均値が所定値以下であり、前記光学系を駆動させながらの前記画像信号の最大値が撮像画素の出力上限値となる前記焦点調節レンズの位置を検出することで、前記高輝度被写体を検出することができる。
[4]上記焦点検出装置に係る発明において、被写体を照明するための照明光を発光しているか否かを判断する判断部を備え、前記焦点検出部は、前記判断部により前記照明光を発光していると判断され、かつ、前記検出対象領域において前記検出部により前記高輝度被写体が検出された場合、前記周波数信号の最大値を用いて前記光学系の焦点状態を検出することができる。
[5]上記焦点検出装置に係る発明において、前記焦点検出部は、前記判断部により前記照明光を発光していないと判断された場合、前記第1積算値を用いて前記光学系の焦点状態を検出することができる。
[6]上記焦点検出装置に係る発明において、前記複数の焦点検出領域の中から一つをユーザが選択可能な選択部を備えるよう構成できる。
[7]上記焦点検出装置に係る発明において、前記選択部により前記一つの焦点検出領域が選択されると、前記特定部は前記一つの焦点検出領域と前記特定被写体に対応する焦点検出領域とが一致する場合に、前記検出対象領域を設定することができる。
[8]本発明に係る撮像装置は、上記焦点検出装置を備える。
[1] A focus detection apparatus according to the present invention includes an acquisition unit that acquires an image signal corresponding to an image by an optical system including a focus adjustment lens, and a face area included in the image based on the image signal as a specific subject. A specifying unit for specifying, a setting unit for setting, as a detection target region, the focus detection region corresponding to the specific subject among a plurality of focus detection regions set on the image plane by the optical system, and a luminance of a predetermined value or more A detection unit that detects a subject as a high-luminance subject, an extraction unit that extracts a frequency signal corresponding to a specific frequency component from the image signal, and a plurality of the frequencies extracted in a plurality of image regions in the detection target region It outputs the first cumulative value output unit for outputting as a first integration value by integrating the signal, as the second cumulative value by integrating the image signals in a plurality of image areas within the detection target area And 2 integrated value output section, the maximum of the maximum value output section and said first integration value or the frequency signal to output a maximum value of a plurality of said frequency signal extracted in a plurality of image areas within the detection target area A focus detection unit that detects a focus state of the optical system using a value, and the focus detection unit specifies the face region by the specification unit, and the detection unit detects the face region by the detection unit. If the high luminance object is detected, prior SL using the maximum value to detect the focus state of the optical system, the said face region according to a particular unit is identified, and, by the detecting unit in the detection target area When the high brightness subject is not detected, the focus state of the optical system is detected using the first integrated value, the face area is not specified by the specifying unit, and the high brightness subject is not set by the detecting unit. But If issued, to detect the focus state of the optical system using the second integrated value.
[2] In the invention relating to the focus detection device, the first integrated value output unit outputs an integrated value of the frequency signal for each predetermined lens position of the focus adjustment lens, and the maximum value output unit includes: The maximum value of the frequency signal is output for each predetermined lens position of the focus adjustment lens, and the focus detection unit detects the high-frequency object in the detection target region when the high-luminance subject is detected. The lens position with the largest maximum value is detected as the in-focus position, and if the high-luminance subject is not detected in the detection target area, the lens position with the largest first integrated value is detected as the in-focus position. be able to.
[3] In the invention according to the focus detection apparatus, the detection unit may have an average value of the overall luminance of the image corresponding to the image that is equal to or less than a predetermined value, and the maximum of the image signal while driving the optical system. By detecting the position of the focusing lens whose value is the output upper limit value of the imaging pixel, the high-luminance subject can be detected.
[4] In the invention according to the focus detection apparatus, the focus detection unit includes a determination unit that determines whether or not illumination light for illuminating the subject is emitted, and the focus detection unit emits the illumination light by the determination unit. When the high brightness subject is detected by the detection unit in the detection target area, the focus state of the optical system can be detected using the maximum value of the frequency signal.
[5] In the invention according to the focus detection device, the focus detection unit uses the first integrated value to determine the focus state of the optical system when the determination unit determines that the illumination light is not emitted. Can be detected.
[ 6 ] In the invention relating to the focus detection apparatus, the focus detection device may be configured to include a selection unit that allows the user to select one of the plurality of focus detection areas.
[ 7 ] In the invention related to the focus detection apparatus, when the one focus detection area is selected by the selection unit, the specifying unit determines that the one focus detection area and the focus detection area corresponding to the specific subject are If they match, the detection target area can be set.
[ 8 ] An imaging apparatus according to the present invention includes the focus detection apparatus.
本発明によれば、光学系の焦点状態を適切に検出することができる。 According to the present invention, it is possible to appropriately detect the focus state of the optical system.
以下、本発明の実施形態を図面に基づいて説明する。 Hereinafter, embodiments of the present invention will be described with reference to the drawings.
《第1実施形態》
図1は、本発明の第1実施形態に係るデジタルカメラ1を示す構成図である。第1実施形態のデジタルカメラ1(以下、単にカメラ1という。)は、カメラ本体2とレンズ鏡筒3から構成され、これらカメラ本体2とレンズ鏡筒3はマウント部4により着脱可能に結合されている。
<< First Embodiment >>
FIG. 1 is a block diagram showing a digital camera 1 according to the first embodiment of the present invention. A digital camera 1 according to the first embodiment (hereinafter simply referred to as a camera 1) includes a
レンズ鏡筒3は、カメラ本体2に着脱可能な交換レンズである。図1に示すように、レンズ鏡筒3には、レンズ31,32,33、および絞り34を含む光学系が内蔵されている。
The lens barrel 3 is an interchangeable lens that can be attached to and detached from the
レンズ32は、フォーカスレンズであり、光軸L1方向に移動することで、光学系の焦点距離を調節可能となっている。フォーカスレンズ32は、レンズ鏡筒3の光軸L1に沿って移動可能に設けられ、エンコーダ35によってその位置が検出されつつフォーカスレンズ駆動モータ36によってその位置が調節される。
The
エンコーダ35で検出されたフォーカスレンズ32の現在位置情報は、レンズ制御部37を介して後述するカメラ制御部21へ送出され、フォーカスレンズ駆動モータ36は、この情報に基づいて演算されたフォーカスレンズ32の駆動目標位置が、カメラ制御部21からレンズ制御部37を介して送出されることにより駆動する。
Information on the current position of the
絞り34は、光学系を通過して撮像素子22に至る光束の光量を制限するとともにボケ量を調整するために、光軸L1を中心にした開口径が調節可能に構成されている。絞り34による開口径の調節は、たとえば自動露出モードにおいて演算された適切な開口径が、カメラ制御部21からレンズ制御部37を介して送出されることにより行われる。また、カメラ本体2に設けられた操作部28によるマニュアル操作により、設定された開口径がカメラ制御部21からレンズ制御部37に入力される。絞り34の開口径は図示しない絞り開口センサにより検出され、レンズ制御部37で現在の開口径が認識される。
The
一方、カメラ本体2には、光学系からの光束L1を受光する撮像素子22が、光学系の予定焦点面に設けられ、その前面にシャッター23が設けられている。撮像素子22はCCDやCMOSなどのデバイスから構成され、受光した光信号を電気信号に変換してカメラ制御部21に送出する。カメラ制御部21に送出された画像情報は、逐次、液晶駆動回路25に送出されて観察光学系の電子ビューファインダ(EVF)26に表示されるとともに、操作部28に備えられたレリーズボタン(不図示)が全押しされた場合には、その画像情報が、記録媒体であるカメラメモリ24に記録される。なお、カメラメモリ24は着脱可能なカード型メモリや内蔵型メモリの何れをも用いることができる。
On the other hand, the
カメラ本体2には、撮像素子22で撮像される像を観察するための観察光学系が設けられている。本実施形態の観察光学系は、液晶表示素子からなる電子ビューファインダ(EVF)26と、これを駆動する液晶駆動回路25と、接眼レンズ27とを備えている。液晶駆動回路25は、撮像素子22で撮像され、カメラ制御部21へ送出された撮影画像情報を読み込み、これに基づいて電子ビューファインダ26を駆動する。これにより、ユーザは、接眼レンズ27を通して現在の撮影画像を観察することができる。なお、光軸L2による上記観察光学系に代えて、または、これに加えて、液晶ディスプレイをカメラ本体2の背面等に設け、この液晶ディスプレイに撮影画像を表示させることもできる。
The
カメラ本体2にはカメラ制御部21が設けられている。カメラ制御部21は、マウント部4に設けられた電気信号接点部41によりレンズ制御部37と電気的に接続され、このレンズ制御部37からレンズ情報を受信するとともに、レンズ制御部37へデフォーカス量や絞り開口径などの情報を送信する。また、カメラ制御部21は、上述したように撮像素子22から画素出力を読み出すとともに、読み出した画素出力について、必要に応じて所定の情報処理を施すことにより画像情報を生成し、生成した画像情報を、電子ビューファインダ26の液晶駆動回路25やメモリ24に出力する。また、カメラ制御部21は、撮像素子22からの画像情報の補正やレンズ鏡筒3の絞り調節状態などを検出するなど、カメラ1全体の制御を司る。
A
さらに、カメラ制御部21は、上記に加えて、光学系の焦点状態の検出も行う。ここで、図2は、カメラ制御部21の構成を示すブロック図であり、カメラ制御部21の構成のうち、特に、光学系の焦点状態の検出に関する構成を例示している。光学系の焦点状態を検出するために、カメラ制御部21は、図2に示すように、ハイパスフィルター(HPF)211と、第1積算回路212と、第1最大値回路213と、第2積算回路214と、第2最大値回路215と、焦点検出部216と、を備えている。
Furthermore, in addition to the above, the
本実施形態において、撮像素子22は、図2に示すように、光束L1を受光する受光面に、二次元状に配列された複数の撮像画素221を有しており、フォーカスレンズ32を含む撮影光学系を通過した光束L1を撮像画素221で受光する。そして、各撮像画素221は、受光した光の強さに応じた画像信号をカメラ制御部21にそれぞれ出力する。複数の撮像画素221から出力された複数の画像信号は、図2に示すように、ハイパスフィルター211、第2積算回路214、および第2最大値回路215に入力される。
In the present embodiment, as shown in FIG. 2, the
ハイパスフィルター211は、FIRデジタルフィルターなどの検波フィルターである。ハイパスフィルター211は、各撮像画素221から出力された画像信号から高周波成分に対応する高周波信号を抽出することで、複数の撮像画素221から複数の高周波信号を取得する。
The
たとえば、ハイパスフィルター211は、撮像素子22上に撮像画素221A〜221Eが連続して配置されている場合において、これら連続する5つの撮像画素221A〜221Eのうち中央の撮像画素221Cの画像信号の高周波成分を高周波信号として抽出する場合には、連続する5つの撮像画素221A〜221Eの画像信号のそれぞれに対して所定のフィルター処理を施すことで、撮像画素221Cの画像信号の高周波成分を高周波信号として抽出することができる。そして、ハイパスフィルター211により抽出された複数の高周波信号は、第1積算回路212および第1最大値回路213に送出される。
For example, when the imaging pixels 221A to 221E are continuously arranged on the
第1積算回路212は、ハイパスフィルター211により抽出された複数の高周波信号を取得し、取得した複数の高周波信号の積算値を、焦点評価値として算出する。また、本実施形態では、撮影光学系の撮影画面内に複数の焦点検出エリアAFPが設定されており、第1積算回路212は、撮影画面内に設定された焦点検出エリアAFPごとに、焦点評価値を算出する。すなわち、第1積算回路212は、複数の撮像画素221の高周波信号を焦点検出エリアAFPごとに積算することで、焦点検出エリアAFPごとの高周波信号の積算値を焦点評価値として算出する。そして、第1積算回路212により算出された焦点評価値は、焦点検出部216に送出される。
The
なお、焦点検出エリアAFPに対応する撮像画素221の数は、特に限定されず、たとえば、焦点検出エリアAFPを、100×100の1万画素分の撮像画素221に対応する領域として設定することができる。この場合、焦点評価値は、1万画素分の撮像画素221の高周波信号の積算値として算出されることとなる。 Note that the number of the imaging pixels 221 corresponding to the focus detection area AFP is not particularly limited. For example, the focus detection area AFP may be set as an area corresponding to the imaging pixels 221 for 10,000 pixels of 100 × 100. it can. In this case, the focus evaluation value is calculated as an integrated value of the high-frequency signal of the imaging pixels 221 for 10,000 pixels.
第1最大値回路213は、ハイパスフィルター211により抽出された複数の高周波信号を取得し、取得した複数の高周波信号のうち最大の値を、高周波最大値として算出する。また、本実施形態において、第1最大値回路213は、高周波最大値を、焦点検出エリアAFPごとに算出する。すなわち、第1最大値回路213は、焦点検出エリアAFPに対応する複数の撮像画素221の高周波信号のうち最大の値を、高周波最大値として算出することで、焦点検出エリアAFPごとの高周波信号の最大値を、高周波最大値として算出する。たとえば、焦点検出エリアAFPに対応する撮像画素221の数が1万画素である場合、第1最大値回路213は、1万個の撮像画素221から出力された高周波信号の中から、値が最も大きい1つの撮像画素221の高周波信号の値を、高周波最大値として算出することとなる。そして、第1最大値回路213により算出された高周波最大値は、焦点検出部216に送出される。
The first
第2積算回路214は、複数の撮像画素221から出力された複数の画像信号を取得し、取得した複数の画像信号の積算値を、点光源を評価するための点光源評価値として算出する。このように、第2積算回路214では、撮像画素221により出力された画像信号を、ハイパスフィルター211を介さずにそのまま積算することで、点光源評価値を算出する。また、本実施形態において、第2積算回路214は、点光源評価値を、焦点検出エリアAFPごとに算出する。すなわち、第2積算回路214は、複数の撮像画素221の画像信号を焦点検出エリアAFPごとに積算することで、焦点検出エリアAFPごとの画像信号の積算値を点光源評価値として算出する。そして、第2積算回路214により算出された点光源評価値は、焦点検出部216に送出される。
The
第2最大値回路215は、複数の撮像画素221から出力された複数の画像信号を取得し、取得した複数の画像信号のうち最大の値を、画像信号最大値として算出する。また、第2最大値回路215では、第2積算回路214と同様に、撮像画素221により出力された画像信号を、ハイパスフィルター211を介さずにそのまま用いることで、画像信号最大値を算出する。さらに、本実施形態において、第2最大値回路215は、画像信号最大値を、焦点検出エリアAFPごとに算出する。すなわち、第2最大値回路215は、焦点検出エリアAFPに対応する複数の撮像画素221の画像信号のうち最大の値を、画像信号最大値として算出することで、焦点検出エリアAFPごとの画像信号の最大値を、画像信号最大値として算出する。そして、第2最大値回路215により算出された画像信号最大値は、焦点検出部216に送出される。
The second
焦点検出部216は、第1積算回路212から送信された焦点評価値と、第1最大値回路213から送信された高周波最大値と、第2積算回路214から送信された点光源評価値と、第2最大値回路215から送信された画像信号最大値とに基づいて、光学系の焦点状態を検出する。なお、焦点検出部216による焦点検出方法については、後述する。
The
図1に戻り、操作部28は、シャッターレリーズボタンなどの撮影者がカメラ1の各種動作モードを設定するための入力スイッチであり、オートフォーカスモード/マニュアルフォーカスモードの切換が行えるようになっている。この操作部28により設定された各種モードはカメラ制御部21へ送出され、当該カメラ制御部21によりカメラ1全体の動作が制御される。また、シャッターレリーズボタンは、ボタンの半押しでONとなる第1スイッチSW1と、ボタンの全押しでONとなる第2スイッチSW2とを含む。
Returning to FIG. 1, the
次いで、第1実施形態に係るカメラ1の動作例を説明する。図3は、第1実施形態に係るカメラ1の動作を示すフローチャートである。 Next, an operation example of the camera 1 according to the first embodiment will be described. FIG. 3 is a flowchart showing the operation of the camera 1 according to the first embodiment.
まず、ステップS101では、カメラ制御部21により、焦点評価値、高周波最大値、点光源評価値、および画像信号最大値の算出が開始される。具体的には、カメラ制御部21は、まず、レンズ制御部37にフォーカスレンズ32の駆動開始指令を送出し、レンズ制御部37を介して、フォーカスレンズ駆動モータ36に、フォーカスレンズ32を光軸L1に沿って駆動させる。なお、フォーカスレンズ32の駆動は、無限遠端から至近端に向かって行なってもよいし、あるいは、至近端から無限遠端に向かって行なってもよい。
First, in step S101, the
そして、カメラ制御部21は、フォーカスレンズ32を駆動させながら、所定間隔で、複数の撮像画素221から複数の画像信号を読み出し、読み出した複数の画像信号を、図2に示すように、ハイパスフィルター211、第2積算回路214、および第2最大値回路215に送出する。
Then, the
ハイパスフィルター211は、複数の撮像画素221の画像信号から複数の高周波信号を抽出し、抽出した複数の高周波信号を、第1積算回路212および第1最大値回路213に送出する。これにより、第1積算回路212では、複数の高周波信号の積算値が、焦点評価値として、フォーカスレンズ位置ごとに算出され、第1最大値回路213では、複数の高周波信号のうち最大の値が、高周波最大値として、フォーカスレンズ位置ごとに算出される。
The
また、第2積算回路214では、ハイパスフィルター211を介さずに、複数の撮像画素221から複数の画像信号が取得され、取得された複数の画像信号の積算値が、点光源評価値として、フォーカスレンズ位置ごとに算出される。さらに、第2最大値回路215では、ハイパスフィルター211を介さずに、複数の撮像画素221から複数の画像信号が取得され、取得された複数の画像信号のうち最大の値が、画像信号最大値として、フォーカスレンズ位置ごとに算出される。
The
さらに、本実施形態においては、撮影画面内に複数の焦点検出エリアAFPが設定されており、カメラ制御部21は、焦点検出エリアAFPごとに、焦点評価値、高周波最大値、点光源評価値、および画像信号最大値を算出する。すなわち、本実施形態において、第1積算回路212は、複数の撮像画素221の高周波信号を焦点検出エリアAFPごとに積算することで、焦点評価値を焦点検出エリアAFPごとに算出し、また、第1最大値回路213は、焦点検出エリアAFPに対応する複数の撮像画素221の高周波信号のうち最大の値を焦点検出エリアAFPごとに算出することで、高周波最大値を焦点検出エリアAFPごとに算出する。同様に、第2積算回路214は、複数の撮像画素221の画像信号を焦点検出エリアAFPごとに積算することで、点光源評価値を焦点検出エリアAFPごとに算出し、第2最大値回路215は、焦点検出エリアAFPに対応する複数の撮像画素221の画像信号のうち最大の値を焦点検出エリアAFPごとに算出することで、画像信号最大値を、焦点検出エリアAFPごとに算出する。
Further, in the present embodiment, a plurality of focus detection areas AFP are set in the shooting screen, and the
このように、カメラ制御部21は、焦点評価値、高周波最大値、点光源評価値、および画像信号最大値を、焦点検出エリアAFPごと、フォーカスレンズ位置ごとに算出する。なお、カメラ制御部21は、ステップS101以降においても、フォーカスレンズ32を駆動させながら、焦点評価値、高周波最大値、点光源評価値、および、画像信号最大値を繰り返し算出する。
As described above, the
ステップS102では、カメラ制御部21により、撮像素子22により撮像された撮像画像の中から人物の顔領域の検出が行われる。たとえば、カメラ制御部21は、予め記憶している人物の顔のテンプレート画像データ(基準画像データ)と、撮像された撮像画像とを比較することにより、撮像画像の中から人物の顔領域を検出することができる。そして、ステップS103では、カメラ制御部21により、ステップS102において、人物の顔領域を検出できたか否かの判断が行われる。人物の顔領域を検出できた場合には、ステップS108に進み、一方、人物の顔領域を検出できなかった場合には、ステップS104に進む。
In step S <b> 102, the
ステップS104では、カメラ制御部21により、点光源により画像信号が飽和しているか否かの判断が行われる。ここで、夜景撮影時など撮影画面が全体的に暗い場合には、露光を調整するために画像信号の増幅が行われる。この場合に、点光源などの高輝度被写体が存在する場合には、高輝度被写体に対応する画像信号も増幅されてしまうため、高輝度被写体に対応する画像信号が飽和してしまう場合がある。そこで、ステップS104において、カメラ制御部21は、たとえば、画像全体の輝度の平均値が所定値以下であり、かつ、ステップS101において、フォーカスレンズ32を駆動させながら画像信号最大値を算出した結果、画像信号最大値が、撮像画素221が出力可能な画像信号の上限値(出力上限値)となったレンズ位置を検出できた場合に、点光源により画像信号が飽和していると判断することができる。そして、点光源により画像信号が飽和していると判断された場合には、ステップS107に進み、一方、点光源により画像信号が飽和していないと判断された場合には、ステップS105に進む。
In step S104, the
なお、ステップS104においては、焦点検出を行うための焦点検出エリアAFPが設定されている場合には、焦点検出を行うために設定された焦点検出エリアAFP内において、点光源により画像信号が飽和しているか否かを判断する。一方、焦点検出を行うための焦点検出エリアAFPが設定されていない場合には、撮影画面内に設定されている全ての焦点検出エリアAFPにおいて、点光源により画像信号が飽和しているか否かを判断することができる。 In step S104, when the focus detection area AFP for performing focus detection is set, the image signal is saturated by the point light source in the focus detection area AFP set for performing focus detection. Judge whether or not. On the other hand, if the focus detection area AFP for performing focus detection is not set, whether or not the image signal is saturated by the point light source in all the focus detection areas AFP set in the shooting screen. Judgment can be made.
そして、ステップS104において、点光源により画像信号が飽和していないと判断された場合には、ステップS105において、カメラ制御部21により、焦点評価値が最大となるレンズ位置が合焦位置として検出される。
If it is determined in step S104 that the image signal is not saturated by the point light source, in step S105, the
ここで、図4は、点光源により画像信号が飽和している場合の焦点評価値と、画像信号が飽和していない場合の焦点評価値の一例を示す図である。たとえば、点光源により連続する複数の撮像画素221の画像信号が飽和している場合には、連続する複数の撮像画素221の画像信号は飽和により一定の値(出力上限値)となる。そのため、このような撮像画素221の画像信号に基づいて被写体の高周波成分(コントラスト)を検出することができず、図4に示すように、被写体にピントの合うレンズ位置(被写体位置)において、高周波信号の積算値である焦点評価値が低下してしまう場合がある。一方で、点光源のフレアの影響により、被写体位置よりも無限遠側および被写体位置よりも至近側において焦点評価値が大きい値で算出され、その結果、図4に示すように、被写体位置よりも無限遠側および被写体位置よりも至近側のレンズ位置において、焦点評価値のピークがそれぞれ検出される場合がある。このような場合に、焦点評価値のピーク位置を合焦位置として検出してしまうと、被写体にピントを合わせることができなくなってしまう。 Here, FIG. 4 is a diagram illustrating an example of the focus evaluation value when the image signal is saturated by the point light source and the focus evaluation value when the image signal is not saturated. For example, when image signals of a plurality of continuous imaging pixels 221 are saturated by a point light source, the image signals of the plurality of continuous imaging pixels 221 become a constant value (output upper limit value) due to saturation. For this reason, the high frequency component (contrast) of the subject cannot be detected based on the image signal of the imaging pixel 221 as described above, and as shown in FIG. The focus evaluation value, which is the integrated value of the signal, may decrease. On the other hand, due to the influence of the flare of the point light source, the focus evaluation value is calculated to be larger at the infinity side than the subject position and closer to the subject position. As a result, as shown in FIG. In some cases, the peak of the focus evaluation value is detected at the infinity side and the lens position closer to the subject position. In such a case, if the peak position of the focus evaluation value is detected as the in-focus position, the subject cannot be focused.
これに対して、画像信号が飽和していない場合には、隣接する複数の撮像画素221の画像信号が飽和により一定の値(出力上限値)となることはなく、被写体位置において被写体の輪郭に応じた高周波成分(コントラスト)を適切に検出することができる。そのため、図4に示すように、画像信号が飽和していない場合には、被写体位置において焦点評価値のピークを1つだけ適切に検出することができる。そこで、本実施形態では、画像信号が飽和していない場合には、焦点評価値のピーク位置を、合焦位置として検出する。なお、カメラ制御部21は、焦点評価値が、2回上昇した後、さらに、2回下降して推移した場合に、これらの焦点評価値を用いて、3点内挿法などの演算を行うことで、焦点評価値のピーク位置を検出することができる。
On the other hand, when the image signal is not saturated, the image signals of the plurality of adjacent imaging pixels 221 do not become a constant value (output upper limit value) due to saturation, and the contour of the subject at the subject position does not occur. The corresponding high frequency component (contrast) can be detected appropriately. Therefore, as shown in FIG. 4, when the image signal is not saturated, only one peak of the focus evaluation value can be appropriately detected at the subject position. Therefore, in this embodiment, when the image signal is not saturated, the peak position of the focus evaluation value is detected as the in-focus position. The
そして、ステップS106では、カメラ制御部21により、ステップS105で検出された合焦位置(焦点評価値のピーク位置)までフォーカスレンズ32を駆動させる合焦駆動が行われる。具体的には、カメラ制御部21は、フォーカスレンズ32を合焦位置まで駆動するために必要なレンズ駆動量を算出し、算出したレンズ駆動量を、レンズ制御部37を介してレンズ駆動モータ36に送出する。そして、レンズ駆動モータ36は、受信したレンズ駆動量に基づいて、フォーカスレンズ32を合焦位置まで駆動させる。
In step S106, the
一方、ステップS104において、点光源により画像信号が飽和していると判断された場合には、ステップS107に進み、ステップS107において、カメラ制御部21により、点光源評価値が最小となるレンズ位置が合焦位置として検出される。ここで、夜景撮影時にイルミネーションを撮影する場面など、点光源が検出される場面では、点光源にピントを合わせることが好ましい場面が多いため、カメラ制御部21は、点光源である高輝度被写体にピントの合うレンズ位置を合焦位置として検出する。
On the other hand, if it is determined in step S104 that the image signal is saturated by the point light source, the process proceeds to step S107. In step S107, the lens position where the point light source evaluation value is minimized is determined by the
ここで、点光源である高輝度被写体にピントが合うほど、点光源の像は小さくなり、その分、点光源により飽和する撮像画素221の画素数が少なくなる。そのため、焦点検出エリアAFP内に点光源が存在する場合には、点光源にピントが合うほど、焦点検出エリアAFP内の画像信号を積算した点光源評価値は小さくなる傾向にある。そこで、カメラ制御部21は、点光源評価値が最小となるレンズ位置を、点光源である高輝度被写体にピントが合うレンズ位置、すなわち、点光源位置として検出する。
Here, the more focused a high-luminance subject that is a point light source, the smaller the image of the point light source, and the corresponding number of image pickup pixels 221 that are saturated by the point light source. Therefore, when a point light source exists in the focus detection area AFP, the point light source evaluation value obtained by integrating the image signals in the focus detection area AFP tends to decrease as the point light source is focused. Therefore, the
図5は、点光源により画像信号が飽和している場合の焦点評価値と点光源評価値の一例を示す図である。たとえば、夜間にイルミネーションを撮影する場合など、被写体が点光源であり、撮像画素221の画像信号が点光源により飽和している場合には、図5に示すように、被写体(点光源)にピントが合うレンズ位置(被写体位置)において、焦点評価値が低下し、被写体位置において、焦点評価値のピークを検出できない場合がある。これに対して、点光源評価値は、点光源である高輝度被写体にピントが合うレンズ位置(被写体位置)において最小の値が得られるため、点光源評価値が最小となるレンズ位置を合焦位置として検出することで、被写体(点光源)にピントを合わせることができる。そして、ステップS106に進み、ステップS107で検出された合焦位置(点光源評価値が最小となるレンズ位置)にフォーカスレンズ32を駆動させる合焦駆動が行われる。
FIG. 5 is a diagram illustrating an example of the focus evaluation value and the point light source evaluation value when the image signal is saturated by the point light source. For example, if the subject is a point light source and the image signal of the imaging pixel 221 is saturated by the point light source, such as when shooting illumination at night, as shown in FIG. 5, the subject (point light source) is in focus. In some cases, the focus evaluation value decreases at a lens position (subject position) that matches, and the peak of the focus evaluation value cannot be detected at the subject position. On the other hand, the point light source evaluation value is the smallest value at the lens position (subject position) that focuses on the high-brightness subject that is the point light source, and thus the lens position where the point light source evaluation value is the minimum is focused. By detecting the position, it is possible to focus on the subject (point light source). Then, the process proceeds to step S106, and in-focus driving is performed to drive the
また、ステップS103において、人物の顔領域が検出できたと判断された場合には、ステップS108に進む。ステップS108では、カメラ制御部21により、人物の顔領域を含む焦点検出エリアAFPが、焦点検出を行うための検出対象エリアAFPとして特定される。そして、ステップS109では、ステップS104と同様に、点光源により画像信号が飽和しているか否かの判断が行われる。
If it is determined in step S103 that the face area of the person has been detected, the process proceeds to step S108. In step S108, the
ステップS109において、点光源により画像信号が飽和していないと判断された場合には、ステップS110に進み、ステップS110において、ステップS105と同様に、焦点評価値が最大となるフォーカスレンズ位置が合焦位置として検出される。一方、ステップS109において、点光源により画像信号が飽和していると判断された場合には、ステップS111に進む。 If it is determined in step S109 that the image signal is not saturated by the point light source, the process proceeds to step S110. In step S110, as in step S105, the focus lens position where the focus evaluation value is maximum is in focus. It is detected as a position. On the other hand, if it is determined in step S109 that the image signal is saturated by the point light source, the process proceeds to step S111.
ステップS111では、カメラ制御部21により、検出対象エリアAFPにおいて高周波最大値が最大となるレンズ位置が合焦位置として検出される。ここで、夜間撮影時に、眼鏡をかけた特定被写体(人の顔)を撮影する場合において、たとえば、カメラ1と、特定被写体(人の顔)と、点光源とが、図6に示す位置関係である場合には、点光源が眼鏡に反射してしまう場合があり、このような場合に、点光源評価値が最小となるレンズ位置を合焦位置として検出してしまうと、点光源にピントが合ってしまい、人物の顔にピントを合わせることができない場合がある。すなわち、図6に示すように、特定被写体(人の顔)〜撮像素子22までの光軸方向の距離D2と、点光源〜特定被写体(人の顔)〜撮像素子22までの光軸方向の距離D1+D2とが異なるため、点光源にピントを合わせてしまうと、人物の顔にピントを合わせることができない場合がある。なお、図6は、カメラ1と特定被写体(人の顔)と点光源との位置関係の一例を示す図である。
In step S111, the
また、図7は、点光源が眼鏡で反射している場面における、焦点評価値、点光源評価値、および高周波最大値の一例を示す図である。点光源が眼鏡に反射している場面においては、図6に示すように、撮像素子22から被写体までの距離D2と、撮像素子22から点光源までの距離D1+D2が異なる。そのため、点光源評価値は、図7に示すように、点光源にピントが合う点光源位置において最小となり、点光源評価値が最小となるレンズ位置にフォーカスレンズ32を駆動させた場合には、点光源にピントが合ってしまい、特定被写体(人の顔)にピントが合った画像を撮影することはできない。
FIG. 7 is a diagram illustrating an example of a focus evaluation value, a point light source evaluation value, and a high frequency maximum value in a scene where the point light source is reflected by glasses. In a scene where the point light source is reflected on the glasses, as shown in FIG. 6, the distance D2 from the
これに対して、高周波最大値は、被写体の高周波成分(コントラスト)に応じた値であり、高周波最大値が最大となるレンズ位置は、被写体の高周波成分(コントラスト)が最も大きくなるレンズ位置といえる。そのため、高周波最大値が最大となるレンズ位置を合焦位置として検出することで、特定被写体(人の顔)にピントが合った画像を適切に撮影することができる。 On the other hand, the high frequency maximum value is a value corresponding to the high frequency component (contrast) of the subject, and the lens position where the maximum high frequency value is the maximum can be said to be the lens position where the high frequency component (contrast) of the subject is the largest. . Therefore, by detecting the lens position where the maximum high-frequency value is maximum as the in-focus position, it is possible to appropriately capture an image focused on a specific subject (human face).
また、点光源により画像信号が飽和している場合には、複数の撮像画素221の高周波信号を積分した焦点評価値は、点光源による飽和の影響が大きくなるが、高周波最大値は、複数の撮像画素221のうち値が最も大きい1つの撮像画素221の高周波信号の値であるため、点光源による飽和の影響を小さくすることができる。そのため、高周波成分が最大となるレンズ位置を合焦位置として検出することで、点光源により画像信号が飽和している場合でも、特定被写体(人の顔)に対応する合焦位置を検出することが可能となる。そして、ステップS106では、フォーカスレンズ32を合焦位置(高周波最大値が最大となるレンズ位置)に駆動させる合焦駆動が行われる。
In addition, when the image signal is saturated by the point light source, the focus evaluation value obtained by integrating the high frequency signals of the plurality of imaging pixels 221 is greatly affected by the saturation by the point light source, but the maximum high frequency value is a plurality of values. Since it is the value of the high-frequency signal of one imaging pixel 221 having the largest value among the imaging pixels 221, the influence of saturation by the point light source can be reduced. Therefore, by detecting the lens position where the high frequency component is maximum as the in-focus position, the in-focus position corresponding to the specific subject (human face) can be detected even when the image signal is saturated by the point light source. Is possible. In step S106, focus drive is performed to drive the
以上のように、本実施形態では、点光源により画像信号が飽和している場合において、焦点検出エリアAFPで人物の顔領域が特定された場合には、高周波最大値が最大となるレンズ位置を合焦位置として検出する。これにより、図6に示すように、撮像素子22〜特定被写体(人の顔)までの距離D1と、撮像素子22〜特定被写体(人の顔)〜点光源までの距離D1+D2とが異なるために、点光源である高輝度被写体にピントを合わせてしまうと、点光源にピントが合ってしまい、人の顔にピントが合わせることができない場合でも、図7に示すように、高周波最大値が最大となるレンズ位置を合焦位置として検出することで、特定被写体(人の顔)にピントが合った画像を適切に撮像することが可能となる。
As described above, in the present embodiment, when a human face region is specified in the focus detection area AFP when the image signal is saturated by the point light source, the lens position where the maximum high-frequency value is maximized is determined. It is detected as the in-focus position. Accordingly, as shown in FIG. 6, the distance D1 from the
特に、本実施形態では、点光源により画像信号が飽和しているために、複数の撮像画素221の高周波信号を積算した焦点評価値では、点光源により画像信号の飽和の影響により、被写体にピントが合うレンズ位置(合焦位置)を適切に検出することができない場合でも、複数の撮像画素221のうち値が最も大きい1つの撮像画素221の高周波信号の値である高周波最大値を用いることで、点光源による飽和の影響を小さくすることができため、点光源により画像信号が飽和している場合でも、対象被写体(人の顔)にピントの合うレンズ位置を合焦位置として適切に検出することができる。 In particular, in this embodiment, since the image signal is saturated by the point light source, the focus evaluation value obtained by integrating the high-frequency signals of the plurality of imaging pixels 221 focuses on the subject due to the influence of the saturation of the image signal by the point light source. Even when it is not possible to appropriately detect the lens position (in-focus position) that matches, the high-frequency maximum value that is the value of the high-frequency signal of one imaging pixel 221 having the largest value among the plurality of imaging pixels 221 is used. Since the influence of saturation by the point light source can be reduced, even when the image signal is saturated by the point light source, the lens position in focus on the target subject (human face) is appropriately detected as the in-focus position. be able to.
さらに、本実施形態では、点光源により画像信号が飽和していない場合には、焦点評価値が最大となるレンズ位置を合焦位置として検出する。これにより、本実施形態では、複数の撮像画素221の高周波信号に基づいて合焦位置を検出することができるため、合焦位置を適切に検出することができる。また、本実施形態では、点光源により画像信号が飽和している場合であり、かつ、人物の顔領域が検出されていない場合には、点光源評価値が最小となるレンズ位置を合焦位置として検出する。この場合も、複数の撮像画素221の画像信号に基づいて合焦位置を適切に検出することができるため、合焦位置を適切に検出することができる。このように、本実施形態では、撮影環境に応じて、光学系の焦点状態を検出するためのデータを選択的に用いることで、より精度の高い焦点検出が可能となる。 Furthermore, in this embodiment, when the image signal is not saturated by the point light source, the lens position where the focus evaluation value is maximized is detected as the in-focus position. Thereby, in this embodiment, since a focus position can be detected based on the high frequency signal of the some imaging pixel 221, it can detect a focus position appropriately. Further, in the present embodiment, when the image signal is saturated by the point light source and the face area of the person is not detected, the lens position where the point light source evaluation value is minimum is determined as the in-focus position. Detect as. Also in this case, since the focus position can be appropriately detected based on the image signals of the plurality of imaging pixels 221, the focus position can be detected appropriately. As described above, in the present embodiment, it is possible to perform focus detection with higher accuracy by selectively using data for detecting the focus state of the optical system according to the shooting environment.
《第2実施形態》
次に、第2実施形態に係るカメラ1aについて説明する。第2実施形態に係るカメラ1aは、図8に示すように、第1実施形態に係るカメラ1の構成に加えて、AF補助光発光部29を備える。なお、図8は、第2実施形態に係るカメラ1aを示す構成図である。
<< Second Embodiment >>
Next, the camera 1a according to the second embodiment will be described. As shown in FIG. 8, the camera 1 a according to the second embodiment includes an AF auxiliary
AF補助光発光部29は、カメラ制御部21の制御により、AF補助光を発光する。具体的には、カメラ制御部21は、被写体が低輝度であると判断された場合や、被写体のコントラストが低いと判断された場合に、AF補助光を発光するための制御信号を、AF補助光発光部29に送出する。そして、AF補助光発光部29は、この制御信号に基づいて、AF補助光の発光駆動を行う。
The AF auxiliary
続いて、第2実施形態に係るカメラ1aの動作について説明する。図9は、第2実施形態に係るカメラ1aの動作を示すフローチャートである。 Next, the operation of the camera 1a according to the second embodiment will be described. FIG. 9 is a flowchart showing the operation of the camera 1a according to the second embodiment.
ステップS201では、第1実施形態のステップS101と同様に、フォーカスレンズ32を駆動させながら、焦点評価値、高周波最大値、点光源評価値、および、画像信号最大値の算出が開始される。そして、ステップS202では、カメラ制御部21により、AF補助光発光部29によりAF補助光の発光が行われているか否かの判断が行われる。たとえば、カメラ制御部21は、被写体が低輝度であると判断された場合や、被写体のコントラストが低いと判断された場合に、AF補助光を発光するための制御信号をAF補助光発光部29に送出しており、この制御信号をAF補助光発光部29に送出している場合に、AF補助光発光部29によりAF補助光の発光が行われていると判断することができる。そして、AF補助光発光部29によりAF補助光の発光が行われていると判断された場合には、ステップS205に進み、一方、AF補助光発光部29によりAF補助光の発光が行われていないと判断された場合には、ステップS203に進む。
In step S201, as in step S101 of the first embodiment, calculation of the focus evaluation value, the high frequency maximum value, the point light source evaluation value, and the image signal maximum value is started while driving the
ステップS203では、第1実施形態のステップS105と同様に、焦点評価値が最大となるレンズ位置が合焦位置として検出され、その後、ステップS204において、フォーカスレンズ32を合焦位置(焦点評価値が最大となるレンズ位置)まで駆動させる合焦駆動が行われる。
In step S203, as in step S105 of the first embodiment, the lens position at which the focus evaluation value is maximized is detected as the focus position. Then, in step S204, the
また、ステップS202において、AF補助光発光部29によりAF補助光の発光が行われていると判断された場合には、ステップS205に進む。そして、ステップS205〜S212では、第1実施形態のステップS102〜S104,S107〜S111と同様の処理が行われる。
If it is determined in step S202 that the AF auxiliary
すなわち、人物の顔領域の検出が行われ(ステップS205)、人物の顔領域が検出できない場合において(ステップS206=No)、点光源(AF補助光)により画像信号が飽和していないと判断された場合には(ステップS207=No)、焦点評価値が最大となるレンズ位置が合焦位置として検出され(ステップS203)、点光源(AF補助光)により画像信号が飽和していると判断された場合には(ステップS207=Yes)、点光源評価値が最小となるレンズ位置が合焦位置として検出される(ステップS208)。 That is, when the human face area is detected (step S205) and the human face area cannot be detected (step S206 = No), it is determined that the image signal is not saturated by the point light source (AF auxiliary light). If this is the case (step S207 = No), the lens position with the maximum focus evaluation value is detected as the in-focus position (step S203), and it is determined that the image signal is saturated by the point light source (AF auxiliary light). If it is detected (step S207 = Yes), the lens position with the smallest point light source evaluation value is detected as the in-focus position (step S208).
また、人物の顔領域が検出できた場合においては(ステップS206=Yes)、人物の顔領域を含む焦点検出エリアAFPが検出対象エリアAFPとして特定された後に(ステップS209)、検出対象エリアAFPにおいて、点光源(AF補助光)により画像信号が飽和しているか否かの判断が行われる(ステップS210)。そして、点光源(AF補助光)により画像信号が飽和していないと判断された場合には(ステップS210=No)、焦点評価値が最大となるレンズ位置が合焦位置として検出され(ステップS211)、点光源(AF補助光)により画像信号が飽和していると判断された場合には(ステップS210=Yes)、高周波最大値が最大となるレンズ位置が合焦位置として検出される(ステップS212)。 When the face area of the person can be detected (step S206 = Yes), after the focus detection area AFP including the face area of the person is specified as the detection target area AFP (step S209), the detection target area AFP Then, it is determined whether or not the image signal is saturated by the point light source (AF auxiliary light) (step S210). If it is determined that the image signal is not saturated by the point light source (AF auxiliary light) (step S210 = No), the lens position where the focus evaluation value is maximum is detected as the focus position (step S211). ) When it is determined that the image signal is saturated by the point light source (AF auxiliary light) (step S210 = Yes), the lens position at which the maximum high-frequency value is maximum is detected as the in-focus position (step S210). S212).
以上のように、第2実施形態では、AF補助光が発光されているか否かを判断し、AF補助光が発光されている場合において、点光源(AF補助光)により画像信号が飽和しており、人物の顔領域を検出できた場合に、高周波最大値が最大となるレンズ位置を合焦位置として検出する。これにより、本実施形態では、AF補助光を照射した場合において、AF補助光が対象被写体である人の眼鏡に反射した場合でも、人の顔にピントが合った画像を適切に撮像することができる。 As described above, in the second embodiment, it is determined whether or not AF auxiliary light is emitted. When the AF auxiliary light is emitted, the image signal is saturated by the point light source (AF auxiliary light). When the face area of the person can be detected, the lens position where the maximum high frequency value is maximized is detected as the in-focus position. Thus, in the present embodiment, when AF auxiliary light is irradiated, even when the AF auxiliary light is reflected on the glasses of the person who is the target subject, it is possible to appropriately capture an image focused on the person's face. it can.
《第3実施形態》
次に、第3実施形態に係るカメラ1aについて説明する。第3実施形態に係るカメラ1aは、図8に示すように、第2実施形態に係るカメラ1aと同様の構成を備え、以下に説明するように動作すること以外は、第2実施形態に係るカメラ1aと同様に動作する。
<< Third Embodiment >>
Next, the camera 1a according to the third embodiment will be described. As shown in FIG. 8, the camera 1 a according to the third embodiment has the same configuration as the camera 1 a according to the second embodiment, and operates according to the second embodiment except that it operates as described below. It operates similarly to the camera 1a.
第3実施形態においては、カメラ1aの操作部28を介して、撮影者が、焦点検出を行うための焦点検出エリアAFPを選択することができる。操作部28を介して、撮影者により焦点検出エリアAFPが選択された場合、カメラ制御部21は、選択された焦点検出エリアAFPを検出対象エリアAFPとして設定する。
In the third embodiment, the photographer can select a focus detection area AFP for performing focus detection via the
続いて、第3実施形態に係るカメラ1aの動作について説明する。図10は、第3実施形態に係るカメラ1aの動作を示すフローチャートである。 Next, the operation of the camera 1a according to the third embodiment will be described. FIG. 10 is a flowchart showing the operation of the camera 1a according to the third embodiment.
ステップS301では、第1実施形態のステップS101と同様に、フォーカスレンズ32を駆動させながら、焦点評価値、高周波最大値、点光源評価値、および、画像信号最大値の算出が開始される。そして、ステップS302では、第2実施形態のステップS202と同様に、AF補助光発光部29によるAF補助光の発光が行われているか否かの判断が行われる。AF補助光の発光が行われていない場合には、ステップS303に進み、ステップS303において、焦点評価値が最大となるレンズ位置が合焦位置として検出され、その後、ステップS304において、合焦位置にフォーカスレンズ32を駆動させる合焦駆動が行われる。一方、AF補助光の発光が行われていると判断された場合には、ステップS305に進む。
In step S301, as in step S101 of the first embodiment, calculation of the focus evaluation value, the high frequency maximum value, the point light source evaluation value, and the image signal maximum value is started while driving the
ステップS305では、カメラ制御部21により、操作部28を介して撮影者が検出対象エリアAFPを選択しているか否かの判断が行われる。操作部28を介して撮影者が検出対象エリアAFPを選択している場合には、ステップS306に進み、ステップS307において、カメラ制御部21により、検出対象エリアAFP内において、人物の顔領域の検出が行われる。一方、操作部28を介して撮影者が検出対象エリアを選択していない場合には、ステップS307に進み、カメラ制御部21により、全ての焦点検出エリアAFPにおいて人物の顔領域の検出が行われる。
In step S <b> 305, the
ステップS308では、カメラ制御部21により、ステップS306またはステップS307における顔領域の検出により、人物の顔領域が検出されたか否かの判断が行われる。人物の顔領域が検出されない場合には、ステップS309に進む。ステップS309では、点光源(AF補助光)により画像信号が飽和しているか否かの判断が行われ、点光源(AF補助光)により画像信号が飽和していない場合には、焦点評価値が最大となるレンズ位置が合焦位置として検出され(ステップS303)、点光源(AF補助光)により画像信号が飽和している場合には、点光源評価値が最小となるレンズ位置が合焦位置として検出される(ステップS310)。
In step S308, the
一方、ステップS308において、人物の顔領域が検出された場合には、ステップS311に進む。ステップS311では、点光源(AF補助光)により画像信号が飽和しているか否かの判断が行われ、点光源(AF補助光)により画像信号が飽和していない場合には、焦点評価値が最大となるレンズ位置が合焦位置として検出され(ステップS312)、点光源(AF補助光)により画像信号が飽和している場合には、高周波最大値が最大となるレンズ位置が合焦位置として検出される(ステップS313)。 On the other hand, if a human face area is detected in step S308, the process proceeds to step S311. In step S311, it is determined whether the image signal is saturated by the point light source (AF auxiliary light). If the image signal is not saturated by the point light source (AF auxiliary light), the focus evaluation value is determined. When the maximum lens position is detected as the in-focus position (step S312) and the image signal is saturated by the point light source (AF auxiliary light), the lens position with the maximum high-frequency value is set as the in-focus position. It is detected (step S313).
以上のように、第3実施形態では、操作部28を介して撮影者により選択された対象検出エリアAFPが選択された場合には、選択された対象検出エリアAFP内において、人物の顔領域の検出が行われる。そして、対象検出エリアAFPにおいて、人物の顔が検出され、さらに、画像信号が飽和していると判断された場合に、高周波最大値が最大となるレンズ位置を合焦位置として検出する。これにより、本実施形態では、操作部28を介して撮影者により、対象検出エリアAFPとして特定被写体(人の顔)を含む焦点検出エリアAFPが選択された場面において、点光源が対象被写体の眼鏡に反射している場合でも、人物の顔にピントが合った画像を適切に撮像することができる。
As described above, in the third embodiment, when the target detection area AFP selected by the photographer is selected via the
なお、以上説明した実施形態は、本発明の理解を容易にするために記載されたものであって、本発明を限定するために記載されたものではない。したがって、上記の実施形態に開示された各要素は、本発明の技術的範囲に属する全ての設計変更や均等物をも含む趣旨である。 The embodiment described above is described for facilitating the understanding of the present invention, and is not described for limiting the present invention. Therefore, each element disclosed in the above embodiment is intended to include all design changes and equivalents belonging to the technical scope of the present invention.
たとえば、上述した実施形態では、画像信号の積算値を、点光源評価値として算出する構成を例示したが、この構成に限定されず、たとえば、画像信号の積算値と焦点評価値との差分値を点光源評価値として算出する構成としてもよい。また、画像信号の積算値に所定の係数を乗じた値と焦点評価値との差分値を点光源評価値として算出する構成としてもよい。これらの場合も、点光源に対応するレンズ位置において点光源評価値が最も小さくなるため、点光源評価値が最小となるレンズ位置を、点光源位置として検出することができる。 For example, in the above-described embodiment, the configuration in which the integrated value of the image signal is calculated as the point light source evaluation value is exemplified. However, the configuration is not limited to this configuration, and for example, the difference value between the integrated value of the image signal and the focus evaluation value May be calculated as a point light source evaluation value. Further, a difference value between a value obtained by multiplying the integrated value of the image signal by a predetermined coefficient and the focus evaluation value may be calculated as the point light source evaluation value. Also in these cases, since the point light source evaluation value is the smallest at the lens position corresponding to the point light source, the lens position where the point light source evaluation value is minimum can be detected as the point light source position.
また、上述した実施形態では、検出対象エリアAFP内における高周波最大値を算出する場合に、検出対象エリアAFPに対応する全ての撮像画素221の画像信号から高周波信号を抽出し、検出対象エリアAFPに対応する全ての撮像画素221の高周波信号のうち最大の値を、高周波最大値として算出する構成を例示したが、この構成に限定されず、たとえば、検出対象エリアAFPに対応する所定数の撮像画素221のみから高周波信号を抽出し、これら所定数の高周波信号のうち最大の値を、高周波最大値として算出する構成としてもよい。また、検出対象エリアAFP内の撮像画素221の高周波信号を所定数の撮像画素221ごとに積算し、複数の高周波信号の積算値のうち最大の値を、高周波最大値として算出する構成としてもよい。また、画像信号最大値を算出する場合においても同様に行うことができる。 Further, in the above-described embodiment, when the maximum high frequency value in the detection target area AFP is calculated, high frequency signals are extracted from the image signals of all the imaging pixels 221 corresponding to the detection target area AFP, and the detection target area AFP is extracted. Although the configuration in which the maximum value among the high-frequency signals of all the corresponding imaging pixels 221 is calculated as the maximum high-frequency value is exemplified, the present invention is not limited to this configuration. For example, a predetermined number of imaging pixels corresponding to the detection target area AFP A configuration may be adopted in which a high-frequency signal is extracted from only 221 and the maximum value among the predetermined number of high-frequency signals is calculated as the maximum high-frequency value. Alternatively, the high-frequency signals of the imaging pixels 221 in the detection target area AFP may be integrated for each predetermined number of imaging pixels 221 and the maximum value among the integrated values of the plurality of high-frequency signals may be calculated as the maximum high-frequency value. . The same can be done when calculating the maximum value of the image signal.
さらに、上述した実施形態では、点光源により画像信号が飽和しており、かつ、人物の顔領域が特定された場合に、高周波最大値が最大となるレンズ位置を合焦位置として検出する構成を例示したが、この構成に限定されず、たとえば、撮像画像に基づいて、人が眼鏡を掛けているか否かを判断し、人が眼鏡を掛けていると判断できた場合に、高周波最大値が最大となるレンズ位置を合焦位置として検出する構成としてもよい。 Furthermore, in the above-described embodiment, when the image signal is saturated by the point light source and the face area of the person is specified, a configuration in which the lens position where the maximum high-frequency value is maximum is detected as the in-focus position. Although illustrated, it is not limited to this configuration. For example, when it is determined whether a person is wearing glasses based on a captured image and it can be determined that the person is wearing glasses, the maximum value of the high frequency is The maximum lens position may be detected as the in-focus position.
さらに、上述した実施形態では、ハイパスフィルター211を備え、ハイパスフィルター211により撮像画素221の画像信号から高周波信号を抽出する構成を例示したが、この構成に限定されず、たとえば、バンドパスフィルターを備え、バンドパスフィルターを用いて、撮像画素221の画像信号から特定の周波数成分に対応する周波数信号を抽出する構成としてもよい。
Further, in the above-described embodiment, the configuration in which the high-
なお、上述した実施形態のカメラ1は特に限定されず、例えば、デジタルビデオカメラ、レンズ一体型のデジタルカメラ、携帯電話用のカメラなどのその他の光学機器に本発明を適用してもよい。 The camera 1 of the embodiment described above is not particularly limited, and the present invention may be applied to other optical devices such as a digital video camera, a lens-integrated digital camera, and a camera for a mobile phone.
1…デジタルカメラ
2…カメラ本体
21…カメラ制御部
211…ハイパスフィルター
212…第1積算回路
213…第1最大値回路
214…第2積算回路
215…第2最大値回路
22…撮像素子
221…撮像画素
29…AF補助光発光部
3…レンズ鏡筒
32…フォーカスレンズ
36…フォーカスレンズ駆動モータ
37…レンズ制御部
DESCRIPTION OF SYMBOLS 1 ...
Claims (8)
前記画像信号に基づいて前記像に含まれる顔領域を特定被写体として特定する特定部と、
前記光学系による像面に設定された複数の焦点検出領域のうち前記特定被写体に対応する前記焦点検出領域を検出対象領域として設定する設定部と、
所定値以上の輝度の被写体を高輝度被写体として検出する検出部と、
前記画像信号から特定の周波数成分に対応する周波数信号を抽出する抽出部と、
前記検出対象領域内の複数の画像領域において抽出された複数の前記周波数信号を積算して第1積算値として出力する第1積算値出力部と、
前記検出対象領域内の複数の画像領域における前記画像信号を積算して第2積算値として出力する第2積算値出力部と、
前記検出対象領域内の複数の画像領域において抽出された複数の前記周波数信号の最大値を出力する最大値出力部と、
前記第1積算値または前記最大値を用いて、前記光学系の焦点状態を検出する焦点検出部と、を備え、
前記焦点検出部は、
前記特定部による前記顔領域が特定され、かつ、前記検出対象領域において前記検出部により前記高輝度被写体が検出された場合、前記最大値を用いて前記光学系の焦点状態を検出し、
前記特定部による前記顔領域が特定され、かつ、前記検出対象領域において前記検出部により前記高輝度被写体が検出されない場合、前記第1積算値を用いて前記光学系の焦点状態を検出し、
前記特定部による前記顔領域が特定されず、かつ、前記検出部により前記高輝度被写体が検出された場合、前記第2積算値を用いて前記光学系の焦点状態を検出することを特徴とする焦点検出装置。 An acquisition unit for acquiring an image signal corresponding to an image by an optical system including a focusing lens;
A specifying unit that specifies a face area included in the image as a specific subject based on the image signal;
A setting unit that sets, as a detection target region, the focus detection region corresponding to the specific subject among a plurality of focus detection regions set on an image plane by the optical system;
A detection unit for detecting a subject having a luminance of a predetermined value or higher as a high-luminance subject;
An extraction unit for extracting a frequency signal corresponding to a specific frequency component from the image signal;
A first integration value output unit for outputting as a first integration value by integrating a plurality of said frequency signal extracted in a plurality of image areas within the detection target area,
A second integrated value output unit that integrates the image signals in a plurality of image regions within the detection target region and outputs the result as a second integrated value;
And the maximum value output unit for outputting a maximum value of a plurality of said frequency signal extracted in a plurality of image areas within the detection target area,
Using the first cumulative value or previous Symbol maximum value, and a focus detection unit which detects a focus state of said optical system,
The focus detection unit
Wherein the face region by the identification unit is specified, and the high when the luminance subject is detected, prior SL using the maximum value to detect the focus state of the optical system by the detection unit in the detection target area,
When the face region by the specifying unit is specified and the high-luminance subject is not detected by the detection unit in the detection target region, the focus state of the optical system is detected using the first integrated value ,
The focus state of the optical system is detected using the second integrated value when the face area is not specified by the specifying unit and the high-luminance subject is detected by the detecting unit. Focus detection device.
前記第1積算値出力部は、前記焦点調節レンズの所定のレンズ位置ごとに、前記周波数信号の積算値を出力し、
前記最大値出力部は、前記焦点調節レンズの所定のレンズ位置ごとに、前記周波数信号の最大値を出力し、
前記焦点検出部は、前記検出対象領域において前記高輝度被写体が検出されている場合には、前記周波数信号の最大値が最も大きいレンズ位置を合焦位置として検出し、前記検出対象領域において前記高輝度被写体が検出されていない場合には、前記第1積算値が最も大きいレンズ位置を合焦位置として検出することを特徴とする焦点検出装置。 The focus detection apparatus according to claim 1,
The first integrated value output unit outputs an integrated value of the frequency signal for each predetermined lens position of the focus adjustment lens,
The maximum value output unit outputs the maximum value of the frequency signal for each predetermined lens position of the focus adjustment lens,
When the high-intensity subject is detected in the detection target area, the focus detection unit detects a lens position having the largest maximum value of the frequency signal as an in-focus position, and the high-frequency subject is detected in the detection target area. A focus detection apparatus that detects a lens position having the largest first integrated value as an in-focus position when a luminance subject is not detected.
前記検出部は、前記像に相当する画像の全体の輝度の平均値が所定値以下であり、前記光学系を駆動させながらの前記画像信号の最大値が撮像画素の出力上限値となる前記焦点調節レンズの位置を検出することで、前記高輝度被写体を検出することを特徴とする焦点検出装置。 The focus detection apparatus according to claim 1 or 2,
The focus is such that the average value of the overall luminance of the image corresponding to the image is not more than a predetermined value, and the maximum value of the image signal while driving the optical system is the output upper limit value of the imaging pixel. A focus detection apparatus that detects the high-luminance subject by detecting a position of an adjustment lens.
被写体を照明するための照明光を発光しているか否かを判断する判断部を備え、
前記焦点検出部は、前記判断部により前記照明光を発光していると判断され、かつ、前記検出対象領域において前記検出部により前記高輝度被写体が検出された場合、前記周波数信号の最大値を用いて前記光学系の焦点状態を検出することを特徴とする焦点検出装置。 The focus detection apparatus according to claim 1,
A determination unit for determining whether or not the illumination light for illuminating the subject is emitted;
The focus detection unit determines the maximum value of the frequency signal when the determination unit determines that the illumination light is emitted and the detection unit detects the high-intensity subject in the detection target region. A focus detection apparatus that detects a focus state of the optical system.
前記焦点検出部は、前記判断部により前記照明光を発光していないと判断された場合、前記第1積算値を用いて前記光学系の焦点状態を検出することを特徴とする焦点検出装置。 The focus detection apparatus according to claim 4,
The focus detection device, wherein the focus detection unit detects a focus state of the optical system using the first integrated value when the determination unit determines that the illumination light is not emitted.
前記複数の焦点検出領域の中から一つをユーザが選択可能な選択部を備えることを特徴とする焦点検出装置。 It is a focus detection apparatus in any one of Claims 1-5 ,
A focus detection apparatus comprising: a selection unit that allows a user to select one of the plurality of focus detection areas.
前記選択部により前記一つの焦点検出領域が選択されると、前記特定部は前記一つの焦点検出領域と前記特定被写体に対応する焦点検出領域とが一致する場合に、前記検出対象領域を設定することを特徴とする焦点検出装置。 It is a focus detection apparatus of Claim 6, Comprising:
When the one focus detection region is selected by the selection unit, the specifying unit sets the detection target region when the one focus detection region matches the focus detection region corresponding to the specific subject. A focus detection apparatus.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2013199249A JP6476539B2 (en) | 2013-09-26 | 2013-09-26 | Focus detection apparatus and imaging apparatus |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2013199249A JP6476539B2 (en) | 2013-09-26 | 2013-09-26 | Focus detection apparatus and imaging apparatus |
Related Child Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2019020774A Division JP2019095807A (en) | 2019-02-07 | 2019-02-07 | Focus detection device and imaging apparatus |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2015064520A JP2015064520A (en) | 2015-04-09 |
| JP6476539B2 true JP6476539B2 (en) | 2019-03-06 |
Family
ID=52832432
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2013199249A Active JP6476539B2 (en) | 2013-09-26 | 2013-09-26 | Focus detection apparatus and imaging apparatus |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP6476539B2 (en) |
Family Cites Families (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP3564050B2 (en) * | 1999-08-31 | 2004-09-08 | キヤノン株式会社 | Camera, focus adjustment device, focus adjustment method, medium for providing focus adjustment program |
| JP4265233B2 (en) * | 2003-02-13 | 2009-05-20 | 株式会社ニコン | camera |
| JP4802113B2 (en) * | 2006-03-13 | 2011-10-26 | 富士フイルム株式会社 | Automatic focusing device and photographing device |
| JP2010097167A (en) * | 2008-09-22 | 2010-04-30 | Fujinon Corp | Auto focus device |
| JP2010160297A (en) * | 2009-01-08 | 2010-07-22 | Sony Corp | Imaging apparatus, automatic focusing method, and computer program |
| JP2010180297A (en) * | 2009-02-04 | 2010-08-19 | Kuraray Co Ltd | Zinc sulfide phosphor and process of producing the same |
| JP2011015222A (en) * | 2009-07-02 | 2011-01-20 | Fujifilm Corp | Imaging apparatus, and imaging control method |
| KR101593995B1 (en) * | 2009-09-22 | 2016-02-15 | 삼성전자주식회사 | Method for Auto focusing medium for recording the method and apparatus applying the method |
| JP5780756B2 (en) * | 2010-12-24 | 2015-09-16 | キヤノン株式会社 | Focus adjustment apparatus and method |
| JP5615756B2 (en) * | 2011-03-31 | 2014-10-29 | 富士フイルム株式会社 | Imaging apparatus and imaging program |
-
2013
- 2013-09-26 JP JP2013199249A patent/JP6476539B2/en active Active
Also Published As
| Publication number | Publication date |
|---|---|
| JP2015064520A (en) | 2015-04-09 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP5789091B2 (en) | IMAGING DEVICE AND IMAGING DEVICE CONTROL METHOD | |
| WO2013088917A1 (en) | Image processing device, image processing method, and recording medium | |
| JP6151867B2 (en) | Imaging device, imaging device body, and lens barrel | |
| JP2011248160A (en) | Imaging device, imaging system, and method and program for controlling imaging device | |
| JP5171468B2 (en) | IMAGING DEVICE AND IMAGING DEVICE CONTROL METHOD | |
| JP2018072554A (en) | Imaging device and focus adjustment method | |
| JP6300670B2 (en) | Focus adjustment apparatus, focus adjustment method and program, and imaging apparatus | |
| JP5936358B2 (en) | Image display device, image display method, imaging device and control method thereof, program, and storage medium storing the same | |
| JP2021056532A (en) | Imaging device and control method therefor | |
| JP6154080B2 (en) | Imaging device, imaging device body, and lens barrel | |
| JP2019095807A (en) | Focus detection device and imaging apparatus | |
| JP2015064521A (en) | Focus detection device, focus adjustment device, and imaging apparatus | |
| JP4170194B2 (en) | Imaging device | |
| US20130242159A1 (en) | Imaging device and display process method | |
| JP5978620B2 (en) | Imaging device | |
| JP6476539B2 (en) | Focus detection apparatus and imaging apparatus | |
| JP6511716B2 (en) | Focus detection device and imaging device | |
| JP6223502B2 (en) | Image processing apparatus, image processing method, program, and storage medium storing the same | |
| JP2007101857A (en) | Focus adjustment device and digital camera | |
| JP6138632B2 (en) | Imaging apparatus, imaging method, and program | |
| JP5977526B2 (en) | Image processing apparatus and image processing method | |
| JP2011114442A (en) | Electronic camera | |
| JP2011002688A (en) | Photometric unit and imaging apparatus | |
| JP6293334B2 (en) | Imaging apparatus, imaging method, and program | |
| JP6361100B2 (en) | Focus detection device, lens barrel, and camera body |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20160921 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20170419 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20170502 |
|
| A601 | Written request for extension of time |
Free format text: JAPANESE INTERMEDIATE CODE: A601 Effective date: 20170630 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20170901 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20180313 |
|
| A601 | Written request for extension of time |
Free format text: JAPANESE INTERMEDIATE CODE: A601 Effective date: 20180511 |
|
| 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: 20190108 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20190121 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 6476539 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |