JP4860458B2 - Image evaluation apparatus and method, and program - Google Patents
Image evaluation apparatus and method, and program Download PDFInfo
- Publication number
- JP4860458B2 JP4860458B2 JP2006346895A JP2006346895A JP4860458B2 JP 4860458 B2 JP4860458 B2 JP 4860458B2 JP 2006346895 A JP2006346895 A JP 2006346895A JP 2006346895 A JP2006346895 A JP 2006346895A JP 4860458 B2 JP4860458 B2 JP 4860458B2
- Authority
- JP
- Japan
- Prior art keywords
- face
- image
- weighting
- weighting factor
- 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.)
- Active
Links
Images
Landscapes
- Image Processing (AREA)
- Image Analysis (AREA)
Description
本発明は、画像に含まれる顔を用いて画像の評価を行う画像評価装置および方法並びに画像評価方法をコンピュータに実行させるためのプログラムに関するものである。 The present invention relates to an image evaluation apparatus and method for evaluating an image using a face included in the image, and a program for causing a computer to execute the image evaluation method.
近年、デジタルカメラの普及と画像を保存しておくための記録媒体の容量が飛躍的に大きくなったことにより、ユーザは多くの画像を1つの媒体内に保持することが可能になってきている。その一方で、プリント等の処理をすべき画像を膨大な画像の中から選ぶという手間が生じており、効率的に画像を選択するために、画像を評価することにより、最終的にユーザがプリントする画像として判断する前にある程度の条件で画像を絞り込む機能や、ユーザの嗜好に合わせてプリントに適した画像を選択する機能が求められている。 In recent years, the spread of digital cameras and the increase in the capacity of recording media for storing images have made it possible for users to hold many images in one medium. . On the other hand, there is a trouble of selecting an image to be processed such as printing from a large number of images, and in order to select an image efficiently, the user finally prints by evaluating the image. There is a demand for a function of narrowing down an image under a certain condition before determining it as an image to be printed, and a function of selecting an image suitable for printing in accordance with user preferences.
例えば、特許文献1には、画像の明るさ・加速度センサ・AF評価のいずれかを基準に画像を評価し、評価結果を用いてプリントに不適切な写真を自動的に省く手法が開示されている。
For example,
また、特許文献2には、画像に含まれる人物の顔の向きを判定し、判定結果に基づいて画像の評価値を算出し、算出した評価値に基づいて複数の画像から所望の画像を選択する手法が開示されている。
In
さらに、特許文献3には、画像において顔が占める割合、目の開き具合、顔の向き、ピント、ブレおよび明るさ等の複数の評価項目を総合した評価結果を用いて画像を評価する手法が開示されている。
上述したように画像に含まれる顔に基づいて画像の評価を行う手法は各種提案されている。しかしながら、上記特許文献1〜3に記載された手法は、評価項目毎の評価値を単純に算出することにより画像の評価を行っているため、実際に画像を見た者の主観的な評価を必ずしも反映したものとはならず、画像を見た者の評価と算出した評価とが異なるものとなってしまう場合がある。
As described above, various methods for evaluating an image based on a face included in the image have been proposed. However, since the methods described in
本発明は上記事情に鑑みなされたものであり、画像に含まれる顔の情報を用いて、より精度良く画像の評価を行うことを目的とする。 The present invention has been made in view of the above circumstances, and an object of the present invention is to evaluate an image with higher accuracy by using face information included in the image.
本発明による画像評価装置は、少なくとも1つの顔を含む画像から該顔のサイズおよび位置の情報を取得する情報取得手段と、
前記顔のサイズおよび位置の情報に基づいて統計的に前記画像の評価結果を表す評価値を算出する評価値算出手段とを備えたことを特徴とするものである。
An image evaluation apparatus according to the present invention includes an information acquisition unit that acquires information on the size and position of a face from an image including at least one face;
Evaluation value calculation means for calculating an evaluation value that statistically represents the evaluation result of the image based on the face size and position information is provided.
具体的には、前記評価値算出手段を、各種顔のサイズおよび位置に応じてあらかじめ決定された第1の重みづけ関数を参照し、前記顔のサイズおよび位置の情報に応じて前記第1の重みづけ関数から求めた第1の重み係数を前記評価値として算出する手段とすればよい。 Specifically, the evaluation value calculation means refers to a first weighting function determined in advance according to the size and position of various faces, and the first value function according to information on the size and position of the face. What is necessary is just to use the 1st weighting coefficient calculated | required from the weighting function as said evaluation value.
「評価値」とは、S/N比や解像度等の画像から定量的に算出することが可能な値ではなく、画像の評価を欲するユーザの可能評価レベルと相関を持つように算出された予測値を意味する。 The “evaluation value” is not a value that can be quantitatively calculated from an image such as an S / N ratio or resolution, but a prediction calculated so as to correlate with a possible evaluation level of a user who wants to evaluate the image. Mean value.
ここで、「統計的」とは、評価値を算出するための重みづけ関数を求めるに際し、いくつかの仮説に基づいて演繹的に求めるのではなく、多数のサンプル画像の中から選択された好ましいとされる画像を正解データとして、帰納的に求めることを意味する。なお、正解データはどのように選択してもよいが、被験者が実際に選択した正解データを用いることが好ましい。また、重みづけ関数を求めるためのサンプル画像数は、300以上、好ましくは1000以上あることが好ましい。 Here, “statistical” is preferably selected from a large number of sample images, rather than a priori based on several hypotheses when calculating a weighting function for calculating an evaluation value. This means that the image taken as the correct answer data is obtained inductively. The correct data may be selected in any way, but it is preferable to use correct data actually selected by the subject. The number of sample images for obtaining the weighting function is 300 or more, preferably 1000 or more.
なお、本発明による画像評価装置においては、前記情報取得手段を、前記顔の数の情報をさらに取得する手段とし、
前記評価値算出手段を、さらに前記顔の数の情報に基づいて前記評価値を算出する手段としてもよい。
In the image evaluation apparatus according to the present invention, the information acquisition means is means for further acquiring information on the number of faces.
The evaluation value calculation unit may be a unit that calculates the evaluation value based on information on the number of faces.
この場合において、前記評価値算出手段を、各種顔の数に応じてあらかじめ決定された第2の重みづけ関数を参照し、前記顔の数の情報に応じて前記第2の重みづけ関数から第2の重み係数を求め、個々の顔について前記第1の重み係数を前記第2の重み係数により重みづけすることにより該個々の顔についての評価値である仮の評価値を算出し、すべての前記顔について算出した仮の評価値を加算することにより前記評価値を算出する手段としてもよい。 In this case, the evaluation value calculation means refers to a second weighting function determined in advance according to the number of various faces, and from the second weighting function according to the information on the number of faces. And calculating a temporary evaluation value that is an evaluation value for the individual face by weighting the first weighting coefficient for each face with the second weighting coefficient. The temporary evaluation value calculated for the face may be added to calculate the evaluation value.
また、前記評価値算出手段を、各種顔のサイズおよび数に応じてあらかじめ決定された第3の重みづけ関数を参照し、前記顔の数の情報および前記顔のサイズの情報に応じて前記第3の重みづけ関数から第3の重み係数を求め、個々の顔について前記第1の重み係数を前記第3の重み係数により重みづけすることにより該個々の顔についての評価値である仮の評価値を算出し、すべての前記顔について算出した仮の評価値を加算することにより前記評価値を算出する手段としてもよい。 Further, the evaluation value calculation means refers to a third weighting function determined in advance according to the size and number of various faces, and determines the first value according to the face number information and the face size information. A third weighting factor is obtained from the weighting function of 3, and the first weighting factor is weighted with respect to the individual face by the third weighting factor, thereby providing a temporary evaluation that is an evaluation value for the individual face. The evaluation value may be calculated by calculating a value and adding the temporary evaluation values calculated for all the faces.
また、本発明による画像評価装置においては、前記情報取得手段を、前記画像に含まれる顔の前記画像の最も中心に位置する顔からの距離の情報を取得する手段とし、
前記評価値算出手段を、さらに前記距離の情報に基づいて前記評価値を算出する手段としてもよい。
Further, in the image evaluation apparatus according to the present invention, the information acquisition unit is a unit that acquires information on a distance from the face located at the center of the image of the face included in the image,
The evaluation value calculation unit may be a unit that calculates the evaluation value based on the distance information.
この場合において、前記評価値算出手段を、画像の最も中心に位置する顔からの距離に応じてあらかじめ決定された第4の重みづけ関数を参照し、前記距離の情報に応じて前記第4の重みづけ関数から第4の重み係数を求め、前記画像の中心に最も近い顔からの距離に応じて前記第1の重み係数または前記仮の評価値を重みづけし、重みづけられた前記第1の重み係数を前記評価値として算出する、または前記すべての顔について算出した前記重みづけられた仮の評価値を加算することにより前記評価値を算出する手段としてもよい。 In this case, the evaluation value calculation means refers to a fourth weighting function determined in advance according to the distance from the face located at the center of the image, and determines the fourth weighting function according to the distance information. A fourth weighting factor is obtained from a weighting function, the first weighting factor or the temporary evaluation value is weighted according to the distance from the face closest to the center of the image, and the weighted first The weight coefficient may be calculated as the evaluation value, or the evaluation value may be calculated by adding the weighted temporary evaluation values calculated for all the faces.
また、本発明による画像評価装置においては、前記情報取得手段を、前記顔の向きの情報をさらに取得する手段とし、
前記評価値算出手段を、さらに前記顔の向きの情報に基づいて前記評価値を算出する手段としてもよい。
In the image evaluation apparatus according to the present invention, the information acquisition unit is a unit that further acquires information on the face orientation,
The evaluation value calculation means may be a means for calculating the evaluation value based on the information on the face orientation.
この場合において、前記評価値算出手段を、各種顔の向きに応じてあらかじめ決定された第5の重みづけ関数を参照し、前記顔の向きの情報に応じて前記第5の重みづけ関数から第5の重み係数を求め、前記第1の重み係数、前記仮の評価値または前記第4の重み係数により重みづけられた第1の重み係数を前記第5の重み係数により重みづけし、重みづけられた前記第1の重み係数または前記第4の重み係数により重みづけられた前記第1の重み係数を前記評価値として算出する、または前記すべての顔について算出した前記重みづけられた仮の評価値を加算することにより前記評価値を算出する手段としてもよい。 In this case, the evaluation value calculation means refers to a fifth weighting function determined in advance according to various face orientations, and from the fifth weighting function according to the information on the face orientation. 5 weighting factors, weighting the first weighting factor, the temporary evaluation value, or the first weighting factor weighted by the fourth weighting factor with the fifth weighting factor, and weighting Calculating the first weighting factor weighted by the first weighting factor or the fourth weighting factor as the evaluation value, or the weighted temporary evaluation calculated for all the faces The evaluation value may be calculated by adding the values.
本発明による画像評価方法は、少なくとも1つの顔を含む画像から該顔のサイズおよび位置の情報を取得し、
前記顔のサイズおよび位置の情報に基づいて統計的に前記画像の評価結果を表す評価値を算出することを特徴とするものである。
An image evaluation method according to the present invention obtains information on the size and position of a face from an image including at least one face,
An evaluation value that statistically represents the evaluation result of the image is calculated based on the information on the size and position of the face.
なお、本発明による画像評価方法をコンピュータに実行させるためのプログラムとして提供してもよい。 The image evaluation method according to the present invention may be provided as a program for causing a computer to execute the image evaluation method.
本発明によれば、少なくとも1つの顔を含む画像から顔のサイズおよび位置の情報が取得され、顔のサイズおよび位置の情報に基づいて統計的に画像の評価結果を表す評価値が算出される。このため、評価値に画像を見る者の平均的な趣向を反映させることができ、これにより、より精度良く画像を評価することができる。 According to the present invention, face size and position information is acquired from an image including at least one face, and an evaluation value that statistically represents an image evaluation result is calculated based on the face size and position information. . For this reason, it is possible to reflect the average preference of the person who views the image in the evaluation value, and thereby the image can be evaluated with higher accuracy.
また、評価値に基づいて複数の画像から画像を選択するようにすれば、画像を見る者の平均的な趣向を反映させてより適切に画像を選択することができる。 Further, if an image is selected from a plurality of images based on the evaluation value, the image can be selected more appropriately while reflecting the average preference of the viewer of the image.
また、顔の数の情報をさらに取得し、さらに顔の数の情報に基づいて評価値を算出することにより、さらに精度良く画像を評価することができる。 Further, by acquiring more information on the number of faces and calculating an evaluation value based on the information on the number of faces, the image can be evaluated with higher accuracy.
また、画像に含まれる顔の最も中心に位置する顔からの距離の情報をさらに取得し、さらに距離の情報に基づいて評価値を算出することにより、さらに精度良く画像を評価することができる。 Further, by further acquiring distance information from the face located at the center of the face included in the image and further calculating an evaluation value based on the distance information, the image can be evaluated with higher accuracy.
また、顔の向きの情報をさらに取得し、さらに顔の向きの情報に基づいて評価値を算出することにより、さらに精度良く画像を評価することができる。 Further, by further acquiring face orientation information and calculating an evaluation value based on the face orientation information, the image can be evaluated with higher accuracy.
以下、図面を参照して本発明の実施形態について説明する。図1は本発明の実施形態による画像評価装置の構成を示す概略ブロック図である。図1に示すように、本実施形態による画像評価装置1は、画像データの記録制御および表示制御等の各種制御を行うとともに、装置1を構成する各部の制御を行うCPU12と、CPU12を動作させるプログラム、画像を閲覧するためのビューアソフトおよび各種定数が記録されているROMおよびCPU12が処理を実行する際の作業領域となるRAMにより構成されるシステムメモリ14と、種々の指示を装置1に対して行うためのキーボードおよびマウス等からなる入力部16と、各種表示を行う液晶モニタ等からなる表示部18とを備える。
Hereinafter, embodiments of the present invention will be described with reference to the drawings. FIG. 1 is a schematic block diagram showing the configuration of an image evaluation apparatus according to an embodiment of the present invention. As shown in FIG. 1, the
また、画像評価装置1は、画像データを記録したメモリカード2から画像データを読み出したり、メモリカード2に画像データを記録したりするためのカードスロット20と、画像データをJPEGに代表される手法で圧縮したり、圧縮した画像データを解凍する圧縮解凍部22と、画像データやCPU12が実行する各種プログラム、後述するように統計的に求めた重みづけテーブル等を記録するハードディスク24と、システムメモリ14、カードスロット20およびハードディスク24を制御するメモリ制御部26と、表示部18の表示を制御する表示制御部28とを備える。
The
また、画像評価装置1は、画像から顔についての情報を取得する情報取得部30と、情報取得部30が取得した情報に基づいて画像の評価結果を表す評価値を算出する評価値算出部32とを備える。
The
以下、情報取得部30および評価値算出部32の機能について、本実施形態において行われる処理と併せて説明する。なお、以降の説明においては、画像はメモリカード2から読み出されてハードディスク24に保存されているものとする。
Hereinafter, functions of the
図2は本発明の第1の実施形態において行われる画像評価処理のフローチャートである。ここで、第1の実施形態においては、顔のサイズおよび位置の情報に基づいて評価値を算出するものである。ユーザが入力部16から画像の評価開始の指示を行うことによりCPU12が処理を開始し、まずハードディスク24から画像を読み出し(ステップST1)、評価値の初期値を0に設定する(評価値=0、ステップST2)。次いで、情報取得部30が画像から人物の顔領域を検出する(ステップST3)。具体的には、例えば画像における肌色を有しかつ顔の輪郭形状を囲む矩形の領域を顔領域として検出する。なお、顔の輪郭形状をなす領域を顔領域として検出してもよい。また、顔領域を検出する手法はこれに限定されるものではない。ここで、顔が複数含まれている場合にはすべての顔領域を検出する。
FIG. 2 is a flowchart of the image evaluation process performed in the first embodiment of the present invention. Here, in the first embodiment, the evaluation value is calculated based on the face size and position information. When the user instructs to start image evaluation from the
次いで情報取得部30が、画像に顔領域が含まれるか否かを判定し(ステップST4)、ステップST4が否定されると処理を終了する。ステップST4が肯定されると、検出した顔領域から画像に含まれる顔のサイズおよび位置の情報を取得する(ステップST5)。なお、顔のサイズとしては、顔領域内の画素数や顔領域の画像全体に対する割合を用いることができる。
Next, the
顔のサイズの情報としては、顔領域のサイズを大中小の3段階で表したものを使用する。具体的には、あらかじめ2つのしきい値Th1,Th2(Th1<Th2)を用意しておき、顔領域のサイズ≦Th1の場合に顔のサイズ=小とし、Th1<顔領域のサイズ≦Th2の場合に顔のサイズ=中とし、Th2<顔領域のサイズの場合に顔のサイズ=大とする。 As the face size information, information representing the size of the face area in three levels of large, medium and small is used. Specifically, two threshold values Th1 and Th2 (Th1 <Th2) are prepared in advance. When face area size ≦ Th1, the face size = small, and Th1 <face area size ≦ Th2. Face size = medium, and if Th2 <face area size, face size = large.
一方、顔の位置の情報としては、顔領域の中心の位置(例えば顔領域が矩形の場合、対角線の交点)の座標値の画像の横および縦方向の長さに対する割合を百分率にて表した値を使用する。なお、座標は画像を横長となるように配置した場合の横方向をx軸、縦方向をy軸とする。ここで、画像のx方向の長さが100、y方向の長さが50であり、顔領域の中心の位置の座標が(30,25)であったとすると、顔の位置の情報は(30,50)となる。 On the other hand, as the position information of the face, the ratio of the coordinate value of the center position of the face area (for example, the intersection of diagonal lines when the face area is rectangular) to the horizontal and vertical length of the image is expressed as a percentage. Use the value. In the coordinate system, the horizontal direction when the image is arranged in the horizontal direction is the x axis, and the vertical direction is the y axis. Here, assuming that the length of the image in the x direction is 100, the length in the y direction is 50, and the coordinates of the position of the center of the face area are (30, 25), the face position information is (30 , 50).
ここで、第1の実施形態においては、ハードディスクに顔のサイズおよび位置に応じてあらかじめ決定された重みづけテーブルが保存されている。図3および図4は顔のサイズおよび位置についての重みづけテーブルを示す図である。なお、重みづけテーブルLUT1〜LUT3、LUT11〜LUT13は、複数の被験者に対して、各種顔のサイズおよび位置を有する多数のサンプル画像から、各被験者が好ましいと思うサンプル画像を選択させるテストを行わせた結果に基づいて決定されたものであり、各サンプル画像を選択した被験者数の全被験者数に対する割合を重み係数としている。また、重みづけテーブルLUT1〜LUT3、LUT11〜LUT13においては、最も多くの被験者が選択した画像についての重み係数が1となるように重み係数を規格化している。また、図3に示すように重みづけテーブルLUT1〜LUT3は、顔のサイズが大中小のそれぞれについて横軸に縦方向(y方向)の位置の情報を、縦軸に重み係数をプロットしたものである。また、図4に示すように重みづけテーブルLUT11〜LUT13は、顔のサイズが大中小のそれぞれについて横軸に横方向(x方向)の位置の情報を、縦軸に重み係数をプロットしたものである。 Here, in the first embodiment, a weighting table determined in advance according to the size and position of the face is stored in the hard disk. FIG. 3 and FIG. 4 are diagrams showing weighting tables for face size and position. Note that the weighting tables LUT1 to LUT3 and LUT11 to LUT13 allow a plurality of subjects to perform a test for selecting a sample image that each subject considers preferable from a large number of sample images having various face sizes and positions. The ratio of the number of subjects who selected each sample image to the total number of subjects is used as a weighting factor. Further, in the weighting tables LUT1 to LUT3 and LUT11 to LUT13, the weighting coefficients are standardized so that the weighting coefficients for images selected by the most subjects are 1. Further, as shown in FIG. 3, the weighting tables LUT1 to LUT3 are obtained by plotting the position information in the vertical direction (y direction) on the horizontal axis and the weighting coefficient on the vertical axis for each of the large, medium, and small face sizes. is there. Further, as shown in FIG. 4, the weighting tables LUT11 to LUT13 are obtained by plotting horizontal (x-direction) position information on the horizontal axis and weighting factors on the vertical axis for each of large, medium, and small face sizes. is there.
そして、評価値算出部32が、重みづけテーブルLUT1〜LUT3,LUT11〜LUT13から顔のサイズに応じた重みづけテーブルを選択する(ステップST6)。
Then, the evaluation
図5は重みづけテーブル選択処理のフローチャートである。評価値算出部32は、情報取得部30が取得した顔のサイズの情報を取得し(ステップST21)、顔のサイズを判断する(ステップST22)。そして、顔のサイズ=大の場合には顔のサイズ大用の重みづけテーブルLUT1,LUT11をハードディスク24から読み出し(ステップST23)、処理を終了する。また、顔のサイズ=中の場合には顔のサイズ中用の重みづけテーブルLUT2,LUT12をハードディスク24から読み出し(ステップST24)、処理を終了する。さらに、顔のサイズ=小の場合には顔のサイズ小用の重みづけテーブルLUT3,LUT13をハードディスク24から読み出し(ステップST25)、処理を終了する。
FIG. 5 is a flowchart of the weighting table selection process. The evaluation
次いで、評価値算出部32は、選択した重みづけテーブルを参照して重み係数を取得する(ステップST7)。なお、第1の実施形態においては、x方向およびy方向についての2つの重みづけテーブルが選択されるため、2つの重み係数が取得される。そして、重み係数を加算することにより画像の仮の評価値を算出し(ステップST8)、仮の評価値を現在の評価値に加算して加算結果を新たな評価値とする(ステップST9)。そして、処理対象の画像に他の顔領域が含まれるか否かを判定し(ステップST10)、ステップST10が否定されると処理を終了する。ステップST10が肯定されると、処理の対象を次の顔領域に設定して(ステップST11)、ステップST5に戻り、ステップST5以降の処理を繰り返す。
Next, the evaluation
これにより、画像に顔領域が1つのみ含まれる場合には、ステップST9において算出した新たな評価値が最終的な評価値として算出される。また、画像に複数の顔領域が含まれる場合には、各顔領域について算出した仮の評価値を加算することにより最終的な評価値が算出される。 Thereby, when the image includes only one face region, the new evaluation value calculated in step ST9 is calculated as the final evaluation value. When a plurality of face areas are included in the image, a final evaluation value is calculated by adding the temporary evaluation values calculated for each face area.
このように第1の実施形態によれば、画像から顔のサイズおよび位置の情報を取得し、顔のサイズおよび位置の情報に基づいて統計的に画像の評価結果を表す評価値を算出するようにしたため、評価値に画像を見る者の平均的な趣向を反映させることができ、これにより、より精度良く画像を評価することができる。 As described above, according to the first embodiment, face size and position information is acquired from an image, and an evaluation value that statistically represents an image evaluation result is calculated based on the face size and position information. Therefore, it is possible to reflect the average preference of the person who views the image in the evaluation value, and thereby it is possible to evaluate the image with higher accuracy.
なお、上記第1の実施形態においては、情報取得部30が顔のサイズの情報として、大中小の3通りの情報を取得しているが、顔領域内の画素数や顔領域の画像全体に対する割合等をそのまま顔のサイズの情報として用いてもよい。この場合、評価値算出部32が重みづけテーブルを選択する際に、顔のサイズの情報と上記しきい値Th1,Th2を用いて、顔のサイズの大中小を判断することとなる。また、この場合、顔のサイズの情報を用いて重みづけテーブルを線形補間して求めるようにしてもよい。例えば、顔のサイズが顔のサイズ大と顔のサイズ中との間のサイズである場合には、顔のサイズ大用の重みづけテーブルLUT1,LUT11と顔のサイズ中用の重みづけテーブルLUT2,LUT12とを線形補間して新たな重みづけテーブルを求め、これを用いて重み係数を求めるようにしてもよい。
In the first embodiment, the
次いで、本発明の第2の実施形態について説明する。図6は本発明の第2の実施形態において行われる画像評価処理のフローチャートである。ここで、第2の実施形態においては、顔のサイズおよび位置の情報に加えて顔の向きの情報にも基づいて評価値を算出するものである。ユーザが入力部16から画像の評価開始の指示を行うことによりCPU12が処理を開始し、まずハードディスク24から画像を読み出し(ステップST31)、評価値の初期値=0に設定する(ステップST32)。次いで、情報取得部30が画像から人物の顔領域を検出する(ステップST33)。
Next, a second embodiment of the present invention will be described. FIG. 6 is a flowchart of an image evaluation process performed in the second embodiment of the present invention. Here, in the second embodiment, the evaluation value is calculated based on the face orientation information in addition to the face size and position information. When the user gives an instruction to start image evaluation from the
次いで情報取得部30が、画像に顔領域が含まれるか否かを判定し(ステップST34)、ステップST34が否定されると処理を終了する。ステップST34が肯定されると、検出した顔領域から画像に含まれる顔のサイズおよび位置の情報、並びに顔の向きの情報を取得する(ステップST35)。ここで、顔の向きの情報とは顔領域に含まれる顔の向きが正面または横であることを表す情報である。なお、顔の向きは検出した顔からさらに目を検出し、検出した目が2つある場合には正面、1つの場合には横向きであるとすればよい。また、顔領域から顔の向きを表す特徴量を求め、その特徴量を用いて顔の向きが正面か横かを決定するようにしてもよい。
Next, the
そして、評価値算出部32が、重みづけテーブルLUT1〜LUT3,LUT11〜LUT13から顔のサイズに応じた重みづけテーブルを選択する(ステップST36)。次いで、評価値算出部32は、選択した重みづけテーブルを参照して、顔のサイズおよび位置に応じた重み係数を取得する(ステップST37)。なお、第2の実施形態においても、x方向およびy方向についての2つの重みづけテーブルが選択されるため、2つの重み係数が取得される。
Then, the evaluation
さらに、評価値算出部32は、顔の向きに応じた重み係数を取得する(ステップST38)。ここで、ハードディスク24には、顔の向きに応じた重み係数を求めるための関数が保存されている。この関数は、顔の向きの情報が正面である場合に重み係数=1を、横向きである場合に重み係数=0.5の値を与えるものである。
Furthermore, the evaluation
そして、顔のサイズおよび位置に応じた重み係数を加算し、これに顔の向きに応じた重み係数を乗算することにより画像の仮の評価値を算出し(ステップST39)、仮の評価値を現在の評価値に加算して加算結果を新たな評価値とする(ステップST40)。そして、処理対象の画像に他の顔領域が含まれるか否かを判定し(ステップST41)、ステップST41が否定されると処理を終了する。ステップST41が肯定されると、処理の対象を次の顔領域に設定して(ステップST42)、ステップST35に戻り、ステップST35以降の処理を繰り返す。 Then, a weighting coefficient corresponding to the size and position of the face is added, and a temporary evaluation value of the image is calculated by multiplying this by a weighting coefficient corresponding to the orientation of the face (step ST39). The result is added to the current evaluation value, and the addition result is used as a new evaluation value (step ST40). Then, it is determined whether or not another face area is included in the processing target image (step ST41), and if step ST41 is negative, the process ends. When step ST41 is affirmed, the process target is set to the next face area (step ST42), the process returns to step ST35, and the processes after step ST35 are repeated.
これにより、画像に顔領域が1つのみ含まれる場合には、ステップST40において算出した新たな評価値が最終的な評価値として算出される。また、画像に複数の顔領域が含まれる場合には、各顔領域について算出した仮の評価値を加算することにより最終的な評価値が算出される。 Thereby, when the image includes only one face area, the new evaluation value calculated in step ST40 is calculated as the final evaluation value. When a plurality of face areas are included in the image, a final evaluation value is calculated by adding the temporary evaluation values calculated for each face area.
このように第2の実施形態によれば、第1の実施形態に加えて、さらに顔の向きの情報をも用いて画像の評価結果を表す評価値を算出するようにしたため、評価値に画像を見る者の平均的な趣向を反映させることができ、これにより、より精度良く画像を評価することができる。 As described above, according to the second embodiment, in addition to the first embodiment, the evaluation value representing the evaluation result of the image is further calculated using the face orientation information. It is possible to reflect the average taste of the viewer, and thereby it is possible to evaluate the image with higher accuracy.
なお、上記第2の実施形態においては顔の向きに応じた重み係数を、顔のサイズおよび位置に応じた重み係数に乗算することにより仮の評価値を算出しているが、顔の向きに応じた重み係数を、顔のサイズおよび位置に応じた重み係数に加算することにより仮の評価値を算出するようにしてもよい。 In the second embodiment, the temporary evaluation value is calculated by multiplying the weighting factor according to the face direction by the weighting factor according to the face size and position. The provisional evaluation value may be calculated by adding the corresponding weight coefficient to the weight coefficient according to the face size and position.
次いで、本発明の第3の実施形態について説明する。図7は本発明の第3の実施形態において行われる画像評価処理のフローチャートである。ここで、第3の実施形態においては、顔のサイズおよび位置の情報に加えて顔の数の情報にも基づいて評価値を算出するものである。ユーザが入力部16から画像の評価開始の指示を行うことによりCPU12が処理を開始し、まずハードディスク24から画像を読み出し(ステップST51)、評価値の初期値=0に設定する(ステップST52)。次いで、情報取得部30が画像から人物の顔領域を検出する(ステップST53)。
Next, a third embodiment of the present invention will be described. FIG. 7 is a flowchart of image evaluation processing performed in the third embodiment of the present invention. Here, in the third embodiment, the evaluation value is calculated based on the information on the number of faces in addition to the information on the face size and position. When the user gives an instruction to start image evaluation from the
次いで情報取得部30が、画像に顔領域が含まれるか否かを判定し(ステップST54)、ステップST54が否定されると処理を終了する。ステップST54が肯定されると、検出した顔領域から画像に含まれる顔のサイズおよび位置の情報、並びに顔の数の情報を取得する(ステップST55)。
Next, the
そして、評価値算出部32が、重みづけテーブルLUT1〜LUT3,LUT11〜LUT13から顔のサイズに応じた重みづけテーブルを選択する(ステップST56)。なお、第3の実施形態においては、顔の数に応じてあらかじめ決定された重みづけテーブルも選択する。
Then, the evaluation
図8は顔の数についての重みづけテーブルを示す図である。なお、重みづけテーブルLUT4は、複数の被験者に対して、各種顔の数を有する多数のサンプル画像から、各被験者が好ましいと思うサンプル画像を選択させるテストを行わせた結果に基づいて決定されたものであり、各サンプル画像を選択した被験者数の全被験者数に対する割合を重み係数としている。また、重みづけテーブルLUT4においては、顔の数が1つの場合の重み係数が1となるように重み係数を規格化している。また、図8に示すように重みづけテーブルLUT4は、横軸に顔の数を、縦軸に重み係数をプロットしたものである。 FIG. 8 is a diagram showing a weighting table for the number of faces. The weighting table LUT4 is determined based on the result of performing a test for selecting a sample image that each subject thinks preferable from a large number of sample images having various face numbers for a plurality of subjects. The ratio of the number of subjects who selected each sample image to the total number of subjects is used as a weighting factor. In the weighting table LUT4, the weighting factor is normalized so that the weighting factor is 1 when the number of faces is one. Further, as shown in FIG. 8, the weighting table LUT4 is obtained by plotting the number of faces on the horizontal axis and the weighting coefficient on the vertical axis.
次いで、評価値算出部32は、選択した顔のサイズに応じた重みづけテーブルを参照して、顔のサイズおよび位置に応じた重み係数を取得する(ステップST57)。なお、第3の実施形態においても、x方向およびy方向についての2つの重みづけテーブルが選択されるため、2つの重み係数が取得される。
Next, the evaluation
さらに、評価値算出部32は、重みづけテーブルLUT4を参照して顔の数に応じた重み係数を取得する(ステップST58)。
Furthermore, the evaluation
そして、顔のサイズおよび位置に応じた重み係数を加算し、これに顔の数に応じた重み係数を乗算することにより画像の仮の評価値を算出し(ステップST59)、仮の評価値を現在の評価値に加算して加算結果を新たな評価値とする(ステップST60)。そして、処理対象の画像に他の顔領域が含まれるか否かを判定し(ステップST61)、ステップST61が否定されると処理を終了する。ステップST61が肯定されると、処理の対象を次の顔領域に設定して(ステップST62)、ステップST55に戻り、ステップST55以降の処理を繰り返す。 Then, a temporary evaluation value of the image is calculated by adding a weighting factor corresponding to the size and position of the face, and multiplying this by a weighting factor corresponding to the number of faces (step ST59). The addition result is added to the current evaluation value, and the addition result is set as a new evaluation value (step ST60). Then, it is determined whether or not another face area is included in the image to be processed (step ST61), and if step ST61 is negative, the process ends. If step ST61 is affirmed, the processing target is set to the next face area (step ST62), the process returns to step ST55, and the processes after step ST55 are repeated.
これにより、画像に顔領域が1つのみ含まれる場合には、ステップST60において算出した新たな評価値が最終的な評価値として算出される。この場合、顔の数に応じた重み係数は1であるため、算出された評価値は上記第1および第2の実施形態と同様の評価値となる。また、画像に複数の顔領域が含まれる場合には、各顔領域について算出した仮の評価値を加算することにより最終的な評価値が算出される。 Thereby, when the image includes only one face area, the new evaluation value calculated in step ST60 is calculated as the final evaluation value. In this case, since the weighting coefficient corresponding to the number of faces is 1, the calculated evaluation value is the same evaluation value as in the first and second embodiments. When a plurality of face areas are included in the image, a final evaluation value is calculated by adding the temporary evaluation values calculated for each face area.
このように第3の実施形態によれば、第1の実施形態に加えて、さらに顔の数の情報をも用いて画像の評価結果を表す評価値を算出するようにしたため、評価値に画像を見る者の平均的な趣向を反映させることができ、これにより、より精度良く画像を評価することができる。 As described above, according to the third embodiment, in addition to the first embodiment, the evaluation value representing the evaluation result of the image is further calculated using the information on the number of faces. It is possible to reflect the average taste of the viewer, and thereby it is possible to evaluate the image with higher accuracy.
なお、上記第3の実施形態においては、上記第2の実施形態と同様に顔の向きの情報をさらに用いて画像の評価結果を表す評価値を算出するようにしてもよい。この場合、仮の評価値は、顔のサイズおよび位置に応じた2つの重み係数を加算し、これに顔の数に応じた重み係数を乗算し、さらに顔の向きに応じた重み係数を乗算することにより算出すればよい。 In the third embodiment, as in the second embodiment, the face orientation information may be further used to calculate an evaluation value representing the image evaluation result. In this case, the provisional evaluation value is obtained by adding two weighting factors according to the face size and position, multiplying this by a weighting factor according to the number of faces, and further multiplying by a weighting factor according to the face orientation. It may be calculated by doing so.
なお、上記第3の実施形態においては顔の数に応じた重み係数を、顔のサイズおよび位置に応じた重み係数に乗算することにより仮の評価値を算出しているが、顔の数に応じた重み係数を、顔のサイズおよび位置に応じた重み係数に加算することにより仮の評価値を算出するようにしてもよい。 In the third embodiment, the temporary evaluation value is calculated by multiplying the weighting factor according to the number of faces by the weighting factor according to the size and position of the face. The provisional evaluation value may be calculated by adding the corresponding weight coefficient to the weight coefficient according to the face size and position.
次いで、本発明の第4の実施形態について説明する。図9は本発明の第4の実施形態において行われる画像評価処理のフローチャートである。ここで、第4の実施形態においては、顔のサイズおよび位置に応じた重みづけテーブルに加えて、対象となる顔のサイズおよび画像に含まれるすべての顔の数に応じた複数の重みづけテーブルを用意しておき、対象となる顔のサイズおよび画像に含まれるすべての顔の数に応じた重み係数を用いて評価値を算出するものである。ユーザが入力部16から画像の評価開始の指示を行うことによりCPU12が処理を開始し、まずハードディスク24から画像を読み出し(ステップST71)、評価値の初期値=0に設定する(ステップST72)。次いで、情報取得部30が画像から人物の顔領域を検出する(ステップST73)。
Next, a fourth embodiment of the present invention will be described. FIG. 9 is a flowchart of image evaluation processing performed in the fourth embodiment of the present invention. Here, in the fourth embodiment, in addition to the weighting table corresponding to the size and position of the face, a plurality of weighting tables corresponding to the size of the target face and the number of all faces included in the image are used. Are prepared, and an evaluation value is calculated using a weighting factor corresponding to the size of the target face and the number of all faces included in the image. When the user gives an instruction to start image evaluation from the
次いで情報取得部30が、画像に顔領域が含まれるか否かを判定し(ステップST74)、ステップST74が否定されると処理を終了する。ステップST74が肯定されると、検出した顔領域から画像に含まれる顔のサイズおよび位置の情報、並びに顔の数の情報を取得する(ステップST75)。
Next, the
そして、評価値算出部32が、重みづけテーブルLUT1〜LUT3,LUT11〜LUT13から顔のサイズに応じた重みづけテーブルを選択する(ステップST76)。なお、第4の実施形態においては、顔のサイズおよび数に応じてあらかじめ決定された複数の重みづけテーブルから顔のサイズに応じた重みづけテーブルも選択する。
Then, the evaluation
図10は対象となる顔のサイズおよび画像に含まれるすべての顔の数についての重みテーブル(以下、顔のサイズおよび数についての重みづけテーブルとする)を示す図である。なお、重みづけテーブルLUT21〜LUT23は、複数の被験者に対して、各種顔のサイズおよび顔の数を有する多数のサンプル画像から、各被験者が好ましいと思うサンプル画像を選択させるテストを行わせた結果に基づいて決定されたものであり、各サンプル画像を選択した被験者数の全被験者数に対する割合を重み係数としている。また、重みづけテーブルLUT21〜LUT23においては、顔のサイズが中および大の場合には顔の数が1つの場合の重み係数が1となるように、顔のサイズが小の場合には顔の数が1つの場合の重み係数が1.2となるように重み係数を規格化している。また、図10に示すように重みづけテーブルLUT21〜LUT23は、顔のサイズが大中小のそれぞれについて横軸に顔の数を、縦軸に重み係数をプロットしたものである。 FIG. 10 is a diagram showing a weight table for the size of the target face and the number of all faces included in the image (hereinafter referred to as a weighting table for the face size and number). The weighting tables LUT21 to LUT23 are a result of performing a test for selecting a sample image that each subject considers preferable from a large number of sample images having various face sizes and the number of faces. The ratio of the number of subjects who selected each sample image to the total number of subjects is used as a weighting factor. Also, in the weighting tables LUT21 to LUT23, when the face size is medium and large, the weighting factor is 1 when the number of faces is 1, and when the face size is small, the face The weighting factor is normalized so that the weighting factor when the number is one is 1.2. Further, as shown in FIG. 10, the weighting tables LUT21 to LUT23 are obtained by plotting the number of faces on the horizontal axis and the weighting coefficient on the vertical axis for each of large, medium, and small face sizes.
次いで、評価値算出部32は、選択した顔のサイズに応じた重みづけテーブルを参照して、顔のサイズおよび位置に応じた重み係数を取得する(ステップST77)。なお、第4の実施形態においても、x方向およびy方向についての2つの重みづけテーブルが選択されるため、2つの重み係数が取得される。
Next, the evaluation
さらに、評価値算出部32は、選択した顔のサイズおよび数についての重みづけテーブルを参照して顔のサイズおよび数に応じた重み係数を取得する(ステップST78)。
Furthermore, the evaluation
そして、顔のサイズおよび位置に応じた重み係数を加算し、これに顔のサイズおよび数に応じた重み係数を乗算することにより画像の仮の評価値を算出し(ステップST79)、仮の評価値を現在の評価値に加算して加算結果を新たな評価値とする(ステップST80)。そして、処理対象の画像に他の顔領域が含まれるか否かを判定し(ステップST81)、ステップST81が否定されると処理を終了する。ステップST81が肯定されると、処理の対象を次の顔領域に設定して(ステップST82)、ステップST75に戻り、ステップST75以降の処理を繰り返す。 Then, a weighting coefficient corresponding to the size and position of the face is added, and a weighting coefficient corresponding to the size and number of faces is multiplied by this to calculate a temporary evaluation value of the image (step ST79). The value is added to the current evaluation value, and the addition result is used as a new evaluation value (step ST80). Then, it is determined whether or not another face area is included in the image to be processed (step ST81). If step ST81 is negative, the process is terminated. If step ST81 is affirmed, the processing target is set to the next face area (step ST82), the process returns to step ST75, and the processes after step ST75 are repeated.
これにより、画像に顔領域が1つのみ含まれる場合には、ステップST80において算出した新たな評価値が最終的な評価値として算出される。この場合、顔のサイズおよび数に応じた重み係数は1であるため、算出された評価値は上記第1から第3の実施形態と同様の評価値となる。また、画像に複数の顔領域が含まれる場合には、各顔領域について算出した仮の評価値を加算することにより最終的な評価値が算出される。 Thereby, when only one face area is included in the image, the new evaluation value calculated in step ST80 is calculated as the final evaluation value. In this case, since the weighting coefficient corresponding to the size and number of faces is 1, the calculated evaluation value is the same as that in the first to third embodiments. When a plurality of face areas are included in the image, a final evaluation value is calculated by adding the temporary evaluation values calculated for each face area.
このように第4の実施形態によれば、第1の実施形態に加えて、さらに顔のサイズおよび数の情報をも用いて画像の評価結果を表す評価値を算出するようにしたため、評価値に画像を見る者の平均的な趣向を反映させることができ、これにより、より精度良く画像を評価することができる。 As described above, according to the fourth embodiment, in addition to the first embodiment, the evaluation value representing the evaluation result of the image is calculated using the information on the size and number of the faces. It is possible to reflect the average taste of the person who sees the image, and thereby the image can be evaluated with higher accuracy.
なお、上記第4の実施形態においては、上記第2の実施形態と同様に顔の向きの情報をさらに用いて画像の評価結果を表す評価値を算出するようにしてもよい。この場合、仮の評価値は、顔のサイズおよび位置に応じた2つの重み係数を加算し、これに顔のサイズおよび数に応じた重み係数を乗算し、さらに顔の向きに応じた重み係数を乗算することにより算出すればよい。 In the fourth embodiment, as in the second embodiment, the face orientation information may be further used to calculate an evaluation value representing the image evaluation result. In this case, the provisional evaluation value is obtained by adding two weighting factors according to the size and position of the face, multiplying this by a weighting factor according to the size and number of faces, and further weighting factors according to the orientation of the face It may be calculated by multiplying.
なお、上記第4の実施形態においては顔のサイズおよび数に応じた重み係数を、顔のサイズおよび位置に応じた重み係数に乗算することにより仮の評価値を算出しているが、顔のサイズおよび数に応じた重み係数を、顔のサイズおよび位置に応じた重み係数に加算することにより仮の評価値を算出するようにしてもよい。 In the fourth embodiment, the temporary evaluation value is calculated by multiplying the weighting factor according to the size and position of the face by the weighting factor according to the size and position of the face. A temporary evaluation value may be calculated by adding a weighting factor corresponding to the size and number to a weighting factor corresponding to the size and position of the face.
次いで、本発明の第5の実施形態について説明する。図11は本発明の第5の実施形態において行われる画像評価処理のフローチャートである。ここで、第5の実施形態においては、顔のサイズおよび位置の情報に加えて、画像に含まれる顔の最も中心に位置する顔からの距離の情報にも基づいて評価値を算出するものである。ユーザが入力部16から画像の評価開始の指示を行うことによりCPU12が処理を開始し、まずハードディスク24から画像を読み出し(ステップST91)、評価値の初期値=0に設定する(ステップST92)。次いで、情報取得部30が画像から人物の顔領域を検出する(ステップST93)。
Next, a fifth embodiment of the present invention will be described. FIG. 11 is a flowchart of image evaluation processing performed in the fifth embodiment of the present invention. Here, in the fifth embodiment, the evaluation value is calculated based on the distance information from the face located at the center of the face included in the image in addition to the face size and position information. is there. When the user gives an instruction to start image evaluation from the
次いで情報取得部30が、画像に顔領域が含まれるか否かを判定し(ステップST94)、ステップST94が否定されると処理を終了する。ステップST94が肯定されると、検出した顔領域から画像に含まれる顔のサイズおよび位置の情報、並びに検出した顔領域に含まれる顔の最も中心に位置する顔からの距離の情報を取得する(ステップST95)。
Next, the
そして、評価値算出部32が、重みづけテーブルLUT1〜LUT3,LUT11〜LUT13から顔のサイズに応じた重みづけテーブルを選択する(ステップST96)。なお、第5の実施形態においては、最も中心に位置する顔からの距離に応じてあらかじめ決定された重みづけテーブルも選択する。
Then, the evaluation
図12は最も中心に位置する顔からの距離についての重みづけテーブルを示す図である。なお、重みづけテーブルLUT31は、複数の被験者に対して、画像上の各種位置に顔が含まれる多数のサンプル画像から、各被験者が好ましいと思うサンプル画像を選択させるテストを行わせた結果に基づいて決定されたものであり、各サンプル画像を選択した被験者数の全被験者数に対する割合を重み係数としている。また、重みづけテーブルLUT31においては、最も多くの被験者が選択した画像についての重み係数が1.25となるように重み係数を規格化している。 FIG. 12 is a diagram showing a weighting table for the distance from the face located at the center. The weighting table LUT 31 is based on the result of performing a test for selecting a sample image that each subject considers preferable from a large number of sample images including faces at various positions on the image for a plurality of subjects. The ratio of the number of subjects who selected each sample image to the total number of subjects is used as a weighting coefficient. Further, in the weighting table LUT31, the weighting coefficient is normalized so that the weighting coefficient for the image selected by the most subjects is 1.25.
なお、重みづけテーブルLUT31において、横軸の距離の値は、最も中心に近い顔のサイズを1に規格化している。これは、重みづけテーブルを決定する際に、中心に位置する顔からの距離が顔のサイズに影響されないようにするためである。このため、中心に位置する顔のサイズが3cmであり対象の顔の距離が3cmである場合と、中心に位置する顔のサイズが1cmであり対象の顔の距離が1cmである場合とでは、同じ重み係数となる。 In the weighting table LUT31, the distance value on the horizontal axis is normalized to 1 for the face size closest to the center. This is to prevent the distance from the face located at the center from being affected by the face size when determining the weighting table. Therefore, when the size of the face located at the center is 3 cm and the distance of the target face is 3 cm, and when the size of the face located at the center is 1 cm and the distance of the target face is 1 cm, Same weighting factor.
次いで、評価値算出部32は、選択した顔のサイズに応じた重みづけテーブルを参照して、顔のサイズおよび位置に応じた重み係数を取得する(ステップST97)。なお、第5の実施形態においても、x方向およびy方向についての2つの重みづけテーブルが選択されるため、2つの重み係数が取得される。
Next, the evaluation
さらに、評価値算出部32は、重みづけテーブルLUT31を参照して最も中心に位置する顔からの距離に応じた重み係数を取得する(ステップST98)。なお、顔が1つのみしか含まれない場合には、重み係数は距離が0であるとして0.2となる。
Further, the evaluation
そして、顔のサイズおよび位置に応じた重み係数を加算し、これに最も中心に位置する顔からの距離に応じた重み係数を乗算することにより画像の仮の評価値を算出し(ステップST99)、仮の評価値を現在の評価値に加算して加算結果を新たな評価値とする(ステップST100)。そして、処理対象の画像に他の顔領域が含まれるか否かを判定し(ステップST101)、ステップST101が否定されると処理を終了する。ステップST101が肯定されると、処理の対象を次の顔領域に設定して(ステップST102)、ステップST95に戻り、ステップST95以降の処理を繰り返す。 Then, a provisional evaluation value of the image is calculated by adding a weighting factor corresponding to the size and position of the face, and multiplying this by a weighting factor corresponding to the distance from the most central face (step ST99). The provisional evaluation value is added to the current evaluation value, and the addition result is set as a new evaluation value (step ST100). Then, it is determined whether or not another face area is included in the image to be processed (step ST101), and if step ST101 is negative, the process is terminated. If step ST101 is affirmed, the processing target is set to the next face area (step ST102), the process returns to step ST95, and the processes after step ST95 are repeated.
これにより、画像に顔領域が1つのみ含まれる場合には、ステップST100において算出した新たな評価値が最終的な評価値として算出される。この場合、最も中心に位置する顔からの距離に応じた重み係数は0.2であるため、算出された評価値は上記第1から第3の実施形態の評価値に0.2を乗算した値となる。また、画像に複数の顔領域が含まれる場合には、各顔領域について算出した仮の評価値を加算することにより最終的な評価値が算出される。 Thereby, when the image includes only one face area, the new evaluation value calculated in step ST100 is calculated as the final evaluation value. In this case, since the weighting coefficient corresponding to the distance from the face located at the center is 0.2, the calculated evaluation value is obtained by multiplying the evaluation value of the first to third embodiments by 0.2. Value. When a plurality of face areas are included in the image, a final evaluation value is calculated by adding the temporary evaluation values calculated for each face area.
このように第5の実施形態によれば、第1の実施形態に加えて、さらに最も中心に位置する顔からの距離の情報をも用いて画像の評価結果を表す評価値を算出するようにしたため、評価値に画像を見る者の平均的な趣向を反映させることができ、これにより、より精度良く画像を評価することができる。 As described above, according to the fifth embodiment, in addition to the first embodiment, the evaluation value representing the evaluation result of the image is calculated using the distance information from the face located at the most center. Therefore, it is possible to reflect the average preference of the viewer who sees the image in the evaluation value, and thereby the image can be evaluated with higher accuracy.
なお、上記第5の実施形態においては、上記第2の実施形態と同様に顔の向きの情報をさらに用いて画像の評価結果を表す評価値を算出するようにしてもよい。この場合、仮の評価値は、顔のサイズおよび位置に応じた2つの重み係数を加算し、これに距離に応じた重み係数を乗算し、さらに顔の向きに応じた重み係数を乗算することにより算出すればよい。 In the fifth embodiment, as in the second embodiment, the face orientation information may be further used to calculate an evaluation value representing the image evaluation result. In this case, the provisional evaluation value is obtained by adding two weighting factors according to the size and position of the face, multiplying this by a weighting factor according to the distance, and further multiplying by a weighting factor according to the orientation of the face. It may be calculated by the following.
また、上記第5の実施形態においては、上記第3および第4の実施形態と同様に、顔の数の情報または顔のサイズおよび数の情報を用いて評価値を算出するようにしてもよい。この場合、仮の評価値は、顔のサイズおよび位置に応じた2つの重み係数を加算し、これに画像に含まれる顔の数に応じた重み係数、または対象の顔のサイズおよび画像に含まれる顔の数に応じた重み係数を乗算し、さらに距離に応じた重み係数を乗算することにより算出すればよい。この場合においてもさらに顔の向きの情報を用いて評価値を算出するようにしてもよいことはもちろんである。 In the fifth embodiment, as in the third and fourth embodiments, the evaluation value may be calculated using information on the number of faces or information on the size and number of faces. . In this case, the provisional evaluation value is added to two weighting factors according to the size and position of the face, and is added to the weighting factor according to the number of faces included in the image or the size and image of the target face. What is necessary is just to calculate by multiplying the weighting coefficient according to the number of faces to be obtained, and further multiplying by the weighting coefficient according to the distance. Even in this case, it is a matter of course that the evaluation value may be calculated using the information of the face orientation.
なお、上記第1から第5の実施形態においては、画像に含まれる顔のサイズ、位置、向き、数、最も中心に位置する顔からの距離およびこれらの組み合わせの情報を用いて画像の評価値を算出しているが、これ以外にも顔の表情、顔の明るさ、目を閉じているか否かの情報等を用いて評価値を算出するようにしてもよい。 In the first to fifth embodiments, the evaluation value of the image using information on the size, position, orientation, number of faces included in the image, the distance from the most central face, and a combination thereof. In addition to this, the evaluation value may be calculated using facial expression, facial brightness, information on whether or not eyes are closed, and the like.
また、図13に示すように、本発明の画像評価装置1に、評価値算出部32が算出した評価値と、画像についての他の評価値を算出する複数(ここでは2つ)の評価値算出部40,42がそれぞれ算出した評価値から総合的に画像の評価値を算出する総合評価部44を備えるようにしてもよい。なお、総合評価部44は、評価値算出部32,40,42が算出した評価値を単純に加算することにより総合評価を行うものであってもよく、重みづけ加算することにより総合評価を行うものであってもよい。
Further, as shown in FIG. 13, the
以上、本発明の実施形態に係る装置1について説明したが、コンピュータを、上記の情報取得部30および評価値算出部32に対応する手段として機能させ、図2,5,6,7,9,11に示すような処理を行わせるプログラムも、本発明の実施形態の1つである。また、そのようなプログラムを記録したコンピュータ読取り可能な記録媒体も、本発明の実施形態の1つである。これらの場合において、重みづけテーブルは、プログラム内あるいは同一の記録媒体内に含まれているものであってもよいし、外部の装置や別個の媒体から提供されるものであってもよい。
As described above, the
1 画像評価装置
2 メモリカード
12 CPU
14 システムメモリ
16 入力部
18 表示部
20 カードスロット
22 圧縮解凍部
24 ハードディスク
26 メモリ制御部
28 表示制御部
30 情報取得部
32,40,42 評価値算出部
44 総合評価部
1
14
Claims (6)
前記画像に前記顔が1つのみ含まれる場合、各種顔のサイズおよび位置に応じて統計的にあらかじめ決定された第1の重みづけ関数を参照して、前記顔のサイズおよび位置の情報に応じた第1の重み係数を算出し、
前記最も中心に位置する顔からの距離に応じて統計的にあらかじめ決定された、距離が0から所定の距離となるまで所定の増加率により重み係数が大きくなり、前記距離が前記所定の距離より大きくなるほど、前記所定の増加率の絶対値よりも小さい減少率により前記重み係数が小さくなる第2の重みづけ関数を参照して、前記距離の情報に応じた第2の重み係数を求め、該第2の重み係数により重みづけられた前記第1の重み係数を、前記画像の評価結果を表す評価値として算出し、
前記画像に前記顔が複数含まれる場合、前記各顔について、前記第1の重みづけ関数を参照して前記顔のサイズおよび位置の情報に応じた前記第1の重み係数を仮の評価値として算出し、前記第2の重みづけ関数を参照して、前記距離の情報に応じた前記第2の重み係数を求め、該第2の重み係数により重みづけられた前記仮の評価値を、すべての顔について加算することにより前記評価値を算出する評価値算出手段とを備えたことを特徴とする画像評価装置。 Information on the size and position of the face is obtained from an image including at least one face, and when a plurality of the faces are included in the image, from the face located at the center of the image of each face included in the image Information as a distance information of each face, and when the image includes only one face, information acquisition means for acquiring information indicating that the distance is 0 as the distance information ;
When only one face is included in the image, the first weighting function that is statistically predetermined according to the size and position of various faces is referred to, and the information about the size and position of the face is used. Calculating a first weighting factor,
The weighting factor is increased by a predetermined increase rate until the distance becomes a predetermined distance from 0, which is statistically predetermined according to the distance from the most central face, and the distance is larger than the predetermined distance. A second weighting factor corresponding to the information on the distance is obtained by referring to a second weighting function in which the weighting factor is reduced by a decrease rate smaller than the absolute value of the predetermined increase rate as the value increases. Calculating the first weighting factor weighted by a second weighting factor as an evaluation value representing the evaluation result of the image;
When a plurality of the faces are included in the image, the first weighting factor corresponding to the size and position information of the face is referred to the first weighting function for each face as a temporary evaluation value Calculating, referring to the second weighting function, obtaining the second weighting coefficient according to the information of the distance, all the temporary evaluation values weighted by the second weighting coefficient, An image evaluation apparatus comprising: an evaluation value calculation means for calculating the evaluation value by adding the faces of
前記評価値算出手段は、各種顔の数に応じて統計的にあらかじめ決定された第3の重みづけ関数を参照して、前記顔の数の情報に応じた第3の重み係数を求め、
前記画像に前記顔が1つのみ含まれる場合、前記第2の重み係数により重みづけられた前記第1の重み係数を、さらに前記第3の重み係数により重みづけることにより前記評価値を算出し、
前記画像に前記顔が複数含まれる場合、前記第2の重み係数により重みづけられた前記仮の評価値を、さらに前記第3の重み係数により重みづけ、該第3の重み係数により重みづけられた前記仮の評価値をすべての顔について加算することにより前記評価値を算出する手段であることを特徴とする請求項1記載の画像評価装置。 The information acquisition means is means for further acquiring information on the number of faces,
The evaluation value calculating means refers to a third weighting function that is statistically determined in advance according to the number of various faces and obtains a third weighting factor according to the information on the number of faces.
When only one face is included in the image, the evaluation value is calculated by further weighting the first weighting factor weighted by the second weighting factor and the third weighting factor. ,
When the image includes a plurality of the faces, the temporary evaluation value weighted by the second weighting factor is further weighted by the third weighting factor and weighted by the third weighting factor. The image evaluation apparatus according to claim 1, wherein the evaluation value is a means for calculating the evaluation value by adding the provisional evaluation value for all faces .
前記評価値算出手段は、各種顔の向きに応じて統計的にあらかじめ決定された、顔が正面を向いているほど重み係数が大きい第4の重みづけ関数を参照して、前記顔の向きの情報に応じた第4の重み係数を求め、
前記画像に前記顔が1つのみ含まれる場合、前記第2の重み係数により重みづけられた前記第1の重み係数を、さらに前記第4の重み係数により重みづけることにより前記評価値を算出し、
前記画像に前記顔が複数含まれる場合、前記第2の重み係数により重みづけられた前記仮の評価値を、さらに前記第4の重み係数により重みづけ、該第4の重み係数により重みづけられた前記仮の評価値をすべての顔について加算することにより前記評価値を算出する手段であることを特徴とする請求項1記載の画像評価装置。 The information acquisition means is means for further acquiring information on the orientation of the face,
The evaluation value calculation means refers to a fourth weighting function that is statistically determined in advance according to the orientation of various faces and has a weighting factor that is larger as the face is facing the front. Find the fourth weighting factor according to the information,
When only one face is included in the image, the evaluation value is calculated by further weighting the first weighting factor weighted by the second weighting factor and the fourth weighting factor. ,
When the image includes a plurality of the faces, the temporary evaluation value weighted by the second weighting factor is further weighted by the fourth weighting factor and weighted by the fourth weighting factor. The image evaluation apparatus according to claim 1, wherein the evaluation value is a means for calculating the evaluation value by adding the provisional evaluation value for all faces .
前記評価値算出手段は、各種顔の向きに応じて統計的にあらかじめ決定された、顔が正面を向いているほど重み係数が大きい第4の重みづけ関数を参照して、前記顔の向きの情報に応じた第4の重み係数を求め、
前記画像に前記顔が1つのみ含まれる場合、前記第2および前記第3の重み係数により重みづけられた前記第1の重み係数を、さらに前記第4の重み係数により重みづけることにより前記評価値を算出し、
前記画像に前記顔が複数含まれる場合、前記第2および前記第3の重み係数により重みづけられた前記仮の評価値を、さらに前記第4の重み係数により重みづけ、該第4の重み係数により重みづけられた前記仮の評価値をすべての顔について加算することにより前記評価値を算出する手段であることを特徴とする請求項2記載の画像評価装置。 The information acquisition means is means for further acquiring information on the orientation of the face,
The evaluation value calculation means refers to a fourth weighting function that is statistically determined in advance according to the orientation of various faces and has a weighting factor that is larger as the face is facing the front. Find the fourth weighting factor according to the information,
When only one face is included in the image, the evaluation is performed by further weighting the first weighting factor weighted by the second and third weighting factors by the fourth weighting factor. Calculate the value,
When the image includes a plurality of the faces, the temporary evaluation value weighted by the second and third weighting factors is further weighted by the fourth weighting factor, and the fourth weighting factor 3. The image evaluation apparatus according to claim 2, wherein the evaluation value is a means for calculating the evaluation value by adding the temporary evaluation values weighted by the above-mentioned values for all the faces .
前記画像に前記顔が1つのみ含まれる場合、各種顔のサイズおよび位置に応じて統計的にあらかじめ決定された第1の重みづけ関数を参照して、前記顔のサイズおよび位置の情報に応じた第1の重み係数を算出し、
前記最も中心に位置する顔からの距離に応じて統計的にあらかじめ決定された、距離が0から所定の距離となるまで所定の増加率により重み係数が大きくなり、前記距離が前記所定の距離より大きくなるほど、前記所定の増加率の絶対値よりも小さい減少率により前記重み係数が小さくなる第2の重みづけ関数を参照して、前記距離の情報に応じた第2の重み係数を求め、該第2の重み係数により重みづけられた前記第1の重み係数を、前記画像の評価結果を表す評価値として算出し、
前記画像に前記顔が複数含まれる場合、前記各顔について、前記第1の重みづけ関数を参照して前記顔のサイズおよび位置の情報に応じた前記第1の重み係数を仮の評価値として算出し、前記第2の重みづけ関数を参照して、前記距離の情報に応じた前記第2の重み係数を求め、該第2の重み係数により重みづけられた前記仮の評価値を、すべての顔について加算することにより前記評価値を算出することを特徴とする画像評価方法。 Information on the size and position of the face is obtained from an image including at least one face, and when a plurality of the faces are included in the image, from the face located at the center of the image of each face included in the image Is acquired as the distance information of each face, and when the image includes only one face, information indicating that the distance is 0 is acquired as the distance information.
When only one face is included in the image, the first weighting function that is statistically predetermined according to the size and position of various faces is referred to, and the information about the size and position of the face is used. Calculating a first weighting factor,
The weighting factor is increased by a predetermined increase rate until the distance becomes a predetermined distance from 0, which is statistically predetermined according to the distance from the most central face, and the distance is larger than the predetermined distance. A second weighting factor corresponding to the information on the distance is obtained by referring to a second weighting function in which the weighting factor is reduced by a decrease rate smaller than the absolute value of the predetermined increase rate as the value increases. Calculating the first weighting factor weighted by a second weighting factor as an evaluation value representing the evaluation result of the image;
When a plurality of the faces are included in the image, the first weighting factor corresponding to the size and position information of the face is referred to the first weighting function for each face as a temporary evaluation value Calculating, referring to the second weighting function, obtaining the second weighting coefficient according to the information of the distance, all the temporary evaluation values weighted by the second weighting coefficient, An image evaluation method, wherein the evaluation value is calculated by performing addition for the faces .
前記画像に前記顔が1つのみ含まれる場合、各種顔のサイズおよび位置に応じて統計的にあらかじめ決定された第1の重みづけ関数を参照して、前記顔のサイズおよび位置の情報に応じた第1の重み係数を算出する手順と、
前記最も中心に位置する顔からの距離に応じて統計的にあらかじめ決定された、距離が0から所定の距離となるまで所定の増加率により重み係数が大きくなり、前記距離が前記所定の距離より大きくなるほど、前記所定の増加率の絶対値よりも小さい減少率により前記重み係数が小さくなる第2の重みづけ関数を参照して、前記距離の情報に応じた第2の重み係数を求め、該第2の重み係数により重みづけられた前記第1の重み係数を、前記画像の評価結果を表す評価値として算出する手順と、
前記画像に前記顔が複数含まれる場合、前記各顔について、前記第1の重みづけ関数を参照して前記顔のサイズおよび位置の情報に応じた前記第1の重み係数を仮の評価値として算出し、前記第2の重みづけ関数を参照して、前記距離の情報に応じた前記第2の重み係数を求め、該第2の重み係数により重みづけられた前記仮の評価値を、すべての顔について加算することにより前記評価値を算出する手順とを有することを特徴とする画像評価方法をコンピュータに実行させるためのプログラム。 Information on the size and position of the face is obtained from an image including at least one face, and when a plurality of the faces are included in the image, from the face located at the center of the image of each face included in the image A distance of each face, and when the image includes only one face , a procedure for acquiring information indicating that the distance is 0 as the distance information ;
When only one face is included in the image, the first weighting function that is statistically predetermined according to the size and position of various faces is referred to, and the information about the size and position of the face is used. Calculating a first weighting factor;
The weighting factor is increased by a predetermined increase rate until the distance becomes a predetermined distance from 0, which is statistically predetermined according to the distance from the most central face, and the distance is larger than the predetermined distance. A second weighting factor corresponding to the information on the distance is obtained by referring to a second weighting function in which the weighting factor is reduced by a decrease rate smaller than the absolute value of the predetermined increase rate as the value increases. Calculating the first weighting factor weighted by a second weighting factor as an evaluation value representing the evaluation result of the image;
When a plurality of the faces are included in the image, the first weighting factor corresponding to the size and position information of the face is referred to the first weighting function for each face as a temporary evaluation value Calculating, referring to the second weighting function, obtaining the second weighting coefficient according to the information of the distance, all the temporary evaluation values weighted by the second weighting coefficient, A program for causing a computer to execute an image evaluation method, comprising: calculating the evaluation value by adding the faces of
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2006346895A JP4860458B2 (en) | 2006-01-11 | 2006-12-25 | Image evaluation apparatus and method, and program |
Applications Claiming Priority (3)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2006003269 | 2006-01-11 | ||
| JP2006003269 | 2006-01-11 | ||
| JP2006346895A JP4860458B2 (en) | 2006-01-11 | 2006-12-25 | Image evaluation apparatus and method, and program |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2007213559A JP2007213559A (en) | 2007-08-23 |
| JP4860458B2 true JP4860458B2 (en) | 2012-01-25 |
Family
ID=38491894
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2006346895A Active JP4860458B2 (en) | 2006-01-11 | 2006-12-25 | Image evaluation apparatus and method, and program |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP4860458B2 (en) |
Family Cites Families (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6738494B1 (en) * | 2000-06-23 | 2004-05-18 | Eastman Kodak Company | Method for varying an image processing path based on image emphasis and appeal |
| US7130864B2 (en) * | 2001-10-31 | 2006-10-31 | Hewlett-Packard Development Company, L.P. | Method and system for accessing a collection of images in a database |
| JP4441853B2 (en) * | 2003-11-12 | 2010-03-31 | ノーリツ鋼機株式会社 | Face selection method for density correction and apparatus for carrying out this method |
| JP2005227957A (en) * | 2004-02-12 | 2005-08-25 | Mitsubishi Electric Corp | Optimal face image recording apparatus and optimal face image recording method |
-
2006
- 2006-12-25 JP JP2006346895A patent/JP4860458B2/en active Active
Also Published As
| Publication number | Publication date |
|---|---|
| JP2007213559A (en) | 2007-08-23 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP5205968B2 (en) | Gradation correction method, gradation correction apparatus, gradation correction program, and image device | |
| JP4121026B2 (en) | Imaging apparatus and method, and program | |
| JP4881199B2 (en) | Image evaluation apparatus and method, and program | |
| JP2006195651A (en) | Gradation compensation device | |
| CN115291678B (en) | Electronic equipment, and identification method and system for looking up electronic equipment | |
| US7856124B2 (en) | Image evaluation device, method and program | |
| JP4888485B2 (en) | Gradation correction characteristic evaluation apparatus, image processing apparatus, gradation correction characteristic evaluation method, image processing method, gradation correction characteristic evaluation program, and image processing program | |
| US8203772B2 (en) | Image output method, apparatus, and program using one or more attention levels | |
| JP4860458B2 (en) | Image evaluation apparatus and method, and program | |
| JP5103984B2 (en) | Image processing apparatus, imaging apparatus, and image processing program | |
| WO2008018459A1 (en) | Image processing method, image processing apparatus, image processing program, and image pickup apparatus | |
| JP4624948B2 (en) | Image trimming method and imaging apparatus | |
| JPH10340332A5 (en) | ||
| JP4612522B2 (en) | Change area calculation method, change area calculation device, change area calculation program | |
| JP4629740B2 (en) | Imaging apparatus and method, and program | |
| CN112529786A (en) | Image processing apparatus and method, and non-transitory computer-readable storage medium | |
| JP4831344B2 (en) | Eye position detection method | |
| JP4773240B2 (en) | Similarity discrimination apparatus, method, and program | |
| JP5398860B2 (en) | Image processing apparatus, image processing apparatus control method, program, and storage medium | |
| JP2009171569A (en) | Imaging apparatus and method, and program | |
| JP2002024825A (en) | Image processing apparatus, image processing method, and certificate creation apparatus | |
| JP2007257466A (en) | Similarity discrimination apparatus, method, and program | |
| JP2007257468A (en) | Similarity discrimination apparatus, method, and program | |
| JP2007257467A (en) | Similarity discrimination apparatus, method, and program | |
| JP2009258771A (en) | Image processing method, image processor, image processing program ,and imaging device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20090911 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20110407 |
|
| RD15 | Notification of revocation of power of sub attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7435 Effective date: 20110415 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20110419 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20110531 |
|
| 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: 20111011 |
|
| 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: 20111102 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 4860458 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: 20141111 Year of fee payment: 3 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| 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 |