JP2005202477A - Method for deciding top-and-bottom direction of face image and image recording device and image reproducing device - Google Patents
Method for deciding top-and-bottom direction of face image and image recording device and image reproducing device Download PDFInfo
- Publication number
- JP2005202477A JP2005202477A JP2004005363A JP2004005363A JP2005202477A JP 2005202477 A JP2005202477 A JP 2005202477A JP 2004005363 A JP2004005363 A JP 2004005363A JP 2004005363 A JP2004005363 A JP 2004005363A JP 2005202477 A JP2005202477 A JP 2005202477A
- Authority
- JP
- Japan
- Prior art keywords
- image
- face image
- face
- bottom direction
- mouth
- 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
Links
Images
Abstract
Description
本発明は顔画像の天地方向判定方法、画像記録装置および画像再生装置に係り、特に被写体として人物の顔を含む顔画像の天地方向を判定する顔画像の天地方向判定方法、その天地方向判定方法を用いた画像記録装置および画像再生装置に関する。 The present invention relates to a face image top / bottom direction determination method, an image recording apparatus, and an image reproduction apparatus, and more particularly to a face image top / bottom direction determination method for determining a top / bottom direction of a face image including a human face as a subject, and the top / bottom direction determination method The present invention relates to an image recording apparatus and an image reproducing apparatus using the.
従来、被写体として人物を撮影した入力画像から顔を検出する技術として、入力画像を小領域に分割し、各小領域の輝度特徴から目の候補領域と目の間の候補領域とを検出し、これらの目の候補領域と目の間の候補領域との互いの位置関係から目の間の領域を決定し、この目の間の領域を含むように顔の領域を決定するようにしていた。 Conventionally, as a technique for detecting a face from an input image obtained by photographing a person as a subject, the input image is divided into small regions, and eye candidate regions and candidate regions between the eyes are detected from luminance characteristics of each small region, The area between the eyes is determined from the mutual positional relationship between the eye candidate area and the candidate area between the eyes, and the face area is determined so as to include the area between the eyes.
なお、特許文献1には、顔の認識結果に基づいて、絞りやピント位置合わせなどのカメラの撮影機能の制御を行うようにしたものが記載されている。具体的には、複数画素単位でまとめた各ブロックの輝度が低輝度(瞳または髪と推定)、中輝度(瞳、髪以外の顔部分と推定)、高輝度(背景と推定)のいずれであるかを判定し、低輝度の領域と中輝度の領域が隣接するブロック群とその周辺のみを顔認識対象とし、この顔認識対象において肌色領域の抽出およびエッジの検出を行い、そして予め用意された顔のテンプレート画像とのマッチング処理を行うことにより、顔領域を判定する。 Japanese Patent Application Laid-Open No. H10-228667 describes a camera that controls the photographing function of a camera such as an aperture and a focus alignment based on a face recognition result. Specifically, the brightness of each block grouped in units of multiple pixels is either low brightness (estimated as pupil or hair), medium brightness (estimated face part other than pupil or hair), or high brightness (estimated as background). The face recognition target is only a block group in which the low-brightness area and the middle-brightness area are adjacent to each other and its periphery, and the skin color area is extracted and the edge is detected in this face recognition target. The face area is determined by performing a matching process with the template image of the face.
特許文献2、3には、文字を含む画像において、文字の認識率の高低に基づいて、天地方向を判定するようにしたものが記載されている。
しかし、様々な撮影機会に対して、顔および目のみの認識に基づいて顔画像の天地方向を正確に判定することは困難であった。 However, it has been difficult to accurately determine the vertical direction of the face image based on the recognition of only the face and eyes for various photographing opportunities.
特許文献1には、目と髪を基準に顔認識するものが記載されており、どのような顔部品を基準にどのような天地方向判定を行えば、正確な天地方向が導き出されるのかについて示唆する記載がない。特許文献2,3に記載されたものは、文字を含まない画像の天地方向を判定することができない。
本発明はこのような事情に鑑みてなされたもので、被写体として人物の顔を含んで撮影して得られた画像の天地方向を正確に判定することができる顔画像の天地方向判定方法、画像記録装置および画像再生装置を提供することを目的とする。 The present invention has been made in view of such circumstances, and a method of determining a top / bottom direction of a face image that can accurately determine the top / bottom direction of an image obtained by photographing a person's face as a subject. It is an object of the present invention to provide a recording apparatus and an image reproducing apparatus.
前記目的を達成するために、請求項1に記載の発明は、被写体として人物の顔を含む顔画像を取得するステップと、前記顔画像から目および口を検出するステップと、前記顔画像における目の位置に対する口の位置に基づいて前記顔画像の天地方向を判定するステップを含む構成となっている。
In order to achieve the object, the invention according to
この構成によって、顔画像から目および口が検出され、目の位置に対する口の位置に基づいて天地方向が判定されるので、画像の天地方向が正確かつ容易に判定される。 With this configuration, the eyes and mouth are detected from the face image, and the top and bottom direction is determined based on the position of the mouth with respect to the position of the eyes, so that the top and bottom direction of the image can be determined accurately and easily.
請求項2に記載の発明は、請求項1に記載の発明において、前記天地方向を判定するステップは、目と口で構成される三角形における目を結ぶ線分を底辺として口を頂点とし、底辺に対して頂点が上、下、左、右のどちらの位置にあるかを判定することにより前記天地方向を判定する構成となっている。 According to a second aspect of the present invention, in the first aspect of the invention, the step of determining the top-and-bottom direction includes the line segment connecting the eyes in the triangle formed by the eyes and the mouth as the base, the mouth as the vertex, and the base The top-and-bottom direction is determined by determining whether the apex is at the top, bottom, left, or right position.
請求項3に記載の発明は、被写体として人物の顔を含む顔画像を取得する画像取得手段と、前記顔画像から目および口を検出する検出手段と、前記顔画像における目の位置に対する口の位置に基づいて前記顔画像の天地方向を判定する方向判定手段と、判定された天地方向に基づいて前記顔画像を回転する画像回転手段と、回転された顔画像を所定の記録媒体に記録する画像記録手段を備えた構成となっている。 According to a third aspect of the present invention, there is provided an image acquisition means for acquiring a face image including a human face as a subject, a detection means for detecting eyes and a mouth from the face image, and a mouth position relative to the position of the eyes in the face image. Direction determining means for determining the top and bottom direction of the face image based on the position, image rotating means for rotating the face image based on the determined top and bottom direction, and recording the rotated face image on a predetermined recording medium An image recording means is provided.
請求項4に記載の発明は、被写体として人物の顔を含む顔画像を取得する画像取得手段と、前記顔画像から目および口を検出する検出手段と、前記顔画像における目の位置に対する口の位置に基づいて前記顔画像の天地方向を判定する方向判定手段と、前記顔画像とともに該顔画像に関連付けて前記天地方向を所定の記録媒体に記録する画像記録手段を備えた構成となっている。 According to a fourth aspect of the present invention, there is provided an image acquisition means for acquiring a face image including a human face as a subject, a detection means for detecting eyes and a mouth from the face image, and a mouth position relative to the position of the eyes in the face image. The apparatus includes a direction determination unit that determines the top and bottom direction of the face image based on a position, and an image recording unit that records the top and bottom direction on a predetermined recording medium in association with the face image together with the face image. .
請求項5に記載の発明は、被写体として人物の顔を含む顔画像を取得する画像取得手段と、前記顔画像から目および口を検出する検出手段と、前記顔画像における目の位置に対する口の位置に基づいて前記顔画像の天地方向を判定する方向判定手段と、判定された天地方向に基づいて前記顔画像を回転する画像回転手段と、回転された画像を表示する画像表示手段を備えた構成となっている。 According to a fifth aspect of the present invention, there is provided an image acquisition means for acquiring a face image including a human face as a subject, a detection means for detecting eyes and a mouth from the face image, and a mouth position relative to an eye position in the face image. Direction determining means for determining the top and bottom direction of the face image based on the position, image rotating means for rotating the face image based on the determined top and bottom direction, and image display means for displaying the rotated image It has a configuration.
本発明によれば、被写体として人物の顔を含んで撮影して得られた画像の天地方向を正確に判定することができる。 According to the present invention, it is possible to accurately determine the top-and-bottom direction of an image obtained by photographing including a human face as a subject.
以下、添付図面に従って、本発明を実施するための最良の形態について詳細に説明する。 The best mode for carrying out the present invention will be described below in detail with reference to the accompanying drawings.
図1(a)は、本発明を適用したデジタルカメラの正面図であり、図1(b)はそのデジタルカメラの背面図である。 FIG. 1A is a front view of a digital camera to which the present invention is applied, and FIG. 1B is a rear view of the digital camera.
図1(a)および(b)において、デジタルカメラ1には、被写体を撮影するための撮影レンズ12、撮影して得られた画像を表示する画像表示装置15、撮影範囲を目で確認するためのファインダ17、撮影モードおよび再生モードを切り替えるためのモード切替スイッチ111、画像の倍率を変えるためのズームスイッチ112、および、撮影開始を指示するためのレリーズスイッチ113が設けられている。
1A and 1B, the
図2は、デジタルカメラ1の具体的な内部構成の例を示すブロック図である。
FIG. 2 is a block diagram illustrating an example of a specific internal configuration of the
図2において、撮影レンズ12は、主として、複数の光学レンズ(ズームレンズ121およびフォーカスレンズ122)、露出の光量を調節するためのアイリス123、焦点距離を変化させて撮影倍率を変化させるためにズームレンズ121の位置を移動させるズームモータ124、焦点合わせのためにフォーカスレンズ122の位置を移動させるフォーカスモータ125、アイリス123の絞り値を変化させるアイリスモータ126、および、被写体像をアナログの画像信号として出力する固体撮像素子127によって構成されている。
In FIG. 2, a
モータドライバ13は、ズームモータ124を電気的に駆動するズームモータドライバ131、フォーカスモータ125を電気的に駆動するフォーカスモータドライバ132、および、アイリスモータ126を電気的に駆動するアイリスドライバ133によって構成されている。
The
アナログ処理部14は、固体撮像素子127から出力されたアナログ信号を、画素ごとにサンプリングホールドして増幅した後、デジタル信号に変換するものである。
The
外部記録装置16は、画像その他のデータを記憶するものである。
The
コントロールユニット10は、主として、キーコントローラ101、画像信号処理部102、バッファメモリ103、画像表示コントローラ104、メディアコントローラ105、システムコントローラ106、AF・AE演算部1061、顔領域検出部1062、方向判定部1063、画像回転部1064、画像圧縮・伸長部1065、および、内部メモリ107によって構成されている。
The
キーコントローラ101は、モード切替スイッチ111、ズームスイッチ112、および、レリーズスイッチ113を監視して、ユーザからの指示の入力を検出するものである。
The
画像信号処理部102は、アナログ処理部14によってデジタル信号に変換された画像に対して、ガンマ補正などの画像処理を施すものである。
The image
バッファメモリ103は、画像表示装置15へ出力する画像をバッファリングするものである。
The
画像表示コントローラ104は、画像表示装置15を制御して画像表示装置15に画像を表示させるものである
メディアコントローラ105は、外部記録装置16への画像の書き込み、および、外部記録装置16からの画像の読み取りを行うものである。
The
システムコントローラ106は、デジタルカメラ1の全体を統括制御するものである。
The
AF・AE演算部1061は、自動焦点調節(AF)演算および自動露出(AE)演算を行うものである。
The AF /
顔領域検出部1062は、固体撮像素子14(またはメディアコントローラ105)により取得された被写体の画像において、顔の検出と、目および口の検出を行うものである。
The face
方向判定部1063は、顔領域検出部1062により顔が検出された場合、目の位置に対する口の位置に基づいて、画像の天地方向を判定するものである。ここで、「天地方向」とは、頭頂部のある方向を「天」として顎のある方向を「地」とした方向である。目と口との関係では、右目と左目の中心点を「天」、口の中心点を「地」とした方向である。
The
ところで、顔部品のうち、耳を検出して耳の位置を天地方向判定の基準にしようとした場合、耳は髪に隠れている場合があり、このような場合には耳の正確な検出が困難なので、天地方向の正確な判定が困難になる。また、顔部品のうち、眉も同様に髪に隠れている場合があり、同様に天地方向の正確な判定が困難になる。また、髪は、個人によって様々なスタイルがあり、天地方向の正確な判定が困難になる。また、鼻や鼻の穴は、鼻形状の個人差や撮影角度、照明の具合によっては検出が困難な場合があり、天地方向の正確な判定が困難になる。以上の顔部品(耳、眉、髪、鼻)に対して、目(特に瞳)および口(特に唇)は、その周囲部分との対比により、顔画像からの検出が確実かつ容易であって、しかも、代表点の選定も容易であり、天地方向の判定の基準として優れている。そこで、本実施形態では、瞳および唇を基準として天地方向を判定する。 By the way, if the ear is detected from the facial parts and the position of the ear is used as a reference for determining the top and bottom direction, the ear may be hidden in the hair. In such a case, accurate detection of the ear is not possible. Since it is difficult, it is difficult to accurately determine the vertical direction. In addition, among the facial parts, the eyebrows may be hidden in the hair as well, and it is difficult to accurately determine the top and bottom direction. In addition, hair has various styles depending on the individual, and it is difficult to accurately determine the top and bottom direction. In addition, detection of the nose and nostrils may be difficult depending on individual differences in the nose shape, the shooting angle, and the lighting conditions, and accurate determination of the top-and-bottom direction becomes difficult. The eyes (especially pupils) and the mouth (especially lips) of the face parts (ears, eyebrows, hair, nose) are reliably and easily detected from the face image by comparison with the surrounding parts. In addition, it is easy to select a representative point, and it is excellent as a criterion for determining the vertical direction. Therefore, in the present embodiment, the top-and-bottom direction is determined based on the pupils and lips.
画像回転部1064は、方向判定部1063によって判定された天地方向に基づいて、画像を回転するものである。
The
画像圧縮・伸長部1065は、JPEG(Joint Photographic coding Experts Group)等の所定の圧縮および伸長方式で、画像の圧縮および画像の伸長を行うものである。
The image compression /
内部メモリ107は、画像記録処理や画像再生処理などの各処理の実行に必要な情報や、各処理時の処理対象の画像を記憶するものである。
The
次に、前述のデジタルカメラ1における画像記録処理の流れについて説明する。
Next, the flow of image recording processing in the
モード切替スイッチ111により撮影モードが選択されると、固体撮像素子127の受光面に結像された被写体の画像は固体撮像素子127からアナログ信号として出力され、アナログ処理部14でデジタル信号に変換された後、内部メモリ107に順次格納される。内部メモリ107に順次格納された画像は、画像信号処理部102によってガンマ補正などの所定の信号処理が施された後、バッファメモリ103を介して、画像表示コントローラ104の制御により画像表示装置15に表示されるようになっており、ユーザは、ファインダ17を覗く以外にも、画像表示装置15に表示された画像を見ることにより被写体の撮影範囲を確認できるようになっている。
When the shooting mode is selected by the
このような撮影モードにおいてレリーズスイッチ113が押されると、AF・AE演算部1061により自動焦点調節演算および自動露出演算が行われ、このような演算に基づく自動焦点調節処理および自動露出処理が施された状態において、固体撮像素子127により取得された画像が内部メモリ107に順次格納されていく。
When the
このような内部メモリ107に格納された画像を外部記録装置16に記録する態様(画像記録態様)には、第1に、画像の天地方向を判定して画像を回転して記録する態様と、第2に、画像の回転は行わないで、天地方向を示す天地方向情報を画像とともに記録する態様がある。
In such an aspect (image recording aspect) of recording the image stored in the
図3は、第1の画像記録態様(画像を回転して記録する態様)について、画像記録処理の例の要部を示したフローチャートである。 FIG. 3 is a flowchart showing a main part of an example of image recording processing in the first image recording mode (a mode in which an image is rotated and recorded).
焦点調節処理および露出処理が施された状態において固体撮像素子127により取得された画像が内部メモリ107に格納されると(S2)、画像の全領域の中から、顔の領域、目の領域、および、口の領域がそれぞれ検出される(S4)。具体的には、図4に示すように、画像の全領域200の中から、コントラストに基づいて顔の部分である顔領域210を判定し、この顔領域210を、それぞれ複数画素からなる複数のブロックに細かく分割する。そして各ブロックには各ブロックを識別する符号をそれぞれ付与しておく。次に、顔領域210において、赤色の領域とその領域の周囲(例えば肌色領域)との境界、すなわち唇の輪郭を検出する。図5では、第1の境界線221、第2の境界線222、第3の境界線223および第4の境界線224が唇とその周囲との境界を示す。口領域220は、第1の境界線221および第4の境界線224を含むブロックと両境界線221および214で囲まれたブロックとを含むブロック群であって、各ブロックの符号で表すと、第25乃至27、第31乃至37、第39乃至65、および、第67乃至73の複数ブロックからなる領域が該当する。そして、口領域220のうち、境界線221乃至224の最左端225(第57ブロック)と最右端226(第56ブロック)とが、唇のエッジと判定され、内部メモリ107に記憶される。また、両エッジ225および226の略中央にあるブロック(第52ブロック)が、口領域の中心点と判定され、内部メモリ107に記憶される。
When the image acquired by the solid-
また、一端のエッジ(例えば左エッジ225)から各境界線221乃至224をたどって、境界線の本数を数えることにより、開いた状態の口であるか、あるいは、閉じた状態の口であるかを判定することも可能である。例えば、図5に示すように境界線が4本であれば開いた状態の口であり、境界線が3本であれば閉じた状態の口であると判定される。すなわち、口の開閉に関わらず正確に口領域を検出することができる。なお、開いた状態の口の場合には、さらに、歯または舌の存在を確認することにより、より正確に口領域を検出するようにしてもよい。
Whether the mouth is open or closed by tracing the
検出された顔領域がある場合には、まず、画像の天地方向を判定する(S8)。具体的には、各目領域から1点ずつ選択した合計2点と、口領域から選択した1点とについて、目領域の2点を結ぶ線分を底辺として口領域の点を頂点とし、底辺に対して頂点が上、下、左、右のどちらの位置にあるかを判定することにより、画像の天地方向を判定する。例えば、左の瞳の中心点231があるブロックの位置を左目領域の代表点とし、右の瞳の中心点232があるブロックの位置を右目領域の代表点とし、唇の両エッジ225、226の略中央にあるブロックの位置を口領域の代表点とする。そして、両目の代表点を結ぶ線分(底辺)に対して、口の代表点(頂点)が上、下、左、右のどちらにあるかを判定する。
If there is a detected face area, first, the vertical direction of the image is determined (S8). Specifically, for a total of two points selected one by one from each eye area and one point selected from the mouth area, the line segment connecting the two points of the eye area is the base, the point of the mouth area is the vertex, and the base The top-to-bottom direction of the image is determined by determining whether the vertex is in the top, bottom, left, or right position. For example, the position of the block where the
次に、顔画像の回転角を求めて(S10)、顔画像を回転する(S12)。具体的には、両目の点を結ぶ線分(底辺)に対して口の点(頂点)が、図6(a)に示すように下のときにはt=0とし、図6(b)に示すように右のときにはt=1とし、図6(c)に示すように上のときにはt=2とし、図6(d)に示すように左のときにはt=−1として、時計回りを正とした回転角α=(π/2)×tを求め、画像をα回転する。すなわち、図6(a)に示すように口の位置が下のときには画像を0度回転し(すなわち回転せず)、図6(b)に示すように口の位置が右のときには画像を時計回りに90度回転し、図6(c)に示すように口の位置が上のときには画像を時計回りに180度回転し、図6(d)に示すように口の位置が左のときには画像を反時計回りに90度回転(すなわち時計回りに270度回転)する。 Next, the rotation angle of the face image is obtained (S10), and the face image is rotated (S12). Specifically, when the mouth point (vertex) is below the line segment (bottom) connecting the points of both eyes as shown in FIG. 6A, t = 0 is set as shown in FIG. 6B. Thus, t = 1 at the right, t = 2 at the top as shown in FIG. 6 (c), and t = -1 at the left as shown in FIG. 6 (d). The obtained rotation angle α = (π / 2) × t is obtained, and the image is rotated α. That is, when the mouth position is down as shown in FIG. 6A, the image is rotated by 0 degree (that is, not rotated), and when the mouth position is right as shown in FIG. When the mouth position is upward as shown in FIG. 6C, the image is rotated 180 degrees clockwise, and when the mouth position is left as shown in FIG. Is rotated 90 degrees counterclockwise (ie, rotated 270 degrees clockwise).
上下左右の判定については、例えば、図7に示すように、左目の代表点231(左の瞳の中心点である)と右目の代表点232(右の瞳の中心点である)との略中央にある中心点233に対して、口の代表点227(唇の両エッジの中心点である)の角度を求めて、―45度以上45度未満であれば上、45度以上135度未満であれば右、135度以上225度未満であれば下、225度以上315度未満であれば左であると判定する。
Regarding the determination of up, down, left, and right, for example, as shown in FIG. 7, the left eye representative point 231 (which is the center point of the left pupil) and the right eye representative point 232 (which is the center point of the right pupil). The angle of the mouth representative point 227 (which is the center point of both edges of the lips) with respect to the
回転が施された画像は、画像圧縮・伸長部1065によりJPEG等の所定の圧縮方式でデータ圧縮が施されて(S14)、メディアコントローラ105の制御により外部記録装置16に保存される(S16)。
The rotated image is subjected to data compression by a predetermined compression method such as JPEG by the image compression / decompression unit 1065 (S14), and is stored in the
なお、ステップS6で顔領域がないと判定された画像に対しては、画像の回転は行わないで、データ圧縮を施して(S14)、外部記録装置16に保存する(S16)。 It should be noted that the image determined to have no face area in step S6 is subjected to data compression without being rotated (S14) and stored in the external recording device 16 (S16).
モード切替スイッチ111により再生モードが選択されると、外部記録装置16に保存された画像(天地方向に基づいて回転が施された画像である)が、メディアコントローラ105の制御により外部記録装置16から取り出されて、内部メモリ107に一時的に格納される。内部メモリ107に格納された画像は、画像圧縮・伸長部1065により所定の方式でデータ伸長が施され、バッファメモリ103を介して、画像表示コントローラ104の制御により画像表示装置15に表示される。
When the playback mode is selected by the
図8は、第2の画像記録態様(天地方向情報を画像とともに記録する態様)について、画像記録処理の例の要部を示したフローチャートである。 FIG. 8 is a flowchart showing a main part of an example of image recording processing in the second image recording mode (a mode in which the top-and-bottom direction information is recorded together with the image).
図8において、固体撮像素子127により取得された画像が内部メモリ107に格納されると(S2)、画像の全領域の中から、顔の領域、目の領域、および、口の領域がそれぞれ検出され(S4)、顔領域の有無を判定した後(S6)、顔領域がある場合には、画像の天地方向を判定して(S8)、画像の天地方向を示す天地方向情報を生成する(S10)。
In FIG. 8, when the image acquired by the solid-
具体的には、例えば、両目の位置を結ぶ線分(底辺)に対して口の位置(頂点)が、図6(a)に示すように下のときにはt=0とし、図6(b)に示すように右のときにはt=1とし、図6(c)に示すように上のときにはt=2とし、図6(d)に示すように左のときにはt=−1とし、上下左右を示す情報(t)を天地方向情報とする。図7に示すように、左目の代表点231と右目の代表点232との中心点233に対する、口の代表点227(唇の両エッジの中心点である)の角度を天地方向情報としてもよい。
Specifically, for example, when the mouth position (vertex) is below the line segment (base) connecting the positions of both eyes as shown in FIG. 6A, t = 0 is set, and FIG. As shown in FIG. 6, t = 1 at the right, t = 2 at the top as shown in FIG. 6C, t = −1 at the left as shown in FIG. The indicated information (t) is the top / bottom direction information. As shown in FIG. 7, the angle of the mouth representative point 227 (which is the center point of both edges of the lips) with respect to the
そして、顔画像は、画像圧縮・伸長部1065によりJPEG等の所定の圧縮方式でデータ圧縮が施されて(S24)、メディアコントローラ105の制御により外部記録装置16に保存される。ここで、天地方向情報は、各画像と関連付けられて、外部記録装置16に保存される(S26)。例えば、画像を格納するファイルのヘッダ領域に天地方向情報を書き込むようにする。詳細には、例えば、ファイルがExif(Exchangeable image format)の形式である場合には、タグ情報のひとつとして天地方向情報を当該ファイルのヘッダ領域に書き込むようにする。このように顔画像と天地方向情報とを同一ファイルに記録する態様以外にも、顔画像と天地方向情報とを別ファイルに記録する態様がある。
The face image is subjected to data compression by a predetermined compression method such as JPEG by the image compression / decompression unit 1065 (S24), and is stored in the
モード切替スイッチ111により再生モードが選択されると、外部記録装置16に保存された画像(未回転の画像である)が、天地方向情報とともに、メディアコントローラ105の制御により外部記録装置16から取り出されて、内部メモリ107に一時的に格納される。内部メモリ107に格納された画像は、画像圧縮・伸長部1065により所定の方式でデータ伸長が施され、画像回転部1064により天地方向情報に基づいて回転処理が施された後、バッファメモリ103を介して、画像表示コントローラ104の制御により画像表示装置15に表示される。
When the playback mode is selected by the
具体的には、図6(a)に示すように口の位置が下(t=0)のときには画像を0度回転し(すなわち回転せず)、図6(b)に示すように口の位置が右(t=1)のときには画像を時計回りに90度回転し、図6(c)に示すように口の位置が上(t=2)のときには画像を時計回りに180度回転し、図6(d)に示すように口の位置が左(t=−1)のときには画像を反時計回りに90度回転する。 Specifically, as shown in FIG. 6A, when the position of the mouth is down (t = 0), the image is rotated by 0 degree (that is, not rotated), and as shown in FIG. When the position is right (t = 1), the image is rotated 90 degrees clockwise. When the mouth position is up (t = 2) as shown in FIG. 6C, the image is rotated 180 degrees clockwise. As shown in FIG. 6D, when the position of the mouth is left (t = −1), the image is rotated 90 degrees counterclockwise.
以上、画像を記録する際に天地方向を判定するようにした場合を例に説明したが、本発明はこれに限るものではなく、画像を再生する際に天地方向を判定して画像を回転するようにしてもよい。 As described above, the case where the top and bottom direction is determined when recording an image has been described as an example. However, the present invention is not limited to this, and the top and bottom direction is determined and the image is rotated when the image is reproduced. You may do it.
図9は、外部記録装置16に保存されている画像を再生する際に天地方向を検出して画像を回転する処理の例の要部を示すフローチャートである。
FIG. 9 is a flowchart showing a main part of an example of processing for detecting the top and bottom direction and rotating the image when reproducing the image stored in the
モード切替スイッチ111により再生モードが選択されると、外部記録装置16に保存された画像(未回転の画像である)が、メディアコントローラ105の制御により外部記録装置16から取得されて、内部メモリ107に一時的に格納される(S42)。内部メモリ107に格納された画像は、画像圧縮・伸長部1065により所定の方式でデータ伸長が施される(S44)。
When the playback mode is selected by the
次に、画像の全領域の中から、顔の領域、目の領域、および、口の領域がそれぞれ検出され(S46)、顔領域の有無を判定した後(S48)、顔領域がある場合には、画像の天地方向を判定し(S50)、顔画像の回転角度を求めて(S52)、顔画像を回転する(S54)。 Next, the face area, the eye area, and the mouth area are respectively detected from the entire area of the image (S46), and the presence / absence of the face area is determined (S48). Determines the vertical direction of the image (S50), obtains the rotation angle of the face image (S52), and rotates the face image (S54).
具体的には、両目の位置を結ぶ線分(底辺)に対して口の位置(頂点)が、図6(a)に示すように下のときにはt=0とし、図6(b)に示すように右のときにはt=1とし、図6(c)に示すように上のときにはt=2とし、図6(d)に示すように左のときにはt=−1として、時計回りを正とした回転角α=(π/2)×tを求め、画像をα回転する。すなわち、図6(a)に示す場合には画像を0度回転し(すなわち回転せず)、図6(b)に示す場合には画像を時計回りに90度回転し、図6(c)に示す場合には画像を時計回りに180度回転し、図6(d)に示す場合には画像を反時計回りに90度回転する。 Specifically, when the mouth position (vertex) is below the line segment (bottom) connecting the positions of both eyes, as shown in FIG. 6A, t = 0, as shown in FIG. 6B. Thus, t = 1 at the right, t = 2 at the top as shown in FIG. 6 (c), and t = -1 at the left as shown in FIG. 6 (d). The obtained rotation angle α = (π / 2) × t is obtained, and the image is rotated α. That is, in the case shown in FIG. 6 (a), the image is rotated by 0 degree (that is, not rotated), and in the case shown in FIG. 6 (b), the image is rotated by 90 degrees clockwise. In the case shown in FIG. 6, the image is rotated 180 degrees clockwise, and in the case shown in FIG. 6D, the image is rotated 90 degrees counterclockwise.
回転が施された画像は、バッファメモリ103を介して、画像表示コントローラ104の制御により画像表示装置15に表示される(S56)。
The rotated image is displayed on the
なお、天地方向を判定する際に、瞳の略中央を目の代表点とし、唇の両エッジの略中央を口の代表点として、これらの3点(両目および口の各代表点)に基づいて天地方向を判定する場合を例に説明したが、本発明はこれに限定されるものではない。例えば、左目の左エッジおよび右目の右エッジをそれぞれ各目の代表点としてもよく、左目の右エッジおよび右目の左エッジをそれぞれ各目の代表点としてもよい。また、両目の各代表点(2点)および唇の両エッジ(2点)の合計4点から直接的に天地方向を判定しても同様な効果が得られる。 When determining the vertical direction, the approximate center of the pupil is the representative point of the eye, and the approximate center of both edges of the lips is the representative point of the mouth, based on these three points (representative points of both eyes and the mouth). However, the present invention is not limited to this. For example, the left edge of the left eye and the right edge of the right eye may be the representative points of each eye, and the right edge of the left eye and the left edge of the right eye may be the representative points of each eye. The same effect can be obtained by directly determining the top-to-bottom direction from a total of 4 points including the representative points (2 points) of both eyes and both edges (2 points) of the lips.
また、図4乃至図6は、顔を正面から撮影した場合について説明したが、顔を横から撮影した場合には、片目の領域の1点と唇の領域の1点の合計2点から画像の天地方向を判定するようにしてもよい。 4 to 6 describe the case where the face is photographed from the front, but when the face is photographed from the side, the image is obtained from a total of two points, one point for one eye region and one point for the lip region. You may make it determine the top-and-bottom direction.
また、画像の天地方向の判定の際に、上、下、左、右の4つに分類する場合を例に説明したが、本発明はこれに限るものではない。例えば、図7において、左目と右目の中心点233に対する口の代表点の角度に基づいて、その角度分画像を回転するようにしてもよい。具体的には角度に応じて口の代表点がちょうど真下にくるように画像を回転する。回転後の画像の四隅はトリミングして除去し、さらに必要に応じて画像に拡大処理を施す。
Further, the case where the image is classified into the top, bottom, left, and right cases has been described as an example, but the present invention is not limited to this. For example, in FIG. 7, the image may be rotated by the angle based on the angle of the representative point of the mouth with respect to the
以上、本発明をデジタルカメラに適用した場合を例に説明したが、本発明は、これに限るものではなく、被写体として人物の顔を含む顔画像を扱うその他の画像処理装置に適用してよいことは言うまでもない。例えば、画像記録機能を有さない画像再生専用の画像処理装置に適用してもよい。 As described above, the case where the present invention is applied to a digital camera has been described as an example. However, the present invention is not limited to this, and may be applied to other image processing apparatuses that handle a face image including a human face as a subject. Needless to say. For example, you may apply to the image processing apparatus only for image reproduction which does not have an image recording function.
15…画像表示装置、16…外部記録装置、1062…顔領域検出部(検出手段)、104…画像表示コントローラ、105…メディアコントローラ(画像記録手段、画像取得手段)、1063…方向判定部、1064…画像回転部、107…内部メモリ、127…固体撮像素子(画像取得手段)
DESCRIPTION OF
Claims (5)
前記顔画像から目および口を検出するステップと、
前記顔画像における目の位置に対する口の位置に基づいて前記顔画像の天地方向を判定するステップと、
を含むことを特徴とする顔画像の天地方向判定方法。 Obtaining a face image including a human face as a subject;
Detecting eyes and mouth from the face image;
Determining the top-to-bottom direction of the face image based on the position of the mouth with respect to the position of the eyes in the face image;
A method of determining the top / bottom direction of a face image, comprising:
前記顔画像から目および口を検出する検出手段と、
前記顔画像における目の位置に対する口の位置に基づいて前記顔画像の天地方向を判定する方向判定手段と、
判定された天地方向に基づいて前記顔画像を回転する画像回転手段と、
回転された顔画像を所定の記録媒体に記録する画像記録手段と、
を備えたことを特徴とする画像記録装置。 Image acquisition means for acquiring a face image including a human face as a subject;
Detecting means for detecting eyes and mouth from the face image;
Direction determining means for determining a top-to-bottom direction of the face image based on a mouth position with respect to an eye position in the face image;
Image rotating means for rotating the face image based on the determined top-and-bottom direction;
Image recording means for recording the rotated face image on a predetermined recording medium;
An image recording apparatus comprising:
前記顔画像から目および口を検出する検出手段と、
前記顔画像における目の位置に対する口の位置に基づいて前記顔画像の天地方向を判定する方向判定手段と、
前記顔画像とともに該顔画像に関連付けて前記天地方向を所定の記録媒体に記録する画像記録手段と、
を備えたことを特徴とする画像記録装置。 Image acquisition means for acquiring a face image including a human face as a subject;
Detecting means for detecting eyes and mouth from the face image;
Direction determining means for determining a top-to-bottom direction of the face image based on a mouth position with respect to an eye position in the face image;
Image recording means for recording the top and bottom direction on a predetermined recording medium in association with the face image together with the face image;
An image recording apparatus comprising:
前記顔画像から目および口を検出する検出手段と、
前記顔画像における目の位置に対する口の位置に基づいて前記顔画像の天地方向を判定する方向判定手段と、
判定された天地方向に基づいて前記顔画像を回転する画像回転手段と、
回転された画像を表示する画像表示手段と、
を備えたことを特徴とする画像再生装置。 Image acquisition means for acquiring a face image including a human face as a subject;
Detecting means for detecting eyes and mouth from the face image;
Direction determining means for determining a top-to-bottom direction of the face image based on a mouth position with respect to an eye position in the face image;
Image rotating means for rotating the face image based on the determined top-and-bottom direction;
Image display means for displaying the rotated image;
An image reproducing apparatus comprising:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2004005363A JP2005202477A (en) | 2004-01-13 | 2004-01-13 | Method for deciding top-and-bottom direction of face image and image recording device and image reproducing device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2004005363A JP2005202477A (en) | 2004-01-13 | 2004-01-13 | Method for deciding top-and-bottom direction of face image and image recording device and image reproducing device |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2005202477A true JP2005202477A (en) | 2005-07-28 |
Family
ID=34819721
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2004005363A Pending JP2005202477A (en) | 2004-01-13 | 2004-01-13 | Method for deciding top-and-bottom direction of face image and image recording device and image reproducing device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2005202477A (en) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2008172501A (en) * | 2007-01-11 | 2008-07-24 | Fujifilm Corp | Imaging apparatus |
JP2008245012A (en) * | 2007-03-28 | 2008-10-09 | Casio Comput Co Ltd | Image processing unit and program |
JP2010003165A (en) * | 2008-06-20 | 2010-01-07 | Canon Inc | Image processor and image processing method, computer program, and recording medium |
JP2010525425A (en) * | 2007-03-28 | 2010-07-22 | ソニー エリクソン モバイル コミュニケーションズ, エービー | Apparatus and method for adjusting the direction of data representation displayed on a display device |
JP2010283661A (en) * | 2009-06-05 | 2010-12-16 | Canon Inc | Imaging device |
JP2011035769A (en) * | 2009-08-04 | 2011-02-17 | Nikon Corp | Photographing apparatus |
US8442351B2 (en) | 2008-11-06 | 2013-05-14 | Nec Corporation | Image orientation determination device, image orientation determination method, and image orientation determination program |
JP2016058024A (en) * | 2014-09-12 | 2016-04-21 | 富士フイルム株式会社 | Content managing system, management content generating method, management content reproducing method, program, and recording medium |
JP2016076843A (en) * | 2014-10-07 | 2016-05-12 | キヤノン株式会社 | Imaging apparatus, control method therefor, program and recording medium |
WO2019130836A1 (en) * | 2017-12-27 | 2019-07-04 | キヤノン株式会社 | Radiography device, image processing device, and image determination method |
-
2004
- 2004-01-13 JP JP2004005363A patent/JP2005202477A/en active Pending
Cited By (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2008172501A (en) * | 2007-01-11 | 2008-07-24 | Fujifilm Corp | Imaging apparatus |
US8244068B2 (en) | 2007-03-28 | 2012-08-14 | Sony Ericsson Mobile Communications Ab | Device and method for adjusting orientation of a data representation displayed on a display |
JP2010525425A (en) * | 2007-03-28 | 2010-07-22 | ソニー エリクソン モバイル コミュニケーションズ, エービー | Apparatus and method for adjusting the direction of data representation displayed on a display device |
JP2008245012A (en) * | 2007-03-28 | 2008-10-09 | Casio Comput Co Ltd | Image processing unit and program |
JP2010003165A (en) * | 2008-06-20 | 2010-01-07 | Canon Inc | Image processor and image processing method, computer program, and recording medium |
US8442351B2 (en) | 2008-11-06 | 2013-05-14 | Nec Corporation | Image orientation determination device, image orientation determination method, and image orientation determination program |
JP2010283661A (en) * | 2009-06-05 | 2010-12-16 | Canon Inc | Imaging device |
JP2011035769A (en) * | 2009-08-04 | 2011-02-17 | Nikon Corp | Photographing apparatus |
JP2016058024A (en) * | 2014-09-12 | 2016-04-21 | 富士フイルム株式会社 | Content managing system, management content generating method, management content reproducing method, program, and recording medium |
US10410677B2 (en) | 2014-09-12 | 2019-09-10 | Fujifilm Corporation | Content management system, management content generating method, management content play back method, and recording medium |
JP2016076843A (en) * | 2014-10-07 | 2016-05-12 | キヤノン株式会社 | Imaging apparatus, control method therefor, program and recording medium |
WO2019130836A1 (en) * | 2017-12-27 | 2019-07-04 | キヤノン株式会社 | Radiography device, image processing device, and image determination method |
JP2019115558A (en) * | 2017-12-27 | 2019-07-18 | キヤノン株式会社 | Radiography apparatus, image processing apparatus, and image determination method |
US11210809B2 (en) | 2017-12-27 | 2021-12-28 | Canon Kabushiki Kaisha | Image processing apparatus, image determination method and non-transitory computer-readable storage medium |
JP7022584B2 (en) | 2017-12-27 | 2022-02-18 | キヤノン株式会社 | Radiation imaging device, image processing device and image judgment method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4373828B2 (en) | Specific area detection method, specific area detection apparatus, and program | |
KR101539043B1 (en) | Image photography apparatus and method for proposing composition based person | |
JP4218712B2 (en) | Face detection device, imaging device, and face detection method | |
US20100302595A1 (en) | Image Reproducing Apparatus And Imaging Apparatus | |
JP2005303991A (en) | Imaging device, imaging method, and imaging program | |
CN107368806B (en) | Image rectification method, image rectification device, computer-readable storage medium and computer equipment | |
TW201119365A (en) | Image selection device and method for selecting image | |
JP2007081682A (en) | Image processor, image processing method, and executable program by information processor | |
JP2006211139A (en) | Imaging apparatus | |
JP2009110486A (en) | Unit, method and program for image processing, imaging unit, and control method for imaging unit | |
US20110007191A1 (en) | Apparatus and method for processing digital image | |
US20120081560A1 (en) | Digital photographing apparatus and method of controlling the same | |
JP2005202477A (en) | Method for deciding top-and-bottom direction of face image and image recording device and image reproducing device | |
JP2008035125A (en) | Image pickup device, image processing method, and program | |
KR20080067935A (en) | Digital photographing apparatus, method for controlling the same, and recording medium storing program to implement the method | |
JP2005322220A (en) | Particular region detecting method, particular region detecting apparatus, and program therefor | |
JP5504990B2 (en) | Imaging apparatus, image processing apparatus, and program | |
JP2017143354A (en) | Image processing apparatus and image processing method | |
JP2007011200A (en) | Imaging apparatus | |
WO2012014946A1 (en) | Image processing device and image processing program | |
JP2005323015A (en) | Digital camera | |
JP4717867B2 (en) | Imaging apparatus and imaging method | |
JP2011239267A (en) | Imaging apparatus and image processing apparatus | |
JP6241107B2 (en) | Gaze direction detection device and gaze direction detection method | |
JP4534539B2 (en) | Camera apparatus and program |