JP2010026039A - Photographing apparatus, and control method and program of photographing apparatus - Google Patents

Photographing apparatus, and control method and program of photographing apparatus Download PDF

Info

Publication number
JP2010026039A
JP2010026039A JP2008184634A JP2008184634A JP2010026039A JP 2010026039 A JP2010026039 A JP 2010026039A JP 2008184634 A JP2008184634 A JP 2008184634A JP 2008184634 A JP2008184634 A JP 2008184634A JP 2010026039 A JP2010026039 A JP 2010026039A
Authority
JP
Japan
Prior art keywords
flash
image
photographing
face
shooting
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.)
Withdrawn
Application number
JP2008184634A
Other languages
Japanese (ja)
Inventor
Masakatsu Kubota
政勝 久保田
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.)
Fujifilm Corp
Original Assignee
Fujifilm 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 Fujifilm Corp filed Critical Fujifilm Corp
Priority to JP2008184634A priority Critical patent/JP2010026039A/en
Publication of JP2010026039A publication Critical patent/JP2010026039A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

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

Abstract

<P>PROBLEM TO BE SOLVED: To prevent the defocusing of an image without using any AF auxiliary light source. <P>SOLUTION: When receiving an instruction to normally photograph, a light emission control unit 23 controls a flash 24 to preliminarily emit the light before normal-photographing. An imaging system 9 obtains the pre-emission image obtained by the pre-emission, and a face detection unit 36 detects a face from the pre-emission image. A second AF processing unit 37 performs a focusing operation of the imaging system 9 in accordance with the size of the face detected from the pre-emission image. <P>COPYRIGHT: (C)2010,JPO&INPIT

Description

本発明は、デジタルカメラ等の撮影装置および撮影装置の制御方法並びに撮影装置の制御方法をコンピュータに実行させるためのプログラムに関するものである。   The present invention relates to an imaging device such as a digital camera, a method for controlling the imaging device, and a program for causing a computer to execute the method for controlling the imaging device.

デジタルカメラにおいては、レリーズボタンを半押しする操作によりプレ撮影を行い、プレ撮影により取得されたプレ画像を用いてAE処理およびAF処理を行って、露出調整および焦点合わせ等の撮影準備を行い、その後レリーズボタンを全押しする本撮影により画像が取得される。   In the digital camera, pre-shooting is performed by pressing the release button halfway, AE processing and AF processing are performed using the pre-image acquired by pre-shooting, and exposure preparation and focusing preparation are performed. After that, an image is acquired by the actual shooting in which the release button is fully pressed.

ここで、AF処理は、プレ画像に基づいて合焦位置を検出することにより行われる。合焦位置の検出方式としては、例えば、所望とする被写体にピントが合った状態では画像のコントラストが高くなるという特徴を利用するTTL方式が知られている。TTL方式は、具体的には、プレ画像を複数のAF領域に分割し、各AF領域内の画像に対してハイパスフィルタによるフィルタリング処理を施してAF領域毎にAF評価値を算出し、AF評価値の算出を、フォーカスレンズを所定範囲内において移動させながら複数回繰り返し行い、最も評価が高い、すなわちフィルタによる出力値が最も高いAF評価値を得たフォーカスレンズの位置を合焦位置として検出する方式である。   Here, the AF process is performed by detecting the in-focus position based on the pre-image. As an in-focus position detection method, for example, a TTL method is known that uses the feature that the contrast of an image is high when a desired subject is in focus. Specifically, in the TTL method, a pre-image is divided into a plurality of AF areas, and an image in each AF area is subjected to a filtering process using a high-pass filter to calculate an AF evaluation value for each AF area. The calculation of the value is repeated a plurality of times while moving the focus lens within a predetermined range, and the position of the focus lens that obtained the AF evaluation value with the highest evaluation, that is, the highest output value by the filter, is detected as the in-focus position. It is a method.

一方、顔検出機能をデジタルカメラに設け、顔検出結果を用いての様々な処理が行われている。例えば、レリーズボタンを押下する前に取得されるスルー画像から顔を検出し、検出した顔の大きさに基づいて、被写体距離を算出する手法が提案されている(特許文献1参照)。   On the other hand, a face detection function is provided in a digital camera, and various processes using the face detection result are performed. For example, a method has been proposed in which a face is detected from a through image acquired before the release button is pressed, and the subject distance is calculated based on the detected face size (see Patent Document 1).

ところで、本撮影の前にフラッシュの発光を伴わない撮影およびフラッシュの発光を伴う撮影を行うことにより2つの画像を取得し、2つの画像を用いて本撮影時のフラッシュの発光量を制御する(すなわちフラッシュ調光する)手法が提案されている。このようにフラッシュ調光を行ってフラッシュの発光量を制御することにより、適切な明るさを有する画像を取得することができる。また、発光を伴う露光により取得された画像から顔を検出し、検出した顔領域に応じてフラッシュ調光を行う制御領域を決定し、制御領域内の画像を用いてフラッシュ調光を行う手法が提案されている(特許文献2参照)。
特開2007−329784号公報 特開2005−184508号公報
By the way, two images are acquired by shooting without flash emission and shooting with flash emission before the main shooting, and the flash emission amount during the main shooting is controlled using the two images ( That is, a method of flash dimming) has been proposed. Thus, by performing flash light control and controlling the light emission amount of the flash, an image having appropriate brightness can be acquired. Further, there is a method for detecting a face from an image acquired by exposure with light emission, determining a control area for performing flash dimming according to the detected face area, and performing flash dimming using an image in the control area. It has been proposed (see Patent Document 2).
JP 2007-329784 A JP 2005-184508 A

上述したように、TTL方式のAF処理を行うためには、合焦位置を検出するための最低限の被写体輝度が必要である。しかしながら、最低限の被写体輝度が得られない場合、AF処理を適切に行うことができないため、撮影により取得した画像にピンぼけが生じてしまうという問題がある。また、上記特許文献1に記載された手法においても、顔を検出するための最低限の被写体輝度が必要であり、その最低限の被写体輝度が得られない被写体では、顔を検出することができず、その結果、被写体距離を算出できなくなってしまう。   As described above, in order to perform the TTL AF processing, the minimum subject luminance for detecting the in-focus position is necessary. However, when the minimum subject brightness cannot be obtained, the AF process cannot be performed properly, and there is a problem that an image obtained by shooting is out of focus. The technique described in Patent Document 1 also requires a minimum subject luminance for detecting a face, and a face can be detected for a subject for which the minimum subject luminance cannot be obtained. As a result, the subject distance cannot be calculated.

この場合、カメラにAF補助光源を設け、AF補助光源から被写体にAF補助光を照射することにより、被写体輝度を確保することが考えられる。しかしながら、この手法ではAF補助光源をカメラに設ける必要があるため、カメラのコストが増大する。さらにAF補助光を被写体に照射する必要があることから、カメラの電力の消費量も大きくなってしまう。   In this case, it is conceivable to secure subject brightness by providing an AF auxiliary light source in the camera and irradiating the subject with AF auxiliary light from the AF auxiliary light source. However, in this method, since the AF auxiliary light source needs to be provided in the camera, the cost of the camera increases. Furthermore, since it is necessary to irradiate the subject with AF auxiliary light, the power consumption of the camera also increases.

本発明は上記事情に鑑みなされたものであり、AF補助光源を用いることなく、画像のピンぼけを防止することを目的とする。   The present invention has been made in view of the above circumstances, and an object thereof is to prevent image blurring without using an AF auxiliary light source.

本発明による撮影装置は、撮影により画像を取得する撮影手段と、
前記画像から顔を検出する顔検出手段と、
フラッシュと、
本撮影の指示を受けると、該本撮影の前に前記フラッシュをプレ発光させる発光制御手段と、
前記プレ発光時に前記撮影手段によりプレ発光撮影を行わせることによりプレ発光画像を取得し、該プレ発光画像から顔を検出するよう前記撮影手段および前記顔検出手段を制御する制御手段と、
前記プレ発光画像から検出された顔の大きさに応じて前記撮影手段の合焦動作を行う合焦手段とを備えたことを特徴とするものである。
An imaging apparatus according to the present invention includes imaging means for acquiring an image by imaging,
Face detection means for detecting a face from the image;
With flash,
Upon receiving an instruction for main shooting, light emission control means for pre-flashing the flash before the main shooting,
A control means for controlling the photographing means and the face detecting means to acquire a pre-flash image by causing the photographing means to perform pre-flash photographing at the time of the pre-light emission, and to detect a face from the pre-flash image;
And a focusing unit that performs a focusing operation of the photographing unit according to the size of the face detected from the pre-flash image.

「本撮影」とは、レリーズボタンを全押しすることにより被写体を撮影して被写体を表す本画像を得る撮影であり、レリーズボタンを半押しすることにより、AE処理およびAF処理(本発明による顔の大きさに応じた合焦動作を行うものとは異なる)等の撮影準備を行うプレ撮影とは異なる撮影である。   “Main shooting” is shooting for shooting a subject by pressing the release button fully to obtain a main image representing the subject. By pressing the release button halfway, the AE processing and AF processing (the face according to the present invention) is performed. This is different from pre-shooting in which preparations for shooting are performed, which are different from those in which a focusing operation according to the size of the image is performed.

「フラッシュ」は、撮影装置に内蔵されたフラッシュでも、脱着可能な外付フラッシュでもよい。   The “flash” may be a flash built in the photographing apparatus or an detachable external flash.

「顔の大きさ」とは、例えば、顔の縦方向の長さ、横方向の長さおよび顔の面積等を用いることができるが、顔を矩形領域により検出した場合の矩形領域の縦または横方向の長さ、および矩形領域の面積を顔の大きさとしてもよい。また、プレ発光画像の縦または横方向の長さあるいは面積に対する顔または矩形領域の縦または横方向の長さおよび面積を顔の大きさとして用いてもよい。   As the “face size”, for example, the length of the face in the vertical direction, the length in the horizontal direction, the area of the face, and the like can be used, but when the face is detected by the rectangular area, The length in the horizontal direction and the area of the rectangular area may be the face size. Further, the length or area in the vertical or horizontal direction of the face or rectangular area relative to the length or area in the vertical or horizontal direction of the pre-emission image may be used as the size of the face.

なお、本発明による撮影装置においては、前記発光制御手段を、前記本撮影の指示を受けると、該本撮影の前に前記撮影手段に発光を伴わない非発光撮影および前記プレ発光時における前記プレ発光撮影を行わせ、前記非発光撮影により取得された非発光画像および前記プレ発光画像に基づく演算を行って、前記本撮影時における前記フラッシュの発光量を制御するフラッシュ調光を行う手段としてもよい。   In the photographing apparatus according to the present invention, when the light emission control unit receives the instruction for the main photographing, the pre-light emission in the non-light-emitting photographing without the light emission to the photographing unit and the pre-lighting is performed before the main photographing. Means for performing flash dimming and performing flash dimming to control the amount of flash emission during the main shooting by performing a calculation based on the non-flash image acquired by the non-flash shooting and the pre-flash image. Good.

また、本発明による撮影装置においては、プレ撮影により取得されたプレ画像を複数の領域に分割し、各領域のAF評価値に基づいて前記撮影手段の合焦動作を行う他の合焦手段をさらに備えるものとし、
前記制御手段を、前記他の合焦手段による合焦動作が完了不可能な場合に、前記プレ発光画像から顔を検出するよう前記撮影手段および前記顔検出手段を制御する手段とし、前記合焦手段を、前記プレ発光画像から検出された顔の大きさに応じて前記撮影手段の合焦動作を行う手段としてもよい。
Further, in the photographing apparatus according to the present invention, there is provided another focusing unit that divides the pre-image acquired by the pre-shooting into a plurality of regions and performs the focusing operation of the photographing unit based on the AF evaluation value of each region. We shall prepare further,
The control means is means for controlling the photographing means and the face detection means so as to detect a face from the pre-emission image when the focusing operation by the other focusing means cannot be completed, and the focusing The means may be a means for performing a focusing operation of the photographing means according to the size of the face detected from the pre-flash image.

「合焦動作が完了不可能である」とは、被写体輝度が低く、AF評価値を適切に算出することができないために、撮影手段が備えるフォーカスレンズの合焦位置を検出できない状態にあることを意味する。また、合焦位置が検出されるまでにAF評価値の算出が繰り返し行われるが、被写体輝度が低いとAF評価値の算出回数が多くなり、合焦位置の検出までに長時間を要する場合がある。本発明においては、AF評価値の算出回数が多くなり、合焦位置の検出が所定時間内に終了しない場合も、合焦動作が完了不可能な状態にあるものとする。   “Focus operation cannot be completed” means that the subject brightness is low and the AF evaluation value cannot be calculated appropriately, so that the focus position of the focus lens provided in the photographing unit cannot be detected. Means. The AF evaluation value is repeatedly calculated until the in-focus position is detected. However, if the subject brightness is low, the number of AF evaluation value calculations increases, and it may take a long time to detect the in-focus position. is there. In the present invention, it is assumed that the focusing operation cannot be completed even when the AF evaluation value is calculated many times and the detection of the focusing position is not completed within a predetermined time.

本発明による撮影装置の制御方法は、撮影により画像を取得する撮影手段と、
フラッシュと、
本撮影の指示を受けると、該本撮影の前に前記フラッシュをプレ発光させる発光制御手段とを備えた撮影装置の制御方法において、
前記プレ発光時に前記撮影手段によりプレ発光撮影を行わせることによりプレ発光画像を取得し、
該プレ発光画像から顔を検出し、
前記プレ発光画像から検出された顔の大きさに応じて前記撮影手段の合焦動作を行うことを特徴とするものである。
An imaging apparatus control method according to the present invention includes an imaging means for acquiring an image by imaging,
With flash,
In the control method of the photographing apparatus provided with the light emission control means for pre-flashing the flash before the main photographing when receiving the instruction of the main photographing,
A pre-flash image is obtained by performing pre-flash shooting with the shooting means during the pre-flash,
A face is detected from the pre-flash image,
The focusing means performs the focusing operation according to the size of the face detected from the pre-flash image.

なお、本発明による撮影装置の制御方法をコンピュータに実行させるためのプログラムとして提供してもよい。   In addition, you may provide as a program for making a computer perform the control method of the imaging device by this invention.

本発明によれば、本撮影の指示を受けると、本撮影の前にフラッシュがプレ発光され、プレ発光時に撮影手段によりプレ発光撮影を行わせることによりプレ発光画像が取得され、プレ発光画像から顔が検出され、さらに検出された顔の大きさに応じて撮影手段の合焦動作が行われる。   According to the present invention, when a main shooting instruction is received, the flash is pre-flashed before the main shooting, and a pre-flash image is obtained by causing the shooting unit to perform pre-flash shooting during the pre-flash, and the pre-flash image is acquired from the pre-flash image. The face is detected, and the focusing operation of the photographing unit is performed according to the detected face size.

ここで、人間の顔の大きさは、人物によらず略一定の大きさを有するため、その大きさを見れば撮影装置からの大まかな距離が分かるものである。また、フラッシュはどのようなカメラにも設けられているものである。このため、検出された顔の大きさに応じて撮影手段の合焦動作を行うことにより、AF補助光源等の特別な手段を撮影装置に設けることなく、ピンぼけのない画像を取得することができる。   Here, since the size of the human face has a substantially constant size regardless of the person, the rough distance from the photographing apparatus can be understood by looking at the size. Moreover, the flash is provided in any camera. For this reason, by performing the focusing operation of the photographing unit according to the detected face size, an image without blur can be acquired without providing a special unit such as an AF auxiliary light source in the photographing apparatus. .

また、フラッシュ調光を行う場合の発光を伴う撮影とプレ発光撮影とを兼用することにより、合焦動作のためにフラッシュを発光させることなく、フラッシュ調光と併せて撮影手段の合焦動作を行うことができるため、効率よく合焦動作を行うことができる。   In addition, by using both flash photography and flash photography for pre-flash photography, the flash unit can be used for focusing operation without using flash for focusing operation. Therefore, the focusing operation can be performed efficiently.

また、プレ撮影により取得されたプレ画像を複数の領域に分割し、各領域のAF評価値に基づいて撮影手段の合焦動作を行う他の合焦手段をさらに備えた場合において、他の合焦手段の合焦動作が完了不可能な場合に、プレ発光画像から検出された顔の大きさに応じて撮影手段の合焦動作を行うことにより、被写体輝度が高く、他の合焦手段による合焦動作が完了可能な場合には、より精度が高い他の合焦手段により撮影手段の合焦動作が行われるため、より精度よく合焦動作を行うことができる。   Further, when the pre-image acquired by the pre-photographing is further provided with other focusing means for dividing the pre-image into a plurality of areas and performing the focusing operation of the photographing means based on the AF evaluation value of each area, When the focusing operation of the focusing means cannot be completed, the subject brightness is high by performing the focusing operation of the photographing means according to the size of the face detected from the pre-flash image, and by other focusing means When the in-focus operation can be completed, the in-focus operation of the photographing unit is performed by another in-focus unit with higher accuracy, so that the in-focus operation can be performed with higher accuracy.

以下、図面を参照して本発明の実施形態について説明する。図1および図2は本発明の実施形態による撮影装置を適用したデジタルカメラ1の外観を示す図である。図1および図2に示すように、このデジタルカメラ1の上部には、レリーズボタン2、電源ボタン3およびズームレバー4が備えられている。   Hereinafter, embodiments of the present invention will be described with reference to the drawings. 1 and 2 are views showing the appearance of a digital camera 1 to which a photographing apparatus according to an embodiment of the present invention is applied. As shown in FIGS. 1 and 2, a release button 2, a power button 3, and a zoom lever 4 are provided on the top of the digital camera 1.

レリーズボタン2は、2段階の押下により2種類の動作を指示できる構造となっている。例えば、自動露出調整機能(AE:Auto Exposure)、自動焦点調節機能(AF:Auto Focus)を利用した撮影では、デジタルカメラ1は、レリーズボタン2が軽く押下される第1の押下操作(半押しともいう)がなされたときに、露出調整、焦点合わせ等の撮影準備を行う。その状態で、レリーズボタン2が強く押下される第2の押下操作(全押しともいう)がなされると、デジタルカメラ1は露光を開始し、露光により得られた1画面分の画像データを記録メディアに記録する。   The release button 2 has a structure in which two types of operations can be instructed by pressing in two steps. For example, in shooting using an automatic exposure adjustment function (AE: Auto Exposure) and an automatic focus adjustment function (AF: Auto Focus), the digital camera 1 performs a first pressing operation (half-pressing) in which the release button 2 is lightly pressed. (Also called exposure), preparation for shooting such as exposure adjustment and focusing is performed. In this state, when a second pressing operation (also referred to as full pressing) in which the release button 2 is strongly pressed is performed, the digital camera 1 starts exposure and records image data for one screen obtained by the exposure. Record on media.

また、デジタルカメラ1の背面には、液晶等のモニタ5、撮影モード等の設定に利用されるモードダイヤル6、および後各種操作ボタン8が備えられている。なお、本実施形態においては、撮影を行う撮影モード、記録メディアに記録された画像をモニタ5に再生する再生モード等を設定可能とされている。   On the back of the digital camera 1, a monitor 5 such as a liquid crystal, a mode dial 6 used for setting a photographing mode, and various operation buttons 8 are provided. In the present embodiment, it is possible to set a shooting mode for shooting, a playback mode for playing back an image recorded on a recording medium on the monitor 5, and the like.

次いで、デジタルカメラ1の内部構成について説明する。図3は本発明の実施形態による撮影装置を適用したデジタルカメラの内部構成を示す概略ブロック図である。図3に示すように本実施形態による撮影装置を適用したデジタルカメラ1は、撮像系9を有する。   Next, the internal configuration of the digital camera 1 will be described. FIG. 3 is a schematic block diagram showing an internal configuration of a digital camera to which the photographing apparatus according to the embodiment of the present invention is applied. As shown in FIG. 3, the digital camera 1 to which the photographing apparatus according to the present embodiment is applied has an imaging system 9.

撮像系9は、被写体にピントを合わせるためのフォーカスレンズ10aおよびズーム機能を実現するためのズームレンズ10bからなる撮影レンズ10を有する。各々のレンズは、モータとモータドライバとからなるフォーカスレンズ駆動部11およびズームレンズ駆動部12によって光軸方向に移動可能である。フォーカスレンズ駆動部11は、後述する第1のAF処理部28または第2のAF処理部37からの指示に基づいて、ズームレンズ駆動部12はズームレバー4の操作に応じたCPU40からの指示に基づいて、各々のレンズの移動を制御する。なお、フォーカスレンズ10aおよび第1のAF処理部28が、他の合焦手段を、フォーカスレンズ10aおよび第2のAF処理部37が、合焦手段を構成する。   The imaging system 9 includes a photographing lens 10 including a focus lens 10a for focusing on a subject and a zoom lens 10b for realizing a zoom function. Each lens can be moved in the optical axis direction by a focus lens driving unit 11 and a zoom lens driving unit 12 each including a motor and a motor driver. Based on an instruction from a first AF processing unit 28 or a second AF processing unit 37 (to be described later), the focus lens driving unit 11 responds to an instruction from the CPU 40 according to the operation of the zoom lever 4. Based on this, the movement of each lens is controlled. Note that the focus lens 10a and the first AF processing unit 28 constitute other focusing means, and the focus lens 10a and the second AF processing unit 37 constitute the focusing means.

絞り14は、複数の絞り羽根からなる。絞り駆動部15は、ステッピングモータ等小型のモータで、AE処理部29から出力される絞り値データに応じて、絞りの開口サイズが目的に適ったサイズになるように絞り羽根の位置を調整する。   The diaphragm 14 includes a plurality of diaphragm blades. The aperture drive unit 15 is a small motor such as a stepping motor, and adjusts the position of the aperture blade so that the aperture size of the aperture becomes a size suitable for the purpose according to the aperture value data output from the AE processing unit 29. .

シャッタ16はメカニカルシャッタであり、シャッタ駆動部17によって駆動される。シャッタ駆動部17は、レリーズボタンの押下により発生する信号と、AE処理部29から出力されるシャッタスピードデータとに応じて、シャッタ16の開閉の制御を行う。   The shutter 16 is a mechanical shutter and is driven by a shutter driving unit 17. The shutter drive unit 17 controls the opening and closing of the shutter 16 according to a signal generated by pressing the release button and the shutter speed data output from the AE processing unit 29.

シャッタ16の後方には撮像素子であるCCD18を有している。CCD18は、多数の受光素子を2次元的に配列した光電面を有しており、撮影レンズ10等の光学系を通過した被写体光がこの光電面に結像し、光電変換される。光電面の前方には、各画素に光を集光するためのマイクロレンズアレイと、R,G,B各色のフィルタが規則的に配列されたカラーフィルタアレイとが配置されている。CCD18は、CCD制御部19から供給される垂直同期信号および水平同期信号に同期して、画素毎に蓄積された電荷を1ラインずつシリアルなアナログ撮影信号として出力する。なお、垂直同期信号により1画面分の電荷が出力されることとなる。各画素において電荷を蓄積する時間、すなわち露光時間は、CCD制御部19から与えられる電子シャッタ駆動信号によって決定される。また、CCD18はCCD制御部19により、あらかじめ定められた大きさのアナログ撮像信号が得られるようにゲインが調整されている。   Behind the shutter 16 is a CCD 18 which is an image sensor. The CCD 18 has a photoelectric surface in which a large number of light receiving elements are two-dimensionally arranged, and subject light that has passed through an optical system such as the photographing lens 10 forms an image on the photoelectric surface and is subjected to photoelectric conversion. In front of the photocathode, a microlens array for condensing light on each pixel and a color filter array in which filters of R, G, and B colors are regularly arranged are arranged. The CCD 18 outputs the charge accumulated for each pixel as a serial analog photographing signal line by line in synchronization with the vertical synchronization signal and horizontal synchronization signal supplied from the CCD control unit 19. Note that the charge for one screen is output by the vertical synchronization signal. The time for accumulating charges in each pixel, that is, the exposure time, is determined by an electronic shutter drive signal given from the CCD controller 19. The gain of the CCD 18 is adjusted by the CCD control unit 19 so that an analog imaging signal having a predetermined size can be obtained.

CCD18から読み出されたアナログ撮影信号は、アナログフロントエンド(AFE)20に入力される。AFE20は、アナログ信号のノイズを除去する相関2重サンプリング回路(CDS)と、アナログ信号のゲインを調節するオートゲインコントローラ(AGC)と、アナログ信号をデジタル信号に変換するA/Dコンバータ(ADC)とからなる。このデジタル信号に変換された画像データは、画素毎にR,G,Bの濃度値を持つCCD−RAWデータである。   The analog photographing signal read from the CCD 18 is input to an analog front end (AFE) 20. The AFE 20 includes a correlated double sampling circuit (CDS) that removes noise from the analog signal, an auto gain controller (AGC) that adjusts the gain of the analog signal, and an A / D converter (ADC) that converts the analog signal into a digital signal. It consists of. The image data converted into the digital signal is CCD-RAW data having R, G, and B density values for each pixel.

タイミングジェネレータ21は、同期信号を発生させるものであり、このタイミング信号をシャッタ駆動部17、CCD制御部19、およびAFE20に供給することにより、レリーズボタンの操作、シャッタ16の開閉、CCD18からの電荷の読み出し、およびAFE20の処理の同期をとっている。   The timing generator 21 generates a synchronization signal. By supplying this timing signal to the shutter drive unit 17, the CCD control unit 19, and the AFE 20, the release button is operated, the shutter 16 is opened and closed, and the charge from the CCD 18 is supplied. And the processing of the AFE 20 are synchronized.

また、デジタルカメラ1は撮影時において必要なときに発光されるフラッシュ24を有する。フラッシュ24は、発光制御部23によりその発光が制御される。   In addition, the digital camera 1 has a flash 24 that emits light when necessary during photographing. The light emission of the flash 24 is controlled by the light emission control unit 23.

フラッシュ24は、レリーズボタン2の全押し操作と連動して2回発光する。1回目の発光は被写体からの反射光量を測定するためのプレ発光であり、通常の発光に比べれば発光量は微小である。プレ発光には反射光量の測定のほか、赤目を予防する目的もある。2回目の発光は被写体に対して撮影に十分な光を供給するための(適切な露光量を得るための)本発光であり、本発光の発光量が適正であれば、適切な明るさの画像を得ることができる。   The flash 24 emits light twice in conjunction with the full pressing operation of the release button 2. The first light emission is pre-light emission for measuring the amount of reflected light from the subject, and the amount of light emission is very small compared to normal light emission. In addition to measuring the amount of reflected light, pre-emission has the purpose of preventing red eyes. The second light emission is a main light emission (to obtain an appropriate exposure amount) for supplying sufficient light to the subject for photographing. If the light emission amount of the main light emission is appropriate, an appropriate brightness is obtained. An image can be obtained.

また、発光制御部23はフラッシュ調光を行う。すなわち、レリーズボタン2が全押しされると、後述するCPU40がフラッシュ調光の開始の指示を発光制御部23に対して行い、これにより、発光を伴わない非発光撮影により非発光画像が取得される。非発光画像はフレームメモリ26に記憶されている最新の画像データにより表される画像である。さらに、フラッシュ24がプレ発光した際にプレ発光画像が取得される。プレ発光画像はプレ発光時にフレームメモリ26に記憶されている画像データにより表される画像である。   The light emission control unit 23 performs flash light control. That is, when the release button 2 is fully pressed, a CPU 40 (to be described later) instructs the light emission control unit 23 to start flash dimming, whereby a non-light-emitting image is acquired by non-light-emitting photography without light emission. The The non-luminous image is an image represented by the latest image data stored in the frame memory 26. Furthermore, a pre-flash image is acquired when the flash 24 pre-flashes. The pre-flash image is an image represented by image data stored in the frame memory 26 at the time of pre-flash.

そして、発光制御部23は、非発光画像およびプレ発光画像に基づいて、フラッシュ24の発光量を算出する。具体的には、まず非発光画像およびプレ発光画像を複数の調光エリアに分割し、調光エリア毎の輝度情報の差分値を算出する。図4は調光エリアへの分割の一例を示す図であり、非発光画像またはプレ発光画像を、n×m(ここでは16×16=256)個に分割した状態を示している。以下の説明では、(1,1)、(n,m)といった符号により、位置が異なる調光エリアを区別するものとする。   Then, the light emission control unit 23 calculates the light emission amount of the flash 24 based on the non-light emission image and the pre-light emission image. Specifically, first, the non-light-emitting image and the pre-light-emitting image are divided into a plurality of light control areas, and a difference value of luminance information for each light control area is calculated. FIG. 4 is a diagram showing an example of division into light control areas, and shows a state in which a non-light-emitting image or a pre-light-emitting image is divided into n × m (here 16 × 16 = 256). In the following description, it is assumed that light control areas having different positions are distinguished by symbols such as (1, 1) and (n, m).

そして、発光制御部23は、非発光画像の調光エリア毎の非発光輝度情報Ya(1,1)〜Ya(n,m)を取得する。例えば、非発光画像をRGB−YCC変換し、各画素の輝度値を求め、その輝度値の調光エリア毎の平均値を求め、非発光輝度情報Yaとする。プレ発光画像についても、同様の手順により各調光エリアのプレ発光の輝度情報Yb(1,1)〜Yb(n,m)を取得する。次いで発光制御部23は、調光エリア毎に非発光の輝度情報Ya(x,y)とプレ発光の輝度情報Yb(x,y)との差分値Yd(x,y)(=Yb(x,y)−Ya(x,y))を算出する。   And the light emission control part 23 acquires the non-light-emitting luminance information Ya (1, 1)-Ya (n, m) for every light control area of a non-light-emitting image. For example, the non-luminous image is subjected to RGB-YCC conversion, the luminance value of each pixel is obtained, the average value of the luminance value for each dimming area is obtained, and the non-luminous luminance information Ya is obtained. Also for the pre-emission image, the pre-emission luminance information Yb (1,1) to Yb (n, m) of each dimming area is acquired in the same procedure. Next, the light emission control unit 23 calculates the difference value Yd (x, y) (= Yb (x) between the non-light emission luminance information Ya (x, y) and the pre-light emission luminance information Yb (x, y) for each dimming area. , Y) −Ya (x, y)) is calculated.

そして、全領域ブロックの差分Yd(1,1)〜Yd(n,m)に基づいて、フラッシュ発光量のプレ発光に対する発光倍率を算出する。例えば、差分Yd(1,1)〜Yd(n,m)および非発光輝度情報Ya(1,1)〜Ya(n,m)の単純平均あるいは加重平均Ydm、Yamを算出し、目標輝度Yoを用いて下記の式(1)により、目標輝度を得るために必要な、プレ発光の発光量に対する発光倍率を算出する。   Then, based on the differences Yd (1, 1) to Yd (n, m) of all area blocks, the light emission magnification with respect to the pre-light emission of the flash light emission amount is calculated. For example, a simple average or weighted average Ydm, Yam of the differences Yd (1,1) to Yd (n, m) and the non-luminance luminance information Ya (1,1) to Ya (n, m) is calculated, and the target luminance Yo Is used to calculate the light emission magnification with respect to the light emission amount of the pre-light emission, which is necessary for obtaining the target luminance by the following equation (1).

発光倍率=(Yo−Yam)/Ydm (1)
さらに、発光制御部23は、あらかじめ発光時間と発光倍率との関係を対応付けたルックアップテーブルを参照して、発光倍率からフラッシュ24の発光時間を算出する。なお、算出した発光倍率および発光時間がフラッシュ24の発光量となる。また、ルックアップテーブルは内部メモリ35に記憶されている。
Luminous magnification = (Yo-Yam) / Ydm (1)
Further, the light emission control unit 23 calculates the light emission time of the flash 24 from the light emission magnification with reference to a lookup table in which the relationship between the light emission time and the light emission magnification is previously associated. The calculated light emission magnification and light emission time are the light emission amount of the flash 24. The lookup table is stored in the internal memory 35.

また、デジタルカメラ1は、AFE20が出力した画像データをデータバス41を介して他の処理部に転送する画像入力コントローラ25、および画像入力コントローラ25から転送された画像データを一時記憶するフレームメモリ26を備える。   The digital camera 1 also has an image input controller 25 that transfers the image data output from the AFE 20 to another processing unit via the data bus 41, and a frame memory 26 that temporarily stores the image data transferred from the image input controller 25. Is provided.

フレームメモリ26は、画像データに対して後述の各種処理を行う際に使用する作業用メモリであり、例えば、一定周期のバスクロック信号に同期してデータ転送を行うSDRAM(Synchronous Dynamic Random Access Memory)が使用される。   The frame memory 26 is a working memory used when performing various processes described later on image data. For example, an SDRAM (Synchronous Dynamic Random Access Memory) that performs data transfer in synchronization with a bus clock signal having a constant period. Is used.

表示制御部27は、フレームメモリ26に格納された画像データをスルー画像としてモニタ5に表示させたり、再生モード時に記録メディア34に保存されている画像をモニタ5に表示させたりするためのものである。なお、スルー画像は、撮影モードが選択されている間、タイミングジェネレータ21が発生する垂直同期信号に同期して、所定時間間隔で撮像系9により撮影される。   The display control unit 27 displays the image data stored in the frame memory 26 on the monitor 5 as a through image, or displays the image stored on the recording medium 34 on the monitor 5 in the reproduction mode. is there. The through image is taken by the imaging system 9 at predetermined time intervals in synchronization with the vertical synchronization signal generated by the timing generator 21 while the shooting mode is selected.

第1のAF処理部28およびAE処理部29は、プレ画像に基づいて撮影条件を決定する。このプレ画像とは、レリーズボタンが半押しされることによって発生する半押し信号を検出したCPU40がCCD18にプレ撮影を実行させた結果、フレームメモリ26に格納された画像データにより表される画像であり、プレ発光画像とは異なる。   The first AF processing unit 28 and the AE processing unit 29 determine shooting conditions based on the pre-image. This pre-image is an image represented by image data stored in the frame memory 26 as a result of the CPU 40 having detected a half-press signal generated by half-pressing the release button causing the CCD 18 to perform pre-photographing. Yes, different from the pre-flash image.

第1のAF処理部28は、プレ画像に基づいてフォーカスレンズ10aの合焦位置を検出する(第1のAF処理)。合焦位置の検出方式としては、例えば、所望とする被写体にピントが合った状態では画像のコントラストが高くなるという特徴を利用して合焦位置を検出するTTL方式を用いる。TTL方式は、プレ画像を複数のAF領域に分割し、各AF領域内の画像に対してハイパスフィルタによるフィルタリング処理を施してAF領域毎にAF評価値を算出し、AF評価値の算出を、フォーカスレンズ10aを所定範囲内において移動させながら複数回繰り返し行い、最も評価が高い、すなわちフィルタによる出力値が最も高いAF評価値を得たフォーカスレンズ10aの位置を合焦位置として検出して、合焦動作を完了するものである。   The first AF processing unit 28 detects the in-focus position of the focus lens 10a based on the pre-image (first AF processing). As a method for detecting the in-focus position, for example, a TTL method for detecting the in-focus position using the feature that the contrast of the image is high when the desired subject is in focus is used. In the TTL method, a pre-image is divided into a plurality of AF areas, an image in each AF area is subjected to a filtering process using a high-pass filter, an AF evaluation value is calculated for each AF area, and an AF evaluation value is calculated. The focus lens 10a is repeatedly moved a plurality of times while moving within a predetermined range, and the position of the focus lens 10a having the highest evaluation, that is, the AF evaluation value with the highest output value from the filter is detected as the in-focus position. This completes the focusing operation.

このように、第1のAF処理においてはAF評価値の算出が、適切な合焦位置が検出されるまで繰り返し行われる。しかしながら、被写体輝度が所定輝度よりも低い場合には、AF評価値の最大値を得ることが困難なため、フォーカスレンズ10aの所定範囲内における移動およびAF評価値の算出が繰り返し行われることから、合焦位置が検出されるまでに長時間を要する場合がある。このため、第1のAF処理部28は、被写体輝度が低く、AF評価値を適切に算出することができないために合焦位置を検出できない場合、あるいは合焦位置の検出までに長時間を要する場合等、第1のAF処理が完了不可能な場合、その旨の情報をCPU40に出力する。   Thus, in the first AF process, the calculation of the AF evaluation value is repeated until an appropriate in-focus position is detected. However, when the subject luminance is lower than the predetermined luminance, it is difficult to obtain the maximum value of the AF evaluation value. Therefore, the movement of the focus lens 10a within the predetermined range and the calculation of the AF evaluation value are repeatedly performed. It may take a long time to detect the in-focus position. For this reason, the first AF processing unit 28 has a low subject luminance and cannot calculate the AF evaluation value properly, and therefore cannot detect the in-focus position, or it takes a long time to detect the in-focus position. If the first AF process cannot be completed, such as the case, information to that effect is output to the CPU 40.

AE処理部29は、プレ画像に基づいて被写体輝度を測定し、測定した被写体輝度に基づいて絞り値およびシャッタスピード等を決定し、絞り値データおよびシャッタスピードデータを露出設定値として出力する(AE処理)。   The AE processing unit 29 measures subject brightness based on the pre-image, determines an aperture value, shutter speed, and the like based on the measured subject brightness, and outputs the aperture value data and shutter speed data as exposure setting values (AE). processing).

AWB処理部30は、撮影時のホワイトバランスを自動調整する(AWB処理)。   The AWB processing unit 30 automatically adjusts the white balance at the time of shooting (AWB processing).

画像処理部31は、本画像の画像データに対して、階調補正、シャープネス補正、色補正等の画質補正処理、およびCCD−RAWデータを輝度信号であるYデータと、青色色差信号であるCbデータおよび赤色色差信号であるCrデータとからなるYCデータに変換するYC処理を行う。この本画像とは、レリーズボタンが全押しされることによって実行される本撮影によりCCD18から取り込まれ、AFE20、画像入力コントローラ25経由でフレームメモリ26に格納された画像データにより表される画像である。   The image processing unit 31 performs image quality correction processing such as gradation correction, sharpness correction, and color correction on the image data of the main image, and CCD-RAW data as Y data that is a luminance signal and Cb that is a blue color difference signal. YC processing is performed for conversion into YC data comprising data and Cr data which is a red color difference signal. The main image is an image that is captured from the CCD 18 by main shooting executed when the release button is fully pressed and is represented by image data stored in the frame memory 26 via the AFE 20 and the image input controller 25. .

圧縮/伸長処理部32は、画像処理部31によって処理が行われた本画像の画像データに対して、例えば、JPEG等の圧縮形式で圧縮処理を行い、画像ファイルを生成する。この画像ファイルには、Exifフォーマット等に基づいて、撮影日時等の付帯情報が格納されたタグが付加される。   The compression / decompression processing unit 32 performs a compression process on the image data of the main image processed by the image processing unit 31 in a compression format such as JPEG, and generates an image file. A tag storing incidental information such as shooting date and time is added to the image file based on the Exif format or the like.

メディア制御部33は、不図示のメディアスロットルに着脱自在にセットされた記録メディア34にアクセスして、画像ファイルの書き込みと読み込みの制御を行う。   The media control unit 33 accesses a recording medium 34 that is detachably set on a media throttle (not shown), and controls writing and reading of an image file.

内部メモリ35は、デジタルカメラ1において設定される各種定数、ルックアップテーブル、およびCPU40が実行するプログラム等を記憶する。   The internal memory 35 stores various constants set in the digital camera 1, a lookup table, a program executed by the CPU 40, and the like.

また、デジタルカメラ1は、顔検出部36および第2のAF処理部37を備える。   The digital camera 1 also includes a face detection unit 36 and a second AF processing unit 37.

顔検出部36は、テンプレートマッチングによる手法、顔の多数のサンプル画像を用いてマシンラーニング学習により得られた顔判別器を用いる手法等により、撮影により取得された画像から、顔を囲む矩形の領域(顔領域)を顔として検出する。なお、顔を検出する手法はこれに限定されるものではなく、例えば画像における肌色を有しかつ顔の輪郭形状を囲む矩形の領域を顔として検出する手法、顔の輪郭形状をなす領域を顔として検出する手法等、任意の手法を用いることができる。また、撮影により取得した画像に顔が複数含まれている場合にはすべての顔を検出する。   The face detection unit 36 uses a template matching technique, a technique that uses a face discriminator obtained by machine learning learning using a large number of sample images of a face, and the like to create a rectangular region surrounding the face from an image acquired by photographing. (Face region) is detected as a face. Note that the method for detecting a face is not limited to this. For example, a method for detecting a rectangular region having a skin color in an image and surrounding the contour shape of the face as a face, and a region forming the face contour shape as a face. Any method such as a detection method can be used. Further, when a plurality of faces are included in an image acquired by photographing, all faces are detected.

なお、顔検出部36は、スルー画像、プレ画像、プレ発光画像および本画像のいずれからも顔を検出するものであり、検出された顔の情報は、AF処理、フラッシュ調光、および顔の画質を向上させる画像処理等に用いられる。とくに、第1のAF処理部28においてAF処理が完了不可能な場合に、顔検出部36は、フラッシュ調光により取得されるプレ発光画像から顔を検出する。   The face detection unit 36 detects a face from any of the through image, the pre-image, the pre-flash image, and the main image, and the detected face information includes AF processing, flash light control, and face detection. Used for image processing to improve image quality. In particular, when AF processing cannot be completed in the first AF processing unit 28, the face detection unit 36 detects a face from a pre-flash image acquired by flash light control.

第2のAF処理部37は、第1のAF処理部28においてAF処理が完了不可能な場合に、フラッシュ調光により取得されるプレ発光画像から検出された顔の大きさに応じて、フォーカスレンズ10aの合焦位置を決定する(第2のAF処理)。まず、第2のAF処理部37は、図5に示すように画像の縦方向の長さL1に対する顔領域の縦方向の長さF1の比率F1/L1を算出する。ここで、人間の顔の大きさは、人物によらず略一定の大きさを有するため、その大きさを見ればデジタルカメラ1から被写体までの大まかな距離が分かるものである。   The second AF processing unit 37 performs focusing according to the size of the face detected from the pre-flash image acquired by flash dimming when the AF processing cannot be completed in the first AF processing unit 28. The in-focus position of the lens 10a is determined (second AF process). First, as shown in FIG. 5, the second AF processing unit 37 calculates a ratio F1 / L1 of the vertical length F1 of the face region to the vertical length L1 of the image. Here, since the size of the human face has a substantially constant size regardless of the person, the rough distance from the digital camera 1 to the subject can be understood from the size.

本実施形態においては、図6に示すように各種ズーム倍率に応じた比率F1/L1に対するフォーカスレンズ10aの合焦位置Pの関係を規定したルックアップテーブルLUT1を内部メモリ35に記憶しており、第2のAF処理部37は、ルックアップテーブルLUT1を参照して、算出した比率F1/L1に対する合焦位置Pを求める。そして求めた合焦位置Pにフォーカスレンズ10aを移動させるための指示をフォーカスレンズ駆動部11に出力する。これにより合焦動作が完了する。   In the present embodiment, as shown in FIG. 6, a lookup table LUT1 that defines the relationship of the focus position P of the focus lens 10a with respect to the ratio F1 / L1 corresponding to various zoom magnifications is stored in the internal memory 35. The second AF processing unit 37 refers to the lookup table LUT1 and obtains the in-focus position P for the calculated ratio F1 / L1. Then, an instruction for moving the focus lens 10 a to the determined focus position P is output to the focus lens driving unit 11. Thereby, the focusing operation is completed.

CPU40は、操作ボタン8および第1のAF処理部28等の各種処理部からの信号に応じてデジタルカメラ1の本体各部を制御する。   The CPU 40 controls each part of the main body of the digital camera 1 in accordance with signals from various processing units such as the operation button 8 and the first AF processing unit 28.

データバス41は、各種処理部、フレームメモリ26およびCPU40等に接続されており、画像データおよび各種指示等のやり取りを行う。   The data bus 41 is connected to various processing units, the frame memory 26, the CPU 40, and the like, and exchanges image data and various instructions.

次いで、本実施形態において行われる処理について説明する。図7は本実施形態において行われる処理を示すフローチャートである。なお、本発明はフラッシュ調光により取得されたプレ発光画像を用いた処理に特徴を有するため、以下に説明する実施形態においては、フラッシュ調光が行われるものとして説明する。   Next, processing performed in the present embodiment will be described. FIG. 7 is a flowchart showing processing performed in the present embodiment. Note that the present invention is characterized by processing using a pre-flash image acquired by flash dimming. Therefore, in the embodiments described below, the flash dimming will be described.

CPU40はレリーズボタン2が半押しされたか否かを監視しており(ステップST1)、レリーズボタン2が半押しされると、撮像系9がプレ撮影を行い(ステップST2)、第1のAF処理部28がプレ撮影により取得されたプレ画像を用いて第1のAF処理を行う(ステップST3)。次いでCPU40は、第1のAF処理が完了不可能であるか否かを判定し(ステップST4)、ステップST4が肯定されると、撮影者が撮影をやめることにより、レリーズボタン2が離されたか否かを判定する(ステップST5)。ステップST5が肯定されるとステップST1に戻る。ステップST5が否定されると、レリーズボタン2が全押しされたか否かを判定し(ステップST6)、ステップST6が否定されるとステップST5に戻る。   The CPU 40 monitors whether or not the release button 2 is half-pressed (step ST1). When the release button 2 is half-pressed, the imaging system 9 performs pre-photographing (step ST2), and the first AF processing is performed. The unit 28 performs the first AF process using the pre-image acquired by the pre-photographing (step ST3). Next, the CPU 40 determines whether or not the first AF process cannot be completed (step ST4). If the determination in step ST4 is affirmative, has the release button 2 been released because the photographer has stopped shooting? It is determined whether or not (step ST5). If step ST5 is affirmed, the process returns to step ST1. If step ST5 is negative, it is determined whether or not the release button 2 is fully pressed (step ST6). If step ST6 is negative, the process returns to step ST5.

ステップST6が肯定されると、発光制御部23がフラッシュ調光を行う(ステップST7)。これによりフラッシュ24の発光量が算出される。なお、この場合のフラッシュ調光時のフォーカスレンズ10aの合焦位置は、あらかじめ定められた位置(例えばカメラから1〜2mの位置)に設定される。次いで、顔検出部36がフラッシュ調光により取得されたプレ発光画像から顔を検出し(ステップST8)、第2のAF処理部37が顔の大きさに基づいて第2のAF処理を行う(ステップST9)。そして、フォーカスレンズ駆動部11が第2のAF処理により決定された合焦位置にフォーカスレンズ10aを移動する(合焦動作、ステップST10)。   If step ST6 is affirmed, the light emission control part 23 performs flash light control (step ST7). Thereby, the light emission amount of the flash 24 is calculated. In this case, the focus position of the focus lens 10a at the time of flash light control is set to a predetermined position (for example, a position of 1 to 2 m from the camera). Next, the face detection unit 36 detects a face from the pre-flash image acquired by flash dimming (step ST8), and the second AF processing unit 37 performs the second AF process based on the face size (step ST8). Step ST9). Then, the focus lens driving unit 11 moves the focus lens 10a to the focus position determined by the second AF process (focusing operation, step ST10).

次いで、CPU40が本撮影を行い(ステップST11)、処理を終了する。本撮影においては、フラッシュの発光(本発光)および画像の取得は、CPU40の指示の下、同期して行われる。なお、発光制御部23は、CPU40から指示されたタイミングで、算出した発光量にてフラッシュ24を発光させる。そして本撮影により取得した本画像の画像データを記録メディア34に記録する。   Next, the CPU 40 performs actual photographing (step ST11) and ends the process. In actual photographing, flash emission (main emission) and image acquisition are performed in synchronization under the instruction of the CPU 40. The light emission control unit 23 causes the flash 24 to emit light with the calculated light emission amount at a timing instructed by the CPU 40. Then, the image data of the main image acquired by the main shooting is recorded on the recording medium 34.

一方、ステップST4が否定されると、CPU40は、撮影者が撮影をやめることにより、レリーズボタン2が離されたか否かを判定する(ステップST12)。ステップST12が肯定されるとステップST1に戻る。ステップST12が否定されると、レリーズボタン2が全押しされたか否かを判定し(ステップST13)、ステップST13が否定されるとステップST12に戻る。   On the other hand, if step ST4 is negative, the CPU 40 determines whether or not the release button 2 has been released when the photographer stops shooting (step ST12). If step ST12 is positive, the process returns to step ST1. If step ST12 is negative, it is determined whether or not the release button 2 is fully pressed (step ST13). If step ST13 is negative, the process returns to step ST12.

ステップST12が肯定されると、発光制御部23がフラッシュ調光を行う(ステップST14)。これによりフラッシュ24の発光量が算出される。なお、この場合のフラッシュ調光時のフォーカスレンズ10aの合焦位置は、第1のAF処理により検出された合焦位置となる。次いで、ステップST11の処理に進み、CPU40が本撮影を行い、処理を終了する。   When step ST12 is affirmed, the light emission control part 23 performs flash light control (step ST14). Thereby, the light emission amount of the flash 24 is calculated. In this case, the focus position of the focus lens 10a during flash light control is the focus position detected by the first AF process. Next, the process proceeds to step ST11, where the CPU 40 performs the main photographing and ends the process.

このように、本実施形態においては、第2のAF処理によりプレ発光画像から検出された顔の大きさに応じて合焦動作を行うようにしたため、AF補助光源等の特別な手段を撮影装置に設けることなく、ピンぼけのない画像を取得することができる。   As described above, in the present embodiment, since the focusing operation is performed according to the size of the face detected from the pre-flash image by the second AF process, special means such as an AF auxiliary light source are used as the photographing apparatus. Therefore, it is possible to obtain an image without blur.

また、フラッシュ調光を行う場合のプレ発光により取得された画像を用いて第2のAF処理を行うことにより、第2のAF処理のみを目的としてフラッシュ24を発光させることなく、フラッシュ調光と併せて第2のAF処理を行うことができるため、効率よく第2のAF処理を行うことができる。   Further, by performing the second AF process using the image acquired by the pre-emission when performing the flash dimming, the flash dimming can be performed without causing the flash 24 to emit light only for the second AF process. In addition, since the second AF process can be performed, the second AF process can be performed efficiently.

また、第1のAF処理部28の合焦動作が完了不可能な場合に、第2のAF処理を行うことにより、被写体輝度が高く第1のAF処理が実行可能な場合には、より高い精度により合焦動作が行われるため、より精度よく合焦動作を行うことができる。   Further, when the focusing operation of the first AF processing unit 28 cannot be completed, by performing the second AF process, the subject brightness is high and the first AF process can be executed. Since the focusing operation is performed with accuracy, the focusing operation can be performed with higher accuracy.

なお、上記実施形態においては、第2のAF処理において、フラッシュ調光を行う際のプレ発光によりプレ発光画像を用いているが、フラッシュ24の発光は、赤目を防止する場合にも行われる。このため、フラッシュ調光を行わず、赤目防止のためにフラッシュ24を発光したときに撮像系9により撮影を行わせ、これにより取得した画像をプレ発光画像として用いて、第2のAF処理を行うようにしてもよい。また、第2のAF処理を行うことのみを目的としてフラッシュ24を発光させるようにしてもよい。   In the above embodiment, in the second AF process, a pre-emission image is used by pre-emission when performing flash light control. However, emission of the flash 24 is also performed when red-eye is prevented. For this reason, when the flash 24 is emitted to prevent red-eye without flash dimming, the image pickup system 9 performs shooting, and the image acquired thereby is used as a pre-flash image, and the second AF processing is performed. You may make it perform. Further, the flash 24 may emit light only for the purpose of performing the second AF process.

また、上記実施形態においては、第1のAF処理による合焦動作が完了不可能な場合に第2のAF処理を行っているが、第2のAF処理のみを行うようにしてもよい。   In the above-described embodiment, the second AF process is performed when the focusing operation by the first AF process cannot be completed. However, only the second AF process may be performed.

また、上記実施形態においては、プレ発光画像から複数の顔が検出される場合がある。このように複数の顔が検出された場合には、複数の顔のサイズの平均値、最も大きい顔、画像の中心に最も近い位置にある顔等の大きさに応じて、合焦位置を求めるようにすればよい。   Moreover, in the said embodiment, a some face may be detected from a pre light emission image. When a plurality of faces are detected in this way, the in-focus position is obtained according to the average size of the plurality of faces, the largest face, the size of the face closest to the center of the image, and the like. What should I do?

また、上記実施形態においては、画像の縦方向の長さに対する顔領域の縦方向の長さの比率を用いて合焦位置を求めているが、画像の縦方向の長さに対する顔領域の縦方向の長さの比率、画像の面積に対する顔領域の面積の比率、顔領域の縦または横方向の長さおよび顔領域の面積のいずれかを用いて合焦位置を求めるようにしてもよい。この場合、合焦位置を求めるためのルックアップテーブルは、画像の面積に対する顔領域の面積の比率等、対象とする顔のパラメータに応じて用意される。   In the above embodiment, the in-focus position is obtained by using the ratio of the vertical length of the face area to the vertical length of the image, but the vertical length of the face area with respect to the vertical length of the image. The focus position may be obtained by using any one of the ratio of the length in the direction, the ratio of the area of the face area to the area of the image, the length in the vertical or horizontal direction of the face area, and the area of the face area. In this case, the look-up table for obtaining the in-focus position is prepared according to the target face parameter such as the ratio of the area of the face area to the area of the image.

また、上記実施形態においては、ルックアップテーブルを用いて合焦位置を求めているが、ズーム倍率に応じた演算を行って合焦位置を求めるようにしてもよい。   In the above embodiment, the in-focus position is obtained using a look-up table. However, the in-focus position may be obtained by performing calculation according to the zoom magnification.

以上、本発明の実施形態に係るデジタルカメラ1について説明したが、コンピュータを、上記の顔検出部36および第2のAF処理部37に対応する手段として機能させ、図7に示すような処理を行わせるプログラムも、本発明の実施形態の1つである。また、そのようなプログラムを記録したコンピュータ読取り可能な記録媒体も本発明の実施形態の1つである。   As described above, the digital camera 1 according to the embodiment of the present invention has been described. However, the computer functions as a unit corresponding to the face detection unit 36 and the second AF processing unit 37, and the process as illustrated in FIG. The program to be executed is also one embodiment of the present invention. A computer-readable recording medium that records such a program is also one embodiment of the present invention.

本発明の実施形態による撮影装置を適用したデジタルカメラの外観を示す図(正面側)The figure which shows the external appearance of the digital camera to which the imaging device by embodiment of this invention is applied (front side) 本発明の実施形態による撮影装置を適用したデジタルカメラの外観を示す図(背面側)The figure which shows the external appearance of the digital camera to which the imaging device by embodiment of this invention is applied (back side) 本発明の実施形態による撮影装置を適用したデジタルカメラの内部構成を示す概略ブロック図1 is a schematic block diagram showing an internal configuration of a digital camera to which a photographing apparatus according to an embodiment of the present invention is applied. 調光エリアへの分割の一例を示す図The figure which shows an example of the division | segmentation into the light control area 顔の大きさの算出を説明するための図Diagram for explaining calculation of face size 各種ズーム倍率に応じた比率F1/L1に対する合焦位置Pの関係を規定したルックアップテーブルを示す図The figure which shows the look-up table which prescribed | regulated the relationship of the focus position P with respect to ratio F1 / L1 according to various zoom magnifications. 本実施形態において行われる処理を示すフローチャートA flowchart showing processing performed in the present embodiment

符号の説明Explanation of symbols

1 デジタルカメラ
5 モニタ
9 撮像系
10 撮影レンズ
11 フォーカスレンズ駆動部
23 発光制御部
24 フラッシュ
28 第1のAF処理部
36 顔検出部
37 第2のAF処理部
40 CPU
DESCRIPTION OF SYMBOLS 1 Digital camera 5 Monitor 9 Imaging system 10 Shooting lens 11 Focus lens drive part 23 Light emission control part 24 Flash 28 1st AF process part 36 Face detection part 37 2nd AF process part 40 CPU

Claims (5)

撮影により画像を取得する撮影手段と、
前記画像から顔を検出する顔検出手段と、
フラッシュと、
本撮影の指示を受けると、該本撮影の前に前記フラッシュをプレ発光させる発光制御手段と、
前記プレ発光時に前記撮影手段によりプレ発光撮影を行わせることによりプレ発光画像を取得し、該プレ発光画像から顔を検出するよう前記撮影手段および前記顔検出手段を制御する制御手段と、
前記プレ発光画像から検出された顔の大きさに応じて前記撮影手段の合焦動作を行う合焦手段とを備えたことを特徴とする撮影装置。
Photographing means for acquiring an image by photographing;
Face detection means for detecting a face from the image;
With flash,
Upon receiving an instruction for main shooting, light emission control means for pre-flashing the flash before the main shooting,
A control means for controlling the photographing means and the face detecting means to acquire a pre-flash image by causing the photographing means to perform pre-flash photographing at the time of the pre-light emission, and to detect a face from the pre-flash image;
An imaging apparatus comprising: a focusing unit that performs a focusing operation of the imaging unit in accordance with a face size detected from the pre-flash image.
前記発光制御手段は、前記本撮影の指示を受けると、該本撮影の前に前記撮影手段に発光を伴わない非発光撮影および前記プレ発光時における前記プレ発光撮影を行わせ、前記非発光撮影により取得された非発光画像および前記プレ発光画像に基づく演算を行って、前記本撮影時における前記フラッシュの発光量を制御するフラッシュ調光を行う手段であることを特徴とする請求項1記載の撮影装置。   Upon receiving the main shooting instruction, the light emission control unit causes the photographing unit to perform non-flash shooting without light emission and pre-flash shooting during the pre-flash before the main shooting, and the non-flash shooting. The flash light control for controlling the amount of light emission of the flash at the time of the main photographing by performing a calculation based on the non-light-emitting image and the pre-light-emitting image acquired by the method according to claim 1. Shooting device. プレ撮影により取得されたプレ画像を複数の領域に分割し、各領域のAF評価値に基づいて前記撮影手段の合焦動作を行う他の合焦手段をさらに備え、
前記制御手段は、前記他の合焦手段による合焦動作が完了不可能な場合に、前記プレ発光画像から顔を検出するよう前記撮影手段および前記顔検出手段を制御する手段であり、前記合焦手段は、前記プレ発光画像から検出された顔の大きさに応じて前記撮影手段の合焦動作を行う手段であることを特徴とする請求項1記載の撮影装置。
The pre-image acquired by the pre-photographing is further divided into a plurality of areas, and further provided with other focusing means for performing the focusing operation of the photographing means based on the AF evaluation value of each area,
The control means is means for controlling the photographing means and the face detection means so as to detect a face from the pre-flash image when the focusing operation by the other focusing means cannot be completed. 2. The photographing apparatus according to claim 1, wherein the focusing means is means for performing a focusing operation of the photographing means in accordance with a face size detected from the pre-emission image.
撮影により画像を取得する撮影手段と、
フラッシュと、
本撮影の指示を受けると、該本撮影の前に前記フラッシュをプレ発光させる発光制御手段とを備えた撮影装置の制御方法において、
前記プレ発光時に前記撮影手段によりプレ発光撮影を行わせることによりプレ発光画像を取得し、
該プレ発光画像から顔を検出し、
前記プレ発光画像から検出された顔の大きさに応じて前記撮影手段の合焦動作を行うことを特徴とする撮影装置の制御方法。
Photographing means for acquiring an image by photographing;
With flash,
In the control method of the photographing apparatus provided with the light emission control means for pre-flashing the flash before the main photographing when receiving the instruction of the main photographing,
A pre-flash image is obtained by performing pre-flash shooting with the shooting means during the pre-flash,
A face is detected from the pre-flash image,
A method for controlling a photographing apparatus, comprising: performing a focusing operation of the photographing unit according to a face size detected from the pre-emission image.
撮影により画像を取得する撮影手段と、
フラッシュと、
本撮影の指示を受けると、該本撮影の前に前記フラッシュをプレ発光させる発光制御手段とを備えた撮影装置の制御方法をコンピュータに実行させることを特徴とするプログラムにおいて、
前記プレ発光時に前記撮影手段によりプレ発光撮影を行わせることによりプレ発光画像を取得する手順と、
該プレ発光画像から顔を検出する手順と、
前記プレ発光画像から検出された顔の大きさに応じて前記撮影手段の合焦動作を行う手順とをコンピュータに実行させることを特徴とするプログラム。
Photographing means for acquiring an image by photographing;
With flash,
Upon receiving an instruction for main shooting, a program for causing a computer to execute a control method of an image pickup apparatus including a light emission control unit that pre-flashes the flash before the main shooting,
A procedure for obtaining a pre-flash image by causing the photographing means to perform pre-flash photographing during the pre-flash;
Detecting a face from the pre-flash image;
A program for causing a computer to execute a procedure for performing a focusing operation of the photographing unit in accordance with a face size detected from the pre-flash image.
JP2008184634A 2008-07-16 2008-07-16 Photographing apparatus, and control method and program of photographing apparatus Withdrawn JP2010026039A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008184634A JP2010026039A (en) 2008-07-16 2008-07-16 Photographing apparatus, and control method and program of photographing apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008184634A JP2010026039A (en) 2008-07-16 2008-07-16 Photographing apparatus, and control method and program of photographing apparatus

Publications (1)

Publication Number Publication Date
JP2010026039A true JP2010026039A (en) 2010-02-04

Family

ID=41731964

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008184634A Withdrawn JP2010026039A (en) 2008-07-16 2008-07-16 Photographing apparatus, and control method and program of photographing apparatus

Country Status (1)

Country Link
JP (1) JP2010026039A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104933419A (en) * 2015-06-30 2015-09-23 小米科技有限责任公司 Method and device for obtaining iris images and iris identification equipment
JP2015219443A (en) * 2014-05-20 2015-12-07 リコーイメージング株式会社 Imaging device
JP2017032754A (en) * 2015-07-31 2017-02-09 キヤノン株式会社 Imaging device, control method for same, and program
JP2022139871A (en) * 2021-03-12 2022-09-26 大日本印刷株式会社 Imaging system

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015219443A (en) * 2014-05-20 2015-12-07 リコーイメージング株式会社 Imaging device
CN104933419A (en) * 2015-06-30 2015-09-23 小米科技有限责任公司 Method and device for obtaining iris images and iris identification equipment
JP2017521742A (en) * 2015-06-30 2017-08-03 シャオミ・インコーポレイテッド Method and apparatus for acquiring iris image, and iris identification device
CN104933419B (en) * 2015-06-30 2019-05-21 小米科技有限责任公司 The method, apparatus and red film for obtaining iris image identify equipment
JP2017032754A (en) * 2015-07-31 2017-02-09 キヤノン株式会社 Imaging device, control method for same, and program
JP2022139871A (en) * 2021-03-12 2022-09-26 大日本印刷株式会社 Imaging system

Similar Documents

Publication Publication Date Title
TWI423664B (en) Imaging apparatus and exposure control method
JP4510768B2 (en) Imaging apparatus and method, and program
JP2008141740A (en) Apparatus, method and program for photography
JP2007264196A (en) Strobe control unit and method
JP2008116790A (en) Multiple-lens photographing device, exposure setting method in same, and program
JP2008129163A (en) Photographing device and its control method
JP5180349B2 (en) Imaging apparatus, method, and program
JP2007233113A (en) Distance measuring device and method
JP2008054293A (en) System for and method of photographing, and computer program
JP2008164731A (en) Photographing device and its control method
US8154620B2 (en) Imaging apparatus and imaging method
JP2010166304A (en) Photographing apparatus, method of controlling the same, and program
JP2010026039A (en) Photographing apparatus, and control method and program of photographing apparatus
JP2009290260A (en) Photographing apparatus, control method therefor and program
JP5532621B2 (en) Electronic camera and image processing program
JP2009049926A (en) Electronic camera
JP2009033386A (en) Photographing device and method
JP4879840B2 (en) Digital camera and control method thereof
JP2005136480A (en) Photographing apparatus
JP6300514B2 (en) IMAGING DEVICE AND IMAGING DEVICE CONTROL METHOD
JP2010136239A (en) Photographic apparatus, control method of the photographic apparatus and program
JP2007110498A (en) Compound eye photographing apparatus
JP2005167465A (en) Digital camera and imaging method of digital camera
JP2007336355A (en) Photographing device
JP5266077B2 (en) Imaging apparatus and control method thereof

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20111004