JP5145974B2 - Camera and image display device - Google Patents

Camera and image display device Download PDF

Info

Publication number
JP5145974B2
JP5145974B2 JP2008016038A JP2008016038A JP5145974B2 JP 5145974 B2 JP5145974 B2 JP 5145974B2 JP 2008016038 A JP2008016038 A JP 2008016038A JP 2008016038 A JP2008016038 A JP 2008016038A JP 5145974 B2 JP5145974 B2 JP 5145974B2
Authority
JP
Japan
Prior art keywords
face
image
smile
cpu
image data
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
JP2008016038A
Other languages
Japanese (ja)
Other versions
JP2009177678A (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 JP2008016038A priority Critical patent/JP5145974B2/en
Publication of JP2009177678A publication Critical patent/JP2009177678A/en
Application granted granted Critical
Publication of JP5145974B2 publication Critical patent/JP5145974B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Studio Devices (AREA)
  • Television Signal Processing For Recording (AREA)

Description

本発明は、カメラおよび画像表示装置に関する。   The present invention relates to a camera and an image display device.

人物を含む画像から笑顔などの特定の表情の顔を検出した場合に本撮像を実行させる技術が知られている(特許文献1参照)。   There is known a technique for executing main imaging when a face having a specific expression such as a smile is detected from an image including a person (see Patent Document 1).

特開2007−213378号公報JP 2007-213378 A

従来技術では、特定した顔についての指標値が判定閾値以上でない場合には、他の顔について指標値が判定閾値以上か否かの判定処理を繰り返すので、本撮像前に行う処理の負担が大きくなるという問題があった。   In the prior art, if the index value for the identified face is not equal to or greater than the determination threshold, the determination process for whether the index value for the other face is equal to or greater than the determination threshold is repeated. There was a problem of becoming.

(1)請求項1に記載の発明によるカメラは、被写体像を撮像し、画像データを出力する撮像手段と、前記画像データに基づいて、前記撮像した画像に含まれる顔を検出する顔検出手段と、識別すべき顔を複数設定する顔設定手段と、前記顔検出手段で検出された顔の中から前記顔設定手段で設定された前記複数の顔を識別する顔識別手段と、前記顔識別手段で顔が識別された場合には、前記顔識別手段で識別された前記複数の顔を笑顔判定対象とし、前記顔識別手段で顔が識別されなかった場合には、前記顔検出手段で検出された全ての顔を笑顔判定対象とする対象決定手段と、前記対象決定手段で決定された笑顔判定対象の前記複数の顔が笑顔に変わったか否かを判定する変化判定手段と、前記顔識別手段で顔が識別された場合には、前記変化判定手段で前記複数の顔が全て笑顔に変わったことが判定された場合に前記撮像手段が撮像して出力する画像データを記憶媒体に記録するように撮影制御し、前記顔識別手段で顔が識別されなかった場合には、前記全ての顔のうち少なくとも1つが笑顔に変わったことが前記変化判定手段で判定された場合に前記撮像手段が撮像して出力する画像データを前記記憶媒体に記録する撮影制御手段と、撮影開始を指示するための操作部材と、を備え、前記撮影制御手段は、前記操作部材からの操作信号を受けた場合、前記変化判定手段による笑顔変化判定にかかわらず前記撮像手段が撮像して出力する画像データを前記記憶媒体に記録することを特徴とする。
(2)請求項1に記載のカメラはさらに、顔検出手段で顔が検出されていることを報知する報知手段を備えてもよい。
(3)請求項1に記載のカメラはさらに、変化判定手段による笑顔変化判定に基づいて撮影を行う第1撮影モード、および撮影開始を指示するための操作部材からの操作信号に基づいて撮影を行う第2撮影モードを含む、複数の撮影モード間で撮影モードの切替え設定を行う撮影モード設定手段と、撮像手段に対する電力の供給および供給停止を制御する撮像電源制御手段と、第1の時間を計時する第1計時手段と、第1の時間より長い第2の時間を計時する第2計時手段と、第2撮影モードにおいて、無操作時に第1計時手段によって第1の時間が計時されたことに基づいて、電力供給の停止を撮像電源制御手段へ指示する指示手段と、第1の時間が所定時間より短い場合にモード設定手段によって第2撮影モードから第1撮影モードへ切替え設定されると、無操作時に第2計時手段によって第2の時間が計時されたことに基づいて、電力供給の停止を撮像電源制御手段へ指示するように指示手段を制御する制御手段とを備えてもよい。
(4)請求項3に記載のカメラはさらに、表示手段と、表示手段に対する電力の供給および供給停止を制御する表示電源制御手段と、第2の時間より短い第3の時間を計時する第3計時手段と、第2の時間以上の第4の時間を計時する第4計時手段と、操作部材からの操作信号に応じて第3の計時手段または第4の計時手段を選択する選択手段と、無操作時に、選択手段によって選択されている計時手段によって第3の時間または第4の時間が計時されたことに基づいて、電力供給の停止を表示電源制御手段へ指示する第2指示手段とを備えてもよい。
(5)請求項1に記載のカメラにおいて、撮影制御手段は、撮像手段が撮像して出力する静止画像データを記憶媒体に記録するように撮影制御することもできる。
(6)請求項5に記載のカメラはさらに、変化判定手段で判定された笑顔の程度を判定する笑顔程度判定手段を備えてもよい。この場合の記録手段は、笑顔程度判定手段によって判定された笑顔の程度を示す情報を、画像データとともに画像ファイルに含めて、または画像データを含む画像ファイルに関連づけて、記憶媒体に記録することもできる。
(7)請求項6に記載のカメラはさらに、記憶媒体の記憶内容に基づいて、記憶媒体が記憶する画像ファイルから笑顔の程度が所定値以上である画像ファイルを特定する特定手段と、特定された画像ファイルに含まれる画像データによる画像を表示装置に再生表示させる表示制御手段とを備えてもよい。
(8)請求項6に記載のカメラはさらに、変化判定手段によって判定された笑顔の画像における位置情報を、画像データとともに画像ファイルに含めて、または画像データを含む画像ファイルに関連づけて、記憶媒体に記録する記録手段を備えてもよい。
(9)請求項8に記載のカメラはさらに、記憶媒体の記憶内容に基づいて、記憶媒体が記憶する画像ファイルに含まれる画像データのうち、位置情報が示す画像データによる笑顔画像を表示装置に拡大表示させる表示制御手段を備えてもよい。
(10)請求項1に記載のカメラはさらに、顔設定手段が識別すべき顔を設定するための顔画像を撮像手段が出力する画像データに基づいて生成する顔画像生成手段と、顔画像生成手段で生成された顔画像を人物ごとに登録する登録手段とを備えてもよい。この場合の顔設定手段は、登録されている顔画像の中から識別すべき顔を設定することを特徴とするカメラ。
(11)請求項10に記載のカメラはさらに、登録手段に対して複数の顔画像を同一人物として登録する指示が行われたことを検出する指示検出手段と、指示検出手段が検出をしたことを報知する報知手段とを備えてもよい。
(12)請求項1に記載のカメラにおいて、撮影制御手段は、撮像手段が撮像して出力する動画像データを記憶媒体に記録するように撮影制御することもできる。
(13)請求項13に記載の発明による画像表示装置は、画像を表示する表示手段と、請求項6に記載のカメラによって記録された記憶媒体の記憶内容に基づいて、記憶媒体が記憶する画像ファイルから笑顔の程度が所定値以上である画像ファイルを特定する特定手段と、特定された画像ファイルに含まれる画像データによる画像を表示手段に再生表示させる表示制御手段とを備えることを特徴とする。
(14)請求項14に記載の発明による画像表示装置は、画像を表示する表示手段と、請求項8に記載のカメラによって記録された記憶媒体の記憶内容に基づいて、記憶媒体が記憶する画像ファイルに含まれる画像データのうち、位置情報が示す画像データによる笑顔画像を表示装置に拡大表示させる表示制御手段を備えることを特徴とする。
(1) The camera according to the first aspect of the present invention is an imaging unit that captures a subject image and outputs image data, and a face detection unit that detects a face included in the captured image based on the image data. A face setting unit that sets a plurality of faces to be identified, a face identification unit that identifies the plurality of faces set by the face setting unit from the faces detected by the face detection unit, and the face identification When the face is identified by the means, the plurality of faces identified by the face identification means are set as smile determination targets. When the face is not identified by the face identification means, the face detection means A target determination unit that sets all detected faces as smile determination targets, a change determination unit that determines whether or not the plurality of faces of the smile determination targets determined by the target determination unit have changed to smiles , and the face If the face is identified by the identification means, When it is determined by the change determining means that all of the plurality of faces have changed to smiles, the imaging control is performed so that the image data captured and output by the imaging means is recorded in a storage medium, and the face identifying means If the change determination unit determines that at least one of all the faces has changed to a smile, the image data captured and output by the imaging unit is stored in the storage medium. A photographing control means for recording, and an operation member for instructing the start of photographing. When the photographing control means receives an operation signal from the operation member, the photographing control means is irrelevant to the smile change determination by the change determination means. Image data that is picked up and output by the image pickup means is recorded in the storage medium.
(2) The camera according to claim 1 may further include a notifying unit for notifying that the face is detected by the face detecting unit.
(3) The camera according to claim 1 further performs shooting based on a first shooting mode in which shooting is performed based on smile change determination by the change determination unit and an operation signal from an operation member for instructing start of shooting. A shooting mode setting means for switching the shooting mode among a plurality of shooting modes including a second shooting mode to be performed; an imaging power supply control means for controlling supply and stop of power supply to the imaging means; and a first time. The first timekeeping means for timekeeping, the second timekeeping means for timekeeping a second time longer than the first time, and the first timekeeping means timed by the first timekeeping means when there is no operation in the second shooting mode. Based on the instruction means for instructing the imaging power supply control means to stop the power supply, and when the first time is shorter than the predetermined time, the mode setting means switches from the second imaging mode to the first imaging mode. If set, control means for controlling the instruction means to instruct the imaging power supply control means to stop the power supply based on the fact that the second time measuring means has timed the second time measuring means when there is no operation. You may prepare.
(4) The camera according to claim 3 further includes display means, display power supply control means for controlling supply and stop of power supply to the display means, and third time for measuring a third time shorter than the second time. Time measuring means, fourth time measuring means for measuring a fourth time equal to or longer than the second time, selection means for selecting the third time measuring means or the fourth time measuring means in accordance with an operation signal from the operation member, A second instruction means for instructing the display power supply control means to stop the power supply based on the fact that the third time or the fourth time has been timed by the time measuring means selected by the selection means during no operation; You may prepare.
(5) In the camera of the first aspect, the imaging control unit can also perform imaging control so that still image data captured and output by the imaging unit is recorded in a storage medium.
(6) The camera according to the fifth aspect may further include a smile level determination unit that determines a smile level determined by the change determination unit. In this case, the recording unit may record information indicating the smile level determined by the smile level determination unit in the image file together with the image data or in association with the image file including the image data. it can.
(7) The camera according to claim 6 is further specified by specifying means for specifying an image file having a smile level of a predetermined value or more from the image file stored in the storage medium based on the storage contents of the storage medium. Display control means for reproducing and displaying an image based on the image data included in the image file on the display device.
(8) The camera according to claim 6 further includes the positional information on the smiling image determined by the change determining means in the image file together with the image data or in association with the image file including the image data. Recording means for recording may be provided.
(9) The camera according to claim 8 further displays, on the display device, a smile image based on the image data indicated by the position information among the image data included in the image file stored in the storage medium based on the storage content of the storage medium. Display control means for enlarging display may be provided.
(10) The camera according to claim 1, further comprising: a face image generating unit that generates a face image for setting a face to be identified by the face setting unit based on image data output by the imaging unit; Registration means for registering the face image generated by the means for each person. In this case, the face setting means sets a face to be identified from registered face images.
(11) The camera according to claim 10 further includes an instruction detection unit that detects that an instruction to register a plurality of face images as the same person is given to the registration unit, and the instruction detection unit detects May be provided with an informing means for informing.
(12) In the camera of the first aspect, the imaging control unit can also perform imaging control so as to record moving image data captured and output by the imaging unit in a storage medium.
(13) An image display device according to a thirteenth aspect of the invention is an image stored in a storage medium based on display means for displaying an image and the storage contents of the storage medium recorded by the camera according to the sixth aspect. A specifying unit that specifies an image file having a smile level equal to or greater than a predetermined value from the file, and a display control unit that causes the display unit to reproduce and display an image based on the image data included in the specified image file. .
(14) An image display device according to a fourteenth aspect of the invention is an image stored in a storage medium based on display means for displaying an image and the storage contents of the storage medium recorded by the camera according to the eighth aspect. The image processing apparatus includes display control means for enlarging and displaying on the display device a smile image based on the image data indicated by the position information among the image data included in the file.

本発明によれば、笑顔撮影に要する処理を軽減できる。   According to the present invention, processing required for shooting a smile can be reduced.

以下、図面を参照して本発明を実施するための最良の形態について説明する。
(第一の実施形態)
図1は、本発明の第一の実施形態による電子カメラ1の構成例を説明するブロック図である。図1において、電子カメラ1は、撮影光学系11と、撮像素子12と、AFE(Analog front end)回路13と、画像処理回路14と、スピーカ駆動回路15と、スピーカ16と、LCDモニタ17と、RAM18と、フラッシュメモリ19と、CPU20と、メモリカードインターフェース(I/F)21と、電源制御回路22と、操作部材23と、LED25とを備える。
The best mode for carrying out the present invention will be described below with reference to the drawings.
(First embodiment)
FIG. 1 is a block diagram illustrating a configuration example of an electronic camera 1 according to the first embodiment of the present invention. In FIG. 1, an electronic camera 1 includes a photographing optical system 11, an image sensor 12, an AFE (Analog front end) circuit 13, an image processing circuit 14, a speaker drive circuit 15, a speaker 16, and an LCD monitor 17. RAM 18, flash memory 19, CPU 20, memory card interface (I / F) 21, power supply control circuit 22, operation member 23, and LED 25.

CPU20、RAM18、フラッシュメモリ19、メモリカードインターフェース21、電源制御回路22、画像処理回路14、スピーカ駆動回路15およびLCDモニタ17は、それぞれがバス24を介して接続されている。   The CPU 20, RAM 18, flash memory 19, memory card interface 21, power supply control circuit 22, image processing circuit 14, speaker drive circuit 15, and LCD monitor 17 are connected via a bus 24.

撮影光学系11は、ズームレンズやフォーカシングレンズを含む複数のレンズ群で構成され、被写体像を撮像素子12の受光面に結像させる。なお、図1を簡単にするため、撮影光学系11を単レンズとして図示している。   The photographing optical system 11 includes a plurality of lens groups including a zoom lens and a focusing lens, and forms a subject image on the light receiving surface of the image sensor 12. In order to simplify FIG. 1, the photographing optical system 11 is shown as a single lens.

撮像素子12は、受光素子が受光面に二次元配列されたCCDイメージセンサやCMOSイメージセンサなどによって構成される。撮像素子12は、撮影光学系11を通過した光束による被写体像を光電変換してアナログ画像信号を生成する。アナログ画像信号は、AFE回路13に入力される。   The image sensor 12 is configured by a CCD image sensor, a CMOS image sensor, or the like in which the light receiving elements are two-dimensionally arranged on the light receiving surface. The image sensor 12 photoelectrically converts a subject image by a light beam that has passed through the photographing optical system 11 to generate an analog image signal. The analog image signal is input to the AFE circuit 13.

AFE回路13は、アナログ画像信号に対して相関二重サンプリングやゲイン調整などのアナログ処理を行うとともに、アナログ処理後の画像信号をデジタル画像データに変換する。デジタル画像データは画像処理回路14に入力される。画像処理回路14は、デジタル画像データに対して各種の画像処理(色補間処理、階調変換処理、輪郭強調処理、ホワイトバランス調整処理、画像圧縮処理、画像伸張処理など)を施す。   The AFE circuit 13 performs analog processing such as correlated double sampling and gain adjustment on the analog image signal, and converts the image signal after the analog processing into digital image data. The digital image data is input to the image processing circuit 14. The image processing circuit 14 performs various types of image processing (color interpolation processing, gradation conversion processing, contour enhancement processing, white balance adjustment processing, image compression processing, image expansion processing, etc.) on the digital image data.

スピーカ駆動回路15は、CPU20から送出された音声データに基づいて、たとえば操作音、注意音、音声メッセージなどの音声再生信号を生成する。スピーカ16は、音声再生信号に基づいて音声再生を行う。   The speaker drive circuit 15 generates a sound reproduction signal such as an operation sound, a caution sound, and a voice message based on the sound data sent from the CPU 20. The speaker 16 performs audio reproduction based on the audio reproduction signal.

LCDモニタ17は液晶パネルによって構成され、CPU20からの指示に応じて画像や操作メニュー画面などを表示する。RAM18はCPU20のワークメモリとして使用される。また、RAM18は、画像処理回路14による画像処理の前工程や後工程でのデジタル画像データを一時的に記憶する。フラッシュメモリ19は、CPU20に実行させるプログラムを記憶する他に、後述する参照用データを記憶する。   The LCD monitor 17 is composed of a liquid crystal panel, and displays an image, an operation menu screen, and the like according to an instruction from the CPU 20. The RAM 18 is used as a work memory for the CPU 20. The RAM 18 temporarily stores digital image data in the pre-process and post-process of image processing by the image processing circuit 14. The flash memory 19 stores reference data to be described later in addition to storing a program to be executed by the CPU 20.

CPU20は、フラッシュメモリ19が記憶するプログラムを実行することによって電子カメラ1が行う動作を統括的に制御する。CPU20は、AF(オートフォーカス)動作制御や、自動露出(AE)演算も行う。AF動作は、たとえば、スルー画像のコントラスト情報に基づいてフォーカシングレンズ(不図示)の合焦位置を求めるコントラスト検出方式を用いる。スルー画像は、撮影指示前に撮像素子12によって所定の時間間隔(たとえば30コマ/毎秒)で繰り返し取得されるモニタ用画像のことをいう。   The CPU 20 comprehensively controls operations performed by the electronic camera 1 by executing a program stored in the flash memory 19. The CPU 20 also performs AF (autofocus) operation control and automatic exposure (AE) calculation. The AF operation uses, for example, a contrast detection method for obtaining a focus position of a focusing lens (not shown) based on contrast information of a through image. The through image refers to a monitor image that is repeatedly acquired by the image sensor 12 at a predetermined time interval (for example, 30 frames / second) before a shooting instruction.

メモリカードインターフェース21はコネクタ(不図示)を有し、該コネクタにメモリカードなどの記憶媒体51が接続される。メモリカードインターフェース21は、接続された記憶媒体51に対するデータの書き込みや、記憶媒体51からのデータの読み込みを行う。記憶媒体51は、半導体メモリを内蔵したメモリカード、またはハードディスクドライブなどで構成される。   The memory card interface 21 has a connector (not shown), and a storage medium 51 such as a memory card is connected to the connector. The memory card interface 21 writes data to the connected storage medium 51 and reads data from the storage medium 51. The storage medium 51 is configured by a memory card incorporating a semiconductor memory, a hard disk drive, or the like.

電源制御回路22は、CPU20からの指示に応じて撮像素子12、LCDモニタ17、およびLCDモニタ17のバックライト(不図示)へ供給する電力の供給/遮断を制御する。撮像素子12へ供給する電力と、LCDモニタ17およびそのバックライトへ供給する電力とは、それぞれ独立して供給/遮断の制御が可能に構成されている。   The power supply control circuit 22 controls supply / cut-off of power supplied to the imaging device 12, the LCD monitor 17, and the backlight (not shown) of the LCD monitor 17 in accordance with an instruction from the CPU 20. The power supplied to the image sensor 12 and the power supplied to the LCD monitor 17 and its backlight are configured to be capable of independently controlling supply / cutoff.

操作部材23は、後述するレリーズボタン23a、ズームスイッチ23b 23c、十字スイッチ23g、メニュースイッチ23eなどを含む。操作部材23は、モード切替え操作やメニュー選択操作など、各操作に応じた操作信号をCPU20へ送出する。   The operation member 23 includes a release button 23a, a zoom switch 23b 23c, a cross switch 23g, a menu switch 23e, and the like which will be described later. The operation member 23 sends an operation signal corresponding to each operation, such as a mode switching operation or a menu selection operation, to the CPU 20.

LED25は、CPU20からの指示に応じて点灯または点滅する。LED25は、セルフタイマー撮影時にセルフタイマーの作動を知らせるために使用される他、後述する顔検出を知らせるためにも使用される。   The LED 25 is lit or blinks according to an instruction from the CPU 20. The LED 25 is used not only to notify the operation of the self-timer during self-timer shooting, but also to notify the face detection described later.

本実施形態の電子カメラ1は、撮影時に被写体人物が笑ったか否かを判定し、笑顔を判定した場合に撮影を行う。笑顔の判定対象とすべき「顔」は、あらかじめ電子カメラ1に登録可能である。さらに、電子カメラ1に登録した複数の「顔」の中から選択された一部の「顔」についてのみ、笑顔の判定対象とすることも可能である。   The electronic camera 1 according to the present embodiment determines whether or not the subject person has laughed at the time of shooting, and performs shooting when the smile is determined. A “face” to be a smile determination target can be registered in the electronic camera 1 in advance. Furthermore, only a part of “faces” selected from among a plurality of “faces” registered in the electronic camera 1 can be set as a smile determination target.

すなわち、電子カメラ1は撮影画像に含まれる「顔」を検出し、その「顔」が所定人物の「顔」か否かを識別する機能を備える。電子カメラ1は、撮影画像に含まれる「顔」のうち、識別した「顔」のみについて笑ったか否かを判定し、笑顔を判定した場合に撮影を行う。   That is, the electronic camera 1 has a function of detecting a “face” included in a captured image and identifying whether or not the “face” is a “face” of a predetermined person. The electronic camera 1 determines whether or not only the identified “face” among the “faces” included in the captured image has been laughed, and performs shooting when a smile is determined.

一方、電子カメラ1は、撮影画像に含まれる「顔」が所定人物の「顔」でない場合は、撮影画像に含まれる「顔」の全てについて笑ったか否かを判定し、1人でも笑顔を判定した場合に撮影を行う。   On the other hand, when the “face” included in the captured image is not the “face” of the predetermined person, the electronic camera 1 determines whether or not all of the “faces” included in the captured image have been laughed, and even one person smiles. Take a picture if judged.

笑顔を判定した場合に撮影を行う撮影モード、すなわち、笑顔レリーズモードと、笑顔判定を行わずにレリーズボタン23aからの操作信号に応じて撮影を行う通常の撮影モードとは、切替え可能に構成されている。この撮影モードの切替えは、たとえば、モードスイッチ23dの押下操作に応じて切替えてもよいし、メニュースイッチ23eの押下操作に応じて表示する「操作メニュー」画面の中で切替えを行うようにしてもよい。本説明では、笑顔レリーズモードに切替えられている場合の電子カメラ1の動作を中心に説明する。   A shooting mode in which shooting is performed when a smile is determined, that is, a smile release mode, and a normal shooting mode in which shooting is performed in response to an operation signal from the release button 23a without performing smile determination are configured to be switchable. ing. For example, the shooting mode may be switched according to the pressing operation of the mode switch 23d, or may be switched in the “operation menu” screen displayed according to the pressing operation of the menu switch 23e. Good. In this description, the operation of the electronic camera 1 when the mode is switched to the smile release mode will be mainly described.

<笑顔判定人物設定>
電子カメラ1が「顔」の識別に用いる参照用データは、あらかじめフラッシュメモリ19内に記録(登録)されている。登録手順については後述する。フラッシュメモリ19内に登録されている複数の「顔」の中から一部の「顔」を選択する操作は、以下のように行われる。図2は、電子カメラ1の背面図である。電子カメラ1の背面には、LCDモニタ17と、ズームスイッチ23b(T)と、ズームスイッチ23c(W)と、モードスイッチ23dと、メニュースイッチ23eと、削除スイッチ23fと、十字スイッチ23gと、OKスイッチ23hとが設けられている。
<Smile determination person setting>
Reference data used by the electronic camera 1 to identify a “face” is recorded (registered) in the flash memory 19 in advance. The registration procedure will be described later. The operation of selecting a part of “faces” from the plurality of “faces” registered in the flash memory 19 is performed as follows. FIG. 2 is a rear view of the electronic camera 1. On the back of the electronic camera 1, there are an LCD monitor 17, a zoom switch 23b (T), a zoom switch 23c (W), a mode switch 23d, a menu switch 23e, a deletion switch 23f, a cross switch 23g, and an OK. A switch 23h is provided.

CPU20は、メニュースイッチ23eが押下操作されると、図3に例示する「操作メニュー」画面をLCDモニタ17に表示させる。「操作メニュー」には、「登録撮影」項目178と、「笑顔判定人物設定」項目174と、「タイマー設定」項目175とが含まれる。CPU20は、「操作メニュー」画面を表示中に十字スイッチ23gが上下方向に押下操作されると、操作信号に応じて選択項目を上下に変更する。CPU20は、「笑顔判定人物設定」項目174を選択した状態で十字スイッチ23gが右方向に押下操作されると、図2に例示する「笑顔判定人物設定」画面をLCDモニタ17に表示させる。   When the menu switch 23 e is pressed, the CPU 20 displays an “operation menu” screen illustrated in FIG. 3 on the LCD monitor 17. The “operation menu” includes a “registered shooting” item 178, a “smile determination person setting” item 174, and a “timer setting” item 175. When the cross switch 23g is pressed down while the “operation menu” screen is displayed, the CPU 20 changes the selection item up or down according to the operation signal. When the cross switch 23g is pressed rightward while the “smile determination person setting” item 174 is selected, the CPU 20 causes the LCD monitor 17 to display a “smile determination person setting” screen illustrated in FIG.

CPU20は、フラッシュメモリ19内に記録(登録)されている全ての参照用データの中から「顔」のサムネイル画像データを読み出し、当該サムネイル画像を表示する。参照用データは、「顔」のサムネイル画像データと、当該画像データに基づいて生成された特徴量データとを含む。特徴量データは、後述する顔識別に用いられる。図2において、人物A、人物B、および人物Cについての「顔」のサムネイル画像がそれぞれ表示されている。各サムネイル画像の左側には、それぞれチェックボックスが表示される。たとえば、サムネイル画像171の左側にはチェックボックス172が表示される。   The CPU 20 reads the thumbnail image data of “face” from all the reference data recorded (registered) in the flash memory 19 and displays the thumbnail image. The reference data includes thumbnail image data of “face” and feature amount data generated based on the image data. The feature amount data is used for face identification described later. In FIG. 2, thumbnail images of “faces” for person A, person B, and person C are displayed. A check box is displayed on the left side of each thumbnail image. For example, a check box 172 is displayed on the left side of the thumbnail image 171.

CPU20は、「笑顔判定人物設定」画面を表示中に十字スイッチ23gが上下方向に押下操作されると、操作信号に応じてカーソル173の表示位置を上下に移動させる。CPU20は、OKスイッチ23hが押下操作された場合、カーソル173で囲まれているチェックボックス内にチェックマークを表示させる。CPU20は、チェックボックスにチェックマークを表示した状態でOKスイッチ23hが押下操作されると、当該チェックボックスのチェックマークを消す。CPU20は、「笑顔判定人物設定」画面の中でチェックマークで示されるサムネイル画像の「顔」を、笑顔か否かの判定対象とする。   The CPU 20 moves the display position of the cursor 173 up and down according to the operation signal when the cross switch 23g is pressed down in the up and down direction while the “smile determination person setting” screen is displayed. When the OK switch 23h is pressed, the CPU 20 displays a check mark in a check box surrounded by the cursor 173. When the OK switch 23h is pressed while the check mark is displayed in the check box, the CPU 20 deletes the check mark in the check box. The CPU 20 sets the “face” of the thumbnail image indicated by the check mark on the “smile determination person setting” screen as a determination target of whether or not it is a smile.

<笑顔撮影処理>
笑顔判定人物設定が行われた電子カメラ1のCPU20が笑顔レリーズモード時に実行する処理の流れについて、図4および図5のフローチャートを参照して説明する。CPU20は、笑顔レリーズモード時においてレリーズボタン23aが半押し操作された場合に図4の処理を行うためのプログラムを起動する。半押し操作は、全押し操作時の略半分の押し下げ量で行われる押下げ操作である。
<Smiling shooting process>
A flow of processing executed in the smile release mode by the CPU 20 of the electronic camera 1 in which the smile determination person setting is performed will be described with reference to the flowcharts of FIGS. The CPU 20 activates a program for performing the processing of FIG. 4 when the release button 23a is pressed halfway in the smile release mode. The half-pressing operation is a pressing operation that is performed with a pressing amount that is approximately half that of the full-pressing operation.

図4のステップS101において、CPU20は、スリープタイマーおよびLCDタイマーの計時時間をそれぞれリセットしてステップS102へ進む。スリープタイマーおよびLCDタイマーはともに、電子カメラ1に対する操作が何も行われない時間(無操作時間)を計時するタイマーである。CPU20は、スリープタイマーが所定時間を計時した場合に、撮像素子12への電力供給を自動的に遮断して電子カメラ1を省電力状態にするように構成されている。   In step S101 of FIG. 4, the CPU 20 resets the time measured by the sleep timer and the LCD timer, and proceeds to step S102. Both the sleep timer and the LCD timer are timers that measure the time during which no operation is performed on the electronic camera 1 (no operation time). The CPU 20 is configured to automatically cut off the power supply to the image sensor 12 and put the electronic camera 1 in a power saving state when the sleep timer times out a predetermined time.

また、CPU20は、LCDタイマーが所定時間を計時した場合にLCDモニタ17およびそのバックライトへの電力供給を自動的に遮断して電子カメラ1を省電力状態にするように構成されている。スリープタイマーおよびLCDタイマーはともに、操作部材23を構成するいずれかのスイッチなどが操作された場合、それぞれの計時時間がリセットされる。   Further, the CPU 20 is configured to automatically shut off the power supply to the LCD monitor 17 and its backlight when the LCD timer measures a predetermined time to put the electronic camera 1 in a power saving state. Both the sleep timer and the LCD timer are reset when their respective switches constituting the operation member 23 are operated.

ステップS102において、CPU20は、スリープタイマーおよびLCDタイマーをそれぞれスタートさせてステップS103へ進む。これにより、スリープタイマーおよびLCDタイマーは、それぞれが設定されている時間の計時を開始する。   In step S102, the CPU 20 starts a sleep timer and an LCD timer, and proceeds to step S103. As a result, the sleep timer and the LCD timer start measuring the set time.

ここで、スリープタイマーおよびLCDタイマーによる計時時間の設定手順について図6〜図8を参照して説明する。CPU20は、LCDモニタ17に表示中の「操作メニュー画面」(図3)において「タイマー設定」項目175を選択した状態で、十字スイッチ23gが右方向に押下操作されると、図6に例示する「タイマー設定」画面をLCDモニタ17に表示させる。「タイマー設定」画面には、「スリープタイマー」項目176と、「笑顔レリーズモード時LCDタイマー」項目177とが含まれる。   Here, the procedure for setting the time measured by the sleep timer and the LCD timer will be described with reference to FIGS. The CPU 20 exemplifies FIG. 6 when the cross switch 23g is pressed to the right while the “timer setting” item 175 is selected on the “operation menu screen” (FIG. 3) being displayed on the LCD monitor 17. The “timer setting” screen is displayed on the LCD monitor 17. The “timer setting” screen includes a “sleep timer” item 176 and an “LCD timer in smile release mode” item 177.

CPU20は、LCDモニタ17に表示中の「タイマー設定画面」(図6)において「スリープタイマー」項目176を選択した状態で十字スイッチ23gが右方向に押下操作されると、図7に例示する「スリープタイマー」画面をLCDモニタ17に表示させる。「スリープタイマー」画面には、「30秒」項目71と、「1分」項目72と、「5分」項目73と、「30分」項目74とが含まれる。   When the cross switch 23g is pressed down in the right direction while the “sleep timer” item 176 is selected on the “timer setting screen” (FIG. 6) being displayed on the LCD monitor 17, the CPU 20 illustrates “ The “sleep timer” screen is displayed on the LCD monitor 17. The “sleep timer” screen includes a “30 second” item 71, a “1 minute” item 72, a “5 minute” item 73, and a “30 minute” item 74.

CPU20は、LCDモニタ17に表示中の「スリープタイマー」画面(図7)において項目71〜項目74のいずれか1つを選択した状態で十字スイッチ23gが右方向に押下操作されると、選択項目に対応する時間をスリープタイマーとして設定する。   When the cross switch 23g is pressed to the right in the state where any one of the items 71 to 74 is selected on the “sleep timer” screen (FIG. 7) being displayed on the LCD monitor 17, the CPU 20 selects the selected item. The time corresponding to is set as a sleep timer.

CPU20は、LCDモニタ17に表示中の「タイマー設定画面」(図6)において「笑顔レリーズモード時LCDタイマー」項目177を選択した状態で十字スイッチ23gが右方向に押下操作されると、図8に例示する「笑顔レリーズモード時LCDタイマー」画面をLCDモニタ17に表示させる。「笑顔レリーズモード時LCDタイマー」画面には、「常時オン」項目81と、「30秒」項目82と、「1分」項目83とが含まれる。「常時オン」はLCDタイマーオフ(設定時間を無制限にすることと等価)に対応する項目である。   When the cross switch 23g is pressed rightward while the “smile release mode LCD timer” item 177 is selected on the “timer setting screen” (FIG. 6) being displayed on the LCD monitor 17, the CPU 20 performs FIG. The “smiling release mode LCD timer” screen illustrated in FIG. The “smile release mode LCD timer” screen includes an “always on” item 81, a “30 seconds” item 82, and a “1 minute” item 83. “Always on” is an item corresponding to LCD timer off (equivalent to making the set time unlimited).

CPU20は、LCDモニタ17に表示中の「笑顔レリーズモード時LCDタイマー」画面(図8)において項目81〜項目83のいずれか1つを選択した状態で十字スイッチ23gが右方向に押下操作されると、選択項目に対応する時間を笑顔レリーズモード時LCDタイマーとして設定する。   The CPU 20 operates the cross switch 23g to be pressed to the right in a state where any one of the items 81 to 83 is selected on the “LCD timer for smile release mode” screen (FIG. 8) being displayed on the LCD monitor 17. And the time corresponding to the selected item is set as the LCD timer in the smile release mode.

本実施形態では、「スリープタイマー」画面(図7)において「30秒」に設定されている場合、および「1分」に設定されている場合のそれぞれにおいて、通常の撮影モードから笑顔レリーズモードに切替えられると、スリープタイマーを「5分」に自動変更する。具体的には、上述したリセット時(ステップS101)にスリープタイマーを「5分」に変更する。なお、自動変更する時間は「5分」に限らず、たとえば「10分」に自動変更しても構わない。   In the present embodiment, when the “sleep timer” screen (FIG. 7) is set to “30 seconds” and when it is set to “1 minute”, the normal shooting mode is changed to the smile release mode. When switched, the sleep timer is automatically changed to “5 minutes”. Specifically, the sleep timer is changed to “5 minutes” at the time of reset (step S101). The time for automatic change is not limited to “5 minutes”, and may be automatically changed to “10 minutes”, for example.

図4のステップS103において、CPU20は、笑顔レリーズモードをキャンセルする操作が行われたか否かを判定する。CPU20は、通常の撮影モードへ切替える操作信号を受けた場合はステップS103を肯定判定して図4による処理を終了する。CPU20は、通常の撮影モードへ切替える際、上述したリセット時(ステップS101)にスリープタイマーを「5分」に自動変更した場合には、自動変更する前の設定時間(「30秒」または「1分」)に自動的に戻す。CPU20は、通常の撮影モードへ切替える操作信号を受けない場合にはステップS103を否定判定し、ステップS104へ進む。   In step S103 in FIG. 4, the CPU 20 determines whether or not an operation for canceling the smile release mode has been performed. When the CPU 20 receives an operation signal for switching to the normal photographing mode, the CPU 20 makes an affirmative decision in step S103 and ends the processing in FIG. When the CPU 20 automatically changes the sleep timer to “5 minutes” at the time of reset (step S101) when switching to the normal shooting mode, the CPU 20 sets the set time (“30 seconds” or “1” before the automatic change). Minutes ") automatically. If the CPU 20 does not receive an operation signal for switching to the normal shooting mode, the CPU 20 makes a negative determination in step S103 and proceeds to step S104.

ステップS104において、CPU20は笑顔レリーズモード時LCDタイマーがタイムアップしたか否かを判定する。CPU20は、笑顔レリーズモード時LCDタイマーによる計時時間が設定時間に達した場合にステップS104を肯定判定してステップS105へ進む。CPU20は、笑顔レリーズモード時LCDタイマーによる計時時間が設定時間に達しない場合にはステップS104を否定判定し、ステップS106へ進む。   In step S104, the CPU 20 determines whether or not the LCD timer has expired in the smile release mode. If the time measured by the LCD timer in the smile release mode has reached the set time, the CPU 20 makes a positive determination in step S104 and proceeds to step S105. If the time measured by the LCD timer in the smile release mode does not reach the set time, the CPU 20 makes a negative determination in step S104 and proceeds to step S106.

ステップS105において、CPU20は電源制御回路22へ指示を送り、LCDモニタ17およびそのバックライトへ供給する電力を遮断させてステップS106へ進む。これにより、電子カメラ1が省電力状態になる。   In step S105, the CPU 20 sends an instruction to the power supply control circuit 22, cuts off the power supplied to the LCD monitor 17 and its backlight, and proceeds to step S106. As a result, the electronic camera 1 enters a power saving state.

ステップS106において、CPU20はスリープタイマーがタイムアップしたか否かを判定する。CPU20は、スリープタイマーによる計時時間が設定時間に達した場合にステップS106を肯定判定してステップS108へ進む。CPU20は、スリープタイマーによる計時時間が設定時間に達しない場合にはステップS106を否定判定し、ステップS107へ進む。   In step S106, the CPU 20 determines whether or not the sleep timer has expired. When the time measured by the sleep timer reaches the set time, the CPU 20 makes a positive determination in step S106 and proceeds to step S108. If the time measured by the sleep timer does not reach the set time, the CPU 20 makes a negative determination in step S106 and proceeds to step S107.

ステップS108において、CPU20は電源制御回路22へ指示を送り、撮像素子12へ供給する電力を遮断させて、図4による処理を終了する。これにより、撮像素子12の駆動が止まって電子カメラ1が省電力状態になる。   In step S <b> 108, the CPU 20 sends an instruction to the power supply control circuit 22, cuts off the power supplied to the image pickup device 12, and ends the process of FIG. 4. Thereby, the drive of the image pick-up element 12 stops and the electronic camera 1 will be in a power saving state.

ステップS107において、CPU20は、レリーズスイッチがオンしたか否かを判定する。CPU20は、レリーズボタン23aが全押し操作された場合にステップS107を肯定判定してステップS109へ進む。CPU20は、レリーズボタン23aが全押し操作されない場合にはステップS107を否定判定し、ステップS111へ進む。   In step S107, the CPU 20 determines whether or not the release switch is turned on. When the release button 23a is fully pressed, the CPU 20 makes a positive determination in step S107 and proceeds to step S109. If the release button 23a is not fully pressed, the CPU 20 makes a negative determination in step S107 and proceeds to step S111.

ステップS109において、CPU20は、撮影処理を行ってステップS110へ進む。この撮影処理は、レリーズボタン23aの操作に基づいて行う撮影である。ステップS110において、CPU20は、撮影処理前の情報および撮影処理で取得した画像データに基づいて、画像データおよび撮影情報を含むExif形式の画像ファイルを生成する。Exif形式の画像ファイルは、JPEG画像フォーマットの画像データ内にサムネイル画像や撮影情報などのデータを埋め込むようにしたものである。CPU20は、画像ファイルを記憶媒体51へ記録してステップS111へ進む。   In step S109, the CPU 20 performs a shooting process and proceeds to step S110. This photographing process is photographing performed based on the operation of the release button 23a. In step S110, the CPU 20 generates an Exif format image file including the image data and the shooting information based on the information before the shooting process and the image data acquired by the shooting process. The Exif format image file is obtained by embedding data such as thumbnail images and shooting information in image data in the JPEG image format. The CPU 20 records the image file on the storage medium 51 and proceeds to step S111.

ステップS111において、CPU20はスルー画像データが入力されたか否かを判定する。CPU20は、RAM18に新たなスルー画像データを記憶した場合にステップS111を肯定判定してステップS112へ進む。CPU20は、RAM18に新たなスルー画像データを記憶していない場合にはステップS111を否定判定し、当該判定処理を繰り返す。   In step S111, the CPU 20 determines whether or not through image data has been input. If new through image data is stored in the RAM 18, the CPU 20 makes a positive determination in step S111 and proceeds to step S112. If the new through image data is not stored in the RAM 18, the CPU 20 makes a negative determination in step S111 and repeats the determination process.

ステップS112において、CPU20は、スルー画像データに基づいて顔検出処理を行うことにより、スルー画像内に含まれる人物の顔を検出する。顔検出処理は、公知の技術であるため説明を省略する。なお、スルー画像データのサイズは、LCDモニタ17の表示解像度に合わせて決定されるため、撮影処理で取得する撮影画像データのサイズに比べて小さく抑えられている。   In step S112, the CPU 20 detects a person's face included in the through image by performing face detection processing based on the through image data. Since the face detection process is a known technique, description thereof is omitted. Note that the size of the through image data is determined in accordance with the display resolution of the LCD monitor 17, and therefore is suppressed to be smaller than the size of the captured image data acquired by the imaging process.

ステップS113において、CPU20は顔検出できたか否かを判定する。CPU20は、ステップS112において顔を検出した場合にステップS113を肯定判定してステップS114へ進む。CPU20は、ステップS112において顔を検出していない場合にはステップS113を否定判定してステップS115へ進む。   In step S113, the CPU 20 determines whether a face has been detected. When CPU 20 detects a face in step S112, CPU 20 makes a positive determination in step S113 and proceeds to step S114. If the face is not detected in step S112, the CPU 20 makes a negative determination in step S113 and proceeds to step S115.

ステップS114において、CPU20はLED25を点滅させてステップS116へ進む。これにより、電子カメラ1が顔検出したことが被写体人物に報知される。ステップS115において、CPU20はLED25を消灯させてステップS103へ戻る。ステップS103へ戻る場合は上述した処理を繰り返す。   In step S114, the CPU 20 blinks the LED 25 and proceeds to step S116. Thereby, the subject person is notified that the electronic camera 1 has detected the face. In step S115, the CPU 20 turns off the LED 25 and returns to step S103. When returning to step S103, the above-described processing is repeated.

ステップS116において、CPU20は、ステップS112において検出した顔の領域の画像データと、「笑顔判定人物設定」画面の中でチェックされている「顔」に対応する参照用データとに基づいて顔識別処理を行うことにより、検出されている人物の顔と、上述した「笑顔判定人物設定」画面の中で設定した人物の顔とが同人物のものであるか否かを識別する。顔識別処理は、公知の技術であるため説明を省略する。   In step S116, the CPU 20 performs face identification processing based on the image data of the face area detected in step S112 and the reference data corresponding to “face” checked in the “smile determination person setting” screen. By performing the above, it is discriminated whether or not the detected person's face and the person's face set in the above-mentioned “smile determination person setting” screen belong to the same person. The face identification process is a known technique and will not be described.

図5のステップS117において、CPU20は、設定人物の顔を1つ以上識別しているか否かを判定する。CPU20は、顔識別処理によって識別した人物の顔が存在する場合にステップS117を肯定判定してステップS118へ進む。CPU20は、設定した人物の顔を1つも識別していない場合にはステップS117を否定判定し、ステップS126へ進む。   In step S117 in FIG. 5, the CPU 20 determines whether one or more faces of the set person have been identified. If the face of the person identified by the face identification process exists, the CPU 20 makes a positive determination in step S117 and proceeds to step S118. If no set human face has been identified, the CPU 20 makes a negative determination in step S117 and proceeds to step S126.

ステップS118において、CPU20は、識別した人物全員を笑顔判定対象としてステップS119へ進む。ステップS119において、CPU20は、対象人物の顔のうち1つを特定してステップS120へ進む。ステップS120において、CPU20は特定された対象人物の顔が笑顔であるか否かを判定する。CPU20は、スルー画像データのうち特定した人物の顔の領域に対応するデータに基づいて、笑顔であると判定した場合にステップS120を肯定判定してステップS121へ進む。CPU20は、笑顔でないと判定した場合にはステップS120を否定判定してステップS124へ進む。笑顔判定処理は、公知の技術であるため説明を省略する。   In step S118, the CPU 20 sets all the identified persons as smile determination targets and proceeds to step S119. In step S119, the CPU 20 identifies one of the faces of the target person and proceeds to step S120. In step S120, the CPU 20 determines whether or not the face of the identified target person is a smile. If the CPU 20 determines that it is a smile based on the data corresponding to the identified human face area in the through image data, the CPU 20 makes an affirmative determination in step S120 and proceeds to step S121. If the CPU 20 determines that it is not a smile, it makes a negative determination in step S120 and proceeds to step S124. Since the smile determination process is a known technique, a description thereof will be omitted.

ステップS121において、CPU20は、特定した人物の顔に関して笑顔フラグを1にセットしてステップS122へ進む。ステップS122において、CPU20は、笑顔レベルを判定する。笑顔レベルは、たとえば、2(大笑い)と、1(中笑い)と、0(微笑み)との3段階に分ける。CPU20は、笑顔判定で得られている笑顔の度合いを示す情報に基づいて、特定した人物の顔に関して笑顔レベルを判定してステップS123へ進む。   In step S121, the CPU 20 sets a smile flag to 1 regarding the face of the identified person, and proceeds to step S122. In step S122, the CPU 20 determines the smile level. The smile level is divided into three levels, for example, 2 (big laughter), 1 (medium laughter), and 0 (smile). The CPU 20 determines a smile level for the identified person's face based on the information indicating the degree of smile obtained by the smile determination, and proceeds to step S123.

ステップS123において、CPU20は、ステップS122で判定した笑顔レベルを示すデータをフラッシュメモリ19に記録してステップS124へ進む。ステップS124において、CPU20は、対象人物の全員の顔について判定処理をしたか否かを判定する。CPU20は、ステップS116で識別した人物の顔の全てについて笑顔判定処理をした場合にステップS124を肯定判定してステップS125へ進む。CPU20は、ステップS116で識別した人物の顔の全てについて笑顔判定処理をしていない場合にはステップS124を否定判定し、ステップS119へ戻る。ステップS119へ戻る場合は、対象人物の顔のうち他の1つを特定して上述した処理を繰り返す。   In step S123, the CPU 20 records data indicating the smile level determined in step S122 in the flash memory 19, and proceeds to step S124. In step S124, the CPU 20 determines whether or not the determination process has been performed for all faces of the target person. If the smile determination process has been performed for all the faces of the person identified in step S116, the CPU 20 makes a positive determination in step S124 and proceeds to step S125. If the smile determination process has not been performed for all the faces of the person identified in step S116, the CPU 20 makes a negative determination in step S124 and returns to step S119. When returning to step S119, another one of the faces of the target person is specified, and the above-described processing is repeated.

ステップS125において、CPU20は、対象人物の全員について笑顔フラグ=1か否かを判定する。CPU20は、対象人物の顔の全てが笑顔フラグ=1の場合にステップS125を肯定判定してステップS132へ進む。CPU20は、対象人物の顔の全てが笑顔フラグ=1でない場合(即ち、ステップS116で識別した対象人物の顔のうち1つでも笑顔フラグ=0の顔が存在する場合)にはステップS125を否定判定し、図4のステップS103へ戻る。ステップS103へ戻る場合は、上述した処理を繰り返す。   In step S125, the CPU 20 determines whether or not the smile flag = 1 for all the target persons. If all the faces of the target person have the smile flag = 1, the CPU 20 makes a positive determination in step S125 and proceeds to step S132. If all the faces of the target person are not the smile flag = 1 (that is, if at least one face of the target person identified in step S116 has a face with the smile flag = 0), the CPU 20 denies step S125. The determination is made, and the process returns to step S103 in FIG. When returning to step S103, the above-described processing is repeated.

ステップS117を否定判定して進むステップS126において、CPU20は、ステップS112で検出した顔の人物全員を笑顔判定対象としてステップS127へ進む。ステップS127において、CPU20は、対象人物の顔のうち1つを特定してステップS128へ進む。ステップS128において、CPU20は特定された対象人物の顔が笑顔であるか否かを判定する。CPU20は、スルー画像データのうち特定した顔の領域に対応するデータに基づいて、笑顔であると判定した場合にステップS128を肯定判定してステップS129へ進む。CPU20は、笑顔でないと判定した場合にはステップS128を否定判定してステップS131へ進む。   In step S126, which proceeds after making a negative determination in step S117, the CPU 20 proceeds to step S127 with all the persons having the face detected in step S112 as smile determination targets. In step S127, the CPU 20 identifies one of the faces of the target person and proceeds to step S128. In step S128, the CPU 20 determines whether or not the face of the identified target person is a smile. If the CPU 20 determines that it is a smile based on the data corresponding to the specified face area in the through image data, the CPU 20 makes a positive determination in step S128 and proceeds to step S129. If the CPU 20 determines that it is not a smile, it makes a negative determination in step S128 and proceeds to step S131.

ステップS129において、CPU20は、笑顔判定で得られているレベル情報に基づいて、特定した人物の顔に関して笑顔レベルを判定してステップS130へ進む。ステップS130において、CPU20は、ステップS129で判定した笑顔レベルを示すデータをフラッシュメモリ19に記録してステップS132へ進む。   In step S129, the CPU 20 determines the smile level for the identified person's face based on the level information obtained by the smile determination, and proceeds to step S130. In step S130, the CPU 20 records data indicating the smile level determined in step S129 in the flash memory 19, and proceeds to step S132.

ステップS128を否定判定して進むステップS131において、CPU20は、対象人物の全員の顔について判定処理をしたか否かを判定する。CPU20は、ステップS112で検出した人物の顔の全てについて笑顔判定処理をした場合にステップS131を肯定判定して図4のステップS103へ戻る。ステップS103へ戻る場合は、上述した処理を繰り返す。CPU20は、ステップS112で検出した人物の顔の全てについて笑顔判定処理をしていない場合にはステップS131を否定判定し、ステップS127へ戻る。ステップS127へ戻る場合は、対象人物の顔のうち他の1つを特定して上述した処理を繰り返す。   In step S131, which proceeds after making a negative determination in step S128, the CPU 20 determines whether or not the determination process has been performed for all faces of the target person. CPU20 makes affirmation determination of step S131, and returns to step S103 of FIG. 4, when a smile determination process is performed about all the faces of the person detected by step S112. When returning to step S103, the above-described processing is repeated. If the smile determination process has not been performed for all of the human faces detected in step S112, the CPU 20 makes a negative determination in step S131 and returns to step S127. When returning to step S127, another one of the faces of the target person is specified and the above-described processing is repeated.

図9は、上述したステップS117〜ステップS124を処理中におけるLCDモニタ17の表示例を説明する図である。CPU20は、ステップS111において入力されRAM18が記憶しているスルー画像データに基づく画像をLCDモニタ17に表示させるとともに、顔検出処理で検出した人物の顔を囲む枠を表示中の画像に重ねて表示する。CPU20はさらに、検出されている人物の顔を囲む枠のうち、顔識別処理で識別した人物の顔を囲む枠を他の枠と異なる態様で表示する。   FIG. 9 is a diagram for explaining a display example of the LCD monitor 17 during the processing of steps S117 to S124 described above. The CPU 20 displays an image based on the through image data input in step S111 and stored in the RAM 18 on the LCD monitor 17, and displays a frame surrounding the face of the person detected by the face detection process so as to overlap the displayed image. To do. Further, the CPU 20 displays a frame surrounding the face of the person identified by the face identification process among the frames surrounding the detected face of the person in a manner different from the other frames.

図9において、識別した人物Aの顔を囲む枠P1と、識別した人物Bの顔を囲む枠P2とが2重枠で示されている。識別していない人物Cの顔を囲む枠P3は、枠P1およびP2と異なる態様の1重枠で示されている。図9の例では2重枠と1重枠とを使って表示する例を示したが、1重枠のまま表示色を変えたり、実線や破線を使って枠の表示態様を異ならせるようにしても構わない。図9に例示した画像を表示中の場合、識別した人物Aおよび人物Bの双方の顔が笑顔になるのを待って撮影を行う。   In FIG. 9, a frame P1 surrounding the face of the identified person A and a frame P2 surrounding the face of the identified person B are shown as double frames. The frame P3 surrounding the face of the person C that has not been identified is shown as a single frame that is different from the frames P1 and P2. In the example of FIG. 9, an example is shown in which a double frame and a single frame are used for display. However, the display color of the single frame is changed, or the display mode of the frame is changed using a solid line or a broken line. It doesn't matter. When the image illustrated in FIG. 9 is being displayed, photographing is performed after the faces of both the identified person A and person B are smiling.

図10は、上述したステップS126〜ステップS131を処理中におけるLCDモニタ17の表示例を説明する図である。CPU20は、スルー画像データに基づく画像をLCDモニタ17に表示させるとともに、顔検出処理で検出した人物の顔を囲む枠を表示中の画像に重ねて表示する。顔識別処理で識別していない場合は、各顔を囲む枠P1〜P3は、それぞれ1重枠で示される。図10に例示した画像を表示中の場合、顔検出した人物A、人物B、人物Cのうちいずれか1つの顔が笑顔になるのを待って撮影を行う。   FIG. 10 is a diagram for explaining a display example of the LCD monitor 17 during the processing of steps S126 to S131 described above. The CPU 20 displays an image based on the through image data on the LCD monitor 17 and displays a frame surrounding the face of the person detected by the face detection process so as to overlap the displayed image. When the face is not identified by the face identification process, the frames P1 to P3 surrounding each face are shown as single frames. When the image illustrated in FIG. 10 is being displayed, photographing is performed after any one of the faces A, B, and C whose faces are detected is smiling.

図5のステップS132において、CPU20は、撮影処理を行ってステップS133へ進む。この撮影処理は、笑顔判定に基づいて行う撮影である。撮影処理では、スルー画像データのサイズより大きいサイズの記録用の撮影画像データが出力される。ステップS133において、CPU20は、撮影処理前の情報およびステップS132における撮影処理で取得した画像データに基づいて、画像データおよび撮影情報を含むExif形式の画像ファイルを生成する。この画像ファイル構造は、画像の付属情報を記録するヘッダ領域と撮影画像データを記録する画像データ領域とを有する。CPU20は、画像ファイル内のヘッダ領域(タグ領域)に笑顔情報を記録する。笑顔情報は、撮影画像における笑顔の位置を示す情報、笑顔の人物を示す情報を含む。   In step S132 of FIG. 5, the CPU 20 performs a photographing process and proceeds to step S133. This photographing process is photographing performed based on smile determination. In the photographing process, recorded image data for recording having a size larger than the size of the through image data is output. In step S133, the CPU 20 generates an Exif format image file including the image data and the shooting information based on the information before the shooting process and the image data acquired in the shooting process in step S132. This image file structure has a header area for recording image auxiliary information and an image data area for recording captured image data. The CPU 20 records smile information in a header area (tag area) in the image file. The smile information includes information indicating a position of a smile in the photographed image and information indicating a smiling person.

この笑顔情報は、画像ファイルのヘッダ領域に記録する代わりに、画像ファイルに関連付けた別ファイルとして記録しても構わない。   The smile information may be recorded as a separate file associated with the image file, instead of being recorded in the header area of the image file.

CPU20は、画像ファイルを記憶媒体51へ記録してステップS134へ進む。ステップS134において、CPU20は、ステップS122で判定した笑顔レベルが1以上か否かを判定する。CPU20は、たとえば、笑顔レベルが2の場合、1の場合にはそれぞれステップS134を肯定判定してステップS135へ進む。CPU20は、笑顔レベルが0の場合にはステップS134を否定判定し、ステップS136へ進む。   The CPU 20 records the image file on the storage medium 51 and proceeds to step S134. In step S134, the CPU 20 determines whether or not the smile level determined in step S122 is 1 or more. For example, if the smile level is 2, the CPU 20 makes an affirmative decision in step S134 if the smile level is 1, and proceeds to step S135. If the smile level is 0, the CPU 20 makes a negative determination in step S134 and proceeds to step S136.

ステップS135において、CPU20は、当該画像ファイルの名称、笑顔レベルを示す情報を笑顔ファイルリスト情報として記憶媒体51へ記録してステップS136へ進む。笑顔ファイルリスト情報は、画像ファイルに関連付けた別ファイルとして記録される。   In step S135, the CPU 20 records information indicating the name and smile level of the image file on the storage medium 51 as smile file list information, and the process proceeds to step S136. The smile file list information is recorded as a separate file associated with the image file.

ステップS136において、CPU20は、撮影画像データによる画像を所定時間LCDモニタ17に表示させて図4のステップS103へ戻り、以上説明した処理を繰り返す。   In step S136, the CPU 20 displays an image based on the photographed image data on the LCD monitor 17 for a predetermined time, returns to step S103 in FIG. 4, and repeats the processing described above.

<登録撮影処理>
「顔」の識別に用いる参照用データをフラッシュメモリ19内に記録(登録)する処理について、図11に例示するフローチャートを参照して説明する。CPU20は、LCDモニタ17に表示中の「操作メニュー画面」(図3)において「登録撮影」項目178を選択した状態で十字スイッチ23gが右方向に押下操作されると、図11の登録撮影処理を行うためのプログラムを起動する。
<Registered shooting process>
Processing for recording (registering) reference data used for identification of “face” in the flash memory 19 will be described with reference to the flowchart illustrated in FIG. 11. When the cross switch 23g is pressed down in the right direction while the “registered shooting” item 178 is selected on the “operation menu screen” (FIG. 3) being displayed on the LCD monitor 17, the CPU 20 performs the registered shooting process of FIG. Start the program to do.

図11のステップS301において、CPU20は、LCDモニタ17にアシスト枠Gを表示させてステップS302へ進む。図12は、LCDモニタ17の表示例を説明する図である。CPU20は、RAM18が記憶している直近のスルー画像データに基づく画像をLCDモニタ17に表示させるとともに、アシスト枠Gを表示中の画像に重ねて表示させる。撮影者は、登録しようとする被写体人物の顔がアシスト枠G内に収まるように電子カメラ1を構える。   In step S301 in FIG. 11, the CPU 20 displays the assist frame G on the LCD monitor 17 and proceeds to step S302. FIG. 12 is a diagram for explaining a display example of the LCD monitor 17. The CPU 20 displays an image based on the latest through image data stored in the RAM 18 on the LCD monitor 17 and displays the assist frame G so as to overlap the image being displayed. The photographer holds the electronic camera 1 so that the face of the subject person to be registered is within the assist frame G.

ステップS302において、CPU20は、登録撮影モードをキャンセルする操作が行われたか否かを判定する。CPU20は、登録撮影処理を終了させる操作信号(たとえば、メニュースイッチ23eからの操作信号)を受けた場合にステップS302を肯定判定してステップS312へ進む。ステップS312において、CPU20は、アシスト枠Gの表示を終了させて図11による処理を終了する。一方、CPU20は、登録撮影処理を終了させる操作信号(たとえば、メニュースイッチ23eからの操作信号)を受けない場合には、ステップS302を否定判定してステップS303へ進む。   In step S302, the CPU 20 determines whether or not an operation for canceling the registered photographing mode has been performed. When the CPU 20 receives an operation signal (for example, an operation signal from the menu switch 23e) for ending the registered photographing process, the CPU 20 makes a positive determination in step S302 and proceeds to step S312. In step S312, the CPU 20 ends the display of the assist frame G and ends the process shown in FIG. On the other hand, if the CPU 20 does not receive an operation signal (for example, an operation signal from the menu switch 23e) for ending the registered photographing process, the CPU 20 makes a negative determination in step S302 and proceeds to step S303.

ステップS303において、CPU20は、レリーズスイッチがオンしたか否かを判定する。CPU20は、レリーズボタン23aが全押し操作された場合にステップS303を肯定判定し、撮影処理を行ってステップS304へ進む。CPU20は、レリーズボタン23aが全押し操作されない場合にはステップS303を否定判定し、ステップS302へ戻る。   In step S303, the CPU 20 determines whether or not the release switch is turned on. When the release button 23a is fully pressed, the CPU 20 makes a positive determination in step S303, performs a shooting process, and proceeds to step S304. If the release button 23a is not fully pressed, the CPU 20 makes a negative determination in step S303 and returns to step S302.

ステップS304において、CPU20は撮影処理で取得した画像データが顔識別に使えるか否かを判定する。CPU20は、画像データのうちアシスト枠G内に対応するデータに基づいて顔検出処理を行い、顔を検出した場合にステップS304を肯定判定してステップS305へ進む。CPU20は、顔を検出していない場合にはステップS304を否定判定してステップS310へ進む。   In step S304, the CPU 20 determines whether the image data acquired by the shooting process can be used for face identification. The CPU 20 performs face detection processing based on data corresponding to the assist frame G in the image data. If a face is detected, the CPU 20 makes a positive determination in step S304 and proceeds to step S305. If the face is not detected, the CPU 20 makes a negative determination in step S304 and proceeds to step S310.

ステップS310において、CPU20は、LCDモニタ17にメッセージを表示させてステップS301へ戻る。メッセージの内容は、たとえば、「顔が小さすぎます」とする。この場合は、取得済みの画像データを無効にして新たな登録撮影に備える。   In step S310, the CPU 20 displays a message on the LCD monitor 17 and returns to step S301. The content of the message is, for example, “face is too small”. In this case, the acquired image data is invalidated to prepare for a new registered shooting.

ステップS305において、CPU20は、ステップS304で検出した顔が登録されている顔か否かを判定する。具体的には、ステップS304で検出した顔の領域の画像データと、フラッシュメモリ19内に登録されているサムネイル画像の「顔」に対応する参照用データとに基づいて顔識別処理を行うことにより、検出されている人物の顔と、参照用データに含まれている人物の顔とが同一人物のものであるか否かを識別する。   In step S305, the CPU 20 determines whether or not the face detected in step S304 is a registered face. Specifically, by performing face identification processing based on the image data of the face area detected in step S304 and the reference data corresponding to the “face” of the thumbnail image registered in the flash memory 19 Whether the detected person's face and the person's face included in the reference data belong to the same person is identified.

CPU20は、既に登録されている顔の場合にステップS305を肯定判定してステップS306へ進み、登録されている顔でない場合にはステップS305を否定判定してステップS309へ進む。   If the face is already registered, the CPU 20 makes a positive determination in step S305 and proceeds to step S306. If the face is not a registered face, the CPU 20 makes a negative determination in step S305 and proceeds to step S309.

ステップS309において、CPU20は、新たな人物の「顔」として参照用データをフラッシュメモリ19に記録(登録)してステップS301へ戻る。具体的には、アシスト枠G内に対応する画像データに基づいてサムネイル画像データを生成し、上記画像データに基づいて特徴量データを生成する。そして、サムネイル画像データおよび特徴量データを含む参照用データをフラッシュメモリ19に記録する。これにより、笑顔判定人物設定画面(図2)における人物Bのように、参照用データが登録される。   In step S309, the CPU 20 records (registers) the reference data in the flash memory 19 as the “face” of the new person, and returns to step S301. Specifically, thumbnail image data is generated based on image data corresponding to the assist frame G, and feature amount data is generated based on the image data. Then, reference data including thumbnail image data and feature amount data is recorded in the flash memory 19. Thereby, the reference data is registered like the person B on the smile determination person setting screen (FIG. 2).

ステップS306において、CPU20は、LCDモニタ17にメッセージを表示させてステップS307へ進む。メッセージの内容は、たとえば、「既に登録されています」とする。   In step S306, the CPU 20 displays a message on the LCD monitor 17, and proceeds to step S307. The content of the message is, for example, “already registered”.

ステップS307において、CPU20は、追加記録(登録)のための実行操作が行われたか否かを判定する。CPU20は、OKスイッチ23hが押下操作された場合にステップS307を肯定判定してステップS308へ進む。CPU20は、OKスイッチ23hが押下操作されない場合にはステップS307を否定判定し、ステップS311へ進む。   In step S307, the CPU 20 determines whether or not an execution operation for additional recording (registration) has been performed. When the OK switch 23h is pressed, the CPU 20 makes a positive determination in step S307 and proceeds to step S308. If the OK switch 23h is not depressed, the CPU 20 makes a negative determination in step S307 and proceeds to step S311.

ステップS308において、CPU20は、登録済み人物の「顔」として参照用データをフラッシュメモリ19に追加記録(登録)してステップS301へ戻る。具体的には、アシスト枠G内に対応する画像のデータに基づいてサムネイル画像データを生成し、上記画像データに基づいて特徴量データを生成する。そして、サムネイル画像データおよび特徴量データを含む参照用データをフラッシュメモリ19に追加記録する。これにより、笑顔判定人物設定画面(図2)における人物Aおよび人物Cのように、同人物の「顔」として複数の参照用データが登録される。   In step S308, the CPU 20 additionally records (registers) the reference data in the flash memory 19 as the “face” of the registered person, and returns to step S301. Specifically, thumbnail image data is generated based on image data corresponding to the assist frame G, and feature amount data is generated based on the image data. Then, reference data including thumbnail image data and feature amount data is additionally recorded in the flash memory 19. As a result, a plurality of reference data are registered as “faces” of the person like the person A and the person C on the smile determination person setting screen (FIG. 2).

ステップS307を否定判定して進むステップS311において、CPU20は、参照用データの追加記録をキャンセルする操作が行われたか否かを判定する。CPU20は、追加記録をキャンセルさせる操作信号(たとえば、十字スイッチ23gの左方向への押下操作を示す信号)を受けた場合にステップS311を肯定判定してステップS301へ戻る。ステップS301へ戻る場合は、取得済みの画像データを無効にして新たな登録撮影に備える。   In step S311, which proceeds after making a negative determination in step S307, the CPU 20 determines whether or not an operation for canceling the additional recording of the reference data has been performed. When the CPU 20 receives an operation signal for canceling the additional recording (for example, a signal indicating a pressing operation of the cross switch 23g to the left), the CPU 20 makes a positive determination in step S311 and returns to step S301. When returning to step S301, the acquired image data is invalidated to prepare for a new registered image.

一方、CPU20は、追加記録をキャンセルさせる操作信号(たとえば、十字スイッチ23gの左方向への押下操作を示す信号)を受けない場合には、ステップS311を否定判定してステップS307へ戻る。ステップS307へ戻る場合は、追加記録(登録)のための実行操作、追加記録をキャンセルするための実行操作を待つ。   On the other hand, if the CPU 20 does not receive an operation signal for canceling the additional recording (for example, a signal indicating a pressing operation of the cross switch 23g in the left direction), the CPU 20 makes a negative determination in step S311 and returns to step S307. When returning to step S307, an execution operation for additional recording (registration) and an execution operation for canceling additional recording are awaited.

<参照用データの削除>
フラッシュメモリ19に記録(登録)された参照用データは、以下のように削除可能である。LCDモニタ17に笑顔判定人物設定画面(図2)を表示した状態で削除スイッチ23fが押下操作されると、CPU20は、カーソル173で示される人物に関する参照用データを削除対象とする。
<Delete reference data>
The reference data recorded (registered) in the flash memory 19 can be deleted as follows. When the delete switch 23f is pressed while the smile determination person setting screen (FIG. 2) is displayed on the LCD monitor 17, the CPU 20 sets the reference data related to the person indicated by the cursor 173 as a deletion target.

CPU20は、カーソル173で囲まれている人物Bについてサムネイル画像が1つの場合は、たとえば、「人物Bのデータを削除しますか?」というメッセージをLCDモニタ17に表示する。CPU20は、再度削除スイッチ23fが押下操作されると、表示中のサムネイル画像データ、および対応する特徴量データを含む参照用データをフラッシュメモリ19から消去する。これにより、笑顔判定人物設定画面(図2)から人物Bについての表示が削除される。   When there is one thumbnail image for the person B surrounded by the cursor 173, the CPU 20 displays a message “Do you want to delete the data of the person B?” On the LCD monitor 17, for example. When the delete switch 23 f is pressed again, the CPU 20 deletes the currently displayed thumbnail image data and the reference data including the corresponding feature amount data from the flash memory 19. Thereby, the display about the person B is deleted from the smile determination person setting screen (FIG. 2).

CPU20は、カーソル173で囲まれている人物Aについてサムネイル画像が2つ以上の場合は、たとえば、「全て削除」ボタンと「選択削除」ボタンとをLCDモニタ17に表示する。CPU20は、十字スイッチ23gからの操作信号に応じて「全て削除」ボタンおよび「選択削除」ボタンのうちいずれか一方のボタンを選択する。そして、「全て削除」ボタンを選択した状態で削除スイッチ23fが押下操作されると、たとえば、「人物Aのデータを全て削除しますか?」というメッセージをLCDモニタ17に表示する。CPU20は、再度削除スイッチ23fが押下操作されると、人物Aについて表示中のサムネイル画像データ、および対応する特徴量データを含む参照用データをフラッシュメモリ19から全て消去する。これにより、笑顔判定人物設定画面(図2)から人物Aについての表示が削除される。   When there are two or more thumbnail images for the person A surrounded by the cursor 173, the CPU 20 displays, for example, a “Delete All” button and a “Selection Delete” button on the LCD monitor 17. The CPU 20 selects one of the “delete all” button and the “selection delete” button in accordance with the operation signal from the cross switch 23g. Then, when the delete switch 23f is pressed with the “Delete All” button selected, for example, a message “Do you want to delete all the data of the person A?” Is displayed on the LCD monitor 17. When the delete switch 23f is pressed again, the CPU 20 erases all the thumbnail image data being displayed for the person A and the reference data including the corresponding feature amount data from the flash memory 19. Thereby, the display about the person A is deleted from the smile determination person setting screen (FIG. 2).

CPU20は、「選択削除」ボタンを選択した状態で削除スイッチ23fが押下操作されると、たとえば、「削除したいデータを選んで削除スイッチを押して下さい」というメッセージをLCDモニタ17に表示する。そして、十字スイッチ23gが左右方向に押下操作されると、操作信号に応じてサムネイル画像上のカーソルの表示位置を左右に移動させる。   When the delete switch 23f is pressed with the “select delete” button selected, the CPU 20 displays, for example, a message “Select data to be deleted and press the delete switch” on the LCD monitor 17. When the cross switch 23g is pressed in the left-right direction, the display position of the cursor on the thumbnail image is moved to the left or right according to the operation signal.

CPU20は、再度削除スイッチ23fが押下操作されると、その時点でカーソルが位置するサムネイル画像データ、および対応する特徴量データを含む参照用データをフラッシュメモリ19から消去する。これにより、笑顔判定人物設定画面(図2)における人物Aについての表示からサムネイル画像が個別に削除される。   When the delete switch 23f is pressed again, the CPU 20 deletes the thumbnail image data where the cursor is located at that time and the reference data including the corresponding feature amount data from the flash memory 19. As a result, the thumbnail images are individually deleted from the display of the person A on the smile determination person setting screen (FIG. 2).

以上説明した第一の実施形態によれば、次の作用効果が得られる。
(1)電子カメラ1は、撮影時に被写体人物の「顔」が笑顔に変わったことを判定した場合(ステップS125を肯定判定)に撮影処理(ステップS132)を行うようにしたので、その笑顔を撮影できる。
According to the first embodiment described above, the following operational effects can be obtained.
(1) Since the electronic camera 1 performs the photographing process (step S132) when it is determined that the “face” of the subject person has changed to a smile at the time of shooting (step S125 is affirmative determination), Can shoot.

(2)「顔」をあらかじめ電子カメラ1に登録しておき、画像中から検出した「顔」の中から登録されている「顔」を識別した上で、識別した「顔」についてのみ笑顔の判定対象とするようにした。これにより、電子カメラ1に登録していない「顔」を判定対象に含める場合に比べて、CPU20の処理の負担を軽くすることができる。つまり、スルー画像データのうち、判定対象とすべき「顔」の領域に対応するデータのみに基づいて笑顔を判定すればよい。さらに、たとえば撮影者と親しい人物の「顔」を登録しておけば、当該人物の顔が笑顔に変わったタイミングで撮影できる。 (2) A “face” is registered in the electronic camera 1 in advance, the registered “face” is identified from the “faces” detected in the image, and only the identified “face” is smiled. It was made to be a judgment target. Thereby, the processing load of the CPU 20 can be reduced as compared with the case where “face” that is not registered in the electronic camera 1 is included in the determination target. That is, the smile may be determined based only on the data corresponding to the “face” area to be determined in the through image data. Furthermore, for example, if a “face” of a person close to the photographer is registered, it is possible to shoot at the timing when the face of the person turns into a smile.

(3)電子カメラ1に登録した複数の「顔」の中から一部の「顔」を選択可能に構成し、画像中から検出した「顔」の中から選択されている「顔」を識別した上で、識別した「顔」についてのみ笑顔の判定対象とするようにした。これにより、電子カメラ1に登録している「顔」の全てを判定対象に含める場合に比べて、CPU20の処理の負担を軽くすることができる。つまり、スルー画像データのうち、選択された「顔」の領域に対応するデータのみに基づいて笑顔を判定すればよい。 (3) A part of “faces” registered in the electronic camera 1 can be selected, and “faces” selected from the “faces” detected in the image are identified. In addition, only the identified “face” is determined to be a smiling face. Thereby, compared with the case where all the “faces” registered in the electronic camera 1 are included in the determination target, the processing load of the CPU 20 can be reduced. That is, it is only necessary to determine a smile based on only the data corresponding to the selected “face” region in the through image data.

(4)上記(3)で識別した「顔」の全てについて笑顔を判定した場合に撮影処理(ステップS132)を行うようにしたので、識別した「顔」の人物全員の笑顔を撮影できる。 (4) Since the photographing process (step S132) is performed when smiles are determined for all the “faces” identified in (3) above, the smiles of all the identified “face” persons can be photographed.

(5)レリーズボタン23aからの操作信号に応じて直ちに撮影処理(ステップS109)を行えるようにしたので、笑顔判定を待つことなく撮影を行うこともできる。これにより、笑顔レリーズモードでありながら、急な撮影指示に応じた撮影が可能である。 (5) Since shooting processing (step S109) can be performed immediately in response to an operation signal from the release button 23a, shooting can be performed without waiting for smile determination. Thereby, it is possible to perform shooting according to a sudden shooting instruction while in the smile release mode.

(6)顔を検出した場合にLED25を点滅させたので、笑顔レリーズの準備ができていることを被写体人物に知らせることができる。そして、セルフタイマーの作動を知らせるためのLED25を共用したので、新たなLEDを設けなくてもよい。 (6) Since the LED 25 blinks when a face is detected, the subject person can be notified that the smile release is ready. And since LED25 for notifying operation | movement of a self-timer was shared, it is not necessary to provide new LED.

(7)笑顔の判定対象とする「顔」がスルー画像中に含まれていない場合は、上記(3)の代わりに、スルー画像に含まれる「顔」の全てを対象に笑顔判定するようにした。これにより、スルー画像に含まれる全ての「顔」を対等に扱って笑顔か否かを判定できる。 (7) When the “face” as a smile determination target is not included in the through image, the smile determination is performed for all “faces” included in the through image instead of the above (3). did. Accordingly, it is possible to determine whether or not the person is smiling by treating all “faces” included in the through image on an equal basis.

(8)上記(7)で判定対象とした「顔」の少なくとも1つが笑顔に変わったことを判定した場合に撮影処理(ステップS132)を行うようにしたので、全ての「顔」が笑顔に変わるまで待って撮影を行う場合に比べて、早く撮影を行うことができる。とくに、多人数の集合写真撮影の場合は有効である。 (8) The photographing process (step S132) is performed when it is determined that at least one of the “faces” to be determined in (7) has changed to a smile, so that all “faces” have a smile. It is possible to shoot faster than in the case of shooting after waiting for a change. This is particularly effective when taking a group photo with a large number of people.

(9)笑顔を判定した場合には、撮影処理(ステップS132)で取得した画像データに基づいて生成した画像ファイルに笑顔判定したことを示す笑顔情報を含めるようにした(ステップS133)。これにより、撮影後に、笑顔が含まれている画像ファイルを特定することが容易になる。笑顔情報は、撮影画像における笑顔の位置を示す情報、笑顔の人物を示す情報を含む。 (9) When a smile is determined, smile information indicating that a smile has been determined is included in the image file generated based on the image data acquired in the shooting process (step S132) (step S133). This makes it easy to specify an image file containing a smile after shooting. The smile information includes information indicating a position of a smile in the photographed image and information indicating a smiling person.

(10)判定した笑顔の度合いを示す笑顔レベルが1以上の場合、当該画像ファイルの名称を含む笑顔ファイルリスト情報を画像ファイルに関連付けて記憶媒体51へ記録するようにした(ステップS135)。これにより、撮影後に、所定レベル以上の笑顔を含む画像ファイルを特定することが容易になる。 (10) When the smile level indicating the determined smile level is 1 or more, smile file list information including the name of the image file is associated with the image file and recorded in the storage medium 51 (step S135). This makes it easy to specify an image file that contains a smile of a predetermined level or higher after shooting.

(11)電子カメラ1にあらかじめ登録する「顔」は、当該電子カメラ1で撮影するようにしたので、他のカメラで撮影する場合に比べて使い勝手がよい。また、当該電子カメラ1で撮影した「顔」を人物ごとに登録するようにしたので、誰の「顔」を登録したかについて管理しやすくなる。 (11) Since the “face” registered in advance in the electronic camera 1 is shot with the electronic camera 1, it is more convenient than shooting with other cameras. Further, since the “face” photographed by the electronic camera 1 is registered for each person, it becomes easy to manage who has registered the “face”.

(12)同じ人物として複数の「顔」を登録可能に構成し、複数の「顔」を登録しようとする場合にこの旨を知らせるようにした。これにより、誤って重複登録するおそれを低減できる。 (12) A plurality of “faces” can be registered as the same person, and this is notified when a plurality of “faces” are to be registered. This can reduce the risk of erroneous duplicate registration.

(13)「スリープタイマー」の設定が「30秒」に設定されている場合、および「1分」に設定されている場合には、通常の撮影モードから笑顔レリーズモードに切替えられると、「スリープタイマー」の設定をそれぞれ「5分」に自動変更するようにした。笑顔レリーズモードでは、電子カメラ1に自動的に撮影を行わせてセルフ撮影させる使用場面が想定される。この場合に、1分以内に撮像素子12の駆動が停止してしまうのは適切でない。スリープタイマーおよびLCDタイマーの計時時間をそれぞれリセット(ステップS101)してから、被写体人物が笑って笑顔判定(ステップS125を肯定判定)するまでに1分以上かかることがあり得るからである。本実施形態では、「スリープタイマー」の設定を「5分」に自動変更したことにより、笑顔レリーズモードにおける使い勝手を向上できる。 (13) When “Sleep Timer” is set to “30 seconds” and “1 minute”, when the mode is switched from the normal shooting mode to the smile release mode, The “Timer” setting is automatically changed to “5 minutes”. In the smile release mode, a usage scene is assumed in which the electronic camera 1 automatically performs shooting and performs self-shooting. In this case, it is not appropriate that the driving of the image sensor 12 stops within one minute. This is because it may take 1 minute or more from the resetting of the time measured by the sleep timer and the LCD timer (step S101) until the subject person laughs and makes a smile determination (positive determination at step S125). In the present embodiment, the user-friendliness in the smile release mode can be improved by automatically changing the setting of the “sleep timer” to “5 minutes”.

(変形例1)
上述した説明では、笑顔か否かの判定対象とする「顔」がスルー画像に含まれている場合は(ステップS117を肯定判定)、スルー画像に含まれる判定対象の「顔」の全てについて笑顔か否かを判定するようにした。この代わりに、1人の「顔」のみについて笑顔か否かを判定するようにしてもよい。これにより、CPU20の処理の負担を軽くすることができる。また、全ての「顔」が笑顔に変わるまで待って撮影を行う場合に比べて、早く撮影を行うことができる。1人の「顔」のみ判定する場合は、たとえば、画面の中央寄りの顔とする。
(Modification 1)
In the above description, when a “face” as a determination target of whether or not it is a smile is included in the through image (Yes in step S117), all the determination target “faces” included in the through image are smiling. Judgment whether or not. Instead, it may be determined whether only one “face” is smiling. Thereby, the processing burden of the CPU 20 can be reduced. In addition, it is possible to shoot faster than in the case where shooting is performed after all “faces” have changed to smiles. When determining only one “face”, for example, the face closer to the center of the screen is used.

(変形例2)
上述した説明では、笑顔か否かの判定対象とする「顔」がスルー画像に含まれていない場合は(ステップS117を否定判定)、当該スルー画像に含まれる「顔」の全てについて笑顔か否かを判定するようにした。この代わりに、1人の「顔」のみについて笑顔か否かを判定するようにしてもよい。これにより、CPU20の処理の負担を軽くすることができる。1人の「顔」のみ判定する場合は、たとえば、画面の中央寄りの顔とする。
(Modification 2)
In the above description, when the “face” that is the determination target of whether or not it is a smile is not included in the through image (No in step S117), whether or not all the “faces” included in the through image are smiling. Judgment was made. Instead, it may be determined whether only one “face” is smiling. Thereby, the processing burden of the CPU 20 can be reduced. When determining only one “face”, for example, the face closer to the center of the screen is used.

(変形例3)
以上の説明では、静止画撮影する場合を例に説明したが、動画撮影する場合にも本発明を適用してよい。動画撮影する場合は、笑顔か否かの判定対象とする「顔」が笑顔になった場合に記録(録画)を開始させる。録画の終了は、(A)録画開始後所定時間(たとえば5分)が経過したら終了する。あるいは、(B)録画開始後、笑顔か否かの判定対象とする「顔」が笑顔でなくなって所定時間(たとえば1分)が経過したら終了する。上記(A)および(B)は、切替え可能に構成してよい。
(Modification 3)
In the above description, the case of taking a still image has been described as an example, but the present invention may be applied to the case of taking a moving image. In the case of shooting a moving image, recording (recording) is started when the “face” as a determination target of whether or not it is a smile. The end of recording ends when (A) a predetermined time (for example, 5 minutes) elapses after the start of recording. Alternatively, (B) after the start of recording, the process ends when a predetermined time (for example, 1 minute) has elapsed since the “face” to be determined whether or not to smile is no longer a smile. The above (A) and (B) may be configured to be switchable.

(変形例4)
以上の説明では、顔を検出した場合にLED25を点滅して撮影者に報知したが、電子音声によって報知するようにしてもよい。あるいはLED25の点滅と電子音声の両方により報知するようにしてもよい。
(Modification 4)
In the above description, when the face is detected, the LED 25 blinks to notify the photographer. However, it may be notified by electronic voice. Or you may make it alert | report by both blinking of LED25 and electronic sound.

(変形例5)
撮影時に被写体人物の「顔」が笑顔に変わったことを判定した(ステップS125を肯定判定)ことに基づいて撮影処理(ステップS132)を行った場合にも、スリープタイマーの計時時間をリセットさせてもよい。電子カメラ1に自動的に撮影を行わせてセルフ撮影させる使用場面では、被写体人物が笑っている場合にはスリープタイマーの計時時間にかかわらず撮影を続けたいという要望も想定される。この場合に、たとえば5分で撮像素子12の駆動が停止してしまうのは適切でない。変形例5では、スリープタイマーによる計時時間を撮影処理(ステップS132)を行うごとにリセットすることにより、笑顔レリーズモードにおける使い勝手を向上できる。
(Modification 5)
Even when the shooting process (step S132) is performed based on the determination that the “face” of the subject person has changed to a smile during shooting (positive determination in step S125), the time count of the sleep timer is reset. Also good. In a use scene where the electronic camera 1 automatically performs photographing and self-photographing, there may be a desire to continue photographing regardless of the time measured by the sleep timer when the subject person is smiling. In this case, for example, it is not appropriate that the driving of the image sensor 12 stops in 5 minutes. In the fifth modification, the usability in the smile release mode can be improved by resetting the time measured by the sleep timer every time the photographing process (step S132) is performed.

(変形例6)
笑顔レベルを示す情報を、笑顔ファイルリスト情報として画像ファイルに関連付けた別ファイルとして記憶媒体51に記録する例を説明したが、撮影処理(ステップS132)で取得した画像データに基づいて生成した画像ファイルに笑顔レベルを示す情報を含めるようにしてもよい。この場合にも、撮影後に、所定レベル以上の笑顔を含む画像ファイルを特定することが容易である。
(Modification 6)
Although the example in which the information indicating the smile level is recorded in the storage medium 51 as a separate file associated with the image file as smile file list information has been described, the image file generated based on the image data acquired in the shooting process (step S132) May include information indicating a smile level. Also in this case, it is easy to specify an image file containing a smile of a predetermined level or higher after shooting.

(第二の実施形態)
上述した第一の実施形態による電子カメラ1によって記録された記憶媒体51内の画像ファイル内の画像データに基づいて、LCDモニタ17に画像を表示する場合について説明する。
(Second embodiment)
A case where an image is displayed on the LCD monitor 17 based on the image data in the image file in the storage medium 51 recorded by the electronic camera 1 according to the first embodiment described above will be described.

<笑顔再生処理>
電子カメラ1のCPU20は、笑顔レリーズモード時にモードスイッチ23dが押下操作されると、笑顔レリーズモードから笑顔再生モードへ切替える。以下、CPU20が笑顔再生モード時に実行する処理の流れについて、図13のフローチャートを参照して説明する。CPU20は、笑顔再生モードへ切替えた場合に図13の笑顔再生モード処理を行うためのプログラムを起動する。
<Smile playback processing>
When the mode switch 23d is pressed in the smile release mode, the CPU 20 of the electronic camera 1 switches from the smile release mode to the smile playback mode. Hereinafter, the flow of processing executed by the CPU 20 in the smile playback mode will be described with reference to the flowchart of FIG. CPU20 starts the program for performing smile reproduction mode process of FIG. 13, when it switches to smile reproduction mode.

図13のステップS201において、CPU20は、記憶媒体51に記録されている笑顔ファイルリスト情報を読み出してステップS202へ進む。ステップS202において、CPU20は、笑顔画像の一覧をLCDモニタ17に表示させてステップS203へ進む。具体的には、笑顔ファイルリスト情報に基づいて、記憶媒体51に記録されている画像ファイルのうち、笑顔(本実施形態の場合は笑顔レベルが1以上)を含む画像ファイルを特定し、特定した画像ファイルによるサムネイル画像を並べて表示する。   In step S201 in FIG. 13, the CPU 20 reads smile file list information recorded in the storage medium 51 and proceeds to step S202. In step S202, the CPU 20 displays a list of smile images on the LCD monitor 17, and proceeds to step S203. Specifically, based on the smile file list information, among the image files recorded in the storage medium 51, an image file containing a smile (in the present embodiment, the smile level is 1 or more) is identified and identified. Display thumbnail images from image files side by side.

図14は、笑顔画像の一覧表示を例示する図である。CPU20は、十字スイッチ23gが上下左右方向に押下操作されると、操作信号に応じてカーソル131の表示位置を上下左右に移動させる。カーソル131は、いずれか1つのサムネイル画像を囲む。   FIG. 14 is a diagram illustrating a list display of smile images. When the cross switch 23g is pressed down in the vertical and horizontal directions, the CPU 20 moves the display position of the cursor 131 in the vertical and horizontal directions according to the operation signal. The cursor 131 surrounds any one thumbnail image.

図13のステップS203において、CPU20はズームスイッチ(T)が操作されたか否かを判定する。CPU20は、ズームスイッチ23bが押下操作された場合、ステップS203を肯定判定してステップS204へ進む。CPU20は、ズームスイッチ23bが押下操作されない場合には、ステップS203を否定判定してステップS211へ進む。   In step S203 of FIG. 13, the CPU 20 determines whether or not the zoom switch (T) has been operated. When the zoom switch 23b is pressed down, the CPU 20 makes a positive determination in step S203 and proceeds to step S204. If the zoom switch 23b is not pressed, the CPU 20 makes a negative determination in step S203 and proceeds to step S211.

ステップS204において、CPU20は、カーソル131が位置する1コマの撮影画像をLCDモニタ17に表示させてステップS205へ進む。具体的には、カーソル131で囲まれているサムネイル画像と同じ画像ファイル内に記録されている画像データを読み出し、当該画像データに基づく画像を表示させる。図15は、1コマ表示を例示する図である。図15において、人物Aと人物Cの顔が含まれている。   In step S204, the CPU 20 causes the LCD monitor 17 to display a single frame image where the cursor 131 is positioned, and then proceeds to step S205. Specifically, the image data recorded in the same image file as the thumbnail image surrounded by the cursor 131 is read and an image based on the image data is displayed. FIG. 15 is a diagram illustrating a single frame display. In FIG. 15, the faces of person A and person C are included.

ステップS205において、CPU20はズームスイッチ(T)が操作されたか否かを判定する。CPU20は、ズームスイッチ23bが押下操作された場合、ステップS205を肯定判定してステップS206へ進む。CPU20は、ズームスイッチ23bが押下操作されない場合には、ステップS205を否定判定してステップS213へ進む。   In step S205, the CPU 20 determines whether or not the zoom switch (T) has been operated. When the zoom switch 23b is pressed, the CPU 20 makes a positive determination in step S205 and proceeds to step S206. If the zoom switch 23b is not pressed, the CPU 20 makes a negative determination in step S205 and proceeds to step S213.

ステップS213において、CPU20はズームスイッチ(W)が操作されたか否かを判定する。CPU20は、ズームスイッチ23cが押下操作された場合にステップS213を肯定判定してステップS202へ戻る。ステップS202へ戻ったCPU20は、1コマ表示から笑顔画像の一覧表示(図14)に戻す。一方CPU20は、ズームスイッチ23cが押下操作されない場合はステップS213を否定判定し、ステップS205へ戻る。ステップS205へ戻る場合は、上述した処理を繰り返す。   In step S213, the CPU 20 determines whether or not the zoom switch (W) has been operated. When the zoom switch 23c is pressed down, the CPU 20 makes a positive determination in step S213 and returns to step S202. The CPU 20 returning to step S202 returns from the single frame display to the smile image list display (FIG. 14). On the other hand, if the zoom switch 23c is not pressed, the CPU 20 makes a negative determination in step S213 and returns to step S205. When returning to step S205, the above-described processing is repeated.

ステップS206において、CPU20は笑顔座標の1つを選択してステップS207へ進む。具体的には、笑顔領域(笑顔を構成する画像データ)の所定位置(たとえば顔領域の中心座標)を拡大中心とする。笑顔の位置を示す情報は、笑顔情報に含まれている。ステップS207において、CPU20は、LCDモニタ17に表示中の画像のうち、拡大中心の周囲を引き延ばしてズームアップ表示(拡大表示)する。表示倍率は、たとえば、顔の表示サイズをLCDモニタ17の表示域の短辺の略1/3にする倍率とする。なお、ズームアップ表示する前の画像(元画像と呼ぶ)で顔領域の表示サイズがLCDモニタ17の表示域の短辺の1/3を超えている場合は、表示倍率を1.2倍とする。また、元画像で顔領域が画像の端部に位置する場合など、顔領域の中心座標を拡大中心にできない場合には、可能な範囲で拡大中心を顔領域の中心座標に寄せる。   In step S206, the CPU 20 selects one of the smile coordinates and proceeds to step S207. Specifically, a predetermined position (for example, the center coordinates of the face area) of the smile area (image data constituting the smile) is set as the enlargement center. Information indicating the position of the smile is included in the smile information. In step S207, the CPU 20 enlarges the periphery of the enlargement center of the image being displayed on the LCD monitor 17 and performs zoom-up display (enlarged display). The display magnification is, for example, a magnification that sets the face display size to approximately one third of the short side of the display area of the LCD monitor 17. When the display size of the face area in the image before zoom-up display (referred to as the original image) exceeds 1/3 of the short side of the display area of the LCD monitor 17, the display magnification is 1.2 times. To do. Further, when the center coordinate of the face area cannot be set as the enlargement center, such as when the face area is located at the end of the image in the original image, the enlargement center is moved to the center coordinate of the face area as much as possible.

図16は、ズームアップ表示後の表示画面を例示する図である。CPU20は、図15に例示した表示画像を元画像とし、元画像のファイルに人物Aと人物Cの笑顔情報が含まれていれば、元画像において上側に位置する人物Cの顔を先にズームアップ表示する。なお、元画像において上下方向の同位置に複数の顔が存在する場合には、左側に位置する人物の顔を先にズームアップ表示する。笑顔の人物を示す情報は、笑顔情報に含まれている。   FIG. 16 is a diagram illustrating a display screen after zoom-up display. If the display image illustrated in FIG. 15 is an original image and the smile information of the person A and the person C is included in the original image file, the CPU 20 first zooms in on the face of the person C positioned on the upper side in the original image. Display up. If there are a plurality of faces at the same position in the vertical direction in the original image, the face of the person positioned on the left side is zoomed up first. Information indicating a smiling person is included in the smile information.

図13のステップS208において、CPU20は、十字スイッチ23gが左右方向に押下操作されたか否かを判定する。CPU20は、十字スイッチ23gから左右方向の操作信号を受けた場合にステップS208を肯定判定してステップS209へ進む。CPU20は、十字スイッチ23gから左右方向の操作信号を受けない場合にはステップS208を否定判定してステップS214へ進む。   In step S208 of FIG. 13, the CPU 20 determines whether or not the cross switch 23g has been pressed in the left-right direction. When the CPU 20 receives a left / right operation signal from the cross switch 23g, the CPU 20 makes a positive determination in step S208 and proceeds to step S209. If the CPU 20 does not receive an operation signal in the left-right direction from the cross switch 23g, the CPU 20 makes a negative determination in step S208 and proceeds to step S214.

ステップS209において、CPU20は笑顔座標が複数あるか否かを判定する。CPU20は、LCDモニタ17に表示中のコマの画像ファイルに複数の笑顔が含まれている場合にステップS209を肯定判定してステップS210へ進む。CPU20は、LCDモニタ17に表示中のコマの画像ファイルに複数の笑顔が含まれていない場合にはステップS209を否定判定し、ステップS208へ戻る。   In step S209, the CPU 20 determines whether there are a plurality of smile coordinates. If the image file of the frame being displayed on the LCD monitor 17 includes a plurality of smiles, the CPU 20 makes a positive determination in step S209 and proceeds to step S210. If the image file of the frame being displayed on the LCD monitor 17 does not include a plurality of smiles, the CPU 20 makes a negative determination in step S209 and returns to step S208.

ステップS210において、CPU20は、十字スイッチ23gからの操作信号に応じて笑顔座標を選択してステップS207へ戻る。具体的には、十字スイッチ23gからの操作信号が示す方向に位置する他の顔領域(顔を構成する画像データ)の所定位置(たとえば顔領域の中心座標)を拡大中心とする。これにより、ステップS207へ戻ったCPU20は、新たな拡大中心の周囲を引き延ばしてズームアップ表示する。   In step S210, the CPU 20 selects smile coordinates according to the operation signal from the cross switch 23g, and returns to step S207. Specifically, a predetermined position (for example, the center coordinates of the face area) of another face area (image data constituting the face) located in the direction indicated by the operation signal from the cross switch 23g is set as the enlargement center. As a result, the CPU 20 that has returned to step S207 extends the periphery of the new enlargement center and zooms in on the display.

図17は、ズームアップ表示後の表示画面を例示する図である。表示倍率の決定は、上述した図16の場合と同様に行われる。   FIG. 17 is a diagram illustrating a display screen after zoom-up display. The display magnification is determined in the same manner as in FIG.

ステップS208を否定判定して進むステップS214において、CPU20はズームスイッチ(W)が操作されたか否かを判定する。CPU20は、ズームスイッチ23cが押下操作された場合にステップS214を肯定判定してステップS204へ戻る。ステップS204へ戻ったCPU20は、ズームアップ表示から1コマ表示(図15)に戻す。一方CPU20は、ズームスイッチ23cが押下操作されない場合はステップS214を否定判定し、ステップS208へ戻る。ステップS208へ戻る場合は、上述した処理を繰り返す。   In step S214, which proceeds after making a negative determination in step S208, the CPU 20 determines whether or not the zoom switch (W) has been operated. When the zoom switch 23c is pressed down, the CPU 20 makes a positive determination in step S214 and returns to step S204. The CPU 20 returning to step S204 returns from the zoom-up display to the single frame display (FIG. 15). On the other hand, if the zoom switch 23c is not pressed, the CPU 20 makes a negative determination in step S214 and returns to step S208. When returning to step S208, the above-described processing is repeated.

ステップS203を否定判定して進むステップS211において、CPU20は笑顔再生モードをキャンセルする操作が行われたか否かを判定する。CPU20は、笑顔再生処理を終了させる操作信号(たとえば、モードスイッチ23dからの操作信号)を受けた場合にステップS211を肯定判定してステップS212へ進む。ステップS212において、CPU20は、一覧表示を終了させて図13による処理を終了する。一方、CPU20は、笑顔再生処理を終了させる操作信号(たとえば、モードスイッチ23dからの操作信号)を受けない場合には、ステップS211を否定判定してステップS203へ戻る。   In step S211, which proceeds after making a negative determination in step S203, the CPU 20 determines whether or not an operation for canceling the smile reproduction mode has been performed. When the CPU 20 receives an operation signal (for example, an operation signal from the mode switch 23d) for ending the smile reproduction process, the CPU 20 makes a positive determination in step S211 and proceeds to step S212. In step S212, the CPU 20 ends the list display and ends the process of FIG. On the other hand, if the CPU 20 does not receive an operation signal for ending the smile reproduction process (for example, an operation signal from the mode switch 23d), the CPU 20 makes a negative determination in step S211 and returns to step S203.

以上説明した第二の実施形態によれば、次の作用効果が得られる。
(1)笑顔再生モード処理では、記憶媒体51に記録されている画像ファイルの中から、笑顔の度合いが所定レベル以上の笑顔を含む画像ファイルを特定し、特定した画像ファイルに記録されている撮影画像の一覧をLCDモニタ17に表示させるようにした。これにより、撮影者は、所定レベルの笑顔が含まれている撮影画像をまとめて確認することができる。
According to the second embodiment described above, the following operational effects can be obtained.
(1) In the smile playback mode process, an image file containing a smile whose smile level is equal to or higher than a predetermined level is identified from the image files recorded in the storage medium 51, and the shooting recorded in the identified image file is performed. A list of images is displayed on the LCD monitor 17. Thus, the photographer can collectively check the captured images including a predetermined level of smile.

(2)撮影画像の一覧をLCDモニタ17に表示中にズームスイッチ(T)が押下操作された場合、カーソル131で囲まれている表示画像をLCDモニタ17に1コマ表示するようにした(図15)。撮影者は、笑顔が含まれている撮影画像を1コマずつ確認することができる。 (2) When the zoom switch (T) is pressed while the list of captured images is displayed on the LCD monitor 17, the display image surrounded by the cursor 131 is displayed on the LCD monitor 17 as a single frame (see FIG. 15). The photographer can check the shot image including the smile one frame at a time.

(3)LCDモニタ17に1コマ表示中(図15)にズームスイッチ(T)が押下操作された場合、笑顔領域の中心座標を拡大中心として笑顔をズームアップ表示した。笑顔領域の中心座標は、撮影画像における笑顔の位置を示す情報として笑顔情報に含まれ、この笑顔情報は画像ファイルに含められている。笑顔がズームアップ画像の中央に位置するので、撮影者にとって笑顔の確認がしやすい。 (3) When the zoom switch (T) is pressed while one frame is displayed on the LCD monitor 17 (FIG. 15), the smile is zoomed up with the center coordinates of the smile area as the enlargement center. The center coordinates of the smile area are included in the smile information as information indicating the position of the smile in the captured image, and this smile information is included in the image file. Since the smile is positioned at the center of the zoomed-in image, it is easy for the photographer to check the smile.

(変形例7)
笑顔レベル1以上の笑顔を含む画像ファイルを読み出すようにしたが、笑顔レベル2以上の笑顔を含む画像ファイルを読み出すように構成してもよい。また、たとえば笑顔レベル1の笑顔を含む画像ファイルのみを読み出すように、笑顔レベル単位で読み出させるようにしてもよい。
(Modification 7)
Although an image file containing a smile with a smile level 1 or higher is read out, an image file containing a smile with a smile level 2 or higher may be read out. Further, for example, the image may be read in units of smile level so that only an image file including a smile of smile level 1 is read.

(変形例8)
ステップS202において笑顔を含む撮影画像の一覧をLCDモニタ17に表示させ(図14)、その後にズームスイッチ(T)23bが押下操作された場合に1コマ表示(図15)に表示切替えを行った。一覧表示する代わりに、常に1コマ表示するように構成してもよい。
(Modification 8)
In step S202, a list of photographed images including smiles is displayed on the LCD monitor 17 (FIG. 14), and then the display is switched to single frame display (FIG. 15) when the zoom switch (T) 23b is pressed. . Instead of displaying the list, it may be configured to always display one frame.

以上の説明はあくまで一例であり、上記の実施形態の構成に何ら限定されるものではない。電子カメラ1を例に説明したが、たとえば、携帯電話機やPDA(Personal Digital Assistants)、フォトビューワなどの電子機器にも本発明を適用できる。また、第二の実施形態において説明した記憶媒体51内の画像ファイルを表示するものは、上述した電子機器の他、コンピュータ装置で構成しても構わない。   The above description is merely an example, and is not limited to the configuration of the above embodiment. Although the electronic camera 1 has been described as an example, the present invention can also be applied to electronic devices such as mobile phones, PDAs (Personal Digital Assistants), and photo viewers. Moreover, what displays the image file in the storage medium 51 demonstrated in 2nd embodiment may be comprised with a computer apparatus other than the electronic device mentioned above.

本発明の第一の実施形態による電子カメラの構成例を説明するブロック図である。It is a block diagram explaining the structural example of the electronic camera by 1st embodiment of this invention. 電子カメラの背面図である。It is a rear view of an electronic camera. 操作メニュー画面を例示する図である。It is a figure which illustrates the operation menu screen. 笑顔レリーズモード時の撮影処理の流れを説明するフローチャートである。It is a flowchart explaining the flow of the imaging | photography process at the time of smile release mode. 笑顔レリーズモード時の撮影処理の流れを説明するフローチャートである。It is a flowchart explaining the flow of the imaging | photography process at the time of smile release mode. タイマーによる計時時間の設定手順について説明する図である。It is a figure explaining the setting procedure of the timekeeping time by a timer. タイマーによる計時時間の設定手順について説明する図である。It is a figure explaining the setting procedure of the timekeeping time by a timer. タイマーによる計時時間の設定手順について説明する図である。It is a figure explaining the setting procedure of the timekeeping time by a timer. 画像の表示例を説明する図である。It is a figure explaining the example of a display of an image. 画像の表示例を説明する図である。It is a figure explaining the example of a display of an image. 登録撮影処理の流れを説明するフローチャートである。It is a flowchart explaining the flow of a registration imaging | photography process. 画像の表示例を説明する図である。It is a figure explaining the example of a display of an image. 笑顔再生モード時の処理の流れについて説明するフローチャートである。It is a flowchart explaining the flow of a process at the time of smile reproduction mode. 笑顔画像の一覧表示を例示する図である。It is a figure which illustrates the list display of a smile image. 1コマ表示を例示する図である。It is a figure which illustrates one frame display. ズームアップ表示を例示する図である。It is a figure which illustrates zoom-up display. ズームアップ表示を例示する図である。It is a figure which illustrates zoom-up display.

符号の説明Explanation of symbols

1…電子カメラ
12…撮像素子
13…AFE回路
14…画像処理回路
15…スピーカ駆動回路
16…スピーカ
17…LCDモニタ
18…メモリ
19…フラッシュメモリ
20…CPU
21…メモリカードインターフェース
22…電源制御回路
23…操作部材
25…LED
51…記憶媒体
DESCRIPTION OF SYMBOLS 1 ... Electronic camera 12 ... Image pick-up element 13 ... AFE circuit 14 ... Image processing circuit 15 ... Speaker drive circuit 16 ... Speaker 17 ... LCD monitor 18 ... Memory 19 ... Flash memory 20 ... CPU
21 ... Memory card interface 22 ... Power supply control circuit 23 ... Operation member 25 ... LED
51. Storage medium

Claims (14)

被写体像を撮像し、画像データを出力する撮像手段と、
前記画像データに基づいて、前記撮像した画像に含まれる顔を検出する顔検出手段と、
識別すべき顔を複数設定する顔設定手段と、
前記顔検出手段で検出された顔の中から前記顔設定手段で設定された前記複数の顔を識別する顔識別手段と、
前記顔識別手段で顔が識別された場合には、前記顔識別手段で識別された前記複数の顔を笑顔判定対象とし、前記顔識別手段で顔が識別されなかった場合には、前記顔検出手段で検出された全ての顔を笑顔判定対象とする対象決定手段と、
前記対象決定手段で決定された笑顔判定対象の前記複数の顔が笑顔に変わったか否かを判定する変化判定手段と、
前記顔識別手段で顔が識別された場合には、前記変化判定手段で前記複数の顔が全て笑顔に変わったことが判定された場合に前記撮像手段が撮像して出力する画像データを記憶媒体に記録するように撮影制御し、前記顔識別手段で顔が識別されなかった場合には、前記全ての顔のうち少なくとも1つが笑顔に変わったことが前記変化判定手段で判定された場合に前記撮像手段が撮像して出力する画像データを前記記憶媒体に記録する撮影制御手段と、
撮影開始を指示するための操作部材と、を備え、
前記撮影制御手段は、前記操作部材からの操作信号を受けた場合、前記変化判定手段による笑顔変化判定にかかわらず前記撮像手段が撮像して出力する画像データを前記記憶媒体に記録することを特徴とするカメラ。
Imaging means for capturing a subject image and outputting image data;
Face detection means for detecting a face included in the captured image based on the image data;
A face setting means for setting a plurality of faces to be identified;
Face identifying means for identifying the plurality of faces set by the face setting means from the faces detected by the face detecting means;
When a face is identified by the face identifying means, the plurality of faces identified by the face identifying means are set as smile determination targets, and when a face is not identified by the face identifying means, the face Object determination means for making all faces detected by the detection means be smile determination targets ;
Change determination means for determining whether or not the plurality of faces of the smile determination target determined by the target determination means have changed to smiles ;
When the face is identified by the face identifying means, the image data output by the imaging means when the change determining means determines that all of the plurality of faces have changed to smiles is stored on the storage medium If the face is not identified by the face identifying means, and the change determining means determines that at least one of all the faces has changed to a smile Shooting control means for recording image data output by the imaging means on the storage medium; and
An operation member for instructing to start shooting,
The imaging control unit, when receiving an operation signal from the operation member, records the image data captured and output by the imaging unit in the storage medium regardless of smile change determination by the change determination unit. Camera.
請求項1に記載のカメラにおいて、
前記顔検出手段で顔が検出されていることを報知する報知手段を、さらに備えることを特徴とするカメラ。
The camera of claim 1,
A camera, further comprising notification means for notifying that a face is detected by the face detection means.
請求項1に記載のカメラにおいて、
前記変化判定手段による笑顔変化判定に基づいて撮影を行う第1撮影モード、および撮影開始を指示するための操作部材からの操作信号に基づいて撮影を行う第2撮影モードを含む、複数の撮影モード間で撮影モードの切替え設定を行う撮影モード設定手段と、
前記撮像手段に対する電力の供給および供給停止を制御する撮像電源制御手段と、
第1の時間を計時する第1計時手段と、
前記第1の時間より長い第2の時間を計時する第2計時手段と、
前記第2撮影モードにおいて、無操作時に前記第1計時手段によって前記第1の時間が計時されたことに基づいて、前記電力供給の停止を前記撮像電源制御手段へ指示する指示手段と、
前記第1の時間が所定時間より短い場合に前記モード設定手段によって前記第2撮影モードから前記第1撮影モードへ切替え設定されると、無操作時に前記第2計時手段によって前記第2の時間が計時されたことに基づいて、前記電力供給の停止を前記撮像電源制御手段へ指示するように前記指示手段を制御する制御手段と、を備えることを特徴とするカメラ。
The camera of claim 1,
A plurality of shooting modes including a first shooting mode for shooting based on smile change determination by the change determination means and a second shooting mode for shooting based on an operation signal from an operation member for instructing start of shooting. Shooting mode setting means for setting the shooting mode switching between,
Imaging power supply control means for controlling supply and stop of power supply to the imaging means;
First timing means for timing a first time;
Second time measuring means for measuring a second time longer than the first time;
Instructing means for instructing the imaging power supply control means to stop the power supply based on the fact that the first timekeeping means has timed the first timepiece during no operation in the second photographing mode;
When the first time is shorter than a predetermined time and the mode setting means switches from the second shooting mode to the first shooting mode, the second time counting means causes the second time to be not operated. And a control means for controlling the instruction means so as to instruct the imaging power supply control means to stop the power supply based on the measured time.
請求項3に記載のカメラにおいて、
表示手段と、
前記表示手段に対する電力の供給および供給停止を制御する表示電源制御手段と、
前記第2の時間より短い第3の時間を計時する第3計時手段と、
前記第2の時間以上の第4の時間を計時する第4計時手段と、
操作部材からの操作信号に応じて前記第3の計時手段または前記第4の計時手段を選択する選択手段と、
無操作時に、前記選択手段によって選択されている計時手段によって前記第3の時間または前記第4の時間が計時されたことに基づいて、前記電力供給の停止を前記表示電源制御手段へ指示する第2指示手段と、をさらに備えることを特徴とするカメラ。
The camera according to claim 3.
Display means;
Display power control means for controlling supply and stop of power supply to the display means;
Third time measuring means for measuring a third time shorter than the second time;
Fourth timing means for timing a fourth time equal to or greater than the second time;
Selecting means for selecting the third time measuring means or the fourth time measuring means in response to an operation signal from an operation member;
When no operation is performed, the display power supply control unit is instructed to stop the power supply based on the timing of the third time or the fourth time by the timing unit selected by the selection unit. A camera further comprising: 2 instruction means.
請求項1に記載のカメラにおいて、
前記撮影制御手段は、前記撮像手段が撮像して出力する静止画像データを前記記憶媒体に記録するように撮影制御することを特徴とするカメラ。
The camera of claim 1,
The camera according to claim 1, wherein the photographing control unit performs photographing control so that still image data captured and output by the imaging unit is recorded in the storage medium.
請求項1に記載のカメラにおいて、
前記変化判定手段で判定された笑顔の程度を判定する笑顔程度判定手段をさらに備え、
前記記録手段は、前記笑顔程度判定手段によって判定された笑顔の程度を示す情報を、前記画像データとともに画像ファイルに含めて、または前記画像データを含む画像ファイルに関連づけて、前記記憶媒体に記録することを特徴とするカメラ。
The camera of claim 1,
A smile degree judging means for judging the degree of smile determined by the change judging means;
The recording unit records the information indicating the smile level determined by the smile level determination unit in the image medium together with the image data or in association with the image file including the image data. A camera characterized by that.
請求項6に記載のカメラにおいて、
前記記憶媒体の記憶内容に基づいて、前記記憶媒体が記憶する画像ファイルから前記笑顔の程度が所定値以上である画像ファイルを特定する特定手段と、
前記特定された画像ファイルに含まれる画像データによる画像を表示装置に再生表示させる表示制御手段と、を備えることを特徴とするカメラ。
The camera according to claim 6 , wherein
Identifying means for identifying an image file in which the degree of smile is a predetermined value or more from the image file stored in the storage medium based on the storage content of the storage medium;
A camera comprising: display control means for reproducing and displaying an image based on image data contained in the specified image file on a display device.
請求項6に記載のカメラにおいて、
前記変化判定手段によって判定された笑顔の画像における位置情報を、前記画像データとともに画像ファイルに含めて、または前記画像データを含む画像ファイルに関連づけて、前記記憶媒体に記録する記録手段を、さらに備えることを特徴とするカメラ。
The camera according to claim 6 , wherein
The image processing apparatus further comprises recording means for recording the position information on the smile image determined by the change determination means in the image file together with the image data or in association with the image file including the image data. A camera characterized by that.
請求項8に記載のカメラにおいて、
前記記憶媒体の記憶内容に基づいて、前記記憶媒体が記憶する画像ファイルに含まれる画像データのうち、前記位置情報が示す画像データによる笑顔画像を表示装置に拡大表示させる表示制御手段を備えることを特徴とするカメラ。
The camera according to claim 8 , wherein
Based on the storage contents of the storage medium, a display control unit is provided for causing a display device to display a smiling image based on the image data indicated by the position information on the display device among image data included in an image file stored in the storage medium. Features a camera.
請求項1に記載のカメラにおいて、
前記顔設定手段が識別すべき顔を設定するための顔画像を前記撮像手段が出力する画像データに基づいて生成する顔画像生成手段と、
前記顔画像生成手段で生成された顔画像を人物ごとに登録する登録手段と、をさらに備え、
前記顔設定手段は、前記登録されている顔画像の中から識別すべき顔を設定することを特徴とするカメラ。
The camera of claim 1,
A face image generating means for generating a face image for setting a face to be identified by the face setting means based on image data output by the imaging means;
Registration means for registering the face image generated by the face image generation means for each person;
The camera according to claim 1, wherein the face setting means sets a face to be identified from the registered face images.
請求項10に記載のカメラにおいて、
前記登録手段に対して複数の顔画像を同一人物として登録する指示が行われたことを検出する指示検出手段と、
前記指示検出手段が前記検出をしたことを報知する報知手段と、を備えることを特徴とするカメラ。
The camera of claim 10 , wherein
Instruction detecting means for detecting that an instruction to register a plurality of face images as the same person has been given to the registration means;
An informing means for informing that the instruction detecting means has made the detection.
請求項1に記載のカメラにおいて、
前記撮影制御手段は、前記撮像手段が撮像して出力する動画像データを前記記憶媒体に記録するように撮影制御することを特徴とするカメラ。
The camera of claim 1,
The camera according to claim 1, wherein the shooting control unit controls shooting so that moving image data captured and output by the imaging unit is recorded in the storage medium.
画像を表示する表示手段と、
請求項6に記載のカメラによって記録された記憶媒体の記憶内容に基づいて、前記記憶媒体が記憶する画像ファイルから前記笑顔の程度が所定値以上である画像ファイルを特定する特定手段と、
前記特定された画像ファイルに含まれる画像データによる画像を前記表示手段に再生表示させる表示制御手段と、を備えることを特徴とする画像表示装置。
Display means for displaying an image;
Based on the storage content of the storage medium recorded by the camera according to claim 6 , a specifying unit that specifies an image file in which the degree of smile is a predetermined value or more from the image file stored in the storage medium;
An image display apparatus comprising: display control means for causing the display means to reproduce and display an image based on image data contained in the specified image file.
画像を表示する表示手段と、
請求項8に記載のカメラによって記録された記憶媒体の記憶内容に基づいて、前記記憶媒体が記憶する画像ファイルに含まれる画像データのうち、前記位置情報が示す画像データによる笑顔画像を表示装置に拡大表示させる表示制御手段と、を備えることを特徴とする画像表示装置。
Display means for displaying an image;
A smile image based on the image data indicated by the position information among the image data included in the image file stored in the storage medium is displayed on the display device based on the storage content of the storage medium recorded by the camera according to claim 8. An image display apparatus comprising: display control means for performing enlarged display.
JP2008016038A 2008-01-28 2008-01-28 Camera and image display device Expired - Fee Related JP5145974B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008016038A JP5145974B2 (en) 2008-01-28 2008-01-28 Camera and image display device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008016038A JP5145974B2 (en) 2008-01-28 2008-01-28 Camera and image display device

Publications (2)

Publication Number Publication Date
JP2009177678A JP2009177678A (en) 2009-08-06
JP5145974B2 true JP5145974B2 (en) 2013-02-20

Family

ID=41032268

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008016038A Expired - Fee Related JP5145974B2 (en) 2008-01-28 2008-01-28 Camera and image display device

Country Status (1)

Country Link
JP (1) JP5145974B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011061687A (en) * 2009-09-14 2011-03-24 Nikon Corp Digital camera

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0690355B2 (en) * 1986-01-14 1994-11-14 ミノルタ株式会社 Focus detection device
JP2002341233A (en) * 2001-05-17 2002-11-27 Nikon Corp Camera
JP2004046591A (en) * 2002-07-12 2004-02-12 Konica Minolta Holdings Inc Picture evaluation device
JP4626425B2 (en) * 2005-07-11 2011-02-09 富士フイルム株式会社 Imaging apparatus, imaging method, and imaging program
JP2007067560A (en) * 2005-08-29 2007-03-15 Canon Inc Imaging apparatus and its control method, computer program and recording medium
JP4605039B2 (en) * 2006-02-13 2011-01-05 日本電気株式会社 Automatic photographing method, automatic photographing apparatus and automatic photographing program
JP4788488B2 (en) * 2006-06-16 2011-10-05 ソニー株式会社 Image processing apparatus, image processing method, program for image processing method, and recording medium recording program for image processing method

Also Published As

Publication number Publication date
JP2009177678A (en) 2009-08-06

Similar Documents

Publication Publication Date Title
JP4720785B2 (en) Imaging apparatus, image reproducing apparatus, imaging method, and program
JP5004726B2 (en) Imaging apparatus, lens unit, and control method
WO2011102232A1 (en) Electronic apparatus, imaging device, image reproduction method, image reproduction program, recording medium that has recorded image reproduction program, and image reproduction device
JP2007232793A (en) Imaging apparatus
JP2008186287A (en) Image recording apparatus and image recording method
JP5322817B2 (en) 3D image pickup apparatus and 3D image display method
JP2009070374A (en) Electronic device
JP2009081530A (en) Imaging apparatus and imaging method
JP3952254B2 (en) Method and apparatus for generating focused sound
JP6180285B2 (en) Imaging apparatus, imaging method, and program
JP5145974B2 (en) Camera and image display device
JP6660236B2 (en) Image processing apparatus, image processing method, program, and storage medium
US20120287305A1 (en) Imaging device, reproduction device and image reproduction program
JP4533161B2 (en) Imaging apparatus and foreign object detection method thereof
JP2011172092A (en) Imaging apparatus, image reproducing method, image reproducing program, recording medium with image reproducing program recorded, and image reproducing apparatus
JP2009177680A (en) Camera
JP3913046B2 (en) Imaging device
JP2009044728A (en) Data recording device and camera
JP2009177679A (en) Camera
JP5109680B2 (en) Camera and image display device
JP2005278003A (en) Image processing apparatus
JP2015139018A (en) Electronic apparatus and control program
JP2012010358A (en) Three-dimensional imaging apparatus and three-dimensional image display method
JP5857787B2 (en) Display control device, imaging device, and display control program
JP2012239079A (en) Photographing device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20110126

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110323

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20120326

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20120403

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120601

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20120601

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20120717

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120912

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: 20121030

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20121112

R150 Certificate of patent or registration of utility model

Ref document number: 5145974

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20151207

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20151207

Year of fee payment: 3

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees