JP2020198536A - Controller, imaging apparatus, control method, and program - Google Patents

Controller, imaging apparatus, control method, and program Download PDF

Info

Publication number
JP2020198536A
JP2020198536A JP2019103425A JP2019103425A JP2020198536A JP 2020198536 A JP2020198536 A JP 2020198536A JP 2019103425 A JP2019103425 A JP 2019103425A JP 2019103425 A JP2019103425 A JP 2019103425A JP 2020198536 A JP2020198536 A JP 2020198536A
Authority
JP
Japan
Prior art keywords
zoom
subject
responsiveness
subject size
size information
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
JP2019103425A
Other languages
Japanese (ja)
Inventor
彩里 西
Sairi Nishi
彩里 西
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 JP2019103425A priority Critical patent/JP2020198536A/en
Publication of JP2020198536A publication Critical patent/JP2020198536A/en
Pending legal-status Critical Current

Links

Landscapes

  • Lens Barrels (AREA)
  • Studio Devices (AREA)

Abstract

To provide a controller capable of executing appropriate automatic zooming according to the responsiveness of a zooming operation.SOLUTION: A controller (125), controlling zooming means (124, 113) changing an imaging magnification, includes: calculation means (201) of calculating an object size on the basis of a picked-up image; first determination means (202) of determining a target object size; and second determination means (203) of determining a zooming speed on the basis of the object size and the target object size. The calculation means changes a calculation method of the subject size on the basis of responsiveness of a zooming operation by the zooming means.SELECTED DRAWING: Figure 6

Description

本発明は、被写体を検出してズーム動作を制御する制御装置および撮像装置に関する。 The present invention relates to a control device and an imaging device that detect a subject and control a zoom operation.

従来、ズームレンズを駆動して光学的な変倍(光学ズーム)を行う機能、および、撮影画像の一部を拡大して電子的な変倍(電子ズーム)を行う機能を有する撮像装置が知られている。また、被写体の検出情報に応じて自動でズーム倍率を変更するオートズーム機能を有する撮像装置が知られている。特許文献1には、移動する被写体の大きさを一定に保ちながら自動でズームを行うオートズーム機能を有し、ユーザが選択したズーム制御の基準となる被写体サイズと検出された被写体サイズとの差異に応じてズーム速度を変更する構成が開示されている。 Conventionally, an imaging device having a function of driving a zoom lens to perform optical scaling (optical zoom) and a function of enlarging a part of a captured image to perform electronic scaling (electronic zoom) has been known. Has been done. Further, there is known an imaging device having an auto-zoom function that automatically changes the zoom magnification according to the detection information of a subject. Patent Document 1 has an auto-zoom function that automatically zooms while keeping the size of a moving subject constant, and is a difference between a subject size that is a reference for zoom control selected by the user and a detected subject size. A configuration is disclosed in which the zoom speed is changed according to the above.

特開2016−25376号公報Japanese Unexamined Patent Publication No. 2016-25376

ところで、ユーザ(カメラ)が被写体に対して近づくまたは遠ざかりながら、被写体サイズを一定に保つようにズームを行う撮影方法(ドリーズーム撮影)がある。ドリーズーム撮影において被写体のサイズを常に一定に保つには、被写体サイズの変化に応じて、素早く画角を調整する必要がある。このため、被写体サイズの変化に対するズーム動作の応答性を高くしなければならない。 By the way, there is a shooting method (dolly zoom shooting) in which a user (camera) zooms so as to keep the subject size constant while approaching or moving away from the subject. In order to keep the size of the subject constant in Dolly Zoom shooting, it is necessary to quickly adjust the angle of view according to the change in the size of the subject. Therefore, it is necessary to improve the responsiveness of the zoom operation to a change in the subject size.

しかし、特許文献1に開示された構成では、被写体サイズの誤検知によるズームの誤動作を防止するため、ズームの動き出し判定を行う。その結果、ズーム動作の応答性が低下するため、ドリーズーム撮影を行う場合には所望の映像を撮影することができない。このように、撮影条件に応じて必要とされるズーム動作の応答性は異なるため、単一のズーム動作の応答性だけでは、ズームの誤動作防止や被写体のサイズ変化に対する素早い画角調整を同時に達成することができない。 However, in the configuration disclosed in Patent Document 1, in order to prevent a malfunction of the zoom due to an erroneous detection of the subject size, the movement start determination of the zoom is performed. As a result, the responsiveness of the zoom operation is lowered, and it is not possible to shoot a desired image when performing dolly zoom shooting. In this way, the responsiveness of the zoom operation required differs depending on the shooting conditions, so the responsiveness of a single zoom operation alone can simultaneously prevent zoom malfunctions and quickly adjust the angle of view in response to changes in the size of the subject. Can not do it.

そこで本発明は、ズーム動作の応答性に応じて適切なオートズームを実行することが可能な制御装置、撮像装置、制御方法、および、プログラムを提供することを目的とする。 Therefore, an object of the present invention is to provide a control device, an image pickup device, a control method, and a program capable of performing an appropriate auto zoom according to the responsiveness of a zoom operation.

本発明の一側面としての制御装置は、撮像倍率を変更するズーム手段を制御する制御装置であって、撮像画像に基づいて被写体サイズを算出する算出手段と、目標被写体サイズを決定する第1の決定手段と、前記被写体サイズと前記目標被写体サイズとに基づいてズーム速度を決定する第2の決定手段とを有し、前記算出手段は、前記ズーム手段によるズーム動作の応答性に基づいて、前記被写体サイズの算出方法を変更する。 The control device as one aspect of the present invention is a control device that controls the zoom means for changing the imaging magnification, and is a calculation means for calculating the subject size based on the captured image and a first method for determining the target subject size. It has a determination means and a second determination means for determining the zoom speed based on the subject size and the target subject size, and the calculation means is based on the responsiveness of the zoom operation by the zoom means. Change the calculation method of the subject size.

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

本発明によれば、ズーム動作の応答性に応じて適切なオートズームを実行することが可能な制御装置、撮像装置、制御方法、および、プログラムを提供することができる。 According to the present invention, it is possible to provide a control device, an image pickup device, a control method, and a program capable of performing an appropriate auto zoom according to the responsiveness of a zoom operation.

各実施例における撮像装置のブロック図である。It is a block diagram of the image pickup apparatus in each Example. 各実施例におけるAZ制御部のブロック図である。It is a block diagram of the AZ control unit in each embodiment. 実施例1におけるオートズーム撮影の一例を示す図である。It is a figure which shows an example of the auto-zoom photography in Example 1. FIG. 実施例1におけるオートズーム撮影の一例を示す図である。It is a figure which shows an example of the auto-zoom photography in Example 1. FIG. 実施例1におけるオートズーム制御を示すフローチャートである。It is a flowchart which shows the auto zoom control in Example 1. FIG. 実施例1における被写体サイズの平均化処理を示すフローチャートである。It is a flowchart which shows the averaging process of the subject size in Example 1. FIG. 実施例1におけるズームの速度の算出方法を示す図である。It is a figure which shows the calculation method of the zoom speed in Example 1. FIG. 実施例2における被写体サイズの平均化処理を示すフローチャートである。It is a flowchart which shows the averaging process of the subject size in Example 2. FIG. 実施例2における被写体サイズの平均化処理を示すフローチャートである。It is a flowchart which shows the averaging process of the subject size in Example 2. FIG. 実施例2における被写体サイズの平均化処理を示すフローチャートである。It is a flowchart which shows the averaging process of the subject size in Example 2. FIG. 実施例3における被写体サイズの間引き処理を示すフローチャートである。It is a flowchart which shows the thinning-out process of the subject size in Example 3. 実施例4における被写体サイズの間引き処理を示すフローチャートである。It is a flowchart which shows the thinning-out process of the subject size in Example 4. 実施例4における被写体サイズの間引き処理を示すフローチャートである。It is a flowchart which shows the thinning-out process of the subject size in Example 4. 実施例4における被写体サイズの間引き処理を示すフローチャートである。It is a flowchart which shows the thinning-out process of the subject size in Example 4. 実施例5における被写体サイズのフィルタリング処理を示すフローチャートである。It is a flowchart which shows the filtering process of the subject size in Example 5. 実施例6における被写体サイズのフィルタリング処理を示すフローチャートである。It is a flowchart which shows the filtering process of the subject size in Example 6. 実施例6における被写体サイズのフィルタリング処理を示すフローチャートである。It is a flowchart which shows the filtering process of the subject size in Example 6. 実施例6における被写体サイズのフィルタリング処理を示すフローチャートである。It is a flowchart which shows the filtering process of the subject size in Example 6.

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

まず、図1を参照して、本実施形態における撮像装置の構成について説明する。図1は、撮像装置100のブロック図であり、一例として、被写体追尾機能を有するデジタルカメラの構成を示している。 First, the configuration of the imaging device according to the present embodiment will be described with reference to FIG. FIG. 1 is a block diagram of the image pickup apparatus 100, and shows the configuration of a digital camera having a subject tracking function as an example.

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

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

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

撮影処理によって生成された画像データは、インターフェース(I/F)部115を介して記録部116に送られて記録される。画像データは、外部記録媒体、または不揮発性のメモリ117、あるいはそれらの両方に記録される。外部記録媒体は、撮像装置100に装着して使用されるメモリカード等である。不揮発性のメモリ117は、撮像装置100に内蔵されている記憶媒体である。メモリ117は、プログラムデータや画像データの他に、撮像装置100の設定等の情報を記憶する。操作部118は、ズーム操作部材や撮影開始を指示するレリーズスイッチ、被写体の指定や撮像装置100の設定を行うタッチパネルや操作スイッチ等を含む。操作部118の操作信号は、システム制御部114に送られる。 The image data generated by the photographing process is sent to the recording unit 116 via the interface (I / F) unit 115 and recorded. The image data is recorded in an external recording medium, a non-volatile memory 117, or both. The external recording medium is a memory card or the like that is used by being attached to the image pickup apparatus 100. The non-volatile memory 117 is a storage medium built in the image pickup apparatus 100. The memory 117 stores information such as settings of the image pickup apparatus 100 in addition to program data and image data. The operation unit 118 includes a zoom operation member, a release switch for instructing the start of shooting, a touch panel for designating a subject and setting the image pickup device 100, an operation switch, and the like. 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 includes an arithmetic unit such as a CPU (central processing unit). The system control unit 114 controls the entire image pickup apparatus 100 by sending control commands to each unit in response to a user operation. The system control unit 114 performs various control programs stored in the memory 117, for example, control of the image sensor 106, AE / AF control, optical / electronic vibration isolation control, zoom control (including auto zoom processing), and the like. Run the program.

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

AE制御部(自動露出制御部)121は、画像処理部107での画像処理によって得られた測光値に基づいて露出制御値(絞り値及びシャッタ速度)を演算する。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 and shutter speed) based on a photometric value obtained by image processing by the image processing unit 107. The AE control unit 121 calculates the brightness value (photometric value) in an arbitrary area (photometric frame) in the screen according to the set photometric method. As the metering method, spot metering that measures at a specific set position, evaluation metering that the camera automatically determines the position of the metering frame according to the scene, and average metering over the entire screen with an emphasis on the center of the screen There are metering methods such as center-weighted average metering. The AE control unit 121 controls the aperture shutter drive unit 110 based on the photometric result. The aperture shutter drive unit 110 drives the aperture and the shutter 105 to realize automatic exposure adjustment. The aperture shutter drive unit 110 is composed of actuators such as a stepping motor and an electromagnetic plunger and a drive circuit for driving them, and drives the aperture and the shutter 105.

光学防振制御部122は、揺れ検出部119のジャイロセンサ等の角速度センサによる振れ検出情報に基づいて、撮像装置100に加わる振れ量を演算する。演算結果にしたがって、撮像装置100に加わる振れ量を打ち消す(または低減する)ように防振レンズ104を駆動することで光学防振を実現する。光学防振制御部122は、揺れ量を元に所定の演算周期で防振レンズ104を制御する目標位置を演算し、防振レンズ駆動部111に駆動指示を出す。その指示に基づいて、防振レンズ駆動部111は防振レンズ104を駆動する。防振レンズ駆動部111は、ボイスコイルモータ(VCM)等のアクチュエータや駆動回路及びホール素子等の位置検出センサによって構成される。光学防振制御部122は、防振レンズ駆動部111の位置検出センサで検出された防振レンズ104の位置をフィードバックし、防振レンズ104を目標位置に保持するようにフィードバック制御が実行される。 The optical vibration isolation control unit 122 calculates the amount of vibration applied to the image pickup device 100 based on the vibration detection information obtained by the angular velocity sensor such as the gyro sensor of the vibration detection unit 119. Optical vibration isolation is realized by driving the vibration isolation lens 104 so as to cancel (or reduce) the amount of vibration applied to the image pickup apparatus 100 according to the calculation result. The optical anti-vibration control unit 122 calculates a target position for controlling the anti-vibration lens 104 in a predetermined calculation cycle based on the amount of shaking, and issues a drive instruction to the anti-vibration lens drive unit 111. Based on the instruction, the anti-vibration lens driving unit 111 drives the anti-vibration lens 104. The anti-vibration lens drive unit 111 is composed of an actuator such as a voice coil motor (VCM), a drive circuit, and a position detection sensor such as a Hall element. The optical anti-vibration control unit 122 feeds back the position of the anti-vibration lens 104 detected by the position detection sensor of the anti-vibration lens drive unit 111, and feedback control is executed so as to hold the anti-vibration lens 104 at the target position. ..

電子防振制御部127は、光学防振制御部122と同様に揺れ検出部119のジャイロセンサ等の角速度センサによる振れ検出情報に基づいて撮像装置100に加わる振れ量を演算する。演算結果にしたがって、撮像装置100に加わる振れ量を打ち消す(または低減する)ように、画像メモリ108に記憶されている画像から表示部109への表示もしくは記録部116に記録する画像の範囲をフレーム画像ごとに変更することで電子防振を実現する。光学防振で防振できる揺れ量の大きさは、防振レンズ104の可動範囲によって決まる。すなわち、被写体指定操作に起因する大きな手ぶれを防振するには、防振レンズ104の可動範囲を大きくする必要がある。このため、レンズ鏡筒101の径を大きくする必要があり、さらに撮像装置100自体も大型化する可能性がある。一方、電子防振では、画像メモリ108に対して電子防振制御に使用する制御範囲を大きくすることで、防振効果を高くすることができる。近年、撮像素子106の画素数は高画素化しており、LCDの解像度に対して十分な画素数を有している。そのため、表示部109へ表示する画像の範囲を小さくし、電子防振制御の範囲を大きくした場合でもビューファインダ機能としては十分な解像度を得ることできる。ただし、記録画像としては、大画面のモニタ等に表示される場合があるため、より高い解像度が必要とされる。 Similar to the optical vibration isolation control unit 122, the electronic vibration isolation control unit 127 calculates the amount of vibration applied to the image pickup device 100 based on the vibration detection information obtained by the angular velocity sensor such as the gyro sensor of the vibration detection unit 119. The range of the image stored in the image memory 108 to be displayed on the display unit 109 or recorded on the recording unit 116 is framed so as to cancel (or reduce) the amount of runout applied to the image pickup apparatus 100 according to the calculation result. Electronic vibration isolation is realized by changing each image. The amount of vibration that can be vibration-isolated by optical vibration isolation is determined by the movable range of the vibration-proof lens 104. That is, in order to prevent large camera shake caused by the subject designation operation, it is necessary to increase the movable range of the vibration isolation lens 104. Therefore, it is necessary to increase the diameter of the lens barrel 101, and the image pickup device 100 itself may also be increased in size. On the other hand, in the electronic vibration isolation, the vibration isolation effect can be enhanced by increasing the control range used for the electronic vibration isolation control with respect to the image memory 108. 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 vibration isolation control is increased, a sufficient resolution can be obtained as a viewfinder function. However, since the recorded image may be displayed on a large screen monitor or the like, a higher resolution is required.

