JP2008277904A - Image processor, image direction discrimination method and image direction discrimination program, reproducing device, reproducing method and reproducing program, and digital still camera - Google Patents

Image processor, image direction discrimination method and image direction discrimination program, reproducing device, reproducing method and reproducing program, and digital still camera Download PDF

Info

Publication number
JP2008277904A
JP2008277904A JP2007115879A JP2007115879A JP2008277904A JP 2008277904 A JP2008277904 A JP 2008277904A JP 2007115879 A JP2007115879 A JP 2007115879A JP 2007115879 A JP2007115879 A JP 2007115879A JP 2008277904 A JP2008277904 A JP 2008277904A
Authority
JP
Japan
Prior art keywords
image data
face
vertical
face area
detected
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.)
Pending
Application number
JP2007115879A
Other languages
Japanese (ja)
Inventor
Takashi Tsujimura
貴 辻村
Miyuki Okada
深雪 岡田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sony Corp
Original Assignee
Sony Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sony Corp filed Critical Sony Corp
Priority to JP2007115879A priority Critical patent/JP2008277904A/en
Publication of JP2008277904A publication Critical patent/JP2008277904A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Image Processing (AREA)
  • Studio Devices (AREA)
  • Image Analysis (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To accurately discriminate longitudinal/lateral directions of image data with simple constitution even when image data includes a plurality of person's faces. <P>SOLUTION: A digital still camera 1 of the present invention detects as a detected face area a face area FA of a person included in captured image data as image data, and discriminate longitudinal/lateral directions of respective detected face areas based upon roll face angles as angles of the detected face areas around a vertical direction wit respect to a plane that the captured image data represents as an axis of rotation. Then the digital still camera 1 discriminate the longitudinal/lateral direction of the captured image data by majority based upon discrimination results showing that the detected face areas are longitudinal or lateral to thereby accurately discriminate the longitudinal/lateral direction of the captured image data without using a detecting means such as a posture sensor when a plurality of persons are captured at the same time. <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

本発明は、画像処理装置、画像方向判別方法及び画像方向判別プログラム、再生装置、再生方法及び再生プログラム、並びにデジタルスチルカメラに関し、例えばデジタルスチルカメラに適用して好適なものである。   The present invention relates to an image processing device, an image direction determination method and an image direction determination program, a playback device, a playback method and a playback program, and a digital still camera, and is suitable for application to a digital still camera, for example.

従来、デジタルスチルカメラとして、姿勢センサなどの検出手段によってデジタルスチルカメラが縦横いずれの姿勢であるかを撮影時に検出し、撮像された画像データ(以下、これを撮像画像データと呼ぶ)が縦横いずれの方向であるかを表す画像方向情報として当該撮像画像データに付加しておくようになされたものがある(例えば、特許文献1参照)。   Conventionally, as a digital still camera, detection means such as a posture sensor detects whether the digital still camera is in a vertical or horizontal posture at the time of shooting, and captured image data (hereinafter referred to as captured image data) There is information added to the captured image data as image direction information indicating whether the current direction is (see, for example, Patent Document 1).

そしてデジタルスチルカメラは、撮像画像データを表示する際、付加されている画像方向情報に基づいて撮像画像データを回転して表示することにより、撮像時点における撮像画像データと同じ縦横方向でなる撮像画像をユーザに提示するようになされたものがある。
特許第3192462号公報
When displaying the captured image data, the digital still camera rotates and displays the captured image data based on the added image direction information, so that the captured image has the same vertical and horizontal directions as the captured image data at the time of imaging. Is to be presented to the user.
Japanese Patent No. 3192462

ところでかかる構成のデジタルスチルカメラにおいては、カメラ姿勢を検出するために姿勢センサを必要とするため、構成が複雑になってしまう。   By the way, in the digital still camera having such a configuration, since the posture sensor is required to detect the camera posture, the configuration becomes complicated.

また、撮像画像データから人間の顔領域を検出し、当該顔の方向から撮像画像データの縦横方向を判別する手法が提案されている(特開2006−109175公報)が、撮像画像データに複数の人間の顔が存在する場合については何ら考慮されておらず、かかる場合に撮像画像データの縦横方向を正しく判別することができないという問題があった。   In addition, a technique for detecting a human face area from captured image data and discriminating the vertical and horizontal directions of the captured image data from the direction of the face has been proposed (Japanese Patent Laid-Open No. 2006-109175). No consideration is given to the case where a human face is present, and in such a case, there is a problem in that the vertical and horizontal directions of the captured image data cannot be correctly determined.

本発明は以上の点を考慮してなされたもので、簡易な構成で、かつ複数人の顔が存在する場合であっても正確に画像データの縦横方向を判別することができる画像処理装置を提案しようとするものである。   The present invention has been made in consideration of the above points, and provides an image processing apparatus that has a simple configuration and can accurately determine the vertical and horizontal directions of image data even when a plurality of faces are present. It is what we are going to propose.

かかる課題を解決するため本発明においては、画像データに含まれる人物の顔領域を検出顔領域として検出し、画像データが表す平面に対する垂直方向を回転軸としたときの検出顔領域の回転角であるロール顔角度に基づいて画像データに含まれる複数の検出顔領域の縦横方向をそれぞれ判別し、当該複数の検出顔領域の判別結果に基づいて画像データの縦横方向を判別するようにした。   In order to solve such a problem, in the present invention, a human face area included in image data is detected as a detected face area, and the rotation angle of the detected face area when the direction perpendicular to the plane represented by the image data is taken as the rotation axis is used. The vertical and horizontal directions of a plurality of detected face areas included in the image data are determined based on a certain roll face angle, and the vertical and horizontal directions of the image data are determined based on the determination results of the detected face areas.

これにより、カメラ姿勢を検出するためのセンサがなくても画像データから検出された複数の検出顔領域に基づいて画像データの縦横方向を判別できる。   Thus, the vertical and horizontal directions of the image data can be determined based on a plurality of detected face areas detected from the image data without a sensor for detecting the camera posture.

また本発明においては、画像データから人物の顔領域を検出顔領域として検出し、画像データが表す平面に対する垂直方向を回転軸とするロール顔角度に基づいて判別された検出顔領域の縦横方向と、当該検出顔領域に対する信頼度とに基づいて画像データの縦横方向を判別するようにした。   In the present invention, the human face area is detected from the image data as a detected face area, and the detected face area is determined based on the roll face angle with the vertical direction with respect to the plane represented by the image data as the rotation axis. The vertical and horizontal directions of the image data are determined based on the reliability with respect to the detected face area.

これにより、カメラ姿勢を検出するためのセンサがなくても画像データから検出された検出顔領域の数に拘らず、当該検出顔領域に基づいて画像データの縦横方向を判別できる。   Thus, the vertical and horizontal directions of the image data can be determined based on the detected face area regardless of the number of detected face areas detected from the image data without a sensor for detecting the camera posture.

本発明によれば、カメラ姿勢を検出するためのセンサがなくても画像データから検出された複数の検出顔領域に基づいて画像データの縦横方向を判別でき、かくして簡易な構成で、かつ複数人の顔が存在する場合であっても正確に画像データの縦横方向を判別することができる画像処理装置、画像方向判別方法及び画像方向判別プログラム、再生装置、再生方法及び再生プログラム、並びにデジタルスチルカメラを実現できる。   According to the present invention, it is possible to determine the vertical and horizontal directions of image data based on a plurality of detected face regions detected from image data without a sensor for detecting the camera posture, and thus a simple configuration and a plurality of people. PROCESSING DEVICE, IMAGE DIRECTION DETERMINING METHOD, IMAGE DIRECTION DETERMINING PROGRAM, REPRODUCING DEVICE, REPRODUCING METHOD AND REPRODUCING PROGRAM, AND DIGITAL STILL CAMERA Can be realized.

本発明によれば、カメラ姿勢を検出するためのセンサがなくても画像データから検出された検出顔領域の数に拘らず、当該検出顔領域に基づいて画像データの縦横方向を判別でき、かくして簡易な構成で、かつ複数人の顔が存在する場合であっても正確に画像データの縦横方向を判別することができる画像処理装置を実現できる。   According to the present invention, the vertical and horizontal directions of image data can be determined based on the detected face area, regardless of the number of detected face areas detected from the image data, without a sensor for detecting the camera posture. An image processing apparatus can be realized that has a simple configuration and can accurately determine the vertical and horizontal directions of image data even when there are a plurality of faces.

以下、図面について、本発明の一実施の形態を詳述する。   Hereinafter, an embodiment of the present invention will be described in detail with reference to the drawings.

(1)全体構成
図1において1は、全体としてデジタルスチルカメラの全体構成を示し、図示しないCPU(Central Processing Unit )、ROM(Read Only Memory)及びRAM(Random Access Memory)から構成される制御部2がデジタルスチルカメラ1の全体を統括的に制御するようになされている。制御部2は、ROM又はフラッシュメモリ5に格納されている各種基本プログラムや画像方向判別プログラム等をRAMに展開することによって、これらのプログラムに基づいて各種処理や後述する画像方向判別処理及び後述する画像データ表示処理を実行するようになされている。
(1) Overall Configuration 1 in FIG. 1 shows the overall configuration of a digital still camera as a whole, and a control unit including a CPU (Central Processing Unit), a ROM (Read Only Memory), and a RAM (Random Access Memory) not shown. 2 controls the entire digital still camera 1 in an integrated manner. The control unit 2 develops various basic programs and image direction determination programs stored in the ROM or the flash memory 5 in the RAM, and thereby performs various processes based on these programs, image direction determination processing described later, and later described. An image data display process is executed.

制御部2は、人物を撮像するときに用いられる顔検出モード、風景をメインとして撮像するときに用いられる風景モード、運動中の被写体を撮像するときに用いられる運動モードなど複数の撮像モードを有しており、操作部6を介した操作入力により、撮像される被写体に応じてこの撮像モードをユーザに設定させる。   The control unit 2 has a plurality of imaging modes such as a face detection mode used when imaging a person, a landscape mode used when imaging a landscape as a main, and an exercise mode used when imaging a moving subject. In response to an operation input via the operation unit 6, the user is caused to set the imaging mode according to the subject to be imaged.

制御部2は、撮像モードに応じて撮像される被写体に対して最適になるように予め定められている絞りや焦点深度、シャッタ速度などの撮像条件を設定し、ユーザの要求に応じて撮像処理を実行する。   The control unit 2 sets imaging conditions such as an aperture, a depth of focus, and a shutter speed that are set in advance so as to be optimal for a subject to be imaged according to the imaging mode, and performs an imaging process according to a user request. Execute.

具体的に制御部2は、例えば操作部6が有する図示しないシャッタボタンがユーザによって押下されることにより、操作部6から撮像要求信号が供給されると、設定された撮像モードに対応する撮像条件で撮像処理を実行する。   Specifically, for example, when an imaging request signal is supplied from the operation unit 6 by a user pressing a shutter button (not shown) included in the operation unit 6, the control unit 2 captures an imaging condition corresponding to the set imaging mode. The imaging process is executed at.

制御部2は、図示しないシャッタ機構を制御してレンズ群7から撮像光を取り込むと共に、当該レンズ群7を通過してイメージセンサ8上で結像した撮像光を当該イメージセンサ8によって光電変換し、撮像信号として信号処理部9へ送出する。   The control unit 2 controls a shutter mechanism (not shown) to capture imaging light from the lens group 7 and photoelectrically converts the imaging light that has passed through the lens group 7 and formed an image on the image sensor 8 by the image sensor 8. The image signal is sent to the signal processing unit 9.

制御部2は、供給された撮像信号に対して、信号処理部9によってガンマ補正処理やAGC(Auto Gain Control)処理、及びアナログデジタル変換処理を施すことにより、撮像画像データを生成し、当該撮像画像データを画像RAM4に一時記憶すると共に、当該画像RAM4から当該撮像画像データを読み出して画像処理部11に供給する。   The control unit 2 generates captured image data by performing gamma correction processing, AGC (Auto Gain Control) processing, and analog-digital conversion processing on the supplied imaging signal by the signal processing unit 9, and performs imaging The image data is temporarily stored in the image RAM 4, and the captured image data is read from the image RAM 4 and supplied to the image processing unit 11.

制御部2は、画像処理部11によって撮像画像データに対して所定の圧縮処理を実行することにより圧縮画像データを生成し、これを画像記憶部12に供給して記憶するようになされている。   The control unit 2 generates compressed image data by executing a predetermined compression process on the captured image data by the image processing unit 11, supplies the compressed image data to the image storage unit 12, and stores the compressed image data.

また制御部2は、現在の撮像モードが顔検出モードに設定されている場合には、上述した撮像処理を実行すると共に、画像方向判別処理を実行するようになされている。なお、この画像方向判別処理については後述する。   In addition, when the current imaging mode is set to the face detection mode, the control unit 2 executes the above-described imaging process and the image direction determination process. This image direction discrimination process will be described later.

一方制御部2は、ユーザの操作部6に対する操作入力に応じて、圧縮画像データに基づく撮像画像をLCD(Liquid Crystal Display)などでなる表示部13に表示する旨の表示要求信号が操作部6から供給されると、画像記憶部12から圧縮画像データを読み出して画像処理部11へ送出する。   On the other hand, the control unit 2 receives a display request signal for displaying a captured image based on the compressed image data on a display unit 13 such as an LCD (Liquid Crystal Display) in response to an operation input to the operation unit 6 by the user. , The compressed image data is read from the image storage unit 12 and sent to the image processing unit 11.

制御部2は、画像処理部11によって圧縮画像データを伸長して撮像画像データを生成すると、当該撮像画像データに対して後述する画像データ表示処理を実行し、当該撮像画像データを表示部13に供給する。この結果、表示部13には、圧縮画像データに基づく撮像画像が表示されるようになされている。   When the image processing unit 11 decompresses the compressed image data to generate captured image data, the control unit 2 executes image data display processing (described later) on the captured image data, and the captured image data is displayed on the display unit 13. Supply. As a result, a captured image based on the compressed image data is displayed on the display unit 13.

他方制御部2は、外部インターフェース14に例えばパーソナルコンピュータなどの外部機器(図示せず)が接続された状態で、圧縮画像データを供給する旨の供給要求信号が当該外部インターフェース14から供給されると、画像記憶部12から圧縮画像データを読み出し、外部インターフェース14を介して当該圧縮画像データを外部機器に供給するようになされている。   On the other hand, the control unit 2 receives a supply request signal for supplying compressed image data from the external interface 14 in a state where an external device (not shown) such as a personal computer is connected to the external interface 14. The compressed image data is read from the image storage unit 12 and the compressed image data is supplied to an external device via the external interface 14.

(2)顔検出モードにおける画像方向判別処理
扁平な略直方体形状でなるデジタルスチルカメラ1は、図2(A)に示すように、当該デジタルスチルカメラ1の姿勢(以下、これをカメラ姿勢と呼ぶ)が表示部13を有する筐体面1Aの長手方向が水平でなる姿勢(以下、これを横姿勢と呼ぶ)のときに、図2(B)に示すように、撮像画像における長手方向が水平となる(以下、これを横方向画像と呼ぶ)状態で撮像する。
(2) Image Direction Discriminating Process in Face Detection Mode As shown in FIG. 2A, the digital still camera 1 having a flat, substantially rectangular parallelepiped shape is a posture of the digital still camera 1 (hereinafter referred to as a camera posture). ) Is a posture in which the longitudinal direction of the housing surface 1A having the display unit 13 is horizontal (hereinafter referred to as a horizontal posture), as shown in FIG. 2B, the longitudinal direction in the captured image is horizontal. (Hereinafter referred to as a horizontal image).

一方デジタルスチルカメラ1は、図3(A)に示すように、当該筐体面1Aの長手方向が鉛直方向でなる姿勢(以下、これを縦姿勢と呼ぶ)のときに、図3(B)に示すように撮像画像における長手方向が鉛直方向となる(以下、これを縦方向画像と呼ぶ)状態で撮像する。   On the other hand, as shown in FIG. 3A, the digital still camera 1 is shown in FIG. 3B when the casing surface 1A is in a posture in which the longitudinal direction is a vertical direction (hereinafter referred to as a vertical posture). As shown, the image is picked up in a state where the longitudinal direction in the picked-up image is the vertical direction (hereinafter referred to as a vertical image).

そしてデジタルスチルカメラ1は、撮像時のカメラ姿勢に拘らず、横方向画像でなる撮像画像データを生成する。   The digital still camera 1 generates captured image data composed of lateral images regardless of the camera posture at the time of imaging.

しかしながら通常ユーザは、撮像画像を表示部13に表示する際、カメラ姿勢を横姿勢(図2(B))に固定した状態で表示部13に表示された撮像画像を確認することが多いため、横姿勢で撮像された撮像画像データをそのまま横方向画像として表示し、縦姿勢で撮像された撮像画像データを回転させることにより縦方向画像として表示することが好ましい。   However, since the normal user often checks the captured image displayed on the display unit 13 in a state where the camera posture is fixed to the horizontal posture (FIG. 2B) when displaying the captured image on the display unit 13. It is preferable to display the captured image data captured in the horizontal posture as it is as a horizontal image, and display it as a vertical image by rotating the captured image data captured in the vertical posture.

ここでユーザが人物を撮像する際に、当該人物の顔を寝かせた(目と口が水平方向に並ぶ)状態で撮像することは極めて稀であり、当該人物の顔が直立した(目と口が鉛直方向に並ぶ)状態で撮像することが圧倒的に多い。   Here, when a user captures a person, it is extremely rare that the person's face is laid down (eyes and mouth lined up horizontally), and the person's face is upright (eyes and mouth). Are overwhelmingly often imaged in a state where

そこで本実施の形態のデジタルスチルカメラ1では、顔検出モードにおいて、撮像画像データにおける顔領域が表す顔の角度(以下、これを顔角度と呼ぶ)を検出すると共に、当該顔角度に基づいて撮像時点における撮像画像の縦横方向を判別するようになされている。次に、この画像方向判別処理について説明する。   Therefore, in the digital still camera 1 of the present embodiment, in the face detection mode, the face angle represented by the face area in the captured image data (hereinafter referred to as the face angle) is detected, and imaging is performed based on the face angle. The vertical and horizontal directions of the captured image at the time are determined. Next, the image direction discrimination process will be described.

図4に示すように、上述した顔角度のうち、撮像画像データに基づく撮像画像が表示部13などに表示されたときに、当該撮像画像を有するXZ平面に垂直なY軸を中心に回転するロール(Roll)方向の角度をロール顔角度とする。   As shown in FIG. 4, when a captured image based on captured image data is displayed on the display unit 13 or the like among the face angles described above, the image rotates about the Y axis perpendicular to the XZ plane having the captured image. An angle in the roll direction is defined as a roll face angle.

すなわち図5(A)に示すように、ロール顔角度は、横方向画像でなる撮像画像データにおける鉛直方向(すなわち短手方向)をロール顔角度が0°となる基準軸SPとしたときの、当該基準軸SPに対する顔領域FAの上下方向の軸(以下、これを顔上下軸FPと呼ぶ)の角度である。なお、当該顔上下軸FPが基準軸SPから時計回りに回転したときのロール顔角度を正、反時計回りに回転したときのロール顔角度を負とする。   That is, as shown in FIG. 5 (A), the roll face angle is obtained when the vertical direction (that is, the short side direction) in the captured image data that is a lateral image is used as the reference axis SP with the roll face angle being 0 °. This is the angle of the vertical axis of the face area FA with respect to the reference axis SP (hereinafter referred to as the face vertical axis FP). The roll face angle when the face vertical axis FP is rotated clockwise from the reference axis SP is positive, and the roll face angle when the face vertical axis FP is rotated counterclockwise is negative.

例えば図5(B)に示すように、デジタルスチルカメラ1を−70°(すなわち反時計回りに70°)回転させた状態で直立した人物の顔を撮像すると、図5(C)に示すように、撮像画像におけるロール顔角度は時計回りに70°回転することになり、当該顔角度は+70°となる。   For example, as shown in FIG. 5B, when the face of an upright person is imaged while the digital still camera 1 is rotated by −70 ° (that is, 70 ° counterclockwise), as shown in FIG. 5C. In addition, the roll face angle in the captured image is rotated by 70 ° clockwise, and the face angle is + 70 °.

また図4に示すように、顔上下軸FPを中心として回転する方向をヨー(Yaw)方向と定義し、このヨー方向における顔角度をヨー顔角度とする。このヨー顔角度は、図4に示すように目及び口を含んだ平面である顔領域FAとXZ平面との成す角度である。   Also, as shown in FIG. 4, the direction of rotation about the face vertical axis FP is defined as the yaw direction, and the face angle in this yaw direction is defined as the yaw face angle. The yaw face angle is an angle formed by the face area FA, which is a plane including eyes and mouth, and the XZ plane, as shown in FIG.

すなわち図6(A)及び(B)に示すように、顔領域FAが正面を向いている(当該顔領域FAがXZ平面上に存在する)ときに基準の0°となり、図4の顔領域FAより下方向(口側)からみて時計回りに回転したときに正、反時計回りに回転したときに負の角度となる。なおこのヨー顔角度は顔上下軸FPを回転軸としているため、上述したロール顔角度の変化に応じて顔上下軸FPの方向がXZ平面内で変化することになる。   That is, as shown in FIGS. 6A and 6B, when the face area FA is facing the front (the face area FA exists on the XZ plane), the reference angle is 0 °, and the face area shown in FIG. The angle is positive when rotated clockwise as viewed from below the FA (mouth side), and negative when rotated counterclockwise. Since the yaw face angle has the face vertical axis FP as the rotation axis, the direction of the face vertical axis FP changes in the XZ plane according to the change in the roll face angle described above.

例えば図6(C)に示すように、−40°のヨー角度を有する顔領域FA(破線で示す仮想平面YP上に存在)では、当該顔領域FAの正面が実線で示すXZ平面と比してヨー方向に−40°回転している。また、図6(D)に示すように、同じ−40°のヨー顔角度を有する顔領域FAであっても、顔上下軸FPが変化するとその回転方向(ヨー方向)も同様に変化することになる。   For example, as shown in FIG. 6C, in the face area FA having a yaw angle of −40 ° (present on the virtual plane YP indicated by the broken line), the front of the face area FA is compared with the XZ plane indicated by the solid line. -40 degrees in the yaw direction. Further, as shown in FIG. 6D, even in the face area FA having the same −40 ° yaw face angle, when the face vertical axis FP is changed, the rotation direction (yaw direction) is similarly changed. become.

そして現在の撮像モードが顔検出モードに設定されている場合、デジタルスチルカメラ1の制御部2(図1)は、撮像処理において信号処理部9によって生成される撮像画像データを画像処理部11ではなく、顔検出ブロック20の画像サイズ変換部22へ供給する。   When the current imaging mode is set to the face detection mode, the control unit 2 (FIG. 1) of the digital still camera 1 uses the image processing unit 11 to capture the captured image data generated by the signal processing unit 9 in the imaging process. Instead, it is supplied to the image size conversion unit 22 of the face detection block 20.

顔検出ブロック20では、制御部2から供給される各種制御信号などに基づいてコントローラ21が画像サイズ変換部22、画像メモリ23、相関判定部24及び基準顔データ記憶部25を制御することにより、撮像画像データから人物の顔領域FAを検出顔領域として検出すると共に、当該検出顔領域のロール顔角度に基づいて撮像画像の方向を判別する画像方向判別処理を実行するようになされている。   In the face detection block 20, the controller 21 controls the image size conversion unit 22, the image memory 23, the correlation determination unit 24, and the reference face data storage unit 25 based on various control signals supplied from the control unit 2. A human face area FA is detected as a detected face area from the captured image data, and an image direction determination process is performed to determine the direction of the captured image based on the roll face angle of the detected face area.

すなわち信号処理部9から撮像画像データが供給されると、画像サイズ変換部22は、コントローラ21から供給される倍率を表す画像サイズ信号に従って、撮像画像データが表す撮像画像を様々な画像サイズに変換してサイズ変換画像データを生成し、さらにこのサイズ変換画像データから例えば任意に抽出された基準点からの輝度差を算出することにより特徴画像データを生成する。   That is, when the captured image data is supplied from the signal processing unit 9, the image size conversion unit 22 converts the captured image represented by the captured image data into various image sizes in accordance with the image size signal representing the magnification supplied from the controller 21. Then, size-converted image data is generated, and feature image data is generated by calculating a luminance difference from a reference point arbitrarily extracted from the size-converted image data, for example.

さらに画像サイズ変換部22は、特徴画像データを中心部分から順に所定のサイズに切り出して、切出特徴画像データを生成し、元の特徴画像データにおける当該切出特徴画像データの位置を表す座標情報及び当該切出特徴画像データの拡大率又は縮小率を表す倍率情報を当該切出特徴画像データに付加し、当該切出特徴画像データを画像メモリ23に送出する。   Further, the image size conversion unit 22 cuts out the feature image data into a predetermined size in order from the central portion, generates the cut out feature image data, and expresses the coordinate information indicating the position of the cut out feature image data in the original feature image data Then, magnification information indicating the enlargement ratio or reduction ratio of the cutout feature image data is added to the cutout feature image data, and the cutout feature image data is sent to the image memory 23.

画像メモリ23は、コントローラ21から供給されるメモリアドレスに従って切出特徴画像データを一時記憶すると共に、当該コントローラ21から供給されるタイミング信号及びメモリアドレスに従って当該切出特徴画像データを読み出し、相関判定部24に送出する。   The image memory 23 temporarily stores the cutout feature image data in accordance with the memory address supplied from the controller 21, and reads out the cutout feature image data in accordance with the timing signal and the memory address supplied from the controller 21. 24.

また基準顔データ記憶部25には、切出特徴画像データの比較対象となる基準顔データとして、かつ様々な顔角度(ただしロール顔角度は0°)でなる複数の基準顔データと、当該基準顔データのヨー顔角度(以下、これを基準顔角度情報と呼ぶ)及び当該基準顔データにおける人物の顔領域FAの面積を表す基準顔面積情報とが対応付けられて記憶されている。この基準顔データは、例えば基準点からの輝度差を表す特徴データとして記憶されている。   In the reference face data storage unit 25, a plurality of reference face data having various face angles (however, the roll face angle is 0 °) as reference face data to be compared with the cut-out feature image data, and the reference The yaw face angle of the face data (hereinafter referred to as reference face angle information) and the reference face area information representing the area of the person's face area FA in the reference face data are stored in association with each other. The reference face data is stored as feature data representing a luminance difference from the reference point, for example.

相関判定部24は、基準顔データ記憶部25に対して基準顔データを取得する旨の取得コマンドを送出する。基準顔データ記憶部25は、要求された基準顔データを相関判定部24に送出する。   The correlation determination unit 24 sends an acquisition command for acquiring the reference face data to the reference face data storage unit 25. The reference face data storage unit 25 sends the requested reference face data to the correlation determination unit 24.

そして相関判定部24は、基準顔データ記憶部25から基準顔データを順次取得すると共に、各基準顔データをロール方向における正及び負の方向(XZ平面上で時計回り及び反時計回り)に例えば1°刻みの回転角度で±90°まで回転させ、画像メモリ23から取得した切出特徴画像データと比較する。相関判定部24は、相関値が所定の一致閾値以上となる基準顔データが存在した場合には、この切出特徴画像データから検出顔領域が検出されたと判別する。   Then, the correlation determination unit 24 sequentially acquires the reference face data from the reference face data storage unit 25 and, at the same time, sets each reference face data in the positive and negative directions in the roll direction (clockwise and counterclockwise on the XZ plane), for example. The rotation angle is rotated by ± 90 ° in 1 ° increments and compared with the cutout feature image data acquired from the image memory 23. The correlation determination unit 24 determines that the detected face area has been detected from the extracted feature image data when there is reference face data having a correlation value equal to or greater than a predetermined matching threshold.

このとき相関判別部24は、後述する顔領域信頼度の算出に用いられるパラメータPとして、倍率情報と基準顔面積情報とから検出顔領域の面積(以下、これを顔領域面積と呼ぶ)P1を算出する。また相関判別部24は、倍率情報と切出特徴画像データの座標情報とを用いて、特徴画像データにおける中心から検出顔領域の中心点までの距離(以下、これを顔領域中心距離と呼ぶ)P2を算出する。さらに相関判別部24は、基準顔データに付加された基準顔角度情報及び相関値を顔領域重要度のパラメータP(P3及びP4)としてそれぞれ使用する。   At this time, the correlation discriminating unit 24 uses the area of the detected face area (hereinafter referred to as the face area area) P1 from the magnification information and the reference face area information as a parameter P used for calculation of the face area reliability described later. calculate. Further, the correlation determining unit 24 uses the magnification information and the coordinate information of the cut out feature image data, and the distance from the center in the feature image data to the center point of the detected face region (hereinafter referred to as the face region center distance). P2 is calculated. Further, the correlation determination unit 24 uses the reference face angle information and the correlation value added to the reference face data as the face area importance degree parameter P (P3 and P4), respectively.

