JP2006243636A - Imaging apparatus, autofocus control method and autofocus control program - Google Patents

Imaging apparatus, autofocus control method and autofocus control program Download PDF

Info

Publication number
JP2006243636A
JP2006243636A JP2005062526A JP2005062526A JP2006243636A JP 2006243636 A JP2006243636 A JP 2006243636A JP 2005062526 A JP2005062526 A JP 2005062526A JP 2005062526 A JP2005062526 A JP 2005062526A JP 2006243636 A JP2006243636 A JP 2006243636A
Authority
JP
Japan
Prior art keywords
subject
focus lens
image
autofocus
focus
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
JP2005062526A
Other languages
Japanese (ja)
Other versions
JP2006243636A5 (en
JP4591120B2 (en
Inventor
Keiichi Kobayashi
圭一 小林
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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co Ltd
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 Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP2005062526A priority Critical patent/JP4591120B2/en
Publication of JP2006243636A publication Critical patent/JP2006243636A/en
Publication of JP2006243636A5 publication Critical patent/JP2006243636A5/ja
Application granted granted Critical
Publication of JP4591120B2 publication Critical patent/JP4591120B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Studio Devices (AREA)
  • Focusing (AREA)
  • Automatic Focus Adjustment (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To pick up an image by excellently bringing a subject into focus even when an object which is not an image pickup object such as a cage or a net exists between the subject and an imaging apparatus. <P>SOLUTION: The imaging apparatus, for example, a camera device 1 picks up the image of the subject made incident through an optical imaging system including a focus lens 8. A control part 25 performs first autofocus processing such that the focus lens 8 is moved to a position where it is focused on the first subject, for example, the cage or the net positioned at a shorter distance than the subject (animal or player) being a photographing object, for example, by contrast AF processing based on the picked-up image. By performing the first autofocus processing, a part equivalent to the first subject (cage and net) is masked from the image obtained when the focus lens 8 is focused on the first subject (cage and net). Then, the control part 25 performs second autofocus processing such that the focus lens 8 is moved to a position where it is focused on the second subject (the animal or the player positioned at a longer distance than the cage or the net) by setting the image which is masked as an object. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本発明は、オートフォーカス機能が設けられた撮像装置、同装置のオートフォーカス制御方法、及びオートフォーカス制御プログラムに関する。   The present invention relates to an imaging apparatus provided with an autofocus function, an autofocus control method for the same, and an autofocus control program.

従来、オートフォーカス機能が設けられた電子カメラなどの撮像装置では、ユーザが望む被写体位置にフォーカスエリアを合わせる方法とて、フォーカスエリアを狭くするピンポイントAFや、フォーカスエリアを中央のみとせず複数のフォーカスエリアのうち適当と思われる位置に設定するマルチポイントAFなどが用いられている。   Conventionally, in an imaging apparatus such as an electronic camera provided with an autofocus function, a method of adjusting a focus area to a subject position desired by a user can be achieved by pinpoint AF for narrowing the focus area or a plurality of focus areas, not only in the center. A multi-point AF or the like that is set at a suitable position in the focus area is used.

例えば、特許文献1には、撮影画面の中央部に位置しない被写体に対しても、中抜けを防止すると共にスポット光はずれによる誤側距を防止することができる側距装置が記載されている。
特開2002−48970号公報
For example, Patent Document 1 describes a lateral distance device that can prevent a void from being caused by a spot light deviation and prevent a void from being detected even with respect to a subject that is not located at the center of a shooting screen.
JP 2002-48970 A

このような、ユーザが望む被写体位置にフォーカスエリアを合わせる方法により、被写体の特定の部分にフォーカスを合わせたり、被写体の内中央にフォーカスが合ってしまういわゆる中抜け画像になることを防ぐことができる。   By adjusting the focus area to the subject position desired by the user, it is possible to prevent a so-called hollow image that focuses on a specific part of the subject or focuses on the inner center of the subject. .

しかしながら、例えば動物園などで檻の中の動物を撮像したり、野球場などでネット越しに被写体(選手)を撮像するような場合には、檻やネットにフォーカスが合ってしまい、良好に被写体の画像を撮像することができなかった。   However, for example, when taking an image of an animal in a cage at a zoo or taking an image of a subject (player) over the net at a baseball stadium, etc. An image could not be taken.

本発明の課題は、被写体との間に檻やネットなどの撮像対象としない対象物が存在していたとしても良好に被写体にフォーカスを合わせて画像を撮像することが可能な撮像装置、オートフォーカス制御方法、及びオートフォーカス制御プログラムを提供することにある。   SUMMARY OF THE INVENTION An object of the present invention is to provide an imaging apparatus and an autofocus capable of capturing an image with a good focus on the subject even if there is an object that is not an imaging target, such as a bag or a net, between the subject and the subject. A control method and an autofocus control program are provided.

請求項1記載の発明は、フォーカスレンズを介して入射される被写体の画像を撮像する撮像手段と、前記フォーカスレンズを第1の被写体に合焦させる位置に移動させる第1のオートフォーカス手段と、前記第1のオートフォーカス手段により前記フォーカスレンズが前記第1の被写体に合焦させた時の画像中から前記第1の被写体に相当する部分をマスクするマスク手段と、前記マスク手段によりマスクが施された画像を対象として、前記フォーカスレンズを第2の被写体に合焦させる位置に移動させる第2のオートフォーカス手段とを具備したことを特徴とする。   The invention described in claim 1 is an image pickup means for picking up an image of a subject incident through a focus lens, a first autofocus means for moving the focus lens to a position for focusing the first subject, Mask means for masking a portion corresponding to the first subject in an image when the focus lens is focused on the first subject by the first autofocus means, and masking is performed by the mask means. And a second autofocus means for moving the focus lens to a position for focusing the second object on the target image.

請求項2記載の発明は、フォーカスレンズを介して入射される被写体の画像を撮像する撮像手段と、前記フォーカスレンズを被写体に合焦させる位置に移動させる第1のオートフォーカス手段と、前記第1のオートフォーカス手段により前記フォーカスレンズが合焦された前記被写体よりも遠距離側の位置にフォーカスが合うように、前記フォーカスレンズを所定量移動させる第2のオートフォーカス手段とを具備したことを特徴とする。   According to a second aspect of the present invention, there is provided an imaging unit that captures an image of a subject incident through a focus lens, a first autofocus unit that moves the focus lens to a position where the subject is focused, and the first And a second autofocus means for moving the focus lens by a predetermined amount so that the focus lens is focused at a position farther than the subject on which the focus lens is focused by the autofocus means. And

請求項3記載の発明は、請求項2記載の発明において、前記第2のオートフォーカス手段は、前記被写体が被写界深度外となるように前記フォーカスレンズを移動させることを特徴とする。   The invention according to claim 3 is the invention according to claim 2, wherein the second autofocus means moves the focus lens so that the subject is outside the depth of field.

請求項4記載の発明は、請求項2記載の発明において、前記第2のオートフォーカス手段は、前記被写体までの距離に対する予め決められた所定倍数の距離に合焦するように前記フォーカスレンズを移動させることを特徴とする。   According to a fourth aspect of the present invention, in the second aspect of the present invention, the second autofocusing unit moves the focus lens so as to focus on a predetermined multiple of the distance to the subject. It is characterized by making it.

請求項5記載の発明は、フォーカスレンズを介して入射される被写体の画像を撮像する撮像手段と、前記フォーカスレンズを第1の被写体に合焦させる位置に移動させる第1のオートフォーカス手段と、前記第1のオートフォーカス手段により前記フォーカスレンズが前記第1の被写体に合焦させた時の画像中から前記第1の被写体に相当する部分をマスクするマスク手段と、前記マスク手段によりマスクが施された画像を対象として、前記フォーカスレンズを第2の被写体に合焦させる位置に移動させる第2のオートフォーカス手段と、前記第2のオートフォーカス手段により前記第2の被写体に合焦させる位置に移動できない場合に、前記フォーカスレンズが合焦された前記第1の被写体よりも遠距離側の位置にフォーカスが合うように、前記フォーカスレンズを所定量移動させる第3のオートフォーカス手段とを具備したことを特徴とする。   According to a fifth aspect of the present invention, there is provided an image pickup means for picking up an image of a subject incident through a focus lens, a first autofocus means for moving the focus lens to a position for focusing the first subject, Mask means for masking a portion corresponding to the first subject in an image when the focus lens is focused on the first subject by the first autofocus means, and masking is performed by the mask means. A second autofocus unit that moves the focus lens to a position for focusing the second subject on the image that has been processed, and a position for focusing the second subject by the second autofocus unit. When the focus lens cannot move, the focus lens is focused at a position farther than the focused first object. Characterized by comprising a third automatic focusing means for moving a predetermined amount of the focus lens.

請求項6記載の発明は、フォーカスレンズを介して入射される被写体の画像を撮像する撮像ステップと、前記フォーカスレンズを第1の被写体に合焦させる位置に移動させる第1のオートフォーカスステップと、前記第1のオートフォーカスステップにより前記フォーカスレンズが前記第1の被写体に合焦させた時の画像中から前記第1の被写体に相当する部分をマスクするマスクステップと、前記マスクステップによりマスクが施された画像を対象として、前記フォーカスレンズを第2の被写体に合焦させる位置に移動させる第2のオートフォーカスステップとを含むことを特徴とする。   According to a sixth aspect of the present invention, an imaging step of capturing an image of a subject incident through the focus lens, a first autofocus step of moving the focus lens to a position for focusing the first subject, A mask step for masking a portion corresponding to the first subject from an image when the focus lens is focused on the first subject by the first autofocus step, and a mask is applied by the mask step. And a second autofocus step for moving the focus lens to a position for focusing the second object on the target image.

請求項7記載の発明は、撮像装置に搭載されるコンピュータを、フォーカスレンズを介して入射される被写体の画像を撮像する撮像手段と、前記フォーカスレンズを第1の被写体に合焦させる位置に移動させる第1のオートフォーカス手段と、前記第1のオートフォーカス手段により前記フォーカスレンズが前記第1の被写体に合焦させた時の画像中から前記第1の被写体に相当する部分をマスクするマスク手段と、前記マスク手段によりマスクが施された画像を対象として、前記フォーカスレンズを第2の被写体に合焦させる位置に移動させる第2のオートフォーカス手段として機能させることを特徴とする。   According to the seventh aspect of the present invention, the computer mounted on the image pickup apparatus is moved to an image pickup means for picking up an image of a subject incident through the focus lens and a position where the focus lens is focused on the first subject. First autofocusing means for masking, and masking means for masking a portion corresponding to the first subject in the image when the focus lens is focused on the first subject by the first autofocusing means And an image masked by the mask means as a target, and the focus lens is made to function as a second autofocus means for moving the focus lens to a position for focusing on the second subject.

請求項1,6,7記載の発明によれば、例えば動物園などで檻の中の動物を撮像したり、野球場などでネット越しに被写体(選手)を撮像するような場合に、檻やネットを第1の被写体として合焦させた後、この第1の被写体の部分をマスクして、再度、被写体に合焦させることで、檻の中の動物やネット越しの選手などに良好にフォーカスを合わせて画像を撮影することができる。   According to the first, sixth, and seventh aspects of the present invention, for example, when an image of an animal in a cage is taken at a zoo or a subject (player) is taken over a net at a baseball field or the like, After focusing as a first subject, mask this first subject part and focus on the subject again, so that the animals in the cage and players over the net can focus well. You can also take images.

請求項2記載の発明によれば、例えば動物園などで檻の中の動物を撮像したり、野球場などでネット越しに被写体(選手)を撮像するような場合に、檻やネットを被写体として合焦させた後、フォーカスレンズが合焦された被写体よりも遠距離側の位置、すなわち檻の中の動物やネット越しの選手がいる位置にフォーカスが合うようにフォーカスレンズを所定量移動させることで、檻の中の動物やネット越しの選手などに良好にフォーカスを合わせて画像を撮影することができる。   According to the second aspect of the present invention, for example, when an image of an animal in a cage is taken at a zoo or a subject (player) is taken over a net at a baseball field or the like, the cage or the net is used as a subject. After moving the focus lens, the focus lens is moved by a predetermined amount so that the focus lens is in a position farther than the focused subject, that is, the position where the animal in the cage or the player over the net is in focus. It is possible to shoot images with good focus on animals in cages and players over the net.

請求項3記載の発明によれば、請求項2の発明の効果に加えて、フォーカスレンズが合焦された被写体の位置が被写界深度外となるようにフォーカスレンズを移動させることで、例えば檻やネットには合焦せず、檻の中の動物やネット越しの選手に対してフォーカスを合わせることができる。   According to the invention of claim 3, in addition to the effect of the invention of claim 2, by moving the focus lens so that the position of the subject on which the focus lens is focused is outside the depth of field, for example, You can focus on the animals in the cage and the players over the net without focusing on the cage or the net.

請求項4記載の発明によれば、請求項2の発明の効果に加えて、被写体までの距離に対する予め決められた所定倍数の距離に合焦するようにフォーカスレンズを移動させることで、例えば初めに檻やネットに合焦されたとしても、檻やネットよりも遠くに位置する動物や選手に対してフォーカスを合わせることができる。   According to the invention described in claim 4, in addition to the effect of the invention of claim 2, by moving the focus lens so as to focus on a predetermined multiple of a distance to the subject, for example, at the beginning Even if the focus is on the cage or the net, it is possible to focus on animals or players located farther than the cage or the net.

請求項5記載の発明によれば、例えば動物園などで檻の中の動物を撮像したり、野球場などでネット越しに被写体(選手)を撮像するような場合に、檻やネットを第1の被写体として合焦させた後、この第1の被写体の部分をマスクして、再度、被写体に合焦させようとした際に、フォーカス位置が特定できない場合であっても、フォーカスレンズが合焦された被写体よりも遠距離側の位置、すなわち檻の中の動物やネット越しの選手がいる位置の方向にフォーカスが合うようにフォーカスレンズを所定量移動させることで、檻の中の動物やネット越しの選手などに良好にフォーカスを合わせて画像を撮影することができる。   According to the fifth aspect of the present invention, for example, when the animal in the cage is imaged at a zoo or the subject (player) is imaged over the net at a baseball field or the like, After focusing on the subject, the focus lens is focused even if the focus position cannot be specified when trying to focus on the subject again by masking the portion of the first subject. By moving the focus lens by a predetermined amount so that the focus is in the direction of the position farther away than the subject, that is, the position of the animal in the cage or the player over the net, It is possible to take an image with a good focus on a player or the like.

以下、図面を参照して本発明の実施の形態について説明する。   Embodiments of the present invention will be described below with reference to the drawings.

図1は、本発明の実施の形態におけるカメラ装置1(撮像装置)の詳細な構成を示すブロック図である。   FIG. 1 is a block diagram showing a detailed configuration of a camera device 1 (imaging device) according to an embodiment of the present invention.

図1に示すカメラ装置1において、基本モードである撮影モードにおいては、レンズ光学系に含まれるフォーカスレンズ8、ズームレンズ9、及び絞り10が、制御部25の制御のもとでモータ駆動部11により駆動されるモータにより、絞り位置や撮影に応じたレンズ位置に移動される。   In the camera apparatus 1 shown in FIG. 1, in the photographing mode that is the basic mode, the focus lens 8, the zoom lens 9, and the diaphragm 10 included in the lens optical system are controlled by the control unit 25. Is moved to the lens position corresponding to the aperture position and photographing.

レンズ光学系の撮影光軸後方に配置された撮像素子であるCCD(Charge Coupled Device)12は、タイミング発生器(TG)13、垂直ドライバ14によって走査駆動され、一定周期毎に結像した光像に対応する光電変換出力を1画面分出力する。   A CCD (Charge Coupled Device) 12, which is an image sensor disposed behind the photographing optical axis of the lens optical system, is scanned and driven by a timing generator (TG) 13 and a vertical driver 14, and is imaged at regular intervals. The photoelectric conversion output corresponding to is output for one screen.

この光電変換出力は、アナログ値の信号の状態でRGBの各原色成分毎に適宜ゲイン調整された後に、サンプルホールド(S/H)回路15でサンプルホールドされ、A/D変換器16でデジタルデータに変換され、さらにカラープロセス回路17で画素補間処理及びγ補正処理を含むカラープロセス処理が行なわれて、デジタル値の輝度信号Y及び色差信号Cb,Crが生成され、DMA(Direct Memory Access)コントローラ18に出力される。   The photoelectric conversion output is appropriately gain-adjusted for each primary color component of RGB in the state of an analog value signal, sampled and held by a sample hold (S / H) circuit 15, and digital data by an A / D converter 16. The color process circuit 17 further performs color process processing including pixel interpolation processing and gamma correction processing to generate a digital luminance signal Y and color difference signals Cb, Cr, and a DMA (Direct Memory Access) controller. 18 is output.

DMAコントローラ18は、カラープロセス回路17の出力する輝度信号Y及び色差信号Cb,Crを、同じくカラープロセス回路17からの複合同期信号、メモリ書込みイネーブル信号、及びクロック信号を用いて一度DMAコントローラ18内部のバッファに書込み、DRAMインタフェース(I/F)20を介してバッファメモリとして使用されるDRAM21にDMA転送を行なう。   The DMA controller 18 once uses the luminance signal Y and the color difference signals Cb and Cr output from the color process circuit 17 by using the composite synchronization signal, the memory write enable signal, and the clock signal from the color process circuit 17 once. And the DMA transfer to the DRAM 21 used as a buffer memory through the DRAM interface (I / F) 20.

制御部25は、CPUと、該CPUで実行される各種動作プログラムやデータ等を固定的に記録したROM、及びワークメモリとして使用されるRAM等により構成され、このカメラ装置1全体の制御動作を司る。動作プログラムには、オートフォーカス(AF)を制御するオートフォーカス制御プログラム、自動露出制御(AE)を制御する自動露出制御プログラムなどが含まれる。   The control unit 25 includes a CPU, a ROM in which various operation programs and data executed by the CPU are fixedly recorded, a RAM used as a work memory, and the like. Control. The operation program includes an autofocus control program for controlling autofocus (AF), an automatic exposure control program for controlling automatic exposure control (AE), and the like.

制御部25は、輝度及び色差信号のDRAM21へのDMA転送終了後に、この輝度及び色差信号をDRAMインタフェース20を介してDRAM21より読出し、VRAMコントローラ26を介してVRAM27に書込む。   After completing the DMA transfer of the luminance and color difference signals to the DRAM 21, the control unit 25 reads the luminance and color difference signals from the DRAM 21 via the DRAM interface 20 and writes them to the VRAM 27 via the VRAM controller 26.

デジタルビデオエンコーダ28は、輝度及び色差信号をVRAMコントローラ26を介してVRAM27より定期的に読出し、これらのデータを元にビデオ信号を発生して表示部29に出力する。   The digital video encoder 28 periodically reads luminance and color difference signals from the VRAM 27 via the VRAM controller 26, generates a video signal based on these data, and outputs the video signal to the display unit 29.

表示部29は、撮影モード時にはモニタ表示部(電子ファインダ)として機能し、デジタルビデオエンコーダ28からのビデオ信号に基づいた表示を行なうことで、その時点でVRAMコントローラ26から取込んでいる画像情報に基づく画像(スルー画像)をリアルタイムに表示することになる。   The display unit 29 functions as a monitor display unit (electronic finder) in the shooting mode, and performs display based on the video signal from the digital video encoder 28 to display image information captured from the VRAM controller 26 at that time. The base image (through image) is displayed in real time.

表示部29にスルー画像がリアルタイムに表示されている表示状態で、静止画像を撮影するタイミングでキー入力部37のシャッタキーが操作されると、トリガ信号を発生する。   When a through image is displayed in real time on the display unit 29, a trigger signal is generated when the shutter key of the key input unit 37 is operated at the timing of capturing a still image.

制御部25は、このトリガ信号に応じてその時点でCCD12の駆動を停止した後、自動露出処理を実行して適正な露出値を得て、レンズ光学系の絞りとCCD12の露光時間を制御してあらためて撮像を実行させる。   In response to this trigger signal, the control unit 25 stops driving the CCD 12 at that time, and then performs an automatic exposure process to obtain an appropriate exposure value, and controls the aperture of the lens optical system and the exposure time of the CCD 12. Re-capture the image.

こうして新たに得られた1フレーム分の画像データがDRAM21にDMA転送されて書込まれた後、制御部25がDRAM21に書込まれている1フレーム分の画像データを読出して画像処理部30に書込む。画像処理部30は、画像データに対して、JPEG(Joint Photographic Experts Group)により画像データを符号化する。   After the newly obtained image data for one frame is DMA-transferred and written in the DRAM 21 in this way, the control unit 25 reads out the image data for one frame written in the DRAM 21 to the image processing unit 30. Write. The image processing unit 30 encodes image data by JPEG (Joint Photographic Experts Group) with respect to the image data.

符号化された画像データは、カメラ装置1の記録媒体として着脱自在に装着されている不揮発性のメモリカード32、あるいはメモリカード32が装着されていない場合は固定的に内蔵されている不揮発性の内蔵メモリ33に書き込まれる。   The encoded image data is a non-volatile memory card 32 that is detachably mounted as a recording medium of the camera device 1, or a non-volatile memory that is fixedly built in the case where the memory card 32 is not mounted. It is written in the built-in memory 33.

そして、1フレーム分のメモリカード32または内蔵メモリ33への画像データの書込み終了に伴なって、制御部25は、CCD12からDRAM21を経由したスルー画像を表示部29においてモニタ表示させる駆動を再開する。   Then, with the completion of the writing of the image data to the memory card 32 or the built-in memory 33 for one frame, the control unit 25 resumes the drive for displaying the through image from the CCD 12 via the DRAM 21 on the display unit 29. .

また、制御部25には、キー入力部37、音声処理部40、ストロボ駆動部41が接続される。   In addition, a key input unit 37, an audio processing unit 40, and a strobe driving unit 41 are connected to the control unit 25.

キー入力部37は、電源キー、シャッタキー、モード切り換えキー、メニューキー、選択キー、及び十字キー(カーソルキー)等から構成され、それらのキー操作に伴なう信号は直接制御部25へ送出される。   The key input unit 37 includes a power key, a shutter key, a mode switching key, a menu key, a selection key, a cross key (cursor key), and the like, and signals associated with these key operations are directly sent to the control unit 25. Is done.

音声処理部40は、PCM音源等の音源回路を備え、音声の録音時にはマイクロホン部(MIC)42より入力された音声信号をデジタル化し、所定のデータファイル形式、例えばMP3(MPEG-1 Audio Layer-3)規格に従ってデータ圧縮して音声データファイルを作成してメモリカード32または内蔵メモリ33へ送出する一方、音声の再生時にはメモリカード32または内蔵メモリ33から送られてきた音声データファイルの圧縮を解いてアナログ化し、スピーカ部(SP)43を駆動して、拡声放音させる。   The audio processing unit 40 includes a sound source circuit such as a PCM sound source, digitizes the audio signal input from the microphone unit (MIC) 42 when recording audio, and performs a predetermined data file format such as MP3 (MPEG-1 Audio Layer-). 3) According to the standard, the data is compressed and an audio data file is created and sent to the memory card 32 or the built-in memory 33, while the audio data file sent from the memory card 32 or the built-in memory 33 is uncompressed at the time of playing the sound. Then, it is converted into an analog signal and the speaker unit (SP) 43 is driven to emit loud sounds.

さらに音声処理部40は、制御部25からの制御に基づいて、各種動作音、例えばシャッタキーの操作に伴う擬似的なシャッタ音、他のキーの操作に伴うビープ音等も発生してスピーカ部43より拡声放音させる。   Furthermore, the sound processing unit 40 generates various operation sounds, for example, a pseudo shutter sound associated with the operation of the shutter key, a beep sound associated with the operation of other keys, and the like based on the control from the control unit 25. The sound is emitted from 43.

ストロボ駆動部41は、静止画像撮影時に図示しないストロボ用の大容量コンデンサを充電した上で、制御部25からの制御に基づいてストロボ発光部45を閃光駆動する。   The strobe drive unit 41 charges a large-capacitance capacitor for strobe (not shown) at the time of still image shooting, and then drives the strobe light emitting unit 45 to flash based on the control from the control unit 25.

(第1実施形態)
次に、第1実施形態における動作について説明する。
図2は、第1実施形態において、ユーザが撮影モード切り換えキーを操作することによりケージ撮影モードを設定したときの制御部25による画像撮影処理手順を示すフローチャートである。ケージ撮影モードは、例えば動物園などで檻の中の動物を撮像したり、野球場などでネット越しに被写体(選手)を撮像するような場合に、檻やネットにフォーカスが合わないようにし、檻やネットより遠くに位置している動物や選手にフォーカスを合わすことができる撮影モードである。
(First embodiment)
Next, the operation in the first embodiment will be described.
FIG. 2 is a flowchart showing an image shooting processing procedure by the control unit 25 when the user sets the cage shooting mode by operating the shooting mode switching key in the first embodiment. The cage shooting mode prevents the focus on the kite or the net when taking an image of an animal in the kite at a zoo or shooting a subject (player) over the net at a baseball stadium, for example. It is a shooting mode that can focus on animals and players located far away from the internet.

第1実施形態では、例えばコントラストオートフォーカス(AF)によってAF動作を実行するものとする。   In the first embodiment, it is assumed that the AF operation is executed by, for example, contrast autofocus (AF).

まず、ユーザがキー入力部37の撮影モード切り換えキーを操作することによりケージ撮影モードに設定されると、CCD12による周期的な撮影を開始して、被写体のスルー画像を表示部29において表示させる(ステップA1)。これにより、ユーザは撮影しようとする被写体をスルー画像を視認することにより特定することが可能となる。   First, when the user operates the shooting mode switching key of the key input unit 37 to set the cage shooting mode, periodic shooting by the CCD 12 is started and a through image of the subject is displayed on the display unit 29 ( Step A1). Thereby, the user can identify the subject to be photographed by visually recognizing the through image.

制御部25は、シャッターボタンが半押しされたか否かを判別し、半押しされた場合は(ステップA2、Yes)、AFシーケンスに従う第1のコントラストAF処理を開始する(ステップA3)。第1のコントラストAF処理は、カメラ装置1の近くに位置している被写体、すなわち檻やネット(第1の被写体)にフォーカスを合わせるための処理である。   The control unit 25 determines whether or not the shutter button is half-pressed, and when the shutter button is half-pressed (Step A2, Yes), starts the first contrast AF process according to the AF sequence (Step A3). The first contrast AF process is a process for focusing on a subject located near the camera device 1, that is, a bag or a net (first subject).

まず、制御部25は、フォーカスレンズ8の現在位置を取得し(ステップA4)、この現在位置から所定方向への移動を開始する(ステップA5)。コントラストAF処理では、フォーカスレンズ8を移動させながら、被写体画像の一部に設けられる所定のフォーカスエリアのコントラスト値(AF評価値)を算出する(ステップA6)。例えば、フォーカスレンズ8の移動は、現在のレンズ位置から近い方のレンズ端までフォーカスレンズ8を移動させ、その後、反対側のレンズ端に向けてフォーカスレンズ8を1区分ずつ移動させていき、区分毎のコントラスト値を算出していく。   First, the control unit 25 acquires the current position of the focus lens 8 (step A4), and starts moving in a predetermined direction from the current position (step A5). In the contrast AF process, the contrast value (AF evaluation value) of a predetermined focus area provided in a part of the subject image is calculated while moving the focus lens 8 (step A6). For example, the focus lens 8 is moved by moving the focus lens 8 to the lens end closer to the lens position from the current lens position, and then moving the focus lens 8 one by one toward the opposite lens end. The contrast value for each is calculated.

所定のフォーカスエリアとしては、例えば画面中央部に設けられたエリア、ユーザにより選択された画面中の一部のエリア、または自動選択された画面上の一部のエリア等がフォーカスエリアとして設定されるものとする。なお、CCD12から出力された画面全体を用いてコントラスト値を算出するようにしてもよい。   As the predetermined focus area, for example, an area provided at the center of the screen, a part of the screen selected by the user, or a part of the area automatically selected on the screen is set as the focus area. Shall. The contrast value may be calculated using the entire screen output from the CCD 12.

制御部25は、フォーカスレンズ8の位置がレンズ端に到達するまでの間で(ステップA8)、フォーカスレンズ8を移動させながら算出されるコントラスト値がピークとなっているかを判別する(ステップA7)。例えば、制御部25は、フォーカスレンズ8の移動に伴い順次算出されるコントラスト値が上昇する変化を表して所定値以上のコントラスト値が検出された後に、連続して減少したことが検出された場合にピーク位置が検出されたと判別する。   The control unit 25 determines whether the contrast value calculated while moving the focus lens 8 is a peak until the position of the focus lens 8 reaches the lens end (step A8) (step A7). . For example, the control unit 25 represents a change in which the contrast value sequentially calculated with the movement of the focus lens 8 is detected, and after detecting a contrast value that is equal to or higher than a predetermined value, it is detected that the contrast value continuously decreases. It is determined that the peak position has been detected.

こうして、フォーカスエリアのコントラスト値のピークが検出されると(ステップA7、Yes)、制御部25は、このピーク時のレンズ位置にフォーカスレンズ8を移動させると共に、レンズ位置を記憶しておく(ステップA9)。   Thus, when the peak of the contrast value in the focus area is detected (step A7, Yes), the control unit 25 moves the focus lens 8 to the lens position at the peak and stores the lens position (step S7). A9).

ここで、制御部25は、コントラスト値がピックとなったフォーカスエリア内の画像に対してエッヂを検出すると共に(ステップA10)、このエッヂとして検出されたフォーカスエリア内の画像部分をマスクする(ステップA11)。   Here, the control unit 25 detects the edge of the image in the focus area where the contrast value is picked (step A10), and masks the image portion in the focus area detected as the edge (step A10). A11).

