JPH04338707A - Focus detector - Google Patents

Focus detector

Info

Publication number
JPH04338707A
JPH04338707A JP20660591A JP20660591A JPH04338707A JP H04338707 A JPH04338707 A JP H04338707A JP 20660591 A JP20660591 A JP 20660591A JP 20660591 A JP20660591 A JP 20660591A JP H04338707 A JPH04338707 A JP H04338707A
Authority
JP
Japan
Prior art keywords
focus
moving object
processing
calculation
time
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.)
Granted
Application number
JP20660591A
Other languages
Japanese (ja)
Other versions
JP3140500B2 (en
Inventor
Masahiro Nakada
中田 昌広
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.)
Pentax Corp
Original Assignee
Asahi Kogaku Kogyo Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority to JP20660591A priority Critical patent/JP3140500B2/en
Application filed by Asahi Kogaku Kogyo Co Ltd filed Critical Asahi Kogaku Kogyo Co Ltd
Priority to GB9505185A priority patent/GB2286497B/en
Priority to DE4244875A priority patent/DE4244875C2/en
Priority to GB9505187A priority patent/GB2286499B/en
Priority to GB9210487A priority patent/GB2255870B/en
Priority to DE4216073A priority patent/DE4216073C2/en
Priority to DE4244874A priority patent/DE4244874C2/en
Priority to GB9505186A priority patent/GB2286498B/en
Priority to FR9205919A priority patent/FR2676552B1/en
Priority to DE4244873A priority patent/DE4244873C2/en
Priority to FR9212521A priority patent/FR2684196B1/en
Priority to FR9212522A priority patent/FR2684197B1/en
Publication of JPH04338707A publication Critical patent/JPH04338707A/en
Priority to US08/185,239 priority patent/US5448329A/en
Priority to US08/466,889 priority patent/US5664239A/en
Priority to US08/467,801 priority patent/US5640225A/en
Priority to US08/467,056 priority patent/US5612761A/en
Application granted granted Critical
Publication of JP3140500B2 publication Critical patent/JP3140500B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PURPOSE:To reduce measuring errors by temporarily storing a defocusing quantity in the case that an object is low-contrasted, comparing it with a defocusing quantity measured again and selecting the smaller one. CONSTITUTION:A main CPU 35 calculates the defocusing quantity by specified arithmetic operation based on integration data outputted from a CCD sensor unit 21 for range-finding. Whether the specified object is low-contrasted is judged, and in the case of judging that it is not low-contrasted, the defocusing quantity in that case is selected. In the case of judging that it is low-contrasted, the defocusing quantity in that case is temporarily stored and the CCD sensor unit 21 is actuated again. The stored defocusing quantity and the defocusing quantity measured again this time are compared, and the smaller quantity is selected as the defocusing quantity.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明は、光学機器の焦点検出装
置に係り、より具体的には、被写体が低コントラストの
ときでもより高精度の焦点検出ができる焦点検出装置に
関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a focus detection device for optical equipment, and more specifically to a focus detection device capable of detecting focus with higher accuracy even when an object has a low contrast.

【0002】0002

【従来技術およびその問題点】被写体までの距離または
撮影レンズによるデフォーカス量を光電的に求め、合焦
、非合焦を表示するフォーカスインジケーションまたは
、撮影レンズのピント合わせを自動的に行なうオートフ
ォーカス機能を有するカメラ等の光学機器が知られてい
る。このような光学装置に用いられる焦点検出装置では
、合焦、非合焦の判定を確実にするため、測距処理を継
続して行なうことがある。
[Prior art and its problems] Focus indication that photoelectrically determines the distance to the subject or the amount of defocus by the photographic lens and indicates whether it is in focus or out of focus, or auto that automatically adjusts the focus of the photographic lens. Optical devices such as cameras that have a focus function are known. In the focus detection device used in such an optical device, distance measurement processing may be continuously performed in order to reliably determine whether the object is in focus or out of focus.

【0003】しかし、特に位相差方式の焦点検出装置の
場合には、被写体が低コントラストのときに、同一の被
写体に対する同一条件の測定であっても、測距誤差を生
じることがある。したがって、一旦合焦したときであっ
ても、測距誤差等により合焦であるのに非合焦であると
判断されてレンズが駆動されたり、合焦表示がちらつい
たりする(点滅する)ことがある。
However, especially in the case of a phase difference type focus detection device, when the object has a low contrast, a distance measurement error may occur even when measuring the same object under the same conditions. Therefore, even if the focus is once achieved, due to distance measurement errors, etc., it may be determined that the lens is out of focus even though it is in focus, and the lens may be driven, or the focus display may flicker (blink). There is.

【0004】0004

【発明の目的】本発明は、焦点検出装置において、特に
低コントラスト時における測定誤差により生じる不都合
を防止することを目的とする。
OBJECTS OF THE INVENTION It is an object of the present invention to prevent inconveniences caused by measurement errors in a focus detection device, especially when the contrast is low.

【0005】[0005]

【発明の概要】この目的を達成するために本発明は、特
定被写体に対するデフォーカス量を測定するデフォーカ
ス量測定手段と、前記特定被写体が低コントラストであ
るかどうかを判断するコントラスト判断手段と、前記コ
ントラスト判断手段が低コントラストではないと判断し
たときにはそのデフォーカス量を選択し、前記コントラ
スト判断手段が低コントラストと判断したときにはその
時のデフォーカス量を一時メモリして前記デフォーカス
測定手段を再動作させ、前記メモリしたデフォーカス量
と今回再測定したデフォーカス量とを比較して小さい方
をデフォーカス量として選択するデフォーカス量選択手
段と、を備えたことに特徴を有する。
SUMMARY OF THE INVENTION In order to achieve this object, the present invention includes: a defocus amount measuring means for measuring a defocus amount for a specific subject; a contrast determining means for determining whether the specific subject has a low contrast; When the contrast determining means determines that the contrast is not low, the defocus amount is selected, and when the contrast determining means determines that the contrast is low, the defocus amount at that time is temporarily stored and the defocus measuring means is re-operated. and a defocus amount selection means for comparing the memorized defocus amount and the currently re-measured defocus amount and selecting the smaller one as the defocus amount.

【0006】この構成によれば、被測定被写体が低コン
トラストのときには、直前の2回のデフォーカス量の内
、小さい方のデフォーカス量を選択するので、測定ミス
による誤動作が減少する。
According to this configuration, when the object to be measured has a low contrast, the smaller defocus amount of the two previous defocus amounts is selected, so that malfunctions due to measurement errors are reduced.

【0007】[0007]

【実施例】以下図示実施例に基づいて本発明を説明する
。図1は、本発明を適用した自動焦点(AF)一眼レフ
カメラの主要構成を示したブロック図である。このAF
一眼レフカメラは、カメラボディ11と、このカメラボ
ディ11に着脱可能な撮影レンズ51とを備えている。 撮影レンズ51からカメラボディ11内に入射した被写
体光束は、大部分がメインミラー13によりファインダ
光学系を構成するペンタプリズム15に向かって反射さ
れ、さらに反射光の一部が測光用IC17の受光素子(
図示せず)に入射する。一方、メインミラー13のハー
フミラー部14に入射した被写体光束の一部はここを透
過し、サブミラー19で下方に反射されて測距用CCD
センサユニット21に入射する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be explained below based on the illustrated embodiments. FIG. 1 is a block diagram showing the main configuration of an autofocus (AF) single-lens reflex camera to which the present invention is applied. This AF
The single-lens reflex camera includes a camera body 11 and a photographic lens 51 that is detachable from the camera body 11. Most of the subject light flux that enters the camera body 11 from the photographic lens 51 is reflected by the main mirror 13 toward the pentaprism 15 that constitutes the finder optical system, and a part of the reflected light is further reflected by the light receiving element of the photometry IC 17. (
(not shown). On the other hand, a part of the subject light beam incident on the half mirror section 14 of the main mirror 13 is transmitted through this, is reflected downward by the sub mirror 19, and is sent to the distance measuring CCD.
The light enters the sensor unit 21.

【0008】測光用IC17は、被写体光束を受光する
受光素子を備えていて、この受光素子が受光量に応じて
発生する電気信号を対数圧縮し、周辺部制御用回路23
を介してメインCPU35にてA/D交換する。メイン
CPU35は、測光信号およびフィルム感度情報に基づ
いて所定の露出演算を実行し、露出用の適正シャッタ速
度および絞り値を算出する。そして、これらのシャッタ
速度および絞り値に基づいて、露光機構(シャッタ機構
)25および絞り機構27を駆動して露光する。さらに
周辺部制御用回路23は、レリーズに際して、モータド
ライブ回路29を介してミラーモータ31を駆動してメ
インミラー13のアップ/ダウン処理を行ない、露光終
了後には巻上モータ33を駆動してフィルムを巻上げる
The photometric IC 17 is equipped with a light receiving element that receives the subject light flux, and this light receiving element logarithmically compresses the electric signal generated according to the amount of light received, and the peripheral area control circuit 23
The main CPU 35 performs A/D exchange via the main CPU 35. The main CPU 35 executes a predetermined exposure calculation based on the photometry signal and film sensitivity information, and calculates an appropriate shutter speed and aperture value for exposure. Then, based on these shutter speeds and aperture values, the exposure mechanism (shutter mechanism) 25 and the aperture mechanism 27 are driven to perform exposure. Further, the peripheral control circuit 23 drives the mirror motor 31 via the motor drive circuit 29 to perform up/down processing of the main mirror 13 at the time of release, and after exposure is completed, drives the winding motor 33 to film the film. wind up.

【0009】測距用CCDセンサユニット21は、いわ
ゆる位相差方式の測距センサであって、図示しないが、
被写体光束を二分割する分割光学系と、二分割された被
写体光束をそれぞれ受光して積分(光電変換およびその
電荷を蓄積)するCCDラインセンサを備えている。そ
して測距用CCDセンサユニット21は、CCDライン
センサが積分した積分データを、制御手段としてのメイ
ンCPU35に出力する。なお、測距用CCDセンサユ
ニット21は、メインCPU35と、周辺部制御用回路
23により駆動制御される。なお、CCDセンサユニッ
ト21はモニタ素子を備えていて、周辺部制御用回路2
3は、このモニタ素子を介して被写体輝度を検出し、そ
の検出結果に応じて積分時間を変更する。
The distance measuring CCD sensor unit 21 is a so-called phase difference type distance measuring sensor, and although not shown,
It includes a splitting optical system that divides the object light beam into two, and a CCD line sensor that receives and integrates (photoelectrically converts and accumulates the electric charge) each of the two divided object light beams. The ranging CCD sensor unit 21 then outputs the integral data integrated by the CCD line sensor to the main CPU 35 as a control means. The distance measuring CCD sensor unit 21 is driven and controlled by the main CPU 35 and the peripheral control circuit 23. Note that the CCD sensor unit 21 is equipped with a monitor element, and the peripheral control circuit 2
3 detects the subject brightness through this monitor element and changes the integration time according to the detection result.

【0010】メインCPU35は、測距用CCDセンサ
ユニット21から出力される積分データに基づいて所定
の演算(プレディクタ演算)によりデフォーカス量を算
出し、そのデフォーカス量に基づいて、AFモータ39
の回転方向および回転数(エンコーダ41のパルス数)
を算出する。そしてメインCPU35は、その回転方向
およびパルス数に基づき、AFモータドライブ回路37
を介してAFモータ39を駆動する。さらにメインCP
U35は、AFモータ39の回転に応じてエンコーダ4
1が出力するパルスを検知し、カウントしてカウント値
が上記パルス数に達したらAFモータ39を停止させる
。この駆動に際してメインCPU35は、通常はDC駆
動し、停止前にはエンコーダ41の出力パルスの間隔に
基づいてAFモータ39を一定速度制御することができ
る。なお、AFモータ39の回転は、カメラボディ11
のマウント部に設けられたジョイント47と撮影レンズ
51のマウント部に設けられたジョイント57との接続
を介して撮影レンズ51側に伝達される。
The main CPU 35 calculates the amount of defocus by a predetermined calculation (predictor calculation) based on the integral data output from the range-finding CCD sensor unit 21, and controls the AF motor 39 based on the defocus amount.
rotation direction and rotation speed (number of pulses of encoder 41)
Calculate. Then, the main CPU 35 controls the AF motor drive circuit 37 based on the rotation direction and the number of pulses.
The AF motor 39 is driven via the AF motor 39. Furthermore, the main CP
U35 controls the encoder 4 according to the rotation of the AF motor 39.
1 is detected and counted, and when the count value reaches the above-mentioned number of pulses, the AF motor 39 is stopped. During this drive, the main CPU 35 normally performs DC drive, and can control the AF motor 39 at a constant speed based on the interval of output pulses of the encoder 41 before stopping. Note that the rotation of the AF motor 39 is controlled by the rotation of the camera body 11.
The signal is transmitted to the photographing lens 51 side through a connection between a joint 47 provided on the mount portion of the photographing lens 51 and a joint 57 provided on the mount portion of the photographing lens 51 .

【0011】またメインCPU35は、プログラムをメ
モリしたROM35a、RAM35b、基準タイマー3
5cおよびカウンタ35dを内蔵し、メモリ手段として
のE2PROM43が接続されている。このE2PRO
M43には、カメラボディ11特有の各種定数のほかに
、本発明のAF演算に必要な各種関数、定数などがメモ
リされている。
The main CPU 35 also includes a ROM 35a storing programs, a RAM 35b, and a reference timer 3.
5c and a counter 35d, and is connected to an E2PROM 43 as a memory means. This E2PRO
In addition to various constants specific to the camera body 11, the M43 stores various functions, constants, etc. necessary for the AF operation of the present invention.

【0012】さらにメインCPU35には、レリーズボ
タン(図示せず)の半押しでオンする測光スイッチSW
Sおよび全押しでオンするレリーズスイッチSWR、自
動焦点スイッチSWAF、メインCPU35や周辺機器
等への電源をON/OFFするメインスイッチSWMが
接続されている。メインCPU35は、設定されたAF
、露出、撮影モードなど、シャッタ速度、絞り値などを
表示装置45に表示する。表示装置45は、通常、カメ
ラボディ11の外面およびファインダ視野内の2か所に
設けられる。
Furthermore, the main CPU 35 includes a photometry switch SW that is turned on when the release button (not shown) is pressed halfway.
A release switch SWR, which is turned on by pressing S and all the way down, an automatic focus switch SWAF, and a main switch SWM, which turns on/off power to the main CPU 35, peripheral devices, etc., are connected. The main CPU 35 controls the set AF
, exposure, photographing mode, shutter speed, aperture value, etc. are displayed on the display device 45. The display device 45 is usually provided at two locations: on the outer surface of the camera body 11 and within the field of view of the finder.

【0013】このメインCPU35は、カメラシステム
全体を総括的に制御する制御手段としての機能のほかに
、合焦判断手段、動体判断手段として機能し、CCDセ
ンサユニット21および周辺部制御用回路23等とで測
距手段を構成し、AFモータ39等とでレンズ駆動手段
を構成する。
The main CPU 35 functions as a control means for comprehensively controlling the entire camera system, and also functions as a focus judgment means and a moving object judgment means, and controls the CCD sensor unit 21, peripheral area control circuit 23, etc. The AF motor 39 and the like constitute a distance measuring means, and the AF motor 39 and the like constitute a lens driving means.

【0014】一方撮影レンズ51には、合焦用レンズ群
53を光軸方向に駆動する焦点調節機構55、撮影レン
ズ51のマウント部に設けられ、カメラボディ11のジ
ョイント47と連結してAFモータ39の回転を焦点調
節機構55に伝達するレンズ側ジョイント57と、撮影
レンズ51の各種データを算出するレンズCPU61と
を備えている。レンズCPU61は、電気接点59、4
9を介して周辺部制御用回路23と接続されていて、周
辺部制御用回路23を介してのメインCPU35との間
で通信により所定のデータ通信を実行する。レンズCP
U61から周辺部制御用回路23に伝達されるデータと
しては、開放絞り値Av、最大絞り値Av、焦点距離、
Kバリュー情報などがある。なおKバリュー情報とは、
撮影レンズにより結像された像面を単位距離(例えば1
mm)移動させるために必要なエンコーダ41のパルス
数(AFモータ39の回転数)データである。
On the other hand, the photographing lens 51 includes a focus adjusting mechanism 55 that drives the focusing lens group 53 in the optical axis direction, and is provided at the mount of the photographing lens 51 and connected to the joint 47 of the camera body 11 to drive the AF motor. 39 to the focus adjustment mechanism 55, and a lens CPU 61 that calculates various data of the photographic lens 51. The lens CPU 61 has electrical contacts 59, 4
9, and executes predetermined data communication with the main CPU 35 via the peripheral control circuit 23. Lens CP
The data transmitted from U61 to the peripheral control circuit 23 includes the open aperture value Av, the maximum aperture value Av, the focal length,
There is K value information etc. Furthermore, what is K value information?
The image plane formed by the photographic lens is set at a unit distance (for example, 1
mm) This is data on the number of pulses of the encoder 41 (number of rotations of the AF motor 39) required for movement.

【0015】次に、本実施例のAF動作について、さら
に図2〜図9を参照して説明する。この一眼レフカメラ
は、測光スイッチSWSがオンされるとAF処理を開始
する。AF処理では、先ず測距用CCDセンサユニット
21が積分を始める。積分終了後、メインCPU35は
、その積分データを入力し、そのデータに基づいてデフ
ォーカス量、駆動パルス数を算出し、この駆動パルス数
に基づいてAFモータ39を駆動する。また、本実施例
では、被写体が動かないときには、その被写体に一旦合
焦すると、AFロックできるAFシングルモード、およ
び合焦しなければレリーズできないフォーカス優先モー
ドを備えている。
Next, the AF operation of this embodiment will be further explained with reference to FIGS. 2 to 9. This single-lens reflex camera starts AF processing when the photometry switch SWS is turned on. In the AF process, first, the distance measuring CCD sensor unit 21 starts integration. After the integration is completed, the main CPU 35 inputs the integral data, calculates the defocus amount and the number of drive pulses based on the data, and drives the AF motor 39 based on the number of drive pulses. Furthermore, this embodiment has an AF single mode in which the AF can be locked once the subject is in focus when the subject does not move, and a focus priority mode in which the camera cannot release the camera unless the subject is in focus.

【0016】動体追従AF処理に入るまでの動作につい
て、図2および図3を参照して説明する。図2および図
3は、合焦用レンズ53の位置を基準とした被写体像面
位置と、フィルム等価面の位置(ピント位置)との関係
を示したグラフである。
The operation up to entering the moving object tracking AF process will be explained with reference to FIGS. 2 and 3. 2 and 3 are graphs showing the relationship between the subject image plane position and the film equivalent plane position (focus position) with reference to the position of the focusing lens 53.

【0017】測光スイッチSWSがオンされてAF処理
に入ると、1回目の積分および演算により求められた駆
動量(駆動パルス数)に基づいてレンズ駆動(AFモー
タ39が駆動)を行なう。なお本実施例では、測光スイ
ッチSWSがオンされて1回目の積分および演算の結果
、デフォーカス量(または駆動パルス数)が一定量より
も大きいときには、上記レンズ駆動中も積分および演算
を繰り返す。そして、その繰り返し中にデフォーカス量
が一定値よりも小さくなったときには、その後の積分お
よび演算を中止し、直前(最新)の積分および演算によ
り求めた駆動パルス数に基づいてレンズ駆動をする。 なお以下、積分および演算処理を測距処理ともいう。
When the photometry switch SWS is turned on and AF processing begins, the lens is driven (the AF motor 39 is driven) based on the drive amount (the number of drive pulses) determined by the first integration and calculation. In this embodiment, if the first integration and calculation after the photometry switch SWS is turned on is that the defocus amount (or the number of drive pulses) is larger than a certain amount, the integration and calculation are repeated even during the lens driving. When the defocus amount becomes smaller than a certain value during the repetition, subsequent integration and calculation are stopped, and the lens is driven based on the number of drive pulses determined by the immediately preceding (latest) integration and calculation. Note that the integration and arithmetic processing will also be referred to as distance measurement processing hereinafter.

【0018】この1回目のレンズ駆動が終了すると、再
び積分および演算を実行して合焦したかどうかをチェッ
クする。合焦していれば被写体は移動していないと考え
られるが、動体である可能性もあるので、所定時間待っ
て再度測距処理を行なう。この所定時間待っている間に
レリーズスイッチSWRのオンによる割込みが入ればレ
リーズ処理を行ない、割込みが入らなければ、測光スイ
ッチSWSがオンされている間は上記測距処理およびレ
ンズ駆動処理を繰り返す。
When the first lens driving is completed, integration and calculation are performed again to check whether or not the lens is in focus. If the object is in focus, it is considered that the object is not moving, but since there is a possibility that the object is moving, the distance measurement process is performed again after a predetermined period of time. If an interrupt occurs due to turning on of the release switch SWR while waiting for this predetermined time, the release process is performed, and if no interruption occurs, the above-mentioned distance measurement process and lens driving process are repeated while the photometry switch SWS is turned on.

【0019】また、測距およびレンズ駆動の継続処理に
おいて、連続して複数回(本実施例では3回)一度も合
焦しなかったときには、被写体が移動している(動体)
と判断して、動体予測AFモードに入る。なお、測光ス
イッチSWSがオンされている間は測距、レンズ駆動処
理を継続し、一度合焦した後に、3回連続して非合焦状
熊が続いたときに動体予測AF処理に入る構成にしても
よい。
Furthermore, in the continuous processing of distance measurement and lens driving, if the object is not in focus several times in a row (three times in this example), it is assumed that the object is moving (moving object).
The camera then enters the moving object prediction AF mode. Note that while the photometry switch SWS is on, distance measurement and lens drive processing continue, and once the camera is in focus, it enters moving object predictive AF processing when out-of-focus conditions occur three times in a row. You can also do this.

【0020】『動体予測AFモード』次に、本実施例の
動体予測AFモードについて概説する。図4および図5
は、動体予測AFモード処理における動作の一例を示し
たグラフである。動体が被写体であると判断したときの
積分Iの結果に基づいた演算Cによりデフォーカスパル
ス数DPが得られると、このデフォーカスパルス数DP
に基づいてレンズ駆動Mを行なう。
"Moving Object Prediction AF Mode" Next, the moving object prediction AF mode of this embodiment will be outlined. Figures 4 and 5
is a graph showing an example of operation in moving object prediction AF mode processing. When the number of defocus pulses DP is obtained by calculation C based on the result of integral I when it is determined that the moving object is the subject, this number of defocus pulses DP
Lens drive M is performed based on.

【0021】レンズ駆動Mが終了すると、再び積分I1
を行ない、その時のデフォーカスパルス数DP1および
前回の積分Iの中間点から今回の積分I1の中間点まで
の時間T1とから被写体像の移動速度(被写体追従速度
)Sを演算C1において算出する。そして、被写体像面
をフィルム面に短時間で一致させるために、被写体追従
速度Sの所定倍(本実施例では2倍)の速度で時間T1
の間、一定速度制御(倍速レンズ駆動)M1を行なう。 そして、この2倍速レンズ駆動M1が終了した後、積分
I2が行なわれている間は、写体追従速度S1で一定速
度制御(レンズ駆動)M2を行なう。なお、一定速度制
御とは、AFモータ39を一定速度で駆動する制御のこ
とである。
When the lens driving M is completed, the integral I1 is again
The moving speed of the subject image (subject tracking speed) S is calculated in calculation C1 from the number of defocus pulses DP1 at that time and the time T1 from the midpoint of the previous integral I to the midpoint of the current integral I1. In order to match the subject image plane with the film plane in a short time, the subject tracking speed S is set at a predetermined times (twice in this embodiment) a time T1.
During this period, constant speed control (double speed lens drive) M1 is performed. After this double-speed lens driving M1 is completed, constant speed control (lens driving) M2 is performed at the object tracking speed S1 while integration I2 is being performed. Note that constant speed control refers to control in which the AF motor 39 is driven at a constant speed.

【0022】積分I2が終了すると、レンズ駆動M2を
停止して、演算C2を行なう。この演算C2では、今回
のデフォーカスパルス数DP2、計算上の被写体の移動
パルス数MP1および積分I1、I2間の時間T2に基
づいて被写体追従速度S2が算出される。そして、演算
C2に要した時間t2分、被写体追従速度S2の2倍速
で倍速レンズ駆動M3を行なう。そして、この倍速レン
ズ駆動M3が終了すると積分I3を開始し、この積分I
3の間は被写体追従速度S2で追従レンズ駆動M4を行
なう。
When the integration I2 is completed, the lens drive M2 is stopped and the calculation C2 is performed. In this calculation C2, the subject tracking speed S2 is calculated based on the current number of defocus pulses DP2, the calculated number of moving pulses of the subject MP1, and the time T2 between the integrals I1 and I2. Then, for the time t2 required for calculation C2, double-speed lens drive M3 is performed at twice the subject tracking speed S2. Then, when this double-speed lens drive M3 is completed, integration I3 is started, and this integration I
3, the tracking lens drive M4 is performed at the subject tracking speed S2.

【0023】また、倍速レンズ駆動により合焦用レンズ
53が行き過ぎることがある。例えば、図4では、倍速
レンズ駆動M3によりデフォーカスパルス数DP3だけ
行過ぎている。この先回り量(デフォーカスパルス数D
P3)が所定値以下の場合には被写体が移動を継続して
いるとみなしても問題はないので、演算C3が終了した
後に、動体追従速度S3で倍速レンズ駆動M5を行なう
Furthermore, the focusing lens 53 may move too far due to double-speed lens driving. For example, in FIG. 4, the double-speed lens drive M3 causes the defocus pulse number DP3 to go too far. This advance amount (defocus pulse number D
If P3) is less than a predetermined value, there is no problem in assuming that the subject continues to move, so after the calculation C3 is completed, double-speed lens drive M5 is performed at the moving object tracking speed S3.

【0024】しかし、所定量以上行き過ぎた場合には、
被写体の移動速度が遅くなった場合や停止した場合等が
あるので、例えば図5に示すように、レンズ駆動を行な
わないで様子をみるチェック処理を行なう。
[0024] However, if it goes too far beyond a predetermined amount,
Since there are cases where the moving speed of the object becomes slow or the object stops, a check process is performed to observe the situation without driving the lens, as shown in FIG. 5, for example.

【0025】図5において、積分I4により所定量以上
の行き過ぎデフォーカスパルス数DP4が得られたとき
には、演算C4に要した演算時間t4の間、倍速レンズ
駆動を行なわずに待つ。そして、次の積分I5の開始と
同時に、前回の演算C4で求めた被写体追従速度S3で
追従レンズ駆動M7を行なう。積分I5のデータにより
、所定量以内のデフォーカスパルス数DP5が得られた
ときには、通常の倍速レンズ駆動を行なう追従AF処理
を行なう。
In FIG. 5, when the number of overshooting defocus pulses DP4 equal to or greater than a predetermined amount is obtained by integration I4, double-speed lens driving is not performed and the process waits for the calculation time t4 required for calculation C4. Then, at the same time as the start of the next integration I5, the tracking lens drive M7 is performed at the subject tracking speed S3 obtained in the previous calculation C4. When the number of defocus pulses DP5 within a predetermined amount is obtained from the data of the integral I5, follow-up AF processing is performed to perform normal double-speed lens driving.

【0026】しかし、この倍速レンズ駆動を行なわない
チェックを2回繰り返しても被写体像が合焦範囲内に入
らないときには、被写体の移動速度が遅くなったか、被
写体が停止したか、あるいは被写体の移動方向が変わっ
たと考えられるので、動体予測AFモードから抜け、通
常のAFモードに戻り、図2に示した処理を行なう。2
回チェックすることにより、動体の状態が変化したこと
を確実に検知できる。なお、本実施例では、チェックを
2回繰り返しても行き過ぎとなるときに動体予測モード
から抜けたが、この回数に限定されない。また、チェッ
ク処理では、追従レンズ駆動も行なわない構成にしても
よい。
However, if the subject image does not fall within the in-focus range even after repeating this check twice to avoid double-speed lens drive, the subject may have slowed down, the subject has stopped, or the subject has moved. Since it is considered that the direction has changed, the moving object prediction AF mode is exited, the mode returns to the normal AF mode, and the processing shown in FIG. 2 is performed. 2
By checking twice, it is possible to reliably detect that the state of the moving object has changed. Note that in this embodiment, the moving object prediction mode is exited when the check becomes too far even after repeating the check twice, but the present invention is not limited to this number of times. Further, in the check process, a configuration may also be adopted in which the tracking lens is not driven.

【0027】『動体追従速度(被写体像移動速度)の計
算1』動体追従速度Sの具体的な算出方法について、図
4および図5を参照して説明する。最初の動体追従速度
S1は、動体予測モードに入って最初の積分I1により
得られたデフォーカスパルス数DP1と、前回の積分I
の中間点から今回の積分I1の中間点までの時間T1と
により、下記式により求められる。なお、X1はエンコ
ーダ41が出力するパルスの出力周期(ms)である。 X1=T1/DP1          (ms)  
…■S1:1/X1               =DP1/T1    
  (パルズ/ms)  …■
"Calculation 1 of moving object following speed (subject image moving speed)" A specific method of calculating the moving object following speed S will be explained with reference to FIGS. 4 and 5. The initial moving object tracking speed S1 is determined by the number of defocus pulses DP1 obtained by the first integration I1 after entering the moving object prediction mode, and the previous integration I1.
The time T1 from the midpoint of the current integration I1 to the midpoint of the current integral I1 is determined by the following formula. Note that X1 is the output cycle (ms) of the pulses output by the encoder 41. X1=T1/DP1 (ms)
…■S1:1/X1 =DP1/T1
(puls/ms) …■

【0028】以上の式により求められた動体追従速度S
1の2倍速で、先ず積分間隔T1に対応する時間だけ倍
速レンズ駆動M1をすることにより、合焦用レンズ53
を合焦付近まで迅速に移動させる。その後、積分I2し
ている間は、動体追従速度S1で追従レンズ駆動M2を
行なって、被写体の移動に追従させる。
[0028] Moving object tracking speed S obtained from the above formula
By first driving the lens at double speed M1 for a time corresponding to the integration interval T1, the focusing lens 53
quickly move the camera to near focus. Thereafter, while the integration I2 is being performed, a tracking lens drive M2 is performed at a moving object tracking speed S1 to follow the movement of the object.

【0029】『動体追従速度Snの計算2』動体追従動
作中は、下記の式により動体追従速度Snを求める。先
ず、前回の積分I1の中間点から今回の積分I2の中間
点までの時間T2内に、動体追従速度S1相当のスピー
ドで被写体像が移動していたと仮定した場合の移動量に
相当するレンズ駆動パルス数MP1を下記式により求め
る。 MP1=T2×S1                
  …■
[Calculation 2 of moving object following speed Sn] During the moving object following operation, the moving object following speed Sn is calculated using the following formula. First, the lens drive corresponds to the amount of movement when it is assumed that the subject image was moving at a speed equivalent to the moving object tracking speed S1 within the time T2 from the midpoint of the previous integral I1 to the midpoint of the current integral I2. The number of pulses MP1 is determined by the following formula. MP1=T2×S1
…■

【0030】次に、前回の積分I1の中間点か
ら今回の積分I2の中間点までの時間T2と、時間T2
内の移動量に相当するパルス数MP1と今回のデフォー
カスパルス数DP2とから、動体追従速度S2が得られ
るAFパルス出力の周期X2を求め、このAFパルス出
力の周期X2から動体追従速度S2を求める。 X2=T2/(MP1+DP2)    (ms)…■
S2=1/X2             =(MP1+DP2)/T2
(パルス/ms)…■
Next, the time T2 from the midpoint of the previous integral I1 to the midpoint of the current integral I2, and the time T2
From the number of pulses MP1 corresponding to the amount of movement within and the current number of defocus pulses DP2, find the period X2 of the AF pulse output that provides the moving object tracking speed S2, and calculate the moving object tracking speed S2 from the period X2 of the AF pulse output. demand. X2=T2/(MP1+DP2) (ms)…■
S2=1/X2=(MP1+DP2)/T2
(Pulse/ms)…■

【0031】以上の式で求められた動体追従速度S2で
、演算C2に要した時間t2間、動体追従速度S2の2
倍速でレンズ駆動M2を行ない、この2倍速駆動終了後
、積分I3をおこなっている間、動体追従速度S2で追
従レンズ駆動M3を行なって被写体の移動に追従する。
[0031] With the moving object following speed S2 obtained from the above formula, during the time t2 required for calculation C2, 2 of the moving object following speed S2
Lens drive M2 is performed at double speed, and after completion of this double speed drive, while integration I3 is being performed, follow-up lens drive M3 is performed at moving object tracking speed S2 to follow the movement of the subject.

【0032】なお、この計算においてデフォーカスパル
ス数DPはスカラー量としてあるので、前ピン、後ピン
のときとで符号が変わる。したがって、行過ぎた場合は
T2時間内の移動量に相当するパルス数MP1から今回
のデフォーカスパルス数DP2を減算することになる。
Note that in this calculation, the number of defocus pulses DP is a scalar quantity, so the sign changes depending on whether it is front focus or rear focus. Therefore, if the defocusing pulse has gone too far, the current number of defocus pulses DP2 is subtracted from the number of pulses MP1 corresponding to the amount of movement within time T2.

【0033】追従の計算を一般式で表わすと、下記のよ
うになる。 MPn−1=Tn×Sn−1            
        …■Xn=Tn/(MPn−1±DP
n)    (ms)…■Sn=1/Xn      
          (パルス/ms)…■以上の■、
■、■式による演算、その演算結果に基づくレンズ駆動
および積分を繰り返すことにより、図に示した動体追従
が可能になる。なお、本実施例の計算において、計算上
の被写体像の移動パルス数MPn−1、デフォーカスパ
ルス数DPnは絶対値としているので、■式の右辺のデ
フォーカスパルス数±DPnは、手前のときにはプラス
(+)、行過ぎのときにはマイナス(−)とする。
The calculation of tracking can be expressed as a general formula as follows. MPn-1=Tn×Sn-1
...■Xn=Tn/(MPn-1±DP
n) (ms)...■Sn=1/Xn
(Pulse/ms)...■ or more ■,
The moving object tracking shown in the figure becomes possible by repeating calculations using formulas (1) and (2), lens driving and integration based on the calculation results. In addition, in the calculation of this embodiment, the number of moving pulses MPn-1 and the number of defocus pulses DPn of the calculated subject image are taken as absolute values, so the number of defocus pulses ±DPn on the right side of equation (2) is It is a plus (+), and if it goes too far, it is a minus (-).

【0034】以上のレンズ駆動において、演算終了後は
動体追従速度S1の2倍速で演算に要した時間だけレン
ズ駆動しているが、これは、レンズ駆動を停止してから
次のレンズ駆動終了までの間に被写体像が移動する量に
対応する量だけ像面を移動させるためである。つまり、
Sn×(レンズ停止時間+レンズ駆動時間)=レンズ駆
動速度×レンズ駆動時間、という関係を、より簡単な演
算により満足させるためである。したがって、上記式を
満足すれば、他の動体追従速度でレンズ駆動を行なって
もよい。
In the above lens driving, after the calculation is completed, the lens is driven at twice the moving object tracking speed S1 for the time required for the calculation, but this is from the time when lens driving is stopped until the next lens driving is completed. This is to move the image plane by an amount corresponding to the amount by which the subject image moves during that time. In other words,
This is to satisfy the relationship Sn×(lens stop time+lens drive time)=lens drive speed×lens drive time with a simpler calculation. Therefore, as long as the above formula is satisfied, the lens may be driven at other moving object tracking speeds.

【0035】『レリーズスイッチオン時の処理』動体予
測AF処理中にレリーズスイッチがオンされたときの動
作について、図6を参照して説明する。
``Processing when the release switch is turned on'' The operation when the release switch is turned on during the moving object predictive AF process will be described with reference to FIG.

【0036】一般に一眼レフカメラは、レリーズスイッ
チがオンされてからミラーがアップするので、レリーズ
スイッチオンから実際にフィルムに露光されるまでに所
定の時間がかかる。これをレリーズタイムラグRTLと
いう。したがって、被写体が動体のときには、レリーズ
スイッチSWRがオンされてから露光開始時までの間も
被写体が移動するするので(レリーズタイムラグRTL
の間)、追従レンズ駆動を継続することが望ましい。
Generally, in a single-lens reflex camera, the mirror is raised after the release switch is turned on, so it takes a certain amount of time from when the release switch is turned on until the film is actually exposed. This is called release time lag RTL. Therefore, when the subject is moving, the subject moves from the time the release switch SWR is turned on until the start of exposure (release time lag RTL
), it is desirable to continue driving the tracking lens.

【0037】そこで本実施例では、演算終了時にレリー
ズスイッチSWRがオンされたかどうかをチェックし、
オンされていたときには、演算時間t3+レリーズタイ
ムラグRTL相当時間、動体追従速度S3の2部速でレ
ンズ駆動M3を行ない、レリーズタムラグRTL分、合
焦用レンズ53を先回りさせる。
Therefore, in this embodiment, it is checked whether the release switch SWR is turned on at the end of the calculation, and
When it is turned on, the lens drive M3 is performed at two speeds of the moving object tracking speed S3 for a time corresponding to the calculation time t3+release time lag RTL, and the focusing lens 53 is advanced by the release time lag RTL.

【0038】2倍速追従レンズ駆動M3が終了すると、
測光演算およびミラーアップ処理を行ない、絞りを演算
で求めた値に絞込、演算で得られたシャッタ速度でシャ
ッター機構25を駆動する。
When the double speed tracking lens drive M3 is completed,
A photometric calculation and a mirror up process are performed, the aperture is narrowed down to the value obtained by the calculation, and the shutter mechanism 25 is driven at the shutter speed obtained by the calculation.

【0039】以上は被写体が近づいてくるくるときの処
理であるが、被写体が遠ざかっているときに先回りしす
ぎると、いわゆる後ピンになってしまう。被写界深度は
、合焦点よりも近距離側が浅いので、後ピンよりも前ピ
ンの方がよい。しかも、被写体が遠ざかる場合、被写体
移動速度が一定のときには、像面移動速度が暫時遅くな
る。
The above is the processing when the subject is approaching, but if you are too proactive when the subject is moving away, you will end up with so-called rear focus. The depth of field is shallower on the near side than the focal point, so it is better to focus on the front than on the back. Moreover, when the subject moves away, the image plane movement speed becomes slower for a while when the object movement speed is constant.

【0040】そこで本実施例では、被写体が遠ざかると
きは、被写体が接近するときの半分の時間だけ倍速レン
ズ駆動する構成にしてある。図7においては、演算C4
に要した演算時間t4+レリーズタイムラグRTL相当
時間の半分の時間だけ、被写体追従速度S3の倍速でレ
ンズ駆動を行なっている。
Therefore, in this embodiment, when the subject is moving away, the double-speed lens is driven for half the time as when the subject is approaching. In FIG. 7, operation C4
The lens is driven at a speed twice the subject tracking speed S3 for a period of time that is half of the calculation time t4 + the time corresponding to the release time lag RTL.

【0041】『メイン処理』次に、本実施例の動作につ
いて、図8ないし図15に示したフローチャートを参照
してより詳細に説明する。これらの処理は、メインCP
U35の内部ROM35aにメモリされたプログラムに
基づいてメインCPU35により実行される。また、上
記演算に必要なパラメータなどは、E2PROM47に
メモリされている。
"Main Processing" Next, the operation of this embodiment will be explained in more detail with reference to the flowcharts shown in FIGS. 8 to 15. These processes are performed by the main CP
It is executed by the main CPU 35 based on a program stored in the internal ROM 35a of the U 35. Further, parameters necessary for the above calculation are stored in the E2PROM 47.

【0042】図8はメインCPU35のメイン処理に関
するルーチンである。メインスイッチSWMがオンされ
るとこの処理に入り、ステップ(以下「S」と略す)1
01において先ず各ポート、メモリなどシステムをイニ
シャライズする。次に、パワーダウン処理を行なって不
要な電力消費を無くし、測光スイッチSWSがオンして
いるかどうかをチェックし、測光スイッチSWSがオン
するまでパワーダウン処理、チェック処理を繰り返す(
S103、S105)。
FIG. 8 shows a routine related to main processing by the main CPU 35. When the main switch SWM is turned on, this process begins, and step (hereinafter abbreviated as "S") 1
01, the system including each port and memory is initialized. Next, perform power down processing to eliminate unnecessary power consumption, check whether the photometry switch SWS is on, and repeat the power down processing and check processing until the photometry switch SWS is turned on (
S103, S105).

【0043】測光スイッチSWSがオンされたら、基準
タイマ35cをスタートさせ、AFスイッチSWAFな
どのスイッチ状態をチェックし、レンズCPU61との
間でレンズ通信を行なって開放絞り値、最大絞り値、焦
点距離およびKバリューデータを入力する(S107、
S109、S111)。なお、Kバリューデータとは、
撮影レンズ51により結像された被写体像面を単位長移
動させるのに必要なエンコーダ41のパルス数(AFモ
ータ39の回転量)である。
When the photometry switch SWS is turned on, the reference timer 35c is started, the switch status of the AF switch SWAF, etc. is checked, and lens communication is performed with the lens CPU 61 to determine the open aperture value, maximum aperture value, and focal length. and input K value data (S107,
S109, S111). Furthermore, what is K value data?
This is the number of pulses of the encoder 41 (amount of rotation of the AF motor 39) necessary to move the image plane of the subject imaged by the photographing lens 51 by a unit length.

【0044】そして、測光用IC17から測光データを
入力して、このデータ、フィルム感度等に基づいて所定
のアルゴリズムによりシャッタ速度および絞り値を算出
し、算出したシャッタ速度および絞り値および他の撮影
データを表示装置45に表示する(S113、S115
)。
Then, photometry data is input from the photometry IC 17, and a shutter speed and aperture value are calculated by a predetermined algorithm based on this data, film sensitivity, etc., and the calculated shutter speed and aperture value and other photographic data are calculated. is displayed on the display device 45 (S113, S115
).

【0045】次に、AF処理を行ない、所定のループ時
間が経過したかどうかをチェックし、ループ時間が経過
するまでAF処理を繰り返す(S117、S119)。 ループ時間が経過するとS109に戻り、S109〜S
119のループ処理を繰り返す。
Next, AF processing is performed, it is checked whether a predetermined loop time has elapsed, and the AF processing is repeated until the loop time has elapsed (S117, S119). When the loop time has elapsed, the process returns to S109, and S109-S
119 loop processing is repeated.

【0046】また、このループ処理を繰り返している間
に、基準タイマ35cがタイムアップする毎に、図9の
基準タイマ割込み処理を行なう。この基準タイマ割込み
処理において、各種の処理を実行する。この割込み処理
では、ループ時間をカウントしてから、測光スイッチS
WSおよびレリーズスイッチSWRの状態を入力する(
S121、S123)。レリーズスイッチSWRがオフ
しているとき、あるいはレリーズスイッチSWRはオン
しているがレリーズ許可が出ていないとき、例えば合焦
していないときには割込み前のステップに戻る(S12
5、S127)。
Further, while repeating this loop processing, the reference timer interrupt processing shown in FIG. 9 is performed every time the reference timer 35c times out. In this reference timer interrupt process, various processes are executed. In this interrupt processing, after counting the loop time, the photometry switch S
Input the status of WS and release switch SWR (
S121, S123). When the release switch SWR is off, or when the release switch SWR is on but release permission has not been issued, for example when the focus is not in focus, the process returns to the step before the interrupt (S12
5, S127).

【0047】レリーズスイッチSWRがオンし、かつレ
リーズ許可が出ているときにはレリーズ処理に入る。レ
リーズ処理では、先ずミラーモータ31を起動してミラ
ーアップ処理を行なうとともに、絞り機構27を起動し
て絞りをS113で算出した値まで絞り込む(S131
、S133)。
When the release switch SWR is turned on and release permission is issued, release processing begins. In the release process, the mirror motor 31 is first activated to perform mirror-up processing, and the aperture mechanism 27 is activated to narrow down the aperture to the value calculated in S113 (S131
, S133).

【0048】ミラーアップが完了するまで待ち、ミラー
アップが完了したらS113で算出したシャッタ速度で
シャッター機構25を駆動して露光する(S135、S
137)。露光が終了したら、ミラーモータ31を起動
してミラーダウン処理およびフィルム巻上げモータ33
を起動してフィルムを1コマ分巻上げ、S107に戻る
(S139)。
Wait until the mirror up is completed, and when the mirror up is completed, the shutter mechanism 25 is driven at the shutter speed calculated in S113 to perform exposure (S135,
137). When the exposure is completed, the mirror motor 31 is started to perform mirror down processing and the film winding motor 33 is started.
is activated to wind the film by one frame and return to S107 (S139).

【0049】『AF処理』次に、本実施例のAF処理に
ついて、図10〜図13を参照して説明する。先ず、フ
ォーカスモードがAFモードかMF(マニュアルフォー
カス)モードかをチェックし、MFモードであればS2
11にジャンプする(S201)。なお、AFモードと
は、自動焦点調節を行なうモードであり、MFモードと
は、撮影者が焦点調節を行なうモードである。
"AF Processing" Next, the AF processing of this embodiment will be explained with reference to FIGS. 10 to 13. First, check whether the focus mode is AF mode or MF (manual focus) mode, and if it is MF mode, select S2.
11 (S201). Note that the AF mode is a mode in which automatic focus adjustment is performed, and the MF mode is a mode in which the photographer performs focus adjustment.

【0050】AFモードで最初にAF処理に入ったとき
はは積分処理行なっていないのでFロック状態でなく非
合焦(IN  FOCUSフラグが“0”)であり、か
つ再積分フラグもクリアされているのでS211に進む
(S205、S209)。2回目以降の処理において、
AFロック状態ならばAFロック処理にジャンプし、A
Fロック状態でない場合は、合焦していれば、つまり一
度合焦後所定時間待った後では、AFロックフラグを立
てて再積分処理へ進む(S203、S205、S207
)。2回目以降は、再積分フラグが立っているので再積
分処理へ進む(S209)。
When AF processing is first entered in AF mode, integration processing is not being performed, so the F-lock state is not present, the focus is out of focus (IN FOCUS flag is "0"), and the re-integration flag is also cleared. Therefore, the process advances to S211 (S205, S209). In the second and subsequent processing,
If the AF is locked, jump to AF lock processing and
If it is not in the AF lock state, if it is in focus, that is, after waiting a predetermined time after focusing, the AF lock flag is set and the process proceeds to reintegration processing (S203, S205, S207
). From the second time onwards, since the reintegration flag is set, the process proceeds to reintegration processing (S209).

【0051】AF処理1回目のとき、あるいはマニュア
ルフォーカスモードのときにはS211に進む(S20
1、S203、S205、S209)。S211では、
AFで作動中であるかどうか、S213ではMFで作動
中であるかどうかをチェックする。AF作動中(AF1
回目)であればS231に進み、AF作動中ではなく、
かつMF作動中であれば、測距処理およば合焦、非合焦
表示処理を行なう(S215〜S227)。
When the AF process is performed for the first time or in manual focus mode, the process advances to S211 (S20
1, S203, S205, S209). In S211,
In step S213, it is checked whether AF is in operation, and in S213 it is checked whether MF is in operation. AF in operation (AF1
If it is the second time), proceed to S231, and if the AF is not in operation,
If the MF is in operation, distance measurement processing and focus/non-focus display processing are performed (S215 to S227).

【0052】S215では積分および演算処理を行ない
、次にその演算結果が有効であるかどうかをチェックす
る(S217)。演算結果が有効の場合には、合焦して
いれば合焦表示処理、表示装置45の合焦表示用LED
(図示せず)を点灯し、さらに電子ブザー46により合
焦した旨を知らせる音を発する処理、を行なうが、合焦
していなければ上合焦表示処理は行なわない(S219
)。さらに、被写体がローコントラストで非合焦1回目
の処理のときにはS229にジャンプし、違えば合焦し
ているかどうかをチェックする(S221、S223)
。ここで、合焦していればAF時レリーズ許可フラグを
セットしてS229に進み(S223、S225)、合
焦していなければ二次合焦幅をセットし、合焦、レリー
ズ許可およびAFロックフラグをクリアし、表示装置4
5の合焦表示をオフおよび電子ブザー46をオフしてS
229に進む(S223、S227)。
In S215, integration and arithmetic processing are performed, and then it is checked whether the result of the arithmetic operation is valid (S217). If the calculation result is valid, in-focus display processing is performed, and the focus display LED of the display device 45 is activated.
(not shown) and further emit a sound from the electronic buzzer 46 to notify that the camera is in focus. However, if the camera is not in focus, the upper focus display process is not performed (S219).
). Furthermore, if the subject is low contrast and the process is out of focus for the first time, the process jumps to S229, and if not, it is checked whether the subject is in focus (S221, S223)
. Here, if in focus, set the AF release permission flag and proceed to S229 (S223, S225); if not in focus, set the secondary focus width, focus, release permission, and lock AF. Clear flag and display device 4
5, turn off the focus display and turn off the electronic buzzer 46.
The process advances to 229 (S223, S227).

