JP2008104156A - Digital camera and control method thereof - Google Patents

Digital camera and control method thereof Download PDF

Info

Publication number
JP2008104156A
JP2008104156A JP2007211251A JP2007211251A JP2008104156A JP 2008104156 A JP2008104156 A JP 2008104156A JP 2007211251 A JP2007211251 A JP 2007211251A JP 2007211251 A JP2007211251 A JP 2007211251A JP 2008104156 A JP2008104156 A JP 2008104156A
Authority
JP
Japan
Prior art keywords
face
value
parameter
light emission
digital camera
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.)
Granted
Application number
JP2007211251A
Other languages
Japanese (ja)
Other versions
JP4879840B2 (en
JP2008104156A5 (en
Inventor
Kazunori Tamura
一紀 田村
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 JP2007211251A priority Critical patent/JP4879840B2/en
Publication of JP2008104156A publication Critical patent/JP2008104156A/en
Publication of JP2008104156A5 publication Critical patent/JP2008104156A5/ja
Application granted granted Critical
Publication of JP4879840B2 publication Critical patent/JP4879840B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To emit a flash light with the proper quantity of light emission constantly even when a subject or a digital camera moves from face detection to light modulation control, in the digital camera which controls the quantity of flash light emission while utilizing a result of the face detection. <P>SOLUTION: A flash control means 19 of a digital camera 1 comprises a light emission quantity determining means 44 for determining the quantity of flash light emission by arithmetic processing in which a consideration degree of face in the determination of the quantity of light emission can be set as an arithmetic parameter; and parameter setting means (entire control unit 30, face area extraction unit 24 and the like) for acquiring index data indicating a degree of influences to be exerted upon the determination of the light emission quantity by movement of the digital camera or the subject, and setting a value of the arithmetic parameter to a value determined based on a value of the index data. <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

本発明は、被写体に含まれる顔の情報を利用してフラッシュの発光量を制御する機能を備えたデジタルカメラと、その発光量の制御方法に関する。   The present invention relates to a digital camera having a function of controlling the amount of flash emission using face information included in a subject, and a method for controlling the amount of light emission.

デジタルカメラは、通常、シャッタレリーズボタンが押される以前から画像の撮影を行っており、露出調整や焦点調節は、その段階で撮影された画像を利用して行われる。また、その段階で撮影された画像は、フラッシュの適正発光量を求めるのにも利用されている。フラッシュの発光量の求め方としては、撮影された画像全体の明るさに基づいて適正発光量を求める方法が一般的であったが、近年、撮影された画像から人物の顔を検出し、顔の有無や顔が占める割合によってフラッシュの発光量を異ならせる方法が提案されている。   A digital camera normally captures an image before the shutter release button is pressed, and exposure adjustment and focus adjustment are performed using the image captured at that stage. Further, the image taken at that stage is also used to obtain the appropriate amount of light emitted from the flash. As a method of obtaining the flash emission amount, a method of obtaining an appropriate emission amount based on the brightness of the entire photographed image is generally used. However, in recent years, a human face is detected from the photographed image, and the face is detected. There has been proposed a method of varying the amount of flash emission depending on the presence or absence and the proportion of the face.

例えば特許文献1には、人物の顔が検出され、画像中の顔が占める割合が所定値以上のときに、発光量を弱めにする方法が示されている。また、特許文献2には、顔に相当する領域のデータのみを利用して発光量を求める形態(第1の実施形態)や、顔に相当する領域の重み付けを他の領域よりも高く設定した画像データを利用して発光量を求める方法(第2の実施形態)が示されている。
特開2003−107567号公報 特開2006−074164号公報
For example, Patent Document 1 discloses a method of reducing the amount of light emission when a human face is detected and the ratio of the face in the image is equal to or greater than a predetermined value. Further, in Patent Document 2, a form in which the amount of light emission is obtained using only data of a region corresponding to a face (first embodiment), and a weighting of a region corresponding to a face is set higher than other regions. A method (second embodiment) for obtaining a light emission amount using image data is shown.
JP 2003-107567 A JP 2006-074164 A

特許文献1、2が示す方法では、顔検出用に取得された画像データの内容と、調光用に取得された画像データの内容が同じであれば、顔部分が白とびすることなく、また顔部分が暗くなることもなく、適切な明るさの画像を得ることができる。しかし、顔検出用の画像データの取得時点と調光用の画像データの取得時点との間には、通常数十ミリ秒以上の時間差があるため、この間に、被写体あるいはデジタルカメラが動いてしまう可能性がある。すなわち、顔検出用に取得された画像データの内容と、調光用に取得された画像データの内容とは、常に同じであるとは限らない。   In the methods disclosed in Patent Documents 1 and 2, if the content of the image data acquired for face detection is the same as the content of the image data acquired for dimming, the face portion is not overexposed. An image with appropriate brightness can be obtained without the face portion becoming dark. However, since there is usually a time difference of several tens of milliseconds or more between the acquisition time of the face detection image data and the acquisition time of the light control image data, the subject or the digital camera moves during this time. there is a possibility. That is, the content of the image data acquired for face detection and the content of the image data acquired for dimming are not always the same.

調光を行うときに顔検出のときと顔の位置がずれていると、顔に相当する領域として抽出された領域のデータを利用して発光量を求めても、求められた発光量は最適な値にはならない。また、顔がずれた結果、顔が検出された領域に配置されることとなった対象によっては、顔を考慮せずに発光量を求めた場合よりも、さらに不適切な値に発光量が設定されてしまうこともある。   If the face position is shifted from the time of face detection when dimming, the calculated amount of light emission is optimal even if the amount of light emission is calculated using the data of the area extracted as the area corresponding to the face. It is not a good value. In addition, depending on the target that was placed in the area where the face was detected as a result of the face shift, the amount of light emission may be more inappropriate than when the amount of light emission is calculated without considering the face. It may be set.

本発明は、この問題に鑑みて、顔検出が行われてから調光が行われるまでの間に、被写体やデジタルカメラが動いてしまったとしても、常に適正な発光量でフラッシュ発光を行えるデジタルカメラを提供することを課題とする。   In view of this problem, the present invention is a digital camera that can always perform flash light emission with an appropriate light emission amount even if the subject or the digital camera moves between the time when face detection is performed and the time when light control is performed. It is an object to provide a camera.

本発明のデジタルカメラは、被写体を表す画像データを生成する撮像手段と、フラッシュを発光する発光手段と、撮像手段により生成された画像データを対象として顔検出処理を実行する顔検出手段とを備え、顔検出手段が出力する検出結果を利用して前記フラッシュの発光量を制御する。そして、そのための手段として、発光量の決定における顔の考慮度合いを演算パラメータとして設定し得る演算処理によりフラッシュの発光量を求める発光量決定手段と、デジタルカメラまたは被写体の動きが発光量の決定に影響する度合いを示す指標データを取得し、演算パラメータの値を指標データの値に基づいて決まる値に設定するパラメータ設定手段とを備える。   The digital camera of the present invention includes an imaging unit that generates image data representing a subject, a light emitting unit that emits a flash, and a face detection unit that performs face detection processing on the image data generated by the imaging unit. The amount of light emitted from the flash is controlled using the detection result output by the face detection means. Then, as means for that, the light emission amount determining means for obtaining the light emission amount of the flash by a calculation process that can set the degree of consideration of the face in the determination of the light emission amount as a calculation parameter, and the movement of the digital camera or the subject determines the light emission amount. Parameter setting means for acquiring index data indicating the degree of influence and setting the value of the operation parameter to a value determined based on the value of the index data.

発光手段は、内蔵フラッシュでも、脱着可能な外付フラッシュでもよい。また、顔検出手段、発光量決定手段およびパラメータ設定手段は、それぞれ独立した回路として実装してもよいし、顔検出プログラム、発光量決定プログラム、パラメータ設定プログラムとしてメモリに記憶せしめ、プログラムに従った処理をCPUに実行させることにより実現してもよい。顔検出手段は、顔の有無のみを検出結果として出力するものでもよいし、顔の有無のみならず顔に相当する領域を抽出し、その領域を示す領域情報を出力するような手段であってもよい。   The light emitting means may be a built-in flash or a removable external flash. Further, the face detection unit, the light emission amount determination unit, and the parameter setting unit may be implemented as independent circuits, or may be stored in a memory as a face detection program, a light emission amount determination program, and a parameter setting program, and follow the program. You may implement | achieve by making a CPU perform a process. The face detection means may output only the presence / absence of the face as a detection result, or may extract not only the presence / absence of the face but also an area corresponding to the face and output area information indicating the area. Also good.

また、本発明の方法は、上記構成を有するデジタルカメラによるフラッシュ発光量の制御方法であって、発光量の決定における顔の考慮度合いを演算パラメータとして設定し得る演算処理によりフラッシュの発光量を求める発光量決定ステップと、発光量決定ステップに先立ち、デジタルカメラまたは被写体の動きが発光量の決定に影響する度合いを示す指標データを取得し、前記演算パラメータの値を前記指標データの値に基づいて決まる値に設定するパラメータ設定ステップとを有することを特徴とする。   The method of the present invention is a method for controlling the amount of flash light emitted by the digital camera having the above-described configuration. Prior to the light emission amount determination step and the light emission amount determination step, index data indicating the degree to which the movement of the digital camera or subject influences the determination of the light emission amount is acquired, and the value of the calculation parameter is based on the value of the index data And a parameter setting step for setting to a determined value.

ここで、前記演算処理は、多くの場合、撮像手段により生成された一の画像データを対象として実行された顔検出処理の検出結果と、撮像手段により生成された他の画像データに基づいて推定された被写体の必要光量、すなわち被写体の画像を取得する上で十分な露光量を得るために必要な光量とに基づいて発光量を求める処理である。よって、本発明の一実施形態として、パラメータ設定手段が、前記指標データとして、一の画像データが生成された時点と他の画像データが生成された時点との時間差の指標となるデータを取得し、その時間差が少なくとも所定範囲の時間であるときに、時間差が大きいほど顔の考慮度合いが低くなるように演算パラメータの値を設定する形態が考えられる。   Here, in many cases, the calculation process is estimated based on the detection result of the face detection process executed on one image data generated by the imaging unit and the other image data generated by the imaging unit. This is a process for obtaining the light emission amount based on the necessary light amount of the subject, that is, the light amount necessary for obtaining an exposure amount sufficient for obtaining an image of the subject. Therefore, as one embodiment of the present invention, the parameter setting means acquires, as the index data, data serving as an index of a time difference between the time when one image data is generated and the time when other image data is generated. When the time difference is at least within a predetermined range, the calculation parameter value may be set such that the greater the time difference, the lower the degree of consideration of the face.

例えば、デジタルカメラに時間差を計測する時間計測手段を設け、時間計測手段により計測された時間差に基づいて演算パラメータの値を設定する。時間差の計測は、顔検出処理用の画像データが生成された時点から、必要光量の推定に用いられた画像データが生成された時点までの経過時間を正確に計測してもよいが、各時点に準ずる時点を検出して計測を行なってもよい。例えば、顔検出処理により顔が検出された時点から必要光量が推定された時点までの経過時間を計測してもよい。   For example, the digital camera is provided with time measuring means for measuring the time difference, and the value of the calculation parameter is set based on the time difference measured by the time measuring means. The measurement of the time difference may be performed by accurately measuring the elapsed time from the time when the image data for face detection processing is generated to the time when the image data used for estimating the required light amount is generated. Measurement may be performed by detecting a time point according to the above. For example, the elapsed time from when the face is detected by the face detection process to when the necessary light amount is estimated may be measured.

あるいは、前記指標データとして、デジタルカメラに対し設定された撮影モードを示すデータや、デジタルカメラの状態を示すデータを取得する。そして、例えば、ブレが生じる可能性が高い撮影モードおよび/または状態ほど、顔の考慮度合いが低くなるように、演算パラメータの値を設定する。あるいは、前記時間差の推定時間が長い撮影モード、状態ほど、顔の考慮度合いが低くなるように、演算パラメータの値を設定してもよい。精度が優先されるときは、計測された時間に基づいてパラメータを設定するのがよい。一方、デジタルカメラに負荷をかけず簡易な機構で上記機能を実現したい場合には、撮影モードやカメラの状態に応じた値を設定するのがよい。   Alternatively, data indicating the shooting mode set for the digital camera or data indicating the state of the digital camera is acquired as the index data. Then, for example, the value of the calculation parameter is set so that the degree of consideration of the face becomes lower in the shooting mode and / or state in which the possibility of blurring is high. Alternatively, the value of the calculation parameter may be set so that the degree of consideration of the face becomes lower as the shooting mode and state have a longer estimated time difference. When accuracy is prioritized, parameters should be set based on the measured time. On the other hand, when it is desired to realize the above function with a simple mechanism without imposing a load on the digital camera, it is preferable to set a value according to the shooting mode and the camera state.

また、本発明の他の実施形態では、パラメータ設定手段は、前記指標データとして、顔検出手段により検出された顔の画像全体に占める割合を示すデータを取得する。顔の画像全体に占める割合が少なくとも所定範囲の割合であるときに、その割合が小さいほど顔の考慮度合いが低くなるように演算パラメータの値を設定する。例えば、顔が占める割合が所定の閾値以上のときは顔の考慮度合いを最大値に設定し、その閾値から0%までの範囲では、割合が小さいほど顔の考慮度合いが低くなるように設定する。   In another embodiment of the present invention, the parameter setting means acquires data indicating the ratio of the face detected by the face detection means to the entire image as the index data. When the proportion of the entire face image is at least in a predetermined range, the value of the calculation parameter is set so that the degree of consideration of the face decreases as the proportion decreases. For example, when the proportion of the face is greater than or equal to a predetermined threshold, the degree of consideration of the face is set to the maximum value, and within the range from the threshold to 0%, the consideration degree of the face is set to be lower as the proportion is smaller. .

さらに他の実施形態では、パラメータ設定手段は、前記指標データとして、焦点距離を示すデータを取得する。そして、焦点距離が少なくとも所定範囲の距離であるときに、焦点距離が長いほど顔の考慮度合いが低くなるように演算パラメータの値を設定する。本発明のさらに他の実施形態では、デジタルカメラは手ブレ検出手段を備えており、パラメータ設定手段は、前記指標データとして、手ブレ検出手段により検出されたブレ量を示すデータを取得する。そして、ブレ量が少なくとも所定範囲のブレ量であるときに、ブレ量が大きいほど顔の考慮度合いが低くなるように演算パラメータの値を設定する。また、本発明のさらに他の実施形態では、パラメータ設定手段は、前記指標データとして、測距手段により計測された被写体までの距離を示すデータを取得する。そして、その距離が、少なくとも所定範囲の長さであるときに、距離が長いほど顔の考慮度合いが低くなるように演算パラメータの値を設定する。   In still another embodiment, the parameter setting unit acquires data indicating a focal length as the index data. Then, when the focal length is at least a predetermined range, the value of the calculation parameter is set so that the longer the focal length, the lower the degree of consideration of the face. In still another embodiment of the present invention, the digital camera includes camera shake detection means, and the parameter setting means acquires data indicating the amount of shake detected by the camera shake detection means as the index data. Then, when the blur amount is at least within a predetermined range, the value of the calculation parameter is set so that the greater the blur amount, the lower the degree of consideration of the face. In still another embodiment of the present invention, the parameter setting means acquires data indicating the distance to the subject measured by the distance measuring means as the index data. Then, when the distance is at least the length of the predetermined range, the value of the calculation parameter is set so that the longer the distance, the lower the degree of consideration of the face.

上記本発明の構成および手順では、調光を行うときに、顔検出時と顔の位置がずれていたとしても、そのずれが発光量の決定に及ぼすマイナスの影響が大きいときには、顔に相当する領域として抽出された領域のデータが発光量の決定に与える影響が低く抑えられる。よって、顔がずれてしまった場合でも、少なくとも顔を考慮せずに調光を行ったときと同レベルの調光が行われ、最適でないまでも適切な発光量でフラッシュ撮影が行われる。   In the configuration and procedure of the present invention described above, even when the face is misaligned from the time of face detection when performing dimming, if the misalignment has a large negative influence on the determination of the light emission amount, it corresponds to the face. The influence of the data of the region extracted as the region on the determination of the light emission amount can be suppressed low. Therefore, even if the face is shifted, at least the same level of dimming as when dimming is performed without considering the face, and even if not optimal, flash photography is performed with an appropriate amount of light emission.

具体的な処理としては、例えば、撮像手段により生成された画像データを対象として顔検出手段が出力する検出結果を利用しない演算を行うことにより、発光量の仮適正値Cnを求めておき、一方で、撮像手段により生成された画像データを対象として顔検出手段が出力する検出結果を利用する演算を行うことにより、発光量の仮適正値Cfを求めておき、仮適正値Cnと仮適正値Cfとの平均を求める演算処理であって、前記パラメータ設定手段により設定されるパラメータの値により演算結果に対する仮適正値Cfの影響力が変化する演算処理を行うといったことが考えられる。ここで「平均」は、2つの値を何らかの形でバランスを取りつつ均す処理を意味し、単純平均のほか、二乗平均、対数平均、加重平均なども含むものとする。この演算処理によれば、パラメータαの設定一つで簡単に顔の考慮度合いを変更することができる。   As specific processing, for example, a temporary appropriate value Cn of the light emission amount is obtained by performing an operation not using the detection result output by the face detection unit for the image data generated by the imaging unit, Thus, a temporary appropriate value Cn and a temporary appropriate value are obtained by performing a calculation using the detection result output from the face detecting means for the image data generated by the image pickup means. It is conceivable to perform an arithmetic process for obtaining an average with Cf, in which the influence of the temporary appropriate value Cf on the calculation result changes according to the parameter value set by the parameter setting means. Here, “average” means a process of balancing two values in some form of balance, and includes, in addition to simple average, square average, logarithmic average, weighted average, and the like. According to this calculation process, the degree of consideration of the face can be easily changed with one setting of the parameter α.

この他、発光量の決定における顔の考慮度合いを演算パラメータとして設定し得る演算処理としては、撮像手段により生成された画像データに対し領域ごとに異なる重み付けを設定して演算を行うことにより発光量を求める処理で、その重み付けを任意に設定可能な演算パラメータとする処理なども考えられる。   In addition, as a calculation process in which the degree of consideration of the face in determining the light emission amount can be set as a calculation parameter, the light emission amount is calculated by setting different weights for each region on the image data generated by the imaging means. For example, a process for setting the weighting to an arbitrarily set operation parameter is also conceivable.

上記デジタルカメラは、指標データが示す影響の度合いが所定の基準を超えるときに、所定の警告動作を行なう警告手段を備えていてもよい。指標データが示す影響の度合いが所定の基準を超えるときとは、値が大きいときほど影響度合いが大きい指標データであれば指標データが所定値を超えたとき、値が小さいときほど影響度合いが大きい指標データであれば指標データが所定値を下回るときを意味する。警告要否の判定の基準となる閾値は、ユーザがデジタルカメラに求める仕様や性能に応じて、適宜定めればよい。撮影前に警告を行なうことにより、ユーザは、よりよい条件で撮影を行うことができる。また、撮影後に警告を行なうことにより、ユーザは問題点を確認した上で撮影をやり直すことができる。   The digital camera may include warning means for performing a predetermined warning operation when the degree of influence indicated by the index data exceeds a predetermined reference. When the degree of influence indicated by the index data exceeds a predetermined standard, the larger the value, the larger the degree of influence. If the index data exceeds the predetermined value, the smaller the value, the greater the degree of influence. If it is index data, it means when the index data falls below a predetermined value. The threshold value serving as a criterion for determining whether or not warning is required may be appropriately determined according to specifications and performance required by the user for the digital camera. By giving a warning before shooting, the user can perform shooting under better conditions. Also, by giving a warning after shooting, the user can redo the shooting after confirming the problem.

また、前記指標データを、フラッシュ発光を伴う撮影で取得された画像データと関連づけて記録媒体に記録する記録制御手段を備えていてもよい。これにより、発光量の決定に関与した情報を、後に、画像とともに確認することができる。   The index data may be recorded on a recording medium in association with image data acquired by shooting with flash emission. Thereby, the information related to the determination of the light emission amount can be confirmed later together with the image.

以下、本発明の実施形態として、フラッシュ撮影機能を備えた一眼レフのデジタルカメラと、そのデジタルカメラのフラッシュの発光量の制御方法を例示して、説明する。   Hereinafter, as an embodiment of the present invention, a single-lens reflex digital camera having a flash photographing function and a method for controlling the flash emission amount of the digital camera will be described as an example.

[ 実施形態1 ]
図1A、図1Bおよび図1Cは、本発明の一実施形態におけるデジタルカメラ1の外観を示す図である。図1Aに示すように、このデジタルカメラ1の上部には、シャッタレリーズボタン2、撮影モードの設定に利用されるモードダイヤル3、内蔵フラッシュ4および付属品の取付口であるホットシュー5が備えられている。
[Embodiment 1]
1A, 1B, and 1C are views showing an external appearance of a digital camera 1 according to an embodiment of the present invention. As shown in FIG. 1A, a shutter release button 2, a mode dial 3 used for setting a shooting mode, a built-in flash 4, and a hot shoe 5 serving as an attachment port for accessories are provided on the top of the digital camera 1. ing.

シャッタレリーズボタン2は、2段階の押下により2種類の動作を指示できる構造となっている。例えば、自動露出調整機能(AE:Auto Exposure)、自動焦点調節機能(AF:Auto Focus)を利用した撮影では、デジタルカメラ1は、シャッタレリーズボタン2が軽く押下(半押しともいう)されたときに、露出調整、焦点合わせなどの撮影準備を行う。その状態で、シャッタレリーズボタン2が強く押下(全押しともいう)されると、デジタルカメラ1は露光を開始し、露光により得られた1画面分の画像データをメモリカードに記録する。   The shutter 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 has the shutter release button 2 lightly pressed (also referred to as half-press). Next, prepare for shooting such as exposure adjustment and focusing. In this state, when the shutter release button 2 is pressed down (also referred to as full pressing), the digital camera 1 starts exposure and records image data for one screen obtained by exposure on the memory card.

内蔵フラッシュ4は、脇にあるフラッシュポップアップボタン6を押すことにより、図1Bに示すようにカメラ上部方向に開く(以下、ポップアップと称する)。また、一部の撮影モードでは、自動的にポップアップすることもある。ポップアップ状態の内蔵フラッシュ4は、シャッタレリーズボタン2の2段階目の押下操作と連動して2回発光する。1回目の発光は被写体からの反射光量を測定するための予備発光であり、通常の発光に比べれば発光量は微小である。2回目の発光は被写体に対して撮影に十分な光を供給するための(適切な露光量を得るための)本発光であり、本発光の発光量が適正であれば、適当な明るさの画像を得ることができる。   The built-in flash 4 opens in the upper direction of the camera as shown in FIG. 1B by pressing a flash pop-up button 6 on the side (hereinafter referred to as a pop-up). Also, in some shooting modes, it may pop up automatically. The built-in flash 4 in the pop-up state emits light twice in conjunction with the second-stage pressing operation of the shutter release button 2. The first light emission is preliminary light emission for measuring the amount of reflected light from the subject, and the light emission amount is very small compared to normal light emission. The second light emission is a main light emission for supplying a sufficient amount of light to the subject for photographing (to obtain an appropriate exposure amount). If the light emission amount of the main light emission is appropriate, an appropriate brightness is obtained. An image can be obtained.

内蔵フラッシュ4の動作は、シャッタレリーズボタン2の操作のみならず、モードダイヤル3により設定された撮影モードや、設定画面において設定されたフラッシュ発光モードにも依存する。   The operation of the built-in flash 4 depends not only on the operation of the shutter release button 2 but also on the shooting mode set by the mode dial 3 and the flash emission mode set on the setting screen.

撮影モードとしては、撮影に係る全設定をカメラが自動で行う「AUTO」、撮影に係る全設定をユーザが手動で行う「マニュアル」のほか、「プログラムオート」、「シャッタ優先オート」、「絞り優先オート」、「ブレ軽減」、「高感度2枚撮り」、「ナチュラルフォト」、「人物」、「風景」、「夜景」など、撮影シーンごとのモードが用意されている。また、フラッシュ発光モードとしては、「AUTO発光」、「強制発光」、「スローシンクロ」、「赤目軽減発光」、「赤目軽減発光+スローシンクロ」などのモードが用意されている。   Shooting modes include “AUTO” in which the camera automatically performs all settings related to shooting, “Manual” in which all settings related to shooting are manually performed by the user, “Program auto”, “Shutter priority auto”, “Aperture” Modes are prepared for each shooting scene, such as “priority auto”, “blur reduction”, “high sensitivity two-shot”, “natural photo”, “person”, “landscape”, and “night view”. As flash emission modes, modes such as “AUTO flash”, “forced flash”, “slow sync”, “red-eye reduction flash”, and “red-eye reduction flash + slow sync” are prepared.

撮影モード「AUTO」、フラッシュ発光モード「AUTO発光」に設定されたデジタルカメラ1は、フラッシュ撮影が必要と判断すれば、自動的に内蔵フラッシュ4をポップアップし、シャッタレリーズボタン2の操作と連動してフラッシュを発光させる。一方、撮影モード「ナチュラルフォト」はフラッシュレス撮影を行うモードであるため、このモードに設定されたデジタルカメラ1では、シャッタレリーズボタン2を操作しても内蔵フラッシュ4は動作しない。また、フラッシュ発光モード「赤目軽減発光」、「赤目軽減発光+スローシンクロ」に設定されたデジタルカメラ1は、被写体の瞳孔を収縮させて赤目現象の発生を予防することを目的とした赤目軽減発光を行う。撮影モード「人物」に設定されたデジタルカメラ1も、所定の条件が満たされた場合に自動的に赤目軽減発光を行う。他のモードについても、それぞれ、そのモードの目的に適う内蔵フラッシュ4の動作が定められている。   The digital camera 1 set to the shooting mode “AUTO” and the flash emission mode “AUTO flash” automatically pops up the built-in flash 4 when it is determined that flash shooting is necessary, and interlocks with the operation of the shutter release button 2. To fire the flash. On the other hand, since the shooting mode “natural photo” is a mode for performing flashless shooting, the built-in flash 4 does not operate even when the shutter release button 2 is operated in the digital camera 1 set to this mode. In addition, the digital camera 1 set to the flash emission mode “red-eye reduction emission” and “red-eye reduction emission + slow sync” has red-eye reduction emission for the purpose of preventing the occurrence of the red-eye phenomenon by constricting the pupil of the subject. I do. The digital camera 1 set to the photographing mode “person” also automatically emits red-eye reduction light when a predetermined condition is satisfied. In other modes, the operation of the built-in flash 4 is determined in accordance with the purpose of the mode.

なお、このデジタルカメラ1は、図1Cに示すようにホットシュー5に外付フラッシュ6を取り付けて使用することもできる。外付フラッシュ7は、ホットシュー5に取付けられることで機械的・電気的にデジタルカメラ1に接続され、これにより、内蔵フラッシュ4と同様、モードダイヤル3によるモード設定に応じて、シャッタレリーズボタン2の2段階目の押下操作と連動した発光動作を行うようになる。以下、図1Aおよび図1Bに例示した形態を中心に説明するが、本発明はフラッシュが内蔵か外付けかによらず適用可能な発明である。   The digital camera 1 can also be used with an external flash 6 attached to a hot shoe 5 as shown in FIG. 1C. The external flash 7 is mechanically and electrically connected to the digital camera 1 by being attached to the hot shoe 5, so that, like the built-in flash 4, the shutter release button 2 according to the mode setting by the mode dial 3. The light emission operation is performed in conjunction with the second-stage pressing operation. In the following, the embodiment illustrated in FIGS. 1A and 1B will be mainly described. However, the present invention is applicable regardless of whether the flash is built-in or external.

続いて、図2を参照して、デジタルカメラ1の内部構成について、概要を説明する。図2に示すように、デジタルカメラ1は、レンズ12、レンズ駆動部16、絞り13、絞り駆動部17、CCD14およびタイミングジェネレータ(TG)18からなる撮像系を備える。レンズ12は、被写体にピントを合わせるためのフォーカスレンズ、ズーム機能を実現するためのズームレンズなど複数の機能別レンズにより構成される。レンズ駆動部16はステッピングモータなど小型のモータで、CCD14から各機能別レンズのまでの距離が目的に適った距離となるように各機能別レンズの位置を調整する。絞り13は複数の絞り羽根からなる。絞り駆動部17は、ステッピングモータなど小型のモータで、絞りの開口サイズが目的に適ったサイズになるように絞り羽根の位置を調整する。CCD14は原色カラーフィルタを伴う500〜1200万画素のCCDで、タイミングジェネレータ18からの指示信号に応じて蓄積された電荷を放出する。タイミングジェネレータ18は、CCD14に所望の時間のみ電荷が蓄積されるようにCCD14に対して信号を送り、これによりシャッタ速度を調整する。   Next, an outline of the internal configuration of the digital camera 1 will be described with reference to FIG. As shown in FIG. 2, the digital camera 1 includes an imaging system including a lens 12, a lens driving unit 16, a diaphragm 13, a diaphragm driving unit 17, a CCD 14, and a timing generator (TG) 18. The lens 12 includes a plurality of functional lenses such as a focus lens for focusing on a subject and a zoom lens for realizing a zoom function. The lens driving unit 16 is a small motor such as a stepping motor, and adjusts the position of each functional lens so that the distance from the CCD 14 to each functional lens is a suitable distance for the purpose. The diaphragm 13 is composed of a plurality of diaphragm blades. The aperture drive unit 17 is a small motor such as a stepping motor, and adjusts the position of the aperture blades so that the aperture size of the aperture becomes a size suitable for the purpose. The CCD 14 is a CCD having 5 to 12 million pixels with a primary color filter, and discharges accumulated charges in response to an instruction signal from the timing generator 18. The timing generator 18 sends a signal to the CCD 14 so that charges are accumulated in the CCD 14 only for a desired time, thereby adjusting the shutter speed.

また、デジタルカメラ1は、CCD14の出力信号をデジタル信号に変換するA/D変換部15と、A/D変換部15が出力した画像データをシステムバス34を介して他の処理部に転送する画像入力制御部23と、画像入力制御部23から転送された画像データを一時記憶するSDRAM22を備える。SDRAM22に記憶される画像データはRAWデータである。   The digital camera 1 also transfers an A / D converter 15 that converts the output signal of the CCD 14 into a digital signal, and image data output from the A / D converter 15 to another processing unit via the system bus 34. An image input control unit 23 and an SDRAM 22 for temporarily storing image data transferred from the image input control unit 23 are provided. The image data stored in the SDRAM 22 is RAW data.

また、デジタルカメラ1は、フラッシュ11と、フラッシュ11の発光タイミングや発光量を制御するフラッシュ制御部19と、レンズ駆動部16にレンズの移動を指示して焦点合わせを行う焦点調節部20と、絞り値とシャッタ速度を決定し、絞り駆動部17とタイミングジェネレータ18に指示信号を送出する露出調整部21と、SDRAM22に記憶されている画像データを対象として顔の検出処理を実行し、顔の有無を示す値、さらに顔が有る場合には検出された顔に相当する領域を示す情報(以下、領域情報)を出力する顔領域抽出部(顔検出部)24を備える。フラッシュ制御部19、焦点調節部20および露出調整部21は、SDRAM22に記憶されている画像データのほか、顔領域抽出部24が実行した検出処理の結果を参照して処理を行うこともある。顔の検出結果を参照して露出調整を行う方法としては、例えば特開2001−215404号公報、特開2003−107555号公報などに開示されている方法を用いることができる。また、顔の検出結果を参照して焦点調節を行う方法としては、例えば特開2006−145629号公報に開示されている方法を用いることができる。フラッシュ制御部19、焦点調節部20および露出調整部21が、顔領域抽出部24から出力される検出結果を参照するか否かは、撮影モードその他の設定値によって決まる。   Further, the digital camera 1 includes a flash 11, a flash control unit 19 that controls the light emission timing and the light emission amount of the flash 11, a focus adjustment unit 20 that instructs the lens driving unit 16 to move the lens, and performs focusing. An aperture value and a shutter speed are determined, an exposure adjustment unit 21 that sends an instruction signal to the aperture drive unit 17 and the timing generator 18, and face detection processing is executed on the image data stored in the SDRAM 22. A face region extraction unit (face detection unit) 24 that outputs a value indicating presence / absence, and information (hereinafter, region information) indicating a region corresponding to the detected face when there is a face is provided. The flash control unit 19, the focus adjustment unit 20, and the exposure adjustment unit 21 may perform processing with reference to the result of detection processing executed by the face area extraction unit 24 in addition to the image data stored in the SDRAM 22. As a method for performing exposure adjustment with reference to the face detection result, for example, methods disclosed in Japanese Patent Laid-Open Nos. 2001-215404 and 2003-107555 can be used. As a method for performing focus adjustment with reference to the face detection result, for example, a method disclosed in Japanese Patent Application Laid-Open No. 2006-145629 can be used. Whether or not the flash control unit 19, the focus adjustment unit 20, and the exposure adjustment unit 21 refer to the detection result output from the face area extraction unit 24 depends on the shooting mode and other setting values.

デジタルカメラ1は、この他、SDRAM22に記憶されている画像データに対して画像処理を施す画像処理部25を備える。画像処理部25は、画像を自然な色合い、明るさにするための色階調補正や明るさ補正、また画像データが赤目を含むものであるときに赤目を黒目に修正する処理など、画像の見栄えを良くするための各種仕上げ処理を行った後、処理済画像データを再度SDRAM22に格納する。   In addition, the digital camera 1 includes an image processing unit 25 that performs image processing on image data stored in the SDRAM 22. The image processing unit 25 enhances the appearance of the image, such as color tone correction and brightness correction for natural color and brightness of the image, and processing for correcting red eyes to black eyes when the image data includes red eyes. After various finishing processes for improving the quality, the processed image data is stored in the SDRAM 22 again.

また、デジタルカメラ1は、SDRAM22に記憶されている画像データの液晶モニタ(LCD:Liquid Crystal Display)27への出力を制御する表示制御部26を備える。表示制御部26は、SDRAM22に記憶されている画像データの画素数を、表示に適した大きさとなるように間引きしてから液晶モニタ27に出力する。   The digital camera 1 also includes a display control unit 26 that controls the output of image data stored in the SDRAM 22 to a liquid crystal monitor (LCD) 27. The display control unit 26 thins out the number of pixels of the image data stored in the SDRAM 22 so as to have a size suitable for display, and then outputs it to the liquid crystal monitor 27.

また、デジタルカメラ1は、SDRAM22に記憶されている画像データのメモリカード29への書込み、およびメモリカード29に記録されている画像データのSDRAM22へのロードを制御する記録読出制御部28を備える。記録読出制御部28は、ユーザの設定に応じてRAWデータをそのまま、もしくは圧縮符号化によりJPEGデータに変換してからメモリカード29に記録する。詳細には、記録読出制御部28は、画像データと画像データの付帯情報を格納したExif(Exchangeable Image File Format)ファイルを、メモリカード29に記録する。画像データをロードするときは、ファイルから取り出した画像データを復号化して、SDRAM22にロードする。   The digital camera 1 also includes a recording / reading control unit 28 that controls writing of image data stored in the SDRAM 22 to the memory card 29 and loading of the image data recorded on the memory card 29 to the SDRAM 22. The recording / reading control unit 28 records the RAW data as it is or converted into JPEG data by compression encoding according to the setting of the user and then recorded on the memory card 29. Specifically, the recording / reading control unit 28 records an Exif (Exchangeable Image File Format) file in which the image data and the accompanying information of the image data are stored in the memory card 29. When loading image data, the image data extracted from the file is decoded and loaded into the SDRAM 22.

また、デジタルカメラ1は、ジャイロセンサなどにより構成される手ブレ検出部35を備える。手ぶれ検出部35は撮影時の手ブレを検出すると、フラッシュ制御部19、露出調整部21、画像処理部25に検出されたブレ量の情報を供給する。露出調整部21は、手ブレが検出されたときには手ブレが検出されないときよりもシャッタ速度を短く設定し、取得画像に対する手ブレの影響を軽減する。また、画像処理部25は、手ブレが検出されたとき、取得後の画像データに対しブレを補正する画像処理を施す。   The digital camera 1 also includes a camera shake detection unit 35 configured by a gyro sensor or the like. When the camera shake detection unit 35 detects a camera shake at the time of photographing, the camera shake detection unit 35 supplies information on the detected blur amount to the flash control unit 19, the exposure adjustment unit 21, and the image processing unit 25. The exposure adjustment unit 21 sets the shutter speed shorter when the camera shake is detected than when the camera shake is not detected, thereby reducing the influence of the camera shake on the acquired image. In addition, when camera shake is detected, the image processing unit 25 performs image processing for correcting the shake on the acquired image data.

また、デジタルカメラ1は、デジタルカメラ1から被写体までの距離を計測する測距機能を備える。測距機能はデジタルカメラ1の前面に距離センサーを設けることによっても実現できるが、本実施形態では、フォーカスレンズの位置情報とフォーカスレンズの駆動パルス数に基づいて被写体までの距離を判定する。   The digital camera 1 also has a distance measuring function that measures the distance from the digital camera 1 to the subject. Although the distance measuring function can be realized by providing a distance sensor on the front surface of the digital camera 1, in this embodiment, the distance to the subject is determined based on the position information of the focus lens and the number of driving pulses of the focus lens.

デジタルカメラ1は、この他、CPU(Central Processor Unit)31、操作/制御プログラムが格納されたRAM(Random Access Memory)32、各種設定値が記憶されているEEPROM(Electronically Erasable and Programmable Read Only Memory)33からなる全体制御部30を備える。全体制御部30は、モードダイヤルによる撮影モードの設定をはじめユーザが行う各種設定操作を検出し、設定された内容をEEPROM33に記憶せしめる。そして、その設定操作が行われたとき、もしくは撮影操作が行われたときに、EEPROMに記憶された設定値にしたがって、前述したフラッシュ制御部19、焦点調節部20、露出調整部21、画像入力制御部23、顔領域抽出部24、画像処理部25、表示制御部26、記録読出制御部29に対し、システムバス34を介して、実行すべき処理や、その処理の実行タイミングを指示する信号を送出する。   In addition, the digital camera 1 includes a CPU (Central Processor Unit) 31, a RAM (Random Access Memory) 32 in which an operation / control program is stored, and an EEPROM (Electronically Erasable and Programmable Read Only Memory) in which various setting values are stored. An overall control unit 30 is provided. The overall control unit 30 detects various setting operations performed by the user including the setting of the shooting mode by the mode dial, and stores the set contents in the EEPROM 33. Then, when the setting operation is performed or when the photographing operation is performed, the flash control unit 19, the focus adjustment unit 20, the exposure adjustment unit 21, and the image input described above according to the setting values stored in the EEPROM. A signal for instructing the control unit 23, the face area extraction unit 24, the image processing unit 25, the display control unit 26, and the recording / reading control unit 29 via the system bus 34 and the execution timing of the processing. Is sent out.

図3に、フラッシュ制御部19の構成とフラッシュ制御部19の入出力データを示す。フラッシュ制御部19は、図に示すように、第1演算手段41、第2演算手段42、パラメータ記憶手段43および発光量決定手段44を備える。第1演算手段41、第2演算手段42および発光量決定手段44は、後述する演算を実行する演算回路であり、パラメータ記憶手段43はEEPROMである。但し、パラメータ記憶手段43は、必ずしもフラッシュ制御部19の構成要素でなくてもよい。例えば、全体制御部30が備えるEEPROM33をパラメータ記憶手段43として利用してもよい。   FIG. 3 shows the configuration of the flash control unit 19 and the input / output data of the flash control unit 19. As shown in the figure, the flash control unit 19 includes first calculation means 41, second calculation means 42, parameter storage means 43, and light emission amount determination means 44. The first calculation means 41, the second calculation means 42, and the light emission amount determination means 44 are calculation circuits that execute calculations described later, and the parameter storage means 43 is an EEPROM. However, the parameter storage unit 43 is not necessarily a component of the flash control unit 19. For example, the EEPROM 33 provided in the overall control unit 30 may be used as the parameter storage unit 43.

第1演算手段41は、全体制御部30の制御の下、画像入力制御部23から、非発光時画像データと予備発光時画像データの供給を受ける。予備発光時画像データは、撮像部が全体制御部30の制御の下でフラッシュ11による予備発光と同期して撮影した画像データである。非発光時画像データは、その予備発光の直前または直後に、撮像部により撮影された画像データである。第1演算手段は、これら2種類の画像を用いて、後述する演算処理を実行することにより、顔を考慮しない場合のフラッシュ発光量の仮適正値Cnを求め、出力する。第1演算手段が実行する演算処理では、顔領域抽出部24が出力する領域情報は利用されない。   The first calculation means 41 receives supply of non-light emission image data and preliminary light emission image data from the image input control unit 23 under the control of the overall control unit 30. Preliminary light emission image data is image data taken by the imaging unit in synchronization with preliminary light emission by the flash 11 under the control of the overall control unit 30. The non-light emitting image data is image data taken by the imaging unit immediately before or after the preliminary light emission. The first calculation means obtains and outputs a temporary appropriate value Cn of the flash light emission amount when the face is not taken into consideration by executing calculation processing described later using these two types of images. In the calculation process executed by the first calculation means, the area information output by the face area extraction unit 24 is not used.

第2演算手段42は、第1演算手段と同様、全体制御部30の制御の下、画像入力制御部23から、非発光時画像データと予備発光時画像データの供給を受ける。第2演算手段42は、この他、顔領域抽出部24から、顔に相当する領域を示す領域情報の供給を受ける。そして、2種類の画像と領域情報とを用いて、後述する演算処理を実行することにより、顔を考慮した場合のフラッシュ発光量の仮適正値Cfを求め、出力する。   Similar to the first calculation means, the second calculation means 42 receives the non-light emission image data and the preliminary light emission image data from the image input control section 23 under the control of the overall control section 30. In addition, the second calculation means 42 receives supply of area information indicating an area corresponding to the face from the face area extracting unit 24. Then, a calculation process described later is performed using the two types of images and the region information, thereby obtaining and outputting a temporary appropriate value Cf of the flash emission amount in consideration of the face.

パラメータ記憶手段43が記憶するパラメータαは設定により可変なパラメータであり、顔領域抽出部24、手ブレ検出部35をはじめとする各処理部によって設定される。あるいは全体制御部30が、各処理部の出力を受けて、パラメータαを設定する。   The parameter α stored in the parameter storage unit 43 is a parameter that can be changed by setting, and is set by each processing unit including the face region extraction unit 24 and the camera shake detection unit 35. Alternatively, the overall control unit 30 receives the output of each processing unit and sets the parameter α.

発光量決定手段44は、第1演算手段41から出力された仮適正値Cnと、第2演算手段から出力された仮適正値Cfと、パラメータ記憶手段43から読み出したパラメータαとを利用して本発光の発光量を決定し、その決定に基づいてフラッシュ11の発光量を制御する。   The light emission amount determining means 44 uses the temporary appropriate value Cn output from the first calculating means 41, the temporary appropriate value Cf output from the second calculating means, and the parameter α read from the parameter storage means 43. The light emission amount of the main light emission is determined, and the light emission amount of the flash 11 is controlled based on the determination.

以下、第1演算手段41、第2演算手段42および発光量決定手段44が行う処理について、さらに説明する。第1演算手段41と第2演算手段42は、入力された非発光時画像データおよび予備発光時画像データを、複数の領域ブロックに分割する。図4は、領域ブロックへの分割の一例を示す図であり、画像データ45(非発光時画像データまたは予備発光時画像データ)を、n×m個の領域ブロックに分割したところを示している。以下の説明では、図に例示している(1,1)、(n,m)といった符号により、位置が異なる領域ブロックを区別するものとする。   Hereinafter, the processing performed by the first calculation unit 41, the second calculation unit 42, and the light emission amount determination unit 44 will be further described. The first calculating means 41 and the second calculating means 42 divide the inputted non-light emitting image data and preliminary light emitting image data into a plurality of area blocks. FIG. 4 is a diagram showing an example of division into area blocks, and shows that image data 45 (non-light emission image data or preliminary light emission image data) is divided into n × m area blocks. . In the following description, region blocks having different positions are distinguished by reference numerals (1, 1) and (n, m) illustrated in the drawings.

図5は、第1演算手段の処理を示すフローチャートである。第1演算手段41は、非発光時画像データの領域ブロックごとの輝度情報Ya(1,1)〜Ya(n,m)を取得する(S101)。例えば、非発光時画像データをRGB−YCC変換し、各画素の輝度値を求め、その画素輝度値の領域ごとの平均値を求め、輝度情報Yaとする。予備発光時画像データについても、同様の手順により、各領域ブロックの輝度情報Yb(1,1)〜Yb(n,m)を取得する(S102)。   FIG. 5 is a flowchart showing the processing of the first calculation means. The first calculation means 41 acquires luminance information Ya (1, 1) to Ya (n, m) for each area block of the non-light emitting image data (S101). For example, RGB-YCC conversion is performed on non-light-emitting image data, the luminance value of each pixel is obtained, and the average value of each pixel luminance value for each region is obtained as luminance information Ya. With respect to the image data at the time of preliminary light emission, the luminance information Yb (1, 1) to Yb (n, m) of each area block is acquired in the same procedure (S102).

続いて第1演算手段41は、領域ブロックごとに、ステップS102で取得した輝度情報Yb(x,y)とステップS101で取得した輝度情報Ya(x,y)との差分Yd(x,y)を計算する(S103)。そして、全領域ブロックの差分Yd(1,1)〜Yd(n,m)に基づいて、顔を考慮しない場合のフラッシュ発光量の適正値(仮適正値Cn)を決定し、出力する(S104)。例えば、差分Yd(1,1)〜Yd(n,m)の単純平均あるいは加重平均などから被写体からの単位発光量あたりの反射光量を推定する。そして、推定した反射光量から、最適な露出が得られる反射光量となる発光量、すなわち被写体の必要光量に相当する光を被写体に供給できる発光量を求め、これを仮適正値Cnとする。差分Yd(1,1)〜Yd(n,m)の加重平均を求める場合には、例えば画像の中央に近い領域ブロックの重み付けを大きくするなど、顔に依存しない重み付けを行う。   Subsequently, for each region block, the first calculation unit 41 calculates the difference Yd (x, y) between the luminance information Yb (x, y) acquired in step S102 and the luminance information Ya (x, y) acquired in step S101. Is calculated (S103). Then, based on the differences Yd (1,1) to Yd (n, m) of all area blocks, an appropriate value (temporary appropriate value Cn) of the flash emission amount when the face is not considered is determined and output (S104). ). For example, the amount of reflected light per unit light emission amount from the subject is estimated from the simple average or weighted average of the differences Yd (1, 1) to Yd (n, m). Then, from the estimated amount of reflected light, the amount of emitted light that is the amount of reflected light that provides an optimum exposure, that is, the amount of emitted light that can supply light corresponding to the required amount of light of the subject is obtained, and this is set as a temporary appropriate value Cn. When calculating the weighted average of the differences Yd (1,1) to Yd (n, m), weighting independent of the face is performed, for example, increasing the weighting of the area block near the center of the image.

図6は、第2演算手段の処理を示すフローチャートである。第2演算手段42は、図4に例示するように、顔領域抽出部24から供給された領域情報が示す領域46aに対応する領域ブロック群47aを選択する(S201)。例えば、各領域ブロックについて領域46aと重なる範囲の面積を計算し、面積の半分以上が領域46と重なっているブロック群47aを選択する。続いて、非発光時画像データの選択された領域ブロックの輝度情報Ya(p、q)を取得する(S202)。また、予備発光時画像データの選択された領域ブロックの輝度情報Yb(p、q)を取得する(S203)。   FIG. 6 is a flowchart showing the processing of the second calculation means. As illustrated in FIG. 4, the second calculation unit 42 selects a region block group 47a corresponding to the region 46a indicated by the region information supplied from the face region extraction unit 24 (S201). For example, the area of a range that overlaps the region 46 a is calculated for each region block, and the block group 47 a in which half or more of the area overlaps the region 46 is selected. Subsequently, the luminance information Ya (p, q) of the selected area block of the non-light emitting image data is acquired (S202). Also, the luminance information Yb (p, q) of the selected area block of the preliminary light emission image data is acquired (S203).

続いて第2演算手段42は、選択された領域ブロックごとに、ステップS203で取得した輝度情報Yb(p,q)とステップS202で取得した輝度情報Ya(p,q)との差分Yd(p,q)を計算する(S204)。そして、選択された領域ブロックについて求められた差分Yd(p,q)に基づいて、顔を考慮する場合のフラッシュ発光量の適正値(仮適正値Cf)を決定し、出力する(S205)。例えば、図4の例であれば、選択されたブロックは6個あるので、Yd(p1,q1)〜Yd(p6、q6)に基づいて仮適正値Cfを決定する。例えば、差分Yd(p1,q1)〜Yd(p6、q6)の単純平均から被写体からの単位発光量あたりの反射光量を推定する。そして、最適な露出が得られる反射光量となる発光量、すなわち被写体の必要光量に相当する光を被写体に供給できる発光量を求め、これを仮適正値Cfとする。   Subsequently, for each selected area block, the second calculation means 42 calculates the difference Yd (p) between the luminance information Yb (p, q) acquired in step S203 and the luminance information Ya (p, q) acquired in step S202. , Q) is calculated (S204). Then, based on the difference Yd (p, q) obtained for the selected area block, an appropriate value (temporary appropriate value Cf) of the flash emission amount when considering the face is determined and output (S205). For example, in the example of FIG. 4, since there are six selected blocks, the provisional appropriate value Cf is determined based on Yd (p1, q1) to Yd (p6, q6). For example, the amount of reflected light per unit light emission amount from the subject is estimated from a simple average of the differences Yd (p1, q1) to Yd (p6, q6). Then, a light emission amount that is a reflected light amount for obtaining an optimum exposure, that is, a light emission amount that can supply light corresponding to the required light amount of the subject to the subject is obtained, and this is set as a temporary appropriate value Cf.

発光量決定手段44は、第1演算手段41が出力した仮適正値Cnと、第2演算手段42が出力した仮適正値Cfを基準値とする調整を行うことにより、フラッシュ11の適正発光量Chを決定する。本実施形態ではパラメータ記憶手段43に記憶されているパラメータαに基づいて発光量の調整を行う。具体的には、発光量決定手段44は、次式(1)に基づく演算を行うことにより、適正発光量Chを決定する。
適正発光量Ch=Cn×(1−α)+Cf×α …(1)
(1)式に基づく演算では、パラメータαが大きいほど適正値Chの決定に、仮適正値Cfの値が大きく影響する。
The light emission amount determining means 44 performs an adjustment using the temporary appropriate value Cn output from the first calculating means 41 and the temporary appropriate value Cf output from the second calculating means 42 as a reference value, so that the appropriate light emission amount of the flash 11 is obtained. Ch is determined. In the present embodiment, the light emission amount is adjusted based on the parameter α stored in the parameter storage unit 43. Specifically, the light emission amount determining means 44 determines the appropriate light emission amount Ch by performing a calculation based on the following equation (1).
Appropriate light emission amount Ch = Cn × (1−α) + Cf × α (1)
In the calculation based on the equation (1), the value of the temporary appropriate value Cf greatly affects the determination of the appropriate value Ch as the parameter α increases.