図3(a)には、第1のコントラストAF処理時のフォーカスが合わされた画像に対してマスクをかけた状態の一例を示している。図3(a)は、檻の中に「トラ」がいる風景を撮影しようとした例を示している。この場合、本来、撮影しようとしている被写体の「トラ」よりカメラ装置1の近くに位置している檻(第1の被写体)にフォーカスが合っている。ここで、画像中のエッジ部分を検出することで、檻に該当する画像部分がマスクされることになる。   FIG. 3A shows an example of a state in which a mask is applied to the focused image in the first contrast AF process. FIG. 3A shows an example in which a landscape with a “tiger” in a cage is photographed. In this case, the focus is on the eyelid (first subject) positioned closer to the camera device 1 than the “tiger” of the subject to be photographed. Here, by detecting the edge portion in the image, the image portion corresponding to the eyelid is masked.

次に、制御部25は、マスクした画像部分を除外して、前述した第1のコントラストAF処理と同様について第2のコントラストAF処理を開始する(ステップA12)。   Next, the control unit 25 excludes the masked image portion and starts the second contrast AF process similar to the first contrast AF process described above (step A12).

すなわち、制御部25は、フォーカスレンズ8の現在位置を取得し(ステップA13)、この現在位置から所定方向への移動を開始する(ステップA14)。コントラストAF処理では、第1のコントラストAF処理と同様にして、フォーカスレンズ8を移動させながら、被写体画像の一部に設けられる所定のフォーカスエリアのコントラスト値(AF評価値)を算出する(ステップA15)。例えば、フォーカスレンズ8の移動は、現在のレンズ位置から近い方のレンズ端までフォーカスレンズ8を移動させ、その後、反対側のレンズ端に向けてフォーカスレンズ8を1区分ずつ移動させていき、区分毎のコントラスト値を算出していく。   That is, the control unit 25 acquires the current position of the focus lens 8 (step A13), and starts moving in a predetermined direction from the current position (step A14). In the contrast AF process, as in the first contrast AF process, the contrast value (AF evaluation value) of a predetermined focus area provided in a part of the subject image is calculated while moving the focus lens 8 (step A15). ). For example, the focus lens 8 is moved by moving the focus lens 8 to the lens end closer to the lens position from the current lens position, and then moving the focus lens 8 one by one toward the opposite lens end. The contrast value for each is calculated.

図3(b)には、第2のコントラストAF処理時の画像の一例を示している。図3(b)に示すように、第1のコントラストAF処理によって檻の部分がマスクされているため檻より遠い位置に存在する「トラ」にフォーカスが合う位置にフォーカスレンズ8を移動させることでコントラスト値がピークとなる。   FIG. 3B shows an example of an image during the second contrast AF process. As shown in FIG. 3B, since the heel portion is masked by the first contrast AF process, the focus lens 8 is moved to a position where the “tiger” existing at a position far from the heel is in focus. The contrast value reaches a peak.

制御部25は、フォーカスレンズ8の位置がレンズ端に到達するまでの間で(ステップA17)、フォーカスレンズ8を移動させながら算出されるコントラスト値がピークとなっているかを判別する(ステップA16)。   The control unit 25 determines whether the contrast value calculated while moving the focus lens 8 is a peak until the position of the focus lens 8 reaches the lens end (step A17) (step A16). .

フォーカスエリアのコントラスト値のピークが検出されると(ステップA16、Yes)、制御部25は、このピーク時のレンズ位置と第1のコントラストAF処理により検出されたレンズ位置とを比較し、第2のコントラストAF処理により検出されたレンズ位置に対応する被写体までの距離が、第1のコントラストAF処理により検出されたレンズ位置に対応する被写体よりも遠方にあるかを判別する(ステップA18)。   When the peak of the contrast value in the focus area is detected (step A16, Yes), the control unit 25 compares the lens position at the peak with the lens position detected by the first contrast AF process, and the second It is determined whether the distance to the subject corresponding to the lens position detected by the contrast AF processing is farther than the subject corresponding to the lens position detected by the first contrast AF processing (step A18).

