JPH0350513A - Automatic focusing system - Google Patents

Automatic focusing system

Info

Publication number
JPH0350513A
JPH0350513A JP1185717A JP18571789A JPH0350513A JP H0350513 A JPH0350513 A JP H0350513A JP 1185717 A JP1185717 A JP 1185717A JP 18571789 A JP18571789 A JP 18571789A JP H0350513 A JPH0350513 A JP H0350513A
Authority
JP
Japan
Prior art keywords
focus position
variance
maximum value
range
brightness
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.)
Granted
Application number
JP1185717A
Other languages
Japanese (ja)
Other versions
JP2971892B2 (en
Inventor
Seiji Takebe
誠司 武部
Masanobu Nishida
西田 正信
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.)
FUROOBELL KK
Original Assignee
FUROOBELL KK
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 FUROOBELL KK filed Critical FUROOBELL KK
Priority to JP1185717A priority Critical patent/JP2971892B2/en
Publication of JPH0350513A publication Critical patent/JPH0350513A/en
Application granted granted Critical
Publication of JP2971892B2 publication Critical patent/JP2971892B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PURPOSE:To accurately detect the best focus position by calculating the variance of data regarding the brightness of a subject by focus positions and regarding the maximum value of the variance as the best focus position. CONSTITUTION:A control circuit 6 calculates data of a signal (e.g. brightness signal) regarding the brightness of the subject stored on a memory 3 at intervals of a time (e.g. 100 ms) which is preset and inputted to a memory 9 to find its variance. When the best focus position is obtained, the widest distribution range of brightness is obtained, so the position where the variance becomes maximum is the best focus position. Namely, the variance of the data regarding the brightness of an image is calculated by the focus positions and the maximum value of the variance is regarded as a proper focus position. Consequently, the proper focus position is accurately detected without being affected by local brightness, etc.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は,ビデオカメラにより被写体を撮影し、検査
する装置に打いて、フォーカス状態を制御するのに用い
て好適なオートフォーカス方式に関する. 〔従来の技術〕 従来、ビデオカメラにより、例えば、■Cウェハ、プリ
ント基板等の被写体を撮影し、異物の有無等を検査する
ような場合,そのフォーカス制御は,明るさOfil1
度信号)の最大値又はその微分値の最大値を求めること
により行なっていた。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an autofocus system suitable for use in controlling the focus state of a device for photographing and inspecting a subject using a video camera. [Prior Art] Conventionally, when an object such as a C wafer or a printed circuit board is photographed using a video camera and the presence or absence of foreign matter is inspected, the focus control is performed using the brightness Ofil1.
This was done by finding the maximum value of the signal or the maximum value of its differential value.

被写体にピントが合っていないとき、画像は不鮮明にな
り,各画素のうち明るい部分は陪くなり,暗い部分は明
るくなり、両者の差が小さくなる.これに対してピント
が合っているとき、画像は最も鮮明になる.このとき、
各画素のうち,明るい部分の明るさは最も明るくなり、
晴い部分の明るさは最も暗くなり、両者の差が最も大き
くなる。
When the subject is out of focus, the image becomes unclear, the bright parts of each pixel become blurred, the dark parts become brighter, and the difference between the two becomes smaller. On the other hand, when the object is in focus, the image is clearest. At this time,
Among each pixel, the brightness of the bright part is the brightest,
The brightness of the sunny part will be the darkest, and the difference between the two will be the largest.

例えば、いま、第2図に示すように、左半分が黒,右半
分が白の画像を考える.この画像を構成する各画素の明
るさと度数をヒストグラムに表わすと,ピントがあって
いる場合第3 V4( a )に示すようになり,ピン
トがずれるに従って、同図(b),(c)に示すように
なる. 第3図(a)乃至(c)を比較すると明らかなように、
ピントが合っているとき,画素の明るさは最大となる. 従って、明るさの最大値を検出することにより、最適な
フォーカス位置を検出することができる.また、黒色の
部分と白色の部分の境界付近の明るさの傾斜は,ピント
が合っている場合に最も大きくなる. 従って、明るさの微分値の最大値からtaフォーカス位
置を検出することができる。
For example, consider an image where the left half is black and the right half is white, as shown in Figure 2. If the brightness and frequency of each pixel that makes up this image are expressed in a histogram, when it is in focus, it will be as shown in 3rd V4 (a), and as the focus shifts, it will be as shown in (b) and (c) of the same figure. It will now show. As is clear from comparing Figures 3(a) to (c),
When the image is in focus, the brightness of the pixel is maximum. Therefore, by detecting the maximum brightness value, the optimal focus position can be detected. Also, the slope of brightness near the boundary between the black and white parts is greatest when the image is in focus. Therefore, the ta focus position can be detected from the maximum value of the differential value of brightness.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

