JP2019219529A - Control device, imaging device, control method, program, and storage medium - Google Patents

Control device, imaging device, control method, program, and storage medium Download PDF

Info

Publication number
JP2019219529A
JP2019219529A JP2018117103A JP2018117103A JP2019219529A JP 2019219529 A JP2019219529 A JP 2019219529A JP 2018117103 A JP2018117103 A JP 2018117103A JP 2018117103 A JP2018117103 A JP 2018117103A JP 2019219529 A JP2019219529 A JP 2019219529A
Authority
JP
Japan
Prior art keywords
subject
unit
image
lens
zoom
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2018117103A
Other languages
Japanese (ja)
Inventor
昭洋 粒崎
Akihiro Ryuzaki
昭洋 粒崎
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP2018117103A priority Critical patent/JP2019219529A/en
Publication of JP2019219529A publication Critical patent/JP2019219529A/en
Pending legal-status Critical Current

Links

Landscapes

  • Lens Barrels (AREA)
  • Adjustment Of Camera Lenses (AREA)
  • Studio Devices (AREA)

Abstract

To provide a control device which can prevent a subject image from going out of a frame of a screen during execution of a subject tracking function and improve operability.SOLUTION: A control device (114) includes control means (120) for controlling a lens unit (101) so as to perform tracking control for a subject designated by subject designating means (118), and electronic vibration-proofing means (127) for electronically performing image blur correction on the basis of a shake detected by shake detection means (119). The control means performs the image blur correction by the electronic vibration-proofing means and zooms out the lens unit from a first position to a second position closer to a wide-angle side than the first position before the subject is designated.SELECTED DRAWING: Figure 7

Description

本発明は、被写体追尾機能を有する撮像装置に関する。   The present invention relates to an imaging device having a subject tracking function.

従来、画像から検出された被写体のうちユーザが主被写体を指定し、指定した主被写体に露出、ピント、および、画角を追従させる機能(被写体追尾機能)を有する撮像装置が知られている。被写体追尾機能を有する撮像装置では、ユーザが画面上に表示された被写体像をタッチパネルや操作スイッチ等の操作部を介して指定し、指定された被写体像の領域に追尾枠を表示する。そして、追尾枠内の測光値、コントラスト評価値、および、追尾枠の大きさや位置等に応じて、絞り、フォーカスレンズ、ズームレンズ、および、防振レンズ等を駆動することにより追尾機能が実現される。   2. Description of the Related Art Conventionally, there has been known an imaging apparatus having a function (subject tracking function) in which a user designates a main subject among subjects detected from an image and follows the exposure, focus, and angle of view of the designated main subject. In an imaging apparatus having a subject tracking function, a user designates a subject image displayed on a screen via an operation unit such as a touch panel or an operation switch, and displays a tracking frame in an area of the designated subject image. Then, a tracking function is realized by driving an aperture, a focus lens, a zoom lens, an anti-vibration lens, and the like according to a photometric value, a contrast evaluation value, and a size and a position of the tracking frame in the tracking frame. You.

特許文献1には、指定した主被写体に対して、ピントを追従させるオートフォーカス機能を有する撮像装置が開示されている。特許文献2には、被写体像のフレームアウトを防止するオートズーム機能や被写体像の大きさを一定に維持するオートズーム機能を有する撮像装置が開示されている。特許文献3には、検出した被写体像の位置が画角の中央からずれている場合に、被写体像の位置を画角中央に維持する防振機能を有する撮像装置が開示されている。   Patent Literature 1 discloses an imaging apparatus having an autofocus function of following a designated main subject with focus. Patent Literature 2 discloses an imaging apparatus having an auto-zoom function for preventing a subject image from going out of a frame and an auto-zoom function for maintaining a size of a subject image constant. Patent Literature 3 discloses an imaging apparatus having an image stabilizing function that maintains the position of a subject image at the center of the angle of view when the position of the detected subject image is shifted from the center of the angle of view.

特開2017−112488号公報JP-A-2017-112488 特開2017−167438号公報JP 2017-167438 A 特開2017−92592号公報JP-A-2017-92592

しかしながら、ズームが望遠である場合には画角が狭いため、被写体追尾機能の実行中にユーザが操作部を介して被写体を指定しようとすると、ユーザの操作により被写体像が画面からフレームアウトしてしまう可能性がある。また、このときのユーザの操作により生じる像ブレは、通常のフレーミング時の手振れにより生じる像ブレよりも大きいため、防振レンズ(光学防振手段)を用いて像ブレ補正を行うことが難しい。このように、被写体追尾機能の実行中に、ユーザが被写体をフレーミングしながら被写体を指定することは困難である。   However, since the angle of view is narrow when the zoom is telephoto, when the user attempts to specify a subject via the operation unit during execution of the subject tracking function, the subject image is framed out of the screen by the user's operation. May be lost. Further, the image blur caused by the user's operation at this time is larger than the image blur caused by the camera shake at the time of normal framing, so that it is difficult to perform the image blur correction using the anti-vibration lens (optical anti-vibration means). As described above, it is difficult for the user to specify the subject while framing the subject during the execution of the subject tracking function.

そこで本発明は、被写体追尾機能の実行中に、被写体像が画面からフレームアウトすることを防止し、操作性を向上させることが可能な制御装置、撮像装置、制御方法、プログラム、および、記憶媒体を提供することを目的とする。   Therefore, the present invention provides a control device, an imaging device, a control method, a program, and a storage medium that can prevent a subject image from going out of a frame during execution of a subject tracking function and improve operability. The purpose is to provide.

本発明の一側面としての制御装置は、被写体指定手段により指定された被写体に対して追従制御を行うように前記レンズユニットを制御する制御手段と、振れ検出手段により検出された振れに基づいて、電子的に像ブレ補正を行う電子防振手段とを有し、前記制御手段は、前記被写体が指定される前、前記電子防振手段による前記像ブレ補正を行うとともに、前記レンズユニットを第1の位置から前記第1の位置よりも広角側の第2の位置へズームアウトする。   A control device according to an aspect of the present invention includes: a control unit that controls the lens unit so as to perform tracking control on a subject specified by a subject specifying unit; and a shake detected by a shake detection unit. An electronic image stabilizing unit that electronically performs image blur correction, wherein the control unit performs the image blur correction by the electronic image stabilizing unit before the subject is designated, and sets the lens unit to a first position. Is zoomed out from the position to a second position on the wide angle side of the first position.

本発明の他の側面としての撮像装置は、前記制御装置と、前記レンズユニットを介して前記被写体を撮像する撮像素子とを有する。   An imaging device according to another aspect of the present invention includes the control device and an imaging device that captures an image of the subject via the lens unit.

本発明の他の側面としての制御方法は、被写体が指定される前、電子防振手段による像ブレ補正を行うとともに、レンズユニットを第1の位置から前記第1の位置よりも広角側の第2の位置へズームアウトするステップと、被写体指定手段から、前記被写体が指定されたことを示す情報を取得するステップと、前記被写体が指定された後、前記電子防振手段による前記像ブレ補正を停止するとともに、前記レンズユニットを前記第2の位置から前記第1の位置へズームインするステップとを有する。   In a control method according to another aspect of the present invention, before a subject is designated, image stabilization is performed by electronic image stabilization means, and a lens unit is moved from a first position to a second position on the wide angle side from the first position. Zooming out to the position 2; acquiring information indicating that the subject has been designated from the subject designating means; and performing the image blur correction by the electronic image stabilizing means after the subject has been designated. Stopping and zooming in on the lens unit from the second position to the first position.

本発明の他の側面としてのプログラムは、前記制御方法をコンピュータに実行させる。   A program according to another aspect of the present invention causes a computer to execute the control method.

本発明の他の側面としての記憶媒体は、前記プログラムを記憶している。   A storage medium according to another aspect of the present invention stores the program.

本発明の他の目的及び特徴は、以下の実施形態において説明される。   Other objects and features of the present invention will be described in the following embodiments.

本発明によれば、被写体追尾機能の実行中に、被写体像が画面からフレームアウトすることを防止し、操作性を向上させることが可能な制御装置、撮像装置、制御方法、プログラム、および、記憶媒体を提供することができる。   Advantageous Effects of Invention According to the present invention, a control device, an imaging device, a control method, a program, and a storage capable of preventing a subject image from going out of a frame during execution of a subject tracking function and improving operability. A medium can be provided.

本実施形態における撮像装置のブロック図である。It is a block diagram of an imaging device in this embodiment. 本実施形態におけるフォーカス位置とコントラスト評価値との関係を示す図である。FIG. 5 is a diagram illustrating a relationship between a focus position and a contrast evaluation value in the present embodiment. 本実施形態における画像メモリに記憶されている画像の説明図である。FIG. 3 is an explanatory diagram of an image stored in an image memory according to the embodiment. 本実施形態における焦点距離と、被写体距離ごとのフォーカスレンズ位置との関係を示す図である。FIG. 4 is a diagram illustrating a relationship between a focal length and a focus lens position for each subject distance in the present embodiment. 本実施形態における被写体の大きさを所定の範囲内に保つためのオートズーム機能の制御の説明図である。FIG. 4 is an explanatory diagram of control of an auto zoom function for keeping a size of a subject within a predetermined range in the embodiment. 本実施形態における被写体の位置を画面中央付近に保つための追尾防振機能の制御の説明図である。FIG. 4 is an explanatory diagram of control of a tracking vibration-proofing function for keeping the position of a subject near the center of the screen in the present embodiment. 本実施形態における被写体追尾機能の全体の処理のフローチャートである。5 is a flowchart of an entire process of a subject tracking function according to the embodiment. 本実施形態における被写体指定処理のフローチャートである。It is a flowchart of a subject designation process in the present embodiment. 本実施形態における光学ズームイン処理のフローチャートである。It is a flowchart of the optical zoom-in process in this embodiment.

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

まず、図1を参照して、本実施形態における撮像装置について説明する。図1は、被写体追尾機能を有するデジタルカメラ(撮像装置)100のブロック図である。レンズ鏡筒101は、レンズユニット(撮像光学系)を有する。ズームレンズ102は、レンズ鏡筒101の光軸OAに沿った方向(光軸方向)に移動することで焦点距離を調節し、光学的に画角を変更(ズーム位置を移動)する。フォーカスレンズ103は、レンズ鏡筒101の光軸方向に移動することで焦点調節を行う。防振レンズ(像ブレ補正用レンズ)104は、光軸OAと直交する方向(光軸直交方向)に移動することで、手振れ等に起因する像ブレを補正する。光量調節を行う絞り/シャッタ105は、露出制御に用いられる。なお本実施形態において、デジタルカメラ100は、レンズ鏡筒101とカメラ本体部とが一体的に構成された撮像装置であるが、これに限定されるものではない。本実施形態は、カメラ本体部と、カメラ本体部に着脱可能な交換レンズ(レンズ鏡筒)とから構成される撮像システムにも適用可能である。   First, an imaging device according to the present embodiment will be described with reference to FIG. FIG. 1 is a block diagram of a digital camera (imaging device) 100 having a subject tracking function. The lens barrel 101 has a lens unit (imaging optical system). The zoom lens 102 adjusts the focal length by moving in the direction (optical axis direction) along the optical axis OA of the lens barrel 101, and optically changes the angle of view (moves the zoom position). The focus lens 103 performs focus adjustment by moving in the optical axis direction of the lens barrel 101. The image stabilization lens (image blur correction lens) 104 moves in a direction perpendicular to the optical axis OA (a direction orthogonal to the optical axis) to correct image blur caused by camera shake or the like. An aperture / shutter 105 for adjusting the amount of light is used for exposure control. Note that, in the present embodiment, the digital camera 100 is an imaging device in which the lens barrel 101 and the camera main body are integrally formed, but is not limited to this. The present embodiment is also applicable to an imaging system including a camera body and an interchangeable lens (lens barrel) that is detachable from the camera body.

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

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

撮影処理により生成された画像データは、I/F(インターフェース部115を介して記録部116に送られて記録される。画像データは、外部記録媒体、もしくは不揮発性のメモリ117、またはそれらの両方に記録される。外部記録媒体は、デジタルカメラ100に装着して使用されるメモリカード等である。不揮発性のメモリ117は、デジタルカメラ100に内蔵されている記憶媒体である。メモリ117は、プログラムデータや画像データの他に、デジタルカメラ100の設定等の情報を記憶する。   Image data generated by the photographing process is sent to the recording unit 116 via the I / F (interface unit 115) and recorded. The image data is stored in an external recording medium or the nonvolatile memory 117, or both. The external recording medium is a memory card or the like that is used by being attached to the digital camera 100. The nonvolatile memory 117 is a storage medium built in the digital camera 100. The memory 117 is Information such as settings of the digital camera 100 is stored in addition to the program data and the image data.

操作部118は、ズーム操作部材、撮影開始を指示するレリーズスイッチ、および、被写体の指定やデジタルカメラ100の設定を行うタッチパネルや操作スイッチ等を含む。操作部118の操作信号は、システム制御部114に送られる。   The operation unit 118 includes a zoom operation member, a release switch for instructing start of photographing, a touch panel and operation switches for specifying a subject and setting the digital camera 100. The operation signal of the operation unit 118 is sent to the system control unit 114.

システム制御部114は、CPU(中央演算処理装置)等の制御装置である。システム制御部114は、ユーザの操作に応じて各部に制御命令を送ることにより、デジタルカメラ100の全体を制御する。システム制御部114は、メモリ117に記憶されている各種の制御プログラム、例えば撮像素子106の制御やAE/AF制御、光学/電子防振制御、ズーム制御(オートズーム処理を含む)等を行うためのプログラムを実行する。   The system control unit 114 is a control device such as a CPU (Central Processing Unit). The system control unit 114 controls the entire digital camera 100 by sending a control command to each unit according to a user operation. The system control unit 114 performs various control programs stored in the memory 117, such as control of the image sensor 106, AE / AF control, optical / electronic image stabilization control, zoom control (including automatic zoom processing), and the like. Run the program.

カメラ制御部120は、デジタルカメラ100の機能全般の制御の指示を行う。カメラ制御部120は、例えば、レリーズスイッチが半押しされるとAE/AF等の撮影準備動作を行い、全押しされると静止画や動画の撮影動作を行うように指示を行う。またカメラ制御部120は、後述する被写体追尾機能においては、光学ズームのズーム動作や電子防振の開始/停止を指示する。   The camera control unit 120 issues an instruction for controlling the overall functions of the digital camera 100. For example, when the release switch is half-pressed, the camera control unit 120 performs a shooting preparation operation such as AE / AF, and when fully pressed, instructs to perform a still image or moving image shooting operation. The camera control unit 120 instructs a zoom operation of an optical zoom and a start / stop of electronic image stabilization in a subject tracking function described later.

AE制御部(自動露出制御部)121は、画像処理部107の画像処理により得られた測光値に基づいて、露出制御値(絞り値(F値)およびシャッタ速度)を算出する。AE制御部121は、設定された測光方式に従って、画面内の任意の領域(測光枠)での輝度値(測光値)を算出する。測光方式としては、設定された特定の位置で測光するスポット測光、シーンに応じてカメラが自動で測光枠の位置を決める評価測光、または、画面中央部に重点を置いて画面全体で平均的に測光する中央部重点平均測光等の測光方式がある。AE制御部121は、測光結果に基づいて、絞りシャッタ駆動部110を制御する。絞りシャッタ駆動部110は、絞り/シャッタ105を駆動し、自動露出調整を実現する。絞りシャッタ駆動部110は、ステッピングモータや電磁プランジャ等のアクチュエータおよびそれらを駆動する駆動回路を備えて構成され、絞り/シャッタ105を駆動する。   The AE control unit (automatic exposure control unit) 121 calculates an exposure control value (aperture value (F value) and shutter speed) based on the photometric value obtained by the image processing of the image processing unit 107. The AE control unit 121 calculates a luminance value (photometric value) in an arbitrary area (photometric frame) on the screen according to the set photometric method. The light metering method can be spot metering that measures light at a specific position that has been set, evaluative metering that automatically determines the position of the light metering frame according to the scene, or averaged over the entire screen with emphasis on the center of the screen. There are photometric methods such as center-weighted average photometry for photometry. The AE control unit 121 controls the aperture shutter driving unit 110 based on the photometric result. The aperture shutter drive unit 110 drives the aperture / shutter 105 to realize automatic exposure adjustment. The aperture shutter drive unit 110 includes actuators such as a stepping motor and an electromagnetic plunger and a drive circuit for driving them, and drives the aperture / shutter 105.

光学防振制御部122は、揺れ検出部(振れ検出手段)119から取得された振れ検出情報に基づいて、デジタルカメラ100に加わる振れ(振れ量)を算出する。揺れ検出部119はジャイロセンサ等の角速度センサであり、振れ検出情報は角速度情報である。そして光学防振制御部122は、算出した振れ(振れ量)に基づいて、デジタルカメラ100に加わる振れ量を打ち消す(または低減する)ように防振レンズ104を駆動することで、光学防振を実現する。また光学防振制御部122は、振れ量に基づいて所定の演算周期で防振レンズ104を制御する目標位置を演算し、防振レンズ駆動部111に駆動指示を出力する。防振レンズ駆動部111は、光学防振制御部122から受信した駆動指示に基づいて、防振レンズ104を光軸直交方向に駆動する。   The optical image stabilization control unit 122 calculates a shake (shake amount) applied to the digital camera 100 based on shake detection information acquired from the shake detection unit (shake detection unit) 119. The shake detection unit 119 is an angular velocity sensor such as a gyro sensor, and the shake detection information is angular velocity information. The optical image stabilization control unit 122 drives the image stabilizing lens 104 based on the calculated shake (shake amount) so as to cancel (or reduce) the amount of shake applied to the digital camera 100, thereby performing optical image stabilization. Realize. The optical image stabilization control unit 122 calculates a target position for controlling the image stabilization lens 104 at a predetermined calculation cycle based on the shake amount, and outputs a driving instruction to the image stabilization lens driving unit 111. The image stabilizing lens driving unit 111 drives the image stabilizing lens 104 in a direction orthogonal to the optical axis based on the driving instruction received from the optical image stabilizing control unit 122.

防振レンズ駆動部111は、ボイスコイルモータ(VCM)等のアクチュエータ、アクチュエータの駆動回路、および、ホール素子等の位置検出センサを備えて構成される。光学防振制御部122は、防振レンズ駆動部111の位置検出センサにより検出された防振レンズ104の位置をフィードバックし、防振レンズ104を目標位置に保持するようにフィードバック制御を実行する。   The anti-vibration lens driving unit 111 includes an actuator such as a voice coil motor (VCM), a driving circuit of the actuator, and a position detection sensor such as a Hall element. The optical image stabilization control unit 122 feeds back the position of the image stabilization lens 104 detected by the position detection sensor of the image stabilization lens driving unit 111, and performs feedback control so as to hold the image stabilization lens 104 at the target position.

電子防振制御部127は、光学防振制御部122と同様に、揺れ検出部119から取得された振れ検出情報に基づいて、デジタルカメラ100に加わる振れ(振れ量)を算出する。そして電子防振制御部127は、算出した振れ(振れ量)に基づいて、デジタルカメラ100に加わる振れ量を打ち消す(または低減する)ように電子防振を実現する。すなわち電子防振制御部127は、画像メモリ108に記憶されている画像から表示部109に表示または記録部116に記録される画像の範囲をフレーム画像ごとに変更することで、電子防振を実現する。   The electronic image stabilization control unit 127 calculates a shake (shake amount) applied to the digital camera 100 based on the shake detection information acquired from the shake detection unit 119, similarly to the optical image stabilization control unit 122. The electronic image stabilization control unit 127 implements electronic image stabilization so as to cancel (or reduce) the amount of shake applied to the digital camera 100 based on the calculated shake (shake amount). That is, the electronic image stabilization control unit 127 implements electronic image stabilization by changing the range of the image displayed on the display unit 109 or recorded in the recording unit 116 from the image stored in the image memory 108 for each frame image. I do.

ここで、図3を参照して、電子防振について説明する。図3は、画像メモリ108に記憶されている画像を示している。300は画像メモリ108の全体を示し、301は電子防振制御部127による電子防振制御後の画像データとして表示および記録される画像の範囲を示している。電子防振の制御においては、表示部109および記録部116への出力画像のサイズを小さくすることで電子防振として制御可能な範囲が大きくなり、防振効果を高くすることができる。しかしながら、出力画像サイズが小さくなると、画像の解像度が低下する可能性がある。   Here, the electronic image stabilization will be described with reference to FIG. FIG. 3 shows an image stored in the image memory 108. Reference numeral 300 denotes the entire image memory 108, and reference numeral 301 denotes a range of an image to be displayed and recorded as image data after electronic image stabilization control by the electronic image stabilization control unit 127. In the control of the electronic image stabilization, the range that can be controlled as the electronic image stabilization is increased by reducing the size of the output image to the display unit 109 and the recording unit 116, and the image stabilization effect can be enhanced. However, as the output image size decreases, the resolution of the image may decrease.

光学防振で防振可能な揺れ量(振れ量)の大きさは、防振レンズ104の可動範囲に応じて決定される。すなわち、被写体指定操作に起因する大きな手振れを防振するには、防振レンズ104の可動範囲を大きくする必要がある。このため、レンズ鏡筒101の径を大きくする必要があり、その結果、デジタルカメラ100が大型化する可能性がある。   The magnitude of the shake amount (shake amount) that can be stabilized by optical image stabilization is determined according to the movable range of the image stabilizing lens 104. That is, in order to stabilize a large camera shake caused by the subject designation operation, it is necessary to increase the movable range of the anti-shake lens 104. For this reason, it is necessary to increase the diameter of the lens barrel 101, and as a result, the digital camera 100 may be enlarged.

一方、電子防振では、画像メモリ108に対して電子防振制御に使用する制御範囲を大きくすることで、防振効果を高くすることができる。近年、撮像素子106の画素数は高画素化しており、LCDの解像度に対して十分な画素数を有する。このため、表示部109に表示される画像の範囲を小さくして電子防振制御の範囲を大きくした場合でも、ビューファインダ機能としては十分な解像度を得ることできる。ただし、記録画像としては、大画面のモニタ等に表示される場合があるため、より高い解像度が必要とされる。したがって、本実施形態においては、被写体の指定操作時には電子防振で防振制御を行い、画像記録時には光学防振で防振制御を行う。これにより、デジタルカメラ100を大型化することなく、効果的に被写体指定操作を支援することができるとともに、高解像度の記録画像を撮影することができる。   On the other hand, in the electronic image stabilization, the control range used for the electronic image stabilization control with respect to the image memory 108 can be increased to enhance the image stabilization effect. In recent years, the number of pixels of the image sensor 106 has been increased, and the number of pixels is sufficient for the resolution of the LCD. Therefore, even when the range of the image displayed on the display unit 109 is reduced and the range of the electronic image stabilization control is increased, a sufficient resolution can be obtained for the viewfinder function. However, since a recorded image may be displayed on a large-screen monitor or the like, a higher resolution is required. Therefore, in the present embodiment, the electronic image stabilization control is performed by the electronic image stabilization at the time of specifying the subject, and the image stabilization control is performed by the optical image stabilization at the time of image recording. Accordingly, the subject specifying operation can be effectively supported without increasing the size of the digital camera 100, and a high-resolution recorded image can be captured.

AF制御部(オートフォーカス制御部)123は、コントラスト検出方式による自動焦点調節(AF)制御を行う。すなわちAF制御部123は、画像処理部107での画像処理により得られた撮像光学系の焦点調節情報(コントラスト評価値)に基づいて、被写体に焦点が合うようにフォーカスレンズ駆動部112を制御する。フォーカスレンズ駆動部112は、ボイスコイルモータ(VCM)等のアクチュエータ、その位置をフィードバックするための位置検出センサ、および、それらを駆動する駆動回路を備えて構成され、フォーカスレンズ103を駆動する。なおフォーカスレンズ駆動部112は、前述の構成に限定されるものではなく、ステッピングモータのように位置検出センサを必要としない構成であってもよい。   An AF control unit (autofocus control unit) 123 performs automatic focus adjustment (AF) control using a contrast detection method. That is, the AF control unit 123 controls the focus lens driving unit 112 so that the subject is in focus, based on the focus adjustment information (contrast evaluation value) of the imaging optical system obtained by the image processing in the image processing unit 107. . The focus lens drive unit 112 includes an actuator such as a voice coil motor (VCM), a position detection sensor for feeding back the position of the actuator, and a drive circuit for driving them, and drives the focus lens 103. Note that the focus lens driving unit 112 is not limited to the above-described configuration, and may be a configuration that does not require a position detection sensor unlike a stepping motor.

本実施形態において、AF制御部123は、位相差検出方式によるAF制御等、コントラスト検出方式以外のAF制御を行ってもよい。またAF制御部123は、コントラスト検出方式と位相差検出方式等の他の方式との組み合わせのように、複数の方式でAF制御を行ってもよい。AF制御部123は、AF制御を行う際にフォーカスレンズ駆動部112を制御して、フォーカスレンズ103を所定の範囲で移動させることによりスキャン動作を行う。スキャン動作中に得られるコントラスト評価値等を用いて、合焦点であるフォーカス位置が検出される。   In the present embodiment, the AF control unit 123 may perform AF control other than the contrast detection method, such as the AF control using the phase difference detection method. Further, the AF control unit 123 may perform the AF control by a plurality of methods such as a combination of a contrast detection method and another method such as a phase difference detection method. The AF control unit 123 performs a scan operation by controlling the focus lens driving unit 112 when performing the AF control and moving the focus lens 103 within a predetermined range. The focus position, which is the focal point, is detected using a contrast evaluation value or the like obtained during the scanning operation.

ここで、図2を参照して、コントラスト検出方式のAF制御におけるフォーカス位置とコントラスト評価値との関係について説明する。図2は、コントラスト検出方式のAF制御におけるフォーカス位置とコントラスト評価値との関係を示す図である。図2において、横軸はフォーカス位置、縦軸はコントラスト評価値をそれぞれ示す。   Here, the relationship between the focus position and the contrast evaluation value in AF control of the contrast detection method will be described with reference to FIG. FIG. 2 is a diagram illustrating a relationship between a focus position and a contrast evaluation value in AF control of a contrast detection method. In FIG. 2, the horizontal axis represents the focus position, and the vertical axis represents the contrast evaluation value.

コントラスト評価値は、画像の任意の領域に測距枠と呼ぶコントラストを算出する領域を設定し、その領域内の画像情報からハイパスフィルタ等によって高周波成分を数値化した値である。コントラスト評価値が高いほど、合焦度が高いことを示している。また、AF制御には、静止画撮影でレリーズスイッチを半押ししたときに動作するシングルAFモードと、被写体をフレーミングするEVF画面や動画撮影中にピントを常時合わせ続けるコンティニュアスAFモードの二つの制御モードがある。   The contrast evaluation value is a value obtained by setting a region for calculating contrast called a distance measurement frame in an arbitrary region of the image, and digitizing high frequency components from image information in the region by a high-pass filter or the like. The higher the contrast evaluation value, the higher the degree of focusing. There are two types of AF control, a single AF mode that operates when the release switch is half-pressed in still image shooting, and a continuous AF mode that continuously focuses during EVF screen framing of a subject or moving image shooting. There is a control mode.

シングルAFモードは、被写体距離を無限から至近になるまで一気にフォーカスレンズ103を移動させることで、コントラスト評価値の山のピークとなるフォーカス位置を高速に検出するモードである。シングルAFモードでは、高速でピント位置を見つけることができる反面、スキャン動作中には画面が一瞬大ぼけとなる場合もある。このため、できるだけレリーズタイムラグを短縮したい静止画撮影時のAF制御に適している。   The single AF mode is a mode in which the focus lens 103 is moved at a stretch until the subject distance is reduced from infinity to a close distance, thereby quickly detecting a focus position at which the peak of the contrast evaluation value reaches a peak. In the single AF mode, the focus position can be found at high speed, but the screen may be momentarily blurred during the scanning operation. Therefore, it is suitable for AF control at the time of shooting a still image in which the release time lag is to be reduced as much as possible.

一方、コンティニュアスAFモードは、動いている被写体等を追い続ける場合に、ピントの変動が目立たない程度の範囲でフォーカスレンズ103を反転させるなどしてピントを合わせ続けるモードである。コンティニュアスAFモードでは、大ぼけの状態から合焦状態となるまでには時間がかかる反面、一旦合焦状態となると被写体が動いていてもピントを合わせ続けることができる。このため、被写体をフレーミングするEVF画面や、動いている被写体であっても常にピントを合わせ続ける動画撮影時のAF制御に適している。   On the other hand, the continuous AF mode is a mode in which, when pursuing a moving subject or the like, focusing is continued by, for example, inverting the focus lens 103 within a range in which focus fluctuation is inconspicuous. In the continuous AF mode, it takes time to change from a large-blur state to an in-focus state, but once in the in-focus state, focus can be maintained even if the subject is moving. Therefore, it is suitable for an EVF screen for framing a subject or AF control at the time of moving image shooting in which a moving subject is always kept in focus.

ズームレンズ駆動部113は、ズーム操作指示に従ってズームレンズ102を駆動する。ズームレンズ駆動部113は、ズームレンズ102を駆動する直流(DC)モータ等のアクチュエータ、モータ位置を検出するロータリーエンコーダ等の位置検出センサ、および、それらを駆動する駆動回路を備えて構成される。なおズームレンズ駆動部113は、前述の構成に限定されるものではなく、ステッピングモータのように位置検出センサを必要としない構成であってもよい。電源ONの操作とともにレンズ鏡筒101がカメラ本体から繰り出すような沈胴式の鏡筒では、鏡筒の繰り出し動作中に鏡筒が押さえられた場合にエラーを検出する必要があるため、前者の構成が採用されることが多い。また、レンズ鏡筒101の内部でズームレンズ102が駆動するインナー式の鏡筒では、静音化に有利な後者が採用されることが多い。本実施形態のズームレンズ駆動部113は、いずれの構成であってもよい。   The zoom lens driving unit 113 drives the zoom lens 102 according to a zoom operation instruction. The zoom lens driving unit 113 includes an actuator such as a direct current (DC) motor that drives the zoom lens 102, a position detection sensor such as a rotary encoder that detects a motor position, and a drive circuit that drives them. Note that the zoom lens driving unit 113 is not limited to the above-described configuration, and may be a configuration that does not require a position detection sensor unlike a stepping motor. In the retractable lens barrel in which the lens barrel 101 extends from the camera body with the operation of turning on the power, it is necessary to detect an error when the lens barrel is pressed during the lens barrel extension operation. Is often adopted. In the case of an inner lens barrel in which the zoom lens 102 is driven inside the lens barrel 101, the latter, which is advantageous for noise reduction, is often employed. The zoom lens driving unit 113 of the present embodiment may have any configuration.

操作部118は、ユーザがデジタルカメラ100にズーミングを指示するためのズーム操作部材としてのズームレバーまたはズームボタン等を備える。カメラ制御部120は、ズーム指示操作に用いられるズーム操作部材の操作量および操作方向を検知して、ズーム駆動速度やズーム駆動方向を算出し、その算出結果に従ってズームレンズ102を光軸OAに沿って移動させるように制御を行う。   The operation unit 118 includes a zoom lever or a zoom button as a zoom operation member for a user to instruct the digital camera 100 to perform zooming. The camera control unit 120 detects the operation amount and operation direction of the zoom operation member used for the zoom instruction operation, calculates the zoom drive speed and the zoom drive direction, and moves the zoom lens 102 along the optical axis OA according to the calculation results. Is controlled to move.

光学ズームによる画角変更時に合焦状態を維持するには、レンズ鏡筒101がリアフォーカスタイプである場合、ズームレンズ102の位置に応じてフォーカスレンズ103を適正なフォーカス位置へ移動させる必要がある。このような制御をコンピュータズーム(CZ)制御という。CZ制御は、システム制御部114におけるCZ制御部124により行われる。   In order to maintain a focused state when the angle of view is changed by optical zoom, when the lens barrel 101 is a rear focus type, it is necessary to move the focus lens 103 to an appropriate focus position according to the position of the zoom lens 102. . Such control is called computer zoom (CZ) control. The CZ control is performed by the CZ control unit 124 in the system control unit 114.

ここで、図4を参照して、ズームレンズ102の焦点距離と、被写体距離ごとのフォーカス位置との関係について説明する。図4は、ズームレンズ102の焦点距離と、被写体距離ごとのフォーカス位置との関係を示す図である。図4では、ズームレンズ102の焦点距離と、ピントが合うフォーカス位置との関係を、被写体までの距離ごとに示すデータテーブルとしてグラフ化して示している。本実施形態において、このテーブルをフォーカスカムテーブルと称する。   Here, the relationship between the focal length of the zoom lens 102 and the focus position for each subject distance will be described with reference to FIG. FIG. 4 is a diagram illustrating the relationship between the focal length of the zoom lens 102 and the focus position for each subject distance. FIG. 4 is a graph showing the relationship between the focal length of the zoom lens 102 and the focus position where focus is achieved, as a data table indicating the distance to the subject. In this embodiment, this table is called a focus cam table.

図4において、横軸はズーム位置に対応する焦点距離を示し、縦軸はフォーカス位置を示す。各グラフ線の横には、デジタルカメラ100から被写体までの距離(被写体距離)を例示している。CZ制御部124は、ズーム動作時に、所定の制御周期ごとにズームレンズ102のズーム位置を検出する。そしてCZ制御部124は、検出したズーム位置に対して、AF制御部123にて計測された被写体距離でのフォーカスカムテーブルに追従するように、フォーカスレンズ103を駆動させる制御を行う。これにより、合焦状態を維持したまま光学ズーム動作を行うことが可能となる。   In FIG. 4, the horizontal axis indicates the focal length corresponding to the zoom position, and the vertical axis indicates the focus position. A distance (subject distance) from the digital camera 100 to the subject is illustrated beside each graph line. The CZ control unit 124 detects a zoom position of the zoom lens 102 at a predetermined control cycle during a zoom operation. Then, the CZ control unit 124 controls the focus lens 103 to drive the detected zoom position so as to follow the focus cam table at the subject distance measured by the AF control unit 123. This makes it possible to perform the optical zoom operation while maintaining the in-focus state.

AZ制御部(オートズーム制御部)125は、後述する被写体検出部126から取得された被写体検出情報に基づいて、画面内(画像内)の被写体の大きさが所定の範囲に収まるようにCZ制御部124を制御する。これによりAZ制御部125は、自動画角調節(オートズーム)を実現する。   The AZ control unit (auto-zoom control unit) 125 performs CZ control based on subject detection information acquired from a subject detection unit 126 described later so that the size of the subject in the screen (in the image) falls within a predetermined range. The unit 124 is controlled. Thereby, the AZ control unit 125 realizes automatic angle-of-view adjustment (auto-zoom).

次に、本実施形態における被写体検出処理について説明する。被写体検出部(被写体検出手段)126は、画像メモリ108に記憶された画像(画像データ)から被写体(被写体領域)を検出する。本実施形態では、画像データに含まれる顔情報または色情報に基づいて被写体(人物等の顔、または物体)を検出する被写体検出方法(顔検出処理、色検出処理)について説明する。   Next, the subject detection processing according to the present embodiment will be described. The subject detection unit (subject detection means) 126 detects a subject (subject area) from the image (image data) stored in the image memory 108. In the present embodiment, a subject detection method (face detection process, color detection process) for detecting a subject (a face such as a person or an object) based on face information or color information included in image data will be described.

まず、被写体検出部126における顔検出処理および色検出処理について説明する。顔検出処理は、画像データ中に存在する顔領域を公知のアルゴリズムにより検出する処理である。例えば、被写体検出部126は、画像データ上での正方形状の部分領域から特徴量を抽出し、その特徴量を予め用意された顔の特徴量と比較する。そして被写体検出部126は、両者の相関値が所定の閾値を超える場合、その部分領域を顔領域であると判定する。この判定処理は、部分領域のサイズ、配置位置、配置角度の組み合わせを変更しながら繰り返されることにより、画像データ中に存在する種々の顔領域を検出できる。また被写体検出部126は、顔認証機能を有する場合、予め登録されている顔画像の特徴量と、検出した顔領域の特徴量とで公知のアルゴリズムによりパターンマッチングを実行し、相関値が最も高い登録顔画像を検出している顔として認証する。また被写体検出部126は、全ての登録顔画像に対する相関値が所定値未満である場合、検出した顔領域は登録されていない顔であると判定する。   First, the face detection processing and the color detection processing in the subject detection unit 126 will be described. The face detection process is a process of detecting a face region existing in image data by a known algorithm. For example, the subject detection unit 126 extracts a feature amount from a square partial region on the image data, and compares the feature amount with a previously prepared face feature amount. When the correlation value between the two exceeds a predetermined threshold, the subject detection unit 126 determines that the partial area is a face area. This determination processing is repeated while changing the combination of the size, arrangement position, and arrangement angle of the partial area, so that various face areas existing in the image data can be detected. When the subject detection unit 126 has a face authentication function, the subject detection unit 126 performs pattern matching with a feature amount of a face image registered in advance and a feature amount of a detected face region using a known algorithm, and has the highest correlation value. The registered face image is authenticated as a detected face. When the correlation values for all the registered face images are smaller than the predetermined value, the subject detection unit 126 determines that the detected face area is a face that has not been registered.

色検出処理は、後述の被写体指定方法に従って指定された被写体領域の色情報を特徴色として検出して記憶する処理である。色検出処理は、検出対象の被写体が物体である場合に行われる。色情報としては、画像処理部107からの出力信号であるRGB信号や輝度信号(Y信号)及び色差(R−Y、B−Y)信号等が用いられる。被写体検出部126は、被写体検出の際に、画像データを複数の部分領域に分割し、部分領域ごとの輝度及び色差の平均値を算出する。また被写体検出部126は、予め記憶された特徴色情報と被写体検出時の各領域の色情報とを比較し、輝度および色差のそれぞれの差分が所定量以下の部分領域を被写体領域の候補とする。   The color detection process is a process of detecting and storing, as a characteristic color, color information of a subject area designated according to a subject designation method described later. The color detection process is performed when the subject to be detected is an object. As the color information, an RGB signal, a luminance signal (Y signal), a color difference (RY, BY) signal, or the like, which is an output signal from the image processing unit 107, is used. When detecting a subject, the subject detection unit 126 divides the image data into a plurality of partial regions and calculates an average value of luminance and color difference for each partial region. Further, the subject detection unit 126 compares the previously stored characteristic color information with the color information of each region at the time of subject detection, and determines a partial region in which each difference in luminance and color difference is equal to or less than a predetermined amount as a candidate for a subject region. .

そして被写体検出部126は、被写体領域の候補で隣り合う部分領域の一群を同一色領域として、同一色領域が所定のサイズ範囲となる領域を最終的な被写体領域とする処理を行う。被写体が物体の場合、物体によって被写体領域の形状が異なる可能性がある。そこで被写体検出部126は、同一色領域が全て包含される最小の四角形の領域を物体領域とする。したがって、物体領域は、水平方向と垂直方向の大きさが異なる長方形の領域となる場合もある。また、物体領域の位置としては、四角形状の領域の中心位置とする。枠表示部128は、被写体検出処理で検出した顔領域および物体領域を表示部109に枠(被写体検出枠)として表示する。   Then, the subject detection unit 126 performs a process of setting a group of adjacent partial regions as candidates for the subject region as the same color region and a region where the same color region has a predetermined size range as a final subject region. When the subject is an object, the shape of the subject region may be different depending on the object. Therefore, the subject detection unit 126 sets the smallest rectangular area including all the same color areas as the object area. Therefore, the object area may be a rectangular area having different sizes in the horizontal and vertical directions. The position of the object region is the center position of the rectangular region. The frame display unit 128 displays the face area and the object area detected in the subject detection processing on the display unit 109 as a frame (subject detection frame).

次に、被写体検出部126により検出された被写体検出枠の追尾処理について説明する。被写体検出枠の追尾処理は、連続するフレーム画像の間で移動する被写体領域を追い続ける処理である。カメラ制御部120が被写体追尾機能を開始すると、後述の被写体指定方法に従って主被写体としての人物または物体の領域が指定される。指定された被写体が人物、すなわち顔である場合、被写体検出部126は、フレーム画像中の全ての顔を検出する。被写体検出部126は、同一の画像で複数の顔を検出した場合、直前のフレーム画像での顔の位置に最も近い顔を追尾する人物であると判定する。また被写体検出部126は、検出された顔が顔認証機能によって登録されている顔である場合、フレーム画像間の位置関係によらず認証された顔を優先して追尾する人物であると判定する。   Next, tracking processing of the subject detection frame detected by the subject detection unit 126 will be described. The tracking process of the subject detection frame is a process of keeping track of a subject region that moves between successive frame images. When the camera control unit 120 starts the subject tracking function, an area of a person or an object as a main subject is designated according to a subject designation method described later. When the specified subject is a person, that is, a face, the subject detection unit 126 detects all faces in the frame image. When a plurality of faces are detected in the same image, the subject detection unit 126 determines that the person tracks the face closest to the position of the face in the immediately preceding frame image. When the detected face is a face registered by the face authentication function, the subject detection unit 126 determines that the authenticated face is a person who preferentially tracks the face regardless of the positional relationship between the frame images. .

指定された被写体が物体である場合、被写体検出部126は、特徴色情報の比較処理の開始位置を直前のフレーム画像の物体領域の位置から開始する。移動する物体の速度よりもフレームレートが十分に高い場合、前後のフレーム画像間で近傍の領域に同一の物体が検出される可能性が高い。そこで被写体検出部126は、直前の物体領域の位置を起点として左右上下に比較する部分領域をずらしながら同一色領域のマッチング処理を行うことで、移動する物体領域を追尾することが可能となる。枠表示部128は、表示部109に被写体検出枠の追尾処理で追尾した顔領域及び物体領域を被写体追尾枠として表示する。   When the specified subject is an object, the subject detection unit 126 starts the starting position of the comparison process of the characteristic color information from the position of the object region of the immediately preceding frame image. If the frame rate is sufficiently higher than the speed of the moving object, there is a high possibility that the same object is detected in a nearby area between the previous and next frame images. Therefore, the subject detection unit 126 can track the moving object region by performing matching processing of the same color region while shifting the partial region to be compared left, right, up, and down with the position of the immediately preceding object region as a starting point. The frame display unit 128 displays, on the display unit 109, the face area and the object area tracked by the tracking processing of the subject detection frame as the subject tracking frame.

次に、カメラ制御部120における被写体追尾機能に関連する制御について説明する。本実施形態においては、AE/AF制御の測光枠および測距枠(焦点検出枠)を被写体追尾枠の位置に連動して測光/測距を行う機能をそれぞれ、追尾AE機能および追尾AF機能と呼ぶ。また、被写体追尾枠のサイズや位置に応じてズームレンズ102および防振レンズ104を駆動する機能をそれぞれ、追尾AZ機能および追尾防振機能と呼ぶ。これらの機能を総称して被写体追尾機能と呼ぶ。ユーザは操作部118のタッチパネルや被写体指定用の操作スイッチを操作することで、主被写体を指定する。カメラ制御部120は、ユーザにより指定された主被写体に対して、露出、ピント、および、画角が適切になるように各追尾機能を実行する。これらの複数の追尾機能は同時に実行することができ、または、複数の追尾機能のうち少なくとも一つの機能のみを実行してもよい。   Next, control related to the subject tracking function in the camera control unit 120 will be described. In the present embodiment, a function of performing photometry / distance measurement by interlocking the photometry frame and the distance measurement frame (focus detection frame) of the AE / AF control with the position of the subject tracking frame is referred to as a tracking AE function and a tracking AF function, respectively. Call. The functions of driving the zoom lens 102 and the image stabilizing lens 104 according to the size and position of the subject tracking frame are called a tracking AZ function and a tracking image stabilizing function, respectively. These functions are collectively referred to as a subject tracking function. The user specifies the main subject by operating the touch panel of the operation unit 118 or the operation switch for specifying the subject. The camera control unit 120 executes each tracking function for the main subject designated by the user such that the exposure, focus, and angle of view are appropriate. These multiple tracking functions may be performed simultaneously, or only at least one of the multiple tracking functions may be performed.

次に、図5を参照して、本実施形態における追尾オートズーム機能について説明する。図5は、被写体の大きさを所定の範囲内に保つためのオートズーム機能の制御の説明図である。図5(A)〜(C)は、被写体501がデジタルカメラ100に近づいてきた場合に、デジタルカメラ100が自動的に行うズーム動作を例示しており、被写体像が画面に占める割合を所定の比率内に収めるためのズームアウト動作を示している。   Next, a tracking auto-zoom function according to the present embodiment will be described with reference to FIG. FIG. 5 is an explanatory diagram of the control of the auto zoom function for keeping the size of the subject within a predetermined range. FIGS. 5A to 5C illustrate a zoom operation automatically performed by the digital camera 100 when the subject 501 approaches the digital camera 100, and the ratio of the subject image to the screen is determined by a predetermined value. The zoom-out operation for keeping the ratio within the range is shown.

図5(A)は、後述する被写体指定方法に従って被写体501が指定されたときの画角を示している。被写体指定時の被写体追尾枠500aの大きさは、基準の被写体サイズ(基準サイズ)としてメモリ117に記憶される。図5(B)は、図5(A)の状態からズーム倍率を変更しない状態で、被写体501がデジタルカメラ100に向かって近づいてきたときの画角を示している。例えば、基準の被写体サイズである被写体追尾枠500aの大きさに対して150%となる大きさをズームアウト動作の開始サイズとする。被写体追尾枠の関係が、「被写体追尾枠500b>被写体追尾枠500a×150%」となった場合、すなわち基準サイズに対して所定の変化量を超えて追尾枠が変化した場合、AZ制御部125はズームアウト動作の開始を判定する。   FIG. 5A shows the angle of view when the subject 501 is designated according to the subject designation method described later. The size of the subject tracking frame 500a when the subject is designated is stored in the memory 117 as a reference subject size (reference size). FIG. 5B shows an angle of view when the subject 501 approaches the digital camera 100 in a state where the zoom magnification is not changed from the state of FIG. 5A. For example, a size that is 150% of the size of the subject tracking frame 500a, which is the reference subject size, is set as the start size of the zoom-out operation. If the relationship between the subject tracking frames is “subject tracking frame 500b> subject tracking frame 500a × 150%”, that is, if the tracking frame changes by more than a predetermined change amount with respect to the reference size, the AZ control unit 125 Determines the start of the zoom-out operation.

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

一方、図5(D)〜(F)は、被写体501がデジタルカメラ100から遠ざかる場合に、デジタルカメラ100が自動的に行うズーム動作を例示しており、被写体像が画面に占める割合を所定の範囲内に収めるためのズームイン動作を示している。図5(D)は、後述する被写体指定方法に従って被写体501が指定されたときの画角を示している。被写体指定時の被写体追尾枠500dの大きさは、基準の被写体サイズとしてメモリ117に記憶される。   On the other hand, FIGS. 5D to 5F illustrate a zoom operation automatically performed by the digital camera 100 when the subject 501 moves away from the digital camera 100, and the ratio of the subject image to the screen is determined by a predetermined value. The zoom-in operation for keeping the area within the range is shown. FIG. 5D shows the angle of view when the subject 501 is designated according to the subject designation method described later. The size of the subject tracking frame 500d when the subject is specified is stored in the memory 117 as a reference subject size.

図5(E)は、図5(D)の状態からズーム倍率を変更しない状態で、被写体501がデジタルカメラ100から遠ざかったときの画角を示している。例えば、基準の被写体サイズである被写体追尾枠500dの大きさに対して50%となる大きさをズームイン動作の開始サイズとする。被写体追尾枠の関係が、「被写体追尾枠500e<被写体追尾枠500d×50%」となったときに、基準サイズに対して所定の変化量を超えて追尾枠が変化したと判定される。   FIG. 5E shows an angle of view when the subject 501 moves away from the digital camera 100 in a state where the zoom magnification is not changed from the state of FIG. 5D. For example, a size that is 50% of the size of the subject tracking frame 500d, which is the reference subject size, is set as the start size of the zoom-in operation. When the relationship between the subject tracking frames is “subject tracking frame 500e <subject tracking frame 500d × 50%”, it is determined that the tracking frame has changed by more than a predetermined change amount with respect to the reference size.

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

次に、図6を参照して、本実施形態における追尾防振機能について説明する。図6は、被写体601の位置を画面中央付近に保つための追尾防振機能の制御の説明図である。図6(A)は、後述する被写体指定方法に従って被写体601が指定されたときの画角を示している。図6(B)は、図6(A)の状態から被写体601が移動または手振れによって被写体601が画面の中央付近から遠ざかったときの画角を示している。例えばカメラ制御部120は、画面中央の座標をO、被写体追尾枠600bの中心位置の座標をTとすると、画面中央から被写体追尾枠600a(600b)までの距離OTを算出する。そしてカメラ制御部120は、距離OTが所定量以上の場合、追尾防振動作を開始する。   Next, a tracking stabilization function according to the present embodiment will be described with reference to FIG. FIG. 6 is an explanatory diagram of the control of the tracking stabilization function for keeping the position of the subject 601 near the center of the screen. FIG. 6A shows the angle of view when the subject 601 is designated according to the subject designation method described later. FIG. 6B illustrates an angle of view when the subject 601 moves away from the vicinity of the center of the screen due to movement or camera shake from the state of FIG. 6A. For example, assuming that the coordinates of the center of the screen are O and the coordinates of the center position of the subject tracking frame 600b are T, the camera control unit 120 calculates the distance OT from the center of the screen to the subject tracking frame 600a (600b). Then, when the distance OT is equal to or more than the predetermined amount, the camera control unit 120 starts the tracking vibration-proofing operation.

図6(C)は、図6(B)の画角から防振レンズ104の追尾防振動作によって被写体601(被写体追尾枠600c)を画面中央付近に補正した画角を示している。追尾防振動作において、光学防振制御部122は、ジャイロセンサ等の揺れ検出部119からの振れ検出情報に基づいて算出された手振れ量と、画面中央に対する被写体追尾枠600bの中心位置の移動量とを加算した値を制御出力して防振レンズ104を制御する。これにより、手振れ等による像ブレを防止しながら、被写体像のフレームアウトを効果的に防止することができる。   FIG. 6C shows the angle of view obtained by correcting the subject 601 (subject tracking frame 600c) to the vicinity of the center of the screen by the tracking stabilization operation of the image stabilizing lens 104 from the angle of view in FIG. In the tracking image stabilization operation, the optical image stabilization control unit 122 calculates the amount of camera shake calculated based on the shake detection information from the shake detection unit 119 such as a gyro sensor, and the amount of movement of the center position of the subject tracking frame 600b with respect to the center of the screen. The control output of the value obtained by adding is performed to control the image stabilizing lens 104. This makes it possible to effectively prevent the subject image from going out of frame while preventing image blur due to camera shake or the like.

次に、図7乃至図9を参照して、被写体追尾機能の処理について説明する。図7は、被写体追尾機能の全体の処理を示すフローチャートである。以下の被写体追尾機能は、特に明示的な記載がない限り、カメラ制御部120の指令に基づいて行われるものとする。   Next, the processing of the subject tracking function will be described with reference to FIGS. FIG. 7 is a flowchart showing the entire processing of the subject tracking function. The following subject tracking function is performed based on a command from the camera control unit 120 unless otherwise specified.

まずステップS700において、カメラ制御部120は、ユーザにより既に被写体が指定されているか否かを判定する。被写体が指定されている場合、ステップS708に進み、カメラ制御部120は被写体追尾の制御を実行する。一方、被写体が指定されていない場合、ステップS701に進む。   First, in step S700, the camera control unit 120 determines whether or not a subject has already been designated by the user. If the subject has been specified, the process proceeds to step S708, and the camera control unit 120 performs control of subject tracking. On the other hand, if the subject has not been specified, the process proceeds to step S701.

ステップS701において、カメラ制御部120は、ズームレンズ102の位置に基づいてズーム倍率を算出し、ズーム倍率が所定の倍率以上であるか否かを判定する。ズーム倍率が所定の倍率よりも小さい、すなわち広角である場合、ステップS702に進み、カメラ制御部120は後述する被写体指定処理を実行する。一方、ズーム倍率が所定の倍率よりも大きい、すなわち望遠である場合、ステップS703に進む。ステップS703において、カメラ制御部120は、ズームレンズ102を現在の位置(第1の位置)から広角側の位置(第2の位置)にズームアウトする。   In step S701, the camera control unit 120 calculates a zoom magnification based on the position of the zoom lens 102, and determines whether the zoom magnification is equal to or greater than a predetermined magnification. If the zoom magnification is smaller than the predetermined magnification, that is, the zoom angle is wide, the process proceeds to step S702, and the camera control unit 120 executes a subject specifying process described later. On the other hand, if the zoom magnification is larger than the predetermined magnification, that is, if it is telephoto, the process proceeds to step S703. In step S703, the camera control unit 120 zooms out the zoom lens 102 from the current position (first position) to a position on the wide angle side (second position).

ステップS701の判定処理は、被写体指定操作の支援モードを開始するか否かを判定する処理であり、ズーム倍率に応じて被写体指定操作の支援のための光学ズームアウトや電子防振を行うか否かを判定するためのものである。ズーム倍率が小さい場合(画角が広い場合)、ユーザはその画角のままでも比較的容易に被写体を指定することができるため、カメラ制御部120は、被写体指定操作を支援するためのズームアウトや電子防振の処理を行わない。一方、ズーム倍率が大きい場合(画角が狭い場合)、被写体指定の操作でデジタルカメラ100を僅かに動かすだけで画角から被写体がフレームアウトしてしまう可能性がある。したがって、カメラ制御部120は、ズームレンズ102を広角側にズームアウトするとともに、電子防振を行う被写体指定操作の支援処理を実行する。   The determination process of step S701 is a process of determining whether or not to start the support mode for the subject specification operation, and whether to perform optical zoom-out or electronic image stabilization for supporting the subject specification operation according to the zoom magnification. It is for determining whether or not. When the zoom magnification is small (when the angle of view is wide), the user can relatively easily specify the subject even with the angle of view, so that the camera control unit 120 performs zoom-out for supporting the subject specifying operation. Or electronic vibration control is not performed. On the other hand, when the zoom magnification is large (when the angle of view is narrow), there is a possibility that the subject may go out of frame from the angle of view by slightly moving the digital camera 100 by the operation of designating the subject. Therefore, the camera control unit 120 zooms out the zoom lens 102 to the wide-angle side and executes a process of supporting a subject specifying operation for performing electronic image stabilization.

ステップS703において、カメラ制御部120は、ズームレンズ102を所定の倍率だけ広角側にズームアウトさせる(光学ズームアウト動作)。ステップS703にてズームアウト動作が完了すると、ステップS704に進む。ステップS704において、カメラ制御部120は、電子防振制御部127に指令して電子防振を開始する。   In step S703, the camera control unit 120 causes the zoom lens 102 to zoom out to the wide-angle side by a predetermined magnification (optical zoom-out operation). When the zoom-out operation is completed in step S703, the process proceeds to step S704. In step S704, the camera control unit 120 instructs the electronic image stabilization control unit 127 to start electronic image stabilization.

ここで、被写体指定操作の支援モードにおける光学ズームアウトと電子防振の効果について説明する。前述のとおり、望遠で画角が狭い場合(ズーム倍率が大きい場合)、被写体を指定する操作自体によりデジタルカメラ100が動いてしまい、被写体が画角からフレームアウトする可能性がある。そこでカメラ制御部120は、光学ズームによりズームアウト動作を行うことにより、被写体のフレームアウトを防止する。   Here, the effects of the optical zoom-out and the electronic image stabilization in the support mode of the subject specification operation will be described. As described above, in the case of telephoto and a narrow angle of view (when the zoom magnification is large), the digital camera 100 may move due to the operation of designating the subject, and the subject may go out of frame from the angle of view. Therefore, the camera control unit 120 performs the zoom-out operation by the optical zoom to prevent the subject from going out of the frame.

一方、この状態では被写体像が小さくなり、画面上で被写体を指定することが困難になる。そこでカメラ制御部120は、画面の表示範囲を電子防振の制御範囲(図3の範囲301)として電子的に拡大することにより、被写体を指定しやすい大きさに表示する。さらに、この範囲で電子防振を有効にすることにより、被写体指定操作に起因する手振れを補正して被写体のフレームアウトを防止することができる。   On the other hand, in this state, the subject image becomes small, and it becomes difficult to specify the subject on the screen. Therefore, the camera control unit 120 electronically enlarges the display range of the screen as a control range of the electronic image stabilization (range 301 in FIG. 3), and displays the subject in a size that can be easily specified. Further, by enabling the electronic image stabilization in this range, it is possible to correct the camera shake caused by the subject designating operation and prevent the subject from going out of the frame.

このとき、光学ズームによってズームアウトする倍率と、電子防振による画像の拡大範囲とを合わせることで、最終的に撮影する画角と被写体指定時の画角を合わせることができる。例えば、光学ズームを1/2倍ズームアウトする場合には、電子防振の制御範囲を画像メモリ108全体の50%(表示を2倍拡大することに相当)とする。また、光学ズームのズームアウト倍率および電子防振の制御範囲は、一意の倍率とするだけでなく、撮影するズーム倍率等によって動的に変更してもよい。例えば、光学ズーム倍率が20倍のレンズ鏡筒で、5倍(ステップS701の所定ズーム倍率に相当)より望遠の場合には5倍の画角まで光学ズームをズームアウトさせる例について説明する。光学ズームをテレ端の20倍で撮影したい場合に被写体指定の支援モードを開始すると、カメラ制御部120は、光学ズームをテレ端のズーム位置から5/20=1/4倍だけズームアウトさせる。また、電子防振の制御範囲としては、画像メモリ108全体の25%の範囲を制御範囲として表示を拡大し、電子防振を実行する。また、光学ズームを10倍のズーム倍率で撮影したい場合、光学ズームのズームアウト倍率は5/10=1/2倍、電子防振の制御範囲は画像メモリ108全体の50%の範囲とする。このように、撮影するズーム倍率に応じて、光学ズームが5倍のズーム倍率となるようにズームアウト倍率および電子防振の制御範囲を変更することで、被写体指定の操作性を統一することができる。すなわちカメラ制御部120は、レンズユニットのズームアウト倍率に基づいて、電子防振制御部127による表示範囲の変更可能領域を設定することが可能である。   At this time, by adjusting the magnification for zooming out by the optical zoom and the enlargement range of the image by the electronic image stabilization, the angle of view finally photographed and the angle of view when the subject is designated can be matched. For example, when the optical zoom is zoomed out by a factor of 1/2, the control range of electronic image stabilization is set to 50% of the entire image memory 108 (corresponding to the display being enlarged twice). Further, the zoom-out magnification of the optical zoom and the control range of the electronic image stabilization may be dynamically changed according to the zoom magnification or the like for photographing as well as the unique magnification. For example, an example will be described in which a lens barrel having an optical zoom magnification of 20 times and the optical zoom is zoomed out to an angle of view of 5 times when the telephoto is larger than 5 times (corresponding to the predetermined zoom magnification in step S701). When the support mode for designating a subject is started when the optical zoom is to be photographed at 20 times the tele end, the camera control unit 120 zooms out the optical zoom from the zoom position at the tele end by 5/20 = 1/4 times. As a control range of the electronic image stabilization, the display is enlarged with a range of 25% of the entire image memory 108 as a control range, and the electronic image stabilization is executed. Further, when it is desired to take an optical zoom with a zoom magnification of 10 times, the zoom-out magnification of the optical zoom is 5/10 = 1/2 times, and the control range of the electronic image stabilization is 50% of the entire image memory 108. In this way, by changing the zoom-out magnification and the control range of the electronic image stabilization so that the optical zoom becomes the zoom magnification of 5 times in accordance with the zoom magnification to be photographed, the operability for designating the subject can be unified. it can. That is, the camera control unit 120 can set the changeable area of the display range by the electronic image stabilization control unit 127 based on the zoom-out magnification of the lens unit.

続いてステップS704において、カメラ制御部120は、電子防振を開始する。続いてステップS705において、カメラ制御部120は、被写体指定の処理を行う。ここで、図8を参照して、ステップS702、S705の被写体指定処理について説明する。図8は、被写体指定処理のフローチャートである。図8(A)は、操作部118を構成するタッチパネルを用いてユーザが所望の被写体を指定する処理例を示している。この例では、ユーザが表示部109に表示された被写体像をタッチして指定する操作を行うものとする。   Subsequently, in step S704, the camera control unit 120 starts electronic image stabilization. Subsequently, in step S705, the camera control unit 120 performs a process of specifying a subject. Here, the subject designation processing in steps S702 and S705 will be described with reference to FIG. FIG. 8 is a flowchart of the subject specifying process. FIG. 8A illustrates an example of a process in which a user specifies a desired subject using a touch panel included in the operation unit 118. In this example, it is assumed that the user performs an operation of touching and specifying the subject image displayed on the display unit 109.

まずステップS800において、カメラ制御部120は、タッチパネルが押下されたか否かを判定する。タッチパネルが押下された場合、ステップS801に進む。一方、タッチパネルが押下されない場合、ステップS800の判定処理が繰り返される。   First, in step S800, the camera control unit 120 determines whether the touch panel has been pressed. If the touch panel has been pressed, the process proceeds to step S801. On the other hand, when the touch panel is not pressed, the determination processing of step S800 is repeated.

ステップS801において、カメラ制御部120は、ユーザがタッチした位置(タッチ位置)の情報を取得する。続いてステップS802において、カメラ制御部120は、タッチ位置を被写体検出部126に通知する。そして被写体検出部126は、タッチ位置付近において顔検出を行う。ステップS802にてタッチ位置付近に顔が検出された場合、カメラ制御部120は、主被写体は人物であると判定し、ステップS803に進む。一方、ステップS802にてタッチ位置付近に顔が検出されない場合、カメラ制御部120は、主被写体は人物以外の物体であると判定し、ステップS804に進む。   In step S801, the camera control unit 120 acquires information on a position (touch position) touched by the user. Subsequently, in step S802, the camera control unit 120 notifies the subject detection unit 126 of the touch position. Then, the subject detection unit 126 performs face detection near the touch position. If a face is detected near the touch position in step S802, the camera control unit 120 determines that the main subject is a person, and proceeds to step S803. On the other hand, if no face is detected near the touch position in step S802, the camera control unit 120 determines that the main subject is an object other than a person, and proceeds to step S804.

ステップS803において、カメラ制御部120は、自動追尾の対象である人物の顔情報をメモリ117に記憶させる制御を行う。具体的な顔情報としては、被写体指定時の顔のサイズと顔の検出位置、顔の向き等の情報がある。また、デジタルカメラ100が顔認証機能を有する場合、認証ID等の識別情報もメモリ117に記憶される。   In step S803, the camera control unit 120 performs control to store the face information of the person to be automatically tracked in the memory 117. Specific face information includes information such as a face size when a subject is specified, a face detection position, and a face direction. When the digital camera 100 has a face authentication function, identification information such as an authentication ID is also stored in the memory 117.

ステップS804において、カメラ制御部120は、タッチ位置付近の特徴色を自動追尾対象の色情報としてメモリ117に記憶させる制御を行う。具体的な色情報としては、被写体指定時の特徴色とその輝度、色差の値や同一色領域のサイズ、同一色領域の重心位置等の情報がある。また、デジタルカメラ100がモノ認証機能を有する場合、認証ID等の識別情報もメモリ117に記憶される。なお、以下の説明では、顔情報および色情報を総称して、被写体情報(被写体サイズ、被写体検出位置等を含む)という。   In step S804, the camera control unit 120 performs control to store the characteristic color near the touch position in the memory 117 as color information of an automatic tracking target. As specific color information, there are information such as the characteristic color at the time of subject designation, its luminance, the value of color difference, the size of the same color area, the position of the center of gravity of the same color area, and the like. When the digital camera 100 has a mono-authentication function, identification information such as an authentication ID is also stored in the memory 117. In the following description, face information and color information are collectively referred to as subject information (including subject size, subject detection position, and the like).

ステップS803またはステップS804にて被写体情報がメモリ117に記憶された後、ステップS805に進む。ステップS805において、カメラ制御部120は、被写体追尾枠を表示する。すなわちカメラ制御部120は、被写体検出位置の中心において、被写体サイズに対応する大きさの被写体追尾枠を表示部109に表示させるように枠表示部128を制御する。その後、被写体指定処理は終了する。   After the subject information is stored in the memory 117 in step S803 or S804, the process proceeds to step S805. In step S805, the camera control unit 120 displays the subject tracking frame. That is, the camera control unit 120 controls the frame display unit 128 so that the display unit 109 displays a subject tracking frame having a size corresponding to the subject size at the center of the subject detection position. Thereafter, the subject designation processing ends.

このようにシステム制御部114において、被写体検出部126は、表示部109を介してユーザにより指定された位置、または指定された位置の近傍で被写体を検出する。そして枠表示部128は、被写体追尾枠を表示部109に表示させる。図8(A)の処理例によれば、ユーザが追尾したい被写体を、直感的な方法で簡単に指定可能となる。ただし、被写体の指定方法はこの方法に限定されない。図8(B)を参照して別の方法を説明する。   As described above, in the system control unit 114, the subject detection unit 126 detects a subject at a position designated by the user via the display unit 109 or in the vicinity of the designated position. Then, the frame display unit 128 causes the display unit 109 to display the subject tracking frame. According to the processing example of FIG. 8A, the subject that the user wants to track can be easily specified in an intuitive manner. However, the method of designating the subject is not limited to this method. Another method will be described with reference to FIG.

図8(B)は、操作部118を構成する操作部材として、被写体指定用スイッチを用いて、ユーザが被写体を指定する場合の処理例を示すフローチャートである。まずステップS806にて枠表示部128は、表示部109の画面中央付近に被写体指定の目安となる枠を表示する。ユーザは、この枠を目安として追尾したい被写体の画像を画面中央付近に収めるようにデジタルカメラ100の向きを調整する。   FIG. 8B is a flowchart illustrating a processing example when the user specifies a subject by using a subject specifying switch as an operation member configuring the operation unit 118. First, in step S806, the frame display unit 128 displays a frame serving as an indication of subject specification near the center of the screen of the display unit 109. The user adjusts the direction of the digital camera 100 so that the image of the subject to be tracked is placed near the center of the screen using the frame as a guide.

続いてステップS807において、カメラ制御部120は、被写体指定用スイッチが押下されたか否かを判定する。被写体指定用スイッチが押下された場合、ステップS808に進む。一方、被写体指定用スイッチが押下されない場合、待ち状態でステップS807の判定処理が繰り返される。   Subsequently, in step S807, the camera control unit 120 determines whether the subject designation switch has been pressed. If the subject designation switch has been pressed, the process advances to step S808. On the other hand, when the subject specifying switch is not pressed, the determination process of step S807 is repeated in a waiting state.

ステップS808において、カメラ制御部120は、被写体検出部126を制御して、画面中央付近で顔検出を行う。画面中央付近に顔が検出された場合、カメラ制御部120は、主被写体は人物であると判定し、ステップS809に進む。一方、画面中央付近に顔が検出されない場合、カメラ制御部120は、主被写体は人物以外の物体であると判定し、ステップS810に進む。   In step S808, the camera control unit 120 controls the subject detection unit 126 to perform face detection near the center of the screen. If a face is detected near the center of the screen, the camera control unit 120 determines that the main subject is a person, and proceeds to step S809. On the other hand, if no face is detected near the center of the screen, the camera control unit 120 determines that the main subject is an object other than a person, and proceeds to step S810.

ステップS809においては図8(A)のステップS803と同様の処理が行われ、ステップS810においては図8(A)のステップS804と同様の処理が行われるため、これらの説明を省略する。ステップS809またはステップS810にて被写体情報がメモリ117に記憶された後、ステップS811に進む。ステップS811において、カメラ制御部120は、被写体追尾枠を表示する。その後、被写体指定処理は終了する。   In step S809, the same processing as in step S803 of FIG. 8A is performed, and in step S810, the same processing as in step S804 of FIG. 8A is performed, and thus description thereof will be omitted. After the subject information is stored in the memory 117 in step S809 or S810, the process proceeds to step S811. In step S811, the camera control unit 120 displays the subject tracking frame. Thereafter, the subject designation processing ends.

このように図8(B)の処理例では、被写体検出部126は、表示部109の画面中央位置または画面中央位置の近傍で被写体を検出する。そして枠表示部128は、被写体の位置を示す被写体追尾枠を表示部109に表示させる。デジタルカメラ100がタッチパネル等の操作部材を有しない場合でも、ユーザは被写体を簡単に指定することができる。   As described above, in the processing example of FIG. 8B, the subject detection unit 126 detects the subject at or near the screen center position of the display unit 109. Then, the frame display unit 128 causes the display unit 109 to display a subject tracking frame indicating the position of the subject. Even when the digital camera 100 does not have an operation member such as a touch panel, the user can easily specify a subject.

なお被写体指定処理に関して、デジタルカメラ100が操作部118を構成するタッチパネルおよび被写体指定用スイッチの両方を有する場合、図8(A)の方法と図8(B)の方法との両方を同時に適用してもよい。また、処理の流れに応じて適用する被写体指定処理を変更してもよい。   When the digital camera 100 has both a touch panel and a switch for designating a subject that constitutes the operation unit 118 with respect to the subject designation process, both the method of FIG. 8A and the method of FIG. You may. Further, the subject specifying process to be applied may be changed according to the flow of the process.

図7のステップS705の被写体指定処理が終了すると、ステップS706に進み、被写体指定操作の支援モードの停止処理を開始する。ステップS706において、カメラ制御部120は、被写体指定支援のための電子防振の制御を終了する。ステップS706にて電子防振が終了すると、ステップS707に進む。ステップS707において、カメラ制御部120は、ステップS703にてズームアウトさせた光学ズームを元のズーム倍率までズームインする。   When the subject specifying process in step S705 in FIG. 7 ends, the process advances to step S706 to start a process of stopping the support mode for the subject specifying operation. In step S706, the camera control unit 120 ends the electronic image stabilization control for the subject specification support. When the electronic image stabilization is completed in step S706, the process proceeds to step S707. In step S707, the camera control unit 120 zooms in the optical zoom zoomed out in step S703 to the original zoom magnification.

ここで、図9を参照して、ステップS707の光学ズームイン処理について説明する。図9は、被写体指定後の光学ズームイン処理のフローチャートである。まずステップS900において、カメラ制御部120は、ジャイロセンサ等の揺れ検出部119から振れ検出情報を取得して、デジタルカメラ100の揺れ量(振れ量)が所定値未満である(所定の振れ量よりも小さい)か否かを判定する。被写体を指定した直後は、タッチパネルや被写体指定用の操作スイッチの操作によって画角が安定していない状態である可能性がある。このためカメラ制御部120は、デジタルカメラ100の揺れを検出することで被写体指定の操作が終了してデジタルカメラ100をしっかりと構えた状態に戻ったか否かを判定する。ステップS900にて揺れ量が所定値未満である場合、ステップS901に進む。   Here, the optical zoom-in process of step S707 will be described with reference to FIG. FIG. 9 is a flowchart of the optical zoom-in process after the subject is specified. First, in step S900, the camera control unit 120 acquires shake detection information from the shake detection unit 119 such as a gyro sensor, and the shake amount (shake amount) of the digital camera 100 is less than a predetermined value (from the predetermined shake amount). Is also smaller). Immediately after the subject is specified, the angle of view may not be stable due to the operation of the touch panel or the operation switch for specifying the subject. For this reason, the camera control unit 120 determines whether the operation of designating the subject has been completed and the digital camera 100 has returned to a firmly held state by detecting the shaking of the digital camera 100. If the swing amount is smaller than the predetermined value in step S900, the process proceeds to step S901.