ここで、第2のコントラストAF処理により検出されたレンズ位置に対応する被写体の位置が、第1のコントラストAF処理により検出されたレンズ位置に対応する被写体の位置とほぼ同じ、あるいはより近くにあると判別された場合には、例えば第1のコントラストAF処理によって検出されたレンズ位置にフォーカスレンズ8を移動させてオートフォーカス処理を完了する(ステップA19,A20)。   Here, the position of the subject corresponding to the lens position detected by the second contrast AF process is substantially the same as or closer to the position of the subject corresponding to the lens position detected by the first contrast AF process. Is determined, for example, the focus lens 8 is moved to the lens position detected by the first contrast AF process to complete the autofocus process (steps A19 and A20).

一方、第2のコントラストAF処理により検出されたレンズ位置に対応する被写体の位置が、第1のコントラストAF処理により検出されたレンズ位置に対応する被写体の位置よりも遠い場合には、第2のコントラストAF処理によって検出されたレンズ位置にフォーカスレンズ8を移動させてオートフォーカス処理を完了する(ステップA19,A20)。すなわち、檻より遠くに位置している「トラ」(第2の被写体)にフォーカスを合わせることができる。   On the other hand, when the position of the subject corresponding to the lens position detected by the second contrast AF process is farther than the position of the subject corresponding to the lens position detected by the first contrast AF process, the second The focus lens 8 is moved to the lens position detected by the contrast AF process to complete the autofocus process (steps A19 and A20). That is, it is possible to focus on a “tiger” (second subject) located farther than the heel.