このように,従来の方式においては、明るさの最大値又
はその微分値の最大値から最適フォーカス位置を検出す
るようにしているので,第3図(a)に丸印を付した部
分のエネルギーしか利用しておらず,最適なフォーカス
位置を正確に検出することが困難であった. その結果,例えば被写体上に、他の部分より著しく明る
いガラス等の付着物が存在するような場合、その明るさ
に影響され、画像がピンボケになる欠点があった. この発明は,このような状況に鑑みてなされたもので,
最適なフォーカス位置を正確に検出することができるよ
うにするものである. 〔課題を解決するための手段〕 この発明のオートフォーカス方式は,所定の範囲内でフ
ォーカス位置を順次変えて被写体を撮影し、被写体の明
るさに関するデータの分散を、各フォーカス位置毎に演
算し,分散の最大値を求め,最大値に対応するフォーカ
ス位置を最適フォーカス位置として選択する. 〔作用〕 例えばテレビカメラにより被写体が、所定のフォーカス
位置から他のフォーカス位置までフォーカス位置を変更
しながら順次撮影される.例えば輝度信号等の明るさに
関するデータの分散が,所定のフォーカス位置毎に演算
される.この分散が最大となるフォーカス位置が最適フ
ォーカス位置とされる. 従って,局部的な明るさに影臀されずに,正確に最適な
フォーカス位置を検出することができる.〔実施例〕 第1図はこの発明のオートフォーカス方式が応用された
オートフォーカス装置の一実施例の構成を示すブロック
図である. 同図において,1はビデオカメラであり,図示せぬIC
ウェハ,プリント基板等の被写体を撮影する,,2はA
/D変換器であり、ビデオヵメラ1より出力されたビデ
オ信号をA/D変換し,メモリ3に供給し、記憶させる
.5はCRT等の表示器であり、ビデオカメラ1の出力
又はRAM4の出力の一方又は両方を重畳した信騒に対
応する画像を表示する. 6は例えばマイクロコンピュータ等よりなる制御回路で
あり,m影動作をル;1御する。7は制御回路6に所定
の指令を入力するキーボード、スイッチ待;よりなる入
力手段である。8、9はメモリであり、所定のデータ等
を記憶する.10はモータ等の駆動手段であり、披写体
が戟置されたテーブル11(又はビデオカメラ1)を駆
動する.次に,その動作を説明する. 入力手段7を構成する所定のスイッチを操作して、オー
トフォーカスの開始を指令すると,制御回路6は駆動手
段10を駆動し,テーブル11を所定のフォーカス位置
から、他の所定のフォーカス位置まで第1の一定の速度
で移動させる。
In this way, in the conventional method, the optimal focus position is detected from the maximum value of brightness or the maximum value of its differential value. Therefore, it was difficult to accurately detect the optimal focus position. As a result, for example, if there is an object on the subject, such as glass, which is significantly brighter than other parts, the brightness will be affected and the image will be out of focus. This invention was made in view of this situation.
This makes it possible to accurately detect the optimal focus position. [Means for Solving the Problems] The autofocus method of the present invention photographs a subject by sequentially changing the focus position within a predetermined range, and calculates the variance of data regarding the brightness of the subject for each focus position. , find the maximum value of the variance, and select the focus position corresponding to the maximum value as the optimal focus position. [Operation] For example, a subject is photographed sequentially by a television camera while changing the focus position from a predetermined focus position to another focus position. For example, the variance of data related to brightness, such as a luminance signal, is calculated for each predetermined focus position. The focus position where this variance is maximum is considered the optimal focus position. Therefore, it is possible to accurately detect the optimal focus position without being affected by local brightness. [Embodiment] FIG. 1 is a block diagram showing the configuration of an embodiment of an autofocus device to which the autofocus method of the present invention is applied. In the figure, 1 is a video camera, and an IC (not shown)
Photographing objects such as wafers and printed circuit boards, 2 is A
A/D converter converts the video signal output from the video camera 1 into A/D and supplies it to the memory 3 for storage. Reference numeral 5 denotes a display device such as a CRT, which displays an image corresponding to a signal obtained by superimposing one or both of the output of the video camera 1 and the output of the RAM 4. Reference numeral 6 denotes a control circuit consisting of, for example, a microcomputer, which controls the shadow operations. Reference numeral 7 denotes input means consisting of a keyboard and a switch for inputting predetermined commands to the control circuit 6. 8 and 9 are memories that store predetermined data and the like. 10 is a driving means such as a motor, which drives the table 11 (or the video camera 1) on which the object to be shown is placed. Next, we will explain its operation. When a predetermined switch constituting the input means 7 is operated to command the start of autofocus, the control circuit 6 drives the drive means 10 to move the table 11 from a predetermined focus position to another predetermined focus position. Move at a constant speed of 1.

