JP2009086349A - Photographing device and photographing control method - Google Patents

Photographing device and photographing control method Download PDF

Info

Publication number
JP2009086349A
JP2009086349A JP2007256763A JP2007256763A JP2009086349A JP 2009086349 A JP2009086349 A JP 2009086349A JP 2007256763 A JP2007256763 A JP 2007256763A JP 2007256763 A JP2007256763 A JP 2007256763A JP 2009086349 A JP2009086349 A JP 2009086349A
Authority
JP
Japan
Prior art keywords
determined
outdoor
shooting environment
focus lens
photographing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2007256763A
Other languages
Japanese (ja)
Inventor
Takeshi Han
毅 潘
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.)
Fujifilm Corp
Original Assignee
Fujifilm Corp
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 Fujifilm Corp filed Critical Fujifilm Corp
Priority to JP2007256763A priority Critical patent/JP2009086349A/en
Publication of JP2009086349A publication Critical patent/JP2009086349A/en
Pending legal-status Critical Current

Links

Images

Landscapes

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

Abstract

<P>PROBLEM TO BE SOLVED: To predict a distance to a subject by detecting photographing environment and to perform focusing operation in a search direction in accordance with the predicted distance. <P>SOLUTION: Subject luminance is obtained (step S31) to decide whether or not the obtained subject luminance is larger than Lv10 (step S32). When the subject luminance is larger than Lv10, it is judged as a situation that the photographing environment is outdoor, and a focus lens is moved to an infinity end (step S33), then focusing operation is performed while moving the focus lens from the infinity end to a closest-distance side (step S34). When it is equal to or smaller than Lv10, it is judged as a situation that the photographing environment is indoor, and the focus lens 16 is moved to a closest-distance end (step S35) and focusing operation is performed while moving the focus lens to the infinity side (step S36). <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

本発明は撮影装置及び撮影制御方法に係り、特に撮影環境を検出することにより被写体までの距離を予測し、予測した距離に応じたサーチ方向で合焦動作を行う撮影装置及び撮影制御方法に関する。   The present invention relates to a photographing apparatus and a photographing control method, and more particularly, to a photographing apparatus and a photographing control method for predicting a distance to a subject by detecting a photographing environment and performing a focusing operation in a search direction according to the predicted distance.

自動で合焦動作を行う際、事前に被写***置を推定できないため、フォーカスレンズをあらかじめ決められた方向に移動させて合焦動作を行うと、合焦するまでの時間が長くなってしまう場合がある。例えば、遠い場所に被写体があるにもかかわらず近い場所から合焦動作を行うと、フォーカスレンズの移動距離が長くなり、合焦時間が長くなる。このような課題に対して、特許文献1においては、合焦動作開始時に任意方向にレンズを駆動し、コントラス値を探索して駆動方法を決定する装置について記載されている。また、特許文献2には、赤外線の出力レベルから撮影環境が室内か屋外かを判定し、室内であれば被写体に対して近い側を移動させ、屋外であれば被写体に対して遠い側を移動させて合焦動作を行う装置について記載されている。
特開平5−37841号公報 特開2005−283957号公報
When performing automatic focusing operation, the subject position cannot be estimated in advance, so if you move the focus lens in a predetermined direction and perform the focusing operation, it may take a long time to focus. is there. For example, when a focusing operation is performed from a near place even though a subject is in a far place, the moving distance of the focus lens becomes long and the focusing time becomes long. To deal with such a problem, Patent Document 1 describes an apparatus that drives a lens in an arbitrary direction at the start of a focusing operation, searches for a contrast value, and determines a driving method. Also, in Patent Document 2, it is determined whether the shooting environment is indoor or outdoor from the infrared output level, and if it is indoor, the side closer to the subject is moved, and if it is outdoor, the side far from the subject is moved. An apparatus for performing a focusing operation is described.
JP-A-5-37841 JP 2005-283957 A

しかしながら、特許文献1に記載の技術においては、合焦時のサーチ方向を判定するために探索を行なう必要があり、余分にサーチ時間がかかるという欠点があった。また、特許文献2に記載の技術においては、サーチ範囲を限定するために、室内か屋外かの判定を誤ったときに被写体を検出できず、合焦位置が見つからない場合があるという問題点があった。本発明はこのような事情に鑑みてなされたもので、被写体が存在する確率の高い方からサーチを開始することにより、合焦動作時間を短縮することができる撮影装置及び撮影制御方法を提供することを目的とする。   However, the technique described in Patent Document 1 has a drawback in that a search needs to be performed in order to determine the search direction at the time of focusing, and extra search time is required. In addition, the technique described in Patent Document 2 has a problem in that, in order to limit the search range, the subject cannot be detected when the determination of indoor or outdoor is wrong, and the in-focus position may not be found. there were. The present invention has been made in view of such circumstances, and provides a photographing apparatus and a photographing control method capable of shortening a focusing operation time by starting a search from a person having a high probability that a subject exists. For the purpose.

前記目的を達成するために請求項1に記載の撮影装置は、撮影レンズを介して受光した被写体の光学像を画像信号に変換する撮影手段と、フォーカスレンズを移動させながら前記画像信号に基づいて光学像のコントラストが最大となる合焦位置をサーチし、前記合焦位置にフォーカスレンズを移動させる自動合焦手段と、前記被写体の撮影環境が室外であるか室内であるかを判定する判定手段とを備え、前記自動合焦手段は、前記サーチ時に前記判定手段が撮影環境を室外であると判定した場合はフォーカスレンズを無限遠側から至近側へ移動させ、撮影環境を室内であると判定した場合はフォーカスレンズを至近側から無限遠側へ移動させることを特徴とする。   In order to achieve the above object, an imaging apparatus according to claim 1 is based on an imaging unit that converts an optical image of a subject received through an imaging lens into an image signal, and the image signal while moving a focus lens. Automatic focusing means for searching for a focus position where the contrast of the optical image is maximized and moving a focus lens to the focus position; and determination means for determining whether the photographing environment of the subject is outdoor or indoor The automatic focusing means moves the focus lens from the infinity side to the close side when the determination means determines that the shooting environment is outdoor during the search, and determines that the shooting environment is indoors In this case, the focus lens is moved from the closest side to the infinity side.

これにより、撮影環境を判断することにより被写体距離を予測し、被写体が存在する確率の高い方にサーチ方向を設定することで、AFサーチ時間を短縮することができる。   Thus, the AF search time can be shortened by predicting the subject distance by determining the shooting environment and setting the search direction to the higher probability that the subject exists.

請求項2に示すように請求項1に記載の撮影装置において、前記判定手段は被写体輝度を検出する明るさ検出手段を備え、前記明るさ検出手段が検出した被写体輝度が所定輝度以上の場合は撮影環境を室外と判定し、所定輝度未満の場合は撮影環境を室内と判定することを特徴とする。   According to a second aspect of the present invention, in the photographing apparatus according to the first aspect, the determination unit includes a brightness detection unit that detects a subject brightness, and the subject brightness detected by the brightness detection unit is equal to or higher than a predetermined brightness. It is characterized in that the shooting environment is determined to be outdoor, and that the shooting environment is determined to be indoor when the brightness is less than a predetermined luminance.

これにより、適切に撮影環境が室外であるか室内であるかを判定することができる。   Thereby, it can be determined appropriately whether the imaging environment is outdoor or indoor.

請求項3に示すように請求項2に記載の撮影装置において、前記所定輝度は、Lv9〜Lv11の間にあることを特徴とする。   According to a third aspect of the present invention, in the photographing apparatus according to the second aspect, the predetermined luminance is between Lv9 and Lv11.

これにより、適切に撮影環境が室外であるか室内であるかを判定することができる。   Thereby, it can be determined appropriately whether the imaging environment is outdoor or indoor.

請求項4に示すように請求項1に記載の撮影装置において、前記判定手段は色温度を検出する光源検出手段を備え、前記光源検出手段が検出した色温度が所定温度以上の場合は撮影環境を室外と判定し、所定温度未満の場合は撮影環境を室内と判定することを特徴とする。   According to a fourth aspect of the present invention, in the photographing apparatus according to the first aspect, the determination unit includes a light source detection unit that detects a color temperature. When the color temperature detected by the light source detection unit is equal to or higher than a predetermined temperature, a photographing environment is provided. Is determined to be outdoor, and when the temperature is lower than a predetermined temperature, the shooting environment is determined to be indoors.

これにより、適切に撮影環境が室外であるか室内であるかを判定することができる。   Thereby, it can be determined appropriately whether the imaging environment is outdoor or indoor.

請求項5に示すように請求項4に記載の撮影装置において、前記所定温度は、4500K〜5500K[ケルビン]の間であることを特徴とする。   According to a fifth aspect of the present invention, in the photographing apparatus according to the fourth aspect, the predetermined temperature is between 4500K and 5500K [Kelvin].

これにより、適切に撮影環境が室外であるか室内であるかを判定することができる。   Thereby, it can be determined appropriately whether the imaging environment is outdoor or indoor.

請求項6に示すように請求項1に記載の撮影装置において、前記判定手段はフリッカー光源を検出するフリッカー光源検出手段を備え、前記フリッカー光源検出手段がフリッカー光源を検出しない場合は撮影環境を室外と判定し、フリッカー光源を検出した場合は撮影環境を室内と判定することを特徴とする。   According to a sixth aspect of the present invention, in the photographing apparatus according to the first aspect, the determination unit includes a flicker light source detection unit that detects a flicker light source. When the flicker light source detection unit does not detect the flicker light source, If the flicker light source is detected, the shooting environment is determined to be indoors.

これにより、適切に撮影環境が室外であるか室内であるかを判定することができる。   Thereby, it can be determined appropriately whether the imaging environment is outdoor or indoor.

請求項7に示すように請求項1に記載の撮影装置において、前記判定手段は赤外線を検出する赤外線検出手段を備え、前記赤外線検出手段が検出した赤外線が所定量以上の場合は撮影環境を室外と判定し、所定量未満の場合は撮影環境を室内と判定することを特徴とする。   According to a seventh aspect of the present invention, in the photographing apparatus according to the first aspect, the determination unit includes an infrared detection unit that detects infrared rays. If the infrared ray detected by the infrared detection unit is greater than or equal to a predetermined amount, If the amount is less than the predetermined amount, the shooting environment is determined to be indoors.

これにより、適切に撮影環境が室外であるか室内であるかを判定することができる。   Thereby, it can be determined appropriately whether the imaging environment is outdoor or indoor.

請求項8に示すように請求項1に記載の撮影装置において、前記判定手段はGPSの受信感度を検出するGPS受信感度検出手段を備え、前記GPS受信感度検出手段が検出したGPS受信感度が所定値以上の場合は撮影環境を室外と判定し、所定値未満の場合は撮影環境を室内と判定することを特徴とする。   According to an eighth aspect of the present invention, in the photographing apparatus according to the first aspect, the determination unit includes a GPS reception sensitivity detection unit that detects a GPS reception sensitivity, and the GPS reception sensitivity detected by the GPS reception sensitivity detection unit is predetermined. If the value is greater than or equal to the value, the shooting environment is determined to be outdoor, and if the value is less than the predetermined value, the shooting environment is determined to be indoor.

これにより、適切に撮影環境が室外であるか室内であるかを判定することができる。   Thereby, it can be determined appropriately whether the imaging environment is outdoor or indoor.

請求項9に示すように請求項1に記載の撮影装置において、前記判定手段は、被写体輝度を検出する明るさ検出手段、色温度を検出する光源検出手段、フリッカー光源を検出するフリッカー光源検出手段、赤外線を検出する赤外線検出手段、GPSの受信感度を検出するGPS受信感度検出手段、のうち複数の検出手段を備え、前記複数の検出手段の検出結果に応じて前記被写体の撮影環境が室外であるか室内であるかを判定することを特徴とする。   9. The photographing apparatus according to claim 1, wherein the determination unit includes a brightness detection unit that detects subject luminance, a light source detection unit that detects a color temperature, and a flicker light source detection unit that detects a flicker light source. A plurality of detection means among infrared detection means for detecting infrared rays and GPS reception sensitivity detection means for detecting GPS reception sensitivity, and the shooting environment of the subject is outdoors depending on the detection results of the plurality of detection means It is characterized by determining whether it is indoor or indoor.

これにより、適切に撮影環境が室外であるか室内であるかを判定することができる。   Thereby, it can be determined appropriately whether the imaging environment is outdoor or indoor.

前記目的を達成するために請求項10に記載の撮影制御方法は、撮影レンズを介して受光した被写体の光学像を画像信号に変換する撮影工程と、フォーカスレンズを移動させな
がら前記画像信号に基づいて光学像のコントラストが最大となる合焦位置をサーチし、前記合焦位置にフォーカスレンズを移動させる自動合焦工程と、前記被写体の撮影環境が室外であるか室内であるかを判定する判定工程とを備え、前記自動合焦工程は、前記サーチ時に前記判定工程で撮影環境を室外であると判定した場合はフォーカスレンズを無限遠側から至近側へ移動させ、撮影環境を室内であると判定した場合はフォーカスレンズを至近側から無限遠側へ移動させることを特徴とする。
In order to achieve the object, an imaging control method according to claim 10 is based on an imaging process for converting an optical image of a subject received through an imaging lens into an image signal, and the image signal while moving a focus lens. Search for the in-focus position where the contrast of the optical image is maximized, and move the focus lens to the in-focus position, and determine whether the subject shooting environment is outdoor And the automatic focusing step moves the focus lens from the infinity side to the closest side when the determination step determines that the shooting environment is outdoor during the search, and the shooting environment is indoors When the determination is made, the focus lens is moved from the closest side to the infinity side.

これにより、撮影環境を判断することにより被写体までの距離を予測し、被写体が存在する確率の高い方にサーチ方向を設定することで、AFサーチ時間を短縮することができる。   Thus, the AF search time can be shortened by determining the shooting environment by predicting the distance to the subject and setting the search direction to the higher probability that the subject exists.

本発明によれば、撮影環境を判断することより被写体距離を予測し、被写体が存在する確率の高い方にサーチ方向を設定することで、AFサーチ時間を短縮することができる撮影装置及び撮影制御方法を提供することができる。   According to the present invention, an imaging apparatus and an imaging control capable of shortening an AF search time by predicting an object distance by determining an imaging environment and setting a search direction to a higher probability that an object exists. A method can be provided.

以下、添付図面に従って本発明を実施するための最良の形態について説明する。   The best mode for carrying out the present invention will be described below with reference to the accompanying drawings.

<第1の実施の形態>
図1は、本発明が適用されたデジタルカメラの第1の実施の形態の電気的構成を示すブロック図である。
<First Embodiment>
FIG. 1 is a block diagram showing an electrical configuration of a first embodiment of a digital camera to which the present invention is applied.

同図に示すように、本実施の形態のデジタルカメラ10は、CPU11、操作部12、ズームレンズ用モータドライバ13、ズームレンズ14、フォーカスレンズ用モータドライバ15、フォーカスレンズ16、手ブレ補正制御部17、手ブレ補正レンズ18、タイミングジェネレータ19、CCDドライバ20、CCD21、アナログ信号処理部22、A/D変換器23、画像入力コントローラ24、画像信号処理回路25、圧縮処理回路26、ビデオエンコーダ27、画像表示装置28、バス29、メディアコントローラ30、記録メディア31、メモリ(SDRAM)32、AF検出回路33、AE検出回路34等を備えて構成される。   As shown in the figure, the digital camera 10 of the present embodiment includes a CPU 11, an operation unit 12, a zoom lens motor driver 13, a zoom lens 14, a focus lens motor driver 15, a focus lens 16, and a camera shake correction control unit. 17, camera shake correction lens 18, timing generator 19, CCD driver 20, CCD 21, analog signal processing unit 22, A / D converter 23, image input controller 24, image signal processing circuit 25, compression processing circuit 26, video encoder 27 , An image display device 28, a bus 29, a media controller 30, a recording medium 31, a memory (SDRAM) 32, an AF detection circuit 33, an AE detection circuit 34, and the like.

各部はCPU11に制御されて動作し、CPU11は、操作部12からの入力に基づき所定の制御プログラムを実行することにより、デジタルカメラ10の各部を制御する。   Each unit operates under the control of the CPU 11, and the CPU 11 controls each unit of the digital camera 10 by executing a predetermined control program based on an input from the operation unit 12.

CPU11はプログラムROMを内蔵しており、このプログラムROMにはCPU11が実行する制御プログラムのほか、制御に必要な各種データ等が記録されている。CPU11は、このプログラムROMに記録された制御プログラムをメモリ32に読み出し、逐次実行することにより、デジタルカメラ10の各部を制御する。   The CPU 11 has a built-in program ROM, in which various data necessary for control are recorded in addition to the control program executed by the CPU 11. The CPU 11 controls each unit of the digital camera 10 by reading the control program recorded in the program ROM into the memory 32 and sequentially executing the program.

なお、このメモリ32は、プログラムの実行処理領域として利用されるほか、画像データ等の一時記憶領域、各種作業領域として利用される。   The memory 32 is used as a program execution processing area, a temporary storage area for image data, and various work areas.

操作部12は、電源スイッチやレリーズボタン、撮影モードダイヤル、手ブレ補正スイッチ等のカメラの一般的な操作手段を含み、操作に応じた信号をCPU11に出力する。   The operation unit 12 includes general camera operation means such as a power switch, a release button, a shooting mode dial, and a camera shake correction switch, and outputs a signal corresponding to the operation to the CPU 11.

フォーカスレンズ16は、フォーカス用モータドライバ15に駆動されて、ズームレンズ14の光軸上を前後移動する。CPU11は、フォーカス用モータドライバ15を介してフォーカスレンズ16の移動を制御し、フォーカシングを行う。   The focus lens 16 is driven by the focus motor driver 15 to move back and forth on the optical axis of the zoom lens 14. The CPU 11 controls the movement of the focus lens 16 via the focus motor driver 15 to perform focusing.

ズームレンズ14は、ズームレンズ用モータドライバ13に駆動されて、フォーカスレンズ16の光軸上を前後移動する。CPU11は、ズームレンズ用モータドライバ13を介してズームレンズ14の移動を制御し、ズーミングを行う。   The zoom lens 14 is driven by the zoom lens motor driver 13 to move back and forth on the optical axis of the focus lens 16. The CPU 11 controls the movement of the zoom lens 14 via the zoom lens motor driver 13 to perform zooming.

手ブレ補正レンズ18は、レンズ面内の直交する2つの方向それぞれに手ブレを打ち消すように手ブレ補正制御部17により制御され、ズームレンズ14、及びフォーカスレンズ16を介した被写体像の手ブレを補正し、手ブレ補正後の被写体像をCCD21へ透過させる。   The camera shake correction lens 18 is controlled by the camera shake correction control unit 17 so as to cancel the camera shake in each of two orthogonal directions within the lens surface, and the camera shake of the subject image via the zoom lens 14 and the focus lens 16 is controlled. And the subject image after the camera shake correction is transmitted to the CCD 21.

CCD21は、手ブレ補正レンズ18の後段に配置されており、手ブレ補正レンズ18を透過した被写体光を受光する。CCD21は、周知のように多数の受光素子がマトリクス状に配列された受光面を備えている。補正レンズ18を透過した被写体光は、このCCD21の受光面上に結像され、各受光素子によって電気信号に変換される。   The CCD 21 is disposed after the camera shake correction lens 18 and receives subject light transmitted through the camera shake correction lens 18. As is well known, the CCD 21 has a light receiving surface on which a large number of light receiving elements are arranged in a matrix. The subject light that has passed through the correction lens 18 is imaged on the light receiving surface of the CCD 21 and converted into an electrical signal by each light receiving element.

このCCD21は、タイミングジェネレータ19からCCDドライバ20を介して供給される垂直転送クロック及び水平転送クロックに同期して、各画素に蓄積された電荷を1ラインずつシリアルな画像信号として出力する。CPU11は、タイミングジェネレータ19を制御して、CCD21の駆動を制御する。   The CCD 21 outputs the charge accumulated in each pixel as a serial image signal line by line in synchronization with the vertical transfer clock and horizontal transfer clock supplied from the timing generator 19 via the CCD driver 20. The CPU 11 controls the timing generator 19 to control the driving of the CCD 21.

なお、各画素の電荷蓄積時間(露出時間)は、タイミングジェネレータ19から与えられる電子シャッタ駆動信号によって決められる。CPU11は、タイミングジェネレータ19に対して電荷蓄積時間を指示する。   Note that the charge accumulation time (exposure time) of each pixel is determined by an electronic shutter drive signal given from the timing generator 19. The CPU 11 instructs the timing generator 19 on the charge accumulation time.

また、画像信号の出力は、デジタルカメラ10が撮影モードにセットされると開始される。すなわち、デジタルカメラ10が撮影モードにセットされると、画像表示装置28にスルー画像を表示するため、画像信号の出力が開始される。このスルー画像用の画像信号の出力は、本撮影の指示が行われると、一旦停止され、本撮影が終了すると、再度開始される。   The output of the image signal is started when the digital camera 10 is set to the shooting mode. That is, when the digital camera 10 is set to the photographing mode, output of an image signal is started to display a through image on the image display device 28. The output of the image signal for the through image is temporarily stopped when the instruction for the main photographing is given, and is started again when the main photographing is finished.

CCD21から出力される画像信号は、アナログ信号であり、このアナログの画像信号は、アナログ信号処理部22に取り込まれる。   The image signal output from the CCD 21 is an analog signal, and this analog image signal is taken into the analog signal processing unit 22.

アナログ信号処理部22は、相関二重サンプリング回路(CDS)、及び自動ゲインコントロール回路(AGC)を含んで構成される。CDSは、画像信号に含まれるノイズの除去を行い、AGCは、ノイズ除去された画像信号を所定のゲインで増幅する。このアナログ信号処理部22で所要の信号処理が施されたアナログの画像信号は、A/D変換器23に取り込まれる。   The analog signal processing unit 22 includes a correlated double sampling circuit (CDS) and an automatic gain control circuit (AGC). The CDS removes noise contained in the image signal, and the AGC amplifies the noise-removed image signal with a predetermined gain. The analog image signal subjected to the required signal processing by the analog signal processing unit 22 is taken into the A / D converter 23.

A/D変換器23は、取り込んだアナログの画像信号を所定ビットの階調幅を持ったデジタルの画像信号に変換する。この画像信号は、いわゆるRAWデータであり、画素ごとR、G、Bの濃度を示す階調値を有している。   The A / D converter 23 converts the captured analog image signal into a digital image signal having a gradation width of a predetermined bit. This image signal is so-called RAW data, and has a gradation value indicating the density of R, G, and B for each pixel.

画像入力コントローラ24は、所定容量のラインバッファを内蔵しており、A/D変換器23から出力された1コマ分の画像信号を蓄積する。この画像入力コントローラ24に蓄積された1コマ分の画像信号は、バス29を介してメモリ32に格納される。   The image input controller 24 has a built-in line buffer with a predetermined capacity, and stores the image signal for one frame output from the A / D converter 23. The image signal for one frame accumulated in the image input controller 24 is stored in the memory 32 via the bus 29.

バス29には、上記CPU11、メモリ32、画像入力コントローラ24のほか、画像信号処理回路25、圧縮処理回路26、ビデオエンコーダ27、メディアコントローラ30、AF検出回路33、AE検出回路34等が接続されており、これらはバス29を介して互いに情報を送受信できるようにされている。   In addition to the CPU 11, memory 32, and image input controller 24, the image signal processing circuit 25, compression processing circuit 26, video encoder 27, media controller 30, AF detection circuit 33, AE detection circuit 34, etc. are connected to the bus 29. These are configured to be able to transmit and receive information to and from each other via a bus 29.

メモリ32に格納された1コマ分の画像信号は、点順次(画素の順番)に画像信号処理回路25に取り込まれる。   The image signal for one frame stored in the memory 32 is taken into the image signal processing circuit 25 in a dot sequence (pixel order).

画像信号処理回路25は、点順次に取り込んだR、G、Bの各色の画像信号に対して所定の信号処理を施し、輝度信号Yと色差信号Cr、Cbとからなる画像信号(Y/C信号)を生成する。   The image signal processing circuit 25 performs predetermined signal processing on the image signals of R, G, and B colors captured in a dot-sequential manner, and outputs an image signal (Y / C) composed of a luminance signal Y and color difference signals Cr, Cb Signal).

AF検出回路33は、CPU11の指令に従い、画像入力コントローラ24を介してメモリ32に格納されたR、G、Bの画像信号を取り込み、AF(Automatic Focus)制御に必要な焦点評価値を算出する。このAF検出回路33は、G信号の高周波成分のみを通過させるハイパスフィルタ、絶対値化処理部、画面に設定された所定のフォーカス領域内の信号を切り出すフォーカス領域抽出部、及び、フォーカス領域内の絶対値データを積算する積算部を含み、この積算部で積算されたフォーカス領域内の絶対値データを焦点評価値としてCPU11に出力する。CPU11は、AF制御時、このAF検出回路33から出力される焦点評価値が極大となる位置をサーチし、その位置にフォーカスレンズ16を移動させることにより、主要被写体への焦点合わせを行う。後述するように、このフォーカスレンズ16の移動方向は、判定された撮影環境に応じて至近側から無限遠側、又は無限遠側から至近側のいずれかが選択される。   The AF detection circuit 33 fetches R, G, B image signals stored in the memory 32 via the image input controller 24 in accordance with a command from the CPU 11 and calculates a focus evaluation value necessary for AF (Automatic Focus) control. . The AF detection circuit 33 includes a high-pass filter that passes only a high-frequency component of the G signal, an absolute value processing unit, a focus region extraction unit that extracts a signal within a predetermined focus region set on the screen, and a focus region An integration unit for integrating the absolute value data is included, and the absolute value data in the focus area integrated by the integration unit is output to the CPU 11 as a focus evaluation value. During the AF control, the CPU 11 searches for a position where the focus evaluation value output from the AF detection circuit 33 is maximized, and moves the focus lens 16 to that position, thereby performing focusing on the main subject. As will be described later, the moving direction of the focus lens 16 is selected from the closest side to the infinity side or from the infinity side to the close side according to the determined shooting environment.

AE検出回路34は、CPU11の指令に従い、画像入力コントローラ24を介してメモリ32に格納されたR、G、Bの画像信号を取り込み、AE制御に必要な積算値を算出する。CPU11は、積算値から輝度値を算出し、輝度値から露出値を求める。また露出値から所定のプログラム線図に従って、絞り値及びシャッタ速度を決定する。   The AE detection circuit 34 takes in R, G, and B image signals stored in the memory 32 via the image input controller 24 in accordance with a command from the CPU 11 and calculates an integrated value necessary for AE control. The CPU 11 calculates a luminance value from the integrated value and obtains an exposure value from the luminance value. Further, the aperture value and the shutter speed are determined from the exposure value according to a predetermined program diagram.

圧縮処理回路26は、CPU11からの圧縮指令に従い、入力された輝度信号Yと色差信号Cr、Cbとからなる画像信号(Y/C信号)に所定形式(たとえば、JPEG)の圧縮処理を施し、圧縮画像データを生成する。また、CPU11からの伸張指令に従い、入力された圧縮画像データに所定形式の伸張処理を施して、非圧縮の画像データを生成する。   The compression processing circuit 26 performs compression processing of a predetermined format (for example, JPEG) on the input image signal (Y / C signal) composed of the luminance signal Y and the color difference signals Cr and Cb in accordance with the compression command from the CPU 11. Generate compressed image data. Further, in accordance with a decompression command from the CPU 11, the input compressed image data is subjected to decompression processing in a predetermined format to generate uncompressed image data.

ビデオエンコーダ27は、CPU11からの指令に従い、画像表示装置28への表示を制御する。   The video encoder 27 controls display on the image display device 28 in accordance with a command from the CPU 11.

メディアコントローラ30は、CPU11からの指令に従い、記録メディア31に対してデータの読み/書きを制御する。なお、記録メディア31は、メモリカードのようにカメラ本体に対して着脱自在なものでもよいし、また、カメラ本体に内蔵されたものでもよい。着脱自在とする場合は、カメラ本体にカードスロットを設け、このカードスロットに装填して使用する。   The media controller 30 controls reading / writing of data with respect to the recording medium 31 in accordance with a command from the CPU 11. The recording medium 31 may be detachable from the camera body such as a memory card, or may be built in the camera body. In the case of detachable, a card slot is provided in the camera body, and the card slot is used by being loaded.

ここで、合焦動作時のフォーカスレンズ16の移動方向について説明する。図2に示すように、フォーカスレンズ16の移動可能範囲において、右端が最も至近位置での合焦位置、左端が無限遠位置での合焦位置を示す。一般に、室内での撮影においては、被写体は撮影者の比較的近くに存在と考えられる。従って、フォーカスレンズ16を移動させながら合焦位置のサーチを行うにあたって、室内での撮影時は至近側から無限遠側へ、即ち図2の右側から左側へフォーカスレンズ16を移動させる方が、早く被写体の合焦位置へ到達する確率が高い。反対に、室外での撮影においては、被写体は撮影者から比較的遠い位置に存在すると考えられる。従って、室外での撮影時は無限遠側から至近側へ、即ち図2の左側から右側へフォーカスレンズ16を移動させる方が、早く被写体の合焦位置へ到達する確率が高い。   Here, the moving direction of the focus lens 16 during the focusing operation will be described. As shown in FIG. 2, in the movable range of the focus lens 16, the right end indicates the in-focus position at the closest position, and the left end indicates the in-focus position at the infinity position. Generally, in indoor shooting, the subject is considered to be relatively close to the photographer. Therefore, when searching for the in-focus position while moving the focus lens 16, it is faster to move the focus lens 16 from the closest side to the infinity side, that is, from the right side to the left side in FIG. There is a high probability of reaching the in-focus position of the subject. On the other hand, in outdoor shooting, it is considered that the subject is present at a position relatively far from the photographer. Accordingly, when shooting outdoors, moving the focus lens 16 from the infinity side to the close side, that is, from the left side to the right side in FIG. 2, has a higher probability of reaching the in-focus position of the subject earlier.

このように、撮影環境が室内か室外かを判断してサーチ方向を決定することにより、合焦動作におけるフォーカスレンズ16の移動距離を短くでき、サーチ時間を短縮することができる。   Thus, by determining whether the shooting environment is indoor or outdoor and determining the search direction, the moving distance of the focus lens 16 in the focusing operation can be shortened, and the search time can be shortened.

次に、本実施の形態における合焦動作時のフォーカスレンズ16の移動方向の決定方法について説明する。図3は、この処理の動作を示すフローチャートである。   Next, a method for determining the moving direction of the focus lens 16 during the focusing operation in the present embodiment will be described. FIG. 3 is a flowchart showing the operation of this process.

最初に、被写体の輝度を取得する(ステップS31)。前述したように、AE検出回路34が算出した積算値に基づいて、CPU11が絞り値及びシャッタ速度を算出する。ここで算出された絞り値をF、シャッタ速度をTとすると、被写体輝度Lvは以下のように表される。   First, the luminance of the subject is acquired (step S31). As described above, the CPU 11 calculates the aperture value and the shutter speed based on the integrated value calculated by the AE detection circuit 34. If the aperture value calculated here is F and the shutter speed is T, the subject brightness Lv is expressed as follows.

[数1]
Lv=Log(F)+Log(1/シャッタ速度)
次に、算出された被写体輝度Lvが10より大きいか否かを判定する(ステップS32)。
[Equation 1]
Lv = Log 2 (F 2 ) + Log 2 (1 / shutter speed)
Next, it is determined whether or not the calculated subject brightness Lv is greater than 10 (step S32).

10より大きい場合は、撮影環境を室外であると判断し、フォーカスレンズ16を無限遠側へ駆動し(ステップS33)、無限遠側から至近側へ移動させながら合焦位置をサーチする(ステップS34)。前述したように、合焦位置のサーチは、AF検出回路33が算出した焦点評価値に基づいて、CPU11が焦点評価値が極大となる位置をサーチすることにより行なう。例えば、評価値が増加から減少に転じるピークが検出された場合を合焦位置と判定する。図14(a)は、各レンズ位置におけるAF評価値と、無限遠側から合焦位置をサーチする動作を示した図である。同図に示すように、撮影環境が室外の場合は、デジタルカメラ1から離れた位置に被写体が存在する可能性が高い。同図に示すように、無限縁側から合焦位置をサーチし、評価値のピークを過ぎた位置までサーチした後に合焦位置へ移動することにより、フォーカスレンズ16の移動距離を短くでき、サーチ時間を短縮することができる。   If greater than 10, it is determined that the shooting environment is outdoor, the focus lens 16 is driven to the infinity side (step S33), and the in-focus position is searched while moving from the infinity side to the close side (step S34). ). As described above, the in-focus position is searched by the CPU 11 searching for the position where the focus evaluation value is maximized based on the focus evaluation value calculated by the AF detection circuit 33. For example, a case where a peak where the evaluation value turns from increasing to decreasing is detected is determined as the in-focus position. FIG. 14A is a diagram showing an AF evaluation value at each lens position and an operation for searching for a focus position from the infinity side. As shown in the figure, when the shooting environment is outdoor, there is a high possibility that the subject exists at a position away from the digital camera 1. As shown in the figure, by searching the in-focus position from the infinite edge side, searching to the position past the peak of the evaluation value and then moving to the in-focus position, the moving distance of the focus lens 16 can be shortened, and the search time Can be shortened.

逆に、算出された被写体輝度が10以下の場合は、撮影環境を室内であると判断し、フォーカスレンズ16を至近側へ駆動し(ステップS35)、至近側から無限遠側へ移動させながら合焦位置をサーチする(ステップS36)。図14(b)は、各レンズ位置におけるAF評価値と、至近側から合焦位置をサーチする動作を示した図である。同図に示すように、撮影環境が室内の場合は、デジタルカメラ1から近い位置に被写体が存在する可能性が高い。同図に示すように、至近側から合焦位置をサーチし、評価値のピークを過ぎた位置までサーチした後に合焦位置へ移動することにより、フォーカスレンズ16の移動距離を短くでき、サーチ時間を短縮することができる。   Conversely, if the calculated subject brightness is 10 or less, it is determined that the shooting environment is indoors, the focus lens 16 is driven to the close side (step S35), and the focus lens 16 is moved from the close side to the infinity side. The focal position is searched (step S36). FIG. 14B is a diagram showing an AF evaluation value at each lens position and an operation for searching for a focus position from the closest side. As shown in the figure, when the shooting environment is indoors, there is a high possibility that a subject is present at a position close to the digital camera 1. As shown in the figure, by searching the in-focus position from the closest side, searching to the position past the evaluation value peak, and moving to the in-focus position, the moving distance of the focus lens 16 can be shortened, and the search time Can be shortened.

このように、合焦位置の判定を行い(ステップS37)、合焦位置へフォーカスレンズ16を駆動する(ステップS38)。   Thus, the focus position is determined (step S37), and the focus lens 16 is driven to the focus position (step S38).

なお、合焦位置の判定は他のアルゴリズムを用いてもよいが、無限遠側端から至近側端、又は至近側端から無限遠側端へサーチを行なってしまうとサーチ方向を判定した意味がなくなるので、サーチ途中で合焦位置を判定可能なアルゴリズムを用いる。   Note that other algorithms may be used to determine the in-focus position, but if the search is performed from the infinity side end to the near side end, or from the close side end to the infinity side end, it means that the search direction is determined. Therefore, an algorithm that can determine the in-focus position during the search is used.

以上のように、算出した被写体輝度に基づいて撮影環境が室内か室外かを判断してサーチ方向を決定することにより、合焦動作におけるフォーカスレンズ16の移動距離を短くでき、サーチ時間を短縮することができる。   As described above, by determining whether the shooting environment is indoor or outdoor based on the calculated subject brightness, the search direction is determined, so that the moving distance of the focus lens 16 in the focusing operation can be shortened, and the search time is shortened. be able to.

なお、本実施の形態では被写体輝度Lvが10より大きい場合を室外、10以下の場合を室内と判定したが、この閾値は10に限られるものではなく、Lv=9〜11であればどの値でもよい。   In the present embodiment, the case where the subject brightness Lv is greater than 10 is determined to be outdoor, and the case where the subject brightness Lv is 10 or less is determined to be indoor. But you can.

<第2の実施の形態>
次に、第2の実施の形態における合焦動作時のフォーカスレンズ16の移動方向の決定方法について説明する。図4は、第2の実施の形態のこの処理の動作について示したフローチャートである。なお、図3のフローチャートと共通する部分には同一の符号を付し、その詳細な説明は省略する。
<Second Embodiment>
Next, a method for determining the moving direction of the focus lens 16 during the focusing operation in the second embodiment will be described. FIG. 4 is a flowchart showing the operation of this process according to the second embodiment. In addition, the same code | symbol is attached | subjected to the part which is common in the flowchart of FIG. 3, and the detailed description is abbreviate | omitted.

最初に、撮影環境の色温度を取得する(ステップS41)。ここでは、CPU11が、AE検出回路34で算出されたR、G、Bごとの画像信号の積算値に基づいて撮影環境の色温度を算出する。次に、算出された色温度が5000Kより高いか否かを判定する(ステップS42)。   First, the color temperature of the shooting environment is acquired (step S41). Here, the CPU 11 calculates the color temperature of the shooting environment based on the integrated value of the image signals for each of R, G, and B calculated by the AE detection circuit 34. Next, it is determined whether or not the calculated color temperature is higher than 5000K (step S42).

5000Kより高い場合は、撮影環境を室外であると判断し、フォーカスレンズ16を無限遠側へ駆動し(ステップS33)、無限遠側から至近側へ移動させながら合焦位置をサーチする(ステップS34)。逆に、5000K以下の場合は、撮影環境を室内であると判断し、フォーカスレンズ16を至近側へ駆動し(ステップS35)、至近側から無限遠側へ移動させながら合焦位置をサーチする(ステップS36)。サーチの結果から合焦位置の判定を行い(ステップS37)、合焦位置へフォーカスレンズ16を駆動する(ステップS38)。   If it is higher than 5000K, it is determined that the shooting environment is outdoor, the focus lens 16 is driven to the infinity side (step S33), and the in-focus position is searched while moving from the infinity side to the closest side (step S34). ). Conversely, if it is 5000K or less, it is determined that the shooting environment is indoors, the focus lens 16 is driven to the close side (step S35), and the in-focus position is searched while moving from the close side to the infinity side (step S35). Step S36). The focus position is determined from the search result (step S37), and the focus lens 16 is driven to the focus position (step S38).

このように、算出した色温度に基づいて撮影環境が室内か室外かを判断してサーチ方向を決定することにより、合焦動作におけるフォーカスレンズ16の移動距離を短くでき、サーチ時間を短縮することができる。   Thus, by determining whether the shooting environment is indoor or outdoor based on the calculated color temperature and determining the search direction, the moving distance of the focus lens 16 in the focusing operation can be shortened, and the search time can be shortened. Can do.

なお、本実施の形態では色温度が5000Kより高い場合を室外、5000K以下の場合を室内と判定したが、この閾値は5000Kに限られるものではなく、4500K〜5500Kであればどの値でもよい。   In this embodiment, the case where the color temperature is higher than 5000K is determined to be outdoor and the case where the color temperature is 5000K or less is determined to be indoor. However, this threshold value is not limited to 5000K, and any value may be used as long as it is 4500K to 5500K.

<第3の実施の形態>
次に、第3の実施の形態における合焦動作時のフォーカスレンズ16の移動方向の決定方法について説明する。
<Third Embodiment>
Next, a method for determining the moving direction of the focus lens 16 during the focusing operation in the third embodiment will be described.

図5は、デジタルカメラ10の第3の実施の形態の電気的構成を示すブロック図である。図1に示すブロック図とは、フリッカー検出部35を備えたところが異なる。フリッカー検出部35は、60Hz又は50Hzのフリッカーを検出することにより、撮影環境の光源が蛍光灯である、即ち室内であることを判断するための回路である。フリッカー検出部35は、CCD21により得られた画像信号に基づいてフリッカーの検出を行うが、フリッカーの検出方法はこの方法に限られるものではなく、例えばフリッカーセンサを用いたものでもよい。   FIG. 5 is a block diagram illustrating an electrical configuration of the digital camera 10 according to the third embodiment. The block diagram shown in FIG. 1 is different from the block diagram shown in FIG. The flicker detection unit 35 is a circuit for determining whether the light source of the photographing environment is a fluorescent lamp, that is, indoors, by detecting 60 Hz or 50 Hz flicker. The flicker detection unit 35 detects flicker based on the image signal obtained by the CCD 21, but the flicker detection method is not limited to this method. For example, a flicker sensor may be used.

図6は、第3の実施の形態の合焦動作時のフォーカスレンズ16の移動方向の決定処理について示したフローチャートである。なお、図3のフローチャートと共通する部分には同一の符号を付し、その詳細な説明は省略する。   FIG. 6 is a flowchart illustrating the determination process of the moving direction of the focus lens 16 during the focusing operation according to the third embodiment. In addition, the same code | symbol is attached | subjected to the part which is common in the flowchart of FIG. 3, and the detailed description is abbreviate | omitted.

最初に、撮影環境のフリッカーを検出する(ステップS61)。前述したように、フリッカーの検出はフリッカー検出部35により行われる。次に、フリッカーが検出されたか否かを判定する(ステップS62)。   First, flicker in the shooting environment is detected (step S61). As described above, flicker detection is performed by the flicker detection unit 35. Next, it is determined whether or not flicker has been detected (step S62).

フリッカーが検出されなかった場合は、撮影環境を室外であると判断し、フォーカスレンズ16を無限遠側へ駆動し(ステップS33)、無限遠側から至近側へ移動させながら合焦位置をサーチする(ステップS34)。逆に、フリッカーが検出された場合は、撮影環境を室内であると判断し、フォーカスレンズ16を至近側へ駆動し(ステップS35)、至近側から無限遠側へ移動させながら合焦位置をサーチする(ステップS36)。サーチの結果から合焦位置の判定を行い(ステップS37)、合焦位置へフォーカスレンズ16を駆動する(ステップS38)。   If no flicker is detected, it is determined that the shooting environment is outdoor, the focus lens 16 is driven to the infinity side (step S33), and the in-focus position is searched while moving from the infinity side to the close side. (Step S34). Conversely, if flicker is detected, it is determined that the shooting environment is indoors, the focus lens 16 is driven to the close side (step S35), and the in-focus position is searched while moving from the close side to the infinity side. (Step S36). The focus position is determined from the search result (step S37), and the focus lens 16 is driven to the focus position (step S38).

このように、フリッカーが検出されたか否かに基づいて撮影環境が室内か室外かを判断してサーチ方向を決定することにより、合焦動作におけるフォーカスレンズ16の移動距離を短くでき、サーチ時間を短縮することができる。   Thus, by determining whether the shooting environment is indoor or outdoor based on whether flicker is detected or not and determining the search direction, the moving distance of the focus lens 16 in the focusing operation can be shortened, and the search time can be reduced. It can be shortened.

<第4の実施の形態>
次に、第4の実施の形態における合焦動作時のフォーカスレンズ16の移動方向の決定方法について説明する。
<Fourth embodiment>
Next, a method for determining the moving direction of the focus lens 16 during the focusing operation in the fourth embodiment will be described.

図7は、デジタルカメラ10の第4の実施の形態の電気的構成を示すブロック図である。図1に示すブロック図とは、赤外線検出部36を備えたところが異なる。赤外線検出部36は、撮影環境中の赤外線を検出することにより、撮影環境が室外であることを判断するための回路である。赤外線検出部36はボロメータ型の赤外線センサを備え、赤外線を検出する。赤外線を検出する方式はボロメータ型に限られるものではなく、例えば光導電型のセンサでもよい。また、専用の赤外線センサを持たずに赤外線リモコンの受信センサ等で兼用してもよい。   FIG. 7 is a block diagram showing an electrical configuration of the digital camera 10 according to the fourth embodiment. The block diagram shown in FIG. 1 is different from the block diagram shown in FIG. The infrared detector 36 is a circuit for determining that the shooting environment is outdoor by detecting infrared rays in the shooting environment. The infrared detector 36 includes a bolometer-type infrared sensor and detects infrared rays. The method of detecting infrared rays is not limited to the bolometer type, and may be a photoconductive type sensor, for example. Further, a receiving sensor of an infrared remote controller or the like may be used without having a dedicated infrared sensor.

図8は、第4の実施の形態の合焦動作時のフォーカスレンズ16の移動方向の決定処理について示したフローチャートである。なお、図3のフローチャートと共通する部分には同一の符号を付し、その詳細な説明は省略する。   FIG. 8 is a flowchart showing the determination process of the moving direction of the focus lens 16 during the focusing operation according to the fourth embodiment. In addition, the same code | symbol is attached | subjected to the part which is common in the flowchart of FIG. 3, and the detailed description is abbreviate | omitted.

最初に、撮影環境の赤外線を検出する(ステップS81)。前述したように、赤外線の検出は赤外線検出部36により行われる。次に、検出した赤外線が所定値より多いか否かを判定する(ステップS82)。   First, infrared rays in the shooting environment are detected (step S81). As described above, infrared detection is performed by the infrared detection unit 36. Next, it is determined whether or not the detected infrared ray is greater than a predetermined value (step S82).

検出した赤外線が所定値より多い場合は、撮影環境を室外であると判断し、フォーカスレンズ16を無限遠側へ駆動し(ステップS33)、無限遠側から至近側へ移動させながら合焦位置をサーチする(ステップS34)。逆に、所定値より少ない場合は、撮影環境を室内であると判断し、フォーカスレンズ16を至近側へ駆動し(ステップS35)、至近側から無限遠側へ移動させながら合焦位置をサーチする(ステップS36)。サーチの結果から合焦位置の判定を行い(ステップS37)、合焦位置へフォーカスレンズ16を駆動する(ステップS38)。   If the detected infrared ray is greater than the predetermined value, it is determined that the shooting environment is outdoor, the focus lens 16 is driven to the infinity side (step S33), and the in-focus position is moved while moving from the infinity side to the close side. Search is performed (step S34). On the other hand, if it is less than the predetermined value, it is determined that the shooting environment is indoors, the focus lens 16 is driven to the close side (step S35), and the in-focus position is searched while moving from the close side to the infinity side. (Step S36). The focus position is determined from the search result (step S37), and the focus lens 16 is driven to the focus position (step S38).

このように、検出された赤外線が所定値より多いか否かに基づいて撮影環境が室内か室外かを判断してサーチ方向を決定することにより、合焦動作におけるフォーカスレンズ16の移動距離を短くでき、サーチ時間を短縮することができる。   In this way, by determining whether the photographing environment is indoor or outdoor based on whether or not the detected infrared ray is greater than a predetermined value, the search direction is determined, thereby shortening the moving distance of the focus lens 16 in the focusing operation. Search time can be shortened.

<第5の実施の形態>
次に、第5の実施の形態における合焦動作時のフォーカスレンズ16の移動方向の決定方法について説明する。
<Fifth embodiment>
Next, a method of determining the moving direction of the focus lens 16 during the focusing operation in the fifth embodiment will be described.

図9は、デジタルカメラ10の第5の実施の形態の電気的構成を示すブロック図である
。図1に示すブロック図とは、GPS受信部37を備えたところが異なる。GPS受信部37は、GPS衛星からのGPS電波を受信することにより受信感度レベルを検出し、検出した受信感度レベルから撮影環境が室外であるか室内であるかを判断するための回路である。
FIG. 9 is a block diagram showing an electrical configuration of the digital camera 10 according to the fifth embodiment. 1 is different from the block diagram shown in FIG. 1 in that a GPS receiver 37 is provided. The GPS receiving unit 37 is a circuit for detecting a reception sensitivity level by receiving GPS radio waves from a GPS satellite, and determining whether the shooting environment is outdoor or indoor based on the detected reception sensitivity level.

図10は、第5の実施の形態の合焦動作時のフォーカスレンズ16の移動方向の決定処理について示したフローチャートである。なお、図3のフローチャートと共通する部分には同一の符号を付し、その詳細な説明は省略する。   FIG. 10 is a flowchart illustrating the determination process of the moving direction of the focus lens 16 during the focusing operation according to the fifth embodiment. In addition, the same code | symbol is attached | subjected to the part which is common in the flowchart of FIG. 3, and the detailed description is abbreviate | omitted.

最初に、撮影環境のGPS受信感度レベルを検出する(ステップS101)。前述したように、GPS受信感度レベルの検出はGPS受信部37により行われる。次に、検出したGPS受信感度レベルが所定値より大きいか否かを判定する(ステップS102)。   First, the GPS reception sensitivity level of the shooting environment is detected (step S101). As described above, the GPS receiving sensitivity level is detected by the GPS receiving unit 37. Next, it is determined whether or not the detected GPS reception sensitivity level is greater than a predetermined value (step S102).

検出したGPS受信感度レベルが所定値より大きい場合は、撮影環境を室外であると判断し、フォーカスレンズ16を無限遠側へ駆動し(ステップS33)、無限遠側から至近側へ移動させながら合焦位置をサーチする(ステップS34)。逆に、所定値より小さい場合は、撮影環境を室内であると判断し、フォーカスレンズ16を至近側へ駆動し(ステップS35)、至近側から無限遠側へ移動させながら合焦位置をサーチする(ステップS36)。サーチの結果から合焦位置の判定を行い(ステップS37)、合焦位置へフォーカスレンズ16を駆動する(ステップS38)。   If the detected GPS reception sensitivity level is greater than the predetermined value, it is determined that the shooting environment is outdoor, the focus lens 16 is driven to the infinity side (step S33), and the focus lens 16 is moved from the infinity side to the closest side. The focal position is searched (step S34). On the other hand, if it is smaller than the predetermined value, it is determined that the shooting environment is indoors, the focus lens 16 is driven to the close side (step S35), and the in-focus position is searched while moving from the close side to the infinity side. (Step S36). The focus position is determined from the search result (step S37), and the focus lens 16 is driven to the focus position (step S38).

このように、検出されたGPS受信感度レベルが所定値より大きいか否かに基づいて撮影環境が室内か室外かを判断してサーチ方向を決定することにより、合焦動作におけるフォーカスレンズ16の移動距離を短くでき、サーチ時間を短縮することができる。   In this way, the focus lens 16 is moved during the focusing operation by determining whether the shooting environment is indoor or outdoor based on whether or not the detected GPS reception sensitivity level is greater than a predetermined value, and determining the search direction. The distance can be shortened and the search time can be shortened.

<第6の実施の形態>
次に、第6の実施の形態における合焦動作時のフォーカスレンズ16の移動方向の決定方法について説明する。
<Sixth Embodiment>
Next, a method for determining the moving direction of the focus lens 16 during the focusing operation in the sixth embodiment will be described.

図11は、デジタルカメラ10の第6の実施の形態の電気的構成を示すブロック図である。図1に示すブロック図とは、フリッカー検出部35、赤外線検出部36、及びGPS受信部37を備えたところが異なる。フリッカー検出部35はフリッカーを検出することにより、赤外線検出部36は撮影環境中の赤外線を検出することにより、GPS受信部37はGPS電波の受信感度レベルを検出することにより、それぞれ撮影環境が室外であるか室内であるかを判断するための回路である。   FIG. 11 is a block diagram showing an electrical configuration of the digital camera 10 according to the sixth embodiment. 1 is different from the block diagram shown in FIG. 1 in that a flicker detection unit 35, an infrared detection unit 36, and a GPS reception unit 37 are provided. The flicker detection unit 35 detects flicker, the infrared detection unit 36 detects infrared rays in the shooting environment, and the GPS reception unit 37 detects the reception sensitivity level of GPS radio waves, so that the shooting environment is outdoor. It is a circuit for judging whether it is indoor or indoor.

図12は、第6の実施の形態の合焦動作時のフォーカスレンズ16の移動方向の決定処理について示したフローチャートである。なお、図3のフローチャートと共通する部分には同一の符号を付し、その詳細な説明は省略する。   FIG. 12 is a flowchart illustrating the determination process of the moving direction of the focus lens 16 during the focusing operation according to the sixth embodiment. In addition, the same code | symbol is attached | subjected to the part which is common in the flowchart of FIG. 3, and the detailed description is abbreviate | omitted.

最初に、被写体輝度による室内・室外判定を行う(ステップS121)。第1の実施の形態と同様に、絞り値及びシャッタ速度に基づいて輝度値Lvを算出し、算出された被写体輝度Lvが10より大きいか否かを判定する。この被写体輝度Lvが10より大きい場合は撮影環境を室外であると判断し、10以下の場合は撮影環境を室内であると判断する。   First, indoor / outdoor determination based on subject brightness is performed (step S121). As in the first embodiment, the brightness value Lv is calculated based on the aperture value and the shutter speed, and it is determined whether or not the calculated subject brightness Lv is greater than 10. When the subject brightness Lv is greater than 10, the shooting environment is determined to be outdoor, and when it is 10 or less, the shooting environment is determined to be indoor.

次に、撮影環境の色温度による室内・室外判定を行なう(ステップS122)。第2の実施の形態と同様に、AE検出回路34で算出されたR、G、Bごとの画像信号の積算値に基づいて撮影環境の色温度を算出し、算出された色温度が5000Kより高いか否かを判定する。この色温度が5000Kより高い場合は撮影環境を室外であると判断し、50
00K以下の場合は撮影環境を室内であると判断する。
Next, indoor / outdoor determination based on the color temperature of the shooting environment is performed (step S122). As in the second embodiment, the color temperature of the shooting environment is calculated based on the integrated value of the image signals for each of R, G, and B calculated by the AE detection circuit 34, and the calculated color temperature is from 5000K. Determine if it is high. If the color temperature is higher than 5000K, it is determined that the shooting environment is outdoor, and 50
If it is less than 00K, it is determined that the shooting environment is indoors.

次に、フリッカーの有無による室内・室外判定を行う(ステップS123)。第3の実施の形態と同様に、フリッカー検出部35によりフリッカー検出が行われ、フリッカーが検出されたか否かを判定する。フリッカーが検出されなかった場合は撮影環境を室外であると判断し、フリッカーが検出された場合は撮影環境を室内であると判断する。   Next, indoor / outdoor determination based on the presence or absence of flicker is performed (step S123). As in the third embodiment, the flicker detection unit 35 performs flicker detection and determines whether or not flicker is detected. When flicker is not detected, it is determined that the shooting environment is outdoor. When flicker is detected, the shooting environment is determined to be indoors.