ここで、制御部25は、シャッターボタンの半押しが継続されているか否かを判別し、半押しが継続している場合には、シャッターボタンが全押しされるまで待機する(ステップA22、Yes)。   Here, the control unit 25 determines whether or not the half-press of the shutter button is continued. If the half-press is continued, the control unit 25 waits until the shutter button is fully pressed (step A22, Yes). ).

また、シャッターボタンが全押しされた場合は(ステップA21、Yes)、制御部25は、画撮撮影処理を実行する(ステップA23)。すなわち、CCD12から出力される1画面分の画素信号をA/D変換器16でデジタルデータに変換し、さらにカラープロセス回路17で各画像処理を施してDRAM21に取り込み、取り込んだ画像データを画像処理部30において圧縮する処理を開始する。そして、圧縮処理が完了すると、制御部25は、圧縮した画像データに基づく静止画ファイル(JPEG形式等のファイル)を生成し、例えばメモリカード32に記録する。   When the shutter button is fully pressed (step A21, Yes), the control unit 25 executes the image capturing process (step A23). That is, the pixel signal for one screen output from the CCD 12 is converted into digital data by the A / D converter 16 and further subjected to each image processing by the color process circuit 17 and taken into the DRAM 21. The process of compressing in the unit 30 is started. When the compression process is completed, the control unit 25 generates a still image file (file in JPEG format or the like) based on the compressed image data, and records it in the memory card 32, for example.

このようにして、第1実施形態のカメラ装置1では、例えば動物園などで檻の中の動物を撮像したり、野球場などでネット越しに被写体(選手)を撮像するような場合に、第1のコントラストAF処理によって檻やネットを第1の被写体として合焦させた後、この第1の被写体の部分をマスクして、第2のコントラストAf処理によって、再度、被写体に合焦させることで、檻の中の動物やネット越しの選手などに良好にフォーカスを合わせて画像を撮影することができる。   As described above, the camera device 1 according to the first embodiment uses the first method when, for example, an animal in a cage is imaged at a zoo or a subject (player) is imaged over the net at a baseball field or the like. After focusing the eyelids and net as the first subject by the contrast AF process, the first subject portion is masked, and the subject is again focused by the second contrast Af process. You can take images with good focus on animals in the cage or players over the net.

(第2実施形態)
次に、第2実施形態について説明する。第2実施形態では、初めのオートフォーカス処理によって被写体にフォーカスを合わせた後、この被写体よりも遠距離側の位置にフォーカスが合うようにフォーカスレンズを所定量移動させることで、例えば檻の中の動物やネット越しの選手などにフォーカスを合わせて画像を撮影できるようにする。
(Second Embodiment)
Next, a second embodiment will be described. In the second embodiment, after focusing on the subject by the initial autofocus processing, the focus lens is moved by a predetermined amount so that the focus is on a position farther than the subject, for example, in a cage. Focus on animals and players over the net so that they can take images.

図4は、第2実施形態において、ユーザが撮影モード切り換えキーを操作することによりケージ撮影モードを設定したときの制御部25による画像撮影処理手順を示すフローチャートである。   FIG. 4 is a flowchart showing an image shooting processing procedure by the control unit 25 when the user sets the cage shooting mode by operating the shooting mode switching key in the second embodiment.

第2実施形態においても、例えばコントラストオートフォーカス(AF)によってAF動作を実行するものとする。   Also in the second embodiment, it is assumed that the AF operation is executed by, for example, contrast autofocus (AF).

まず、ユーザがキー入力部37の撮影モード切り換えキーを操作することによりケージ撮影モードに設定されると、CCD12による周期的な撮影を開始して、被写体のスルー画像を表示部29において表示させる(ステップB1)。これにより、ユーザは撮影しようとする被写体をスルー画像を視認することにより特定することが可能となる。   First, when the user operates the shooting mode switching key of the key input unit 37 to set the cage shooting mode, periodic shooting by the CCD 12 is started and a through image of the subject is displayed on the display unit 29 ( Step B1). Thereby, the user can identify the subject to be photographed by visually recognizing the through image.

制御部25は、シャッターボタンが半押しされたか否かを判別し、半押しされた場合は(ステップB2、Yes)、AFシーケンスに従うコントラストAF処理を開始する(ステップB3)。コントラストAF処理は、カメラ装置1の近くに位置している被写体、すなわち檻やネットにフォーカスを合わせるための処理である。   The control unit 25 determines whether or not the shutter button has been half-pressed. If the shutter button has been half-pressed (step B2, Yes), the contrast AF process according to the AF sequence is started (step B3). The contrast AF process is a process for focusing on a subject located near the camera device 1, that is, a eyelid or a net.

まず、制御部25は、第1実施形態と同様にして、フォーカスレンズ8の現在位置を取得し(ステップB4)、この現在位置から所定方向への移動を開始する(ステップB5)。コントラストAF処理では、フォーカスレンズ8を移動させながら、被写体画像の一部に設けられる所定のフォーカスエリアのコントラスト値(AF評価値)を算出する(ステップB6)。   First, similarly to the first embodiment, the control unit 25 acquires the current position of the focus lens 8 (step B4), and starts moving in a predetermined direction from the current position (step B5). In the contrast AF process, the contrast value (AF evaluation value) of a predetermined focus area provided in a part of the subject image is calculated while moving the focus lens 8 (step B6).

制御部25は、第1実施形態と同様にして、フォーカスレンズ8の位置がレンズ端に到達するまでの間で(ステップB8)、フォーカスレンズ8を移動させながら算出されるコントラスト値がピークとなっているかを判別する(ステップB7)。   In the same manner as in the first embodiment, the control unit 25 peaks the contrast value calculated while moving the focus lens 8 until the position of the focus lens 8 reaches the lens end (step B8). (Step B7).

こうして、フォーカスエリアのコントラスト値のピークが検出されると(ステップB7、Yes)、制御部25は、コントラスト値がピークとなるレンズ位置よりも遠距離側にフォーカスが合うように、フォーカスレンズ8を所定量移動させるためのレンズ位置移動処理を実行する(ステップB9)。   Thus, when the peak of the contrast value in the focus area is detected (step B7, Yes), the control unit 25 moves the focus lens 8 so that the focus is on the far side from the lens position where the contrast value is the peak. A lens position moving process for moving a predetermined amount is executed (step B9).

すなわち、コントラストAF処理を実行することで檻やネットにフォーカスを合わすことができ、このフォーカスが合ったレンズ位置よりも遠距離側、すなわち檻よりも遠くに位置している被写体にフォーカスが合うようにフォーカスレンズ8が移動されることになる。なお、レンズ位置移動処理の詳細については後述する。   In other words, by performing contrast AF processing, it is possible to focus on the eyelids and the net, and focus on a subject located farther than the focused lens position, that is, farther than eyelids. Thus, the focus lens 8 is moved. Details of the lens position movement process will be described later.

こうして、コントラストAF処理によって検出されたレンズ位置よりも遠距離側にフォーカスが合うようにフォーカスレンズ8を所定量移動させることで、オートフォーカス処理を完了する(ステップB10)。   In this way, the autofocus process is completed by moving the focus lens 8 by a predetermined amount so that the focus is farther than the lens position detected by the contrast AF process (step B10).

ここで、制御部25は、シャッターボタンの半押しが継続されているか否かを判別し、半押しが継続している場合には、シャッターボタンが全押しされるまで待機する(ステップB12、Yes)。   Here, the control unit 25 determines whether or not the half-press of the shutter button is continued. If the half-press is continued, the control unit 25 waits until the shutter button is fully pressed (step B12, Yes). ).

また、シャッターボタンが全押しされた場合は(ステップB11、Yes)、制御部25は、画撮撮影処理を実行し(ステップB13)、撮影画像の静止画ファイルを生成し、例えばメモリカード32に記録する。   If the shutter button is fully pressed (step B11, Yes), the control unit 25 executes image shooting processing (step B13), generates a still image file of the shot image, and stores it in the memory card 32, for example. Record.

次に、ステップB9におけるレンズ位置移動処理について説明する。第2実施形態では、図5(a)(b)のフローチャートに示す第1または第2のレンズ位置移動処理を用いることができる。   Next, the lens position movement process in step B9 will be described. In the second embodiment, the first or second lens position movement process shown in the flowcharts of FIGS. 5A and 5B can be used.

まず、図5(a)のフローチャートに示す第1のレンズ位置移動処理について説明する。この場合、コントラストAF処理により被写体(檻やネット)にフォーカスが合うようにフォーカスレンズ8の位置が求められると、この時の被写体までの距離をレンズ位置をもとに算出する(ステップC1)。   First, the first lens position movement process shown in the flowchart of FIG. In this case, when the position of the focus lens 8 is obtained so that the subject (the eyelid or the net) is focused by the contrast AF process, the distance to the subject at this time is calculated based on the lens position (step C1).

