JP4343192B2 - Automatic focusing device, digital camera, and portable information input device - Google Patents

Automatic focusing device, digital camera, and portable information input device Download PDF

Info

Publication number
JP4343192B2
JP4343192B2 JP2006168651A JP2006168651A JP4343192B2 JP 4343192 B2 JP4343192 B2 JP 4343192B2 JP 2006168651 A JP2006168651 A JP 2006168651A JP 2006168651 A JP2006168651 A JP 2006168651A JP 4343192 B2 JP4343192 B2 JP 4343192B2
Authority
JP
Japan
Prior art keywords
focus position
subject
focus
ccd
external
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.)
Expired - Fee Related
Application number
JP2006168651A
Other languages
Japanese (ja)
Other versions
JP2006309259A (en
Inventor
憲昭 尾島
純一 篠原
達敏 北島
彰宏 吉田
茂 入沢
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.)
Ricoh Co Ltd
Original Assignee
Ricoh 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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP2006168651A priority Critical patent/JP4343192B2/en
Publication of JP2006309259A publication Critical patent/JP2006309259A/en
Application granted granted Critical
Publication of JP4343192B2 publication Critical patent/JP4343192B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

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

Description

この発明は、自動合焦装置、デジタルカメラ、および携帯情報入力装置に関し、詳細には、外部AFとCCD−AFで合焦位置の検出を行う自動合焦装置、デジタルカメラ、および携帯情報入力装置に関する。   The present invention relates to an automatic focusing device, a digital camera, and a portable information input device, and more specifically, an automatic focusing device, a digital camera, and a portable information input device that detect an in-focus position with an external AF and a CCD-AF. About.

従来の電子スチルカメラのAF方式としては、CCDもしくはフォーカスレンズを光軸方向に駆動しながらCCDに蓄積される輝度信号によりピントのピークを見つけるCCD−AF方式か、三角測量方式の自動焦点調節機構が単独で使用されていた。   As an AF method for a conventional electronic still camera, a CCD-AF method for finding a focus peak by a luminance signal accumulated in the CCD while driving a CCD or a focus lens in the optical axis direction, or a triangulation type automatic focus adjustment mechanism Was used alone.

しかしながら、CCD−AF方式は、ピントを合わせたいエリアに高輝度な被写体(電球、ろうそくの炎、反射している看板など)があると、ピントの山を発見できず、疑合焦してしまうという問題がある。さらに、暗い場面でも、誤合焦の可能性があるという問題がある。また、上述の三角測量方式では、至近距離側での測距のパララックスずれが発生しやすく、また、望遠側での性能が低いなどの問題がある。   However, in the CCD-AF method, if there is a high-luminance subject (such as a light bulb, a candle flame, or a reflective signboard) in the area to be focused, it will not be possible to find the focus mountain and will be in doubt. There is a problem. Furthermore, there is a problem that there is a possibility of erroneous focusing even in a dark scene. Further, the above-described triangulation method has a problem that a parallax shift in distance measurement on the close distance side is likely to occur, and performance on the telephoto side is low.

本発明は、上記に鑑みてなされたものであり、短時間でかつ正確に合焦位置を検出することが可能な自動合焦装置、デジタルカメラ、および携帯情報入力装置を提供することを目的とする。   The present invention has been made in view of the above, and an object of the present invention is to provide an automatic focusing device, a digital camera, and a portable information input device capable of accurately detecting a focusing position in a short time. To do.

上述した課題を解決するために、請求項1にかかる発明は、被写体像を所定位置に結像するフォーカスレンズ系を含むレンズ系と、前記レンズ系を介して入力される被写体像を撮像して画像データを出力する撮像手段と、前記撮像手段を使用して、基準位置の近傍で前記レンズ系を移動させて被写体のコントラストをサンプリングして合焦位置を検出する第1の合焦位置検出手段と、前記撮像手段とは異なる光電変換手段を使用して、被写体との距離を検出して前記レンズ系の合焦位置を検出する第2の合焦位置検出手段と、最終的な合焦位置に決定する合焦位置決定手段と、を備え、前記第2の合焦位置検出手段は、合焦動作を指示するための合焦動作操作部材の操作に先行して、所定の時間間隔で被写体との距離を測距する測距処理を実行することで、前記合焦動作操作部材が操作された際の被写体距離を予測し、前記第1の合焦位置検出手段は、前記合焦動作操作部材が操作された場合に、前記予測された被写体距離に基づいてサンプリング開始位置を決定してサンプリング動作を実行し、前記合焦位置決定手段は、前記第1の合焦位置検出手段でサンプリングされた被写体のコントラストが最大となる位置を最終的な合焦位置に決定することを特徴とする自動合焦装置である。   In order to solve the above-described problem, the invention according to claim 1 is configured to capture a subject image input through the lens system including a lens system including a focus lens system that forms a subject image at a predetermined position. Image pickup means for outputting image data and first focus position detection means for detecting the focus position by sampling the contrast of the subject by moving the lens system in the vicinity of a reference position using the image pickup means And a second focus position detection means for detecting a focus position of the lens system by detecting a distance to a subject using a photoelectric conversion means different from the imaging means, and a final focus position Focusing position determining means for determining the subject at a predetermined time interval prior to the operation of the focusing operation member for instructing the focusing operation. The distance measurement process to measure the distance to the Thus, the subject distance when the in-focus operation member is operated is predicted, and the first in-focus position detection unit is configured to predict the predicted distance when the in-focus operation member is operated. The sampling start position is determined based on the subject distance and the sampling operation is executed, and the focus position determination means finally determines the position where the contrast of the subject sampled by the first focus position detection means is maximum. An automatic focusing device is characterized in that the focus position is determined.

また、請求項2にかかる発明は、請求項1に記載の自動合焦装置において、前記合焦位置決定手段は、前記第1の合焦位置検出手段でサンプリングされた被写体のコントラストにピークが無い場合には、前記第2の合焦位置検出手段により予測された合焦位置を最終的な合焦位置に決定することを特徴とする。   According to a second aspect of the present invention, in the automatic focusing device according to the first aspect, the focus position determining means has no peak in the contrast of the subject sampled by the first focus position detecting means. In this case, the in-focus position predicted by the second in-focus position detecting means is determined as the final in-focus position.

また、請求項3にかかる発明は、請求項1に記載の自動合焦装置において、前記合焦位置決定手段は、前記第1の合焦位置検出手段によるサンプリング動作と並行して、前記第2の合焦位置検出手段を実行し、前記第1の合焦位置検出手段でサンプリングされた被写体のコントラストにピークが無い場合には前記第2の合焦位置検出手段で検出された合焦位置を最終的な合焦位置に決定することを特徴とする。   According to a third aspect of the present invention, in the automatic focusing apparatus according to the first aspect, the in-focus position determining unit is configured to perform the second in parallel with the sampling operation by the first in-focus position detecting unit. If the contrast of the subject sampled by the first focus position detection means has no peak, the focus position detected by the second focus position detection means is executed. The final focus position is determined.

また、請求項4にかかる発明は、請求項1〜3のいずれか一つに記載の自動合焦装置を適用したことを特徴とするデジタルカメラである。   The invention according to claim 4 is a digital camera to which the automatic focusing device according to any one of claims 1 to 3 is applied.

また、請求項5にかかる発明は、請求項1〜3のいずれか一つに記載の自動合焦装置を適用したことを特徴とする携帯情報入力装置である。   The invention according to claim 5 is a portable information input device to which the automatic focusing device according to any one of claims 1 to 3 is applied.

本発明によれば、短時間でかつ正確に合焦位置を検出することが可能な自動合焦装置を提供することができるという効果を奏する。   According to the present invention, there is an effect that it is possible to provide an automatic focusing device capable of accurately detecting a focusing position in a short time.

以下に添付図面を参照して、この発明にかかる自動合焦装置、デジタルカメラ、および携帯情報入力装置の好適な実施の形態を詳細に説明する。   Exemplary embodiments of an automatic focusing device, a digital camera, and a portable information input device according to the present invention will be described below in detail with reference to the accompanying drawings.

