JP2015219487A - Imaging device and control method of the same - Google Patents

Imaging device and control method of the same Download PDF

Info

Publication number
JP2015219487A
JP2015219487A JP2014105214A JP2014105214A JP2015219487A JP 2015219487 A JP2015219487 A JP 2015219487A JP 2014105214 A JP2014105214 A JP 2014105214A JP 2014105214 A JP2014105214 A JP 2014105214A JP 2015219487 A JP2015219487 A JP 2015219487A
Authority
JP
Japan
Prior art keywords
face
subject
detected
distance information
information
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
JP2014105214A
Other languages
Japanese (ja)
Inventor
理紗 小泉
Risa Koizumi
理紗 小泉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP2014105214A priority Critical patent/JP2015219487A/en
Publication of JP2015219487A publication Critical patent/JP2015219487A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PROBLEM TO BE SOLVED: To provide a mechanism that allows an AF control to correctly focus on a main subject intended by a user.SOLUTION: An imaging device comprises: distance information acquisition means (S501) that acquires focus detection information on a phase difference detection method as distance information to a subject from an image pickup element 22 photoelectrically converting a subject image formed via a photographing optical system; face detection means (S504) that detects a face in a photograph screen on the basis of a photograph signal acquired from the image pickup element 22; face area acquisition means (S505) that acquires an area of the face from face detection information when the face is detected; determination means (S506) that determines whether the detected face is a face of a main subject or a face of other subject on the basis of the acquired area of the face and the focus detection information; and in-focus means (S507 and 508) that focuses on the main subject when the detected face is determined to be the face of the main subject, and focuses on a subject other than other subject when the detected face is a face of the other subject.

Description

本発明は、焦点調節機能を備えるデジタルカメラやデジタルビデオカメラ等の撮像装置、及びその制御方法に関する。   The present invention relates to an imaging apparatus such as a digital camera or a digital video camera having a focus adjustment function, and a control method thereof.

デジタルカメラ等の撮像装置では、CCDセンサやCMOSセンサ等の撮像素子を用いてオートフォーカス(AF)制御を行うものがある(特許文献1)。AF制御は、被写体として例えば人物を検出し、検出した被写体までの距離情報を求め、求めた距離情報に基づいて被写体が被写界深度内に入るように、撮像レンズの焦点距離と焦点位置と絞りとを調整する。また、コントラスト方式でAF制御を行う撮像素子を用い、被写体に顔写真が含まれていてもAFに要する時間を短縮する技術が開示されている(特許文献2)。   Some imaging devices such as digital cameras perform autofocus (AF) control using an imaging element such as a CCD sensor or a CMOS sensor (Patent Document 1). AF control detects, for example, a person as a subject, obtains distance information to the detected subject, and sets the focal length and focal position of the imaging lens so that the subject falls within the depth of field based on the obtained distance information. Adjust the aperture. In addition, a technique is disclosed in which an imaging element that performs AF control using a contrast method is used to reduce the time required for AF even if a subject includes a face photograph (Patent Document 2).

特開平06−303491号公報Japanese Patent Laid-Open No. 06-303491 特開2012−42833号公報JP 2012-42833 A

しかし、上記特許文献1及び2では、AF制御において、例えば、検出した被写体に「人等の顔が印刷された看板」と「人等の主被写体」がある場合に、ユーザが主被写体に合焦させたいと意図しているにも関わらず、看板に合焦してしまうという問題がある。   However, in Patent Documents 1 and 2, in AF control, for example, when a detected subject includes a “signboard printed with a person's face” and a “main subject such as a person”, the user matches the main subject. There is a problem of focusing on a signboard even though it is intended to be burnt.

そこで、本発明は、AF制御においてユーザが意図している主被写体に対して正確に合焦させることができる仕組みを提供することを目的とする。   Accordingly, an object of the present invention is to provide a mechanism that can accurately focus on a main subject intended by a user in AF control.

上記目的を達成するために、本発明の撮像装置は、撮影光学系を介して結像した被写体像を光電変換する撮像素子から被写体までの距離情報としての位相差検出方式の焦点検出情報を取得する距離情報取得手段と、前記撮像素子から取得した撮像信号に基づいて、撮像画面内の顔を検出する顔検出手段と、前記顔検出手段により顔が検出された場合に、顔検出情報から顔の面積を取得する顔面積取得手段と、前記顔面積取得手段により取得された顔の面積と前記焦点検出情報とに基づいて、前記顔検出手段により検出された顔が主被写体の顔か他の被写体の顔かを判定する判定手段と、前記判定手段により前記検出された顔が主被写体の顔と判定された場合に、当該主被写体に焦点を合わせ、前記判定手段により前記検出された顔が他の被写体の顔と判定された場合に、当該他の被写体を除く被写体に焦点を合わせる合焦手段と、を備えることを特徴とする。   To achieve the above object, the imaging apparatus of the present invention acquires focus detection information of a phase difference detection method as distance information from an imaging element that photoelectrically converts a subject image formed through a photographing optical system to the subject. A distance information acquisition unit that detects a face in the imaging screen based on an imaging signal acquired from the imaging element, and a face detected from the face detection information when the face is detected by the face detection unit. Based on the face area acquired by the face area acquiring means and the focus detection information, the face detected by the face detecting means is the face of the main subject or other A determination means for determining whether the face is a subject; and when the detected face is determined to be the face of the main subject by the determination means, the main subject is focused, and the detected face is determined by the determination means. Other subjects If it is determined that the face, characterized in that it comprises a focusing means to focus on the subject with the exception of the other object, the.

本発明の撮像装置は、撮影光学系を介して結像した被写体像を光電変換する撮像素子から被写体までの距離情報としての位相差検出方式の焦点検出情報を取得するとともに、前記被写体の周辺領域までの距離情報を取得する距離情報取得手段と、前記撮像素子から取得した撮像信号に基づいて、撮像画面内の顔を検出する顔検出手段と、前記顔検出手段により検出された顔の周辺領域までの前記距離情報の平均値と前記焦点検出情報との差分が閾値を超える場合、前記検出された顔が主被写体の顔であると判定し、前記平均値と前記焦点検出情報との差分が前記閾値以下の場合、前記検出された顔が他の被写体の顔であると判定する判定手段と、前記判定手段により前記検出された顔が主被写体の顔と判定された場合に、当該主被写体に焦点を合わせ、前記判定手段により前記検出された顔が他の被写体の顔と判定された場合に、当該他の被写体を除く被写体に焦点を合わせる合焦手段と、を備えることを特徴とする。   The imaging apparatus according to the present invention acquires focus detection information of a phase difference detection method as distance information from an imaging element that photoelectrically converts a subject image formed through a photographing optical system to a subject, and a peripheral region of the subject Distance information acquisition means for acquiring distance information up to, a face detection means for detecting a face in an imaging screen based on an imaging signal acquired from the imaging element, and a peripheral region of the face detected by the face detection means If the difference between the average value of the distance information and the focus detection information exceeds a threshold value, it is determined that the detected face is the face of the main subject, and the difference between the average value and the focus detection information is A determination unit that determines that the detected face is the face of another subject when the threshold is equal to or less than the threshold; and the main subject when the detected unit determines that the detected face is the face of the main subject Focus on Combined, wherein when said detected face the judgment means judges that the face of the other object, characterized in that it comprises a focusing means to focus on the subject with the exception of the other object, the.