そして、被写体の位置が被写界深度外となるレンズ移動量を算出し(ステップC2)、この算出したレンズ移動量に応じてフォーカスレンズ8を移動させる(ステップC3)。   Then, a lens movement amount at which the position of the subject is outside the depth of field is calculated (step C2), and the focus lens 8 is moved in accordance with the calculated lens movement amount (step C3).

図6(a)(b)には、被写体の位置が被写界深度外となるようにレンズ位置を移動させる様子を示している。図6(a)では、コントラストAF処理によって被写体として檻にフォーカスが合った状態を示している。ここで、フォーカスが合っている檻の位置が被写界深度外となるように、檻よりも遠距離側にフォーカスが合うようにフォーカスレンズ8のレンズ位置を移動させる。この結果、図6(b)に示すように、檻よりも遠くに位置している被写体(「トラ」)に対してフォーカスを合わせることができる。   FIGS. 6A and 6B show how the lens position is moved so that the position of the subject is outside the depth of field. FIG. 6A shows a state in which the eyelid is focused as a subject by contrast AF processing. Here, the lens position of the focus lens 8 is moved so that the in-focus position is out of the depth of field so that the in-focus position is outside the depth of field. As a result, as shown in FIG. 6B, it is possible to focus on a subject (“tiger”) located farther than the heel.

なお、前述した説明では、初めのオートフォーカス処理によりフォーカスが合った被写体の位置を被写界深度外とするために、フォーカスレンズ8の位置を移動させるとしているが、モータ駆動部11による絞り10に対する制御と組み合わせて被写界深度外となるように制御することもできる。   In the above description, the position of the focus lens 8 is moved so that the position of the subject focused by the initial autofocus processing is outside the depth of field. It can also be controlled to be outside the depth of field in combination with the control for.

次に、図5(b)のフローチャートに示す第2のレンズ位置移動処理について説明する。この場合、コントラストAF処理により被写体(檻やネット)にフォーカスが合うようにフォーカスレンズ8の位置が求められると、この時の被写体までの距離をレンズ位置をもとに算出する(ステップD1)。   Next, the second lens position movement process shown in the flowchart of FIG. In this case, when the position of the focus lens 8 is obtained so that the subject (the eyelid or the net) is focused by the contrast AF process, the distance to the subject at this time is calculated based on the lens position (step D1).

そして、被写体までの距離の所定倍数、例えば1.5倍の距離に位置する被写体にフォーカスを合わせるためのレンズ移動量を算出し(ステップD2)、この算出したレンズ移動量に応じてフォーカスレンズ8を移動させる(ステップD3)。   Then, a lens movement amount for focusing on a subject located at a predetermined multiple of the distance to the subject, for example, 1.5 times the distance is calculated (step D2), and the focus lens 8 is calculated according to the calculated lens movement amount. Is moved (step D3).

第2のレンズ位置移動処理では、カメラ装置1から被写体(檻など)までの距離に応じて、予め決められた所定倍数の距離にフォーカスが合うように固定的にフォーカスレンズ8を移動させることで、初めオートフォーカス処理によってフォーカスが合った被写体(檻など)より遠距離側に位置している、本来、撮影しようとしている被写体(檻内の動物など)にフォーカスを合わせることができる。   In the second lens position movement process, the focus lens 8 is fixedly moved so that the distance is a predetermined multiple of a predetermined distance in accordance with the distance from the camera device 1 to the subject (eg, eyelid). First, it is possible to focus on a subject (such as an animal in a cage) that is originally intended to be photographed, which is located farther than a subject (such as a kite) that is initially focused by autofocus processing.

なお、前述した第2のレンズ位置移動処理では、被写体の距離に対して1.5倍の距離にフォーカスを合わせるものとしているが、この被写体までの距離に対する倍数を、モード設定などにおいて予めユーザが任意に指定できるようにしても良い。例えば、予め用意された倍数として、1.5倍、2倍、3倍…を用意しておき、この中からユーザによるキー入力部37(カーソルキー)の操作によって選択させる。これにより、檻やネットの位置と、撮影しようとしている被写体(檻内の動物やネット越しにいる選手など)との位置関係に応じて、最適な倍率を設定することで、より良好にフォーカスを合わせることができる。   In the second lens position movement process described above, the focus is adjusted to a distance that is 1.5 times the distance of the subject. It may be arbitrarily specified. For example, 1.5 times, 2 times, 3 times, etc. are prepared as multiples prepared in advance, and are selected by operating the key input unit 37 (cursor key) by the user. This makes it possible to focus more favorably by setting the optimal magnification according to the positional relationship between the position of the kite or net and the subject to be photographed (such as an animal in the kite or a player over the net). Can be matched.

このようにして、第2実施形態のカメラ装置1では、例えば動物園などで檻の中の動物を撮像したり、野球場などでネット越しに被写体(選手)を撮像するような場合に、檻やネットを被写体として合焦させた後、フォーカスレンズが合焦された被写体よりも遠距離側の位置、すなわち檻の中の動物やネット越しの選手がいる位置にフォーカスが合うようにフォーカスレンズを所定量移動させることで、檻内の動物やネット越しの選手などに良好にフォーカスを合わせて画像を撮影することができる。   In this way, in the camera device 1 of the second embodiment, for example, when taking an image of an animal in a cage at a zoo or when imaging a subject (player) over the net at a baseball field or the like, After focusing on the net as the subject, place the focus lens so that the focus lens is in a position farther away than the subject on which the focus lens is focused, i.e., where there are animals in the cage or players over the net. By moving the fixed amount, it is possible to take an image with a good focus on animals in the cage or players over the net.

なお、前述した第2実施形態では、コントラストAF方式を用いているが、移相差AF方式、アクティブ側距AF方式など、その他のAF方式を用いることができる。この場合、AF処理で求められる被写体までの距離を用いてレンズ位置移動処理を実行することができる。   In the second embodiment described above, the contrast AF method is used, but other AF methods such as a phase shift AF method and an active side distance AF method can be used. In this case, the lens position moving process can be executed using the distance to the subject obtained by the AF process.

(第3実施形態)
次に、第3実施形態について説明する。第3実施形態では、第1実施形態と第2実施形態とを組み合わせたもので、第1実施形態における第2のコントラストAF処理によって被写体(檻やネットよりも遠くに位置している被写体)にフォーカスを合わせられない場合に、第2実施形態によるオートフォーカスの方法を用いる。
(Third embodiment)
Next, a third embodiment will be described. In the third embodiment, the first embodiment and the second embodiment are combined, and a subject (a subject located farther than the eyelids or the net) is subjected to the second contrast AF process in the first embodiment. When focus cannot be achieved, the autofocus method according to the second embodiment is used.

図7は、第3実施形態において、ユーザが撮影モード切り換えキーを操作することによりケージ撮影モードを設定したときの制御部25による画像撮影処理手順を示すフローチャートである。なお、図7において、ステップE1〜ステップE17は、第1実施形態におけるステップA1〜A17と同様の処理を実行するものとして説明を省略する。   FIG. 7 is a flowchart showing an image shooting processing procedure by the control unit 25 when the user sets the cage shooting mode by operating the shooting mode switching key in the third embodiment. In FIG. 7, step E1 to step E17 are not described because they are the same as steps A1 to A17 in the first embodiment.

ステップE17において、フォーカスレンズ8をレンズ端まで移動させる間に所定値以上のコントラスト値のピークが検出されなかった場合、制御部25は、第1のコントラストAF処理によって検出されたコントラスト値がピークとなるレンズ位置よりも遠距離側にフォーカスが合うように、フォーカスレンズ8を所定量移動させるためのレンズ位置移動処理を実行することで、オートフォーカス処理を完了する(ステップE18,E20)。レンズ位置移動処理については、前述した第2実施形態と同様にして実行する。   In step E17, when the peak of the contrast value equal to or greater than the predetermined value is not detected while moving the focus lens 8 to the lens end, the control unit 25 determines that the contrast value detected by the first contrast AF process is the peak. The autofocus process is completed by executing a lens position moving process for moving the focus lens 8 by a predetermined amount so that the focus is on the far side from the lens position (steps E18 and E20). The lens position movement process is executed in the same manner as in the second embodiment described above.

一方、第2のコントラストAF処理によってコントラスト値がピークとなるレンズ位置が検出されると(ステップE16、Yes)、制御部25は、第2のコントラストAF処理によって検出されたレンズ位置にフォーカスレンズ8を移動させてオートフォーカス処理を完了する(ステップE19,E20)。   On the other hand, when the lens position where the contrast value reaches a peak is detected by the second contrast AF process (step E16, Yes), the control unit 25 moves the focus lens 8 to the lens position detected by the second contrast AF process. To complete the autofocus process (steps E19 and E20).

ここで、制御部25は、シャッターボタンの半押しが継続されているか否かを判別し、半押しが継続している場合には、シャッターボタンが全押しされるまで待機する(ステップE22、Yes)。   Here, the control unit 25 determines whether or not the half-press of the shutter button is continued. If the half-press is continued, the control unit 25 waits until the shutter button is fully pressed (step E22, Yes). ).

