JP2727548B2 - Camera with auto focus function - Google Patents

Camera with auto focus function

Info

Publication number
JP2727548B2
JP2727548B2 JP62299065A JP29906587A JP2727548B2 JP 2727548 B2 JP2727548 B2 JP 2727548B2 JP 62299065 A JP62299065 A JP 62299065A JP 29906587 A JP29906587 A JP 29906587A JP 2727548 B2 JP2727548 B2 JP 2727548B2
Authority
JP
Japan
Prior art keywords
focus
subject
camera
mode
lens
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP62299065A
Other languages
Japanese (ja)
Other versions
JPH01140111A (en
Inventor
徳治 石田
正隆 浜田
潤 長谷川
賢司 石橋
寿夫 糊田
博司 大塚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Minolta Co Ltd
Original Assignee
Minolta 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 Minolta Co Ltd filed Critical Minolta Co Ltd
Priority to JP62299065A priority Critical patent/JP2727548B2/en
Priority to US07/276,920 priority patent/US4998124A/en
Publication of JPH01140111A publication Critical patent/JPH01140111A/en
Priority to US07/640,268 priority patent/US5212513A/en
Priority to US07/756,424 priority patent/US5223886A/en
Priority to US07/983,324 priority patent/US5408291A/en
Application granted granted Critical
Publication of JP2727548B2 publication Critical patent/JP2727548B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

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

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、自動焦点調節機能付きのカメラに関するも
のであり、AF1眼レフカメラに特に適するものである。 (従来の技術) 従来、複数回の焦点検出結果に基づいて自動焦点調節
を行うカメラが提案されている。例えば、特開昭56−78
811号公報及び特開昭57−128307号公報においては、複
数回の焦点検出を行い、各焦点検出によって得られたデ
フォーカス量の平均値に基づいてレンズ駆動を行うこと
が提案されている。また、特開昭62−125311号公報にお
いては、前回と今回のデォフーカス方向が同一であると
きには、被写体が動いていると判断し、被写体の速度に
合わせてレンズを駆動する追随モードを選択し、その他
の場合には通常の焦点調節モードを選択することが提案
されている。しかしながら、これらの従来技術は、焦点
調節モードを合焦前と合焦後とで切り換えるものではな
い。 (発明が解決しようとする問題点) 自動焦点調節機能付きのカメラは、基本的には、最初
に焦点が合ったところで焦点調節がロックされるワンシ
ョットAFモードを装備している。このワンショットAFモ
ードを用いる場合には、焦点が合うまではシャッターが
切れないフォーカス優先レリーズモードが併用されるこ
とが多い。ところで、ワンショットAFモードでフォーカ
ス優先レリーズモードを用いている場合においても、な
お、被写体にピントが合わない場合がある。これは、例
えば被写体が遠近方向に動いている場合には、レリーズ
するまでに被写体が合焦位置からずれるからである。ま
た、焦点検出の信頼性が乏しい場合には、1回の焦点検
出結果に基づいてレンズ駆動を行っても被写体が合焦範
囲内に入らない場合もある。 そこで、上述の従来技術のように、複数回の焦点検出
を行い、被写体の速度に合わせてレンズ駆動を行う追随
モードや、デフォーカス量の平均値に基づいてレンズ駆
動を行う平均モードを用いることが考えられるが、追随
モードでも平均モードでもテフォーカス量が小さい合焦
付近の状態でないと、十分に高い精度で追随処理や平均
処理を行えないという問題がある。また、追随モードや
平均モードが常に作動していたのでは、被写体に合焦さ
せた後に、構図を変えた場合にも追随処理や平均処理が
行われることになり、いわゆるフォーカスロックができ
ないことになるので不都合である。 本発明はこのような点に鑑みてなされたものであり、
その目的とするところは、一旦合焦した後に更に精度の
高い焦点調節を実行可能とした自動焦点調節機能付きカ
メラを提供することにある。 (問題点を解決するための手段) 本発明に係る自動焦点調節機能付きカメラにあって
は、上記の目的を達成するために、第1図に示すよう
に、焦点を合わせるべき被写体に対するレンズの焦点状
態を検出し、デフォーカス量及び方向を示す信号DFを出
力する焦点検出手段(1)と、デフォーカス量を示す信
号DFに基づいて合焦状態を判定する合焦判定手段(2)
と、合焦判定手段(2)により合焦でないと判定された
ときにデフォーカス量及び方向を示す信号DFに基づいて
レンズを駆動するレンズ駆動手段(3)と、合焦判定手
段(2)により合焦であると判定されたときに、合焦後
の複数回の焦点検出結果に基づいて合焦前の焦点調節モ
ードとは異なった特定の焦点調節もーどを実行する制御
手段(4)とを備えて成ることを特徴とするものであ
る。 ただし、第1図は本発明の構成を機能的にブロック化
して示した説明図であり、後述の実施例においては、手
段(1)乃至(4)の全部又は一部をマイクロコンピュ
ータのプログラムによって実現している。 (作用) 以下、本発明の作用を第1図により説明する。焦点検
出手段(1)では、焦点を合わせるべき被写体に対する
レンズの焦点状態を検出し、デフォーカス量及び方向を
示す信号DFを出力する。合焦判定手段(2)は、焦点検
出手段(1)で焦点検出が行われる度に、各デフーォカ
ス量DFに基づいて合焦判定を行う。レンズ駆動手段
(3)は、合焦判定手段(2)により合焦でないと判定
されたときにデフォーカス量及び方向を示す信号DFに基
づいてレンズを駆動する。また、制御手段(4)は、合
焦判定手段(2)により合焦であると判定されときに、
合焦後の複数回の焦点検出結果に基づいて合焦前の焦点
調節モードとは異なった特定の焦点調節モードを実行す
る。ここで、特定の焦点調節モードとしては、例えば、
合焦後に被写体が動いたことによりデフォーカス量が一
定方向に変化した場合に被写体の移動速度に応じて被写
体に合焦させるように焦点調節を行う追随モードや、合
焦後にデフォーカス量がばらついた場合にデフォーカス
量の平均値によりレンズ駆動を行う平均モード、合焦後
に構図を変えたことによりデフォーカス量が全く異なっ
てしまった場合にレンズ駆動を停止させるフォーカスロ
ックモードなどがある。 本発明のさらに詳細な構成及び動作については、以下
に述べる実施例の説明において一層明らかとされる。 (実施例) 第2図は本発明の一実施例に係るカメラのハードウェ
アを示すブロック図である。図において、(21)はカメ
ラのAF制御用のマイクロコンピュータ(以下、マイコン
と称す)である。(22)はAF用のCCDイメージセンサで
あり、マイコン(21)より積分開始信号φICGを受信す
ると積分を開始し、積分終了後、各画素の出力をA/D変
換してマイコン(21)へ送信する。マイコン(21)はCC
Dイメージセンサ(22)より送信される各画素の出力を
基に演算を行い、被写体像の焦点のずれ量(デフォーカ
ス量)を算出する。マイコン(21)は被写体のデフォー
カス量を算出した後、これをゼロとするようにレンズの
駆動を行う。ここで、レンズの駆動量とデフォーカス量
の関係を示す変換係数kはレンズによって異なっている
ため、変換係数kは各レンズ内に組み込まれたレンズ回
路(25)に記憶されている。マイコン(21)はレンズ回
路(25)より変換係数kの値を読み込み、算出されたデ
フォーカス量に変換係数kを乗ずることにより、レンズ
駆動に要するパルス数を算出する。マイコン(21)はレ
ンズ駆動用のAFモータ制御部(23)に対し、算出された
パルス数を送信し、AFモータ制御部(23)はレンズ駆動
用のAFモータ(24)に対し、マイコン(21)から送信さ
れたパルス数分の駆動を行わせる。 (26)は表示部であり、第3図に示される図形の表示
がなされる。第3図において、LED(26A)は合焦、合焦
不能の表示を行う。すなわち、デフォーカス量が算出さ
れ、レンズ駆動後、合焦していた場合には、LED(26A)
は緑色に点灯し、撮影者に合焦を告知する。また、後述
する理由によりデフォーカス量が算出されなかった場合
には、LED(26A)は赤色に点滅し、撮影者に合焦不能を
告知する。さらに、LED(26B)及び(26C)は本実施例
におけるカメラの撮影モードの切り換えを示す表示であ
る。被写体が静止している場合には、合焦後焦点位置は
固定され、フォーカスロックモードの撮影となり、LED
(26B)が点灯する。一方、被写体が動いている場合に
は、被写体の動きを追随し、常に合焦状態を保つ追随モ
ードの撮影となり、LED(26C)が点灯する。 第2図において、(S1)はリレーズ釦(図示せず)が
第1ストロークまで押下されるとONになるスイッチであ
る。スイッチ(S1)がONになると、後述の割り込みポー
ト(INT1)による割り込み処理が実行され、AF動作が行
われる。また、(S2)は、レリーズ釦が第1ストローク
よりも深い第2ストロークまで押下されるとONになるス
イッチである。スイッチ(S2)がONになると、後述の割
り込みポート(INT2)による割り込み処理が実行され、
レリーズ動作が実行される。この割り込みポート(INT
2)による割り込みはプログラムにより禁止される場合
がある。そこで、スイッチ(S2)はマイコン(1)の入
力ポート(IP2)にも接続されており、割り込みポート
(INT2)により割り込みが禁止されている場合にもマイ
コン(21)が入力ポート(IP2)をスキャンすることに
より、撮影者がレリーズ要求を行っているか否かを判定
可能としている。(S3)はミラーアップスイッチであ
り、このスイッチは撮影レンズを通ってきた光を撮影者
がファインダーにて観察できるようにカメラのボディ内
に配置されたミラー(図示せず)が、フィルム面への露
光時に上記撮影レンスを通ってきた光をフィルム面に到
達させるべく、撮影光路から完全に退避した時にONにな
るスイッチであり、撮影終了後のシャッター機構(図示
せず)のチャージにより、OFF状態にリセットされる。 (27)は被写体の輝度が低い場合に被写体に照射する
赤外光(補助光)を発光するLEDであり、補助光制御部
(28)によって制御される。マイコン(21)は被写体の
輝度が低いと判断した時に、補助光制御部(28)に対
し、補助光の発光信号を出力すると共に、CCDイメージ
センサ(22)に対して積分開始信号φICGを出力し、積
分が終了した時点で、補助光制御部(28)に対して出力
していた補助光の発光信号を停止する。これによってCC
Dイメージセンサ(22)は低輝度時には補助光を用いてC
CD積分を行う。(29)は後述の動的被写体について焦点
位置の変化速度を算出するためのタイマーであり、前述
のスイッチ(S1)のONによるAFスタート時にゼロにクリ
アされ、その後、定常的にタイマー値TMが増加し、AFス
タート以降の時間をモニターすることが可能となってい
る。以上で、ハードウェアについての説明を終了する。 続いて、本実施例のアルゴリズムについて説明する。
本実施例においては、静止被写体と動的被写体の判別を
行い、「フォーカスロックモード」と「追随モード」と
いう2つの撮影モードを自動的に切り換えるようにして
いる。以下、各撮影モードについて概説する。 まず、撮影モードとして、「フォーカスロックモー
ド」を設定している場合は、被写体をファインダー内の
所定の場所(以下フォーカスフレームと称す)に把らえ
て、このフォーカスフレームにおける被写体像のデフォ
ーカス量を求め、被写体像が合焦するようにレンズ駆動
が行われる。一般の撮影に際しては、撮影者が焦点を合
わせようとする被写体が、前記ファインダー内のフォー
カスフレームとは異なる場所に位置するようにフレーミ
ングしたい場合も少なくない。このような場合には、ま
ず、撮影者は焦点を合わせようとする被写体をフォーカ
スフレーム内に位置するようにレンズの方向を振って、
AF動作を行わせた後、この焦点位置を変化させることな
く、フレーミングを行うことが必要となる。「フォーカ
スロックモード」は、このような場合に、合焦後の焦点
位置を変化させずにレリーズが行われるモードである。 本実施例においては、もう1つの撮影モードとして
「追随モード」を備えている。これは撮影者が撮影しよ
うとする被写体が動いている場合に対応する撮影モード
である。被写体が動いている場合には、フォーカスフレ
ーム上で検出される被写体のデフォーカス量は刻々と変
化する。この変化がフィルム面における被写界深度内に
収まる程度の小さなものであれば問題はないが、被写界
深度を越えるデフォーカス量変化があった場合には、刻
々と変化するデフォーカス量に応じて刻々と焦点位置を
変化させるべく被写体を追随する必要が生ずる。本実施
例においては、このような被写体が動く場合には「追随
モード」を設定し、刻々と変化する被写体像の結像位置
を常に追随し、常に合焦状態を保持するようにしてい
る。また「追随モード」では、撮影者がレリーズボタン
を押した場合に、レリーズボタンの押下タイミングから
実際にシャッター幕が走行してフィルム面上に露光され
るタイミングまでのタイムラグ(時間遅れ)も考慮し、
フィルム面上に露光されるタイミングに被写体像が合焦
しているようにデフォーカス量の予測を行い、レンズ駆
動を行う予測制御の手法も含まれている。この「追随モ
ード」を備えたことにより、被写体が動いている場合に
も常に合焦した写真が得られるものである。 以下、詳細なフローチャートにより詳説する。レリー
ズ釦が第1ストロークまで押下され、スイッチ(S1)が
ONすると、第4図に示したAFスタートのフローが実行さ
れる。以下の説明において、記号“#”はプログラムの
ステップを意味するものとする。#1において、割り込
みポート(INT2)からの割り込みを禁止することによっ
て、レリーズ釦が第2ストロークまで押下されて、リレ
ーズ要求があってもレリーズルーチンがコールされない
ようにしている。続いて、#2でマイコン(21)はデフ
ォーカス量をレンズ駆動のためのパルス数に換算する際
の変換係数(k)を、第2図に示すレンズ回路(25)か
ら入力する。続いて、#3で後述の測距時刻をモニター
するためのタイマー(29)をリセットしている。さら
に、#4にて焦点検出演算を行う。 第11図には焦点検出演算のサブルーチンを示す。#10
8でタイマー値TMを読み込み、#109でメモリー値TM′と
して後述のCCD積分の開始時刻をマイコン(21)内のメ
モリに格納する。続いて、#110で低輝度フラグの判定
を行っている。被写体の輝度が低い場合には、CCDイメ
ージセンサ(22)に十分な光が照射されないため、前述
の補助光を被写体に照射するが、その補助光照射の必要
性を低輝度フラグで判定する。AFスタート直後は低輝度
フラグはクリアされているので、#111の補助光発光は
スキップされ、#112のCCD積分を行う。CCDイメージセ
ンサ(22)は、焦点検出演算を行うための被写体の情報
を得るためのイメージセンサであり、積分を行うことで
各画素に被写体の輝度情報が蓄積される。#113ではCCD
イメージセンサ(22)における各画素のデータをマイコ
ン(21)に取り込むデータダンプ処理が行われる。以
下、#114〜#116の相関計算、補間計算、ピントずれピ
ッチ算出は、周知の焦点検出演算のフローを示したもの
である。以上の処理が#4の焦点検出演算サブルーチン
で行われる。 #4にて焦点検出演算を行った際、その結果の信頼性
が乏しかった場合には焦点検出不能となる。#5でその
判定を行う。もし、ここで焦点検出が不能であった場合
は#501へ進み、そうでなかった場合は#11へ進む。#5
01へ進んだ場合は、ここで低輝度か否かのチェックを行
う。最初に焦点検出演算に先立ち、CCD積分を行った場
合には補助光を発光していないため、被写体輝度が低
く、焦点検出が不能である場合がある。#501で低輝度
と判定され、かつ、#6で低輝度フラグがセットされて
いない場合は#7へ進み、低輝度フラグをセットして#
4へ戻り、今度は補助光を発光してCCD積分を行う。一
方、#501で低輝度と判定されなかった場合、あるいは
#6で低輝度フラグがセットされ、補助光を使用してCC
D積分が行われていた場合は、被写体像のコントラスト
が低いローコン状態であると判定される。この場合は#
8へ進む。#8ではレンズ位置をスキャンさせながら焦
点検出演算を繰り返すローコンスキャンを過去に行った
かどうかの判定を行っているが、最初にこのルーチンへ
入った場合は、#8にてNOと判定され、#9でローコン
スキャンを開始する。#8にて既にローコンスキャンを
終了していた場合には、#10でローコン表示を行い、撮
影者に焦点検出が不能であることを告知する。これは第
3図に示すLED(26A)を赤色点滅表示して行う。 #5で焦点検出が可能と判定された場合は#11へ進
む。#11では低輝度フラグの判定を行っている。補助光
を使用する場合と使用しない場合では前述のCCD積分時
間が異なるため、後述のようにデフォーカス量を繰り返
し算出する時のサンプリング周期T0を変える必要があ
る。このため、#12,#13で夫々のサンプリング周期T0
を設定している。#14では焦点検出演算の結果からデフ
ォーカス量を算出している。#15でこのデフォーカス量
が合焦範囲内であるか否かを判定し、合焦範囲内であれ
ば#441以降のAFモード判定ルーチンへ進み、デフォー
カス量が合焦範囲外であれば#16以降のフローへ進む。
通常、AFスタート時にはレンズの位置は定まっていない
ため、合焦範囲内にある場合は少なく、#16以降へ進
む。 #16では、#14で算出したデフォーカス量と#2で入
力した変換係数kよりレンズ駆動のためのパルス数を算
出する。続いて#17でレンズ駆動を行い、#16で算出さ
れたパルス数分のレンズ駆動が行われる。この後、被写
体の状態検出を行うためのルーチンへ突入する。#18で
はカウンタCN1をゼロにクリアしている。このカウンタC
N1は#19以降のルーチンで合焦判定を何回行ったかをカ
ウントするためのカウンタである。 #19のサブルーチンで再び焦点検出演算を行ってい
る。#20で検出不能であった場合は焦点が検出されるま
で#19を繰り返す。焦点検出がなされた場合、#21でデ
フォーカス量を算出し、#22でカウンタCN1の値を1つ
増し、#23で合焦判定を行っている。この時、被写体が
静止しているか、あるいは、動いていてもその焦点位置
変化が遅い場合には#21で算出したデフォーカス量は合
焦範囲内にあり、#24へ進む。ここでカウンタCN1の値
が1の場合、すなわち#17における1回のレンズ駆動で
合焦した場合は、#441以降のAFモード判定ルーチンへ
進む。しかし、#23の合焦判定で合焦していなかった場
合は、被写体像の焦点位置がレンズ駆動中に変化した
か、あるいは、焦点検出精度が低く、デフォーカス量が
ばらついているとみなされ、#30以降のルーチンへ進
む。 #30,#31によりカウンタCN1の値が1の場合にはレン
ズ駆動は過去1回となり、#41にて再びレンズ駆動のた
めのパルス数を算出した後、#42でレンズ駆動を行う。
この後、#43で時間待ちを行った後、#19以降の動作を
繰り返す。ここで時間待ちを行うのは、像の焦点位置が
時間的に変化する被写体に対し、その動く速度を後述の
方法で検出する際に焦点検出の時間間隔が短い場合に
は、速度検出が精度良く行われないからである。#19の
サブルーチン中でCCDの積分開始時刻TM′はマイコン(2
1)内のメモリーに格納されているため、#43でタイマ
ー値TMがTM≧T0+TM′に達するまで、時間待ちを行う。
#19〜#22の演算を繰り返した後、#23で再び合焦判定
を行う。 #23で合焦と判定された場合はカウンタCN1の値は2
となっているため、#24ではCN1=1でないと判断さ
れ、#25でマイコン(21)の入力ポート(IP2)のスキ
ャンを行い、レリーズ要求の有無を判定する。ここで、
リレーズ要求が無かった場合には、AFモード判定ルーチ
ンへ進む。レリーズ要求が有った場合には、この要求に
素早く対応するために、#26〜#29の処理を行った後に
レリーズルーチンへ進む。#26では前回得たデフォーカ
ス量DFbの符号と、今回得たデフォーカス量DFaの符号が
等しいか否かを判定する。デフォーカス量DFa,DFbの符
号が等しいということは、被写体像の焦点位置が同一方
向にずれることであるため、前回フォーカス量DFbと今
回デフォーカス量DFaか同符号であれば被写体が動いて
いると判断され、#27でその速度Vを算出した後、#28
で被写体の動きを追随する追随モードのフラグをセット
し、#29でレリーズ許可し、リレーズルーチンへ突入す
る。#27の被写体速度の算出では、今回算出したデフォ
ーカス量DFaを今回と前回の焦点検出の時間間隔(ta−t
b)で割り、さらにその値を(1/2)倍している。これは
算出されたデフォーカス量にばらつきがあった場合に予
想される被写体速度Vを実際よりも速く見積もってしま
うことがないように被写体速度を1/2の重みで算出する
ためである。実際には、今回デフォーカス量DFaが合焦
範囲内にあるため、被写体の移動速度はそれほど大きく
なく、追随の速度はこれで十分である。一方、#26で今
回デフォーカス量DFaと前回デフォーカス量DFbの符号が
逆の場合は、被写体像の焦点位置が逆方向にずれたこと
になるので、被写体が同一方向に動いているとはみなさ
れず、追随は行わずにリレーズ動作を行う。 次に、#23の合焦判定でカウンタCN1の値が2の時に
非合焦であった場合には、#30の判定により#37へ処理
が移る。#37では今回デフォーカス量DFaと前回デフォ
ーカス量DFbの符号の比較を行っている。ここで、同一
符号であれば、被写体が同一方向へ動いていると判定さ
れ、#38以降へ進む。また、逆符号であれば被写体が同
一方向へ動いているとは判定されないため、レンズ駆動
は行わず#43へ進む。#38ではレリーズ要求があるか否
かを判定し、レリーズ要求があれば#39で被写体速度V
を算出し、#40で追随セードのフラグをセットし、追随
モードのルーチンへ進む。#39の速度算出では、今回デ
フォーカス量DFaを焦点検出の時間間隔(ta−tb)で割
り、さらに(1/2)倍している。これは前述の場合と同
様であるが、ここでは、今回デフォーカス量DFaは合焦
範囲外であり、被写体の速度Vが大きいため、直ちにリ
レーズ動作へ移ることはせず、一旦後述の追随モードへ
入り、ここで被写体の速度Vを正確に算出してからリレ
ーズルーチンへ入るようになされている。 一方、#38でレリーズ要求がない場合は#41へ進み、
レンズ駆動のためのパルス数を算出し、#42でレンズ駆
動を行い、#43へ進む。#43〜#22の処理を繰り返した
後、#23で再び合焦判定を行う。ここで合焦していた場
合は、#24以下の処理へ進み、非合焦であった場合はカ
ウンタCN1の値は3になっているため、#30,#31ではい
ずれもNOと判定され、#32の判定に進む。#32で3回の
デフォーカス量の符号が一致していた場合には、#33で
3回のデフォーカス量の絶対値が全て1mm以内であるか
否かを判定している。デフォーカス量の絶対値が1mmを
越えるものがあった場合には、他の被写体の測距を行っ
た可能性が大きいため、#41以降へ進み、再度焦点検出
を繰り返す。#32,#33で両方ともYESの場合は被写体の
焦点検出が3回とも正常で、かつ、被写体が同一方向に
動いていると判断され、#34でその速度V=(DFa−DF
b)/(ta−tb)を算出した後、#35で追随モードのフ
ラグをセットし、追随モードへ移行する。また、#32で
3回のデフォーカス量が同符号でなかった場合は、#36
で今回デフォーカス量DFaと前回デフォーカス量DFbの符
号が同一かどうかを判定し、#36で今回デフォーカス量
DFaと前回デフォーカス量DFbの符号が一致している場合
は、#41,#42で再度レンズ駆動を行った後、#43以降
へ進み、被写体の判別を繰り返す。また、#36で今回デ
フォーカス量DFaと前回デフォーカス量DFbの符号が一致
していない場合は、焦点検出の精度が低く、デフォーカ
ス量がばらついていると判断され、平均モードIIへ突入
する。 第10図は、平均モードIIのフローを示している。#99
においてデフォーカス量DFとして、今回デフォーカス量
DFa、前回デフォーカス量DFb、及び、前々回デフォーカ
ス量DFcの平均値DF=(DFa+DFb+DFc)/3を算出してい
る。#100でこのデフォーカス量DFが合焦範囲内にある
かどうかを判定し、合焦している場合は#101で合焦表
示を行い、#102でレリーズ許可した後、平均モードI
に移行する。平均モードIにおいては、第7図の#66の
ように平均補正フラグをセットした後、#67のようにフ
ォーカスロック表示を行い、レリーズ待ちとなる。一
方、#100で各々のデフォーカス量のばらつきが大き
く、平均のデフォーカス量が合焦範囲を越える場合があ
る。この場合は#103でレンズ駆動のためのパルス数を
算出し、#104で所定位置までレンズを駆動した後、#1
05で再度焦点検出演算を行っている。#106で焦点検出
が不能であった場合は、焦点が検出されるまで#105の
焦点検出演算を繰り返す。焦点が検出された場合は#10
7でデフォーカス量を算出し、#99に戻り、平均デフォ
ーカス量が合焦範囲に入るまで#99〜#107の処理を繰
り返す。 以上、デフォーカス量の算出後、予定焦点位置までの
レンズ駆動を行い、合焦していない場合は、被写体像の
結像位置の移動速度が速く、レンズ駆動が追い付かない
か、あるいは、デフォーカス量算出の精度が低いため、
デフォーカス量がばらついているかのどちらかであると
みなし、追随モードか平均モードかの判定を行う方法に
ついて述べた。また、同時にレリーズ要求が判定の最中
に発生した場合のシーケンスも述べた。 被写体の移動速度が速い場合には上述の方法で追随モ
ードの判定が可能であるが、被写体の速度が遅い場合に
は、予定焦点位置までのレンズ駆動によるタイムラグが
あっても合焦ゾーンから抜けず、#23で合焦と判定され
ることがある。このため、#23の合焦判定後においても
#441以降のAFモード判定ルーチンで追随モードの判定
を行っている。以下、このAFモード判定について説明す
る。 #441では、AFモード判定のルーチンに入ったことを
示すフラグ(AFMF)をセットする。#44では合焦表示を
行い、撮影者に合焦したことを告知する。また、合焦時
には割り込みポート(INT2)による割り込みの禁止を解
除し、常にレリーズを受け付け、リレーズ要求があった
時には、即座にリレーズ動作が行われるようになされて
いる。続いて、#46でカウンタCN2をクリアしている。
カウンタCN2はAFモード判定のための焦点検出の回数を
示す。#47で焦点検出演算を行い、#48で焦点検出不能
と判定される場合は、元々の被写体のコントラストが低
いか、あるいは、合焦後に撮影しようとする被写体とは
焦点位置が大きく異なる別の被写体の焦点検出演算を行
った場合等が考えられ、#55へ進む。#48で焦点が正常
に検出された場合は、#481でデフォーカス量DFの算出
を行う。#49で|DF|>1mmとなった場合は、合焦後、撮
影しようとする被写体と焦点位置が異なる別の被写体の
焦点検出を行ったと考えられるため、#55へ進む。#55
〜#57はこのような正規でない焦点検出演算が行われた
場合の処理を行う。#55では、まず、前回無視フラグの
チェックを行う。前回無視フラグは連続して正規でない
焦点検出が行われたかどうかを判定するためのフラグで
あり、最初はこのフラグはリセットされており、#55の
判定でNOとなり、#56に進む。#56では、次に正規でな
い焦点検出が行われた場合に、#55でYESとなるよう
に、前回無視フラグをセットする。#55でYESとなった
場合には、2回続けて正規でない焦点検出が行われたこ
とになるので、この時は#571でAFモード判定ルーチン
から抜け出したとしてフラグ(AFMF)をリセットし、#
57でフォーカスロック表示を行い、リレーズ待ちとな
る。 ここで、2回続けて正規でない焦点検出が行われた場
合に限っているのは、以下の理由による。動いている被
写体を追随モードで撮影する場合には、被写体を常にフ
ォーカスフレーム内に追随する必要があるが、撮影者の
手振れ等により被写体がフォーカスフレームから逸脱す
る場合がある。このため、1回正規でない焦点検出がな
された場合はこれを無視する。しかし、これが2回連続
した場合には、撮影者が意図的に被写体をフォーカスフ
レーム外に逸脱させたと判断される。これは、撮影者が
被写体に対し合焦させた後に構図を決めるためにカメラ
を振るフォーカスロック撮影だからである。このため、
2回続けて正規でない焦点検出がなされた場合は、AFモ
ードとしてフォーカスロックモードの判定がなされ、フ
ォーカスロックの表示を行い、レリーズ待ちとなる。 #48,#49でいずれもNOと判定された場合は被写体は
変わっておらず、かつ、デフォーカス量も確実に算出さ
れたと判断され、#50へ進む。#50では前回無視フラグ
をチェックしている。ここで、前回無視フラグがセット
されていれば、前回正規の焦点検出演算がなされなかっ
たということになり、#51で前々回デフォーカス量DFc
と今回デフォーカス量DFaの平均を求めることで前回デ
フォーカス量DFbを補間して算出している。続いて、#5
2で前回無視フラグをクリアし、#53へ進む。一方、#5
0で前回無視フラグがセットされていなければ補間の必
要はないため、そのまま#53へ進む。#53ではカウンタ
CN2をカウントアップし、#54でカウンタCN2の値が4と
なるまで、#47〜#54を繰り返す。カウンタCN2の値が
3以下の場合には、#541でタイマー値TMがメモリー値T
M′からT0だけ増えるまで時間待ちを行う。 4回の焦点検出演算の終了後、#581でAFモード判定
を示すフラグ(AFMF)をリセットして、#58へ処理が進
む。#58で4回のデフォーカス量の符号が全て同じで、
かつ、デフォーカス量が単調変化しており、さらに、#
59〜#61において連続した2回のデフォーカス量の差の
絶対値がすべて所定の判定閾値a以上と判定された場合
は、被写体が動いているものとみなし、追随モードへ移
行する。この時には、追随時の初期速度としてV=(DF
a−DFc)/(ta−tc)を設定し、#63で追随モードフラ
グをセットして追随モードに入る。この際、速度Vを今
回デフォーカス量DFaと前々回デフォーカス量DFcから算
出しているのは、焦点検出の時間間隔(ta−tc)が長い
方が算出精度が向上し、また、データが新しい程、追随
モード突入時の初期速度Vが、より正確に算出されるた
めである。 一方、#58で4回のデフォーカス量が全て同符号でな
い、あるいは、単調変化でなかった場合は、#64で各デ
フォーカス量の安定性を2回の焦点検出のデフォーカス
量の差の符号が交互に変化したか否かて判定し、YESの
場合にはデフォーカス量DFの算出が不安定であるとみな
し、#65以下の平均処理を行う。#65ではデフォーカス
量として今回デフォーカス量DFa、前回デフォーカス量D
Fb、前々回デフォーカス量DFcの3回のデフォーカス量
の平均を真のデフォーカス量とし、#66で平均補正フラ
グをセットし、#67でフォーカスロック表示を行い、リ
レーズ待ちとなる。一方、#64でデフォーカス量が交互
に変化していない場合は、あるいは、#59〜#61の判定
で、連続したデフォーカス量の差の絶対値が所定の判定
閾値aよりも小さい場合があったときには被写体は動か
ず、また、デフォーカス量の算出も精度良く行われたと
みなされ、平均処理等は行われず、#67へ進み、フォー
カスロック表示を行って、レリーズ待ちとなる。 以上で、AFのスタートからAFモートの判定が完了する
までのルーチンについての説明を終了する。 続いて、追随モードに入った後のシーケンスについて
説明する。第8図において、まず、#68で追随モード表
示を行い、撮影者に追随モードに入ったことを告知す
る。次に、#69でカウンタCN3に2を代入している。カ
ウンタCN3は追随モードから脱出する際の判定に用いら
れる。#70ではカウンタCN4,CN5をクリアしている。カ
ウンタCN4は追随モード突入後の焦点検出演算で正規の
焦点検出が行われなかった回数をカウントするためのカ
ウンタで、カウンタCN5は正規の焦点検出が行われた回
数をカウントするためのカウンタである。#71では被写
体の移動速度Vと焦点検出演算の周期T0を乗じた値を最
新のデフォーカス量DFaに加え、次回焦点検出時におけ
るレンズ駆動を行わなかった場合の予定デフォーカス量
DF′を算出している。この予定デフォーカス量DF′に基
づいて、#72によりレンズ駆動のためのパルス数を算出
し、#73でレンズ駆動を行う。#74でタイマー値TMが最
新の焦点検出演算時のメモリー値TM′に焦点検出周期T0
を加えた値に達するまで時間待ちを行う。本来なら#71
での周期T0にはレンズ駆動時間を含めた予測周期T0′を
使用すべきであるが、ここでは議論を簡単にするために
T0≒T0′とし、レンズ駆動時間をほとんどないものとし
ておく。#73のレンズ駆動では、レンズ駆動を行わなか
った場合の予定デフォーカス量DF′の分だけレンズ駆動
を行うため、#75で焦点検出演算を行った際には、デフ
ォーカス量は概略ゼロとして算出されることになる。#
76で焦点検出が不能であったか否かの判定を行ってい
る。前述のように撮影者の手振れ等のため正規の焦点検
出がなされなかった場合には、#89へ進む。また、#76
で正規の焦点検出がなされた場合は、#761でデフォー
カス量DFを算出するが、得られたデフォーカス量の絶対
値|DF|が#77で1mm以上と判定された場合は、やはり前
述のように正規の焦点検出がなされなかったと判定さ
れ、#89へ進む。#89では焦点検出演算の結果として今
回のデフォーカス量DFaをゼロに設定してしまってい
る。これは前述のように今回の焦点検出演算時にはデフ
ォーカス量が概略ゼロとなるようにレンズ駆動がなされ
ているためである。さらに、#90で正規でない焦点検出
演算の回数をカウントするカウンタCN4の値を1つ増し
ている。これは、後述のように度々正規でない焦点検出
演算が行われた場合には、#87でこの追随モードから抜
け出すようにするためである。#77で|DF|<1mmと判定
された場合は#78へ進む。#78では今回の被写体位置と
前回の被写体位置との差をデフォーカス量差ΔDFとして
算出している。 第13図は、デフォーカス量差ΔDFの算出方法を説明す
るための図である。第13図において、DFa原点は今回の
焦点検出時のレンズ位置であり、DFb原点は前回の焦点
検出時のレンズ位置である。前回の焦点検出時刻tbにお
いては、DFb原点にレンズが位置していたので、前回デ
フォーカス量DFbを生じていたものである。前回レンズ
駆動用のデフォーカス量DFb′は、前回の焦点検出時刻t
bから今回の焦点検出時刻taまでの経過時間(ta−tb)
と被写体速度Vを乗じて得た被写体の予測移動量を前回
デフォーカス量DFbを加えて求められる。したがって、
今回の焦点検出時刻taにおいては、レンズ位置はDFa原
点に達しているが、被写体は実際には予測位置からは外
れており、今回デフォーカス量DFaを生じている。この
場合、前回焦点検出時刻tbにおける被写体位置から今回
焦点検出時刻taにおける被写体位置までのデフォーカス
量差ΔDFは、図から明らかなように、今回デフォーカス
量DFaに前回レンズ駆動用のデフォーカス量DFb′を加
え、さらに前回デフォーカス量DFbを減ずることによっ
て得られる。 #79にて、このデフォーカス量差ΔDFと移動速度Vの
符号の比較を行っている。符号が異なる場合は、移動速
度Vとして算出した方向とは逆方向に被写体が動いてい
るということであり、正規の焦点検出がなされなかった
とみなされ、#88でカウンタCN4の値を1つ増してい
る。また、#80でデフォーカス量の絶対値が所定の判定
閾値b以上であった場合にも実際測定されたデフォーカ
ス量が予想されたデフォーカス量と大きく異なるという
ことであり、前述の場合と同様に、正規の焦点検出かな
されなかったとみなされ、#88へ進む。#79,#80でい
ずれもYESと判定された場合は#81へ進み、正規な焦点
検出が行われた回数を示すカウンタCN5の値を1つ増
す。 #82でカウンタCN5の値が5になっていなければ#87
へ進む。#87ではカウンタCN3とCN4の比較を行ってい
る。最初は#69の初期設定によってカウンタCN3の値は
2となっており、このカウンタCN3の値を、正規でない
焦点検出の回数を示すカウンタCN4の値と比較してい
る。すなわち、ここでは、カウンタCN4の値が2以上の
場合、YESと判定され、#871でレリーズ禁止として再び
AFモード判定へ戻り、これを繰り返す。これは誤って追
随モードに入った場合に、カウンタCN4の値とカウンタC
N3の値を比較し、追随モードから抜け出すことを可能と
するためである。 一方、#82でカウンタCN5の値が5となった場合に、
#83で低輝度フラグのチェックを行う。前述のように、
低輝度フラグがセットされている場合は補助光を発光し
てCCD積分を行うが、補助光を使用すると消費電力が大
きくなるため、無制限に焦点検出演算を行うのは望まし
くない。このため、カウンタCN5の値が5に達した所で
追随モードから抜け出すようになっている。低輝度フラ
グがセットされていた場合には#91で合焦判定を行い、
合焦していれば#92でレリーズを許可した後、#94でフ
ォーカスロック表示を行い、追随モードが終了してフォ
ーカスロックモードになったことを撮影者に告知する。 また、合焦していなければ、#93でリレーズ禁止とし
て再びAFモード判定へ戻る。一方、補助光を使用しない
場合には、消費電力の心配がないため追随モードを継続
する。#84でカウンタCN3の値を1つ増している。さら
に、#85,#86でカウンタCN4,CN5をクリアしている。
カウンタCN3は前述の#87の追随モードから脱出する際
のパラメータである。このカウンタCN3は追随モードに
入ってからの経過時間(焦点検出回数)に応じて増加す
るため、#87の追随モードから抜け出す条件は徐々に厳
しくなる。すなわち追随モードに入ってからの経過時間
が長くなれば、確実に被写体が動いていることになり、
撮影者の手振れ等で正規でない焦点検出の回数が多くな
っても追随を続ける制御がなされる。 #87で追随モードから抜けないという判定がなされた
場合には、#95で新たに追随速度Vを算出している。#
95では、追随速度Vの算出精度を向上させるために、今
回の被写体位置と前々回の被写体位置の差(デフォーカ
ス量差ΔDF)を焦点検出の時間間隔(ta−tc)で割って
移動速度Vとしている。 第14図は、上記デフォーカス量差ΔDFの算出方法を説
明するための図である。第14図において、DFa原点は今
回の焦点検出時のレンズ位置であり、DFb原点は前回の
焦点検出時のレンズ位置であり、DFc原点は前々回の焦
点検出時のレンズ位置である。前々回の焦点検出時刻tc
においては、DFc原点にレンズが位置していたので、前
々回デフォーカス量DFcを生じていたものである。前々
回レンズ駆動用デフォーカス量DFc′は、前々回の焦点
検出時刻tcから前回の焦点検出時刻tbまでの経過時間
(tb−tc)と被写体速度Vcを乗じて得た被写体の予測移
動量を前々回デフォーカス量DFcに加えて求められる。
したがって、前回の焦点検出時刻tbにおいては、レンズ
位置はDFb原点に達しているが、被写体は実際には予測
位置からは外れており、前回デフォーカス量DFbを生じ
ている。前回レンズ駆動用のデフォーカス量DFb′は、
前回の焦点検出時刻tbから今回の焦点検出時刻taまでの
経過時間(ta−tb)と被写体速度Vbを乗じて得た被写体
の予測移動量を前回デフォーカス量DFbに加えて求めら
れる。したがって、今回の焦点検出時刻taにおいては、
レンズ位置はDFa原点に達しているが、被写体は実際に
は予測位置からは外れており、今回デフォーカス量DFa
を生じている。この場合、前々回焦点検出時刻tcにおけ
る被写体位置から今回焦点検出時刻taにおける被写体位
置までのデフォーカス量差ΔDFは、図から明らかなよう
に、今回デフォーカス量DFaに前回レンズ駆動用のデフ
ォーカス量DFb′と前々回レンズ駆動用のデフォーカス
量DFc′を加え、さらに前々回デフォーカス量DFcを減ず
ることによって得られる。つまり、デフォーカス量差Δ
DFは、 ΔDF=DFa−DFc+DFb′+DFc′ となる。上式のデフォーカス量差ΔDFを、焦点検出の時
間間隔(ta−tc)で割ることによって追随速度Vを算出
している。この後、#96で合焦判定を行い、合焦してい
れば#97でリレーズを許可し、合焦していなければ#98
でリレーズを禁止し、#71からの処理を繰り返す。レリ
ーズ許可の場合、レリーズ要求があれば、レリーズルー
チンがコールされ、リレーズ動作が行われる。 最後に、レリーズルーチンについて説明する。まず、
第12図の#117にて、平均補正フラグがセットされてい
るか否か判定している。ここで平均補正フラグがセット
されている場合には#121へ進み、算出されたデフォー
カス量からレンズ駆動のためのパルス数を算出し、#12
2でレンズ駆動を行い、#123で入力ポート(IP3)をモ
ニターし、ミラーアップを確認した後、#124でレンズ
駆動を停止させた後、シャッター走行を行っている。#
117で平均補正フラグがセットされていない場合は、#1
18で追随モードフラグがセットされているか否かを判定
している。ここで、追随モードフラグがセットされてい
なければ、#125でリレーズがAFモード判定中に行われ
たか否かをフラグ(AFMF)により判定する。このフラグ
(AFMF)がセットされていれば、#126で上記判定モー
ド中に被写体が動いている可能性があるので、これを補
正すべく、上記判定中に得られたデフォーカス量の平均
をとって、この量を駆動すべくステップ#121に進む。
例えば、2回焦点検出を行い、2回のデフォーカス量
(DF1,DF2)が得られれば、DF=(DF1+DF2)/2とす
る。上記フラグ(AFMF)がセットされていないときはレ
ンズ駆動は行われず、#123以降へ進む。#118で追随モ
ードフラグがセットされていた場合は、#119へ進む。
#119ではタイムラグτを算出している。タイムラグτ
は最新の焦点検出演算時から、実際にシャッター走行が
行われるまでの時間である。#120で被写体移動速度V
とタイムラグτを乗じた値を最新のデフォーカス量DFa
に加え、シャッター走行時の予定デフォーカス量DF′を
算出している。#121でレンズ駆動のためのパルス数を
算出し、#122でレンズ駆動を行い、シャッター走行時
の予定焦点位置までレンズを駆動する。以下、#123,#
124の処理を行った後、シャッター走行を行う。これに
より、シャッター走行時に合焦するような制御が行われ
る。露出制御については本発明とは関係がないので説明
を省略する。 (発明の効果) 本発明は上述のように、焦点調節モードを合焦前と合
焦後とで切り換え可能としたので、一旦合焦した後に更
に精度の高い焦点調節を実行することができ、例えば、
焦点検出の信頼性が乏しい場合の平均化処理や、被写体
が遠近方向に移動している場合の追随処理を実行する場
合においても、デフォーカス量が小さい合焦付近の状態
で複数回の焦点検出結果に基づいて処理を実行すること
になるので、十分に精度の高い処理を行うことができる
という効果がある。
DETAILED DESCRIPTION OF THE INVENTION (Industrial applications)   The present invention relates to a camera with an automatic focusing function.
It is particularly suitable for AF single-lens reflex cameras. (Conventional technology)   Conventionally, automatic focus adjustment based on multiple focus detection results
Cameras have been proposed. For example, JP-A-56-78
No. 811 and JP-A-57-128307,
The focus detection is performed several times, and the data obtained by each focus detection is obtained.
Drive the lens based on the average value of the focus amount
Has been proposed. Also, Japanese Patent Application Laid-Open No. Sho 62-12531 discloses
If the direction of the defocus is the same as the previous one,
When the subject is moving,
Select the tracking mode that drives the lens in accordance with
In the case of it is suggested to select the normal focus adjustment mode
Have been. However, these prior arts are not
The adjustment mode is not switched between before focusing and after focusing.
No. (Problems to be solved by the invention)   Cameras with autofocus are basically the first
Once the focus is adjusted, the focus adjustment is locked.
Equipped with a shot AF mode. This one-shot AF mode
If you are using a card, the shutter will stay
The focus priority release mode, which cannot be
And many. By the way, focus on one shot AF mode
Even when using the priority release mode,
In some cases, the subject may not be in focus. This is an example
For example, if the subject is moving
This is because the subject deviates from the in-focus position by the time it is performed. Ma
If the focus detection is not reliable, one focus detection
Even if the lens is driven based on the
In some cases, it may not be inside the enclosure.   Therefore, as in the prior art described above, focus detection is performed a plurality of times.
Follow the lens drive according to the speed of the subject
Lens drive based on the mode and the average defocus amount.
It is conceivable to use the averaging mode in which
Focusing with small amount of tefocus in both mode and average mode
If it is not in the vicinity, the tracking processing and averaging with sufficiently high accuracy
There is a problem that processing cannot be performed. In addition, following mode and
If the average mode was always active, the
And then the averaging process is performed even if the composition changes.
So that the focus lock
This is not convenient.   The present invention has been made in view of such a point,
The goal is to achieve more accurate
A camera with automatic focus adjustment that enables high focus adjustment
To provide mela. (Means to solve the problem)   In a camera with an automatic focusing function according to the present invention
In order to achieve the above object, as shown in FIG.
The focus of the lens on the subject to be focused
Signal DF indicating the amount and direction of defocus.
Focus detecting means (1) for applying force and a signal indicating a defocus amount.
Focus determination means (2) for determining the focus state based on the signal DF
Is determined to be out of focus by the focus determination means (2).
Sometimes based on the signal DF indicating the defocus amount and direction
A lens driving means (3) for driving a lens,
When focusing is determined by step (2), after focusing
Focus adjustment mode before focusing based on the results of multiple focus detections
Control to execute a specific focus adjustment different from the mode
Means (4).
You.   However, FIG. 1 functionally blocks the configuration of the present invention.
FIG.
All or part of steps (1) to (4)
Data program. (Action)   Hereinafter, the operation of the present invention will be described with reference to FIG. Focus examination
In the output means (1), the object to be focused
Detects the focus state of the lens and adjusts the defocus amount and direction.
And outputs a signal DF. The focus judging means (2) includes a focus detection
Each time focus detection is performed by the output means (1), each defocus
Focus determination is performed based on the focus amount DF. Lens driving means
(3) is determined by the focus determination means (2) not to be in focus
Signal DF indicating the defocus amount and direction when
Drive the lens. Further, the control means (4)
When it is determined by the focus determining means (2) that the subject is in focus,
Focus before focusing based on multiple focus detection results after focusing
Perform a specific focus adjustment mode different from the adjustment mode
You. Here, as the specific focus adjustment mode, for example,
The amount of defocus may decrease due to the movement of the subject after focusing.
When the direction changes, the subject
A tracking mode in which the focus is adjusted to focus on the body,
Defocus when the amount of defocus varies after focusing
Average mode for driving the lens according to the average value of the amount, after focusing
Defocus amount is completely different by changing composition
Focus lens to stop driving the lens if
Lock mode.   For more detailed configuration and operation of the present invention,
Will be further clarified in the description of the embodiment described below. (Example)   FIG. 2 shows a camera hardware according to one embodiment of the present invention.
FIG. In the figure, (21) is a turtle
Microcomputer for AF control
). (22) is a CCD image sensor for AF
Yes, integration start signal φ from microcomputer (21)ICGReceive
Integration starts, and after the integration is completed, the output of each pixel is A / D converted.
And sends it to the microcomputer (21). Microcomputer (21) is CC
The output of each pixel transmitted from the D image sensor (22)
Calculation based on the amount of defocus of the subject image (defocus
Amount). The microcomputer (21) is the default
After calculating the amount of scum, the lens should be set to zero.
Drive. Here, the lens drive amount and the defocus amount
Is different for each lens.
Therefore, the conversion coefficient k is equal to the number of times of the lens incorporated in each lens.
It is stored in the road (25). Microcomputer (21) is lens rotation
The value of the conversion coefficient k is read from the road (25), and the calculated
By multiplying the focus amount by the conversion coefficient k, the lens
The number of pulses required for driving is calculated. The microcomputer (21)
Calculated by the AF motor control unit (23)
The number of pulses is transmitted, and the AF motor controller (23) drives the lens
Transmitted from the microcomputer (21) to the AF motor (24) for
Drive for the number of pulses obtained.   (26) is a display unit for displaying figures shown in FIG.
Is made. In Fig. 3, the LED (26A) is focused and focused
Indication of impossibility. That is, the defocus amount is calculated.
If the lens is in focus after driving, the LED (26A)
Lights in green to notify the photographer of in-focus. Also described below
If the defocus amount is not calculated for the reason
The LED (26A) flashes red, indicating to the photographer
Notice. Furthermore, LEDs (26B) and (26C)
Is a display showing the switching of the camera shooting mode in
You. If the subject is stationary, the focus position after focusing
Fixed, focus lock mode shooting, LED
(26B) lights up. On the other hand, if the subject is moving
Follows the movement of the subject and keeps the subject in focus.
The LED (26C) lights up.   In FIG. 2, (S1) is a relay button (not shown).
This switch turns ON when pressed down to the first stroke.
You. When the switch (S1) is turned ON, the interrupt port described later
(INT1) interrupt processing is executed and AF operation is performed.
Will be (S2) indicates that the release button is the first stroke
Turns on when pressed down to the second stroke deeper than
It is a switch. When the switch (S2) is turned on,
Interrupt processing by the interrupt port (INT2),
A release operation is performed. This interrupt port (INT
When interrupts due to 2) are prohibited by the program
There is. Therefore, the switch (S2) is turned on for the microcomputer (1).
Port (IP2), and an interrupt port
Even if interrupts are disabled by (INT2),
Con (21) scans input port (IP2)
Determines whether the photographer has made a release request
It is possible. (S3) is a mirror up switch
This switch controls the light passing through the lens
Inside the camera body so that
The mirror (not shown) located on the
When the light passes through the lens, the light reaches the film surface.
ON when completely retracted from the shooting optical path to reach
Switch, and a shutter mechanism (see
Is reset to the OFF state by charging.   (27) irradiates the subject when the brightness of the subject is low
LED that emits infrared light (auxiliary light).
Controlled by (28). The microcomputer (21)
When it is determined that the brightness is low, the auxiliary light control unit (28) is
Output the auxiliary light emission signal, and
Integration start signal φ for sensor (22)ICGAnd output
At the end of the minute, output to the auxiliary light controller (28)
The emission signal of the auxiliary light is stopped. This allows CC
The D image sensor (22) uses the auxiliary light at low
Perform CD integration. (29) focuses on dynamic subjects described later
This is a timer for calculating the change speed of the position.
Clear to zero when AF is started by turning on the switch (S1).
After that, the timer value TM constantly increases and the AF
It is possible to monitor the time after the start
You. This concludes the description of the hardware.   Subsequently, the algorithm of the present embodiment will be described.
In the present embodiment, the distinction between a still subject and a dynamic subject is performed.
Perform “Focus lock mode” and “Follow mode”
Automatically switch between these two shooting modes
I have. Hereinafter, each shooting mode will be outlined.   First, select the focus mode
If you set
Grasp at a predetermined place (hereinafter referred to as focus frame)
Of the subject image in this focus frame.
Find the amount of focus and drive the lens so that the subject image is in focus
Is performed. In general shooting, the photographer
The subject to be adjusted is
Frame the frame so that it is located in a different location
There are many cases in which you want to use In such a case,
The photographer focuses on the subject to be focused.
Shake the lens so that it is within the frame,
Do not change this focus position after performing AF operation.
Framing is required. "Foca
In such a case, the "slock mode"
This is a mode in which the release is performed without changing the position.   In this embodiment, another shooting mode is
It has a “follow mode”. This is the photographer
Shooting mode corresponding to the moving subject
It is. If the subject is moving, focus
The amount of defocus of the subject detected on the
Become This change is within the depth of field on the film surface
There is no problem if it is small enough to fit, but the scene
If there is a change in the defocus amount beyond the depth,
The focus position is changed every moment according to the changing defocus amount.
It is necessary to follow the subject to change. This implementation
In the example, if such an object moves,
Mode), and the image formation position of the subject image that changes every moment
And always keep focus on
You. In the “follow mode”, the photographer presses the release button.
When you press, the release button
The shutter curtain actually travels and is exposed on the film surface.
Considering the time lag (time delay) until the timing
The subject image is focused at the timing of exposure on the film surface
Predicts the amount of defocus as
A predictive control method for performing motion is also included. This "follow
The camera is equipped with a
Can always obtain a focused photograph.   Hereinafter, a detailed flowchart will be described in detail. Lerry
Button is pressed down to the first stroke, and the switch (S1) is
When turned ON, the AF start flow shown in Fig. 4 is executed.
It is. In the following description, the symbol "#"
Shall mean step. In # 1, interrupt
By disabling the interrupt from the port (INT2)
The release button is pressed down to the second stroke,
Release routine is not called even if release request is issued
Like that. Then, in # 2, the microcomputer (21)
When converting the amount of focus to the number of pulses for driving the lens
Of the lens circuit (25) shown in FIG.
Input from Subsequently, the distance measurement time described later is monitored in # 3.
Reset the timer (29) Further
Then, a focus detection calculation is performed in # 4.   FIG. 11 shows a subroutine of the focus detection calculation. #Ten
8 reads the timer value TM, and # 109 reads the memory value TM '
The start time of the CCD integration described later is stored in the microcomputer (21).
Store in memory. Subsequently, in step # 110, the low-luminance flag is determined.
It is carried out. If the brightness of the subject is low, the CCD image
Because the light sensor (22) is not illuminated enough
Illuminates the subject with the auxiliary light
Is determined by the low luminance flag. Low brightness immediately after AF start
Since the flag is cleared, the auxiliary light emission of # 111
Skipped, CCD integration of # 112 is performed. CCD image cell
The sensor (22) is the information of the subject for performing the focus detection calculation.
Is an image sensor for obtaining
The luminance information of the subject is stored in each pixel. CCD at # 113
The data of each pixel in the image sensor (22) is
A data dump process to be taken into the server (21) is performed. Less than
Below, correlation calculation, interpolation calculation, defocus
Switch calculation shows the flow of the well-known focus detection calculation
It is. The above processing is the focus detection calculation subroutine of # 4
Done in   When focus detection calculation was performed in # 4, the reliability of the result
If the distance is insufficient, the focus cannot be detected. In # 5 that
Make a decision. If focus detection is not possible here
Proceeds to # 501, otherwise proceeds to # 11. #Five
If you proceed to 01, check here whether the brightness is low.
U. First, if CCD integration is performed prior to the focus detection calculation
In this case, since the auxiliary light is not emitted, the subject brightness is low.
In some cases, focus detection cannot be performed. # 501 low brightness
And the low luminance flag is set in # 6.
If not, proceed to # 7, set the low luminance flag and #
Returning to step 4, the auxiliary light is emitted and CCD integration is performed. one
On the other hand, if the low brightness is not determined in # 501, or
In # 6, the low brightness flag is set, and CC is
If D integration has been performed, the contrast of the subject image
Is determined to be in a low contrast state. in this case#
Proceed to 8. In # 8, focus while scanning the lens position
A low contrast scan that repeats point detection calculations was performed in the past.
To determine whether or not
If entered, NO is determined in # 8, and low contrast is determined in # 9.
Start scanning. # 8 already low contrast scan
If it has been finished, the low contrast display is displayed in # 10 and the
Notify the shadow person that focus detection is not possible. This is
The LED (26A) shown in Fig. 3 is displayed by blinking red.   If it is determined in # 5 that focus detection is possible, proceed to # 11
No. In # 11, the low-luminance flag is determined. Auxiliary light
The above CCD integration time is used with and without
The defocus amount is repeated as described later.
Sampling period T when calculating0Need to change
You. Therefore, the respective sampling periods T in # 12 and # 130
Is set. In # 14, the differential from the result of the focus detection calculation
The amount of focus is calculated. This defocus amount at # 15
Is within the focusing range or not.
For example, proceed to AF mode determination routine after # 441,
If the scum amount is out of the focusing range, the flow proceeds to the flow after # 16.
Usually, the position of the lens is not fixed at the start of AF
Therefore, it is rare if it is within the focusing range, and proceed to # 16 or later.
No.   In # 16, the defocus amount calculated in # 14 and the input in # 2
Calculate the number of pulses for driving the lens from the input conversion coefficient k
Put out. Subsequently, the lens is driven in # 17, and the calculated value is calculated in # 16.
Lens driving is performed for the number of pulses obtained. After this, the subject
The routine enters a routine for detecting the state of the body. In # 18
Is the counter CN1Is cleared to zero. This counter C
N1Indicates how many times the focus determination has been performed in the routine after # 19.
This is a counter for counting.   The focus detection calculation is performed again in the subroutine # 19.
You. If the focus cannot be detected in # 20, the focus is detected.
Repeat # 19 with. If focus detection is performed,
Calculate the focus amount, and in # 22, counter CN1One value of
The focus is determined at # 23. At this time, the subject
The focal position, whether stationary or moving
If the change is slow, the defocus amount calculated in # 21 is
It is within the focus range, and proceeds to # 24. Where the counter CN1The value of the
Is 1, that is, with one lens drive in # 17
If in focus, go to AF mode determination routine after # 441
move on. However, if the focus was not determined in the focus determination of # 23,
If the focus position of the subject image has changed while driving the lens
Or the focus detection accuracy is low and the defocus amount
It is considered that there is variation and proceed to the routine after # 30
No.   Counter CN by # 30 and # 311If the value of
Lens drive has been performed once in the past.
After calculating the number of pulses, the lens is driven in # 42.
Then, after waiting for the time in # 43, the operation after # 19 is performed.
repeat. The reason for waiting here is that the focal position of the image is
For a subject that changes over time, the moving speed is described below.
When the focus detection time interval is short when detecting by the method
This is because speed detection is not accurately performed. # 19 of
In the subroutine, the CCD integration start time TM '
1) Timer is set in # 43 because it is stored in the memory inside
-Value TM is TM ≧ T0Wait until time reaches + TM '.
After repeating the calculations of # 19 to # 22, focus determination is again made at # 23
I do.   If the focus is determined in # 23, the counter CN1Is 2
Therefore, in # 24, CN1= 1
And # 25 scans the input port (IP2) of the microcomputer (21).
Is performed to determine whether or not there is a release request. here,
If there is no relays request, the AF mode judgment routine
Proceed to If there is a release request,
After performing the process of # 26 ~ # 29 for quick response
Proceed to the release routine. In # 26, the last defoca we got
The sign of the defocus amount DFb and the sign of the defocus amount DFa obtained this time are
Determine if they are equal. Mark of defocus amount DFA, DFb
Equal sign means that the focus positions of the subject images are the same
The focus amount DFb and the
If the defocus amount DFA or the same sign, the subject moves
Is determined and the speed V is calculated in # 27.
Set the tracking mode flag to follow the movement of the subject with
Then, release the shutter at # 29 and enter the relays routine
You. In the calculation of the subject speed of # 27, the default
The focus amount DFa is set to the time interval between the current and previous focus detection (ta−t
b) and then multiply that value by (1/2). this is
If there is a variation in the calculated defocus amount,
The estimated subject speed V is estimated faster than it is.
Calculate subject speed with 1/2 weight to avoid
That's why. Actually, this time the defocus amount DFA is in focus
Within the range, the moving speed of the subject is not so fast
No, the following speed is enough. Meanwhile, in # 26 now
Times the defocus amount DFa and the sign of the previous defocus amount DFb
In the opposite case, the focal position of the subject image has shifted in the opposite direction.
The subject is considered to be moving in the same direction.
The relays operation is performed without following.   Next, in the focusing judgment of # 23, the counter CN1Is 2
If out of focus, proceed to # 37 by the determination of # 30
Moves. In # 37, the current defocus amount DFA and the previous default
The sign of the focus amount DFb is compared. Where the same
If it is a sign, it is determined that the subject is moving in the same direction.
And proceed to # 38 and thereafter. If the sign is reversed, the subject is the same.
Since it is not determined that the lens is moving in one direction, the lens drive
Without performing the process, proceed to # 43. In # 38, if there is a release request
And if there is a release request, the object speed V
Calculates, sets the flag of the following shade in # 40, and follows
Proceed to the mode routine. In the speed calculation of # 39, this time
The focus amount DFA is divided by the focus detection time interval (ta-tb).
And (1/2) times more. This is the same as
However, here, the defocus amount DFA is focused
Because it is out of the range and the speed V of the subject is large,
Do not move to the lasing operation, but temporarily follow-up mode
Enter the speed V of the subject accurately, and then
To enter the routine.   On the other hand, if there is no release request in # 38, proceed to # 41,
The number of pulses for driving the lens is calculated, and the lens
And go to # 43. # 43 to # 22 were repeated
After that, the focus is determined again at # 23. The place where I was focused here
If it is out of focus, the process proceeds to # 24 and below.
Unta CN1Is 3, so # 30 and # 31 are not
The deviation is also determined as NO, and the flow proceeds to the determination of # 32. # 32 three times
If the signs of the defocus amounts are the same, # 33
Whether the absolute values of the three defocus amounts are all within 1 mm
Has been determined. Absolute value of defocus amount is 1mm
If anything exceeds, measure the distance of another subject
Because it is highly probable, proceed to # 41 and after and focus detection again
repeat. If both # 32 and # 33 are YES,
Focus detection is normal three times and the subject is in the same direction
It is determined that the vehicle is moving, and the speed V = (DFa−DF
b) After calculating / (ta−tb), the flow of the tracking mode is performed at # 35.
Set the lag and shift to follow mode. Also in # 32
If the three defocus amounts are not the same, # 36
Is the sign of the current defocus amount DFA and the previous defocus amount DFb.
Judge whether the numbers are the same.
When the sign of DFa and the previous defocus amount DFb match
Starts the lens drive again in # 41 and # 42, and after # 43
And the determination of the subject is repeated. Also, this time at # 36
The sign of the focus amount DFa matches the sign of the previous defocus amount DFb
If not, focus detection accuracy is low and defocus
Is determined to be uneven, and the vehicle enters average mode II.
I do.   FIG. 10 shows a flow of the average mode II. # 99
In this example, the defocus amount
DFa, previous defocus amount DFb, and defocus before last time
Average value DF = (DFa + DFb + DFc) / 3
You. This defocus amount DF is within the focusing range at # 100
It is determined whether or not the camera is in focus.
After the release is permitted in # 102, the average mode I
Move to In the average mode I, # 66 of FIG.
After setting the average correction flag as shown in FIG.
The focus lock is displayed and the camera waits for release. one
On the other hand, # 100 has large variation in the amount of defocus
Average defocus amount may exceed the focusing range.
You. In this case, the number of pulses for driving the lens is
After calculating and driving the lens to the predetermined position in # 104,
At 05, the focus detection calculation is performed again. Focus detection at # 106
If it is not possible, # 105 until focus is detected
The focus detection calculation is repeated. # 10 if focus is detected
Calculate the defocus amount at 7, return to # 99, and
The processes of # 99 to # 107 are repeated until the focus amount falls within the focusing range.
Return.   As described above, after calculating the defocus amount,
If the lens is driven and out of focus,
The moving speed of the imaging position is fast, and the lens drive cannot keep up
Or the accuracy of defocus amount calculation is low,
If the amount of defocus varies
Deemed to be a method to determine whether to follow mode or average mode
I mentioned. At the same time, the release request is being determined.
The sequence in the case where the error occurs is also described.   If the moving speed of the subject is fast, follow-up
Mode can be determined, but the speed of the subject is slow.
Has a time lag caused by driving the lens to the expected focal position.
Even if there is, it does not fall out of the focusing zone, and it is determined that focusing is in # 23
Sometimes. For this reason, even after the focus determination of # 23,
Follow mode determination in AF mode determination routine after # 441
It is carried out. Hereinafter, this AF mode determination will be described.
You.   In # 441, we have entered the AF mode judgment routine
Flag (AFMF) is set. In # 44, focus indication
And notify the photographer of the in-focus condition. Also, when in focus
Disables interrupts by interrupt port (INT2)
Release, always accept the release, there was a relays request
Sometimes, the relays operation is performed immediately.
I have. Then, in # 46, the counter CNTwoHas been cleared.
Counter CNTwoIndicates the number of focus detections for AF mode determination.
Show. Focus detection calculation is performed in # 47, and focus detection is not possible in # 48
The contrast of the original subject is low.
What is the subject you want to shoot after focusing
Performs focus detection calculation for another subject with a significantly different focus position.
It is considered possible to proceed to # 55. Focus is normal at # 48
, The defocus amount DF is calculated in # 481.
I do. If | DF |> 1mm in # 49, focus and shoot
Another subject with a different focus position than the subject to be shadowed
Since it is considered that the focus detection has been performed, the process proceeds to # 55. # 55
~ # 57 such an irregular focus detection calculation was performed
Perform the processing for the case. In # 55, first,
Perform a check. Last ignore flag is not regular
This flag is used to determine whether focus detection has been performed.
Yes, this flag is reset at first,
If the determination is no, the process proceeds to # 56. In # 56, next is regular
If the focus is detected, the answer is YES in # 55
, Set the previous ignore flag. YES at # 55
In this case, two consecutive non-regular focus detections
In this case, the AF mode determination routine is performed at # 571.
Reset flag (AFMF) as escaped from #
Press 57 to display focus lock and wait for relays.
You.   Here, if the non-regular focus detection is performed twice consecutively,
The reason is limited to the following reasons. Moving subject
When shooting a subject in follow-up mode, always keep the subject
It is necessary to follow the focus frame,
Subject deviates from focus frame due to camera shake
In some cases. For this reason, once non-regular focus detection is performed.
If this is done, ignore it. However, this is twice consecutive
The photographer intentionally focuses the subject
It is determined that he has deviated outside the frame. This is because the photographer
Camera to determine the composition after focusing on the subject
This is because the focus is locked. For this reason,
If the camera detects incorrect focus detection twice in a row, the AF mode
The focus lock mode is determined as the mode and the
Displays the focus lock and waits for release.   If NO is determined in both # 48 and # 49, the subject is
It has not changed, and the defocus amount has been reliably calculated.
And it proceeds to # 50. # 50: last ignore flag
Is checked. Here, the last ignore flag is set
If so, the normal focus detection calculation was not performed last time
The defocus amount DFc two times before in # 51
And the average of the defocus amount DFA this time
The focus amount DFb is calculated by interpolation. Then, # 5
In 2, the previous time ignore flag is cleared, and the process proceeds to # 53. Meanwhile, # 5
If 0 and the ignore flag was not set previously, interpolation is required.
Since there is no need, the process proceeds directly to # 53. # 53 in the counter
CNTwoIs counted up and the counter CN at # 54.TwoIs 4
Steps # 47 to # 54 are repeated until it becomes. Counter CNTwoIs the value of
If it is 3 or less, the timer value TM is set to the memory value T at # 541.
M ′ to T0Wait until the number increases.   After completion of the four focus detection calculations, AF mode determination at # 581
Resets the flag (AFMF) indicating
No. In # 58, the signs of the four defocus amounts are all the same,
In addition, the defocus amount changes monotonically, and
The difference between the two consecutive defocus amounts between 59 and 61
When all the absolute values are determined to be equal to or greater than the predetermined determination threshold a
Assumes that the subject is moving and moves to the tracking mode.
Run. At this time, V = (DF
a-DFc) / (ta-tc) and follow mode flag at # 63.
And set it to follow mode. At this time, the speed V
Calculated from the defocus amount DFA and the defocus amount DFc two times before
The reason is that the focus detection time interval (ta-tc) is long.
Is more accurate, and the newer the data, the better
The initial speed V at the time of mode entry is calculated more accurately.
It is.   On the other hand, in # 58, all four defocus amounts have the same sign.
Or if the change is not monotonic,
Defocus of focus detection twice for stability of focus amount
It is determined whether the sign of the amount difference has changed alternately, and
In such a case, it is considered that the calculation of the defocus amount DF is unstable.
Then, the averaging process of # 65 and below is performed. # 65 defocused
Defocus amount DFA this time, and defocus amount D last time
Fb, 3 times defocus amount before 2nd time defocus amount DFc
Is the true defocus amount, and the average correction
The focus lock display at step # 67.
Waiting for the laze. On the other hand, the defocus amount alternates at # 64
If not, or # 59 to # 61
The absolute value of the difference between successive defocus amounts is determined as
When the subject is smaller than the threshold a, the subject moves.
And the defocus amount was calculated with high accuracy.
No, averaging is not performed, and
It displays a waste lock and waits for release.   With the above, the AF mote judgment is completed from the start of AF
The description of the routine up to this point is ended.   Next, about the sequence after entering the following mode
explain. In FIG. 8, first, the following mode table is set in # 68.
And notify the photographer that the tracking mode has been entered.
You. Next, at # 69, the counter CNThreeIs substituted for 2. Mosquito
Unta CNThreeIs used to determine when to escape from the following mode.
It is. Counter CN at # 70Four, CNFiveHas been cleared. Mosquito
Unta CNFourIs the normal focus detection calculation after entering tracking mode.
A key for counting the number of times that focus detection was not performed.
Counter CNFiveIs the time when regular focus detection was performed
This is a counter for counting the number. # 71 is the subject
Body moving speed V and focus detection calculation period T0Multiplied by
In addition to the new defocus amount DFA,
Defocus amount when the lens drive is not performed
DF 'is calculated. Based on this planned defocus amount DF ′
Calculates the number of pulses for driving the lens by # 72
Then, the lens is driven in # 73. Timer value TM reaches the maximum at # 74
The focus detection cycle T is added to the memory value TM 'for the new focus detection calculation.0
Wait until it reaches the value plus. Originally # 71
Period T at0Is the prediction period T including the lens driving time0
Should be used, but here for simplicity of discussion
T0≒ T0′, And there is almost no lens driving time.
Keep it. In the lens drive of # 73, do not drive the lens
Lens drive by the planned defocus amount DF '
Therefore, when the focus detection calculation is performed in # 75, the differential
The focus amount is calculated as approximately zero. #
At 76, it is determined whether or not focus detection was impossible.
You. As described above, regular focus inspection is required due to camera shake etc.
If not, go to # 89. Also # 76
If normal focus detection is performed in
Calculate the scum amount DF, but calculate the absolute value of the obtained defocus amount.
If the value | DF | is judged to be 1 mm or more in # 77,
As described above, it is determined that normal focus detection was not performed.
And proceed to # 89. In # 89 now as a result of focus detection calculation
Has set the defocus amount DFA to zero
You. This is the difference during the focus detection calculation this time, as described above.
The lens is driven so that the amount of focus is approximately zero.
Because it is. In addition, irregular focus detection at # 90
Counter CN that counts the number of operationsFourIncrease the value of
ing. This is often due to non-regular focus detection as described below.
If the calculation is performed, exit from this tracking mode in # 87.
This is to get out. Judged as | DF | <1mm at # 77
If so, proceed to # 78. In # 78, the position of the subject
The difference from the previous subject position is defined as the defocus amount difference ΔDF.
It has been calculated.   FIG. 13 illustrates a method of calculating the defocus amount difference ΔDF.
FIG. In Fig. 13, the origin of DFA is
This is the lens position at the time of focus detection, and the DFb origin is the previous focus
This is the lens position at the time of detection. At the previous focus detection time tb
Since the lens was located at the DFb origin,
The focus amount DFb is generated. Previous lens
The driving defocus amount DFb ′ is determined by the previous focus detection time t.
Elapsed time from b to the current focus detection time ta (ta-tb)
Of the predicted movement amount of the subject obtained by multiplying the
It is obtained by adding the defocus amount DFb. Therefore,
At the current focus detection time ta, the lens position is
Point, but the subject is actually outside the predicted position
And the defocus amount DFA is generated this time. this
In this case, the position of the subject at the previous focus detection time tb
Defocus to subject position at focus detection time ta
As is clear from the figure, the amount difference ΔDF
Add the previous lens drive defocus amount DFb ′ to the amount DFa.
In addition, by reducing the previous defocus amount DFb
Obtained.   In # 79, the difference between the defocus amount difference ΔDF and the moving speed V
Sign comparison is performed. If the sign is different, move speed
The subject is moving in the direction opposite to the direction calculated as the degree V.
The focus was not detected properly
Considered as # 88 counter CNFourIs increased by one.
You. In step # 80, the absolute value of the defocus amount is determined to be a predetermined value.
Defocus actually measured even when it is equal to or greater than the threshold b.
Is much different from the expected defocus amount
That is, as in the case described above,
No, it is considered to have not been performed, and the process proceeds to # 88. # 79, # 80
If the deviation is also determined to be YES, proceed to # 81, and the normal focus
Counter CN indicating the number of detectionsFiveIncrease the value of
You.   Counter CN at # 82FiveIf the value of is not 5, # 87
Proceed to. In # 87, counter CNThreeAnd CNFourComparing
You. Initially the counter CN is set by the initial setting of # 69ThreeThe value of
2 and this counter CNThreeThe value of
Counter CN indicating the number of focus detectionFourCompared to the value of
You. That is, here, the counter CNFourIs greater than or equal to 2
In this case, it is determined as YES, and release is prohibited in # 871 again.
Return to AF mode determination and repeat. This is accidentally added
When entering any mode, the counter CNFourValue and counter C
NThreeIt is possible to compare the values of
To do that.   On the other hand, the counter CN at # 82FiveIf the value of becomes 5,
At step # 83, the low luminance flag is checked. As aforementioned,
When the low-brightness flag is set, an auxiliary light is emitted.
CCD integration is performed, but the power consumption is large when auxiliary light is used.
It is not advisable to perform unlimited focus detection
I don't. Therefore, the counter CNFiveWhen the value of reaches 5
It comes out of following mode. Low brightness hula
If the focus is set, focus determination is made in # 91,
If the camera is in focus, release the camera in step # 92, then release it in step # 94.
The focus lock is displayed, the tracking mode ends, and focus
The photographer is notified that the focus lock mode has been set.   If the camera is not in focus, the relays are prohibited in # 93.
To return to AF mode determination again. On the other hand, do not use auxiliary light
In this case, follow-up mode is continued because there is no worry about power consumption
I do. Counter CN at # 84ThreeIs increased by one. Further
And counter CN at # 85, # 86Four, CNFiveHas been cleared.
Counter CNThreeIs to escape from the # 87 following mode
Parameters. This counter CNThreeIs in follow mode
Increases according to the elapsed time since the entry (number of focus detections)
Therefore, the conditions for getting out of the # 87 following mode are gradually becoming stricter.
It becomes difficult. That is, the elapsed time since entering the following mode
Is longer, it means that the subject is moving,
Irregular focus detection due to camera shake
Even after that, the control that keeps following is performed.   In # 87, it was determined that the player could not exit the following mode
In this case, the following speed V is newly calculated in # 95. #
In 95, to improve the calculation accuracy of the following speed V,
Difference between the subject position two times before and the subject position two times before (defocus
差 DF) divided by the focus detection time interval (ta-tc)
The moving speed is V.   FIG. 14 illustrates a method of calculating the defocus amount difference ΔDF.
It is a figure for clarification. In Fig. 14, the origin of DFA is now
Is the lens position at the time of focus detection, and the DFb origin is
This is the lens position when focus is detected, and the DFc origin is
This is the lens position at the time of point detection. Focus detection time tc before last time
In, since the lens was located at the DFc origin,
The defocus amount DFc is generated every time. Before
The lens drive defocus amount DFc 'is
Elapsed time from detection time tc to previous focus detection time tb
(Tb−tc) multiplied by subject speed Vc
The moving amount is obtained by adding the moving amount to the defocus amount DFc two times before.
Therefore, at the previous focus detection time tb, the lens
The position has reached the DFb origin, but the subject is actually predicted
Out of the position, causing the previous defocus amount DFb.
ing. The previous lens drive defocus amount DFb ′ is
From the previous focus detection time tb to the current focus detection time ta
The subject obtained by multiplying the elapsed time (ta-tb) by the subject speed Vb
Is calculated by adding the predicted movement amount of
It is. Therefore, at the current focus detection time ta,
The lens position has reached the DFA origin, but the subject is actually
Is out of the predicted position, and the defocus amount DFA
Has occurred. In this case, the focus detection time tc
Object position at the current focus detection time ta from the object position
The defocus amount difference ΔDF up to
In this case, the defocus amount
Focus amount DFb 'and defocus for driving the lens two times before
Add the amount DFc ′ and reduce the defocus amount DFc two times before
It is obtained by doing. That is, the defocus amount difference Δ
DF is ΔDF = DFa−DFc + DFb ′ + DFc ′ Becomes When the defocus amount difference ΔDF in the above formula is used for focus detection
Calculate the following speed V by dividing by the interval (ta-tc)
doing. After that, the focus is determined at # 96, and the
If it is, the relays are permitted at # 97, and if it is not focused, it is # 98.
To prohibit relays and repeat the process from # 71. Reli
Release permission, if there is a release request, release
The chin is called and a relays operation is performed.   Finally, the release routine will be described. First,
At # 117 in FIG. 12, the average correction flag is set.
Or not. Here the average correction flag is set
If so, proceed to # 121 and calculate the default
The number of pulses for driving the lens is calculated from the amount of scum, and # 12
Use 2 to drive the lens and use # 123 to monitor the input port (IP3).
After checking the mirror up and the lens in # 124
After stopping the driving, the shutter travels. #
If the average correction flag is not set in 117, # 1
Determines whether the following mode flag is set at 18
doing. Here, the tracking mode flag is set.
If not, the relays will be performed during AF mode judgment in # 125
It is determined by a flag (AFMF). This flag
If (AFMF) is set, the above judgment mode is executed at # 126.
The subject may be moving during the
To correct, average the defocus amount obtained during the above determination
Then, the process proceeds to step # 121 to drive this amount.
For example, focus detection is performed twice, and defocus amount is calculated twice.
If (DF1, DF2) is obtained, set DF = (DF1 + DF2) / 2.
You. If the above flag (AFMF) is not set,
No lens drive is performed, and the process proceeds to # 123 and thereafter. Follower in # 118
If the mode flag has been set, the process proceeds to # 119.
In # 119, the time lag τ is calculated. Time lag τ
Indicates that the shutter travel has actually started since the latest focus detection calculation.
It is time to be performed. Subject moving speed V at # 120
Multiplied by the time lag τ and the latest defocus amount DFA
In addition to the defocus amount DF '
It has been calculated. In # 121, the number of pulses for driving the lens
Calculate and drive the lens in # 122, when running the shutter
Is driven to the expected focal position. Below, # 123, #
After performing the processing of 124, the shutter travels. to this
Control that focuses when the shutter is running
You. Exposure control is not related to the present invention, so it is explained
Is omitted. (The invention's effect)   As described above, according to the present invention, the focus adjustment mode
It is possible to switch between after focus, so once focus is achieved,
It is possible to perform highly accurate focus adjustment, for example,
Averaging when focus detection is not reliable
To perform the follow-up processing when the
Even in the case where the defocus amount is small and in the vicinity of focus
To execute processing based on the results of focus detection multiple times
, So that highly accurate processing can be performed.
This has the effect.

【図面の簡単な説明】 第1図は本発明の基本構成を示すブロック図、第2図は
本発明の一実施例のブロック回路図、第3図は同上に用
いる表示部の正面図、第4図乃至第12図は同上の動作説
明のためのフローチャート、第13図及び第14図は同上の
動作説明図である。 (1)は焦点検出手段、(2)は合焦判定手段、(3)
はレンズ駆動手段、(4)は制御手段である。
BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a block diagram showing a basic configuration of the present invention, FIG. 2 is a block circuit diagram of one embodiment of the present invention, FIG. 4 to 12 are flow charts for explaining the operation of the above, and FIGS. 13 and 14 are operation explanatory diagrams of the same. (1) is focus detection means, (2) is focus determination means, (3)
Denotes lens driving means, and (4) denotes control means.

───────────────────────────────────────────────────── フロントページの続き (72)発明者 長谷川 潤 大阪府大阪市東区安土町2丁目30番地 大阪国際ビル ミノルタカメラ株式会社 内 (72)発明者 石橋 賢司 大阪府大阪市東区安土町2丁目30番地 大阪国際ビル ミノルタカメラ株式会社 内 (72)発明者 糊田 寿夫 大阪府大阪市東区安土町2丁目30番地 大阪国際ビル ミノルタカメラ株式会社 内 (72)発明者 大塚 博司 大阪府大阪市東区安土町2丁目30番地 大阪国際ビル ミノルタカメラ株式会社 内 (56)参考文献 特開 昭60−188935(JP,A) 特開 昭59−121322(JP,A) 特開 昭63−304232(JP,A)   ────────────────────────────────────────────────── ─── Continuation of front page    (72) Inventor Jun Hasegawa               2-30 Azuchicho, Higashi-ku, Osaka-shi, Osaka               Osaka International Building Minolta Camera Co., Ltd.               Inside (72) Inventor Kenji Ishibashi               2-30 Azuchicho, Higashi-ku, Osaka-shi, Osaka               Osaka International Building Minolta Camera Co., Ltd.               Inside (72) Inventor Toshio Kaida               2-30 Azuchicho, Higashi-ku, Osaka-shi, Osaka               Osaka International Building Minolta Camera Co., Ltd.               Inside (72) Inventor Hiroshi Otsuka               2-30 Azuchicho, Higashi-ku, Osaka-shi, Osaka               Osaka International Building Minolta Camera Co., Ltd.               Inside                (56) References JP-A-60-188935 (JP, A)                 JP-A-59-121322 (JP, A)                 JP-A-63-304232 (JP, A)

Claims (1)

(57)【特許請求の範囲】 1.焦点を合わせるべき被写体に対するレンズの焦点状
態を検出し、デフォーカス量及び方向を示す信号を出力
する焦点検出手段と、デフォーカス量を示す信号に基づ
いて合焦状態を判定する合焦判定手段と、合焦判定手段
により合焦でないと判定されたときにデフォーカス量及
び方向を示す信号に基づいてレンズを駆動するレンズ駆
動手段と、合焦判定手段により合焦であると判定された
ときに、合焦後の複数回の焦点検出結果に基づいて合焦
前の焦点調節モードとは異なった特定の焦点調節モード
を実行する制御手段とを備えて成ることを特徴とする自
動焦点調節機能付きのカメラ。 2.合焦判定手段は、合焦が判定されると合焦表示を行
う手段を含むことを特徴とする特許請求の範囲第1項記
載の自動焦点調節機能付きのカメラ。 3.合焦前の焦点調節モードは、最初に焦点が合ったと
ころで焦点調節がロックされるワンショットAFモードで
あって、合焦判定手段は、合焦前のレリーズ要求による
露出動作を禁止し、合焦後のレリーズを許可する手段を
含むことを特徴とする特許請求の範囲第2項記載の自動
焦点調節機能付きのカメラ。 4.制御手段は、焦点検出結果に基づいて被写体が動い
ているか否かを判定する動体検出手段を備え、動体検出
時には、特定の焦点調節モードとして、動いている被写
体に合焦させるようにレンズ駆動を行う追随モードを撰
択する手段であることを特徴とする特許請求の範囲第1
項記載の自動焦点調節機能付きのカメラ。 5.制御手段は、動体検出手段により被写体が動いてい
ないと判定されたときには、特定の焦点調節モードとし
て、レンズを駆動しないフォーカスロックモードを選択
する手段であることを特徴とする特許請求の範囲第4項
記載の自動焦点調節機能付きのカメラ。 6.動体検出手段は、複数回のデフォーカス方向が同一
で、かつ、デフォーカス量が単調に変化しているときに
被写体が動いていると判定する手段であることを特徴と
する特許請求の範囲第4項記載の自動焦点調節機能付き
のカメラ。 7.動体検出手段は、連続する2回の焦点検出時のデフ
ォーカス量の差が所定値以上であるときに被写体が動い
ていると判定する手段であることを特徴とする特許請求
の範囲第4項記載の自動焦点調節機能付きのカメラ。 8.動体検出手段は、複数回のデフォーカス方向が同一
でないか、又は、デフォーカス量が単調に変化していな
いときには、被写体が動いていないと判定する手段であ
ることを特徴とする特許請求の範囲第5項記載の自動焦
点調節機能付きのカメラ。 9.動体検出手段は、連続する2回の焦点検出時のデフ
ォーカス量の差が所定値未満であるときには、被写体が
動いていないと判定する手段であることを特徴とする特
許請求の範囲第5項記載の自動焦点調節機能付きのカメ
ラ。 10.制御手段は、複数回のデフォーカス方向が同一で
ないか、又は、単調に変化していない場合において、3
回以上のデフォーカス量同士の相対的なデフォーカス方
向が交互に反転しているときに、特定の焦点調節モード
として、焦点検出を行った回数以下の複数回のデフォー
カス量の平均値を算出する平均モードを選択する手段で
あることを特徴とする特許請求の範囲第1項記載の自動
焦点調節機能付きのカメラ。 11.平均モードは、平均値の算出後にレンズ駆動を停
止し、レリーズ要求の発生後にデフォーカス量の平均値
に基づいてレンズを駆動するモードであることを特徴と
する特許請求の範囲第10項記載の自動焦点調節機能付き
のカメラ。 12.制御手段は、デフォーカス量同士の相対的なデフ
ォーカス方向が交互に変化していない場合には、レンズ
駆動を停止させるフォーカスロックモードを選択する手
段であることを特徴とする特許請求の範囲第10項記載の
自動焦点調節機能付きのカメラ。 13.制御手段は、追随モードを選択したときには、被
写体速度を繰り返し検出し、被写体速度に基づいてレン
ズ駆動を行うと共に、被写体速度が検出された後にレリ
ーズ要求があった場合には、露出開始までのレリーズタ
イムラグ中に、被写体が動くと予測されるデフォーカス
量分を露出開始までにレンズ駆動する予測制御を行う手
段であることを特徴とする特許請求の範囲第4項記載の
自動焦点調節機能付きのカメラ。 14.制御手段は、追随モードを選択した場合におい
て、被写体に合焦できないと判定されたときには、レリ
ーズを禁止する手段であることを特徴とする特許請求の
範囲第4項記載の自動焦点調節機能付きのカメラ。 15.制御手段は、追随モードを選択した場合におい
て、焦点検出結果に基づいて被写体の速度を算出し、算
出した被写体の速度が実際の被写体の速度と所定値以上
異なっているときに被写体に合焦できないと判定する手
段であることを特徴とする特許請求の範囲第14項記載の
自動焦点調節機能付きのカメラ。 16.制御手段は、合焦後の焦点検出の結果、デフォー
カス量が大きいか、又は、焦点検出不能となった場合
に、特定の焦点調節モードとして、レンズを駆動しない
フォーカスロックモードを選択する手段であることを特
徴とする特許請求の範囲第1項記載の自動焦点調節機能
付きのカメラ。 17.制御手段は、デフォーカス量が大きいか、又は、
焦点検出不能となるいずれかの状態が連続して2回生じ
たときにフォーカスロックモードを選択する手段である
ことを特徴とする特許請求の範囲第16項記載の自動焦点
機能付きのカメラ。 18.制御手段は、フォーカスロックモードを選択した
ときには、フォーカスロック表示を行う手段であること
を特徴とする特許請求の範囲第5項、第8項、第9項、
第12項、第16項又は第17項のいずれか1項に記載の自動
焦点調節機能付きのカメラ。
(57) [Claims] Focus detection means for detecting the focus state of the lens with respect to the subject to be focused and outputting a signal indicating the defocus amount and direction; and focus determination means for determining the focus state based on the signal indicating the defocus amount. A lens drive unit that drives a lens based on a signal indicating a defocus amount and a direction when the focus determination unit determines that the image is out of focus; Control means for executing a specific focus adjustment mode different from the focus adjustment mode before focusing based on a plurality of focus detection results after focusing. Camera. 2. 2. A camera with an automatic focus adjustment function according to claim 1, wherein said focus determination means includes means for performing a focus display when focus is determined. 3. The focus adjustment mode before focusing is a one-shot AF mode in which focus adjustment is locked when focus is first achieved, and the focus determination unit prohibits an exposure operation due to a release request before focusing and focuses. 3. A camera with an automatic focusing function according to claim 2, further comprising means for permitting a release after focusing. 4. The control means includes moving body detection means for determining whether or not the subject is moving based on the focus detection result.When the moving body is detected, the lens driving is performed as a specific focus adjustment mode so as to focus on the moving subject. Claim 1 characterized by means for selecting a following mode to be performed.
Camera with automatic focus adjustment function described in section. 5. 5. The control unit according to claim 4, wherein the control unit selects a focus lock mode in which the lens is not driven as the specific focus adjustment mode when the moving object detection unit determines that the subject is not moving. Camera with automatic focus adjustment function described in section. 6. The moving object detecting means is means for determining that the subject is moving when the defocus direction is the same a plurality of times and the defocus amount is monotonically changing. A camera with an automatic focusing function according to claim 4. 7. 5. The moving object detecting means according to claim 4, wherein the moving object detecting means is means for judging that the subject is moving when a difference between defocus amounts in two consecutive focus detections is equal to or more than a predetermined value. Camera with automatic focus adjustment function as described. 8. The moving object detecting means is means for determining that the subject is not moving when the defocus direction is not the same for a plurality of times or when the defocus amount does not change monotonically. A camera with an automatic focusing function according to claim 5. 9. 6. The moving object detecting means according to claim 5, wherein the moving object detecting means is means for judging that the subject is not moving when a difference between defocus amounts in two consecutive focus detections is smaller than a predetermined value. Camera with automatic focus adjustment function as described. 10. When the defocus direction is not the same or does not change monotonically, the control unit performs three
When the relative defocus directions of the defocus amounts of more than two times are alternately reversed, the average value of the defocus amounts of a plurality of times equal to or less than the number of times of focus detection is calculated as a specific focus adjustment mode. 2. A camera with an automatic focusing function according to claim 1, wherein the camera is a means for selecting an average mode to perform. 11. 11. The average mode according to claim 10, wherein the lens driving is stopped after calculating the average value, and the lens is driven based on the average value of the defocus amount after the release request is issued. Camera with automatic focus adjustment function. 12. The control means is means for selecting a focus lock mode in which lens driving is stopped when the relative defocus directions of the defocus amounts are not alternately changed. A camera with an automatic focusing function according to item 10. 13. When the tracking mode is selected, the control means repeatedly detects the subject speed, drives the lens based on the subject speed, and when a release request is issued after the subject speed is detected, the release until the start of exposure. 5. A device with an automatic focus adjustment function according to claim 4, wherein said means performs prediction control for driving a lens by a defocus amount predicted to move a subject during a time lag before exposure starts. camera. 14. The control means according to claim 4, wherein the control means is means for prohibiting the release when it is determined that the subject cannot be focused when the tracking mode is selected. camera. 15. When the tracking mode is selected, the control unit calculates the speed of the subject based on the focus detection result, and cannot focus on the subject when the calculated speed of the subject differs from the actual speed of the subject by a predetermined value or more. 15. The camera with an automatic focus adjustment function according to claim 14, wherein the camera is a means for determining. 16. The control means selects the focus lock mode in which the lens is not driven as a specific focus adjustment mode when the defocus amount is large or the focus detection becomes impossible as a result of focus detection after focusing. 2. A camera with an automatic focusing function according to claim 1, wherein: 17. The control means has a large defocus amount, or
17. The camera with an automatic focus function according to claim 16, wherein the camera is a means for selecting a focus lock mode when any state in which focus detection cannot be performed occurs twice in succession. 18. The control means is means for performing focus lock display when the focus lock mode is selected, wherein the control means performs focus lock display.
Item 18. The camera with an automatic focusing function according to any one of Items 12, 16, and 17.
JP62299065A 1987-11-26 1987-11-26 Camera with auto focus function Expired - Lifetime JP2727548B2 (en)

Priority Applications (5)

Application Number Priority Date Filing Date Title
JP62299065A JP2727548B2 (en) 1987-11-26 1987-11-26 Camera with auto focus function
US07/276,920 US4998124A (en) 1987-11-26 1988-11-28 Autofocus camera including automatically controlled focus adjustment
US07/640,268 US5212513A (en) 1987-11-26 1991-01-10 AF camera system
US07/756,424 US5223886A (en) 1987-11-26 1991-09-09 AF camera system
US07/983,324 US5408291A (en) 1987-11-26 1992-11-30 AF camera having a display for displaying a plurality of modes

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62299065A JP2727548B2 (en) 1987-11-26 1987-11-26 Camera with auto focus function

Publications (2)

Publication Number Publication Date
JPH01140111A JPH01140111A (en) 1989-06-01
JP2727548B2 true JP2727548B2 (en) 1998-03-11

Family

ID=17867746

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62299065A Expired - Lifetime JP2727548B2 (en) 1987-11-26 1987-11-26 Camera with auto focus function

Country Status (1)

Country Link
JP (1) JP2727548B2 (en)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60188935A (en) * 1984-03-07 1985-09-26 Asahi Optical Co Ltd Automatic focus control device of camera
JP2531182B2 (en) * 1987-06-04 1996-09-04 株式会社ニコン Camera auto focus device

Also Published As

Publication number Publication date
JPH01140111A (en) 1989-06-01

Similar Documents

Publication Publication Date Title
US5262820A (en) Camera having a blur detecting device
JPH06102450A (en) Automatic focusing controller
US5212513A (en) AF camera system
JP2605758B2 (en) Camera with auto focus function
US4998124A (en) Autofocus camera including automatically controlled focus adjustment
JP2727548B2 (en) Camera with auto focus function
JP2666456B2 (en) Camera with auto focus function
US5223886A (en) AF camera system
JP2751313B2 (en) Camera with auto focus function
JP2606347B2 (en) Camera with auto focus function
JPH11337814A (en) Optical device
JP2643200B2 (en) Camera with auto focus function
JP2526897B2 (en) Automatic focus adjustment device
JPH02814A (en) Camera with automatic focusing function
JPH02813A (en) Camera with automatic focusing function
JP4497567B2 (en) Focus detection device, distance measuring device and optical instrument
JPH04163538A (en) Automatic focusing device
JP3189290B2 (en) Camera background description degree determination device
JP2002014276A (en) Camera with focal information display device
JPH02810A (en) Camera with automatic focusing function
JPH0797174B2 (en) Automatic focus adjustment device
JPH0651188A (en) Autofocusing camera and photographing method
JPH0797172B2 (en) Automatic focus adjustment device
JPH01140112A (en) Camera with automatic focusing function
JPH04349440A (en) Blurring detecting device for camera

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term