JP2021078154A - Zoom control device, imaging apparatus, control method of zoom control device, and control program of zoom control device - Google Patents

Zoom control device, imaging apparatus, control method of zoom control device, and control program of zoom control device Download PDF

Info

Publication number
JP2021078154A
JP2021078154A JP2021020239A JP2021020239A JP2021078154A JP 2021078154 A JP2021078154 A JP 2021078154A JP 2021020239 A JP2021020239 A JP 2021020239A JP 2021020239 A JP2021020239 A JP 2021020239A JP 2021078154 A JP2021078154 A JP 2021078154A
Authority
JP
Japan
Prior art keywords
subject
zoom
size
composition
control device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2021020239A
Other languages
Japanese (ja)
Other versions
JP7073550B2 (en
Inventor
昭洋 粒崎
Akihiro Ryuzaki
昭洋 粒崎
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
Publication of JP2021078154A publication Critical patent/JP2021078154A/en
Application granted granted Critical
Publication of JP7073550B2 publication Critical patent/JP7073550B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

To perform auto zoom control with a composition suitable for a scene determined on the basis of photographic subject detection information without requiring a photographer to select a composition.SOLUTION: A zoom control device includes: a subject detection unit 123 for detecting a subject image from an image acquired by using an imaging optical system; and an AZ control unit 122, for setting reference size of the subject image used for control of zoom magnification and controlling the zoom magnification on the basis of the set reference size and size of subject images sequentially detected by the subject detection unit 123. The AZ control unit 122 changes the reference size on the basis of at least one of whether an imaging apparatus whose zoom magnification is controlled by the zoom control device is in a hand-held state, whether a self-photographing mode is set, and still time of the subject.SELECTED DRAWING: Figure 14

Description

本発明は、画像から被写体像を検出してズーム倍率を制御する技術に関するものである。 The present invention relates to a technique of detecting a subject image from an image and controlling a zoom magnification.

従来から、ズームレンズを駆動して光学的な変倍(以下、光学ズームという)を行う機能、及び、撮影画像の一部を拡大して電子的な変倍(以下、電子ズームという)を行う機能を有する撮像装置がある。さらに、被写体の検出情報に応じて自動でズーム倍率を変更するオートズーム(自動変倍)機能がある。以下、光学ズーム動作と電子ズーム動作を総称してズーム動作という。 Conventionally, a function of driving a zoom lens to perform optical scaling (hereinafter referred to as optical zoom) and electronic scaling (hereinafter referred to as electronic zoom) by enlarging a part of a captured image are performed. There is an imaging device that has a function. Furthermore, there is an auto zoom (automatic scaling) function that automatically changes the zoom magnification according to the detection information of the subject. Hereinafter, the optical zoom operation and the electronic zoom operation are collectively referred to as a zoom operation.

特許文献1では、被写体の大きさを一定に維持するオートズーム機能を搭載するカメラの構成が開示されている。特許文献1では、オートズーム機能において「顔アップ」、「バストアップ」、「全身」といった複数の選択肢の中から撮影者が構図を選択する方法が開示されている。被写体像の大きさを維持するオートズーム制御では、選択された構図に基づいて、ズーム制御の基準となる被写体像の大きさが決定される。例えば撮影者が「全身」の構図を選択した場合、被写体である人物の全身の像を撮影画面内に収めるようにズーム動作が行われる。 Patent Document 1 discloses a configuration of a camera equipped with an auto-zoom function that maintains a constant size of a subject. Patent Document 1 discloses a method in which a photographer selects a composition from a plurality of options such as "face up", "bust up", and "whole body" in the auto zoom function. In the auto zoom control that maintains the size of the subject image, the size of the subject image that is the reference for the zoom control is determined based on the selected composition. For example, when the photographer selects the composition of "whole body", the zoom operation is performed so that the image of the whole body of the person who is the subject is captured in the shooting screen.

特開2012−95019号公報Japanese Unexamined Patent Publication No. 2012-95019

しかしながら、特許文献1では、オートズーム機能にて撮影者が撮影したい構図をあらかじめ選択しておく必要がある。そのため、撮影シーンや被写体の状態(動きや数等)が変わるごとに撮影者が設定変更の操作を行う必要がある。また、撮影するシーンに対して構図の設定が適切でない場合、適切な大きさで被写体を撮影できない可能性がある。例えば、動き回る被写体や遠くの被写体を撮影するシーンで「顔」の構図に設定された場合、被写体がフレームアウトしてしまう可能性がある。また、静止している被写体を撮影するシーンで「全身」の構図に設定された場合には、被写体が小さすぎる構図になってしまう可能性がある。 However, in Patent Document 1, it is necessary to select in advance the composition that the photographer wants to shoot with the auto zoom function. Therefore, it is necessary for the photographer to change the setting every time the shooting scene or the state of the subject (movement, number, etc.) changes. Further, if the composition setting is not appropriate for the scene to be shot, it may not be possible to shoot the subject with an appropriate size. For example, if the composition is set to "face" in a scene where a moving subject or a distant subject is photographed, the subject may be out of frame. In addition, when the composition is set to "whole body" in a scene where a stationary subject is photographed, the composition of the subject may be too small.

上記課題に鑑みて、本発明は、撮影者が構図を選択することなく、被写体の検出情報に基づき判定したシーンに適した構図でオートズーム制御を行うことを目的とする。 In view of the above problems, it is an object of the present invention to perform auto zoom control with a composition suitable for a scene determined based on subject detection information without the photographer selecting a composition.

本発明に係るズーム制御装置は、撮影光学系を用いて取得された画像から被写体像を検出する被写体検出手段と、ズーム倍率の制御に用いる被写体像の基準サイズを設定する設定手段と、前記設定手段により設定された前記基準サイズと前記被写体検出手段により逐次検出される被写体像のサイズに基づいて、ズーム倍率を制御する制御手段と、を有する。前記設定手段は、前記ズーム制御装置によりズーム倍率を制御される撮像装置が手持ち状態であるか否か、自分撮りモードが設定されているか否か、被写体の静止時間の少なくともいずれかに基づいて前記基準サイズを変更する。 The zoom control device according to the present invention includes a subject detection means for detecting a subject image from an image acquired by using a photographing optical system, a setting means for setting a reference size of the subject image used for controlling the zoom magnification, and the above-mentioned setting. It has a control means for controlling the zoom magnification based on the reference size set by the means and the size of the subject image sequentially detected by the subject detection means. The setting means is based on at least one of whether or not the image pickup device whose zoom magnification is controlled by the zoom control device is in the handheld state, whether or not the self-portrait mode is set, and the still time of the subject. Change the standard size.

本発明によれば、撮影者が構図を選択することなく、被写体の検出情報に基づき判定したシーンに適した構図でオートズーム制御を行うことができる。 According to the present invention, the auto zoom control can be performed with a composition suitable for the scene determined based on the detection information of the subject without the photographer selecting the composition.

本発明の実施形態に係るデジタルカメラの構成例を示すブロック図である。It is a block diagram which shows the structural example of the digital camera which concerns on embodiment of this invention. 焦点距離と、被写体距離ごとのフォーカスレンズ位置との関係を例示した図である。It is a figure which illustrated the relationship between the focal length and the focus lens position for each subject distance. 被写体(物体)の画面外へのフレームアウトを防止する処理の説明図である。It is explanatory drawing of the process which prevents the frame out of a subject (object) from the screen. 被写体(人物)の画面外へのフレームアウトを防止する処理の説明図である。It is explanatory drawing of the process which prevents the frame out of a subject (person) from the screen. 被写体(人物)の画面内でのサイズ変化を防止する処理の説明図である。It is explanatory drawing of the process which prevents the size change in the screen of a subject (person). 被写体が人物の場合の構図設定を説明する図である。It is a figure explaining composition setting when the subject is a person. オートズーム機能の処理の流れを説明するフローチャートである。It is a flowchart explaining the process flow of an auto zoom function. 被写体探索処理を説明するフローチャートである。It is a flowchart explaining the subject search process. 被写体探索処理の探索終了領域を説明する図である。It is a figure explaining the search end area of the subject search process. 被写体指定処理を説明するフローチャートである。It is a flowchart explaining the subject designation process. 被写体指定処理の別例を説明するフローチャートである。It is a flowchart explaining another example of subject designation processing. 基準サイズの設定処理を説明するフローチャートである。It is a flowchart explaining the setting process of a reference size. 画面サイズの算出処理を説明するフローチャートである。It is a flowchart explaining the calculation process of a screen size. 構図設定「オート」における自動構図判定を説明する遷移図である。It is a transition diagram explaining the automatic composition determination in composition setting "auto". 最周辺の被写体位置と画面サイズとを示す図である。It is a figure which shows the subject position and the screen size of the outermost periphery. 構図設定「オート」における基準サイズの算出処理を説明するフローチャートである。It is a flowchart explaining the calculation process of a reference size in composition setting "auto". 水平方向被写体位置比率の算出処理を説明するフローチャートである。It is a flowchart explaining the calculation process of the horizontal subject position ratio. 垂直方向被写体位置比率の算出処理を説明するフローチャートである。It is a flowchart explaining the calculation process of the vertical subject position ratio. 被写体位置を推定する顔個数を示す表である。It is a table which shows the number of faces for which the subject position is estimated. オートズーム制御の処理を説明するフローチャートである。It is a flowchart explaining the process of auto zoom control. ズーム動作を説明するフローチャートである。It is a flowchart explaining a zoom operation. 第2の実施形態における構図設定「オート」における自動構図判定を説明する遷移図である。It is a transition diagram explaining the automatic composition determination in composition setting "auto" in 2nd Embodiment.

(第1の実施形態)
以下に、本発明の一実施形態を添付図面に基づいて詳細に説明する。図1は、本実施形態におけるズーム制御装置を備えた撮像装置の一例として、オートズーム機能を有するデジタルカメラ100の構成例を示すブロック図である。
(First Embodiment)
Hereinafter, an embodiment of the present invention will be described in detail with reference to the accompanying drawings. FIG. 1 is a block diagram showing a configuration example of a digital camera 100 having an auto-zoom function as an example of an image pickup apparatus provided with a zoom control device according to the present embodiment.

レンズ鏡筒101は、その内部にレンズ群を保持している。ズームレンズ102は、レンズ鏡筒101の光軸方向に移動することで焦点距離を調節し、光学的に画角を変更(ズーム位置を移動)する。フォーカスレンズ103は、レンズ鏡筒101の光軸方向に移動することで焦点調節を行う。防振レンズ(像ブレ補正用レンズ)104は、手ぶれ等に起因する像ブレを補正する。光量調節を行う絞り及びシャッタ105は、露出制御に用いられる。なお、本実施形態において、デジタルカメラ100は、レンズ鏡筒101とカメラ本体部とが一体的に構成された撮像装置であるが、これに限定されるものではない。本実施形態は、カメラ本体部と、カメラ本体部に着脱可能な交換レンズとから構成される撮像システムにも適用可能である。 The lens barrel 101 holds a lens group inside the lens barrel 101. The zoom lens 102 adjusts the focal length by moving in the optical axis direction of the lens barrel 101, and optically changes the angle of view (moves the zoom position). The focus lens 103 adjusts the focus by moving in the optical axis direction of the lens barrel 101. The anti-vibration lens (lens for image stabilization) 104 corrects image blur caused by camera shake or the like. The aperture and shutter 105 for adjusting the amount of light are used for exposure control. In the present embodiment, the digital camera 100 is an imaging device in which the lens barrel 101 and the camera body are integrally configured, but the digital camera 100 is not limited thereto. This embodiment can also be applied to an imaging system including a camera body and an interchangeable lens that can be attached to and detached from the camera body.

撮像素子106は、レンズ鏡筒101を通過した光を受光し、光電変換によって被写体像を電気信号に変換することで撮像信号を生成する。撮像素子106はCCD(電荷結合素子)型またはCMOS(相補型金属酸化膜半導体)型のイメージセンサ等である。撮像素子106による撮像信号は、画像処理回路107に入力されて、画素補間処理や色変換処理等の各種処理が行われる。各種処理後の画像データは画像メモリ108に記憶される。画像メモリ108は、DRAM(Dynamic Random Access Memory)やSRAM(Static Random Access Memory)等の記憶デバイスである。 The image sensor 106 receives the light that has passed through the lens barrel 101 and converts the subject image into an electric signal by photoelectric conversion to generate an image pickup signal. The image sensor 106 is a CCD (charge-coupled device) type or CMOS (complementary metal oxide semiconductor) type image sensor or the like. The image pickup signal from the image pickup element 106 is input to the image processing circuit 107, and various processes such as pixel interpolation processing and color conversion processing are performed. The image data after various processing is stored in the image memory 108. The image memory 108 is a storage device such as a DRAM (Dynamic Random Access Memory) or a SRAM (Static Random Access Memory).

表示部109は、TFT型LCD(薄膜トランジスタ駆動型液晶表示器)等を備えて構成され、撮影画像(画像データ)や、特定の情報(例えば、撮影情報等)を表示する。撮影画像に係るライブビュー等の情報表示により、撮影者が画角合わせを行うための電子ビューファインダ(EVF)機能を提供できる。 The display unit 109 is configured to include a TFT type LCD (thin film transistor drive type liquid crystal display) or the like, and displays a photographed image (image data) or specific information (for example, photographed information). By displaying information such as a live view related to a captured image, it is possible to provide an electronic viewfinder (EVF) function for the photographer to adjust the angle of view.

絞りシャッタ駆動部110は、画像処理回路107での画像処理によって得られた輝度情報に基づいて露出制御値(絞り値及びシャッタ速度)を演算し、演算結果に基づいて絞り及びシャッタ105を駆動する。これにより、自動露出(AE)制御が行われる。防振レンズ駆動部111は、ジャイロセンサ等の角速度センサによる振れ検出情報に基づいてデジタルカメラ100に加わる振れ量を演算する。演算結果にしたがって、デジタルカメラ100に加わる振れ量を打ち消す(低減する)ように防振レンズ104が駆動される。 The aperture shutter drive unit 110 calculates an exposure control value (aperture value and shutter speed) based on the brightness information obtained by image processing in the image processing circuit 107, and drives the aperture and shutter 105 based on the calculation result. .. As a result, automatic exposure (AE) control is performed. The anti-vibration lens drive unit 111 calculates the amount of vibration applied to the digital camera 100 based on the vibration detection information obtained by an angular velocity sensor such as a gyro sensor. The anti-vibration lens 104 is driven so as to cancel (reduce) the amount of vibration applied to the digital camera 100 according to the calculation result.

フォーカスレンズ駆動部112は、フォーカスレンズ103を駆動する。本実施形態において、デジタルカメラ100は、コントラスト方式で自動焦点調節(AF)制御を行う。つまりフォーカスレンズ駆動部112は、画像処理回路107での画像処理により得られた撮影光学系の焦点調節情報(コントラスト評価値)に基づいて、被写体に焦点が合うようにフォーカスレンズ103を駆動する。ただし、これに限定されるものではなく、コントラスト方式以外のAF制御として、位相差AF方式でもよいし、また、コントラスト方式と他の方式との組み合わせのように、複数の方式でAF制御を行う構成でもよい。 The focus lens driving unit 112 drives the focus lens 103. In the present embodiment, the digital camera 100 performs automatic focus adjustment (AF) control by a contrast method. That is, the focus lens driving unit 112 drives the focus lens 103 so as to focus on the subject based on the focus adjustment information (contrast evaluation value) of the photographing optical system obtained by the image processing in the image processing circuit 107. However, the AF control is not limited to this, and the phase difference AF method may be used as the AF control other than the contrast method, and AF control is performed by a plurality of methods such as a combination of the contrast method and another method. It may be configured.

ズームレンズ駆動部113は、ズーム操作指示に従ってズームレンズ102を駆動する。操作部117は、撮影者がカメラにズーミングを指示するためのズーム操作部材としてのズームレバーまたはズームボタン等を備える。システム制御部114は、ズーム指示操作に用いるズーム操作部材の操作量及び操作方向を検知して、ズーム駆動速度やズーム駆動方向を演算し、演算結果に従ってズームレンズ102を光軸に沿って移動させる制御を行う。 The zoom lens driving unit 113 drives the zoom lens 102 according to the zoom operation instruction. The operation unit 117 includes a zoom lever, a zoom button, and the like as a zoom operation member for the photographer to instruct the camera to zoom. The system control unit 114 detects the operation amount and operation direction of the zoom operation member used for the zoom instruction operation, calculates the zoom drive speed and the zoom drive direction, and moves the zoom lens 102 along the optical axis according to the calculation result. Take control.

撮影動作によって生成された画像データは、インターフェース(I/F)部115を介して記録部116に送られて記録される。画像データは、外部記録媒体、または不揮発性のメモリ118、あるいはそれらの両方に記録される。外部記録媒体は、デジタルカメラ100に装着して使用されるメモリカード等である。不揮発性のメモリ118は、デジタルカメラ100に内蔵されている記憶媒体である。メモリ118は、プログラムデータや画像データの他に、デジタルカメラ100の設定情報や、後述するオートズーム機能におけるズームイン位置等の情報を記憶する。
操作部117は、前記ズーム操作部材に加えて、撮影開始を指示するレリーズスイッチ、オートズーム機能の開始や終了を指示するオートズーム操作スイッチ等を含む。操作部117からの信号は、システム制御部114に送られる。
The image data generated by the shooting operation is sent to the recording unit 116 via the interface (I / F) unit 115 and recorded. The image data is recorded in an external recording medium, non-volatile memory 118, or both. The external recording medium is a memory card or the like that is used by being attached to the digital camera 100. The non-volatile memory 118 is a storage medium built in the digital camera 100. In addition to the program data and image data, the memory 118 stores information such as setting information of the digital camera 100 and a zoomed-in position in the auto zoom function described later.
In addition to the zoom operation member, the operation unit 117 includes a release switch for instructing the start of shooting, an auto zoom operation switch for instructing the start and end of the auto zoom function, and the like. The signal from the operation unit 117 is sent to the system control unit 114.

システム制御部114は、CPU(中央演算処理装置)等の演算装置を備える。システム制御部114は、撮影者の操作に応じて各部に制御命令を送ることによりデジタルカメラ100全体を制御する。システム制御部114は、メモリ118に記憶されている各種の制御プログラム、例えば撮像素子106の制御やAE/AF制御、ズーム制御(オートズーム処理を含む)等を行うためのプログラムを実行する。 The system control unit 114 includes an arithmetic unit such as a CPU (central processing unit). The system control unit 114 controls the entire digital camera 100 by sending control commands to each unit according to the operation of the photographer. The system control unit 114 executes various control programs stored in the memory 118, for example, a program for controlling the image sensor 106, AE / AF control, zoom control (including auto zoom processing), and the like.

光学ズームによる画角変更時に合焦状態を維持するには、レンズ鏡筒101がリアフォーカスタイプである場合、ズームレンズ102の位置に応じてフォーカスレンズ103を適正なフォーカス位置へ移動させる必要がある。このような制御をコンピュータズーム(CZ)制御といい、システム制御部114におけるCZ制御部119が行う。図2は、ズームレンズの焦点距離と、被写体距離ごとのフォーカス位置との関係を例示する図である。図2では、ズームレンズの焦点距離と、ピントが合うフォーカス位置との関係を、被写体までの距離ごとに示すデータテーブルとしてグラフ化して示す。本実施形態において、このテーブルをフォーカスカムテーブルと称する。図2において、横軸はズーム位置に対応する焦点距離を示し、縦軸はフォーカス位置を示す。各グラフ線の横には、デジタルカメラ100から被写体までの距離(被写体距離)を例示する。 In order to maintain the in-focus state when the angle of view is changed by the optical zoom, when the lens barrel 101 is a rear focus type, it is necessary to move the focus lens 103 to an appropriate focus position according to the position of the zoom lens 102. .. Such control is called computer zoom (CZ) control, and is performed by the CZ control unit 119 in the system control unit 114. FIG. 2 is a diagram illustrating the relationship between the focal length of the zoom lens and the focus position for each subject distance. In FIG. 2, the relationship between the focal length of the zoom lens and the in-focus focus position is shown as a graph as a data table showing each distance to the subject. In this embodiment, this table is referred to as a focus cam table. In FIG. 2, the horizontal axis indicates the focal length corresponding to the zoom position, and the vertical axis indicates the focus position. Next to each graph line, the distance from the digital camera 100 to the subject (subject distance) is illustrated.

システム制御部114は、AF制御を行う際にフォーカスレンズ駆動部112を制御して、フォーカスレンズ103を所定の範囲において移動させることによりスキャン動作を行う。スキャン動作中に得られるコントラスト評価値等を用いて既知の方法により、合焦点であるフォーカス位置が検出される。そのときのズーム位置及びフォーカス位置を用い、フォーカスカムテーブルを参照することにより、被写体距離が計測される。 The system control unit 114 controls the focus lens driving unit 112 when performing AF control, and moves the focus lens 103 within a predetermined range to perform a scanning operation. The focus position, which is the in-focus position, is detected by a known method using the contrast evaluation value or the like obtained during the scanning operation. The subject distance is measured by referring to the focus cam table using the zoom position and the focus position at that time.

次に、システム制御部114におけるオートズーム機能に関連する制御について説明する。図1に示すように、システム制御部114は、CZ制御部119、電子ズーム制御部120、オートズーム制御部(以下、AZ制御部という)122、被写体検出部123を備える。 Next, the control related to the auto zoom function in the system control unit 114 will be described. As shown in FIG. 1, the system control unit 114 includes a CZ control unit 119, an electronic zoom control unit 120, an auto zoom control unit (hereinafter referred to as an AZ control unit) 122, and a subject detection unit 123.

デジタルカメラ100は、光学ズーム機能及び電子ズーム機能を有しており、CZ制御部119及びズームレンズ駆動部113が光学ズームの制御を担当する。CZ制御部119は、ズーム動作時に、所定の制御周期ごとにズームレンズ102のズーム位置を検出する。そしてCZ制御部119は、検出したズーム位置に応じたAF制御にて計測された被写体距離でのフォーカスカムテーブルに追従するように、フォーカスレンズ103を駆動させる制御を行う。これにより、合焦状態を維持したまま光学ズーム動作を行うことが可能となる。 The digital camera 100 has an optical zoom function and an electronic zoom function, and the CZ control unit 119 and the zoom lens drive unit 113 are in charge of controlling the optical zoom. The CZ control unit 119 detects the zoom position of the zoom lens 102 at predetermined control cycles during the zoom operation. Then, the CZ control unit 119 controls to drive the focus lens 103 so as to follow the focus cam table at the subject distance measured by the AF control according to the detected zoom position. This makes it possible to perform the optical zoom operation while maintaining the focused state.

一方、電子ズーム制御部120及び画像メモリ108は電子ズームの制御を担当する。電子ズーム制御部120は、画像メモリ108に転送された画像データから対象領域内のデータを切り出すことにより、電子ズーム機能を実現する。また、電子ズーム制御部120は、撮像素子106に取り込む画像のフレームレート周期で切り出す範囲を徐々に大きくしながら表示部109に表示させることにより、滑らかな電子ズーム表示を実現する。
被写体検出部123は、画像メモリ108に記憶された画像データから所望の被写体領域を逐次検出する。本実施形態では、画像データに含まれる顔情報または色情報に基づいて被写体(人物等の顔、または物体)を検出する被写体検出方法(顔検出処理、色検出処理)について説明する。
On the other hand, the electronic zoom control unit 120 and the image memory 108 are in charge of controlling the electronic zoom. The electronic zoom control unit 120 realizes the electronic zoom function by cutting out the data in the target area from the image data transferred to the image memory 108. Further, the electronic zoom control unit 120 realizes a smooth electronic zoom display by displaying the image on the display unit 109 while gradually increasing the range to be cut out at the frame rate cycle of the image captured by the image sensor 106.
The subject detection unit 123 sequentially detects a desired subject area from the image data stored in the image memory 108. In the present embodiment, a subject detection method (face detection process, color detection process) for detecting a subject (face or object such as a person) based on face information or color information included in image data will be described.

顔検出処理は、画像データ中に存在する顔領域を公知のアルゴリズムにより検出する処理である。例えば、被写体検出部123は、画像データ上での正方形状の部分領域から特徴量を抽出し、その特徴量を予め用意された顔の特徴量と比較する。そして被写体検出部123は、両者の相関値が所定の閾値を超える場合、その部分領域を顔領域であると判定する。この判定処理は、部分領域のサイズ、配置位置、配置角度の組み合わせを変更しながら繰り返されることにより、画像データ中に存在する種々の顔領域を検出できる。 The face detection process is a process of detecting a face region existing in image data by a known algorithm. For example, the subject detection unit 123 extracts a feature amount from a square-shaped partial region on the image data and compares the feature amount with a face feature amount prepared in advance. Then, when the correlation value between the two exceeds a predetermined threshold value, the subject detection unit 123 determines that the partial region is the face region. By repeating this determination process while changing the combination of the size, the arrangement position, and the arrangement angle of the partial area, various face areas existing in the image data can be detected.

色検出処理では、後述の被写体指定方法に従って指定された被写体領域の色情報を特徴色として記憶する処理が実行される。色検出処理は、検出対象の被写体が物体(人物以外の「モノ」)である場合に行われる。色情報としては、画像処理回路107からの出力信号であるRGB信号や輝度信号(Y信号)及び色差(R−Y、B−Y)信号等が用いられる。被写体検出時に被写体検出部123は、画像データを複数の部分領域に分割し、部分領域ごとの輝度及び色差の平均値を算出する。また、被写体検出部123は、予め記憶された特徴色情報と被写体検出時の各領域の色情報を比較し、輝度及び色差の差分が所定量以下の部分領域を被写体領域の候補とする。この被写体領域の候補で隣り合う部分領域の一群を同一色領域として、同一色領域が所定のサイズ範囲となる領域を最終的な被写体領域とする処理が行われる。 In the color detection process, a process of storing the color information of the subject area designated according to the subject designation method described later as a feature color is executed. The color detection process is performed when the subject to be detected is an object (a "thing" other than a person). As the color information, RGB signals, luminance signals (Y signals), color difference (RY, BY) signals, etc., which are output signals from the image processing circuit 107, are used. At the time of subject detection, the subject detection unit 123 divides the image data into a plurality of partial regions and calculates the average value of the brightness and the color difference for each partial region. Further, the subject detection unit 123 compares the feature color information stored in advance with the color information of each region at the time of subject detection, and sets a partial region having a difference between the luminance and the color difference by a predetermined amount or less as a candidate for the subject region. A process is performed in which a group of adjacent partial regions in the candidate of the subject region is set as the same color region, and a region in which the same color region is in a predetermined size range is set as the final subject region.

被写体検出部123は、顔情報及び色情報とともに、CZ制御部119で計測された被写体距離情報及びズームレンズ102の焦点距離情報を用いることにより、画像データ上での被写体領域の大きさを算出する。姿勢検出部124は、加速度センサの情報に基づいてデジタルカメラ100の姿勢(例えば正位置/グリップ上/グリップ下)を検出する。揺れ検出部125は、ジャイロセンサによる角速度情報等に基づいてデジタルカメラ100の振れ状態を判定により検出する。揺れ検出部125は、ジャイロセンサ等に加わる振れ量(検出値)が所定量(閾値)以上である場合にカメラが手持ち状態であると判定し、所定量未満である場合には三脚等に固定された状態であると判定する。姿勢検出及び揺れ検出に用いる加速度センサ及びジャイロセンサについては、防振レンズ駆動部111の制御情報を取得するための検出部のセンサと兼用する構成でもよい。 The subject detection unit 123 calculates the size of the subject area on the image data by using the subject distance information measured by the CZ control unit 119 and the focal length information of the zoom lens 102 together with the face information and the color information. .. The posture detection unit 124 detects the posture (for example, normal position / above the grip / below the grip) of the digital camera 100 based on the information of the acceleration sensor. The shake detection unit 125 detects the shake state of the digital camera 100 by determination based on the angular velocity information and the like by the gyro sensor. The shaking detection unit 125 determines that the camera is in a handheld state when the amount of vibration (detection value) applied to the gyro sensor or the like is equal to or more than a predetermined amount (threshold value), and fixes it to a tripod or the like when the amount is less than the predetermined amount. It is determined that the state has been set. The acceleration sensor and the gyro sensor used for the attitude detection and the shaking detection may be configured to be also used as the sensor of the detection unit for acquiring the control information of the vibration isolation lens drive unit 111.

次に、本実施形態におけるオートズーム機能の概要と、AZ制御部122を説明する。オートズーム機能を搭載していないカメラでは、撮影者が望遠状態でフレーミングしてシャッタチャンスを待っている間に被写体が動いてフレームアウトした場合等において、以下の操作が必要であった。
まず撮影者は、ズーム操作部材の操作によりズームアウト動作を行ってから被写体を探索する。被写体の探索後、撮影者は再び所望の画角になるまでズーム操作を行って画角調整する。また、被写体が動いたために被写体像の大きさが変わった場合等においても、撮影者はズーム操作部材を操作して被写体像の大きさを調整する必要があった。
Next, the outline of the auto zoom function in the present embodiment and the AZ control unit 122 will be described. With a camera that does not have an auto-zoom function, the following operations are required when the subject moves and frames out while the photographer is framing in the telephoto state and waiting for a shutter chance.
First, the photographer performs a zoom-out operation by operating the zoom operation member, and then searches for the subject. After searching for the subject, the photographer adjusts the angle of view by performing a zoom operation until the desired angle of view is reached again. Further, even when the size of the subject image changes due to the movement of the subject, the photographer needs to operate the zoom operation member to adjust the size of the subject image.

一方、オートズーム機能を搭載しているカメラでは、撮影者がオートズーム機能を設定した後、タッチパネル等で被写体を指定する操作を行い、撮影したい被写体を指定しておけばよい。オートズーム機能が設定されると、指定された被写体を画像の中央付近で所定のサイズに収めるように、自動でズーム動作が行われる。なお、被写体の指定方法としてはタッチパネル操作以外に、撮影者が特定のボタンを操作したときに画面中央付近にいる被写体を指定する方法や、カメラが検出した被写体の中から自動的に主被写体を選択する方法等がある。 On the other hand, in a camera equipped with an auto-zoom function, the photographer may set the auto-zoom function and then perform an operation of specifying a subject on a touch panel or the like to specify the subject to be photographed. When the auto-zoom function is set, the zoom operation is automatically performed so that the specified subject fits in a predetermined size near the center of the image. In addition to touch panel operation, the subject can be specified by specifying the subject near the center of the screen when the photographer operates a specific button, or by automatically selecting the main subject from the subjects detected by the camera. There is a method to select.

被写体検出部123は、画像メモリ108から指定された被写体領域の画像データ上での位置や大きさを算出する。この処理を、ライブビューとして画像表示するごとに、サンプリングの画像データに対して連続的に行うことにより、被写体の動きを追尾可能となる。追尾している被写体の画像が後述するズームアウト領域で検出された場合や、検出した被写体の画像が所定の大きさよりも大きくなった場合、AZ制御部122はズームアウト動作を開始する。すなわち、AZ制御部122はCZ制御部119または電子ズーム制御部120に対して、広角方向へのズームアウト指示を行う。被写体をズームイン領域内に検出し、かつ、被写体像が所定の大きさの範囲内に収まった場合には、望遠側へズームイン動作が行われる。このような処理により、撮影者はズーム操作を気にせず、所望の被写体の画像を画面内に収めるようにカメラを動かすだけでよい。仮に、被写体がフレームアウトしそうになった場合でも、自動的にズーム倍率が変更されるため、より簡単に画角合わせを行うことができる。 The subject detection unit 123 calculates the position and size of the subject area designated from the image memory 108 on the image data. By continuously performing this process on the sampled image data each time the image is displayed as a live view, it is possible to track the movement of the subject. When the image of the subject being tracked is detected in the zoom-out area described later, or when the image of the detected subject becomes larger than a predetermined size, the AZ control unit 122 starts the zoom-out operation. That is, the AZ control unit 122 instructs the CZ control unit 119 or the electronic zoom control unit 120 to zoom out in the wide-angle direction. When the subject is detected in the zoom-in area and the subject image is within the range of a predetermined size, the zoom-in operation is performed to the telephoto side. By such processing, the photographer does not have to worry about the zoom operation, and only needs to move the camera so that the image of the desired subject is contained in the screen. Even if the subject is about to be out of frame, the zoom magnification is automatically changed, so the angle of view can be adjusted more easily.

次に、図3から図5を参照して、ズームアウト動作やズームイン動作の開始条件について説明する。図3は、被写体(物体)が画面外へフレームアウトすることを防止する処理の説明図である。図4は、被写体(人物)が画面外へフレームアウトすることを防止する処理の説明図である。 Next, the conditions for starting the zoom-out operation and the zoom-in operation will be described with reference to FIGS. 3 to 5. FIG. 3 is an explanatory diagram of a process for preventing a subject (object) from being framed out of the screen. FIG. 4 is an explanatory diagram of a process for preventing a subject (person) from being framed out of the screen.

図3及び図4において、枠300a及び枠300bは被写体(物体)を追尾する第1の追尾枠(以下、モノ追尾枠という)であり、枠400a〜fは被写体(人物の顔)を追尾する第2の追尾枠(以下、顔追尾枠という)である。以下では、被写体が人物と物体のいずれにも適用可能な場合、モノ追尾枠及び顔追尾枠を総称して被写体追尾枠ということもある。被写体追尾枠は、撮影者が指定した被写体が分かるように、表示部109のEVF画面(電子ビューファインダ画面)にて被写体像を囲むように表示される。被写体追尾枠の画面上での位置及び大きさは、顔情報及び色情報に基づいて被写体検出部123が逐次算出し、フレームレート周期で更新される。 In FIGS. 3 and 4, the frame 300a and the frame 300b are the first tracking frames (hereinafter referred to as mono tracking frames) for tracking the subject (object), and the frames 400a to 400 track the subject (person's face). This is the second tracking frame (hereinafter referred to as the face tracking frame). In the following, when the subject is applicable to both a person and an object, the mono tracking frame and the face tracking frame may be collectively referred to as a subject tracking frame. The subject tracking frame is displayed so as to surround the subject image on the EVF screen (electronic viewfinder screen) of the display unit 109 so that the subject designated by the photographer can be seen. The position and size of the subject tracking frame on the screen are sequentially calculated by the subject detection unit 123 based on the face information and the color information, and are updated at the frame rate cycle.

図3を参照して、被写体(飛行機)が画面外にフレームアウトすることを防止する処理について説明する。図3(A)にてズームアウト領域ZO(以下、ZO領域という)は、EVFで表示される画角全体(画面全体)に対して所定の比率よりも外側の領域を示している。例えば、画面の中心点を0%、画面全体を100%とし、画面全体に対して80%となる位置をZO領域の境界として設定する場合を想定する。この場合、画面全体における80〜100%の領域がZO領域となる。ZO領域にモノ追尾枠300aの一部が進入すると、AZ制御部122は、ズームアウト動作を開始させる制御を行う。また、AZ制御部122は、ズーム移動前のズーム倍率(ズームイン画角に相当)をメモリ118に記憶する。ズームアウト動作中の目標ズーム倍率やズーム速度は、被写体像のサイズや移動速度に応じて予め設定される。また、目標ズーム倍率やズーム速度を被写体像のサイズや移動速度に応じて適宜算出してもよい。ズームアウト動作は、その目標ズーム倍率やズーム速度に従って実行される。これにより、被写体のフレームアウトを効果的に防止することができる。 A process for preventing the subject (airplane) from being framed out of the screen will be described with reference to FIG. In FIG. 3A, the zoom-out area ZO (hereinafter referred to as the ZO area) indicates an area outside the predetermined ratio with respect to the entire angle of view (entire screen) displayed by the EVF. For example, assume that the center point of the screen is 0%, the entire screen is 100%, and the position that is 80% of the entire screen is set as the boundary of the ZO area. In this case, 80 to 100% of the entire screen is the ZO area. When a part of the mono tracking frame 300a enters the ZO region, the AZ control unit 122 controls to start the zoom-out operation. Further, the AZ control unit 122 stores the zoom magnification (corresponding to the zoom-in angle of view) before the zoom movement in the memory 118. The target zoom magnification and zoom speed during the zoom-out operation are preset according to the size and moving speed of the subject image. Further, the target zoom magnification and the zoom speed may be appropriately calculated according to the size and moving speed of the subject image. The zoom-out operation is executed according to the target zoom magnification and zoom speed. As a result, it is possible to effectively prevent the subject from being framed out.

図3(B)は、図3(A)の画角から、所定のズーム変化量分に相当するズームアウト動作が行われたときの画角を示している。図3(B)に示すズームイン領域ZI(以下、ZI領域という)は、被写体探索状態においてズームイン画角(ズームアウト前の画角)301に対して所定の比率よりも内側の領域を示している。例えば、画面の中心点を0%とし、ズームイン画角301を100%とし、ズームイン画角301に対して70%となる位置をZI領域の境界として設定する場合を想定する。この場合、ズームイン画角301の全体における0〜70%の領域がZI領域となる。このとき、例えばズームアウト倍率が1/2倍である場合、ズームイン画角301は画面全体に対して50%の大きさとなる。よって、ZI領域の境界は画面全体に対して70%×(1/2)=35%であり、ZI領域は、画面全体に対して0〜35%の領域であるとも言える。撮影者が、ZI領域の内部にモノ追尾枠300bが収まるようにカメラの向きを変更すると、AZ制御部122は、ズームイン動作を開始させる制御を行う。 FIG. 3B shows the angle of view when the zoom-out operation corresponding to a predetermined amount of zoom change is performed from the angle of view of FIG. 3A. The zoom-in area ZI (hereinafter referred to as ZI area) shown in FIG. 3B shows an area inside a predetermined ratio with respect to the zoom-in angle of view (angle of view before zoom-out) 301 in the subject search state. .. For example, assume that the center point of the screen is 0%, the zoom-in angle of view 301 is 100%, and the position that is 70% of the zoom-in angle of view 301 is set as the boundary of the ZI region. In this case, the area of 0 to 70% of the entire zoom-in angle of view 301 is the ZI area. At this time, for example, when the zoom-out magnification is 1/2 times, the zoom-in angle of view 301 is 50% of the entire screen. Therefore, it can be said that the boundary of the ZI region is 70% × (1/2) = 35% with respect to the entire screen, and the ZI region is an region of 0 to 35% with respect to the entire screen. When the photographer changes the direction of the camera so that the mono tracking frame 300b fits inside the ZI region, the AZ control unit 122 controls to start the zoom-in operation.

次に図4を参照して、被写体(人物)が画面外にフレームアウトすることを防止する処理について説明する。被写体が人物である場合に、顔追尾枠の一部がZO領域に進入するとズームアウト動作が開始し、また顔追尾枠がZI領域の内部に収まるとズームイン動作が行われる。被写体が人物である場合には物体の場合とは異なり、被写体の移動方向をある程度予測できるため、予測される移動方向の領域に応じてZO領域及びZI領域が設定される。また、手持ちでの撮影では、手ぶれ等の影響によって被写体がフレームアウトしてしまう場合がある。しかし、手ぶれ等によって被写体がフレームアウトした場合には、撮影者が被写体をフレームインさせようとする動作によってフレームインし直すことが可能である。ここで、画面の上部にZO領域を設定した場合、人物を中央付近に配置して撮影するときにもZO領域に顔追尾枠が進入してしまい、意図せずズームアウトする場合がある。そこで、被写体が人物であって、かつ手持ち状態(撮影者がカメラを把持した状態)である場合には、撮影者のフレーミング操作を考慮して、画面の上部にはZO領域が設定されない。 Next, with reference to FIG. 4, a process for preventing the subject (person) from being framed out of the screen will be described. When the subject is a person, the zoom-out operation starts when a part of the face tracking frame enters the ZO area, and the zoom-in operation is performed when the face tracking frame fits inside the ZI area. When the subject is a person, unlike the case of an object, the moving direction of the subject can be predicted to some extent, so that the ZO region and the ZI region are set according to the region of the predicted moving direction. Further, in handheld shooting, the subject may be out of frame due to the influence of camera shake or the like. However, when the subject is out of the frame due to camera shake or the like, it is possible to reframe in by the action of the photographer trying to frame in the subject. Here, when the ZO area is set at the upper part of the screen, the face tracking frame may enter the ZO area even when the person is placed near the center and photographed, and the person may unintentionally zoom out. Therefore, when the subject is a person and is in a handheld state (a state in which the photographer holds the camera), the ZO area is not set at the upper part of the screen in consideration of the framing operation of the photographer.

このように、本実施形態では、被写体検出部123で顔が検出された場合、AZ制御部122は、カメラの姿勢や揺れ状態に応じてZO領域及びZI領域を変更する。カメラの姿勢については姿勢検出部124により検出され、また、揺れ状態については揺れ検出部125による検出結果から判定される。揺れ検出部125による検出結果とは、カメラが手持ち状態であるか否かの検出結果である。以下、図4(A)から(C)を参照して具体的に説明する。 As described above, in the present embodiment, when the subject detection unit 123 detects the face, the AZ control unit 122 changes the ZO region and the ZI region according to the posture and the shaking state of the camera. The posture of the camera is detected by the posture detection unit 124, and the shaking state is determined from the detection result by the shaking detection unit 125. The detection result by the shaking detection unit 125 is a detection result of whether or not the camera is in a handheld state. Hereinafter, a specific description will be given with reference to FIGS. 4A to 4C.

図4(A)は、撮影者が手持ちでカメラを正位置に構えたときに設定されるZO領域及びZI領域を示している。このような撮影シーンで、被写体が水平方向に移動してフレームアウトする場合、画面内での被写体の位置は正位置の画面に対して水平方向(長手方向)に移動する。そこで、ZO領域及びZI領域はいずれも、正位置の画面に対して垂直方向(短手方向)の縦帯状に配置される。ZO領域は、横長の長方形の画面にて水平方向の両端寄りに位置する縦帯状に設定され、ZI領域は、画面の中央部に位置する縦帯状に設定される。この場合、顔追尾枠400aがZO領域内に進入すると、AZ制御部122はズームアウト開始を判定し、所定のズーム倍率分に対応するズームアウトの動作制御を行う。また、顔追尾枠400bがZI領域内に包含されると、AZ制御部122はズームイン開始を判定し、ズーム戻り位置まで所定のズーム倍率分に対応するズームインの動作制御を行う。このようにZO領域及びZI領域を設定することで、被写体(人物)のフレームアウトを効果的に防止できる。 FIG. 4A shows a ZO area and a ZI area that are set when the photographer holds the camera in the normal position by hand. In such a shooting scene, when the subject moves in the horizontal direction to frame out, the position of the subject in the screen moves in the horizontal direction (longitudinal direction) with respect to the screen at the normal position. Therefore, both the ZO region and the ZI region are arranged in a vertical band shape in the vertical direction (short direction) with respect to the screen at the normal position. The ZO area is set in the shape of a vertical band located near both ends in the horizontal direction on a horizontally long rectangular screen, and the ZI area is set in the shape of a vertical band located in the center of the screen. In this case, when the face tracking frame 400a enters the ZO region, the AZ control unit 122 determines the start of zoom-out and controls the zoom-out operation corresponding to a predetermined zoom magnification. Further, when the face tracking frame 400b is included in the ZI region, the AZ control unit 122 determines the start of zoom-in, and controls the zoom-in operation corresponding to a predetermined zoom magnification up to the zoom return position. By setting the ZO area and the ZI area in this way, it is possible to effectively prevent the flameout of the subject (person).

図4(B)は、同様の撮影シーンにてカメラ姿勢が変更され、撮影者がグリップ下もしくはグリップ上の縦位置状態にカメラを構えたときに設定されるZO領域及びZI領域を示している。この場合、縦位置の画面に対して垂直方向(長手方向)の縦帯状にZO領域及びZI領域が配置される。つまり、ZO領域は、縦長の長方形の画面にて水平方向の両端寄りに位置する縦帯状に設定され、ZI領域は、画面の中央部に位置する縦帯状に設定される。この場合、顔追尾枠400cがZO領域内に進入すると、AZ制御部122はズームアウト開始を判定し、所定のズーム倍率分に対応するズームアウトの動作制御を行う。また、顔追尾枠400dがZI領域内に包含されると、AZ制御部122はズームイン開始を判定し、ズーム戻り位置まで所定のズーム倍率分に対応するズームインの動作制御を行う。このようにZO領域及びZI領域を設定することで、水平方向への被写体の動きを検出し、フレームアウトを効果的に防止できる。 FIG. 4B shows the ZO area and the ZI area that are set when the camera posture is changed in the same shooting scene and the photographer holds the camera in the vertical position under the grip or on the grip. .. In this case, the ZO region and the ZI region are arranged in a vertical band shape in the vertical direction (longitudinal direction) with respect to the screen in the vertical position. That is, the ZO area is set in the shape of a vertical band located near both ends in the horizontal direction on a vertically long rectangular screen, and the ZI area is set in the shape of a vertical band located in the center of the screen. In this case, when the face tracking frame 400c enters the ZO region, the AZ control unit 122 determines the start of zoom-out and controls the zoom-out operation corresponding to a predetermined zoom magnification. Further, when the face tracking frame 400d is included in the ZI region, the AZ control unit 122 determines the start of zoom-in, and controls the zoom-in operation corresponding to a predetermined zoom magnification up to the zoom return position. By setting the ZO region and the ZI region in this way, it is possible to detect the movement of the subject in the horizontal direction and effectively prevent flameout.

図4(C)は、揺れ検出部125での検出状態が固定状態のときに設定されるZO領域及びZI領域を示している。固定状態とは、三脚等によってカメラが固定されている状態であり、手ぶれによるフレームアウトの可能性はない。さらには、画面の中央付近に被写体がフレームインしていないときにズームインすると、その動作によってフレームアウトしてしまう可能性がある。そこで、画面の周辺部全体にZO領域が設定され、ズームイン画角よりも内側にZI領域が設定される。つまり、ZO領域は、画面の縦方向及び横方向の端寄りに位置する矩形帯状に設定され、ZI領域は、画面の中央部に位置する矩形状に設定される。この場合、顔追尾枠400eがZO領域内に進入すると、AZ制御部122は、ズームアウト開始を判定し、所定のズーム倍率分に対応するズームアウトの動作制御を行う。また、顔追尾枠400fがZI領域内に包含されると、AZ制御部122は、ズームイン開始を判定し、ズーム戻り位置まで所定のズーム倍率分に対応するズームインの動作制御を行う。 FIG. 4C shows a ZO region and a ZI region that are set when the detection state of the shaking detection unit 125 is a fixed state. The fixed state is a state in which the camera is fixed by a tripod or the like, and there is no possibility of frame out due to camera shake. Furthermore, if the subject is not framed in near the center of the screen and the subject is zoomed in, the operation may cause the subject to be out of frame. Therefore, the ZO area is set on the entire peripheral portion of the screen, and the ZI area is set inside the zoom-in angle of view. That is, the ZO area is set in the shape of a rectangular band located near the edges in the vertical and horizontal directions of the screen, and the ZI area is set in the shape of a rectangle located in the center of the screen. In this case, when the face tracking frame 400e enters the ZO region, the AZ control unit 122 determines the start of zoom-out and controls the zoom-out operation corresponding to a predetermined zoom magnification. Further, when the face tracking frame 400f is included in the ZI region, the AZ control unit 122 determines the start of zoom-in and controls the zoom-in operation corresponding to a predetermined zoom magnification up to the zoom return position.

以上のように本実施形態では、カメラの姿勢や撮影状態(手持ち状態/固定状態)の変化に応じてZO領域及びZI領域の各範囲を動的に変更する。これにより、手ぶれ等による誤作動を防止しながら、被写体のフレームアウトを効果的に防止できる。なお、カメラの姿勢と撮影状態(手持ち状態/固定状態)のいずれか一方に応じてZO領域又はZI領域を変更してもよく、またZO領域とZI領域のいずれか一方のみを変更してもよい。 As described above, in the present embodiment, each range of the ZO region and the ZI region is dynamically changed according to the change in the posture of the camera and the shooting state (handheld state / fixed state). As a result, it is possible to effectively prevent the subject from being out of frame while preventing malfunction due to camera shake or the like. The ZO area or the ZI area may be changed according to either the posture of the camera or the shooting state (handheld state / fixed state), or only one of the ZO area and the ZI area may be changed. Good.

次に、被写体像が画面に占める割合を所定の範囲内に保つためのズーム動作について説明する。本実施形態では、検出された被写体像のサイズが基準サイズの所定倍より大きく変化した場合に自動でズーム動作を行うことで、被写体像のサイズを基準サイズから所定の範囲内に保つように制御(サイズ保持制御)が行われる。図5は、画面内における被写体(人物)像のサイズを保つための処理を説明する図である。図6は被写体(人物)の構図設定の説明図である。 Next, a zoom operation for keeping the ratio of the subject image to the screen within a predetermined range will be described. In the present embodiment, when the size of the detected subject image changes more than a predetermined time of the reference size, the zoom operation is automatically performed to control the size of the subject image to be kept within a predetermined range from the reference size. (Size retention control) is performed. FIG. 5 is a diagram illustrating a process for maintaining the size of a subject (person) image on the screen. FIG. 6 is an explanatory diagram of a composition setting of a subject (person).

まず、図6を参照して、追尾対象とする被写体を画面内に収める範囲(構図)の設定について説明する。図6(A)は、構図設定が「マニュアル」に設定されている場合の画面表示を例示する。「マニュアル」設定時には、撮影者が画面内の人物の像を見ながらズームレバー操作でマニュアルズーム動作を行って追尾する顔の大きさを変更する。そのときの被写体像のサイズは基準サイズとしてメモリ118に記憶される。図6(B)は構図設定が「顔」に設定されている場合の画面表示を例示する。「顔」の構図設定時には、カメラの姿勢や顔の方向によって顔が画面に収まる大きさが基準サイズとして算出され、メモリ118に記憶される。同様に、図6(C)は構図設定が「上半身」に設定されている場合の画面表示を例示し、図6(D)は構図設定が「全身」に設定されている場合の画面表示を例示する。それぞれ画面上で設定された大きさとなるように基準サイズが算出されてメモリ118に記憶される。 First, with reference to FIG. 6, the setting of the range (composition) within which the subject to be tracked is included in the screen will be described. FIG. 6A exemplifies the screen display when the composition setting is set to “manual”. When "manual" is set, the photographer performs a manual zoom operation by operating the zoom lever while looking at the image of a person on the screen to change the size of the face to be tracked. The size of the subject image at that time is stored in the memory 118 as a reference size. FIG. 6B exemplifies the screen display when the composition setting is set to “face”. When the composition of the "face" is set, the size of the face that fits on the screen is calculated as the reference size according to the posture of the camera and the direction of the face, and is stored in the memory 118. Similarly, FIG. 6 (C) illustrates the screen display when the composition setting is set to "upper body", and FIG. 6 (D) shows the screen display when the composition setting is set to "whole body". Illustrate. The reference size is calculated so as to be the size set on the screen, and stored in the memory 118.

図6(E)は構図設定が「オート」に設定されている場合の画面表示を例示する。「オート」設定時には、AZ制御部122が、画面内での被写体位置や被写体サイズ、被写体数、カメラの姿勢等を基づき、適切な構図を判定する。さらに、判定された構図となるように基準サイズが算出されてメモリ118に記憶される。基準サイズの算出方法については図12を用いて後述する。 FIG. 6E illustrates the screen display when the composition setting is set to “Auto”. When "auto" is set, the AZ control unit 122 determines an appropriate composition based on the subject position, subject size, number of subjects, camera posture, and the like on the screen. Further, the reference size is calculated and stored in the memory 118 so as to have the determined composition. The method of calculating the reference size will be described later with reference to FIG.

撮影者は撮影画面から操作部117の左右ボタン操作や設定メニュー上での選択によって構図設定を変更する操作を行える。構図設定の変更操作が行われると、AZ制御部122は、メモリ118に記憶されている構図設定の情報を更新する。なお、図6では被写体が人物の場合に「マニュアル」、「顔」、「上半身」、「全身」、「オート」の各構図を設定する例を示したが、構図の設定はこれに限定されるものではない。例示した5つの構図の一部のみを設定し、または他の構図を含んでもよい。また、被写体が物体の場合には、例えば「マニュアル」、「大」、「中」、「小」、「オート」の各構図を設定してもよい。 The photographer can perform an operation of changing the composition setting by operating the left and right buttons of the operation unit 117 or selecting on the setting menu from the shooting screen. When the composition setting change operation is performed, the AZ control unit 122 updates the composition setting information stored in the memory 118. Note that FIG. 6 shows an example of setting each composition of "manual", "face", "upper body", "whole body", and "auto" when the subject is a person, but the composition setting is limited to this. It's not something. Only a part of the five illustrated compositions may be set, or other compositions may be included. When the subject is an object, for example, "manual", "large", "medium", "small", and "auto" compositions may be set.

図5を参照して、被写体像が画面に占める割合を所定の範囲内に保つためのズーム動作について、構図設定が「マニュアル」の場合を例に説明する。図5(A)〜(C)は、被写体(人物)がカメラに近づいてきた場合に、カメラが自動的に行うズーム動作を例示する。これは、被写体像が画面に占める割合を所定の比率内に収めるためのズームアウト動作である。なお、図5では、顔追尾枠500a〜fを、被写体である人物の特徴領域として顔領域を囲むように表示している。したがって、ここでは顔追尾枠の大きさを、被写体サイズとして説明する。 With reference to FIG. 5, the zoom operation for keeping the ratio of the subject image to the screen within a predetermined range will be described by taking the case where the composition setting is “manual” as an example. FIGS. 5A to 5C exemplify a zoom operation automatically performed by the camera when a subject (person) approaches the camera. This is a zoom-out operation for keeping the ratio of the subject image to the screen within a predetermined ratio. In FIG. 5, the face tracking frames 500a to ff are displayed so as to surround the face area as a feature area of the person who is the subject. Therefore, here, the size of the face tracking frame will be described as the subject size.

図5(A)は、後述する被写体指定方法に従って被写体が指定されたときの画角を示している。被写体指定時の顔追尾枠500aの大きさは、基準の被写体サイズ(基準サイズ)としてメモリ118に記憶される。図5(B)は、図5(A)の状態からズーム倍率を変更しない状態で、被写体がカメラに向かって近づいてきたときの画角を示している。例えば、基準の被写体サイズである顔追尾枠500aの大きさに対して150%となる大きさをズームアウト動作の開始サイズとする。被写体追尾枠(顔追尾枠)の関係が、「顔追尾枠500b>顔追尾枠500a×150%」となったとき、つまり、基準サイズに対して所定の変化量を超えて追尾枠が変化したときに、AZ制御部122はズームアウト動作の開始を判定する。 FIG. 5A shows the angle of view when the subject is designated according to the subject designation method described later. The size of the face tracking frame 500a when the subject is specified is stored in the memory 118 as a reference subject size (reference size). FIG. 5B shows the angle of view when the subject approaches the camera without changing the zoom magnification from the state of FIG. 5A. For example, a size that is 150% of the size of the face tracking frame 500a, which is the reference subject size, is set as the start size of the zoom-out operation. When the relationship of the subject tracking frame (face tracking frame) is "face tracking frame 500b> face tracking frame 500a x 150%", that is, the tracking frame has changed by exceeding a predetermined amount of change with respect to the reference size. Occasionally, the AZ control unit 122 determines the start of the zoom-out operation.

図5(C)は、図5(B)の画角501から所定のズーム倍率分だけズームアウトした画角と、顔追尾枠500cを示している。ここでは、ズームアウト動作を開始するときの顔追尾枠サイズの基準被写体サイズに対する変化率(150%)を考慮して、所定のズーム倍率を1/1.5倍としている。この後、さらに被写体がカメラに近づいてくる場合、さらに広角側へズームアウトを行うことにより、被写体像を所定の比率内に収め続けることができる。したがって、撮影者はレリーズスイッチの操作だけに集中することが可能である。 FIG. 5C shows an angle of view zoomed out from the angle of view 501 of FIG. 5B by a predetermined zoom magnification, and the face tracking frame 500c. Here, the predetermined zoom magnification is set to 1 / 1.5 times in consideration of the rate of change (150%) of the face tracking frame size with respect to the reference subject size when the zoom-out operation is started. After that, when the subject approaches the camera further, the subject image can be kept within a predetermined ratio by further zooming out to the wide-angle side. Therefore, the photographer can concentrate only on the operation of the release switch.

一方、図5(D)〜(F)は、被写体である人物がカメラから遠ざかる場合に、カメラが自動的に行うズーム動作を例示する。これは、被写体像が画面に占める割合を所定の範囲内に収めるためのズームイン動作である。図5(D)は、後述する被写体指定方法に従って被写体が指定されたときの画角を示している。被写体指定時の顔追尾枠500dの大きさは、基準の被写体サイズとしてメモリ118に記憶される(構図設定が「マニュアル」の場合)。 On the other hand, FIGS. 5 (D) to 5 (F) illustrate the zoom operation automatically performed by the camera when the person who is the subject moves away from the camera. This is a zoom-in operation for keeping the ratio of the subject image to the screen within a predetermined range. FIG. 5D shows the angle of view when the subject is designated according to the subject designation method described later. The size of the face tracking frame 500d when the subject is specified is stored in the memory 118 as the reference subject size (when the composition setting is "manual").

図5(E)は、図5(D)の状態からズーム倍率を変更しない状態で、被写体がカメラから遠ざかったときの画角を示している。例えば、基準の被写体サイズである顔追尾枠500dの大きさに対して50%となる大きさをズームイン動作の開始サイズとする。顔追尾枠の関係が、「顔追尾枠500e<顔追尾枠500d×50%」となったときに、基準サイズに対して所定の変化量を超えて追尾枠が変化したと判定される。この判定条件を満たし、かつ、顔追尾枠500eがZI領域内に包含されると、AZ制御部122はズームイン動作の開始を判定する。ここで、図5(E)の画角に対して所定のズーム倍率分だけズームインした画角502よりも内側にZI領域が設定される。 FIG. 5 (E) shows the angle of view when the subject moves away from the camera without changing the zoom magnification from the state of FIG. 5 (D). For example, a size that is 50% of the size of the face tracking frame 500d, which is the reference subject size, is set as the start size of the zoom-in operation. When the relationship of the face tracking frame is "face tracking frame 500e <face tracking frame 500d x 50%", it is determined that the tracking frame has changed by exceeding a predetermined amount of change with respect to the reference size. When this determination condition is satisfied and the face tracking frame 500e is included in the ZI region, the AZ control unit 122 determines the start of the zoom-in operation. Here, the ZI region is set inside the angle of view 502 zoomed in by a predetermined zoom magnification with respect to the angle of view of FIG. 5 (E).

図5(F)は、図5(E)の画角から所定のズーム倍率分だけズームインした画角(画角502に対応)と、顔追尾枠500fを示している。ここでは、ズームイン動作を開始するときの顔追尾枠サイズの基準被写体サイズに対する変化率(50%)を考慮して、所定のズーム倍率を1/0.5倍としている。 FIG. 5 (F) shows an angle of view (corresponding to the angle of view 502) zoomed in by a predetermined zoom magnification from the angle of view of FIG. 5 (E) and the face tracking frame 500f. Here, the predetermined zoom magnification is set to 1 / 0.5 times in consideration of the rate of change (50%) of the face tracking frame size with respect to the reference subject size when the zoom-in operation is started.

図3では被写体が物体である場合、また図4では被写体が人物である場合にフレームアウトを防止する処理について説明した。また、図5では被写体が人物である場合に、画面に占める被写体像の大きさの比率を、所定の範囲内に収める処理について説明した。なお、追尾対象とする被写体が物体である場合にも、被写体が人物である場合と同様に、図5で示した被写体像のサイズ保持の制御のためのズーム動作開始判定を行ってもよい。また、構図設定が「マニュアル」以外の場合においても、それぞれの基準サイズに応じて、図5と同様に自動的にズーム動作が行われる。 FIG. 3 describes a process for preventing flameout when the subject is an object and FIG. 4 shows a process for preventing frame-out when the subject is a person. Further, in FIG. 5, when the subject is a person, the process of keeping the ratio of the size of the subject image to the screen within a predetermined range has been described. Even when the subject to be tracked is an object, the zoom operation start determination for controlling the size retention of the subject image shown in FIG. 5 may be performed as in the case where the subject is a person. Further, even when the composition setting is other than "manual", the zoom operation is automatically performed according to each reference size as in FIG.

次に、図7から図21を参照して、オートズーム機能の処理について説明する。図7は、オートズーム機能の全体の処理例を示すフローチャートである。以下のオートズーム機能は、特に明示的な記載がない限り、システム制御部114(AZ制御部122)の指令に基づいて行われるものとする。
まずS700でAZ制御部122は、操作部117のオートズーム操作スイッチの操作状態を判定する。オートズーム操作スイッチが押下された場合、S701に進み、当該スイッチが押下されない場合にはS700の判定処理が繰り返される。S701で被写体探索処理が実行され、さらに、S702の被写体指定処理、S703の基本サイズ設定処理、S704のオートズーム制御が順次に実行される。
Next, the processing of the auto zoom function will be described with reference to FIGS. 7 to 21. FIG. 7 is a flowchart showing an overall processing example of the auto zoom function. Unless otherwise specified, the following auto-zoom function shall be performed based on the command of the system control unit 114 (AZ control unit 122).
First, in S700, the AZ control unit 122 determines the operation state of the auto zoom operation switch of the operation unit 117. When the auto zoom operation switch is pressed, the process proceeds to S701, and when the switch is not pressed, the determination process of S700 is repeated. The subject search process is executed in S701, and the subject designation process in S702, the basic size setting process in S703, and the auto zoom control in S704 are sequentially executed.

オートズーム機能の処理が開始された直後、または、操作部117の被写体探索ボタンが押下された場合(S705でyes)に、S701の被写体探索処理が実行される。図8を参照して、S701のステップで実行する被写体探索処理を説明する。撮影対象の被写体がカメラから遠く離れている場合、画面内に被写体像が存在しても被写体の特徴領域が小さすぎると、被写体検出部123で検出できない可能性がある。このようなシーンでは、被写体情報に基づくオートズーム機能を実行することができない。そこで、所定の焦点距離まで被写体を検出しながらズームイン動作を行う被写体探索処理が実行される。 Immediately after the processing of the auto zoom function is started, or when the subject search button of the operation unit 117 is pressed (yes in S705), the subject search processing of S701 is executed. The subject search process executed in the step of S701 will be described with reference to FIG. When the subject to be photographed is far away from the camera, even if the subject image exists on the screen, if the feature area of the subject is too small, the subject detection unit 123 may not be able to detect the subject. In such a scene, the auto zoom function based on the subject information cannot be executed. Therefore, a subject search process is executed in which the subject is zoomed in while detecting the subject up to a predetermined focal length.

S800では、オートズーム開始の直後であるか、または、オートズーム開始の直後でなく、オートズーム中に被写体探索ボタンが押下されたかの判定処理が行われる。S800で前者の肯定的判定結果(yes)の場合にはS801に進み、否定的判定結果(no)の場合にはS803に移行する。S801では、被写体探索終了焦点距離(以下、探索終了焦点距離という)を取得する処理が実行される。本実施形態ではオートズーム開始直後に、探索終了焦点距離は35mm判換算で85mmの焦点距離としている。この焦点距離は一般的に人物を撮影する場合に適しているとされる標準レンズの焦点距離であり、被写体(人物)がいない場合や(後ろ向き状態等で)顔が検出できない場合でも探索終了後に適切な画角で被写体検出の待ち状態とすることができる。ただし、焦点距離は85mmに限らず、他の焦点距離(例えば50mmや100mm等)であってもよい。また、メニュー設定から撮影者が探索終了焦点距離を変更可能な構成や、撮影モードまたは撮影する被写体等に応じて探索終了焦点距離を変更可能な構成としてもよい。S801からS802に進むと、モード開始時の焦点距離が探索終了焦点距離と比較され、当該焦点距離が探索終了焦点距離よりも広角側か望遠側かについて判定される。オートズーム開始時の焦点距離が探索終了焦点距離よりも望遠側である場合(S802でno)には、被写体探索の処理を終了する。また、オートズーム開始時の焦点距離が探索終了焦点距離よりも広角側である場合(S802でyes)には、S805に進む。 In S800, the determination process is performed whether the subject search button is pressed during the auto zoom, not immediately after the start of the auto zoom or immediately after the start of the auto zoom. In S800, in the case of the former positive determination result (yes), the process proceeds to S801, and in the case of the negative determination result (no), the process proceeds to S803. In S801, a process of acquiring the subject search end focal length (hereinafter, referred to as search end focal length) is executed. In the present embodiment, the focal length at the end of the search is 85 mm in the 35 mm format immediately after the start of the auto zoom. This focal length is the focal length of a standard lens that is generally considered to be suitable for shooting a person, and even if there is no subject (person) or the face cannot be detected (in a backward facing state, etc.), after the search is completed. It is possible to wait for subject detection at an appropriate angle of view. However, the focal length is not limited to 85 mm, and other focal lengths (for example, 50 mm, 100 mm, etc.) may be used. Further, the search end focal length may be changed by the photographer from the menu setting, or the search end focal length may be changed according to the shooting mode or the subject to be photographed. When proceeding from S801 to S802, the focal length at the start of the mode is compared with the search end focal length, and it is determined whether the focal length is on the wide-angle side or the telephoto side of the search end focal length. When the focal length at the start of auto zoom is on the telephoto side of the focal length at the end of the search (no in S802), the subject search process ends. If the focal length at the start of auto zoom is wider than the focal length at the end of the search (yes in S802), the process proceeds to S805.

一方、S800で被写体探索ボタンの操作による被写体探索であると判定された場合にS803では、探索終了焦点距離を取得する処理が実行される。本実施形態では、被写体探索ボタンの操作での探索終了焦点距離を、当該操作が実行されたときの焦点距離に対して2.5倍だけ望遠側の焦点距離としている。ただし、この倍率は例示であって、他の倍率でもよい。また、メニュー設定から撮影者が探索終了焦点距離を変更可能な構成や、撮影モードまたは撮影する被写体等に応じて探索終了焦点距離を変更可能な構成としてもよい。S803からS804に進み、S803で取得した探索終了焦点距離がテレ端(望遠端)の焦点距離と比較され、探索終了焦点距離がテレ端の焦点距離よりも広角側か望遠側かについて判定される。探索終了焦点距離がテレ端の焦点距離よりも望遠側である場合には、被写体探索の処理を終了する。探索終了焦点距離がテレ端の焦点距離よりも広角側である場合には、S805に進む。S805でAZ制御部122は、S801またはS803にて取得した探索終了焦点距離に対応するズーム変化量を、CZ制御部119または電子ズーム制御部120に設定し、ズームイン動作を行うように指示する。 On the other hand, when it is determined in S800 that the subject search is performed by operating the subject search button, in S803, a process of acquiring the search end focal length is executed. In the present embodiment, the search end focal length by the operation of the subject search button is set to the focal length on the telephoto side by 2.5 times the focal length when the operation is executed. However, this magnification is an example, and other magnifications may be used. Further, the search end focal length may be changed by the photographer from the menu setting, or the search end focal length may be changed according to the shooting mode or the subject to be photographed. Proceeding from S803 to S804, the search end focal length acquired in S803 is compared with the focal length at the telephoto end (telephoto end), and it is determined whether the search end focal length is on the wide-angle side or the telephoto end side of the focal length at the telephoto end. .. When the search end focal length is on the telephoto side of the focal length at the telephoto end, the subject search process ends. If the search end focal length is on the wide-angle side of the focal length at the telephoto end, the process proceeds to S805. In S805, the AZ control unit 122 sets the zoom change amount corresponding to the search end focal length acquired in S801 or S803 to the CZ control unit 119 or the electronic zoom control unit 120, and instructs the CZ control unit 119 or the electronic zoom control unit 120 to perform the zoom-in operation.

次にS806では、現在の焦点距離が探索終了焦点距離に到達したか否かについて判定が行われる。現在の焦点距離が探索終了焦点距離に到達した場合、S809に進み、ズームイン動作を停止した後、被写体探索処理が終了する。また、S806で現在の焦点距離が探索終了焦点距離に到達していないと判定された場合には、S807に処理を進める。S807は、被写体検出部123によって被写体が検出されているか否かの判定処理である。S807で被写体が検出されたと判定された場合にはS808に進み、被写体が検出されたと判定されない場合にはS806に戻る。S808では、被写体を検出した位置が画面の所定の探索終了領域内であるか否かの判定が行われる。所定の探索終了領域については被写体に応じて予め設定された閾値(位置の判定基準値)により決定されるものとする。判定の結果、S807にて検出された被写体の検出位置が画面上の所定の探索終了領域内である場合にはS809に進み、ズームイン動作を停止して被写体探索処理を終了する。また、S808にて被写体の検出位置が画面上の所定の探索終了領域内でないと判定された場合には、S806に戻り、S806からS808の判定処理を継続する。 Next, in S806, it is determined whether or not the current focal length has reached the search end focal length. When the current focal length reaches the search end focal length, the process proceeds to S809, the zoom-in operation is stopped, and then the subject search process ends. If it is determined in S806 that the current focal length has not reached the search end focal length, the process proceeds to S807. S807 is a process for determining whether or not a subject is detected by the subject detection unit 123. If it is determined that the subject has been detected in S807, the process proceeds to S808, and if it is not determined that the subject has been detected, the process returns to S806. In S808, it is determined whether or not the position where the subject is detected is within a predetermined search end area on the screen. The predetermined search end area shall be determined by a threshold value (position determination reference value) set in advance according to the subject. As a result of the determination, if the detection position of the subject detected in S807 is within the predetermined search end area on the screen, the process proceeds to S809, the zoom-in operation is stopped, and the subject search process is terminated. If it is determined in S808 that the detection position of the subject is not within the predetermined search end area on the screen, the process returns to S806 and the determination processing of S806 to S808 is continued.

ここで、図9を参照して、S808で説明した所定の探索終了領域について説明する。特定の被写体(人物や物体)の撮影にて、撮影対象とする被写体は画面の中央付近に配置される場合が多い。また、画面周辺で撮影対象としない被写体を検出して被写体探索処理を終了した場合、撮影対象とする被写体を検出する前に被写体探索処理が終了する可能性がある。この場合、撮影者の意図通りのオートズーム機能を実行できない。そこで、本実施形態では、画面中央付近の領域内で被写体が検出された場合にのみ、被写体探索処理を終了するように、判定用領域としての探索終了領域が設定される。図9(A)は、被写体が物体(飛行機)である場合に設定される探索終了領域900aを例示する。物体の場合、画面の上下左右のいずれの方向に対しても、画面中央から所定の割合、例えば70%の範囲が被写体の探索終了領域として設定される。一方、図9(B)は、被写体が人物である場合に設定される探索終了領域900bを例示する。人物の場合、画面上部の領域については画面中央から100%の範囲を含み、それ以外の方向(左右方向、下方)では画面中央から所定の割合、例えば70%の範囲を含むように、探索終了領域が設定される。被写体が人物である場合、画面上部にも撮影対象である被写体の顔追尾枠902が配置される可能性がある。そのため、画面上部で被写体を検出した場合でも、被写体探索処理が終了するように探索終了領域の設定が行われる。 Here, with reference to FIG. 9, the predetermined search end region described in S808 will be described. When shooting a specific subject (person or object), the subject to be shot is often placed near the center of the screen. Further, when a subject that is not the subject to be photographed is detected around the screen and the subject search process is terminated, the subject search process may be terminated before the subject to be photographed is detected. In this case, the auto zoom function cannot be executed as the photographer intended. Therefore, in the present embodiment, the search end area as the determination area is set so that the subject search process is terminated only when the subject is detected in the area near the center of the screen. FIG. 9A illustrates a search end area 900a that is set when the subject is an object (airplane). In the case of an object, a predetermined ratio, for example, 70% from the center of the screen is set as the search end area of the subject in any of the up, down, left, and right directions of the screen. On the other hand, FIG. 9B illustrates a search end area 900b that is set when the subject is a person. In the case of a person, the search ends so that the area at the top of the screen includes a range of 100% from the center of the screen, and the other directions (horizontal direction, downward) include a predetermined ratio from the center of the screen, for example, 70%. The area is set. When the subject is a person, the face tracking frame 902 of the subject to be photographed may be arranged at the upper part of the screen. Therefore, even when the subject is detected at the upper part of the screen, the search end area is set so that the subject search process ends.

次に図10を参照して、図7にS702のステップで示す被写体指定処理について説明する。図10(A)は、操作部117を構成するタッチパネルを用いてユーザが所望の被写体を指定する処理例を示すフローチャートである。この例では、ユーザが表示部109に表示された被写体像をタッチして指定する操作を行うものとする。S1000でAZ制御部122は、タッチパネルが押下されたか否かを判定する。タッチパネルが押下された場合、S1001に進み、タッチパネルが押下されない場合にはS1000の判定処理が繰り返される。 Next, with reference to FIG. 10, the subject designation process shown in step S702 in FIG. 7 will be described. FIG. 10A is a flowchart showing a processing example in which the user specifies a desired subject using the touch panel constituting the operation unit 117. In this example, it is assumed that the user touches and specifies the subject image displayed on the display unit 109. In S1000, the AZ control unit 122 determines whether or not the touch panel is pressed. If the touch panel is pressed, the process proceeds to S1001, and if the touch panel is not pressed, the determination process of S1000 is repeated.

S1001でAZ制御部122は、ユーザがタッチした位置(タッチ位置)の情報を取得する。次のS1002でAZ制御部122は、タッチ位置を被写体検出部123に通知し、被写体検出部123はタッチ位置付近で顔検出を行う。S1002でタッチ位置付近に顔が検出された場合、主被写体は人物であると判定されて、S1003に進む。また、S1002にてタッチ位置付近に顔が検出されなかった場合、主被写体は人物以外の物体であると判定されてS1004に進む。 In S1001, the AZ control unit 122 acquires information on the position (touch position) touched by the user. In the next S1002, the AZ control unit 122 notifies the subject detection unit 123 of the touch position, and the subject detection unit 123 detects the face near the touch position. When a face is detected near the touch position in S1002, it is determined that the main subject is a person, and the process proceeds to S1003. If no face is detected near the touch position in S1002, it is determined that the main subject is an object other than a person, and the process proceeds to S1004.

S1003にてAZ制御部122は、自動追尾の対象である人物の顔情報をメモリ118に記憶させる制御を行う。具体的な顔情報としては、被写体指定時の顔のサイズと顔の検出位置、顔の向き等の情報がある。また、顔認証機能を有するカメラにおいては、認証ID等の識別情報もメモリ118に記憶される。S1004でAZ制御部122は、タッチ位置付近の特徴色を自動追尾対象の色情報としてメモリ118に記憶させる制御を行う。具体的な色情報としては、被写体指定時の特徴色とその輝度、色差の値や同一色領域のサイズ、同一色領域の重心位置等の情報がある。以下の説明では顔情報及び色情報を総称して、被写体情報(被写体サイズ、被写体検出位置等を含む)という。 In S1003, the AZ control unit 122 controls to store the face information of the person to be automatically tracked in the memory 118. Specific face information includes information such as the size of the face when the subject is specified, the detection position of the face, and the orientation of the face. Further, in a camera having a face recognition function, identification information such as an authentication ID is also stored in the memory 118. In S1004, the AZ control unit 122 controls to store the feature color near the touch position in the memory 118 as the color information to be automatically tracked. Specific color information includes information such as a feature color and its brightness when a subject is specified, a color difference value, a size of the same color region, and a position of the center of gravity of the same color region. In the following description, face information and color information are collectively referred to as subject information (including subject size, subject detection position, etc.).

S1003またはS1004にて被写体情報がメモリ118に記憶された後、S1005に進み、被写体追尾枠が表示される。S1005でAZ制御部122は、被写体検出位置を中心にて、被写体サイズに対応した大きさの被写体追尾枠(モノ追尾枠または顔追尾枠)を表示部109に表示させる制御を行う。その後、被写体指定処理が終了する。
このようにシステム制御部114にて、被写体検出部123は、表示部109において撮影者により指定された位置、または指定された位置の近傍で被写体を検出する。そしてAZ制御部122は、被写体追尾枠を表示部109に表示させる。図10(A)の処理例によれば、撮影者が追尾したい被写体を、直感的な方法で簡単に指定可能となる。ただし、被写体の指定方法はこの方法に限定されない。図10(B)を参照して別の方法を説明する。
After the subject information is stored in the memory 118 in S1003 or S1004, the process proceeds to S1005 and the subject tracking frame is displayed. In S1005, the AZ control unit 122 controls the display unit 109 to display a subject tracking frame (mono tracking frame or face tracking frame) having a size corresponding to the subject size, centering on the subject detection position. After that, the subject designation process ends.
In this way, in the system control unit 114, the subject detection unit 123 detects the subject at the position designated by the photographer on the display unit 109 or in the vicinity of the designated position. Then, the AZ control unit 122 causes the display unit 109 to display the subject tracking frame. According to the processing example of FIG. 10A, the photographer can easily specify the subject to be tracked by an intuitive method. However, the method of designating the subject is not limited to this method. Another method will be described with reference to FIG. 10 (B).

図10(B)は、操作部117を構成する操作部材として、オートズーム操作スイッチとは別のスイッチ(被写体指定用スイッチ)を用いて、ユーザが被写体を指定する場合の処理例を示すフローチャートである。まずS1006にてAZ制御部122は、表示部109の画面中央付近に被写体指定の目安となる枠を表示する。撮影者は、この枠を目安として追尾したい被写体の画像を画面中央付近に収めるようにカメラの向きを調整する。次のS1007でAZ制御部122は、被写体指定用スイッチが押下されたか否かを判定する。被写体指定用スイッチが押下された場合、S1008に進み、当該スイッチが押下されない場合には待ち状態でS1007の判定処理が繰り返される。 FIG. 10B is a flowchart showing a processing example when the user specifies a subject by using a switch (subject specification switch) different from the auto zoom operation switch as an operation member constituting the operation unit 117. is there. First, in S1006, the AZ control unit 122 displays a frame as a guide for specifying a subject near the center of the screen of the display unit 109. The photographer adjusts the orientation of the camera so that the image of the subject to be tracked is placed near the center of the screen using this frame as a guide. In the next S1007, the AZ control unit 122 determines whether or not the subject designation switch has been pressed. When the subject designation switch is pressed, the process proceeds to S1008, and when the switch is not pressed, the determination process of S1007 is repeated in the waiting state.

S1008で被写体検出部123は、画面中央付近で顔検出を行う。画面中央付近に顔が検出した場合、主被写体は人物であると判定され、S1009に進む。一方、画面中央付近に顔が検出されなかった場合、主被写体は人物以外の物体であると判定され、S1010に進む。S1009では図10(A)のS1003と同様の処理が行われ、またS1010では図10(A)のS1004と同様の処理が行われるので、それらの説明を省略する。S1009またはS1010にて被写体情報がメモリ118に記憶された後、S1011に進み、被写体追尾枠(モノ追尾枠または顔追尾枠)が表示され、被写体指定処理は終了となる。 In S1008, the subject detection unit 123 detects the face near the center of the screen. When a face is detected near the center of the screen, it is determined that the main subject is a person, and the process proceeds to S1009. On the other hand, when the face is not detected near the center of the screen, it is determined that the main subject is an object other than a person, and the process proceeds to S1010. In S1009, the same processing as in S1003 of FIG. 10A is performed, and in S1010, the same processing as in S1004 of FIG. 10A is performed, so the description thereof will be omitted. After the subject information is stored in the memory 118 in S1009 or S1010, the process proceeds to S1011 and the subject tracking frame (mono tracking frame or face tracking frame) is displayed, and the subject designation process ends.

このように図10(B)の処理例では、被写体検出部123が表示部109の画面中央位置または画面中央位置の近傍で被写体を検出する。そしてAZ制御部122は、被写体の位置を示す被写体追尾枠を表示部109に表示させる。タッチパネル等の操作部材を搭載しないカメラにおいても、ユーザは被写体を簡単に指定可能となる。 As described above, in the processing example of FIG. 10B, the subject detection unit 123 detects the subject at the screen center position or the vicinity of the screen center position of the display unit 109. Then, the AZ control unit 122 causes the display unit 109 to display a subject tracking frame indicating the position of the subject. Even in a camera that is not equipped with an operating member such as a touch panel, the user can easily specify the subject.

図11は、操作部117を構成するオートズーム操作スイッチが押下された時点で検出された顔の中から、追尾する被写体を自動的に選択する処理例を示すフローチャートである。まずS1100で被写体検出部123は、画面全体で顔検出を行い、人物の顔が検出されたか否かを判定する。画面全体で一人でも顔が検出された場合、主被写体は人物であると判定され、S1101に進む。また、画面内にひとつも顔が検出されない場合にはS1105に移行する。 FIG. 11 is a flowchart showing a processing example of automatically selecting a subject to be tracked from the faces detected when the auto zoom operation switch constituting the operation unit 117 is pressed. First, in S1100, the subject detection unit 123 performs face detection on the entire screen and determines whether or not a person's face has been detected. If even one face is detected on the entire screen, it is determined that the main subject is a person, and the process proceeds to S1101. If no face is detected on the screen, the process proceeds to S1105.

S1101で被写体検出部123は、検出した顔の人物が一人の場合、その顔を主顔として選択する。被写体検出部123は、検出した顔が複数の場合、その顔の中から追尾する被写体とする主顔を選択する。主顔選択の判定基準として、例えば、顔検出位置がより画面中央付近に位置する顔を優先して選択する方法がある。また、同程度の位置に複数の顔がある場合、サイズのより大きい顔を主顔として選択する方法がある。また、顔認証機能を有するカメラの場合には、認証登録されている顔がある場合、その顔を優先して主顔とする方法がある。 In S1101, the subject detection unit 123 selects the face as the main face when there is only one person with the detected face. When there are a plurality of detected faces, the subject detection unit 123 selects the main face to be the subject to be tracked from the faces. As a criterion for selecting the main face, for example, there is a method of preferentially selecting a face whose face detection position is closer to the center of the screen. Further, when there are a plurality of faces at the same position, there is a method of selecting a face having a larger size as the main face. Further, in the case of a camera having a face recognition function, if there is a face registered for authentication, there is a method of giving priority to that face as the main face.

S1101からS1102に進み、AZ制御部122は、選択された主顔の顔情報をメモリ118に記憶した後、S1103に進んで顔追尾枠を画面上に表示させる。次のS1104において、顔の変更判定が行われる。つまり、複数の顔が検出された場合に自動で選択された主顔が撮影者の意図する顔であるとは限らない。そのために、撮影者が主顔を変更することが可能である。このとき、撮影者が操作部117のスイッチ(オートズーム操作スイッチ等)を押下して所望の顔を指定すると、顔追尾枠が検出された顔の中から主顔として選択されなかった別の顔に主顔を変更する処理が行われる。S1104にて主顔が変更された場合、再度、S1102に戻って、メモリ118に記憶すべき顔情報が更新される。また、S1103にて顔追尾枠が、新たに選択された主顔のサイズ及び検出位置に変更される。 Proceeding from S1101 to S1102, the AZ control unit 122 stores the face information of the selected main face in the memory 118, and then proceeds to S1103 to display the face tracking frame on the screen. In the next S1104, the face change determination is performed. That is, when a plurality of faces are detected, the automatically selected main face is not always the face intended by the photographer. Therefore, the photographer can change the main face. At this time, when the photographer presses a switch (auto zoom operation switch, etc.) of the operation unit 117 to specify a desired face, another face that is not selected as the main face from the faces for which the face tracking frame is detected is specified. The process of changing the main face is performed. When the main face is changed in S1104, the process returns to S1102 again to update the face information to be stored in the memory 118. Further, in S1103, the face tracking frame is changed to the size and detection position of the newly selected main face.

一方、S1100からS1105に移行した場合、主被写体は人物以外の物体であると判定され、AZ制御部122は、画面中央付近の特徴色を自動追尾対象の色情報として、メモリ118に記憶する制御を行う。次のS1106ではモノ追尾枠が画面上に表示された後、被写体指定処理が終了する。図11のS1102、S1105、S1103(S1106)における基本的な処理は、図10(A)のS1003、S1004、S1005の場合とそれぞれ同様である。 On the other hand, when shifting from S1100 to S1105, it is determined that the main subject is an object other than a person, and the AZ control unit 122 stores the feature color near the center of the screen as color information to be automatically tracked in the memory 118. I do. In the next S1106, the subject designation process ends after the mono tracking frame is displayed on the screen. The basic processing in S1102, S1105, and S1103 (S1106) of FIG. 11 is the same as that of S1003, S1004, and S1005 of FIG. 10 (A), respectively.

このように図11の処理例では、システム制御部114にて被写体検出部123が表示部109の画面全体において顔検出を行う。AZ制御部122は、複数の顔が検出された場合、複数の顔の中から被写体として第1の顔の位置を示す被写体追尾枠を表示部109に表示させる制御を行う。またAZ制御部122は、被写体として第1の顔が第2の顔に変更された場合、第2の顔の位置を示す被写体追尾枠を表示部109に表示させる制御を行う。撮影者は、より少ない操作回数で所望の被写体を簡単に指定できる。 As described above, in the processing example of FIG. 11, the system control unit 114 causes the subject detection unit 123 to detect the face on the entire screen of the display unit 109. When a plurality of faces are detected, the AZ control unit 122 controls the display unit 109 to display a subject tracking frame indicating the position of the first face as a subject from the plurality of faces. Further, the AZ control unit 122 controls the display unit 109 to display the subject tracking frame indicating the position of the second face when the first face as the subject is changed to the second face. The photographer can easily specify a desired subject with a smaller number of operations.

被写体指定処理については、操作部117を構成するタッチパネルと被写体指定用スイッチの両方があるカメラの場合には、図10(A)の方法と図10(B)の方法との両方を同時に適用してもよい。また、図7に示すS706での被写体変更の判定がなされた後では、図10(A)または図10(B)の方法で被写体を指定し、S701の被写体探索処理の後では、図11の方法で被写体を指定することもできる。処理の流れに応じて適用する被写体指定処理を変更してもよい。被写体指定処理(図7のS702)が終了すると、図7のS703に進み、追尾する被写体の大きさを基準サイズとして設定する処理が実行される。 Regarding the subject designation process, in the case of a camera having both the touch panel constituting the operation unit 117 and the subject designation switch, both the method of FIG. 10 (A) and the method of FIG. 10 (B) are applied at the same time. You may. Further, after the determination of the subject change in S706 shown in FIG. 7 is made, the subject is designated by the method of FIG. 10A or FIG. 10B, and after the subject search process of S701, FIG. You can also specify the subject by the method. The subject designation process to be applied may be changed according to the process flow. When the subject designation process (S702 in FIG. 7) is completed, the process proceeds to S703 in FIG. 7 to execute a process of setting the size of the subject to be tracked as a reference size.

図12から図19を参照して、図7に示すS703の基準サイズ設定処理について説明する。図12は被写体が人物である場合の基準サイズの設定処理例を示すフローチャートである。まずS1200でAZ制御部122は、メモリ118に記憶されている構図設定が上述した「マニュアル」であるか否かを判定する。構図設定が「マニュアル」である場合にはS1201に進み、「マニュアル」以外である場合にはS1203に進む。 The reference size setting process of S703 shown in FIG. 7 will be described with reference to FIGS. 12 to 19. FIG. 12 is a flowchart showing an example of setting a reference size when the subject is a person. First, in S1200, the AZ control unit 122 determines whether or not the composition setting stored in the memory 118 is the above-mentioned "manual". If the composition setting is "manual", the process proceeds to S1201, and if the composition setting is other than "manual", the process proceeds to S1203.

S1201にてAZ制御部122は、被写体検出の判定を行う。AZ制御部122は、被写体検出部123にて、被写体が人物であるときには顔が検出されるか否か、また被写体が物体であるときには同一の特徴色が検出されるか否かを判定する。被写体が検出されるまでS1201の判定処理が繰り返され、被写体が検出された場合にS1202に進む。S1202でAZ制御部122は、検出された被写体像の大きさを基準サイズとして設定し、メモリ118に記憶して処理を終了する。これによって、構図設定が「マニュアル」である場合には、基準サイズ設定処理を開始したときに最初に検出した被写体像の大きさ(検出サイズ)が、基準サイズとしてメモリ118に記憶される。 In S1201, the AZ control unit 122 determines the subject detection. The AZ control unit 122 determines in the subject detection unit 123 whether or not the face is detected when the subject is a person, and whether or not the same feature color is detected when the subject is an object. The determination process of S1201 is repeated until the subject is detected, and when the subject is detected, the process proceeds to S1202. In S1202, the AZ control unit 122 sets the size of the detected subject image as a reference size, stores it in the memory 118, and ends the process. As a result, when the composition setting is "manual", the size (detection size) of the subject image first detected when the reference size setting process is started is stored in the memory 118 as the reference size.

一方、S1203でAZ制御部122は、姿勢検出部124によって判定したカメラの姿勢情報に基づいて画面サイズを算出する。この画面サイズは、後述のS1211、S1704、S1705、S1806、S1807にて基準サイズの算出に用いる。図13を参照して、画面サイズの算出処理について説明する。本実施形態では、静止画の画面サイズを長辺×短辺=640×480とし、動画の画面サイズを長辺×短辺=640×360とした場合を例示するが、画面サイズはこれに限定されるものではない。 On the other hand, in S1203, the AZ control unit 122 calculates the screen size based on the attitude information of the camera determined by the attitude detection unit 124. This screen size is used for calculating the reference size in S1211, S1704, S1705, S1806, and S1807, which will be described later. The screen size calculation process will be described with reference to FIG. In the present embodiment, a case where the screen size of the still image is set to long side x short side = 640 x 480 and the screen size of the moving image is set to long side x short side = 640 x 360 is illustrated, but the screen size is limited to this. It is not something that is done.

S1300では、撮影者がカメラを正位置に構えているか、または縦位置に構えているかについて、姿勢検出部124により判定される。撮影者がカメラを正位置に構えていると判定された場合、S1301に進むが、縦位置に構えている場合にはS1306に移行する。S1301では、長辺サイズである640を水平方向の画面サイズに設定する処理が実行される。次のS1302では現在の設定モードが、静止画と動画とを同時に撮影できるモード(静止画/動画同時撮影モード)であるか否かの判定処理が行われる。静止画/動画同時撮影モードとは、動画の撮影中に撮影者が操作部117のレリーズスイッチを押下することで静止画撮影も同時に行えるか、または静止画撮影直前のフレーミング操作の様子を動画として自動的に記録可能なモードのことである。S1302で静止画/動画同時撮影モードであると判定された場合、動画の短辺サイズと静止画の短辺サイズとを比較し、より小さいサイズを垂直画面サイズとして設定する処理が実行される。これは、小さい画面サイズに合わせてオートズームを行うことで、静止画と動画のいずれの画角でも被写体が画面からフレームアウトすることを防止するためである。したがって、本実施形態では静止画/動画同時撮影モードの場合にS1304に進み、動画の短辺サイズである360が垂直画面サイズとして設定される。その後、画面サイズ算出処理が終了する。 In S1300, the posture detection unit 124 determines whether the photographer is holding the camera in the normal position or in the vertical position. If it is determined that the photographer is holding the camera in the normal position, the process proceeds to S1301, but if the photographer is holding the camera in the vertical position, the process proceeds to S1306. In S1301, a process of setting the long side size 640 to the screen size in the horizontal direction is executed. In the next S1302, a process of determining whether or not the current setting mode is a mode in which a still image and a moving image can be simultaneously photographed (still image / moving image simultaneous shooting mode) is performed. In the still image / moving image simultaneous shooting mode, the photographer can simultaneously take a still image by pressing the release switch of the operation unit 117 during the moving image shooting, or the state of the framing operation immediately before the still image shooting is taken as a moving image. It is a mode that can be recorded automatically. When it is determined in S1302 that the still image / moving image simultaneous shooting mode is used, a process of comparing the short side size of the moving image with the short side size of the still image and setting a smaller size as the vertical screen size is executed. This is to prevent the subject from being framed out of the screen at both the angle of view of the still image and the moving image by performing the auto zoom according to the small screen size. Therefore, in the present embodiment, in the case of the still image / moving image simultaneous shooting mode, the process proceeds to S1304, and 360, which is the short side size of the moving image, is set as the vertical screen size. After that, the screen size calculation process ends.

S1302で静止画/動画同時撮影モードでないと判定された場合には、S1303へ進む。S1303では、動画記録中であるか、または静止画フレーミング中であるかが判定される。動画記録中であると判定された場合、S1304に進むが、動画記録中でないと判定された場合にはS1305に移行する。S1305では静止画の短辺サイズである480が垂直画面サイズとして設定される。 If it is determined in S1302 that the mode is not the still image / moving image simultaneous shooting mode, the process proceeds to S1303. In S1303, it is determined whether the moving image is being recorded or the still image is being framed. If it is determined that the moving image is being recorded, the process proceeds to S1304, but if it is determined that the moving image is not being recorded, the process proceeds to S1305. In S1305, the short side size of the still image, 480, is set as the vertical screen size.

S1300で撮影者が縦位置に構えていると判定された場合、S1306からS1310の処理が実行される。S1306からS1310の処理はそれぞれ、S1301からS1305の処理に対して、水平画面サイズと垂直画面サイズの設定を逆にした処理である。つまり、前記の説明にて「水平」と「垂直」を入れ替えることで読み替えればよいので詳細な説明を省略する。なお、本実施形態では静止画の画面サイズが4:3であって(図15(A)及び(B)参照)、動画の画面サイズが16:9である例(図15(C)参照)を示すが、アスペクト比の設定に応じて画面サイズを変更してもよい。それによってアスペクト比に依らず、画面に対して人物の画像が占める割合を一定とすることが可能である。また、静止画/動画同時撮影モードとして静止画と動画で画面サイズが異なる例を示したが、異なる画面サイズの複数の静止画や動画を同時に撮影する形態であってもよい。 When it is determined in S1300 that the photographer is holding the photographer in the vertical position, the processes of S1306 to S1310 are executed. The processes of S1306 to S1310 are the processes in which the horizontal screen size and the vertical screen size are set in reverse with respect to the processes of S1301 to S1305, respectively. That is, since it may be read by exchanging "horizontal" and "vertical" in the above description, detailed description will be omitted. In this embodiment, the screen size of the still image is 4: 3 (see FIGS. 15A and 15B), and the screen size of the moving image is 16: 9 (see FIG. 15C). However, the screen size may be changed according to the aspect ratio setting. As a result, it is possible to keep the ratio of the image of a person to the screen constant regardless of the aspect ratio. Further, although the example in which the screen size is different between the still image and the moving image is shown as the still image / moving image simultaneous shooting mode, a form in which a plurality of still images or moving images having different screen sizes are simultaneously shot may be used.

図12のS1203にて画面サイズが決定されると、S1204に処理を進める。メモリ118に記憶されている構図設定が「顔」、「上半身」、「全身」のいずれかである場合、S1204からS1209にてAZ制御部122は、構図設定に応じて画面に占める顔画像のサイズの比率(顔比率という)を決定する。本実施形態の顔比率は、画面に対する顔追尾枠の垂直方向における長さの比率を示すが、水平方向における長さの比率や、面積比などで示してもよい。具体的には例えば、S1204で構図設定が「顔」であるか否かが判定され、「顔」の構図の場合(S1204でyes)、顔比率が27%に決定される(S1207)。また、構図設定が「顔」でない場合にはS1205に進み、構図設定が「上半身」であるか否かが判定され、「上半身」の構図の場合(S1205でyes)、顔比率が16%に決定される(S1208)。構図設定が「上半身」でない場合にはS1206に進み、構図設定が「全身」であるか否かが判定され、「全身」の構図の場合(S1206でyes)、顔比率が7%と決定される(S1209)。S1204からS1209の各ステップにより顔比率が決定された後、S1210に進む。 When the screen size is determined in S1203 of FIG. 12, the process proceeds to S1204. When the composition setting stored in the memory 118 is any of "face", "upper body", and "whole body", in S1204 to S1209, the AZ control unit 122 occupies the face image on the screen according to the composition setting. Determine the size ratio (called the face ratio). The face ratio of the present embodiment indicates the ratio of the length of the face tracking frame to the screen in the vertical direction, but it may also be indicated by the ratio of the length in the horizontal direction, the area ratio, or the like. Specifically, for example, in S1204, it is determined whether or not the composition setting is "face", and in the case of the composition of "face" (yes in S1204), the face ratio is determined to be 27% (S1207). If the composition setting is not "face", the process proceeds to S1205, and it is determined whether or not the composition setting is "upper body". If the composition is "upper body" (yes in S1205), the face ratio becomes 16%. It is determined (S1208). If the composition setting is not "upper body", the process proceeds to S1206, and it is determined whether or not the composition setting is "whole body". In the case of "whole body" composition (yes in S1206), the face ratio is determined to be 7%. (S1209). After the face ratio is determined by each step of S1204 to S1209, the process proceeds to S1210.

S1210でAZ制御部122は、S1204からS1209で決定した顔比率と、S1203で算出した垂直画面サイズとを乗算することで基準サイズを算出する。これは、立位姿勢の被写体(人物)を前提として、垂直方向の画面サイズに対する顔比率から基準サイズを算出する方法である。被写体検出部123により顔の方向が判定できる場合には、画面上での顔の上下方向に基づいて画面サイズの方向を決定してもよい。さらに、算出した基準サイズをメモリ118に記憶する処理が実行された後、基準サイズ設定の処理を終了する。これによって、構図設定が「顔」、「上半身」、「全身」のいずれかである場合、画面サイズに対して構図設定に応じた所定の顔比率となるサイズが基準サイズとして設定される。 In S1210, the AZ control unit 122 calculates the reference size by multiplying the face ratio determined in S1204 to S1209 with the vertical screen size calculated in S1203. This is a method of calculating the reference size from the face ratio to the screen size in the vertical direction on the premise of a subject (person) in a standing posture. If the subject detection unit 123 can determine the direction of the face, the direction of the screen size may be determined based on the vertical direction of the face on the screen. Further, after the process of storing the calculated reference size in the memory 118 is executed, the process of setting the reference size is terminated. As a result, when the composition setting is any of "face", "upper body", and "whole body", a size having a predetermined face ratio according to the composition setting with respect to the screen size is set as the reference size.

S1206にて構図設定が「全身」でない場合、すなわち、構図設定が「オート」であると判定された場合には、S1211に進み、AZ制御部122は、撮影状態や被写体の数、被写体の動き等に応じて適切な構図を自動で判定する。図14を参照して、S1211の構図設定「オート」での自動構図判定及び構図選択処理について説明する。構図設定「オート」は、撮影シーンを判別して適切な構図をカメラが自動で選択する(自動構図選択)ことによって、構図合わせをさらに簡単に行えるモードである。 If the composition setting is not "whole body" in S1206, that is, if it is determined that the composition setting is "auto", the process proceeds to S1211, and the AZ control unit 122 sets the shooting state, the number of subjects, and the movement of the subjects. The appropriate composition is automatically determined according to the above. With reference to FIG. 14, the automatic composition determination and the composition selection process in the composition setting “auto” of S1211 will be described. The composition setting "auto" is a mode in which composition adjustment can be performed more easily by determining the shooting scene and automatically selecting an appropriate composition by the camera (automatic composition selection).

図14は、本実施形態にて自動で選択される構図の遷移図を示す。本実施形態においては、上半身1400、全身1401、顔1402、複数人1403、マニュアル1404という5つの構図の中から、撮影シーンに応じて適切な構図を選択する構図選択処理が行われる。構図合わせの操作において、静止画撮影時には、撮影前に瞬時に被写体像を適切な大きさとする必要がある。一方、動画撮影時には、動いている被写体を追い続けたり、静止した被写体に寄ったりする等、撮影している間は常に被写体像を適切な大きさとする必要がある。また、動画撮影時には構図の変更によるズームイン動作時やズームアウト動作時の画像データも記録されるため、適切なタイミングで構図を変更することで効果的な映像を撮影できる。このように、静止画と動画とではそれぞれに適切な構図が異なる。そこで、静止画フレーミング中1405と、動画記録中1406とで、撮影状態によって選択する構図を変更する処理が実行される。すなわち、本実施形態では第1の動作状態として静止画の撮影準備状態を例示し、第2の動作状態として動画の記録状態を例示する。静止画フレーミング中1405での第1の構図群に属する選択候補の構図として、上半身1400、全身1401、複数人1403からいずれかの構図が選択される。動画記録中1406での第2の構図群に属する選択候補の構図としては、上半身1400、全身1401、顔1402からいずれかの構図が選択される。つまり、上半身1400、全身1401の各構図が第1の構図群と第2の構図群とで共通し、複数人1403の構図は第1の構図群にのみ包含され、顔1402の構図は第2の構図群にのみ包含される。なお、撮像装置の仕様等に応じて、3以上の動作状態と、それぞれに対応する複数の構図群(各動作状態にて選択可能な構図を含む)を設定可能である。 FIG. 14 shows a transition diagram of the composition automatically selected in the present embodiment. In the present embodiment, a composition selection process is performed in which an appropriate composition is selected according to the shooting scene from the five compositions of the upper body 1400, the whole body 1401, the face 1402, the plurality of people 1403, and the manual 1404. In the composition matching operation, when shooting a still image, it is necessary to instantly make the subject image an appropriate size before shooting. On the other hand, when shooting a moving image, it is necessary to keep the subject image at an appropriate size during shooting, such as keeping track of a moving subject or approaching a stationary subject. In addition, when shooting a moving image, image data during zoom-in operation or zoom-out operation due to a change in composition is also recorded, so that an effective image can be taken by changing the composition at an appropriate timing. In this way, the appropriate composition differs between the still image and the moving image. Therefore, a process of changing the composition to be selected depending on the shooting state is executed between the still image framing 1405 and the moving image recording 1406. That is, in the present embodiment, the shooting preparation state of the still image is exemplified as the first operating state, and the recording state of the moving image is exemplified as the second operating state. As the composition of the selection candidate belonging to the first composition group in the still image framing 1405, any composition is selected from the upper body 1400, the whole body 1401, and the plurality of people 1403. As the composition of the selection candidate belonging to the second composition group in 1406 during the moving image recording, any composition is selected from the upper body 1400, the whole body 1401, and the face 1402. That is, the compositions of the upper body 1400 and the whole body 1401 are common to the first composition group and the second composition group, the composition of the plurality of people 1403 is included only in the first composition group, and the composition of the face 1402 is the second. It is included only in the composition group of. It should be noted that three or more operating states and a plurality of composition groups (including compositions that can be selected in each operating state) corresponding to each of three or more operating states can be set according to the specifications of the imaging device and the like.

ここで、撮影シーンの判定条件と、各構図の遷移について説明する。構図設定「オート」の自動構図判定処理S1211が開始すると、初期状態の構図として上半身1400が設定される。上半身1400の構図は、静止画フレーミング中1405もしくは動画記録中1406に、静止している単数の被写体を撮影するシーンであると判定された場合に選択される構図である。このようなシーンでは、被写体の上半身を画面内に収める構図とすることで適度に被写体に寄った構図とすることができる。 Here, the determination conditions of the shooting scene and the transition of each composition will be described. When the automatic composition determination process S1211 of the composition setting “auto” is started, the upper body 1400 is set as the composition in the initial state. The composition of the upper body 1400 is a composition selected when it is determined in 1405 during still image framing or 1406 during moving image recording that the scene is for shooting a single stationary subject. In such a scene, the composition can be set so that the upper body of the subject is contained in the screen so that the composition is appropriately close to the subject.

上半身1400の構図で、撮影対象の被写体の動きが検出された場合、または、カメラから被写体までの距離が所定距離D1(第1閾値)よりも大きいと判定された場合には、構図が全身1401に変更される。全身1401の構図は、静止画フレーミング中1405もしくは動画記録中1406に、動いている被写体や遠くの被写体、すなわち、被写体が画面からフレームアウトしやすい被写体を撮影するシーンであると判定された場合に選択される構図である。このようなシーンでは、被写体の全身を収める構図で被写体を追うことによって、できるだけ画面から被写体がフレームアウトしないように設定される。さらに、全身1401の構図で、撮影対象の被写体が所定時間以上に静止したことが検出され、かつ、カメラから被写体までの距離が所定距離D2(第2閾値)よりも小さいと判定された場合には、構図を上半身1400に戻す処理が実行される。所定時間とは予め設定される判定用の基準時間である。 When the movement of the subject to be photographed is detected in the composition of the upper body 1400, or when it is determined that the distance from the camera to the subject is larger than the predetermined distance D1 (first threshold value), the composition is 1401 for the whole body. Is changed to. The composition of the whole body 1401 is when it is determined in 1405 during still image framing or 1406 during moving image recording that a moving subject or a distant subject, that is, a subject whose subject is likely to be out of the screen is photographed. This is the composition to be selected. In such a scene, the subject is set so as not to be framed out from the screen as much as possible by following the subject with a composition that fits the whole body of the subject. Further, when it is detected that the subject to be photographed has stopped for a predetermined time or longer in the composition of the whole body 1401 and the distance from the camera to the subject is determined to be smaller than the predetermined distance D2 (second threshold value). Is executed to return the composition to the upper body 1400. The predetermined time is a preset reference time for determination.

以下、被写体の動きや静止の判定方法について説明する。被写体検出部123が検出した被写体の位置やサイズの変化量、または、被写体を検出している状態で揺れ検出部125が検出した揺れ量のうち、少なくとも一つが所定量よりも大きい場合には、撮影対象の被写体が動いていると判定される。被写体検出部123が検出した被写体の位置やサイズの変化量、及び、被写体を検出している状態で揺れ検出部125が検出した揺れ量の全てが所定量よりも小さい状態が所定時間以上続いた場合に撮影対象の被写体が静止していると判定される。検出状態の継続時間については、計時用タイマで計測されるものとする。 Hereinafter, a method for determining the movement and stillness of the subject will be described. When at least one of the amount of change in the position and size of the subject detected by the subject detection unit 123 or the amount of shaking detected by the shaking detection unit 125 while the subject is being detected is larger than a predetermined amount, It is determined that the subject to be photographed is moving. The amount of change in the position and size of the subject detected by the subject detection unit 123 and the amount of shaking detected by the shaking detection unit 125 while the subject was being detected continued to be smaller than the predetermined amount for a predetermined time or longer. In this case, it is determined that the subject to be photographed is stationary. The duration of the detection state shall be measured by the timekeeping timer.

さらに、カメラから被写体までの距離の算出方法について説明する。まず、基準とする焦点距離と、被写体サイズに対する被写体距離を予め計測しておき、メモリ118に計測データが記憶される。メモリ118に記憶された基準値に対して、「被写体距離=(基準被写体距離×焦点距離×基準被写体サイズ)/(基準焦点距離×検出サイズ)」という演算を行うことで被写体距離が算出される。例えば、基準値が基準被写体距離2m、基準焦点距離24mm、基準被写体サイズ20pix(ピクセル)である場合に、焦点距離120mmで検出サイズ40pixの被写体像を検出した場合を想定する。この場合、被写体距離は、(2m×120mm×20pix)/(24mm×40pix)=5mと算定される。 Further, a method of calculating the distance from the camera to the subject will be described. First, the reference focal length and the subject distance with respect to the subject size are measured in advance, and the measurement data is stored in the memory 118. The subject distance is calculated by performing the calculation "subject distance = (reference subject distance x focal length x reference subject size) / (reference focal length x detection size)" with respect to the reference value stored in the memory 118. .. For example, it is assumed that when the reference values are a reference subject distance of 2 m, a reference focal length of 24 mm, and a reference subject size of 20 pix (pixels), a subject image having a detection size of 40 pix is detected at a focal length of 120 mm. In this case, the subject distance is calculated as (2 m × 120 mm × 20 pix) / (24 mm × 40 pix) = 5 m.

次に画面内に複数人の被写体を検出した場合の構図について説明する。静止画フレーミング中1405の上半身1400または全身1401の構図で、画面内に複数人の被写体が検出された場合には、構図を複数人1403に変更する処理が行われる。このとき、検出された被写体の数がメモリ118に記憶される。複数人1403の構図は、静止画フレーミング中1405に、複数の全ての被写体を所定の画角に収める集合写真の撮影シーンであると判定された場合に選択される構図である。複数人1403の構図の状態では、検出された被写体の数が変化したか否かの判定処理が行われる。検出された被写体の数が増加した場合には、新しい被写体が画面内に入って来たことで、即座にメモリ118に記憶した被写体の数が更新されて、構図の変更が行われる。一方、検出された被写体の数が減少した場合には、例えば、いずれかの被写体が横を向いたときのように、一時的に検出できない状態となる可能性がある。そのため、即座に構図を変更したのでは、検出できなくなった被写体がフレームアウトしてしまう可能性がある。そこで、被写体の数が減少した場合には、その状態が所定時間以上に亘って継続したか否かが判定される。当該状態が所定時間以上継続した場合、メモリ118に記憶される被写体の数が更新され、構図が変更される。さらに、被写体が一人になった場合には、構図を上半身1400に戻す処理が実行される。 Next, the composition when a plurality of subjects are detected on the screen will be described. When a plurality of subjects are detected on the screen in the composition of the upper body 1400 or the whole body 1401 of 1405 during still image framing, a process of changing the composition to a plurality of 1403 is performed. At this time, the number of detected subjects is stored in the memory 118. The composition of the plurality of people 1403 is a composition selected when it is determined during the still image framing 1405 that the scene is a group photograph in which all the plurality of subjects are contained in a predetermined angle of view. In the state of the composition of the plurality of people 1403, the determination process of whether or not the number of detected subjects has changed is performed. When the number of detected subjects increases, a new subject enters the screen, so that the number of subjects stored in the memory 118 is immediately updated and the composition is changed. On the other hand, when the number of detected subjects decreases, there is a possibility that the detection cannot be performed temporarily, for example, when one of the subjects faces sideways. Therefore, if the composition is changed immediately, the subject that cannot be detected may be out of frame. Therefore, when the number of subjects decreases, it is determined whether or not the state continues for a predetermined time or longer. If the state continues for a predetermined time or longer, the number of subjects stored in the memory 118 is updated and the composition is changed. Further, when the subject is alone, the process of returning the composition to the upper body 1400 is executed.

動画記録中1406には、全ての被写体を画角に収める構図にすると、撮影対象以外の被写体が動き回っている場合に、その被写体に反応してズームの誤作動が発生することが懸念される。そこで、動画記録中1406に複数人の被写体が検出された場合でも、主被写体のみを撮影対象として、構図を上半身1400または全身1401のままに維持する処理が行われる。動画記録中1406での上半身1400の構図で、画面の中心付近にて顔が所定時間以上に亘って検出された場合には、構図を顔1402に変更する処理が行われる。顔1402の構図は、動画記録中1406に、撮影者が被写体の顔に注目しているシーンであると判定された場合に選択される構図である。このようなシーンでは、上半身よりもさらに顔に寄った構図とすることで、注目する被写体の顔をより大きなサイズで撮影できる。また、この構図変更によるズームイン動作中に、ズーム速度を通常の速度よりも、著しく低速もしくは高速に変更することで、さらに効果的な映像を撮影できる。さらに、顔1402の構図で、画面の周辺付近にて顔が所定時間以上に亘って検出された場合、または、撮影者がフレーミングを変更したと判定された場合には、構図を上半身1400に戻す処理が行われる。本実施形態では、画面の周辺領域を画像の特定領域として例示し、被写体検出部123の検出した被写体の顔画像の位置が周辺領域である状態の継続時間を計時用タイマが計測する。また、フレーミング変更の判定方法としては、被写体検出部123が被写体を検出していない状態であって、かつ揺れ検出部125の検出した揺れ量が所定量よりも大きい場合に、撮影者がフレーミングを変更したと判定される。 If the composition of the 1406 during movie recording is such that all the subjects are within the angle of view, there is a concern that when a subject other than the shooting target is moving around, a malfunction of the zoom may occur in response to the subject. Therefore, even if a plurality of subjects are detected in 1406 during moving image recording, a process is performed in which only the main subject is taken as a shooting target and the composition is maintained as the upper body 1400 or the whole body 1401. When a face is detected near the center of the screen for a predetermined time or longer in the composition of the upper body 1400 at 1406 during the moving image recording, a process of changing the composition to the face 1402 is performed. The composition of the face 1402 is a composition selected when it is determined in 1406 during the moving image recording that the scene is the scene in which the photographer is paying attention to the face of the subject. In such a scene, the face of the subject of interest can be photographed in a larger size by making the composition closer to the face than the upper body. Further, during the zoom-in operation due to this composition change, a more effective image can be taken by changing the zoom speed to a significantly lower speed or a higher speed than the normal speed. Further, in the composition of the face 1402, if the face is detected near the periphery of the screen for a predetermined time or longer, or if it is determined that the photographer has changed the framing, the composition is returned to the upper body 1400. Processing is done. In the present embodiment, the peripheral area of the screen is illustrated as a specific area of the image, and the timekeeping timer measures the duration of the state in which the position of the face image of the subject detected by the subject detection unit 123 is the peripheral area. Further, as a method of determining the framing change, the photographer performs framing when the subject detection unit 123 does not detect the subject and the amount of shaking detected by the shaking detection unit 125 is larger than a predetermined amount. It is determined that the change has been made.

静止画フレーミング中1405に撮影者は、人物の顔の向きや表情が所望の状態となるまで同じ構図でシャッタチャンスを待ち続ける場合がある。この場合、顔に寄った構図とすると撮影者の意図とは違う構図となる可能性がある。したがって、静止画フレーミング中1405の上半身1400の構図で、画面の中心付近にて顔が所定時間以上検出されたとしても、上半身1400の構図を維持する処理が実行される。 During still image framing 1405, the photographer may continue to wait for a shutter chance with the same composition until the orientation and facial expression of the person's face are in the desired state. In this case, if the composition is closer to the face, the composition may be different from the photographer's intention. Therefore, in the composition of the upper body 1400 of 1405 during still image framing, a process of maintaining the composition of the upper body 1400 is executed even if a face is detected near the center of the screen for a predetermined time or longer.

次に、動画記録の開始/終了によって撮影状態を変更する場合の構図について説明する。上半身1400及び全身1401の各構図は、静止画フレーミング中1405や動画記録中1406のいずれの場合でも選択可能な構図である。したがって、それらの構図では撮影状態を変更しても元の構図が維持される。一方、複数人1403や顔1402の構図は、静止画フレーミング中1405や動画記録中1406のいずれかの場合にのみ選択される構図である。そこで、静止画フレーミング中1405に複数人1403の構図で動画記録が開始された場合や、動画記録中1406に顔1402の構図で動画記録が終了された場合に、共通の構図である上半身1400に変更することが考えられる。しかしながら、この場合、動画記録の開始や終了と共にズーム動作が開始することで、動画の始めにズーム動作による画像が記録されたり、静止画のフレーミングで撮影者が煩わしく感じたりすることが懸念される。そこで、そのような状態で撮影状態が変更された場合には、構図を一時的にマニュアル1404に変更する処理が実行される。マニュアル1404の構図は、構図変更後に最初に検出した主被写体像の大きさを基準サイズとする構図である。したがって、撮影状態を変更しただけで直ちにズーム動作が開始することがなく、撮影者に違和感を与えない。また、被写体が動き出した場合であっても、被写体像の大きさを維持することができる。さらに、マニュアル1404の構図で所定時間が経過した場合、構図を上半身1400に戻す処理が実行される。 Next, a composition when the shooting state is changed depending on the start / end of moving image recording will be described. Each composition of the upper body 1400 and the whole body 1401 is a composition that can be selected in any case of 1405 during still image framing and 1406 during moving image recording. Therefore, in those compositions, the original composition is maintained even if the shooting state is changed. On the other hand, the composition of the plurality of people 1403 and the face 1402 is a composition selected only in the case of either 1405 during still image framing or 1406 during moving image recording. Therefore, when video recording is started with the composition of multiple people 1403 during still image framing 1405, or when video recording is completed with the composition of face 1402 at 1406 during video recording, the upper body 1400 has a common composition. It is possible to change it. However, in this case, since the zoom operation starts at the start and end of the moving image recording, there is a concern that the image due to the zooming operation is recorded at the beginning of the moving image or that the photographer feels annoyed by the framing of the still image. .. Therefore, when the shooting state is changed in such a state, a process of temporarily changing the composition to the manual 1404 is executed. The composition of the manual 1404 is a composition in which the size of the main subject image first detected after the composition change is used as a reference size. Therefore, the zoom operation does not start immediately just by changing the shooting state, and the photographer does not feel uncomfortable. Further, even when the subject starts to move, the size of the subject image can be maintained. Further, when a predetermined time elapses in the composition of the manual 1404, a process of returning the composition to the upper body 1400 is executed.

以上のように図12のS1211では、構図設定が「オート」である場合に、撮影状態や被写体の数、被写体の動き等に応じて適切な構図が自動で判定される。判定後の構図を示すデータはメモリ118に記憶され、S1212に進む。 As described above, in S1211 of FIG. 12, when the composition setting is "auto", an appropriate composition is automatically determined according to the shooting state, the number of subjects, the movement of the subjects, and the like. The data indicating the composition after the determination is stored in the memory 118, and the process proceeds to S1212.

S1212では、S1211にて判定された構図が直前の構図に対して変更されたか(図14で選択された構図が遷移したか、または、複数人1403の状態で被写体数が変化したか)否かが判定される。構図が変更されている場合には、S1213に進み、選択された構図がマニュアル1404の構図であるか否かが判定される。選択された構図がマニュアル1404の構図である場合には、S1201に進み、最初に検出された被写体像の大きさを基準サイズとしてメモリ118に記憶する処理が実行される。選択された構図がマニュアル1404の構図でない場合には、S1215に進み、構図設定「オート」における基準サイズが算出される。S1212で、構図が変更されていないと判定された場合には、S1214に進み、被写体像が画面内で移動したか否かについて判定される。画面内での被写体像の移動量の算出方法としては、S1215で基準サイズが設定された後、その基準サイズとなる画角までズーム動作を行った直後の顔追尾枠の中心位置がメモリ118に記憶される。メモリ118に記憶した位置から、検出された顔追尾枠の中心位置までの距離が移動量として算出される。また、所定の周期ごとに顔追尾枠の中心位置を加算して画面内での移動量を算出してもよい。算出された移動量が所定量以上となった場合に被写体が移動したと判定される。所定量としては、検出された顔追尾枠のサイズで正規化する(顔追尾枠のサイズの所定倍とする)ことで、画面内での被写体像の大きさに依らず実際の被写体の移動量を同程度とすることができる。S1214で、被写体が画面内で移動していると判定された場合にはS1215に進み、構図設定「オート」における基準サイズが算出される。また、S1214で被写体像が画面内で移動していないと判定された場合には、基準サイズを更新することなく、基準サイズの設定処理を終了する。 In S1212, whether or not the composition determined in S1211 has been changed with respect to the immediately preceding composition (whether the composition selected in FIG. 14 has changed, or whether the number of subjects has changed in the state of a plurality of people 1403). Is determined. If the composition has been changed, the process proceeds to S1213, and it is determined whether or not the selected composition is the composition of the manual 1404. If the selected composition is the composition of the manual 1404, the process proceeds to S1201 and a process of storing the size of the first detected subject image in the memory 118 as a reference size is executed. If the selected composition is not the composition of the manual 1404, the process proceeds to S1215, and the reference size in the composition setting “auto” is calculated. If it is determined in S1212 that the composition has not been changed, the process proceeds to S1214, and it is determined whether or not the subject image has moved in the screen. As a method of calculating the amount of movement of the subject image on the screen, after the reference size is set in S1215, the center position of the face tracking frame immediately after the zoom operation is performed to the angle of view that becomes the reference size is stored in the memory 118. It will be remembered. The distance from the position stored in the memory 118 to the center position of the detected face tracking frame is calculated as the movement amount. Further, the movement amount in the screen may be calculated by adding the center positions of the face tracking frames at predetermined cycles. When the calculated movement amount exceeds a predetermined amount, it is determined that the subject has moved. As a predetermined amount, by normalizing with the size of the detected face tracking frame (predetermined times the size of the face tracking frame), the actual movement amount of the subject does not depend on the size of the subject image on the screen. Can be about the same. If it is determined in S1214 that the subject is moving in the screen, the process proceeds to S1215, and the reference size in the composition setting "auto" is calculated. If it is determined in S1214 that the subject image has not moved in the screen, the reference size setting process is terminated without updating the reference size.

以下、図15から図19を参照して、構図設定「オート」における基準サイズの算出処理について説明する。構図設定が「顔」、「上半身」、「全身」のいずれかである場合には、図12のS1210において画面サイズに対して顔が一定の比率となるように、基準サイズが算出される。つまり画面上の被写体像の位置によらずに同じ基準サイズが算出される。そのため、被写体が画面の周辺にいる場合に被写体像が大きくなる(ズームインする)ように構図を変更すると、被写体がフレームアウトしてしまう可能性がある。この方法で基準サイズを算出する場合には、撮影者が被写体を画面の中央付近にフレーミングしている必要がある。したがって、被写体を画面中央からずらして背景と一緒に撮影する場合等には適していない。また、被写体が複数である場合には別の方法で基準サイズを算出する必要がある。そこで、構図設定が「オート」の場合には、S1211で判定された構図に基づいて被写体像の大きさを決定するとともに、検出された被写体の位置によらず被写体が画面内に収まるように基準サイズを算出する処理が行われる。 Hereinafter, the calculation process of the reference size in the composition setting “auto” will be described with reference to FIGS. 15 to 19. When the composition setting is any of "face", "upper body", and "whole body", the reference size is calculated so that the face has a constant ratio to the screen size in S1210 of FIG. That is, the same reference size is calculated regardless of the position of the subject image on the screen. Therefore, if the composition is changed so that the subject image becomes larger (zoomed in) when the subject is in the periphery of the screen, the subject may be out of frame. When calculating the reference size by this method, the photographer needs to frame the subject near the center of the screen. Therefore, it is not suitable for shooting with the background by shifting the subject from the center of the screen. Further, when there are a plurality of subjects, it is necessary to calculate the reference size by another method. Therefore, when the composition setting is "Auto", the size of the subject image is determined based on the composition determined in S1211, and the subject is set as a reference so that the subject fits in the screen regardless of the detected position of the subject. The process of calculating the size is performed.

図15は、複数の被写体のうちで最も画面周辺にいる被写体の位置と、画面サイズとの関係を示す図である。図15(A)及び(B)は静止画撮影の画面例を示し、図15(C)は動画撮影の画面例を示しており、複数人の被写体を例示する。また、図16は構図設定「オート」における基準サイズの算出処理の全体を示すフローチャートである。
まず図16のS1600にて、水平方向の被写体位置比率Rhを算出する処理が実行される。水平方向の被写体位置比率Rhとは、水平方向の画面サイズに対する所定の割合に対して、画面中央から最も周辺にいる被写体の肩部付近の水平位置(以下、肩位置といい、Xsmaxと記す)までの距離×2が占める割合である。所定の割合とは、例えば、水平方向の画面サイズの80%または90%であり、後述するS1703での水平方向の並び人数に応じて変更される。図15(A)では被写体1500a,1501a,1502aのうち、水平方向にて画面中央から最も周辺にいる被写体は被写体1500aである。図17のフローチャートを参照して、水平方向の被写体位置比率Rhの算出処理について説明する。
FIG. 15 is a diagram showing the relationship between the position of the subject closest to the screen among the plurality of subjects and the screen size. 15 (A) and 15 (B) show a screen example of still image shooting, and FIG. 15 (C) shows a screen example of moving image shooting, exemplifying a plurality of subjects. Further, FIG. 16 is a flowchart showing the entire calculation process of the reference size in the composition setting “auto”.
First, in S1600 of FIG. 16, a process of calculating the subject position ratio Rh in the horizontal direction is executed. The horizontal subject position ratio Rh is the horizontal position near the shoulder of the subject closest to the center of the screen with respect to a predetermined ratio to the screen size in the horizontal direction (hereinafter referred to as shoulder position, referred to as Xsmax). It is the ratio occupied by the distance to x2. The predetermined ratio is, for example, 80% or 90% of the screen size in the horizontal direction, and is changed according to the number of people arranged in the horizontal direction in S1703, which will be described later. In FIG. 15A, among the subjects 1500a, 1501a, and 1502a, the subject 1500a that is closest to the center of the screen in the horizontal direction is the subject 1500a. The calculation process of the subject position ratio Rh in the horizontal direction will be described with reference to the flowchart of FIG.

S1700では、被写体の顔追尾枠の中心位置やサイズに基づき、被写体の肩位置(Xsと記す)が算定される。画面中央を原点(0,0)とし、顔追尾枠の中心位置を(Xc,Yc)とし、顔追尾枠のサイズをSとする。顔追尾枠の中心位置から肩位置までの距離に占める顔追尾枠の個数をNsとして、「Xs=|Xc|+S×Ns」により、画面周辺側の肩位置Xsを算出できる。図19にNsの設定例を示す。Nsの値は、図12のS1211で判定された構図にしたがって変更される。例えば、顔1402の構図の場合、Ns=1(この場合は肩位置ではなく耳付近の水平位置)が設定される。それ以外(「上半身」、「全身」、「複数人」)の場合、Ns=2が設定される。 In S1700, the shoulder position (denoted as Xs) of the subject is calculated based on the center position and size of the face tracking frame of the subject. The center of the screen is the origin (0,0), the center position of the face tracking frame is (Xc, Yc), and the size of the face tracking frame is S. The shoulder position Xs on the peripheral side of the screen can be calculated by "Xs = | Xc | + SxNs", where Ns is the number of face tracking frames occupying the distance from the center position to the shoulder position of the face tracking frame. FIG. 19 shows an example of setting Ns. The value of Ns is changed according to the composition determined in S1211 of FIG. For example, in the case of the composition of the face 1402, Ns = 1 (in this case, the horizontal position near the ear, not the shoulder position) is set. In other cases (“upper body”, “whole body”, “plurality”), Ns = 2 is set.

被写体の肩位置Xsの算出後、S1701に進む。S1701では、メモリ118に肩位置の最大値Xsmaxが記憶されていない場合に、S1700で算出した肩位置Xsが最大肩位置Xsmaxとして記憶される。またメモリ118に最大肩位置Xsmaxが記憶されている場合には、S1700で算出した肩位置Xsと最大肩位置Xsmaxとが比較される。肩位置Xsが最大肩位置Xsmaxよりも大きい場合には、メモリ118の最大肩位置Xsmaxを肩位置Xsで更新する処理が実行される。最大肩位置Xsmaxの更新処理の後、S1702に進む。S1702では、全ての被写体に対して肩位置Xsを算出して最大肩位置Xsmaxを更新する処理が終了したか否かについて判定される。肩位置Xsの算出及び最大肩位置Xsmaxの更新が終了していない場合、S1700に戻る。全ての被写体に対して最大肩位置Xsmaxの判定が終了し、最大肩位置Xsmaxの更新が終了した場合には、S1703に進む。 After calculating the shoulder position Xs of the subject, the process proceeds to S1701. In S1701, when the maximum value Xsmax of the shoulder position is not stored in the memory 118, the shoulder position Xs calculated in S1700 is stored as the maximum shoulder position Xsmax. When the maximum shoulder position Xsmax is stored in the memory 118, the shoulder position Xs calculated in S1700 and the maximum shoulder position Xsmax are compared. When the shoulder position Xs is larger than the maximum shoulder position Xsmax, a process of updating the maximum shoulder position Xsmax of the memory 118 at the shoulder position Xs is executed. After the update process of the maximum shoulder position Xsmax, the process proceeds to S1702. In S1702, it is determined whether or not the process of calculating the shoulder position Xs for all the subjects and updating the maximum shoulder position Xsmax is completed. If the calculation of the shoulder position Xs and the update of the maximum shoulder position Xsmax have not been completed, the process returns to S1700. When the determination of the maximum shoulder position Xsmax is completed for all the subjects and the update of the maximum shoulder position Xsmax is completed, the process proceeds to S1703.

S1703では、水平方向に被写体が並んでいる人数(水平方向の並び人数)の判定処理が行われる。これは、集合写真のように被写体が多い場合には、画面一杯に被写体が入る構図とし、被写体が少ない場合には、画面周辺に余白を残した構図とすることを目的とする。また、水平方向の並び人数のカウント方法としては、垂直方向(画面上下方向)に顔追尾枠が重なっている場合には、重なっている被写体を合わせて一人として計数される。例えば、画面内に四人の被写体が検出され、そのうちの二人の顔追尾枠が画面上下に重なっている場合には三人として計数される。S1703にて水平方向の並び人数が閾値(例えば二人)と比較される。水平方向の並び人数が二人以下と判定された場合にはS1704に進み、三人以上と判定された場合にはS1705に進む。S1704及びS1705では、水平方向の被写体位置比率Rhがそれぞれ算出される。S1704での水平方向被写体位置比率Rhは、水平画面サイズの80%に対する最大肩位置Xsmax×2の比率として算出される。またS1705での水平方向被写体位置比率Rhは、水平画面サイズの90%に対する最大肩位置Xsmax×2の比率として算出される。S1704またはS1705の後、被写体位置比率Rhの算出処理を終了する。 In S1703, the determination process of the number of people whose subjects are lined up in the horizontal direction (the number of people lined up in the horizontal direction) is performed. The purpose of this is to create a composition in which the subject fills the entire screen when there are many subjects as in a group photograph, and a composition in which a margin is left around the screen when there are few subjects. Further, as a method of counting the number of people lined up in the horizontal direction, when the face tracking frames overlap in the vertical direction (vertical direction of the screen), the overlapping subjects are counted as one person. For example, if four subjects are detected on the screen and the face tracking frames of two of them overlap at the top and bottom of the screen, they are counted as three. In S1703, the number of people lined up in the horizontal direction is compared with the threshold value (for example, two people). If it is determined that the number of people lined up in the horizontal direction is two or less, the process proceeds to S1704, and if it is determined that the number of people lined up in the horizontal direction is three or more, the process proceeds to S1705. In S1704 and S1705, the horizontal subject position ratio Rh is calculated, respectively. The horizontal subject position ratio Rh in S1704 is calculated as the ratio of the maximum shoulder position Xsmax × 2 to 80% of the horizontal screen size. Further, the horizontal subject position ratio Rh in S1705 is calculated as the ratio of the maximum shoulder position Xsmax × 2 to 90% of the horizontal screen size. After S1704 or S1705, the calculation process of the subject position ratio Rh is completed.

次に図16のS1601にて、垂直方向の被写体位置比率Rvを算出する処理が実行される。垂直方向の被写体位置比率Rvとは、垂直方向の画面サイズの所定の割合に対して、画面中央から最も周辺の被写体の頭部の垂直位置(以下、頭位置という)、または身体部の垂直位置(以下、身体位置という)までの距離×2が占める割合である。所定の割合は、例えば、垂直方向の画面サイズの90%である。以下では、画面中央から最も周辺の被写体の頭位置をYhmaxと記し、画面中央から最も周辺の被写体の身体位置をYbminと記すことにする。図15(B)では被写体1500b,1501b,1502bのうち、垂直方向にて画面中央から最も周辺に頭部がある被写体は被写体1500bであり、また画面中央から最も周辺の身体位置の被写体は被写体1501bである。図18のフローチャートを参照して、垂直方向の被写体位置比率Rvの算出処理について説明する。 Next, in S1601 of FIG. 16, a process of calculating the subject position ratio Rv in the vertical direction is executed. The vertical subject position ratio Rv is the vertical position of the head of the subject closest to the center of the screen (hereinafter referred to as the head position) or the vertical position of the body part with respect to a predetermined ratio of the screen size in the vertical direction. It is the ratio occupied by the distance to (hereinafter referred to as the body position) × 2. The predetermined ratio is, for example, 90% of the vertical screen size. In the following, the head position of the subject closest to the center of the screen will be referred to as Yhmax, and the body position of the subject closest to the center of the screen will be referred to as Ybmin. In FIG. 15B, among the subjects 1500b, 1501b, and 1502b, the subject having the head closest to the center of the screen in the vertical direction is the subject 1500b, and the subject having the body position closest to the center of the screen is the subject 1501b. Is. The calculation process of the subject position ratio Rv in the vertical direction will be described with reference to the flowchart of FIG.

図18のS1800では、被写体の顔追尾枠の中心位置やサイズに基づいて、被写体の頭位置(Yhと記す)が算出される。「Yh=Yc+S×Nh」により頭位置Yhを算出できる。Nhは、顔追尾枠の中心位置から頭位置までの距離に占める顔追尾枠の個数である。図19にNhの設定例を示す。Nhの値については、図12のS1211で判定された構図によらず、Nh=1.5で設定される。被写体の頭位置Yhの算出後にS1801に進む。 In S1800 of FIG. 18, the head position (denoted as Yh) of the subject is calculated based on the center position and size of the face tracking frame of the subject. The head position Yh can be calculated by "Yh = Yc + S × Nh". Nh is the number of face tracking frames occupying the distance from the center position to the head position of the face tracking frame. FIG. 19 shows an example of setting Nh. The value of Nh is set to Nh = 1.5 regardless of the composition determined in S1211 of FIG. After calculating the head position Yh of the subject, the process proceeds to S1801.

S1801では、メモリ118に頭位置の最大値Yhmaxが記憶されていない場合に、S1800で算出された頭位置Yhを最大頭位置Yhmaxとして記憶する処理が実行される。またメモリ118に最大頭位置Yhmaxが記憶されている場合には、S1800で算出された頭位置Yhと最大頭位置Yhmaxとが比較される。頭位置Yhが最大頭位置Yhmaxよりも大きい場合には、メモリ118の最大頭位置Yhmaxを頭位置Yhで更新する処理が行われる。更新処理後にS1802へ進む。 In S1801, when the maximum value Yhmax of the head position is not stored in the memory 118, a process of storing the head position Yh calculated in S1800 as the maximum head position Yhmax is executed. When the maximum head position Yhmax is stored in the memory 118, the head position Yh calculated in S1800 and the maximum head position Yhmax are compared. When the head position Yh is larger than the maximum head position Yhmax, a process of updating the maximum head position Yhmax of the memory 118 at the head position Yh is performed. After the update process, the process proceeds to S1802.

次のS1802では、被写体の顔追尾枠の中心位置やサイズに基づいて、被写体の身体位置(Ybと記す)が算出される。「Yb=Yc−S×Nb」により身体位置Ybを算出できる。Nbは、顔追尾枠の中心位置から身体位置までの距離に占める顔追尾枠の個数である。図19にNbの設定例を示す。Nbの値については、図12のS1211で判定された構図に応じて変更される。例えば、顔1402の構図の場合にはNb=1.5が設定される。上半身1400の構図の場合にはNb=5、全身1401の構図の場合にはNb=10、複数人1403の構図の場合にはNb=3.5がそれぞれ設定される。この設定は、各構図にて画面中央で、顔1402では胸、上半身1400では腰下、全身1401では足、複数人1403では腰上付近の位置となる設定である。被写体の身体位置Ybの算出後、S1803に進む。 In the next S1802, the body position (denoted as Yb) of the subject is calculated based on the center position and size of the face tracking frame of the subject. The body position Yb can be calculated by "Yb = Yc-S x Nb". Nb is the number of face tracking frames occupying the distance from the center position of the face tracking frame to the body position. FIG. 19 shows an example of setting Nb. The value of Nb is changed according to the composition determined in S1211 of FIG. For example, in the case of the composition of the face 1402, Nb = 1.5 is set. Nb = 5 is set in the case of the composition of the upper body 1400, Nb = 10 is set in the case of the composition of the whole body 1401, and Nb = 3.5 is set in the case of the composition of a plurality of people 1403. In each composition, the position is in the center of the screen, the chest for the face 1402, the lower back for the upper body 1400, the legs for the whole body 1401, and the upper waist for the plurality of people 1403. After calculating the body position Yb of the subject, the process proceeds to S1803.

S1803では、メモリ118に身体位置の最小値Ybminが記憶されていない場合に、S1802で算出された身体位置Ybを最小身体位置Ybminとして記憶する処理が実行される。またメモリ118に最小身体位置Ybminが記憶されている場合には、S1802で算出された身体位置Ybと最小身体位置Ybminとが比較される。身体位置Ybが最小身体位置Ybminよりも小さい場合には、メモリ118の最小身体位置Ybminを身体位置Ybで更新する処理が行われる。更新処理後にS1804へ進む。 In S1803, when the minimum value Ybmin of the body position is not stored in the memory 118, the process of storing the body position Yb calculated in S1802 as the minimum body position Ybmin is executed. When the minimum body position Ybmin is stored in the memory 118, the body position Yb calculated in S1802 and the minimum body position Ybmin are compared. When the body position Yb is smaller than the minimum body position Ybmin, a process of updating the minimum body position Ybmin of the memory 118 with the body position Yb is performed. After the update process, the process proceeds to S1804.

S1804では、全ての被写体に対して頭位置Yh及び身体位置Ybが算出されて、最大頭位置Yhmax及び最小身体位置Ybminを更新する処理が終了したか否かについて判定される。最大頭位置Yhmax及び最小身体位置Ybminの更新が終了していない場合には、S1800に戻る。全ての被写体に対して最大頭位置Yhmax及び最小身体位置Ybminの判定が終了し、最大頭位置Yhmax及び最小身体位置Ybminの更新が終了した場合には、S1805に進む。S1805では最大頭位置Yhmaxの絶対値と、最小身体位置Ybminの絶対値とが比較され、どちらがより画面周辺に位置するかを判定する処理が行われる。最大頭位置Yhmaxの方がより画面周辺に位置すると判定された場合には、S1806に進む。また、最小身体位置Ybminの方がより画面周辺に位置すると判定された場合には、S1807に進む。S1806及びS1807では、垂直方向の被写体位置比率Rvがそれぞれ算出される。S1806での垂直方向被写体位置比率Rvは、垂直画面サイズの90%に対する最大頭位置Yhmaxの絶対値×2の比率として算出される。またS1807での垂直方向被写体位置比率Rvは、垂直画面サイズの90%に対する最小身体位置Ybminの絶対値×2の比率として算出される。S1806またはS1807の後、垂直方向被写体位置比率Rvの算出処理を終了する。 In S1804, the head position Yh and the body position Yb are calculated for all the subjects, and it is determined whether or not the process of updating the maximum head position Yhmax and the minimum body position Ybmin is completed. If the update of the maximum head position Yhmax and the minimum body position Ybmin has not been completed, the process returns to S1800. When the determination of the maximum head position Yhmax and the minimum body position Ybmin is completed for all the subjects and the update of the maximum head position Yhmax and the minimum body position Ybmin is completed, the process proceeds to S1805. In S1805, the absolute value of the maximum head position Yhmax and the absolute value of the minimum body position Ybmin are compared, and a process of determining which is located closer to the screen is performed. If it is determined that the maximum head position Yhmax is located closer to the screen, the process proceeds to S1806. If it is determined that the minimum body position Ybmin is located closer to the screen, the process proceeds to S1807. In S1806 and S1807, the subject position ratio Rv in the vertical direction is calculated, respectively. The vertical subject position ratio Rv in S1806 is calculated as the ratio of the absolute value of the maximum head position Yhmax × 2 to 90% of the vertical screen size. The vertical subject position ratio Rv in S1807 is calculated as the ratio of the absolute value of the minimum body position Ybmin × 2 to 90% of the vertical screen size. After S1806 or S1807, the calculation process of the vertical subject position ratio Rv is completed.

続いて図16のS1602にて、水平方向の被写体位置比率Rhと、垂直方向の被写体位置比率Rvとが比較される。これによって、各方向の画面サイズの所定比率に対して、画面中央から被写体の各位置までの距離の比率のうちで、最も比率が大きい位置、すなわち、最も画面周辺となる位置を判定することができる。各位置とは、最大肩位置Xsmax、最大頭位置Yhmax、最小身体位置Ybminである。水平方向被写体位置比率Rhが垂直方向の被写体位置比率Rvより大きいと判定された場合には、S1603に進み、水平方向被写体位置比率Rhが垂直方向の被写体位置比率Rv以下であると判定された場合には、S1604に進む。S1603及びS1604では、主被写体の検出サイズと、S1602で判定した最も画面周辺となる被写体位置の比率に基づいて、基準サイズを算出する処理が実行される。基準サイズは、S1603にて「検出サイズ/水平方向被写体位置比率Rh」により算出され、S1604にて「検出サイズ/垂直方向被写体位置比率Rv」により算出される。すなわち、S1603では、主被写体像がそのサイズに「1/水平方向被写体位置比率Rh」を乗算した基準サイズとなるようにズーム動作が実行される。S1604では、主被写体像がそのサイズに「1/垂直方向被写体位置比率Rv」を乗算した基準サイズとなるようにズーム動作が実行される。こうすることで、画面内の被写体をフレームアウトさせることなく、S1211で判定された構図に基づく画角に設定できる。 Subsequently, in S1602 of FIG. 16, the horizontal subject position ratio Rh and the vertical subject position ratio Rv are compared. As a result, it is possible to determine the position having the largest ratio of the distances from the center of the screen to each position of the subject with respect to the predetermined ratio of the screen size in each direction, that is, the position closest to the screen. it can. Each position is the maximum shoulder position Xsmax, the maximum head position Yhmax, and the minimum body position Ybmin. When it is determined that the horizontal subject position ratio Rh is larger than the vertical subject position ratio Rv, the process proceeds to S1603, and when it is determined that the horizontal subject position ratio Rh is equal to or less than the vertical subject position ratio Rv. To S1604. In S1603 and S1604, a process of calculating a reference size is executed based on the ratio of the detection size of the main subject and the position of the subject closest to the screen determined in S1602. The reference size is calculated by "detection size / horizontal subject position ratio Rh" in S1603, and is calculated by "detection size / vertical subject position ratio Rv" in S1604. That is, in S1603, the zoom operation is executed so that the main subject image has a reference size obtained by multiplying the size by "1 / horizontal subject position ratio Rh". In S1604, the zoom operation is executed so that the main subject image has a reference size obtained by multiplying the size by "1 / vertical subject position ratio Rv". By doing so, the angle of view based on the composition determined in S1211 can be set without frame-out of the subject in the screen.

図12のS1215では、構図設定が「オート」の場合、S1211で判定された構図に基づいて水平方向及び垂直方向で最も画面周辺となる被写体位置が判定され、その位置が画面に収まるように基準サイズが算出される。これによって、被写体像が画面内のどの位置であったとしても、フレームアウトすることなく被写体を適切な画角に収めることができる。また、被写体の数が単数である場合でも複数である場合でも、同じ処理によって基準サイズが算出可能となる。なお、本実施形態では、被写体として立位姿勢の人物を前提に、基準サイズを算出する画面サイズの方向を決定した。これに限らず、被写体検出部123が顔の方向を判定できる場合には、画面上での顔の上下方向に基づいて画面サイズの方向を決定してもよい。さらに、被写体が人物である場合の構図判定や基準サイズの算出例を説明したが、被写体が物体である場合にも適用できる。ただし、この場合には、選択される構図は「顔」、「上半身」、「全身」、「複数人」の代わりに、「大」、「中」、「小」、「複数」とする。それらに応じて被写体位置を算定する場合のモノ追尾枠の個数(人物の場合のNs,Nh,Nbに相当)を設定してもよい。 In S1215 of FIG. 12, when the composition setting is "auto", the subject position that is the closest to the screen in the horizontal and vertical directions is determined based on the composition determined in S1211, and the position is referenced so as to fit on the screen. The size is calculated. As a result, the subject can be contained in an appropriate angle of view without frame-out regardless of the position of the subject image on the screen. Further, regardless of whether the number of subjects is singular or plural, the reference size can be calculated by the same processing. In the present embodiment, the direction of the screen size for calculating the reference size is determined on the premise of a person in a standing posture as a subject. Not limited to this, if the subject detection unit 123 can determine the direction of the face, the direction of the screen size may be determined based on the vertical direction of the face on the screen. Further, although the composition determination and the calculation of the reference size when the subject is a person have been described, the present invention can also be applied when the subject is an object. However, in this case, the selected composition is "large", "medium", "small", and "plural" instead of "face", "upper body", "whole body", and "plural". The number of mono-tracking frames (corresponding to Ns, Nh, Nb in the case of a person) when calculating the subject position may be set accordingly.

図12に示す基準サイズ設定処理が終了すると、図7のS704に処理を進める。S704でAZ制御部122は、被写体検出部123により検出された被写体情報やメモリ118に記憶された基準サイズに基づいてオートズーム制御を行う。オートズーム制御については、図20を用いて後述する。オートズーム制御の終了後、S705に進み、AZ制御部122は、撮影者による被写体探索指示を判定する。つまり、撮影者が操作部117の被写体探索ボタンを押下したか否かについて判定される。被写体探索ボタンが押下された場合には、S701に戻り、被写体探索処理が実行される。また、被写体探索ボタンが押下されていない場合には、S706に進む。S706では、操作部117のタッチパネルや被写体指定用スイッチ等の操作によって、オートズームの対象とする被写体が変更されたか否かについて判定される。被写体が変更された場合には、S702に戻って被写体指定処理が実行される。また、被写体が変更されていない場合には、S707に進む。 When the reference size setting process shown in FIG. 12 is completed, the process proceeds to S704 of FIG. 7. In S704, the AZ control unit 122 performs auto zoom control based on the subject information detected by the subject detection unit 123 and the reference size stored in the memory 118. The auto zoom control will be described later with reference to FIG. After the auto zoom control is completed, the process proceeds to S705, and the AZ control unit 122 determines the subject search instruction by the photographer. That is, it is determined whether or not the photographer has pressed the subject search button of the operation unit 117. When the subject search button is pressed, the process returns to S701 and the subject search process is executed. If the subject search button is not pressed, the process proceeds to S706. In S706, it is determined whether or not the subject to be auto-zoomed has been changed by operating the touch panel of the operation unit 117, the subject designation switch, or the like. When the subject is changed, the process returns to S702 and the subject designation process is executed. If the subject has not been changed, the process proceeds to S707.

S707では、撮影画面から操作部117の左右ボタンの操作によって構図設定が変更されたか否かについて判定される。構図設定が変更された場合には、メモリ118に記憶されている構図設定のデータが更新された後、S703に戻って基準サイズ設定処理が実行される。また、構図設定が変更されていない場合には、S708に進む。S708では、操作部117のオートズーム操作スイッチが押下されたか否かについて判定される。オートズーム操作スイッチが押下されたと判定された場合、オートズーム機能を終了する。また、オートズーム操作スイッチが押下されていないと判定された場合、S709に進む。S709は、メモリ118に記憶されている構図設定が「オート」であるか否かの判定処理である。構図設定が「オート」である場合には、S703に戻って自動構図判定を含む基準サイズの設定処理が実行される。また、構図設定が「オート」以外である場合には、S704に戻ってオートズーム制御が継続する。 In S707, it is determined whether or not the composition setting has been changed by operating the left and right buttons of the operation unit 117 from the shooting screen. When the composition setting is changed, the composition setting data stored in the memory 118 is updated, and then the process returns to S703 to execute the reference size setting process. If the composition setting has not been changed, the process proceeds to S708. In S708, it is determined whether or not the auto zoom operation switch of the operation unit 117 is pressed. When it is determined that the auto-zoom operation switch is pressed, the auto-zoom function is terminated. If it is determined that the auto zoom operation switch is not pressed, the process proceeds to S709. S709 is a process for determining whether or not the composition setting stored in the memory 118 is “auto”. When the composition setting is "auto", the process returns to S703 and the reference size setting process including the automatic composition determination is executed. If the composition setting is other than "auto", the process returns to S704 and the auto zoom control continues.

次に図20のフローチャートを参照して、S704のオートズーム制御の処理について説明する。まず、S2000にてAZ制御部122は、被写体検出部123により被写体が検出されたか否かを判定する。S2000で被写体が検出されなかった場合にはオートズーム制御を終了する。S2000で被写体が検出された場合にはS2001へ進む。S2001からS2003の各ステップに示す判定は、フレームアウト防止制御のためのオートズームの開始判定処理である。すなわち、この処理は、図3及び図4で説明したように、被写体が画面の外にフレームアウトすることを防止するために行われる。S2001でAZ制御部122は、追尾対象とする被写体に係る被写体追尾枠が、ZO領域に進入したか否かを判定する。このZO領域は、図3(A)、図4(A)〜(C)で説明したZO領域に相当する。S2001にて被写体追尾枠がZO領域に進入した場合、すなわち、被写体がフレームアウトする可能性が高い場合、S2004に進み、ズームアウト動作を開始する。ここでのズームアウト動作は、フレームアウト防止制御用のズームアウト動作に相当する。ズームアウト動作の後、オートズーム制御を終了する。 Next, the process of auto-zoom control in S704 will be described with reference to the flowchart of FIG. First, in S2000, the AZ control unit 122 determines whether or not the subject has been detected by the subject detection unit 123. If the subject is not detected in S2000, the auto zoom control is terminated. If the subject is detected in S2000, the process proceeds to S2001. The determination shown in each step of S2001 to S2003 is an auto-zoom start determination process for frame-out prevention control. That is, as described with reference to FIGS. 3 and 4, this process is performed to prevent the subject from being framed out of the screen. In S2001, the AZ control unit 122 determines whether or not the subject tracking frame related to the subject to be tracked has entered the ZO region. This ZO region corresponds to the ZO region described with reference to FIGS. 3 (A) and 4 (A) to (C). When the subject tracking frame enters the ZO region in S2001, that is, when there is a high possibility that the subject is out of the frame, the process proceeds to S2004 and the zoomout operation is started. The zoom-out operation here corresponds to a zoom-out operation for frame-out prevention control. After the zoom-out operation, the auto-zoom control is terminated.

一方、S2001にて被写体追尾枠がZO領域に進入していない場合、すなわち、画面中央付近でカメラが被写体を捉えている場合、S2002に進む。S2002では、直前のズーム動作がS2001でZO領域に進入したことによるズームアウト動作であるか否か、すなわち、フレームアウト防止制御用のズームアウト動作であるか否かが判定される。S2002でフレームアウト防止制御用のズームアウト動作後であると判定された場合、S2003に進む。また、S2002でフレームアウト防止制御用のズームアウト動作後でないと判定された場合、S2006に進む。 On the other hand, if the subject tracking frame does not enter the ZO region in S2001, that is, if the camera captures the subject near the center of the screen, the process proceeds to S2002. In S2002, it is determined whether or not the immediately preceding zoom operation is a zoom-out operation due to entering the ZO region in S2001, that is, whether or not it is a zoom-out operation for frame-out prevention control. If it is determined in S2002 that the zoomout operation for the frameout prevention control has been performed, the process proceeds to S2003. If it is determined in S2002 that the zoom-out operation for frame-out prevention control has not been performed, the process proceeds to S2006.

S2003にてAZ制御部122は、追尾対象とする被写体に係る被写体追尾枠がZI領域の内部に収まっているか否か(包含されているか否か)を判定する。ここでのZI領域は、図3(B)、図4(A)〜(C)で説明したZI領域に相当する。S2003にて被写体追尾枠がZI領域に収まっていないと判定された場合、オートズーム制御処理を終了する。一方、被写体追尾枠がZI領域に収まっていると判定された場合、S2005に進む。すなわち、画面中央付近であって、かつズーム戻り位置の画角内の被写体サイズとなるようにカメラが被写体を捉えている場合、S2005でズームイン動作を開始する。ここでのズームイン動作は、フレームアウト防止制御用のズームイン動作に相当する。ズームイン動作の後、オートズーム制御を終了する。 In S2003, the AZ control unit 122 determines whether or not the subject tracking frame related to the subject to be tracked is contained within the ZI region (whether or not it is included). The ZI region here corresponds to the ZI region described with reference to FIGS. 3 (B) and 4 (A) to 4 (C). When it is determined in S2003 that the subject tracking frame does not fit in the ZI region, the auto zoom control process ends. On the other hand, if it is determined that the subject tracking frame is within the ZI region, the process proceeds to S2005. That is, when the camera captures the subject so as to be near the center of the screen and within the angle of view of the zoom return position, the zoom-in operation is started in S2005. The zoom-in operation here corresponds to the zoom-in operation for frame-out prevention control. After the zoom-in operation, the auto-zoom control is terminated.

本実施形態では、オートズームにおけるフレームアウト防止制御とサイズ保持制御を両立させるために、まずフレームアウト防止制御により被写体を画面中央付近に捉えたうえで、サイズ保持制御を実行できるようにする。そのため、フレームアウト防止制御用のズームアウト動作後の状態では、以降で説明する被写体サイズを一定に維持する(サイズ保持制御の)オートズーム処理(以下のS2006〜S2010)を行わないようにしている。換言すると、フレームアウト防止制御が行われた場合には、フレームアウト防止制御用のズームイン動作が完了するまでサイズ保持制御の実行が制限される。 In the present embodiment, in order to achieve both the flameout prevention control and the size retention control in the auto zoom, the frameout prevention control first captures the subject near the center of the screen, and then the size retention control can be executed. Therefore, in the state after the zoom-out operation for the frame-out prevention control, the auto-zoom processing (S2006 to S2010 below) for maintaining the subject size constant (size retention control) described later is not performed. .. In other words, when the frame-out prevention control is performed, the execution of the size holding control is restricted until the zoom-in operation for the frame-out prevention control is completed.

次に、S2006〜S2010の各処理を説明する。S2002でフレームアウト防止制御用のズームアウト動作後でないと判断された場合、S2006に進み、AZ制御部122は、被写体の検出サイズと、基準サイズに所定倍率(N1と記し、N1>1とする)を乗算したサイズとを比較する。図12のS1202やS1210、S1215で設定される基準被写体情報の被写体サイズと、S2000にて検出された被写体サイズとが比較される。S2000にて検出された被写体のサイズが、基準被写体のサイズに対してN1倍より大きい場合、すなわち被写体像が画面に占める比率が所定値を超える場合、S2009に進む。S2009でAZ制御部122は、ズームアウト動作を開始する。ここでのズームアウト動作は、サイズ保持制御用のズームアウト動作に相当する。ズームアウト動作の後、オートズーム制御を終了する。 Next, each process of S2006 to S2010 will be described. If it is determined in S2002 that the zoom-out operation for frame-out prevention control has not been performed, the process proceeds to S2006, and the AZ control unit 122 sets the detection size of the subject and the reference size to a predetermined magnification (N1 and N1> 1. ) Multiply the size. The subject size of the reference subject information set in S1202, S1210, and S1215 of FIG. 12 is compared with the subject size detected in S2000. When the size of the subject detected in S2000 is larger than N1 times the size of the reference subject, that is, when the ratio of the subject image to the screen exceeds a predetermined value, the process proceeds to S2009. In S2009, the AZ control unit 122 starts the zoom-out operation. The zoom-out operation here corresponds to the zoom-out operation for size retention control. After the zoom-out operation, the auto-zoom control is terminated.

一方、S2006において、S2000で検出された被写体のサイズが、基準被写体のサイズに対してN1倍以下である場合、S2007に進む。S2007でAZ制御部122は、基準被写体情報の被写体サイズと、S2000にて検出された被写体のサイズとを比較する。検出された被写体のサイズが、基準被写体のサイズに対して所定倍率(N2と記し、N2<1とする)より小さい場合(N2倍未満の場合)、すなわち被写体像が画面に占める比率が所定値未満である場合、S2008に進む。一方、検出された被写体のサイズが、基準被写体のサイズに対してN2倍以上である場合、オートズーム制御を終了する。 On the other hand, in S2006, when the size of the subject detected in S2000 is N1 times or less the size of the reference subject, the process proceeds to S2007. In S2007, the AZ control unit 122 compares the subject size of the reference subject information with the size of the subject detected in S2000. When the size of the detected subject is smaller than the predetermined magnification (denoted as N2 and N2 <1) with respect to the size of the reference subject (when it is less than N2 times), that is, the ratio of the subject image to the screen is a predetermined value. If it is less than, the process proceeds to S2008. On the other hand, when the size of the detected subject is N2 times or more the size of the reference subject, the auto zoom control is terminated.

S2008にてAZ制御部122は、追尾対象とする被写体に係る被写体追尾枠がZI領域の内部に収まっているか否か(包含されているか否か)を判定する。これは、被写体が画面の周辺にいる場合にズームイン動作によってフレームアウトしてしまうことを防ぐためである。ここでのZI領域は、図5(E)で説明したZI領域に相当する。S2008で被写体追尾枠がZI領域に収まっていないと判定された場合、オートズーム制御を終了する。 In S2008, the AZ control unit 122 determines whether or not the subject tracking frame related to the subject to be tracked is contained within the ZI region (whether or not it is included). This is to prevent the subject from being out of the frame due to the zoom-in operation when the subject is around the screen. The ZI region here corresponds to the ZI region described with reference to FIG. 5 (E). If it is determined in S2008 that the subject tracking frame does not fit in the ZI region, the auto zoom control is terminated.

一方、S2008で被写体追尾枠がZI領域に収まっていると判定された場合、S2010に進む。S2010にてAZ制御部122は、ズームイン動作を開始する。ここでのズームイン動作は、サイズ保持制御用のズームイン動作に相当する。このように、本実施形態では、サイズ保持制御用のズームイン動作においても被写体のフレームアウトを防ぐために、被写体像がZI領域の内部に収まってからズームイン動作を開始する。ズームイン動作の後、オートズーム制御を終了する。 On the other hand, if it is determined in S2008 that the subject tracking frame is within the ZI region, the process proceeds to S2010. In S2010, the AZ control unit 122 starts the zoom-in operation. The zoom-in operation here corresponds to the zoom-in operation for size retention control. As described above, in the present embodiment, in order to prevent the subject from being framed out even in the zoom-in operation for size retention control, the zoom-in operation is started after the subject image is contained inside the ZI region. After the zoom-in operation, the auto-zoom control is terminated.

次に、図21を参照してズーム動作について説明する。図21は、図20のS2004、S2005、S2009、S2010でのズームアウト動作またはズームイン動作を説明するフローチャートである。まずS2100において、AZ制御部122は、メモリ118からズーム変化量(ズーム倍率の変化量)を取得する。フレームアウト防止制御用のズームアウト動作の場合、ズームアウト変化量は検出された被写体情報に応じて設定される。具体的には、フレームアウト防止制御用のズームアウト動作(図20のS2004)では、被写体のサイズが小さいほどズームアウト変化量が小さく設定される。それにより、ズームアウト動作によって被写体のサイズが小さくなりすぎるために被写体が検出できなくなるのを防ぐことができる。なお、被写体検出可能な最小サイズを考慮して、被写体のサイズが所定のサイズより小さい場合は、ズームアウト動作を行わないようにしてもよい。また、フレームアウト防止制御用のズームイン動作では、ズームアウト動作の開始前のズーム倍率がメモリ118に記憶され、ズームアウト動作の開始前と同じズーム倍率となるようにズームイン変化量が設定される。 Next, the zoom operation will be described with reference to FIG. FIG. 21 is a flowchart illustrating a zoom-out operation or a zoom-in operation in S2004, S2005, S2009, and S2010 of FIG. First, in S2100, the AZ control unit 122 acquires a zoom change amount (change amount of zoom magnification) from the memory 118. In the case of the zoom-out operation for frame-out prevention control, the zoom-out change amount is set according to the detected subject information. Specifically, in the zoom-out operation for frame-out prevention control (S2004 in FIG. 20), the smaller the size of the subject, the smaller the zoom-out change amount is set. As a result, it is possible to prevent the subject from being undetectable because the size of the subject becomes too small due to the zoom-out operation. In consideration of the minimum size that can detect the subject, if the size of the subject is smaller than the predetermined size, the zoom-out operation may not be performed. Further, in the zoom-in operation for the frame-out prevention control, the zoom magnification before the start of the zoom-out operation is stored in the memory 118, and the zoom-in change amount is set so as to be the same zoom magnification as before the start of the zoom-out operation.

また、サイズ保持制御用のズームアウト動作(図20のS2009)においては、S2006の判定に用いる所定のN1倍に対応するズームアウト変化量(1/N1倍)が設定される。それにより、被写体が検出できない場合でも、被写体のサイズが基準被写体のサイズとなるまでの最低限のズームアウト動作を行うことができる。サイズ保持制御用のズームイン動作(図20のS2010)の場合にも同様に、S2007の判定に用いる所定のN2倍に対応するズームイン変化量(1/N2倍)が設定される。 Further, in the zoom-out operation for size retention control (S2009 in FIG. 20), a zoom-out change amount (1 / N1 times) corresponding to a predetermined N1 times used for the determination of S2006 is set. As a result, even if the subject cannot be detected, the minimum zoom-out operation can be performed until the size of the subject becomes the size of the reference subject. Similarly, in the case of the zoom-in operation for size holding control (S2010 in FIG. 20), the zoom-in change amount (1 / N2 times) corresponding to the predetermined N2 times used for the determination in S2007 is set.

S2101でAZ制御部122は、S2100にて取得したズーム変化量をCZ制御部119または電子ズーム制御部120に設定し、変倍処理を行うように指示する。次のS2102でAZ制御部122は、フレームアウト防止制御用とサイズ保持制御用のうちの、いずれのズーム動作中であるかを判定する。現時点でのズーム動作がフレームアウト防止制御用のズーム動作である場合(図20のS2004、S2005)にはS2105に進む。また、現時点でのズーム動作がサイズ保持制御用のズーム動作である場合(図20のS2009、S2010)にはS2103に進む。 In S2101, the AZ control unit 122 sets the zoom change amount acquired in S2100 in the CZ control unit 119 or the electronic zoom control unit 120, and instructs the CZ control unit 119 or the electronic zoom control unit 120 to perform the scaling process. In the next S2102, the AZ control unit 122 determines which of the frame-out prevention control and the size retention control is in the zoom operation. If the current zoom operation is a zoom operation for flameout prevention control (S2004 and S2005 in FIG. 20), the process proceeds to S2105. If the current zoom operation is a zoom operation for size retention control (S2009, S2010 in FIG. 20), the process proceeds to S2103.

S2103でAZ制御部122は、被写体検出部123によって被写体が検出されているか否かを判定する。被写体が検出されている場合にはS2104に進み、被写体が検出されていない場合にはS2105に進む。S2104では、基準被写体情報の示す被写体のサイズと、S2103で検出された被写体のサイズとが比較される。比較の結果、S2103にて検出された被写体のサイズと、基準被写体のサイズとが所定比率の範囲内(所定の変化量以内)に収まらない場合には、再度S2102に進み、ズーム動作の判定を継続する。ズーム動作によって、S2103にて検出された被写体のサイズと、基準被写体のサイズとが、所定比率の範囲内となった場合には、S2106に進む。S2106でAZ制御部122はズーム動作を停止した後、ズーム動作処理を終了する。 In S2103, the AZ control unit 122 determines whether or not the subject is detected by the subject detection unit 123. If the subject is detected, the process proceeds to S2104, and if the subject is not detected, the process proceeds to S2105. In S2104, the size of the subject indicated by the reference subject information is compared with the size of the subject detected in S2103. As a result of comparison, if the size of the subject detected in S2103 and the size of the reference subject do not fall within the range of the predetermined ratio (within the predetermined amount of change), the process proceeds to S2102 again to determine the zoom operation. continue. When the size of the subject detected in S2103 and the size of the reference subject are within the range of a predetermined ratio by the zoom operation, the process proceeds to S2106. After stopping the zoom operation in S2106, the AZ control unit 122 ends the zoom operation process.

S2102にて、フレームアウト防止制御用のズーム動作中と判定された場合、または、サイズ保持制御用のズーム動作中でS2103にて被写体が検出されない場合にはS2105に進む。S2105にてAZ制御部122は、S2100で取得したズーム変化量に基づき、各ズーム動作に応じた所定量分のズーム変化量に相当する変倍処理を行ったか否かを判定する。所定のズーム変化量の変倍処理が行われていない場合には、再度S2102に戻って処理を継続する。また所定のズーム変化量の変倍処理が行われた場合には、S2106に進み、AZ制御部122は動作中のズームを停止してズーム動作処理を終了する。 If it is determined in S2102 that the zoom operation for frame-out prevention control is in progress, or if the subject is not detected in S2103 during the zoom operation for size retention control, the process proceeds to S2105. In S2105, the AZ control unit 122 determines whether or not the scaling process corresponding to a predetermined amount of zoom change amount corresponding to each zoom operation has been performed based on the zoom change amount acquired in S2100. If the scaling process of the predetermined zoom change amount has not been performed, the process returns to S2102 again to continue the process. Further, when the scaling process of the predetermined zoom change amount is performed, the process proceeds to S2106, and the AZ control unit 122 stops the zoom in operation and ends the zoom operation process.

本実施形態では、被写体の動きや数、被写体の検出時間、カメラから被写体までの距離等によって撮影シーンを判別し、判別されたシーンに応じて適切な構図をカメラが自動で選択する。構図選択処理により選択された構図に基づき、被写体像の基準サイズを設定する処理が行われて、検出した被写体の画像が基準サイズとなるようにズーム動作が実行される。本実施形態によれば、撮影者が構図を選択することなく、カメラの検出情報に基づいて判定した撮影シーンに応じて適切な構図となるようにオートズーム制御を行うことができる。 In the present embodiment, a shooting scene is discriminated based on the movement and number of subjects, the detection time of the subject, the distance from the camera to the subject, and the like, and the camera automatically selects an appropriate composition according to the discriminated scene. Based on the composition selected by the composition selection process, the process of setting the reference size of the subject image is performed, and the zoom operation is executed so that the detected image of the subject becomes the reference size. According to the present embodiment, the auto-zoom control can be performed so that the composition is appropriate according to the shooting scene determined based on the detection information of the camera without the photographer selecting the composition.

(第2の実施形態)
次に、図22を参照して本発明の第2の実施形態について説明する。図22は、図12の構図設定「オート」の自動構図判定処理S1211において、図14とは別の構図の遷移図の例を示している。なお、図14と共通する構図は同一の符号を付し、その詳細な説明は省略する。
(Second embodiment)
Next, a second embodiment of the present invention will be described with reference to FIG. FIG. 22 shows an example of a transition diagram having a composition different from that of FIG. 14 in the automatic composition determination process S1211 of the composition setting “auto” of FIG. The composition common to FIG. 14 is designated by the same reference numerals, and detailed description thereof will be omitted.

第1の実施形態においては、撮影者とは異なる人物を被写体として撮影する場合に、撮影シーンを判別する例について説明した。このときのモードを便宜的に通常モードと呼ぶ。また、カメラを撮影者自身に向けて、撮影者自身を含めた一人乃至複数の人物を被写体として撮影する場合がある。このような撮影に適したモードを自分撮りモードと呼ぶ。自分撮りモードでは、オートズーム制御によって自分撮りに適した画角に調整するとともに、背景ぼかし効果や美肌フィルタ効果などを適用させることで効果的な人物撮影を行うことが可能である。
構図合わせの操作においては、通常モード時には、被写体が静止しているか、動いているかに応じて被写体像を適切な大きさとすることが必要である。一方、自分撮りモード時には、静止している被写体であっても、カメラを手持ちで撮影しているか、置いて撮影しているかによって適切な大きさを変更する必要がある。例えば、手持ちで撮影する場合には顔を画角に大きく収めるように撮影し、カメラを置いて撮影する場合には全身を画角に収めるように撮影する。このように、通常モードでの撮影と自分撮りモードでの撮影ではそれぞれに適切な構図が異なる。
そこで、本実施形態では、図22の通常モード2200と自分撮りモード2201とで、選択する構図を変更する処理が実行される。すなわち、第1のモードとして通常モードを例示し、第2のモードとして自分撮りモードを例示する。通常モード2200での第1の構図群に属する選択候補の構図として、上半身1400、全身1401、複数人1403からいずれかの構図が選択される。自分撮りモード2201での第2の構図群に属する選択候補の構図としては、自分撮り顔2202、自分撮り全身2203からいずれかの構図が選択される。
In the first embodiment, an example of determining a shooting scene when shooting a person different from the photographer as a subject has been described. The mode at this time is called a normal mode for convenience. In addition, the camera may be pointed at the photographer himself / herself, and one or a plurality of persons including the photographer himself / herself may be photographed as a subject. A mode suitable for such shooting is called a self-shooting mode. In the self-shooting mode, it is possible to perform effective portrait shooting by adjusting the angle of view suitable for self-shooting by auto-zoom control and applying a background blur effect, a skin-beautifying filter effect, and the like.
In the composition matching operation, it is necessary to make the subject image an appropriate size depending on whether the subject is stationary or moving in the normal mode. On the other hand, in the self-shooting mode, even if the subject is stationary, it is necessary to change the appropriate size depending on whether the camera is hand-held or placed. For example, when shooting by hand, the face is shot so as to fit in the angle of view, and when shooting with the camera placed, the whole body is shot so as to fit in the angle of view. In this way, the appropriate composition differs between shooting in the normal mode and shooting in the self-shooting mode.
Therefore, in the present embodiment, the process of changing the selected composition is executed in the normal mode 2200 and the self-portrait mode 2201 of FIG. That is, the normal mode is illustrated as the first mode, and the selfie mode is exemplified as the second mode. As the composition of the selection candidate belonging to the first composition group in the normal mode 2200, any composition is selected from the upper body 1400, the whole body 1401, and the plurality of people 1403. As the composition of the selection candidate belonging to the second composition group in the self-portrait mode 2201, any composition is selected from the self-portrait face 2202 and the self-portrait whole body 2203.

ここで、撮影シーンの判定条件と、各構図の遷移について説明する。構図設定「オート」の自動構図判定処理S1211が開始すると、初期状態の構図として上半身1400が設定される。モードが通常モード2200の場合には、図14の静止画フレーミング中1405と同じ遷移であるため、説明を省略する。
モードが通常モード2200から自分撮りモード2201に変更されると、揺れ検出部125は、ジャイロセンサ等に加わる振れ量を元にカメラが手持ち状態であるかどうかを判定する。自分撮りモード2201に変更され、かつ、振れ量が所定量以上でカメラが手持ちであると判定された場合には、構図を自分撮り顔2202に変更する。自分撮り顔2202の構図は、手持ちで自分の顔をアップにして撮影する場合の構図である。また、撮影者を含めた複数人で撮影する場合にも、全ての被写体の顔ができるだけ大きく画角に収まるようにズームを調整する。
Here, the determination conditions of the shooting scene and the transition of each composition will be described. When the automatic composition determination process S1211 of the composition setting “auto” is started, the upper body 1400 is set as the composition in the initial state. When the mode is the normal mode 2200, the transition is the same as that of 1405 during the still image framing in FIG. 14, so the description thereof will be omitted.
When the mode is changed from the normal mode 2200 to the self-shooting mode 2201, the shake detection unit 125 determines whether or not the camera is in the handheld state based on the amount of shake applied to the gyro sensor or the like. When the mode is changed to the self-portrait mode 2201 and the amount of deflection is equal to or greater than a predetermined amount and it is determined that the camera is in hand, the composition is changed to the self-portrait face 2202. The composition of the self-portrait face 2202 is a composition when the self-portrait face is taken up by hand. Also, when shooting with multiple people including the photographer, adjust the zoom so that the faces of all the subjects fit in the angle of view as large as possible.

自分撮りモード2201の場合には、被写体が撮影者のみであっても複数人であっても同じ構図が選択される。すなわち、図19で示す被写体位置推定顔個数を同じ値に設定する。被写体位置推定顔個数とは、前述のように図12の構図設定「オート」の基準サイズ算出処理S1215において、被写体の肩位置Xs、頭位置Yh、身体位置Ybを推定するための顔追尾枠の中心位置からの追尾枠の数(Ns、Nh、Nb)である。特に、肩位置まで追尾枠数Nsと、身体位置までの追尾枠数Nbが選択される構図によって異なることで、当該構図となるような基準サイズが算出される。第1の実施形態では、一人の被写体を「顔」の構図で撮影する場合、顔追尾枠の中心位置(Xc,Yc)からの追尾枠の数を肩位置Ns=1、身体位置Nb=1.5として、被写体の耳や胸付近までを画角に収める範囲とする基準サイズを算出した。また、複数の被写体を「複数人」の構図で撮影する場合、顔追尾枠の中心位置(Xc,Yc)からの追尾枠の数を肩位置Ns=2、身体位置Nb=3.5として、全ての被写体の肩や腰付近までを画角に収める範囲とする基準サイズを算出した。一方、自分撮り顔2202の場合には、被写体の数によらず「顔」と同じ追尾枠数である肩位置Ns=1、身体位置Nb=1.5が設定される。これによって、全ての被写体の耳や胸付近までを画角に収める範囲とする基準サイズが算出され、手持ちでの自分撮り撮影を行うのに適した画角にズームが調整される。 In the case of the self-shooting mode 2201, the same composition is selected regardless of whether the subject is only the photographer or a plurality of people. That is, the estimated number of face positions for the subject shown in FIG. 19 is set to the same value. As described above, the subject position estimated number of faces is the face tracking frame for estimating the shoulder position Xs, the head position Yh, and the body position Yb of the subject in the reference size calculation process S1215 of the composition setting “auto” in FIG. It is the number of tracking frames (Ns, Nh, Nb) from the center position. In particular, the number of tracking frames Ns up to the shoulder position and the number of tracking frames Nb up to the body position differ depending on the selected composition, so that the reference size for the composition is calculated. In the first embodiment, when a single subject is photographed with a “face” composition, the number of tracking frames from the center position (Xc, Yc) of the face tracking frame is the shoulder position Ns = 1 and the body position Nb = 1. As 5.5, the reference size was calculated so that the angle of view covers the subject's ears and chest. When shooting a plurality of subjects in a composition of "multiple people", the number of tracking frames from the center position (Xc, Yc) of the face tracking frame is set to shoulder position Ns = 2 and body position Nb = 3.5. The standard size was calculated so that the angle of view covers the shoulders and hips of all subjects. On the other hand, in the case of the self-portrait face 2202, the shoulder position Ns = 1 and the body position Nb = 1.5, which are the same number of tracking frames as the “face”, are set regardless of the number of subjects. As a result, the reference size is calculated so that the angle of view covers the entire subject's ears and chest, and the zoom is adjusted to an angle of view suitable for handheld selfie shooting.

自分撮り顔2202に変更されると、検出された被写体の数がメモリ118に記憶される。自分撮り顔2202の構図の状態では、検出された被写体の数が変化したか否かの判定処理が行われる。検出された被写体の数が増加した場合には、即座にメモリ118に記憶した被写体の数が更新されて、基準サイズの変更が行われる。被写体の数が減少した場合には、当該状態が所定時間以上継続した場合、メモリ118に記憶される被写体の数が更新され、構図が変更される。これは、複数人1403の場合と同様に被写体が横を向くなどして一時的に検出できない場合に、即座に構図を変更することで被写体がフレームアウトしてしまうことを防止するためである。 When the face is changed to the self-portrait face 2202, the number of detected subjects is stored in the memory 118. In the state of the composition of the self-portrait face 2202, the determination process of whether or not the number of detected subjects has changed is performed. When the number of detected subjects increases, the number of subjects stored in the memory 118 is immediately updated, and the reference size is changed. When the number of subjects decreases, if the state continues for a predetermined time or longer, the number of subjects stored in the memory 118 is updated and the composition is changed. This is to prevent the subject from being out of frame by immediately changing the composition when the subject is temporarily turned sideways and cannot be detected as in the case of a plurality of people 1403.

モードが通常モード2200から自分撮りモード2201に変更されると、揺れ検出部125は、ジャイロセンサ等に加わる振れ量を元に、カメラが机の上などに置かれている(固定されている)状態であるかどうかを判定する。自分撮りモード2201に変更され、かつ、振れ量が所定量未満でカメラが置かれていると判定された場合には、構図を自分撮り全身2203に変更する。自分撮り全身2203の構図は、カメラを置いて自分の全身を撮影する場合の構図である。また、撮影者を含めた複数人を撮影する場合には、全ての被写体の全身が画角に収まるようにズームを調整する。自分撮り全身2203の場合には、被写体の数によらず「全身」と同じ追尾枠数である肩位置Ns=2、身体位置Nb=10が設定される。これによって、全ての被写体の肩や足までが画角に収める範囲とする基準サイズが算出され、カメラを置いた状態での自分撮り撮影を行うのに適した画角にズームが調整される。自分撮り全身2203に変更されると、検出された被写体の数がメモリ118に記憶される。自分撮り全身2203においても自分撮り顔2202と同様に、被写体の数が変化すると、メモリ118に記憶される被写体の数が更新され、基準サイズが変更される。 When the mode is changed from the normal mode 2200 to the self-portrait mode 2201, the camera is placed (fixed) on the desk or the like in the shake detection unit 125 based on the amount of vibration applied to the gyro sensor or the like. Determine if it is in a state. When the mode is changed to the self-portrait mode 2201 and it is determined that the camera is placed with the amount of runout less than a predetermined amount, the composition is changed to the self-portrait whole body 2203. The composition of the self-portrait whole body 2203 is a composition when the camera is placed and the whole body is photographed. When shooting a plurality of people including the photographer, the zoom is adjusted so that the whole body of all the subjects fits in the angle of view. In the case of the self-portrait whole body 2203, the shoulder position Ns = 2 and the body position Nb = 10, which are the same number of tracking frames as the “whole body”, are set regardless of the number of subjects. As a result, the reference size is calculated so that the shoulders and feet of all the subjects are within the angle of view, and the zoom is adjusted to the angle of view suitable for taking a selfie with the camera placed. When the selfie is changed to 2203, the number of detected subjects is stored in the memory 118. Similarly to the self-portrait face 2202, in the self-portrait whole body 2203, when the number of subjects changes, the number of subjects stored in the memory 118 is updated and the reference size is changed.

本実施形態では、設定されたモードに応じて判別する撮影シーンを変更し、モードごとにより適切な構図をカメラが自動で選択する。また、本実施形態では1つのモードで複数の構図の選択候補から適切な構図を選択する場合について例示したが、モードによっては1つの構図だけが選択候補であってもよい。さらに、モードとして通常モードと自分撮りモードの場合について例示したが、このモードに限らない。例えば、通常モードと自分撮りモードの他に、スポーツモードでは競技者の「全身」の構図が選択される実施形態や、ベビーモードでは赤ちゃんの「顔」の構図が選択される実施形態などであってもよい。
本実施形態によれば、撮影者が構図を選択することなく、設定されたモードとカメラの検出情報に基づいて判定した撮影シーンに応じて適切な構図となるようにオートズーム制御を行うことができる。
In the present embodiment, the shooting scene to be determined is changed according to the set mode, and the camera automatically selects a more appropriate composition for each mode. Further, in the present embodiment, the case where an appropriate composition is selected from the selection candidates of a plurality of compositions in one mode is illustrated, but depending on the mode, only one composition may be a selection candidate. Further, although the case of the normal mode and the self-portrait mode has been illustrated as the mode, the mode is not limited to this mode. For example, in addition to the normal mode and the selfie mode, in the sports mode, the composition of the athlete's "whole body" is selected, and in the baby mode, the composition of the baby's "face" is selected. You may.
According to the present embodiment, it is possible to perform auto zoom control so that the composition is appropriate according to the shooting scene determined based on the set mode and the detection information of the camera without the photographer selecting the composition. it can.

(その他の実施形態)
本発明は、上述の実施形態の1以上の機能を実現するプログラムを、ネットワーク又は記憶媒体を介してシステム又は装置に供給し、そのシステム又は装置のコンピュータにおける1つ以上のプロセッサーがプログラムを読出し実行する処理でも実現可能である。また、1以上の機能を実現する回路(例えば、ASIC)によっても実現可能である。
(Other embodiments)
The present invention supplies a program that realizes one or more functions of the above-described embodiment to a system or device via a network or storage medium, and one or more processors in the computer of the system or device reads and executes the program. It can also be realized by the processing to be performed. It can also be realized by a circuit (for example, ASIC) that realizes one or more functions.

100 デジタルカメラ
102 ズームレンズ
109 表示部
113 ズームレンズ駆動部
117 操作部
118 メモリ
119 CZ制御部
120 電子ズーム制御部
122 オートズーム制御部
123 被写体検出部
100 digital camera
102 Zoom lens 109 Display unit 113 Zoom lens drive unit 117 Operation unit 118 Memory 119 CZ control unit 120 Electronic zoom control unit 122 Auto zoom control unit 123 Subject detection unit

本発明に係るズーム制御装置は、撮影光学系を用いて取得された画像から被写体像を検出する被写体検出手段と、ズーム倍率の制御に用いる被写体像の基準サイズを設定する基準サイズ設定手段と、前記基準サイズ設定手段により設定された前記基準サイズと前記被写体検出手段により逐次検出される被写体像のサイズに基づいて、ズーム倍率を制御する制御手段と、撮影モードを設定する撮影モード設定手段と、を有する。前記基準サイズ設定手段は、前記撮影モード設定手段により、撮影者自身を撮影する自分撮りモードが設定されている場合に、前記ズーム制御装置によりズーム倍率を制御される撮像装置が手持ち状態であるか否かに基づいて前記基準サイズを変更する。 The zoom control device according to the present invention includes a subject detection means for detecting a subject image from an image acquired by using a photographing optical system, a reference size setting means for setting a reference size of the subject image used for controlling the zoom magnification, and a reference size setting means. A control means for controlling the zoom magnification based on the reference size set by the reference size setting means and the size of the subject image sequentially detected by the subject detection means, a shooting mode setting means for setting the shooting mode, and a shooting mode setting means for setting the shooting mode. Has. In the reference size setting means, when the self-shooting mode for shooting the photographer himself / herself is set by the shooting mode setting means, is the image pickup device whose zoom magnification is controlled by the zoom control device in a handheld state? The reference size is changed based on whether or not.

Claims (14)

ズーム制御装置であって、
撮影光学系を用いて取得された画像から被写体像を検出する被写体検出手段と、
ズーム倍率の制御に用いる被写体像の基準サイズを設定する設定手段と、
前記設定手段により設定された前記基準サイズと前記被写体検出手段により逐次検出される被写体像のサイズに基づいて、ズーム倍率を制御する制御手段と、を有し、
前記設定手段は、前記ズーム制御装置によりズーム倍率を制御される撮像装置が手持ち状態であるか否か、自分撮りモードが設定されているか否か、被写体の静止時間の少なくともいずれかに基づいて前記基準サイズを変更することを特徴とするズーム制御装置。
It is a zoom control device
A subject detection means that detects a subject image from an image acquired using a photographing optical system, and
Setting means for setting the reference size of the subject image used to control the zoom magnification, and
It has a control means for controlling the zoom magnification based on the reference size set by the setting means and the size of the subject image sequentially detected by the subject detection means.
The setting means is based on at least one of whether or not the image pickup device whose zoom magnification is controlled by the zoom control device is in the handheld state, whether or not the self-portrait mode is set, and the still time of the subject. A zoom control device characterized by changing the reference size.
前記設定手段は前記被写体の静止時間に基づいて前記基準サイズを変更することを特徴とする請求項1に記載のズーム制御装置。 The zoom control device according to claim 1, wherein the setting means changes the reference size based on the rest time of the subject. 前記設定手段は、前記被写体像のサイズの変化と前記被写体像の位置の変化と前記ズーム制御装置の振れの検出結果との少なくともいずれかに基づいて前記静止時間を取得することを特徴とする請求項2に記載のズーム制御装置。 The setting means obtains the stationary time based on at least one of a change in the size of the subject image, a change in the position of the subject image, and a vibration detection result of the zoom control device. Item 2. The zoom control device according to item 2. 前記設定手段は、
前記静止時間の変更に基づいて前記基準サイズを変更し、
前記被写体が動いていると判定された場合は、第1の基準サイズを設定し、
前記静止時間が所定の時間よりも長いと判定された場合は、前記第1の基準サイズよりも大きい第2の基準サイズを設定することを特徴とする請求項2または3に記載のズーム制御装置。
The setting means is
The reference size is changed based on the change in the rest time, and the reference size is changed.
If it is determined that the subject is moving, a first reference size is set.
The zoom control device according to claim 2 or 3, wherein when it is determined that the rest time is longer than a predetermined time, a second reference size larger than the first reference size is set. ..
前記設定手段は、前記静止時間の変更に基づいて前記基準サイズを変更し、
前記制御手段は、前記被写体が動いていると判定された場合のほうが、前記静止時間が所定の時間よりも長いと判定された場合よりもズーム倍率が低くなるように前記ズーム倍率を制御することを特徴とする請求項2乃至4のいずれか1項に記載のズーム制御装置。
The setting means changes the reference size based on the change in the rest time, and changes the reference size.
The control means controls the zoom magnification so that the zoom magnification is lower when it is determined that the subject is moving than when it is determined that the stationary time is longer than a predetermined time. The zoom control device according to any one of claims 2 to 4, wherein the zoom control device is characterized.
前記設定手段は、前記撮像装置が手持ち状態であるか否かの判定結果に基づいて前記基準サイズを変更することを特徴とする請求項1乃至5のいずれか1項に記載のズーム制御装置。 The zoom control device according to any one of claims 1 to 5, wherein the setting means changes the reference size based on a determination result of whether or not the image pickup device is in a handheld state. 前記設定手段は、前記ズーム制御装置の振れ量の検出結果に基づいて前記撮像装置が手持ちであるか否かを判定することを特徴とする請求項6に記載のズーム制御装置。 The zoom control device according to claim 6, wherein the setting means determines whether or not the image pickup device is on hand based on a detection result of a shake amount of the zoom control device. 前記設定手段は、前記自分撮りモードが設定されているか否かに応じて前記基準サイズを変更することを特徴とする請求項1乃至7のいずれか1項に記載のズーム制御装置。 The zoom control device according to any one of claims 1 to 7, wherein the setting means changes the reference size depending on whether or not the self-shooting mode is set. 前記設定手段は、前記手持ち状態であるか否か、前記自分撮りモードが設定されているか否か、前記被写体の静止時間の少なくともいずれかと、前記被写体までの距離とに基づいて前記基準サイズを変更することを特徴とする請求項1乃至8のいずれか1項に記載のズーム制御装置。 The setting means changes the reference size based on whether or not it is in the handheld state, whether or not the self-shooting mode is set, at least one of the still times of the subject, and the distance to the subject. The zoom control device according to any one of claims 1 to 8, wherein the zoom control device is characterized. ズーム制御装置であって、
撮影光学系を用いて取得された画像から被写体像を検出する被写体検出手段と、
前記ズーム制御装置が手持ち状態であるか否か、自分撮りモードが設定されているか否か、被写体までの距離、前記被写体の静止時間の少なくともいずれかに基づいて構図を選択する構図選択手段と、
前記構図選択手段による選択結果に基づいて、ズーム倍率の制御に用いる被写体像の基準サイズを設定する設定手段と、
前記設定手段により設定された前記基準サイズと前記被写体検出手段により逐次検出される被写体像のサイズに基づいて、ズーム倍率を制御する制御手段と、を有し、
前記設定手段は、前記構図選択手段によって選択された構図と、前記被写体検出手段によって検出された被写体像の大きさと位置とに基づいて前記基準サイズを設定することを特徴とするズーム制御装置。
It is a zoom control device
A subject detection means that detects a subject image from an image acquired using a photographing optical system, and
A composition selection means for selecting a composition based on at least one of whether or not the zoom control device is in a handheld state, whether or not a selfie mode is set, the distance to the subject, and the stationary time of the subject.
A setting means for setting a reference size of a subject image used for controlling the zoom magnification based on the selection result by the composition selection means, and a setting means.
It has a control means for controlling the zoom magnification based on the reference size set by the setting means and the size of the subject image sequentially detected by the subject detection means.
The setting means is a zoom control device characterized in that the reference size is set based on the composition selected by the composition selecting means and the size and position of the subject image detected by the subject detecting means.
請求項1から10のいずれか1項に記載のズーム制御装置と、
被写体像を光電変換して画像を生成する撮像手段と、
レンズの駆動または画像処理によりズーム倍率を変更するズーム手段を備え、
前記制御手段は前記ズーム手段を制御し、前記設定手段により設定された前記基準サイズに基づいて、前記被写体検出手段により検出される被写体像のサイズの変化に応じてズーム倍率を制御することを特徴とする撮像装置。
The zoom control device according to any one of claims 1 to 10.
An imaging means that converts a subject image by photoelectric conversion to generate an image,
It has a zoom means that changes the zoom magnification by driving the lens or processing the image.
The control means controls the zoom means, and controls the zoom magnification according to a change in the size of the subject image detected by the subject detection means based on the reference size set by the setting means. Imaging device.
ズーム制御装置にて実行される制御方法であって、
撮影光学系を用いて取得された画像から検出された被写体像の検出情報を含む情報を取得する取得ステップと、
ズーム倍率の制御に用いる被写体像の基準サイズを設定する設定ステップと、
前記設定ステップにより設定された前記基準サイズと前記検出情報が示す被写体像のサイズに基づいて、ズーム倍率を制御する制御ステップと、を有し、
前記設定ステップは、前記ズーム制御装置によりズーム倍率を制御される撮像装置が手持ち状態であるか否か、自分撮りモードが設定されているか否か、被写体の静止時間の少なくともいずれかに基づいて前記基準サイズを変更することを特徴とするズーム制御装置の制御方法。
It is a control method executed by the zoom control device.
The acquisition step of acquiring information including the detection information of the subject image detected from the image acquired by using the photographing optical system, and the acquisition step.
A setting step to set the reference size of the subject image used to control the zoom magnification, and
It has a control step for controlling the zoom magnification based on the reference size set by the setting step and the size of the subject image indicated by the detection information.
The setting step is based on at least one of whether or not the image pickup device whose zoom magnification is controlled by the zoom control device is in the handheld state, whether or not the self-portrait mode is set, and the still time of the subject. A control method for a zoom control device, which comprises changing a reference size.
ズーム制御装置にて実行される制御方法であって、
撮影光学系を用いて取得された画像から検出された被写体像の検出情報を含む情報を取得する取得ステップと、
前記ズーム制御装置が手持ち状態であるか否か、自分撮りモードが設定されているか否か、被写体までの距離、前記被写体の静止時間の少なくともいずれかに基づいて構図を選択する構図選択ステップと、
前記構図選択ステップによって選択された構図と、前記被写体像の大きさと位置とに基づいて、ズーム倍率の制御に用いる被写体像の基準サイズを設定する設定ステップと、
前記設定ステップにより設定された前記基準サイズと前記検出情報が示す被写体像のサイズに基づいて、ズーム倍率を制御する制御ステップと、を有することを特徴とするズーム制御装置の制御方法。
It is a control method executed by the zoom control device.
The acquisition step of acquiring information including the detection information of the subject image detected from the image acquired by using the photographing optical system, and the acquisition step.
A composition selection step of selecting a composition based on at least one of whether or not the zoom control device is in the handheld state, whether or not the selfie mode is set, the distance to the subject, and the still time of the subject.
A setting step of setting a reference size of a subject image used for controlling the zoom magnification based on the composition selected by the composition selection step and the size and position of the subject image.
A control method for a zoom control device, comprising: a control step for controlling a zoom magnification based on the reference size set by the setting step and the size of a subject image indicated by the detection information.
請求項12または13に記載したズーム制御装置の制御方法の各ステップをコンピュータに実行させることを特徴とするズーム制御装置の制御プログラム。 A control program for a zoom control device, which comprises causing a computer to execute each step of the control method for the zoom control device according to claim 12 or 13.
JP2021020239A 2014-12-24 2021-02-10 Zoom control device, image pickup device, control method of zoom control device, control program of zoom control device Active JP7073550B2 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2014260109 2014-12-24
JP2014260109 2014-12-24

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2019206451A Division JP6839254B2 (en) 2014-12-24 2019-11-14 Zoom control device, imaging device, control method of zoom control device, control program of zoom control device

Publications (2)

Publication Number Publication Date
JP2021078154A true JP2021078154A (en) 2021-05-20
JP7073550B2 JP7073550B2 (en) 2022-05-23

Family

ID=56329224

Family Applications (3)

Application Number Title Priority Date Filing Date
JP2015202330A Active JP6618324B2 (en) 2014-12-24 2015-10-13 Zoom control device, imaging device, control method for zoom control device, control program for zoom control device, and storage medium
JP2019206451A Active JP6839254B2 (en) 2014-12-24 2019-11-14 Zoom control device, imaging device, control method of zoom control device, control program of zoom control device
JP2021020239A Active JP7073550B2 (en) 2014-12-24 2021-02-10 Zoom control device, image pickup device, control method of zoom control device, control program of zoom control device

Family Applications Before (2)

Application Number Title Priority Date Filing Date
JP2015202330A Active JP6618324B2 (en) 2014-12-24 2015-10-13 Zoom control device, imaging device, control method for zoom control device, control program for zoom control device, and storage medium
JP2019206451A Active JP6839254B2 (en) 2014-12-24 2019-11-14 Zoom control device, imaging device, control method of zoom control device, control program of zoom control device

Country Status (1)

Country Link
JP (3) JP6618324B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022230977A1 (en) 2021-04-30 2022-11-03 国立研究開発法人理化学研究所 Cord-like aggregates of retinal pigment epithelial cells, device and production method for producing same, and therapeutic agent comprising said cord-like aggregates

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7374739B2 (en) 2019-11-29 2023-11-07 キヤノン株式会社 Display control device and its control method
CN113079312A (en) * 2020-01-06 2021-07-06 北京小米移动软件有限公司 Method and device for adjusting focal length of camera, electronic equipment and storage medium
KR20210096795A (en) * 2020-01-29 2021-08-06 삼성전자주식회사 Method of automatically photographing an image, image processing device and image photographing system performing the same
CN116074623B (en) * 2022-05-30 2023-11-28 荣耀终端有限公司 Resolution selecting method and device for camera

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008252711A (en) * 2007-03-30 2008-10-16 Nikon Corp Digital camera
JP2009290635A (en) * 2008-05-30 2009-12-10 Nikon Corp Camera
JP2011221108A (en) * 2010-04-06 2011-11-04 Canon Inc Imaging apparatus and method of controlling the same
JP2013117650A (en) * 2011-12-05 2013-06-13 Nikon Corp Digital camera
JP2013254007A (en) * 2012-06-05 2013-12-19 Sony Corp Imaging apparatus, control method of imaging apparatus and computer program
JP2014225854A (en) * 2013-04-25 2014-12-04 キヤノン株式会社 Imaging device and method for controlling the same

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012039591A (en) * 2010-07-15 2012-02-23 Olympus Corp Imaging apparatus

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008252711A (en) * 2007-03-30 2008-10-16 Nikon Corp Digital camera
JP2009290635A (en) * 2008-05-30 2009-12-10 Nikon Corp Camera
JP2011221108A (en) * 2010-04-06 2011-11-04 Canon Inc Imaging apparatus and method of controlling the same
JP2013117650A (en) * 2011-12-05 2013-06-13 Nikon Corp Digital camera
JP2013254007A (en) * 2012-06-05 2013-12-19 Sony Corp Imaging apparatus, control method of imaging apparatus and computer program
JP2014225854A (en) * 2013-04-25 2014-12-04 キヤノン株式会社 Imaging device and method for controlling the same

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022230977A1 (en) 2021-04-30 2022-11-03 国立研究開発法人理化学研究所 Cord-like aggregates of retinal pigment epithelial cells, device and production method for producing same, and therapeutic agent comprising said cord-like aggregates

Also Published As

Publication number Publication date
JP2020039165A (en) 2020-03-12
JP6618324B2 (en) 2019-12-11
JP6839254B2 (en) 2021-03-03
JP7073550B2 (en) 2022-05-23
JP2016123071A (en) 2016-07-07

Similar Documents

Publication Publication Date Title
JP6436760B2 (en) Zoom control device, imaging device, control method for zoom control device, and control program for zoom control device
JP6618255B2 (en) Zoom control device, imaging device, control method for zoom control device, control program for zoom control device, and storage medium
CN110536069B (en) Zoom control device, control method of zoom control device, and recording medium
JP6735583B2 (en) Zoom control device, imaging device and control method thereof, program, and storage medium
JP7073550B2 (en) Zoom control device, image pickup device, control method of zoom control device, control program of zoom control device
JP6296801B2 (en) IMAGING DEVICE, IMAGING DEVICE CONTROL METHOD, AND IMAGING DEVICE CONTROL PROGRAM
US10419683B2 (en) Zoom control device, imaging apparatus, control method of zoom control device, and recording medium
US10165191B2 (en) Image pickup apparatus having zoom function, method of controlling the same, and storage medium
JP6512897B2 (en) Zoom control device, control method of zoom control device
JP6366395B2 (en) Zoom control device, imaging device, control method for zoom control device, control program for subject detection device, and storage medium
JP6370140B2 (en) Zoom control device, imaging device, control method for zoom control device, control program for zoom control device, and storage medium
JP2019029998A (en) Imaging apparatus, control method of imaging apparatus and control program
JP6463123B2 (en) Zoom control device, imaging device, control method for zoom control device, and control program for zoom control device
JP6224925B2 (en) Control device and angle of view control method
JP6624875B2 (en) Zoom control device, imaging device, control method for zoom control device, control program for zoom control device, and storage medium
JP6188455B2 (en) Control apparatus, imaging system, angle of view control method, program, and storage medium
JP6335520B2 (en) IMAGING DEVICE, IMAGING DEVICE CONTROL METHOD, AND IMAGING DEVICE CONTROL PROGRAM

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20210311

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20210311

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20220127

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20220201

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20220330

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20220412

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20220511

R151 Written notification of patent or utility model registration

Ref document number: 7073550

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151