図1は、本発明にかかる自動合焦装置を適用したデジタルカメラの構成図である。同図において、100はデジタルカメラを示しており、デジタルカメラ100は、レンズ系101、絞り・フィルター部等を含むメカ機構102、CCD103、CDS回路104、可変利得増幅器(AGCアンプ)105、A/D変換器106、IPP107、DCT108、コーダー109、MCC110、DRAM111、PCカードインターフェース112、CPU121、表示部122、操作部123、SG(制御信号生成)部126、ストロボ装置127、バッテリ128、DC−DCコンバータ129、EEPROM130、フォーカスドライバ131、パルスモータ132、ズームドライバ133、パルスモータ134、モータドライバ135、外部AFセンサー136を具備して構成されている。また、PCカードインターフェース112を介して着脱可能なPCカード150が接続されている。   FIG. 1 is a block diagram of a digital camera to which an automatic focusing device according to the present invention is applied. In the figure, reference numeral 100 denotes a digital camera. The digital camera 100 includes a lens system 101, a mechanical mechanism 102 including an aperture / filter unit, a CCD 103, a CDS circuit 104, a variable gain amplifier (AGC amplifier) 105, an A / A D converter 106, IPP 107, DCT 108, coder 109, MCC 110, DRAM 111, PC card interface 112, CPU 121, display unit 122, operation unit 123, SG (control signal generation) unit 126, strobe device 127, battery 128, DC-DC A converter 129, an EEPROM 130, a focus driver 131, a pulse motor 132, a zoom driver 133, a pulse motor 134, a motor driver 135, and an external AF sensor 136 are provided. A detachable PC card 150 is connected via the PC card interface 112.

レンズユニットは、レンズ系101、絞り・フィルター部等を含むメカ機構102からなり、メカ機構102のメカニカルシャッタは2つのフィールドの同時露光を行う。レンズ系101は、例えば、バリフォーカルレンズからなり、フォーカスレンズ系101aとズームレンズ系101bとで構成されている。   The lens unit includes a mechanical mechanism 102 including a lens system 101, an aperture / filter unit, and the like. A mechanical shutter of the mechanical mechanism 102 performs simultaneous exposure of two fields. The lens system 101 is composed of, for example, a varifocal lens, and includes a focus lens system 101a and a zoom lens system 101b.

フォーカスドライバ131は、CPU121から供給される制御信号に従って、パルスモータ132を駆動して、フォーカスレンズ系101aを光軸方向に移動させる。ズームドライバ133は、CPU121から供給される制御信号に従って、パルスモータ134を駆動して、ズームレンズ系101bを光軸方向に移動させる。また、モータドライバ135は、CPU121から供給される制御信号に従ってメカ機構102を駆動し、例えば、絞りの絞り値を設定する。   The focus driver 131 drives the pulse motor 132 according to the control signal supplied from the CPU 121 to move the focus lens system 101a in the optical axis direction. The zoom driver 133 drives the pulse motor 134 according to the control signal supplied from the CPU 121 to move the zoom lens system 101b in the optical axis direction. Further, the motor driver 135 drives the mechanical mechanism 102 in accordance with a control signal supplied from the CPU 121, and sets, for example, an aperture value of the aperture.

CCD(電荷結合素子)103は、レンズユニットを介して入力した映像を電気信号(アナログ画像データ)に変換する。CDS(相関2重サンプリング)回路104は、CCD型撮像素子に対する低雑音化のための回路である。   A CCD (charge coupled device) 103 converts an image input via the lens unit into an electrical signal (analog image data). A CDS (correlated double sampling) circuit 104 is a circuit for reducing noise in the CCD type image pickup device.

また、AGCアンプ105は、CDS回路104で相関2重サンプリングされた信号のレベルを補正する。尚、AGCアンプ105のゲインは、CPU121により、CPU121が内蔵するD/A変換器を介して設定データ(コントロール電圧)がAGCアンプ105に設定されることにより設定される。さらにA/D変換器106は、AGCアンプ105を介して入力したCCD103からのアナログ画像データをデジタル画像データに変換する。すなわち、CCD103の出力信号は、CDS回路104およびAGCアンプ105を介し、またA/D変換器106により、最適なサンプリング周波数(例えば、NTSC信号のサブキャリア周波数の整数倍)にてデジタル信号に変換される。   In addition, the AGC amplifier 105 corrects the level of the signal that has been correlated and sampled by the CDS circuit 104. The gain of the AGC amplifier 105 is set by the CPU 121 when setting data (control voltage) is set in the AGC amplifier 105 via a D / A converter built in the CPU 121. Further, the A / D converter 106 converts analog image data from the CCD 103 input via the AGC amplifier 105 into digital image data. That is, the output signal of the CCD 103 is converted into a digital signal through the CDS circuit 104 and the AGC amplifier 105 and by the A / D converter 106 at an optimum sampling frequency (for example, an integer multiple of the subcarrier frequency of the NTSC signal). Is done.

また、デジタル信号処理部であるIPP(Image Pre-Processor)107、DCT(Discrete Cosine Transform)108、およびコーダー(Huffman Encoder/Decoder)109は、A/D変換器106から入力したデジタル画像データについて、色差(Cb、Cr)と輝度(Y)に分けて各種処理、補正および画像圧縮/伸長のためのデータ処理を施す。DCT108およびコーダー109は、例えばJPEG準拠の画像圧縮・伸長の一過程である直交変換・逆直交変換、並びに、JPEG準拠の画像圧縮・伸長の一過程であるハフマン符号化・復号化等を行う。   Further, an IPP (Image Pre-Processor) 107, a DCT (Discrete Cosine Transform) 108, and a coder (Huffman Encoder / Decoder) 109, which are digital signal processing units, are provided for digital image data input from the A / D converter 106. Various processing, correction, and data processing for image compression / decompression are performed separately for color differences (Cb, Cr) and luminance (Y). The DCT 108 and the coder 109 perform, for example, orthogonal transformation / inverse orthogonal transformation, which is a JPEG-compliant image compression / decompression process, and Huffman coding / decoding, which is a JPEG-compliant image compression / decompression process.

さらに、MCC(Memory Card Controller)110は、圧縮処理された画像を一旦蓄えてPCカードインターフェース112を介してPCカード150への記録、或いはPCカード150からの読み出しを行う。   Further, an MCC (Memory Card Controller) 110 temporarily stores the compressed image and records it on the PC card 150 or reads it from the PC card 150 via the PC card interface 112.

CPU121は、ROMに格納されたプログラムに従ってRAMを作業領域として使用して、操作部123からの操作、或いは図示しないリモコン等の外部動作操作に従い、上記デジタルカメラ内部の全動作を制御する。具体的には、CPU121は、撮像動作、自動露出(AE)動作、自動ホワイトバランス(AWB)調整動作や、AF動作等の制御を行う。   The CPU 121 uses the RAM as a work area according to a program stored in the ROM, and controls all operations inside the digital camera according to an operation from the operation unit 123 or an external operation operation such as a remote controller (not shown). Specifically, the CPU 121 controls an imaging operation, an automatic exposure (AE) operation, an automatic white balance (AWB) adjustment operation, an AF operation, and the like.

また、カメラ電源はバッテリ128、例えば、NiCd、ニッケル水素、リチウム電池等から、DC−DCコンバータ129に入力され、当該デジタルカメラ内部に供給される。   Camera power is input from a battery 128, such as NiCd, nickel metal hydride, or a lithium battery, to the DC-DC converter 129 and supplied into the digital camera.

表示部122は、LCD、LED、EL等で実現されており、撮影したデジタル画像データや、伸長処理された記録画像データ、設定画面等の表示を行う。操作部123は、撮影操作を行うためのレリーズキー、ズームレンズ系101bのズーム位置を設定するためのズームキー、機能選択およびその他の各種設定を外部から行うためのボタン等を備えている。CPU121は、レリーズキーが半押しされてRL−1がONとなるとAF動作等を実行し、また、レリーズキーが全押しされてRL−2がONとなると撮影動作を実行する。EEPROM130には、CPU121がデジタルカメラの動作を制御する際に使用する調整データ等が書き込まれている。   The display unit 122 is implemented by an LCD, LED, EL, or the like, and displays captured digital image data, decompressed recorded image data, a setting screen, and the like. The operation unit 123 includes a release key for performing a photographing operation, a zoom key for setting the zoom position of the zoom lens system 101b, buttons for performing function selection and other various settings from the outside, and the like. The CPU 121 executes an AF operation or the like when the release key is pressed halfway and RL-1 is turned on, and performs a shooting operation when the release key is fully pressed and RL-2 is turned on. In the EEPROM 130, adjustment data and the like used when the CPU 121 controls the operation of the digital camera are written.

