JP6188455B2 - Control apparatus, imaging system, angle of view control method, program, and storage medium - Google Patents
Control apparatus, imaging system, angle of view control method, program, and storage medium Download PDFInfo
- Publication number
- JP6188455B2 JP6188455B2 JP2013137668A JP2013137668A JP6188455B2 JP 6188455 B2 JP6188455 B2 JP 6188455B2 JP 2013137668 A JP2013137668 A JP 2013137668A JP 2013137668 A JP2013137668 A JP 2013137668A JP 6188455 B2 JP6188455 B2 JP 6188455B2
- Authority
- JP
- Japan
- Prior art keywords
- zoom
- subject
- angle
- mode
- view
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims description 116
- 238000003384 imaging method Methods 0.000 title claims description 25
- 238000003860 storage Methods 0.000 title claims description 11
- 238000001514 detection method Methods 0.000 claims description 71
- 230000008859 change Effects 0.000 claims description 33
- 230000004044 response Effects 0.000 claims description 9
- 230000008569 process Effects 0.000 description 92
- 230000006870 function Effects 0.000 description 44
- 230000003287 optical effect Effects 0.000 description 41
- 238000012545 processing Methods 0.000 description 33
- 238000009432 framing Methods 0.000 description 15
- 238000002360 preparation method Methods 0.000 description 15
- 238000003825 pressing Methods 0.000 description 10
- 238000010586 diagram Methods 0.000 description 8
- 238000013459 approach Methods 0.000 description 3
- 238000004364 calculation method Methods 0.000 description 2
- 238000006243 chemical reaction Methods 0.000 description 2
- 238000011156 evaluation Methods 0.000 description 2
- 230000000295 complement effect Effects 0.000 description 1
- 239000012141 concentrate Substances 0.000 description 1
- 238000012937 correction Methods 0.000 description 1
- 238000005520 cutting process Methods 0.000 description 1
- 239000000284 extract Substances 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 229910044991 metal oxide Inorganic materials 0.000 description 1
- 150000004706 metal oxides Chemical class 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 239000013589 supplement Substances 0.000 description 1
- 239000010409 thin film Substances 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
- 230000007704 transition Effects 0.000 description 1
Landscapes
- Lens Barrels (AREA)
- Studio Devices (AREA)
Description
本発明は、ズーム機能を有する制御装置に関する。 The present invention relates to a control device having a zoom function.
従来から、ズームレンズを駆動して光学的な変倍(光学ズーム)を行う機能、および、撮影画像の一部を拡大して電子的な変倍(電子ズーム)を行う機能を有する撮像装置が知られている。また特許文献1には、被写体がフレームアウトした際に迅速に被写体を捉える機能として、フレーミング支援ズーム機能(FAズーム機能)を有する撮像装置が開示されている。特許文献1の構成によれば、FAズーム開始が指示された場合にズーム位置を広角方向にズームアウトさせ、FAズーム機能の終了が指示された場合にFAズーム開始時のズーム位置にズームインさせることができる。 2. Description of the Related Art Conventionally, there has been an imaging apparatus having a function of driving a zoom lens to perform optical zooming (optical zoom) and a function of enlarging a part of a captured image to perform electronic zooming (electronic zoom). Are known. Patent Document 1 discloses an imaging apparatus having a framing support zoom function (FA zoom function) as a function of quickly capturing a subject when the subject is out of frame. According to the configuration of Patent Literature 1, when the start of FA zoom is instructed, the zoom position is zoomed out in the wide-angle direction, and when the end of the FA zoom function is instructed, the zoom position is zoomed in to the zoom position at the start of FA zoom. Can do.
また、被写体の検出情報に応じて自動でズーム位置を変更するオートズーム機能を有する撮像装置が知られている。特許文献2には、被写体が画面内の特定領域の限界位置に達したときにズーム位置を広角方向にズームアウトさせる方法が開示されている。また、特許文献2には、被写体が画面内の中央部分にいるときにズーム位置を望遠方向にズームインさせる方法が開示されている。 There is also known an imaging apparatus having an auto zoom function that automatically changes the zoom position according to subject detection information. Patent Document 2 discloses a method of zooming out the zoom position in the wide-angle direction when the subject reaches the limit position of a specific area in the screen. Patent Document 2 discloses a method of zooming in on the zoom position in the telephoto direction when the subject is in the center of the screen.
特許文献1のFAズーム機能では、撮影者の操作に応じてズームアウトとズームインを行う。ここで、撮影者の利便性を高めるため、FAズーム機能においても被写体の状態に応じて自動でズーム動作を可能にすることが想定される。その場合、FAズーム機能を使用する際に、撮影場面に応じてユーザが所望する操作に容易に切り替えられることが望ましい。 With the FA zoom function of Patent Document 1, zooming out and zooming in are performed in accordance with a photographer's operation. Here, in order to improve the convenience of the photographer, it is assumed that the zoom operation can be automatically performed in the FA zoom function according to the state of the subject. In that case, when the FA zoom function is used, it is desirable that the user can easily switch to an operation desired by the shooting scene.
そこで本発明は、望遠撮影時に被写体が画角から外れた場合に被写体を捉え直す動作において、ユーザの操作性の高い制御装置を提供する。 Therefore, the present invention provides a control device with high user operability in the operation of re-interpreting a subject when the subject deviates from the angle of view during telephoto shooting.
本発明の一側面としての制御装置は、ユーザが画角の変更を指示するための第1の操作部と、画像から被写体を検出する被写体検出手段と、前記第1の操作部の操作に応じて画角を制御する制御手段とを有し、前記制御手段は、前記第1の操作部を介した第1の操作に応じて第1のモードを実行し、前記第1の操作と異なる第2の操作に応じて第2のモードを実行し、前記第1のモードにおいて、前記制御手段は、前記被写体検出手段の検出結果に基づいて画角を変更するよう制御し、前記第2のモードにおいて、前記制御手段は、前記第2の操作に応じて画角を広角側に変更するよう制御し、前記第1のモード実行中に前記第2の操作が実行されると、前記第1のモードから前記第2のモードに移行する。 A control device according to one aspect of the present invention includes a first operation unit for a user to instruct a change in an angle of view, subject detection means for detecting a subject from an image, and an operation of the first operation unit. Control means for controlling the angle of view, and the control means executes a first mode in response to a first operation via the first operation unit, and is different from the first operation. The second mode is executed in response to the operation of No. 2, and in the first mode, the control unit controls to change the angle of view based on the detection result of the subject detection unit, and the second mode The control means controls to change the angle of view to the wide-angle side according to the second operation, and when the second operation is executed during the execution of the first mode, The mode is shifted to the second mode .
本発明の他の側面としての撮像システムは、レンズ装置と、前記制御装置を備えた撮像装置とを有する。 An imaging system according to another aspect of the present invention includes a lens device and an imaging device including the control device .
本発明の他の側面としての画角の制御方法は、第1の操作部を介して画角の変更の指示を受け付ける受付ステップと、画像から被写体を検出する検出ステップと、前記第1の操作部の操作に応じて画角を制御する制御ステップとを有し、前記制御ステップにおいて、前記第1の操作部を介した第1の操作に応じて第1のモードを実行し、前記第1の操作と異なる第2の操作に応じて第2のモードを実行し、前記第1のモードにおいて、前記検出ステップでの検出結果に基づいて画角を変更するよう制御し、前記第2のモードにおいて、前記第2の操作に応じて画角を広角側に変更するよう制御し、前記第1のモード実行中に前記第2の操作が実行されると、前記第1のモードから前記第2のモードに移行する。
An angle of view control method as another aspect of the present invention includes a reception step of receiving an instruction to change an angle of view via a first operation unit, a detection step of detecting a subject from an image, and the first operation A control step for controlling the angle of view according to the operation of the unit, and in the control step, the first mode is executed according to the first operation via the first operation unit, and the first The second mode is executed in response to a second operation different from the above operation, and the angle of view is changed based on the detection result in the detection step in the first mode, and the second mode is controlled. In this case, when the second operation is executed during execution of the first mode, the second mode is changed from the first mode to the second. Transition to mode .
本発明の他の側面としてのプログラムは、前記画角制御方法をコンピュータに実行させるように構成されている。 A program according to another aspect of the present invention is configured to cause a computer to execute the angle-of-view control method.
本発明の他の側面としての記憶媒体は、前記プログラムを記憶している。 A storage medium according to another aspect of the present invention stores the program.
本発明の他の目的及び特徴は、以下の実施例において説明される。 Other objects and features of the present invention are illustrated in the following examples.
本発明によれば、望遠撮影時に被写体が画角から外れた場合に被写体を捉え直す動作において、ユーザの操作性の高い制御装置を提供することができる。 According to the present invention, it is possible to provide a control device with high user operability in an operation of re-capturing a subject when the subject deviates from the angle of view during telephoto shooting.
以下、本発明の実施例について、図面を参照しながら詳細に説明する。各図において、同一の部材については同一の参照番号を付し、重複する説明は省略する。 Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. In each figure, the same members are denoted by the same reference numerals, and redundant description is omitted.
まず、図1を参照して、本実施例における撮像装置の構成について説明する。図1は、本実施例における撮像装置(デジタルカメラ100)の構成を示すブロック図である。デジタルカメラ100は、撮影者(ユーザ)によるフレーミングを支援するためのフレーミング支援ズーム(フレーミングアシストズーム、以下FAズーム)を実行可能に構成されている。 First, with reference to FIG. 1, the structure of the imaging device in a present Example is demonstrated. FIG. 1 is a block diagram illustrating a configuration of an imaging apparatus (digital camera 100) in the present embodiment. The digital camera 100 is configured to be able to execute a framing assist zoom (framing assist zoom, hereinafter referred to as FA zoom) for assisting a framing by a photographer (user).
レンズ鏡筒101(レンズ装置)は、その内部にレンズ(レンズ群)を保持している。ズームレンズ102は、光軸方向に移動することで焦点距離を調節し、光学的に画角を変更(ズーム位置を移動)する。フォーカスレンズ103は、光軸方向に移動することでピントを調節する。防振レンズ104は、手ぶれに起因する像振れを補正する補正用レンズである。絞りおよびシャッタ105は、光量を調節可能に構成されており、露出制御に用いられる。なお本実施例において、デジタルカメラ100は、レンズ鏡筒101とカメラ本体(撮像装置本体)とが一体的に構成された撮像装置であるが、これに限定されるものではない。本実施例は、カメラ本体と、カメラ本体に着脱可能なレンズ装置(交換レンズ)とを備えて構成される撮像システムにも適用可能である。 The lens barrel 101 (lens device) holds a lens (lens group) therein. The zoom lens 102 adjusts the focal length by moving in the optical axis direction, 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. The anti-vibration lens 104 is a correction lens that corrects image blur caused by camera shake. The diaphragm and shutter 105 are configured to be able to adjust the amount of light, and 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 (imaging device body) are integrally configured, but the present invention is not limited to this. The present embodiment can also be applied to an imaging system including a camera body and a lens device (interchangeable lens) that can be attached to and detached from the camera body.
レンズ鏡筒101を通過した光(光信号)は、CCD(電荷結合素子)またはCMOS(相補型金属酸化膜半導体)などを備えて構成される撮像素子106により受光される。撮像素子106は、光電変換によって、受光した光信号を電気信号に変換することで、撮像信号を生成する。撮像信号は、画像処理回路107に入力される。画像処理回路107は、入力された撮像信号に対して画素補間処理や色変換処理などの各種処理を行い、画像データ(各種処理後の画像データ)を画像メモリ108に出力する。画像メモリ108は、DRAM(Dynamic Random Access Memory)やSRAM(Static Random Access Memory)などを備えて構成される記憶手段である。 The light (optical signal) that has passed through the lens barrel 101 is received by an imaging device 106 that includes a CCD (charge coupled device) or a CMOS (complementary metal oxide semiconductor). The imaging element 106 generates an imaging signal by converting a received optical signal into an electrical signal by photoelectric conversion. The imaging signal is input to the image processing circuit 107. The image processing circuit 107 performs various processes such as a pixel interpolation process and a color conversion process on the input imaging signal, and outputs image data (image data after various processes) to the image memory 108. The image memory 108 is a storage unit that includes a DRAM (Dynamic Random Access Memory), a SRAM (Static Random Access Memory), and the like.
表示部109(表示手段)は、TFT型LCD(薄膜トランジスタ駆動型液晶表示器)などを備えて構成され、撮影画像(撮影して得られた像、画像データ)を表示する。また表示部109は、撮影画像とともに、特定の情報(例えば、撮影情報や後述するFAズーム枠など)を表示する。このようなライブビューなどの情報表示により、撮影者が画角合わせを行うための電子ビューファインダ(EVF)機能を実現している。 The display unit 109 (display unit) includes a TFT type LCD (thin film transistor driving type liquid crystal display) and the like, and displays a photographed image (an image obtained by photographing, image data). The display unit 109 displays specific information (for example, shooting information and an FA zoom frame described later) along with the shot image. Such information display such as live view realizes an electronic viewfinder (EVF) function for the photographer to adjust the angle of view.
絞りシャッタ駆動部110は、画像処理回路107の画像処理により得られた輝度情報に基づいて露出制御値(絞り値およびシャッタ速度)を演算し、この演算結果に基づいて絞りおよびシャッタ105を駆動する。これにより、AE(自動露出)制御が行われる。防振レンズ駆動部111は、ジャイロセンサなどの角速度センサの情報に基づいてデジタルカメラ100に加わる振れ量を演算し、この振れ量を打ち消す(低減する)ように防振レンズ104を駆動する。 The aperture shutter driver 110 calculates an exposure control value (aperture value and shutter speed) based on the luminance information obtained by the image processing of the image processing circuit 107, and drives the aperture and shutter 105 based on the calculation result. . Thereby, AE (automatic exposure) control is performed. The anti-vibration lens driving unit 111 calculates an amount of shake applied to the digital camera 100 based on information from an angular velocity sensor such as a gyro sensor, and drives the anti-vibration lens 104 so as to cancel (reduce) the shake amount.
フォーカスレンズ駆動部112は、フォーカスレンズ103を駆動する。本実施例において、デジタルカメラ100は、コントラスト方式でAF(オートフォーカス)制御を行う。このためフォーカスレンズ駆動部112は、画像処理回路107の画像処理により得られた撮影光学系の焦点調節情報(コントラスト評価値)に基づいて、被写体にピントが合うようにフォーカスレンズ103を駆動する。ただし、本実施例はこれに限定されるものではなく、位相差方式などのコントラスト方式以外のAF制御や、コントラスト方式と位相差方式との組み合わせなど複数の方式を用いたAF制御などを行うように構成してもよい。 The focus lens driving unit 112 drives the focus lens 103. In the present embodiment, the digital camera 100 performs AF (autofocus) control using a contrast method. For this reason, the focus lens driving unit 112 drives the focus lens 103 so that the subject is in focus based on the focus adjustment information (contrast evaluation value) of the photographing optical system obtained by the image processing of the image processing circuit 107. However, the present embodiment is not limited to this, and AF control other than the contrast method such as the phase difference method, or AF control using a plurality of methods such as a combination of the contrast method and the phase difference method is performed. You may comprise.
ズームレンズ駆動部113は、ズーム操作指示に従ってズームレンズ102を駆動する。操作部117(操作手段)は、撮影者(ユーザ)がデジタルカメラ100にズーミングを指示する(ズーミング指示操作に用いられる)ズーム操作部材としてのズームレバーまたはズームボタンなどを備えて構成される。ズーム操作部材の操作量および操作方向に基づいて、システム制御部114によりズーム駆動速度や駆動方向が演算され、その演算結果に従ってズームレンズ102が光軸に沿って移動する。 The zoom lens driving unit 113 drives the zoom lens 102 in accordance with a zoom operation instruction. The operation unit 117 (operation means) includes a zoom lever, a zoom button, or the like as a zoom operation member that instructs the digital camera 100 to perform zooming (used for zooming instruction operation). Based on the operation amount and operation direction of the zoom operation member, the system control unit 114 calculates the zoom drive speed and drive direction, and the zoom lens 102 moves along the optical axis according to the calculation result.
撮影動作により生成された画像データは、I/F部115(インターフェース部)を介して記録部116に送られて記録される。画像データは、デジタルカメラ100に装着して使用されるメモリカードなどの外部記録媒体またはデジタルカメラ100に内蔵されている不揮発性のメモリ118、あるいは外部記録媒体およびメモリ118の両方に記録される。 The image data generated by the shooting operation is sent to the recording unit 116 via the I / F unit 115 (interface unit) and recorded. The image data is recorded on an external recording medium such as a memory card used by being mounted on the digital camera 100, a nonvolatile memory 118 built in the digital camera 100, or both the external recording medium and the memory 118.
操作部117は、前述のズーム操作部材に加えて、撮影開始を指示するレリーズスイッチ、FAズーム(フレーミング支援ズーム)の開始や終了を指示するFAズーム操作スイッチ(第1の操作部)などを含む。操作部117からの信号(操作信号)は、後述のシステム制御部114(制御手段)に送られる。メモリ118は、プログラムデータや画像データに加えて、デジタルカメラ100の設定情報や、後述するFAズーム機能におけるズームイン位置などの情報を記憶する。ここで、ズームイン位置とは、FAズーム終了時にズームインする際の目標となるズーム戻り位置であり、その詳細については後述する。 The operation unit 117 includes, in addition to the above-described zoom operation member, a release switch for instructing start of photographing, an FA zoom operation switch (first operation unit) for instructing start and end of FA zoom (framing support zoom), and the like. . A signal (operation signal) from the operation unit 117 is sent to a system control unit 114 (control means) described later. In addition to program data and image data, the memory 118 stores information such as setting information of the digital camera 100 and a zoom-in position in an FA zoom function described later. Here, the zoom-in position is a zoom return position that is a target when zooming in at the end of FA zooming, and details thereof will be described later.
システム制御部114(制御手段)は、CPU(中央演算処理装置)などの演算処理装置を備えて構成され、撮影者(ユーザ)の操作に応じて各部に制御命令を送ることによりデジタルカメラ100の全体を制御する。システム制御部114は、メモリ118に記憶されている各種の制御プログラム、例えば撮像素子106の制御、AE制御、AF制御、ズーム制御(FAズーム処理を含む)などを行うためのプログラムを実行する。 The system control unit 114 (control means) includes an arithmetic processing device such as a CPU (central processing unit), and sends a control command to each unit in response to an operation of a photographer (user) to thereby control the digital camera 100. Control the whole. The system control unit 114 executes various control programs stored in the memory 118, for example, programs for performing control of the image sensor 106, AE control, AF control, zoom control (including FA zoom processing), and the like.
次に、システム制御部114において、FAズーム機能に関連する制御について説明する。図1に示されるように、システム制御部114は、CZ制御部119、電子ズーム制御部120、FAズーム枠制御部121、FAズーム制御部122、および、被写体検出部123を備えて構成される。 Next, control related to the FA 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 FA zoom frame control unit 121, an FA zoom control unit 122, and a subject detection unit 123. .
光学ズームによる画角変更時に合焦状態を維持するには、レンズ鏡筒101のようなリアフォーカスタイプのレンズ鏡筒の場合、ズームレンズ102の位置に応じてフォーカスレンズ103を適切なフォーカス位置へ移動させる必要がある。このような制御をコンピュータズーム(CZ)制御という。 In order to maintain the in-focus state when the angle of view is changed by the optical zoom, in the case of a rear focus type lens barrel such as the lens barrel 101, the focus lens 103 is moved to an appropriate focus position according to the position of the zoom lens 102. Must be moved. Such control is called computer zoom (CZ) control.
図2は、ズームレンズの焦点距離と被写体距離ごとのフォーカス位置との関係図である。図2では、ズームレンズの焦点距離とピントが合うフォーカス位置との関係を、被写体までの距離ごとに示すデータデーブルとしてグラフ化している。本実施例において、このデータテーブルはフォーカスカムテーブルという。図2において、横軸はズーム位置に対応する焦点距離を示し、縦軸はフォーカス位置を示している。各グラフ線の横には、デジタルカメラ100から被写体までの距離(被写体距離)を示している。 FIG. 2 is a relationship diagram 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 graphed as a data table indicating each distance to the subject. In this embodiment, this data table is called 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 shown.
システム制御部114は、AF制御を行う際にフォーカスレンズ駆動部112を制御して、フォーカスレンズ103を所定の範囲において移動させることによりスキャン動作を行う。この動作中に得られるコントラスト評価値などを用いて既知の方法により、合焦点であるフォーカス位置が検出される。そのときのズーム位置およびフォーカス位置を用い、フォーカスカムテーブルを参照することにより、被写体距離を計測することができる。 The system control unit 114 controls the focus lens driving unit 112 when performing AF control, and performs a scanning operation by moving the focus lens 103 within a predetermined range. A focus position that is a focal point is detected by a known method using a contrast evaluation value or the like obtained during this operation. The subject distance can be measured by referring to the focus cam table using the zoom position and the focus position at that time.
デジタルカメラ100は、光学ズームおよび電子ズームの各機能を有する。CZ制御部119およびズームレンズ駆動部113は、光学ズームを行う。CZ制御部119は、ズーム動作時に、所定の制御周期ごとにズームレンズ102のズーム位置を検出する。そしてCZ制御部119は、そのズーム位置に応じてフォーカスカムテーブルに追従するように、フォーカスレンズ103を駆動させる。これにより、合焦状態を維持したまま光学ズームを行うことができる。 The digital camera 100 has optical zoom and electronic zoom functions. The CZ control unit 119 and the zoom lens driving unit 113 perform optical zoom. The CZ control unit 119 detects the zoom position of the zoom lens 102 at every predetermined control period during the zoom operation. Then, the CZ control unit 119 drives the focus lens 103 so as to follow the focus cam table according to the zoom position. Thereby, the optical zoom can be performed while maintaining the in-focus state.
一方、電子ズーム制御部120および画像メモリ108は、電子ズームを行う。電子ズーム制御部120は、画像メモリ108に転送された画像データから対象領域を切り出すことにより、電子ズーム機能を実現する。また電子ズーム制御部120は、撮像素子106に取り込む画像(映像)のフレームレート周期で切り出す範囲を徐々に大きくしながら表示部109に表示させることにより、滑らかな電子ズーム表示を実現する。 On the other hand, the electronic zoom control unit 120 and the image memory 108 perform electronic zoom. The electronic zoom control unit 120 implements an electronic zoom function by cutting out a target area from the image data transferred to the image memory 108. In addition, the electronic zoom control unit 120 realizes a smooth electronic zoom display by causing the display unit 109 to display the image (video) to be captured by the image sensor 106 on the display unit 109 while gradually increasing a range to be extracted at a frame rate cycle.
被写体検出部123(被写体検出手段)は、画像メモリ108に記憶された画像データから所望の被写体領域を検出する。本実施例では、画像データに含まれる顔情報または色情報に基づいて被写体(顔または物体)を検出する被写体検出方法(顔検出処理、色検出処理)について説明する。 The subject detection unit 123 (subject detection means) detects a desired subject region from the image data stored in the image memory 108. In this embodiment, a subject detection method (face detection process, color detection process) for detecting a subject (face or object) based on face information or color information included in image data will be described.
顔検出処理は、画像データ中に存在する顔領域を公知のアルゴリズムにより検出する処理である。例えば、被写体検出部123は、画像データ上の正方形状の部分領域から特徴量(抽出特徴量)を抽出し、その特徴量を予め用意された顔の特徴量(基準特徴量)と比較する。そして被写体検出部123は、両者(抽出特徴量と基準特徴量)の相関が所定の閾値を超える場合、その部分領域を顔領域であると判定する。この判定を、部分領域のサイズ、配置位置、配置角度の組み合わせを変更しながら繰り返すことにより、画像データ中に存在する種々の顔領域を検出することができる。 The face detection process is a process for detecting a face area existing in image data by a known algorithm. For example, the subject detection unit 123 extracts a feature amount (extracted feature amount) from a square partial region on the image data, and compares the feature amount with a face feature amount (reference feature amount) prepared in advance. If the correlation between the two (extracted feature value and reference feature value) exceeds a predetermined threshold, the subject detection unit 123 determines that the partial region is a face region. By repeating this determination while changing the combination of the size, the arrangement position, and the arrangement angle of the partial areas, 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, the color information of the subject area designated according to the subject designation method described later is stored as a characteristic color. The color detection process is executed when the subject to be detected is an object (a “thing” other than a person). As the color information, RGB, luminance Y, and color differences RY, BY, 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 areas, and calculates an average value of luminance and color difference for each partial area. In addition, the subject detection unit 123 compares the characteristic color information stored in advance with the color information of each region at the time of subject detection, and sets a partial region in which the difference in luminance and color difference is equal to or less than a predetermined amount as a subject region candidate. A group of partial areas adjacent to each other in this area candidate is defined as the same color area, and an area where the same color area falls within a predetermined size range is defined as a final subject area.
被写体検出部123は、顔情報および色情報とともに、CZ制御部119で計測された被写体距離情報およびズームレンズ102の焦点距離情報を用いることにより、画像データ上での被写体領域の大きさを推定することができる。 The subject detection unit 123 estimates the size of the subject region 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. be able to.
次に、FAズーム機能を実行するためのFAズーム枠制御部121およびFAズーム制御部122について説明する。本実施例のデジタルカメラ100は、FAズームを実行するモードとして、手動探索モード(第2のモード)および自動追尾モード(第1のモード)の二つのモードを備えている。これらの二つのモードは、被写体がフレームアウトしたときに撮影者がFAズーム操作スイッチを操作して被写体を捉え直すモードであるか、または、デジタルカメラ100が自動で被写体を検出して画角合わせを支援するモードであるかという点で異なる。 Next, the FA zoom frame control unit 121 and the FA zoom control unit 122 for executing the FA zoom function will be described. The digital camera 100 according to the present embodiment includes two modes, a manual search mode (second mode) and an automatic tracking mode (first mode), as modes for executing FA zoom. These two modes are modes in which the photographer operates the FA zoom operation switch to catch the subject when the subject is out of the frame, or the digital camera 100 automatically detects the subject and adjusts the angle of view. It is different in whether it is a mode to support.
このように本実施例において、システム制御部114(FAズーム制御部122)は、第1のモードまたは第2のモードのいずれかのモードでFAズームを行う。第2のモードは、撮影者による操作部117の操作に基づいてFAズームを行うモードである。第1のモードは、被写体の検出結果に基づいてFAズームを行うモードである。システム制御部114(FAズーム制御部122)は、操作部117の状態に基づいてモードを第1のモードまたは第2のモードのいずれかに設定する。以下、各モードの機能の概要について説明する。 As described above, in the present embodiment, the system control unit 114 (FA zoom control unit 122) performs FA zoom in either the first mode or the second mode. The second mode is a mode in which FA zooming is performed based on the operation of the operation unit 117 by the photographer. The first mode is a mode for performing FA zoom based on the detection result of the subject. The system control unit 114 (FA zoom control unit 122) sets the mode to either the first mode or the second mode based on the state of the operation unit 117. Hereinafter, an overview of the functions of each mode will be described.
FAズーム機能が非搭載のカメラでは、撮影者が望遠状態でフレーミングしてシャッタチャンスを待っている間に被写体が動いてフレームアウトした場合などにおいて、撮影者は以下の操作が必要であった。すなわち、まず、ズーム操作部材の操作によりズームアウトを行ってから被写体を探索する。そして被写体を探索した後、再び所望の画角になるまでズーム操作を行って画角調整する。 In a camera not equipped with the FA zoom function, the photographer needs to perform the following operations when the subject moves out of frame while framing in the telephoto state and waiting for a photo opportunity. That is, first, the subject is searched after zooming out by operating the zoom operation member. Then, after searching for the subject, the angle of view is adjusted by zooming until the desired angle of view is reached again.
一方、FAズーム機能の手動探索モードを有するデジタルカメラ100では、撮影前に画角合わせなどを行う状態(以下、「撮影準備状態」という)で被写体を見失った場合、撮影者はFAズーム操作スイッチを操作すればよい。このFAズーム操作スイッチは、FAズーム機能のために割り当てられたスイッチであり、ズーム操作部材とは別の部材である。FAズーム操作スイッチの押下により、FAズーム機能の開始をFAズーム制御部122に指示する。FAズーム制御部122は、FAズーム操作スイッチからのFAズーム開始指示により、電子ズームおよび光学ズームの各ズーム位置(ズームイン位置)をメモリ118に記憶させる。またFAズーム制御部122は、後述の図6に示される処理手順に従って、CZ制御部119または電子ズーム制御部120に対して広角方向(広角側)にズームアウトの指示を行い、撮影準備状態よりも画角がズームアウトされた状態(被写体探索状態)にする。 On the other hand, in the digital camera 100 having the manual search mode of the FA zoom function, if the subject loses sight in a state in which the angle of view is adjusted before photographing (hereinafter referred to as “photographing preparation state”), the photographer switches the FA zoom operation switch. Can be operated. This FA zoom operation switch is a switch assigned for the FA zoom function, and is a member different from the zoom operation member. By pressing the FA zoom operation switch, the FA zoom control unit 122 is instructed to start the FA zoom function. The FA zoom control unit 122 causes the memory 118 to store each zoom position (zoom-in position) of the electronic zoom and the optical zoom in response to an FA zoom start instruction from the FA zoom operation switch. Further, the FA zoom control unit 122 instructs the CZ control unit 119 or the electronic zoom control unit 120 to zoom out in the wide angle direction (wide angle side) according to the processing procedure shown in FIG. Also, the view angle is zoomed out (subject search state).
続いて、図3を参照して、撮影準備状態および被写体探索状態のそれぞれの画角について説明する。図3は、被写体探索状態での画角および撮影準備状態での画角の説明図である。図3(A)および図3(D)はズームイン状態(撮影準備状態)での画角を示し、図3(B)および図3(C)はズームアウト状態(被写体探索状態)での画角を示している。 Next, with reference to FIG. 3, each angle of view in the shooting preparation state and the subject search state will be described. FIG. 3 is an explanatory diagram of the angle of view in the subject search state and the angle of view in the shooting preparation state. 3A and 3D show the angle of view in the zoom-in state (shooting preparation state), and FIGS. 3B and 3C show the angle of view in the zoom-out state (subject search state). Is shown.
図3(A)に示されるように被写体がフレームアウトした場合、撮影者は被写体を探索するためにFAズーム操作スイッチを押下する。FAズーム操作スイッチの押下中、ズームアウト状態(被写体探索状態)が保持されるとともに、ズームイン位置を示すFAズーム枠300が画像に重畳して表示部109に表示される。図3(B)に示されるようにズームアウト状態(被写体探索状態)で所望の被写体を発見した場合、図3(C)に示されるようにFAズーム枠300の内側に被写体が収まるようにフレーミングを行う。その後、撮影者がFAズーム操作スイッチを開放することにより、FAズーム終了がFAズーム制御部122に指示される。このとき、FAズーム制御部122は、記憶された撮影準備状態のズーム位置(ズームイン位置)まで電子ズームまたは光学ズームによるズームイン動作を行う。これにより、図3(D)に示されるような最適なフレーミング状態が得られる。 When the subject is out of frame as shown in FIG. 3A, the photographer presses the FA zoom operation switch to search for the subject. While the FA zoom operation switch is pressed, the zoom-out state (subject search state) is maintained, and the FA zoom frame 300 indicating the zoom-in position is displayed on the display unit 109 so as to be superimposed on the image. When a desired subject is found in the zoom-out state (subject search state) as shown in FIG. 3 (B), framing is performed so that the subject fits inside the FA zoom frame 300 as shown in FIG. 3 (C). I do. Thereafter, the photographer releases the FA zoom operation switch to instruct the FA zoom control unit 122 to end the FA zoom. At this time, the FA zoom control unit 122 performs a zoom-in operation by electronic zoom or optical zoom up to the stored zoom position (zoom-in position) in the shooting preparation state. Thereby, the optimal framing state as shown in FIG. 3D is obtained.
FAズーム枠制御部121は、図3(B)および図3(C)に示されるように、記憶された撮影準備状態での画角を示す大きさを算出し、表示部109のEVFの中心部にFAズーム枠300を表示させる。FAズーム枠300の大きさは、ズームアウトした時点でのズーム倍率を元に計算される。例えば、撮影準備状態から2倍の電子ズーム倍率および3倍の光学ズーム倍率でズームアウトして被写体探索状態となった場合、被写体探索状態でEVFに表示される画角に対して、(1/2)×(1/3)=1/6倍の大きさのFAズーム枠300が表示される。このような処理により、撮影者は簡単な操作で、フレームアウトした被写体を再度フレームインさせながら所望の画角で撮影することができる。 As shown in FIGS. 3B and 3C, the FA zoom frame control unit 121 calculates the size indicating the angle of view in the stored shooting preparation state, and the EVF center of the display unit 109 is calculated. The FA zoom frame 300 is displayed on the screen. The size of the FA zoom frame 300 is calculated based on the zoom magnification at the time of zooming out. For example, when the subject search state is entered by zooming out from the shooting preparation state at 2 × electronic zoom magnification and 3 × optical zoom magnification, the angle of view displayed on the EVF in the subject search state is (1 / 2) The FA zoom frame 300 having a size of (1/3) = 1/6 times is displayed. By such processing, the photographer can shoot at a desired angle of view while re-framing the subject out of the frame with a simple operation.
また、動いている被写体を撮影する場合など被写体がフレームアウトしやすいシーンを撮影する場合、デジタルカメラ100が自動的にズーム位置を変更することにより、より簡単にフレームアウトを防止することができる。特に望遠状態での撮影においては、画角が狭いため、手ぶれなどに起因する微少なデジタルカメラ100の動きでも被写体がフレームアウトする場合がある。 Also, when shooting a scene where the subject is likely to be out of frame, such as when shooting a moving subject, the digital camera 100 can automatically prevent the out of frame by automatically changing the zoom position. In particular, when shooting in the telephoto state, since the angle of view is narrow, the subject may be out of frame even with a slight movement of the digital camera 100 due to camera shake or the like.
本実施例のデジタルカメラ100は、FAズーム機能の自動追尾モードを有する。このため、自動追尾モードを設定した後、タッチパネルなどで被写体を指定する操作を実施することにより、撮影したい被写体を指定しておけばよい。被写体の指定方法としては、タッチパネル操作以外でも、特定のボタンを押下したときに中央付近にいる被写体を指定する方法や、デジタルカメラ100が検出した被写体の中から自動的に主被写体を選択する方法などが考えられる。 The digital camera 100 of the present embodiment has an automatic tracking mode with an FA zoom function. For this reason, after the automatic tracking mode is set, an object to be photographed may be specified by performing an operation for specifying the object with a touch panel or the like. As a method for specifying a subject, a method for designating a subject near the center when a specific button is pressed, or a method for automatically selecting a main subject from subjects detected by the digital camera 100, other than touch panel operation. And so on.
被写体検出部123は、画像メモリ108から指定された被写体領域の画像データ上での位置や大きさを算出する。これをライブビューとして表示する毎サンプリングの画像データに対して連続的に行うことにより、被写体の動きを追尾することが可能となる。追尾している被写体を後述するズームアウト領域で検出した場合や所定の大きさよりも大きくなった場合(図3(A))、CZ制御部119または電子ズーム制御部120に対してFAズーム制御部122が広角方向にズームアウトの指示を行う(図3(B))。 The subject detection unit 123 calculates the position and size of the subject region designated from the image memory 108 on the image data. It is possible to track the movement of the subject by continuously performing this on each sampled image data displayed as a live view. When the subject being tracked is detected in a zoom-out area, which will be described later, or when the subject is larger than a predetermined size (FIG. 3A), the FA zoom control unit with respect to the CZ control unit 119 or the electronic zoom control unit 120 122 instructs to zoom out in the wide-angle direction (FIG. 3B).
被写体をFAズーム枠300のズームイン領域内に検出し、かつ、所定の大きさの範囲内に収まった場合(図3(C))、FAズーム枠300が示すズーム位置までズームイン動作を行う(図3(D))。このような処理により、撮影者はズーム操作を気にせず被写体を画面に収めるようにデジタルカメラ100を動かすだけでよい。仮に、被写体がフレームアウトしそうになった場合でも、自動的にズーム位置が変更されるため、より簡単に画角合わせを行うことが可能となる。本実施例は、このような自動追尾モードにおけるズームアウト動作およびズームイン動作を最適なタイミングで実施することにより、撮影者が容易にフレーミングすることが可能となる。 When the subject is detected within the zoom-in area of the FA zoom frame 300 and falls within a predetermined size range (FIG. 3C), the zoom-in operation is performed to the zoom position indicated by the FA zoom frame 300 (FIG. 3). 3 (D)). With such processing, the photographer only needs to move the digital camera 100 so that the subject is displayed on the screen without worrying about the zoom operation. Even if the subject is about to be out of frame, the zoom position is automatically changed, so that the angle of view can be adjusted more easily. In this embodiment, the photographer can easily perform framing by performing the zoom-out operation and the zoom-in operation in the automatic tracking mode at the optimum timing.
次に、図4および図5を参照して、ズームアウト動作およびズームイン動作の開始条件について説明する。図4は、被写体(モノ)の画面外へのフレームアウトを防止する処理の説明図である。図5は、被写体(人物)の画面内でのサイズ変化(大きさ変化)を防止する処理の説明図である。 Next, the start conditions for the zoom-out operation and the zoom-in operation will be described with reference to FIGS. FIG. 4 is an explanatory diagram of processing for preventing the subject (thing) from being out of the frame. FIG. 5 is an explanatory diagram of processing for preventing a change in size (a change in size) within the screen of a subject (person).
図4および図5において、400は被写体(人物以外のモノ)を追尾するモノ追尾枠、500は被写体(人物の顔)を追尾する顔追尾枠である。本実施例において、被写体が人物とモノのいずれにも適用可能な場合、モノ追尾枠400および顔追尾枠500をまとめて被写体追尾枠ということもある。被写体追尾枠は、撮影者が指定した被写体が分かるように、表示部109のEVF上に被写体を囲むように表示される。被写体追尾枠の画面上での位置および大きさは、顔情報および色情報に基づいて被写体検出部123により算出され、フレームレート周期で更新される。 4 and 5, 400 is a mono tracking frame for tracking a subject (thing other than a person), and 500 is a face tracking frame for tracking a subject (person's face). In this embodiment, when the subject is applicable to both a person and a thing, the mono tracking frame 400 and the face tracking frame 500 may be collectively referred to as a subject tracking frame. The subject tracking frame is displayed on the EVF of the display unit 109 so as to surround the subject so that the subject designated by the photographer can be seen. The position and size of the subject tracking frame on the screen are calculated by the subject detection unit 123 based on the face information and the color information, and are updated at a frame rate cycle.
図4は、被写体(飛行機)の画面外へのフレームアウトを防止する処理の説明図であり、図4(A)はEVFで表示される画角全体(画面全体)に対して所定の比率よりも外側の領域をズームアウト領域ZOとして示している。例えば、画面の中心点を0%、画面全体を100%とし、画面全体に対して80%となる位置をズームアウト領域ZOの境界として設定する場合、画面全体における80〜100%の領域がズームアウト領域ZOとなる。ズームアウト領域ZOの内部にモノ追尾枠400aの一部が進入すると、ズームアウト動作が開始する。ズームアウト動作中のズーム倍率やズーム速度は、被写体のサイズや移動速度に応じて予め設定される。また、ズーム倍率やズーム速度を被写体のサイズや移動速度に応じて適宜算出してもよい。ズームアウト動作は、そのズーム倍率やズーム速度に従って実行される。これにより、被写体のフレームアウトを効果的に防止することができる。 FIG. 4 is an explanatory diagram of a process for preventing the subject (airplane) from being out of the screen. FIG. 4A shows a predetermined ratio with respect to the entire angle of view (the entire screen) displayed in the EVF. The outer region is also shown as a zoom-out region ZO. For example, when the center point of the screen is set to 0%, the entire screen is set to 100%, and a position that is 80% of the entire screen is set as the boundary of the zoom-out area ZO, the area of 80 to 100% in the entire screen is zoomed. It becomes the out area ZO. When a part of the mono tracking frame 400a enters the zoom-out area ZO, the zoom-out operation starts. The zoom magnification and zoom speed during the zoom-out operation are preset according to the size and moving speed of the subject. Further, the zoom magnification and the zoom speed may be appropriately calculated according to the size and moving speed of the subject. The zoom-out operation is executed according to the zoom magnification and zoom speed. Thereby, it is possible to effectively prevent the subject from being out of frame.
図4(B)は、被写体探索状態においてFAズーム枠300で示されるズームイン画角に対して所定の比率よりも内側の領域をズームイン領域ZIとして示している。例えば画面の中心点を0%、FAズーム枠300(ズームイン画角)を100%とし、ズームイン画角に対して70%となる位置をズームイン領域ZIの境界として設定する場合、FAズーム枠300の全体における0〜70%の領域がズームイン領域ZIとなる。このとき、ズーム倍率(ズームアウト倍率)が例えば1/2倍である場合、FAズーム枠300は画面全体に対して50%の大きさとなる。したがって、ズームイン領域ZIは、画面全体に対して0〜35%(=70%×(1/2))の領域であるともいえる。撮影者が、ズームイン領域ZIの内部にモノ追尾枠400bが収まるようにデジタルカメラ100の向きを変更すると、ズームイン動作が開始する。 FIG. 4B shows, as a zoom-in area ZI, an area inside a predetermined ratio with respect to the zoom-in angle of view indicated by the FA zoom frame 300 in the subject search state. For example, when the center point of the screen is set to 0%, the FA zoom frame 300 (zoom-in angle of view) is set to 100%, and a position that is 70% of the zoom-in angle of view is set as the boundary of the zoom-in area ZI, The entire area of 0 to 70% is the zoom-in area ZI. At this time, when the zoom magnification (zoom-out magnification) is 1/2, for example, the FA zoom frame 300 is 50% of the entire screen. Therefore, it can be said that the zoom-in area ZI is an area of 0 to 35% (= 70% × (1/2)) with respect to the entire screen. When the photographer changes the orientation of the digital camera 100 so that the mono tracking frame 400b fits within the zoom-in area ZI, the zoom-in operation starts.
ここで、ズームアウト領域ZOの下限比率(上記例では80%)とズームイン領域ZIの上限比率(上記例では70%)との関係について説明する。撮影準備状態でモノ追尾枠400がズームアウト領域ZOの下限比率ぎりぎりの位置で検出されたことによりズームアウト動作が開始し、被写体がその位置で停止した状態でデジタルカメラ100自体の向きを変更していない場合について考える。ここで、ズームアウト領域ZOの下限比率とズームイン領域ZIの上限比率とを同じ比率に設定している場合、ズームアウト動作の直後には、モノ追尾枠400のほぼ全体がズームイン領域ZIに収まった状態となる。また、ズームアウト領域ZOの下限比率がズームイン領域ZIの上限比率以下に設定されている場合、ズームアウト動作の直後に、モノ追尾枠400全体がズームイン領域ZIの内部に収まり、即座にズームイン動作が開始する。すなわち、ズームアウト動作とズームイン動作とを繰り返すハンチング現象が発生してしまう。したがって、このようなハンチング現象を防止するため、ズームアウト領域ZOの下限比率は、ズームイン領域ZIの上限比率より大きくなるように(ZO下限比率>ZI上限比率)設定される。 Here, the relationship between the lower limit ratio (80% in the above example) of the zoom-out area ZO and the upper limit ratio (70% in the above example) of the zoom-in area ZI will be described. The zoom-out operation is started when the mono tracking frame 400 is detected at the position near the lower limit ratio of the zoom-out area ZO in the shooting preparation state, and the direction of the digital camera 100 itself is changed with the subject stopped at that position. Think about when not. Here, when the lower limit ratio of the zoom-out area ZO and the upper limit ratio of the zoom-in area ZI are set to the same ratio, almost the entire mono tracking frame 400 is within the zoom-in area ZI immediately after the zoom-out operation. It becomes a state. Further, when the lower limit ratio of the zoom-out area ZO is set to be equal to or lower than the upper limit ratio of the zoom-in area ZI, immediately after the zoom-out operation, the entire mono tracking frame 400 is within the zoom-in area ZI, and the zoom-in operation is immediately performed. Start. That is, a hunting phenomenon that repeats the zoom-out operation and the zoom-in operation occurs. Therefore, in order to prevent such a hunting phenomenon, the lower limit ratio of the zoom-out area ZO is set to be larger than the upper limit ratio of the zoom-in area ZI (ZO lower limit ratio> ZI upper limit ratio).
図5は、被写体(人物)がデジタルカメラ100に近づいてきた場合に、デジタルカメラ100が自動で被写体が占める割合を所定の比率内に収めるようにズーム動作させる例を示している。顔追尾枠500(500a、500b、500c)は、被写体(人物)の特徴領域として顔領域を囲むように表示している。ここでは、顔追尾枠500の大きさは被写体サイズである(顔追尾枠500の大きさ=被写体サイズ)として説明する。図5(A)は、後述の被写体指定方法に従って被写体が指定されたときの画角を示している。本実施例において、被写体指定時の顔追尾枠500aの大きさは、基準の被写体サイズとしてメモリ118に予め記憶される。 FIG. 5 shows an example in which when the subject (person) approaches the digital camera 100, the digital camera 100 performs a zoom operation so that the proportion of the subject is automatically within a predetermined ratio. The face tracking frame 500 (500a, 500b, 500c) is displayed so as to surround the face area as a characteristic area of the subject (person). Here, the size of the face tracking frame 500 is described as the subject size (the size of the face tracking frame 500 = the subject size). FIG. 5A shows the angle of view when a subject is designated according to a subject designation method described later. In this embodiment, the size of the face tracking frame 500a at the time of subject designation is stored in advance in the memory 118 as a reference subject size.
図5(B)は、図5(A)の状態からズーム位置を変更せずに被写体がデジタルカメラ100に向かって近づいてきたときの画角を示している。例えば、基準の被写体サイズである顔追尾枠500aの大きさに対して150%となる大きさをズームアウト動作の開始サイズとする。被写体追尾枠(顔追尾枠)の関係が、顔追尾枠500b>顔追尾枠500a×150%となったとき、ズームアウト動作が開始する。 FIG. 5B shows the angle of view when the subject approaches the digital camera 100 without changing the zoom position from the state of FIG. For example, a size that is 150% of the size of the face tracking frame 500a that 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 such that the face tracking frame 500b> the face tracking frame 500a × 150%, the zoom-out operation starts.
図5(C)は、図5(A)から図5(B)の状態に変化した被写体サイズの変化量と同等の1/1.5倍だけズーム倍率を広角方向にズームアウトしたときの画角およびこのときの顔追尾枠500cを示している。この後、さらに被写体が近づいてくる場合、光学ズーム位置がワイド端となるまでズームアウト動作を行うことにより、被写体を所定の比率内に収め続けることができる。このため、撮影者は、レリーズスイッチの操作に集中することが可能である。図4および図5では、被写体がモノである場合にフレームアウトを防止する処理と、被写体が人物である場合に被写体の大きさを所定の比率に収める処理について説明を行ったが、追尾する被写体とズーム動作開始の判定処理とはいずれの組み合わせであってもよい。 FIG. 5C shows an image obtained when the zoom magnification is zoomed out in the wide-angle direction by 1 / 1.5 times equivalent to the amount of change in the subject size changed from the state of FIG. 5A to FIG. 5B. A corner and a face tracking frame 500c at this time are shown. Thereafter, when the subject further approaches, the subject can be kept within a predetermined ratio by performing the zoom-out operation until the optical zoom position reaches the wide end. For this reason, the photographer can concentrate on the operation of the release switch. 4 and 5, the processing for preventing frame-out when the subject is a mono object and the processing for keeping the size of the subject within a predetermined ratio when the subject is a person have been described. The zoom operation start determination process may be any combination.
次に、図6を参照して、FAズーム機能の処理の概要について説明する。図6は、FAズーム機能の処理を示すフローチャートである。図6のFAズーム機能は、FAズーム制御部122の指令に基づいて行われる。 Next, an outline of processing of the FA zoom function will be described with reference to FIG. FIG. 6 is a flowchart showing processing of the FA zoom function. The FA zoom function of FIG. 6 is performed based on a command from the FA zoom control unit 122.
まずステップS100において、FAズーム制御部122は、FAズームを開始するか否かを判定する(FAズーム開始判定)。FAズーム開始判定において、FAズーム制御部122は、モードが手動探索モードまたは自動追尾モードのいずれかであるかのモード判定を行う。手動探索モードの場合、操作部117のFAズーム操作スイッチの状態に基づいて、FAズーム開始判定を行う。自動追尾モードの場合、被写体検出結果に基づいて、FAズーム開始判定を行う。モード判定については後述する。ステップS100のFAズーム開始判定にて、FAズームを開始すると判定された場合、ステップS101に進む。 First, in step S100, the FA zoom control unit 122 determines whether or not to start FA zoom (FA zoom start determination). In the FA zoom start determination, the FA zoom control unit 122 performs mode determination as to whether the mode is the manual search mode or the automatic tracking mode. In the manual search mode, the FA zoom start determination is performed based on the state of the FA zoom operation switch of the operation unit 117. In the automatic tracking mode, the FA zoom start determination is performed based on the subject detection result. The mode determination will be described later. If it is determined in step S100 that the FA zoom is started, the process proceeds to step S101.
ステップS101において、FAズーム制御部122は、ズームアウト開始時の光学ズーム位置および電子ズーム位置(ズーム戻り位置)を記憶する。またFAズーム制御部122は、所定の駆動量をCZ制御部119または電子ズーム制御部120に指令してFAズームアウト動作を行う。FAズームアウト動作が終了すると、ステップS102に進む。 In step S101, the FA zoom control unit 122 stores the optical zoom position and the electronic zoom position (zoom return position) at the start of zoom-out. The FA zoom control unit 122 instructs the CZ control unit 119 or the electronic zoom control unit 120 with a predetermined drive amount to perform the FA zoom-out operation. When the FA zoom-out operation ends, the process proceeds to step S102.
ステップS102において、FAズーム枠制御部121は、記憶されたズーム戻り位置を示すFAズーム枠300(指標)を表示部109に表示する(FAズーム枠表示)。撮影者は、FAズーム枠300を目安として、撮影したい被写体を画面中央付近に収めるようにフレーミング操作を行う。このとき、FAズーム枠300内に被写体が収まらない場合や被写体が小さすぎる場合、ステップS103に進む。ステップS103において、FAズーム枠300を適切な大きさに変更するとともに、記憶したズーム位置の情報を更新する(ズーム戻り位置変更)。 In step S102, the FA zoom frame control unit 121 displays the FA zoom frame 300 (index) indicating the stored zoom return position on the display unit 109 (FA zoom frame display). Using the FA zoom frame 300 as a guide, the photographer performs a framing operation so that the subject to be photographed is placed near the center of the screen. At this time, if the subject does not fit within the FA zoom frame 300 or if the subject is too small, the process proceeds to step S103. In step S103, the FA zoom frame 300 is changed to an appropriate size, and the stored zoom position information is updated (zoom return position change).
続いてステップS104において、FAズーム制御部122は、FAズームを終了するか否かを判定する(FAズーム終了判定)。FAズーム終了判定では、FAズーム開始時のモードが手動探索モードの場合、操作部117のFAズーム操作スイッチの状態に基づいてFAズーム終了を判定する。また、FAズーム開始時のモードが自動追尾モードの場合、被写体検出結果に基づいてFAズーム終了の判定を行う。ステップS104のFAズーム終了判定にてFAズームの終了判定がなされると、ステップS105に進む。 Subsequently, in step S104, the FA zoom control unit 122 determines whether or not to end the FA zoom (FA zoom end determination). In the FA zoom end determination, when the FA zoom start mode is the manual search mode, the FA zoom end is determined based on the state of the FA zoom operation switch of the operation unit 117. If the FA zoom start mode is the automatic tracking mode, the end of the FA zoom is determined based on the subject detection result. If the FA zoom end determination is made in the FA zoom end determination in step S104, the process proceeds to step S105.
ステップS105において、FAズーム制御部122は、記憶した光学ズーム位置および電子ズーム位置(ズーム位置)まで駆動を行うようにCZ制御部119または電子ズーム制御部120に指令してFAズームイン動作を行う。これにより、FAズーム機能は終了する。 In step S105, the FA zoom control unit 122 instructs the CZ control unit 119 or the electronic zoom control unit 120 to drive to the stored optical zoom position and electronic zoom position (zoom position), and performs the FA zoom-in operation. Thereby, the FA zoom function ends.
続いて、図7A乃至図10を参照して、図6に示されるFAズーム機能の各処理について詳述する。図7Aは、図6のFAズーム開始判定(ステップS100)のフローチャートである。ステップS200において、FAズーム制御部122は、操作部117のFAズーム操作スイッチが押下されたか否かを判定する。FAズーム操作スイッチが押下されると、ステップS201において、FAズーム制御部122はFAズーム操作スイッチの押下時間を測定する。 Next, each process of the FA zoom function shown in FIG. 6 will be described in detail with reference to FIGS. 7A to 10. FIG. 7A is a flowchart of the FA zoom start determination (step S100) of FIG. In step S200, the FA zoom control unit 122 determines whether or not the FA zoom operation switch of the operation unit 117 is pressed. When the FA zoom operation switch is pressed, in step S201, the FA zoom control unit 122 measures the pressing time of the FA zoom operation switch.
ステップS201において、FAズーム制御部122は、FAズーム操作スイッチの押下された後、FAズーム操作スイッチが所定の時間内に開放されるか否かを判定する。すなわちFAズーム制御部122は、FAズーム操作スイッチの長押しまたは短押しの判定を行い、押下時間によって実行するモードを変更する。FAズーム操作スイッチの長押し(第2の操作)時には、ステップS202に進み、手動探索モードを選択し、選択されたモードをメモリ118に記憶する。一方、FAズーム操作スイッチの短押し(第1の操作)時には、ステップS203に進み、自動追尾モードを選択し、選択されたモードをメモリ118に記憶する。 In step S201, the FA zoom control unit 122 determines whether or not the FA zoom operation switch is released within a predetermined time after the FA zoom operation switch is pressed. That is, the FA zoom control unit 122 determines whether the FA zoom operation switch is long-pressed or short-pressed, and changes the mode to be executed depending on the pressing time. When the FA zoom operation switch is pressed long (second operation), the process proceeds to step S202, the manual search mode is selected, and the selected mode is stored in the memory 118. On the other hand, when the FA zoom operation switch is short-pressed (first operation), the process proceeds to step S203, the automatic tracking mode is selected, and the selected mode is stored in the memory 118.
手動探索モードの場合、FAズーム操作スイッチの押下開始からFAズーム操作スイッチの押下が継続したまま所定時間を経過した時点、すなわち、長押しであることが確定した時点でステップS208に進み、FAズーム開始と判定される。一方、自動追尾モードの場合、ステップS204に進み、追尾する被写体指定処理を行う。すなわちFAズーム制御部122(システム制御部114)は、操作部117(FAズーム操作スイッチ)の押下時間(操作時間)が第1の時間よりも長い場合、モードを第2のモード(手動探索モード)に設定する。一方、FAズーム制御部122は、操作部117の押下時間が第1の時間未満である場合、モードを第1のモード(自動追尾モード)に設定する。 In the manual search mode, the process proceeds to step S208 when a predetermined time elapses after the FA zoom operation switch is continuously pressed since the start of pressing the FA zoom operation switch, that is, when it is determined that the long press is performed. It is determined to start. On the other hand, in the case of the automatic tracking mode, the process proceeds to step S204 to perform subject specification processing for tracking. That is, when the pressing time (operation time) of the operation unit 117 (FA zoom operation switch) is longer than the first time, the FA zoom control unit 122 (system control unit 114) sets the mode to the second mode (manual search mode). ). On the other hand, when the pressing time of the operation unit 117 is less than the first time, the FA zoom control unit 122 sets the mode to the first mode (automatic tracking mode).
なお、本実施例では、スイッチの押下時間によって手動探索モードか自動追尾モードかを判定しているが、モード判定の方法はズーム操作スイッチを用いたものであればこれに限定されない。例えば、ズーム操作スイッチが一度押下されてから所定時間内に再度押下された場合に、いずれかのモードと判定するようにしても良い。また、ズーム操作スイッチと他の部材との同時操作によって、いずれかのモードと判定するようにしても良い。また、押下するタイプのズーム操作スイッチに限らず、代わりに回転可能なリング部材などを用いてFAズームの操作を指示するようにしても良い。 In the present embodiment, the manual search mode or the automatic tracking mode is determined based on the switch pressing time, but the mode determination method is not limited to this as long as the zoom operation switch is used. For example, when the zoom operation switch is pressed once and then pressed again within a predetermined time, any mode may be determined. Moreover, you may make it determine in any mode by simultaneous operation with a zoom operation switch and another member. In addition, the zoom operation switch is not limited to a pressing type, but instead, a rotatable ring member or the like may be used to instruct the FA zoom operation.
ここで、図8A乃至図8Cを参照して、図7AのステップS204(被写体指定処理)について説明する。図8Aは、操作部117を構成する部材であるタッチパネルを用いて表示部109に表示された被写体をタッチして指定する操作例のフローチャートを示している。ステップS300において、FAズーム制御部122は、タッチパネルが押下されたか否かを判定する。タッチパネルが押下された場合にはステップS301に進み、FAズーム制御部122はタッチされた位置(タッチ位置)を取得する。続いてステップS302において、FAズーム制御部122は、タッチ位置を被写体検出部123に通知し、被写体検出部123はタッチ位置付近で顔検出を行う。タッチ位置付近に顔を検出した場合、主被写体は人物であると判定し、ステップS303に進む。ステップS303において、FAズーム制御部122は、自動追尾の対象である人物の顔情報をメモリ118に記憶する。具体的な顔情報としては、被写体指定時の顔のサイズや顔の検出位置、顔の向きなどがある。また、顔認証機能を有するカメラにおいては、認証IDなども記憶する。 Here, with reference to FIGS. 8A to 8C, step S204 (subject designation processing) in FIG. 7A will be described. FIG. 8A shows a flowchart of an operation example in which a subject displayed on the display unit 109 is touched and specified using a touch panel which is a member constituting the operation unit 117. In step S300, the FA zoom control unit 122 determines whether the touch panel has been pressed. When the touch panel is pressed, the process proceeds to step S301, and the FA zoom control unit 122 acquires a touched position (touch position). Subsequently, in step S302, the FA zoom control unit 122 notifies the subject detection unit 123 of the touch position, and the subject detection unit 123 performs face detection near the touch position. If a face is detected near the touch position, it is determined that the main subject is a person, and the process proceeds to step S303. In step S <b> 303, the FA zoom control unit 122 stores the face information of the person who is the target of automatic tracking in the memory 118. Specific face information includes the face size, face detection position, face orientation, etc. when the subject is designated. Further, in a camera having a face authentication function, an authentication ID is also stored.
一方、ステップS302にてタッチ位置付近に顔を検出しなかった場合、主被写体は人物以外のモノであると判定し、ステップS304に進む。ステップS304において、FAズーム制御部122は、タッチ位置付近の特徴色を自動追尾対象の色情報としてメモリ118に記憶する。具体的な色情報としては、被写体指定時の特徴色の色や輝度、色差の値や同一色領域のサイズ、同一色領域の重心位置などがある。顔情報および色情報を、以下の説明ではまとめて被写体情報(被写体サイズ、被写体検出位置など)という。 On the other hand, if no face is detected in the vicinity of the touch position in step S302, it is determined that the main subject is something other than a person, and the process proceeds to step S304. In step S304, the FA zoom control unit 122 stores the characteristic color in the vicinity of the touch position in the memory 118 as color information for the automatic tracking target. Specific color information includes the color and brightness of the characteristic color when the subject is designated, the value of the color difference, the size of the same color area, the center of gravity position of the same color area, and the like. The face information and color information are collectively referred to as subject information (subject size, subject detection position, etc.) in the following description.
ステップS303またはステップS304にて被写体情報が記憶されると、ステップS305に進む。ステップS305において、FAズーム制御部122は、被写体検出位置を中心に被写体サイズに対応した大きさの被写体追尾枠(モノ追尾枠400または顔追尾枠500)を表示部109に表示する。これにより、被写体指定処理は終了する。 When the subject information is stored in step S303 or step S304, the process proceeds to step S305. In step S305, the FA zoom control unit 122 displays a subject tracking frame (mono tracking frame 400 or face tracking frame 500) having a size corresponding to the subject size with the subject detection position as the center on the display unit 109. Thus, the subject designation process ends.
このようにシステム制御部114(被写体検出部123)は、モードが自動追尾モード(第1のモード)である場合、表示部109において撮影者により指定された位置または指定された位置の近傍で被写体を検出する。そしてシステム制御部114(FAズーム制御部122)は被写体追尾枠を表示部109に表示する。図8Aのフローチャートによれば、撮影者が追尾したい被写体を直感的な指定方法で簡単に指定することが可能となる。 As described above, when the mode is the automatic tracking mode (first mode), the system control unit 114 (subject detection unit 123) performs the subject detection at the position designated by the photographer on the display unit 109 or in the vicinity of the designated position. Is detected. Then, the system control unit 114 (FA zoom control unit 122) displays the subject tracking frame on the display unit 109. According to the flowchart of FIG. 8A, the photographer can easily specify the subject to be tracked by an intuitive specification method.
図8Bは、操作部117を構成する部材であるFAズーム操作スイッチとは別のスイッチ(被写体指定用スイッチ)によって被写体を指定する操作例のフローチャートを示している。まずステップS306において、FAズーム制御部122は、表示部109の画面中央付近に被写体指定の目安となる枠を表示する。撮影者は、この枠を目安として追尾したい被写体を中央付近に収めるようにカメラの向きを調整する。続いてステップS307において、FAズーム制御部122は、被写体指定用スイッチが押下されたか否かを判定する。被写体指定用スイッチが押下された場合、ステップS308に進む。 FIG. 8B shows a flowchart of an operation example in which a subject is designated by a switch (subject designation switch) different from the FA zoom operation switch which is a member constituting the operation unit 117. First, in step S <b> 306, the FA zoom control unit 122 displays a frame serving as a guide for specifying the subject near the center of the screen of the display unit 109. The photographer adjusts the direction of the camera so that the subject to be tracked is located near the center using this frame as a guide. Subsequently, in step S307, the FA zoom control unit 122 determines whether or not the subject specifying switch has been pressed. If the subject designation switch is pressed, the process proceeds to step S308.
ステップS308において、被写体検出部123は、画面中央付近で顔検出を行う。画面中央付近に顔を検出した場合、主被写体は人物であると判定し、ステップS309に進む。一方、画面中央付近に顔を検出しなかった場合、主被写体は人物以外のモノであると判定し、ステップS310に進む。ステップS309またはステップS310にて被写体情報を記憶すると、ステップS311に進む。ステップS311において、被写体追尾枠(モノ追尾枠400または顔追尾枠500)を表示され、被写体指定処理は終了となる。ステップS309、S310、S311の基本的な処理は、図8AのステップS303、S304、S305とそれぞれ同様である。 In step S308, the subject detection unit 123 performs face detection near the center of the screen. If 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 step S309. On the other hand, if no face is detected near the center of the screen, the main subject is determined to be something other than a person, and the process proceeds to step S310. When the subject information is stored in step S309 or step S310, the process proceeds to step S311. In step S311, the subject tracking frame (mono tracking frame 400 or face tracking frame 500) is displayed, and the subject designation process is terminated. The basic processes in steps S309, S310, and S311 are the same as steps S303, S304, and S305 in FIG. 8A, respectively.
このようにシステム制御部114(被写体検出部123)は、モードが自動追尾モード(第1のモード)である場合、表示部109の画面中央位置または画面中央位置の近傍で被写体を検出する。そしてシステム制御部114(FAズーム制御部122)は、被写体の位置を示す被写体追尾枠を表示部109に表示する。図8Bのフローチャートによれば、タッチパネルなどの操作部材を搭載しないカメラにおいても被写体を簡単に指定することが可能となる。 As described above, when the mode is the automatic tracking mode (first mode), the system control unit 114 (subject detection unit 123) detects the subject at the screen center position of the display unit 109 or in the vicinity of the screen center position. The system control unit 114 (FA zoom control unit 122) displays a subject tracking frame indicating the position of the subject on the display unit 109. According to the flowchart of FIG. 8B, it is possible to easily specify a subject even in a camera not equipped with an operation member such as a touch panel.
図8Cは、操作部117を構成する部材であるFAズーム操作スイッチが短押しされた時点で検出された顔の中から追尾する被写体を自動的に選択する例のフローチャートを示している。まずステップS312において、被写体検出部123は、画面全体で顔検出を行う。画面全体で一人でも顔を検出した場合には主被写体は人物であると判定し、ステップS313に進む。ステップS313において、被写体検出部123は、検出した顔が一人の場合、その顔を主顔とする。被写体検出部123は、検出した顔が複数の場合、その顔の中から追尾する被写体とする主顔を選択する。主顔選択の判定基準としては、例えば、顔検出位置がより画面中央付近に位置する顔である。また、同程度の位置に複数の顔がある場合、サイズのより大きい顔を主顔として選択する。また、顔認証機能を有するカメラにおいては、認証登録されている顔がある場合、その顔を優先して主顔とする。そしてステップS314において、FAズーム制御部122は、選択された主顔の顔情報をメモリ118に記憶する。ステップS314にて顔情報を記憶すると、ステップS315に進み、顔追尾枠500を表示する。 FIG. 8C shows a flowchart of an example in which the subject to be tracked is automatically selected from the faces detected when the FA zoom operation switch which is a member constituting the operation unit 117 is pressed for a short time. First, in step S312, the subject detection unit 123 performs face detection on the entire screen. If even one person is detected on the entire screen, the main subject is determined to be a person, and the process proceeds to step S313. In step S313, if the detected face is one person, the subject detection unit 123 sets that face as the main face. When there are a plurality of detected faces, the subject detection unit 123 selects a main face as a subject to be tracked from the faces. As a determination criterion for main face selection, for example, a face whose face detection position is located closer to the center of the screen is used. If there are a plurality of faces at the same position, a larger face is selected as the main face. In addition, in a camera having a face authentication function, if there is a face registered for authentication, that face is given priority as the main face. In step S314, the FA zoom control unit 122 stores the face information of the selected main face in the memory 118. When the face information is stored in step S314, the process proceeds to step S315, and the face tracking frame 500 is displayed.
続いてステップS316において、複数の顔から自動で選択された主顔が撮影者の意図しない顔である場合、撮影者が主顔を変更することが可能である。このとき、操作部117のスイッチ(FAズーム操作スイッチでも他のスイッチでもよい)を押下すると、検出された顔の中から主顔として選択されなかった顔に主顔を変更し、顔追尾枠500を更新する。主顔が変更された場合、再度、ステップS314に進み、記憶する顔情報を更新する。また、ステップS315にて顔追尾枠500を新たに選択された主顔のサイズおよび検出位置に変更する。 Subsequently, in step S316, if the main face automatically selected from the plurality of faces is a face not intended by the photographer, the photographer can change the main face. At this time, when a switch on the operation unit 117 (which may be an FA zoom operation switch or another switch) is pressed, the main face is changed to a face not selected as the main face from the detected faces, and the face tracking frame 500 is changed. Update. When the main face is changed, the process proceeds to step S314 again, and the stored face information is updated. In step S315, the face tracking frame 500 is changed to the size and detection position of the newly selected main face.
一方、ステップS312にて画面全体で顔が検出されない場合、主被写体は人物以外のモノであると判定し、ステップS317に進む。ステップS317において、FAズーム制御部122は、画面中央付近の特徴色を自動追尾対象の色情報として、メモリ118に記憶する。ステップS317にて色情報を記憶すると、ステップS318に進み、モノ追尾枠400を表示する。これにより、被写体指定処理は終了する。ステップS314、S317、S315(S318)における基本的な処理は、図8AのステップS303、S304、S305とそれぞれ同様である。 On the other hand, if no face is detected on the entire screen in step S312, it is determined that the main subject is something other than a person, and the process proceeds to step S317. In step S317, the FA zoom control unit 122 stores the characteristic color near the center of the screen in the memory 118 as the color information for the automatic tracking target. When the color information is stored in step S317, the process proceeds to step S318, and the mono tracking frame 400 is displayed. Thus, the subject designation process ends. Basic processes in steps S314, S317, and S315 (S318) are the same as steps S303, S304, and S305 in FIG. 8A, respectively.
このようにシステム制御部114(被写体検出部123)は、モードが自動追尾モード(第1のモード)である場合、表示部109の画面全体において顔検出を行う。システム制御部114(FAズーム制御部122)は、複数の顔が検出された場合、複数の顔のなかから被写体として第1の顔の位置を示す被写体追尾枠を表示部109に表示する。またシステム制御部114(FAズーム制御部122)は、被写体として第1の顔が第2の顔に変更された場合、第2の顔の位置を示す被写体追尾枠を表示部109に表示する。図8Cのフローチャートによれば、より少ない操作回数で被写体を簡単に指定することが可能となる。 As described above, the system control unit 114 (subject detection unit 123) performs face detection on the entire screen of the display unit 109 when the mode is the automatic tracking mode (first mode). When a plurality of faces are detected, the system control unit 114 (FA zoom control unit 122) displays a subject tracking frame indicating the position of the first face as a subject on the display unit 109 from among the plurality of faces. In addition, when the first face is changed to the second face as the subject, the system control unit 114 (FA zoom control unit 122) displays a subject tracking frame indicating the position of the second face on the display unit 109. According to the flowchart of FIG. 8C, the subject can be easily specified with a smaller number of operations.
図8A乃至図8Cのいずれかに示される被写体指定処理を終了すると、図7AのステップS205に進む。ステップS205〜S207において、FAズーム制御部122は、被写体指定時の基準被写体情報および周期的に検出する被写体情報に基づいて、FAズームを開始するか否かを判定する。この判定は、FAズーム開始の条件を満たすまで所定の制御周期で繰り返される。 When the subject designation process shown in any of FIGS. 8A to 8C is completed, the process proceeds to step S205 in FIG. 7A. In steps S205 to S207, the FA zoom control unit 122 determines whether or not to start FA zoom based on the reference subject information at the time of subject designation and the subject information periodically detected. This determination is repeated at a predetermined control cycle until the condition for starting FA zoom is satisfied.
ステップS205において、被写体検出部123は、画面全体の中から基準被写体情報と同じ特徴を持つ被写体、すなわち、基準被写体が人物である場合には顔が、モノである場合には同一の特徴色が検出されるか否かを判定する。追尾する被写体が検出されなかった場合、ステップS209に進む。一方、追尾する被写体が検出された場合、ステップS206に進む。ステップS206において、追尾する被写体の被写体追尾枠が図4(A)に示されるズームアウト領域ZO(画像内の第1の領域外)に含まれるか否かを判定する。ステップS206にて追尾枠がズームアウト領域ZOに含まれる場合、すなわち、被写体が画面周辺付近にありフレームアウトする可能性が大きい場合、ステップS208に進み、FAズーム(ズームアウト動作)が開始する。 In step S205, the subject detection unit 123 displays a subject having the same characteristics as the reference subject information from the entire screen, that is, the face is the same when the reference subject is a person, and the same characteristic color when the subject is a mono object. It is determined whether or not it is detected. If the subject to be tracked is not detected, the process proceeds to step S209. On the other hand, when the subject to be tracked is detected, the process proceeds to step S206. In step S206, it is determined whether or not the subject tracking frame of the subject to be tracked is included in the zoom-out area ZO (outside the first area in the image) shown in FIG. If the tracking frame is included in the zoom-out area ZO in step S206, that is, if there is a high possibility that the subject is near the periphery of the screen and the frame is out, the process proceeds to step S208, and FA zoom (zoom-out operation) is started.
一方、ステップS206にて被写体追尾枠がズームアウト領域ZOに含まれていない、すなわち、画面中央付近で被写体を捉えられている場合、ステップS207に進む。続いてステップS207において、基準被写体情報の被写体サイズとステップS205にて検出された被写体サイズとの比較を行う。ステップS205にて検出された被写体のサイズが基準被写体のサイズに対して所定倍以上である(被写体のサイズが所定倍以上大きく変化した)場合、すなわち被写体が画面に占める比率が所定値以上である場合、ステップS208に進み、FAズームが開始する。ステップS208にてFAズーム開始の判定がなされると、図6のステップS101に進み、ズームアウト動作が開始する。 On the other hand, if the subject tracking frame is not included in the zoom-out area ZO in step S206, that is, if the subject is captured near the center of the screen, the process proceeds to step S207. In step S207, the subject size in the reference subject information is compared with the subject size detected in step S205. When the size of the subject detected in step S205 is equal to or larger than a predetermined size with respect to the size of the reference subject (the size of the subject has greatly changed by a predetermined size or more), that is, the ratio of the subject to the screen is equal to or larger than the predetermined value. If so, the process proceeds to step S208, and FA zooming starts. If it is determined in step S208 that the FA zoom is started, the process proceeds to step S101 in FIG. 6 to start the zoom-out operation.
一方、ステップS205で被写体が検出されなかった場合、FAズーム制御部122は、ステップS209で所定時間が経過したか否かを判定する。所定時間が経過していなければ、FAズーム制御部122は、ステップS210でFAズーム操作スイッチが押下されたか否かを判定する。また、ステップS205で検出した被写体が画面中央付近でかつ被写体サイズが基準の被写体サイズに対して所定倍未満である場合(ステップS207で「no」)も、ステップS210でFAズーム操作スイッチの押下を判定する。ステップS210でFAズーム操作スイッチが押下されなければステップS205の被写体検出処理に戻り、ステップS205、S209、S210のループを繰り返す。そして、ステップS209で被写体が検出されない状態で所定時間が経過した場合、ステップS204に進み、再度被写体指定処理を行う。ステップS210でFAズーム操作スイッチが押下された場合、ステップS211に進む。 On the other hand, if no subject is detected in step S205, the FA zoom control unit 122 determines whether a predetermined time has elapsed in step S209. If the predetermined time has not elapsed, the FA zoom control unit 122 determines whether or not the FA zoom operation switch has been pressed in step S210. Also, when the subject detected in step S205 is near the center of the screen and the subject size is less than a predetermined multiple of the reference subject size (“no” in step S207), the FA zoom operation switch is pressed in step S210. judge. If the FA zoom operation switch is not pressed in step S210, the process returns to the subject detection process in step S205, and the loop of steps S205, S209, and S210 is repeated. If a predetermined time has elapsed in the state where no subject is detected in step S209, the process proceeds to step S204, and subject designation processing is performed again. If the FA zoom operation switch is pressed in step S210, the process proceeds to step S211.
ステップS211では、FAズーム操作スイッチが押下されてから所定時間内に開放されたか否かを判定する。所定時間内にFAズーム操作スイッチが開放された場合、自動追尾モードがキャンセルされたとして、FAズーム機能を終了する。一方、所定時間内にスイッチが開放されない場合、ステップS202に進み、手動探索モードが記憶される。すなわち、本実施形態では、自動追尾モード中にFAズーム操作スイッチが所定時間以上押下された場合、FAモードを手動探索モードに変更する。 In step S211, it is determined whether or not the FA zoom operation switch has been released within a predetermined time after being pressed. If the FA zoom operation switch is released within a predetermined time, the automatic zoom mode is canceled and the FA zoom function is terminated. On the other hand, if the switch is not opened within the predetermined time, the process proceeds to step S202, and the manual search mode is stored. That is, in this embodiment, when the FA zoom operation switch is pressed for a predetermined time or more during the automatic tracking mode, the FA mode is changed to the manual search mode.
図9Aは、図6のステップS101(FAズームアウト動作)のフローチャートである。まずステップS400において、FAズーム制御部122は、撮影準備状態での光学ズーム位置をCZ制御部119から取得し、電子ズーム位置を電子ズーム制御部120から取得する。またFAズーム制御部122は、光学ズーム位置および電子ズーム位置のデータをメモリ118に記憶する。光学ズーム位置は、光学ズーム機能によって変更可能なズーム倍率に相当するズームレンズの位置を表す。また、電子ズーム位置は、電子ズーム機能によって変更可能な画像拡大および縮小の倍率に相当する制御位置を表す。手動探索モードの場合、ここで記憶したズーム位置がズーム戻り位置(第2のズーム位置)に設定される。 FIG. 9A is a flowchart of step S101 (FA zoom-out operation) in FIG. First, in step S400, the FA zoom control unit 122 acquires the optical zoom position in the shooting preparation state from the CZ control unit 119, and acquires the electronic zoom position from the electronic zoom control unit 120. Further, the FA zoom control unit 122 stores the data of the optical zoom position and the electronic zoom position in the memory 118. The optical zoom position represents the position of the zoom lens corresponding to the zoom magnification that can be changed by the optical zoom function. The electronic zoom position represents a control position corresponding to the magnification of image enlargement and reduction that can be changed by the electronic zoom function. In the manual search mode, the zoom position stored here is set as the zoom return position (second zoom position).
続いてステップS401において、FAズーム制御部122は、メモリ118に記憶されたズームアウト駆動量を取得する。自動追尾モードのズームアウト駆動量は、検出された被写体のサイズに応じて設定される。具体的には、被写体のサイズが小さいほどズームアウト駆動量は小さく設定される。なお、被写体検出可能な最小サイズを考慮して、被写体のサイズが所定のサイズより小さい場合は、ズームアウトを行わないようにする。また、手動探索モードのズームアウト駆動量は、撮影者が設定メニューからの操作によって変更可能にしてもよい。 Subsequently, in step S <b> 401, the FA zoom control unit 122 acquires the zoom-out drive amount stored in the memory 118. The zoom-out drive amount in the automatic tracking mode is set according to the detected subject size. Specifically, the zoom-out drive amount is set smaller as the subject size is smaller. In consideration of the minimum size that can be detected by the subject, if the size of the subject is smaller than a predetermined size, the zoom-out is not performed. Further, the zoom-out drive amount in the manual search mode may be changed by the photographer by an operation from the setting menu.
そしてステップS402において、FAズーム制御部122は、撮影準備状態でのズーム状態が電子ズーム状態であるか否かを判定する。一般的なズーム操作では、操作部117のズーム操作スイッチが押下されると、光学ズーム位置がワイド端からテレ端の間である場合、CZ制御部119により光学ズームを駆動させる。光学ズーム位置がテレ端であって、さらに望遠方向への操作指示がなされた場合、電子ズーム制御部120が電子ズームを駆動させることで超望遠撮影が可能となる。ズーム操作スイッチの操作によるズーム動作とFAズーム動作との整合性を取るため、FAズーム動作においても、撮影準備状態でのズーム状態が電子ズーム状態の場合には電子ズームを先に駆動させる。すなわち、メモリ118に記憶した時点のズーム位置が優先すべきズーム状態でのズーム領域内にあるか否かが判定される。本実施例では電子ズームが優先されるため、ステップS402では、ズーム位置が電子ズーム領域にあるか否かが判定される。FAズーム開始時のズーム状態が電子ズーム状態である場合、ステップS403に進む。 In step S402, the FA zoom control unit 122 determines whether the zoom state in the shooting preparation state is an electronic zoom state. In a general zoom operation, when the zoom operation switch of the operation unit 117 is pressed, if the optical zoom position is between the wide end and the tele end, the CZ control unit 119 drives the optical zoom. When the optical zoom position is at the telephoto end and an operation instruction is further given in the telephoto direction, the electronic zoom control unit 120 drives the electronic zoom to enable super telephoto shooting. In order to maintain consistency between the zoom operation by the operation of the zoom operation switch and the FA zoom operation, even in the FA zoom operation, when the zoom state in the shooting preparation state is the electronic zoom state, the electronic zoom is driven first. That is, it is determined whether or not the zoom position stored in the memory 118 is within the zoom area in the zoom state to be prioritized. In this embodiment, since electronic zoom is prioritized, it is determined in step S402 whether or not the zoom position is in the electronic zoom area. If the zoom state at the start of FA zoom is the electronic zoom state, the process proceeds to step S403.
ステップS403において、FAズーム制御部122は、ステップS400にて取得された電子ズーム位置とステップS401にて取得されたズームアウト駆動量に基づいて電子ズームのズームアウト位置を算出し、電子ズーム制御部120に設定する。続いてステップS404において、FAズーム制御部122は、電子ズーム制御部120に対して、ステップS403にて設定された電子ズームのズームアウト位置まで変倍処理を行うように指示する。そして電子ズーム制御部120は、電子ズームによるズームアウト動作を行う。ステップS402にて撮影準備状態でのズーム位置が光学ズーム領域にあると判定された場合、または、ステップS404にて電子ズームのズームアウト動作が行われた後、ステップS405に進む。 In step S403, the FA zoom control unit 122 calculates the zoom-out position of the electronic zoom based on the electronic zoom position acquired in step S400 and the zoom-out drive amount acquired in step S401, and the electronic zoom control unit. Set to 120. Subsequently, in step S404, the FA zoom control unit 122 instructs the electronic zoom control unit 120 to perform the scaling process up to the zoom-out position of the electronic zoom set in step S403. The electronic zoom control unit 120 performs a zoom-out operation by electronic zoom. When it is determined in step S402 that the zoom position in the shooting preparation state is in the optical zoom region, or after an electronic zoom zoom-out operation is performed in step S404, the process proceeds to step S405.
ステップS405において、FAズーム制御部122は、さらに光学ズームによるズームアウトが必要であるか否かを判定する。すなわち、電子ズームだけでは、設定したズームアウト駆動量のズーム駆動に十分でない場合、残りのズームアウト駆動量を光学ズームで補う必要がある。光学ズームによるズームアウトが必要と判定された場合、ステップS406に進む。ステップS406において、FAズーム制御部122は、光学ズーム位置およびズームアウト駆動量に基づいて光学ズームのズームアウト位置を算出し、CZ制御部119に設定する。 In step S405, the FA zoom control unit 122 determines whether or not zoom-out by optical zoom is further necessary. That is, if the electronic zoom alone is not sufficient for the zoom drive of the set zoom-out drive amount, it is necessary to supplement the remaining zoom-out drive amount with the optical zoom. If it is determined that zoom-out by optical zoom is necessary, the process proceeds to step S406. In step S406, the FA zoom control unit 122 calculates the zoom-out position of the optical zoom based on the optical zoom position and the zoom-out drive amount, and sets the calculated zoom-out position in the CZ control unit 119.
そしてステップS407において、FAズーム制御部122は、CZ制御部119に対して、S406で設定した光学ズームのズームアウト位置までズーム駆動するように指示する。CZ制御部119は、ズームレンズ駆動部113を制御し、光学ズームのズームアウト動作を行う。FAズームアウト動作が終了すると、図6のステップS102に進む。ステップS102において、FAズーム制御部122は、ズーム戻り位置に対応するFAズーム枠300の表示をFAズーム枠制御部121に指示する。自動追尾モードの場合、現在の画角(移動前のズーム位置)に対して所定倍率望遠側のズーム位置をズーム戻り位置(第1のズーム位置)としてメモリ118に記憶するとともに、それに対応する画角をFAズーム枠として表示する。一方、手動探索モードの場合、図9AのステップS400で記憶したFAズームアウト開始時のズーム位置に対応する画角をFAズーム枠として表示する。FAズーム枠を表示すると、被写体探索状態としてステップS103のズーム戻り位置変更処理に進む。 In step S407, the FA zoom control unit 122 instructs the CZ control unit 119 to perform zoom driving to the zoom-out position of the optical zoom set in S406. The CZ control unit 119 controls the zoom lens driving unit 113 to perform a zoom-out operation of optical zoom. When the FA zoom-out operation ends, the process proceeds to step S102 in FIG. In step S102, the FA zoom control unit 122 instructs the FA zoom frame control unit 121 to display the FA zoom frame 300 corresponding to the zoom return position. In the automatic tracking mode, the zoom position at the predetermined magnification telephoto side with respect to the current angle of view (zoom position before movement) is stored in the memory 118 as the zoom return position (first zoom position), and the corresponding image is also displayed. Corners are displayed as FA zoom frames. On the other hand, in the manual search mode, the angle of view corresponding to the zoom position at the start of FA zoom-out stored in step S400 of FIG. 9A is displayed as the FA zoom frame. When the FA zoom frame is displayed, the process proceeds to zoom return position change processing in step S103 as the subject search state.
図10は、図6のステップS103(ズーム戻り位置変更)のフローチャートである。まずステップS500において、図7AのステップS202またはステップS203にて記憶されたモードが自動追尾モードまたは手動探索モードのいずれかであるかを判定する。記憶されたモードが手動探索モードである場合、ステップS506に進む。手動探索モード時には、撮影者がズームレバー操作を行うことにより、図9AのステップS400にて記憶されたズーム戻り位置およびFAズーム枠300を変更することが可能である。ステップS506では、操作部117のズームレバーが望遠方向または広角方向のいずれかに操作されたか否かを判定する。ズームレバー操作が行われた場合、ステップS507に進む。ズームレバー操作が行われなければ、本フローを終了する。 FIG. 10 is a flowchart of step S103 (change zoom return position) in FIG. First, in step S500, it is determined whether the mode stored in step S202 or step S203 in FIG. 7A is the automatic tracking mode or the manual search mode. If the stored mode is the manual search mode, the process proceeds to step S506. In the manual search mode, it is possible for the photographer to change the zoom return position and the FA zoom frame 300 stored in step S400 of FIG. 9A by operating the zoom lever. In step S506, it is determined whether or not the zoom lever of the operation unit 117 has been operated in either the telephoto direction or the wide-angle direction. If the zoom lever has been operated, the process proceeds to step S507. If the zoom lever operation is not performed, this flow ends.
ステップS507において、ズームアウト動作前に図9AのステップS400にてメモリ118に記憶されたズーム戻り位置をステップS506にて判定された操作方向に応じて望遠方向または広角方向に所定量だけ変更するように更新する。続いてステップS508において、ステップS507にて更新されたズーム戻り位置(第2のズーム位置)と対応する画角を示すようにFAズーム枠300の表示を更新し、ステップS509に進む。 In step S507, the zoom return position stored in the memory 118 in step S400 of FIG. 9A before the zoom-out operation is changed by a predetermined amount in the telephoto direction or the wide-angle direction according to the operation direction determined in step S506. Update to Subsequently, in step S508, the display of the FA zoom frame 300 is updated to indicate the angle of view corresponding to the zoom return position (second zoom position) updated in step S507, and the process proceeds to step S509.
ステップS509において、操作部117のズームレバーが開放されたか否かを判定する。ズームレバーが開放されない場合、ステップS507、S508の処理を繰り返す。一方、ズームレバーが開放された場合、本フローを終了する。 In step S509, it is determined whether or not the zoom lever of the operation unit 117 has been released. If the zoom lever is not released, the processes in steps S507 and S508 are repeated. On the other hand, when the zoom lever is released, this flow ends.
以上の処理により、ズームアウト動作後に被写体が近づいてくるなどして表示部109に表示される被写体の大きさが変わった場合でも、撮影者が簡単な操作でズーム戻り位置を変更可能であり、フレーミング操作がより簡単になる。 With the above processing, even when the size of the subject displayed on the display unit 109 changes due to the subject approaching after the zoom-out operation, the photographer can change the zoom return position with a simple operation. The framing operation becomes easier.
一方、ステップS500にてモードが自動追尾モードと判定された場合、ステップS501に進む。自動追尾モード時には、カメラが検出した被写体サイズに基づいて、ズームイン動作後に被写体が適切な画角に収まるようにズーム戻り位置およびFAズーム枠300を自動で変更することが可能である。ここで、「適切な画角」とは、画面全体に対して被写体が占める比率が図7AのステップS204にて指定された基準となる被写体サイズと同程度となる画角を保持することである。ステップS501では、基準被写体情報と対応する顔情報または色情報を持つ被写体が検出されるか否かを判定する。追尾する被写体が検出されなかった場合、ステップS510に進み、FAズーム制御部122は、被写体が検出されない状態で所定時間が経過したか否かを判定する。所定時間が経過していなければ本フローを終了し、所定時間が経過した場合は図7AのステップS204に進んで再度被写体指定処理を行う。 On the other hand, when the mode is determined to be the automatic tracking mode in step S500, the process proceeds to step S501. In the automatic tracking mode, the zoom return position and the FA zoom frame 300 can be automatically changed based on the subject size detected by the camera so that the subject falls within an appropriate angle of view after the zoom-in operation. Here, “appropriate angle of view” is to hold an angle of view in which the ratio of the subject to the entire screen is approximately the same as the reference subject size specified in step S204 of FIG. 7A. . In step S501, it is determined whether or not a subject having face information or color information corresponding to the reference subject information is detected. If the subject to be tracked is not detected, the process proceeds to step S510, and the FA zoom control unit 122 determines whether or not a predetermined time has passed without the subject being detected. If the predetermined time has not elapsed, the present flow is terminated. If the predetermined time has elapsed, the process proceeds to step S204 in FIG. 7A to perform subject designation processing again.
一方、追尾する被写体が検出された場合、ステップS502に進む。ステップS502では、画面全体に対して基準被写体サイズの比率と、FAズーム枠300すなわちズームイン動作後の画角に対してステップS501にて検出された被写体が占める比率とを比較する。比較の結果、二つの比率の差が所定範囲内である場合、本フローを終了する。一方、二つの比率の差が所定範囲を超える場合、ステップS503に進む。ステップS503では、メモリ118に記憶されたズーム戻り位置を更新する。具体的には、ステップS511にて検出された被写体サイズが基準の被写体サイズよりも大きい場合、広角方向に所定量だけズーム戻り位置を変更するように更新する。一方、被写体サイズが基準の被写体サイズよりも小さい場合、望遠方向に所定量だけズーム戻り位置を変更するように更新する。そして、ステップS504に進む。ステップS504では、ステップS503にて更新したズーム戻り位置(第1のズーム位置)と同じ画角を示すようにFAズーム枠300の表示を更新し、ステップS505に進む。 On the other hand, when the subject to be tracked is detected, the process proceeds to step S502. In step S502, the ratio of the reference subject size to the entire screen is compared with the ratio of the subject detected in step S501 to the FA zoom frame 300, that is, the angle of view after the zoom-in operation. As a result of the comparison, when the difference between the two ratios is within a predetermined range, this flow ends. On the other hand, if the difference between the two ratios exceeds the predetermined range, the process proceeds to step S503. In step S503, the zoom return position stored in the memory 118 is updated. Specifically, when the subject size detected in step S511 is larger than the reference subject size, the zoom return position is updated by a predetermined amount in the wide angle direction. On the other hand, when the subject size is smaller than the reference subject size, the zoom return position is updated by a predetermined amount in the telephoto direction. Then, the process proceeds to step S504. In step S504, the display of the FA zoom frame 300 is updated to show the same angle of view as the zoom return position (first zoom position) updated in step S503, and the process proceeds to step S505.
ステップS505において、画面全体に対する基準の被写体サイズの比率と、更新されたズーム戻り位置を示すFAズーム枠300に対する被写体の比率との差が所定範囲以内であるか否かを判定する。ズーム戻り位置を所定量だけ更新してもFAズーム枠300に対する被写体の比率と基準の被写体の比率との差が所定範囲を超える場合、さらにズーム戻り位置を変更するようにステップS503、S504、S505の処理を繰り返す。一方、FAズーム枠300に対する被写体と基準の被写体の比率との差が所定範囲内の場合、本フローを終了する。 In step S505, it is determined whether the difference between the ratio of the reference subject size to the entire screen and the ratio of the subject to the FA zoom frame 300 indicating the updated zoom return position is within a predetermined range. If the difference between the ratio of the subject to the FA zoom frame 300 and the ratio of the reference subject exceeds the predetermined range even when the zoom return position is updated by a predetermined amount, steps S503, S504, and S505 are further performed so as to change the zoom return position. Repeat the process. On the other hand, when the difference between the subject with respect to the FA zoom frame 300 and the ratio of the reference subject is within the predetermined range, this flow ends.
このように本実施例において、表示部109は、フレーミング支援ズームにおけるFAズームアウト動作を行い、ズームアウト開始時のズーム位置を示すFAズーム枠を表示する。そしてシステム制御部114(FAズーム制御部122)は、モードが手動探索モード(第2のモード)である場合、操作部117の操作に基づいてズーム戻り位置およびFAズーム枠の表示を変更する。一方、システム制御部114は、モードが自動追尾モード(第1のモード)である場合、被写体の検出結果に基づいて、ズームアウト動作を行い、所定倍率望遠側のズーム位置に対応するFAズーム枠を表示する。また、被写体の検出結果に基づいて、ズーム戻り位置およびFAズーム枠の表示を変更する。 As described above, in this embodiment, the display unit 109 performs the FA zoom-out operation in the framing assistance zoom, and displays the FA zoom frame indicating the zoom position at the start of zoom-out. When the mode is the manual search mode (second mode), the system control unit 114 (FA zoom control unit 122) changes the zoom return position and the FA zoom frame display based on the operation of the operation unit 117. On the other hand, when the mode is the automatic tracking mode (first mode), the system control unit 114 performs the zoom-out operation based on the detection result of the subject, and the FA zoom frame corresponding to the zoom position on the predetermined magnification telephoto side. Is displayed. Further, the zoom return position and the FA zoom frame display are changed based on the detection result of the subject.
以上の処理により、FAズームアウト動作後に被写体が近づいてくるなどして表示部109に表示される被写体の大きさが変わった場合でも、ズーム戻り位置を変更することが可能なため、フレーミング操作がより簡単になる。図10では、ズーム戻り位置を手動探索モード時にはズームレバーの手動操作によって変更し、自動追尾モード時には被写体サイズに応じて自動で変更する例を示したが、手動探索モード時の自動変更や自動追尾モード時の手動変更ができる構成としてもよい。 With the above processing, the zoom return position can be changed even when the size of the subject displayed on the display unit 109 changes due to the subject approaching after the FA zoom-out operation. It becomes easier. FIG. 10 shows an example in which the zoom return position is changed by manual operation of the zoom lever in the manual search mode, and is automatically changed according to the subject size in the automatic tracking mode. However, the automatic return or automatic tracking in the manual search mode is shown. It is good also as a structure which can be changed manually at the time of a mode.
図7Bは、図6のステップS104(FAズーム終了判定)のフローチャートである。まずステップS212において、FAズーム開始判定にてステップS202またはステップS203にて記憶されたモードが自動追尾モードまたは手動探索モードのいずれであるかを判定する。モードが手動探索モードである場合、ステップS216に進む。モードが手動探索モードである場合、被写体探索状態である間はステップS200又はS210でFAズーム操作スイッチの押下を検出してから押下状態が継続している。 FIG. 7B is a flowchart of step S104 (FA zoom end determination) in FIG. First, in step S212, it is determined in the FA zoom start determination whether the mode stored in step S202 or step S203 is the automatic tracking mode or the manual search mode. When the mode is the manual search mode, the process proceeds to step S216. When the mode is the manual search mode, the pressed state continues after detecting the pressing of the FA zoom operation switch in step S200 or S210 during the subject search state.
ステップS216において、FAズーム操作スイッチが長押し状態からスイッチが開放された否かを判定する。FAズーム操作スイッチが開放された(第3の操作)場合、ステップS213に進み、FAズームの終了が判定される。すなわちFAズーム制御部122は、手動探索モード(第2のモード)において、操作部117の押下が終了した場合、ズームイン動作を開始し、フレーミング支援ズームを終了する。一方、ステップS210でFAズーム操作スイッチが開放されていない場合、被写体探索状態が継続しているので、図10のステップS500に戻り、ズーム戻り位置変更のフローを繰り返す。 In step S216, it is determined whether or not the FA zoom operation switch is released from the long-pressed state. When the FA zoom operation switch is opened (third operation), the process proceeds to step S213, and the end of the FA zoom is determined. That is, the FA zoom control unit 122 starts a zoom-in operation when the pressing of the operation unit 117 is completed in the manual search mode (second mode), and ends the framing support zoom. On the other hand, if the FA zoom operation switch is not opened in step S210, the subject search state continues, so the process returns to step S500 in FIG. 10 to repeat the zoom return position change flow.
一方、ステップS212にてモードが自動追尾モードである場合、ステップS213に進む。ステップS213において、ステップS204にて指定された基準被写体情報と同じ特徴を持つ被写体、すなわち基準被写体が人物である場合には顔、モノである場合には対応する特徴色が検出されるか否かを判定する。追尾する被写体が検出されなかった場合、ステップS217に進む。一方、追尾する被写体が検出された場合、ステップS214に進む。ステップS214において、追尾する被写体の被写体追尾枠が図4(B)に示されるズームイン領域ZI(画像内の第2の領域)に包含されているか否かを判定する。ステップS214にて追尾枠(被写体)がズームイン領域ZIに包含されている、すなわち、画面中央付近でかつズーム戻り位置の画角内の被写体サイズとなるように被写体を捉えられている場合、ステップS215に進む。ステップS215において、FAズームの終了判定がなされると、図6のステップS105に進み、ズームイン動作が開始する。 On the other hand, when the mode is the automatic tracking mode in step S212, the process proceeds to step S213. Whether or not a subject having the same characteristics as the reference subject information specified in step S204 is detected in step S213, that is, a face is detected when the reference subject is a person, and a corresponding feature color is detected when the subject is a thing. Determine. If the subject to be tracked is not detected, the process proceeds to step S217. On the other hand, when the subject to be tracked is detected, the process proceeds to step S214. In step S214, it is determined whether or not the subject tracking frame of the subject to be tracked is included in the zoom-in area ZI (second area in the image) shown in FIG. If the tracking frame (subject) is included in the zoom-in area ZI in step S214, that is, if the subject is captured so that the subject size is near the center of the screen and within the angle of view at the zoom return position, step S215 is performed. Proceed to When it is determined in step S215 that the FA zoom has ended, the process proceeds to step S105 in FIG. 6 to start a zoom-in operation.
一方、ステップS213で被写体が検出されなかった場合、FAズーム制御部122は、ステップS217で所定時間が経過したか否かを判定する。所定時間が経過していなければ、FAズーム制御部122は、ステップS218でFAズーム操作スイッチが押下されたか否かを判定する。また、ステップS213で検出した被写体の被写体追尾枠がズームイン領域ZIに包含されていない場合(ステップS214でno)も、ステップS218でFAズーム操作スイッチの押下を判定する。ステップS218でFAズーム操作スイッチが押下されなければ図10のステップS500に戻り、ズーム戻り位置変更処理を繰り返す。そして、ステップS217で被写体が検出されない状態で所定時間が経過した場合、図7AのステップS204に進み、再度被写体指定処理を行う。ステップS218でFAズーム操作スイッチが押下された場合は、ステップS219に進む。 On the other hand, if no subject is detected in step S213, the FA zoom control unit 122 determines whether a predetermined time has elapsed in step S217. If the predetermined time has not elapsed, the FA zoom control unit 122 determines whether or not the FA zoom operation switch has been pressed in step S218. Even when the subject tracking frame of the subject detected in step S213 is not included in the zoom-in area ZI (no in step S214), it is determined in step S218 that the FA zoom operation switch has been pressed. If the FA zoom operation switch is not pressed in step S218, the process returns to step S500 in FIG. 10 to repeat the zoom return position change process. If a predetermined time has passed in a state where no subject is detected in step S217, the process proceeds to step S204 in FIG. 7A to perform subject designation processing again. If the FA zoom operation switch is pressed in step S218, the process proceeds to step S219.
ステップS219では、FAズーム操作スイッチが押下されてから所定時間内に開放されたか否かを判定する。所定時間内にFAズーム操作スイッチが開放された場合、自動追尾モードがキャンセルされたとして、FAズーム機能を終了する。一方、所定時間内にスイッチが開放されない場合、図7AのステップS202に進み、手動探索モードが記憶される。すなわち、本実施形態では、自動追尾モード中にFAズーム操作スイッチが所定時間以上押下された場合、FAモードを手動探索モードに変更する。 In step S219, it is determined whether or not the FA zoom operation switch has been released within a predetermined time after being pressed. If the FA zoom operation switch is released within a predetermined time, the automatic zoom mode is canceled and the FA zoom function is terminated. On the other hand, if the switch is not opened within the predetermined time, the process proceeds to step S202 in FIG. 7A and the manual search mode is stored. That is, in this embodiment, when the FA zoom operation switch is pressed for a predetermined time or more during the automatic tracking mode, the FA mode is changed to the manual search mode.
図9Bは、図6のステップS105(ズームイン動作)のフローチャートである。まずステップS408において、FAズーム制御部122は、記憶されたズーム位置(ズーム戻り位置)のデータをメモリ118から読み込む。続いてステップS409において、FAズーム制御部122は、被写体探索状態でのズーム状態が光学ズーム状態であるか否かを判定する。ズーム状態が光学ズーム状態である場合、光学ズームを優先してズームインを行うため、ステップS410に進む。一方、ズーム状態が電子ズーム状態である場合、電子ズームのみでズームインを行うため、ステップS412に進む。 FIG. 9B is a flowchart of step S105 (zoom-in operation) in FIG. First, in step S <b> 408, the FA zoom control unit 122 reads the stored zoom position (zoom return position) data from the memory 118. Subsequently, in step S409, the FA zoom control unit 122 determines whether or not the zoom state in the subject search state is the optical zoom state. If the zoom state is the optical zoom state, the process proceeds to step S410 in order to zoom in with priority on the optical zoom. On the other hand, when the zoom state is the electronic zoom state, the process proceeds to step S412 in order to perform zoom-in only with the electronic zoom.
ステップS410において、FAズーム制御部122は、ステップS408にて読み込んだズーム戻り位置のうち、光学ズームによるズームイン位置をCZ制御部119に設定する。続いてステップS411において、FAズーム制御部122は、CZ制御部119に対して、ステップS410にて設定された光学ズームによるズームイン位置までズームレンズ102を駆動するように指示する。そしてCZ制御部119は、ズームレンズ駆動部113を制御して、光学ズームでのズームイン動作を行う。 In step S410, the FA zoom control unit 122 sets the zoom-in position by optical zoom in the CZ control unit 119 among the zoom return positions read in step S408. Subsequently, in step S411, the FA zoom control unit 122 instructs the CZ control unit 119 to drive the zoom lens 102 to the zoom-in position by the optical zoom set in step S410. Then, the CZ control unit 119 controls the zoom lens driving unit 113 to perform a zoom-in operation with optical zoom.
ステップS409にて被写体探索状態でのズーム位置が電子ズーム領域内であると判定された場合や、ステップS411での光学ズームでズームイン動作が行われた後、ステップS412に進む。ステップS412において、FAズーム制御部122は、さらに電子ズームによるズームインが必要か否かを判定する。電子ズームによるズームインが必要な場合、ステップS413に進む。一方、電子ズームによるズームインが不要な場合、撮影準備状態にして処理を終了する。 When it is determined in step S409 that the zoom position in the subject search state is within the electronic zoom area, or after the zoom-in operation is performed with the optical zoom in step S411, the process proceeds to step S412. In step S <b> 412, the FA zoom control unit 122 determines whether it is necessary to further zoom in by electronic zoom. If zooming in by electronic zoom is necessary, the process proceeds to step S413. On the other hand, when the zoom-in by the electronic zoom is not necessary, the photographing preparation state is set and the process ends.
ステップS413において、FAズーム制御部122は、ステップS408にて読み込んだズーム戻り位置のうち、電子ズームによるズームイン位置を電子ズーム制御部120に設定する。続いてステップS414において、FAズーム制御部122は、電子ズーム制御部120に対して、ステップS413にて設定された電子ズームによるズームイン位置まで変倍処理を行うように指示する。そして電子ズーム制御部120は、電子ズームイン動作を行い、これによりズーム戻り位置へ復帰する。この動作が終了すると、撮影準備状態にしてズームイン動作は終了する。 In step S413, the FA zoom control unit 122 sets the electronic zoom control unit 120 to a zoom-in position by electronic zoom among the zoom return positions read in step S408. Subsequently, in step S414, the FA zoom control unit 122 instructs the electronic zoom control unit 120 to perform the scaling process up to the zoom-in position by the electronic zoom set in step S413. Then, the electronic zoom control unit 120 performs an electronic zoom-in operation, and thereby returns to the zoom return position. When this operation is completed, the zoom-in operation is completed in the shooting preparation state.
(他の実施形態)
本発明の目的は以下のようにしても達成できる。すなわち、前述した各実施形態の機能を実現するための手順が記述されたソフトウェアのプログラムコードを記録した記憶媒体を、システムまたは装置に供給する。そしてそのシステムまたは装置のコンピュータ(またはCPU、MPU等)が記憶媒体に格納されたプログラムコードを読み出して実行する。この場合、記憶媒体から読み出されたプログラムコード自体が本発明の新規な機能を実現することになり、そのプログラムコードを記憶した記憶媒体およびプログラムは本発明を構成することになる。
(Other embodiments)
The object of the present invention can also be achieved as follows. That is, a storage medium in which a program code of software in which a procedure for realizing the functions of the above-described embodiments is described is recorded is supplied to the system or apparatus. A computer (or CPU, MPU, etc.) of the system or apparatus reads out and executes the program code stored in the storage medium. In this case, the program code itself read from the storage medium realizes the novel function of the present invention, and the storage medium and program storing the program code constitute the present invention.
また、プログラムコードを供給するための記憶媒体としては、例えば、フレキシブルディスク、ハードディスク、光ディスク、光磁気ディスクなどが挙げられる。また、CD−ROM、CD−R、CD−RW、DVD−ROM、DVD−RAM、DVD−RW、DVD−R、磁気テープ、不揮発性のメモリカード、ROM等も用いることができる。 Examples of the storage medium for supplying the program code include a flexible disk, a hard disk, an optical disk, and a magneto-optical disk. Further, a CD-ROM, CD-R, CD-RW, DVD-ROM, DVD-RAM, DVD-RW, DVD-R, magnetic tape, nonvolatile memory card, ROM, or the like can also be used.
また、コンピュータが読み出したプログラムコードを実行可能とすることにより、前述した各実施形態の機能が実現される。さらに、そのプログラムコードの指示に基づき、コンピュータ上で稼動しているOS(オペレーティングシステム)等が実際の処理の一部または全部を行い、その処理によって前述した各実施形態の機能が実現される場合も含まれる。 Further, by making the program code read by the computer executable, the functions of the above-described embodiments are realized. Furthermore, when the OS (operating system) running on the computer performs part or all of the actual processing based on the instruction of the program code, the functions of the above-described embodiments are realized by the processing. Is also included.
更に、以下の場合も含まれる。まず記憶媒体から読み出されたプログラムコードが、コンピュータに挿入された機能拡張ボードやコンピュータに接続された機能拡張ユニットに備わるメモリに書き込まれる。その後、そのプログラムコードの指示に基づき、その機能拡張ボードや機能拡張ユニットに備わるCPU等が実際の処理の一部または全部を行う。 Furthermore, the following cases are also included. First, the program code read from the storage medium is written in a memory provided in a function expansion board inserted into the computer or a function expansion unit connected to the computer. Thereafter, based on the instruction of the program code, the CPU or the like provided in the function expansion board or function expansion unit performs part or all of the actual processing.
また、本発明はデジタルカメラのような撮影を主目的とした機器に限定されず、携帯電話、パーソナルコンピュータ(ラップトップ型、デスクトップ型、タブレット型など)、ゲーム機など、撮像装置を内蔵もしくは外部接続する任意の機器に適用可能である。従って、本明細書における「撮像装置」は、撮像機能を備えた任意の電子機器を包含することが意図されている。 Further, the present invention is not limited to a device mainly intended for shooting such as a digital camera, and includes an imaging device such as a mobile phone, a personal computer (laptop type, desktop type, tablet type, etc.), a game machine, or the like. Applicable to any device to be connected. Therefore, the “imaging device” in this specification is intended to include any electronic device having an imaging function.
本実施例によれば、自動または手動によるフレーミング支援ズームの実行を簡単に切り替え可能な撮像装置、撮像システム、撮像装置の制御方法、プログラム、および、記憶媒体を提供することができる。 According to the present embodiment, it is possible to provide an imaging apparatus, an imaging system, an imaging apparatus control method, a program, and a storage medium that can easily switch between execution of automatic or manual framing assistance zoom.
以上、本発明の好ましい実施形態について説明したが、本発明はこれらの実施形態に限定されず、その要旨の範囲内で種々の変形及び変更が可能である。 As mentioned above, although preferable embodiment of this invention was described, this invention is not limited to these embodiment, A various deformation | transformation and change are possible within the range of the summary.
図6乃至図10において、自動追尾モードでは、ズームアウト動作を行った後、ズームイン動作を行う例を示しているが、ズームアウト動作だけを行うように構成してもよい。同様に、被写体が所定の領域内に収まった場合に、ズームアウト動作を行わず、所定量だけズームイン動作を行うように構成してもよい。また、適用シーンとして、静止画撮影のための画角合わせ中のみでなく、動画記録中の画角合わせの際に実施しても構わない。 6 to 10 show examples in which the zoom-out operation is performed after the zoom-out operation is performed in the automatic tracking mode. However, only the zoom-out operation may be performed. Similarly, when the subject is within a predetermined area, the zoom-out operation may be performed by a predetermined amount without performing the zoom-out operation. Further, as an application scene, it may be performed not only during angle adjustment for still image shooting but also during angle adjustment during moving image recording.
またシステム制御部114(FAズーム制御部122)は、モードが自動追尾モードに設定されている状態で操作部117が第2の時間よりも長い時間だけ押下された場合、モードを自動追尾モードから手動探索モードに変更することもできる。 The system control unit 114 (FA zoom control unit 122) switches the mode from the automatic tracking mode when the operation unit 117 is pressed for a time longer than the second time while the mode is set to the automatic tracking mode. You can also change to manual search mode.
100 デジタルカメラ
109 表示部
114 システム制御部
117 操作部
122 FAズーム制御部
123 被写体検出部
100 Digital Camera 109 Display Unit 114 System Control Unit 117 Operation Unit 122 FA Zoom Control Unit 123 Subject Detection Unit
Claims (17)
画像から被写体を検出する被写体検出手段と、
前記第1の操作部の操作に応じて画角を制御する制御手段と、を有し、
前記制御手段は、前記第1の操作部を介した第1の操作に応じて第1のモードを実行し、前記第1の操作と異なる第2の操作に応じて第2のモードを実行し、
前記第1のモードにおいて、前記制御手段は、前記被写体検出手段の検出結果に基づいて画角を変更するよう制御し、
前記第2のモードにおいて、前記制御手段は、前記第2の操作に応じて画角を広角側に変更するよう制御し、
前記第1のモード実行中に前記第2の操作が実行されると、前記第1のモードから前記第2のモードに移行することを特徴とする制御装置。 A first operation unit for the user to instruct a change in the angle of view;
Subject detection means for detecting a subject from an image;
Control means for controlling the angle of view in accordance with the operation of the first operation unit,
The control means executes a first mode in response to a first operation via the first operation unit, and executes a second mode in response to a second operation different from the first operation. ,
In the first mode, the control means controls to change the angle of view based on the detection result of the subject detection means,
In the second mode, the control means controls to change the angle of view to the wide angle side according to the second operation ,
When the second operation is executed during execution of the first mode , the control device shifts from the first mode to the second mode .
前記第1のモードにおいて、前記制御手段は、前記被写体検出手段により検出された被写体が所定の条件を満たす場合、画角を広角側に変更するよう制御するとともに、変更前の画角を第1の画角に設定し、当該第1の画角を示す表示を行うよう前記表示手段を制御することを特徴とする請求項1に記載の制御装置。 Having display means for displaying an image;
In the first mode, when the subject detected by the subject detection means satisfies a predetermined condition, the control means controls to change the angle of view to the wide angle side and sets the angle of view before the change to the first angle of view. 2. The control device according to claim 1, wherein the control unit controls the display unit so as to display the first angle of view.
請求項1乃至13のいずれか1項に記載の制御装置を備えた撮像装置と、を有することを特徴とする撮像システム。 A lens device;
An imaging system comprising: an imaging device comprising the control device according to claim 1.
画像から被写体を検出する検出ステップと、
前記第1の操作部の操作に応じて画角を制御する制御ステップと、を有し、
前記制御ステップにおいて、前記第1の操作部を介した第1の操作に応じて第1のモードを実行し、前記第1の操作と異なる第2の操作に応じて第2のモードを実行し、
前記第1のモードにおいて、前記検出ステップでの検出結果に基づいて画角を変更するよう制御し、
前記第2のモードにおいて、前記第2の操作に応じて画角を広角側に変更するよう制御し、
前記第1のモード実行中に前記第2の操作が実行されると、前記第1のモードから前記第2のモードに移行することを特徴とする画角制御方法。 A receiving step for receiving an instruction to change the angle of view via the first operation unit;
A detection step of detecting a subject from the image;
A control step for controlling the angle of view in accordance with the operation of the first operation unit,
In the control step, a first mode is executed in response to a first operation via the first operation unit, and a second mode is executed in response to a second operation different from the first operation. ,
In the first mode, control to change the angle of view based on the detection result in the detection step,
In the second mode, control to change the angle of view to the wide angle side according to the second operation ,
An angle-of-view control method , wherein when the second operation is executed during execution of the first mode, the mode is shifted from the first mode to the second mode .
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2013137668A JP6188455B2 (en) | 2013-07-01 | 2013-07-01 | Control apparatus, imaging system, angle of view control method, program, and storage medium |
US14/219,241 US9253410B2 (en) | 2013-04-25 | 2014-03-19 | Object detection apparatus, control method therefor, image capturing apparatus, and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2013137668A JP6188455B2 (en) | 2013-07-01 | 2013-07-01 | Control apparatus, imaging system, angle of view control method, program, and storage medium |
Publications (3)
Publication Number | Publication Date |
---|---|
JP2015011249A JP2015011249A (en) | 2015-01-19 |
JP2015011249A5 JP2015011249A5 (en) | 2016-08-04 |
JP6188455B2 true JP6188455B2 (en) | 2017-08-30 |
Family
ID=52304433
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2013137668A Active JP6188455B2 (en) | 2013-04-25 | 2013-07-01 | Control apparatus, imaging system, angle of view control method, program, and storage medium |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP6188455B2 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
RU2676222C2 (en) * | 2017-02-10 | 2018-12-26 | Российская Федерация, От Имени Которой Выступает Министерство Промышленности И Торговли Российской Федерации | Method of improving adhesion of indium microcontacts using ultrasound processing |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP6821325B2 (en) * | 2016-05-09 | 2021-01-27 | キヤノン株式会社 | Image processing device, imaging device and control method |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH065912B2 (en) * | 1984-08-13 | 1994-01-19 | キヤノン株式会社 | camera |
JP5309490B2 (en) * | 2007-07-26 | 2013-10-09 | カシオ計算機株式会社 | Imaging device, subject tracking zooming method, and subject tracking zooming program |
JP2009182547A (en) * | 2008-01-30 | 2009-08-13 | Hitachi Ltd | Imaging device |
JP5783696B2 (en) * | 2010-09-02 | 2015-09-24 | キヤノン株式会社 | Imaging apparatus, auto zoom method, and program |
JP5623207B2 (en) * | 2010-09-13 | 2014-11-12 | キヤノン株式会社 | Imaging apparatus and control method thereof |
JP5744581B2 (en) * | 2011-03-18 | 2015-07-08 | キヤノン株式会社 | Imaging apparatus and control method thereof |
JP5855395B2 (en) * | 2011-09-09 | 2016-02-09 | オリンパス株式会社 | Camera system and interchangeable lens |
-
2013
- 2013-07-01 JP JP2013137668A patent/JP6188455B2/en active Active
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
RU2676222C2 (en) * | 2017-02-10 | 2018-12-26 | Российская Федерация, От Имени Которой Выступает Министерство Промышленности И Торговли Российской Федерации | Method of improving adhesion of indium microcontacts using ultrasound processing |
Also Published As
Publication number | Publication date |
---|---|
JP2015011249A (en) | 2015-01-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP6429454B2 (en) | IMAGING DEVICE, IMAGING DEVICE CONTROL METHOD, AND IMAGING DEVICE CONTROL PROGRAM | |
US9253410B2 (en) | Object detection apparatus, control method therefor, image capturing apparatus, and storage medium | |
US10419683B2 (en) | Zoom control device, imaging apparatus, control method of zoom control device, and recording medium | |
JP6296801B2 (en) | IMAGING DEVICE, IMAGING DEVICE CONTROL METHOD, AND IMAGING DEVICE CONTROL PROGRAM | |
US10165191B2 (en) | Image pickup apparatus having zoom function, method of controlling the same, and storage medium | |
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 | |
JP6618255B2 (en) | Zoom control device, imaging device, control method for zoom control device, control program for zoom control device, and storage medium | |
JP7073550B2 (en) | Zoom control device, image pickup device, control method of zoom control device, control program of zoom control device | |
JP2016122874A (en) | Zoom control device, imaging device, control method of zoom control device, control program of zoom control device, and storage medium | |
JP2019029998A (en) | Imaging apparatus, control method of imaging apparatus and control program | |
JP6188474B2 (en) | Zoom control device, control method for zoom control device, control program for zoom control device, and storage medium | |
JP6643036B2 (en) | Zoom control device, control method for zoom control device, control program for zoom control device, and storage medium | |
JP6224925B2 (en) | Control device and angle of view control method | |
JP6335520B2 (en) | IMAGING DEVICE, IMAGING DEVICE CONTROL METHOD, AND IMAGING DEVICE CONTROL PROGRAM | |
JP5744581B2 (en) | Imaging apparatus and control method thereof | |
JP6463123B2 (en) | Zoom control device, imaging device, control method for zoom control device, and control program for zoom control device | |
JP6245923B2 (en) | IMAGING DEVICE, IMAGING DEVICE CONTROL METHOD, IMAGING DEVICE CONTROL PROGRAM, AND STORAGE MEDIUM | |
JP6289207B2 (en) | IMAGING DEVICE, IMAGING DEVICE CONTROL METHOD, IMAGING DEVICE CONTROL PROGRAM, AND STORAGE MEDIUM | |
JP6188455B2 (en) | Control apparatus, imaging system, angle of view control method, program, and storage medium | |
JP6234103B2 (en) | Zoom control device, control method for zoom control device, control program for zoom control device, and storage medium | |
JP6437066B2 (en) | IMAGING DEVICE, IMAGING DEVICE CONTROL METHOD, AND IMAGING DEVICE CONTROL PROGRAM | |
JP2015019282A (en) | Image processing apparatus, control method of image processing apparatus, control program of image processing apparatus, and recording medium | |
JP2018197880A (en) | Imaging apparatus | |
JP2015026906A (en) | Imaging apparatus, imaging apparatus control method, imaging apparatus control program, and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20160615 |
|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20160615 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20170208 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20170221 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20170421 |
|
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: 20170704 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20170801 |
|
R151 | Written notification of patent or utility model registration |
Ref document number: 6188455 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R151 |