本発明の撮像装置は、撮影光学系を介して結像した被写体像を光電変換する撮像素子から被写体までの距離情報としての位相差検出方式の焦点検出情報を取得する距離情報取得手段と、前記撮像素子から取得した撮像信号に基づいて、撮像画面内の顔を検出する顔検出手段と、前記顔検出手段により2つの顔が検出された場合に、前記検出された2つの顔の距離情報において近い側の距離情報をD1とし、遠い側の距離情報をD2とすると、D1/D2が閾値以下で、かつズーム操作がなされたときに、前記距離情報が遠い側の顔が主被写体の顔であると判定し、D1/D2が前記閾値以下で、かつズーム操作がなされないとき、及びD1/D2が前記閾値を超えるときは、前記距離情報が近い側の顔が主被写体の顔であると判定する判定手段と、前記判定手段により前記主被写体と判定された顔に対して焦点を合わせる合焦手段と、を備えることを特徴とする。   An imaging apparatus according to the present invention includes distance information acquisition means for acquiring focus detection information of a phase difference detection method as distance information from an imaging element that photoelectrically converts a subject image formed through a photographing optical system to a subject, Based on the imaging signal acquired from the imaging device, when two faces are detected by the face detection means for detecting the face in the imaging screen and the face detection means, the distance information of the detected two faces Assuming that the distance information on the near side is D1 and the distance information on the far side is D2, when D1 / D2 is equal to or smaller than the threshold and a zoom operation is performed, the face on the far side where the distance information is the face of the main subject When D1 / D2 is equal to or smaller than the threshold value and the zoom operation is not performed, and when D1 / D2 exceeds the threshold value, the face with the closest distance information is the face of the main subject. Judge to judge When, characterized in that it and a focusing means focusing against determined face as the main subject by the determining means.

本発明によれば、AF制御においてユーザが意図している主被写体に対して正確に合焦させることができる。   According to the present invention, it is possible to accurately focus on a main subject intended by a user in AF control.

本発明の撮像装置の実施形態の一例であるデジタルカメラを背面側から見た斜視図である。It is the perspective view which looked at the digital camera which is an example of the embodiment of the imaging device of the present invention from the back side. 図1に示すデジタルカメラの電気系の構成例を示すブロック図である。It is a block diagram which shows the structural example of the electric system of the digital camera shown in FIG. 撮像素子の1画素の構成を概略的に示す図である。It is a figure which shows roughly the structure of 1 pixel of an image pick-up element. 撮像レンズの射出瞳から出た光束が撮像素子に入射する様子を概念的に示す断面図である。It is sectional drawing which shows notionally the mode that the light beam emitted from the exit pupil of an imaging lens injects into an image pick-up element. デジタルカメラのAF制御の一例を示すフローチャート図である。It is a flowchart figure which shows an example of AF control of a digital camera. (a)は撮像素子から取得した撮像画像の被写体が実際に存在する人である場合の図、(b)は撮像素子から取得した撮像画像の被写体が看板等に印刷された「顔」である場合の図である。(A) is a diagram in the case where the subject of the captured image acquired from the image sensor is actually a person, and (b) is a “face” in which the subject of the captured image acquired from the image sensor is printed on a signboard or the like. FIG. カメラと被写体との位置関係を示す図である。It is a figure which shows the positional relationship of a camera and a to-be-photographed object. 図5のステップS502で取得した被写体までの距離と、距離から推定される「顔」の面積との関係を変換テーブルとして示すグラフ図である。FIG. 6 is a graph showing the relationship between the distance to the subject acquired in step S502 of FIG. 5 and the area of the “face” estimated from the distance as a conversion table. 図8に示す変換テーブルを図6及び図7に示す被写体に適用した場合を示すグラフ図である。FIG. 9 is a graph showing a case where the conversion table shown in FIG. 8 is applied to the subject shown in FIGS. 6 and 7. 本発明の他の実施形態を示す図である。It is a figure which shows other embodiment of this invention. 本発明の他の実施形態を示す図である。It is a figure which shows other embodiment of this invention. 本発明の他の実施形態を示す図である。It is a figure which shows other embodiment of this invention. 本発明の他の実施形態を示す図である。It is a figure which shows other embodiment of this invention.

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

図1は、本発明の撮像装置の実施形態の一例であるデジタルカメラを背面側から見た斜視図である。   FIG. 1 is a perspective view of a digital camera, which is an example of an embodiment of an imaging apparatus according to the present invention, as viewed from the back side.

図1に示すように、本実施形態のデジタルカメラ100は、背面側に表示部28、操作部70、及びモード切替スイッチ60等が配置され、正面側(被写体側)には、後述する撮像レンズ103やバリア102等が配置される。デジタルカメラ100の上面部には、レリーズボタン61や電源スイッチ72等が配置され、デジタルカメラ100を背面側から見て右側の側部には、接続ケーブル111が接続されるコネクタ112が配置される。また、デジタルカメラ100の底面部には、メモリカード等の記録媒体200が着脱可能に装着される記録媒体スロット201が配置され、記録媒体スロット201は、蓋部202により開閉可能とされている。   As shown in FIG. 1, the digital camera 100 according to the present embodiment includes a display unit 28, an operation unit 70, a mode switch 60, and the like on the back side, and an imaging lens (to be described later) on the front side (subject side). 103, barrier 102, and the like are arranged. A release button 61, a power switch 72, and the like are disposed on the top surface of the digital camera 100, and a connector 112 to which the connection cable 111 is connected is disposed on the right side when the digital camera 100 is viewed from the back side. . In addition, a recording medium slot 201 into which a recording medium 200 such as a memory card is detachably mounted is disposed on the bottom surface of the digital camera 100, and the recording medium slot 201 can be opened and closed by a lid 202.

図2は、図1に示すデジタルカメラ100の電気系の概略構成例を示すブロック図である。図2において、撮像レンズ103は、ズームレンズ及びフォーカスレンズ等を含む撮影光学系であり、バリア102により保護される。シャッタ101は、絞り機能を備え、撮像レンズ103及びシャッタ101を通過した被写体像は、撮像素子22に結像する。   FIG. 2 is a block diagram showing a schematic configuration example of the electrical system of the digital camera 100 shown in FIG. In FIG. 2, an imaging lens 103 is a photographing optical system including a zoom lens, a focus lens, and the like, and is protected by a barrier 102. The shutter 101 has a diaphragm function, and the subject image that has passed through the imaging lens 103 and the shutter 101 forms an image on the imaging element 22.

撮像素子22は、CCDセンサやCMOSセンサ等で構成され、結像した被写体像を光電変換する。また、撮像素子22は、A/D変換機能を有し、光電変換したアナログ画像信号をデジタル画像信号に変換した後、画像データとしてAF評価値検出部23、メモリ制御部15及び画像処理部24に出力する。   The image sensor 22 is composed of a CCD sensor, a CMOS sensor, or the like, and photoelectrically converts the formed subject image. The image sensor 22 has an A / D conversion function, converts an analog image signal obtained by photoelectric conversion into a digital image signal, and then converts the analog image signal into an AF evaluation value detection unit 23, a memory control unit 15, and an image processing unit 24 as image data. Output to.

AF評価値検出部23は、デジタル画像信号から得られるコントラスト情報等からAF評価値を算出し、算出したAF評価値をシステム制御部50に出力する。ストロボ装置90は、撮影時に発光させることにより低照度シーンでの撮影や逆光シーンでの撮影時に照度を補うことができる。   The AF evaluation value detection unit 23 calculates an AF evaluation value from contrast information obtained from the digital image signal, and outputs the calculated AF evaluation value to the system control unit 50. The strobe device 90 can compensate for illuminance when shooting in a low-light scene or shooting in a backlight scene by emitting light during shooting.

画像処理部24は、撮像素子22から出力される画像データ、又はメモリ制御部15からの画像データに対して画素補間、縮小等のリサイズ処理、及び色変換処理を行う。また、画像処理部24では、撮像した画像データを用いて所定の演算処理が行われ、得られた演算結果に基づいてシステム制御部50が露光制御やAF制御を行う。これにより、TTL方式のAE処理、EF(フラッシュ自動調光発光)処理が行われる。また、画像処理部24では、AF処理が行われるが、このときAF評価値検出部23の出力が用いられることもある。画像処理部24では、更に、撮像した画像データを用いて所定の演算処理を行い、得られた演算結果に基づいてTTL方式のAWB(オートホワイトバランス)処理も行っている。   The image processing unit 24 performs resizing processing such as pixel interpolation and reduction, and color conversion processing on the image data output from the image sensor 22 or the image data from the memory control unit 15. The image processing unit 24 performs predetermined calculation processing using the captured image data, and the system control unit 50 performs exposure control and AF control based on the obtained calculation result. Thereby, TTL type AE processing and EF (flash automatic light control emission) processing are performed. The image processing unit 24 performs AF processing. At this time, the output of the AF evaluation value detection unit 23 may be used. The image processing unit 24 further performs predetermined calculation processing using the captured image data, and also performs TTL AWB (auto white balance) processing based on the obtained calculation result.

撮像素子22から出力さ画像データは、画像処理部24及びメモリ制御部15を介して、或いはメモリ制御部15を介してメモリ32に直接書き込まれる。メモリ32は、所定枚数の静止画像や所定時間の動画像および音声を格納するのに十分な記憶容量を備えている。また、メモリ32は、画像表示用のメモリ(ビデオメモリ)を兼ねている。D/A変換器13は、メモリ32に格納されている表示用の画像データをアナログ画像信号に変換して表示部28に供給する。これにより、メモリ32に書き込まれた表示用の画像データはD/A変換器13を介して表示部28に表示される。   Image data output from the image sensor 22 is directly written into the memory 32 via the image processing unit 24 and the memory control unit 15 or via the memory control unit 15. The memory 32 has a storage capacity sufficient to store a predetermined number of still images, a moving image and sound for a predetermined time. The memory 32 also serves as an image display memory (video memory). The D / A converter 13 converts the display image data stored in the memory 32 into an analog image signal and supplies the analog image signal to the display unit 28. Thus, the display image data written in the memory 32 is displayed on the display unit 28 via the D / A converter 13.

表示部28は、LCD等で構成され、D/A変換器13からのアナログ画像信号に応じた表示を行う。撮像素子22でA/D変換されてメモリ32に蓄積されたデジタル画像信号をD/A変換器13においてアナログ変換し、表示部28に逐次転送して表示することで、電子ビューファインダとして機能させて、スルー画像を表示することができる。また、表示部28には、各種機能ボタン等が配置されるタッチパネルが設けられる。   The display unit 28 is composed of an LCD or the like, and performs display according to the analog image signal from the D / A converter 13. The digital image signal A / D converted by the image sensor 22 and stored in the memory 32 is converted into an analog signal by the D / A converter 13 and sequentially transferred to the display unit 28 for display, thereby functioning as an electronic viewfinder. Through images can be displayed. The display unit 28 is provided with a touch panel on which various function buttons and the like are arranged.

不揮発性メモリ56は、電気的に消去・記録可能なメモリであり、例えばフラッシュメモリ等が用いられる。不揮発性メモリ56には、システム制御部50の動作用の定数、制御プログラム等が記憶される。   The nonvolatile memory 56 is an electrically erasable / recordable memory, and for example, a flash memory or the like is used. The nonvolatile memory 56 stores constants for operating the system control unit 50, control programs, and the like.

システム制御部50は、デジタルカメラ100全体の制御を司る。システム制御部50は、不揮発性メモリ56に記録された制御プログラムをシステムメモリ52に展開して実行する。また、システム制御部50は、メモリ32、D/A変換器13、及び表示部28等を制御することにより表示制御も行う。システムメモリ52は、RAMが用いられる。システムメモリ52には、システム制御部50の動作用の定数、変数等が記録される。システムタイマ53は、各種制御に用いる時間や内蔵された時計の時間を計測する計時部である。   The system control unit 50 controls the entire digital camera 100. The system control unit 50 expands and executes the control program recorded in the nonvolatile memory 56 in the system memory 52. The system control unit 50 also performs display control by controlling the memory 32, the D / A converter 13, the display unit 28, and the like. The system memory 52 is a RAM. In the system memory 52, constants, variables and the like for operation of the system control unit 50 are recorded. The system timer 53 is a time measuring unit that measures the time used for various controls and the time of a built-in clock.

モード切替スイッチ60は、システム制御部50の動作モードを静止画記録モード、動画記録モード、再生モード等のいずれかに切り替える。静止画記録モードに含まれるモードとしては、オート撮影モード、オートシーン判別モード、マニュアルモード、撮影シーン別の撮影設定となる各種シーンモード、プログラムAEモード、カスタムモード等がある。モード切替スイッチ60により、静止画撮影モードに含まれるこれらのモードのいずれかに直接切り替えられる。なお、モード切替スイッチ60で静止画撮影モードに一旦切り替えた後に、静止画撮影モードに含まれるこれらのモードのいずれかに、他の操作部材を用いて切り替えるようにしてもよい。同様に、動画撮影モードにも複数のモードが含まれていてもよい。   The mode switch 60 switches the operation mode of the system control unit 50 to any one of a still image recording mode, a moving image recording mode, a reproduction mode, and the like. Modes included in the still image recording mode include an auto shooting mode, an auto scene discrimination mode, a manual mode, various scene modes for shooting settings for each shooting scene, a program AE mode, a custom mode, and the like. The mode changeover switch 60 can directly switch to one of these modes included in the still image shooting mode. It should be noted that after switching to the still image shooting mode once with the mode switch 60, it may be switched to any of these modes included in the still image shooting mode using another operation member. Similarly, the moving image shooting mode may include a plurality of modes.

レリーズボタン61は、例えば半押し(撮影準備指示)操作でSW1がオンとなり、システム制御部50は、SW1のオン信号により、AF処理、AE処理、AWB処理、及びEF処理等の動作を開始する。また、レリーズボタン61は、例えば全押し(撮影指示)操作でオンとなり、システム制御部50は、SW2のオン信号により、撮像素子22からの信号読み出しから記録媒体200に画像データを書き込むまでの一連の撮影処理の動作を開始する。操作部70は、ユーザからの各種操作を受け付ける各種スイッチ、ダイアル、ボタン、タッチパネル等で構成される。   For example, when the release button 61 is pressed halfway (shooting preparation instruction), SW1 is turned on, and the system control unit 50 starts operations such as AF processing, AE processing, AWB processing, and EF processing in response to the SW1 on signal. . Further, the release button 61 is turned on by, for example, a full press (shooting instruction) operation, and the system control unit 50 performs a series of operations from reading a signal from the image sensor 22 to writing image data on the recording medium 200 by an ON signal of SW2. The shooting process starts. The operation unit 70 includes various switches, dials, buttons, a touch panel, and the like that receive various operations from the user.

電源制御部80は、電池検出回路、DC−DCコンバータ、及び通電するブロックを切り替えるスイッチ回路等により構成され、電池の装着の有無、電池の種類、電池残量の検出を行う。また、電源制御部80は、その検出結果及びシステム制御部50の指示に基づいてDC−DCコンバータを制御し、必要な電圧を必要な期間、記録媒体200を含む各部へ供給する。電源部40は、アルカリ電池やリチウム電池等の一次電池やNiCd電池やNiMH電池、Li電池等の二次電池、ACアダプター等からなる。記録媒体I/F18は、メモリカード等の記録媒体200とのインタフェースである。   The power supply control unit 80 includes a battery detection circuit, a DC-DC converter, a switch circuit that switches a block to be energized, and the like, and detects whether or not a battery is attached, the type of battery, and the remaining battery level. Further, the power control unit 80 controls the DC-DC converter based on the detection result and an instruction from the system control unit 50, and supplies a necessary voltage to each unit including the recording medium 200 for a necessary period. The power supply unit 40 includes a primary battery such as an alkaline battery or a lithium battery, a secondary battery such as a NiCd battery, a NiMH battery, or a Li battery, an AC adapter, or the like. The recording medium I / F 18 is an interface with the recording medium 200 such as a memory card.

本実施形態のデジタルカメラ100では、中央1点AFや顔AFを用いた撮影が可能である。中央1点AFとは、撮影画面内の中央位置の1点に対してAFを行うことである。顔AFとは、顔検出機能によって検出された撮影画面内の顔に対してAFを行うことである。   In the digital camera 100 according to the present embodiment, it is possible to perform photographing using the central one-point AF or the face AF. The center one-point AF is to perform AF on one point at the center position in the photographing screen. The face AF is to perform AF on the face in the shooting screen detected by the face detection function.

次に、顔検出機能について説明する。システム制御部50は、顔検出対象の画像データを画像処理部24に送る。画像処理部24は、システム制御部50の制御により、当該画像データに水平方向バンドパスフィルタを作用させ、また、処理された画像データに垂直方向バンドパスフィルタを作用させる。これらの水平及び垂直方向のバンドパスフィルタにより、画像データからエッジ成分が検出される。   Next, the face detection function will be described. The system control unit 50 sends the image data to be detected to the image processing unit 24. Under the control of the system control unit 50, the image processing unit 24 causes a horizontal bandpass filter to act on the image data, and causes a vertical bandpass filter to act on the processed image data. By these horizontal and vertical band pass filters, edge components are detected from the image data.

その後、システム制御部50は、検出されたエッジ成分に関してパターンマッチングを行い、目及び鼻、口、耳の候補群を抽出する。そして、システム制御部50は、抽出された目の候補群の中から、予め設定された条件(例えば2つの目の距離、傾き等)を満たすものを、目の対と判断し、目の対があるもののみ目の候補群として絞り込む。   Thereafter, the system control unit 50 performs pattern matching on the detected edge components, and extracts a candidate group of eyes, nose, mouth, and ears. Then, the system control unit 50 determines an eye pair that satisfies a preset condition (for example, distance between two eyes, inclination, etc.) from the extracted eye candidate group. Narrow down the candidate group of only those with.

そして、システム制御部50は、絞り込まれた目の候補群とそれに対応する顔を形成する他のパーツ(鼻、口、耳)を対応付け、また、予め設定した非顔条件フィルタを通すことで、顔を検出する。システム制御部50は、顔の検出結果に応じて顔情報を出力して、処理を終了する。このとき、システム制御部50は、顔の数などの特徴量をシステムメモリ52に記録する。   Then, the system control unit 50 associates the narrowed-down eye candidate group with other parts (nose, mouth, ears) that form the corresponding face, and passes a preset non-face condition filter. , Detect the face. The system control unit 50 outputs face information according to the face detection result, and ends the process. At this time, the system control unit 50 records feature quantities such as the number of faces in the system memory 52.

この顔検出機能により検出した顔に対して、優先的に焦点を合わせるためのモードとして顔検出モードがある。顔検出モードは、ユーザにより有効、無効の切り替えを設定することができる。このように、ライブビュー表示あるいは再生表示される画像データを解析して、画像データの特徴量を抽出して被写体情報を検出することが可能である。なお、本実施形態では、被写体情報として顔情報を例に挙げたが、被写体情報には、他にも赤目情報や目の情報、目つむり情報、笑顔情報等の様々な情報がある。   There is a face detection mode as a mode for preferentially focusing the face detected by the face detection function. The face detection mode can be set to enable / disable by the user. As described above, it is possible to detect subject information by analyzing image data that is displayed in live view or reproduced and extracting feature amounts of the image data. In this embodiment, face information is taken as an example of subject information. However, subject information includes various information such as red-eye information, eye information, eye-brow information, and smile information.

図3は、撮像素子22の1画素の構成を概略的に示す図である。図3に示すように、画素221は、マイクロレンズ222及び複数の光電変換領域としてのフォトダイオード(PD)223,224を有する。なお、図3の例では、2つのPD223,224を示しているが、PDの数は2つ以上であれば特に限定されない。   FIG. 3 is a diagram schematically showing the configuration of one pixel of the image sensor 22. As illustrated in FIG. 3, the pixel 221 includes a microlens 222 and a plurality of photodiodes (PD) 223 and 224 as photoelectric conversion regions. In the example of FIG. 3, two PDs 223 and 224 are shown, but the number of PDs is not particularly limited as long as it is two or more.

図4は、撮像レンズ103の射出瞳から出た光束が撮像素子22に入射する様子を概念的に示す断面図である。図4において、撮像素子22の画素アレイ401には、マイクロレンズ222、カラーフィルタ403、及びPD223,224が配置される。図4の例では、マイクロレンズ222を有する画素に対して、撮像レンズ103の射出瞳406から出た光束の中心を光軸409とする。   FIG. 4 is a cross-sectional view conceptually showing a state where a light beam emitted from the exit pupil of the imaging lens 103 is incident on the imaging element 22. In FIG. 4, a microlens 222, a color filter 403, and PDs 223 and 224 are arranged in the pixel array 401 of the image sensor 22. In the example of FIG. 4, the center of the light beam emitted from the exit pupil 406 of the imaging lens 103 is the optical axis 409 for the pixel having the microlens 222.

図4に示すように、撮像レンズ103の射出瞳406から出る光束のうち、光軸409を境にして、射出瞳406の上側の領域407から出る光束410は、PD224に入射し、射出瞳406の下側の領域408から出る光束411は、PD223に入射する。つまり、PD223,224は、それぞれ撮像レンズ103の射出瞳406の異なる領域の光を受光している。ここで、PD223で受光した信号をA像とし、PD224で受光した信号をB像とすると、A像とB像の対の位相差信号に基づいて焦点ズレ量(デフォーカス量)を算出して、焦点検出情報を取得することができる。   As shown in FIG. 4, among the light fluxes emitted from the exit pupil 406 of the imaging lens 103, the light flux 410 exiting from the region 407 above the exit pupil 406 with the optical axis 409 as a boundary enters the PD 224 and exits the exit pupil 406. A light beam 411 emitted from the lower region 408 enters the PD 223. That is, the PDs 223 and 224 receive light in different regions of the exit pupil 406 of the imaging lens 103, respectively. Here, assuming that the signal received by the PD 223 is an A image and the signal received by the PD 224 is a B image, a focus shift amount (defocus amount) is calculated based on a phase difference signal of a pair of the A image and the B image. Focus detection information can be acquired.

次に、図5乃至図13を参照して、図1に示すデジタルカメラ100の動作例について説明する。図5は、デジタルカメラ100のAF制御の一例を示すフローチャート図である。図5での各処理は、不揮発性メモリ56に記録された制御プログラムをシステムメモリ52に展開されてシステム制御部50のCPU等により実行される。なお、図5の処理が開始される際には、前述した顔検出モードが有効な状態とする。   Next, an operation example of the digital camera 100 shown in FIG. 1 will be described with reference to FIGS. FIG. 5 is a flowchart showing an example of AF control of the digital camera 100. Each process in FIG. 5 is executed by the CPU or the like of the system control unit 50 by developing the control program recorded in the nonvolatile memory 56 in the system memory 52. Note that when the processing of FIG. 5 is started, the above-described face detection mode is enabled.