さらに、赤外線による室内・室外判定を行う(ステップS124)。第4の実施の形態と同様に、赤外線検出部36により赤外線検出を行い、検出した赤外線が所定値より多いか否かを判定する。検出した赤外線が所定値より多い場合は撮影環境を室外であると判断し、所定値より少ない場合は撮影環境を室内であると判断する。   Furthermore, indoor / outdoor determination using infrared rays is performed (step S124). As in the fourth embodiment, infrared detection is performed by the infrared detector 36, and it is determined whether or not the detected infrared is greater than a predetermined value. If the detected infrared ray is greater than a predetermined value, it is determined that the shooting environment is outdoor, and if it is less than the predetermined value, the shooting environment is determined to be indoors.

最後に、GPS受信感度レベルによる室内・室外判定を行う(ステップS125)。第5の実施の形態と同様に、GPS受信部37によりGPS受信感度レベルの検出を行い、検出したGPS受信感度レベルが所定値より大きいか否かを判定する。検出したGPS受信感度レベルが所定値より大きい場合は撮影環境を室外であると判断し、所定値より小さい場合は、撮影環境を室内であると判断する。   Finally, indoor / outdoor determination based on the GPS reception sensitivity level is performed (step S125). As in the fifth embodiment, the GPS reception sensitivity level is detected by the GPS receiver 37, and it is determined whether or not the detected GPS reception sensitivity level is greater than a predetermined value. If the detected GPS reception sensitivity level is greater than a predetermined value, it is determined that the shooting environment is outdoor, and if it is lower than the predetermined value, it is determined that the shooting environment is indoor.

そして、これらの5つの判定結果において、室外と判定したものが3つ以上存在するか否かを判定する(ステップS126)。   Then, in these five determination results, it is determined whether or not there are three or more determined outdoor (step S126).

3つ以上存在する場合は、最終的に撮影環境を室外であると判断し、フォーカスレンズ16を無限遠側へ駆動し(ステップS33)、無限遠側から至近側へ移動させながら合焦位置をサーチする(ステップS34)。逆に、3つ未満の場合は、最終的に撮影環境を室内であると判断し、フォーカスレンズ16を至近側へ駆動し(ステップS35)、至近側から無限遠側へ移動させながら合焦位置をサーチする(ステップS36)。サーチの結果から合焦位置の判定を行い(ステップS37)、合焦位置へフォーカスレンズ16を駆動する(ステップS38)。   If there are three or more, it is finally determined that the shooting environment is outdoor, the focus lens 16 is driven to the infinity side (step S33), and the in-focus position is moved while moving from the infinity side to the close side. Search is performed (step S34). On the other hand, if the number is less than three, it is determined that the shooting environment is finally indoors, the focus lens 16 is driven to the close side (step S35), and the in-focus position is moved from the close side to the infinity side. Is searched (step S36). The focus position is determined from the search result (step S37), and the focus lens 16 is driven to the focus position (step S38).

このように、複数の検出手段により撮影環境を判断し、総合的に撮影環境が室内か室外かを判断してサーチ方向を決定することにより、合焦動作におけるフォーカスレンズ16の移動距離を短くでき、サーチ時間を短縮することができる。   In this way, by determining the shooting environment by a plurality of detection means, and comprehensively determining whether the shooting environment is indoor or outdoor and determining the search direction, the moving distance of the focus lens 16 in the focusing operation can be shortened. The search time can be shortened.

本実施の形態では、複数の検出手段による判定結果に対して、多数決で最終的に室内であるか室外であるかを判断したが、判定結果に重み付けを行なって、総合的に判断してもよい。例えば、図13に示すような重み付けを行い、室外であると判定した項目の重み付け点数を合計し、所定の点数以上の場合に室外であると判断する。また、複数の検出手段のうち1つでも室外であると判定した場合は、最終的に室外であると判断してもよい。また、複数の検出手段について優先順位を付けてもよい。例えば、フリッカーが検出された場合は最終的に室内と判断するが、フリッカーが検出されない場合は、その他の検出手段における多数決で最終的に室内であるか室外であるかを判断してもよい。   In the present embodiment, it is determined by the majority vote whether the result is the indoor or the outdoor based on the determination results by the plurality of detection means, but the determination result is weighted and comprehensively determined. Good. For example, weighting as shown in FIG. 13 is performed, and the weighted points of items determined to be outdoor are totaled, and when the score is equal to or greater than a predetermined score, it is determined that the outdoor. Further, when it is determined that one of the plurality of detection means is outdoor, it may be finally determined that it is outdoor. Moreover, you may give a priority order about several detection means. For example, when flicker is detected, it is finally determined that the room is indoors. However, when flicker is not detected, it may be determined whether the room is finally indoors or outdoors by a majority decision in other detection means.

図1は、本発明が適用されたデジタルカメラの第1の実施の形態の電気的構成を示すブロック図である。FIG. 1 is a block diagram showing an electrical configuration of a first embodiment of a digital camera to which the present invention is applied. 図2は、フォーカスレンズ16の移動方向について示した図である。FIG. 2 is a diagram illustrating the moving direction of the focus lens 16. 図3は、第1の実施の形態のフォーカスレンズ16の移動方向を決定する処理を示すフローチャートである。FIG. 3 is a flowchart illustrating processing for determining the moving direction of the focus lens 16 according to the first embodiment. 図4は、第2の実施の形態のフォーカスレンズ16の移動方向を決定する処理を示すフローチャートである。FIG. 4 is a flowchart illustrating processing for determining the moving direction of the focus lens 16 according to the second embodiment. 図5は、デジタルカメラ10の第3の実施の形態の電気的構成を示すブロック図である。FIG. 5 is a block diagram illustrating an electrical configuration of the digital camera 10 according to the third embodiment. 図6は、第3の実施の形態の合焦動作時のフォーカスレンズ16の移動方向の決定処理について示したフローチャートである。FIG. 6 is a flowchart illustrating the determination process of the moving direction of the focus lens 16 during the focusing operation according to the third embodiment. 図7は、デジタルカメラ10の第4の実施の形態の電気的構成を示すブロック図である。FIG. 7 is a block diagram showing an electrical configuration of the digital camera 10 according to the fourth embodiment. 図8は、第4の実施の形態の合焦動作時のフォーカスレンズ16の移動方向の決定処理について示したフローチャートである。FIG. 8 is a flowchart showing the determination process of the moving direction of the focus lens 16 during the focusing operation according to the fourth embodiment. 図9は、デジタルカメラ10の第5の実施の形態の電気的構成を示すブロック図である。FIG. 9 is a block diagram showing an electrical configuration of the digital camera 10 according to the fifth embodiment. 図10は、第5の実施の形態の合焦動作時のフォーカスレンズ16の移動方向の決定処理について示したフローチャートである。FIG. 10 is a flowchart illustrating the determination process of the moving direction of the focus lens 16 during the focusing operation according to the fifth embodiment. 図11は、デジタルカメラ10の第6の実施の形態の電気的構成を示すブロック図である。FIG. 11 is a block diagram showing an electrical configuration of the digital camera 10 according to the sixth embodiment. 図12は、第6の実施の形態の合焦動作時のフォーカスレンズ16の移動方向の決定処理について示したフローチャートである。FIG. 12 is a flowchart illustrating the determination process of the moving direction of the focus lens 16 during the focusing operation according to the sixth embodiment. 図13は、複数の検出項目における重み付けについて示した図である。FIG. 13 is a diagram illustrating weighting in a plurality of detection items. 図14は、各レンズ位置におけるAF評価値と、フォーカスレンズ16の合焦位置をサーチする動作を示した図である。FIG. 14 is a diagram illustrating an operation of searching for an AF evaluation value at each lens position and a focus position of the focus lens 16.

符号の説明Explanation of symbols

10…デジタルカメラ、11…CPU、12…操作部、15…フォーカスレンズ用モータドライバ、16…フォーカスレンズ、17…手ブレ補正制御回路、18…手ブレ補正レンズ、21…CCD、22…アナログ信号処理回路、23…A/D変換器、24…画像入力コントローラ、25…画像信号処理回路、26…圧縮処理回路、32…メモリ、33…AF検出回路、34…AE検出回路、35…フリッカー検出部、36…赤外線検出部、37…GPS受信部   DESCRIPTION OF SYMBOLS 10 ... Digital camera, 11 ... CPU, 12 ... Operation part, 15 ... Focus lens motor driver, 16 ... Focus lens, 17 ... Camera shake correction control circuit, 18 ... Camera shake correction lens, 21 ... CCD, 22 ... Analog signal Processing circuit, 23 ... A / D converter, 24 ... Image input controller, 25 ... Image signal processing circuit, 26 ... Compression processing circuit, 32 ... Memory, 33 ... AF detection circuit, 34 ... AE detection circuit, 35 ... Flicker detection , 36 ... Infrared detector, 37 ... GPS receiver

Claims (10)

撮影レンズを介して受光した被写体の光学像を画像信号に変換する撮影手段と、
フォーカスレンズを移動させながら前記画像信号に基づいて光学像のコントラストが最大となる合焦位置をサーチし、前記合焦位置にフォーカスレンズを移動させる自動合焦手段と、
前記被写体の撮影環境が室外であるか室内であるかを判定する判定手段と、を備え、
前記自動合焦手段は、前記サーチ時に前記判定手段が撮影環境を室外であると判定した場合はフォーカスレンズを無限遠側から至近側へ移動させ、撮影環境を室内であると判定した場合はフォーカスレンズを至近側から無限遠側へ移動させることを特徴とする撮影装置。
Photographing means for converting an optical image of a subject received through the photographing lens into an image signal;
Automatic focusing means for searching for a focus position where the contrast of the optical image is maximized based on the image signal while moving the focus lens, and moving the focus lens to the focus position;
Determination means for determining whether the shooting environment of the subject is outdoor or indoors,
The automatic focusing means moves the focus lens from the infinity side to the close side when the determination means determines that the shooting environment is outdoor during the search, and focuses when the determination is that the shooting environment is indoors. An imaging apparatus characterized by moving a lens from a closest side to an infinite side.
前記判定手段は被写体輝度を検出する明るさ検出手段を備え、前記明るさ検出手段が検出した被写体輝度が所定輝度以上の場合は撮影環境を室外と判定し、所定輝度未満の場合は撮影環境を室内と判定することを特徴とする請求項1に記載の撮影装置。   The determination means includes brightness detection means for detecting subject brightness. When the subject brightness detected by the brightness detection means is equal to or higher than a predetermined brightness, the shooting environment is determined to be outdoor, and when the brightness is lower than the predetermined brightness, the shooting environment is determined. The photographing apparatus according to claim 1, wherein the photographing apparatus is determined to be indoors. 前記所定輝度は、Lv9〜Lv11の間にあることを特徴とする請求項2に記載の撮影装置。   The photographing apparatus according to claim 2, wherein the predetermined luminance is between Lv9 and Lv11. 前記判定手段は色温度を検出する光源検出手段を備え、前記光源検出手段が検出した色温度が所定温度以上の場合は撮影環境を室外と判定し、所定温度未満の場合は撮影環境を室内と判定することを特徴とする請求項1に記載の撮影装置。   The determination unit includes a light source detection unit that detects a color temperature. When the color temperature detected by the light source detection unit is equal to or higher than a predetermined temperature, the shooting environment is determined to be outdoor. The imaging apparatus according to claim 1, wherein determination is made. 前記所定温度は、4500K〜5500K[ケルビン]の間であることを特徴とする請求項4に記載の撮影装置。   The photographing apparatus according to claim 4, wherein the predetermined temperature is between 4500 K to 5500 K [Kelvin]. 前記判定手段はフリッカー光源を検出するフリッカー光源検出手段を備え、前記フリッカー光源検出手段がフリッカー光源を検出しない場合は撮影環境を室外と判定し、フリッカー光源を検出した場合は撮影環境を室内と判定することを特徴とする請求項1に記載の撮影装置。   The determination unit includes a flicker light source detection unit that detects a flicker light source. When the flicker light source detection unit does not detect the flicker light source, the shooting environment is determined to be outdoor, and when the flicker light source is detected, the shooting environment is determined to be indoor. The imaging apparatus according to claim 1, wherein: 前記判定手段は赤外線を検出する赤外線検出手段を備え、前記赤外線検出手段が検出した赤外線が所定量以上の場合は撮影環境を室外と判定し、所定量未満の場合は撮影環境を室内と判定することを特徴とする請求項1に記載の撮影装置。   The determination unit includes an infrared detection unit that detects infrared rays. When the infrared ray detected by the infrared detection unit is greater than or equal to a predetermined amount, the shooting environment is determined to be outdoor, and when the infrared ray is less than the predetermined amount, the shooting environment is determined to be indoors. The imaging apparatus according to claim 1, wherein: 前記判定手段はGPSの受信感度を検出するGPS受信感度検出手段を備え、前記GPS受信感度検出手段が検出したGPS受信感度が所定値以上の場合は撮影環境を室外と判定し、所定値未満の場合は撮影環境を室内と判定することを特徴とする請求項1に記載の撮影装置。   The determination means includes a GPS reception sensitivity detection means for detecting GPS reception sensitivity. When the GPS reception sensitivity detected by the GPS reception sensitivity detection means is equal to or greater than a predetermined value, the shooting environment is determined to be outdoor, and is less than the predetermined value. The photographing apparatus according to claim 1, wherein the photographing environment is determined to be indoors. 前記判定手段は、被写体輝度を検出する明るさ検出手段、色温度を検出する光源検出手段、フリッカー光源を検出するフリッカー光源検出手段、赤外線を検出する赤外線検出手段、GPSの受信感度を検出するGPS受信感度検出手段、のうち複数の検出手段を備え、前記複数の検出手段の2以上の検出結果に応じて前記被写体の撮影環境が室外であるか室内であるかを判定することを特徴とする請求項1に記載の撮影装置。   The determination means includes brightness detection means for detecting subject brightness, light source detection means for detecting color temperature, flicker light source detection means for detecting flicker light source, infrared detection means for detecting infrared light, and GPS for detecting GPS reception sensitivity. A plurality of detection means among the reception sensitivity detection means, and determining whether the photographing environment of the subject is outdoor or indoors according to two or more detection results of the plurality of detection means; The imaging device according to claim 1. 撮影レンズを介して受光した被写体の光学像を画像信号に変換する撮影工程と、
フォーカスレンズを移動させながら前記画像信号に基づいて光学像のコントラストが最大となる合焦位置をサーチし、前記合焦位置にフォーカスレンズを移動させる自動合焦工程と、
前記被写体の撮影環境が室外であるか室内であるかを判定する判定工程と、を備え、
前記自動合焦工程は、前記サーチ時に前記判定工程で撮影環境を室外であると判定した場合はフォーカスレンズを無限遠側から至近側へ移動させ、撮影環境を室内であると判定した場合はフォーカスレンズを至近側から無限遠側へ移動させることを特徴とする撮影制御方法。
A photographing process for converting an optical image of a subject received through the photographing lens into an image signal;
An automatic focusing step of searching for a focus position where the contrast of the optical image is maximized based on the image signal while moving the focus lens, and moving the focus lens to the focus position;
Determining whether the shooting environment of the subject is outdoor or indoor, and
In the automatic focusing step, the focus lens is moved from the infinity side to the close side if the shooting environment is determined to be outdoor in the determination step during the search, and the focus is determined if the shooting environment is determined to be indoors. An imaging control method, wherein the lens is moved from the closest side to the infinity side.
JP2007256763A 2007-09-28 2007-09-28 Photographing device and photographing control method Pending JP2009086349A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007256763A JP2009086349A (en) 2007-09-28 2007-09-28 Photographing device and photographing control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007256763A JP2009086349A (en) 2007-09-28 2007-09-28 Photographing device and photographing control method

Publications (1)

Publication Number Publication Date
JP2009086349A true JP2009086349A (en) 2009-04-23

Family

ID=40659846

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007256763A Pending JP2009086349A (en) 2007-09-28 2007-09-28 Photographing device and photographing control method

Country Status (1)

Country Link
JP (1) JP2009086349A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011216976A (en) * 2010-03-31 2011-10-27 Casio Computer Co Ltd Imaging device, imaging method, and program
CN103765440A (en) * 2011-08-29 2014-04-30 高通股份有限公司 Camera OCR with context information

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011216976A (en) * 2010-03-31 2011-10-27 Casio Computer Co Ltd Imaging device, imaging method, and program
CN103765440A (en) * 2011-08-29 2014-04-30 高通股份有限公司 Camera OCR with context information
JP2014529822A (en) * 2011-08-29 2014-11-13 クアルコム,インコーポレイテッド Camera OCR using context information
US9082035B2 (en) 2011-08-29 2015-07-14 Qualcomm Incorporated Camera OCR with context information

Similar Documents

Publication Publication Date Title
JP5954336B2 (en) Image processing apparatus, image processing method, and recording medium
JP4957943B2 (en) Imaging apparatus and program thereof
JP4466400B2 (en) Imaging apparatus and program thereof
JP5219730B2 (en) Imaging apparatus and imaging method
US20070229797A1 (en) Distance measuring apparatus and method
JP2006099119A (en) Method for implementing autofocus in an image capture device while compensating for movement
JP2007178576A (en) Imaging apparatus and program therefor
JP5064926B2 (en) Imaging apparatus and control method thereof
JP2008054177A (en) Imaging apparatus
JP5196768B2 (en) Imaging device
JP2008309947A (en) Imaging apparatus and imaging method
JP2009086349A (en) Photographing device and photographing control method
JP5045538B2 (en) Imaging apparatus and program
WO2019187648A1 (en) Imaging device, imaging method, program, and recording medium
JP2007094023A (en) Focus adjustment method of focus lens and imaging apparatus
JP2005283637A (en) Photographing device and program therefor
JP2012003029A (en) Imaging device
JP2006157604A (en) Camera apparatus and automatic photographing control program
JP5024033B2 (en) Object tracking device, object tracking program, and object tracking method
US9832364B2 (en) Automatic focal adjustment apparatus and method of controlling automatic focal adjustment apparatus, and image capture apparatus
JP2006349908A (en) Imaging apparatus and imaging method
US9525815B2 (en) Imaging apparatus, method for controlling the same, and recording medium to control light emission
JP5938268B2 (en) Imaging apparatus and control method thereof
JP2010169825A (en) Imaging device
JP5733552B2 (en) Imaging apparatus, imaging method, and program