【0053】演算結果が無効の場合も二次合焦幅をクリ
アし、合焦、レリーズ許可およびAFロックフラグをク
リアし、表示装置45の合焦表示および電子ブザー46
をオフしてS229に進む(S217、S227)。S
229では、ループ時間をチェックし、ループ時間が経
過していなければS211に戻つて以上の処理を繰り返
し、経過したらメインルーチンのS109に戻る。
Even if the calculation result is invalid, the secondary focus width is cleared, the focus, release permission and AF lock flags are cleared, and the focus display on the display device 45 and the electronic buzzer 46 are cleared.
is turned off and the process proceeds to S229 (S217, S227). S
In step 229, the loop time is checked, and if the loop time has not elapsed, the process returns to S211 to repeat the above processing, and if the loop time has elapsed, the process returns to S109 of the main routine.

【0054】S211のチェック時にAF作動中であれ
ば、S231に進んでAF処理に入る。S231では、
積分、演算処理を行なう。そして、演算結果が有効であ
るかどうかをチェックし、有効であれば合焦チェック処
理へ飛ぶ(S233)。有効な演算結果が得られていな
ければ、補肋発光モードであるかどうかをチェックする
。なお補助投光モードとは、被写体輝度が一定値よりも
低いときに、被写体に対して補助投光器(図示せず)か
ら補助光(縞パターン)を投光するモードである。補助
投光モードであれば動体追従が困難なので、動体予測モ
ード禁止フラグを立てる(S237)。そして、補助光
を投光して積分、演算を行ない、さらに演算結果のチェ
ックを行なって、演算結果が有効であれば合焦チェック
処理に進み、有効でなければS243に進む(S239
、S241)。また、補助投光モードでなければ、上記
S237〜S241をジャンプしてS243に進む。
[0054] If the AF is in operation at the time of the check in S211, the process advances to S231 to enter AF processing. In S231,
Performs integration and calculation processing. Then, it is checked whether the calculation result is valid, and if it is valid, the process jumps to focus check processing (S233). If a valid calculation result is not obtained, it is checked whether the supplementary rib light emission mode is in effect. Note that the auxiliary light projection mode is a mode in which auxiliary light (a striped pattern) is projected onto the subject from an auxiliary light projector (not shown) when the subject brightness is lower than a certain value. Since it is difficult to follow a moving object in the auxiliary light projection mode, a moving object prediction mode prohibition flag is set (S237). Then, the auxiliary light is emitted to perform integration and calculations, and the calculation results are checked. If the calculation results are valid, the process proceeds to focus check processing; if not, the process proceeds to S243 (S239
, S241). If it is not the auxiliary light projection mode, the process jumps from S237 to S241 and proceeds to S243.

【0055】S243では、演算結果が得られないので
、AFモータ39をDC駆動しながら、合焦地点を検出
するためのサーチ積分および演算を行ない(S245)
、その演算結果が有効かどうかをチェックして、有効で
なければサーチ積分および演算を再度実行し、有効であ
れば駆動方向チェック処理に飛ぶ(S245、S247
)。
Since no calculation result is obtained in S243, search integration and calculation are performed to detect the in-focus point while DC driving the AF motor 39 (S245).
, checks whether the calculation result is valid, and if it is not valid, executes the search integration and calculation again, and if it is valid, jumps to the driving direction check process (S245, S247
).

【0056】『再積分、合焦チェック処理』次に、再積
分、合焦チェック処理に関するサブルーチンについて、
図11Aおよび図11Bを参照して説明する。
"Re-integration and focus check processing" Next, regarding the subroutine regarding reintegration and focus check processing,
This will be explained with reference to FIGS. 11A and 11B.

【0057】再積分処理は、2回目以降の積分処理であ
る。再積分処理では、先ず、再積分フラグを立ててから
積分およびデフォーカス量算出処理を行なう(S251
、S253)。そして、デフォーカス量の演算結果が無
効のときはAFNG処理に飛び、有効のときには合焦チ
ェックに進む(S255)。
The reintegration process is the second and subsequent integration process. In the reintegration process, first, a reintegration flag is set, and then integration and defocus amount calculation processing are performed (S251
, S253). Then, when the calculation result of the defocus amount is invalid, the process jumps to AFNG processing, and when it is valid, the process goes to focus check (S255).

【0058】合焦チェック処理では、合焦しているかど
うかをチェックし、合焦していれば表示装置45の合焦
表示用LEDを点灯および電子ブザー46を作動させる
が、合焦していなければ何もしない(S261)。
In the focus check process, it is checked whether or not the camera is in focus. If it is in focus, the focus display LED of the display device 45 is turned on and the electronic buzzer 46 is activated, but it is necessary that the camera is in focus. Otherwise, nothing is done (S261).

【0059】次に、ローコントラスト時の非合焦1回目
かどうかをチェックし、1回目であればS251に戻っ
て上記積分等の処理を繰り返し、ローコン時非合焦1回
目でなく合焦しており、かつ動体予測モードに入ってい
なければ、AF時レリーズ許可フラグを立てる(S26
3、S265、S267、S269)。そして、AFロ
ック状態でなければ(AFロックフラグが立っていなけ
れば)、つまり合焦して1回目の処理のときにはAFロ
ックフラグを立てるが、すでに立っていれば合焦後2回
目以降の処理なのでAFロック処理(S283)に飛ぶ
(S271、S273)。
Next, it is checked whether this is the first out-of-focus time during low contrast, and if it is the first time, the process returns to S251 and the above-mentioned processing such as integration is repeated. and is not in moving object prediction mode, sets a release permission flag during AF (S26
3, S265, S267, S269). If the AF lock flag is not in the AF lock state (if the AF lock flag is not set), that is, the AF lock flag will be set during the first processing after focusing, but if it is already set, the AF lock flag will be set during the second processing after focusing. Therefore, the process jumps to AF lock processing (S283) (S271, S273).

【0060】S273でAFロックフラグを立てると、
被写体がハイコントラストかつ動体予測禁止フラグが下
りていることを条件に、所定時間、レリーズ割込みが入
るのを待ち、所定時間内にレリーズ割込みが入らなけれ
ば、AF時レリーズ許可フラグをクリアしてレリーズを
禁止し、AFロックフラグをクリアしてAF処理を可能
にする(S275、S277、S279、S281)。 そして、AFロック処理に入り、ループ時間が経過する
のを待って、ループ時間が経過したらメインルーチンの
S109に戻る(S283)。なお、AFロック処理は
、測光スイッチSWSがオンの間はAF動作を行なわな
い処理である。被写体がハイコントラストでないか、動
体予測禁止フラグが立っていれば、ウエイト処理を行な
わずにAFロック処理に進む(S275、S277、S
283)。
When the AF lock flag is set in S273,
Provided that the subject has high contrast and the moving object prediction prohibition flag is down, wait for a release interrupt for a specified period of time, and if no release interrupt occurs within the specified period of time, clear the AF release permission flag and release the camera. and clears the AF lock flag to enable AF processing (S275, S277, S279, S281). Then, AF lock processing is started, and the loop time is waited for to elapse. When the loop time has elapsed, the process returns to S109 of the main routine (S283). Note that the AF lock process is a process in which the AF operation is not performed while the photometry switch SWS is on. If the subject is not of high contrast or if the moving object prediction prohibition flag is set, proceed to AF lock processing without performing wait processing (S275, S277, S
283).

【0061】また、S265の合焦チェック処理におい
て、非合焦であれば、S285に飛んで、動体予測モー
ドであるかどうかをチェックする。ここで動体予測モー
ドに入っていなければ、S301の動体チェック処理に
進み、動体予測モードに入っていればS321に進む(
S285)。
Further, in the focus check process of S265, if the camera is out of focus, the process jumps to S285, and it is checked whether or not the moving object prediction mode is set. If the moving object prediction mode is not entered here, the process proceeds to the moving object check process in S301, and if the moving object prediction mode is entered, the process proceeds to S321 (
S285).

【0062】この動体チェック処理は、被写体が動体で
あるかどうかを確認するために行なう処理である(図2
、3参照)。動体チェック処理では、先ず、2次合焦幅
、合焦、レリーズ許可およびAFロックの各フラグをク
リアし、表示装置45の合焦表示用LEDおよび電子ブ
ザー46をオフする(S301)。
This moving object check process is a process performed to confirm whether the subject is a moving object (see FIG. 2).
, 3). In the moving object check process, first, the secondary focus width, focus, release permission, and AF lock flags are cleared, and the focus display LED of the display device 45 and the electronic buzzer 46 are turned off (S301).

【0063】次に、再積分フラグをチェックし、再積分
フラグがクリアされていれば1回目の処理なのでパルス
計算処理に飛び、立っていれば、前回のレンズ駆動方向
と今回のレンズ駆動方向とを比較する(S303、S3
05)。同方向であれば、ハイコントラストかつ動体禁
止フラグがクリアされていることを条件に、動体判断用
カウンタを1デクリメントする(S307、S309、
S311、S313)。なお、動体判断用カウンタの初
期値は“3”にセットしてある。同方向でないとき、ハ
イコントラストでないとき、あるいは動体予測禁止のと
きには上記カウント処理を行なわずにそのままパルス計
算処理に飛ぶ(S307、S309、S311)。
Next, check the reintegration flag. If the reintegration flag is cleared, it is the first processing, so the process jumps to pulse calculation processing. If it is set, the previous lens driving direction and the current lens driving direction are Compare (S303, S3
05). If they are in the same direction, the moving object determination counter is decremented by 1 on the condition that the contrast is high and the moving object prohibition flag is cleared (S307, S309,
S311, S313). Note that the initial value of the moving object determination counter is set to "3". When the directions are not the same, when the contrast is not high, or when moving object prediction is prohibited, the process directly jumps to the pulse calculation process without performing the above counting process (S307, S309, S311).

【0064】動体判断用カウンタをデクリメントしたと
きは、そのカウンタ値をチェックし、0であれば動体予
測モードフラグを立てて、動体判断用カウンタを再設定
(本実施例では3に設定)してからパルス計算処理に進
む(S315、S317、S319)。カウンタ値が0
でなければそのままパルス計算処理に進む(S315)
When the moving object judgment counter is decremented, the counter value is checked, and if it is 0, the moving object prediction mode flag is set and the moving object judgment counter is reset (set to 3 in this embodiment). The process then proceeds to pulse calculation processing (S315, S317, S319). Counter value is 0
Otherwise, proceed directly to pulse calculation processing (S315)
.

【0065】S285の動体予測モードチェックの際に
すでに動体予測モードに入っていれば、合焦フラグ、レ
リーズ許可フラグおよびAFロックフラグをクリアし、
表示装置45の合焦表示用LEDおよび電子ブザー46
をオフする(S321)。
If the moving object prediction mode is already in the moving object prediction mode when checking the moving object prediction mode in S285, the focus flag, release permission flag, and AF lock flag are cleared;
Focus display LED of display device 45 and electronic buzzer 46
is turned off (S321).

【0066】次に、S253における積分結果に基づい
てデフォーカスパルス数の計算を行なう(S323)。 なお、このデフォーカスパルス数は、積分時間の中間点
における被写体に対する値となる。
Next, the number of defocus pulses is calculated based on the integration result in S253 (S323). Note that this number of defocus pulses is a value for the subject at the midpoint of the integration time.

【0067】そして、計算上の被写体の移動パルス数、
今回のデフォーカスパルス数および積分中間点間の時間
に基づいて被写体像の移動スピード(動体追従速度)計
算を行ない、計算が終了したら動体追従中であることを
識別する動体追従中フラグを立てる(S325、S32
7)。そして、デフォーカスパルス数をカウンタ35d
にセットし、AFモータ一定速度制御をスタートし、一
定速度制御処理に飛ぶ(S329、S331)。
[0067] Then, the calculated number of movement pulses of the object,
The moving speed of the subject image (moving object tracking speed) is calculated based on the current number of defocus pulses and the time between the integration intermediate points, and when the calculation is completed, a moving object tracking flag is set to identify that the moving object is being tracked ( S325, S32
7). Then, the number of defocus pulses is counted by counter 35d.
, starts AF motor constant speed control, and jumps to constant speed control processing (S329, S331).

【0068】また、前記合焦チェック処理におけるS2
67の動体予測モードチェックにおいて、合焦範囲内で
、すでに動体予測モードに入っていれば、上記S323
に入る。
[0068] Also, S2 in the focus check process
In the moving object prediction mode check in step 67, if the moving object prediction mode is already in the focusing range, the above S323
to go into.

【0069】『パルス計算、バックラッシュ駆動』次に
、図12Aおよび図12Bを参照してパルス計算および
バックラッシュ駆動について説明する。パルス計算処理
とは、デフォーカス量に基づいたパルス量およびバック
ラッシュとりのためのパルス量を計算する処理である。 バックラッシュ駆動とは、AFモータ39の駆動方向が
変化したときなどに、AFモータ39の内蔵ギヤ、ジョ
イント47、57およびレンズ駆動機構55におけるバ
ックラッシュをとるための駆動をいう。本実施例では、
バックラッシュ駆動を、デフォーカス量に基づく駆動の
前に、別個に実行している。
"Pulse Calculation and Backlash Driving" Next, pulse calculation and backlash driving will be explained with reference to FIGS. 12A and 12B. The pulse calculation process is a process of calculating a pulse amount based on the defocus amount and a pulse amount for eliminating backlash. Backlash drive refers to a drive for eliminating backlash in the built-in gears, joints 47 and 57, and lens drive mechanism 55 of the AF motor 39 when the drive direction of the AF motor 39 changes. In this example,
Backlash driving is performed separately before driving based on the defocus amount.

【0070】パルス計算処理では、先ずデフォーカスパ
ルス量を演算し、さらに、駆動方向が前回と変わったと
きにはバックラッシュパルス数を計算し、バックラッシ
ュ駆動フラグを立てる(S351、S353)。バック
ラッシュパルス量とは、バックラッシュをとるのに必要
なパルス数および回転方向である。カメラボディ11の
バックラッシュ量はあらかじめE2PROM43にメモ
リされていて、撮影レンズ51のバックラッシュ量はレ
ンズCPU61のROMにメモリされていて、レンズ通
信により周辺部制御用回路23を介して、メインCPU
35のRAM35bにメモリされる。
In the pulse calculation process, first the amount of defocus pulses is calculated, and further, when the driving direction changes from the previous time, the number of backlash pulses is calculated and a backlash drive flag is set (S351, S353). The amount of backlash pulses is the number of pulses and rotation direction necessary to eliminate backlash. The backlash amount of the camera body 11 is stored in advance in the E2PROM 43, and the backlash amount of the photographic lens 51 is stored in the ROM of the lens CPU 61.
35 RAM 35b.

【0071】次に、バックラッシュ駆動フラグが立って
いないときにはデフォーカスパルス数を、立っていると
きにはバックラッシュパルス数をAFパルス数としてカ
ウンタにセットして、AFモータ39のDC駆動を開始
する(S355、S357)。なお、本実施例のDC駆
動とは、AFモータ39をほぼ直流で駆動することを意
昧するが。
Next, when the backlash drive flag is not set, the number of defocus pulses is set in the counter, and when it is set, the number of backlash pulses is set as the number of AF pulses in the counter, and DC drive of the AF motor 39 is started ( S355, S357). Note that the DC drive in this embodiment means that the AF motor 39 is driven by substantially direct current.

【0072】バックラッシュ駆動でなく(バックラッシ
ュ駆動フラグがクリアされているとき)、しかも動体予
測モードでないとき(動体予測モードフラグがクリアさ
れているとき)には、カウンタのカウント値と所定パル
ス数とを比較し、カウント値の方が大きいときには動体
予測モードフラグをクリアし、オーバーラップ積分をス
タートしてデフォーカスパルス量を算出する(S369
)。なお、オーバーラップ積分とは、レンズ駆動しなが
ら積分を実行する処理をいう。
When not in backlash drive (when the backlash drive flag is cleared) and when not in moving object prediction mode (when the moving object prediction mode flag is cleared), the count value of the counter and the predetermined number of pulses When the count value is larger, the moving object prediction mode flag is cleared, overlap integration is started, and the defocus pulse amount is calculated (S369).
). Note that overlap integration refers to a process of performing integration while driving the lens.

【0073】デフォーカスパルス数が求まったら、デフ
ォーカスパルス数が有効であるかどうかをチェックして
、無効であればS363に戻り、有効であれば駆動方向
チェック処理(S373)に進む(S371)。
Once the number of defocus pulses is determined, it is checked whether the number of defocus pulses is valid or not. If invalid, the process returns to S363, and if valid, the process proceeds to drive direction check processing (S373) (S371). .

【0074】駆動方向チェック処理では、デフォーカス
量からピント位置が被写体像位置よりも手前で、かつ所
定の範囲内かどうか、つまり所定の範囲以上行き過ぎて
いないかどうかをチェックする(S373、S375)
。そして、デフォーカス量が所定の範囲内に納まってい
れば、S369で算出したデフォーカス量に基づいてデ
フォーカスパルス数を算出し、カウンタにセットしてS
363に戻る(S375、S377)。行き過ぎのとき
には、AFモータ39にブレーキをかけてレンズ駆動を
停止し、再積分処理に戻る(S375、S379)。な
お、AFモータ39のブレーキとは、本実施例ではAF
モータ39の入力端子を短絡させることをいう。
In the drive direction check process, it is checked based on the defocus amount whether the focus position is in front of the subject image position and within a predetermined range, that is, whether it has gone beyond the predetermined range (S373, S375).
. If the defocus amount is within a predetermined range, the number of defocus pulses is calculated based on the defocus amount calculated in S369, and the number of defocus pulses is set in a counter.
363 (S375, S377). If it has gone too far, the AF motor 39 is braked to stop the lens drive, and the process returns to the reintegration process (S375, S379). Note that the brake of the AF motor 39 refers to the brake of the AF motor 39 in this embodiment.
This means short-circuiting the input terminals of the motor 39.

【0075】また、バックラッシュ駆動の必要があると
き、動体予測モードに入っているとき、あるいはカウン
タ値が所定パルスよりも小さいときは、AFパルスカウ
ンタ値と所定のパルス数とを比較してAFカウンタ値が
減速所定パルス数以下になるまで待つ(S359〜S3
65、S381、S383)。
In addition, when backlash drive is necessary, when the moving object prediction mode is entered, or when the counter value is smaller than a predetermined pulse number, the AF pulse counter value and the predetermined number of pulses are compared and the AF Wait until the counter value becomes equal to or less than the predetermined number of deceleration pulses (S359 to S3
65, S381, S383).

【0076】AFパルスカウンタ値が減速所定パルス数
未満になると、バックラッシュ駆動でないときにはAF
モータ39にブレーキをかけてから一定速制御処理に飛
ぶ(S385、S387)。
When the AF pulse counter value becomes less than the predetermined number of deceleration pulses, the AF
After applying the brake to the motor 39, the process jumps to constant speed control processing (S385, S387).

【0077】バックラッシュ駆動のときには、AFパル
ス数と所定パルス数を比較し、AFパルス数が所定パル
ス未満のときには、AFモータ39にブレーキをかけて
一定速度制御処理に進む(S389、S391、S38
7)。そして、一定速度制御によりバックラッシュとり
駆動を行なう。
During backlash drive, the number of AF pulses is compared with a predetermined number of pulses, and if the number of AF pulses is less than the predetermined pulse, the AF motor 39 is braked and the process proceeds to constant speed control processing (S389, S391, S38
7). Then, backlash elimination driving is performed by constant speed control.

【0078】AFパルス数が所定パルス数以上のときに
は、バックラッシュとりのためのDC駆動が終了するま
で待つ。そして、このDC駆動が終了したら、AFモー
タ39にブレーキをかけて、バックラッシュ駆動フラグ
をクリアしてバックラッシュ駆動を終了し、S355に
戻る(S391、S393、S395、S397)。そ
して、今度はデフォーカスパルス数をAFパルスカウン
タにセットして、通常のAF処理のためのレンズ駆動処
理を行なう。
When the number of AF pulses is equal to or greater than the predetermined number of pulses, the process waits until the DC drive for eliminating backlash is completed. When this DC drive is finished, the AF motor 39 is braked, the backlash drive flag is cleared, the backlash drive is finished, and the process returns to S355 (S391, S393, S395, S397). Next, the number of defocus pulses is set in the AF pulse counter, and lens driving processing for normal AF processing is performed.

【0079】以上の処理により、バックラッシュ分の駆
動がデフォーカス分の駆動の前に実行される。しかも、
バックラッシュ分の駆動量が所定値よりも大きいときに
は、DC駆動により短時間で実行され、所定値よりも小
さいときには、一定速度制御により行き過ぎることのな
い正確な駆動が行なわれる。
With the above processing, backlash driving is executed before defocus driving. Moreover,
When the drive amount for backlash is larger than a predetermined value, DC driving is performed in a short time, and when it is smaller than a predetermined value, constant speed control is used to perform accurate driving without overshooting.

【0080】『一定速度制御』一定速度制御処理につい
て、図13A、図13Bに示した一定速度制御処理に基
づいて説明する。一定速度制御処理とは、AFモータ3
9を一定の速度で駆動する処理であって、本実施例では
、メインCPU35がエンコーダ41から出力されるパ
ルスの間隔に基づいてAFモータ39を所定の一定速度
で駆動制御する。本実施例では、被写体像移動速度Sま
たはその2倍速でAFモータ39を定速度駆動する。
"Constant Speed Control" The constant speed control process will be explained based on the constant speed control process shown in FIGS. 13A and 13B. Constant speed control processing means that the AF motor 3
In this embodiment, the main CPU 35 drives the AF motor 39 at a predetermined constant speed based on the interval of pulses output from the encoder 41. In this embodiment, the AF motor 39 is driven at a constant speed at the subject image moving speed S or twice that speed.

【0081】一定速度制御処理では、先ず、通常処理の
一定速度制御スピードをセットする(S401)。次に
、動体追従中かどうかをチェックして、動体追従中であ
れば、一定速度制御スピードSnの2倍速2Snをセッ
トする(S403、S405)。積分中であれば、動体
追従スピードで追従するために一定速度制御スピードS
nをセットしてからS411に進むが、積分中でなけれ
ばそのままS411に進む(S407、S409)。
In the constant speed control process, first, the constant speed control speed of the normal process is set (S401). Next, it is checked whether the moving object is being followed, and if the moving object is being followed, the constant speed control speed Sn is set to double speed 2Sn (S403, S405). If integration is in progress, constant speed control speed S is applied to follow the moving object at the following speed.
After setting n, the process proceeds to S411, but if integration is not in progress, the process directly proceeds to S411 (S407, S409).

【0082】S411では、積分中かつ動体追従中であ
るかどうかをチェックし、積分かつ動体追従中であれば
積分終了をチェックするためにS459へ飛び、積分中
でないか、あるいは動体追従駆動中でなければS413
に進む(S411)。
[0082] In S411, it is checked whether integration is in progress and moving object tracking is in progress. If integration is in progress and moving object tracking is in progress, the process jumps to S459 to check whether the integration has ended; If not, S413
The process proceeds to (S411).

【0083】S413では、一定速度制御時間が経過し
たかどうかをチェックし、経過していれば端点に達した
かどうかのチェック処理(S415)に進み、経過して
いなければS421に進む。S421では、エンコーダ
41からAFパルスが出力されているかどうかをチェッ
クし、AFパルスが出力されていなければS411に戻
り、出力されていればS423に進む。
[0083] In S413, it is checked whether the constant speed control time has elapsed or not. If it has elapsed, the process proceeds to check whether the end point has been reached (S415), and if it has not elapsed, the process proceeds to S421. In S421, it is checked whether the AF pulse is being outputted from the encoder 41. If the AF pulse is not being outputted, the process returns to S411, and if it is being outputted, the process proceeds to S423.

【0084】S423では、パルスカウントが終了した
か、または動体追従の駆動時間が終了したかどうかをチ
ェックする。そして、いずれかが終了していればブレー
キ処理に進み、いずれも終了していなければ端点チェッ
ク処理に進む(S423、S437、S425)。
[0084] In S423, it is checked whether the pulse count has ended or the driving time for moving object tracking has ended. Then, if any of them has been completed, the process proceeds to brake processing, and if none of them have been completed, the process proceeds to end point check processing (S423, S437, S425).

【0085】S425では、合焦用レンズ53が端点に
達したかどうかのチェック、および端点検出タイマの再
設定処理を行なう。そして、減速処理のために、AFパ
ルスカウンタのカウント値が速度切換えパルス数よりも
小さくなったかどうかをチェックし、小さくなったとき
には駆動速度を低速に切換え、その後AFモータ39に
ブレーキをかけてからS433に進む(S427、S4
29、S431)。S433ではAFモータ39が駆動
中かどうかをチェックし、駆動中であればAFモータ3
9にブレーキをかけてからS401に戻り、駆動中でな
ければそのままS401に戻る。
In S425, it is checked whether the focusing lens 53 has reached the end point, and the end point detection timer is reset. Then, for deceleration processing, it is checked whether the count value of the AF pulse counter has become smaller than the speed switching pulse number, and when it has become smaller, the drive speed is switched to a lower speed, and then the AF motor 39 is braked. Proceed to S433 (S427, S4
29, S431). In S433, it is checked whether the AF motor 39 is being driven, and if it is being driven, the AF motor 3
After applying the brake at step 9, the process returns to S401, and if the vehicle is not being driven, the process directly returns to S401.

【0086】S423において、パルスカウントが終了
したか、または動体追従の駆動時間が終了していたとき
にはAFモータ39を停止させるために、S437に進
んでAFモータ39にブレーキをかける。そして、動体
予測モードかつAFロックフラグが立っているかどうか
をチェックし、立っていればAF時レリーズ許可フラグ
を立ててレリーズ処理に進む(S439、S441、S
443)。動体予測モードでないか、あるいはAFロッ
クフラグがクリアされていれば、バックラッシュ駆動で
あるかどうかをチェックし、バックラッシュ駆動であれ
ばバックラッシュ駆動終了処理に進み、バックラッシュ
駆動でないときには再積分フラグを立ててループ時間チ
ェックを行ない、ループ時間が経過したらS109のA
E処理に戻り、ループ時間が経過しなければ再積分処理
に進む(S445、S446、S447)。
[0086] In S423, if the pulse count has ended or the driving time for moving object tracking has ended, the process advances to S437 and brakes are applied to the AF motor 39 in order to stop the AF motor 39. Then, it is checked whether the moving object prediction mode and the AF lock flag are set, and if so, the AF release permission flag is set and the process proceeds to release processing (S439, S441,
443). If it is not in the moving object prediction mode or the AF lock flag is cleared, it is checked whether it is backlash drive, and if it is backlash drive, it proceeds to backlash drive end processing, and if it is not backlash drive, it clears the reintegration flag. and check the loop time, and when the loop time has elapsed, press A in S109.
Returning to the E process, if the loop time has not elapsed, the process proceeds to reintegration process (S445, S446, S447).

【0087】積分処理では、積分、演算に関する初期設
定を行ない積分をスタートして積分中フラグを立てる(
S451、S453、S455)。そして、動体追従中
であれば、一定速度制御処理(S401)に飛び、動体
追従中でなければ積分終了かどうかのチェックを行なう
(S457、S459)。
In the integration process, initial settings regarding integration and calculation are made, integration is started, and an integration-in-progress flag is set (
S451, S453, S455). If the moving object is being followed, the process jumps to constant speed control processing (S401), and if the moving object is not being followed, it is checked whether the integration has ended (S457, S459).

【0088】積分終了でなければ、積分時間が所定時間
よりも長ければ被写体輝度が低いと考えられるので動体
予測モード禁止フラグを立ててS465に進み、短けれ
ばそのままS465に進む(S459、S461、S4
63)。そして、動体追従でなければS459に戻り、
積分が終了するまで待つ(S459〜S465)。動体
追従中であれば、一定速度制御中であるのでS413に
戻る。積分が終了したら、追従駆動中であればAFモー
タ39にブレーキをかけ、測距センサユニット21から
積分データを入力してデフォーカス量を計算し、積分ス
タートに入ったステップの次のステップに戻る(S46
7、S469、S471、S473)。
If the integration is not completed, if the integration time is longer than a predetermined time, it is considered that the subject brightness is low, so a moving object prediction mode prohibition flag is set and the process proceeds to S465; if it is short, the process directly proceeds to S465 (S459, S461, S4
63). Then, if the moving object is not followed, the process returns to S459.
Wait until the integration is completed (S459 to S465). If the moving object is being followed, constant speed control is being performed, and the process returns to S413. When the integration is completed, if the tracking drive is in progress, the AF motor 39 is braked, the integral data is input from the range sensor unit 21, the defocus amount is calculated, and the process returns to the step following the step where the integration started. (S46
7, S469, S471, S473).

【0089】『デフォーカス計算』デフォーカス計算処
理について、図14に示した計算処理を参照して説明す
る。先ず、コントラストの計算およびチェック処理を行
なう(S501)。コントラストの計算とは、CCD測
距センサユニットの各CCDの積分データの差の和を求
める計算である。そして、コントラストが位相差の演算
に十分であるかどうかをチェックし、不十分のときには
リターンし、十分であれば位相差の計算処理に進む(S
503、S505)。
"Defocus Calculation" The defocus calculation process will be explained with reference to the calculation process shown in FIG. 14. First, contrast calculation and checking processing is performed (S501). The contrast calculation is a calculation to find the sum of the differences between the integral data of each CCD of the CCD distance measurement sensor unit. Then, it is checked whether the contrast is sufficient for calculating the phase difference, and if it is insufficient, it returns, and if it is sufficient, it proceeds to the phase difference calculation process (S
503, S505).

【0090】S505では、先ず相関法等により位相差
を計算する。そして、10bitセレクトモードであれ
ば10bitセレクト処理のS551に進み、10bi
tセレクトモードでなければ通常の計算処理のS509
に進む(S507)。最初に入ったときには10bit
セレクトモードに入っていないのでS509に進む。な
お、10bitセレクトモードとは、CCDラインセン
サの基準部と参照部の積分データの一致度(相関度)が
余り良くないときに、基準部と参照部の内からそれぞれ
複数の領域の10bit分の領域を順に選択して一致度
のよい(相関度の高い)領域を求める処理のことである
[0090] In S505, first, a phase difference is calculated by a correlation method or the like. Then, if it is the 10-bit selection mode, the process advances to S551 of 10-bit selection processing, and the 10-bit
S509 of normal calculation processing if not in t-select mode
The process proceeds to (S507). 10 bits when first entered
Since the selection mode is not entered, the process advances to S509. Note that the 10-bit select mode means that when the degree of coincidence (correlation degree) between the integral data of the standard part and the reference part of the CCD line sensor is not very good, the 10-bit selection mode is This is a process of sequentially selecting regions and finding regions with good matching (high correlation).

【0091】S509では、位相差計算結果が有効であ
るかどうかをチェックし、有効でなければリターンし、
有効であれば一致度が良好であるかどうかをチェックす
る(S509、S511)。一致度が良好であれば、デ
フォーカス計算を実行する(S511、S531)。そ
して、ローコントラスト時の非合焦1回目フラグが立っ
ており、かつデフォーカス量が所定量未満であれば、前
回と今回のデフォーカス量を比較して、今回の方が小さ
くなっていれば今回のデフォーカス量を有効値とし、デ
フォーカス量OKフラグを立ててリターンする(S53
5、S537、S539、S541、S543)。ロー
コン時非合焦1回目フラグが立っていなければ今回のデ
フォーカス量を有効にし、デフォーカスOKフラグを立
ててリターンする(S533、S541、S543)。
[0091] In S509, it is checked whether the phase difference calculation result is valid, and if it is not valid, returns.
If it is valid, it is checked whether the degree of matching is good (S509, S511). If the degree of matching is good, defocus calculation is performed (S511, S531). Then, if the first out-of-focus flag at low contrast is set and the defocus amount is less than a predetermined amount, compare the previous and current defocus amounts and if the current one is smaller. The current defocus amount is set as the valid value, the defocus amount OK flag is set, and the process returns (S53).
5, S537, S539, S541, S543). If the low contrast first out-of-focus flag is not set, the current defocus amount is enabled, the defocus OK flag is set, and the process returns (S533, S541, S543).

【0092】ローコン時非合焦1回目フラグが立ってい
てもデフォーカス量が所定値以上のときには、前回のデ
フォーカス量を有効とするのでデフォーカスOKフラグ
を立ててリターンする(S533、S535、S543
)。ローコン時非合焦1回目フラグが立っていてかつデ
フォーカス量が所定値未満であっても、デフォーカス量
が前回よりも今回の方が大きければ、デフォーカスOK
フラグを立てて、前回のデフォーカス量を維持してリタ
ーンする(S533、S535、S537、S539、
S543)。
Even if the first out-of-focus flag at low contrast is set, if the defocus amount is equal to or greater than a predetermined value, the previous defocus amount is valid, so the defocus OK flag is set and the process returns (S533, S535, S543
). Even if the first out-of-focus flag is set during low contrast and the defocus amount is less than the predetermined value, if the defocus amount this time is larger than the previous time, defocus is OK.
Set a flag, maintain the previous defocus amount, and return (S533, S535, S537, S539,
S543).

【0093】以上の処理により、被写体がローコントラ
ストのときには、直前の2回のデフォーカス量の内、近
い方(小さい方)を測定値とするので、測定誤差による
誤作動、例えば合焦表示のちらつき、AFモータ39の
誤起動を防止できる。
With the above processing, when the subject has a low contrast, the closer (smaller) of the two previous defocus amounts is used as the measurement value, which prevents malfunctions due to measurement errors, such as in-focus display. Flickering and erroneous activation of the AF motor 39 can be prevented.

【0094】また、一致度があまりよくないときは、位
相のずれを所定値と比較し、そのずれが所定値よりも小
さいときには、ハイコントラストかどうかをチェックし
、ローコントラストのときにはS531に進む(S52
1、S523)。ハイコントラストのときには、10b
itセレクトモードフラグおよび動体予測モード禁止フ
ラグを立てて、最初の10bitをセレクトするととも
に、さらにチェック回数をセットしてS505に戻る(
S523、S525、S527、S529)。
If the degree of matching is not very good, the phase shift is compared with a predetermined value, and if the shift is smaller than the predetermined value, it is checked whether the contrast is high, and if the contrast is low, the process proceeds to S531 ( S52
1, S523). 10b for high contrast
It sets the it select mode flag and the moving object prediction mode prohibition flag, selects the first 10 bits, further sets the number of checks, and returns to S505 (
S523, S525, S527, S529).

【0095】10bitセレクトモードフラグが立つと
、S507から10bitセレクト処理に入る。10b
itセレクト処理では、先ず、セレクトされた10bi
tに基づくデフォーカス量の有効値が一度で求まってい
るかどうかをチェックし、求まっていれば、コントラス
トが前回よりも大きく、かつ前回の2倍よりも大きけれ
ば前回のDATAを無効にするために10bitセレク
トデフォーカスOKフラグをクリアしてS559に進む
(S551、S553、S555、S557)。10b
itセレクトデフォーカス量が一度でも求まっていない
時はS559に進み、今回のコントラストが前回の2倍
以下のときには、10bitセレクトデフォーカスOK
フラグをクリアせずにS559に進む(S551〜S5
57)。コントラストが前回よりも小さいときには、今
回セレクトされた10bitデータは使用しないのでS
571に飛ぶ(S551、S555)。
When the 10-bit select mode flag is set, 10-bit select processing begins at S507. 10b
In the it selection process, first, the selected 10bit
Check whether the effective value of the defocus amount based on t has been determined at once, and if it has been determined, if the contrast is greater than the previous one and twice the previous value, then the previous DATA is invalidated. Clear the 10-bit select defocus OK flag and proceed to S559 (S551, S553, S555, S557). 10b
If the it select defocus amount has not been determined even once, proceed to S559, and if the current contrast is less than twice that of the previous one, 10 bit select defocus is OK.
Proceed to S559 without clearing the flag (S551 to S5
57). If the contrast is smaller than the previous one, the 10-bit data selected this time will not be used, so select S.
Jump to 571 (S551, S555).

【0096】S559では、位相差計算結果が有効であ
るかどうかをチェックし、有効であれば、一致度が良好
であることを条件にデフォーカス計算を行なう(S55
9、S561、S563)。そして、10bitセレク
トデフォーカスOKフラグが立っていれば、前回と今回
とで近い方(手前)のデフォーカス量を選択し、10b
itセレクトOKフラグを立ててS571に進むが、1
0bitセレクトデフォーカスOKフラグがクリアされ
ていれば何もずに10bitセレクトOKフラグをセッ
トしてS571に進む(S565、S567、S569
)。また、位相差計算結果が無効のとき、あるいは一致
度が悪いときもデフォーカス量を算出することなくS5
71に進む(S559、S561)。
In S559, it is checked whether the phase difference calculation result is valid, and if it is, defocus calculation is performed on the condition that the degree of coincidence is good (S55
9, S561, S563). If the 10bit select defocus OK flag is set, select the defocus amount that is closer (front) between the previous time and this time, and select 10bit select defocus OK flag.
It sets the it select OK flag and proceeds to S571, but 1
If the 0-bit select defocus OK flag is cleared, do nothing and set the 10-bit select OK flag and proceed to S571 (S565, S567, S569
). In addition, even when the phase difference calculation result is invalid or the degree of coincidence is poor, S5 can be performed without calculating the defocus amount.
The process advances to 71 (S559, S561).

【0097】S571では、次の10bitをセレクト
する。そして、10bitセレクト回数カウンタを1デ
クリメントし、そのカウンタ値が0でなければS505
に戻って0になるまで以上S507、S551〜S57
5の処理を繰り返す(S573、S575)。なお、1
0bitセレクト回数カウンタの初期値は“4”にセッ
トされている。10bitセレクト回数カウンタの値が
0であれば、10bitセレクトデフォーカスOKであ
ることを条件にローコン時ちらつき対策処理(S533
)に進み、OKでなければ10bitセレクトモードフ
ラグをクリアしてリターンする(S575、S577、
S579)。
[0097] In S571, the next 10 bits are selected. Then, the 10-bit select number counter is decremented by 1, and if the counter value is 0, S505
Return to S507, S551 to S57 until it becomes 0
5 is repeated (S573, S575). In addition, 1
The initial value of the 0 bit selection number counter is set to "4". If the value of the 10-bit select number counter is 0, flicker countermeasure processing at low contrast (S533) is performed on the condition that 10-bit select defocus is OK.
), and if it is not OK, clear the 10-bit select mode flag and return (S575, S577,
S579).

【0098】以上のS505、S507、S551〜S
575の処理により、位相差および一致度の良いCCD
センサビット群からの積分データを選択することができ
る。なお、本実施例では、セレクトするビット数を10
bitにしたが、これに限定されず、任意のビット数に
設定する構成にしてよい。
[0098] The above S505, S507, S551 to S
CCD with good phase difference and matching due to 575 processing
Integral data from a group of sensor bits can be selected. Note that in this embodiment, the number of bits to select is 10.
Although it is set to bit, the configuration is not limited to this and may be set to any number of bits.

【0099】『動体追従スピード計算』動体追従スピー
ド計算について、図15に示した計算処理を参照して説
明する。先ず、前回の積分中間点と今回の積分中間点の
間の時間Tnを計算する(S601)。なお、積分中間
点を基準としたのは、被写体輝度により積分時間が変化
するからである。
"Moving Object Following Speed Calculation" Moving object following speed calculation will be explained with reference to the calculation process shown in FIG. 15. First, the time Tn between the previous integration midpoint and the current integration midpoint is calculated (S601). Note that the reason why the integration midpoint is used as a reference is that the integration time changes depending on the subject brightness.

【0100】次に、動体追従中でなければ、追従前の被
写体像移動スピードS1を計算してリターンする(S6
05)。動体追従中であれば、時間Tn内に被写体像が
移動したであろう被写体像の移動パルス数MPn−1を
算出する(S607)。そして、レンズの前回と今回の
駆動方向を比較し、同方向であれば動体追従中行過ぎフ
ラグをクリアし、MPn−1に今回のDPnを加算して
追従スピード補正計算処理(S617)に進む(S60
9、S611、S613、S615)。方向が異なれば
、被写体の移動速度が遅くなったか停止して行き過ぎた
か、あるいは被写体の移動方向が変わったと考えられる
のでS637へ進む(S609、S611、S637)
。同方向でも異方向でもない、つまり何らかの異常が発
生したときは、動体予測モードをクリアして再積分処理
へ進む(S611、S613、S655)。
Next, if the moving object is not being tracked, calculate the moving speed S1 of the subject image before tracking and return (S6
05). If the moving object is being followed, the number of movement pulses MPn-1 of the object image that would have moved within the time Tn is calculated (S607). Then, the previous and current driving directions of the lens are compared, and if the directions are the same, the moving object tracking overshooting flag is cleared, the current DPn is added to MPn-1, and the process proceeds to the tracking speed correction calculation process (S617). S60
9, S611, S613, S615). If the direction is different, it is considered that the moving speed of the subject has slowed down, that the subject has stopped and gone too far, or that the moving direction of the subject has changed, so proceed to S637 (S609, S611, S637)
. If neither the same direction nor the different direction occurs, that is, if some abnormality has occurred, the moving object prediction mode is cleared and the process proceeds to reintegration processing (S611, S613, S655).

【0101】『追従スピード補正計算1』追従スピード
補正計算1では、先ず、下記式により被写体追従速度S
nを算出する(S617)。 Xn=Tn/(MPn−1+DPn) Sn=1/Xn=(MPn−1+DPn)/Tn
"Following speed correction calculation 1" In the following speed correction calculation 1, first, the following formula is used to calculate the subject tracking speed S.
n is calculated (S617). Xn=Tn/(MPn-1+DPn) Sn=1/Xn=(MPn-1+DPn)/Tn

【01
02】次に、動体追従時間Cn(積分データ入力時間と
演算時間の和)を設定する(S621)。そして、今回
の演算結果から合焦状態にあり、かつレリーズスイッチ
SWRがオンされていれば、AFロックフラグをセット
し、タイムラグ補正時間(積分データ入力時間+演算時
間Cn+レリーズタイムラグ相当時間)を計算し、被写
体が遠ざかるときには一定速度制御時間をタイムラグ補
正時間の1/2にセットし、被写体が近づいてくるとき
には、一定速度制御時間をタイムラグ補正時間にセット
してリターンする(S623、S625、S627、S
629、S631、S633、S635)。
01
Next, a moving object tracking time Cn (sum of integral data input time and calculation time) is set (S621). Then, if the current calculation result indicates that the focus is in focus and the release switch SWR is turned on, the AF lock flag is set and the time lag correction time (integral data input time + calculation time Cn + release time lag equivalent time) is calculated. However, when the subject moves away, the constant speed control time is set to 1/2 of the time lag correction time, and when the subject approaches, the constant speed control time is set to the time lag correction time and the process returns (S623, S625, S627, S
629, S631, S633, S635).

【0103】合焦状態でないか、あるいは合焦状態であ
ってもレリーズスイッチSWRがオンされていないとき
には、追従動作を続行するので、S635に飛んで一定
速度制御時間を動体追従時間にセットし、リターンする
(S623、S625)。
If the camera is not in focus, or if the release switch SWR is not turned on even if it is in focus, the tracking operation will continue, so the process jumps to S635 and sets the constant speed control time to the moving object tracking time. Return (S623, S625).

【0104】レンズの前回と今回の駆動方向が異なると
きは、MPn−1−DPn≧0ならばMPn−1−DP
nを算出し、下記式 Xn=Tn/(MPn−1−DPn) Sn=1/Xn=(MPn−1−DPn)/Tnにより
動体追従スピードSnの補正計算を実行し、レリーズス
イッチSWRの状態をチェックする(S639、S64
1)。
[0104] When the driving direction of the lens is different from the previous driving direction and the current driving direction, if MPn-1-DPn≧0, then MPn-1-DP
n is calculated, and the moving object tracking speed Sn is corrected using the following formula: Xn=Tn/(MPn-1-DPn) Sn=1/Xn=(MPn-1-DPn)/Tn. Check (S639, S64
1).

【0105】そして、合焦状態にあれば、動体追従中行
過ぎフラグをリセットしてリターンする(S643、S
645)。合焦状態になければ、動体追従中行過ぎフラ
グがすでにセットされているかどうかをチェックし、さ
れていなければ追従行過ぎフラグをセットし、さらに演
算時間Cnをセットし、演算時間Cn分待ってから再積
分処理へ進む(S647、S649、S651、S65
3)。動体追従中行過ぎフラグがすでにセットされてい
るときには、動体予測モードをクリアしてリターンする
(S647、S655)。
[0105] If the focus is on, the moving object tracking overshooting flag is reset and the process returns (S643, S643).
645). If it is not in focus, check whether the moving object tracking overshoot flag has already been set, and if not, set the tracking overshoot flag, set the calculation time Cn, and wait for the calculation time Cn. Proceed to reintegration processing (S647, S649, S651, S65
3). If the moving object tracking overshooting flag has already been set, the moving object prediction mode is cleared and the process returns (S647, S655).

【0106】『合焦チェック処理』図16を参照して、
合焦チェック処理について説明する。この合焦チェック
処理では、動体追従中のときは合焦範囲を広げ、ローコ
ントラスト時に合焦表示ちらつくのを防止する。
"Focus Check Processing" Referring to FIG. 16,
The focus check process will be explained. In this focus check process, the focus range is widened when a moving object is being followed, and the focus display is prevented from flickering when the contrast is low.

【0107】先ず、AFモードのときにはあらかじめ設
定された合焦幅(所定のデフォーカス量)のままとし、
動体予測モードであれば合焦幅を広げてから、今回のデ
フォーカス量が所定量よりも小さいかどうかをチェック
する(S701、S703、S705)。
First, when in AF mode, leave the preset focusing width (predetermined defocus amount) as is;
If it is the moving object prediction mode, the focusing width is widened, and then it is checked whether the current defocus amount is smaller than a predetermined amount (S701, S703, S705).

【0108】先ず、デフォーカス量が所定量(合焦幅よ
りも大きい量)よりも大きければ、ローコン時非合焦1
回目フラグをリセットしてリターンする(S719)。
First, if the defocus amount is larger than a predetermined amount (an amount larger than the in-focus width), the out-of-focus 1 at low contrast
The process resets the second flag and returns (S719).

【0109】デフォーカス量が所定量内に納まっており
、かつ合焦状態(合焦幅以下)であれば、合焦フラグを
セットし、ローコン時非合焦フラグをクリアして表示装
置45の合焦表示用LEDを点灯し、電子ブザー46を
作動させる(S705、S707、S709、S711
、S713)。
If the defocus amount is within the predetermined amount and in focus (below the in-focus width), the in-focus flag is set, the low-contrast out-of-focus flag is cleared, and the display device 45 is displayed. Turn on the focus display LED and activate the electronic buzzer 46 (S705, S707, S709, S711
, S713).

【0110】そして、AF動作中であれば動体チェック
用の所定の像面移動速度相当の合焦幅をセットしてリタ
ーンし、AF動作中でなければそのままリターンする(
S715、S717)。
[0110] Then, if the AF operation is in progress, the focus width corresponding to a predetermined image plane movement speed for checking a moving object is set and the process returns; if the AF operation is not in progress, the process returns as is (
S715, S717).

【0111】デフォーカス量が合焦幅以上でかつ所定量
よりも小さいときには、ローコン時ちらつき対策処理を
行なう。ローコン時非合焦1回目フラグがすでにセット
されていたときまたは、セットされていなくても、動体
予測モードのときにはローコン時非合焦フラグをクリア
してリターンする(S721、S723、S719)°
[0111] When the defocus amount is greater than or equal to the in-focus width and smaller than a predetermined amount, flicker countermeasure processing is performed during low contrast. When the low-contrast out-of-focus first flag has already been set, or even if it is not set, in the moving object prediction mode, clear the low-contrast out-of-focus flag and return (S721, S723, S719).

【0112】ローコン時1回目フラグがクリアされてい
て、かつ動体予測モードに入っていない場合は、補助投
光モードのときにはそのままリターンする(S721、
S723、S725)。補助投光モードではない場合に
おいて、10bitセレクトモードのときには、ローコ
ン時非合焦1回目フラグをセットしてリターンする(S
725、S733)。10bitセレクトモードでない
ときには、積分時間が所定値よりも長ければそのままリ
ターンし、短かい場合であっても、ローコントラストで
ない場合はそのままリターンし、ローコントラストのと
きはローコン時非合焦1回目フラグをセットしてリター
ンする(S729、S731、S733)。
[0112] If the first low contrast flag is cleared and the moving object prediction mode is not in effect, the process returns directly when in the auxiliary light projection mode (S721,
S723, S725). When the mode is not the auxiliary flash mode and the mode is the 10-bit select mode, the first out-of-focus flag at low contrast is set and the process returns (S
725, S733). When not in 10-bit select mode, if the integration time is longer than the predetermined value, it will return as is, and even if it is shorter, if it is not low contrast, it will return as is, and if it is low contrast, it will set the first out-of-focus flag at low contrast. Set and return (S729, S731, S733).

【0113】以上のように、この処理に始めた入ったと
きに非合焦の場合に、ローコントラストのときにはロー
コン時非合焦1回目フラグをセットしてリターンするこ
とにより、合焦から非合焦に変わっても、非合焦1回目
では非合焦表示処理(S301の処理)が行なわれない
ので、合焦表示のちらつきが防止される。なお、本実施
例では非合焦が2回連続すると非合焦表示を行なう構成
であるが、非合焦表示に変わる非合焦の回数は任意であ
り、例えば非合焦が連続3回継続したときに非合焦表示
を行なう構成にしてもよい。
As described above, if the process is out of focus when the process is started, if the contrast is low, by setting the low contrast first out of focus flag and returning, the process can be changed from in focus to out of focus. Even if the focus changes, the out-of-focus display processing (processing in S301) is not performed during the first out-of-focus state, so flickering of the in-focus display is prevented. Note that in this embodiment, the out-of-focus display is displayed when out-of-focus occurs twice in a row, but the number of times that out-of-focus changes to the out-of-focus display is arbitrary. For example, if out-of-focus continues three times in a row, The configuration may be such that an out-of-focus display is performed when the object is in focus.

【0114】『端点検出処理』次に、合焦用レンズ53
が最近距離合焦位置、または無限遠合焦位置に達したと
き等の処理について、図17に示した端点検出処理を参
照して説明する。この処理は、端点に達したか、あるい
は端点に達していないが、何らかの外力により合焦用レ
ンズ群53を駆動できない状態を検知してAFモータを
停止させる処理でもある。
"End point detection processing" Next, the focusing lens 53
Processing when the lens reaches the closest focus position or the infinite focus position will be described with reference to the end point detection process shown in FIG. 17. This process is also a process in which the AF motor is stopped by detecting that the end point has been reached or the end point has not been reached but the focusing lens group 53 cannot be driven due to some external force.

【0115】AFモータ駆動中かどうかをチェックし、
駆動中でなければ端点検出用タイマー再設定処理に進む
(S791)。AFモータ39駆動中の場合は、パルス
割込みフラグが立っているとき(エンコーダ41からパ
ルスが出たとき)には端点チェック(S771)に進み
、立っていない(パルスが出ていない)ときには端点検
出タイマカウント(S755)に進む。
[0115] Check whether the AF motor is being driven,
If it is not being driven, the process proceeds to end point detection timer resetting processing (S791). When the AF motor 39 is being driven, when the pulse interrupt flag is set (when a pulse is output from the encoder 41), the process proceeds to end point check (S771), and when it is not set (no pulse is output), end point detection is performed. Proceed to timer count (S755).

【0116】端点検出タイマカウント処理は、AFモー
タ39駆動中であるのにかかわらずエンコーダ41から
パルスが一定時間以上出力されなくなったときには、合
焦用レンズ53が端点に達しているか、移動できない状
態と考えられるので、AFモータ39を停止させるため
の処理である。ここでは先ず、端点検出時にパルスあり
フラグをクリアし、端点検出中カウント中フラグをセッ
トし、端点検出用タイマをカウントダウンする(S75
5、S757、759)。そして、端点検出用タイマが
0かどうかをチェックし、0になれば端点処理へ進み、
0でなければリターンする(S801)。
[0116] The end point detection timer counting process is performed when the encoder 41 does not output pulses for a certain period of time or more even though the AF motor 39 is being driven, the focusing lens 53 has reached the end point or is in a state where it cannot be moved. Therefore, this is a process for stopping the AF motor 39. Here, first, when detecting an end point, the pulse presence flag is cleared, the end point detection counting flag is set, and the end point detection timer is counted down (S75).
5, S757, 759). Then, check whether the end point detection timer is 0, and if it becomes 0, proceed to end point processing,
If it is not 0, return (S801).

【0117】端点チェック処理は、合焦用レンズ53が
端点に達したかどうかを、エンコーダ41から出力され
るパルス変化の検出により検知する。ここでは、先ず、
パルス割込みフラグをクリアする(S771)。
In the end point check process, whether or not the focusing lens 53 has reached the end point is detected by detecting changes in the pulses output from the encoder 41. Here, first,
Clear the pulse interrupt flag (S771).

【0118】そして、端点検出タイマカウント中かどう
かをチェックし、カウント中でないとき、あるいは端点
検出タイマカウント中であっても、端点検出時にパルス
有りフラグがセットされているときは、端点検出用タイ
マ再設定処理に進む(S775、S777)。端点検出
タイマカウント中、端点時パルス有りフラグがセットさ
れていないときには、端点検出時にパルス有りフラグを
セットし、一定速度制御中であればリターンし、一定速
度制御中でなければS757に進む(S777、S77
9、S781)。
[0118] Then, it is checked whether or not the end point detection timer is counting, and if it is not counting, or even if the end point detection timer is counting but the pulse presence flag is set when the end point is detected, the end point detection timer is set. The process proceeds to resetting processing (S775, S777). While the end point detection timer is counting, if the flag with pulse at end point is not set, the flag with pulse is set when the end point is detected, returns if constant speed control is in progress, and proceeds to S757 if constant speed control is not in progress (S777 , S77
9, S781).

【0119】端点検出用タイマ再設定処理は、端点検出
に関するデータを初期化する処理であり、端点検出タイ
マカウント中フラグおよび端点検出時にパルス有りフラ
グをクリアし、端点検出用タイマデータをセットしてリ
ターンする(S791、S793、S795)。
The end point detection timer resetting process is a process that initializes the data related to end point detection, and clears the end point detection timer counting flag and the pulse presence flag when detecting an end point, and sets the end point detection timer data. Return (S791, S793, S795).

【0120】『動体予測AFの第2実施例』次に、本発
明の動体予測AFの第2実施例について、図18および
図19を参照して説明する。この第2実施例は、演算中
も一定速度制御を行う点に特徴がある。つまり、被写体
像の移動速度に対応するレンズ駆動速度を計算し、その
速度で合焦用レンズを一定速度制御しながら積分を行な
って追従速度を補正する方法で、基本的原理は第1実施
例と同様であるが、所定の演算中も一定速度制御を行な
う点が相違する。このように演算および一定速度制御を
並行して実行するために本実施例では、モータードライ
ブIC37を制御するためのCPU36を備えている。
"Second Embodiment of Moving Object Prediction AF" Next, a second embodiment of the moving object prediction AF of the present invention will be described with reference to FIGS. 18 and 19. This second embodiment is characterized in that constant speed control is performed even during calculation. In other words, the method calculates the lens driving speed corresponding to the moving speed of the subject image, and performs integration while controlling the focusing lens at a constant speed at that speed to correct the tracking speed.The basic principle is the same as that of the first embodiment. The difference is that constant speed control is performed even during predetermined calculations. In order to execute calculations and constant speed control in parallel in this way, this embodiment includes a CPU 36 for controlling the motor drive IC 37.

【0121】先ず、動体予測モードであると判断したと
き(動体予測モードに入ったとき)のデフォーカスパル
スDPに基づいてDCレンズ駆動Mを行なう。DCレン
ズ駆動Mが終了すると積分I1を行ない、演算C1にお
いて、積分I、I1の中間点間の時間T1の間に被写体
像が移動した速度S1を、前述の■および■式と同様の
式により算出し、さらに下記式によりレンズ駆動時間を
求める。 (T1+(I1/2)+C1)/2      …■
First, the DC lens drive M is performed based on the defocus pulse DP when the moving object prediction mode is determined (when the moving object prediction mode is entered). When the DC lens drive M is completed, integration I1 is performed, and in calculation C1, the speed S1 at which the subject image moved during the time T1 between the midpoint of the integrations I and I1 is calculated using the same equations as the above-mentioned equations 1 and 2. Then, the lens drive time is determined using the following formula. (T1+(I1/2)+C1)/2...■


0122】そして、上記式■で算出した駆動時間分、迫
従速度S1の3倍速で一定速度制御レンズ駆動M1を行
なう。この一定速度制御レンズ駆動M1により、合焦用
レンズ53を短時間で合焦付近まで移動することができ
る。なお、この3倍速駆動は、(T1+I1/2+C1
)時間だけ被写体像移動速度S1の2倍速でレンズ駆動
したのとほぼ同様の効果が得られる。
[
Then, constant speed control lens driving M1 is performed at three times the approaching speed S1 for the driving time calculated using the above formula (2). This constant speed control lens drive M1 allows the focusing lens 53 to be moved to near in-focus in a short time. Note that this triple speed drive is (T1+I1/2+C1
) substantially the same effect as driving the lens at twice the object image moving speed S1 for the time period S1.

【0123】3倍速での制御レンズ駆動M1が終了する
と、追従速度S1で一定速度制御(レンズ駆動M2)を
行ないながら積分I2および演算C2を行なう。この演
算C2において、前回の積分I1の中間点から今回の積
分I2の中間点までの時間T2内に、追従速度S1で被
写体像が移動していたと仮定したときの被写体像の移動
量に相当するパルス数MP1を前述の■式と同様の式(
MP1=T2×S1)により計算する。さらに、前述の
■および■式と同様の下記式により、時間T2の間に被
写体像が移動した速度S2を求める。 X2=T2/(MP1+DP2) S2=1/X2 そして、積分I3および演算C3の間、追従速度S2で
一定速度制御レンズ駆動M3を行なう。
When control lens driving M1 at triple speed is completed, integral I2 and calculation C2 are performed while performing constant speed control (lens driving M2) at follow-up speed S1. In this calculation C2, it corresponds to the amount of movement of the subject image when it is assumed that the subject image was moving at the tracking speed S1 within the time T2 from the midpoint of the previous integral I1 to the midpoint of the current integral I2. The number of pulses MP1 is calculated using the same formula as the above formula (
MP1=T2×S1). Furthermore, the velocity S2 at which the subject image moved during the time T2 is determined using the following equations similar to the above-mentioned equations (1) and (2). X2=T2/(MP1+DP2) S2=1/X2 Then, during integration I3 and calculation C3, constant speed control lens drive M3 is performed at follow-up speed S2.

【0124】以後同様に、時間Tn内に被写体像がSn
−1の速度で移動していたと仮定した場合の被写体の移
動量に相当するパルス数MPn−1(追従中の演算2回
目以降はMPn−1=Tn×Sn−2)により追従速度
Snを求めて、積分In+1および演算Cn+1を行な
っている間、追従速度Snにより(一定速度制御)レン
ズ駆動Mn+1を行なう。
[0124] Thereafter, similarly, the subject image becomes Sn within time Tn.
Find the tracking speed Sn using the number of pulses MPn-1 corresponding to the amount of movement of the subject (from the second calculation during tracking, MPn-1=Tn×Sn-2) assuming that the object was moving at a speed of −1. While performing the integration In+1 and the calculation Cn+1, the lens drive Mn+1 is performed using the follow-up speed Sn (constant speed control).

【0125】以上の追従制御により、移動する被写体に
対して常時ほぼ合焦状態が維持される。また、上記追従
動作中にレリーズスイッチがオンされたときには、ミラ
ーアップしている間も、直前に求めた追従速度Snで一
定速度制御を行なう(図19参照)。このミラーアップ
中の一定速度制御により、現実にシャッタ先幕が走行を
開始(露光開始)するときに、ほぼ合焦像体となってい
る。
[0125] Through the above-described tracking control, the moving subject is almost always kept in focus. Further, when the release switch is turned on during the following operation, constant speed control is performed at the previously determined follow-up speed Sn even while the mirror is up (see FIG. 19). Due to this constant speed control during mirror up, the object is almost in focus when the front shutter curtain actually starts traveling (starts exposure).

【0126】次に、第2の動体追従動作について、図2
0および図21に示したフローチャートに基づいて説明
する。先ず、前回の積分中間点と今回の積分中間点の間
の時間Tnを計算する(S801)。
Next, regarding the second moving object tracking operation, FIG.
0 and the flowchart shown in FIG. First, the time Tn between the previous integration midpoint and the current integration midpoint is calculated (S801).

【0127】次に、動体追従中かどうかをチェックし、
動体追従中でなければ、追従前の被写体像移動速度(追
従速度)Sn−1を計算してリターンする(S803、
S805)。動体追従中であり、かつ追従中演算1回目
であれば、時間T2の間に被写体像が移動した移動量に
相当するパルス数MP1を算出し、追従中2回目以降は
、時間Tnの間に被写体像が移動した移動量に相当する
パルス数MPn−1を算出する(S803、S807、
S809、S811)。
[0127] Next, check whether the moving object is being followed,
If the moving object is not being tracked, calculate the subject image movement speed (following speed) Sn-1 before tracking and return (S803,
S805). If a moving object is being tracked and this is the first calculation during tracking, the number of pulses MP1 corresponding to the amount of movement of the subject image during time T2 is calculated, and from the second time onwards during tracking, the number of pulses MP1 is calculated during time Tn. Calculate the number of pulses MPn-1 corresponding to the amount of movement of the subject image (S803, S807,
S809, S811).

【0128】そして、合焦用レンズ53の前回と今回の
駆動方向を比較し、同方向であれば動体追従中行き過ぎ
フラグをクリアし、計算上の被写体像の移動パルス数M
Pn−1に今回のデフォーカスパルス数DPnを加算し
てS821(追従速度補正計算2の処理)に進む(S8
13、S815、S817、S819)。駆動方向が異
なっていれば、被写体の移動速度が遅くなったか被写体
が停止したか、あるいは被写体の移動方向が変わったた
め行き過ぎたと考えられるのでS833へ進む(S81
3、S817)。同方向でも異方向でもない、つまり、
何らかの異常が発生したときは、動体予測モードをクリ
アして再積分処理へ進む(S815、S817、S84
9)。
[0128] Then, the previous and current driving directions of the focusing lens 53 are compared, and if they are the same, the moving object tracking overshooting flag is cleared, and the calculated number of movement pulses M of the object image is set.
Add the current number of defocus pulses DPn to Pn-1 and proceed to S821 (following speed correction calculation 2 process) (S8
13, S815, S817, S819). If the driving directions are different, it is considered that the moving speed of the subject has slowed down, the subject has stopped, or the moving direction of the subject has changed and the subject has gone too far, and the process advances to S833 (S81
3, S817). neither in the same direction nor in different directions, i.e.
If any abnormality occurs, clear the moving object prediction mode and proceed to reintegration processing (S815, S817, S84
9).

【0129】『追従速度補正計算2』追従速度補正計算
2では、先ず、下記式により動体追従速度Snを算出す
る(S821)。 Xn=Tn/(MPn−1+DPn) Sn=1/Xn
"Following Speed Correction Calculation 2" In the following speed correction calculation 2, first, the moving object following speed Sn is calculated using the following formula (S821). Xn=Tn/(MPn-1+DPn) Sn=1/Xn

【0130】次に、合焦かつレリーズスイッチSWRが
オンしていればAFロックフラグおよびAF時レリーズ
許可フラグをセットしてリターンする(S825、S8
27、S829、S831)。合焦していないか、レリ
ーズスイッチSWRがオンしていなければそのままリタ
ーンする(S825、S827)。
Next, if the focus is on and the release switch SWR is on, the AF lock flag and the AF release permission flag are set and the process returns (S825, S8
27, S829, S831). If the camera is not in focus or the release switch SWR is not turned on, the process returns directly (S825, S827).

【0131】また、レンズの駆動方向が異なっていたと
きには、MPn−1−DPn≧0であれば、下記式によ
り被写体追従速度Snを求める(S815、S833、
S835、S837)。 Xn=Tn/(MPn−1−DPn) Sn=1/Xn               =(MPn−1−DPn
)/Tn
[0131] Furthermore, when the driving directions of the lenses are different, if MPn-1-DPn≧0, the subject tracking speed Sn is determined by the following formula (S815, S833,
S835, S837). Xn=Tn/(MPn-1-DPn) Sn=1/Xn=(MPn-1-DPn
)/Tn

【0132】そして、合焦状態にあれば、動体
追従中行き過ぎフラグをクリアしてリターンする(S8
39、S841)。合焦状態になければ、動体行き過ぎ
中フラグが立っているかどうかをチェックし、すでに立
っていれば行き過ぎて2回目の処理なので、動体予測モ
ードをクリアしてリターンする(S843、S849)
。つまり、動体追従中に1回行き過ぎたときには誤差等
による可能性があるので、2回行き過ぎたときに抜ける
構成にしていある。なお、1回で抜ける構成でも、3回
以上の任意の回数で抜ける構成にしてもよい。
[0132] If the focus is on, the moving object tracking overshooting flag is cleared and the process returns (S8).
39, S841). If it is not in focus, check whether the moving object overshooting flag is set, and if it is already set, the moving object has gone too far and this is the second processing, so clear the moving object prediction mode and return (S843, S849).
. In other words, since there is a possibility of an error or the like if it goes too far once during tracking of a moving object, it is configured to exit when it goes too far twice. Note that the configuration may be such that it can be exited once, or it can be exited any number of times, including three or more times.

【0133】動体追従中行き過ぎフラグが未だ立ってい
なければ、行き過ぎて1回目の処理なので、動体追従中
行き過ぎフラグをセットして、積分データを入力および
演算時間Cnをセットし、演算時間Cn分待ってから再
積分処理に進む(S843、S845、S847)。
If the moving object tracking overshooting flag is not set yet, this is the first time the moving object tracking overshooting flag has been set, so set the moving object tracking overshooting flag, input the integral data, set the calculation time Cn, and wait for the calculation time Cn. Then, the process proceeds to reintegration processing (S843, S845, S847).

【0134】『一定速度制御2』次に、別の一定速度制
御2の処理について、図21に示したサブルーチンを参
照して説明する。先ず、パルス間隔(Xn)をセットす
る。そして、動体迫従中であれば、動体追従速度Sn(
1/Xn)をセットする。さらに動体追従に入って1回
目の処理であれば、動体追従速度Snの3倍速をセット
し直すが、2回目以降の処理であれば変更しない(S8
53、S855、S857、S859)。演算が終了し
ていれば(演算終了フラグ=1)、AFパルス、動体追
従速度Snなどのデータの入力およびセットをし、演算
終了フラグをクリアしてS851に戻る(S861、S
863、S865)。
"Constant Speed Control 2" Next, another process of constant speed control 2 will be explained with reference to the subroutine shown in FIG. 21. First, the pulse interval (Xn) is set. If the moving object is being followed, the moving object following speed Sn (
1/Xn). Furthermore, if it is the first processing after entering moving object tracking, the triple speed of the moving object tracking speed Sn will be reset, but if it is the second or subsequent processing, it will not be changed (S8
53, S855, S857, S859). If the calculation has been completed (calculation end flag = 1), input and set data such as AF pulse and moving object tracking speed Sn, clear the calculation end flag, and return to S851 (S861, S
863, S865).

【0135】演算が終了していなければ(演算終了フラ
グ=0)、一定速度制御時間が経過したかどうかをチェ
ックし、経過していれば、端点検出用タイマをカウント
し、さらにAFモータ39駆動中であればS861に戻
る(S867、S869、S871)。AFモータ39
駆動中でなければ、AFモータ39の駆動を開始してS
851に戻る(S871、S873)。
[0135] If the calculation has not been completed (calculation end flag = 0), it is checked whether the constant speed control time has elapsed, and if it has elapsed, the end point detection timer is counted, and the AF motor 39 is driven. If it is inside, the process returns to S861 (S867, S869, S871). AF motor 39
If it is not being driven, start driving the AF motor 39 and
The process returns to 851 (S871, S873).

【0136】一定速度制御時間が経過していなければ、
AFパルスが出力されているかどうかをチェックする(
S867、S875)。AFパルスの出力がなければS
861に戻り、出力があればS877に進む。
[0136] If the constant speed control time has not elapsed,
Check whether the AF pulse is output (
S867, S875). S if there is no AF pulse output
Returning to step 861, if there is an output, proceeding to step S877.

【0137】S877では、ミラーアップが完了したか
どうかをチェックし、完了していればAFモータ39に
ブレーキを掛けて停止させる(S877、S879)。 ミラーアップが完了していなければ、AFパルスカウン
トが終了したかどうかをチェックし、終了していれば、
AFモータ39を停止させ、ループ時間をチェックし、
ループ時間が経過していればAE処理を行なうが、経過
していなければ再積分処理へ進む(S879、S881
、S883)。
[0137] In S877, it is checked whether the mirror up is completed, and if it is completed, the AF motor 39 is braked and stopped (S877, S879). If the mirror up is not completed, check whether the AF pulse count has finished, and if it has finished,
Stop the AF motor 39, check the loop time,
If the loop time has elapsed, AE processing is performed, but if it has not elapsed, the process proceeds to reintegration processing (S879, S881).
, S883).

【0138】また、AFパルスカウントが終了していな
ければ、端点チェックおよび端点検出用タイマ再設定を
行ない、AFパルスカウンタ値が速度切換えパルスより
も小さくなったかどうかをチェックする(S879、S
885、S887)。小さくなれば、制御速度を低速に
切換えて減速し、AFモータ39にブレーキを掛けてS
893に進み、小さくなければそのままS893に進む
(S887、S889、S891)。
[0138] If the AF pulse count has not ended, the end point check and end point detection timer are reset, and it is checked whether the AF pulse counter value has become smaller than the speed switching pulse (S879, S879).
885, S887). If it becomes smaller, switch the control speed to a low speed to decelerate, apply the brake to the AF motor 39, and
The process proceeds to S893, and if it is not smaller, the process directly proceeds to S893 (S887, S889, S891).

【0139】S893ではAFモータ駆動中かどうかを
チェックし、駆動中でなければそのままS851に戻り
、駆動中であればブレーキを掛けてからS851に戻る
(S895)。
[0139] In S893, it is checked whether the AF motor is being driven. If not, the process returns to S851; if it is, the brake is applied and the process returns to S851 (S895).

【0140】『積分処理』積分処理サブルーチンでは、
初期設定を行なってから積分をスタートさせ、積分中フ
ラグをセットする(S901、S903、S905)。 そして、積分時間が終了するまで積分時間をチェックし
ながら待つ(S907、S909)。その際、積分時間
が所定値よりも大きくなれば被写体が暗過ぎるので、動
体予測モード禁止フラグをセットする(S909、S9
11)。
"Integral processing" In the integral processing subroutine,
After initial settings are made, integration is started and an integration flag is set (S901, S903, S905). Then, the process waits while checking the integration time until the integration time ends (S907, S909). At this time, if the integration time becomes larger than a predetermined value, the subject is too dark, so a moving object prediction mode prohibition flag is set (S909, S9
11).

【0141】積分が終了すると、積分データを入力して
デフォーカス量を計算する(S907、S909、S9
11)。この演算結果が有効であれば、動体予測モード
に入っていれば動体追従速度を計算し、さらに演算終了
フラグをセットしてからS925に進み、有効でなけれ
ばS901に戻り、有効であって、動体予測モードに入
っていなければそのままS925に進む(S919、S
921、S923)。S925では、AF時レリーズ許
可フラグがセットされているかどうかをチェックし、セ
ットされていなければS901に戻り、セットされてい
ればレリーズ処理に進む。
[0141] When the integration is completed, the integral data is input and the defocus amount is calculated (S907, S909, S9
11). If this calculation result is valid, if the moving object prediction mode is entered, the moving object tracking speed is calculated, and a calculation end flag is set, and the process proceeds to S925; if it is not valid, the process returns to S901, and if the calculation result is valid, If the moving object prediction mode is not entered, the process directly advances to S925 (S919, S
921, S923). In S925, it is checked whether the AF release permission flag is set. If it is not set, the process returns to S901, and if it is set, the process proceeds to release processing.

【0142】以上の処理により、図18および図19に
示したように、積分及び演算中も合焦用レンズ53が一
定速度制御されるので、被写体の移動に対してより忠実
な追従、つまり常時合焦状態を保つことが可能になる。
With the above processing, as shown in FIGS. 18 and 19, the focusing lens 53 is controlled at a constant speed even during integration and calculation, so that it can more faithfully follow the movement of the subject, that is, constantly This makes it possible to maintain focus.

【0143】以上の通り本実施例によると、一度合焦し
ても、所定時間後のAF処理で合焦から外れるときには
被写体が移動していると判断できるので、たまたま合焦
したとき、例えば被写体が接近しているときに合焦用レ
ンズが近距離合焦位置から遠距離合焦位置に移動して合
焦したときなどでも、被写体が移動していることを確実
に判断することができる。
As described above, according to this embodiment, even if the subject is in focus, it can be determined that the subject is moving when it is out of focus in the AF process after a predetermined period of time. It is possible to reliably determine that the subject is moving even when the focusing lens moves from the short-distance focusing position to the long-distance focusing position when the subject is approaching.

【0144】以上本実施例では、合焦後のAF処理にお
いて、3回非合焦状熊を検出したときに動体であると判
断したが、その回数は3回に限定されない。また、合焦
後のAF処理において、断続的にでも所定回数非合焦で
あったとき、あるいは連続して所定回数非合焦であった
ときに動体であると判断する構成でもよい。
[0144] In this embodiment, in the AF process after focusing, it is determined that the bear is a moving object when the unfocused bear is detected three times, but the number of times is not limited to three. Further, in the AF processing after focusing, a configuration may be adopted in which it is determined that the object is a moving object when the object is out of focus a predetermined number of times, even intermittently, or when it is out of focus a predetermined number of times consecutively.

【0145】[0145]

【発明の効果】以上の通り本発明によれば、被写体が低
コントラストのときには、その時のデフォーカス量を一
時メモリして再測距し、再測距したデフォーカス量と、
前記メモリしたデフォーカス量とを比較して小さい方を
デフォーカス量として選択するので、測距誤差が減少し
、合焦であるのに非合焦であると判断されてレンズが駆
動されたり、合焦表示がちらついたりすることがなくな
る。
As described above, according to the present invention, when the subject has a low contrast, the defocus amount at that time is temporarily memorized and the distance is remeasured, and the remeasured defocus amount is
Since the smaller defocus amount is selected as the defocus amount by comparing the memorized defocus amounts, distance measurement errors are reduced, and the lens is driven when it is determined that the focus is out of focus. The focus display no longer flickers.

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

【図1】本発明の自動焦点装置を適用した一眼レフカメ
ラの実施例の構成を示すブロック図である。
FIG. 1 is a block diagram showing the configuration of an embodiment of a single-lens reflex camera to which an automatic focus device of the present invention is applied.

【図2】同自動焦点装置の動体予測AFモード動作に入
る前のAF動作態様を示すグラフである。
FIG. 2 is a graph showing the AF operation mode of the automatic focusing device before entering the moving object prediction AF mode operation.

【図3】同自動焦点装置の、動体予測AFモード動作に
入る前の別のAF動作態様を示すグラフである。
FIG. 3 is a graph showing another AF operation mode of the automatic focusing device before entering the moving object prediction AF mode operation.

【図4】同自動焦点装置の、動体予測AFモード動作に
おけるAF動作態様を示すグラフである。
FIG. 4 is a graph showing an AF operation mode of the automatic focusing device in a moving object prediction AF mode.

【図5】同自動焦点装置の、動体予測AFモード動作に
おいて行き過ぎた場合のAF動作態様を示すグラフであ
る。
FIG. 5 is a graph showing an AF operation mode of the automatic focusing device when the moving object prediction AF mode operation goes too far.

【図6】被写体接近中に同動体予測AFモードで動作し
ている際にレリーズスイッチがオンされたときのAF動
作態様を示すグラフである。
FIG. 6 is a graph showing the AF operation mode when the release switch is turned on while operating in the same moving object predictive AF mode while the subject approaches.

【図7】被写体離反中に同動体予測AFモードで動作し
ている際にレリーズスイッチがオンされたときのAF動
作態様を示すグラフである。
FIG. 7 is a graph showing the AF operation mode when the release switch is turned on while operating in the same moving object predictive AF mode while the subject is away from the subject.

【図8】本自動焦点装置のメイン動作に関するフローチ
ャートである。
FIG. 8 is a flowchart regarding the main operation of the automatic focusing device.

【図9】同自動焦点装置の基準タイマ割り込みに関する
フローチャートである。
FIG. 9 is a flowchart regarding reference timer interrupt of the automatic focusing device.

【図10A、10B】同自動焦点装置のAF処理に関す
るフローチャートである。
10A and 10B are flowcharts regarding AF processing of the automatic focusing device.

【図11A、11B、11C】同AF処理における再積
分、動体予測AFに関するフローチャートである。
11A, 11B, 11C are flowcharts regarding reintegration and moving object prediction AF in the same AF process.

【図12A、12B】同AF処理におけるデフォーカス
、駆動パルス計算に関するフローチャートである。
12A and 12B are flowcharts regarding defocus and drive pulse calculation in the same AF process.

【図13A、13B、13C】同AF処理における一定
速度制御処理に関するフローチャートである。
13A, 13B, and 13C are flowcharts regarding constant speed control processing in the same AF processing.

【図14A、14B、14C】同AF処理におけるデフ
ォーカス計算、10bitセレクト処理およびローコン
時ちらつき防止処理に関するフローチャートである。
14A, 14B, and 14C are flowcharts regarding defocus calculation, 10-bit selection processing, and flicker prevention processing at low contrast in the same AF processing.

【図15A、15B、15C】同AF処理における動体
追従速度、補正計算に関するフローチャートである。
15A, 15B, and 15C are flowcharts related to moving object tracking speed and correction calculation in the same AF process.

【図16】同AF処理における合焦チェック、ローコン
トラスト時ちらつき対策処理に関するフローチャートで
ある。
FIG. 16 is a flowchart regarding focus check and low contrast flicker countermeasure processing in the same AF processing.

【図17】同AF処理における端点検出処理に関するフ
ローチャートである。
FIG. 17 is a flowchart regarding end point detection processing in the same AF processing.

【図18】本発明の自動焦点装置の第2の動体予測AF
処理動作を示すグラフである。
FIG. 18: Second moving object prediction AF of the automatic focus device of the present invention
It is a graph showing processing operation.

【図19】同第2の動体予測AF処理動作中にレリーズ
スイッチがオンされたときの動作を示すグラフである。
FIG. 19 is a graph showing the operation when the release switch is turned on during the second moving object predictive AF processing operation.

【図20A、20B、20C】同第2の動体予測AF処
理の動体追従スピード計算処理等に関するフローチャー
トである。
20A, 20B, 20C are flowcharts related to the moving object tracking speed calculation process, etc. of the second moving object predictive AF process.

【図21A、21B】同第2の動体予測AF処理におけ
る一定速度制御に関するフローチャートである。
21A and 21B are flowcharts regarding constant speed control in the second moving object predictive AF process.

【図22】同第2の動体予測AF処理における積分処理
に関するフローチャートである。
FIG. 22 is a flowchart regarding integration processing in the second moving object predictive AF processing.

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

11  カメラボディ 12  撮影レンズ 13  メインミラー 14  サブミラー 17  測光用IC 21  測距用CCDセンサユニット 23  周辺部制御用回路 25  シャッタ機構 27  絞り機構 35  メインCPU 36  CPU 39  AFモータ 41  エンコーダ 45  表示装置 47  ジョイント 51  撮影レンズ 53  合焦用レンズ 55  レンズ駆動機構 61  レンズCPU 11 Camera body 12 Photography lens 13 Main mirror 14 Sub mirror 17 Photometry IC 21 CCD sensor unit for distance measurement 23 Peripheral control circuit 25 Shutter mechanism 27 Aperture mechanism 35 Main CPU 36 CPU 39 AF motor 41 Encoder 45 Display device 47 Joint 51 Photography lens 53 Focusing lens 55 Lens drive mechanism 61 Lens CPU

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】  特定被写体に対するデフォーカス量を
測定するデフォーカス量測定手段と、前記特定被写体が
低コントラストであるかどうかを判断するコントラスト
判断手段と、前記コントラスト判断手段が低コントラス
トではないと判断したときにはそのデフォーカス量を選
択し、前記コントラスト判断手段が低コントラストと判
断したときにはその時のデフォーカス量を一時メモリし
て前記デフォーカス測定手段を再動作させ、前記メモリ
したデフォーカス量と今回再測定したデフォーカス量と
を比較して小さい方をデフォーカス量として選択するデ
フォーカス量選択手段と、を備えていることを特徴とす
る焦点検出装置。
1. Defocus amount measuring means for measuring a defocus amount for a specific subject; contrast determining means for determining whether the specific subject has low contrast; and the contrast determining means determines that the specific subject is not low contrast. When the contrast determining means determines that the contrast is low, the defocus amount at that time is temporarily memorized, the defocus measuring means is re-operated, and the memorized defocus amount is combined with the current defocus amount. A focus detection device comprising: defocus amount selection means for comparing the measured defocus amounts and selecting the smaller one as the defocus amount.
【請求項2】  請求項1に記載の焦点検出装置はさら
に、前記デフォーカス量測定手段が測定したデフォーカ
ス量に基づいて合焦状態にあるかどうかを判断する合焦
判断手段を備え、前記デフォーカス量選択手段は、前記
合焦判断手段が合焦状態にあると判断したときには、コ
ントラストにかかわらずそのデフォーカス量を選択する
ことを特徴とする焦点検出装置。
2. The focus detection device according to claim 1, further comprising focus determination means for determining whether or not the focus state is in focus based on the defocus amount measured by the defocus amount measuring means, A focus detection device characterized in that the defocus amount selection means selects the defocus amount regardless of contrast when the focus determination means determines that the focus is in focus.
【請求項3】  請求項1または2に記載の焦点検出装
置はさらに、前記デフォーカス量選択手段が撰択したデ
フォーカス量に基づいて、合焦用レンズを駆動するレン
ズ駆動手段を備えていることを特徴とする焦点検出装置
3. The focus detection device according to claim 1 or 2, further comprising lens driving means for driving a focusing lens based on the defocus amount selected by the defocus amount selection means. A focus detection device characterized by:
【請求項4】  請求項2に記載の焦点検出装置はさら
に、前記合焦判断手段が合焦と判断したときに合焦表示
をする表示手段を備えていることを特徴とする焦点検出
装置。
4. The focus detection device according to claim 2, further comprising display means for displaying focus when said focus determination means determines that the object is in focus.
JP20660591A 1991-05-15 1991-05-15 Focus detection device Expired - Fee Related JP3140500B2 (en)

Priority Applications (16)

Application Number Priority Date Filing Date Title
JP20660591A JP3140500B2 (en) 1991-05-15 1991-05-15 Focus detection device
DE4244873A DE4244873C2 (en) 1991-05-15 1992-05-15 Automatic focussing camera automatically moving lens
GB9505187A GB2286499B (en) 1991-05-15 1992-05-15 Automatic focusing apparatus
GB9210487A GB2255870B (en) 1991-05-15 1992-05-15 Automatic focusing apparatus
DE4216073A DE4216073C2 (en) 1991-05-15 1992-05-15 Device for automatically focusing an optical system
DE4244874A DE4244874C2 (en) 1991-05-15 1992-05-15 Device for automatically focusing an optical system
GB9505186A GB2286498B (en) 1991-05-15 1992-05-15 Automatic focusing apparatus
FR9205919A FR2676552B1 (en) 1991-05-15 1992-05-15 AUTOMATIC FOCUSING DEVICE.
GB9505185A GB2286497B (en) 1991-05-15 1992-05-15 Automatic focusing apparatus
DE4244875A DE4244875C2 (en) 1991-05-15 1992-05-15 Device for automatically focusing an optical system
FR9212521A FR2684196B1 (en) 1991-05-15 1992-10-20 FOCUSING DETECTION DEVICE.
FR9212522A FR2684197B1 (en) 1991-05-15 1992-10-20 AUTOMATIC FOCUSING DEVICE.
US08/185,239 US5448329A (en) 1991-05-15 1994-01-24 Focus detecting apparatus for determining whether an object is moving
US08/466,889 US5664239A (en) 1991-05-15 1995-06-06 Automatic focusing apparatus
US08/467,801 US5640225A (en) 1991-05-15 1995-06-06 Backlash compensation for automatic focusing apparatus
US08/467,056 US5612761A (en) 1991-05-15 1995-06-06 Automatic focusing apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP20660591A JP3140500B2 (en) 1991-05-15 1991-05-15 Focus detection device

Publications (2)

Publication Number Publication Date
JPH04338707A true JPH04338707A (en) 1992-11-26
JP3140500B2 JP3140500B2 (en) 2001-03-05

Family

ID=16526159

Family Applications (1)

Application Number Title Priority Date Filing Date
JP20660591A Expired - Fee Related JP3140500B2 (en) 1991-05-15 1991-05-15 Focus detection device

Country Status (1)

Country Link
JP (1) JP3140500B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004309915A (en) * 2003-04-09 2004-11-04 Fuji Photo Film Co Ltd Imaging apparatus
US6962416B2 (en) 2002-05-31 2005-11-08 Canon Kabushiki Kaisha Projection type display apparatus
US7108375B2 (en) 2003-07-31 2006-09-19 Canon Kabushiki Kaisha Image projection apparatus

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6962416B2 (en) 2002-05-31 2005-11-08 Canon Kabushiki Kaisha Projection type display apparatus
US7422333B2 (en) 2002-05-31 2008-09-09 Canon Kabushiki Kaisha Projection type display apparatus
JP2004309915A (en) * 2003-04-09 2004-11-04 Fuji Photo Film Co Ltd Imaging apparatus
JP4533593B2 (en) * 2003-04-09 2010-09-01 富士フイルム株式会社 Imaging device
US7108375B2 (en) 2003-07-31 2006-09-19 Canon Kabushiki Kaisha Image projection apparatus
US7222973B2 (en) 2003-07-31 2007-05-29 Canon Kabushiki Kaisha Image projection apparatus

Also Published As

Publication number Publication date
JP3140500B2 (en) 2001-03-05

Similar Documents

Publication Publication Date Title
US5448329A (en) Focus detecting apparatus for determining whether an object is moving
US5896174A (en) Control system for inhibiting a calculating system in an automatic focusing device
KR0144623B1 (en) Automatic focusing apparatus
US4922279A (en) Automatic focus adjusting apparatus
JP2000121919A (en) Automatic focusing mechanism for collimating telescope
JP3215723B2 (en) Lens drive
JP3140500B2 (en) Focus detection device
JP3231397B2 (en) Automatic focusing device
JP4732065B2 (en) Autofocus control device
JP3193404B2 (en) Camera auto focus device
JP3222497B2 (en) Autofocus device
US5079581A (en) Automatic focus adjusting apparatus
JP3140501B2 (en) Automatic focusing device
JPH03212632A (en) Automatic focusing device
GB2286497A (en) Automatic focusing apparatus
US5878289A (en) Camera having automatic focusing system
JP6299146B2 (en) Automatic focusing apparatus and control method thereof
US5130732A (en) Camera system with auto-focusing device
KR0144625B1 (en) Automatic focusing device
USRE36546E (en) Automatic focusing device
FR2684197A1 (en) Automatic focusing device
JPH1164920A (en) Exposure controller for camera
JPH04211211A (en) Camera having depth priority zoom mode
JPH04350617A (en) Camera system
JPH05297265A (en) Automatic camera focus sensing device

Legal Events

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

Free format text: PAYMENT UNTIL: 20071215

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20081215

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20081215

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20091215

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20101215

Year of fee payment: 10

LAPS Cancellation because of no payment of annual fees