JP3213995B2 - Focus adjustment device - Google Patents

Focus adjustment device

Info

Publication number
JP3213995B2
JP3213995B2 JP29636391A JP29636391A JP3213995B2 JP 3213995 B2 JP3213995 B2 JP 3213995B2 JP 29636391 A JP29636391 A JP 29636391A JP 29636391 A JP29636391 A JP 29636391A JP 3213995 B2 JP3213995 B2 JP 3213995B2
Authority
JP
Japan
Prior art keywords
lens
focus detection
amount
defocus
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.)
Expired - Lifetime
Application number
JP29636391A
Other languages
Japanese (ja)
Other versions
JPH05107455A (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.)
Nikon Corp
Original Assignee
Nikon Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nikon Corp filed Critical Nikon Corp
Priority to JP29636391A priority Critical patent/JP3213995B2/en
Publication of JPH05107455A publication Critical patent/JPH05107455A/en
Application granted granted Critical
Publication of JP3213995B2 publication Critical patent/JP3213995B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は、移動被写体に撮影レン
ズを追尾駆動する焦点調節装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a focus adjusting device for driving a photographing lens on a moving subject.

【0002】[0002]

【従来の技術】撮影画面内に設定された複数の焦点検出
領域の中から、現在の撮影レンズの合焦点に最も近い焦
点検出領域、すなわちデフォーカス量が最小の焦点検出
領域を選択し、その検出領域で検出されるデフォーカス
量に基づいて移動被写体に対して撮影レンズを遅れなく
追尾させるための追尾駆動量を演算し、撮影レンズを駆
動するとともに、シャッターがレリーズされると、露光
時に撮影レンズが移動被写体に合焦するように、追尾駆
動量を補正して撮影レンズを駆動する焦点調節装置が知
られている。
2. Description of the Related Art From among a plurality of focus detection areas set in a photographing screen, a focus detection area closest to the current focal point of a photographing lens, that is, a focus detection area having a minimum defocus amount is selected. Based on the defocus amount detected in the detection area, a tracking drive amount for tracking the shooting lens with no delay with respect to the moving subject is calculated, the shooting lens is driven, and when the shutter is released, shooting is performed at the time of exposure. 2. Description of the Related Art There is known a focus adjustment device that corrects a tracking drive amount and drives a photographing lens so that a lens is focused on a moving subject.

【0003】図3は、移動する主要被写体と背景被写体
との像面位置の軌跡と、撮影レンズの位置の軌跡とを示
す図である。追尾駆動中は、CCDなどの光電変換素子
の電荷蓄積(I),光電変換素子の出力データに基づく
焦点検出演算(C)および焦点検出結果に基づくレンズ
駆動(D)の3つの基本動作が繰り返され、移動被写体
に追尾して撮影レンズが駆動される。シャッターがレリ
ーズされると、時刻t1における露光時に撮影レンズが
移動被写体に合焦するように駆動され、露光が終了する
とふたたび上記基本動作が再開される。
FIG. 3 is a diagram showing a locus of an image plane position of a moving main subject and a background subject, and a locus of a position of a photographing lens. During the tracking drive, three basic operations of charge accumulation (I) of a photoelectric conversion element such as a CCD, focus detection calculation (C) based on output data of the photoelectric conversion element, and lens driving (D) based on a focus detection result are repeated. Then, the photographing lens is driven to track the moving subject. When the shutter is released, the photographing lens is driven to focus on the moving subject at the time of exposure at time t1, and the basic operation is resumed when the exposure is completed.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、従来の
焦点調節装置では、例えば図3に示すように、主要被写
体とほぼ同じような速度で移動する背景被写体があった
場合、露光後の焦点検出(I)時にも、撮影レンズの現
在の合焦点に最も近い焦点検出領域、すなわちデフォー
カス量が最小の焦点検出領域が選択され、その検出領域
のデフォーカス量に基づいて追尾駆動が行なわれるの
で、露光後の初回の焦点検出時に、主要被写体よりも小
さいデフォーカス量を示す背景被写体に対して撮影レン
ズの焦点調節が行なわれ、以後その背景被写体を追尾す
るという問題がある。
However, in the conventional focus adjusting device, as shown in FIG. 3, for example, when there is a background subject moving at substantially the same speed as the main subject, focus detection after exposure ( At the time of I), the focus detection area closest to the current focal point of the photographing lens, that is, the focus detection area with the smallest defocus amount is selected, and the tracking drive is performed based on the defocus amount of the detection area. At the time of the first focus detection after the exposure, the focus adjustment of the photographing lens is performed on the background subject having a smaller defocus amount than the main subject, and there is a problem that the background subject is tracked thereafter.

【0005】本発明の目的は、露光以前に追尾していた
移動被写体を露光後も正確に補捉し、撮影レンズを追尾
駆動する焦点調節装置を提供することにある。
SUMMARY OF THE INVENTION It is an object of the present invention to provide a focus adjusting device that accurately captures a moving subject that has been tracked before exposure even after exposure, and drives the shooting lens to track.

【0006】[0006]

【課題を解決するための手段】クレーム対応図である図
1に対応づけて本発明を説明すると、本発明は、撮影画
面内に複数の焦点検出領域を有し、各焦点検出領域ごと
に撮影レンズの焦点調節状態を示すデフォーカス量を繰
り返し検出する焦点検出手段100と、焦点検出手段1
00により焦点検出が行われるたびに、複数の焦点検出
領域の複数のデフォーカス量の中から選択された今回お
よび過去のデフォーカス量に基づいて、撮影レンズによ
って結像される被写体像面の移動速度(像面移動速度)
を算出する像面移動速度算出手段101と、像面移動速
度算出手段101で算出された前回の焦点検出時の像面
移動速度に基づいて、移動被写体に対する今回の焦点検
出時のデフォーカス量を推定するデフォーカス量推定手
段102と、今回の焦点検出時に複数の焦点検出領域で
検出された複数のデフォーカス量の中から、デフォーカ
ス量推定手段102で推定されたデフォーカス量に最も
近いデフォーカス量を選択するデフォーカス量選択手段
103と、デフォーカス量選択手段103で選択された
デフォーカス量と、像面移動速度算出手段101で算出
された今回の焦点検出時の像面移動速度とに基づいて、
移動被写体に対して撮影レンズを遅れなく追尾させるた
めの追尾駆動量を演算する追尾駆動量演算手段104
と、追尾駆動量演算手段104で演算された追尾駆動量
にしたがって撮影レンズを駆動制御するレンズ駆動制御
手段105とを備える。
Means for Solving the Problems The present invention will be described with reference to FIG. 1 which is a claim correspondence diagram. The present invention has a plurality of focus detection areas in a shooting screen, and captures images for each focus detection area. Focus detecting means 100 for repeatedly detecting a defocus amount indicating a focus adjustment state of a lens; and focus detecting means 1
00, every time focus detection is performed, movement of the subject image plane formed by the photographing lens based on the current and past defocus amounts selected from the plurality of defocus amounts in the plurality of focus detection areas. Speed (image plane moving speed)
Is calculated based on the image plane moving speed at the time of the previous focus detection calculated by the image plane moving speed calculating means 101. The defocus amount estimating means 102 for estimating and the defocus amount closest to the defocus amount estimated by the defocus amount estimating means 102 from the plurality of defocus amounts detected in the plurality of focus detection areas during the current focus detection. A defocus amount selecting unit 103 for selecting a focus amount; a defocus amount selected by the defocus amount selecting unit 103; and an image plane moving speed at the time of the current focus detection calculated by the image plane moving speed calculating unit 101. On the basis of the,
Tracking drive amount calculating means 104 for calculating a tracking drive amount for causing the photographing lens to track the moving subject without delay
And a lens drive control unit 105 that drives and controls the photographing lens according to the tracking drive amount calculated by the tracking drive amount calculation unit 104.

【0007】[0007]

【作用】前回の焦点検出時に算出した移動被写体の像面
移動速度に基づいて、その移動被写体に対する今回の焦
点検出時のデフォーカス量を推定し、今回の焦点検出時
に複数の焦点検出領域で検出された複数のデフォーカス
量の中からデフォーカス量推定値に最も近いデフォーカ
ス量を選択する。そして、選択したデフォーカス量と今
回の焦点検出時に算出した像面移動速度とに基づいて移
動被写体を追尾するための追尾駆動量を演算し、追尾駆
動量にしたがって撮影レンズを駆動制御する。これによ
って、露光前に追尾していた移動被写体を露光後も正確
に捕捉できる。
Based on the image plane moving speed of the moving subject calculated at the time of the previous focus detection, the defocus amount of the moving subject at the time of the current focus detection is estimated, and detected at a plurality of focus detection areas at the time of the current focus detection. The defocus amount closest to the defocus amount estimated value is selected from the plurality of defocus amounts thus obtained. Then, a tracking drive amount for tracking the moving subject is calculated based on the selected defocus amount and the image plane moving speed calculated at the time of the current focus detection, and the photographing lens is driven and controlled according to the tracking drive amount. As a result, a moving subject tracked before the exposure can be accurately captured even after the exposure.

【0008】[0008]

