JP2751313B2 - Camera with auto focus function - Google Patents

Camera with auto focus function

Info

Publication number
JP2751313B2
JP2751313B2 JP3181389A JP3181389A JP2751313B2 JP 2751313 B2 JP2751313 B2 JP 2751313B2 JP 3181389 A JP3181389 A JP 3181389A JP 3181389 A JP3181389 A JP 3181389A JP 2751313 B2 JP2751313 B2 JP 2751313B2
Authority
JP
Japan
Prior art keywords
focus
subject
lens
focus detection
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.)
Expired - Lifetime
Application number
JP3181389A
Other languages
Japanese (ja)
Other versions
JPH02809A (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 JP3181389A priority Critical patent/JP2751313B2/en
Publication of JPH02809A publication Critical patent/JPH02809A/en
Application granted granted Critical
Publication of JP2751313B2 publication Critical patent/JP2751313B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、自動焦点調節機能付きのカメラに関するも
のであり、AF1眼レフカメラに特に適するものである。 (従来の技術) 従来、特開昭62−125311号公報においては、自動焦点
調節機能付きのカメラにおいて、前回と今回のデフォー
カス方向が同一であるときには、被写体が動いていると
判定し、被写体の速度に合わせてレンズを駆動する追随
制御を行うことが提案されている。 (発明が解決しようとする問題点) 従来の技術では、前回の焦点検出結果に基づいて合焦
位置に向けてレンズを駆動し、今回の焦点検出結果が合
焦でなく、且つ前回と今回のデフォーカス方向が同一で
あれば、被写体が動的被写体(動体)であると判定して
追随制御に移行している。ところが、前回の焦点検出時
から今回の焦点検出時までの被写体の移動量が被写界深
度以内に収まる程度に小さい場合や、静止していた被写
体が合焦後に動き出す場合には、従来の技術では被写体
が動体であることを検出できないという問題がある。そ
こで、合焦後にレンズを止めたまま、動体検出のための
演算を継続し、その演算結果の分布を長い時間にわたっ
て監視することにより移動速度の遅い被写体をも確実に
動体と検出できるようにする方式が考えられる。しかし
ながら、この方式では、被写体の移動速度が速い場合に
は、本来、動体検出が容易であるにも拘わらず、動体検
出までに要する時間が徒らに引き延ばすことになり、追
随処理への移行が遅れて、シャッターチャンスを逃すこ
とになるという問題があった。 本発明はこのような点に鑑みてなされたものであり、
その目的とするところは、移動速度が速い被写体にも移
動速度が遅い被写体にも適確に対応できる自動焦点調節
機能付きのカメラを提供することにある。 (問題点を解決するための手段) 本発明に係る自動焦点調節機能付きのカメラにあって
は、上記の目的を達成するために、第1図に示すよう
に、焦点を合わせるべき被写体に対するレンズの焦点状
態を検出する焦点検出手段(1)と、少なくとも焦点検
出手段(1)の焦点検出結果に基づいてレンズを合焦位
置に向けて駆動するレンズ駆動手段(2)と、焦点検出
手段(1)の焦点検出結果に基づいて合焦か否かを判断
する合焦判定手段(3)と、合焦と判定される前に被写
体が動体か否かを判定する第1の動体判定手段(4)
と、第1の動体判定手段(4)で動体と判定されずに合
焦と判定されたとき、被写体が動体か否かを判定する第
2の動体判定手段(5)とを備えて成るものである。 ただし、第1図は本発明の構成を機能的にブロック化
して示した説明図であり、後述の実施例においては、手
段(1)乃至(5)の全部又は一部をマイクロコンピュ
ータのプログラムによって実現している。 (作 用) 以下、本発明の作用を第1図により説明する。焦点検
出手段(1)では、焦点を合わせるべき被写体に対する
レンズの焦点状態を検出し、焦点状態を示す信号DFを出
力する。この信号DFとしては、例えば、その大きさがデ
フォーカス量を表し、その符号がデフォーカス方向を示
すような信号を用いる。合焦判定手段(3)は、焦点検
出手段(1)で焦点検出が行われる度に、焦点状態を示
す信号DFに基づいて合焦判定を行う。合焦判定手段
(3)により合焦でないと判定されたときには、デフォ
ーカス量及び方向を示す信号DFに基づいて、レンズ駆動
手段(2)によりレンズを合焦状態に向けて駆動する。
第1の動体判定手段(4)は、例えば、移動速度の速い
被写体を動体と判定するように構成されており、合焦判
定手段(3)により合焦と判定される前に、被写体が動
体か否かを判定する。被写体が動体であると判定されれ
ば、レンズ駆動手段(2)は、焦点検出手段(1)の焦
点検出結果に基づく合焦位置に、被写体の移動に基づく
焦点ずれ量を予測した補正を加えた位置にレンズを駆動
することが好ましい。 被写体の移動速度が遅い場合には、第1の動体判定手
段(4)により動体と判定されることなく、合焦判定手
段(3)により合焦と判定される。この場合には、第2
の動体判定手段(5)が作動する。第2の動体判定手段
(5)は、例えば、連続する2回の焦点検出結果の差分
データを複数個用いて被写体が動体か否かを判定するよ
うに構成されており、その判定時間は比較的長くかかる
が、移動速度の遅い被写体でも確実に動体と判定できる
ように構成されている。この第2の動体判定手段(5)
により被写体が動体であると判定された場合にも、レン
ズ駆動手段(2)は、焦点検出手段(1)の焦点検出結
果に基づく合焦位置に、被写体の移動に基づく焦点ずれ
量を予測した補正を加えた位置にレンズを駆動すること
が好ましい。 本発明はこのように作用するので、移動速度の速い被
写体に対しては、第1の動体判定手段(4)により動体
であることを早期に検出して、追随処理に速やかに突入
することができ、シャッターチャンスを逃す恐れを少な
くできる。また、移動速度の遅い被写体や合焦後に動き
出した被写体に対しては、合焦後にも第2の動体判定手
段(5)による動体判定を継続することにより、確実に
動体であることを検出して、追随処理に確実に突入する
ことができる。 本発明のさらに詳細な構成及び動作については、以下
に述べる実施例の説明において一層明らかとされる。実
施例においては、第5図の#30〜#33のステップによ
り、第1の動体判定手段(4)を実現しており、第6図
及び第7図のプログラム(就中、#58〜#61のステッ
プ)により、第2の動体判定手段(5)を実現してい
る。 (実施例) 第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)が入力ポート(IT2)をスキャンすることに
より、撮影者がレリーズ要求を行っているか否かを判定
可能としている。(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
−tb)で割り、さらにその値を(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でレリーズ許可した後、平均モード1
に移行する。平均モード1においては、第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′は、前回の焦点検出時刻tb
から今回の焦点検出時刻taまでの経過時間(ta−tb)と
被写体速度Vを乗じて得た被写体の予測移動量を前回デ
フォーカス量DFbを加えて求められる。したがって、今
回の焦点検出時刻taにおいては、レンズ位置はDFa原点
に達しているが、被写体は実際には予測位置からは外れ
ており、今回デフォーカス量DFaを生じている。この場
合、前記焦点検出時刻tbにおける被写体位置から今回焦
点検出時刻taにおける被写体位置までのデフォーカス量
差ΔDFは、図から明らかなように、今回デフォーカス量
DFaに前回レンズ駆動用のデフォーカス量DFb′を加え、
さらに前回デフォーカス量DFbを減ずることによって得
られる。 #79にて、このデフォーカス量差ΔDFと移動速度Vの
符号の比較を行っている。符号が異なる場合は、移動速
度Vとして算出した方向とは逆方向に被写体が動いてい
るということであり、正規の焦点検出がなされなかった
とみなされ、#88でカウンタCN4の値を1つ増してい
る。また、#80でデフォーカス量の絶対値が所定の判定
閾値b以上であった場合にも実際測定されたデフォーカ
ス量が予想されたデフォーカス量と大きく異なるという
ことであり、前述の場合と同様に、正規の焦点検出がな
されなかったとみなされ、#88へ進む。#78,#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−rb)と被写体速度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回のデフォーカス量(DF
1,DF2)が得られれば、DF=(DF1+DF2)/2とする。上
記フラグ(AFMF)がセットされていないときはレンズ駆
動は行わらず、#123以降へ進む。#118で追随モードフ
ラグがセットされていた場合は、#199へ進む。#119で
はタイムラグτを算出している。タイムラグτは最新の
焦点検出演算時から、実際にシャッター走行が行われる
までの時間である。#120で被写体移動速度Vとタイム
ラグτを乗じた値を最近のデフォーカス量DFaに加え、
シャッター走行時の予定デフォーカス量DF′を算出して
いる。#121でレンズ駆動のためのパルス数を算出し、
#122でレンズ駆動を行い、シャッター走行時の予定焦
点位置までレンズを駆動する。以下、#123,#124の処
理を行った後、シャッター走行を行う。これにより、シ
ャッター走行時に合焦するような制御が行われる。露出
制御については本発明とは関係がないので説明を省略す
る。 (発明の効果) 本発明は上述のように、合焦前には第1の動体判定手
段により被写体が動体であるか否かを判定し、第1の動
体判定手段で動体と判定されずに合焦と判定されたとき
には、第2の動体判定手段により被写体が動体か否かを
判定するようにしたから、移動速度の速い被写体につい
ては迅速に動体であることを検出することができ、シャ
ッターチャンスを逃す恐れが少ないという効果があり、
また、移動速度の遅い被写体や、静止状態から動き出す
被写体については、確実に動体であることを検出でき、
動体に対する焦点ずれを確実に防止できるという効果が
ある。
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, in Japanese Patent Application Laid-Open No.
For cameras with adjustment functions, the default
When the scum direction is the same, the subject is moving.
Judgment and follow-up that drives the lens according to the speed of the subject
It has been proposed to exercise control. (Problems to be solved by the invention)   In the conventional technology, focusing is performed based on the previous focus detection result.
Driving the lens toward the position, the focus detection result
Not defocused, and the defocus direction of the previous and current
If so, determine that the subject is a dynamic subject (moving object)
It has shifted to the follow-up control. However, during the previous focus detection
The amount of movement of the subject from
If the subject is too small to fit within
If the body starts moving after focusing, the conventional technology
There is a problem that cannot be detected as a moving object. So
Here, with the lens stopped after focusing,
Continue the calculation and distribute the result of the calculation over a long period of time.
To monitor subjects with slow moving speeds.
A method that enables detection as a moving object is conceivable. However
However, in this method, when the moving speed of the subject is fast,
Originally, moving object detection is easy,
The time required to get out will be prolonged unnecessarily,
Missing a photo opportunity because the transition to random processing is delayed
There was a problem that becomes.   The present invention has been made in view of such a point,
Its purpose is to move even fast moving subjects.
Automatic focus adjustment that can accurately respond to slow moving subjects
It is to provide a camera with a function. (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
Focus detection means (1) for detecting the state
Focuses the lens on the basis of the focus detection result of the output means (1)
Lens driving means (2) for driving the camera toward the position, and focus detection
Judgment is made based on the focus detection result of the means (1).
Focusing determination means (3) for
First moving body determining means (4) for determining whether the body is a moving body
And the first moving body determination means (4)
When it is determined that the subject is moving,
2 moving body determination means (5).   However, FIG. 1 functionally blocks the configuration of the present invention.
FIG.
All or part of steps (1) to (5)
Data program. (Operation)   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
The focus state of the lens is detected, and a signal DF indicating the focus state is output.
Power. For example, the magnitude of the signal DF is
Indicates the focus amount, and its sign indicates the defocus direction.
Use such a signal. The focus determination means (3) is a
Each time focus detection is performed by the output means (1), the focus state is indicated.
The focus determination is performed based on the input signal DF. Focus determination means
If it is determined by (3) that the camera is not in focus, the default
The lens is driven based on the signal DF indicating the focus amount and direction.
The lens is driven toward the in-focus state by the means (2).
The first moving object determination means (4) is, for example, a moving speed is high.
It is configured to determine that the subject is a moving object.
Before the object is determined to be in focus by the determining means (3), the subject moves.
It is determined whether it is a body. The subject is determined to be a moving object
For example, the lens driving means (2) is provided with a focus detecting means (1).
The focus position based on the point detection result is based on the movement of the subject.
Drives the lens to the position where the correction that predicted the amount of defocus has been added
Is preferred.   If the moving speed of the subject is slow, the first moving object determination
The focus determination hand is determined without being determined as a moving object by the step (4).
The focus is determined by step (3). In this case, the second
Of the moving object determination means (5) is activated. Second moving body determination means
(5) is, for example, a difference between two consecutive focus detection results.
Use multiple data to determine if the subject is moving
And the judgment time is relatively long
However, even a subject with a slow moving speed can be reliably determined as a moving object
It is configured as follows. This second moving body determination means (5)
When the subject is determined to be a moving object by
The focus driving means (2) is provided with a focus detecting means (1).
Defocus at the focus position based on the result
Driving the lens to the position where the predicted amount was corrected
Is preferred.   Since the present invention operates in this manner, a moving object having a high moving speed is used.
For the moving object, the moving object is determined by the first moving object determination means (4).
Early detection and prompt entry into follow-up processing
To reduce the risk of missing photo opportunities
I can do it. In addition, subjects that move slowly or
The second moving object determination method is performed for the object
By continuing the moving object determination in step (5),
Detects that the object is moving and enters the following process reliably
be able to.   For more detailed configuration and operation of the present invention,
Will be further clarified in the description of the embodiment described below. Real
In the embodiment, steps # 30 to # 33 in FIG.
FIG. 6 illustrates a first moving object determining means (4).
And the program shown in Fig. 7 (steps # 58 to # 61)
) Implements the second moving body determination means (5).
You. (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 release 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 is executed by the load 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 due to (INT2) are disabled,
Con (21) scans input port (IT2)
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
The light that has passed through the photographic lens
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)
It is controlled by the unit (28). The microcomputer (21) is the subject
When it is determined that the brightness of the
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"
In this mode, 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 the subject moves like this,
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, “#” indicates the program status.
Shall mean. In # 1, the interrupt
By disabling interrupts from the port (INT2),
When the release button is pressed down to the second stroke,
Release routine is not called when requested
I have to. Subsequently, the microcomputer (21) is defaulted in # 2.
Change when converting the amount of scum to the number of pulses for driving the lens
The conversion coefficient (k) is input from the lens circuit (25) shown in FIG.
Power. Subsequently, in step # 3, a distance measurement time described later is monitored.
For resetting the timer (29). further,#
At 4, a focus detection calculation is performed.   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 with low brightness
And the low-luminance flag is set in # 6.
If not, proceed to # 7, set the low luminance flag and # 4
Then, the CCD is integrated by emitting auxiliary light. 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 normal 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,
The focal position of the subject image has changed during lens drive
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
Body on the subject that changes over time,
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 release 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
Direction, so that the previous defocus amount DFb
The subject moves if the defocus amount DFA is the same sign this time.
Is determined and the speed V is calculated in # 27.
Set the tracking mode flag to track the movement of the
To release the shutter at # 29 and enter the release routine.
I do. In calculating the object speed of # 27, the differential
The focus amount D Fa is set to the time interval (ta
-Tb) and then multiply that value by (1/2). This
This is when the calculated defocus amount varies.
To estimate the expected subject speed V faster than it actually is
Calculate subject speed with 1/2 weight so that it does not get lost
To do that. Actually, this time the defocus amount DFA is
Because the subject is within the focusing range, the moving speed of the subject is not so high.
This is not enough, and the following speed is enough. Meanwhile, # 26
Is the sign of the current defocus amount DFA and the previous defocus amount DFb.
When the signal is reversed, the focal position of the subject image is shifted in the opposite direction.
That the subject is moving in the same direction
No release 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
Proceed to # 43 without performing. Is there a release request in # 38
Judgment is made, and if there is a release request, the subject speed is determined in # 39.
Calculate V, set the tracking mode flag in # 40,
Proceed to any mode routine. In the speed calculation of # 39, this time
Defocus amount DFA is calculated by the time interval (ta-tb) of focus detection.
Divided and further multiplied by (1/2). This is the same as
Similar, but here, the defocus amount DFA is
Because it is out of the focus range and the speed V of the subject is large,
Do not move to the release operation.
To calculate the speed V of the subject accurately.
It is designed to enter the Leeds 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.
The average mode 1 after the release is permitted in # 102.
Move to In the average mode 1, the value of # 66 in 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 release request
Sometimes, the release operation is performed immediately.
You. Then, in # 46, the counter CNTwoHas been cleared. Mosquito
Unta CNTwoIndicates the number of focus detections for AF mode determination
You. Focus detection calculation is performed in # 47, and focus detection is impossible in # 48.
If judged, the contrast of the original subject is low
Or the subject you are trying to shoot after focusing
Performs focus detection calculation for another subject with a significantly different point position
It is considered possible to proceed to # 55. Focus is normal at # 48
If detected, the defocus amount DF is calculated in # 481.
Do. If | DF |> 1mm in # 49, focus and shoot
The focus of another subject whose focus position differs from that of the
Since it is considered that the point detection has been performed, the process proceeds to # 55. # 55 ~
# 57 indicates that such an irregular focus detection calculation was performed.
Perform the processing of In # 55, first,
Check. The last time the ignore flag is
This flag is used to determine whether point detection has been performed.
Initially, this flag is reset,
It becomes NO at fixed time, and proceeds to # 56. In # 56, next is not regular
When focus detection is performed, 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 release.
You.   Here, if the non-regular focus detection is performed twice consecutively,
The reason is limited to the following reasons. Moving subject
When shooting the body in follow-up mode, always keep the subject
Need to follow the focus frame,
Subject deviates from focus frame due to shake
There are cases. Therefore, once non-regular focus detection is performed.
If this occurs, ignore this. However, this happens twice
If the photographer intentionally focuses the subject
Is determined to have deviated outside the team. This means that the photographer
After focusing on the subject, the camera is
This is because the focus is locked. Therefore, 2
AF mode when the focus detection is performed incorrectly continuously
The focus lock mode is determined as
The cas lock is displayed, and the release waits.   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 sign of the four defocus amounts is the same for all
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
Judgment is made based on whether the sign of the amount difference has been 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.
Wait for Leeds. On the other hand, the defocus amount alternates at # 64
Is not changed, or judgment of # 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.   This completes the AF mode determination 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 expected 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.
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 DFA origin is
This is the lens position at the time of point detection, and the DFb origin is
This is the lens position at the time of exit. Last focus detection time tb
Since the lens was located at the origin of DFb,
This is what caused the focus amount DFb. Last time lens drive
The moving defocus amount DFb ′ is determined by the previous focus detection time tb.
And the elapsed time (ta−tb) from the current focus detection time ta to
The predicted movement amount of the object obtained by multiplying the object speed V
It is obtained by adding the focus amount DFb. So now
At the focal point detection time ta, the lens position is
, But the subject actually deviates from the predicted position
This time, the defocus amount DFA is generated. This place
In this case, the current focus from the subject position at the focus detection time tb
Defocus amount to subject position at point detection time ta
As can be seen from the figure, the difference ΔDF
DFa is added to the previous lens drive defocus amount DFb ′,
Further, by reducing the previous defocus amount DFb
Can be   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
As in the case described above, normal focus detection cannot be performed.
No, it is considered to have not been performed, and the process proceeds to # 88. # 78, # 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, release is prohibited at # 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. Mosquito
Unta CNThreeWhen exiting the # 87 following mode
Parameter. This counter CNThreeEnters tracking mode
Increases according to the elapsed time (number of focus detections)
Therefore, the conditions for getting out of the # 87 following mode are gradually becoming severe.
It becomes. That is, the elapsed time since entering the following mode
The longer it is, the more surely the subject is moving.
Irregular focus detection due to camera shake etc.
Even after that, 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 defocus amount DFc 'for driving the second lens is
Elapsed time from point 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-rb) 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 The defocus amount difference ΔDF in the above equation is
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, release is allowed in # 97, and if out of focus, it is # 98
To prohibit release and repeat the process from # 71. Reli
Release permission, if there is a release request, release
The chin is called and a release 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, release is 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
The average of the defocus amount obtained during the above determination
Then, the process proceeds to step # 121 to drive this amount. An example
For example, focus detection is performed twice and the defocus amount (DF
If (1, DF2) is obtained, DF = (DF1 + DF2) / 2. Up
The lens drive when the AFMF flag is not set.
No action is taken, and the process proceeds to # 123 and thereafter. Follow mode in # 118
If the lag has been set, go to # 199. At # 119
Calculates the time lag τ. Time lag τ is the latest
The shutter travel is actually performed from the time of focus detection calculation
Until the time. Subject movement speed V and time at # 120
The value multiplied by the lag τ is added to the recent defocus amount DFa,
Calculate the expected defocus amount DF 'during shutter operation
I have. In # 121, the number of pulses for driving the lens is calculated,
The lens is driven at # 122, and the focus is
Drive the lens to the point position. Hereafter, the processing of # 123 and # 124
After that, the shutter travels. As a result,
Control is performed so that the in-focus state can be achieved during the jotting run. Exposure
The description of the control is omitted because it is not related to the present invention.
You. (The invention's effect)   As described above, according to the present invention, the first moving object determination
The step determines whether the subject is a moving object,
When the body is determined to be in focus without being determined to be a moving body by the body determining means
The second moving body determining means determines whether the subject is a moving body.
Since the judgment is made, subjects with fast moving speed
Can quickly detect that the subject is moving.
There is an effect that there is little risk of missing
Also, start moving from a slow moving subject or from a still state
For the subject, we can reliably detect that it is a moving object,
This has the effect that defocus can be reliably prevented for moving objects.
is there.

【図面の簡単な説明】 第1図は本発明の基本構成を示すブロック図、第2図は
本発明の一実施例のブロック回路図、第3図は同上に用
いる表示部の正面図、第4図乃至第12図は同上の動作説
明のためのフローチャート、第13図及び第14図は同上の
動作説明図である。 (1)は焦点検出手段、(2)はレンズ駆動手段、
(3)は合焦判定手段、(4)は第1の動体判定手段、
(5)は第2の動体判定手段である。
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) focus detection means, (2) lens driving means,
(3) is a focus determining means, (4) is a first moving body determining means,
(5) is a second moving body determining means.

───────────────────────────────────────────────────── フロントページの続き (72)発明者 長谷川 潤 大阪府大阪市東区安土町2丁目30番地 大阪国際ビル ミノルタカメラ株式会社 内 (72)発明者 石橋 賢司 大阪府大阪市東区安土町2丁目30番地 大阪国際ビル ミノルタカメラ株式会社 内 (72)発明者 糊田 寿夫 大阪府大阪市東区安土町2丁目30番地 大阪国際ビル ミノルタカメラ株式会社 内 (72)発明者 大塚 博司 大阪府大阪市東区安土町2丁目30番地 大阪国際ビル ミノルタカメラ株式会社 内   ────────────────────────────────────────────────── ─── 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

Claims (1)

(57)【特許請求の範囲】 1.焦点を合わせるべき被写体に対するレンズの焦点状
態を検出する焦点検出手段と、少なくとも焦点検出手段
の焦点検出結果に基づいてレンズを合焦位置に向けて駆
動するレンズ駆動手段と、焦点検出手段の焦点検出結果
に基づいて合焦か否かを判断する合焦判定手段と、合焦
と判定される前に被写体が動体か否かを判定する第1の
動体判定手段と、第1の動体判定手段で動体と判定され
ずに合焦と判定されたときに、被写体が動体か否かを判
定する第2の動体判定手段とを備えて成る自動焦点調節
機能付きのカメラ。 2.レンズ駆動手段は、第1又は第2の動体判定手段に
より被写体が動体と判定されたときには、焦点検出手段
の焦点検出結果に基づく合焦位置に、被写体の移動に基
づく焦点ずれ量を予測した補正を加えた位置にレンズを
駆動する手段としたことを特徴とする特許請求の範囲第
1項記載の自動焦点調節機能付きのカメラ。 3.第2の動体判定手段は、第1の動体判定手段により
検出される動体に比べて移動速度の遅い動体を検出する
ように構成されていることを特徴とする特許請求の範囲
第1項記載の自動焦点調節機能付きのカメラ。 4.第2の動体判定手段は、連続する2回の焦点検出結
果の差分データを複数個用いて被写体が動体か否かを判
定する手段としたことを特徴とする特許請求の範囲第1
項記載の自動焦点調節機能付きのカメラ。
(57) [Claims] Focus detection means for detecting the focus state of the lens with respect to the subject to be focused, lens drive means for driving the lens to a focus position based on at least the focus detection result of the focus detection means, and focus detection of the focus detection means Focus determination means for determining whether or not the subject is in focus based on the result, first moving body determination means for determining whether or not the subject is a moving subject before the focus is determined, and first moving body determination means. A camera with an automatic focus adjustment function, comprising: a second moving object determining means for determining whether a subject is a moving object when it is determined that the subject is in focus without being determined as a moving object. 2. When the first or second moving body determining unit determines that the subject is a moving body, the lens driving unit corrects the focus position based on the focus detection result of the focus detecting unit to predict a defocus amount based on the movement of the subject. 2. A camera with an automatic focus adjusting function according to claim 1, wherein the lens is driven to a position to which the lens is added. 3. The second moving object determining means is configured to detect a moving object having a lower moving speed than the moving object detected by the first moving object determining means. Camera with automatic focus adjustment function. 4. 2. The method according to claim 1, wherein the second moving object determining means determines whether the subject is a moving object by using a plurality of difference data of two consecutive focus detection results.
Camera with automatic focus adjustment function described in section.
JP3181389A 1989-02-12 1989-02-12 Camera with auto focus function Expired - Lifetime JP2751313B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3181389A JP2751313B2 (en) 1989-02-12 1989-02-12 Camera with auto focus function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3181389A JP2751313B2 (en) 1989-02-12 1989-02-12 Camera with auto focus function

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP29906387A Division JP2605758B2 (en) 1987-11-26 1987-11-26 Camera with auto focus function

Publications (2)

Publication Number Publication Date
JPH02809A JPH02809A (en) 1990-01-05
JP2751313B2 true JP2751313B2 (en) 1998-05-18

Family

ID=12341531

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3181389A Expired - Lifetime JP2751313B2 (en) 1989-02-12 1989-02-12 Camera with auto focus function

Country Status (1)

Country Link
JP (1) JP2751313B2 (en)

Also Published As

Publication number Publication date
JPH02809A (en) 1990-01-05

Similar Documents

Publication Publication Date Title
JP3206980B2 (en) Automatic focus control device
US5212513A (en) AF camera system
JP2605758B2 (en) Camera with auto focus function
JP2751313B2 (en) Camera with auto focus function
US4998124A (en) Autofocus camera including automatically controlled focus adjustment
US5408291A (en) AF camera having a display for displaying a plurality of modes
JPH0854558A (en) Automatic focusing camera
JP2727548B2 (en) Camera with auto focus function
JP2666456B2 (en) Camera with auto focus function
JP2606347B2 (en) Camera with auto focus function
JP2526897B2 (en) Automatic focus adjustment device
JP2643200B2 (en) Camera with auto focus function
JPH02813A (en) Camera with automatic focusing function
JPH02814A (en) Camera with automatic focusing function
JP3189290B2 (en) Camera background description degree determination device
JPH0651188A (en) Autofocusing camera and photographing method
JPH04349440A (en) Blurring detecting device for camera
JPH02810A (en) Camera with automatic focusing function
JP2001154083A (en) Range finder
JPH02815A (en) Camera with automatic focusing function
JPH0659314A (en) Camera and photographing method
JPH01140112A (en) Camera with automatic focusing function
JP3007656B2 (en) Auto focus shooting device
JP2004070099A (en) Focus detecting device and camera
JP3333015B2 (en) Anti-shake camera

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term
FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080227

Year of fee payment: 10