JP2014225854A - Imaging device and method for controlling the same - Google Patents

Imaging device and method for controlling the same Download PDF

Info

Publication number
JP2014225854A
JP2014225854A JP2013138443A JP2013138443A JP2014225854A JP 2014225854 A JP2014225854 A JP 2014225854A JP 2013138443 A JP2013138443 A JP 2013138443A JP 2013138443 A JP2013138443 A JP 2013138443A JP 2014225854 A JP2014225854 A JP 2014225854A
Authority
JP
Japan
Prior art keywords
zoom
zoom position
subject
size
control unit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2013138443A
Other languages
Japanese (ja)
Other versions
JP6224925B2 (en
JP2014225854A5 (en
Inventor
昭洋 粒崎
Akihiro Ryuzaki
昭洋 粒崎
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP2013138443A priority Critical patent/JP6224925B2/en
Priority to US14/219,241 priority patent/US9253410B2/en
Publication of JP2014225854A publication Critical patent/JP2014225854A/en
Publication of JP2014225854A5 publication Critical patent/JP2014225854A5/en
Application granted granted Critical
Publication of JP6224925B2 publication Critical patent/JP6224925B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

PROBLEM TO BE SOLVED: To improve the operability of a user in subject recapturing operation even when a subject gets out of a field angle during telescopic photographing.SOLUTION: An imaging device comprises a first operation unit via which a user instructs change of a zoom position, subject detecting means for detecting a subject from an image, and control means for controlling the zoom position according to the operation of the first operation unit. When the first operation is performed via the first operation unit, the control means executes first mode. If the subject detected by the subject detecting means is included outside a first region set in the image in the first mode, the control means controls the zoom position to move to a first zoom position on a wide-angle side and sets the zoom position before zoom movement at a second zoom position. If the subject detected by the subject detecting means at the first zoom position is included in the second region set in the region corresponding to the second zoom position, the control means controls the zoom position to move to the second zoom position.

Description

本発明は、ズーム機能を有する撮像装置及びその制御方法に関するものである。   The present invention relates to an imaging apparatus having a zoom function and a control method thereof.

デジタルカメラ等の撮像装置には、ズームレンズの駆動による光学的な変倍(光学ズーム)機能と、撮像した領域の一部を拡大する電子的な変倍(電子ズーム)機能を備えたものがある。近年、ズームレンズの性能向上により超広角から超望遠まで同一のレンズで撮影でき、また撮像素子の高画素化によって、拡大倍率を高くしても十分な解像感の得られる撮影が可能になってきている。   Some imaging devices such as a digital camera have an optical scaling function by driving a zoom lens (optical zoom) and an electronic scaling function (electronic zoom) function for enlarging a part of an imaged area. is there. In recent years, it has become possible to shoot with the same lens from ultra-wide angle to super-telephoto due to the performance improvement of the zoom lens, and with the increase in the number of pixels of the image sensor, it has become possible to shoot with sufficient resolution even when the magnification is increased. It is coming.

被写体がフレームアウトした際に即座に被写体を捉え直す機能として、特許文献1ではフレーミングアシストズーム機能(FAズーム機能)と呼ぶ機能が提案されている。特許文献1に開示の装置では、FAズーム機能の開始が指示された場合にズーム位置を広角方向にズームアウトさせ、FAズーム機能の終了が指示された場合にFAズーム機能の開始されたときのズーム位置へズームインさせることができる。   As a function for instantly recapturing a subject when the subject is out of frame, Patent Document 1 proposes a function called a framing assist zoom function (FA zoom function). In the apparatus disclosed in Patent Document 1, when the start of the FA zoom function is instructed, the zoom position is zoomed out in the wide-angle direction, and when the end of the FA zoom function is instructed, the FA zoom function is started. You can zoom in to the zoom position.

一方、画面内の被写体をカメラで検出し、被写体の検出情報に応じてカメラが自動でズーム位置を変更する機能として、いわゆるオートズーム機能が知られている。特許文献2では、被写体が画面内の特定領域の限界位置に達したときにズーム位置を広角方向にズームアウトさせる方法が提示されている。また、特許文献2では、被写体が画面内の中央部分にいるときにズーム位置を望遠方向にズームインさせる方法が提示されている。   On the other hand, a so-called auto-zoom function is known as a function for detecting a subject in the screen by a camera and automatically changing the zoom position according to the subject detection information. Japanese Patent Application Laid-Open No. 2004-228688 proposes a method of zooming out the zoom position in the wide-angle direction when the subject reaches the limit position of a specific area in the screen. Japanese Patent Application Laid-Open No. 2004-228561 presents a method of zooming in on the zoom position in the telephoto direction when the subject is in the center of the screen.

しかしながら、特許文献2のようなオートズーム機能では、撮影する被写体の移動速度やズーム動作開始条件、ズームの変更量等によっては、ズームアウト動作で画面上の中央付近に被写体が移動してその被写体の位置を元に即座にズームインさせたり、ズームイン動作で画面上の周辺付近に被写体が移動してその位置を元に即座にズームアウトさせる可能性がある。すなわち、ズームアウトとズームインを繰り返すハンチング現象が生じてしまい、撮影者が煩わしく感じる恐れや、その動作によってシャッタチャンスを逃してしまう恐れがある。   However, in the auto-zoom function as in Patent Document 2, depending on the moving speed of the subject to be photographed, the zoom operation start condition, the amount of zoom change, and the like, the subject moves to the vicinity of the center on the screen by the zoom-out operation. There is a possibility that the subject is zoomed in immediately based on the position of the subject, or the subject moves to the vicinity of the periphery on the screen by the zoom-in operation and instantly zooms out based on the location. That is, a hunting phenomenon that repeats zoom-out and zoom-in occurs, which may cause the photographer to feel bothersome and may miss a photo opportunity due to the operation.

特開2012−60595号公報JP 2012-60595 A 特許第2052653号公報Japanese Patent No. 20526553

上記のFAズーム機能では、撮影者の操作に応じてズームアウトとズームインを行っていた。ここで、撮影者の利便性を高めるため、FAズーム機能においても被写体の状態に応じて自動でズーム動作を可能にすることが想定される。その際、画角を速やかに調整するために、上記のハンチング現象をできるだけ抑えることが求められる。   In the above FA zoom function, zoom-out and zoom-in are performed in accordance with a photographer's operation. Here, in order to improve the convenience of the photographer, it is assumed that the zoom operation can be automatically performed in the FA zoom function according to the state of the subject. At that time, in order to quickly adjust the angle of view, it is required to suppress the above hunting phenomenon as much as possible.

本発明は上述した課題に鑑みてなされたものであり、その目的は、望遠撮影時に被写体が画角から外れた場合に被写体を捉え直す動作において、ズームアウトとズームインを繰り返すハンチング現象の発生を抑えることである。   The present invention has been made in view of the above-described problems, and an object of the present invention is to suppress the occurrence of a hunting phenomenon in which zoom-out and zoom-in are repeated in an operation of re-capturing a subject when the subject deviates from the angle of view during telephoto shooting. That is.

本発明に係わる撮像装置は、ユーザがズーム位置の変更を指示するための第1の操作部と、画像から被写体を検出する被写体検出手段と、前記第1の操作部の操作に応じてズーム位置を制御する制御手段とを有する撮像装置であって、前記第1の操作部を介した第1の操作が行われた場合、前記制御手段は、第1のモードを実行し、前記第1のモードにおいて、前記制御手段は、前記被写体検出手段により検出された被写体が画像内に設定された第1の領域外に含まれる場合、ズーム位置を広角側の第1のズーム位置に移動するよう制御するとともに、ズーム移動前のズーム位置を第2のズーム位置に設定し、前記第1のズーム位置において、前記被写体検出手段により検出された被写体が前記第2のズーム位置に対応する領域内に設定された第2の領域内に包含される場合、ズーム位置を前記第2のズーム位置に移動するよう制御することを特徴とする。   An imaging apparatus according to the present invention includes a first operation unit for a user to instruct a change of a zoom position, subject detection means for detecting a subject from an image, and a zoom position according to an operation of the first operation unit. When the first operation via the first operation unit is performed, the control unit executes the first mode, and the first operation unit controls the first mode. In the mode, when the subject detected by the subject detection means is included outside the first region set in the image, the control means controls to move the zoom position to the first zoom position on the wide angle side. At the same time, the zoom position before the zoom movement is set to the second zoom position, and the subject detected by the subject detection means is set in the region corresponding to the second zoom position at the first zoom position. Is When included in the second region, and controls to move the zoom position to the second zoom position.

また、本発明に関わる撮像装置の制御方法は、ユーザがズーム位置の変更を指示するための第1の操作部を有する撮像装置の制御方法であって、画像から被写体を検出する検出ステップと、前記第1の操作部の操作に応じてズーム位置を制御する制御ステップとを有し、前記第1の操作部を介した第1の操作が行われた場合、前記制御ステップにおいて第1のモードを実行し、前記第1のモードにおいて、前記検出ステップにより検出された被写体が画像内に設定された第1の領域外に含まれる場合、ズーム位置を広角側の第1のズーム位置に移動するよう制御するとともに、ズーム移動前のズーム位置を第2のズーム位置に設定し、前記第1のズーム位置において、前記検出ステップにより検出された被写体が前記第2のズーム位置に対応する領域内に設定された第2の領域内に包含される場合、ズーム位置を前記第2のズーム位置に移動するよう制御することを特徴とする。   An imaging device control method according to the present invention is a method for controlling an imaging device having a first operation unit for a user to instruct a change of a zoom position, and a detection step of detecting a subject from an image; And a control step for controlling the zoom position according to the operation of the first operation unit, and when the first operation is performed via the first operation unit, the first mode is set in the control step. And the zoom position is moved to the first zoom position on the wide-angle side when the subject detected by the detection step is included outside the first area set in the image in the first mode. The zoom position before the zoom movement is set to the second zoom position, and the subject detected by the detection step corresponds to the second zoom position at the first zoom position. When included in that second area set in the area, and controlling so as to move the zoom position to the second zoom position.

本発明によれば、望遠撮影時に被写体が画角から外れた場合に被写体を捉え直す動作において、ズームアウトとズームインを繰り返すハンチング現象を抑えることが可能となる。   According to the present invention, it is possible to suppress a hunting phenomenon in which zoom-out and zoom-in are repeated in an operation of re-capturing a subject when the subject deviates from the angle of view during telephoto shooting.

本発明の一実施形態に係るデジタルカメラの構成例を示すブロック図。1 is a block diagram illustrating a configuration example of a digital camera according to an embodiment of the present invention. 焦点距離と、被写体距離ごとのフォーカスレンズ位置との関係を示した図。The figure which showed the relationship between a focal distance and the focus lens position for every object distance. 被写体探索状態での画角及び撮影準備状態での画角を例示した図。The figure which illustrated the angle of view in the subject search state and the angle of view in the shooting preparation state. 被写体(モノ)が画面外へフレームアウトすることを防止する処理を説明する図。The figure explaining the process which prevents a to-be-photographed object (thing) from carrying out a frame out of a screen. 被写体(人物)が画面内でサイズ変化することを防止する処理を説明する図。The figure explaining the process which prevents a to-be-photographed object (person) from changing in size within a screen. FAズーム機能の処理の流れの概要を説明するフローチャート。The flowchart explaining the outline | summary of the flow of a process of FA zoom function. FAズーム開始判定を説明するフローチャート。The flowchart explaining FA zoom start determination. 被写体指定処理を説明するフローチャート。6 is a flowchart for explaining subject designation processing. FAズームアウト動作及びFAズームイン動作を説明するフローチャート。The flowchart explaining FA zoom-out operation | movement and FA zoom-in operation | movement. ズーム戻り位置変更処理を説明するフローチャート。The flowchart explaining zoom return position change processing. FAズーム終了判定を説明するフローチャート。The flowchart explaining FA zoom end determination.

以下に、本発明の一実施形態について、添付図面を参照して詳細に説明する。なお、本実施形態によって実現される機能は、撮影者によるフレーミングを支援するフレーミング支援ズーム機能であり、便宜上、フレーミングアシストズーム機能(以下、FAズーム機能と略記する)と呼ぶこととする。   Hereinafter, an embodiment of the present invention will be described in detail with reference to the accompanying drawings. Note that the function realized by this embodiment is a framing support zoom function that supports framing by a photographer, and for convenience, will be referred to as a framing assist zoom function (hereinafter abbreviated as FA zoom function).

図1は、本発明の撮像装置の一実施形態としての、デジタルカメラ100の構成を示すブロック図である。レンズ鏡筒101は、その内部にレンズ群を保持している。ズームレンズ102は、光軸方向に移動することで焦点距離を調節し、光学的に画角を変更(ズーム位置を移動)する。フォーカスレンズ103は、光軸方向に移動することでピントを調節する。防振レンズ104は、手ぶれに起因する像振れを補正する補正用レンズである。光量を調節する絞り及びシャッタ105は露出制御に使用される。レンズ鏡筒101を通過した光は、CCD(電荷結合素子)やCMOS(相補型金属酸化膜半導体)等を用いた撮像素子106にて受光され、光電変換されて撮像信号が生成される。撮像信号は、画像処理回路107に入力されて、画素補間処理や色変換処理等が施された後、画像データとして画像メモリ108に送られる。画像メモリ108はDRAM(Dynamic Random Access Memory)やSRAM(Static Random Access Memory)等で構成される。   FIG. 1 is a block diagram showing a configuration of a digital camera 100 as an embodiment of an imaging apparatus of the present invention. The lens barrel 101 holds a lens group therein. The zoom lens 102 adjusts the focal length by moving in the optical axis direction, and optically changes the angle of view (moves the zoom position). The focus lens 103 adjusts the focus by moving in the optical axis direction. The anti-vibration lens 104 is a correction lens that corrects image blur caused by camera shake. A diaphragm and shutter 105 for adjusting the amount of light are used for exposure control. The light that has passed through the lens barrel 101 is received by an image sensor 106 using a CCD (charge coupled device), a CMOS (complementary metal oxide semiconductor), or the like, and is subjected to photoelectric conversion to generate an image signal. The imaging signal is input to the image processing circuit 107, subjected to pixel interpolation processing, color conversion processing, and the like, and then sent to the image memory 108 as image data. The image memory 108 is configured by a DRAM (Dynamic Random Access Memory), an SRAM (Static Random Access Memory), or the like.

表示手段としての表示部109は、TFT型LCD(薄膜トランジスタ駆動型液晶表示器)等で構成され、撮影した画像データとともに、特定の情報(例えば、撮影情報や後述するFAズーム枠等)を表示する。このようなライブビュー等の情報表示により、撮影者が画角合わせを行うための電子ビューファインダ(EVF)機能を実現している。   The display unit 109 as a display unit is configured by a TFT type LCD (Thin Film Transistor Driven Liquid Crystal Display) or the like, and displays specific information (for example, shooting information, an FA zoom frame described later, etc.) together with the shot image data. . By displaying information such as live view, an electronic viewfinder (EVF) function for the photographer to adjust the angle of view is realized.

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

フォーカスレンズ駆動部112は、フォーカスレンズ103を駆動する。例えば、コントラストAF(オートフォーカス)方式の制御では、画像処理回路107の画像処理によって得られた撮影光学系の焦点調節情報(コントラスト評価値)に基づき、被写体にピントが合うようにフォーカスレンズ103が駆動される。なお、本実施形態の適用上、焦点調節制御の如何は問わないので、位相差AF方式や他の方式と組み合わせた方式が採用可能である。ズームレンズ駆動部113は、ズーム操作指示に従ってズームレンズ102を駆動する。操作部117には、撮影者がカメラにズーミングを指示するためのズーム操作部材としてのズームレバーまたはズームボタン等が設けられている。ズーム指示操作に用いるズーム操作部材(第2の操作部)の操作量及び操作方向に基づいてシステム制御部114によりズーム駆動速度や駆動方向が演算され、演算結果に従ってズームレンズ102が光軸に沿って移動する。   The focus lens driving unit 112 drives the focus lens 103. For example, in contrast AF (autofocus) control, the focus lens 103 is focused on the subject based on focus adjustment information (contrast evaluation value) of the photographing optical system obtained by image processing of the image processing circuit 107. Driven. Note that for the application of the present embodiment, there is no limitation on the focus adjustment control, and a phase difference AF method or a method combined with another method can be employed. The zoom lens driving unit 113 drives the zoom lens 102 in accordance with a zoom operation instruction. The operation unit 117 is provided with a zoom lever or a zoom button as a zoom operation member for the photographer to instruct the camera to perform zooming. Based on the operation amount and operation direction of the zoom operation member (second operation unit) used for the zoom instruction operation, the system control unit 114 calculates the zoom drive speed and drive direction, and the zoom lens 102 follows the optical axis according to the calculation result. Move.

撮影動作によって生成された画像データは、インターフェース部(以下I/F部と呼ぶ)115を介して記録部116に送られて記録される。画像データは、カメラに装着して使用するメモリカード等の外部記録媒体や、デジタルカメラ100に内蔵されている不揮発性のメモリ118、あるいは両方に記録される。   The image data generated by the shooting operation is sent to the recording unit 116 via the interface unit (hereinafter referred to as I / F unit) 115 and recorded. The image data is recorded in an external recording medium such as a memory card used by being mounted on the camera, a nonvolatile memory 118 built in the digital camera 100, or both.

操作部117は上記のズーム操作部材の他、撮影開始を指示するレリーズスイッチ、FAズーム機能の開始や終了を指示する、FAズーム操作スイッチ(第1の操作部)等を含む。操作信号は後述のシステム制御部114に送られる。メモリ118は、プログラムデータや画像データの他に、デジタルカメラ100の設定情報や、後述するFAズーム機能におけるズームイン位置等の情報を記憶する。なお、ズームイン位置とは、FAズームの終了時にズームインする際の目標となる戻り位置であり、その詳細については後述する。   In addition to the zoom operation member, the operation unit 117 includes a release switch for instructing start of photographing, an FA zoom operation switch (first operation unit) for instructing start and end of the FA zoom function, and the like. The operation signal is sent to the system control unit 114 described later. In addition to program data and image data, the memory 118 stores setting information of the digital camera 100 and information such as a zoom-in position in an FA zoom function described later. The zoom-in position is a return position that is a target when zooming in at the end of the FA zoom, and details thereof will be described later.

制御手段としてのシステム制御部114は、CPU(中央演算処理装置)等の演算装置を用いて構成され、撮影者の操作に応じて各部に制御命令を送ることでカメラ全体を制御する。システム制御部114は、メモリ118に記憶されている各種の制御プログラム、例えば撮像素子106の制御やAE/AF制御、ズーム制御(FAズーム処理を含む)等を行うためのプログラムを実行する。   The system control unit 114 as a control unit is configured by using an arithmetic device such as a CPU (Central Processing Unit), and controls the entire camera by sending a control command to each unit according to a photographer's operation. The system control unit 114 executes various control programs stored in the memory 118, for example, programs for performing control of the image sensor 106, AE / AF control, zoom control (including FA zoom processing), and the like.

次に、システム制御部114のうち、FAズーム機能に関連する制御について説明する。なお図1にはシステム制御部114の内部処理を119乃至123の各機能ブロックで表している。   Next, control related to the FA zoom function in the system control unit 114 will be described. In FIG. 1, internal processing of the system control unit 114 is represented by functional blocks 119 to 123.

光学ズームによる画角変更時でも合焦状態を維持するためには、レンズ鏡筒101に示すリアフォーカスタイプの鏡筒の場合、ズームレンズ102の位置に応じてフォーカスレンズ103を適正なフォーカス位置へ移動させる必要がある。このような制御をコンピュータズーム(CZ)制御という。図2は、ズームレンズの焦点距離と、ピントが合うフォーカス位置との関係を、被写体までの距離ごとに示すデータデーブルをグラフ化した図である。このテーブルはフォーカスカムテーブルと称する。横軸はズーム位置に対応する焦点距離を示し、縦軸はフォーカス位置を示し、各グラフ線の横にはカメラから被写体までの距離(被写体距離)を示している。システム制御部114は、AF動作時にフォーカスレンズ駆動部112を制御してフォーカスレンズ103を所定の範囲で移動させることでスキャン動作を行う。この動作中に得られるコントラスト評価値等を用いて、既知の方法により合焦点であるフォーカス位置が検出される。その時のズーム位置とフォーカス位置から、フォーカスカムテーブルを参照することで被写体距離が計測可能である。   In order to maintain the in-focus state even when the angle of view is changed by the optical zoom, in the case of the rear focus type lens barrel shown in the lens barrel 101, the focus lens 103 is moved to an appropriate focus position according to the position of the zoom lens 102. Must be moved. Such control is called computer zoom (CZ) control. FIG. 2 is a graph showing a data table showing the relationship between the focal length of the zoom lens and the focus position at which the subject is in focus for each distance to the subject. This table is called a focus cam table. The horizontal axis indicates the focal length corresponding to the zoom position, the vertical axis indicates the focus position, and the distance from the camera to the subject (subject distance) is indicated beside each graph line. The system control unit 114 performs the scanning operation by controlling the focus lens driving unit 112 and moving the focus lens 103 within a predetermined range during the AF operation. Using a contrast evaluation value or the like obtained during this operation, a focus position that is a focal point is detected by a known method. The subject distance can be measured by referring to the focus cam table from the zoom position and the focus position at that time.

デジタルカメラ100は、光学ズーム機能と電子ズーム機能を有する。CZ制御部119とズームレンズ駆動部113は、光学ズーム駆動を担当する。CZ制御部119は、ズーム動作時に所定の制御周期ごとにズームレンズ102のズーム位置を検出し、そのズーム位置に応じてフォーカスカムテーブルに追従するようにフォーカスレンズ103を駆動させる。これによって、合焦状態を維持したまま光学ズーム動作を行うことが可能となる。   The digital camera 100 has an optical zoom function and an electronic zoom function. The CZ control unit 119 and the zoom lens driving unit 113 are in charge of optical zoom driving. The CZ control unit 119 detects the zoom position of the zoom lens 102 for each predetermined control period during the zoom operation, and drives the focus lens 103 so as to follow the focus cam table according to the zoom position. This makes it possible to perform an optical zoom operation while maintaining the in-focus state.

一方、電子ズーム制御部120及び画像メモリ108は、電子ズーム駆動を担当する。電子ズーム制御部120は、画像メモリ108に転送された画像データから対象領域を切り出すことによって電子ズーム機能を実現する。また、撮像素子106に取り込む映像のフレームレート周期で切り出す範囲を徐々に大きくし、表示部109に表示させることで滑らかな電子ズーム表示が実現される。   On the other hand, the electronic zoom control unit 120 and the image memory 108 are in charge of electronic zoom driving. The electronic zoom control unit 120 realizes an electronic zoom function by cutting out a target area from the image data transferred to the image memory 108. In addition, a smooth electronic zoom display can be realized by gradually increasing the range to be extracted at the frame rate period of the video to be captured by the image sensor 106 and displaying the range on the display unit 109.

被写体検出部123は、画像メモリ108の画像データ(画像領域内)から所望の被写体領域を検出する。本実施形態では顔情報及び色情報を元に被写体を検出する被写体検出方法について説明する。顔検出処理は、画像データ中に存在する顔領域を公知のアルゴリズムにより検出する処理である。例えば、被写体検出部123は、画像データ上の正方形状の部分領域から特徴量を抽出し、その特徴量を予め用意された顔の特徴量と比較し、両者の相関が一定の閾値を超えるときに、その部分領域を顔領域と判定する。この判定を、部分領域のサイズ、配置位置、配置角度の組み合わせを様々に変更しながら繰り返せば、画像データ中に存在する様々な顔領域が検出される。色検出処理では、後述する被写体指定方法に従って指定された被写体領域の色情報を特徴色として記憶する。色検出処理は検出する被写体が人物以外の「モノ」である場合に実行される。色情報には、画像処理回路107からの出力信号であるRGBや輝度Y及び色差R−Y、B−Y等を用いる。被写体検出時には画像データをいくつかの部分領域に分割し、部分領域ごとの輝度及び色差の平均値を算出する。さらに、予め記憶した特徴色情報と被写体検出時の各領域の色情報を比較し、輝度及び色差の差分が所定量以下の部分領域を被写体領域の候補とする。この領域候補で隣り合う部分領域の塊を同一色領域として、同一色領域が所定のサイズ範囲となる領域を最終的な被写体領域とする。   The subject detection unit 123 detects a desired subject region from the image data (in the image region) of the image memory 108. In this embodiment, a subject detection method for detecting a subject based on face information and color information will be described. The face detection process is a process for detecting a face area existing in image data by a known algorithm. For example, the subject detection unit 123 extracts a feature value from a square-shaped partial region on the image data, compares the feature value with a feature value of a face prepared in advance, and the correlation between the two exceeds a certain threshold value Then, the partial area is determined as a face area. If this determination is repeated while changing the combination of the size, arrangement position, and arrangement angle of the partial areas, various face areas existing in the image data are detected. In the color detection process, the color information of the subject area designated according to the subject designation method described later is stored as a characteristic color. The color detection process is executed when the subject to be detected is a “thing” other than a person. As the color information, RGB, luminance Y, color differences RY, BY, and the like, which are output signals from the image processing circuit 107, are used. At the time of subject detection, the image data is divided into several partial areas, and average values of luminance and color difference for each partial area are calculated. Further, the feature color information stored in advance and the color information of each area at the time of subject detection are compared, and a partial area whose difference in luminance and color difference is equal to or smaller than a predetermined amount is determined as a subject area candidate. A group of partial areas adjacent to each other in this area candidate is defined as the same color area, and an area where the same color area falls within a predetermined size range is defined as a final subject area.

被写体検出部123は、顔情報及び色情報と共に、CZ制御部119で計測した被写体距離情報及びズームレンズ102の焦点距離情報を用いることで画像データ上での被写体領域の大きさを推定することができる。   The subject detection unit 123 can estimate the size of the subject region on the image data by using the subject distance information measured by the CZ control unit 119 and the focal length information of the zoom lens 102 together with the face information and the color information. it can.

次に、FAズーム機能の概要と、FAズーム枠制御部121及びFAズーム制御部122について説明する。本実施形態におけるFAズーム機能は、手動探索モードと自動追尾モードの二つのモードを備えている。二つのモードの違いは被写体がフレームアウトしたときに撮影者がFAズーム操作スイッチを操作して被写体を捉え直すモードであるか、カメラが自動で被写体を検出して画角合わせを支援するモードであるかの違いである。各モードの機能の概要を説明する。   Next, an overview of the FA zoom function and the FA zoom frame control unit 121 and the FA zoom control unit 122 will be described. The FA zoom function in this embodiment has two modes, a manual search mode and an automatic tracking mode. The difference between the two modes is the mode in which the photographer operates the FA zoom operation switch to catch the subject when the subject is out of frame, or the camera automatically detects the subject and supports the angle adjustment. There is a difference. An overview of the functions in each mode will be described.

FAズーム機能が非搭載のカメラでは、撮影者が望遠状態でフレーミングしてシャッタチャンスを待っている間に被写体が動いてフレームアウトした場合等では、撮影者(ユーザ)は以下の操作が必要であった。
(1)ズーム操作部材の操作によりズームアウト(広角側へのズーム)を行って被写体を探索すること。
(2)再び所望の画角(例えばズームアウトによるズーム移動前の画角)になるまでズーム操作(望遠側へのズーム操作)を行って画角調整すること。
In a camera not equipped with the FA zoom function, the photographer (user) needs to perform the following operations when the photographer is framing in the telephoto state and the subject moves out of the frame while waiting for a photo opportunity. there were.
(1) Searching for a subject by zooming out (zooming to the wide angle side) by operating a zoom operation member.
(2) Adjusting the angle of view by performing a zoom operation (zooming to the telephoto side) again until a desired angle of view (for example, an angle of view before zooming out by zooming out) is reached.

これに対して、FAズーム機能の手動探索モード(第2のモード)を搭載したデジタルカメラ100では、撮影前に画角合わせ等を行う状態(以下、撮影準備状態という)で被写体を見失ってしまった場合、撮影者はFAズーム操作スイッチを操作すればよい。このFAズーム操作スイッチは、FAズーム機能のために割り当てられたスイッチであり、ズーム操作部材とは別の部材である。FAズーム操作スイッチの押下によって、FAズーム機能の開始をカメラに指示する。FAズーム制御部122は、FAズーム操作スイッチからのFAズーム開始指示にともなって電子ズーム及び光学ズームの各ズーム位置(ズームイン位置)をメモリ118に記憶する。さらにFAズーム制御部122は、後述する図6の処理手順に従って、CZ制御部119または電子ズーム制御部120に対して広角方向にズームアウトの指示を行い、撮影準備状態よりも画角がズームアウトされた状態(以下、被写体探索状態という)にする。   On the other hand, in the digital camera 100 equipped with the manual search mode (second mode) of the FA zoom function, the subject is lost in a state where the angle of view is adjusted before photographing (hereinafter referred to as a photographing preparation state). In this case, the photographer may operate the FA zoom operation switch. This FA zoom operation switch is a switch assigned for the FA zoom function, and is a member different from the zoom operation member. By pressing the FA zoom operation switch, the camera is instructed to start the FA zoom function. The FA zoom control unit 122 stores each zoom position (zoom-in position) of electronic zoom and optical zoom in the memory 118 in response to an FA zoom start instruction from the FA zoom operation switch. Further, the FA zoom control unit 122 instructs the CZ control unit 119 or the electronic zoom control unit 120 to zoom out in the wide-angle direction according to the processing procedure of FIG. To the state (hereinafter referred to as subject search state).

図3(a)及び図3(d)はズームイン状態での画角を示し、図3(b)及び図3(c)はズームアウト状態での画角を示す。撮影者は被写体がフレームアウトしたとき(図3(a))、被写体を探索するためにFAズーム操作スイッチを押下する。FAズーム操作スイッチの押下中はズームアウト状態が保持されるとともに、ズームイン位置を示すFAズーム枠300が画像に重畳して表示部109に表示される。被写体探索状態で所望の被写体を発見した場合(図3(b))、このFAズーム枠300を目安としてFAズーム枠内(枠の周辺部)に被写体が収まるようにフレーミングを行う(図3(c))。その後、撮影者がFAズーム操作スイッチを開放してFAズーム終了をカメラに指示すると、FAズーム制御部122は、記憶しておいた撮影準備状態のズーム位置(ズームイン位置)まで電子ズームまたは光学ズームによるズームイン動作を行う。このようにして、図3(d)で示すような最適なフレーミング状態が得られる。   3A and 3D show the angle of view in the zoom-in state, and FIGS. 3B and 3C show the angle of view in the zoom-out state. When the subject goes out of the frame (FIG. 3A), the photographer presses the FA zoom operation switch to search for the subject. While the FA zoom operation switch is pressed, the zoom-out state is maintained, and the FA zoom frame 300 indicating the zoom-in position is displayed on the display unit 109 so as to be superimposed on the image. When a desired subject is found in the subject search state (FIG. 3B), framing is performed so that the subject fits within the FA zoom frame (periphery of the frame) using the FA zoom frame 300 as a guide (FIG. 3 ( c)). Thereafter, when the photographer releases the FA zoom operation switch and instructs the camera to end the FA zoom, the FA zoom control unit 122 performs electronic zoom or optical zoom up to the stored zoom position (zoom-in position) in the shooting preparation state. Zoom in with In this way, an optimum framing state as shown in FIG.

FAズーム枠制御部121は、図3(b)及び図3(c)で示すように、記憶した撮影準備状態での画角を示す大きさを算出し、表示部109のEVFの中心部にFAズーム枠300を表示させる。FAズーム枠300の大きさは、ズームアウトした時点(ズームアウト開始前)でのズーム倍率を元に計算される。例えば、撮影準備状態から電子ズーム倍率を2倍、光学ズーム倍率を3倍としてズームアウトして被写体探索状態となった場合には、被写体探索状態でEVFに表示される画角に対して、(1/2)×(1/3)=1/6倍の大きさのFAズーム枠が表示される。本処理によって、撮影者は簡単な操作で、フレームアウトした被写体を再度フレームインさせながら所望の画角で撮影することができる。   As shown in FIGS. 3B and 3C, the FA zoom frame control unit 121 calculates the size indicating the angle of view in the stored shooting preparation state, and displays it at the center of the EVF of the display unit 109. The FA zoom frame 300 is displayed. The size of the FA zoom frame 300 is calculated based on the zoom magnification at the time of zooming out (before starting zooming out). For example, when the electronic zoom magnification is 2 times and the optical zoom magnification is 3 times from the shooting preparation state and the subject search state is entered after zooming out, the angle of view displayed on the EVF in the subject search state is ( A FA zoom frame having a size of 1/2) × (1/3) = 1/6 times is displayed. With this processing, the photographer can shoot at a desired angle of view while re-framing the framed out subject with a simple operation.

一方、動いている被写体を撮影する場合など被写体がフレームアウトしやすいシーンを撮影する場合には、以下で説明するようにカメラが自動でズーム位置を変更することで、より簡単にフレームアウトを防止することができる。   On the other hand, when shooting a scene where the subject is likely to be out of frame, such as when shooting a moving subject, the camera automatically changes the zoom position as described below to prevent frame out more easily. can do.

本実施形態のデジタルカメラ100は、FAズーム機能の自動追尾モード(第1のモード)を備える。自動追尾モードでは、モードを自動追尾モードとした後、タッチパネル等から被写体を指定する操作を実施することにより撮影したい被写体を指定する。被写体の指定方法としては、タッチパネル操作以外でも、特定のボタンを押下したときに中央付近にいる被写体を指定する方法や、カメラが検出した被写体の中から自動で主被写体を選択する方法なども考えられる。被写体検出部123では、画像メモリ108から指定された被写体領域の画像データ上での位置や大きさを算出する。これをライブビューとして表示するサンプリングごとの画像データに対して連続的に行なうことで被写体の動きを追尾することが可能となる。追尾している被写体を後述するズームアウト領域で検出した場合や所定の大きさよりも大きくなった場合(図3(a))に、CZ制御部119または電子ズーム制御部120に対してカメラが広角方向にズームアウトの指示を行う(図3(b))。被写体をFAズーム枠300のズームイン領域内に検出し、かつ、所定の大きさの範囲内に収まった場合(図3(c))には、FAズーム枠300が示すズーム位置までズームイン動作を行う(図3(d))。本処理によって、撮影者はズーム操作を気にせず被写体を画面に収めるようにカメラを動かすだけでよく、万が一、フレームアウトしそうになっても自動でズーム位置が変更されるため、より簡単に画角合わせを行なうことが可能となる。本実施形態の目的は、この自動追尾モードにおけるズームアウト動作及びズームイン動作を最適なタイミングで実施することで、撮影者が容易にフレーミングできるようにすることである。   The digital camera 100 of this embodiment includes an automatic tracking mode (first mode) of the FA zoom function. In the automatic tracking mode, after setting the mode to the automatic tracking mode, a subject to be photographed is specified by performing an operation of specifying the subject from a touch panel or the like. In addition to touch panel operations, there are other ways to specify the subject, such as specifying the subject near the center when a specific button is pressed, or automatically selecting the main subject from subjects detected by the camera. It is done. The subject detection unit 123 calculates the position and size of the subject region designated from the image memory 108 on the image data. By continuously performing this on image data for each sampling displayed as a live view, it is possible to track the movement of the subject. When the tracked subject is detected in a zoom-out area, which will be described later, or when the subject is larger than a predetermined size (FIG. 3A), the camera is wide-angled with respect to the CZ controller 119 or the electronic zoom controller 120 A zoom-out instruction is given in the direction (FIG. 3B). When the subject is detected within the zoom-in area of the FA zoom frame 300 and falls within a predetermined size range (FIG. 3C), the zoom-in operation is performed to the zoom position indicated by the FA zoom frame 300. (FIG. 3 (d)). This process makes it easier for the photographer to move the camera so that the subject can be displayed on the screen without worrying about the zoom operation. Corner alignment can be performed. An object of the present embodiment is to enable the photographer to easily perform framing by performing the zoom-out operation and the zoom-in operation in the automatic tracking mode at the optimum timing.

次に図4及び図5を用いて、ズームアウト動作やズームイン動作の開始条件について説明する。400は人物以外のモノを追尾するモノ追尾枠、500は人物の顔を追尾する顔追尾枠である。本実施形態において、被写体が人物とモノのどちらでもよい場合には、モノ追尾枠400と顔追尾枠500とをまとめて被写体追尾枠と呼ぶこともある。被写体追尾枠は、撮影者が指定した被写体を視認できるように表示部109のEVF上に被写体を囲むように表示される。被写体追尾枠の画面上(画像内)での位置及び大きさは、被写体検出部123によって顔情報及び色情報に基づき算出され、フレームレート周期で更新される。図4は被写体とした飛行機が画面外にフレームアウトする場合にフレームアウトを防止する例を示している。図4(a)では、EVFで表示される画角全体に対して所定の比率よりも外側の領域(第1の領域外)をズームアウト領域(ZO)として示している。例えば、画面の中心点を0%、画面全体を100%とし、画面全体に対して80%となる位置をZOの境界とした場合、80〜100%の領域をZOとする。この領域にモノ追尾枠400aの一部が進入したときに、ズームアウト動作を開始する。被写体のサイズや移動速度に応じてズームアウトするズーム倍率やズーム速度を算出しておき、その倍率や速度に従ってズームアウト動作を行うことで、被写体がフレームアウトすることを防止することができる。図4(b)では、被写体探索状態(第1のズーム位置)においてFAズーム枠300で示されるズームイン画角(第2のズーム位置)に対して所定の比率よりも内側の領域(第2の領域)をズームイン領域(ZI)として示している。例えば、画面の中心点を0%、FAズーム枠300で示されるズームイン画角を100%とし、ズームイン画角に対して70%となる位置をZIの境界とした場合、0〜70%の領域をZIとする。このとき、ズームアウト倍率が例えば1/2倍である場合、FAズーム枠300は画面全体に対して50%の大きさとなる。したがって、ZIの領域は、画面全体に対して0〜35%(=70%×(1/2))までの領域であるとも言える。撮影者が、ZI内にモノ追尾枠400bが収まるようにカメラの向きを変更すると、ズームイン動作を開始する。   Next, the start conditions for the zoom-out operation and the zoom-in operation will be described with reference to FIGS. Reference numeral 400 denotes a mono tracking frame for tracking things other than a person, and 500 is a face tracking frame for tracking the face of a person. In the present embodiment, when the subject may be a person or a thing, the mono tracking frame 400 and the face tracking frame 500 may be collectively referred to as a subject tracking frame. The subject tracking frame is displayed on the EVF of the display unit 109 so as to surround the subject so that the subject designated by the photographer can be visually recognized. The position and size of the subject tracking frame on the screen (in the image) are calculated based on the face information and the color information by the subject detection unit 123 and updated at the frame rate period. FIG. 4 shows an example in which frame-out is prevented when an airplane as a subject frames out of the screen. In FIG. 4A, a region outside the predetermined ratio (outside the first region) with respect to the entire angle of view displayed by EVF is shown as a zoom-out region (ZO). For example, assuming that the center point of the screen is 0%, the entire screen is 100%, and a position that is 80% of the entire screen is a ZO boundary, an area of 80 to 100% is defined as ZO. When a part of the mono tracking frame 400a enters this area, the zoom-out operation is started. By calculating the zoom magnification and zoom speed for zooming out according to the size and moving speed of the subject, and performing the zoom-out operation according to the magnification and speed, it is possible to prevent the subject from being out of frame. In FIG. 4B, in the subject search state (first zoom position), an area (second area) inside a predetermined ratio with respect to the zoom-in field angle (second zoom position) indicated by the FA zoom frame 300 (second zoom position). Area) is shown as a zoom-in area (ZI). For example, assuming that the center point of the screen is 0%, the zoom-in angle of view indicated by the FA zoom frame 300 is 100%, and the position that is 70% of the zoom-in angle of view is the ZI boundary, 0 to 70% area Is ZI. At this time, when the zoom-out magnification is 1/2, for example, the FA zoom frame 300 is 50% of the entire screen. Therefore, it can be said that the ZI area is an area of 0 to 35% (= 70% × (1/2)) with respect to the entire screen. When the photographer changes the direction of the camera so that the mono tracking frame 400b fits within the ZI, a zoom-in operation is started.

ここで、ZOの下限比率(上記例では80%)とZIの上限比率(上記例では70%)との関係について説明する。撮影準備状態でモノ追尾枠400がZO下限比率ぎりぎりの位置で検出されたことでズームアウト動作をし、被写体がその位置で停止して、かつ、カメラ自体の向きも変更していない場合について考える。このとき、ZO下限比率とZI上限比率とを同じ比率に設定している場合、ズームアウト動作直後(ズームアウト停止後)にはほぼモノ追尾枠400全体がZIに収まった状態となる。さらに、ZO下限比率≦ZI上限比率となるような設定をしている場合には、ズームアウト動作直後に完全にモノ追尾枠400全体がZIに収まり、即座にズームイン動作を開始してしまう。すなわち、ズームアウト動作とズームイン動作を繰り返すハンチング現象が発生してしまう。したがって、ハンチング現象を防止するためにZO下限比率とZI上限比率との関係は、ZO下限比率>ZI上限比率となるように設定する必要がある。   Here, the relationship between the lower limit ratio of ZO (80% in the above example) and the upper limit ratio of ZI (70% in the above example) will be described. Consider a case where the zoom-out operation is performed when the mono tracking frame 400 is detected at a position near the ZO lower limit ratio in the shooting preparation state, the subject stops at the position, and the direction of the camera itself is not changed. . At this time, when the ZO lower limit ratio and the ZI upper limit ratio are set to the same ratio, the entire mono tracking frame 400 is almost within the ZI immediately after the zoom-out operation (after the zoom-out stop). Further, when the setting is such that the ZO lower limit ratio ≦ ZI upper limit ratio, the entire mono tracking frame 400 is completely within the ZI immediately after the zoom-out operation, and the zoom-in operation is started immediately. That is, a hunting phenomenon that repeats the zoom-out operation and the zoom-in operation occurs. Therefore, in order to prevent the hunting phenomenon, the relationship between the ZO lower limit ratio and the ZI upper limit ratio needs to be set so that the ZO lower limit ratio> the ZI upper limit ratio.

図5は被写体である人物がカメラに近づいてきた場合に、カメラが自動で被写体が占める割合を所定の比率内に収めるようにズーム動作させる例を示している。顔追尾枠500は、被写体である人物の特徴領域として顔領域を囲むように表示している。したがって、ここでは顔追尾枠500の大きさ=被写体サイズとして説明する。図5(a)では、後述する被写体指定方法に従って被写体を指定されたときの画角を示している。被写体指定時の顔追尾枠500aの大きさを基準の被写体サイズ(基準サイズ)としてメモリ118に記憶しておく。図5(b)では、図5(a)の状態からズーム位置を変えずに被写体がカメラに向かって近づいてきたときの画角を示している。例えば、基準の被写体サイズである顔追尾枠500aの大きさに対して150%となる大きさ(所定倍以上大きくなる大きさ)をズームアウト開始サイズとする。被写体追尾枠の関係が、顔追尾枠500b>顔追尾枠500a×150%となったとき、ズームアウト動作を開始する。図5(c)は、図5(a)から図5(b)までで変化した被写体サイズの変化量と同等の1/1.5倍だけズーム倍率を広角方向にズームアウトしたときの画角を示している。この後さらに被写体が近づいてくる場合には光学ズーム位置がワイド端となるまでズームアウトを繰り返すことで被写体を所定の比率内に収め続けることができ、撮影者はレリーズスイッチの操作だけに集中することができる。図4及び図5では、被写体がモノである場合にフレームアウトを防止する処理と、人物である場合に被写体の大きさを所定の比率に収める処理について説明を行ったが、追尾する被写体とズーム動作開始の判定処理とはいずれの組み合わせであってもよい。   FIG. 5 shows an example in which, when a person who is a subject approaches the camera, the camera automatically performs a zoom operation so that the proportion of the subject is within a predetermined ratio. The face tracking frame 500 is displayed so as to surround the face region as a feature region of the person who is the subject. Therefore, here, the description will be made assuming that the size of the face tracking frame 500 = the subject size. FIG. 5A shows an angle of view when a subject is designated according to a subject designation method described later. The size of the face tracking frame 500a at the time of subject designation is stored in the memory 118 as a reference subject size (reference size). FIG. 5B shows the angle of view when the subject approaches the camera without changing the zoom position from the state of FIG. For example, a size that is 150% of the size of the face tracking frame 500a that is the reference subject size (a size that is larger than a predetermined multiple) is set as the zoom-out start size. When the relationship of the subject tracking frame is such that the face tracking frame 500b> face tracking frame 500a × 150%, the zoom-out operation is started. FIG. 5C shows an angle of view when the zoom magnification is zoomed out in the wide-angle direction by a factor of 1 / 1.5, which is equivalent to the amount of change in the subject size changed from FIG. 5A to FIG. Is shown. If the subject approaches further after this, the subject can be kept within a predetermined ratio by repeating zooming out until the optical zoom position reaches the wide end, and the photographer concentrates only on the operation of the release switch. be able to. In FIGS. 4 and 5, the processing for preventing frame-out when the subject is a thing and the processing for keeping the subject size within a predetermined ratio when the subject is a person have been described. The operation start determination process may be any combination.

次に図6を用いて、FAズーム機能の処理の概要について説明する。図6はFAズーム機能の大まかな処理の流れを示すフローチャートである。S100でFAズーム制御部122は、FAズームを開始するか否かを判定する。FAズーム開始判定では、手動探索モードか自動追尾モードかのモード判定を行い、手動探索モードの場合には操作部117のFAズーム操作スイッチの状態を、自動追尾モードの場合には被写体検出結果を元にFAズーム開始の判定を行う。モード判定の方法については後述する。S100のFAズーム開始判定にて、FAズームの開始判定がなされるとS101に進む。   Next, an outline of processing of the FA zoom function will be described with reference to FIG. FIG. 6 is a flowchart showing a rough processing flow of the FA zoom function. In S100, the FA zoom control unit 122 determines whether or not to start FA zoom. In the FA zoom start determination, it is determined whether the manual search mode or the automatic tracking mode is selected. In the manual search mode, the state of the FA zoom operation switch of the operation unit 117 is determined. In the automatic tracking mode, the subject detection result is determined. Originally, it is determined whether or not to start FA zoom. The mode determination method will be described later. If the FA zoom start determination in S100 determines that FA zoom is started, the process proceeds to S101.

S101でFAズーム制御部122は、ズームアウト開始時の光学ズーム位置及び電子ズーム位置を記憶するとともに、所定の駆動量だけCZ制御部119もしくは電子ズーム制御部120に指令してFAズームアウト動作を行う。FAズームアウト動作が終了するとS102に進み、FAズーム枠制御部121は記憶したズーム位置を示すFAズーム枠300を表示部109に表示する。FAズーム枠300を目安として、撮影者は撮影したい被写体を画面中央付近に収めるようにフレーミング操作を行う。このとき、FAズーム枠300内に被写体が収まらない場合や被写体が小さすぎる場合には、S103にてFAズーム枠300を適切な大きさに変更するとともに記憶したズーム位置の情報を更新する。S104でFAズーム制御部122は、FAズームを終了するか否かを判定する。   In S101, the FA zoom control unit 122 stores the optical zoom position and the electronic zoom position at the start of zoom-out, and instructs the CZ control unit 119 or the electronic zoom control unit 120 by a predetermined drive amount to perform the FA zoom-out operation. Do. When the FA zoom-out operation ends, the process proceeds to S102, and the FA zoom frame control unit 121 displays the FA zoom frame 300 indicating the stored zoom position on the display unit 109. Using the FA zoom frame 300 as a guide, the photographer performs a framing operation so that the subject to be photographed is placed near the center of the screen. At this time, if the subject does not fit in the FA zoom frame 300 or if the subject is too small, the FA zoom frame 300 is changed to an appropriate size and the stored zoom position information is updated in S103. In S104, the FA zoom control unit 122 determines whether or not to end the FA zoom.

FAズーム終了判定では、FAズーム開始時のモードが手動探索モードの場合には操作部117のFAズーム操作スイッチの状態を、自動追尾モードの場合には被写体検出結果を元にFAズーム終了の判定を行う。S104のFAズーム終了判定にて、FAズームの終了判定がなされるとS105に進む。S105でFAズーム制御部122は、記憶した光学ズーム位置及び電子ズーム位置まで駆動するようにCZ制御部119もしくは電子ズーム制御部120に指令してFAズームイン動作を行い、FAズーム機能を終了する。   In the FA zoom end determination, when the FA zoom start mode is the manual search mode, the FA zoom operation switch state of the operation unit 117 is determined. In the automatic tracking mode, the FA zoom end determination is based on the subject detection result. I do. When the FA zoom end determination is made in the FA zoom end determination in S104, the process proceeds to S105. In S105, the FA zoom control unit 122 instructs the CZ control unit 119 or the electronic zoom control unit 120 to drive to the stored optical zoom position and electronic zoom position, performs the FA zoom-in operation, and ends the FA zoom function.

次に図7乃至図11を用いて、図6で示したFAズーム機能の処理の流れに従って各処理の詳細を説明する。   Next, details of each process will be described with reference to FIGS. 7 to 11 according to the process flow of the FA zoom function shown in FIG.

図7はS100のFAズーム開始判定処理を説明するフローチャートである。S200でFAズーム制御部122は、操作部117のFAズーム操作スイッチが押下されたか否かの判定を行う。FAズーム操作スイッチが押下されるとS201に進み、スイッチの押下時間(操作時間)を測定する。S201ではFAズーム操作スイッチが押下開始されてから所定の時間内に開放されたか否かの判定を行う。すなわち、スイッチの長押しもしくは短押しの判定を行い、押下時間によって実行するモードを変更する。長押し(第2の操作)時にはS202に進み、モードを手動探索モードに、短押し(第1の操作)時にはS203に進み、モードを自動追尾モードにし、メモリ118に選択されたモードを記憶する。手動探索モードの場合には、スイッチの押下開始からスイッチの押下が継続したまま所定時間を経過した時点、すなわち、長押しであることが確定した時点でS208に進み、FAズームの開始が判定される。自動追尾モードの場合にはS204に進み、追尾する被写体の被写体指定処理を行う。   FIG. 7 is a flowchart for explaining the FA zoom start determination process in S100. In S200, the FA zoom control unit 122 determines whether or not the FA zoom operation switch of the operation unit 117 is pressed. When the FA zoom operation switch is pressed, the process proceeds to S201, and the switch pressing time (operation time) is measured. In S201, it is determined whether or not the FA zoom operation switch has been released within a predetermined time since the start of pressing. That is, whether the switch is long-pressed or short-pressed is determined, and the mode to be executed is changed depending on the pressing time. When the button is pressed for a long time (second operation), the process proceeds to S202. When the button is pressed for a short time (first operation), the process proceeds to S203, the mode is set to the automatic tracking mode, and the selected mode is stored in the memory 118. . In the case of the manual search mode, the process proceeds to S208 when a predetermined time elapses from the start of pressing the switch, that is, when it is determined that the switch is pressed for a long time, and the start of FA zoom is determined. The In the case of the automatic tracking mode, the process proceeds to S204, and subject designation processing for the subject to be tracked is performed.

なお、本実施形態では、スイッチの押下時間によって手動探索モードか自動追尾モードかを判定しているが、モード判定の方法はズーム操作スイッチを用いたものであればこれに限定されない。例えば、ズーム操作スイッチが一度押下されてから所定時間内に再度押下された場合に、いずれかのモードと判定するようにしても良い。また、ズーム操作スイッチと他の部材との同時操作によって、いずれかのモードと判定するようにしても良い。また、押下するタイプのズーム操作スイッチに限らず、代わりに回転可能なリング部材などを用いてFAズームの操作を指示するようにしても良い。   In the present embodiment, the manual search mode or the automatic tracking mode is determined based on the switch pressing time. However, the mode determination method is not limited to this as long as the zoom operation switch is used. For example, when the zoom operation switch is pressed once and then pressed again within a predetermined time, any mode may be determined. Moreover, you may make it determine in any mode by simultaneous operation with a zoom operation switch and another member. In addition, the zoom operation switch is not limited to a pressing type, but instead, a rotatable ring member or the like may be used to instruct the FA zoom operation.

ここで、図8を用いてS204の被写体指定処理について説明する。図8(a)は操作部117の部材であるタッチパネルを用いて表示部109に表示された被写体をタッチして指定する操作例のフローチャートを示している。S300では、タッチパネルが押下されたか否かの判定を行う。タッチパネルが押下された場合にはS301に進み、FAズーム制御部122はタッチされた位置を取得する。   Here, the subject designation process in S204 will be described with reference to FIG. FIG. 8A shows a flowchart of an operation example in which a subject displayed on the display unit 109 is touched and specified using a touch panel which is a member of the operation unit 117. In S300, it is determined whether or not the touch panel has been pressed. When the touch panel is pressed, the process proceeds to S301, and the FA zoom control unit 122 acquires the touched position.

S302では、FAズーム制御部122はタッチ位置を被写体検出部123に通知し、被写体検出部123ではタッチ位置付近で顔検出を行う。タッチ位置付近に顔を検出した場合には主被写体は人物であると判定しS303へと進む。S303では自動追尾の対象である人物の顔情報をメモリ118に記憶する。具体的な顔情報としては、被写体指定時の顔のサイズや顔の検出位置、顔の向き等がある。また、顔認証機能を有するカメラにおいては認証ID等も記憶する。   In S302, the FA zoom control unit 122 notifies the subject detection unit 123 of the touch position, and the subject detection unit 123 performs face detection near the touch position. If a face is detected near the touch position, it is determined that the main subject is a person, and the process proceeds to S303. In step S <b> 303, face information of the person who is the target of automatic tracking is stored in the memory 118. Specific face information includes the face size, face detection position, face orientation, etc. when the subject is designated. In addition, an authentication ID or the like is stored in a camera having a face authentication function.

S302でタッチ位置付近に顔を検出しなかった場合には、主被写体は人物以外のモノであると判定しS304へと進む。S304では、タッチ位置付近の特徴色を自動追尾対象の色情報としてメモリ118に記憶する。具体的な色情報としては、被写体指定時の特徴色の色や輝度、色差の値や同一色領域のサイズ、同一色領域の重心位置等がある。顔情報及び色情報のことを以降の説明ではまとめて被写体情報(被写体サイズ/被写体検出位置)として説明に用いることとする。   If no face is detected in the vicinity of the touch position in S302, the main subject is determined to be something other than a person, and the process proceeds to S304. In S304, the characteristic color near the touch position is stored in the memory 118 as the color information of the automatic tracking target. Specific color information includes the color and brightness of the characteristic color when the subject is designated, the value of the color difference, the size of the same color area, the center of gravity position of the same color area, and the like. In the following description, face information and color information are collectively used as subject information (subject size / subject detection position) for explanation.

S303又はS304で被写体情報を記憶するとS305に進む。S305で、被写体検出位置を中心に被写体サイズに対応した大きさの被写体追尾枠(モノ追尾枠400もしくは顔追尾枠500)を表示部109に表示すると被写体指定処理が終了となる。上述した図8(a)の方法を用いると、撮影者が追尾したい被写体を直感的な指定方法で簡単に指定することが可能となる。   When the subject information is stored in S303 or S304, the process proceeds to S305. In S305, when the subject tracking frame (mono tracking frame 400 or face tracking frame 500) having a size corresponding to the subject size with the subject detection position as the center is displayed on the display unit 109, the subject designation processing ends. If the method of FIG. 8A described above is used, the subject that the photographer wants to track can be easily designated by an intuitive designation method.

一方、図8(b)は操作部117の部材であるFAズーム操作スイッチとは別のスイッチによって被写体を指定する操作例のフローチャートを示している。S306でFAズーム制御部122は、表示部109の画面中央付近に被写体指定の目安となる枠を表示する。撮影者はこの枠を目安として追尾したい被写体を中央付近に収めるようにカメラの向きを調整する。S307では、被写体指定用のスイッチが押下されたか否かの判定を行い、被写体指定用スイッチが押下された場合にはS308に進む。S308で被写体検出部123は、画面中央付近で顔検出を行う。画面中央付近に顔を検出した場合には主被写体は人物であると判定しS303へと進み、画面中央付近に顔を検出しなかった場合には主被写体は人物以外のモノであると判定しS304へと進む。さらに、図8(a)と同様にS303又はS304で被写体情報を記憶するとS305に進み、被写体追尾枠(モノ追尾枠400もしくは顔追尾枠500)を表示して被写体指定処理が終了となる。   On the other hand, FIG. 8B shows a flowchart of an operation example in which a subject is specified by a switch different from the FA zoom operation switch which is a member of the operation unit 117. In step S <b> 306, the FA zoom control unit 122 displays a frame serving as a target for specifying the subject near the center of the screen of the display unit 109. The photographer adjusts the direction of the camera so that the subject to be tracked is placed near the center using this frame as a guide. In S307, it is determined whether or not the subject designation switch has been pressed. If the subject designation switch has been pressed, the process proceeds to S308. In step S308, the subject detection unit 123 performs face detection near the center of the screen. If a face is detected near the center of the screen, the main subject is determined to be a person and the process proceeds to S303. If no face is detected near the center of the screen, the main subject is determined to be something other than a person. Proceed to S304. Further, when the subject information is stored in S303 or S304 as in FIG. 8A, the process proceeds to S305, where the subject tracking frame (mono tracking frame 400 or face tracking frame 500) is displayed, and the subject designation processing is ended.

S303乃至S305の処理については被写体検出を行う領域が画面中央付近となること以外は図8(a)と同様であるため説明を省略する。図8(b)の方法を用いると、タッチパネルのような操作部材を搭載しないカメラにおいても被写体を簡単に指定することが可能となる。   Since the processing from S303 to S305 is the same as that in FIG. 8A except that the area for subject detection is near the center of the screen, the description thereof is omitted. When the method of FIG. 8B is used, a subject can be easily specified even in a camera not equipped with an operation member such as a touch panel.

図8(c)は操作部117の部材であるFAズーム操作スイッチが短押しされた時点で検出された顔の中から追尾する被写体を自動で選択する例のフローチャートを示している。S309で被写体検出部123は、画面全体で顔検出を行う。画面全体で一人でも顔を検出した場合には主被写体は人物であると判定しS310に進む。   FIG. 8C shows a flowchart of an example in which a subject to be tracked is automatically selected from the faces detected when the FA zoom operation switch as a member of the operation unit 117 is pressed for a short time. In step S309, the subject detection unit 123 performs face detection on the entire screen. If even one person is detected on the entire screen, the main subject is determined to be a person and the process proceeds to S310.

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

S303では、選択された主顔の顔情報をメモリ118に記憶する。S303で顔情報を記憶するとS305に進み、顔追尾枠500を表示する。S311では、複数の顔から自動で選択された主顔が撮影者の意図しない顔である場合に撮影者が主顔を変更することが可能である。このとき、操作部117のスイッチ(FAズーム操作スイッチでも他のスイッチでもよい)を押下すると、検出された顔の中から主顔として選択されなかった顔に主顔を変更し、顔追尾枠500を更新する。主顔が変更された場合には再度S303に進み、記憶する顔情報を更新するとともに、S305で顔追尾枠500を新たに選択された主顔のサイズ及び検出位置に変更する。   In S303, the face information of the selected main face is stored in the memory 118. When the face information is stored in S303, the process proceeds to S305, and the face tracking frame 500 is displayed. In S311, the photographer can change the main face when the main face automatically selected from a plurality of faces is a face not intended by the photographer. At this time, when a switch on the operation unit 117 (which may be an FA zoom operation switch or another switch) is pressed, the main face is changed to a face not selected as the main face from the detected faces, and the face tracking frame 500 is changed. Update. When the main face is changed, the process proceeds to S303 again to update the stored face information, and at S305, the face tracking frame 500 is changed to the newly selected main face size and detection position.

S309にて画面全体で顔を検出しない場合には、主被写体は人物以外のモノであると判定しS304へと進む。S304では画面中央付近の特徴色を自動追尾対象の色情報としてメモリ118に記憶する。さらに、S304で色情報を記憶するとS306に進み、モノ追尾枠400を表示して被写体指定処理が終了となる。   If the face is not detected in the entire screen in S309, it is determined that the main subject is something other than a person, and the process proceeds to S304. In S304, the characteristic color near the center of the screen is stored in the memory 118 as the color information of the automatic tracking target. Further, when the color information is stored in S304, the process proceeds to S306, the mono tracking frame 400 is displayed, and the subject designation process ends.

S303乃至S306の処理については被写体検出を行う領域が顔の場合には画面全体、色の場合には画面中央付近となること以外は図8(a)と同様であるため説明を省略する。図8(c)の方法を用いると、より少ない操作回数で被写体を簡単に指定することが可能となる。   The processing in S303 to S306 is the same as that in FIG. 8A except that the entire area for subject detection is the face and the area near the center of the screen in the case of color. When the method of FIG. 8C is used, it is possible to easily specify the subject with a smaller number of operations.

被写体指定処理を終了すると図7のS205へと進む。S205乃至S207では、被写体指定時に指定した基準となる被写体情報と、周期的に検出する被写体情報とを元にFAズームを開始するか否かの判定を行う。FAズーム開始の条件を満たすまで所定の制御周期でこの判定は繰り返される。   When the subject designation process is completed, the process proceeds to S205 in FIG. In S205 to S207, it is determined whether or not to start FA zoom based on the subject information that is the reference specified when the subject is designated and the subject information that is periodically detected. This determination is repeated at a predetermined control cycle until the condition for starting FA zooming is satisfied.

S205で被写体検出部123は、画面全体の中から基準被写体情報と同じ特徴を持つ被写体、すなわち、基準被写体が人物である場合には顔が、モノである場合には同一の特徴色が検出されるか否かを判定する。追尾する被写体が検出されなかった場合にはS209に進む。一方、追尾する被写体が検出された場合にはS206に進む。S206では、追尾する被写体の被写体追尾枠が図4(a)で示すズームアウト領域に含まれるか否かを判定する。S206で追尾枠がズームアウト領域に含まれる、すなわち、被写体が画面周辺付近にありフレームアウトする恐れがある場合にはS208に進み、FAズームの開始が判定される。S206で被写体追尾枠がズームアウト領域に含まれていない、すなわち、画面中央付近で被写体を捉えられている場合には、S207に進む。   In step S205, the subject detection unit 123 detects a subject having the same characteristics as the reference subject information from the entire screen, that is, if the reference subject is a person, the face is detected, and if it is a thing, the same feature color is detected. It is determined whether or not. If the subject to be tracked is not detected, the process proceeds to S209. On the other hand, if the subject to be tracked is detected, the process proceeds to S206. In S206, it is determined whether or not the subject tracking frame of the subject to be tracked is included in the zoom-out area shown in FIG. If the tracking frame is included in the zoom-out area in S206, that is, if the subject is near the periphery of the screen and there is a risk of frame-out, the process proceeds to S208, and the start of FA zoom is determined. If the subject tracking frame is not included in the zoom-out area in S206, that is, if the subject is captured near the center of the screen, the process proceeds to S207.

次にS207では、基準被写体情報の被写体サイズとS205で検出した被写体サイズとの比較を行う。S205の被写体サイズが基準の被写体サイズに対して所定倍以上となって大きくなってしまう場合にはS208に進み、FAズームの開始が判定される。S208でFAズームの開始判定がなされると、図6のS101に進みズームアウト動作を開始する。

一方、S205で被写体が検出されなかった場合、FAズーム制御部122は、S209で所定時間が経過したか否かを判定する。所定時間が経過していなければ、FAズーム制御部122は、S210でFAズーム操作スイッチが押下されたか否かを判定する。また、S205で検出した被写体が画面中央付近でかつ被写体サイズが基準の被写体サイズに対して所定倍未満である場合(S207でno)も、S210でFAズーム操作スイッチの押下を判定する。S210でFAズーム操作スイッチが押下されなければS205の被写体検出処理に戻り、S205、S209、S210のループを繰り返す。そして、S209で被写体が検出されない状態で所定時間が経過した場合、S204に進み、再度被写体指定処理を行う。S210でFAズーム操作スイッチが押下された場合は、S211に進む。
In step S207, the subject size in the reference subject information is compared with the subject size detected in step S205. If the subject size in S205 becomes larger than the reference subject size by a predetermined factor or more, the process proceeds to S208, and the start of FA zoom is determined. When the FA zoom start determination is made in S208, the process proceeds to S101 in FIG. 6 to start the zoom-out operation.

On the other hand, when no subject is detected in S205, the FA zoom control unit 122 determines whether or not a predetermined time has elapsed in S209. If the predetermined time has not elapsed, the FA zoom control unit 122 determines whether or not the FA zoom operation switch has been pressed in S210. Also, when the subject detected in S205 is near the center of the screen and the subject size is less than a predetermined multiple of the reference subject size (no in S207), it is determined in S210 that the FA zoom operation switch has been pressed. If the FA zoom operation switch is not pressed in S210, the process returns to the subject detection process in S205, and the loop of S205, S209, and S210 is repeated. If a predetermined time has elapsed with no subject detected in S209, the process proceeds to S204 to perform subject specification processing again. If the FA zoom operation switch is pressed in S210, the process proceeds to S211.

S211では、FAズーム操作スイッチが押下されてから所定時間内に開放されたか否かを判定する。所定時間内にFAズーム操作スイッチが開放された場合、自動追尾モードがキャンセルされたとして、FAズーム機能を終了する。一方、所定時間経過後にスイッチが開放された場合、S202に進み、手動探索モードが記憶される。すなわち、本実施形態では、自動追尾モード中にFAズーム操作スイッチが所定時間以上押下された場合、FAモードを手動探索モードに変更する。   In S211, it is determined whether or not the FA zoom operation switch has been released within a predetermined time after being pressed. If the FA zoom operation switch is released within a predetermined time, the automatic zoom mode is canceled and the FA zoom function is terminated. On the other hand, if the switch is opened after a predetermined time has elapsed, the process proceeds to S202, and the manual search mode is stored. That is, in this embodiment, when the FA zoom operation switch is pressed for a predetermined time or more during the automatic tracking mode, the FA mode is changed to the manual search mode.

図9(a)は図6のS101のFAズームアウト動作の処理を説明するフローチャートである。S400でFAズーム制御部122は、撮影準備状態での光学ズーム位置をCZ制御部119から取得し、電子ズーム位置を電子ズーム制御部120から取得する。さらにFAズーム制御部122は光学ズーム位置及び電子ズーム位置のデータをメモリ118に記憶する。なお、光学ズーム位置は、光学ズーム機能によって変更可能なズーム倍率に相当するズームレンズの位置を表し、電子ズーム位置は電子ズーム機能によって変更可能な画像拡大及び縮小の倍率に相当する制御位置を表す。手動探索モードの場合、ここで記憶したズーム位置がズーム戻り位置に設定される。   FIG. 9A is a flowchart for explaining processing of the FA zoom-out operation in S101 of FIG. In S400, the FA zoom control unit 122 acquires the optical zoom position in the shooting preparation state from the CZ control unit 119, and acquires the electronic zoom position from the electronic zoom control unit 120. Further, the FA zoom control unit 122 stores the data of the optical zoom position and the electronic zoom position in the memory 118. The optical zoom position represents the position of the zoom lens corresponding to the zoom magnification that can be changed by the optical zoom function, and the electronic zoom position represents the control position corresponding to the magnification of image enlargement and reduction that can be changed by the electronic zoom function. . In the manual search mode, the zoom position stored here is set as the zoom return position.

S401でFAズーム制御部122は、メモリ118に記憶しているズームアウト駆動量を取得する。自動追尾モードのズームアウト駆動量は、検出された被写体のサイズに応じて設定される。具体的には、被写体のサイズが小さいほどズームアウト駆動量は小さく設定される。なお、被写体検出可能な最小サイズを考慮して、被写体のサイズが所定のサイズより小さい場合は、ズームアウトを行わないようにする。また、手動探索モードのズームアウト駆動量は、撮影者が設定メニューからの操作によって変更可能にしてもよい。S402でFAズーム制御部122は、撮影準備状態でのズーム状態が電子ズーム状態であるか否かを判定する。一般的なズーム操作では、操作部117のズーム操作スイッチが押下されると、光学ズーム位置がワイド端からテレ端の間である場合には、CZ制御部119の制御下で光学ズームを駆動させる。光学ズーム位置がテレ端であって、さらに望遠方向への操作指示がなされた場合には電子ズーム制御部120が電子ズームを駆動させることで超望遠撮影が可能となる。ズーム操作スイッチの操作によるズーム動作とFAズーム動作との整合性を取るために、FAズーム動作においても、撮影準備状態でのズーム状態が電子ズーム状態の場合には電子ズームを先に駆動させる。つまり、メモリ118に記憶した時点のズーム位置が優先すべきズーム状態でのズーム領域内にあるか否かが判定され、本例では電子ズームが優先されるので、S402ではズーム位置が電子ズーム領域にあるか否かが判定される。   In step S <b> 401, the FA zoom control unit 122 acquires the zoom-out drive amount stored in the memory 118. The zoom-out drive amount in the automatic tracking mode is set according to the detected subject size. Specifically, the zoom-out drive amount is set smaller as the subject size is smaller. In consideration of the minimum size that can be detected by the subject, if the size of the subject is smaller than a predetermined size, the zoom-out is not performed. Further, the zoom-out drive amount in the manual search mode may be changed by the photographer by an operation from the setting menu. In S402, the FA zoom control unit 122 determines whether or not the zoom state in the shooting preparation state is the electronic zoom state. In a general zoom operation, when the zoom operation switch of the operation unit 117 is pressed, if the optical zoom position is between the wide end and the tele end, the optical zoom is driven under the control of the CZ control unit 119. . When the optical zoom position is at the telephoto end and an operation instruction in the telephoto direction is given, the electronic zoom control unit 120 drives the electronic zoom to enable super telephoto shooting. In order to ensure consistency between the zoom operation by the operation of the zoom operation switch and the FA zoom operation, even in the FA zoom operation, when the zoom state in the shooting preparation state is the electronic zoom state, the electronic zoom is driven first. That is, it is determined whether or not the zoom position stored in the memory 118 is within the zoom area in the zoom state to be prioritized. In this example, the electronic zoom is prioritized, and in S402, the zoom position is the electronic zoom area. It is determined whether or not there is.

FAズーム開始時のズーム状態が電子ズーム状態であった場合には、S403に処理を進める。S403でFAズーム制御部122はS400で取得した電子ズーム位置とS401で取得したズームアウト駆動量から電子ズームのズームアウト位置を算出し、電子ズーム制御部120に設定する。S404でFAズーム制御部122は、電子ズーム制御部120に対して、S403で設定した電子ズームのズームアウト位置まで変倍処理を行うように指示する。電子ズーム制御部120は電子ズームによるズームアウト動作を行う。   If the zoom state at the start of FA zoom is the electronic zoom state, the process proceeds to S403. In step S <b> 403, the FA zoom control unit 122 calculates the zoom-out position of the electronic zoom from the electronic zoom position acquired in step S <b> 400 and the zoom-out drive amount acquired in step S <b> 401, and sets the electronic zoom control unit 120. In step S404, the FA zoom control unit 122 instructs the electronic zoom control unit 120 to perform the scaling process up to the zoom-out position of the electronic zoom set in step S403. The electronic zoom control unit 120 performs a zoom-out operation by electronic zoom.

S402にて撮影準備状態でのズーム位置が光学ズーム領域にあると判定された場合や、S404にて電子ズームのズームアウト動作が行われた後、S405に進む。S405でFAズーム制御部122は、さらに光学ズームによるズームアウトが必要であるか否かを判断する。つまり、電子ズームだけでは、設定したズームアウト駆動量のズーム駆動に充分でない場合、残りのズームアウト駆動量を光学ズームで補う必要がある。光学ズームによるズームアウトが必要と判断された場合にはS406に進む。S406でFAズーム制御部122は、光学ズーム位置とズームアウト駆動量から光学ズームのズームアウト位置を算出し、CZ制御部119に設定する。   If it is determined in S402 that the zoom position in the shooting preparation state is in the optical zoom area, or after an electronic zoom zoom-out operation is performed in S404, the process proceeds to S405. In step S <b> 405, the FA zoom control unit 122 determines whether zoom-out by optical zoom is necessary. That is, if the electronic zoom alone is not sufficient for the zoom drive with the set zoom-out drive amount, it is necessary to supplement the remaining zoom-out drive amount with the optical zoom. If it is determined that the zoom-out by the optical zoom is necessary, the process proceeds to S406. In step S <b> 406, the FA zoom control unit 122 calculates the zoom-out position of the optical zoom from the optical zoom position and the zoom-out drive amount, and sets the calculated position in the CZ control unit 119.

S407でFAズーム制御部122は、CZ制御部119に対して、S406で設定した光学ズームのズームアウト位置までズーム駆動するように指示する。CZ制御部119はズームレンズ駆動部113を制御し、光学ズームのズームアウト動作を行う。
以上説明したFAズームアウト動作が終了すると、図6のS102に進む。S102でFAズーム制御部122は、ズーム戻り位置に対応するFAズーム枠300の表示をFAズーム枠制御部121に指示する。自動追尾モードの場合、現在の画角に対して所定倍率望遠側のズーム位置をズーム戻り位置としてメモリ118に記憶するとともに、それに対応する画角をFAズーム枠として表示する。一方、手動探索モードの場合、図9(a)のS400で記憶したFAズームアウト開始時のズーム位置に対応する画角をFAズーム枠として表示する。FAズーム枠を表示すると、被写体探索状態として、S103のズーム戻り位置変更処理に進む。
In step S407, the FA zoom control unit 122 instructs the CZ control unit 119 to perform zoom driving to the zoom-out position of the optical zoom set in step S406. The CZ control unit 119 controls the zoom lens driving unit 113 to perform a zoom-out operation of optical zoom.
When the FA zoom-out operation described above ends, the process proceeds to S102 in FIG. In S102, the FA zoom control unit 122 instructs the FA zoom frame control unit 121 to display the FA zoom frame 300 corresponding to the zoom return position. In the automatic tracking mode, the zoom position at the predetermined magnification telephoto side with respect to the current angle of view is stored in the memory 118 as a zoom return position, and the corresponding angle of view is displayed as an FA zoom frame. On the other hand, in the manual search mode, the angle of view corresponding to the zoom position at the start of FA zoom-out stored in S400 of FIG. 9A is displayed as the FA zoom frame. When the FA zoom frame is displayed, the zoom search position changing process of S103 is performed as the subject search state.

図10は図6のS103のズーム戻り位置変更の処理を説明するフローチャートである。S500では、図7のFAズーム開始判定においてS202又はS203で記憶したモードが自動追尾モードであるか、手動探索モードであるかの判定を行う。記憶したモードが手動探索モードである場合には、S506に進む。手動探索モード時には撮影者がズームレバー操作を行うことによって図9(a)のS400で記憶したズーム戻り位置(第3のズーム位置)及びFAズーム枠300を変更することが可能である。   FIG. 10 is a flowchart for explaining the zoom return position change process in S103 of FIG. In S500, it is determined whether the mode stored in S202 or S203 in the FA zoom start determination of FIG. 7 is the automatic tracking mode or the manual search mode. If the stored mode is the manual search mode, the process proceeds to S506. In the manual search mode, the zooming position (third zoom position) and the FA zoom frame 300 stored in S400 of FIG. 9A can be changed by the photographer operating the zoom lever.

S506では、操作部117のズームレバーが望遠方向もしくは広角方向のいずれかに操作されたか否かの判定を行い、ズームレバー操作が行われた場合にはS507に進む。ズームレバー操作が行われなければ、本フローを終了する。S507では、ズームアウト動作前にS400でメモリ118に記憶したズーム戻り位置(ズームイン位置)をS506で判定した操作方向に応じて望遠方向もしくは広角方向に所定量だけ更新し、S508へ進む。S508では、S507で更新したズーム戻り位置に対応する画角を示すようにFAズーム枠300の表示を更新し、S509へ進む。   In S506, it is determined whether or not the zoom lever of the operation unit 117 has been operated in either the telephoto direction or the wide angle direction. If the zoom lever has been operated, the process proceeds to S507. If the zoom lever operation is not performed, this flow ends. In S507, the zoom return position (zoom-in position) stored in the memory 118 in S400 before the zoom-out operation is updated by a predetermined amount in the telephoto direction or the wide-angle direction according to the operation direction determined in S506, and the process proceeds to S508. In S508, the display of the FA zoom frame 300 is updated so as to indicate the angle of view corresponding to the zoom return position updated in S507, and the process proceeds to S509.

S509では、操作部117のズームレバーが開放されたか否かの判定を行い、ズームレバーが開放されない場合にはS507乃至S509の処理を継続する。ズームレバーが開放された場合には、本フローを終了する。   In S509, it is determined whether or not the zoom lever of the operation unit 117 is opened. If the zoom lever is not opened, the processing of S507 to S509 is continued. When the zoom lever is released, this flow ends.

以上の処理によって、ズームアウト動作後に被写体が近づいてくるなどして表示部109に表示される被写体の大きさが変わった場合でも、撮影者が簡単な操作でズーム戻り位置を変更できフレーミング操作がより簡単にできるようになる。   With the above processing, even when the size of the subject displayed on the display unit 109 changes because the subject approaches after the zoom-out operation, the photographer can change the zoom return position with a simple operation, and the framing operation can be performed. It will be easier.

S500の判定においてモードが自動追尾モードである場合には、S501に進む。自動追尾モード時にはカメラが検出した被写体サイズを元に、ズームイン動作後に被写体が適切な画角に収まるようにメモリ118に記憶したズーム戻り位置(第2のズーム位置)及びFAズーム枠300を自動で変更することが可能である。   If it is determined in S500 that the mode is the automatic tracking mode, the process proceeds to S501. Based on the subject size detected by the camera in the automatic tracking mode, the zoom return position (second zoom position) and the FA zoom frame 300 stored in the memory 118 are automatically stored so that the subject falls within an appropriate angle of view after the zoom-in operation. It is possible to change.

本実施形態における適切な画角とは、画面全体に対して被写体が占める比率が図7のS204で指定した基準となる被写体サイズと同程度となる画角を保持することであることとする。S501では、基準被写体情報と対応する顔情報もしくは色情報を持つ被写体が検出されるか否かを判定する。追尾する被写体が検出された場合にはS502に進み、検出されない場合はS510に進む。S510では、FAズーム制御部122は、被写体が検出されない状態で所定時間が経過したか否かを判定する。所定時間が経過していなければ本フローを終了し、所定時間が経過した場合は図7のS204に進んで再度被写体指定処理を行う。   The appropriate angle of view in the present embodiment is to hold an angle of view in which the ratio of the subject to the entire screen is approximately the same as the reference subject size specified in S204 of FIG. In S501, it is determined whether or not a subject having face information or color information corresponding to the reference subject information is detected. If a subject to be tracked is detected, the process proceeds to S502, and if not detected, the process proceeds to S510. In S510, the FA zoom control unit 122 determines whether or not a predetermined time has passed in a state where no subject is detected. If the predetermined time has not elapsed, the present flow is terminated. If the predetermined time has elapsed, the process proceeds to S204 in FIG. 7 to perform subject designation processing again.

S502では、画面全体に対して基準被写体サイズの比率と、FAズーム枠300すなわちズームイン動作後の画角に対してS501で検出した被写体が占める比率とを比較し、二つの比率の差が所定範囲を超える場合にはS503に進み、所定範囲内の場合は本フローを終了する。S503では、メモリ118に記憶したズーム戻り位置を変更する。具体的には、S501で検出した被写体サイズが基準の被写体サイズよりも大きい場合には広角方向に、小さい場合には望遠方向に所定量だけズーム戻り位置を更新し、S504へ進む。   In S502, the ratio of the reference subject size to the entire screen is compared with the ratio of the subject detected in S501 to the FA zoom frame 300, that is, the angle of view after the zoom-in operation, and the difference between the two ratios is within a predetermined range. If it exceeds, the process proceeds to S503, and if it is within the predetermined range, this flow ends. In S503, the zoom return position stored in the memory 118 is changed. Specifically, the zoom return position is updated by a predetermined amount in the wide-angle direction when the subject size detected in S501 is larger than the reference subject size, and when it is smaller, the process proceeds to S504.

S504では、S503で更新したズーム戻り位置と同じ画角を示すようにFAズーム枠300の表示を更新し、S505へ進む。S505では、画面全体に対する基準の被写体サイズの比率と、更新されたズーム戻り位置を示すFAズーム枠300に対する被写体の比率との差が所定範囲以内か否かの判定を行う。ズーム戻り位置を所定量更新してもFAズーム枠300に対する被写体の比率と基準の被写体の比率との差が所定範囲を超える場合には、さらにズーム戻り位置を変更するようにS503乃至S505の処理を継続する。S505でFAズーム枠300に対する被写体と基準の被写体の比率との差が所定範囲内の場合には、本フローを終了する。   In S504, the display of the FA zoom frame 300 is updated so as to show the same angle of view as the zoom return position updated in S503, and the process proceeds to S505. In step S505, it is determined whether the difference between the ratio of the reference subject size to the entire screen and the ratio of the subject to the FA zoom frame 300 indicating the updated zoom return position is within a predetermined range. If the difference between the ratio of the subject to the FA zoom frame 300 and the ratio of the reference subject exceeds the predetermined range even if the zoom return position is updated by a predetermined amount, the processing of S503 to S505 is performed so that the zoom return position is further changed. Continue. If the difference between the ratio of the subject to the FA zoom frame 300 and the ratio of the reference subject is within the predetermined range in S505, this flow ends.

以上の処理によって、FAズームアウト動作後に被写体が近づいてくるなどして表示部109に表示される被写体の大きさが変わった場合でも、カメラにより自動でズーム戻り位置が変更されフレーミング操作がより簡単にできるようになる。図10においては、ズーム戻り位置を手動探索モード時にはズームレバーの手動操作によって変更し、自動追尾モード時には被写体サイズに応じて自動で変更する例を示したが、手動探索モード時の自動変更や自動追尾モード時の手動変更ができる構成としてもよい。   With the above processing, even when the subject approaches after the FA zoom-out operation and the size of the subject displayed on the display unit 109 changes, the zoom return position is automatically changed by the camera and the framing operation is easier. To be able to. FIG. 10 shows an example in which the zoom return position is changed by manual operation of the zoom lever in the manual search mode, and is automatically changed according to the subject size in the automatic tracking mode. It is good also as a structure which can be changed manually at the time of tracking mode.

図11は図6のS104のFAズーム終了判定処理を説明するフローチャートである。S601では、図7のFAズーム開始判定においてS202又はS203で記憶したモードが自動追尾モードであるか、手動探索モードであるかの判定を行う。モードが手動探索モードである場合には、S605に進む。手動探索モードである場合には、被写体探索状態である間はS200又はS210でFAズーム操作スイッチの押下を検出してから押下状態が継続している。   FIG. 11 is a flowchart for explaining the FA zoom end determination process in S104 of FIG. In S601, it is determined whether the mode stored in S202 or S203 in the FA zoom start determination of FIG. 7 is the automatic tracking mode or the manual search mode. When the mode is the manual search mode, the process proceeds to S605. In the manual search mode, the pressed state continues after detecting the pressing of the FA zoom operation switch in S200 or S210 during the subject search state.

S605では、FAズーム操作スイッチが長押し状態からスイッチが開放されたか否かの判定を行う。FAズーム操作スイッチが開放された(第3の操作)場合にはS604に進み、FAズームの終了が判定される。一方、S605でFAズーム操作スイッチが開放されていない場合、被写体探索状態が継続しているので、図10のS500に戻り、ズーム戻り位置変更のフローを繰り返す。   In S605, it is determined whether or not the FA zoom operation switch has been released from the long-pressed state. When the FA zoom operation switch is opened (third operation), the process proceeds to S604, and the end of the FA zoom is determined. On the other hand, if the FA zoom operation switch is not opened in S605, the subject search state continues, so the process returns to S500 in FIG. 10 to repeat the zoom return position change flow.

S601の判定においてモードが自動追尾モードである場合には、S602に進む。S602では図7のS204で指定した基準となる被写体情報と同じ特徴を持つ被写体、すなわち、基準被写体が人物である場合には顔、モノである場合には対応する特徴色が検出されたか否かを判定する。追尾する被写体が検出されなかった場合、S606に進む。   If the mode is the automatic tracking mode in the determination of S601, the process proceeds to S602. In step S602, a subject having the same characteristics as the reference subject information specified in step S204 in FIG. 7, that is, a face is detected when the reference subject is a person, and a corresponding feature color is detected when the subject is a mono object. Determine. If the subject to be tracked is not detected, the process proceeds to S606.

S602で追尾する被写体が検出された場合にはS603に進む。S603では追尾する被写体の被写体追尾枠が図4(b)で示すズームイン領域に包含されているか否かを判定する。S603で追尾枠がズームイン領域に包含されている、すなわち、画面中央付近でかつズーム戻り位置の画角内の被写体サイズとなるように被写体を捉えられている場合にはS604に進み、FAズームの終了が判定される。S604でFAズームの終了判定がなされると、図6のS105に進みFAズームイン動作を開始する。   If the subject to be tracked is detected in S602, the process proceeds to S603. In step S603, it is determined whether or not the subject tracking frame of the subject to be tracked is included in the zoom-in area shown in FIG. If the tracking frame is included in the zoom-in area in S603, that is, if the subject is captured so that the subject size is near the center of the screen and within the angle of view at the zoom return position, the process proceeds to S604 and FA zoom is performed. The end is determined. If it is determined in step S604 that the FA zoom has ended, the process proceeds to step S105 in FIG. 6 to start the FA zoom-in operation.

一方、S602で被写体が検出されなかった場合、FAズーム制御部122は、S606で所定時間が経過したか否かを判定する。所定時間が経過していなければ、FAズーム制御部122は、S607でFAズーム操作スイッチが押下されたか否かを判定する。また、S602で検出した被写体の被写体追尾枠がズームイン領域に包含されていない場合(S603でno)も、S607でFAズーム操作スイッチの押下を判定する。S607でFAズーム操作スイッチが押下されなければ図10のS500に戻り、ズーム戻り位置変更処理を繰り返す。そして、S606で被写体が検出されない状態で所定時間が経過した場合、図7のS204に進み、再度被写体指定処理を行う。S607でFAズーム操作スイッチが押下された場合は、S608に進む。   On the other hand, if no subject is detected in S602, the FA zoom control unit 122 determines whether a predetermined time has elapsed in S606. If the predetermined time has not elapsed, the FA zoom control unit 122 determines whether or not the FA zoom operation switch has been pressed in S607. Also, if the subject tracking frame of the subject detected in S602 is not included in the zoom-in area (no in S603), it is determined in S607 that the FA zoom operation switch has been pressed. If the FA zoom operation switch is not pressed in S607, the process returns to S500 in FIG. 10 to repeat the zoom return position changing process. If the predetermined time has passed in the state in which the subject is not detected in S606, the process proceeds to S204 in FIG. 7 to perform subject designation processing again. If the FA zoom operation switch is pressed in S607, the process proceeds to S608.

S608では、FAズーム操作スイッチが押下されてから所定時間内に開放されたか否かを判定する。所定時間内にFAズーム操作スイッチが開放された場合、自動追尾モードがキャンセルされたとして、FAズーム機能を終了する。一方、所定時間経過後にスイッチが開放された場合、図7のS202に進み、手動探索モードが記憶される。すなわち、本実施形態では、自動追尾モード中にFAズーム操作スイッチが所定時間以上押下された場合、FAモードを手動探索モードに変更する。   In S608, it is determined whether or not the FA zoom operation switch has been released within a predetermined time after being pressed. If the FA zoom operation switch is released within a predetermined time, the automatic zoom mode is canceled and the FA zoom function is terminated. On the other hand, if the switch is opened after a predetermined time has elapsed, the process proceeds to S202 in FIG. 7 and the manual search mode is stored. That is, in this embodiment, when the FA zoom operation switch is pressed for a predetermined time or more during the automatic tracking mode, the FA mode is changed to the manual search mode.

図9(b)はS105のFAズームイン動作の処理を説明するフローチャートである。S408でFAズーム制御部122は、記憶したズーム位置(ズーム戻り位置)のデータをメモリ118から読み込む。S409でFAズーム制御部122は、被写体探索状態でのズーム状態が光学ズーム状態であるか否かを判定する。光学ズーム状態の場合(S409のyes)、光学ズームを優先してズームインを行うためにS410に処理を進め、電子ズーム状態の場合(S409のno)では電子ズームのみでズームインを行うためにS412に処理を進める。   FIG. 9B is a flowchart for explaining the FA zoom-in operation in S105. In step S <b> 408, the FA zoom control unit 122 reads the stored zoom position (zoom return position) data from the memory 118. In step S409, the FA zoom control unit 122 determines whether the zoom state in the subject search state is the optical zoom state. In the case of the optical zoom state (Yes in S409), the process proceeds to S410 in order to perform zoom-in with priority on the optical zoom, and in the case of the electronic zoom state (no in S409), the process proceeds to S412 in order to perform zoom-in with only the electronic zoom. Proceed with the process.

S410でFAズーム制御部122は、S408で読み込んだズーム戻り位置のうち、光学ズームによるズームイン位置をCZ制御部119に設定する。S411でFAズーム制御部122は、CZ制御部119に対して、S410で設定した光学ズームによるズームイン位置までズームレンズ102を駆動するように指示する。CZ制御部119はズームレンズ駆動部113を制御して、光学ズームでのズームイン動作を行う。   In S410, the FA zoom control unit 122 sets the zoom-in position by optical zoom in the CZ control unit 119 among the zoom return positions read in S408. In step S411, the FA zoom control unit 122 instructs the CZ control unit 119 to drive the zoom lens 102 to the zoom-in position by the optical zoom set in step S410. The CZ control unit 119 controls the zoom lens driving unit 113 to perform a zoom-in operation with optical zoom.

S409にて被写体探索状態でのズーム位置が電子ズーム領域内であると判定された場合や、S411での光学ズームでズームイン動作が行われた後、S412に進む。S412でFAズーム制御部122は、さらに電子ズームによるズームインが必要か否かを判断する。電子ズームによるズームインが必要な場合にはS413に進み、電子ズームによるズームインが不要な場合には撮影準備状態にして処理を終了する。   When it is determined in S409 that the zoom position in the subject search state is within the electronic zoom area, or after the zoom-in operation is performed with the optical zoom in S411, the process proceeds to S412. In step S <b> 412, the FA zoom control unit 122 determines whether further zoom-in using electronic zoom is necessary. If zoom-in by electronic zoom is necessary, the process proceeds to S413, and if zoom-in by electronic zoom is not necessary, the process is ended in a shooting preparation state.

S413でFAズーム制御部122は、S408で読み込んだズーム戻り位置のうち、電子ズームによるズームイン位置を電子ズーム制御部120に設定する。S414でFAズーム制御部122は、電子ズーム制御部120に対して、S413で設定した電子ズームによるズームイン位置まで変倍処理を行うように指示する。電子ズーム制御部120は電子ズームイン動作を行い、これによってズーム戻り位置へと復帰する。該動作が終了すると、撮影準備状態にして処理を終了する。
(他の実施形態)
本発明の目的は以下のようにしても達成できる。すなわち、前述した実施形態の機能を実現するための手順が記述されたソフトウェアのプログラムコードを記憶した記憶媒体を、システムまたは装置に供給する。そしてそのシステムまたは装置のコンピュータ(またはCPU、MPU等)が記憶媒体に格納されたプログラムコードを読み出して実行する。この場合、記憶媒体から読み出されたプログラムコード自体が本発明の新規な機能を実現することになり、そのプログラムコードを記憶した記憶媒体およびプログラムは本発明を構成することになる。
In S413, the FA zoom control unit 122 sets the electronic zoom control unit 120 to a zoom-in position by electronic zoom among the zoom return positions read in S408. In S414, the FA zoom control unit 122 instructs the electronic zoom control unit 120 to perform the scaling process up to the zoom-in position by the electronic zoom set in S413. The electronic zoom control unit 120 performs an electronic zoom-in operation, thereby returning to the zoom return position. When this operation ends, the shooting preparation state is set and the process ends.
(Other embodiments)
The object of the present invention can also be achieved as follows. That is, a storage medium storing a program code of software in which a procedure for realizing the functions of the above-described embodiments is stored is supplied to the system or apparatus. A computer (or CPU, MPU, etc.) of the system or apparatus reads out and executes the program code stored in the storage medium. In this case, the program code itself read from the storage medium realizes the novel function of the present invention, and the storage medium and program storing the program code constitute the present invention.

また、プログラムコードを供給するための記憶媒体としては、例えば、フレキシブルディスク、ハードディスク、光ディスク、光磁気ディスクなどが挙げられる。また、CD−ROM、CD−R、CD−RW、DVD−ROM、DVD−RAM、DVD−RW、DVD−R、磁気テープ、不揮発性のメモリカード、ROM等も用いることができる。   Examples of the storage medium for supplying the program code include a flexible disk, a hard disk, an optical disk, and a magneto-optical disk. Further, a CD-ROM, CD-R, CD-RW, DVD-ROM, DVD-RAM, DVD-RW, DVD-R, magnetic tape, nonvolatile memory card, ROM, or the like can also be used.

また、コンピュータが読み出したプログラムコードを実行可能とすることにより、前述した各実施形態の機能が実現される。さらに、そのプログラムコードの指示に基づき、コンピュータ上で稼動しているOS(オペレーティングシステム)等が実際の処理の一部または全部を行い、その処理によって前述した各実施形態の機能が実現される場合も含まれる。   Further, by making the program code read by the computer executable, the functions of the above-described embodiments are realized. Furthermore, when the OS (operating system) running on the computer performs part or all of the actual processing based on the instruction of the program code, the functions of the above-described embodiments are realized by the processing. Is also included.

更に、以下の場合も含まれる。まず記憶媒体から読み出されたプログラムコードが、コンピュータに挿入された機能拡張ボードやコンピュータに接続された機能拡張ユニットに備わるメモリに書き込まれる。その後、そのプログラムコードの指示に基づき、その機能拡張ボードや機能拡張ユニットに備わるCPU等が実際の処理の一部または全部を行う。   Furthermore, the following cases are also included. First, the program code read from the storage medium is written in a memory provided in a function expansion board inserted into the computer or a function expansion unit connected to the computer. Thereafter, based on the instruction of the program code, the CPU or the like provided in the function expansion board or function expansion unit performs part or all of the actual processing.

また、本発明はデジタルカメラのような撮影を主目的とした機器に限定されず、携帯電話、パーソナルコンピュータ(ラップトップ型、デスクトップ型、タブレット型など)、ゲーム機など、撮像装置を内蔵もしくは外部接続する任意の機器に適用可能である。従って、本明細書における「撮像装置」は、撮像機能を備えた任意の電子機器を包含することが意図されている。   Further, the present invention is not limited to a device mainly intended for shooting such as a digital camera, and includes an imaging device such as a mobile phone, a personal computer (laptop type, desktop type, tablet type, etc.), a game machine, or the like. Applicable to any device to be connected. Therefore, the “imaging device” in this specification is intended to include any electronic device having an imaging function.

以上、本発明の好ましい実施形態について説明したが、本発明はこれらの実施形態に限定されず、その要旨の範囲内で種々の変形及び変更が可能である。適用するシーンとして、静止画撮影のための画角合わせ中のみでなく、動画記録中の画角合わせの際に実施しても構わない。   As mentioned above, although preferable embodiment of this invention was described, this invention is not limited to these embodiment, A various deformation | transformation and change are possible within the range of the summary. The scene to be applied may be performed not only during angle adjustment for still image shooting but also during angle adjustment during moving image recording.

Claims (16)

ユーザがズーム位置の変更を指示するための第1の操作部と、
画像から被写体を検出する被写体検出手段と、
前記第1の操作部の操作に応じてズーム位置を制御する制御手段とを有する撮像装置であって、
前記第1の操作部を介した第1の操作が行われた場合、前記制御手段は、第1のモードを実行し、
前記第1のモードにおいて、前記制御手段は、前記被写体検出手段により検出された被写体が画像内に設定された第1の領域外に含まれる場合、ズーム位置を広角側の第1のズーム位置に移動するよう制御するとともに、ズーム移動前のズーム位置を第2のズーム位置に設定し、前記第1のズーム位置において、前記被写体検出手段により検出された被写体が前記第2のズーム位置に対応する領域内に設定された第2の領域内に包含される場合、ズーム位置を前記第2のズーム位置に移動するよう制御することを特徴とする撮像装置。
A first operation unit for a user to instruct a change of a zoom position;
Subject detection means for detecting a subject from an image;
An image pickup apparatus having a control unit that controls a zoom position according to an operation of the first operation unit,
When the first operation is performed via the first operation unit, the control unit executes the first mode,
In the first mode, when the subject detected by the subject detection means is included outside the first region set in the image, the control means sets the zoom position to the first zoom position on the wide angle side. The zoom position before the zoom movement is set to the second zoom position, and the subject detected by the subject detection means in the first zoom position corresponds to the second zoom position. An image pickup apparatus that controls to move a zoom position to the second zoom position when included in a second area set in the area.
前記第1のズーム位置へのズーム移動前に取得された画像に対する前記第1の領域の大きさの比率は、前記第1のズーム位置において取得された画像における前記第2のズーム位置に対応する領域に対する前記第2の領域の大きさの比率より大きいことを特徴とする請求項1に記載の撮像装置。   The ratio of the size of the first area to the image acquired before the zoom movement to the first zoom position corresponds to the second zoom position in the image acquired at the first zoom position. The imaging device according to claim 1, wherein the imaging device is larger than a ratio of a size of the second region to a region. 前記制御手段は、前記被写体検出手段により検出された被写体のサイズに応じて前記第1のズーム位置を設定することを特徴とする請求項1又は2に記載の撮像装置。   The imaging apparatus according to claim 1, wherein the control unit sets the first zoom position according to a size of a subject detected by the subject detection unit. 前記制御手段は、前記被写体検出手段により検出された被写体のサイズが第1のサイズの場合、当該第1のサイズより大きい第2のサイズの場合と比較して前記第1のズーム位置を望遠側に設定することを特徴とする請求項1乃至3のいずれか1項に記載の撮像装置。   The control means sets the first zoom position to the telephoto side when the size of the subject detected by the subject detection means is the first size as compared to the second size larger than the first size. The imaging apparatus according to any one of claims 1 to 3, wherein the imaging apparatus is set as follows. 前記第1のモードにおいて、前記制御手段は、前記被写体検出手段により検出された被写体のサイズが所定のサイズより小さい場合、前記第1のズーム位置へのズーム移動を行わないよう制御することを特徴とする請求項1乃至4のいずれか1項に記載の撮像装置。   In the first mode, when the size of the subject detected by the subject detection unit is smaller than a predetermined size, the control unit controls not to perform zoom movement to the first zoom position. The imaging device according to any one of claims 1 to 4. 前記第1のモードにおいて、前記被写体検出手段により検出された被写体のサイズが所定倍以上大きく変化した場合、前記制御手段は、ズーム位置を前記第1のズーム位置に移動するよう制御することを特徴とする請求項1乃至5のいずれか1項に記載の撮像装置。   In the first mode, when the size of the subject detected by the subject detection unit is greatly changed by a predetermined factor or more, the control unit controls the zoom position to move to the first zoom position. The imaging device according to any one of claims 1 to 5. 前記第1のズーム位置において、前記制御手段は、前記被写体検出手段により検出された被写体のサイズに応じて、記憶されている前記第2のズーム位置を変更することを特徴とする請求項1乃至6のいずれか1項に記載の撮像装置。   2. The first zoom position according to claim 1, wherein the control unit changes the stored second zoom position in accordance with the size of the subject detected by the subject detection unit. The imaging device according to any one of 6. 前記第1のズーム位置において、前記制御手段は、前記第1のズーム位置において取得された画像に対する被写体のサイズの比率と前記第1のズーム位置へのズーム移動前に取得された画像に対する基準サイズの比率との差が所定量を超える場合、記憶されている前記第2のズーム位置を変更することを特徴とする請求項1乃至7のいずれか1項に記載の撮像装置。   In the first zoom position, the control means determines the ratio of the size of the subject to the image acquired in the first zoom position and the reference size for the image acquired before the zoom movement to the first zoom position. The imaging apparatus according to claim 1, wherein when the difference from the ratio exceeds a predetermined amount, the stored second zoom position is changed. 前記基準サイズは、前記第1の操作に応じて検出された被写体のサイズに基づいて設定されることを特徴とする請求項8に記載の撮像装置。   The imaging apparatus according to claim 8, wherein the reference size is set based on a size of a subject detected according to the first operation. 前記制御手段は、前記第1のズーム位置において、前記第2のズーム位置の変更に応じて前記第2の領域を変更することを特徴とする請求項7乃至9のいずれか1項に記載の撮像装置。   The said control means changes the said 2nd area | region according to the change of the said 2nd zoom position in the said 1st zoom position, The any one of Claim 7 thru | or 9 characterized by the above-mentioned. Imaging device. 画像を表示する表示手段を有し、
前記制御手段は、前記第1のズーム位置において、前記画像に重畳して前記第2のズーム位置に対応する画角を示す表示を行うよう前記表示手段を制御することを特徴とする請求項1乃至10のいずれか1項に記載の撮像装置。
Having display means for displaying an image;
The control means controls the display means so as to perform a display showing an angle of view corresponding to the second zoom position by being superimposed on the image at the first zoom position. The imaging device according to any one of 1 to 10.
前記制御手段は、前記第1の操作と異なる操作であって、前記第1の操作部を介した第2の操作に応じて第2のモードを実行し、
前記第2のモードにおいて、前記制御手段は、前記第2の操作に応じてズーム位置を広角側に移動するよう制御するとともに第3のズーム位置を設定し、さらに前記第1の操作部を介した第3の操作に応じてズーム位置を前記第3のズーム位置に移動するよう制御することを特徴とする請求項1乃至11のいずれか1項に記載の撮像装置。
The control means is an operation different from the first operation, and executes a second mode in response to a second operation via the first operation unit,
In the second mode, the control means controls to move the zoom position to the wide-angle side in accordance with the second operation, sets a third zoom position, and further passes through the first operation unit. The imaging apparatus according to claim 1, wherein a zoom position is controlled to move to the third zoom position in accordance with the third operation performed.
画像を表示する表示手段を有し、
前記第2のモードにおいて、前記制御手段は、前記第2の操作に応じてズーム位置を広角側に移動した際、前記画像に重畳して前記第3のズーム位置に対応する画角を示す表示を行うよう前記表示手段を制御することを特徴とする請求項12に記載の撮像装置。
Having display means for displaying an image;
In the second mode, when the control unit moves the zoom position to the wide-angle side in response to the second operation, the control unit displays an angle of view corresponding to the third zoom position superimposed on the image. The image pickup apparatus according to claim 12, wherein the display unit is controlled to perform the operation.
前記制御手段は、前記第1の操作部の操作時間に応じて、前記第1の操作と前記第2の操作のいずれかを判定することを特徴とする請求項12又は13に記載の撮像装置。   The imaging device according to claim 12 or 13, wherein the control unit determines either the first operation or the second operation according to an operation time of the first operation unit. . ユーザがズーム位置の変更を指示するための第2の操作部をさらに有し、
前記第1の操作部に対して前記第2の操作が行われてから前記第3の操作が行われるまでの間に前記第2の操作部が操作された場合、前記制御手段は、前記第2の操作部の操作に応じて、前記第3のズーム位置を変更することを特徴とする請求項12乃至14のいずれか1項に記載の撮像装置。
A second operation unit for the user to instruct a change of the zoom position;
When the second operation unit is operated between the time when the second operation is performed on the first operation unit and the time when the third operation is performed, the control unit is configured to The imaging apparatus according to claim 12, wherein the third zoom position is changed according to an operation of the second operation unit.
ユーザがズーム位置の変更を指示するための第1の操作部を有する撮像装置の制御方法であって、
画像から被写体を検出する検出ステップと、
前記第1の操作部の操作に応じてズーム位置を制御する制御ステップとを有し、
前記第1の操作部を介した第1の操作が行われた場合、前記制御ステップにおいて第1のモードを実行し、
前記第1のモードにおいて、前記検出ステップにより検出された被写体が画像内に設定された第1の領域外に含まれる場合、ズーム位置を広角側の第1のズーム位置に移動するよう制御するとともに、ズーム移動前のズーム位置を第2のズーム位置に設定し、前記第1のズーム位置において、前記検出ステップにより検出された被写体が前記第2のズーム位置に対応する領域内に設定された第2の領域内に包含される場合、ズーム位置を前記第2のズーム位置に移動するよう制御することを特徴とする撮像装置の制御方法。
A method for controlling an imaging apparatus having a first operation unit for a user to instruct a change of a zoom position,
A detection step of detecting a subject from the image;
A control step for controlling a zoom position according to an operation of the first operation unit,
When the first operation is performed via the first operation unit, the first mode is executed in the control step;
In the first mode, when the subject detected in the detection step is included outside the first region set in the image, the zoom position is controlled to move to the first zoom position on the wide angle side. The zoom position before the zoom movement is set to the second zoom position, and at the first zoom position, the subject detected by the detection step is set in an area corresponding to the second zoom position. 2. A control method for an image pickup apparatus, wherein the zoom position is controlled to move to the second zoom position when included in the second area.
JP2013138443A 2013-04-25 2013-07-01 Control device and angle of view control method Expired - Fee Related JP6224925B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2013138443A JP6224925B2 (en) 2013-04-25 2013-07-01 Control device and angle of view control method
US14/219,241 US9253410B2 (en) 2013-04-25 2014-03-19 Object detection apparatus, control method therefor, image capturing apparatus, and storage medium

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP2013093046 2013-04-25
JP2013093046 2013-04-25
JP2013138443A JP6224925B2 (en) 2013-04-25 2013-07-01 Control device and angle of view control method

Publications (3)

Publication Number Publication Date
JP2014225854A true JP2014225854A (en) 2014-12-04
JP2014225854A5 JP2014225854A5 (en) 2016-08-04
JP6224925B2 JP6224925B2 (en) 2017-11-01

Family

ID=52124204

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013138443A Expired - Fee Related JP6224925B2 (en) 2013-04-25 2013-07-01 Control device and angle of view control method

Country Status (1)

Country Link
JP (1) JP6224925B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016122029A (en) * 2014-12-24 2016-07-07 キヤノン株式会社 Zoom control device, imaging device, zoom control device control method, zoom control device control program, and storage medium
JP2016122874A (en) * 2014-12-24 2016-07-07 キヤノン株式会社 Zoom control device, imaging device, control method of zoom control device, control program of zoom control device, and storage medium
JP2021078154A (en) * 2014-12-24 2021-05-20 キヤノン株式会社 Zoom control device, imaging apparatus, control method of zoom control device, and control program of zoom control device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008301162A (en) * 2007-05-31 2008-12-11 Fujifilm Corp Photography device, and photographing method
JP2009033450A (en) * 2007-07-26 2009-02-12 Casio Comput Co Ltd Camera apparatus, object tracking zooming method and object tracking zooming program
JP2009182547A (en) * 2008-01-30 2009-08-13 Hitachi Ltd Imaging device
JP2012060595A (en) * 2010-09-13 2012-03-22 Canon Inc Imaging apparatus and control method for the same
JP2012199637A (en) * 2011-03-18 2012-10-18 Canon Inc Imaging apparatus and control method therefor

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008301162A (en) * 2007-05-31 2008-12-11 Fujifilm Corp Photography device, and photographing method
JP2009033450A (en) * 2007-07-26 2009-02-12 Casio Comput Co Ltd Camera apparatus, object tracking zooming method and object tracking zooming program
JP2009182547A (en) * 2008-01-30 2009-08-13 Hitachi Ltd Imaging device
JP2012060595A (en) * 2010-09-13 2012-03-22 Canon Inc Imaging apparatus and control method for the same
JP2012199637A (en) * 2011-03-18 2012-10-18 Canon Inc Imaging apparatus and control method therefor

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016122029A (en) * 2014-12-24 2016-07-07 キヤノン株式会社 Zoom control device, imaging device, zoom control device control method, zoom control device control program, and storage medium
JP2016122874A (en) * 2014-12-24 2016-07-07 キヤノン株式会社 Zoom control device, imaging device, control method of zoom control device, control program of zoom control device, and storage medium
US10277823B2 (en) 2014-12-24 2019-04-30 Canon Kabushiki Kaisha Zoom control device, imaging apparatus, control method of zoom control device, and recording medium
US10827127B2 (en) 2014-12-24 2020-11-03 Canon Kabushiki Kaisha Zoom control device, imaging apparatus, control method of zoom control device, and recording medium
JP2021078154A (en) * 2014-12-24 2021-05-20 キヤノン株式会社 Zoom control device, imaging apparatus, control method of zoom control device, and control program of zoom control device
JP7073550B2 (en) 2014-12-24 2022-05-23 キヤノン株式会社 Zoom control device, image pickup device, control method of zoom control device, control program of zoom control device

Also Published As

Publication number Publication date
JP6224925B2 (en) 2017-11-01

Similar Documents

Publication Publication Date Title
JP6429454B2 (en) IMAGING DEVICE, IMAGING DEVICE CONTROL METHOD, AND IMAGING DEVICE CONTROL PROGRAM
US9253410B2 (en) Object detection apparatus, control method therefor, image capturing apparatus, and storage medium
JP6296801B2 (en) IMAGING DEVICE, IMAGING DEVICE CONTROL METHOD, AND IMAGING DEVICE CONTROL PROGRAM
US10165191B2 (en) Image pickup apparatus having zoom function, method of controlling the same, and storage medium
US10419683B2 (en) Zoom control device, imaging apparatus, control method of zoom control device, and recording medium
JP6436760B2 (en) Zoom control device, imaging device, control method for zoom control device, and control program for zoom control device
JP5623207B2 (en) Imaging apparatus and control method thereof
JP6366395B2 (en) Zoom control device, imaging device, control method for zoom control device, control program for subject detection device, and storage medium
JP6370140B2 (en) Zoom control device, imaging device, control method for zoom control device, control program for zoom control device, and storage medium
JP6618255B2 (en) Zoom control device, imaging device, control method for zoom control device, control program for zoom control device, and storage medium
JP2021078154A (en) Zoom control device, imaging apparatus, control method of zoom control device, and control program of zoom control device
JP2019029998A (en) Imaging apparatus, control method of imaging apparatus and control program
JP6643036B2 (en) Zoom control device, control method for zoom control device, control program for zoom control device, and storage medium
JP6188474B2 (en) Zoom control device, control method for zoom control device, control program for zoom control device, and storage medium
JP5744581B2 (en) Imaging apparatus and control method thereof
JP6245923B2 (en) IMAGING DEVICE, IMAGING DEVICE CONTROL METHOD, IMAGING DEVICE CONTROL PROGRAM, AND STORAGE MEDIUM
JP6463123B2 (en) Zoom control device, imaging device, control method for zoom control device, and control program for zoom control device
JP6224925B2 (en) Control device and angle of view control method
JP6289207B2 (en) IMAGING DEVICE, IMAGING DEVICE CONTROL METHOD, IMAGING DEVICE CONTROL PROGRAM, AND STORAGE MEDIUM
JP6188455B2 (en) Control apparatus, imaging system, angle of view control method, program, and storage medium
JP6335520B2 (en) IMAGING DEVICE, IMAGING DEVICE CONTROL METHOD, AND IMAGING DEVICE CONTROL PROGRAM
JP6234103B2 (en) Zoom control device, control method for zoom control device, control program for zoom control device, and storage medium
JP6437066B2 (en) IMAGING DEVICE, IMAGING DEVICE CONTROL METHOD, AND IMAGING DEVICE CONTROL PROGRAM
JP2015019282A (en) Image processing apparatus, control method of image processing apparatus, control program of image processing apparatus, and recording medium
JP2020101730A (en) Imaging device and control method for the same

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20160615

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20160615

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20170328

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20170428

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20170626

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20170908

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20171006

R151 Written notification of patent or utility model registration

Ref document number: 6224925

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

LAPS Cancellation because of no payment of annual fees