さらに相関判定部24は、検出顔領域が検出されたときの回転角度を検出顔領域についてのロール顔角度(以下、これを検出ロール顔角度と呼ぶ)とする。   Furthermore, the correlation determination unit 24 sets the rotation angle when the detected face area is detected as the roll face angle for the detected face area (hereinafter referred to as the detected roll face angle).

そして相関判定部24は、この検出ロール顔角度と、基準顔角度情報P3と、顔領域面積P1と、顔領域中心距離P2と、相関値とを制御部2に送出すると、画像メモリ23から次の切出特徴画像データを取得して基準顔データとの比較を継続する。このとき制御部2は、これらの検出ロール顔角度、顔領域面積P1、顔領域中心距離P2、基準顔角度情報P3、及び相関値P4を制御部2内のRAMに記憶する。   Then, when the correlation determination unit 24 sends the detected roll face angle, the reference face angle information P3, the face area area P1, the face area center distance P2, and the correlation value to the control unit 2, the correlation determination unit 24 outputs the next value from the image memory 23. The extracted feature image data is acquired and the comparison with the reference face data is continued. At this time, the control unit 2 stores the detected roll face angle, face region area P1, face region center distance P2, reference face angle information P3, and correlation value P4 in the RAM in the control unit 2.

これに対して切出特徴画像データに対して全ての基準顔データを回転させて比較したにも拘らず、相関値P4が所定の一致閾値以上となる基準顔データが存在しない場合には、相関判定部24は、当該切出特徴画像データに人物の顔領域が存在しないと判別し、画像メモリ23から次の切出特徴画像データを取得して各基準顔データとの比較を継続する。   On the other hand, when all the reference face data is rotated and compared with the cut-out feature image data and there is no reference face data with the correlation value P4 equal to or greater than the predetermined matching threshold, the correlation The determination unit 24 determines that there is no human face area in the cut out feature image data, acquires the next cut out feature image data from the image memory 23, and continues the comparison with each reference face data.

そして相関判定部24は、全ての切出特徴画像データについて、基準顔データとの比較を終了すると、供給された撮像画像データに対する顔の検出を終了する。   Then, when the comparison with the reference face data is finished for all the extracted feature image data, the correlation determination unit 24 finishes the face detection for the supplied captured image data.

このとき制御部2は、相関判定部24によって人物の顔が複数検出された場合には、顔方向判別処理(詳しくは後述する)によって撮像画像データの縦横方向を判別し、当該縦横方向(縦方向画像又は横方向画像である旨)を表す画像方向情報を生成し、この画像方向情報を撮像画像データに付加して画像処理部11に送出することにより、当該画像方向情報の付加された撮像画像データから圧縮画像データを生成すると、これを画像記憶部12に記憶するようになされている。   At this time, when a plurality of human faces are detected by the correlation determination unit 24, the control unit 2 determines the vertical and horizontal directions of the captured image data by face direction determination processing (details will be described later), and the vertical and horizontal directions (vertical and vertical) Image direction information indicating that the image is a directional image or a horizontal image), and adding the image direction information to the captured image data and sending it to the image processing unit 11, thereby capturing the image with the image direction information added thereto. When compressed image data is generated from image data, it is stored in the image storage unit 12.

なお制御部2は、図7に示すように、1つの撮像画像データに多数(11人以上)の顔が存在する場合には、10人の顔を検出した時点で顔の検出を終了し、顔方向判別処理を実行することにより、検出顔領域の検出に過大な時間を要してしまうことを防止するようになされている。なお、図では検出顔領域を斜線で示しており、以下の図についても同様とする。   As shown in FIG. 7, when there are a large number (11 or more) of faces in one captured image data, the control unit 2 ends the face detection when detecting 10 faces, By executing the face direction discrimination process, it is possible to prevent an excessive amount of time from being detected in detecting the detected face area. In the figure, the detected face area is indicated by diagonal lines, and the same applies to the following figures.

一方制御部2は、相関判定部24によって人物の顔が一つのみ検出された場合には、制御部2内のRAMから検出ロール顔角度を読み出し、検出ロール顔角度の絶対値が70°以上110°以下の範囲内であった場合には、撮像画像データが縦方向画像であると判別する。他方制御部2は、検出ロール顔角度の絶対値が0°以上70°未満、及び110°より大きく180°未満であった場合には、撮像画像データが横方向画像であると判別する。   On the other hand, when only one person's face is detected by the correlation determination unit 24, the control unit 2 reads the detected roll face angle from the RAM in the control unit 2, and the absolute value of the detected roll face angle is 70 ° or more. If it is within the range of 110 ° or less, it is determined that the captured image data is a vertical image. On the other hand, when the absolute value of the detected roll face angle is not less than 0 ° and less than 70 °, and greater than 110 ° and less than 180 °, the control unit 2 determines that the captured image data is a horizontal image.

そして制御部2は、判別された撮像画像の縦横方向を画像方向情報として撮像画像データに付加し、これらに基づく圧縮画像データを画像記憶部12に記憶するようになされている。   The control unit 2 adds the determined vertical and horizontal directions of the captured image to the captured image data as image direction information, and stores the compressed image data based on these in the image storage unit 12.

他方制御部2は、相関判定部24によって検出顔領域が一つも検出されなかった場合には、撮像画像データからそのまま圧縮画像データを生成し、画像記憶部12に記憶するようになされている。   On the other hand, when no detected face area is detected by the correlation determining unit 24, the control unit 2 generates compressed image data as it is from the captured image data and stores the compressed image data in the image storage unit 12.

(3)顔方向判別処理
次に、画像方向判別処理において人物の顔が複数検出された場合に実行される顔方向判別処理について説明する。
(3) Face Direction Determination Processing Next, face direction determination processing that is executed when a plurality of human faces are detected in the image direction determination processing will be described.

図8に示すように、複数の人物が同時に撮像された撮像画像データにおいては、複数の検出顔領域における検出ロール顔角度がそれぞれ異なっていることが想定される。そこでデジタルスチルカメラ1は、撮像画像データにおける複数の検出顔領域の縦横方向をそれぞれ判別し、当該縦横方向に基づいて総合的に撮像画像データの縦横方向を判別する。   As shown in FIG. 8, in the captured image data in which a plurality of persons are captured simultaneously, it is assumed that the detected roll face angles in the plurality of detected face regions are different from each other. Therefore, the digital still camera 1 determines the vertical and horizontal directions of a plurality of detected face areas in the captured image data, and comprehensively determines the vertical and horizontal directions of the captured image data based on the vertical and horizontal directions.

すなわちデジタルスチルカメラ1における制御部2の顔方向判別部2Aは、検出ロール顔角度、顔領域面積P1、顔領域中心距離P2、基準顔角度情報P3及び相関値P4を制御部2内のRAMから読み出す。   That is, the face direction determination unit 2A of the control unit 2 in the digital still camera 1 obtains the detected roll face angle, the face region area P1, the face region center distance P2, the reference face angle information P3, and the correlation value P4 from the RAM in the control unit 2. read out.

複数の人物が同時に撮像された撮像画像データにおいては、図9に示すように、一般的に撮像の優先度が高い(すなわち被写体として撮像したい)人物がより手前にくることが多く、必然的に検出顔領域の面積が大きくなる。また図8に示したように、子供(人物A)と比較して顔面積の大きい大人(人物B及びC)は寝そべったり顔を大きく傾けるポーズをとることが少ない。   In captured image data in which a plurality of persons are captured at the same time, as shown in FIG. 9, generally, a person with a high priority of imaging (that is, a person who wants to image as a subject) often comes to the front. The area of the detected face area is increased. In addition, as shown in FIG. 8, adults (persons B and C) having a larger face area than children (person A) rarely lie down or pose to tilt their faces.

従って、面積が大きい検出顔領域の縦横方向は他の検出顔領域と比較して撮像の主対象たる人物の顔領域である可能性が高く、信頼度が高いといえる。そこで顔方向判別部2Aは、顔領域面積P1が大きい検出顔領域に対する値が高くなるように面積評価値を算出する。   Therefore, it can be said that the vertical and horizontal directions of the detection face area having a large area are more likely to be the face area of the person who is the main subject of imaging compared with other detection face areas, and the reliability is high. Therefore, the face direction determination unit 2A calculates an area evaluation value so that a value for a detected face area having a large face area area P1 is high.

すなわち顔方向判別部2Aは、顔領域面積P1に対して所定の重み付け係数W1を乗算することにより、各検出顔領域についての面積評価値を算出する。   That is, the face direction determination unit 2A calculates an area evaluation value for each detected face area by multiplying the face area area P1 by a predetermined weighting coefficient W1.

また、複数の人物が同時に撮像された撮像画像データにおいては、図9に示したように、一般的に撮像の主対象たる人物(図では人物B)が中心に位置することが多い。従って、中心に位置する検出顔領域の縦横方向は他の検出顔領域と比較して撮像の主対象たる人物の顔領域である可能性が高く、信頼度が高いといえる。   Further, in captured image data in which a plurality of persons are imaged simultaneously, as shown in FIG. 9, generally, the person who is the main subject of imaging (person B in the figure) is often located at the center. Accordingly, it can be said that the vertical and horizontal directions of the detection face area located at the center are more likely to be the face area of the person who is the main subject of imaging compared to other detection face areas, and the reliability is high.

そこで顔方向判別部2Aは、撮像画像データにおける中心点から検出顔領域の中心までの距離を表す顔領域中心距離P2を用い、中心に近い検出顔領域に対する値が高くなるように中心評価値を算出する。   Therefore, the face direction determination unit 2A uses the face area center distance P2 representing the distance from the center point to the center of the detected face area in the captured image data, and sets the center evaluation value so that the value for the detected face area close to the center becomes high. calculate.

すなわち顔方向判別部2Aは、中心に近い検出顔領域に対するレベルが高くなるように顔領域中心距離P2を例えば10段階にレベル分けし、当該レベルに対して所定の重み付け係数W2を乗算することにより、各検出顔領域についての中心評価値を算出する。   That is, the face direction determination unit 2A divides the face area center distance P2 into, for example, 10 levels so that the level for the detected face area close to the center is increased, and multiplies the level by a predetermined weighting coefficient W2. The center evaluation value for each detected face area is calculated.

さらに複数の人物が同時に撮像された撮像画像データにおいては、図9に示したように、一般的に撮像の主対象たる人物が正面(デジタルスチルカメラ1の方向)を向いているとき(すなわちヨー顔角度が0°のとき、図では人物B)に合わせて撮像されている可能性が高く、一方でただの通行人など、撮像しようとしていない人物(図では人物A)は、全く異なる方向を向いている場合が多い。   Furthermore, in the captured image data in which a plurality of persons are captured at the same time, as shown in FIG. 9, generally when the person who is the main subject of imaging is facing the front (in the direction of the digital still camera 1) (ie, yaw) When the face angle is 0 °, it is highly possible that an image is captured in accordance with the person B) in the figure, while a person who is not trying to image (person A in the figure) such as a passerby is in a completely different direction. Often it is suitable.

従ってヨー顔角度の絶対値が小さい検出顔領域の縦横方向は他の検出顔領域と比較して撮像の主対象たる人物の顔領域である可能性が高く、信頼度が高いといえる。そこで顔方向判別部2Aは、基準顔角度情報P3が表す検出顔領域のヨー顔角度を用い、当該ヨー角度が0°に近く、検出顔領域が正面に向いているほど高くなるように正面評価値を算出する。   Therefore, it can be said that the vertical and horizontal directions of the detected face area where the absolute value of the yaw face angle is small are more likely to be the face area of the person who is the main subject of imaging compared with other detected face areas, and the reliability is high. Therefore, the face direction determination unit 2A uses the yaw face angle of the detected face area represented by the reference face angle information P3, and evaluates the front so that the yaw angle is closer to 0 ° and becomes higher as the detected face area faces the front. Calculate the value.

すなわち顔方向判別部2Aは、ヨー顔角度の絶対値に対して検出顔領域が正面に向いているほど高くなるように例えば10段階にレベル分けし、当該レベルに対して所定の重み付け係数W3を乗算することにより、各検出顔領域についての正面評価値を算出する。   That is, the face direction discriminating unit 2A divides the absolute value of the yaw face angle into, for example, 10 levels so that the detected face region is higher in front, and a predetermined weighting coefficient W3 is assigned to the level. By multiplying, the front evaluation value for each detected face area is calculated.

またデジタルスチルカメラ1は、基準顔データとの一致率を表す相関値P4が高いほど、検出顔領域が間違いなく人物の顔である可能性(すなわち人物の顔らしさ)が高くなり、また検出ロール顔角度が正しく検出されている可能性が高く、相関値P4が高い検出顔領域の縦横方向は他の検出顔領域と比較して信頼度が高いといえる。そこで顔方向判別部2Aは、検出顔領域についての相関値P4を用い、当該相関値P4が高いほど値が高くなるように相関評価値を算出する。   In the digital still camera 1, the higher the correlation value P4 representing the matching rate with the reference face data, the higher the possibility that the detected face area is definitely a person's face (that is, the person's face-likeness). It is highly possible that the face angle is correctly detected, and the vertical and horizontal directions of the detected face area having a high correlation value P4 can be said to have higher reliability than other detected face areas. Therefore, the face direction determination unit 2A uses the correlation value P4 for the detected face region, and calculates a correlation evaluation value so that the value increases as the correlation value P4 increases.

すなわち顔方向判別部2Aは、相関値P4に対して所定の重み付け係数W4を乗算することにより、各検出顔領域についての相関評価値を算出する。   That is, the face direction determination unit 2A calculates a correlation evaluation value for each detected face region by multiplying the correlation value P4 by a predetermined weighting coefficient W4.