ステップS901において、カメラ制御部120は、被写体検出部126から図7のステップS705にて指定された被写体の位置(指定被写体の位置)を取得し、被写体の位置が画角の中央付近のズームイン画角(所定の範囲内)に収まっているか否かを判定する。この判定は、被写体を画面の周辺で指定した場合に、ズームイン動作によって画角からフレームアウトしてしまうことを防止するための判定である。被写体がズームイン画角内に収まっている場合、ステップS902に進む。   In step S901, the camera control unit 120 acquires the position of the subject specified in step S705 of FIG. 7 (the position of the specified subject) from the subject detection unit 126, and the position of the subject is zoomed in near the center of the angle of view. It is determined whether it is within the corner (within a predetermined range). This determination is for preventing the frame from being out of the angle of view due to the zoom-in operation when the subject is specified around the screen. If the subject is within the zoomed-in angle of view, the process advances to step S902.

ステップS902において、カメラ制御部120は、揺れ量が所定値未満であって、かつ指定被写体の位置がズームイン画角に収まっている、すなわちフレーミングが安定した状態が所定時間継続しているか否かを判定する。ステップS902にて所定時間経過した場合、ステップS903に進む。ステップS903において、カメラ制御部120は、光学ズームのズームイン動作(光学ズームイン動作)を開始する。一方、ステップS900〜S902のいずれかの条件を満たさない場合、ステップS900に戻り、カメラ制御部120は全ての条件を満たすまで判定を繰り返す。   In step S902, the camera control unit 120 determines whether or not the amount of shaking is less than the predetermined value and the position of the designated subject is within the zoom-in angle of view, that is, whether the framing is stable for a predetermined time. judge. If the predetermined time has elapsed in step S902, the process proceeds to step S903. In step S903, the camera control unit 120 starts an optical zoom-in operation (optical zoom-in operation). On the other hand, if any of the conditions in steps S900 to S902 is not satisfied, the process returns to step S900, and the camera control unit 120 repeats the determination until all the conditions are satisfied.

