JPS63262611A - Automatic focusing device - Google Patents

Automatic focusing device

Info

Publication number
JPS63262611A
JPS63262611A JP9822487A JP9822487A JPS63262611A JP S63262611 A JPS63262611 A JP S63262611A JP 9822487 A JP9822487 A JP 9822487A JP 9822487 A JP9822487 A JP 9822487A JP S63262611 A JPS63262611 A JP S63262611A
Authority
JP
Japan
Prior art keywords
phase difference
focus
lens
contrast
difference data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP9822487A
Other languages
Japanese (ja)
Inventor
Yoji Watanabe
洋二 渡辺
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.)
Olympus Corp
Original Assignee
Olympus Optical Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Olympus Optical Co Ltd filed Critical Olympus Optical Co Ltd
Priority to JP9822487A priority Critical patent/JPS63262611A/en
Publication of JPS63262611A publication Critical patent/JPS63262611A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To obtain a true focused position by executing a contrast detection with regard to each corresponding position, when plural pieces of phase difference data exist. CONSTITUTION:When a phase difference detecting means 2 detects a phase difference data from an output data of a focus detecting sensor 1, this phase difference data is stored in a storage means 3. When plural phase difference data stored in the storage means 3 exist, a sequence control means 4 moves a focusing lens 7 by a lens driving means 6 to plural scheduled focal positions related to each phase difference. Subsequently, by operating a contrast detecting means 5 in each scheduled focal position, a position of the highest contrast is selected from in such scheduled focal position, and by deciding this position to be a true focal position, the focusing lens 7 is brought to a driving control in the end. In such a way, focusing can be executed to the true focusing position.

Description

【発明の詳細な説明】 「産業上の利用分野コ 本発明は自動焦点調節装置、さらに詳しくは、被写体の
結像予定焦点位置に対するずれ量を検出し、これに基づ
いて合焦位置へレンズを駆動する自動焦点調節装置に関
する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an automatic focus adjustment device, more specifically, an automatic focus adjustment device that detects the amount of deviation of an object from the expected focus position and moves the lens to the in-focus position based on this. The present invention relates to a driven automatic focusing device.

[従来の技術] 従来カメラ等における焦点検出方法には、位相差検出方
法、コントラスト検出方法等があるが、その中でも位相
差検出方法の実用性か高く、その原理について第10図
〜第12図を用いて説明する。
[Prior Art] Focus detection methods for conventional cameras include phase difference detection methods, contrast detection methods, etc. Among them, the phase difference detection method has the highest practicality, and its principle is explained in Figs. 10 to 12. Explain using.

第10図には焦点検出センサー00と結像光学系(撮影
レンズ)101の位置関係を示す。−眼レフレックスカ
メラの場合には、TTL方式(レンズを通過した光によ
って焦点検出を行なう方式)であれば、焦点検出センサ
ー00はフィルム面と等価な位置に配置される。焦点検
出センサー00は、第12図(A) 、 (B) 、 
(C)に示すように、それぞれペア(alとb t r
  a 2とb2・・・・・・、anとb )をなして
配置されるa群とb群からなるCD CD等で形成された光電変換索子a1〜an。
FIG. 10 shows the positional relationship between the focus detection sensor 00 and the imaging optical system (taking lens) 101. - In the case of an eye reflex camera, if it is a TTL method (a method in which focus is detected using light passing through a lens), the focus detection sensor 00 is placed at a position equivalent to the film surface. The focus detection sensor 00 is shown in FIG. 12 (A), (B),
As shown in (C), each pair (al and b tr
a2 and b2..., an and b) CD consisting of a group and b group arranged to form photoelectric conversion cords a1 to an formed of CD and the like.

b1〜bn (第12図(A)参照)と、その各ペア(
a 1とb t + ”a 2とb2・・・・・・、a
nとbn)にそれぞれ対応して配置されたレンズレット
c1〜c、(第12図(B)参照)とで構成されている
b1 to bn (see Figure 12 (A)) and each pair thereof (
a 1 and b t + "a 2 and b2..., a
It is composed of lenslets c1 to c (see FIG. 12(B)) arranged corresponding to lenses (n and bn), respectively.

上記レンズレットcl−cnは撮影レンズ101の射出
瞳を通って焦点検出センサー00に達する光を上側のA
光束と下側のB光束とに分割し、それぞれを8群検出セ
ンサと5群検出センサへ導く働きをする(第12図(C
)参照)。
The lenslet cl-cn directs the light that passes through the exit pupil of the photographing lens 101 and reaches the focus detection sensor 00 from the upper A.
It splits the light flux into the lower B light flux and guides them to the 8th group detection sensor and the 5th group detection sensor (Figure 12 (C).
)reference).

今、第10図に示すように、焦点検出センサ100より
撮影レンズ101に向けて6gずれた位置に焦点面10
2が形成されたとすると、このときの光電変換索子a1
〜an、b1〜bnの出力値と素子番号は第11図に示
すようになる。このとき、b群の検出センサにより形成
される曲線はa群の検出センサによって形成される曲線
より位相差ΔXだけずれている。この位相差ΔXと、実
際の焦点面からのずれ量Δgはある係数を介して直線近
似できる。つまり、 Δl−k・ΔX ・・・・・・・・・(1)(k:変倍
係数)ここで、焦点が前ピンであるか、合焦であるか、
または後ピンであるかは次の評価式で判別できる。
Now, as shown in FIG.
2 is formed, the photoelectric conversion cord a1 at this time
The output values and element numbers of ~an, b1~bn are shown in FIG. At this time, the curve formed by the detection sensors of group b is shifted from the curve formed by the detection sensors of group a by a phase difference ΔX. This phase difference ΔX and the amount of deviation Δg from the actual focal plane can be linearly approximated via a certain coefficient. In other words, Δl-k・ΔX (1) (k: variable magnification coefficient) Here, whether the focus is the front focus or the in-focus state,
Or, whether it is a rear pin can be determined by the following evaluation formula.

・・・・・・・・・・・・・・・(2)(N:センサペ
ア数)ここで、F〉0では前ピン、F−0では合焦。
・・・・・・・・・・・・・・・(2) (N: Number of sensor pairs) Here, F>0 focuses on the front, and F-0 focuses.

F<0では後ピンが成り立つ。When F<0, rear pin is established.

次に、この(2)式を用いて、位相差ΔXを求める方法
を第13図、第14図を用いて述べる。
Next, a method for determining the phase difference ΔX using equation (2) will be described with reference to FIGS. 13 and 14.

焦点検出センサ100からの出力は対応する添字が同じ
ものは対をなしているので、この添字を1つずつずらし
て評価式を計算することにより、演算上では、F申0の
位置が見出せる。つまり、添字をずらした回数がΔXに
相当するわけである。
Since the outputs from the focus detection sensor 100 have the same corresponding subscripts, they form a pair, so by shifting the subscripts one by one and calculating the evaluation formula, the position of F and 0 can be found in terms of calculation. In other words, the number of times the subscript is shifted corresponds to ΔX.

いま、a群の添字に対してb群の添字が小さくなるよう
な対をつくることを正シフト、この逆を負シフトと定義
し、負側から正側に順番にシフトを行ない、上記(2)
式の評価式を実行する。この評価式をシフト数の関数と
する一般式に改めると、となる。
Now, creating a pair in which the subscript of group b becomes smaller than the subscript of group a is defined as a positive shift, and the opposite is defined as a negative shift.The shift is performed in order from the negative side to the positive side, and the above (2) )
Evaluate expressionExecute expression. If we change this evaluation formula into a general formula that is a function of the number of shifts, we get:

センサペアの数およびセンサペア間の寸法等は、検出セ
ンサの感度、レンズレッドの製造限界等により決定され
てしまう。したがって、評価式F (S)による演算の
みでF(So)−0となるようなシフト数S。を求める
ことは困難である。そこで、隣り合うF (S)の結果
より中間値を補間する必要がある。すなわち、この補間
はあるシフトにおける評価式の結果がF(S)>0で次
のシフトにおける結果がF(S、+1)く0であった場
合、位相差ΔXは で表わされる。
The number of sensor pairs, the dimensions between sensor pairs, etc. are determined by the sensitivity of the detection sensor, the manufacturing limit of lens red, etc. Therefore, the shift number S is such that F(So)-0 can be obtained only by calculation using the evaluation formula F (S). is difficult to find. Therefore, it is necessary to interpolate intermediate values from the results of adjacent F(S). That is, in this interpolation, if the result of the evaluation formula in a certain shift is F(S)>0 and the result in the next shift is F(S,+1)×0, the phase difference ΔX is expressed by.

撮影レンズを合焦点、つまりずれ量が0となる位置へ移
動させるためには、(5)式で求めたΔXをレンズの取
り出し量(または繰り込み量)に変換するための演算を
行ない、その量たけレンズを移動させる。
In order to move the photographic lens to the in-focus point, that is, the position where the amount of deviation is 0, perform calculations to convert ΔX obtained by equation (5) into the amount of lens extraction (or amount of retraction), and calculate that amount. Move the take lens.

[発明が解決しようとする問題点] しかしながら、上述した焦点検出原理を用いて位相差を
検出するとき、8群センサと5群センサの出力値から前
述の(8)式、(4)式のシフト演算を行なったときに
、その結果の評価式F (S)の値か正から負へ反転す
る点が複数個発生してしまうことがある。つまり、合焦
と予想される点が、複数個存在するということである。
[Problems to be Solved by the Invention] However, when detecting a phase difference using the focus detection principle described above, the above-mentioned equations (8) and (4) can be calculated from the output values of the 8th group sensor and 5th group sensor. When a shift operation is performed, a plurality of points may occur where the value of the resulting evaluation formula F (S) is reversed from positive to negative. In other words, there are multiple points that are expected to be in focus.