図5において、ステップS501では、システム制御部50は、撮像素子22から撮像信号を取得し、ステップS502に進む。   In FIG. 5, in step S501, the system control unit 50 acquires an imaging signal from the imaging element 22, and proceeds to step S502.

ステップS502では、システム制御部50は、ステップS501で取得した撮像信号に基づいて被写体までの距離に関する情報(位相差検出方式の焦点検出情報)を取得し、ステップS503に進む。ここでの距離情報取得処理は、前述したように、受光部が2つに分かれている撮像素子のA像とB像の位相差信号に基づいて取得することができる。   In step S502, the system control unit 50 acquires information about the distance to the subject (focus detection information of the phase difference detection method) based on the imaging signal acquired in step S501, and the process proceeds to step S503. As described above, the distance information acquisition process here can be acquired based on the phase difference signals of the A image and the B image of the image sensor in which the light receiving unit is divided into two.

ステップS503では、システム制御部50は、ステップS501で取得した撮像画像から複数の被写体が存在するかを判定する。そして、システム制御部50は、被写体が一つと判定した場合は、ステップS508に進み、複数の被写体が存在すると判定した場合は、ステップS504に進む。   In step S503, the system control unit 50 determines whether there are a plurality of subjects from the captured image acquired in step S501. If the system control unit 50 determines that there is one subject, the system control unit 50 proceeds to step S508. If it is determined that there are a plurality of subjects, the system control unit 50 proceeds to step S504.

ステップS504では、システム制御部50は、複数の被写体に「顔」が存在しているかを判定する。そして、システム制御部50は、複数の被写体に「顔」が存在しない場合は、ステップS508に進み、複数の被写体に「顔」が存在する場合は、ステップS505に進む。ここでの「顔」の存在の有無は、前述した顔検出機能によるシステム制御部50の顔検出情報から判定することができる。   In step S <b> 504, the system control unit 50 determines whether “faces” exist in a plurality of subjects. The system control unit 50 proceeds to step S508 when the “face” does not exist in the plurality of subjects, and proceeds to step S505 when the “face” exists in the plurality of subjects. The presence / absence of the “face” here can be determined from the face detection information of the system control unit 50 by the face detection function described above.

ステップS505では、システム制御部50は、撮像画像内の「顔」の面積(大きさ)を取得し、ステップS506に進む。「顔」の面積情報も同様に、前述した顔検出機能によりシステム制御部50の検出結果から取得することができる。   In step S505, the system control unit 50 acquires the area (size) of the “face” in the captured image, and proceeds to step S506. Similarly, the area information of “face” can be acquired from the detection result of the system control unit 50 by the above-described face detection function.

ステップS506では、システム制御部50は、撮像信号から取得した「顔」までの距離情報とステップS505で取得した「顔」の面積情報から、検出した「顔」が人であるのか、または看板等に印刷された「顔」であるのかを判定する。そして、システム制御部50は、検出した「顔」が人の顔である場合は、ステップS508に進み、検出した「顔」が看板等に印刷された「顔」である場合は、ステップS507に進む。   In step S506, the system control unit 50 determines whether the detected “face” is a person from the distance information to the “face” acquired from the imaging signal and the area information of the “face” acquired in step S505, or a signboard or the like. It is determined whether it is a “face” printed on. The system control unit 50 proceeds to step S508 if the detected “face” is a human face, and proceeds to step S507 if the detected “face” is a “face” printed on a signboard or the like. move on.

ここで、図6乃至図9を参照して、ステップS506での「顔」の判定方法について基に説明する。   Here, with reference to FIG. 6 to FIG. 9, the “face” determination method in step S506 will be described.

図6(a)は撮像素子22から取得した撮像画像の被写体Aが実際に存在する人である場合の図、図6(b)は撮像素子22から取得した撮像画像の被写体Bが看板に印刷された「顔」である場合の図である。ここでは、システム制御部50から取得した被写体A,Bそれぞれの「顔」の面積をY1,Y2とする。   6A is a diagram in the case where the subject A of the captured image acquired from the image sensor 22 is actually a person. FIG. 6B is a diagram in which the subject B of the captured image acquired from the image sensor 22 is printed on the signboard. It is a figure in the case of being made "face". Here, the areas of the “faces” of the subjects A and B acquired from the system control unit 50 are Y1 and Y2.

図7は、カメラと被写体A,Bとの位置関係を示す図である。図7に示すように、カメラと被写体Aとの距離D1、及びカメラと被写体Bとの距離D2は、ステップS502で取得する。   FIG. 7 is a diagram illustrating a positional relationship between the camera and the subjects A and B. As shown in FIG. 7, the distance D1 between the camera and the subject A and the distance D2 between the camera and the subject B are acquired in step S502.

図8は、ステップS502で取得した被写体までの距離Dと、距離Dから推定される「顔」の面積Xとの関係を変換テーブルとして示すグラフ図である。図8の例では、被写体までの距離Dから推定される「顔」の面積Xの最小値をC1とし、被写体までの距離Dから推定される「顔」の面積Xの最大値をC2とする。   FIG. 8 is a graph showing the relationship between the distance D to the subject acquired in step S502 and the area X of the “face” estimated from the distance D as a conversion table. In the example of FIG. 8, the minimum value of the “face” area X estimated from the distance D to the subject is C1, and the maximum value of the “face” area X estimated from the distance D to the subject is C2. .

この場合、システム制御部50が取得した「顔」の面積XをYとすると、C1≦Y≦C2の場合は、検出した「顔」が実際に存在する人の顔と判定し、C2<Yの場合は、検出した「顔」が看板に印刷された「顔」であると判定することができる。   In this case, assuming that the area X of the “face” acquired by the system control unit 50 is Y, if C1 ≦ Y ≦ C2, it is determined that the detected “face” is a human face that actually exists, and C2 <Y In this case, it can be determined that the detected “face” is the “face” printed on the signboard.

図9は、図8に示す変換テーブルを図6及び図7に示す被写体A,Bに適用した場合を示すグラフ図である。図9の例では、距離D1から推定される被写体Aの「顔」の面積Xの最小値はA_C1となり、最大値はA_C2となる。また、距離D2から推定される被写体Bの「顔」の面積Xの最小値はB_C1、最大値はB_C2となる。   FIG. 9 is a graph showing a case where the conversion table shown in FIG. 8 is applied to the subjects A and B shown in FIGS. In the example of FIG. 9, the minimum value of the area X of the “face” of the subject A estimated from the distance D1 is A_C1, and the maximum value is A_C2. In addition, the minimum value of the area X of the “face” of the subject B estimated from the distance D2 is B_C1, and the maximum value is B_C2.

ここで、変換テーブルにより推定される顔面積A_C1〜A_C2,B_C1〜B_C2と、システム制御部50により取得した被写体A,Bの顔面積Y1,Y2とを比較すると、A_C1≦Y1≦A_C2,B_C2<Y2となる。これにより、被写体Aは実際に存在する人の「顔」と判定し、被写体Bは看板に印刷された「顔」であると判定することができる。   Here, when the face areas A_C1 to A_C2 and B_C1 to B_C2 estimated by the conversion table are compared with the face areas Y1 and Y2 of the subjects A and B acquired by the system control unit 50, A_C1 ≦ Y1 ≦ A_C2, B_C2 < Y2. Thereby, it can be determined that the subject A is a “face” of a person who actually exists, and the subject B is a “face” printed on a signboard.