なお顔方向判別部2Aは、各値に重み付け係数W1、W2、W3及びW4を乗算することにより、各評価値(面積評価値、中心評価値、相関評価値及び正面評価値)の水準を揃えると共に、各評価値の重要度に応じて重み付け係数W1、W2、W3及びW4の値を調整している。   The face direction discriminating unit 2A multiplies each value by weighting coefficients W1, W2, W3, and W4 to align the levels of the respective evaluation values (area evaluation value, center evaluation value, correlation evaluation value, and front evaluation value). At the same time, the values of the weighting coefficients W1, W2, W3 and W4 are adjusted according to the importance of each evaluation value.

そして顔方向判別部2Aは、各評価値を加算することにより、各検出顔領域について、撮像画像データにおける他の検出顔領域と比較したときの当該検出顔領域の信頼度を総合的に表す顔領域信頼度を算出することができる。   Then, the face direction determination unit 2A adds each evaluation value, and for each detected face area, a face that comprehensively represents the reliability of the detected face area when compared with other detected face areas in the captured image data The area reliability can be calculated.

例えば図8及び図9では、中心に最も近くて顔面積が最も大きく、かつ正面を向いている人物Bは、人物Aや人物Cと相関値P4がほぼ同程度であれば、当該人物Aや人物Cよりも高い顔検出信頼度を得ることになる。   For example, in FIGS. 8 and 9, a person B that is closest to the center, has the largest face area, and faces the front has a correlation value P4 that is almost the same as that of person A or person C. The face detection reliability higher than that of the person C is obtained.

次に顔方向判別部2Aは、顔領域信頼度に基づいて各検出顔領域の縦横方向をそれぞれ判別する。   Next, the face direction determination unit 2A determines the vertical and horizontal directions of each detected face area based on the face area reliability.

すなわち顔方向判別部2Aは、検出ロール顔角度の絶対値が70°以上110°以下の範囲内であった検出顔領域については、当該検出顔領域が縦方向画像において直立した状態にある縦検出顔領域であると判別する。他方顔方向判別部2Aは、検出ロール顔角度の絶対値が0°以上70°未満、及び110°より大きく180°未満であった検出顔領域については、当該検出顔領域が横方向画像において直立した状態にある横検出顔領域であると判別する。   That is, for the detected face area in which the absolute value of the detected roll face angle is in the range of 70 ° to 110 °, the face direction determination unit 2A performs vertical detection in which the detected face area is in an upright state in the vertical image. It is determined that the face area. On the other hand, the face direction discriminating unit 2A, for the detected face area whose absolute value of the detected roll face angle is not less than 0 ° and less than 70 ° and greater than 110 ° and less than 180 °, the detected face region is upright in the lateral image. It is determined that the face detection area is in the detected state.

顔方向判別部2Aは、縦検出顔領域についての顔領域信頼度に「−1」を乗算する一方、横検出顔領域についての顔領域信頼度に「+1」を乗算することにより、縦検出顔領域の顔領域信頼度を「負」として表し、横検出顔領域の顔領域信頼度を「正」として表す。   The face direction determination unit 2A multiplies the face area reliability for the vertically detected face area by “−1”, and multiplies the face area reliability for the horizontally detected face area by “+1” to thereby obtain the vertically detected face. The face area reliability of the area is expressed as “negative”, and the face area reliability of the side detection face area is expressed as “positive”.

そして顔方向判別部2Aは、顔領域信頼度を加算して加算総合値を算出し、当該加算総合値が「正」であるか「負」であるかを判別する。   Then, the face direction determination unit 2A calculates the sum total value by adding the face area reliability, and determines whether the sum total value is “positive” or “negative”.

顔方向判別部2Aは、加算総合値が「正」であると判別した場合、横検出顔領域についての顔領域信頼度の合計が縦検出顔領域についての顔領域信頼度の合計よりも大きく、撮像画像データ総体として横検出顔領域の信頼度が高いため、当該撮像画像データが横姿勢で撮像された横方向画像であると判別する。   When the face direction determination unit 2A determines that the total addition value is “positive”, the total face area reliability for the horizontally detected face area is larger than the total face area reliability for the vertically detected face area, Since the reliability of the lateral detection face area is high as the entire captured image data, it is determined that the captured image data is a lateral image captured in a horizontal posture.

そして制御部2は、この撮像画像データが横方向画像である旨を表す画像方向情報を生成し、当該撮像画像データに付加するようになされている。   And the control part 2 produces | generates the image direction information showing that this captured image data is a horizontal direction image, and is made to add to the said captured image data.

これに対して顔方向判別部2Aは、加算総合値が「負」であると判別した場合、縦検出顔領域についての顔領域信頼度の合計が横検出顔領域についての顔領域信頼度の合計よりも大きく、撮像画像データ総体として縦検出顔領域の信頼度が高いため、当該撮像画像データが縦検出顔領域が直立した状態である縦方向画像であると判別する。   On the other hand, when the face direction determination unit 2A determines that the total addition value is “negative”, the sum of the face area reliability for the vertically detected face area is the sum of the face area reliability for the horizontally detected face area. Since the reliability of the vertical detection face area is high as the entire captured image data, it is determined that the captured image data is a vertical image in which the vertical detection face area is upright.

このとき制御部2は、縦検出顔についての検出ロール顔角度を合計し、この合計値が「正」であった場合には、撮像画像データを表示する際に−90°回転させる旨を表す画像方向情報を生成する一方、当該合計値が「負」であった場合には、撮像画像データを表示する際に+90°回転させる旨を表す画像方向情報を生成し、当該撮像画像データに付加するようになされている。   At this time, the control unit 2 adds up the detected roll face angles for the vertically detected face, and when the total value is “positive”, it represents that the image is rotated by −90 ° when the captured image data is displayed. While generating image direction information, if the total value is “negative”, image direction information indicating that the imaged image data is rotated by + 90 ° is generated and added to the imaged image data. It is made to do.

例えば顔方向判別部2Aは、図9に示す撮像画像データに対して、撮像された3人物(人物A、B及びC、検出ロール顔角度が0°、0°及び−20°)がいずれも横検出顔領域であると判別し、この撮像画像データを横方向画像と判別することができる。   For example, the face direction discriminating unit 2A has three captured persons (persons A, B, and C, detection roll face angles of 0 °, 0 °, and −20 °) with respect to the captured image data shown in FIG. It is determined that the face detection area is a horizontal detection face area, and the captured image data can be determined as a horizontal image.

また顔方向判別部2Aは、図8に示す撮像画像データに対して、撮像された3人物のうち、2人物(人物B及びC、検出ロール顔角度が0°及び−20°)が横検出顔領域、1人物(人物A、検出ロール顔角度が−90°)が縦検出顔領域と判別し、各検出顔領域の信頼度を表す顔領域信頼度に基づいて判別することにより、撮像画像データを横検出顔領域が直立した状態である横方向画像と判別することができる。   Further, the face direction discriminating unit 2A laterally detects two persons (persons B and C, detection roll face angles of 0 ° and −20 °) among the three captured people from the captured image data shown in FIG. A face area, one person (person A, detection roll face angle is −90 °) is determined as a vertically detected face area, and the captured image is determined based on the face area reliability indicating the reliability of each detected face area. The data can be discriminated as a lateral image in which the lateral detection face area is upright.

さらに図10(A)に示す撮像画像データに対して、顔方向判別部2Aは、撮像された2人物(検出ロール顔角度がいずれも−90°)がいずれも縦検出顔領域であると判別し、この撮像画像データを縦検出顔領域が直立した状態である縦方向画像と判別する。このとき制御部2は、検出ロール顔角度の合計値が「負」となることから、表示する際に+90°回転させる旨を表す画像方向情報を生成することになる。   Further, with respect to the captured image data shown in FIG. 10A, the face direction determination unit 2A determines that the two captured persons (the detected roll face angles are both −90 °) are both vertical detection face areas. Then, the captured image data is determined as a vertical image in which the vertical detection face area is upright. At this time, since the total value of the detected roll face angles becomes “negative”, the control unit 2 generates image direction information indicating that the display roll is rotated by + 90 °.

このように、デジタルスチルカメラ1は、撮像画像データから複数の検出顔領域が検出された場合には、各検出顔領域が直立状態にあるときの撮像画像データの縦横方向をそれぞれ判別すると共に、顔領域信頼度を各検出顔領域についてそれぞれ算出することにより各検出顔領域に対する信頼度を当該各検出顔領域間における相対的な数値として表し、当該顔領域信頼度の合計を縦検出顔領域と横検出顔領域とで比較する。そしてデジタルスチルカメラ1は、顔領域信頼度の合計が大きく、信頼度が高い方の検出顔領域が直立した状態にあるときの縦横方向を当該撮像画像データの縦横方向であると判別するようにした。   As described above, when a plurality of detected face areas are detected from the captured image data, the digital still camera 1 determines the vertical and horizontal directions of the captured image data when each detected face area is in the upright state. By calculating the face area reliability for each detected face area, the reliability for each detected face area is expressed as a relative numerical value between the detected face areas, and the sum of the face area reliability is defined as a vertically detected face area. Compare with the side detection face area. Then, the digital still camera 1 determines that the vertical and horizontal directions when the detected face area having the higher reliability of the face area and the higher reliability is in the upright state are the vertical and horizontal directions of the captured image data. did.

すなわちデジタルスチルカメラ1は、過半数を占める検出顔領域が直立した状態にあると判別された撮像画像データの縦横方向を基本的に撮像画像データの縦横方向とすると共に、各検出顔領域に対する信頼度を表す数値を顔領域信頼度として算出し、当該顔領域信頼度の高い検出顔領域が直立した状態にあるときの撮像画像データの縦横方向を当該顔領域信頼度の低い検出顔領域よりも重要視することにより、正確に撮像画像の方向を判別することができるようになされている。   That is, the digital still camera 1 basically sets the vertical and horizontal directions of the captured image data determined that the majority of the detected face areas are in an upright state as the vertical and horizontal directions of the captured image data, and the reliability of each detected face area. Is calculated as the face area reliability, and the vertical and horizontal directions of the captured image data when the detected face area with the high face area reliability is in an upright state is more important than the detected face area with the low face area reliability. By viewing, it is possible to accurately determine the direction of the captured image.

(4)撮像画像データの表示
次に、かかる画像方向判別処理が施され、画像方向情報が付加された撮像画像データを表示する処理について説明する。
(4) Display of Captured Image Data Next, a process for displaying captured image data to which image direction determination processing is applied and image direction information is added will be described.

デジタルスチルカメラ1の制御部2(図1)は、ユーザの操作部6を介した操作入力により、撮像画像データを表示部13に表示する旨の要求がなされたことを認識すると、画像記憶部12から当該撮像画像データに対応する圧縮画像データを読み出し、これを画像処理部11に供給する。   When the control unit 2 (FIG. 1) of the digital still camera 1 recognizes that a request to display the captured image data on the display unit 13 is made by an operation input via the user operation unit 6, the image storage unit The compressed image data corresponding to the captured image data is read from 12 and supplied to the image processing unit 11.

制御部2は、画像処理部11によって圧縮画像データを伸長して撮像画像データを生成し、当該撮像画像データに付加された画像方向情報を確認する。   The control unit 2 decompresses the compressed image data by the image processing unit 11 to generate captured image data, and confirms the image direction information added to the captured image data.

このとき制御部2は、撮像画像データが横方向画像であることを表す画像方向情報が付加されていた場合には、当該撮像画像データを横方向画像としてそのまま表示部13に表示する(図2(B))。   At this time, when image direction information indicating that the captured image data is a horizontal image is added, the control unit 2 displays the captured image data as a horizontal image on the display unit 13 as it is (FIG. 2). (B)).

一方制御部2は、撮像画像データが縦方向画像であることを表す画像方向情報が付加されていた場合には、例えば図10(A)に示すような縦方向画像であると判別し、当該画像方向情報に応じて当該撮像画像データを90°又は−90°回転させると共に、図10(B)に示すように、表示部13の縦方向のサイズに合わせて撮像画像データを縮小して表示部13に表示する。   On the other hand, when the image direction information indicating that the captured image data is a vertical image is added, the control unit 2 determines that the image is a vertical image as illustrated in FIG. The captured image data is rotated by 90 ° or −90 ° in accordance with the image direction information, and the captured image data is reduced and displayed in accordance with the vertical size of the display unit 13 as shown in FIG. Displayed on the unit 13.

他方制御部2は、撮像画像データに撮像方向情報が付加されていない場合には、当該撮像画像データが顔検出モード以外の撮像モードで撮像されたため縦横方向が不明であると判別し、一般的に撮像される可能性が高い横方向画像として撮像画像データをそのまま表示部13に表示するようになされている。   On the other hand, when the imaging direction information is not added to the captured image data, the control unit 2 determines that the captured image data is captured in an imaging mode other than the face detection mode and thus the vertical and horizontal directions are unknown. The captured image data is displayed on the display unit 13 as it is as a lateral image that is highly likely to be captured.

これにより、制御部2は、デジタルスチルカメラ1を横姿勢にした状態で表示部13を視認しているユーザに対して、わざわざデジタルスチルカメラ1を回転させることなく、デジタルスチルカメラ1を横姿勢にしたままで縦横の双方向でなる撮像画像を適正な方向で視認させることができるようになされている。   As a result, the control unit 2 does not bother to rotate the digital still camera 1 with respect to the user who is viewing the display unit 13 with the digital still camera 1 in the horizontal posture. In this way, a captured image consisting of both vertical and horizontal directions can be viewed in an appropriate direction.

(5)画像方向判別処理手順
次に、画像方向判別プログラムに従って実行される画像方向判別処理手順について、図11に示すフローチャートを用いて説明する。
(5) Image Direction Determination Processing Procedure Next, an image direction determination processing procedure executed according to the image direction determination program will be described with reference to the flowchart shown in FIG.

デジタルスチルカメラ1は、図示しないシャッタがユーザによって押下されると、撮像処理を実行すると共に画像方向判別処理手順RT1を開始し、次のステップSP1へ移る。   When a shutter (not shown) is pressed by the user, the digital still camera 1 executes an imaging process and starts an image direction determination processing procedure RT1, and proceeds to the next step SP1.

ステップSP1において、デジタルスチルカメラ1は、現在の撮像モードが顔検出モードであるか否かについて判別し、否定結果が得られた場合には終了ステップへ移って処理を終了する一方、肯定結果が得られた場合には、次のステップSP2へ移る。   In step SP1, the digital still camera 1 determines whether or not the current imaging mode is the face detection mode. If a negative result is obtained, the digital still camera 1 proceeds to an end step and ends the process, while an affirmative result is obtained. If it is obtained, the process proceeds to the next step SP2.

