JP2005233985A - Auto-focus camera - Google Patents

Auto-focus camera Download PDF

Info

Publication number
JP2005233985A
JP2005233985A JP2004039208A JP2004039208A JP2005233985A JP 2005233985 A JP2005233985 A JP 2005233985A JP 2004039208 A JP2004039208 A JP 2004039208A JP 2004039208 A JP2004039208 A JP 2004039208A JP 2005233985 A JP2005233985 A JP 2005233985A
Authority
JP
Japan
Prior art keywords
focus
distance
measurement
detection
result
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
JP2004039208A
Other languages
Japanese (ja)
Inventor
Kazuhiko Arii
和彦 有井
Kinyo Otani
欽洋 大谷
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.)
Sanyo Electric Co Ltd
Original Assignee
Sanyo Electric 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 Sanyo Electric Co Ltd filed Critical Sanyo Electric Co Ltd
Priority to JP2004039208A priority Critical patent/JP2005233985A/en
Publication of JP2005233985A publication Critical patent/JP2005233985A/en
Pending legal-status Critical Current

Links

Images

Landscapes

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

Abstract

<P>PROBLEM TO BE SOLVED: To more surely focus at the time of predicting a moving body. <P>SOLUTION: In a state where a shutter button 56 is half-depressed, a distance to a specified object lying at a closest position is repeatedly measured by a CPU 46 based on the output of a passive sensor 44. And also, when the shutter button 56 is fully depressed, the focal point of the specified object is detected by the CPU 46 based on the output of an image sensor 18. Further, whether a change of an object field before and after the shutter button 56 is fully depressed satisfies a prescribed condition is judged by the CPU 46 based on the measurement result of the object distance by the passive sensor 44 and the detection result of the focal point by the image sensor 18. When the judgement result is affirmative, focusing is performed based on the measurement result of the object distance. On the other hand, when the judgement result is negative, focusing is performed based on the detection result of the focal point. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

この発明は、オートフォーカスカメラに関し、特にたとえば、外光AF方式およびコントラストAF方式を併用してフォーカスを調整する、オートフォーカスカメラに関する。   The present invention relates to an autofocus camera, and more particularly to an autofocus camera that adjusts focus by using an external light AF method and a contrast AF method in combination.

従来のこの種のオートフォーカスカメラの一例が、特許文献1に開示されている。この従来技術によれば、AF方式としてパッシブAFおよびアクティブAFが用意され、いわゆる動体予測を行うときはパッシブAFが選択される。これによって、移動する被写体に向けられた良好なフォーカス調整が実現される。
特開2001−4909号公報[G02B 7/28 7/34 7/32 G03B 13/36]
An example of a conventional autofocus camera of this type is disclosed in Patent Document 1. According to this prior art, passive AF and active AF are prepared as AF methods, and passive AF is selected when so-called moving object prediction is performed. As a result, a good focus adjustment directed to the moving subject is realized.
JP 2001-4909 A [G02B 7/28 7/34 7/32 G03B 13/36]

しかし、動体予測は、撮影操作が行われるまでの被写体の動きを参照して、撮影時の被写体の位置を予測するものである。このため、撮影操作の前後で被写体が想定範囲外の動きをした場合、動体予測ではフォーカスを良好に調整することはできない。   However, the moving object prediction is to predict the position of the subject at the time of photographing with reference to the movement of the subject until the photographing operation is performed. For this reason, when the subject moves outside the assumed range before and after the shooting operation, the focus cannot be adjusted well in the moving object prediction.

それゆえに、この発明の主たる目的は、動きのある被写体に対するより確実なフォーカス調整を実現できる、オートフォーカスカメラを提供することである。   Therefore, a main object of the present invention is to provide an autofocus camera that can realize more reliable focus adjustment for a moving subject.

この発明に従うオートフォーカスカメラは、撮影指令が発行されないとき最近位置に存在する特定被写体までの距離を第1センサの出力に基づいて繰り返し測定する測定手段、撮影指令が発行されたとき特定被写体の合焦点を第2センサの出力に基づいて検出する合焦点検出手段、測定手段の測定結果と合焦点検出手段の検出結果とに基づいて撮影指令が発行される前後における被写界の変化が所定条件を満たすか否かを判断する判断手段、判断手段の判断結果が肯定的であるとき測定手段の測定結果に基づいてフォーカスを調整する第1調整手段、および判断手段の判断結果が否定的であるとき合焦点検出手段の検出結果に基づいてフォーカスを調整する第2調整手段を備える。   The autofocus camera according to the present invention is a measuring means for repeatedly measuring the distance to the specific subject at the nearest position based on the output of the first sensor when the shooting command is not issued, and the result of the specific subject when the shooting command is issued. Focus detection means for detecting the focus based on the output of the second sensor, and the change in the object scene before and after the shooting command is issued based on the measurement result of the measurement means and the detection result of the focus detection means is a predetermined condition The determination means for determining whether or not the first condition is satisfied, the first adjustment means for adjusting the focus based on the measurement result of the measurement means when the determination result of the determination means is positive, and the determination result of the determination means are negative Second adjusting means for adjusting the focus based on the detection result of the in-focus detection means.

測定手段は、撮影指令が発行されないとき、最近位置に存在する特定被写体までの距離を第1センサの出力に基づいて繰り返し測定する。合焦点検出手段は、撮影指令が発行されたとき、特定被写体の合焦点を第2センサの出力に基づいて検出する。判断手段は、測定手段の測定結果と合焦点検出手段の検出結果とに基づいて、撮影指令が発行される前後における被写界の変化が所定条件を満たすか否かを判断する。判断手段の判断結果が肯定的であれば、第1調整手段が、測定手段の測定結果に基づいてフォーカスを調整する。一方、判断手段の判断結果が否定的であれば、第2調整手段が、合焦点検出手段の検出結果に基づいてフォーカスを調整する。   The measurement means repeatedly measures the distance to the specific subject existing at the nearest position based on the output of the first sensor when the imaging command is not issued. The in-focus detection unit detects the in-focus point of the specific subject based on the output of the second sensor when a shooting command is issued. The determining means determines whether or not a change in the object scene before and after the shooting command is issued satisfies a predetermined condition based on the measurement result of the measuring means and the detection result of the in-focus detection means. If the determination result of the determination means is affirmative, the first adjustment means adjusts the focus based on the measurement result of the measurement means. On the other hand, if the determination result of the determination unit is negative, the second adjustment unit adjusts the focus based on the detection result of the in-focus detection unit.

撮影指令が発行される前後における被写界の変化が所定条件を満たせば、測定手段の測定結果の信頼性が高いとみなし、測定手段の測定結果に基づいてフォーカスが調整される。一方、撮影指令が発行される前後における被写界の変化が所定条件を満たさないときは、測定手段による測定結果の信頼性が低いとみなし、合焦点検出手段の検出結果に基づいてフォーカスが調整される。これによって、動体予測時により確実にフォーカスを調整することができる。   If the change in the scene before and after the shooting command is issued satisfies a predetermined condition, it is considered that the measurement result of the measurement means is highly reliable, and the focus is adjusted based on the measurement result of the measurement means. On the other hand, if the change in the field before and after the shooting command is issued does not satisfy the predetermined condition, the reliability of the measurement result by the measurement means is regarded as low, and the focus is adjusted based on the detection result of the in-focus detection means Is done. Thereby, the focus can be adjusted more reliably at the time of moving object prediction.

請求項2の発明に従うオートフォーカスカメラは、請求項1に従属し、被写界には複数のエリアが割り当てられ、所定条件は、特定被写体が存在するエリアが撮影指令が発される前後で一致するというエリア条件を含む。特定被写体が存在するエリアが撮影指令の前後で一致するか否かは、測定手段の測定結果の信頼性に大きく影響する。そこで、かかるエリア条件を課すようにしている。   The autofocus camera according to the invention of claim 2 is dependent on claim 1, wherein a plurality of areas are assigned to the object scene, and the predetermined condition is the same before and after the shooting command is issued for the area where the specific subject exists. Including the area condition. Whether or not the area where the specific subject exists is the same before and after the shooting command greatly affects the reliability of the measurement result of the measuring means. Therefore, such an area condition is imposed.

請求項3の発明に従うオートフォーカスカメラは、請求項2に従属し、合焦点検出手段によって検出された合焦点に基づいて特定被写体までの距離を算出する算出手段をさらに備え、所定条件は、撮影指令が発行される直前に測定手段によって測定された距離と算出手段によって算出された距離との差分が閾値以下であるという距離条件をさらに含む。   An autofocus camera according to a third aspect of the invention is dependent on the second aspect, further comprising a calculation unit that calculates a distance to a specific subject based on the focal point detected by the focal point detection unit, and the predetermined condition is that the photographing is performed It further includes a distance condition that a difference between the distance measured by the measuring unit and the distance calculated by the calculating unit immediately before the command is issued is equal to or less than a threshold value.

特定被写体までの距離が撮影指令の前後で大きく異なる場合、測定手段による測定結果の信頼性が低下する。そこで、かかる距離条件を課すようにしている。   When the distance to the specific subject is greatly different before and after the shooting command, the reliability of the measurement result by the measuring means is lowered. Therefore, such a distance condition is imposed.

請求項4の発明に従うオートフォーカスカメラは、請求項3に従属し、測定手段は、複数のエリアの各々に属する被写体までの距離を測定する測定実行手段、および測定実行手段によって測定された複数の距離の中から最短距離を検出する距離検出手段を含む。これによって、特定被写体までの距離を正確に測定することができる。   The autofocus camera according to the invention of claim 4 is dependent on claim 3, and the measurement means measures the distance to the subject belonging to each of the plurality of areas, and the plurality of measurement measures measured by the measurement execution means. A distance detecting means for detecting the shortest distance from the distances is included. Thereby, the distance to the specific subject can be accurately measured.

請求項5の発明に従うオートフォーカスカメラは、請求項4に従属し、距離検出手段によって検出された最短距離に対応するエリアを複数のエリアの中から特定する第1エリア特定手段、および合焦点検出手段によって検出された合焦点に対応するエリアを複数のエリアの中から特定する第2エリア特定手段をさらに備える。これによって、特定被写体が属するエリアを的確に特定することができる。   The autofocus camera according to the invention of claim 5 is dependent on claim 4 and includes first area specifying means for specifying an area corresponding to the shortest distance detected by the distance detecting means from a plurality of areas, and focus detection. Second area specifying means for specifying an area corresponding to the focal point detected by the means from a plurality of areas is further provided. Thereby, the area to which the specific subject belongs can be specified accurately.

請求項6の発明に従うオートフォーカスカメラは、請求項1に従属し、合焦点検出手段によって検出された合焦点に基づいて特定被写体までの距離を算出する算出手段をさらに備え、所定条件は、撮影指令が発行される直前に測定手段によって測定された距離と算出手段によって算出された距離との差分が閾値以下であるという距離条件を含む。   An autofocus camera according to a sixth aspect of the invention is dependent on the first aspect, further comprising a calculation unit that calculates a distance to the specific subject based on the focal point detected by the focal point detection unit, and the predetermined condition is that the photographing is performed It includes a distance condition that the difference between the distance measured by the measuring means and the distance calculated by the calculating means immediately before the command is issued is equal to or less than a threshold value.

請求項7の発明に従うオートフォーカスカメラは、請求項1ないし6のいずれかに従属し、測定手段による測定動作が行われる毎にフォーカスを調整する第3調整手段をさらに備え、合焦点検出手段は、フォーカスを変更できる最大範囲よりも狭い特定範囲でフォーカスを変更するフォーカス変更手段を含む。これによって、撮影指令が発行されたときに特定被写体の合焦点を短時間で検出することができる。   An autofocus camera according to a seventh aspect of the invention is dependent on any one of the first to sixth aspects, further comprising third adjusting means for adjusting the focus each time a measuring operation is performed by the measuring means, and the in-focus detecting means is And a focus changing means for changing the focus in a specific range narrower than the maximum range in which the focus can be changed. As a result, the focal point of the specific subject can be detected in a short time when the shooting command is issued.

請求項8の発明に従うオートフォーカスカメラは、請求項1ないし9のいずれかに従属し、測定手段による測定時刻を検出する時刻検出手段をさらに備え、第1調整手段は時刻検出手段によって検出された測定時刻を参照して調整動作を行う。   An autofocus camera according to an eighth aspect of the invention is dependent on any one of the first to ninth aspects, further comprising time detection means for detecting a measurement time by the measurement means, wherein the first adjustment means is detected by the time detection means. The adjustment operation is performed with reference to the measurement time.

請求項9の発明に従うオートフォーカスカメラは、請求項1ないし8のいずれかに従属し、測定手段は位相差検出方式によって特定被写体までの距離を測定し、合焦点検出手段はコントラスト検出方式によって合焦点を検出する。   The autofocus camera according to the invention of claim 9 is dependent on any one of claims 1 to 8, wherein the measuring means measures the distance to the specific subject by the phase difference detection method, and the focusing detection means is adjusted by the contrast detection method. Detect focus.

請求項10の発明に従うオートフォーカスカメラは、請求項1ないし9のいずれかに従属し、撮影指令に応答して撮影された被写界像を記録媒体に記録する記録手段をさらに備える。   An autofocus camera according to a tenth aspect of the invention is dependent on any one of the first to ninth aspects, and further comprises a recording means for recording an object scene image photographed in response to a photographing command on a recording medium.

請求項11の発明に従うフォーカス制御プログラムは、オートフォーカスカメラのプロセサによって実行されるフォーカス制御プログラムであって、(a)撮影指令が発行されないとき最近位置に存在する特定被写体までの距離を第1センサの出力に基づいて繰り返し測定し、(b)撮影指令が発行されたとき特定被写体の合焦点を第2センサの出力に基づいて検出し、(c)ステップ(a)の測定結果とステップ(b)の検出結果とに基づいて撮影指令が発行される前後における被写界の変化が所定条件を満たすか否かを判断し、(d)ステップ(c)の判断結果が肯定的であるときステップ(a)の測定結果に基づいてフォーカスを調整し、そして(e)ステップ(c)の判断結果が否定的であるときステップ(b)の検出結果に基づいてフォーカスを調整する。請求項1と同様、動体予測時により確実にフォーカスを調整することができる。   A focus control program according to an invention of claim 11 is a focus control program executed by a processor of an autofocus camera, and (a) when a shooting command is not issued, a distance to a specific subject present at the nearest position is determined by a first sensor. (B) When a shooting command is issued, the focal point of the specific subject is detected based on the output of the second sensor, and (c) the measurement result of step (a) and the step (b ) And whether or not the change in the object scene before and after the shooting command is issued satisfies a predetermined condition, and if (d) the determination result of step (c) is affirmative The focus is adjusted based on the measurement result of (a), and (e) when the determination result of step (c) is negative, the focus is adjusted based on the detection result of step (b). As in the first aspect, the focus can be adjusted more reliably when the moving object is predicted.

この発明によれば、撮影指令が発行される前後における被写界の変化に応じて異なる方法でフォーカスを調整するようにしたため、動体予測時により確実にフォーカスを調整することができる。   According to the present invention, since the focus is adjusted by a different method according to the change in the object scene before and after the shooting command is issued, the focus can be adjusted more reliably when the moving object is predicted.

この発明の上述の目的,その他の目的,特徴および利点は、図面を参照して行う以下の実施例の詳細な説明から一層明らかとなろう。   The above object, other objects, features and advantages of the present invention will become more apparent from the following detailed description of embodiments with reference to the drawings.

図1を参照して、この実施例のディジタルカメラ10は、ズームレンズ12,フォーカスレンズ14および絞りユニット16を含む。被写界の光学像は、これらの部材を通してイメージセンサ18の受光面つまり撮像面に照射される。撮像面では、光電変換によって被写体の光学像に対応する電荷つまり生画像信号が生成される。   With reference to FIG. 1, a digital camera 10 of this embodiment includes a zoom lens 12, a focus lens 14, and an aperture unit 16. The optical image of the object scene is irradiated on the light receiving surface, that is, the imaging surface of the image sensor 18 through these members. On the imaging surface, a charge corresponding to the optical image of the subject, that is, a raw image signal is generated by photoelectric conversion.

被写界のリアルタイム動画像つまりスルー画像をLCDモニタ38に表示するとき、CPU46は、絞りの開放をドライバ24に命令し、プリ露光および間引き読み出しの繰り返しをドライバ26に命令する。ドライバ24は、絞りユニット16の絞りを開放し、ドライバ26は、イメージセンサ18のプリ露光とこれによって生成された生画像信号の間引き読み出しとを繰り返し実行する。プリ露光および間引き読み出しは、1/30秒ごとに発生する垂直同期信号に応答して実行される。これによって、被写体の光学像に対応する低解像度の生画像信号が、30fpsのフレームレートでイメージセンサ18から出力される。   When displaying a real-time moving image of the object scene, that is, a through image, on the LCD monitor 38, the CPU 46 instructs the driver 24 to open the aperture and instructs the driver 26 to repeat pre-exposure and thinning-out reading. The driver 24 opens the aperture of the aperture unit 16, and the driver 26 repeatedly executes pre-exposure of the image sensor 18 and thinning readout of the raw image signal generated thereby. Pre-exposure and thinning readout are executed in response to a vertical synchronizing signal generated every 1/30 seconds. As a result, a low-resolution raw image signal corresponding to the optical image of the subject is output from the image sensor 18 at a frame rate of 30 fps.

出力された各フレームの生画像信号は、CDS/AGC/AD回路28によってノイズ除去,レベル調整およびA/D変換の一連の処理を施される。これによって、ディジタル信号である生画像データが得られる。信号処理回路30は、CDS/AGC/AD回路28から出力された生画像データに白バランス調整,色分離,YUV変換などの処理を施し、YUV形式の画像データを生成する。生成された画像データは、メモリ制御回路32によってSDRAM34に書き込まれ、その後同じメモリ制御回路32によってSDRAM34から読み出される。ビデオエンコーダ36は、メモリ制御回路32によって読み出された画像データをNTSCフォーマットに従うコンポジットビデオ信号に変換し、変換されたコンポジットビデオ信号をLCDモニタ38に与える。この結果、被写体のスルー画像がモニタ画面に表示される。   The output raw image signal of each frame is subjected to a series of processes of noise removal, level adjustment and A / D conversion by the CDS / AGC / AD circuit 28. Thereby, raw image data which is a digital signal is obtained. The signal processing circuit 30 performs processing such as white balance adjustment, color separation, and YUV conversion on the raw image data output from the CDS / AGC / AD circuit 28 to generate image data in YUV format. The generated image data is written into the SDRAM 34 by the memory control circuit 32 and then read out from the SDRAM 34 by the same memory control circuit 32. The video encoder 36 converts the image data read out by the memory control circuit 32 into a composite video signal conforming to the NTSC format, and supplies the converted composite video signal to the LCD monitor 38. As a result, a through image of the subject is displayed on the monitor screen.

信号処理回路30によって生成された画像データのうちYデータは、露光制御のために輝度評価回路40に与えられる。輝度評価回路40は、Yデータを1フレーム毎に積分して、輝度評価値を求める。CPU46は、輝度評価回路40によって求められた輝度評価値を垂直同期信号に応答して取り込み、ドライバ26に設定された露光時間をこの輝度評価値に基づいて更新する。これによって、スルー画像の明るさが調整される。   Of the image data generated by the signal processing circuit 30, Y data is given to the luminance evaluation circuit 40 for exposure control. The luminance evaluation circuit 40 integrates the Y data for each frame to obtain a luminance evaluation value. The CPU 46 fetches the luminance evaluation value obtained by the luminance evaluation circuit 40 in response to the vertical synchronization signal, and updates the exposure time set in the driver 26 based on the luminance evaluation value. Thereby, the brightness of the through image is adjusted.

スルー画像が表示されている状態でズームキー60が操作されると、CPU46は、ズームレンズ12の駆動をドライバ20に命令する。ズームレンズ12は、ドライバ20によって光軸方向に移動する。LCDモニタ38に表示されるスルー画像の画角は、ズームキー60の操作に応答して変化する。   When the zoom key 60 is operated while the through image is displayed, the CPU 46 commands the driver 20 to drive the zoom lens 12. The zoom lens 12 is moved in the optical axis direction by the driver 20. The angle of view of the through image displayed on the LCD monitor 38 changes in response to the operation of the zoom key 60.

シャッタボタン56が半押しされると、輝度評価回路40から出力された輝度評価値に基づいて、記録用の露光制御が行われる。このときは、ドライバ26に設定された露光時間だけでなく、ドライバ24に設定された絞り量も調整される。   When the shutter button 56 is half-pressed, exposure control for recording is performed based on the luminance evaluation value output from the luminance evaluation circuit 40. At this time, not only the exposure time set in the driver 26 but also the aperture amount set in the driver 24 is adjusted.

かかる露光制御が完了すると、パッシブAF方式およびコントラストAF方式に従ってフォーカスが調整される。なお、フォーカス調整にあたって、CPU46はドライバ22に移動命令を与える。フォーカスレンズ14は、ドライバ22によって光軸方向に移動される。   When such exposure control is completed, the focus is adjusted according to the passive AF method and the contrast AF method. Note that the CPU 46 gives a movement command to the driver 22 for focus adjustment. The focus lens 14 is moved in the optical axis direction by the driver 22.

パッシブAFに関して、被写界の光学像は、光学レンズ44aを通してリニアセンサ44cに照射され、光学レンズ44bを通してリニアセンサ44dに照射される。リニアセンサ44cおよび44dから出力された画像信号はCPU46に与えられる。リニアセンサ44cによって捉えられる画像とリニアセンサ44dによって捉えられる画像との間には、ずれ(位相差)がある。CPU46は、この位相差を用いた三角測量によって被写体までの距離を測定し、測定された距離に基づいて合焦点を検出する。   Regarding the passive AF, the optical image of the object scene is irradiated to the linear sensor 44c through the optical lens 44a, and is irradiated to the linear sensor 44d through the optical lens 44b. Image signals output from the linear sensors 44c and 44d are given to the CPU 46. There is a deviation (phase difference) between the image captured by the linear sensor 44c and the image captured by the linear sensor 44d. The CPU 46 measures the distance to the subject by triangulation using this phase difference, and detects the focal point based on the measured distance.

コントラストAFに関して、AF評価回路42は、信号処理回路30から出力されたYデータを1フレーム期間毎に積分して、AF評価値を求める。CPU46は、求められたAF評価値を垂直同期信号に応答して取り込み、取り込まれたAF評価値に基づいて合焦点を検出する。   Regarding contrast AF, the AF evaluation circuit 42 integrates the Y data output from the signal processing circuit 30 for each frame period to obtain an AF evaluation value. The CPU 46 captures the obtained AF evaluation value in response to the vertical synchronization signal, and detects the focal point based on the captured AF evaluation value.

パッシブAFでは、高速のフォーカス調整が可能であるが、精度が低い。コントラストAFでは、高精度のフォーカス調整が可能であるが、調整に時間がかかる。そこで、この実施例では、パッシブAFによって検出された合焦点の近傍までフォーカスレンズ14を移動させ、その後にコントラストAFによってフォーカスレンズ14を合焦点に設定するようにしている。これによって、高速かつ高精度のフォーカス制御が実現される。   In passive AF, high-speed focus adjustment is possible, but accuracy is low. With contrast AF, high-accuracy focus adjustment is possible, but adjustment takes time. Therefore, in this embodiment, the focus lens 14 is moved to the vicinity of the focal point detected by the passive AF, and then the focus lens 14 is set to the focal point by the contrast AF. Thereby, high-speed and high-precision focus control is realized.

なお、ズーム倍率が高いとき、注目する被写体までの距離が近いとき、被写界の明るさが不十分なとき、あるいはモードキー58によってマクロモードが選択されているときは、コントラストAFのみによってフォーカスが調整される。詳しくは、後段で説明する。   When the zoom magnification is high, the distance to the subject of interest is close, the brightness of the object field is insufficient, or the macro mode is selected with the mode key 58, the focus is set only by contrast AF. Is adjusted. Details will be described later.

シャッタボタン56が全押しされると、撮影処理が実行される。CPU46は、1回の本露光および1回の全画素読み出しをドライバ26に命令し、画像圧縮をJPEGコーデック48に命令する。ドライバ26は、イメージセンサ18に本露光を施し、これによって得られた生画像信号をイメージセンサ18から読み出す。読み出された生画像信号は、CDS/AGC/AD回路28および信号処理回路30によって上述と同様の処理を施される。これによって得られたYUV形式の画像データは、メモリ制御回路32によってSDRAM34に書き込まれる。   When the shutter button 56 is fully pressed, the photographing process is executed. The CPU 46 instructs the driver 26 to perform one main exposure and one full pixel readout, and instructs the JPEG codec 48 to perform image compression. The driver 26 performs the main exposure on the image sensor 18 and reads the raw image signal obtained thereby from the image sensor 18. The read raw image signal is subjected to the same processing as described above by the CDS / AGC / AD circuit 28 and the signal processing circuit 30. The obtained YUV format image data is written into the SDRAM 34 by the memory control circuit 32.

JPEGコーデック48は、メモリ制御回路32を通してSDRAM34から画像データを読み出し、読み出された画像データにJPEG圧縮を施し、そして圧縮画像データつまりJPEGデータをメモリ制御回路32を通してSDRAM34に書き込む。CPU46は、こうして得られたJPEGデータをメモリ制御回路32を通してSDRAM34から読み出し、読み出されたJPEGデータを含むJPEGファイルをI/F回路50を通して記録媒体52に記録する。   The JPEG codec 48 reads image data from the SDRAM 34 through the memory control circuit 32, performs JPEG compression on the read image data, and writes the compressed image data, that is, JPEG data, into the SDRAM 34 through the memory control circuit 32. The CPU 46 reads the JPEG data obtained in this way from the SDRAM 34 through the memory control circuit 32, and records the JPEG file including the read JPEG data on the recording medium 52 through the I / F circuit 50.

モードキー58によって動体予測モードが選択された場合は、シャッタボタン56が半押し状態のときに、パッシブAFによる測距が繰り返し実行される。測定された距離および測定時刻は履歴テーブル46tに登録される。シャッタボタン56が半押し状態から全押し状態に移行すると、履歴テーブル46tを参照して本露光時の被写体の距離が予測される。フォーカスレンズ14は予測された距離に対応する位置に設定され、設定が完了すると上述と同様の撮影処理が実行される。なお、シャッタボタン56が全押しされる前後で被写界に予想以上の変化が生じたときは、動体予測に代えてコントラストAFによるフォーカス調整が実行される。詳しくは、後述する。   When the moving object prediction mode is selected by the mode key 58, the distance measurement by the passive AF is repeatedly executed when the shutter button 56 is half pressed. The measured distance and measurement time are registered in the history table 46t. When the shutter button 56 shifts from the half-pressed state to the fully-pressed state, the distance of the subject during the main exposure is predicted with reference to the history table 46t. The focus lens 14 is set at a position corresponding to the predicted distance, and when the setting is completed, the same photographing process as described above is executed. Note that when an unexpected change occurs in the object scene before and after the shutter button 56 is fully pressed, focus adjustment using contrast AF is executed instead of moving object prediction. Details will be described later.

CPU46は、具体的には、図9〜図12に示すフロー図に従う処理を実行する。なお、これらのフロー図に対応する制御プログラムは、フラッシュメモリ54に記憶されている。   Specifically, the CPU 46 executes processing according to the flowcharts shown in FIGS. Note that a control program corresponding to these flowcharts is stored in the flash memory 54.

まず、図9のステップS1でスルー画像処理系を起動する。具体的には、プリ露光および間引き読み出しの繰り返しをドライバ26に命令する。これによってスルー画像がLCDモニタ38に出力される。   First, the through image processing system is activated in step S1 of FIG. Specifically, the driver 26 is instructed to repeat pre-exposure and thinning-out reading. As a result, a through image is output to the LCD monitor 38.

ステップS3ではシャッタボタン56が半押しされたか否かを判断し、ステップS5ではズームキー60が操作されたか否かを判断する。シャッタボタン56およびズームキー60のいずれも操作されないときは、ステップS9でスルー画像用AE処理を実行する。これによって、露光時間が調整される。AE処理が完了すると、ステップS3に戻る。ズームキー60が操作されたときはステップS5でYESと判断し、ステップS7でズーム処理を行う。これによって、ズームレンズ12が光軸方向に移動する。ズーム処理が完了すると、ステップS3に戻る。   In step S3, it is determined whether or not the shutter button 56 has been half-pressed. In step S5, it is determined whether or not the zoom key 60 has been operated. When neither the shutter button 56 nor the zoom key 60 is operated, through image AE processing is executed in step S9. Thereby, the exposure time is adjusted. When the AE process is completed, the process returns to step S3. When the zoom key 60 is operated, YES is determined in step S5, and zoom processing is performed in step S7. As a result, the zoom lens 12 moves in the optical axis direction. When the zoom process is completed, the process returns to step S3.

シャッタボタン56が半押しされると、ステップS3でYESと判断し、ステップS11で記録用AE処理を実行する。これによって、最適露光量が得られるように露光時間および絞り量が調整される。ステップS13では、撮影条件がパッシブAFに適した条件であるか否かを判定し、判定結果に応じて判定フラグflg1を“0”または“1”に設定する。つまり、撮影条件がパッシブAFに適していなければ判定フラグflg1を“0”に設定し、撮影条件がパッシブAFに適していれば判定フラグflg1を“1”に設定する。   If the shutter button 56 is half-pressed, YES is determined in step S3, and recording AE processing is executed in step S11. Thus, the exposure time and the aperture amount are adjusted so that the optimum exposure amount can be obtained. In step S13, it is determined whether or not the shooting condition is suitable for passive AF, and the determination flag flg1 is set to “0” or “1” depending on the determination result. That is, if the shooting condition is not suitable for passive AF, the determination flag flg1 is set to “0”, and if the shooting condition is suitable for passive AF, the determination flag flg1 is set to “1”.

判定フラグflg1が“0”であれば、ステップS15でNOと判断し、ステップS17でコントラストAFを実行する。判定フラグflg1がセット状態であれば、ステップS15からステップS19に進み、動体予測モードが選択されているか否かを判断する。動体予測モードが選択されていなければ、ステップS21およびS23でパッシブAFおよびコントラストAFをそれぞれ実行する。   If the determination flag flg1 is “0”, NO is determined in step S15, and contrast AF is executed in step S17. If the determination flag flg1 is in the set state, the process proceeds from step S15 to step S19, and it is determined whether the moving object prediction mode is selected. If the moving object prediction mode is not selected, passive AF and contrast AF are executed in steps S21 and S23, respectively.

パッシブAFおよびコントラストAFを併用する場合、フォーカスレンズ14は、パッシブAFによって合焦点近傍に高速に移動し、コントラストAFによって合焦点に設定される。コントラストAFのみを行う場合、フォーカスレンズ14は、所定速度で合焦点に設定される。   When passive AF and contrast AF are used together, the focus lens 14 moves at high speed in the vicinity of the focal point by passive AF, and is set to the focal point by contrast AF. When only contrast AF is performed, the focus lens 14 is set to a focal point at a predetermined speed.

ステップS17またはS23の処理が完了すると、ステップS25およびS27でシャッタボタン56の操作状態を判断する。シャッタボタン56の半押しが継続されている限り、ステップS25およびS27の処理を繰り返す。シャッタボタン56の操作が解除されたときは、ステップS27でYESと判断し、ステップS3に戻る。シャッタボタン56が全押しされたときは、ステップS25でYESと判断し、ステップS29で撮影処理を実行する。撮影処理によって、被写体像に対応するJPEGデータが格納されたJPEGファイルが、記録媒体52に記録される。撮影処理が完了すると、ステップS1に戻る。   When the process of step S17 or S23 is completed, the operation state of the shutter button 56 is determined in steps S25 and S27. As long as the shutter button 56 is half-pressed, the processes in steps S25 and S27 are repeated. When the operation of the shutter button 56 is released, YES is determined in the step S27, and the process returns to the step S3. If the shutter button 56 is fully pressed, YES is determined in the step S25, and the photographing process is executed in a step S29. A JPEG file storing JPEG data corresponding to the subject image is recorded on the recording medium 52 by the photographing process. When the photographing process is completed, the process returns to step S1.

ステップS19でYESと判断されると、ステップS31で動体予測処理を実行する。動体予測処理の途中でシャッタボタン56の操作が解除されると、実行フラグflg2が“0”に設定される。動体予測処理の途中でシャッタボタン56が全押しされると、フォーカス制御が実行され、実行フラグflg2が“1”に設定される。   If YES is determined in the step S19, a moving object prediction process is executed in a step S31. When the operation of the shutter button 56 is canceled during the moving object prediction process, the execution flag flg2 is set to “0”. When the shutter button 56 is fully pressed during the moving object prediction process, focus control is executed and the execution flag flg2 is set to “1”.

ステップS33では、かかる実行フラグflg2の状態を判別する。実行フラグflg2が“0”であればステップS3に戻り、実行フラグflg2が“1”であればステップS35で撮影処理を実行する。撮影処理が完了すると、ステップS1に戻る。   In step S33, the state of the execution flag flg2 is determined. If the execution flag flg2 is “0”, the process returns to step S3. If the execution flag flg2 is “1”, the photographing process is executed in step S35. When the photographing process is completed, the process returns to step S1.

ステップS13のパッシブAF判定処理は、図10に示すサブルーチンに従って実行される。説明に先立って、被写界Hには、図2(A)〜図2(C)に示すように3つのフォーカスエリアF0〜F2が割り当てられる。AF評価値は、フォーカスエリアF0〜F2の各々について求められる。フォーカスエリアF0〜F2とパッシブセンサ44の検知エリアMとの位置関係は、ズーム倍率に応じて変化する。   The passive AF determination process in step S13 is executed according to a subroutine shown in FIG. Prior to the description, three focus areas F0 to F2 are allocated to the scene H as shown in FIGS. 2 (A) to 2 (C). The AF evaluation value is obtained for each of the focus areas F0 to F2. The positional relationship between the focus areas F0 to F2 and the detection area M of the passive sensor 44 changes according to the zoom magnification.

図10のステップS41では、ズーム倍率を閾値TH1と比較する。ズーム倍率が閾値TH1以上であれば、検知エリアMは図2(A)に示すようにフォーカスエリアF1のみを跨いでいるとみなし、パッシブAFを禁止するべくステップS57で判定フラグflg1を“0”に設定する。なお、図2(A)に示す位置関係のときにパッシブAFを禁止するのは、注目する被写体がフォーカスエリアF0またはF2に属する場合にパッシブAFが誤調整を引き起こす可能性があるからである。   In step S41 of FIG. 10, the zoom magnification is compared with the threshold value TH1. If the zoom magnification is greater than or equal to the threshold value TH1, the detection area M is regarded as straddling only the focus area F1, as shown in FIG. 2A, and the determination flag flg1 is set to “0” in step S57 to prohibit passive AF. Set to. The reason why passive AF is prohibited in the positional relationship shown in FIG. 2A is that passive AF may cause misadjustment when the subject of interest belongs to the focus area F0 or F2.

一方、ズーム倍率が閾値TH1未満であれば、検知エリアMは図2(B)または図2(C)に示すようにフォーカスエリアF0〜F2を跨いでいるとみなし、ステップS43に進む。ステップS43では、検知エリアMのうちフォーカスエリアF0,F1およびF2とそれぞれ重複しているエリアM0,M1およびM2を有効エリアとして特定する。フラッシュメモリ54には、図3に示すようにズーム倍率と有効エリアM0〜M2との関係が記述された有効エリアテーブル54tが格納されている。ステップS43では、この有効エリアテーブル54tを参照して現時点のズーム倍率に対応する有効エリアM0〜M2を特定する。   On the other hand, if the zoom magnification is less than the threshold value TH1, the detection area M is regarded as straddling the focus areas F0 to F2 as shown in FIG. 2B or 2C, and the process proceeds to step S43. In step S43, areas M0, M1, and M2 that overlap with the focus areas F0, F1, and F2 in the detection area M are specified as effective areas. As shown in FIG. 3, the flash memory 54 stores an effective area table 54t describing the relationship between the zoom magnification and the effective areas M0 to M2. In step S43, the effective areas M0 to M2 corresponding to the current zoom magnification are specified with reference to the effective area table 54t.

ステップS45では、特定された有効エリアM0〜M2の各々に属する被写体までの距離をパッシブセンサ44の出力に基づいて測定し、続くステップS47では、求められた3つの距離の中から最短距離を特定する。   In step S45, the distance to the subject belonging to each of the specified effective areas M0 to M2 is measured based on the output of the passive sensor 44, and in the subsequent step S47, the shortest distance is specified from the obtained three distances. To do.

ステップS49では特定された最短距離が閾値TH2未満であるか否かを判断し、ステップS51ではマクロモードが選択されているか否かを判断し、そしてステップS53では被写界の明るさが閾値TH3未満であるか否かを輝度評価回路40の出力に基づいて判断する。ステップS49,S51およびS53の少なくとも1つでYESと判断されると、パッシブAFを許可するべくステップS55で判定フラグflg1を“1”に設定する。これに対して、ステップS47,S49およびS51の全てでNOと判断されると、パッシブAFを禁止するべくステップS57で判定フラグflg1を“0”に設定する。   In step S49, it is determined whether or not the specified shortest distance is less than the threshold value TH2. In step S51, it is determined whether or not the macro mode is selected. In step S53, the brightness of the object scene is set to the threshold value TH3. It is determined based on the output of the luminance evaluation circuit 40 whether or not it is less than the threshold value. If YES is determined in at least one of steps S49, S51, and S53, the determination flag flg1 is set to “1” in step S55 to permit passive AF. On the other hand, if NO is determined in all of steps S47, S49, and S51, the determination flag flg1 is set to “0” in step S57 to prohibit the passive AF.

被写体までの距離が短い場合およびマクロモードが選択されている場合にパッシブAFを禁止するのは、被写体までの距離が短いほどパッシブセンサ44およびイメージセンサ18の位置ずれの影響を無視できなくなるからである。また、被写界の明るさが不十分なときにパッシブAFを禁止するのは、被写界が暗いほどパッシブセンサ44の精度が低下するからである。ステップS53またはS55の処理が完了すると、上階層のルーチンに復帰する。   The reason why the passive AF is prohibited when the distance to the subject is short and when the macro mode is selected is that the influence of the positional deviation of the passive sensor 44 and the image sensor 18 cannot be ignored as the distance to the subject is short. is there. The reason why passive AF is prohibited when the brightness of the object scene is insufficient is that the accuracy of the passive sensor 44 decreases as the object scene becomes darker. When the process of step S53 or S55 is completed, the process returns to the upper hierarchy routine.

ステップS31の動体予測処理は、図11および図12に示すサブルーチンに従って実行される。   The moving object prediction process in step S31 is executed according to a subroutine shown in FIGS.

まずステップS61〜S65で、上述のステップS43〜S47と同様の処理を行う。ステップS67では、タイマ(図示せず)を参照して、ステップS63の処理を行った時刻を取得する。ステップS69では、ステップS65で特定した最短距離とステップS67で取得した時刻とを図4に示す履歴テーブル46tに登録する。ステップS71では、フォーカスエリアF0〜F2のうち最短距離の被写体が属するフォーカスエリアをエリアFPとして特定し、ステップS73では、最短距離に対応する位置にフォーカスレンズ14を移動させる。   First, in steps S61 to S65, processing similar to that in steps S43 to S47 described above is performed. In step S67, referring to a timer (not shown), the time when the process of step S63 is performed is acquired. In step S69, the shortest distance specified in step S65 and the time acquired in step S67 are registered in the history table 46t shown in FIG. In step S71, the focus area to which the subject with the shortest distance belongs is specified as the area FP in the focus areas F0 to F2, and in step S73, the focus lens 14 is moved to a position corresponding to the shortest distance.

シャッタボタン56が半押し状態であれば、ステップS75でYESと判断し、ステップS61に戻る。したがって、半押し状態が継続する間は、パッシブセンサ44を用いた測距が繰り返し実行され、測定された最短距離および測定時刻が履歴テーブル46tに順次登録される。   If the shutter button 56 is half-pressed, YES is determined in the step S75, and the process returns to the step S61. Therefore, while the half-pressed state continues, distance measurement using the passive sensor 44 is repeatedly executed, and the measured shortest distance and measurement time are sequentially registered in the history table 46t.

シャッタボタン56の操作が解除されると、ステップS75およびS77でNOと判断し、ステップS79で実行フラグflg2を“0”に設定してから上階層のルーチンに復帰する。   When the operation of the shutter button 56 is released, NO is determined in steps S75 and S77, the execution flag flg2 is set to "0" in step S79, and the process returns to the upper hierarchy routine.

シャッタボタン56が全押しされると、ステップS77でYESと判断し、ステップS81で微小コントラストAF処理を実行する。ここでは、フォーカスレンズ14の現在位置を中心とする“2α”の範囲でコントラストAFが実行される。   If the shutter button 56 is fully pressed, YES is determined in the step S77, and a minute contrast AF process is executed in a step S81. Here, contrast AF is executed in a range of “2α” centered on the current position of the focus lens 14.

フォーカスエリアF0,F1およびF2のAF評価値特性が図5に示す曲線CRV0,CRV1およびCRV2に沿って変化し、フォーカスレンズ14がレンズ位置Pcを中心とする“2α”の範囲で移動する場合、微小コントラストAFでは合焦点FP0〜FP2のうち合焦点FP1のみが検出される。一方、フォーカスエリアF0,F1およびF2のAF評価値特性が図6に示す曲線CRV0´,CRV1´およびCRV2´に従って変化し、フォーカスレンズ14がレンズ位置Pc´を中心とする“2α”の範囲で移動する場合、微小コントラストAFでは合焦点FP0´〜FP2´のうち合焦点FP0´およびFP1´が検出される。   When the AF evaluation value characteristics of the focus areas F0, F1 and F2 change along the curves CRV0, CRV1 and CRV2 shown in FIG. 5, and the focus lens 14 moves in the range of “2α” centered on the lens position Pc, In the small contrast AF, only the in-focus FP1 is detected among the in-focus FP0 to FP2. On the other hand, the AF evaluation value characteristics of the focus areas F0, F1, and F2 change according to the curves CRV0 ′, CRV1 ′, and CRV2 ′ shown in FIG. 6, and the focus lens 14 is in a range of “2α” centered on the lens position Pc ′. In the case of movement, the in-focus FP0 ′ and FP1 ′ are detected from the in-focus FP0 ′ to FP2 ′ in the minute contrast AF.

