JP2012034276A - Imaging apparatus and image processing method, and image processing program - Google Patents

Imaging apparatus and image processing method, and image processing program Download PDF

Info

Publication number
JP2012034276A
JP2012034276A JP2010173623A JP2010173623A JP2012034276A JP 2012034276 A JP2012034276 A JP 2012034276A JP 2010173623 A JP2010173623 A JP 2010173623A JP 2010173623 A JP2010173623 A JP 2010173623A JP 2012034276 A JP2012034276 A JP 2012034276A
Authority
JP
Japan
Prior art keywords
evaluation value
image
state
eyes
eye
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2010173623A
Other languages
Japanese (ja)
Inventor
Genshiro Shibaue
玄志郎 芝上
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP2010173623A priority Critical patent/JP2012034276A/en
Publication of JP2012034276A publication Critical patent/JP2012034276A/en
Pending legal-status Critical Current

Links

Images

Landscapes

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

Abstract

PROBLEM TO BE SOLVED: To provide an imaging apparatus capable of recording efficiently an image of a face with the eyes closed like a tearful face or a sleeping face of a photographic subject from among continuously photographed images.SOLUTION: A face evaluation value on the basis of prescribed conditions from a plurality of acquired images is calculated, and it is decided whether a specific photographic subject is in a state where the eyes are closed or the eyes are opened. Then, in the case where it is decided that the specific photographic subject is in a state where the eyes are closed, change over is carried out into a eyes-closed priority state, and in the case where it is decided that the specific photographic subject is in a state where the eyes are opened, change over is carried out into a eyes-opened priority state. In addition, in the case where it is decided that the specific photographic subject is in a state where the eyes are closed when it is in the eyes-closed priority state, and in the case where it is decided that the specific photographic subject is in a state where the eyes are opened when it is in the eyes-opened priority state, an image evaluation value is calculated to be high from the face evaluation value in comparison to the otherwise case. Then, images to be recorded are selected in accordance with the calculated image evaluation value.

Description

本発明は、撮像装置及び画像処理方法、並びに画像処理プログラムに関し、特に、連続的に撮影された複数の画像からユーザが所望する画像を優先的に選択して記録する撮像装置及び画像処理方法、並びに画像処理プログラムに関する。   The present invention relates to an imaging apparatus, an image processing method, and an image processing program, and in particular, an imaging apparatus and an image processing method for preferentially selecting and recording an image desired by a user from a plurality of images that are continuously captured, And an image processing program.

近年、連続的に撮影された画像の中から特定の被写体の顔が写っているものを自動的に記録する画像処理技術が望まれている。例えば、複数の画像のそれぞれに対して、所定条件に基づいた評価を行い、当該評価に基づいて画像の順位づけを行う撮像装置が提案されている(特許文献1参照)。この撮像装置では、撮影者が評価項目として、例えば、「目つぶれ」、「笑顔」を選択することができる。「目つぶれ」が選択された場合、画像評価部が、目が開いている状態の画像データには画像評価を高くし、目が閉じている状態の画像データには画像評価を低くする。そして、順位決定部56が、画像データの画像評価値に基づいて、画像データに優先順位を決定し、画像選択部が、決定された優先順位の高い画像データを選択する。   In recent years, there has been a demand for an image processing technique that automatically records an image of a face of a specific subject from continuously shot images. For example, there has been proposed an imaging apparatus that evaluates each of a plurality of images based on a predetermined condition and ranks the images based on the evaluation (see Patent Document 1). In this imaging apparatus, the photographer can select, for example, “blind” or “smile” as evaluation items. When “blind” is selected, the image evaluation unit increases the image evaluation for the image data with the eyes open, and decreases the image evaluation for the image data with the eyes closed. Then, the order determination unit 56 determines the priority order of the image data based on the image evaluation value of the image data, and the image selection unit selects the image data with the determined high priority order.

特開2009−272740号公報JP 2009-272740 A

しかしながら、上述した特許文献1記載の撮像装置では、評価項目として「目つぶれ」が選択されている場合は、目を瞑っていない画像データの画像評価値が高くなる。撮影者が被写体の泣き顔や寝顔のような目を瞑った顔を撮影したいと考えていた場合、それらの画像データの優先順位が低くなり、画像選択部により選択されない可能性が高くなることから、撮影者が望む画像が得られないおそれがある。   However, in the imaging apparatus described in Patent Document 1 described above, when “blind” is selected as the evaluation item, the image evaluation value of the image data in which the eyes are not meditated is high. If the photographer wants to shoot a face with a closed eye such as a crying face or sleeping face, the priority of those image data will be lower, and it is more likely not to be selected by the image selector, There is a possibility that an image desired by the photographer cannot be obtained.

本発明は、上記問題に鑑みて成されたものであり、連続的に撮影された画像の中から、被写体の泣き顔や寝顔のような目を瞑った顔の画像を効率よく記録することができる撮像装置及び画像処理方法、並びに画像処理プログラムを提供することを目的とする。   The present invention has been made in view of the above-described problems, and can efficiently record an image of a face with a closed eye such as a crying face or a sleeping face of a subject from continuously shot images. An object is to provide an imaging apparatus, an image processing method, and an image processing program.

上記目的を達成するために、本発明の撮像装置は、被写体を連続して撮像することが可能な撮像手段と、前記撮像手段から得られた画像から所定の条件に基づく第1の評価値を算出する第1の評価値算出手段と、前記撮像手段から得られた画像から特定の被写体が目を瞑っている状態であるか、目を開いている状態であるかを判断する判断手段と、前記撮像手段から得られた複数の画像から前記特定の被写体が目を瞑っている状態であると判断された場合は、前記特定の被写体が目を瞑っている目瞑り画像を優先する目瞑り優先状態に切り替え、前記判断手段により前記特定の被写体が目を開いている状態であると判断された場合は、前記特定の被写体が目を開いている目開き画像を優先する目開き優先状態に切り替える切り替え手段と、前記第1の評価値から、前記画像に付与する第2の評価値を算出する第2の評価値算出手段と、前記算出された第2の評価値に応じて、記録する画像を選択する選択手段とを備え、前記第2の評価値算出手段は、前記目瞑り優先状態のときに、前記判断手段により前記特定の被写体が目を瞑っている状態であると判断された場合には、目を開いている状態であると判断された場合よりも、前記第1の評価値から算出される前記第2の評価値を高くし、前記目開き優先状態のときに、前記判断手段により前記特定の被写体が目を開いている状態であると判断された場合には、目を瞑っている状態であると判断された場合よりも、前記第1の評価値から算出される前記第2の評価値を高くすることを特徴とする。   In order to achieve the above object, an imaging apparatus according to the present invention has an imaging unit capable of continuously imaging a subject, and a first evaluation value based on a predetermined condition from an image obtained from the imaging unit. A first evaluation value calculating means for calculating; a determining means for determining whether a specific subject is in a state where his eyes are meditated or in a state where his eyes are open from the image obtained from the imaging means; If it is determined from the plurality of images obtained from the imaging means that the specific subject is in a state of meditating eyes, priority is given to the eye-meditation image in which the specific subject is meditating eyes When the determination means determines that the specific subject is in an open state, the specific subject switches to an opening priority state that prioritizes the opening image in which the specific subject has open eyes. Switching means and front Second evaluation value calculation means for calculating a second evaluation value to be applied to the image from the first evaluation value, and selection means for selecting an image to be recorded according to the calculated second evaluation value And the second evaluation value calculating means is in the eye-meditation priority state, when the judgment means determines that the specific subject is in a state of meditating eyes, The second evaluation value calculated from the first evaluation value is set higher than the case where it is determined that the state is open. The second evaluation value calculated from the first evaluation value when it is determined that the subject is in an open state is more than in the case where it is determined that the subject is in a closed state. It is characterized by making it high.

本発明によれば、特定の被写体の泣き顔や寝顔のような目を瞑った顔の画像を効率よく記録できると共に、被写体の目が開いている画像をも効率よく記録することができる。   According to the present invention, it is possible to efficiently record an image of a face with a closed eye such as a crying face or a sleeping face of a specific subject, and it is also possible to efficiently record an image in which the subject's eyes are open.

本発明の第1の実施形態に係る撮像装置の概略構成を示すブロック図である。1 is a block diagram illustrating a schematic configuration of an imaging apparatus according to a first embodiment of the present invention. 図1の撮像装置における目瞑り優先状態と目開き優先状態の切り替えを説明するための図であり、(a)は被写体が最初から目を開いている状態、(b)は被写体が最初から目を閉じている状態、(c)は被写体が最初は目を開いていて、途中から目を閉じた場合、(d)は被写体が最初から目を閉じていて、途中で一度目を開くが再度目を閉じた場合を示す。FIGS. 2A and 2B are diagrams for explaining switching between an eye-meditation priority state and an eye opening priority state in the imaging apparatus of FIG. 1, in which FIG. (C) is when the subject has eyes open at the beginning and the eyes are closed from the middle, and (d) is the subject has closed eyes from the beginning and opens the eyes once in the middle, but again Shown when eyes closed. 図1の撮像装置にて実行される画像選択処理の流れをフローチャートである(その1)。FIG. 3 is a flowchart illustrating a flow of image selection processing executed by the imaging apparatus of FIG. 1 (No. 1). 図1の撮像装置にて実行される画像選択処理の流れをフローチャートである(その2)。6 is a flowchart (part 2) of a flow of image selection processing executed by the imaging apparatus of FIG. 図1の撮像装置にて実行される画像選択処理の流れをフローチャートである(その3)。FIG. 6 is a flowchart (part 3) of a flow of image selection processing executed by the imaging apparatus of FIG. 1. 図3AのステップS202における顔評価値算出処理を示すフローチャートである。It is a flowchart which shows the face evaluation value calculation process in step S202 of FIG. 3A. 図4のステップS301における顔位置の評価を説明するための図であり、(a)は撮像装置を横に構えて撮影したときの画像における顔位置の基準位置の一例を示し、(b)は撮像装置を縦に構えて撮影したときの画像における顔位置の基準位置の一例を示す。5A and 5B are diagrams for explaining the evaluation of the face position in step S301 in FIG. 4, where FIG. 5A shows an example of the reference position of the face position in an image when the image pickup apparatus is held sideways, and FIG. An example of a reference position of a face position in an image when the image pickup apparatus is held vertically is shown. 本発明の第2の実施形態に係る撮像装置にて実行される画像選択処理の流れを示すフローチャートである(その1)。It is a flowchart which shows the flow of the image selection process performed with the imaging device which concerns on the 2nd Embodiment of this invention (the 1). 本発明の第2の実施形態に係る撮像装置にて実行される画像選択処理の流れを示すフローチャートである(その2)。It is a flowchart which shows the flow of the image selection process performed with the imaging device which concerns on the 2nd Embodiment of this invention (the 2). 本発明の第2の実施形態に係る撮像装置にて実行される画像選択処理の流れを示すフローチャートである(その3)。It is a flowchart which shows the flow of the image selection process performed with the imaging device which concerns on the 2nd Embodiment of this invention (the 3).