また、シャッターボタンが全押しされた場合は(ステップE21、Yes)、制御部25は、画撮撮影処理を実行し(ステップE23)、撮影画像の静止画ファイルを生成し、例えばメモリカード32に記録する。   If the shutter button is fully pressed (step E21, Yes), the control unit 25 executes image shooting processing (step E23), generates a still image file of the shot image, and stores it in the memory card 32, for example. Record.

このようにして、第3実施形態のカメラ装置1では、例えば動物園などで檻の中の動物を撮像したり、野球場などでネット越しに被写体(選手)を撮像するような場合に、檻やネットを第1の被写体として合焦させた後、この第1の被写体の部分をマスクして、再度、被写体に合焦させようとした際に、フォーカス位置が特定できない場合であっても、フォーカスレンズが合焦された被写体よりも遠距離側の位置、すなわち檻の中の動物やネット越しの選手がいる位置の方向にフォーカスが合うようにフォーカスレンズを所定量移動させることで、檻の中の動物やネット越しの選手などに良好にフォーカスを合わせて画像を撮影することができる。   In this way, with the camera device 1 of the third embodiment, for example, when taking an image of an animal in a cage at a zoo or when imaging a subject (player) over the net at a baseball field or the like, Even if the focus position cannot be specified when trying to focus on the subject again after masking the portion of the first subject after focusing the net as the first subject, the focus By moving the focus lens by a predetermined amount so that the focus is in the direction of the far side of the subject where the lens is focused, i.e., the position of the animal in the cage or the player over the net, You can take images with good focus on animals and players over the net.

なお、本発明の撮像装置は、前述した各実施形態において説明したカメラ装置1に限定されるものではなく、撮影機能を有した携帯電話機、時計、PDA(personal digital assistant)、静止画撮像機能付きビデオカメラ、カメラ付きパーソナルコンピュータ等、AF機能付きの撮像装置を搭載した装置に適用することができる。   Note that the imaging apparatus of the present invention is not limited to the camera apparatus 1 described in each of the above-described embodiments, but includes a mobile phone having a photographing function, a watch, a PDA (personal digital assistant), and a still image imaging function. The present invention can be applied to a device equipped with an imaging device with an AF function, such as a video camera or a personal computer with a camera.

本発明の実施の形態におけるカメラ装置1(撮像装置)の詳細な構成を示すブロック図。The block diagram which shows the detailed structure of the camera apparatus 1 (imaging apparatus) in embodiment of this invention. 第1実施形態におけるケージ撮影モードを設定したときの制御部25による画像撮影処理手順を示すフローチャート。The flowchart which shows the image imaging processing procedure by the control part 25 when the cage imaging | photography mode in 1st Embodiment is set. 第1実施形態を説明するための課画像の一例を示す図。The figure which shows an example of the section image for demonstrating 1st Embodiment. 第2実施形態におけるケージ撮影モードを設定したときの制御部25による画像撮影処理手順を示すフローチャート。The flowchart which shows the image imaging processing procedure by the control part 25 when the cage imaging mode in 2nd Embodiment is set. 第2実施形態におけるレンズ位置移動処理について説明するためのフローチャート。9 is a flowchart for explaining lens position movement processing in the second embodiment. 第2実施形態におけるレンズ位置の移動を説明するための図。The figure for demonstrating the movement of the lens position in 2nd Embodiment. 第3実施形態におけるケージ撮影モードを設定したときの制御部25による画像撮影処理手順を示すフローチャート。The flowchart which shows the image imaging processing procedure by the control part 25 when the cage imaging | photography mode in 3rd Embodiment is set.

符号の説明Explanation of symbols

1…カメラ装置、8…フォーカスレンズ、9…ズームレンズ、10…絞り、11…モータ駆動部、12…CCD、13…タイミング発生器(TG)、14…垂直ドライバ、15…サンプルホールド回路(S/H)、16…A/D変換器、17…カラープロセス回路、18…DMAコントローラ、20…DRAMインタフェース(I/F)、21…DRAM、25…制御部、26…VRAMコントローラ、27…VRAM、28…デジタルビデオエンコーダ、29…表示部、30…画像処理部、32…メモリカード、33…内蔵メモリ、37…キー入力部、40…音声処理部、41…ストロボ駆動部、42…マイクロホン部(MIC)、43…スピーカ部(SP)、45…ストロボ発光部。   DESCRIPTION OF SYMBOLS 1 ... Camera device, 8 ... Focus lens, 9 ... Zoom lens, 10 ... Diaphragm, 11 ... Motor drive part, 12 ... CCD, 13 ... Timing generator (TG), 14 ... Vertical driver, 15 ... Sample hold circuit (S / H), 16 ... A / D converter, 17 ... color process circuit, 18 ... DMA controller, 20 ... DRAM interface (I / F), 21 ... DRAM, 25 ... control unit, 26 ... VRAM controller, 27 ... VRAM 28 ... Digital video encoder, 29 ... Display unit, 30 ... Image processing unit, 32 ... Memory card, 33 ... Built-in memory, 37 ... Key input unit, 40 ... Audio processing unit, 41 ... Strobe drive unit, 42 ... Microphone unit (MIC), 43 ... Speaker unit (SP), 45 ... Strobe light emitting unit.

Claims (7)

フォーカスレンズを介して入射される被写体の画像を撮像する撮像手段と、
前記フォーカスレンズを第1の被写体に合焦させる位置に移動させる第1のオートフォーカス手段と、
前記第1のオートフォーカス手段により前記フォーカスレンズが前記第1の被写体に合焦させた時の画像中から前記第1の被写体に相当する部分をマスクするマスク手段と、
前記マスク手段によりマスクが施された画像を対象として、前記フォーカスレンズを第2の被写体に合焦させる位置に移動させる第2のオートフォーカス手段と
を具備したことを特徴とする撮像装置。
An image pickup means for picking up an image of a subject incident through the focus lens;
First autofocus means for moving the focus lens to a position for focusing on the first subject;
Mask means for masking a portion corresponding to the first subject from an image when the focus lens is focused on the first subject by the first autofocus means;
An image pickup apparatus comprising: second autofocus means for moving the focus lens to a position for focusing the second object on an image masked by the mask means.
フォーカスレンズを介して入射される被写体の画像を撮像する撮像手段と、
前記フォーカスレンズを被写体に合焦させる位置に移動させる第1のオートフォーカス手段と、
前記第1のオートフォーカス手段により前記フォーカスレンズが合焦された前記被写体よりも遠距離側の位置にフォーカスが合うように、前記フォーカスレンズを所定量移動させる第2のオートフォーカス手段と
を具備したことを特徴とする撮像装置。
An image pickup means for picking up an image of a subject incident through the focus lens;
First autofocus means for moving the focus lens to a position for focusing on the subject;
A second autofocus unit that moves the focus lens by a predetermined amount so that the focus lens is in a position farther than the subject on which the focus lens is focused by the first autofocus unit; An imaging apparatus characterized by that.
前記第2のオートフォーカス手段は、前記被写体が被写界深度外となるように前記フォーカスレンズを移動させることを特徴とする請求項2記載の撮像装置。   The imaging apparatus according to claim 2, wherein the second autofocus unit moves the focus lens so that the subject is outside the depth of field. 前記第2のオートフォーカス手段は、前記被写体までの距離に対する予め決められた所定倍数の距離に合焦するように前記フォーカスレンズを移動させることを特徴とする請求項2記載の撮像装置。   The imaging apparatus according to claim 2, wherein the second autofocus unit moves the focus lens so as to focus on a predetermined multiple of a distance to the subject. フォーカスレンズを介して入射される被写体の画像を撮像する撮像手段と、
前記フォーカスレンズを第1の被写体に合焦させる位置に移動させる第1のオートフォーカス手段と、
前記第1のオートフォーカス手段により前記フォーカスレンズが前記第1の被写体に合焦させた時の画像中から前記第1の被写体に相当する部分をマスクするマスク手段と、
前記マスク手段によりマスクが施された画像を対象として、前記フォーカスレンズを第2の被写体に合焦させる位置に移動させる第2のオートフォーカス手段と、
前記第2のオートフォーカス手段により前記第2の被写体に合焦させる位置に移動できない場合に、前記フォーカスレンズが合焦された前記第1の被写体よりも遠距離側の位置にフォーカスが合うように、前記フォーカスレンズを所定量移動させる第3のオートフォーカス手段と
を具備したことを特徴とする撮像装置。
An image pickup means for picking up an image of a subject incident through the focus lens;
First autofocus means for moving the focus lens to a position for focusing on the first subject;
Mask means for masking a portion corresponding to the first subject from an image when the focus lens is focused on the first subject by the first autofocus means;
Second autofocus means for moving the focus lens to a position for focusing the second subject on the image masked by the mask means;
When the second autofocus means cannot move to a position where the second subject is focused, the focus lens is focused on a position on the far side from the focused first subject. An image pickup apparatus comprising: a third autofocus means for moving the focus lens by a predetermined amount.
フォーカスレンズを介して入射される被写体の画像を撮像する撮像ステップと、
前記フォーカスレンズを第1の被写体に合焦させる位置に移動させる第1のオートフォーカスステップと、
前記第1のオートフォーカスステップにより前記フォーカスレンズが前記第1の被写体に合焦させた時の画像中から前記第1の被写体に相当する部分をマスクするマスクステップと、
前記マスクステップによりマスクが施された画像を対象として、前記フォーカスレンズを第2の被写体に合焦させる位置に移動させる第2のオートフォーカスステップと
を含むことを特徴とするオートフォーカス制御方法。
An imaging step of capturing an image of a subject incident through the focus lens;
A first autofocus step for moving the focus lens to a position for focusing on the first subject;
A masking step of masking a portion corresponding to the first subject from an image when the focus lens is focused on the first subject by the first autofocusing step;
And a second autofocus step of moving the focus lens to a position for focusing the second subject on the image masked by the mask step.
撮像装置に搭載されるコンピュータを、
フォーカスレンズを介して入射される被写体の画像を撮像する撮像手段と、
前記フォーカスレンズを第1の被写体に合焦させる位置に移動させる第1のオートフォーカス手段と、
前記第1のオートフォーカス手段により前記フォーカスレンズが前記第1の被写体に合焦させた時の画像中から前記第1の被写体に相当する部分をマスクするマスク手段と、
前記マスク手段によりマスクが施された画像を対象として、前記フォーカスレンズを第2の被写体に合焦させる位置に移動させる第2のオートフォーカス手段として機能させることを特徴とするオートフォーカス制御プログラム。
The computer installed in the imaging device
An image pickup means for picking up an image of a subject incident through the focus lens;
First autofocus means for moving the focus lens to a position for focusing on the first subject;
Mask means for masking a portion corresponding to the first subject from an image when the focus lens is focused on the first subject by the first autofocus means;
An autofocus control program for causing an image masked by the mask means to function as a second autofocus means for moving the focus lens to a position for focusing on a second subject.
JP2005062526A 2005-03-07 2005-03-07 Imaging apparatus, autofocus control method, and autofocus control program Expired - Fee Related JP4591120B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005062526A JP4591120B2 (en) 2005-03-07 2005-03-07 Imaging apparatus, autofocus control method, and autofocus control program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005062526A JP4591120B2 (en) 2005-03-07 2005-03-07 Imaging apparatus, autofocus control method, and autofocus control program

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2010064296A Division JP2010152395A (en) 2010-03-19 2010-03-19 Imaging apparatus, autofocus control method, and autofocus control program

