JP4074883B2 - Image processing device - Google Patents
Image processing device Download PDFInfo
- Publication number
- JP4074883B2 JP4074883B2 JP2007018304A JP2007018304A JP4074883B2 JP 4074883 B2 JP4074883 B2 JP 4074883B2 JP 2007018304 A JP2007018304 A JP 2007018304A JP 2007018304 A JP2007018304 A JP 2007018304A JP 4074883 B2 JP4074883 B2 JP 4074883B2
- Authority
- JP
- Japan
- Prior art keywords
- face
- white balance
- area
- automatic white
- evaluation value
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Images
Description
本発明は、画像処理装置に関し、さらに詳しくは、顔認識をして自動ホワイトバランスの評価値を変更する画像処理装置に関するものである。 The present invention relates to an image processing apparatus, and more particularly to an image processing apparatus that performs face recognition and changes an evaluation value of automatic white balance.
近年パーソナルコンピュータの発達に相まって、その画像入力装置としてのデジタルカメラの利用が広まってきた。特に、デジタルカメラは、特殊な操作技術をもたない撮影者が使用する場合がほとんどであり、撮影の失敗を無くすためにシャッター速度、露出、ピント合わせを被写体に合わせて自動的に設定するようになっているものが多い。また、一般に被写体は人物である場合が多く、人物特有の設定モードを特別に備えたデジタルカメラもある。 In recent years, with the development of personal computers, the use of digital cameras as image input devices has become widespread. In particular, digital cameras are mostly used by photographers who do not have special operation techniques, and in order to eliminate shooting failures, the shutter speed, exposure, and focus are automatically set according to the subject. There are many things that are. In general, the subject is often a person, and there are digital cameras specially equipped with a person-specific setting mode.
そこで、特許文献1には、被写体の背景をぼかすポートレートや被写体を美しく見せるために被写体の色を補正する等のような映像表現等のための新機能を、照度等の条件にかかわりなく、実現可能としたビデオカメラについて開示されている。それによると、撮像素子の出力信号を信号処理回路で処理して映像信号に変換するに際し、該信号処理回路の出力映像信号から特定の被写体部分を抽出する抽出手段と、該信号処理回路での該特定の被写体部分とその他の部分の信号処理パラメ−タを該抽出手段の抽出出力に応じて個別に制御する制御手段とを設けることにより実現している。
また、特許文献2には、被写体が画面の中心に位置しなくても、効果的に自動焦点制御、自動露出制御、自動ホワイトバランス制御、電子ズーム制御を行なうことができるようにする技術について開示されている。これによると、結像光学系を介して得られた光学像をCCDで電気画像信号に変換し、記憶する撮像装置であって、特定画像パターンを記憶する読み出し専用メモリと、前記記憶された画像信号の部分画像と、前記特定画像パターンの相関値を算出する相関値計算部と、前記相関値計算部により算出された相関値の極大値を検出するデータ読み出し制御回路と、検出された極大値に対応する部分画像に基づいて、所定の制御を行うAF、AE、AWB制御回路とを有することにより実現している。
Therefore, Patent Document 1 discloses a new function for image expression such as a portrait that blurs the background of the subject and a correction of the subject color in order to make the subject appear beautiful, regardless of conditions such as illuminance. A video camera that can be realized is disclosed. According to this, when the output signal of the image sensor is processed by the signal processing circuit and converted into a video signal, the extraction means for extracting a specific subject portion from the output video signal of the signal processing circuit, and the signal processing circuit This is realized by providing control means for individually controlling the signal processing parameters of the specific subject part and other parts according to the extraction output of the extraction means.
Further,
このように、特許文献1及び特許文献2は、何れも特定被写体を認識して、その被写体の情報からAWBやAEを行っているが、本発明では、特定被写体(顔)を検出したら、その部分の情報を除外してAWBを行うようにしたものである。
つまり、従来の自動でホワイトバランスを制御する機能を有した画像処理装置は、画面内の物体が無彩色部分を抽出して、その部分を白(無彩色)にするように色調整の制御を行う。無彩色部分はその物体に照射されている光源の色の変化で違った色合いになってしまう。そこで無彩色部分に自然光源が照射されているときに変化する色の範囲を無彩色検出範囲としている。しかし人物撮影を行ったときに、人物の顔の色と無彩色部分に低色温度光源の光が照射されたときの色合いが非常に近いために誤認識をしてしまい、顔を白くしてしまう問題がある。
また、顔検出を行い、顔が検出された場合は顔の色合いが自然になるようにホワイトバランスを制御する方法が提案されているが、人物の顔の色は個人差があり必ずしも良好の制御ができないといった問題もある。
In other words, the conventional image processing apparatus having the function of automatically controlling the white balance extracts the achromatic part of the object in the screen and controls the color adjustment so that the part is white (achromatic color). Do. The achromatic part becomes a different shade due to the change of the color of the light source irradiated to the object. In view of this, the range of colors that change when a natural light source is applied to the achromatic portion is defined as the achromatic color detection range. However, when a person was photographed, the color of the person's face and the achromatic part when the light of the low color temperature light source was irradiated was very close, so it was misrecognized, making the face white. There is a problem.
In addition, a method has been proposed in which face detection is performed and white balance is controlled so that the color of the face becomes natural when a face is detected. There is also a problem that cannot be done.
本発明は、かかる課題に鑑み、顔検出を行い、顔部分の色情報をホワイトバランス演算に用いないことで、顔部分が青白いなどの違和感のあるホワイトバランスを行わないようにして良好な画像処理を実現する画像処理装置を提供することを目的とする。 In view of such a problem, the present invention performs face detection, and does not use color information of the face part for white balance calculation, so that it is possible to perform good image processing so that the face part does not perform an uncomfortable white balance such as pale. An object of the present invention is to provide an image processing apparatus that realizes the above.
本発明はかかる課題を解決するために、請求項1は、処理対象画面を複数のエリアに分割し、該分割した各エリアにおける色情報である自動ホワイトバランス評価値を取得する自動ホワイトバランス評価値取得手段と、前記自動ホワイトバランス評価値を元にホワイトバランスの演算を行う自動ホワイトバランス演算手段と、該自動ホワイトバランス演算手段の結果によりホワイトバランス制御を自動で行うホワイトバランス制御手段と、前記処理対象画面の前記分割した複数のエリアのうち全てのエリアから顔が存在するエリアを検出する顔エリア検出手段と、を備え、前記顔エリア検出手段により前記顔が存在するエリアが検出された場合において、前記自動ホワイトバランス評価値取得手段は、前記自動ホワイトバランス評価値を、前記分割した複数のエリアのうち前記顔が存在するエリアとして検出されなかったエリアから取得し、前記顔が存在するエリアとして検出されたエリアからは取得しないことを特徴とする。 In order to solve this problem, the present invention provides an automatic white balance evaluation value that divides a processing target screen into a plurality of areas and acquires an automatic white balance evaluation value that is color information in each divided area. An acquisition unit; an automatic white balance calculation unit that performs white balance calculation based on the automatic white balance evaluation value; a white balance control unit that automatically performs white balance control based on a result of the automatic white balance calculation unit; A face area detecting unit that detects an area where a face exists from all the divided areas of the target screen, and when the area where the face exists is detected by the face area detecting unit The automatic white balance evaluation value acquisition means obtains the automatic white balance evaluation value as a previous value. Obtained from the area where the face is not detected as an area that exists among the divided plurality of areas, characterized in that it does not get from the detected area as an area where the face is present.
自動ホワイトバランス(AWB)評価値の取得エリアは、通常は画面全体である。そして、従来の自動でホワイトバランスを制御する機能を有した画像処理装置は、画面内の物体が無彩色部分を抽出して、その部分を白(無彩色)にするように色調整の制御を行う。そのため、そのエリアに人物の顔がある場合、人物の顔の色と無彩色部分に低色温度光源の光が照射されたときの色合いが非常に近いために誤認識をしてしまい、顔を白くしてしまう問題があった。そこで、顔認識動作モードで顔検出手段により顔と認識された場合、自動ホワイトバランス評価値の取得エリアを顔部分から移動して、顔部分のホワイトバランスの演算を行なわないようにする。
かかる発明によれば、処理対象となる画像内に人物の顔が存在することを検出する顔検出手段を更に備え、前記顔検出モードに設定され前記顔検出手段により前記顔が検出された場合は、前記自動ホワイトバランス評価値を取得するエリアを前記顔以外のエリアに変更することにより、顔部分の良好な画像処理を実現することができる。
The acquisition area of the automatic white balance (AWB) evaluation value is usually the entire screen. The conventional image processing apparatus having the function of automatically controlling the white balance extracts the achromatic part of the object in the screen and controls the color adjustment so that the part is white (achromatic color). Do. Therefore, if there is a person's face in that area, the color of the person's face and the achromatic part when the light of the low color temperature light source is irradiated are very close, so the recognition error occurs and the face is There was a problem that turned white. Therefore, when a face is recognized by the face detection unit in the face recognition operation mode, the area for acquiring the automatic white balance evaluation value is moved from the face part so that the calculation of the white balance of the face part is not performed.
According to this invention, the image processing apparatus further includes face detection means for detecting the presence of a human face in the image to be processed, and when the face detection mode is set and the face detection means detects the face. By changing the area from which the automatic white balance evaluation value is acquired to an area other than the face, good image processing of the face portion can be realized.
請求項2は、処理対象画面を複数のエリアに分割し、該分割した各エリアにおける色情報である自動ホワイトバランス評価値を取得する自動ホワイトバランス評価値取得手段と、前記自動ホワイトバランス評価値を元にホワイトバランスの演算を行う自動ホワイトバランス演算手段と、該自動ホワイトバランス演算手段の結果によりホワイトバランス制御を自動で行うホワイトバランス制御手段と、前記処理対象画面の前記分割した複数のエリアのうち全てのエリアから顔が存在するエリアを検出する顔エリア検出手段と、を備え、前記顔エリア検出手段により前記顔が存在するエリアが検出された場合において、前記自動ホワイトバランス演算手段は、前記分割した複数のエリアのうち前記顔が存在するエリアとして検出されなかったエリアから取得された前記自動ホワイトバランス評価値を前記自動ホワイトバランス演算に使用し、前記顔が存在するエリアとして検出されたエリアから取得された前記自動ホワイトバランス評価値を前記自動ホワイトバランス演算に使用しないことを特徴とする。 According to a second aspect of the present invention, an automatic white balance evaluation value acquisition unit that divides a processing target screen into a plurality of areas and acquires automatic white balance evaluation values that are color information in the divided areas; An automatic white balance calculating means that originally calculates white balance, a white balance control means that automatically performs white balance control based on a result of the automatic white balance calculating means, and among the plurality of divided areas of the processing target screen Face area detecting means for detecting an area where a face is present from all areas, and when the area where the face is present is detected by the face area detecting means, the automatic white balance calculating means includes the division Of the plurality of areas that were not detected as the area where the face exists. The obtained the automatic white balance evaluation value used in the automatic white balance calculation from not using the automatic white balance evaluation value obtained from the detected area as an area where the face is present in the automatic white balance calculation It is characterized by that.
顔検出を実行する場合のモードは、撮像動作に先立ち顔検出を行い、検出できた場合は、顔が含まれるエリア以外のエリアから作成されたAWB評価値を用いて、AWB演算及び制御が行われる。顔検出により、このエリアをAWB演算対象から除外することで、違和感のあるAWB制御を行わないようにすることができる。
かかる発明によれば、処理対象となる画像内に人物の顔が存在することを検出する顔検出手段を更に備え、前記顔検出モードに設定され前記顔検出手段により前記顔が検出された場合は、前記顔が検出されたエリアから取得された前記自動ホワイトバランス評価値を前記自動ホワイトバランス演算に使用しないことにより、違和感のあるAWB制御を行わないようにすることができる。
When performing face detection, face detection is performed prior to the imaging operation, and if detected, AWB calculation and control are performed using an AWB evaluation value created from an area other than the area including the face. Is called. By excluding this area from the AWB calculation target by face detection, it is possible to prevent the AWB control with a sense of incongruity from being performed.
According to this invention, the image processing apparatus further includes face detection means for detecting the presence of a human face in the image to be processed, and when the face detection mode is set and the face detection means detects the face. By not using the automatic white balance evaluation value acquired from the area where the face is detected for the automatic white balance calculation, it is possible to prevent the AWB control having a sense of incongruity from being performed.
請求項3は、前記顔エリア検出手段により前記顔が存在するエリアが検出されない場合は、前記自動ホワイトバランス評価値を取得するエリアを前記処理対象画面における全エリアに設定することを特徴とする。
撮像装置によっては撮影モードが人物撮影モードや、それ以外の場合を選択する機能が付いているものがある。人物撮影モード以外の場合、評価値取得エリアは顔を撮影しないので、通常エリアに指定する。また、人物撮影モードの場合で、顔検出処理の動作により顔を検出しない場合も同じように、評価値取得エリアを通常エリアに指定する。かかる技術手段によれば、前記顔検出モードに設定されない場合、若しくは前記顔検出手段により前記顔が検出されない場合は、前記自動ホワイトバランス評価値を取得するエリアを通常エリアに設定するため、不必要な処理を省略することができる。
Some imaging apparatuses have a function for selecting a person shooting mode as the shooting mode and other cases. In a mode other than the portrait shooting mode, the evaluation value acquisition area is designated as a normal area because no face is shot. Similarly, in the case of the human photographing mode, the evaluation value acquisition area is designated as the normal area when the face is not detected by the operation of the face detection process. According to such technical means, when the face detection mode is not set, or when the face is not detected by the face detection means, the area for acquiring the automatic white balance evaluation value is set as a normal area, which is unnecessary. Processing can be omitted.
請求項4は、画面の各部分の明るさを検出する輝度検出手段を更に備え、前記分割した複数のエリアのうち前記顔エリア検出手段により前記顔が存在するエリアとして検出されなかったエリアの明るさが極端に暗いか若しくは明るい場合、前記顔が存在するエリアとして検出されたエリアの自動ホワイトバランス評価値を前記自動ホワイトバランス演算の対象から除外する処理を行わないことを特徴とする。
顔検出を実行する場合のモードにおいて、撮像動作に先立ち顔検出を行い、検出できた場合は、検出された顔エリアとそれ以外のエリアとの明るさの差を輝度検出手段により算出する。顔検出を行うモードでは、主要被写体である人物を適正露光状態に設定されるので、それ以外の部分が極端に明るい場合や暗い場合は、AWB評価値エリアの移動や除外を行わない。顔以外の部分が極端に明るい場合とは逆光の場合などで、その場合主要被写体以外の部分は飽和してしまっている場合があり、そのときの色情報は正確な色の検出がされている保証がない。また、顔以外の部分が極端に暗い場合とは、人物のみがスポットライトで照らされている場合などで、この場合の主要被写体以外の部分の信号は値が小さいため、ノイズなどの影響を受けやすく、正確な色情報の抽出ができない可能性がある。
そのため顔認識結果に基づいたAWB評価値取得エリアの移動や除外の処理をしてしまうと、かえって良好なAWB制御ができない可能性がある。
かかる技術手段によれば、前記顔検出手段により検出された顔部分以外のエリアの明るさが極端に暗いか若しくは明るい場合、前記顔部分の色情報を前記自動ホワイトバランス演算の対象から除外する処理を行わないことにより、AWBの誤動作を防止することができる。
According to a fourth aspect of the present invention, there is further provided luminance detection means for detecting the brightness of each part of the screen, and the brightness of an area that is not detected as an area where the face exists by the face area detection means among the plurality of divided areas. When the brightness is extremely dark or bright, the automatic white balance evaluation value of the area detected as the area where the face exists is not excluded from the target of the automatic white balance calculation.
In the mode for executing face detection, face detection is performed prior to the imaging operation, and if it can be detected, the brightness difference between the detected face area and the other areas is calculated by the luminance detecting means. In the face detection mode, the person who is the main subject is set to the proper exposure state. Therefore, when the other part is extremely bright or dark, the AWB evaluation value area is not moved or excluded. When the part other than the face is extremely bright, it is backlit, etc. In that case, the part other than the main subject may be saturated, and the color information at that time is accurately detected. There is no guarantee. In addition, when the part other than the face is extremely dark, it means that only the person is illuminated with a spotlight.In this case, the signal of the part other than the main subject is small, so it is affected by noise. It is easy and accurate color information may not be extracted.
Therefore, if the AWB evaluation value acquisition area is moved or excluded based on the face recognition result, there is a possibility that good AWB control cannot be performed.
According to this technical means, when the brightness of the area other than the face part detected by the face detection means is extremely dark or bright, the process of excluding the color information of the face part from the target of the automatic white balance calculation By not performing AWB, malfunction of AWB can be prevented.
本発明によれば、請求項1は、処理対象となる画像内に人物の顔が存在することを検出する顔検出手段を更に備え、前記顔検出モードに設定され前記顔検出手段により前記顔が検出された場合は、前記自動ホワイトバランス評価値を取得するエリアを前記顔以外のエリアに変更することにより、顔部分の良好な画像処理を実現することができる。
また請求項2は、処理対象となる画像内に人物の顔が存在することを検出する顔検出手段を更に備え、前記顔検出モードに設定され前記顔検出手段により前記顔が検出された場合は、前記顔が検出されたエリアから取得された前記自動ホワイトバランス評価値を前記自動ホワイトバランス演算に使用しないことにより、違和感のあるAWB制御を行わないようにすることができる。
また請求項3は、前記顔検出モードに設定されない場合、若しくは前記顔検出手段により前記顔が検出されない場合は、前記自動ホワイトバランス評価値を取得するエリアを通常エリアに設定するため、不必要な処理を省略することができる。
また請求項4は、前記顔検出手段により検出された顔部分以外のエリアの明るさが極端に暗いか若しくは明るい場合、前記顔部分の色情報を前記自動ホワイトバランス演算の対象から除外する処理を行わないことにより、AWBの誤動作を防止することができる。
According to the present invention, claim 1 further comprises face detection means for detecting the presence of a human face in the image to be processed, and the face detection mode is set to the face detection mode and the face is detected by the face detection means. If detected, by changing the area from which the automatic white balance evaluation value is acquired to an area other than the face, good image processing of the face portion can be realized.
Further, the present invention further comprises face detection means for detecting the presence of a human face in the image to be processed, and when the face detection mode is set and the face detection means detects the face. By not using the automatic white balance evaluation value acquired from the area where the face is detected for the automatic white balance calculation, it is possible to prevent the AWB control having a sense of incongruity from being performed.
According to a third aspect of the present invention, when the face detection mode is not set, or when the face is not detected by the face detection unit, the area for obtaining the automatic white balance evaluation value is set as a normal area, which is unnecessary. Processing can be omitted.
According to a fourth aspect of the present invention, when the brightness of an area other than the face part detected by the face detection unit is extremely dark or bright, the process of excluding the color information of the face part from the target of the automatic white balance calculation By not performing it, it is possible to prevent malfunction of AWB.
以下、本発明を図に示した実施形態を用いて詳細に説明する。但し、この実施形態に記載される構成要素、種類、組み合わせ、形状、その相対配置などは特定的な記載がない限り、この発明の範囲をそれのみに限定する主旨ではなく単なる説明例に過ぎない。
図1は、本発明の実施形態のデジタルスカメラのブロック図である。この構成は、被写体の光学画像を集光するレンズ1と、レンズ1により集光された光束を集束する絞り部2と、図示しない複数のレンズを移動させて合焦したり、絞り部2を駆動するモータドライバ11と、レンズ1と絞り部2を通過した光学画像を光電変換するCCD(Charge Coupled Device:電荷結合素子)3と、CCD3に含まれる雑音を低減するCDS(Correlated Double Sampling)4と、CCD3からのアナログ信号をデジタル信号に変換するA/D変換器5と、前記CCD3、CDS4、A/D変換器5のタイミングを発生するタイミング発生器13と、画像処理パラメータに従って画像処理を行うデジタル信号処理回路7と、撮像画素の記録と画像処理された画像を記憶するフレームメモリ6と、液晶(LCD:Liquid Crystal Display)により撮像画像を表示する表示部8と、デジタル信号処理回路7で処理された画像データを圧縮あるいは源画像データに伸張する画像圧縮伸張回路9と、画像圧縮伸張回路9により圧縮された画像データを格納するメモリカード10と、制御プログラムに基づいて所定の制御を実行するCPU14と、パラメータを格納するEEPROM(Electrically Erasable and Programmable Read Only Memory)16と、操作者がカメラ本体を操作するためのレリーズボタン等を備えたカメラ操作部17により構成される。
Hereinafter, the present invention will be described in detail with reference to embodiments shown in the drawings. However, the components, types, combinations, shapes, relative arrangements, and the like described in this embodiment are merely illustrative examples and not intended to limit the scope of the present invention only unless otherwise specified. .
FIG. 1 is a block diagram of a digital camera according to an embodiment of the present invention. In this configuration, a lens 1 that collects an optical image of a subject, a
次に、図1を参照しながら、本構成のデジタルスチルカメラ100の動作概要について説明する。操作者は図示しないファインダから被写体を覗き、カメラ操作部17のレリーズボタンを押すと、CPU14はその信号を検出してモータドライバ11に対してレンズ1と絞り2を駆動して、被写体の画像をCCD3に合焦させる。これらの一連の動作は、自動的にCPU14が図示しないセンサの情報に基づいて行われる。CCD3に合焦された画像は、タイミング発生器13から発生されるクロックにより順次取り出され、CDS4によりデータに含まれる雑音を低減する。ここで、CCD3の出力信号に含まれる雑音は、リセット雑音が支配的である。この雑音を低減するために信号期間に含まれる映像信号とリセット雑音及び、フィールドスルー期間のみに含まれるリセット雑音から両者を引き算することによりリセット雑音をキャンセルしている。そして、そのアナログ信号をA/D変換器5により10ビットのデジタル信号に変換して、デジタル信号処理回路7に入力され、フレームメモリ6に一時保管される。そして、EEPROM16に格納されたパラメータにより、CPU14からの指示によりフレームメモリ6に一時保管されたデータを処理し、その処理された画像をフレームメモリ6に再び格納する。この処理の中にホワイトバランス処理が含まれる。さらに、フレームメモリ6に書き込まれたデータを表示部8の制御部に送り、LCDにその内容を表示する。フレームメモリ6は、少なくとも撮像画素の1画面以上の画像データを蓄積することができる画像メモリであり、例えば、VRAM(Video Random Access Memory)、SRAM(Static Random Access Memory)、DRAM(Dynamic Random Access Memory)、あるいはSDRAM(Synchronous DRAM)などの一般に用いられているメモリを用いる。
Next, an outline of the operation of the digital still camera 100 having this configuration will be described with reference to FIG. When the operator looks into the subject from a finder (not shown) and presses the release button of the
ここで、操作者の意思により、その画像をメモリカード10に記録しておきたい場合、カメラ操作部17から指示をすると、CPU14はそれに従って、デジタル信号処理回路7に対して画像をメモリカード10に転送する制御を実行する。つまり、画像処理された画像をフレームメモリ6から読み出し、画像圧縮伸張回路9に送る。ここで、JPEG(Joint Photographic Experts Group)方式で画像を圧縮し、メモリカード10に記憶する。この符号化アルゴリズムにはADCT(適応離散コサイン)を用い、最初に解像度の低い画像を符号化し、次第に解像度が高くなるような階層符号化も取り入れられる。このようにメモリカード10は、フレームメモリ6に格納されたデータを圧縮し、その圧縮データを格納しておくためのものである。この他に、例えば8MB程度の内部メモリあるいはスマートメディア・コンパクトフラッシュ(登録商標)などに記録する構成であってもよい。
また、逆にメモリカード10の内容を表示部8に表示する場合や、外部端子により他のPCと接続して画像データを転送したい場合は、所望のメモリカードをカメラ本体の図示しないコネクタに挿入して、カメラ操作部17から指示すると、CPU14はデジタル信号処理回路7に指示してメモリカードの圧縮された画像データを読み出し、画像圧縮伸張回路9に入力して、圧縮のアルゴリズムに従ってデータを伸張して元に戻し、表示部8に画像を表示する。
Here, when it is desired to record the image on the
Conversely, when displaying the contents of the
図2は、本発明の第1の実施形態に係る動作フローチャートである。図3は顔が検出されたときに自動ホワイトバランス(以下、AWBと記す)評価値取得エリアを移動した図である。図2と図3を併せて参照しながら動作について説明する。まず、撮像装置が顔認識動作モードかどうか判断し(S1)、顔認識動作モードでない場合(NOのルート)図3のAWB評価値取得エリアを通常エリア20に指定する(S5)。ステップS1で顔認識動作モードの場合(YESのルート)顔認識処理を行い(S2)、顔と認識されるか否かを判断する(S3)。顔と認識されない場合(NOのルート)図3のAWB評価値取得エリアを通常エリア20に指定する(S5)。ステップS3で顔と認識された場合(YESのルート)、図3のAWB評価値取得エリアを顔22以外のエリア21に移動させる(S4)。そして、AWB評価値取得エリアを設定し(S6)、そのAWB評価値を取得する(S7)。そしてAWB値を演算して(S8)、最終的なAWBゲインを設定する(S9)。 FIG. 2 is an operation flowchart according to the first embodiment of the present invention. FIG. 3 is a diagram in which an automatic white balance (hereinafter referred to as AWB) evaluation value acquisition area is moved when a face is detected. The operation will be described with reference to FIGS. First, it is determined whether or not the imaging apparatus is in the face recognition operation mode (S1), and when it is not in the face recognition operation mode (NO route), the AWB evaluation value acquisition area in FIG. 3 is designated as the normal area 20 (S5). In the face recognition operation mode in step S1 (YES route), face recognition processing is performed (S2), and it is determined whether or not the face is recognized (S3). When the face is not recognized (NO route), the AWB evaluation value acquisition area in FIG. 3 is designated as the normal area 20 (S5). When the face is recognized in step S3 (YES route), the AWB evaluation value acquisition area in FIG. 3 is moved to the area 21 other than the face 22 (S4). Then, an AWB evaluation value acquisition area is set (S6), and the AWB evaluation value is acquired (S7). Then, the AWB value is calculated (S8), and the final AWB gain is set (S9).
以上のように、自動ホワイトバランス(AWB)評価値の取得エリア20は、通常は画面全体である。そして、従来の自動でホワイトバランスを制御する機能を有した画像処理装置は、画面内の物体が無彩色部分を抽出して、その部分を白(無彩色)にするように色調整の制御を行う。そのため、そのエリアに人物の顔22がある場合、人物の顔の色と無彩色部分に低色温度光源の光が照射されたときの色合いが非常に近いために誤認識をしてしまい、顔を白くしてしまう問題があった。そこで、顔認識動作モードで顔検出手段により顔と認識された場合、AWB評価値の取得エリア21を顔部分から移動して、顔部分のホワイトバランスの演算を行なわないようにする。これにより、顔部分の良好な画像処理を実現することができる。また、撮像装置によっては撮影モードが人物撮影モードや、それ以外の場合を選択する機能が付いているものがある。人物撮影モード以外の場合、評価値取得エリアは顔を撮影しないので、通常エリアに指定する。
また、人物撮影モードの場合で、顔検出処理の動作により顔を検出しない場合も同じように、評価値取得エリアを通常エリアに指定するため、不必要な処理を省略することができる。
As described above, the automatic white balance (AWB) evaluation
Further, in the case of the person photographing mode, when the face is not detected by the face detection processing operation, the evaluation value acquisition area is designated as the normal area, so that unnecessary processing can be omitted.
図4は、本発明の第2の実施形態に係る動作フローチャートである。図5は画面を分割してAWB評価値を取得している図である。図4と図5を併せて参照しながら動作について説明する。まず、撮像装置が顔認識動作モードかどうか判断し(S11)、顔認識動作モードでない場合(NOのルート)図5のAWB評価値取得エリアを通常エリア23に指定する(S15)。ステップS11で顔認識動作モードの場合(YESのルート)顔認識処理を行い(S12)、顔と認識されるか否かを判断する(S13)。顔と認識されない場合(NOのルート)図5のAWB評価値取得エリアを通常エリア23に指定する(S15)。ステップS13で顔と認識された場合(YESのルート)、図5のAWB評価値取得エリア23から顔25が含まれるエリア24を除外する(S14)。そして、AWB評価値指定エリアからの評価値を取得する(S16)。そしてAWB値を演算して(S17)、最終的なAWBゲインを設定する(S18)。
FIG. 4 is an operation flowchart according to the second embodiment of the present invention. FIG. 5 is a diagram in which the AWB evaluation value is acquired by dividing the screen. The operation will be described with reference to FIGS. 4 and 5 together. First, it is determined whether or not the imaging apparatus is in the face recognition operation mode (S11). If the image recognition apparatus is not in the face recognition operation mode (NO route), the AWB evaluation value acquisition area in FIG. 5 is designated as the normal area 23 (S15). In the face recognition operation mode in step S11 (YES route), face recognition processing is performed (S12), and it is determined whether or not the face is recognized (S13). When the face is not recognized (NO route), the AWB evaluation value acquisition area in FIG. 5 is designated as the normal area 23 (S15). If the face is recognized in step S13 (YES route), the
以上のように、顔検出を実行する場合のモードは、撮像動作に先立ち顔検出を行い、検出できた場合は、顔が含まれるエリア以外のエリアから作成されたAWB評価値を用いて、AWB演算及び制御が行われる。顔検出により、このエリアをAWB演算対象から除外することで、違和感のあるAWB制御を行わないようにすることができる。
また、顔検出を実行する場合のモードにおいて、撮像動作に先立ち顔検出を行い、検出できた場合は、検出された顔エリアとそれ以外のエリアとの明るさの差を輝度検出手段により算出する。顔検出を行うモードでは、主要被写体である人物を適正露光状態に設定されるので、それ以外の部分が極端に明るい場合や暗い場合は、AWB評価値エリアの移動や除外を行わない。顔以外の部分が極端に明るい場合とは逆光の場合などで、その場合主要被写体以外の部分は飽和してしまっている場合があり、そのときの色情報は正確な色の検出がされている保証がない。また、顔以外の部分が極端に暗い場合とは、人物のみがスポットライトで照らされている場合などで、この場合の主要被写体以外の部分の信号は値が小さいため、ノイズなどの影響を受けやすく、正確な色情報の抽出ができない可能性がある。そのため顔認識結果に基づいたAWB評価値取得エリアの移動や除外の処理をしてしまうと、かえって良好なAWB制御ができない可能性がある。これにより、AWBの誤動作を防止することができる。
As described above, the mode in the case of performing face detection performs face detection prior to the imaging operation, and if it can be detected, the AWB evaluation value created from an area other than the area including the face is used to perform AWB. Calculation and control are performed. By excluding this area from the AWB calculation target by face detection, it is possible to prevent the AWB control with a sense of incongruity from being performed.
Further, in the mode in which face detection is performed, face detection is performed prior to the imaging operation, and if it can be detected, the brightness difference between the detected face area and the other areas is calculated by the luminance detection means. . In the face detection mode, the person who is the main subject is set to the proper exposure state. Therefore, when the other part is extremely bright or dark, the AWB evaluation value area is not moved or excluded. When the part other than the face is extremely bright, it is backlit, etc. In that case, the part other than the main subject may be saturated, and the color information at that time is accurately detected. There is no guarantee. In addition, when the part other than the face is extremely dark, it means that only the person is illuminated with a spotlight.In this case, the signal of the part other than the main subject is small, so it is affected by noise. It is easy and accurate color information may not be extracted. Therefore, if the AWB evaluation value acquisition area is moved or excluded based on the face recognition result, there is a possibility that good AWB control cannot be performed. Thereby, malfunction of AWB can be prevented.
また、以上の画像処理機能は、画像を扱う全ての装置に対して応用が可能である。特に、デジタルカメラにこの画像処理技術を応用することは最適である。そのときは、更に光学系を介して得られた光信号をカラー画像信号に変換して出力するカラー画像撮像手段を備えることにより実現される。これにより、顔部分が青白いなどの違和感のあるホワイトバランスが行わないようにして、良好な画像処理を実現したデジタルカメラを提供することができる。 The above image processing function can be applied to all devices that handle images. In particular, it is optimal to apply this image processing technique to a digital camera. In that case, it is implement | achieved by further providing the color image imaging means which converts into a color image signal and outputs the optical signal obtained via the optical system. Accordingly, it is possible to provide a digital camera that realizes good image processing without performing a white balance with an uncomfortable feeling such as a pale face.
1 レンズ、2 絞り部、3 CCD、4 CDS、5 A/D変換器、6 フレームメモリ、7 デジタル信号処理回路、8 表示部、9 画像圧縮伸張回路、14 CPU 1 Lens, 2 Aperture, 3 CCD, 4 CDS, 5 A / D Converter, 6 Frame Memory, 7 Digital Signal Processing Circuit, 8 Display, 9 Image Compression / Expansion Circuit, 14 CPU
Claims (4)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007018304A JP4074883B2 (en) | 2007-01-29 | 2007-01-29 | Image processing device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007018304A JP4074883B2 (en) | 2007-01-29 | 2007-01-29 | Image processing device |
Related Parent Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2001386761A Division JP3927802B2 (en) | 2001-12-19 | 2001-12-19 | Image processing device |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2007184950A JP2007184950A (en) | 2007-07-19 |
JP4074883B2 true JP4074883B2 (en) | 2008-04-16 |
Family
ID=38340587
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2007018304A Expired - Fee Related JP4074883B2 (en) | 2007-01-29 | 2007-01-29 | Image processing device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4074883B2 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8355567B2 (en) * | 2008-12-12 | 2013-01-15 | Tektronix, Inc. | Method and apparatus for implementing moving image color appearance model for video quality ratings prediction |
-
2007
- 2007-01-29 JP JP2007018304A patent/JP4074883B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JP2007184950A (en) | 2007-07-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4008778B2 (en) | Imaging device | |
US8111315B2 (en) | Imaging device and imaging control method that detects and displays composition information | |
US8111946B2 (en) | Image processing apparatus, imaging apparatus, and image processing method | |
JP3927802B2 (en) | Image processing device | |
JP6720881B2 (en) | Image processing apparatus and image processing method | |
US9253406B2 (en) | Image capture apparatus that can display review image, image capture method, and storage medium | |
US7428012B2 (en) | Image processing method including generating face region information and a digital camera including face region identification unit | |
JP4818999B2 (en) | Imaging apparatus, method, and program | |
JP2009010616A (en) | Imaging device and image output control method | |
JP2007188126A (en) | Image brightness calculation device, method, and program | |
JP4360318B2 (en) | Digital still camera | |
JP2020102059A (en) | Image processor | |
JP5048599B2 (en) | Imaging device | |
JP5569361B2 (en) | Imaging apparatus and white balance control method | |
JP4844073B2 (en) | Imaging device | |
JP4632417B2 (en) | Imaging apparatus and control method thereof | |
JP4074883B2 (en) | Image processing device | |
JP2016046610A (en) | Imaging apparatus | |
JP2016092513A (en) | Image acquisition device, shake reduction method and program | |
JP5200820B2 (en) | Imaging apparatus, imaging method, and image processing program | |
JP2009055415A (en) | Camera | |
JP2008067298A (en) | Photography apparatus and program | |
JP5083116B2 (en) | Imaging apparatus, image processing method, and program | |
JP2007235869A (en) | Imaging apparatus and program | |
JP5393189B2 (en) | Imaging apparatus and image processing method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20070731 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20070906 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20071016 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20071211 |
|
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: 20080115 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20080128 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110201 Year of fee payment: 3 |
|
R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 Ref document number: 4074883 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120201 Year of fee payment: 4 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130201 Year of fee payment: 5 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130201 Year of fee payment: 5 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20140201 Year of fee payment: 6 |
|
LAPS | Cancellation because of no payment of annual fees |