[go: up one dir, main page]

JP3140500B2 - Focus detection device - Google Patents

Focus detection device

Info

Publication number
JP3140500B2
JP3140500B2 JP20660591A JP20660591A JP3140500B2 JP 3140500 B2 JP3140500 B2 JP 3140500B2 JP 20660591 A JP20660591 A JP 20660591A JP 20660591 A JP20660591 A JP 20660591A JP 3140500 B2 JP3140500 B2 JP 3140500B2
Authority
JP
Japan
Prior art keywords
focus
moving object
time
defocus amount
lens
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP20660591A
Other languages
Japanese (ja)
Other versions
JPH04338707A (en
Inventor
昌広 中田
Original Assignee
旭光学工業株式会社
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 旭光学工業株式会社 filed Critical 旭光学工業株式会社
Priority to DE4216073A priority patent/DE4216073C2/en
Priority to DE4244875A priority patent/DE4244875C2/en
Priority to DE4244873A priority patent/DE4244873C2/en
Priority to GB9505187A priority patent/GB2286499B/en
Priority to GB9210487A priority patent/GB2255870B/en
Priority to GB9505186A priority patent/GB2286498B/en
Priority to DE4244874A priority patent/DE4244874C2/en
Priority to FR9205919A priority patent/FR2676552B1/en
Priority to GB9505185A priority patent/GB2286497B/en
Priority to FR9212522A priority patent/FR2684197B1/en
Priority to FR9212521A priority patent/FR2684196B1/en
Publication of JPH04338707A publication Critical patent/JPH04338707A/en
Priority to US08/185,239 priority patent/US5448329A/en
Priority to US08/467,056 priority patent/US5612761A/en
Priority to US08/466,889 priority patent/US5664239A/en
Priority to US08/467,801 priority patent/US5640225A/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

Landscapes

  • Automatic Focus Adjustment (AREA)
  • Exposure Control For Cameras (AREA)
  • Focusing (AREA)

Description

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

【0001】[0001]

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

【0002】[0002]

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

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

【0004】[0004]

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

【0005】[0005]

【発明の概要】この目的を達成するために本発明は、特
定被写体に対するデフォーカス量を測定するデフォーカ
ス量測定手段と、前記デフォーカス量を測定したときの
特定被写体が低コントラストであるかどうかを判断する
コントラスト判断手段と、前記コントラスト判断手段が
低コントラストではないと判断したときにはそのデフォ
ーカス量を選択し、前記コントラスト判断手段が低コン
トラストと判断したときにはそのときのデフォーカス量
を一時的にメモリして前記デフォーカス測定手段を再動
作させてデフォーカス量を再測定し、前記メモリしたデ
フォーカス量と今回再測定したデフォーカス量とを比較
して小さい方をデフォーカス量として選択するデフォー
カス量選択手段と、を備えたことに特徴を有する。
SUMMARY OF THE INVENTION In order to achieve this object, the present invention provides a defocus amount measuring means for measuring a defocus amount for a specific subject, and a method for determining whether the specific subject has a low contrast when the defocus amount is measured. 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 determined. The defocus amount is re-measured by re-operating the defocus measuring means in memory and the defocus amount is compared with the memorized defocus amount and the defocus amount re-measured this time, and the smaller one is selected as the defocus amount. And a focus amount selecting unit.

【0006】この構成によれば、特定被写体が低コント
ラストのときには、少なくともデフォーカス量測定を2
回実行し、求めた直前の2回のデフォーカス量の内、小
さい方のデフォーカス量を選択するので、測定ミスによ
る誤動作が減少する。
According to this configuration, when the specific subject has low contrast, at least two measurements of the defocus amount are performed.
This is executed twice, and the smaller defocus amount is selected from the two defocus amounts obtained immediately before, so that malfunctions due to measurement errors are reduced.

【0007】[0007]

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

【0008】測光用IC17は、被写体光束を受光する
受光素子を備えていて、この受光素子が受光量に応じて
発生する電気信号を対数圧縮し、周辺部制御用回路23
を介してメインCPU35にてA/D 変換する。メインC
PU35は、測光信号およびフィルム感度情報に基づい
て所定の露出演算を実行し、露出用の適正シャッタ速度
および絞り値を算出する。そして、これらのシャッタ速
度および絞り値に基づいて、露光機構(シャッタ機構)
25および絞り機構27を駆動して露光する。さらに周
辺部制御用回路23は、レリーズに際して、モータドラ
イブ回路29を介してミラーモータ31を駆動してメイ
ンミラー13のアップ/ダウン処理を行ない、露光終了
後には巻上モータ33を駆動してフィルムを巻上げる。
The photometric IC 17 has a light receiving element for receiving the light beam of the subject, and this light receiving element logarithmically compresses an electric signal generated in accordance with the amount of received light, and a peripheral control circuit 23.
A / D conversion is performed by the main CPU 35 via the. Main C
The PU 35 performs a predetermined exposure calculation based on the photometric signal and the film sensitivity information, and calculates an appropriate shutter speed and aperture value for exposure. Then, based on the shutter speed and the aperture value, an exposure mechanism (shutter mechanism)
The exposure is performed by driving the aperture 25 and the aperture mechanism 27. Further, at the time of release, 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, and after the exposure is completed, drives the winding motor 33 to release 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.
A split optical system that splits the subject light beam into two parts, and a CCD line sensor that receives and integrates the two split subject light beams (photoelectric conversion and accumulation of the charges). Then, the distance-measuring CCD sensor unit 21 outputs the integration data integrated by the CCD line sensor to the main CPU 35 as control means. The CCD sensor unit 21 for distance measurement is driven and controlled by the main CPU 35 and the peripheral control circuit 23. The CCD sensor unit 21 has a monitor element, and the peripheral control circuit 2
Reference numeral 3 detects the brightness of the subject via the 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の回転は、カメラボディ1
1のマウント部に設けられたジョイント47と撮影レン
ズ51のマウント部に設けられたジョイント57との接
続を介して撮影レンズ51側に伝達される。
The main CPU 35 calculates a defocus amount by a predetermined operation (predictor operation) based on the integrated data output from the distance-measuring CCD sensor unit 21, and based on the defocus amount, the AF motor 39.
Direction and number of rotations (number of pulses of encoder 41)
Is calculated. Then, the main CPU 35 determines the AF motor drive circuit 37 based on the rotation direction and the number of pulses.
The AF motor 39 is driven via the. Further main CP
U35 is the encoder 4 according to the rotation of the AF motor 39.
The pulse output by 1 is detected and counted, and when the count value reaches the number of pulses, the AF motor 39 is stopped. At the time of this drive, the main CPU 35 normally uses a DC
Before driving and before stopping, the AF motor 39 can be controlled at a constant speed based on the interval between output pulses of the encoder 41. The rotation of the AF motor 39 is controlled by the camera body 1.
The light is transmitted to the photographing lens 51 through a connection between the joint 47 provided on the mount portion 1 and the joint 57 provided on the mount portion of the photographing lens 51.

【0011】またメインCPU35は、プログラムをメ
モリしたROM35a、RAM35b、基準タイマー3
5cおよびカウンタ35dを内蔵し、メモリ手段として
のE2PROM43が接続されている。このE2PROM43には、
カメラボディ11特有の各種定数のほかに、本発明のA
F演算に必要な各種関数、定数などがメモリされてい
る。
The main CPU 35 includes a ROM 35a storing a program, a RAM 35b,
5c and a counter 35d are built in, and an E 2 PROM 43 as a memory means is connected. In this E 2 PROM 43,
In addition to the various constants specific to the camera body 11,
Various functions and constants required for the F operation are stored in the memory.

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

【0013】このメインCPU35は、カメラシステム
全体を総括的に制御する制御手段としての機能のほか
に、合焦判断手段、動体判断手段として機能し、CCD
センサユニット21および周辺部制御用回路23等とで
測距手段を構成し、AFモータ39等とでレンズ駆動手
段を構成する。
The main CPU 35 functions not only as control means for controlling the entire camera system but also as focus determination means and moving object determination means.
The sensor unit 21 and the peripheral control circuit 23 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 is provided with a focus adjusting mechanism 55 for driving the focusing lens group 53 in the optical axis direction, and a mount portion of the photographing lens 51. A lens side joint 57 that transmits the rotation of the lens 39 to the focus adjustment mechanism 55 and a lens CPU 61 that calculates various data of the photographing lens 51 are provided. The lens CPU 61 includes electric contacts 59, 4
9 and is connected to the peripheral control circuit 23 via the peripheral control circuit 23 to execute predetermined data communication with the main CPU 35 via the peripheral control circuit 23. Lens CP
Data transmitted from the U61 to the peripheral control circuit 23 include the open aperture value Av, the maximum aperture value Av, the focal length,
K value information and the like. The K value information is
The image plane formed by the taking lens is set to a unit distance (for example, 1
mm) This is data on the number of pulses of the encoder 41 (the number of rotations of the AF motor 39) necessary for the movement.

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

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

【0017】測光スイッチSWSがオンされてAF処理
に入ると、1回目の積分および演算により求められた駆
動量(駆動パルス数)に基づいてレンズ駆動(AFモー
タ39が駆動)を行なう。なお本実施例では、測光スイ
ッチSWSがオンされて1回目の積分および演算の結
果、デフォーカス量(または駆動パルス数)が一定量よ
りも大きいときには、上記レンズ駆動中も積分および演
算を繰り返す。そして、その繰り返し中にデフォーカス
量が一定値よりも小さくなったときには、その後の積分
および演算を中止し、直前(最新)の積分および演算に
より求めた駆動パルス数に基づいてレンズ駆動をする。
なお以下、積分および演算処理を測距処理ともいう。
When the photometric switch SWS is turned on and the AF process starts, the lens is driven (the AF motor 39 is driven) based on the driving amount (the number of driving pulses) obtained by the first integration and calculation. In this embodiment, when the photometry switch SWS is turned on and the result of the first integration and calculation results in 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 the fixed value during the repetition, the subsequent integration and calculation are stopped, and the lens is driven based on the number of drive pulses obtained by the immediately preceding (latest) integration and calculation.
Hereinafter, the integration and calculation processing is also referred to as distance measurement processing.

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

【0019】また、測距およびレンズ駆動の継続処理に
おいて、連続して複数回(本実施例では3回)一度も合
焦しなかったときには、被写体が移動している(動体)
と判断して、動体予測AFモードに入る。なお、測光ス
イッチSWSがオンされている間は測距、レンズ駆動処
理を継続し、一度合焦した後に、3回連続して非合焦状
態が続いたときに動体予測AF処理に入る構成にしても
よい。
In the continuation processing of the distance measurement and the lens drive, if the subject is not focused once in a plurality of times (three times in this embodiment), the subject is moving (moving object).
And enters the moving object prediction AF mode. Note that the distance measurement and the lens driving process are continued while the photometry switch SWS is on, and then the moving object prediction AF process is started when the in-focus state continues three times after focusing once. You may.

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

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

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

【0023】また、倍速レンズ駆動により合焦用レンズ
53が行き過ぎることがある。例えば、図4では、倍速
レンズ駆動M3 によりデフォーカスパルス数DP3 だけ
行過ぎている。この先回り量(デフォーカスパルス数D
3 )が所定値以下の場合には被写体が移動を継続して
いるとみなしても問題はないので、演算C3 が終了した
後に、動体追従速度S3 で倍速レンズ駆動M5 を行な
う。
Further, the focusing lens 53 may be excessively moved by driving the double-speed lens. For example, in FIG. 4, the number of defocus pulses DP 3 has passed by double speed lens drive M 3 . This advance amount (the number of defocusing pulses D
If P 3 ) is equal to or less than the predetermined value, there is no problem even if it is assumed that the subject is continuing to move. Therefore, after the operation C 3 is completed, the double-speed lens drive M 5 is performed at the moving object following speed S 3 .

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

【0025】図5において、積分I4 により所定量以上
の行き過ぎデフォーカスパルス数DP4 が得られたとき
には、演算C4 に要した演算時間t4 の間、倍速レンズ
駆動を行なわずに待つ。そして、次の積分I5 の開始と
同時に、前回の演算C4 で求めた被写体追従速度S3
追従レンズ駆動M7 を行なう。積分I5 のデータによ
り、所定量以内のデフォーカスパルス数DP5 が得られ
たときには、通常の倍速レンズ駆動を行なう追従AF処
理を行なう。
[0025] In FIG. 5, when a predetermined amount or more of excesses defocus pulse number DP 4 was obtained by integration I 4 during the calculation time t 4 required for the operation C 4, waits without speed lens driving. Simultaneously with the start of the next integration I 5, perform follow-up lens drive M 7 by the object following speed S 3 obtained in previous calculation C 4. The data of the integration I 5, when the defocus pulse number DP 5 within a predetermined amount resulting performs tracking AF process for normal speed lens drive.

【0026】しかし、この倍速レンズ駆動を行なわない
チェックを2回繰り返しても被写体像が合焦範囲内に入
らないときには、被写体の移動速度が遅くなったか、被
写体が停止したか、あるいは被写体の移動方向が変わっ
たと考えられるので、動体予測AFモードから抜け、通
常のAFモードに戻り、図2に示した処理を行なう。2
回チェックすることにより、動体の状態が変化したこと
を確実に検知できる。なお、本実施例では、チェックを
2回繰り返しても行き過ぎとなるときに動体予測モード
から抜けたが、この回数に限定されない。また、チェッ
ク処理では、追従レンズ駆動も行なわない構成にしても
よい。
However, if the subject image does not fall within the in-focus range even if the check for not driving the double-speed lens is repeated twice, the moving speed of the subject becomes slow, the subject stops, or the subject moves. Since it is considered that the direction has changed, the process exits from the moving object prediction AF mode, returns to the normal AF mode, and performs the processing shown in FIG. 2
By checking the number of times, it is possible to reliably detect that the state of the moving body has changed. In the present embodiment, the process exits from the moving object prediction mode when the number of times of overtaking is too large even if the check is repeated twice, but the present invention is not limited to this number. In the checking process, the tracking lens may not be 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 Body Following Speed (Subject Image Moving Speed)] A specific method of calculating the moving body following speed S will be described with reference to FIG. 4 and FIG. Initial moving object following speed S 1
Is calculated based on the number of defocus pulses DP 1 obtained by the first integration I 1 after entering the moving object prediction mode and the time T 1 from the intermediate point of the previous integration I to the intermediate point of the current integration I 1 It is obtained by the formula. Incidentally, X 1 is an output period of the pulse encoder 41 outputs (ms). X 1 = T 1 / DP 1 (ms) S 1 = 1 / X 1 = DP 1 / T 1 (pulses / ms)

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

【0029】『動体追従速度Sn の計算2』 動体追従動作中は、下記の式により動体追従速度Sn
求める。先ず、前回の積分I1 の中間点から今回の積分
2 の中間点までの時間T2 内に、動体追従速度S1
当のスピードで被写体像が移動していたと仮定した場合
の移動量に相当するレンズ駆動パルス数MP1 を下記式
により求める。 MP1 =T2 ×S1
[0029] In the moving object tracking operation "compute second moving object following speed Sn" obtains the moving object tracing speed S n by the following equation. First, the time T 2 of the midpoint of the previous integration I 1 to the current midpoint of the integration I 2, the movement amount on the assumption that the subject image was moving at a moving object following speed S 1 corresponding speed the lens driving pulse number MP 1 the corresponding determined by the following equation. MP 1 = T 2 × S 1 ...

【0030】次に、前回の積分I1 の中間点から今回の
積分I2 の中間点までの時間T2 と、時間T2 内の移動
量に相当するパルス数MP1 と今回のデフォーカスパル
ス数DP2 とから、動体追従速度S2 が得られるAFパ
ルス出力の周期X2 を求め、このAFパルス出力の周期
2 から動体追従速度S2 を求める。 X2 =T2 /(MP1 +DP2 ) (ms)… S2 =1/X2 =(MP1 +DP2 )/T2 (ハ゜ルス /ms)…
Next, the time T 2 from the intermediate point of the previous integration I 1 to the intermediate point of the current integration I 2 , the number of pulses MP 1 corresponding to the movement amount within the time T 2 , and the current defocus pulse several DP 2 Prefecture, determine the period X 2 of AF pulses output the moving object following speed S 2 obtained, obtains the moving object following speed S 2 from the period X 2 of the AF pulse output. X 2 = T 2 / (MP 1 + DP 2 ) (ms) ... S 2 = 1 / X 2 = (MP 1 + DP 2 ) / T 2 (pulses / ms) ...

【0031】以上の式で求められた動体追従速度S2
で、演算C2 に要した時間t2 間、動体追従速度S2
2倍速でレンズ駆動M2 を行ない、この2倍速駆動終了
後、積分I3 をおこなっている間、動体追従速度S2
追従レンズ駆動M3 を行なって被写体の移動に追従す
る。
The moving object following speed S 2 obtained by the above equation
In, between the time required for the calculation C 2 t 2, performs lens drive M 2 at double speed of the moving object following speed S 2, after the double speed driving ends, while doing the integral I 3, the moving object following speed S 2 in performs a follow-up lens drive M 3 follow the movement of the object.

【0032】なお、この計算においてデフォーカスパル
ス数DPはスカラー量としてあるので、前ピン、後ピン
のときとで符号が変わる。したがって、行過ぎた場合は
2時間内の移動量に相当するパルス数MP1 から今回
のデフォーカスパルス数DP2 を減算することになる。
In this calculation, since the number DP of defocus pulses is a scalar quantity, the sign changes between the front focus and the rear focus. Therefore, by subtracting the current defocus pulse number DP 2 from the number of pulses MP 1 corresponding to the amount of movement of the T 2 hours when overshoot.

【0033】追従の計算を一般式で表わすと、下記のよ
うになる。 MPn-1 =Tn ×Sn-1 … Xn =Tn /(MPn-1 ±DPn ) (ms)… Sn =1/Xn (ハ゜ルス /ms)… 以上の、、式による演算、その演算結果に基づく
レンズ駆動および積分を繰り返すことにより、図に示し
た動体追従が可能になる。なお、本実施例の計算におい
て、計算上の被写体像の移動パルス数MPn-1 、デフォ
ーカスパルス数DPn は絶対値としているので、式の
右辺のデフォーカスパルス数±DPn は、手前のときに
はプラス(+)、行過ぎのときにはマイナス(−)とす
る。
The following calculation is represented by the following general formula. MP n-1 = T n × S n-1 ... X n = T n / (MP n-1 ± DP n ) (ms)... S n = 1 / X n (pulses / ms). , And the lens drive and integration based on the calculation result are repeated, whereby the moving object following shown in the figure becomes possible. In the calculation of the present embodiment, the calculated number of movement pulses MP n−1 of the subject image and the number of defocus pulses DP n in the calculation are absolute values, so the number of defocus pulses ± DP n on the right side of the equation is Is plus (+) at the time of, and minus (-) at the time of overrun.

【0034】以上のレンズ駆動において、演算終了後は
動体追従速度S1 の2倍速で演算に要した時間だけレン
ズ駆動しているが、これは、レンズ駆動を停止してから
次のレンズ駆動終了までの間に被写体像が移動する量に
対応する量だけ像面を移動させるためである。つまり、
n ×(レンズ停止時間+レンズ駆動時間)=レンズ駆
動速度×レンズ駆動時間、という関係を、より簡単な演
算により満足させるためである。したがって、上記式を
満足すれば、他の動体追従速度でレンズ駆動を行なって
もよい。
[0034] In the above lens driving, after the operation completion is only lens driving time required for the operation at double speed of the moving object following speed S 1, which is the next lens drive exits stop lens driving This is because the image plane is moved by an amount corresponding to the amount by which the subject image moves during this time. That is,
This is because the relationship of Sn × (lens stop time + lens drive time) = lens drive speed × lens drive time is satisfied by a simpler calculation. Therefore, if the above expression is satisfied, the lens may be driven at another moving object following speed.

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

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

【0037】そこで本実施例では、演算終了時にレリー
ズスイッチSWRがオンされたかどうかをチェックし、
オンされていたときには、演算時間t3 +レリーズタイ
ムラグRTL相当時間、動体追従速度S3 の2倍速でレ
ンズ駆動M3 を行ない、レリーズタイムラグRTL分、
合焦用レンズ53を先回りさせる。
Therefore, in the present embodiment, it is checked whether or not the release switch SWR is turned on at the end of the calculation.
When that has been turned on, the operation time t 3 + release time lag RTL corresponding time, performs lens drive M 3 at double speed of the moving object following speed S 3, release time lag RTL component,
The focusing lens 53 is moved forward.

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

【0039】以上は被写体が近づいてくるときの処理で
あるが、被写体が遠ざかっているときに先回りしすぎる
と、いわゆる後ピンになってしまう。被写界深度は、合
焦点よりも近距離側が浅いので、後ピンよりも前ピンの
方がよい。しかも、被写体が遠ざかる場合、被写体移動
速度が一定のときには、像面移動速度が暫時遅くなる。
[0039] Although is a process of when the object is approaching, too proactively when the object is moving away, it becomes the so-called after the pin. Since the depth of field is shallower on the near side than the focal point, the front focus is better than the rear focus. In addition, when the subject moves away and the moving speed of the subject is constant, the moving speed of the image plane is temporarily reduced.

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

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

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

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

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

【0045】次に、AF処理を行ない、所定のループ時
間が経過したかどうかをチェックし、ループ時間が経過
するまでAF処理を繰り返す(S117、S119)。
ループ時間が経過するとS109に戻り、S109〜S
119のループ処理を繰り返す。
Next, AF processing is performed to check 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 elapses, the process returns to S109, and S109 to S
The loop processing of 119 is repeated.

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

【0047】レリーズスイッチSWRがオンし、かつレ
リーズ許可が出ているときにはレリーズ処理に入る。レ
リーズ処理では、先ずミラーモータ31を起動してミラ
ーアップ処理を行なうとともに、絞り機構27を起動し
て絞りをS113で算出した値まで絞り込む(S13
1、S133)。
When the release switch SWR is turned on and release permission has been issued, release processing is started. In the release process, first, the mirror motor 31 is activated to perform the mirror-up process, and the aperture mechanism 27 is activated to reduce the aperture to the value calculated in S113 (S13).
1, 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, S
137). When the exposure is completed, the mirror motor 31 is activated to perform the mirror down process and the film winding motor 33.
Is started to wind up the film by one frame, and the process returns to S107 (S139).

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

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

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

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

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

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

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

【0056】『再積分、合焦チェック処理』 次に、再積分、合焦チェック処理に関するサブルーチン
について、図11Aおよび図11Bを参照して説明す
る。
[Reintegration and Focus Check Processing] Next, a subroutine relating to the reintegration and focus check processing will be described with reference to FIGS. 11A and 11B.

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

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

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

【0060】S273でAFロックフラグを立てると、
被写体がハイコントラストかつ動体予測禁止フラグが下
りていることを条件に、所定時間、レリーズ割込みが入
るのを待ち、所定時間内にレリーズ割込みが入らなけれ
ば、AF時レリーズ許可フラグをクリアしてレリーズを
禁止し、AFロックフラグをクリアしてAF処理を可能
にする(S275、S277、S279、S281)。
そして、AFロック処理に入り、ループ時間が経過する
のを待って、ループ時間が経過したらメインルーチンの
S109に戻る(S283)。なお、AFロック処理
は、測光スイッチSWSがオンの間はAF動作を行なわ
ない処理である。被写体がハイコントラストでないか、
動体予測禁止フラグが立っていれば、ウエイト処理を行
なわずにAFロック処理に進む(S275、S277、
S283)。
When the AF lock flag is set in S273,
Waiting for a release interrupt for a predetermined period of time on condition that the subject has a high contrast and the moving object prediction prohibition flag is falling, and if the release interrupt is not received within the predetermined time, clear the release permission flag during AF and release. Is prohibited, and the AF lock flag is cleared to enable the AF process (S275, S277, S279, S281).
Then, the process enters the AF lock process, waits for the elapse of the loop time, and returns to S109 of the main routine after the elapse of the loop time (S283). 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 high contrast,
If the moving object prediction prohibition flag is set, the process proceeds to the AF lock process without performing the weight process (S275, S277,
S283).

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

【0062】この動体チェック処理は、被写体が動体で
あるかどうかを確認するために行なう処理である(図
2、3参照)。動体チェック処理では、先ず、2次合焦
幅、合焦、レリーズ許可およびAFロックの各フラグを
クリアし、表示装置45の合焦表示用LEDおよび電子
ブザー46をオフする(S301)。
This moving object check process is a process for confirming whether or not the subject is a moving object (see FIGS. 2 and 3). In the moving object check processing, first, the flags of the secondary focus width, the focus, the release permission, and the AF lock 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, the reintegration flag is checked. If the reintegration flag is cleared, the process is the first process, so the process jumps to the pulse calculation process. (S303, S3
05). If the directions are the same, the moving object determination counter is decremented by 1 on the condition that the high contrast and the moving object prohibition flag are cleared (S307, S309,
S311, S313). The initial value of the moving object determination counter is set to "3". When the direction is not the same, when the contrast is not high, or when the prediction of the moving object is prohibited, the process directly jumps to the pulse calculation process without performing the counting process (S307, S309, S311).

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

【0065】S285の動体予測モードチェックの際に
すでに動体予測モードに入っていれば、合焦フラグ、レ
リーズ許可フラグおよびAFロックフラグをクリアし、
表示装置45の合焦表示用LEDおよび電子ブザー46
をオフする(S321)。
If the moving object prediction mode has already been entered at the time of the moving object prediction mode check in S285, the in-focus flag, the release permission flag and the 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 the number of defocus pulses is a value for the subject at an intermediate point of the integration time.

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

【0068】また、前記合焦チェック処理におけるS2
67の動体予測モードチェックにおいて、合焦範囲内
で、すでに動体予測モードに入っていれば、上記S32
3に入る。
In step S2 in the focusing check process,
In the moving object prediction mode check in step 67, if the moving object prediction mode has already been entered within the focusing range, the process proceeds to step S32.
Enter 3.

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

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

【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 to the counter as the number of AF pulses when the backlash drive flag is set, and the DC drive of the AF motor 39 is started (when the backlash drive flag is set). S355, S357). Note that the DC drive in the present embodiment means that the AF motor 39 is driven almost directly.

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

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

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

【0075】また、バックラッシュ駆動の必要があると
き、動体予測モードに入っているとき、あるいはカウン
タ値が所定パルスよりも小さいときは、AFパルスカウ
ンタ値と所定のパルス数とを比較してAFカウンタ値が
減速所定パルス数以下になるまで待つ(S359〜S3
65、S381、S383)。
When the backlash drive is required, when the moving object predicting mode is entered, or when the counter value is smaller than a predetermined pulse, the AF pulse counter value is compared with a predetermined pulse number to perform 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 smaller than the predetermined number of deceleration pulses, the AF pulse counter is used when the backlash drive is not performed.
After the brake is applied to the motor 39, the process jumps to the constant speed control process (S385, S387).

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

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

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

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

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

【0082】S411では、積分中かつ動体追従中であ
るかどうかをチェックし、積分かつ動体追従中であれば
積分終了をチェックするためにS459へ飛び、積分中
でないか、あるいは動体追従駆動中でなければS413
に進む(S411)。
In step S411, it is checked whether the integration is being performed and the moving body is being tracked. If the integration is being performed and the moving body is being tracked, the process jumps to step S459 to check whether the integration is completed. If not, S413
(S411).

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

【0084】S423では、パルスカウントが終了した
か、または動体追従の駆動時間が終了したかどうかをチ
ェックする。そして、いずれかが終了していればブレー
キ処理に進み、いずれも終了していなければ端点チェッ
ク処理に進む(S423、S437、S425)。
In S423, it is checked whether the pulse count has been completed or whether the drive time for moving object tracking has been completed. If any of them has been completed, the process proceeds to the brake process, and if none of them has been completed, the process proceeds to the end point check process (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 or not 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 number of speed switching pulses, and when the count value has become smaller, the drive speed is switched to low speed, and then the AF motor 39 is braked. Proceed to S433 (S427, S4
29, S431). In step S433, it is checked whether the AF motor 39 is being driven.
After the brake is applied to No. 9, the process returns to S401. 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)。
In step S423, if the pulse count has ended or the driving time for following the moving object has ended, the flow advances to step S437 to brake 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 the release process (S439, S441, S441).
443). If the mode is not the moving object prediction mode or the AF lock flag is cleared, it is checked whether or not the backlash drive is being performed. If the backlash drive is performed, the process proceeds to the backlash drive end processing. To check the loop time, and when the loop time elapses,
Returning to the E process, the process proceeds to the reintegration process if the loop time has not elapsed (S445, S446, S447).

【0087】積分処理では、積分、演算に関する初期設
定を行ない積分をスタートして積分中フラグを立てる
(S451、S453、S455)。そして、動体追従
中であれば、一定速度制御処理(S401)に飛び、動
体追従中でなければ積分終了かどうかのチェックを行な
う(S457、S459)。
In the integration process, initialization is performed for integration and calculation, integration is started, and an integration flag is set (S451, S453, S455). If it is following the moving object, the process jumps to the constant speed control process (S401). If it is not following the moving object, it is checked whether or not the integration is completed (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 the predetermined time, it is considered that the subject brightness is low. Therefore, the moving object prediction mode prohibition flag is set, and the process proceeds to S465. If the integration time is short, the process directly proceeds to S465 (S459, S461, S4).
63). Then, if not following the moving body, the process returns to S459,
It waits until the integration is completed (S459 to S465). If the moving object is being tracked, the process returns to S413 because the constant speed control is being performed. When the integration is completed, the brake is applied to the AF motor 39 if the tracking drive is being performed, the integration data is input from the distance measurement sensor unit 21, the defocus amount is calculated, and the process returns to the step next to the step where the integration was started. (S46
7, S469, S471, S473).

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

【0090】S505では、先ず相関法等により位相差
を計算する。そして、10bit セレクトモードであれば
10bit セレクト処理のS551に進み、10bit セレ
クトモードでなければ通常の計算処理のS509に進む
(S507)。最初に入ったときには10bit セレクト
モードに入っていないのでS509に進む。なお、10
bit セレクトモードとは、CCDラインセンサの基準部
と参照部の積分データの一致度(相関度)が余り良くな
いときに、基準部と参照部の内からそれぞれ複数の領域
の10bit 分の領域を順に選択して一致度のよい(相関
度の高い)領域を求める処理のことである。
In S505, first, a phase difference is calculated by a correlation method or the like. If the mode is the 10-bit select mode, the process proceeds to S551 of the 10-bit select process. If the mode is not the 10-bit select mode, the process proceeds to S509 of the normal calculation process (S507). When entering first, the process proceeds to S509 because the 10-bit select mode has not been entered. In addition, 10
In the bit select mode, when the degree of coincidence (correlation) between the integrated data of the reference part and the reference part of the CCD line sensor is not very good, a 10-bit area of each of a plurality of areas is selected from the reference part and the reference part. This is a process of sequentially selecting and obtaining a region having a high degree of coincidence (high correlation).

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

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

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

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

【0095】10bit セレクトモードフラグが立つと、
S507から10bit セレクト処理に入る。10bit セ
レクト処理では、先ず、セレクトされた10bit に基づ
くデフォーカス量の有効値が一度で求まっているかどう
かをチェックし、求まっていれば、コントラストが前回
よりも大きく、かつ前回の2倍よりも大きければ前回の
DATAを無効にするために10bit セレクトデフォーカス
OKフラグをクリアしてS559に進む(S551、S
553、S555、S557)。10bit セレクトデフ
ォーカス量が一度でも求まっていない時はS559に進
み、今回のコントラストが前回の2倍以下のときには、
10bit セレクトデフォーカスOKフラグをクリアせず
にS559に進む(S551〜S557)。コントラス
トが前回よりも小さいときには、今回セレクトされた1
0bit データは使用しないのでS571に飛ぶ(S55
1、S555)。
When the 10-bit select mode flag is set,
The process enters a 10-bit select process from S507. In the 10-bit select processing, first, it is checked whether or not the effective value of the defocus amount based on the selected 10-bit has been obtained at one time. If the previous
In order to invalidate the DATA, the 10-bit select defocus OK flag is cleared, and the process proceeds to S559 (S551, S551).
553, S555, and S557). If the 10-bit select defocus amount has not been obtained even once, the process proceeds to step S559.
The process proceeds to S559 without clearing the 10-bit select defocus OK flag (S551 to S557). If the contrast is smaller than the previous time,
Since 0-bit data is not used, the process jumps to S571 (S55).
1, S555).

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

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

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

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

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

【0101】『追従スピード補正計算1』 追従スピード補正計算1では、先ず、下記式により被写
体追従速度Sn を算出する(S617)。 Xn =Tn /(MPn-1 +DPn ) Sn =1/Xn =(MPn-1 +DPn )/Tn
[0102] In "tracing speed correction calculation 1" tracing speed correction calculation 1 first calculates the object tracing speed S n by the following equation (S617). X n = T n / (MP n-1 + DP n) S n = 1 / X n = (MP n-1 + DP n) / T n

【0102】次に、動体追従時間Cn (積分データ入力
時間と演算時間の和)を設定する(S621)。そし
て、今回の演算結果から合焦状態にあり、かつレリーズ
スイッチSWRがオンされていれば、AFロックフラグ
をセットし、タイムラグ補正時間(積分データ入力時間
+演算時間Cn +レリーズタイムラグ相当時間)を計算
し、被写体が遠ざかるときには一定速度制御時間をタイ
ムラグ補正時間の1/2にセットし、被写体が近づいて
くるときには、一定速度制御時間をタイムラグ補正時間
にセットしてリターンする(S623、S625、S6
27、S629、S631、S633、S635)。
Next, the moving object following time C n (the sum of the integration data input time and the calculation time) is set (S621). Then, there the current calculation result in focus, and if the release switch SWR is turned on, and sets the AF lock flag, time lag correction time (integration data input time + calculation time C n + release time lag equivalent time) When the subject moves away, the constant speed control time is set to の 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, S6
27, S629, S631, S633, S635).

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

【0104】レンズの前回と今回の駆動方向が異なると
きは、MPn-1 −DPn ≧0ならばMPn-1 −DPn
算出し、下記式 Xn =Tn /(MPn-1 −DPn ) Sn =1/Xn =(MPn-1 −DPn )/Tn により動体追従スピードSn の補正計算を実行し、レリ
ーズスイッチSWRの状態をチェックする(S639、
S641)。
When the previous and current driving directions of the lens are different, if MP n−1 −DP n ≧ 0, MP n−1 −DP n is calculated, and the following equation is obtained: X n = T n / (MP n− 1 -DP n) by S n = 1 / X n = (MP n-1 -DP n) / T n perform the correction calculation of the moving object tracing speed S n, checks the status of the release switch SWR (S639,
S641).

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

【0106】『合焦チェック処理』 図16を参照して、合焦チェック処理について説明す
る。この合焦チェック処理では、動体追従中のときは合
とみなす範囲を広げ、レリーズできる可能性を高くす
る。
[Focus Check Process] The focus check process will be described with reference to FIG. In this focusing check process, the range of focusing is expanded when the moving object is being tracked , increasing the possibility of release.
You.

【0107】先ず、AFモードのときにはあらかじめ設
定された合焦幅(合焦とみなす所定のデフォーカス量)
のままとし、動体予測モードであれば合焦幅を広げてか
ら、今回のデフォーカス量が所定量よりも小さいかどう
かをチェックする(S701、S703、S705)。
First, in the AF mode, a preset focusing width (a predetermined defocus amount regarded as focusing )
If the moving object prediction mode is set, the focusing width is expanded, and 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 focusing width), the low-contrast out-of-focus 1
The process returns after resetting the second time flag (S719).

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

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

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

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

【0113】以上のように、この処理に始めて入った
きに非合焦の場合に、ローコントラストのときにはロー
コン時非合焦1回目フラグをセットしてリターンするこ
とにより、合焦から非合焦に変わっても、非合焦1回目
では非合焦表示処理(S301の処理)が行なわれない
ので、合焦表示のちらつきが防止される。なお、本実施
例では非合焦が2回連続すると非合焦表示を行なう構成
であるが、非合焦表示に変わる非合焦の回数は任意であ
り、例えば非合焦が連続3回継続したときに非合焦表示
を行なう構成にしてもよい。
As described above, when the process is not focused on for the first time, the low-contrast first out-of- focus flag is set at the time of low contrast, and the process returns. Even if the focus changes from in-focus to out-of-focus, the out-of-focus display process (the process of S301) is not performed at the first out-of-focus time, so that the in-focus display flicker is prevented. In this embodiment, the out-of-focus display is performed when the out-of-focus state is repeated twice. However, the number of times of the out-of-focus state changing to the out-of-focus state is arbitrary. In such a case, an out-of-focus display may be performed.

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

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

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

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

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

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

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

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

【0122】そして、上記式で算出した駆動時間分、
追従速度S1 の3倍速で一定速度制御レンズ駆動M1
行なう。この一定速度制御レンズ駆動M1 により、合焦
用レンズ53を短時間で合焦付近まで移動することがで
きる。なお、この3倍速駆動は、(T1 +I1 /2+C
1 )時間だけ被写体像移動速度S1 の2倍速でレンズ駆
動したのとほぼ同様の効果が得られる。
Then, for the driving time calculated by the above equation,
Performing constant speed control lens drive M 1 at triple speed following speed S 1. The constant speed control lens drive M 1, can be moved to the vicinity of the focus of the focusing lens 53 in a short time. Incidentally, the 3-speed driving, (T 1 + I 1/ 2 + C
Substantially the same effect as 1) time just to that lens driving at double speed of the object image moving speed S 1 is obtained.

【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 the control lens drive M 1 at the triple speed is completed, the integration I 2 and the calculation C 2 are performed while performing the constant speed control (lens drive M 2 ) at the following speed S 1 . In this operation C 2, the time T 2 of the midpoint of the previous integration I 1 to the current midpoint of the integration I 2, the subject image at a tracing speed S 1 is of the object image when it is assumed to have been moved the number of pulses MP 1 corresponding to the amount of movement calculated by the same equation as the above equation (MP 1 = T 2 × S 1). Further, the speed S 2 at which the subject image has moved during the time T 2 is obtained by the following expression similar to the above and the expression. X 2 = T 2 / (MP 1 + DP 2 ) S 2 = 1 / X 2 During integration I 3 and calculation C 3 , the constant speed control lens drive M 3 is performed at the following speed S 2 .

【0124】以後同様に、時間Tn 内に被写体像がS
n-1 の速度で移動していたと仮定した場合の被写体の移
動量に相当するパルス数MPn-1 (追従中の演算2回目
以降はMPn-1 =Tn ×Sn-2 )により追従速度Sn
求めて、積分In+1 および演算Cn+1 を行なっている
間、追従速度Sn により(一定速度制御)レンズ駆動M
n+1 を行なう。
Thereafter, similarly, within the time T n ,
The number of pulses MP n-1 corresponding to the amount of movement of the subject when it is assumed that the object is moving at the speed of n-1 (MP n-1 = T n × S n-2 for the second and subsequent operations during tracking) seeking tracing speed S n, the integral I n + 1 and the calculation C n + 1 while performing, tracing speed S n by (constant speed control) lens drive M
Perform n + 1 .

【0125】以上の追従制御により、移動する被写体に
対して常時ほぼ合焦状態が維持される。また、上記追従
動作中にレリーズスイッチがオンされたときには、ミラ
ーアップしている間も、直前に求めた追従速度Sn で一
定速度制御を行なう(図19参照)。このミラーアップ
中の一定速度制御により、現実にシャッタ先幕が走行を
開始(露光開始)するときに、ほぼ合焦状態となってい
る。
By the following control described above, a substantially in-focus state is always maintained for the moving subject. Further, when the release switch is turned on during the follow-up operation, while the mirror-up also performs constant speed control at a tracing speed S n obtained immediately before (see Figure 19). By the constant speed control during the mirror-up operation, when the shutter first curtain actually starts running (exposure start), it is almost in focus.

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

【0127】次に、動体追従中かどうかをチェックし、
動体追従中でなければ、追従前の被写体像移動速度(追
従速度) 1 を計算してリターンする(S803、S8
05)。動体追従中であり、かつ追従中演算1回目であ
れば、時間T2 の間に被写体像が移動した移動量に相当
するパルス数MP1 を算出し、追従中2回目以降は、時
間Tn の間に被写体像が移動した移動量に相当するパル
ス数MPn-1 を算出する(S803、S807、S80
9、S811)。
Next, it is checked whether or not the moving object is being tracked.
If the moving object is not being followed, the moving speed of the subject image before following (following speed) S 1 And returns (S803, S8)
05). Is under the moving object tracking, and if a follow-up during operation first, calculates the number of pulses MP 1 that corresponds to the moving amount of the object image has moved during the time T 2, the second and subsequent being followed, the time T n Is calculated, the number of pulses MP n-1 corresponding to the movement amount of the subject image during (S803, S807, S80)
9, S811).

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

【0129】『追従速度補正計算2』 追従速度補正計算2では、先ず、下記式により動体追従
速度Sn を算出する(S821)。 Xn =Tn /(MPn-1 +DPn ) Sn =1/Xn
[0129] In the "following speed correction calculation 2" following speed correction calculation 2 first calculates the moving object tracing speed S n by the following equation (S821). X n = T n / (MP n-1 + DP n) S n = 1 / X n

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

【0131】また、レンズの駆動方向が異なっていたと
きには、MPn-1 −DPn ≧0であれば、下記式により
被写体追従速度Sn を求める(S815、S833、S
835、S837)。 Xn =Tn /(MPn-1 −DPn ) Sn =1/Xn =(MPn-1 −DPn )/Tn
[0131] Further, when the driving direction of the lens are different, if MP n-1 -DP n ≧ 0 , obtains the object tracing speed S n by the following equation (S815, S833, S
835, S837). X n = T n / (MP n-1 -DP n) S n = 1 / X n = (MP n-1 -DP n) / T n

【0132】そして、合焦状態にあれば、動体追従中行
き過ぎフラグをクリアしてリターンする(S839、S
841)。合焦状態になければ、動体行き過ぎ中フラグ
が立っているかどうかをチェックし、すでに立っていれ
ば行き過ぎて2回目の処理なので、動体予測モードをク
リアしてリターンする(S843、S849)。つま
り、動体追従中に1回行き過ぎたときには誤差等による
可能性があるので、2回行き過ぎたときに抜ける構成に
している。なお、1回で抜ける構成でも、3回以上の任
意の回数で抜ける構成にしてもよい。
If the camera is in the in-focus state, the over-traveling flag during moving object tracking is cleared and the process returns (S839, S839).
841). If it is not in the in-focus state, it is checked whether the moving object overrun flag is set, and if it is already up, it is the second process since it is overrunning, so the moving object prediction mode is cleared and the process returns (S843, S849). In other words, there is a possibility of an error or the like if the vehicle goes too far during the following of the moving object.
Have . It should be noted that the configuration may be such that the user exits once, or the configuration may exit three or more times.

【0133】動体追従中行き過ぎフラグが未だ立ってい
なければ、行き過ぎて1回目の処理なので、動体追従中
行き過ぎフラグをセットして、積分データを入力および
演算時間Cn をセットし、演算時間Cn 分待ってから再
積分処理に進む(S843、S845、S847)。
[0133] Unless standing body follow in excessive flag is still, so excesses with first processing, by setting the moving object tracking in excesses flag, sets the input and calculation time C n integral data, calculation time C n After waiting for minutes, the process proceeds to the reintegration process (S843, S845, S847).

【0134】『一定速度制御2』 次に、別の一定速度制御2の処理について、図21に示
したサブルーチンを参照して説明する。先ず、パルス間
隔(Xn )をセットする。そして、動体追従中であれ
ば、動体追従速度Sn (1/Xn )をセットする。さら
に動体追従に入って1回目の処理であれば、動体追従速
度Sn の3倍速をセットし直すが、2回目以降の処理で
あれば変更しない(S853、S855、S857、S
859)。演算が終了していれば(演算終了フラグ=
1)、AFパルス、動体追従速度Snなどのデータの入
力およびセットをし、演算終了フラグをクリアしてS8
51に戻る(S861、S863、S865)。
[Constant Speed Control 2] Next, another constant speed control 2 will be described with reference to a subroutine shown in FIG. First, the pulse interval (X n ) is set. If the moving object is being followed, the moving object following speed S n (1 / X n ) is set. In addition, if the first process enters the body follow-up, but re-set the 3-speed of a moving object following speed S n, does not change if the second or subsequent processing (S853, S855, S857, S
859). If the operation is completed (operation end flag =
1), AF pulse, and an input and a set of data, such as moving object tracing speed S n, and clear the calculation end flag S8
The process returns to S51 (S861, S863, S865).

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

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

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

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

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

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

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

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

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

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

【0145】[0145]

【発明の効果】以上の通り本発明によれば、デフォーカ
ス量を測定した特定被写体が低コントラストのときに
は、そのときのデフォーカス量を一時的にメモリしてか
ら同一の特定被写体について再度デフォーカス量を測定
し、再測定したデフォーカス量と、前記メモリしたデフ
ォーカス量とを比較して小さい方をデフォーカス量とし
て選択するので、低コントラストの被写体に対する測距
誤差が減少し、合焦であるのに非合焦であると判断して
レンズ駆動したり、合焦したときにその旨を表示する場
合は、その表示が合焦、非合焦に切り替わることがなく
ちらつきがなくなる。
As described above, according to the present invention, when the specific subject whose defocus amount is measured has a low contrast, the defocus amount at that time is temporarily stored, and then the same specific subject is defocused again. The amount of defocus is measured and the re-measured defocus amount is compared with the stored defocus amount, and the smaller one is selected as the defocus amount. When it is determined that the lens is out of focus and the lens is driven, or when the fact is displayed when the lens is focused, the display is not switched between in-focus and out-of-focus, and flickering is eliminated.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

【図20A、20B、20C】同第2の動体予測AF処
理の動体追従スピード計算処理等に関するフローチャー
トである。
20A, 20B and 20C are flowcharts relating to a moving body following speed calculation processing and the like in the second moving body prediction AF processing.

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

【図22】同第2の動体予測AF処理における積分処理
に関するフローチャートである。
FIG. 22 is a flowchart related to integration processing in the second moving object prediction 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 Reference Signs List 11 camera body 12 photographing lens 13 main mirror 14 sub-mirror 17 photometric IC 21 distance measuring CCD sensor unit 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 Shooting lens 53 Focusing lens 55 Lens drive mechanism 61 Lens CPU

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

Claims (4)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 特定被写体に対するデフォーカス量を測
定するデフォーカス量測定手段と、 前記デフォーカス量を測定したときの特定被写体が低コ
ントラストであるかどうかを判断するコントラスト判断
手段と、 前記コントラスト判断手段が低コントラストではないと
判断したときにはそのデフォーカス量を選択し、前記コ
ントラスト判断手段が低コントラストと判断したときに
はそのときのデフォーカス量を一時的にメモリして前記
デフォーカス測定手段を再動作させてデフォーカス量を
再測定し、前記メモリしたデフォーカス量と今回再測定
したデフォーカス量とを比較して小さい方をデフォーカ
ス量として選択するデフォーカス量選択手段と、を備え
ていることを特徴とする焦点検出装置。
1. A defocus amount measuring unit for measuring a defocus amount for a specific subject; a contrast determining unit for determining whether the specific subject has low contrast when the defocus amount is measured; means when it is determined that it is not low contrast select the defocus amount, re-operation of the defocus measurement means temporarily memory defocus amount at that time when the contrast determination unit determines that low contrast Let me defocus
Defocus amount selecting means for re-measuring , comparing the stored defocus amount with the re-measured defocus amount this time, and selecting a smaller one as the defocus amount. apparatus.
【請求項2】 請求項1に記載の焦点検出装置はさら
に、前記デフォーカス量測定手段が測定したデフォーカ
ス量に基づいて合焦状態にあるかどうかを判断する合焦
判断手段を備え、前記デフォーカス量選択手段は、前記
合焦判断手段が合焦状態にあると判断したときには、コ
ントラストにかかわらずそのデフォーカス量を選択する
ことを特徴とする焦点検出装置。
2. The focus detection device according to claim 1, further comprising: a focus determination unit configured to determine whether the object is in focus based on a defocus amount measured by the defocus amount measurement unit. A focus detection device, wherein the defocus amount selecting means selects the defocus amount irrespective of contrast when the focus determining means determines that the object is in focus.
【請求項3】 請求項1または2に記載の焦点検出装置
はさらに、前記デフォーカス量選択手段が選択したデフ
ォーカス量に基づいて、合焦用レンズを駆動するレンズ
駆動手段を備えていることを特徴とする焦点検出装置。
3. The focus detecting device according to claim 1, further comprising lens driving means for driving a focusing lens based on the defocus amount selected by said defocus amount selecting means. A focus detection device.
【請求項4】 請求項2に記載の焦点検出装置はさら
に、前記合焦判断手段が合焦と判断したときに合焦表示
をする表示手段を備えていることを特徴とする焦点検出
装置。
4. The focus detection device according to claim 2, further comprising display means for displaying a focus when said focus determination means determines that focus has been achieved.
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
GB9505185A GB2286497B (en) 1991-05-15 1992-05-15 Automatic focusing apparatus
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
GB9505186A GB2286498B (en) 1991-05-15 1992-05-15 Automatic focusing apparatus
DE4244874A DE4244874C2 (en) 1991-05-15 1992-05-15 Device for automatically focusing an optical system
FR9205919A FR2676552B1 (en) 1991-05-15 1992-05-15 AUTOMATIC FOCUSING DEVICE.
DE4216073A DE4216073C2 (en) 1991-05-15 1992-05-15 Device for automatically focusing an optical system
DE4244875A DE4244875C2 (en) 1991-05-15 1992-05-15 Device for automatically focusing an optical system
FR9212522A FR2684197B1 (en) 1991-05-15 1992-10-20 AUTOMATIC FOCUSING DEVICE.
FR9212521A FR2684196B1 (en) 1991-05-15 1992-10-20 FOCUSING DETECTION DEVICE.
US08/185,239 US5448329A (en) 1991-05-15 1994-01-24 Focus detecting apparatus for determining whether an object is moving
US08/467,056 US5612761A (en) 1991-05-15 1995-06-06 Automatic focusing apparatus
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

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 JPH04338707A (en) 1992-11-26
JP3140500B2 true 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)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004004284A (en) 2002-05-31 2004-01-08 Canon Inc Projection display apparatus
JP4533593B2 (en) * 2003-04-09 2010-09-01 富士フイルム株式会社 Imaging device
JP4478414B2 (en) 2003-07-31 2010-06-09 キヤノン株式会社 Projection type image display device

Also Published As

Publication number Publication date
JPH04338707A (en) 1992-11-26

Similar Documents

Publication Publication Date Title
US5448329A (en) Focus detecting apparatus for determining whether an object is moving
JP3206980B2 (en) Automatic focus control device
KR0144623B1 (en) Automatic focusing apparatus
JP3215723B2 (en) Lens drive
JP3140500B2 (en) Focus detection device
JP3231397B2 (en) Automatic focusing device
JP3193404B2 (en) Camera auto focus device
JPH0875999A (en) Automatic focusing device
JP3222497B2 (en) Autofocus device
JP3140501B2 (en) Automatic focusing device
US5079581A (en) Automatic focus adjusting apparatus
US5291235A (en) Automatic focusing device
JP4732065B2 (en) Autofocus control device
GB2286497A (en) Automatic focusing apparatus
USRE36546E (en) Automatic focusing device
KR0144625B1 (en) Auto Focusing Device
JP3189290B2 (en) Camera background description degree determination device
JPH10133097A (en) Camera equipped with automatic focusing device
FR2684197A1 (en) Automatic focusing device
JP3445311B2 (en) Automatic focus detection device
JPH1164920A (en) Exposure controller for camera
JP2006126329A (en) Lens-driving device, and camera having the driving device, lens and camera system
JP2005173258A (en) Camera system

Legal Events

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

Year of fee payment: 7

Free format text: PAYMENT UNTIL: 20071215

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

Free format text: PAYMENT UNTIL: 20081215

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20081215

Year of fee payment: 8

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

Year of fee payment: 9

Free format text: PAYMENT UNTIL: 20091215

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

Year of fee payment: 10

Free format text: PAYMENT UNTIL: 20101215

LAPS Cancellation because of no payment of annual fees