JPH024207A - focus detection device - Google Patents

focus detection device

Info

Publication number
JPH024207A
JPH024207A JP15375788A JP15375788A JPH024207A JP H024207 A JPH024207 A JP H024207A JP 15375788 A JP15375788 A JP 15375788A JP 15375788 A JP15375788 A JP 15375788A JP H024207 A JPH024207 A JP H024207A
Authority
JP
Japan
Prior art keywords
auxiliary light
flag
subroutine
lens
focus
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP15375788A
Other languages
Japanese (ja)
Inventor
Terutake Kadohara
輝岳 門原
Akira Akashi
明石 彰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP15375788A priority Critical patent/JPH024207A/en
Publication of JPH024207A publication Critical patent/JPH024207A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。
(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.

Description

【発明の詳細な説明】 (発明の利用分野) 本発明は、焦点検出されるべき結像光学系を通湯する光
束を、複数の光電変換素子列で受光し、この光電変換素
子列の出力を用いて、該結像光学系の焦点状態を検出す
る焦点検出装置の改良に関するものである。
DETAILED DESCRIPTION OF THE INVENTION (Field of Application of the Invention) The present invention is directed to receiving a luminous flux passing through an imaging optical system to be focused and detecting the focus by a plurality of photoelectric conversion element arrays, and detecting the output of the photoelectric conversion element array. The present invention relates to an improvement of a focus detection device that detects the focus state of the imaging optical system using the above.

(発明の背景) 従来のカメラに配置されるこの種の装置として、撮影レ
ンズの射出瞳を分割し、各瞳領域を通過した光束が形成
する複数の像の相対位置変位を観測することによって、
前記撮影レンズの焦点状態を検出する方式が知られてい
る。具体的には、焦点検出用の光学系によって撮影レン
ズの射出瞳を2つに分割し、その分割した2領域を通過
した各光束を蓄積型の光電変換素子列(例えばCCDセ
ンサ列)上に像として形成する。そしてそのセンサ出力
信号をA/D変換した後、全部或は一部の範囲の信号を
抽出して、2像の相対位置変位を求めるものである。
(Background of the Invention) This type of device installed in a conventional camera divides the exit pupil of a photographic lens and observes the relative positional displacement of a plurality of images formed by light beams passing through each pupil area.
A method for detecting the focal state of the photographic lens is known. Specifically, the exit pupil of the photographic lens is divided into two by a focus detection optical system, and each light beam that passes through the two divided areas is transferred onto an accumulation-type photoelectric conversion element array (for example, a CCD sensor array). Form as an image. After A/D converting the sensor output signal, all or a part of the signal is extracted to determine the relative positional displacement of the two images.

この方式では、合焦と検知されるピント位置と撮影レン
ズの最適ピント位置が異なる場合が多い。これは撮影レ
ンズの球面収差と色収差及び光電変換素子の分光感度の
偏りなどのためである。
In this method, the focus position that is detected as being in focus is often different from the optimum focus position of the photographing lens. This is due to the spherical aberration and chromatic aberration of the photographic lens, and the bias in the spectral sensitivity of the photoelectric conversion element.

更に一眼レフカメラにおいては各種の交換レンズが存在
し、これらを種々に使用していくことで本来のシステム
が構成される訳であるが、この場合各種交換レンズにお
ける最適ピント位置が異なることは公知であり、これら
問題から信号処理により求まった結果に対し何らかの方
法で補正が必要となる。この補正は各種レンズ毎に必要
なものであり、例えば最適ピント補正などと呼ばれ、従
来より種々の方式による補正がなされている。
Furthermore, there are various types of interchangeable lenses for single-lens reflex cameras, and the original system is constructed by using these in various ways, but it is well known that the optimal focus position for each type of interchangeable lens is different. Therefore, due to these problems, it is necessary to correct the results obtained by signal processing in some way. This correction is necessary for each type of lens, and is called, for example, optimal focus correction, and has been conventionally performed using various methods.

また、この種の補正を必要とするケースとして、例えば
被写体が低輝度或は低コントラストであり通常の測距動
作が不可能な時、補助光などと呼ばれる測距用の照明装
置を使用した場合にも必要となる。これは補助光に一般
に外光即ち自然光とは異なった分光成分の光、つまり通
常(近)赤外光が使われているためである。つまり前述
の光電変換素子列の感度分布が赤外側に偏っているため
、出力信号が赤外成分に対して偏ったものとなるからで
ある。現在これに対する補正としては、単に外光のみで
の撮影時の補正値と補助光使用時の補助光成分のみに対
応した補正値の2つを各レンズ毎に設定して行う方式と
、特開昭58−59413号、特開昭62−86318
号に開示されているように、補助光と外光のそれぞれに
対し専用の受光部を設け、それぞれから得られる情報を
用いて行う方式とがある。
In addition, cases where this type of correction is required include, for example, when the subject has low brightness or contrast and normal distance measurement is impossible, or when a lighting device for distance measurement called an auxiliary light is used. It is also necessary. This is because the auxiliary light generally uses light with a spectral component different from external light, that is, natural light, that is, normal (near) infrared light. In other words, since the sensitivity distribution of the photoelectric conversion element array described above is biased toward the infrared side, the output signal is biased toward the infrared component. Currently, there are two ways to correct this problem: one is to set two correction values for each lens: one for shooting with only external light, and one for only the auxiliary light component when using auxiliary light. No. 58-59413, JP-A-62-86318
As disclosed in the above issue, there is a method in which a dedicated light receiving section is provided for each of auxiliary light and external light, and information obtained from each is used.

しかしながら、前者においては、単一のセンサで外光或
は補助光それぞれを単独に受光することは困難で、両者
の光が混在した環境(補助光を必要とする位の薄暗い環
境下)において、混在の比率に応じた最適な補正を行わ
ずに撮影されている点が問題となっている。また後者に
おいては、前述のように補助光に対して専用の受光部を
設けることは非常に高価なハイブリッドセンサが必要と
なってしまう。
However, in the former case, it is difficult to receive both external light and auxiliary light with a single sensor, and in an environment where both types of light are mixed (in a dim environment that requires auxiliary light), The problem is that images are taken without optimal correction according to the mixing ratio. Furthermore, in the latter case, providing a dedicated light receiving section for the auxiliary light as described above requires a very expensive hybrid sensor.

(発明の目的) 本発明の目的は、上述した問題を解決し、高コスト化を
排除しつつ、補助光下における焦点検出精度を向上させ
ることのできる焦点検出装置を提供することである。
(Object of the Invention) An object of the present invention is to provide a focus detection device that can solve the above-mentioned problems and improve focus detection accuracy under auxiliary light while eliminating high costs.

(発明の特徴) 上記目的を達成するために、本発明は、補助光使用時に
は、該補助光使用時の光電変換手段よりの情報と外光の
みによる光電変換手段よりの情報とに基づいて補正値を
算出し、該補正値を演算手段に出力して焦点状態検出演
算に供させる補正値算出手段を設け、以て、外光による
焦点状態検出時と補助光使用による焦点状態検出時に共
通に光電変換手段を使用し、且つ補助光使用時には、該
補助光使用時にも混在する外光条件を考慮して、焦点状
態検出演算に供させる補正値を算出するようにしたこと
を特徴とする。
(Features of the Invention) In order to achieve the above object, the present invention provides correction based on information from the photoelectric conversion means when using the auxiliary light and information from the photoelectric conversion means using only external light when using the auxiliary light. A correction value calculation means is provided which calculates the correction value and outputs the correction value to the calculation means for use in focus state detection calculation. The present invention is characterized in that when a photoelectric conversion means is used and when an auxiliary light is used, a correction value to be used in a focus state detection calculation is calculated by taking into consideration external light conditions that are mixed even when the auxiliary light is used.

(発明の実施例) 以下、本発明を図示の実施例に基づいて詳細に説明する
(Embodiments of the Invention) Hereinafter, the present invention will be described in detail based on illustrated embodiments.

第1図は本発明の一実施例を示すブロック図である。該
図において、PRSは、内部にCPU(中央演算処理部
)、ROM、RAM、EEFROM(電気的消去可能プ
ログラマブルROM)。
FIG. 1 is a block diagram showing one embodiment of the present invention. In the figure, PRS includes a CPU (central processing unit), ROM, RAM, and EEFROM (electrically erasable programmable ROM).

A/D変換部をもつ1チツプマイクロコンピユータ(以
下マイコンと記す)であり、ROMに格納されたカメラ
のシーケンスプログラムに従って、AE、AF等の動作
を進行させると共に、通信用の各種信号So、SI、5
CLKを用いて周辺回路及びレンズFLNSと通信し、
各々の回路やレンズFLNSを制御するものである。
It is a one-chip microcomputer (hereinafter referred to as microcomputer) with an A/D conversion section, and it advances operations such as AE and AF according to the camera sequence program stored in the ROM, and also processes various communication signals So and SI. , 5
Communicate with peripheral circuits and lens FLNS using CLK,
It controls each circuit and lens FLNS.

前記EEFROMは不揮発性メモリの一種で、各種の調
整データが工程段階時に書き込まれている。又SOはマ
イコンPR3から出力されるデータ信号、SIはマイコ
ンPRSに入力されるデータ信号、5CLKは前記デー
タ信号So、SIの同期信号である。
The EEFROM is a type of non-volatile memory, and various adjustment data are written therein during process steps. Further, SO is a data signal output from the microcomputer PR3, SI is a data signal input to the microcomputer PRS, and 5CLK is a synchronization signal of the data signals So and SI.

LCMはレンズ通信バッファ回路であり、カメラが動作
中のときはレンズ用電源VLをレンズFLNS側に与え
、マイコンPR3からの信号CLCMがH”のときはカ
メラとレンズFLNS間の通信バッファとなる。
LCM is a lens communication buffer circuit, which applies lens power VL to the lens FLNS side when the camera is in operation, and serves as a communication buffer between the camera and lens FLNS when the signal CLCM from the microcomputer PR3 is H''.

前記マイコンPRSが信号CLCMを“H”にして、同
期信号5CLKに同期させてデータ信号Soを送出する
と、レンズ通信バッファ回路LCMはカメラ・レンズ間
接点を介して、前記信号5CLK、Soの各々のバッフ
ァ信号LCK、DCLをレンズFLNS側に出力する。
When the microcomputer PRS sets the signal CLCM to "H" and sends out the data signal So in synchronization with the synchronization signal 5CLK, the lens communication buffer circuit LCM outputs each of the signals 5CLK and So through the camera-lens junction. Buffer signals LCK and DCL are output to the lens FLNS side.

それと同時にレンズFLNS側から入力する信号DLC
のバッファ信号であるデータ信号SIを同期信号5CL
Kに同期させてマイコンPRSに出力する。
At the same time, the signal DLC input from the lens FLNS side
The data signal SI, which is a buffer signal of
It is synchronized with K and output to the microcomputer PRS.

SDRは焦点検出用のラインセンサ装置SNSの駆動回
路であり、信号C5DRが゛H”の時選択されて、信号
So、SI、5CLKを用いてマイコンPRSにより制
御される。CKはCOD駆動用クロりクφ1.φ2を生
成するための信号であり、INTENDは蓄積動作が終
了したことをマイコンPR3へ知らせる信号である。
SDR is a drive circuit for the line sensor device SNS for focus detection, and is selected when the signal C5DR is "H" and is controlled by the microcomputer PRS using the signals So, SI, and 5CLK.CK is the COD drive clock. INTEND is a signal for generating signals φ1 and φ2, and INTEND is a signal to notify the microcomputer PR3 that the storage operation has ended.

前記ラインセンサ装置SNSの出力信号O3はクロック
φ1.φ2に同期した時系列の像信号であり、駆動回路
SDR内の増幅回路で増幅された後、信号AOSとして
マイコンPRSに出力される。マイコンPRSは信号A
OSをアナログ入力端子から入力し、信号CKに同期し
て内部のA/D変換部でA/D変換し、その後RAMの
所定アドレスに順次格納する。同じくラインセンサ装置
SNSの出力信号5AGCは、該装置SNS内のAGC
制御用センサの出力であり、駆動回路SDRに人力され
て、該装置SNSの蓄積制御に用いられる。
The output signal O3 of the line sensor device SNS is clocked φ1. It is a time-series image signal synchronized with φ2, and after being amplified by the amplifier circuit in the drive circuit SDR, it is output to the microcomputer PRS as a signal AOS. Microcomputer PRS is signal A
The OS is input from an analog input terminal, A/D converted by an internal A/D converter in synchronization with the signal CK, and then sequentially stored at a predetermined address in the RAM. Similarly, the output signal 5AGC of the line sensor device SNS is the AGC in the device SNS.
This is the output of the control sensor, and is manually input to the drive circuit SDR and used for storage control of the device SNS.

SPCは露出制御用の測光センサであり、その出力信号
5spcはマイコンPRSのアナログ入力端子に入力さ
れ、A/D変換された後、AE制御に用いられる。
SPC is a photometric sensor for exposure control, and its output signal 5spc is input to an analog input terminal of microcomputer PRS, A/D converted, and then used for AE control.

DDRはスイッチセンス及び表示用回路であり、信号C
DDRが“H”の時選択されて、信号So、SI、5C
LKを用いてマイコンPR3により制御される。すなわ
ちマイコンPRSから送られてくるデータに基づいて表
示器DSPに表示させるカメラの各種情報を切り換えた
り、不図示のレリーズボタン(スイッチswl、sw2
に連動)やモード設定ボタン等の各種操作部材のオンオ
フ状態をマイコンPR3に送出する。
DDR is a switch sense and display circuit, and the signal C
Selected when DDR is “H”, signals So, SI, 5C
It is controlled by microcomputer PR3 using LK. That is, you can switch various types of camera information to be displayed on the display DSP based on data sent from the microcomputer PRS, and press release buttons (not shown) (switches swl, sw2).
The on/off status of various operating members such as the mode setting button and the like) are sent to the microcomputer PR3.

MDRI、MDR2はフィルム給送、シャッタばね巻き
上げ用モータMTR1,MTR2の駆動回路で、マイコ
ンPR3よりの信号MIF、MIR,M2F、M2Rに
したがってモータの正転・逆転を実行する。
MDRI and MDR2 are drive circuits for film feeding and shutter spring winding motors MTR1 and MTR2, and perform forward and reverse rotation of the motors in accordance with signals MIF, MIR, M2F and M2R from microcomputer PR3.

MGI、MG2は各々シャッタ先幕・後幕走行開始用マ
グネットで、マイコンPRSよりの信号SMGI、5M
G2、トランジスタTR1,TR2で通電され、マイコ
ンPRSによりシャッタ制御が行われる。
MGI and MG2 are magnets for starting shutter front and rear curtain travel, respectively, and signals SMGI and 5M from the microcomputer PRS.
G2, transistors TR1 and TR2 are energized, and the microcomputer PRS performs shutter control.

AUTは補助光投光ユニットであり、不図示の部材にて
カメラ本体に装着され、カメラからの出力SALに応答
してトランジスタATRがオンし、補助光源ALEDに
通電させて発光させる。
AUT is an auxiliary light projecting unit, which is attached to the camera body by a member not shown. In response to the output SAL from the camera, a transistor ATR is turned on, and the auxiliary light source ALED is energized to emit light.

ALNSはALEDの光を被写体に適切に照射させるた
めのレンズである。
ALNS is a lens that allows the subject to be appropriately irradiated with light from the ALED.

前記信号LCKに同期してレンズ内制御回路LPRSに
入力される信号DCLは、カメラからレンズFLNSに
対する命令のデータであり、命令に対するレンズの動作
が予め決められている。前記レンズ内制御回路LPR3
は、所定の手続きにしたがってその命令を解析し、焦点
調節や絞り制御の動作やレンズの各種パラメータ(開放
Fナンバー、焦点距離、デフォーカス量対繰り出し量の
係数等)の出力を行う。
The signal DCL input to the intra-lens control circuit LPRS in synchronization with the signal LCK is data of a command from the camera to the lens FLNS, and the operation of the lens in response to the command is determined in advance. The in-lens control circuit LPR3
analyzes the command according to a predetermined procedure, and outputs focus adjustment and aperture control operations and various lens parameters (open F-number, focal length, coefficient of defocus amount versus extension amount, etc.).

本実施例では、全体繰り出しの単レンズの例を示してお
り、カメラから焦点調節の命令が送られて来た場合には
、同時に送られてくる駆動量、駆動方向信号にしたがっ
て焦点調節用モータLMTRを信号LMF、LMRによ
って駆動して、光学系を光軸方向に移動させて焦点調節
を行う。光学系の移動量はエンコーダ回路ENCのパル
ス信号5ENCでモニターして、所定の移動が完了した
時点で信号LMF、LMRを“L”にしてモータLMT
Rを制動する。
This example shows an example of a single lens that extends entirely, and when a focus adjustment command is sent from the camera, the focus adjustment motor is activated according to the drive amount and drive direction signals sent at the same time. The LMTR is driven by signals LMF and LMR to move the optical system in the optical axis direction and perform focus adjustment. The amount of movement of the optical system is monitored by the pulse signal 5ENC of the encoder circuit ENC, and when the predetermined movement is completed, the signals LMF and LMR are set to "L" and the motor LMT is activated.
Brake R.

カメラから絞り制御の命令が送られて来た場合には、同
時に送られてくる絞り段数に従って絞り駆動用としての
公知のステッピングモータDMTRを駆動する。尚ステ
ッピングモータDMTRはオーブン制御が可能なため、
動作をモニターするためのエンコーダを必要としない。
When an aperture control command is sent from the camera, a known stepping motor DMTR for driving the aperture is driven according to the number of aperture stages sent at the same time. In addition, since the stepping motor DMTR can be oven controlled,
Does not require an encoder to monitor operation.

次に動作について説明する。尚スイッチセンス及び表示
用回路DDR,モータ駆動回路MDR1、MDR2、及
びシャッタ制御系は、本発明と直接間わりがないので、
その詳細は省略する。
Next, the operation will be explained. Note that the switch sense and display circuit DDR, motor drive circuits MDR1 and MDR2, and shutter control system are not directly related to the present invention.
The details are omitted.

不図示の電源スィッチが操作されると、マイコンPRS
への給電が開始され、該マイコンPRSはROMに格納
されたシーケンスプログラムの実行を開始する。
When the power switch (not shown) is operated, the microcomputer PRS
Power supply to the microcomputer PRS is started, and the microcomputer PRS starts executing the sequence program stored in the ROM.

第2図は上記プログラムの全体の流れを表すフローチャ
ートである。上記操作にてプログラムの実行が開始され
ると、#2においてレリーズボタンの第1ストロークに
てオンとなるスイッチSW1の状態検知がなされ、スイ
ッチswlがオフの時は#3でマイコンPRS内のRA
Mに設定されている制御用のフラグが全てクリアされる
。上記#2.#3はスイッチswlがオンとなるか或は
電源スィッチがオフとなるまで繰り返し実行され、スイ
ッチswlがオンとなることによって#4へ移行する。
FIG. 2 is a flowchart showing the overall flow of the above program. When the execution of the program is started by the above operation, the state of the switch SW1, which is turned on at the first stroke of the release button, is detected in #2, and when the switch swl is off, the RA in the microcomputer PRS is detected in #3.
All control flags set in M are cleared. Above #2. #3 is repeatedly executed until the switch swl is turned on or the power switch is turned off, and when the switch swl is turned on, the process moves to #4.

#4はrAE制御」のサブルーチンを意味しており、こ
のrAE制御」サブルーチンでは測光演算処理、露光制
御並びに露出後のシャッタチャージ、フィルム巻上げ等
の一連のカメラ動作制御が行われる。なおrAE制御」
サブルーチンは本発明とは直接間わりがないので詳細な
説明は省略するが、このサブルーチンでの動作機能の概
要は次の通りである。
#4 refers to the "rAE control" subroutine, and in this "rAE control" subroutine, a series of camera operation controls such as photometric calculation processing, exposure control, shutter charging after exposure, and film winding are performed. In addition, rAE control
Since the subroutine is not directly related to the present invention, a detailed explanation will be omitted, but an outline of the operational functions of this subroutine is as follows.

スイッチswlがオン中はこのrAE制御」サブルーチ
ンが実行され、その度にカメラのモードや測光及び露光
制御演算、表示が行われる。不図示のレリーズボタンの
第2ストロークでスイッチsw2がオンになると、マイ
コンPRSの持つ割り込み処理機能によってレリーズ動
作が開始され、上記露光制御演算で求められた露光量に
基づいて絞り或はシャツタ秒時の制御が行われ、露光終
了後にはシャッタチャージ及びフィルム給送動作が行わ
れることによってフィルムl駒の撮影が完了する。
While the switch swl is on, this "rAE control" subroutine is executed, and each time the camera mode, photometry and exposure control calculations and display are performed. When the switch sw2 is turned on by the second stroke of the release button (not shown), the release operation is started by the interrupt processing function of the microcomputer PRS, and the aperture or shutter speed is adjusted based on the exposure amount determined by the above exposure control calculation. After the exposure is completed, shutter charging and film feeding operations are performed to complete the photographing of one frame of film.

前記#4にてrAE制御」サブルーチンが終了すると、
#5のrAF制御」サブルーチンが実行される。
When the “rAE control” subroutine ends in #4 above,
The #5 "rAF control" subroutine is executed.

第3図にこのrAF制御」サブルーチンのフローチャー
トを示す。
FIG. 3 shows a flowchart of this rAF control subroutine.

まず#102でレンズ駆動実行フラグPRMVの状態を
検知する。このフラグPRMVは後に述べるようにレン
ズ制御に関わるフラグであるが、前述したようにスイッ
チswlのオフ中第2図#3にて全てのフラグがクリア
されているので、スイッチswlのオンから初めて第2
図#5の「AF副制御サブルーチンがコールされた時に
は、該フラグPRMVもOであるので#106へ移行す
る。
First, in #102, the state of the lens drive execution flag PRMV is detected. This flag PRMV is a flag related to lens control as described later, but as mentioned above, all flags are cleared in #3 in Figure 2 while the switch swl is off, so 2
When the AF sub-control subroutine in Figure #5 is called, the flag PRMV is also O, so the process moves to #106.

#106では補助光合焦フラグAUXJFの状態を検知
する。該フラグAUXJFは補助光制御に関わるフラグ
であり、前述したように該フラグAUXJFも0である
から#108へ移行する。
In #106, the state of the auxiliary light focusing flag AUXJF is detected. The flag AUXJF is a flag related to auxiliary light control, and as described above, since the flag AUXJF is also 0, the process moves to #108.

#108では「像信号入力」サブルーチンであり、この
サブルーチンを実行することで、マイコンPRSのRA
M上の所定アドレスにラインセンサ装置SNSからの像
信号のA/D変換信号が格納される。「像信号人力」サ
ブルーチンについては第4図にフローチャートを示して
おり、その詳細は後述する。次の#109では補助光モ
ードフラグAUXMODの状態を検知する。該フラグA
UXMODは補助光モードであることを表すフラグであ
る。補助光に関する制御は後で述べる。前述したように
前記フラグAUXMODはOであるから#110へ移行
する。
#108 is the "image signal input" subroutine, and by executing this subroutine, the RA of the microcomputer PRS is
The A/D conversion signal of the image signal from the line sensor device SNS is stored at a predetermined address on M. A flowchart of the "image signal manual power" subroutine is shown in FIG. 4, and its details will be described later. In the next step #109, the state of the auxiliary light mode flag AUXMOD is detected. The flag A
UXMOD is a flag indicating the auxiliary light mode. Control regarding the auxiliary light will be described later. As mentioned above, since the flag AUXMOD is O, the process moves to #110.