勿論この場合,テーブル11を停止させ,ビデオカメラ
1を移動させるようにすることもできる.メモリ9には
、入力手段7の所定のスイッチを操作することにより、
この移動に必要な第1の速度等の所定のデータが予めi
!8憶されている.制御回路6は、メモリ9に記tQさ
れているデータに対応してテーブル11を関動する。
Of course, in this case, it is also possible to stop the table 11 and move the video camera 1. By operating a predetermined switch of the input means 7, the memory 9 stores
Predetermined data such as the first speed necessary for this movement is stored in advance.
! It is remembered. The control circuit 6 operates the table 11 in accordance with the data tQ recorded in the memory 9.

ビデオカメラ1はテーブル11上に載置された被写体を
撮影し、そのビデオ信シ;・を出カする6このビデオ信
9はA/D変換語2によりA/D変換され、メモリ3に
書き込まれる。
A video camera 1 photographs a subject placed on a table 11 and outputs a video signal 6. This video signal 9 is A/D converted by an A/D conversion word 2 and written to a memory 3 It will be done.

また、ビデオカメラ1の出力は,表示8l> 5に但給
される。これにより、表示神5に、各フォーカス位置に
おける被写体の画像が表示される。
Further, the output of the video camera 1 is provided to the display 8l>5. As a result, the image of the subject at each focus position is displayed on the display screen 5.

制御回路6は、メモリ9に予め設定、入力されている時
間(例えばLooms)イ6に、メモリ3に記憶されて
いる被写体の明るさに関するV4 F’+, (例えば
輝度信珍)のデータを演算し、その分散を求め杭 す々わち、各フォーカス位置における各画素の声p度信
号のレベルx.. X2、・・・x2について、分散V
が次式より演算される。
The control circuit 6 inputs the data of V4 F'+, (for example, brightness brightness) related to the brightness of the subject stored in the memory 3 to the time (for example, Looms) that is preset and input to the memory 9. The calculation is performed, and the variance thereof is determined. That is, the level x. .. For X2,...x2, the variance V
is calculated from the following formula.

ここでiは平均値であり、次式より求められる。Here, i is an average value, which is obtained from the following equation.

また、fiは各レベルxiの画素数、Aは全画素数(A
=埜fi)である. 1目 この所定時間毎に演算された分散■は,対応するフォー
カス位置とともに、メモリ8に記憶される。
In addition, fi is the number of pixels at each level xi, A is the total number of pixels (A
= 埜fi). 1st Dispersion (2) calculated at each predetermined time period is stored in the memory 8 together with the corresponding focus position.

上述したように、分散の演算は所定■.v間(100 
ms)毎に行なわれる.従って、例えば,第4図(a)
に示すように、テーブル1】の第Jの移動逮度を?く設
定した場合,同図(b)に示すように遅く設定した場合
に較べ,同図(c)に示すテーブル11の移動位置(フ
ォーカス位ぼ)に対して分散を求めるサンプリング位置
が粗くなる. この粗さは、第1の速度を適宜の値に設定することによ
り調整される。
As mentioned above, the calculation of variance is a predetermined ■. Between v (100
ms). Therefore, for example, Fig. 4(a)
As shown in Table 1, what is the J-th movement rate? When the setting is slow, as shown in FIG. 13(b), the sampling position for determining the variance with respect to the movement position (focus position) of the table 11 shown in FIG. This roughness is adjusted by setting the first speed to an appropriate value.

メモリ8に記憶された分散をヒス!一グラムに表わすと
,第5図に示すようになる.すむわち,理想的には、所
定の最大値を中心として左右に対称に分布した図形にな
る. 第3図(a)乃至(c)に示したように、最適なフォー
カス位置のとき、明るさの分布範1111は最も広くな
る.従って,分散が最大となる位置が最適なフォーカス
位置となる。
Hiss the variance stored in memory 8! When expressed in one gram, it becomes as shown in Figure 5. In other words, ideally, the shapes are distributed symmetrically on the left and right with a predetermined maximum value as the center. As shown in FIGS. 3(a) to 3(c), at the optimal focus position, the brightness distribution range 1111 is widest. Therefore, the position where the dispersion is maximum becomes the optimal focus position.

入力手段7の所定のスイッチが操作されたとき、?御回
路6は、第5図に示したようなヒストグラムと.@在の
フォーカス位置を示す記y(例えば丞直線)とをRAM
4に発生させ、被写体の画像とともに表示器5に表示さ
せる.これにより,使用者は、分散の分布状態と、それ
に対ノL;する画像を確認することができる。
When a predetermined switch of the input means 7 is operated, ? The control circuit 6 generates a histogram as shown in FIG. @Indication y indicating the current focus position (for example, a straight line) is stored in RAM.
4 and displayed on the display 5 together with the image of the subject. This allows the user to check the dispersion distribution state and the corresponding image.

このように,所定のフォーカス位置における分散が演算
されたとき、制御回路6は、次にその最大値をサーチす
る. 最初に最大値が存在するフォーカス方向のサーチが行な
われる。このため,Y−め定められた方向(例えば後ビ
ン方向)の端部(第6図において右端)から、予めメモ
リ9に記t0させておいた範IJII D (方向サイ
ズ)の間における分散の差が;寅算される。
When the variance at a predetermined focus position has been calculated in this way, the control circuit 6 then searches for its maximum value. First, a search is performed in the focus direction where the maximum value exists. Therefore, the dispersion between the end (right end in FIG. 6) in a predetermined direction (for example, the rear bin direction) and the range IJIID (direction size) recorded in the memory 9 in advance. The difference is calculated.

例えば,この範囲T)の後ピン方向の端部の分敗をVい
前ピン方向の端部の分散をVn、その間の分散をV,.
 V,・・・Vn−■とすると,次式より{直Sが}寅
算される。
For example, the dispersion at the end of this range T) in the rear pin direction is V, the dispersion at the end in the front pin direction is Vn, the variance between them is V, .
When V, . . . Vn-■, {direct S} is calculated from the following equation.

S = (Vt−V2)”(Vz−Vj)”・(Vn−
t−Vn)=Δ■+Δ2+・・・+Δn−■     
  ・・・(3)?Sが正のとき、最大値はその位置か
ら後ピン方向に位直し,f″Lのとき前ピン方li’d
に位置するものと判定される。各値Δiはメモリ8に記
憶され、ピークの判定算にも用いられる. この範凹Dをある程度大き<設足ずろことにより、局所
的なピークや,雑音に影響されずに,最大値の方向を正
しく検出することができる.しかしながら,例えば,第
6図にD■で示す範四に設定すると,範囲が広すぎて最
大値を通り越してしまう.そこで、範囲Dは適当な値に
設定される。
S = (Vt-V2)”(Vz-Vj)”・(Vn-
t-Vn)=Δ■+Δ2+...+Δn-■
...(3)? When S is positive, the maximum value is repositioned from that position toward the rear pin, and when f''L, the front pin direction li'd
It is determined that the location is located at . Each value Δi is stored in the memory 8 and is also used for peak determination calculations. By setting this range D to a certain degree, the direction of the maximum value can be detected correctly without being affected by local peaks or noise. However, if it is set to range 4, indicated by D■ in Figure 6, for example, the range will be too wide and will exceed the maximum value. Therefore, range D is set to an appropriate value.

最大値の存在する方向が判定されたとき、次に、範四〇
からその方向に,所定の範四M毎に,上記(3)式と同
様の演算が行なわれる.この範IIJIMは、M1、M
2、M3・・・と順次小さくされ,メモリ9に予め設定
記憶された値M0(メインサイズ)に達すると,以後.
一定(M0)とされる.値Sの極性が範四〇における場
合と逆になったとき,その直前の範囲Mとの境界の分散
Vn+.が適正フォーカス位置と一応判定される.しか
しながら、範囲M0は,最大値Vmの位置を迅連に求め
るため、ある程度の広さを持たせてあるので、必ずしも
正確な位置に対応していない. そこで上述したように、最大値Vm,の位置が粗サーチ
された後、次にさらに正確な位に〔を求める微サーチが
行なわれる. メモリ9には、微サーチを行なうための第2の進度と範
囲Wが予め設定,記憶されている。
When the direction in which the maximum value exists is determined, then the same calculation as in equation (3) above is performed for each predetermined range 4M from range 40 in that direction. This range IIJIM is M1, M
2, M3, etc., and when it reaches the value M0 (main size) which is set and stored in advance in the memory 9, from then on.
It is assumed to be constant (M0). When the polarity of the value S is opposite to that in range 40, the variance of the boundary with the immediately preceding range M is Vn+. is determined to be the appropriate focus position. However, since the range M0 has a certain width in order to quickly find the position of the maximum value Vm, it does not necessarily correspond to the exact position. Therefore, as described above, after a rough search is performed for the position of the maximum value Vm, a fine search is performed to find a more accurate position. In the memory 9, a second progress rate and range W for performing a fine search are set and stored in advance.

制御回路6は、第7図に示すように、粗サーチにより検
出された適正フォーカス位置を中心とする範8Wの区間
だけ,テーブル11を第2の速度で移動させる. この間においても、粗サーチの場合と同様に、表示器5
に各フォーカス位置におけるii!j像が表示されると
ともに、所定時間(loo+++s)毎に,分散の演算
が行なわれ,演算値が対応するフォーカス位置とともに
メモリ8に記憶される. 微サーチの第2の速度は粗サーチの第1の速度より遅い
速度に設定される.これにより,より微細なフォーカス
位置を検出することが可能になる.微サーチにより演算
された分散が、隣のフォーカス位置の分散と順次比較さ
れ,その最大値が真の最大値Vmとされ、そのフォーカ
ス位置が,最終的に,最適なフォーカス位八とされる.
このように,最適フォーカス位置が求められたとき,制
御回路6は駆動手段10を駆動してテーブル11をその
位置に移動させる.これにより,表示器5に最も鮮明な
被写体の画像が表示される.粗サーチの方向を判定する
とき,雑音等により誤った判定が行なわれると,適正フ
ォーカス位置を検出することができない。上述したよう
に,範四〇をある程度広く設定しておくことにより,こ
れを防止することができる.しかしながら、あまり広く
すると,適正フォーカス位置を通り越してしまい,検出
に時間がかかる. そこで,第8図に示すように,所定の基増値R1を予め
設定し,メモリ9に記憶させておき、この基僧値Rl以
上の大きさの分散のみを選択し,その中で範囲Dを設定
させるようにすることもできる。
As shown in FIG. 7, the control circuit 6 moves the table 11 at a second speed within a range 8W centered on the appropriate focus position detected by the rough search. During this time, as in the case of coarse search, the display 5
ii at each focus position! j image is displayed, and the dispersion is calculated at predetermined time intervals (loo+++s), and the calculated value is stored in the memory 8 together with the corresponding focus position. The second speed of the fine search is set to a slower speed than the first speed of the coarse search. This makes it possible to detect more precise focus positions. The variance calculated by the fine search is sequentially compared with the variance of the adjacent focus position, the maximum value thereof is taken as the true maximum value Vm, and that focus position is finally taken as the optimum focus position.
In this manner, when the optimum focus position is determined, the control circuit 6 drives the driving means 10 to move the table 11 to that position. As a result, the clearest image of the subject is displayed on the display 5. When determining the direction of the coarse search, if an incorrect determination is made due to noise or the like, the proper focus position cannot be detected. As mentioned above, this can be prevented by setting range 40 somewhat wide. However, if it is made too wide, it will pass the proper focus position and detection will take time. Therefore, as shown in FIG. 8, a predetermined basic increase value R1 is set in advance and stored in the memory 9, and only variances larger than this basic value Rl are selected. It is also possible to have it set.

これにより、範四Rをそれ程広くしなくとも、雑音等の
撮影を除去することができる。
Thereby, it is possible to remove noise and the like in the image without making the range R so wide.

また、求められた最大値に対しても予め基準値R2を設
定しておき、分散の最大値Vmがこの基ill値R2以
下であるとき,求められた値は正しい最大値ではないと
して、再度検出動作を実行させるようにすることもでき
る. これにより、第8図に示すように,正規の最大値以外に
、比較的大きいピーク値が存在するような場合、そのピ
ーク値が最大値として検出されるのを防止することがで
きる. また,以上においては,画面全体の画素の明るさの分散
を求めるようにしたが,第91′2Iに示すように,X
座標Lx.Rxと、y座標Uy、Dyにより設定される
ウィンドの範四内の画素のみを演算の対象とすることも
できる.この場合、座標を入力手段7を介してメモリ9
に白山に変更、記憶させるようにして、被写体の所定の
部分にフォーカスを合わせることができるようにするこ
とができる。
Also, a reference value R2 is set in advance for the maximum value obtained, and when the maximum value Vm of variance is less than this base value R2, the obtained value is considered not to be the correct maximum value, and the value is re-set again. It can also be configured to perform a detection operation. Thereby, as shown in FIG. 8, when a relatively large peak value exists in addition to the normal maximum value, it is possible to prevent that peak value from being detected as the maximum value. In addition, in the above, the variance of the brightness of the pixels of the entire screen was calculated, but as shown in No. 91'2I,
Coordinate Lx. It is also possible to perform calculations only on pixels within the range of the window set by Rx and y coordinates Uy and Dy. In this case, the coordinates are input to the memory 9 via the input means 7.
It is possible to set the focus to a predetermined part of the subject by changing the image to Hakusan and storing it.

さらに,検査対象物によっては,分散が必ずしも裡想的
に左右対称にはならず、最大値の近傍に比較的大きいピ
ーク値が発生するような場合がある。このような対象物
については、その分散の分布状態を予めメモリ9に記憶
させておき、そのデータと比較して、比較的大きいピー
クに影臀されずに,最大値を求めるようにすることもで
きる。
Furthermore, depending on the object to be inspected, the dispersion may not necessarily be symmetrical in concept, and a relatively large peak value may occur near the maximum value. For such objects, the distribution state of the dispersion may be stored in the memory 9 in advance and compared with that data to find the maximum value without being influenced by relatively large peaks. can.

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

以上のように,この発明のオートフォーカス方式によれ
ば、画像の明るさに関するデータの分散を、フォーカス
位置毎に演算し、分散の最大値を適正フォーカス位置と
するようにしたので,局所的な明るさ等に!6轡されず
に、正確に適正フォーカス位置を検出することが可能に
なる。
As described above, according to the autofocus method of the present invention, the variance of data related to image brightness is calculated for each focus position, and the maximum value of the variance is set as the appropriate focus position. Brightness etc! It becomes possible to accurately detect the proper focus position without being distorted.

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

第1図はこの発明のオートフォーカス方式を応用したオ
ートフォーカス装置の一実施例のブロック図、 第2図は従来のオートフォーカス方式の原理を説明する
画面の正面図, 第3 91 ( +1 )乃尤(c)は従来のオー1−
フォーカス方式の原理を説明する明るさのヒストグラム
、第4図は第l図の実施例の動作を説明するタイミング
チャー[−. 第5図乃至第8図は第1 1?lの丈飽例の動作を説明
する分散の特仕図, 第9図は第1図の実施例の動作を説明する画面の正面図
である。 1・・・ビデオカメラ 2・・・A/D変換器 3・・・メモリ 4・・・RAM 5・・・表示滞 6・・・制御回路 7・・・入力手段 8,9・・・メモリ IO・・・駆動手段 11・・・テーブル
Fig. 1 is a block diagram of an embodiment of an autofocus device to which the autofocus method of the present invention is applied; Fig. 2 is a front view of a screen explaining the principle of the conventional autofocus method; (c) is the conventional O1-
FIG. 4 is a brightness histogram explaining the principle of the focus method, and FIG. 4 is a timing chart [-. Figures 5 to 8 are 11? FIG. 9 is a front view of a screen explaining the operation of the embodiment shown in FIG. 1. 1... Video camera 2... A/D converter 3... Memory 4... RAM 5... Display storage 6... Control circuit 7... Input means 8, 9... Memory IO...driving means 11...table

Claims (9)

【特許請求の範囲】[Claims] (1)所定の範囲内でフォーカス位置を順次変えて被写
体を撮影し、 前記被写体の明るさに関するデータの分散を、各フォー
カス位置毎に演算し、 前記分散の最大値を求め、 前記最大値に対応するフォーカス位置を最適フォーカス
位置として選択するオートフォーカス方式。
(1) Shoot a subject by sequentially changing the focus position within a predetermined range, calculate the variance of data regarding the brightness of the subject for each focus position, find the maximum value of the variance, and set the value to the maximum value. Autofocus method that selects the corresponding focus position as the optimal focus position.
(2)第1の範囲のフォーカス位置における前記分散の
差から、前記最大値が存在するフォーカス方向を求める
方向判定を行ない、 そのフォーカス方向の第2の範囲のフォーカス位置にお
ける前記分散の差を順次演算することにより前記最大値
を求める請求項1のオートフォーカス方式。
(2) From the difference in the dispersion in the first range of focus positions, a direction determination is performed to find the focus direction in which the maximum value exists, and the difference in the dispersion in the second range of focus positions in the focus direction is sequentially determined. 2. The autofocus method according to claim 1, wherein said maximum value is determined by calculation.
(3)前記第2の範囲における前記分散の差から、前記
最大値が求められた後、求められた前記最大値を含む所
定の範囲内において、さらに、前記第2の範囲より短い
第3の範囲毎に、前記分散の差を順次演算することによ
り前記最大値を求める請求項2のオートフォーカス方式
(3) After the maximum value is determined from the difference in variance in the second range, within a predetermined range including the determined maximum value, a third value shorter than the second range is further determined. 3. The autofocus method according to claim 2, wherein said maximum value is determined by sequentially calculating said variance difference for each range.
(4)前記第2の範囲は前記第1の範囲より短い請求項
2又は3のオートフォーカス方式、
(4) The autofocus method according to claim 2 or 3, wherein the second range is shorter than the first range.
(5)前記第2の範囲は、順次短くされる請求項4のオ
ートフォーカス方式。
(5) The autofocus method according to claim 4, wherein the second range is sequentially shortened.
(6)前記方向判定は、所定の基準値以上の前記分散に
対してのみに行なわれる請求項2乃至5のオートフォー
カス方式。
(6) The autofocus method according to any one of claims 2 to 5, wherein the direction determination is performed only for the dispersion that is equal to or greater than a predetermined reference value.
(7)前記最大値は、その値が、所定の基準値以上であ
る場合にのみ前記最大値として判定される請求項2乃至
6のオートフォーカス方式。
(7) The autofocus method according to any one of claims 2 to 6, wherein the maximum value is determined as the maximum value only when the value is equal to or greater than a predetermined reference value.
(8)前記分散の演算は所定時間毎に行なわれ、かつ、
前記フォーカス位置を順次変える速度は可変とされる請
求項1乃至7のオートフォーカス方式。
(8) The calculation of the variance is performed at predetermined time intervals, and
8. The autofocus method according to claim 1, wherein the speed at which the focus position is sequentially changed is variable.
(9)前記被写体の明るさに関するデータは、設定した
ウインドの範囲内のもののみが演算に用いられる請求項
1乃至8のオートフォーカス方式。
(9) The autofocus method according to any one of claims 1 to 8, wherein only data related to the brightness of the subject within a set window is used for calculation.
JP1185717A 1989-07-18 1989-07-18 Auto focus method Expired - Fee Related JP2971892B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1185717A JP2971892B2 (en) 1989-07-18 1989-07-18 Auto focus method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1185717A JP2971892B2 (en) 1989-07-18 1989-07-18 Auto focus method

Publications (2)

Publication Number Publication Date
JPH0350513A true JPH0350513A (en) 1991-03-05
JP2971892B2 JP2971892B2 (en) 1999-11-08

Family

ID=16175621

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1185717A Expired - Fee Related JP2971892B2 (en) 1989-07-18 1989-07-18 Auto focus method

Country Status (1)

Country Link
JP (1) JP2971892B2 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04305609A (en) * 1991-04-03 1992-10-28 Sharp Corp Autofocusing device
JP2006154393A (en) * 2004-11-30 2006-06-15 Toppan Printing Co Ltd Automatic focusing method
JP2006251449A (en) * 2005-03-11 2006-09-21 Canon Inc Zoom lens controller and optical equipment
JP2014085217A (en) * 2012-10-23 2014-05-12 Nuflare Technology Inc Focus position detection device, inspection device, focus position detection method and inspection method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59218410A (en) * 1983-05-27 1984-12-08 Hitachi Ltd Automatic focusing method
JPH01177283A (en) * 1988-01-05 1989-07-13 Nec Corp Focus adjustor

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59218410A (en) * 1983-05-27 1984-12-08 Hitachi Ltd Automatic focusing method
JPH01177283A (en) * 1988-01-05 1989-07-13 Nec Corp Focus adjustor

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04305609A (en) * 1991-04-03 1992-10-28 Sharp Corp Autofocusing device
JP2006154393A (en) * 2004-11-30 2006-06-15 Toppan Printing Co Ltd Automatic focusing method
JP2006251449A (en) * 2005-03-11 2006-09-21 Canon Inc Zoom lens controller and optical equipment
US8031257B2 (en) 2005-03-11 2011-10-04 Canon Kabushiki Kaisha Zoom lens control apparatus and optical instrument
JP2014085217A (en) * 2012-10-23 2014-05-12 Nuflare Technology Inc Focus position detection device, inspection device, focus position detection method and inspection method
US9557277B2 (en) 2012-10-23 2017-01-31 Nuflare Technology, Inc. Inspection apparatus and inspection method

Also Published As

Publication number Publication date
JP2971892B2 (en) 1999-11-08

Similar Documents

Publication Publication Date Title
CN100435551C (en) Image processing system, projector, and image processing method
CN100547478C (en) Projector and method for controlling projection
CN100495194C (en) Image processing system, projector and image processing method
JP3640156B2 (en) Pointed position detection system and method, presentation system, and information storage medium
US8807762B2 (en) Projector
CN1928700B (en) Projection type display device and method for controlling the same
JP5346426B2 (en) Screen burn prevention method and apparatus for image display
US20100061636A1 (en) Face detector and face detecting method
JP2005308476A (en) Liquid crystal display inspection apparatus and liquid crystal display inspection method
JPH0350513A (en) Automatic focusing system
EP2146501A1 (en) Image processing apparatus, image-capturing apparatus, and image processing program
US7145733B2 (en) Projector and exposure adjustment method
US6064433A (en) Video filming method and apparatus
JP2667885B2 (en) Automatic tracking device for moving objects
JP4661651B2 (en) How to adjust the position of the projected image
JPS6322241B2 (en)
JPH06105209B2 (en) Headlight optical axis adjustment method and apparatus
JP2807232B2 (en) Medical image difference recognition display method and medical image difference recognition display device
JP3258794B2 (en) Convergence adjustment device
JP3024231B2 (en) Photometric calculation device
JP3547203B2 (en) Electronic exposure control device
JPH07103718A (en) Dimension detector for coil-shaped object
JPH04260014A (en) Automatic focusing device
US20180210186A1 (en) Image processing apparatus, image processing system, microscope system, image processing method and computer-readable recording medium
JP2580295B2 (en) Automatic exposure control device

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080827

Year of fee payment: 9

LAPS Cancellation because of no payment of annual fees