【実施例】図2は、一実施例のカメラの構成を示す。撮
影レンズ1を通過した被写体2からの光束の一部は、メ
インミラー3により反射されペンタプリズム4および接
眼レンズ5を経て撮影者に観測される。一方、他の一部
は、メインミラー3を透過してサブミラー6で反射さ
れ、AFモジュール7へ導かれる。AFモジュール7
は、公知の焦点検出光学系からなり、CPU8からの信
号によって光電変換を行い、さらに光電変換出力をCP
U8へ転送する。CPU8は、後述する制御プログラム
を実行して焦点調節制御を行なう。レンズ情報メモリ9
は、CPU8からの信号により撮影レンズ1の焦点距
離,デフォーカス量とレンズ駆動量との変換係数などの
レンズ情報をCPU8へ転送する。
FIG. 2 shows the structure of a camera according to one embodiment. A part of the light beam from the subject 2 that has passed through the photographing lens 1 is reflected by the main mirror 3 and is observed by the photographer via the pentaprism 4 and the eyepiece 5. On the other hand, the other part is transmitted through the main mirror 3, reflected by the sub mirror 6, and guided to the AF module 7. AF module 7
Comprises a well-known focus detection optical system, performs photoelectric conversion by a signal from the CPU 8, and further outputs the photoelectric conversion output to a CP.
Transfer to U8. The CPU 8 performs a focus adjustment control by executing a control program described later. Lens information memory 9
Transfers lens information such as the focal length of the photographing lens 1 and a conversion coefficient between the defocus amount and the lens drive amount to the CPU 8 according to a signal from the CPU 8.

【0009】AFモーター10は、CPU8からの信号
で起動し、撮影レンズ1の駆動機構11をカップリング
12を介して駆動する。さらにエンコーダ13は、AF
モーター10の回転位置に対応するエンコーダパルスを
CPU8へ送る。表示器14は、撮影レンズ1の整合状
態を表示する。ミラー制御回路15は、レリーズスイッ
チSW2がオンするとCPU8からの信号でメインミラ
ー3のアップ,ダウンを制御し、ミラーアップが完了す
るとシャッター制御回路16でシャッターの走行を行い
露光を完了する。露光完了後は、ミラー制御回路15に
よりミラーダウンを行う。レリーズスイッチSW1は、
シャッターレリーズボタンの半押し時にオンするスイッ
チであり、レリーズスイッチSW2は、シャッターレリ
ーズボタンの全押し時にオンするスイッチである。
The AF motor 10 is activated by a signal from the CPU 8 and drives the driving mechanism 11 of the photographing lens 1 via the coupling 12. Further, the encoder 13
An encoder pulse corresponding to the rotation position of the motor 10 is sent to the CPU 8. The display 14 displays the alignment state of the taking lens 1. When the release switch SW2 is turned on, the mirror control circuit 15 controls the up / down of the main mirror 3 by a signal from the CPU 8, and when the mirror up is completed, the shutter control circuit 16 runs the shutter to complete the exposure. After the exposure is completed, the mirror is lowered by the mirror control circuit 15. The release switch SW1 is
The switch is turned on when the shutter release button is half-pressed, and the release switch SW2 is turned on when the shutter release button is fully pressed.

【0010】図4は、メインプログラムを示すフローチ
ャートである。このフローチャートにより、動作を説明
する。CPU8は、不図示のメインSW(電源)が投入
されるとこのメインプログラムの実行を開始する。実行
開始後のステップS401において、プログラムに必要
な各種フラグ,変数などを初期化する。例えば、焦点調
節モードをワンショットモード(以下では、Sモードと
呼ぶこともある)にする。なおこのワンショットモード
は、シャッターレリーズボタンを半押しにすると撮影レ
ンズ1が駆動され、いったん被写体にピントが合うとレ
ンズ駆動が停止される焦点調節モードである。次にステ
ップS402で、レリーズスイッチSW1によりシャッ
ターレリーズボタンが半押しされているか否かを判別
し、半押しされていればステップS403へ進み、そう
でなければステップS401へ戻る。ステップS403
では、図5に示すCCDの蓄積制御のサブルーチンを実
行する。
FIG. 4 is a flowchart showing the main program. The operation will be described with reference to this flowchart. When a main switch (not shown) is turned on, the CPU 8 starts executing the main program. In step S401 after the start of execution, various flags and variables necessary for the program are initialized. For example, the focus adjustment mode is set to a one-shot mode (hereinafter, also referred to as an S mode). The one-shot mode is a focus adjustment mode in which the photographing lens 1 is driven when the shutter release button is half-pressed, and the lens driving is stopped once the subject is focused. Next, in step S402, it is determined whether or not the shutter release button is half-pressed by the release switch SW1. If the shutter release button is half-pressed, the process proceeds to step S403; otherwise, the process returns to step S401. Step S403
Then, the subroutine of the CCD accumulation control shown in FIG. 5 is executed.

【0011】図5のフローチャートにより、CCD蓄積
制御を説明する。ステップS501で、現在撮影レンズ
1が駆動中であるか否かを判別し、駆動中であればステ
ップS502へ進み、駆動中でなければステップS50
3へ進む。ステップS502では、スキャン中であるか
否かを判別し、スキャン中であればステップS503へ
進み、そうでなければステップS501へ戻ってレンズ
駆動が終了するまで待ち、レンズ駆動終了後にステップ
S503へ進む。ステップS503において、前回の蓄
積の時刻ITnをITn-1へ格納し、現在のフリーランニ
ングタイマーAFT1の値を変数ITnに代入する。さ
らに、焦点検出の時間間隔を表す変数TEn,TEn-1を
計算し格納する。ステップS504では、レリーズ後1
回目の焦点検出であるか否かを判別し、1回目の焦点検
出であればステップS506へ進み、そうでなければス
テップS505へ進む。ステップS505で、予測駆動
を行うための標準時間を表す変数TENに前回の焦点検
出間隔TEnを格納する。この変数TENは、レリーズ
がなされなかったときに予測駆動するための時間のパラ
メータとして使用される。
The CCD accumulation control will be described with reference to the flowchart of FIG. In step S501, it is determined whether or not the photographing lens 1 is currently being driven. If the lens is being driven, the process proceeds to step S502; if not, step S50 is performed.
Proceed to 3. In step S502, it is determined whether or not the scanning is being performed. If the scanning is being performed, the process proceeds to step S503. If not, the process returns to step S501 and waits until the lens driving is completed. After the lens driving is completed, the process proceeds to step S503. . In step S503, the previous accumulation time ITn is stored in ITn-1, and the current value of the free running timer AFT1 is substituted for the variable ITn. Further, variables TEn and TEn-1 representing time intervals of focus detection are calculated and stored. In step S504, after the release
It is determined whether or not it is the first focus detection, and if it is the first focus detection, the process proceeds to step S506; otherwise, the process proceeds to step S505. In step S505, the previous focus detection interval TEn is stored in a variable TEN representing a standard time for performing the predictive driving. This variable TEN is used as a time parameter for predictive driving when a release is not performed.

【0012】ステップS506で、蓄積開始時のレンズ
位置ECNTを変数PLC1へ代入する。続くステップ
S507で、AFモジュール7のCCDへ電荷蓄積の開
始信号を送る。ステップS508では、蓄積が終了した
か否かを判別し、終了したらステップS509へ進み、
現在スキャン中であるか否かを判別する。スキャン中で
あればステップS510へ進み、そうでなければ図4の
メインプログラムへリターンする。ステップS510で
は、蓄積終了時のレンズ位置ECNTを変数PLC2へ
代入し、続くステップS511で、変数PLC1,PL
C2により蓄積中心のレンズ位置PLCを算出した後、
CCDの蓄積制御を終了して図4のメインプログラムへ
リターンする。
In step S506, the lens position ECNT at the start of accumulation is substituted for a variable PLC1. In the following step S507, a charge accumulation start signal is sent to the CCD of the AF module 7. In step S508, it is determined whether or not the accumulation is completed, and when the accumulation is completed, the process proceeds to step S509,
It is determined whether or not scanning is currently being performed. If a scan is being performed, the process proceeds to step S510; otherwise, the process returns to the main program in FIG. In step S510, the lens position ECNT at the end of the accumulation is substituted for the variable PLC2, and in the following step S511, the variables PLC1, PL
After calculating the lens position PLC of the accumulation center by C2,
The accumulation control of the CCD is terminated, and the process returns to the main program of FIG.

【0013】図4のメインプログラムへ戻り、ステップ
S404で、CCDからの出力をA/D変換し、メモリ
へ格納する。次にステップS405で、レンズ情報メモ
リ9からレンズに関する情報を取得する。そしてステッ
プS406で、図6に示すデフォーカス演算サブルーチ
ンを実行する。
Returning to the main program of FIG. 4, in step S404, the output from the CCD is A / D converted and stored in the memory. Next, in step S405, information about the lens is obtained from the lens information memory 9. Then, in step S406, a defocus calculation subroutine shown in FIG. 6 is executed.

【0014】図6のフローチャートにより、デフォーカ
ス量の演算処理を説明する。ステップS601で、メモ
リに格納されているCCDの出力データに基づいて、公
知の相関演算により各エリアのデフォーカス量DFa,
DFb,DFcを算出する。ステップS602で、全て
のエリアで焦点検出不能であるか否かを判別し、全て検
出不能であればステップS619へ進み、少なくとも1
つのエリアで焦点検出可能であればステップS603へ
進む。ステップS603では、シャッターレリーズボタ
ンの半押し後1回目か否かを判別し、1回目であればス
テップS618へ進み、そうでなければステップS60
4へ進む。ステップS604で、前回動体であったか否
かを判別し、動体であればステップS605へ進み、そ
うでなければステップS615へ進む。ステップS60
5で、シャッターレリーズ後1回目の焦点検出か否かを
判別し、1回目であれば測距時予測デフォーカス量を算
出するためにステップS606へ進み、そうでなければ
ステップS617へ進む。
The operation of calculating the defocus amount will be described with reference to the flowchart of FIG. In step S601, based on the CCD output data stored in the memory, the defocus amounts DFa, DFa,
DFb and DFc are calculated. In step S602, it is determined whether or not focus detection is impossible in all areas.
If the focus can be detected in one area, the process proceeds to step S603. In step S603, it is determined whether it is the first time after the shutter release button is half-pressed, and if it is the first time, the process proceeds to step S618; otherwise, the process proceeds to step S60.
Proceed to 4. In step S604, it is determined whether or not the object is a front rotating body. If the object is a moving object, the process proceeds to step S605; otherwise, the process proceeds to step S615. Step S60
In step 5, it is determined whether or not the first focus detection after the shutter release is performed. If the focus detection is the first time, the process proceeds to step S606 to calculate a predicted defocus amount at the time of distance measurement, and otherwise proceeds to step S617.

【0015】ステップS606において、測距時予測デ
フォーカス量DFesを次式で算出する。 DFes=Sn×TS ・・・(1) ここで、Snは像面移動速度、TSは露光から今回の焦
点検出までの時間間隔である。TSは、露光時間が短け
ればほぼ一定の時間で大体100〜150msec位で
ある。従って、TSは、タイマーで時間間隔を測定せず
に一定値を用いてDFesを計算してもよい。しかし、
露光時間が長い場合はタイマーで計測しなければならな
い。ステップS607で、各エリアの測距時予測デフォ
ーカス量DFesからの差の絶対値を計算し、ΔDF
a,ΔDFb,ΔDFcへ格納する。ステップS608
では、ΔDFa,ΔDFb,ΔDFcの内の最小となる
エリアのデフォーカス量をDFnに格納する。
In step S606, a predicted defocus amount DFes during distance measurement is calculated by the following equation. DFes = Sn × TS (1) where Sn is the image plane moving speed, and TS is the time interval from the exposure to the current focus detection. TS is about 100 to 150 msec in a substantially constant time if the exposure time is short. Therefore, the TS may calculate the DFes using a constant value without measuring the time interval with the timer. But,
If the exposure time is long, it must be measured with a timer. In step S607, the absolute value of the difference from the predicted defocus amount DFes during distance measurement of each area is calculated, and ΔDF is calculated.
a, ΔDFb and ΔDFc. Step S608
Then, the defocus amount of the minimum area among ΔDFa, ΔDFb, and ΔDFc is stored in DFn.

【0016】ステップS609で、今回、焦点検出不能
であるか否かを判別し、不能であれば図4のメインプロ
グラムへリターンし、そうでなければステップS610
へ進む。ステップS610では、予測演算に必要な焦点
検出回数か否かを判別するためのカウンターCOUNT
をインクリメントする。ステップS611で、焦点検出
不能のために現在スキャン中であるか否かを判別し、ス
キャン中であればステップS612へ進み、そうでなけ
れば図4のメインプログラムへリターンする。ステップ
S612で、今回、焦点検出可能になったのでスキャン
を中止するためにスキャンフラグをクリアする。続くス
テップS613で、AFモーター10を停止する。ステ
ップS614では、撮影レンズ1を駆動しながら電荷蓄
積,焦点検出演算を行ったので、蓄積演算中のレンズ駆
動量を補正したデフォーカス量を次式により算出する。 DFn=DFn+(ECNT−PLC)/(KB×KL) ・・・(2) ここで、KBはカップリングの1回転あたりのエンコー
ダ13の発生パルス数、KLは単位レンズ駆動量当たり
のカップリング回転数、ECNTは現在の相対レンズ位
置を示すパルスカウントである。ここでは電荷蓄積中心
のレンズ位置を蓄積の開始と終了のレンズ位置の中点と
しているが、蓄積中に一定のタイマー割り込みでレンズ
位置を記憶して中心を求めてもよい。
In step S609, it is determined whether or not the focus cannot be detected at this time. If the focus cannot be detected, the process returns to the main program of FIG.
Proceed to. In step S610, a counter COUNT for determining whether or not the number of focus detections required for the prediction calculation is reached.
Is incremented. In step S611, it is determined whether or not the scan is currently being performed because the focus cannot be detected. If the scan is being performed, the process proceeds to step S612; otherwise, the process returns to the main program in FIG. In step S612, since the focus can be detected at this time, the scan flag is cleared to stop the scan. In a succeeding step S613, the AF motor 10 is stopped. In step S614, since the charge accumulation and the focus detection calculation are performed while driving the photographing lens 1, the defocus amount obtained by correcting the lens driving amount during the accumulation calculation is calculated by the following equation. DFn = DFn + (ECNT-PLC) / (KB × KL) (2) where KB is the number of pulses generated by the encoder 13 per one rotation of the coupling, and KL is the coupling rotation per unit lens drive amount. The number, ECNT, is a pulse count indicating the current relative lens position. Here, the lens position at the center of the charge accumulation is set as the midpoint between the lens positions at the start and end of the accumulation.

【0017】ステップS615では、合焦中であるか否
かを判別し、合焦中であれば現状優先になるようにステ
ップS617へ進み、合焦中でなければ至近優先になる
ようにステップS616へ進む。ステップS616で
は、最も至近のデフォーカス量を示すエリアを選択し、
DFnへ格納する。ステップS617では、測距時予測
デフォーカス量DFesに0を格納する。ステップS6
18で、シャッターレリーズボタン半押し後1回目の焦
点検出なのでCOUNTを0に初期化する。ステップS
619で、すべてのエリアで検出不能なのでローコンフ
ラグをセットする。
In step S615, it is determined whether or not the camera is in focus. If the camera is in focus, the process proceeds to step S617 so that the current priority is given. If the camera is not in focus, the closest priority is given to step S616. Proceed to. In step S616, an area indicating the closest defocus amount is selected,
Store in DFn. In step S617, 0 is stored in the estimated defocus amount DFes during distance measurement. Step S6
At 18, the COUNT is initialized to 0 since the focus is detected for the first time after the shutter release button is half-pressed. Step S
In step 619, the low-con flag is set because detection is not possible in all areas.

【0018】次に図4のメインプログラムへ戻り、ステ
ップS407で、図7に示す動体判定サブルーチンを実
行する。ここで、図7に示すフローチャートにより、動
体判定処理を説明する。動体判定サブルーチンでは、被
写体が動体であるか静止しているかを判定する。ステッ
プS701で、スキャン中か否かを判別し、スキャン中
であればステップS717へ進み、そうでなければステ
ップS702へ進む。これはスキャンニングからいきな
り動体判定を行なわないためである。ステップS702
で、焦点検出不能か否かを判別し、検出不能であればス
テップS714へ進み、そうでない場合はステップS7
03へ進む。ステップS703で、前回のレンズ駆動で
駆動方向が反転したか否かを判別し、反転駆動していた
場合はステップS717へ進み、そうでなければステッ
プS704へ進む。これは、反転駆動時の駆動機構11
のバックラッシュによる静止/移動の誤判定を避けるた
めである。
Next, returning to the main program of FIG. 4, in step S407, the moving object determination subroutine shown in FIG. 7 is executed. Here, the moving object determination processing will be described with reference to the flowchart shown in FIG. In the moving object determination subroutine, it is determined whether the subject is a moving object or stationary. In step S701, it is determined whether or not a scan is being performed. If the scan is being performed, the process proceeds to step S717; otherwise, the process proceeds to step S702. This is because moving body determination is not performed immediately after scanning. Step S702
It is determined whether or not focus detection is impossible. If detection is not possible, the process proceeds to step S714; otherwise, the process proceeds to step S7.
Go to 03. In step S703, it is determined whether or not the driving direction has been reversed by the previous lens driving. If the driving direction has been reversed, the process proceeds to step S717; otherwise, the process proceeds to step S704. This is because the driving mechanism 11 at the time of inversion driving is used.
This is to avoid erroneous determination of stationary / moving due to backlash of the above.