本実施形態において、カメラ制御部120は、ステップS706にて電子防振の制御を終了した後、ステップS900〜S902にて被写体指定後のフレーミングの安定待ちの処理を実行するが、安定待ちの処理の後に電子防振の制御を終了してもよい。また、デジタルカメラ100の揺れまたは被写体の位置のいずれか一方が所定の範囲に収まるように制御してもよい。   In the present embodiment, after ending the electronic image stabilization control in step S706, the camera control unit 120 executes the framing stabilization wait processing after the subject designation in steps S900 to S902. After that, the control of the electronic image stabilization may be ended. Further, control may be performed such that either the swing of the digital camera 100 or the position of the subject falls within a predetermined range.

ステップS903において、カメラ制御部120は、ズームレンズ102を図7のステップS703でズームアウトする前のズーム倍率までズームインし、光学ズームイン処理を終了する。図7のステップS707にて光学ズームイン処理が終了すると、ステップS708に進む。   In step S903, the camera control unit 120 zooms in the zoom lens 102 to the zoom magnification before zooming out in step S703 in FIG. 7, and ends the optical zoom-in process. When the optical zoom-in process ends in step S707 of FIG. 7, the process proceeds to step S708.

ステップS708において、カメラ制御部120は、被写体追尾機能の制御を行う。すなわちカメラ制御部120は、ステップS705にて指定した被写体に対して、前述した各追尾機能の制御を実行する。これにより、動いている被写体に対しても露出やピント、画角を合わせ続けることができ、静止画撮影のレリーズタイムラグの短縮や動画の追従性能を向上させることが可能となる。   In step S708, the camera control unit 120 controls the subject tracking function. That is, the camera control unit 120 executes the control of each tracking function described above for the subject specified in step S705. As a result, the exposure, focus, and angle of view can be continuously adjusted even for a moving subject, so that the release time lag of still image shooting can be reduced and the performance of following a moving image can be improved.

