JP5353293B2 - Image processing apparatus and electronic still camera - Google Patents

Image processing apparatus and electronic still camera Download PDF

Info

Publication number
JP5353293B2
JP5353293B2 JP2009039524A JP2009039524A JP5353293B2 JP 5353293 B2 JP5353293 B2 JP 5353293B2 JP 2009039524 A JP2009039524 A JP 2009039524A JP 2009039524 A JP2009039524 A JP 2009039524A JP 5353293 B2 JP5353293 B2 JP 5353293B2
Authority
JP
Japan
Prior art keywords
image
smile
evaluation value
unit
processing apparatus
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2009039524A
Other languages
Japanese (ja)
Other versions
JP2010198110A (en
Inventor
弘樹 草柳
正永 中村
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.)
Nikon Corp
Original Assignee
Nikon 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 Nikon Corp filed Critical Nikon Corp
Priority to JP2009039524A priority Critical patent/JP5353293B2/en
Publication of JP2010198110A publication Critical patent/JP2010198110A/en
Application granted granted Critical
Publication of JP5353293B2 publication Critical patent/JP5353293B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、画像処理を行う画像処理装置、及びそれを備えた電子スチルカメラに関する。   The present invention relates to an image processing apparatus that performs image processing, and an electronic still camera including the image processing apparatus.

従来から、被写体の笑顔を検出して自動的に撮像するカメラが知られている。例えば、特許文献1のカメラは、撮像によって得られた画像信号が記録媒体に記録されるまでの期間において、画像信号から検出された顔の表情が笑顔であると判断した場合に、画像信号を記録媒体に自動的に記録する。   2. Description of the Related Art Conventionally, cameras that detect a subject's smile and automatically capture an image are known. For example, the camera disclosed in Patent Document 1 determines the image signal when the facial expression detected from the image signal is a smile during the period until the image signal obtained by imaging is recorded on the recording medium. Automatically record on the recording medium.

しかしながら、被写体の好ましい笑顔画像を取得することは難しい。例えば、被写体が笑顔を作ることが苦手である場合や、笑顔を作っても検出条件を満足しない場合は、撮像が実行されず、笑顔画像を取得することができない。一方、笑顔画像を取得することができた場合でも、確認すると意外にも所望の笑顔画像が取得されていない場合がある。   However, it is difficult to acquire a preferable smile image of the subject. For example, if the subject is not good at making a smile, or if the detection condition is not satisfied even if a smile is made, imaging is not performed and a smile image cannot be acquired. On the other hand, even if a smile image can be acquired, there is a case where a desired smile image is not acquired unexpectedly if confirmed.

そこで、本発明は、所望の笑顔画像を容易に取得することができる画像処理装置及び電子スチルカメラを提供することを目的とする。   Therefore, an object of the present invention is to provide an image processing apparatus and an electronic still camera that can easily acquire a desired smile image.

本発明の一例としての画像処理装置は、第1画像から顔を検出する顔検出部と、人物の笑顔を撮影した複数の画像を記憶可能な画像記憶部と、画像記憶部に記憶された画像から、第1画像とは異なる第2画像を選択する画像選択部と、第2画像より得られた笑顔の程度を示す笑顔評価値を基準評価値として、第1画像から検出された顔を基準評価値に基づいて補正する補正部とを備える。
An image processing apparatus as an example of the present invention includes a face detection unit that detects a face from a first image, an image storage unit that can store a plurality of images obtained by photographing a person's smile, and an image stored in the image storage unit from an image selection section for selecting a different second image from the first image, as a reference evaluation value smile evaluation value indicating the degree of smile obtained from the second image, the detected face from the first image and a correcting section that corrects, based on the criteria evaluation value.

本発明の画像処理装置、及び電子スチルカメラによれば、所望の笑顔画像を容易に取得することができる。   According to the image processing apparatus and the electronic still camera of the present invention, a desired smile image can be easily acquired.

本発明の第1実施形態における電子スチルカメラ1の構成を示すブロック図である。It is a block diagram which shows the structure of the electronic still camera 1 in 1st Embodiment of this invention. ベストスマイル画像の撮像時における表示部11の例を示す図である。It is a figure which shows the example of the display part 11 at the time of imaging of a best smile image. 電子スチルカメラ1における笑顔モードによる撮像時の制御部7の動作を示すフローチャートである。7 is a flowchart illustrating an operation of the control unit 7 during imaging in the smile mode in the electronic still camera 1. 第2実施形態の電子スチルカメラ1における再生時の制御部7の動作を示すフローチャートである。It is a flowchart which shows operation | movement of the control part 7 at the time of reproduction | regeneration in the electronic still camera 1 of 2nd Embodiment. 第2実施形態の電子スチルカメラ1における再生時の表示部11の例を示す図である。It is a figure which shows the example of the display part 11 at the time of reproduction | regeneration in the electronic still camera 1 of 2nd Embodiment.

(第1実施形態)
以下、図面を用いて本発明の第1実施形態について説明する。なお、本実施形態では、本発明の画像処理装置の一例として、電子スチルカメラを用いて説明する。図1は、本発明の第1実施形態における電子スチルカメラ1の構成を示すブロック図である。図1に示すように、電子スチルカメラ1は、撮像レンズ2、撮像素子3、A/D変換部4、バッファメモリ5、画像処理部6、制御部7、表示部11、メモリ12、操作部13、記録I/F部16、記録媒体17、バス18を備える。
(First embodiment)
Hereinafter, a first embodiment of the present invention will be described with reference to the drawings. In this embodiment, an electronic still camera will be described as an example of the image processing apparatus of the present invention. FIG. 1 is a block diagram showing a configuration of an electronic still camera 1 according to the first embodiment of the present invention. As shown in FIG. 1, an electronic still camera 1 includes an imaging lens 2, an imaging device 3, an A / D conversion unit 4, a buffer memory 5, an image processing unit 6, a control unit 7, a display unit 11, a memory 12, and an operation unit. 13, a recording I / F unit 16, a recording medium 17, and a bus 18.

撮像レンズ2は、撮像素子3の撮像面に被写体像を結像する。なお、撮像レンズ2の他に、ズームレンズやフォーカスレンズなどの複数のレンズからなる撮像光学系であっても良い。撮像素子3は、撮像レンズ2を通過した被写体光を光電変換し、R、G、Bの各色に対応するアナログ画像信号を出力する。撮影モードにおいて、撮像素子3は、所定間隔毎に間引き読み出しを行い、スルー画像を取得する。その後、撮像素子3は、レリーズ釦14が全押しされると本画像を取得する。また、撮像素子3は、後述する表情識別部9により、スルー画像から笑顔を識別した場合に、自動的に本画像を取得する。以下、笑顔を識別した場合に、自動的に本画像を取得するモードを「笑顔モード」として説明する。   The imaging lens 2 forms a subject image on the imaging surface of the imaging element 3. In addition to the imaging lens 2, an imaging optical system including a plurality of lenses such as a zoom lens and a focus lens may be used. The imaging element 3 photoelectrically converts the subject light that has passed through the imaging lens 2 and outputs analog image signals corresponding to R, G, and B colors. In the photographing mode, the image sensor 3 performs thinning readout at predetermined intervals to obtain a through image. Thereafter, the image sensor 3 acquires the main image when the release button 14 is fully pressed. Further, the image pickup device 3 automatically acquires the main image when the facial expression identifying unit 9 described later identifies a smile from the through image. Hereinafter, a mode in which a main image is automatically acquired when a smile is identified will be described as a “smile mode”.

撮像素子3から出力される画像信号は、A/D変換部4に入力される。A/D変換部4は、撮像素子3から出力されるアナログの画像信号をA/D変換し、デジタルの画像信号に変換する。なお、このデジタルの画像信号は、1コマにまとめられ、画像データとしてバッファメモリ5に記録される。バッファメモリ5は、画像処理部6による画像処理の前工程や後工程で画像データを一時的に記録する。   An image signal output from the image sensor 3 is input to the A / D converter 4. The A / D converter 4 performs A / D conversion on the analog image signal output from the image sensor 3 and converts the analog image signal into a digital image signal. The digital image signals are collected into one frame and recorded in the buffer memory 5 as image data. The buffer memory 5 temporarily records image data in the pre-process and post-process of image processing by the image processing unit 6.

画像処理部6は、バッファメモリ5に記憶された画像データに対して画像処理を施す。なお、この画像処理としては、周知のホワイトバランス調整、色補間、階調変換処理、輪郭強調処理などが挙げられる。また、画像処理部6は、記録媒体17に画像ファイルを記録する前にJPEG(Joint Photographic Experts Group)形式などで圧縮する処理や、圧縮された上記のデータを伸長復元する処理をも実行する。さらに、画像処理部6は、後述する顔検出部8により検出された顔を補正する。例えば、画像処理部6は、画素の位置座標を用いて、座標変換及び補間演算を行い、眉、目、口の形状を変える。   The image processing unit 6 performs image processing on the image data stored in the buffer memory 5. Examples of the image processing include well-known white balance adjustment, color interpolation, gradation conversion processing, and contour enhancement processing. The image processing unit 6 also executes a process of compressing in JPEG (Joint Photographic Experts Group) format or the like before recording an image file on the recording medium 17, and a process of decompressing and restoring the compressed data. Further, the image processing unit 6 corrects the face detected by the face detection unit 8 described later. For example, the image processing unit 6 performs coordinate conversion and interpolation calculation using the pixel position coordinates, and changes the shape of the eyebrows, eyes, and mouth.