【0019】ステップS704で、前回の像面移動量P
nをPn-1に格納し、続くステップS705で、COUN
Tが1より大きいか否かを判別する。1より大きければ
ステップS706へ進み、そうでなければステップS7
17へ進む。これは、像面移動量を計算するのに必要な
焦点検出データがあるか否かを判別するために行う。ス
テップS706では、次式により焦点検出間の像面移動
量Pnを算出する。 Pn=DFn+DR−DFn-1 ・・・(3) ここで、DRは焦点検出間のレンズ駆動量である。ステ
ップS707で、PnとPn-1が異符号であるか否かを判
別し、異符号であればステップS718へ進み、そうで
なければステップS708へ進む。この判定は、手ブレ
などにより誤って追尾モードに入ることを避けるためで
ある。
In step S704, the previous image plane movement amount P
n is stored in Pn−1, and in the subsequent step S705,
It is determined whether T is greater than one. If it is larger than 1, the process proceeds to step S706; otherwise, the process proceeds to step S7.
Proceed to 17. This is performed to determine whether or not there is focus detection data necessary for calculating the image plane movement amount. In step S706, the image plane movement amount Pn during focus detection is calculated by the following equation. Pn = DFn + DR-DFn-1 (3) Here, DR is a lens driving amount during focus detection. In step S707, it is determined whether or not Pn and Pn-1 are different codes. If Pn and Pn-1 are different codes, the process proceeds to step S718; otherwise, the process proceeds to step S708. This determination is for avoiding accidentally entering the tracking mode due to camera shake or the like.

【0020】ステップS708で、前回動体であったか
否かを判別し、前回動体であればステップS710へ進
み、静止であればステップS709へ進む。これは、動
体判定のハンチングを防ぐため、一度動体と判定された
場合はすぐに追尾モードから抜けないようにするためで
ある。ステップS709で、前回の像面移動量Pn-1と
今回の像面移動量Pnとの和が所定値δ2より大きいか
否かを判別し、大きければステップS711へ進み、小
さければステップS718へ進む。ステップS710で
は、前回の像面移動量Pn-1と今回の像面移動量Pnとの
和が所定値δ1より大きいか否かを判別し、大きければ
ステップS711へ進み、小さければステップS718
へ進む。
In step S708, it is determined whether or not the body is a front rotating body. If the body is a front rotating body, the process proceeds to step S710. If the body is stationary, the process proceeds to step S709. This is to prevent the hunting of the moving object determination and to immediately exit the tracking mode once the moving object is determined. In step S709, it is determined whether or not the sum of the previous image plane movement amount Pn-1 and the current image plane movement amount Pn is larger than a predetermined value δ2. If larger, the process proceeds to step S711, and if smaller, the process proceeds to step S718. . In step S710, it is determined whether the sum of the previous image plane movement amount Pn-1 and the current image plane movement amount Pn is larger than a predetermined value δ1, and if it is larger, the process proceeds to step S711.
Proceed to.

【0021】ステップS711で、前回の像面移動量P
n-1と今回の像面移動量Pnの比を算出し、その比が所定
の範囲内ならば被写体を動体であると判定してステップ
S712へ進み、所定の範囲外であればステップS71
8へ進む。これは、カメラの構図を変えたときに被写体
が変化し、その被写体変化を誤って被写体の移動と誤判
定しないようにするためである。なお所定値δ1とδ2
は、50μm〜200μmの値を取り、δ1≦δ2の関
係がある。ステップS712で、前述の判定により動体
と判定されたので動体フラグをセットし、続くステップ
S713で、像面移動量Pnとその時間間隔TEnにより
像面移動速度Snを計算し、図4のメインプログラムへ
リターンする。
In step S711, the previous image plane movement amount P
The ratio between n-1 and the current image plane movement amount Pn is calculated. If the ratio is within a predetermined range, the subject is determined to be a moving object, and the process proceeds to step S712. If the ratio is outside the predetermined range, step S71 is performed.
Proceed to 8. This is to prevent the subject from changing when the composition of the camera is changed, and to prevent the change in the subject from being erroneously determined as the movement of the subject. Note that the predetermined values δ1 and δ2
Takes a value of 50 μm to 200 μm and has a relationship of δ1 ≦ δ2. In step S712, the moving object flag is set because the moving object is determined by the above-described determination. In the following step S713, the image plane moving speed Sn is calculated from the image plane moving amount Pn and the time interval TEn, and the main program shown in FIG. Return to

【0022】ステップS714で、前回ローコンであっ
たか否かを判別し、前回ローコンであればステップS7
17へ進み、そうでなければステップS715へ進む。
これは、2回連続してローコンであった場合は動体判定
しないようにするためである。ステップS715で、前
回動体であったか否かを判別し、前回動体であればステ
ップS716へ進み、そうでなければステップS717
へ進む。これは、前回動体であった場合は今回も動体で
ある可能性が高いが、被写体の移動によって測距エリア
から被写体を逃した可能性があるので、通常のローコン
の動作を行わないようにするためである。ステップS7
16で、今回ローコンなので像面移動量は不定である
が、ほとんどの場合、像面移動量は変わらないので、前
回の像面移動量を今回の像面移動量として用いる。ステ
ップS717で、像面移動量が不定なので0を格納す
る。ステップS718では、静止被写体と判定されたの
で動体フラグをクリアする。
In step S714, it is determined whether or not it was the last low-con.
Go to step S17, otherwise go to step S715.
This is to prevent the moving object from being determined when the low contrast has been performed twice consecutively. In step S715, it is determined whether or not the body is a front rotating body. If the body is a front rotating body, the process proceeds to step S716; otherwise, the process proceeds to step S717.
Proceed to. This is because if it is a front rotating body, it is highly likely that it is also a moving body this time, but there is a possibility that the subject has missed from the distance measurement area due to the movement of the subject, so do not perform the normal low contrast operation That's why. Step S7
At 16, the image plane movement amount is indefinite because it is a low contrast, but in most cases, the image plane movement amount does not change, so the previous image plane movement amount is used as the current image plane movement amount. In step S717, 0 is stored because the image plane movement amount is undefined. In step S718, the moving object flag is cleared because the subject is determined to be a still subject.

【0023】図4のメインプログラムへ戻り、ステップ
S408で、図8に示す合焦判定ルーチンを実行する。
図8に示すフローチャートにより、合焦判定処理を説明
する。ステップS801で、焦点検出不能か否かを判別
し、検出不能であれば図10のステップS1001へ進
み、そうでなければステップS802へ進む。ステップ
S802では、スキャン禁止フラグをセットする。これ
は、一度焦点検出可能になった場合はスキャンニングし
ないようにするためである。ステップS803で、動体
であるか否かを判別し、動体であればステップS804
へ進み、そうでなければステップS808へ進む。ステ
ップS804では、焦点検出モードMODEをコンティ
ニアスモード(以下では、Cモードとも呼ぶ)にする。
コンティニアスモードは、シャッターレリーズボタンを
半押ししている間、常に被写体にピントが合うように撮
影レンズ1を駆動し続ける焦点調節モードである。
Returning to the main program of FIG. 4, in step S408, a focus determination routine shown in FIG. 8 is executed.
The focus determination process will be described with reference to the flowchart shown in FIG. In step S801, it is determined whether or not focus detection cannot be performed. If detection is not possible, the process proceeds to step S1001 in FIG. 10; otherwise, the process proceeds to step S802. In step S802, a scan prohibition flag is set. This is to prevent scanning from being performed once focus detection becomes possible. In step S803, it is determined whether the object is a moving object.
The process proceeds to step S808 otherwise. In step S804, the focus detection mode MODE is set to the continuous mode (hereinafter, also referred to as C mode).
The continuous mode is a focus adjustment mode in which the photographing lens 1 is continuously driven so that the subject is always focused while the shutter release button is half-pressed.

【0024】ステップS805で、レリーズを許可する
ためにレリーズ許可フラグをセットし、フォーカスロッ
クフラグをクリアし、合焦フラグをクリアし、レリーズ
スイッチSW2割り込みを許可する。続くステップS8
06で、予測駆動を行うために図9に示す追尾演算1の
サブルーチンを実行する。
In step S805, a release permission flag is set to permit release, the focus lock flag is cleared, the focusing flag is cleared, and the release switch SW2 interrupt is permitted. Subsequent step S8
At 06, a subroutine of tracking calculation 1 shown in FIG. 9 is executed to perform predictive driving.

【0025】図9のステップS901で、前回レンズ駆
動したか否かを判別し、駆動していればステップS90
2へ進み、駆動していなければステップS906へ進
む。ステップS902で、図17に示すデーブルを参照
して撮影レンズ1の焦点距離と被写体の移動方向とによ
り補正係数αを設定する。ステップS903で、補正駆
動量Cnを次式により算出する。 Cn=α×Sn×TEN ・・・(4) この補正駆動量Cnは、時間TENの間に被写体の像面
が移動する量である。次回の焦点検出時に、デフォーカ
ス量が0になるような補正駆動量Cnを計算する。補正
係数αは、カメラに向かって等速度で動く被写体でも像
面移動量に換算すると等速度にならないため、それを補
正する係数である。補正係数αは、一般的に被写体が近
づく場合は1より大きく、遠ざかる場合は1より小さ
い。なおこの補正係数αは、撮影レンズ1の焦点距離に
依存するのでレンズ情報に応じて変えてもよい。
In step S901 of FIG. 9, it is determined whether or not the lens has been driven last time.
The process proceeds to step S906, and if not, the process proceeds to step S906. In step S902, the correction coefficient α is set based on the focal length of the photographing lens 1 and the moving direction of the subject with reference to the table shown in FIG. In step S903, the correction driving amount Cn is calculated by the following equation. Cn = α × Sn × TEN (4) The correction drive amount Cn is an amount by which the image plane of the subject moves during the time TEN. At the next focus detection, a correction drive amount Cn is calculated so that the defocus amount becomes zero. The correction coefficient α is a coefficient for correcting even an object moving at a constant speed toward the camera, since it does not become a constant speed when converted into an image plane movement amount. The correction coefficient α is generally larger than 1 when the subject approaches, and smaller than 1 when the subject moves away. Since the correction coefficient α depends on the focal length of the taking lens 1, it may be changed according to the lens information.

【0026】ステップS904で、被写体の移動により
補正駆動量Cnを加味したレンズ駆動量DRを次式によ
り算出する。 DR=DFn+Cn ・・・(5) ステップS906では、前回駆動しなかったので補正駆
動量Cnを0にする。以上の処理を終えると図8の合焦
判定サブルーチンへリターンする。
In step S904, the lens drive amount DR taking into account the correction drive amount Cn due to the movement of the subject is calculated by the following equation. DR = DFn + Cn (5) In step S906, since the previous driving was not performed, the correction driving amount Cn is set to 0. Upon completion of the above processing, the process returns to the focusing determination subroutine of FIG.

【0027】リターン後のステップS807で、表示器
14に追尾表示を行い、図4のメインプログラムへリタ
ーンする。一方、ステップS808では、前回合焦であ
ったか否かを判別し、合焦していればステップS810
へ進み、合焦していなければステップS809へ進む。
ステップS809とステップS810では、デフォーカ
ス量DFnが合焦範囲内にあるか否かを判別する。ZO
NENとZONEWは、合焦判定における許容範囲を示
す所定値であり、ZONEN<ZONEWである。ここ
で、合焦ゾーン幅は撮影レンズ1の焦点距離や絞りによ
って可変にしてもよい。今回のデフォーカス量が合焦範
囲内であればステップS811へ進み、合焦範囲外であ
ればステップS812へ進む。ステップS811では、
合焦フラグをセットし、続くステップS813で、表示
器14に合焦表示を行なう。ステップS812では、合
焦フラグをクリアする。
In step S807 after the return, tracking display is performed on the display 14, and the process returns to the main program of FIG. On the other hand, in step S808, it is determined whether or not focusing was previously performed.
If not, the process proceeds to step S809.
In steps S809 and S810, it is determined whether or not the defocus amount DFn is within the focusing range. ZO
NEN and ZONEW are predetermined values indicating an allowable range in focus determination, and ZONE <ZONEW. Here, the focusing zone width may be made variable by the focal length of the taking lens 1 or the aperture. If the current defocus amount is within the focusing range, the process proceeds to step S811, and if not, the process proceeds to step S812. In step S811,
The in-focus flag is set, and in step S813, the in-focus display is performed on the display 14. In step S812, the focusing flag is cleared.

【0028】ステップS814で、焦点調節モードMO
DEがワンショットモード(S)か否かを判別し、ワン
ショットモードであればステップS815へ進み、そう
でなければステップS817へ進む。ステップS815
では、レリーズ許可フラグをセットし、フォーカスロッ
クフラグセットし、レリーズスイッチSW2割込みを許
可する。そしてステップS816で、フォーカスロック
表示を行なう。ステップS817では、レンズ駆動量D
Rに0をセットした後、図4のメインプログラムへリタ
ーンする。ステップS818では、フォーカスロック中
か否かを判別し、フォーカスロック中であれば合焦後の
フレーミングの変更であると判断してステップS816
へ進み、そうでなければステップS819へ進む。ステ
ップS819で、前ピンか否かを判別し、前ピンであれ
ばステップS820へ進み、後ピンであればステップS
821へ進む。ステップS820では表示器14に前ピ
ン表示を行い、一方、ステップS821では後ピン表示
を行う。ステップS822で、レンズ駆動量DRにDF
nをセットした後、図4のメインプログラムへリターン
する。
In step S814, the focus adjustment mode MO
It is determined whether or not the DE is in the one-shot mode (S). If the DE is the one-shot mode, the process proceeds to step S815; otherwise, the process proceeds to step S817. Step S815
Then, the release permission flag is set, the focus lock flag is set, and the release switch SW2 interrupt is permitted. Then, in step S816, focus lock display is performed. In step S817, the lens driving amount D
After setting R to 0, the process returns to the main program of FIG. In step S818, it is determined whether or not the focus is locked. If the focus is locked, it is determined that framing is to be changed after focusing, and step S816 is performed.
Otherwise, to step S819. In step S819, it is determined whether or not it is the front focus. If it is the front focus, the process proceeds to step S820.
Proceed to 821. In step S820, the front focus is displayed on the display 14, while in step S821, the back focus is displayed. In step S822, DF is added to the lens drive amount DR.
After setting n, the process returns to the main program of FIG.

【0029】ここで、図10に示すフローチャートによ
り、図8の合焦判定サブルーチンのローコン処理につい
て説明する。ステップS1001で、フォーカスロック
中か否かを判別し、フォーカスロック中であればフォー
カスロックの表示を行うために図8のステップS816
へ進み、そうでなければステップS1002へ進む。ス
テップS1002では、前回ローコンであったか否かを
判別し、前回ローコンであればステップS1005へ進
み、そうでなければテップS1003へ進む。ステップ
S1003で、動体であるか否かを判別し、動体であれ
ば図8のステップS804へ進み、そうでなければステ
ップS1004へ進む。ステップS1004で、レンズ
駆動量パルスDPに0をセットする。つまり、前回静止
被写体で今回ローコンになった場合は、1回レンズ駆動
を行わないようにする。ステップS1005で、合焦フ
ラグをクリアし、続くステップS1006で、ローコン
の表示を行った後、図4のメインプログラムへリターン
する。
Here, the low contrast processing of the focus determination subroutine of FIG. 8 will be described with reference to the flowchart shown in FIG. In step S1001, it is determined whether or not the focus is locked. If the focus is locked, step S816 in FIG. 8 is performed to display the focus lock.
The process proceeds to step S1002 otherwise. In step S1002, it is determined whether or not it was the previous low contrast, and if it is the previous low contrast, the process proceeds to step S1005. If not, the process proceeds to step S1003. In step S1003, it is determined whether the object is a moving object. If the object is a moving object, the process proceeds to step S804 in FIG. 8; otherwise, the process proceeds to step S1004. In step S1004, 0 is set to the lens drive amount pulse DP. That is, when the low-contrast image is obtained this time for the still subject, the lens drive is not performed once. In step S1005, the in-focus flag is cleared, and in step S1006, after displaying the low contrast, the process returns to the main program of FIG.

【0030】ふたたび図4のメインプログラムへ戻り、
ステップS409で、図11に示すレンズ駆動のサブル
ーチンを実行する。図11のフローチャートにより、レ
ンズ駆動処理を説明する。ステップS1101で、フォ
ーカスロックされているか否かを判別し、ロックされて
いればステップS1123へ進み、されていなければス
テップS1102へ進む。ステップS1102では、合
焦しているか否かを判別し、合焦していればステップS
1123へ進み、そうでなければステップS1103へ
進む。ステップS1103で、焦点検出不能か否かを判
別し、不能であればステップS1116へ進み、そうで
なければステップS1104へ進む。ステップS110
4では、撮影レンズ1の駆動方向が前回と反転している
か否かを判別し、反転していればステップS1105へ
進み、反転していなければステップS1106へ進む。
ステップS1105では、レンズ駆動方向の反転を示す
反転フラグをセットし、一方、ステップS1106で
は、反転フラグをクリアする。
Returning again to the main program of FIG.
In step S409, a lens driving subroutine shown in FIG. 11 is executed. The lens driving process will be described with reference to the flowchart of FIG. In step S1101, it is determined whether or not the focus is locked. If the focus is locked, the process proceeds to step S1123. If not, the process proceeds to step S1102. In step S1102, it is determined whether or not the subject is in focus.
Proceed to 1123, otherwise proceed to step S1103. In step S1103, it is determined whether or not focus detection is impossible. If not, the process proceeds to step S1116; otherwise, the process proceeds to step S1104. Step S110
In step 4, it is determined whether or not the driving direction of the photographing lens 1 has been reversed from the last time. If the driving direction has been reversed, the process proceeds to step S1105. If not, the process proceeds to step S1106.
In step S1105, an inversion flag indicating the inversion of the lens driving direction is set, while in step S1106, the inversion flag is cleared.

【0031】ステップS1107で、以後のレンズ駆動
で撮影レンズ1の駆動方向が反転するので、バックラッ
シュを補正したレンズ駆動量DRを算出する。ステップ
S1108では、前回のレンズ駆動量パルスDPを変数
PDPに格納し、今回のデフォーカス量DFnをDFn-1
に格納する。次にステップS1109で、レンズ駆動量
DRからレンズ駆動量パルスDPを次式により算出す
る。 DP=KL×KB×DR ・・・(6) ここで、KL,KBは(2)式に示す係数である。ステ
ップS1110では、レンズ駆動量パルスDPをパルス
カウントレジスタDPRへセットし、エンコーダ13か
らのパルスをカウントするパルスカウンタECNTをク
リアする。
In step S1107, since the driving direction of the photographing lens 1 is reversed by the subsequent lens driving, the lens driving amount DR in which the backlash has been corrected is calculated. In step S1108, the previous lens driving amount pulse DP is stored in the variable PDP, and the current defocus amount DFn is set to DFn-1.
To be stored. Next, in step S1109, a lens driving amount pulse DP is calculated from the lens driving amount DR by the following equation. DP = KL × KB × DR (6) Here, KL and KB are coefficients shown in equation (2). In step S1110, the lens drive amount pulse DP is set in the pulse count register DPR, and the pulse counter ECNT for counting pulses from the encoder 13 is cleared.

【0032】ステップS1111で、DPが正か否か、
すなわちレンズの駆動方向が無限方向か否かを判別し、
無限方向であればステップS1112へ進み、至近方向
であればステップS1113へ進む。ステップS111
2では、AFモーター10を無限遠方向へ駆動開始し、
一方、ステップS1113では、AFモーター10を至
近方向へ駆動開始する。ステップS1114で、現在レ
ンズ駆動中であることを示す駆動中フラグをセットし、
続くステップS1115で、パルスカウンタ割り込みを
許可して図4のメインプログラムへリターンする。な
お、パルスカウンタ割り込みは、DPR=ECNTにな
ったときに発生し、図12に示すパルスカウンタ割り込
みルーチンを実行する。
In step S1111, whether DP is positive or not is determined.
That is, it is determined whether or not the driving direction of the lens is infinite,
If the direction is infinite, the process proceeds to step S1112, and if the direction is close, the process proceeds to step S1113. Step S111
In 2, the AF motor 10 starts to be driven toward infinity,
On the other hand, in step S1113, the driving of the AF motor 10 is started in the close direction. In step S1114, a driving flag indicating that the lens is currently being driven is set,
In a succeeding step S1115, the pulse counter interrupt is permitted, and the process returns to the main program of FIG. Note that the pulse counter interrupt occurs when DPR = ECNT, and executes the pulse counter interrupt routine shown in FIG.

【0033】ステップS1116では、前回ローコンで
あったか否かを判別し、前回ローコンであればスキャン
を行うためにステップS1117へ進み、そうでなけれ
ばステップS1104へ進む。ステップS1117で、
スキャンが禁止されているか否かを判別し、禁止されて
いればステップS1122へ進み、禁止されていなけれ
ばステップS1118へ進む。ステップS1118で
は、現在スキャン中であるか否かを判別し、スキャン中
であればステップS1121へ進み、スキャン中でなけ
ればステップS1119へ進む。ステップS1119で
は、駆動中であることを示す駆動中フラグとスキャン中
であることを示すスキャン中フラグをセットし、続くス
テップS1120で、撮影レンズ1のスキャンニングを
開始する。ステップS1121で、スキャンニング中の
パルスカウンタ割り込みを禁止する。ステップS112
2では、スキャンが禁止されたのでスキャンフラグをク
リアし、続くステップS1123で、AFモーター10
を停止させる。ステップS1123で、撮影レンズ1を
駆動していないのでレンズが駆動中であることを示す駆
動中フラグクリアし、図4のメインプログラムへリター
ンする。
In step S1116, it is determined whether or not it was the previous low contrast. If it was the last low contrast, the flow proceeds to step S1117 to perform scanning, and if not, the flow proceeds to step S1104. In step S1117,
It is determined whether or not scanning is prohibited. If it is prohibited, the process proceeds to step S1122, and if not, the process proceeds to step S1118. In step S1118, it is determined whether or not a scan is being performed. If the scan is being performed, the process proceeds to step S1121, and if the scan is not being performed, the process proceeds to step S1119. In step S1119, a driving flag indicating that driving is in progress and a scanning flag indicating that scanning is in progress are set, and in step S1120, scanning of the photographic lens 1 is started. In step S1121, a pulse counter interrupt during scanning is prohibited. Step S112
In step 2, since the scan is prohibited, the scan flag is cleared, and in step S1123, the AF motor 10
To stop. In step S1123, since the photographing lens 1 is not driven, the driving flag indicating that the lens is being driven is cleared, and the process returns to the main program of FIG.

【0034】次に図12のフローチャートにより、パル
スカウンタ割り込み処理を説明する。パルスカウンタ割
り込みが発生すると、まずステップS1201で、AF
モーター10を停止し、続くステップS1202で、パ
ルスカウンタ割り込みを禁止する。ステップS1203
で、撮影レンズ1を停止したので駆動中フラグをクリア
し、ステップS1204で、前回駆動したことを示す前
回駆動フラグをセットする。以上の処理を終えると、割
り込み発生時のプログラムへリターンする。
Next, the pulse counter interrupt processing will be described with reference to the flowchart of FIG. When a pulse counter interrupt occurs, first, in step S1201, AF
The motor 10 is stopped, and in a succeeding step S1202, the pulse counter interrupt is prohibited. Step S1203
Then, since the photographing lens 1 is stopped, the driving flag is cleared, and in step S1204, a previous driving flag indicating that the driving was performed last time is set. When the above processing is completed, the program returns to the program at the time of occurrence of the interrupt.

【0035】図11に示すレンズ駆動サブルーチンが終
了すると図4のメインプログラムへリターンし、ステッ
プS402へ戻ってふたたび上述した処理を繰り返す。
ここで、レリーズスイッチSW1がオンでかつレリーズ
スイッチSW2がオフの場合、すなわちシャッターレリ
ーズボタンの半押し時は、図4の上記フローを繰り返
す。しかし、焦点調節モードがコンティニアスモード
(C)もしくはワンショットモード(S)で合焦した場
合は、シャッターレリーズが許可され、レリーズスイッ
チSW2がオンするとSW2割り込みが発生する。
When the lens driving subroutine shown in FIG. 11 is completed, the process returns to the main program of FIG. 4, returns to step S402, and repeats the above-described processing.
Here, when the release switch SW1 is on and the release switch SW2 is off, that is, when the shutter release button is half-pressed, the above flow of FIG. 4 is repeated. However, when the focus is adjusted in the continuous mode (C) or the one-shot mode (S), the shutter release is permitted, and when the release switch SW2 is turned on, an SW2 interrupt is generated.

【0036】図13に示すフローチャートにより、SW
2割り込み処理を説明する。ステップS1301で、ミ
ラーアップを示すミラーアップフラグをセットし、SW
2割り込みを禁止し、ミラーアップ動作を開始する。ス
テップS1302で、被写体が動いているか否かを判別
し、静止していればステップS1310へ進み、移動し
ていればステップS1303へ進む。ステップS130
3以降では、ミラーアップ中に撮影レンズ1を駆動して
ピントのあった写真を撮るため、レリーズタイムラグに
よるピントズレを補正するレンズ駆動量を算出する。ス
テップS1303で、ミラーアップ終了時のレンズ位置
を予測する追尾演算2のサブルーチンを実行する。
According to the flowchart shown in FIG.
2 interrupt processing will be described. In step S1301, a mirror-up flag indicating mirror-up is set, and SW
2 Disable interrupts and start mirror up operation. In step S1302, it is determined whether the subject is moving. If the subject is stationary, the process proceeds to step S1310, and if the subject is moving, the process proceeds to step S1303. Step S130
In the third and subsequent steps, the lens driving amount for correcting the focus shift due to the release time lag is calculated in order to drive the photographing lens 1 during the mirror up and to take a focused photograph. In step S1303, a subroutine of tracking calculation 2 for estimating the lens position at the end of mirror up is executed.

【0037】図14のステップS1401で、前回駆動
したか否かを判別し、前回駆動していればステップS1
402へ進み、図17に示すαのテーブルを参照する。
ステップS1403で、補正駆動量Cnを次式により算
出する。 Cn=α×Sn×(AFT1−ITn+TR−INTT/2) ・・・(7) ここで、TRはレリーズタイムラグ、INTTはCCD
の電荷蓄積時間、ITnはCCDの蓄積開始時刻、AF
T1はフリーランニングタイマーの現在の時刻である。
ステップS1404で、前回撮影レンズ1を駆動してい
ない場合はCnに0をセットする。ステップS1405
で、現在撮影レンズ1を駆動中であるか否かを判別し、
レンズ駆動中であればステップS1407へ進み、レン
ズ駆動中でなければステップS1406へ進む。ステッ
プS1406では、補正駆動量CDRにCnを設定す
る。ステップS1407では、補正駆動量CDRを次式
により求める。 CDR=DFn+Cn ・・・(8) その後、図13のSW2割り込みルーチンへリターンす
る。
In step S1401 of FIG. 14, it is determined whether or not driving has been performed last time.
Proceeding to 402, the table of α shown in FIG. 17 is referred to.
In step S1403, the correction driving amount Cn is calculated by the following equation. Cn = α × Sn × (AFT1-ITn + TR-INTT / 2) (7) Here, TR is a release time lag, and INTT is a CCD.
Charge accumulation time, ITn is the CCD accumulation start time, AF
T1 is the current time of the free running timer.
In step S1404, if the photographing lens 1 has not been driven last time, 0 is set to Cn. Step S1405
Then, it is determined whether or not the photographing lens 1 is currently being driven,
If the lens is being driven, the process proceeds to step S1407; if not, the process proceeds to step S1406. In step S1406, Cn is set to the correction drive amount CDR. In step S1407, the correction driving amount CDR is obtained by the following equation. CDR = DFn + Cn (8) Thereafter, the process returns to the SW2 interrupt routine of FIG.

【0038】図15,16は、撮影レンズ1による被写
体像面位置とレンズ位置との軌跡を示す図であり、縦軸
が位置Zを表し、横軸が時間tを表す。図15は、レン
ズ駆動中でないときにレリーズされた場合の両者の軌跡
を表す。この場合、最新のCCD蓄積による焦点検出結
果が出ていないので、前回のレンズ駆動終了時のデフォ
ーカス量は不明である。しかし、半押し時は次回の電荷
蓄積時にデフォーカス量が0となるようにレンズ駆動を
行うので、前回のレンズ駆動によりCCD蓄積時にデフ
ォーカス量が0となっているはずである。一方図16
は、レンズ駆動中にレリーズされた場合の両者の軌跡を
示す。この場合、最新の焦点検出結果が出いるので上記
(8)式により補正駆動量CDRを算出する。
FIGS. 15 and 16 are diagrams showing the trajectory between the object image plane position and the lens position by the photographic lens 1. The vertical axis represents the position Z, and the horizontal axis represents the time t. FIG. 15 shows both trajectories when the lens is released when the lens is not being driven. In this case, since the focus detection result based on the latest CCD accumulation is not obtained, the defocus amount at the end of the previous lens driving is unknown. However, when the lens is half-pressed, the lens is driven so that the defocus amount becomes 0 at the next charge accumulation, and the defocus amount should have been 0 at the time of CCD accumulation by the previous lens drive. On the other hand, FIG.
Shows the trajectories of both lenses when the lens is released during driving of the lens. In this case, since the latest focus detection result is obtained, the correction driving amount CDR is calculated by the above equation (8).

【0039】図14に示す追尾演算2サブルーチンをリ
ターンした後、図13のステップS1304で、現在レ
ンズ駆動中か否かを判別し、駆動中であればステップS
1306へ進み、駆動中でなければステップS1305
へ進む。ステップS1305では、レンズ駆動量DRに
(DR+CDR)を設定し、駆動パルスDPに(KL×
KB×CDR)を設定する。一方ステップS1306で
は、レンズ駆動量DRに補正駆動量CDRを設定し、駆
動パルスDPに(KL×KB×CDR−ECNT)とす
る。ステップS1307で、パルスカウンタ割り込みを
禁止してからパルスカウントレジスタDPRにDPを設
定し、パルスカウンタ割り込みを許可する。ステップS
1308で、現在レンズ駆動中か否かを判別し、駆動し
ていればステップS1310へ進み、そうでなければス
テップS1309へ進む。ステップS1309で、レン
ズ駆動を開始、駆動フラグをセットする。
After returning from the tracking operation 2 subroutine shown in FIG. 14, it is determined in step S1304 in FIG. 13 whether or not the lens is currently being driven.
Proceed to 1306, and if not driving, step S1305
Proceed to. In step S1305, the lens drive amount DR is set to (DR + CDR), and the drive pulse DP is set to (KL × CDR).
(KB × CDR) is set. On the other hand, in step S1306, the correction drive amount CDR is set to the lens drive amount DR, and the drive pulse DP is set to (KL × KB × CDR−ECNT). In step S1307, the pulse counter interrupt is disabled, DP is set in the pulse count register DPR, and the pulse counter interrupt is enabled. Step S
In 1308, it is determined whether or not the lens is currently being driven. If the lens is being driven, the process proceeds to step S1310; otherwise, the process proceeds to step S1309. In step S1309, lens driving is started and a driving flag is set.

【0040】ステップS1310で、ミラーアップが終
了するまで待ち、ミラーアップが終了したらステップS
1311へ進み、レンズ駆動が終了するのを待つ。レン
ズ駆動が終了したらステップS1212へ進み、シャッ
ター制御回路16を制御して露光を行なう。露光終了後
のステップS1313で、ミラーダウンを開始し、ミラ
ーバウンドがなくなり安定するまで所定時間待つ。所定
時間経過後、ステップS1314で、被写体が動体であ
るか否かを判別し、動体であれば駒間の焦点検出を保証
するためにスイッチSW2割り込みを禁止したまま図5
のステップS503へ進み、静止していればステップS
1315へ進んでスイッチSW2割り込みを許可する。
In step S1310, the process waits until the mirror-up is completed.
Proceed to 1311 and wait for lens drive to end. Upon completion of the lens driving, the flow advances to step S1212 to control the shutter control circuit 16 to perform exposure. In step S1313 after the end of the exposure, the mirror down is started, and a predetermined time is waited until the mirror bounce disappears and becomes stable. After a lapse of a predetermined time, in step S1314, it is determined whether or not the subject is a moving body. If the moving body is a moving body, the switch SW2 interrupt is disabled to guarantee focus detection between frames while FIG.
The process proceeds to step S503 of step S503.
Proceed to 1315 to enable the switch SW2 interrupt.

【0041】なお、このSW2割り込みのサブルーチン
において、ミラーアップ終了時にレンズ駆動中であれ
ば、撮影レンズ1の駆動終了を待ってシャッター幕の走
行を開始するようにしているが、ミラーアップ終了時の
レンズ駆動残量を所定値と比較して所定値以下であれ
ば、シャッター幕の走行を開始するようにしてもよい。
In the subroutine of the SW2 interrupt, if the lens is being driven at the end of the mirror up, the shutter curtain starts running after the drive of the photographing lens 1 is completed. The running of the shutter curtain may be started if the remaining amount of the lens drive is equal to or smaller than a predetermined value.

【0042】このように、露光後の初回の焦点検出時点
における露光前に追尾していた移動被写体に対する予測
デフォーカス量を算出し、同時点に複数の焦点検出領域
で検出された複数のデフォーカス量の中の予測デフォー
カス量に最も近いデフォーカス量に基づいて露光後の撮
影レンズを追尾駆動するようにしたので、露光前に追尾
していた移動被写体を露光後も正確に補捉でき、引続き
その移動被写体に対して撮影レンズを追尾駆動すること
ができる。
As described above, the predicted defocus amount for the moving object tracked before the exposure at the time of the first focus detection after the exposure is calculated, and the plurality of defocus amounts detected in the plurality of focus detection areas at the same time are calculated. Since the tracking lens is driven after exposure based on the defocus amount closest to the predicted defocus amount in the amount, the moving subject that was tracked before exposure can be accurately captured even after exposure, Subsequently, the photographing lens can be driven to track the moving subject.

【0043】以上の実施例の構成において、AFモジュ
ール7およびCPU8が焦点検出手段を、CPU8が像
面移動速度算出手段、デフォーカス量推定手段、デフォ
ーカス量選択手段および追尾駆動量演算手段を、CPU
8およびAFモーター10がレンズ駆動制御手段をそれ
ぞれ構成する。
In the configuration of the above embodiment, the AF module 7 and the CPU 8 serve as focus detecting means, and the CPU 8 serves as image plane moving speed calculating means, defocus amount estimating means, defocus amount selecting means and tracking drive amount calculating means. CPU
8 and the AF motor 10 constitute lens drive control means, respectively.

【0044】[0044]

【発明の効果】以上説明したように本発明によれば、
回の焦点検出時に算出した移動被写体の像面移動速度に
基づいて、その移動被写体に対する今回の焦点検出時の
デフォーカス量を推定し、今回の焦点検出時に複数の焦
点検出領域で検出された複数のデフォーカス量の中から
デフォーカス量推定値に最も近いデフォーカス量を選択
する。そして、選択したデフォーカス量と今回の焦点検
出時に算出した像面移動速度とに基づいて移動被写体を
追尾するための追尾駆動量を演算し、追尾駆動量にした
がって撮影レンズを駆動制御するようにしたので、露光
前に追尾していた移動被写体を露光後も正確に捕捉で
き、引続きその移動被写体に対して撮影レンズを追尾駆
動することができる。
According to the present invention as described above, according to the present invention, prior to
To the image plane moving speed of the moving object calculated at the time of focus detection
Based on the current focus detection
The defocus amount is estimated, and multiple focuses are detected during the current focus detection.
From multiple defocus amounts detected in the point detection area
Select the defocus amount closest to the estimated defocus amount
I do. Then, select the defocus amount and the focus
The moving subject is determined based on the
Calculates the tracking drive amount for tracking and sets it as the tracking drive amount
Since the drive of the photographing lens is controlled in this way, the moving subject that was tracked before the exposure can be accurately captured even after the exposure, and the photographing lens can be continuously driven for the moving subject.

【図面の簡単な説明】[Brief description of the drawings]

【図1】クレーム対応図。FIG. 1 is a diagram corresponding to claims.

【図2】一実施例の構成を示すブロック図。FIG. 2 is a block diagram showing a configuration of one embodiment.

【図3】移動する主要被写体と背景被写体との像面位置
の軌跡と、撮影レンズの位置の軌跡とを示す図。
FIG. 3 is a diagram illustrating a locus of an image plane position of a moving main subject and a background subject, and a locus of a position of a photographing lens.

【図4】焦点調節制御のメインプログラムを示すフロー
チャート。
FIG. 4 is a flowchart showing a main program of focus adjustment control.

【図5】CCD蓄積制御サブルーチンを示すフローチャ
ート。
FIG. 5 is a flowchart showing a CCD accumulation control subroutine.

【図6】デフォーカス量演算サブルーチンを示すフロー
チャート。
FIG. 6 is a flowchart illustrating a defocus amount calculation subroutine.

【図7】動体判定サブルーチンを示すフローチャート。FIG. 7 is a flowchart showing a moving object determination subroutine.

【図8】合焦判定サブルーチンを示すフローチャート。FIG. 8 is a flowchart illustrating a focus determination subroutine.

【図9】追尾演算1サブルーチンを示すフローチャー
ト。
FIG. 9 is a flowchart showing a tracking calculation 1 subroutine.

【図10】合焦判定時のローコン処理を示すフローチャ
ート。
FIG. 10 is a flowchart showing low contrast processing at the time of focus determination.

【図11】レンズ駆動サブルーチンを示すフローチャー
ト。
FIG. 11 is a flowchart showing a lens driving subroutine.

【図12】パルスカウンタ割り込みルーチンを示すフロ
ーチャート。
FIG. 12 is a flowchart showing a pulse counter interrupt routine.

【図13】SW2割込みルーチンを示すフローチャー
ト。
FIG. 13 is a flowchart showing a SW2 interrupt routine.

【図14】追尾演算2サブルーチンを示すフローチャー
ト。
FIG. 14 is a flowchart showing a tracking calculation 2 subroutine.

【図15】レンズ駆動中でないときにレリーズされた場
合の被写体像面位置とレンズ位置との軌跡を示す図。
FIG. 15 is a diagram illustrating a locus between a subject image plane position and a lens position when the lens is released when the lens is not being driven.

【図16】レンズ駆動中にレリーズされた場合の被写体
像面位置とレンズ位置との軌跡を示す図。
FIG. 16 is a diagram illustrating a locus between a subject image plane position and a lens position when the lens is released during driving of the lens.

【図17】撮影レンズの焦点距離および被写体の移動方
向と補正係数αとの関係を示す図。
FIG. 17 is a diagram illustrating a relationship between a focal length of a photographing lens, a moving direction of a subject, and a correction coefficient α.

【符号の説明】[Explanation of symbols]

1 撮影レンズ 2 被写体 3 メインミラー 4 ペンタプリズム 5 接眼レンズ 6 サブミラー 7 AFモジュール 8 CPU 9 レンズ情報メモリ 10 AFモーター 11 駆動機構 12 カップリング 13 エンコーダ 14 表示器 15 ミラー制御回路 16 シャッター制御回路 Reference Signs List 1 shooting lens 2 subject 3 main mirror 4 pentaprism 5 eyepiece 6 sub mirror 7 AF module 8 CPU 9 lens information memory 10 AF motor 11 drive mechanism 12 coupling 13 encoder 14 display 15 mirror control circuit 16 shutter control circuit

───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.7,DB名) G02B 7/28 - 7/38 ────────────────────────────────────────────────── ─── Continued on front page (58) Field surveyed (Int. Cl. 7 , DB name) G02B 7/ 28-7/38

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】撮影画面内に複数の焦点検出領域を有し、
各焦点検出領域ごとに撮影レンズの焦点調節状態を示す
デフォーカス量を繰り返し検出する焦点検出手段と、前記焦点検出手段により焦点検出が行われるたびに、前
記複数の焦点検出領域の複数のデフォーカス量の中から
選択された今回 および過去のデフォーカス量に基づい
て、前記撮影レンズによって結像される被写体像面の移
動速度(以下、像面移動速度と云う)を算出する像面移
動速度算出手段と、 前記像面移動速度算出手段で算出された前回の焦点検出
時の像面移動速度に基づいて、移動被写体に対する今回
の焦点検出時のデフォーカス量を推定するデフォーカス
量推定手段と、 今回の焦点検出時に前記複数の焦点検出領域で検出され
た複数のデフォーカス量の中から、前記デフォーカス量
推定手段で推定されたデフォーカス量に最も近いデフォ
ーカス量を選択するデフォーカス量選択手段と、 前記デフォーカス量選択手段で選択されたデフォーカス
量と、前記像面移動速度算出手段で算出された今回の焦
点検出時の像面移動速度とに基づいて、前記移動被写体
に対して前記撮影レンズを遅れなく追尾させるための追
尾駆動量を演算する追尾駆動量演算手段と、 前記追尾駆動量演算手段で演算された追尾駆動量にした
がって前記撮影レンズを駆動制御するレンズ駆動制御手
段とを備える ことを特徴とする焦点調節装置。
1. A photographing screen having a plurality of focus detection areas,
Focus detection means for repeatedly detecting a defocus amount indicating the focus adjustment state of the taking lens for each focus detection area; and each time focus detection is performed by the focus detection means,
From among multiple defocus amounts of multiple focus detection areas
Image plane moving speed calculating means for calculating a moving speed of an object image plane formed by the photographing lens (hereinafter, referred to as an image plane moving speed) based on the selected current and past defocus amounts; Previous focus detection calculated by image plane moving speed calculation means
This time, based on the moving speed of the image plane,
Defocus to estimate the amount of defocus at the time of focus detection
An amount estimating means, which is detected in the plurality of focus detection areas during the current focus detection.
Out of a plurality of defocus amounts,
The default value closest to the defocus amount estimated by the estimation means
And the defocus amount selection means for selecting the carcass weight, the defocus selected in the defocus amount selection means
And the current focus calculated by the image plane moving speed calculating means.
The moving object based on the image plane moving speed at the time of point detection.
For tracking the taking lens without delay
A tracking drive amount calculating means for calculating a tail drive amount; and a tracking drive amount calculated by the tracking drive amount calculating means .
A lens driving control means for driving and controlling the photographing lens.
Focusing device, characterized in that it comprises a stage.
JP29636391A 1991-10-15 1991-10-15 Focus adjustment device Expired - Lifetime JP3213995B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP29636391A JP3213995B2 (en) 1991-10-15 1991-10-15 Focus adjustment device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP29636391A JP3213995B2 (en) 1991-10-15 1991-10-15 Focus adjustment device

Publications (2)

Publication Number Publication Date
JPH05107455A JPH05107455A (en) 1993-04-30
JP3213995B2 true JP3213995B2 (en) 2001-10-02

Family

ID=17832583

Family Applications (1)

Application Number Title Priority Date Filing Date
JP29636391A Expired - Lifetime JP3213995B2 (en) 1991-10-15 1991-10-15 Focus adjustment device

Country Status (1)

Country Link
JP (1) JP3213995B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0876003A (en) * 1994-09-07 1996-03-22 Nikon Corp Automatic focusing device
JP5419532B2 (en) * 2009-04-30 2014-02-19 キヤノン株式会社 Automatic focus adjustment device
JP5895270B2 (en) * 2014-03-28 2016-03-30 パナソニックIpマネジメント株式会社 Imaging device

Also Published As

Publication number Publication date
JPH05107455A (en) 1993-04-30

Similar Documents

Publication Publication Date Title
US5457513A (en) Automatic focusing device
US6954233B1 (en) Electronic image pick-up apparatus and method of adjusting the focal position thereof
US7071985B1 (en) Optical device and method for selecting object of focus
JP2597961B2 (en) Automatic focusing device
JP5335445B2 (en) LENS CONTROL DEVICE, OPTICAL DEVICE, AND LENS CONTROL METHOD
EP0579404A2 (en) Lens control apparatus
JPS6318314A (en) Focus detecting device
JP2013130827A (en) Lens control device
JP2000019379A (en) Driving controller for photographing optical system
JP3738795B2 (en) Electronic still camera
GB2200010A (en) Focus detection
JP4821506B2 (en) Focus adjustment device and camera
US6175692B1 (en) Focus detecting device, distance measuring device, and optical apparatus for adjusting focus
KR19980064200A (en) Focus detection device
JP3213995B2 (en) Focus adjustment device
US5173807A (en) Optical instrument
JPH0875998A (en) Automatic focusing device
JPS63172231A (en) Auto-focusing device
JP7379083B2 (en) Control device, imaging device, control method, and program
JPH01288816A (en) Automatic focus adjustor
USRE36546E (en) Automatic focusing device
JP2002250858A (en) Automatic focusing device and automatic focusing camera
JP2003131119A (en) Automatic focusing device and camera system
JP2019086661A (en) Imaging apparatus and control method of the same
JP2906252B2 (en) Automatic focusing device

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20070727

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20100727

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20100727

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20120727

Year of fee payment: 11

EXPY Cancellation because of completion of term
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120727

Year of fee payment: 11