この現象は被写体のコントラストに周期性がある場合(
たとえは、等間隔のたて縞模様など)におこりやすく、
a7!’¥センサと5群センサの出力波形は第15図に
示すようになる。
This phenomenon occurs when the contrast of the subject is periodic (
For example, it is more likely to occur with patterns of vertical stripes at regular intervals, etc.
a7! The output waveforms of the '¥ sensor and the 5th group sensor are as shown in FIG.

このように複数の位相差(ΔXt+  ΔX2+ ・・
・・・・ΔX )が発生する被写体においては、たとえ
ば正しい位相差以外の位相差で撮影レンズを駆動した場
合にはファインダー像はボケでいるにもかかわらず合焦
信号が出力される状態(いわゆる偽合焦の状態)となり
、このまま撮影すれば当然ピンボケ写真となる。
In this way, multiple phase differences (ΔXt+ ΔX2+...
For a subject where ΔX) occurs, for example, if the photographing lens is driven with a phase difference other than the correct phase difference, a focus signal is output even though the viewfinder image is blurred (so-called (false focus), and if you continue shooting in this state, the photo will naturally be out of focus.

ところで、一般にピントがずれた状態でのファインダー
像のコントラストはピントが合った状態でのコントラス
トに比べて極端に低い。前述した偽合焦の場合でも真の
合焦位置でのコントラストに比べて偽合焦位置でのコン
トラストは低下している。この状況を第16と第17図
を用いて説明する。
By the way, the contrast of a finder image in an out-of-focus state is generally extremely low compared to the contrast in an in-focus state. Even in the case of false focus described above, the contrast at the false focus position is lower than the contrast at the true focus position. This situation will be explained using FIGS. 16 and 17.

第16図はシフト数Sとシフト演算値F (S)との関
係を示すもので、−S  シフト −82シフト。
FIG. 16 shows the relationship between the shift number S and the shift calculation value F (S), where -S shift -82 shift.

+S シフト、+84シフトの際にF(S)=0になる
として、この中でーS2シフトが真のシフト数であると
すると、コントラストの分布は第17図のようになる。
Assuming that F(S)=0 at +S shift and +84 shift, and assuming that -S2 shift is the true shift number, the contrast distribution will be as shown in FIG. 17.

始点0は現在のレンズ位置であり、e,f,g,hはー
S シフト、−82シフ1−、+s3シフト、+84シ
フトに相当する位置である。これから解るように、真の
合焦位置でのコントラストがピークとなる。
The starting point 0 is the current lens position, and e, f, g, and h are positions corresponding to -S shift, -82 shift 1-, +s3 shift, and +84 shift. As you can see, the contrast is at its peak at the true focus position.

この点に着目して、本出願人は特願昭61−17462
7号において予定焦点位置が複数発生したときに、レン
ズを所定方向に駆動しながら最大コントラストの位置付
近でレンズを停止し、その位置で最終的な合焦位置を決
定することにより偽合焦を回避する方法を提案している
。この方法によると、レンズを駆動しながら、コントラ
ストのレベル判定を行なうため被写体状況によっては最
大コントラストの位置を判別しにくいこともありうる。
Focusing on this point, the present applicant filed the patent application No. 61-17462.
In No. 7, when multiple planned focus positions occur, false focusing is avoided by driving the lens in a predetermined direction, stopping the lens near the position of maximum contrast, and determining the final focus position at that position. Suggests ways to avoid it. According to this method, the contrast level is determined while driving the lens, so depending on the subject situation, it may be difficult to determine the position of maximum contrast.

本発明は、上述した問題点に鑑み、位相差データが複数
個存在しているとき対応する各位置についてコントラス
ト検出を行なうことにより真の合焦位置を得るようにし
た自動焦点調節装置を提供することを目的とする。
In view of the above-mentioned problems, the present invention provides an automatic focus adjustment device that obtains a true in-focus position by performing contrast detection for each corresponding position when a plurality of pieces of phase difference data exist. The purpose is to

[問題点を解決するための手段および作用]本発明の自
動焦点調節装置は、第1図にその概念を示すように、焦
点検出センサ1の出力データから位相差検出手段2が位
相差データを検出すると、この位相差データは記憶手段
3に記憶される。
[Means and operations for solving the problems] As the concept of the automatic focus adjustment device of the present invention is shown in FIG. Once detected, this phase difference data is stored in the storage means 3.

シーケンス制御手段4は記憶手段3に記憶された位相差
データか複数である場合、各位相差に関連する複数の予
定焦点位置ヘレンス駆動手段6によって合焦用レンズ7
を移動させる。そして、さらに各予定焦点位置において
コントラスト検出手段5を動作させて各予定焦点位置の
中から最もコントラストの高い位置を選択し、この位置
を真の合焦位置と判断して合焦用レンズ7を最終的に駆
動制御する。
If there is a plurality of phase difference data stored in the storage means 3, the sequence control means 4 controls the focusing lens 7 by means of a plurality of predetermined focus position Herens driving means 6 associated with each phase difference.
move. Then, the contrast detection means 5 is further operated at each planned focus position to select the position with the highest contrast from among each planned focus position, and this position is determined to be the true focus position and the focusing lens 7 is activated. Finally, the drive is controlled.

[実 施 例] 次に、本発明の実施例を第2図以下の図面を用いて説明
する。
[Example] Next, an example of the present invention will be described with reference to FIG. 2 and the following drawings.

第2図は本発明が適用されるカメラシステムの電源供給
を主体として見た全体の電気回路のブロック図である。
FIG. 2 is a block diagram of the entire electric circuit mainly focused on the power supply of the camera system to which the present invention is applied.

電源電池11の電圧■coは電源スィッチ12の開成時
にD C/D Cコンバータ13により昇圧され、ライ
ンΩ0,Ω1間が電圧VDDに定電圧化されている。ラ
インΩ。、91間にMAINCPU14,バイポーラ■
回路15,バイポーラ1回路16,レンズデータ回路1
7が接続されており、バイポーラ■回路15の電源供給
制御はMAINCPUのパワーコントロール回路からの
信号により行なわれ、バイポーラ1回路16およびレン
ズデータ回路17の電源供給制御はバイポーラ■回路1
5からのパワーコントロール信号により行なわれる。
The voltage ■co of the power supply battery 11 is stepped up by the DC/DC converter 13 when the power switch 12 is opened, and the voltage between the lines Ω0 and Ω1 is regulated to a voltage VDD. Line Ω. , MAINCPU14 during 91, bipolar ■
Circuit 15, bipolar 1 circuit 16, lens data circuit 1
7 is connected, power supply control of the bipolar ■ circuit 15 is performed by a signal from the power control circuit of the MAIN CPU, and power supply control of the bipolar 1 circuit 16 and the lens data circuit 17 is connected to the bipolar ■ circuit 1.
This is done by the power control signal from 5.

CCDラインセンサ20.インタフェースIC2 1、
AFCPU2 2からなるオートフォーカス回路部は電
源制御用トランジスタ23を介してラインρ。、91間
に接続されており、このオートフォーカス回路部に対す
る電源供給制御はMAINCPU14のオートフォーカ
ス用パワーコントロール回路からの信号による上記トラ
ンジスタ23のオン、オフ制御により行なわれる。AF
CPU22はオートフォーカス用アルゴリズム演算を行
なうための中央演算処理装置で、合焦・非合焦の表示を
行なうオートフォーカス(AF)表示回路24が接続さ
れている。MAINCPU14はフィルムの巻上、巻戻
、露出シーケンス等カメラ全体のシーケンスをコントロ
ールするための中央演算処理装置で、上記合焦表示以外
の表示を行なう表示回路25を接続されている。バイポ
ーラ■回路15は巻上、巻戻用モータ制御、レンズ駆動
およびシャッタ制御等、カメラのシーケンスに必要な各
種ドライバを含む回路で、モータ駆動回路26およびオ
ートフォーカス(AF)補助光回路27等が接続されて
いる。バイポーラ1回路16は主として測光をつかさど
る回路であり、測光素子28を有している。レンズデー
タ回路17は、交換レンズ毎に異なる、オートフォーカ
ス時、測光時、その他のカメラ制御時に必要な、固有の
レンズデータを記憶した回路である。このレンズデータ
回路17に入っているレンズデータのうちオートフォー
カス時に必要なデータとしては、レンズ変倍係数(ズー
ム係数)、マクロ識別信号、レンズ回転方向、開放F値
、オートフォーカス精度スレッショルド等である。
CCD line sensor 20. Interface IC2 1,
The autofocus circuit section consisting of the AFCPU 22 is connected to the line ρ via a power supply control transistor 23. . AF
The CPU 22 is a central processing unit for performing autofocus algorithm calculations, and is connected to an autofocus (AF) display circuit 24 that displays in-focus/out-of-focus status. The MAIN CPU 14 is a central processing unit for controlling the entire sequence of the camera, such as film winding, rewinding, and exposure sequences, and is connected to a display circuit 25 that performs displays other than the focus display. The bipolar circuit 15 is a circuit that includes various drivers necessary for camera sequences such as winding and rewind motor control, lens drive and shutter control, and includes a motor drive circuit 26 and an autofocus (AF) auxiliary light circuit 27. It is connected. The bipolar 1 circuit 16 is a circuit mainly responsible for photometry, and has a photometry element 28. The lens data circuit 17 is a circuit that stores unique lens data that differs for each interchangeable lens and is necessary for autofocus, photometry, and other camera control. Among the lens data contained in this lens data circuit 17, the data necessary for autofocus includes a lens magnification coefficient (zoom coefficient), a macro identification signal, a lens rotation direction, an aperture F value, an autofocus accuracy threshold, etc. .

上記バイポーラ■回路15では電源電圧■DDの状態を
監視しており、電源電圧が規定電圧より低下したときM
AINCPU14にシステムリセ・ソト信号を送り、バ
イポーラ■回路15〜レンズデータ回路17の電源供給
、並びに、CCDラインセンサ20.インタフェースI
C21およびAFCPU22からなるオートフォーカス
回路部の電源供給を断つようにしている。MAINCP
U14への電源供給は規定電圧以下でも行なわれる。
The above bipolar ■circuit 15 monitors the state of the power supply voltage ■DD, and when the power supply voltage drops below the specified voltage, M
Sends a system reset/reset signal to the AINCPU 14, supplies power to the bipolar circuit 15 to lens data circuit 17, and supplies power to the CCD line sensor 20. Interface I
The power supply to the autofocus circuit section consisting of C21 and AFCPU22 is cut off. MAINCP
Power is supplied to U14 even if the voltage is below the specified voltage.

第3図は、上記第2図に示す電気回路のうちのオートフ
ォーカス回路部の概略ブロック図である。
FIG. 3 is a schematic block diagram of an autofocus circuit part of the electrical circuit shown in FIG. 2.

オートフォーカス用中央演算処理装置であるAF−12
= CPU22とMAINCPU14はシリアルコミュニケ
ーションラインでデータの授受が行なわれる。そして、
その通信方向はシリアルコントロールラインにより制御
される。このコミュニケーションの内容としては、交換
レンズに固有のレンズデータである。また、MAINC
PU14からAFCPU22にカメラの各モード(オー
トフォーカス・シングルモードまたはその他のモード)
の各情報がモードラインを通じてデコードされる。
AF-12, a central processing unit for autofocus
= Data is exchanged between the CPU 22 and the MAIN CPU 14 via a serial communication line. and,
The communication direction is controlled by a serial control line. The content of this communication is lens data specific to the interchangeable lens. Also, MAINC
Each camera mode (autofocus, single mode or other mode) is sent from PU14 to AFCPU22.
Each piece of information is decoded through the model line.

さらに、MAINCPU14からAFCPU22へのA
FENA (オートフォーカスイネーブル)信号はレリ
ーズ釦の半押しに応答して出力され、オートフォーカス
のスタートおよびストップをコントロールする信号であ
り、AFCPU22からMAINCPU14へのEOF
AF (エンドオフオートフォーカス)信号はオートフ
ォーカスでの動作終了時に発せられ露出シーケンスへの
移行を許可する信号である。
Furthermore, A from MAINCPU14 to AFCPU22
The FENA (autofocus enable) signal is output in response to half-pressing the release button, and is a signal that controls the start and stop of autofocus.
The AF (end-off autofocus) signal is a signal that is emitted at the end of autofocus operation to permit transition to an exposure sequence.

また、バイポーラ■回路15はAFCPU22からのA
Fモータコントロールラインの信号をデコードし、AF
モータ駆動回路26をドライブする。モータ駆動回路2
6の出力によりレンズ駆動モータ31が回転すると、レ
ンズ鏡筒の回転部材に等間隔に設けられたスリット32
が回転し、同スリット32の通路を挟んで発光部33a
と受光部33bとを対向配置させてなるフォトインクラ
ブタ33がスリット32をカウントする。即ち、スリッ
ト32とフォトインタラプタ33はアドレス発生部34
を構成しており、同アドレス発生部34から発せられた
アドレス信号(スリット32のカウント信号)は波形整
形されてAFCPU22に取り込まれる。
In addition, the bipolar circuit 15 receives A from the AFCPU 22.
Decodes the F motor control line signal and performs AF
The motor drive circuit 26 is driven. Motor drive circuit 2
When the lens drive motor 31 is rotated by the output of 6, slits 32 provided at equal intervals in the rotating member of the lens barrel
rotates, and the light emitting part 33a is placed across the passage of the slit 32.
A photo ink printer 33, which includes a light receiving section 33b and a light receiving section 33b arranged opposite to each other, counts the number of slits 32. That is, the slit 32 and the photo interrupter 33 are connected to the address generator 34.
The address signal (count signal of the slit 32) generated from the address generation section 34 is waveform-shaped and taken into the AFCPU 22.

AF用CpU22からバイポーラ■回路15に送られる
サブランプ(以下、Sランプと略記する)信号はAF補
助光回路27をコントロールする信号で、被写体がロー
ライト(低輝度)のときSランプ27aを点灯する。
The sub lamp (hereinafter abbreviated as S lamp) signal sent from the AF CPU 22 to the bipolar circuit 15 is a signal that controls the AF auxiliary light circuit 27, and turns on the S lamp 27a when the subject is in low light (low brightness). .

AFCPU22に接続されたAF表示回路24は合焦時
に点灯する合焦OK表示用LED (発光ダイオード)
24aと、合焦不能時に点灯する非合焦表示用LED2
4bを有している。なお、このAFCPU22にはクロ
ック用発振器35.リセット用コンデンサ36が接続さ
れている。
The AF display circuit 24 connected to the AFCPU 22 is an LED (light emitting diode) that lights up when the focus is OK to indicate that the focus is OK.
24a and an out-of-focus indicator LED 2 that lights up when out of focus
4b. Note that this AFCPU 22 includes a clock oscillator 35. A reset capacitor 36 is connected.

また、1記AFcPU22とインタフェースIC21は
パスラインによりデータの授受を行ない、その伝送方向
はパスラインコントロール信号により制御される。そし
て、AFCPU22からインタフェースIC21にセン
サ切換信号、システムクロック信号が送られるようにな
っている。
Further, the AFcPU 22 and the interface IC 21 exchange data through a path line, and the direction of the data transmission is controlled by a path line control signal. A sensor switching signal and a system clock signal are sent from the AFCPU 22 to the interface IC 21.

インタフェースIC21は例えば、CCDラインセンサ
20に対しCCD駆動クロック信号、COD制御信号を
送り、CCDラインセンサ20からCCD出力を読み出
し、この読み出したアナログ値のCCD出力をディジタ
ル変換してAFCPU22に送る。
For example, the interface IC 21 sends a CCD drive clock signal and a COD control signal to the CCD line sensor 20, reads a CCD output from the CCD line sensor 20, converts the read CCD output of an analog value into a digital value, and sends it to the AFCPU 22.

次に、本発明の適用されたカメラについてAFCPU2
2を中心とした動作を第4図〜第9図を用いて説明する
Next, regarding the camera to which the present invention is applied, the AFCPU2
2 will be explained using FIGS. 4 to 9.

電源スィッチ12がオンして、DC/DCコンバータ1
3が動作を開始すると、MAINCPU14はAFCP
U22へのパワー供給をオンする。
When the power switch 12 is turned on, the DC/DC converter 1
3 starts operating, the MAIN CPU 14
Turn on power supply to U22.

すると、AFCPU22にはパワーオンリセットがかか
り、第4図に示したくパワーオンリセット〉のフローを
実行する。
Then, a power-on reset is applied to the AFCPU 22, and the flow of "power-on reset" shown in FIG. 4 is executed.

第1にすべてのI10ポートがイニシャライズされ、続
いてAFOKフラグ(後述する)がクリアされる。そし
て、MAINCPU14からのAFENA信号がH”に
なるのを待つ。今、撮影者がリレーズ釦を半押ししてオ
ートフォーカス動作の開始を指示すると、MAINCP
U14はこれを検知し、続いてAFCPU22に対して
AFENA信号を“H″にすることでこれを伝える。こ
の信号を受けてAFCPU22は<AF >のルーチン
をコールする。<AF>のルーチンは、/l111距お
よびレンズ駆動が行なわれるルーチンであり、撮影レン
ズが合焦位置に導かれた場合にはAFOKフラグはH”
、合焦不能であった場合にはAFOKフラグは”L”の
ままでリターンしてくる。
First, all I10 ports are initialized, followed by clearing the AFOK flag (described below). Then, wait for the AFENA signal from the MAINCPU 14 to become H".Now, when the photographer presses the relay button halfway to instruct the start of autofocus operation, the MAINCP
The U14 detects this and then notifies the AFCPU 22 of this by setting the AFENA signal to "H". Upon receiving this signal, the AFCPU 22 calls the <AF> routine. The <AF> routine is a routine in which /l111 distance and lens drive are performed, and when the photographic lens is guided to the in-focus position, the AFOK flag is set to H''.
If it is not possible to focus, the AFOK flag will remain at "L" and return.

したがって、<AF>のルーチンを実行した後にA F
 OKフラグをチェックして、H″であれば合焦表示を
AFOK表示用LED24 aで行ない、“L”のまま
であれば非合焦表示を非合焦表示用LED24 bで行
なう。合焦表示のあとには、EOFAF信号を“L”に
してMAINCPU14に対してオートフォーカス動作
の終了を伝え、その後、AFENA信号が“L”になる
のを待機する。MAINCPU14はEOFAF信号の
“L”を検知したらレリーズスイッチ(図示せず)をチ
ェックし、同スイッチがオンしていれば、つまり撮影者
かレリーズ釦を深押ししていたら露光動作を行なう。撮
影者がリレーズ釦を深押しせずに指を離した場合には、
あるいは露光動作完了後に指を離した場合には、AFE
NA信号が“H”から“L”になる。AFCPU22は
AFENA信号か“L”になったのを検知したら次のオ
ートフォーカス動作を待機する。
Therefore, after executing the <AF> routine, AF
Check the OK flag, and if it is "H", the focus is displayed on the AFOK display LED 24a, and if it remains "L", the non-focus display is displayed on the non-focus display LED 24b.Focus is displayed After that, the EOFAF signal is set to "L" to notify the MAIN CPU 14 of the end of the autofocus operation, and then the MAIN CPU 14 waits for the AFENA signal to become "L".The MAIN CPU 14 detects the "L" level of the EOFAF signal. Then, check the release switch (not shown), and if the switch is on, that is, if the photographer has pressed the release button deeply, the exposure operation will be performed. If you let go,
Or, if you release your finger after the exposure operation is complete, the AFE
The NA signal changes from "H" to "L". When the AFCPU 22 detects that the AFENA signal becomes "L", it waits for the next autofocus operation.

一方、合焦不能の場合には、非合焦表示をした後、AF
ENA信号をチェックし、撮影者がレリーズ釦から手を
離すのを待ち、AFENA信号が“L”になったら非合
焦表示をオフにして次のオ一トフォーカス動作を待機す
る。
On the other hand, if focusing is not possible, the AF is displayed after the out-of-focus display.
It checks the ENA signal, waits for the photographer to release the release button, and when the AFENA signal becomes "L", turns off the out-of-focus display and waits for the next autofocus operation.

次に第5図に示した<AF>のルーチンについて説明す
る。まず第1にLCカウントフラグ(後述する)をクリ
アし、続いてく測距〉のルーチンをコールする。〈測距
〉のルーチンではピントのずれ量とずれ方向が測定され
る。ここで、位相差データが複数個存在する場合にはそ
のすべてのデータがAFCPU22のRAM (ランダ
ムアクセスメモリ)内に記憶される。また、被写体のコ
ントラストレベルが所定値以下の場合には、LCフラグ
を“H“にしてリターンしてくる。したがって〈測距〉
のルータンから戻ったら、LCフラグのチェックを行な
い、“H”であれば続いて低コントラスト時の動作へ進
む。
Next, the <AF> routine shown in FIG. 5 will be explained. First, the LC count flag (described later) is cleared, and then the routine ``Distance Measurement'' is called. In the <distance measurement> routine, the amount and direction of focus deviation are measured. Here, if a plurality of pieces of phase difference data exist, all the data are stored in the RAM (random access memory) of the AFCPU 22. Furthermore, if the contrast level of the object is below a predetermined value, the LC flag is set to "H" and the process returns. Therefore, <distance measurement>
When returning from the router, the LC flag is checked, and if it is "H", the process proceeds to the low contrast operation.

低コントラスト時の動作とは、LCカウントフラグのチ
ェックを第1に行ない、これが“H”つまりすでに一度
同じ動作を行っている場合には何もせずに元のルーチン
へリターンし、“L”であればLCカウントフラグを“
H”にして<LCスキャン〉のルーチンをコールする。
The operation at low contrast is to first check the LC count flag, and if it is "H", that is, the same operation has already been performed once, return to the original routine without doing anything, and when it is "L", the flag is checked. If so, set the LC count flag to “
"H" and call the <LC scan> routine.

<LCスキャン〉のルーチンとは、撮影レンズを強制的
に現在位置−至近端一〇〇(無限遠)端と動かしながら
、測距動作を連続的に行なって低コントラストでない位
置を探す動作である。<LCスキャン〉のルーチンから
リターンする条件としては、低コントラストでなくなる
か、撮影レンズが開端に達した場合である。<LCスキ
ャン〉のルーチンから戻ったらAFENA信号のチェッ
クを行ない、これが“H”ならもう一度測距動作を行な
い#L”ならくパワーオンリセット〉のルーチンへリタ
ーンする。
The <LC scan> routine is an operation in which the photographic lens is forcibly moved from the current position to the closest end to the 100th (infinity) end, and distance measurement is performed continuously to search for a position that is not in low contrast. be. The conditions for returning from the <LC scan> routine are when the contrast is no longer low or when the photographic lens reaches its open end. When returning from the <LC scan> routine, the AFENA signal is checked, and if it is "H", the distance measuring operation is performed again, and if it is #L, the process returns to the power-on reset> routine.

一方、測距のあとのLCフラグのチェックにより被写体
が低コントラストでないと判断された場合には、レンズ
内に設けられたレンズデータ回路17よりオートフォー
カス動作に必要な情報をくレンズROM>のルーチンに
おいて読み込む。
On the other hand, if it is determined that the subject does not have low contrast by checking the LC flag after distance measurement, the lens data circuit 17 provided in the lens stores information necessary for autofocus operation. Read in.

ここで、この情報とはレンズの開放F値、レンズ変倍係
数、オートフォーカス精度スレッショルド等である。
Here, this information includes the lens' open F-number, lens magnification coefficient, autofocus accuracy threshold, and the like.

次に、<ERRORTH>にルーチンにおいて、合焦許
容範囲を設定する。合焦許容範囲とは人間の目ではピン
トすれと判断できない範囲内のことであり、撮影レンズ
が真の合焦位置からはずれていてもこの範囲内であれば
合焦と認めることができる。この範囲はくレンズROM
>のルーチンで読んだ開放F値から求められる。
Next, a focus tolerance range is set in <ERRORTH> in a routine. The allowable focus range is a range within which the human eye cannot determine that the object is out of focus, and even if the photographic lens is deviated from the true focus position, it can be recognized that the object is in focus as long as it is within this range. This range removable lens ROM
It is determined from the open F value read in the routine above.

続いて、位相差データが複数個算出されたかどうかをチ
ェックし、そうでなければ、続いて現在の撮影レンズが
合焦位置にあるかどうかをチェックする。具体的には位
相差データが前述の合焦許容範囲に入っているかをチェ
ックし、入っていれば合焦と判断してAFOKフラグを
H″にしてリターンし、入っていなければ該当する位相
差データを、レンズ駆動モータの回転量に相当するパル
ス数にくパルス計算〉のルーチンで変換し、そのパルス
数だけ〈レンズ駆動〉のルーチンで撮影レンズを移動さ
せる。ここで、パルスとは、モータの回転を伴って発生
するはパルスのことであり、このパルスの数を計数する
ことによりモータの回転量が判明する。・くパルス計算
〉のルーチンでは、位相差データとレンズ変倍係数を乗
じてパルス数を求めている。
Next, it is checked whether a plurality of pieces of phase difference data have been calculated, and if not, it is then checked whether the current photographing lens is at the in-focus position. Specifically, it is checked whether the phase difference data is within the above-mentioned focus tolerance range, and if it is, it is determined that the focus is in focus and the AFOK flag is set to H" and the return is made. If it is not, the corresponding phase difference data is checked. The data is converted into the number of pulses corresponding to the amount of rotation of the lens drive motor using the routine ``Pulse calculation'', and the photographing lens is moved by the number of pulses using the routine ``Lens drive''. Pulses are generated with the rotation of the motor, and by counting the number of these pulses, the amount of rotation of the motor can be determined. In the pulse calculation routine, the phase difference data is multiplied by the lens magnification coefficient. to find the number of pulses.

くレンズ駆動〉のルーチンは前述のパルス数分だけモー
タを回転させてレンズを合焦位置に導くルーチンであり
、モータの回転方向は、位相差データの符号によって決
定され、マイナス(−)であればレンズ繰り出し、プラ
ス(+)であればレンズ繰り込み方向にモータを回転さ
せる。
The lens drive routine is a routine that rotates the motor by the number of pulses mentioned above to guide the lens to the in-focus position.The direction of rotation of the motor is determined by the sign of the phase difference data. If the value is positive (+), the motor is rotated in the lens retracting direction.

くレンズ駆動〉のルーチンからリターンしたら続いてL
STOPフラグをチェックする。LSTOPフラグとは
くレンズ駆動〉のルーチンにおいて、レンズが合焦点に
達する前に至近端に当て付いてしまった時にセットされ
るフラグであり、このフラグが“H”のときは非合焦な
ので、そのままリターンし、“L”であればレンズは合
焦点に導かれたとしてAFOKフラグを“H”にしてか
らリターンする。
After returning from the lens drive routine, continue with L.
Check the STOP flag. In the LSTOP flag and lens drive routine, this flag is set when the lens hits the close end before reaching the in-focus point, and when this flag is "H", the lens is out of focus. , returns as is, and if the value is "L", it is assumed that the lens has been guided to the in-focus point, and the AFOK flag is set to "H" before returning.

一方、前に戻って、位相差データが複数個あった場合に
はく位相差スキャン〉のルーチンをコールする。く位相
差スキャン〉のルーチンは複数個の位相差データの中か
ら真の位相差データを選出してレンズを真の合焦位置へ
導く。このルーチンからのリターン後はAFOKフラグ
を“H”にして〈パワーオンリセット〉のルーチンへリ
ターンする。
On the other hand, going back to the previous step, if there are multiple pieces of phase difference data, the routine ``Phase Difference Scan'' is called. The phase difference scan routine selects true phase difference data from among a plurality of pieces of phase difference data and guides the lens to the true in-focus position. After returning from this routine, the AFOK flag is set to "H" and the process returns to the <power-on reset> routine.

ここで、上記<AF >のルーチンの中のく測距〉のル
ーチンを第6図によって説明する。このく測距〉のルー
チンでは、まず、最初に補助光の点灯を禁止し、続いて
<CCD積分〉のルーチンをコールする。この<CCD
積分〉のルーチンにおいて、CCDラインセンサ20よ
り被写体輝度に応じた電気ff1(CCD出力)を読み
出し、ディジタル値として記憶する。続いてくコントラ
スト演算〉のルーチンで被写体のコントラストレベルを
測定する。このくコントラスト演算〉のルーチンでは、
第7図に示すように、CCDラインセンサ20の出力デ
ータのうちのa群とb群のそれぞれについて隣り合った
素子の差の絶対値の総和をとる。これをそれぞれCaと
cbとしてその平均値Cをコントラストデータとする。
Here, the routine of distance measurement in the routine of <AF> will be explained with reference to FIG. In the distance measurement routine, first, lighting of the auxiliary light is prohibited, and then the CCD integration routine is called. This<CCD
In the routine of ``Integration'', electric power ff1 (CCD output) corresponding to the subject brightness is read out from the CCD line sensor 20 and stored as a digital value. Next, the contrast level of the subject is measured in the routine Contrast Calculation. In this contrast calculation routine,
As shown in FIG. 7, the sum of absolute values of differences between adjacent elements is calculated for each of groups a and b of the output data of the CCD line sensor 20. These are assumed to be Ca and cb, respectively, and their average value C is used as contrast data.

ここで、被写体のコントラスト測定値か基準値Cref
よりも小さい場合、それが補助光を点灯したにもかかわ
らず小さいとしたらLCフラグを“H”にしてリターン
する。一方、補助光を点灯していない状態であったら、
被写体の輝度か低すぎて低コントラストになったとも考
えられるので、補助光の点灯を許可して再び<CCD積
分〉を実行する。
Here, the contrast measurement value of the subject or the reference value Cref
If it is smaller than , even though the auxiliary light is turned on, the LC flag is set to "H" and the process returns. On the other hand, if the auxiliary light is not turned on,
It is possible that the brightness of the subject is too low, resulting in low contrast, so the auxiliary light is allowed to turn on and <CCD integration> is executed again.

前に戻って、低コン!・ラスi・でない場合には、〈シ
フト演算〉のルーチンをコールして位相差データを算出
する。
Go back, low con!・If not, a <shift operation> routine is called to calculate phase difference data.

くシフト演算〉のルーチンを第8図を用いて説明する。The routine for the shift operation will be explained with reference to FIG.

シフト演算は前記(3)式および(4)式で示した演算
であり、シフト数Sを−(N−2)から+(N−2)ま
で変化させて各々のF (S)を求める。ここで、Nは
センサのペア数である。
The shift calculation is the calculation shown in equations (3) and (4) above, and each F (S) is obtained by changing the shift number S from -(N-2) to +(N-2). Here, N is the number of sensor pairs.

F (S)がすべて算出されたら、次に、F (S)が
ゼロクロスするSを求めるため、Sを−(N−2)から
+(N−3)まで変化させなからF (S)とF(S+
1)を比較し、両者の間にゼロクロス点か存在するSを
探す。この条件を満たすSを求めたら、位相差データを
(5)式によりDX (m)として算出する。ここでm
は位相差データの個数を示す変数であり、位相差データ
か単数の場合、m=1、複数の場合m=2.3.4・・
・・・・と増加する。
Once all F (S) has been calculated, next, in order to find the S at which F (S) crosses zero, we can calculate F (S) without changing S from -(N-2) to +(N-3). F(S+
1) and search for S where there is a zero cross point between the two. After finding S that satisfies this condition, phase difference data is calculated as DX (m) using equation (5). Here m
is a variable that indicates the number of phase difference data; if it is a single phase difference data, m = 1; if it is plural, m = 2.3.4...
...and increases.

次に前記<AF>のルーチン中のく位相差スキャン〉の
ルーチンについて第9図により説明する。
Next, the phase difference scan routine in the AF routine will be explained with reference to FIG.

第1にm個の位相差データを現在位置(始点)からの移
動パルス数にすべて変換する。これは前述のくパルス計
算〉のルーチンと同様であり、P (R)(N−1,2
,・・・・・・m)に順次格納される。続いて、ρ=1
として第1番目の位相差データに基づく第1の予定焦点
位置にレンズを移動させ、その位置で<CCD積分〉の
ルーチンおよび〈コントラスト演算〉のルーチンを実行
して第1の予定焦点位置におけるコントラストを」り定
し、レジスタLASTCに記憶する。続いて、第2番目
の位相差データに基づく第2の予定焦点位置と第1の予
定焦点位置との差をDP(ρ)(このときg−2)に格
納する。この後、DP(ρ)(Ω=2)たけレンズを移
動させて第2の予定焦点位置にレンズを停止させ、第1
の予定焦点位置と同様に<CCD積分〉、くコントラス
ト演算〉を行なう。ここで今回求めたコントラストデー
タCと前回のコントラストデータLASTCを比較し、
C>LASTCであれば、コントラストレベルが前回よ
りも向上したのだから、第1の予定焦点位置は真の合焦
位置ではなかったと判断できる。したがって、今度は第
2の予定焦点位置におるコントラストデータをレジスタ
LASTCに記憶させ、同様に判定動作を第3の予定焦
点位置との間で行なう。以上の動作は、C>LASTC
でなくなるか、またはΩ〉mとなるまで順次行なわれる
。コントラストの変化は連続的なので、たとえば、n番
目のコントラストデータがn−1番目のコントラストデ
ータよりも小さければ、n−1番目のコントラストがm
個の予定焦点位置のうちで最もコントラストが高いこと
になる。つまりn−1番目の位置が真の合焦位置である
。従って、現在位置−25= から前回の位置までレンズを戻せばレンズは真の合焦位
置に停止したことになる。コントラストが最大となる位
置が見つからずに、Q>mとなった場合には、m番目を
真の合焦位置とみなしリターンする。
First, all m phase difference data are converted into the number of moving pulses from the current position (starting point). This is the same as the routine for pulse calculation described above, and P (R) (N-1,2
,...m). Then, ρ=1
The lens is moved to the first planned focus position based on the first phase difference data, and the <CCD integration> routine and the <contrast calculation> routine are executed at that position to calculate the contrast at the first planned focus position. is set and stored in register LASTC. Subsequently, the difference between the second planned focus position and the first planned focus position based on the second phase difference data is stored in DP(ρ) (at this time g-2). After this, the lens is moved by DP(ρ) (Ω=2) and stopped at the second planned focal position, and the first
<CCD integration> and contrast calculation> are performed in the same way as for the planned focal position. Here, compare the contrast data C obtained this time and the previous contrast data LASTC,
If C>LASTC, it can be determined that the first expected focus position was not the true focus position, since the contrast level has improved compared to the previous time. Therefore, this time, the contrast data at the second expected focus position is stored in the register LASTC, and a similar determination operation is performed with respect to the third expected focus position. The above operation is C>LASTC
This is performed sequentially until Ω>m is reached. Contrast changes are continuous, so for example, if the nth contrast data is smaller than the n-1st contrast data, the n-1st contrast is m
This is the one with the highest contrast among the planned focus positions. In other words, the n-1st position is the true focus position. Therefore, if the lens is returned from the current position -25= to the previous position, the lens will have stopped at the true focus position. If the position where the contrast is maximum is not found and Q>m, the m-th position is regarded as the true in-focus position and the process returns.

これまでの説明をまとめると、撮影者かオートフォーカ
ス動作を開始さたせるためにレリーズ釦を半押しすると
、被写体に対して測距動作が行なわれ、その結果として
位相差データが複数であると判断された場合には、撮影
レンズを最も至近端に近い予定焦点位置に移動させ、そ
こから国側に向けて順次各予定焦点位置へレンズを移動
させていく。この間、各予定焦点位置でコントラストの
測定を行なっており、今回のコントラストが前回より高
い場合には次の予定焦点位置へ進み、低い場合には前回
の予定焦点位置へレンズを戻す。つまり戻った位置は複
数の予定焦点位置の中で最もコントラストの高い位置で
あり、これは真の合焦位置である。
To summarize the explanation so far, when the photographer presses the release button halfway to start autofocus operation, distance measurement is performed on the subject, and as a result, it is determined that there are multiple pieces of phase difference data. If so, the photographing lens is moved to the planned focal position closest to the closest end, and from there the lens is sequentially moved toward each planned focal position toward the country. During this time, the contrast is measured at each planned focus position, and if the current contrast is higher than the previous one, the lens advances to the next planned focus position, and if it is lower, the lens is returned to the previous planned focus position. In other words, the returned position is the position with the highest contrast among the plurality of planned focus positions, and is the true focus position.

もちろん、コントラストか最大となる位置を選出する方
法はこの実施例が唯一の方法ではなく、レンズ移動のア
ルゴリズムだけでも数通り考えられる。たとえば、すべ
ての予定焦点位置でのコントラストデータを一旦記憶し
てその中からコントラストレベルが最大となる位置を演
算で求めて最終的にその位置へレンズを駆動するような
方法や、各予定焦点位置でのコントラストレベルの比較
ではなく、任意に選択した予定焦点位置から微少変位し
た位置での比較を行っても良い。つまり第17図におい
て始点(0)のコントラストレベルとレンズ繰り出し側
の隣り合った予定焦点位置gにレンズを移動させたとき
のコントラストレベルとを比較して位置gにおる方が低
い場合には、真の合焦位置は始点よりもレンズ繰り込み
側にあると判断し、次は繰り込み側の隣り合った予定焦
点位置fにレンズを移動させ、ここでのコントラストレ
ベルが始点よりも高い場合には、さらに繰り込み側の任
意の位置f′に微少移動させ、ここでもコントラストレ
ベルを判定し、位置fにおけるよりも低い場合には、こ
の位置fと真の合焦位置と判断するものである。もし位
置f′のコントラストレベルの方が高い場合には、レン
ズを予定焦点位置eに移動させて同様のことを行なう。
Of course, this embodiment is not the only method for selecting the position where the contrast is maximum, and several lens movement algorithms can be considered. For example, there are methods that temporarily store contrast data at all planned focal positions, calculate the position with the highest contrast level among them, and finally drive the lens to that position; Instead of comparing the contrast levels at , a comparison may be made at a position that is slightly displaced from an arbitrarily selected planned focal position. In other words, in FIG. 17, if the contrast level at the starting point (0) is compared with the contrast level when the lens is moved to the adjacent planned focus position g on the lens extension side, and the contrast level is lower at position g, then It is determined that the true in-focus position is on the lens renormalization side than the starting point, and then the lens is moved to the adjacent planned focal position f on the renormalization side, and if the contrast level here is higher than the starting point, Further, the contrast level is slightly moved to an arbitrary position f' on the renormalization side, the contrast level is determined here as well, and if the contrast level is lower than that at position f, this position f is determined to be the true in-focus position. If the contrast level at position f' is higher, the lens is moved to the intended focal position e and the same process is performed.

この方法はレンズが予定焦点位置毎に移動しないですむ
ので真の合焦位置をみつけるまでの時間が短くなる。
This method eliminates the need for the lens to move at every predetermined focus position, so the time required to find the true focus position is shortened.

なお、コントラスト検出手段をノ\−ド的な回路構成に
しても効果は同様である。
Note that the same effect can be obtained even if the contrast detection means has a node-like circuit configuration.

[発明の効果] 以上述べたように、本発明によれば、コントラストに周
期性がある被写体に対してピント合せを行なうとき、フ
ァインダー像がボケでいるにもかかわらず焦点検出セン
サが合焦を指示する複数の偽合焦データが発生した場合
でも、この中からコントラストが最大になる位置を検出
して真の合焦位置にピント合せを行なうことができる。
[Effects of the Invention] As described above, according to the present invention, when focusing on a subject whose contrast is periodic, the focus detection sensor can maintain focus even though the viewfinder image is blurred. Even if a plurality of pieces of false focus data are generated, it is possible to detect the position where the contrast is maximum and focus on the true focus position.

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

第1図は、本発明の詳細な説明する自動焦点調節装置の
ブロック図、 第2図は、本発明装置が適用されるカメラシステムの電
源供給を主体とする電気回路のブロック図、 第3図は、上記第2図中のオートフォーカス回路部の信
号の授受を示す概略ブロック図、第4図〜第9図は、上
記第3図に示すAFCPUを中心とする動作を表わした
フローチャート、第10図および第11図は、本発明に
用いられる位相差検出方法の原理を説明するための光学
系の概略構成図および検出出力線図、 第12図(A)〜(’C)は、」二記第10図中の焦点
検出センサの構成および作用を説明するための概略図、 第13図および第14図は、位相差検出方法によって位
相差を求める方法を説明するための線図、第15図は、
位相差データが複数個発生した場合の評価式の線図、 第16図は、シフト数に対する演算値を表わした線図、 第17図は、上記第16図に示した線図に対応したレン
ズ位置とコントラストの関係を表わした線図である。 1・・・・・・焦点検出センサ 2・・・・・・位相差検出手段 3・・・・・・記憶手段 4・・・・・・シーケンス制御手段 5・・・・・・コントラスト検出手段 6・・・・・・レンズ駆動手段 7・・・・・・合焦用レンズ 20・・・CCDラインセンサ(焦点検出センサ)22
・・・AFCPU(位相差検出手段、記憶手段。 シーケンス制御手段、コントラスト検出手段)
FIG. 1 is a block diagram of an automatic focus adjustment device that explains the present invention in detail. FIG. 2 is a block diagram of an electric circuit mainly for power supply of a camera system to which the device of the present invention is applied. 10 is a schematic block diagram showing the transmission and reception of signals in the autofocus circuit section in FIG. 2, FIGS. 11 are a schematic configuration diagram of an optical system and a detection output diagram for explaining the principle of the phase difference detection method used in the present invention, and FIG. 12 (A) to ('C) are "2" 10 is a schematic diagram for explaining the configuration and operation of the focus detection sensor, FIGS. The diagram is
A diagram of the evaluation formula when multiple pieces of phase difference data are generated. Figure 16 is a diagram showing the calculated values for the number of shifts. Figure 17 is a diagram of the lens corresponding to the diagram shown in Figure 16 above. FIG. 3 is a diagram showing the relationship between position and contrast. 1... Focus detection sensor 2... Phase difference detection means 3... Memory means 4... Sequence control means 5... Contrast detection means 6...Lens driving means 7...Focusing lens 20...CCD line sensor (focus detection sensor) 22
...AFCPU (phase difference detection means, storage means, sequence control means, contrast detection means)

Claims (1)

【特許請求の範囲】 物体の同一部分からの光を異なった光学的開口および経
路を通して視差を有する光束として受光する焦点検出セ
ンサと、 この焦点検出センサから受光光束の照度分布の位相差デ
ータを検出する位相差検出手段と、上記位相差データを
少なくとも1つ記憶する記憶手段と、 合焦用レンズを電動で駆動するレンズ駆動手段と、 上記照度分布よりコントラストレベルを検出するコント
ラスト検出手段と、 上記記憶手段に記憶された位相差データに関連する予定
焦点位置へ上記合焦用レンズを移動させるよう上記レン
ズ駆動手段を制御し、また、位相差データが複数個存在
する場合には各位相差データに関連する各予定焦点位置
において上記コントラスト検出手段を動作させて上記各
予定焦点位置におけるコントラストレベルの比較を行な
うことにより上記複数の位相差データに対応する複数の
予定焦点位置の中から最もコントラストの高い予定焦点
位置を選出し、この予定焦点位置を上記合焦用レンズの
最終的な移動目標位置として上記レンズ駆動手段を制御
するシーケンス制御手段、とを有してなることを特徴と
する自動焦点調節装置。
[Scope of Claims] A focus detection sensor that receives light from the same part of an object as a luminous flux having parallax through different optical apertures and paths, and detects phase difference data of the illuminance distribution of the received luminous flux from this focus detection sensor. a storage means for storing at least one piece of the phase difference data; a lens drive means for electrically driving the focusing lens; a contrast detection means for detecting a contrast level from the illuminance distribution; The lens driving means is controlled to move the focusing lens to a predetermined focus position related to the phase difference data stored in the storage means, and when there is a plurality of phase difference data, each phase difference data is By operating the contrast detection means at each related planned focus position and comparing the contrast levels at each of the planned focus positions, it is possible to detect the highest contrast among the plurality of planned focus positions corresponding to the plurality of phase difference data. automatic focus adjustment characterized by comprising: sequence control means for selecting a predetermined focus position and controlling the lens driving means using the predetermined focus position as the final movement target position of the focusing lens; Device.
JP9822487A 1987-04-21 1987-04-21 Automatic focusing device Pending JPS63262611A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9822487A JPS63262611A (en) 1987-04-21 1987-04-21 Automatic focusing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9822487A JPS63262611A (en) 1987-04-21 1987-04-21 Automatic focusing device

Publications (1)

Publication Number Publication Date
JPS63262611A true JPS63262611A (en) 1988-10-28

Family

ID=14213991

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9822487A Pending JPS63262611A (en) 1987-04-21 1987-04-21 Automatic focusing device

Country Status (1)

Country Link
JP (1) JPS63262611A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011150179A (en) * 2010-01-22 2011-08-04 Canon Inc Automatic focusing apparatus
JP2012226246A (en) * 2011-04-22 2012-11-15 Nikon Corp Focus detector and imaging apparatus
JP2012226247A (en) * 2011-04-22 2012-11-15 Nikon Corp Focus detector and imaging apparatus
JP2013061580A (en) * 2011-09-15 2013-04-04 Nikon Corp Focusing device and imaging apparatus including the same
JP2015014802A (en) * 2014-09-01 2015-01-22 キヤノン株式会社 Automatic focusing device

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011150179A (en) * 2010-01-22 2011-08-04 Canon Inc Automatic focusing apparatus
CN102713714A (en) * 2010-01-22 2012-10-03 佳能株式会社 Automatic focusing apparatus
US20120281131A1 (en) * 2010-01-22 2012-11-08 Canon Kabushiki Kaisha Automatic Focusing Apparatus
US8860872B2 (en) 2010-01-22 2014-10-14 Canon Kabushiki Kaisha Automatic focusing apparatus with cyclic pattern determination
US20140340564A1 (en) * 2010-01-22 2014-11-20 Canon Kabushiki Kaisha Automatic focusing apparatus with cyclic pattern determination
US9411128B2 (en) 2010-01-22 2016-08-09 Canon Kabushiki Kaisha Automatic focusing apparatus with cyclic pattern determination
JP2012226246A (en) * 2011-04-22 2012-11-15 Nikon Corp Focus detector and imaging apparatus
JP2012226247A (en) * 2011-04-22 2012-11-15 Nikon Corp Focus detector and imaging apparatus
JP2013061580A (en) * 2011-09-15 2013-04-04 Nikon Corp Focusing device and imaging apparatus including the same
JP2015014802A (en) * 2014-09-01 2015-01-22 キヤノン株式会社 Automatic focusing device

Similar Documents

Publication Publication Date Title
JP2605282B2 (en) Automatic focusing device
JPH04331908A (en) Automatic focus detection device
US6463214B1 (en) Multi-point autofocus system
JP2662650B2 (en) Automatic focusing device
JPH0664225B2 (en) Focus adjustment device
US5950022A (en) Focus detecting device
JP2007206451A (en) Imaging apparatus, control method therefor, and computer program
JPS63262611A (en) Automatic focusing device
JP2007219539A (en) Lens unit and optical device having the same
JP2010224290A (en) Camera
JP5171124B2 (en) Focus adjustment device, imaging device, and focus adjustment method
JP2004361431A (en) Imaging unit
JP2868459B2 (en) Camera with automatic focus detection device
JP2644252B2 (en) Auto focus camera
JP3610218B2 (en) Automatic focusing device, imaging device, and automatic focusing method
JP2671491B2 (en) Focus detection device
JP2671489B2 (en) Focus detection device
JPH10186443A (en) Camera
JPH01288812A (en) Focus detecting device
JP2004045728A (en) Camera, focusing device and focusing method
JP2671421B2 (en) Distance detection device using focus detection device
JP2006146058A (en) Photometry apparatus for camera
JP2682132B2 (en) Focus detection device
JP2770318B2 (en) Automatic focus detection device
JP2671490B2 (en) Focus detection device