制御部7は、所定のシーケンスプログラムにしたがって、電子スチルカメラ1の統括的な制御を行うとともに、撮像時に必要となる各種演算(AF、AEなど)を実行する。また、制御部7は、顔検出部8、表情識別部9、顔識別部10などの機能を有している。顔検出部8は、スルー画像、本画像、記録媒体17に記録された画像から特徴点を抽出して顔、顔の大きさ等を検出する。例えば、顔検出部8は、特開2001−16573号公報などに記載された特徴点抽出処理によって顔を抽出する。上記の特徴点としては、例えば、眉、目、鼻、唇の各端点、顔の輪郭点、頭頂点や顎の下端点などが挙げられる。   The control unit 7 performs overall control of the electronic still camera 1 according to a predetermined sequence program, and executes various calculations (AF, AE, etc.) necessary for imaging. The control unit 7 has functions such as a face detection unit 8, a facial expression identification unit 9, and a face identification unit 10. The face detection unit 8 extracts feature points from the through image, the main image, and the image recorded on the recording medium 17 to detect the face, the size of the face, and the like. For example, the face detection unit 8 extracts a face by a feature point extraction process described in Japanese Patent Application Laid-Open No. 2001-16573. Examples of the feature points include eyebrow, eye, nose, and lip end points, face contour points, head apexes, and chin lower end points.

表情識別部9は、顔検出部8により検出された顔の表情を識別する。例えば、表情識別部9は、特開平8−249453号公報、特開平10−255043号公報に示されるように、表情カテゴリとして、怒り、嫌悪、恐れ、悲しみ、笑顔、驚きの合計6種類の基本表情を考え、無表情から各基本表情への時系列画像の処理を行い、表情を識別する。   The facial expression identification unit 9 identifies the facial expression detected by the face detection unit 8. For example, as shown in JP-A-8-249453 and JP-A-10-255043, the facial expression identification unit 9 has a total of six basic types of facial expressions such as anger, disgust, fear, sadness, smile, and surprise. Consider facial expressions, process time-series images from non-facial expressions to basic facial expressions, and identify facial expressions.

顔識別部10は、人物の顔の特徴量を示す特徴量情報である顔認識データを生成する。例えば、顔識別部10は、画像中の人物を事前登録しておく「人物登録モード」が設定されている場合に、以下の手順により顔認識データを生成する。まず、制御部7は、撮像素子3を制御して、スルー画像を取得する。次に、制御部7は、表示部11に表示されたガイドの目及び口と、登録したい被写体の目及び口とを合わせて、撮像素子3により、登録したい被写体の画像を取得する。顔検出部8は、この画像から顔の特徴点を抽出する。そして、顔識別部10は、顔検出部8により検出された特徴点の位置、各特徴点の相対距離などから顔認識データを生成する。生成された顔認識データは、メモリ12に記憶される。   The face identification unit 10 generates face recognition data that is feature amount information indicating the feature amount of a person's face. For example, when the “person registration mode” in which the person in the image is registered in advance is set, the face identification unit 10 generates face recognition data according to the following procedure. First, the control unit 7 controls the image sensor 3 to acquire a through image. Next, the control unit 7 matches the eyes and mouth of the guide displayed on the display unit 11 with the eyes and mouth of the subject to be registered, and acquires an image of the subject to be registered by the image sensor 3. The face detection unit 8 extracts facial feature points from this image. Then, the face identification unit 10 generates face recognition data from the position of the feature point detected by the face detection unit 8, the relative distance between the feature points, and the like. The generated face recognition data is stored in the memory 12.

また、顔識別部10は、「顔認識撮影モード」において、顔検出部8により検出された顔を有する被写体、すなわち撮像時の被写体が、事前登録された被写体に一致するか否かを判定する。例えば、顔識別部10は、顔検出部8により検出された特徴点の位置、各特徴点の相対距離などを演算する。次に、顔識別部10は、上記の演算結果と、メモリ12に記憶された顔認識データとを比較して、事前登録された被写体の顔と、撮像時の被写体の顔との相似度を求める。そして、顔識別部10は、上記の相似度が閾値を上回る場合に、撮像時の被写体が事前登録された被写体に一致すると判定する。   Further, the face identifying unit 10 determines whether or not the subject having the face detected by the face detecting unit 8 in the “face recognition photographing mode”, that is, the subject at the time of imaging matches the subject registered in advance. . For example, the face identification unit 10 calculates the position of the feature point detected by the face detection unit 8, the relative distance between the feature points, and the like. Next, the face identification unit 10 compares the above calculation result with the face recognition data stored in the memory 12, and determines the similarity between the face of the subject registered in advance and the face of the subject at the time of imaging. Ask. Then, the face identification unit 10 determines that the subject at the time of imaging matches the subject registered in advance when the similarity is greater than the threshold value.

また、制御部7は、メモリ12に予め記憶されている笑顔評価基準テーブルに基づいて、笑顔の程度を示す笑顔評価値を算出する。例えば、制御部7は、特開2004−46591号公報に示されるように、笑顔評価基準テーブルを参照して、顔の各構成要素、例えば、眉、目、口の形状に関する評価値を算出する。そして、制御部7は、各評価値を合算して、笑顔評価値を算出する。なお、笑顔評価基準テーブルは、顔の構成要素を表すデータ(例えば、眉、目、口)を格納する要素領域と、対応する各構成要素の評価値、及び各構成要素が平坦な状態を基準とする角度を格納する評価値領域とにより構成される。例えば、眉については、眉尻が下がるほど評価値が高くなる。目については、目尻が下がるほど評価値が高くなる。口については、口角が上がるほど評価値が高くなる。また、笑顔評価値は、100点を満点とし、満面の笑みに近いほど高得点となる。   Further, the control unit 7 calculates a smile evaluation value indicating the degree of smile based on the smile evaluation reference table stored in advance in the memory 12. For example, the control unit 7 refers to a smile evaluation criterion table as shown in Japanese Patent Application Laid-Open No. 2004-46591, and calculates evaluation values related to face components such as eyebrows, eyes, and mouth shapes. . And the control part 7 adds each evaluation value, and calculates a smile evaluation value. The smile evaluation criteria table is based on the element area for storing data representing facial components (for example, eyebrows, eyes, mouth), the evaluation value of each corresponding component, and the state in which each component is flat. And an evaluation value area for storing an angle. For example, for the eyebrows, the evaluation value increases as the eyebrow lowers. As for the eyes, the evaluation value increases as the corners of the eyes decrease. For the mouth, the evaluation value increases as the mouth angle increases. The smile evaluation value is 100 points, and the closer to a full smile, the higher the score.

表示部11は、制御部7の制御により各種の画像を表示する。表示部11に表示される各種の画像は、スルー画像、本画像、記録媒体17に記録された画像、メニュー画像などを含む。操作部13は、レリーズ釦14、十字キー15などを有する。レリーズ釦14は、撮像時にユーザにより操作される。十字キー15は、上記のメニュー画像等で操作される。なお、レリーズ釦14及び十字キー15の状態は制御部7により検知され、検知された釦の状態に基づいたシーケンスが実行される。記録I/F部16は、記録媒体17を接続するためのコネクタを備えている。この記録I/F部16と記録媒体17とが接続されることにより、記録媒体17に対してデータの書き込み/読み出しを実行する。バス18は、バッファメモリ5、画像処理部6、制御部7、表示部11、メモリ12、記録I/F部16を相互に接続することにより、データや信号の出入力を実行する。なお、A/D変換部4の出力はバス18を介して画像処理部6に接続される。   The display unit 11 displays various images under the control of the control unit 7. Various images displayed on the display unit 11 include a through image, a main image, an image recorded on the recording medium 17, a menu image, and the like. The operation unit 13 includes a release button 14, a cross key 15, and the like. The release button 14 is operated by the user during imaging. The cross key 15 is operated on the above menu image or the like. The state of the release button 14 and the cross key 15 is detected by the control unit 7, and a sequence based on the detected button state is executed. The recording I / F unit 16 includes a connector for connecting the recording medium 17. When the recording I / F unit 16 and the recording medium 17 are connected, data writing / reading with respect to the recording medium 17 is executed. The bus 18 connects the buffer memory 5, the image processing unit 6, the control unit 7, the display unit 11, the memory 12, and the recording I / F unit 16, thereby executing input / output of data and signals. The output of the A / D conversion unit 4 is connected to the image processing unit 6 via the bus 18.