ステップSP2において、デジタルスチルカメラ1は、撮像画像データから人物の顔領域の検出を行うと、次のステップSP3へ移る。   In step SP2, when the digital still camera 1 detects a human face area from the captured image data, the digital still camera 1 proceeds to the next step SP3.

ステップSP3において、デジタルスチルカメラ1は、撮像画像データから人物の顔領域として検出された検出顔領域が存在するか否かについて判別し、否定結果が得られた場合には終了ステップへ移って処理を終了する一方、肯定結果が得られた場合には、次のステップSP4へ移る。   In step SP3, the digital still camera 1 determines whether or not there is a detected face area detected as a human face area from the captured image data. If a negative result is obtained, the process proceeds to an end step. On the other hand, if a positive result is obtained, the process proceeds to the next step SP4.

ステップSP4において、デジタルスチルカメラ1は、検出顔領域が2以上であるか否かについて判別する。   In step SP4, the digital still camera 1 determines whether or not the detected face area is 2 or more.

ここで否定結果が得られた場合、このことは一つの検出顔領域に基づいて単純に撮像画像の方向を判別することができることを表しており、このときデジタルスチルカメラ1は、次のステップSP5へ移り、当該検出顔領域の検出ロール角度に基づいて撮像画像の方向を判別すると、次のステップSP15へ移る。   If a negative result is obtained here, this indicates that the direction of the captured image can be simply determined based on one detected face area. At this time, the digital still camera 1 performs the next step SP5. If the direction of the captured image is determined based on the detected roll angle of the detected face area, the process proceeds to the next step SP15.

これに対してステップSP4において肯定結果が得られた場合、このことは検出顔領域が複数存在することを表しており、このときデジタルスチルカメラ1は、次のステップSP7へ移って顔方向判別処理を実行する。   On the other hand, if an affirmative result is obtained in step SP4, this indicates that there are a plurality of detected face regions. At this time, the digital still camera 1 proceeds to the next step SP7 and performs face direction determination processing. Execute.

ステップSP7において、デジタルスチルカメラ1は、各検出顔領域の面積(すなわち検出顔領域の大きさ)を表す顔領域面積P1、撮像画像の中心から各検出顔領域までの距離(すなわち撮像画像データにおける検出顔領域の位置)を表す顔領域中心距離P2、各検出顔領域の顔上下軸FPを軸とした回転(すなわち検出顔領域の正面度)を表すヨー顔角度(基準顔角度情報P3)、各検出顔領域の基準顔データに対する一致率(すなわち人物の顔らしさ)を表す相関値P4に基づいて、各評価値(面積評価値、中心評価値、正面評価値及び相関評価値)の値を算出すると、次のステップSP8へ移る。   In step SP7, the digital still camera 1 determines the face area area P1 representing the area of each detected face area (that is, the size of the detected face area), the distance from the center of the captured image to each detected face area (that is, in the captured image data). A face area center distance P2 representing the position of the detected face area), a yaw face angle (reference face angle information P3) representing rotation about the face vertical axis FP of each detected face area (that is, the front degree of the detected face area) Based on the correlation value P4 representing the matching rate (that is, human face-likeness) with respect to the reference face data of each detected face area, the value of each evaluation value (area evaluation value, center evaluation value, front evaluation value and correlation evaluation value) is calculated. Once calculated, the process proceeds to the next step SP8.

ステップSP8において、デジタルスチルカメラ1は、各評価値を加算することにより、検出顔領域ごとに当該検出顔領域に対する総合的な信頼度を表す顔領域信頼度を算出すると、次のステップSP9へ移る。   In step SP8, when the digital still camera 1 calculates the face area reliability representing the total reliability for the detected face area for each detected face area by adding the evaluation values, the process proceeds to the next step SP9. .

ステップSP9において、デジタルスチルカメラ1は、検出ロール顔角度に基づいて、検出顔領域ごとに当該検出顔領域が直立した状態にあるときの撮像画像データが縦方向画像であるか横方向画像であるかを判別すると、次のステップSP10へ移る。   In step SP9, based on the detected roll face angle, the digital still camera 1 captures image data when the detected face area is in an upright state for each detected face area as a vertical image or a horizontal image. If it is discriminate | determined, it will move to following step SP10.

ステップSP10において、デジタルスチルカメラ1は、縦方向画像であると判別された縦検出顔領域についての顔領域信頼度に−1を乗算する一方、横方向画像であると判別された横検出顔領域についての顔領域信頼度に+1を乗算すると、次のステップSP11へ移る。   In step SP10, the digital still camera 1 multiplies the face area reliability of the vertical detection face area determined to be a vertical image by -1, while the horizontal detection face area determined to be a horizontal image. When the face area reliability of +1 is multiplied by +1, the process proceeds to the next step SP11.

ステップSP11において、デジタルスチルカメラ1は、全ての検出顔領域についての顔領域信頼度を加算して加算総合値を算出すると、次のステップSP12へ移る。   In step SP11, when the digital still camera 1 adds the face area reliability for all the detected face areas to calculate the sum total value, the process proceeds to the next step SP12.

ステップSP12において、デジタルスチルカメラ1は、加算総合値が正であるか負であるかを判別する。   In step SP12, the digital still camera 1 determines whether the added total value is positive or negative.

ここで否定結果が得られた場合、このことは各検出顔領域について判別された撮像画像の方向と、各検出顔領域の信頼度とを多数決的に勘案すると、総合的に撮像画像データが縦方向画像である可能性が高いことを表しており、このときデジタルスチルカメラ1は、ステップSP13へ移り、撮像画像データを縦方向画像と判別すると、次のステップSP15へ移る。   If a negative result is obtained here, this means that if the direction of the captured image determined for each detected face area and the reliability of each detected face area are considered in a majority manner, the captured image data is This indicates that there is a high possibility that the image is a directional image. At this time, the digital still camera 1 proceeds to step SP13, and if the captured image data is determined to be a vertical image, the process proceeds to the next step SP15.

これに対してステップSP12において肯定結果が得られた場合、このことは各検出顔領域の信頼度を多数決的に勘案すると、撮像画像データが横方向画像である可能性が高いことを表しており、このときデジタルスチルカメラ1は、ステップSP14へ移り、撮像画像データを横方向画像と判別すると、次のステップSP15へ移る。   On the other hand, if an affirmative result is obtained in step SP12, this means that the majority of the reliability of each detected face area is taken into consideration, and the captured image data is likely to be a horizontal image. At this time, the digital still camera 1 proceeds to step SP14. When the captured image data is determined to be a horizontal image, the process proceeds to the next step SP15.

ステップSP15において、デジタルスチルカメラ1は、撮像画像データがステップSP5、ステップSP13又はステップSP14において判別された縦横方向でなる撮像画像であることを表す画像方向情報を生成し、これを当該撮像画像データに付加すると、終了ステップに移り、処理を終了する。   In step SP15, the digital still camera 1 generates image direction information indicating that the captured image data is a captured image in the vertical and horizontal directions determined in step SP5, step SP13, or step SP14, and this is used as the captured image data. If it is added, the process proceeds to an end step and the process is terminated.

(6)画像データ表示処理手順
次に、画像方向判別プログラムに従って実行される画像データ表示処理手順について、図12に示すフローチャートを用いて説明する。
(6) Image Data Display Processing Procedure Next, an image data display processing procedure executed according to the image direction determination program will be described with reference to the flowchart shown in FIG.

デジタルスチルカメラ1は、ユーザによって撮像画像データを表示部13に表示する旨の要求がなされると、画像データ表示処理手順RT2を開始し、ステップSP31に移る。   When the user requests that the captured image data be displayed on the display unit 13, the digital still camera 1 starts the image data display processing procedure RT2, and proceeds to step SP31.

ステップSP31においてデジタルスチルカメラ1は、画像記憶部12から対応する圧縮画像データを読み出して伸長することにより生成された撮像画像データに画像方向情報が付加されているか否かについて判別する。   In step SP31, the digital still camera 1 determines whether or not image direction information is added to the captured image data generated by reading and decompressing the corresponding compressed image data from the image storage unit 12.

ここで否定結果が得られた場合、このことはこの撮像画像データが顔検出モード以外の撮像モードで撮像され、横方向画像の可能性が高いことを表しており、このときデジタルスチルカメラ1は、次のステップSP33へ移る。   If a negative result is obtained here, this means that the captured image data is captured in an imaging mode other than the face detection mode, and the possibility of a lateral image is high. At this time, the digital still camera 1 Then, the process proceeds to the next step SP33.

これに対してステップSP31において肯定結果が得られた場合、デジタルスチルカメラ1は、次のステップSP32へ移り、画像方向情報が横方向画像であることを表しているか否かについて判別する。   On the other hand, when a positive result is obtained in step SP31, the digital still camera 1 proceeds to the next step SP32 and determines whether or not the image direction information represents a horizontal image.

ここで肯定結果が得られた場合、このことは撮像画像データが横方向画像であることを表しており、このときデジタルスチルカメラ1は、次のステップSP33へ移る。   If a positive result is obtained here, this indicates that the captured image data is a horizontal image, and at this time, the digital still camera 1 proceeds to the next step SP33.

ステップSP33において、デジタルスチルカメラ1は、撮像画像データを表示部13(図1)にそのまま表示すると、終了ステップに移って処理を終了する。   In step SP33, when the digital still camera 1 displays the captured image data as it is on the display unit 13 (FIG. 1), the process proceeds to an end step and ends.

これに対してステップSP32において否定結果が得られた場合、このことは画像方向情報が縦方向画像であることを表しており、このときデジタルスチルカメラ1は、画像方向情報が表す角度(±90°)だけ撮像画像データを回転させると共に縮小して表示部13に表示すると、終了ステップに移って処理を終了する。   On the other hand, if a negative result is obtained in step SP32, this indicates that the image direction information is a vertical image. At this time, the digital still camera 1 has an angle (± 90) represented by the image direction information. When the captured image data is rotated and reduced and displayed on the display unit 13 by (°), the process proceeds to an end step and the process ends.

(7)動作及び効果
以上の構成において、デジタルスチルカメラ1は、画像データとしての撮像画像データに含まれる人物の顔領域FAを検出顔領域として検出し、当該撮像画像データが表す平面に対する垂直方向を回転軸としたときの検出顔領域の角度であるロール顔角度に基づいて、撮像画像データにおける複数の検出顔領域の縦横方向をそれぞれ判別し、当該複数の検出顔領域の判別結果に基づいて撮像画像データの縦横方向を判別するようにした。
(7) Operation and Effect In the above configuration, the digital still camera 1 detects the human face area FA included in the captured image data as the image data as a detected face area, and is perpendicular to the plane represented by the captured image data. Based on the roll face angle, which is the angle of the detected face area when the axis is the rotation axis, the vertical and horizontal directions of the plurality of detected face areas in the captured image data are respectively determined, and based on the determination results of the plurality of detected face areas The vertical and horizontal directions of the captured image data are determined.

これによりデジタルスチルカメラ1は、顔検出の誤りなどによって検出顔領域の縦横方向を判別し間違えた場合であっても、他の検出顔領域の判別結果との多数決的な判別によって撮像画像データの縦横方向を総合的に判別できるため、一つの検出顔領域に基づいて撮像画像データの縦横方向を判別する場合と比較して、撮像画像データの縦横方向をより正確に判別できる。   As a result, even if the digital still camera 1 discriminates the vertical and horizontal directions of the detected face area due to a face detection error or the like, the digital still camera 1 determines the captured image data by majority decision with the discrimination result of other detected face areas. Since the vertical and horizontal directions can be comprehensively determined, the vertical and horizontal directions of the captured image data can be determined more accurately than in the case of determining the vertical and horizontal directions of the captured image data based on one detected face area.

またデジタルスチルカメラ1は、検出顔領域の信頼度を表す顔領域信頼度の高い検出顔領域の縦横方向を他の検出顔領域の縦横方向よりも重要視して撮像画像データの縦横方向を判別するようにしたことにより、単に検出顔領域の縦横方向の多数決によって撮像画像データの縦横方向を判別する場合と比較して、撮像画像データの縦横方向をより正確に判別できる。   Further, the digital still camera 1 discriminates the vertical and horizontal directions of the captured image data by placing more importance on the vertical and horizontal directions of the detected face area representing the reliability of the detected face area than the vertical and horizontal directions of the other detected face areas. By doing so, the vertical and horizontal directions of the captured image data can be more accurately determined as compared with the case where the vertical and horizontal directions of the detected image data are simply determined by the majority of the detected face area in the vertical and horizontal directions.

さらにデジタルスチルカメラ1は、縦検出顔領域と判別する場合の検出ロール顔角度の絶対値の範囲(70°以上110°以下)を、横検出顔領域と判別する場合における検出ロール顔角度の絶対値の範囲(0°以上70°未満及び110°超180°未満)よりも狭くした。   Further, the digital still camera 1 determines the absolute value of the detected roll face angle when determining the range of the absolute value of the detected roll face angle (70 ° or more and 110 ° or less) when it is determined as the vertical detection face region as the horizontal detection face region. It was narrower than the range of values (0 ° or more and less than 70 ° and more than 110 ° and less than 180 °).

ここで、寝そべったり、何かにもたれかかる際に、人物が大きく(20°以上)顔を傾けることが想定され、逆に直立している場合には大きく顔を傾けることは想定しづらい。また、寝そべる場合には人物の体全体が撮像画像データに収まるように、また何かもたれかかる場合にはその「何か」を同時に撮像すると想定されることから、このような場合には撮像画像データが横方向画像として撮像される可能性が高い。   Here, when lying down or leaning on something, it is assumed that the person tilts a large face (20 ° or more), and conversely, when standing upright, it is difficult to assume a large tilt. Also, when lying down, it is assumed that the whole body of the person fits in the captured image data, and when something is leaning on, it is assumed that “something” is captured at the same time. There is a high possibility that data is captured as a lateral image.

したがってデジタルスチルカメラ1は、顔を傾ける可能性のより大きい横検出顔領域であると判別する場合に使用される検出ロール顔角度の絶対値の範囲を大きくして横検出顔領域を優先的に判別することにより、検出顔領域の縦横方向の判別の精度を一層向上することができる。   Therefore, the digital still camera 1 preferentially uses the lateral detection face area by increasing the absolute value range of the detection roll face angle used when determining that the face detection area has a higher possibility of tilting the face. By discriminating, the accuracy of discrimination of the detected face area in the vertical and horizontal directions can be further improved.