続いてステップS709において、カメラ制御部120は、レリーズスイッチが操作されたか否かを判定する。レリーズスイッチが操作された場合、ステップS710に進む。一方、レリーズスイッチが操作されない場合、ステップS711に進む。   Subsequently, in step S709, the camera control unit 120 determines whether the release switch has been operated. If the release switch has been operated, the process proceeds to step S710. On the other hand, if the release switch has not been operated, the process proceeds to step S711.

静止画モードにおいてレリーズスイッチが全押しされると、ステップS710において、カメラ制御部120は静止画の撮影を実行する。ステップS711において、カメラ制御部120は、被写体追尾機能が終了したか否かを判定する。被写体追尾機能が終了していない場合、ステップS700に戻り、カメラ制御部120は被写体追尾機能の制御を継続する。例えば、メニュー等で被写体追尾しないモードが選択された場合や、モードを変更する操作ボタン等により機能を終了する操作が実行された場合、被写体追尾機能を終了する。   When the release switch is fully pressed in the still image mode, in step S710, the camera control unit 120 executes shooting of a still image. In step S711, the camera control unit 120 determines whether the subject tracking function has ended. If the subject tracking function has not ended, the process returns to step S700, and the camera control unit 120 continues to control the subject tracking function. For example, when a mode that does not track the subject is selected in a menu or the like, or when an operation to end the function is performed by an operation button or the like that changes the mode, the subject tracking function ends.

