JPH0711618B2 - Image detection method - Google Patents
Image detection methodInfo
- Publication number
- JPH0711618B2 JPH0711618B2 JP62277328A JP27732887A JPH0711618B2 JP H0711618 B2 JPH0711618 B2 JP H0711618B2 JP 62277328 A JP62277328 A JP 62277328A JP 27732887 A JP27732887 A JP 27732887A JP H0711618 B2 JPH0711618 B2 JP H0711618B2
- Authority
- JP
- Japan
- Prior art keywords
- image
- histogram
- output signal
- autofocus
- 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
- 238000001514 detection method Methods 0.000 title claims description 6
- 238000000034 method Methods 0.000 description 9
- 238000010586 diagram Methods 0.000 description 5
- 230000003287 optical effect Effects 0.000 description 4
- 241000251468 Actinopterygii Species 0.000 description 1
- 230000007257 malfunction Effects 0.000 description 1
- 238000001000 micrograph Methods 0.000 description 1
- 230000000630 rising effect Effects 0.000 description 1
Landscapes
- Focusing (AREA)
- Variable Magnification In Projection-Type Copying Machines (AREA)
- Automatic Focus Adjustment (AREA)
- Projection Apparatus (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 an output signal of an image sensor is binarized at a predetermined binarization level, the number of times of polarity reversal, in other words, the number of times of black and white reversal is calculated, and if there is a predetermined number of times or more, an image exists. However, in this method, since it is necessary to change the binarization level depending on the background density of the image and the negative / positive polarity of the original film image, it is necessary to obtain the background density in advance. For example, the histogram of the entire image is obtained by the first scan (prescan),
There is a method of determining the background density using this histogram. However, in such a method in which the histogram is obtained by prescanning the entire surface of the image, there is a problem that the operation time becomes long. It may be possible to make a histogram based on an image signal of only a small area in order to shorten the operation time, but in this case, there arises a problem that accuracy is lowered.
特に、文字列など画像密度の高い画像部分でバックグラ
ウンド濃度を求め、このバックグラウンド濃度より2値
化のスライスレベルを求めた場合には精度低下が大きい
という問題があった。In particular, when the background density is obtained in an image portion having a high image density such as a character string and the binarized slice level is obtained from the background density, there is a problem that the accuracy is greatly reduced.
(発明の目的) 本発明はこのような事情に鑑みなされたものであり、フ
ィルム原画のネガ・ポジ極性が不明な場合であっても、
狭い領域の画像信号を用いて短時間で高精度に画像の有
無を判断できるオートフォーカス装置の画像検出方法を
提供することを目的とする。(Object of the Invention) The present invention has been made in view of such circumstances, and even when the negative / positive polarity of the original film of the film is unknown,
An object of the present invention is to provide an image detection method for an autofocus device that can accurately determine the presence or absence of an image in a short time using an image signal in a narrow area.
(発明の構成) 本発明によればこの目的は、画像投影光をイメージセン
サにより走査して得られるイメージセンサの出力信号を
用いて、投影レンズを合焦位置に制御するオートフォー
カス装置の画像検出方法において、前記イメージセンサ
の出力信号に対する画素数を示すヒストグラムを求め、
このヒストグラムを設定値と比較し、前者の最大値が後
者以下なら適切な画像有りとしてオートフォーカス動作
を行う一方、前者の最大値が後者以上ならばこのヒスト
グラムを用いて二値化レベルを求め、この二値化レベル
を用いてイメージセンサの出力信号を二値化して極性反
転回数を積算し、この極性反転回数が一定値以上になる
フォーカスゾーンを画像有りとしてオートフォーカス動
作を行うことを特徴とする装置の画像検出方法により達
成される。(Constitution of the Invention) According to the present invention, an object of the present invention is to detect an image of an autofocus device that 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, obtaining a histogram showing the number of pixels for the output signal of the image sensor,
This histogram is compared with the set value, and if the former maximum value is less than the latter, autofocus operation is performed assuming that there is an appropriate image, while if the former maximum value is greater than the latter, the binarization level is obtained using this histogram. Using this binarization level, the output signal of the image sensor is binarized to integrate the number of polarity inversions, and the autofocus operation is performed assuming that the focus zone where the number of polarity inversions is a certain value or more has an image. It is achieved by the image detection method of the device.
(原理) 第5図のN−1、P−1はマイクロリーダプリンタにお
けるCCDラインセンサの出力信号Vの時間tに対する変
化を、また同図N−2、P−2はそれぞれのヒストグラ
ムを示している。ここにN−1、N−2は原画がネガフ
ィルムの場合、P−1、P−2はポジフィルムの場合で
ある。(Principle) N-1 and P-1 in FIG. 5 show changes with time t of the output signal V of the CCD line sensor in the micro reader printer, and N-2 and P-2 in FIG. 5 show respective histograms. There is. 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 ,
D 2 will have large maximum values A and B. If the appropriate image is not included, the maximum value becomes extremely high, and if the image is included, the maximum value becomes low and spreads. The area of each histogram is constant corresponding to the number of pixels of the line sensor.
このヒストグラムからバックグラウンド濃度D1、D2およ
び二値化レベルa、bを求める場合には、最大値A、B
の山が高くその幅が狭い方がバックグラウンド部分が多
い領域にてヒストグラムを求めたことになるので精度向
上の点から望ましい。When the background densities D 1 and D 2 and the binarization levels a and b are obtained from this histogram, the maximum values A and B
It is desirable from the viewpoint of improving accuracy that the histogram is obtained in a region where there are many background portions, because the peaks are high and the width is narrow.
本発明はこのような点に着目し、狭い領域の画像信号か
ら求めたヒストグラムの最大値が設定値χ以下となる場
合には画像有りとし、この領域を用いてオートフォーカ
ス動作を行うことにより動作時間の大幅の短縮を可能と
する。ここに設定値χは、バックグラウンドのみの画像
の時における合焦時のヒストグラムの最大値付近に設定
しておくのが望ましい。The present invention pays attention to such a point, and when the maximum value of the histogram obtained from the image signal of the narrow region is equal to or less than the set value χ, it is determined that an image exists, and the autofocus operation is performed by using this region. Allows a significant reduction in time. Here, it is desirable that the set value χ is set near the maximum value of the histogram at the time of focusing in the case of the image of the background only.
またヒストグラムの最大値が設定値χ以上となって適切
な画像無しと判断した時には、この時のヒストグラムは
山が高く幅が狭くなりバックグラウンド濃度を高精度に
決定するのに好適であることに着目し、二値化レベルa,
bを求める。例えば第5図に示すように、ネガ原稿の時
にはヒストグラムが最大となる濃度D1より濃い側に画像
が有り、反対にポジ原画の時には濃度D2より薄い側に画
像が有る。従ってヒストグラムの最大値の山が一定の設
定値χ0と交わる2点のうち大きい点の濃度に一定値α
を加算した濃度aをネガの二値化レベルに、また小さい
点の濃度から一定値βを減算した濃度bをポジの二値化
レベルに採用することができる。Also, when the maximum value of the histogram is equal to or greater than the set value χ and it is determined that there is no suitable image, the histogram at this time has high peaks and a narrow width, which is suitable for highly accurately determining the background density. Focusing on the binarization level a,
Find b. For example, 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 maximum, and conversely, when it is the positive original, the image is on the side lighter than the density D 2 . Therefore, the density of the largest point of the two points where the peak of the maximum value of the histogram intersects the constant set value χ 0 has a constant value α
It is possible to adopt the density a obtained by adding the above as the negative binarization level, and the density b obtained by subtracting the constant value β from the density of the small point as the positive binarization level.
本発明はヒストグラムの最大値が設定値χ以上となって
画像無しと判断した時には、この山が高く幅が狭いヒス
トグラムを用いて前記のように二値化レベルa,bを求
め、以後はフォーカスゾーンを変更しながら、リアルタ
イムでラインセンサの出力信号を二値化し、その極性反
転回数が一定以上となるフォーカスゾーンを画像有りと
するものである。In the present invention, when the maximum value of the histogram is equal to or larger than the set value χ and it is determined that there is no image, the binarization levels a and b are obtained as described above by using the histogram in which the peak is high and the width is narrow. While changing the 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 more than a certain value is made to have an image.
(実施例) 第1図は本発明の一実施例であるリーダプリンタの全体
概略図、第2図はそのオートフォーカス制御装置のブロ
ック図、第3図は動作の流れ図、また第4図は各部出力
波形図である。(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. It is an output waveform diagram.
第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, 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 shown by the phantom line in FIG.
22、30、32 by PPC type slit exposure type printer 3
Guided by 4. The reflecting mirrors 22 and 30 move in synchronization with 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は各画素
のこの特性のバラツキを補正し、かつ波形整形して第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 fifth signal.
Let it be the output signal V of FIGS. N-1 and P-1.
このように信号処理された出力信号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を出力する。信号g,hはCPU72に入力され、いずれか
の信号gまたはhがHレベルとなれば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 Nn and Np respectively indicate the number of times of polarity reversal, and are compared in the comparators 120 and 122 with the constant values Mn and Mp set by the setters 116 and 118, respectively. Then, when each count value Nn · Np reaches a constant value Mn · Mp, the comparators 120 and 122 are signals that become H level with an image.
Output g and h. The signals g and h are input to the CPU 72, and if any of the signals g or h becomes H level, the CPU 72 determines that there is an image. At this time, the negative or positive of the original image is judged according to the signal g or h which becomes H level, and the corresponding binarization level a
Alternatively, the autofocus operation is performed using b.
次に本実施例の動作を説明する。制御手段48は、CPU72
で設定されたゾーンに対応する領域の投影光がラインセ
ンサ56に入射するようにサーボモータ58を制御する。使
用者は反射鏡24を第1図実線位置においたリーダモード
を選択し、目標原画をスクリーン28に投影させる(第3
図のステップ100)。この投影光の一部は半透鏡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 100 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を読み込
んで記憶する一方(ステップ102)、この出力信号Vに
基づいて露光量測定を行う(ステップ104)。すなわち
信号処理回路66の出力信号Vはインターフェース70を介
してCPU72に読込まれ、CPU72で露光量制御が行われる。
露光量が適正でなければ(ステップ106)光量を変更し
(ステップ108)、再度露光量測定を行う。この露光量
の調整は、例えばラインセンサ56の各画素の出力信号電
圧のうち、バックグラウンド領域に対応する画素の電圧
を選んでこれが所定電圧になるように光源12の光量を調
整することにより行われる。The control means 48 then reads and stores the output signal V of the line sensor 56 (step 102), while measuring the exposure amount based on the output signal V (step 104). 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 106), the light amount is changed (step 108), 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に示すヒストグラ
ムを求め(ステップ110)、その最大値が設定値χ以下
であれば(ステップ112)適正な画像が有るとして(ス
テップ114)制御手段48はオートフォーカス制御を行う
(ステップ116)。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 in FIG. 4 are obtained (step 110), and if the maximum value is less than or equal to the set value χ (step 112), it is determined that there is an appropriate image (step 114). ) The control means 48 performs autofocus control (step 116).
このオートフォーカス制御の方法は種々のものが適用可
能であり、例えば出力信号Vからコントラストが最大と
なる投影レンズ20の位置を求め、その位置を合焦とする
(ステップ118)。Various autofocus control methods can be applied. For example, the position of the projection lens 20 having the maximum contrast is obtained from the output signal V and the position is focused (step 118).
この合焦状態でプリンタモードにすれば(ステップ12
0)、反射鏡24が第1図仮想線位置に回動し、転写紙38
に画像が転写されてハードコピーが得られる。If the printer mode is set in this focused state (step 12
0), the reflecting mirror 24 is rotated to the phantom line position in FIG.
The image is transferred to and a hard copy is obtained.
ステップ112においてヒストグラムの最大値が設定値χ
以上になれば適切な画像が無いものとして制御手段48は
このヒストグラムを用いてネガ用およびポジ用に二値化
レベルa,bを求める(ステップ122)。すなわち前記した
ようにヒストグラムの最大値の山が設定値χ0と交わる
2点のうち大きい方の点の濃度に一定値αを加算してネ
ガ用のレベルaを、小さい方の濃度から一定値βを減算
してポジ用のレベルbを求める。CPU72はラインセンサ5
6をモータ58により移動して異なるフォーカスゾーンを
選定し(ステップ124)、新たに走査して得られる出力
信号Vをこれらの二値化レベルa,bによりリアルタイム
で二値化し(ステップ126)、その極性反転回数Nn,Npを
カウンタ112、114で積算する(ステップ128)。そして
カウント値Nn,Npが一定値Mn,Mpより大きければ比較器12
0、122は画像有りとするHレベルの信号gまたはhをCP
U72に出力する(ステップ130)。CPU72は信号g、hの
いずれもがHレベルにならなければ画像無しとして新し
い領域にラインセンサ56を移動させステップ126〜130の
動作を繰り返す。信号g、hのいずれかがHレベルであ
れば適正な画像有りとし(ステップ114)制御手段48は
オートフォーカス制御を行う(ステップ116,118)。そ
してプリンタモードにすればハードコピーが得られる
(ステップ120)。また、本発明はネガ・ポジの種類を
手動入力し、これに対応して二値化レベルa,bの一方の
みを求めるようにしたものを含む。In step 112, the maximum value of the histogram is the set value χ
If it becomes the above, it is determined that there is no suitable image, and the control means 48 uses this histogram to obtain the binarization levels a and b for negative and positive (step 122). That is, as described above, the 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 χ 0, and the negative level a is changed from the smaller density to the constant value. β is subtracted to obtain the positive level b. CPU72 is line sensor 5
6 is moved by the motor 58 to select a different focus zone (step 124), and the output signal V newly obtained by scanning is binarized in real time by these binarization levels a and b (step 126), The number of polarity inversions Nn, Np is integrated by the counters 112 and 114 (step 128). If the count values Nn, Np are larger than the constant values Mn, Mp, the comparator 12
0 and 122 indicate the H level signal g or h indicating that an image exists
Output to U72 (step 130). If neither of the signals g and h becomes H level, the CPU 72 determines that there is no image and moves the line sensor 56 to a new area, and repeats the operations of steps 126 to 130. If either of the signals g and h is at the H level, it is determined that there is an appropriate image (step 114), and the control means 48 performs autofocus control (steps 116 and 118). If the printer mode is set, a hard copy can be obtained (step 120). Further, the present invention includes a method in which the type of negative / positive is manually input, and correspondingly, only one of the binarization levels a and b is obtained.
なおイメージセンサは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.
(発明の効果) 本発明は以上のように、イメージセンサの出力信号のヒ
ストグラムを求め、このヒストグラムの最大値が設定値
以下であればオートフォーカスに適した画像有りと判断
して、オートフォーカス動作を行うから、動作時間が非
常に短縮できる。またヒストグラムの最大値が設定値以
上であれば文字列と画像密度の高い部分以外の領域でヒ
ストグラムを求めたと判断することが可能なので画像無
しとし、この時のヒストグラムは山が高いのでバックグ
ラウンド濃度を高精度に決定するのに好適であるから、
このヒストグラムを用いて二値化レベルを求める。そし
て以後新しいフォーカスゾーン毎にリアルタイムでイメ
ージセンサ出力信号を二値化しその極性反転回数が一定
以上なら画像有りとする。このため画像の全面に対する
ヒストグラムを求めるまでもなく狭い領域に対するヒス
トグラムから画像の有無を短時間かつ高精度に判断でき
る。また二値化レベルを求めた後は極性反転回数が新た
なフォーカスゾーンに対しリアルタイムで求められるか
ら動作時間が長くなることも無い。As described above, the present invention obtains the histogram of the output signal of the image sensor, and if the maximum value of this histogram is less than or equal to the set value, it is determined that there is an image suitable for autofocus, and the autofocus operation is performed. Therefore, the operation time can be greatly shortened. If the maximum value of the histogram is greater than or equal to the set value, it can be determined that the histogram was obtained in an area other than the character string and the area with high image density.Therefore, there is no image. Is suitable for determining with high accuracy,
The binarization level is obtained using this histogram. After that, the image sensor output signal is binarized in real time for each new focus zone, and if the number of polarity inversions is equal to or greater than a certain value, it means that there is an image. Therefore, the presence or absence of an image can be determined in a short time and with high accuracy from the histogram for a narrow region without obtaining the histogram for the entire surface of the image. Further, after the binarization level is obtained, the number of polarity reversals is obtained in real time with respect to the new focus zone, so that the operation time does not become long.
第1図は本発明の一実施例であるリーダプリンタの全体
概略図、第2図はそのオートフォーカス制御装置のブロ
ック図、第3図は動作の流れ図、第4図は各部の出力波
形図、第5図は原理を説明するためのイメージセンサの
出力信号およびそのヒストグラムを示す図である。 10……原画、 20……投影レンズ、 56……一次元固体イメージセンサ、 χ……設定値、 a,b……二値化レベル、 Nn,Np……極性反転回数。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, χ …… Set value, a, b …… Binarization level, Nn, Np …… Number of polarity reversals.
Claims (1)
て得られるイメージセンサの出力信号を用いて、投影レ
ンズを合焦位置に制御するオートフォーカス装置の画像
検出方法において、 前記イメージセンサの出力信号に対する画素数を示すヒ
ストグラムを求め、このヒストグラムを設定値と比較
し、前者の最大値が後者以下なら適切な画像有りとして
オートフォーカス動作を行う一方、前者の最大値が後者
以上ならばこのヒストグラムを用いて二値化レベルを求
め、この二値化レベルを用いてイメージセンサの出力信
号を二値化して極性反転回数を積算し、この極性反転回
数が一定値以上になるフォーカスゾーンを画像有りとし
てオートフォーカス動作を行うことを特徴とする画像検
出方法。1. An image detection method for an autofocus device for controlling a projection lens to a focus position by using an output signal of an image sensor obtained by scanning image projection light with an image sensor, wherein the output signal of the image sensor is used. A histogram showing the number of pixels is calculated, and this histogram is compared with the set value. If the former maximum value is less than or equal to the latter, auto-focus operation is performed with an appropriate image, while if the former maximum value is greater than or equal to the latter, this histogram is The binarization level is obtained using the binarization level, the output signal of the image sensor is binarized using this binarization level, and the number of polarity reversals is integrated. An image detection method characterized by performing an autofocus operation.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP62277328A JPH0711618B2 (en) | 1987-11-04 | 1987-11-04 | Image detection method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP62277328A JPH0711618B2 (en) | 1987-11-04 | 1987-11-04 | Image detection method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH01120517A JPH01120517A (en) | 1989-05-12 |
| JPH0711618B2 true JPH0711618B2 (en) | 1995-02-08 |
Family
ID=17581996
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP62277328A Expired - Fee Related JPH0711618B2 (en) | 1987-11-04 | 1987-11-04 | Image detection method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0711618B2 (en) |
-
1987
- 1987-11-04 JP JP62277328A patent/JPH0711618B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JPH01120517A (en) | 1989-05-12 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US4899194A (en) | Method of and device for detecting image | |
| JPH0711619B2 (en) | Image detection method | |
| JPH0711618B2 (en) | Image detection method | |
| JPH0642011B2 (en) | Autofocus method | |
| JP2540030B2 (en) | Autofocus method | |
| JPH0675132B2 (en) | Image detection method | |
| JPH0675133B2 (en) | Image detection method | |
| JPH0642012B2 (en) | Autofocus method | |
| JPH0675134B2 (en) | Image detection method | |
| JPH0713696B2 (en) | Image detection method | |
| JPH0738045B2 (en) | Autofocus method | |
| JPH01116611A (en) | Image detecting method | |
| JPH0820588B2 (en) | Image detection method | |
| JPH0642013B2 (en) | Autofocus method | |
| JPH0820584B2 (en) | Autofocus method | |
| JPH0642009B2 (en) | Autofocus method | |
| JPH0782145B2 (en) | Auto focus device | |
| JPS62283308A (en) | Automatic focusing method | |
| JPH0746199B2 (en) | Autofocus method for microfilm reader printer | |
| JPH0642010B2 (en) | Autofocus method | |
| JPH0642014B2 (en) | Autofocus method | |
| JPH0746200B2 (en) | Micro film reader printer auto focus method | |
| JPH0612374B2 (en) | Image detection method for optical device | |
| JPH0567205B2 (en) | ||
| JPH0612375B2 (en) | Image detection method for optical device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| LAPS | Cancellation because of no payment of annual fees |