ここでは、実際に存在する人の「顔」と、看板等に印刷された「顔」を例示したが、被写体Aと同距離に大きな「顔」が印字されたポスター等が被写体Bとして存在していた場合にも有効である。また、Y<C1の関係式を用いることで、被写体Aと小さい「顔(マスコットや人形等)」の被写体Bとの判断をすることもできる。   Here, the “face” of a person who actually exists and the “face” printed on a signboard or the like are illustrated, but a poster or the like on which a large “face” is printed at the same distance as the subject A exists as the subject B. It is effective even if it is. Further, by using the relational expression of Y <C1, it is possible to determine the subject A and the subject B having a small “face (mascot, doll, etc.)”.

図5に戻って、ステップS507では、検出した「顔」が看板等に印刷された「顔」であるため、システム制御部50は、他に検出した被写体を主被写体として焦点を合わせ、処理を終了する。   Returning to FIG. 5, in step S507, since the detected “face” is a “face” printed on a signboard or the like, the system control unit 50 focuses on another detected subject as a main subject, and performs processing. finish.

ステップS508では、ステップS503,ステップS504及びステップS506においてそれぞれNoであるため、システム制御部50は、検出した被写体を主被写体として焦点を合わせ、処理を終了する。   In step S508, since each of step S503, step S504, and step S506 is No, the system control unit 50 focuses the detected subject as the main subject, and ends the process.

以上説明したように、本実施形態では、AF制御において、撮像信号から焦点検出情報及び被写体の顔面積情報を取得し、取得した情報から瞬時にユーザが意図している主被写体に対して正確に合焦させることができる。   As described above, in the present embodiment, in AF control, focus detection information and face area information of a subject are acquired from an imaging signal, and the main subject intended by the user is instantly accurately obtained from the acquired information. Can be focused.

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

例えば、上記実施形態では、顔面積情報、被写体までの距離情報(焦点検出情報)及び変換テーブルを用いて看板等に印刷された顔か否かを判定しているが、システム制御部50で検出した顔周辺の焦点検出情報を用いることで更に判定精度を高めることができる。   For example, in the above-described embodiment, it is determined whether the face is printed on a signboard or the like using the face area information, the distance information to the subject (focus detection information), and the conversion table. The determination accuracy can be further increased by using the focus detection information around the face.

図10を参照して説明すると、図10において、被写体A,Bの周辺領域S1,S2までの距離の平均値は、それぞれD1′,D2′で表している。D1′,D2′は、ステップS502)において被写体それぞれの距離データを取得する際に、周辺領域の距離データも併せて取得して平均を算出することで求めることができる。   Referring to FIG. 10, in FIG. 10, the average values of the distances to the peripheral areas S1 and S2 of the subjects A and B are represented by D1 'and D2', respectively. D1 ′ and D2 ′ can be obtained by acquiring the distance data of the surrounding area and calculating the average when acquiring the distance data of each subject in step S502).

そして、平均値D1′,D2′と被写体A,Bの焦点検出情報D1,D2とを比較し、差分が閾値以下であれば検出した「顔」は看板であると判定することができる。例えば、|D1−D1′|>閾値K1の場合は、被写体Aは実際に存在する人の「顔」と判定し、|D2−D2′|≦閾値K1の場合は、被写体Bは看板に印刷された「顔」であると判定することができる。この場合、図5のステップS505の顔面積取得処理は不要となる。   Then, the average values D1 ′ and D2 ′ are compared with the focus detection information D1 and D2 of the subjects A and B. If the difference is equal to or smaller than the threshold value, the detected “face” can be determined to be a signboard. For example, if | D1-D1 ′ |> threshold K1, subject A is determined to be a “face” of a person that actually exists, and if | D2-D2 ′ | ≦ threshold K1, subject B is printed on a signboard. It can be determined that it is the “face”. In this case, the face area acquisition process in step S505 in FIG. 5 is not necessary.

また、上記実施形態では、図5のステップS506において検出した「顔」が看板等に印刷された「顔」であると判定した場合に、ステップS507で看板等の除く他の被写体を主被写体として焦点を合わせているが、これに代えて、次のようにしてもよい。即ち、図5のステップS506において検出した「顔」が看板等に印刷された「顔」であると判定した場合に、検出した「顔」が画面中心部に存在していた場合には、看板等に印刷された「顔」が主被写体であるとみなし、主被写体に焦点を合わせることもできる。   In the above embodiment, if it is determined that the “face” detected in step S506 in FIG. 5 is a “face” printed on a signboard or the like, another subject other than the signboard or the like is set as the main subject in step S507. Although the focus is adjusted, the following may be used instead. That is, if it is determined that the “face” detected in step S506 in FIG. 5 is a “face” printed on a signboard or the like, and if the detected “face” exists in the center of the screen, the signboard It is also possible to consider that the “face” printed on the main subject is the main subject and to focus on the main subject.

図11及び図12を参照して説明すると、図11において、撮像画面の縦横それぞれを4分割した長さをa,bとする。この場合、横:8b/3×縦:3aの領域S3を画面中心部とすると、図12に示す被写体を撮影する場合、看板等に印刷された「顔」を主被写体と判断する。「顔」が撮像画面内のどの位置に存在しているかはシステム制御部50から情報を取得することができる。   Referring to FIG. 11 and FIG. 12, in FIG. 11, the lengths obtained by dividing the vertical and horizontal directions of the imaging screen into four are a and b. In this case, assuming that the area S3 of horizontal: 8b / 3 × vertical: 3a is the center of the screen, when photographing the subject shown in FIG. 12, the “face” printed on the signboard or the like is determined as the main subject. Information on the position of the “face” in the imaging screen can be acquired from the system control unit 50.

また、上記実施形態では、顔面積情報、被写体までの距離情報(焦点検出情報)及び変換テーブルを用いて看板等に印刷された顔か否かを判定しているが、これに限定されない。例えば、図13に示すように、カメラとの距離が十分近い被写体Aとカメラとの距離が遠い被写体Bが存在する場合に、ズーム操作がなされたら主被写体を被写体Bと判定することもできる。   In the above embodiment, the face area information, the distance information to the subject (focus detection information), and the conversion table are used to determine whether the face is printed on a signboard or the like. However, the present invention is not limited to this. For example, as shown in FIG. 13, when there is a subject A that is sufficiently close to the camera and a subject B that is far from the camera, the main subject can be determined to be the subject B if a zoom operation is performed.

具体的には、まず、被写体Aまでの距離D1と被写体Bまでの距離D2との比(D1/D2)を求める。そして、求めた比が閾値K2以下の場合((D1/D2)≦K2)に、ズーム操作がなされると、看板等に印刷された被写体Bの「顔」を主被写体と判定し、被写体A(ここでは人)を他の被写体と判定する。また、(D1/D2)≦K2で、かつズーム操作がなされない場合、及び求めた比が閾値Kを超える場合((D1/D2)>K2)は、被写体Aの顔を主被写体と判定し、被写体Bを他の被写体と判定する。この場合も、図5のステップS505の顔面積取得処理は不要となる。   Specifically, first, a ratio (D1 / D2) of the distance D1 to the subject A and the distance D2 to the subject B is obtained. When the obtained ratio is equal to or less than the threshold value K2 ((D1 / D2) ≦ K2), when the zoom operation is performed, the “face” of the subject B printed on a signboard or the like is determined as the main subject, and the subject A (Here, a person) is determined as another subject. When (D1 / D2) ≦ K2 and no zoom operation is performed, and when the obtained ratio exceeds the threshold K ((D1 / D2)> K2), the face of the subject A is determined as the main subject. The subject B is determined as another subject. Also in this case, the face area acquisition process in step S505 in FIG. 5 is not necessary.

また、本発明は、以下の処理を実行することによっても実現される。即ち、上述した実施形態の機能を実現するソフトウェア(プログラム)を、ネットワーク又は各種記憶媒体を介してシステム或いは装置に供給し、そのシステム或いは装置のコンピュータ(またはCPUやMPU等)がプログラムを読み出して実行する処理である。ネットワーク又は各種記憶媒体を介して取得したソフトウェア(プログラム)をパーソナルコンピュータ(CPU,プロセッサ)にて実行することでも実現できる。   The present invention can also be realized by executing the following processing. That is, software (program) that realizes the functions of the above-described embodiments is supplied to a system or apparatus via a network or various storage media, and a computer (or CPU, MPU, or the like) of the system or apparatus reads the program. It is a process to be executed. It can also be realized by executing software (program) acquired via a network or various storage media on a personal computer (CPU, processor).

22 撮像素子
23 AF評価値検出部
50 システム制御部
52 システムメモリ
56 不揮発性メモリ
100 デジタルカメラ
22 Image sensor 23 AF evaluation value detection unit 50 System control unit 52 System memory 56 Non-volatile memory 100 Digital camera

Claims (7)

撮影光学系を介して結像した被写体像を光電変換する撮像素子から被写体までの距離情報としての位相差検出方式の焦点検出情報を取得する距離情報取得手段と、
前記撮像素子から取得した撮像信号に基づいて、撮像画面内の顔を検出する顔検出手段と、
前記顔検出手段により顔が検出された場合に、顔検出情報から顔の面積を取得する顔面積取得手段と、
前記顔面積取得手段により取得された顔の面積と前記焦点検出情報とに基づいて、前記顔検出手段により検出された顔が主被写体の顔か他の被写体の顔かを判定する判定手段と、
前記判定手段により前記検出された顔が主被写体の顔と判定された場合に、当該主被写体に焦点を合わせ、前記判定手段により前記検出された顔が他の被写体の顔と判定された場合に、当該他の被写体を除く被写体に焦点を合わせる合焦手段と、を備えることを特徴とする撮像装置。
Distance information acquisition means for acquiring focus detection information of a phase difference detection method as distance information from an image sensor that photoelectrically converts a subject image formed through a photographing optical system to the subject;
Face detection means for detecting a face in an imaging screen based on an imaging signal acquired from the imaging element;
Face area acquisition means for acquiring the face area from the face detection information when a face is detected by the face detection means;
Determining means for determining whether the face detected by the face detecting means is the face of the main subject or the face of another subject based on the face area acquired by the face area acquiring means and the focus detection information;
When the determination means determines that the detected face is the face of the main subject, the main object is focused, and when the detection means determines that the detected face is the face of another subject And an in-focus means for focusing on a subject other than the other subject.
撮影光学系を介して結像した被写体像を光電変換する撮像素子から被写体までの距離情報としての位相差検出方式の焦点検出情報を取得するとともに、前記被写体の周辺領域までの距離情報を取得する距離情報取得手段と、
前記撮像素子から取得した撮像信号に基づいて、撮像画面内の顔を検出する顔検出手段と、
前記顔検出手段により検出された顔の周辺領域までの前記距離情報の平均値と前記焦点検出情報との差分が閾値を超える場合、前記検出された顔が主被写体の顔であると判定し、前記平均値と前記焦点検出情報との差分が前記閾値以下の場合、前記検出された顔が他の被写体の顔であると判定する判定手段と、
前記判定手段により前記検出された顔が主被写体の顔と判定された場合に、当該主被写体に焦点を合わせ、前記判定手段により前記検出された顔が他の被写体の顔と判定された場合に、当該他の被写体を除く被写体に焦点を合わせる合焦手段と、を備えることを特徴とする撮像装置。
Acquires focus detection information of a phase difference detection method as distance information from an image sensor that photoelectrically converts a subject image formed through a photographing optical system to a subject, and also acquires distance information to a peripheral region of the subject. Distance information acquisition means;
Face detection means for detecting a face in an imaging screen based on an imaging signal acquired from the imaging element;
If the difference between the average value of the distance information to the peripheral area of the face detected by the face detection means and the focus detection information exceeds a threshold, the detected face is determined to be the face of the main subject; Determination means for determining that the detected face is the face of another subject when the difference between the average value and the focus detection information is equal to or less than the threshold;
When the determination means determines that the detected face is the face of the main subject, the main object is focused, and when the detection means determines that the detected face is the face of another subject And an in-focus means for focusing on a subject other than the other subject.
前記顔検出手段により検出された顔が撮像画面の中心部に位置するかを判断する判断手段を備え、
前記合焦手段は、前記判定手段により前記検出された顔が他の被写体の顔と判定され、かつ前記判断手段により前記検出された顔が撮像画面の中心部に位置すると判断された場合は、当該他の被写体に焦点を合わせることを特徴とする請求項1又は2に記載の撮像装置。
Determining means for determining whether the face detected by the face detecting means is located at the center of the imaging screen;
When the focusing means determines that the detected face is the face of another subject and the determining means determines that the detected face is located at the center of the imaging screen, The imaging apparatus according to claim 1, wherein the other subject is focused.
撮影光学系を介して結像した被写体像を光電変換する撮像素子から被写体までの距離情報としての位相差検出方式の焦点検出情報を取得する距離情報取得手段と、
前記撮像素子から取得した撮像信号に基づいて、撮像画面内の顔を検出する顔検出手段と、
前記顔検出手段により2つの顔が検出された場合に、前記検出された2つの顔の距離情報において近い側の距離情報をD1とし、遠い側の距離情報をD2とすると、D1/D2が閾値以下で、かつズーム操作がなされたときに、前記距離情報が遠い側の顔が主被写体の顔であると判定し、D1/D2が前記閾値以下で、かつズーム操作がなされないとき、及びD1/D2が前記閾値を超えるときは、前記距離情報が近い側の顔が主被写体の顔であると判定する判定手段と、
前記判定手段により前記主被写体と判定された顔に対して焦点を合わせる合焦手段と、を備えることを特徴とする撮像装置。
Distance information acquisition means for acquiring focus detection information of a phase difference detection method as distance information from an image sensor that photoelectrically converts a subject image formed through a photographing optical system to the subject;
Face detection means for detecting a face in an imaging screen based on an imaging signal acquired from the imaging element;
When two faces are detected by the face detecting means, if distance information on the near side in the distance information of the detected two faces is D1, and distance information on the far side is D2, D1 / D2 is a threshold value. In the following, when the zoom operation is performed, it is determined that the face whose distance information is far is the face of the main subject, D1 / D2 is equal to or less than the threshold value, and the zoom operation is not performed, and D1 When / D2 exceeds the threshold value, a determination unit that determines that the face on the side closer to the distance information is the face of the main subject;
An imaging apparatus comprising: focusing means for focusing on the face determined as the main subject by the determination means.
撮影光学系を介して結像した被写体像を光電変換する撮像素子から被写体までの距離情報としての位相差検出方式の焦点検出情報を取得する距離情報取得ステップと、
前記撮像素子から取得した撮像信号に基づいて、撮像画面内の顔を検出する顔検出ステップと、
前記顔検出ステップで顔が検出された場合に、顔検出情報から顔の面積を取得する顔面積取得ステップと、
前記顔面積取得ステップで取得された顔の面積と前記焦点検出情報とに基づいて、前記顔検出ステップで検出された顔が主被写体の顔か他の被写体の顔かを判定する判定ステップと、
前記判定ステップで前記検出された顔が主被写体の顔と判定された場合に、当該主被写体に焦点を合わせ、前記判定ステップで前記検出された顔が他の被写体の顔と判定された場合に、当該他の被写体を除く被写体に焦点を合わせる合焦ステップと、を備えることを特徴とする撮像装置の制御方法。
A distance information acquisition step for acquiring focus detection information of a phase difference detection method as distance information from an image sensor that photoelectrically converts a subject image formed through a photographing optical system to the subject;
A face detection step of detecting a face in the imaging screen based on an imaging signal acquired from the imaging element;
A face area acquisition step of acquiring a face area from face detection information when a face is detected in the face detection step;
A determination step of determining whether the face detected in the face detection step is a face of a main subject or another subject based on the face area acquired in the face area acquisition step and the focus detection information;
When it is determined that the detected face is the face of the main subject in the determination step, the main subject is focused, and when the detected face is determined as the face of another subject in the determination step And a focusing step of focusing on a subject other than the other subject.
撮影光学系を介して結像した被写体像を光電変換する撮像素子から被写体までの距離情報としての位相差検出方式の焦点検出情報を取得するとともに、前記被写体の周辺領域までの距離情報を取得する距離情報取得ステップと、
前記撮像素子から取得した撮像信号に基づいて、撮像画面内の顔を検出する顔検出ステップと、
前記顔検出ステップで検出された顔の周辺領域までの前記距離情報の平均値と前記焦点検出情報との差分が閾値を超える場合、前記検出された顔が主被写体の顔であると判定し、前記平均値と前記焦点検出情報との差分が前記閾値以下の場合、前記検出された顔が他の被写体の顔であると判定する判定ステップと、
前記判定ステップで前記検出された顔が主被写体の顔と判定された場合に、当該主被写体に焦点を合わせ、前記判定ステップで前記検出された顔が他の被写体の顔と判定された場合に、当該他の被写体を除く被写体に焦点を合わせる合焦ステップと、を備えることを特徴とする撮像装置の制御方法。
Acquires focus detection information of a phase difference detection method as distance information from an image sensor that photoelectrically converts a subject image formed through a photographing optical system to a subject, and also acquires distance information to a peripheral region of the subject. A distance information acquisition step;
A face detection step of detecting a face in the imaging screen based on an imaging signal acquired from the imaging element;
If the difference between the average value of the distance information to the peripheral area of the face detected in the face detection step and the focus detection information exceeds a threshold, the detected face is determined to be the face of the main subject; A determination step of determining that the detected face is the face of another subject when the difference between the average value and the focus detection information is equal to or less than the threshold;
When it is determined that the detected face is the face of the main subject in the determination step, the main subject is focused, and when the detected face is determined as the face of another subject in the determination step And a focusing step of focusing on a subject other than the other subject.
撮影光学系を介して結像した被写体像を光電変換する撮像素子から被写体までの距離情報としての位相差検出方式の焦点検出情報を取得する距離情報取得ステップと、
前記撮像素子から取得した撮像信号に基づいて、撮像画面内の顔を検出する顔検出ステップと、
前記顔検出ステップで2つの顔が検出された場合に、前記検出された2つの顔の距離情報において近い側の距離情報をD1とし、遠い側の距離情報をD2とすると、D1/D2が閾値以下で、かつズーム操作がなされたときに、前記距離情報が遠い側の顔が主被写体の顔であると判定し、D1/D2が前記閾値以下で、かつズーム操作がなされないとき、及びD1/D2が前記閾値を超えるときは、前記距離情報が近い側の顔が主被写体の顔であると判定する判定ステップと、
前記判定ステップで前記主被写体と判定された顔に対して焦点を合わせる合焦ステップと、を備えることを特徴とする撮像装置の制御方法。
A distance information acquisition step for acquiring focus detection information of a phase difference detection method as distance information from an image sensor that photoelectrically converts a subject image formed through a photographing optical system to the subject;
A face detection step of detecting a face in the imaging screen based on an imaging signal acquired from the imaging element;
When two faces are detected in the face detection step, if distance information on the near side in the distance information of the detected two faces is D1 and distance information on the far side is D2, D1 / D2 is a threshold value. In the following, when the zoom operation is performed, it is determined that the face whose distance information is far is the face of the main subject, D1 / D2 is equal to or less than the threshold value, and the zoom operation is not performed, and D1 When / D2 exceeds the threshold value, a determination step of determining that the face on the side closer to the distance information is the face of the main subject;
And a focusing step of focusing on the face determined as the main subject in the determination step.
JP2014105214A 2014-05-21 2014-05-21 Imaging device and control method of the same Pending JP2015219487A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2014105214A JP2015219487A (en) 2014-05-21 2014-05-21 Imaging device and control method of the same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2014105214A JP2015219487A (en) 2014-05-21 2014-05-21 Imaging device and control method of the same

Publications (1)

Publication Number Publication Date
JP2015219487A true JP2015219487A (en) 2015-12-07

Family

ID=54778872

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2014105214A Pending JP2015219487A (en) 2014-05-21 2014-05-21 Imaging device and control method of the same

Country Status (1)

Country Link
JP (1) JP2015219487A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11954935B2 (en) 2020-07-22 2024-04-09 Canon Kabushiki Kaisha Electronic device improved in object detection performance, image capturing apparatus, method of controlling electronic device, and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11954935B2 (en) 2020-07-22 2024-04-09 Canon Kabushiki Kaisha Electronic device improved in object detection performance, image capturing apparatus, method of controlling electronic device, and storage medium

Similar Documents

Publication Publication Date Title
JP5004726B2 (en) Imaging apparatus, lens unit, and control method
JP4644883B2 (en) Imaging device
JP4829186B2 (en) Imaging device
JP5144422B2 (en) Imaging apparatus and imaging method
JP4661413B2 (en) Imaging apparatus, number of shots management method and number of shots management program
US10904425B2 (en) Image processing apparatus, control method therefor, and storage medium for evaluating a focusing state of image data
JP5753371B2 (en) Imaging apparatus and control method thereof
JP5950664B2 (en) Imaging apparatus and control method thereof
JP2011109427A (en) Compound-eye imaging apparatus
JP2011217103A (en) Compound eye photographing method and apparatus
JP2008136024A (en) Photographing device, photographing system, and photographing method
JP2019121860A (en) Image processing apparatus and control method therefor
JP4623299B2 (en) Imaging apparatus and imaging method
JP2014017665A (en) Display control unit, control method for display control unit, program, and recording medium
US20070195190A1 (en) Apparatus and method for determining in-focus position
JP4949717B2 (en) In-focus position determining apparatus and method
JP6427027B2 (en) Focus detection apparatus, control method therefor, imaging apparatus, program, and storage medium
JP2016012846A (en) Imaging apparatus, and control method and control program of the same
JP2008160701A (en) Camera and photographic control program for the camera
JP6381416B2 (en) IMAGING DEVICE, IMAGING DEVICE CONTROL METHOD, PROGRAM, AND RECORDING MEDIUM
JP2015219487A (en) Imaging device and control method of the same
JP2017090579A (en) Focus detection device and method, as well as imaging device
JP2007078811A (en) Imaging apparatus
JP2015139018A (en) Electronic apparatus and control program
US11968445B2 (en) Control apparatus for detecting and displaying line-of-sight position, control method thereof, and recording medium