以下、本発明の実施の形態を図面を参照して詳細に説明する。   Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.

[第1の実施形態]
図1は、本発明の第1の実施形態に係る撮像装置の概略構成を示すブロック図である。
[First Embodiment]
FIG. 1 is a block diagram showing a schematic configuration of an imaging apparatus according to the first embodiment of the present invention.

撮影レンズ101は、ズーム機構、フォーカスレンズ機構、絞りシャッター機構を含む撮影レンズである。撮像素子102は、被写体からの反射光を電気信号に変換する受光手段又は光電変換手段としての撮像素子である。A/D変換部103は、撮像素子102の出力ノイズを除去するCDS回路やA/D変換前に行う非線形増幅回路を含むA/D変換部である。画像処理部104は、A/D変換部103から出力された画像データに対して画像処理を行う。また、画像処理部104は、輝度に関する特定周波数帯域の信号成分を抽出し、被写体のピント状態を検出することも可能である。   The photographing lens 101 is a photographing lens including a zoom mechanism, a focus lens mechanism, and an aperture shutter mechanism. The imaging element 102 is an imaging element as a light receiving unit or a photoelectric conversion unit that converts reflected light from a subject into an electrical signal. The A / D conversion unit 103 is an A / D conversion unit including a CDS circuit that removes output noise of the image sensor 102 and a non-linear amplification circuit that is performed before A / D conversion. The image processing unit 104 performs image processing on the image data output from the A / D conversion unit 103. The image processing unit 104 can also extract a signal component in a specific frequency band related to luminance and detect the focus state of the subject.

フォーマット変換部105は、画像処理部104から出力された画像データをJPEGフォーマット等に変換する画像フォーマット変換部である。DRAM106は、高速なデータアクセスが可能なDRAM等で構成される。DRAM106は、一時的な画像記憶手段として或いは画像の圧縮伸張における作業用メモリなどに使用される。画像記録部107は、メモリーカードなどの記録媒体とそのインターフェースからなる画像記録部である。   The format conversion unit 105 is an image format conversion unit that converts the image data output from the image processing unit 104 into a JPEG format or the like. The DRAM 106 is configured by a DRAM or the like capable of high-speed data access. The DRAM 106 is used as a temporary image storage means or a working memory for image compression / decompression. The image recording unit 107 is an image recording unit including a recording medium such as a memory card and its interface.

システム制御部(以下、「CPU」と記す)108は、撮影シーケンスなどのシステムを制御するシステム制御部である。操作部109は、撮像装置を外部から操作するための操作部である。操作部109は、例えば次のようなものが含まれる。撮像装置の撮影機能や画像再生時の設定などの各種設定を行うためのメニュースイッチ、撮影レンズのズーム動作を指示するためのズームレバー、撮影モードと再生モードの動作モードを切り換えるための切換スイッチなどである。   A system control unit (hereinafter referred to as “CPU”) 108 is a system control unit that controls a system such as an imaging sequence. The operation unit 109 is an operation unit for operating the imaging apparatus from the outside. The operation unit 109 includes the following, for example. Menu switch for performing various settings such as shooting functions and image playback settings of the imaging device, zoom lever for instructing the zoom operation of the shooting lens, changeover switch for switching between shooting mode and playback mode, etc. It is.

撮影モードスイッチ110は、顔検出モードをON又はOFFに切り替える設定等を行うための撮影モードスイッチである。メインスイッチ111は、撮像装置の電源をON/OFFするためのメインスイッチである。SW1_112は、AFやAE等の撮影スタンバイ動作を行うためのスイッチである。SW2_113は、SW1_112の操作後に撮影を行うための撮影スイッチである。   The shooting mode switch 110 is a shooting mode switch for setting the face detection mode to be turned on or off. The main switch 111 is a main switch for turning on / off the power of the imaging apparatus. SW1_112 is a switch for performing a shooting standby operation such as AF or AE. SW2_113 is a photographing switch for performing photographing after the operation of SW1_112.

顔検出部114は、画像処理部104で処理された画像データを用いて顔領域の検出を行い、検出した顔領域から顔情報(例えば、顔の位置、大きさ、信頼度等)を抽出してCPU108に送る。また、顔検出部114は、画像処理部104からの画像データに対して公知の顔検出処理を施し、画像内に含まれる人物の顔領域を検出する。なお、公知の顔検出処理としては、例えば、画像データで表される各画素の階調色から肌色領域を抽出し、予め用意する顔の輪郭プレートとのマッチング度で顔を検出する方法がある。また、周知のパターン認識技術を用いて、顔の特徴量(例えば、目、鼻、口などの顔器官)を抽出することで顔検出を行う方法等も開示されている。   The face detection unit 114 detects a face area using the image data processed by the image processing unit 104, and extracts face information (for example, face position, size, reliability, etc.) from the detected face area. To the CPU. In addition, the face detection unit 114 performs a known face detection process on the image data from the image processing unit 104 to detect a human face area included in the image. As a known face detection process, for example, there is a method of extracting a skin color region from the gradation color of each pixel represented by image data and detecting the face with a matching degree with a face contour plate prepared in advance. . Also disclosed is a method for detecting a face by extracting facial feature quantities (for example, facial organs such as eyes, nose, mouth) using a well-known pattern recognition technique.

笑顔検出部115は、顔検出部114で検出された顔領域から被写体の顔の笑顔レベルを算出する。具体的には、笑顔検出部115は、顔を構成する目、鼻、及び口等の輪郭、目頭、目尻、小鼻、口角及び唇の位置など、笑顔レベルの算出に必要な特徴量を抽出する。特徴量を抽出する方法としては、目や鼻といった物理的な形状に特徴のある部位を画像領域からテンプレートマッチングで抽出する手法がある。また、顔の構成部位の複数のサンプル画像を用いてマシンラーニング学習により特徴量を抽出する手法もある。そして、笑顔検出部115は、抽出した特徴量に基づいて、笑顔の度合を示す笑顔レベルを算出し、顔が笑顔であるかどうかを判別する。笑顔レベルの算出手法としては、例えば、満点の笑顔と笑っていない顔から取得した特徴量の位置及び形状の差分に応じて、笑顔レベルを算出する手法がある。   The smile detection unit 115 calculates the smile level of the subject's face from the face area detected by the face detection unit 114. Specifically, the smile detection unit 115 extracts features necessary for calculating the smile level, such as the contours of the eyes, nose, mouth, and the like constituting the face, the positions of the eyes, the corners of the eyes, the nose, the corners of the mouth, and the lips. . As a method of extracting feature amounts, there is a method of extracting a part having a physical shape such as an eye or a nose from an image region by template matching. There is also a method of extracting feature amounts by machine learning learning using a plurality of sample images of the constituent parts of the face. Then, the smile detection unit 115 calculates a smile level indicating the degree of smile based on the extracted feature amount, and determines whether or not the face is a smile. As a method for calculating a smile level, for example, there is a method for calculating a smile level according to a difference between a position and a shape of a feature amount acquired from a full smile and a face not laughing.

目領域検出部116は、顔検出部114で検出された顔領域から目の存在する目領域を検出する。   The eye area detection unit 116 detects an eye area where an eye exists from the face area detected by the face detection unit 114.

目瞑り検出部117は、目領域検出部116で検出された目領域内のヒストグラムから、黒目に相当する輝度の領域の面積を検出する。そして、黒目に相当する輝度の領域の面積が、目領域の大きさに応じて、設定された閾値を下回った場合に目瞑りであると判断する。   The eye meditation detection unit 117 detects the area of the luminance region corresponding to the black eye from the histogram in the eye region detected by the eye region detection unit 116. Then, when the area of the luminance region corresponding to the black eye falls below a set threshold according to the size of the eye region, it is determined that the eye is closed.

視線検出部118は、目領域検出部116で検出された目領域から両目が検出され、かつ当該両目の間の距離が短いか否かを判別する。両目の間の距離が短いときは正面顔であると判断し、目領域検出部116で検出された目領域内の瞳の位置を検出する。そして、瞳の位置が目領域の中心に位置している場合は、視線方向が撮像装置に向いていると判定する。   The line-of-sight detection unit 118 determines whether both eyes are detected from the eye region detected by the eye region detection unit 116 and whether the distance between the eyes is short. When the distance between both eyes is short, it is determined that the face is a front face, and the position of the pupil in the eye area detected by the eye area detection unit 116 is detected. And when the position of a pupil is located in the center of an eye area | region, it determines with the gaze direction facing the imaging device.

上述した顔検出、笑顔レベルの算出、目瞑り検出、視線検出の手法については、上述したものに限定されるものではなく、公知の種々の手法を用いることができる。また、上述した顔検出部114〜視線検出部118は、ハードウェアで構成されていても、ソフトウェアで構成されていてもよい。   The methods of face detection, smile level calculation, eye meditation detection, and line-of-sight detection described above are not limited to those described above, and various known methods can be used. Moreover, the face detection unit 114 to the line-of-sight detection unit 118 described above may be configured by hardware or software.

角度センサ部119は、例えば、ジャイロスコープ等で構成され、撮像装置自体の傾き量を検出してCPU108に送る機能を有する。   The angle sensor unit 119 is configured by, for example, a gyroscope or the like, and has a function of detecting the amount of inclination of the imaging apparatus itself and sending it to the CPU 108.