このように本実施形態において、制御装置(システム制御部114)は、制御手段(カメラ制御部120)および電子防振手段(電子防振制御部127)を有する。制御手段は、被写体指定手段(操作部118)により(ユーザにより被写体指定手段を介して)指定された被写体に対して追従制御を行うようにレンズユニット(レンズ鏡筒101)を制御する。電子防振手段は、振れ検出手段(揺れ検出部119)により検出された振れに基づいて、電子的に像ブレ補正を行う。制御手段は、被写体が指定される前、電子防振手段による像ブレ補正を行うとともに、レンズユニットを第1の位置から第1の位置よりも広角側の第2の位置へズームアウトする(S703、S704)。   As described above, in the present embodiment, the control device (the system control unit 114) includes the control unit (the camera control unit 120) and the electronic image stabilization unit (the electronic image stabilization control unit 127). The control unit controls the lens unit (the lens barrel 101) so as to perform tracking control on the subject specified by the subject specifying unit (the operation unit 118) (via the subject specifying unit by the user). The electronic image stabilization unit electronically performs image blur correction based on the shake detected by the shake detection unit (shake detection unit 119). The control unit performs image blur correction by the electronic image stabilizing unit before the subject is specified, and zooms out the lens unit from the first position to the second position on the wider angle side than the first position (S703). , S704).

好ましくは、制御手段は、被写体が指定された後、電子防振手段による像ブレ補正を停止するとともに、レンズユニットを第2の位置から第1の位置へズームインする(S706、S707)。より好ましくは、制御手段は、被写体が指定された後、振れ検出手段で検出された振れ量(揺れ量)が所定の振れ量(所定値)よりも小さい場合、電子防振手段による像ブレ補正を停止するとともに、レンズユニットを第2の位置から第1の位置へズームインする。また好ましくは、制御手段は、被写体が指定された後、被写体検出手段により検出された被写体の位置が画像における所定の範囲内にある場合、電子防振手段による像ブレ補正を停止するとともに、レンズユニットを第2の位置から第1の位置へズームインする。   Preferably, after the subject is specified, the control unit stops image blur correction by the electronic image stabilizing unit and zooms in the lens unit from the second position to the first position (S706, S707). More preferably, the control means, after the subject is designated, when the shake amount (shake amount) detected by the shake detection means is smaller than a predetermined shake amount (predetermined value), the image blur correction by the electronic image stabilization means. Is stopped, and the lens unit is zoomed in from the second position to the first position. Also preferably, when the position of the subject detected by the subject detection unit is within a predetermined range in the image after the designation of the subject, the control unit stops the image stabilization by the electronic image stabilization unit, The unit zooms in from the second position to the first position.

好ましくは、電子防振手段は、振れに基づいて、レンズユニットを介して形成された画像の表示範囲を変更することにより、像ブレ補正を行う。より好ましくは、制御手段は、レンズユニットのズームアウト倍率に基づいて、電子防振手段による表示範囲の変更可能領域を設定する。また好ましくは、第1の位置は、ユーザにより設定されたズーム位置である。また好ましくは、制御手段は、レンズユニットを構成するズームレンズ102、フォーカスレンズ103、防振レンズ104、絞り、または、シャッタ(絞り/シャッタ105)のうち少なくとも一つを制御して追従制御を行う。   Preferably, the electronic image stabilization unit performs image blur correction by changing a display range of an image formed via the lens unit based on the shake. More preferably, the control means sets a changeable area of the display range by the electronic image stabilizing means based on the zoom-out magnification of the lens unit. Also preferably, the first position is a zoom position set by a user. More preferably, the control means controls at least one of the zoom lens 102, the focus lens 103, the anti-vibration lens 104, the aperture, or the shutter (aperture / shutter 105) constituting the lens unit to perform tracking control. .

以上のように本実施形態では、被写体指定の操作を行う際に、カメラ制御部120は、光学ズームをズームアウトさせるとともに電子防振の制御を実行する。またカメラ制御部120は、光学ズームのズームアウト倍率に応じて電子防振の制御範囲を変更する。これにより、動いている被写体に対して、露出やピント、画角を追尾させる被写体追尾機能において、被写体指定の操作で発生する手振れにより被写体が画角からフレームアウトすることを防止することができる。   As described above, in the present embodiment, when performing an operation of designating a subject, the camera control unit 120 performs zoom-out of the optical zoom and control of electronic image stabilization. The camera control unit 120 changes the control range of electronic image stabilization according to the zoom-out magnification of the optical zoom. This makes it possible to prevent the subject from going out of frame from the angle of view due to camera shake caused by an operation of designating the subject in the subject tracking function of tracking the exposure, focus, and angle of view of a moving subject.

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

本実施形態によれば、被写体追尾機能の実行中に、被写体像が画面からフレームアウトすることを防止し、操作性を向上させることが可能な制御装置、撮像装置、制御方法、プログラム、および、記憶媒体を提供することができる。   According to the present embodiment, a control device, an imaging device, a control method, a program, and the like that can prevent a subject image from going out of a frame during execution of a subject tracking function and improve operability are provided. A storage medium can be provided.

以上、本発明の好ましい実施形態について説明したが、本発明はこれらの実施形態に限定されず、その要旨の範囲内で種々の変形及び変更が可能である。   The preferred embodiments of the present invention have been described above, but the present invention is not limited to these embodiments, and various modifications and changes can be made within the scope of the gist.

114 システム制御部(制御装置)
118 操作部(被写体指定手段)
119 揺れ検出部(振れ検出手段)
120 カメラ制御部(制御手段)
127 電子防振制御部(電子防振手段)
114 System control unit (control device)
118 Operation unit (subject specifying means)
119 Shake detection unit (shake detection means)
120 Camera control unit (control means)
127 Electronic anti-vibration control unit (electronic anti-vibration means)

Claims (12)

被写体指定手段により指定された被写体に対して追従制御を行うようにレンズユニットを制御する制御手段と、
振れ検出手段により検出された振れに基づいて、電子的に像ブレ補正を行う電子防振手段と、を有し、
前記制御手段は、前記被写体が指定される前、前記電子防振手段による前記像ブレ補正を行うとともに、前記レンズユニットを第1の位置から前記第1の位置よりも広角側の第2の位置へズームアウトすることを特徴とする制御装置。
Control means for controlling the lens unit so as to perform tracking control on the subject designated by the subject designating means;
An electronic image stabilization unit that electronically performs image blur correction based on the shake detected by the shake detection unit,
The control unit performs the image blur correction by the electronic image stabilizing unit before the subject is specified, and moves the lens unit from a first position to a second position on a wider angle side than the first position. A control device characterized by zooming out.
前記制御手段は、前記被写体が指定された後、前記電子防振手段による前記像ブレ補正を停止するとともに、前記レンズユニットを前記第2の位置から前記第1の位置へズームインすることを特徴とする請求項1に記載の制御装置。   The control means stops the image blur correction by the electronic image stabilization means after the subject is specified, and zooms in the lens unit from the second position to the first position. The control device according to claim 1. 前記制御手段は、前記被写体が指定された後、前記振れ検出手段により検出された振れ量が所定の振れ量よりも小さい場合、前記電子防振手段による前記像ブレ補正を停止するとともに、前記レンズユニットを前記第2の位置から前記第1の位置へズームインすることを特徴とする請求項2に記載の制御装置。   When the shake amount detected by the shake detection unit is smaller than a predetermined shake amount after the subject is specified, the control unit stops the image blur correction by the electronic image stabilization unit, and sets the lens 3. The control device according to claim 2, wherein the unit zooms in from the second position to the first position. 前記制御手段は、前記被写体が指定された後、被写体検出手段により検出された前記被写体の位置が画像における所定の範囲内にある場合、前記電子防振手段による前記像ブレ補正を停止するとともに、前記レンズユニットを前記第2の位置から前記第1の位置へズームインすることを特徴とする請求項2に記載の制御装置。   The control unit, after the subject is specified, when the position of the subject detected by the subject detection unit is within a predetermined range in the image, while stopping the image blur correction by the electronic image stabilization unit, The control device according to claim 2, wherein the lens unit zooms in from the second position to the first position. 前記電子防振手段は、前記振れに基づいて、前記レンズユニットを介して形成された画像の表示範囲を変更することにより、前記像ブレ補正を行うことを特徴とする請求項1乃至4のいずれか1項に記載の制御装置。   5. The electronic image stabilization unit according to claim 1, wherein the electronic image stabilization unit performs the image blur correction by changing a display range of an image formed through the lens unit based on the shake. The control device according to claim 1. 前記制御手段は、前記レンズユニットのズームアウト倍率に基づいて、前記電子防振手段による前記表示範囲の変更可能領域を設定することを特徴とする請求項5に記載の制御装置。   The control device according to claim 5, wherein the control unit sets a changeable area of the display range by the electronic image stabilizing unit based on a zoom-out magnification of the lens unit. 前記第1の位置は、ユーザにより設定されたズーム位置であることを特徴とする請求項1乃至6のいずれか1項に記載の制御装置。   The control device according to any one of claims 1 to 6, wherein the first position is a zoom position set by a user. 前記制御手段は、前記レンズユニットを構成するズームレンズ、フォーカスレンズ、防振レンズ、絞り、および、シャッタのうち少なくとも1つを制御して前記追従制御を行うことを特徴とする請求項1乃至7のいずれか1項に記載の制御装置。   8. The control device according to claim 1, wherein the control unit controls the following by controlling at least one of a zoom lens, a focus lens, an anti-vibration lens, a diaphragm, and a shutter included in the lens unit. 9. The control device according to any one of claims 1 to 4. 請求項1乃至8のいずれか1項に記載の制御装置と、
前記レンズユニットを介して前記被写体を撮像する撮像素子と、を有することを特徴とする撮像装置。
A control device according to any one of claims 1 to 8,
An image pickup device for picking up an image of the subject via the lens unit.
被写体が指定される前、電子防振手段による像ブレ補正を行うとともに、レンズユニットを第1の位置から前記第1の位置よりも広角側の第2の位置へズームアウトするステップと、
被写体指定手段から、前記被写体が指定されたことを示す情報を取得するステップと、
前記被写体が指定された後、前記電子防振手段による前記像ブレ補正を停止するとともに、前記レンズユニットを前記第2の位置から前記第1の位置へズームインするステップと、を有することを特徴とする制御方法。
Before the subject is designated, performing image blur correction by the electronic image stabilizing unit, and zooming out the lens unit from the first position to a second position wider than the first position,
Obtaining information indicating that the subject has been designated from the subject designating means;
Stopping the image blur correction by the electronic image stabilization unit after the subject is specified, and zooming in the lens unit from the second position to the first position. How to control.
被写体が指定される前、電子防振手段による像ブレ補正を行うとともに、レンズユニットを第1の位置から前記第1の位置よりも広角側の第2の位置へズームアウトするステップと、
被写体指定手段から、前記被写体が指定されたことを示す情報を取得するステップと、
前記被写体が指定された後、前記電子防振手段による前記像ブレ補正を停止するとともに、前記レンズユニットを前記第2の位置から前記第1の位置へズームインするステップと、をコンピュータに実行させることを特徴とするプログラム。
Before the subject is designated, performing image blur correction by the electronic image stabilizing unit, and zooming out the lens unit from the first position to a second position wider than the first position,
Obtaining information indicating that the subject has been designated from the subject designating means;
Stopping the image blur correction by the electronic image stabilizing unit after the subject is specified, and zooming in the lens unit from the second position to the first position. Program characterized by the following.
請求項11に記載のプログラムを記憶していることを特徴とする記憶媒体。
A storage medium storing the program according to claim 11.
JP2018117103A 2018-06-20 2018-06-20 Control device, imaging device, control method, program, and storage medium Pending JP2019219529A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2018117103A JP2019219529A (en) 2018-06-20 2018-06-20 Control device, imaging device, control method, program, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2018117103A JP2019219529A (en) 2018-06-20 2018-06-20 Control device, imaging device, control method, program, and storage medium

Publications (1)

Publication Number Publication Date
JP2019219529A true JP2019219529A (en) 2019-12-26

Family

ID=69096384

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018117103A Pending JP2019219529A (en) 2018-06-20 2018-06-20 Control device, imaging device, control method, program, and storage medium

Country Status (1)

Country Link
JP (1) JP2019219529A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021161959A1 (en) * 2020-02-14 2021-08-19 ソニーグループ株式会社 Information processing device, information processing method, information processing program, imaging device, imaging device control method, control program, and imaging system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021161959A1 (en) * 2020-02-14 2021-08-19 ソニーグループ株式会社 Information processing device, information processing method, information processing program, imaging device, imaging device control method, control program, and imaging system

Similar Documents

Publication Publication Date Title
US10462374B2 (en) Zooming control apparatus, image capturing apparatus and control methods thereof
US9380201B2 (en) Image capture apparatus and control method therefor
US9253410B2 (en) Object detection apparatus, control method therefor, image capturing apparatus, and storage medium
JP2016122029A (en) Zoom control device, imaging device, zoom control device control method, zoom control device control program, and storage medium
JP2019029998A (en) Imaging apparatus, control method of imaging apparatus and control program
JP6643036B2 (en) Zoom control device, control method for zoom control device, control program for zoom control device, and storage medium
JP6188474B2 (en) Zoom control device, control method for zoom control device, control program for zoom control device, and storage medium
JP5744581B2 (en) Imaging apparatus and control method thereof
JP6245923B2 (en) IMAGING DEVICE, IMAGING DEVICE CONTROL METHOD, IMAGING DEVICE CONTROL PROGRAM, AND STORAGE MEDIUM
JP5886623B2 (en) Imaging apparatus and control method thereof
JP6289207B2 (en) IMAGING DEVICE, IMAGING DEVICE CONTROL METHOD, IMAGING DEVICE CONTROL PROGRAM, AND STORAGE MEDIUM
JP2019219529A (en) Control device, imaging device, control method, program, and storage medium
US11265478B2 (en) Tracking apparatus and control method thereof, image capturing apparatus, and storage medium
JP6611585B2 (en) Zoom control device, zoom control method, and imaging device
JP2014225854A (en) Imaging device and method for controlling the same
JP2017134363A (en) Lens control device, lens control method, program
JP2017200131A (en) Field angle control device and field angle control method
JP2021019255A (en) Imaging device and method of controlling the same
JP6234103B2 (en) Zoom control device, control method for zoom control device, control program for zoom control device, and storage medium
JP2014103489A (en) Imaging apparatus and control method thereof
JP6231768B2 (en) Imaging apparatus and control method thereof
JP2018014680A (en) Imaging apparatus, control method, and program
JP2020101730A (en) Imaging device and control method for the same
JP2020198536A (en) Controller, imaging apparatus, control method, and program
JP2017194554A (en) Imaging device and control method of the same