JP2004153315A - Image processing method and digital camera - Google Patents

Image processing method and digital camera Download PDF

Info

Publication number
JP2004153315A
JP2004153315A JP2002313089A JP2002313089A JP2004153315A JP 2004153315 A JP2004153315 A JP 2004153315A JP 2002313089 A JP2002313089 A JP 2002313089A JP 2002313089 A JP2002313089 A JP 2002313089A JP 2004153315 A JP2004153315 A JP 2004153315A
Authority
JP
Japan
Prior art keywords
image
brightness
exposure
correction amount
shutter button
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
JP2002313089A
Other languages
Japanese (ja)
Other versions
JP4178017B2 (en
Inventor
Koichi Sakamoto
浩一 坂本
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 Holdings Corp
Original Assignee
Fuji Photo Film Co Ltd
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 Fuji Photo Film Co Ltd filed Critical Fuji Photo Film Co Ltd
Priority to JP2002313089A priority Critical patent/JP4178017B2/en
Publication of JP2004153315A publication Critical patent/JP2004153315A/en
Application granted granted Critical
Publication of JP4178017B2 publication Critical patent/JP4178017B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Studio Devices (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide an image processing method and a digital camera for improving the brightness of the face of a person by correcting the brightness for an image. <P>SOLUTION: This image processing method and the digital camera detect a half depression state of a shutter button (S103), acquire an image after being subjected to exposure and focus processing (S105), detect a full depression state of the shutter button (S106), analyze the acquired image to extract the face region of the person, calculate a correction amount at which the brightness of the extracted face region has the optimum value, and correct the brightness of the recorded image on the basis of the correction amount (S108). <P>COPYRIGHT: (C)2004,JPO

Description

【0001】
【発明の属する技術分野】
本発明は、顔抽出技術を利用して明るさ補正を行う画像処理方法及びデジタルカメラに関する。
【0002】
【従来の技術】
近年、デジタルカメラにはAE(自動露出)やAF(自動焦点調整)の機能が装備され、撮影がより容易に行えるようになっている。このAEにおける測光方式としては中央重点測光が一般的に知られているが、中央重点測光では主要な被写体が中央にない構図で撮影するような場合、主要被写体に合わせた適正な露出が得られないという問題がある。例えば、主要被写体である人物をフレームの端に置く構図で、背景の中央が白いような場合、AEはその白色に合わせて露出制御を行うため、光量が絞られ、人物の顔が暗く写ってしまうなどの露出不良となる。
【0003】
中央重点測光の欠点を解決する手段として、複数のポイントにおいて光量を測定するいわゆるマルチパターン測光による露出制御も行われている。マルチパターン測光によれば、フレーム全体で平均的な露出制御が行われるため、上記のように主要被写体である人物が中央にないような場合の問題は幾分解決される。しかし、例えば、逆光で人物を撮影する場合などでは、どのような構図であっても、AEは全体的に明るいと判断して光量を絞るように露出制御を行うため、やはり人物の顔が暗く写るという問題は解決されない。
【0004】
【発明が解決しようとする課題】
上述のように中央重点測光やマルチパターン測光あるいはそれらを任意に選択できるデジタルカメラでは、撮影時の状況によって顔部の明るさが適正になるような露出制御を行うことはできない。しかし、撮影の対象を人物や風景とする一般的な撮影においては、風景よりも人物、特に人物の顔部の撮影具合が写真(あるいは画像データ)としての出来栄えに影響することから、人物の顔部を適正な明るさすることが望まれる。
【0005】
本発明は上記事情に鑑みてなされたもので、画像に対する明るさ補正により人物の顔部を良好な明るさ(輝度)にする画像処理方法及びデジタルカメラを提供することを目的とする。
【0006】
【課題を解決するための手段】
本発明の画像処理方法は、画像の明るさを補正する画像処理方法において、前記画像を分析して人物の顔領域を抽出するステップと、抽出した顔領域の明るさが適正値となる補正量を算出するステップと、算出した補正量に基づいて前記画像の明るさを補正するステップとを含む。
【0007】
また、シャッターボタンの半押しで露出及び焦点調整を行い、シャッターボタンの全押しで露出及び焦点調整後の記録画像を取得して記録するデジタルカメラの画像処理方法において、前記半押しを検出して露出及び焦点処理後の画像を取得するステップ(S105)と、前記全押しを検出して露出及び焦点処理後の画像を分析して人物の顔領域を抽出するステップ(S201)と、抽出した顔領域の明るさが最適値となる補正量を算出するステップ(S203)と、前記補正量に基づいて前記記録画像の明るさを補正するステップ(S205)とを含む。
【0008】
本発明のデジタルカメラは、シャッターボタンの半押しで露出及び焦点調整を行い、シャッターボタンの全押しで露出及び焦点調整後の記録画像を取得して記録するデジタルカメラにおいて、前記半押しを検出して露出及び焦点処理後の画像を取得する手段(顔領域抽出処理部114内のメモリ)と、前記全押しを検出して露出及び焦点処理後の画像を分析して人物の顔領域を抽出する手段(顔領域抽出処理部114)と、抽出した顔領域の明るさが最適値となる補正量を算出する手段(補正量算出部115)と、前記補正量に基づいて前記記録画像の明るさを補正する手段(デジタル信号処理部107)とを備える。
【0009】
上記発明によれば、画像から抽出した顔領域の明るさが最適値となる補正量に基づいて記録画像の明るさを補正することで、人物の顔部が良好な明るさ(輝度)の記録画像が得られる。
【0010】
【発明の実施の形態】
以下、本発明の実施の形態を図面を参照して説明する。
図1は本発明の一実施形態のデジタルカメラの構成を示すブロック図であり、主として、レンズ101、CCD102、アナログ信号処理部103、A/D変換器104、TG(タイミングジェネレータ)105、制御部106、デジタル信号処理部107、メモリ108、圧縮伸張部109、LCD110、記録部111、シャッターボタン112、操作スイッチ113、顔抽出処理部114及び補正量算出部115を備える。
【0011】
レンズ101は詳しくはAF(自動焦点調節)機構を備えたズームレンズ(焦点距離可変レンズ)であり、レンズ101のAF機構及びズーム機構は図示せぬ駆動回路によって駆動される。なお、ズームレンズに代えて、AF機構のみを備えた焦点距離構成レンズを用いてもよい。
【0012】
CCD102は、マトリクス状またはハニカム状に配置された多数の受光素子を有する光センサで、レンズ101の焦点位置に相当するカメラ本体内部の位置に配置されている。
【0013】
アナログ信号処理部103は、CCD102から出力された画像信号に所定のアナログ処理を行い、画素ごとのR、G、B信号として出力する。アナログ信号処理部103は、内部にCDS(相関二重サンプリング)回路やAGC(オートゲインコントロール)回路などを有し、CDS回路では画像信号のノイズ低減が、AGC回路ではゲイン調整により各画像信号のレベル調整が行われる。
【0014】
A/D変換器33は、アナログ信号処理部32から順次加えられるR、G、B信号をデジタル形式のR、G、B信号に変換して出力する。
【0015】
タイミングジェネレータ105は、CCD102、アナログ信号処理部103、A/D変換器104にタイミング信号を与え、このタイミング信号によって各回路の同期がとられている。
【0016】
制御部106は、バスで接続する各部の動作を制御し、デジタルカメラの撮像動作に係る統括制御を行う。また、シャッターボタン112やその他の操作スイッチ113からの入力に基づいて、AF(自動焦点調整)、AE(自動露出)、AW(オートホワイトバランス)等の制御を行う制御手段の役割を果たす。制御部106は、周辺構成とのデータの受け渡しやタイミング制御などの他に様々な機能をソフトウェア的に行う。
【0017】
デジタル信号処理部107は、入力された画像データに対してホワイトバランス補正、ガンマ(γ)補正、輪郭補正、色補正、YC処理等の各種処理を行う。さらに、後述する顔部の明るさが最適となる明るさ補正量に基づく明るさ補正を行う。デジタル信号処理部107で輝度信号(Y信号)及び色差信号(Cr、Cb信号)に変換された画像データは、バスを介して画像データ一時記憶用のメモリ108に格納される。YC信号は、圧縮伸張部109で所定のフォーマットに従って圧縮されたのち、記録部111を介してメモリカードなどの記録媒体に記録される。
【0018】
メモリ108は、DRAM等で構成され、取得した画像データを一時記憶するバッファメモリとしての機能を果たす。各種処理を行うため、画像データはバスを介して接続する各部に読み出され、処理後再び書き込みが行われる。
【0019】
圧縮伸張部109は、メモリ108に蓄積された画像データをJPEG方式などの所定の圧縮方式で圧縮して記録部111に装填された記録媒体に記録したり、記録媒体から読み出された画像データを伸長したりする。圧縮伸張部109で圧縮処理を行う際の画像データは、輝度データYと色差データCr,Cbとに変換されて(YC分離処理)、メモリ37に格納されている。一方、記録媒体に記録されている画像データを再生表示する場合、YC分離により生成された輝度信号および色差信号がRGB信号に変換される。
【0020】
LCD110は画像表示用のディスプレイで、RGB信号に基づいてLCDドライバ(図示省略)により駆動される。メモリ108に一時記憶されている画像データは、所定の処理が行われた後LCD110へ転送され、カラー画像が表示される。撮影時はLCDをファインダーとして用いることにより、撮影範囲を正確に決定することができる。
【0021】
記録部111は、取得した画像データと画像データごとのタグ情報をメモリカードなどの記録媒体に記録する。記録の具体的処理は、シャッターボタン112の全押しにより撮影(即ち、画像データの取得)が指示されると、上記の一連の画像処理完了後メモリ108に記憶された画像のサムネイル画像とJPEG方式により圧縮された圧縮画像とが生成され、撮影画像に関するタグ情報(コマ番号、露出値、シャッタースピード、圧縮率、撮影日、撮影時のフラッシュのオン/オフのデータ、シーン情報等)とともに両画像が記録媒体に記録される。
【0022】
なお、記録媒体は半導体記録メディア等のメモリカードに限定されるものではなく、DVD−RAM、DVD−RW、CD−RW等の光記録媒体、フロッピーディスク等の磁気記録媒体、MO等の光磁気記録媒体等も用いることができ、また、外部記録媒体に限らずハードディスク等の内蔵記録媒体であってもよい。
【0023】
シャッターボタン112は、デジタルカメラに撮影開始を指示するためのスイッチであり、半押し状態と全押し状態とが検出可能な2段階スイッチになっており、シャッターボタン112の半押しでAF(自動焦点調整)制御、AE(自動露出)制御、顔領域抽出用の画像の取得が行なわれ、シャッターボタン112の全押しで撮影並びに後述する明るさ補正処理及び画像データの記録が行われる。
【0024】
AE制御は、輝度検出及び輝度判定に基づいてシャッタースピードや絞りが自動的に設定する。輝度検出は、CCD101により所定の間隔で取り込まれ、メモリ108に格納される画像データを利用して、R、G、Bで与えられる画像データの各色成分の輝度値を画像全体に渡って合計または平均して行われる。輝度判定による被写体の明るさの判定結果に基づいてシャッタースピードや絞りの設定が決定される。
【0025】
AF制御は、画像データ全体のコントラストの概略値をAF評価値として求めつつレンズ101を移動させることによって合焦を行う。例えば、シャッターボタンの半押し時にG信号の高周波成分が最大になるようにAFモータ駆動回路がAFモータを駆動し、合焦位置へレンズを移動させてオートフォーカスを行う。
【0026】
顔領域抽出処理部114は、シャッターボタン112の半押しで取得された画像データを保持するメモリと、画像データから画像中に存在する人物の顔に相当する領域を抽出する顔抽出機能とを有する。顔抽出処理は、デジタル信号処理部107の輪郭補正等の処理を経た画像データに対して行われる。顔領域の抽出方法は公知の技術(特開平9−101579号公報等)を用いることができる。
【0027】
補正量算出部115は、抽出した顔領域の明るさ(輝度値)を算出して、算出した明るさと適正な明るさとの差分から補正値を算出する。
【0028】
上記顔抽出処理及び補正量算出処理は、処理時間が比較的長いため、短時間の処理が要求されるシャッターボタンの半押し後の期間では行わず、長時間の処理が許容されるシャッターボタンの全押し後の期間で行う。
【0029】
次に、図2に示すフローチャートを参照して本発明の実施の形態のデジタルカメラの動作について説明する。
【0030】
デジタルカメラの電源スイッチがオンの状態で(ステップS101)、「撮影」モードがオンである場合(ステップS102)、制御部106はシャッターボタン112の半押し(S1)の検出を行う(ステップS103)。
【0031】
シャッターボタン112の半押しが検出されると、制御部106の指示により、AEとAFが実行され(ステップS104)、上記AEとAFによって合焦点、適正露出と判断して取得された画像データがメモリ108に格納される。また、同じ画像データは顔領域抽出処理部114内のメモリにも顔領域抽出用として格納される(ステップS105)。格納される画像データは、CCDの間引きモードにおいて間引きされた縮小画像(例えば、VGA程度の画像サイズ)である。
【0032】
次に、制御部106はシャッターボタン112の全押し(S2)の検出を行う(ステップS106)。シャッターボタン112の押下がない場合は、ステップS107で所定時間の経過を判断し、所定時間が経過していない場合はステップS106戻り検知を繰り返す。所定時間が経過している場合、撮影動作が行われないものと判断してステップS103に戻る。
【0033】
ステップS106でシャッターボタン112の全押しが検出されると、制御部106の指示により、画像の記録及び明るさの補正を含む明るさ補正処理が行われる(ステップS108)。
【0034】
図3は、記録用に取得した画像に対して行う明るさ補正処理の手順を示すフローチャートである。シャッターボタン112の全押しを検出すると、制御部106は、画像の記録及び明るさの補正処理を行う。
【0035】
明るさ補正処理を行うために、顔領域抽出処理部114は、ステップS105で顔領域抽出処理部内のメモリに格納した画像データに対して顔領域抽出処理を行う(ステップS201)。次に、画像データの被写体が人物で顔の領域が存在する場合、抽出された顔領域の輝度値を算出する(ステップS202)。
【0036】
次に、記録用に取得した画像データに対して行う明るさ補正処理を行うための補正値を算出する(ステップS203)。補正値は、ステップS202で算出した輝度値と顔の適正な明るさにおける輝度値との差分値である。
【0037】
前述の通り、ステップS204でシャッターボタン112の全押しと同時にCCD102から記録用の画像が取得され、信号処理された画像データがメモリ108に一時記憶される。メモリ108に一時記憶された記録用画像データは、再びデジタル信号処理部107に読み出され、ステップS203で算出した補正値に基づいてデジタルゲインの調整等を行い、明るさ補正の画像処理が行われる(ステップS205)。
【0038】
図2のフローチャートに戻り、明るさの補正処理が施された画像データは、再びメモリ108に一時記憶され、その後YC処理や圧縮処理などの必要な処理を行ったあと、記録部111により記録媒体に記録される。また、必要に応じてLCD110への画像表示も行われる(ステップS109)。
【0039】
以上の処理により、記録用に取得した画像データは、被写体の顔の明るさが適正に補正された状態で記録される。この結果、被写体がフレームの中央になかったり(中央重点測光の場合)、逆光であったりして、被写体の顔部に合わせた露出制御が行われず、撮影時(画像データ取得時)には顔の明るさが不適切な画像データであっても、記録媒体に保存される際は、顔の明るさが適正になるように自動的に補正される。
【0040】
なお、上記の処理において、顔領域抽出処理で複数の顔領域が抽出された場合(即ち複数の人物が被写体として撮像されている場合)、複数の領域で輝度値を求めて平均を算出したり、または、面積が大きい領域だけの輝度値を代表値としたりするなど、適宜適切な条件設定を行う。
【0041】
また、顔領域抽出処理は撮影時、常に行う必要はなく、例えば、人物を撮影するためのモード(例えば、ポートレート撮影モード)に設定されている場合の撮影時にのみ顔領域抽出処理を実行するようにしてもよい。モード設定で顔領域抽出処理部のオン、オフを制御することにより、人物が撮影されていない画像データに対して顔領域抽出処理を行う等の不要な動作を防止して消費電力の低減を図ることができる。
【0042】
【発明の効果】
以上説明したように本発明によれば、画像から抽出した顔領域の明るさが最適値となる補正量に基づいて記録画像の明るさを補正することで、人物の顔部が良好な明るさ(輝度)の記録画像を得ることができる。
【図面の簡単な説明】
【図1】本発明の一実施の形態におけるデジタルカメラの構成を示すブロック図。
【図2】デジタルカメラにおける画像処理の手順を示すフローチャート。
【図3】画像処理における明るさ補正の手順を示すフローチャート。
【符号の説明】
101 レンズ
102 CCD
103 アナログ処理部
104 A/D変換器
105 タイミングジェネレータ
106 制御部
107 デジタル信号処理部
108 メモリ
109 圧縮伸長部
110 LCD
111 記録部
112 シャッターボタン
113 操作スイッチ
114 顔抽出処理部
115 補正量算出部
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to an image processing method and a digital camera that perform brightness correction using a face extraction technique.
[0002]
[Prior art]
In recent years, digital cameras are equipped with functions such as AE (automatic exposure) and AF (automatic focus adjustment) so that photographing can be performed more easily. Center-weighted metering is generally known as a metering method in this AE. However, in center-weighted metering, when shooting with a composition in which the main subject is not in the center, an appropriate exposure according to the main subject can be obtained. There is no problem. For example, in a composition in which the person who is the main subject is placed at the end of the frame, and the center of the background is white, the AE controls exposure according to the white color, so the amount of light is reduced and the person's face appears dark. Exposure failure such as end.
[0003]
As a means for solving the disadvantages of center-weighted metering, exposure control by so-called multi-pattern metering in which the amount of light is measured at a plurality of points is also performed. According to multi-pattern photometry, average exposure control is performed over the entire frame, and thus the problem in the case where the person who is the main subject is not in the center as described above is somewhat solved. However, for example, when a person is photographed with backlight, the AE is judged to be bright overall and exposure control is performed to reduce the amount of light regardless of the composition. The problem of being captured is not solved.
[0004]
[Problems to be solved by the invention]
As described above, center-weighted metering, multi-pattern metering, or a digital camera that can arbitrarily select them cannot perform exposure control so that the brightness of the face is appropriate depending on the situation at the time of shooting. However, in general photography where the subject of photography is a person or landscape, the person's face, especially the person's face, rather than the landscape, affects the quality of the photograph (or image data). It is desired that the part is appropriately brightened.
[0005]
The present invention has been made in view of the above circumstances, and an object of the present invention is to provide an image processing method and a digital camera that make a person's face have good brightness (luminance) by correcting the brightness of the image.
[0006]
[Means for Solving the Problems]
The image processing method of the present invention is an image processing method for correcting the brightness of an image, the step of analyzing the image to extract a human face area, and a correction amount at which the brightness of the extracted face area becomes an appropriate value And a step of correcting the brightness of the image based on the calculated correction amount.
[0007]
Further, in the image processing method of a digital camera that performs exposure and focus adjustment by half-pressing the shutter button, and acquires and records a recorded image after exposure and focus adjustment by fully pressing the shutter button, the half-press is detected. A step of acquiring an image after exposure and focus processing (S105), a step of detecting the full press and analyzing the image after exposure and focus processing to extract a human face region (S201), and an extracted face A step of calculating a correction amount at which the brightness of the region is an optimum value (S203), and a step of correcting the brightness of the recorded image based on the correction amount (S205) are included.
[0008]
The digital camera of the present invention detects half-press in a digital camera that performs exposure and focus adjustment by half-pressing the shutter button, and acquires and records a recorded image after exposure and focus adjustment by full-pressing the shutter button. Means for acquiring an image after exposure and focus processing (memory in the face area extraction processing unit 114) and extracting the face area of a person by detecting the full press and analyzing the image after exposure and focus processing Means (face area extraction processing unit 114), means for calculating a correction amount at which the brightness of the extracted face region is an optimum value (correction amount calculation unit 115), and brightness of the recorded image based on the correction amount And means for correcting (digital signal processing unit 107).
[0009]
According to the above-described invention, the brightness of the recorded image is corrected based on the correction amount at which the brightness of the face area extracted from the image is an optimum value, so that the face portion of the person can be recorded with good brightness (luminance). An image is obtained.
[0010]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
FIG. 1 is a block diagram showing a configuration of a digital camera according to an embodiment of the present invention. Mainly, a lens 101, a CCD 102, an analog signal processing unit 103, an A / D converter 104, a TG (timing generator) 105, and a control unit. 106, a digital signal processing unit 107, a memory 108, a compression / decompression unit 109, an LCD 110, a recording unit 111, a shutter button 112, an operation switch 113, a face extraction processing unit 114, and a correction amount calculation unit 115.
[0011]
Specifically, the lens 101 is a zoom lens (focal length variable lens) having an AF (automatic focus adjustment) mechanism, and the AF mechanism and the zoom mechanism of the lens 101 are driven by a drive circuit (not shown). Instead of the zoom lens, a focal length configuration lens having only an AF mechanism may be used.
[0012]
The CCD 102 is an optical sensor having a large number of light receiving elements arranged in a matrix or honeycomb, and is arranged at a position inside the camera body corresponding to the focal position of the lens 101.
[0013]
The analog signal processing unit 103 performs predetermined analog processing on the image signal output from the CCD 102, and outputs it as R, G, and B signals for each pixel. The analog signal processing unit 103 includes a CDS (correlated double sampling) circuit, an AGC (auto gain control) circuit, and the like. The CDS circuit reduces noise of the image signal, and the AGC circuit adjusts the gain of each image signal by adjusting the gain. Level adjustment is performed.
[0014]
The A / D converter 33 converts the R, G, and B signals sequentially added from the analog signal processing unit 32 into digital R, G, and B signals and outputs them.
[0015]
The timing generator 105 gives timing signals to the CCD 102, the analog signal processing unit 103, and the A / D converter 104, and the circuits are synchronized by the timing signals.
[0016]
The control unit 106 controls the operation of each unit connected by the bus and performs overall control related to the imaging operation of the digital camera. Also, it functions as a control means for controlling AF (automatic focus adjustment), AE (automatic exposure), AW (auto white balance), and the like based on inputs from the shutter button 112 and other operation switches 113. The control unit 106 performs various functions in software as well as data transfer with the peripheral configuration and timing control.
[0017]
The digital signal processing unit 107 performs various processes such as white balance correction, gamma (γ) correction, contour correction, color correction, and YC processing on the input image data. Further, brightness correction is performed based on a brightness correction amount that optimizes the brightness of the face described later. Image data converted into a luminance signal (Y signal) and a color difference signal (Cr, Cb signal) by the digital signal processing unit 107 is stored in a memory 108 for temporary storage of image data via a bus. The YC signal is compressed in accordance with a predetermined format by the compression / decompression unit 109 and then recorded on a recording medium such as a memory card via the recording unit 111.
[0018]
The memory 108 is constituted by a DRAM or the like, and functions as a buffer memory that temporarily stores acquired image data. In order to perform various processes, the image data is read out to each unit connected via the bus, and is written again after the process.
[0019]
The compression / decompression unit 109 compresses the image data stored in the memory 108 by a predetermined compression method such as the JPEG method and records the compressed image data on a recording medium loaded in the recording unit 111 or reads the image data from the recording medium. Or stretch. Image data when the compression / decompression unit 109 performs compression processing is converted into luminance data Y and color difference data Cr and Cb (YC separation processing) and stored in the memory 37. On the other hand, when the image data recorded on the recording medium is reproduced and displayed, the luminance signal and the color difference signal generated by the YC separation are converted into RGB signals.
[0020]
The LCD 110 is a display for image display, and is driven by an LCD driver (not shown) based on RGB signals. The image data temporarily stored in the memory 108 is transferred to the LCD 110 after predetermined processing, and a color image is displayed. At the time of shooting, the shooting range can be accurately determined by using the LCD as a viewfinder.
[0021]
The recording unit 111 records the acquired image data and tag information for each image data on a recording medium such as a memory card. When recording is instructed by pressing the shutter button 112 fully (that is, acquisition of image data), the specific processing of recording is the thumbnail image of the image stored in the memory 108 after completion of the series of image processing and the JPEG method. A compressed image compressed by the above is generated, and both images together with tag information (frame number, exposure value, shutter speed, compression rate, shooting date, flash on / off data at the time of shooting, scene information, etc.) relating to the shot image Is recorded on the recording medium.
[0022]
The recording medium is not limited to a memory card such as a semiconductor recording medium, but an optical recording medium such as a DVD-RAM, DVD-RW, or CD-RW, a magnetic recording medium such as a floppy disk, or a magneto-optical such as MO. A recording medium or the like can also be used, and is not limited to an external recording medium, and may be a built-in recording medium such as a hard disk.
[0023]
The shutter button 112 is a switch for instructing the digital camera to start shooting. The shutter button 112 is a two-stage switch that can detect a half-pressed state and a fully-pressed state. Adjustment) control, AE (automatic exposure) control, and acquisition of an image for face area extraction are performed. When the shutter button 112 is fully pressed, shooting, brightness correction processing (to be described later), and image data recording are performed.
[0024]
In the AE control, a shutter speed and an aperture are automatically set based on luminance detection and luminance determination. In the luminance detection, the luminance values of the respective color components of the image data given by R, G, and B are summed over the entire image using the image data captured by the CCD 101 at predetermined intervals and stored in the memory 108. On average. The shutter speed and aperture setting are determined based on the determination result of the brightness of the subject based on the luminance determination.
[0025]
In the AF control, focusing is performed by moving the lens 101 while obtaining an approximate contrast value of the entire image data as an AF evaluation value. For example, the AF motor drive circuit drives the AF motor so that the high-frequency component of the G signal is maximized when the shutter button is half-pressed, and the lens is moved to the in-focus position to perform autofocus.
[0026]
The face area extraction processing unit 114 has a memory that holds image data acquired by half-pressing the shutter button 112, and a face extraction function that extracts an area corresponding to a human face present in the image from the image data. . The face extraction processing is performed on image data that has undergone processing such as contour correction by the digital signal processing unit 107. A known technique (Japanese Patent Laid-Open No. 9-101579) can be used as a method for extracting a face region.
[0027]
The correction amount calculation unit 115 calculates the brightness (luminance value) of the extracted face area, and calculates a correction value from the difference between the calculated brightness and the appropriate brightness.
[0028]
The face extraction process and the correction amount calculation process are not performed in a period after a half-press of the shutter button, which requires a short process, because the processing time is relatively long. Perform in the period after full pressing.
[0029]
Next, the operation of the digital camera according to the embodiment of the present invention will be described with reference to the flowchart shown in FIG.
[0030]
When the power switch of the digital camera is on (step S101) and the “shooting” mode is on (step S102), the control unit 106 detects half-pressing (S1) of the shutter button 112 (step S103). .
[0031]
When half-pressing of the shutter button 112 is detected, AE and AF are executed in accordance with an instruction from the control unit 106 (step S104), and the image data acquired by determining the in-focus and proper exposure by the AE and AF is obtained. Stored in the memory 108. The same image data is also stored in the memory in the face area extraction processing unit 114 for face area extraction (step S105). The stored image data is a reduced image (for example, an image size of about VGA) thinned out in the CCD thinning mode.
[0032]
Next, the control unit 106 detects full press (S2) of the shutter button 112 (step S106). If the shutter button 112 has not been pressed, the elapse of the predetermined time is determined in step S107, and if the predetermined time has not elapsed, the return detection in step S106 is repeated. If the predetermined time has elapsed, it is determined that the shooting operation is not performed, and the process returns to step S103.
[0033]
When the full press of the shutter button 112 is detected in step S106, brightness correction processing including image recording and brightness correction is performed according to an instruction from the control unit 106 (step S108).
[0034]
FIG. 3 is a flowchart showing the procedure of brightness correction processing performed on an image acquired for recording. When the full press of the shutter button 112 is detected, the control unit 106 performs image recording and brightness correction processing.
[0035]
In order to perform brightness correction processing, the face area extraction processing unit 114 performs face area extraction processing on the image data stored in the memory in the face area extraction processing unit in step S105 (step S201). Next, when the subject of the image data is a person and a face area exists, the brightness value of the extracted face area is calculated (step S202).
[0036]
Next, a correction value for performing brightness correction processing performed on image data acquired for recording is calculated (step S203). The correction value is a difference value between the luminance value calculated in step S202 and the luminance value at the appropriate brightness of the face.
[0037]
As described above, an image for recording is acquired from the CCD 102 simultaneously with the full press of the shutter button 112 in step S204, and the image data subjected to signal processing is temporarily stored in the memory 108. The recording image data temporarily stored in the memory 108 is read again to the digital signal processing unit 107, and the digital gain is adjusted based on the correction value calculated in step S203, and brightness correction image processing is performed. (Step S205).
[0038]
Returning to the flowchart of FIG. 2, the image data that has been subjected to the brightness correction process is temporarily stored again in the memory 108, and after performing necessary processes such as YC processing and compression processing, the recording unit 111 performs recording processing. To be recorded. In addition, an image is displayed on the LCD 110 as necessary (step S109).
[0039]
Through the above processing, the image data acquired for recording is recorded in a state where the brightness of the face of the subject is appropriately corrected. As a result, the subject is not at the center of the frame (in the case of center-weighted metering) or is backlit, and exposure control is not performed according to the subject's face, and the face is not captured when shooting (when acquiring image data). Even if the image data has an inappropriate brightness, it is automatically corrected so that the brightness of the face is appropriate when stored in a recording medium.
[0040]
In the above process, when a plurality of face areas are extracted by the face area extraction process (that is, when a plurality of persons are imaged as subjects), a luminance value is obtained in the plurality of areas and an average is calculated. Alternatively, appropriate condition setting is performed as appropriate, such as setting the luminance value of only a region having a large area as a representative value.
[0041]
Further, the face area extraction process does not always have to be performed at the time of shooting. For example, the face area extraction process is executed only at the time of shooting when a mode for shooting a person (for example, portrait shooting mode) is set. You may do it. By controlling on / off of the face area extraction processing unit in the mode setting, unnecessary operations such as performing face area extraction processing on image data in which a person has not been photographed are prevented, thereby reducing power consumption. be able to.
[0042]
【The invention's effect】
As described above, according to the present invention, the brightness of a person's face is improved by correcting the brightness of the recorded image based on the correction amount at which the brightness of the face area extracted from the image is an optimum value. A recorded image of (luminance) can be obtained.
[Brief description of the drawings]
FIG. 1 is a block diagram illustrating a configuration of a digital camera according to an embodiment of the present invention.
FIG. 2 is a flowchart showing a procedure of image processing in the digital camera.
FIG. 3 is a flowchart showing a procedure of brightness correction in image processing.
[Explanation of symbols]
101 Lens 102 CCD
103 Analog processing unit 104 A / D converter 105 Timing generator 106 Control unit 107 Digital signal processing unit 108 Memory 109 Compression / decompression unit 110 LCD
111 Recording unit 112 Shutter button 113 Operation switch 114 Face extraction processing unit 115 Correction amount calculation unit

Claims (4)

画像の明るさを補正する画像処理方法において、
前記画像を分析して人物の顔領域を抽出するステップと、抽出した顔領域の明るさが適正値となる補正量を算出するステップと、算出した補正量に基づいて前記画像の明るさを補正するステップとを含む画像処理方法。
In an image processing method for correcting the brightness of an image,
Analyzing the image to extract a person's face area; calculating a correction amount at which the brightness of the extracted face area is an appropriate value; and correcting the brightness of the image based on the calculated correction amount An image processing method.
シャッターボタンの半押しで露出及び焦点調整を行い、シャッターボタンの全押しで露出及び焦点調整後の記録画像を取得して記録するデジタルカメラの画像処理方法において、
前記半押しを検出して露出及び焦点処理後の画像を取得するステップと、前記全押しを検出して露出及び焦点処理後の画像を分析して人物の顔領域を抽出するステップと、抽出した顔領域の明るさが最適値となる補正量を算出するステップと、前記補正量に基づいて前記記録画像の明るさを補正するステップとを含む画像処理方法。
In the image processing method of a digital camera that performs exposure and focus adjustment by half-pressing the shutter button, and acquires and records a recorded image after exposure and focus adjustment by fully pressing the shutter button.
Detecting the half-press to acquire an image after exposure and focus processing; extracting the full-press to analyze the image after exposure and focus processing to extract a human face region; An image processing method comprising: calculating a correction amount at which the brightness of a face region is an optimum value; and correcting the brightness of the recorded image based on the correction amount.
シャッターボタンの半押しで露出及び焦点調整を行い、シャッターボタンの全押しで露出及び焦点調整後の記録画像を取得して記録するデジタルカメラにおいて、
前記半押しを検出して露出及び焦点処理後の画像を取得する手段と、前記全押しを検出して露出及び焦点処理後の画像を分析して人物の顔領域を抽出する手段と、抽出した顔領域の明るさが最適値となる補正量を算出する手段と、前記補正量に基づいて前記記録画像の明るさを補正する手段とを備えるデジタルカメラ。
In a digital camera that performs exposure and focus adjustment by half-pressing the shutter button, and acquires and records the recorded image after exposure and focus adjustment by fully pressing the shutter button.
Means for detecting the half-press to acquire an image after exposure and focus processing; and means for detecting the full-press and analyzing the image after exposure and focus processing to extract a human face area; A digital camera comprising means for calculating a correction amount at which the brightness of the face area becomes an optimum value, and means for correcting the brightness of the recorded image based on the correction amount.
画像の明るさを補正する画像処理プログラムにおいて、コンピュータを、前記画像を分析して人物の顔領域を抽出する手段、抽出した顔領域の明るさが適正値となる補正量を算出する手段、算出した補正量に基づいて前記画像の明るさを補正する手段として機能させる画像処理プログラム。In an image processing program for correcting the brightness of an image, the computer analyzes the image, extracts a human face area, calculates a correction amount at which the extracted face area has an appropriate brightness, and calculates An image processing program that functions as means for correcting the brightness of the image based on the corrected amount.
JP2002313089A 2002-10-28 2002-10-28 Image processing method and digital camera Expired - Fee Related JP4178017B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002313089A JP4178017B2 (en) 2002-10-28 2002-10-28 Image processing method and digital camera

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002313089A JP4178017B2 (en) 2002-10-28 2002-10-28 Image processing method and digital camera

Publications (2)

Publication Number Publication Date
JP2004153315A true JP2004153315A (en) 2004-05-27
JP4178017B2 JP4178017B2 (en) 2008-11-12

Family

ID=32457803

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002313089A Expired - Fee Related JP4178017B2 (en) 2002-10-28 2002-10-28 Image processing method and digital camera

Country Status (1)

Country Link
JP (1) JP4178017B2 (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006311311A (en) * 2005-04-28 2006-11-09 Fuji Photo Film Co Ltd Imaging apparatus and method
WO2006117874A1 (en) * 2005-04-26 2006-11-09 Canon Kabushiki Kaisha Image capturing apparatus and its control method
JP2008035480A (en) * 2006-07-07 2008-02-14 Olympus Imaging Corp Camera, image processing method of camera, program, recording medium
JP2009063674A (en) * 2007-09-04 2009-03-26 Canon Inc Imaging apparatus and flash control method
JP2010011095A (en) * 2008-06-27 2010-01-14 Nikon Corp Imaging apparatus
JP2010226416A (en) * 2009-03-24 2010-10-07 Nikon Corp Digital camera
JP2010232711A (en) * 2009-03-25 2010-10-14 Nikon Corp Image capturing apparatus and image processing program
JP2013062847A (en) * 2006-07-07 2013-04-04 Olympus Imaging Corp Camera
DE112017006801T5 (en) 2017-02-28 2019-10-10 Mitsubishi Electric Corporation An image sensing control apparatus for a vehicle, driver observation apparatus and image sensing control method for a vehicle
CN112232146A (en) * 2020-09-27 2021-01-15 厦门亿联网络技术股份有限公司 Face brightness calculation method, device, equipment and storage medium

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006117874A1 (en) * 2005-04-26 2006-11-09 Canon Kabushiki Kaisha Image capturing apparatus and its control method
US7636123B2 (en) 2005-04-26 2009-12-22 Canon Kabushiki Kaisha Image capturing apparatus with light emission controlling mechanism and method of controlling the image capturing apparatus
US8031261B2 (en) 2005-04-28 2011-10-04 Fujifilm Coporation Image pickup apparatus with backlight correction and a method therefor
JP4537255B2 (en) * 2005-04-28 2010-09-01 富士フイルム株式会社 Imaging apparatus and imaging method
JP2006311311A (en) * 2005-04-28 2006-11-09 Fuji Photo Film Co Ltd Imaging apparatus and method
JP2008035480A (en) * 2006-07-07 2008-02-14 Olympus Imaging Corp Camera, image processing method of camera, program, recording medium
JP2013062847A (en) * 2006-07-07 2013-04-04 Olympus Imaging Corp Camera
JP2009063674A (en) * 2007-09-04 2009-03-26 Canon Inc Imaging apparatus and flash control method
JP2010011095A (en) * 2008-06-27 2010-01-14 Nikon Corp Imaging apparatus
JP2010226416A (en) * 2009-03-24 2010-10-07 Nikon Corp Digital camera
JP2010232711A (en) * 2009-03-25 2010-10-14 Nikon Corp Image capturing apparatus and image processing program
JP4678060B2 (en) * 2009-03-25 2011-04-27 株式会社ニコン Imaging apparatus and image processing program
DE112017006801T5 (en) 2017-02-28 2019-10-10 Mitsubishi Electric Corporation An image sensing control apparatus for a vehicle, driver observation apparatus and image sensing control method for a vehicle
US10735664B2 (en) 2017-02-28 2020-08-04 Mitsubishi Electric Corporation Image shooting control device for vehicle, driver monitoring device, image shooting control method for vehicle, and driver monitoring method
DE112017006801B4 (en) * 2017-02-28 2020-10-22 Mitsubishi Electric Corporation Image pickup control device for a vehicle, driver observation device and image pickup control method for a vehicle
CN112232146A (en) * 2020-09-27 2021-01-15 厦门亿联网络技术股份有限公司 Face brightness calculation method, device, equipment and storage medium
CN112232146B (en) * 2020-09-27 2024-04-09 厦门亿联网络技术股份有限公司 Face brightness calculation method, device, equipment and storage medium

Also Published As

Publication number Publication date
JP4178017B2 (en) 2008-11-12

Similar Documents

Publication Publication Date Title
JP4826028B2 (en) Electronic camera
US8477993B2 (en) Image taking apparatus and image taking method
JP4126721B2 (en) Face area extraction method and apparatus
JP2004064676A (en) Image pickup apparatus
JP2001103366A (en) Camera
US8228423B2 (en) Imaging apparatus and method for controlling flash emission
JP4200428B2 (en) Face area extraction method and apparatus
JP2003307669A (en) Camera
US7428012B2 (en) Image processing method including generating face region information and a digital camera including face region identification unit
JP4309524B2 (en) Electronic camera device
JP4178017B2 (en) Image processing method and digital camera
JP3927802B2 (en) Image processing device
JP2004201228A (en) Method and device for extracting face area
US7864860B2 (en) Image pickup apparatus and motion vector deciding method
JP5048599B2 (en) Imaging device
JP5073602B2 (en) IMAGING DEVICE AND IMAGING DEVICE CONTROL METHOD
JP2004080376A (en) Moving picture imaging apparatus and moving picture reproducing apparatus
JP2002040321A (en) Electronic camera
JP2010028605A (en) Image capturing apparatus and method of controlling the same
US8041206B2 (en) Imaging apparatus and method for controlling flash emission
JP2007027984A (en) Photographic apparatus and control method thereof
JP2006217249A (en) Electronic camera, electronic camera system and program
JP2004145022A (en) Digital camera
JP5264541B2 (en) Imaging apparatus and control method thereof
JP2002044516A (en) Electronic camera

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20050215

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20060325

A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20061124

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20070621

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20070627

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20070827

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20070919

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20071120

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20080409

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080508

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

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20080620

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

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

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

Free format text: PAYMENT UNTIL: 20110829

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 4178017

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

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20120829

Year of fee payment: 4

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

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

Free format text: PAYMENT UNTIL: 20120829

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20130829

Year of fee payment: 5

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

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