ところで、従来から、被写体の笑顔を検出すると、自動的に笑顔画像を取得する電子スチルカメラが知られている。しかし、例えば、被写体が笑顔を作ることが苦手である場合や、笑顔を作っても検出条件を満足しない場合は、撮像が実行されず、笑顔画像を取得することができない。一方、笑顔画像を取得することができた場合でも、確認すると意外にも所望の笑顔画像が取得されていない場合がある。また、同じ被写体でも、その被写体が満面の笑みである笑顔画像が好みのユーザもいれば、その被写体が微笑んでいる笑顔画像が好みのユーザもいるなど、笑顔の好みは、人により様々である。   By the way, conventionally, an electronic still camera that automatically acquires a smile image when a smile of a subject is detected is known. However, for example, if the subject is not good at making a smile, or if the detection condition is not satisfied even if a smile is made, imaging is not performed and a smile image cannot be acquired. On the other hand, even if a smile image can be acquired, there is a case where a desired smile image is not acquired unexpectedly if confirmed. Also, even if the subject is the same subject, there are users who like a smile image whose subject is a full smile, while there are users who like a smile image that the subject smiles. .

そこで、本実施形態の電子スチルカメラ1は、所望の笑顔画像(以下、ベストスマイル画像と称する)及びベストスマイル画像の笑顔評価値をメモリ12に予め記憶しておく。そして、電子スチルカメラ1は、本画像の笑顔評価値が、ベストスマイル画像の笑顔評価値に近づくように、本画像における顔を補正する。これにより、例えば、笑顔が気に入らない画像であっても、所望の笑顔画像に近づけることができる。   Therefore, the electronic still camera 1 of the present embodiment stores a desired smile image (hereinafter referred to as the best smile image) and a smile evaluation value of the best smile image in the memory 12 in advance. The electronic still camera 1 corrects the face in the main image so that the smile evaluation value of the main image approaches the smile evaluation value of the best smile image. Thereby, for example, even an image that does not like a smile can be brought close to a desired smile image.

また異なる被写体では、好ましい笑顔画像の笑顔評価値も当然異なる。そのため、より質の高い笑顔画像を得ようとする場合は、事前登録されたベストスマイル画像の被写体と、撮像時の被写体とが同一人物であることが望ましい。   In addition, the smile evaluation value of a preferable smile image is naturally different for different subjects. Therefore, in order to obtain a higher-quality smile image, it is desirable that the subject of the pre-registered best smile image and the subject at the time of imaging are the same person.

次に、「人物登録モード」におけるベストスマイル画像の取得について説明する。まず、制御部7は、撮像素子3を制御して、スルー画像を取得する。このとき、制御部7は、「笑って下さい!」等のメッセージを表示部11に表示しても良い。また、電子スチルカメラ1に不図示のスピーカを備え、「笑ってね!」等の音声を出力しても良い。そして、制御部7は、レリーズ釦14が全押しされると、ベストスマイル画像を取得する。以下、この「人物登録モード」で予め取得されたベストスマイル画像については、符号21を付して説明する。制御部7は、ベストスマイル画像21の笑顔評価値Tを算出する。また、制御部7は、図2に示すように、ベストスマイル画像21と笑顔評価値T(符号22)を表示部11に表示する。なお、制御部7は、笑顔評価値Tの数値を表示する代わりに、笑顔評価値Tのレベル表示を行っても良い。これにより、ユーザは、視覚的に笑顔の程度を確認することができる。その後、制御部7は、ユーザから十字キー15を介して、ベストスマイル画像21を登録しても良いか否かの選択を受け付ける。ベストスマイル画像21を登録する場合には、制御部7は、ベストスマイル画像21及び笑顔評価値Tをメモリ12に記憶する。   Next, acquisition of the best smile image in the “person registration mode” will be described. First, the control unit 7 controls the image sensor 3 to acquire a through image. At this time, the control unit 7 may display a message such as “Please laugh!” On the display unit 11. Further, the electronic still camera 1 may be provided with a speaker (not shown) to output a sound such as “Please laugh!”. And the control part 7 will acquire the best smile image, when the release button 14 is pressed fully. Hereinafter, the best smile image acquired in advance in the “person registration mode” will be described with reference numeral 21. The control unit 7 calculates the smile evaluation value T of the best smile image 21. Moreover, the control part 7 displays the best smile image 21 and the smile evaluation value T (code | symbol 22) on the display part 11, as shown in FIG. Note that the control unit 7 may display the level of the smile evaluation value T instead of displaying the numerical value of the smile evaluation value T. Thereby, the user can visually confirm the degree of smile. Thereafter, the control unit 7 accepts a selection as to whether or not the best smile image 21 may be registered via the cross key 15 from the user. When registering the best smile image 21, the control unit 7 stores the best smile image 21 and the smile evaluation value T in the memory 12.

図3は、電子スチルカメラ1における笑顔モードによる撮像時の制御部7の動作を示すフローチャートである。なお、以下、便宜上、1人の人物を撮像するシーンを前提として説明する。また、第1実施形態では、上記のベストスマイル画像21及び笑顔評価値Tがメモリ12に予め記憶され、ベストスマイル画像21の被写体と、撮像時の被写体とが同一人物である例を示す。   FIG. 3 is a flowchart showing the operation of the control unit 7 during imaging in the smile mode in the electronic still camera 1. Hereinafter, for the sake of convenience, description will be made on the premise of a scene in which one person is imaged. In the first embodiment, the best smile image 21 and the smile evaluation value T are stored in the memory 12 in advance, and the subject of the best smile image 21 and the subject at the time of imaging are the same person.

ステップS101で、制御部7は、笑顔モードを開始する。例えば、制御部7は、撮像素子3を制御して、スルー画像の取得を開始する。   In step S101, the control unit 7 starts the smile mode. For example, the control unit 7 controls the imaging device 3 to start acquiring a through image.

ステップS102で、顔検出部8は、スルー画像から顔を検出する。   In step S102, the face detection unit 8 detects a face from the through image.

ステップS103で、表情識別部9は、ステップS102で検出された顔が笑顔か否かを判定する。笑顔である場合(ステップS103の判定がYESとなる場合)には、ステップS104に進む。一方、笑顔でない場合(ステップS103の判定がNOとなる場合)には、ステップS102に戻る。   In step S103, the facial expression identification unit 9 determines whether the face detected in step S102 is a smile. When it is a smile (when determination of step S103 becomes YES), it progresses to step S104. On the other hand, when it is not a smile (when determination of step S103 becomes NO), it returns to step S102.

ステップS104で、制御部7は、撮像素子3を制御して、本画像PIを取得する。   In step S104, the control unit 7 controls the image sensor 3 to acquire the main image PI.

ステップS105で、顔検出部8は、本画像PIから顔を検出する。そして、制御部7は、眉、目、口の各端点に基づいて、眉、目、口の各領域を構成する画素の位置情報を算出し、算出した画素の位置情報をバッファメモリ5に記憶する。   In step S105, the face detection unit 8 detects a face from the main image PI. Then, the control unit 7 calculates the position information of the pixels constituting the eyebrow, eye, and mouth areas based on the end points of the eyebrows, eyes, and mouth, and stores the calculated position information of the pixels in the buffer memory 5. To do.

ステップS106で、制御部7は、ステップS105で本画像PIから検出された顔の笑顔評価値Uを算出する。なお、制御部7は、本画像PI及び笑顔評価値Uを表示部11に表示しても良い。また、制御部7は、笑顔評価値Uの数値を表示する代わりに、笑顔評価値Uのレベル表示を行っても良い。   In step S106, the control unit 7 calculates the face smile evaluation value U detected from the main image PI in step S105. Note that the control unit 7 may display the main image PI and the smile evaluation value U on the display unit 11. The control unit 7 may display the level of the smile evaluation value U instead of displaying the numerical value of the smile evaluation value U.

ステップS107で、制御部7は、笑顔評価値Tをメモリ12から読み出す。   In step S <b> 107, the control unit 7 reads the smile evaluation value T from the memory 12.

ステップS108で、制御部7は、画像処理部6を制御して、ステップS107で読み出した笑顔評価値Tに基づいて、本画像PIを補正する。以下、補正後の本画像PIを本画像PI’とし、本画像PI’の笑顔評価値を笑顔評価値U’とする。ここで、画像処理部6は、笑顔評価値U’と笑顔評価値Tとの差の絶対値が、笑顔評価値Uと笑顔評価値Tとの差の絶対値よりも小さくなるように、本画像PIを補正する。これにより、本画像PI’は、本画像PIよりもユーザの好みに近い笑顔画像となると共に、過度の補正のため、本画像PI’における被写体の笑顔が不自然になることを防ぐことができる。   In step S108, the control unit 7 controls the image processing unit 6 to correct the main image PI based on the smile evaluation value T read in step S107. Hereinafter, the corrected main image PI is referred to as a main image PI ′, and the smile evaluation value of the main image PI ′ is referred to as a smile evaluation value U ′. Here, the image processing unit 6 determines the absolute value of the difference between the smile evaluation value U ′ and the smile evaluation value T to be smaller than the absolute value of the difference between the smile evaluation value U and the smile evaluation value T. The image PI is corrected. Thereby, the main image PI ′ becomes a smile image closer to the user's preference than the main image PI, and it is possible to prevent an unnatural smile on the subject in the main image PI ′ due to excessive correction. .