以上の構成によれば、デジタルスチルカメラ1は、撮像画像データから検出された検出顔領域のロール顔角度から各検出顔領域の縦横方向をそれぞれ判別し、縦方向と判別された縦検出顔領域と横方向と判別された横検出顔領域とを比較して多数決的に撮像画像データの縦横方向を判別することにより、簡易な構成で、かつ複数人の顔が存在する場合であっても正確に画像データの縦横方向を判別することができる画像処理装置、画像方向判別方法及び画像方向判別プログラム、再生装置、再生方法及び再生プログラム、並びにデジタルスチルカメラを実現することができる。   According to the above configuration, the digital still camera 1 determines the vertical and horizontal directions of each detected face area from the roll face angle of the detected face area detected from the captured image data, and the vertical detection face area determined as the vertical direction. And the horizontal detection face area determined as the horizontal direction, and the vertical and horizontal directions of the captured image data are determined in a majority manner, so that it is accurate even when there are multiple faces. In addition, it is possible to realize an image processing apparatus, an image direction determination method and an image direction determination program, a playback apparatus, a playback method and a playback program, and a digital still camera that can determine the vertical and horizontal directions of image data.

(8)他の実施の形態
なお上述の実施の形態においては、各検出顔領域に対する信頼度として算出された顔領域信頼度を用いて撮像時点における撮像画像データの縦横方向を判別するようにした場合について述べたが、本発明はこれに限らず、例えば縦検出顔領域と横検出顔領域を単純に多数決によって撮像時点における撮像画像データの縦横方向を判別するようにしても良い。
(8) Other Embodiments In the above-described embodiment, the vertical and horizontal directions of captured image data at the time of imaging are determined using the face area reliability calculated as the reliability for each detected face area. Although the case has been described, the present invention is not limited to this. For example, the vertical and horizontal directions of the captured image data at the time of imaging may be determined by simply voting the vertical detection face area and the horizontal detection face area.

この場合デジタルスチルカメラ1は、図13に示すフローチャートRT3に従って画像方向判別処理を実行する。すなわちデジタルスチルカメラ1は、画像方向判別処理手順RT1(図11)と同様に開始ステップから入ってステップSP1〜ステップSP4を実行すると、そのままステップSP5又はステップSP9へ移る。ステップSP9において各検出顔領域が縦検出顔領域又は横検出顔領域のいずれであるかを判別したデジタルスチルカメラ1は、ステップSP20において、縦検出顔領域についての判別値を「−1」、横検出顔領域についての判別値を「+1」として保持し、次のステップSP21へ移る。   In this case, the digital still camera 1 executes an image direction determination process according to the flowchart RT3 shown in FIG. That is, when the digital still camera 1 enters from the start step and executes steps SP1 to SP4 as in the image direction determination processing procedure RT1 (FIG. 11), the process proceeds to step SP5 or step SP9. In step SP9, the digital still camera 1 that has determined whether each detected face area is a vertically detected face area or a horizontally detected face area. In step SP20, the digital still camera 1 sets the determination value for the vertically detected face area to “−1” and the horizontally detected face area. The discrimination value for the detected face area is held as “+1”, and the process proceeds to the next step SP21.

ステップSP21においてデジタルスチルカメラ1は、各検出顔領域についての判別値を加算して加算総合値を算出すると、次のステップSP12へ移り、画像方向判別処理手順RT1(図11)と同様にしてステップSP15までの処理を実行するようになされている。   In step SP21, the digital still camera 1 adds the discriminant values for each detected face area and calculates the sum total value. Then, the digital still camera 1 proceeds to the next step SP12 and performs the same steps as in the image direction discrimination processing procedure RT1 (FIG. 11). Processing up to SP15 is executed.

このようにデジタルスチルカメラ1は、複数の検出顔領域の判別結果において過半数を占める縦横方向を、撮像画像データの縦横方向と判別することにより、撮像画像データに複数の検出顔領域が存在する場合であっても、適切に撮像画像データの縦横方向を判別することができる。   As described above, the digital still camera 1 discriminates the vertical and horizontal directions, which occupy the majority in the determination results of the plurality of detected face areas, as the vertical and horizontal directions of the captured image data, so that there are a plurality of detected face areas in the captured image data. Even so, it is possible to appropriately determine the vertical and horizontal directions of the captured image data.

また上述の実施の形態においては、10以上の検出顔領域が存在する撮像画像データについては、10までの検出顔領域を検出するようにした場合について述べたが、本発明はこれに限らず、例えば5までの検出顔領域を検出したり、全ての検出顔領域を検出するようにしても良い。   Further, in the above-described embodiment, the case where up to 10 detected face areas are detected for captured image data in which 10 or more detected face areas exist is described. However, the present invention is not limited to this. For example, up to 5 detected face areas may be detected, or all detected face areas may be detected.

さらに上述の実施の形態においては、基準顔データに予め付加された円又は楕円状でなる顔領域FAを検出するようにした場合について述べたが、本発明はこれに限らず、例えば顔の一部分でなる顔領域FAを四角形状に検出したり、顔よりも大きい顔領域FAを顔領域FAとして検出するようにしても良い。   Furthermore, in the above-described embodiment, the case where the face area FA that is a circle or an ellipse previously added to the reference face data is detected has been described, but the present invention is not limited to this, and for example, a part of the face May be detected in a square shape, or a face area FA larger than the face may be detected as the face area FA.

さらに上述の実施の形態においては、基準顔データと比較することにより撮像画像データから検出顔領域を検出するようにした場合について述べたが、本発明はこれに限らず、例えば輪郭抽出処理や肌色検出処理により検出顔領域を検出するようにしても良い。   Furthermore, in the above-described embodiment, the case where the detected face area is detected from the captured image data by comparing with the reference face data has been described. However, the present invention is not limited to this, and for example, contour extraction processing and skin color The detected face area may be detected by the detection process.

さらに上述の実施の形態においては、検出顔領域の大きさと、撮像画像データにおける検出顔領域の位置と、検出顔領域の正面度(ヨー顔角度)と、人物の顔らしさとに基づいて、検出顔領域の信頼度を総合的に表す顔領域信頼度を算出するようにした場合について述べたが、本発明はこれに限らず、少なくともいずれか一つに基づいて顔領域信頼度を算出すれば良く、その組み合わせに制限はない。また、他の信頼度の因子(例えば焦点距離の一致率など)を用いて顔領域信頼度を算出するようにしても良い。   Further, in the above-described embodiment, detection is performed based on the size of the detected face area, the position of the detected face area in the captured image data, the front degree (yaw face angle) of the detected face area, and the human face-likeness. Although the case where the face area reliability that comprehensively represents the reliability of the face area is calculated has been described, the present invention is not limited to this, and if the face area reliability is calculated based on at least one of them, There are no restrictions on the combination. Further, the face area reliability may be calculated using other reliability factors (for example, the coincidence rate of focal lengths, etc.).

さらに上述の実施の形態においては、検出顔領域の大きさとして、検出顔領域の面積を用いるようにした場合について述べたが、本発明はこれに限らず、例えば検出顔領域の縦又は横の最大長さなどを用いるようにしても良い。   Furthermore, in the above-described embodiment, the case where the area of the detected face area is used as the size of the detected face area has been described. However, the present invention is not limited to this, for example, the vertical or horizontal direction of the detected face area. The maximum length or the like may be used.

さらに上述の実施の形態においては、撮像画像データにおける検出顔領域の位置として撮像画像の中心から各検出顔領域までの中心距離を用いるようにした場合について述べたが、本発明はこれに限らず、例えば検出顔領域の座標などを用いるようにしても良い。   Furthermore, in the above-described embodiment, the case where the center distance from the center of the captured image to each detected face region is used as the position of the detected face region in the captured image data is described, but the present invention is not limited to this. For example, the coordinates of the detected face area may be used.

さらに上述の実施の形態においては、検出顔領域の正面度として、ヨー顔角度を用いるようにした場合について述べたが、本発明はこれに限らず、例えば検出顔領域が有する2つの目における黒目部分及び白目部分の相対的な位置関係(すなわち黒目が目全体のどの位置にあるか)とヨー顔角度から、当該検出顔領域を有する人物が実際に見ている方向を目線角度として算出し、これを検出顔領域の正面度として用いるようにしても良い。   Furthermore, in the above-described embodiment, the case where the yaw face angle is used as the frontal degree of the detected face area has been described. However, the present invention is not limited to this. From the relative positional relationship between the part and the white eye part (i.e., where the black eye is in the whole eye) and the yaw face angle, the direction in which the person having the detected face area is actually looking is calculated as the eye angle, This may be used as the degree of front of the detected face area.

さらに上述の実施の形態においては、人物の顔らしさとして基準顔データとの一致率を表す相関値P4を用いるようにした場合について述べたが、本発明はこれに限らず、例えば検出顔領域と人物の顔と比較的類似している犬、猫などの顔データとを比較し、これらとの一致率を相関値P4から減算するようにしても良い。   Furthermore, in the above-described embodiment, the case where the correlation value P4 representing the matching rate with the reference face data is used as the human face-likeness has been described. However, the present invention is not limited to this. It is also possible to compare face data such as dogs and cats that are relatively similar to a human face, and subtract the matching rate from the correlation value P4.

さらに上述の実施の形態においては、検出ロール顔角度の絶対値が70以上110°以下の角度範囲内にある場合に縦検出顔領域であると判別するようにした場合について述べたが、本発明はこれに限らず、例えば45°以上135°以下の角度範囲内にある場合に縦検出顔領域と判別するようにしても良く、この角度範囲について制限はない。   Further, in the above-described embodiment, the case has been described in which it is determined that the detected roll face angle is the vertical detection face area when the absolute value of the detected roll face angle is in the angle range of 70 ° to 110 °. However, the present invention is not limited to this, and for example, when it is within an angle range of 45 ° or more and 135 ° or less, it may be determined as a vertical detection face region.

さらに上述の実施の形態においては、検出顔領域が2以上検出された場合にのみ顔評価処理を実行するようにした場合について述べたが、本発明はこれに限らず、検出顔領域を1つのみ検出した場合にも同様に顔評価処理を実行するようにしても良い。   Furthermore, in the above-described embodiment, the case where the face evaluation process is executed only when two or more detected face areas are detected is described, but the present invention is not limited to this, and one detected face area is provided. The face evaluation process may be executed in the same manner even when only the image is detected.

この場合デジタルスチルカメラ1は、図14に示すフローチャートRT4に従って画像方向判別処理を実行する。すなわちデジタルスチルカメラ1は、画像方向判別処理手順RT1(図11)と同様に開始ステップから入ってステップSP1〜ステップSP3を実行し、ステップSP3において肯定結果が得られると、ステップSP7〜ステップSP11の処理を実行する。   In this case, the digital still camera 1 executes an image direction determination process according to the flowchart RT4 shown in FIG. That is, the digital still camera 1 enters from the start step in the same manner as the image direction determination processing procedure RT1 (FIG. 11) and executes steps SP1 to SP3. If an affirmative result is obtained in step SP3, steps SP7 to SP11 are performed. Execute the process.

ステップSP11において加算総合値を算出したデジタルスチルカメラ1は、ステップSP25において、当該加算総合値の絶対値が所定の確実閾値以上であるか否かについて判別する。   In step SP25, the digital still camera 1 that has calculated the total addition value in step SP11 determines whether or not the absolute value of the total addition value is equal to or greater than a predetermined certain threshold value.

ここで肯定結果が得られた場合、このことは縦横方向での顔領域信頼度の合計に十分な差があるため、加算総合値に基づく撮像画像データの縦横方向判別が確実なものであることを表しており、このときデジタルスチルカメラ1は、次のステップSP12へ移り、ステップSP12〜ステップSP15の処理を実行すると、終了ステップに移って処理を終了する。   If an affirmative result is obtained here, this means that there is a sufficient difference in the sum of the face area reliability in the vertical and horizontal directions, so that the vertical and horizontal direction discrimination of the captured image data based on the added total value is reliable. At this time, the digital still camera 1 proceeds to the next step SP12, and when the processes of steps SP12 to SP15 are executed, the process proceeds to an end step and the process is terminated.

これに対してステップSP25において否定結果が得られた場合、このことは縦横方向での顔領域信頼度の合計がそれぞれ拮抗しているため加算総合値に基づく撮像画像データの縦横方向の判別が確実なものでないことを表しており、このときデジタルスチルカメラ1は、終了ステップに移って処理を終了する。   On the other hand, if a negative result is obtained in step SP25, this means that the sum of the face area reliability in the vertical and horizontal directions is antagonized, and thus the vertical and horizontal discrimination of the captured image data based on the added total value is reliable. In this case, the digital still camera 1 moves to an end step and ends the process.

このようにデジタルスチルカメラ1は、ロール顔角度に基づいて判別された検出顔領域の縦横方向と、顔領域信頼度とに基づいて撮像画像データの縦横方向を判別するようにしたことにより、検出された検出顔領域の数に拘らず顔領域信頼度に基づいて正確に撮像画像データの縦横方向を判別することができる。   As described above, the digital still camera 1 can detect the vertical and horizontal directions of the detected face area determined based on the roll face angle and the vertical and horizontal directions of the captured image data based on the face area reliability. Regardless of the number of detected face areas, the vertical and horizontal directions of the captured image data can be accurately determined based on the face area reliability.

またデジタルスチルカメラ1は、加算総合値の絶対値が確実閾値以上であり、顔領域信頼度に検出顔領域の縦横方向間で十分な差がある場合に限り撮像画像データの縦横方向を判別するようにしたため、確実性が確保できる場合のみ撮像画像データの縦横方向を判別することができる。なお確実でない場合には、撮像画像データの縦横方向を判別せず、結果的に撮像される可能性の高い横方向画像として処理されることになる。   In addition, the digital still camera 1 determines the vertical and horizontal directions of the captured image data only when the absolute value of the total addition value is equal to or greater than the certain threshold and the face area reliability has a sufficient difference between the vertical and horizontal directions of the detected face area. Thus, the vertical and horizontal directions of the captured image data can be determined only when certainty can be ensured. If it is not certain, the vertical and horizontal directions of the captured image data are not discriminated, and as a result, the image is processed as a horizontal image having a high possibility of being captured.

