JP2007257253A - Face detection method and photographic apparatus using the method - Google Patents
Face detection method and photographic apparatus using the method Download PDFInfo
- Publication number
- JP2007257253A JP2007257253A JP2006080262A JP2006080262A JP2007257253A JP 2007257253 A JP2007257253 A JP 2007257253A JP 2006080262 A JP2006080262 A JP 2006080262A JP 2006080262 A JP2006080262 A JP 2006080262A JP 2007257253 A JP2007257253 A JP 2007257253A
- Authority
- JP
- Japan
- Prior art keywords
- face
- image
- luminance
- partial
- human subject
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Withdrawn
Links
Images
Landscapes
- Image Processing (AREA)
- Studio Devices (AREA)
- Image Analysis (AREA)
Abstract
Description
本発明は、デジタルカメラ等を用いて取得された人物被写体の画像から顔画像を検出する顔検出方法およびこれを用いた撮影装置に関するものである。 The present invention relates to a face detection method for detecting a face image from an image of a human subject acquired using a digital camera or the like, and a photographing apparatus using the face detection method.
顔検出の基本原理は顔か顔ではないかの2クラス判別であり、この判別方法としてブースティング(Boosting)と呼ばれる手法が広く用いられている(たとえば特許文献1参照)。ブースティングアルゴリズムは複数の弱い判別器(弱判別器)を結合することにより1つの強い判別器を形成する2クラス判別器の学習方法である。 The basic principle of face detection is two-class discrimination of whether it is a face or a face, and a method called boosting is widely used as this discrimination method (see, for example, Patent Document 1). The boosting algorithm is a learning method for a two-class classifier that forms a strong classifier by combining a plurality of weak classifiers (weak classifiers).
特に、ブースティングによる顔検出処理の高速化を図るために、複数の弱判別器でカスケードを構成する判別器が提案されている(たとえば特許文献2参照)。この判別器では、顔もしくは非顔の判別において、上流側の弱判別器が顔であると判別した画像について下流側の弱判別器がさらに顔か非顔かの判別を行うようになっている。
特許文献1に示すようなブースティングアルゴリズムによる顔検出においては、通常、画像の輝度情報(Y信号)が用いられる。一方、デジタルカメラ等により取得された画像のデータはRGB信号からなる場合が多い。したがって、デジタルカメラ等により取得された画像に対し顔検出処理を行うとき、RGB信号からY信号を生成することが必要になってしまい、情報処理量の増加が顔検出の高速化を妨げる原因になってしまう。特に、デジタルカメラに撮影装置を実装し、取得した画像に直ぐ顔検出処理を施すような場合、Y信号の生成処理が高速化を阻害する大きな要因となってしまう。
In face detection by a boosting algorithm as shown in
そこで、本発明は、高速に顔の検出を行うことができる顔検出方法およびこれを用いた撮影装置を提供することを目的とするものである。 Therefore, an object of the present invention is to provide a face detection method capable of detecting a face at high speed and a photographing apparatus using the face detection method.
本発明の顔検出方法は、人物被写体からの入射光を色分解することにより、人物被写体の原画像と、人物被写体の輝度情報に近い明度を有する色からなる輝度近似画像とを取得し、取得した輝度近似画像から顔を検出することにより、原画像内の顔を検出することを特徴とするものである。 The face detection method of the present invention obtains an original image of a human subject and a luminance approximate image composed of colors having lightness close to luminance information of the human subject by performing color separation on incident light from the human subject. By detecting a face from the brightness approximated image, the face in the original image is detected.
本発明の撮影装置は、人物被写体からの入射光を色分解することにより人物被写体のカラー画像を取得する第1撮像手段と、人物被写体からの入射光を色分解することにより人物被写体の輝度情報に近い明度を有する色からなる輝度近似画像を取得する第2撮像手段と、第2撮像手段により取得された輝度近似画像から顔を検出することにより、第1撮像手段により取得された原画像内の顔を検出する顔検出手段とを備えたことを特徴とするものである。 The imaging apparatus of the present invention includes a first imaging unit that obtains a color image of a human subject by color-separating incident light from the human subject, and luminance information of the human subject by color-separating incident light from the human subject. In the original image acquired by the first imaging unit by detecting a face from the luminance approximated image acquired by the second imaging unit and the luminance approximated image acquired by the second imaging unit. And a face detecting means for detecting the face.
ここで、原画像はいかなる表色系からなる画像であっても良く、たとえばRGB(レッド、グリーン、ブルー)信号からなる画像であっても良いし、CYMG(シアン、イエロー、マゼンダ、グリーン)信号からなる画像であっても良い。また、輝度近似画像は、第2撮像素子から直接的に取得することができ、輝度情報ではないが輝度情報に近い明度を有する色からなる画像であればどのようなものであってもよく、たとえばホワイト信号からなる画像等が挙げられる。 Here, the original image may be an image composed of any color system, for example, an image composed of RGB (red, green, blue) signals, or a CYMG (cyan, yellow, magenta, green) signal. The image which consists of may be sufficient. Further, the luminance approximate image can be obtained directly from the second image sensor, and may be any image as long as it is an image composed of a color that is not luminance information but has a brightness close to luminance information, For example, an image composed of a white signal can be used.
また、第2撮像手段は、第1撮像手段と同一の被写体を撮影し輝度近似信号からなる輝度近似画像を取得するものであればいずれの構成であってもよく、たとえば第1撮像手段が平面上に配列された複数の第1受光素子から構成されており、第2撮像手段が複数の第1受光素子の間に配列された、第1受光素子よりも受光面積の小さい複数の第2受光素子から構成されたものであってもよいし、第1撮像素子および第2撮像素子がそれぞれ独立したCCD等の撮像素子からなっていてもよい。 Further, the second imaging unit may have any configuration as long as it captures the same subject as the first imaging unit and acquires a luminance approximate image made up of luminance approximate signals. For example, the first imaging unit is a plane. A plurality of second light receiving elements each having a light receiving area smaller than that of the first light receiving elements, the second light receiving means being arranged between the plurality of first light receiving elements. It may be constituted by an element, or the first imaging element and the second imaging element may be constituted by independent imaging elements such as a CCD.
また、顔検出手段は、いかなる顔の検出方法を用いることができ、たとえば輝度近似画像上に設定画素数の枠からなるサブウィンドウを走査させ複数の部分画像を生成する部分画像生成手段と、部分画像生成手段により生成された複数の部分画像のうち顔である部分画像を検出する複数の弱判別器による複数の判別結果を用いて部分画像が顔であるか否かを判別する顔判別器とを備えたものであってもよい。 The face detection means can use any face detection method. For example, a partial image generation means for generating a plurality of partial images by scanning a sub-window having a set number of pixels on a luminance approximate image, and a partial image A face discriminator that discriminates whether or not a partial image is a face using a plurality of discrimination results by a plurality of weak discriminators that detect a partial image that is a face among a plurality of partial images generated by a generating unit; It may be provided.
このとき、複数の弱判別器は、どのような構成を有するものであってもよく、たとえば複数の弱判別器でカスケードを構成し、上流側の弱判別器が顔であると判別した部分画像について下流側の弱判別器が判別を行うものであってもよい。 At this time, the plurality of weak classifiers may have any configuration, for example, a partial image in which a plurality of weak classifiers constitute a cascade and the upstream weak classifier is determined to be a face. The weak discriminator on the downstream side may perform discrimination.
さらに、顔検出手段が、部分画像生成手段により生成された部分画像が顔であるか否かを判別し、顔の可能性のある部分画像を候補画像として検出する候補検出手段をさらに有し、顔判別器が、候補判別器により判別された部分画像について顔であるか否かを判別するものであってもよい。 Furthermore, the face detection means further includes candidate detection means for determining whether or not the partial image generated by the partial image generation means is a face, and detecting a partial image that may be a face as a candidate image, The face discriminator may discriminate whether or not the partial image discriminated by the candidate discriminator is a face.
本発明の顔検出方法およびこれを用いた撮影装置によれば、人物被写体からの入射光を色分解することにより、人物被写体の原画像と、人物被写体の輝度情報に近い明度を有する色からなる輝度近似画像とを取得し、取得した輝度近似画像から顔を検出することにより、原画像内の顔を検出することにより、人物被写体を撮影した際の顔を検出するとき、従来のように第1撮像手段により取得した原画像から輝度信号を抽出し顔検出を行うのではなく、第2撮像手段により直接取得した輝度近似画像を用いて顔検出を行うことができるため、顔検出のための信号処理の負担を軽減し顔検出速度を向上させることができる。 According to the face detection method of the present invention and the photographing apparatus using the face detection method, the incident light from the human subject is separated into colors, and thereby the original image of the human subject and the color having brightness close to the luminance information of the human subject are formed. When detecting a face when photographing a human subject by detecting a face in the original image by detecting a face from the acquired brightness approximate image and detecting a face from the acquired brightness approximate image. Instead of extracting the luminance signal from the original image acquired by the first imaging means and performing face detection, face detection can be performed using the luminance approximate image directly acquired by the second imaging means. The burden of signal processing can be reduced and the face detection speed can be improved.
なお、第1撮像手段が平面上に配列された複数の第1受光素子から構成されており、第2撮像手段が複数の第1受光素子の間にそれぞれ配列された複数の第2受光素子から構成されているものであるとき、取得する原画像の画質の劣化を起こさずに、原画像と輝度近似画像とを効率的に取得することができる。 The first imaging means is composed of a plurality of first light receiving elements arranged on a plane, and the second imaging means is composed of a plurality of second light receiving elements respectively arranged between the plurality of first light receiving elements. When configured, the original image and the luminance approximate image can be efficiently acquired without causing deterioration of the image quality of the original image to be acquired.
また、顔検出手段が、輝度近似画像上に設定画素数の枠からなるサブウィンドウを走査させ複数の部分画像を生成する部分画像生成手段と、部分画像生成手段により生成された複数の部分画像のうち顔である部分画像を検出する複数の弱判別器による複数の判別結果を用いて部分画像が顔であるか否かを判別する顔判別器とを備えたものであれば、精度良く効率的に顔の検出を行うことができる。 In addition, the face detection unit scans a sub-window having a set number of pixels on the luminance approximate image to generate a plurality of partial images, and among the plurality of partial images generated by the partial image generation unit If there is a face discriminator that discriminates whether or not a partial image is a face using a plurality of discrimination results by a plurality of weak discriminators that detect a partial image that is a face, it is efficient with high accuracy Face detection can be performed.
さらに、顔検出手段が、部分画像生成手段により生成された部分画像が顔であるか否かを判別し、顔である可能性のある部分画像を候補画像として検出する候補検出手段をさらに有し、顔判別器が、候補判別器により判別された部分画像について顔であるか否かを判別するものであれば、顔判別器が検出すべき部分画像の数を低減することができるため、判別作業の高速化を図ることができる。 Further, the face detection means further includes candidate detection means for determining whether or not the partial image generated by the partial image generation means is a face, and detecting a partial image that may be a face as a candidate image. If the face discriminator discriminates whether or not the partial image discriminated by the candidate discriminator is a face, the number of partial images to be detected by the face discriminator can be reduced. Work speed can be increased.
以下、図面を参照して本発明の撮影装置の実施の形態を詳細に説明する。図1は本発明の撮影装置の好ましい実施の形態を示すブロック図である。撮影装置1はたとえばデジタルカメラ等であって、人物被写体を撮影し原画像および輝度近似信号からなる輝度近似画像Pを取得する撮影手段2と、輝度近似画像から顔を検出する顔検出手段10とを備えている。そして、画像出力手段3は、輝度近似画像内で顔が検出された領域をRGB信号からなる画像内において認識可能な状態(ウィンドウ枠で囲う等)で液晶ディスプレイ等の表示部に出力するようになっている。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Embodiments of the photographing apparatus of the present invention will be described below in detail with reference to the drawings. FIG. 1 is a block diagram showing a preferred embodiment of the photographing apparatus of the present invention. The photographing
撮影手段2は、図2(a)に示すように、いわゆるハニカムプラス構造を有しており、複数の第1受光素子2aと、第1受光素子2aよりも受光面積の小さい複数の第2受光素子2bとを備えている。なお図2(a)は複数の第1受光素子2aは第1撮像手段として機能し、複数の第2受光素子2bは第2撮像手段として機能するものであって、同じ人物被写体を撮影するようになっている。ここで、複数の第1受光素子2aは、人物被写体からの入射光を色分解プリズムやカラーフィルタ等を用いて色分解することによりたとえばRGB信号やCYMG信号等からなる原画像を取得するものである。一方、複数の第2受光素子2bは、人物被写体からの入射光を色分解することにより入射する光のうち輝度近似信号であるホワイト信号を受光し輝度近似画像を取得するようになっている。つまり、撮影手段2は、同一の被写体についてそれぞれ異なる信号成分からなる2つの画像を取得するようになっている。
As shown in FIG. 2A, the
なお、撮影手段2の構造として、図2(b)に示すような第1受光素子2aと第1受光素子2aよりも受光面積の小さい第2受光素子2bとにより1つのハニカム形状を形成したいわゆるダブルハニカム構造を用いるようにしてもよい。この場合であっても、第1受光素子2aによりRGB信号やCYMG信号等からなる原画像が取得され、第2受光素子2bにより輝度近似信号からなる輝度近似画像が取得される。
In addition, as a structure of the photographing means 2, a so-called honeycomb shape is formed by a first
この輝度近似画像とは、輝度情報(Y信号)ではないが、第2受光素子から直接的に取得することができる輝度情報(Y信号)に近い信号からなる画像を意味し、たとえば上述したホワイト信号が挙げられる。このホワイト信号は図3(a)に示すように、波長帯域によらず輝度情報(Y信号)に比例して大きくなるものであって、図3(b)に示すように、RGBの各波長帯域に輝度情報(Y信号)の強度が依存するものとは異なる点に特徴がある。 This luminance approximate image means an image that is not luminance information (Y signal) but is composed of signals close to luminance information (Y signal) that can be obtained directly from the second light receiving element. Signal. As shown in FIG. 3A, the white signal increases in proportion to the luminance information (Y signal) regardless of the wavelength band. As shown in FIG. It is characterized in that it differs from that in which the intensity of luminance information (Y signal) depends on the band.
図1の顔検出手段10は、撮影手段2により取得された輝度近似画像にたとえばアダブースティングアルゴリズムによる顔検出処理を施すものである。ここで、図4は顔検出手段10の一例を示すブロック図であり、図4を参照して顔検出手段10について説明する。顔検出手段10は、輝度近似画像P上にサブウィンドウWを走査させることにより部分画像PPを生成する部分画像生成手段11と、部分画像生成手段11により生成された複数の部分画像PPにおいて、横顔である部分画像を検出する横顔検出手段20と、正面顔である部分画像を検出する正面顔検出手段30とを有している。
The
顔検出手段10は、第2撮像手段2bにより取得された輝度近似画像Pにアダブースティングアルゴリズム等による顔検出処理を施すものであって、輝度近似画像P上にサブウィンドウWを走査させることにより部分画像PPを生成する部分画像生成手段11と、部分画像生成手段11により生成された複数の部分画像PPにおいて、横顔である部分画像を検出する横顔検出手段20と、正面顔である部分画像を検出する正面顔検出手段30とを有している。
The face detection means 10 performs face detection processing such as an add boosting algorithm on the luminance approximate image P acquired by the second image pickup means 2b, and scans the subwindow W over the luminance approximate image P. A partial
部分画像生成手段11に入力される輝度近似画像Pは前処理手段10aにより前処理が施されている。前処理手段10aは、輝度近似画像Pを構成する画素データを一定間隔で間引きする機能を有している。これにより、輝度近似画像Pのデータ量を減少させ顔検出処理の高速化を図ることができる。さらに、前処理手段10aは、輝度近似画像Pに対し図5(A)〜(D)に示すように、輝度近似画像Pを多重解像度化して解像度の異なる複数の輝度近似画像P2、P3、P4を生成する機能を有している。さらに、前処理手段10aは、生成した複数の輝度近似画像Pに対して、局所的な領域におけるコントラストのばらつきを抑制し輝度近似画像Pの全領域においてコントラストを所定レベルに揃える正規化(以下、局所正規化という)・ガンマ変換を施す機能を有している。
The luminance approximate image P input to the partial
部分画像生成手段11は、図5(A)に示すように、設定された画素数(たとえば32画素×32画素)を有するサブウィンドウWを輝度近似画像P内において走査させ、サブウィンドウWにより囲まれた領域を切り出すことにより設定画素数からなる部分画像PPを生成するようになっている。
As shown in FIG. 5A, the partial
なお、部分画像生成手段11は、図5(B)〜(D)に示すように、生成された低解像度画像上においてサブウィンドウWを走査させたときの部分画像PPをも生成するようになっている。このように、低解像度画像からも部分画像PPを生成することにより、輝度近似画像PにおいてサブウィンドウW内に正面顔もしくは横顔が収まらなかった場合であっても、低解像度画像上においてはサブウィンドウW内に収めることが可能となり、検出を確実に行うことができる。
As shown in FIGS. 5B to 5D, the partial
図4の横顔検出手段20は、複数の部分画像PPの中から横顔である部分画像を検出するものであって、複数の部分画像PPについて横顔であるか否かを判別し、横顔である可能性のある部分画像PPを候補画像として判別する横顔候補判別手段21と、横顔候補判別手段21により検出された候補画像が正面顔であるか否かを判別する横顔判別手段22とを有している。
The
横顔候補判別手段21は、部分画像PPが横顔であるか否かの2値判別を行う機能を有し、図6に示すような複数の弱判別器を有する横顔候補判別器からなっている。横顔候補判別器21は、アダブースティングアルゴリズム(Adaboosting Algorithm)により学習されたものであって、複数の弱判別器CF1〜CFM(M:弱判別器の個数)を有している。各弱判別器CF1〜CFMはそれぞれ部分画像PPから特徴量xを抽出し、この特徴量xを用いて部分画像PPが顔であるか否かの判別を行う機能を有する。そして、横顔候補判別器21は弱判別器CF1〜CFMおける判別結果を用いて顔であるか否かの最終的な判別を行うようになっている。
The side face candidate discriminating means 21 has a function of performing binary discrimination as to whether or not the partial image PP is a side face, and includes a side face candidate discriminator having a plurality of weak discriminators as shown in FIG. The side
具体的には、図7に示すように各弱判別器CF1〜CFMは部分画像PP内の設定された座標P1a、P1b、P1cにおける輝度近似信号値を抽出する。さらに、部分画像PPの低解像度画像PP2内の設定された座標位置P2a、P2b、低解像度画像PP3内の設定された座標位置P3a、P3bにおける輝度近似信号値をそれぞれ抽出する。その後、上述した7個の座標P1a〜P3bの2つをペアとして組み合わせ、この組み合わせた輝度近似信号値の差分を特徴量xとする。各弱判別器CF1〜CFM毎にそれぞれ異なる特徴量が用いられるものであり、たとえば弱判別器CF1では座標P1a、P1cにおける輝度近似信号値の差分を特徴量として用い、弱判別器CF2では座標P2a、P2bにおける輝度近似信号値の差分を特徴量として用いるようになっている。
Specifically, each of the
なお、各弱判別器CF1〜CFMがそれぞれ特徴量xを抽出する場合について例示しているが、複数の部分画像PPについて上述した特徴量xを予め抽出しておき、各弱判別器CF1〜CFMに入力するようにしてもよい。 Note that although the case where each of the weak classifiers CF 1 ~CF M extracts characteristic amounts x, respectively, in advance extracts a feature x described above for a plurality of partial images PP, each of the weak classifiers CF it may be input to the 1 ~CF M.
各弱判別器CF1〜CFMは図8に示すようなヒストグラムを有しており、このヒストグラムに基づいて特徴量xの値に応じたスコアf1(x)〜fM(x)を出力する。さらに、各弱判別器CF1〜CFMは判別性能を示す信頼度β1〜βMを有している。各弱判別器CF1〜CFMは、スコアf1(x)〜fM(x)と信頼度β1〜βmとを用いて判定スコアβm・fm(x)を算出するようになっている。そして、各弱判別器CFmの判定スコアβm・fm(x)自体が設定しきい値Sref以上であるか否かを判断し、設定しきい値以上であるときに顔であると判別する(βm・fm(x)≧Sref)。
Each weak discriminator CF 1 to CF M has a histogram as shown in FIG. 8, and outputs scores f 1 (x) to f M (x) corresponding to the value of the feature quantity x based on this histogram. To do. Further, each of the
また、横顔候補判別器21の各弱判別器CF1〜CFMはカスケード構造を有しており、各弱判別器CF1〜CFMのすべてが顔であると判別した部分画像PPのみを候補画像CPとして出力するようになっている。つまり、弱判別器CFmにおいて顔であると判別した部分画像PPのみ下流側の弱判別器CFm+1による判別を行い、弱判別器CFmで非顔であると判別された部分画像PPは下流側の弱判別器CFm+1による判別は行わない。これにより、下流側の弱判別器において判別すべき部分画像PPの量を減らすことができるため、判別作業の高速化を図ることができる。
Further, each of the
なお、各弱判別器CF1〜CFMから出力された判定スコアS1〜SMをそれぞれ個別に設定しきい値Sref以上であるか否かを判断するのではなく、弱判別器CFmにおいて判別を行う際、弱判別器CFmの上流側の弱判別器CF1〜CFm−1での判定スコアの和Σr=1 mβr・frが設定しきい値S1ref以上であるか否かにより判別を行うようにしてもよい(Σr=1 mβr・fr(x)≧S1ref)。これにより、上流側の弱判別器による判定スコアを考慮した判定を行うことができるため、判定精度の向上を図ることができる。
Incidentally, each of the weak classifiers CF 1 ~CF M a
図4の横顔判別手段22は、画像内の顔の向き(角度)が0°の顔、すなわち正面顔を判別する0°横顔判別器22−1、30°の顔画像を判別する30°横顔判別器22−2等を備えたものであって、−90°〜+90°の範囲で30°ずつ回転角度の異なる7個の横顔判別器22−1〜22−7を有している。また、たとえば0°横顔判別器22−1は回転角度が0°を中心に−15°〜+15°の範囲内にある顔を判別できるようになっている。なお各横顔判別器22−1〜22−7は上述した横顔候補判別器21と同様にアダブースティングアルゴリズムを用いて学習された複数の弱判別器を有しており(図6参照)、横顔候補判別手段21と同様の判別手法により判別が行われるようになっている。
4 is a 0 ° side face discriminator 22-1 for discriminating a face whose orientation (angle) is 0 °, that is, a front face, and a 30 ° side face for discriminating a 30 ° face image. The apparatus includes a discriminator 22-2 and the like, and has seven side face discriminators 22-1 to 22-7 having different rotation angles by 30 ° in a range of −90 ° to + 90 °. For example, the 0 ° side face discriminator 22-1 can discriminate a face whose rotation angle is in the range of −15 ° to + 15 ° with 0 ° as the center. Each of the side face classifiers 22-1 to 22-7 has a plurality of weak classifiers learned using the Adaboosting algorithm in the same manner as the side
次に、正面顔検出手段30について説明する。正面顔検出手段30は、複数の部分画像PPの中から正面顔である部分画像PPを検出するものであって、複数の部分画像PPについて正面顔であるか否かを判別し、正面顔である可能性のある部分画像PPを候補画像CPとして判別する正面顔候補判別手段31と、正面顔候補判別手段31により検出された候補画像が正面顔であるか否かを判別する正面顔判別手段32とを有している。 Next, the front face detection means 30 will be described. The front face detection means 30 detects a partial image PP that is a front face from among the plurality of partial images PP, and determines whether or not the plurality of partial images PP are front faces. Front face candidate determining means 31 for determining a possible partial image PP as a candidate image CP, and front face determining means for determining whether or not the candidate image detected by the front face candidate determining means 31 is a front face. 32.
正面顔候補判別手段31は、部分画像PPが横顔であるか非顔かの2値判別を行う機能を有し、上記横顔候補検出器21と同様、アダブースティングアルゴリズムにより学習された複数の弱判別器を有する候補判別器からなっている(図6参照)。
The front face candidate discriminating means 31 has a function of performing binary discrimination of whether the partial image PP is a side face or a non-face, and, similar to the side
正面顔判別手段32は、画像の縦方向と顔の中心線との角度が0°の顔を判別する0°正面顔判別器32−1、30°の顔画像を判別する30°正面顔判別器32−2等を備えたものであって、30°〜330°の範囲で回転角度が30°ずつ異なる12個の正面顔判別器32−1〜30−12を有している。なお、たとえば0°正面顔判別器32−1は回転角度が0°を中心に−15°(=345°)〜+15°の範囲内にある顔を判別できるようになっている。そして、原画像と輝度近似画像とは同一の被写体を撮影するものであるため、原画像において輝度近似画像と同じ領域に顔が存在する。よって、顔検出手段10は輝度近似画像から顔を検出することにより、原画像内から顔を検出することができる。
The front face discrimination means 32 is a 0 ° front face discriminator 32-1, which discriminates a face whose angle between the vertical direction of the image and the face center line is 0 °, and a 30 ° front face discrimination which discriminates a 30 ° face image. Which includes twelve front face discriminators 32-1 to 30-12 whose rotation angles are different by 30 ° in the range of 30 ° to 330 °. For example, the 0 ° front face discriminator 32-1 can discriminate a face whose rotation angle is in the range of −15 ° (= 345 °) to + 15 ° with 0 ° as the center. Since the original image and the luminance approximate image are for photographing the same subject, a face exists in the same area as the luminance approximate image in the original image. Therefore, the
なお、複数の正面顔判別器32−1〜32−12は、上述した横顔候補判別手段21のように、それぞれブースティングアルゴリズムにより学習された複数の弱判別器を有しており(図6参照)、横顔候補判別手段21と同様の判別手法により判別が行われるようになっている。 The plurality of front face discriminators 32-1 to 32-12 each include a plurality of weak discriminators learned by a boosting algorithm, like the side face candidate discriminating means 21 described above (see FIG. 6). ), And the discrimination is performed by the same discrimination method as the side face candidate discrimination means 21.
ここで、上述した各候補判別器21、31および各顔判別器22、32において、弱判別器での判別に用いる特徴量として輝度近似画像から抽出した輝度近似信号(ホワイト信号)が用いられている。つまり従来の顔判別器のように輝度情報(Y信号)を用いて顔の判別を行うのではなく、RGB信号の中の輝度近似信号を用いて顔の判別を行うものである。従来のように、顔の判別に用いる信号として輝度情報を用いた場合、肌の色の違い等の個人差による顔検出のブレをなくすことができるが、RGB信号からなる画像から輝度情報を抽出する際には、輝度値Y=0.299R+0.587G+0.114Bという人間の比視感度に基づく変換式によりデータ変換しなければならない。
Here, in each of the candidate discriminators 21 and 31 and the
一方、上述したような第2撮像手段である第2受光素子2bから直接受光させることにより取得された輝度近似画像Pを用いて顔検出を行うことにより、従来の輝度情報を用いたときの検出性能をほぼ維持しつつ、RGB信号やCYMG信号から輝度情報への変換処理が不要となり、顔検出の高速化を図ることができる。
On the other hand, the detection using the conventional luminance information is performed by performing face detection using the luminance approximate image P acquired by directly receiving light from the second
ここで、図9は本発明の顔検出方法の好ましい実施の形態を示すフローチャートであり、図1から図9を参照して撮影装置1の動作例について説明する。まず、第1受光素子2aを用いて人物被写体を撮影し人物被写体のたとえばRGB信号等からなる原画像が取得されるとともに、第2受光素子2bを用いて人物被写体を撮影し人物被写体の輝度情報に近い明度を有する色からなる輝度近似画像が取得される(ステップST1)。その後、前処理手段10aにおいて、輝度近似画像Pに対する画素の間引き、規格化およびガンマ変換が行われる(ステップST2)。そして、部分画像生成手段11において、輝度近似画像P上をサブウィンドウWが一定の走査間隔で走査することにより複数の部分画像PPが生成される(ステップST3)。そして、顔である可能性のある候補画像CPが検出され(ステップST4)、さらに、候補画像CPが正面顔もしくは横顔であるか否かが横顔判別器22および正面顔判別器32により部分画像PPの輝度近似信号を用いて判別される(ステップST5)。そして、輝度近似画像の中から正面顔もしくは横顔からなる顔画像FPが判別されることにより、輝度近似画像の顔が検出された領域から原画像内の顔が検出される。
Here, FIG. 9 is a flowchart showing a preferred embodiment of the face detection method of the present invention, and an operation example of the photographing
上記実施の形態によれば、撮影条件の異なる複数の輝度近似画像に顔検出処理を施し、複数の輝度近似画像のいずれかから検出した顔に合わせて撮影条件を設定することにより、
本発明の撮影装置によれば、人物被写体を撮影しRGB信号からなる画像を取得する第1受光素子2a(第1撮像手段)と、人物被写体を撮影し輝度近似画像を取得する第2受光素子2b(第2撮像手段)と、輝度近似画像から顔を検出する顔検出手段10とを備えたことにより、人物被写体を撮影した際の顔を検出するとき、従来のようにRGB信号からなる原画像から輝度信号を抽出し顔検出を行うのではなく、第2受光素子2bから直接取得した輝度近似画像から直接顔検出を行うことができるため、顔検出のための信号処理の負担を軽減し顔検出速度を向上させることができる。
According to the above embodiment, by performing face detection processing on a plurality of luminance approximate images with different shooting conditions and setting the shooting conditions according to the face detected from any of the plurality of luminance approximate images,
According to the photographing apparatus of the present invention, the first
また、図2に示すように、第1受光素子2aおよび第2受光素子2bが、ハニカムプラス構造もしくはダブルハニカム構造を有しているとき、通常のCCD素子のように受光素子が水平および垂直方向に配列されている画素の一部を輝度近似信号を受光するように構成した場合に比べて取得する原画像の画質の劣化を起こさずに、原画像と輝度近似画像とを効率的に取得することができる。
In addition, as shown in FIG. 2, when the first
また、顔検出手段10が、輝度近似画像P上に設定画素数の枠からなるサブウィンドウを走査させ複数の部分画像を生成する部分画像生成手段11と、部分画像生成手段11により生成された複数の部分画像PPのうち顔である部分画像PPを検出する複数の弱判別器による複数の判別結果を用いて部分画像PPが顔であるか否かを判別する顔判別器とを備えたものであれば、精度良く効率的に顔の検出を行うことができる。
In addition, the
さらに、顔検出手段10が、部分画像生成手段11により生成された部分画像が顔であるか否かを判別し、顔である可能性のある部分画像PPを候補画像CPとして検出する候補検出手段をさらに有し、顔判別器22、32が、候補判別器21、31により判別された部分画像について顔であるか否かを判別するものであれば、顔判別器22、32が検出すべき部分画像PPの数を低減することができるため、判別作業の高速化を図ることができる。
Further, the
本発明の実施の形態は、上記実施の形態に限定されない。たとえば図2において、撮像手段2が第1受光素子2aおよび第2受光素子2bを有している場合について例示しているが、第1撮像手段および第2撮像手段毎がそれぞれ独立したCCD等の受光素子からなっていてもよいし、1つのCCD素子において原画像を受光する受光画素と輝度近似信号を受光する受光素子とを有するものであっても良い。また、上記実施の形態において、ブースティングアルゴリズムを用いて顔検出を行った場合について例示しているが、その他公知の顔検出に用いることができる。
The embodiment of the present invention is not limited to the above embodiment. For example, FIG. 2 illustrates the case where the image pickup means 2 includes the first
1 撮影装置
2a 第1受光素子(第1撮影手段)
2b 第2受光素子(第2撮影手段)
10 顔検出手段
11 部分画像生成手段
20 横顔検出手段
30 正面顔検出手段
CF1〜CFM 弱判別器
CP 候補画像
P 輝度近似画像
PP 部分画像
1 photographing
2b Second light receiving element (second photographing means)
10
Claims (6)
取得した前記輝度近似画像から顔を検出することにより、前記原画像内の顔を検出する
ことを特徴とする顔検出方法。 By color-separating incident light from a human subject, an original image of the human subject and a luminance approximate image composed of colors having brightness close to luminance information of the human subject are obtained.
A face detection method, wherein a face in the original image is detected by detecting a face from the acquired luminance approximate image.
前記人物被写体からの入射光を色分解することにより該人物被写体の輝度情報に近い明度を有する色からなる輝度近似画像を取得する第2撮像手段と、
該第2撮像手段により取得された前記輝度近似画像から顔を検出することにより、前記第1撮像手段により取得された前記原画像内の顔を検出する顔検出手段と
を備えたことを特徴とする撮影装置。 First imaging means for acquiring an original image of the human subject by color-separating incident light from the human subject;
A second imaging unit that obtains a luminance approximate image composed of colors having lightness close to luminance information of the human subject by color-separating incident light from the human subject;
And a face detection means for detecting a face in the original image acquired by the first imaging means by detecting a face from the luminance approximate image acquired by the second imaging means. Shooting device to do.
前記輝度近似画像上に設定画素数の枠からなるサブウィンドウを走査させ複数の部分画像を生成する部分画像生成手段と、
該部分画像生成手段により生成された前記複数の部分画像のうち顔である該部分画像を検出する顔検出手段と
を有し、
該顔検出手段が、複数の弱判別器による複数の判別結果を用いて前記部分画像が顔であるか否かを判別する顔判別器を備えたものであることを特徴とする請求項2または3項記載の撮影装置。 The face detection means is
A partial image generating means for generating a plurality of partial images by scanning a sub-window having a frame of a set number of pixels on the luminance approximate image;
Face detection means for detecting the partial image that is a face among the plurality of partial images generated by the partial image generation means;
The face detection means comprises a face discriminator that discriminates whether or not the partial image is a face using a plurality of discrimination results by a plurality of weak discriminators. The imaging device according to Item 3.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2006080262A JP2007257253A (en) | 2006-03-23 | 2006-03-23 | Face detection method and photographic apparatus using the method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2006080262A JP2007257253A (en) | 2006-03-23 | 2006-03-23 | Face detection method and photographic apparatus using the method |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2007257253A true JP2007257253A (en) | 2007-10-04 |
Family
ID=38631447
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2006080262A Withdrawn JP2007257253A (en) | 2006-03-23 | 2006-03-23 | Face detection method and photographic apparatus using the method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2007257253A (en) |
-
2006
- 2006-03-23 JP JP2006080262A patent/JP2007257253A/en not_active Withdrawn
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8744145B2 (en) | Real-time face tracking in a digital image acquisition device | |
US8605955B2 (en) | Methods and apparatuses for half-face detection | |
JP2007264742A (en) | Method for detecting face and imaging device using it | |
US8050465B2 (en) | Real-time face tracking in a digital image acquisition device | |
US8170294B2 (en) | Method of detecting redeye in a digital image | |
US8861806B2 (en) | Real-time face tracking with reference images | |
US8233094B2 (en) | Methods, systems and apparatuses for motion detection using auto-focus statistics | |
JP2011076316A (en) | Device, method and program for crowd watching | |
US9147115B2 (en) | Method and device for detecting an object in an image | |
JP2009123081A (en) | Face detection method and photographing apparatus | |
US7835552B2 (en) | Image capturing apparatus and face area extraction method | |
JP4782600B2 (en) | Face detection method and photographing apparatus using the same | |
JP2011165204A (en) | Face detection method and photographing device using the same | |
JP2007257253A (en) | Face detection method and photographic apparatus using the method | |
JP2007249525A (en) | Imaging device, and face area extraction method | |
IES84624Y1 (en) | Real-time face tracking in a digital image acquisition device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A300 | Application deemed to be withdrawn because no request for examination was validly filed |
Free format text: JAPANESE INTERMEDIATE CODE: A300 Effective date: 20090602 |