例えば、笑顔評価値Tを85点とする。また、笑顔評価値Uを40点とする。この場合、画像処理部6は、40点<笑顔評価値U’≦100点となるように、本画像PIを補正する。このとき、笑顔評価値U’が笑顔評価値T、つまり85点と同等になるように補正することが最も望ましいが、少なくとも85点に近づきさえすれば、改善効果が期待できる。   For example, the smile evaluation value T is 85 points. The smile evaluation value U is set to 40 points. In this case, the image processing unit 6 corrects the main image PI so that 40 points <smile evaluation value U ′ ≦ 100 points. At this time, it is most desirable to correct the smile evaluation value U ′ to be equal to the smile evaluation value T, that is, 85 points, but an improvement effect can be expected as long as it approaches at least 85 points.

次に、制御部7は、ステップS105でバッファメモリ5に記憶した本画像PIの眉、目、口の各領域を構成する画素の位置情報を読み出す。また、制御部7は、笑顔評価基準テーブルから、補正後の眉、目、口の評価値にそれぞれ対応する角度情報を読み出す。そして、画像処理部6は、読み出した前記位置情報及び角度情報に基づき、座標変換及び補間演算を行い、本画像PIの眉、目、口の形状を変更して、本画像PI’を作成する。この時、眉又は目については、評価値が高いほど、眉尻又は目尻が下がり、口については、評価値が高いほど、口角が上がる。   Next, the control unit 7 reads the position information of the pixels constituting the eyebrow, eye, and mouth regions of the main image PI stored in the buffer memory 5 in step S105. The control unit 7 reads angle information corresponding to the corrected evaluation values of the eyebrows, eyes, and mouth from the smile evaluation reference table. Then, the image processing unit 6 performs coordinate conversion and interpolation calculation based on the read position information and angle information, and changes the shape of the eyebrows, eyes, and mouth of the main image PI to create the main image PI ′. . At this time, for the eyebrows or eyes, the higher the evaluation value, the lower the eyebrows or the corner of the eyes, and for the mouth, the higher the evaluation value, the higher the mouth corner.

なお、笑顔評価基準テーブルに角度情報だけでなく、各構成要素の形状を記録した基準画像を格納しておいても良い。例えば、眉、目については、眉尻又は目尻が下がっている基準画像ほど高い評価値を対応付ける。また、口については、口角が上がっている基準画像ほど高い評価値を対応付ける。そして、画像処理部6は、笑顔評価値U’に対応する眉、目、口の基準画像に基づいて、本画像PIの眉、目、口の形状を変更し、本画像PI’を作成しても良い。   The smile evaluation reference table may store not only angle information but also a reference image in which the shape of each component is recorded. For example, for eyebrows and eyes, a higher evaluation value is associated with a reference image in which the bottom of the eyebrows or the bottom of the eyes is lowered. As for the mouth, a higher evaluation value is associated with a reference image with a higher mouth corner. Then, the image processing unit 6 changes the shape of the eyebrows, eyes, and mouth of the main image PI based on the reference image of the eyebrows, eyes, and mouth corresponding to the smile evaluation value U ′, and creates the main image PI ′. May be.

ステップS109で、制御部7は、本画像PI’及び笑顔評価値U’を表示部11に表示する。これにより、ユーザは、本画像PI’の出来映えを確認することができる。   In step S <b> 109, the control unit 7 displays the main image PI ′ and the smile evaluation value U ′ on the display unit 11. Thereby, the user can confirm the performance of the main image PI ′.

ステップS110で、制御部7は、ユーザから十字キー15を介して、本画像PI’を記録するか否かの選択を受け付ける。記録する場合(ステップS110の判定がYESとなる場合)には、ステップS111に進む。一方、記録しない場合(ステップS110の判定がNOとなる場合)には、ステップS108に戻り、所望の笑顔となる本画像PI’が得られるまで補正を繰り返す。   In step S <b> 110, the control unit 7 receives a selection as to whether or not to record the main image PI ′ from the user via the cross key 15. In the case of recording (when the determination in step S110 is YES), the process proceeds to step S111. On the other hand, when not recording (when determination of step S110 becomes NO), it returns to step S108 and repeats correction | amendment until the main image PI 'which becomes a desired smile is obtained.

ステップS111で、制御部7は、本画像PI’を画像ファイルとして記録媒体17に記録し、一連の処理を終了する。なお、制御部7は、本画像PI’とともに、笑顔評価値U’をタグなどの情報として画像ファイル内に記録することが好ましい。また、制御部7は、本画像PI’及び笑顔評価値U’とともに、本画像PI及び笑顔評価値Uを記録しても良い。   In step S111, the control unit 7 records the main image PI 'as an image file on the recording medium 17, and ends a series of processes. The control unit 7 preferably records the smile evaluation value U ′ as information such as a tag in the image file together with the main image PI ′. Further, the control unit 7 may record the main image PI and the smile evaluation value U together with the main image PI ′ and the smile evaluation value U ′.

なお、第1実施形態では、ベストスマイル画像21の被写体と、撮像時の被写体とが同一人物である例を示したが、同一人物でなくても良い。ベストスマイル画像21の被写体と、撮像時の被写体とが同一人物でない場合は、同一人物である場合に比べて、笑顔の質の面では及ばないものの、改善効果は期待できる。また、被写体を変更して撮像する度にベストスマイル画像の登録を行う必要がないため、ユーザにとって撮像が簡単になる。   In the first embodiment, an example is shown in which the subject of the best smile image 21 and the subject at the time of imaging are the same person, but they may not be the same person. When the subject of the best smile image 21 and the subject at the time of imaging are not the same person, the improvement effect can be expected, although the quality of the smile is not as good as when the subject is the same person. In addition, since it is not necessary to register the best smile image every time the subject is changed and imaged, the imaging becomes easy for the user.

また、ベストスマイル画像21の被写体と、撮像時の被写体とが同一人物であるか否かによって、補正するか否かを決定しても良い。この場合、ステップS105の後で、顔識別部10は、本画像PIの被写体と、ベストスマイル画像21の被写体とが一致するか否かを判定する。そして、一致しないと判定された場合には、ステップS106以降の処理を行わない構成にしても良い。   Further, whether or not to correct may be determined depending on whether or not the subject of the best smile image 21 and the subject at the time of imaging are the same person. In this case, after step S105, the face identifying unit 10 determines whether or not the subject of the main image PI matches the subject of the best smile image 21. If it is determined that they do not coincide with each other, the processing after step S106 may not be performed.

また、第1実施形態では、ステップS104で取得した本画像PIに対して、ステップS108で補正する例を示したが、これに限らない。例えば、ステップS104で所望の笑顔となる本画像PIが得られない場合のみ、補正する構成にしても良い。この場合、制御部7は、ステップS104の後で、所望の笑顔となる本画像PIが得られたか否かを判定する。そして、所望の笑顔となる本画像PIが得られた場合には、ステップS105からステップS110までの処理を行うことなく、ステップS111で本画像PIを記録する。一方、所望の笑顔となる本画像PIが得られなかった場合には、ステップS105からステップS111までの処理を行えば良い。これにより、所望の笑顔画像がより容易に得られるようになる。   In the first embodiment, the example in which the main image PI acquired in step S104 is corrected in step S108 has been described, but the present invention is not limited thereto. For example, the correction may be made only when the main image PI that gives a desired smile is not obtained in step S104. In this case, the control unit 7 determines whether or not a main image PI that provides a desired smile is obtained after step S104. When the main image PI that provides a desired smile is obtained, the main image PI is recorded in step S111 without performing the processing from step S105 to step S110. On the other hand, when the main image PI that gives a desired smile is not obtained, the processing from step S105 to step S111 may be performed. Thereby, a desired smile image can be obtained more easily.

また、ステップS103で笑顔が検出されず、ステップS104で本画像PIが取得されない場合がある。そこで、ステップS101で笑顔モードを開始してから、所定の時間が経過すると、ステップS103における笑顔検出レベルを自動的に下げる構成にしても良い。これにより、ユーザが電子スチルカメラ1を構えているにもかかわらず、撮像できないという状態を回避しやすくなる。なお、笑顔検出レベルを下げると、笑顔評価値が低い本画像PIが取得される可能性が高くなるが、その後、画像処理部6により補正されるので、最終的な本画像PI’の出来映えに関しては問題ない。   In some cases, a smile is not detected in step S103, and the main image PI is not acquired in step S104. Therefore, a configuration may be adopted in which the smile detection level in step S103 is automatically lowered when a predetermined time elapses after the smile mode is started in step S101. This makes it easy to avoid a situation where the user cannot capture images even though the electronic still camera 1 is held. If the smile detection level is lowered, there is a high possibility that a main image PI having a low smile evaluation value will be acquired. However, since it is corrected by the image processing unit 6 thereafter, the final performance of the main image PI ′ is obtained. Is no problem.

また、事前登録するベストスマイル画像数は、1つでも複数でも良い。事前登録するベストスマイル画像数が少ないほど、メモリ12に占める容量を節約することができる。また、ベストスマイル画像数が多いほど、様々なバリエーションの笑顔画像を作成することができる。   The number of best smile images to be pre-registered may be one or more. The smaller the number of best smile images to be registered in advance, the more the capacity occupied in the memory 12 can be saved. In addition, smile images with various variations can be created as the number of best smile images increases.

ここで、メモリ12に、ベストスマイル画像として複数の画像が記憶されている場合に、制御部7が補正の基準とするベストスマイル画像を選択する手順について説明する。例えば、制御部7は、自動的に複数の画像からいずれか一枚を選択するか、或いはユーザの指示に基づいて複数の画像からいずれか一枚を選択する。自動的に選択する場合、制御部7は、笑顔評価値が最も高い画像をベストスマイル画像として選択する。笑顔評価値が最も高い画像は、一般的に、好ましい笑顔画像である可能性が高いからである。   Here, a procedure in which the control unit 7 selects a best smile image as a correction reference when a plurality of images are stored as the best smile image in the memory 12 will be described. For example, the control unit 7 automatically selects any one of the plurality of images or selects any one of the plurality of images based on a user instruction. When selecting automatically, the control part 7 selects an image with the highest smile evaluation value as a best smile image. This is because an image having the highest smile evaluation value is generally likely to be a preferable smile image.

次に、ユーザの指示に基づいて選択する場合、制御部7は、複数の画像のサムネイル画像一覧を表示部11に表示する。そして、制御部7は、ユーザから十字キー15を介して、いずれかのサムネイル画像の選択を受け付け、選択されたサムネイル画像に対応する画像をベストスマイル画像とする。これにより、ユーザの主観的な基準、いわゆる好みでベストスマイル画像を選択することができる。   Next, when selecting based on a user instruction, the control unit 7 displays a thumbnail image list of a plurality of images on the display unit 11. Then, the control unit 7 accepts selection of any thumbnail image from the user via the cross key 15, and sets the image corresponding to the selected thumbnail image as the best smile image. As a result, the best smile image can be selected according to the subjective criteria of the user, so-called preference.

また、第1実施形態では、「人物登録モード」において、ベストスマイル画像を取得する例を示したが、これに限らない。例えば、記録媒体17に記録された画像からベストスマイル画像を選択しても良い。記録媒体17に複数の画像が記録されている場合には、上述したように、制御部7は、自動的に記録媒体17に記録された画像から一枚を選択するか、或いはユーザの指示に基づいて複数の画像から一枚を選択すれば良い。   In the first embodiment, the best smile image is acquired in the “person registration mode”. However, the present invention is not limited to this. For example, the best smile image may be selected from the images recorded on the recording medium 17. When a plurality of images are recorded on the recording medium 17, as described above, the control unit 7 automatically selects one image from the images recorded on the recording medium 17, or according to a user instruction. One image may be selected from a plurality of images based on the image.

以上説明したように、第1実施形態の電子スチルカメラ1は、ベストスマイル画像の笑顔評価値に基づいて、本画像における顔を補正する。したがって、第1実施形態の電子スチルカメラ1によれば、所望の笑顔画像を得ることができる。   As described above, the electronic still camera 1 according to the first embodiment corrects the face in the main image based on the smile evaluation value of the best smile image. Therefore, according to the electronic still camera 1 of the first embodiment, a desired smile image can be obtained.

また、第1実施形態の電子スチルカメラ1は、被写体の笑顔を識別して自動的に本画像を取得するため、シャッターチャンスを逃すおそれをなくすことができる。   Further, since the electronic still camera 1 of the first embodiment identifies the smile of the subject and automatically acquires the main image, it is possible to eliminate the possibility of missing a photo opportunity.

(第2実施形態)
以下、本発明の第2実施形態について説明する。第1実施形態では、撮像時に本画像における顔を補正する例を示した。第2実施形態では、再生時に記録媒体17に記録された本画像における顔を補正する例を示す。また、第1実施形態では、予め人物登録モードにおいて、ベストスマイル画像を取得する例を示した。第2実施形態では、記録媒体17に記録された画像からベストスマイル画像を選択する例を示す。ここで、以下の実施形態における電子スチルカメラ1の構成は、図1に示す第1実施形態の電子スチルカメラ1と共通するので重複説明は省略する。
(Second Embodiment)
Hereinafter, a second embodiment of the present invention will be described. In the first embodiment, an example in which the face in the main image is corrected at the time of imaging has been described. In the second embodiment, an example of correcting the face in the main image recorded on the recording medium 17 during reproduction will be described. Moreover, in 1st Embodiment, the example which acquires the best smile image previously in person registration mode was shown. The second embodiment shows an example in which the best smile image is selected from the images recorded on the recording medium 17. Here, the configuration of the electronic still camera 1 in the following embodiment is the same as that of the electronic still camera 1 of the first embodiment shown in FIG.

図4は、第2実施形態の電子スチルカメラ1における再生時の制御部7の動作を示すフローチャートである。なお、便宜上、1人の人物を撮像した画像を前提として説明する。   FIG. 4 is a flowchart showing the operation of the control unit 7 during reproduction in the electronic still camera 1 of the second embodiment. For convenience, the description will be made on the assumption that an image of one person is captured.

ステップS201で、制御部7は、再生モードを開始する。例えば、制御部7は、表示部11にレタッチ機能に関する複数の項目及び「ベストスマイルレタッチ」の項目が表示されたメニュー画像41を表示する(図5(1)参照)。ここで、「ベストスマイルレタッチ」は、記録された本画像がベストスマイル画像に近づくように補正する機能を示す項目である。   In step S201, the control unit 7 starts the reproduction mode. For example, the control unit 7 displays a menu image 41 on which a plurality of items relating to the retouch function and an item of “best smile retouch” are displayed on the display unit 11 (see FIG. 5A). Here, “best smile retouch” is an item indicating a function of correcting the recorded main image so as to approach the best smile image.

ステップS202で、制御部7は、ユーザから十字キー15を介して、「ベストスマイルレタッチ」の項目の選択を受け付ける。なお、制御部7は、「ベストスマイルレタッチ」の項目が選択された場合に「ベストスマイル画像に基づいて、笑顔に加工します。ちょっと硬い表情などの人物も、楽しい笑顔の写真になります。」等の説明を表示部11に表示しても良い。   In step S <b> 202, the control unit 7 accepts selection of the “best smile retouch” item from the user via the cross key 15. If the “Best Smile Retouch” item is selected, the control unit 7 will make a smile based on the “Best Smile image. A person with a slightly stiff expression will also have a pleasant smile. Or the like may be displayed on the display unit 11.

ステップS203で、制御部7は、記録媒体17の画像ファイル内に記録されたタグなどの情報から笑顔評価値を読み出し、笑顔評価値が閾値以上である画像を笑顔画像として読み出す。そして、制御部7は、図5(2)に示すように、読み出した画像に対応するサムネイル画像の一覧を表示部11のサムネイル画像表示領域42に表示する。また、制御部7は、「ベストスマイル画像を選択して下さい。」等のメッセージを表示部11に表示する。なお、笑顔評価値が記録媒体17に記録されていない場合には、顔検出部8は、記録媒体17に記録された画像から顔を検出する。そして、表情識別部9は、顔検出部8が検出した顔から表情を識別し、笑顔画像を読み出す。   In step S203, the control unit 7 reads a smile evaluation value from information such as a tag recorded in the image file of the recording medium 17, and reads an image having a smile evaluation value equal to or greater than a threshold value as a smile image. Then, the control unit 7 displays a list of thumbnail images corresponding to the read images in the thumbnail image display area 42 of the display unit 11 as shown in FIG. Further, the control unit 7 displays a message such as “Please select the best smile image” on the display unit 11. When the smile evaluation value is not recorded on the recording medium 17, the face detection unit 8 detects a face from the image recorded on the recording medium 17. Then, the facial expression identification unit 9 identifies facial expressions from the face detected by the face detection unit 8 and reads a smile image.

ステップS204で、制御部7は、ユーザから十字キー15を介して、ステップS203で表示したサムネイル画像の一覧からいずれかの画像の選択を受け付ける。そして、制御部7は、選択されたサムネイル画像に対応する画像をベストスマイル画像とする。これにより、ユーザの主観的な基準、いわゆる好みでベストスマイル画像を選択することができる。   In step S204, the control unit 7 accepts selection of any image from the list of thumbnail images displayed in step S203 via the cross key 15 from the user. Then, the control unit 7 sets the image corresponding to the selected thumbnail image as the best smile image. As a result, the best smile image can be selected according to the subjective criteria of the user, so-called preference.

ステップS205で、制御部7は、ステップS203と同様の処理を行い、笑顔画像に対応するサムネイル画像の一覧を表示部11のサムネイル画像表示領域42に表示する(図5(3)参照)。また、制御部7は、「補正したい画像を選択して下さい。」等のメッセージを表示部11に表示する。   In step S205, the control unit 7 performs the same process as in step S203, and displays a list of thumbnail images corresponding to the smile images in the thumbnail image display area 42 of the display unit 11 (see FIG. 5 (3)). Further, the control unit 7 displays a message such as “Please select an image to correct” on the display unit 11.