次に、図1の撮像装置における目瞑り状態/目開き状態の判定について説明する。   Next, the determination of the eye-meditation state / open-eye state in the imaging apparatus of FIG.

図2は、図1の撮像装置における目瞑り優先状態と目開き優先状態の切り替えを説明するための図である。図2(a)は被写体が最初から目を開いている状態、図2(b)は被写体が最初から目を閉じている状態を示す。図2(c)は被写体が最初は目を開いていて、途中から目を閉じた場合、図2(d)は被写体が最初から目を閉じていて、途中で一度目を開くが再度目を閉じた場合を示す。   FIG. 2 is a diagram for explaining switching between the eye-meditation priority state and the eye opening priority state in the imaging apparatus of FIG. FIG. 2A shows a state in which the subject has opened eyes from the beginning, and FIG. 2B shows a state in which the subject has closed eyes from the beginning. FIG. 2 (c) shows that the subject initially opened his eyes and closed his eyes from the middle. FIG. 2 (d) shows that the subject closed his eyes from the beginning and opened his eyes once. Indicates closed case.

目瞑り優先状態、目開き優先状態とは、それぞれの状態を優先する状態のことである。すなわち、目瞑り優先状態とは、撮影者が、被写体が目瞑りしている画像を撮影したい状況であると判断して、撮像装置が目瞑り画像を優先的に選択する状態を意味する。被写体が目瞑りしている画像には、例えば、泣き顔や大笑い顔、寝顔などが含まれる。一方、目開き優先状態とは、撮影者が、被写体が目開きしている画像を撮影したい状況であると判断して、撮像装置が目開き画像を優先的に選択する状態を意味する。   The eye-meditation priority state and the eye opening priority state are states in which each state is prioritized. That is, the eye-meditation priority state means a state in which the photographer determines that the subject wants to capture an image in which the subject is eye-closure, and the imaging device preferentially selects the eye-meditation image. Examples of images in which the subject is meditating include a crying face, a laughing face, and a sleeping face. On the other hand, the opening priority state means a state in which the photographer determines that the subject wants to take an image with an opening of the subject and the imaging device preferentially selects the opening image.

図2(a)〜図2(d)において、撮影枚数601は、撮像装置が連写撮影を行った際の撮影枚数である。被写体の目の状態602は、連写撮影により得られた複数の画像のそれぞれに写った被写体の目の状態である。撮像装置において、目を瞑っていると判定したときは「目瞑り」、目を開けていると判定したときは目開きとなる。なお、1つの画像に複数の被写体が写っている場合には、ユーザが指定した被写体の目の状態であってもよいし、最も多い被写体の目の状態であってもよい。優先状態603は、撮像装置の優先状態を示している。   2A to 2D, the number of shots 601 is the number of shots when the imaging apparatus performs continuous shooting. The subject's eye state 602 is the state of the subject's eye shown in each of a plurality of images obtained by continuous shooting. In the imaging apparatus, when it is determined that the eyes are meditated, “eye meditation” is performed, and when it is determined that the eyes are opened, the eyes are opened. When a plurality of subjects are shown in one image, the eye state of the subject specified by the user may be used, or the eye state of the most subject may be used. A priority state 603 indicates a priority state of the imaging apparatus.

図2(a)及び図2(b)は最大撮影枚数(ここでは15枚)まで撮影した場合であり、図2(c)及び図2(d)は、撮影者が撮像装置に撮影停止指示を行い、最大撮影枚数になる前に撮影を終了した場合である。   2 (a) and 2 (b) show the case where the maximum number of shots (15 shots in this case) is taken, and FIGS. 2 (c) and 2 (d) show that the photographer instructs the imaging apparatus to stop shooting. This is a case where shooting is finished before the maximum number of shots is reached.

図2(a)に示す例では、被写体が最初から目を開いている状態であることが分かる。所々で、被写体の目瞑りが発生しているのは、被写体が瞬きを行うためである。この場合、撮像装置では、撮影者が、被写体が目を開いている状態を撮りたい状況であると判断する。   In the example shown in FIG. 2A, it can be seen that the subject is in the state of opening his eyes from the beginning. The reason why the subject is meditating in some places is because the subject blinks. In this case, in the image pickup apparatus, the photographer determines that it is a situation where the subject wants to take a picture with his eyes open.

図2(b)に示す例では、被写体が最初から目を閉じている状態であるが、優先状態603の初期設定は目開き優先状態である。そして、被写体の目の状態602が2枚連続して目瞑り状態であったことから、目開き優先状態から目瞑り優先状態に切り替わる。このような場合、撮像装置では、撮影者が、被写体が目を閉じている状態を撮りたい状況であると判断する。なお、本実施形態では、被写体の目の状態602が2枚連続して同じであった場合に優先状態603を切り替えているが、これに限定されるものではない。例えば、コマ速に応じて、優先状態の切り替えに要する枚数を可変としてもよい。   In the example shown in FIG. 2B, the subject is in a state where the eyes are closed from the beginning, but the initial setting of the priority state 603 is the opening priority state. Since the eye state 602 of the subject is in the eye-meditation state continuously, the eye opening priority state is switched to the eye-meditation priority state. In such a case, in the imaging apparatus, the photographer determines that it is a situation where the subject wants to take a picture with his eyes closed. In the present embodiment, the priority state 603 is switched when the subject's eye state 602 is the same two consecutive times. However, the present invention is not limited to this. For example, the number of sheets required for switching the priority state may be variable according to the frame speed.

図2(c)に示す例では、被写体が最初は目を開いているが、途中から目を閉じるようになっていることが分かる。この場合、目瞑り状態の方が目開き状態よりも撮影枚数が多いので、連写撮影された画像の中から1枚を選択して記録する設定が行われていたときは、撮影者が、被写体が目を閉じている状態を撮りたい状況であると判断する。   In the example shown in FIG. 2C, it can be seen that the subject opens his eyes at first, but closes his eyes from the middle. In this case, the number of shots is larger in the closed-eye state than in the open-open state, so when one of the continuously shot images is selected and recorded, the photographer It is determined that the subject wants to take a picture with his eyes closed.

図2(d)に示す例では、被写体が最初から目を閉じていて、途中で一度目を開くが、再度目を閉じるようになっていることが分かる。この場合、目開き状態の方が目瞑り状態よりも撮影枚数が多いので、連写撮影された画像の中から1枚を選択して記録する設定が行われていたときは、撮影者が、被写体が目を開いている状態を撮りたい状況であると判断する。   In the example shown in FIG. 2D, it can be seen that the subject closes his eyes from the beginning and opens his eyes once in the middle, but closes his eyes again. In this case, since the number of shots is larger in the open state than in the closed state, when the setting is made to select and record one of the continuously shot images, the photographer It is determined that the subject wants to take a picture with his eyes open.

次に、上述した動作を踏まえて、図1の撮像装置における目瞑り状態/目開き状態判定処理の流れについて図3A、図3B、図3Cを用いて説明する。   Next, based on the above-described operation, the flow of the eye closed / open eye state determination process in the imaging apparatus of FIG. 1 will be described with reference to FIGS. 3A, 3B, and 3C.

図3A〜図3Cは、本発明の第1の実施形態に係る撮像装置で実行される画像選択処理の流れを示すフローチャートである。なお、本処理は、CPU108が不図示のメモリから制御プログラムを読み出して実行することにより、図2に示す各機能部を制御することで成されるものとする。   3A to 3C are flowcharts showing a flow of image selection processing executed by the imaging apparatus according to the first embodiment of the present invention. Note that this processing is performed by the CPU 108 reading out and executing a control program from a memory (not shown) to control each functional unit shown in FIG.

図3Aにおいて、ステップS201では、CPU108は、撮像素子102等を制御して撮像処理を実行する。撮像処理では、撮像素子102から読み出された電荷信号が、A/D変換部103、画像処理部104、フォーマット変換部105を介してDRAM106に出力され、画像データとして書き込まれる。   In FIG. 3A, in step S201, the CPU 108 controls the imaging element 102 and the like to execute imaging processing. In the imaging process, the charge signal read from the imaging element 102 is output to the DRAM 106 via the A / D conversion unit 103, the image processing unit 104, and the format conversion unit 105, and is written as image data.

次に、ステップS202では、CPU108は、DRAM106に書き込まれた画像データから顔評価値(第1の評価値)を算出する(顔評価値算出処理)。ステップS202では、CPU108は第1の評価値算出手段として機能する。この顔評価値算出処理の詳細については後述する。   Next, in step S202, the CPU 108 calculates a face evaluation value (first evaluation value) from the image data written in the DRAM 106 (face evaluation value calculation processing). In step S202, the CPU 108 functions as a first evaluation value calculation unit. Details of this face evaluation value calculation processing will be described later.

次に、ステップS203にて、CPU108は、目瞑り検出部117を制御して、撮影した画像から目瞑りしている被写体を検出する。次に、ステップS204において、CPU108は、ステップS203の検出結果に基づいて、主被写体が目瞑り状態か否かを判定する。この主被写体とは、画面中央付近に存在し、サイズが最も大きいものとしてもよいし、予め登録していた被写体であってもよい。   Next, in step S <b> 203, the CPU 108 controls the eye-meditation detection unit 117 to detect a subject that is eye-medicing from the captured image. Next, in step S204, the CPU 108 determines whether or not the main subject is in an eye-closed state based on the detection result in step S203. This main subject may exist near the center of the screen and may have the largest size or may be a subject registered in advance.

ステップS204の判定の結果、CPU108が、主被写体が目を閉じている状態、つまり目瞑り状態であると判断した場合、図3CのステップS214に進む。一方、主被写体が目を開いている状態、つまり目開き状態であると判断した場合、ステップS205に進む。   As a result of the determination in step S204, if the CPU 108 determines that the main subject is in a state where the eyes are closed, that is, an eye-closed state, the process proceeds to step S214 in FIG. 3C. On the other hand, if it is determined that the main subject is in an open state, that is, an open state, the process proceeds to step S205.

ステップS205では、CPU108は、優先状態が目開き優先状態であるか否かの判定を行う。この優先状態の判定については、CPU108が、DRAM106内の特定の領域に保存されている情報を読み出すことにより行われる。このDRAM106内の特定の領域に保存される情報は、後述する処理により随時更新される。この情報の初期設定として、目開き状態が設定されていても、目瞑り状態が設定されていてもよい。   In step S205, the CPU 108 determines whether or not the priority state is the opening priority state. The priority state is determined by the CPU 108 reading information stored in a specific area in the DRAM 106. Information stored in a specific area in the DRAM 106 is updated as needed by processing to be described later. As an initial setting of this information, an eye opening state may be set, or an eye meditation state may be set.

ステップS205の判定の結果、CPU108が、目開き優先状態でない、すなわち目瞑り優先状態であると判定した場合はステップS209へ進む。一方、目開き優先状態であると判定した場合、ステップS206に進み、CPU108は目瞑りカウンタをクリアする。目瞑りカウンタとは、目開き優先状態において、目瞑り状態の時間が、どの程度連続したかを測るための変数である。   As a result of the determination in step S205, if the CPU 108 determines that the eye opening priority state is not set, that is, the eye closing priority state, the process proceeds to step S209. On the other hand, if it is determined that the eye opening priority state is set, the process proceeds to step S206, and the CPU 108 clears the eye closing counter. The eye-meditation counter is a variable for measuring how long the eye-meditation state has continued in the opening priority state.

次に、ステップS207にて、CPU108は、目開き優先カウンタを+1する。目開き優先カウンタとは、目開き優先状態の時間が、どの程度連続しているかを測るための変数である。目開き優先カウンタの値はDRAM106に保存される。   Next, in step S207, the CPU 108 increments the opening priority counter by one. The opening priority counter is a variable for measuring how long the opening priority state is continuous. The value of the opening priority counter is stored in the DRAM 106.

次に、ステップS208にて、CPU108は、目開き優先カウンタの値をDRAM106に記録して、図3BのステップS223へ進む。目開き優先カウンタの値を記録する理由は、優先状態が何枚連続したかを判定するためである。連写撮影された画像の中から1枚を選択して記録する設定が行われていた場合、より長く優先状態が続いた方を優先的に残すこととする。より長く状態の続いた方を優先的に残すのは、撮影者が、そのような意図を持って連続撮影を続けていると考えられるからである。   Next, in step S208, the CPU 108 records the value of the opening priority counter in the DRAM 106, and proceeds to step S223 in FIG. 3B. The reason for recording the value of the opening priority counter is to determine how many priority states have continued. In the case where the setting for selecting and recording one image from the continuously shot images is made, the one that has been in the priority state for a longer time is preferentially left. The reason why the longer-lasting state is preferentially left is because the photographer is considered to continue the continuous shooting with such an intention.

ステップS209では、CPU108は、目開きカウンタを+1する。目開きカウンタとは、目瞑り優先状態において、目開き状態の時間が、どの程度連続したかを測るための変数である。   In step S209, the CPU 108 increments the opening counter by one. The eye-opening counter is a variable for measuring how long the time of the eye-opening state is in the eye-meditation priority state.

次に、ステップS210にて、CPU108は、目瞑り優先状態での目開き顔評価値(第3の評価値)を算出する。ここでは、ステップS202で求めた顔評価値を下げるように計算が行われる。例えば、顔評価値から所定の数値(−100など)を引いたり、顔評価値に0.5を掛けることなどが挙げられる。ステップS210では、CPU108は第3の評価値算出手段として機能する。   Next, in step S210, the CPU 108 calculates an open face evaluation value (third evaluation value) in the eye-meditation priority state. Here, the calculation is performed so as to lower the face evaluation value obtained in step S202. For example, a predetermined numerical value (such as −100) is subtracted from the face evaluation value, or the face evaluation value is multiplied by 0.5. In step S210, the CPU 108 functions as a third evaluation value calculation unit.

次に、ステップS211にて、CPU108は、目開きカウンタの値が所定値以上かの判定を行う。目開きカウンタの値が所定値以上であった場合、つまり所定回数以上目を開いている状態が連続していると判断された場合は、撮影者が、目を開いている被写体を撮影したい意志があると判断する。そして、CPU108は、ステップS212にて目開き優先状態へ切り替える。つづいて、ステップS213にて、CPU108は、目開き優先カウンタをクリアし、図3BのステップS223へ進む。   Next, in step S211, the CPU 108 determines whether the value of the opening counter is equal to or greater than a predetermined value. If the value of the eye-opening counter is greater than or equal to the predetermined value, that is, if it is determined that the eye is open more than a predetermined number of times, the photographer intends to shoot a subject with open eyes. Judge that there is. Then, the CPU 108 switches to the opening priority state in step S212. Subsequently, in step S213, the CPU 108 clears the opening priority counter and proceeds to step S223 in FIG. 3B.

一方、ステップS211の判定の結果、目開きカウンタの値が所定値未満であると判定した場合は、図3BのステップS223へ進む。   On the other hand, as a result of the determination in step S211, when it is determined that the value of the opening counter is less than the predetermined value, the process proceeds to step S223 in FIG. 3B.

図3Cにおいて、ステップS214では、CPU108は、優先状態が目瞑り優先状態であるか否かの判定を行う。この判定の結果、CPU108が、目瞑り優先状態でない、すなわち目開き優先状態であると判定した場合はステップS218へ進む。一方、目瞑り優先状態であると判定した場合、ステップS215に進み、CPU108は目開きカウンタをクリアする。   In FIG. 3C, in step S214, the CPU 108 determines whether or not the priority state is a closed eye priority state. As a result of this determination, if the CPU 108 determines that it is not in the priority state for eye closing, that is, in the priority state for opening eyes, the process proceeds to step S218. On the other hand, if it is determined that the eye-meditation priority state is set, the process proceeds to step S215, and the CPU 108 clears the opening counter.

次に、ステップS216にて、CPU108は、目瞑り優先カウンタを+1する。目瞑り優先カウンタとは、目瞑り優先状態の時間が、どの程度連続しているかを測るための変数である。目瞑り優先カウンタの値はDRAM106に保存される。   Next, in step S216, the CPU 108 increments the eyes closed priority counter. The eye-meditation priority counter is a variable for measuring how long the eye-meditation priority state continues. The value of the eyes closed priority counter is stored in the DRAM 106.

次に、ステップS217にて、CPU108は、目瞑り優先カウンタの値をDRAM106に記録して、図3BのステップS223へ進む。目瞑り優先カウンタの値を記録する理由は、優先状態が何枚連続したかを判定するためである。連写撮影された画像の中から1枚を選択して記録する設定が行われていた場合、より長く優先状態が続いた方を優先的に残すこととする。より長く状態の続いた方を優先的に残すのは、撮影者が、そのような意図を持って連続撮影を続けていると考えられるからである。   Next, in step S217, the CPU 108 records the value of the eyes closed priority counter in the DRAM 106, and proceeds to step S223 in FIG. 3B. The reason for recording the value of the eye-meditation priority counter is to determine how many priority states have continued. In the case where the setting for selecting and recording one image from the continuously shot images is made, the one that has been in the priority state for a longer time is preferentially left. The reason why the longer-lasting state is preferentially left is because the photographer is considered to continue the continuous shooting with such an intention.

ステップS218では、CPU108は、目瞑りカウンタを+1する。次に、ステップS219にて、CPU108は、目開き優先状態での目瞑り顔評価値(第4の評価値)を算出する。ここでは、ステップS202で求めた顔評価値を下げるように計算が行われる。例えば、顔評価値から所定の数値(−100など)を引いたり、顔評価値に0.5を掛けることなどが挙げられる。ステップS218では、CPU108は第4の評価値算出手段として機能する。   In step S218, the CPU 108 increments the eyes closed counter by one. Next, in step S219, the CPU 108 calculates an eye-meditation face evaluation value (fourth evaluation value) in the opening priority state. Here, the calculation is performed so as to lower the face evaluation value obtained in step S202. For example, a predetermined numerical value (such as −100) is subtracted from the face evaluation value, or the face evaluation value is multiplied by 0.5. In step S218, the CPU 108 functions as a fourth evaluation value calculation unit.

次に、ステップS220にて、CPU108は、目瞑りカウンタの値が所定値以上かの判定を行う。目瞑りカウンタの値が所定値以上であった場合、つまり所定回数以上目を閉じている状態が連続していると判断された場合は、撮影者が、目を瞑っている被写体を撮影したい意志があると判断する。そして、CPU108は、ステップS221にて目瞑り優先状態へ切り替える。つづいて、ステップS222にて、CPU108は、目瞑り優先カウンタをクリアし、図3BのステップS223へ進む。   Next, in step S220, the CPU 108 determines whether or not the value of the eye closing counter is equal to or greater than a predetermined value. If the value of the eye meditation counter is greater than or equal to the predetermined value, that is, if it is determined that the eyes are closed for a predetermined number of times, the photographer willing to shoot the subject with the eyes closed Judge that there is. In step S221, the CPU 108 switches to the eye meditation priority state. Subsequently, in step S222, the CPU 108 clears the eyes closed priority counter and proceeds to step S223 in FIG. 3B.

図3Bにおいて、ステップS223では、CPU108は、画像評価値を算出する。
ここでは、目瞑り優先状態で目瞑りと判定された場合又は目開き優先状態で目開きと判定された場合において、ステップS202で求めた顔評価値から、最終的に画像に付与する画像評価値(第2の評価値)が算出される。一方、目瞑り優先状態で目開きと判定された場合又は目開き優先状態で目瞑りと判定された場合、ステップS210で算出した目開き顔評価値又はステップS219で算出した目瞑り顔評価値から、最終的に画像に付与する画像評価値(第2の評価値)が算出される。ステップS223では、CPU108は第2の評価値算出手段として機能する。
In FIG. 3B, in step S223, the CPU 108 calculates an image evaluation value.
In this case, when it is determined that the eyes are closed in the eye-meditation priority state, or when it is determined that the eyes are opened in the opening priority state, the image evaluation value that is finally given to the image from the face evaluation value obtained in step S202. (Second evaluation value) is calculated. On the other hand, when it is determined that the eyes are open in the priority state of eye opening or when it is determined that the eyes are closed in the priority state of opening the eyes, from the eye opening face evaluation value calculated in step S210 or the eye closing face evaluation value calculated in step S219. Then, an image evaluation value (second evaluation value) finally given to the image is calculated. In step S223, the CPU 108 functions as a second evaluation value calculation unit.

次に、ステップS224では、CPU108は、処理の対象となる撮影画像が1枚目の画像かを判定する。この判定の結果、1枚目の画像であると判定した場合、CPU108は、その1枚目の画像を記録予定画像としてDRAM106に保存して、ステップS227へ進む。一方、1枚目の画像でない、つまり2枚目以降の画像であると判定した場合、ステップS225に進む。   Next, in step S224, the CPU 108 determines whether the captured image to be processed is the first image. As a result of this determination, if it is determined that the image is the first image, the CPU 108 stores the first image in the DRAM 106 as a recording-scheduled image, and proceeds to step S227. On the other hand, if it is determined that the image is not the first image, that is, the image after the second image, the process proceeds to step S225.

ステップS225では、CPU108は、撮影した画像の画像評価値(現在の画像評価値)と、記録予定画像としてDRAM106に保存されている画像の評価値とを比較する。この比較対象となる撮影した画像の画像評価値は、ステップS223で算出した画像評価値である。   In step S225, the CPU 108 compares the image evaluation value of the captured image (current image evaluation value) with the evaluation value of the image stored in the DRAM 106 as a recording-scheduled image. The image evaluation value of the captured image to be compared is the image evaluation value calculated in step S223.

また、ステップS225では、CPU108は、目瞑り優先カウンタの値と目開き優先カウンタの値を比較し、優先カウンタの値が所定値以上高い方を、画像評価値に関わらず、優先的に記録予定画像とする。すなわち、目瞑り優先カウンタの値と目開き優先カウンタの値を比較することで、どちらの優先状態が連続して続いたかを判断し、より長い時間、優先状態が続いた方の画像を優先する。   In step S225, the CPU 108 compares the value of the eye priority priority counter with the value of the opening priority counter, and preferentially records the higher priority counter value by a predetermined value or higher regardless of the image evaluation value. An image. That is, by comparing the value of the eye-opening priority counter and the value of the opening priority counter, it is determined which priority state has continued continuously, and priority is given to the image having the priority state for a longer time. .

ステップS226では、CPU108は、現在の画像評価値が高いか否かを判定する。CPU108は、現在の画像評価値が高いと判断した場合、或いは、現在の優先カウンタの値が所定値以上高いと判断した場合は、ステップS227にて、記録予定画像を現在の画像に更新する。これにより、DRAM106に保存されている画像が現在の画像に置き換わる。ステップS226の判定の結果、CPU108が、現在の画像評価値が高くないと判断した場合は、ステップS228へ進む。   In step S226, the CPU 108 determines whether or not the current image evaluation value is high. If the CPU 108 determines that the current image evaluation value is high, or if the current priority counter value is determined to be higher than a predetermined value, the CPU 108 updates the scheduled recording image to the current image in step S227. As a result, the image stored in the DRAM 106 is replaced with the current image. As a result of the determination in step S226, if the CPU 108 determines that the current image evaluation value is not high, the process proceeds to step S228.

ステップS228では、CPU108は、現在の撮影枚数が最少撮影枚数であるかの判断を行う。最少撮影枚数とは、撮影指示が行われた場合に必ず撮影する枚数のことである。画像選択処理では、複数枚の撮影画像からユーザの撮影意図に沿う画像を選択するので、複数枚撮影する必要がある。ステップS228において、CPU108が最少撮影枚数まで達していないと判断した場合、図3AのステップS201に戻り、撮影を継続する。CPU108が最小撮影枚数まで達していると判断した場合は、ステップS229へ進む。   In step S228, the CPU 108 determines whether or not the current number of shots is the minimum number of shots. The minimum number of shots is the number of shots that must be taken when a shooting instruction is issued. In the image selection process, an image that meets the user's intention to shoot is selected from a plurality of captured images, and thus a plurality of images must be captured. If the CPU 108 determines in step S228 that the minimum number of shots has not been reached, the process returns to step S201 in FIG. 3A to continue shooting. If the CPU 108 determines that the minimum number of shots has been reached, the process proceeds to step S229.

ステップS229では、CPU108は、撮影終了指示が出されたかの判断を行う。撮影終了指示の態様については、撮影者が押下していたSW2_113を離すことであってもよいし、ユーザが操作部109を直接操作するものであってもよい。CPU108は、撮影終了指示が出されたと判断した場合は、ステップS231にて、DRAM106に保存されている画像を画像記録部107へ記録し、本処理を終了する。   In step S229, the CPU 108 determines whether a shooting end instruction has been issued. Regarding the mode of the photographing end instruction, the SW2_113 pressed by the photographer may be released, or the user may directly operate the operation unit 109. If the CPU 108 determines that an instruction to end shooting has been issued, the CPU 108 records the image stored in the DRAM 106 in the image recording unit 107 in step S231, and ends this process.

一方、ステップS229の判定の結果、撮影終了指示が出されていないと判断した場合、CPU108は、現在の撮影枚数が最大撮影枚数撮影であるかの判断を行う。最大撮影枚数とは、連続して撮影する時間が所定時間以上過ぎてしまうと、撮影するシーンが変わってしまい、評価値の比較を行うことが困難になるので、同一シーンであるように設定する枚数のことである。最大撮影枚数まで撮影していないと判断された場合は、図3AのステップS201に戻り、撮影処理が行われる。一方、ステップS230の判定の結果、最大撮影枚数まで撮影していると判断された場合は、ステップS231にて、DRAM106に書き込まれている画像を画像記録部107へ記録し、本処理を終了する。   On the other hand, as a result of the determination in step S229, if it is determined that the shooting end instruction has not been issued, the CPU 108 determines whether or not the current shooting number is the maximum shooting number shooting. The maximum number of shots is set to be the same scene, because if the continuous shooting time exceeds a predetermined time, the scene to be shot changes, making it difficult to compare evaluation values. It is the number of sheets. If it is determined that the maximum number of shots has not been taken, the process returns to step S201 in FIG. 3A to perform the shooting process. On the other hand, if it is determined in step S230 that the maximum number of shots has been taken, the image written in the DRAM 106 is recorded in the image recording unit 107 in step S231, and this process ends. .

このように、本処理では、目瞑り優先状態であるときは、撮影者が、目瞑りしている画像、例えば、泣き顔や、大笑い顔、寝顔などを撮影したい状況であると判断し、目瞑り画像であっても、画像評価値を下げない。一方、目開き優先状態であるときは、撮影者は、目開きしている画像を撮影したい状況であると判断し、目瞑り画像の評価値を下げる。目開き優先状態又は目瞑り優先状態への切り替えは、連続してその状態が続く場合や、また撮影開始時にどの優先状態であったか、などにより判断することが可能である。また、ユーザが予め、どちらの状態を優先するか設定しておいてもよい。優先状態が確定していない場合は、目開き状態としておく。   In this way, in this process, when it is in the eye-meditation priority state, it is determined that the photographer wants to photograph an image that is meditating, such as a crying face, a laughing face, or a sleeping face. Even for an image, the image evaluation value is not lowered. On the other hand, when the eye opening priority state is set, the photographer determines that it is a situation in which an image having an opening is desired to be photographed, and lowers the evaluation value of the eye closed image. Switching to the priority state for opening the eyes or the priority state for closing the eyes can be determined based on whether the state continues continuously, or which priority state was set at the start of photographing. In addition, the user may set in advance which state is prioritized. If the priority state is not fixed, the open state is set.

次に、図3AのステップS202における顔評価値算出処理について図4を参照して説明する。   Next, the face evaluation value calculation process in step S202 of FIG. 3A will be described with reference to FIG.

図4は、図3AのステップS202における顔評価値算出処理を示すフローチャートである。   FIG. 4 is a flowchart showing the face evaluation value calculation process in step S202 of FIG. 3A.

まず、ステップS301では、CPU108は、顔位置を評価する。具体的には、CPU108は、顔検出部114にて検出された顔位置情報や撮影された画像の情報から、顔位置が、画面を六分割した交点付近若しくは画面中央付近、これら3点に近い位置にあるか否かで評価を行う。図5(a)、図5(b)を用いて、ステップS301における顔位置の評価方法について説明する。   First, in step S301, the CPU 108 evaluates the face position. Specifically, the CPU 108 uses the face position information detected by the face detection unit 114 and the information of the photographed image, and the face position is close to the intersection of the screen divided into six or near the center of the screen. An evaluation is made based on whether or not it is in position. The face position evaluation method in step S301 will be described with reference to FIGS. 5 (a) and 5 (b).

図5(a)の501は、撮影者が撮像装置を横に構えて撮像したときに撮影画像である。502は、撮影画像501の画面を六分割したときの交点、503は画面中央付近の点である。画面中央付近の点は、画面中心より少し上に配置される。   Reference numeral 501 in FIG. 5A denotes a photographed image when the photographer takes an image while holding the imaging device sideways. Reference numeral 502 denotes an intersection when the screen of the photographed image 501 is divided into six, and reference numeral 503 denotes a point near the center of the screen. The point near the center of the screen is arranged slightly above the center of the screen.

図5(b)の505は、撮影者が撮像装置を縦に構えて撮像したときの撮影画像である。506は、撮影画像505の画面を六分割したときの交点、507は画面中央付近の点である。画面中法付近の点は、画面中心より上の方に配置される。   Reference numeral 505 in FIG. 5B denotes a photographed image when the photographer holds the image pickup apparatus vertically and picks up an image. Reference numeral 506 denotes an intersection when the screen of the captured image 505 is divided into six, and 507 is a point near the center of the screen. A point near the center of the screen is placed above the center of the screen.

ステップS301では、顔検出部114により検出された顔位置がこれらの点に近ければ近いほど、CPU108が、顔位置(第1の顔位置)の評価値を高くする。   In step S301, the closer the face position detected by the face detection unit 114 is to these points, the higher the CPU 108 increases the evaluation value of the face position (first face position).

次に、ステップS302では、CPU108は、顔が画像からはみ出していないかを評価する。具体的には、CPU108は、顔検出部114にて検出された顔のサイズ、座標、さらに、画像の座標情報から、顔がはみ出していないかを判定する。顔が画像からはみ出していると判断された場合、CPU108は、顔位置(第2の顔位置)の評価値を低くする。   Next, in step S302, the CPU 108 evaluates whether the face protrudes from the image. Specifically, the CPU 108 determines whether or not the face protrudes from the size and coordinates of the face detected by the face detection unit 114 and the coordinate information of the image. When it is determined that the face protrudes from the image, the CPU 108 lowers the evaluation value of the face position (second face position).

次に、ステップS303では、CPU108は、笑顔の評価を行う。具体的には、笑顔検出部115にて検出された笑顔レベルによって、被写体が笑っていると判断された場合は、笑顔の評価値が高くなる。笑顔であるかの判断は、所定の閾値を設け、その閾値より高い数値の笑顔レベルが検出されることにより行う、などの方法がある。   Next, in step S303, the CPU 108 evaluates a smile. Specifically, when it is determined that the subject is smiling based on the smile level detected by the smile detection unit 115, the evaluation value of the smile is high. There is a method of determining whether a smile is made by setting a predetermined threshold and detecting a smile level with a numerical value higher than the threshold.

次に、ステップS304では、CPU108は、視線の評価を行う。目領域検出部116、視線検出部118により、視線が撮像装置に向いている判断された場合、CPU108は、視線の評価値を高くする。   Next, in step S304, the CPU 108 evaluates the line of sight. When the eye area detection unit 116 and the line-of-sight detection unit 118 determine that the line of sight is facing the imaging apparatus, the CPU 108 increases the evaluation value of the line of sight.

次に、ステップS305では、CPU108は、輝度の評価を行う。輝度の評価は、顔付近の輝度がより適正であるかにより行われる。顔付近の輝度が適正から大きく外れていると判断された場合、CPU108は、輝度の評価値を低くする。   Next, in step S305, the CPU 108 evaluates the luminance. The evaluation of luminance is performed based on whether the luminance near the face is more appropriate. If it is determined that the luminance near the face is significantly different from the appropriate value, the CPU 108 decreases the luminance evaluation value.

次に、ステップS306では、CPU108は、ピント状態の評価を行う。CPU108は、画像処理部104にて抽出される特性周波数帯域の信号成分から画像のピント状態を検出し、ブレなどにより所定以上ピントが合っていないと判断した場合、ピント状態の評価値を低くする。   Next, in step S306, the CPU 108 evaluates the focus state. The CPU 108 detects the focus state of the image from the signal component of the characteristic frequency band extracted by the image processing unit 104, and when it is determined that the focus is not more than a predetermined due to blur or the like, the CPU 108 lowers the evaluation value of the focus state. .

そして、CPU108は、上述したステップS301〜S306にて得られた各評価値に基づいて、顔評価値を算出する。例えば、全ての評価値を足し合わせてもよいし、各評価値に重みづけを行い、算出してもよい。また、ピント評価値以外は足し合わせ、その足し合わせた値に対して、ピント評価値を掛けることによって算出してもよい。   Then, the CPU 108 calculates a face evaluation value based on each evaluation value obtained in steps S301 to S306 described above. For example, all the evaluation values may be added together, or each evaluation value may be weighted and calculated. Alternatively, the values other than the focus evaluation value may be added together, and the added value may be multiplied by the focus evaluation value.

上記第1の実施形態によれば、得られた複数の画像から所定の条件に基づく顔評価値を算出し、特定の被写体が目を瞑っている状態であるか、目を開いている状態であるかを判断する。そして、特定の被写体が目を瞑っている状態であると判断された場合は、目瞑り優先状態に切り替え、特定の被写体が目を開いている状態であると判断された場合は、目開き優先状態に切り替える。さらに、目瞑り優先状態のときに、特定の被写体が目を瞑っている状態であると判断された場合、及び、目開き優先状態のときに、特定の被写体が目を開いている状態であると判断された場合には、顔評価値から画像評価値を算出する。そして、算出された画像評価値に応じて、記録する画像を選択する。これにより、撮影者が意図する特定の被写体の泣き顔や寝顔のような目を瞑った顔の画像を効率よく記録できると共に、被写体の目が開いている画像をも効率よく記録することができる。   According to the first embodiment, a face evaluation value based on a predetermined condition is calculated from a plurality of obtained images, and a specific subject is in a state where his eyes are closed or his eyes are open. Determine if there is. If it is determined that the specific subject is in the state of meditating, the eyes are switched to the priority state. If it is determined that the specific subject is in the state of opening the eyes, priority is given to opening the eyes. Switch to state. Furthermore, when it is determined that the specific subject is in the state of meditating when the eyes are in the priority state, and when the opening priority is in the state, the specific subject is in the state where the eyes are open. If it is determined, the image evaluation value is calculated from the face evaluation value. Then, an image to be recorded is selected according to the calculated image evaluation value. Thereby, it is possible to efficiently record an image of a face with a closed eye such as a crying face or sleeping face of a specific subject intended by the photographer, and also efficiently record an image with the subject's eyes open.

なお、上記実施形態では、記録予定画像を1枚だけ記録する場合について説明したが、複数枚を記録するようにしてもよい。例えば、予め設定された基準値を超える画像評価値が付与された画像のみを記録するように構成してもよい。また、記録する枚数を予め設定して、当該枚数に達したときに画像を記録するように設定してもよい。   In the above-described embodiment, the case where only one scheduled recording image is recorded has been described. However, a plurality of images may be recorded. For example, only an image to which an image evaluation value exceeding a preset reference value is assigned may be recorded. Alternatively, the number of sheets to be recorded may be set in advance, and the image may be recorded when the number is reached.

[第2の実施形態]
本発明の第2の実施の形態に係る撮像装置は、その構成が図1を用いて説明した上記第1の実施の形態に係る撮像装置と同じであり、同一の構成要素については同一の符号を用いて、その説明を省略する。
[Second Embodiment]
The imaging apparatus according to the second embodiment of the present invention has the same configuration as the imaging apparatus according to the first embodiment described with reference to FIG. 1, and the same components are denoted by the same reference numerals. The description will be omitted.

本発明の第2の実施形態に係る撮像装置における画像選択処理について図6A、図6B、図6Cを参照して説明する。   Image selection processing in the imaging apparatus according to the second embodiment of the present invention will be described with reference to FIGS. 6A, 6B, and 6C.

図6A〜図6Cは、本発明の第2の実施形態に係る撮像装置で実行される画像選択処理の流れを示すフローチャートである。なお、図3A〜図3Cを用いて説明したステップと同一のステップについては、同一のステップ番号を付して、その詳細な説明は省略する。   6A to 6C are flowcharts showing a flow of image selection processing executed by the imaging apparatus according to the second embodiment of the present invention. The same steps as those described with reference to FIGS. 3A to 3C are denoted by the same step numbers, and detailed description thereof is omitted.

図6Aでは、ステップS205の判定の結果、CPU108が目開き優先状態であると判定した場合、ステップS401に進み、目開き優先状態での目開き顔評価値を算出する。ここでは、ステップS202で求めた顔評価値を上げるように計算が行われる。例えば、顔評価値に対して、所定数値を足したり、1より大きい所定係数を掛けたりすることが挙げられる。   In FIG. 6A, when the CPU 108 determines that the opening priority state is set as a result of the determination in step S205, the process proceeds to step S401, and the opening face evaluation value in the opening priority state is calculated. Here, the calculation is performed so as to increase the face evaluation value obtained in step S202. For example, a predetermined numerical value is added to the face evaluation value, or a predetermined coefficient larger than 1 is multiplied.

そして、ステップS206に進み、CPU108が目瞑りカウンタをクリアした後、図6BのステップS405へ進む。   Then, the process proceeds to step S206, and after the CPU 108 clears the eyes closed counter, the process proceeds to step S405 in FIG. 6B.

また、図6Aにおいて、ステップS212の後は、図3AのステップS213を実行することなく、図6BのステップS405へ進む。   In FIG. 6A, after step S212, the process proceeds to step S405 in FIG. 6B without executing step S213 in FIG. 3A.

図6Cでは、ステップS214の判定の結果、CPU108が目瞑り優先状態であると判定した場合、ステップS402に進み、目瞑り優先状態での目瞑り顔評価値を算出する。ここでは、ステップS202で求めた顔評価値を上げるように計算が行われる。例えば、顔評価値に対して、所定数値を足したり、1より大きい所定係数を掛けたりすることが挙げられる。   In FIG. 6C, when the CPU 108 determines that the eye-meditation priority state is determined as a result of the determination in step S214, the process proceeds to step S402, and the eye-meditation face evaluation value in the eye-meditation priority state is calculated. Here, the calculation is performed so as to increase the face evaluation value obtained in step S202. For example, a predetermined numerical value is added to the face evaluation value, or a predetermined coefficient larger than 1 is multiplied.

そして、ステップS215に進み、CPU108は目開きカウンタをクリアした後、図6BのステップS405へ進む。   In step S215, the CPU 108 clears the opening counter, and then proceeds to step S405 in FIG. 6B.

また、図6Cにおいて、ステップS221の後は、図3CのステップS222を実行することなく、図6BのステップS405へ進む。   In FIG. 6C, after step S221, the process proceeds to step S405 in FIG. 6B without executing step S222 in FIG. 3C.

図6BのステップS405では、CPU108は、画像評価値を算出する。ここでは、目瞑り優先状態で目瞑りと判定された場合又は目開き優先状態で目開きと判定された場合において、ステップS401やステップS402で求めた顔評価値から、最終的に画像に付与する画像評価値が算出される。反対に、目瞑り優先状態で目開きと判定された場合又は目開き優先状態で目瞑りと判定された場合では、ステップS211やステップS220で算出した目開き顔評価値又は目瞑り顔評価値から、最終的に画像に付与する画像評価値が算出される。   In step S405 of FIG. 6B, the CPU 108 calculates an image evaluation value. Here, when it is determined that the eyes are closed in the eye-meditation priority state or when it is determined that the eyes are opened in the eye-open priority state, the face evaluation value obtained in step S401 or step S402 is finally given to the image. An image evaluation value is calculated. On the contrary, when it is determined that the eyes are open in the priority state of eye opening or when it is determined that the eyes are closed in the priority state of opening the eyes, the eye opening face evaluation value or the eye closing face evaluation value calculated in step S211 or step S220 is used. Then, an image evaluation value finally given to the image is calculated.

次に、ステップS224では、CPU108は、処理の対象となる撮影画像が1枚目の画像かを判定する。本実施形態では、目開き、目瞑りの優先状態が切り替わった時点で、画像記録部107への画像データの記録が行われる。この記録が行われた後の1枚目も、ここで判断される。記録後の1枚目であれば、CPU108が1枚目の画像であると判断し、ステップS227にて、記録予定画像を現在の画像に更新する。これにより、DRAM106に保存されている画像が現在の画像に置き換わる。   Next, in step S224, the CPU 108 determines whether the captured image to be processed is the first image. In the present embodiment, image data is recorded in the image recording unit 107 at the time when the priority of eye opening and eye closing is switched. The first sheet after this recording is also determined here. If it is the first image after recording, the CPU 108 determines that it is the first image, and updates the scheduled recording image to the current image in step S227. As a result, the image stored in the DRAM 106 is replaced with the current image.

図6BのステップS403では、CPU108は、目開き、目瞑りの優先状態が切り替わったか否かの判断を行う。優先状態が切り替わった場合、CPU108は、それまでの評価において、記録予定画像としてDRAM106に記録されている画像を画像記録部107へ記録して(ステップS404)、図6AのステップS201に戻り、撮像処理を行う。   In step S403 of FIG. 6B, the CPU 108 determines whether or not the priority state of eye opening and eye closing has been switched. When the priority state is switched, the CPU 108 records the image recorded in the DRAM 106 as the recording scheduled image in the image recording unit 107 in the evaluation so far (step S404), returns to step S201 in FIG. Process.

このように、優先状態が切り替わるときに、画像の記録動作を行うことで、目開き優先状態、目瞑り優先状態において、撮影書の所望の画像を、それぞれ記録することが可能である。   As described above, by performing the image recording operation when the priority state is switched, it is possible to record a desired image of the photographed document in the opening priority state and the eye closing priority state.

上記第2の実施形態によれば、目開き、目瞑りの優先状態が切り替わったときに、目開き顔評価値、目瞑り顔評価値を算出するので、処理速度や処理効率を向上させることが可能となる。   According to the second embodiment, the opening face evaluation value and the eye closing face evaluation value are calculated when the priority of eye opening and eye closing is switched, so that the processing speed and processing efficiency can be improved. It becomes possible.

上記実施形態では、本発明を撮像装置に適用した場合について説明したが、これに限定されず、画像処理装置であってもよいことは云うまでもない。なお、画像処理装置に適用された場合、撮像機能がなく、撮影終了指示や撮影枚数のカウント等を行わないことから、例えば、図3B、図6BのステップS228〜S230については削除されていてもよい。   In the above-described embodiment, the case where the present invention is applied to the imaging apparatus has been described. However, the present invention is not limited to this and may be an image processing apparatus. Note that when applied to an image processing apparatus, since there is no imaging function and no shooting end instruction or the number of shots is counted, for example, steps S228 to S230 in FIGS. 3B and 6B may be deleted. Good.

また、上記実施形態では、連写撮影に適用した場合について説明したが、これに限定されず、動画撮影を行った際のそれぞれのフレーム画像に対して画像評価値を付与する場合にも適用できる。すなわち、動画の中から、画像評価値の高いフレーム画像を抽出したり、画像評価値を用いて連続するフレーム画像を区切る位置の目安としたりすることが可能となる。
また、本発明は、以下の処理を実行することによっても実現される。即ち、上述した実施形態の機能を実現するソフトウェア(プログラム)を、ネットワーク又は各種記憶媒体を介してシステム或いは装置に供給し、そのシステム或いは装置のコンピュータ(またはCPUやMPU等)がプログラムを読み出して実行する処理である。
Moreover, although the case where it applied to continuous shooting was demonstrated in the said embodiment, it is not limited to this, It can apply also when giving an image evaluation value with respect to each frame image at the time of video shooting. . In other words, it is possible to extract a frame image having a high image evaluation value from the moving image, or to use it as a guideline for a position where continuous frame images are separated using the image evaluation value.
The present invention can also be realized by executing the following processing. That is, software (program) that realizes the functions of the above-described embodiments is supplied to a system or apparatus via a network or various storage media, and a computer (or CPU, MPU, or the like) of the system or apparatus reads the program. It is a process to be executed.

101 撮像レンズ
102 撮像素子
104 画像処理部
108 システム制御部(CPU)
114 顔検出部
115 笑顔検出部
116 目領域検出部
117 目瞑り検出部
118 視線検出部
DESCRIPTION OF SYMBOLS 101 Imaging lens 102 Image sensor 104 Image processing part 108 System control part (CPU)
114 face detection unit 115 smile detection unit 116 eye region detection unit 117 eye meditation detection unit 118 gaze detection unit

Claims (11)

被写体を連続して撮像することが可能な撮像手段と、
前記撮像手段から得られた画像から所定の条件に基づく第1の評価値を算出する第1の評価値算出手段と、
前記撮像手段から得られた画像から特定の被写体が目を瞑っている状態であるか、目を開いている状態であるかを判断する判断手段と、
前記撮像手段から得られた複数の画像から前記特定の被写体が目を瞑っている状態であると判断された場合は、前記特定の被写体が目を瞑っている目瞑り画像を優先する目瞑り優先状態に切り替え、前記判断手段により前記特定の被写体が目を開いている状態であると判断された場合は、前記特定の被写体が目を開いている目開き画像を優先する目開き優先状態に切り替える切り替え手段と、
前記第1の評価値から、前記画像に付与する第2の評価値を算出する第2の評価値算出手段と、
前記算出された第2の評価値に応じて、記録する画像を選択する選択手段と
を備え、
前記第2の評価値算出手段は、前記目瞑り優先状態のときに、前記判断手段により前記特定の被写体が目を瞑っている状態であると判断された場合には、目を開いている状態であると判断された場合よりも、前記第1の評価値から算出される前記第2の評価値を高くし、前記目開き優先状態のときに、前記判断手段により前記特定の被写体が目を開いている状態であると判断された場合には、目を瞑っている状態であると判断された場合よりも、前記第1の評価値から算出される前記第2の評価値を高くすることを特徴とする撮像装置。
Imaging means capable of continuously imaging a subject;
First evaluation value calculation means for calculating a first evaluation value based on a predetermined condition from an image obtained from the imaging means;
A judging means for judging whether a specific subject is in a state where his eyes are meditated or in a state where his eyes are open from the image obtained from the imaging means;
If it is determined from the plurality of images obtained from the imaging means that the specific subject is in a state of meditating eyes, priority is given to the eye-meditation image in which the specific subject is meditating eyes When the determination means determines that the specific subject is in an open state, the specific subject switches to an opening priority state that prioritizes the opening image in which the specific subject has open eyes. Switching means;
Second evaluation value calculating means for calculating a second evaluation value to be applied to the image from the first evaluation value;
Selecting means for selecting an image to be recorded in accordance with the calculated second evaluation value;
The second evaluation value calculation means is in a state where the eyes are open when the determination means determines that the specific subject is meditating in the eye-meditation priority state. The second evaluation value calculated from the first evaluation value is set higher than the case where it is determined that the specific subject is in the eye opening priority state by the determination means. When it is determined that the eye is open, the second evaluation value calculated from the first evaluation value is set higher than when it is determined that the eye is closed. An imaging apparatus characterized by the above.
前記目瞑り優先状態のときに、前記判断手段により前記特定の被写体が目を開いている状態であると判断された場合には、前記第1の評価値から第3の評価値を算出する第3の評価値算出手段と、
前記目開き優先状態のときに、前記判断手段により前記特定の被写体が目を瞑っている状態であると判断された場合には、前記第1の評価値から第4の評価値を算出する第4の評価値算出手段とをさらに備え、
前記第2の評価値算出手段は、前記第3の評価値または前記第4の評価値から前記第2の評価値を算出することを特徴とする請求項1記載の撮像装置。
When the determination means determines that the specific subject is in an open state in the eye-meditation priority state, a third evaluation value is calculated from the first evaluation value. 3 evaluation value calculating means;
When the determination means determines that the specific subject is in a state where the eyes are meditated in the eye opening priority state, a fourth evaluation value is calculated from the first evaluation value. 4 evaluation value calculation means,
The imaging apparatus according to claim 1, wherein the second evaluation value calculation unit calculates the second evaluation value from the third evaluation value or the fourth evaluation value.
前記第1の評価値算出手段は、前記特定の被写体の顔の位置、前記特定の被写体の特徴量、画像のピント状態、輝度を含む画像の状態から、前記第1の評価値を算出することを特徴とする請求項1または2に記載の撮像装置。   The first evaluation value calculation means calculates the first evaluation value from the position of the face of the specific subject, the feature amount of the specific subject, the focus state of the image, and the state of the image including luminance. The imaging device according to claim 1, wherein: 前記撮像手段が連続して複数の画像を撮像したときには、前記選択手段は、当該複数の画像のそれぞれに付与した第2の評価値のうち最も値が高い画像を選択することを特徴とする請求項1乃至3のいずれか1項に記載の撮像装置。   When the imaging unit continuously captures a plurality of images, the selection unit selects an image having the highest value among the second evaluation values assigned to each of the plurality of images. Item 4. The imaging device according to any one of Items 1 to 3. 前記第3の評価値算出手段は、前記第1の評価値を下げるように前記第3の評価値を算出し、
前記第4の評価値算出手段は、前記第1の評価値を下げるように前記第4の評価値を算出することを特徴とする請求項2に記載の撮像装置。
The third evaluation value calculating means calculates the third evaluation value so as to lower the first evaluation value;
The imaging apparatus according to claim 2, wherein the fourth evaluation value calculation unit calculates the fourth evaluation value so as to lower the first evaluation value.
前記判断手段は、前記目瞑り優先状態及び前記目開き優先状態のどちらの優先状態が連続して続いたかを判断し、
前記選択手段は、前記撮像手段により連続して撮影された複数の画像の中から1枚だけを選択する場合、前記判断手段により連続して続いたと判断された優先状態の画像から、前記第2の評価値の高い画像を選択することを特徴とする請求項1乃至5のいずれか1項に記載の撮像装置。
The determination means determines which priority state of the eye-meditation priority state or the opening priority state has continued continuously,
In the case where only one image is selected from a plurality of images continuously captured by the imaging unit, the selection unit selects the second image from the priority state image determined to be continuously continued by the determination unit. The image pickup apparatus according to claim 1, wherein an image having a high evaluation value is selected.
前記選択手段は、前記撮像手段が連続して複数の画像を撮像したときには、目瞑り優先状態及び目開き優先状態のいずれも存在する場合は、それぞれの優先状態で前記第2の評価値が高い画像を選択することを特徴とする請求項1乃至5のいずれか1項に記載の撮像装置。   When the imaging unit continuously captures a plurality of images, the selection unit has a high second evaluation value in each priority state if both the eye-meditation priority state and the opening priority state exist. The image pickup apparatus according to claim 1, wherein an image is selected. 前記切り替え手段は、優先状態が確定していない場合は、目開き優先状態とすることを特徴とする請求項1に記載の撮像装置。   The imaging apparatus according to claim 1, wherein the switching unit sets the opening priority state when the priority state is not fixed. 前記第2の評価値算出手段は、前記第1の評価値を上げるように前記第2の評価値を算出し、
前記選択手段により選択された画像を記録する記録手段は、前記切り替え手段により優先状態が切り替わったときに画像を記録することを特徴とする請求項1に記載の撮像装置。
The second evaluation value calculating means calculates the second evaluation value so as to increase the first evaluation value;
The imaging apparatus according to claim 1, wherein a recording unit that records an image selected by the selection unit records an image when a priority state is switched by the switching unit.
被写体を連続して撮像することが可能な撮像手段を備える撮像装置の画像処理方法において、
前記撮像手段から得られた画像から所定の条件に基づく第1の評価値を算出する第1の評価値算出工程と、
前記撮像手段から得られた画像から特定の被写体が目を瞑っている状態であるか、目を開いている状態であるかを判断する判断工程と、
前記撮像手段から得られた複数の画像から前記特定の被写体が目を瞑っている状態であると判断された場合は、前記特定の被写体が目を瞑っている目瞑り画像を優先する目瞑り優先状態に切り替え、前記判断工程にて前記特定の被写体が目を開いている状態であると判断された場合は、前記特定の被写体が目を開いている目開き画像を優先する目開き優先状態に切り替える切り替え工程と、
前記第1の評価値から、前記画像に付与する第2の評価値を算出する第2の評価値算出工程と、
前記算出された第2の評価値に応じて、記録する画像を選択する選択工程と
を備え、
前記第2の評価値算出工程では、前記目瞑り優先状態のときに、前記判断工程にて前記特定の被写体が目を瞑っている状態であると判断された場合には、目を開いている状態であると判断された場合よりも、前記第1の評価値から算出される前記第2の評価値を高くし、前記目開き優先状態のときに、前記判断工程にて前記特定の被写体が目を開いている状態であると判断された場合には、目を瞑っている状態であると判断された場合よりも、前記第1の評価値から算出される前記第2の評価値を高くすることを特徴とする画像処理方法。
In an image processing method of an imaging device including an imaging unit capable of continuously imaging a subject,
A first evaluation value calculating step of calculating a first evaluation value based on a predetermined condition from an image obtained from the imaging means;
A determination step of determining whether a specific subject is in a state where his eyes are meditated or in a state where his eyes are open from the image obtained from the imaging means;
If it is determined from the plurality of images obtained from the imaging means that the specific subject is in a state of meditating eyes, priority is given to the eye-meditation image in which the specific subject is meditating eyes When it is determined in the determination step that the specific subject is in an open state, the specific subject is set to an opening priority state in which priority is given to an open image in which the eye is open. A switching process for switching;
A second evaluation value calculating step of calculating a second evaluation value to be applied to the image from the first evaluation value;
A selection step of selecting an image to be recorded according to the calculated second evaluation value,
In the second evaluation value calculation step, if the specific subject is determined to be in a state where the eyes are meditating in the determination step, the eyes are opened. The second evaluation value calculated from the first evaluation value is set higher than when it is determined to be in the state, and the specific subject is determined in the determination step in the opening priority state. When it is determined that the eyes are open, the second evaluation value calculated from the first evaluation values is higher than when it is determined that the eyes are closed. An image processing method.
被写体を連続して撮像することが可能な撮像手段を備える撮像装置の画像処理方法を撮像装置に実行させるためのプログラムにおいて、
前記撮像手段から得られた画像から所定の条件に基づく第1の評価値を算出する第1の評価値算出ステップと、
前記撮像手段から得られた画像から特定の被写体が目を瞑っている状態であるか、目を開いている状態であるかを判断する判断ステップと、
前記撮像手段から得られた複数の画像から前記特定の被写体が目を瞑っている状態であると判断された場合は、前記特定の被写体が目を瞑っている目瞑り画像を優先する目瞑り優先状態に切り替え、前記判断ステップにて前記特定の被写体が目を開いている状態であると判断された場合は、前記特定の被写体が目を開いている目開き画像を優先する目開き優先状態に切り替える切り替えステップと、
前記第1の評価値から、前記画像に付与する第2の評価値を算出する第2の評価値算出ステップと、
前記算出された第2の評価値に応じて、記録する画像を選択する選択ステップと
を備え、
前記第2の評価値算出ステップでは、前記目瞑り優先状態のときに、前記判断ステップにて前記特定の被写体が目を瞑っている状態であると判断された場合には、目を開いている状態であると判断された場合よりも、前記第1の評価値から算出される前記第2の評価値を高くし、前記目開き優先状態のときに、前記判断ステップにて前記特定の被写体が目を開いている状態であると判断された場合には、目を瞑っている状態であると判断された場合よりも、前記第1の評価値から算出される前記第2の評価値を高くすることを特徴とするプログラム。
In a program for causing an imaging apparatus to execute an image processing method of an imaging apparatus including an imaging unit capable of continuously imaging a subject,
A first evaluation value calculating step of calculating a first evaluation value based on a predetermined condition from an image obtained from the imaging means;
A determination step of determining whether a specific subject is in a state where his eyes are meditated or in a state where his eyes are open from the image obtained from the imaging means;
If it is determined from the plurality of images obtained from the imaging means that the specific subject is in a state of meditating eyes, priority is given to the eye-meditation image in which the specific subject is meditating eyes When it is determined in the determining step that the specific subject is in an open state, the specific subject is set to an opening priority state that prioritizes the opening image in which the specific subject has an open eye. A switching step to switch,
A second evaluation value calculating step of calculating a second evaluation value to be given to the image from the first evaluation value;
A selection step of selecting an image to be recorded according to the calculated second evaluation value;
In the second evaluation value calculating step, the eyes are opened when it is determined in the determination step that the specific subject is meditating in the eyes in the eye-meditation priority state. The second evaluation value calculated from the first evaluation value is set higher than when it is determined to be in the state, and the specific subject is determined in the determination step in the opening priority state. When it is determined that the eyes are open, the second evaluation value calculated from the first evaluation values is higher than when it is determined that the eyes are closed. The program characterized by doing.
JP2010173623A 2010-08-02 2010-08-02 Imaging apparatus and image processing method, and image processing program Pending JP2012034276A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010173623A JP2012034276A (en) 2010-08-02 2010-08-02 Imaging apparatus and image processing method, and image processing program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010173623A JP2012034276A (en) 2010-08-02 2010-08-02 Imaging apparatus and image processing method, and image processing program

Publications (1)

Publication Number Publication Date
JP2012034276A true JP2012034276A (en) 2012-02-16

Family

ID=45847128

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010173623A Pending JP2012034276A (en) 2010-08-02 2010-08-02 Imaging apparatus and image processing method, and image processing program

Country Status (1)

Country Link
JP (1) JP2012034276A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017134765A1 (en) * 2016-02-03 2017-08-10 オリンパス株式会社 Imaging device, image processing device, image processing method, and image processing program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017134765A1 (en) * 2016-02-03 2017-08-10 オリンパス株式会社 Imaging device, image processing device, image processing method, and image processing program

Similar Documents

Publication Publication Date Title
US9060158B2 (en) Image pickup apparatus that continuously takes images to obtain multiple images, control method therefor, and storage medium
JP4196714B2 (en) Digital camera
US8077215B2 (en) Apparatus for detecting blinking state of eye
JP4720810B2 (en) Image processing apparatus, imaging apparatus, image processing method, and image processing program
KR100924685B1 (en) Imaging apparatus and control method thereof
KR101795601B1 (en) Apparatus and method for processing image, and computer-readable storage medium
JP4819001B2 (en) Imaging apparatus and method, program, image processing apparatus and method, and program
EP2741293A1 (en) Video processing apparatus and method
KR101537948B1 (en) Photographing method and apparatus using pose estimation of face
KR101755598B1 (en) Digital photographing apparatus and control method thereof
JP2008131204A (en) Imaging apparatus and its control method and program and storage medium
KR20100048600A (en) Image photography apparatus and method for proposing composition based person
JP5623256B2 (en) Imaging apparatus, control method thereof, and program
KR20100055946A (en) Method and apparatus for generating thumbnail of moving picture
JP5759170B2 (en) TRACKING DEVICE AND ITS CONTROL METHOD
US8988545B2 (en) Digital photographing apparatus and method of controlling the same
US20130222635A1 (en) Digital photographing apparatus and method of controlling the same
KR20110032250A (en) Method for auto focusing, medium for recording the method and apparatus applying the method
KR20120025341A (en) Digital photographing apparatus and control method thereof
JP5370555B2 (en) Imaging apparatus, imaging method, and program
JP2012231327A (en) Imaging apparatus, imaging method, and program
JP5383308B2 (en) Image processing device
JP2014225763A (en) Imaging apparatus, control method of the same, program, and storage medium
JP2009182880A (en) Imaging apparatus and its program
JP2012034276A (en) Imaging apparatus and image processing method, and image processing program