ステップS83では、微小コントラストAFによって複数の合焦点が検出されたか否かを判断する。ここでNOであればそのままステップS87に進むが、YESであればステップS85で至近端側の合焦点を特定してからステップS87に進む。ステップS87では、注目合焦点(微小コントラストAFによって検出された唯一の合焦点、またはステップS85で特定された合焦点)に対応するフォーカスエリアをエリアFCとして特定し、ステップS89では、注目合焦点に対応する被写体までの距離を算出する。   In step S83, it is determined whether or not a plurality of in-focus points are detected by the minute contrast AF. If “NO” here, the process proceeds to a step S87 as it is, but if “YES”, the focus point on the closest end side is specified in a step S85, and then, the process proceeds to a step S87. In step S87, the focus area corresponding to the focused point of interest (the only focused point detected by the minute contrast AF or the focused point specified in step S85) is specified as the area FC, and in step S89, the focused point of focus is set. The distance to the corresponding subject is calculated.

ステップS91では、フォーカスエリアFPおよびFCが互いに一致するか否かを判断する。ステップS93では、直前のステップS65の処理によって特定された最短距離とステップS89で算出された距離との差分が閾値TH4以下であるか否かを判断する。なお、閾値TH4は、シャッタボタン56が半押し状態のときの被写体の移動速度に応じて変化させるようにしてもよい。   In step S91, it is determined whether or not the focus areas FP and FC match each other. In step S93, it is determined whether or not the difference between the shortest distance specified in the immediately preceding step S65 and the distance calculated in step S89 is equal to or less than a threshold value TH4. The threshold value TH4 may be changed according to the moving speed of the subject when the shutter button 56 is half-pressed.

ステップS91およびS93の両方でYESと判断されるとステップS95に進み、撮影処理(本露光)を行うときの被写体までの距離を履歴テーブル46tを参照して予測する。ステップS97では、予測された距離に対応する位置にフォーカスレンズ14を移動させる。移動が完了すると、ステップS101で実行フラグflg2を“1”に設定してから上階層のルーチンに復帰する。   If YES is determined in both steps S91 and S93, the process proceeds to step S95, and the distance to the subject when performing the photographing process (main exposure) is predicted with reference to the history table 46t. In step S97, the focus lens 14 is moved to a position corresponding to the predicted distance. When the movement is completed, the execution flag flg2 is set to “1” in step S101, and then the process returns to the upper layer routine.

これに対して、ステップS91およびS93のいずれか一方でもNOと判断されたときは、ステップS99でフォーカスレンズ14を注目合焦点に設定し、ステップS101で実行フラグflg2を“1”に設定し、その後、上階層のルーチンに復帰する。つまり、フォーカスエリアFPおよびFCが互いに一致しないとき、あるいは一致しても距離の差分が閾値TH4よりも大きいときは、動体予測が中止され、コントラストAF(微小コントラストAF)に従うフォーカス調整が実行される。   On the other hand, if it is determined NO in either one of steps S91 and S93, the focus lens 14 is set as the focused focal point in step S99, the execution flag flg2 is set to “1” in step S101, Thereafter, the process returns to the upper hierarchy routine. That is, when the focus areas FP and FC do not coincide with each other or when the distance difference is larger than the threshold value TH4, the moving object prediction is stopped and the focus adjustment according to the contrast AF (micro contrast AF) is executed. .

図7(A)に示すように被写界H内で動きベクトルAX1に従って移動する子供CLを動体予測モードで撮影する場合、シャッタボタン56が半押しされている状態では、パッシブAFの繰り返しによってフォーカスが子供CLに追従する。履歴テーブル46tには、測定された距離と測定時刻とが蓄積される。   As shown in FIG. 7A, when the child CL moving in the object scene H according to the motion vector AX1 is photographed in the moving object prediction mode, the focus is obtained by repeating the passive AF when the shutter button 56 is half-pressed. Follows the child CL. The history table 46t stores measured distances and measurement times.

図7(B)に示すように、シャッタボタン56が全押しされる前後における子供CLの動きを表す動きベクトルAX2が動きベクトルAX1と等しく、この結果、子供CLが属するフォーカスエリアがシャッタボタン56が全押しされる前後で一致し、かつパッシブAFによって最後に測定された距離と微小コントラストAFによって測定された距離との差分が閾値TH4以下である場合、ステップS91およびS93でYESと判断される。フォーカスは、履歴テーブル46tを参照して調整される。   As shown in FIG. 7B, the motion vector AX2 representing the motion of the child CL before and after the shutter button 56 is fully pressed is equal to the motion vector AX1, and as a result, the focus area to which the child CL belongs is determined by the shutter button 56. If the difference between the distance measured last by passive AF and the distance measured by minute contrast AF is equal to or less than the threshold TH4 before and after being fully pressed, YES is determined in steps S91 and S93. The focus is adjusted with reference to the history table 46t.

しかし、動きベクトルAX2が図8(A)に示すように変化し、この結果、子供CLが属するフォーカスエリアがシャッタボタン56が全押しされる前後で異なる場合、ステップS91でNOと判断される。フォーカスは、微小コントラストAFによって特定された合焦点に設定される。また、動きベクトルAX2が図8(B)に示すように変化し、この結果、パッシブAFによって最後に測定された距離と微小コントラストAFによって測定された距離との差分が閾値TH4を上回る場合、ステップS93でNOと判断される。フォーカスは、微小コントラストAFによって特定された合焦点に設定される。   However, if the motion vector AX2 changes as shown in FIG. 8A and, as a result, the focus area to which the child CL belongs differs before and after the shutter button 56 is fully pressed, NO is determined in step S91. The focus is set to the focal point specified by the minute contrast AF. If the motion vector AX2 changes as shown in FIG. 8B, and the difference between the distance measured last by the passive AF and the distance measured by the minute contrast AF exceeds the threshold value TH4, the step It is determined NO in S93. The focus is set to the focal point specified by the minute contrast AF.

パッシブAFに代えてコントラストAFによってフォーカスを調整するのは、図8(A)および図8(B)における子供CLの動きが動体予測の想定外の動きであり、動体予測よりもむしろコントラストAFの方が良好にフォーカスを調整できるからである。   The focus is adjusted by contrast AF instead of passive AF because the movement of the child CL in FIG. 8 (A) and FIG. 8 (B) is an unexpected movement of the moving object prediction. This is because the focus can be adjusted better.

また、図8(B)のように子供CLが突然カメラ前方に迫って来た場合、シャッタボタン56が半押しされた当初は子供CLまでの距離が閾値TH2を上回っていたにも拘わらず、シャッタボタン56が全押しされた時点では子供CLまでの距離が閾値TH2以下となっていることがある。閾値TH2以下では、パッシブセンサ44とイメージセンサ18との位置ずれの影響が無視できない。図8(B)でコントラストAFに従うフォーカス調整を行う理由は、ここにもある。   In addition, when the child CL suddenly approaches the front of the camera as shown in FIG. 8B, the distance to the child CL is initially greater than the threshold value TH2 when the shutter button 56 is half-pressed. When the shutter button 56 is fully pressed, the distance to the child CL may be less than the threshold value TH2. Below the threshold TH2, the influence of the positional deviation between the passive sensor 44 and the image sensor 18 cannot be ignored. The reason for performing the focus adjustment according to the contrast AF in FIG.

以上の説明から分かるように、CPU46は、シャッタボタン56が半押し状態のとき、最近位置に存在する特定被写体までの距離をパッシブセンサ44の出力に基づいて繰り返し測定する(S61~S65)。CPU46はまた、シャッタボタン56が全押しされたとき、特定被写体の合焦点をイメージセンサ18の出力に基づいて検出する(S81~S83)。CPU46はさらに、パッシブセンサ44を用いた被写体距離の測定結果とイメージセンサ18を用いた合焦点の検出結果とに基づいて、シャッタボタン56が全押しされる前後における被写界の変化が所定条件を満たすか否かを判断する(S91, S93)。判断結果が肯定的であれば、被写体距離の測定結果に基づいてフォーカスが調整される。一方、判断結果が否定的であれば、合焦点の検出結果に基づいてフォーカスが調整される。   As can be seen from the above description, when the shutter button 56 is half-pressed, the CPU 46 repeatedly measures the distance to the specific subject present at the nearest position based on the output of the passive sensor 44 (S61 to S65). The CPU 46 also detects the focal point of the specific subject based on the output of the image sensor 18 when the shutter button 56 is fully pressed (S81 to S83). Further, the CPU 46 determines whether the change in the object scene before and after the shutter button 56 is fully pressed is a predetermined condition based on the measurement result of the object distance using the passive sensor 44 and the detection result of the in-focus point using the image sensor 18. It is determined whether or not the condition is satisfied (S91, S93). If the determination result is affirmative, the focus is adjusted based on the measurement result of the subject distance. On the other hand, if the determination result is negative, the focus is adjusted based on the focus detection result.

つまり、シャッタボタン56が全押しされる前後における被写界の変化が所定条件を満たせば、パッシブセンサ44を用いた被写体距離の測定結果の信頼性が高いとみなし、この測定結果に基づいてフォーカスが調整される。一方、シャッタボタン56が全押しされる前後における被写界の変化が所定条件を満たさないときは、パッシブセンサ44による測定結果の信頼性が低いとみなし、イメージセンサ18を用いた合焦点の検出結果に基づいてフォーカスが調整される。これによって、動体予測時により確実にフォーカスを調整することができる。   That is, if the change in the field before and after the shutter button 56 is fully pressed satisfies a predetermined condition, it is considered that the measurement result of the subject distance using the passive sensor 44 is high, and the focus is determined based on the measurement result. Is adjusted. On the other hand, when the change in the scene before and after the shutter button 56 is fully pressed does not satisfy the predetermined condition, it is considered that the reliability of the measurement result by the passive sensor 44 is low, and the in-focus detection using the image sensor 18 is performed. The focus is adjusted based on the result. Thereby, the focus can be adjusted more reliably at the time of moving object prediction.

なお、この実施例では、フォーカスを調整するときにフォーカスレンズ14のみを光軸方向に移動させるようにしているが、フォーカスレンズ14に代えてあるいはフォーカスレンズ14とともに、イメージセンサ18を光軸方向に移動させるようにしてもよい。また、この実施例では、AF方式の1つとしてパッシブAFを採用しているが、パッシブAFに代えてアクティブAFを採用するようにしてもよい。   In this embodiment, when the focus is adjusted, only the focus lens 14 is moved in the optical axis direction, but the image sensor 18 is moved in the optical axis direction instead of the focus lens 14 or together with the focus lens 14. You may make it move. In this embodiment, passive AF is adopted as one of AF methods, but active AF may be adopted instead of passive AF.

この発明の一実施例の構成を示す図解図である。It is an illustration figure which shows the structure of one Example of this invention. (A)はズーム倍率を望遠側に設定したときの被写界とパッシブセンサの検知エリアとの位置関係を示す図解図であり、(B)はズーム倍率を中間値に設定したときの被写界とパッシブセンサの検知エリアとの位置関係を示す図解図であり、(C)はズーム倍率を広角側に設定したときの被写界とパッシブセンサの検知エリアとの位置関係を示す図解図である。(A) is an illustrative view showing the positional relationship between the object field and the detection area of the passive sensor when the zoom magnification is set to the telephoto side, and (B) is an object image when the zoom magnification is set to an intermediate value. It is an illustration figure which shows the positional relationship of the detection field of a field and a passive sensor, (C) is an illustration figure which shows the positional relationship of the field of view and the detection area of a passive sensor when zoom magnification is set to the wide angle side. is there. 図1実施例に適用される有効エリアテーブルの一例を示す図解図である。It is an illustration figure which shows an example of the effective area table applied to the FIG. 1 Example. 図1実施例に適用される履歴テーブルの一例を示す図解図である。It is an illustration figure which shows an example of the log | history table applied to the FIG. 1 Example. レンズ位置に対するAF評価値の変化の一例を示すグラフである。It is a graph which shows an example of the change of AF evaluation value with respect to a lens position. レンズ位置に対するAF評価値の変化の他の一例を示すグラフである。It is a graph which shows another example of the change of AF evaluation value with respect to a lens position. (A)はシャッタボタンが全押しされる直前の被写界の一例を示す図解図であり、(B)はシャッタボタンが全押しされた直後の被写界の一例を示す図解図である。(A) is an illustrative view showing an example of an object scene immediately before the shutter button is fully pressed, and (B) is an illustrative view showing an example of an object scene immediately after the shutter button is fully pressed. (A)はシャッタボタンが全押しされた直後の被写界の他の一例を示す図解図であり、(B)はシャッタボタンが全押しされた直後の被写界のその他の一例を示す図解図である。(A) is an illustrative view showing another example of the scene immediately after the shutter button is fully pressed, and (B) is an illustrative view showing another example of the scene immediately after the shutter button is fully pressed. FIG. 図1実施例に適応されるCPUの動作の一部を示すフロー図である。It is a flowchart which shows a part of operation | movement of CPU applied to the FIG. 1 Example. 図1実施例に適応されるCPUの動作の他の一部を示すフロー図である。It is a flowchart which shows a part of other operation | movement of CPU applied to the FIG. 1 Example. 図1実施例に適応されるCPUの動作のその他の一部を示すフロー図である。It is a flowchart which shows a part of other operation | movement of CPU applied to the FIG. 1 Example. 図1実施例に適応されるCPUの動作のさらにその他の一部を示すフロー図である。FIG. 12 is a flowchart showing yet another portion of behavior of the CPU applied to the embodiment in FIG. 1.

符号の説明Explanation of symbols

10 …ディジタルカメラ
12 …ズームレンズ
14 …フォーカスレンズ
16 …絞りユニット
18 …イメージセンサ
40 …輝度評価回路
42 …AF評価回路
44 …パッシブセンサ
46 …CPU
DESCRIPTION OF SYMBOLS 10 ... Digital camera 12 ... Zoom lens 14 ... Focus lens 16 ... Aperture unit 18 ... Image sensor 40 ... Luminance evaluation circuit 42 ... AF evaluation circuit 44 ... Passive sensor 46 ... CPU

Claims (11)

撮影指令が発行されないとき最近位置に存在する特定被写体までの距離を第1センサの出力に基づいて繰り返し測定する測定手段、
前記撮影指令が発行されたとき前記特定被写体の合焦点を第2センサの出力に基づいて検出する合焦点検出手段、
前記測定手段の測定結果と前記合焦点検出手段の検出結果とに基づいて前記撮影指令が発行される前後における前記被写界の変化が所定条件を満たすか否かを判断する判断手段、
前記判断手段の判断結果が肯定的であるとき前記測定手段の測定結果に基づいてフォーカスを調整する第1調整手段、および
前記判断手段の判断結果が否定的であるとき前記合焦点検出手段の検出結果に基づいて前記フォーカスを調整する第2調整手段を備える、オートフォーカスカメラ。
Measuring means for repeatedly measuring the distance to the specific subject existing at the latest position based on the output of the first sensor when the imaging command is not issued;
In-focus detection means for detecting the in-focus point of the specific subject based on the output of the second sensor when the shooting command is issued;
Judgment means for judging whether a change in the object scene before and after the shooting command is issued satisfies a predetermined condition based on the measurement result of the measurement means and the detection result of the in-focus detection means;
First adjustment means for adjusting the focus based on the measurement result of the measurement means when the determination result of the determination means is affirmative; and detection of the in-focus detection means when the determination result of the determination means is negative An autofocus camera comprising second adjusting means for adjusting the focus based on a result.
被写界には複数のエリアが割り当てられ、
前記所定条件は、前記特定被写体が存在するエリアが前記撮影指令が発行される前後で一致するというエリア条件を含む、請求項1記載のオートフォーカスカメラ。
Multiple areas are assigned to the scene,
The autofocus camera according to claim 1, wherein the predetermined condition includes an area condition in which an area where the specific subject exists matches before and after the shooting command is issued.
前記合焦点検出手段によって検出された合焦点に基づいて前記特定被写体までの距離を算出する算出手段をさらに備え、
前記所定条件は、前記撮影指令が発行される直前に前記測定手段によって測定された距離と前記算出手段によって算出された距離との差分が閾値以下であるという距離条件をさらに含む、請求項2記載のオートフォーカスカメラ。
A calculation unit that calculates a distance to the specific subject based on the focal point detected by the focal point detection unit;
3. The predetermined condition further includes a distance condition that a difference between a distance measured by the measurement unit and a distance calculated by the calculation unit immediately before the photographing command is issued is equal to or less than a threshold value. Autofocus camera.
前記測定手段は、前記複数のエリアの各々に属する被写体までの距離を測定する測定実行手段、および前記測定実行手段によって測定された複数の距離の中から最短距離を検出する距離検出手段を含む、請求項3記載のオートフォーカスカメラ。   The measurement unit includes a measurement execution unit that measures a distance to a subject belonging to each of the plurality of areas, and a distance detection unit that detects a shortest distance from the plurality of distances measured by the measurement execution unit. The autofocus camera according to claim 3. 前記距離検出手段によって検出された最短距離に対応するエリアを前記複数のエリアの中から特定する第1エリア特定手段、および
前記合焦点検出手段によって検出された合焦点に対応するエリアを前記複数のエリアの中から特定する第2エリア特定手段をさらに備える、請求項4記載のオートフォーカスカメラ。
A first area specifying means for specifying an area corresponding to the shortest distance detected by the distance detecting means from the plurality of areas; and an area corresponding to the focal point detected by the focal point detecting means. The autofocus camera according to claim 4, further comprising second area specifying means for specifying the area.
前記合焦点検出手段によって検出された合焦点に基づいて前記特定被写体までの距離を算出する算出手段をさらに備え、
前記所定条件は、前記撮影指令が発行される直前に前記測定手段によって測定された距離と前記算出手段によって算出された距離との差分が閾値以下であるという距離条件を含む、請求項1記載のオートフォーカスカメラ。
A calculation unit that calculates a distance to the specific subject based on the focal point detected by the focal point detection unit;
The predetermined condition includes a distance condition that a difference between a distance measured by the measuring unit and a distance calculated by the calculating unit immediately before the photographing command is issued is equal to or less than a threshold value. Auto focus camera.
前記測定手段による測定動作が行われる毎に前記フォーカスを調整する第3調整手段をさらに備え、
前記合焦点検出手段は、前記フォーカスを変更できる最大範囲よりも狭い特定範囲で前記フォーカスを変更するフォーカス変更手段を含む、請求項1ないし6のいずれかに記載のオートフォーカスカメラ。
A third adjusting means for adjusting the focus each time a measuring operation is performed by the measuring means;
7. The autofocus camera according to claim 1, wherein the focus detection unit includes a focus change unit that changes the focus in a specific range narrower than a maximum range in which the focus can be changed.
前記測定手段による測定時刻を検出する時刻検出手段をさらに備え、
前記第1調整手段は前記時刻検出手段によって検出された測定時刻を参照して調整動作を行う、請求項1ないし9のいずれかに記載のオートフォーカスカメラ。
It further comprises time detection means for detecting the measurement time by the measurement means,
The autofocus camera according to any one of claims 1 to 9, wherein the first adjustment unit performs an adjustment operation with reference to a measurement time detected by the time detection unit.
前記測定手段は位相差検出方式によって前記特定被写体までの距離を測定し、
前記合焦点検出手段はコントラスト検出方式によって前記合焦点を検出する、請求項1ないし8のいずれかに記載のオートフォーカスカメラ。
The measuring means measures the distance to the specific subject by a phase difference detection method,
9. The autofocus camera according to claim 1, wherein the focus detection means detects the focus by a contrast detection method.
前記撮影指令に応答して撮影された被写界像を記録媒体に記録する記録手段をさらに備える、請求項1ないし9のいずれかに記載のオートフォーカスカメラ。   The autofocus camera according to claim 1, further comprising recording means for recording an object scene image photographed in response to the photographing command on a recording medium. オートフォーカスカメラのプロセサによって実行されるフォーカス制御プログラムであって、
(a) 撮影指令が発行されないとき最近位置に存在する特定被写体までの距離を第1センサの出力に基づいて繰り返し測定し、
(b) 前記撮影指令が発行されたとき前記特定被写体の合焦点を第2センサの出力に基づいて検出し、
(c) 前記ステップ(a)の測定結果と前記ステップ(b)の検出結果とに基づいて前記撮影指令が発行される前後における前記被写界の変化が所定条件を満たすか否かを判断し、
(d) 前記ステップ(c)の判断結果が肯定的であるとき前記ステップ(a)の測定結果に基づいてフォーカスを調整し、そして
(e) 前記ステップ(c)の判断結果が否定的であるとき前記ステップ(b)の検出結果に基づいて前記フォーカスを調整する、フォーカス制御プログラム。
A focus control program executed by a processor of an autofocus camera,
(a) When the shooting command is not issued, the distance to the specific subject existing at the nearest position is repeatedly measured based on the output of the first sensor,
(b) detecting the focal point of the specific subject based on the output of the second sensor when the shooting command is issued;
(c) Based on the measurement result of the step (a) and the detection result of the step (b), it is determined whether or not the change in the object scene before and after the shooting command is issued satisfies a predetermined condition. ,
(d) adjusting the focus based on the measurement result of step (a) when the determination result of step (c) is affirmative; and
(e) A focus control program for adjusting the focus based on the detection result of the step (b) when the determination result of the step (c) is negative.
JP2004039208A 2004-02-17 2004-02-17 Auto-focus camera Pending JP2005233985A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004039208A JP2005233985A (en) 2004-02-17 2004-02-17 Auto-focus camera

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004039208A JP2005233985A (en) 2004-02-17 2004-02-17 Auto-focus camera

Publications (1)

Publication Number Publication Date
JP2005233985A true JP2005233985A (en) 2005-09-02

Family

ID=35017039

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004039208A Pending JP2005233985A (en) 2004-02-17 2004-02-17 Auto-focus camera

Country Status (1)

Country Link
JP (1) JP2005233985A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008026789A (en) * 2006-07-25 2008-02-07 Canon Inc Imaging apparatus and method for controlling focus
WO2009011547A1 (en) * 2007-07-18 2009-01-22 Jahwa Electronics Co., Ltd. Camera system with auto-focus function and control method thereof
JP2011033730A (en) * 2009-07-30 2011-02-17 Canon Inc Focusing device and method, and imaging apparatus
JP2011065098A (en) * 2009-09-18 2011-03-31 Canon Inc Focus detecting device and method used in the same
JP2011107721A (en) * 2011-01-20 2011-06-02 Fujifilm Corp Photographing device and focusing control method
JP2013054375A (en) * 2012-11-01 2013-03-21 Casio Comput Co Ltd Camera, camera control program, and camera control method
WO2015083539A1 (en) * 2013-12-03 2015-06-11 ソニー株式会社 Imaging device, method, and program

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008026789A (en) * 2006-07-25 2008-02-07 Canon Inc Imaging apparatus and method for controlling focus
WO2009011547A1 (en) * 2007-07-18 2009-01-22 Jahwa Electronics Co., Ltd. Camera system with auto-focus function and control method thereof
US8582017B2 (en) 2007-07-18 2013-11-12 Samsung Electronics Co., Ltd. Camera system with auto-focus function and control method thereof
US8810714B2 (en) 2007-07-18 2014-08-19 Samsung Electronics Co., Ltd. Camera system with auto-focus function and control method thereof
JP2011033730A (en) * 2009-07-30 2011-02-17 Canon Inc Focusing device and method, and imaging apparatus
JP2011065098A (en) * 2009-09-18 2011-03-31 Canon Inc Focus detecting device and method used in the same
JP2011107721A (en) * 2011-01-20 2011-06-02 Fujifilm Corp Photographing device and focusing control method
JP2013054375A (en) * 2012-11-01 2013-03-21 Casio Comput Co Ltd Camera, camera control program, and camera control method
WO2015083539A1 (en) * 2013-12-03 2015-06-11 ソニー株式会社 Imaging device, method, and program
JPWO2015083539A1 (en) * 2013-12-03 2017-03-16 ソニー株式会社 Imaging apparatus and method, and program

Similar Documents

Publication Publication Date Title
US20190086768A1 (en) Automatic focusing apparatus and control method therefor
JP5546646B2 (en) Imaging apparatus and main subject recognition method
US8284300B2 (en) Electronic camera
KR100799058B1 (en) Electronic camera and focus controlling method
JP4286292B2 (en) Electronic camera
JP2010015024A (en) Image pickup apparatus, control method thereof, program and storage medium
JP5665512B2 (en) Imaging apparatus and main subject detection method
US9036075B2 (en) Image pickup apparatus, method for controlling the same, and storage medium
JP2005233985A (en) Auto-focus camera
JP2007025559A (en) Focusing position detecting method and device
JP4983479B2 (en) Imaging device
JP2004341095A (en) Automatic focusing camera
JP2006079069A (en) Electronic camera
JP5229371B2 (en) Imaging device
JP4936799B2 (en) Electronic camera
JP5030883B2 (en) Digital still camera and control method thereof
JP2008026672A (en) Automatic focusing device and imaging device
JP4275001B2 (en) Electronic camera
JP5168424B2 (en) Imaging device
JP2006039254A (en) Camera
JP2005242271A (en) Autofocus camera
JP2005070450A (en) Video camera
JP3869689B2 (en) Auto focus camera
JP4420651B2 (en) Optical device
JP5173170B2 (en) Video camera

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20061115

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20090918

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20091020

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20091221

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20100216