AF制御部(オートフォーカス制御部)123は、コントラスト方式で自動焦点調節(AF)制御を行う。すなわちAF制御部123は、画像処理部107での画像処理により得られた撮影光学系の焦点調節情報(コントラスト評価値)に基づいて、被写体に焦点が合うようにフォーカスレンズ駆動部112を制御する。フォーカスレンズ駆動部112の構成としては、ボイスコイルモータ(VCM)等のアクチュエータと、その位置をフィードバックするための位置検出センサ及びそれらを駆動する駆動回路によって構成され、フォーカスレンズ103を駆動する。また、別の構成としては、ステッピングモータのように位置検出センサを要しない構成などもある。本実施形態において、フォーカスレンズ駆動部112は、いずれの構成であってもよい。また、コントラスト方式以外のAF制御として、位相差AF方式でもよいし、また、コントラスト方式と他の方式との組み合わせのように、複数の方式でAF制御を行う構成でもよい。AF制御部123は、AF制御を行う際にフォーカスレンズ駆動部112を制御して、フォーカスレンズ103を所定の範囲で移動させることによりスキャン動作を行う。スキャン動作中に得られるコントラスト評価値等を用いて、合焦点であるフォーカス位置を検出する。 The AF control unit (autofocus control unit) 123 performs automatic focus adjustment (AF) control by a contrast method. That is, the AF control unit 123 controls the focus lens drive unit 112 so as to focus on the subject based on the focus adjustment information (contrast evaluation value) of the photographing optical system obtained by the image processing by the image processing unit 107. .. The focus lens drive unit 112 is composed of an actuator such as a voice coil motor (VCM), a position detection sensor for feeding back the position, and a drive circuit for driving the actuator, and drives the focus lens 103. Further, as another configuration, there is also a configuration that does not require a position detection sensor like a stepping motor. In the present embodiment, the focus lens driving unit 112 may have any configuration. Further, as the AF control other than the contrast method, the phase difference AF method may be used, or the AF control may be performed by a plurality of methods such as a combination of the contrast method and another method. The AF control unit 123 controls the focus lens driving unit 112 when performing AF control, and moves the focus lens 103 within a predetermined range to perform a scanning operation. The focus position, which is the in-focus point, is detected by using the contrast evaluation value obtained during the scanning operation.

ズームレンズ駆動部113は、ズーム操作指示に従ってズームレンズ102を駆動する。ズームレンズ駆動部113の構成としては、ズームレンズ102を駆動する直流(DC)モータ等のアクチュエータと、モータ位置を検出するロータリーエンコーダ等の位置検出センサ及びそれらを駆動する駆動回路によって構成される。また、別の構成としては、ステッピングモータのように位置検出センサを要しない構成もある。電源ONの操作とともにレンズ鏡筒101がカメラから繰り出すような沈胴式の鏡筒では、鏡筒の繰り出し動作中に鏡筒が押さえられた場合にエラーを検出する必要があるため、前者の構成が採用されることが多い。また、レンズ鏡筒101の内部でズームレンズ102が駆動するインナー式の鏡筒では、静音化に有利な後者が採用されることが多い。本実施形態におけるズームレンズ駆動部113の構成としては、いずれの構成であってもよい。操作部118は、ユーザがカメラにズーミングを指示するため、またオートズームの開始と終了を指示するためのズーム操作部材としてのズームレバーまたはズームボタン等を備える。カメラ制御部120は、ズーム指示操作に用いるズーム操作部材の操作量及び操作方向を検知して、ズーム駆動速度やズーム駆動方向を演算し、演算結果に従ってズームレンズ102を光軸に沿って移動させる制御を行う。 The zoom lens driving unit 113 drives the zoom lens 102 according to the zoom operation instruction. The zoom lens drive 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 the motor position, and a drive circuit that drives them. Further, as another configuration, there is also a configuration that does not require a position detection sensor like a stepping motor. In a retractable lens barrel in which the lens barrel 101 is extended from the camera when the power is turned on, it is necessary to detect an error when the lens barrel is pressed during the extension operation of the lens barrel. Often adopted. Further, in the inner type 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 adopted. The configuration of the zoom lens driving unit 113 in the present embodiment may be any configuration. The operation unit 118 includes a zoom lever, a zoom button, and the like as zoom operation members for instructing the camera to zoom and instructing the start and end of auto zoom. 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 according to the calculation result. Take control.

光学ズームによる画角変更時に合焦状態を維持するには、レンズ鏡筒101がリアフォーカスタイプである場合、ズームレンズ102の位置に応じてフォーカスレンズ103を適正なフォーカス位置へ移動させる必要がある。このような制御をコンピュータズーム(CZ)制御といい、システム制御部114におけるCZ制御部(コンピュータズーム制御部)124が行う。CZ制御部124は、ズームレンズの焦点距離と、被写体距離ごとのフォーカス位置との対応関係(フォーカスカムテーブル)をもとに、フォーカスレンズを駆動させる。CZ制御部124は、ズーム動作時に、所定の制御周期ごとにズームレンズ102のズーム位置を検出する。そして、検出したズーム位置に対して、AF制御部123にて計測された被写体距離でのフォーカスカムテーブルに追従するように、フォーカスレンズ103を駆動させる制御を行う。これにより、合焦状態を維持したまま光学ズーム動作を行うことが可能となる。 In order to maintain the in-focus state when the angle of view is changed by the optical zoom, when the lens barrel 101 is a rear focus type, it is necessary to move the focus lens 103 to an appropriate focus position according to the position of the zoom lens 102. .. Such control is called computer zoom (CZ) control, and is performed by the CZ control unit (computer zoom control unit) 124 in the system control unit 114. The CZ control unit 124 drives the focus lens based on the correspondence between the focal length of the zoom lens and the focus position for each subject distance (focus cam table). The CZ control unit 124 detects the zoom position of the zoom lens 102 at predetermined control cycles during the zoom operation. Then, the focus lens 103 is controlled to be driven so as to follow the focus cam table at the subject distance measured by the AF control unit 123 with respect to the detected zoom position. This makes it possible to perform the optical zoom operation while maintaining the focused state.

電子ズーム制御部130は、カメラ制御部120の指示に従い、画像メモリ108に転送された画像データから対象領域内のデータを切り出すことにより、電子ズーム機能を実現する。AZ制御部(オートズーム制御部)125は、後述する被写体検出部126により得られた被写体検出情報に基づいて、画面内の被写体の大きさが所定の範囲に収まるようにCZ制御部124を制御する。これによって、自動画角調節(オートズーム)を実現する。なお、AZ制御部125でのオートズーム処理の詳細については後述する。 The electronic zoom control unit 130 realizes the electronic zoom function by cutting out the data in the target area from the image data transferred to the image memory 108 in accordance with the instruction of the camera control unit 120. The AZ control unit (auto zoom control unit) 125 controls the CZ control unit 124 so that the size of the subject on the screen falls within a predetermined range based on the subject detection information obtained by the subject detection unit 126 described later. To do. As a result, automatic angle adjustment (auto zoom) is realized. The details of the auto zoom process in the AZ control unit 125 will be described later.

ズーム応答性設定部131は、ズームの動作の応答性を切り替えるためのタッチパネルや操作スイッチまたは操作バー等を含む。ズーム応答性設定部131の操作信号は、システム制御部114を介してAZ制御部125に送られる。 The zoom responsiveness setting unit 131 includes a touch panel, an operation switch, an operation bar, and the like for switching the responsiveness of the zoom operation. The operation signal of the zoom responsiveness setting unit 131 is sent to the AZ control unit 125 via the system control unit 114.

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

まず、被写体検出部126における顔検出処理と色検出処理について説明する。顔検出処理は、画像データ中に存在する顔領域を公知のアルゴリズムにより検出する処理である。例えば、被写体検出部126は、画像データ上での正方形状の部分領域から特徴量を抽出し、その特徴量を予め用意された顔の特徴量と比較する。そして被写体検出部126は、両者の相関値が所定の閾値を超える場合、その部分領域を顔領域であると判定する。この判定処理は、部分領域のサイズ、配置位置、配置角度の組み合わせを変更しながら繰り返されることにより、画像データ中に存在する種々の顔領域を検出できる。また、顔認証機能を有する場合には、予め登録されている顔画像の特徴量と、検出した顔領域の特徴量とで公知のアルゴリズムによりパターンマッチングを実行し、相関値が最も高い登録顔画像を検出している顔として認証する。また、全ての登録顔画像に対する相関値が所定値未満である場合には、検出した顔領域は登録されていない顔であると判定する。 First, the face detection process and the color detection process 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-shaped partial region on the image data and compares the feature amount with a face feature amount prepared in advance. Then, when the correlation value between the two exceeds a predetermined threshold value, the subject detection unit 126 determines that the partial region is the face region. By repeating this determination process while changing the combination of the size, the arrangement position, and the arrangement angle of the partial area, various face areas existing in the image data can be detected. Further, when the face recognition function is provided, pattern matching is performed by a known algorithm between the feature amount of the face image registered in advance and the feature amount of the detected face area, and the registered face image having the highest correlation value is executed. Authenticate as the face that is detecting. If the correlation values for all the registered face images are less than a predetermined value, it is determined that the detected face area is an unregistered face.

色検出処理では、後述の被写体指定方法に従って指定された被写体領域の色情報を特徴色として記憶する処理が実行される。色検出処理は、検出対象の被写体が物体である場合に行われる。色情報としては、画像処理部107からの出力信号であるRGB信号や輝度信号(Y信号)及び色差(R−Y、B−Y)信号等が用いられる。被写体検出時に被写体検出部126は、画像データを複数の部分領域に分割し、部分領域ごとの輝度及び色差の平均値を算出する。また、被写体検出部126は、予め記憶された特徴色情報と被写体検出時の各領域の色情報を比較し、輝度及び色差の差分が所定量以下の部分領域を被写体領域の候補とする。この被写体領域の候補で隣り合う部分領域の一群を同一色領域として、同一色領域が所定のサイズ範囲となる領域を最終的な被写体領域とする処理が行われる。被写体が物体の場合、物体によって被写体領域の形状が異なる可能性がある。そこで、同一色領域が全て包含される最小の四角形の領域を物体領域とする。したがって、物体領域は、水平方向と垂直方向の大きさが異なる長方形の領域となる場合もある。また、物体領域の位置としては、四角形状の領域の中心位置とする。 In the color detection process, a process of storing the color information of the subject area designated according to the subject designation method described later as a feature color is executed. The color detection process is performed when the subject to be detected is an object. As the color information, RGB signals, luminance signals (Y signals), color difference (RY, BY) signals, etc., which are output signals from the image processing unit 107, are used. At the time of subject detection, the subject detection unit 126 divides the image data into a plurality of partial regions and calculates the average value of the brightness and the color difference for each partial region. Further, the subject detection unit 126 compares the feature color information stored in advance with the color information of each region at the time of subject detection, and sets a partial region having a difference between the luminance and the color difference by a predetermined amount or less as a candidate for the subject region. Processing is performed in which a group of adjacent partial regions in the candidate of the subject region is set as the same color region, and the region in which the same color region is in a predetermined size range is set as the final subject region. When the subject is an object, the shape of the subject area may differ depending on the object. Therefore, the smallest quadrangular region that includes all the same color regions is defined as the object region. Therefore, the object area may be a rectangular area having different sizes in the horizontal direction and the vertical direction. The position of the object area is the center position of the square area.

被写体検出部126は、顔検出処理もしくは色検出処理により被写体(被写体情報)を検出し、検出した被写体情報を被写体サイズ抽出部132に渡す。被写体サイズ抽出部132は、被写体検出部126により検出された被写体情報から被写体サイズ情報を抽出する。被写体検出部126および被写体サイズ抽出部132は、撮像画像から複数の被写体サイズ情報を順次取得する取得手段を構成する。枠表示部128は、被写体検出処理で検出した顔領域および物体領域を表示部109に枠(被写体検出枠)として表示する。 The subject detection unit 126 detects the subject (subject information) by face detection processing or color detection processing, and passes the detected subject information to the subject size extraction unit 132. The subject size extraction unit 132 extracts the subject size information from the subject information detected by the subject detection unit 126. The subject detection unit 126 and the subject size extraction unit 132 constitute acquisition means for sequentially acquiring a plurality of subject size information from the captured image. The frame display unit 128 displays the face area and the object area detected by the subject detection process on the display unit 109 as a frame (subject detection frame).

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

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

次に、カメラ制御部120における被写体追尾機能に関連する制御について説明する。本実施形態においては、AE/AF制御の測光枠及び測距枠を被写体追尾枠の位置に連動して測光/測距を行う機能を追尾AE機能及び追尾AF機能と呼ぶ。また、被写体追尾枠のサイズや位置に応じて、ズームレンズ102や防振レンズ104を駆動する機能を追尾AZ機能及び追尾防振機能と呼ぶ。これらの機能を総称して被写体追尾機能と呼ぶ。ユーザは操作部118のタッチパネルや被写体指定用の操作スイッチを操作することで、主被写体を指定する。指定した主被写体に対して、露出やピント、画角が適切になるように各追尾機能が実行される。これらの機能は同時に実行する形態であってもよく、いずれかの機能だけを実行する形態であってもよい。 Next, the control related to the subject tracking function in the camera control unit 120 will be described. In the present embodiment, the functions of measuring / ranging the metering / AF in conjunction with the position of the subject tracking frame with the AE / AF controlled metering frame and the ranging frame are referred to as a tracking AE function and a tracking AF function. Further, the functions of driving the zoom lens 102 and the vibration isolation lens 104 according to the size and position of the subject tracking frame are called the tracking AZ function and the tracking vibration isolation function. These functions are collectively called the 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. Each tracking function is executed so that the exposure, focus, and angle of view of the specified main subject are appropriate. These functions may be executed at the same time, or only one of the functions may be executed.

次に、図2を参照して、AZ制御部125でAZ機能を実現するための構成について説明する。図2は、AZ制御部125のブロック図である。オートズームは、光学ズームと電子ズームの両方でズーム動作をすることが可能である。オートズームは、操作部118に対するユーザ操作により開始する。オートズームが開始すると、画像メモリ108から被写体検出部126へ画像情報が渡され、被写体が検出される。被写体サイズ抽出部132では、検出された被写体のサイズ情報を抽出し、抽出した被写体サイズ情報はメモリ117に記憶される。メモリ117に記憶された被写体サイズ情報は、被写体サイズ演算部(算出手段)201と目標被写体サイズ決定部(第1の決定手段)202に渡される。 Next, with reference to FIG. 2, a configuration for realizing the AZ function in the AZ control unit 125 will be described. FIG. 2 is a block diagram of the AZ control unit 125. Auto-zoom can perform zoom operation with both optical zoom and electronic zoom. The auto zoom is started by a user operation on the operation unit 118. When the auto zoom starts, the image information is passed from the image memory 108 to the subject detection unit 126, and the subject is detected. The subject size extraction unit 132 extracts the detected size information of the subject, and the extracted subject size information is stored in the memory 117. The subject size information stored in the memory 117 is passed to the subject size calculation unit (calculation means) 201 and the target subject size determination unit (first determination means) 202.

ズーム応答性設定部131では、ユーザの撮影意図に応じてズームの動作の応答性を切り替えることが可能である。被写体サイズ演算部201では、所定期間にメモリ117から被写体サイズ情報を取得し、ズーム応答性設定部131で設定したズームの動作の応答性に応じて、被写体サイズ情報を平滑化するための演算処理(平滑化処理)を行い、現在の被写体サイズを算出する。なお、被写体サイズ演算部201における平滑化の手法については後述する。目標被写体サイズ決定部202は、メモリ117から取得したオートズーム開始時の被写体サイズ情報を、オートズーム動作時の目標の被写体サイズとして定める。ズーム速度決定部(第2の決定手段)203は、被写体サイズ演算部201で求めた被写体サイズを、目標被写体サイズ決定部202で決定された目標被写体サイズに一致させるために、ズームの速度を決定する。光学ズームを行う場合、ズーム速度決定部203で決定された速度は、CZ制御部124を介して、ズームレンズ駆動部113にわたされ、決定した速度でズームレンズ102が駆動する。電子ズームを行う場合、決定した速度で変倍して見えるように、画像メモリ108から取得した画像データから対象領域内のデータを切り出す。なお、ズーム速度決定部203によるズーム速度の決定方法については後述する。 The zoom responsiveness setting unit 131 can switch the responsiveness of the zoom operation according to the shooting intention of the user. The subject size calculation unit 201 acquires subject size information from the memory 117 during a predetermined period, and performs arithmetic processing for smoothing the subject size information according to the responsiveness of the zoom operation set by the zoom responsiveness setting unit 131. (Smoothing process) is performed to calculate the current subject size. The smoothing method in the subject size calculation unit 201 will be described later. The target subject size determination unit 202 determines the subject size information at the start of the auto zoom acquired from the memory 117 as the target subject size during the auto zoom operation. The zoom speed determination unit (second determination means) 203 determines the zoom speed in order to match the subject size obtained by the subject size calculation unit 201 with the target subject size determined by the target subject size determination unit 202. To do. When performing optical zooming, the speed determined by the zoom speed determining unit 203 is passed to the zoom lens driving unit 113 via the CZ control unit 124, and the zoom lens 102 is driven at the determined speed. When the electronic zoom is performed, the data in the target area is cut out from the image data acquired from the image memory 108 so that the image can be magnified at a determined speed. The method of determining the zoom speed by the zoom speed determining unit 203 will be described later.

以下、各実施例について具体的に説明する。 Hereinafter, each embodiment will be specifically described.

まず、実施例1における撮像装置について説明する。本実施例のオートズーム機能は2つの機能を有し、ズーム応答性設定部131でのユーザ操作による設定情報に基づいてズーム動作の応答性を低くする「低」モード(第1の応答性)と応答性を高くする「高」モード(第2の応答性)とに切り替え可能である。 First, the imaging apparatus according to the first embodiment will be described. The auto-zoom function of this embodiment has two functions, and is a "low" mode (first responsiveness) that lowers the responsiveness of the zoom operation based on the setting information by the user operation in the zoom responsiveness setting unit 131. It is possible to switch to a "high" mode (second responsiveness) that increases responsiveness.

図3は、オートズーム撮影の一例を示す図であり、ズームの応答性を「低」モード(第1の応答性)に設定してオートズーム撮影を行った際の一例を示す。オートズーム撮影は、被写体検出部126により検出される主要被写体の顔サイズ情報の検出誤差の影響によりズームが誤動作することがある。ズームの誤動作の影響により画角変動が発生し、映像としての品位を損ねる可能性が有る。このように主要被写体を追尾する場合、被写体の追従性よりも急激な画角変動を抑える(ズームの誤動作を防止する)ことが重要となる。そこで、ズームの誤動作を防止する対策として、顔サイズ変化に対するズームの応答性を低く設定することで顔サイズの誤検知の影響を抑える。また、図3は、ズームの応答性を低く設定することによって、被写体がカメラに近づいてきた場合に、カメラが自動的に行うズーム動作を例示する。これは、被写体像が画面に占める割合を所定の比率内に収めるためのズームアウト動作である。 FIG. 3 is a diagram showing an example of auto-zoom shooting, and shows an example when auto-zoom shooting is performed with the zoom responsiveness set to the “low” mode (first responsiveness). In the auto-zoom shooting, the zoom may malfunction due to the influence of the detection error of the face size information of the main subject detected by the subject detection unit 126. The angle of view may fluctuate due to the malfunction of the zoom, which may impair the quality of the image. When tracking a main subject in this way, it is more important to suppress sudden fluctuations in the angle of view (prevent malfunction of the zoom) than to follow the subject. Therefore, as a measure to prevent the malfunction of the zoom, the influence of the false detection of the face size is suppressed by setting the zoom response to the change in the face size to be low. Further, FIG. 3 illustrates a zoom operation automatically performed by the camera when the subject approaches the camera by setting the zoom responsiveness to be low. This is a zoom-out operation for keeping the ratio of the subject image to the screen within a predetermined ratio.

図3(A)は、ユーザが遠方にいる被写体を撮影する際の画角を示している。このときユーザは、被写体を所望の画角に収めるためにズームを望遠方向に移動した状態である。撮影開始の際に被写体検出部126によって被写体を検出し、被写体サイズ抽出部132により抽出した主要被写体の顔サイズ情報はメモリ117に記憶される。また、このとき枠表示部128では被写体の顔領域を表す枠を表示部109に表示する。 FIG. 3A shows the angle of view when the user shoots a distant subject. At this time, the user is in a state where the zoom is moved in the telephoto direction in order to fit the subject in a desired angle of view. The subject is detected by the subject detection unit 126 at the start of shooting, and the face size information of the main subject extracted by the subject size extraction unit 132 is stored in the memory 117. At this time, the frame display unit 128 displays a frame representing the face area of the subject on the display unit 109.

図3(B)は、図3(A)の状態から被写体が光軸方向に近づいてきたときのズーム動作前の画角を示している。被写体がカメラに近づいたため、顔サイズは図3(A)のときのよりも大きくなる。図3(C)は、顔サイズが大きくなった図3(B)の状態から、顔のサイズを図3(A)の状態に保つように、後述するズーム速度決定方法で決定したズーム速度でズームアウトを行った際の画角を示している。このように、被写体が光軸方向に移動した場合に被写体の顔サイズを保つためにズームが動作する。図3では被写体がカメラに対して近づいてきた場合のズームの動作に関して述べたが、被写体がカメラに対して遠ざかる場合においても、被写体の顔サイズを保つために、ズームは後述する速度決定方法で決定した速度でズームインする。図3のように、動いている被写体に対してオートズーム撮影を行う場合は、顔サイズの変化に対するズームの誤動作を防止して、滑らかに被写体追従することが重要となる。 FIG. 3B shows the angle of view before the zoom operation when the subject approaches the optical axis direction from the state of FIG. 3A. Since the subject is closer to the camera, the face size is larger than that in FIG. 3 (A). FIG. 3C shows the zoom speed determined by the zoom speed determination method described later so as to keep the face size in the state of FIG. 3A from the state of FIG. 3B in which the face size has increased. It shows the angle of view when zooming out. In this way, when the subject moves in the optical axis direction, the zoom operates in order to maintain the face size of the subject. Although FIG. 3 describes the zoom operation when the subject approaches the camera, the zoom is performed by the speed determination method described later in order to maintain the face size of the subject even when the subject moves away from the camera. Zoom in at the determined speed. When performing auto-zoom shooting on a moving subject as shown in FIG. 3, it is important to prevent a malfunction of the zoom due to a change in face size and to follow the subject smoothly.

図4は、オートズーム撮影の一例を示す図であり、ズームの応答性を「高」モードに設定してオートズーム撮影を行った際の一例を示す。ズームの応答性を高く設定すると、ユーザが静止被写体に近づきながら画角を調整することで主要被写体の顔サイズを一定に保ち続け、ドリーズームのような効果を得ることができる。顔サイズを常に一定に保つには、顔サイズが変動した際には、ズーム動作にて即座に画角を調整する必要がある。このため、ドリーズームの際には、被写体の顔サイズ変化に対するズームの応答性は、より高いことが望ましい。また図4では、ズームの応答性を高く設定して静止している被写体に対してカメラを光軸方向に移動させた場合に、カメラが自動的に行うズーム動作を例示する。 FIG. 4 is a diagram showing an example of auto-zoom shooting, and shows an example when auto-zoom shooting is performed with the zoom responsiveness set to the “high” mode. When the zoom responsiveness is set high, the user can adjust the angle of view while approaching the still subject to keep the face size of the main subject constant, and obtain an effect like Dolly Zoom. In order to keep the face size constant, it is necessary to immediately adjust the angle of view by zooming when the face size fluctuates. Therefore, during Dolly Zoom, it is desirable that the zoom response to changes in the face size of the subject is higher. Further, FIG. 4 illustrates a zoom operation automatically performed by the camera when the camera is moved in the optical axis direction with respect to a stationary subject with a high zoom responsiveness.

図4(A)は、ユーザが遠方にいる被写体を撮影する際の画角を示している。ユーザは被写体を所望の画角に収めるためにズームを望遠方向に移動した状態である。撮影開始の際に被写体検出部126によって被写体を検出し、被写体サイズ抽出部132により抽出した主要被写体の顔サイズ情報はメモリ117に記憶される。このとき枠表示部128は、被写体の顔領域を表す枠を表示部109に表示する。 FIG. 4A shows the angle of view when the user shoots a distant subject. The user has moved the zoom in the telephoto direction in order to fit the subject in a desired angle of view. The subject is detected by the subject detection unit 126 at the start of shooting, and the face size information of the main subject extracted by the subject size extraction unit 132 is stored in the memory 117. At this time, the frame display unit 128 displays a frame representing the face area of the subject on the display unit 109.

図4(B)は、図4(A)の状態からカメラが被写体に対して光軸方向に近づいたときの画角を示している。このとき、図4(A)の状態の顔のサイズを保つように、ズームは後述する速度決定方法で決定した速度でズームアウトを行う。図4(C)は、図4(B)の状態から、さらにカメラが被写体に近づいてくるときを表現しており、図4(A)の状態の顔のサイズを保つように、ズームは後述する速度決定方法で決定した速度でズームアウトを行う。図4のように静止している被写体に対してオートズームを行う場合は、カメラの動きに応じて変化する顔サイズを、常に同じサイズに保ち続けるということが重要となる。そのため、顔サイズの変化に対するズームの応答性は高い必要がある。図4ではカメラが被写体に対して近づいてきた場合のズームの動作に関して述べたが、カメラが被写体に対して遠ざかる場合においても同様で、遠ざかる場合はズームアウトではなくズームインする点が異なるだけである。 FIG. 4B shows the angle of view when the camera approaches the subject in the optical axis direction from the state of FIG. 4A. At this time, the zoom is zoomed out at a speed determined by the speed determination method described later so as to maintain the size of the face in the state of FIG. 4 (A). FIG. 4C represents the time when the camera approaches the subject from the state of FIG. 4B, and the zoom will be described later so as to maintain the size of the face in the state of FIG. 4A. Zoom out at the speed determined by the speed determination method. When auto-zooming is performed on a stationary subject as shown in FIG. 4, it is important to keep the face size, which changes according to the movement of the camera, always the same size. Therefore, the zoom responsiveness to changes in face size needs to be high. FIG. 4 describes the zooming operation when the camera approaches the subject, but the same applies when the camera moves away from the subject, except that when the camera moves away, the camera zooms in instead of zooming out. ..

本実施例のオートズームにおけるズーム制御の応答性の設定は、ズーム応答性設定部131に対するユーザ操作により切り替えることができる。ズーム制御の応答性は、多段階的に設定することができる。設定されたズーム制御の応答性の情報は、設定が変更される度にズーム応答性設定部131から被写体サイズ演算部201に通知される。 The zoom control responsiveness setting in the auto zoom of this embodiment can be switched by a user operation on the zoom responsiveness setting unit 131. The responsiveness of zoom control can be set in multiple steps. The zoom responsiveness setting unit 131 notifies the subject size calculation unit 201 of the set zoom control responsiveness information each time the setting is changed.

次に、図5を参照して、オートズーム制御の処理について説明する。図5は、オートズーム制御を示すフローチャートである。図5の各ステップは、主に、システム制御部114(AZ制御部125)により実行される。 Next, the auto zoom control process will be described with reference to FIG. FIG. 5 is a flowchart showing auto zoom control. Each step of FIG. 5 is mainly executed by the system control unit 114 (AZ control unit 125).

オートズームが開始されると、まずステップS501において、システム制御部114は、オートズームの開始指示があるか否かを判定する。オートズームの開始指示がない場合、開始指示があるまで、次の処理には進まない。続いてステップS502において、目標被写体サイズ決定部202は、目標の顔サイズを決定する。ここで決定される顔サイズは、ユーザが操作部118を介して選択した構図設定から決定される場合と、オートズーム発動時の被写体検出情報から自動的に決定する場合の2通りがある。この2つの決定方法は、ユーザの操作部118に対する設定により選択可能である。選択された方法は、メモリ117に記憶される。 When the auto zoom is started, first, in step S501, the system control unit 114 determines whether or not there is an auto zoom start instruction. If there is no auto zoom start instruction, the next process will not proceed until the start instruction is given. Subsequently, in step S502, the target subject size determination unit 202 determines the target face size. The face size determined here can be determined from the composition setting selected by the user via the operation unit 118, or automatically determined from the subject detection information when the auto zoom is activated. These two determination methods can be selected by setting the operation unit 118 of the user. The selected method is stored in memory 117.

ここで、ユーザにより設定された構図設定から目標顔サイズを決定する方法について説明する。構図に適した目標の顔サイズが予めメモリ117に記憶されている。ユーザが選択できる構図は、「顔」「上半身」「全身」の3つが存在し、これらは被写体の顔が画面に占める割合が異なる。目標顔サイズは、「顔」「上半身」「全身」の3つの構図に対応した形でメモリ117に記憶されている。目標被写体サイズ決定部202は、選択された構図に応じた顔サイズ情報をメモリ117から取得し、ズーム速度の決定の際に使用する目標顔サイズとして決定する。ここではユーザが操作部118により設定した情報を基に目標顔サイズを設定する例を示した。ユーザ操作により、オートズーム発動時の画面に占める被写体の顔サイズを目標顔サイズとする等、自動で設定するようにしてもよい。 Here, a method of determining the target face size from the composition setting set by the user will be described. A target face size suitable for composition is stored in memory 117 in advance. There are three compositions that the user can select, "face", "upper body", and "whole body", and the proportion of the subject's face on the screen is different. The target face size is stored in the memory 117 in a form corresponding to the three compositions of "face", "upper body", and "whole body". The target subject size determination unit 202 acquires face size information according to the selected composition from the memory 117, and determines the target face size to be used when determining the zoom speed. Here, an example of setting the target face size based on the information set by the user by the operation unit 118 is shown. By user operation, the face size of the subject occupying the screen when the auto zoom is activated may be set automatically as the target face size.

続いてステップS503において、被写体サイズ演算部201は、メモリ117から取得する顔サイズ情報のうち、ズームの速度決定に用いるための顔サイズ情報を後述する演算処理(平均化処理等の平滑化処理)で求める。続いてステップS504において、ズーム速度決定部203は、ステップS502で決定した目標顔サイズ情報とステップS503で選択した顔サイズ情報とに基づいて、ズームの速度を決定する。なお、ズーム速度の具体的な決定方法については、後述する。続いてステップS505において、ズームレンズ駆動部113は、ステップS504にて決定したズーム速度でズームする。続いてステップS506において、システム制御部114は、オートズームの終了指示があったか否かを判定する。オートズームの終了指示がない場合、引き続きステップS503の処理から順に行う。一方、オートズームの終了指示があった場合、一連の処理を終了させる。 Subsequently, in step S503, the subject size calculation unit 201 calculates the face size information to be used for determining the zoom speed among the face size information acquired from the memory 117 (smoothing processing such as averaging processing) described later. Ask for. Subsequently, in step S504, the zoom speed determination unit 203 determines the zoom speed based on the target face size information determined in step S502 and the face size information selected in step S503. The specific method for determining the zoom speed will be described later. Subsequently, in step S505, the zoom lens driving unit 113 zooms at the zoom speed determined in step S504. Subsequently, in step S506, the system control unit 114 determines whether or not there is an instruction to end the auto zoom. If there is no instruction to end the auto zoom, the process of step S503 is continued in order. On the other hand, when there is an instruction to end the auto zoom, a series of processes are terminated.

次に、図6を参照して、ステップS503(平均化処理、すなわち平滑化処理)について詳述する。図6は、本実施例における被写体サイズの平均化処理を示すフローチャートである。図6の例では、被写体サイズ演算部201が、ズームの動作の応答性の設定に応じた被写体の顔サイズの平均化処理を行う。 Next, with reference to FIG. 6, step S503 (averaging process, that is, smoothing process) will be described in detail. FIG. 6 is a flowchart showing the subject size averaging process in this embodiment. In the example of FIG. 6, the subject size calculation unit 201 performs the averaging process of the face size of the subject according to the setting of the responsiveness of the zoom operation.

まずステップS601において、被写体サイズ演算部201は、ズーム応答性設定部131により設定されている現在のズームの動作の応答性を判定する。本実施例では、ズームの応答性が2段階で切り替えられている場合について説明するが、これに限定されるものではない。ステップS601にてズームの応答性の設定が「低」と判定された場合、ステップS602に進む。ズームの応答性を低くするのは、被写体追尾するためにズームの誤動作を防止して撮影を行う場合である。このためステップS602において、被写体サイズ演算部201は、顔サイズ変化によるズーム速度の変動を抑えるための平均化に用いる顔サイズ情報の個数Nをメモリ117から取得する。メモリ117には予め、平均化に用いる個数Nが保存されている。なお、個数Nの決定方法については後述する。続いてステップS603において、被写体サイズ演算部201は、現在の顔サイズ情報からN個の過去の顔サイズ情報を平均し、ズーム速度決定に用いる顔サイズとする。 First, in step S601, the subject size calculation unit 201 determines the responsiveness of the current zoom operation set by the zoom responsiveness setting unit 131. In this embodiment, the case where the zoom responsiveness is switched in two steps will be described, but the present invention is not limited to this. If it is determined in step S601 that the zoom responsiveness setting is "low", the process proceeds to step S602. The responsiveness of the zoom is lowered when shooting is performed by preventing the malfunction of the zoom in order to track the subject. Therefore, in step S602, the subject size calculation unit 201 acquires the number N of face size information used for averaging to suppress the fluctuation of the zoom speed due to the change in face size from the memory 117. The number N used for averaging is stored in the memory 117 in advance. The method for determining the number N will be described later. Subsequently, in step S603, the subject size calculation unit 201 averages N past face size information from the current face size information and sets the face size to be used for determining the zoom speed.

一方、ステップS601にてズームの応答性が「高」と判定された場合、ステップS604に進む。ズームの応答性を高くするのは、ドリーズーム撮影のように、常に顔サイズを一定に保ち続ける撮影を行う場合である。この場合、顔サイズの変動がほとんどないことを前提とし、顔サイズを一定に保ちながらズームが動作することを理想とするため、高い応答性が求められる。このためステップS604において、被写体サイズ演算部201は、平均化処理を行わずに、最新の顔サイズ情報をズーム速度決定に用いる顔サイズとする。ステップS603、S604にて、ズーム速度決定のための顔サイズ情報が選択されることにより、被写体サイズ演算部201での処理は終了する。 On the other hand, if the zoom responsiveness is determined to be "high" in step S601, the process proceeds to step S604. The responsiveness of the zoom is enhanced when shooting with the face size kept constant at all times, such as dolly zoom shooting. In this case, it is assumed that there is almost no fluctuation in the face size, and it is ideal that the zoom operates while keeping the face size constant, so that high responsiveness is required. Therefore, in step S604, the subject size calculation unit 201 sets the latest face size information as the face size used for determining the zoom speed without performing the averaging process. When the face size information for determining the zoom speed is selected in steps S603 and S604, the processing in the subject size calculation unit 201 ends.

次に、ズームの応答性を変更する手段として、顔サイズ情報の平滑化を行う理由について説明する。被写体の顔サイズの情報をもとにズームの速度を決定するため、顔サイズの変化量の大きさは、ズームの速度に影響を与える。 Next, the reason for smoothing the face size information as a means for changing the zoom responsiveness will be described. Since the zoom speed is determined based on the information on the face size of the subject, the amount of change in the face size affects the zoom speed.

被写体を追尾する際は移動する被写体を対象としているため、被写体の動きや顔向きの変化の影響等により、静止した被写体を撮影する場合に比べて顔サイズがばらつく可能性が高い。検出した顔サイズ情報をもとに、ズームの速度を決定すると、顔サイズのばらつきの影響により、ズームインとズームアウトを繰り返すなどの誤動作を起こす可能性がある。そのため、平滑化した顔サイズ情報を用いることで、ズームの誤動作を抑えることができる。その半面、平滑化により、ズームの応答性が低くなり遅れが生じてしまうというデメリットを持つ。 Since a moving subject is targeted when tracking the subject, there is a high possibility that the face size will vary as compared with the case of shooting a stationary subject due to the influence of the movement of the subject or the change in the face orientation. If the zoom speed is determined based on the detected face size information, malfunctions such as repeated zooming in and out may occur due to the influence of the variation in face size. Therefore, by using the smoothed face size information, it is possible to suppress the malfunction of the zoom. On the other hand, smoothing has the demerit that the responsiveness of the zoom becomes low and a delay occurs.

一方、ドリーズーム撮影を行う際は、静止した被写体を撮影対象としているため、顔サイズがばらつく可能性が低い。よって、平滑化を行わない、もしくは平滑化を抑えることで、ズームの応答性が高くなり、現在の顔サイズを常に目標顔サイズに保てるようになる。 On the other hand, when performing Dolly Zoom shooting, since a stationary subject is targeted for shooting, it is unlikely that the face size will vary. Therefore, by not performing smoothing or suppressing smoothing, the responsiveness of the zoom is improved, and the current face size can always be maintained at the target face size.

ここで、ステップS603にて平滑化に使用する顔サイズ情報の個数Nの決定方法について説明する。被写体検出部126で顔サイズを検出する際に、「明るさ」、「合焦状態(ピント)」、「手振れ」、「被写体の向き」等の条件によって顔サイズ情報のばらつきの大きさが変化する。これらの複数の条件を組み合わせて顔サイズのばらつきの測定を行い、ばらつきの分布を算出する。次にばらつきの標準偏差σと平均値Aを求める。平均値A±2σの分布で発生する顔サイズの変動が人の目で見て分かるかどうか判定する。目で見てわかる量であれば、平均する顔サイズ情報を1つ増やし平均値Aおよび標準偏差σを再計算する。最終的に平均値A±2σの分布で発生するばらつきの変動が人の目で分からなくなるように平均する顔情報の個数Nを決定する。 Here, a method of determining the number N of face size information used for smoothing in step S603 will be described. When the subject detection unit 126 detects the face size, the amount of variation in the face size information changes depending on conditions such as "brightness", "focus state (focus)", "camera shake", and "object orientation". To do. The variation of face size is measured by combining these multiple conditions, and the distribution of variation is calculated. Next, the standard deviation σ of the variation and the mean value A are obtained. It is determined whether or not the fluctuation of the face size generated in the distribution of the average value A ± 2σ can be visually recognized by the human eye. If it is a visually recognizable amount, the average face size information is increased by one and the average value A and the standard deviation σ are recalculated. Finally, the number N of face information to be averaged is determined so that the variation of the variation generated in the distribution of the average value A ± 2σ cannot be seen by the human eye.

次に、図7を参照して、ズーム速度決定部203によるズームの速度の決定方法について説明する。ズーム速度決定部203は、顔サイズの変化量からズームの速度を算出している。図7は、ズームの速度の算出方法を示す図であり、撮像装置100と被写体の位置関係、および、その位置関係にあるときの撮像画面に写る被写体を示している。 Next, a method of determining the zoom speed by the zoom speed determination unit 203 will be described with reference to FIG. 7. The zoom speed determination unit 203 calculates the zoom speed from the amount of change in face size. FIG. 7 is a diagram showing a method of calculating the zoom speed, showing the positional relationship between the imaging device 100 and the subject, and the subject to be captured on the imaging screen when the positional relationship is such.

図7(A)は、被写体が撮像装置100に備わる撮像素子106から光軸方向に撮影距離Lだけ離れた位置に存在するときの被写体距離dと焦点距離fの関係を示す図である。焦点距離fはレンズ鏡筒101の焦点距離を示し、被写体距離dは撮影距離Lから焦点距離fを差し引いた距離とする。また、撮像素子106の撮像面のサイズをα、撮像面上の顔サイズをβとし、さらに撮像画角範囲Aに対する顔サイズをBとする。 FIG. 7A is a diagram showing the relationship between the subject distance d and the focal length f when the subject is located at a position separated by the shooting distance L in the optical axis direction from the image sensor 106 provided in the image pickup device 100. The focal length f indicates the focal length of the lens barrel 101, and the subject distance d is the distance obtained by subtracting the focal length f from the shooting distance L. Further, the size of the imaging surface of the image sensor 106 is α, the face size on the imaging surface is β, and the face size with respect to the imaging angle of view range A is B.

図7(B)は、図7(A)の状態から被写体が撮像装置100に対して光軸方向に近づいた状態の説明図である。焦点距離fを変化させずに被写体だけが撮像装置100に近づき、被写体距離dx<被写体距離d という関係が成り立つ。このため、撮像画角範囲Aに対する顔サイズBの割合が相対的に大きくなり、結果として撮像面上の顔サイズが大きくなる(顔サイズβ’>顔サイズβ)。 FIG. 7B is an explanatory diagram of a state in which the subject approaches the image pickup apparatus 100 in the optical axis direction from the state of FIG. 7A. Only the subject approaches the image pickup apparatus 100 without changing the focal length f, and the relationship of subject distance dx <subject distance d is established. Therefore, the ratio of the face size B to the imaging angle of view range A becomes relatively large, and as a result, the face size on the imaging surface becomes large (face size β ′> face size β).

図7(C)は、図7(B)の状態から、撮影距離L’を変更せずに撮像面上の顔サイズが図7(A)と同じサイズ(顔サイズβ)になるように焦点距離fを焦点距離f’に変更したときの状態(焦点距離f’<焦点距離f)の説明図である。その結果、焦点距離の変化量だけ図7(C)の撮像画角範囲A’は撮像画角範囲Aよりも広くなる(撮像画角範囲A’>撮像画角範囲A)。図7(A)の撮影画像に対して、撮像面上の顔の大きさ(顔サイズB)は同じでありながら、撮影画像に写る被写体の背景の範囲が広くなるように変化することを意味する。一方、オートズーム機能は、被写体の顔サイズを同じ大きさに保ちながらズームを行う機能であるため、図7(A)の状態から図7(C)の状態に自動的にズームを動作させる必要がある。よって、以下ではズームレンズの移動量の算出方法について説明する。 FIG. 7 (C) is focused so that the face size on the imaging surface becomes the same size (face size β) as in FIG. 7 (A) without changing the shooting distance L'from the state of FIG. 7 (B). It is explanatory drawing of the state (focal length f'<focal length f) when the distance f is changed to the focal length f'. As a result, the imaged angle of view range A'in FIG. 7C is wider than the imaged angle of view range A by the amount of change in the focal length (imaging angle of view range A'> imaged angle of view range A). It means that the size of the face on the imaging surface (face size B) is the same as that of the captured image of FIG. 7A, but changes so that the background range of the subject reflected in the captured image becomes wider. To do. On the other hand, since the auto-zoom function is a function that zooms while keeping the face size of the subject at the same size, it is necessary to automatically operate the zoom from the state of FIG. 7 (A) to the state of FIG. 7 (C). There is. Therefore, a method of calculating the movement amount of the zoom lens will be described below.

図7(A)の状態からオートズームを実施するとき、顔サイズBと撮像面上の顔サイズβを一定に保ちつつズームする必要がある。そのため、図7(C)でも顔サイズと撮像面上の顔サイズは図7(A)と同じになるように制御を行う。これより、図7(A)の被写体距離dと焦点距離fの比率は、図7(C)の被写体距離d’と焦点距離f’の比率と同じになるため、d:f=d’:f’という関係が成り立つ。その結果、撮像装置100のレンズ鏡筒101の焦点距離f’は、f’=(d’/d)fの式で算出可能となる。 When performing auto-zooming from the state shown in FIG. 7A, it is necessary to zoom while keeping the face size B and the face size β on the imaging surface constant. Therefore, even in FIG. 7C, the face size and the face size on the imaging surface are controlled to be the same as those in FIG. 7A. From this, the ratio of the subject distance d and the focal length f in FIG. 7 (A) is the same as the ratio of the subject distance d'and the focal length f'in FIG. 7 (C), so that d: f = d': The relationship f'establishes. As a result, the focal length f'of the lens barrel 101 of the image pickup apparatus 100 can be calculated by the formula f'= (d'/ d) f.

ここで、被写体の顔サイズを一定に保つための焦点距離f’が算出されるため、焦点距離の変化量からズームレンズ位置の移動量に変換するには、焦点距離f、f’に対応するズームレンズ位置の差分から算出することが可能である。処理の一例として、図示していないが、メモリ117に記憶されている焦点距離に応じたズームレンズ位置のテーブル情報を用いて、焦点距離をズームレンズ位置に変換してもよい。 Here, since the focal length f'for keeping the face size of the subject constant is calculated, it corresponds to the focal lengths f and f'to convert the amount of change in the focal length into the amount of movement of the zoom lens position. It can be calculated from the difference in the zoom lens position. As an example of the process, although not shown, the focal length may be converted into the zoom lens position by using the table information of the zoom lens position according to the focal length stored in the memory 117.

ズームレンズ位置の移動量は、被写体の移動速度が一定であった場合、次の所定時間後のズームレンズ位置までの移動量を示す。よって、ズームレンズ位置の移動量から所定時間あたりの移動量としてズームの速度を算出することが可能となる。本実施例では、顔サイズの変化量からズームの速度を決定するように説明したが、目標顔サイズに対する現在顔サイズとの差から、ズームの速度を決定するためのテーブル情報を予め記憶しておき、このテーブル情報を元にズームの速度を決定してもよい。以上、撮影条件によりズームの動作の応答性の変更を可能とするオートズームの処理について説明を行った。 The amount of movement of the zoom lens position indicates the amount of movement to the zoom lens position after the next predetermined time when the moving speed of the subject is constant. Therefore, it is possible to calculate the zoom speed as the amount of movement per predetermined time from the amount of movement of the zoom lens position. In this embodiment, the zoom speed is determined from the amount of change in the face size, but the table information for determining the zoom speed is stored in advance from the difference from the current face size with respect to the target face size. The zoom speed may be determined based on this table information. The auto zoom process that enables the responsiveness of the zoom operation to be changed according to the shooting conditions has been described above.

なお本実施例では、顔サイズの変化量をもとにオートズーム処理を行ったが、顔サイズだけでなく、被写体検出部126で得られた顔以外のサイズ変化をもとにオートズームを行ってもよい。また、人以外の被写体を検出し、サイズ情報を取得できる場合はその情報をもとにオートズームを行ってもよい。 In this embodiment, the auto-zoom processing is performed based on the amount of change in the face size, but the auto-zoom is performed based not only on the face size but also on the size change other than the face obtained by the subject detection unit 126. You may. Further, if a subject other than a person can be detected and size information can be acquired, auto-zooming may be performed based on the information.

また本実施例では、オートズーム処理中に光学ズームを駆動させるための方法について説明したが、電子ズームによる画角調整を行ってもよい。その場合、ズーム速度決定部203は、電子ズームでの倍率変更を行うための倍率変更速度を決定する。その後、電子ズーム制御部130は、決定した速度で変倍して見えるように、画像メモリ108から取得した画像データから対象領域内のデータを切り出す。 Further, in this embodiment, the method for driving the optical zoom during the auto zoom process has been described, but the angle of view may be adjusted by the electronic zoom. In that case, the zoom speed determination unit 203 determines the magnification change speed for changing the magnification in the electronic zoom. After that, the electronic zoom control unit 130 cuts out the data in the target area from the image data acquired from the image memory 108 so that the image can be magnified at a determined speed.

次に、実施例2について説明する。本実施例では、被写体サイズ演算部201による被写体の顔サイズの平均化処理の例を説明する。 Next, Example 2 will be described. In this embodiment, an example of the face size averaging process of the subject by the subject size calculation unit 201 will be described.

まず、図8を参照して、図5のステップS503(平均化処理、すなわち平滑化処理)について詳述する。図8は、被写体サイズの平均化処理を示すフローチャートである。図8では、ズームの応答性が2段階で切り替えられている場合について説明する。 First, with reference to FIG. 8, step S503 (averaging process, that is, smoothing process) of FIG. 5 will be described in detail. FIG. 8 is a flowchart showing the subject size averaging process. FIG. 8 describes a case where the zoom responsiveness is switched in two steps.

まずステップS801において、被写体サイズ演算部201は、ズーム応答性設定部131により設定されている現在のズームの動作の応答性(応答性が「高」または「低」のいずれであるか)を判定する。ステップS801にてズームの応答性の設定が「低」と判定された場合、ステップS802に進む。ステップS802において、被写体サイズ演算部201は、顔サイズの平均化に用いる顔サイズ情報の個数Nをメモリ117から取得する。メモリ117には予め、平均化に用いる個数Nが保存されている。個数Nの決定方法は、実施例1と同様である。続いてステップS803において、被写体サイズ演算部201は、現在の顔サイズ情報からN個の過去の顔サイズ情報を平均し、ズーム速度決定に用いる顔サイズとする。 First, in step S801, the subject size calculation unit 201 determines the responsiveness (whether the responsiveness is "high" or "low") of the current zoom operation set by the zoom responsiveness setting unit 131. To do. If it is determined in step S801 that the zoom responsiveness setting is "low", the process proceeds to step S802. In step S802, the subject size calculation unit 201 acquires the number N of face size information used for averaging the face size from the memory 117. The number N used for averaging is stored in the memory 117 in advance. The method for determining the number N is the same as in the first embodiment. Subsequently, in step S803, the subject size calculation unit 201 averages N past face size information from the current face size information and sets the face size to be used for determining the zoom speed.

一方、ステップS801にてズームの応答性が「高」と判定された場合、ステップS804に進む。ステップS804において、被写体サイズ演算部201は、顔サイズばらつきの影響を軽減させる必要がある場合、ズームの応答性を損なわないようなM個の顔サイズ情報で平均顔サイズを算出する。個数Mは、メモリ117に予め保存されている値であり、本実施例ではM<Nの関係が成り立っている。続いてステップS805において、被写体サイズ演算部201は、現在の顔サイズ情報からM個の過去の顔サイズ情報を平均化し、ズーム速度決定に用いる顔サイズとする。ステップS803、S805にてズーム速度決定のための顔サイズ情報が選択され、被写体サイズ演算部201での処理は終了する。 On the other hand, if the zoom responsiveness is determined to be "high" in step S801, the process proceeds to step S804. In step S804, when it is necessary to reduce the influence of the face size variation, the subject size calculation unit 201 calculates the average face size with M face size information that does not impair the responsiveness of the zoom. The number M is a value stored in advance in the memory 117, and the relationship of M <N is established in this embodiment. Subsequently, in step S805, the subject size calculation unit 201 averages M past face size information from the current face size information and sets the face size to be used for determining the zoom speed. Face size information for determining the zoom speed is selected in steps S803 and S805, and the process in the subject size calculation unit 201 ends.

次に、図9を参照して、ズームの応答性が3つ以上の段階で切り替えられている場合について説明する。図9は、変形例としての被写体サイズの平均化処理を示すフローチャートである。図9では、ズームの応答性が「高/中/低」の3段階である場合の被写体の顔サイズの平均化処理のフローを説明する。 Next, with reference to FIG. 9, a case where the zoom responsiveness is switched in three or more stages will be described. FIG. 9 is a flowchart showing a subject size averaging process as a modification. FIG. 9 describes a flow of the face size averaging process of the subject when the zoom responsiveness has three stages of “high / medium / low”.

まずステップS901において、被写体サイズ演算部201は、ズーム応答性設定部131により設定されたズームの動作の応答性が「低」または「低」以外のいずれであるかを判定する。ステップS901にてズームの応答性の設定が「低」と判定された場合、ステップS902に進む。ステップS902において、被写体サイズ演算部201は、顔サイズの平均化に用いる顔サイズ情報の個数Nをメモリ117から取得する。メモリ117には予め、平均化に用いる個数Nが保存されている。続いてステップS903において、被写体サイズ演算部201は、現在の顔サイズ情報からN個の過去の顔サイズ情報を平均し、ズーム速度決定に用いる顔サイズとする。 First, in step S901, the subject size calculation unit 201 determines whether the responsiveness of the zoom operation set by the zoom responsiveness setting unit 131 is other than "low" or "low". If it is determined in step S901 that the zoom responsiveness setting is "low", the process proceeds to step S902. In step S902, the subject size calculation unit 201 acquires the number N of face size information used for averaging the face size from the memory 117. The number N used for averaging is stored in the memory 117 in advance. Subsequently, in step S903, the subject size calculation unit 201 averages N past face size information from the current face size information and sets the face size to be used for determining the zoom speed.

一方、ステップS901にてズームの応答性が「低」以外と判定された場合、被写体サイズ演算部201は、ステップS904において、ズームの応答性が「中」または「高」であるかを判定する。ステップS904にてズームの応答性が「中」と判定された場合、ステップS905に進む。ステップS905において、被写体サイズ演算部201は、顔サイズの平均化に用いる顔サイズ情報の個数Mをメモリ117から取得する。メモリ117には予め、平均化に用いる個数Mが保存されている。個数Mは、メモリ117に予め保存されている値である。続いてステップS906において、被写体サイズ演算部201は、現在の顔サイズ情報からM個の過去の顔サイズ情報を平均し、ズーム速度決定に用いる顔サイズとする。なお個数N及び個数Mの決定方法は、実施例1と同様である。 On the other hand, when the zoom responsiveness is determined to be other than "low" in step S901, the subject size calculation unit 201 determines in step S904 whether the zoom responsiveness is "medium" or "high". .. If the zoom responsiveness is determined to be "medium" in step S904, the process proceeds to step S905. In step S905, the subject size calculation unit 201 acquires the number M of face size information used for averaging the face size from the memory 117. The number M used for averaging is stored in the memory 117 in advance. The number M is a value stored in advance in the memory 117. Subsequently, in step S906, the subject size calculation unit 201 averages M past face size information from the current face size information to obtain the face size used for determining the zoom speed. The method for determining the number N and the number M is the same as in the first embodiment.

一方、ステップS904にてズームの応答性が「高」と判定された場合、ステップS907に進む。ステップS907において、被写体サイズ演算部201は、顔サイズの変化に対するズームの応答性を高くするために、顔サイズの平均化を行わずに、最新の顔サイズ情報をズーム速度決定に用いる顔サイズとする。ステップS903、S906、S907にてズーム速度決定のための顔サイズ情報が選択され、被写体サイズ演算部201での処理は終了する。 On the other hand, if the zoom responsiveness is determined to be "high" in step S904, the process proceeds to step S907. In step S907, the subject size calculation unit 201 uses the latest face size information as the face size for determining the zoom speed without averaging the face size in order to increase the zoom response to the change in face size. To do. The face size information for determining the zoom speed is selected in steps S903, S906, and S907, and the processing in the subject size calculation unit 201 ends.

また、ズームの応答性が2段階以上に設定できる場合、図10を参照して説明するフローチャートに従ってもよい。図10は、本実施例の別の変形例としての被写体サイズの平均化処理を示すフローチャートである。 Further, when the zoom responsiveness can be set to two or more steps, the flowchart described with reference to FIG. 10 may be followed. FIG. 10 is a flowchart showing a subject size averaging process as another modification of the present embodiment.

まずステップS1001において、被写体サイズ演算部201は、ズーム応答性設定部131により設定されている現在のズームの動作の応答性を取得する。メモリ117には、ズームの動作の応答性の設定と、その設定に対応した平均化に用いる個数のテーブルが予め保存されている。続いてステップS1002において、被写体サイズ演算部201は、メモリ117のズームの動作の応答性と平均化の個数の対応テーブルから、平均化に用いるための個数Xを取得する。本実施例において、個数Xは、M≦X≦Nまたは1≦X≦Nのいずれかの関係が成り立っている。続いてステップS1003において、被写体サイズ演算部201は、ステップS1002にて取得した個数Xを用いて、現在の顔サイズ情報からX個の過去の顔サイズ情報を平均し、ズーム速度決定に用いる顔サイズとする。なお、個数N及び個数Mの決定方法については、前述のとおりである。また、個数Xが1となった場合、平均化を行わずに、最新の顔サイズ情報をズーム速度決定に用いる顔サイズとする。 First, in step S1001, the subject size calculation unit 201 acquires the responsiveness of the current zoom operation set by the zoom responsiveness setting unit 131. In the memory 117, the responsiveness setting of the zoom operation and the number of tables used for averaging corresponding to the setting are stored in advance. Subsequently, in step S1002, the subject size calculation unit 201 acquires the number X to be used for averaging from the correspondence table between the responsiveness of the zoom operation of the memory 117 and the number of averaging. In this embodiment, the number X has a relationship of either M ≦ X ≦ N or 1 ≦ X ≦ N. Subsequently, in step S1003, the subject size calculation unit 201 uses the number X acquired in step S1002 to average X past face size information from the current face size information, and the face size used for determining the zoom speed. And. The method for determining the number N and the number M is as described above. Further, when the number X becomes 1, the latest face size information is used as the face size used for determining the zoom speed without averaging.

なお本実施例において、被写体サイズ演算部201での平滑化(平均化)の演算処理以外の構成については実施例1と同様であるため、それらの説明は省略する。 In this embodiment, the configurations other than the smoothing (averaging) calculation processing in the subject size calculation unit 201 are the same as those in the first embodiment, and thus the description thereof will be omitted.

次に、実施例3について説明する。本実施例では、被写体サイズ演算部201での被写体の顔サイズの間引き処理の例を説明する。間引き処理は、顔サイズの変化量が所定範囲に収まっていない場合に、誤検知した可能性がある顔サイズ情報を除く処理である。 Next, Example 3 will be described. In this embodiment, an example of thinning out the face size of the subject by the subject size calculation unit 201 will be described. The thinning process is a process for removing face size information that may be erroneously detected when the amount of change in face size does not fall within a predetermined range.

まず、図11を参照して、図5のステップS503(間引き処理、すなわち平滑化処理)について詳述する。図11は、被写体サイズの間引き処理を示すフローチャートである。図11では、ズームの応答性が2段階で切り替えられている場合について説明する。 First, with reference to FIG. 11, step S503 (thinning process, that is, smoothing process) of FIG. 5 will be described in detail. FIG. 11 is a flowchart showing the thinning process of the subject size. FIG. 11 describes a case where the zoom responsiveness is switched in two steps.

まずステップS1101において、被写体サイズ演算部201は、ズーム応答性設定部131により設定されている現在のズームの動作の応答性を判定する。ステップS1101にてズームの応答性の設定が「低」と判定された場合、ステップS1102に進む。ステップS1102において、被写体サイズ演算部201は、顔サイズ変化によるズーム速度の変動を抑えるための間引き処理に用いる閾値Tをメモリ117から取得する。メモリ117には予め、間引き処理に用いる閾値Tが保存されている。なお、閾値Tの決定方法については後述する。続いてステップS1103において、被写体サイズ演算部201は、最新の顔サイズ情報と前回の顔サイズ情報との変化量の絶対値が閾値Tを超えた場合、最新の顔サイズ情報を間引く。そして被写体サイズ演算部201は、前回の顔サイズ情報を、ズームの速度決定に用いる。一方、最新の顔サイズ情報と前回の顔サイズ情報との変化量の絶対値が閾値Tを超えない場合、被写体サイズ演算部201は、最新の顔サイズ情報を間引くことなくズームの速度を決定する。 First, in step S1101, the subject size calculation unit 201 determines the responsiveness of the current zoom operation set by the zoom responsiveness setting unit 131. If it is determined in step S1101 that the zoom responsiveness setting is "low", the process proceeds to step S1102. In step S1102, the subject size calculation unit 201 acquires the threshold value T used for the thinning process for suppressing the fluctuation of the zoom speed due to the change in face size from the memory 117. The threshold value T used for the thinning process is stored in the memory 117 in advance. The method of determining the threshold value T will be described later. Subsequently, in step S1103, the subject size calculation unit 201 thins out the latest face size information when the absolute value of the amount of change between the latest face size information and the previous face size information exceeds the threshold value T. Then, the subject size calculation unit 201 uses the previous face size information for determining the zoom speed. On the other hand, when the absolute value of the amount of change between the latest face size information and the previous face size information does not exceed the threshold value T, the subject size calculation unit 201 determines the zoom speed without thinning out the latest face size information. ..

一方、ステップS1101にてズームの応答性が「高」と判定された場合、ステップS1104に進む。ズームの応答性を高くする場合、顔サイズの変動がほとんどないことを前提とし、顔サイズを一定に保ちながらズームが動作することを理想とするため、高い応答性が求められる。このためステップS1104において、被写体サイズ演算部201は、間引き処理を行わず、最新の顔サイズ情報をズーム速度決定に用いる顔サイズとする。ステップS1103、S1104にてズーム速度決定のための顔サイズ情報が選択され、被写体サイズ演算部201での処理は終了する。 On the other hand, if the zoom responsiveness is determined to be "high" in step S1101, the process proceeds to step S1104. When increasing the responsiveness of the zoom, it is assumed that there is almost no fluctuation in the face size, and it is ideal that the zoom operates while keeping the face size constant, so that high responsiveness is required. Therefore, in step S1104, the subject size calculation unit 201 does not perform the thinning process, and sets the latest face size information as the face size used for determining the zoom speed. Face size information for determining the zoom speed is selected in steps S1103 and S1104, and the process in the subject size calculation unit 201 ends.

次に、ステップS1103にて間引き処理に使用する閾値Tの決定方法について説明する。被写体サイズ演算部201は、実際に被写体が移動した場合の顔サイズ変動を予め測定し、その際の顔サイズ変動の平均値を求める。そして、被写体の移動による顔サイズ変動の平均値の所定倍の値を、閾値Tとする。閾値Tよりも大きい顔サイズ変動は、顔サイズの誤検知の可能性がある。このため被写体サイズ演算部201は、顔サイズの変動が閾値T以下の際の顔サイズの情報を使用する。また、被写体の顔が正面を向いた状態から横向きに変化することで、顔サイズも変動する。このため、顔の向きが変わったことによる顔サイズの変動は、顔向き情報を用いることで、顔サイズ情報を間引いてもよい。 Next, a method of determining the threshold value T used for the thinning process in step S1103 will be described. The subject size calculation unit 201 measures in advance the fluctuation of the face size when the subject actually moves, and obtains the average value of the fluctuation of the face size at that time. Then, a value that is a predetermined multiple of the average value of the face size fluctuation due to the movement of the subject is set as the threshold value T. Face size fluctuations larger than the threshold value T may cause false detection of face size. Therefore, the subject size calculation unit 201 uses the face size information when the fluctuation of the face size is equal to or less than the threshold value T. In addition, the face size also changes as the subject's face changes from the front facing state to the sideways direction. Therefore, the change in face size due to the change in face orientation may be reduced by using the face orientation information.

なお、被写体サイズ演算部201での平滑化(平均化)の演算処理以外の構成については実施例1と同様であるため、それらの説明は省略する。 Since the configurations other than the smoothing (averaging) calculation processing in the subject size calculation unit 201 are the same as those in the first embodiment, their description will be omitted.

次に、実施例4について説明する。本実施例では、被写体サイズ演算部201での被写体の顔サイズの間引き処理の例を説明する。まず、図12を参照して、図5のステップS503(間引き処理、すなわち平滑化処理)について詳述する。図12は、本実施例における被写体サイズの間引き処理を示すフローチャートである。図12では、ズームの応答性が2段階で切り替えられている場合について説明する。 Next, Example 4 will be described. In this embodiment, an example of thinning out the face size of the subject by the subject size calculation unit 201 will be described. First, with reference to FIG. 12, step S503 (thinning process, that is, smoothing process) of FIG. 5 will be described in detail. FIG. 12 is a flowchart showing the thinning process of the subject size in this embodiment. FIG. 12 describes a case where the zoom responsiveness is switched in two steps.

まずステップS1201において、被写体サイズ演算部201は、ズーム応答性設定部131により設定されている現在のズームの動作の応答性を判定する。ステップS1201にてズームの応答性の設定が「低」と判定された場合、ステップS1202に進む。ステップS1202において、被写体サイズ演算部201は、顔サイズ変化によるズーム速度の変動を抑えるための間引き処理に用いる閾値Tをメモリ117から取得する。メモリ117には予め、間引き処理に用いる閾値Tが保存されている。なお閾値Tの決定方法は、実施例3で述べたとおりである。続いてステップS1203において、被写体サイズ演算部201は、最新の顔サイズ情報と前回の顔サイズ情報との変化量の絶対値が閾値Tを超えた場合、最新の顔サイズ情報を間引く。そして被写体サイズ演算部201は、前回の顔サイズ情報をズームの速度決定に用いる。一方、最新の顔サイズ情報と前回の顔サイズ情報との変化量の絶対値が閾値Tを超えない場合、被写体サイズ演算部201は、最新の顔サイズ情報を間引かず、ズームの速度を決定する。 First, in step S1201, the subject size calculation unit 201 determines the responsiveness of the current zoom operation set by the zoom responsiveness setting unit 131. If it is determined in step S1201 that the zoom responsiveness setting is "low", the process proceeds to step S1202. In step S1202, the subject size calculation unit 201 acquires the threshold value T used for the thinning process for suppressing the fluctuation of the zoom speed due to the change in face size from the memory 117. The threshold value T used for the thinning process is stored in the memory 117 in advance. The method for determining the threshold value T is as described in Example 3. Subsequently, in step S1203, the subject size calculation unit 201 thins out the latest face size information when the absolute value of the amount of change between the latest face size information and the previous face size information exceeds the threshold value T. Then, the subject size calculation unit 201 uses the previous face size information for determining the zoom speed. On the other hand, when the absolute value of the amount of change between the latest face size information and the previous face size information does not exceed the threshold value T, the subject size calculation unit 201 determines the zoom speed without thinning out the latest face size information. To do.

一方、ステップS1201にてズームの応答性が「高」と判定された場合、ステップS1204に進む。ステップS1204において、被写体サイズ演算部201は、顔サイズばらつきの影響を軽減させる必要がある場合には閾値Sを用いて間引き処理を行う。閾値Sはズームの応答性を損なわないような値であり、S>Tが成り立つ。続いてステップS1205において、最新の顔サイズ情報と前回の顔サイズ情報との変化量の絶対値が閾値Sを超えた場合、被写体サイズ演算部201は、最新の顔サイズ情報を間引く。そして被写体サイズ演算部201は、前回の顔サイズ情報をズームの速度決定に用いる。一方、最新の顔サイズ情報と前回の顔サイズ情報との変化量の絶対値が閾値Sを超えない場合、被写体サイズ演算部201は、最新の顔サイズ情報を間引かず、ズームの速度を決定する。ステップS1203、S1205にてズーム速度決定のための顔サイズ情報が選択され、被写体サイズ演算部201での処理は終了する。 On the other hand, if the zoom responsiveness is determined to be "high" in step S1201, the process proceeds to step S1204. In step S1204, the subject size calculation unit 201 performs thinning processing using the threshold value S when it is necessary to reduce the influence of the face size variation. The threshold value S is a value that does not impair the responsiveness of the zoom, and S> T holds. Subsequently, in step S1205, when the absolute value of the amount of change between the latest face size information and the previous face size information exceeds the threshold value S, the subject size calculation unit 201 thins out the latest face size information. Then, the subject size calculation unit 201 uses the previous face size information for determining the zoom speed. On the other hand, when the absolute value of the amount of change between the latest face size information and the previous face size information does not exceed the threshold value S, the subject size calculation unit 201 determines the zoom speed without thinning out the latest face size information. To do. Face size information for determining the zoom speed is selected in steps S1203 and S1205, and the process in the subject size calculation unit 201 ends.

次に、図13を参照して、ズームの応答性が3つ以上の段階で切り替えられている場合について説明する。図13は、本実施例の変形例としての被写体サイズの間引き処理を示すフローチャートである。図13では、ズームの応答性が「高/中/低」の3段階である場合の被写体の顔サイズの間引き処理のフローを説明する。 Next, with reference to FIG. 13, a case where the zoom responsiveness is switched in three or more stages will be described. FIG. 13 is a flowchart showing a subject size thinning process as a modification of the present embodiment. FIG. 13 describes a flow of thinning out the face size of the subject when the zoom responsiveness has three stages of “high / medium / low”.

まずステップS1301において、被写体サイズ演算部201は、ズーム応答性設定部131により設定されている現在のズームの動作の応答性が「低」または「低」以外のいずれであるかを判定する。ステップS1301にてズームの応答性の設定が「低」と判定された場合、ステップS1302に進む。ステップS1302において、被写体サイズ演算部201は、顔サイズ変化によるズーム速度の変動を抑えるための間引き処理に用いる閾値Tをメモリ117から取得する。メモリ117には予め、間引き処理に用いる閾値Tが保存されている。続いてステップS1303において、最新の顔サイズ情報と前回の顔サイズ情報との変化量の絶対値が閾値Tを超えた場合、被写体サイズ演算部201は、最新の顔サイズ情報を間引く。そして被写体サイズ演算部201は、前回の顔サイズ情報をズームの速度決定に用いる。一方、最新の顔サイズ情報と前回の顔サイズ情報との変化量の絶対値が閾値Tを超えない場合、被写体サイズ演算部201は、最新の顔サイズ情報を間引かず、ズームの速度を決定する。 First, in step S1301, the subject size calculation unit 201 determines whether the responsiveness of the current zoom operation set by the zoom responsiveness setting unit 131 is other than "low" or "low". If it is determined in step S1301 that the zoom responsiveness setting is "low", the process proceeds to step S1302. In step S1302, the subject size calculation unit 201 acquires the threshold value T used for the thinning process for suppressing the fluctuation of the zoom speed due to the change in face size from the memory 117. The threshold value T used for the thinning process is stored in the memory 117 in advance. Subsequently, in step S1303, when the absolute value of the amount of change between the latest face size information and the previous face size information exceeds the threshold value T, the subject size calculation unit 201 thins out the latest face size information. Then, the subject size calculation unit 201 uses the previous face size information for determining the zoom speed. On the other hand, when the absolute value of the amount of change between the latest face size information and the previous face size information does not exceed the threshold value T, the subject size calculation unit 201 determines the zoom speed without thinning out the latest face size information. To do.

一方、ステップS1301にてズームの応答性が「低」以外と判定された場合、ステップS1304において、被写体サイズ演算部201は、ズームの応答性が「中」または「高」のいずれであるかを判定する。ステップS1304にてズームの応答性が「中」と判定された場合、ステップS1305に進む。ステップS1305において、被写体サイズ演算部201は、顔サイズ変化によるズーム速度の変動を抑えるための間引き処理に用いる顔サイズ情報の閾値Sをメモリ117から取得する。メモリ117には予め、間引き処理に用いる閾値Sが保存されている。続いてステップS1306において、最新の顔サイズ情報と前回の顔サイズ情報との変化量の絶対値が閾値Sを超えた場合、被写体サイズ演算部201は、最新の顔サイズ情報を間引く。そして被写体サイズ演算部201は、前回の顔サイズ情報をズームの速度決定に用いる。一方、最新の顔サイズ情報と前回の顔サイズ情報との変化量の絶対値が閾値Sを超えない場合、被写体サイズ演算部201は、最新の顔サイズ情報を間引かず、ズームの速度を決定する。なお、閾値Tおよび閾値Sの決定方法は、前述のとおりである。 On the other hand, when it is determined in step S1301 that the zoom responsiveness is other than "low", in step S1304, the subject size calculation unit 201 determines whether the zoom responsiveness is "medium" or "high". judge. If the zoom responsiveness is determined to be "medium" in step S1304, the process proceeds to step S1305. In step S1305, the subject size calculation unit 201 acquires the threshold value S of the face size information used for the thinning process for suppressing the fluctuation of the zoom speed due to the change in the face size from the memory 117. The threshold value S used for the thinning process is stored in the memory 117 in advance. Subsequently, in step S1306, when the absolute value of the amount of change between the latest face size information and the previous face size information exceeds the threshold value S, the subject size calculation unit 201 thins out the latest face size information. Then, the subject size calculation unit 201 uses the previous face size information for determining the zoom speed. On the other hand, when the absolute value of the amount of change between the latest face size information and the previous face size information does not exceed the threshold value S, the subject size calculation unit 201 determines the zoom speed without thinning out the latest face size information. To do. The method for determining the threshold value T and the threshold value S is as described above.

一方、ステップS1304にてズームの応答性が「高」と判定された場合、ステップS1307に進む。ステップS1307において、被写体サイズ演算部201は、顔サイズの変化に対するズームの応答性を高くするために、顔サイズ情報の間引き処理を行わず、最新の顔サイズ情報をズームの速度決定に用いる。ステップS1303、S1306、S1307にてズーム速度決定のための顔サイズ情報が選択され、被写体サイズ演算部201での処理は終了する。 On the other hand, if the zoom responsiveness is determined to be "high" in step S1304, the process proceeds to step S1307. In step S1307, the subject size calculation unit 201 does not perform the thinning process of the face size information and uses the latest face size information for determining the zoom speed in order to increase the responsiveness of the zoom to the change of the face size. The face size information for determining the zoom speed is selected in steps S1303, S1306, and S1307, and the processing in the subject size calculation unit 201 ends.

また、ズームの応答性が2段階以上に設定できる場合、図14を参照して説明するフローに従ってもよい。図14は、本実施例の別の変形例としての被写体サイズの間引き処理を示すフローチャートである。 Further, when the zoom responsiveness can be set to two or more steps, the flow described with reference to FIG. 14 may be followed. FIG. 14 is a flowchart showing a subject size thinning process as another modification of the present embodiment.

まずステップS1401において、被写体サイズ演算部201は、ズーム応答性設定部131により設定されている現在のズームの動作の応答性を取得する。メモリ117には、ズームの動作の応答性の設定と、その設定に対応した間引き処理に用いる閾値のテーブルが予め保存されている。続いてステップS1402において、被写体サイズ演算部201は、メモリ117のズームの動作の応答性と間引き処理の閾値の対応テーブルから、間引き処理に用いるための閾値Yを取得する。本実施例において、閾値Yは、T≦Y≦Sまたは0≦Y≦Sのいずれかの関係が成り立つ。 First, in step S1401, the subject size calculation unit 201 acquires the responsiveness of the current zoom operation set by the zoom responsiveness setting unit 131. In the memory 117, a table of responsiveness of the zoom operation and a threshold value used for the thinning process corresponding to the setting is stored in advance. Subsequently, in step S1402, the subject size calculation unit 201 acquires a threshold value Y for use in the thinning process from the correspondence table between the responsiveness of the zoom operation of the memory 117 and the threshold value of the thinning process. In this embodiment, the threshold value Y has a relationship of either T ≦ Y ≦ S or 0 ≦ Y ≦ S.

続いてステップS1403において、被写体サイズ演算部201は、ステップS1402にて取得した閾値Yを用いて、最新の顔サイズ情報と前回の顔サイズ情報との変化量の絶対値が閾値Yを超えた場合、顔サイズ情報を間引く。そして被写体サイズ演算部201は、前回の顔サイズ情報をズームの速度決定に用いる。一方、最新の顔サイズ情報と前回の顔サイズ情報との変化量の絶対値が閾値Yを超えない場合、被写体サイズ演算部201は、顔サイズ情報を間引かずに、最新の顔サイズ情報をズームの速度決定に用いる。閾値が0となった場合、被写体サイズ演算部201は、間引き処理を行わず、最新の顔サイズ情報をズームの速度決定に用いる。なお、閾値Tおよび閾値Sの決定方法については、前述のとおりである。 Subsequently, in step S1403, the subject size calculation unit 201 uses the threshold value Y acquired in step S1402 when the absolute value of the amount of change between the latest face size information and the previous face size information exceeds the threshold value Y. , Thin out face size information. Then, the subject size calculation unit 201 uses the previous face size information for determining the zoom speed. On the other hand, when the absolute value of the amount of change between the latest face size information and the previous face size information does not exceed the threshold value Y, the subject size calculation unit 201 performs the latest face size information without thinning out the face size information. Used to determine the zoom speed. When the threshold value becomes 0, the subject size calculation unit 201 does not perform the thinning process and uses the latest face size information for determining the zoom speed. The method for determining the threshold value T and the threshold value S is as described above.

本実施例では、ズーム動作の応答性に基づいて間引き処理のための閾値を変更するが、サンプリングレートを変更するようにしてもよい。なお、被写体サイズ演算部201での平滑化(平均化)の演算処理以外の構成については実施例1と同様であるため、それらの説明は省略する。 In this embodiment, the threshold value for the thinning process is changed based on the responsiveness of the zoom operation, but the sampling rate may be changed. Since the configurations other than the smoothing (averaging) calculation processing in the subject size calculation unit 201 are the same as those in the first embodiment, their description will be omitted.

次に、実施例5について説明する。本実施例では、被写体サイズ演算部201での被写体の顔サイズのフィルタリング処理の例を説明する。フィルタリング処理は、顔サイズの変化の周波数が所定周波数以上である場合に、誤検知した可能性がある顔サイズを逓減させ、誤検知した可能性がある顔サイズ情報を除くための処理である。 Next, Example 5 will be described. In this embodiment, an example of the face size filtering process of the subject by the subject size calculation unit 201 will be described. The filtering process is a process for gradually reducing the face size that may have been erroneously detected and removing the face size information that may have been erroneously detected when the frequency of change in face size is equal to or higher than a predetermined frequency.

まず、図15を参照して、図5のステップS503(フィルタリング処理、すなわち平滑化処理)について詳述する。図15は、本実施例における被写体サイズのフィルタリング処理を示すフローチャートである。図15では、ズームの応答性が2段階で切り替えられている場合について説明する。 First, with reference to FIG. 15, step S503 (filtering process, that is, smoothing process) of FIG. 5 will be described in detail. FIG. 15 is a flowchart showing a subject size filtering process in this embodiment. FIG. 15 describes a case where the zoom responsiveness is switched in two steps.

まずステップS1501において、被写体サイズ演算部201は、ズーム応答性設定部131により設定されている現在のズームの動作の応答性を判定する。ステップS1501にてズームの応答性の設定が「低」と判定された場合、ステップS1502に進む。ステップS1502において、被写体サイズ演算部201は、顔サイズ変化によるズーム速度の変動を抑えるためのフィルタリング処理に用いる周波数Fをメモリ117から取得する。メモリ117には予め、フィルタリング処理に用いる周波数Fが保存されている。なお、周波数Fの決定方法については後述する。続いてステップS1503において、被写体サイズ演算部201は、まず顔サイズ情報を周波数Fを用いて設計したデジタルローパスフィルタに通して高周波成分を除く。その後、フィルタに通した顔サイズ情報をズーム速度決定に用いる。 First, in step S1501, the subject size calculation unit 201 determines the responsiveness of the current zoom operation set by the zoom responsiveness setting unit 131. If it is determined in step S1501 that the zoom responsiveness setting is "low", the process proceeds to step S1502. In step S1502, the subject size calculation unit 201 acquires the frequency F used for the filtering process for suppressing the fluctuation of the zoom speed due to the change in the face size from the memory 117. The frequency F used for the filtering process is stored in the memory 117 in advance. The method for determining the frequency F will be described later. Subsequently, in step S1503, the subject size calculation unit 201 first passes the face size information through a digital low-pass filter designed using the frequency F to remove high frequency components. After that, the face size information passed through the filter is used to determine the zoom speed.

一方、ステップS1501にてズームの応答性が「高」と判定された場合、ステップS1504に進む。ズームの応答性を高くする場合、顔サイズの変動がほとんどないことを前提とし、顔サイズを一定に保ちながらズームが動作することを理想とするため、高い応答性が求められる。このためステップS1504において、被写体サイズ演算部201は、フィルタリング処理を行わず、最新の顔サイズ情報をズーム速度決定に用いる。ステップS1503、S1504にてズーム速度決定のための顔サイズ情報が選択され、被写体サイズ演算部201での処理は終了する。 On the other hand, if the zoom responsiveness is determined to be "high" in step S1501, the process proceeds to step S1504. When increasing the responsiveness of the zoom, it is assumed that there is almost no fluctuation in the face size, and it is ideal that the zoom operates while keeping the face size constant, so that high responsiveness is required. Therefore, in step S1504, the subject size calculation unit 201 does not perform the filtering process and uses the latest face size information for determining the zoom speed. Face size information for determining the zoom speed is selected in steps S1503 and S1504, and the process in the subject size calculation unit 201 ends.

次に、ステップS1503にてフィルタリング処理に使用する周波数Fの決定方法について説明する。被写体サイズ演算部201は、実際に被写体が移動した場合の顔サイズ変動を予め測定し、測定結果から顔サイズ変動の周波数特性を求める。周波数特性から、被写体の移動による顔サイズ変動の周波数を判定することができるため、その周波数を周波数Fとする。周波数Fよりも速い周波数の顔サイズ変動は、顔サイズの誤検知の可能性があるため、周波数Fを用いて設計したデジタルローパスフィルタを使用する。 Next, a method of determining the frequency F used for the filtering process in step S1503 will be described. The subject size calculation unit 201 measures in advance the fluctuation of the face size when the subject actually moves, and obtains the frequency characteristic of the fluctuation of the face size from the measurement result. Since the frequency of face size fluctuation due to the movement of the subject can be determined from the frequency characteristics, that frequency is set to frequency F. A digital low-pass filter designed using the frequency F is used because a face size fluctuation having a frequency faster than the frequency F may cause a false detection of the face size.

なお、被写体サイズ演算部201での平滑化(平均化)の演算処理以外の構成については実施例1と同様であるため、それらの説明は省略する。 Since the configurations other than the smoothing (averaging) calculation processing in the subject size calculation unit 201 are the same as those in the first embodiment, their description will be omitted.

次に、実施例6について説明する。本実施例では、被写体サイズ演算部201での被写体の顔サイズのフィルタリング処理の例を説明する。まず図16を参照して、図5のステップS503(フィルタリング処理、すなわち平滑化処理)について詳述する。図16は、本実施例における被写体サイズのフィルタリング処理を示すフローチャートである。図16では、ズームの応答性が2段階で切り替えられている場合について説明する。 Next, Example 6 will be described. In this embodiment, an example of the face size filtering process of the subject by the subject size calculation unit 201 will be described. First, with reference to FIG. 16, step S503 (filtering process, that is, smoothing process) of FIG. 5 will be described in detail. FIG. 16 is a flowchart showing a subject size filtering process in this embodiment. FIG. 16 describes a case where the zoom responsiveness is switched in two steps.

まずステップS1601において、被写体サイズ演算部201は、ズーム応答性設定部131により設定されている現在のズームの動作の応答性を判定する。ステップS1601にてズームの応答性の設定が「低」と判定された場合、ステップS1602に進む。ステップS1602において、被写体サイズ演算部201は、顔サイズ変化によるズーム速度の変動を抑えるためのフィルタリング処理に用いる周波数Fをメモリ117から取得する。メモリ117には予め、フィルタリング処理に用いる周波数Fが保存されている。なお、周波数Fの決定方法については、実施例5で述べたとおりである。続いてステップS1603において、被写体サイズ演算部201は、まず顔サイズ情報を周波数Fを用いて作成したデジタルローパスフィルタに通して高周波成分を除く。その後、被写体サイズ演算部201は、フィルタに通した顔サイズ情報をズーム速度決定に用いる。 First, in step S1601, the subject size calculation unit 201 determines the responsiveness of the current zoom operation set by the zoom responsiveness setting unit 131. If it is determined in step S1601 that the zoom responsiveness setting is "low", the process proceeds to step S1602. In step S1602, the subject size calculation unit 201 acquires the frequency F used for the filtering process for suppressing the fluctuation of the zoom speed due to the change in the face size from the memory 117. The frequency F used for the filtering process is stored in the memory 117 in advance. The method for determining the frequency F is as described in Example 5. Subsequently, in step S1603, the subject size calculation unit 201 first passes the face size information through a digital low-pass filter created using the frequency F to remove high-frequency components. After that, the subject size calculation unit 201 uses the face size information passed through the filter to determine the zoom speed.

一方、ステップS1601にてズームの応答性が「高」と判定された場合、ステップS1604に進む。ステップS1604において、顔サイズばらつきの影響を軽減させる必要がある場合、フィルタリング処理を行う。このためステップS1604において、被写体サイズ演算部201は、顔サイズ変化によるズーム速度の変動を抑えるためのフィルタリング処理に用いる周波数Gをメモリ117から取得する。メモリ117には予め、フィルタリング処理に用いる周波数Gが保存されている。周波数Gは、ズームの応答性を損なわないような値が設定されており、G>Fが成り立つ。続いてステップS1605において、被写体サイズ演算部201は、顔サイズ情報を周波数Gを用いて作成したデジタルローパスフィルタに通して高周波成分を除く。その後、被写体サイズ演算部201は、フィルタに通した顔サイズ情報をズーム速度決定に用いる。ステップS1603、S1605にてズーム速度決定のための顔サイズ情報が選択され、被写体サイズ演算部201での処理は終了する。 On the other hand, if the zoom responsiveness is determined to be "high" in step S1601, the process proceeds to step S1604. In step S1604, when it is necessary to reduce the influence of face size variation, a filtering process is performed. Therefore, in step S1604, the subject size calculation unit 201 acquires the frequency G used for the filtering process for suppressing the fluctuation of the zoom speed due to the change in the face size from the memory 117. The frequency G used for the filtering process is stored in the memory 117 in advance. The frequency G is set to a value that does not impair the responsiveness of the zoom, and G> F holds. Subsequently, in step S1605, the subject size calculation unit 201 passes the face size information through a digital low-pass filter created using the frequency G to remove the high frequency component. After that, the subject size calculation unit 201 uses the face size information passed through the filter to determine the zoom speed. Face size information for determining the zoom speed is selected in steps S1603 and S1605, and the process in the subject size calculation unit 201 ends.

次に、図17を参照して、ズームの応答性が3つ以上の段階で切り替えられている場合について説明する。図17は、本実施例の変形例としての被写体サイズのフィルタリング処理を示すフローチャートである。図17では、ズームの応答性が「高/中/低」の3段階である場合の被写体の顔サイズのフィルタリング処理のフローを説明する。 Next, with reference to FIG. 17, a case where the zoom responsiveness is switched in three or more stages will be described. FIG. 17 is a flowchart showing a subject size filtering process as a modification of the present embodiment. FIG. 17 describes a flow of filtering processing of the face size of the subject when the zoom responsiveness has three stages of “high / medium / low”.

まずステップS1701において、被写体サイズ演算部201は、ズーム応答性設定部131により設定されている現在のズームの動作の応答性が「低」または「低」以外のいずれであるかを判定する。ステップS1701にてズームの応答性の設定が「低」と判定された場合、ステップS1702に進む。ステップS1702において、被写体サイズ演算部201は、顔サイズ変化によるズーム速度の変動を抑えるためのフィルタリング処理に用いる周波数Fをメモリ117から取得する。メモリ117には予め、フィルタリング処理に用いる周波数Fが保存されている。続いてステップS1703において、被写体サイズ演算部201は、顔サイズ情報を周波数Fを用いて作成したデジタルローパスフィルタに通して高周波成分を除く。その後、被写体サイズ演算部201は、フィルタに通した顔サイズ情報をズーム速度決定に用いる。 First, in step S1701, the subject size calculation unit 201 determines whether the responsiveness of the current zoom operation set by the zoom responsiveness setting unit 131 is other than "low" or "low". If it is determined in step S1701 that the zoom responsiveness setting is "low", the process proceeds to step S1702. In step S1702, the subject size calculation unit 201 acquires the frequency F used for the filtering process for suppressing the fluctuation of the zoom speed due to the change in the face size from the memory 117. The frequency F used for the filtering process is stored in the memory 117 in advance. Subsequently, in step S1703, the subject size calculation unit 201 passes the face size information through a digital low-pass filter created by using the frequency F to remove the high frequency component. After that, the subject size calculation unit 201 uses the face size information passed through the filter to determine the zoom speed.

一方、ステップS1701にてズームの応答性が「低」以外であると判定された場合、ステップS1704において、被写体サイズ演算部201は、ズームの応答性が「中」または「高」のいずれであるかを判定する。ステップS1704にてズームの応答性が「中」と判定された場合、ステップS1705に進む。ステップS1705において、被写体サイズ演算部201は、顔サイズ変化によるズーム速度の変動を抑えるためのフィルタリング処理に用いる周波数Gをメモリ117から取得する。メモリ117には予め、フィルタリング処理に用いる周波数Gが保存されている。続いてステップS1706において、被写体サイズ演算部201は、顔サイズ情報を周波数Gを用いて作成したデジタルローパスフィルタに通して高周波成分を除く。その後、被写体サイズ演算部201は、フィルタに通した顔サイズ情報をズーム速度決定に用いる。 On the other hand, when it is determined in step S1701 that the zoom responsiveness is other than "low", in step S1704, the subject size calculation unit 201 has either "medium" or "high" zoom responsiveness. Is determined. If the zoom responsiveness is determined to be "medium" in step S1704, the process proceeds to step S1705. In step S1705, the subject size calculation unit 201 acquires the frequency G used for the filtering process for suppressing the fluctuation of the zoom speed due to the change in the face size from the memory 117. The frequency G used for the filtering process is stored in the memory 117 in advance. Subsequently, in step S1706, the subject size calculation unit 201 passes the face size information through a digital low-pass filter created using the frequency G to remove the high frequency component. After that, the subject size calculation unit 201 uses the face size information passed through the filter to determine the zoom speed.

一方、ステップS1704にてズームの応答性が「高」と判定された場合、ステップS1707に進む。ステップS1707において、被写体サイズ演算部201は、顔サイズの変化に対するズームの応答性を高くするため、顔サイズ情報のフィルタリング処理を行わず、最新の顔サイズ情報をズームの速度決定に用いる。なお、周波数Fおよび周波数Gの決定方法は、前述のとおりである。ステップS1703、S1706、S1707にてズーム速度決定のための顔サイズ情報が選択され、被写体サイズ演算部201での処理は終了する。 On the other hand, if the zoom responsiveness is determined to be "high" in step S1704, the process proceeds to step S1707. In step S1707, the subject size calculation unit 201 does not perform the filtering process of the face size information and uses the latest face size information for determining the zoom speed in order to increase the responsiveness of the zoom to the change of the face size. The method for determining the frequency F and the frequency G is as described above. The face size information for determining the zoom speed is selected in steps S1703, S1706, and S1707, and the processing in the subject size calculation unit 201 ends.

また、ズームの応答性が2段階以上に設定できる場合、図18を参照して説明するフローに従ってもよい。図18は、本実施例の別の変形例としての被写体サイズのフィルタリング処理を示すフローチャートである。 Further, when the zoom responsiveness can be set to two or more steps, the flow described with reference to FIG. 18 may be followed. FIG. 18 is a flowchart showing a subject size filtering process as another modification of the present embodiment.

まずステップS1801において、被写体サイズ演算部201は、ズーム応答性設定部131により設定されている現在のズームの動作の応答性を取得する。メモリ117には、ズームの動作の応答性の設定と、その設定に対応したフィルタリング処理に用いる周波数のテーブルが予め保存されている。続いてステップS1802において、被写体サイズ演算部201は、メモリ117のズームの動作の応答性とフィルタリング処理の閾値の対応テーブルから、フィルタリング処理に用いるための周波数Zを取得する。周波数Zは、F≦Z≦Gまたは0≦Z≦Gのいずれかの関係が成り立つ。続いてステップS1803において、被写体サイズ演算部201は、ステップS1802にて取得した周波数Zを用いて、顔サイズの変動が周波数Z以下であれば、最新の顔サイズ情報をズーム速度決定に用いる。一方、周波数Z以上の顔サイズの変動がある場合、被写体サイズ演算部201は、誤検知した顔サイズであると判定する。そして被写体サイズ演算部201は、誤検知した顔サイズを周波数Z以下になるように補正し、ズームの速度を決定する。また、周波数が0となった場合、被写体サイズ演算部201は、フィルタリング処理を行わず、最新の顔サイズをズームの速度決定に用いる。周波数Fおよび周波数Gの決定方法は、前述のとおりである。 First, in step S1801, the subject size calculation unit 201 acquires the responsiveness of the current zoom operation set by the zoom responsiveness setting unit 131. In the memory 117, a setting of responsiveness of the zoom operation and a table of frequencies used for the filtering process corresponding to the setting are stored in advance. Subsequently, in step S1802, the subject size calculation unit 201 acquires the frequency Z to be used for the filtering process from the correspondence table between the responsiveness of the zoom operation of the memory 117 and the threshold value of the filtering process. The frequency Z has a relationship of either F ≦ Z ≦ G or 0 ≦ Z ≦ G. Subsequently, in step S1803, the subject size calculation unit 201 uses the frequency Z acquired in step S1802 and uses the latest face size information for determining the zoom speed if the fluctuation of the face size is frequency Z or less. On the other hand, when the face size fluctuates above the frequency Z, the subject size calculation unit 201 determines that the face size is erroneously detected. Then, the subject size calculation unit 201 corrects the falsely detected face size so that the frequency is Z or less, and determines the zoom speed. When the frequency becomes 0, the subject size calculation unit 201 does not perform the filtering process and uses the latest face size for determining the zoom speed. The method for determining the frequency F and the frequency G is as described above.

なお、被写体サイズ演算部201での平滑化(平均化)の演算処理以外の構成については実施例1と同様であるため、それらの説明は省略する。 Since the configurations other than the smoothing (averaging) calculation processing in the subject size calculation unit 201 are the same as those in the first embodiment, their description will be omitted.

このように各実施例において、制御装置(AZ制御部125)は、撮像倍率を変更するズーム手段(124、113)を制御する制御装置である。また制御装置は、算出手段(被写体サイズ演算部201)、第1の決定手段(目標被写体サイズ決定部202)、および、第2の決定手段(ズーム速度決定部203)を有する。算出手段は、撮像画像に基づいて被写体サイズを算出する。第1の決定手段は、目標被写体サイズを決定する。第2の決定手段は、被写体サイズと目標被写体サイズとに基づいてズーム速度を決定する。算出手段は、ズーム手段によるズーム動作の応答性に基づいて、被写体サイズの算出方法を変更する。 As described above, in each embodiment, the control device (AZ control unit 125) is a control device that controls the zoom means (124, 113) for changing the imaging magnification. The control device also includes a calculation means (subject size calculation unit 201), a first determination unit (target subject size determination unit 202), and a second determination unit (zoom speed determination unit 203). The calculation means calculates the subject size based on the captured image. The first determining means determines the target subject size. The second determining means determines the zoom speed based on the subject size and the target subject size. The calculation means changes the method of calculating the subject size based on the responsiveness of the zoom operation by the zoom means.

好ましくは、制御装置は、撮像画像から複数の被写体サイズ情報を順次取得する取得手段(被写体検出部126、被写体サイズ抽出部132)を有する。より好ましくは、算出手段は、複数の被写体サイズ情報の平滑化処理を行って被写体サイズを算出する。より好ましくは、算出手段は、応答性が第1の応答性である場合(応答性が低い場合)、複数の被写体サイズ情報の平滑化処理を行って被写体サイズを算出する。一方、算出手段は、応答性が第1の応答性よりも高い第2の応答性である場合(応答性が高い場合)、複数の被写体サイズ情報の平滑化処理を行わずに被写体サイズを算出する。 Preferably, the control device includes acquisition means (subject detection unit 126, subject size extraction unit 132) for sequentially acquiring a plurality of subject size information from the captured image. More preferably, the calculation means calculates the subject size by performing smoothing processing of a plurality of subject size information. More preferably, when the responsiveness is the first responsiveness (when the responsiveness is low), the calculation means performs smoothing processing of a plurality of subject size information to calculate the subject size. On the other hand, when the responsiveness is the second responsiveness higher than the first responsiveness (when the responsiveness is high), the calculation means calculates the subject size without smoothing a plurality of subject size information. To do.

好ましくは、算出手段は、平滑化処理として、複数の被写体サイズ情報の平均化処理を行う(実施例1、2)。より好ましくは、算出手段は、応答性が第1の応答性である場合、第1の個数(N)の被写体サイズ情報の平均化処理を行って被写体サイズを算出する。一方、算出手段は、応答性が第2の応答性である場合、第1の個数よりも小さい第2の個数(M(<N))の被写体サイズ情報の平均化処理を行って被写体サイズを算出する。 Preferably, the calculation means performs a plurality of subject size information averaging processes as a smoothing process (Examples 1 and 2). More preferably, when the responsiveness is the first responsiveness, the calculation means performs the averaging process of the first number (N) of the subject size information to calculate the subject size. On the other hand, when the responsiveness is the second responsiveness, the calculation means averages the subject size information of the second number (M (<N)) smaller than the first number to obtain the subject size. calculate.

好ましくは、算出手段は、平滑化処理として、複数の被写体サイズ情報から少なくとも一つの被写体サイズ情報を除く間引き処理を行う(実施例3、4)。より好ましくは、算出手段は、複数の被写体サイズ情報のうち連続して取得された第1の被写体サイズ情報と第2の被写体サイズ情報との変化量の絶対値が所定の閾値(T)を超えた場合、間引き処理を行う。一方、算出手段は、第1の被写体サイズ情報と第2の被写体サイズ情報との変化量の絶対値が所定の閾値を超えていない場合、間引き処理を行わない。 Preferably, as the smoothing process, the calculation means performs a thinning process of removing at least one subject size information from the plurality of subject size information (Examples 3 and 4). More preferably, the calculation means means that the absolute value of the amount of change between the first subject size information and the second subject size information acquired continuously among the plurality of subject size information exceeds a predetermined threshold value (T). If so, the thinning process is performed. On the other hand, the calculation means does not perform the thinning process when the absolute value of the amount of change between the first subject size information and the second subject size information does not exceed a predetermined threshold value.

好ましくは、算出手段は、応答性が第1の応答性であって複数の被写体サイズ情報のうち連続して取得された第1の被写体サイズ情報と第2の被写体サイズ情報との変化量の絶対値が第1の閾値(T)を超えた場合、間引き処理を行って被写体サイズを算出する。一方、算出手段は、応答性が第2の応答性であって第1の被写体サイズ情報と第2の被写体サイズ情報との変化量の絶対値が第1の閾値よりも大きい第2の閾値(S(>T))を超えた場合、間引き処理を行って被写体サイズを算出する(実施例4)。 Preferably, the calculation means has the first responsiveness, and the absolute amount of change between the first subject size information and the second subject size information acquired continuously among the plurality of subject size information is absolute. When the value exceeds the first threshold value (T), the subject size is calculated by performing the thinning process. On the other hand, the calculation means has a second threshold value (the responsiveness is the second responsiveness and the absolute value of the amount of change between the first subject size information and the second subject size information is larger than the first threshold value. When S (> T)) is exceeded, the subject size is calculated by performing the thinning process (Example 4).

好ましくは、算出手段は、平滑化処理として、複数の被写体サイズ情報のフィルタリング処理を行う(実施例5、6)。より好ましくは、算出手段は、応答性が第1の応答性である場合、第1の周波数(F)のローパスフィルタを用いてフィルタリング処理を行って被写体サイズを算出する。一方、算出手段は、応答性が第2の応答性である場合、第1の周波数よりも高い第2の周波数(G)のローパスフィルタを用いてフィルタリング処理を行って被写体サイズを算出する(実施例6)。 Preferably, the calculation means performs a plurality of subject size information filtering processes as a smoothing process (Examples 5 and 6). More preferably, when the responsiveness is the first responsiveness, the calculation means performs a filtering process using a low-pass filter of the first frequency (F) to calculate the subject size. On the other hand, when the responsiveness is the second responsiveness, the calculation means calculates the subject size by performing a filtering process using a low-pass filter having a second frequency (G) higher than the first frequency (implementation). Example 6).

好ましくは、制御装置は、ズーム動作の応答性を設定する設定手段(ズーム応答性設定部131)を有する。より好ましくは、設定手段は、ユーザの指示によりズーム動作の応答性を設定する。また好ましくは、設定手段は、ズーム動作の複数の応答性から選択された応答性を設定する。 Preferably, the control device has a setting means (zoom responsiveness setting unit 131) for setting the responsiveness of the zoom operation. More preferably, the setting means sets the responsiveness of the zoom operation according to the instruction of the user. Also preferably, the setting means sets the responsiveness selected from the plurality of responsiveness of the zoom operation.

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

各実施例によれば、ズーム動作の応答性に応じて適切なオートズームを実行することが可能な制御装置、撮像装置、制御方法、および、プログラムを提供することができる。すなわち各実施例によれば、撮影条件に応じてズーム動作の応答性を切り替えてユーザの撮影意図に応じたオートズーム撮影が可能になる。 According to each embodiment, it is possible to provide a control device, an image pickup device, a control method, and a program capable of performing an appropriate auto zoom according to the responsiveness of the zoom operation. That is, according to each embodiment, the responsiveness of the zoom operation can be switched according to the shooting conditions to enable auto-zoom shooting according to the user's shooting intention.

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

125 AZ制御部(制御装置)
201 被写体サイズ演算部(算出手段)
202 目標被写体サイズ決定部(第1の決定手段)
203 ズーム速度決定部(第2の決定手段)
125 AZ control unit (control device)
201 Subject size calculation unit (calculation means)
202 Target subject size determination unit (first determination means)
203 Zoom speed determination unit (second determination means)

Claims (17)

撮像倍率を変更するズーム手段を制御する制御装置であって、
撮像画像に基づいて被写体サイズを算出する算出手段と、
目標被写体サイズを決定する第1の決定手段と、
前記被写体サイズと前記目標被写体サイズとに基づいてズーム速度を決定する第2の決定手段と、を有し、
前記算出手段は、前記ズーム手段によるズーム動作の応答性に基づいて、前記被写体サイズの算出方法を変更することを特徴とする制御装置。
A control device that controls the zoom means for changing the imaging magnification.
A calculation means for calculating the subject size based on the captured image,
The first means of determining the target subject size and
It has a second determining means for determining the zoom speed based on the subject size and the target subject size.
The calculation means is a control device characterized in that the calculation method of the subject size is changed based on the responsiveness of the zoom operation by the zoom means.
前記撮像画像から複数の被写体サイズ情報を順次取得する取得手段を更に有することを特徴とする請求項1に記載の制御装置。 The control device according to claim 1, further comprising an acquisition means for sequentially acquiring a plurality of subject size information from the captured image. 前記算出手段は、前記複数の被写体サイズ情報の平滑化処理を行って前記被写体サイズを算出することを特徴とする請求項2に記載の制御装置。 The control device according to claim 2, wherein the calculation means performs smoothing processing of a plurality of subject size information to calculate the subject size. 前記算出手段は、
前記応答性が第1の応答性である場合、前記複数の被写体サイズ情報の前記平滑化処理を行って前記被写体サイズを算出し、
前記応答性が前記第1の応答性よりも高い第2の応答性である場合、前記複数の被写体サイズ情報の前記平滑化処理を行わずに前記被写体サイズを算出することを特徴とすることを特徴とする請求項3に記載の制御装置。
The calculation means is
When the responsiveness is the first responsiveness, the smoothing process of the plurality of subject size information is performed to calculate the subject size.
When the responsiveness is a second responsiveness higher than the first responsiveness, the subject size is calculated without performing the smoothing process of the plurality of subject size information. The control device according to claim 3.
前記算出手段は、前記平滑化処理として、前記複数の被写体サイズ情報の平均化処理を行うことを特徴とする請求項3または4に記載の制御装置。 The control device according to claim 3 or 4, wherein the calculation means performs an averaging process of a plurality of subject size information as the smoothing process. 前記算出手段は、
前記応答性が第1の応答性である場合、第1の個数の被写体サイズ情報の前記平均化処理を行って前記被写体サイズを算出し、
前記応答性が前記第1の応答性よりも高い第2の応答性である場合、前記第1の個数よりも小さい第2の個数の被写体サイズ情報の前記平均化処理を行って前記被写体サイズを算出することを特徴とすることを特徴とする請求項5に記載の制御装置。
The calculation means is
When the responsiveness is the first responsiveness, the subject size is calculated by performing the averaging process of the first number of subject size information.
When the responsiveness is a second responsiveness higher than the first responsiveness, the subject size is calculated by performing the averaging process of the second number of subject size information smaller than the first number. The control device according to claim 5, wherein the control device is characterized in that it is calculated.
前記算出手段は、前記平滑化処理として、前記複数の被写体サイズ情報から少なくとも一つの被写体サイズ情報を除く間引き処理を行うことを特徴とする請求項3または4に記載の制御装置。 The control device according to claim 3 or 4, wherein the calculation means performs a thinning process for removing at least one subject size information from the plurality of subject size information as the smoothing process. 前記算出手段は、
前記複数の被写体サイズ情報のうち連続して取得された第1の被写体サイズ情報と第2の被写体サイズ情報との変化量の絶対値が所定の閾値を超えた場合、前記間引き処理を行い、
前記第1の被写体サイズ情報と前記第2の被写体サイズ情報との変化量の絶対値が前記所定の閾値を超えていない場合、前記間引き処理を行わないことを特徴とする請求項7に記載の制御装置。
The calculation means is
When the absolute value of the amount of change between the first subject size information and the second subject size information continuously acquired among the plurality of subject size information exceeds a predetermined threshold value, the thinning process is performed.
The seventh aspect of claim 7, wherein the thinning process is not performed when the absolute value of the amount of change between the first subject size information and the second subject size information does not exceed the predetermined threshold value. Control device.
前記算出手段は、
前記応答性が第1の応答性であり、かつ前記複数の被写体サイズ情報のうち連続して取得された第1の被写体サイズ情報と第2の被写体サイズ情報との変化量の絶対値が第1の閾値を超えた場合、前記間引き処理を行って前記被写体サイズを算出し、
前記応答性が前記第1の応答性よりも高い第2の応答性であり、かつ前記第1の被写体サイズ情報と前記第2の被写体サイズ情報との変化量の絶対値が前記第1の閾値よりも大きい第2の閾値を超えた場合、前記間引き処理を行って前記被写体サイズを算出することを特徴とすることを特徴とする請求項7に記載の制御装置。
The calculation means is
The responsiveness is the first responsiveness, and the absolute value of the amount of change between the first subject size information and the second subject size information continuously acquired among the plurality of subject size information is the first. When the threshold value of is exceeded, the thinning process is performed to calculate the subject size.
The responsiveness is a second responsiveness higher than the first responsiveness, and the absolute value of the amount of change between the first subject size information and the second subject size information is the first threshold value. The control device according to claim 7, wherein when the second threshold value larger than the second threshold value is exceeded, the thinning process is performed to calculate the subject size.
前記算出手段は、前記平滑化処理として、前記複数の被写体サイズ情報のフィルタリング処理を行うことを特徴とする請求項3または4に記載の制御装置。 The control device according to claim 3 or 4, wherein the calculation means performs a filtering process of a plurality of subject size information as the smoothing process. 前記算出手段は、
前記応答性が第1の応答性である場合、第1の周波数のローパスフィルタを用いて前記フィルタリング処理を行って前記被写体サイズを算出し、
前記応答性が前記第1の応答性よりも高い第2の応答性である場合、前記第1の周波数よりも高い第2の周波数のローパスフィルタを用いて前記フィルタリング処理を行って前記被写体サイズを算出することを特徴とすることを特徴とする請求項10に記載の制御装置。
The calculation means is
When the responsiveness is the first responsiveness, the filtering process is performed using the low-pass filter of the first frequency to calculate the subject size.
When the responsiveness is a second responsiveness higher than the first responsiveness, the filtering process is performed using a low-pass filter having a second frequency higher than the first frequency to determine the subject size. The control device according to claim 10, wherein the control device is characterized in that it is calculated.
前記ズーム動作の前記応答性を設定する設定手段を更に有することを特徴とする請求項1乃至11のいずれか一項に記載の制御装置。 The control device according to any one of claims 1 to 11, further comprising a setting means for setting the responsiveness of the zoom operation. 前記設定手段は、ユーザの指示により前記ズーム動作の前記応答性を設定することを特徴とする請求項12に記載の制御装置。 The control device according to claim 12, wherein the setting means sets the responsiveness of the zoom operation according to a user's instruction. 前記設定手段は、前記ズーム動作の複数の応答性から選択された前記応答性を設定することを特徴とする請求項12または13に記載の制御装置。 The control device according to claim 12 or 13, wherein the setting means sets the responsiveness selected from the plurality of responsiveness of the zoom operation. 撮像素子と、
請求項1乃至14のいずれか一項に記載の制御装置と、を有することを特徴とする撮像装置。
With the image sensor
An imaging device comprising the control device according to any one of claims 1 to 14.
撮像倍率を変更するズーム手段を制御する制御方法であって、
撮像画像に基づいて被写体サイズを算出するステップと、
目標被写体サイズを決定するステップと、
前記被写体サイズと前記目標被写体サイズとに基づいてズーム速度を決定するステップと、を有し、
前記被写体を算出するステップにおいて、前記ズーム手段によるズーム動作の応答性に基づいて、前記被写体サイズの算出方法を変更することを特徴とする制御方法。
It is a control method for controlling the zoom means for changing the imaging magnification.
Steps to calculate the subject size based on the captured image,
Steps to determine the target subject size and
It has a step of determining a zoom speed based on the subject size and the target subject size.
A control method characterized in that, in the step of calculating the subject, the calculation method of the subject size is changed based on the responsiveness of the zoom operation by the zoom means.
撮像倍率を変更するズーム手段を制御する制御方法をコンピュータに実行させるプログラムであって、
撮像画像に基づいて被写体サイズを算出するステップと、
目標被写体サイズを決定するステップと、
前記被写体サイズと前記目標被写体サイズとに基づいてズーム速度を決定するステップと、をコンピュータに実行させ、
前記被写体を算出するステップにおいて、前記ズーム手段によるズーム動作の応答性に基づいて、前記被写体サイズの算出方法を変更することを特徴とするプログラム。
A program that causes a computer to execute a control method that controls a zoom means that changes the imaging magnification.
Steps to calculate the subject size based on the captured image,
Steps to determine the target subject size and
Let the computer perform the step of determining the zoom speed based on the subject size and the target subject size.
A program characterized in that, in the step of calculating the subject, the method of calculating the subject size is changed based on the responsiveness of the zoom operation by the zoom means.
JP2019103425A 2019-06-03 2019-06-03 Controller, imaging apparatus, control method, and program Pending JP2020198536A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2019103425A JP2020198536A (en) 2019-06-03 2019-06-03 Controller, imaging apparatus, control method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2019103425A JP2020198536A (en) 2019-06-03 2019-06-03 Controller, imaging apparatus, control method, and program

Publications (1)

Publication Number Publication Date
JP2020198536A true JP2020198536A (en) 2020-12-10

Family

ID=73649396

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2019103425A Pending JP2020198536A (en) 2019-06-03 2019-06-03 Controller, imaging apparatus, control method, and program

Country Status (1)

Country Link
JP (1) JP2020198536A (en)

Similar Documents

Publication Publication Date Title
US9344634B2 (en) Imaging apparatus having subject detection function, method for controlling the imaging apparatus, and storage medium
JP6735583B2 (en) Zoom control device, imaging device and control method thereof, program, and storage medium
US9992421B2 (en) Image pickup apparatus having FA zoom function, method for controlling the apparatus, and recording medium
US10270978B2 (en) Zoom control device with scene composition selection, and imaging apparatus, control method of zoom control device, and recording medium therewith
US9253410B2 (en) Object detection apparatus, control method therefor, image capturing apparatus, and storage medium
JP7039254B2 (en) A lens control device, an image pickup device including the lens control device, and a lens control method.
US9148557B2 (en) Focus adjustment apparatus and method, and image capturing apparatus and control method thereof
US20190215462A1 (en) Zoom control device, imaging apparatus, control method of zoom control device, and recording medium
US9781351B2 (en) Zooming control device and method for controlling zooming control device
JP6436761B2 (en) Zoom control device, imaging device, control method for zoom control device, and control program for zoom control device
JP2005215040A (en) Autofocus system
US8502912B2 (en) Focusing apparatus and method for controlling the same
JP4645413B2 (en) Imaging device
JP4596246B2 (en) Auto focus system
JP6188474B2 (en) Zoom control device, control method for zoom control device, control program for zoom control device, and storage medium
JP6245923B2 (en) IMAGING DEVICE, IMAGING DEVICE CONTROL METHOD, IMAGING DEVICE CONTROL PROGRAM, AND STORAGE MEDIUM
JP6501536B2 (en) Imaging device, control method therefor, program, storage medium
US11265478B2 (en) Tracking apparatus and control method thereof, image capturing apparatus, and storage medium
JP2020198536A (en) Controller, imaging apparatus, control method, and program
JP2019219529A (en) Control device, imaging device, 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
WO2022209478A1 (en) Information processing device, information processing method, and information processing program
US20210258477A1 (en) Electronic device
JP2018014680A (en) Imaging apparatus, control method, and program
JP2009048126A (en) Photographing equipment and method of controlling same