さらに上述の実施の形態においては、撮像画像データに対して画像方向情報を付加するようにした場合について述べたが、本発明はこれに限らず、例えばユーザから撮像画像データを表示する旨の要求があった際に画像方向判別処理手順RT1を実行するようにしても良い。この場合デジタルスチルカメラ1は、必ずしも撮像画像データに画像方向情報を付加する必要はなく、判別された縦横方向に従って撮像画像データを表示部13に表示することができる。   Furthermore, in the above-described embodiment, the case where the image direction information is added to the captured image data has been described. However, the present invention is not limited to this, and for example, a request from the user to display the captured image data. The image direction discrimination processing procedure RT1 may be executed when there is an error. In this case, the digital still camera 1 does not necessarily need to add the image direction information to the captured image data, and can display the captured image data on the display unit 13 according to the determined vertical and horizontal directions.

さらに上述の実施の形態においては、加算総合値が「正」であるか「負」であるかによって撮像画像データの縦横方向を判別して画像方向情報を付加する場合について述べたが、本発明はこれに限らず、例えば加算総合値が所定の総合閾値未満か否かを判別し、顔領域信頼度の合計に縦横方向で差があるため当該加算総合値が確実閾値以上のときには判別された縦横方向を確定してそのまま画像方向情報を付加する一方、縦横方向での顔領域信頼度の合計がそれぞれ拮抗しているため当該加算総合値が確実閾値未満のときにはユーザに撮像画像データの縦横方向の正否を確認するようにしても良い。   Further, in the above-described embodiment, the case has been described in which the image direction information is added by determining the vertical and horizontal directions of the captured image data depending on whether the total addition value is “positive” or “negative”. Is not limited to this. For example, it is determined whether or not the total addition value is less than a predetermined total threshold, and since there is a difference in the vertical and horizontal directions in the total facial area reliability, it is determined when the total addition value is equal to or greater than the certain threshold While the vertical and horizontal directions are determined and the image direction information is added as it is, the total of the face area reliability in the vertical and horizontal directions is antagonized. It may be possible to confirm whether the data is correct or not.

さらに上述の実施の形態においては、撮像画像データが縦横いずれの方向であった場合であっても、撮像画像データに画像方向情報を付加するようにした場合について述べたが、本発明はこれに限らず、縦方向画像であった場合にのみ付加するようにしても良い。この場合デジタルスチルカメラ1は、画像方向情報が付加されていると判別した撮像画像データを回転させて表示するようにする。   Furthermore, in the above-described embodiment, the case has been described in which the image direction information is added to the captured image data even when the captured image data is in either the vertical or horizontal direction. Not limited to this, it may be added only when the image is a vertical image. In this case, the digital still camera 1 rotates and displays captured image data determined to have image direction information added thereto.

さらに上述の実施の形態においては、撮像画像データの縦横方向が判別されると、自動的に撮像画像データに画像方向情報を付加するようにした場合について述べたが、本発明はこれに限らず、判別された撮像画像データの縦横方向の正否の確認を表示部13に表示し、ユーザの操作に応じて撮像画像データの縦横方向を確定すると、当該縦横方向を表す画像方向情報を上記画像データに付加するようにしても良い。これにより、一層正確に撮像画像データの縦横方向を判別することができる。   Furthermore, in the above-described embodiment, the case has been described in which image direction information is automatically added to captured image data when the vertical and horizontal directions of the captured image data are determined. However, the present invention is not limited to this. When the vertical / horizontal direction confirmation of the determined captured image data is displayed on the display unit 13 and the vertical / horizontal direction of the captured image data is determined according to the user's operation, the image direction information indicating the vertical / horizontal direction is displayed as the image data You may make it add to. Thereby, the vertical and horizontal directions of the captured image data can be more accurately determined.

さらに上述の実施の形態においては、画像データとしての撮像画像データに対して画像方向判別処理手順RT1を実行するようにした場合について述べたが、本発明はこれに限らず、例えばパーソナルコンピュータなどで編集・作成された各種画像データに対して実行するようにしても良い。   Further, in the above-described embodiment, the case where the image direction determination processing procedure RT1 is executed on the captured image data as the image data has been described. However, the present invention is not limited to this, and for example, a personal computer or the like You may make it perform with respect to the various image data edited and produced.

さらに上述の実施の形態においては、デジタルスチルカメラ1が撮像した撮像画像データに対して、当該デジタルスチルカメラ1自身が画像方向判別処理手順RT1及び画像データ表示処理手順RT2を実行するようにした場合について述べたが、本発明はこれに限らず、例えばハードディスクレコーダや携帯電話などの各種再生装置が外部から取得した各種画像データに対して画像方向判別処理手順RT1及び画像データ表示処理手順RT2を実行するようにしても良い。   Further, in the above-described embodiment, when the digital still camera 1 itself executes the image direction determination processing procedure RT1 and the image data display processing procedure RT2 on the captured image data captured by the digital still camera 1. However, the present invention is not limited to this. For example, the image direction determination processing procedure RT1 and the image data display processing procedure RT2 are executed on various image data acquired by various playback devices such as a hard disk recorder and a cellular phone from the outside. You may make it do.

さらに上述の実施の形態においては、デジタルスチルカメラ1が撮像した撮像画像データに対して、当該デジタルスチルカメラ1自身が画像方向判別処理手順RT1を実行するようにした場合について述べたが、本発明はこれに限らず、例えばパーソナルコンピュータやテレビジョンなどの画像処理装置が外部から取得した各種画像データに対し、当該画像データを取得した際に画像方向判別処理手順RT1を実行するようにしても良い。   Further, in the above-described embodiment, the case where the digital still camera 1 itself executes the image direction determination processing procedure RT1 on the captured image data captured by the digital still camera 1 has been described. However, the present invention is not limited to this. For example, the image direction determination processing procedure RT1 may be executed when various image data acquired from the outside by an image processing apparatus such as a personal computer or a television is acquired. .

さらに上述の実施の形態においては、デジタルスチルカメラ1が撮像画像データを表示するようにした場合について述べたが、本発明はこれに限らず、例えばデジタルスチルカメラ1から撮像画像データを取得したテレビジョンや携帯電話などの各種表示装置が、画像データ表示処理手順RT2に従って撮像画像データを表示するようにしても良い。   Furthermore, in the above-described embodiment, the case where the digital still camera 1 displays captured image data has been described. However, the present invention is not limited to this, and for example, a television that acquires captured image data from the digital still camera 1. Various display devices such as John and a mobile phone may display the captured image data in accordance with the image data display processing procedure RT2.

さらに上述の実施の形態においては、画像方向判別プログラム等をROM又はフラッシュメモリ5に予め格納するようにした場合について述べたが、本発明はこれに限らず、メモリースティック(ソニー株式会社の登録商標)などの外部記憶媒体からフラッシュメモリ5などにインストールするようにしても良い。また、画像方向判別プログラムなどをUSB(Universal Serial Bus)やIEEE(Institute of Electrical and Electronics Engineers)802.11a/b/gなどの無線LAN(Local Area Network)を介して外部から取得するようにしても良い。   Further, in the above-described embodiment, the case where the image orientation determination program or the like is stored in the ROM or the flash memory 5 in advance has been described. However, the present invention is not limited to this, and the memory stick (registered trademark of Sony Corporation) is used. You may make it install in the flash memory 5 etc. from external storage media, such as. In addition, an image orientation determination program or the like is acquired from the outside via a wireless LAN (Local Area Network) such as USB (Universal Serial Bus) or IEEE (Institute of Electrical and Electronics Engineers) 802.11a / b / g. Also good.

さらに上述の実施の形態においては、顔検出部としての顔検出ブロック20と、顔方向判別部としての顔方向判別部2Aとによって画像処理装置としてのデジタルスチルカメラ1を構成するようにした場合について述べたが、本発明はこれに限らず、その他種々の構成でなる顔検出部と、顔方向判別部とによって本発明の画像処理装置を構成するようにしても良い。   Further, in the above-described embodiment, the digital still camera 1 as the image processing apparatus is configured by the face detection block 20 as the face detection unit and the face direction determination unit 2A as the face direction determination unit. As described above, the present invention is not limited to this, and the image processing apparatus of the present invention may be configured by a face detection unit and a face direction determination unit having various other configurations.

さらに上述の実施の形態においては、顔検出部としての顔検出ブロック20と、顔方向判別部としての顔方向判別部2Aと、画像処理部としての画像処理部11とによって再生装置としてのデジタルスチルカメラ1を構成するようにした場合について述べたが、本発明はこれに限らず、その他種々の構成でなる顔検出部と、顔方向判別部と、画像処理部とによって本発明の再生装置を構成するようにしても良い。   Furthermore, in the above-described embodiment, the digital still as a playback device is constituted by the face detection block 20 as the face detection unit, the face direction determination unit 2A as the face direction determination unit, and the image processing unit 11 as the image processing unit. Although the case where the camera 1 is configured has been described, the present invention is not limited to this, and the playback device of the present invention is configured by a face detection unit, a face direction determination unit, and an image processing unit having various other configurations. You may make it comprise.

さらに上述の実施の形態においては、信号処理部としての信号処理部9と、顔検出部としての顔検出ブロック20と、顔方向判別部としての顔方向判別部2Aと、画像処理部としての画像処理部11とによってデジタルスチルカメラとしてのデジタルスチルカメラ1を構成するようにした場合について述べたが、本発明はこれに限らず、その他種々の構成でなる信号処理部と、顔検出部と、顔方向判別部と、画像処理部とによって本発明のデジタルスチルカメラを構成するようにしても良い。   Furthermore, in the above-described embodiment, the signal processing unit 9 as the signal processing unit, the face detection block 20 as the face detection unit, the face direction determination unit 2A as the face direction determination unit, and the image as the image processing unit Although the case where the digital still camera 1 as a digital still camera is configured by the processing unit 11 has been described, the present invention is not limited thereto, and other signal processing units having various configurations, a face detection unit, You may make it comprise the digital still camera of this invention by a face direction discrimination | determination part and an image process part.

本発明は、例えば画像処理機能を有する各種電子機器に利用することができる。   The present invention can be used, for example, in various electronic devices having an image processing function.

デジタルスチルカメラの全体構成を示す略線図である。It is a basic diagram which shows the whole structure of a digital still camera. 横姿勢による撮像の説明に供する略線図である。It is a basic diagram with which it uses for description of the imaging by a horizontal posture. 縦姿勢による撮像の説明に供する略線図である。It is a basic diagram with which it uses for description of the imaging by a vertical attitude | position. 方向の定義の説明に供する略線図である。It is an approximate line figure used for explanation of a definition of a direction. ロール顔角度の定義の説明に供する略線図である。It is an approximate line figure used for explanation of a definition of a roll face angle. ヨー顔角度の定義の説明に供する略線図である。It is an approximate line figure used for explanation of a definition of a yaw face angle. 多数の顔が存在する場合の説明に供する略線図である。It is a basic diagram with which it uses for description when many faces exist. 顔領域信頼度の算出(1)の説明に供する略線図である。It is a basic diagram with which it uses for description of calculation (1) of face area reliability. 顔領域信頼度の算出(2)の説明に供する略線図である。It is a basic diagram with which it uses for description of calculation (2) of face area reliability. 縦方向画像の判別と表示の説明に供する略線図である。It is a basic diagram with which it uses for description of the discrimination | determination and display of a longitudinal image. 画像方向判別処理手順の説明に供するフローチャートである。It is a flowchart with which it uses for description of an image direction discrimination | determination processing procedure. 画像データ表示処理手順の説明に供するフローチャートである。5 is a flowchart for explaining an image data display processing procedure. 他の実施の形態による画像方向判別処理手順(1)を示す略線図である。It is a basic diagram which shows the image direction discrimination | determination processing procedure (1) by other embodiment. 他の実施の形態による画像方向判別処理手順(2)を示す略線図である。It is a basic diagram which shows the image direction discrimination | determination processing procedure (2) by other embodiment.

符号の説明Explanation of symbols

1……デジタルスチルカメラ、2……制御部、2A……顔方向判別部、5……フラッシュメモリ、6……操作部、9……信号処理部、11……画像処理部、12……画像記憶部、20……顔検出ブロック、FP……顔上下軸。   DESCRIPTION OF SYMBOLS 1 ... Digital still camera, 2 ... Control part, 2A ... Face direction discrimination part, 5 ... Flash memory, 6 ... Operation part, 9 ... Signal processing part, 11 ... Image processing part, 12 ... Image storage unit, 20 ... face detection block, FP ... face vertical axis.

Claims (18)