Publications (3)

Publication Number Publication Date
JP2006243636A true JP2006243636A (en) 2006-09-14
JP2006243636A5 JP2006243636A5 (en) 2008-04-17
JP4591120B2 JP4591120B2 (en) 2010-12-01

Family

ID=37050070

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005062526A Expired - Fee Related JP4591120B2 (en) 2005-03-07 2005-03-07 Imaging apparatus, autofocus control method, and autofocus control program

Country Status (1)

Country Link
JP (1) JP4591120B2 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011154194A (en) * 2010-01-27 2011-08-11 Nikon Corp Imaging apparatus
JP2011158567A (en) * 2010-01-29 2011-08-18 Casio Computer Co Ltd Image processing device, method and program
JP2012155000A (en) * 2011-01-24 2012-08-16 Casio Comput Co Ltd Image processing system and image processing method and program
JP2016014739A (en) * 2014-07-01 2016-01-28 株式会社ソシオネクスト Surface detection method, surface detection device and imaging apparatus

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6004768B2 (en) 2012-06-14 2016-10-12 キヤノン株式会社 Signal processing apparatus, signal processing method and program for focus detection, and imaging apparatus having focus detection apparatus

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59204811A (en) * 1983-05-09 1984-11-20 Mitsubishi Electric Corp Automatic focus control device
JPS6359275A (en) * 1986-08-29 1988-03-15 Victor Co Of Japan Ltd Automatic focusing device
JPH02243070A (en) * 1989-03-15 1990-09-27 Sanyo Electric Co Ltd Automatic focus camera
JPH04329078A (en) * 1991-04-30 1992-11-17 Matsushita Electric Ind Co Ltd Automatic focusing device
JPH06311415A (en) * 1993-04-23 1994-11-04 Nippon Philips Kk Automatic focusing device
JPH0738796A (en) * 1993-07-21 1995-02-07 Mitsubishi Electric Corp Automatic focusing device
JPH0954244A (en) * 1995-06-08 1997-02-25 Sony Corp Automatic focusing device
JP2001208963A (en) * 2000-01-27 2001-08-03 Hitachi Ltd Image pickup device provided with automatic focusing function
JP2002196226A (en) * 2000-12-26 2002-07-12 Casio Comput Co Ltd Imaging device, imaging method and recording medium
JP2004093776A (en) * 2002-08-30 2004-03-25 Nikon Corp Camera
JP2004317555A (en) * 2003-04-11 2004-11-11 Nitto Kogaku Kk Method for controlling optical system and control device

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59204811A (en) * 1983-05-09 1984-11-20 Mitsubishi Electric Corp Automatic focus control device
JPS6359275A (en) * 1986-08-29 1988-03-15 Victor Co Of Japan Ltd Automatic focusing device
JPH02243070A (en) * 1989-03-15 1990-09-27 Sanyo Electric Co Ltd Automatic focus camera
JPH04329078A (en) * 1991-04-30 1992-11-17 Matsushita Electric Ind Co Ltd Automatic focusing device
JPH06311415A (en) * 1993-04-23 1994-11-04 Nippon Philips Kk Automatic focusing device
JPH0738796A (en) * 1993-07-21 1995-02-07 Mitsubishi Electric Corp Automatic focusing device
JPH0954244A (en) * 1995-06-08 1997-02-25 Sony Corp Automatic focusing device
JP2001208963A (en) * 2000-01-27 2001-08-03 Hitachi Ltd Image pickup device provided with automatic focusing function
JP2002196226A (en) * 2000-12-26 2002-07-12 Casio Comput Co Ltd Imaging device, imaging method and recording medium
JP2004093776A (en) * 2002-08-30 2004-03-25 Nikon Corp Camera
JP2004317555A (en) * 2003-04-11 2004-11-11 Nitto Kogaku Kk Method for controlling optical system and control device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011154194A (en) * 2010-01-27 2011-08-11 Nikon Corp Imaging apparatus
JP2011158567A (en) * 2010-01-29 2011-08-18 Casio Computer Co Ltd Image processing device, method and program
JP2012155000A (en) * 2011-01-24 2012-08-16 Casio Comput Co Ltd Image processing system and image processing method and program
JP2016014739A (en) * 2014-07-01 2016-01-28 株式会社ソシオネクスト Surface detection method, surface detection device and imaging apparatus

Also Published As

Publication number Publication date
JP4591120B2 (en) 2010-12-01

Similar Documents

Publication Publication Date Title
JP4548156B2 (en) Camera device and automatic focus control method of camera device
JP4761146B2 (en) Imaging apparatus and program thereof
KR100821801B1 (en) Image capture apparatus and auto focus control method
KR101634247B1 (en) Digital photographing apparatus, mdthod for controlling the same
JP2007215091A (en) Imaging apparatus and program therefor
KR20120115127A (en) Image processing device capable of generating wide-range image
JP2007159088A (en) Imaging apparatus and method of controlling same
JP2008147966A (en) Imaging apparatus and its program
US7515816B2 (en) Imaging apparatus having a focus function
JP2011250340A (en) Imaging apparatus and control method of same
KR101630287B1 (en) Digital photographing apparatus and method for controlling the same
JP2017129828A (en) Imaging device and imaging method
JP4591120B2 (en) Imaging apparatus, autofocus control method, and autofocus control program
JP5896181B2 (en) Imaging apparatus, imaging control method, and program
JP2010087899A (en) Imaging apparatus, control method thereof, and program
JP2010152395A (en) Imaging apparatus, autofocus control method, and autofocus control program
JP4534250B2 (en) Movie imaging apparatus and program thereof
JP5962974B2 (en) Imaging apparatus, imaging method, and program
JP2006276262A (en) Photographing apparatus, interval photographing method, interval photographing program
JP4803375B2 (en) Imaging apparatus and program thereof
JP5448391B2 (en) Imaging apparatus and red-eye correction method
JP4899982B2 (en) Imaging apparatus, captured image recording method, and program
JP4771524B2 (en) Imaging apparatus and program thereof
JP5035433B2 (en) Imaging apparatus, interval imaging method, and program
JP5093376B2 (en) Imaging apparatus and program thereof

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080229

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20080229

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20091207

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100119

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100319

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100420

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100618

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100720

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100728

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: 20100817

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20100830

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130924

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 4591120

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees