JP5338197B2 - Focus detection apparatus and imaging apparatus - Google Patents

Focus detection apparatus and imaging apparatus Download PDF

Info

Publication number
JP5338197B2
JP5338197B2 JP2008216620A JP2008216620A JP5338197B2 JP 5338197 B2 JP5338197 B2 JP 5338197B2 JP 2008216620 A JP2008216620 A JP 2008216620A JP 2008216620 A JP2008216620 A JP 2008216620A JP 5338197 B2 JP5338197 B2 JP 5338197B2
Authority
JP
Japan
Prior art keywords
face
evaluation value
size
focus
value calculation
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.)
Expired - Fee Related
Application number
JP2008216620A
Other languages
Japanese (ja)
Other versions
JP2010054587A (en
Inventor
宏明 高原
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nikon Corp
Original Assignee
Nikon Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nikon Corp filed Critical Nikon Corp
Priority to JP2008216620A priority Critical patent/JP5338197B2/en
Publication of JP2010054587A publication Critical patent/JP2010054587A/en
Application granted granted Critical
Publication of JP5338197B2 publication Critical patent/JP5338197B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、焦点検出装置および撮像装置に関する。
The present invention relates to a focus detection apparatus and an imaging apparatus .

撮像した画像信号から人物の顔を検出し、検出した顔の目を中心とする所定範囲の領域をAFエリアとして設定するオートフォーカス装置が知られている(例えば、特許文献1)。   There is known an autofocus device that detects a person's face from a captured image signal and sets an area in a predetermined range centered on the detected face as an AF area (for example, Patent Document 1).

2007−65290号公報2007-65290

しかしながら、従来のオートフォーカス装置では、被写体の状況に応じては精度良く焦点調節できない可能性があった。   However, with the conventional autofocus device, there is a possibility that the focus cannot be accurately adjusted according to the condition of the subject.

請求項1の発明による焦点検出装置は、光学系による像を撮像して得られる画像内から人物の顔を含む顔領域を検出し、前記顔の目の位置に対応する第1信号、及び、前記顔のサイズに対応する第2信号を出力する検出部と、前記目の位置に対応する第1信号に基づいた位置に焦点評価値算出領域を設定する設定部と、前記光学系からの光束を受光して受光信号を生成する受光部と、前記受光信号を用いて前記焦点評価値算出領域における焦点評価値を算出する算出部と、前記焦点評価値を用いて焦点調節制御をする制御部とを含み、前記設定部は、前記顔のサイズに対応する第2信号に基づいて前記目が1つだけ含まれるように前記焦点評価値算出領域の大きさを設定すると共に、前記第2信号が対応する顔サイズが第1の所定値と前記第1の所定値よりも小さな第2の所定値との間である場合に、前記焦点評価値算出領域の大きさを最大サイズ及び最小サイズの間で前記顔サイズに応じて設定し、前記第2信号が対応する顔サイズが前記第1の所定値以上である場合に、前記焦点評価値算出領域の大きさを前記最大サイズに設定し、前記第2信号が対応する顔サイズが前記第2の所定値以下である場合に、前記焦点評価値算出領域の大きさを前記最小サイズに設定することを特徴とする。 The focus detection apparatus according to the first aspect of the present invention detects a face area including a human face from an image obtained by capturing an image by an optical system, and a first signal corresponding to the position of the eye of the face; A detection unit that outputs a second signal corresponding to the size of the face; a setting unit that sets a focus evaluation value calculation region at a position based on the first signal corresponding to the eye position; and a light beam from the optical system A light receiving unit that receives the light and generates a light reception signal, a calculation unit that calculates a focus evaluation value in the focus evaluation value calculation region using the light reception signal, and a control unit that performs focus adjustment control using the focus evaluation value The setting unit sets the size of the focus evaluation value calculation region so that only one eye is included based on the second signal corresponding to the size of the face, and the second signal Face size corresponding to the first predetermined value and the first The focus evaluation value calculation region is set between a maximum size and a minimum size according to the face size when the second signal is smaller than a second predetermined value smaller than the second predetermined value. When the face size corresponding to is greater than or equal to the first predetermined value, the size of the focus evaluation value calculation area is set to the maximum size, and the face size corresponding to the second signal is set to the second predetermined value. When the value is equal to or smaller than the value, the size of the focus evaluation value calculation area is set to the minimum size .

本発明によれば、精度良く被写体の顔にピントを合わせることができる。   According to the present invention, it is possible to focus on the face of the subject with high accuracy.

図1は、本実施の形態におけるカメラの一実施の形態の構成を示すブロック図である。カメラ100は、操作部材101と、レンズ102と、撮像素子103と、制御装置104と、メモリカードスロット105と、モニタ106とを備えている。操作部材101は、使用者によって操作される種々の操作ボタンを含んでいる。例えば、操作部材101には、電源ボタン、レリーズボタン、ズームボタン、十字ボタン、決定ボタン、再生ボタン、および削除ボタンなどを含んでいる。   FIG. 1 is a block diagram illustrating a configuration of an embodiment of a camera according to the present embodiment. The camera 100 includes an operation member 101, a lens 102, an image sensor 103, a control device 104, a memory card slot 105, and a monitor 106. The operation member 101 includes various operation buttons operated by the user. For example, the operation member 101 includes a power button, a release button, a zoom button, a cross button, an enter button, a play button, a delete button, and the like.

レンズ102は、複数の光学レンズから構成されるが、図1では代表して1枚のレンズで表している。また、レンズ102を構成するレンズには、後述するAF(Auto Focus/自動焦点調整)のためのAFレンズが含まれる。撮像素子103は、例えばCCDやCMOSなどのイメージセンサーであり、レンズ102からの光束を受光して受光信号を生成する。そして、生成した受光信号(画像信号)を制御装置104へ出力する。   The lens 102 is composed of a plurality of optical lenses, but is representatively represented by one lens in FIG. The lenses constituting the lens 102 include an AF lens for AF (Auto Focus / automatic focus adjustment) described later. The image sensor 103 is an image sensor such as a CCD or a CMOS, for example, and receives a light beam from the lens 102 to generate a light reception signal. Then, the generated light reception signal (image signal) is output to the control device 104.

制御装置104は、撮像素子103から入力された画像信号に基づいて所定の画像形式、例えばJPEG形式の画像データ(以下、「本画像データ」と呼ぶ)を生成する。また、制御装置104は、生成した画像データに基づいて、表示用の画像データ、例えばサムネイル画像データを生成する。制御装置104は、生成した本画像データとサムネイル画像データとを含み、さらにヘッダ情報を付加した画像ファイルを生成してメモリカードスロット105へ出力する。本実施の形態では、制御装置による画像ファイルの生成処理、および生成した画像ファイルのメモリカードへの記録処理を撮影処理と呼ぶこととする。   The control device 104 generates image data in a predetermined image format, for example, JPEG format (hereinafter referred to as “main image data”) based on the image signal input from the image sensor 103. Further, the control device 104 generates display image data, for example, thumbnail image data, based on the generated image data. The control device 104 generates an image file that includes the generated main image data and thumbnail image data, and further includes header information, and outputs the image file to the memory card slot 105. In the present embodiment, image file generation processing by the control device and recording processing of the generated image file on a memory card are referred to as photographing processing.

メモリカードスロット105は、記憶媒体としてのメモリカードを挿入するためのスロットであり、制御装置104から出力された画像ファイルをメモリカードに書き込んで記録する。また、メモリカードスロット105は、制御装置104からの指示に基づいて、メモリカード内に記憶されている画像ファイルを読み込む。   The memory card slot 105 is a slot for inserting a memory card as a storage medium, and the image file output from the control device 104 is written and recorded on the memory card. The memory card slot 105 reads an image file stored in the memory card based on an instruction from the control device 104.

モニタ106は、カメラ100の背面に搭載された液晶モニタ(背面モニタ)であり、当該モニタ106には、メモリカードに記憶されている画像やカメラ100を設定するための設定メニューなどが表示される。また、制御装置104は、使用者によって操作部材101が操作されてライブビューの開始が指示されると、撮像素子103から時系列で取得した画像の表示用画像データをモニタ106に出力する。これによってモニタ106にはスルー画が表示される。   The monitor 106 is a liquid crystal monitor (rear monitor) mounted on the back surface of the camera 100, and the monitor 106 displays an image stored in a memory card, a setting menu for setting the camera 100, and the like. . Further, when the operation member 101 is operated by the user and the start of live view is instructed by the user, the control device 104 outputs image data for display of images acquired in time series from the image sensor 103 to the monitor 106. As a result, a through image is displayed on the monitor 106.

制御装置104は、CPU、メモリ、およびその他の周辺回路により構成され、カメラ100を制御する。なお、制御装置104を構成するメモリには、SDRAMやフラッシュメモリが含まれる。SDRAMは、揮発性のメモリであって、CPUがプログラム実行時にプログラムを展開するためのワークメモリとして使用されたり、データを一時的に記録するためのバッファメモリとして使用される。また、フラッシュメモリは、不揮発性のメモリであって、制御装置104が実行するプログラムのデータや、プログラム実行時に読み込まれる種々のパラメータなどが記録されている。   The control device 104 includes a CPU, a memory, and other peripheral circuits, and controls the camera 100. Note that the memory constituting the control device 104 includes SDRAM and flash memory. The SDRAM is a volatile memory, and is used as a work memory for the CPU to develop a program when the program is executed or as a buffer memory for temporarily recording data. The flash memory is a non-volatile memory in which data of a program executed by the control device 104, various parameters read during program execution, and the like are recorded.

本実施の形態におけるカメラ100は、スルー画上で人物の顔を認識し、撮影時には、人物の顔を対象としてAFを最適化する顔認識AF機能を備えている。このために、制御装置104は、スルー画の各フレームを対象として公知の顔認識処理を実行して、人物の顔を認識する。そして、制御装置104は、認識した人物の顔に基づいて、公知のコントラスト検出方式の焦点調節を行う。本実施の形態では、人物の目にピントが合っていることが望ましいことを加味して、人物の目の位置に焦点評価値を算出するための焦点評価値算出領域を設定する。   The camera 100 according to the present embodiment has a face recognition AF function that recognizes a human face on a through image and optimizes AF for the human face during shooting. For this purpose, the control device 104 executes a known face recognition process for each frame of the through image to recognize a human face. Then, the control device 104 performs focus adjustment using a known contrast detection method based on the recognized human face. In the present embodiment, a focus evaluation value calculation region for calculating a focus evaluation value is set at the position of the person's eyes, considering that it is desirable that the person's eyes are in focus.

具体的には、制御装置104は、顔認識処理によって顔領域を特定した場合には、該顔領域に基づいて目の位置を特定し、撮影画面内の目の位置に焦点評価値を算出するための焦点評価値算出領域を設定する。例えば、制御装置104は、画像データから目の画像を検出して目の位置を特定する。あるいは、顔全体における目の位置は、多少の個人差はあっても大きな差はないため、あらかじめ顔領域に対する目の推定位置を設定しておく。そして、制御装置104は、フレーム内から顔領域を検出した場合には、検出した顔領域内のあらかじめ設定されている推定位置に目があるものと推定することによって目の位置を特定し、撮影画面内の該目の位置に焦点評価値算出領域を設定する。   Specifically, when the face area is specified by the face recognition process, the control device 104 specifies the eye position based on the face area, and calculates a focus evaluation value for the eye position in the shooting screen. A focus evaluation value calculation area is set. For example, the control device 104 identifies an eye position by detecting an eye image from the image data. Alternatively, since the position of the eyes in the entire face is not greatly different even if there are some individual differences, an estimated position of the eyes with respect to the face area is set in advance. Then, when detecting the face area from the frame, the control device 104 specifies the position of the eye by estimating that there is an eye at a preset estimated position in the detected face area, and shooting the face area. A focus evaluation value calculation area is set at the position of the eye in the screen.

このとき、制御装置104は、図2(a)に示すように、顔領域2a内に含まれる左右の目のうち、片方の眼の位置に焦点評価値算出領域2bを設定する。仮に両目に焦点評価値算出領域2bを片面ずつ2つ設定した場合には、顔が斜め横を向いている(正面を向いていない)場合に、カメラ100から左右の目までの距離が違ってしまい、両目の中間、もしくはカメラ100からの距離が遠い方の目にピントが合ってしまう可能性がある。これを回避するために、制御装置104は、例えば、画像の周縁部に近い方の目の位置に焦点評価値算出領域を設定する。   At this time, as shown in FIG. 2A, the control device 104 sets the focus evaluation value calculation area 2b at the position of one of the left and right eyes included in the face area 2a. If two focus evaluation value calculation areas 2b are set for each eye, the distance from the camera 100 to the left and right eyes is different when the face is facing obliquely sideways (not facing the front). In other words, there is a possibility that the eye is in the middle of both eyes or in the farther distance from the camera 100. In order to avoid this, for example, the control device 104 sets a focus evaluation value calculation region at the position of the eye closer to the peripheral edge of the image.

また、制御装置104は、人物の目の位置に焦点評価値算出領域を設定するに当たっては、図2(a)に示すように、顔認識処理によって認識した顔領域の一辺の長さ(顔認識エリア長)2cに基づいて、撮影画面内に設定する焦点評価値算出領域の一辺の長さ(評価値算出範囲長)2dを決定する。具体的には、制御装置104は、原則として、評価値算出範囲長2dを顔認識エリア長2cに比例させる。例えば、制御装置104は、図2(c)に示すように、原則として、評価値算出範囲長2dが顔認識エリア長2cの1/2となるように焦点評価値算出領域を設定する。   Further, when setting the focus evaluation value calculation area at the position of the person's eyes, the control device 104, as shown in FIG. 2A, the length of one side of the face area recognized by the face recognition process (face recognition). Based on (area length) 2c, the length (evaluation value calculation range length) 2d of one side of the focus evaluation value calculation area set in the photographing screen is determined. Specifically, in principle, the control device 104 makes the evaluation value calculation range length 2d proportional to the face recognition area length 2c. For example, as shown in FIG. 2C, the control device 104 sets the focus evaluation value calculation area so that the evaluation value calculation range length 2d is ½ of the face recognition area length 2c in principle.

また、評価値算出範囲長2dの最大値と最小値とをあらかじめ設定しておき、制御装置104は、評価値算出範囲長2dを顔認識エリア長2cに比例させた結果、評価値算出範囲長2dが上記最大値以上になってしまう場合には、評価値算出範囲長2dを最大値に固定する。例えば、制御装置104は、評価値算出範囲長2dを顔認識エリア長2cの1/2とすると、設定される焦点評価値算出領域の一辺が評価値算出範囲長2dの最大値以上となってしまう場合、すなわち顔認識エリア長2cが評価値算出範囲長2dの最大値の2倍の長さ以上である場合には、図2(a)に示すように、評価値算出範囲長2dをあらかじめ設定されている評価値算出範囲長2dの最大値に設定する。   Further, the maximum value and the minimum value of the evaluation value calculation range length 2d are set in advance, and the control device 104 sets the evaluation value calculation range length 2d in proportion to the face recognition area length 2c. When 2d is equal to or greater than the maximum value, the evaluation value calculation range length 2d is fixed to the maximum value. For example, when the evaluation value calculation range length 2d is ½ of the face recognition area length 2c, the control device 104 has one side of the set focus evaluation value calculation area equal to or greater than the maximum value of the evaluation value calculation range length 2d. In other words, if the face recognition area length 2c is equal to or greater than twice the maximum value of the evaluation value calculation range length 2d, the evaluation value calculation range length 2d is set in advance as shown in FIG. It is set to the maximum value of the set evaluation value calculation range length 2d.

一方、評価値算出範囲長2dを顔認識エリア長2cに比例させた結果、評価値算出範囲長2dが上記最小値以下になってしまう場合には、評価値算出範囲長2dを最小値に固定する。例えば、制御装置104は、評価値算出範囲長2dを顔認識エリア長2cの1/2とすると、設定される焦点評価値算出領域の一辺が評価値算出範囲長2dの最小値以下となってしまう場合、すなわち顔認識エリア長2cが評価値算出範囲長2dの最小値の2倍の長さ以下である場合には、図2(b)に示すように、評価値算出範囲長2dをあらかじめ設定されている評価値算出範囲長2dの最小値に設定する。   On the other hand, as a result of making the evaluation value calculation range length 2d proportional to the face recognition area length 2c, the evaluation value calculation range length 2d is fixed to the minimum value when the evaluation value calculation range length 2d is equal to or smaller than the minimum value. To do. For example, if the evaluation value calculation range length 2d is ½ of the face recognition area length 2c, the control device 104 has one side of the set focus evaluation value calculation area equal to or smaller than the minimum value of the evaluation value calculation range length 2d. In other words, when the face recognition area length 2c is not longer than twice the minimum value of the evaluation value calculation range length 2d, the evaluation value calculation range length 2d is set in advance as shown in FIG. It is set to the minimum value of the set evaluation value calculation range length 2d.

制御装置104は、使用者によって操作部材101に含まれるレリーズボタンが半押しされた場合には、設定した焦点評価値算出領域内の撮像素子102からの受光信号に基づいて、コントラスト検出方式の焦点調節のために必要な焦点評価値を算出し、算出した焦点評価値に基づいてピント合わせを行う。   When the release button included in the operation member 101 is half-pressed by the user, the control device 104 uses the contrast detection method focus based on the received light signal from the image sensor 102 within the set focus evaluation value calculation area. A focus evaluation value necessary for adjustment is calculated, and focusing is performed based on the calculated focus evaluation value.

このように、人物の目の位置に焦点評価値算出領域を設定して焦点調節を行うことによって、目以外の部分、例えば髪の毛等にピントが合うことにより、目がボケてしまうことを防ぐことができ、精度良く被写体の顔にピントを合わせることができる。また、左右の目のうち、片方の眼の位置に焦点評価値算出領域を設定するようにしたので、顔が斜め横を向いている場合などでも、精度良く目にピントを合わせることができる。   In this way, by setting the focus evaluation value calculation region at the position of the person's eyes and performing focus adjustment, it is possible to prevent the eyes from blurring due to focusing on parts other than the eyes, such as hair. And focus on the subject's face with high accuracy. In addition, since the focus evaluation value calculation area is set at the position of one of the left and right eyes, it is possible to focus on the eyes with high accuracy even when the face is oriented obliquely.

図3は、本実施の形態におけるカメラ100の処理を示すフローチャートである。図3に示す処理は、使用者によって操作部材101が操作されてライブビューの開始が指示されることにより、モニタ106へのスルー画の表示が開始されると起動するプログラムとして、制御装置104によって実行される。   FIG. 3 is a flowchart showing processing of the camera 100 in the present embodiment. The processing shown in FIG. 3 is performed by the control device 104 as a program that is started when a live image is displayed on the monitor 106 when the operation member 101 is operated by the user to start live view. Executed.

ステップS10において、制御装置104は、焦点評価値算出領域を撮影画面のあらかじめ定められた位置、例えば撮影画面の中央に仮設定して、ステップS20へ進む。この際、焦点評価値算出領域の大きさは、あらかじめ定められた大きさとする。ステップS20では、制御装置104は、公知の顔認識処理を実行することによって、スルー画内に存在する人物の顔を認識する。その後、ステップS30へ進み、制御装置104は、顔認識処理によって人物の顔を認識したか否かを判断する。ステップS30で肯定判断した場合には、ステップS40へ進む。   In step S10, the control device 104 temporarily sets the focus evaluation value calculation area at a predetermined position on the shooting screen, for example, the center of the shooting screen, and proceeds to step S20. At this time, the size of the focus evaluation value calculation area is set to a predetermined size. In step S20, the control device 104 recognizes the face of a person existing in the through image by executing a known face recognition process. Thereafter, the process proceeds to step S30, and the control device 104 determines whether or not a person's face has been recognized by the face recognition process. If a positive determination is made in step S30, the process proceeds to step S40.

ステップS40では、制御装置104は、顔認識処理によって認識した顔領域の大きさ(顔サイズ)と、スルー画内における顔領域の位置(顔位置)を取得して、ステップS50へ進む。ステップS50では、制御装置104は、スルー画上に顔領域を示す枠を表示するなどして顔エリアを表示して、ステップS60へ進む。   In step S40, the control device 104 acquires the size of the face area (face size) recognized by the face recognition process and the position of the face area (face position) in the through image, and proceeds to step S50. In step S50, the control device 104 displays a face area, for example, by displaying a frame indicating the face area on the through image, and proceeds to step S60.

ステップS60では、制御装置104は、ステップS40で取得した顔サイズが所定値以上であるか否か、例えば、図2で上述したように、顔認識エリア長2cが評価値算出範囲長2dの最大値の2倍の長さ以上であるか否かを判断する。ステップS60で肯定判断した場合には、ステップS70へ進み、制御装置104は、焦点評価値算出領域の大きさをあらかじめ設定されている最大値に設定する。例えば、図2(a)に示したように、評価値算出範囲長2dをあらかじめ設定されている評価値算出範囲長2dの最大値に設定する。その後、ステップS110へ進む。   In step S60, the control device 104 determines whether or not the face size acquired in step S40 is greater than or equal to a predetermined value. For example, as described above with reference to FIG. 2, the face recognition area length 2c is the maximum of the evaluation value calculation range length 2d. It is determined whether or not the length is twice or more the value. If an affirmative determination is made in step S60, the process proceeds to step S70, and the control device 104 sets the size of the focus evaluation value calculation area to a preset maximum value. For example, as shown in FIG. 2A, the evaluation value calculation range length 2d is set to the maximum value of the preset evaluation value calculation range length 2d. Then, it progresses to step S110.

一方、ステップS60で否定判断した場合には、ステップS80へ進み、制御装置104は、ステップS40で取得した顔サイズが所定値以下であるか否か、例えば、図2で上述したように、顔認識エリア長2cが評価値算出範囲長2dの最小値の2倍の長さ以下であるか否かを判断する。ステップS80で肯定判断した場合には、ステップS90へ進み、制御装置104は、焦点評価値算出領域の大きさをあらかじめ設定されている最小値に設定する。例えば、図2(b)に示したように、評価値算出範囲長2dをあらかじめ設定されている評価値算出範囲長2dの最小値に設定する。その後、ステップS110へ進む。   On the other hand, if a negative determination is made in step S60, the process proceeds to step S80, and the control device 104 determines whether or not the face size acquired in step S40 is equal to or smaller than a predetermined value, for example, as described above with reference to FIG. It is determined whether the recognition area length 2c is less than or equal to twice the minimum value of the evaluation value calculation range length 2d. When an affirmative determination is made in step S80, the process proceeds to step S90, and the control device 104 sets the size of the focus evaluation value calculation area to a preset minimum value. For example, as shown in FIG. 2B, the evaluation value calculation range length 2d is set to the minimum value of the preset evaluation value calculation range length 2d. Then, it progresses to step S110.

これに対して、ステップS80で否定判断した場合には、ステップS100へ進み、制御装置104は、焦点評価値算出領域の大きさを顔領域の大きさに比例させる。例えば、図2(c)に示したように、制御装置104は、評価値算出範囲長2dが顔認識エリア長2cの1/2となるように焦点評価値算出領域を設定する。その後、ステップS110へ進む。   On the other hand, when a negative determination is made in step S80, the process proceeds to step S100, and the control device 104 makes the size of the focus evaluation value calculation area proportional to the size of the face area. For example, as illustrated in FIG. 2C, the control device 104 sets the focus evaluation value calculation region so that the evaluation value calculation range length 2d is ½ of the face recognition area length 2c. Then, it progresses to step S110.

制御装置104は、顔領域に基づいて目の位置を特定し、ステップS10で撮影画面の中央に仮設定し、ステップS70、S90、またはS100で大きさを設定した焦点評価値算出領域を、ステップS110で撮影画面内の目の位置にシフトさせる。その後、後述するステップS150へ進む。   The control device 104 identifies the position of the eyes based on the face area, temporarily sets the center of the shooting screen in step S10, and sets the focus evaluation value calculation area whose size is set in step S70, S90, or S100 to the step In S110, the position is shifted to the eye position in the shooting screen. Then, it progresses to step S150 mentioned later.

一方、ステップS30で否定判断した場合には、ステップS120へ進む。ステップS120では、制御装置104は、現在のフレームよりも所定時間内に取得された過去のフレームにおいて、顔認識処理によって顔が検出されていたか否かを判断する。   On the other hand, if a negative determination is made in step S30, the process proceeds to step S120. In step S120, the control device 104 determines whether or not a face has been detected by face recognition processing in a past frame acquired within a predetermined time from the current frame.

ステップS120で肯定判断した場合には、ステップS130へ進み、制御装置104は、顔を検出した過去のフレームのうち、直近のフレームで検出した顔領域に基づいて設定した撮影画面上の位置に、そのときと同一の大きさの焦点評価値算出領域を設定してステップS150へ進む。これに対して、ステップS120で否定判断した場合には、ステップS140へ進み、制御装置104は、焦点評価値算出領域を撮影画面のあらかじめ定められた位置、例えば撮影画面の中央に設定してステップS150へ進む。この際、焦点評価値算出領域の大きさは、あらかじめ定められた大きさとする。   When an affirmative determination is made in step S120, the process proceeds to step S130, and the control device 104 moves to a position on the shooting screen set based on the face area detected in the latest frame among the past frames in which the face has been detected. A focus evaluation value calculation area having the same size as that at that time is set, and the process proceeds to step S150. On the other hand, if a negative determination is made in step S120, the process proceeds to step S140, and the control device 104 sets the focus evaluation value calculation region to a predetermined position on the shooting screen, for example, the center of the shooting screen, and then step Proceed to S150. At this time, the size of the focus evaluation value calculation area is set to a predetermined size.

ステップS150では、制御装置104は、使用者によって操作部材101に含まれるレリーズボタンが半押しされたか否かを判断する。ステップS150で否定判断した場合には、後述するステップS190へ進む。これに対して、ステップS150で肯定判断した場合には、ステップS160へ進み、制御装置104は、上述した処理で設定した焦点評価値算出領域内の撮像素子102からの受光信号に基づいて、コントラスト検出方式の焦点調節のために必要な焦点評価値を算出し、算出した焦点評価値に基づいてピント合わせを行う。その後、ステップS170へ進む。   In step S150, the control device 104 determines whether or not the release button included in the operation member 101 has been half-pressed by the user. If a negative determination is made in step S150, the process proceeds to step S190 described later. On the other hand, when an affirmative determination is made in step S150, the process proceeds to step S160, and the control device 104 determines the contrast based on the light reception signal from the image sensor 102 in the focus evaluation value calculation region set in the above-described processing. A focus evaluation value necessary for focus adjustment of the detection method is calculated, and focusing is performed based on the calculated focus evaluation value. Thereafter, the process proceeds to step S170.

ステップS170では、制御装置104は、使用者によって操作部材101に含まれるレリーズボタンが全押しされたか否かを判断する。ステップS170で否定判断した場合には、後述するステップS190へ進む。これに対して、ステップS170で肯定判断した場合には、ステップS180へ進み、制御装置104は、上述した撮影処理を実行して、ステップS190へ進む。   In step S170, the control device 104 determines whether or not the release button included in the operation member 101 has been fully pressed by the user. If a negative determination is made in step S170, the process proceeds to step S190 described later. On the other hand, when an affirmative determination is made in step S170, the process proceeds to step S180, and the control device 104 executes the above-described photographing process and proceeds to step S190.

ステップS190では、制御装置104は、使用者によって操作部材101が操作されることにより、ライブビューの終了が指示されたか否かを判断する。ステップS190で否定判断した場合には、ステップS20へ戻って次のフレームに対して上述した各処理を実行する。これに対して、ステップS190で肯定判断した場合には、処理を終了する。   In step S190, the control device 104 determines whether or not the end of the live view is instructed by operating the operation member 101 by the user. If a negative determination is made in step S190, the process returns to step S20 to execute each process described above for the next frame. On the other hand, when an affirmative determination is made in step S190, the process ends.

以上説明した本実施の形態によれば、以下のような作用効果を得ることができる。
(1)制御装置104は、スルー画の各フレームを対象として顔認識処理を実行して人物の顔を含む顔領域と顔領域における人物の目の位置とを検出し、検出した顔領域の大きさと目の位置とに基づいて焦点評価値算出領域を設定するようにした。これによって、人物の目にピントが合うようにAF処理を行うことができ、精度良く被写体の顔にピントを合わせることができる。
According to the present embodiment described above, the following operational effects can be obtained.
(1) The control device 104 executes face recognition processing for each frame of the through image to detect the face area including the face of the person and the position of the human eye in the face area, and the size of the detected face area The focus evaluation value calculation area is set based on the eye position. As a result, the AF process can be performed so that the eyes of the person are in focus, and the face of the subject can be accurately focused.

(2)制御装置104は、焦点評価値算出領域の大きさを顔領域の大きさに比例させるようにした。これによって、顔領域の大きさに応じて、最適な大きさの焦点評価値算出領域を設定することができる。 (2) The control device 104 makes the size of the focus evaluation value calculation area proportional to the size of the face area. Accordingly, it is possible to set a focus evaluation value calculation area having an optimum size according to the size of the face area.

(3)制御装置104は、顔領域の大きさが所定の大きさ以上となった場合には、焦点評価値算出領域の大きさを最大値に固定するようにした。これによって、焦点評価値算出領域の大きさが大きくなることによる制御装置104の処理速度の低下を抑えることができる。 (3) The control device 104 fixes the size of the focus evaluation value calculation area to the maximum value when the size of the face area exceeds a predetermined size. Accordingly, it is possible to suppress a decrease in the processing speed of the control device 104 due to an increase in the size of the focus evaluation value calculation area.

(4)制御装置104は、顔領域の大きさが所定の大きさ以下となった場合には、焦点評価値算出領域の大きさを最小値に固定するようにした。これによって、焦点評価値算出領域の大きさが必要以上に小さくなることを防ぐことができ、ピントを合わせの性能の低下を防ぐことができる。 (4) The control device 104 fixes the size of the focus evaluation value calculation area to the minimum value when the size of the face area is equal to or smaller than a predetermined size. As a result, the size of the focus evaluation value calculation area can be prevented from becoming unnecessarily small, and a reduction in focusing performance can be prevented.

(5)制御装置104は、人物の左右の目のうち、画像の周縁部に近い方の目の位置に焦点評価値算出領域を設定するようにした。これによって、顔が斜め横を向いていることにより、カメラ100から左右の目までの距離が違っている場合であっても、確実に片方の目にピントを合わせることができる。 (5) The control device 104 sets the focus evaluation value calculation region at the position of the eye closer to the peripheral edge of the image among the left and right eyes of the person. Thus, even when the distance from the camera 100 to the left and right eyes is different because the face is directed obliquely to the side, it is possible to reliably focus on one eye.

(6)制御装置104は、顔認識処理を行っても顔領域を検出できない場合には、焦点評価値算出領域を撮影画面のあらかじめ定められた位置、例えば撮影画面の中央に設定するようにした。これによって、顔領域が検出できない場合でもAF処理を実行することができる。また、顔認識AFがオンとなっている状態で人物のいないシーン、例えば風景を撮影するときでも、中央でAFするので、撮影者はわざわざ顔認識AFをオフに変更することなく、AFする場所を事前に認知することができる。 (6) If the face area cannot be detected even after performing the face recognition process, the control device 104 sets the focus evaluation value calculation area at a predetermined position on the shooting screen, for example, at the center of the shooting screen. . As a result, the AF process can be executed even when the face area cannot be detected. Even when shooting a scene without a person, for example, a landscape, with face recognition AF turned on, AF is performed in the center, so the photographer does not bother to change face recognition AF off. Can be recognized in advance.

(7)制御装置104は、顔認識処理を行っても顔領域を検出できない場合であっても、現在のフレームよりも所定時間内に取得された過去のフレームにおいて、顔認識処理によって顔が検出されていた場合には、顔を検出した過去のフレームのうち、直近のフレームで検出した顔領域に基づいて設定した撮影画面上の位置に、そのときと同一の大きさの焦点評価値算出領域を設定するようにした。これによって、一瞬、顔領域が検出できない場合でも、過去フレームにおける焦点評価値算出領域を用いてAF処理を実行することができるので、半押ししたときに中央エリアでAFしてしまうこともない。 (7) The control device 104 detects the face by the face recognition process in the past frame acquired within a predetermined time from the current frame even if the face area cannot be detected by performing the face recognition process. If it is, the focus evaluation value calculation area of the same size as that at that time is set at the position on the shooting screen set based on the face area detected in the latest frame among the past frames in which the face was detected. Was set. As a result, even when the face area cannot be detected for a moment, the AF process can be executed using the focus evaluation value calculation area in the past frame. Therefore, AF is not performed in the center area when half-pressed.

―変形例―
なお、上述した実施の形態のカメラは、以下のように変形することもできる。
(1)上述した実施の形態では、制御装置104は、撮影画面内に設定した焦点評価値算出領域を対象として、公知のコントラスト検出方式の焦点調節を行う例について説明した。しかしながら、撮影画面内に設定した焦点評価値算出領域を対象として、公知の位相差方式の焦点調節を行う場合にも、本発明は適用可能である。
-Modification-
The camera according to the above-described embodiment can be modified as follows.
(1) In the above-described embodiment, the control device 104 has been described with respect to an example of performing focus adjustment using a known contrast detection method for a focus evaluation value calculation region set in the shooting screen. However, the present invention can also be applied to the case where the focus adjustment of a known phase difference method is performed for the focus evaluation value calculation region set in the shooting screen.

(2)上述した実施の形態では、制御装置104は、人物の左右の目のうち、画像の周縁部に近い方の目の位置に焦点評価値算出領域を設定する例について説明した。しかしながら、制御装置104は、左右の目のそれぞれの位置に焦点評価値算出領域を仮設定し、これらの焦点評価値算出領域内の撮像素子102からの受光信号に基づいて検出される焦点調節状態のうち、至近を示す方の目の位置に設定した焦点評価値算出領域で算出した焦点評価値を用いてAFを行うようにしてもよい。 (2) In the above-described embodiment, the control device 104 has described the example in which the focus evaluation value calculation region is set at the position of the eye closer to the peripheral edge of the image among the left and right eyes of the person. However, the control device 104 temporarily sets focus evaluation value calculation areas at the positions of the left and right eyes, and a focus adjustment state detected based on a light reception signal from the image sensor 102 in these focus evaluation value calculation areas Among them, AF may be performed using the focus evaluation value calculated in the focus evaluation value calculation area set at the position of the eye indicating the closest.

(3)上述した実施の形態では、制御装置104は、原則として、評価値算出範囲長2dが顔認識エリア長2cの1/2となるように焦点評価値算出領域を設定する例について説明した。しかしながら、これに限定されず、制御装置104は、例えば、評価値算出範囲長2dが顔認識エリア長2cの2/5〜3/5の間の長さになるように設定してもよい。 (3) In the embodiment described above, the control device 104 has described an example in which the focus evaluation value calculation area is set so that the evaluation value calculation range length 2d is ½ of the face recognition area length 2c in principle. . However, the present invention is not limited to this, and the control device 104 may set the evaluation value calculation range length 2d to be a length between 2/5 and 3/5 of the face recognition area length 2c, for example.

なお、本発明の特徴的な機能を損なわない限り、本発明は、上述した実施の形態における構成に何ら限定されない。また、上述の実施の形態と複数の変形例を組み合わせた構成としてもよい。   Note that the present invention is not limited to the configurations in the above-described embodiments as long as the characteristic functions of the present invention are not impaired. Moreover, it is good also as a structure which combined the above-mentioned embodiment and a some modification.

カメラ100の一実施の形態の構成を示すブロック図である。1 is a block diagram illustrating a configuration of an embodiment of a camera 100. FIG. 焦点評価値算出領域の設定例を示す図である。It is a figure which shows the example of a setting of a focus evaluation value calculation area | region. カメラ100の処理を示すフローチャート図である。FIG. 6 is a flowchart showing processing of the camera 100.

符号の説明Explanation of symbols

100 カメラ、101 操作部材、102 レンズ、103 撮像素子、104 制御装置、105 メモリカードスロット、106 モニタ 100 Camera, 101 Operation member, 102 Lens, 103 Image sensor, 104 Control device, 105 Memory card slot, 106 Monitor

Claims (6)

光学系による像を撮像して得られる画像内から人物の顔を含む顔領域を検出し、前記顔の目の位置に対応する第1信号、及び、前記顔のサイズに対応する第2信号を出力する検出部と、
前記目の位置に対応する第1信号に基づいた位置に焦点評価値算出領域を設定する設定部と、
前記光学系からの光束を受光して受光信号を生成する受光部と、
前記受光信号を用いて前記焦点評価値算出領域における焦点評価値を算出する算出部と、
前記焦点評価値を用いて焦点調節制御をする制御部とを含み、
前記設定部は、前記顔のサイズに対応する第2信号に基づいて前記目が1つだけ含まれるように前記焦点評価値算出領域の大きさを設定すると共に、前記第2信号が対応する顔サイズが第1の所定値と前記第1の所定値よりも小さな第2の所定値との間である場合に、前記焦点評価値算出領域の大きさを最大サイズ及び最小サイズの間で前記顔サイズに応じて設定し、前記第2信号が対応する顔サイズが前記第1の所定値以上である場合に、前記焦点評価値算出領域の大きさを前記最大サイズに設定し、前記第2信号が対応する顔サイズが前記第2の所定値以下である場合に、前記焦点評価値算出領域の大きさを前記最小サイズに設定することを特徴とする焦点検出装置。
A face region including a human face is detected from an image obtained by capturing an image by an optical system, and a first signal corresponding to the eye position of the face and a second signal corresponding to the size of the face are detected. A detector to output;
A setting unit that sets a focus evaluation value calculation region at a position based on a first signal corresponding to the eye position;
A light receiving unit that receives a light beam from the optical system and generates a light reception signal;
A calculation unit that calculates a focus evaluation value in the focus evaluation value calculation region using the received light signal;
A control unit that performs focus adjustment control using the focus evaluation value,
The setting unit, together with the eye on the basis of a second signal corresponding to the size of the face to set the size of the focus evaluation value calculation region to include only one face the second signal corresponding When the size is between a first predetermined value and a second predetermined value smaller than the first predetermined value, the size of the focus evaluation value calculation area is set between the maximum size and the minimum size. When the face size corresponding to the second signal is equal to or larger than the first predetermined value, the size of the focus evaluation value calculation area is set to the maximum size, and the second signal is set. When the face size corresponding to is less than or equal to the second predetermined value, the size of the focus evaluation value calculation region is set to the minimum size .
請求項1に記載された焦点検出装置であって、
前記検出部は、前記顔領域内のあらかじめ設定されている推定位置に目があるものと推定することにより前記目の位置を特定することを特徴とする焦点検出装置。
The focus detection apparatus according to claim 1,
The focus detection device, wherein the detection unit specifies the position of the eye by estimating that the eye has an eye at a preset estimated position in the face area.
請求項1または2に記載の焦点検出装置において、
前記設定部は、人物の左右の目のそれぞれに対応する前記受光信号に基づいて検出される前記焦点調節状態のうち、至近を示す方の目の位置に対応する前記受光部上の位置を基準として、前記範囲を設定することを特徴とする焦点検出装置。
The focus detection apparatus according to claim 1 or 2 ,
The setting unit uses a position on the light receiving unit corresponding to the position of the eye indicating the closest position among the focus adjustment states detected based on the light receiving signals corresponding to the left and right eyes of the person. The focus detection apparatus is characterized in that the range is set.
請求項1〜のいずれか一項に記載の焦点検出装置において、
前記設定部は、前記検出部によって前記顔領域が検出されない場合には、前記受光部上のあらかじめ定められた位置に対して前記範囲を設定することを特徴とする焦点検出装置。
In the focus detection apparatus as described in any one of Claims 1-3 ,
The focus detection device, wherein the setting unit sets the range with respect to a predetermined position on the light receiving unit when the face region is not detected by the detection unit.
請求項1〜のいずれか一項に記載の焦点検出装置において、
前記検出部は、繰り返し得られる前記画像から前記顔領域を検出するものであり、
前記設定部は、前記検出部によって前記顔領域が検出されない場合には、過去の最新の顔領域の検出結果に基づいて、前記受光部における範囲を決定することを特徴とする焦点検出装置。
In the focus detection apparatus according to any one of claims 1 to 4 ,
The detection unit detects the face region from the repeatedly obtained image,
The focus detection apparatus according to claim 1, wherein when the detection unit does not detect the face area, the setting unit determines a range in the light receiving unit based on a past detection result of the face area.
請求項1〜のいずれかに記載の焦点検出装置を備えたことを特徴とする撮像装置。
Imaging apparatus characterized by comprising a focus detecting device according to any one of claims 1-5.
JP2008216620A 2008-08-26 2008-08-26 Focus detection apparatus and imaging apparatus Expired - Fee Related JP5338197B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008216620A JP5338197B2 (en) 2008-08-26 2008-08-26 Focus detection apparatus and imaging apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008216620A JP5338197B2 (en) 2008-08-26 2008-08-26 Focus detection apparatus and imaging apparatus

Publications (2)

Publication Number Publication Date
JP2010054587A JP2010054587A (en) 2010-03-11
JP5338197B2 true JP5338197B2 (en) 2013-11-13

Family

ID=42070621

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008216620A Expired - Fee Related JP5338197B2 (en) 2008-08-26 2008-08-26 Focus detection apparatus and imaging apparatus

Country Status (1)

Country Link
JP (1) JP5338197B2 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5669549B2 (en) 2010-12-10 2015-02-12 オリンパスイメージング株式会社 Imaging device
JP5788197B2 (en) * 2011-03-22 2015-09-30 オリンパス株式会社 Image processing apparatus, image processing method, image processing program, and imaging apparatus
JP5156108B2 (en) * 2011-04-23 2013-03-06 オリンパスイメージング株式会社 Imaging apparatus and imaging method
JP6548436B2 (en) * 2015-04-03 2019-07-24 キヤノン株式会社 Focus detection apparatus and control method thereof
CN106060373B (en) 2015-04-03 2019-12-20 佳能株式会社 Focus detection apparatus and control method thereof
JP6818814B2 (en) * 2019-06-26 2021-01-20 キヤノン株式会社 Focus detector and its control method

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07191256A (en) * 1993-12-27 1995-07-28 Canon Inc Image pickup device
JP2004317699A (en) * 2003-04-15 2004-11-11 Nikon Gijutsu Kobo:Kk Digital camera
JP4220856B2 (en) * 2003-08-18 2009-02-04 本田技研工業株式会社 Image capturing apparatus and method for mobile robot using portable terminal device
JP4553346B2 (en) * 2003-10-22 2010-09-29 キヤノン株式会社 Focus adjustment device and focus adjustment method
JP4403903B2 (en) * 2004-07-16 2010-01-27 株式会社ニコン Digital camera
JP4910462B2 (en) * 2006-04-14 2012-04-04 株式会社ニコン camera
JP4127296B2 (en) * 2006-06-09 2008-07-30 ソニー株式会社 IMAGING DEVICE, IMAGING DEVICE CONTROL METHOD, AND COMPUTER PROGRAM

Also Published As

Publication number Publication date
JP2010054587A (en) 2010-03-11

Similar Documents

Publication Publication Date Title
JP5088118B2 (en) Focus adjustment device
JP4674471B2 (en) Digital camera
JP4910462B2 (en) camera
JP5070728B2 (en) camera
JP2007304280A (en) Imaging apparatus, its control method, program and storage medium
TW201032585A (en) Imaging apparatus, subject tracking method and storage medium
JP2009115981A (en) Photographing device, its control method, and program
JP4907740B2 (en) Imaging device
US11128805B2 (en) Zoom control device, zoom control method, control program, and imaging apparatus equipped with zoom control device
JP2015004922A (en) Focus adjustment device and imaging device
JP2008052123A (en) Imaging apparatus
JP5338197B2 (en) Focus detection apparatus and imaging apparatus
JP2010109671A (en) Image capturing apparatus
US9781346B2 (en) Image capturing control apparatus, image capturing apparatus and storage medium storing image capturing control program for driving a movable element when motion vectors have mutually different magnitudes
JP2008252711A (en) Digital camera
JP2006033440A (en) Digital camera
JP2008054297A (en) System for and method of photographing image, and computer program
JP2010113129A (en) Image tracking device, focusing device, and image capturing apparatus
JP2009175442A (en) Imaging apparatus
JP2011107682A (en) Focusing device and camera
JP2010243899A (en) Focus detecting device and method, and imaging device
JP2009053226A (en) Photographing system and digital camera
JP2007334242A (en) Digital camera
JP5088380B2 (en) Imaging device
JP4960730B2 (en) IMAGING DEVICE, ITS CONTROL METHOD, PROGRAM, AND STORAGE MEDIUM

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20110825

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120208

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20120615

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20120626

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120827

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20130205

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20130408

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20130722

R150 Certificate of patent or registration of utility model

Ref document number: 5338197

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

LAPS Cancellation because of no payment of annual fees