ステップS206で、制御部7は、ユーザから十字キー15を介して、ステップS205で表示したサムネイル画像の一覧からいずれかの画像の選択を受け付ける。そして、制御部7は、選択されたサムネイル画像に対応する画像を補正対象画像とする。   In step S206, the control unit 7 accepts selection of any image from the list of thumbnail images displayed in step S205 via the cross key 15 from the user. Then, the control unit 7 sets an image corresponding to the selected thumbnail image as a correction target image.

ステップS207〜S210は、図3のステップS108〜S111にそれぞれ対応するため、重複説明を省略する。図5(4)は、ステップS209における表示部11の表示例を示す図である。   Steps S207 to S210 respectively correspond to steps S108 to S111 in FIG. FIG. 5 (4) is a diagram illustrating a display example of the display unit 11 in step S209.

なお、第2実施形態では、ステップS204で、ユーザから十字キー15を介して、ベストスマイル画像の選択を受け付ける例を示したが、これに限らない。例えば、制御部7は、自動的に記録媒体17に記録された複数の画像からいずれかを選択しても良い。例えば、制御部7は、記録媒体17の画像ファイル内に記録されたタグなどの情報から笑顔評価値を読み出し、笑顔評価値が最も高い画像をベストスマイル画像とする。笑顔評価値が最も高い画像は、一般的に、好ましい笑顔画像である可能性が高いからである。この場合、ユーザがベストスマイル画像を選択する操作を省略することができる。   In the second embodiment, an example in which selection of the best smile image is received from the user via the cross key 15 in step S204 is shown, but the present invention is not limited to this. For example, the control unit 7 may select any one of a plurality of images automatically recorded on the recording medium 17. For example, the control unit 7 reads the smile evaluation value from information such as a tag recorded in the image file of the recording medium 17 and sets the image having the highest smile evaluation value as the best smile image. This is because an image having the highest smile evaluation value is generally likely to be a preferable smile image. In this case, the operation for the user to select the best smile image can be omitted.

また、ステップS203では、笑顔評価値が閾値以上である笑顔画像のサムネイル画像の一覧を表示部11に表示したが、これに限らない。例えば、制御部7は、まず、ユーザから十字キー15を介して、笑顔評価値の数値や、大笑い、微笑み等のキーワードの入力を受け付ける。そして、制御部7は、入力された数値や、キーワードに応じて、記録媒体17に記録された画像を抽出し、抽出した画像のサムネイル画像の一覧を表示部11に表示する。もしくは、制御部7は、笑顔評価値に応じて予め記録媒体17に記録された画像を分類し、分類した画像のサムネイル画像の一覧を表示部11に表示する。その後、制御部7は、再びユーザから十字キー15を介して、いずれかのサムネイル画像の選択を受け付ける構成にしても良い。これにより、ユーザは、容易にベストスマイル画像を選択することができる。   In step S203, a list of thumbnail images of smile images whose smile evaluation value is greater than or equal to the threshold value is displayed on the display unit 11. However, the present invention is not limited to this. For example, first, the control unit 7 accepts input of a numerical value of a smile evaluation value or a keyword such as a big smile or a smile through the cross key 15 from the user. Then, the control unit 7 extracts images recorded on the recording medium 17 in accordance with the input numerical values and keywords, and displays a list of thumbnail images of the extracted images on the display unit 11. Alternatively, the control unit 7 classifies the images recorded in advance on the recording medium 17 according to the smile evaluation value, and displays a list of thumbnail images of the classified images on the display unit 11. Thereafter, the control unit 7 may be configured to accept selection of any thumbnail image from the user via the cross key 15 again. Thereby, the user can easily select the best smile image.

以上説明したように、第2実施形態の電子スチルカメラ1は、ベストスマイル画像の笑顔評価値に基づいて、記録媒体17に記録した本画像における顔を補正する。したがって、第2実施形態の電子スチルカメラ1によれば、第1実施形態と同様に、所望の笑顔画像を得ることができる。
(実施形態の補足)
第1実施形態及び第2実施形態では、電子スチルカメラの例を示したが、これに限らない。例えば、コンピュータに搭載されるプログラムに、第1実施形態及び第2実施形態における笑顔評価値を算出する手順及び眉、目、口の形状を補正する手順に示す機能を備えることも可能である。この場合、予め画像処理プログラムを記録媒体に格納しておき、コンピュータに接続した後に、この画像処理プログラムを実行させるか、または、インストールさせることが可能である。
As described above, the electronic still camera 1 of the second embodiment corrects the face in the main image recorded on the recording medium 17 based on the smile evaluation value of the best smile image. Therefore, according to the electronic still camera 1 of the second embodiment, a desired smile image can be obtained as in the first embodiment.
(Supplement of embodiment)
In the first embodiment and the second embodiment, an example of an electronic still camera is shown, but the present invention is not limited to this. For example, a program installed in a computer can be provided with functions shown in a procedure for calculating smile evaluation values and a procedure for correcting eyebrow, eye, and mouth shapes in the first and second embodiments. In this case, it is possible to store the image processing program in a recording medium in advance and execute or install the image processing program after connecting to the computer.

第1実施形態及び第2実施形態では、笑顔評価値を算出するために眉、目、口の形状に関する評価値を算出する例を示したが、これに限らず、笑顔と相関性を有する構成要素であれば、いかなる構成要素も使用できる。   In 1st Embodiment and 2nd Embodiment, in order to calculate a smile evaluation value, although the example which calculates the evaluation value regarding the shape of eyebrows, eyes, and a mouth was shown, it is not restricted to this, The structure which has a correlation with a smile Any element can be used as long as it is an element.

第1実施形態におけるベストスマイル画像の登録時において、図2では、笑顔評価値T(符号22)を表示部11に表示する例を示したが、これに限らない。例えば、眉、目、口の評価値を個々に表示しても良い。   At the time of registration of the best smile image in the first embodiment, FIG. 2 shows an example in which the smile evaluation value T (reference numeral 22) is displayed on the display unit 11. However, the present invention is not limited to this. For example, the evaluation values of the eyebrows, eyes, and mouth may be displayed individually.

第1実施形態のステップS108では、笑顔評価値U’と笑顔評価値Tとの差の絶対値が、笑顔評価値Uと笑顔評価値Tとの差の絶対値よりも小さくなるように、本画像PIを補正する例を示したが、これに限らない。例えば、本画像PI’の各評価値と、ベストスマイル画像21の各評価値との差の絶対値が、本画像PIの各評価値と、ベストスマイル画像21の各評価値との差の絶対値よりも、それぞれ小さくなるように個別に補正する。これにより、より精度の高い補正が可能になる。   In step S108 of the first embodiment, the absolute value of the difference between the smile evaluation value U ′ and the smile evaluation value T is set to be smaller than the absolute value of the difference between the smile evaluation value U and the smile evaluation value T. Although the example which correct | amends image PI was shown, it is not restricted to this. For example, the absolute value of the difference between each evaluation value of the main image PI ′ and each evaluation value of the best smile image 21 is the absolute value of the difference between each evaluation value of the main image PI and each evaluation value of the best smile image 21. Individual corrections are made so as to be smaller than the respective values. Thereby, correction with higher accuracy becomes possible.

例えば、ベストスマイル画像21の各評価値を、眉:30点、目:20点、口:35点とする。また、本画像PIの各評価値を、眉:15点、目:15点、口:10点とする場合、本画像PI’の各評価値が、それぞれ下記の不等式を満たすように補正する。   For example, each evaluation value of the best smile image 21 is 30 points for the eyebrows, 20 points for the eyes, and 35 points for the mouth. When the evaluation values of the main image PI are 15 points for the eyebrows, 15 points for the eyes, and 10 points for the mouth, the evaluation values of the main image PI ′ are corrected so as to satisfy the following inequalities.

15点<補正後の眉の評価値<45点
15点<補正後の目の評価値<25点
10点<補正後の口の評価値<60点
このときも、本画像PI’の各評価値が、ベストスマイル画像21の各評価値とそれぞれ同等になるように補正することが最も好ましいが、少なくともベストスマイル画像21の各評価値にそれぞれ近づきさえすれば、改善効果が期待できる。また、第2実施形態のステップS207においても同様にしても良い。
15 points <corrected eyebrow evaluation value <45 points 15 points <corrected eye evaluation value <25 points 10 points <corrected mouth evaluation value <60 points At this time, each evaluation of the main image PI ' Although it is most preferable to correct the value so as to be equal to each evaluation value of the best smile image 21, an improvement effect can be expected as long as at least the evaluation value of the best smile image 21 is approached. The same may be applied to step S207 of the second embodiment.

第1実施形態のステップS108では、笑顔評価値Uが笑顔評価値Tより低い例を示したが、これに限らず、笑顔評価値Uが笑顔評価値Tより高い場合にも適用できる。これにより、本画像における被写体が笑い過ぎている場合に、所望の笑顔に補正することができる。また、第2実施形態のステップS207においても同様に適用できる。   In step S108 of the first embodiment, an example is shown in which the smile evaluation value U is lower than the smile evaluation value T. However, the present invention is not limited to this, and the present invention can also be applied when the smile evaluation value U is higher than the smile evaluation value T. Thereby, when the subject in the main image is overly laughing, it can be corrected to a desired smile. The same applies to step S207 of the second embodiment.

第1実施形態のステップS108では、ベストスマイル画像の笑顔評価値に近づけるために、眉、目、口を補正する例を示したが、これに限らない。例えば、眉、目、口の少なくともいずれか一つの形状だけ補正しても良い。また、第2実施形態のステップS207においても同様に適用できる。   In step S108 of the first embodiment, an example is shown in which the eyebrows, eyes, and mouth are corrected in order to approximate the smile evaluation value of the best smile image, but this is not a limitation. For example, only the shape of at least one of eyebrows, eyes, and mouth may be corrected. The same applies to step S207 of the second embodiment.

第1実施形態のステップS108では、本画像PIの眉、目、口の角度情報に基づいて、それぞれの形状を補正する例を示したが、これに限らない。例えば、本画像PIの眉、目、口の位置情報に基づいて、それぞれの形状を補正しても良い。以下、目尻及び目頭の座標を用いる場合を例に挙げて説明する。例えば、目頭に対する目尻の座標を基準座標として予めメモリ12に記録しておく。なお、目頭と目尻とを結んだときに、目尻が下がっている直線であれば、笑顔であると言える。また、目頭と目尻とを結ぶ直線の傾きが大きいほど、目尻が下がるため、笑顔評価値は高くなる。ステップS108において、制御部7は、本画像PIにおける被写体の目頭及び目尻の2点の座標を求める。例えば、笑顔評価値を上げたい場合、画像処理部6は、基準座標に基づいて、目尻が下がるように、目尻の座標転換を行う。なお、眉、口に関しても同様に適用できる。また、第2実施形態のステップS207においても同様に適用できる。   In step S108 of the first embodiment, an example in which each shape is corrected based on the eyebrow, eye, and mouth angle information of the main image PI has been described, but the present invention is not limited thereto. For example, each shape may be corrected based on the position information of the eyebrows, eyes, and mouth of the main image PI. Hereinafter, the case where the coordinates of the corners of the eyes and the eyes are used will be described as an example. For example, the coordinates of the corners of the eyes with respect to the eyes are recorded in the memory 12 in advance as reference coordinates. It can be said that if a straight line in which the corners of the eyes are lowered when the eyes and the corners of the eyes are connected, it is a smile. In addition, the larger the slope of the straight line connecting the eyes and the corners of the eyes, the lower the corners of the eyes, and the higher the smile evaluation value. In step S108, the control unit 7 obtains the coordinates of the two points of the subject's eye and the corners in the main image PI. For example, when it is desired to increase the smile evaluation value, the image processing unit 6 performs coordinate conversion of the corners of the eyes so that the corners of the eyes are lowered based on the reference coordinates. The same applies to eyebrows and mouths. The same applies to step S207 of the second embodiment.

第1実施形態のステップS108では、本画像PIの各構成要素の形状を変更することにより本画像PI’を作成する例を示したが、各構成要素を置き換えても良い。例えば、予めメモリ12に、形状の異なる各構成要素の基準画像と評価値とを対応付けたテーブルを記憶しておく。そして、画像処理部6は、本画像PIの各構成要素の評価値よりも、ベストスマイル画像の各構成要素の評価値に近い評価値に対応する各構成要素の基準画像を用いて、本画像PIの各構成要素を置換する。さらに、予めメモリ12に、ベストスマイル画像から抽出された各構成要素と、各構成要素の評価値とを対応付けたテーブルを記憶しておいても良い。そして、画像処理部6は、本画像PIにおける各構成要素と、テーブルに記憶された各構成要素とを置換しても良い。また、第2実施形態のステップS207においても同様に適用できる。   In step S108 of the first embodiment, the example in which the main image PI 'is created by changing the shape of each component of the main image PI has been shown, but each component may be replaced. For example, a table in which the reference images of the components having different shapes and the evaluation values are associated with each other is stored in the memory 12 in advance. Then, the image processing unit 6 uses the reference image of each component corresponding to the evaluation value closer to the evaluation value of each component of the best smile image than the evaluation value of each component of the main image PI. Replace each component of the PI. Furthermore, a table in which each component extracted from the best smile image and an evaluation value of each component are associated with each other may be stored in the memory 12 in advance. Then, the image processing unit 6 may replace each component in the main image PI with each component stored in the table. The same applies to step S207 of the second embodiment.

第1実施形態のステップS108で画像補正を行う例を示したが、必ずしもステップS108で画像補正を行う必要はない。例えば、ステップS108以降の処理を行わなくても良い。   Although an example in which image correction is performed in step S108 of the first embodiment has been described, it is not always necessary to perform image correction in step S108. For example, the processing after step S108 may not be performed.

第2実施形態では、ベストスマイル画像に近づくように補正する例を示したが、必ずしもベストスマイル画像である必要はない。例えば、怒り顔の画像や泣き顔の画像などでも良い。   In the second embodiment, an example in which correction is performed so as to approach the best smile image is shown, but it is not always necessary to be the best smile image. For example, an image of an angry face or an image of a crying face may be used.

第2実施形態のステップS205では、笑顔画像に対応するサムネイル画像の一覧を表示する例を示したが、これに限らない。例えば、笑顔評価値に拘わらず、人物の顔が含まれる画像に対応するサムネイル画像の一覧を表示しても良いし、笑顔評価値が閾値より小さい画像、すなわち笑顔でない画像に対応するサムネイル画像の一覧を表示しても良い。   In step S205 of the second embodiment, an example is shown in which a list of thumbnail images corresponding to smile images is displayed, but the present invention is not limited to this. For example, a list of thumbnail images corresponding to images including a person's face may be displayed regardless of smile evaluation values, or thumbnail images corresponding to images whose smile evaluation values are smaller than a threshold value, that is, images that are not smiling. A list may be displayed.

第1実施形態及び第2実施形態では、1人の人物を撮像するシーンを説明したが、複数の人物が含まれるシーンを撮像する場合であっても、事前登録された被写体ごとのベストスマイル画像の笑顔評価値に基づいて、それぞれの被写体に対して補正を行うことができる。   In the first embodiment and the second embodiment, the scene that captures one person has been described. However, even when capturing a scene that includes a plurality of persons, the best smile image for each subject that has been registered in advance. Each subject can be corrected based on the smile evaluation value.

第1実施形態及び第2実施形態の笑顔モードにおいて、事前登録された被写体ごとに、本画像を取得する基準となる笑顔評価値を設定できる構成にしても良い。これにより、普段あまり笑わない人は、少し笑っただけでも笑顔と識別して自動的に本画像を取得するように設定することができる。   In the smile mode of the first embodiment and the second embodiment, a smile evaluation value serving as a reference for acquiring the main image may be set for each subject registered in advance. Thus, a person who usually does not laugh very much can be set to automatically acquire the main image by identifying it as a smile even if he laughs a little.

第1実施形態及び第2実施形態の電子スチルカメラ1において、集合写真のように複数の人物が含まれるシーンを撮像する場合に、事前登録された被写体の笑顔を優先して本画像を取得できる「登録人物優先」の機能を備えていても良い。   In the electronic still camera 1 of the first embodiment and the second embodiment, when capturing a scene including a plurality of persons such as a group photo, the main image can be acquired with priority given to the smile of a pre-registered subject. A function of “registered person priority” may be provided.

1…電子スチルカメラ、3…撮像素子、6…画像処理部、7…制御部、11…表示部、12…メモリ、13…操作部 DESCRIPTION OF SYMBOLS 1 ... Electronic still camera, 3 ... Image sensor, 6 ... Image processing part, 7 ... Control part, 11 ... Display part, 12 ... Memory, 13 ... Operation part

特開2008−042319号公報JP 2008-042319 A

Claims (9)

第1画像から顔を検出する顔検出部と、
人物の笑顔を撮影した複数の画像を記憶可能な画像記憶部と、
前記画像記憶部に記憶された画像から、前記第1画像とは異なる第2画像を選択する画像選択部と、
前記第2画像より得られた前記笑顔の程度を示す笑顔評価値を基準評価値として、前記第1画像から検出された顔を前記基準評価値に基づいて補正する補正部と
を備えることを特徴とする画像処理装置。
A face detection unit for detecting a face from the first image;
An image storage unit capable of storing a plurality of images of a person's smile;
An image selection unit for selecting a second image different from the first image from the images stored in the image storage unit;
; And a correcting unit for correcting, based the extent of the resulting the smile from the second image as a reference evaluation value smile evaluation value indicating the detected face from the first image to the reference evaluation value An image processing apparatus.
請求項1に記載の画像処理装置において、
前記第1画像から検出された顔における笑顔の程度を示す笑顔評価値を算出する評価値算出部をさらに備え、
前記補正部は、前記評価値算出部により算出された前記笑顔評価値が前記基準評価値に近づくように、前記第1画像から検出された顔を補正することを特徴とする画像処理装置。
The image processing apparatus according to claim 1.
An evaluation value calculation unit for calculating a smile evaluation value indicating the degree of smile on the face detected from the first image;
The image processing apparatus, wherein the correction unit corrects the face detected from the first image so that the smile evaluation value calculated by the evaluation value calculation unit approaches the reference evaluation value.
請求項1に記載の画像処理装置において、
前記第1画像から検出された顔における笑顔の程度を示す笑顔評価値を算出する評価値算出部をさらに備え、
前記補正部は、前記評価値算出部により算出された前記笑顔評価値と前記基準評価値とが同一となるように、前記第1画像から検出された顔を補正することを特徴とする画像処理装置。
The image processing apparatus according to claim 1.
An evaluation value calculation unit for calculating a smile evaluation value indicating the degree of smile on the face detected from the first image;
The correction unit corrects the face detected from the first image so that the smile evaluation value calculated by the evaluation value calculation unit and the reference evaluation value are the same. apparatus.
請求項1から請求項3のいずれか1項に記載の画像処理装置において、
前記第2画像の笑顔の特徴量を示す特徴量情報を記憶する情報記憶部と、
前記第1画像から検出された顔から抽出された特徴量と、前記情報記憶部に記憶された前記特徴量情報とが略一致するか否かを判定する顔識別部とをさらに備え、
前記補正部は、前記顔識別部により前記第1画像から検出された顔の特徴量と前記特徴量情報とが略一致すると判定された場合に、前記第1画像から検出された顔を補正することを特徴とする画像処理装置。
The image processing apparatus according to any one of claims 1 to 3,
An information storage unit for storing feature amount information indicating a feature amount of a smile of the second image;
A face identifying unit that determines whether or not the feature amount extracted from the face detected from the first image substantially matches the feature amount information stored in the information storage unit;
The correction unit corrects the face detected from the first image when it is determined that the feature amount of the face detected from the first image by the face identification unit substantially matches the feature amount information. An image processing apparatus.
請求項1から請求項4のいずれか1項に記載の画像処理装置において、
前記第1画像から得られた前記笑顔評価値、前記補正部により補正された前記第1画像から得られた前記笑顔評価値、或いは前記基準評価値の少なくともいずれか一つを、数値表示、又はレベル表示する評価値表示部をさらに備えることを特徴とする画像処理装置。
The image processing apparatus according to claim 1, wherein:
At least one of the smile evaluation value obtained from the first image, the smile evaluation value obtained from the first image corrected by the correction unit, or the reference evaluation value is numerically displayed, or An image processing apparatus further comprising an evaluation value display unit for displaying a level.
請求項1から請求項5のいずれか1項に記載の画像処理装置において、
前記画像記憶部に記憶された画像から、笑顔が含まれる画像を抽出する画像抽出部をさらに備え、
前記画像選択部は、前記画像抽出部により抽出された画像から前記第2画像として用いる画像を選択する
ことを特徴とする画像処理装置。
The image processing apparatus according to any one of claims 1 to 5 ,
An image extraction unit that extracts an image including a smile from the image stored in the image storage unit;
The image selection unit selects an image to be used as the second image from the images extracted by the image extraction unit.
請求項に記載の画像処理装置において、
前記評価値算出部は、前記画像抽出部により抽出された画像における笑顔評価値を求め、
前記画像選択部は、前記画像抽出部により抽出された画像のうち、前記評価値算出部により算出された笑顔評価値が最も高い画像を前記第2画像として選択することを特徴とする画像処理装置。
The image processing apparatus according to claim 6 .
The evaluation value calculation unit obtains a smile evaluation value in the image extracted by the image extraction unit;
The image selection unit selects, as the second image, an image having the highest smile evaluation value calculated by the evaluation value calculation unit from among the images extracted by the image extraction unit. .
請求項1から請求項7のいずれか1項に記載の画像処理装置において、
前記画像記憶部に記憶された画像から、笑顔が含まれる画像を抽出する画像抽出部と、
前記画像抽出部により抽出された画像を一覧表示する画像表示部とをさらに備え、
前記画像選択部は、前記画像表示部に表示された画像から前記第2画像として用いる画像を選択することを特徴とする画像処理装置。
The image processing apparatus according to any one of claims 1 to 7 ,
An image extraction unit for extracting an image including a smile from the image stored in the image storage unit;
An image display unit that displays a list of images extracted by the image extraction unit;
The image processing device, wherein the image selection unit selects an image to be used as the second image from images displayed on the image display unit.
請求項1から請求項のいずれか1項に記載の画像処理装置と、
前記第1画像を取得する画像取得部とを備えることを特徴とする電子スチルカメラ。
The image processing apparatus according to any one of claims 1 to 8 ,
An electronic still camera comprising: an image acquisition unit that acquires the first image.
JP2009039524A 2009-02-23 2009-02-23 Image processing apparatus and electronic still camera Expired - Fee Related JP5353293B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009039524A JP5353293B2 (en) 2009-02-23 2009-02-23 Image processing apparatus and electronic still camera

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009039524A JP5353293B2 (en) 2009-02-23 2009-02-23 Image processing apparatus and electronic still camera

Publications (2)

Publication Number Publication Date
JP2010198110A JP2010198110A (en) 2010-09-09
JP5353293B2 true JP5353293B2 (en) 2013-11-27

Family

ID=42822808

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009039524A Expired - Fee Related JP5353293B2 (en) 2009-02-23 2009-02-23 Image processing apparatus and electronic still camera

Country Status (1)

Country Link
JP (1) JP5353293B2 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013016924A (en) * 2011-06-30 2013-01-24 Nikon Corp Image evaluation device
JP2013132011A (en) * 2011-12-22 2013-07-04 Canon Inc Imaging device, imaging method, and program
JP6778006B2 (en) * 2016-03-31 2020-10-28 株式会社 資生堂 Information processing equipment, programs and information processing systems
US11314981B2 (en) 2017-05-17 2022-04-26 Sony Corporation Information processing system, information processing method, and program for displaying assistance information for assisting in creation of a marker
CN111199210B (en) * 2019-12-31 2023-05-30 武汉星巡智能科技有限公司 Expression-based video generation method, device, equipment and storage medium

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001155174A (en) * 1999-11-30 2001-06-08 Fuji Photo Film Co Ltd Method and device for image processing
JP2004054759A (en) * 2002-07-23 2004-02-19 Mitsubishi Electric Corp Facial expression deforming device, method and program
JP4284447B2 (en) * 2003-06-03 2009-06-24 富士フイルム株式会社 Morphing camera and morphing method
JP2005128988A (en) * 2003-10-27 2005-05-19 Reallusion Inc System and method for adjusting image
JP2006268712A (en) * 2005-03-25 2006-10-05 Advanced Telecommunication Research Institute International Face image presentation device, face image presentation method, and face image presentation program
JP4973098B2 (en) * 2006-09-28 2012-07-11 ソニー株式会社 Image processing apparatus, image processing method, and program
JP2008217117A (en) * 2007-02-28 2008-09-18 Fujifilm Corp Image retrieval method and image retrieval system

Also Published As

Publication number Publication date
JP2010198110A (en) 2010-09-09

Similar Documents

Publication Publication Date Title
US8494286B2 (en) Face detection in mid-shot digital images
JP4254873B2 (en) Image processing apparatus, image processing method, imaging apparatus, and computer program
US8212894B2 (en) Electronic camera having a face detecting function of a subject
US7580587B2 (en) Device and method for correcting image including person area
JP4577252B2 (en) Camera, best shot shooting method, program
US7903164B2 (en) Image capturing apparatus, an image capturing method and a machine readable medium storing thereon a computer program for capturing an image of a range wider than an image capture designation range
JP5640388B2 (en) Image processing apparatus, imaging apparatus, and image processing program
JP5402018B2 (en) Display device and imaging device
US20100188520A1 (en) Imaging device and storage medium storing program
JP5353293B2 (en) Image processing apparatus and electronic still camera
JP5918996B2 (en) Subject recognition apparatus and dictionary data registration method
JP2007249132A (en) Imaging apparatus, automatic focusing method, and program
JP2013172166A (en) Image processing apparatus, imaging apparatus, and program
JP4364466B2 (en) Imaging device
JP4894708B2 (en) Imaging device
JP5375846B2 (en) Imaging apparatus, automatic focus adjustment method, and program
JP5272775B2 (en) Electronic still camera
JP2010092094A (en) Image processing apparatus, image processing program, and digital camera
JP5272797B2 (en) Digital camera
JP4632417B2 (en) Imaging apparatus and control method thereof
JP2012003324A (en) Image processing system, imaging apparatus, image processing program and memory medium
JP2010226416A (en) Digital camera
JP5995610B2 (en) Subject recognition device and control method therefor, imaging device, display device, and program
JP5606300B2 (en) IMAGING DEVICE AND IMAGING DEVICE CONTROL METHOD
JP5002311B2 (en) IMAGING DEVICE, IMAGING DEVICE CONTROL METHOD, PROGRAM, AND STORAGE MEDIUM

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20120222

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20121016

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20130425

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20130507

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20130708

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20130730

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20130812

R150 Certificate of patent or registration of utility model

Ref document number: 5353293

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees