JP2016012845A - Imaging apparatus, method for controlling the same, and control program - Google Patents
Imaging apparatus, method for controlling the same, and control program Download PDFInfo
- Publication number
- JP2016012845A JP2016012845A JP2014133998A JP2014133998A JP2016012845A JP 2016012845 A JP2016012845 A JP 2016012845A JP 2014133998 A JP2014133998 A JP 2014133998A JP 2014133998 A JP2014133998 A JP 2014133998A JP 2016012845 A JP2016012845 A JP 2016012845A
- Authority
- JP
- Japan
- Prior art keywords
- image
- unit
- superimposed
- size
- control unit
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Studio Devices (AREA)
- Controls And Circuits For Display Device (AREA)
Abstract
Description
本発明は、撮像装置、その制御方法、および制御プログラムに関し、特に、撮影の結果得られた画像を表示する際の表示制御に関する。 The present invention relates to an imaging apparatus, a control method thereof, and a control program, and more particularly to display control when displaying an image obtained as a result of imaging.
近年、デジタルカメラなどの撮像装置において、主被写体を撮影するための第1の撮像部(以下メインカメラと呼ぶ)と撮影者を撮影するための第2の撮像部(以下インカメラと呼ぶ)を備えるものがある。このような撮像装置において、メインカメラおよびインカメラの各々で得られた画像を1つの表示装置に表示する際、インカメラで得られた画像(インカメラ画像と呼ぶ)をメインカメラで得られた画像(以下メインカメラ画像と呼ぶ)上にサブウィンドウを表示することが行われている。 In recent years, in an imaging apparatus such as a digital camera, a first imaging unit (hereinafter referred to as a main camera) for capturing a main subject and a second imaging unit (hereinafter referred to as an in-camera) for capturing a photographer. There is something to prepare. In such an image pickup apparatus, when an image obtained by each of the main camera and the in-camera is displayed on one display device, an image obtained by the in-camera (referred to as an in-camera image) is obtained by the main camera. A sub window is displayed on an image (hereinafter referred to as a main camera image).
ところが、メインカメラ画像に拘わらず、サブウィンドウはメインカメラ画像上(つまり、表示画面上)の所定の領域に表示される。このため、サブウィンドウとメインカメラ画像における主被写体(例えば、顔)が重なってしまい、主被写体の顔が見えなくなってしまうことがある。 However, the sub window is displayed in a predetermined area on the main camera image (that is, on the display screen) regardless of the main camera image. For this reason, the main subject (for example, face) in the sub window and the main camera image may overlap, and the face of the main subject may not be visible.
このような事態に対処するため、主被写体の顔と重ならない領域を探索して、サブウィンドウを表示するようにしたものがある(特許文献1参照)。 In order to deal with such a situation, there is a technique in which a sub window is displayed by searching for an area that does not overlap the face of the main subject (see Patent Document 1).
しかしながら、上述の特許文献1に記載の表示手法では、メインカメラ画像に多数の顔が存在すると、表示画面上においてサブウィンドウを表示する領域がなくなってしまうことがある。 However, in the display method described in Patent Document 1 described above, if a large number of faces exist in the main camera image, there may be no area for displaying the subwindow on the display screen.
そこで、本発明の目的は、メインカメラ画像に複数の顔が存在する場合においても、メインカメラ画像に存在する顔に影響を与えることなくインカメラ画像を表示するためのサブウィンドウを表示することのできる撮像装置、その制御方法、および制御プログラムを提供することにある。 Therefore, an object of the present invention is to display a sub-window for displaying an in-camera image without affecting the faces existing in the main camera image even when there are a plurality of faces in the main camera image. An imaging apparatus, a control method thereof, and a control program are provided.
上記の目的を達成するため、本発明による撮像装置は、被写体を撮像して第1の画像を得る第1の撮像手段と、被写体以外の撮影者を撮像して第2の画像を得る第2の撮像手段とを有し、表示部に表示された前記第1の画像に前記第2の画像を重ねて表示する撮像装置であって、前記第1の画像において予め定められた部位を第1の部位として検出する検出手段と、前記第1の部位の位置に応じて、前記第2の画像を前記第1の画像に重ねる位置を制御する制御手段と、を有し、前記検出手段により前記第1の画像において複数の前記第1の部位が検出される場合、前記制御手段は、複数の前記第1の部位の優先度に応じて、前記第2の画像を前記第1の画像に重ねる位置を制御することを特徴とする。 In order to achieve the above object, an imaging apparatus according to the present invention includes a first imaging unit that captures a subject and obtains a first image, and a second that captures a photographer other than the subject and obtains a second image. And an imaging device that displays the second image superimposed on the first image displayed on the display unit, wherein a predetermined part of the first image is defined as the first part. Detecting means for detecting as a part of the first part, and control means for controlling a position at which the second image is superimposed on the first image according to the position of the first part. When a plurality of the first parts are detected in the first image, the control unit superimposes the second image on the first image according to the priority of the plurality of the first parts. The position is controlled.
本発明による制御方法は、被写体を撮像して第1の画像を得る第1の撮像手段と、被写体以外の撮影者を撮像して第2の画像を得る第2の撮像手段とを有し、表示部に表示された前記第1の画像に前記第2の画像を重ねて表示する撮像装置の制御方法であって、前記第1の画像において予め定められた部位を第1の部位として検出する検出ステップと、前記第1の部位の位置に応じて、前記第2の画像を前記第1の画像に重ねる位置を制御する制御ステップと、を有し、前記制御ステップでは、前記検出ステップにより前記第1の画像において複数の前記第1の部位が検出される場合、複数の前記第1の部位の優先度に応じて、前記第2の画像を前記第1の画像に重ねる位置を制御することを特徴とする。 The control method according to the present invention includes a first imaging unit that captures a subject and obtains a first image, and a second imaging unit that captures a photographer other than the subject and obtains a second image, A method for controlling an imaging apparatus that displays a second image superimposed on the first image displayed on a display unit, wherein a predetermined part of the first image is detected as a first part. A detection step; and a control step for controlling a position at which the second image is superimposed on the first image according to the position of the first part. In the control step, the detection step When a plurality of the first parts are detected in the first image, controlling a position at which the second image is superimposed on the first image according to the priority of the plurality of first parts. It is characterized by.
本発明による制御プログラムは、被写体を撮像して第1の画像を得る第1の撮像手段と、被写体以外の撮影者を撮像して第2の画像を得る第2の撮像手段とを有し、表示部に表示された前記第1の画像に前記第2の画像を重ねて表示する撮像装置で用いられる制御プログラムであって、前記撮像装置が備えるコンピュータに、前記第1の画像において予め定められた部位を第1の部位として検出する検出ステップと、前記第1の部位の位置に応じて、前記第2の画像を前記第1の画像に重ねる位置を制御する制御ステップと、を実行させ、前記制御ステップでは、前記検出ステップにより前記第1の画像において複数の前記第1の部位が検出される場合、複数の前記第1の部位の優先度に応じて、前記第2の画像を前記第1の画像に重ねる位置を制御することを特徴とする。 The control program according to the present invention includes a first imaging unit that captures a subject and obtains a first image, and a second imaging unit that captures a photographer other than the subject and obtains a second image, A control program for use in an imaging apparatus that displays the second image superimposed on the first image displayed on the display unit, the computer program included in the imaging apparatus, wherein the first image is predetermined. Detecting a detected part as a first part, and a control step for controlling a position at which the second image is superimposed on the first image according to the position of the first part, In the control step, when a plurality of the first parts are detected in the first image by the detection step, the second image is converted into the first image according to the priority of the plurality of first parts. Overlaid on one image And controlling the.
本発明によれば、第1の画像における第1の部位(例えば、顔)の位置に応じて、第2の画像を第1の画像に重ねる位置を制御する際、第1の画像において複数の第1の部位が検出される場合には、複数の第1の部位の優先度に応じて、第2の画像を第1の画像に重ねる位置を制御する。これによって、第1の画像に複数の顔が存在する場合においても、第1の画像に存在する顔に影響を与えることなくサブウィンドウを表示することができる。 According to the present invention, when controlling the position at which the second image is superimposed on the first image in accordance with the position of the first part (for example, the face) in the first image, When the first part is detected, the position at which the second image is superimposed on the first image is controlled according to the priority of the plurality of first parts. As a result, even when there are a plurality of faces in the first image, the sub-window can be displayed without affecting the faces existing in the first image.
以下に、本発明の実施の形態による撮像装置の一例について、図面を参照して説明する。 Hereinafter, an example of an imaging apparatus according to an embodiment of the present invention will be described with reference to the drawings.
[第1の実施形態]
図1は、本発明の第1の実施形態による撮像装置の一例についてその外観を示す図である。そして、図1(a)は背面からみた図であり、図1(b)は正面から見た図である。
[First Embodiment]
FIG. 1 is a diagram showing an appearance of an example of an imaging apparatus according to the first embodiment of the present invention. FIG. 1A is a view from the back, and FIG. 1B is a view from the front.
図示の撮像装置は、例えば、デジタルカメラ(以下単にカメラと呼ぶ)201であり、その背面側には表示部202が配置されている(図1(a)参照)。この表示部202は、例えば、液晶ディスプレイであり、表示部202には画像および各種情報が表示される。
The illustrated imaging apparatus is, for example, a digital camera (hereinafter simply referred to as a camera) 201, and a
カメラ201の上面にはシャッターボタン203および電源スイッチ206が配置されている。電源スイッチ206はカメラ201の電源をオン又はオフする際に用いられる。そして、シャッターボタン203の操作によって撮影指示が行われる。
A
表示部202の斜め右上にはモード切替スイッチ204が配置されている。モード切替スイッチ204はカメラ201において各種モードを切り替える際に用いられる。表示部202の右側には操作部205が配置されている。この操作部205は、ユーザの各種操作を受け付ける各種スイッチおよびボタンなどを有している。そして、表示部202の上側には、第2の撮像部であるインカメラ部207が配置され、このインカメラ部207によって、被写体以外のユーザである撮影者が撮影される。
A
図1(b)に示す正面側において、カメラ201は第1の撮像部であるメインカメラ部208を有している。このメインカメラ部208によって主被写体が撮影される。なお、メインカメラ部208は、主被写体をズームイン又はズームアウトするためのズーム機構を備えている。
On the front side shown in FIG. 1B, the
図2は、図1に示すカメラ201の構成についてその一例を示すブロック図である。
FIG. 2 is a block diagram showing an example of the configuration of the
前述のように、カメラ201はメインカメラ部およびインカメラ部を有している。図2においては、メインカメラ部およびインカメラ部はそれぞれ参照番号101および107が付されている。メインカメラ部101は、撮影レンズユニット(以下単に撮影レンズと呼ぶ)102を有しており、この撮影レンズ102はズームレンズおよびフォーカスレンズを含む。
As described above, the
撮影レンズ102の後段には、メカ機構部103が配置されている。メカ機構部103は、撮影レンズ102を介して入射する被写体像を拡大又は縮小して撮像素子104に結像させる。メカ機構部103は撮影レンズ102を駆動するズーム機構、光量を制御するための絞り機構、そして、撮影の際に光を遮るシャッター機構などを有している。
A mechanical mechanism unit 103 is disposed following the photographing
メカ機構部103の後段には、CMOSイメージセンサなどの撮像素子104が配置されている。撮像素子104は、結像した被写体像に応じた電気信号(アナログ信号)を出力する。撮像素子104の出力であるアナログ信号はA/D変換器105に送られる。A/D変換器105はアナログ信号デジタル信号に変換して、画像処理部106に送る。
An
画像処理部106は、A/D変換器105から送られたデジタル信号、又はメモリ制御部113から送られる画像データについて所定の画素補間、縮小などのリサイズ処理、および色変換処理を行う。さらに、画像処理部106は、撮像の結果得られた画像データにおいて、人物の顔領域を検出する顔検出処理を行う。
The
同様に、インカメラ部107は、撮影レンズ108、メカ機構部109、および撮像素子110を有している。そして、撮像素子110の出力であるアナログ信号はA/D変換器111によってデジタル信号に変換される。画像処理部112はA/D変換器111から送られるデジタル信号、又はメモリ制御部113から送られる画像データについて所定の画素補間、縮小などのリサイズ処理、および色変換処理を行う。なお、画像処理部112は、撮像の結果得られた画像データにおいて、人物の顔領域を検出する顔検出処理を行う。
Similarly, the in-
A/D変換器105の出力であるデジタル信号は、画像処理部106およびメモリ制御部113を介して、或いはメモリ制御部113を介して画像データとしてメモリ114に直接書き込まれる。同様に、A/D変換器111の出力であるデジタル信号は、画像処理部112およびメモリ制御部113を介して、或いはメモリ制御部113を介して画像データとしてメモリ114に直接書き込まれる。
The digital signal that is the output of the A /
以下の説明では、メインカメラ101で得られた画像データをメイン画像データ又はメイン画像と呼び、インカメラ107で得られた画像データをイン画像データ又はイン画像と呼ぶ。
In the following description, image data obtained by the
メモリ114には、上述のメイン画像データおよびイン画像データが格納されるとともに、表示部115に表示するための表示用画像データが格納される。なお、メモリ114は、所定枚数の静止画像又は所定時間の動画像、および音声を格納するための十分な記憶容量を備えている。メモリ114は画像表示用のメモリ(ビデオメモリ)を兼ねている。
The
メモリ制御部113はシステム制御部118の制御下で、D/A変換器116によってメモリ114に格納された表示用画像データをアナログ信号に変換して表示部115に送る。これによって、メモリ114に格納された表示用画像データはD/A変換器116を介して表示部115に画像として表示される。
Under the control of the
表示部115(図1においては表示部202で示されている)は、例えば、LCDであって、D/A変換器116の出力であるアナログ信号に応じた画像を表示する。なお、メモリ114に蓄積されたメイン画像データ又はイン画像データをD/A変換器116によってアナログ信号に変換して、当該アナログ信号を表示部115に逐次転送して表示することによってスルー画像表示(以下ライブビュー表示ともいう)が行われる。つまり、撮影の際に所謂電子ビューファインダとして機能することになる。
The display unit 115 (shown by the
不揮発性メモリ117は、電気的に消去および記録が可能なメモリであって、例えばEEPROMが用いられる。そして、不揮発性メモリ117には、システム制御部118の動作用の定数およびプログラムなどが記憶される。このプログラムには、後述する各種フローチャートを実行するためのプログラムが含まれる。
The
システム制御部118は、カメラ201全体を制御する。システム制御部118は、不揮発性メモリ117に記録されたプログラムを実行することによって、例えば、後述する処理を行う。
The
前述のメモリ114は、例えば、RAMであり、メモリ114には、システム制御部118の動作用の定数、変数、そして、不揮発性メモリ117から読み出したプログラムなどが展開される。なお、システム制御部118は、メモリ114、D/A変換器116、および表示部115などを制御して表示制御を行う。
The
図2に示す操作部119は、図1に示すシャッターボタン203、電源スイッチ206、モード切替スイッチ204、および操作部205が含まれている。モード切替スイッチは、システム制御部118の動作モードを、例えば、撮影モードおよび再生モードのいずれかに切り替える際に用いられる。撮影モードには、例えば、静止画撮影モードおよび動画撮影モードがあり、撮影モードの際には、表示部115によるライブビュー表示が行われる。再生モードにおいては、撮影済みの画像(メイン画像および/又はイン画像)が閲覧のため表示部115に表示される。
The
静止画撮影モードには、オート撮影モード、オートシーン判別モード、マニュアルモード、撮影シーン別の撮影設定となる各種シーンモード、およびプログラムAEモード、およびカスタムモードなどが含まれている。 The still image shooting mode includes an auto shooting mode, an auto scene discrimination mode, a manual mode, various scene modes for shooting settings for each shooting scene, a program AE mode, a custom mode, and the like.
静止画撮影モードに含まれるこれらのモードの切り替えは、例えば、モード切替スイッチによって行われる。なお、モード切替スイッチを用いて静止画撮影モードに一旦切り替えた後、静止画撮影モードに含まれるこれらのモードのいずれかに操作部119に備えられた他の操作部材を用いて切り替えるようにしてもよい。また、動画撮影モードにおいても複数のモードを含むようにしてもよい。
These modes included in the still image shooting mode are switched by, for example, a mode switch. It should be noted that after switching to the still image shooting mode once using the mode switch, the mode is switched to one of these modes included in the still image shooting mode using another operation member provided in the
操作部119に備えられたシャッターボタンは、第1のシャッタースイッチおよび第2のシャッタースイッチを有している。シャッターボタンが操作途中、所謂半押し状態となると(撮影準備指示)、第1のシャッタースイッチがオンとなって、第1のシャッタースイッチ信号SW1がシステム制御部118に送られる。
The shutter button provided in the
システム制御部118は、第1シャッタースイッチ信号SW1に応答して、AF(オートフォーカス)処理、AE(自動露出)処理、AWB(オートホワイトバランス)処理、およびEF(フラッシュプリ発光)処理などを開始する。
In response to the first shutter switch signal SW1, the
シャッターボタンが操作完了、所謂全押し状態となると(撮影指示)、第2のシャッタースイッチがオンとなって、第2のシャッタースイッチ信号SW2がシステム制御部118に送られる。
When the operation of the shutter button is completed, that is, in the so-called fully depressed state (shooting instruction), the second shutter switch is turned on, and the second shutter switch signal SW2 is sent to the
システム制御部118は、第2のシャッタースイッチ信号SW2に応答して、撮像素子104および110における信号読み出しから記録媒体120に画像データを書き込むまでの一連の撮影処理(本撮影)を開始する。
In response to the second shutter switch signal SW2, the
ところで、表示部115に表示される種々の機能アイコンを選択操作することによって、場面(撮影シーン)毎に、操作部119には適宜機能が割り当てられて、各種機能ボタンとして作用する。機能ボタンとして、例えば、終了ボタン、戻るボタン、画像送りボタン、ジャンプボタン、絞込みボタン、および属性変更ボタンがある。例えば、メニューボタンが操作されると、各種設定が可能なメニュー画面が表示部115に表示される。ユーザは、表示部115に表示されたメニュー画面と、操作部119に備えられた上下左右の4方向ボタンおよびSETボタンを用いて直感的に各種設定を行うことができる。
By the way, by selecting and operating various function icons displayed on the
電源部121は、アルカリ電池又はリチウム電池などの一次電池、NiCd電池、NiMH電池、又はLi電池などの二次電池を有するとともに、ACアダプターなどを備えている。記録媒体I/F122は、メモリカード又はハードディスクなどの記録媒体120とのインターフェースである。記録媒体120には、撮影の結果得られた画像が記録され、例えば、半導体メモリ又は磁気ディスクから構成される。
The
上述のカメラ201においては、所謂中央1点AF又は顔AFを用いた撮影を行うことができる。中央1点AFでは撮影画面の中央位置1点に対してAFが行われる。顔AFでは顔検出によって検出された撮影画面における顔領域に対してAFが行われる。
The above-described
ここで、カメラ201における顔検出について説明する。なお、顔検出において、メイン画像データについて第1の部位である顔領域を検出する際には、システム制御部118から画像処理部106に顔検出対象の画像データが送られる。同様に、イン画像データについて第2の部位である顔領域を検出する際には、システム制御部118から画像処理部112に顔検出対象の画像データが送られる。画像処理部106および112における顔検出処理は同様であるので、ここでは、画像処理部106に注目して顔検出処理を説明する。
Here, face detection in the
前述のように、顔検出の際には、システム制御部118は顔検出対象の画像データを画像処理部106に送る。システム制御部118の制御下で、画像処理部106は、当該画像データに対して水平方向バンドパスフィルタ処理を行う。そして、画像処理部106は水平方向バンドパスフィルタ処理された画像データに対して垂直方向バンドパスフィルタ処理を行う。これら水平および垂直方向バンドパスフィルタ処理によって、画像データのエッジ成分が検出される。
As described above, at the time of face detection, the
その後、システム制御部118は、検出されたエッジ成分についてパターンマッチング処理を行って、目および鼻、口、耳の候補群を抽出する。そして、システム制御部118は、抽出された目の候補群から、予め設定された条件(例えば、2つの目の距離および傾きなど)を満たすものを、目の対と判定して、目の対があるもののみ目の候補群として絞り込む。
Thereafter, the
システム制御部118は、絞り込まれた目の候補群とそれに対応する顔を形成する他のパーツ(鼻、口、耳)を対応付けるとともに、予め設定した非顔条件フィルタ処理を行って、顔領域を検出する。
The
なお、システム制御部118で行われる顔検出は、1つの顔領域のみではなく複数の顔領域について行われる。システム制御部118は、顔の検出結果に応じて顔領域を示す顔情報を生成する。
The face detection performed by the
このようにして、ライブビュー表示又は再生表示される画像データを画像解析して、画像データの特徴量を示す被写体情報の一つである顔情報を得て、この顔情報に応じて被写体(主被写体又は撮影者)を検出することができる。なお、被写体情報として顔情報を例に挙げて説明したが、被写体情報には、顔情報の他にも赤目判定、目の検出、目つむり検出、又は笑顔検出などで得られた様々な情報がある。 In this way, image data that is displayed in live view or reproduced and displayed is subjected to image analysis to obtain face information that is one piece of subject information indicating the feature amount of the image data. Subject or photographer). Although face information has been described as an example of subject information, the subject information includes various information obtained by red-eye determination, eye detection, eye-brow detection, or smile detection in addition to face information. is there.
図3は、図2に示すカメラ201の動作の一例を説明するためのフローチャートである。なお、図示のフローチャートに係る処理はシステム制御部118の制御下で行われる。
FIG. 3 is a flowchart for explaining an example of the operation of the
ここでは、カメラ201は撮影モードおよび再生モード」のいずれかのモードで動作するものとする。前述のように、撮影モードにおいては、表示部115にライブビュー表示が行なわれ、シャッターボタンの操作により撮影が行われる。一方、再生モードにおいては、記録媒体120に格納された撮影済みの画像データが閲覧のため画像として表示部115に再生表示される。
Here, it is assumed that the
カメラ動作が開始されると、システム制御部118は、モード切替スイッチの位置に応じて、カメラ201が撮影モードであるか否かを判定する(ステップS301)。カメラ201が撮影モードであると(ステップS301において、YES)、システム制御部118は、後述する撮影モード処理を行う(ステップS302)。
When the camera operation is started, the
一方、カメラ201が撮影モードではないと(ステップS301において、NO)、システム制御部118は、カメラ201が再生モードであると判定する。そして、システム制御部118は後述する再生モード処理を行う(ステップS303)。
On the other hand, if the
ステップS302又はS303の処理の後、システム制御部118はカメラ動作をシャットダウンさせるか否かを判定する(ステップS304)。カメラ動作をシャットダウンさせると判定すると(ステップS304において、YES)、システム制御部118はカメラ動作を終了する。カメラ動作をシャットダウンしないと判定すると(ステップS304において、NO)、システム制御部118はステップS301の処理に戻る。なお、例えば、電源スイッチ206が操作されると、システム制御部118はカメラ動作をシャットダウンさせると判定する。
After the process of step S302 or S303, the
図4は、図1に示すメインカメラ部208の撮影によって得られた画像とインカメラ部207の撮影によって得られた画像とを表示部202に表示した状態を説明するための図である。そして、図4(a)は表示状態の一例を示す図であり、図4(b)は表示状態の他の例を示す図である。
FIG. 4 is a diagram for explaining a state in which an image obtained by photographing with the
図4において、いま、表示部202(図2においては、表示部115)には、画面(メインウィンドウともいう)401が表示されているものとする。この画面401には、メイン画像が表示されるとともにイン画像が表示されている。メイン画像には主被写体である人物の顔402および403が存在する。画面401にはサブウィンドウ404が表示され、イン画像は当該サブウィンドウ404に表示される。そして、イン画像には撮影者405が存在する。
4, it is assumed that a screen (also referred to as a main window) 401 is currently displayed on the display unit 202 (the
このように、表示部202にはメイン画像とイン画像とが合成された合成画像が表示されることになる。
As described above, the
後述するように、システム制御部118はメイン画像に人物の顔が存在すると、例えば、顔402および403の位置および大きさに応じて、画面401におけるサブウィンドウ404の位置を変更する。
As will be described later, when a human face is present in the main image, the
図4(a)に示す例では、顔402および403を避ける位置である画面401の左隅にサブウィンドウ404が表示される。一方、図4(b)に示す例では、顔402および403を避ける位置である画面401の右隅にサブウィンドウ404が表示される。このように、システム制御部118はメイン画像における顔402および403の位置およびサイズに応じて、サブウィンドウ404を顔402および403に影響しない位置に表示する。
In the example shown in FIG. 4A, a
図5は、図3に示す撮影モード処理を説明するためのフローチャートである。 FIG. 5 is a flowchart for explaining the shooting mode processing shown in FIG.
撮影モード処理を開始すると、システム制御部118の制御下で、画像処理部112はイン画像について顔検出処理を行う(ステップS501)。そして、システム制御部118は、顔検出処理の結果得られた顔検出結果に応じてイン画像において顔が検出されたか否かを判定する(ステップS502)。
When the shooting mode processing is started, the
イン画像において顔が検出されると(ステップS502において、YES)、システム制御部118はメインカメラ部101についてズーム動作を行うか否かを判定する(ステップS503)。メインカメラ部101についてズーム動作を行わないと(ステップS503において、NO)、システム制御部118は、後述するようにして、サブウィンドウのサイズを算出するためのサイズ算出処理を行う(ステップS504)。
When a face is detected in the in-image (YES in step S502), the
続いて、システム制御部118は、画像処理部106を制御してメイン画像について顔検出処理を行う(ステップS505)。そして、システム制御部118は顔検出処理の結果得られた顔検出結果に応じて、メイン画像において顔が検出されたか否かを判定する。その後、システム制御部118は、後述するようにして、メイン画像の領域について領域の重み付け処理を行う(ステップS506)。
Subsequently, the
続いて、システム制御部118は、後述するようにして、表示部115に表示するサブウィンドウの表示位置を画面上(つまり、メイン画像上)のいずれの領域に表示するかを決定するためのサブウィンドウの表示位置決定処理を行う(ステップS507)。そして、システム制御部118は、表示位置決定処理で得られたサブウィンドウの表示位置を、メイン画像とイン画像とに関連付けてメモリ114に記憶する(ステップS508)。
Subsequently, as will be described later, the
なお、メイン画像とイン画像とを記憶媒体120に記憶する際には、サブウィンドウの表示位置を示す情報(状態情報という)を記憶媒体120に記憶することになる。
Note that when the main image and the in-image are stored in the
続いて、システム制御部118はサブウィンドウの表示位置に応じて、メイン画像にサブウィンドウを合成して表示部115に表示する(ステップS509)。そして、システム制御部118は撮影モード処理を終了するか否かを判定する(ステップS510)。
Subsequently, the
撮影モード処理を終了すると判定すると(ステップS510において、YES)、システム制御部118は撮影モード処理を終了する。一方、撮影モード処理を続行すると判定すると(ステップS510において、NO)、システム制御部118は現在のサブウィンドウの表示位置を所定の時間維持して(ステップS511)、S501の処理に戻る。
If it is determined that the shooting mode process is to be ended (YES in step S510),
イン画像において顔が検出されないと(ステップS502において、NO)、システム制御部118はサブウィンドウを非表示とする(ステップS512)。そして、システム制御部118は、サブウィンドウの非表示を示す非表示情報をメイン画像とイン画像とに関連付けてメモリ114に記憶する(ステップS513)。その後、システム制御部118はステップS10の処理に進む。
If no face is detected in the in-image (NO in step S502),
なお、メイン画像とイン画像とを記憶媒体120に記憶する際には、サブウィンドウの非表示を示す非表示情報が記憶媒体120に記憶される。
Note that when the main image and the in-image are stored in the
メインカメラ部101についてズーム動作を行う場合には(ステップS503において、YES)、システム制御部118はサブウィンドウのサイズおよび表示位置を予め設定されたサイズおよび位置に決定する(ステップS514)。そして、システム制御部118はステップS508の処理に進む。
When performing a zoom operation on main camera unit 101 (YES in step S503),
図6は、図5に示すサブウィンドウのサイズ算出処理を説明するためのフローチャートである。 FIG. 6 is a flowchart for explaining the sub-window size calculation processing shown in FIG.
サブウィンドウサイズ算出処理を開始すると、システム制御部118は、イン画像において顔領域の数が2つ以上であるか否かを判定する(ステップS601)。イン画像において顔領域の数が2つ以上であると(ステップS601において、YES)、システム制御部118は顔領域のうちそのサイズが最も大きい顔領域を抽出顔領域として抽出する(ステップS602)。
When the sub window size calculation process is started, the
続いて、システム制御部118はイン画像において抽出顔領域が占める割合を占有割合として算出する(ステップS603)。そして、システム制御部118は占有割合に応じて予め設定されたサイズにサブウィンドウのサイズを決定する(ステップS604)。その後、システム制御部118はサブウィンドウサイズ算出処理を終了する。
Subsequently, the
一方、イン画像において顔領域の数が1つであると(ステップS601において、NO)、システム制御部118はステップS603の処理に進んで、イン画像に存在する一つの顔領域のイン画像に対する占有割合を算出する。
On the other hand, if the number of face areas in the in-image is one (NO in step S601), the
図7は、図5に示す領域重み付け処理を説明するためのフローチャートである。 FIG. 7 is a flowchart for explaining the area weighting process shown in FIG.
領域重み付け処理を開始すると、システム制御部118は、メイン画像において検出された顔領域の各々についてそのサイズを算出する(ステップS701)。そして、システム制御部118は顔領域についてそのサイズが大きい順に重み付け係数を決定する(ステップS702)。つまり、システム制御部118は顔領域毎にそのサイズに応じて予め設定された重み付け係数を選択することになる。
When the area weighting process is started, the
続いて、システム制御部118は、メイン画像において顔領域が互いに少なくとも一部が重なり合う重複領域が存在するか否かを判定する(ステップS703)。重複領域が存在すると(ステップS703において、YES)、システム制御部118は、重なり合う顔領域においてそのサイズが最も大きい顔領域に重複領域が属すると決定する(ステップS704)。
Subsequently, the
次に、システム制御部118は、顔領域の各々について、ステップS702で決定した重み付け係数を乗算して重み付け処理を行う(ステップS705)。そして、システム制御部118は領域重み付け処理を終了する。なお、重複領域が存在しないと(ステップS703において、NO)、システム制御部118はステップS705の処理に進む。
Next, the
図8は、図5に示すサブウィンドウ表示位置決定処理を説明するためのフローチャートである。 FIG. 8 is a flowchart for explaining the sub-window display position determination process shown in FIG.
サブウィンドウ表示位置決定処理を開始すると、システム制御部118は、領域重み付け処理が行われたメイン画像において、重み付けされていない領域についてサブウィンドウが表示可能な領域があるか否かを判定する(ステップS801)。重み付けされていない領域においてサブウィンドウが表示可能な領域がないと(ステップS801において、NO)、システム制御部118はサブウィンドウのサイズに応じて予め設定された重み付け係数を決定する(ステップS802)。そして、システム制御部118は当該重み付け係数によってサブウィンドウのサイズを重み付け処理する。
When the sub-window display position determination process is started, the
続いて、システム制御部118は、ステップS802において重み付け処理したサブウィンドウよりも重み付けが低く、かつサブウィンドウが表示可能な領域があるか否かを判定する(ステップS803)。重み付け処理したサブウィンドウよりも重み付けが低いか又はサブウィンドウが表示可能な領域がないと(ステップS803において、NO)、システム制御部118は重み付け係数を所定の率で増加させる。つまり、システム制御部118は重み付け係数を大きくして、当該重み付け係数によってサブウィンドウのサイズを重み付け処理する。そして、システム制御部118はステップS803の処理に戻る。
Subsequently, the
重み付け処理したサブウィンドウよりも重み付けが低く、かつサブウィンドウが表示可能な領域があると(ステップS803において、YES)、システム制御部118は、当該領域をサブウィンドウの表示位置として決定する(ステップS805)。そして、システム制御部118はサブウィンドウ表示位置決定処理を終了する。
If there is an area where the weight is lower than the weighted subwindow and the subwindow can be displayed (YES in step S803),
なお、重み付けされていない領域においてサブウィンドウが表示可能な領域があると(ステップS801において、YES)、システム制御部118はステップS805の処理に進んで、当該領域をサブウィンドウの表示位置として決定する。この際、複数の領域が存在する場合には、システム制御部118は最も面積の大きい領域をサブウィンドウの表示位置として決定することになる。
If there is an area in which the sub window can be displayed in the unweighted area (YES in step S801), the
図9は、図3に示す再生モード処理を説明するためのフローチャートである。 FIG. 9 is a flowchart for explaining the playback mode processing shown in FIG.
再生モード処理を開始すると、システム制御部118は記憶媒体120に記録された画像に関連付けてサブウィンドウの状態情報が記録されているか否かを判定する(ステップS901)。サブウィンドウの状態情報が記録されていると(ステップS901において、有)、システム制御部118はメモリ制御部113によって記憶媒体120からメイン画像およびイン画像を読み出す。そして、システム制御部118はメイン画像を表示部115に表示するとともに、サブウィンドウの状態情報に応じてメイン画像上にサブウィンドウを表示しイン画像をサブウィンドウに表示する(ステップS902)。その後、システム制御部118は再生モード処理を終了する。
When the reproduction mode process is started, the
サブウィンドウの状態情報が記録されていないと(ステップS901において、無)、システム制御部118は記憶媒体120からメイン画像およびイン画像を読み出す。そして、システム制御部118は、図5で説明した撮影モード処理と同様の処理を行って、メイン画像にサブウィンドウを表示する(ステップS903)。その後、システム制御部118は再生モード処理を終了する。
If the sub window status information is not recorded (NO in step S901), the
このように、本発明の第1の実施形態では、メイン画像に複数の顔が存在した際においては、第1の画像における顔とサブウィンドウとに重み付けを行う。つまり、第1の画像における顔とサブウィンドウとに優先度をつけて、メイン画像の領域にサブウィンドウを表示する。これによって、メイン画像において最も影響の少ない領域にサブウィンドウを表示することができる。 As described above, in the first embodiment of the present invention, when a plurality of faces exist in the main image, the face and the sub window in the first image are weighted. That is, priority is given to the face and the subwindow in the first image, and the subwindow is displayed in the area of the main image. As a result, the sub-window can be displayed in an area having the least influence in the main image.
[第2の実施形態]
続いて、本発明の第2の実施形態によるカメラの一例について説明する。なお、第2の実施形態によるカメラの構成は図1および図2に示すカメラと同様である。また、第2の実施形態によるカメラは、第1の実施形態において図3で説明したようにしてカメラ動作を行うが、第2の実施形態では領域重み付け処理のみが第1の実施形態と異なる。
[Second Embodiment]
Next, an example of a camera according to the second embodiment of the present invention will be described. The configuration of the camera according to the second embodiment is the same as that of the camera shown in FIGS. The camera according to the second embodiment performs the camera operation as described in FIG. 3 in the first embodiment. However, only the area weighting process is different from the first embodiment in the second embodiment.
図10は、本発明の第2の実施形態で行われる領域重み付け処理を説明するためのフローチャートである。なお、図示のフローチャートにおいて、図7に示すフローチャートと同一のステップについては同一の参照符号を付して説明を省略する。 FIG. 10 is a flowchart for explaining region weighting processing performed in the second embodiment of the present invention. In the illustrated flowchart, the same steps as those in the flowchart shown in FIG.
領域重み付け処理を開始すると、システム制御部118は、図7で説明したステップS701〜S705の処理を行う。ステップS705の処理の後、システム制御部118の制御下で、画像処理部106はメイン画像において笑顔検出を行って、笑顔検出結果を得る。システム制御部118は笑顔検出結果に応じて笑顔が検出されたか否かを判定する(ステップS1001)。
When the area weighting process is started, the
笑顔が検出されないと(ステップS1001において、NO)、システム制御部118は領域重み付け処理を終了する。一方、笑顔が検出されると(ステップS1001において、YES)、システム制御部118は笑顔を検出した顔領域を含む領域について、さらに予め定められた重み付け処理を行う(ステップS1002)。そして、システム制御部118は領域重み付け処理を終了する。
If a smile is not detected (NO in step S1001),
このように、本発明の第2の実施形態では、笑顔が検出されると。当該笑顔の優先度を高くする。これによって、たとえ笑顔のサイズが小さくても、当該笑顔がサブウィンドウの表示に影響されることを回避することができる。 Thus, when a smile is detected in the second embodiment of the present invention. Increase the priority of smiles. As a result, even if the size of the smile is small, it is possible to avoid that the smile is affected by the display of the subwindow.
上述の説明から明らかなように、図2に示す例では、画像処理部106および112が検出手段として機能し、システム制御部118が制御手段として機能する。また、画像処理部106およびシステム制御部118が判定手段として機能し、システム制御部118はズーム手段として機能する。
As is clear from the above description, in the example shown in FIG. 2, the
以上、本発明について実施の形態に基づいて説明したが、本発明は、これらの実施の形態に限定されるものではなく、この発明の要旨を逸脱しない範囲の様々な形態も本発明に含まれる。 As mentioned above, although this invention was demonstrated based on embodiment, this invention is not limited to these embodiment, Various forms of the range which does not deviate from the summary of this invention are also contained in this invention. .
例えば、上記の実施の形態の機能を制御方法として、この制御方法を撮像装置に実行させるようにすればよい。また、上述の実施の形態の機能を有するプログラムを制御プログラムとして、当該制御プログラムを撮像装置が備えるコンピュータに実行させるようにしてもよい。なお、制御プログラムは、例えば、コンピュータに読み取り可能な記録媒体に記録される。 For example, the function of the above embodiment may be used as a control method, and this control method may be executed by the imaging apparatus. Further, a program having the functions of the above-described embodiments may be used as a control program, and the control program may be executed by a computer included in the imaging apparatus. The control program is recorded on a computer-readable recording medium, for example.
上記の制御方法および制御プログラムの各々は、少なくとも検出ステップおよび制御ステップを有している。 Each of the above control method and control program has at least a detection step and a control step.
また、本発明は、以下の処理を実行することによっても実現される。つまり、上述した実施形態の機能を実現するソフトウェア(プログラム)を、ネットワーク又は各種の記録媒体を介してシステム或いは装置に供給し、そのシステム或いは装置のコンピュータ(またはCPUやMPUなど)がプログラムを読み出して実行する処理である。 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 recording media, and the computer (or CPU, MPU, etc.) of the system or apparatus reads the program. To be executed.
101 メインカメラ部
104,110 撮像素子
105,111 A/D変換器
106,112 画像処理部
107 インカメラ部
113 メモリ制御部
114 メモリ
115 表示部
118 システム制御部
120 記憶媒体
DESCRIPTION OF
Claims (13)
前記第1の画像において予め定められた部位を第1の部位として検出する検出手段と、
前記第1の部位の位置に応じて、前記第2の画像を前記第1の画像に重ねる位置を制御する制御手段と、を有し、
前記検出手段により前記第1の画像において複数の前記第1の部位が検出される場合、前記制御手段は、複数の前記第1の部位の優先度に応じて、前記第2の画像を前記第1の画像に重ねる位置を制御することを特徴とする撮像装置。 A first imaging unit that captures a subject and obtains a first image; and a second imaging unit that captures a photographer other than the subject and obtains a second image, and is displayed on a display unit. An imaging device that displays the second image superimposed on a first image,
Detecting means for detecting a predetermined part in the first image as the first part;
Control means for controlling a position at which the second image is superimposed on the first image according to the position of the first part,
When the plurality of first parts are detected in the first image by the detection means, the control means displays the second image in the first image according to the priority of the plurality of first parts. An image pickup apparatus that controls a position to be superimposed on one image.
前記制御手段は、前記検出手段により検出した前記第1の部位の位置およびサイズと、前記検出手段により検出した前記第2の部位のサイズとに応じて、前記第2の画像を前記第1の画像に重ねる位置を制御することを特徴とする請求項1に記載の撮像装置。 The detecting means detects a predetermined part in the first image as a first part and detects a predetermined part in the second image as a second part;
The control means displays the second image according to the position and size of the first part detected by the detection means and the size of the second part detected by the detection means. The imaging apparatus according to claim 1, wherein a position to be superimposed on an image is controlled.
前記制御手段は、前記検出手段によって前記第1の画像において複数の前記第1の部位が検出されると、前記第1の部位の各々のサイズと前記ウィンドウのサイズとのうち大きいサイズを優先して、その優先度に基づいて前記ウィンドウの位置を制御することを特徴とする請求項3又は4に記載の撮像装置。 The control means determines the size of a window displayed when the second image is superimposed on the first image, according to the size of the second part detected by the detection means,
When the detection unit detects a plurality of the first portions in the first image, the control unit gives priority to a larger size of the size of each of the first portions and the size of the window. The imaging apparatus according to claim 3, wherein the position of the window is controlled based on the priority.
前記第1の部位が笑顔であるか否かを判定する判定手段を備え、
前記制御手段は、前記判定手段によって笑顔であると判定された第1の部位についてその優先度を高くすることを特徴とする請求項1〜7のいずれか1項に記載の撮像装置。 The first part is a face region;
Determining means for determining whether or not the first part is a smile;
The imaging device according to claim 1, wherein the control unit increases the priority of the first part determined to be a smile by the determination unit.
前記ズーム動作が行われていると、前記制御手段は、前記第2の画像を前記第1の画像に重ねる際に表示されるウィンドウのサイズおよび表示位置を予め定められたサイズおよび位置とすることを特徴とする請求項1〜9のいずれか1項に記載の撮像装置。 Zoom means for zooming the first imaging means;
When the zoom operation is being performed, the control means sets the size and position of the window displayed when the second image is superimposed on the first image to a predetermined size and position. The imaging apparatus according to any one of claims 1 to 9, wherein
前記第1の画像において予め定められた部位を第1の部位として検出する検出ステップと、
前記第1の部位の位置に応じて、前記第2の画像を前記第1の画像に重ねる位置を制御する制御ステップと、を有し、
前記制御ステップでは、前記検出ステップにより前記第1の画像において複数の前記第1の部位が検出される場合、複数の前記第1の部位の優先度に応じて、前記第2の画像を前記第1の画像に重ねる位置を制御することを特徴とする制御方法。 A first imaging unit that captures a subject and obtains a first image; and a second imaging unit that captures a photographer other than the subject and obtains a second image, and is displayed on a display unit. A method for controlling an imaging apparatus that displays a second image superimposed on a first image, the method comprising:
A detecting step of detecting a predetermined part in the first image as the first part;
And a control step for controlling a position at which the second image is superimposed on the first image according to the position of the first part,
In the control step, when a plurality of the first parts are detected in the first image by the detection step, the second image is converted into the first image according to the priority of the plurality of first parts. A control method characterized by controlling a position to be superimposed on one image.
前記撮像装置が備えるコンピュータに、
前記第1の画像において予め定められた部位を第1の部位として検出する検出ステップと、
前記第1の部位の位置に応じて、前記第2の画像を前記第1の画像に重ねる位置を制御する制御ステップと、を実行させ、
前記制御ステップでは、前記検出ステップにより前記第1の画像において複数の前記第1の部位が検出される場合、複数の前記第1の部位の優先度に応じて、前記第2の画像を前記第1の画像に重ねる位置を制御することを特徴とする制御プログラム。 A first imaging unit that captures a subject and obtains a first image; and a second imaging unit that captures a photographer other than the subject and obtains a second image, and is displayed on a display unit. A control program used in an imaging apparatus that displays the second image superimposed on a first image,
In the computer provided in the imaging device,
A detecting step of detecting a predetermined part in the first image as the first part;
And a control step for controlling a position at which the second image is superimposed on the first image according to the position of the first part,
In the control step, when a plurality of the first parts are detected in the first image by the detection step, the second image is converted into the first image according to the priority of the plurality of first parts. A control program for controlling a position to be superimposed on one image.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2014133998A JP2016012845A (en) | 2014-06-30 | 2014-06-30 | Imaging apparatus, method for controlling the same, and control program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2014133998A JP2016012845A (en) | 2014-06-30 | 2014-06-30 | Imaging apparatus, method for controlling the same, and control program |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2016012845A true JP2016012845A (en) | 2016-01-21 |
Family
ID=55229296
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2014133998A Pending JP2016012845A (en) | 2014-06-30 | 2014-06-30 | Imaging apparatus, method for controlling the same, and control program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2016012845A (en) |
-
2014
- 2014-06-30 JP JP2014133998A patent/JP2016012845A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9667888B2 (en) | Image capturing apparatus and control method thereof | |
US9838609B2 (en) | Image capturing apparatus, control apparatus and control method for controlling zooming function | |
JP2010010729A (en) | Image pickup apparatus, and program | |
JP2012156644A (en) | Electronic camera, program, and recording media | |
KR20100055938A (en) | Method and apparatus for displaying scene information, and digital photographing apparatus thereof | |
JP2014077994A (en) | Image display device, control method and control program for the same, and imaging device | |
US9992405B2 (en) | Image capture control apparatus and control method of the same | |
JP6253007B2 (en) | Display device | |
JP2014017665A (en) | Display control unit, control method for display control unit, program, and recording medium | |
JP2007081732A (en) | Imaging apparatus | |
JP2014228629A (en) | Imaging apparatus, control method and program thereof, and storage medium | |
JP2019121860A (en) | Image processing apparatus and control method therefor | |
JP2021021857A (en) | Imaging apparatus and control method thereof | |
US8866934B2 (en) | Image pickup apparatus capable of deleting video effect superimposed on moving image, method of controlling the apparatus, and moving image-recording apparatus, as well as storage medium | |
JP2016012846A (en) | Imaging apparatus, and control method and control program of the same | |
JP6768449B2 (en) | Imaging control device, control method and program of imaging device | |
US10362206B2 (en) | Image capturing apparatus having a function which assists a panning shot with specific framing | |
US9232133B2 (en) | Image capturing apparatus for prioritizing shooting parameter settings and control method thereof | |
JP6381416B2 (en) | IMAGING DEVICE, IMAGING DEVICE CONTROL METHOD, PROGRAM, AND RECORDING MEDIUM | |
JP2015034895A (en) | Imaging device and control method for the same | |
JP2014225763A (en) | Imaging apparatus, control method of the same, program, and storage medium | |
JP5854861B2 (en) | Imaging device, control method thereof, and control program | |
JP2010041629A (en) | Imaging device and controlling method and program | |
JP2016012845A (en) | Imaging apparatus, method for controlling the same, and control program | |
JP6289068B2 (en) | Imaging apparatus and control method thereof |