画像データに含まれる人物の顔領域を検出顔領域として検出する顔検出部と、
上記画像データが表す平面に対する垂直方向を回転軸としたときの上記検出顔領域の回転角であるロール顔角度に基づいて上記画像データに含まれる複数の上記検出顔領域の縦横方向をそれぞれ判別し、当該複数の検出顔領域の判別結果に基づいて上記画像データの縦横方向を判別する顔方向判別部と
を具えることを特徴とする画像処理装置。
A face detection unit that detects a human face area included in the image data as a detection face area;
Based on the roll face angle, which is the rotation angle of the detected face area when the direction perpendicular to the plane represented by the image data is the rotation axis, the vertical and horizontal directions of the plurality of detected face areas included in the image data are respectively determined. An image processing apparatus comprising: a face direction determining unit that determines the vertical and horizontal directions of the image data based on the determination results of the plurality of detected face regions.
上記顔方向判別部は、上記複数の検出顔領域の判別結果の過半数を占める縦横方向を、上記画像データの縦横方向と判別する
ことを特徴とする請求項1に記載の画像処理装置。
The image processing apparatus according to claim 1, wherein the face direction determination unit determines a vertical and horizontal direction that occupies a majority of the determination results of the plurality of detected face regions as a vertical and horizontal direction of the image data.
上記顔方向判別部は、
信頼度の高い検出顔領域の縦横方向を他の検出顔領域の縦横方向よりも重要視して上記画像データの縦横方向を判別する
ことを特徴とする請求項1に記載の画像処理装置。
The face direction discrimination unit
2. The image processing apparatus according to claim 1, wherein the vertical and horizontal directions of the image data are discriminated by placing importance on the vertical and horizontal directions of the detected face area having higher reliability than the vertical and horizontal directions of the other detected face areas.
上記顔方向判別部は、
上記検出顔領域に対する信頼度として、当該検出顔領域の大きさを使用する
ことを特徴とする請求項1に記載の画像処理装置。
The face direction discrimination unit
The image processing apparatus according to claim 1, wherein the size of the detected face area is used as the reliability of the detected face area.
上記顔方向判別部は、
上記検出顔領域に対する信頼度として、上記画像データにおける上記検出顔領域の位置を使用する
ことを特徴とする請求項1に記載の画像処理装置。
The face direction discrimination unit
The image processing apparatus according to claim 1, wherein the position of the detected face area in the image data is used as the reliability with respect to the detected face area.
上記顔方向判別部は、
上記検出顔領域に対する信頼度として、当該検出顔領域の正面度を使用する
ことを特徴とする請求項1に記載の画像処理装置。
The face direction discrimination unit
The image processing apparatus according to claim 1, wherein the degree of front of the detected face area is used as the reliability of the detected face area.
上記顔方向判別部は、
上記検出顔領域に対する信頼度として、上記検出顔領域の顔らしさを使用する
ことを特徴とする請求項1に記載の画像処理装置。
The face direction discrimination unit
The image processing apparatus according to claim 1, wherein the face-likeness of the detected face area is used as the reliability of the detected face area.
上記顔方向判別部は、
横方向でなる上記検出顔領域を縦方向でなる上記検出顔領域よりも優先的に判別する
ことを特徴とする請求項1に記載の画像処理装置。
The face direction discrimination unit
The image processing apparatus according to claim 1, wherein the detection face area in the horizontal direction is determined with priority over the detection face area in the vertical direction.
上記顔方向判別部によって判別された上記画像データの縦横方向を表す画像方向情報を上記画像データに付加する画像処理部
を具えることを特徴とする請求項1に記載の画像処理装置。
The image processing apparatus according to claim 1, further comprising: an image processing unit that adds image direction information indicating a vertical and horizontal direction of the image data determined by the face direction determining unit to the image data.
上記画像処理部は、
上記画像データが縦方向と判別された場合にのみ上記画像データに上記画像方向情報を付加する
ことを特徴とする請求項9に記載の画像処理装置。
The image processing unit
The image processing apparatus according to claim 9, wherein the image direction information is added to the image data only when the image data is determined to be in the vertical direction.
上記顔方向判別部によって判別された上記画像データの縦横方向を表示してその正否を確認する表示部と、
上記ユーザの操作に応じて上記画像データの縦横方向を確定し、当該縦横方向を表す画像方向情報を上記画像データに付加する画像処理部と
を具えることを特徴とする請求項3に記載の画像処理装置。
A display unit that displays the vertical and horizontal directions of the image data determined by the face direction determination unit and confirms whether the image data is correct;
The image processing unit according to claim 3, further comprising: an image processing unit that determines a vertical / horizontal direction of the image data in accordance with an operation of the user and adds image direction information representing the vertical / horizontal direction to the image data. Image processing device.
画像データに含まれる人物の顔領域を検出顔領域として検出する顔検出ステップと、
上記画像データが表す平面に対する垂直方向を回転軸としたときの上記検出顔領域の回転角であるロール顔角度に基づいて上記画像データに含まれる複数の上記検出顔領域の縦横方向をそれぞれ判別し、当該複数の検出顔領域の判別結果に基づいて上記画像データの縦横方向を判別する顔方向判別ステップと
を具えることを特徴とする画像方向判別方法。
A face detection step of detecting a face area of a person included in the image data as a detected face area;
Based on the roll face angle, which is the rotation angle of the detected face area when the direction perpendicular to the plane represented by the image data is the rotation axis, the vertical and horizontal directions of the plurality of detected face areas included in the image data are respectively determined. And a face direction determining step for determining the vertical and horizontal directions of the image data based on the determination results of the plurality of detected face areas.
コンピュータに対して、
画像データに含まれる人物の顔領域を検出顔領域として検出する顔検出ステップと、
上記画像データが表す平面に対する垂直方向を回転軸としたときの上記検出顔領域の回転角であるロール顔角度に基づいて上記画像データに含まれる複数の上記検出顔領域の縦横方向をそれぞれ判別し、当該複数の検出顔領域の判別結果に基づいて上記画像データの縦横方向を判別する顔方向判別ステップと
を実行させることを特徴とする画像方向判別プログラム。
Against the computer,
A face detection step of detecting a face area of a person included in the image data as a detected face area;
Based on the roll face angle, which is the rotation angle of the detected face area when the direction perpendicular to the plane represented by the image data is the rotation axis, the vertical and horizontal directions of the plurality of detected face areas included in the image data are respectively determined. And a face direction determining step for determining a vertical and horizontal direction of the image data based on the determination results of the plurality of detected face regions.
画像データに含まれる人物の顔領域を検出顔領域として検出する顔検出部と、
上記画像データが表す平面に対する垂直方向を回転軸としたときの上記検出顔領域の回転角であるロール顔角度に基づいて上記画像データに含まれる複数の上記検出顔領域の縦横方向をそれぞれ判別し、当該複数の検出顔領域の判別結果に基づいて上記画像データの縦横方向を判別する顔方向判別部と、
上記顔方向判別部による上記画像データの縦横方向に応じて当該画像データを回転させることにより、上記縦横方向でなる上記画像データを表示部に表示させる画像処理部と
を具えることを特徴とする再生装置。
A face detection unit that detects a human face area included in the image data as a detection face area;
Based on the roll face angle, which is the rotation angle of the detected face area when the direction perpendicular to the plane represented by the image data is the rotation axis, the vertical and horizontal directions of the plurality of detected face areas included in the image data are respectively determined. A face direction determination unit that determines the vertical and horizontal directions of the image data based on the determination results of the plurality of detected face regions;
An image processing unit that displays the image data in the vertical and horizontal directions on a display unit by rotating the image data according to the vertical and horizontal directions of the image data by the face direction determination unit. Playback device.
画像データに含まれる人物の顔領域を検出顔領域として検出する顔検出ステップと、
上記画像データが表す平面に対する垂直方向を回転軸としたときの上記検出顔領域の回転角であるロール顔角度に基づいて上記画像データに含まれる複数の上記検出顔領域の縦横方向をそれぞれ判別し、当該複数の検出顔領域の判別結果に基づいて上記画像データの縦横方向を判別する顔方向判別ステップと、
上記顔方向判別ステップによる上記画像データの縦横方向に応じて当該画像データを回転させることにより、上記縦横方向でなる上記画像データを表示ステップに表示させる画像処理ステップと
を具えることを特徴とする再生方法。
A face detection step of detecting a face area of a person included in the image data as a detected face area;
Based on the roll face angle, which is the rotation angle of the detected face area when the direction perpendicular to the plane represented by the image data is the rotation axis, the vertical and horizontal directions of the plurality of detected face areas included in the image data are respectively determined. A face direction determining step for determining the vertical and horizontal directions of the image data based on the determination results of the plurality of detected face regions;
An image processing step of displaying the image data in the vertical and horizontal directions on a display step by rotating the image data in accordance with the vertical and horizontal directions of the image data in the face direction determining step. Playback method.
コンピュータに対して、
画像データに含まれる人物の顔領域を検出顔領域として検出する顔検出ステップと、
上記画像データが表す平面に対する垂直方向を回転軸としたときの上記検出顔領域の回転角であるロール顔角度に基づいて上記画像データに含まれる複数の上記検出顔領域の縦横方向をそれぞれ判別し、当該複数の検出顔領域の判別結果に基づいて上記画像データの縦横方向を判別する顔方向判別ステップと、
上記顔方向判別ステップによる上記画像データの縦横方向に応じて当該画像データを回転させることにより、上記縦横方向でなる上記画像データを表示ステップに表示させる画像処理ステップと
を実行させることを特徴とする再生プログラム。
Against the computer,
A face detection step of detecting a face area of a person included in the image data as a detected face area;
Based on the roll face angle, which is the rotation angle of the detected face area when the direction perpendicular to the plane represented by the image data is the rotation axis, the vertical and horizontal directions of the plurality of detected face areas included in the image data are respectively determined. A face direction determining step for determining the vertical and horizontal directions of the image data based on the determination results of the plurality of detected face regions;
An image processing step of displaying the image data in the vertical and horizontal directions on a display step by rotating the image data in accordance with the vertical and horizontal directions of the image data in the face direction determining step. Playback program.
レンズを介して取り込んだ撮像光から撮像画像データを生成する信号処理部と、
上記撮像画像データに含まれる人物の顔領域を検出顔領域として検出する顔検出部と、
上記撮像画像データが表す平面に対する垂直方向を回転軸としたときの上記検出顔領域の回転角であるロール顔角度に基づいて上記画像データに含まれる複数の上記検出顔領域の縦横方向をそれぞれ判別し、当該複数の検出顔領域の判別結果に基づいて上記画像データの縦横方向を判別する顔方向判別部と、
上記顔方向判別部によって判別された上記撮像画像データの縦横方向を表す画像方向情報を上記画像データに付加する画像処理部と
を具えることを特徴とするデジタルスチルカメラ。
A signal processing unit that generates captured image data from imaging light captured via a lens;
A face detection unit for detecting a face area of a person included in the captured image data as a detection face area;
The vertical and horizontal directions of the plurality of detected face areas included in the image data are respectively determined based on a roll face angle that is a rotation angle of the detected face area when a vertical direction with respect to a plane represented by the captured image data is a rotation axis. A face direction determination unit that determines the vertical and horizontal directions of the image data based on the determination results of the plurality of detected face regions;
A digital still camera comprising: an image processing unit that adds image direction information representing the vertical and horizontal directions of the captured image data determined by the face direction determining unit to the image data.
画像データから人物の顔領域を検出顔領域として検出する顔検出部と、
上記画像データが表す平面に対する垂直方向を回転軸とするロール顔角度に基づいて判別された上記検出顔領域の縦横方向と、当該検出顔領域に対する信頼度とに基づいて上記画像データの縦横方向を判別する顔方向判別部と
を具えることを特徴とする画像処理装置。
A face detection unit for detecting a human face area as a detection face area from image data;
The vertical and horizontal directions of the image data are determined based on the vertical and horizontal directions of the detected face area determined based on the roll face angle with the vertical direction with respect to the plane represented by the image data as the rotation axis, and the reliability with respect to the detected face area. An image processing apparatus comprising: a face direction determining unit for determining.
JP2007115879A 2007-04-25 2007-04-25 Image processor, image direction discrimination method and image direction discrimination program, reproducing device, reproducing method and reproducing program, and digital still camera Pending JP2008277904A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007115879A JP2008277904A (en) 2007-04-25 2007-04-25 Image processor, image direction discrimination method and image direction discrimination program, reproducing device, reproducing method and reproducing program, and digital still camera

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007115879A JP2008277904A (en) 2007-04-25 2007-04-25 Image processor, image direction discrimination method and image direction discrimination program, reproducing device, reproducing method and reproducing program, and digital still camera

Publications (1)

Publication Number Publication Date
JP2008277904A true JP2008277904A (en) 2008-11-13

Family

ID=40055387

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007115879A Pending JP2008277904A (en) 2007-04-25 2007-04-25 Image processor, image direction discrimination method and image direction discrimination program, reproducing device, reproducing method and reproducing program, and digital still camera

Country Status (1)

Country Link
JP (1) JP2008277904A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011029831A (en) * 2009-07-23 2011-02-10 Sony Corp Composition determination device, imaging system, composition determination method, and program
JP2015106910A (en) * 2013-12-03 2015-06-08 カシオ計算機株式会社 Image processing system, image processing method, and program
KR101613616B1 (en) 2009-07-17 2016-04-19 삼성전자주식회사 Digital camera adaptively setting cosmetic function and controlling method thereof
US9508123B2 (en) 2013-07-23 2016-11-29 Kt Corporation Image direction determination

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101613616B1 (en) 2009-07-17 2016-04-19 삼성전자주식회사 Digital camera adaptively setting cosmetic function and controlling method thereof
JP2011029831A (en) * 2009-07-23 2011-02-10 Sony Corp Composition determination device, imaging system, composition determination method, and program
US8908057B2 (en) 2009-07-23 2014-12-09 Sony Corporation Composition determination device, imaging system, composition determination method, and program
US9508123B2 (en) 2013-07-23 2016-11-29 Kt Corporation Image direction determination
JP2015106910A (en) * 2013-12-03 2015-06-08 カシオ計算機株式会社 Image processing system, image processing method, and program

Similar Documents

Publication Publication Date Title
WO2019219065A1 (en) Video analysis method and device
JP5256806B2 (en) Target image detection method and image detection apparatus
KR101674011B1 (en) Method and apparatus for operating camera function in portable terminal
US20200334836A1 (en) Relocalization method and apparatus in camera pose tracking process, device, and storage medium
US11210796B2 (en) Imaging method and imaging control apparatus
US8400532B2 (en) Digital image capturing device providing photographing composition and method thereof
JP2007043545A (en) Imaging apparatus, image correction method, and program
WO2011103742A1 (en) Frame control method and electronic device
CN109668545B (en) Positioning method, positioner and positioning system for head-mounted display device
JP2013058828A (en) Smile determination device and method
JP6828758B2 (en) Electronics, information systems, and programs
US11062422B2 (en) Image processing apparatus, image communication system, image processing method, and recording medium
KR20200087816A (en) Image processing apparatus, image processing system, image processing method and recording medium
JP2008277904A (en) Image processor, image direction discrimination method and image direction discrimination program, reproducing device, reproducing method and reproducing program, and digital still camera
US20190244019A1 (en) Information processing device and information processing method
US20210176409A1 (en) Electronic device and method of controlling electronic device
JP5448739B2 (en) Image reproducing apparatus, imaging apparatus, and image reproducing method
US20220189110A1 (en) System and method for adaptively constructing a three-dimensional facial model based on two or more inputs of a two-dimensional facial image
EP3644600B1 (en) Imaging device, information processing method, system, and carrier means
CN110365910B (en) Self-photographing method and device and electronic equipment
JP6444981B2 (en) Image processing apparatus, image processing method, and image processing program
US10762661B2 (en) Imaging device, imaging method and storage medium
JP6631166B2 (en) Imaging device, program, and imaging method
JP2017184025A (en) Communication terminal, image communication system, image transmission method, image display method, and program
JP7268483B2 (en) Video processing device, video processing method, and program