JP4140069B2 - Focus detection device - Google Patents

Focus detection device Download PDF

Info

Publication number
JP4140069B2
JP4140069B2 JP24843697A JP24843697A JP4140069B2 JP 4140069 B2 JP4140069 B2 JP 4140069B2 JP 24843697 A JP24843697 A JP 24843697A JP 24843697 A JP24843697 A JP 24843697A JP 4140069 B2 JP4140069 B2 JP 4140069B2
Authority
JP
Japan
Prior art keywords
light receiving
receiving means
light
accumulation time
focus detection
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
JP24843697A
Other languages
Japanese (ja)
Other versions
JPH1184224A (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.)
Nikon Corp
Original Assignee
Nikon Corp
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 Nikon Corp filed Critical Nikon Corp
Priority to JP24843697A priority Critical patent/JP4140069B2/en
Publication of JPH1184224A publication Critical patent/JPH1184224A/en
Application granted granted Critical
Publication of JP4140069B2 publication Critical patent/JP4140069B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Description

【0001】
【発明の属する技術分野】
本発明は、例えば、カメラ,ディジタルスチルカメラ,ビデオカメラ等に搭載される焦点検出装置に関する。
【0002】
【従来の技術】
一般に、焦点検出装置においては、撮影光学系を介して入射する、1つ又は複数の経路を通った入射光の、光量分布状態に基づいて、焦点の状態を検出する。
入射光量分布を検出するために、撮影光学系を介して入射する被写体像の一部分が、受光装置に導かれる。受光装置としては、通常、1つ又は2つの1次元イメージセンサが用いられる。
【0003】
焦点の状態を検出する方法には、いくつかの種類がある。例えば、検出される光量分布のコントラストに基づいて、焦点の状態を検出できる。
最も実用的な焦点検出方法では、撮影光学系の互いに異なる位置を通って入射する2組の光束の光量分布を、2組の1次元イメージセンサでそれぞれ検出する。そして、検出された2組の光量分布の位相差(位置の差)に基づいて、焦点の状態を検出する。
【0004】
しかし、何れの方法を用いる場合でも、焦点の状態を正確に検出するためには、検出される光量分布のコントラスト、すなわち、位置の違いによる明るさの変化が、ある程度大きくなければならない。
ところで、実際に用いられる受光装置は、一般に、CCDなどの電荷蓄積型のイメージセンサである。従って、受光装置に入射する光束の光量が小さすぎると、受光装置が出力する信号のレベルが小さくなり、ノイズなどの影響により、出力信号のレベル変化、即ちコントラストが小さくなる。
【0005】
逆に、受光装置に入射する光束の光量が大きすぎると、受光装置の内部に蓄積される電荷量が許容量を越えて、電荷のオーバーフローが生じるので、この場合には、光量分布が正確に検出できない。
そこで、従来より、受光装置の電荷蓄積時間を調整し、前記電荷蓄積時間内に受光装置に入射する光束の光量、即ち蓄積電荷量を適正に制御することが、試みられている。
【0006】
例えば、特開平2−113215号公報の技術では、過去の実績に基づいて、受光装置の電荷蓄積時間を決定する。即ち、受光装置の出力レベルの目標値Lrを予め定め、前回制御時の電荷蓄積時間をT0、前回制御時の受光装置の出力レベルをL0とする場合、電荷蓄積時間T1は、次式により決定される。
T1=T0・Lr/L0 ・・・(1)
また、特開昭57−64711号公報の技術では、ホトダイオードを光量モニタ用として、受光装置の近傍に設ける。そして、前記ホトダイオードから出力される電荷の蓄積量を、予め定めた閾値と比較する。この比較結果により、受光装置の電荷蓄積の終了を制御する。つまり、モニタ光量が一定になるように、受光装置の電荷蓄積時間が制御される。
【0007】
また、特開平8−75994号公報の技術では、合焦するまでは証券検出する度に、受光装置の電荷蓄積時間を制御し、一旦、合焦すると、受光装置の電荷蓄積時間を固定するように制御する。そして、被写体の輝度が低下するなどして焦点検出が不可能となる状態が所定回数連続するまでは、一旦決めた電荷蓄積時間を変更しない。
【0008】
【発明が解決しようとする課題】
上記のような、従来の受光装置の電荷蓄積時間制御については、それぞれ一長一短がある。例えば、特開昭57−64711号公報に開示されたように、ホトダイオードの出力に基づいて電荷蓄積を制御する場合には、次のような不具合が生じる。
【0009】
即ち、被写体が移動物体の場合、背景の輝度はその時の条件に応じて異なる。この影響で、蓄積時間が変動し、主要被写体に対して適した蓄積時間にならず、適切な出力が得られない。あるいは、主要被写体の背後に移動物体があり、背景の輝度が変化した場合にも、同様の不具合が生じる。
また、特開平8−75994号公報に開示されたように、合焦状態で、電荷蓄積時間を固定すると、次のように、不具合が生じる可能性がある。
【0010】
移動する被写体を撮影する場合に、日向から日陰に被写体が移動すると、被写体の明るさが低下するので、電荷蓄積時間が一定であると、受光装置の蓄積電荷量が低下し、焦点状態の検出ができなくなる。
合焦状態になった後でも、焦点状態を検出できないときに、被写体の移動によって、カメラと被写体との距離が変化すると、焦点がずれるので合焦状態で撮影ができない。
【0011】
しかし、特開平8−75994号公報に開示されているように、合焦状態で、電荷蓄積時間を固定することにより、好ましい結果が得られる場合も多い。
本発明は、より多くの様々な条件下において、焦点状態の検出を可能にすることを目的とする。
【0012】
【課題を解決するための手段】
請求項1の焦点検出装置は、撮影光学系を介して入射する光の強度に応じて発生する電荷を蓄積し、第1の電荷蓄積時間中に蓄積された電荷量に応じた信号を出力する第1の受光手段と、前記撮影光学系を介して入射する光の強度に応じて発生する電荷を蓄積し、第2の電荷蓄積時間中に蓄積された電荷量に応じた信号を出力する第2の受光手段と、前記第1の受光手段に入射する光の強度に基づいて前記第1の受光手段の前記第1の電荷蓄積時間を決定するとともに、前記第2の受光手段に過去に入射した光の強度に関する情報に基づいて前記第2の受光手段の前記第2の電荷蓄積時間を決定することにより、前記入射する光の強度の変化に対する前記第1および第2の受光手段の応答速度を変え、前記第1の電荷蓄積時間と前記第2の電荷蓄積時間によってそれぞれ前記第1の受光手段と前記第2の受光手段を並行して蓄積制御する蓄積制御手段と、前記撮影光学系の焦点状態を、前記第1の受光手段と第2の受光手段の少なくとも一方が出力する信号に基づいて検出する焦点検出手段とを設けたことを特徴とする。
【0013】
請求項2は、請求項1記載の焦点検出装置において、前記蓄積制御手段は、前記第2の受光手段によって、過去に得られた複数の前記光の強度に関する情報に基づいて、前記第2の電荷蓄積時間を決定することを特徴とする。
請求項3は、請求項1記載の焦点検出装置において、前記蓄積制御手段は、過去の第1時点において前記第1の受光手段によって得られた前記光の強度に基づいて、前記第1の電荷蓄積時間を決定するとともに、前記第1時点より過去の第2時点において前記第2の受光手段によって得られた前記光の強度に基づいて、前記第2の電荷蓄積時間を決定することを特徴とする。
【0014】
請求項4は、請求項1記載の焦点検出装置において、前記蓄積制御手段は、互いに異なる時点に、前記第1の受光手段によって得られた前記光の強度に関する複数のN個の情報に基づいて、前記第1の電荷蓄積時間を決定するとともに、互いに異なる時点に、前記第2の受光手段によって得られた前記光の強度に関するNとは異なる数の複数の情報に基づいて、前記第2の電荷蓄積時間を決定することを特徴とする。
【0015】
請求項5は、請求項1記載の焦点検出装置において、入射光の強度を検出する光量検出手段を、前記第1の受光手段の近傍に設け、前記蓄積制御手段が、前記光量検出手段の出力に基づいて前記第1の電荷蓄積時間を決定することを特徴とする。
請求項6は、請求項1記載の焦点検出装置において、検出される焦点の状態が、予め定めた目標範囲内になると、前記蓄積制御手段が、前記第2の電荷蓄積時間の更新を停止することを特徴とする。
【0017】
請求項は、請求項1記載の焦点検出装置において、前記第1の受光手段が検出する像の領域と、前記第2の受光手段が検出する像の領域とが互いに近接した状態で、前記第1の受光手段と前記第2の受光手段を配置したことを特徴とする。
請求項は、請求項1記載の焦点検出装置において、前記第1の受光手段が検出する像の領域と、前記第2の受光手段が検出する像の領域とが部分的に重なった状態で、前記第1の受光手段と前記第2の受光手段を配置したことを特徴とする。
【0018】
請求項は、請求項1記載の焦点検出装置において、前記第1の受光手段が検出する像の領域の軸方向と、前記第2の受光手段が検出する像の領域の軸方向とが互いにほぼ直交する状態で、前記第1の受光手段と前記第2の受光手段を配置したことを特徴とする。
請求項10は、請求項1記載の焦点検出装置において、前記第1の受光手段の信号から求められる第1のデフォーカス量の信頼度と、前記第2の受光手段の信号から求められる第2のデフォーカス量の信頼度を識別する、信頼度識別手段を設け、前記焦点検出手段が、前記第1のデフォーカス量の信頼度と第2のデフォーカス量の信頼度に基づいて、前記撮影光学系の焦点状態を検出することを特徴とする。
【0019】
請求項11は、請求項1記載の焦点検出装置において、前記第1の電荷蓄積時間を決定する処理と前記第2の電荷蓄積時間を決定する処理との組み合わせを、複数の中から選択的に切り替えるスイッチ手段を設けたことを特徴とする。
【0020】
(作用)
(請求項1)
撮影光学系を介して入射する光束は、第1の受光手段と第2の受光手段にそれぞれ入射する。焦点検出手段は、前記第1の受光手段と第2の受光手段の少なくとも一方が出力する信号に基づいて、前記撮影光学系の焦点状態を検出する。
【0021】
本発明では、第1の受光手段と第2の受光手段の電荷蓄積時間が、互いに独立に制御される。第1の受光手段の蓄積電荷量に影響を及ぼす第1の電荷蓄積時間と、第2の受光手段の蓄積電荷量に影響を及ぼす第2の電荷蓄積時間は、蓄積制御手段により決定される。
つまり、第1の受光手段の蓄積電荷量が適正になるように、第1の電荷蓄積時間が制御され、第2の受光手段の蓄積電荷量が適正になるように、第2の電荷蓄積時間が制御される。
【0022】
前記第1の電荷蓄積時間は、前記第1の受光手段に入射する光の強度に基づいて決定され、前記第2の電荷蓄積時間は、前記第2の受光手段に過去に入射した光の強度に関する情報に基づいて決定される。従って、被写体の明るさの変化に対する応答速度については、第1の電荷蓄積時間は比較的速く、第2の電荷蓄積時間は比較的遅い。
【0023】
被写体の明るさの変化に対する電荷蓄積時間の応答性は、状況に応じて、速い方が良い場合と遅い方が良い場合がある。
例えば、被写体の日向から日陰への移動、あるいは日陰から日向への移動によって、被写体の明るさが変化する場合には、合焦後であっても、被写体の明るさの変化に速く追従しないと、光量分布を示す信号のレベル低下、あるいは信号の飽和によって、焦点検出ができなくなる。
【0024】
しかし、例えば目的とする被写体の近傍を、被写体よりも明るい障害物が通り過ぎるような場合には、少なくとも合焦後は、障害物に反応しない方が良い。
また、例えば、背景に比べて明るさの大きい被写体の移動が速く、被写体が焦点検出領域に入ったり出たりを繰り返すような場合には、電荷蓄積時間の応答が速い方が良い場合もあるし、遅い方が良い場合もある。
【0025】
本発明では、被写体の明るさの変化に対する応答速度が、第1の電荷蓄積時間は比較的速く、第2の電荷蓄積時間は比較的遅いので、様々な状況において、第1の電荷蓄積時間と第2の電荷蓄積時間の少なくとも一方は、適切な状態に定められる。
つまり、第1の受光手段の蓄積電荷量と第2の受光手段の蓄積電荷量の何れか一方は適正になるので、焦点検出手段は、前記第1の受光手段と第2の受光手段の少なくとも一方が出力する信号に基づいて、常に前記撮影光学系の焦点状態を検出できる。
【0026】
(請求項2)
前記第2の電荷蓄積時間が、前記第2の受光手段によって過去に得られた、複数の前記光の強度に関する情報に基づいて決定される。つまり、平均化された光の強度に基づいて、前記第2の電荷蓄積時間が決定される。
従って、変化の速い前記光の強度変化には追従しないように、前記第2の電荷蓄積時間が制御される。これにより、例えば、被写体の近傍を通り過ぎる高輝度障害物などの影響を受けにくくなる。
【0027】
(請求項3)
前記第1の電荷蓄積時間が、過去の第1時点において前記第1の受光手段によって得られた前記光の強度に基づいて決定され、前記第2の電荷蓄積時間が、前記第1時点より過去の第2時点において前記第2の受光手段によって得られた前記光の強度に基づいて決定される。
【0028】
つまり、前記第1の電荷蓄積時間と前記第2の電荷蓄積時間が、互いに異なる時点で検出された光の強度に基づいて決定される。
従って、前記第1時点と第2時点の間に、被写体の輝度に大きな変化が生じた場合、前記第2の受光手段の蓄積電荷量は、変化前の輝度に基づいて制御され、前記第1の受光手段の蓄積電荷量は、変化後の輝度に基づいて制御される。このため、前記第1の受光手段及び第2の受光手段の少なくとも一方は、蓄積電荷量が適正に制御される。
【0029】
つまり、被写体の輝度が大きく変動する場合であっても、前記第1の受光手段及び第2の受光手段の少なくとも一方の出力する信号に基づいて、焦点の状態を検出できる。
(請求項4)
前記第1の電荷蓄積時間は、互いに異なる時点に、前記第1の受光手段によって得られた前記光の強度に関する複数のN個の情報に基づいて決定される。また、前記第2の電荷蓄積時間は、互いに異なる時点に、前記第2の受光手段によって得られた前記光の強度に関するNとは異なる数の複数の情報に基づいて決定される。
【0030】
つまり、前記第1の電荷蓄積時間及び前記第2の電荷蓄積時間は、何れも光の強度に関する複数の情報を平均化した実績値に基づいて決定される。但し、前記第1の電荷蓄積時間を決定する実績値の平均化期間と前記第2の電荷蓄積時間を決定する実績値の平均化期間は異なる。
従って、被写体の明るさの変化に対する応答速度が、第1の電荷蓄積時間は比較的速く、第2の電荷蓄積時間は比較的遅くなる。
【0031】
(請求項5)
この発明では、入射光の強度を検出する光量検出手段の出力に基づいて、前記第1の電荷蓄積時間が決定される。これにより、第1の電荷蓄積時間よりも短い周期で、被写体の明るさが変動する場合でも、それに追従するように、第1の電荷蓄積時間を制御できる。
【0032】
(請求項6)
この発明では、検出される焦点の状態が、予め定めた目標範囲内になると、前記第2の電荷蓄積時間が固定される。従って、例えば被写体の近傍を高輝度障害物が通過する場合でも、合焦後は、被写体の輝度に基づいて第2の受光手段の蓄積電荷量が決定される。
【0034】
請求項
前記第1の受光手段が検出する像の領域と、前記第2の受光手段が検出する像の領域とが互いに近接している。
【0035】
従って、前記第1の受光手段の出力信号と前記第2の受光手段の出力信号とを切り替えて、焦点の状態を検出しても、検出される焦点の状態が大きく変動することがない。
(請求項
前記第1の受光手段が検出する像の領域と、前記第2の受光手段が検出する像の領域とが部分的に重なっている。
【0036】
従って、前記第1の受光手段の出力信号と前記第2の受光手段の出力信号とを切り替えて、焦点の状態を検出しても、検出される焦点の状態が大きく変動することがない。
【0037】
(請求項
前記第1の受光手段及び前記第2の受光手段は、それらが検出する領域の軸方向が、互いにほぼ直交する状態で配置されている。従って、水平方向のみに輝度変化のある被写体と、垂直方向にのみ輝度変化のある被写体の何れであっても、前記第1の受光手段及び前記第2の受光手段の何れか一方の出力に基づいて、焦点の状態を検出できる。
【0038】
(請求項10
信頼度識別手段は、前記第1の受光手段の信号から求められる第1のデフォーカス量の信頼度と、前記第2の受光手段の信号から求められる第2のデフォーカス量の信頼度を識別する。前記焦点検出手段は、前記第1のデフォーカス量の信頼度と第2のデフォーカス量の信頼度に基づいて、前記撮影光学系の焦点状態を検出する。これによって、検出される焦点の状態の信頼度を、より高めることができる。
【0039】
(請求項11
前記第1の電荷蓄積時間を決定する処理と前記第2の電荷蓄積時間を決定する処理との組み合わせとしては、様々なものが考えられる。しかし、最良の組み合わせは、被写体の種別や状況に応じて変わる。この発明では、スイッチ手段により、前記第1の電荷蓄積時間を決定する処理と前記第2の電荷蓄積時間を決定する処理との組み合わせを、複数の中から選択的に切り替えることができる。
【0040】
【発明の実施の形態】
(第1の実施の形態)
この形態の焦点検出装置の構成と動作を、図1,図2,図3,図4,図5,図6,図7,図8,図9,図10,図11,図12,図13,図14,図15,図16,図17及び図18に示す。
【0041】
図1は、焦点検出装置の光学系の構成を示す分解斜視図である。図2は、図1の光学系を備える焦点検出装置の電気回路を示すブロック図である。図3は、図2の焦点検出装置における主要な信号タイミングの例を示すタイミングチャートである。
【0042】
図4は、図2の制御ユニット30の動作の概略を示すフローチャートである。図5は、図4のステップS4の詳細を示すフローチャートである。図6は、図4のステップS5の詳細を示すフローチャートである。
図7は、図5のステップS23の詳細を示すフローチャートである。図8は、図5のステップS24の詳細を示すフローチャートである。図9は、図5のステップS25の詳細を示すフローチャートである。
【0043】
図10は、図6のステップS28の詳細を示すフローチャートである。図11は、図6のステップS29の詳細を示すフローチャートである。図12は、図4のステップS12の詳細を示すフローチャートである。
図13は、図12のステップS70及びS71の詳細を示すフローチャートである。図14は、互いに異なる経路を通る光を検出して得た2つの1次元画像信号Va,Vbの分布を示すグラフである。図15は、2つの1次元画像信号Va,Vbの相関量を示すグラフである。
【0044】
図16は、図15の一部分の詳細を示すグラフである。図17は、撮影画面中の焦点検出領域を示す正面図である。また、図18は、相関量を算出する際に参照される、2つの1次元画像信号Va,Vbの画素の組み合わせを示す模式図である
【0046】
まず、焦点検出装置の光学系について説明する。図1に示すように、撮影レンズ51の光軸上には、視野マスク52,フィールドレンズ53,絞り54,再結像レンズ55及び検出基板56が配置されている。
視野マスク52は、その中央部に、十字形の開口部52aを有している。視野マスク52は、撮影レンズ51の予定焦点面の近傍に配置されている。視野マスク52は、撮影レンズ51によって結像する、被写体の空中像を規制する。
【0047】
絞り54は、4つの開口部54a,54b,54c及び54dを有している。これらの開口部54a,54b,54c及び54dは、それぞれ、フィールドレンズ53によって、領域51a,51b,51c及び51dとして、撮影レンズ51上に投影される。
再結像レンズ55は、絞り54の開口部54a,54b,54c及び54dに対応する位置にそれぞれ配置された、4つのレンズ55aを備えている。再結像レンズ55は、視野マスク52の開口部52aを通る像を、検出基板56上に結像する。
【0048】
検出基板56上には、4つのイメージセンサ11,12,21及び22と、センサMa及びMbが設置されている。イメージセンサ11,12,21及び22は、何れも、多数の受光部が1列に配列された1次元撮像ユニットである。
2つのイメージセンサ11及び12は、受光部の配列方向がX軸方向に向くように配置されている。残りの2つのイメージセンサ21及び22は、受光部の配列方向がY軸方向に向くように配置されている。
【0049】
イメージセンサ11,12,21及び22は、CCD素子で構成されている。従って、イメージセンサ11,12,21及び22の出力には、制御される蓄積時間の間に各受光部で蓄積される電荷量、即ち受光量に応じた電気信号が、各受光部の画素信号として得られる。
センサMa及びMbは、何れも、単一のホトダイオードを内蔵した受光素子である。また、センサMa及びMbの受光部は、細長く形成してある。
【0050】
センサMaは、その受光部の長手方向をX軸方向に向けて、イメージセンサ11の近傍に配置してある。従って、センサMaは、イメージセンサ11における多数の受光部の、平均的な受光量を検出できる。
センサMbは、その受光部の長手方向をY軸方向に向けて、イメージセンサ21の近傍に配置してある。従って、センサMbは、イメージセンサ21における多数の受光部の、平均的な受光量を検出できる。
【0051】
撮影レンズ51の領域51aを通過する入射光は、視野マスク52,フィールドレンズ53,絞り54の開口部54a及び再結像レンズ55の1つのレンズ55aを介して、イメージセンサ11の受光面に結像する。
同様に、撮影レンズ51の領域51b,51c及び51dを通過する入射光は、それぞれ、イメージセンサ21,12及び22の受光面に結像する。
【0052】
イメージセンサ11で検出される像と、イメージセンサ12で検出される像との相対的な位置ずれ量Lsは、撮影レンズ51を通った光の結像位置が、予定焦点面と一致する場合(合焦時)には、所定値になる。
【0053】
また、位置ずれ量Lsは、撮影レンズ51を通った光の結像位置が、予定焦点面より前にある場合(前ピン時)には、前記所定値より小さくなり、予定焦点面より後ろにある場合(後ピン時)には大きくなる。
従って、イメージセンサ11及び12で検出される像に基づいて、撮影レンズ51の焦点の状態を検出できる。但し、イメージセンサ11及び12の検出範囲内において、被写体からの像の明るさの変化(コントラスト)が、X軸方向に関して十分になければならない。
【0054】
上記と同様に、イメージセンサ21及び22で検出される像に基づいて、撮影レンズ51の焦点の状態を検出できる。但し、イメージセンサ21及び22の検出範囲内において、被写体からの像の明るさの変化(コントラスト)が、Y軸方向に関して十分になければならない。
この例では、X軸方向に配置されたイメージセンサ11及び12と、Y軸方向に配置されたイメージセンサ21及び22が備わっているので、被写体がX軸とY軸の少なくとも一方の方向に対してコントラストを有する場合には、焦点の検出が可能である。
【0055】
イメージセンサ11及び12が検出する水平方向の領域Ahと、イメージセンサ21及び22が検出する垂直方向の領域Avは、図17に示すように、撮影画面のほぼ中央部に位置している。また、領域Ahと領域Avは、互いに一部分が重なるように配置してある。
なお、図1においては、焦点検出に関係のある部分のみが示されている。例えば、カメラの場合には、被写体からの光束は、撮影レンズ51を通った後、所定のファインダー光学系又はフィルム面に結像される。撮影レンズ51を通った光束の一部分のみが、図1に示すような焦点検出用光学系を通って、イメージセンサ11,12,21及び22に結像される。
【0056】
また、図示しないが、焦点位置の調節のために、撮影レンズ51には、それを光軸方向に移動する駆動装置が連結される。
次に、図2を参照して、焦点検出装置の電気回路について説明する。この例では、イメージセンサ11及び12及びセンサMaを検出ユニットU1とし、イメージセンサ21及び22とセンサMbを検出ユニットU2として、これらを区分してある。
【0057】
検出ユニットU1とU2を区分したのは、イメージセンサ11,12の蓄積時間T1と、イメージセンサ21,22の蓄積時間T2を独立に制御するためである。
イメージセンサ11,12,21及び22は、多数の受光部の各々について、外部からの信号によって制御される蓄積時間の間、受光強度に応じて発生する電荷を蓄積する。蓄積される電荷量は、蓄積時間の間の総受光量に相当する。
【0058】
被写体からの入射光の強度が小さすぎる(暗い)場合には、各受光部に蓄積される電荷量が小さくなるので、ノイズの影響が大きくなり、得られる信号レベルの画素間のコントラストが小さくなる。しかし、蓄積時間を長くすれば、蓄積される電荷量が増大し、信号レベルのコントラストも改善される。
また、被写体からの入射光の強度が大きすぎる場合には、各受光部に蓄積される電荷量が許容量を越えるので、正確な受光量が検出できなくなる。しかし、蓄積時間を短くすれば、蓄積される電荷量が許容量を越えるのを回避できる。
【0059】
従って、様々な条件の下で焦点の検出を可能にするには、蓄積時間を適正に制御する必要がある。蓄積時間を決定する方法としては、様々な方法が考えられる。しかし、何れの方法で蓄積時間を決定する場合でも、ある種の条件の下では、不具合が生じる可能性がある。
そこで、この例では、イメージセンサ11,12の蓄積時間T1と、イメージセンサ21,22の蓄積時間T2が、互いに異なる方法で決定される。そして、イメージセンサ11,12の蓄積時間T1と、イメージセンサ21,22の蓄積時間T2が互いに独立に制御される。
【0060】
従って、様々な条件の下で、検出ユニットU1を構成するイメージセンサ11,12の蓄積電荷量と、検出ユニットU2を構成するイメージセンサ21,22の蓄積電荷量の少なくとも一方は、適正に制御される可能性が高い。
つまり、検出ユニットU1,U2の一方で光量分布が検出できなくても、他方で検出した光量分布に基づいて、焦点の検出が可能である。
【0061】
図2に示すように、この焦点検出装置には、検出ユニットU1,U2,タイミング制御回路13,23,サンプリング回路14,24,光量検出回路15,25,A/D変換回路16,26,比較回路17,27,制御ユニット30,焦点検出スイッチ40及びモードスイッチSWが備わっている。
検出ユニットU1のイメージセンサ11,12は、タイミング制御回路13が出力する信号(複数)31によって制御される。信号31には、図3に示す蓄積制御信号,画素転送信号及びリセット信号が含まれている。
【0062】
イメージセンサ11,12の各受光部は、入射光の明るさに応じて発生する電荷を、蓄積制御信号が高レベルの期間、即ち図3の蓄積時間T1の間、蓄積する。従って、各受光部の蓄積電荷量は、入射光量と蓄積時間T1によって定まる。
蓄積制御が終了した後で、画素転送信号及びリセット信号を与えると、イメージセンサ11,12は、各受光部の蓄積電荷量に相当するアナログ画素信号を、1画素ずつ順次に出力する。出力されるアナログ画素信号群は、イメージセンサ11,12に入射した光束の光量分布を示す。
【0063】
イメージセンサ11,12が出力するアナログ画素信号は、サンプリング回路14によって、画素毎にサンプリングされる。サンプリングされたイメージセンサ11,12のアナログ画素信号は、それぞれ、A/D変換回路16に入力され、画素毎に、明るさが複数ピットで表現されたディジタル画素信号に変換される。このディジタル画素信号は、制御ユニット30に入力される。
【0064】
センサMaは、イメージセンサ11,12と同様に、入射光の明るさに応じて電荷を発生する。センサMaが発生する電荷は、光量検出回路15に蓄積される。光量検出回路15は、蓄積電荷量に比例する信号を出力する。
光量検出回路15の蓄積電荷量は、タイミング制御回路13が出力する信号31によって、前記蓄積時間T1の開始時に、リセットされる。つまり、光量検出回路15の蓄積電荷量は、イメージセンサ11,12が蓄積時間T1中に受光した光量に相当する。
【0065】
比較回路17は、光量検出回路15が検出した蓄積電荷量と、予め定めた閾値電圧Vxとを比較する。比較回路17の比較結果は、2値信号34として、タイミング制御回路13に印加される。
タイミング制御回路13が出力する蓄積制御信号の蓄積時間T1は、基本的に、制御ユニット30が出力する信号33によって決定される。但し、信号33の制御により、比較回路17が出力する2値信号34によって、蓄積時間T1を決定することもできる。
【0066】
比較回路17が出力する2値信号34で、蓄積時間T1を制御する場合には、センサMaの受光光量が閾値電圧Vxに相当する所定光量に達した時に、蓄積時間T1が終了し、タイミング制御回路13の出力する蓄積制御信号が、高レベルから低レベルに変化する。
検出ユニットU2のイメージセンサ21,22は、タイミング制御回路23が出力する信号(複数)35によって制御される。信号35には、図3に示す蓄積制御信号,画素転送信号及びリセット信号が含まれている。
【0067】
イメージセンサ21,22の各受光部は、入射光の明るさに応じて発生する電荷を、蓄積制御信号が高レベルの期間、即ち図3の蓄積時間T2の間、蓄積する。従って、各受光部の蓄積電荷量は、入射光量と蓄積時間T2によって定まる。
蓄積制御が終了した後で、画素転送信号及びリセット信号を与えると、イメージセンサ21,22は、各受光部の蓄積電荷量に相当するアナログ画素信号を、1画素ずつ順次に出力する。出力されるアナログ画素信号群は、イメージセンサ21,22に入射した光束の光量分布を示す。
【0068】
イメージセンサ21,22が出力するアナログ画素信号は、サンプリング回路24によって、画素毎にサンプリングされる。サンプリングされたイメージセンサ21,22のアナログ画素信号は、それぞれ、A/D変換回路26に入力され、画素毎に、明るさが複数ピットで表現されたディジタル画素信号に変換される。このディジタル画素信号は、制御ユニット30に入力される。
【0069】
センサMbは、イメージセンサ21,22と同様に、入射光の明るさに応じて電荷を発生する。センサMbが発生する電荷は、光量検出回路25に蓄積される。光量検出回路25は、蓄積電荷量に比例する信号を出力する。
光量検出回路25の蓄積電荷量は、タイミング制御回路23が出力する信号35によって、前記蓄積時間T2の開始時に、リセットされる。つまり、光量検出回路25の蓄積電荷量は、イメージセンサ21,22が蓄積時間T2中に受光した光量に相当する。
【0070】
比較回路27は、光量検出回路25が検出した蓄積電荷量と、予め定めた閾値電圧Vxとを比較する。比較回路27の比較結果は、2値信号38として、タイミング制御回路23に印加される。
タイミング制御回路23が出力する蓄積制御信号の蓄積時間T2は、基本的に、制御ユニット30が出力する信号37によって決定される。但し、信号37の制御により、比較回路27が出力する2値信号38によって、蓄積時間T2を決定することもできる。
【0071】
比較回路27が出力する2値信号38で、蓄積時間T2を制御する場合には、センサMbの受光光量が閾値電圧Vxに相当する所定光量に達した時に、蓄積時間T2が終了し、タイミング制御回路23の出力する蓄積制御信号が、高レベルから低レベルに変化する。
【0072】
制御ユニット30に接続されたモードスイッチSWは、6つの接点を有している。手操作でモードスイッチSWを切り替えることにより、モード1,モード2,モード3,モード4,モード5及びモード6の何れかを選択できる。これらのモードは、前記蓄積時間T1,T2の決定処理の組み合わせの種別を示す。
制御ユニット30に接続された焦点検出スイッチ40は、焦点検出動作のオン/オフを切り替えるために備わっている。
【0073】
制御ユニット30は、ROM,RAM,タイマなどを含むマイクロコンピュータを内蔵している。また、撮影レンズ51の位置を光軸に沿って移動する駆動回路や表示回路も内蔵している。
制御ユニット30のマイクロコンピュータによって実行される、処理の概略を図4に示す。図4に示す各処理ステップの内容について、以下に説明する。装置(カメラなど)の主電源が投入されると、最初にステップS1を実行する。
【0074】
ステップS1では、装置全体の初期化を実行する。例えば、撮影レンズ駆動用のモータを停止し、表示をクリアし、内部メモリの内容をクリアする。また、内部メモリ上に割り当てたカウンタCNTに、1をプリセットする。
ステップS2では、焦点検出スイッチ40の状態を調べ、焦点検出指示のオン/オフを識別する。焦点検出スイッチ40がオフの場合、ステップS1,S2を繰り返す。焦点検出スイッチ40がオンなら、次のステップS3に進む。
【0075】
ステップS3では、モードスイッチSWの状態を読み取って、現在のモードを調べる。
ステップS4では、イメージセンサ11,12の蓄積時間T1を決定するための処理を実行する。この処理の詳細は、図5に示されている。図5の内容については、後で説明する。
【0076】
ステップS5では、イメージセンサ21,22の蓄積時間T2を決定するための処理を実行する。この処理の詳細は、図6に示されている。図6の内容については、後で説明する。
ステップS6では、イメージセンサ11,12,21及び22の各々が電荷蓄積を開始するように制御する。即ち、信号33を操作して、タイミング制御回路13及び23を制御し、図3に示す蓄積制御信号を低レベルから高レベルに切り替える。電荷蓄積を開始してからの経過時間を計数するように、内部タイマをセットする。
【0077】
ステップS7では、内部タイマの計数値を調べて、電荷蓄積を開始してからの経過時間がT1,T2の何れかに到達したか否かを調べる。経過時間がT1又はT2の時には、ステップS8に進む。
ステップS8では、イメージセンサ11,12,21及び22に対する電荷蓄積の終了制御を実施する。即ち、内部タイマの計数値が、蓄積時間T1と一致する場合には、信号33を操作して、タイミング制御回路13を制御し、イメージセンサ11及び12に印加される蓄積制御信号を、高レベルから低レベルに切り替える。
【0078】
また、内部タイマの計数値が、蓄積時間T2と一致する場合には、信号37を操作して、タイミング制御回路23を制御し、イメージセンサ21及び22に印加される蓄積制御信号を、高レベルから低レベルに切り替える。
なお、比較回路17の2値信号34による蓄積時間制御を優先する動作モードでは、タイミング制御回路13に対するステップS8の動作は無効である。同様に、比較回路27の2値信号38による蓄積時間制御を優先する動作モードでは、タイミング制御回路23に対するステップS8の動作は無効である。
【0079】
ステップS9では、イメージセンサ11及び12に対する蓄積終了制御と、イメージセンサ21及び22に対する蓄積終了制御が共に完了したか否かを調べる。内部タイマの計数値が、T1,T2の何れよりも大きい場合には、蓄積終了制御が完了しているので、ステップS10に進む。
【0080】
ステップS10では、イメージセンサ11の各受光部に蓄積された信号,イメージセンサ12の各受光部に蓄積された信号,イメージセンサ21の各受光部に蓄積された信号及びイメージセンサ22の各受光部に蓄積された信号を、それぞれ順次に読み取る。
即ち、制御ユニット30は、信号33を操作してタイミング制御回路13を制御し、図3に示す画素転送信号及びリセット信号をイメージセンサ11及び12に与える。また、サンプリング信号をサンプリング回路14に与え、A/D変換開始信号をA/D変換回路16に与える。
【0081】
この制御によって、イメージセンサ11及び12の各受光部から読み出される信号は、1画素ずつ順次に、サンプリング回路14及びA/D変換回路16を介して、ディジタル画素信号に変換される。A/D変換が終了する度に、変換されたディジタル画素信号は、制御ユニット30に読み取られる。
また、制御ユニット30は、信号37を操作してタイミング制御回路23を制御し、図3に示す画素転送信号及びリセット信号をイメージセンサ21及び22に与える。また、サンプリング信号をサンプリング回路24に与え、A/D変換開始信号をA/D変換回路26に与える。
【0082】
この制御によって、イメージセンサ21及び22の各受光部から読み出される信号は、1画素ずつ順次に、サンプリング回路24及びA/D変換回路26を介して、ディジタル画素信号に変換される。A/D変換が終了する度に、変換されたディジタル画素信号は、制御ユニット30に読み取られる。
制御ユニット30は、イメージセンサ11,12,21及び22から読み取ったディジタル画素信号列を、内部メモリ上の予め定めた領域に記憶する。
【0083】
ステップS11では、上記ステップS10の処理によって内部メモリ上に記憶された、ディジタル画素信号列のデータを参照し、最大値Vm1,Vm2を検出する。
【0084】
最大値Vm1は、イメージセンサ11及び12から得られたディジタル画素信号列の中で、明るさが最大の画素の値(信号レベル)である。また、最大値Vm2は、イメージセンサ21及び22から得られたディジタル画素信号列の中で、明るさが最大の画素の値である。
最大値Vm1は、イメージセンサ11及び12の蓄積電荷量(実績)の基準として利用される。また、最大値Vm2は、イメージセンサ21及び22の蓄積電荷量の基準として利用される。
【0085】
ステップS12では、上記ステップS10の処理によって内部メモリ上に記憶された、ディジタル画素信号列のデータに基づいて、焦点検出処理を実行する。また、カウンタCNTの値は、ステップS12を実行する毎に更新される。この焦点検出処理の詳細は、図12に示されている。これについては、後で詳細に説明する。
【0086】
ステップS13では、ステップS12で検出された焦点の状態に基づいて、合焦でなければ、合焦位置に近づくように、撮影レンズ51を移動する。また、合焦か否かに応じて、合焦表示のオン/オフを制御する。
焦点検出スイッチ40がオンの時には、上記ステップS2〜S13の処理が繰り返し実行される。
【0087】
ステップS4の「蓄積時間T1決定」処理では、図5に示すように、モードスイッチSWによって選択されたモードに応じた処理が実行される。即ち、モード1又はモード2の場合には、ステップS20を通ってステップS23が実行される。
モード3又はモード4の場合には、ステップS20,S21を通って、ステップS24が実行される。モード5又はモード6の場合には、ステップS20,S21,S22を通って、ステップS25が実行される。
【0088】
ステップS23の「時間決定A1」,ステップS24の「時間決定A2」及びステップS25の「時間決定A3」は、いずれも蓄積時間T1を決定するための処理である。つまり、モードスイッチSWによって選択されるモードの違いに応じて、蓄積時間T1を決定する処理の内容が変更される。
ステップS23の「時間決定A1」,ステップS24の「時間決定A2」及びステップS25の「時間決定A3」の処理の内容は、それぞれ、図7,図8及び図9に示されている。
【0089】
図7に示すように、「時間決定A1」の処理では、ステップS31が実行される。このステップS31では、センサMaの出力に応じて蓄積時間T1を決定する。つまり、制御ユニット30は、タイミング制御回路13に与える信号33を制御して、比較回路17が出力する2値信号34の制御を優先させる。
従って、この場合には、イメージセンサ11及び12の蓄積終了タイミングは、2値信号34によって制御される。即ち、蓄積時間T1は、センサMaの実際の受光光量と、閾値電圧Vxにより定まる。
【0090】
また、制御ユニット30は、2値信号34のレベルが切り替わるタイミングを検出して、実際の蓄積時間T1を把握する。この蓄積時間T1は、実績情報Tp1として、内部メモリに記憶される。
一方、「時間決定A2」の処理では、初回を除き、図8に示すステップS33によって、蓄積時間T1が決定される。即ち、蓄積時間T1は次式により決定される。
【0091】
T1=Tp1・Lr/Vm1 ・・・(2)
Tp1:前回制御時の蓄積時間T1(実績値)
Lr:イメージセンサ11,12の画素信号の目標レベル
Vm1:ステップS11で得られる最大値
この処理では、実際のイメージセンサ11,12の電荷蓄積量(実績)に基づいて蓄積時間T1が決定されるので、より高い精度で蓄積時間T1を制御できる。被写体の明るさの変化に対する蓄積時間T1の応答速度については、ステップS31と比べると、1制御周期だけ遅くなる。
【0092】
なお、初回の制御では、実績情報Tp1及び最大値Vm1が存在しないので、ステップS33の計算を実行できない。従って、カウンタCNTが1の場合には、ステップS32を通ってステップS34に進む。
ステップS34の内容は、前記ステップS31と同一である。つまり、センサMaの出力に応じて蓄積時間T1を決定する。
【0093】
次に、「時間決定A3」の処理について、図9を参照して説明する。カウンタCNTが1の場合、即ち初回は、計算に必要な情報が存在しないので、ステップS50からS57に進む。この場合には、前記ステップS31と同様に、センサMaの出力に応じて蓄積時間T1を決定する。
初回以外は、ステップS50からS51に進む。図9の処理においては、過去N回の互いに異なる時点における蓄積時間T1を記憶するために、N個のメモリPT[1]〜PT[N]を使用する。メモリPT[1]には最も新しい蓄積時間T1を記憶し、メモリPT[N]には最も古い蓄積時間T1を記憶する。
【0094】
新しい蓄積時間T1を記憶する領域を確保するために、ステップS51では、メモリPT[i]のデータをPT[i+1]に転送する(i=N−1,N−2,・・・3,2,1)。これによって、最も古いメモリPT[N]のデータは更新され、メモリPT[1]〜PT[N−1]のデータは位置がシフトされる。
ステップS52では、前記第2式を用いて計算を実施して蓄積時間T1を求める。つまり、前回の実績である蓄積時間Tp1及び最大値Vm1と、目標レベルLrに基づいて、蓄積時間T1を求める。求めた蓄積時間T1は、メモリPT[1]に記憶する。
【0095】
ステップS53では、カウンタCNTの値を定数Nと比較する。つまり、N個の実績情報がメモリPT[1]〜PT[N]上に揃ったか否かを識別する。カウンタCNTの値が定数Nを越えている場合には、ステップS55に進み、そうでなければステップS54に進む。
【0096】
ステップS54では、N個の実績情報が揃っていないので、カウンタCNTの値から1を引いた値を、有効な実績情報の数として、レジスタSに記憶する。
ステップS55では、N個の実績情報が揃っているので、カウンタCNTの値を、有効な実績情報の数として、レジスタSに記憶する。
ステップS56では、メモリPT[1]〜PT[N]上の蓄積時間T1の実績情報のうち有効なデータについて、それらの平均値を、今回の蓄積時間T1として計算する。この蓄積時間T1は、実績情報Tp1としてメモリに記憶する。
【0097】
つまり、「時間決定A3」の処理では、制御周期のN倍に相当する計算期間の平均値として、蓄積時間T1が決定される。定数Nは、例えば、前記計算期間が100msec〜200msecになるように、2〜4程度に定められる。
図4のステップS5の「蓄積時間T2決定」処理では、図6に示すように、モードスイッチSWによって選択されたモードに応じた処理が実行される。即ち、モード1,3又は5の場合には、ステップS26を通ってステップS28が実行される。モード2,4又は6の場合には、ステップS26,S27を通って、ステップS29が実行される。
【0098】
ステップS28の「時間決定B1」及びステップS29の「時間決定B2」は、いずれも蓄積時間T2を決定するための処理である。つまり、モードスイッチSWによって選択されるモードの違いに応じて、蓄積時間T2を決定する処理の内容が変更される。
従って、モード1の場合には、「時間決定A1」と「時間決定B1」の組み合わせが選択される。モード2の場合には、「時間決定A1」と「時間決定B2」の組み合わせが選択される。モード3の場合には、「時間決定A2」と「時間決定B1」の組み合わせが選択される。
【0099】
モード4の場合には、「時間決定A2」と「時間決定B2」の組み合わせが選択される。モード5の場合には、「時間決定A3」と「時間決定B1」の組み合わせが選択される。モード6の場合には、「時間決定A3」と「時間決定B2」の組み合わせが選択される。
ステップS28の「時間決定B1」及びステップS29の「時間決定B2」の処理の内容は、それぞれ、図10及び図11に示されている。
【0100】
次に、「時間決定B1」の処理について、図10を参照して説明する。カウンタCNTが1の場合、即ち初回は、計算に必要な情報が存在しないので、ステップS40からS48に進む。
ステップS48では、センサMbの出力に応じて蓄積時間T2を決定する。つまり、制御ユニット30は、タイミング制御回路23に与える信号37を制御して、比較回路27が出力する2値信号38の制御を優先させる。
【0101】
従って、この場合には、イメージセンサ21及び22の蓄積終了タイミングは、2値信号38によって制御される。即ち、蓄積時間T2は、センサMbの実際の受光光量と、閾値電圧Vxにより定まる。
また、制御ユニット30は、2値信号38のレベルが切り替わるタイミングを検出して、実際の蓄積時間T2を把握する。この蓄積時間T2は、実績情報Tp2として、内部メモリに記憶される。
【0102】
カウンタCNTが1の場合には、まだ焦点の状態が検出されていないので、ステップS49では、合焦フラグFinをクリアする。
カウンタCNTが1でなければ、ステップS40からS41に進む。ステップS41では、最終デフォーカス量DfLが、予め定めた所定範囲内にあるか否かを識別する。つまり、合焦状態か否かを識別する。最終デフォーカス量DfLは、ステップS12の「焦点検出処理」で得られる。
【0103】
焦点検出が不可能な状態では、最終デフォーカス量DfLに有効な値がセットされない。その場合には、最終デフォーカス量DfLが範囲外、即ち合焦でないとみなす。
合焦状態でなければ、ステップS41からS42に進む。合焦状態ならステップS41からS46に進む。
【0104】
ステップS42では、合焦フラグFinの状態を調べる。合焦が検出された後でなければ、合焦フラグFinはクリアされているので、ステップS42からS45に進む。合焦フラグFinがセットされている場合には、ステップS42からS43に進む。
ステップS43では、内部タイマで計数される時間Tdを、予め定めた閾値Tthと比較する。時間Tdは、合焦状態が検出されなくなってからの経過時間を示す。時間Tdが閾値Tthより大きい場合には、ステップS43からS44に進む。時間Tdが閾値Tth以内なら、蓄積時間T2を更新せずに、図10の処理を終了する。
【0105】
ステップS44では、時間Tdが閾値Tthより大きいので、合焦フラグFinをクリアする。
ステップS45では、次式に基づいて蓄積時間T2を決定する。
T2=Tp2・Lr/Vm2 ・・・(3)
Tp2:前回制御時の蓄積時間T2(実績値)
Lr:イメージセンサ21,22の画素信号の目標レベル
Vm2:ステップS11で得られる最大値
また、ステップS45では、求めた蓄積時間T2を、実績情報Tp2として記憶する。
【0106】
ステップS46では、最終デフォーカス量DfLが所定範囲内なので、合焦フラグFinをセットする。
ステップS47では、合焦状態が検出されているので、時間Tdを計数するタイマの計数値をクリアする。
【0107】
図10の処理においては、合焦状態では、ステップS45を実行しないので、蓄積時間T2の更新が停止する。つまり、蓄積時間T2は、非合焦から合焦状態に変化したときの、過去の蓄積時間(実績値)T2に固定される。
また、最終デフォーカス量DfLが所定範囲を外れても、合焦フラグFinが1である間は、ステップS45を実行しないので、蓄積時間T2は変化しない。但し、非合焦になってからの経過時間が閾値Tthを越えると、ステップS43からS44に進み、合焦フラグFinがクリアされるので、次のステップS45で、蓄積時間T2が更新される。
【0108】
次に、「時間決定B2」の処理について、図11を参照して説明する。カウンタCNTが1の場合、即ち初回は、計算に必要な情報が存在しないので、ステップS60からS67に進む。
ステップS67では、上記ステップS48と同様に、センサMbの出力に応じて蓄積時間T2を決定する。つまり、制御ユニット30は、タイミング制御回路23に与える信号37を制御して、比較回路27が出力する2値信号38の制御を優先させる。
【0109】
カウンタCNTが1でなければ、ステップS60からS61に進む。図11の処理においては、過去K回の互いに異なる時点における蓄積時間T2を記憶するために、K個のメモリPT2[1]〜PT2[K]を使用する。メモリPT2[1]には最も新しい蓄積時間T2を記憶し、メモリPT2[K]には最も古い蓄積時間T2を記憶する。
【0110】
新しい蓄積時間T2を記憶する領域を確保するために、ステップS61では、メモリPT2[i]のデータをPT2[i+1]に転送する(i=K−1,K−2,・・・3,2,1)。これによって、最も古いメモリPT[K]のデータは更新され、メモリPT[1]〜PT[K−1]のデータは位置がシフトされる。
ステップS62では、前記第3式を用いて計算を実施して蓄積時間T2を求める。つまり、前回の実績である蓄積時間Tp2及び最大値Vm2と、目標レベルLrに基づいて、蓄積時間T2を求める。求めた蓄積時間T2は、メモリPT2[1]に記憶する。
【0111】
ステップS63では、カウンタCNTの値を定数Kと比較する。つまり、K個の実績情報がメモリPT2[1]〜PT2[K]上に揃ったか否かを識別する。カウンタCNTの値が定数Kを越えている場合には、ステップS65に進み、そうでなければステップS64に進む。
ステップS64では、K個の実績情報が揃っていないので、カウンタCNTの値から1を引いた値を、有効な実績情報の数として、レジスタSに記憶する。
【0112】
ステップS65では、K個の実績情報が揃っているので、カウンタCNTの値を、有効な実績情報の数として、レジスタSに記憶する。
ステップS66では、メモリPT2[1]〜PT2[K]上の蓄積時間T2の実績情報のうち有効なデータについて、それらの平均値を、今回の蓄積時間T2として計算する。この蓄積時間T2は、実績情報Tp2としてメモリに記憶する。
【0113】
つまり、「時間決定B2」の処理では、制御周期のK倍に相当する計算期間の平均値として、蓄積時間T2が決定される。定数Kは、例えば、前記計算期間が700msec程度になるように、5〜14に定められる。
モードスイッチSWによってモード6が選択された場合には、図9に示す「時間決定A3」処理によって蓄積時間T1が決定され、図11に示す「時間決定B2」処理によって蓄積時間T2が決定される。
【0114】
「時間決定A3」と「時間決定B2」は、いずれも過去の互いに異なる時点で得られた複数の実績情報の平均に基づいて、蓄積時間T1又はT2を決定する。しかし、「時間決定A3」の定数Nと「時間決定B2」の定数Kの値は互いに異なる。
従って、被写体の明るさの変化に対する応答特性も、蓄積時間T1と蓄積時間T2とで異なる。つまり、蓄積時間T1の応答は比較的速く、蓄積時間T2の応答は比較的遅い。
【0115】
モードスイッチSWによって、モード1,モード2,モード3,モード4,モード5及びモード6のいずれを選択する場合であっても、蓄積時間T1を決定する処理と、蓄積時間T2を決定する処理とが互いに異なる。
このため、被写体の明るさの変化に対して、蓄積時間T1の応答は比較的速く、蓄積時間T2の応答は比較的遅くなる。従って、イメージセンサ11及び12の電荷蓄積状態とイメージセンサ21及び22の電荷蓄積状態は、互いに異なる。
【0116】
次に、図12に示す「焦点検出処理」の各ステップについて説明する。
ステップS69では、カウンタCNTの値に1を加算してCNTを更新する。なお、カウンタCNTの値が所定の上限値に達すると、ステップS69の処理は省略される。
ステップS70では、イメージセンサ11及び12によって得られたディジタル画素信号列に基づいて、デフォーカス量DF1を算出する。デフォーカス量は、合焦状態に対する撮影レンズ51の位置ずれ量及び方向を意味する。ステップS70の処理の詳細は、図13に示されている。
【0117】
図13のステップS80では、イメージセンサ11によって得られた画素信号列Vaとイメージセンサ12によって得られた画素信号列Vbとの相関量C[L]を求める。
イメージセンサ11の画素信号列Vaとイメージセンサ12の画素信号列Vbは、例えば、図14に示すように、それぞれが被写体からの入射光の強度分布を示す。
【0118】
画素信号列Va,Vbを、図14に示す所定距離Lsだけ横軸方向に相対的にずらすと、画素信号列Va,Vbの相関は非常に大きくなる。また、画素信号列Va,Vbの相関量C[L]は、図15に示すように、画素信号列Va,Vbの相対シフト量Lに応じて変化する。
【0119】
デフォーカス量は、図14に示す距離Ls、即ち、図15に示す相関量C[L]が最小になるシフト量Lから求められる。
ステップS80においては、イメージセンサ11によって得られた画素信号列Vaの(i+L)番目の位置の画素データ(a[i+L])とイメージセンサ12によって得られた画素信号列Vbのi番目の位置の画素データ(b[i])との差分を計算する。この差分の絶対値を、kからrまでの範囲のiについて加算し、総和を相関量C[L]として求める。
【0120】
シフト量Lは、−LmaxからLmaxの範囲で順次に変更し、各々のシフト量Lについて相関量C[L]をそれぞれ求める。Lmaxは、予め定められる最大シフト量である。
ステップS80のiの範囲を定めるk,rは、各々次のように、シフト量Lに応じて決定される。
【0121】
L≧0の場合:
k=k0+INT(−L/2) ・・・(4)
r=r0+INT(−L/2) ・・・(5)
L<0の場合:
k=k0+INT(−(L+1)/2) ・・・(6)
r=r0+INT(−(L+1)/2) ・・・(7)
但し、k0及びr0は、それぞれシフト量Lが0の場合のk及びrである。また、INT()は、括弧内の数値の絶対値を示す。
【0122】
ステップS80において、相関を調べる画素の組み合わせの範囲は、例えば図18に示すように、シフト量Lに応じて変化する。
ステップS80の処理によって、図15に示すように、相関量C[L]とシフト量Lの関係が求められる。図15に示すように、相関量C[L]は離散的な値である。従って、相関量C[L]が最小になるシフト量から、直接デフォーカス量を求める場合には、画素ピッチが大きいと、正確なデフォーカス量が得られない。
【0123】
より正確なデフォーカス量を求めるために、ステップS81,S82,S83及びS84の処理が実施される。
ステップS81では、まず、図16に示すように、相関量C[L]が最小になるシフト量Leを求める。そして、シフト量Leに隣接する2つの位置の相関量(C[L−1])と(C[L+1])との差分の半分を、DLとして得る。
【0124】
ステップS82では、相関量C[L]の最小値であるC[Le]から、ステップS81で求めたDLの絶対値を減算した結果を、相関量の真の極小値Cexとして求める。
ステップS83では、相関量C[L]の特性の傾きEを次式により求める。
E=Max(C[Le+1]−C[Le],C[Le-1]−C[Le]) ・・・(8)
なお、Max()は、括弧内の複数要素のうち、値が大きい方を選択することを意味する。
【0125】
ステップS84では、前記Le,DL,Eに基づいて、画素信号列Va,Vbの相関量C[L]が最小になる正確なシフト量Lsを、次式により求める。
Ls=Le+DL/E ・・・(9)
ステップS85では、イメージセンサ11及び12によって得られたデフォーカス量DF1を次式によって求める。
【0126】
DF1=Kf・Ls ・・・(10)
ここで、Kfは、図1に示す光学系の特性と、イメージセンサ11及び12の画素ピッチの大きさによって定まる定数である。
ステップS85で得られたデフォーカス量DF1は、ノイズ等によって相関量に生じた揺らぎの影響を受けている可能性もある。そこで、次のステップS86及びS87で、デフォーカス量DF1の信頼度を調べる。
【0127】
ステップS86では、ステップS83で求めた相関量の傾きEを、予め定めた閾値E1と比較する。傾きEは、イメージセンサ11及び12によって得られた画素信号列のコントラストに依存する。即ち、傾きEが大きいほど、コントラストが大きく、信頼度が高いと考えられる。
傾きEが閾値E1より大きい場合には、信頼度が高いとみなし、ステップS87に進む。傾きEが閾値E1以下なら、ステップS89に進む。
【0128】
ステップS87では、ステップS82で求めた極小値CexとステップS83で求めた傾きEを用いて、係数(Cex/E)を計算する。この係数を予め定めた閾値G1とを比較する。
極小値Cexは、理想的には0になる。しかし実際には、ノイズの影響や、撮影レンズ51の領域の違いによって生じる視差の影響を受けるので、極小値Cexは0より大きくなる。また、ノイズや視差の影響は、被写体のコントラストが高いほど小さくなる。そこで、係数(Cex/E)を用いて信頼度を調べる。
【0129】
そこで、係数(Cex/E)が閾値G1より小さい場合には、信頼度が高いとみなし、ステップS88に進む。係数(Cex/E)が閾値G1以上なら、ステップS89に進む。
なお、イメージセンサ11及び12の何れか一方により得られる、画素信号列のコントラストに基づいて、信頼度を識別することもできる。
【0130】
ステップS88では、ステップS85で得られたデフォーカス量DF1の信頼度が高いとみなし、信頼度フラグFG1をセットする。
ステップS89では、ステップS85で得られたデフォーカス量DF1の信頼度が低いとみなし、信頼度フラグFG1をクリアする。
図12のステップS71では、イメージセンサ21及び22によって得られたディジタル画素信号列に基づいて、デフォーカス量DF2を算出する。この処理の内容は、次の点を除き、図13の処理と同様である。
【0131】
ステップS80で処理される画素信号列(a[i+L],b[i])は、イメージセンサ21及び22によって得られたデータに変更される。ステップS85で算出されるデフォーカス量は、DF2として保存される。ステップS88及びS89の信頼度フラグFG1の代わりに、信頼度フラグFG2が操作される。
ステップS72では、前記信頼度フラグFG1の状態を調べて、デフォーカス量DF1の信頼度を識別する。即ち、信頼度フラグFG1がセットされている場合には、デフォーカス量DF1の信頼度が高いので、ステップS73に進む。信頼度フラグFG1がクリアされている場合には、デフォーカス量DF1の信頼度が低いので、ステップS77に進む。
【0132】
ステップS73では、前記信頼度フラグFG2の状態を調べて、デフォーカス量DF2の信頼度を識別する。即ち、信頼度フラグFG2がセットされている場合には、デフォーカス量DF2の信頼度が高いので、ステップS75に進む。信頼度フラグFG2がクリアされている場合には、デフォーカス量DF2の信頼度が低いので、ステップS74に進む。
【0133】
ステップS74では、デフォーカス量DF2よりもデフォーカス量DF1の方が信頼度が高いので、デフォーカス量DF1を最終デフォーカス量DfLとして保存する。
ステップS75では、デフォーカス量DF1とデフォーカス量DF2を比較する。この場合には、信頼度フラグFG1,FG2が共にセットされているので、デフォーカス量DF1とデフォーカス量DF2は、いずれも信頼度が高い。しかし、この例では、DF1,DF2の何れか小さい方が、より信頼度が高いとみなす。つまり、DF1,DF2のうち、合焦状態により近い方を選択する。
【0134】
デフォーカス量DF1がデフォーカス量DF2より小さい場合には、ステップS74に進む。デフォーカス量DF1がデフォーカス量DF2以上の場合には、ステップS76に進む。
【0135】
ステップS76では、デフォーカス量DF1よりもデフォーカス量DF2の方が信頼度が高いので、デフォーカス量DF2を最終デフォーカス量DfLとして保存する。
ステップS77では、前記信頼度フラグFG2の状態を調べて、デフォーカス量DF2の信頼度を識別する。即ち、信頼度フラグFG2がセットされている場合には、デフォーカス量DF2の信頼度が高いので、ステップS76に進む。信頼度フラグFG2がクリアされている場合には、デフォーカス量DF2の信頼度が低いので、ステップS78に進む。
【0136】
ステップS78では、デフォーカス量DF1,DF2共に、信頼度が低いので、最終デフォーカス量DfLに無効データを記憶する。
(第2の実施の形態)
この形態における焦点検出装置の、光学系の構成を図19に示す。また、撮影画面中の焦点検出領域を図20に示す図示しない部分の構成及び動作については、前記第1の実施の形態と同様である。また、図19において、第1の実施の形態と同一の要素には、同一の符号を付けてある。
【0137】
図19を参照して説明する。第1の実施の形態と同様に、撮影レンズ51の光軸上には、視野マスク52B,フィールドレンズ53,絞り54B,再結像レンズ55B及び検出基板56Bが配置されている。
視野マスク52B,絞り54B及び再結像レンズ55Bは、開口部の形状や位置が、第1の実施の形態の対応する要素と多少異なっている。
【0138】
検出基板56B上の4つのイメージセンサ11,12,21及び22は、配置が第1の実施の形態と異なっている。即ち、第1組のイメージセンサ11,12と第2組のイメージセンサ21,22は、受光部の並び方向が共に水平方向(X方向)に向けてある。また、2つのイメージセンサ11及び12は、互いに近い位置に、上下に並べて配置してある。
【0139】
このため、第1組のイメージセンサ11,12の検出対象となる領域A1と、第2組のイメージセンサ21,22の検出対象となる領域A2は、図20に示すように、互いに近接しているが、上下に多少ずれた位置に配置される。
また、受光光量を検出するために1つのセンサMaだけを、イメージセンサ11の近傍に配置してある。第2組のイメージセンサ21,22の受光光量も、センサMaによって検出される。
【0140】
なお、第1及び第2の実施の形態では、イメージセンサ11,12,21及び22の受光光量を検出するために、センサMa,Mbを設けているが、センサMa,Mbの代わりに特別な光量測定装置を用いても良い。
また、前記モード1及びモード2を使用しない場合には、センサMa,Mbの設置を省略しても良い。その場合、実績情報が存在しないとき、つまりカウンタCNTが1の時には、予め定めた定数を蓄積時間T1,T2としてセットすれば良い。
【0141】
上記第1の実施の形態では、複数の蓄積時間設定モードを備えて、何れかのモードを選択する機能を設けてある。しかし本発明は、これに限定されず、少なくとも1つのモードを有していればよい。
【0142】
【発明の効果】
(請求項1)
本発明では、被写体の明るさの変化に対する応答速度が、第1の電荷蓄積時間は比較的速く、第2の電荷蓄積時間は比較的遅いので、様々な状況において、第1の電荷蓄積時間と第2の電荷蓄積時間の少なくとも一方は、適切な状態に定められる。
【0143】
従って、第1の受光手段の蓄積電荷量と第2の受光手段の蓄積電荷量の何れか一方は適正になり、焦点検出手段は、前記第1の受光手段と第2の受光手段の少なくとも一方が出力する信号に基づいて、常に前記撮影光学系の焦点状態を正しく検出できる可能性が高い。
(請求項2)
本発明では、変化の速い前記光の強度変化には追従しないように、前記第2の電荷蓄積時間が制御される。従って、例えば、被写体の近傍を通り過ぎる高輝度障害物などの影響を受けにくくなる。
【0144】
(請求項3)
本発明では、前記第1時点と第2時点の間に、被写体の輝度に大きな変化が生じた場合、前記第2の受光手段の蓄積電荷量は、変化前の輝度に基づいて制御され、前記第1の受光手段の蓄積電荷量は、変化後の輝度に基づいて制御される。このため、前記第1の受光手段及び第2の受光手段の少なくとも一方は、蓄積電荷量が適正に制御される。
【0145】
従って、被写体の輝度が大きく変動する場合であっても、前記第1の受光手段及び第2の受光手段の少なくとも一方の出力する信号に基づいて、焦点の状態を正しく検出できる可能性が高い。
(請求項4)
被写体の明るさの変化に対する応答速度が、第1の電荷蓄積時間は比較的速く、第2の電荷蓄積時間は比較的遅くなる。従って、様々な状況において、前記第1の受光手段及び第2の受光手段の少なくとも一方の蓄積電荷量が適正になる。
【0146】
(請求項5)
この発明では、第1の電荷蓄積時間よりも短い周期で、被写体の明るさが変動する場合でも、それに追従するように、第1の電荷蓄積時間を制御できる。従って、前記第1の受光手段の蓄積電荷量が適正になる可能性が高い。
(請求項6)
この発明では、例えば被写体の近傍を高輝度障害物が通過する場合でも、合焦後は、被写体の輝度に基づいて第2の受光手段の蓄積電荷量が決定される。従って、前記第2の受光手段の蓄積電荷量が適正になる可能性が高い。
【0147】
請求項
本発明では、前記第1の受光手段の出力信号と前記第2の受光手段の出力信号とを切り替えて、焦点の状態を検出しても、検出される焦点の状態が大きく変動することがない。
【0148】
(請求項
本発明では、前記第1の受光手段の出力信号と前記第2の受光手段の出力信号とを切り替えて、焦点の状態を検出しても、検出される焦点の状態が大きく変動することがない。
(請求項
本発明では、水平方向のみに輝度変化のある被写体と、垂直方向にのみ輝度変化のある被写体の何れであっても、前記第1の受光手段及び前記第2の受光手段の何れか一方の出力に基づいて、焦点の状態を検出できる。
【0149】
(請求項10
本発明では、前記焦点検出手段が、第1のデフォーカス量の信頼度と第2のデフォーカス量の信頼度に基づいて、撮影光学系の焦点状態を検出するので、検出される焦点の状態の信頼度を、より高めることができる。
(請求項11
本発明では、スイッチ手段により、前記第1の電荷蓄積時間を決定する処理と前記第2の電荷蓄積時間を決定する処理との組み合わせを、複数の中から選択的に切り替えることができる。従って、様々な状況において、第1の受光手段の蓄積電荷量と第2の受光手段の蓄積電荷量が適正に制御される。
【図面の簡単な説明】
【図1】焦点検出装置の光学系の構成を示す分解斜視図である。
【図2】図1の光学系を備える焦点検出装置の電気回路を示すブロック図である。
【図3】図2の焦点検出装置における主要な信号タイミングの例を示すタイミングチャートである。
【図4】図2の制御ユニット30の動作の概略を示すフローチャートである。
【図5】図4のステップS4の詳細を示すフローチャートである。
【図6】図4のステップS5の詳細を示すフローチャートである。
【図7】図5のステップS23の詳細を示すフローチャートである。
【図8】図5のステップS24の詳細を示すフローチャートである。
【図9】図5のステップS25の詳細を示すフローチャートである。
【図10】図6のステップS28の詳細を示すフローチャートである。
【図11】図6のステップS29の詳細を示すフローチャートである。
【図12】図4のステップS12の詳細を示すフローチャートである。
【図13】図12のステップS70及びS71の詳細を示すフローチャートである。
【図14】互いに異なる経路を通る光を検出して得た2つの1次元画像信号Va,Vbの分布を示すグラフである。
【図15】2つの1次元画像信号Va,Vbの相関量を示すグラフである。
【図16】図15の一部分の詳細を示すグラフである。
【図17】撮影画面中の焦点検出領域を示す正面図である。
【図18】相関量を算出する際に参照される、2つの1次元画像信号Va,Vbの画素の組み合わせを示す模式図である。
【図19】第2の実施の形態における焦点検出装置の、光学系を示す平面図である。
【図20】第2の実施の形態における撮影画面中の焦点検出領域を示す正面図である。
【符号の説明】
11,12,21,22 イメージセンサ
13,23 タイミング制御回路
14,24 サンプリング回路
15,25 光量検出回路
16,26 A/D変換回路
17,27 比較回路
30 制御ユニット
31,32,33,34,35,36,37,38 信号線
40 焦点検出スイッチ
51 撮影レンズ
52,52B 視野マスク
53 フィールドレンズ
54,54B 絞り
55,55B 再結像レンズ
56,56B 検出基板
Ma,Mb センサ
SW モードスイッチ
U1,U2 検出ユニット
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a focus detection device mounted on, for example, a camera, a digital still camera, a video camera, or the like.
[0002]
[Prior art]
In general, in a focus detection apparatus, a focus state is detected based on a light amount distribution state of incident light incident through a photographing optical system and passing through one or a plurality of paths.
In order to detect the incident light amount distribution, a part of the subject image incident through the photographing optical system is guided to the light receiving device. As the light receiving device, one or two one-dimensional image sensors are usually used.
[0003]
There are several types of methods for detecting the focus state. For example, the focus state can be detected based on the contrast of the detected light amount distribution.
In the most practical focus detection method, the light quantity distributions of two sets of light beams incident through different positions of the photographing optical system are detected by two sets of one-dimensional image sensors. Then, the focus state is detected based on the phase difference (positional difference) between the two detected light quantity distributions.
[0004]
However, regardless of which method is used, in order to accurately detect the focus state, the contrast of the detected light amount distribution, that is, the change in brightness due to the difference in position must be large to some extent.
Incidentally, a light receiving device that is actually used is generally a charge storage type image sensor such as a CCD. Therefore, if the amount of the light beam incident on the light receiving device is too small, the level of the signal output from the light receiving device becomes small, and the level change of the output signal, that is, the contrast becomes small due to the influence of noise or the like.
[0005]
On the other hand, if the amount of light incident on the light receiving device is too large, the amount of charge accumulated inside the light receiving device exceeds the allowable amount, resulting in an overflow of the charge. It cannot be detected.
Therefore, conventionally, attempts have been made to adjust the charge accumulation time of the light receiving device and appropriately control the amount of light beam incident on the light receiving device, that is, the accumulated charge amount within the charge accumulation time.
[0006]
For example, in the technique disclosed in Japanese Patent Laid-Open No. 2-113215, the charge accumulation time of the light receiving device is determined based on past results. That is, when the target value Lr of the output level of the light receiving device is determined in advance, the charge accumulation time at the previous control is T0, and the output level of the light receiving device at the previous control is L0, the charge accumulation time T1 is determined by the following equation: Is done.
T1 = T0 · Lr / L0 (1)
In the technique disclosed in Japanese Patent Laid-Open No. 57-64711, a photodiode is provided in the vicinity of the light receiving device for monitoring the amount of light. Then, the amount of charge accumulated from the photodiode is compared with a predetermined threshold value. The end of charge accumulation in the light receiving device is controlled based on this comparison result. That is, the charge accumulation time of the light receiving device is controlled so that the monitor light amount becomes constant.
[0007]
In the technique disclosed in Japanese Patent Application Laid-Open No. 8-75994, the charge accumulation time of the light receiving device is controlled every time securities are detected until focusing is performed, and once focused, the charge accumulation time of the light receiving device is fixed. To control. Then, the predetermined charge accumulation time is not changed until a state where focus detection is impossible due to a decrease in luminance of the subject continues for a predetermined number of times.
[0008]
[Problems to be solved by the invention]
The charge storage time control of the conventional light receiving device as described above has advantages and disadvantages. For example, as disclosed in Japanese Patent Application Laid-Open No. 57-64711, when charge accumulation is controlled based on the output of a photodiode, the following problems occur.
[0009]
That is, when the subject is a moving object, the brightness of the background varies depending on the conditions at that time. Due to this influence, the accumulation time varies, the accumulation time is not suitable for the main subject, and an appropriate output cannot be obtained. Alternatively, a similar problem occurs when there is a moving object behind the main subject and the background brightness changes.
Further, as disclosed in Japanese Patent Laid-Open No. 8-75994, if the charge accumulation time is fixed in a focused state, the following problems may occur.
[0010]
When shooting a moving subject, if the subject moves from the sun to the shade, the brightness of the subject will decrease, so if the charge accumulation time is constant, the amount of accumulated charge in the light receiving device will decrease and the focus state will be detected. Can not be.
Even if the focus state cannot be detected even after the in-focus state is reached, if the distance between the camera and the subject changes due to the movement of the subject, the focus is shifted, so that shooting cannot be performed in the in-focus state.
[0011]
However, as disclosed in JP-A-8-75994, in many cases, a favorable result can be obtained by fixing the charge accumulation time in a focused state.
The present invention aims to enable detection of the focus state under a greater variety of conditions.
[0012]
[Means for Solving the Problems]
The focus detection apparatus according to claim 1 accumulates charges generated according to the intensity of light incident through the photographing optical system, and outputs a signal corresponding to the amount of charges accumulated during the first charge accumulation time. The first light receiving means and a charge generated according to the intensity of light incident through the photographing optical system are accumulated, and a signal corresponding to the amount of charge accumulated during the second charge accumulation time is output. Two light receiving means; Information on the intensity of the light incident on the second light receiving means in the past while determining the first charge accumulation time of the first light receiving means based on the intensity of the light incident on the first light receiving means. By determining the second charge accumulation time of the second light receiving means based on the above, the response speed of the first and second light receiving means with respect to the change in the intensity of the incident light is changed, and the first charge receiving time is changed. Accumulation control means for controlling accumulation of the first light receiving means and the second light receiving means in parallel according to the charge accumulation time and the second charge accumulation time, respectively. The focus state of the photographic optical system is determined based on the first light receiving means and the second light receiving means When Focus detection means for detecting based on a signal output from at least one of And It is provided.
[0013]
According to a second aspect of the present invention, in the focus detection apparatus according to the first aspect, the accumulation control unit is configured to use the second light receiving unit based on information on the plurality of light intensities obtained in the past. The charge accumulation time is determined.
According to a third aspect of the present invention, in the focus detection apparatus according to the first aspect, the accumulation control unit is configured to perform the first charge based on the intensity of the light obtained by the first light receiving unit at a first past time point. An accumulation time is determined, and the second charge accumulation time is determined based on the intensity of the light obtained by the second light receiving means at a second time point past the first time point. To do.
[0014]
According to a fourth aspect of the present invention, in the focus detection apparatus according to the first aspect, the accumulation control unit is based on a plurality of pieces of N pieces of information regarding the intensity of the light obtained by the first light receiving unit at different time points. , Determining the first charge accumulation time and, based on a plurality of pieces of information different from N regarding the intensity of the light obtained by the second light receiving means at different time points, The charge accumulation time is determined.
[0015]
According to a fifth aspect of the present invention, in the focus detection apparatus according to the first aspect, a light amount detection unit for detecting the intensity of incident light is provided in the vicinity of the first light receiving unit, and the accumulation control unit outputs the output of the light amount detection unit. The first charge accumulation time is determined based on the above.
According to a sixth aspect of the present invention, in the focus detection apparatus according to the first aspect, when the detected focus state is within a predetermined target range, the accumulation control unit stops updating the second charge accumulation time. It is characterized by that.
[0017]
Claim 7 The focus detection apparatus according to claim 1, wherein an image area detected by the first light receiving unit and an image area detected by the second light receiving unit are close to each other. A light receiving means and the second light receiving means are arranged.
Claim 8 The focus detection apparatus according to claim 1, wherein the image region detected by the first light receiving unit and the image region detected by the second light receiving unit partially overlap each other. One light receiving means and the second light receiving means are arranged.
[0018]
Claim 9 2. The focus detection apparatus according to claim 1, wherein the axial direction of the image area detected by the first light receiving means and the axial direction of the image area detected by the second light receiving means are substantially orthogonal to each other. In the state, the first light receiving means and the second light receiving means are arranged.
Claim 10 The focus detection apparatus according to claim 1, wherein the reliability of the first defocus amount obtained from the signal of the first light receiving means and the second defocus obtained from the signal of the second light receiving means. A reliability identifying means for identifying the reliability of the amount, wherein the focus detection means is configured to detect the reliability of the first defocus amount and the reliability of the second defocus amount based on the reliability of the first defocus amount; The focus state is detected.
[0019]
Claim 11 2. The focus detection apparatus according to claim 1, wherein the switch means selectively switches the combination of the process for determining the first charge accumulation time and the process for determining the second charge accumulation time from among a plurality. Is provided.
[0020]
(Function)
(Claim 1)
Light beams incident through the photographing optical system are incident on the first light receiving unit and the second light receiving unit, respectively. The focus detection unit detects a focus state of the photographing optical system based on a signal output from at least one of the first light receiving unit and the second light receiving unit.
[0021]
In the present invention, the charge accumulation times of the first light receiving means and the second light receiving means are controlled independently of each other. The first charge accumulation time that affects the accumulated charge amount of the first light receiving means and the second charge accumulation time that affects the accumulated charge amount of the second light receiving means are determined by the accumulation control means.
That is, the first charge accumulation time is controlled so that the accumulated charge amount of the first light receiving means becomes appropriate, and the second charge accumulation time is set so that the accumulated charge amount of the second light receiving means becomes appropriate. Is controlled.
[0022]
The first charge accumulation time is determined based on the intensity of light incident on the first light receiving means, and the second charge accumulation time is the intensity of light incident on the second light receiving means in the past. To be determined based on information about. Accordingly, with respect to the response speed to changes in the brightness of the subject, the first charge accumulation time is relatively fast, and the second charge accumulation time is relatively slow.
[0023]
The responsiveness of the charge accumulation time with respect to the change in the brightness of the subject may be faster or better depending on the situation.
For example, if the subject's brightness changes due to movement of the subject from the sun to the shade, or from the shade to the sun, it is necessary to follow the change in the subject's brightness quickly even after focusing. The focus cannot be detected due to a decrease in the level of the signal indicating the light amount distribution or saturation of the signal.
[0024]
However, for example, when an obstacle brighter than the subject passes near the target subject, it is better not to react to the obstacle at least after focusing.
In addition, for example, when a subject whose brightness is large compared to the background moves fast and the subject repeatedly enters and exits the focus detection region, it may be better to have a quick charge accumulation time response. In some cases, slower is better.
[0025]
In the present invention, the response speed to the change in brightness of the subject is relatively fast in the first charge accumulation time and relatively slow in the second charge accumulation time. At least one of the second charge accumulation times is set to an appropriate state.
That is, since either one of the accumulated charge amount of the first light receiving means and the accumulated charge amount of the second light receiving means is appropriate, the focus detecting means is at least one of the first light receiving means and the second light receiving means. The focus state of the photographing optical system can always be detected on the basis of a signal output from one of them.
[0026]
(Claim 2)
The second charge accumulation time is determined based on a plurality of pieces of information on the light intensities obtained in the past by the second light receiving means. That is, the second charge accumulation time is determined based on the averaged light intensity.
Accordingly, the second charge accumulation time is controlled so as not to follow the light intensity change that changes quickly. Thereby, for example, it becomes difficult to be affected by a high-luminance obstacle passing through the vicinity of the subject.
[0027]
(Claim 3)
The first charge accumulation time is determined based on the intensity of the light obtained by the first light receiving means at a first past time point, and the second charge accumulation time is past the first time point. Is determined based on the intensity of the light obtained by the second light receiving means at the second time point.
[0028]
That is, the first charge accumulation time and the second charge accumulation time are determined based on the intensity of light detected at different points in time.
Therefore, when a large change occurs in the luminance of the subject between the first time point and the second time point, the accumulated charge amount of the second light receiving means is controlled based on the luminance before the change, and the first The accumulated charge amount of the light receiving means is controlled based on the luminance after the change. For this reason, at least one of the first light receiving means and the second light receiving means is appropriately controlled in the amount of accumulated charges.
[0029]
That is, even when the luminance of the subject fluctuates greatly, the focus state can be detected based on the signal output from at least one of the first light receiving means and the second light receiving means.
(Claim 4)
The first charge accumulation time is determined based on a plurality of pieces of N information related to the light intensity obtained by the first light receiving means at different time points. The second charge accumulation time is determined based on a plurality of pieces of information different from N relating to the intensity of the light obtained by the second light receiving means at different time points.
[0030]
That is, the first charge accumulation time and the second charge accumulation time are both determined based on the actual values obtained by averaging a plurality of pieces of information regarding the light intensity. However, the actual value averaging period for determining the first charge accumulation time differs from the actual value averaging period for determining the second charge accumulation time.
Accordingly, the response speed with respect to the change in brightness of the subject is relatively fast in the first charge accumulation time and relatively slow in the second charge accumulation time.
[0031]
(Claim 5)
In the present invention, the first charge accumulation time is determined based on the output of the light amount detection means for detecting the intensity of incident light. Thereby, even when the brightness of the subject fluctuates at a cycle shorter than the first charge accumulation time, the first charge accumulation time can be controlled so as to follow it.
[0032]
(Claim 6)
In the present invention, when the detected focus state falls within a predetermined target range, the second charge accumulation time is fixed. Therefore, for example, even when a high-luminance obstacle passes in the vicinity of the subject, the accumulated charge amount of the second light receiving means is determined based on the luminance of the subject after focusing.
[0034]
( Claim 7 )
The area of the image detected by the first light receiving means and the area of the image detected by the second light receiving means are close to each other.
[0035]
Accordingly, even if the focus state is detected by switching the output signal of the first light receiving means and the output signal of the second light receiving means, the detected focus state does not vary greatly.
(Claims 8 )
The area of the image detected by the first light receiving means and the area of the image detected by the second light receiving means partially overlap.
[0036]
Accordingly, even if the focus state is detected by switching the output signal of the first light receiving means and the output signal of the second light receiving means, the detected focus state does not vary greatly.
[0037]
(Claims 9 )
The first light receiving means and the second light receiving means are arranged in a state where the axial directions of the areas detected by them are substantially orthogonal to each other. Accordingly, based on the output of one of the first light receiving means and the second light receiving means, whether the subject has a luminance change only in the horizontal direction or the subject has a luminance change only in the vertical direction. Thus, the focus state can be detected.
[0038]
(Claims 10 )
The reliability identifying means identifies the reliability of the first defocus amount obtained from the signal of the first light receiving means and the reliability of the second defocus amount obtained from the signal of the second light receiving means. To do. The focus detection unit detects a focus state of the photographing optical system based on the reliability of the first defocus amount and the reliability of the second defocus amount. Thereby, the reliability of the detected focus state can be further increased.
[0039]
(Claims 11 )
Various combinations of the process for determining the first charge accumulation time and the process for determining the second charge accumulation time are conceivable. However, the best combination varies depending on the type and situation of the subject. In the present invention, the combination of the process for determining the first charge accumulation time and the process for determining the second charge accumulation time can be selectively switched from a plurality by the switch means.
[0040]
DETAILED DESCRIPTION OF THE INVENTION
(First embodiment)
The configuration and operation of the focus detection apparatus of this embodiment are shown in FIGS. 1, 2, 3, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, and 13. 14, FIG. 15, FIG. 16, FIG. 17 and FIG.
[0041]
FIG. 1 is an exploded perspective view showing the configuration of the optical system of the focus detection apparatus. FIG. 2 is a block diagram illustrating an electric circuit of a focus detection apparatus including the optical system of FIG. FIG. 3 is a timing chart showing an example of main signal timings in the focus detection apparatus of FIG.
[0042]
FIG. 4 is a flowchart showing an outline of the operation of the control unit 30 of FIG. FIG. 5 is a flowchart showing details of step S4 in FIG. FIG. 6 is a flowchart showing details of step S5 in FIG.
FIG. 7 is a flowchart showing details of step S23 in FIG. FIG. 8 is a flowchart showing details of step S24 in FIG. FIG. 9 is a flowchart showing details of step S25 in FIG.
[0043]
FIG. 10 is a flowchart showing details of step S28 in FIG. FIG. 11 is a flowchart showing details of step S29 in FIG. FIG. 12 is a flowchart showing details of step S12 of FIG.
FIG. 13 is a flowchart showing details of steps S70 and S71 in FIG. FIG. 14 is a graph showing the distribution of two one-dimensional image signals Va and Vb obtained by detecting light passing through different paths. FIG. 15 is a graph showing the amount of correlation between two one-dimensional image signals Va and Vb.
[0044]
FIG. 16 is a graph showing details of a part of FIG. FIG. 17 is a front view showing a focus detection area in the shooting screen. FIG. 18 is a schematic diagram showing a combination of pixels of two one-dimensional image signals Va and Vb that are referred to when calculating the correlation amount. .

[0046]
First, the optical system of the focus detection apparatus will be described. As shown in FIG. 1, a field mask 52, a field lens 53, a diaphragm 54, a re-imaging lens 55, and a detection substrate 56 are arranged on the optical axis of the photographing lens 51.
The field mask 52 has a cross-shaped opening 52a at the center thereof. The field mask 52 is disposed in the vicinity of the planned focal plane of the photographic lens 51. The field mask 52 regulates the aerial image of the subject formed by the photographing lens 51.
[0047]
The diaphragm 54 has four openings 54a, 54b, 54c and 54d. These openings 54a, 54b, 54c, and 54d are projected onto the photographing lens 51 as regions 51a, 51b, 51c, and 51d by the field lens 53, respectively.
The re-imaging lens 55 includes four lenses 55a disposed at positions corresponding to the openings 54a, 54b, 54c and 54d of the stop 54, respectively. The re-imaging lens 55 forms an image passing through the opening 52 a of the field mask 52 on the detection substrate 56.
[0048]
On the detection substrate 56, four image sensors 11, 12, 21, and 22 and sensors Ma and Mb are installed. Each of the image sensors 11, 12, 21, and 22 is a one-dimensional imaging unit in which a large number of light receiving units are arranged in a row.
The two image sensors 11 and 12 are arranged so that the arrangement direction of the light receiving parts is directed in the X-axis direction. The remaining two image sensors 21 and 22 are arranged such that the arrangement direction of the light receiving parts is directed in the Y-axis direction.
[0049]
The image sensors 11, 12, 21, and 22 are composed of CCD elements. Accordingly, the output of the image sensors 11, 12, 21, and 22 includes an electric signal corresponding to the amount of charge accumulated in each light receiving unit during the controlled accumulation time, that is, an electric signal corresponding to the amount of received light. As obtained.
Each of the sensors Ma and Mb is a light receiving element containing a single photodiode. The light receiving portions of the sensors Ma and Mb are formed to be elongated.
[0050]
The sensor Ma is arranged in the vicinity of the image sensor 11 with the longitudinal direction of the light receiving portion directed in the X-axis direction. Therefore, the sensor Ma can detect the average amount of light received by a large number of light receiving units in the image sensor 11.
The sensor Mb is disposed in the vicinity of the image sensor 21 with the longitudinal direction of the light receiving portion directed in the Y-axis direction. Therefore, the sensor Mb can detect the average amount of light received by a large number of light receiving units in the image sensor 21.
[0051]
Incident light that passes through the region 51 a of the photographic lens 51 is coupled to the light receiving surface of the image sensor 11 through the field mask 52, the field lens 53, the aperture 54 a of the stop 54, and one lens 55 a of the re-imaging lens 55. Image.
Similarly, incident light that passes through the areas 51b, 51c, and 51d of the photographing lens 51 forms an image on the light receiving surfaces of the image sensors 21, 12, and 22, respectively.
[0052]
The relative positional shift amount Ls between the image detected by the image sensor 11 and the image detected by the image sensor 12 is determined when the imaging position of the light passing through the photographing lens 51 coincides with the planned focal plane ( At the time of focusing, it becomes a predetermined value.
[0053]
Further, the positional deviation amount Ls becomes smaller than the predetermined value when the image forming position of the light passing through the photographing lens 51 is in front of the planned focal plane (during the front pin), and is behind the planned focal plane. In some cases (at the time of rear pin), it becomes large.
Therefore, the focus state of the photographic lens 51 can be detected based on the images detected by the image sensors 11 and 12. However, within the detection range of the image sensors 11 and 12, the brightness change (contrast) of the image from the subject must be sufficient with respect to the X-axis direction.
[0054]
Similarly to the above, the focus state of the photographing lens 51 can be detected based on the images detected by the image sensors 21 and 22. However, within the detection range of the image sensors 21 and 22, the brightness change (contrast) of the image from the subject must be sufficient with respect to the Y-axis direction.
In this example, since the image sensors 11 and 12 arranged in the X-axis direction and the image sensors 21 and 22 arranged in the Y-axis direction are provided, the subject can move in at least one of the X-axis and Y-axis directions. Therefore, the focus can be detected.
[0055]
As shown in FIG. 17, the horizontal area Ah detected by the image sensors 11 and 12 and the vertical area Av detected by the image sensors 21 and 22 are located substantially at the center of the photographing screen. In addition, the area Ah and the area Av are arranged so as to partially overlap each other.
In FIG. 1, only the portion related to focus detection is shown. For example, in the case of a camera, a light beam from a subject passes through the photographing lens 51 and then forms an image on a predetermined finder optical system or film surface. Only a part of the light beam passing through the photographing lens 51 is focused on the image sensors 11, 12, 21 and 22 through the focus detection optical system as shown in FIG.
[0056]
In addition, although not shown in the drawing, a drive device that moves the photographic lens 51 in the optical axis direction is connected to the photographing lens 51 in order to adjust the focal position.
Next, an electric circuit of the focus detection apparatus will be described with reference to FIG. In this example, the image sensors 11 and 12 and the sensor Ma are set as the detection unit U1, and the image sensors 21 and 22 and the sensor Mb are set as the detection unit U2, and these are divided.
[0057]
The reason why the detection units U1 and U2 are divided is to control the accumulation time T1 of the image sensors 11 and 12 and the accumulation time T2 of the image sensors 21 and 22 independently.
The image sensors 11, 12, 21, and 22 accumulate charges generated according to the received light intensity for each of a large number of light receiving units during an accumulation time controlled by an external signal. The amount of charge accumulated corresponds to the total amount of light received during the accumulation time.
[0058]
When the intensity of the incident light from the subject is too small (dark), the amount of charge accumulated in each light receiving unit is small, so that the influence of noise is large and the contrast between pixels of the obtained signal level is small. . However, if the accumulation time is lengthened, the amount of accumulated charges increases and the signal level contrast is also improved.
In addition, when the intensity of incident light from the subject is too high, the amount of charge accumulated in each light receiving unit exceeds the allowable amount, so that an accurate amount of received light cannot be detected. However, if the accumulation time is shortened, it is possible to avoid the accumulated charge amount from exceeding the allowable amount.
[0059]
Therefore, in order to be able to detect the focus under various conditions, it is necessary to appropriately control the accumulation time. Various methods are conceivable as a method for determining the accumulation time. However, even when the accumulation time is determined by any method, there is a possibility that a problem occurs under certain conditions.
Therefore, in this example, the accumulation time T1 of the image sensors 11 and 12 and the accumulation time T2 of the image sensors 21 and 22 are determined by different methods. The accumulation time T1 of the image sensors 11 and 12 and the accumulation time T2 of the image sensors 21 and 22 are controlled independently of each other.
[0060]
Therefore, under various conditions, at least one of the accumulated charge amount of the image sensors 11 and 12 constituting the detection unit U1 and the accumulated charge amount of the image sensors 21 and 22 constituting the detection unit U2 is appropriately controlled. There is a high possibility.
That is, even if the light quantity distribution cannot be detected by one of the detection units U1 and U2, the focus can be detected based on the light quantity distribution detected by the other.
[0061]
As shown in FIG. 2, this focus detection device includes detection units U1, U2, timing control circuits 13, 23, sampling circuits 14, 24, light quantity detection circuits 15, 25, A / D conversion circuits 16, 26, and comparison. Circuits 17 and 27, a control unit 30, a focus detection switch 40, and a mode switch SW are provided.
The image sensors 11 and 12 of the detection unit U1 are controlled by a signal (plurality) 31 output from the timing control circuit 13. The signal 31 includes the accumulation control signal, the pixel transfer signal, and the reset signal shown in FIG.
[0062]
Each light receiving unit of the image sensors 11 and 12 accumulates the electric charge generated according to the brightness of the incident light during a period when the accumulation control signal is at a high level, that is, during the accumulation time T1 in FIG. Therefore, the accumulated charge amount of each light receiving unit is determined by the incident light amount and the accumulation time T1.
When the pixel transfer signal and the reset signal are given after the accumulation control is finished, the image sensors 11 and 12 sequentially output an analog pixel signal corresponding to the accumulated charge amount of each light receiving unit one pixel at a time. The output analog pixel signal group indicates the light amount distribution of the light beams incident on the image sensors 11 and 12.
[0063]
The analog pixel signals output from the image sensors 11 and 12 are sampled for each pixel by the sampling circuit 14. The sampled analog pixel signals of the image sensors 11 and 12 are respectively input to the A / D conversion circuit 16 and converted into digital pixel signals in which the brightness is expressed by a plurality of pits for each pixel. This digital pixel signal is input to the control unit 30.
[0064]
Similar to the image sensors 11 and 12, the sensor Ma generates electric charges according to the brightness of incident light. The electric charge generated by the sensor Ma is accumulated in the light amount detection circuit 15. The light amount detection circuit 15 outputs a signal proportional to the amount of accumulated charge.
The accumulated charge amount of the light quantity detection circuit 15 is reset by the signal 31 output from the timing control circuit 13 at the start of the accumulation time T1. That is, the accumulated charge amount of the light amount detection circuit 15 corresponds to the light amount received by the image sensors 11 and 12 during the accumulation time T1.
[0065]
The comparison circuit 17 compares the accumulated charge amount detected by the light amount detection circuit 15 with a predetermined threshold voltage Vx. The comparison result of the comparison circuit 17 is applied to the timing control circuit 13 as a binary signal 34.
The accumulation time T1 of the accumulation control signal output from the timing control circuit 13 is basically determined by the signal 33 output from the control unit 30. However, the accumulation time T1 can also be determined by the binary signal 34 output from the comparison circuit 17 under the control of the signal 33.
[0066]
In the case where the accumulation time T1 is controlled by the binary signal 34 output from the comparison circuit 17, the accumulation time T1 ends when the received light amount of the sensor Ma reaches a predetermined light amount corresponding to the threshold voltage Vx. The accumulation control signal output from the circuit 13 changes from a high level to a low level.
The image sensors 21 and 22 of the detection unit U2 are controlled by a signal (plurality) 35 output from the timing control circuit 23. The signal 35 includes the accumulation control signal, the pixel transfer signal, and the reset signal shown in FIG.
[0067]
Each light receiving unit of the image sensors 21 and 22 accumulates electric charges generated according to the brightness of incident light during a period when the accumulation control signal is at a high level, that is, during the accumulation time T2 in FIG. Therefore, the accumulated charge amount of each light receiving unit is determined by the incident light amount and the accumulation time T2.
When the pixel transfer signal and the reset signal are given after the accumulation control is completed, the image sensors 21 and 22 sequentially output analog pixel signals corresponding to the accumulated charge amount of each light receiving unit one by one. The output analog pixel signal group indicates a light amount distribution of a light beam incident on the image sensors 21 and 22.
[0068]
The analog pixel signals output from the image sensors 21 and 22 are sampled for each pixel by the sampling circuit 24. The sampled analog pixel signals of the image sensors 21 and 22 are respectively input to the A / D conversion circuit 26 and converted into digital pixel signals in which the brightness is expressed by a plurality of pits for each pixel. This digital pixel signal is input to the control unit 30.
[0069]
Similar to the image sensors 21 and 22, the sensor Mb generates electric charges according to the brightness of incident light. The electric charge generated by the sensor Mb is accumulated in the light amount detection circuit 25. The light amount detection circuit 25 outputs a signal proportional to the amount of accumulated charge.
The accumulated charge amount of the light amount detection circuit 25 is reset by the signal 35 output from the timing control circuit 23 at the start of the accumulation time T2. That is, the accumulated charge amount of the light amount detection circuit 25 corresponds to the light amount received by the image sensors 21 and 22 during the accumulation time T2.
[0070]
The comparison circuit 27 compares the accumulated charge amount detected by the light amount detection circuit 25 with a predetermined threshold voltage Vx. The comparison result of the comparison circuit 27 is applied to the timing control circuit 23 as a binary signal 38.
The accumulation time T2 of the accumulation control signal output from the timing control circuit 23 is basically determined by the signal 37 output from the control unit 30. However, the accumulation time T2 can be determined by the binary signal 38 output from the comparison circuit 27 under the control of the signal 37.
[0071]
When the accumulation time T2 is controlled by the binary signal 38 output from the comparison circuit 27, the accumulation time T2 ends when the received light amount of the sensor Mb reaches a predetermined light amount corresponding to the threshold voltage Vx, and timing control is performed. The accumulation control signal output from the circuit 23 changes from a high level to a low level.
[0072]
The mode switch SW connected to the control unit 30 has six contacts. By manually switching the mode switch SW, it is possible to select any one of mode 1, mode 2, mode 3, mode 4, mode 5 and mode 6. These modes indicate the types of combinations of the determination processes for the accumulation times T1 and T2.
The focus detection switch 40 connected to the control unit 30 is provided for switching on / off of the focus detection operation.
[0073]
The control unit 30 includes a microcomputer including a ROM, a RAM, a timer, and the like. Further, a drive circuit and a display circuit for moving the position of the photographing lens 51 along the optical axis are also incorporated.
An outline of the processing executed by the microcomputer of the control unit 30 is shown in FIG. The contents of each processing step shown in FIG. 4 will be described below. When the main power supply of the apparatus (camera or the like) is turned on, step S1 is first executed.
[0074]
In step S1, initialization of the entire apparatus is executed. For example, the photographing lens driving motor is stopped, the display is cleared, and the contents of the internal memory are cleared. Also, 1 is preset to the counter CNT allocated on the internal memory.
In step S2, the state of the focus detection switch 40 is checked to identify whether the focus detection instruction is on or off. If the focus detection switch 40 is off, steps S1 and S2 are repeated. If the focus detection switch 40 is on, the process proceeds to the next step S3.
[0075]
In step S3, the state of the mode switch SW is read to check the current mode.
In step S4, a process for determining the accumulation time T1 of the image sensors 11 and 12 is executed. Details of this processing are shown in FIG. The contents of FIG. 5 will be described later.
[0076]
In step S5, processing for determining the accumulation time T2 of the image sensors 21, 22 is executed. Details of this process are shown in FIG. The contents of FIG. 6 will be described later.
In step S6, each of the image sensors 11, 12, 21, and 22 is controlled to start charge accumulation. That is, the signal 33 is operated to control the timing control circuits 13 and 23 to switch the accumulation control signal shown in FIG. 3 from the low level to the high level. An internal timer is set to count the elapsed time since the start of charge accumulation.
[0077]
In step S7, the count value of the internal timer is checked to check whether the elapsed time from the start of charge accumulation has reached either T1 or T2. When the elapsed time is T1 or T2, the process proceeds to step S8.
In step S8, charge accumulation end control for the image sensors 11, 12, 21, and 22 is performed. That is, when the count value of the internal timer coincides with the accumulation time T1, the signal 33 is operated to control the timing control circuit 13, and the accumulation control signal applied to the image sensors 11 and 12 is set to the high level. To low level.
[0078]
When the count value of the internal timer coincides with the accumulation time T2, the signal 37 is operated to control the timing control circuit 23, and the accumulation control signal applied to the image sensors 21 and 22 is set to the high level. To low level.
Note that in the operation mode in which the accumulation time control by the binary signal 34 of the comparison circuit 17 is prioritized, the operation of step S8 for the timing control circuit 13 is invalid. Similarly, in the operation mode in which the accumulation time control by the binary signal 38 of the comparison circuit 27 is prioritized, the operation in step S8 for the timing control circuit 23 is invalid.
[0079]
In step S9, it is checked whether or not the accumulation end control for the image sensors 11 and 12 and the accumulation end control for the image sensors 21 and 22 are both completed. If the count value of the internal timer is larger than both T1 and T2, the accumulation end control is completed, and the process proceeds to step S10.
[0080]
In step S <b> 10, signals accumulated in each light receiving unit of the image sensor 11, signals accumulated in each light receiving unit of the image sensor 12, signals accumulated in each light receiving unit of the image sensor 21, and each light receiving unit of the image sensor 22. The signals accumulated in are sequentially read.
That is, the control unit 30 operates the signal 33 to control the timing control circuit 13 and provides the pixel transfer signal and the reset signal shown in FIG. The sampling signal is supplied to the sampling circuit 14 and the A / D conversion start signal is supplied to the A / D conversion circuit 16.
[0081]
By this control, signals read from the light receiving portions of the image sensors 11 and 12 are converted into digital pixel signals sequentially through the sampling circuit 14 and the A / D conversion circuit 16 pixel by pixel. Each time the A / D conversion is completed, the converted digital pixel signal is read by the control unit 30.
Further, the control unit 30 operates the signal 37 to control the timing control circuit 23 and provides the image transfer signals 21 and 22 with the pixel transfer signal and the reset signal shown in FIG. The sampling signal is supplied to the sampling circuit 24 and the A / D conversion start signal is supplied to the A / D conversion circuit 26.
[0082]
By this control, signals read from the light receiving units of the image sensors 21 and 22 are converted into digital pixel signals sequentially through the sampling circuit 24 and the A / D conversion circuit 26 one pixel at a time. Each time the A / D conversion is completed, the converted digital pixel signal is read by the control unit 30.
The control unit 30 stores the digital pixel signal sequence read from the image sensors 11, 12, 21, and 22 in a predetermined area on the internal memory.
[0083]
In step S11, the maximum values Vm1 and Vm2 are detected by referring to the data of the digital pixel signal sequence stored in the internal memory by the processing in step S10.
[0084]
The maximum value Vm1 is the value (signal level) of the pixel having the maximum brightness in the digital pixel signal sequence obtained from the image sensors 11 and 12. The maximum value Vm2 is the value of the pixel having the maximum brightness in the digital pixel signal sequence obtained from the image sensors 21 and 22.
The maximum value Vm1 is used as a reference for the accumulated charge amount (actual result) of the image sensors 11 and 12. In addition, the maximum value Vm2 is used as a reference for the accumulated charge amount of the image sensors 21 and 22.
[0085]
In step S12, focus detection processing is executed based on the digital pixel signal sequence data stored in the internal memory by the processing in step S10. Further, the value of the counter CNT is updated every time Step S12 is executed. Details of the focus detection process are shown in FIG. This will be described in detail later.
[0086]
In step S13, based on the focus state detected in step S12, if the subject is not in focus, the photographing lens 51 is moved so as to approach the in-focus position. Further, on / off of the focus display is controlled according to whether or not the focus is achieved.
When the focus detection switch 40 is on, the processes in steps S2 to S13 are repeatedly executed.
[0087]
In the “accumulation time T1 determination” process in step S4, as shown in FIG. 5, a process corresponding to the mode selected by the mode switch SW is executed. That is, in the case of mode 1 or mode 2, step S23 is executed through step S20.
In the case of mode 3 or mode 4, step S24 is executed through steps S20 and S21. In the case of mode 5 or mode 6, step S25 is executed through steps S20, S21, and S22.
[0088]
“Time determination A1” in step S23, “time determination A2” in step S24, and “time determination A3” in step S25 are all processes for determining the accumulation time T1. That is, the content of the process for determining the accumulation time T1 is changed according to the mode selected by the mode switch SW.
The contents of “time determination A1” in step S23, “time determination A2” in step S24, and “time determination A3” in step S25 are shown in FIGS. 7, 8, and 9, respectively.
[0089]
As shown in FIG. 7, in the process of “time determination A1”, step S31 is executed. In step S31, the accumulation time T1 is determined according to the output of the sensor Ma. That is, the control unit 30 controls the signal 33 given to the timing control circuit 13 and gives priority to the control of the binary signal 34 output from the comparison circuit 17.
Therefore, in this case, the accumulation end timing of the image sensors 11 and 12 is controlled by the binary signal 34. That is, the accumulation time T1 is determined by the actual amount of light received by the sensor Ma and the threshold voltage Vx.
[0090]
Further, the control unit 30 detects the timing at which the level of the binary signal 34 is switched, and grasps the actual accumulation time T1. This accumulation time T1 is stored in the internal memory as performance information Tp1.
On the other hand, in the process of “time determination A2”, the accumulation time T1 is determined by step S33 shown in FIG. 8 except for the first time. That is, the accumulation time T1 is determined by the following equation.
[0091]
T1 = Tp1 · Lr / Vm1 (2)
Tp1: Accumulation time T1 at the previous control (actual value)
Lr: target level of the pixel signals of the image sensors 11 and 12
Vm1: Maximum value obtained in step S11
In this process, since the accumulation time T1 is determined based on the actual charge accumulation amount (actual result) of the image sensors 11, 12, the accumulation time T1 can be controlled with higher accuracy. The response speed of the accumulation time T1 with respect to the change in the brightness of the subject is delayed by one control cycle compared to step S31.
[0092]
In the initial control, since the record information Tp1 and the maximum value Vm1 do not exist, the calculation in step S33 cannot be executed. Therefore, when the counter CNT is 1, the process proceeds to step S34 through step S32.
The contents of step S34 are the same as those of step S31. That is, the accumulation time T1 is determined according to the output of the sensor Ma.
[0093]
Next, the process of “time determination A3” will be described with reference to FIG. When the counter CNT is 1, that is, for the first time, there is no information necessary for the calculation, so the process proceeds from step S50 to S57. In this case, the accumulation time T1 is determined according to the output of the sensor Ma as in step S31.
Except for the first time, the process proceeds from step S50 to S51. In the processing of FIG. 9, N memories PT [1] to PT [N] are used to store the accumulation times T1 at the past N times different from each other. The latest storage time T1 is stored in the memory PT [1], and the oldest storage time T1 is stored in the memory PT [N].
[0094]
In order to secure an area for storing the new accumulation time T1, in step S51, the data in the memory PT [i] is transferred to PT [i + 1] (i = N−1, N−2,..., 3, 2). , 1). As a result, the data in the oldest memory PT [N] is updated, and the positions of the data in the memories PT [1] to PT [N-1] are shifted.
In step S52, calculation is performed using the second equation to obtain the accumulation time T1. That is, the accumulation time T1 is obtained based on the accumulation time Tp1 and the maximum value Vm1 that are the previous results and the target level Lr. The obtained accumulation time T1 is stored in the memory PT [1].
[0095]
In step S53, the value of the counter CNT is compared with a constant N. That is, it is identified whether or not N pieces of record information are arranged on the memories PT [1] to PT [N]. If the value of the counter CNT exceeds the constant N, the process proceeds to step S55, and if not, the process proceeds to step S54.
[0096]
In step S54, since N pieces of record information are not prepared, a value obtained by subtracting 1 from the value of the counter CNT is stored in the register S as the number of pieces of effective record information.
In step S55, since N pieces of record information are prepared, the value of the counter CNT is stored in the register S as the number of valid record information.
In step S56, the average value of valid data among the past information of the accumulation time T1 on the memories PT [1] to PT [N] is calculated as the current accumulation time T1. This accumulation time T1 is stored in the memory as performance information Tp1.
[0097]
That is, in the process of “time determination A3”, the accumulation time T1 is determined as an average value of calculation periods corresponding to N times the control cycle. The constant N is set to about 2 to 4 so that the calculation period is 100 msec to 200 msec, for example.
In the “accumulation time T2 determination” process in step S5 of FIG. 4, as shown in FIG. 6, a process corresponding to the mode selected by the mode switch SW is executed. That is, in the case of mode 1, 3 or 5, step S28 is executed through step S26. In the case of mode 2, 4 or 6, step S29 is executed through steps S26 and S27.
[0098]
“Time determination B1” in step S28 and “time determination B2” in step S29 are both processes for determining the accumulation time T2. That is, the content of the process for determining the accumulation time T2 is changed according to the mode selected by the mode switch SW.
Therefore, in the case of mode 1, the combination of “time determination A1” and “time determination B1” is selected. In the case of mode 2, a combination of “time determination A1” and “time determination B2” is selected. In the case of mode 3, a combination of “time determination A2” and “time determination B1” is selected.
[0099]
In the case of mode 4, a combination of “time determination A2” and “time determination B2” is selected. In the case of mode 5, the combination of “time determination A3” and “time determination B1” is selected. In the case of mode 6, the combination of “time determination A3” and “time determination B2” is selected.
The contents of the “time determination B1” in step S28 and the “time determination B2” in step S29 are shown in FIGS. 10 and 11, respectively.
[0100]
Next, the process of “time determination B1” will be described with reference to FIG. When the counter CNT is 1, that is, for the first time, there is no information necessary for calculation, so the process proceeds from step S40 to S48.
In step S48, the accumulation time T2 is determined according to the output of the sensor Mb. That is, the control unit 30 controls the signal 37 given to the timing control circuit 23 to give priority to the control of the binary signal 38 output from the comparison circuit 27.
[0101]
Therefore, in this case, the accumulation end timing of the image sensors 21 and 22 is controlled by the binary signal 38. That is, the accumulation time T2 is determined by the actual amount of light received by the sensor Mb and the threshold voltage Vx.
Further, the control unit 30 detects the timing at which the level of the binary signal 38 switches, and grasps the actual accumulation time T2. This accumulation time T2 is stored in the internal memory as performance information Tp2.
[0102]
When the counter CNT is 1, since the focus state has not been detected yet, the focus flag Fin is cleared in step S49.
If the counter CNT is not 1, the process proceeds from step S40 to S41. In step S41, it is identified whether or not the final defocus amount DfL is within a predetermined range. That is, it is identified whether or not it is in focus. The final defocus amount DfL is obtained by the “focus detection process” in step S12.
[0103]
In a state where focus detection is impossible, an effective value is not set for the final defocus amount DfL. In that case, the final defocus amount DfL is considered to be out of range, that is, not in focus.
If not in focus, the process proceeds from step S41 to S42. If in focus, the process proceeds from step S41 to S46.
[0104]
In step S42, the state of the focus flag Fin is checked. If the focus is not detected, the focus flag Fin is cleared, and the process proceeds from step S42 to S45. If the focus flag Fin is set, the process proceeds from step S42 to S43.
In step S43, the time Td counted by the internal timer is compared with a predetermined threshold Tth. The time Td indicates an elapsed time after the in-focus state is no longer detected. If the time Td is greater than the threshold value Tth, the process proceeds from step S43 to S44. If the time Td is within the threshold Tth, the processing of FIG. 10 is terminated without updating the accumulation time T2.
[0105]
In step S44, since the time Td is larger than the threshold value Tth, the focusing flag Fin is cleared.
In step S45, the accumulation time T2 is determined based on the following equation.
T2 = Tp2 · Lr / Vm2 (3)
Tp2: Accumulation time T2 at the previous control (actual value)
Lr: target level of the pixel signals of the image sensors 21 and 22
Vm2: maximum value obtained in step S11
In step S45, the obtained accumulation time T2 is stored as performance information Tp2.
[0106]
In step S46, since the final defocus amount DfL is within the predetermined range, the focus flag Fin is set.
In step S47, since the in-focus state is detected, the count value of the timer that counts the time Td is cleared.
[0107]
In the process of FIG. 10, since the step S45 is not executed in the focused state, the update of the accumulation time T2 is stopped. That is, the accumulation time T2 is fixed to the past accumulation time (actual value) T2 when the in-focus state is changed to the in-focus state.
Even if the final defocus amount DfL is out of the predetermined range, while the focus flag Fin is 1, step S45 is not executed, so the accumulation time T2 does not change. However, if the elapsed time from the out-of-focus state exceeds the threshold value Tth, the process proceeds from step S43 to S44, and the focus flag Fin is cleared. Therefore, in the next step S45, the accumulation time T2 is updated.
[0108]
Next, the process of “time determination B2” will be described with reference to FIG. When the counter CNT is 1, that is, for the first time, there is no information necessary for calculation, so the process proceeds from step S60 to S67.
In step S67, as in step S48, the accumulation time T2 is determined according to the output of the sensor Mb. That is, the control unit 30 controls the signal 37 given to the timing control circuit 23 to give priority to the control of the binary signal 38 output from the comparison circuit 27.
[0109]
If the counter CNT is not 1, the process proceeds from step S60 to S61. In the process of FIG. 11, K memories PT2 [1] to PT2 [K] are used to store the accumulation times T2 at different points in the past K times. The latest storage time T2 is stored in the memory PT2 [1], and the oldest storage time T2 is stored in the memory PT2 [K].
[0110]
In order to secure an area for storing the new accumulation time T2, in step S61, the data in the memory PT2 [i] is transferred to PT2 [i + 1] (i = K-1, K-2,..., 3, 2). , 1). As a result, the data in the oldest memory PT [K] is updated, and the positions of the data in the memories PT [1] to PT [K-1] are shifted.
In step S62, calculation is performed using the third equation to obtain the accumulation time T2. That is, the accumulation time T2 is obtained based on the accumulation time Tp2 and the maximum value Vm2 that are the previous results and the target level Lr. The obtained accumulation time T2 is stored in the memory PT2 [1].
[0111]
In step S63, the value of the counter CNT is compared with a constant K. That is, it is identified whether or not K pieces of record information are arranged on the memories PT2 [1] to PT2 [K]. If the value of the counter CNT exceeds the constant K, the process proceeds to step S65, and if not, the process proceeds to step S64.
In step S64, since K pieces of record information are not prepared, a value obtained by subtracting 1 from the value of the counter CNT is stored in the register S as the number of valid record information.
[0112]
In step S65, since K pieces of track record information are prepared, the value of the counter CNT is stored in the register S as the number of valid track record information.
In step S66, the average value of valid data among the record information of the accumulation time T2 on the memories PT2 [1] to PT2 [K] is calculated as the current accumulation time T2. This accumulation time T2 is stored in the memory as performance information Tp2.
[0113]
That is, in the “time determination B2” process, the accumulation time T2 is determined as an average value of calculation periods corresponding to K times the control period. For example, the constant K is set to 5 to 14 so that the calculation period is about 700 msec.
When mode 6 is selected by the mode switch SW, the accumulation time T1 is determined by the “time determination A3” process shown in FIG. 9, and the accumulation time T2 is determined by the “time determination B2” process shown in FIG. .
[0114]
In both “time determination A3” and “time determination B2”, the accumulation time T1 or T2 is determined based on the average of a plurality of pieces of performance information obtained at different points in the past. However, the values of the constant N of “time determination A3” and the constant K of “time determination B2” are different from each other.
Therefore, the response characteristics with respect to changes in the brightness of the subject also differ between the accumulation time T1 and the accumulation time T2. That is, the response of the accumulation time T1 is relatively fast and the response of the accumulation time T2 is relatively slow.
[0115]
Regardless of whether mode 1, mode 2, mode 3, mode 4, mode 5 or mode 6 is selected by mode switch SW, processing for determining accumulation time T1, and processing for determining accumulation time T2 Are different from each other.
For this reason, the response of the accumulation time T1 is relatively fast and the response of the accumulation time T2 is relatively slow with respect to changes in the brightness of the subject. Therefore, the charge accumulation state of the image sensors 11 and 12 and the charge accumulation state of the image sensors 21 and 22 are different from each other.
[0116]
Next, each step of the “focus detection process” shown in FIG. 12 will be described.
In step S69, 1 is added to the value of the counter CNT to update the CNT. When the value of the counter CNT reaches a predetermined upper limit value, the process of step S69 is omitted.
In step S70, the defocus amount DF1 is calculated based on the digital pixel signal sequence obtained by the image sensors 11 and 12. The defocus amount means the amount of displacement and the direction of the photographing lens 51 with respect to the focused state. Details of the processing in step S70 are shown in FIG.
[0117]
In step S80 in FIG. 13, a correlation amount C [L] between the pixel signal sequence Va obtained by the image sensor 11 and the pixel signal sequence Vb obtained by the image sensor 12 is obtained.
For example, as shown in FIG. 14, the pixel signal string Va of the image sensor 11 and the pixel signal string Vb of the image sensor 12 each indicate the intensity distribution of incident light from the subject.
[0118]
When the pixel signal strings Va and Vb are relatively shifted in the horizontal axis direction by a predetermined distance Ls shown in FIG. 14, the correlation between the pixel signal strings Va and Vb becomes very large. Further, as shown in FIG. 15, the correlation amount C [L] of the pixel signal sequences Va and Vb changes according to the relative shift amount L of the pixel signal sequences Va and Vb.
[0119]
The defocus amount is obtained from the distance Ls shown in FIG. 14, that is, the shift amount L that minimizes the correlation amount C [L] shown in FIG.
In step S80, the pixel data (a [i + L]) at the (i + L) th position of the pixel signal string Va obtained by the image sensor 11 and the i-th position of the pixel signal string Vb obtained by the image sensor 12 are displayed. The difference from the pixel data (b [i]) is calculated. The absolute value of this difference is added for i in the range from k to r, and the sum is obtained as the correlation amount C [L].
[0120]
The shift amount L is sequentially changed in the range of -Lmax to Lmax, and the correlation amount C [L] is obtained for each shift amount L. Lmax is a predetermined maximum shift amount.
K and r that define the range of i in step S80 are determined according to the shift amount L as follows.
[0121]
If L ≧ 0:
k = k0 + INT (-L / 2) (4)
r = r0 + INT (−L / 2) (5)
If L <0:
k = k0 + INT (-(L + 1) / 2) (6)
r = r0 + INT (-(L + 1) / 2) (7)
However, k0 and r0 are k and r when the shift amount L is 0, respectively. INT () indicates the absolute value of the numerical value in parentheses.
[0122]
In step S80, the range of pixel combinations to be examined for correlation changes in accordance with the shift amount L as shown in FIG.
By the processing in step S80, as shown in FIG. 15, the relationship between the correlation amount C [L] and the shift amount L is obtained. As shown in FIG. 15, the correlation amount C [L] is a discrete value. Accordingly, when the defocus amount is directly obtained from the shift amount that minimizes the correlation amount C [L], an accurate defocus amount cannot be obtained if the pixel pitch is large.
[0123]
In order to obtain a more accurate defocus amount, steps S81, S82, S83, and S84 are performed.
In step S81, first, as shown in FIG. 16, a shift amount Le that minimizes the correlation amount C [L] is obtained. Then, half of the difference between the correlation amounts (C [L−1]) and (C [L + 1]) at two positions adjacent to the shift amount Le is obtained as DL.
[0124]
In step S82, the result obtained by subtracting the absolute value of DL obtained in step S81 from C [Le], which is the minimum value of the correlation amount C [L], is obtained as the true minimum value Cex of the correlation amount.
In step S83, the slope E of the characteristic of the correlation amount C [L] is obtained by the following equation.
E = Max (C [Le + 1] -C [Le], C [Le-1] -C [Le]) (8)
Note that Max () means that a larger value is selected from a plurality of elements in parentheses.
[0125]
In step S84, based on Le, DL, and E, an accurate shift amount Ls that minimizes the correlation amount C [L] of the pixel signal sequences Va and Vb is obtained by the following equation.
Ls = Le + DL / E (9)
In step S85, the defocus amount DF1 obtained by the image sensors 11 and 12 is obtained by the following equation.
[0126]
DF1 = Kf · Ls (10)
Here, Kf is a constant determined by the characteristics of the optical system shown in FIG. 1 and the pixel pitch of the image sensors 11 and 12.
The defocus amount DF1 obtained in step S85 may be affected by fluctuations that occur in the correlation amount due to noise or the like. Therefore, the reliability of the defocus amount DF1 is checked in the next steps S86 and S87.
[0127]
In step S86, the correlation amount gradient E obtained in step S83 is compared with a predetermined threshold value E1. The inclination E depends on the contrast of the pixel signal sequence obtained by the image sensors 11 and 12. That is, it is considered that the greater the slope E, the greater the contrast and the higher the reliability.
When the slope E is larger than the threshold value E1, it is considered that the reliability is high, and the process proceeds to step S87. If the slope E is equal to or less than the threshold value E1, the process proceeds to step S89.
[0128]
In step S87, a coefficient (Cex / E) is calculated using the minimum value Cex obtained in step S82 and the slope E obtained in step S83. This coefficient is compared with a predetermined threshold value G1.
The minimum value Cex is ideally 0. However, in actuality, the minimum value Cex is greater than 0 because of the influence of noise and the influence of parallax caused by the difference in the area of the photographing lens 51. In addition, the influence of noise and parallax decreases as the contrast of the subject increases. Therefore, the reliability is examined using the coefficient (Cex / E).
[0129]
Therefore, when the coefficient (Cex / E) is smaller than the threshold value G1, it is considered that the reliability is high, and the process proceeds to step S88. If the coefficient (Cex / E) is greater than or equal to the threshold value G1, the process proceeds to step S89.
The reliability can also be identified based on the contrast of the pixel signal sequence obtained by either one of the image sensors 11 and 12.
[0130]
In step S88, the reliability of the defocus amount DF1 obtained in step S85 is considered high, and the reliability flag FG1 is set.
In step S89, it is regarded that the reliability of the defocus amount DF1 obtained in step S85 is low, and the reliability flag FG1 is cleared.
In step S71 of FIG. 12, the defocus amount DF2 is calculated based on the digital pixel signal sequence obtained by the image sensors 21 and 22. The contents of this process are the same as the process of FIG. 13 except for the following points.
[0131]
The pixel signal sequence (a [i + L], b [i]) processed in step S80 is changed to the data obtained by the image sensors 21 and 22. The defocus amount calculated in step S85 is stored as DF2. Instead of the reliability flag FG1 in steps S88 and S89, the reliability flag FG2 is operated.
In step S72, the state of the reliability flag FG1 is checked to identify the reliability of the defocus amount DF1. That is, when the reliability flag FG1 is set, since the reliability of the defocus amount DF1 is high, the process proceeds to step S73. If the reliability flag FG1 is cleared, since the reliability of the defocus amount DF1 is low, the process proceeds to step S77.
[0132]
In step S73, the state of the reliability flag FG2 is checked to identify the reliability of the defocus amount DF2. That is, when the reliability flag FG2 is set, since the reliability of the defocus amount DF2 is high, the process proceeds to step S75. If the reliability flag FG2 is cleared, since the reliability of the defocus amount DF2 is low, the process proceeds to step S74.
[0133]
In step S74, since the defocus amount DF1 is more reliable than the defocus amount DF2, the defocus amount DF1 is stored as the final defocus amount DfL.
In step S75, the defocus amount DF1 is compared with the defocus amount DF2. In this case, since the reliability flags FG1 and FG2 are both set, the defocus amount DF1 and the defocus amount DF2 are both highly reliable. However, in this example, the smaller one of DF1 and DF2 is considered to have higher reliability. That is, of DF1 and DF2, the one closer to the in-focus state is selected.
[0134]
If the defocus amount DF1 is smaller than the defocus amount DF2, the process proceeds to step S74. If the defocus amount DF1 is greater than or equal to the defocus amount DF2, the process proceeds to step S76.
[0135]
In step S76, since the defocus amount DF2 has higher reliability than the defocus amount DF1, the defocus amount DF2 is stored as the final defocus amount DfL.
In step S77, the state of the reliability flag FG2 is checked to identify the reliability of the defocus amount DF2. That is, when the reliability flag FG2 is set, since the reliability of the defocus amount DF2 is high, the process proceeds to step S76. If the reliability flag FG2 is cleared, since the reliability of the defocus amount DF2 is low, the process proceeds to step S78.
[0136]
In step S78, since the defocus amounts DF1 and DF2 are low in reliability, invalid data is stored in the final defocus amount DfL.
(Second Embodiment)
FIG. 19 shows the configuration of the optical system of the focus detection apparatus in this embodiment. FIG. 20 shows a focus detection area in the shooting screen. . The configuration and operation of parts not shown are the same as those in the first embodiment. In FIG. 19, the same elements as those in the first embodiment are denoted by the same reference numerals.
[0137]
This will be described with reference to FIG. Similar to the first embodiment, a field mask 52B, a field lens 53, a stop 54B, a re-imaging lens 55B, and a detection substrate 56B are arranged on the optical axis of the photographing lens 51.
The field mask 52B, the stop 54B, and the re-imaging lens 55B are slightly different from the corresponding elements in the first embodiment in the shape and position of the opening.
[0138]
The arrangement of the four image sensors 11, 12, 21, and 22 on the detection board 56B is different from that of the first embodiment. That is, in the first set of image sensors 11 and 12 and the second set of image sensors 21 and 22, the arrangement direction of the light receiving portions is both directed in the horizontal direction (X direction). The two image sensors 11 and 12 are arranged side by side at positions close to each other.
[0139]
Therefore, the area A1 to be detected by the first set of image sensors 11 and 12 and the area A2 to be detected by the second set of image sensors 21 and 22 are close to each other as shown in FIG. However, it is arranged at a position slightly shifted up and down.
Further, only one sensor Ma is disposed in the vicinity of the image sensor 11 in order to detect the amount of received light. The amount of light received by the second set of image sensors 21 and 22 is also detected by the sensor Ma.
[0140]
In the first and second embodiments, the sensors Ma and Mb are provided in order to detect the amount of light received by the image sensors 11, 12, 21 and 22, but special sensors are used instead of the sensors Ma and Mb. A light quantity measuring device may be used.
Further, when the mode 1 and the mode 2 are not used, the installation of the sensors Ma and Mb may be omitted. In this case, when there is no record information, that is, when the counter CNT is 1, predetermined constants may be set as the accumulation times T1 and T2.
[0141]
In the first embodiment, a plurality of accumulation time setting modes are provided, and a function for selecting one of the modes is provided. However, the present invention is not limited to this, as long as it has at least one mode.
[0142]
【The invention's effect】
(Claim 1)
In the present invention, the response speed to the change in brightness of the subject is relatively fast in the first charge accumulation time and relatively slow in the second charge accumulation time. At least one of the second charge accumulation times is set to an appropriate state.
[0143]
Therefore, one of the accumulated charge amount of the first light receiving means and the accumulated charge amount of the second light receiving means is appropriate, and the focus detecting means is at least one of the first light receiving means and the second light receiving means. There is a high possibility that the focus state of the photographing optical system can always be correctly detected on the basis of the signal output from.
(Claim 2)
In the present invention, the second charge accumulation time is controlled so as not to follow the light intensity change that changes quickly. Therefore, for example, it becomes difficult to be affected by a high-luminance obstacle passing through the vicinity of the subject.
[0144]
(Claim 3)
In the present invention, when a large change occurs in the luminance of the subject between the first time point and the second time point, the accumulated charge amount of the second light receiving means is controlled based on the luminance before the change, The accumulated charge amount of the first light receiving means is controlled based on the luminance after the change. For this reason, at least one of the first light receiving means and the second light receiving means is appropriately controlled in the amount of accumulated charges.
[0145]
Therefore, even if the luminance of the subject fluctuates greatly, there is a high possibility that the focus state can be correctly detected based on the signal output from at least one of the first light receiving means and the second light receiving means.
(Claim 4)
The response speed with respect to the change in brightness of the subject is relatively fast in the first charge accumulation time and relatively slow in the second charge accumulation time. Accordingly, in various situations, the accumulated charge amount of at least one of the first light receiving unit and the second light receiving unit is appropriate.
[0146]
(Claim 5)
In the present invention, the first charge accumulation time can be controlled so as to follow even when the brightness of the subject fluctuates at a cycle shorter than the first charge accumulation time. Therefore, there is a high possibility that the accumulated charge amount of the first light receiving means becomes appropriate.
(Claim 6)
In the present invention, for example, even when a high-luminance obstacle passes in the vicinity of the subject, the accumulated charge amount of the second light receiving means is determined based on the luminance of the subject after focusing. Therefore, there is a high possibility that the accumulated charge amount of the second light receiving means is appropriate.
[0147]
( Claim 7 )
In the present invention, even if the focus state is detected by switching the output signal of the first light receiving means and the output signal of the second light receiving means, the detected focus state does not vary greatly. .
[0148]
(Claims 8 )
In the present invention, even if the focus state is detected by switching the output signal of the first light receiving means and the output signal of the second light receiving means, the detected focus state does not vary greatly. .
(Claims 9 )
In the present invention, the output of either the first light-receiving means or the second light-receiving means, regardless of whether the subject has a luminance change only in the horizontal direction or the subject has a luminance change only in the vertical direction. Based on this, the state of the focus can be detected.
[0149]
(Claims 10 )
In the present invention, the focus detection unit detects the focus state of the photographing optical system based on the reliability of the first defocus amount and the reliability of the second defocus amount. The reliability of can be further increased.
(Claims 11 )
In the present invention, the combination of the process for determining the first charge accumulation time and the process for determining the second charge accumulation time can be selectively switched from among a plurality by the switch means. Therefore, in various situations, the accumulated charge amount of the first light receiving means and the accumulated charge amount of the second light receiving means are appropriately controlled.
[Brief description of the drawings]
FIG. 1 is an exploded perspective view showing a configuration of an optical system of a focus detection apparatus.
FIG. 2 is a block diagram showing an electric circuit of a focus detection apparatus including the optical system of FIG.
FIG. 3 is a timing chart showing an example of main signal timings in the focus detection apparatus of FIG. 2;
4 is a flowchart showing an outline of the operation of the control unit 30 of FIG.
FIG. 5 is a flowchart showing details of step S4 in FIG. 4;
6 is a flowchart showing details of step S5 in FIG.
FIG. 7 is a flowchart showing details of step S23 in FIG. 5;
FIG. 8 is a flowchart showing details of step S24 in FIG.
FIG. 9 is a flowchart showing details of step S25 in FIG.
FIG. 10 is a flowchart showing details of step S28 in FIG. 6;
FIG. 11 is a flowchart showing details of step S29 in FIG. 6;
FIG. 12 is a flowchart showing details of step S12 in FIG. 4;
13 is a flowchart showing details of steps S70 and S71 in FIG.
FIG. 14 is a graph showing the distribution of two one-dimensional image signals Va and Vb obtained by detecting light passing through different paths.
FIG. 15 is a graph showing a correlation amount between two one-dimensional image signals Va and Vb.
FIG. 16 is a graph showing details of a part of FIG. 15;
FIG. 17 is a front view showing a focus detection area in a photographing screen.
FIG. 18 is a schematic diagram illustrating a combination of pixels of two one-dimensional image signals Va and Vb that are referred to when calculating the correlation amount.
FIG. 19 is a plan view showing an optical system of a focus detection apparatus according to a second embodiment.
FIG. 20 is a front view showing a focus detection area in a shooting screen according to the second embodiment.
[Explanation of symbols]
11, 12, 21, 22 Image sensor
13, 23 Timing control circuit
14,24 Sampling circuit
15, 25 Light quantity detection circuit
16, 26 A / D conversion circuit
17, 27 Comparison circuit
30 Control unit
31, 32, 33, 34, 35, 36, 37, 38 Signal lines
40 Focus detection switch
51 Photo lens
52,52B Field mask
53 Field Lens
54,54B Aperture
55,55B Re-imaging lens
56, 56B detection board
Ma, Mb sensor
SW mode switch
U1, U2 detection unit

Claims (11)

撮影光学系を介して入射する光の強度に応じて発生する電荷を蓄積し、第1の電荷蓄積時間中に蓄積された電荷量に応じた信号を出力する第1の受光手段と、
前記撮影光学系を介して入射する光の強度に応じて発生する電荷を蓄積し、第2の電荷蓄積時間中に蓄積された電荷量に応じた信号を出力する第2の受光手段と、
前記第1の受光手段に入射する光の強度に基づいて前記第1の受光手段の前記第1の電荷蓄積時間を決定するとともに、前記第2の受光手段に過去に入射した光の強度に関する情報に基づいて前記第2の受光手段の前記第2の電荷蓄積時間を決定することにより、前記入射する光の強度の変化に対する前記第1および第2の受光手段の応答速度を変え、前記第1の電荷蓄積時間と前記第2の電荷蓄積時間によってそれぞれ前記第1の受光手段と前記第2の受光手段を並行して蓄積制御する蓄積制御手段と、
前記撮影光学系の焦点状態を、前記第1の受光手段と第2の受光手段の少なくとも一方が出力する信号に基づいて検出する焦点検出手段
設けたことを特徴とする焦点検出装置。
First light receiving means for accumulating charges generated according to the intensity of light incident through the photographing optical system and outputting a signal corresponding to the amount of charges accumulated during the first charge accumulation time;
A second light receiving means for accumulating charges generated according to the intensity of light incident through the photographing optical system and outputting a signal corresponding to the amount of charges accumulated during the second charge accumulation time;
Information on the intensity of the light incident on the second light receiving means in the past while determining the first charge accumulation time of the first light receiving means based on the intensity of the light incident on the first light receiving means. By determining the second charge accumulation time of the second light receiving means based on the above, the response speed of the first and second light receiving means with respect to the change in the intensity of the incident light is changed, and the first charge receiving time is changed. Accumulation control means for controlling accumulation of the first light receiving means and the second light receiving means in parallel according to the charge accumulation time and the second charge accumulation time, respectively.
The focus state of the photographing optical system, and the focus detection means for detecting, based on at least signal one of which outputs of said first light receiving means and the second light receiving means
Focus detection device, characterized in that the provided.
請求項1記載の焦点検出装置において、前記蓄積制御手段は、前記第2の受光手段によって、過去に得られた複数の前記光の強度に関する情報に基づいて、前記第2の電荷蓄積時間を決定することを特徴とする焦点検出装置。  2. The focus detection apparatus according to claim 1, wherein the accumulation control unit determines the second charge accumulation time based on information on the plurality of light intensities obtained in the past by the second light receiving unit. A focus detection device. 請求項1記載の焦点検出装置において、前記蓄積制御手段は、過去の第1時点において前記第1の受光手段によって得られた前記光の強度に基づいて、前記第1の電荷蓄積時間を決定するとともに、前記第1時点より過去の第2時点において前記第2の受光手段によって得られた前記光の強度に基づいて、前記第2の電荷蓄積時間を決定することを特徴とする焦点検出装置。  2. The focus detection apparatus according to claim 1, wherein the accumulation control unit determines the first charge accumulation time based on the intensity of the light obtained by the first light receiving unit at a first past time point. In addition, the focus detection apparatus determines the second charge accumulation time based on the intensity of the light obtained by the second light receiving unit at a second time point before the first time point. 請求項1記載の焦点検出装置において、前記蓄積制御手段は、互いに異なる時点に、前記第1の受光手段によって得られた前記光の強度に関する複数のN個の情報に基づいて、前記第1の電荷蓄積時間を決定するとともに、互いに異なる時点に、前記第2の受光手段によって得られた前記光の強度に関するNとは異なる数の複数の情報に基づいて、前記第2の電荷蓄積時間を決定することを特徴とする焦点検出装置。  2. The focus detection apparatus according to claim 1, wherein the accumulation control unit is configured to perform the first control based on a plurality of pieces of N information related to the light intensity obtained by the first light receiving unit at different times. The charge accumulation time is determined, and the second charge accumulation time is determined at different time points based on a plurality of pieces of information different from N regarding the light intensity obtained by the second light receiving means. A focus detection device. 請求項1記載の焦点検出装置において、入射光の強度を検出する光量検出手段を、前記第1の受光手段の近傍に設け、前記蓄積制御手段が、前記光量検出手段の出力に基づいて前記第1の電荷蓄積時間を決定することを特徴とする焦点検出装置。  2. The focus detection apparatus according to claim 1, wherein a light amount detecting means for detecting the intensity of incident light is provided in the vicinity of the first light receiving means, and the accumulation control means is configured to output the first light based on an output of the light amount detecting means. 1. A focus detection apparatus, wherein a charge accumulation time of 1 is determined. 請求項1記載の焦点検出装置において、検出される焦点の状態が、予め定めた目標範囲内になると、前記蓄積制御手段が、前記第2の電荷蓄積時間の更新を停止することを特徴とする焦点検出装置。  2. The focus detection apparatus according to claim 1, wherein the accumulation control means stops updating the second charge accumulation time when the detected focus state falls within a predetermined target range. Focus detection device. 請求項1記載の焦点検出装置において、前記第1の受光手段が検出する像の領域と、前記第2の受光手段が検出する像の領域とが互いに近接した状態で、前記第1の受光手段と前記第2の受光手段を配置したことを特徴とする焦点検出装置。  2. The focus detection apparatus according to claim 1, wherein an image area detected by the first light receiving means and an image area detected by the second light receiving means are close to each other. And a focus detection apparatus, wherein the second light receiving means is arranged. 請求項1記載の焦点検出装置において、前記第1の受光手段が検出する像の領域と、前記第2の受光手段が検出する像の領域とが部分的に重なった状態で、前記第1の受光手段と前記第2の受光手段を配置したことを特徴とする焦点検出装置。  2. The focus detection apparatus according to claim 1, wherein an area of an image detected by the first light receiving unit and an area of an image detected by the second light receiving unit partially overlap each other. A focus detection apparatus comprising a light receiving means and the second light receiving means. 請求項1記載の焦点検出装置において、前記第1の受光手段が検出する像の領域の軸方向と、前記第2の受光手段が検出する像の領域の軸方向とが互いにほぼ直交する状態で、前記第1の受光手段と前記第2の受光手段を配置したことを特徴とする焦点検出装置。  2. The focus detection apparatus according to claim 1, wherein the axial direction of the image area detected by the first light receiving means and the axial direction of the image area detected by the second light receiving means are substantially orthogonal to each other. A focus detection apparatus comprising the first light receiving means and the second light receiving means. 請求項1記載の焦点検出装置において、前記第1の受光手段の信号から求められる第1のデフォーカス量の信頼度と、前記第2の受光手段の信号から求められる第2のデフォーカス量の信頼度を識別する、信頼度識別手段を設け、前記焦点検出手段が、前記第1のデフォーカス量の信頼度と第2のデフォーカス量の信頼度に基づいて、前記撮影光学系の焦点状態を検出することを特徴とする焦点検出装置。  2. The focus detection apparatus according to claim 1, wherein the reliability of the first defocus amount obtained from the signal from the first light receiving means and the second defocus amount obtained from the signal from the second light receiving means. Confidence level identification means is provided for identifying the reliability level, and the focus detection means determines the focus state of the photographing optical system based on the reliability of the first defocus amount and the reliability of the second defocus amount. A focus detection apparatus for detecting 請求項1記載の焦点検出装置において、前記第1の電荷蓄積時間を決定する処理と前記第2の電荷蓄積時間を決定する処理との組み合わせを、複数の中から選択的に切り替えるスイッチ手段を設けたことを特徴とする焦点検出装置。  2. The focus detection apparatus according to claim 1, further comprising switch means for selectively switching a combination of a process for determining the first charge accumulation time and a process for determining the second charge accumulation time from a plurality. A focus detection apparatus characterized by that.
JP24843697A 1997-09-12 1997-09-12 Focus detection device Expired - Lifetime JP4140069B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP24843697A JP4140069B2 (en) 1997-09-12 1997-09-12 Focus detection device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP24843697A JP4140069B2 (en) 1997-09-12 1997-09-12 Focus detection device

Publications (2)

Publication Number Publication Date
JPH1184224A JPH1184224A (en) 1999-03-26
JP4140069B2 true JP4140069B2 (en) 2008-08-27

Family

ID=17178107

Family Applications (1)

Application Number Title Priority Date Filing Date
JP24843697A Expired - Lifetime JP4140069B2 (en) 1997-09-12 1997-09-12 Focus detection device

Country Status (1)

Country Link
JP (1) JP4140069B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4736230B2 (en) * 2000-04-26 2011-07-27 株式会社ニコン Focus detection device, camera and image sensor system
JP4586862B2 (en) * 2008-02-22 2010-11-24 カシオ計算機株式会社 Code reader

Also Published As

Publication number Publication date
JPH1184224A (en) 1999-03-26

Similar Documents

Publication Publication Date Title
US4716434A (en) Focus condition detecting device
US5517274A (en) Automatic focusing apparatus of a camera
US7071985B1 (en) Optical device and method for selecting object of focus
US4734571A (en) Focus condition detecting device having correlation calculation means and means for determining the range of shifts of image signals
JP3118610B2 (en) Focus state detector
US4882601A (en) Camera with an automatic focusing device
US4851657A (en) Focus condition detecting device using weighted center or contrast evaluation
US6973262B2 (en) Camera and wide-angle field distance-measuring camera
JP4426669B2 (en) Multi AF device
JPS59126517A (en) Focusing detector of camera
JP2000180709A (en) Range-finding device
US5293034A (en) Focus state detection device
JP4641502B2 (en) Focus detection apparatus and optical instrument
JP2001083404A (en) Multipoint range-finding device and multipoint range- finding camera provided therewith
JP4140069B2 (en) Focus detection device
US5721977A (en) Distance measuring apparatus of camera improved in measuring process
US5475466A (en) Camera having target follow up function
JP3806489B2 (en) Ranging device
JP2001356384A (en) Photometric device
JPH04235512A (en) Focus detecting device having grouping function
US6507707B2 (en) Distance measuring apparatus and distance measuring method
JPH11337814A (en) Optical device
JP2001305422A (en) Range finder
JP4647771B2 (en) Ranging device
JPH10161014A (en) Automatic focus detector using two-dimensional sensor

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20040913

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20070130

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20070925

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20071122

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20080520

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20080602

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

Free format text: PAYMENT UNTIL: 20110620

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20110620

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20140620

Year of fee payment: 6

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

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

Free format text: PAYMENT UNTIL: 20140620

Year of fee payment: 6

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

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

Free format text: PAYMENT UNTIL: 20140620

Year of fee payment: 6

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

EXPY Cancellation because of completion of term