#110では低輝度フラグLLFLGの状態検知を行う
。このフラグLLFLGは前記#108の「像信号入力
」サブルーチン内で設定されるフラグで、被写体輝度が
低い場合には1にセットされる。ここでは、被写体輝度
が充分あるもの(フラグLLFLGはO)として説明を
進める。該フラグLLFLGはOであるから#111に
移行し、被写体輝度が充分にあることから補助光モード
フラグAUXMODをOにクリアする。次に#112に
おいて「焦点検出」サブルーチンを実行する。このサブ
ルーチンのフローチャートは第5図に示しているが、こ
のサブルーチン内ではRAMに格納されている像信号デ
ータから撮影レンズの焦点を検出し、合焦状態ならば合
焦フラグJFを1にし、被写体が低コントラストのため
に焦点検出が不可能であったならば焦点検出不能フラグ
AFNGを1にし、両者の内のいずれかの状態の場合に
はレンズ駆動を禁止するためのレンズ駆動禁止フラグL
MVD Iを1にセットしてリターンする。
In #110, the state of the low luminance flag LLFLG is detected. This flag LLFLG is set in the "image signal input" subroutine of #108, and is set to 1 when the subject brightness is low. Here, the explanation will proceed assuming that the subject has sufficient brightness (the flag LLFLG is O). Since the flag LLFLG is O, the process moves to #111, and the auxiliary light mode flag AUXMOD is cleared to O since the subject brightness is sufficient. Next, in #112, a "focus detection" subroutine is executed. The flowchart of this subroutine is shown in Fig. 5. In this subroutine, the focus of the photographing lens is detected from the image signal data stored in the RAM, and if the focus is on, the focus flag JF is set to 1, and the object is If focus detection is impossible due to low contrast, set the focus detection impossible flag AFNG to 1, and set the lens drive prohibition flag L to prohibit lens drive in either of the two states.
Set MVD I to 1 and return.

次の#113では合焦又は焦点検出不能を表示するため
の「表示」サブルーチンを実行する。これはスイッチセ
ンス及び表示用回路DDRに所定のデータを通信して表
示器DSPに表示させるわけであるが、この動作は本発
明と直接間わりがないので、前述したようにこれ以上の
説明は省略する。
In the next step #113, a "display" subroutine is executed to display in-focus or inability to detect focus. This is to communicate predetermined data to the switch sense and display circuit DDR and display it on the display DSP, but since this operation is not directly related to the present invention, no further explanation will be given as mentioned above. Omitted.

さて次の#114ではレンズ駆動禁止フラグLMVDI
の状態を検知する。先に述べたようにレンズ駆動の必要
がない場合には、前記フラグLMVDIが1にセットさ
れるので、#114において該フラグLMVD Iが1
ならば、#115でrAF制御」サブルーチンをリター
ンする。又該フラグLMVD Iが0ならば#116に
移行して、「レンズ駆動」サブルーチンを実行する。こ
のサブルーチンについては後で述べる。該「レンズ駆動
」サブルーチン(#116)が終了すれば、#117に
てレンズ駆動実行フラグP RMVを1にセットした後
、#118でrAF制御」サブルーチンをリターンする
Now, in the next #114, the lens drive prohibition flag LMVDI
Detect the state of. As mentioned earlier, when there is no need to drive the lens, the flag LMVDI is set to 1, so in #114, the flag LMVD I is set to 1.
If so, the "rAF control" subroutine is returned at #115. If the flag LMVDI is 0, the process moves to #116 and the "lens drive" subroutine is executed. This subroutine will be described later. When the "lens drive" subroutine (#116) is completed, the lens drive execution flag PRMV is set to 1 in #117, and then the "rAF control" subroutine is returned to #118.

第2図のメインフローにおいて再び#5の「AF制御」
がコールされると、第3図#102でレンズ駆動実行フ
ラグPRMVの状態検知が行われる。前回のrAF制御
」サブルーチンで、合焦或は焦点検出不能ならばフラグ
PRMVはOのままであるので、#106以降のフロー
を再び実行していく。前回レンズ駆動が行われた場合に
は、#117にて前記フラグPRMVが1にセットされ
ているから、#102から#103へ移行する。
In the main flow of Figure 2, #5 "AF control" is again performed.
When is called, the state of the lens drive execution flag PRMV is detected at #102 in FIG. In the previous rAF control subroutine, if in-focus or focus detection is not possible, the flag PRMV remains O, so the flow from #106 onwards is executed again. If the lens was driven last time, the flag PRMV is set to 1 in #117, so the process moves from #102 to #103.

#103ではレンズFLNSと通信して、現在のレンズ
FLNSの駆動状況を検知し、レンズFLNS側から#
116で指示した所定の駆動が終了したことが知らされ
れば、#105にてフラグPRMVをOにして#106
以降のフローを実行していく。レンズFLNS側から未
だ駆動中であることが知らされたならば、#104に移
行して、rAF制御」サブルーチンをリターンする。
#103 communicates with the lens FLNS, detects the current driving status of the lens FLNS, and transmits # from the lens FLNS side.
When it is notified that the specified drive specified in step 116 has ended, the flag PRMV is set to O in #105 and #106
Execute the following flow. If it is notified from the lens FLNS side that the lens is still being driven, the process moves to #104 and the ``rAF control'' subroutine is returned.

従って該rAF制御」サブルーチンではレンズFLNS
が駆動していない状態でのみ新たな焦点検出動作、レリ
ーズ制御を行うことになる。
Therefore, in the rAF control subroutine, the lens FLNS
A new focus detection operation and release control are performed only when the lens is not driven.

次に補助光に関わる動作について説明する。Next, operations related to the auxiliary light will be explained.

被写体輝度が低い場合には、#108の「像信号入力」
サブルーチンにおいてフラグLLFLGが1にセットさ
れ、#110の該フラグLLFLG状態検知で#119
に移行する。
If the subject brightness is low, use #108 "Image signal input"
In the subroutine, the flag LLFLG is set to 1, and when the state of the flag LLFLG is detected in #110, the flag LLFLG is set to #119.
to move to.

#119では不図示の補助光投光ユニットAUTの装着
−状態を検知し、該ユニットAUTが装着されていなけ
れば#111へ移行し、これまで説明してきた通常と同
じ動作を行う。該ユニットAUTが装着されていれば#
120に移行し、補助光モードフラグAUXMODを1
にセットする。
At #119, the attachment state of the auxiliary light projection unit AUT (not shown) is detected, and if the unit AUT is not attached, the process moves to #111 and the same normal operation as described above is performed. If the unit AUT is installed, #
120 and set the auxiliary light mode flag AUXMOD to 1.
Set to .

次に#121で補助光使用フラグAUXUSEの状態を
検知する。該フラグAUXUSEは実際に補助光投光が
なされた時に、#108の「像信号入力」サブルーチン
においてlにセットされるフラグである。今説明してい
る状況では、初めて補助光モードになったわけであるか
ら、#122で−旦rAF制御」をリターンする。即ち
この場合#108で入力した像信号データは焦点検出に
用いずに破棄し、次のrAF制御」サブルーチンにおい
て補助光投光状態で像信号を入力し、それを焦点検出に
使用するためである。但し本発明においては後に述べる
「補正演算」サブルーチンにて用いるため、補助光を使
用していない状態での蓄積時間は、#108の「像信号
入力」サブルーチンにおいて特定のRAM上に格納して
いる。
Next, in #121, the state of the auxiliary light use flag AUXUSE is detected. The flag AUXUSE is set to l in the "image signal input" subroutine of #108 when the auxiliary light is actually projected. In the situation described now, the auxiliary light mode is entered for the first time, so in #122, the process returns to "-rAF control". That is, in this case, the image signal data input in #108 is not used for focus detection and is discarded, and in the next rAF control subroutine, the image signal is input in the auxiliary light projection state and used for focus detection. . However, in the present invention, since it is used in the "correction calculation" subroutine described later, the accumulation time when the auxiliary light is not used is stored in a specific RAM in the "image signal input" subroutine of #108. .

さて#120において補助光モードフラグAUXMOD
が1にセットされた状態で再びrAF制御」サブルーチ
ンがコールされると、#108の「像信号入力」サブル
ーチンでは補助光投光状態で像信号を入力し、#109
の補助光モードフラグAUXMODの状態検知で#11
9に移行する。この間に補助光投光ユニットAUTが外
されていなければ(装着されたままであれば)、#12
0へ移行する。外されていれば#111へ移行して、補
助光モードフラグAUXMODをOにし、補助光モード
を解除し、通常のAF制御に戻る。
Now, in #120, the auxiliary light mode flag AUXMOD
When the "rAF control" subroutine is called again with "rAF control" subroutine set to 1, the "image signal input" subroutine at #108 inputs an image signal in the auxiliary light emission state, and
#11 by detecting the state of the auxiliary light mode flag AUXMOD.
Move to 9. If the auxiliary light projection unit AUT has not been removed during this time (if it is still attached), #12
Transition to 0. If it has been removed, the process moves to #111, sets the auxiliary light mode flag AUXMOD to O, cancels the auxiliary light mode, and returns to normal AF control.

#119,120を経て、#121では補助光使用フラ
グAUXUSEの状態検知を行う。既に#108におい
て補助光使用フラグAUXUSEは1にセットされてい
るから#112へ移行し、「焦点検出」サブルーチンを
実行する。「焦点検出」サブルーチン内においては補助
光モードフラグAUXMODが1であると、補助光を使
用したとして本発明では「補正演算」を行っている。
After passing through #119 and 120, the state of the auxiliary light use flag AUXUSE is detected in #121. Since the auxiliary light use flag AUXUSE has already been set to 1 in #108, the process moves to #112 and the "focus detection" subroutine is executed. In the "focus detection" subroutine, when the auxiliary light mode flag AUXMOD is 1, it is assumed that the auxiliary light is used, and a "correction calculation" is performed in the present invention.

一方、#112の「焦点検出」サブルーチンにおいて被
写体像のコントラストが低く焦点検出が不能で、補助光
も用いていない場合は、補助光が必要であると判断し、
補助光モードフラグAUXMODを1にセットしてrA
F制御」サブルーチンをリターンし、今度は補助光を用
いているため再びrAF制御」サブルーチンをコールす
る。
On the other hand, in the "focus detection" subroutine of #112, if the contrast of the subject image is low and focus detection is impossible and no auxiliary light is used, it is determined that auxiliary light is necessary,
Set the auxiliary light mode flag AUXMOD to 1 and use rA
The ``F control'' subroutine is returned, and since the auxiliary light is being used this time, the ``rAF control'' subroutine is called again.

上述した様に低輝度、低コントラストの場合には、補助
光を利用して焦点動作を行うわけであるが、補助光投光
状態で合焦した場合、#112の「焦点検出」サブルー
チン内で補助光合焦フラグAUXJFが1にセットされ
、この場合rAF制御」のフローにおいては、#106
で補助光合焦フラグAUXJFの状態が検出されて#1
07へ移行した後、rAF制御」サブルーチンをリター
ンする。すなわち補助光投光状態で合焦した場合にはス
イッチswlをオフするまでは再び焦点検出動作を行わ
ないようにする。
As mentioned above, in the case of low brightness and low contrast, the focus operation is performed using the auxiliary light, but if the focus is achieved with the auxiliary light emitted, the "Focus Detection" subroutine in #112 The auxiliary light focusing flag AUXJF is set to 1, and in this case, in the flow of "rAF control", #106
The state of the auxiliary light focus flag AUXJF is detected and #1
After moving to 07, the "rAF control" subroutine is returned. That is, when focusing is achieved in the auxiliary light projection state, the focus detection operation is not performed again until the switch swl is turned off.

第4図に「像信号入力」サブルーチンのフローチャート
を示す。
FIG. 4 shows a flowchart of the "image signal input" subroutine.

#202で補助光モードフラグAUXMODの状態を検
知し、該フラグAUXMODが1の場合には#2o3に
おいてマイコンPRSは出力SALを“H”にし、補助
光源ALEDを発光させ、#204で補助光使用フラグ
AUXUSEを1にセットする。補助光モードフラグA
UXMODがOの場合(通常光モード)には#202か
ら#205に移行し、補助光を投光することはない。
The state of the auxiliary light mode flag AUXMOD is detected in #202, and if the flag AUXMOD is 1, the microcomputer PRS sets the output SAL to "H" in #2o3, causes the auxiliary light source ALED to emit light, and uses the auxiliary light in #204. Set flag AUXUSE to 1. Auxiliary light mode flag A
When UXMOD is O (normal light mode), the process moves from #202 to #205 and no auxiliary light is emitted.

#205ではラインセンサ装置SNSに光像の蓄積を開
始させる。具体的にはマイコンPR3が駆動回路SDR
に「蓄積開始コマンド」を送出し、駆動回路SDRはラ
インセンサ装置SNSの光電変換素子部のクリア信号C
LRを“L“にして電荷の蓄積を開始させる。
In #205, the line sensor device SNS is caused to start accumulating optical images. Specifically, the microcomputer PR3 is the drive circuit SDR.
The drive circuit SDR sends the "accumulation start command" to
LR is set to "L" to start charge accumulation.

#2o6ではRAM上に設定されている蓄積時間カウン
タINTCNTをOに初期化する。#2o7では1ミリ
秒計時タイマをリセットする。尚この1ミリ秒計時タイ
マはマイコンPRSが有するタイマ機能を利用している
At #2o6, the accumulation time counter INTCNT set on the RAM is initialized to O. In #2o7, the 1 millisecond clock timer is reset. Note that this 1 millisecond clock timer utilizes the timer function of the microcomputer PRS.

#208ではマイコンPR3に入力する信号INTEN
Dの状態を検知し、蓄積が終了したか否かを調べる。駆
動回路SDRは蓄積開始と同時に信号INTENDを°
“L“にし、ラインセンサ装置SNSからの蓄積時間制
御用信号5AGCをモニタし、該信号5AGCが所定レ
ベルに達すると、信号INTENDをH”にし、同時に
電荷転送信号SHを所定時間“H”にして、光電変換素
子部の電荷をCCD部に転送させる構造を有している。
At #208, the signal INTEN input to the microcomputer PR3
The state of D is detected and it is checked whether the storage has finished. The drive circuit SDR outputs the signal INTEND at the same time as the accumulation starts.
Set it to "L" and monitor the accumulation time control signal 5AGC from the line sensor device SNS, and when the signal 5AGC reaches a predetermined level, set the signal INTEND to "H" and at the same time set the charge transfer signal SH to "H" for a predetermined time. It has a structure in which charges in the photoelectric conversion element section are transferred to the CCD section.

#208で信号INTENDが“H“ならば蓄積が終了
したということで#209へ移行する。
If the signal INTEND is "H" in #208, it means that the accumulation has been completed, and the process moves to #209.

蓄積が終了していない場合、#209で先にリセットし
た1ミリ秒タイマが1ミリ秒計時したかどうかを調べる
。1ミリ秒経過していなければ#208へ移行し、蓄積
終了或は1ミリ秒の経過を待つ。蓄積終了前に1ミリ秒
経過すると#210へ移行する。#210では蓄積時間
カウンタINTCNTを1つカウントアツプし、#21
1へ進む。#211では前記カウンタINTCNTと所
定定数MAXINTを比較しているが、該定数MAXI
NTは°1ミリ秒単位で表される最長蓄積時間であり、
前記カウンタINTCNTの値が前記定数MAX IN
T未満ならば#207へ戻り、再び蓄積終了待ちとなる
。前記カウンタINTCNTの値が前記定数MAXIN
Tに一致すると#212へ移行し、強制的に蓄積終了さ
せる。強制蓄積終了はマイコンPR3から駆動回路SD
Rへ「蓄積終了コマンド」を送出することで実行される
。つまり駆動回路SDRはマイコンPRSから「蓄積終
了コマンド」が送られると、電荷転送信号SHを所定時
間” H”にして光電変換部の電荷をCCD部へ転送さ
せる。#213ではマイコンPRSの出力SALを”L
 ”にし、#203で該出力SALが“°H゛になって
いれば補助光が発光しているままなので、“L ”にす
ることで発光が停止する。すなわち補助光はセンサの蓄
積中のみ発光することになる。#214では蓄積時間カ
ウンタINTCNTと所定の定数AUXINTを比較す
る。定数AUXINTは蓄積時間に対応して表現される
低輝度蓄積時間であり、前記カンタINTCNTが定数
AUXINTより大きいときには、#216へ移行して
低輝度フラグLLFLGを1にセットし、小さい時には
#215へ移行して低輝度フラグLLFLGをOにクリ
アする。すなわち蓄積時間が所定時間より長い時には低
輝度であると判断するわけである。
If the accumulation has not been completed, it is checked in #209 whether the 1 millisecond timer that was reset earlier has counted 1 millisecond. If 1 millisecond has not elapsed, the process moves to #208 and waits for the accumulation to end or for 1 millisecond to elapse. If 1 millisecond elapses before the accumulation ends, the process moves to #210. In #210, the accumulation time counter INTCNT is counted up by one, and in #21
Go to 1. In #211, the counter INTCNT and the predetermined constant MAXINT are compared, but the constant MAXI
NT is the maximum accumulation time expressed in degrees 1 millisecond;
The value of the counter INTCNT is the constant MAX IN
If it is less than T, the process returns to #207 and waits for the accumulation to end again. The value of the counter INTCNT is the constant MAXIN
If it matches T, the process moves to #212 and the accumulation is forcibly terminated. Forced accumulation ends from microcomputer PR3 to drive circuit SD
This is executed by sending an "accumulation end command" to R. That is, when the drive circuit SDR receives the "accumulation end command" from the microcomputer PRS, it sets the charge transfer signal SH to "H" for a predetermined period of time to transfer the charges in the photoelectric conversion section to the CCD section. In #213, the output SAL of the microcomputer PRS is set to “L”.
”, and if the output SAL is “°H” in #203, the auxiliary light continues to emit light, so the light emission is stopped by setting it to “L”. In other words, the auxiliary light is emitted only while the sensor is storing data. In #214, the accumulation time counter INTCNT is compared with a predetermined constant AUXINT. The constant AUXINT is the low luminance accumulation time expressed in correspondence with the accumulation time, and when the counter INTCNT is larger than the constant AUXINT, the process moves to #216 and the low brightness flag LLFLG is set to 1, and when it is smaller, the process moves to #215. The low brightness flag LLFLG is cleared to O. That is, when the accumulation time is longer than a predetermined time, it is determined that the brightness is low.

#217では補助光使用フラグAUXUSEの状態を検
知する。これは補助光を使用しなかった時(AUXUS
E=O)と使用した時(A U X USE=1)の、
それぞれの蓄積時間■NTCNTを別のRAM上の特定
アドレスに格納するためである。#218.219でそ
の動作を行う、この2つの値は後に述べる「補正演算」
に用いている。#220ではラインセンサ装置SNSの
像信号O8を駆動回路S]:)Rで増幅した信号AOS
のA/D変換及びそのディジタル信号のRAMへの格納
を行う。
In #217, the state of the auxiliary light use flag AUXUSE is detected. This is when the auxiliary light is not used (AUXUS
E=O) and when used (AUXUSE=1),
This is to store each storage time ■NTCNT at a specific address on another RAM. The operation is performed in #218 and 219, and these two values are used in the "correction calculation" described later.
It is used for. In #220, the image signal O8 of the line sensor device SNS is amplified by the drive circuit S]:)R, and the signal AOS is
A/D conversion of the data is performed and the digital signal is stored in the RAM.

このようにして像信号の入力を終了すると、#221に
て「像信号入力」サブルーチンをリターンする。
When inputting the image signal is completed in this way, the "image signal input" subroutine is returned at #221.

第5図に「焦点検出」サブルーチンのフローチャートを
示す。
FIG. 5 shows a flowchart of the "focus detection" subroutine.

このサブルーチンがコールされると、#302にてデフ
ォーカス検出サブルーチンrPREDJを実行する。こ
れは与えられた像信号から2像のずれ量を検出し、それ
から更にデフォーカス量を求めるというものであり、こ
れについては既に種々の提案がなされており、本実施例
では特に関係ない部分であるのでその詳細は省略する。
When this subroutine is called, the defocus detection subroutine rPREDJ is executed in #302. This involves detecting the amount of deviation between the two images from the given image signal, and then determining the amount of defocus. Various proposals have already been made regarding this, and this is not particularly relevant to this embodiment. Therefore, I will omit the details.

さて、#302において像信号からデフォーカス量が求
まったならば、#303において補助光モードフラグA
UXMODの状態を検知する。これは「補正演算」のた
め、補助光を用いない(AAUXMOD=O)時コント
ラストを別に格納するためである。補助光を用いた場合
は、この「焦点検出」サブルーチン内で「補正演算」を
行うので特に明示していない。
Now, if the defocus amount is found from the image signal in #302, the auxiliary light mode flag A is determined in #303.
Detects the state of UXMOD. This is because the contrast is stored separately when no auxiliary light is used (AAUXMOD=O) for "correction calculation". When auxiliary light is used, "correction calculation" is performed within this "focus detection" subroutine, so it is not specified explicitly.

#305においては低コントラストフラグLCFLGの
状態を検知する。該フラグLCFLGはデフォーカス検
出サブルーチンrPREDJ内で設定されるフラグで、
像信号のコントラストが所定値より低い時に1にセット
される。#3o5において前記フラグLCFLGが0な
らば充分コントラストがあったとして#306へ移行し
、焦点検出不能フラグAFNGをOにクリアする。続い
て#307において再び補助光モードフラグAUXMO
Dの状態を検知し、補助光を使用した(AUXMOD=
1)ならば#308にて「補正演算」サブルーチンへ移
行する。
In #305, the state of the low contrast flag LCFLG is detected. The flag LCFLG is a flag set in the defocus detection subroutine rPREDJ,
It is set to 1 when the contrast of the image signal is lower than a predetermined value. If the flag LCFLG is 0 in #3o5, it is assumed that there is sufficient contrast, and the process moves to #306, where the focus detection failure flag AFNG is cleared to O. Next, in #307, the auxiliary light mode flag AUXMO is set again.
The state of D was detected and the auxiliary light was used (AUXMOD=
1), the process moves to the "correction calculation" subroutine in #308.

#3o9において、検出ないし検出液補正したデフォー
カス量DEFの絶対値と所定の定数JFFLDを比較す
る。定数JFFLDは合焦とみなし得るデフォーカス量
の上限を表すいわゆる合焦幅である。#309において
デフォーカス量の絶対値が定数JFFLD以下ならば#
310へ移行して合焦フラグJPとレンズ駆動禁止フラ
グLMVDIを共に1にセットし、一方デフォーカス量
の絶対値が定数JFFLDより大きければ#311へ移
行して前記フラグJF、LMVDIを共にOにクリアし
、#314で「焦点検出」サブルーチンをリターンする
。合焦状態の場合には#310から#312へ移行して
補助光モードフラグALJXMODの状態検知を行う。
In #3o9, the absolute value of the detected or detected liquid corrected defocus amount DEF is compared with a predetermined constant JFFLD. The constant JFFLD is a so-called focusing width that represents the upper limit of the amount of defocus that can be considered to be in focus. If the absolute value of the defocus amount is less than or equal to the constant JFFLD in #309, #
The process moves to #310 and both the focus flag JP and the lens drive prohibition flag LMVDI are set to 1. On the other hand, if the absolute value of the defocus amount is larger than the constant JFFLD, the process moves to #311 and both the flags JF and LMVDI are set to O. Clear, and return to the "focus detection" subroutine in #314. If it is in focus, the process moves from #310 to #312 and the state of the auxiliary light mode flag ALJXMOD is detected.

該フラグAUXMODがOすなわち補助光モードでなけ
れば#314で「焦点検出」サブルーチンをリターンす
る。
If the flag AUXMOD is O, that is, it is not the auxiliary light mode, the "focus detection" subroutine is returned at #314.

該フラグAUXMODが1すなわち補助光モードならば
#313へ移行して、補助光合焦フラグAUXJFを1
にセットしてサブルーチンをリターンする。
If the flag AUXMOD is 1, that is, the auxiliary light mode, the process moves to #313 and the auxiliary light focus flag AUXJF is set to 1.
Set to , and return from the subroutine.

#305において低コントラストフラグLCFLGが1
であると検知されたならば、#315へ移行して、補助
光モードフラグAUXMODの状態を検知する。該フラ
グAUXMODが1すなわち補助光モードならば#31
9へ移行し、合焦検出は不能であるとして合焦フラグJ
Pを0にクリアし、焦点検出不能フラグAFNGを1に
セットし、レンズ駆動禁止フラグLMVDIを1にセッ
トした後、#320で「焦点検出」サブルーチンをリタ
ーンする。又#315で前記フラグAUXMODが0す
なわち補助光モードでないならば、#316へ移行し、
該フラグAUXMODを1にセットして補助光モードに
し、#317へ移行する。#317では「補助演算」用
のフラグPLCFLGを1にセットする。これは補助光
未使用状態での被写体像のコントラスト情報が低コント
ラストであったことを表す。そして#318で「焦点検
出」サブルーチンをリターンする。
Low contrast flag LCFLG is 1 in #305
If it is detected that this is the case, the process moves to #315 and the state of the auxiliary light mode flag AUXMOD is detected. If the flag AUXMOD is 1, that is, the auxiliary light mode, #31
9, and the focus flag J is determined to be impossible.
After clearing P to 0, setting the focus detection impossible flag AFNG to 1, and setting the lens drive inhibition flag LMVDI to 1, the "focus detection" subroutine is returned in #320. Also, if the flag AUXMOD is 0 in #315, that is, it is not the auxiliary light mode, the process moves to #316,
The flag AUXMOD is set to 1 to enter the auxiliary light mode, and the process moves to #317. In #317, the flag PLCFLG for "auxiliary calculation" is set to 1. This indicates that the contrast information of the subject image was low in contrast when the auxiliary light was not used. Then, in #318, the "focus detection" subroutine is returned.

第6図に「レンズ駆動」サブルーチンのフローチャート
を示す。
FIG. 6 shows a flowchart of the "lens drive" subroutine.

このサブルーチンがコールされると、#302において
レンズFLNSと通信して2つのデータrsJ 、rP
THJを入力する。rSJは撮影レンズ固有の「デフォ
ーカス量」対「焦点調節レンズの繰り出し量」の係数で
ある。rPTHJは焦点調節レンズの移動に連動したエ
ンコーダ1パルス当りの焦点調節レンズの繰り出し量で
ある。
When this subroutine is called, in #302 it communicates with the lens FLNS and sends two data rsJ, rP.
Enter THJ. rSJ is a coefficient of "defocus amount" specific to the photographing lens versus "extension amount of the focusing lens". rPTHJ is the amount of movement of the focusing lens per one pulse of the encoder, which is linked to the movement of the focusing lens.

従って、現在のデフォーカス量DEF、データS、PT
Hにより焦点調節レンズの繰り出し量をエンコーダEN
Cのパルス数に換算した量、いわゆるレンズ駆動量FP
は次式で与えられる。
Therefore, the current defocus amount DEF, data S, PT
The amount of extension of the focusing lens is determined by encoder EN using H.
The amount converted into the number of pulses of C, the so-called lens drive amount FP
is given by the following equation.

FP=DEF −S/PTH・・・・・・・・・・・・
(1)#403は前記(1)式をそのまま実行する。
FP=DEF-S/PTH・・・・・・・・・・・・
(1) #403 executes the above equation (1) as is.

#4o4では#403で求めたレンズ駆動量FPをレン
ズFLNS側に送出して、焦点調節レンズの駆動を命令
し、次の#405で「レンズ駆動」サブルーチンをリタ
ーンする。
In #4o4, the lens drive amount FP obtained in #403 is sent to the lens FLNS side to command the focusing lens to be driven, and in the next step #405, the "lens drive" subroutine is returned.

第7図に「補正演算」サブルーチンを示す。FIG. 7 shows the "correction calculation" subroutine.

このサブルーチンがコールされると、#5o2にて蓄積
時間及び像信号のピーク値を基にした補正演算を実行す
る。これは、補助光未使用状態、及び補助光使用状態で
の蓄積時間(T1゜T2)、像信号ピーク値(P!、P
2 )を用いるもので、例えば下記のような演算を行う
。尚Aは外光での補正値、Bは補助光での補正値である
When this subroutine is called, a correction calculation based on the accumulation time and the peak value of the image signal is executed in #5o2. This is the accumulation time (T1°T2), image signal peak value (P!, P
2), and performs the following calculations, for example. Note that A is a correction value for external light, and B is a correction value for auxiliary light.

補正量Xは蓄積時間、像信号ピーク値を用いて補正値A
、Bの隔りを内分して得られている。
The correction amount X is the correction value A using the accumulation time and the image signal peak value.
, B is obtained by internally dividing the distance between them.

#5o3では「補正演算」用のフラグPLCFLGの状
態を検知している。これは補助光未使用状態でのコント
ラストが低コントラストであったか否かの判断基準とな
る。すなわち第3図rAF制御」サブルーチン内におい
て、#110で低輝度フラグLLFLGが1であったた
めに補助光使用に至ったか、低輝度ではないが「焦点検
出」サブルーチン内の#305において被写体像の低コ
ントラストフラグLCFLGが1であったために補助光
使用に至ったものなのかを表す。この#503において
前記フラグPLCFLGがOならば、被写体像が低輝度
であったために低コントラスト判定が行われずに補助光
使用に至ったものと判断でき、補助光未使用状態でのコ
ントラスト情報がないものとして#506へ移行する。
At #5o3, the state of the "correction calculation" flag PLCFLG is detected. This serves as a criterion for determining whether or not the contrast is low when the auxiliary light is not used. In other words, in the ``rAF control'' subroutine in Figure 3, the low brightness flag LLFLG was 1 in #110, leading to the use of the auxiliary light, or the brightness was not low, but in #305 in the ``focus detection'' subroutine, the subject image was low. Indicates whether the contrast flag LCFLG was 1 and the auxiliary light was used. If the flag PLCFLG is O in this #503, it can be determined that the fill light was used without performing a low contrast determination because the subject image was low brightness, and there is no contrast information when the fill light is not used. As such, the process moves to #506.

一方前記フラグPLCFLGが1であるならば、被写体
像が低輝度ではなかったが低コントラストであったため
に補助光使用に至ったとして、「焦点検出」サブルーチ
ン内の#304で格納された補助光未使用状態でのコン
トラスト情報を用いての補正演算を行う#504へ移行
する。
On the other hand, if the flag PLCFLG is 1, the auxiliary light stored in #304 in the "focus detection" subroutine is assumed to have been used because the object image was not low brightness but had low contrast. The process moves to #504 where a correction calculation is performed using the contrast information in the usage state.

#504は補助光未使用状態及び補助光使用状態でのコ
ントラスト値(C1,C2)を用いるもので、例えば下
記のような演算を行う。
#504 uses the contrast values (C1, C2) in the auxiliary light unused state and the auxiliary light used state, and performs the following calculation, for example.

ここで、A、Bは前記式(2)での値と同じである。補
正ff1YもXと同様にコントラスト値を用いてA、B
補正値の隔りを内分して得られている。
Here, A and B are the same values as in equation (2) above. Correction ff1Y also uses the contrast value in the same way as X.
It is obtained by internally dividing the difference between correction values.

#505では総合補正を行う。これは上述した様なX、
Yという補正値についてまとめの演算を行うものである
。例えば以下のような演算を行う。
In #505, comprehensive correction is performed. This is X as mentioned above,
A summary calculation is performed on the correction value Y. For example, the following calculations are performed.

これは#502及び504で得られた補正値の平均値を
取っている。この2を最終的な補正値として採用する。
This is the average value of the correction values obtained in #502 and #504. This value 2 is adopted as the final correction value.

尚#503において「補正演算」用ノフラグPLCFL
Gが0の場合、#5o2で演算した補正値が最終的な補
正値となる。
In addition, in #503, the flag PLCFL for "correction calculation"
If G is 0, the correction value calculated in #5o2 becomes the final correction value.

このようにして補正値を演算して#506で「補正演算
」サブルーチンをリターンする。
The correction value is calculated in this way, and the "correction calculation" subroutine is returned at #506.

上記実施例において、「補正演算」サブルーチン内で「
補正演算」用のフラグPLCFLGがOの場合、全くコ
ントラスト情報を用いていない。
In the above embodiment, in the "correction calculation" subroutine, "
When the flag PLCFLG for "correction calculation" is O, no contrast information is used.

しかしこの場合でも補助光使用時のコントラスト情報は
得られるわけで、このコントラスト値と補助光パターン
自体のコントラスト値(一定値;Co)を用いて、コン
トラスト情報による補正演算を行うことも可能となる。
However, even in this case, contrast information can be obtained when using the fill light, and it is also possible to perform correction calculations based on the contrast information using this contrast value and the contrast value (constant value; Co) of the fill light pattern itself. .

このフローチャートを第8図に示しており、補正式は例
えばのようになる。
This flowchart is shown in FIG. 8, and the correction formula is as follows, for example.

一方、赤外フィルムを使用した場合、補正は行わず、単
に補助光使用した補正値のみを使用することも有効であ
る。
On the other hand, when an infrared film is used, it is also effective to simply use the correction value using the auxiliary light without performing any correction.

本実施例によれば、−膜外光と異なる補助光を使用した
場合のピント補正において、補助光専用の受光部を新た
に設けることなく、−膜外光用と同一の受光部から得ら
れる情報のみで、補助光使用時の補正が可能となる。よ
って、高コスト化を排除でき、且つ補助光使用時には補
助光の補正値のみで焦点情報を算出するものに比べて、
補助光と共に入射する外光の条件も考慮して補正量を求
め焦点情報を算出しているので、より適正な焦点情報算
出が可能となる。
According to this embodiment, - in the case of using an auxiliary light different from the extra-membrane light, focus correction can be obtained from the same light-receiving part as for the extra-membrane light without the need to provide a new light-receiving part exclusively for the auxiliary light. Corrections can be made when using auxiliary light using only the information. Therefore, it is possible to eliminate high costs, and when using an auxiliary light, the focus information is calculated only from the correction value of the auxiliary light.
Since the correction amount is calculated and the focus information is calculated by taking into account the conditions of the external light incident along with the auxiliary light, more appropriate focus information calculation is possible.

(発明と実施例の対応) 本実施例において、第7図或は第8図の動作を実行する
部分が本発明の補正値算出手段に相当する。
(Correspondence between Invention and Embodiment) In this embodiment, the portion that executes the operation shown in FIG. 7 or 8 corresponds to the correction value calculation means of the present invention.

(発明の効果) 以上説明したように、本発明によれば、補助光使用時に
は、該補助光使用時の光電変換手段よりの情報と外光の
みによる光電変換手段よりの情報とに基づいて補正値を
算出し、該補正値を演算手段に出力して焦点状態検出演
算に供させる補正値算出手段を設け、以て、外光による
焦点状態検出時と補助光使用による焦点状態検出時に共
通に光電変換手段を使用し、且つ補助光使用時には、該
補助光使用時にも混在する外光条件を考慮して、焦点状
態検出演算に供させる補正値を算出するようにしたから
、高コスト化を排除しつつ、補助光下における焦点検出
精度を向上させることが可能となる。
(Effects of the Invention) As explained above, according to the present invention, when the auxiliary light is used, correction is made based on the information from the photoelectric conversion means when the auxiliary light is used and the information from the photoelectric conversion means using only external light. A correction value calculation means is provided which calculates the correction value and outputs the correction value to the calculation means for use in focus state detection calculation. A photoelectric conversion means is used, and when the auxiliary light is used, the correction value used in the focus state detection calculation is calculated by taking into account the external light conditions that are mixed even when the auxiliary light is used, which reduces the cost. It becomes possible to improve the focus detection accuracy under the auxiliary light while eliminating the auxiliary light.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明の一実施例を示すブロック図、第2図乃
至第7図はそのフローチャート、第8図は本発明の他の
実施例の主要部分の動作を示すフローチャートである。 PRS・・・・・・マイクロコンピュータ、SNS・・
・・・・ラインセンサ装置、SDR・・・・・・駆動回
路、AUT・・・・・・補助光投光ユニット、LCM・
・・・・・レンズ通信バッファ回路、FLNS・・・・
・・レンズ。 特許出願人  キャノン株式会社
FIG. 1 is a block diagram showing one embodiment of the present invention, FIGS. 2 to 7 are flowcharts thereof, and FIG. 8 is a flowchart showing the operation of the main part of another embodiment of the present invention. PRS...Microcomputer, SNS...
...Line sensor device, SDR...Drive circuit, AUT...Auxiliary light projection unit, LCM...
...Lens communication buffer circuit, FLNS...
··lens. Patent applicant Canon Co., Ltd.

Claims (1)

【特許請求の範囲】[Claims] (1)焦点検出されるべき結像光学系を通過する光束を
受光する光電変換手段と、該光電変換手段よりの情報に
基づいて、前記結像光学系の焦点状態を検出する演算手
段とを備えた焦点検出装置において、補助光使用時には
、該補助光使用時の前記光電変換手段よりの情報と外光
のみによる前記光電変換手段よりの情報とに基づいて補
正値を算出し、該補正値を前記演算手段に出力して焦点
状態検出演算に供させる補正値算出手段を設けたことを
特徴とする焦点検出装置。
(1) A photoelectric conversion means that receives a light beam passing through an imaging optical system whose focus is to be detected, and an arithmetic means that detects the focal state of the imaging optical system based on information from the photoelectric conversion means. In the focus detection device equipped with the above, when the auxiliary light is used, a correction value is calculated based on the information from the photoelectric conversion means when the auxiliary light is used and the information from the photoelectric conversion means using only external light, and the correction value is calculated based on the information from the photoelectric conversion means when the auxiliary light is used. A focus detection device comprising: a correction value calculation means for outputting the correction value to the calculation means for use in a focus state detection calculation.
JP15375788A 1988-06-22 1988-06-22 focus detection device Pending JPH024207A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP15375788A JPH024207A (en) 1988-06-22 1988-06-22 focus detection device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP15375788A JPH024207A (en) 1988-06-22 1988-06-22 focus detection device

Publications (1)

Publication Number Publication Date
JPH024207A true JPH024207A (en) 1990-01-09

Family

ID=15569462

Family Applications (1)

Application Number Title Priority Date Filing Date
JP15375788A Pending JPH024207A (en) 1988-06-22 1988-06-22 focus detection device

Country Status (1)

Country Link
JP (1) JPH024207A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003032045A1 (en) 2001-10-03 2003-04-17 Sony Corporation Image pickup device
JP2016142992A (en) * 2015-02-04 2016-08-08 株式会社ニコン Camera body and imaging device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003032045A1 (en) 2001-10-03 2003-04-17 Sony Corporation Image pickup device
EP1434075A4 (en) * 2001-10-03 2007-05-30 Sony Corp IMAGE ACQUISITION DEVICE
US7250974B2 (en) 2001-10-03 2007-07-31 Sony Corporation Image pickup apparatus with improved auto focusing and method of autofocusing
JP2016142992A (en) * 2015-02-04 2016-08-08 株式会社ニコン Camera body and imaging device

Similar Documents

Publication Publication Date Title
JP2597961B2 (en) Automatic focusing device
JPH02254432A (en) Automatic focusing camera
US4952963A (en) Focus detection apparatus for camera
US4801962A (en) Camera incorporating automatic focusing apparatus
JPH0617935B2 (en) Automatic focus adjustment device
US4845521A (en) Camera with automatic focusing apparatus
JP2000111791A (en) Auxiliary light control device for autofocus and autofocus camera
JPH024207A (en) focus detection device
US5382996A (en) Auto-focus apparatus having different levels for emitting focusing light and for inhibiting a focus operation
US4825238A (en) Focus detecting device
JPS63172207A (en) focus detection device
JPH03225332A (en) Camera provided with autofocusing device
JPH05346536A (en) Focal point detecting device
US5053799A (en) Camera having auto-focusing device
JPS63172231A (en) automatic focus adjustment device
JP4262034B2 (en) Optical device and camera
JP3544052B2 (en) Optical device and camera
JPH01288816A (en) automatic focus adjustment device
EP0653655A2 (en) Focus detection apparatus
JPH085905A (en) Camera with focus detection device
JP2771004B2 (en) Camera with automatic focus detection device
JPH0760208B2 (en) camera
JPS63172227A (en) automatic focus adjustment device
JPS63172206A (en) focus detection device
JP2832054B2 (en) Focus detection device