JPH0675134B2 - Image detection method - Google Patents
Image detection methodInfo
- Publication number
- JPH0675134B2 JPH0675134B2 JP466188A JP466188A JPH0675134B2 JP H0675134 B2 JPH0675134 B2 JP H0675134B2 JP 466188 A JP466188 A JP 466188A JP 466188 A JP466188 A JP 466188A JP H0675134 B2 JPH0675134 B2 JP H0675134B2
- Authority
- JP
- Japan
- Prior art keywords
- image
- focus
- output signal
- polarity
- image sensor
- 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 - Fee Related
Links
Landscapes
- Projection-Type Copiers In General (AREA)
- Automatic Focus Adjustment (AREA)
Description
【発明の詳細な説明】 (産業上の利用分野) 本発明は、CCDラインセンサなどのイメージセンサを用
いて合焦判別するオートフォーカス装置の画像検出方法
に関するものである。Description: TECHNICAL FIELD The present invention relates to an image detection method for an autofocus device that performs focus determination using an image sensor such as a CCD line sensor.
(発明の技術的背景) CCDラインセンサなどのイメージセンサを用いたオート
フォーカス方法が種々提案されている。しかしこのオー
トフォーカス動作にはその動作に適した画像領域の投影
光がイメージセンサに入力されていることが前提とな
る。例えば単一明度の画像領域や濃度変化の頻度が少な
い領域では正しいオートフォーカス動作ができず誤動作
の原因となる。(Technical background of the invention) Various autofocus methods using an image sensor such as a CCD line sensor have been proposed. However, this autofocus operation is premised on that the projection light of the image area suitable for the operation is input to the image sensor. For example, a correct autofocus operation cannot be performed in an image area having a single lightness or an area in which the density changes less frequently, which causes a malfunction.
そこでオートフォーカス動作に先行してオートフォーカ
スに適する画像領域であるか否かを判断する方法が提案
されている。例えばラインセンサの出力信号を所定の二
値化レベルで二値化し、その極性反転回数換言すれば白
黒反転回数を求め所定回数以上であれば画像有りとする
ものがある。しかしこの方法は白黒反転回数が全てのフ
ォーカスゾーンと所定回数に達しない場合にオートフォ
ーカスできないという問題があった。Therefore, a method of determining whether or not the image area is suitable for autofocus prior to the autofocus operation has been proposed. For example, there is a method in which the output signal of the line sensor is binarized at a predetermined binarization level, the number of times of polarity reversal, in other words, the number of black and white reversals is calculated, and if there is a predetermined number of times or more, an image exists. However, this method has a problem that autofocus cannot be performed when the number of black and white reversals does not reach the predetermined number of times in all focus zones.
(発明の目的) 本発明はこのような事情に鑑みなされたものであり、白
黒反転回数の全てのフォーカスゾーンで所定回数に達し
ない場合であっても最も良好なフォーカスゾーンを選出
してオートフォーカス動作をするようにした画像検出方
法を提供することを目的とする。(Object of the Invention) The present invention has been made in view of the above circumstances, and selects the best focus zone even in the case where the number of times of black-and-white inversion does not reach the predetermined number, and selects the best focus zone for autofocusing. It is an object to provide an image detection method that operates.
(発明の構成) 本発明によればこの目的は、画像投影光をイメージセン
サにより走査して得られるイメージセンサの出力信号を
用いて、投影レンズを合焦位置に制御するオートフォー
カス装置の画像検出方法において、下記の各ステップ、
すなわち (a)前記イメージセンサの出力信号をネガ用およびポ
ジ用の各二値化レベルと比較し各二値化レベルに対する
極性反転回数数を別々に積算すると共に、前記出力信号
を前記各二値化レベルが横断する画像長さを積算するス
テップ; (b)各極性反転回数の一方がそれぞれネガ用およびポ
ジ用の一定値以上であれば画像有りとしてオートフォー
カス動作を行うステップ; (c)各極性反転回数が共にネガ用およびポジ用の一定
値以下であれば各極性反転回数および各画像長さををフ
ォーカスゾーン位置と共に記憶し、フォーカスゾーンを
変更して(a),(b)の動作を行うステップ; (d)各極性反転回数が全てのフォーカスゾーンに対し
て前記一定値以下であれば、極性反転回数が最大のフォ
ーカスゾーンを求めるステップ。(Constitution of Invention) According to the present invention, an object of the present invention is to detect an image of an autofocus device which controls a projection lens to a focus position by using an output signal of the image sensor obtained by scanning an image projection light with the image sensor. In the method, each of the following steps,
That is, (a) the output signal of the image sensor is compared with each of the negative and positive binarization levels, and the number of polarity inversions for each binarization level is separately integrated, and the output signal is binarized. A step of accumulating the image lengths crossed by the conversion level; (b) a step of performing an autofocus operation assuming that an image exists if one of the polarity reversals is equal to or more than a certain value for negative and positive; If the number of polarity reversals is less than a fixed value for negative and positive, both the number of polarity reversals and each image length are stored together with the focus zone position, and the focus zone is changed to perform the operations (a) and (b). (D) If the number of polarity reversals is less than or equal to the fixed value for all focus zones, the step of obtaining the focus zone with the maximum number of polarity reversals is performed.
(e)前記ステップ(d)において、極性反転回数最大
の単一のフォーカスゾーンがある場合には、そのフォー
カスゾーンにイメージセンサを戻してオートフォーカス
動作を行うステップ; (f)前記ステップ(d)において、極性反転回数最大
のフォーカスゾーンが複数ある場合には、前記画像長さ
が最大のフォーカスゾーン位置にイメージセンサを戻し
てオートフォーカス動作を行うステップ; の各ステップを有することを特徴とする画像検出方法に
より達成される。(E) In step (d), when there is a single focus zone with the maximum number of polarity reversals, the image sensor is returned to the focus zone to perform the autofocus operation; (f) the step (d) In the case where there are a plurality of focus zones having the maximum number of polarity reversals, the step of returning the image sensor to the position of the focus zone having the maximum image length to perform the autofocus operation; It is achieved by a detection method.
(実施例) 第1図は本発明の一実施例であるリーダプリンタの全体
概略図、第2図はそのオートフォーカス制御装置のブロ
ック図、第3図は動作の流れ図、また第4図は各部出力
波形図、第5図は二値化レベルをヒストグラムから求め
る原理説明図でありそのN−1,N−2はネガに対する出
力信号Vとヒストグラムを、P−1,P−2はポジに対す
るものを示すものである。(Embodiment) FIG. 1 is an overall schematic view of a reader printer which is an embodiment of the present invention, FIG. 2 is a block diagram of its autofocus control device, FIG. 3 is a flow chart of operation, and FIG. The output waveform diagram and Fig. 5 are explanatory diagrams of the principle of obtaining the binarization level from the histogram. N-1 and N-2 are the output signal V and the histogram for the negative, and P-1 and P-2 are those for the positive. Is shown.
第1、2図において符号10はマイクロフィッシュやマイ
クロロールフィルムなどのマイクロ写真の原画である。
12は光源であり、光源12の光はコンデンサレンズ14、防
熱フィルタ16、反射鏡18を介して原画10の下面に導かれ
る。リーダモードにおいては、原画10の透過光(画像投
影光)は、投影レンズ20、反射鏡22、24、26によって透
過型スクリーン28に導かれ、このスクリーン28に原画10
の拡大投影像を結像する。プリンタモードにおいては、
反射鏡24は第1図仮想線位置に回動し、投影光は反射鏡
22、30、32によってPPC方式のスリット露光型プリンタ3
4に導かれる。プリンタ34の感光ドラム36の回転に動悸
して反射鏡22、30が移動し、感光ドラム36上に潜像が形
成される。この潜像は所定の極性に帯電されたトナーに
より可視像化され、このトナー像が転写紙38に転写され
る。In FIGS. 1 and 2, reference numeral 10 is an original image of a micro photograph such as a micro fish or a micro roll film.
Reference numeral 12 denotes a light source, and the light from the light source 12 is guided to the lower surface of the original image 10 via a condenser lens 14, a heat insulating filter 16, and a reflecting mirror 18. In the reader mode, the transmitted light (image projection light) of the original image 10 is guided to the transmissive screen 28 by the projection lens 20 and the reflecting mirrors 22, 24 and 26, and the original image 10 is displayed on the screen 28.
To form an enlarged projection image of. In printer mode,
The reflecting mirror 24 is rotated to the position of the phantom line in FIG. 1, and the projection light is reflected by the reflecting mirror.
22、30、32 by PPC type slit exposure type printer 3
Guided by 4. The reflection mirrors 22 and 30 move in response to the rotation of the photosensitive drum 36 of the printer 34, and a latent image is formed on the photosensitive drum 36. This latent image is visualized with toner charged to a predetermined polarity, and this toner image is transferred to the transfer paper 38.
50はフォーカス制御用光学系であり、画像投影光の光軸
上に配置された半透鏡52と、投影レンズ54と、イメージ
センサとしてのCCDラインセンサ56と、サーボモータ58
とを備える。投影レンズ20を通過した投影光の一部は半
透鏡52により投影レンズ54を通してラインセンサ56に導
かれる。ラインセンサ56はモータ58により光軸に直交す
る方向へ移動可能となっている。また投影レンズ54は、
投影光がスクリーン28あるいは感光ドラム36の投影面上
に合焦する位置に投影レンズ20を置いた時に、ラインセ
ンサ56の受光面上にも正確に結像するように、その焦点
距離が決められている。A focus control optical system 50 includes a semi-transparent mirror 52 arranged on the optical axis of the image projection light, a projection lens 54, a CCD line sensor 56 as an image sensor, and a servo motor 58.
With. A part of the projection light that has passed through the projection lens 20 is guided to the line sensor 56 through the projection lens 54 by the semitransparent mirror 52. The line sensor 56 is movable by a motor 58 in a direction orthogonal to the optical axis. The projection lens 54
When the projection lens 20 is placed at a position where the projection light is focused on the projection surface of the screen 28 or the photosensitive drum 36, its focal length is determined so that it is accurately focused on the light receiving surface of the line sensor 56. ing.
オートフォーカス機構は投影レンズ20を光軸方向に進退
動させるサーボモータ60を備え、投影光がスクリーン28
あるいは感光ドラム36の投影面上に正しく結像するよう
に制御手段48により焦点制御される。The autofocus mechanism includes a servomotor 60 that moves the projection lens 20 back and forth in the optical axis direction, and the projection light is projected on the screen 28.
Alternatively, the focus is controlled by the control means 48 so that an image is correctly formed on the projection surface of the photosensitive drum 36.
制御手段48は第2図に示すように構成される。すなわち
クロック62が出力するクロックパルスに同期してCCDド
ライバ64はラインセンサ56を駆動する。このラインセン
サ56はその一走査毎に各画素の入射光量に対応して電圧
変化するパルス電圧を出力する。このパルス電圧は、各
画素の特性のバラツキなどのために同じ光量が投影され
ていても各画素毎に変動する。信号処理回路66は各画素
のこの特性のバラツキを補正し、かつ波形整形して第4
図および第5図N−1,P−1の出力信号Vとする。The control means 48 is constructed as shown in FIG. That is, the CCD driver 64 drives the line sensor 56 in synchronization with the clock pulse output from the clock 62. The line sensor 56 outputs a pulse voltage that changes in voltage corresponding to the amount of incident light of each pixel for each scanning. This pulse voltage varies from pixel to pixel even if the same amount of light is projected due to variations in the characteristics of each pixel. The signal processing circuit 66 corrects the variation of this characteristic of each pixel and shapes the waveform to make the fourth signal.
It is assumed that the output signal V is N-1 and P-1 in FIGS.
このように信号処理された出力信号VはA/D変換器68で
デジタル信号に変換され、入力インターフェース70を介
してCPU72に入力される。The output signal V thus signal-processed is converted into a digital signal by the A / D converter 68 and input to the CPU 72 via the input interface 70.
第2図で74はCPU72の制御プログラム等を記憶するROM、
76はRAM、78は出力インターフェース、80および82はD/A
変換器、84、86はそれぞれモータ58、60を駆動するドラ
イバである。In FIG. 2, 74 is a ROM for storing the control program of the CPU 72,
76 for RAM, 78 for output interface, 80 and 82 for D / A
Converters 84 and 86 are drivers for driving motors 58 and 60, respectively.
第2図で100、102は比較器であり、各比較器100、102の
非反転入力端には出力信号Vが入力され、反転入力端に
はそれぞれ後記するようにしてCPU72で求めたネガ用お
よびポジ用の二値化レベルa,bが入力される(第5図参
照)。従ってこれら比較器100、102の出力は第4図c,d
で示すようにV>a,V>bの範囲でHレベルとなる。10
8、110は単安定マルチバイブレータであり、比較器10
0、102の出力c,dの波形の立上がりに同期して一定時間
幅の極性反転パルスe,fを出力する。これらの極性反転
パルスe,fはラインセンサ56の一走査毎にカウンタ112、
114で積算される。これらのカウント値Nn,Npはそれぞ
れ極性反転回数を示し、それぞれ設定器116、118で設定
された一定値Mn,Mpと比較器120、122において比較され
る。そして各カウント値Nn,Npが一定値Mn,Mpに達する
と比較器120、122は画像有りとしてHレベルとなる信号
g,hを出力する。ここに一定値Mn,Mpは画像のゴミやキ
ズによる影響を含めた値に設定しておくのが望ましい。
信号h,gはオア回路124に入力され、信号h,gのいずれか
がHレベルとなれば適正な画像有りとしてCPU72に信号
iを送る一方、これらの信号g,h、iはCPU72に入力さ
れ、Hレベルとなる信号gまたはhに対応して原画のネ
ガ・ポジを判断し、対応した二値化レベルaまたはbを
用いてオートフォーカス動作を行う。In FIG. 2, reference numerals 100 and 102 denote comparators. The output signal V is input to the non-inverting input terminal of each comparator 100 and 102, and the negative input terminal is obtained by the CPU 72 as described below. And the binarization levels a and b for positive are input (see FIG. 5). Therefore, the outputs of these comparators 100 and 102 are shown in FIG.
As shown by, the H level is set in the range of V> a and V> b. Ten
8 and 110 are monostable multivibrator, comparator 10
The polarity inversion pulses e and f having a constant time width are output in synchronization with the rising edges of the waveforms of the outputs c and d of 0 and 102. These polarity inversion pulses e and f are generated by the counter 112,
Accumulated at 114. These count values N n and N p respectively indicate the number of polarity inversions, and are compared with the constant values M n and M p set by the setters 116 and 118 in the comparators 120 and 122, respectively. Then, when the count values N n and N p reach the constant values M n and M p , the comparators 120 and 122 are signals of H level with the presence of an image.
Output g and h. Here, it is desirable to set the constant values M n and M p to values that include the effects of dust and scratches on the image.
The signals h, g are input to the OR circuit 124, and if either of the signals h, g becomes H level, the signal i is sent to the CPU 72 as a proper image, while these signals g, h, i are input to the CPU 72. Then, the negative / positive of the original image is judged according to the signal g or h which becomes H level, and the autofocus operation is performed using the corresponding binarization level a or b.
また第2図において126、128はそれぞれ画像長さLn、Lp
を求めるカウンタである。カウンタ126は比較器100の出
力cの長さの和、すなあちこの出力dがHレベルの間ク
ロックパルスを積算することにより、出力信号Vを二値
化レベルaが横断する画像長さLnとする。またカウンタ
128は比較器102の出力dの反転信号d′の長さの和、す
なわちこの出力dがLレベルの間クロックパルスを積算
することにより、出力信号Vを二値化レベルbが横断す
る画像長さLpとする。In FIG. 2, 126 and 128 are image lengths L n and L p , respectively.
Is a counter that seeks. The counter 126 integrates the sum of the lengths of the outputs c of the comparators 100, that is, the clock pulses while the output d is H level, so that the image length L at which the binarization level a crosses the output signal V. Let n . Also counter
Reference numeral 128 denotes the sum of the lengths of the inverted signal d'of the output d of the comparator 102, that is, the image length at which the binarization level b crosses the output signal V by integrating clock pulses while this output d is at L level. Let L p .
次に本実施例の動作を説明する。制御手段48は、CPU72
で設定されたゾーンに対応する領域の投影光がラインセ
ンサ56に入射するようにサーボモータ58を制御する。使
用者は反射鏡24を第1図実線位置においたリーダモード
を選択し、目標原画をスクリーン28に投影させる(第3
図のステップ200)。この投影光の一部は半透鏡52によ
ってラインセンサ56に導かれる。Next, the operation of this embodiment will be described. The control means 48 is the CPU 72
The servo motor 58 is controlled so that the projection light in the area corresponding to the zone set by is incident on the line sensor 56. The user selects the reader mode in which the reflecting mirror 24 is in the position shown by the solid line in FIG. 1 and projects the target original image on the screen 28 (third part).
Step 200 in the figure). A part of this projection light is guided to the line sensor 56 by the semi-transparent mirror 52.
制御手段48は次にラインセンサ56の出力信号Vを読み込
んで記憶する一方(ステップ202)、この出力信号Vに
基づいて露光量測定を行う(ステップ204)。すなわち
信号処理回路66の出力信号Vはインターフェース70を介
してCPU72に読込まれ、CPU72で露光量制御が行われる。
露光量が適正でなければ(ステップ206)光量を変更し
(ステップ208)、再度露光量測定を行う。この露光量
の調整は、例えばラインセンサ56の各画素の出力信号電
圧のうち、バックグラウンド領域に対応する画素の電圧
を選んでこれが所定電圧になるように光源12の光量を調
整することにより行われる。The control means 48 then reads and stores the output signal V of the line sensor 56 (step 202), while measuring the exposure amount based on this output signal V (step 204). That is, the output signal V of the signal processing circuit 66 is read into the CPU 72 through the interface 70, and the CPU 72 controls the exposure amount.
If the exposure amount is not proper (step 206), the light amount is changed (step 208), and the exposure amount is measured again. The adjustment of the exposure amount is performed by, for example, selecting the voltage of the pixel corresponding to the background area from the output signal voltage of each pixel of the line sensor 56 and adjusting the light amount of the light source 12 so that the voltage becomes a predetermined voltage. Be seen.
次に制御手段48はラインセンサ56に入力された投影光に
適切な画像が含まれるか否かを判断する。すなわち出力
信号Vに基づき第4図N−2、P−2に示すヒストグラ
ムを求め、その最大値が設定値x以下であれば(ステッ
プ210)適正な画像が有るとして(ステップ212)制御手
段48はオートフォーカス制御を行う(ステップ214)。Next, the control means 48 determines whether or not the projection light input to the line sensor 56 includes an appropriate image. That is, based on the output signal V, the histograms shown in N-2 and P-2 of FIG. 4 are obtained, and if the maximum value is equal to or less than the set value x (step 210), it is determined that there is an appropriate image (step 212) and the control means 48. Performs autofocus control (step 214).
ここでその理由を説明しておく。Here's why.
第5図1のN−1、P−1はマイクロリーダプリンタに
おけるCCDラインセンサの出力信号Vの時間tに対する
変化を、また同図N−2、P−2はそれぞれのヒストグ
ラムを示している。ここにN−1、N−2は原画がネガ
フィルムの場合、P−1、P−2はポジフィルムの場合
である。In FIG. 5, N-1 and P-1 show changes in the output signal V of the CCD line sensor in the micro reader printer with respect to time t, and N-2 and P-2 in FIG. 5 show respective histograms. Here, N-1 and N-2 are when the original image is a negative film, and P-1 and P-2 are when it is a positive film.
一般に原稿の黒化率は6%程度であり、高くても20〜30
%が限界である。従ってラインセンサ上ではバックグラ
ウンドに対応する画素が圧倒的に多くなる。またこのバ
ックグラウンドの濃度は同一のフィルムであればその変
動が少なく比較的安定している。従って出力信号V(濃
度Dに対応している)に対する画素数Nを示すヒストグ
ラム(N−2、P−2)は、バックグラウンド濃度D1、
D2に大きな山A、Bを持つことになる。そして適切な画
像が含まれていなければその最大値は著しく高くなり、
また画像が含まれていれば低くなると共に広がることに
なる。なお各ヒストグラウムの面積はラインセンサの画
素数に対応して一定である。Generally, the blackening rate of the original is about 6%, and at most 20 to 30
% Is the limit. Therefore, on the line sensor, the number of pixels corresponding to the background is overwhelmingly large. The background density is relatively stable if the film is the same, with little fluctuation. Therefore, the histogram (N-2, P-2) showing the number of pixels N with respect to the output signal V (corresponding to the density D) is the background density D 1 ,
You will have big mountains A and B on D 2 . And if the appropriate image is not included, its maximum will be significantly higher,
Further, if the image is included, it becomes low and widens. The area of each histogram is constant corresponding to the number of pixels of the line sensor.
本実施例ではこのような点に着目し、ヒストグラムの最
大値が設定値x以下となる場合には画像有りとし、設定
値x以上の時には画像無しとするものである。In this embodiment, paying attention to such a point, when the maximum value of the histogram is equal to or less than the set value x, the image is present, and when it is equal to or more than the set value x, the image is not present.
このようにして画像有りとした場合のオートフォーカス
制御の方法は種々のものが適用可能であり、例えば出力
信号Vからコントラストが最大となる投影レンズ20の位
置を求め、その位置を合焦とする(ステップ218)。Various autofocus control methods can be applied when there is an image in this way. For example, the position of the projection lens 20 that maximizes the contrast is obtained from the output signal V, and that position is brought into focus. (Step 218).
この合焦状態でプリンタモードにすれば(ステップ21
8)、反射鏡24が第1図仮想線位置に回動し、転写紙38
に画像が転写されてハードコピーが得られる。If the printer mode is set in this focused state (step 21
8), the reflecting mirror 24 is rotated to the phantom line position in FIG.
The image is transferred to and a hard copy is obtained.
ステップ212においてヒストグラムの最大値が設定値x
以上になれば適切な画像が無いものとして制御手段48は
このヒストグラムを用いてネガ用およびポジ用に二値化
レベルa,bを求める(ステップ220)。すなわちヒストグ
ラムの最大値の山が設定値x0と交わる2点のうち大きい
方の点の濃度に一定値αを加算してネガ用のレベルa
を、小さい方の濃度から一定値βを減算してポジ用のレ
ベルbを求める。この原理を第5図に基づき説明する。In step 212, the maximum value of the histogram is the set value x
If it becomes the above, it is considered that there is no suitable image, and the control means 48 obtains the binarization levels a and b for negative and positive using this histogram (step 220). That is, a constant value α is added to the density of the larger point of the two points where the peak of the maximum value of the histogram intersects the set value x 0, and the negative level a
Is subtracted from the smaller density by a constant value β to obtain a positive level b. This principle will be described with reference to FIG.
第5図に示すように、ネガ原稿の時にはヒストグラムが
最大となる濃度D1より濃い側に画像が有り、反対にポジ
原画の時には濃度D2より薄い側に画像が有る。従ってヒ
ストグラムの最大値の山が一定の設定値x0と交わる2点
のうち大きい点の濃度に一定値αを加算した濃度aをネ
ガの二値化レベルに、また小さい点の濃度から一定値β
を減算した濃度bをポジの二値化レベルに採用すれば、
これらの二値化レベルa,bはバックグラウンド濃度の影
響を受けず常に原画に最適な二値化レベルとなる。As shown in FIG. 5, in the case of a negative original, the image is on the side darker than the density D 1 where the histogram is the maximum, and conversely, when it is the positive original, the image is on the side lighter than the density D 2 . Therefore, the density a obtained by adding the constant value α to the density of the larger point of the two points where the peak of the maximum value of the histogram intersects the constant set value x 0 is used as the negative binarization level, and from the density of the smaller point to the constant value. β
If the density b obtained by subtracting is used as the positive binarization level,
These binarization levels a and b are always the optimum binarization level for the original image without being affected by the background concentration.
本実施例ではヒストグラムの最大値が設定値x以上とな
って画像無しと判断した時には、このヒストグラムを用
いて前記のように二値化レベルa,bを求め、以後はフォ
ーカスゾーンを変更しながら、リアルタイムでラインセ
ンサの出力信号を二値化し、その極性反転回数が一定以
上あるいは最大となるフォーカスゾーンを求めるもので
ある。In this embodiment, when the maximum value of the histogram is equal to or larger than the set value x and it is determined that there is no image, the binarization levels a and b are obtained using the histogram as described above, and thereafter, the focus zone is changed while changing the focus zone. The output signal of the line sensor is binarized in real time, and the focus zone where the number of polarity reversals is equal to or greater than a certain value or maximum is obtained.
このような原理に基づきネガ用およびポジ用の各二値化
レベルa,bを求めた後(ステップ220)、CPU72はライン
センサ56をモータ58により移動して異なるフォーカスゾ
ーンを選定し(ステップ222)、新たに走査して得られ
る出力信号Vを前記の二値化レベルa,bによりリアルタ
イムで二値化し(ステップ224)、その極性反転回数
Nn,Npをカウンタ112、114で積算する(ステップ22
6)。そしてカウント値Nn,Npが一定値Mn,Mpより大き
ければ比較器120、122は画像有りとするHレベルの信号
gまたはhをCPU72およびオア回路124に出力する(ステ
ップ228)。CPU72は信号g,hのいずれもがHレベルにな
らずオア回路124の出力がLレベルであれば画像無しと
してこの時のカウント値Nn,Npと共に、カウンタ126、1
28で求めた画像長さLn、Lpをフォーカスゾーンの位置と
共にRAM76にメモリする。そして全てのフォーカスゾー
ンにラインセンサ56を移動させてステップ222〜230の動
作を繰り返す。信号g,hのいずれかがHレベルであれば
適正な画像有りとし(ステップ228)制御手段48はオー
トフォーカス制御を行う(ステップ214、216)。After obtaining the negative and positive binarization levels a and b based on such a principle (step 220), the CPU 72 moves the line sensor 56 by the motor 58 to select different focus zones (step 222). ), The output signal V newly obtained by scanning is binarized in real time by the binarization levels a and b (step 224), and the polarity inversion number
N n and N p are integrated by counters 112 and 114 (step 22)
6). If the count values N n and N p are larger than the constant values M n and M p , the comparators 120 and 122 output the H level signal g or h indicating that an image is present to the CPU 72 and the OR circuit 124 (step 228). If neither of the signals g and h goes to the H level and the output of the OR circuit 124 is at the L level, the CPU 72 determines that there is no image and count values N n and N p at this time as well as the counters 126 and 1
The image lengths L n and L p obtained in 28 are stored in the RAM 76 together with the position of the focus zone. Then, the line sensor 56 is moved to all the focus zones and the operations of steps 222 to 230 are repeated. If either of the signals g and h is at the H level, it is determined that there is an appropriate image (step 228) and the control means 48 performs autofocus control (steps 214 and 216).
全てのフォーカスゾーンに対して信号g,hが共にHレベ
ルにならなければ(ステップ232)、CPU72はRAM76にメ
モリしたカウント値Nn,Npの最大値を求め、この最大値
となるフォーカスゾーン位置が複数有るか否かを検出す
る(ステップ234)。このカウント値最大のフォーカス
ゾーンが単数であればCPUはこの求めたゾーン位置にラ
インセンサ56を位置合わせすることにより(ステップ23
6)オートフォーカス動作を行う(ステップ214、21
6)。カウント値最大のフォーカスゾーンが複数存在す
る時には(ステップ234)、CPU72は画像長さ長さLn、Lp
が最大のフォーカスゾーンをRAM76の内容から検出し、
イメージセンサをこのフォーカスゾーンに移動させ(ス
テップ238)、このフォーカスゾーンによりオートフォ
ーカス動作を行う(ステップ214、216)。そしてプリン
タモードにすればハードコピーが得られる(ステップ12
8)。If the signals g and h do not reach the H level for all focus zones (step 232), the CPU 72 finds the maximum value of the count values N n and N p stored in the RAM 76, and the focus zone having the maximum value is obtained. It is detected whether or not there are a plurality of positions (step 234). If there is a single focus zone with the maximum count value, the CPU aligns the line sensor 56 with the obtained zone position (step 23
6) Perform autofocus operation (steps 214 and 21)
6). When there are multiple focus zones with the maximum count value (step 234), the CPU 72 determines the image length L n , L p
Detects the maximum focus zone from the contents of RAM76,
The image sensor is moved to this focus zone (step 238), and an autofocus operation is performed in this focus zone (steps 214 and 216). Then, in printer mode, a hard copy is obtained (step 12).
8).
この実施例ではヒストグラムの最大値が一定値x以下と
なることから予備的に画像の有無を判断し(ステップ21
0,212)、このヒストグラムを利用して二値化レベルa,b
を求めているので(ステップ220)、二値化レベルa,bの
設定が高精度に行える。しかし本発明はこれらのステッ
プ210、212、220を省いてもよく、予め設定した一定の
二値化レベルを用いてステップ222〜236の各動作を行う
ものは包含する。In this embodiment, the presence / absence of an image is preliminarily determined because the maximum value of the histogram is equal to or less than the constant value x (step 21
0,212), using this histogram, the binarization level a, b
(Step 220), the binarization levels a and b can be set with high accuracy. However, the present invention may omit these steps 210, 212, 220, and includes performing each operation of steps 222 to 236 using a predetermined constant binarization level.
なおイメージセンサはCCDラインセンサに限られるもの
ではなく、MOS型ラインセンサ、あるいはエリアセンサ
であってもよい。The image sensor is not limited to the CCD line sensor, but may be a MOS type line sensor or an area sensor.
(発明の効果) 本発明は以上のように、イメージセンサの出力信号をネ
ガ用およびポジ用の二値化レベルで二値化した時の極性
反転回路を積算し、これら積算値がネガ用およびポジ用
の一定値以上になれば画像有りとする一方、一定値以下
であればその積算値と、各二値化レベルが出力信号を横
断する時の画像長さと、フォーカスゾーン位置とをメモ
リし、全てのフォーカスゾーンに対して極性反転回数の
積算値が前記の一定値以下となった場合には、この積算
値が最大となったフォーカスゾーン位置をメモリから読
出してこの位置へイメージレーダを戻し、積算値最大の
フォーカスゾーンが複数存在する場合には画像長さが最
大となるフォーカスゾーンにイメージセンサを移動させ
てオートフォーカス動作を行う。従って全てのフォーカ
スゾーンにおいて極性反転回数の積算値が一定値に達し
なくても、最も良好なフォーカスゾーンを選出してオー
トフォーカス動作を行うことができる。(Effect of the Invention) As described above, the present invention integrates the polarity inversion circuit when the output signal of the image sensor is binarized at the binarizing level for the negative and the positive, and these integrated values are used for the negative and If it is above a certain value for positive, it means that there is an image, while if it is less than a certain value, the accumulated value, the image length when each binarization level crosses the output signal, and the focus zone position are stored in memory. , If the integrated value of the number of polarity reversals for all focus zones is less than the above-mentioned fixed value, the focus zone position where this integrated value is maximum is read from the memory and the image radar is returned to this position. When there are a plurality of focus zones having the maximum integrated value, the image sensor is moved to the focus zone having the maximum image length to perform the autofocus operation. Therefore, even if the integrated value of the number of polarity reversals does not reach a constant value in all the focus zones, the best focus zone can be selected and the autofocus operation can be performed.
第1図は本発明の一実施例であるリーダプリンタの全体
概略図、第2図はそのオートフォーカス制御装置のブロ
ック図、第3図は動作の流れ図、第4図は各部の出力波
形図、第5図は原理を説明するためのイメージセンサの
出力信号およびそのヒストグラムを示す図である。 10…原画、 20…投影レンズ、 56…一次元固体イメージセンサ。 a,b…二値化レベル、 Nn,Np…極性反転回数、 Mn,Mp…一定値、 Ln、Lp…画像長さ。FIG. 1 is an overall schematic view of a reader printer which is an embodiment of the present invention, FIG. 2 is a block diagram of its autofocus control device, FIG. 3 is a flow chart of operation, and FIG. 4 is an output waveform diagram of each part, FIG. 5 is a diagram showing an output signal of an image sensor and its histogram for explaining the principle. 10… Original image, 20… Projection lens, 56… One-dimensional solid-state image sensor. a, b ... binarization level, N n, N p ... polarity inversion number, M n, M p ... constant value, L n, L p ... image length.
Claims (1)
て得られるイメージセンサの出力信号を用いて、投影レ
ンズを合焦位置に制御するオートフォーカス装置におけ
る画像検出方法において、 下記の各ステップを有することを特徴とする画像検出方
法: (a)前記イメージセンサの出力信号をネガ用およびポ
ジ用の各二値化レベルと比較し各二値化レベルに対する
極性反転回数数を別々に積算すると共に、前記出力信号
を前記各二値化レベルが横断する画像長さを積算するス
テップ; (b)各極性反転回数の一方がそれぞれネガ用およびポ
ジ用の一定値以上であれば画像有りとしてオートフォー
カス動作を行うステップ; (c)各極性反転回数が共にネガ用およびポジ用の一定
値以下であれば各極性反転回数および各画像長さををフ
ォーカスゾーン位置と共に記憶し、フォーカスゾーンを
変更して(a),(b)の動作を行うステップ; (d)各極性反転回数が全てのフォーカスゾーンに対し
て前記一定値以下であれば、極性反転回数が最大のフォ
ーカスゾーンを求めるステップ。 (e)前記ステップ(d)において、極性反転回数最大
の単一のフォーカスゾーンがある場合には、そのフォー
カスゾーンにイメージセンサを戻してオートフォーカス
動作を行うステップ; (f)前記ステップ(d)において、極性反転回数最大
のフォーカスゾーンが複数ある場合には、前記画像長さ
が最大のフォーカスゾーン位置にイメージセンサを戻し
てオートフォーカス動作を行うステップ。1. An image detection method in an autofocus device for controlling a projection lens to a focus position by using an output signal of an image sensor obtained by scanning an image projection light with an image sensor, including the following steps. An image detection method characterized by: (a) comparing the output signal of the image sensor with each of the negative and positive binarization levels and separately integrating the number of polarity inversions for each binarization level; A step of accumulating the image length across which the output signal crosses each of the binarization levels; (b) if one of the polarity inversion numbers is equal to or greater than a certain value for negative and positive, an autofocus operation is performed with an image. (C) If the number of polarity reversals is less than or equal to a certain value for negative and positive, the number of polarity reversals and each image length are adjusted. A step of memorizing together with the dust zone position and changing the focus zone to perform the operations of (a) and (b); Step of finding the focus zone with the maximum number of times. (E) In step (d), when there is a single focus zone with the maximum number of polarity reversals, the image sensor is returned to the focus zone to perform the autofocus operation; (f) the step (d) In step 2, when there are a plurality of focus zones having the maximum number of polarity reversals, the step of returning the image sensor to the focus zone position having the maximum image length and performing the autofocus operation.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP466188A JPH0675134B2 (en) | 1988-01-14 | 1988-01-14 | Image detection method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP466188A JPH0675134B2 (en) | 1988-01-14 | 1988-01-14 | Image detection method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH01182815A JPH01182815A (en) | 1989-07-20 |
| JPH0675134B2 true JPH0675134B2 (en) | 1994-09-21 |
Family
ID=11590114
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP466188A Expired - Fee Related JPH0675134B2 (en) | 1988-01-14 | 1988-01-14 | Image detection method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0675134B2 (en) |
-
1988
- 1988-01-14 JP JP466188A patent/JPH0675134B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JPH01182815A (en) | 1989-07-20 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US4899194A (en) | Method of and device for detecting image | |
| US4887125A (en) | Method of and device for detecting focusing condition of image incident upon image sensor | |
| JPH0675134B2 (en) | Image detection method | |
| JPH0642011B2 (en) | Autofocus method | |
| JPH0675132B2 (en) | Image detection method | |
| JPH0675133B2 (en) | Image detection method | |
| JPH0711619B2 (en) | Image detection method | |
| JPH0642012B2 (en) | Autofocus method | |
| JP2540030B2 (en) | Autofocus method | |
| JPH0711618B2 (en) | Image detection method | |
| JPH0642010B2 (en) | Autofocus method | |
| JPH0713696B2 (en) | Image detection method | |
| JPH0642013B2 (en) | Autofocus method | |
| JPH0738045B2 (en) | Autofocus method | |
| JPH0567205B2 (en) | ||
| JPH0642014B2 (en) | Autofocus method | |
| JPH01116611A (en) | Image detecting method | |
| JPH0820588B2 (en) | Image detection method | |
| JPH0642009B2 (en) | Autofocus method | |
| JPH0573206B2 (en) | ||
| JPH0820584B2 (en) | Autofocus method | |
| JPH0782145B2 (en) | Auto focus device | |
| JPH0612375B2 (en) | Image detection method for optical device | |
| JPH0612374B2 (en) | Image detection method for optical device | |
| JPH0746199B2 (en) | Autofocus method for microfilm reader printer |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| S111 | Request for change of ownership or part of ownership |
Free format text: JAPANESE INTERMEDIATE CODE: R313111 |
|
| FPAY | Renewal fee payment (prs date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20070921 Year of fee payment: 13 |
|
| R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
| LAPS | Cancellation because of no payment of annual fees |