JP2012200023A - Electronic camera - Google Patents

Electronic camera Download PDF

Info

Publication number
JP2012200023A
JP2012200023A JP2012163118A JP2012163118A JP2012200023A JP 2012200023 A JP2012200023 A JP 2012200023A JP 2012163118 A JP2012163118 A JP 2012163118A JP 2012163118 A JP2012163118 A JP 2012163118A JP 2012200023 A JP2012200023 A JP 2012200023A
Authority
JP
Japan
Prior art keywords
face
image
cpu
data
face recognition
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.)
Granted
Application number
JP2012163118A
Other languages
Japanese (ja)
Other versions
JP5423851B2 (en
Inventor
Hirotake Nozaki
弘剛 野崎
Akira Omura
晃 大村
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 JP2012163118A priority Critical patent/JP5423851B2/en
Publication of JP2012200023A publication Critical patent/JP2012200023A/en
Application granted granted Critical
Publication of JP5423851B2 publication Critical patent/JP5423851B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

PROBLEM TO BE SOLVED: To facilitate photographing of a face in accordance with contents of a photographing mode.SOLUTION: An electronic camera is characterized by comprising: an imaging device which captures a subject image and generates an image signal; a face detection unit for detecting a face region on the basis of the image signal from the imaging device; setting means for setting a photographing mode; and setting means for setting detection accuracy of the face region in accordance with the photographing mode set by the above-mentioned setting means.

Description

本発明は、電子カメラに関する。   The present invention relates to an electronic camera.

従来から、人物の顔を撮影した撮影画像から人物の顔の特徴点を抽出し、認識する人物に関する顔認識データと上記の特徴点との一致度に基づいて顔認識を行う技術が開示されている(特許文献1参照)。かかる顔認識の技術では、予め電子カメラなどに顔認識データを登録する必要がある。特に顔認識の精度を向上させるためにはより多くの顔認識データが必要となるので、複数フレームの撮影画像から顔認識データを生成する必要がある。   Conventionally, a technique has been disclosed in which feature points of a person's face are extracted from a photographed image of the person's face, and face recognition is performed based on the degree of coincidence between face recognition data related to the person to be recognized and the above feature points. (See Patent Document 1). Such face recognition technology requires that face recognition data be registered in advance in an electronic camera or the like. In particular, in order to improve the accuracy of face recognition, more face recognition data is required, so it is necessary to generate face recognition data from a plurality of frames of captured images.

特開平6−259534号公報JP-A-6-259534

ところで、顔認識データを生成するための登録撮影では、顔の特徴点が抽出し易いように被写体の顔を撮影する必要がある。   By the way, in registered photographing for generating face recognition data, it is necessary to photograph the face of the subject so that facial feature points can be easily extracted.

本発明の一例である電子カメラは、被写体像を撮像し、画像信号を生成する撮像素子と、撮像素子からの画像信号に基づいて顔領域を検出する顔検出部と、撮影モードを設定する設定手段と、設定手段によって設定された撮影モードに応じて、顔領域の検出精度を設定する設定手段と、を備えたことを特徴とする。   An electronic camera that is an example of the present invention captures a subject image and generates an image signal, a face detection unit that detects a face area based on the image signal from the image sensor, and a setting for setting a shooting mode And setting means for setting the detection accuracy of the face area according to the shooting mode set by the setting means.

本発明の電子カメラでは、設定された撮影モードに応じて、顔領域の検出精度が設定される。   In the electronic camera of the present invention, the detection accuracy of the face area is set according to the set shooting mode.

第1実施形態の電子カメラの構成を示すブロック図The block diagram which shows the structure of the electronic camera of 1st Embodiment. 第1実施形態の「顔登録モード」での動作を示す流れ図Flow chart showing the operation in the “face registration mode” of the first embodiment モード選択画面の一例を示す図Figure showing an example of the mode selection screen 登録人物の選択画面の一例を示す図The figure which shows an example of the selection screen of a registered person 登録人物の詳細情報画面の一例を示す図The figure which shows an example of the detailed information screen of a registered person 顔検出時におけるプレビュー画像の表示例を示す図The figure which shows the example of a display of the preview image at the time of face detection 第1実施形態の「顔認識撮影モード」の動作を示す流れ図A flowchart showing the operation of the “face recognition photographing mode” of the first embodiment 第2実施形態の「顔登録モード」での動作を示す流れ図Flow chart showing the operation in the “face registration mode” of the second embodiment 第3実施形態の「顔登録モード」での動作を示す流れ図Flow chart showing the operation in the “face registration mode” of the third embodiment 第4実施形態の「顔登録モード」での動作を示す流れ図Flow chart showing the operation in the “face registration mode” of the fourth embodiment 第4実施形態におけるプレビュー画像の表示例を示す図The figure which shows the example of a display of the preview image in 4th Embodiment

<第1実施形態の説明>
図1は第1実施形態の電子カメラの構成を示すブロック図である。
<Description of First Embodiment>
FIG. 1 is a block diagram showing the configuration of the electronic camera of the first embodiment.

電子カメラは、撮影光学系11と、第1レンズ駆動部12と、揺動センサ部13と、像ぶれ補正レンズ14と、第2レンズ駆動部15と、撮像素子16と、アナログ信号処理部17と、A/D変換部18と、内蔵メモリ19と、画像処理部20と、カードI/F21と、入出力I/F22と、操作部材23および液晶モニタ24と、閃光発光部25と、CPU26と、顔登録メモリ27およびデータバス28とを有している。なお、内蔵メモリ19、画像処理部20、カードI/F21、入出力I/F22およびCPU26は、データバス28を介して接続されている。   The electronic camera includes a photographing optical system 11, a first lens driving unit 12, a swing sensor unit 13, an image blur correction lens 14, a second lens driving unit 15, an image sensor 16, and an analog signal processing unit 17. The A / D converter 18, the built-in memory 19, the image processor 20, the card I / F 21, the input / output I / F 22, the operation member 23 and the liquid crystal monitor 24, the flash light emitter 25, and the CPU 26. And a face registration memory 27 and a data bus 28. The internal memory 19, the image processing unit 20, the card I / F 21, the input / output I / F 22, and the CPU 26 are connected via a data bus 28.

撮影光学系11は、ズームレンズ11aと、合焦位置調節用のフォーカシングレンズ11bとを含む複数のレンズ群で構成されている。撮影光学系11を構成する各レンズは、第1レンズ駆動部12によって光軸方向に駆動調整される。   The photographing optical system 11 includes a plurality of lens groups including a zoom lens 11a and a focusing lens 11b for adjusting a focus position. Each lens constituting the photographing optical system 11 is driven and adjusted in the optical axis direction by the first lens driving unit 12.

揺動センサ部13は、電子カメラの縦揺れを検出する縦方向角速度センサと、電子カメラの横揺れを検出する横方向角速度センサとを備えている。揺動センサ部13は電子カメラの揺れを示すカメラ揺動データをCPU26に出力する。このカメラ揺動データは、像ぶれ補正レンズ14の移動量の演算に使用される。   The swing sensor unit 13 includes a vertical angular velocity sensor that detects the pitch of the electronic camera and a horizontal angular velocity sensor that detects the roll of the electronic camera. The swing sensor unit 13 outputs camera swing data indicating the swing of the electronic camera to the CPU 26. This camera swing data is used to calculate the amount of movement of the image blur correction lens 14.

像ぶれ補正レンズ14は光軸直角方向に揺動可能に構成されている。第2レンズ駆動部15は、像ぶれ補正レンズ14を縦方向に揺動させる縦揺動手段と、像ぶれ補正レンズ14を横方向に揺動させる横揺動手段とで構成される。この第2レンズ駆動部15は、CPU26が演算した像ぶれ補正レンズ14の移動量に基づいて、像ぶれ補正レンズ14を揺動させてぶれ補正を実行する。   The image blur correction lens 14 is configured to be swingable in the direction perpendicular to the optical axis. The second lens driving unit 15 includes a vertical swing unit that swings the image blur correction lens 14 in the vertical direction and a horizontal swing unit that swings the image blur correction lens 14 in the horizontal direction. The second lens driving unit 15 swings the image blur correction lens 14 based on the movement amount of the image blur correction lens 14 calculated by the CPU 26 and executes blur correction.

撮像素子16は、撮影光学系11を通過した光束を光電変換して被写体像のアナログ画像信号を生成する。この撮像素子16は、非レリーズ時(撮影待機時)にも所定間隔毎に被写体を露光し、間引き読み出しによるアナログ画像信号(スルー画像信号)を出力する。スルー画像信号は、後述のAF演算、AE演算および顔検出動作や、ファインダ用画像の生成などに使用される。   The image sensor 16 photoelectrically converts the light beam that has passed through the photographing optical system 11 to generate an analog image signal of the subject image. The image sensor 16 also exposes the subject at predetermined intervals even when the shutter is not released (during shooting standby), and outputs an analog image signal (through image signal) by thinning readout. The through image signal is used for AF calculation, AE calculation, face detection operation, and finder image generation, which will be described later.

アナログ信号処理部17は、相関二重サンプリングを行うCDS回路、アナログ画像信号の出力を増幅するゲイン回路、入力信号の波形を一定の電圧レベルにクランプするクランプ回路等で構成されている。A/D変換部18は撮像素子16のアナログ画像信号をデジタル画像信号に変換する。内蔵メモリ19は、画像処理部20での画像処理の前工程および後工程でデータを一時的に保存する。なお、内蔵メモリ19には後述の撮影画像データを記録可能な記録領域を設けることもできる。   The analog signal processing unit 17 includes a CDS circuit that performs correlated double sampling, a gain circuit that amplifies the output of the analog image signal, a clamp circuit that clamps the waveform of the input signal to a certain voltage level, and the like. The A / D converter 18 converts the analog image signal of the image sensor 16 into a digital image signal. The built-in memory 19 temporarily stores data in the pre-process and post-process of image processing in the image processing unit 20. The built-in memory 19 can be provided with a recording area in which captured image data described later can be recorded.

画像処理部20はデジタル画像信号に所定の画像処理を施す。この画像処理部20はレリーズ時の画像信号に基づいて撮影画像データを生成する。また、画像処理部20はスルー画像信号に基づいてスルー画像データを順次生成する。このスルー画像データの解像度は、撮影画像データの解像度よりも低く設定される。スルー画像データは、CPU26による顔認識処理に使用されるとともに、液晶モニタ24の表示画像(プレビュー画像)としても使用される。さらに、画像処理部20は撮影画像データの圧縮処理なども実行する。さらにまた、画像処理部20は、撮影画像の一部を切り出して解像度を変換する電子ズーム処理を行うことも可能である。   The image processing unit 20 performs predetermined image processing on the digital image signal. The image processing unit 20 generates captured image data based on the image signal at the time of release. Further, the image processing unit 20 sequentially generates through image data based on the through image signal. The resolution of the through image data is set lower than the resolution of the captured image data. The through image data is used for face recognition processing by the CPU 26 and also used as a display image (preview image) on the liquid crystal monitor 24. Furthermore, the image processing unit 20 also performs a process of compressing captured image data. Furthermore, the image processing unit 20 can also perform an electronic zoom process that cuts out a part of the captured image and converts the resolution.

また、画像処理部20は、CPU26の指示により各種表示(顔認識時の枠表示など)のビデオデータを生成し、上記のビデオデータをスルー画像データに重畳させて液晶モニタ24に出力する。これによって、プレビュー画像には上記の各種表示が合成される。   In addition, the image processing unit 20 generates video data for various displays (such as a frame display during face recognition) according to instructions from the CPU 26, superimposes the video data on the through image data, and outputs the video data to the liquid crystal monitor 24. As a result, the various displays described above are combined with the preview image.

カードI/F21には、記録媒体29を接続するためのコネクタが形成されている。記録媒体29は公知の半導体メモリなどで構成される。そして、カードI/F21は、記録媒体29に対する撮影画像データの書き込み/読み込みを制御する。   The card I / F 21 is formed with a connector for connecting the recording medium 29. The recording medium 29 is composed of a known semiconductor memory or the like. The card I / F 21 controls writing / reading of photographed image data with respect to the recording medium 29.

入出力I/F22には、操作部材23および液晶モニタ24が接続されている。操作部材23は入力釦やレリーズ釦などを備えている。操作部材23の入力釦は、例えば、電子カメラの撮影モード(通常撮影モード、再生モード、顔登録モード、顔認識撮影モード等)の切り換え入力などを受け付ける。また、操作部材23のレリーズ釦は、半押しによるAF動作の指示入力と、全押しによるレリーズ入力とを受け付ける。   An operation member 23 and a liquid crystal monitor 24 are connected to the input / output I / F 22. The operation member 23 includes an input button, a release button, and the like. The input button of the operation member 23 accepts, for example, a switching input of a photographing mode (normal photographing mode, reproduction mode, face registration mode, face recognition photographing mode, etc.) of the electronic camera. The release button of the operation member 23 accepts an AF operation instruction input by half pressing and a release input by full pressing.

一方、液晶モニタ24は主として電子カメラの背面部分に配置される。この液晶モニタ24には、撮影画像データの再生画像や電子カメラの各種設定を変更するための設定画面などが表示される。上記の設定画面には後述の顔認識データを編集するための編集画面が含まれる。また、撮影モードでの液晶モニタ24には上記のプレビュー画像を動画表示することが可能である。したがって、ユーザーは、液晶モニタ24のプレビュー画像を確認しつつ被写体のフレーミングを行うことができる。   On the other hand, the liquid crystal monitor 24 is mainly disposed on the back surface portion of the electronic camera. The liquid crystal monitor 24 displays a playback image of the captured image data, a setting screen for changing various settings of the electronic camera, and the like. The setting screen includes an editing screen for editing face recognition data described later. In addition, the preview image can be displayed as a moving image on the liquid crystal monitor 24 in the shooting mode. Therefore, the user can perform framing of the subject while confirming the preview image on the liquid crystal monitor 24.

さらに、入出力I/F22には外部接続端子が形成されている。そして、入出力I/F22は、外部接続端子を介して接続されたコンピュータなどとのデータ送受信をUSB(Universal Serial Bus)やIEEE1394などのシリアル通信規格に準拠して制御する。また、入出力I/F22の外部接続端子には、外部との無線通信を行うための拡張機器である通信ユニット30を接続することも可能である。   Furthermore, an external connection terminal is formed in the input / output I / F 22. The input / output I / F 22 controls data transmission / reception with a computer or the like connected via an external connection terminal in accordance with a serial communication standard such as USB (Universal Serial Bus) or IEEE1394. Further, it is possible to connect a communication unit 30 which is an expansion device for performing wireless communication with the outside to the external connection terminal of the input / output I / F 22.

閃光発光部25は、キセノン発光管、発光のエネルギを蓄えるメインコンデンサ、閃光を被写体に効率良く照射するための反射傘やレンズ部材、発光タイミングや光量を調整する発光制御回路などから構成されている。   The flash light emitting unit 25 includes a xenon arc tube, a main capacitor for storing light emission energy, a reflector and a lens member for efficiently irradiating the subject with flash light, a light emission control circuit for adjusting light emission timing and light quantity, and the like. .

CPU26は、不図示のROMに格納されたシーケンスプログラムに従って電子カメラの各部動作を制御する。例えば、CPU26はスルー画像信号に基づいて公知のコントラスト方式のAF(オートフォーカス)演算や、公知のAE(自動露出)演算などを実行する。また、CPU26は、上記のカメラ揺動データに基づいて像ぶれ補正レンズ14の移動量を演算する。   The CPU 26 controls the operation of each part of the electronic camera according to a sequence program stored in a ROM (not shown). For example, the CPU 26 executes a known contrast AF (autofocus) calculation or a known AE (automatic exposure) calculation based on the through image signal. Further, the CPU 26 calculates the movement amount of the image blur correction lens 14 based on the camera swing data.

さらに、CPU26は顔検出部31、顔認識部32として機能する。顔検出部31は、スルー画像データまたは撮影画像データから特徴点を抽出して被写体の顔領域、顔の大きさ等を検出する。例えば、顔検出部31は、特開2001−16573号公報などに記載された特徴点抽出処理によって顔領域を抽出する。また、上記の特徴点としては、例えば、眉、目、鼻、唇の各端点、顔の輪郭点、頭頂点や顎の下端点などが挙げられる。   Further, the CPU 26 functions as a face detection unit 31 and a face recognition unit 32. The face detection unit 31 extracts feature points from through image data or captured image data, and detects a face area, a face size, and the like of the subject. For example, the face detection unit 31 extracts a face region by a feature point extraction process described in Japanese Patent Laid-Open No. 2001-16573. Examples of the feature points include eyebrow, eye, nose, and lip end points, face contour points, head vertices, and chin lower end points.

顔認識部32は、「顔登録モード」では、検出した顔の特徴点に基づいて顔認識データを生成する。例えば、顔認識部32は、検出した顔の特徴点の位置、特徴点から求まる顔パーツの大きさ、各特徴点の相対距離などから登録人物の顔認識データを生成する。   In the “face registration mode”, the face recognition unit 32 generates face recognition data based on the detected feature points of the face. For example, the face recognizing unit 32 generates face recognition data of a registered person from the position of the detected feature point of the face, the size of the face part obtained from the feature point, the relative distance of each feature point, and the like.

また、顔認識部32は、「顔認識撮影モード」では、撮影画面内の人物の顔が顔認識データの登録人物の顔か否かを判定する顔認識処理を行う。具体的には、まず顔認識部32は検出された顔の特徴点に基づいて、撮影人物の顔の特徴点の位置、各顔パーツの大きさ、各特徴点の相対距離などを演算する。次に顔認識部32は、上記の演算結果と顔認識データとを比較して所定の登録人物の顔と撮影人物の顔との相似度を求める。そして、顔認識部32は上記の相似度が閾値を上回る場合に撮影人物が所定の登録人物に合致すると判定する。   Further, in the “face recognition shooting mode”, the face recognition unit 32 performs face recognition processing for determining whether or not a person's face in the shooting screen is a face of a registered person in the face recognition data. Specifically, the face recognition unit 32 first calculates the position of the feature point of the photographed person's face, the size of each face part, the relative distance of each feature point, and the like based on the detected feature points of the face. Next, the face recognition unit 32 compares the above calculation result with the face recognition data, and obtains the similarity between the face of the predetermined registered person and the face of the photographed person. Then, the face recognizing unit 32 determines that the photographed person matches a predetermined registered person when the similarity is greater than the threshold value.

なお、CPU26は、顔認識処理の結果に基づいて、撮影条件または画像処理の設定変更や、撮像素子16へのレリーズ指示などを実行することが可能である。   Note that the CPU 26 can execute a change in shooting conditions or image processing settings, a release instruction to the image sensor 16, and the like based on the result of the face recognition process.

顔登録メモリ27には、CPU26の顔認識部32が生成した顔認識データが記録される。この顔登録メモリ27には登録人物ごとにグループフォルダが生成されている。グループフォルダには、各登録人物の顔認識データがそれぞれ記録されている。すなわち、顔登録メモリ27の顔認識データは、グループフォルダによって登録人物ごとにグループ化されている。例えば、グループフォルダには、同一の登録人物に関して顔の向き、眼鏡の有無および撮影条件などが異なる複数の顔認識データを記録することが可能である。そして、登録人物を指定することで、CPU26はグループフォルダ内の顔認識データを顔登録メモリ27から一括して読み出すことが可能となっている。   In the face registration memory 27, face recognition data generated by the face recognition unit 32 of the CPU 26 is recorded. In the face registration memory 27, a group folder is generated for each registered person. In the group folder, face recognition data of each registered person is recorded. That is, the face recognition data in the face registration memory 27 is grouped for each registered person by the group folder. For example, in the group folder, a plurality of face recognition data with different face orientations, presence / absence of glasses, photographing conditions, and the like can be recorded for the same registered person. Then, by designating the registered person, the CPU 26 can collectively read the face recognition data in the group folder from the face registration memory 27.

また、顔登録メモリ27には、「登録人物の名称」および「顔認識時の処理設定」のデータが記録されている。上記の「登録人物の名称」および「顔認識時の処理設定」は、各登録人物のグループフォルダにそれぞれ対応付けされている。   The face registration memory 27 stores data of “name of registered person” and “processing setting for face recognition”. The “registered person name” and “processing setting at the time of face recognition” are associated with the group folder of each registered person.

ここで、「顔認識時の処理設定」には、登録人物が認識された場合に適用される電子カメラの各種制御の設定が記録されている。例えば、「顔認識時の処理設定」には、(1)撮影時の撮影条件の設定、(2)撮影画像データの画像処理の設定、(3)撮影画像データの記録先の設定、(4)撮影画像データの印刷指定の設定、(5)撮影画像データの送信設定、などが含まれる。   Here, in the “processing setting at the time of face recognition”, settings of various controls of the electronic camera that are applied when a registered person is recognized are recorded. For example, “processing setting for face recognition” includes (1) setting of shooting conditions at the time of shooting, (2) setting of image processing of shot image data, (3) setting of a recording destination of shot image data, (4 And (5) setting for transmission of photographed image data, and the like.

上記(1)の撮影条件の設定には、各登録人物を撮影するときの露出補正値や、被写界深度の設定(浅め、標準の選択)などが含まれる。また、登録人物の検出の際にCPU26が自動的に撮影を行う設定も可能である。上記(2)の画像処理の設定には、撮影画像データのソフトフォーカス処理の有無の設定、エッジ強調の抑制の設定などが含まれる。   The setting of the shooting condition in (1) includes an exposure correction value when shooting each registered person, setting of the depth of field (shallow, standard selection), and the like. It is also possible to set the CPU 26 to automatically take a picture when a registered person is detected. The image processing settings in (2) above include settings for presence / absence of soft focus processing of captured image data, settings for suppressing edge enhancement, and the like.

上記(3)の記録先の設定では、撮影画像データの記録先となる記録媒体29内の記録フォルダのディレクトリパスを各登録人物ごとに指定できる。すなわち、CPU26は顔登録メモリ27のデータを参照し、各登録人物ごとに異なる記録フォルダに撮影画像データを記録することが可能となる。   In the setting of the recording destination in (3) above, the directory path of the recording folder in the recording medium 29 that is the recording destination of the photographed image data can be designated for each registered person. That is, the CPU 26 can record the photographed image data in a different recording folder for each registered person by referring to the data in the face registration memory 27.

上記(4)の印刷指定の設定では、例えば、DPOF(Digital Print Order Format)などの規格による撮影画像データの印刷指定の有無を各登録人物ごとに指定できる。なお、上記(5)の送信設定では、登録人物の撮影時における撮影画像データの送信の要否と、送信先のアドレス情報(電子メールアドレス)とを指定できる。   In the print designation setting in (4) above, for example, it is possible to designate, for each registered person, whether or not to print photographed image data according to a standard such as DPOF (Digital Print Order Format). In the transmission setting in (5) above, it is possible to designate whether or not the captured image data needs to be transmitted when the registered person is photographed, and address information (e-mail address) of the transmission destination.

また、顔登録メモリ27には、「顔登録画像」、「顔認識データの登録時期」および「顔認識データの取得時の撮影条件」のデータが記録されている。上記の「顔登録画像」、「顔認識データの登録時期」および「顔認識データの取得時の撮影条件」のデータは、グループフォルダ内の個々の顔認識データにそれぞれ対応付けされている。   The face registration memory 27 stores data of “face registration image”, “face recognition data registration time”, and “shooting conditions at the time of face recognition data acquisition”. The above-mentioned “face registration image”, “face recognition data registration time”, and “imaging conditions when acquiring face recognition data” are associated with individual face recognition data in the group folder.

上記の「顔登録画像」は顔認識データ取得時の撮影画像データであって、所定の画素サイズにリサイズされている。そして、「顔登録画像」は上記の編集画面で液晶モニタ24に表示される。すなわち、「顔登録画像」は、登録人物または顔認識データの識別性、検索性を高めるインデックス画像として機能する。例えば、「顔登録画像」によって、ユーザーは誰のどのような画像(顔正面、横向きなど)から顔認識データが生成されたかを編集画面で確認することも可能となる。   The above “face registration image” is photographed image data at the time of face recognition data acquisition, and is resized to a predetermined pixel size. Then, the “face registration image” is displayed on the liquid crystal monitor 24 in the above editing screen. That is, the “face registration image” functions as an index image that enhances the identifiability and searchability of the registered person or face recognition data. For example, the “face registration image” allows the user to check on the editing screen which face recognition data has been generated from what kind of image (face front, landscape orientation, etc.).

「顔認識データの登録時期」は、その顔認識データの元となる顔登録画像データの撮影日時のデータである。また、「顔認識データの取得時の撮影条件」は、顔登録画像データの撮影条件のデータである。上記の撮影条件には、例えば、撮影光学系11の焦点距離のデータや、撮影時のホワイトバランスおよび露出条件や、撮影時のフラッシュ発光の有無などが含まれる。なお、「顔認識データの登録時期」および「顔認識データの取得時の撮影条件」のデータは、CPU26が顔認識処理で使用する顔認識データを絞り込む場合の判定にも使用される。   “Registration time of face recognition data” is data of photographing date and time of face registration image data that is the basis of the face recognition data. Further, “shooting conditions when acquiring face recognition data” is data of shooting conditions of face registration image data. The above photographing conditions include, for example, focal length data of the photographing optical system 11, white balance and exposure conditions at the time of photographing, presence / absence of flash emission at the time of photographing, and the like. Note that the data of “registration time of face recognition data” and “shooting conditions when acquiring face recognition data” are also used for determination when the CPU 26 narrows down the face recognition data used in the face recognition processing.

以下、第1実施形態の電子カメラの動作を「顔登録モード」と「顔認識撮影モード」とに分けて説明する。   Hereinafter, the operation of the electronic camera of the first embodiment will be described by dividing it into “face registration mode” and “face recognition photographing mode”.

(顔登録モードでの動作)
図2は第1実施形態の「顔登録モード」の動作を示す流れ図である。この「顔登録モード」は撮影モードの一種であって、ユーザーが登録人物の顔を撮影して顔認識データを生成するためのモードである。
(Operation in face registration mode)
FIG. 2 is a flowchart showing the operation of the “face registration mode” of the first embodiment. This “face registration mode” is a kind of shooting mode, in which the user captures the face of a registered person and generates face recognition data.

ステップ101:まず、ユーザーは操作部材23により電子カメラの撮影モードを「顔登録モード」に設定する。   Step 101: First, the user sets the photographing mode of the electronic camera to the “face registration mode” using the operation member 23.

例えば、電子カメラが「通常撮影モード」や「ポートレート撮影モード」に設定された状態において、ユーザーはモード選択画面を呼び出す操作を行う。これにより、CPU26はモード選択画面(図3(a)参照)を液晶モニタ24に表示する。そして、ユーザーは操作部材23でモード選択画面上の選択枠を操作し、CPU26に「顔登録モード」の起動を指示する。これにより、CPU26は「顔登録モード」の一連の動作を開始する。   For example, in a state where the electronic camera is set to “normal shooting mode” or “portrait shooting mode”, the user performs an operation for calling a mode selection screen. As a result, the CPU 26 displays a mode selection screen (see FIG. 3A) on the liquid crystal monitor 24. Then, the user operates the selection frame on the mode selection screen with the operation member 23 and instructs the CPU 26 to activate the “face registration mode”. Thereby, the CPU 26 starts a series of operations in the “face registration mode”.

ステップ102:CPU26は、液晶モニタ24に「顔登録モード」のメニューを表示する(図3(b)参照)。このメニューでは、ユーザーは操作部材23で選択枠を操作して「新規」または「追加」をCPU26に選択入力する。新たな人物の顔を登録する場合には、ユーザーは「新規」を選択入力する。一方、既に登録されている人物の顔をさらに撮影する場合には、ユーザーは「追加」を選択入力する。   Step 102: The CPU 26 displays a menu of “face registration mode” on the liquid crystal monitor 24 (see FIG. 3B). In this menu, the user operates the selection frame with the operation member 23 to select and input “new” or “add” to the CPU 26. When registering a new person's face, the user selects and inputs “new”. On the other hand, when further photographing a face of a person who has already been registered, the user selects and inputs “Add”.

ステップ103:CPU26は、メニュー(S102)で「新規」が選択されたか否かを判定する。「新規」の場合(YES側)にはS104に移行する。一方、「追加」の場合(NO側)にはS105に移行する。   Step 103: The CPU 26 determines whether or not “new” is selected in the menu (S102). In the case of “new” (YES side), the process proceeds to S104. On the other hand, in the case of “addition” (NO side), the process proceeds to S105.

ステップ104:S102で「新規」が選択された場合、CPU26は顔登録メモリ27に新規登録人物(今回撮影する登録人物)のグループフォルダを生成する。そして、CPU26は「登録人物の詳細情報画面」(図5参照)を液晶モニタ24に表示するとともに、ユーザーに「登録人物の名称」および「顔認識時の処理設定」の情報の入力を促す。図5の「登録人物の詳細情報画面」で入力された情報は、グループフォルダに対応付けされた状態で顔登録メモリ27に記録される。その後、S106に移行する。   Step 104: When “new” is selected in S102, the CPU 26 generates a group folder of newly registered persons (registered persons to be photographed this time) in the face registration memory 27. Then, the CPU 26 displays a “registered person detailed information screen” (see FIG. 5) on the liquid crystal monitor 24 and prompts the user to input information of “registered person name” and “processing setting for face recognition”. Information input on the “registered person detailed information screen” in FIG. 5 is recorded in the face registration memory 27 in a state of being associated with the group folder. Thereafter, the process proceeds to S106.

なお、ユーザーは「登録人物の名称」および「顔認識時の処理設定」の入力を省略することもできる。この場合には、ユーザーは、図3(b)の編集の項目から図5の「登録人物の詳細情報画面」を立ち上げて、これらの情報を後で改めて顔登録メモリ27に入力することができる。   Note that the user can omit the input of “name of registered person” and “processing setting for face recognition”. In this case, the user can start up the “registered person detailed information screen” of FIG. 5 from the editing item of FIG. 3B and later input the information to the face registration memory 27 again. it can.

ステップ105:一方、S102で「追加」が選択された場合、CPU26は登録人物の選択画面(図4参照)を液晶モニタ24に表示し、今回撮影する登録人物をユーザーに選択入力させる。   Step 105: On the other hand, if “add” is selected in S102, the CPU 26 displays a registered person selection screen (see FIG. 4) on the liquid crystal monitor 24, and allows the user to select and input the registered person to be photographed this time.

ステップ106:CPU26は、電子カメラの撮影時の設定を顔登録撮影に適した設定に変更する。具体的にはCPU26は以下の(1)〜(7)の設定を行う。   Step 106: The CPU 26 changes the setting at the time of shooting with the electronic camera to a setting suitable for face registration shooting. Specifically, the CPU 26 performs the following settings (1) to (7).

(1)CPU26は、「顔登録モード」においてAF方式を顔検出モードに設定する。この場合には、CPU26はレリーズ釦の操作に関係なく、スルー画像データによって検出した顔領域に合わせてピント合わせを自動的に繰り返す。これにより、検出した顔にピントを合わせることが可能となる。なお、ユーザーがレリーズ釦を半押しした場合にCPU26がAFロックを行うようにしてもよい。   (1) The CPU 26 sets the AF method to the face detection mode in the “face registration mode”. In this case, the CPU 26 automatically repeats focusing according to the face area detected by the through image data regardless of the operation of the release button. This makes it possible to focus on the detected face. Note that the CPU 26 may perform AF lock when the user half-presses the release button.

(2)CPU26は、「顔登録モード」においてAE方式を顔検出領域を基準とするスポットAEモードに設定する。この場合には、CPU26はスルー画像データによって検出した顔領域に合わせてAE演算を実行する。これにより、検出した顔の露出が最適化される。   (2) The CPU 26 sets the AE method to the spot AE mode based on the face detection area in the “face registration mode”. In this case, the CPU 26 executes an AE calculation in accordance with the face area detected by the through image data. Thereby, the exposure of the detected face is optimized.

(3)CPU26は、「顔登録モード」において画像処理部20の電子ズーム処理を不能化する。または、CPU26は、電子ズームの倍率を例えば2倍程度に制限する等の手段で、電子ズームの最大倍率を通常時よりも小さくなるように制限する。電子ズームを行った場合には撮影した顔登録画像の情報量が少なくなって、顔の特徴点の抽出精度が低下するからである。   (3) The CPU 26 disables the electronic zoom process of the image processing unit 20 in the “face registration mode”. Alternatively, the CPU 26 restricts the maximum magnification of the electronic zoom so as to be smaller than normal by means such as limiting the magnification of the electronic zoom to, for example, about 2. This is because when the electronic zoom is performed, the information amount of the captured face registration image is reduced, and the extraction accuracy of the facial feature points is lowered.

(4)CPU26は、「顔登録モード」においてズームレンズ11aの倍率調整範囲を通常撮影時よりも広角側に狭めて最大倍率を小さくする。顔検出時には、ズームレンズを広角側に設定して被写界深度を深くする方が顔検出できる可能性が増加するからである。また、ズームレンズを広角側に設定すれば、撮影画像が手ぶれする可能性も低下するからである。なお、この場合において、ズームレンズ11aの位置を広角端に固定すると被写界深度がより深くなるので特に好ましい。   (4) In the “face registration mode”, the CPU 26 reduces the maximum magnification by narrowing the magnification adjustment range of the zoom lens 11a to the wide-angle side compared to normal shooting. This is because, when the face is detected, the possibility that the face can be detected increases if the zoom lens is set to the wide angle side to increase the depth of field. Also, if the zoom lens is set to the wide angle side, the possibility that the captured image will be shaken is reduced. In this case, it is particularly preferable to fix the position of the zoom lens 11a at the wide angle end because the depth of field becomes deeper.

ところで、撮影光学系の絞り(不図示)を絞っても被写界深度は深くなるが、この場合にはシャッタ秒時に相当する撮影時間が長くなって顔登録画像が手ぶれする可能性が増加する。そのため、手ぶれを回避する観点から、CPU26は絞りをできるだけ開放側に設定することがより好ましい。なお、CPU26は、顔検出ができない場合に被写界深度を徐々に深くする制御を行ってもよい。   By the way, although the depth of field is deepened even if the aperture (not shown) of the imaging optical system is reduced, in this case, the imaging time corresponding to the shutter speed becomes longer and the possibility that the face registration image is shaken increases. . Therefore, from the viewpoint of avoiding camera shake, it is more preferable for the CPU 26 to set the aperture as open as possible. Note that the CPU 26 may perform control to gradually increase the depth of field when face detection cannot be performed.

(5)CPU26は、「顔登録モード」において、揺動センサ部13の出力に基づいて像ぶれ補正レンズ14を移動させて光学的なぶれ補正を行う。手ぶれによる顔登録画像の撮影失敗を回避するためである。   (5) In the “face registration mode”, the CPU 26 performs optical blur correction by moving the image blur correction lens 14 based on the output of the swing sensor unit 13. This is to avoid a failure in photographing the face registration image due to camera shake.

(6)CPU26は、「顔登録モード」において、アナログ信号処理部17における画像信号のゲイン設定(撮像感度の設定)を通常撮影時の設定よりも高くする。撮像感度が高くなると上記の撮影時間は短くなるので、顔登録画像が手ぶれする可能性も低下するからである。   (6) In the “face registration mode”, the CPU 26 increases the gain setting (imaging sensitivity setting) of the image signal in the analog signal processing unit 17 higher than the setting during normal shooting. This is because when the imaging sensitivity is increased, the above-described shooting time is shortened, and thus the possibility that the face registration image is shaken is also reduced.

(7)CPU26は、「顔登録モード」において、閃光発光部25の閃光発光を不能化する。撮影時に閃光発光を行うと撮影人物の顔に影ができて顔検出の精度が低下するからである。なお、被写界が暗く十分な露出が確保できない状態で強制的に撮影する場合や、閃光発光時の顔認識データを意図的に取得しようとする場合には、CPU26は閃光発光部25を例外的に発光させるようにしてもよい。   (7) The CPU 26 disables the flash emission of the flash emission unit 25 in the “face registration mode”. This is because if the flash light is emitted at the time of photographing, a shadow is formed on the face of the photographed person and the accuracy of face detection is lowered. Note that the CPU 26 uses the flash light emitting unit 25 as an exception when forcibly shooting in a state where the scene is dark and sufficient exposure cannot be secured, or when it is intended to acquire face recognition data during flash light emission. You may make it light-emit.

ステップ107:CPU26は、撮像素子16を駆動させてスルー画像信号の取得を行う。撮像素子16は所定間隔毎に間引き読み出しでスルー画像信号を出力する。画像処理部20はスルー画像信号に基づいてスルー画像データを生成する。そして、液晶モニタ24にはスルー画像データに基づいてプレビュー画像が動画表示される。   Step 107: The CPU 26 drives the image sensor 16 to acquire a through image signal. The image sensor 16 outputs a through image signal by thinning readout at predetermined intervals. The image processing unit 20 generates through image data based on the through image signal. A preview image is displayed as a moving image on the liquid crystal monitor 24 based on the through image data.

ステップ108:一方、CPU26の顔検出部31は、スルー画像データに公知の顔検出処理を施して撮影画面内の顔領域を検出する。   Step 108: On the other hand, the face detection unit 31 of the CPU 26 performs a known face detection process on the through image data to detect a face area in the shooting screen.

また、S108では、顔検出部31は顔領域の検出精度(顔の検出正解率)を規定する閾値を低くして、顔候補の検出率を通常よりも高めにするのがより好ましい。顔検出がしにくい顔の向き(例えば横向きなど)で顔登録画像を撮影しようとする場合もあるからである。   In S <b> 108, it is more preferable that the face detection unit 31 lowers the threshold value that defines the detection accuracy of the face area (face detection accuracy rate) to increase the detection rate of the face candidates higher than usual. This is because a face registration image may be taken in a face orientation (for example, landscape orientation) in which face detection is difficult.

なお、顔検出部31が撮影画面内で人物の顔を検出した場合、画像処理部20はプレビュー画像の顔領域の位置に矩形の枠を合成表示する(図6参照)。これにより、ユーザーはプレビュー画像で顔検出の有無を確認することができる。   When the face detection unit 31 detects a person's face in the shooting screen, the image processing unit 20 displays a rectangular frame at the position of the face area of the preview image (see FIG. 6). Thereby, the user can confirm the presence / absence of face detection in the preview image.

ステップ109:CPU26はS108で撮影画面から顔検出されたか否かを判定する。顔検出された場合(YES側)にはS110に移行する。一方、顔検出されていない場合(NO側)にはS107に戻る。   Step 109: The CPU 26 determines whether or not a face is detected from the shooting screen in S108. If a face is detected (YES side), the process proceeds to S110. On the other hand, if no face is detected (NO side), the process returns to S107.

ステップ110:CPU26は、顔領域における顔の特徴点の検出状態に基づいて顔の向きを推定する。そして、CPU26は推定した顔の向きが、予め指定された顔の向き(正面向き、横向きなど)と一致するか否かを判定する。顔の向きが所定方向である場合(YES側)にはS111に移行する。一方、顔の向きが所定方向以外である場合(NO側)にはS107に戻る。このとき、CPU26は「被写体の顔の向きを変えて撮影しなおして下さい」などの警告表示を液晶モニタ24等に表示させるようにしてもよい。   Step 110: The CPU 26 estimates the face orientation based on the detection state of the facial feature points in the face area. Then, the CPU 26 determines whether or not the estimated face orientation matches a face orientation (front orientation, landscape orientation, etc.) designated in advance. If the face orientation is the predetermined direction (YES side), the process proceeds to S111. On the other hand, if the face orientation is other than the predetermined direction (NO side), the process returns to S107. At this time, the CPU 26 may cause the liquid crystal monitor 24 or the like to display a warning display such as “Please change the face direction of the subject and take a picture again”.

ここで、S110での顔の向きの検出は公知の手段によって行われる。例えば、特開平9−163212号公報のように、CPU26が顔画像から顔の輪郭と鼻の座標とを検出して顔の向きを計算してもよい。あるいは特開2005−209137号公報のように、顔方向毎に顔画像を分類登録した画像データベースに基づいてCPU26が顔の向きを識別するようにしてもよい。   Here, the detection of the face orientation in S110 is performed by a known means. For example, as in JP-A-9-163212, the CPU 26 may detect the face outline and nose coordinates from the face image to calculate the face orientation. Alternatively, as in JP-A-2005-209137, the CPU 26 may identify the face orientation based on an image database in which face images are classified and registered for each face direction.

S110でのNO側の場合にはCPU26はレリーズを行わず、被写体の顔の向きが変わるまで撮影が行われることはない。したがって、所定の顔の向きの顔登録画像から顔認識データを生成することが可能となる。   In the case of NO in S110, the CPU 26 does not release, and no shooting is performed until the face direction of the subject changes. Therefore, face recognition data can be generated from a face registration image having a predetermined face orientation.

ステップ111:CPU26は、顔領域における顔の特徴点の検出状態に基づいて顔の表情を推定する。そして、CPU26は推定した顔の表情がニュートラルな状態(目つぶりなどをしていない標準状態)であるか否かを判定する。顔の表情がニュートラルである場合(YES側)にはS112に移行する。一方、顔の表情がニュートラルでない場合(NO側)にはS107に戻る。このとき、CPU26は「被写体の表情を変えて撮影しなおして下さい」などの警告表示を液晶モニタ24等に表示させるようにしてもよい。   Step 111: The CPU 26 estimates the facial expression based on the detection state of the facial feature points in the facial area. Then, the CPU 26 determines whether or not the estimated facial expression is in a neutral state (a standard state without blinking). When the facial expression is neutral (YES side), the process proceeds to S112. On the other hand, if the facial expression is not neutral (NO side), the process returns to S107. At this time, the CPU 26 may display a warning display such as “Please change the facial expression of the subject and take a picture again” on the liquid crystal monitor 24 or the like.

ここで、S111での顔の表情の検出は公知の手段によって行われる。例えば、特開2004−272933号公報のように、普通の表情 、目をつぶった顔 、口を開いた顔、笑顔などのクラスに分類された学習用顔画像を予め用意し、CPU26が正準判別分析による識別を行なった上で各クラスごとに設定された評価値で顔の表情を判別してもよい。あるいは、開いた目、閉じた目、開いた口、閉じた口などの標準パターンを予め用意し、CPU26が各パターンと顔領域とのマッチングをとり、パターンの組合せから表情を推定してもよい。   Here, the detection of the facial expression in S111 is performed by a known means. For example, as disclosed in Japanese Patent Application Laid-Open No. 2004-272933, learning face images classified into classes such as a normal expression, a face with closed eyes, a face with open mouth, and a smile are prepared in advance, and the CPU 26 canonically. After performing discrimination by discriminant analysis, facial expressions may be discriminated based on evaluation values set for each class. Alternatively, standard patterns such as open eyes, closed eyes, open mouths, closed mouths, etc., may be prepared in advance, and the CPU 26 may match each pattern with the face area and estimate the facial expression from the combination of patterns. .

S111でのNO側の場合にはCPU26はレリーズを行わず、被写体の顔の表情が変わるまで撮影が行われることはない。したがって、顔の表情がニュートラルな状態の顔登録画像をより確実に取得できる。笑顔や目をつぶった状態の画像から顔認識データを生成すると顔認識の精度が大きく低下する可能性もあるため、表情がニュートラルな顔登録画像は顔認識に最も適した画像であると考えられるからである。   In the case of NO at S111, the CPU 26 does not release, and no image is taken until the facial expression of the subject changes. Therefore, the face registration image in which the facial expression is neutral can be acquired more reliably. If face recognition data is generated from an image with a smile or closed eyes, the accuracy of face recognition may be greatly reduced, so a face registration image with a neutral expression is considered to be the most suitable image for face recognition. Because.

なお、CPU26は、上記のS110およびS111の処理をユーザーの設定に応じて省略することも可能である。   Note that the CPU 26 may omit the processes of S110 and S111 according to user settings.

ステップ112:CPU26は、検出した顔領域の位置を基準としてAF演算およびAE演算を実行する。   Step 112: The CPU 26 performs an AF calculation and an AE calculation based on the detected position of the face area.

ステップ113:CPU26はレリーズ釦が全押しされたか否かを判定する。レリーズ釦が全押しされた場合(YES側)にはS114に移行する。一方、レリーズ釦に入力がない場合(NO側)にはCPU26はレリーズ釦の全押し操作を待機する。   Step 113: The CPU 26 determines whether or not the release button has been fully pressed. When the release button is fully pressed (YES side), the process proceeds to S114. On the other hand, when there is no input to the release button (NO side), the CPU 26 waits for a full pressing operation of the release button.

ステップ114:CPU26は撮像素子16を駆動させて被写体像を撮影する。その後、画像処理部20はレリーズ時の画像信号に基づいて撮影画像データ(顔登録画像データ)を生成する。   Step 114: The CPU 26 drives the image sensor 16 to take a subject image. Thereafter, the image processing unit 20 generates photographed image data (face registration image data) based on the image signal at the time of release.

ステップ115:CPU26の顔認識部32は、顔登録画像データ(S114)から登録人物の顔認識データを生成する。また、画像処理部20は、顔登録画像データの顔領域をトリミングするとともに、解像度変換で所定のサイズにリサイズしてインデックス画像データを生成する。   Step 115: The face recognition unit 32 of the CPU 26 generates registered person face recognition data from the face registration image data (S114). Further, the image processing unit 20 trims the face area of the face registration image data and resizes the face area to a predetermined size by resolution conversion to generate index image data.

ステップ116:CPU26は、顔認識データ、インデックス画像データ、顔登録画像データの撮影条件および撮影日時を顔登録メモリ27に記録する。上記の各データはそれぞれ対応付けされた状態で、S104またはS105で指定された登録人物のグループフォルダに記録される。上記の各データのうち、インデックス画像データは「顔登録画像」に対応する。また、撮影条件は「顔認識データの登録時期」に対応し、撮影条件は「顔認識データの取得時の撮影条件」に対応する。   Step 116: The CPU 26 records the photographing conditions and photographing date / time of the face recognition data, the index image data, and the face registration image data in the face registration memory 27. Each of the above data is recorded in the group folder of the registered person specified in S104 or S105 in a state of being associated with each other. Among the above data, the index image data corresponds to “face registration image”. The shooting condition corresponds to “registration time of face recognition data”, and the shooting condition corresponds to “shooting condition when acquiring face recognition data”.

以上で、「顔登録モード」での一連の動作が終了する。なお、CPU26は、S116の後にS107に戻って登録人物の顔認識データの登録をさらに続行するようにしてもよい。   Thus, a series of operations in the “face registration mode” is completed. Note that the CPU 26 may return to S107 after S116 to further continue registration of the registered person's face recognition data.

以下、第1実施形態の「顔登録モード」の効果を説明する。上記の顔登録撮影では、撮影時の設定が顔登録に適した設定が変更されるとともに、顔領域の検出位置を基準としてAF演算およびAE演算が行われる(S106、S112)。そして、人物の顔を撮影した顔登録画像データに基づいて顔認識データが生成される(S114、S115)。そのため、ユーザーは登録したい人物に電子カメラを向けてレリーズするだけで、適正に撮影された顔登録画像に基づく顔認識データを容易に取得できる。   Hereinafter, the effect of the “face registration mode” of the first embodiment will be described. In the face registration shooting described above, settings suitable for face registration are changed as shooting settings, and AF calculation and AE calculation are performed based on the detection position of the face area (S106, S112). Then, face recognition data is generated based on face registration image data obtained by photographing a person's face (S114, S115). Therefore, the user can easily acquire face recognition data based on a properly registered face registration image by simply pointing the electronic camera at the person to be registered and releasing the image.

(顔認識撮影モードでの動作)
図7は第1実施形態の「顔認識撮影モード」の動作を示す流れ図である。この「顔認識撮影モード」は、指定した登録人物が撮影画面に存在する場合に、電子カメラが所定の制御を行って撮影画像データを取得する撮影モードである。
(Operation in face recognition shooting mode)
FIG. 7 is a flowchart showing the operation of the “face recognition photographing mode” of the first embodiment. This “face recognition shooting mode” is a shooting mode in which, when a designated registered person exists on the shooting screen, the electronic camera performs predetermined control to acquire shot image data.

ステップ201:まず、ユーザーは操作部材23により電子カメラの撮影モードを「顔認識撮影モード」に設定する。   Step 201: First, the user sets the photographing mode of the electronic camera to the “face recognition photographing mode” using the operation member 23.

例えば、電子カメラが「通常撮影モード」や「ポートレート撮影モード」に設定された状態において、ユーザーはモード選択画面を呼び出す操作を行う。これにより、CPU26はモード選択画面(図3(a)参照)を液晶モニタ24に表示する。そして、ユーザーは操作部材23でモード選択画面上の選択枠を操作し、CPU26に「顔認識撮影モード」の起動を指示する。これにより、CPU26は「顔認識撮影モード」の一連の動作を開始する。   For example, in a state where the electronic camera is set to “normal shooting mode” or “portrait shooting mode”, the user performs an operation for calling a mode selection screen. As a result, the CPU 26 displays a mode selection screen (see FIG. 3A) on the liquid crystal monitor 24. Then, the user operates the selection frame on the mode selection screen with the operation member 23 and instructs the CPU 26 to activate the “face recognition photographing mode”. Thereby, the CPU 26 starts a series of operations in the “face recognition photographing mode”.

ステップ202:CPU26は、登録人物の選択画面(図4参照)を液晶モニタ24に表示する。そして、CPU26は、顔認識対象の登録人物(撮影時に顔認識を行う登録人物)の指定入力を受け付ける。なお、顔認識対象の登録人物を撮影前に予めユーザーがCPU26に指定入力しておくことも可能である。   Step 202: The CPU 26 displays a registered person selection screen (see FIG. 4) on the liquid crystal monitor 24. Then, the CPU 26 receives a designation input of a registered person to be face recognized (a registered person who performs face recognition at the time of shooting). It is also possible for the user to designate and input a registered person for face recognition into the CPU 26 in advance before photographing.

ここで、「登録人物の選択画面」では、CPU26は1または2以上の登録人物の指定を受け付けることができる。例えば、CPU26は顔登録メモリ27の登録人物の全指定を受け付けることもできる。また、グループフォルダを所定のカテゴリ(例えば、家族、サークルなど)で予めリンクするとともに、ユーザーが選択画面でカテゴリを指定入力することで、CPU26にリンクされた登録人物の一括指定を入力することもできる。   Here, in the “registered person selection screen”, the CPU 26 can accept designation of one or more registered persons. For example, the CPU 26 can accept all designations of registered persons in the face registration memory 27. In addition, the group folder may be linked in advance with a predetermined category (for example, family, circle, etc.), and the user may input a batch designation of registered persons linked to the CPU 26 by designating and inputting the category on the selection screen. it can.

ステップ203:CPU26は、撮像素子16を駆動させてスルー画像信号の取得を行う。撮像素子16は所定間隔毎に間引き読み出しでスルー画像信号を出力する。画像処理部20はスルー画像信号に基づいてスルー画像データを生成する。そして、液晶モニタ24にはスルー画像データに基づいてプレビュー画像が動画表示される。   Step 203: The CPU 26 drives the image sensor 16 to acquire a through image signal. The image sensor 16 outputs a through image signal by thinning readout at predetermined intervals. The image processing unit 20 generates through image data based on the through image signal. A preview image is displayed as a moving image on the liquid crystal monitor 24 based on the through image data.

ステップ204:一方、CPU26の顔検出部31は、スルー画像データに公知の顔検出処理を施して撮影画面内の顔領域を検出する。   Step 204: On the other hand, the face detection unit 31 of the CPU 26 performs a known face detection process on the through image data to detect a face area in the shooting screen.

ステップ205:CPU26はS204で撮影画面から顔検出されたか否かを判定する。顔検出された場合(YES側)にはS206に移行する。一方、顔検出されていない場合(NO側)にはS209に移行する。   Step 205: The CPU 26 determines whether or not a face is detected from the shooting screen in S204. If a face is detected (YES side), the process proceeds to S206. On the other hand, if the face is not detected (NO side), the process proceeds to S209.

ステップ206:CPU26は、検出した顔領域の位置を基準としてAF演算を実行する。なお、顔領域を複数検出した場合には、CPU26は、撮影画面の中央に位置する顔領域または最も至近側に位置する顔領域を優先してAF演算を実行する。   Step 206: The CPU 26 performs AF calculation with reference to the detected position of the face area. If a plurality of face areas are detected, the CPU 26 prioritizes the face area located at the center of the shooting screen or the face area located closest to the shooting screen, and executes the AF calculation.

ステップ207:CPU26の顔認識部32は、検出した顔領域(S204)に対して顔認識処理を実行する。そして、顔認識部32は、認識対象の顔(S202)が含まれているか否かを判定する。認識対象の顔が含まれている場合(YES側)にはS208に移行する。一方、認識対象の顔が含まれない場合(NO側)にはS210に移行する。   Step 207: The face recognition unit 32 of the CPU 26 executes face recognition processing on the detected face area (S204). Then, the face recognition unit 32 determines whether or not the recognition target face (S202) is included. If the face to be recognized is included (YES side), the process proceeds to S208. On the other hand, if the face to be recognized is not included (NO side), the process proceeds to S210.

ステップ208:CPU26は、検出された登録人物に対応する「顔認識時の処理設定」のデータに基づいて、電子カメラの撮影条件の設定や画像処理の設定などを変更する。その後、S210に移行する。   Step 208: The CPU 26 changes the setting of the photographing condition of the electronic camera and the setting of the image processing based on the data of “processing setting at the time of face recognition” corresponding to the detected registered person. Thereafter, the process proceeds to S210.

ここで、認識対象の顔が撮影画面内に複数検出されている場合には、CPU26は所定のアルゴリズムで登録人物の優先順位を決定する。そして、CPU26は、優先順位が最も高い登録人物に対応する「顔認識時の処理設定」に基づいて電子カメラの各種設定を変更する。なお、「顔認識時の処理設定」で登録人物の自動撮影が設定されている場合には、CPU26はS211に移行して登録人物を自動的に撮影する。   Here, when a plurality of faces to be recognized are detected in the shooting screen, the CPU 26 determines the priority order of the registered person using a predetermined algorithm. Then, the CPU 26 changes various settings of the electronic camera based on the “processing setting for face recognition” corresponding to the registered person with the highest priority. Note that if the automatic shooting of the registered person is set in the “processing setting for face recognition”, the CPU 26 proceeds to S211 and automatically images the registered person.

ステップ209:一方、この場合には、CPU26はユーザーによるレリーズ釦の半押し操作に応じて、通常撮影時のアルゴリズムでAFエリアを選択してAF演算を実行する。   Step 209: On the other hand, in this case, the CPU 26 selects the AF area by the algorithm at the time of normal shooting and executes the AF calculation in response to the half-press operation of the release button by the user.

ステップ210:CPU26はレリーズ釦が全押しされたか否かを判定する。レリーズ釦が全押しされた場合(YES側)にはS211に移行する。一方、レリーズ釦に入力がない場合(NO側)にはCPU26はレリーズ釦の全押し操作を待機する。   Step 210: The CPU 26 determines whether or not the release button has been fully pressed. When the release button is fully pressed (YES side), the process proceeds to S211. On the other hand, when there is no input to the release button (NO side), the CPU 26 waits for a full pressing operation of the release button.

ステップ211:CPU26は撮像素子16を駆動させて被写体像を撮影する。その後、画像処理部20はレリーズ時の画像信号に基づいて撮影画像データを生成する。なお、認識対象の顔が撮影されている場合には、画像処理部20はS208で設定された画像処理を撮影画像データに施す。   Step 211: The CPU 26 drives the image sensor 16 to capture a subject image. Thereafter, the image processing unit 20 generates captured image data based on the image signal at the time of release. Note that when the face to be recognized is photographed, the image processing unit 20 performs the image processing set in S208 on the photographed image data.

ステップ212:CPU26は撮影画像データを記録媒体29に記録する。なお、認識対象の顔が撮影されている場合、CPU26は顔登録メモリ27で指定されているディレクトリパスに基づいて、所定の記録フォルダに撮影画像データを分類して記録することもできる。以上で、「顔認識撮影モード」での一連の動作が終了する。   Step 212: The CPU 26 records the photographed image data on the recording medium 29. When the face to be recognized is photographed, the CPU 26 can also classify and record the photographed image data in a predetermined recording folder based on the directory path specified in the face registration memory 27. Thus, a series of operations in the “face recognition photographing mode” is completed.

以下、本実施形態の「顔認識撮影モード」の効果を説明する。上記の顔認識撮影モードでは、顔認識データに基づいて撮影人物の顔認識が行われる(S207)。そして、認識対象の顔が検出された場合には、その登録人物に対応する設定で撮影時の各種処理などが行われる(S208、S211、S212)。そのため、登録人物の撮影時にユーザーの意図を反映させた処理を自動的に行うことができ、電子カメラを操作するユーザーの利便性が著しく向上する。   Hereinafter, the effect of the “face recognition photographing mode” of the present embodiment will be described. In the face recognition shooting mode, face recognition of the photographed person is performed based on the face recognition data (S207). When a face to be recognized is detected, various processes at the time of shooting are performed with settings corresponding to the registered person (S208, S211 and S212). Therefore, the process reflecting the user's intention can be automatically performed when the registered person is photographed, and the convenience of the user who operates the electronic camera is remarkably improved.

<第2実施形態の説明>
図8は第2実施形態の「顔登録モード」での動作を示す流れ図である。なお、図8のS301〜S312は図2のS101〜S112にそれぞれ対応し、図8のS315は図2のS116に対応するので重複説明を省略する。
<Description of Second Embodiment>
FIG. 8 is a flowchart showing the operation in the “face registration mode” of the second embodiment. Note that S301 to S312 in FIG. 8 correspond to S101 to S112 in FIG. 2, respectively, and S315 in FIG. 8 corresponds to S116 in FIG.

ステップ313:CPU26はAF終了後に自動的にレリーズを行って、撮像素子16を駆動させて被写体像を撮影する。その後、画像処理部20はレリーズ時の画像信号に基づいて撮影画像データ(顔登録画像データ)を生成する。   Step 313: The CPU 26 automatically releases after the end of AF and drives the image sensor 16 to shoot a subject image. Thereafter, the image processing unit 20 generates photographed image data (face registration image data) based on the image signal at the time of release.

ステップ314:CPU26の顔認識部32は、顔登録画像データ(S313)から登録人物の顔認識データを生成する。また、画像処理部20は、顔登録画像データからインデックス画像データを生成する。   Step 314: The face recognition unit 32 of the CPU 26 generates registered person face recognition data from the face registration image data (S313). Further, the image processing unit 20 generates index image data from the face registration image data.

以下、第2実施形態の「顔登録モード」の効果を説明する。第2実施形態では、顔検出時には人物の顔を自動的に撮影して顔認識データが生成される(S313、S314)。そのため、ユーザーは登録したい人物に電子カメラを向けるだけで、適正な顔登録画像に基づく顔認識データを容易に取得することが可能となる。特に、第2実施形態ではピント合わせおよびレリーズが自動化されるので、撮影光学系をユーザー自身に向けてユーザーの顔登録撮影を1人のみで行うことも可能となる。   The effects of the “face registration mode” of the second embodiment will be described below. In the second embodiment, when a face is detected, a human face is automatically photographed to generate face recognition data (S313, S314). Therefore, the user can easily acquire face recognition data based on an appropriate face registration image simply by pointing the electronic camera toward the person to be registered. In particular, in the second embodiment, since focusing and release are automated, it is possible to perform face registration photographing of the user with only one person with the photographing optical system facing the user himself / herself.

<第3実施形態の説明>
図9は第3実施形態の「顔登録モード」での動作を示す流れ図である。なお、図9のS401〜S409は図2のS101〜S109にそれぞれ対応し、図9のS414は図2のS116に対応するので重複説明を省略する。
<Description of Third Embodiment>
FIG. 9 is a flowchart showing the operation in the “face registration mode” of the third embodiment. Note that S401 to S409 in FIG. 9 correspond to S101 to S109 in FIG. 2, respectively, and S414 in FIG. 9 corresponds to S116 in FIG.

ステップ410:CPU26は、検出した顔領域の位置を基準としてAF演算およびAE演算を実行する。   Step 410: The CPU 26 executes AF calculation and AE calculation with reference to the detected position of the face area.

ステップ411:CPU26は自動的に所定回数のレリーズを連続して行ない、複数の撮影画像データ(顔登録画像データ)を取得する。ここで、S411ではCPU26は撮影条件をすべて同じにして複数の顔登録画像データを撮影する。例えば、被写体が静止していない場合や手ぶれが発生する場合には、同じ撮影条件でも異なる画像が撮影されるためである。なお、CPU26は露出条件やホワイトバランスなどのパラメータを段階的に変化させてブラケティング撮影を行ってもよい。   Step 411: The CPU 26 automatically performs a predetermined number of releases in succession to obtain a plurality of photographed image data (face registration image data). Here, in S411, the CPU 26 shoots a plurality of face registration image data under the same shooting conditions. For example, when the subject is not stationary or when camera shake occurs, different images are captured even under the same shooting conditions. Note that the CPU 26 may perform bracketing shooting by changing parameters such as exposure conditions and white balance in stages.

ステップ412:CPU26の顔検出部31は、S411で取得した複数の顔登録画像データに対してそれぞれ顔検出処理を施して特徴点を抽出する。そして、CPU26は、顔の特徴点の検出状態が良好な順(例えば、抽出された特徴点の数が多い順)に各顔登録画像データに優先順位を設定する。なお、第1実施形態のS110やS111で示したように、CPU26は顔登録画像データの顔の向きや表情も考慮して上記の優先順位を設定してもよい。   Step 412: The face detection unit 31 of the CPU 26 performs a face detection process on each of the plurality of face registration image data acquired in S411, and extracts feature points. Then, the CPU 26 sets the priority order for each face registration image data in the order in which the detection state of the facial feature points is favorable (for example, in the descending order of the number of extracted feature points). Note that, as shown in S110 and S111 of the first embodiment, the CPU 26 may set the above-mentioned priority order in consideration of the face orientation and facial expression of the face registration image data.

ステップ413:CPU26は、S411で取得した複数の顔登録画像データのうちで最も優先順位の高い顔登録画像データを選択する。そして、CPU26の顔認識部32は、この選択された顔登録画像データから顔認識データを生成する。また、画像処理部20は、選択された顔登録画像データからインデックス画像データを生成する。   Step 413: The CPU 26 selects face registration image data with the highest priority among the plurality of face registration image data acquired in S411. Then, the face recognition unit 32 of the CPU 26 generates face recognition data from the selected face registration image data. Further, the image processing unit 20 generates index image data from the selected face registration image data.

以下、第3実施形態の「顔登録モード」の効果を説明する。第3実施形態では、複数の顔登録画像データから最適な画像を選択して顔認識データを生成する。そのため、第3実施形態によれば、顔認識撮影時における顔認識の精度をより向上させやすくなる。   The effects of the “face registration mode” of the third embodiment will be described below. In the third embodiment, face recognition data is generated by selecting an optimum image from a plurality of face registration image data. Therefore, according to the third embodiment, it becomes easier to improve the accuracy of face recognition during face recognition shooting.

<第4実施形態の説明>
図10は第4実施形態の「顔登録モード」での動作を示す流れ図である。なお、図10のS501〜S505は図2のS101〜S105にそれぞれ対応し、図10のS513、S514は図2のS115、S116にそれぞれ対応するので重複説明を省略する。
<Description of Fourth Embodiment>
FIG. 10 is a flowchart showing the operation in the “face registration mode” of the fourth embodiment. Note that S501 to S505 in FIG. 10 correspond to S101 to S105 in FIG. 2, respectively, and S513 and S514 in FIG. 10 correspond to S115 and S116 in FIG.

ステップ506:CPU26は、電子カメラの撮影時の設定を顔登録撮影に適した設定に変更する。具体的には、CPU26はS106の(3)〜(7)と同様の設定を行うとともに、以下の(a)および(b)の設定を行う。   Step 506: The CPU 26 changes the setting at the time of shooting with the electronic camera to a setting suitable for face registration shooting. Specifically, the CPU 26 performs the same settings as (3) to (7) in S106, and performs the following settings (a) and (b).

(a)CPU26は、「顔登録モード」において撮影画面中央のAFエリアを選択してAF演算を行う。この場合には、CPU26はレリーズ釦が半押し操作に応じていわゆる中央重点AFでピント合わせを行うとともに、ピントが合った時点でAFロックする制御を実行する。撮影画面中央で顔登録画像を取得することで、撮影光学系の収差の影響をより小さくして精度の高い顔認識データを生成するためである。   (A) In the “face registration mode”, the CPU 26 selects the AF area at the center of the shooting screen and performs AF calculation. In this case, the CPU 26 performs focus control with so-called center-weighted AF in response to a half-press operation of the release button, and executes control to lock AF when focus is achieved. This is because by acquiring a face registration image at the center of the shooting screen, the influence of the aberration of the shooting optical system is reduced, and highly accurate face recognition data is generated.

(b)CPU26は、「顔登録モード」においてAE方式を撮影画面中央を基準とするスポットAEモードに設定する。これにより、撮影画面中央で撮影される顔の露出が最適化される。   (B) In the “face registration mode”, the CPU 26 sets the AE method to the spot AE mode based on the center of the shooting screen. Thereby, the exposure of the face photographed at the center of the photographing screen is optimized.

ステップ507:CPU26は、撮像素子16を駆動させてスルー画像信号の取得を行う。撮像素子16は所定間隔毎に間引き読み出しでスルー画像信号を出力する。画像処理部20はスルー画像信号に基づいてスルー画像データを生成する。そして、液晶モニタ24にはスルー画像データに基づいてプレビュー画像が動画表示される。   Step 507: The CPU 26 drives the image sensor 16 to acquire a through image signal. The image sensor 16 outputs a through image signal by thinning readout at predetermined intervals. The image processing unit 20 generates through image data based on the through image signal. A preview image is displayed as a moving image on the liquid crystal monitor 24 based on the through image data.

ここで、S507での画像処理部20は、プレビュー画像の撮影画面の中央に構図補助表示を合成する(図11参照)。図11の構図補助表示は撮影画面内における顔を収める位置を矩形状の枠で示したものである。この構図補助表示により、ユーザーはフレーミングの際に顔の位置決めを容易に行うことができる。そのため、ユーザーは状態のよい顔登録画像を簡単に撮影することが可能となる。なお、構図補助表示の他の例として、矩形状の枠の四隅のみをプレビュー画像に合成してもよい。あるいは、構図補助表示の他の例として、例えば、顔を収める範囲以外をモノクロ表示するなどの手段で、顔を収める範囲の内外で画像の表示色を変化させるようにしてもよい(いずれも図示を省略する)。   Here, the image processing unit 20 in S507 synthesizes a composition auxiliary display at the center of the preview image shooting screen (see FIG. 11). The composition auxiliary display in FIG. 11 shows the position where the face is stored in the shooting screen by a rectangular frame. This composition assist display allows the user to easily position the face during framing. Therefore, the user can easily shoot a face registration image in good condition. As another example of composition assistance display, only the four corners of the rectangular frame may be combined with the preview image. Alternatively, as another example of the composition assistance display, for example, the display color of the image may be changed inside and outside the face-covering range by means such as monochrome display other than the face-filling range (both shown) Is omitted).

また、S507での画像処理部20は、プレビュー画像の中央以外の周辺領域に撮影見本表示を合成する(図11参照)。図11の撮影見本表示は所定方向を向いた人物の顔の写真やイラストを表示したものである。例えば、正面向きの顔登録画像を撮影する場合、撮影見本表示には正面向きの顔画像が表示されることとなる。この撮影見本表示により、今回の撮影に適した顔の状態(顔の向きなど)をユーザーは視覚的に理解できる。そのため、ユーザーは状態のよい顔登録画像を簡単に撮影することが可能となる。なお、画像処理部20は、「正面の顔を撮影して下さい」などのメッセージ表示をプレビュー画像に合成してもよい。   In step S507, the image processing unit 20 synthesizes the photographic sample display in the peripheral area other than the center of the preview image (see FIG. 11). The photographic sample display of FIG. 11 displays a photograph or illustration of a person's face facing a predetermined direction. For example, when a front-facing face registration image is shot, a front-facing face image is displayed on the shooting sample display. By this shooting sample display, the user can visually understand the face state (face orientation, etc.) suitable for the current shooting. Therefore, the user can easily shoot a face registration image in good condition. Note that the image processing unit 20 may synthesize a message display such as “Please photograph the front face” with the preview image.

ステップ508:CPU26はレリーズ釦が半押しされたか否かを判定する。レリーズ釦が半押しされた場合(YES側)にはS509に移行する。一方、レリーズ釦に入力がない場合(NO側)にはS507に戻る。   Step 508: The CPU 26 determines whether or not the release button is half-pressed. If the release button is half-pressed (YES side), the flow shifts to S509. On the other hand, if there is no input on the release button (NO side), the process returns to S507.

ステップ509:CPU26は、ユーザーによるレリーズ釦半押し操作に応じて撮影画面中央を基準とするAF演算およびAE演算を実行する。   Step 509: The CPU 26 executes AF calculation and AE calculation based on the center of the shooting screen in response to a half-press operation of the release button by the user.

ステップ510:CPU26はレリーズ釦が全押しされたか否かを判定する。レリーズ釦が全押しされた場合(YES側)にはS511に移行する。一方、レリーズ釦に入力がない場合(NO側)にはCPU26はレリーズ釦の全押し操作を待機する。   Step 510: The CPU 26 determines whether or not the release button has been fully pressed. If the release button is fully pressed (YES side), the flow shifts to S511. On the other hand, when there is no input to the release button (NO side), the CPU 26 waits for a full pressing operation of the release button.

ステップ511:CPU26は、ユーザーによるレリーズ釦全押し操作に応じて撮影画像データ(顔登録画像データ)を取得する。   Step 511: The CPU 26 acquires photographed image data (face registration image data) in response to a release button full-press operation by the user.

ステップ512:CPU26の顔検出部31は、顔登録画像データ(S511)の撮影画面中央の部分に公知の顔検出処理を施して撮影画面内の顔領域を検出する。   Step 512: The face detection unit 31 of the CPU 26 performs a known face detection process on the center of the shooting screen of the face registration image data (S511) to detect a face area in the shooting screen.

以下、第4実施形態の「顔登録モード」の効果を説明する。第4実施形態では、ユーザーがマニュアル撮影した顔登録画像データに基づいて顔認識データが生成される。そのため、ユーザーの意図に即した顔認識データを作成することが可能となる。また、撮影光学系の収差の影響が少ない撮影画面中央で顔登録画像を取得するので、より精度の高い顔認識データを生成することが可能となる。   The effects of the “face registration mode” of the fourth embodiment will be described below. In the fourth embodiment, face recognition data is generated based on face registration image data manually shot by a user. Therefore, it is possible to create face recognition data according to the user's intention. In addition, since the face registration image is acquired at the center of the shooting screen that is less affected by the aberration of the shooting optical system, it is possible to generate more accurate face recognition data.

(第1実施形態から第4実施形態における顔登録モードの変形例)
上記の実施形態では撮影時に顔登録画像から顔認識データを生成する例を説明した。しかし、顔登録画像から顔認識データを生成する代わりに、CPUが顔登録画像から顔領域の部分を切り出して顔画像データを生成し、この顔画像データをメモリや記録媒体に記録するようにしてもよい。そして、コンピュータによる後処理で顔画像データから顔認識データを生成するようにすることもできる。
(Modification of face registration mode in the first to fourth embodiments)
In the above embodiment, the example in which the face recognition data is generated from the face registration image at the time of shooting has been described. However, instead of generating face recognition data from the face registration image, the CPU generates face image data by cutting out the face area portion from the face registration image, and records this face image data in a memory or a recording medium. Also good. Then, face recognition data can be generated from face image data by post-processing by a computer.

ここで、顔画像データは、顔登録画像の顔領域を例えば80×80画素程度のサイズで切り出して生成される。かかる顔画像データの画像に対しては、解像度変換による変倍処理を施さないようにするのが好ましい。また、顔登録画像データの場合と同様に、CPUは、上記の顔画像データに、インデックス画像データ、顔登録画像データの撮影条件および撮影日時を対応付けして記録しておくことが好ましい。さらに、上記の顔画像データについても、CPUは、同一の撮影人物から生成した複数の顔画像データを同一のフォルダ等にグループ化して記録するのが好ましい。   Here, the face image data is generated by cutting out the face area of the face registration image with a size of about 80 × 80 pixels, for example. It is preferable not to perform a scaling process by resolution conversion on the face image data image. As in the case of face registration image data, the CPU preferably records the face image data in association with the index image data, the shooting conditions of the face registration image data, and the shooting date and time. Further, with respect to the face image data, the CPU preferably records a plurality of face image data generated from the same photographed person in the same folder or the like.

(実施形態の補足事項)
以上、本発明を上記の実施形態によって説明してきたが、本発明の技術的範囲は上記実施形態に限定されるものではなく、例えば以下のような形態であってもよい。
(Supplementary items of the embodiment)
As mentioned above, although this invention has been demonstrated by said embodiment, the technical scope of this invention is not limited to the said embodiment, For example, the following forms may be sufficient.

(1)第1実施形態から第3実施形態までの「顔登録モード」でも、第4実施形態のようにプレビュー画像に構図補助表示や撮影見本表示を合成表示するようにしてもよい。また、第4実施形態の「顔登録モード」でも、レリーズ前にスルー画像データで顔検出処理を行うようにしてもよい。   (1) Even in the “face registration mode” from the first embodiment to the third embodiment, composition auxiliary display and photographing sample display may be combined and displayed on the preview image as in the fourth embodiment. Also in the “face registration mode” of the fourth embodiment, face detection processing may be performed with through image data before release.

(2)上記実施形態において、CPU26はレリーズ釦の半押しをトリガとして顔検出によるAF演算を行うようにしてもよい。   (2) In the embodiment described above, the CPU 26 may perform AF calculation based on face detection with a half-press of the release button as a trigger.

(3)上記実施形態において、「顔登録モード」および「顔検出撮影モード」を、「通常撮影モード」、「ポートレート撮影モード」、「再生モード」などと同様にモードダイヤル等で直接指定して立ち上げられるようにしてもよい。   (3) In the above embodiment, “Face registration mode” and “Face detection shooting mode” are directly designated by a mode dial or the like in the same way as “Normal shooting mode”, “Portrait shooting mode”, “Playback mode”, etc. May be launched.

(4)第3実施形態の「顔登録モード」において、CPU26は優先順位の高い順に二以上の顔認識データを生成するようにしてもよい。   (4) In the “face registration mode” of the third embodiment, the CPU 26 may generate two or more face recognition data in descending order of priority.

(5)第4実施形態の「顔登録モード」において、CPU26は顔登録画像データを記録媒体29などに撮りだめし、複数の顔登録画像データをバッチ処理して顔認識データを一括生成するようにしてもよい。このとき、第3実施形態のように、顔登録画像データに優先順位を設定して、優先順位の高い順に顔認識データを生成するようにしてもよい。   (5) In the “face registration mode” of the fourth embodiment, the CPU 26 captures the face registration image data on the recording medium 29 or the like, batch-processes the plurality of face registration image data, and generates face recognition data collectively. It may be. At this time, as in the third embodiment, priority may be set for the face registration image data, and face recognition data may be generated in descending order of priority.

(6)顔登録メモリの「顔認識データの登録時期」のデータは、元となる顔登録画像データが概ねいつ頃撮影されたかを示すものでも足りる。したがって、「顔認識データの登録時期」については撮影年、撮影月、撮影日のいずれかで記録を打ち切って、詳細な時刻などの記録を省略するようにしてもよい。   (6) The “registration time of face recognition data” data in the face registration memory may be sufficient to indicate when the original face registration image data was captured. Accordingly, the “registration time of the face recognition data” may be terminated by recording at any of the shooting year, shooting month, and shooting date, and recording of detailed time and the like may be omitted.

(7)「顔認識撮影モード」の顔認識処理(S207)では、顔認識部32はグループ化された顔認識データのうちから判定に使用する顔認識データを所定条件で絞り込むようにしてもよい。例えば、顔認識部32は、「顔認識データの登録時期」に基づいて撮影日時よりも一定期間以上古い顔認識データを除外してもよい。同様に、顔認識部32は「顔認識データの取得時の撮影条件」に基づいて今回の撮影条件と大きく異なる撮影条件で生成された顔認識データを除外してもよい。   (7) In the face recognition process (S207) of the “face recognition shooting mode”, the face recognition unit 32 may narrow down the face recognition data used for the determination from the grouped face recognition data under a predetermined condition. . For example, the face recognizing unit 32 may exclude face recognition data that is older than a shooting date and time by a certain period or more based on the “face recognition data registration time”. Similarly, the face recognizing unit 32 may exclude face recognition data generated under shooting conditions that are significantly different from the current shooting conditions based on the “shooting conditions when acquiring face recognition data”.

(8)「顔認識撮影モード」の顔認識処理(S207)では、顔認識部32は撮影光学系11の焦点距離のデータから演算したディストーションの度合いに応じて、顔認識データを補正するようにしてもよい。   (8) In the face recognition process (S207) in the “face recognition shooting mode”, the face recognition unit 32 corrects the face recognition data according to the degree of distortion calculated from the focal length data of the shooting optical system 11. May be.

(9)「顔登録モード」において、CPU26は顔認識データの顔の向きに関する識別情報を生成し、顔登録メモリ27に上記識別情報も記録するようにしてもよい。顔の向きに関する識別情報は、第1実施形態のS110に示す処理の結果に基づいてCPU26が生成してもよい。あるいは、撮影時または編集時におけるユーザーの入力に基づいてCPU26が上記識別情報を生成してもよい。   (9) In the “face registration mode”, the CPU 26 may generate identification information relating to the face direction of the face recognition data and record the identification information in the face registration memory 27. The identification information regarding the face orientation may be generated by the CPU 26 based on the result of the process shown in S110 of the first embodiment. Alternatively, the CPU 26 may generate the identification information based on a user input during shooting or editing.

(10)本発明の電子カメラは実施形態の電子カメラの構成と必ずしも一致する必要はない。例えば、内蔵メモリ19と顔登録メモリ27とが共通のメモリで構成されていてもよい。顔登録メモリ27がデータバス28を介してCPU26に接続されていてもよい。また、揺動センサ部13、像ぶれ補正レンズ14および第2レンズ駆動部15からなる光学的なぶれ補正機構が省略されていてもよい。さらに、電子カメラ内に通信ユニット30が内蔵されていてもよい。   (10) The electronic camera of the present invention does not necessarily match the configuration of the electronic camera of the embodiment. For example, the built-in memory 19 and the face registration memory 27 may be configured by a common memory. The face registration memory 27 may be connected to the CPU 26 via the data bus 28. Further, the optical blur correction mechanism including the swing sensor unit 13, the image blur correction lens 14, and the second lens driving unit 15 may be omitted. Furthermore, the communication unit 30 may be built in the electronic camera.

(11)CPU26は顔登録メモリ27内のデータを記録媒体29に記録して、顔登録メモリ27のバックアップを可能としてもよい。また、CPU26は、予め他の電子カメラで生成された顔認識データ等を記録媒体29から取得し、電子カメラ間で顔登録メモリ27のデータを共用できるようにしてもよい。   (11) The CPU 26 may record the data in the face registration memory 27 on the recording medium 29 so that the face registration memory 27 can be backed up. Further, the CPU 26 may acquire face recognition data or the like generated in advance by another electronic camera from the recording medium 29 so that the data in the face registration memory 27 can be shared between the electronic cameras.

11…撮影光学系、11a…ズームレンズ、11b…フォーカシングレンズ、12…第1レンズ駆動部、13…揺動センサ部、14…像ぶれ補正レンズ、15…第2レンズ駆動部、16…撮像素子、17…アナログ信号処理部、20…画像処理部、24…液晶モニタ、25…閃光発光部、26…CPU、27…顔登録メモリ、31…顔検出部、32…顔認識部 DESCRIPTION OF SYMBOLS 11 ... Imaging optical system, 11a ... Zoom lens, 11b ... Focusing lens, 12 ... 1st lens drive part, 13 ... Swing sensor part, 14 ... Image blur correction lens, 15 ... 2nd lens drive part, 16 ... Imaging element , 17 ... Analog signal processing unit, 20 ... Image processing unit, 24 ... Liquid crystal monitor, 25 ... Flash emission unit, 26 ... CPU, 27 ... Face registration memory, 31 ... Face detection unit, 32 ... Face recognition unit

Claims (6)

被写体像を撮像し、画像信号を生成する撮像素子と、
前記撮像素子からの前記画像信号に基づいて顔領域を検出する顔検出部と、
撮影モードを設定する設定手段と、
前記設定手段によって設定された撮影モードに応じて、前記顔領域の検出精度を設定する設定手段と、
を備えたことを特徴とする電子カメラ。
An image sensor that captures a subject image and generates an image signal;
A face detection unit that detects a face region based on the image signal from the image sensor;
Setting means for setting the shooting mode;
Setting means for setting the detection accuracy of the face area according to the shooting mode set by the setting means;
An electronic camera characterized by comprising:
請求項1に記載の電子カメラにおいて、
前記顔領域の部分から撮影人物の顔の特徴点を抽出し、前記特徴点に基づいて顔認識データを生成する顔認識データ生成部をさらに備えたことを特徴とする電子カメラ。
The electronic camera according to claim 1,
An electronic camera, further comprising: a face recognition data generation unit that extracts a feature point of a photographed person's face from the face area portion and generates face recognition data based on the feature point.
請求項2に記載の電子カメラにおいて、
前記顔認識データを生成するときに、複数回のレリーズにより撮影画像のデータを複数取得する制御部をさらに備えたことを特徴とする電子カメラ。
The electronic camera according to claim 2,
An electronic camera, further comprising a control unit that acquires a plurality of pieces of captured image data by a plurality of releases when generating the face recognition data.
請求項3に記載の電子カメラにおいて、
前記制御部は、撮影条件を段階的に変更して前記撮影画像のデータを複数取得することを特徴とする電子カメラ。
The electronic camera according to claim 3.
The control unit is configured to acquire a plurality of data of the photographed images by changing photographing conditions in stages.
請求項4に記載の電子カメラにおいて、
前記制御部は、露出条件またはホワイトバランスのパラメータを段階的に変更して前記撮影画像のデータを複数取得することを特徴とする電子カメラ。
The electronic camera according to claim 4,
The electronic camera according to claim 1, wherein the control unit obtains a plurality of data of the photographed images by changing exposure parameters or white balance parameters stepwise.
請求項3から請求項5のいずれか1項に記載の電子カメラにおいて、
前記顔認識データ生成部は、複数の前記撮影画像のデータからそれぞれ前記特徴点を抽出し、抽出された特徴点の数に応じて、前記撮影画像のデータから生成された前記顔認識データに優先順位を付与することを特徴とする電子カメラ。
The electronic camera according to any one of claims 3 to 5,
The face recognition data generation unit extracts the feature points from a plurality of the captured image data, and prioritizes the face recognition data generated from the captured image data according to the number of extracted feature points. An electronic camera characterized by giving a ranking.
JP2012163118A 2012-07-23 2012-07-23 Electronic camera Active JP5423851B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2012163118A JP5423851B2 (en) 2012-07-23 2012-07-23 Electronic camera

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2012163118A JP5423851B2 (en) 2012-07-23 2012-07-23 Electronic camera

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2009092050A Division JP5093178B2 (en) 2009-04-06 2009-04-06 Electronic camera

Publications (2)

Publication Number Publication Date
JP2012200023A true JP2012200023A (en) 2012-10-18
JP5423851B2 JP5423851B2 (en) 2014-02-19

Family

ID=47181692

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2012163118A Active JP5423851B2 (en) 2012-07-23 2012-07-23 Electronic camera

Country Status (1)

Country Link
JP (1) JP5423851B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015062052A (en) * 2013-08-21 2015-04-02 キヤノン株式会社 Imaging apparatus and imaging method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003348438A (en) * 2002-05-29 2003-12-05 Fuji Photo Film Co Ltd Image photographing method and apparatus, image selecting method and apparatus, and program
JP2004349750A (en) * 2003-05-20 2004-12-09 Fuji Photo Film Co Ltd Digital camera and control method therefor
JP2005311888A (en) * 2004-04-23 2005-11-04 Omron Corp Magnified display device and magnified image control apparatus

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003348438A (en) * 2002-05-29 2003-12-05 Fuji Photo Film Co Ltd Image photographing method and apparatus, image selecting method and apparatus, and program
JP2004349750A (en) * 2003-05-20 2004-12-09 Fuji Photo Film Co Ltd Digital camera and control method therefor
JP2005311888A (en) * 2004-04-23 2005-11-04 Omron Corp Magnified display device and magnified image control apparatus

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
CSNG200300696005; 加藤 丈和 Takekazu Kato: '実環境下における自律的な顔画像登録とその応用 Autonomous Face Registration and Its Applications in R' 情報処理学会研究報告 Vol.2002 No.2 IPSJ SIG Notes 第2002巻, 20020118, 45-52頁, 社団法人情報処理学会 Information Processing Socie *
JPN6013016849; 加藤 丈和 Takekazu Kato: '実環境下における自律的な顔画像登録とその応用 Autonomous Face Registration and Its Applications in R' 情報処理学会研究報告 Vol.2002 No.2 IPSJ SIG Notes 第2002巻, 20020118, 45-52頁, 社団法人情報処理学会 Information Processing Socie *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015062052A (en) * 2013-08-21 2015-04-02 キヤノン株式会社 Imaging apparatus and imaging method

Also Published As

Publication number Publication date
JP5423851B2 (en) 2014-02-19

Similar Documents

Publication Publication Date Title
JP4315148B2 (en) Electronic camera
JP5087856B2 (en) Electronic camera
JP5098259B2 (en) camera
JP4577275B2 (en) Imaging apparatus, image recording method, and program
JP4910462B2 (en) camera
JP4553346B2 (en) Focus adjustment device and focus adjustment method
WO2007060980A1 (en) Electronic camera and image processing device
JP4432886B2 (en) Electronic camera
JP5070728B2 (en) camera
JP2007279601A (en) Camera
JP2006211139A (en) Imaging apparatus
US20090086050A1 (en) Image capture device and image capture method
JP4127521B2 (en) Digital camera and control method thereof
JP2007148691A (en) Image processor
JP4360369B2 (en) Electronic camera
JP4577445B2 (en) Imaging apparatus, image recording method, and program
JP2008017169A (en) Electronic camera
JP2007150604A (en) Electronic camera
JP2009290255A (en) Imaging apparatus, imaging apparatus control method and computer program
JP2014068081A (en) Imaging apparatus and control method of the same, program and storage medium
JP4747673B2 (en) Electronic camera and image processing program
JP2008054031A (en) Digital camera and display control method
JP2005223658A (en) Digital camera
JP5423851B2 (en) Electronic camera
JP5093178B2 (en) Electronic camera

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20120820

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20130416

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20130617

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20130716

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20130917

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20131111

R150 Certificate of patent or registration of utility model

Ref document number: 5423851

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250