JPH04256914A - Automatic focus adjustor - Google Patents

Automatic focus adjustor

Info

Publication number
JPH04256914A
JPH04256914A JP3103988A JP10398891A JPH04256914A JP H04256914 A JPH04256914 A JP H04256914A JP 3103988 A JP3103988 A JP 3103988A JP 10398891 A JP10398891 A JP 10398891A JP H04256914 A JPH04256914 A JP H04256914A
Authority
JP
Japan
Prior art keywords
lens
amount
time
subject
moving
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP3103988A
Other languages
Japanese (ja)
Inventor
Yukio Uenaka
行夫 上中
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Pentax Corp
Original Assignee
Asahi Kogaku Kogyo Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Asahi Kogaku Kogyo Co Ltd filed Critical Asahi Kogaku Kogyo Co Ltd
Priority to JP3103988A priority Critical patent/JPH04256914A/en
Priority to DE4139413A priority patent/DE4139413A1/en
Priority to FR9114794A priority patent/FR2670032A1/en
Priority to US07/800,838 priority patent/US5239330A/en
Priority to DE4139414A priority patent/DE4139414C2/en
Priority to US07/800,840 priority patent/US5321459A/en
Priority to FR9114789A priority patent/FR2670027A1/en
Priority to GB9125425A priority patent/GB2250831A/en
Priority to GB9125419A priority patent/GB2250828B/en
Priority to FR919114792A priority patent/FR2670030B1/en
Priority to FR9114790A priority patent/FR2670028A1/en
Priority to DE4139399A priority patent/DE4139399A1/en
Priority to GB9125420A priority patent/GB2250829B/en
Priority to DE9116929U priority patent/DE9116929U1/en
Priority to FR9114793A priority patent/FR2670031A1/en
Priority to US07/800,238 priority patent/US5276476A/en
Priority to DE4139458A priority patent/DE4139458C2/en
Priority to DE4139400A priority patent/DE4139400C2/en
Priority to GB9125441A priority patent/GB2250833B/en
Priority to FR9114791A priority patent/FR2670029A1/en
Priority to DE4139459A priority patent/DE4139459C2/en
Priority to FR9114788A priority patent/FR2670026A1/en
Priority to GB9125388A priority patent/GB2251998B/en
Priority to DE4139449A priority patent/DE4139449A1/en
Priority to DE4139448A priority patent/DE4139448A1/en
Priority to GB9125421A priority patent/GB2250830B/en
Priority to DE9116928U priority patent/DE9116928U1/en
Priority to GB9125434A priority patent/GB2250832B/en
Priority to FR9114787A priority patent/FR2670022A1/en
Priority to GB9125408A priority patent/GB2251084B/en
Publication of JPH04256914A publication Critical patent/JPH04256914A/en
Priority to US08/076,693 priority patent/US5291235A/en
Priority to US08/090,643 priority patent/US5359382A/en
Priority to US08/144,550 priority patent/US5416559A/en
Priority to FR9405984A priority patent/FR2704328B1/en
Priority to US08/262,341 priority patent/US5457513A/en
Priority to FR9407429A priority patent/FR2704659B1/en
Priority to FR9408636A priority patent/FR2708109A1/en
Priority to KR94023423A priority patent/KR0137180B1/en
Priority to KR1019940023424A priority patent/KR0137178B1/en
Priority to KR1019940023588A priority patent/KR0138579B1/en
Priority to KR1019940027423A priority patent/KR0144624B1/en
Priority to KR1019940027422A priority patent/KR0144625B1/en
Priority to KR1019940031464A priority patent/KR0144623B1/en
Priority to US08/563,437 priority patent/USRE36546E/en
Priority to FR9614932A priority patent/FR2739946B1/en
Priority to FR9614931A priority patent/FR2739945B1/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To obtain a photograph of an in-focus moving object by driving a focusing lens to a position where focusing is obtained at a position where the object is to move a specific time later. CONSTITUTION:A CPU 3 calculates a defocusing quantity from range finding data obtained by a range finding sensor 1 and calculates the relative moving direction and moving speed of the object in the direction of the optical axis from the defocusing quantity. Then the range finding operation of the range finding sensor 1 is repeated at specific intervals of time and it is decided whether or not the moving speed of the object calculated in each range finding operation is larger than a specific value. When it is decided that the moving speed of the CPU 3 is larger than the specific value continuously a specific number of times, a lens driving circuit 4 is controlled according to the calculation result of the CPU 3 to drive the focusing lens 100 to the position where focusing is obtained at the position where the object is to move a specific time later.

Description

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

【0001】0001

【産業上の利用分野】この発明は、自動合焦機能(AF
機能)を有する装置、例えばAF(AUTOMATIC
  FOCUSING)カメラの合焦用レンズを合焦位
置まで正確に移動させる装置に関するものである。
[Industrial Application Field] This invention provides an automatic focusing function (AF).
AF (AUTOMATIC function), for example, an AF (AUTOMATIC
This invention relates to a device for accurately moving a focusing lens of a camera to a focusing position.

【0002】0002

【従来の技術】近年AF機能を備えたカメラが著しく増
加しており、レンズ交換可能な一眼レフカメラにおいて
もAF機能は不可欠のものとなりつつある。一眼レフカ
メラにおいては、一般に位相差法によるAFが採用され
ている。位相差法によるAFは、次のような手順で行わ
れる。まず、2つの受光部を有する検出素子(CCD等
)に被写体像が投射され、その光量が、時間について積
分される。次に、それぞれの受光部上の2つの被写体像
の位相差により、検出素子(フィルム等価面)と、被写
体と対向している撮影レンズによる結像面との距離差お
よびその方向(デフォーカス量/デフォーカス方向)が
算出される。算出されたデフォーカス量/方向からレン
ズを合焦位置に駆動するのに必要なモータの駆動量が求
められ、結像面がフィルム等価面に一致するようレンズ
がその光軸に沿って駆動される。この時のモータに印加
されるパルス数は次式によって求められる。 P=Kv×D ここで、Pはモータに印加される駆動パルス数であり、
Dはデフォーカス量である。Kvはレンズ移動量変換係
数(Kバリュー)と呼ばれ、上記デフォーカス量及び方
向から、レンズを合焦位置に移動させるのに必要なだけ
、モータを駆動させるパルス数を計算するための係数で
、レンズ固有の値である。
2. Description of the Related Art In recent years, the number of cameras equipped with an AF function has increased significantly, and the AF function is becoming essential even in single-lens reflex cameras with interchangeable lenses. Single-lens reflex cameras generally employ AF using a phase difference method. AF using the phase difference method is performed in the following procedure. First, a subject image is projected onto a detection element (such as a CCD) having two light receiving sections, and the amount of light is integrated over time. Next, based on the phase difference between the two subject images on each light receiving section, the distance difference between the detection element (film equivalent surface) and the imaging plane formed by the photographing lens facing the subject and its direction (defocus amount /defocus direction) is calculated. The amount of motor drive required to drive the lens to the in-focus position is determined from the calculated defocus amount/direction, and the lens is driven along its optical axis so that the image plane matches the film equivalent plane. Ru. The number of pulses applied to the motor at this time is determined by the following equation. P=Kv×D Here, P is the number of drive pulses applied to the motor,
D is the amount of defocus. Kv is called the lens movement amount conversion coefficient (K value), and is a coefficient for calculating the number of pulses to drive the motor by the amount necessary to move the lens to the in-focus position from the above defocus amount and direction. , is a value specific to the lens.

【0003】図30から31は上記のように構成された
、従来のAFシステムを説明する図であり、各図におけ
る被写体像位置とは、合焦用レンズの位置を基準とした
被写体像の結像位置であり、ピント位置とは合焦用レン
ズの位置を基準としたフィルム等価面の位置を示すもの
である。図30において、時刻t0で測距を行った結果
、ピント位置と被写体像位置との距離差、即ち、デフォ
ーカス量がD0であったとする。すると、このデフォー
カス量D0を0にすべく、レンズが駆動される。被写体
が静止しているため、レンズ駆動の結果、ピント位置と
被写体像位置は一致する。この状態で時刻t1において
レリーズONの割り込み処理を行い、レリーズタイムラ
グ、即ち、ミラー上昇や絞りの絞り込みの機械的駆動に
要する時間の経過後の時刻t2に実際に露光が開始され
たとすると、図30のように、露光開始時t2における
ピント位置と被写体像位置は常に一致している。ところ
が、被写体が動体(レンズ駆動方向に動くもの)である
場合には、積分および演算が行われ、その結果に基づい
て合焦のためにレンズを駆動している間にも被写体は移
動し続けるため、さらに積分・演算・レンズ駆動の処理
を繰り返すことが必要となる。
FIGS. 30 to 31 are diagrams illustrating a conventional AF system configured as described above, and the subject image position in each diagram refers to the focus of the subject image with respect to the position of the focusing lens. This is the image position, and the focus position indicates the position of the film equivalent plane with respect to the position of the focusing lens. In FIG. 30, assume that as a result of distance measurement at time t0, the distance difference between the focus position and the subject image position, that is, the defocus amount, is D0. Then, the lens is driven to make this defocus amount D0 zero. Since the subject is stationary, the focus position and the subject image position match as a result of lens driving. In this state, if the release ON interrupt processing is performed at time t1, and exposure is actually started at time t2 after the release time lag, that is, the time required for mechanical drive to raise the mirror and stop the aperture, has elapsed, then the exposure is actually started at time t2. As shown, the focus position and the subject image position at the start of exposure t2 always match. However, if the subject is a moving object (moving in the direction in which the lens is driven), integration and calculations are performed, and based on the results, the subject continues to move even while the lens is being driven to focus. Therefore, it is necessary to repeat the integration, calculation, and lens driving processes.

【0004】図31は、被写体が遠方から近方に等速度
で移動している場合を示すものであり、被写体像位置は
被写体が撮影レンズに近づくほど変化量が大きくなって
いる。この場合において、■点での被写体像位置とピン
ト位置との距離差、即ちデフォーカス量がD1だったと
する。このD1に対応する分だけレンズ駆動し、時間t
1経過後に■点で、デフォーカス量を求めると、D2が
得られたとする。同様にしてD2に対応する量だけレン
ズ駆動を行い、時間t2経過後の次の■点で、デフォー
カス量D3が求められる。ここで、■点でのデフォーカ
ス量を求めたときのピント位置は■点の被写体像位置に
対応しており、時間t1の間にも被写体は移動している
ため、被写体が遠方から近方に等速度で移動している場
合にはデフォーカス量は D1<D2<D3 のように、測距する度に次第に増加してしまい、レンズ
駆動が被写体像の位置変化に十分に追従できなくなって
しまうという問題が生ずる。
FIG. 31 shows a case where a subject is moving from a far place to a near place at a constant speed, and the amount of change in the subject image position increases as the subject approaches the photographic lens. In this case, it is assumed that the distance difference between the subject image position and the focus position at point 2, that is, the defocus amount, is D1. The lens is driven by the amount corresponding to this D1, and the time t
It is assumed that when the defocus amount is calculated at point ■ after one elapse, D2 is obtained. Similarly, the lens is driven by an amount corresponding to D2, and the defocus amount D3 is determined at the next point (■) after time t2 has elapsed. Here, the focus position when calculating the amount of defocus at point ■corresponds to the subject image position at point ■, and since the subject is moving during time t1, the subject moves from far to near When the subject is moving at a constant speed, the amount of defocus will gradually increase each time the distance is measured, as D1<D2<D3, and the lens drive will not be able to sufficiently follow changes in the position of the subject image. The problem of putting it away arises.

【0005】これを解決するために、積分を開始してか
ら、演算を行ってレンズ駆動が完了するまでの時間に被
写体が移動する距離を予測し、その分を加味してレンズ
を駆動することにより、上記のような追従遅れの問題を
解決する方法が種々考えられている。このような方法に
おいては、測距動作時に測定された被写体像の像面スピ
ードがある所定値以上であるか否かを判断し、所定値以
上である場合にはその像面スピードに基づいて被写体の
移動距離を予測し、追従動作を行うように構成されてい
る。
[0005] In order to solve this problem, it is necessary to predict the distance that the subject will move during the time from the start of integration to the time when the lens drive is completed by performing calculations, and to drive the lens by taking this amount into account. Therefore, various methods have been considered to solve the problem of tracking delay as described above. In such a method, it is determined whether the image plane speed of the subject image measured during distance measurement operation is greater than or equal to a predetermined value, and if the image plane speed is greater than or equal to the predetermined value, the image plane speed of the subject image is determined based on the image plane speed. It is configured to predict the moving distance of the robot and perform a follow-up operation.

【0006】[0006]

【発明が解決しようとする問題点】しかしながら、この
ような方法によると、被写体像の像面スピードのみによ
って追従動作を行うかどうかを判断しているため、その
スピードが所定値ぎりぎりの状態で移動しているときに
は、測距データのばらつきにより、追従動作を行う判断
が不安定になるという問題点があった。また、実際には
静止している被写体であって、追従動作を行う必要がな
いにも拘らず、その被写体が何らかの理由で一瞬動いた
だけで追従動作を開始してしまうという問題点もあった
。更に、静止している被写体の手前を移動する物体が横
切った場合にも、不必要に追従動作が行われ易く、その
ため迅速な測距が出来ないという問題点があった。
[Problems to be Solved by the Invention] However, with this method, it is determined whether or not to perform a tracking operation based only on the image plane speed of the subject image, and therefore the subject image may move when the speed is just below a predetermined value. However, there is a problem in that the decision to perform a follow-up operation becomes unstable due to variations in distance measurement data. Furthermore, even though the subject is actually stationary and there is no need to perform a tracking operation, there is a problem in that if the subject moves momentarily for some reason, the tracking operation starts. Furthermore, even when a moving object crosses in front of a stationary subject, unnecessary tracking operations are likely to be performed, making it impossible to quickly measure the distance.

【0007】本発明は、このような問題点を解決するた
めになされたものであり、動く対象物に対してピントの
合った写真を得られるように構成され、しかも、レンズ
駆動を行う判断を被写体の連続した移動により行うこと
により、不必要にレンズ駆動が行われることが回避でき
るように構成されている自動焦点調節装置を提供するこ
とを目的とする。
[0007] The present invention has been made to solve these problems, and is configured to be able to obtain a photograph with a moving object in focus, and also to be able to make decisions regarding lens drive. It is an object of the present invention to provide an automatic focusing device configured to avoid unnecessary lens driving by performing continuous movement of a subject.

【0008】[0008]

【問題を解決するための手段】この問題を解決するため
、本発明の自動焦点調節装置は、光軸方向に移動可能な
合焦用レンズと、前記合焦用レンズによる、特定対象物
に対するデフォーカス量を求める測距手段と、前記測距
手段により求められたデフォーカス量に基づいて前記対
象物の前記光軸方向における相対的移動方向と移動速度
とを算出する算出手段と、前記測距手段の測距動作を所
定の時間間隔で繰り返すように前記測距手段を制御する
制御手段と、前記測距手段による測距動作ごとに、前記
算出手段により算出された対象物の移動速度が所定値以
上であるかどうかを判別する判別手段と、前記判別手段
により、対象物の移動速度が所定値以上であるとされた
回数が所定回数連続したときに、前記算出手段の算出結
果に基づいて、現在より所定時間経過後に前記対象物が
移動する位置で焦点が合う位置に、前記合焦用レンズを
駆動する駆動制御手段と、を有することを特徴とする。 さらに前記算出手段は、前記合焦用レンズによる、対象
物像の前記移動方向及び移動量を算出するように構成す
るのが好適である。また、前記駆動制御手段は、前記対
象物の移動方向がカメラから遠ざかる方向の時には対象
物に対して後追い追従し、前記対象物の移動方向がカメ
ラに近付く方向の時にはレリーズタイムラグ分先回りし
た点に合焦するべくレンズ駆動量が決定されるように、
前記算出手段を制御するよう構成するのが好適である。
[Means for Solving the Problem] In order to solve this problem, the automatic focusing device of the present invention includes a focusing lens that is movable in the optical axis direction, and a focusing lens that focuses on a specific object using the focusing lens. a distance measuring means for determining a focus amount; a calculation means for calculating a relative moving direction and a moving speed of the object in the optical axis direction based on a defocus amount determined by the distance measuring means; control means for controlling the distance measuring means to repeat the distance measuring operation of the means at predetermined time intervals; and a control means for controlling the distance measuring means to repeat the distance measuring operation of the means at predetermined time intervals; a determining means for determining whether the moving speed of the object is equal to or higher than a predetermined value; and a determining means for determining whether the moving speed of the object is equal to or higher than a predetermined value for a predetermined number of consecutive times based on the calculation result of the calculating means. , further comprising a drive control means for driving the focusing lens to a position where the object is in focus at a position where the object moves after a predetermined period of time has elapsed from the current time. Furthermore, it is preferable that the calculation means is configured to calculate the direction and amount of movement of the object image by the focusing lens. Further, the drive control means is configured to follow the object when the moving direction of the object is moving away from the camera, and to move ahead by a release time lag when the moving direction of the object is moving toward the camera. In order to determine the amount of lens drive to achieve focus,
Preferably, the calculation means is configured to be controlled.

【0009】[0009]

【実施例】以下、図面を参照して、この発明の実施例を
説明する。図1は本発明の自動焦点調節装置が実装され
るAFカメラの主要部分を表すブロック図である。AF
スイッチS1がONされて、CPU3のポートP71の
電位がLOWになると、AFシステムの動作が開始され
る。インターフェース2を介して、CCD等の検出素子
から成る測距センサで測距を行い、得られた測距データ
がポート1を介してCPU3に入力され、CPU3では
演算が行われて、デフォーカス量が算出される。次いで
、レンズ100内に実装されたレンズROM9に記憶さ
れているKバリューと、上記算出されたデフォーカス量
と、からレンズ駆動量を算出する。なお、デフォーカス
量が求まらなかった場合等、測距データが無効かどうか
のチェックを行い、データが無効の場合は、測距が正し
く行われなかった旨を表示する等のNG処理を行うよう
構成される。このときは、再び測距を行う。次いで、デ
フォーカス量が所定の合焦幅内にあるかどうかを判定し
、合焦幅内にあると判定すると、CPU3のポートP7
4を介して、LED駆動回路10を制御し、合焦LED
を点灯する等の合焦処理を行い、レリーズONの割り込
みが許可される。なお、合焦幅内にないと判断されると
、レリーズ割り込みが禁止され、レンズ駆動量をカウン
タ6にセットし、レンズ駆動回路4を制御してレンズ駆
動を開始する。レンズ駆動回路4により回転されるAF
モータの回転数はエンコーダ5によってモニターされ、
カウンタ6をデクリメントしてカウンタ6の内容が0に
なると、AFモータの回転を停止しレンズ駆動を中止す
る。
Embodiments Hereinafter, embodiments of the present invention will be described with reference to the drawings. FIG. 1 is a block diagram showing the main parts of an AF camera in which an automatic focus adjustment device of the present invention is implemented. AF
When the switch S1 is turned on and the potential of the port P71 of the CPU 3 becomes LOW, the operation of the AF system is started. Via the interface 2, a distance measurement sensor consisting of a detection element such as a CCD measures the distance, and the obtained distance measurement data is input to the CPU 3 through the port 1, where calculations are performed and the amount of defocus is determined. is calculated. Next, the lens driving amount is calculated from the K value stored in the lens ROM 9 mounted in the lens 100 and the defocus amount calculated above. In addition, if the defocus amount cannot be determined, check whether the distance measurement data is invalid or not. If the data is invalid, perform NG processing such as displaying that the distance measurement was not performed correctly. configured to do so. At this time, distance measurement is performed again. Next, it is determined whether the defocus amount is within a predetermined focusing width, and if it is determined that the defocus amount is within a predetermined focusing width, the port P7 of the CPU 3 is
4, controls the LED drive circuit 10 and controls the focusing LED
Focusing processing such as lighting is performed, and release ON interrupts are permitted. Note that if it is determined that it is not within the in-focus width, the release interrupt is prohibited, the lens drive amount is set in the counter 6, and the lens drive circuit 4 is controlled to start lens drive. AF rotated by lens drive circuit 4
The rotation speed of the motor is monitored by an encoder 5,
When the counter 6 is decremented and the content of the counter 6 becomes 0, the rotation of the AF motor is stopped and lens driving is stopped.

【0010】レリーズONの割り込み処理はレリーズス
イッチSWRがONされると、CPU3のポートPor
t5を経てレリーズ制御回路8により、ミラー上昇、露
光、ミラー下降の一連のレリーズ制御処理が行われる。 自動合焦機能により合焦した時点でレリーズをONする
と、現実には、レリーズON信号が読み込まれた瞬間に
シャッターが開かれるのではなく、レリーズON信号が
読み込まれてから実際にシャッターが開いて露光が開始
されるまでには、絞りを、予め手動または露出制御演算
により設定された絞り値まで絞り込む動作を行い、ミラ
ーを上昇させる駆動を行うのに要する時間分だけ、時間
差がある(以下、この時間差をレリーズタイムラグと呼
ぶ)。静止状態にある被写体を撮影する場合には、この
レリーズタイムラグの間に被写体の位置が変わることは
ないため、一旦合焦すれば、レリーズタイムラグの長短
にかかわらず、もはやデフォーカスが生ずる事はなく、
被写体に合焦した状態で実際の露光が行われる。本実施
例においては、レリーズONの割り込み後、実際に露光
が開始される時点(即ち、レリーズタイムラグ経過後)
に被写体像位置とピント位置とを一致させるために次の
ような方法を取っている。
[0010] When the release switch SWR is turned on, the release ON interrupt processing is executed by the port Por of the CPU3.
After t5, the release control circuit 8 performs a series of release control processes including mirror raising, exposure, and mirror lowering. When you turn on the release as soon as the autofocus function focuses, in reality, the shutter does not open the moment the release ON signal is read, but the shutter actually opens after the release ON signal is read. Before exposure starts, there is a time lag corresponding to the time required to narrow down the aperture to the aperture value set in advance manually or by exposure control calculation, and to drive the mirror up (hereinafter referred to as This time difference is called the release time lag). When photographing a stationary subject, the subject's position will not change during this release time lag, so once focus is achieved, defocus will no longer occur regardless of the length of the release time lag. ,
The actual exposure is performed with the subject in focus. In this embodiment, the time point when exposure actually starts after the release ON interruption (that is, after the release time lag has elapsed)
In order to match the subject image position and the focus position, the following method is used.

【0011】図2において実線は被写体像位置の移動を
示すものである。レリーズタイムラグ経過後にピント位
置が実線上に位置するようにレンズ駆動を制御すれば、
いつレリーズをONとしても合焦状態で露出が行われる
ことになる。図の破線で示されている曲線は、実際の被
写体像の移動を示す実線のグラフをレリーズタイムラグ
分だけ左へ平行移動したものである。ピント位置がこの
破線に追従するようにレンズ駆動すれば、いつレリーズ
ONしても常にレリーズタイムラグ分先回りしたピント
位置でレリーズ制御処理が開始することになり、レリー
ズタイムラグ経過後に被写体像がピント位置に到着して
合焦状態で露光が行われることになる。
In FIG. 2, solid lines indicate movement of the subject image position. If you control the lens drive so that the focus position is located on the solid line after the release time lag has elapsed,
No matter when the release is turned on, exposure will be performed in the focused state. The curve indicated by the broken line in the figure is obtained by translating the solid line graph indicating the actual movement of the subject image to the left by the release time lag. If the lens is driven so that the focus position follows this broken line, no matter when the release is turned on, the release control process will always start at the focus position that is ahead by the release time lag, and the subject image will be at the focus position after the release time lag has elapsed. Upon arrival, exposure will be performed in a focused state.

【0012】図3は、本実施例のAFシステムのメイン
処理を表すフローチャートである。本実施例においては
、AF測距何回目であるかによって、その処理手順を変
えているため、まずS1においてAF測距回数を示すフ
ラグAlSをクリアする。S2では、インターフェース
2を介して、CCD等の検出素子から成る測距センサ1
で測距を行い、受光光量を時間について積分して、測距
データを得る。その測距データがポート1を介してCP
U3に入力され、CPU3では演算が行われて、デフォ
ーカス量が算出される。S3では、レンズ100内に実
装されたレンズROM9に記憶されているKバリューと
、S2で算出されたデフォーカス量と、から前記式によ
ってレンズ駆動量(AFパルス数)を算出する。このレ
ンズ駆動量はカウンタ6にセットされる。S4において
動体予測演算(後述)を行う。
FIG. 3 is a flowchart showing the main processing of the AF system of this embodiment. In this embodiment, the processing procedure is changed depending on the number of AF distance measurements, so first, in S1, a flag AlS indicating the number of AF distance measurements is cleared. At S2, a distance measuring sensor 1 consisting of a detection element such as a CCD is connected via an interface 2.
Distance measurement is carried out using the sensor, and the amount of received light is integrated over time to obtain distance measurement data. The distance measurement data is sent to the CP via port 1.
The signal is input to U3, and the CPU 3 performs calculations to calculate the defocus amount. In S3, the lens driving amount (the number of AF pulses) is calculated from the K value stored in the lens ROM 9 mounted in the lens 100 and the defocus amount calculated in S2 using the above formula. This lens drive amount is set in the counter 6. In S4, a moving object prediction calculation (described later) is performed.

【0013】次にS5では、デフォーカス量が求まらな
かった場合等、測距データが無効かどうかのチェックを
行い、データが無効の場合は、測距が正しく行われなか
った旨を表示する等のNG処理をS5−1で行った後、
S2に戻って、再び測距を行う。S6では、デフォーカ
ス量が所定の合焦幅内にあるかどうかを判定し、合焦幅
内にあると判定すると、S7でCPU3のポートP74
を介して、LED駆動回路10を制御し合焦LEDを点
灯する等の合焦処理を行う。次のS8でレリーズONの
割り込みが許可され、レリーズ動作が可能になる。S9
はいわゆるワンショットの場合の処理で、一度合焦した
ら合焦処理をストップする場合の処理である。
[0013] Next, in S5, if the defocus amount cannot be determined, etc., a check is made to see if the distance measurement data is invalid, and if the data is invalid, a message indicating that the distance measurement was not performed correctly is displayed. After performing NG processing such as
Returning to S2, distance measurement is performed again. In S6, it is determined whether the defocus amount is within a predetermined focusing width, and if it is determined that the defocus amount is within a predetermined focusing width, in S7
, the LED drive circuit 10 is controlled to perform focusing processing such as lighting up a focusing LED. In the next step S8, the release ON interrupt is permitted, and the release operation becomes possible. S9
This is a so-called one-shot process, in which the focusing process is stopped once focus is achieved.

【0014】次にS10で補正ONかどうか、即ち追従
モードか否かを判定する。追従モードでない場合にはS
2に戻って、CCDの積分処理を再スタートする。追従
モードの場合には、S11で被写体がレンズ100に近
付く方向に動いているか、あるいはカメラから遠ざかる
方向に動いているかをフラグFFNの内容で判定し、カ
メラから遠ざかる方向に動いているときにはS2に戻る
。ここでは被写体がレンズから遠ざかる方向に動いてい
る場合をFFN=1で示している。S10で追従モード
、S11で被写体がカメラに近付く方向に動いていると
判定された時には、S12で、今回のレンズ駆動パルス
数(AFP)が0か否かを判定する。もしも、レンズ駆
動パルス数が0であればステップ2に戻るが、0でなけ
ればレンズ駆動フラグBFM=1とする。これはレンズ
駆動されたかどうかを示すフラグである。
Next, in S10, it is determined whether the correction is ON, that is, whether the tracking mode is in effect. S if not in tracking mode
Returning to step 2, the CCD integration process is restarted. In the case of tracking mode, it is determined in S11 whether the subject is moving towards the lens 100 or away from the camera based on the contents of the flag FFN, and if the subject is moving in the direction away from the camera, the process proceeds to S2. return. Here, the case where the subject is moving away from the lens is shown as FFN=1. When it is determined in S10 that the subject is moving in the tracking mode and that the subject is moving toward the camera in S11, it is determined in S12 whether or not the current number of lens drive pulses (AFP) is 0. If the number of lens drive pulses is 0, the process returns to step 2, but if it is not 0, the lens drive flag BFM is set to 1. This is a flag indicating whether the lens has been driven.

【0015】S6で合焦幅内にないとされた場合(即ち
デフォーカス量が所定の合焦幅内に収まっていない場合
)には、S6−1においてレリーズ動作を禁止する処置
をした後、補正ONモードかどうか、即ち追従モードか
否かをS6−2で判定し、ONであればS12でレンズ
駆動パルス数AFPが0かどうかを判定する。AFP=
0であればレンズ駆動は行わないので、S2の測距処理
に戻る。AFP=0でなく、レンズ駆動が行われる場合
及びS6−2で追従モードでないと判断された場合には
、上述のようにS13でレンズ駆動フラグBFM=1と
セットする。そして、S14以降のレンズ駆動処理を行
う。
If it is determined in S6 that the defocus amount is not within the predetermined focus width (that is, if the defocus amount is not within the predetermined focus width), after taking steps to prohibit the release operation in S6-1, It is determined in S6-2 whether the correction ON mode is in effect, that is, whether the tracking mode is in effect, and if it is ON, it is determined in S12 whether the lens drive pulse number AFP is 0 or not. AFP=
If it is 0, lens driving is not performed, and the process returns to distance measurement processing in S2. If AFP is not 0 and the lens is being driven, or if it is determined in S6-2 that the tracking mode is not in effect, the lens drive flag BFM is set to 1 in S13 as described above. Then, lens drive processing from S14 onwards is performed.

【0016】このレンズ駆動処理においては、まずS1
4においてレンズ駆動量をカウンタ6にセットし、レン
ズ駆動回路4を制御してレンズ駆動を開始する。なお、
レンズ駆動回路4により回転されるAFモータの回転数
はエンコーダ5によってモニターされ、カウンタ6をデ
クリメントしてカウンタ6の内容が0になった場合にA
Fモータの回転は停止しレンズ駆動は中止される。この
ようにS14でレンズ駆動を開始した後、S15におい
て、レンズ駆動中にレンズがその駆動範囲の端点まで駆
動された場合の割り込み処理を許可する。この割り込み
処理については後述する。
In this lens driving process, first, S1
4, the lens drive amount is set in the counter 6, and the lens drive circuit 4 is controlled to start lens drive. In addition,
The rotation speed of the AF motor rotated by the lens drive circuit 4 is monitored by the encoder 5, and when the counter 6 is decremented and the content of the counter 6 becomes 0, A
The rotation of the F motor is stopped and lens driving is stopped. After lens driving is started in S14 in this manner, in S15, interrupt processing is permitted when the lens is driven to the end point of its driving range during lens driving. This interrupt processing will be described later.

【0017】S16では、カウンタ6の値がちょうど0
の位置、即ち合焦位置でレンズが精度良く停止するよう
に、レンズ駆動終了直前においてレンズ駆動スピードが
段階的に遅くなるようにAFモータを制御する、モータ
のPWM(Pulse  Width  Modula
tion)制御が必要になったかどうかが合焦までの残
りパルス数から判定され、未だ必要でないとき、即ち、
レンズ駆動途中のときには、S17で補正ONであるか
どうかが判定される。そして補正ONでないときには、
S18でオーバーラップ処理、即ち、レンズ駆動中に更
に測距、演算等を行い、カウンタ6の値を更新する処理
を行い、S16の判定、即ちモータのPWM制御が必要
になったかどうかの判定を繰り返す。但し、S17にお
いて補正ONの場合には、オーバーラップ処理すること
なくS16に戻る。なお、この補正ONとオーバーラッ
プ処理との関連については後述する。S16でPWM制
御が必要になった場合、即ち、レンズ駆動終了直前には
、S16−1でPWM制御を行い、S16−2で駆動終
了か否かが判定される。レンズ駆動が完了すると、S1
6−3で端点検出時の割り込み処理を禁止し、S2に戻
って引続き測距処理を行う。
[0017] In S16, the value of counter 6 is exactly 0.
The motor's PWM (Pulse Width Modular) controls the AF motor so that the lens drive speed is gradually slowed just before the lens drive ends, so that the lens stops accurately at the in-focus position.
tion) It is determined from the number of pulses remaining until focusing whether or not control is required, and when it is not required yet, that is,
When the lens is being driven, it is determined in S17 whether correction is ON. And when the correction is not ON,
At S18, overlap processing is performed, that is, distance measurement, calculation, etc. are further performed while the lens is being driven, and processing for updating the value of the counter 6 is performed, and the determination at S16 is performed, that is, it is determined whether or not PWM control of the motor is required. repeat. However, if the correction is ON in S17, the process returns to S16 without performing the overlap process. Note that the relationship between this correction ON and overlap processing will be described later. When PWM control becomes necessary in S16, that is, immediately before the end of lens driving, PWM control is performed in S16-1, and it is determined in S16-2 whether or not driving is completed. When lens driving is completed, S1
In step 6-3, interrupt processing at the time of endpoint detection is prohibited, and the process returns to step S2 to continue distance measurement processing.

【0018】以下に、本実施例における補正ONのとき
の追従モードについて説明する。まず、通常の後追い追
従合焦からレリーズタイムラグ分先回りする先回り追従
モードに入る時点でのアルゴリズムを説明する。図4に
おいて、■点で得られたモータ駆動パルス数をA1とす
る(像面デフォーカス量はそれにKバリューを掛けるこ
とにより、合焦位置までレンズ100を駆動するために
モータに印加されるパルス数に変換できるので、以後の
説明ではデフォーカス量を解消するためにモータに印加
するパルス数を単にパルス数あるいはレンズ駆動量と呼
ぶことにする。)。この後、モータにパルスA1が印加
されレンズ駆動されて、時間t1経過後には■点でのパ
ルス数A2が求められたとする。■点から■点までの間
の被写体像の移動量はパルス数に変換するとA2になる
。従って、この■点と■点の二点間での被写体像移動速
度OBJspは、 OBJsp=A2/t1 となる。ここで、■点の被写体像位置を基準にした■点
から時間t2経過後の■点での被写体像位置は、被写体
像速度が一定と仮定すれば、 A2+t2×OBJsp で表される。時間t2間の被写体移動量をP2とし、P
2=t2×OBJsp と置き換えれば、駆動量は、A2+P2と計算される。 即ち、■点においてA2+P2だけモータを駆動した点
が、時間t2経過後の被写体像位置と一致することにな
る。なお、このP2はレンズ駆動量を計算する時点で予
め算出しておかなければならない。ここで測距データを
得てからの、レンズ駆動量の演算に要する時間は常に一
定であり、駆動時間も含めた時間は毎回大差ないものと
考えて良い。そこで、今回の演算時間と駆動時間、即ち
、時間t2は前回の演算時間及び駆動時間、即ち時間t
1と同じであると仮定して、時間t1を実測することに
より時間t2を求め、P2を計算する。
The follow-up mode when the correction is ON in this embodiment will be explained below. First, an explanation will be given of the algorithm at the time when the camera enters the anticipatory tracking mode, which moves ahead by the release time lag from normal tracking focusing. In FIG. 4, the number of motor drive pulses obtained at point ■ is assumed to be A1 (the image plane defocus amount is calculated by multiplying it by the K value, which is the pulse applied to the motor to drive the lens 100 to the in-focus position. Since it can be converted into a number, in the following explanation, the number of pulses applied to the motor to eliminate the amount of defocus will be simply referred to as the number of pulses or the amount of lens drive.) It is assumed that after this, a pulse A1 is applied to the motor to drive the lens, and after a time t1 has elapsed, the number of pulses A2 at point ■ is determined. The amount of movement of the subject image from point (2) to point (2) becomes A2 when converted into the number of pulses. Therefore, the object image movement speed OBJsp between the points ■ and ■ points is OBJsp=A2/t1. Here, the subject image position at point ■ after time t2 has elapsed from point ■ based on the subject image position at point ■ is expressed as A2+t2×OBJsp, assuming that the subject image speed is constant. Let P2 be the amount of movement of the subject during time t2, and P
2=t2×OBJsp, the driving amount is calculated as A2+P2. In other words, the point where the motor is driven by A2+P2 at point ■ coincides with the subject image position after time t2 has elapsed. Note that this P2 must be calculated in advance at the time of calculating the lens drive amount. The time required to calculate the lens driving amount after obtaining the distance measurement data is always constant, and it can be considered that the time including the driving time does not differ much each time. Therefore, the current calculation time and drive time, ie, time t2, are the previous calculation time and drive time, ie, time t2.
1, time t2 is obtained by actually measuring time t1, and P2 is calculated.

【0019】以上のように■点においてA2+P2だけ
モータを駆動してピント位置と被写体像位置とを一致さ
せて、その時点でレリーズONを割り込ませても、実際
に露光が開始されるのはレリーズタイムラグ経過後なの
で、その間の被写体像の移動量だけ更にピント位置を先
回りさせるべく、レンズを移動させる必要がある。レリ
ーズタイムラグをRLtとすると、ピント位置を被写体
像位置からさらにレリーズタイムラグ分先回りさせるた
めに必要な先回りパルス数TXP2は TXP2=RLt×OBJsp で求められ、そのパルス数分モータ駆動すれば良いこと
になる。なお、レリーズタイムラグRLtは図4上では
各期間■から■において、レンズ駆動終了時点から、露
光開始までのことである。ここで図6に示されるように
、デフォーカス量を測定するため、時間間隔Tintの
間積分を行い、その積分値を基に各データを得ているわ
けであるが、実際のデフォーカス量が得られる位置は積
分開始時の位置ではなく、それよりTint/2だけ経
過した時点(即ち積分時間の中点)Piでの測距値と考
えることが出来る。従って、上記レリーズタイムラグR
Ltはこの分の補正を加えて、RLt−Tint/2と
して演算を行うように構成すれば、より精密な追従が可
能となる。従って、上記TXP2の算出式は、TXP2
=(RLt−Tint/2)×OBJspと、補正を加
えておく。以上により、■点に於けるレンズ駆動量AF
P2を AFP2=A2+P2+Txp2 とすることにより、レンズ駆動はデフォーカス量に被写
体像移動量分の補正を加えるだけのいわゆる後追い追従
から、レリーズタイムラグを見込んでレンズ駆動する先
回り追従に入ることになる。■点から時間t2経過した
点で実際に求められる駆動パルス数A3が上記Txp2
と一致していれば、レリーズタイムラグ分先回りしたこ
とになる。(実際には、被写体像の移動速度は一定では
ないので、A3=Txp2とは限らない。)
As described above, even if the motor is driven by A2+P2 at point (2) to match the focus position and the subject image position, and the release is interrupted at that point, exposure will actually start only at the release. Since this is after the time lag has elapsed, it is necessary to move the lens to advance the focus position by the amount of movement of the subject image during that time. If the release time lag is RLt, the number of advance pulses TXP2 required to advance the focus position by the release time lag from the subject image position is calculated as TXP2 = RLt x OBJsp, and it is sufficient to drive the motor by that number of pulses. . It should be noted that the release time lag RLt is from the end of lens driving to the start of exposure in each period from ■ to ■ in FIG. As shown in FIG. 6, in order to measure the amount of defocus, integration is performed during the time interval Tint, and each data is obtained based on the integrated value, but the actual amount of defocus is The obtained position is not the position at the start of the integration, but can be considered to be the measured distance value at a time point Pi that has elapsed by Tint/2 (ie, the midpoint of the integration time). Therefore, the above release time lag R
If Lt is configured to be corrected and calculated as RLt-Tint/2, more precise tracking will be possible. Therefore, the formula for calculating TXP2 above is TXP2
A correction is added as follows: =(RLt-Tint/2)×OBJsp. From the above, the lens drive amount AF at point ■
By setting P2 to AFP2=A2+P2+Txp2, the lens drive changes from so-called trailing tracking, which only adds correction for the amount of subject image movement to the defocus amount, to proactive tracking, which drives the lens in anticipation of the release time lag. The number of driving pulses A3 actually obtained at the point where time t2 has elapsed from the point is the above Txp2.
If it matches, it means that the release time lag has been taken in advance. (Actually, since the moving speed of the subject image is not constant, A3=Txp2 is not necessarily the case.)

【0020
】次に、図5において、積分・演算の結果■点でパルス
数A3が得られたとする。すると、図から、■点に対応
する被写体像位置と■点に対応する被写体像位置の差(
被写体像の移動量)は、上述のように■点から■点まで
の時間はt2と同一であると考え、被写体像の移動が直
線的であると仮定すると、■点から■点に対応する被写
体像位置までの移動量と等しくなると考えられるので、
■点に対応する位置から■点に対応する位置までの被写
体移動量P3は、 P3=P2+Txp2−A3 として求められる。従って、■点から■点に至るレンズ
駆動量AFP3は、 AFP3=P3+Txp3−A3 となる。同様な考え方で、先回り追従中の被写体像移動
量及びレンズ駆動量を求める一般式として次の式が得ら
れる。 Pn=Pn−1+(Txpn−1−An)Txpn=f
(Pn) AFPn=Txpn+Pn−An ここでTxpnは被写体像移動量Pnの関数f(Pn)
として求められる。Txpは原理的には、Txp=(P
n/t)×RLt で求められる。しかしながら、前述のように、図6に示
されるように、デフォーカス量を測定するために時間間
隔Tintの間積分を行い、その積分値を基に各データ
を得ているので、実際のデフォーカス量が得られる位置
は積分開始時の位置ではなく、それよりTint/2だ
け経過した時点(即ち積分時間の中点)Piでの測距値
と考えることが出来る。従って、上記レリーズタイムラ
グRLtはこの分の補正を加えて、 RLt−Tint/2 として演算を行うように構成すれば、より精密な追従が
可能となる。従って、上記Txpは Txp=(Pn/t)×(RLt−Tint/2)と表
すことができる。
0020
] Next, in FIG. 5, it is assumed that the number of pulses A3 is obtained at point ■ as a result of integration and calculation. Then, from the figure, the difference between the subject image position corresponding to the ■ point and the subject image position corresponding to the ■ point (
The amount of movement of the subject image) corresponds to the time from point ■ to point ■, assuming that the time from point ■ to point ■ is the same as t2, and assuming that the movement of the subject image is linear. It is considered to be equal to the amount of movement to the subject image position, so
The amount of movement of the subject P3 from the position corresponding to the point (2) to the position corresponding to the point (2) is determined as P3=P2+Txp2-A3. Therefore, the lens driving amount AFP3 from the point ■ to the point ■ becomes AFP3=P3+Txp3-A3. Based on the same idea, the following formula can be obtained as a general formula for determining the amount of movement of the subject image and the amount of lens drive during proactive tracking. Pn=Pn-1+(Txpn-1-An)Txpn=f
(Pn) AFPn=Txpn+Pn-An Here, Txpn is a function f(Pn) of the subject image movement amount Pn
It is required as. In principle, Txp = (P
n/t)×RLt. However, as mentioned above, as shown in FIG. 6, in order to measure the defocus amount, integration is performed during the time interval Tint, and each data is obtained based on the integrated value, so the actual defocus amount is The position from which the amount can be obtained is not the position at the start of the integration, but can be considered to be the measured distance value at the time point Pi after Tint/2 (that is, the midpoint of the integration time). Therefore, if the above-mentioned release time lag RLt is corrected by this amount and calculated as RLt-Tint/2, more precise tracking becomes possible. Therefore, the above Txp can be expressed as Txp=(Pn/t)×(RLt-Tint/2).

【0021】また、Txpは測距データから求められる
ものであり、測距データのばらつきが大きく影響するた
め、本実施例においては次式で表されるように、直前の
4回のデータを次式により平均化して用いている。         Txpn=(Txp+Txpn−1+
                      Txp
n−2+Txpn−3)/4なお、過去にデータが無い
ものについては0を代入して計算を行っている。
[0021] Furthermore, since Txp is obtained from distance measurement data, and variations in the distance measurement data have a large effect, in this embodiment, the immediately preceding four data are It is averaged and used according to the formula. Txpn=(Txp+Txpn-1+
Txp
n-2+Txpn-3)/4 Note that calculations are performed by substituting 0 for those for which there is no past data.

【0022】図7は図3のS4で行う動体予測演算のサ
ブルーチンのフローチャートである。S201で測距デ
ータのチェックを行っており、測距データがOKでない
場合には、S226で測距回数カウント用のフラグAS
を1回目を示す0にセットして、メイン処理に戻る。こ
のような場合の生じる例としては、例えば非常にコント
ラストの弱い被写体や、デフォーカス量が非常に大きく
て測距データが得られない場合などがある。また、前述
のようなAFワンショットモードに設定した場合、即ち
、一度合焦したら、合焦処理をストップする制御を行う
場合には、一度合焦しても被写体に追従して合焦処理を
続ける追従モードにする必要はないので、S201−1
の判断でAFワンショトモードであるとされた場合には
、そのままメイン処理に戻る。AFワンショットでない
場合で、AFモードとなってから初めて処理がこのルー
チンに来て、S201で測距データがOKと判断された
ときには、S202でAlS=0であると判断され、S
224、S225を経てS218へと処理が移りメイン
処理に戻る。この時、S224において、測距回数カウ
ント用のフラグAlSが1回目を示す0から1にセット
されて以降はAlS=1により処理が2回目以上である
ことを示すとともに、測距の時間間隔を測定するための
タイマー7がスタートされ、計算用の各データがS22
5において初期化される。
FIG. 7 is a flowchart of the subroutine of the moving object prediction calculation performed in S4 of FIG. The distance measurement data is checked in S201, and if the distance measurement data is not OK, the flag AS for counting the number of distance measurements is set in S226.
is set to 0, indicating the first time, and returns to the main processing. Examples of such cases include a subject with very low contrast, or a case where the amount of defocus is so large that distance measurement data cannot be obtained. In addition, if you set the AF one-shot mode as described above, that is, if you perform control to stop the focusing process once the object is in focus, the focusing process will continue to follow the subject even once the object is in focus. There is no need to switch to continuous tracking mode, so S201-1
If it is determined that the AF one-shot mode is selected, the process directly returns to the main processing. If it is not AF one-shot, and the process comes to this routine for the first time after entering AF mode, and it is determined that the distance measurement data is OK in S201, it is determined that AlS=0 in S202, and S
The process moves to S218 via S224 and S225, and returns to the main process. At this time, in S224, the flag AlS for counting the number of distance measurements is set from 0 indicating the first time to 1, and after that, AlS=1 indicates that the process is the second time or more, and the time interval of distance measurement is set. A timer 7 for measurement is started, and each data for calculation is sent to S22.
It is initialized at 5.

【0023】測距回数が2回目以上になると、S202
からS203と進み、S203において前回の測距との
時間間隔tをタイマー7により計測する。次にS204
では補正ON、即ち、追従モードに入っているか否かを
判定するが、初期状態では補正ON、即ち追従モードに
入っていないのでS205に進む。S205からS21
1のルーチンでは被写体像を動体として扱うかどうかを
判定する。S205では今回と前回のデフォーカス方向
を比較し、もしも、異なっているなら、被写体像は移動
方向を変えたと考えられ、動体として扱うかどうかの判
定は行わず、S225で計算用データをクリアし、S2
18を通ってメイン処理に戻る。デフォーカス方向が同
じであれば、同一方向に移動していると見なすことがで
き、S206へ進む。S206では前回の測距でレンズ
駆動をしたかどうかがフラグBFMにより判断される。 前回の測距でレンズ駆動をした場合、即ちBFM=1の
場合にはS209に進み、今回の被写体像移動量XX=
Anとし、前回レンズ駆動をしなかった場合、即ちBF
M=0の場合には、S207に進んで前回のデフォーカ
ス量An−1と今回のデフォーカス量Anとを比較し、
被写体像がピント位置に近づいているのかどうかが判断
される。被写体像がピント位置に近づいている場合には
、追従モードにならなくともいづれ合焦状態になるので
S218を経てメイン処理に戻る。一方、S207にお
いて、被写体像がピント位置から離れていくとされた場
合及び、等距離にあるとされた場合には、S208にお
いて、今回のデフォーカス量Anから前回のデフォーカ
ス量An−1を引いて、今回の被写体像移動量XX=A
n−An−1として、S210において、S203にお
いて得られたtから、測距から測距までの一周期の間で
の被写体像スピードOBJSP、即ち、XX/(Kva
lue×t)を求めると共にこれが所定値より大きいか
どうかを判定する。ここで所定値は例えば、式、合焦幅
/(t+RLt)で表される、測距から測距までの周期
tに、レリーズタイムラグRLtを加えた時間内に被写
体像が移動する量が合焦幅と一致するスピードである。 即ち、被写体像スピードOBJSPがこの値より小さい
場合には、今回の測距に基づいてレンズ駆動をしてから
レリーズONの割り込み処理をすれば、移動する被写体
像がレリーズタイムラグ経過後の露出開始時にも合焦幅
内にあるということであり、特に動体追従する必要はな
いのである。但し、確実に動体と判別するために、上記
所定値にマージンを持たせて、より小さい値に設定して
もよい。また、多少判断がラフになるが、所定値を、レ
リーズタイムラグ間に被写体が移動する量が合焦幅と一
致するスピードとしてもよい。以上により、被写体スピ
ードOBJSPが所定値より小さいとされたときには、
処理はS225に移り、計算用データをクリアした後、
S218を通過してメイン処理に戻る。反対に被写体像
スピードOBJSPが所定値より大きい場合には、S2
11において、上記スピードに関する判定がなされたの
が初めてであるのか否かが判定され、初めての場合には
、確実には動体であるとは判断できないため、S218
を通ってメイン処理に戻る。そして、2回以上の測距演
算において被写体像スピードOBJSPが所定値より大
きいと判定されると、確実に動体であると判断できると
して、初めて補正ONとなり、本件の動体追従のアルゴ
リズムによるレンズ駆動が行われることになる。S21
2、S213において各々補正ON、フラグC10=0
(補正ONになって1回目であることを示す。2回目以
降はC10=1)と設定する。S214においては、今
回のデフォーカス方向を判定し、それにより被写体像の
移動方向を判定する。即ち、デフォーカス方向が後ピン
(+)の場合には、被写体がカメラに近づくように移動
していると判定し、S222において先回り追従の処理
に入る。一方、デフォーカス方向が前ピン(−)の場合
には、被写体の移動方向はカメラから遠ざかる方向であ
ると判断され、S223において後追い追従の処理に入
る。また、S215においては、被写体とカメラとの相
対位置関係を示すフラグFFNを0にセットし、被写体
がカメラに近づくように移動していることを示すことと
なる。また、S216においてはフラグFFNを1にセ
ットし、被写体がカメラから離れるように移動している
ことを示すこととなる。その後、S218を経てメイン
処理に戻る。
[0023] When the number of distance measurements is the second or more, S202
The process then proceeds to S203, and in S203, the timer 7 measures the time interval t from the previous distance measurement. Next, S204
Then, it is determined whether the correction is ON, that is, the tracking mode is in effect, but in the initial state, the correction is ON, that is, the tracking mode is not in the mode, so the process advances to S205. S205 to S21
In routine 1, it is determined whether the subject image is to be treated as a moving object. In S205, the current and previous defocus directions are compared, and if they are different, it is considered that the subject image has changed its moving direction, and the calculation data is cleared in S225 without determining whether to treat it as a moving object. , S2
18 and returns to the main processing. If the defocus directions are the same, it can be considered that they are moving in the same direction, and the process advances to S206. In S206, it is determined based on the flag BFM whether the lens was driven during the previous distance measurement. If the lens was driven in the previous distance measurement, that is, if BFM=1, the process advances to S209 and the current subject image movement amount XX=
An, if the lens was not driven last time, that is, BF
If M=0, the process advances to S207 and compares the previous defocus amount An-1 and the current defocus amount An,
It is determined whether the subject image is approaching the focus position. If the subject image is approaching the focus position, the process will return to the main process via S218 because it will eventually become in focus even if it does not enter the tracking mode. On the other hand, in S207, if it is determined that the subject image is moving away from the focus position or if it is determined that the subject image is at the same distance, in S208, the previous defocus amount An-1 is calculated from the current defocus amount An. Subtract the current subject image movement amount XX = A
As n-An-1, in S210, from t obtained in S203, the object image speed OBJSP during one cycle from distance measurement to distance measurement, that is, XX/(Kva
lue x t) and determine whether this is larger than a predetermined value. Here, the predetermined value is, for example, the amount that the subject image moves within the time period t from distance measurement to distance measurement plus the release time lag RLt, which is expressed by the formula, focusing width / (t + RLt). The speed matches the width. In other words, if the object image speed OBJSP is smaller than this value, if you drive the lens based on the current distance measurement and then perform the release ON interrupt processing, the moving object image will be displayed at the start of exposure after the release time lag has elapsed. This means that the subject is within the focusing range, so there is no particular need to track the moving object. However, in order to reliably identify a moving object, the predetermined value may be set to a smaller value with a margin. Further, although the judgment is somewhat rough, the predetermined value may be set to a speed at which the amount by which the subject moves during the release time lag matches the focusing width. As described above, when the object speed OBJSP is determined to be smaller than the predetermined value,
The process moves to S225, and after clearing the calculation data,
The process passes through S218 and returns to the main process. On the other hand, if the object image speed OBJSP is greater than the predetermined value, S2
In step 11, it is determined whether or not this is the first time that the above speed determination has been made. If it is the first time, it cannot be determined with certainty that the object is a moving object, so
and return to main processing. If the object image speed OBJSP is determined to be larger than a predetermined value in two or more distance measurement calculations, it is determined that the object is definitely moving, and the correction is turned on for the first time, and the lens drive based on the moving object tracking algorithm in this case is activated. It will be done. S21
2. In S213, each correction is turned on, flag C10 = 0
(Indicates that this is the first time the correction has been turned on. From the second time onward, set C10=1). In S214, the current defocus direction is determined, and based on this, the moving direction of the subject image is determined. That is, if the defocus direction is rear focus (+), it is determined that the subject is moving closer to the camera, and advance tracking processing is entered in S222. On the other hand, if the defocus direction is the front focus (-), it is determined that the moving direction of the subject is moving away from the camera, and a tracking process is entered in S223. Further, in S215, a flag FFN indicating the relative positional relationship between the subject and the camera is set to 0, indicating that the subject is moving closer to the camera. Further, in S216, the flag FFN is set to 1 to indicate that the subject is moving away from the camera. Thereafter, the process returns to main processing via S218.

【0024】補正ONとなった後に処理がこのルーチン
にきたときには、S204でS219へ処理が移り、被
写体の移動方向に応じて、被写体がカメラに近づく方向
に移動している場合には、S220の処理を行い、S2
17において、合焦用のデフォーカス量を図23のルー
チンにより再計算し、被写体がカメラから遠ざかる方向
に移動している場合には、S221の処理を行い、S2
18を通ってメイン処理に戻る。
When the process reaches this routine after the correction is turned ON, the process moves from S204 to S219, and if the subject is moving closer to the camera according to the moving direction of the subject, the process proceeds to S220. Process and S2
In step 17, the defocus amount for focusing is recalculated using the routine of FIG. 23, and if the subject is moving away from the camera, the process of S221 is performed,
18 and returns to the main processing.

【0025】S218においては、次回の計算の為に、
AnをAn−1とし、また、AFPnをAFPn−1と
して、各データを格納すると共に、フラグBFMを0に
設定し直す。図8は、図7のS222の、追従モードか
ら先回りモードに移る場合のサブルーチンである。XX
は被写体移動量(パルス数)であり、これを今回の計算
で使用するためPnにセットする(S261)。上述の
様に被写体移動量Pnの関数としてレリーズタイムラグ
分の駆動量を算出し(S262)、S263で今回のレ
ンズ駆動量(後追い追従から先回り追従に入るための駆
動量)AFPを計算する。詳しくは、基本計算の説明で
既に述べた通りである。
[0025] In S218, for the next calculation,
An is set to An-1, AFPn is set to AFPn-1, each data is stored, and the flag BFM is reset to 0. FIG. 8 shows a subroutine in S222 of FIG. 7 when the mode shifts from follow-up mode to anticipatory mode. XX
is the object movement amount (number of pulses), and is set to Pn in order to use it in the current calculation (S261). As described above, the drive amount for the release time lag is calculated as a function of the subject movement amount Pn (S262), and in S263 the current lens drive amount (the drive amount for switching from trailing tracking to anticipatory tracking) AFP is calculated. The details are as already described in the explanation of the basic calculation.

【0026】補正ONとなってから2回目以降の動体予
測演算においては、図7のS215、S216でセット
されたFFNの値を基に、被写体の移動方向により異な
る処理を行っている。図9はそのうちの、被写体が遠方
よりカメラに近付いて来る場合のS220の処理を示し
ている。補正ON後初めてこのルーチンを通るときには
、S301でフラグC10が0と判定され、被写体の動
きを越えて先回り追従に入ったかどうかがS303で判
断される。今回と前回のデフォーカス方向が異なってい
れば先回り追従に入ったと判断され、S304でフラグ
C10=1とセットされ、処理はS305に移る。前回
と今回のデフォーカス方向が同じであれば、後追い追従
のままであると判断され、処理はS323に移る。補正
ON後先回り追従に入って2回目以降にこのルーチンに
入ってきた場合には、S301でフラグC10=0でな
いと判断され、S302で前回と今回のデフォーカス方
向が同じかどうかが判断される。この場合、前回の処理
では既に先回り追従の状態にあるので、もしも前回と今
回のデフォーカス方向が異なると、先回り追従から後追
い追従に変わったことになり、処理はS323に移る。 今回と前回のデフォーカス方向が同じであれば、そのま
ま先回り追従を続けていることになり、処理はS305
に移る。
In the second and subsequent moving object prediction calculations after the correction is turned on, different processing is performed depending on the moving direction of the object based on the FFN value set in S215 and S216 in FIG. FIG. 9 shows the processing in S220 when the subject approaches the camera from a distance. When this routine is passed for the first time after the correction is turned on, the flag C10 is determined to be 0 in S301, and it is determined in S303 whether or not proactive tracking has started beyond the movement of the subject. If the defocus directions this time and the previous time are different, it is determined that proactive tracking has started, the flag C10 is set to 1 in S304, and the process moves to S305. If the previous and current defocus directions are the same, it is determined that trailing tracking remains the same, and the process moves to S323. If this routine is entered for the second time or later after entering proactive tracking after correction is turned on, it is determined in S301 that flag C10 is not 0, and it is determined in S302 whether the defocus direction of the previous time and this time are the same. . In this case, since the previous process has already been in the proactive tracking state, if the defocusing direction is different between the previous time and this time, the process has changed from proactive tracking to trailing tracking, and the process moves to S323. If the defocus direction this time and the previous time are the same, it means that proactive tracking is continued, and the process is performed in S305.
Move to.

【0027】S305で今回の測距によるデフォーカス
量Anと、前回のレリーズタイムラグ分に対応するレン
ズ駆動量Txpn−1とを比較する。これは、前述のよ
うに、被写体像のスピードが一定であると仮定してPn
を計算していることによって生じる誤差を補正するため
の処置である。An>Txpn−1であれば、実際の被
写体像の移動量がPnより小さかった場合であり、前回
のレンズ駆動量が大きすぎたと判断され、先回り量が大
きすぎる場合の処理に移る(ステップS314以降)。 また、S305でNOであれば、実際の被写体像の移動
量がPnと同じか大きかった場合であり、前回のレンズ
駆動量が不十分または適量であった場合の処理となる。 次のS306及び314におけるBOVというフラグは
、前ステップ(S305)の判定結果が前回はどうであ
ったかを示すフラグで、BOV=1の場合が先回りし過
ぎ、BOV=0の場合は先回り不十分または適量であっ
たことを示しており、最初にこのルーチンに来たときに
は、必ずBOV=0として処理される。
In S305, the defocus amount An obtained by the current distance measurement is compared with the lens drive amount Txpn-1 corresponding to the previous release time lag. As mentioned above, assuming that the speed of the subject image is constant, Pn
This is a measure to correct errors caused by calculating . If An>Txpn-1, this means that the actual movement amount of the subject image is smaller than Pn, and it is determined that the previous lens drive amount was too large, and the process moves to the case where the advance amount is too large (step S314 onwards). Further, if NO in S305, this means that the actual moving amount of the subject image is equal to or larger than Pn, and the process is performed when the previous lens driving amount was insufficient or appropriate. The flag BOV in the next steps S306 and 314 is a flag that indicates what the judgment result of the previous step (S305) was last time.If BOV=1, it is too proactive, and if BOV=0, it is insufficiently proactive. This indicates that the amount was appropriate, and when this routine first comes, it is always processed as BOV=0.

【0028】S307は図5に示される、今回・前回と
もAn>Txpn−1ではなかった場合の計算を示し、
同図について既に説明した通りの計算を行う。S310
は図10に示される、前回An>Txpn−1であり、
かつ、今回はそうではなかった場合の計算式を示してい
る。図10において補正量(被写体像移動量)P2はP
2=|A2−A1| であり、 Txp2=f(P2)、駆動量AFPはAFP=Txp
2+(P2−A2) である。以上をまとめると次のようになる。 Pn=|An−An−1| Txpn=f(Pn) AFP=Txpn+Pn−An 上記S307、S310の処理を行った何れの場合もそ
の後のS308またはS311でAFP<0かどうかを
見て、AFP<0の場合にはS312に移行しPn=0
、AFP=0としてレンズ駆動は行わない(逆方向のレ
ンズ駆動は行わない)。いづれの場合もその後のS30
9または313で今回の演算値に基づいて、BOVを再
セットする。
[0028] S307 shows the calculation in the case where An>Txpn-1 is not satisfied both this time and the previous time, as shown in FIG.
The calculations are performed as already explained with respect to the same figure. S310
is shown in FIG. 10, the previous time An>Txpn-1,
Moreover, this time we show the calculation formula for a case where this is not the case. In FIG. 10, the correction amount (subject image movement amount) P2 is P
2=|A2-A1|, Txp2=f(P2), and the driving amount AFP is AFP=Txp
2+(P2-A2). The above can be summarized as follows. Pn=|An-An-1| Txpn=f(Pn) AFP=Txpn+Pn-An In any case where the above steps S307 and S310 are performed, in the subsequent S308 or S311, it is checked whether AFP<0, and AFP< If it is 0, the process moves to S312 and Pn=0.
, AFP=0, and lens drive is not performed (lens drive in the opposite direction is not performed). In either case, the subsequent S30
9 or 313, the BOV is reset based on the current calculated value.

【0029】今回An>Txpn−1であった場合には
S314以下のループに処理が移る。この場合AnがT
xpn−1より大きいので、被写体像がレリーズタイム
ラグ分以上先回りした状態であり、レンズ駆動は行わな
いため、何れの処理に於いても補正量・AFPとも0を
セットし、次回の計算に用いるため、Txpの計算のみ
行う。S314ではS306と同様の場合分けを行う。
If An>Txpn-1 this time, the process moves to a loop starting from S314. In this case, An is T
Since it is larger than xpn-1, the subject image is in advance by more than the release time lag, and the lens is not driven, so both the correction amount and AFP are set to 0 in any process and used for the next calculation. , Txp is only calculated. In S314, the same case classification as in S306 is performed.

【0030】S315は図11、12に示される、前回
、An>Txpn−1でなかったが、今回はAn>Tx
pn−1であった場合の計算で、補正量P2は、P2=
P1−(A2−Txp1) で表される。従って、 Txp2=f(P2) まとめると、 Pn=Pn−1−(An−Txpn−1)Txpn=f
(Pn) Pn=0 AFP=0 となる。
S315 is shown in FIGS. 11 and 12. Previously, An>Txpn-1 was not satisfied, but this time An>Tx
In the calculation when pn-1, the correction amount P2 is P2=
It is represented by P1-(A2-Txp1). Therefore, Txp2=f(P2) In summary, Pn=Pn-1-(An-Txpn-1)Txpn=f
(Pn) Pn=0 AFP=0.

【0031】S317以下は今回前回ともAn>Txp
n−1だった場合の処理を示している。S317では、
AnがTxpn−1をオーバーした量が、図3のS6に
おける合焦の判断に用いられる所定の合焦幅内にあるか
どうか、即ち、レリーズタイムラグ経過後の被写体像の
位置がピント位置から合焦幅内に入るかどうかを判定す
るため、合焦幅分のパルス数をTxp−1に加えたもの
とAnを比較する。
[0031] For S317 and below, An>Txp both this time and last time.
The processing when the number is n-1 is shown. In S317,
Whether or not the amount by which An exceeds Txpn-1 is within the predetermined focusing width used to determine focus in S6 in FIG. In order to determine whether it is within the focal width, An is compared with Txp-1 plus the number of pulses corresponding to the focal width.

【0032】次のS318は、AnがTxpn−1をオ
ーバーした量の方が小さくなる場合、すなわちレイーズ
タイムラグ経過後の被写体像位置が合焦幅内になる場合
で、図13に示される場合の計算である。同図から、P
2=|A2−A1|従って、 Txpn=f(Pn) まとめると、 Pn=|An−An−1| Txp2=f(P2) Pn=0 AFP=0 S317でAnがTxpn−1をオーバーした量が合焦
幅内にないと判定された場合には、処理はS319に移
る。S319ではAnがTxpn−1をオーバーした量
所定の合焦幅内に入らない状態が3回以上続いたと判断
された場合には、被写体像位置がピント位置から大きく
外れた場合か、被写体像移動方向または移動速度が大き
く変わった場合と判断し、被写体像が合焦幅内に入って
くる可能性が低いとして追従モードを中止するため、S
322で補正OFFとし、計算データは全てクリアされ
る。そして、今回のデータをAF1回目のデータとして
動体予測演算をやりなおすことになる。S320は、図
14に示される場合の計算で、内容はS318と同様で
ある。
The next step S318 is when the amount by which An exceeds Txpn-1 is smaller, that is, when the subject image position after the raise time lag has elapsed is within the focusing width, as shown in FIG. This is the calculation. From the same figure, P
2=|A2-A1| Therefore, Txpn=f(Pn) To summarize, Pn=|An-An-1| Txp2=f(P2) Pn=0 AFP=0 Amount by which An exceeds Txpn-1 in S317 If it is determined that is not within the in-focus width, the process moves to S319. In S319, if it is determined that the state in which An exceeds Txpn-1 and does not fall within the predetermined focusing width continues three or more times, it is determined that the subject image position has deviated significantly from the focus position or that the subject image has moved. S
At step 322, the correction is turned off and all calculation data is cleared. Then, the moving object prediction calculation is performed again using the current data as the data for the first AF. S320 is the calculation for the case shown in FIG. 14, and the content is the same as S318.

【0033】S302あるいはS303で、今回先回り
追従していないと判断された場合には、S323で前回
An>Txpn−1であったかどうかが、フラグBOV
により判断される。S323で前回An>Txpn−1
であったと判定された場合には、処理はS324に移る
。これは、前回先回り追従していて今回ピント位置が被
写体像より後になった図15に示される場合である。 この時補正量P2は P2=A2+A1 で表される。従って、 Txp2=f(P2) となる。駆動量AFPは、 AFP=Txp2+P2+A2 以上をまとめると、 Pn=An+An−1         Txpn=f(Pn)AFP=Txp
n+Pn+An となる。
[0033] If it is determined in S302 or S303 that proactive tracking is not being performed this time, the flag BOV is checked in S323 to determine whether An>Txpn-1 last time.
It is judged by. Previous An>Txpn-1 in S323
If it is determined that it is, the process moves to S324. This is the case shown in FIG. 15, where the previous tracking was performed in advance and the current focus position is after the subject image. At this time, the correction amount P2 is expressed as P2=A2+A1. Therefore, Txp2=f(P2). The driving amount AFP is AFP=Txp2+P2+A2 To summarize the above, Pn=An+An-1 Txpn=f(Pn)AFP=Txp
It becomes n+Pn+An.

【0034】S323で前回An>Txpn−1でない
と判定されたときには処理はS327に移る。図16は
このうち、後追い追従から先回り追従に入るときの処理
を行ったが、先回り出来なかった場合であり、図17は
先回り追従中に先回りできなくなった場合を示している
。何れの場合にも、補正量P2は、 P2=Txp1+P1+A2 となる。従って Txp2=f(P2) となり、駆動量AFPは、 AFP=Txp2+P2+A2 となる(S327)。以上をまとめると、Pn=Txp
n−1+Pn−1+An Txpn=f(Pn) AFP=Txpn+Pn+An となる。
[0034] If it is determined in S323 that the previous time An>Txpn-1 is not satisfied, the process moves to S327. FIG. 16 shows a case in which the transition from trailing tracking to anticipatory tracking was performed, but it was not possible to move ahead, and FIG. 17 shows a case where it became impossible to move ahead during anticipatory tracking. In either case, the correction amount P2 is as follows: P2=Txp1+P1+A2. Therefore, Txp2=f(P2), and the drive amount AFP becomes AFP=Txp2+P2+A2 (S327). To summarize the above, Pn=Txp
n-1+Pn-1+An Txpn=f(Pn) AFP=Txpn+Pn+An.

【0035】S324または327の計算を行った後は
、S325において、フラグC10=0とセットして、
次回の測距では今回の演算を補正後初めての演算として
取り扱う。また、S326においては、フラグBOV=
0にセットする。
After performing the calculation in S324 or 327, in S325, the flag C10 is set to 0,
In the next distance measurement, this calculation will be treated as the first calculation after correction. Further, in S326, the flag BOV=
Set to 0.

【0036】図7において、S221、S223は何れ
も被写体が近くから遠くへと移動している場合である。 被写体が等速度でカメラから離れる方向に移動する場合
には、被写体像スピードが次第に遅くなっていくため、
レンズ駆動量はそれにつれて少なくなっていく。もしも
、この場合に被写体がカメラに近づいている場合と同様
にレリーズタイムラグ分先回りして補正を行うと、オー
バー補正になってしまう可能性が高い。オーバー補正に
なった場合、いわゆる後ピンとなってしまうが、写真の
出来上りを考慮した場合、これはあまり好ましくない。 従って、被写体がカメラから離れる方向に移動する場合
には、レリーズタイムラグ分先回りしない後追い追従を
基本としている。
In FIG. 7, S221 and S223 are both cases where the subject is moving from near to far. When the subject moves away from the camera at a constant speed, the subject image speed gradually slows down.
The amount of lens drive decreases accordingly. In this case, if correction is performed in advance by the release time lag, as in the case where the subject is approaching the camera, there is a high possibility that over-correction will occur. If over-correction occurs, it will result in so-called back focus, which is not very desirable when considering the quality of the photo. Therefore, when the subject moves in a direction away from the camera, the camera basically follows the subject without moving in advance by the release time lag.

【0037】図18はカメラから遠ざかる方向に移動し
ている被写体の被写体像位置とレンズ駆動パルスの関係
を表したグラフである。図18において、■点で得られ
たモータ駆動パルス数をA1とする。この後、モータに
パルスA1が印加されレンズ駆動されて、時間t1経過
後には■点でのパルス数A2が求められたとする。■点
から■点までの間の被写体像の移動量はパルス数に変換
するとA2になる。従って、この■点と■点の二点間で
の被写体像移動速度OBJspは、 OBJsp=A2/t1 となる。ここで、■点の被写体像位置を基準にした■点
から時間t2経過後の■点での被写体像位置は、被写体
像速度が一定と仮定すれば、 A2+t2×OBJsp で表される。ここで時間t2は先回り追従のところで説
明したように、t1と同一であると考えられるので、t
2間の被写体像移動量はA2と同一であると考えられる
。そこで駆動量は2×A2であると計算される。即ち、
■点において2xA2だけモータを駆動した点が、時間
t2経過後の被写体像位置と一致することになる。 この場合、レンズ駆動終了後にレリーズONを割り込ま
せてレリーズタイムラグ経過後に露光を開始しても、そ
の時点でピント位置は被写体像位置の前にあり、後ピン
状態ではないのでTXP計算はしないで、後追い追従を
行う。このように■点で得られたデフォーカス量A2に
基づいて、2×A2だけレンズ駆動した結果、■点でA
3のデフォーカス量が得られたとすると、次の駆動量は
、先回り追従におけるような補正を行わず、前回の駆動
と同様に単にA3×2とするにとどめている。即ち、後
追い追従中のレンズ駆動量を求める一般式として、次式
が得られる。 レンズ駆動量AFP=2×An (ただし、t1=t2,前回レンズ駆動したとする)
FIG. 18 is a graph showing the relationship between the subject image position of a subject moving away from the camera and the lens drive pulse. In FIG. 18, the number of motor drive pulses obtained at point ■ is assumed to be A1. It is assumed that after this, a pulse A1 is applied to the motor to drive the lens, and after a time t1 has elapsed, the number of pulses A2 at point ■ is determined. The amount of movement of the subject image from point (2) to point (2) becomes A2 when converted into the number of pulses. Therefore, the object image movement speed OBJsp between the points ■ and ■ points is OBJsp=A2/t1. Here, the subject image position at point ■ after time t2 has elapsed from point ■ based on the subject image position at point ■ is expressed as A2+t2×OBJsp, assuming that the subject image speed is constant. Here, time t2 is considered to be the same as t1 as explained in the proactive tracking section, so t
The amount of movement of the subject image between A2 and A2 is considered to be the same. Therefore, the drive amount is calculated to be 2×A2. That is,
The point where the motor is driven by 2xA2 at point (2) coincides with the subject image position after time t2 has elapsed. In this case, even if you interrupt the release ON after the lens drive ends and start exposure after the release time lag has elapsed, the focus position is in front of the subject image position at that point and is not in the rear focus state, so do not calculate TXP. Perform follow-up. As a result of driving the lens by 2×A2 based on the defocus amount A2 obtained at point ■, the result is A at point ■.
Assuming that a defocus amount of 3 is obtained, the next drive amount is simply set to A3×2 as in the previous drive without performing any correction as in proactive tracking. That is, the following formula can be obtained as a general formula for determining the amount of lens drive during rear tracking. Lens drive amount AFP = 2 x An (assuming that t1 = t2 and the lens was driven last time)


0038】図19、20はそれぞれ図7のS223、S
221のサブルーチンを表している。図19では、S2
71において被写体像の移動量(パルス数)XXとデフ
ォーカス量(パルス数)を加えたものをレンズ駆動量と
している。この被写体像の移動量XXは図7のS206
〜S209で、前回のレンズ駆動の有無により計算され
たもので、前回レンズ駆動されている場合でXX=An
、前回駆動されていない場合にはXX=An−An−1
となっており、図19のS271で計算されるレンズ駆
動量AFPは2×Anを越えることはない。
[
FIGS. 19 and 20 show S223 and S in FIG. 7, respectively.
221 subroutines. In FIG. 19, S2
In step 71, the sum of the moving amount (number of pulses) XX of the subject image and the amount of defocus (number of pulses) is determined as the lens driving amount. The amount of movement XX of this subject image is determined by S206 in FIG.
~ In S209, it is calculated based on whether or not the lens was driven last time, and if the lens was driven last time, XX=An
, if it was not driven last time, XX=An-An-1
Therefore, the lens drive amount AFP calculated in S271 of FIG. 19 does not exceed 2×An.

【0039】図20では、S272において、今回のデ
フォーカス方向のチェックを行っている。これは、被写
体が遠ざかる場合でありながら、レンズ駆動後のデフォ
ーカス方向が正、即ち、後ピンの場合にはオーバー補正
をしていることになるため、これを避ける為のチェック
を行っているものである。オーバー補正の場合にはS2
77で補正OFFとし、計算データをクリアして今回の
データをAFの1回目のデータとして再計算することに
なる。オーバー補正かどうかのチェックをパスすると次
のS273〜S275において、図7のS206−20
9の場合と同様に、前回のレンズ駆動の有無により被写
体移動量を計算し、S276においてレンズ駆動量AF
Pをセットする。これは図19の場合と同様である。
In FIG. 20, the current defocus direction is checked in S272. This is because even though the subject is moving away, if the defocus direction after driving the lens is positive, that is, if the rear focus is on, over-compensation is being performed, so we check to avoid this. It is something. In case of over correction, S2
At step 77, the correction is turned off, the calculation data is cleared, and the current data is recalculated as the first AF data. If the check to see if over-correction is passed, in the next S273 to S275, S206-20 in FIG.
9, the amount of subject movement is calculated based on the presence or absence of the previous lens drive, and the lens drive amount AF is calculated in S276.
Set P. This is similar to the case in FIG.

【0040】ここで、図3における、S6の合焦の判定
について説明する。この判断は、S2により得たデフォ
ーカス量が前述の所定の合焦幅内にあるか否かにより判
定される。但し、先回り追従モードの場合は常にレリー
ズタイムラグ分先回りするよう制御しているので、レリ
ーズタイムラグ経過後には合焦可能な状態であっても測
距時にデフォーカス量が合焦範囲にあるとは限らない。 また、測距時に合焦範囲にあったとしても、レリーズタ
イムラグ経過後に合焦範囲内にあるとは限らない。従っ
て、得られたデフォーカス量そのものからは、合焦可能
な状態であっても合焦検出ができないことになる。そこ
で、図7のS217において、合焦チェック用デフォー
カス量を計算しているのである。このS217の再計算
について、図23により説明する。まず、S51では前
回のAF処理におけるレリーズタイムラグ分の駆動量T
xpn−1をパルス数から像面デフォーカス量DDに変
換する。次に、S52で今回の測距によって求められた
デフォーカス量Defocusにその正負に拘らず像面
デフォーカス量DDをデフォーカス量に加えることによ
り、合焦チェック用デフォーカス量とする。なお、後追
い追従の場合には、レリーズタイムラグ分余計にレンズ
を駆動していないので、このような合焦チェック用デフ
ォーカス量の計算は行われない。
Here, the determination of focus in S6 in FIG. 3 will be explained. This determination is made based on whether the defocus amount obtained in S2 is within the aforementioned predetermined focusing width. However, in advance tracking mode, control is always performed to advance by the amount of the release time lag, so even if it is possible to focus after the release time lag has elapsed, the defocus amount may not be within the focus range when measuring distance. do not have. Furthermore, even if the object is within the focus range during distance measurement, it does not necessarily mean that the object will be within the focus range after the release time lag has elapsed. Therefore, from the obtained defocus amount itself, focus cannot be detected even if it is in a focusable state. Therefore, in S217 of FIG. 7, the defocus amount for focus check is calculated. This recalculation in S217 will be explained with reference to FIG. 23. First, in S51, the drive amount T corresponding to the release time lag in the previous AF process is
Convert xpn-1 from the number of pulses to the image plane defocus amount DD. Next, in S52, the image plane defocus amount DD is added to the defocus amount Defocus obtained by the current distance measurement, regardless of whether it is positive or negative, thereby obtaining the defocus amount for focus check. Note that in the case of trailing tracking, the lens is not driven extra by the release time lag, so such calculation of the defocus amount for focus check is not performed.

【0041】以上の動作により、被写体がカメラに近づ
く方向に移動している場合にはレリーズタイムラグ分先
回りしてレンズを駆動しているので、いつレリーズON
としても大きく後ピンとなることはなく、いつもピント
の合った状態で撮影が出来る。また、被写体がカメラか
ら遠ざかる方向に移動している場合には、後追い追従す
るアルゴリズムとなっているため、オーバー補正して後
ピンになることなく、ピントの合った写真撮影が可能と
なる。
With the above operation, when the subject is moving toward the camera, the lens is driven in advance by the release time lag, so it is difficult to know when to turn on the release.
However, the focus will not be too far behind, and you can always take pictures with the camera in focus. Furthermore, if the subject is moving away from the camera, the algorithm follows the subject, so it is possible to take a photograph in focus without over-compensating and getting the subject behind the camera.

【0042】なお、測距において、積分時間を短く取れ
ば、測距データのサンプリング間隔も短くすることがで
き、被写体に追従し易くなるので、積分時間に制限を設
けてもよい。図21は、積分時間に制限を設ける場合の
フローチャートである。通常は、積分時間の最大値:T
intMAX=通常最大積分時間NORMAXとしてい
るが、補正ON時には図21のように、通常最大積分時
間NORMAXより小さい値の、補正ON時最大積分時
間CONMAXを積分時間の最大値として用いることに
より、通常より短い積分時間で測距を行うことが出来る
[0042] In distance measurement, if the integration time is shortened, the sampling interval of the distance measurement data can be shortened, and it becomes easier to follow the subject, so a limit may be set on the integration time. FIG. 21 is a flowchart in the case of setting a limit on the integration time. Usually, the maximum value of integration time: T
intMAX = normal maximum integration time NORMAX, but when the correction is ON, as shown in Figure 21, by using the maximum integration time CONMAX when the correction is ON, which is smaller than the normal maximum integration time NORMAX, as the maximum value of the integration time, the Distance measurement can be performed with a short integration time.

【0043】また、前述のように、追従時にはレンズが
端点まで駆動されてしまう場合も考えられる。レンズ駆
動時には、図3のS15で端点検出回路11(図1)を
リセットし、INT2割り込みを許可する。端点検出回
路11はある一定時間エンコーダからパルスが入らなか
った場合、CPU3のINT2の割り込みを発生させる
。即ち、レンズ駆動中にレンズが端点まで駆動された場
合、エンコーダ5からのパルスが出なくなるため、端点
検出回路11がONとなり、INT2割り込みが発生す
る。図22はこの割り込み処理のフローチャートである
。割り込みが発生すると、レンズ駆動は中止され、以後
の端点検出割り込みを禁止した後、補正OFFとなる(
S501−503)。割り込みが発生せず、レンズ駆動
が終了した場合には、図3のS16−3で、INT2割
り込みを禁止する。
Furthermore, as described above, there may be cases where the lens is driven to an end point during tracking. When driving the lens, the end point detection circuit 11 (FIG. 1) is reset in S15 of FIG. 3, and the INT2 interrupt is enabled. The end point detection circuit 11 generates an interrupt at INT2 of the CPU 3 when no pulse is received from the encoder for a certain period of time. That is, when the lens is driven to the end point while the lens is being driven, the encoder 5 no longer outputs pulses, so the end point detection circuit 11 is turned on and an INT2 interrupt occurs. FIG. 22 is a flowchart of this interrupt processing. When an interrupt occurs, lens driving is stopped, subsequent end point detection interrupts are prohibited, and then correction is turned OFF (
S501-503). If no interrupt occurs and lens driving is completed, the INT2 interrupt is prohibited in S16-3 of FIG.

【0044】図24は図3のS7に示される、合焦処理
の一例を表すサブルーチンであり、図1のLED駆動回
路10におより合焦LEDを点灯させることにより、操
作者にカメラが合焦状態にあることを知らせるものであ
る。この合焦LEDはカメラのファインダ内に設けるこ
とが好適である。ここではC10=1以外の場合は、単
に合焦表示を行ってリターンする。
FIG. 24 is a subroutine showing an example of the focusing process shown in S7 of FIG. 3. By lighting the focusing LED by the LED drive circuit 10 of FIG. This is to let you know that you are in a state of focus. This focusing LED is preferably provided within the viewfinder of the camera. Here, if C10 is not 1, the process simply displays the focus and returns.

【0045】また、C10=1の時、即ち先回り追従と
なっているときには、 MAXAFPspeed/Kvalue≧OBJSP(
mm/s) MAXAFPspeed:駆動可能最高速度(パルス/
s)OBJSP:被写体像速度(mm/s)である場合
には常に合焦表示を行う。言い替えれば、先回り追従中
、合焦表示している時は常にピントの合った写真を撮る
ことができることを確認できるようになっている(フロ
ーチャートにおけるMAXS=MAXAFPspeed
/Kvalue、OBJ=OBJSP)。被写体スピー
ドが追従限界スピードを越えた場合、即ち、MAXAF
Pspeed/Kvalue<OBJSP(mm/s) が成立するときには、レリーズタイムラグ分先回りは出
来ず、レリーズしてもピントの合った写真は撮影できな
いので、この場合には合焦表示をしないようにしている
Further, when C10=1, that is, when proactive tracking is performed, MAXAFPspeed/Kvalue≧OBJSP(
mm/s) MAXAFPspeed: Maximum driveable speed (pulse/
s) OBJSP: When the object image speed is (mm/s), in-focus display is always performed. In other words, you can confirm that you can always take in-focus photos when the focus is displayed during proactive tracking (MAXS = MAXAFPspeed in the flowchart).
/Kvalue, OBJ=OBJSP). If the subject speed exceeds the tracking limit speed, that is, MAXAF
When Pspeed/Kvalue<OBJSP (mm/s) holds, it is not possible to anticipate the release time lag, and even if you release the camera, you will not be able to take a photo in focus, so in this case, the focus will not be displayed. .

【0046】また、先回り追従モードの場合には、レリ
ーズタイムラグ分先回りするので、予めAFスイッチS
1のみONして合焦状態とした後、レンズ駆動が終了し
た時点でレリーズスイッチSWRをONすれば、必ず露
光開始時には、被写体像位置とピント位置とが一致する
。しかし、それ以外のタイミングでレリーズスイッチを
ONした場合や、予め、レリーズスイッチSWRをAF
スイッチSW1と同時にONし、レンズ駆動後所定の処
理時間経過後にレリーズONの割り込みが許可された場
合には、予め想定したレリーズタイムラグの起点と実際
のレリーズONの割り込みタイミングは一致しない。 また、後追い追従の場合には、レリーズタイムラグは考
慮していない。従って、これらの場合には、露光開始時
に被写体像位置とピント位置とが一致するとは限らない
。そのため、レリーズタイムラグ間にも更に可能な量だ
けレンズ駆動するように構成すれば、更に精密に合焦さ
せることができる。また、先回り追従モードで続けて何
枚か撮影を行うような場合、露光終了後、ミラー下降・
フィルム巻き上げまで完了してからAFを再スタートし
ていたのでは追従能力を上げることができない。ミラー
下降後には測距可能になることから、ミラー下降後直ち
に測距を開始し、巻き上げが完了したか否かに拘らず上
記測距データによる駆動パルス数と、レリーズ前に得ら
れていた測距による駆動パルス数とを加算した分をレン
ズ駆動することにより、追従能力を高めることができる
In the case of advance tracking mode, the AF switch S is set in advance by the release time lag.
If only 1 is turned on to bring the camera into focus, and then the release switch SWR is turned on at the end of lens driving, the subject image position and the focus position will always match at the start of exposure. However, if you turn on the release switch at other times, or if you set the release switch SWR to AF in advance.
When the switch SW1 is turned on at the same time and the release ON interrupt is permitted after a predetermined processing time has elapsed after the lens is driven, the pre-assumed starting point of the release time lag does not match the actual release ON interrupt timing. Further, in the case of tracking, the release time lag is not taken into consideration. Therefore, in these cases, the subject image position and the focus position do not necessarily coincide at the start of exposure. Therefore, if the lens is configured to be driven as much as possible during the release time lag, more precise focusing can be achieved. Also, when shooting several pictures in a row in advance tracking mode, the mirror may be lowered or lowered after the exposure is completed.
If the AF is restarted after film winding is completed, tracking ability cannot be improved. Since distance measurement is possible after the mirror is lowered, distance measurement is started immediately after the mirror is lowered, and regardless of whether winding is completed or not, the number of drive pulses based on the distance measurement data and the measurement obtained before the release are The tracking ability can be improved by driving the lens by adding the number of driving pulses depending on the distance.

【0047】図25は、これらの場合も考慮したレリー
ズ割り込み処理のフローチャートであり、図26、27
はこのフローチャートにより制御されるレンズ駆動の状
態を示す図である。図26はレンズ停止時にレリーズO
Nの割り込みが生じた状態を示し、図27はレンズ駆動
時にレリーズONの割り込みが生じた状態を示すもので
ある。図3のS8でレリーズON割り込みが許可され、
レリーズスイッチSWRによるレリーズON信号が割り
込むことにより、この処理が開始される。まず、S60
1において、ミラーアップ、レンズ絞りの制御を行い、
S602において、補正ONか否かが判定される。補正
OFFの時は、S602を経てS603−S605の通
常のレリーズ制御を行う。即ち、S603でシャッタを
制御し、S604でミラー下降完了するのを待って、S
605で巻き上げを行い、割り込み処理を終了する。一
方、補正ONの時は、S607でレンズ駆動中であるか
否かを判定し、その結果に基づいて、S608または、
S609でレンズ駆動量AFPを再セットする。レンズ
駆動中で無い場合は、S608において、図26に示さ
れる、前回のレンズ駆動終了時からの経過時間ttによ
り、前回のレンズ駆動終了時からの被写体の移動量を、
式、 OBJSPx  KVALUExtt により計算し、その値を新たにAFPにセットする。一
方、レンズ駆動中の場合は、S609において、図27
に示される、前回のレンズ駆動終了時からの経過時間t
tの間に駆動すべき駆動量(上記S608と同様)OB
J×Kvalue×tt から、現在のレンズ駆動の設定値AFPのうち既に駆動
された分である (AFP−Dar) ただし、Dar:残りのレンズ駆動量 を引くことにより算出して、新たなレンズ駆動量AFP
とする。S608あるいはS609で再セットされたA
FPがレリーズタイムラグ時間で駆動可能な最大AFパ
ルス数MXMを越える場合にはS611でAFP=MX
M とする。セットされたAFPによってレンズ駆動を行い
、露光を行う(S612、S613)。
FIG. 25 is a flowchart of the release interrupt processing taking these cases into consideration.
is a diagram showing the state of lens driving controlled by this flowchart. Figure 26 shows the release O when the lens is stopped.
FIG. 27 shows a state in which an interruption of N occurs, and FIG. 27 shows a state in which a release ON interruption occurs during lens drive. The release ON interrupt is enabled in S8 of FIG.
This process is started by an interruption of the release ON signal from the release switch SWR. First, S60
In step 1, control the mirror up and lens aperture,
In S602, it is determined whether correction is ON. When the correction is OFF, normal release control in S603-S605 is performed via S602. That is, the shutter is controlled in S603, and after waiting for the mirror to complete lowering in S604, the S
Winding is performed in step 605, and the interrupt processing is ended. On the other hand, when the correction is ON, it is determined in S607 whether or not the lens is being driven, and based on the result, S608 or
In S609, the lens drive amount AFP is reset. If the lens is not being driven, in step S608, the amount of movement of the subject since the end of the previous lens drive is calculated using the elapsed time tt since the end of the previous lens drive, as shown in FIG.
Calculate using the formula OBJSPx KVALUExtt and set the new value in AFP. On the other hand, if the lens is being driven, in S609
The elapsed time t from the end of the previous lens drive, shown in
Drive amount to be driven during t (same as S608 above) OB
J×Kvalue×tt This is the amount of the current lens drive setting value AFP that has already been driven (AFP-Dar). However, Dar: Calculated by subtracting the remaining lens drive amount, and the new lens drive Amount AFP
shall be. A reset in S608 or S609
If FP exceeds the maximum number of AF pulses MXM that can be driven in the release time lag time, AFP=MX in S611.
Let it be M. The lens is driven by the set AFP and exposure is performed (S612, S613).

【0048】S614でミラーの下降完了と判断される
と、フィルム巻き上げと同時に、次の測距、即ち積分・
入力・演算がS615にて行われ、S616で駆動パル
ス数Anが計算される。
When it is determined in S614 that the mirror has finished lowering, the next distance measurement, that is, the integration and
Input and calculation are performed in S615, and the number of drive pulses An is calculated in S616.

【0049】ここで図28を参照して、レリーズ終了後
、測距可能になると同時に次の追従動作を開始すること
により、追従能力をあげる機能について説明する。即ち
、追従モード時に、レリーズ終了後フィルムの巻き上げ
を完了してから、次回の測距演算等を開始したのでは、
追従能力をあげることが出来ない。ミラー下降時点では
測距を行うことが可能であるため、前回ミラーが上昇し
たt0の時点を経過し、t1においてレリーズ動作が開
始され、ミラーの下降が完了したt11の時点で測距を
開始して、駆動パルス数Anを求める。そして、前回の
測距、即ち、レリーズ動作が開始される前に求められて
いた駆動パルス数An−1を上記駆動パルス数Anに加
算し、新たな駆動パルス数とする。このように構成する
ことにより、ミラーが下降してからフィルムの巻き上げ
が完了するt2まで待ってから次回の測距を開始してレ
ンズを駆動する(図28の点線で表される場合)よりも
t2−t11の時間だけ早く追従動作を続行することが
できる(図28の実線で表される場合)。そして、S6
17において前回のデフォーカス量An−1+今回のデ
フォーカス量An=AFPとして、S618において、
フラグAlSをクリアし、補正OFFとしてレリーズの
割り込み処理を終了する。割り込み終了後は、図3のL
MOVに移り、レンズを上記の駆動量AFPで駆動する
Referring now to FIG. 28, a function for increasing the tracking ability by starting the next tracking operation as soon as distance measurement becomes possible after the shutter release is completed will be described. In other words, in tracking mode, if the next distance measurement calculation etc. is started after the film winding is completed after the release is completed,
I can't improve my tracking ability. Since it is possible to measure the distance when the mirror is lowered, the distance measurement is started after the time t0 when the mirror was raised last time, the release operation is started at t1, and the distance measurement is started at the time t11 when the mirror has finished lowering. Then, the number of driving pulses An is determined. Then, the number An-1 of drive pulses determined before the previous distance measurement, that is, the start of the release operation, is added to the number An of drive pulses to obtain a new number of drive pulses. By configuring in this way, it is possible to start the next distance measurement and drive the lens after waiting until t2 after the mirror has descended to complete winding of the film (in the case represented by the dotted line in Fig. 28). The follow-up operation can be continued earlier by the time t2-t11 (in the case represented by the solid line in FIG. 28). And S6
17, the previous defocus amount An-1 + the current defocus amount An = AFP, and in S618,
The flag AlS is cleared, the correction is turned OFF, and the release interrupt processing is ended. After the interrupt ends, L in Figure 3
Moving to MOV, the lens is driven by the above drive amount AFP.

【0050】図29は本件実施例におけるいわゆるオー
バーラップの一連の処理を示すフローチャートである。 オーバーラップ処理はレンズ駆動中にも更に測距動作を
行って、合焦用レンズの位置をより正確に求めるもので
ある。最初の測距開始時点で、ピント位置から大幅にず
れた被写体を測距したときには、その得られたデフォー
カス量自体が大幅な誤差を含むため、求められたレンズ
駆動量も正確な値にはならず、従って、合焦動作も満足
のゆくものにはならない。そこでレンズ駆動中にも更に
駆動量を求めるように構成することでより、正確な合焦
動作を行うためにオーバーラップ処理が行われる。
FIG. 29 is a flowchart showing a series of so-called overlap processes in this embodiment. The overlap process further performs a distance measurement operation while the lens is being driven to more accurately determine the position of the focusing lens. When distance measurement is performed on a subject that is significantly deviated from the focus position at the time of initial distance measurement, the obtained defocus amount itself contains a large error, so the determined lens drive amount may not be an accurate value. Therefore, the focusing operation will not be satisfactory. Therefore, by configuring the camera to further calculate the drive amount while the lens is being driven, overlap processing is performed in order to perform accurate focusing operation.

【0051】まず、レンズ駆動中にCCD積分を開始す
る。レンズ駆動量はカウンタ6にセットされているが、
S701において、積分開始時のレンズ駆動パルス数を
C1、積分終了時のレンズ駆動パレス数をC3とする。 S702においてCCDの積分データを入力し、S70
3において、デフォーカス量を演算により求める。S7
04においてこの求められたデフォーカス量に基づいて
、図3のS3の処理と同様にAFパルス数を計算し、計
算値をCxとする。Cx算出時のカウンタ6内のレンズ
駆動パルス数をC4とする。S705においてはレンズ
駆動量を更新するために必要なレンズ駆動パルス数を次
式により求める。 C2=(C1+C3)/2 A=Cx−(C4−C2) 上記Aが更新されたレンズ駆動パルス数となる。これを
S706においてカウンタ6にセットして、処理を終了
する。
First, CCD integration is started while the lens is being driven. The lens drive amount is set in the counter 6,
In S701, the number of lens drive pulses at the start of integration is set to C1, and the number of lens drive pulses at the end of integration is set to C3. In S702, the CCD integral data is input, and in S70
In step 3, the amount of defocus is calculated. S7
In step 04, based on the obtained defocus amount, the number of AF pulses is calculated in the same manner as in the process of S3 in FIG. 3, and the calculated value is set as Cx. The number of lens drive pulses in the counter 6 at the time of Cx calculation is assumed to be C4. In S705, the number of lens drive pulses required to update the lens drive amount is calculated using the following equation. C2=(C1+C3)/2 A=Cx-(C4-C2) The above A is the updated number of lens drive pulses. This is set in counter 6 in S706, and the process ends.

【0052】なお、図3のS17、18から明かなよう
に、補正ON時、即ち追従モード時においてはオーバー
ラップ処理は行われない。これは上述のように、オーバ
ーラップ処理はデフォーカス量が大きい場合に必要な処
理であるが、補正ON時には合焦用レンズは被写体に追
従しており、従って、デフォーカス量がそれほど大きい
とは考えられないからである。また、追従のために求め
たAFPの値が、メインルーチンとは別のルーチンで行
われるオーバーラップ処理のためのAFP算出により更
新されてしまい、追従動作そのものができなくなってし
まうという問題も生じからであある。
Note that, as is clear from S17 and S18 in FIG. 3, overlap processing is not performed when the correction is ON, that is, in the tracking mode. As mentioned above, overlap processing is necessary when the amount of defocus is large, but when the correction is ON, the focusing lens is tracking the subject, so it is difficult to imagine that the amount of defocus is that large. This is because it is unthinkable. Additionally, the AFP value obtained for tracking is updated by AFP calculation for overlap processing, which is performed in a routine different from the main routine, resulting in the problem that the tracking operation itself becomes impossible. It is.

【0053】上記実施例において詳述したように構成さ
れたカメラに実装される自動焦点調節装置においては、
結像面上の被写体が所定のスピード以上で移動している
、という判断が、測距動作ごとに連続して所定回数行わ
れた場合にのみ、追従モードに入る。即ち、被写体が所
定値以上のスピードで移動していることを確実に把握し
たうえで追従モードに入ることができるので、静止して
いる被写体が一瞬動いたときなどに、不必要にレンズ駆
動を行うことが回避できる。
In the automatic focus adjustment device installed in the camera configured as detailed in the above embodiment,
The tracking mode is entered only when it is determined that the subject on the imaging plane is moving at a predetermined speed or higher for a predetermined number of consecutive distance measurement operations. In other words, since you can enter tracking mode after knowing for sure that the subject is moving at a speed higher than a predetermined value, you can avoid unnecessarily driving the lens when a stationary subject moves momentarily. What you do can be avoided.

【0054】更に、既に合焦用レンズが合焦幅内にあり
、合焦表示が行われているときであっても、追従モード
中であれば、被写体の動きに追従して更にレンズ駆動し
て、ピントを完全に合わせるように構成することも可能
である。
Furthermore, even if the focusing lens is already within the focusing range and the focus is displayed, if the tracking mode is in effect, the lens will be driven further to follow the movement of the subject. It is also possible to configure the camera to focus completely.

【0055】追従のための演算に使用されるレリーズタ
イムラグはそのまま使用せず、測距のための積分時間を
考慮した値を用いてもよく、これにより、よりスムーズ
な追従を行うことができる。
The release time lag used in calculations for tracking may not be used as is, but a value that takes into account the integration time for distance measurement may be used, thereby allowing smoother tracking.

【0056】また、レリーズオンになったのがレンズ駆
動終了直後ではない場合には、更にレリーズタイムラグ
内で駆動可能な量だけ、合焦用レンズを駆動するように
構成すれば、デフォーカス量をより小さくすることも可
能である。
Furthermore, if the release is turned on not immediately after the lens drive ends, the amount of defocus can be reduced by configuring the focusing lens to be driven by the amount that can be driven within the release time lag. It is also possible to make it smaller.

【0057】更に、レリーズ後の次の追従モード移行に
あたっては、レリーズ動作がすべて完了してから、次の
追従モードのための測距を開始する必要はなく、レリー
ズ動作中のある時点、例えば、ミラー下降完了時に測距
を行い、そのデータを次回の演算に利用するように構成
することにより、連写モード時などには連続して適切な
追従が行えるようになる。
Furthermore, when transitioning to the next tracking mode after the release, it is not necessary to start distance measurement for the next tracking mode after all release operations are completed, but at a certain point during the release operation, for example, By configuring the camera to measure the distance when the mirror has finished lowering and use that data for the next calculation, it becomes possible to continuously perform appropriate tracking during continuous shooting mode.

【0058】追従モードの場合には、合焦状態にあり、
かつ追従可能なときのみLEDを点灯させる等の合焦表
示を行うように構成することも可能である。この場合、
カメラのファインダ内でLEDの点灯が認識できるよう
にするのが好適である。このように構成することにより
、操作者に、カメラが合焦状態にあることを知らせるイ
ンディケータの機能を有することになる。
In the tracking mode, the object is in focus;
In addition, it is also possible to configure so that a focus display such as turning on an LED is performed only when tracking is possible. in this case,
It is preferable to make the lighting of the LED visible in the viewfinder of the camera. With this configuration, the camera has an indicator function that notifies the operator that the camera is in focus.

【0059】本実施例では、被写体の結像面の移動スピ
ードが所定スピード以上である、と2回の測距で判定さ
れると追従モードに入るよう構成されているが、これは
2回に限らず所定回数以上判定されたときに追従モード
に入るように構成しても良い。また、追従中のレンズ駆
動量が所定値以上であることが3回以上あると、正しく
追従が行われていないと判断して追従をオフするよう構
成されているが、これも任意の回数を設定することが可
能である。
In this embodiment, the tracking mode is entered when it is determined in two distance measurements that the moving speed of the image plane of the object is equal to or higher than a predetermined speed. However, the configuration may be such that the tracking mode is entered when the determination is made a predetermined number of times or more. Additionally, if the amount of lens drive during tracking is equal to or greater than a predetermined value three or more times, it is determined that tracking is not being performed correctly and tracking is turned off. It is possible to set.

【0060】また、積分・演算時間が長くなると、被写
体の移動速度にレンズ駆動が追従できなくなる可能性が
あることから、追従モード時に積分時間に上限を設ける
ことにより、測距時間を短縮して、スムーズに追従させ
ることができる。
Furthermore, if the integration/calculation time becomes long, there is a possibility that the lens drive will not be able to follow the moving speed of the object, so by setting an upper limit on the integration time in the tracking mode, the distance measurement time can be shortened. , it can be followed smoothly.

【0061】被写体の移動速度が大きく、それに伴って
レンズ駆動量が比較的大きい場合にはオーバーラップ処
理が必要であると考えられるが、追従モード中は通常、
レンズ駆動量は比較的小さく、また、追従モード中であ
るにもかかわらずレンズ駆動量が比較的大きくなる場合
には、被写体の移動速度が追従可能な限界値に近い場合
であると考えられることから、追従モード中はオーバー
ラップ処理を行わないよう構成することにより、適切な
追従駆動が実現できる。
[0061] Overlap processing may be necessary when the moving speed of the subject is high and the amount of lens drive is relatively large accordingly, but normally during the tracking mode,
The amount of lens drive is relatively small, and if the amount of lens drive becomes relatively large even though it is in tracking mode, it is considered that the moving speed of the subject is close to the limit value that can be tracked. Therefore, by configuring so that overlap processing is not performed during the follow-up mode, appropriate follow-up driving can be realized.

【0062】更に、本実施例については合焦状態になっ
てからレリーズ動作を行う、いわゆるフォーカス優先の
ときのみについて説明しているが、合焦状態に無関係に
レリーズ動作を行う、いわゆるレリーズ優先の場合にも
適用可能である。即ち、フォーカス優先とレリーズ優先
のどちらかを、図示しないスイッチ等で選択できるよう
に構成し、レリーズ優先の場合には図3のS6−1、S
8をジャンプするようにし、常にレリーズONの割り込
みを可能にすれば、合焦状態に無関係にレリーズ動作が
行われることとなる。
Furthermore, although this embodiment has been described only in the so-called focus priority mode in which the release operation is performed after the in-focus state is achieved, the so-called release priority mode in which the release operation is performed regardless of the in-focus state is described. It is also applicable to cases where That is, the configuration is such that either focus priority or release priority can be selected using a switch (not shown), and in the case of release priority, S6-1 and S in FIG.
If the shutter speed is set to jump 8 and the release ON interrupt is always enabled, the release operation will be performed regardless of the in-focus state.

【0063】[0063]

【発明の効果】以上述べたように、この発明による自動
焦点調節装置においては、光軸方向に移動可能な合焦用
レンズと、前記合焦用レンズによる、特定対象物に対す
るデフォーカス量を求める測距手段と、前記測距手段に
より求められたデフォーカス量に基づいて前記対象物の
前記光軸方向における相対的移動方向と移動速度とを算
出する算出手段と、前記測距手段の測距動作を所定の時
間間隔で繰り返すように前記測距手段を制御する制御手
段と、前記測距手段による測距動作ごとに、前記算出手
段により算出された対象物の移動速度が所定値以上であ
るかどうかを判別する判別手段と、前記判別手段により
、対象物の移動速度が所定値以上であるとされた回数が
所定回数連続したときに、前記算出手段の算出結果に基
づいて、現在より所定時間経過後に前記対象物が移動す
る位置で焦点が合う位置に、前記合焦用レンズを駆動す
る駆動制御手段と、を有するように構成したので、動く
対象物に対して適切な合焦処理ができることになると共
に、追従モードに入る判定のための被写体像のスピード
の測定回数を所定の複数回数以上とすることにより、被
写体が動いていることを確実に把握したうえで追従モー
ドに入ることができる。
As described above, in the automatic focusing device according to the present invention, the focusing lens is movable in the optical axis direction, and the amount of defocus for a specific object is determined by the focusing lens. a distance measuring means; a calculating means for calculating a relative movement direction and a moving speed of the object in the optical axis direction based on the defocus amount determined by the distance measuring means; and a distance measuring means for the distance measuring means. a control means for controlling the distance measuring means to repeat the operation at predetermined time intervals, and a moving speed of the object calculated by the calculating means for each distance measuring operation by the distance measuring means is equal to or higher than a predetermined value. a discriminating means for discriminating whether the moving speed of the object is equal to or higher than a predetermined value for a predetermined number of consecutive times by the discriminating means; Since the configuration includes a drive control means for driving the focusing lens at a position where the object is in focus at a position where the object moves after a lapse of time, appropriate focusing processing can be performed for the moving object. In addition, by measuring the speed of the subject image more than a predetermined number of times to determine whether to enter tracking mode, it is possible to enter tracking mode after accurately grasping that the subject is moving. can.

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

【図1】本発明の自動焦点調節装置のAFシステムの主
要部を表すブロック図、
FIG. 1 is a block diagram showing the main parts of the AF system of the automatic focus adjustment device of the present invention;

【図2】本件の追従方式の基本原理を説明するグラフ、
[Figure 2] Graph explaining the basic principle of the tracking method in this case,

【図3】本件の追従方式を採用したAFシステムの処理
を表すフローチャート、
[Fig. 3] Flowchart showing the processing of the AF system that adopts the tracking method of the present case,

【図4】後追い追従から先回り追従にモードが移る原理
を説明するグラフ、
[Fig. 4] A graph explaining the principle of changing the mode from trailing tracking to proactive tracking,

【図5】先回り追従中の演算方法を説明するグラフ、[Figure 5] A graph explaining the calculation method during proactive tracking,


図6】積分時間を考慮した場合の動体予測演算の原理を
説明するグラフ、
[
Figure 6: Graph explaining the principle of moving object prediction calculation when considering integration time,

【図7】動体予測演算のメインフローチャート、[Figure 7] Main flowchart of moving object prediction calculation,

【図8
】補正ONとなった直後の、被写体がカメラに近付く場
合の演算を説明するフローチャート、
[Figure 8
] A flowchart explaining the calculation when the subject approaches the camera immediately after the correction is turned on.

【図9】補正ON
となって2回目以降の、被写体がカメラに近付く場合の
演算を説明するフローチャート、
[Figure 9] Correction ON
A flowchart explaining the calculation when the subject approaches the camera from the second time onwards.

【図10】被写体の移
動状況およびレンズの駆動結果に基づく動体予測演算を
説明するグラフ、
FIG. 10 is a graph illustrating moving object prediction calculation based on the movement status of the subject and the driving results of the lens;

【図11】被写体の移動状況およびレ
ンズの駆動結果に基づく動体予測演算を説明するグラフ
FIG. 11 is a graph illustrating moving object prediction calculation based on the movement status of the subject and the driving results of the lens;

【図12】被写体の移動状況およびレンズの駆動結果
に基づく動体予測演算を説明するグラフ、
FIG. 12 is a graph illustrating moving object prediction calculation based on the movement status of the subject and the driving results of the lens;

【図13】被
写体の移動状況およびレンズの駆動結果に基づく動体予
測演算を説明するグラフ、
FIG. 13 is a graph illustrating moving object prediction calculation based on the movement status of the subject and the driving results of the lens;

【図14】被写体の移動状況
およびレンズの駆動結果に基づく動体予測演算を説明す
るグラフ、
FIG. 14 is a graph illustrating moving object prediction calculation based on the movement status of the subject and the driving results of the lens;

【図15】被写体の移動状況およびレンズの
駆動結果に基づく動体予測演算を説明するグラフ、
FIG. 15 is a graph illustrating moving object prediction calculation based on the movement status of the subject and the driving results of the lens;

【図
16】被写体の移動状況およびレンズの駆動結果に基づ
く動体予測演算を説明するグラフ、
FIG. 16 is a graph illustrating moving object prediction calculation based on the movement status of the subject and the driving results of the lens;

【図17】被写体の
移動状況およびレンズの駆動結果に基づく動体予測演算
を説明するグラフ、
FIG. 17 is a graph illustrating a moving object prediction calculation based on the movement status of the subject and the driving results of the lens;

【図18】被写体がカメラから遠ざ
かる場合のアルゴリズムを説明するグラフ、
FIG. 18 is a graph explaining the algorithm when the subject moves away from the camera;

【図19】補正ONとなった直後の、被写体がカメラか
ら遠ざかる場合の演算を説明するフローチャート、
FIG. 19 is a flowchart illustrating calculations when the subject moves away from the camera immediately after correction is turned on;

【図
20】補正ONとなって2回目以降の、被写体がカメラ
から遠ざかる場合の演算を説明するフローチャート、
FIG. 20 is a flowchart illustrating calculations when the subject moves away from the camera from the second time onwards after correction is turned on;

【図21】積分時間に制限を設ける場合の処理を表すフ
ローチャート、
FIG. 21 is a flowchart showing processing when setting a limit on integration time;

【図22】追従中にレンズの端点を検出した場合の処理
を表すフローチャート、
FIG. 22 is a flowchart showing processing when an end point of the lens is detected during tracking;

【図23】動体予測演算に基づいてレンズ駆動された位
置が合焦位置かどうかをチェックするための合焦チェッ
ク用デフォーカス量再計算サブルーチンを表すフローチ
ャート、
FIG. 23 is a flowchart representing a focus check defocus amount recalculation subroutine for checking whether the position where the lens is driven based on the moving object prediction calculation is the in-focus position;

【図24】追従中の合焦表示を説明するフローチャート
FIG. 24 is a flowchart illustrating focus display during tracking;

【図25】連写の場合の、ミラー下降後直ちに測距を行
う場合の処理を説明するフローチャート、
FIG. 25 is a flowchart illustrating processing when distance measurement is performed immediately after the mirror is lowered in the case of continuous shooting;

【図26】図
25に示される動作中、レンズ停止時にレリーズオンさ
れたときの状態を示す図、
26 is a diagram showing the state when the release is turned on when the lens is stopped during the operation shown in FIG. 25,

【図27】図25に示される
動作中、レンズ駆動時にレリーズオンされたときの状態
を示す図、
27 is a diagram showing a state when the release is turned on while driving the lens during the operation shown in FIG. 25,

【図28】ミラー降下後、すぐに次回の測距
動作を行う場合のレンズ動作を示す図、
FIG. 28 is a diagram showing the lens operation when the next distance measurement operation is performed immediately after the mirror is lowered;

【図29】本件の場合のオーバーラップ処理を説明する
フローチャート、
FIG. 29 is a flowchart illustrating overlap processing in this case;

【図30】従来のAFシステムにおけるレンズ駆動の状
態を示す図、
FIG. 30 is a diagram showing the state of lens drive in a conventional AF system;

【図31】従来のAFシステムにおけるレンズ駆動の状
態を示す図である。
FIG. 31 is a diagram showing a lens driving state in a conventional AF system.

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

100・・・・レンズ 1・・・・・・測距センサ(測距手段)3・・・・・・
CPU(算出手段)
100... Lens 1... Distance sensor (distance measuring means) 3...
CPU (calculation means)

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】光軸方向に移動可能な合焦用レンズと、前
記合焦用レンズによる、特定対象物に対するデフォーカ
ス量を求める測距手段と、前記測距手段により求められ
たデフォーカス量に基づいて前記対象物の前記光軸方向
における相対的移動方向と移動速度とを算出する算出手
段と、前記測距手段の測距動作を所定の時間間隔で繰り
返すように前記測距手段を制御する制御手段と、前記測
距手段による測距動作ごとに、前記算出手段により算出
された対象物の移動速度が所定値以上であるかどうかを
判別する判別手段と、前記判別手段により、対象物の移
動速度が所定値以上であるとされた回数が所定回数連続
したときに、前記算出手段の算出結果に基づいて、現在
より所定時間経過後に前記対象物が移動する位置で焦点
が合う位置に、前記合焦用レンズを駆動する駆動制御手
段と、を有することを特徴とする自動焦点調節装置。
1. A focusing lens movable in an optical axis direction, a distance measuring means for determining a defocus amount of a specific object by the focusing lens, and a defocus amount determined by the distance measuring means. calculation means for calculating the relative moving direction and moving speed of the object in the optical axis direction based on the above, and controlling the distance measuring means to repeat the distance measuring operation of the distance measuring means at predetermined time intervals. a control means for determining whether the moving speed of the object calculated by the calculation means is equal to or higher than a predetermined value for each distance measurement operation by the distance measurement means; When the moving speed of the object is determined to be equal to or higher than a predetermined value for a predetermined number of consecutive times, the object is brought into focus at a position where the object will move after a predetermined period of time has elapsed from the current time based on the calculation result of the calculation means. , and drive control means for driving the focusing lens.
【請求項2】前記算出手段は、前記合焦用レンズによる
対象物像の前記移動方向及び移動量を算出する請求項1
の自動焦点調節装置。
2. The calculation means calculates the direction and amount of movement of the object image by the focusing lens.
automatic focusing device.
【請求項3】前記駆動制御手段は、前記対象物の移動方
向がカメラから遠ざかる方向の時には対象物に対して後
追い追従し、前記対象物の移動方向がカメラに近付く方
向の時にはレリーズタイムラグ分先回りした点に前記合
焦用レンズを駆動する、請求項1、または2の自動焦点
調節装置。
3. The drive control means follows the object when the moving direction of the object is moving away from the camera, and moves ahead by a release time lag when the moving direction of the object is moving toward the camera. The automatic focusing device according to claim 1 or 2, wherein the focusing lens is driven to the point.
JP3103988A 1990-11-29 1991-02-08 Automatic focus adjustor Pending JPH04256914A (en)

Priority Applications (46)

Application Number Priority Date Filing Date Title
JP3103988A JPH04256914A (en) 1991-02-08 1991-02-08 Automatic focus adjustor
DE4139448A DE4139448A1 (en) 1990-11-29 1991-11-29 AUTOMATIC FOCUSING DEVICE
GB9125441A GB2250833B (en) 1990-11-29 1991-11-29 Automatic focusing device
US07/800,838 US5239330A (en) 1990-11-29 1991-11-29 Automatic focusing device
DE4139414A DE4139414C2 (en) 1990-11-29 1991-11-29 Automatic focusing device
US07/800,840 US5321459A (en) 1990-11-29 1991-11-29 Automatic focusing device
FR9114789A FR2670027A1 (en) 1990-11-29 1991-11-29 AUTOMATIC FOCUSING DEVICE.
GB9125425A GB2250831A (en) 1990-11-29 1991-11-29 Automatic focusing device
GB9125419A GB2250828B (en) 1990-11-29 1991-11-29 Automatic focusing device
FR919114792A FR2670030B1 (en) 1990-11-29 1991-11-29 AUTOMATIC FOCUSING DEVICE.
FR9114790A FR2670028A1 (en) 1990-11-29 1991-11-29 AUTOMATIC FOCUSING DEVICE.
DE4139399A DE4139399A1 (en) 1990-11-29 1991-11-29 AUTOMATIC FOCUSING DEVICE
GB9125420A GB2250829B (en) 1990-11-29 1991-11-29 Automatic focusing device
DE9116929U DE9116929U1 (en) 1990-11-29 1991-11-29 Automatic focusing device
FR9114793A FR2670031A1 (en) 1990-11-29 1991-11-29 AUTOMATIC FOCUSING DEVICE.
US07/800,238 US5276476A (en) 1990-11-29 1991-11-29 Automatic focusing device
DE4139458A DE4139458C2 (en) 1990-11-29 1991-11-29 Automatic focusing device
DE4139400A DE4139400C2 (en) 1990-11-29 1991-11-29 Automatic focusing device
FR9114794A FR2670032A1 (en) 1990-11-29 1991-11-29 AUTOMATIC FOCUSING DEVICE.
FR9114791A FR2670029A1 (en) 1990-11-29 1991-11-29 AUTOMATIC FOCUSING DEVICE.
DE4139459A DE4139459C2 (en) 1990-11-29 1991-11-29 Automatic focusing device
FR9114788A FR2670026A1 (en) 1990-11-29 1991-11-29 AUTOMATIC FOCUSING DEVICE.
GB9125388A GB2251998B (en) 1990-11-29 1991-11-29 Automatic focusing device
DE4139413A DE4139413A1 (en) 1990-11-29 1991-11-29 AUTOMATIC FOCUSING DEVICE
DE4139449A DE4139449A1 (en) 1990-11-29 1991-11-29 AUTOMATIC FOCUSING DEVICE
FR9114787A FR2670022A1 (en) 1990-11-29 1991-11-29 AUTOMATIC FOCUSING DEVICE.
DE9116928U DE9116928U1 (en) 1990-11-29 1991-11-29 Automatic focusing device
GB9125434A GB2250832B (en) 1990-11-29 1991-11-29 Automatic focusing device
GB9125421A GB2250830B (en) 1990-11-29 1991-11-29 Automatic focusing device
GB9125408A GB2251084B (en) 1990-11-29 1991-11-29 Automatic focusing device
US08/076,693 US5291235A (en) 1990-11-29 1993-06-15 Automatic focusing device
US08/090,643 US5359382A (en) 1990-11-29 1993-07-13 Automatic focusing device
US08/144,550 US5416559A (en) 1990-11-29 1993-11-01 Automatic focusing device
FR9405984A FR2704328B1 (en) 1990-11-29 1994-05-17 Auto focus device.
FR9407429A FR2704659B1 (en) 1990-11-29 1994-06-17 Auto focus device.
US08/262,341 US5457513A (en) 1990-11-29 1994-06-17 Automatic focusing device
FR9408636A FR2708109A1 (en) 1990-11-29 1994-07-12 Auto focus device.
KR94023423A KR0137180B1 (en) 1990-11-29 1994-09-14 Automatic focusing device
KR1019940023424A KR0137178B1 (en) 1990-11-29 1994-09-15 Automatic focusing device
KR1019940023588A KR0138579B1 (en) 1990-11-29 1994-09-16 Automatic focusing device and method thereof
KR1019940027423A KR0144624B1 (en) 1990-11-29 1994-10-26 Autoamtic focusing device
KR1019940027422A KR0144625B1 (en) 1990-11-29 1994-10-26 Automatic focusing device
KR1019940031464A KR0144623B1 (en) 1990-11-29 1994-11-28 Automatic focusing apparatus
US08/563,437 USRE36546E (en) 1990-11-29 1995-11-24 Automatic focusing device
FR9614932A FR2739946B1 (en) 1990-11-29 1996-12-05 AUTOMATIC FOCUSING DEVICE
FR9614931A FR2739945B1 (en) 1990-11-29 1996-12-05 AUTOMATIC FOCUSING DEVICE

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3103988A JPH04256914A (en) 1991-02-08 1991-02-08 Automatic focus adjustor

Publications (1)

Publication Number Publication Date
JPH04256914A true JPH04256914A (en) 1992-09-11

Family

ID=14368687

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3103988A Pending JPH04256914A (en) 1990-11-29 1991-02-08 Automatic focus adjustor

Country Status (1)

Country Link
JP (1) JPH04256914A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010183472A (en) * 2009-02-09 2010-08-19 Casio Computer Co Ltd Imaging apparatus, and program
JP2011039454A (en) * 2009-08-18 2011-02-24 Canon Inc Automatic focusing device, automatic focusing method, and program

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010183472A (en) * 2009-02-09 2010-08-19 Casio Computer Co Ltd Imaging apparatus, and program
JP4661964B2 (en) * 2009-02-09 2011-03-30 カシオ計算機株式会社 Imaging apparatus and program
US8026973B2 (en) 2009-02-09 2011-09-27 Casio Computer Co., Ltd. Imaging apparatus, imaging method and storage medium
JP2011039454A (en) * 2009-08-18 2011-02-24 Canon Inc Automatic focusing device, automatic focusing method, and program

Similar Documents

Publication Publication Date Title
US5276476A (en) Automatic focusing device
JP2713978B2 (en) Automatic focusing device for camera
JPH10161013A (en) Environment recognition device and camera provided therewith
EP1403673B1 (en) Zoom lens control apparatus, zoom lens system, and image-taking system
US8135269B2 (en) Image pickup apparatus
JP4393034B2 (en) Automatic focusing method, automatic focusing apparatus, and imaging apparatus
US5291235A (en) Automatic focusing device
JPH04256914A (en) Automatic focus adjustor
US5010358A (en) Predetermined magnification photographing apparatus for a camera
JPH04256916A (en) Automatic focus adjustor
JP3081013B2 (en) Automatic focusing device
JP3294866B2 (en) Automatic focusing device
JPH04256915A (en) Automatic focus adjustor
JPH04258909A (en) Automatic focusing device
JPH04258911A (en) Automatic focusing device
USRE36546E (en) Automatic focusing device
KR0144625B1 (en) Automatic focusing device
JP3548393B2 (en) Camera with automatic focusing device and focus measuring device therefor
JPS63172213A (en) Focused state deciding device
US4536073A (en) Apparatus for detecting a condition of sharpest focus
JPH04199113A (en) Automatic focusing device
JP2004085603A (en) Zoom lens and photographic system
JPH07301747A (en) Optical devices provided with focus detection device
JPH01297613A (en) Automatic focusing device
JPH01297612A (en) Automatic focusing device