【発明の詳細な説明】
〔産業上の利用分野〕
本発明は撮像装置に関し、特にその自動焦点装1に関す
る.
〔従来の技術〕
従来の自動焦点装1としては、音波等の反射を利用した
もの、焦点の合っていない像を光学的に2重にし、2重
の像が重なり合うことを利用したもの等があった.
〔発明が解決しようとする課題〕
上述した従来の自動焦点装置ではレンズ駆動モータの池
にも光学部付近に装置の1部を付加する必要があった.
また、画像中の任意の点に焦点を合わせることが困難で
あるという欠点があった.本発明の目的は前記課題を解
決した自動焦点装置を提供することにある.
〔課題を解決するための手段〕
前記目的を達成するため、本発明に係る自動焦点装置は
しきい値を決定する回路と、しきい値と各画素の輝度を
比較し、しきい値より高い(あるいは低い)輝度の画素
を数える回路と、数えた画素をフレーム間で比較する回
路と、その出力信号を受けてレンズを駆動して焦点合せ
を行うレンズ駆動モータとを有するものである.
〔実施例〕
以下、本発明の一実施例を図により説明する.第1図は
本発明の一実施例を示すブロック図である.
図において、lは撮像部、2はレンズ駆動モー夕、3は
しきい値を決定するしきい値計算回路、4は平均値計算
回路、5は最大輝度検出回路、6は画素比較積算回路、
7はフレーム比較回路である.また、図中、平均値計算
回路4のNは1フレーム総画素数を意味し、KはO<K
<1の範囲である.
焦点調整開始と同時に撮像部1の焦点調整レンズは最近
点に焦点を合わせる.続いてレンズ駆動モータ2により
レンズを遠方に焦点が合う方向に連続的に動かす.しき
い値計算回路3は平均値計算回路4と最大輝度検出回路
5を有しており、A/D変換された画像信号より1フレ
ームの輝度平均値■よ及び同フレームの最大輝度V.を
検出する.これらの値より、しきい値■7はV7=VA
士(Vll VA )・Kと計算される(0くK<
1).
画素比較積算回路6ではしきい値計算回路3で前フレー
ムの画像より計算されたしきい値と各画素の輝度を比較
し、しきい値より大きい輝度を持つ画素の数を数フレー
ムにわたり数える.フレーム比較回路7では画素比較積
算回路5で積算した画素数同士を比較し、新たに算出し
た画素数がその前に算出した画素数より小さくなった時
点でレンズ駆動モータ2に停止信号を発生し、レンズ駆
動モータ2はレンズの移動を止める.
第2図に焦点の合った画像の水平ラインの輝度分布の例
を、第3図に第2図と同じ対象で焦点の合っていない画
像の輝度分布の例を示す.画像の輝度平均より高い(低
い)適当な値をしきい値として、そのしきい値より高い
(低い)輝度を持つ画素の総数はピントの合った画像で
最大となる.本発明は適当なしきい値を決定し、それよ
り大きい(小さい)輝度を持つ画素の数が最大となるよ
うにレンズを調節するというものである.〔発明の効果
〕
以上説明したように本発明はしきい値を適当に定め、し
きい値より高い(あるいは低い》輝度の画素数が最大と
なるように焦点レンズを調節するため、画像信号のみに
よりレンズ位置を決定でき、レンズ駆動モータの他は撮
像部に付加部品をつける必要がない.また、画素をサン
プリングする領域を指定することにより、画像の任意の
位置に焦点を合わせることができる効果を有する.DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an imaging device, and particularly to an automatic focusing device 1 thereof. [Prior Art] Conventional automatic focusing devices 1 include devices that utilize reflection of sound waves, etc., devices that optically double an out-of-focus image, and utilize the fact that the double images overlap. there were. [Problems to be solved by the invention] In the conventional automatic focusing device described above, it was necessary to add a part of the device near the optical section to the lens drive motor.
Another drawback was that it was difficult to focus on any point in the image. An object of the present invention is to provide an automatic focusing device that solves the above problems. [Means for Solving the Problems] In order to achieve the above object, an automatic focusing device according to the present invention includes a circuit that determines a threshold value, compares the brightness of each pixel with the threshold value, and compares the brightness of each pixel with the threshold value, and It has a circuit that counts pixels with (or low) brightness, a circuit that compares the counted pixels between frames, and a lens drive motor that receives the output signal and drives the lens for focusing. [Example] Hereinafter, an example of the present invention will be explained with reference to the drawings. FIG. 1 is a block diagram showing one embodiment of the present invention. In the figure, l is an imaging unit, 2 is a lens drive mode controller, 3 is a threshold calculation circuit that determines a threshold value, 4 is an average value calculation circuit, 5 is a maximum brightness detection circuit, 6 is a pixel comparison integration circuit,
7 is a frame comparison circuit. In addition, in the figure, N in the average value calculation circuit 4 means the total number of pixels in one frame, and K means O<K.
<1 range. At the same time as the focus adjustment starts, the focus adjustment lens of the imaging unit 1 focuses on the closest point. Next, the lens drive motor 2 continuously moves the lens in a direction that focuses on a distant object. The threshold value calculation circuit 3 has an average value calculation circuit 4 and a maximum brightness detection circuit 5, and calculates the average brightness value of one frame (V) and the maximum brightness (V) of the same frame from the A/D converted image signal. Detect. From these values, the threshold value ■7 is V7=VA
It is calculated as (Vll VA )・K (0kuK<
1). The pixel comparison/accumulation circuit 6 compares the brightness of each pixel with the threshold value calculated from the image of the previous frame by the threshold calculation circuit 3, and counts the number of pixels having a brightness greater than the threshold value over several frames. The frame comparison circuit 7 compares the number of pixels accumulated by the pixel comparison and accumulation circuit 5, and generates a stop signal to the lens drive motor 2 when the newly calculated number of pixels becomes smaller than the previously calculated number of pixels. , the lens drive motor 2 stops the movement of the lens. Figure 2 shows an example of the brightness distribution of a horizontal line in an in-focus image, and Figure 3 shows an example of the brightness distribution in an out-of-focus image of the same object as in Figure 2. By setting an appropriate value higher (lower) than the average brightness of the image as a threshold, the total number of pixels with brightness higher (lower) than the threshold is maximized in an in-focus image. The present invention determines an appropriate threshold value and adjusts the lens so that the number of pixels having luminance greater (or lesser) than the threshold value is maximized. [Effects of the Invention] As explained above, the present invention appropriately determines the threshold value and adjusts the focusing lens so that the number of pixels with luminance higher (or lower) than the threshold value is maximized. The lens position can be determined by the lens drive motor, and there is no need to attach any additional parts to the imaging unit other than the lens drive motor.Also, by specifying the area where pixels are sampled, it is possible to focus on any position in the image. has.
【図面の簡単な説明】[Brief explanation of the drawing]
第1図は本発明の一実施例を示すブロック図、第2図は
焦点の合った画像を示す図、第3図は焦点のボケな画像
を示す図である.
1・・・撮像部 2・・・レンズ駆動モータ
3・・・しきい値計算回路 4・・・平均値計算回路5
・・・最大輝度検出回路 6・・・画素比較積算回路7
・・・フレーム比較回路
一一一例
特許出願人 日本電気株式会社
代 理 人 弁理士 菅 野
中・r(ニ
一一一FIG. 1 is a block diagram showing an embodiment of the present invention, FIG. 2 is a diagram showing an in-focus image, and FIG. 3 is a diagram showing an out-of-focus image. 1... Imaging unit 2... Lens drive motor 3... Threshold value calculation circuit 4... Average value calculation circuit 5
... Maximum brightness detection circuit 6 ... Pixel comparison integration circuit 7
... Frame Comparison Circuit 111 Example Patent Applicant: NEC Corporation Representative Patent Attorney: Sugano
Naka・r (N111)