顔を考慮した調光は、顔の検出に用いられる画像データと調光に用いられる画像データが同じであることを前提としている。しかし実際の撮影では、図7のタイムチャートに示すように、顔検出用画像データを取得する時点Aと非発光時画像データを取得する時点Bとの間には時間差t1があり、さらには非発光時画像データを取得する時点Bと予備発光時画像データを取得する時点Cまでの間には時間差t2がある。この時間差の合計Tは、通常、数十ミリ秒以上ある。この間に被写体が動いたり、手ブレが生じたりして、顔の検出に用いられる画像データと調光に用いられる画像データとが互いに異なるものとなる場合がある。   The dimming considering the face is based on the premise that the image data used for face detection and the image data used for dimming are the same. However, in actual shooting, as shown in the time chart of FIG. 7, there is a time difference t1 between the time point A at which the face detection image data is acquired and the time point B at which the non-light emitting image data is acquired. There is a time difference t2 between time point B at which the image data at the time of light emission is acquired and time point C at which the image data at the time of preliminary light emission is acquired. The total time difference T is usually several tens of milliseconds or more. During this time, the subject may move or camera shake may occur, so that the image data used for face detection and the image data used for dimming may differ from each other.

顔の検出に用いられる画像データと調光に用いられる画像データとが異なるときは、第2演算手段が出力する仮適正値Cfは必ずしも適正な値とはならない。2種類の画像データの異なり具合(顔の位置のずれ)が大きければ大きいほど、仮適正値Cfの信頼度は低くなる。そこで、2種類の画像データの顔の位置のずれ(予測されるずれ)が大きいときに、パラメータαの値を小さめに設定することによって、顔の検出結果が発光量制御に与える影響を抑える。具体的には、以下に例示する方針、構成および手順により、パラメータαを設定する。   When the image data used for face detection is different from the image data used for light control, the provisional appropriate value Cf output by the second calculation means is not necessarily an appropriate value. The greater the degree of difference (face position deviation) between the two types of image data, the lower the reliability of the temporary appropriate value Cf. In view of this, when the face position deviation (predicted deviation) between the two types of image data is large, the influence of the face detection result on the light emission amount control is suppressed by setting the parameter α to a small value. Specifically, the parameter α is set according to the policy, configuration, and procedure exemplified below.

