JPH0541967B2 - - Google Patents

Info

Publication number
JPH0541967B2
JPH0541967B2 JP33263588A JP33263588A JPH0541967B2 JP H0541967 B2 JPH0541967 B2 JP H0541967B2 JP 33263588 A JP33263588 A JP 33263588A JP 33263588 A JP33263588 A JP 33263588A JP H0541967 B2 JPH0541967 B2 JP H0541967B2
Authority
JP
Japan
Prior art keywords
lens
focus
correction
amount
time
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
JP33263588A
Other languages
Japanese (ja)
Other versions
JPH02176735A (en
Inventor
Masaki Higashihara
Ichiro Oonuki
Akira Akashi
Terutake Kadohara
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP33263588A priority Critical patent/JPH02176735A/en
Publication of JPH02176735A publication Critical patent/JPH02176735A/en
Publication of JPH0541967B2 publication Critical patent/JPH0541967B2/ja
Granted legal-status Critical Current

Links

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はカメラ等に用いられる自動焦点調節装
置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an automatic focus adjustment device used in cameras and the like.

〔従来の技術〕[Conventional technology]

従来、一眼レフ・カメラの自動焦点調節方式の
多くは「焦点検出(センサ信号入力、焦点検出演
算)、レンズ駆動」のサイクルを繰り返し行うこ
とによつて、被写体にピントを合わせようとする
ものである。各サイクルにおけるレンス駆動量は
そのサイクルで焦点検出を行つた時点でのデフオ
ーカス量に基づいており、これはレンズ駆動終了
時に焦点検出時のデフオーカス量が解消されるこ
とを期待している。
Traditionally, most automatic focus adjustment systems for single-lens reflex cameras attempt to focus on the subject by repeating the cycle of focus detection (sensor signal input, focus detection calculation) and lens drive. be. The amount of lens drive in each cycle is based on the amount of defocus at the time point when focus detection is performed in that cycle, and this is expected to eliminate the amount of defocus at the time of focus detection when the lens drive ends.

当然のことながら、焦点検出、レンズ駆動には
それ相当の時間を必要とするわけであるが、静止
した被写体の場合には、レンズを駆動しない限り
デフオーカス量の変化がないので、レンズ駆動が
終了した時点に解消すべきデフオーカス量は、焦
点検出時点でのデフオーカス量に等しく、正しい
焦点調節が行われる。
Naturally, it takes a considerable amount of time to detect the focus and drive the lens, but in the case of a stationary subject, the amount of defocus will not change unless the lens is driven, so the lens drive ends. The amount of def focus to be canceled at the time point is equal to the amount of def focus at the time point of focus detection, and correct focus adjustment is performed.

ところが、動きの大きな被写体の場合には、焦
点検出、レンズ駆動中にデフオーカス量が変化
し、前記解消すべきデフオーカス量と検出デフオ
ーカス量が著しく異なることがあり、結果とし
て、レンズ駆動終了時に被写体にピントが合つて
いないという問題になる。
However, in the case of a subject with large movements, the amount of def focus changes during focus detection and lens drive, and the amount of def focus to be eliminated and the amount of detected def focus may be significantly different. The problem is that the image is out of focus.

上記問題点の解決を目的とした自動焦点調節方
法として、本出願人は特願昭62−263728号を提案
している。
The present applicant has proposed Japanese Patent Application No. 62-263728 as an automatic focusing method aimed at solving the above problems.

同提案によつて開示されている方法の要旨は、
上記各サイクルにおける検出デフオーカス量、レ
ンズ駆動量と各サイクルの時間間隔を鑑みて、被
写体の移動に起因する像面位置と時間の関係を1
次関数および2次関数に近似し、レンズ駆動量に
補正をかけようとするものであり、上記問題の改
善が期待される。
The gist of the method disclosed by the proposal is as follows:
Considering the amount of detected defocus in each cycle, the amount of lens drive, and the time interval of each cycle, the relationship between the image plane position and time due to the movement of the subject is calculated as follows.
This is an attempt to correct the lens driving amount by approximating the following function and quadratic function, and is expected to improve the above problem.

しかしながら、このような予測方法の場合、レ
ンズ駆動誤ならびに焦点検出誤差によつて、予測
したレンズ位置と実際の像面位置に差(予測誤
差)が生じる。この予測誤差は、上記焦点検出誤
差、レンズ駆動誤差の数倍〜十数倍の大きさに拡
大される。このため従来の自動焦点調節装置では
像面深度内に被写体が入り、ピントが合つている
と判断できる場合にも、前記予測方法を用いる
と、ピント位置が像面深度外に出てしまい、ピン
ボケ写真になつてしまう可能性があつた。このよ
うな問題点の解決を目的とした自動焦点調節方法
として、本出願人は特願昭63−25490号を提案し
ている。
However, in such a prediction method, a difference (prediction error) occurs between the predicted lens position and the actual image plane position due to lens drive errors and focus detection errors. This prediction error is magnified to several times to ten times as large as the focus detection error and lens drive error. For this reason, even if the subject is within the depth of field and can be determined to be in focus with conventional automatic focus adjustment devices, if the above prediction method is used, the focus position will be outside the depth of field and the subject will be out of focus. There was a possibility that it would turn into a photograph. The present applicant has proposed Japanese Patent Application No. 63-25490 as an automatic focusing method aimed at solving these problems.

同提案によつ開示されている方法の要旨は、予
測演算に用いる数次の予測関数のうち、焦点検出
誤差やレンズ駆動誤差の影響を受けやすく、予測
誤差の発生量が大きい高次の項を補正することに
よつて、レンズ駆動系や焦点検出系で発生する誤
差の影響を減少させ、予測精度を向上させようと
したものである。
The gist of the method disclosed in the proposal is that, among the multi-order prediction functions used in prediction calculations, the high-order terms are susceptible to focus detection errors and lens drive errors, and generate a large amount of prediction errors. By correcting this, the effect of errors occurring in the lens drive system and focus detection system is reduced, and the prediction accuracy is improved.

〔発明が解決しようとしている問題点〕[Problem that the invention is trying to solve]

本発明は上記予測方法による焦点調節に対する
更なる改良に関し、予測関数の高次の項を補正す
ることによつて発生するピントズレを解消するも
のである。
The present invention relates to further improvements in focus adjustment using the above prediction method, and is intended to eliminate out-of-focus caused by correcting higher-order terms of the prediction function.

以下、上記補正によつて発生するピントズレに
ついて説明する。
The focus shift caused by the above correction will be explained below.

第2図は上述のレンズ駆動補正方法を説明する
ための図である。図中の横軸は時刻t、縦軸は被
写体の像面位置xを表わしている。
FIG. 2 is a diagram for explaining the above-mentioned lens drive correction method. The horizontal axis in the figure represents time t, and the vertical axis represents the image plane position x of the subject.

実線で表わした曲線x(t)は撮影レンズが無限遠
にあるときに、カメラに対して光軸方向に接近し
てくる被写体の時刻tにおける像面位置を意味し
ている。破線で表わしたl(t)は時刻tにおける撮
影レンズ位置を意味しており、x(t)とl(t)が一致
したときに合焦となる。そして[ti,ti]が焦点
検出動作時間、[ti′,ti+1]がレンズ駆動動作時間
を示すものである。また、同図に示した例では、
像面位置が2次関数(at2+bt+c)に従つて変
化するという仮定をおいている。即ち、時刻t3
おいて現在および過去3回の像面位置(t1,x1
(t2,x2)(t3,x3)がわかれば、時刻t3よりTL
(AFタイムラグ+レリーズタイムラグ)後の時刻
t4での像面位置x4が予測できるものである(AF
タイムラグ:焦点検出及びレンズ駆動に要する時
間、レリーズタイムラグ:レリーズ指令がだされ
てから、露光が開始されるまでの時間。
The curve x(t) represented by a solid line indicates the image plane position at time t of a subject approaching the camera in the optical axis direction when the photographing lens is at infinity. l(t) indicated by a broken line means the position of the photographing lens at time t, and when x(t) and l(t) match, the image is in focus. [t i , t i ] represents the focus detection operation time, and [t i ′, t i+1 ] represents the lens drive operation time. In addition, in the example shown in the same figure,
It is assumed that the image plane position changes according to a quadratic function (at 2 +bt+c). That is, at time t 3 , the current and past three image plane positions (t 1 , x 1 )
If (t 2 , x 2 ) (t 3 , x 3 ) is known, TL from time t 3
Time after (AF time lag + release time lag)
The image plane position x 4 at t 4 can be predicted (AF
Time lag: Time required for focus detection and lens drive, Release time lag: Time from when a release command is issued until exposure starts.

ところが実際にカメラが検知し得るのは、像面
位置X1,X2,X3ではなく、デフオーカス量DF1
DF2,DF3ならびに、像面移動量換算のレンズ駆
動量DL1,DL2である。そして、時刻t4はあくま
で将来の値であり、実際には、被写体輝度による
蓄積型のセンサの蓄積時間の変化やレンズの駆動
量の変化によるレンズ駆動時間の変化に従つて変
化する値であるが、ここでは簡単のため、次のよ
うに仮定する。
However, what the camera actually detects is not the image plane positions X 1 , X 2 , and X 3 but the differential focus amounts DF 1 ,
These are DF 2 and DF 3 as well as lens drive amounts DL 1 and DL 2 in terms of image plane movement amount. Time t4 is just a value in the future, and is actually a value that changes as the storage time of the storage type sensor changes due to subject brightness and the lens drive time changes due to changes in the amount of lens drive. However, for simplicity, we assume the following.

t4−t3=TL=TM2+(レリーズタイムラグ)
(1) 以上の仮定の下に、時間t3での焦点検出結果か
ら算出されたレンズ駆動量DL3は以下のように求
まる。
t 4 − t 3 = TL = TM 2 + (release time lag)
(1) Under the above assumptions, the lens drive amount DL 3 calculated from the focus detection result at time t 3 is determined as follows.

x(t)=at2+bt+c (2) そして、図中の(t1,l1)の原点を考えると、 t1=0 x1=DF1 (3) t2=TM1 x2=DF2+DL1 (4) t3=TM1+TM2 x3=DF3+DL1+DL2 (5) (2)式に(3),(4),(5)式を代入してa,b,cを求
めると、 a=DF3+DL2−DF2/(TM1+TM2)・TM2+ DF1−DL1−DF2/(TM1+TM2)・TM1 (6) b=DF2+DL1−DF1−a・TM1 2/TM1 (7) c=DF1 (8) よつて時刻t4における像面移動量換算のレンズ
駆動量DL3は、 DL3=x4−l3 =x4−x3+DF3 =a{(TM1+TM2+TL)2−(TM1
TM22} +b・TL+DF3 (9) のように求まる。
x(t)=at 2 +bt+c (2) And considering the origin of (t 1 , l 1 ) in the figure, t 1 = 0 x 1 = DF 1 (3) t 2 = TM 1 x 2 = DF 2 +DL 1 (4) t 3 = TM 1 + TM 2 x 3 = DF 3 + DL 1 + DL 2 (5) Substituting equations (3), (4), and (5) into equation (2), a, b, When calculating c, a=DF 3 +DL 2 −DF 2 /(TM 1 +TM 2 )・TM 2 + DF 1 −DL 1 −DF 2 /(TM 1 +TM 2 )・TM 1 (6) b=DF 2 +DL 1 -DF 1 -a・TM 1 2 /TM 1 (7) c=DF 1 (8) Therefore, the lens drive amount DL 3 converted to the image plane movement amount at time t 4 is DL 3 = x 4 - l 3 = x 4 − x 3 + DF 3 = a {(TM 1 + TM 2 + TL) 2 − (TM 1 +
TM 2 ) 2 } +b・TL+DF 3 (9)

次に焦点検出誤差やレンズ駆動誤差によつて発
生する予測誤差を低減させるための2次の項の補
正方法について第3図を使つて説明する。
Next, a method of correcting the quadratic term for reducing prediction errors caused by focus detection errors and lens drive errors will be explained using FIG.

第3図は像面位置と時間の関係を示したもので
ある。
FIG. 3 shows the relationship between the image plane position and time.

この図で実線は実際に被写体の移動によつて移
動している像面位置と仮定し、t1及びt2でそれぞ
れ、δ1,δ2の誤差が生じた場合、予測関数は一点
鎖線のようになり、予測エラーδeはδ1,δ2の約11
倍の大きさとなつている。
Assuming that the solid line in this figure is the image plane position that actually moves due to the movement of the subject, if an error of δ 1 and δ 2 occurs at t 1 and t 2 , respectively, the prediction function will change to the dot-dashed line. The prediction error δ e is approximately 11 of δ 1 and δ 2
It has become twice the size.

そこで、(9)式の像面移動量換算のレンズ駆動量
DL3を計算する際に2次の項を補正系数TFによ
つて次式のように補正を行う。
Therefore, the lens drive amount converted to the image plane movement amount in equation (9) is
When calculating DL 3 , the second-order term is corrected using the correction coefficient TF as shown in the following equation.

DL3=TF・a{(TM1+TM2+TL)2−(TM1
TM22} +b・TL+DF3 (10) (ただし0<TF≦1である) 第3図の場合、補正系数TF=0.6とすると、予
測関数は破線のようになり、予測エラーδe′は未
補正の予測エラーδeの約1/8に減少することとな
る。
DL 3 = TF・a {(TM 1 + TM 2 + TL) 2 − (TM 1 +
TM 2 ) 2 } +b・TL+DF 3 (10) (0<TF≦1) In the case of Fig. 3, if the correction coefficient TF=0.6, the prediction function will be as shown by the broken line, and the prediction error δ e ′ will be reduced to about 1/8 of the uncorrected prediction error δ e .

このような補正による対策は非線形な関数を線
形な関数に近づける効果があるため、焦点検出動
作時間間隔が小さく、像面の移動を線形な関数に
近似できる場合には、特に効果が大きい。
Such correction measures have the effect of bringing a nonlinear function closer to a linear function, so it is particularly effective when the focus detection operation time interval is short and the movement of the image plane can be approximated to a linear function.

しかしながら、像面の移動を線形な関数に近似
できない場合には、補正によるピントズレが発生
する。
However, if the movement of the image plane cannot be approximated to a linear function, out-of-focus occurs due to correction.

上記補正によるピントズレの発生を第4図、第
5図を使つて説明する。
The occurrence of out-of-focus caused by the above correction will be explained using FIGS. 4 and 5.

第4図は縦軸は像面位置、横軸は時刻であり、
被写体がカメラに対して近づいてくる場合の一般
的な像面位置の変化を示したものである。この図
の実線は実際に移動する像面の位置であり、これ
を2次関数に近似すると次式のようになる。
In Figure 4, the vertical axis is the image plane position and the horizontal axis is time.
This shows a general change in the image plane position when a subject approaches the camera. The solid line in this figure is the position of the image plane that actually moves, and if this is approximated to a quadratic function, the following equation is obtained.

x(t)=at2+bt+c (11) これに対して、補正係数TFで補正を行つた関
数は次式のようになる。
x(t)=at 2 +bt+c (11) On the other hand, the function corrected by the correction coefficient TF is as shown in the following equation.

x(t)=TF・a・t2+b・t+c (12) (a>0,b>0,0<TF<1) ここで、t1,t2は過去に測距(焦点検出)を行
つた時刻であり、t3は現在の時刻、そしてt4は予
測目標となる時刻である。よつて、次回レンズ駆
動を行う目標はx4である。
x(t)=TF・a・t 2 +b・t+c (12) (a>0, b>0, 0<TF<1) Here, t 1 and t 2 are distance measurement (focus detection) performed in the past. t3 is the current time, and t4 is the predicted target time. Therefore, the target for the next lens drive is x4 .

しかしながら、(12)式のような補正を行うと時刻
t4での予測した像面位置はx4′となり、実際の値
x4に対してδeという予測誤差(ピントズレ)が発
生する。これは、予測関数の非線形成分が大きい
ほど大きく、また、補正係数が小さいほど大きく
なる。
However, if a correction like equation (12) is made, the time
The predicted image plane position at t 4 is x 4 ′, which is the actual value
A prediction error (out of focus) of δ e occurs for x 4 . This becomes larger as the nonlinear component of the prediction function becomes larger, and becomes larger as the correction coefficient becomes smaller.

ここで、近づいてくる被写体の場合、一般的に
(11)、(12)式の係数a,bはa>0,b>0であり、
一定速度で近づいてくる場合には、遠くの被写体
より近くの被写体の方が非線形成分(ここでは2
次の成分)が大きく像面の移動速度も大きい。す
なわち、遠くの被写体では予測関数の補正による
予測誤差δeは十分小さいが、近くの被写体ではこ
の誤差が問題となることがある。そして、そのと
きのピントズレは一般的な条件(a>0)であれ
ば常に追従遅れ、すなわち、後ピン状態となる。
Here, in the case of an approaching subject, generally
The coefficients a and b of equations (11) and (12) are a>0, b>0,
When approaching at a constant speed, a nearby object has a nonlinear component (here 2
(next component) is large, and the moving speed of the image plane is also large. That is, for a distant subject, the prediction error δ e due to correction of the prediction function is sufficiently small, but for a nearby subject, this error may become a problem. If the focus deviation at that time is under the general condition (a>0), the tracking will always be delayed, that is, the object will be in a backward focus state.

次に、第5図の縦軸は像面位置、横軸は時刻で
あり、被写体がカメラに対して遠ざかる場合の一
般的な像面の移動を示したものである。この図の
実線は実際に移動する像面の位置であり、これを
2次関数に近似すると次式のようになる。
Next, the vertical axis in FIG. 5 is the image plane position, and the horizontal axis is the time, which shows the general movement of the image plane when the subject moves away from the camera. The solid line in this figure is the position of the image plane that actually moves, and if this is approximated to a quadratic function, the following equation is obtained.

x(t)=at2+bt+c(13) (a>0,b<0) これに対して、補正係数TFによつて補正を行
つた予測関数は次式のようになる。
x(t)=at 2 +bt+c(13) (a>0, b<0) On the other hand, the prediction function corrected by the correction coefficient TF is as shown in the following equation.

x(t)=TF・at2+bt+c(14) (a>0,b<0,0<TF<1) ここで、t1,t2は過去に測距を行つた時刻であ
り、t3は現在の時刻、t4は予測目標となる時刻で
ある。よつて、次回のレンズ駆動を行う目標はx4
である。
x(t)=TF・at 2 +bt+c(14) (a>0, b<0, 0<TF<1) Here, t 1 and t 2 are times when distance measurement was performed in the past, and t 3 is the current time, and t4 is the prediction target time. Therefore, the goal for the next lens drive is x 4
It is.

しかしながら、(14)式のような補正を行うと時刻
t4での像面位置をx4′と予測してしまい、δeという
予測誤差が発生する。
However, if a correction like equation (14) is made, the time
The image plane position at t 4 is predicted to be x 4 ′, and a prediction error of δ e occurs.

ここで、遠ざかる被写体の場合、(13)、(14)式の係
数a,bは一般にa>0,b<0であり、一定速
度で遠ざかる被写体の場合には、遠くの被写体よ
り近くの被写体の方が非線形成分(ここでは2次
の成分)が大きく、像面の移動速度も大きい。す
なわち、遠くの被写体では予測関数の非線形成分
の補正による予測誤差は十分に小さいが、非線形
成分の大きい近くの被写体ではこの誤差が問題と
なることがある。そして、この予測誤差は一般的
条件(a>0)であれば、常にレンズが先行気
味、すなわち、後ピン状態となる。
Here, in the case of a subject moving away, the coefficients a and b in equations (13) and (14) are generally a > 0, b < 0, and in the case of a subject moving away at a constant speed, a nearby subject is more important than a distant subject. The nonlinear component (here, the second-order component) is larger, and the moving speed of the image plane is also larger. That is, for a distant object, the prediction error due to correction of the nonlinear component of the prediction function is sufficiently small, but for a nearby object with a large nonlinear component, this error may become a problem. If this prediction error is under the general condition (a>0), the lens always tends to be in the lead, that is, in the rear focus state.

このように、予測関数の高次の項を補正する
と、像面位置の非線形な変化に対する追従性能が
低下し、常に後ピン状態となる問題点があつた。
In this way, when the high-order terms of the prediction function are corrected, the tracking performance for nonlinear changes in the image plane position deteriorates, resulting in a problem that the camera is always in a back-focus state.

〔問題点を解決するための手段〕[Means for solving problems]

本発明は上記事項に鑑みなされたもので、その
構成として焦点検出回路出力に基づいてレンズを
駆動する焦点調節装置において、過去の焦点調節
動作における焦点調節データーに基づき所定時間
後における被写体の位置に応じたレンズ駆動量又
は被写体の像面位置に応じたレンズ駆動量を高次
の関数式により予測演算する演算回路を設け、所
定時間後の被写体位置に対して合焦させるべくレ
ンズ駆動を行なうとともに、 前記関数式の最高次の係数に対して1より小
で、かつ0より大の所定値を乗じた補正係数を有
する補正関数式にて前記予測演算を行なわせる補
正回路と、前記焦点調節データーの信頼性を判定
しデーターの信頼性が低い時には前記補正回路に
より補正関数式を用いて予測演算を行なわせ、デ
ーターの信頼性が高い時には補正前の関数式にて
前記予測演算を行なわせる判定回路を設け、上記
の問題を解消したものである。
The present invention has been made in view of the above-mentioned matters, and includes a focus adjustment device that drives a lens based on the output of a focus detection circuit. An arithmetic circuit is provided that predicts and calculates the amount of lens drive corresponding to the image plane position of the object or the amount of lens drive that corresponds to the image plane position of the object using a high-order functional formula, and drives the lens to bring the object into focus after a predetermined period of time. , a correction circuit that performs the predictive calculation using a correction function formula having a correction coefficient obtained by multiplying the highest order coefficient of the function formula by a predetermined value smaller than 1 and larger than 0; When the reliability of the data is low, the correction circuit performs a predictive calculation using a correction function formula, and when the data reliability is high, the prediction calculation is performed using a function formula before correction. A circuit is provided to solve the above problem.

〔実施例〕〔Example〕

第6図は本発明に関わる自動焦点装置を備えた
カメラの実施例を示す回路図である。
FIG. 6 is a circuit diagram showing an embodiment of a camera equipped with an automatic focusing device according to the present invention.

図においてPRSはカメラの制御装置で、例え
ば内部にCPU(中央処理装置)、ROM、RAM、
A/D変換機能を有する1チツプ・マイクロコン
ピユータである。コンピユータPRSはROMに格
納されたカメラのシーケンス・プログラムに従つ
て、自動露出制御機能、自動焦点検出機能、フイ
ルムの巻き上げ等のカメラの一連の動作を行う。
そのために、コンピユータPRSは同期式通信用
信号SO,SI,SCLK、通信選択信号CLCM,
CSDR,CDDRを用いて、カメラ本体内の周辺回
路およびレンズと通信して、各々の回路やレンズ
の動作を制御する。
In the figure, PRS is a camera control device, for example, it contains a CPU (central processing unit), ROM, RAM, etc.
It is a 1-chip microcomputer with A/D conversion function. The computer PRS performs a series of camera operations such as automatic exposure control function, automatic focus detection function, and film winding according to the camera sequence program stored in the ROM.
For this purpose, the computer PRS uses synchronous communication signals SO, SI, SCLK, communication selection signals CLCM,
CSDR and CDDR are used to communicate with peripheral circuits and lenses within the camera body and control the operation of each circuit and lens.

SOはコンピユータPRSから出力されるデータ
信号、SIはコンピユータPRSへ入力されるデー
タ信号、SCLKは信号SO,SIの同期クロツクで
ある。
SO is a data signal output from computer PRS, SI is a data signal input to computer PRS, and SCLK is a synchronization clock for signals SO and SI.

LCMはレンズ通信バツフア回路であり、カメ
ラが動作中のときにはレンズ用電源端子に電力を
供給すると共に、コンピユータPRSからの選択
信号CLCMが高電位レベル(以下‘H'と略記す
る)のときにはカメラとレンズ間通信バツフアと
なる。
LCM is a lens communication buffer circuit that supplies power to the lens power supply terminal when the camera is in operation, and connects the camera when the selection signal CLCM from the computer PRS is at a high potential level (hereinafter abbreviated as 'H'). This creates a communication buffer between lenses.

コンピユータPRSがCLCMを‘H'にして、
SCLKに同期して所定のデータをSOから送出す
ると、LCMはカメラ・レンズ間接点を介して、
SCLK,SOの各々のバツフア信号LCK,DCLを
レンズへ出力する。それと同時にレンズからの信
号DLCのバツフア信号をSIに出力し、PRSは
SCLKに同期してSIからレンズのデータを入力す
る。
Computer PRS sets CLCM to 'H',
When predetermined data is sent from the SO in synchronization with SCLK, the LCM transmits the data via the camera-lens interface.
Outputs SCLK and SO buffer signals LCK and DCL to the lens. At the same time, the buffer signal of the DLC signal from the lens is output to the SI, and the PRS is
Input lens data from SI in synchronization with SCLK.

SDRはCCD等から構成される焦点検出用のラ
インセンサ装置SNSの駆動回路であり、信号
CSDRが‘H'のとき選択されて、SO,SI,
SCLKを用いてPRSから制御される。
SDR is a drive circuit for the line sensor device SNS for focus detection, which is composed of CCD, etc.
Selected when CSDR is 'H', SO, SI,
Controlled from PRS using SCLK.

信号CKはCCD駆動用クロツクφ1,φ2を生成す
るためのクロツクであり、信号INTENDは蓄積
動作が終了したことをPRSへ知らせる信号であ
る。
The signal CK is a clock for generating CCD driving clocks φ1 and φ2, and the signal INTEND is a signal to notify the PRS that the accumulation operation has ended.

SNSの出力信号OSはクロツクφ1,φ2に同期し
た時系列の像信号であり、SDR内の増幅回路で
増幅された後、AOSとしてPRSに出力される。
PRSはAOSをアナログ入力端子から入力し、CK
に同期して、内部のA/D変換機能でA/D変換
後、RAMの所定のアドレスに順次格納する。
The output signal OS of the SNS is a time-series image signal synchronized with the clocks φ1 and φ2, and after being amplified by the amplifier circuit in the SDR, it is output to the PRS as the AOS.
PRS inputs AOS from the analog input terminal, and CK
In synchronization with , the data is A/D converted by an internal A/D conversion function, and then sequentially stored at a predetermined address in the RAM.

同じくSNSの出力信号であるSAGCは、SNS
内のAGC(自動利得制御:Auto Gain Control)
用センサの出力であり、SDRに入力されて、
SNSの蓄積制御に用いられる。
SAGC, which is also the output signal of SNS, is
AGC (Auto Gain Control)
It is the output of the sensor for
Used for SNS storage control.

SPCは撮影レンズを介した被写体からの光を受
光する露出制御用の測光センサであり、その出力
SSPCはPRSのアナログ入力端子に入力され、
A/D変換後、所定のプログラムに従つて自動露
出制御AEに用いられる。
SPC is a photometric sensor for exposure control that receives light from the subject through the photographic lens, and its output
SSPC is input to the analog input terminal of PRS,
After A/D conversion, it is used for automatic exposure control AE according to a predetermined program.

DDRはスイツチ検知および表示用回路であり、
信号CDDRが‘H'のとき選択されて、SO,SI,
SCLKを用いてPRSから制御される。即ち、PRS
から送られてくるデータに基づいてカメラの表示
部材DSPの表示を切り替えたり、カメラの各種
操作部材に連動するスイツチSWSのオン・オフ
状態を通信によつてPRSへ報知する。
DDR is a switch detection and display circuit,
Selected when signal CDDR is 'H', SO, SI,
Controlled from PRS using SCLK. That is, PRS
It switches the display of the camera's display member DSP based on the data sent from the camera, and notifies the PRS via communication of the on/off status of the switch SWS that is linked to the camera's various operating members.

スイツチSW1,SW2は不図示のレリーズボ
タンに連動したスイツチで、レリーズボタンの第
1段階の押下によりSW1がオンし、引き続いて
第2段階までの押下でSW2がオンする。コンピ
ユータPRSは後述するように、SW1オンで測
光、自動焦点調節動作を行い、SW2オンをトリ
ガとして露出制御とフイルムの巻き上げを行う。
尚、SW2はマイクロコンピユータPRSの「割込
み入力端子」に接続され、SW1オン時のプログ
ラム実行中でもSW2オンによつて割込みがかか
り、直ちに所定の割込みプログラムへ移行するこ
とが出来る。
Switches SW1 and SW2 are switches linked to a release button (not shown); SW1 is turned on when the release button is pressed to the first stage, and SW2 is turned on when the release button is pressed to the second stage. As will be described later, the computer PRS performs photometry and automatic focus adjustment when SW1 is turned on, and performs exposure control and film winding using SW2 as a trigger.
Note that SW2 is connected to the "interrupt input terminal" of the microcomputer PRS, and even if a program is being executed when SW1 is on, an interrupt is generated when SW2 is on, and the program can immediately proceed to a predetermined interrupt program.

MTR1はフイルム給送用、MTR2はミラー
アツプ・ダウンおよびシヤツタばねチヤージ用の
モータであり、各々の駆動回路MDR1,MDR
2により正転・逆転の制御が行われる。PRSか
らMDR1,MDR2に入力されている信号M1
F,M1R,M2F,M2Rはモータ制御用の信
号である。
MTR1 is a motor for film feeding, MTR2 is a motor for mirror up/down and shutter spring charging, and each drive circuit MDR1, MDR
2 controls forward and reverse rotation. Signal M1 input from PRS to MDR1 and MDR2
F, M1R, M2F, and M2R are signals for motor control.

MG1,MG2は各々シヤツタ先幕・後幕走行
開始用マグネツトで、信号SMG1,SMG2、増
幅トランジスタTR1,TR2で通電され、PRS
によりシヤツタ制御が行われる。
MG1 and MG2 are magnets for starting the shutter front and rear curtains, respectively, and are energized by signals SMG1 and SMG2 and amplification transistors TR1 and TR2, and the PRS
Shutter control is performed by

尚、スイツチ検知および表示用回路DDR、モ
ータ駆動回路MDR1,MDR2、シヤツタ制御
は、本発明と直接関わりがないので、詳しい説明
は省略する。
Note that the switch detection and display circuit DDR, motor drive circuits MDR1 and MDR2, and shutter control are not directly related to the present invention, so detailed explanations thereof will be omitted.

レンズ内制御回路LPRSにLCKに同期して入力
される信号DCLは、カメラからレンズFLNSに対
する命令のデータであり、命令に対するレンズの
動作が予め決められている。
The signal DCL input to the in-lens control circuit LPRS in synchronization with LCK is data of a command from the camera to the lens FLNS, and the operation of the lens in response to the command is determined in advance.

LPRSは、所定の手続きに従つてその命令を解
析し、焦点調節や絞り制御の動作や、出力DLC
からのレンズの各種パラメータ(開放Fナンバ
ー、焦点距離、デフオーカス量対繰り出し量の係
数等)の出力を行う。
LPRS analyzes the command according to a predetermined procedure and performs focus adjustment, aperture control, and output DLC.
Various parameters of the lens (open F-number, focal length, coefficient of defocus amount vs. extension amount, etc.) are output.

実施例では、ズームレンズの例を示しており、
カメラから焦点調節の命令が送られた場合には、
同時に送られてくる駆動量・方向に従つて、焦点
調節用モータLMTRを信号LMF,LMPによつて
駆動して、光学系を光軸方向移動させて焦点調節
を行う。光学系の移動量はエンコーダ回路ENCF
のパルス信号SENCFでモニターして、LPRS内
のカウンタで計数しており、所定の移動が完了し
た時点で、LPRS自身が信号LMF,LMRを‘L'
にしてモータLMTRを制動する。
In the example, an example of a zoom lens is shown,
When a focus adjustment command is sent from the camera,
According to the drive amount and direction sent at the same time, the focus adjustment motor LMTR is driven by signals LMF and LMP to move the optical system in the optical axis direction and perform focus adjustment. The amount of movement of the optical system is determined by the encoder circuit ENCF.
The pulse signal SENCF is used to monitor the pulse signal SENCF, and the counter in the LPRS is used to count the signals.When the specified movement is completed, the LPRS itself sets the signals LMF and LMR to 'L'.
to brake the motor LMTR.

このため、一旦カメラから焦点調節の命令が送
られた後は、カメラ内の制御装置PRSはレンズ
の駆動が終了するまで、レンズ駆動に関して全く
関与する必要がない。
Therefore, once a focus adjustment command is sent from the camera, the control device PRS in the camera does not need to be involved in lens driving at all until the lens driving is completed.

又、カメラから絞り制御の命令が送られた場合
には、同時に送られてくる絞り段数に従つて、絞
り駆動用としては公知のステツピング・モータ
DMTRを駆動する。
Also, when an aperture control command is sent from the camera, a stepping motor, which is known for driving the aperture, is activated according to the number of aperture stages sent at the same time.
Drives DMTR.

ENCZはズーム光学系に付随したエンコーダ回
路であり、LPRSはENCZからの信号SENCZを
入力してズーム位置を検出する。LPRS内には各
ズーム位置におけるレンズパラメータが格納され
ており、カメラ側のPRSから要求があつた場合
には、現在のズーム位置に対応したパラメータを
カメラへ送出する。
ENCZ is an encoder circuit attached to the zoom optical system, and LPRS inputs the signal SENCZ from ENCZ to detect the zoom position. Lens parameters at each zoom position are stored in the LPRS, and when a request is made from the PRS on the camera side, the parameters corresponding to the current zoom position are sent to the camera.

上記構成によるカメラの動作について第7図以
下のフローチヤートに従つて説明する。
The operation of the camera with the above configuration will be explained according to the flowchart shown in FIG. 7 and subsequent figures.

不図示の電源スイツチがオンとなると、マイク
ロコンピユータPRSへの給電が開始され、PRS
はROMに格納されたシーケンスプログラムの実
行を開始する。
When the power switch (not shown) is turned on, power supply to the microcomputer PRS starts, and the PRS
starts executing the sequence program stored in ROM.

第7図は上記プログラムの全体の流れを表わす
フローチヤートである。上記操作にてプログラム
の実行が開始されると、ステツプ(001)を経て、
ステツプ(002)においてレリーズボタンの第1
段階押下によりオンとなるスイツチSW1の状態
検知がなされ、SW1オフのときにはステツプ
(003)へ移行して、PRS内のRAMに設定されて
いる制御用のフラグ、変数を総てクリアし、初期
化する。
FIG. 7 is a flowchart showing the overall flow of the above program. When the program starts running with the above operation, it will pass through step (001).
At step (002), press the first release button.
The state of switch SW1, which is turned on by pressing the step, is detected, and when SW1 is off, the process moves to step (003), where all control flags and variables set in the RAM in the PRS are cleared and initialized. do.

上記ステツプ(002),(003)はスイツチSW1
がオンとなるか、あるいは電源スイツチがオフと
なるまでくり返し実行される。SW1がオンする
ことによりステツプ(002)からステツプ(005)
へ移行する。
The above steps (002) and (003) are switch SW1
is executed repeatedly until it is turned on or the power switch is turned off. Step (002) to step (005) when SW1 turns on.
Move to.

ステツプ(005)では露出制御のための「測光」
サブルーチンを実行する。PRSは第4図に示し
た測光用センサSPCの出力SSPCをアナログ入力
端子に入力し、A/D変換を行つて、そのデイジ
タル測光値から最適なシヤツタ制御値、絞り制御
値を演算して、それぞれをRAMの所定アドレス
へ格納する。そして、レリーズ動作時にはこれら
値に基づいてシヤツタおよび絞りの制御を行う。
Step (005) is "photometering" for exposure control.
Execute a subroutine. PRS inputs the output SSPC of the photometric sensor SPC shown in Fig. 4 to the analog input terminal, performs A/D conversion, and calculates the optimal shutter control value and aperture control value from the digital photometric value. Each is stored at a predetermined address in RAM. During the release operation, the shutter and aperture are controlled based on these values.

続いてステツプ(006)で「像信号入力」サブ
ルーチンを実行する。このサブルーチンのフロー
は第8図に示しているが、PRSは焦点検出用セ
ンサ装置SNSから像信号の入力を行う。詳細は
後述する。
Next, in step (006), an "image signal input" subroutine is executed. The flow of this subroutine is shown in FIG. 8, and the PRS inputs an image signal from the focus detection sensor device SNS. Details will be described later.

次のステツプ(007)で、入力した像信号に基
づいて撮影レンズのデフオーカス量DEFを演算
する。具体的な演算方法を本出願人によつて特願
昭61−160824号公報等に開示されているので詳細
な説明は省略する。
In the next step (007), the defocus amount DEF of the photographing lens is calculated based on the input image signal. A detailed calculation method has been disclosed by the applicant in Japanese Patent Application No. 160824/1982, and a detailed explanation thereof will be omitted.

ステツプ(008)では「コントラスト判定」サ
ブルーチンを実行する。「コントラスト判定」サ
ブルーチンは焦点検出演算に用いた像信号のコン
トラストを評価するものであり、そのフローを第
10図に示している。
In step (008), a "contrast determination" subroutine is executed. The "contrast determination" subroutine evaluates the contrast of the image signal used in the focus detection calculation, and its flow is shown in FIG.

続いて、ステツプ(009)では「レンズ駆動方
向判定」サブルーチンを実行する。このサブルー
チンは、レンズの駆動方向の反転、非反転を判定
するものであり、そのフローを第11図に示す。
Subsequently, in step (009), a "lens driving direction determination" subroutine is executed. This subroutine determines whether the driving direction of the lens is reversed or not, and its flow is shown in FIG. 11.

ステツプ(010)では「予測演算」サブルーチ
ンを実行する。「予測演算」サブルーチンはレン
ズ駆動量の補正を行うものであり、そのフローを
第1図に示している。
In step (010), a "prediction calculation" subroutine is executed. The "prediction calculation" subroutine is for correcting the lens drive amount, and its flow is shown in FIG.

続いて、ステツプ(011)では「レンズ駆動」
サブルーチンを実行し、先のステツプ(010)で
補正されたレンズ駆動量DLに基づいてレンズ駆
動を行う。この「レンズ駆動」サブルーチンは第
9図にそのフローを示している。レンズ駆動終了
後は再びステツプ(002)へ移行して、SW1が
オフするか不図示のスイツチSW2がオンするま
で、ステツプ(005)〜(011)がくり返して実行
され、動いている被写体に対しても好ましい焦点
調節が行われる。
Next, in step (011), "lens drive"
The subroutine is executed and the lens is driven based on the lens drive amount DL corrected in the previous step (010). The flow of this "lens drive" subroutine is shown in FIG. After the lens drive is completed, the process returns to step (002), and steps (005) to (011) are repeated until SW1 is turned off or switch SW2 (not shown) is turned on. Good focusing is achieved even when

さて、レリーズボタンがさらに押しこまれてス
イツチSW2がオンすると、割込み機能によつ
て、いずれのステツプにあつても直ちにステツプ
(012)へ移行してレリーズ動作を開始する。
Now, when the release button is pressed further and the switch SW2 is turned on, the interrupt function immediately moves to step (012) to start the release operation, regardless of the step.

ステツプ(013)ではレンズ駆動を実行中かど
うか判別し、駆動中であれば、ステツプ(014)
に移行し、レンズに駆動停止命令を送出し、レン
ズを停止させ、ステツプ(015)に進み、レンズ
を駆動していなければ、すぐにステツプ(015)
に進む。
In step (013), it is determined whether the lens is being driven. If it is, step (014) is executed.
, send a driving stop command to the lens, stop the lens, and proceed to step (015). If the lens is not being driven, immediately proceed to step (015).
Proceed to.

ステツプ(015)ではカメラのクイツクリター
ンミラーのミラーアツプを行う。これは、第6図
に示したモータ制御用信号M2F,M2Rにてモー
ターMTR2を制御することが実行される。次の
ステツプ(016)では先のステツプ(005)の測光
サブルーチンで既に格納されている絞り制御値を
レンズへ送出してレンズに絞り制御を行わせる。
In step (015), the camera's quick return mirror is raised. This is executed by controlling the motor MTR2 using the motor control signals M2F and M2R shown in FIG. In the next step (016), the aperture control value already stored in the photometry subroutine of the previous step (005) is sent to the lens to cause the lens to perform aperture control.

ステツプ(015),(016)のミラーアツプと絞り
制御が完了したか否かはステツプ(017)で検知
するわけであるが、ミラーアツプはミラーに付随
した不図示の検知スイツチにて確認することが出
来、絞り制御は、レンズに対して所定の絞り値ま
で駆動したか否かを通信で確認する。いずれかが
未完了の場合には、このステツプで待機し、引き
続き状態検知を行う。両者の制御終了が確認され
るとステツプ(018)へ移行される。
Whether or not the mirror up and aperture control in steps (015) and (016) have been completed is detected in step (017), and mirror up can be confirmed with a detection switch (not shown) attached to the mirror. For aperture control, it is confirmed through communication whether the lens has been driven to a predetermined aperture value. If any of them is not completed, the process waits at this step and continues to detect the status. When it is confirmed that both control ends, the process moves to step (018).

ステツプ(018)では先のステツプ(005)の測
光サブルーチンで既に格納されているシヤツタ制
御値にてシヤツタの制御を行いフイルムを露光す
る。
In step (018), the shutter is controlled using the shutter control value already stored in the photometry subroutine of the previous step (005), and the film is exposed.

シヤツタの制御が終了すると次のステツプ
(019)ではレンズに対して、絞りを開放状態にす
るように命令を送り、引き続いてステツプ(020)
でミラーダウンを行う。ミラーダウンはミラーア
ツプと同様にモータ制御用信号M2F,M2Rを
用いてモータMTR2を制御することで実行され
る。
When shutter control is completed, the next step (019) is to send a command to the lens to open the aperture, and then step (020)
Perform a mirror down. Similar to mirror up, mirror down is executed by controlling motor MTR2 using motor control signals M2F and M2R.

次のステツプ(021)ではステツプ(017)と同
様にミラーダウンと絞りの開放が完了するのを待
つ、ミラーダウンと絞り開放制御がともに完了す
るとステツプ(022)へ移行する。
In the next step (021), as in step (017), the process waits for mirror down and aperture opening control to be completed. When both mirror down and aperture opening control are completed, the process moves to step (022).

ステツプ(022)では第6図に示したモータ制
御用信号M1F,M1Rを適正に制御することで
モータMTR1を制御し、フイルム1駒分が巻上
げられる。
In step (022), the motor MTR1 is controlled by appropriately controlling the motor control signals M1F and M1R shown in FIG. 6, and one frame of film is wound.

以上が予測AFを実施したカメラのシーケンス
である。
The above is the sequence of the camera that performed predictive AF.

次に第8図に示した「像信号入力」サブルーチ
ンについて説明する。
Next, the "image signal input" subroutine shown in FIG. 8 will be explained.

「像信号入力」は新たな焦点検出動作の最初に
実行される動作であり、このサブルーチンがコー
ルされると、ステツプ(101)を経てステツプ
(102)にて、マイクロコンピユータPRS自身が
有している自走タイマのタイマ値TIMERを
RAM上の記憶領域TNに格納することによつて、
焦点検出動作の開始時刻を記憶している。
"Image signal input" is the first operation to be executed in a new focus detection operation, and when this subroutine is called, the microcomputer PRS itself will perform step (101) and step (102). The timer value TIMER of the self-running timer
By storing it in the storage area TN on RAM,
The start time of the focus detection operation is stored.

次のステツプ(103)では、レンズ駆動量補正
式(6)、(7)、(9)中の時間間隔に対応するTM1
TM2を更新する。ステツプ(103)を実行する以
前には、TM1,TM2には前回の焦点検出動作に
おける時間間隔が記憶されており、またTN1
は前回の焦点検出動作を開始した時刻が記憶され
ている。
In the next step (103), TM 1 , which corresponds to the time interval in lens drive amount correction equations (6), (7), and (9)
Update TM 2 . Before step (103) is executed, TM 1 and TM 2 have stored the time interval of the previous focus detection operation, and TN 1 has stored the time when the previous focus detection operation was started. There is.

従つてTM2は前々回から前回まで、TN1−TN
は前回から今回までの焦点検出動作の時間間隔を
表わし、これが式(6)、(7)、(9)中のTM1,TM2
相当するRAM上の記憶領域TM1,TM2に格納さ
れるわけである。そしてTN1には次回の焦点検
出動作のために今回の時刻TNが格納される。即
ち、ステツプ(103)にて記憶領域TM1,TM2
は常に前々回から前回までと前回から今回までの
焦点検出動作時間が記憶される。
Therefore, TM 2 is TN 1 −TN from the previous time to the previous time.
represents the time interval of the focus detection operation from the previous time to the current time, and this is stored in the storage areas TM 1 and TM 2 on the RAM corresponding to TM 1 and TM 2 in equations (6), (7), and (9). That is why it is done. The current time TN is stored in TN 1 for the next focus detection operation. That is, in step (103), the focus detection operation times from the previous time to the previous time and from the previous time to the current time are always stored in the storage areas TM 1 and TM 2 .

さて、次のステツプ(104)でセンサ装置SNS
に光像の蓄積を開始させる。具体的にはマイクロ
コンピユータPRSがCSDRをHとなし、センサ駆
動回路SDRに通信してSOとしての「蓄積開始コ
マンド」を送出して、これを受けてSDRはセン
サ装置SNSの光電変換素子部のクリア信号CLR
を‘L'にして電荷の蓄積を開始させる。
Now, in the next step (104), the sensor device SNS
starts accumulating a light image. Specifically, the microcomputer PRS sets CSDR to H, communicates with the sensor drive circuit SDR, and sends an "accumulation start command" as SO, and in response, the SDR activates the photoelectric conversion element section of the sensor device SNS. Clear signal CLR
Set to 'L' to start charge accumulation.

ステツプ(105)では自走タイマのタイマ値を
変数TIに格納して現在の時刻を記憶する。
In step (105), the timer value of the free-running timer is stored in the variable TI to memorize the current time.

次のステツプ(106)ではコンピユータPRSへ
の入力INTEND端子の状態を検知し、蓄積が終
了したか否かを調べる。センサ駆動回路SDRは
蓄積開始と同時に信号INTENDを‘L'にし、セ
ンサ装置SNSからのAGC信号SAGC(蓄積量を表
わす信号)をモニタし、該SAGCが所定レベルに
達すると、信号INTENDを‘H'にし、同時に電
荷転送信号SHを所定時間‘H'にして、光電変換
素子部の電荷をCCD部に転送させる構造を有し
ている。
In the next step (106), the state of the INTEND terminal input to the computer PRS is detected, and it is checked whether or not accumulation has ended. The sensor drive circuit SDR sets the signal INTEND to 'L' at the same time as the accumulation starts, monitors the AGC signal SAGC (signal representing the accumulated amount) from the sensor device SNS, and when the SAGC reaches a predetermined level, sets the signal INTEND to 'H'. ', and at the same time, the charge transfer signal SH is set to 'H' for a predetermined period of time to transfer the charges in the photoelectric conversion element section to the CCD section.

ステツプ(106)でINTEND端子が‘H'なら
ば蓄積が終了したということでステツプ(110)
へ移行し、‘L'ならば未だ蓄積が終了していない
ということでステツプ(107)へ移行する。
If the INTEND terminal is 'H' at step (106), it means that the accumulation has finished, and the process returns to step (110).
If it is 'L', it means that the storage has not finished yet, and the process moves to step (107).

ステツプ(107)では自走タイマのタイマ値
TIMERから、ステツプ(105)で記憶した時刻
TIを減じて変数TEに格納する。従つてTEには
蓄積開始してからここまでの時刻、いわゆる蓄積
時間が格納されることになる。次のステツプ
(108)ではTEと定数MAXINTを比較し、TEが
MAXINT未満ならばステツプ(106)へ戻り、
再び蓄積終了待ちとなる。TEがMAXINT以上
になるとステツプ(109)へ移行して、強制的に
蓄積終了させる。強制蓄積終了はコンピユータ
PRSから上記通信号にて回路SDRへ「蓄積終了
コマンド」を送出することで実行される。SDR
はPRSから「蓄積終了コマンド」が送られると、
電荷転送信号SHを所定時間‘H'にして光電変換
部の電荷をCCD部へ転送させる。ステツプ
(109)までのフローでセンサの蓄積は終了するこ
とになる。
In step (107), the timer value of the free-running timer is
From TIMER, the time memorized in step (105)
Subtract TI and store it in variable TE. Therefore, the time from the start of accumulation to this point, the so-called accumulation time, is stored in TE. The next step (108) compares TE with the constant MAXINT, and if TE is
If it is less than MAXINT, return to step (106),
Waiting for the accumulation to finish again. When TE exceeds MAXINT, the process moves to step (109) and the accumulation is forcibly terminated. Forced storage termination is done by computer.
This is executed by sending an "accumulation end command" from PRS to circuit SDR using the above communication signal. SDR
When the "accumulation end command" is sent from PRS,
The charge transfer signal SH is set to 'H' for a predetermined period of time to transfer the charges in the photoelectric conversion section to the CCD section. The sensor accumulation ends with the flow up to step (109).

ステツプ(110)ではセンサ装置SNSの像信号
OSをセンサ駆動回路SDRで増幅した信号AOSの
A/D変換およびそのデイジタル信号のRAM格
納を行う。より詳しく述べるならば、SDRは
PRSからのクロツクCKに同期してCCD駆動用ク
ロツクφ1,φ2を生成してSNS内部の制御回路へ
与え、SNSはφ1,φ2によつてCCD部が駆動さ
れ、CCD内の電荷は、像信号として出力OSから
時系列的に出力される。この信号はSDR内部の
増巾器で増巾された後に、AOSとしてPRSのア
ナログ入力端子へ入力される。PRSは自らが出
力しているクロツクCKに同期してA/D変換を
行い、A/D変換後のデイジタル像信号を順次
RAMの所定アドレスに格納してゆく。
In step (110), the image signal of the sensor device SNS is
The sensor drive circuit SDR amplifies the OS and performs A/D conversion of the signal AOS and stores the digital signal in the RAM. To explain in more detail, SDR is
The CCD driving clocks φ1 and φ2 are generated in synchronization with the clock CK from PRS and applied to the control circuit inside the SNS. is output from the output OS in chronological order. After this signal is amplified by the amplifier inside the SDR, it is input as AOS to the analog input terminal of the PRS. PRS performs A/D conversion in synchronization with the clock CK that it outputs, and sequentially converts the digital image signal after A/D conversion.
It is stored at a specified address in RAM.

このようにして像信号の入力を終了するとステ
ツプ(111)にて「像信号入力」サブルーチンを
リターンする。
When the image signal input is completed in this way, the "image signal input" subroutine is returned at step (111).

第9図に「レンズ駆動」サブルーチンのフロー
チヤートを示す。
FIG. 9 shows a flowchart of the "lens drive" subroutine.

このサブルーチンが実行されると、ステツプ
(202)においてレンズと通信して、2つのデータ
「S」「PTH」を入力する。「S」は撮影レンズ固
有の「デフオーカス量対焦点調節レンズくり出し
量の係数」であり、例えば全体くり出し型の単レ
ンズの場合には、撮影レンズ全体が焦点調節レン
ズであるからS=1であり、ズームレンズの場合
には各ズーム位置によつてSは変化する。
「PTH」は焦点調節レンズLNSの光軸方向の移
動に連動したエンコーダENCFの出力1パルス当
たりの焦点調節レンズのくり出し量である。
When this subroutine is executed, in step (202) it communicates with the lens and inputs two data "S" and "PTH". "S" is the "coefficient of the amount of defocus vs. the amount of protrusion of the focusing lens" that is specific to the taking lens. For example, in the case of a single lens that extends entirely, S = 1 because the entire taking lens is the focusing lens. , in the case of a zoom lens, S changes depending on each zoom position.
"PTH" is the amount of protrusion of the focusing lens per output pulse of the encoder ENCF linked to the movement of the focusing lens LNS in the optical axis direction.

従つて焦点調節すべきデフオーカス量DL、上
記S,PTHにより焦点調節レンズのくり出し量
をエンコーダの出力パルス数に換算した値、いわ
ゆるレンズ駆動量FPは次式で与えられることに
なる。
Therefore, the defocus amount DL to be adjusted, the value obtained by converting the protrusion amount of the focusing lens into the number of output pulses of the encoder using the above S and PTH, the so-called lens drive amount FP, is given by the following equation.

FP=DL×S/PTH ステツプ(203)は上式をそのまま実行してい
る。
FP=DL×S/PTH Step (203) executes the above equation as is.

ステツプ(204)ではステツプ(203)で求めた
FPをレンズに送出して焦点調節レンズ(全体く
り出し型単レンズの場合には撮影レンズ全体)の
駆動を命令する。これによりモーターLMTRが
回転し、レンズ駆動が行われる。
In step (204), the value obtained in step (203) is
Sends the FP to the lens and commands the driving of the focusing lens (or the entire photographing lens in the case of a fully extended single lens). This rotates the motor LMTR and drives the lens.

次のステツプ(205)で、レンズと通信してス
テツプ(206)で命令したレンズ駆動量FPの駆動
が終了したか否かを検知し、駆動が終了するとス
テツプ(206)へ移行して「レンズ駆動」サブル
ーチンをリターンする。
In the next step (205), the lens communicates with the lens and detects whether or not the lens drive amount FP commanded in step (206) has been completed.When the drive is completed, the process moves to step (206) and "lens "Drive" subroutine returns.

尚、レンズ駆動の終了検知は上述の如く駆動量
FPが回路LPRS入力され、且つレンズ駆動がな
されるとエンコーダー回路ENCFのパルス
SENCFがLPRS内のカウンターにて計数されて
おり、この計数値が上記FPと一致したか否かの
判別が回路LPRS内にて行われ、計数値とFPと
が一致した際のLPRSの出力状態を上記ステツプ
(205)での通信にて検知され上記ステツプ(206)
へ移行するものである。
In addition, the end of lens drive is detected by the amount of drive as described above.
When FP is input to the circuit LPRS and the lens is driven, the encoder circuit ENCF pulses.
SENCF is counted by a counter in LPRS, and it is determined whether this counted value matches the above FP or not in the circuit LPRS, and the output state of LPRS when the counted value and FP match. is detected in the communication at the above step (205) and the above step (206)
This is a transition to

次に「予測演算」サブルーチンのフローを第1
図で説明する。第1図は「予測演算」サブルーチ
ンのフローを示したものであり、レリーズタイム
ラグを考慮したレンズ駆動量を計算するものであ
る。
Next, the flow of the “prediction calculation” subroutine is
This will be explained with a diagram. FIG. 1 shows the flow of the "prediction calculation" subroutine, which calculates the lens drive amount taking into account the release time lag.

ステツプ(302)は予測に必要なデータ(デフ
オーカス量、レンズ駆動量)が蓄積されたかどう
かを判定するカウンターCOUNTをカウントアツ
プする。このCOUNTは初期状態では常に「0」
であり、またステツプ(303)の変数クリアによ
つても初期化される。そして、カウントアツプが
終了すると、次のステツプに進む。ステツプ
(303)、(304)では今回の予測演算のためのデー
タの更新を行つている。
In step (302), a counter COUNT is counted up to determine whether data necessary for prediction (defocus amount, lens drive amount) has been accumulated. This COUNT is always “0” in the initial state
It is also initialized by clearing the variable in step (303). Then, when the count-up ends, proceed to the next step. In steps (303) and (304), data for the current prediction calculation is updated.

即ち、ステツプ(303)ではメモリDF2のデー
タをDF1に入力する。メモリーDF2には今回の該
サブルーチンが行われる以前には前回のデフオー
カス量が入力されているが、今回の該サブルーチ
ンが実行される時点ではDF2の内容は前前回のデ
フオーカス量となつてしまうので、これをメモリ
ーDF1に入力しメモリーDF1には常に前前回のデ
フオーカス量がストアーされる様なしている。
That is, in step (303), data in memory DF2 is input to DF1 . Before the current subroutine is executed, the previous defocus amount has been input to the memory DF 2 , but at the time the current subroutine is executed, the contents of DF 2 become the previous previous defocus amount. Therefore, this is input into memory DF 1 so that the previous def focus amount is always stored in memory DF 1 .

又、メモリーDF3の内容をDF2に入力し、DF2
に常に前回のデフオーカス量が、又、今回の検出
デフオーカス量DEFをDF3にストアーしてDF3
常に今回のデフオーカス量が格納される様なして
いる。
Also, input the contents of memory DF 3 to DF 2 , and
The previous def focus amount and the current detected def focus amount DEF are always stored in the DF 3 so that the current def focus amount is always stored in the DF 3 .

又、ステツプ(304)ではメモリーDL2のデー
ターをメモリーDL1に入力し、DL1に常に前々回
のレンズ駆動データーをストアーする。又データ
ーDLをメモリーDL2に入力する。データーDLは
前回の駆動量データーであり、メモリーDL2には
常に直前に行われたレンズ駆動量データーが格納
される。
Also, in step (304), the data in the memory DL 2 is input to the memory DL 1 , and the lens drive data from the previous time is always stored in DL 1 . Also input data DL to memory DL 2 . The data DL is the previous driving amount data, and the memory DL 2 always stores the lens driving amount data performed immediately before.

以上のステツプ(303)、(304)にて過去複数回
前から今回のデフオーカス量及びレンズ駆動量デ
ーターが各メモリーに更新され格納される。
In the above steps (303) and (304), the current def focus amount and lens drive amount data from the past multiple times are updated and stored in each memory.

次のステツプ(305)では、後で説明する「コ
ントラスト判定」サブルーチンによつて計算され
たCI=0かどうかを判定する。ここでCI=0の
場合像信号のコントラストが非常に低く(低コ
ン)焦点検出精度が悪いということでステツプ
(306)へ進む、ステツプ(306)ではカウンター
を初期化し、予測に必要なデータの再蓄積を行う
ようにする。これによつて非常に信頼性の低いデ
ータによる予測精度の悪い予測演算を防止するこ
とができる。
In the next step (305), it is determined whether CI=0, which is calculated by a "contrast determination" subroutine to be described later. If CI = 0, the contrast of the image signal is very low (low contrast) and the focus detection accuracy is poor, so proceed to step (306). In step (306), the counter is initialized and the data necessary for prediction is collected. Enable re-accumulation. This makes it possible to prevent prediction calculations with poor prediction accuracy based on extremely unreliable data.

ステツプ(305)でCI=0でない、すなわち、
像信号のコントラストがあるレベル以上であり、
焦点検出精度が所定のレベル以上である場合には
ステツプ(307)へ進む。
CI=0 at step (305), i.e.
The contrast of the image signal is above a certain level,
If the focus detection accuracy is above the predetermined level, the process advances to step (307).

ステツプ(307)では先のカウンターCOUNT
が2以上か否かを判定し、2以下であればステツ
プ(308)へ移行し、そうでなければステツプ
(309)へ進む、ステツプ(308)へはステツプ
(306)を終了した場合もステツプ(308)へ移行
する。このステツプ(308)は予測を行わない場
合のレンズ駆動量を演算するものであり、そのレ
ンズ駆動量DLは今回検出されたデフオーカス量
DEFである。ステツプ(308)を終了するとステ
ツプ(314)にてリターンする。
At step (307), the previous counter COUNT
Determine whether or not is 2 or more, and if it is 2 or less, proceed to step (308), otherwise proceed to step (309). (308). This step (308) is to calculate the lens drive amount when no prediction is performed, and the lens drive amount DL is the currently detected defocus amount.
It is DEF. When step (308) is completed, the process returns to step (314).

ステツプ(307)にてカウンターCOUNTが
「2」より大きければ、予測可能と判断し、ステ
ツプ(309)に進む。
If the counter COUNT is greater than "2" in step (307), it is determined that prediction is possible and the process proceeds to step (309).

ステツプ(309)、(310)では、各メモリーDF1
〜DF3,DL1,DL2,TM1,TM2に格納されたデ
ータに基づき(6)、(7)式のa,bの項を表わすA,
Bを求める。
In steps (309) and (310), each memory DF 1
〜A representing terms a and b in equations (6) and (7) based on the data stored in DF 3 , DL 1 , DL 2 , TM 1 , TM 2 ,
Find B.

ステツプ(311)では見込タイムラグTLの演算
を行う。この演算は記憶領域TM2のデーターと
レリーズタイムラグTR(一定)の和を求めるこ
とで実行される。記憶領域TM2には前述の如く
前回から今回までの焦点検出動作時間が記憶され
ており、今回の焦点検出動作時間も前回の焦点検
出動作時間と一致しているものとの仮定のもとで
タイムラグTL=TM2+TRを求める。
In step (311), the expected time lag TL is calculated. This calculation is executed by calculating the sum of the data in the storage area TM 2 and the release time lag TR (constant). As mentioned above, the memory area TM 2 stores the focus detection operation time from the previous time to the current time, and on the assumption that the current focus detection operation time is the same as the previous focus detection operation time. Find time lag TL=TM 2 +TR.

次のステツプ(312)では後述のサブルーチン
にて補正係数TFを求め、ステツプ(313)へ移行
する。
In the next step (312), a correction coefficient TF is determined in a subroutine to be described later, and the process moves to step (313).

このステツプ(313)では各メモリーのデータ
及びステツプ(309)〜(312)の演算値にもとづ
いて次式(前述の(10)式)のような演算を行い、 DL=TF・A〔(TM1+TM2+TL)2−(TM1
TM22〕 +B・TL+DF3 (15) 今回の像面移動量換算のレンズ駆動量DLを求
める。この後ステツプ(341)にてリターンする。
In this step (313), the following formula (formula (10) above) is calculated based on the data in each memory and the calculated values in steps (309) to (312), and DL=TF・A[(TM 1 +TM 2 +TL) 2 -(TM 1 +
TM 2 ) 2 ] +B・TL+DF 3 (15) Find the lens drive amount DL in terms of the current image plane movement amount. After this, the process returns to step (341).

この様にして、予測演算が行われると、ステツ
プ(011)にて上述のレンズ駆動がなされ、レン
ズは像面位置を一致させる位置へ移行される。
After the predictive calculation is performed in this manner, the lens is driven as described above in step (011), and the lens is moved to a position where the image plane positions match.

次に「コントラスト判定」サブルーチンのフロ
ーを第10図で説明する。第10図は「コントラ
スト判定」サブルーチンのフローを示したもので
あり、像信号のコントラスト、すなわち、焦点検
出結果の信頼性の有無について判定するものであ
る。
Next, the flow of the "contrast determination" subroutine will be explained with reference to FIG. FIG. 10 shows the flow of the "contrast determination" subroutine, which determines the contrast of the image signal, that is, the reliability of the focus detection result.

ステツプ(402)では前述の像信号入力サブル
ーチンにて得た光電変換素子の像パターンに応じ
たデジタル値からコントラストCNTを求める。
このコントラストCNT検知は公知であり、その
詳細な説明は省略する。
In step (402), the contrast CNT is determined from the digital value corresponding to the image pattern of the photoelectric conversion element obtained in the image signal input subroutine described above.
This contrast CNT detection is well known, and detailed explanation thereof will be omitted.

次のステツプ(403)では、先に求まつたコン
トラストCNTが所定の値CAより大きいかどうか
比較する。もし、CNT>CAであればステツプ
(404)に進み、そうでなければステツプ(405)
へ移行する。ステツプ(404)ではコントラスト
が非常に高く、焦点検出の精度が高いと判断し焦
点検出の信頼性を評価するCI=2とする。そし
てステツプ(404)を終えるとステツプ(408)で
リターンする。
In the next step (403), it is compared whether the previously determined contrast CNT is larger than a predetermined value CA. If CNT>CA, proceed to step (404), otherwise proceed to step (405)
Move to. In step (404), it is determined that the contrast is very high and the accuracy of focus detection is high, and CI=2 is set to evaluate the reliability of focus detection. After completing step (404), the process returns to step (408).

また、ステツプ(403)からステツプ(405)に
進むと、再度コントラストCNTを所定の値CBと
比較し、CNT>CBであればステツプ(406)へ
そうでなければステツプ(407)へ移行する。ス
テツプ(406)では焦点検出結果についてある程
度の信頼性があると判断し、焦点検出の信頼性を
評価するCI=1とする。ステツプ(407)では、
コントラストが非常に低く焦点検出結果の信頼性
が低いと判断し、信頼性を評価するCI=0とす
る。そしてステツプ(406)あるいは(407)を終
了するとステツプ(408)でリターンする。
Further, when proceeding from step (403) to step (405), the contrast CNT is again compared with a predetermined value CB, and if CNT>CB, the process proceeds to step (406); otherwise, the process proceeds to step (407). In step (406), it is determined that the focus detection result has a certain degree of reliability, and CI=1 is set to evaluate the reliability of focus detection. In step (407),
It is determined that the contrast is very low and the reliability of the focus detection result is low, and the reliability is evaluated as CI=0. After completing step (406) or (407), the process returns to step (408).

ここでCA>CBであり、CBの値は予測演算に
耐えうる信頼性の下限値としている。
Here, CA>CB, and the value of CB is the lower limit of reliability that can withstand prediction calculations.

本実施例では、信頼性を3段階の評価とした
が、3段階である必要はなく、多段階、あるいは
無段階の評価を行つても良い。
In this embodiment, reliability is evaluated in three stages, but it is not necessary to evaluate the reliability in three stages, and evaluation may be performed in multiple stages or in no stage.

次に、「レンズ駆動方向判定」サブルーチンの
フローを第11図で説明する。第11図は「レン
ズ駆動方向判定」のフローを示したものであり、
レンズの駆動方向が前回と今回で反転したか否か
を判定するものである。
Next, the flow of the "lens drive direction determination" subroutine will be explained with reference to FIG. Figure 11 shows the flow of "lens drive direction determination".
This is to determine whether the driving direction of the lens has been reversed between the previous time and the current time.

ステツプ(502)では、前回のレンズ駆動量
DL1と今回のレンズ駆動量DL2から|DL1−DL2
|を計算し、この値と|DL2|の大きさの比較を
行う。ここで、今回と前回のレンズ駆動が同じ方
向であればDL1とDL2の符合は同じであり、次式
のようになる。
In step (502), the previous lens drive amount is
From DL 1 and current lens drive amount DL 2 | DL 1 −DL 2
| is calculated, and this value is compared with the magnitude of |DL 2 |. Here, if the current and previous lens drives are in the same direction, the signs of DL 1 and DL 2 are the same, and the following equation is obtained.

|DL1−DL2|<|DL2| これに対して、今回と前回のレンズ駆動方向が
逆であれば、DL1とDL2の符合は逆であり、次式
のようになる。
|DL 1 −DL 2 |<|DL 2 | On the other hand, if the current and previous lens driving directions are opposite, the signs of DL 1 and DL 2 are opposite, and the following equation is obtained.

|DL1−DL2|>|DL2| すなわち、レンズの駆動方向が反転していなけ
ればステツプ(504)に進み、反転していればス
テツプ(503)へ移行する。
|DL 1 −DL 2 |>|DL 2 | That is, if the driving direction of the lens is not reversed, the process proceeds to step (504), and if it is reversed, the process proceeds to step (503).

ステツプ(504)ではレンズ駆動方向が同じこ
とを示すLI=1とし、ステツプ(503)ではレン
ズ駆動方向が反転したことを示すLI=0とし、
ステツプ(505)にてこのサブルーチンをリター
ンする。
In step (504), LI = 1 indicating that the lens driving direction is the same, and in step (503) LI = 0 indicating that the lens driving direction has been reversed.
This subroutine is returned at step (505).

このサブルーチンではレンズの駆動方向が反転
すると、レンズ駆動系のバツクラツシユによりレ
ンズ駆動精度が低下し、そうでないときにはレン
ズ駆動精度は高いと考えている。すなわち、LI
はレンズ駆動精度を評価するパラメータである。
This subroutine assumes that when the lens driving direction is reversed, the lens driving accuracy is reduced due to backlash in the lens driving system, and that otherwise the lens driving accuracy is high. That is, LI
is a parameter for evaluating lens drive accuracy.

ここで、本実施例ではレンズ駆動精度のパラメ
ータであるLIはレンズの駆動方向により2段階
の評価を行つたが、駆動精度の良し悪しをレンズ
のIDや開放FNo.などのパラメータと合せて評価
しても良い。
Here, in this example, LI, which is a parameter of lens drive accuracy, was evaluated in two stages depending on the lens drive direction, but the quality of drive accuracy was also evaluated in conjunction with parameters such as lens ID and aperture f/number. You may do so.

次に、「補正係数演算」サブルーチンのフロー
を第12図で説明する。第12図は「補正係数演
算」サブルーチンのフローを示したものであり、
ステツプ(602)では焦点検出精度評価パラメー
タCIとレンズ駆動精度評価パラメータLIから、
CI+LI=3のときにはステツプ(603)へ、そう
でないときにはステツプ(604)へ移行する。
Next, the flow of the "correction coefficient calculation" subroutine will be explained with reference to FIG. Figure 12 shows the flow of the "correction coefficient calculation" subroutine.
In step (602), from the focus detection accuracy evaluation parameter CI and the lens drive accuracy evaluation parameter LI,
When CI+LI=3, the process moves to step (603); otherwise, the process moves to step (604).

ここで、CI+LI=3となる条件とはCI=2,
LI=1であり、これは焦点検出精度及びレンズ
駆動精度が高い状態、すなわち、焦点検出誤差や
レンズ駆動誤差による予測誤差が小さいことを示
す。
Here, the conditions for CI+LI=3 are CI=2,
LI=1, which indicates that focus detection accuracy and lens drive accuracy are high, that is, prediction errors due to focus detection errors and lens drive errors are small.

ステツプ(603)では補正の必要はないと判断
し、TF=1とし、ステツプ(606)でリターンす
る。
In step (603), it is determined that there is no need for correction, TF=1, and the process returns in step (606).

ステツプ(604)では焦点検出精度やレンズ駆
動精度が補正を無くせるほど高くないと判断し、
焦点検出動作時間間隔と予測に用いるタイムラグ
との比TX=(TM1+TM2)/(2・TL)を各
記憶領域TM1,TM2のデータ及び上記ステツプ
(311)にて求めたTLに基づき計算し、次のステ
ツプへ進む。
In step (604), it is determined that the focus detection accuracy and lens drive accuracy are not high enough to eliminate the correction.
The ratio TX = (TM 1 + TM 2 )/(2・TL) between the focus detection operation time interval and the time lag used for prediction is calculated using the data of each storage area TM 1 and TM 2 and the TL obtained in step (311) above. Calculate based on this and proceed to the next step.

ステツプ(605)では、ステツプ(604)で得ら
れたTXによつて2次の項を補正する係数TFを
算出し、リターンする。
In step (605), a coefficient TF for correcting the quadratic term is calculated using the TX obtained in step (604), and the process returns.

本実施例では、レリーズタイムラグが一定であ
れば、TXの値が小さいときは焦点検出動作時間
間隔が短かくなることに着目し、TXが小さくな
ると補正係数TFも小さくなるように設定した
(0<TF≦1)。また、TXが大きい場合にはTF
を過剰に小さくすると逆に悪影響を与えるため、
TXが大きいときにはTFが1に近づくように設
定した。
In this example, we focused on the fact that if the release time lag is constant, the focus detection operation time interval becomes shorter when the value of TX is small, and the correction coefficient TF is set to become smaller as TX becomes smaller (0 <TF≦1). Also, if TX is large, TF
Making it too small will have a negative effect, so
When TX is large, TF is set to approach 1.

以上の如く構成されているので、第7図のステ
ツプ8におけるコントラスト判定、及びレンス駆
動方向判定サブルーチン結果として、CI=2,
LI=1の判定がなされている時には第12図の
補正係数演算にてTF=1が設定される。従つて、
予測関数の補正を行うことなく予測演算がなされ
る。
With the above configuration, CI=2, CI=2,
When LI=1 is determined, TF=1 is set in the correction coefficient calculation shown in FIG. Therefore,
Prediction calculations are performed without correcting the prediction function.

又、上記CI=2,LI=1以外の時には予測関
数の補正がなされることとなる。
Further, when CI=2 and LI=1, the prediction function is corrected.

従つて、焦点検出誤差やレンズ駆動誤差による
予測誤差が小の時には予測関数の補正を行うこと
なく予測演算され、上記補正による誤差を防止
し、一方予測誤差が大の時には上記補正を行い予
測誤差を小となる様にしている。
Therefore, when the prediction error due to focus detection error or lens drive error is small, predictive calculation is performed without correcting the prediction function to prevent the error caused by the above correction.On the other hand, when the prediction error is large, the above correction is performed to reduce the prediction error. is made to be small.

上述の実施例においては、焦点検出精度を評価
する上で像信号のコントラストのみによつて評価
したが、それ以外のパラメータ、例えば光電変換
素子の蓄積時間が長くなつたり、前記素子の温度
が高温になつた場合には像信号の中でのノイズ成
分が拡大され、焦点検出精度が低下する。このよ
うに蓄積時間や温度、湿度によつて焦点検出精度
を評価しても良く、また光学的なゴーストなどに
よつても焦点検出精度が低下するため、逆光の検
知手段や2像の相似性によつて焦点検出精度を評
価しても良い。
In the above embodiment, the focus detection accuracy was evaluated based only on the contrast of the image signal, but other parameters such as the longer storage time of the photoelectric conversion element or the higher temperature of the element If this happens, the noise component in the image signal will be magnified and the focus detection accuracy will deteriorate. In this way, focus detection accuracy can be evaluated based on accumulation time, temperature, and humidity, and since focus detection accuracy is also reduced by optical ghosts, it is important to evaluate the backlight detection method and the similarity of the two images. Focus detection accuracy may be evaluated by

レンズ駆動精度については、そのアクチユエー
ターや駆動系の構成によつて駆動精度が異なるた
め、レンズIDやその他のパラメータ、開放FNo.、
レンズ構成によつて評価しても良い。
Regarding lens drive accuracy, since drive accuracy varies depending on the actuator and drive system configuration, lens ID and other parameters, aperture f/number,
Evaluation may also be made based on the lens configuration.

そして、前記パラメータによつて予測が不適切
であると判断された場合には予測を禁止し、ま
た、補正が必要な条件下では補正を加えるなどの
判断を行うことができる。
Then, if it is determined that the prediction is inappropriate based on the parameters, it is possible to prohibit the prediction, and under conditions where correction is necessary, it is possible to make a judgment such as adding correction.

また、上記実施例では、DL2でのバツクラツシ
ユ及びDF3でのコントラストの精度しか評価して
いないが、DF1,DF2,DF3,DL1,DL2の各精
度を考慮し、補正の有無あるいは強弱、更には予
測可否を判定しても良い。
In addition, in the above example, only the accuracy of the backlash at DL 2 and the contrast at DF 3 was evaluated, but the accuracy of each of DF 1 , DF 2 , DF 3 , DL 1 , and DL 2 was taken into account and the correction was performed. The presence or absence, strength, or even predictability may be determined.

また、連続してレンズの駆動方向が反転するよ
うな場合には、予測の不必要な被写体、あるいは
不適切な被写体であることが考えられるため、こ
のような場合には予測AFを禁止することも可能
である。
Additionally, if the lens driving direction is continuously reversed, the subject may not require prediction or may be inappropriate, so predictive AF should be prohibited in such cases. is also possible.

本発明は、予測AFにおいて焦点検出精度、レ
ンズ駆動精度を評価し、これによつて予測関数の
補正の可非を判定したが、同様にして、予測AF
の適、不敵を判定し、必要ならば予測AFの禁止
を行うことも可能である。
In the present invention, focus detection accuracy and lens drive accuracy are evaluated in predictive AF, and based on this, it is determined whether the predictive function can be corrected.
It is also possible to determine whether the target is suitable or unbeatable, and prohibit predictive AF if necessary.

〔発明の効果〕〔Effect of the invention〕

以上、説明したように、従来、レンズ駆動誤
差、焦点検出誤差による予測誤差を防止するため
に予測関数の高次の項の補正を行い、これによつ
て像面の非線形な動きに対する追従性能が低下し
ていたが、本発明によるとレンズ駆動精度、焦点
検出精度が高いと判断できるとき、すなわち、予
測誤差が小さいと判断できるときには補正を中止
することにより、このような条件下での非線形な
動きに対する追従性能を向上させることができる
効果がある。
As explained above, conventionally, in order to prevent prediction errors due to lens drive errors and focus detection errors, high-order terms of the prediction function are corrected, and this improves tracking performance for nonlinear movements of the image plane. However, according to the present invention, when it can be determined that the lens drive accuracy and focus detection accuracy are high, that is, when it can be determined that the prediction error is small, the correction is stopped, thereby reducing nonlinearity under such conditions. This has the effect of improving the tracking performance for movement.

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

第1図は本発明の焦点調節装置における予測演
算動作を説明するプログラムを示す説明図。第2
図は本発明の焦点調節装置のレンズ駆動を原理を
説明する原理説明図。第3図は焦点検出誤差やレ
ンズ駆動誤差によつて発生する予測誤差の説明
図。第4図、第5図は予測関数の補正による予測
誤差発生の説明図。第6図は本発明の焦点調節装
置の一実施例を示す回路図。第7図は第6図示の
自動焦点調節装置の全体動作を説明するプログラ
ムフローを示す説明図。第8図は第7図における
「像信号入力」サブルーチンを示す説明図。第9
図は第7図における「レンズ駆動」サブルーチン
を示す説明図。第10図は第7図における「コン
トラスト判定」サブルーチンを示す説明図。第1
1図は第7図における「レンズ駆動方向判定」サ
ブルーチンを示す説明図。第12図は第1図にお
ける「補正係数演算」サブルーチンを示す説明図
である。 PRS…マイクロコンピユータ、LCM…バツフ
ア回路、SNS…センサー装置。
FIG. 1 is an explanatory diagram showing a program for explaining predictive calculation operations in the focus adjustment device of the present invention. Second
The figure is an explanatory diagram illustrating the principle of lens driving of the focus adjustment device of the present invention. FIG. 3 is an explanatory diagram of prediction errors caused by focus detection errors and lens drive errors. FIGS. 4 and 5 are explanatory diagrams of occurrence of prediction errors due to correction of prediction functions. FIG. 6 is a circuit diagram showing an embodiment of the focus adjustment device of the present invention. FIG. 7 is an explanatory diagram showing a program flow for explaining the overall operation of the automatic focus adjustment device shown in FIG. FIG. 8 is an explanatory diagram showing the "image signal input" subroutine in FIG. 7. 9th
The figure is an explanatory diagram showing the "lens drive" subroutine in FIG. 7. FIG. 10 is an explanatory diagram showing the "contrast determination" subroutine in FIG. 7. 1st
FIG. 1 is an explanatory diagram showing the "lens drive direction determination" subroutine in FIG. 7. FIG. 12 is an explanatory diagram showing the "correction coefficient calculation" subroutine in FIG. 1. PRS...microcomputer, LCM...buffer circuit, SNS...sensor device.

Claims (1)

【特許請求の範囲】 1 焦点検出回路出力に基づいてレンズを駆動す
る焦点調節装置において、過去の焦点調節動作に
おける焦点調節データーに基づき所定時間後にお
ける被写体の位置に応じたレンズ駆動量又は被写
体の像面位置に応じたレンズ駆動量を高次の関数
式により予測演算する演算回路を設け、所定時間
後の被写体位置に対して合焦させるべくレンズ駆
動を行なうとともに、 前記関数式の最高次の係数に対して1より小
で、かつ0より大の所定値を乗じた補正係数を有
する補正関数式にて前記予測演算を行なわせる補
正回路と、前記焦点調節データーの信頼性を判定
しデーターの信頼性が低い時には前記補正回路に
より補正関数式を用いて予測演算を行なわせ、デ
ーターの信頼性が高い時には補正前の関数式にて
前記予測演算を行なわせる判定回路を設けたこと
を特徴とする焦点調節装置。
[Claims] 1. In a focus adjustment device that drives a lens based on the output of a focus detection circuit, the amount of lens drive or the amount of movement of the subject is determined based on the focus adjustment data in past focus adjustment operations based on the position of the subject after a predetermined time. An arithmetic circuit is provided that predicts and calculates the lens driving amount according to the image plane position using a high-order functional formula, and the lens is driven to focus on the subject position after a predetermined time, and the highest-order of the functional formula is a correction circuit that performs the predictive calculation using a correction function formula having a correction coefficient obtained by multiplying the coefficient by a predetermined value smaller than 1 and larger than 0; and a correction circuit that determines the reliability of the focus adjustment data and calculates the The present invention is characterized by providing a determination circuit that causes the correction circuit to perform predictive calculation using the correction function formula when the reliability is low, and causes the prediction calculation to be performed using the function formula before correction when the reliability of the data is high. Focus adjustment device.
JP33263588A 1988-12-28 1988-12-28 Focus adjusting device Granted JPH02176735A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP33263588A JPH02176735A (en) 1988-12-28 1988-12-28 Focus adjusting device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP33263588A JPH02176735A (en) 1988-12-28 1988-12-28 Focus adjusting device

Publications (2)

Publication Number Publication Date
JPH02176735A JPH02176735A (en) 1990-07-09
JPH0541967B2 true JPH0541967B2 (en) 1993-06-25

Family

ID=18257159

Family Applications (1)

Application Number Title Priority Date Filing Date
JP33263588A Granted JPH02176735A (en) 1988-12-28 1988-12-28 Focus adjusting device

Country Status (1)

Country Link
JP (1) JPH02176735A (en)

Also Published As

Publication number Publication date
JPH02176735A (en) 1990-07-09

Similar Documents

Publication Publication Date Title
US4908645A (en) Automatic focus adjusting device
JP2713978B2 (en) Automatic focusing device for camera
US4974002A (en) Automatic focus adjusting device
US4972221A (en) Camera having an automatic focus adjusting apparatus
JPH01285907A (en) Autofocusing device for camera
US5005037A (en) Auto focus adjusting device
US5060002A (en) Automatic focus adjusting device
US5089843A (en) Auto focus device with predictive focussing
US5061953A (en) Focus adjusting apparatus for use in a camera or the like
US5081479A (en) Automatic focusing device
JPH01280713A (en) Automatic focus adjustor
JP2762513B2 (en) Automatic focusing device
JP2832006B2 (en) Automatic focusing device
JPH0541967B2 (en)
JP2974637B2 (en) Automatic focusing device
JPS63172231A (en) Auto-focusing device
JPH0541968B2 (en)
JP3294636B2 (en) Auto focus camera
JP2952215B2 (en) Automatic focusing device
JP3486464B2 (en) Automatic focusing device
JP2941891B2 (en) Automatic focusing device
JP4262034B2 (en) Optical device and camera
JPH02208642A (en) Automatic focus adjusting device
JPH0541966B2 (en)
JPH02181739A (en) Automatic focusing controller