上記したデジタルカメラ100(CPU121)は、被写体を撮像して得られる画像データをPCカード150に記録する記録モードと、PCカード150に記録された画像データを表示する表示モードと、撮像した画像データを表示部122に直接表示するモニタリングモード等を備えている。   The above-described digital camera 100 (CPU 121) includes a recording mode in which image data obtained by imaging a subject is recorded on the PC card 150, a display mode in which image data recorded on the PC card 150 is displayed, and captured image data. Is provided directly on the display unit 122.

図2は、上記IPP107の具体的構成の一例を示す図である。IPP107は、図2に示す如く、A/D変換器106から入力したデジタル画像データをR・G・Bの各色成分に分離する色分離部1071と、分離されたR・G・Bの各画像データを補間する信号補間部1072と、R・G・Bの各画像データの黒レベルを調整するペデスタル調整部1073と、R、Bの各画像データの白レベルを調整するホワイトバランス調整部1074と、CPU121により設定されたゲインでR・G・Bの各画像データを補正するデジタルゲイン調整部1075と、R・G・Bの各画像データのγ変換を行うガンマ変換部1076と、RGBの画像データを色差信号(Cb、Cr)と輝度信号(Y)とに分離するマトリクス部1077と、色差信号(Cb、Cr)と輝度信号(Y)とに基づいてビデオ信号を作成し表示部122に出力するビデオ信号処理部1078と、を備えている。   FIG. 2 is a diagram illustrating an example of a specific configuration of the IPP 107. As shown in FIG. 2, the IPP 107 includes a color separation unit 1071 that separates digital image data input from the A / D converter 106 into R, G, and B color components, and separated R, G, and B images. A signal interpolation unit 1072 that interpolates data, a pedestal adjustment unit 1073 that adjusts the black level of each of the R, G, and B image data, and a white balance adjustment unit 1074 that adjusts the white level of each of the R and B image data , A digital gain adjustment unit 1075 that corrects R, G, and B image data with a gain set by the CPU 121, a gamma conversion unit 1076 that performs γ conversion of the R, G, and B image data, and an RGB image A matrix unit 1077 for separating data into color difference signals (Cb, Cr) and luminance signals (Y), and a video signal based on the color difference signals (Cb, Cr) and luminance signals (Y). A video signal processing unit 1078 to be output to the display unit 122, and a.

更に、IPP107は、ペデスタル調整部1073によるペデスタル調整後の画像データの輝度データ(Y)を検出するY演算部1079と、Y演算部1079で検出した輝度データ(Y)の所定周波数成分のみを通過させるBPF1080と、BPF1080を通過した輝度データ(Y)の積分値をAF評価値としてCPU121に出力するAF評価値回路1081と、Y演算部1079で検出した輝度データ(Y)に応じたデジタルカウント値をAE評価値としてCPU121に出力するAE評価値回路1082と、ホワイトバランス調整部1074による調整後のR・G・Bの各画像データの輝度データ(Y)を検出するY演算部1083と、Y演算部1083で検出した各色の輝度データ(Y)をそれぞれカウントして各色のAWB評価値としてCPU121に出力するAWB評価値回路1084と、CPU121とのインターフェースであるCPUI/F1085と、及びDCT108とのインターフェースであるDCTI/F1086等を備えている。   Further, the IPP 107 passes through only a Y calculating unit 1079 that detects luminance data (Y) of image data after pedestal adjustment by the pedestal adjusting unit 1073, and a predetermined frequency component of the luminance data (Y) detected by the Y calculating unit 1079. The BPF 1080 to be output, the AF evaluation value circuit 1081 that outputs the integrated value of the luminance data (Y) that has passed through the BPF 1080 to the CPU 121 as an AF evaluation value, and the digital count value corresponding to the luminance data (Y) detected by the Y calculation unit 1079 AE evaluation value circuit 1082 that outputs to the CPU 121 as an AE evaluation value, a Y calculation unit 1083 that detects luminance data (Y) of each of the R, G, and B image data after adjustment by the white balance adjustment unit 1074, and Y The luminance data (Y) of each color detected by the calculation unit 1083 is counted, and the AWB of each color is counted. And AWB evaluation value circuit 1084 outputs the CPU 121 as a value, and a CPUI / F1085 is an interface with the CPU 121, and the DCTI / F1086 such an interface with the DCT108.

図1の外部AFセンサー136は、パッシブ方式の測距センサーからなり、被写体の距離を測距するためのものである。図3は、外部AFセンサーの概略構成を示す図である。外部AFセンサー136は、レンズ151と、フォトセンサーアレイ152a(左側)、152b(右側)と、演算回路(不図示)を備えている。図3および図4を参照して外部AFセンサー136の測距原理を説明する。図3において、被写体までの距離をd、レンズ151とフォトセンサーアレイ152a(左側)、152b(右側)との距離をf、フォトセンサーアレイ152a(左側)、152b(右側)に入力する光の幅をそれぞれ、X1、X2、光の入射されるフォトセンサーアレイ152a、152b間の距離をBとすると、外部AFセンサー136の前面から被写体までの距離dは、三角測量により、d=B・f/(X1+X2)で算出できる。図4は、左右のフォトセンサーアレイの被写体像を示しており、演算回路は、各フォトセンサーアレイの被写体像の光量を積分し、左右センサーデータのずれを演算することで、被写体の距離dを算出し、CPU121に出力する。   The external AF sensor 136 in FIG. 1 is composed of a passive distance measuring sensor, and is used to measure the distance of the subject. FIG. 3 is a diagram showing a schematic configuration of the external AF sensor. The external AF sensor 136 includes a lens 151, photosensor arrays 152a (left side) and 152b (right side), and an arithmetic circuit (not shown). The principle of distance measurement of the external AF sensor 136 will be described with reference to FIGS. In FIG. 3, the distance to the subject is d, the distance between the lens 151 and the photo sensor arrays 152a (left side) and 152b (right side) is f, and the width of light input to the photo sensor arrays 152a (left side) and 152b (right side). , X1 and X2, and the distance between the photosensor arrays 152a and 152b on which light is incident is B, the distance d from the front surface of the external AF sensor 136 to the subject is obtained by triangulation by d = B · f / It can be calculated by (X1 + X2). FIG. 4 shows the subject images of the left and right photosensor arrays, and the arithmetic circuit integrates the light amounts of the subject images of the respective photosensor arrays and calculates the deviation of the left and right sensor data, thereby calculating the subject distance d. Calculate and output to the CPU 121.

本明細書において、外部AFセンサー136を使用して合焦位置を検出する動作を外部AFといい、CCD103を使用して合焦位置を検出する場合をCCD−AF(内部AF)という。CCD−AFでは、フォーカスレンズ101aを移動して、CCD103から出力される画像信号に応じた被写体のコントラストを示すAF評価値をサンプリングし、AF評価値のピーク位置を合焦位置とする山登りサーボ方式を使用する。外部AFとCCD−AFを使用してAFを行うことをハイブリットAFという。   In this specification, the operation of detecting the in-focus position using the external AF sensor 136 is referred to as external AF, and the case of detecting the in-focus position using the CCD 103 is referred to as CCD-AF (internal AF). In the CCD-AF, the focus lens 101a is moved, the AF evaluation value indicating the contrast of the subject corresponding to the image signal output from the CCD 103 is sampled, and the hill-climbing servo system using the peak position of the AF evaluation value as the in-focus position. Is used. Performing AF using external AF and CCD-AF is called hybrid AF.

つぎに、上記構成のデジタルカメラのAFに関する動作例(動作例1、動作例2)を説明する。動作例1はCCD−AFと外部AFを略同時に実行する場合の動作例を示し、動作例2はCCD−AFに先行して外部AFを実行する場合の動作例を示す。   Next, an operation example (operation example 1 and operation example 2) related to AF of the digital camera having the above configuration will be described. The operation example 1 shows an operation example when the CCD-AF and the external AF are executed substantially simultaneously, and the operation example 2 shows an operation example when the external AF is executed prior to the CCD-AF.

(動作例1)
デジタルカメラのAFに関する動作例1を図5〜図7を参照して説明する。図5は、CPU121の制御により実行されるデジタルカメラのAFに関する動作例1を説明するためのフローチャートである。
(Operation example 1)
An operation example 1 relating to AF of a digital camera will be described with reference to FIGS. FIG. 5 is a flowchart for explaining an operation example 1 related to AF of the digital camera executed under the control of the CPU 121.

図5において、まず、CPU121は、レリーズキーが半押しされて、RL−1がONとなったか否かを判断する(ステップS1)。レリーズキーが半押しされて、RL−1がONされた場合には、CPU121は、フォーカスレンズ系101aをCCD−AFの開始位置(基準位置)に設定する(ステップS2)。CCD−AFの開始位置(基準位置)としては、例えば、レンズ系101の現ポジションを使用することができる。通常、同一の条件で連続して撮影する頻度が高いと考えられるからである。   In FIG. 5, first, the CPU 121 determines whether or not the release key is half-pressed and RL-1 is turned on (step S1). When the release key is pressed halfway and RL-1 is turned on, the CPU 121 sets the focus lens system 101a to the CCD-AF start position (reference position) (step S2). As the start position (reference position) of the CCD-AF, for example, the current position of the lens system 101 can be used. This is because it is usually considered that the frequency of continuous shooting under the same conditions is high.

そして、CPU121は、外部AFとCCD−AFを略同時にスタートさせる(ステップS3)。外部AFでは、外部AFセンサー136により、測距処理が行われ、被写体との距離の測定が行われて合焦位置の検出が行われる。また、CCD−AFでは、フォーカスレンズ系101aを基準位置の近傍で移動させて、AF評価値を取得し、合焦位置の検出が行われる。   Then, the CPU 121 starts external AF and CCD-AF almost simultaneously (step S3). In the external AF, the external AF sensor 136 performs distance measurement processing, measures the distance to the subject, and detects the in-focus position. In the CCD-AF, the focus lens system 101a is moved in the vicinity of the reference position, the AF evaluation value is acquired, and the focus position is detected.

この後、CPU121は、外部AFが終了したか否かを判断し(ステップS4)、外部AFが終了した場合には、外部AFの距離測定結果が、CCD−AFの開始位置(基準位置)に対応する撮影距離と所定値以上異なるか否かを判断する(ステップS5)。この判断の結果、外部AFの距離測定結果が、CCD−AFの開始位置(基準位置)に対応する撮影距離と所定値以上異ならない場合には、ステップS8に移行する。他方、外部AFの距離測定結果が、CCD−AFの開始位置(基準位置)に対応する撮影距離と所定値以上異なる場合には、CPU121は、CCD−AFを中断して、外部AFセンサー136で測定された距離に対応する位置を新たな基準位置とし、当該基準位置にフォーカスレンズ系101aを移動する(ステップS6)。つづいて、当該基準位置の近傍でCCD−AFを再実行する(ステップS7)。   Thereafter, the CPU 121 determines whether or not the external AF is finished (step S4). When the external AF is finished, the distance measurement result of the external AF is set to the start position (reference position) of the CCD-AF. It is determined whether or not the corresponding shooting distance is different from a predetermined value (step S5). As a result of this determination, if the distance measurement result of the external AF does not differ from the shooting distance corresponding to the start position (reference position) of the CCD-AF by a predetermined value or more, the process proceeds to step S8. On the other hand, if the distance measurement result of the external AF is different from the shooting distance corresponding to the start position (reference position) of the CCD-AF by a predetermined value or more, the CPU 121 interrupts the CCD-AF and uses the external AF sensor 136. The position corresponding to the measured distance is set as a new reference position, and the focus lens system 101a is moved to the reference position (step S6). Subsequently, the CCD-AF is re-executed near the reference position (step S7).

ステップS8では、CPU121は、CCD−AFが終了したか否かを判断し、CCD−AFが終了した場合には、CCD−AFのAF評価値のサンプリング結果(被写体のコントラストの状態)に基づいて、CCD−AFと外部AFで検出された合焦位置から最終的な合焦位置を決定する。   In step S8, the CPU 121 determines whether or not the CCD-AF has ended. If the CCD-AF has ended, the CPU 121 determines based on the sampling result of the AF evaluation value of the CCD-AF (the state of contrast of the subject). The final focus position is determined from the focus positions detected by the CCD-AF and the external AF.

ここで、CCD−AFのAF評価値のサンプリング結果(被写体のコントラストの状態)に基づいて、最終的な合焦位置の決定方法を説明する。   Here, a final in-focus position determination method will be described based on the sampling result of the AF evaluation value of the CCD-AF (the state of contrast of the subject).

図6〜図9は最終的な合焦位置の決定方法を説明するための説明図であり、CCD−AFでサンプリングされた被写体のコントラスト(AF評価値)の一例を示している。図6〜図9において、横軸はレンズ繰り出し量(レンズ位置)、縦軸は被写体のコントラスト(AF評価値)を示している。また、サンプリング幅は被写体のコントラスト(AF評価値)を検出する範囲を示している。   6 to 9 are explanatory diagrams for explaining a final method of determining the in-focus position, and show an example of the contrast (AF evaluation value) of the subject sampled by the CCD-AF. 6 to 9, the horizontal axis represents the lens extension amount (lens position), and the vertical axis represents the contrast of the subject (AF evaluation value). The sampling width indicates the range in which the contrast (AF evaluation value) of the subject is detected.

図6は至近側から無限側の間に被写体のコントラスト(AF評価値)にピーク(極大)がある場合を示す。図7は被写体のコントラスト(AF評価値)にピーク(極大)がない場合を示す。図8は被写体のコントラスト(AF評価値)が、至近側で最大となる場合を示す。図9は被写体のコントラスト(AF評価値)が、無限側で最大となる場合を示す。   FIG. 6 shows a case where there is a peak (maximum) in the contrast (AF evaluation value) of the subject between the closest side and the infinite side. FIG. 7 shows a case where there is no peak (maximum) in the contrast (AF evaluation value) of the subject. FIG. 8 shows a case where the contrast (AF evaluation value) of the subject is maximized on the close side. FIG. 9 shows a case where the contrast (AF evaluation value) of the subject is maximized on the infinity side.

図6に示すように、至近側から無限側の間に被写体のコントラスト(AF評価値)にピーク(極大)がある場合には、CPU121は、CCD−AFの当該ピーク位置を最終的な合焦位置と決定する。   As shown in FIG. 6, when there is a peak (maximum) in the contrast (AF evaluation value) of the subject between the closest side and the infinity side, the CPU 121 finally focuses the peak position of the CCD-AF. Determine with position.

また、図7に示すように、被写体のコントラスト(AF評価値)にピーク(極大)がない場合には、CPU121は、外部AFで検出された合焦位置を最終の合焦位置と決定する。   Also, as shown in FIG. 7, when there is no peak (maximum) in the contrast (AF evaluation value) of the subject, the CPU 121 determines the focus position detected by the external AF as the final focus position.

また、図8に示すように、被写体のコントラスト(AF評価値)が、フォーカスレンズが移動している方向(スキャン方向)である至近側まで上昇し続ける場合には、CPU121は、外部AFで検出された合焦位置を最終の合焦位置と決定する。至近側で被写体のコントラスト(AF評価値)が上昇し続ける場合は、CCD−AFの結果が擬合焦であると考えられるので、CCD−AFの結果ではなく外部AFの結果を使用する。   Also, as shown in FIG. 8, when the contrast (AF evaluation value) of the subject continues to rise to the closest side, which is the direction in which the focus lens is moving (scan direction), the CPU 121 detects with external AF. The determined focus position is determined as the final focus position. If the object contrast (AF evaluation value) continues to increase on the close side, the CCD-AF result is considered to be in-focus, so the external AF result is used instead of the CCD-AF result.

また、図9に示すように、被写体のコントラスト(AF評価値)が、フォーカスレンズが移動開始側(スキャン開始側)である無限側で最大となり以降下降し続ける場合には、CPU121は、CCD−AFの当該最大となる位置(レンズ位置)を最終的な合焦位置に決定する。無限側で被写体のコントラスト(AF評価値)が最大となり以降下降し続ける場合には、CCD−AFの結果が擬合焦ではないと考えられるので、上述した至近側から無限側の間に被写体のコントラスト(AF評価値)にピーク(極大)がある場合と同様に、外部AFの結果ではなくCCD−AFの結果を使用する。   As shown in FIG. 9, when the contrast (AF evaluation value) of the subject reaches the maximum on the infinite side, which is the movement start side (scan start side), and continues to decrease thereafter, the CPU 121 The maximum position (lens position) of the AF is determined as the final focus position. When the contrast (AF evaluation value) of the subject reaches the maximum on the infinite side and continues to decrease thereafter, the CCD-AF result is considered not to be pseudo-focused. Similar to the case where the contrast (AF evaluation value) has a peak (maximum), the result of CCD-AF is used instead of the result of external AF.

CPU121は、以上の如くして決定した合焦位置にフォーカスレンズ系101aを移動させる(ステップS9)。その後、レリーズキーが全押しされてRL−2がONとなると、撮影動作を行い、被写体の画像データを取り込み、PCカード150に記録する。   The CPU 121 moves the focus lens system 101a to the in-focus position determined as described above (step S9). Thereafter, when the release key is fully pressed and RL-2 is turned on, a shooting operation is performed, and image data of the subject is captured and recorded in the PC card 150.

図10は第1の動作例における外部AFとCCD−AFの実行タイミングを説明するためのタイミングチャートを示す。同図(a)は、外部AFの距離測定結果とCCD−AFの開始位置(基準位置)に対応する撮影距離とが所定値以上異なる場合のタイミングを示す。同図(b)は、外部AFの距離測定結果とCCD−AFの開始位置(基準位置)に対応する撮影距離とが所定値以上異なり、CCD−AFを中断して、外部AFセンサー136で測定された距離に対応する位置を新たな基準位置とし、再度CCD−AFを実行した場合([2])を示している。   FIG. 10 is a timing chart for explaining execution timings of the external AF and the CCD-AF in the first operation example. FIG. 6A shows the timing when the distance measurement result of the external AF and the shooting distance corresponding to the start position (reference position) of the CCD-AF differ by a predetermined value or more. In FIG. 6B, the distance measurement result of the external AF and the shooting distance corresponding to the start position (reference position) of the CCD-AF are different from each other by a predetermined value, and the CCD-AF is interrupted and measured by the external AF sensor 136. The case where the position corresponding to the determined distance is set as a new reference position and CCD-AF is executed again ([2]) is shown.

(動作例2)
デジタルカメラのAFに関する動作例2を図11〜図14を参照して説明する。図11は、CPU121の制御により実行されるデジタルカメラのAFに関する動作例2を説明するためのフローチャートである。
(Operation example 2)
An operation example 2 relating to AF of the digital camera will be described with reference to FIGS. FIG. 11 is a flowchart for explaining an operation example 2 related to AF of the digital camera executed under the control of the CPU 121.

図11において、まず、電源が投入されると(ステップS21)、CPU121は、外部AF実行タイミングであるか否かを判断し(ステップS22)、この判断の結果、外部AFの実行タイミングでない場合には、ステップS24に移行する。他方、外部AF実行タイミングであれば、外部AFによる測距処理を実行して(ステップS23)、外部AFセンサー136は被写体との距離を測距して、ステップS24に移行する。   In FIG. 11, first, when the power is turned on (step S21), the CPU 121 determines whether or not it is the external AF execution timing (step S22). Proceeds to step S24. On the other hand, if the external AF execution timing is reached, a distance measurement process using external AF is executed (step S23), the external AF sensor 136 measures the distance to the subject, and the process proceeds to step S24.

ステップS24では、CPU121は、レリーズキーが半押しされて、RL−1キーがONされたか否かを判断する。RL−1がONでない場合には、ステップS22に戻り、RL−1がONされるまで、外部AFの実行タイミングで、外部AF測距処理が行われる。他方、ステップS24で、RL−1がONされた場合には、CPU121は、外部AFの測距結果に基づいて、CCD−AFの開始位置(基準位置)を算出する(ステップS25)。   In step S24, the CPU 121 determines whether or not the release key is pressed halfway and the RL-1 key is turned on. If RL-1 is not ON, the process returns to step S22, and external AF distance measurement processing is performed at the external AF execution timing until RL-1 is turned ON. On the other hand, if RL-1 is turned on in step S24, the CPU 121 calculates the start position (reference position) of the CCD-AF based on the distance measurement result of the external AF (step S25).

ここで、外部AFの測距結果に基づいて、CCD−AFの開始位置(基準位置)を算出する方法を説明する。例えば、外部AFの過去2点の測距結果から基準位置を予測する方法を使用することができる。これによれば、被写体が、近づいてくるか、遠ざかっているか、また、止まっているかを判断することが可能となる。   Here, a method for calculating the start position (reference position) of the CCD-AF based on the distance measurement result of the external AF will be described. For example, a method of predicting the reference position from the distance measurement results of the past two points of the external AF can be used. This makes it possible to determine whether the subject is approaching, moving away, or stopped.

図12は外部AFの直近の過去2点の距離測定結果からCCD−AFの開始位置(基準位置)を算出する場合を説明するための説明図を示す。同図において、Lccdは予測される被写体距離(CCD−AFの基準位置)、L2はレリーズ操作直前の外部AFによる被写体距離、L1はL2よりさらに1回前の外部AFによる被写体距離、t1はコンティニュアス外部AFの間隔、t2はレリーズ操作直前の外部AFからレリーズまでの時間を示す。予測される被写体距離(CCD−AFの基準位置)Lccdは、下式により算出する。そして、算出された予測される被写体距離Lccdに対応するレンズ系の位置をCCD−AFの開始位置(基準位置)と決定する。   FIG. 12 is an explanatory diagram for explaining a case where the CCD-AF start position (reference position) is calculated from the distance measurement results of the last two points of the external AF. In this figure, Lccd is the predicted subject distance (CCD-AF reference position), L2 is the subject distance due to the external AF immediately before the release operation, L1 is the subject distance due to the external AF one time before L2, and t1 is the continuity. The interval between the numeric external AF and t2 indicates the time from the external AF to the release immediately before the release operation. The predicted subject distance (CCD-AF reference position) Lccd is calculated by the following equation. Then, the lens system position corresponding to the calculated predicted subject distance Lccd is determined as the start position (reference position) of the CCD-AF.

Lccd=L2+t2×(L2−L1)/t1
例えば、t1=t2とした場合に、過去2回が2m、3mの場合には、次は4m、他方、過去2回が4m、3mの場合には、次は2mと予測される。よって、それぞれ4m前後、2m前後に対応するレンズ系の位置でCCD−AFを実施することになる。
Lccd = L2 + t2 × (L2-L1) / t1
For example, when t1 = t2, if the previous two times are 2 m and 3 m, the next is predicted to be 4 m, while if the past two times is 4 m and 3 m, the next is predicted to be 2 m. Therefore, CCD-AF is performed at the position of the lens system corresponding to around 4 m and around 2 m, respectively.

なお、ここでは、過去2点からCCD−AFの基準位置を決定することにしたが、過去3点もしくはそれ以上の時系列データを用いることにしても良い。これにより、より細かい動体予測が可能となる。例えば、過去3点からCCD−AFの基準位置を決定する場合は、被写体が、近づいてくるか、遠ざかっているか、止まっているか、前後に揺れているかを判断することも可能となる。例えば、1回目と2回目、2回目と3回目の被写体距離を比較することにより、被写体移動の加速度成分も検出可能である。この場合、2次曲線で近似する方法や(上から落ちてくる被写体とか)、三角関数で近似する方法(ブランコに乗っている被写体とか)等を使用することができる。   Here, the reference position of the CCD-AF is determined from the past two points, but time series data of the past three points or more may be used. Thereby, a finer moving object prediction becomes possible. For example, when determining the CCD-AF reference position from the past three points, it is possible to determine whether the subject is approaching, moving away, stopped, or swinging back and forth. For example, by comparing the first, second, second, and third subject distances, the acceleration component of the subject movement can also be detected. In this case, a method of approximating with a quadratic curve (such as a subject falling from above), a method of approximating with a trigonometric function (such as a subject on a swing), or the like can be used.

そして、CPU121は、算出したCCD−AFの開始位置(基準位置)にフォーカスレンズ系101aを移動させる(ステップS26)。つづいて、CPU121は、フォーカスレンズ系101aを基準位置に移動した後、外部AFとCCD−AFを同時にスタートさせる(ステップS27)。外部AFでは、外部AFセンサー136により、被写体との距離の測定が行われ合焦位置の検出が行われる。また、CCD−AFでは、フォーカスレンズ系101aを基準位置の近傍で移動させて、AF評価値を取得し、合焦位置の検出が行われる。   Then, the CPU 121 moves the focus lens system 101a to the calculated CCD-AF start position (reference position) (step S26). Subsequently, after moving the focus lens system 101a to the reference position, the CPU 121 starts the external AF and the CCD-AF simultaneously (step S27). In the external AF, the external AF sensor 136 measures the distance to the subject and detects the focus position. In the CCD-AF, the focus lens system 101a is moved in the vicinity of the reference position, the AF evaluation value is acquired, and the focus position is detected.

ステップS28では、CPU121は、CCD−AFが終了したか否かを判断し、CCD−AFが終了した場合には、CCD−AFのAF評価値のサンプリング結果(被写体のコントラストの状態)に基づいて、CCD−AFと外部AFで検出された合焦位置から最終的な合焦位置を決定する(ステップS29)。CCD−AFのAF評価値のサンプリング結果(被写体のコントラストの状態)に基づいて、CCD−AFと外部AFで検出された合焦位置から最終的な合焦位置を決定する方法は動作例1と同様であるのでその説明は省略する。   In step S28, the CPU 121 determines whether or not the CCD-AF has ended. When the CCD-AF has ended, the CPU 121 determines based on the sampling result of the AF evaluation value of the CCD-AF (the state of the contrast of the subject). The final focus position is determined from the focus positions detected by the CCD-AF and the external AF (step S29). The method for determining the final focus position from the focus positions detected by the CCD-AF and the external AF based on the sampling result of the AF evaluation value of the CCD-AF (the state of the contrast of the subject) is Since it is the same, the description is omitted.

この後、CPU121は、決定した合焦位置にフォーカスレンズ系101aを移動させる(ステップS30)。その後、レリーズキーが全押しされてRL−2がONとなると、撮影動作を行い、被写体の画像データを取り込み、PCカード150に記録する。   Thereafter, the CPU 121 moves the focus lens system 101a to the determined focus position (step S30). Thereafter, when the release key is fully pressed and RL-2 is turned on, a shooting operation is performed, and image data of the subject is captured and recorded in the PC card 150.

図13を参照して、第2の動作例における、外部AFとCCD−AFの実行タイミングを説明する。図13は第2の動作例における外部AFとCCD−AFの実行タイミングを説明するためのタイミングチャートを示す。同図の(a)は、外部AFの実行タイミングでレリーズが押された場合、(b)は、外部AFの休止中にレリーズが押された場合、(c)は、外部AF作動中にレリーズが押された場合(その1)、(d)は、外部AF作動中にレリーズが押された場合(その2)のタイミングを示す。   With reference to FIG. 13, the execution timing of the external AF and the CCD-AF in the second operation example will be described. FIG. 13 is a timing chart for explaining execution timings of the external AF and the CCD-AF in the second operation example. (A) in the figure is when the release is pressed at the execution timing of the external AF, (b) is when the release is pressed during the pause of the external AF, and (c) is the release during the external AF operation. When (1) is pressed, (d) shows the timing when the release is pressed during external AF operation (2).

同図(a)に示すように、外部AFの実行タイミングでレリーズが押された場合には、レリーズのONのタイミングで外部AFとCCD−AFを実行する。また、同図(b)に示すように、外部AF休止中にレリーズが押された場合には、外部AFの休止を終了して、レリーズのONのタイミングで外部AFとCCD−AFを実行する。外部AF作動中にレリーズが押された場合には、同図(c)に示すタイミングと、同図(d)に示すタイミングが考えられ、いずれのタイミングを使用することにしても良い。   As shown in FIG. 6A, when the release is pressed at the external AF execution timing, the external AF and the CCD-AF are executed at the release ON timing. Also, as shown in FIG. 5B, when the release is pressed while the external AF is stopped, the external AF is stopped and the external AF and CCD-AF are executed at the release ON timing. . When the release is pressed during the external AF operation, the timing shown in FIG. 10C and the timing shown in FIG. 10D are considered, and any timing may be used.

外部AF作動中にレリーズが押された場合には、同図(c)に示すように、レリーズの時点で外部AF[3]を中止し、再駆動することにしても良い。この場合は、外部AF[3]のデータは取得しないで、外部AFの[4]のデータとCCD−AFとの結果に基づいて、最終的な合焦位置を判断することになる。   When the release is pressed during the external AF operation, the external AF [3] may be stopped at the time of release and re-driven as shown in FIG. In this case, the final focus position is determined based on the external AF [4] data and the result of the CCD-AF without acquiring the external AF [3] data.

また、外部AF作動中にレリーズが押された場合には、同図(d)に示すように、レリーズの時点でも外部AF[3]を中断せず、外部AF[3]のデータとCCD−AFとの結果に基づいて、最終的な合焦位置を判断することになる。通常は、外部AF作動時間は0.1秒以下であるため、(d)の方式でも実使用上問題は無い。ただし、被写体が低輝度時等の場合は、外部AFでも0.1秒前後の時間がかかるため、(c)の方式の方が確実である。   If the release button is pressed during the external AF operation, as shown in FIG. 4D, the external AF [3] is not interrupted even at the time of release, and the external AF [3] data and the CCD- The final in-focus position is determined based on the result of AF. Usually, since the external AF operation time is 0.1 second or less, there is no problem in practical use even in the method (d). However, when the subject is at a low luminance, the method of (c) is more reliable because it takes about 0.1 seconds even with external AF.

なお、上記ステップS28において、外部AFで検出された測距結果とCCD−AFで検出された合焦位置に対応する撮影距離とが、所定値以上異なる場合には、図14に示すように、CCD−AFの開始位置(基準位置)を変えて、再度CCD−AFを行うことにしても良い。   If the distance measurement result detected by the external AF and the shooting distance corresponding to the in-focus position detected by the CCD-AF differ by a predetermined value or more in step S28, as shown in FIG. The CCD-AF may be performed again by changing the start position (reference position) of the CCD-AF.

以上説明したように、本実施の形態においては、動作例1では、レリーズキーが半押しされてRL−1がONとなると、CCD−AFと外部AFを略同時に実行することとしたので、外部AFを実行した後に、外部AFの結果に基づいてCCD−AFを実行する場合に比して、AF時間を短縮することが可能となる。   As described above, in this embodiment, in the operation example 1, when the release key is pressed halfway and RL-1 is turned on, the CCD-AF and the external AF are executed substantially simultaneously. After executing AF, it is possible to shorten the AF time as compared with the case where CCD-AF is executed based on the result of external AF.

また、本実施の形態においては、動作例2では、電源のONがなされると、レリーズキーの押下に先行して、すなわち、レリーズキーが押下されない状態においても、所定の間隔で外部AFで測距処理を行い、レリーズキーが押下された場合には、外部AFの測距結果に基づいてCCD−AFを行う場合の基準位置を算出して、当該基準位置の近傍でCCD−AFを行うこととしたので、レリーズキーが押下された後に、外部AFを実行し、その後、外部AFの結果に基づいてCCD−AFを実行する場合に比して、AF時間を短縮することが可能となる。   In the present embodiment, in the operation example 2, when the power is turned on, the external AF is measured at a predetermined interval even before the release key is pressed, that is, even when the release key is not pressed. When a distance process is performed and the release key is pressed, a reference position for performing the CCD-AF is calculated based on the distance measurement result of the external AF, and the CCD-AF is performed in the vicinity of the reference position. Therefore, the AF time can be shortened as compared with the case where the external AF is executed after the release key is pressed and then the CCD-AF is executed based on the result of the external AF.

また、本実施の形態においては、最終的な合焦位置を検出する場合に、CCD−AFでサンプリングされた被写体のコントラスト(AF評価値)の状態に応じて、CCD−AFの合焦結果または外部AFの合焦結果を選択して、最終的な合焦位置を決定することとしたので、高輝度被写体が存在しても正確に合焦位置を検出することが可能となる。   Further, in the present embodiment, when the final focus position is detected, the focus result of the CCD-AF or the contrast of the subject sampled by the CCD-AF (AF evaluation value) Since the final focus position is determined by selecting the focus result of the external AF, the focus position can be accurately detected even when a high-luminance subject exists.

また、本実施の形態においては、至近側から無限側の間に被写体のコントラスト(AF評価値)にピーク(極大)がある場合には、CCD−AFの当該ピーク位置を最終的な合焦位置と決定することとしたので、より正確な合焦位置の検出が可能となる。   Further, in the present embodiment, when there is a peak (maximum) in the contrast (AF evaluation value) of the subject between the closest side and the infinite side, the peak position of the CCD-AF is determined as the final in-focus position. Therefore, it is possible to detect the in-focus position more accurately.

また、本実施の形態においては、CCD−AFで検出された被写体のコントラスト(AF評価値)にピーク(極大)がない場合には、外部AFで検出された合焦位置を最終の合焦位置と決定することとしたので、CCD−AFで被写体のコントラストのピーク位置を検出できない場合でも、正確な合焦位置の検出が可能となる。   In this embodiment, when there is no peak (maximum) in the contrast (AF evaluation value) of the object detected by the CCD-AF, the focus position detected by the external AF is set as the final focus position. Therefore, even when the peak position of the contrast of the subject cannot be detected by the CCD-AF, it is possible to accurately detect the in-focus position.

また、本実施の形態においては、CCD−AFで検出された被写体のコントラスト(AF評価値)が、至近側で最大となる場合には、外部AFで検出された合焦位置を最終の合焦位置と決定することとしたので、至近側に高輝度被写体がある場合でも正確な合焦位置の検出が可能となる。   In this embodiment, when the contrast (AF evaluation value) of the object detected by the CCD-AF is maximum on the close side, the focus position detected by the external AF is used as the final focus. Since the position is determined, it is possible to accurately detect the in-focus position even when there is a high brightness subject on the close side.

また、本実施の形態においては、CCD−AFで検出された被写体のコントラスト(AF評価値)が無限側で最大となる場合には、CCD−AFの当該最大となる位置を最終的な合焦位置に決定することとしたので、無限側に高輝度被写体がある場合でも正確な合焦位置の検出が可能となる。   In the present embodiment, when the contrast (AF evaluation value) of the object detected by the CCD-AF is maximum on the infinite side, the maximum position of the CCD-AF is finally focused. Since the position is determined, it is possible to accurately detect the in-focus position even when there is a high brightness subject on the infinite side.

また、本実施の形態では、外部AFセンサーとして、パッシブ方式の測距センサーを使用することとしたので、小型化、低コスト化、処理の簡略化が可能となる。   In the present embodiment, since a passive distance measuring sensor is used as the external AF sensor, it is possible to reduce the size, reduce the cost, and simplify the processing.

なお、本発明は上記した実施の形態に限定されるものではなく、発明の要旨を変更しない範囲で適宜変形して実行可能である。例えば、本実施の形態においては、本発明にかかる自動合焦装置をデジタルカメラに適用した例を説明したが、本発明はこれに限られるものではなく、PDA等の携帯情報入力装置等にも適用可能である。要は、画像を入力する際にAFを行う全ての装置に適用可能である。   Note that the present invention is not limited to the above-described embodiment, and can be appropriately modified and executed without changing the gist of the invention. For example, in the present embodiment, an example in which the automatic focusing device according to the present invention is applied to a digital camera has been described. Applicable. In short, the present invention can be applied to all apparatuses that perform AF when inputting an image.

本実施の形態に係るデジタルカメラの構成図である。It is a block diagram of the digital camera which concerns on this Embodiment. 図1のIPPの具体的構成の一例を示す図である。It is a figure which shows an example of a specific structure of IPP of FIG. 図1の外部AFセンサーの概略構成を示す図である。It is a figure which shows schematic structure of the external AF sensor of FIG. 外部AFセンサーの測距原理を説明するための説明図である。It is explanatory drawing for demonstrating the ranging principle of an external AF sensor. AFに関する第1の動作例を説明するためのフローチャートである。It is a flowchart for demonstrating the 1st operation example regarding AF. 至近側から無限側の間に被写体のコントラスト(AF評価値)にピーク(極大)がある場合を示す図である。It is a figure which shows the case where there exists a peak (maximum) in the contrast (AF evaluation value) of a to-be-photographed object between the near side and the infinity side. 被写体のコントラスト(AF評価値)にピーク(極大)がない場合を示す図である。It is a figure which shows the case where there is no peak (maximum) in the contrast (AF evaluation value) of the subject. 被写体のコントラスト(AF評価値)が、至近側で最大となる場合を示す図である。It is a figure which shows the case where the contrast (AF evaluation value) of a subject is maximized on the close side. 被写体のコントラスト(AF評価値)が、無限側で最大となる場合を示す図である。It is a figure which shows the case where the contrast (AF evaluation value) of a subject is maximum on the infinite side. 第1の動作例における外部AFとCCD−AFの実行タイミングを説明するためのタイミングチャートを示す。4 is a timing chart for explaining execution timings of external AF and CCD-AF in the first operation example. AFに関する第2の動作例を説明するためのフローチャートである。It is a flowchart for demonstrating the 2nd operation example regarding AF. 外部AFの直近の過去2点の距離測定結果からCCD−AFの開始位置(基準位置)を算出する場合を説明するための説明図である。It is explanatory drawing for demonstrating the case where the start position (reference position) of CCD-AF is calculated from the distance measurement result of the last two points of the external AF. 第2の動作例における外部AFとCCD−AFの実行タイミングを説明するためのタイミングチャートを示す。The timing chart for demonstrating the execution timing of external AF and CCD-AF in a 2nd operation example is shown. 第2の動作例における外部AFとCCD−AFの実行タイミングを説明するためのタイミングチャートを示す。The timing chart for demonstrating the execution timing of external AF and CCD-AF in a 2nd operation example is shown. 従来のCCD−AF方式を説明するための説明図である。It is explanatory drawing for demonstrating the conventional CCD-AF system. 従来のCCD−AF方式を説明するための説明図である。It is explanatory drawing for demonstrating the conventional CCD-AF system.

符号の説明Explanation of symbols

100 デジタルカメラ
101 レンズ系
101a フォーカスレンズ系
101b ズームレンズ系
102 オートフォーカス等を含むメカ機構
103 CCD(電荷結合素子)
104 CDS(相関2重サンプリング)回路
105 可変利得増幅器(AGCアンプ)
106 A/D変換器
107 IPP(Image Pre-Processor)
108 DCT(Discrete Cosine Transform)
109 コーダー(Huffman Encoder/Decoder)
110 MCC(Memory Card Controller)
111 RAM(内部メモリ)
112 PCカードインターフェース
121 CPU
122 表示部
123 操作部
126 SG部
127 ストロボ
128 バッテリ
129 DC−DCコンバータ
130 EEPROM
131 フォーカスドライバ
132 パルスモータ
133 ズームドライバ
134 パルスモータ
135 モータドライバ
136 外部AFセンサー
150 PCカード
151 レンズ
152 フォトセンサーアレイ
1071 色分離部
1072 信号補間部
1073 ペデスタル調整部
1074 ホワイトバランス調整部
1075 デジタルゲイン調整部
1076 γ変換部
1077 マトリクス部
1078 ビデオ信号処理部
1079 Y演算部
1080 BPF
1081 AF評価値回路
1082 AE評価値回路
1083 Y演算部
1084 AWB評価値回路
1085 CPUI/F
1086 DCTI/F
1075r、1075g、1075b 乗算器
DESCRIPTION OF SYMBOLS 100 Digital camera 101 Lens system 101a Focus lens system 101b Zoom lens system 102 Mechanical mechanism including autofocus 103 CCD (charge coupled device)
104 CDS (Correlated Double Sampling) Circuit 105 Variable Gain Amplifier (AGC Amplifier)
106 A / D converter 107 IPP (Image Pre-Processor)
108 DCT (Discrete Cosine Transform)
109 Coder (Huffman Encoder / Decoder)
110 MCC (Memory Card Controller)
111 RAM (internal memory)
112 PC card interface 121 CPU
122 Display Unit 123 Operation Unit 126 SG Unit 127 Strobe 128 Battery 129 DC-DC Converter 130 EEPROM
131 Focus Driver 132 Pulse Motor 133 Zoom Driver 134 Pulse Motor 135 Motor Driver 136 External AF Sensor 150 PC Card 151 Lens 152 Photo Sensor Array 1071 Color Separation Unit 1072 Signal Interpolation Unit 1073 Pedestal Adjustment Unit 1074 White Balance Adjustment Unit 1075 Digital Gain Adjustment Unit 1076 γ conversion unit 1077 matrix unit 1078 video signal processing unit 1079 Y operation unit 1080 BPF
1081 AF Evaluation Value Circuit 1082 AE Evaluation Value Circuit 1083 Y Operation Unit 1084 AWB Evaluation Value Circuit 1085 CPU I / F
1086 DCTI / F
1075r, 1075g, 1075b multiplier

Claims (5)

被写体像を所定位置に結像するフォーカスレンズ系を含むレンズ系と、
前記レンズ系を介して入力される被写体像を撮像して画像データを出力する撮像手段と、
前記撮像手段を使用して、基準位置の近傍で前記レンズ系を移動させて被写体のコントラストをサンプリングして合焦位置を検出する第1の合焦位置検出手段と、
前記撮像手段とは異なる光電変換手段を使用して、被写体との距離を検出して前記レンズ系の合焦位置を検出する第2の合焦位置検出手段と、
最終的な合焦位置に決定する合焦位置決定手段と、を備え、
前記第2の合焦位置検出手段は、合焦動作を指示するための合焦動作操作部材の操作に先行して、所定の時間間隔で被写体との距離を測距する測距処理を実行することで、前記合焦動作操作部材が操作された際の被写体距離を予測し、
前記第1の合焦位置検出手段は、前記合焦動作操作部材が操作された場合に、前記予測された被写体距離に基づいてサンプリング開始位置を決定してサンプリング動作を実行し、
前記合焦位置決定手段は、前記第1の合焦位置検出手段でサンプリングされた被写体のコントラストが最大となる位置を最終的な合焦位置に決定することを特徴とする自動合焦装置。
A lens system including a focus lens system that forms a subject image at a predetermined position;
Imaging means for imaging a subject image input via the lens system and outputting image data;
First focus position detection means for detecting a focus position by sampling the contrast of a subject by moving the lens system in the vicinity of a reference position using the imaging means;
Second focus position detection means for detecting a focus position of the lens system by detecting a distance to a subject using a photoelectric conversion means different from the imaging means;
A focus position determining means for determining the final focus position;
The second focus position detection means executes a distance measurement process for measuring the distance to the subject at a predetermined time interval prior to the operation of the focus operation operation member for instructing the focus operation. By predicting the subject distance when the focusing operation member is operated,
The first in-focus position detection means determines a sampling start position based on the predicted subject distance and executes a sampling operation when the in-focus operation member is operated.
The automatic focusing device, wherein the focusing position determination means determines a position where the contrast of the subject sampled by the first focusing position detection means is maximized as a final focusing position.
前記合焦位置決定手段は、前記第1の合焦位置検出手段でサンプリングされた被写体のコントラストにピークが無い場合には、前記第2の合焦位置検出手段により予測された合焦位置を最終的な合焦位置に決定することを特徴とする請求項1に記載の自動合焦装置。   The in-focus position determining means finally determines the in-focus position predicted by the second in-focus position detecting means when there is no peak in the contrast of the subject sampled by the first in-focus position detecting means. The automatic focusing device according to claim 1, wherein the in-focus position is determined. 前記合焦位置決定手段は、前記第1の合焦位置検出手段によるサンプリング動作と並行して、前記第2の合焦位置検出手段を実行し、前記第1の合焦位置検出手段でサンプリングされた被写体のコントラストにピークが無い場合には前記第2の合焦位置検出手段で検出された合焦位置を最終的な合焦位置に決定することを特徴とする請求項1に記載の自動合焦装置。   The in-focus position determining means executes the second in-focus position detecting means in parallel with the sampling operation by the first in-focus position detecting means, and is sampled by the first in-focus position detecting means. 2. The automatic focusing according to claim 1, wherein when there is no peak in the contrast of the subject, the focusing position detected by the second focusing position detecting means is determined as a final focusing position. Charcoal device. 請求項1〜3のいずれか一つに記載の自動合焦装置を適用したことを特徴とするデジタルカメラ。   A digital camera to which the automatic focusing device according to any one of claims 1 to 3 is applied. 請求項1〜3のいずれか一つに記載の自動合焦装置を適用したことを特徴とする携帯情報入力装置。   A portable information input device to which the automatic focusing device according to any one of claims 1 to 3 is applied.
JP2006168651A 2006-06-19 2006-06-19 Automatic focusing device, digital camera, and portable information input device Expired - Fee Related JP4343192B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006168651A JP4343192B2 (en) 2006-06-19 2006-06-19 Automatic focusing device, digital camera, and portable information input device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006168651A JP4343192B2 (en) 2006-06-19 2006-06-19 Automatic focusing device, digital camera, and portable information input device

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2000064200A Division JP3914367B2 (en) 2000-03-08 2000-03-08 Automatic focusing device, digital camera, and portable information input device

Publications (2)

Publication Number Publication Date
JP2006309259A JP2006309259A (en) 2006-11-09
JP4343192B2 true JP4343192B2 (en) 2009-10-14

Family

ID=37476119

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006168651A Expired - Fee Related JP4343192B2 (en) 2006-06-19 2006-06-19 Automatic focusing device, digital camera, and portable information input device

Country Status (1)

Country Link
JP (1) JP4343192B2 (en)

Also Published As

Publication number Publication date
JP2006309259A (en) 2006-11-09

Similar Documents

Publication Publication Date Title
US6430368B1 (en) Autofocus apparatus
US7764321B2 (en) Distance measuring apparatus and method
JP5054583B2 (en) Imaging device
JP4980982B2 (en) Imaging apparatus, imaging method, focus control method, and program
TWI492618B (en) Image pickup device and computer readable recording medium
JP2008054177A (en) Imaging apparatus
JP3820076B2 (en) Automatic focusing device, digital camera, portable information input device, focusing position detection method, and computer-readable recording medium
JP2013008004A (en) Imaging apparatus
JP3761383B2 (en) Automatic focusing device, camera, portable information input device, focusing position detection method, and computer-readable recording medium
US7710492B2 (en) Imaging device and imaging method for performing automatic focus detection
JP5092673B2 (en) Imaging apparatus and program thereof
JP4555255B2 (en) Automatic focusing device, digital camera, portable information input device, focusing position detection method, and computer-readable recording medium
JP2001221945A (en) Automatic focusing device
JP2001255451A (en) Automatic focusing device, digital camera and portable information input device
JP5045538B2 (en) Imaging apparatus and program
JP2009069740A (en) Image pickup device
JP4612512B2 (en) Automatic focusing device, camera, portable information input device, focusing position detection method, and computer-readable recording medium
JP4907956B2 (en) Imaging device
JP3795723B2 (en) Automatic focusing device, digital camera, portable information input device and focusing position detection method
JP2004085964A (en) Automatic focusing device, digital camera, and portable information input device
JP2014106324A (en) Autofocus device and imaging device
JP4343192B2 (en) Automatic focusing device, digital camera, and portable information input device
JP3914367B2 (en) Automatic focusing device, digital camera, and portable information input device
JP5418553B2 (en) Imaging apparatus and imaging method using the same
JP2004151183A (en) Automatic focusing device, digital camera and portable information terminal equipment equipped with the automatic focusing device

Legal Events

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20090707

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20090708

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

Free format text: PAYMENT UNTIL: 20120717

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20120717

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20130717

Year of fee payment: 4

LAPS Cancellation because of no payment of annual fees