本実施形態のデジタルカメラは、以下に例示する方針ごとに、複数のパラメータ設定手段を備えている。詳細には、全体制御部30、顔領域抽出部24、手ブレ検出部35、焦点距離調節部(図示せず)が、各々の機能を果たすとともに、パラメータ設定手段としても機能する。そして、ユーザの操作もしくは設定に基づいて選択された一のパラメータ設定手段により、もしくは選択された複数のパラメータ設定手段により段階的に、パラメータ記憶手段43のパラメータαが設定、更新される。   The digital camera of the present embodiment includes a plurality of parameter setting means for each policy exemplified below. More specifically, the overall control unit 30, the face area extraction unit 24, the camera shake detection unit 35, and the focal length adjustment unit (not shown) function as each function and also function as a parameter setting unit. Then, the parameter α in the parameter storage means 43 is set and updated stepwise by one parameter setting means selected based on the user's operation or setting or by a plurality of selected parameter setting means.

はじめに、全体制御部30のパラメータ設定機能について説明する。一般に、調光に用いられる画像データが、顔の検出に用いられた画像データと異なるものとなる可能性は、図7に示した時間差Tあるいは時間差t1が大きいほど高くなる。言い換えれば、時間差が大きいほど、第2演算手段が出力する仮適正値Cfの信頼度は低くなる。そこで、パラメータ設定手段としての全体制御部30は、デジタルカメラや被写体の動きが発光量の決定に与える影響の度合いを示す指標データとして、この時間差の情報を取得する。そして、時間差が大きいときには、仮適正値Cfの値が適正値Chの決定に大きく影響しないように、パラメータαの値を小さく設定する。   First, the parameter setting function of the overall control unit 30 will be described. In general, the possibility that the image data used for dimming differs from the image data used for face detection increases as the time difference T or the time difference t1 shown in FIG. 7 increases. In other words, the greater the time difference, the lower the reliability of the temporary appropriate value Cf output by the second calculation means. Therefore, the overall control unit 30 as parameter setting means acquires information on this time difference as index data indicating the degree of influence of the movement of the digital camera or the subject on the determination of the light emission amount. When the time difference is large, the value of the parameter α is set small so that the value of the temporary appropriate value Cf does not greatly affect the determination of the appropriate value Ch.

全体制御部30は、CPU31のクロック機能を利用したソフトウェアタイマーにより実時間を計測することで、時間差の情報を取得する。あるいは、ソフトウェアタイマーに代えて、専用のタイマー回路を設けてもよい。全体制御部30は、画像入力制御部23から顔領域抽出部24に顔検出用の画像データが供給されたときにタイマーをリセットし、画像入力制御部23からフラッシュ制御部19に調光用の画像データが供給されたときのタイマー値を時間差として記録する。調光用の画像データとしては、非発光時画像データと予備発光時画像データがあるが、いずれか一方の画像データが供給されたときの値を記録すればよい。   The overall control unit 30 acquires time difference information by measuring the real time with a software timer using the clock function of the CPU 31. Alternatively, a dedicated timer circuit may be provided instead of the software timer. The overall control unit 30 resets the timer when the image data for face detection is supplied from the image input control unit 23 to the face area extraction unit 24, and the light control unit 19 controls the light from the image input control unit 23 to the flash control unit 19. The timer value when the image data is supplied is recorded as a time difference. The image data for dimming includes non-light emission image data and preliminary light emission image data, and a value obtained when any one of the image data is supplied may be recorded.

また、全体制御部30のRAM32には、時間差と、パラメータαとの対応付けを定義したルックアップテーブル(LUT)が記憶されている。図8に、LUTの一例を示す。LUTは、時間差が大きいほどパラメータαの値が小さくなるように定義することが好ましい。但し、図8の例示のように、時間差が所定値を超えたときにパラメータαの値が単調減少するようなテーブルとしてもよい。すなわち、ある範囲において、パラメータαの値が時間差に対し単調減少していれば、他の範囲においてパラメータ値が一定であってもよい。全体制御部30は、LUTを参照することにより、タイマーにより計測した時間差に対応するパラメータ値を取得する。取得された値は、フラッシュ制御部19に転送され、パラメータ記憶手段に記憶される。   The RAM 32 of the overall control unit 30 stores a look-up table (LUT) that defines the association between the time difference and the parameter α. FIG. 8 shows an example of the LUT. The LUT is preferably defined so that the value of the parameter α decreases as the time difference increases. However, as illustrated in FIG. 8, a table may be used in which the value of the parameter α monotonously decreases when the time difference exceeds a predetermined value. That is, if the value of the parameter α is monotonously decreasing with respect to the time difference in a certain range, the parameter value may be constant in another range. The overall control unit 30 acquires a parameter value corresponding to the time difference measured by the timer by referring to the LUT. The acquired value is transferred to the flash control unit 19 and stored in the parameter storage unit.

上記タイマーとLUTは、フラッシュ制御部19が備えていてもよい。この場合、フラッシュ制御部19は、顔領域抽出部24から顔の検出結果がフラッシュ制御部19に供給された時点でタイマーをリセットし、非発光時画像データあるいは予備発光時画像データがフラッシュ制御部19に供給された時点のタイマー値を時間差として記録する。顔検出用の画像データが生成された時点と顔の検出結果が得られた時点との間には多少の時間のずれはあるものの、顔の検出結果が得られた時点を基点とする計測で得られる時間差も、指標データとして十分有効である。また、顔の検出結果を参照し、領域情報が含まれている場合、すなわち顔が検出された場合のみタイマーを作動させれば、不必要な時間計測は行われない。よって、顔検出用の画像データの供給時を基点として時間計測を行う場合より、デジタルカメラの負荷を低減することができる。   The flash control unit 19 may include the timer and the LUT. In this case, the flash control unit 19 resets the timer when the face detection result is supplied from the face area extraction unit 24 to the flash control unit 19, and the non-light-emitting image data or the preliminary light-emitting image data is stored in the flash control unit. 19 is recorded as a time difference. Although there is a slight time lag between the time when the image data for face detection is generated and the time when the face detection result is obtained, the measurement is based on the time when the face detection result is obtained. The obtained time difference is also sufficiently effective as index data. Further, if the timer is operated only when the face detection result is referred to and the region information is included, that is, when the face is detected, unnecessary time measurement is not performed. Therefore, the load on the digital camera can be reduced as compared with the case where time measurement is performed with the time of supplying image data for face detection as a base point.

以上に説明したように、時間差を計測し、時間差に応じたパラメータαの値を設定すれば、顔の検出結果の信頼度によって発光量制御における顔の重要度を調整することができ、発光量を適切な値に制御することが可能となる。   As described above, if the time difference is measured and the value of the parameter α corresponding to the time difference is set, the importance of the face in the light emission amount control can be adjusted by the reliability of the face detection result, and the light emission amount Can be controlled to an appropriate value.

上記時間差を考慮したパラメータの設定方法としては、この他、カメラの状態や、設定されている撮影モードに基づいて値を設定する方法がある。時間差の大きさは、カメラの状態や撮影モードに依存する。よって、カメラの状態や撮影モードも、発光量の決定におけるデジタルカメラや被写体の動きの影響度を示す指標データとして有効である。時間差が大きくなりがちな状態あるいは撮影モードのときにパラメータαを小さめに設定することで、計測された時間差に応じてパラメータを調整するのと同等の効果を得ることができる。ここで、カメラの「状態」とは、デジタルカメラ内部で区別される状態のことである。例えば、所定の操作が行われる前の状態と行われた後の状態とは、異なる状態といえる。またデジタルカメラが所定の動作や処理を完了する前の状態と完了した後の状態とは、異なる状態といえる。   As another parameter setting method considering the time difference, there is a method of setting a value based on the camera state and the set photographing mode. The magnitude of the time difference depends on the camera state and the shooting mode. Therefore, the state of the camera and the shooting mode are also effective as index data indicating the degree of influence of the movement of the digital camera or the subject in determining the light emission amount. By setting the parameter α to be smaller in a state where the time difference tends to become large or in the shooting mode, it is possible to obtain the same effect as adjusting the parameter according to the measured time difference. Here, the “state” of the camera is a state distinguished inside the digital camera. For example, it can be said that the state before the predetermined operation is performed is different from the state after the predetermined operation is performed. In addition, it can be said that the state before the digital camera completes the predetermined operation and processing is different from the state after the completion.

図9に、カメラの状態および撮影モードに基づいて、パラメータαを設定する処理の一例を示す。全体制御部30は、パラメータαの値を値α0に初期化し、変数kの値を1に初期化する(S301)。パラメータ設定手段として機能する処理部が全体制御部30のみであるときは、値α0は1である。全体制御部30以外の処理部がパラメータの設定に関与するときは、値α0は、他の処理部が先にパラメータ記憶手段43に対し設定した値を読み出して設定する。   FIG. 9 shows an example of processing for setting the parameter α based on the camera state and the shooting mode. The overall control unit 30 initializes the value of the parameter α to the value α0 and initializes the value of the variable k to 1 (S301). When the processing unit that functions as the parameter setting means is only the overall control unit 30, the value α0 is 1. When a processing unit other than the overall control unit 30 is involved in parameter setting, the value α0 is set by reading the value previously set in the parameter storage unit 43 by another processing unit.

初期化が完了すると、次に全体制御部は、カメラの状態に基づくパラメータαの調整を行う。図の例は、カメラの状態として、シャッタレリーズボタン2の半押し状態、すなわち、軽く押下されたところで操作が止められた状態の有無を判定する(S302)。半押し状態が検出されなかったときは、変数kに係数0.7を乗じる(S303)。一方、半押し状態が検出されなかったときは、変数kの値はそのままで、次のステップに移行する。   When the initialization is completed, the overall control unit next adjusts the parameter α based on the state of the camera. In the example shown in the figure, it is determined whether or not the shutter release button 2 is half-pressed, that is, whether the operation is stopped when it is lightly pressed (S302). If the half-pressed state is not detected, the variable k is multiplied by a coefficient 0.7 (S303). On the other hand, when the half-pressed state is not detected, the value of the variable k is kept as it is, and the process proceeds to the next step.

以下、半押し状態を判定する理由について、説明する。図10A〜10Cは、デジタルカメラの処理を、時間の流れとともに図の左から右に並べることで、シャッタレリーズボタンの操作とデジタルカメラの動作との関係を示した図である。図10Aおよび図10Cは、シャッタレリーズボタン2が第1段階まで押され(半押しされ)、しばらく時間をおいてから第2段階まで押された(全押しされた)ときの、デジタルカメラ1の動作を示している。一方、図10Bは、シャッタレリーズボタン2が一気に第2段階まで押されたときの、デジタルカメラ1の動作を示している。   Hereinafter, the reason for determining the half-pressed state will be described. FIGS. 10A to 10C are diagrams showing the relationship between the operation of the shutter release button and the operation of the digital camera by arranging the processes of the digital camera from the left to the right in the drawing along with the flow of time. FIG. 10A and FIG. 10C show the digital camera 1 when the shutter release button 2 is pressed to the first stage (half-pressed), and after a while, it is pressed to the second stage (fully pressed). The operation is shown. On the other hand, FIG. 10B shows the operation of the digital camera 1 when the shutter release button 2 is pressed all the way to the second stage.

図10Aに示すように、本実施形態のデジタルカメラ1は、シャッタレリーズボタン2が操作される以前から顔の検出処理を実行する。また、シャッタレリーズボタン2の半押し操作を検出したときは、全押し操作が検出されるまでの間、引き続き顔の検出処理を実行する。フラッシュ発光量は、全押し操作が検出された後、調光の過程で求められる。発光量の演算には、調光の直前に行われた顔検出処理の結果が利用される。   As shown in FIG. 10A, the digital camera 1 of the present embodiment executes face detection processing before the shutter release button 2 is operated. When the half-pressing operation of the shutter release button 2 is detected, the face detection process is continuously executed until the full-pressing operation is detected. The flash emission amount is obtained in the process of light control after the full-press operation is detected. For the calculation of the light emission amount, the result of the face detection process performed immediately before dimming is used.

一方、図10Bに示すように、シャッタレリーズボタン2が一気に第2段階まで押されたときには、顔の検出処理はシャッタレリーズボタン2が押下される以前しか実行されない。また、シャッタレリーズボタン2が押下された後にAE/AF処理が実行されるため、半押し状態を経て全押し操作が行なわれた場合と比べると、時間差T(あるいはt1)は大きくなる。すなわち、ステップS302において半押し状態を経たか否かを判定することは、時間差が大きいか否かを判定することと実質的に等しい。   On the other hand, as shown in FIG. 10B, when the shutter release button 2 is pressed all the way to the second stage, the face detection process is executed only before the shutter release button 2 is pressed. In addition, since the AE / AF process is executed after the shutter release button 2 is pressed, the time difference T (or t1) is larger than when the full-press operation is performed through the half-pressed state. In other words, determining whether or not the half-pressed state has passed in step S302 is substantially equivalent to determining whether or not the time difference is large.

なお、デジタルカメラ1と異なるタイプのカメラとして、図10Cに例示するように、シャッタレリーズボタンが押下された後は、顔検出処理を実行しないタイプのカメラもある。図10Cに示す動作を行うカメラの場合には、図10Cと図10Bの対比から明らかであるように、半押し状態を経たときのほうが時間差Tは大きくなる。よって、図10Cに例示するタイプのカメラでは、図9に例示した処理とは逆に、半押し状態が検出されたときに、変数kに1未満の係数を乗じるのがよい。   As another type of camera different from the digital camera 1, as shown in FIG. 10C, there is a type of camera that does not execute the face detection process after the shutter release button is pressed. In the case of a camera that performs the operation shown in FIG. 10C, the time difference T becomes larger when the camera is half-pressed, as is apparent from the comparison between FIG. 10C and FIG. 10B. Therefore, in the camera of the type illustrated in FIG. 10C, it is preferable to multiply the variable k by a coefficient less than 1 when a half-pressed state is detected, contrary to the process illustrated in FIG. 9.

図10Aと図10Cの例示から明らかであるように、カメラの状態に基づいてパラメータαの調整を行う場合、好ましい調整のしかたは、カメラの仕様や性能によって異なる。パラメータの増減の度合い、すなわち変数kに乗じる係数の値も、カメラの仕様や性能に応じて決定するのがよい。また、半押し状態に限らず、時間差が大きくなりがちな他の状態を判別して、変数kを調整してもよいことは言うまでもない。   As is clear from the illustrations of FIGS. 10A and 10C, when adjusting the parameter α based on the state of the camera, the preferred adjustment method differs depending on the specifications and performance of the camera. The degree of parameter increase / decrease, that is, the value of the coefficient to be multiplied by the variable k is preferably determined according to the specifications and performance of the camera. Needless to say, the variable k may be adjusted by determining not only the half-pressed state but also other states in which the time difference tends to increase.

カメラの状態に基づく変数kの調整が完了すると、続いて全体制御部30は、EEPROM33を参照して、所定の撮影モードが設定されているか否か判断する。図の例では、0.5秒以上の時間差が生じることが確実な赤目軽減発光モードと高感度2枚撮りモードについて判定を行う(S304,S306)。赤目軽減発光モードが設定されている場合には、全体制御部30は、変数kに係数0.5を乗じる(S305)。赤目軽減発光モードでは、シャッタレリーズボタン2の操作が検出された後に、被写体の瞳孔を収縮させることを目的とした発光が行われるが、瞳孔の収縮を待つ時間が確保されるため、時間差は大きくなる。よって、ステップS304およびS305の処理を行うことで、パラメータαの値を小さくする。   When the adjustment of the variable k based on the camera state is completed, the overall control unit 30 subsequently refers to the EEPROM 33 and determines whether or not a predetermined shooting mode is set. In the example in the figure, determination is made regarding the red-eye reduction light emission mode and the high-sensitivity two-shot mode in which a time difference of 0.5 seconds or more is surely generated (S304, S306). When the red-eye reduction light emission mode is set, the overall control unit 30 multiplies the variable k by a coefficient 0.5 (S305). In the red-eye reduction light emission mode, light emission is performed for the purpose of constricting the pupil of the subject after the operation of the shutter release button 2 is detected. Become. Therefore, the value of the parameter α is reduced by performing the processing of steps S304 and S305.

また、全体制御部30は、高感度2枚撮りモードが設定されている場合も、変数kに係数0.5を乗じる(S107)。高感度2枚撮りモードは、シャッタレリーズボタンの1回の操作で、非フラッシュ撮影とフラッシュ撮影の2回の撮影を、自動で行うモードである。このため、非フラッシュ撮影を行う分、他の撮影モードよりも時間差Tは大きくなる。よって、ステップS306およびS307の処理を行うことで、パラメータαの値を小さくする。   The overall control unit 30 also multiplies the variable k by a coefficient 0.5 even when the high-sensitivity two-shot mode is set (S107). The high-sensitivity two-shot mode is a mode in which non-flash shooting and flash shooting are automatically performed by one operation of the shutter release button. For this reason, the time difference T is larger than that in the other shooting modes because the non-flash shooting is performed. Therefore, the value of the parameter α is decreased by performing the processes of steps S306 and S307.

この他にも、撮影モードの目的を達成するために必然的に時間差Tが大きくなる、あるいは大きくなる可能性が高い撮影モードがあれば、同様に、パラメータαの値を小さくすることが好ましい。   In addition to this, if there is a shooting mode in which the time difference T inevitably increases or is likely to increase in order to achieve the purpose of the shooting mode, it is preferable to similarly decrease the value of the parameter α.

図9の処理では、ステップS303、S305およびS307において、変数kに対し段階的に係数が乗じられる。例えば、赤目軽減発光モードが設定された状態で、シャッタレリーズボタンが一気に押下されたときには、ステップS308における変数kの値は0.35となる。   In the process of FIG. 9, in step S303, S305, and S307, the variable k is multiplied by a coefficient stepwise. For example, when the shutter release button is pressed all at once in a state in which the red-eye reduction light emission mode is set, the value of the variable k in step S308 is 0.35.

ステップS308では、ステップS301〜S307において決定された変数kが、パラメータαの初期値α0に乗じられる。これにより決定されたパラメータαの値は、フラッシュ制御部19に転送され、パラメータ記憶手段に記憶される。   In step S308, the variable k determined in steps S301 to S307 is multiplied by the initial value α0 of the parameter α. The value of the parameter α thus determined is transferred to the flash controller 19 and stored in the parameter storage unit.

以上に説明したとおり、カメラの状態や撮影モードに基づいてパラメータを調整することとすれば、比較的簡単な処理で、顔の検出結果の信頼度を考慮した発光量制御を実現することができる。   As described above, if the parameters are adjusted based on the camera state and the shooting mode, it is possible to realize the light emission amount control in consideration of the reliability of the face detection result with a relatively simple process. .

なお、デジタルカメラが、顔検出処理や調光処理に使用する画像データに対し手ブレを補正する処理を施す場合には、上記時間差が大きくても、顔の検出結果の信頼度は必ずしも低くはならない。よって、全体制御部30により手ブレ補正モードのオン/オフを判定し、手ブレ補正モードがオフのときにのみ、図9に示す処理を実行することとしてもよい。   Note that when a digital camera performs a camera shake correction process on image data used for face detection processing or light control processing, the reliability of the face detection result is not necessarily low even if the time difference is large. Don't be. Therefore, the overall control unit 30 may determine whether the camera shake correction mode is on or off, and the process illustrated in FIG. 9 may be executed only when the camera shake correction mode is off.

ここで、撮影モードの判別は、シャッタレリーズボタン2が押下される以前に行うことができる。よって、全体制御部30は、シャッタレリーズボタン2の操作とは無関係に撮影モードを判別し、時間差が所定時間を超えることが予測される場合に、所定の警告動作を行ってもよい。図11に、警告動作を行う場合の全体制御部30の処理の一例を示す。図の例で、全体制御部30は、EEPROM33を参照することにより赤目軽減発光モードが設定されているか否かを判定する(S401)。さらに、高感度2枚撮りモードが設定されているか否かも判定する(S402)。いずれか一方のモードもしくは2つのモードが設定されている場合には、表示制御部26を介して、液晶モニタ27に、フラッシュの発光量制御において顔が重視されないことを示す警告マークやメッセージを出力する(S403)。あるいは、液晶モニタ27への出力に代えて、デジタルカメラに装備されているLEDランプを点滅させたり、スピーカから警告音を鳴らしたりしてもよい。   Here, the photographing mode can be determined before the shutter release button 2 is pressed. Therefore, the overall control unit 30 may determine the shooting mode regardless of the operation of the shutter release button 2 and perform a predetermined warning operation when the time difference is predicted to exceed the predetermined time. FIG. 11 shows an example of processing of the overall control unit 30 when a warning operation is performed. In the illustrated example, the overall control unit 30 determines whether or not the red-eye reduction light emission mode is set by referring to the EEPROM 33 (S401). Further, it is also determined whether or not the high-sensitivity two-shot mode is set (S402). When either one mode or two modes are set, a warning mark or a message indicating that the face is not regarded as important in the flash emission amount control is output to the liquid crystal monitor 27 via the display control unit 26. (S403). Alternatively, instead of output to the liquid crystal monitor 27, an LED lamp equipped in the digital camera may be blinked, or a warning sound may be emitted from a speaker.

全体制御部30が上記警告動作を行うことで、ユーザは撮影モードの設定を変更する機会を得ることができる。ユーザは、モード設定による利便性よりも、顔を重視した発光量制御を優先したければ、警告の原因となったモードをオフに設定しなおしてから撮影を行えばよい。   When the overall control unit 30 performs the warning operation, the user can have an opportunity to change the shooting mode setting. If the user gives priority to the light emission amount control with an emphasis on the face rather than the convenience of the mode setting, the user may take a picture after resetting the mode causing the warning to off.

なお、撮影モードの判別は、EEPROM33から得られる情報のみならず、他の処理部からのモード切り替え通知に基づいて行ってもよい。例えば、顔領域抽出部24が、検出精度が異なる複数種類の顔検出処理を選択的に実行する場合、検出精度が高い顔検出処理は時間がかかるので、時間差Tは長くなりがちである。そこで、顔領域抽出部24が、顔検出処理を切り替えたことを、一種のモード変更として、全体制御部30に通知するようにする。これにより、全体制御部30は、処理時間が長い検出処理が選択されたときに、デジタルカメラ1に所定の警告動作を行わせることができる。   Note that the determination of the shooting mode may be performed based on not only information obtained from the EEPROM 33 but also a mode switching notification from another processing unit. For example, when the face area extraction unit 24 selectively executes a plurality of types of face detection processes with different detection accuracy, the time difference T tends to be long because the face detection process with high detection accuracy takes time. Therefore, the face area extraction unit 24 notifies the overall control unit 30 that the face detection processing has been switched as a kind of mode change. Accordingly, the overall control unit 30 can cause the digital camera 1 to perform a predetermined warning operation when a detection process with a long processing time is selected.

また、警告動作は、シャッタレリーズボタン2の押下操作の後に行ってもよい。タイマーにより時間差を計測する場合には、時間差を事前に推測することはできない。よって、撮影の完了後に、計測された時間差が所定時間を超えたか否かで警告の要否を判断し、警告動作を行う。また、撮影モードに基づいて警告の要否を判断する場合も、撮影の完了後に図11に例示した処理を実行してもよい。例えば、取得直後の画像をユーザに確認させる目的でモニタに表示するときに、画像とともに警告マークなどを表示する。これにより、ユーザは取得された画像の画質が悪い原因を知ることができ、撮影条件を変えて撮影をやり直すことができる。   Further, the warning operation may be performed after the pressing operation of the shutter release button 2. When measuring the time difference with a timer, the time difference cannot be estimated in advance. Therefore, after completion of the photographing, it is determined whether or not a warning is necessary based on whether or not the measured time difference exceeds a predetermined time, and a warning operation is performed. Also, when determining whether or not a warning is necessary based on the shooting mode, the processing illustrated in FIG. 11 may be executed after the shooting is completed. For example, when an image immediately after acquisition is displayed on a monitor for the purpose of confirming by the user, a warning mark or the like is displayed together with the image. Accordingly, the user can know the cause of the poor image quality of the acquired image, and can redo the shooting while changing the shooting conditions.

続いて、顔領域抽出部24のパラメータ設定機能について説明する。図7A、図7B、図8Aおよび図8Bは、画像データと領域情報が示す領域と図6のステップS201において選択された領域ブロックの関係を示す図である。画像データ48は顔領域抽出部24が顔の検出処理に用いた画像データで、画像データ45はフラッシュ制御部19が調光に用いた画像データ(非発光時画像データあるいは予備発光時画像データ)である。図7Bおよび図8Bの楕円49は、調光時の顔の位置を示している。   Next, the parameter setting function of the face area extraction unit 24 will be described. FIG. 7A, FIG. 7B, FIG. 8A, and FIG. 8B are diagrams showing the relationship between the region indicated by the image data and the region information and the region block selected in step S201 in FIG. The image data 48 is image data used by the face area extraction unit 24 for face detection processing, and the image data 45 is image data used for light control by the flash control unit 19 (image data when no light is emitted or image data when preliminary light is emitted). It is. An ellipse 49 in FIGS. 7B and 8B indicates the position of the face during dimming.

図7Aおよび図7Bに示すように、画像に占める顔の割合が比較的大きい場合には、調光時の顔の位置が抽出された領域46bと多少ずれていても、選択されたブロック群47bの大半は、ずれた後の顔(楕円49)に対応している。よって、ずれが生じてしまったとしても、選択されたブロック群47bの輝度情報は、調光を行う上で参照に値する。しかし、図8Aおよび図8Bに示すように、画像に占める顔の割合が小さく、顔に対応するブロックが1つしか無いような場合には、顔の位置が抽出された領域46cとずれてしまったことにより、ブロック47cは顔と対応しなくなる。この場合、ブロック47cの輝度情報は、顔を考慮した調光処理では、もはや参照に値しない。これは、第2演算手段が出力する仮適正値Cfの信頼度が、画像に占める顔の割合が大きいほど高く、顔の割合が小さいほど低いことを意味する。   As shown in FIGS. 7A and 7B, when the proportion of the face in the image is relatively large, the selected block group 47b is used even if the face position at the time of light control is slightly shifted from the extracted area 46b. Corresponds to the face (ellipse 49) after being displaced. Therefore, even if a deviation occurs, the luminance information of the selected block group 47b is worth reference when performing dimming. However, as shown in FIGS. 8A and 8B, when the proportion of the face in the image is small and there is only one block corresponding to the face, the position of the face is shifted from the extracted region 46c. As a result, the block 47c does not correspond to the face. In this case, the luminance information of the block 47c is no longer worth reference in the dimming process considering the face. This means that the reliability of the temporary appropriate value Cf output by the second calculation means is higher as the ratio of the face in the image is larger and lower as the ratio of the face is smaller.

そこで、本実施形態では、顔領域抽出部24は、顔の抽出処理が完了した後、抽出した領域の、画像の横幅に対する割合を計算する。すなわち、発光量の決定におけるデジタルカメラや被写体の動きの影響度を示す指標データとして、画像全体に示す顔の割合を示すデータを取得する。そして、その割合と、パラメータαとの対応付けを定義したルックアップテーブル(LUT)を参照することによりパラメータαの値を決定し、フラッシュ制御部19のパラメータ記憶手段43に、そのα値を設定する。但し、LUTの参照に代えて、LUTと同等の変換を行う回路あるいはプログラムを採用してもよいことは言うまでもない。   Therefore, in this embodiment, the face area extraction unit 24 calculates the ratio of the extracted area to the horizontal width of the image after the face extraction process is completed. That is, data indicating the ratio of the face shown in the entire image is acquired as index data indicating the degree of influence of the movement of the digital camera or the subject in determining the light emission amount. Then, the value of the parameter α is determined by referring to a lookup table (LUT) that defines the correspondence between the ratio and the parameter α, and the α value is set in the parameter storage unit 43 of the flash control unit 19. To do. However, it goes without saying that instead of referring to the LUT, a circuit or a program for performing conversion equivalent to the LUT may be adopted.

図9に、LUTの一例を示す。このLUTによれば、顔の割合が所定の閾値Th1を下回るときには、パラメータαは、ゼロではない所定の下限値αLに設定される。また、顔の割合が所定の閾値Th2を上回るときには、パラメータαは、1ではない所定の上限値αUに設定される。そして、顔の割合が閾値Th1以上閾値Th2以下であるときは、パラメータαは、下限値αLから上限値αUまでの範囲で、顔の割合が小さいほど小さく、大きいほど大きな値に設定される。これにより、画像に占める顔の割合が小さいときには、発光量調整における仮適正値Cfの影響力が弱まり、被写体が動いたり手ブレが生じたりしても、演算により求まる発光量が適正範囲を大きく外れることはなくなる。   FIG. 9 shows an example of the LUT. According to this LUT, when the face ratio falls below a predetermined threshold value Th1, the parameter α is set to a predetermined lower limit value αL that is not zero. When the face ratio exceeds the predetermined threshold Th2, the parameter α is set to a predetermined upper limit value αU that is not 1. When the face ratio is greater than or equal to the threshold Th1 and less than or equal to the threshold Th2, the parameter α is set to a smaller value as the face ratio is smaller and larger as the face ratio is smaller in the range from the lower limit value αL to the upper limit value αU. As a result, when the ratio of the face to the image is small, the influence of the temporary appropriate value Cf in the light emission amount adjustment is weakened, and the light emission amount obtained by calculation increases the appropriate range even if the subject moves or shakes. It will not come off.

なお、上記処理では、画像の横幅に対する顔の横幅の割合を計算しているが、画像に占める顔の割合の指標となる値であれば、計算する値はどのような値であってもよい。例えば、抽出された領域の面積や画素数、画像全体の面積に対する顔の面積比などを計算してもよい。あるいは、顔の横幅と2つの目の間隔とは相関関係があるので、目を検出して目と目の間隔を求め、これを画像に占める顔の割合を示す指標値として演算に利用してもよい。すなわち、LUTの横軸として設定されるパラメータは、上記処理の目的に適うものであれば特に限定されない。また、上記LUTでは、閾値Th1以上閾値Th2以下の範囲においてパラメータの値が線形的に増加するが、非線形に増加する(LUTが非線形カーブを描く)ようにしてもよい。また、閾値Th1、Th2も、設計方針に応じて任意に定めることができるので、上記例のように閾値で区切られた一部の範囲においてのみαの値が単調増加するLUTのほか、閾値を設けずαの値が全範囲にわたって単調増加するようなLUTも採用し得る。   In the above processing, the ratio of the width of the face to the width of the image is calculated. However, any value may be used as long as the value is an index of the ratio of the face to the image. . For example, the area of the extracted region, the number of pixels, the area ratio of the face to the area of the entire image, and the like may be calculated. Alternatively, since the width of the face and the interval between the two eyes are correlated, the eyes are detected to determine the interval between the eyes, and this is used as an index value indicating the ratio of the face in the image. Also good. That is, the parameter set as the horizontal axis of the LUT is not particularly limited as long as it meets the purpose of the above processing. In the LUT, the parameter value increases linearly in the range from the threshold Th1 to the threshold Th2, but may increase nonlinearly (the LUT draws a nonlinear curve). Further, since the threshold values Th1 and Th2 can be arbitrarily determined according to the design policy, in addition to the LUT in which the value of α increases monotonously only in a part of the range delimited by the threshold values as in the above example, the threshold values are set. An LUT in which the value of α is monotonically increased over the entire range without being provided may also be employed.

また、顔領域抽出部24は、画像に占める顔の割合が所定の基準を下回るときに、全体制御部30に対し、警告信号を送出する。警告信号を受けた全体制御部30は、前述した警告動作を行う。   Further, the face area extraction unit 24 sends a warning signal to the overall control unit 30 when the ratio of the face in the image falls below a predetermined reference. Receiving the warning signal, the overall control unit 30 performs the warning operation described above.

続いて、手ブレ検出部35のパラメータ設定機能について説明する。手ブレが検出されたということは、図7Bや図8Bに示した状態が発生しているということであり、仮適正値Cfの信頼度は、ブレ量が大きいほど低いものとなる。すなわち、手ブレ検出部35が検出したブレ量は、それ自体が発光量の決定におけるデジタルカメラや被写体の動きの影響度を示す指標データとなり得る。   Next, the parameter setting function of the camera shake detection unit 35 will be described. The fact that camera shake has been detected means that the state shown in FIG. 7B or FIG. 8B has occurred, and the reliability of the temporary appropriate value Cf becomes lower as the amount of shake increases. That is, the shake amount detected by the camera shake detection unit 35 itself can be index data indicating the influence of the movement of the digital camera or the subject in determining the light emission amount.

手ブレ検出部35もまた、LUTを使って、パラメータαを決定する。図10に、手ブレ検出部35が使用するLUTの一例を示す。手ブレ検出部35は手ブレが発生したことを検出するのみならず、そのブレ量も測定するため、LUTの横軸はブレ量とする。このLUTによれば、ブレ量が0のときはパラメータαの値は上限値αUに設定され、以降ブレ量が大きくなるほどパラメータαの値は小さく設定され、ブレ量が所定の閾値Th9を越えると、パラメータαの値は下限値αLに設定される。これにより、ブレ量が大きいときには、発光量調整における仮適正値Cfの影響力が弱まり、演算により求まる発光量が適正範囲を大きく外れることはなくなる。   The camera shake detection unit 35 also determines the parameter α using the LUT. FIG. 10 shows an example of the LUT used by the camera shake detection unit 35. The camera shake detector 35 not only detects the occurrence of camera shake, but also measures the amount of camera shake, so the horizontal axis of the LUT is the camera shake amount. According to this LUT, when the shake amount is 0, the value of the parameter α is set to the upper limit value αU, and thereafter, the value of the parameter α is set to be smaller as the shake amount increases, and when the shake amount exceeds a predetermined threshold Th9. The value of the parameter α is set to the lower limit value αL. Thereby, when the blur amount is large, the influence of the temporary appropriate value Cf in the light emission amount adjustment is weakened, and the light emission amount obtained by the calculation does not greatly deviate from the appropriate range.

また、手ブレ検出部35は、検出されたブレ量が所定の基準を上回るときに、全体制御部30に対し、警告信号を送出する。警告信号を受けた全体制御部30は、前述した警告動作を行う。   Further, the camera shake detection unit 35 sends a warning signal to the overall control unit 30 when the detected blur amount exceeds a predetermined reference. Receiving the warning signal, the overall control unit 30 performs the warning operation described above.

さらに、他の処理部をパラメータ設定手段として機能させてもよい。例えば、望遠レンズなど焦点距離が長いレンズを使用した撮影では、画角が狭いため、通常の撮影よりも手ブレの影響が強く出やすい。これは、焦点距離が長いときは、仮適正値Cfの信頼度は高くないということである。よって、レンズの交換操作を検出し得る全体制御部30、もしくはズームレンズの調整を行う焦点距離調節部(図示せず)が、前記指標データとして焦点距離の情報を取得し、焦点距離に応じたパラメータ値を設定するようにしてもよい。LUTとしては、例えば、焦点距離が所定の閾値よりも長いときには、パラメータαの値を下限値αLに設定するようなテーブルとする。これにより、焦点距離が長く手ブレの影響を受けやすいときには、発光量調整における仮適正値Cfの影響力が弱まるので、被写体が動いたり手ブレが生じたりしても、それが原因で、決定される発光量が適正範囲を大きく外れるということはない。   Furthermore, other processing units may function as parameter setting means. For example, shooting using a lens with a long focal length, such as a telephoto lens, is more susceptible to camera shake than normal shooting because the angle of view is narrow. This means that the reliability of the temporary appropriate value Cf is not high when the focal length is long. Therefore, the overall control unit 30 that can detect the lens replacement operation or the focal length adjustment unit (not shown) that adjusts the zoom lens acquires focal length information as the index data, and corresponds to the focal length. A parameter value may be set. The LUT is, for example, a table that sets the value of the parameter α to the lower limit value αL when the focal length is longer than a predetermined threshold. As a result, when the focal length is long and susceptible to camera shake, the influence of the temporary appropriate value Cf in the light emission amount adjustment is weakened. Therefore, even if the subject moves or camera shake occurs, the cause is determined. The emitted light quantity does not deviate significantly from the appropriate range.

また、被写体までの距離も、発光量の決定におけるデジタルカメラや被写体の動きの影響度を示す指標データとして有効である。被写体までの距離は、前述した測距機能により測定する。デジタルカメラから被写体(顔)までの距離と、顔の大きさ(画像中の顔が占める割合)の間には、相関関係があるので、被写体までの距離に応じてパラメータαを設定した場合も、画像中の顔が占める割合に応じてパラメータαを設定した場合と、同様の効果を得ることができる。   The distance to the subject is also effective as index data indicating the degree of influence of the movement of the digital camera or the subject in determining the light emission amount. The distance to the subject is measured by the distance measuring function described above. Since there is a correlation between the distance from the digital camera to the subject (face) and the size of the face (ratio occupied by the face in the image), the parameter α may be set according to the distance to the subject. The same effect can be obtained as when the parameter α is set according to the ratio of the face in the image.

ここで、図9および図10に例示したLUTでは、横軸に設定されたパラメータの値が所定の範囲内の値であるときに、横軸のパラメータに対し、縦軸のパラメータαが線形的に増加しているが、非線形に増加するようなLUT、すなわち直線ではなく非線形カーブを描くテーブルを採用してもよい。また、各閾値は、設計方針に応じて任意に定めることができる。   Here, in the LUT illustrated in FIGS. 9 and 10, when the parameter value set on the horizontal axis is a value within a predetermined range, the parameter α on the vertical axis is linear with respect to the parameter on the horizontal axis. However, an LUT that increases nonlinearly, that is, a table that draws a nonlinear curve instead of a straight line may be adopted. Each threshold value can be arbitrarily determined according to the design policy.

なお、パラメータαの設定をどの処理部が行うか、あるいはどのようなLUTを利用するかは、撮影モードなどの設定に応じて切り替える。あるいは、単にパラメータを記憶するだけのパラメータ記憶手段43に代えて、複数の処理部からパラメータ値もしくは指標データの入力を受け付けて、入力された複数の値を使って、新たに最適なパラメータ値を求める手段を設けてもよい。例えば、顔領域抽出部24、手ブレ検出部35その他の処理部が出力したパラメータ値を図9の処理における初期値α0として、図9に例示した処理によりパラメータ値を求める。あるいは、各処理部が出力した指標データを収集し、複数の指標データの組み合わせに基づいて、パラメータ値を決定してもよい。   Note that which processing unit performs the setting of the parameter α or which LUT is used is switched according to the setting of the shooting mode and the like. Alternatively, instead of the parameter storage means 43 that merely stores parameters, input of parameter values or index data is accepted from a plurality of processing units, and a new optimum parameter value is obtained using the input values. Means for obtaining may be provided. For example, the parameter values output by the face area extraction unit 24, the camera shake detection unit 35, and other processing units are set as the initial value α0 in the processing of FIG. 9, and the parameter values are obtained by the processing illustrated in FIG. Alternatively, the index data output by each processing unit may be collected, and the parameter value may be determined based on a combination of a plurality of index data.

また、本実施形態において、パラメータの設定に関与する処理部は、それぞれ、パラメータの設定に関連する情報を記録読出制御部28に転送する。転送する情報には、指標データも含まれる。例えば、計測された時間差T(msec)、顔の重視度合い(%)、警告の有無、算出された適正発光量(Av)などのデータが、各値を決定した処理部から記録読出制御部28に転送される。記録読出制御部28は、Exifファイルをメモリカード29に記録する際に、これらの情報をファイルヘッダの所定領域に格納する。あるいは、Exifファイルに付随するデバッグデータにパラメータの設定に関連する情報を記録してもよい。   In the present embodiment, the processing units involved in parameter setting each transfer information related to parameter setting to the recording / reading control unit 28. The information to be transferred includes index data. For example, data such as the measured time difference T (msec), the degree of importance of the face (%), the presence / absence of a warning, and the calculated appropriate light emission amount (Av) from the processing unit that determines each value to the recording / reading control unit 28. Forwarded to When recording the Exif file on the memory card 29, the recording / reading control unit 28 stores these pieces of information in a predetermined area of the file header. Alternatively, information related to parameter settings may be recorded in debug data accompanying the Exif file.

全体制御部30および表示制御部26は、ユーザから撮影された画像の確認表示を要求されたときに、画像とともに、上記パラメータの設定に関連する情報を表示する。これにより、ユーザは撮影状況と発光量制御における顔の考慮度合いの関係を知ることができる。   The overall control unit 30 and the display control unit 26 display information related to the setting of the parameters together with the image when a confirmation display of the image taken by the user is requested. Thereby, the user can know the relationship between the photographing situation and the degree of consideration of the face in the light emission amount control.

上記構成によれば、顔の検出結果を利用して調光を行うことに問題があるときに、パラメータαの値が小さめに設定され、発光量の決定における仮適正値Cfの影響力を抑えることができる。しかし、タイマーの故障、顔の誤検出などが原因で、誤った指標データが取得されたときには、パラメータαの値が不適切な値に設定されてしまう。そこで、本実施形態では、不測の事態が発生しても、発光量決定手段44により決定された発光量が、適正範囲を大きく外れないよう、調整を行う。   According to the above configuration, when there is a problem in performing dimming using the face detection result, the value of the parameter α is set to be small, and the influence of the temporary appropriate value Cf in determining the light emission amount is suppressed. be able to. However, the parameter α is set to an inappropriate value when incorrect index data is acquired due to a failure of the timer, erroneous face detection, or the like. Therefore, in the present embodiment, even if an unexpected situation occurs, adjustment is performed so that the light emission amount determined by the light emission amount determination unit 44 does not greatly deviate from the appropriate range.

具体的には、発光量決定手段44により、顔を考慮せずに調光を行った場合に求められる適正値、すなわち第1演算手段41が出力する仮適正値Cnを基準とし、その仮適正値Cnの値から判断して妥当と思われる範囲に、適正発光量Chを制限する。つまり、適正発光量Chを、固定された範囲に制限するのではなく、仮適正値Cnに基づいて定められた範囲に制限する。   Specifically, the provisional proper value obtained when the light emission amount determining means 44 performs dimming without considering the face, that is, the provisional proper value Cn output by the first calculation means 41, is used as a reference. The appropriate light emission amount Ch is limited to a range that is considered to be appropriate based on the value Cn. That is, the appropriate light emission amount Ch is not limited to a fixed range, but is limited to a range determined based on the temporary appropriate value Cn.

具体的には、発光量決定手段44に、次式(2)および(3)に基づく処理により、適正発光量Chを決定させる。
Ck=Cn×(1−α)+Cf×α … (2)

Figure 2008104156
Specifically, the light emission amount determining means 44 is caused to determine the appropriate light emission amount Ch by processing based on the following equations (2) and (3).
Ck = Cn × (1−α) + Cf × α (2)
Figure 2008104156

ここで、Ckは仮の適正発光量である。また、ULは、正常な顔検出が行われた場合であって適正値Cfが適正値Cnよりも大きくなる場合に、適正値Cfと適正値Cnの差分が取り得る値の最大値である。またLLは、正常な顔検出が行われた場合であって適正値Cfが適正値Cnよりも小さくなる場合に、適正値Cfと適正値Cnの差分が取り得る値の最大値である。ULおよびLLの値は、顔を含む被写体の調光を繰り返すことにより経験的に取得された値とする。   Here, Ck is a provisional appropriate light emission amount. UL is the maximum value that can be taken by the difference between the appropriate value Cf and the appropriate value Cn when the normal face detection is performed and the appropriate value Cf is larger than the appropriate value Cn. Further, LL is the maximum value that can be taken by the difference between the appropriate value Cf and the appropriate value Cn when the normal face detection is performed and the appropriate value Cf is smaller than the appropriate value Cn. The values of UL and LL are values obtained empirically by repeating dimming of a subject including a face.

上記(2)式により求められる仮の適正発光量Ckは、予期せぬ状況が発生した場合には、極端に大きな値あるいは極端に小さな値となる場合もある。しかし、そのような極端な値となったときでも、上記(3)式に基づく演算により、適正発光量Chは、Cn―LLからCn+ULまでの範囲に制限される。このCn―LLという下限値およびCn+ULという上限値は、適正値Cnを基準として決定される値であるため、発光量がこの範囲である限り、フラッシュ撮影により取得される画像が極端な失敗画像となることはない。すなわち、予期せぬ状況が発生した場合でも撮影が全く無駄になることはない。   The provisional appropriate light emission amount Ck obtained by the equation (2) may be an extremely large value or an extremely small value when an unexpected situation occurs. However, even when such an extreme value is obtained, the appropriate light emission amount Ch is limited to a range from Cn−LL to Cn + UL by the calculation based on the above equation (3). Since the lower limit value of Cn−LL and the upper limit value of Cn + UL are values determined based on the appropriate value Cn, as long as the light emission amount is within this range, an image acquired by flash photography is an extremely failed image. Never become. In other words, even when an unexpected situation occurs, shooting is not wasted at all.

なお、以上に説明した例は、適正発光量Chについて上限値と下限値を定めた例であるが、上限値のみ、あるいは下限値のみを定め、極端に大きな値となってしまった場合のみ、あるいは極端に小さな値となってしまった場合のみ、値を制限するようにしてもよい。   The example described above is an example in which an upper limit value and a lower limit value are determined for the appropriate light emission amount Ch, but only an upper limit value or only a lower limit value is determined, and only when an extremely large value is obtained. Alternatively, the value may be limited only when the value becomes extremely small.

以上に説明したように、本実施形態のデジタルカメラによれば、調光を行うときに、顔を検出したときと顔の位置がずれていたとしても、そのずれが発光量の決定に及ぼすマイナスの影響が大きいときには、顔に相当する領域として抽出された領域のデータが発光量の決定に与える影響が低く抑えられる。よって、顔がずれてしまった場合でも、最適でないまでも適切な発光量でフラッシュ撮影が行われ、常に、鑑賞に値する画像を得ることができる。   As described above, according to the digital camera of the present embodiment, even when the face is detected and the position of the face is shifted when dimming, the shift has a negative effect on the determination of the light emission amount. When the influence of is large, the influence of the data of the area extracted as the area corresponding to the face on the determination of the light emission amount can be kept low. Therefore, even if the face is shifted, even if it is not optimal, flash photography is performed with an appropriate amount of light emission, and an image that is always worth viewing can be obtained.

また、本実施形態では、(1)式や(2)式に示したように、顔を考慮しない調光により求められた仮適正値Cnと、顔を考慮した調光により求められた仮適正値Cfとの加重平均を計算することにより、適正発光量Ch(あるいは仮の適正発光量Ck)を求めているので、発光量調整における仮適正値Cfの影響力を、パラメータαの設定ひとつで簡単に、強めたり弱めたりすることができる。第1演算手段41と第2演算手段42は、常時同じ演算式に基づく演算を行っていればよいので、複数の演算式を調光方針に応じて使い分けるものに比べ、第1演算手段41と第2演算手段42の回路構造あるいはプログラムを、シンプルなものとすることができる。   In the present embodiment, as shown in the equations (1) and (2), the provisional appropriate value Cn obtained by dimming without considering the face and the provisional appropriateness obtained by dimming with the face taken into account. Since the appropriate light emission amount Ch (or temporary appropriate light emission amount Ck) is obtained by calculating a weighted average with the value Cf, the influence of the temporary appropriate value Cf in the light emission amount adjustment can be determined with one setting of the parameter α. It can easily be strengthened or weakened. Since the 1st calculating means 41 and the 2nd calculating means 42 should just always perform the calculation based on the same calculating formula, compared with what uses a several calculating formula properly according to a light control policy, the 1st calculating means 41 and The circuit structure or program of the second calculation means 42 can be simplified.

なお、発光量の調整方法、すなわち発光量決定手段44の処理は、上記(1)(2)(3)式を用いた処理に限らず、他の演算式に基づいて発光量を決定してもよい。例えば、加重平均ではなく、二乗平均、対数平均などを求めてもよい。また、例えば、2つの基準値の中間の値よりも何%Cf寄りにする、というように基準値からの調整分を固定的に決めておいてもよい。さらには、加重平均などを求めた後に決まった調整値を加算あるいは減算するなどしてもよい。   Note that the light emission amount adjustment method, that is, the processing of the light emission amount determination means 44 is not limited to the processing using the above formulas (1), (2), and (3), and the light emission amount is determined based on other arithmetic expressions. Also good. For example, instead of the weighted average, a square average, logarithmic average, or the like may be obtained. Further, for example, the adjustment amount from the reference value may be fixedly determined such that the value is closer to what percentage Cf than the intermediate value between the two reference values. Furthermore, an adjustment value determined after obtaining a weighted average or the like may be added or subtracted.

[ 実施形態2 ]
次に説明するデジタルカメラは、外観、内部構成は実施形態1のデジタルカメラと同じであるが、フラッシュ制御部19が行う処理が実施形態1と異なる。図11に、本実施形態におけるフラッシュ制御部19の構成と入出力データを示す。フラッシュ制御部19は、図に示すように、発光量決定手段50と、重み付けパラメータ設定手段51を備える。
[Embodiment 2]
The digital camera to be described next has the same appearance and internal configuration as the digital camera of the first embodiment, but the processing performed by the flash control unit 19 is different from that of the first embodiment. FIG. 11 shows the configuration and input / output data of the flash controller 19 in this embodiment. The flash control unit 19 includes a light emission amount determining unit 50 and a weighting parameter setting unit 51 as shown in the figure.

発光量決定手段50は、全体制御部30の制御の下、画像入力制御部23から、非発光時画像データと予備発光時画像データの供給を受け、実施形態1の説明において仮適正値Cnを求めるための処理として説明した図5の処理と同様の処理を実行することにより、発光量を決定する。但し、発光量決定手段50は、実施形態1の第1演算手段41と異なり、ステップS104において顔に対応する領域ブロックに重み付けをおいた演算を行う。各領域ブロックの重み付けは、重み付けパラメータ設定手段51により設定される。   The light emission amount determining means 50 receives the non-light emission image data and the preliminary light emission image data from the image input control unit 23 under the control of the overall control unit 30, and uses the provisional appropriate value Cn in the description of the first embodiment. The amount of light emission is determined by executing the same processing as the processing of FIG. 5 described as the processing for obtaining. However, unlike the first calculation unit 41 of the first embodiment, the light emission amount determination unit 50 performs a calculation in which weight is applied to the area block corresponding to the face in step S104. The weighting of each area block is set by the weighting parameter setting means 51.

重み付けパラメータ設定手段51は、全体制御部30の制御の下、顔領域抽出部24から領域情報の供給を受ける。そして、顔が抽出された領域に対応する領域ブロックに対し、顔がない領域に対応する領域ブロックよりも高い重み付けを設定する。この際、重み付けパラメータ設定手段51は、顔が抽出された領域に対応する領域ブロックの重み付けを一律に高く設定するのではなく、図12Aおよび図12Bに例示するように、顔が大きいときほど重み付けを高く設定する。例えば、顔がない領域の重み付けを1とした場合、顔に対応するブロック数が3個未満であれば重み付けを3に、3個〜6個であれば重み付けを4に、7個〜10個であれば重み付けを5に、11個以上であれば重み付けを6に設定する。これにより、画像に占める顔の割合が大きく、手ブレが生じても発光量の決定にはあまり影響がない場合には、発光量の値は、顔がある領域として抽出された領域からの反射光量を十分考慮した値となり、一方、画像に占める顔の割合が小さく、手ブレが生じた場合に発光量の決定に大きな影響が出る場合には、顔がある領域として抽出された領域からの反射光量が発光量の決定に与える影響は、低く抑えられる。   The weighting parameter setting unit 51 is supplied with region information from the face region extraction unit 24 under the control of the overall control unit 30. Then, a higher weight is set for the area block corresponding to the area from which the face is extracted than for the area block corresponding to the area having no face. At this time, the weighting parameter setting means 51 does not set the weight of the area block corresponding to the area from which the face is extracted uniformly high, but weights the larger the face as exemplified in FIGS. 12A and 12B. Set high. For example, when the weight of an area having no face is set to 1, the weight is 3 if the number of blocks corresponding to the face is less than 3, the weight is 4 if the number of blocks is 3 to 6, and 7 to 10 If so, the weight is set to 5. If 11 or more, the weight is set to 6. As a result, if the ratio of the face to the image is large and the determination of the amount of light emission does not have much influence even if camera shake occurs, the value of the light emission amount is reflected from the region extracted as the region where the face is located. When the ratio of the face in the image is small and the determination of the amount of light emission is greatly affected when camera shake occurs, the value from the area extracted as a certain area The influence of the reflected light amount on the determination of the light emission amount can be kept low.

以上、2つの実施形態を例示しながら説明したが、本発明はこれらの実施形態に限定されるものではない。例えば上記実施形態の演算パラメータは、いずれも顔を考慮する度合いが大きいときに大きく、小さいときに小さい値となるパラメータであったが、顔を考慮するほど小さく、顔を考慮しないほど大きな値となる演算パラメータであってもよい。   Although the two embodiments have been described above as examples, the present invention is not limited to these embodiments. For example, the calculation parameters in the above embodiment are parameters that are large when the degree of considering the face is large and small when it is small, but are small enough to consider the face and large enough not to consider the face. The calculation parameter may be

また、上記実施形態では、非発光時画像データと予備発光時画像データから求められる反射光量に基づいて、被写体の必要光量に相当する光を被写体に供給できるか否かを判断しているが、被写体までの距離、明るさ、撮影感度などを測定または推定して上記判断を行なってもよい。すなわち、発光量決定手段が実行する演算処理は、発光量の決定における顔の考慮度合いを演算パラメータとして設定し得る処理であればよく、上記実施形態には限定されない。さらには、指標データも、上記実施形態中に例示したものには限られない。この他、顔の考慮度合いを演算パラメータとして設定し得る演算処理を実行し、その演算パラメータの値を、デジタルカメラまたは被写体の動きが発光量の決定に影響する度合いを示す指標データの値に基づいて決まる値に設定する方法およびデジタルカメラは、すべて本発明の技術的範囲に属する。   In the above embodiment, it is determined whether or not light corresponding to the required light amount of the subject can be supplied to the subject based on the reflected light amount obtained from the non-light emitting image data and the preliminary light emitting image data. The above determination may be made by measuring or estimating the distance to the subject, brightness, photographing sensitivity, and the like. In other words, the calculation process executed by the light emission amount determining unit is not limited to the above embodiment as long as it can set the degree of consideration of the face in the determination of the light emission amount as a calculation parameter. Furthermore, the index data is not limited to that exemplified in the above embodiment. In addition, calculation processing that can set the degree of consideration of the face as a calculation parameter is executed, and the value of the calculation parameter is based on the value of index data indicating the degree to which the movement of the digital camera or subject affects the determination of the light emission amount. All the methods and digital cameras that are set to the values determined by the method belong to the technical scope of the present invention.

本発明の一実施形態におけるデジタルカメラの概観図(通常状態)Overview of digital camera according to an embodiment of the present invention (normal state) 本発明の一実施形態におけるデジタルカメラの概観図(内蔵フラッシュをポップアップした状態)1 is a schematic view of a digital camera according to an embodiment of the present invention (with a built-in flash popped up). 本発明の一実施形態におけるデジタルカメラの概観図(外付フラッシュを取り付けた状態)1 is a schematic view of a digital camera according to an embodiment of the present invention (with an external flash attached). デジタルカメラの内部構成を示す図Diagram showing the internal configuration of the digital camera フラッシュ制御部の構成と入出力データを示す図Diagram showing configuration of flash controller and input / output data 画像データを領域ブロックに分割した例を示す図The figure which shows the example which divided | segmented image data into the area block 第1演算手段の処理を示すフローチャートThe flowchart which shows the process of a 1st calculating means 第2演算手段の処理を示すフローチャートThe flowchart which shows the process of a 2nd calculating means 時間差について説明するための図Diagram for explaining the time difference パラメータαの決定に用いられるLUTの一例を示す図The figure which shows an example of LUT used for determination of parameter (alpha) デジタルカメラの状態と撮影モードに基づいてパラメータを設定する処理の一例を示す図The figure which shows an example of the process which sets a parameter based on the state and imaging | photography mode of a digital camera デジタルカメラの状態と時間差との関係を示す図Diagram showing the relationship between digital camera status and time difference デジタルカメラの状態と時間差との関係を示す図Diagram showing the relationship between digital camera status and time difference デジタルカメラの状態と時間差との関係を示す図Diagram showing the relationship between digital camera status and time difference 警告処理の一例を示す図Diagram showing an example of warning processing 画像データと顔領域と領域ブロックの関係を示す図(顔が占める割合が大きい場合:顔検出処理時)Diagram showing the relationship between image data, face area, and area block (when face occupies a large percentage: during face detection processing) 画像データと顔領域と領域ブロックの関係を示す図(顔が占める割合が大きい場合:調光処理時)Diagram showing the relationship between image data, face area, and area block (when face occupies a large percentage: during dimming process) 画像データと顔領域と領域ブロックの関係を示す図(顔が占める割合が小さい場合:顔検出処理時)Diagram showing the relationship between image data, face area, and area block (when face ratio is small: during face detection processing) 画像データと顔領域と領域ブロックの関係を示す図(顔が占める割合が小さい場合:調光処理時)Diagram showing the relationship between image data, face area, and area block (when face ratio is small: during dimming process) パラメータαの決定に用いられるLUTの一例を示す図The figure which shows an example of LUT used for determination of parameter (alpha) パラメータαの決定に用いられるLUTの他の例を示す図The figure which shows the other example of LUT used for determination of parameter (alpha) 本発明の他の実施形態におけるフラッシュ制御部の構成と入出力データを示す図The figure which shows the structure and input / output data of the flash control part in other embodiment of this invention. 重み付けパラメータの設定例を示す図(顔が占める割合が大きい場合)A figure showing an example of setting weighting parameters (when the proportion of the face is large) 重み付けパラメータの設定例を示す図(顔が占める割合が小さい場合)Figure showing an example of setting weighting parameters (when the proportion of the face is small)

符号の説明Explanation of symbols

1 デジタルカメラ、2 シャッタレリーズボタン、 3 モードダイヤル、
4 内蔵フラッシュ、 5 ホットシュー、 6フラッシュポップアップボタン、
7 外付フラッシュ、 34 システムバス、
45 調光用の画像データ、 46 領域情報が示す領域、
47 領域情報が示す領域に対応する領域ブロック、48 顔検出用の画像データ、
49 調光時の実際の顔の位置
1 Digital camera 2 Shutter release button 3 Mode dial
4 built-in flash, 5 hot shoe, 6 flash pop-up button,
7 External flash, 34 System bus,
45 image data for dimming, 46 area indicated by area information,
47 area block corresponding to the area indicated by the area information, 48 face detection image data,
49 Actual face position during dimming

Claims (26)

被写体を表す画像データを生成する撮像手段と、フラッシュを発光する発光手段と、前記撮像手段により生成された画像データを対象として顔検出処理を実行する顔検出手段とを備え、前記顔検出手段が出力する検出結果を利用して前記フラッシュの発光量を制御するデジタルカメラであって、
発光量の決定における顔の考慮度合いを演算パラメータとして設定し得る演算処理により、前記フラッシュの発光量を求める発光量決定手段と、
当該デジタルカメラまたは前記被写体の動きが発光量の決定に影響する度合いを示す指標データを取得し、前記演算パラメータの値を前記指標データの値に基づいて決まる値に設定するパラメータ設定手段とを備えたことを特徴とするデジタルカメラ。
An imaging unit that generates image data representing a subject; a light emitting unit that emits flash; and a face detection unit that performs face detection processing on the image data generated by the imaging unit. A digital camera that controls the amount of light emitted from the flash using a detection result to be output,
A light emission amount determining means for obtaining a light emission amount of the flash by a calculation process capable of setting the degree of consideration of the face in the determination of the light emission amount as a calculation parameter;
Parameter setting means for acquiring index data indicating the degree to which the movement of the digital camera or the subject affects the determination of the light emission amount, and setting the value of the calculation parameter to a value determined based on the value of the index data. A digital camera characterized by that.
前記発光量決定手段が、前記演算処理として、前記撮像手段により生成された一の画像データを対象として実行された顔検出処理の検出結果と、前記撮像手段により生成された他の画像データに基づいて推定された被写体の必要光量とに基づいて発光量を求める処理を行い、
前記パラメータ設定手段が、前記指標データとして、前記一の画像データが生成された時点と前記他の画像データが生成された時点との時間差の指標となるデータを取得し、前記時間差が少なくとも所定範囲の時間であるときに、該時間差が大きいほど顔の考慮度合いが低くなるように前記演算パラメータの値を設定することを特徴とする請求項1記載のデジタルカメラ。
The light emission amount determining means is based on the detection result of the face detection process executed on one image data generated by the imaging means and the other image data generated by the imaging means as the arithmetic processing. To calculate the amount of light emission based on the required amount of light of the subject estimated
The parameter setting means acquires, as the index data, data serving as an index of a time difference between the time when the one image data is generated and the time when the other image data is generated, and the time difference is at least within a predetermined range. 2. The digital camera according to claim 1, wherein the value of the calculation parameter is set such that the degree of consideration of the face decreases as the time difference increases.
前記パラメータ設定手段が、前記指標データとして、当該デジタルカメラに対し設定された撮影モードおよび/または当該デジタルカメラの状態を示すデータを取得することを特徴とする請求項2記載のデジタルカメラ。   The digital camera according to claim 2, wherein the parameter setting unit acquires, as the index data, data indicating a shooting mode set for the digital camera and / or a state of the digital camera. 前記パラメータ設定手段が、ブレが生じる可能性が高い撮影モードおよび/または状態ほど、顔の考慮度合いが低くなるように、前記演算パラメータの値を設定することを特徴とする請求項3記載のデジタルカメラ。   The digital parameter according to claim 3, wherein the parameter setting means sets the value of the calculation parameter so that the degree of consideration of the face becomes lower in a shooting mode and / or state in which the possibility of blurring is high. camera. 前記パラメータ設定手段が、前記時間差の推定時間が長い撮影モードおよび/または状態ほど、顔の考慮度合いが低くなるように、前記演算パラメータの値を設定することを特徴とする請求項3記載のデジタルカメラ。   The digital parameter according to claim 3, wherein the parameter setting unit sets the value of the calculation parameter so that the degree of consideration of the face becomes lower as the shooting mode and / or state has a longer estimated time difference. camera. 前記時間差を計測する時間計測手段をさらに備え、
前記パラメータ設定手段が、前記時間計測手段により前記時間差を示すデータを取得することを特徴とする請求項2記載のデジタルカメラ。
It further comprises time measuring means for measuring the time difference,
The digital camera according to claim 2, wherein the parameter setting unit acquires data indicating the time difference by the time measuring unit.
前記パラメータ設定手段が、前記指標データとして、前記顔検出手段により検出された顔の画像全体に占める割合を示すデータを取得し、前記割合が少なくとも所定範囲の割合であるときに、該割合が小さいほど顔の考慮度合いが低くなるように前記演算パラメータの値を設定することを特徴とする請求項1記載のデジタルカメラ。   When the parameter setting means acquires data indicating the ratio of the entire face image detected by the face detection means as the index data, and the ratio is at least within a predetermined range, the ratio is small. 2. The digital camera according to claim 1, wherein the value of the calculation parameter is set so that the degree of consideration of the face becomes lower. 前記パラメータ設定手段が、前記指標データとして、焦点距離を示すデータを取得し、該焦点距離が少なくとも所定範囲の長さであるときに、該焦点距離が長いほど顔の考慮度合いが低くなるように前記演算パラメータの値を設定することを特徴とする請求項1記載のデジタルカメラ。   The parameter setting means acquires data indicating a focal length as the index data, and when the focal length is at least a predetermined range, the longer the focal length, the lower the degree of consideration of the face. The digital camera according to claim 1, wherein a value of the calculation parameter is set. 手ブレ検出手段をさらに備え、
前記パラメータ設定手段が、前記指標データとして、前記手ブレ検出手段により検出されたブレ量のデータを取得し、該ブレ量が少なくとも所定範囲のブレ量であるときに、該ブレ量が大きいほど顔の考慮度合いが低くなるように前記演算パラメータの値を設定することを特徴とする請求項1記載のデジタルカメラ。
A camera shake detecting means;
When the parameter setting means acquires the blur amount data detected by the hand shake detection means as the index data, and the blur amount is at least within a predetermined range, the larger the blur amount, the more the face The digital camera according to claim 1, wherein the value of the calculation parameter is set so that the degree of consideration of the value becomes low.
当該デジタルカメラから被写体までの距離を計測する測距手段をさらに備え、
前記パラメータ設定手段が、前記指標データとして、前記測距手段により計測された距離を示すデータを取得し、該距離が、少なくとも所定範囲の長さであるときに、該距離が長いほど顔の考慮度合いが低くなるように前記演算パラメータの値を設定することを特徴とする請求項1記載のデジタルカメラ。
It further comprises distance measuring means for measuring the distance from the digital camera to the subject,
The parameter setting means acquires data indicating the distance measured by the distance measuring means as the index data, and when the distance is at least the length of a predetermined range, the longer the distance, the more the face is considered. 2. The digital camera according to claim 1, wherein the value of the calculation parameter is set so that the degree becomes low.
前記撮像手段により生成された画像データを対象として前記顔検出手段が出力する検出結果を利用しない演算を行うことにより、前記発光量の仮適正値Cnを求める第1演算手段と、
前記撮像手段により生成された画像データを対象として前記顔検出手段が出力する検出結果を利用する演算を行うことにより、前記発光量の仮適正値Cfを求める第2演算手段とをさらに備え、
前記発光量決定手段が、前記第1演算手段から供給される前記仮適正値Cnと前記第2演算手段から供給される前記仮適正値Cfとの平均を求める演算処理であって、前記パラメータ設定手段により設定されるパラメータの値により演算結果に対する仮適正値Cfの影響力が変化する演算処理を行うことを特徴とする請求項1から10のいずれか1項記載のデジタルカメラ。
First calculation means for obtaining a temporary appropriate value Cn of the light emission amount by performing calculation not using the detection result output by the face detection means for the image data generated by the imaging means;
A second calculating means for obtaining a temporary appropriate value Cf of the light emission amount by performing a calculation using the detection result output from the face detecting means for the image data generated by the imaging means;
The light emission amount determining means is a calculation process for obtaining an average of the temporary appropriate value Cn supplied from the first calculating means and the temporary appropriate value Cf supplied from the second calculating means, wherein the parameter setting 11. The digital camera according to claim 1, wherein a calculation process is performed in which the influence of the temporary appropriate value Cf on the calculation result varies depending on the parameter value set by the means.
前記発光量決定手段が行う演算処理が、撮像手段により生成された画像データに対し領域ごとに異なる重み付けを設定して演算を行う処理であり、前記演算パラメータが前記重み付けであることを特徴とする請求項1から10のいずれか1項記載のデジタルカメラ。   The calculation process performed by the light emission amount determining unit is a process of performing calculation by setting different weights for each region of the image data generated by the imaging unit, and the calculation parameter is the weighting. The digital camera according to claim 1. 前記指標データが示す影響の度合いが所定の基準を超えるときに、所定の警告動作を行う警告手段を備えることを特徴とする請求項1から12のいずれか1項記載のデジタルカメラ。   The digital camera according to any one of claims 1 to 12, further comprising a warning unit that performs a predetermined warning operation when the degree of influence indicated by the index data exceeds a predetermined reference. 前記指標データを、フラッシュ発光を伴う撮影で取得された画像データと関連づけて記録媒体に記録する記録制御手段を備えることを特徴とする請求項1から13のいずれか1項記載のデジタルカメラ。   14. The digital camera according to claim 1, further comprising a recording control unit that records the index data on a recording medium in association with image data acquired by photographing with flash emission. 被写体を表す画像データを生成する撮像手段と、フラッシュを発光する発光手段と、前記撮像手段により生成された画像データを対象として顔検出処理を実行する顔検出手段とを備えたデジタルカメラにおいて、前記顔検出手段が出力する検出結果を利用して前記フラッシュの発光量を制御する方法であって、
発光量の決定における顔の考慮度合いを演算パラメータとして設定し得る演算処理により前記フラッシュの発光量を求める発光量決定ステップと、
前記発光量決定ステップに先立ち、前記デジタルカメラまたは前記被写体の動きが発光量の決定に影響する度合いを示す指標データを取得し、前記演算パラメータの値を前記指標データの値に基づいて決まる値に設定するパラメータ設定ステップとを有することを特徴とする制御方法。
In a digital camera comprising an imaging unit that generates image data representing a subject, a light emitting unit that emits a flash, and a face detection unit that performs face detection processing on the image data generated by the imaging unit. A method for controlling the amount of light emitted from the flash using a detection result output by a face detection means,
A light emission amount determining step for obtaining the light emission amount of the flash by a calculation process capable of setting the degree of consideration of the face in the determination of the light emission amount as a calculation parameter;
Prior to the light emission amount determination step, index data indicating the degree to which the movement of the digital camera or the subject affects the determination of the light emission amount is acquired, and the value of the calculation parameter is set to a value determined based on the value of the index data. And a parameter setting step for setting.
前記発光量決定ステップにおいて、前記演算処理として、前記撮像手段により生成された一の画像データを対象として実行された顔検出処理の検出結果と、前記撮像手段により生成された他の画像データに基づいて推定された被写体の必要光量とに基づいて発光量を求める処理を行い、
前記パラメータ設定ステップにおいて、前記指標データとして、前記一の画像データが生成された時点と前記他の画像データが生成された時点との時間差の指標となるデータを取得し、前記時間差が少なくとも所定範囲の時間であるときに、該時間差が大きいほど顔の考慮度合いが低くなるように前記演算パラメータの値を設定することを特徴とする請求項15記載の制御方法。
In the light emission amount determining step, based on the detection result of the face detection process executed on one image data generated by the imaging unit and the other image data generated by the imaging unit as the calculation process. To calculate the amount of light emission based on the required amount of light of the subject estimated
In the parameter setting step, as the index data, data serving as an index of a time difference between the time when the one image data is generated and the time when the other image data is generated is acquired, and the time difference is at least within a predetermined range. 16. The control method according to claim 15, wherein the value of the calculation parameter is set so that the degree of consideration of the face decreases as the time difference increases.
前記パラメータ設定ステップにおいて、前記指標データとして、前記デジタルカメラに対し設定された撮影モードおよび/または前記デジタルカメラの状態を示すデータを取得することを特徴とする請求項16記載の制御方法。   17. The control method according to claim 16, wherein, in the parameter setting step, data indicating a shooting mode set for the digital camera and / or a state of the digital camera is acquired as the index data. 前記パラメータ設定ステップにおいて、ブレが生じる可能性が高い撮影モードおよび/または状態ほど、顔の考慮度合いが低くなるように、前記演算パラメータの値を設定することを特徴とする請求項17記載の制御方法。   18. The control according to claim 17, wherein, in the parameter setting step, the value of the calculation parameter is set so that the degree of consideration of a face becomes lower in a shooting mode and / or state in which a possibility of blurring is high. Method. 前記パラメータ設定ステップにおいて、前記時間差の推定時間が長い撮影モードおよび/または状態ほど、顔の考慮度合いが低くなるように、前記演算パラメータの値を設定することを特徴とする請求項17記載の制御方法。   18. The control according to claim 17, wherein, in the parameter setting step, the value of the calculation parameter is set so that the degree of consideration of the face becomes lower as the shooting mode and / or state has a longer estimated time difference. Method. 前記デジタルカメラが時間差を計測する時間計測手段をさらに備えるものであるときに、
前記パラメータ設定ステップにおいて、前記時間計測手段により前記時間差を示すデータを取得することを特徴とする請求項16記載の制御方法。
When the digital camera further comprises time measuring means for measuring a time difference,
17. The control method according to claim 16, wherein, in the parameter setting step, data indicating the time difference is acquired by the time measuring means.
前記パラメータ設定ステップにおいて、前記指標データとして、前記顔検出手段により検出された顔の画像全体に占める割合を示すデータを取得し、前記割合が、少なくとも所定範囲の割合であるときに、該割合が小さいほど顔の考慮度合いが低くなるように前記演算パラメータの値を設定することを特徴とする請求項15記載の制御方法。   In the parameter setting step, data indicating a ratio of the entire face image detected by the face detection unit is acquired as the index data, and when the ratio is at least a ratio in a predetermined range, the ratio is 16. The control method according to claim 15, wherein the value of the calculation parameter is set such that the smaller the value is, the lower the degree of consideration of the face is. 前記パラメータ設定ステップにおいて、前記指標データとして、焦点距離を示すデータを取得し、該焦点距離が少なくとも所定範囲の長さであるときに、該焦点距離が長いほど顔の考慮度合いが低くなるように前記演算パラメータの値を設定することを特徴とする請求項15記載の制御方法。   In the parameter setting step, data indicating a focal length is acquired as the index data, and when the focal length is at least a predetermined range, the longer the focal length, the lower the degree of consideration of the face. The control method according to claim 15, wherein a value of the calculation parameter is set. 前記デジタルカメラが、手ブレ検出手段を備えるものであるときに、
前記パラメータ設定ステップにおいて、前記指標データとして、手ブレ検出手段により検出されたブレ量を示すデータを取得し、該ブレ量が少なくとも所定範囲のブレ量であるときに、該ブレ量が大きいほど顔の考慮度合いが低くなるように前記演算パラメータの値を設定することを特徴とする請求項15記載の制御方法。
When the digital camera includes camera shake detection means,
In the parameter setting step, as the index data, data indicating a blur amount detected by a camera shake detection unit is acquired, and when the blur amount is at least a blur amount within a predetermined range, the larger the blur amount, the more the face The control method according to claim 15, wherein the value of the calculation parameter is set so that the degree of consideration of the value becomes low.
前記デジタルカメラが、当該デジタルカメラから被写体までの距離を計測する測距手段を備えるものであるときに、
前記パラメータ設定ステップにおいて、前記指標データとして、前記測距手段により計測された距離を示すデータを取得し、該距離が、少なくとも所定範囲の長さであるときに、該距離が長いほど顔の考慮度合いが低くなるように前記演算パラメータの値を設定することを特徴とする請求項15記載の制御方法。
When the digital camera is provided with distance measuring means for measuring the distance from the digital camera to the subject,
In the parameter setting step, data indicating the distance measured by the distance measuring means is acquired as the index data, and when the distance is at least a length of a predetermined range, the longer the distance is, the more the face is considered. The control method according to claim 15, wherein the value of the calculation parameter is set so that the degree is low.
前記指標データが示す影響の度合いが所定の基準を超えるときに、所定の警告動作を行う警告ステップを、さらに有することを特徴とする請求項15から24のいずれか1項記載の制御方法。   The control method according to any one of claims 15 to 24, further comprising a warning step of performing a predetermined warning operation when the degree of influence indicated by the index data exceeds a predetermined reference. 前記指標データを、フラッシュ発光を伴う撮影で取得された画像データと関連づけて記録媒体に記録する記録ステップを、さらに有することを特徴とする請求項15から25のいずれか1項記載の制御方法。   The control method according to any one of claims 15 to 25, further comprising a recording step of recording the index data in a recording medium in association with image data acquired by photographing with flash emission.
JP2007211251A 2006-09-22 2007-08-14 Digital camera and control method thereof Expired - Fee Related JP4879840B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007211251A JP4879840B2 (en) 2006-09-22 2007-08-14 Digital camera and control method thereof

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP2006257976 2006-09-22
JP2006257976 2006-09-22
JP2007211251A JP4879840B2 (en) 2006-09-22 2007-08-14 Digital camera and control method thereof

Publications (3)

Publication Number Publication Date
JP2008104156A true JP2008104156A (en) 2008-05-01
JP2008104156A5 JP2008104156A5 (en) 2010-04-08
JP4879840B2 JP4879840B2 (en) 2012-02-22

Family

ID=39438100

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007211251A Expired - Fee Related JP4879840B2 (en) 2006-09-22 2007-08-14 Digital camera and control method thereof

Country Status (1)

Country Link
JP (1) JP4879840B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010026284A (en) * 2008-07-22 2010-02-04 Fujifilm Corp Flash emission method and device
JP2010175654A (en) * 2009-01-27 2010-08-12 Sony Corp Imaging apparatus and imaging method
JP2012063664A (en) * 2010-09-17 2012-03-29 Nikon Corp Photometric device and electronic camera

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09105975A (en) * 1995-10-13 1997-04-22 Minolta Co Ltd Flash photographing controller for camera
JP2000214518A (en) * 1999-01-21 2000-08-04 Minolta Co Ltd Electronic view finder, single lens reflex camera, camera system constituted of electronic view finder and single lens reflex camera
JP2003140219A (en) * 2001-11-01 2003-05-14 Olympus Optical Co Ltd Camera
JP2004104429A (en) * 2002-09-09 2004-04-02 Canon Inc Image recorder and method of controlling the same
JP2005156967A (en) * 2003-11-26 2005-06-16 Fuji Photo Film Co Ltd Digital camera and image processing apparatus
JP2005318554A (en) * 2004-04-01 2005-11-10 Canon Inc Imaging device, control method thereof, program, and storage medium
JP2006074164A (en) * 2004-08-31 2006-03-16 Canon Inc Imaging apparatus

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09105975A (en) * 1995-10-13 1997-04-22 Minolta Co Ltd Flash photographing controller for camera
JP2000214518A (en) * 1999-01-21 2000-08-04 Minolta Co Ltd Electronic view finder, single lens reflex camera, camera system constituted of electronic view finder and single lens reflex camera
JP2003140219A (en) * 2001-11-01 2003-05-14 Olympus Optical Co Ltd Camera
JP2004104429A (en) * 2002-09-09 2004-04-02 Canon Inc Image recorder and method of controlling the same
JP2005156967A (en) * 2003-11-26 2005-06-16 Fuji Photo Film Co Ltd Digital camera and image processing apparatus
JP2005318554A (en) * 2004-04-01 2005-11-10 Canon Inc Imaging device, control method thereof, program, and storage medium
JP2006074164A (en) * 2004-08-31 2006-03-16 Canon Inc Imaging apparatus

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010026284A (en) * 2008-07-22 2010-02-04 Fujifilm Corp Flash emission method and device
JP2010175654A (en) * 2009-01-27 2010-08-12 Sony Corp Imaging apparatus and imaging method
US8279300B2 (en) 2009-01-27 2012-10-02 Sony Corporation Imaging device and imaging method
JP2012063664A (en) * 2010-09-17 2012-03-29 Nikon Corp Photometric device and electronic camera

Also Published As

Publication number Publication date
JP4879840B2 (en) 2012-02-22

Similar Documents

Publication Publication Date Title
JP4808578B2 (en) Digital camera and control method thereof
JP4542058B2 (en) Imaging apparatus and imaging method
JP4510768B2 (en) Imaging apparatus and method, and program
JP2003274280A (en) Electronic camera
JP2007325145A (en) Image processing apparatus, method and program
JP2010093679A (en) Imaging apparatus, and imaging control method
JP5029195B2 (en) Exposure control device and imaging device
JP4879840B2 (en) Digital camera and control method thereof
JP2010068046A (en) Imaging apparatus
JP5003348B2 (en) Electronic camera
JP6231814B2 (en) EXPOSURE DETERMINING DEVICE, IMAGING DEVICE, CONTROL METHOD, AND PROGRAM
JP5849515B2 (en) Exposure calculation device and camera
JP2010026039A (en) Photographing apparatus, and control method and program of photographing apparatus
JP2009033386A (en) Photographing device and method
JP5191251B2 (en) Imaging device
JP4869801B2 (en) Imaging device
JP2007281532A (en) Apparatus and method for generating image data
KR20100112788A (en) Method of controlling activation between shaking correction and electronical strobo, method of photographing, and digital camera module
JP4789776B2 (en) Imaging apparatus and imaging method
JP5355124B2 (en) Imaging apparatus and scene discrimination method thereof
JP4782649B2 (en) Digital camera and control method thereof
JP6300514B2 (en) IMAGING DEVICE AND IMAGING DEVICE CONTROL METHOD
JP2010271507A (en) Imaging device, exposure adjustment method, and program
JP5137196B2 (en) Imaging apparatus, control method therefor, and program
JP4663607B2 (en) Digital camera and control method thereof

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100224

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20100224

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110405

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110603

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20110712

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20111012

A911 Transfer to examiner for re-examination before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20111020

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

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20111130

R150 Certificate of patent or registration of utility model

Ref document number: 4879840

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20141209

Year of fee payment: 3

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

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