JPS62299948A - Automatic setting method for illumination light quantity - Google Patents
Automatic setting method for illumination light quantityInfo
- Publication number
- JPS62299948A JPS62299948A JP61142920A JP14292086A JPS62299948A JP S62299948 A JPS62299948 A JP S62299948A JP 61142920 A JP61142920 A JP 61142920A JP 14292086 A JP14292086 A JP 14292086A JP S62299948 A JPS62299948 A JP S62299948A
- Authority
- JP
- Japan
- Prior art keywords
- image
- luminance
- difference
- illumination light
- level
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000005286 illumination Methods 0.000 title claims description 38
- 238000000034 method Methods 0.000 title description 5
- 239000010410 layer Substances 0.000 description 8
- 238000010586 diagram Methods 0.000 description 2
- 238000002474 experimental method Methods 0.000 description 2
- 238000003384 imaging method Methods 0.000 description 2
- 238000001514 detection method Methods 0.000 description 1
- 230000006866 deterioration Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 239000000463 material Substances 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 239000000758 substrate Substances 0.000 description 1
- 239000002344 surface layer Substances 0.000 description 1
Landscapes
- Preparing Plates And Mask In Photomechanical Process (AREA)
- Closed-Circuit Television Systems (AREA)
Abstract
Description
【発明の詳細な説明】
3、発明の詳細な説明
〔概 要〕
照明装置によって照明された対象をカメラで撮像する場
合において、対象画像の変化に追従したコントラストの
良い画像を入力するために、輝度ヒストグラムの分布が
適正な状態となるように照明装置の光量を自動的に調整
する。[Detailed Description of the Invention] 3. Detailed Description of the Invention [Summary] When an object illuminated by an illumination device is imaged with a camera, in order to input an image with good contrast that follows changes in the object image, To automatically adjust the amount of light of a lighting device so that the distribution of a brightness histogram is in an appropriate state.
本発明は、対象をカメラで撮像する場合の対象の対する
照明光量の自動設定方法に関する。The present invention relates to a method for automatically setting the amount of illumination light for an object when the object is imaged with a camera.
対象をテレビ(T V)カメラで撮像し、その画像情報
を用いてプリント基板のパターン位置検出等を行う場合
、いかにコントラストの良い画像を入力するかが重要な
ポイントとなる。対象が照明装置によって照明されてい
る場合は、その照明光量を対象に応じて最適値とするこ
とがコントラストの良い画像を入力するための1つの条
件である。従来は、対象の明るさに応じて経験や勘によ
り手操作で照明光量の調節を行なうのが一般であった。When an object is imaged with a television (TV) camera and the image information is used to detect the position of a pattern on a printed circuit board, an important point is how to input an image with good contrast. When an object is illuminated by a lighting device, one condition for inputting an image with good contrast is to set the amount of illumination light to an optimum value depending on the object. Conventionally, it has been common practice to manually adjust the amount of illumination light based on experience or intuition, depending on the brightness of the object.
例えば、プリント基板のパターン位置検出等を行なう場
合、照明装置はTVカメラの反対側からプリント基板を
照明(バック照明)することが多いが、表面層パターン
(撮像対象)の近傍に中間層パターンがあるときは中間
層パターンにより基板を透過する照明光が遮ぎられ、対
象の照明光量が不足することがある。また、逆に表面層
パターンの近傍に何ら中間層パターンがないときは対象
の照明光量が過多になることがある。本発明はこのよう
に撮像対象や条件が変化する場合に、照明光量が最適値
となるように自動的に調節することにより、コンI・ラ
ストの良い画像を人力することである。For example, when detecting the position of a pattern on a printed circuit board, the illumination device often illuminates the printed circuit board from the opposite side of the TV camera (back lighting). In some cases, the intermediate layer pattern blocks the illumination light that passes through the substrate, resulting in an insufficient amount of illumination light to the target. Conversely, when there is no intermediate layer pattern in the vicinity of the surface layer pattern, the amount of illumination light on the object may become excessive. The purpose of the present invention is to manually produce images with good contrast and contrast by automatically adjusting the amount of illumination light to the optimum value when the object to be imaged or the conditions change.
本発明によれば、照明装置により照明された対象をカメ
ラで撮像し、その画像データから輝度に対する画素数を
表わす輝度ヒストグラムを作成し、画像輝度の最低レベ
ル(L)と画素の存在する最も低い輝度レベル(a)と
の差1r<−a L)を求め、画像輝度の最高レベル
(H)と画素の存在する最も高い輝度レベル(b)との
差#2(−H−b)を求め、11と12の差が小さくな
るように前記照明装置の光量を自動的に調整するように
なした照明光量の自動設定方法が桿供される。According to the present invention, an object illuminated by an illumination device is imaged by a camera, a brightness histogram representing the number of pixels with respect to brightness is created from the image data, and the lowest level (L) of image brightness and the lowest level where pixels exist are created. Find the difference 1r<-a L) from the brightness level (a), and find the difference #2 (-H-b) between the highest level of image brightness (H) and the highest brightness level where the pixel exists (b). , 11 and 12 is automatically adjusted to automatically adjust the light amount of the illumination device so that the difference between , 11 and 12 is reduced.
輝度ヒストグラムは、照明光量が不足するときは最低レ
ベル(L)の側に片寄り、逆に照明光量が過多のときは
最高レベル(H)の側に片寄る。The brightness histogram is biased toward the lowest level (L) when the amount of illumination light is insufficient, and conversely toward the highest level (H) when the amount of illumination light is excessive.
そこで、上記のようにIl、と7!2の差が小さくなる
ように、好ましくは12.=12となるように照明光量
を調節することにより輝度ヒストグラムをLとHの中央
に移動させ、最適な照明光量とすることができる。Therefore, as mentioned above, preferably 12. By adjusting the amount of illumination light so that =12, the brightness histogram can be moved to the center between L and H, making it possible to obtain the optimum amount of illumination light.
以下、添付図面を参照して本発明の実施例を詳細に説明
する。Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
第1図はプリント基板の表面パターンをT’Vカメラで
撮像し、パターン位置の検出を行う場合の照明光量の調
節装置を示すものである。プリント基板10は多層プリ
ント板で、光透過性材料の基板本体11の内部に幾つか
の中間層パターン12゜13があり、表面に位置検出の
対象である表面パターン14がある。プリント基板10
の表面パターン14側の上方にはTVカメラ15があり
、対象パターン14のあるプリント基板10の表面を撮
像する。一方、プリント基板10の下方には照明装置1
6があり、裏面よりバンク照明としてプリント基板10
を照らす。TVカメラ15で撮像した画像信号は計算機
のフレームメモリ17に入力され、デジタル画像に変換
された後、処理装置18に入力される。処理装置17で
は、後述のように入力された画像信号から最適な照明光
量、即ち照明装置16の電圧(V)を求め、この照明装
置】6をフィードバンク制御する。FIG. 1 shows an apparatus for adjusting the amount of illumination light when the surface pattern of a printed circuit board is imaged with a T'V camera and the pattern position is detected. The printed circuit board 10 is a multilayer printed circuit board, and has several intermediate layer patterns 12, 13 inside a board body 11 made of a light-transmitting material, and a surface pattern 14, which is the object of position detection, on the surface. Printed circuit board 10
There is a TV camera 15 above the surface pattern 14 side, which images the surface of the printed circuit board 10 on which the target pattern 14 is located. On the other hand, below the printed circuit board 10 is a lighting device 1.
6, and the printed circuit board 10 is used as bank lighting from the back side.
illuminate. The image signal captured by the TV camera 15 is input to the frame memory 17 of the computer, converted into a digital image, and then input to the processing device 18. The processing device 17 determines the optimum amount of illumination light, ie, the voltage (V) of the illumination device 16, from the input image signal as will be described later, and performs feedbank control of the illumination device 6.
第2図はフレームメモリ17上の画像であり、対象(表
面)パターンI4はコントラストが良く明瞭に撮し出さ
れ、中間層パターン12.13はぼんやりと撮し出され
ている。FIG. 2 is an image on the frame memory 17, in which the target (surface) pattern I4 is clearly photographed with good contrast, and the intermediate layer patterns 12 and 13 are photographed vaguely.
次に、照明装置16の照明光量、即ち電圧(V)の自動
設定の手順を述べる。まず最初、あらかじめ実験により
求めた照明装置16の平均的な電圧(V)により照明光
をプリント基板10の裏面より照射する。次に、処理装
置18からのスタート信号によりTVカメラ15からの
画像(第2図)をフレームメモリ17に取り込む。次に
フレームメモリ17の画像データを読み出して、第3図
に示すような輝度ヒストグラムを作成する。この輝度ヒ
ストグラムは輝度レベル(例えば、256レベル)に対
する画素数(総画素数は例えば256 X 256)又
は頻度で表わしている。Lは画像輝度の最低レベルであ
り、Hは画像輝度の最高レベルである。Next, a procedure for automatically setting the amount of illumination light, that is, the voltage (V) of the lighting device 16 will be described. First, illumination light is irradiated from the back surface of the printed circuit board 10 using an average voltage (V) of the illumination device 16 determined in advance through experiments. Next, an image from the TV camera 15 (FIG. 2) is taken into the frame memory 17 in response to a start signal from the processing device 18. Next, the image data in the frame memory 17 is read out and a brightness histogram as shown in FIG. 3 is created. This brightness histogram is expressed by the number of pixels (total number of pixels is, for example, 256 x 256) or frequency with respect to the brightness level (for example, 256 levels). L is the lowest level of image brightness, and H is the highest level of image brightness.
そこで、画像輝度のLレベルから画素の存在する最も低
いレベル(a)をみつけ、その差6+(−a−L)を求
める。同様に、画像輝度のHレベルから画素の存在する
最も高いレベル(b)をみつけ、その差1 z (=
Hb )を求める。次にJ、及びIl2の照明装置16
の標準電圧で、あらかしめ実験により設定しておく。)
次に、下記のように補正後の電圧(vn)を照明装置1
6にフィードバックし再度スタート信号を入れて、対象
画像を取り込み次の処理に進む。Therefore, the lowest level (a) where a pixel exists is found from the L level of image brightness, and the difference 6+(-a-L) is found. Similarly, find the highest level (b) where a pixel exists from the H level of image brightness, and calculate the difference 1 z (=
Find Hb). Next, the lighting device 16 of J and Il2
The standard voltage is set by preliminary experiments. )
Next, apply the corrected voltage (vn) to the illumination device 1 as shown below.
6, input the start signal again, capture the target image, and proceed to the next process.
第4図はプリント基板10の撮像範囲内に中間層パター
ン12.13があり、照明装置16からのバック照明に
よる光量が中間層パターン12゜13によって遮ぎられ
、対象(表面)パターン14を照明するための光量が不
足し、対象(表面)パターン14が暗く撮し出される場
合であり(第4図(a))、この場合輝度ヒストグラム
し才最低レベル(L)の側へ片寄る(第4図(b))。In FIG. 4, there are intermediate layer patterns 12 and 13 within the imaging range of the printed circuit board 10, and the amount of light from the back illumination from the illumination device 16 is blocked by the intermediate layer patterns 12 and 13, illuminating the target (surface) pattern 14. This is a case where the amount of light for the image is insufficient and the target (surface) pattern 14 is photographed darkly (Fig. 4 (a)). In this case, the brightness histogram is biased towards the lowest level (L) (Fig. Figure (b)).
一方、第5図はプリント基板10の撮像範囲内に中間層
パターンがなく、対象(表面パターン)14は孤立パタ
ーンとして照明装置16からのバック照明による透過光
量が大きく、照明光量が過多となっている場合であり(
第5図(a))、この場合輝度ヒストグラムは最高レベ
ル(H)の側へ片寄る(第5図(b))。第6図は上記
のように照明光量の補正をした場合の輝度ヒストグラム
を示し、補正後の輝度曲線は、両者の場合とも最低レベ
ル(L)および最高レベル(H)に関し、中央に移動し
、最適な照明光量となる。On the other hand, in FIG. 5, there is no intermediate layer pattern within the imaging range of the printed circuit board 10, and the target (surface pattern) 14 is an isolated pattern, and the amount of transmitted light due to back illumination from the illumination device 16 is large, resulting in an excessive amount of illumination light. (
In this case, the brightness histogram is biased toward the highest level (H) (FIG. 5(b)). FIG. 6 shows a brightness histogram when the amount of illumination light is corrected as described above, and in both cases, the brightness curve after correction moves to the center regarding the lowest level (L) and the highest level (H), Provides the optimum amount of illumination light.
本発明によると、対象の状況が変化する場合においても
、対象を照明する光量を自動的に最適値に調整すること
ができ、従って照明光量の不足又は過多にともなうコン
トラスト劣化を補うことができる。According to the present invention, even when the situation of the object changes, the amount of light illuminating the object can be automatically adjusted to the optimum value, and therefore it is possible to compensate for contrast deterioration due to insufficient or excessive amount of illumination light.
第1図は本発明の照明光量の自動設定方法を実施する装
置の概略図、第2図はフレームメモリ上の画像を示す図
、第3図は画像データの輝度ヒストグラム、第4図(a
)、(b)は照明光¥不足の場合の画像および輝度ヒス
トグラム、第5図(a)、(b)は照明光量過多の場合
の画像および輝度ヒス1ヘダラム、第6図は照明光量の
補正後の輝度ヒストグラムである。
10・・・プリント基板、
12.13・・・中間層パターン、
14・・・対象(表面)パターン、
16・・・照明装置。Fig. 1 is a schematic diagram of a device implementing the automatic setting method of illumination light intensity of the present invention, Fig. 2 is a diagram showing an image on a frame memory, Fig. 3 is a luminance histogram of image data, and Fig. 4 (a
), (b) are images and brightness histograms when illumination light is insufficient, Figures 5 (a) and (b) are images and brightness histograms when illumination is excessive, and Figure 6 is correction of illumination light. This is the subsequent brightness histogram. 10... Printed circuit board, 12.13... Intermediate layer pattern, 14... Target (surface) pattern, 16... Illumination device.
Claims (1)
その画像データから輝度に対する画素数を表わす輝度ヒ
ストグラムを作成し、画像輝度の最低レベル(L)と画
素の存在する最も低い輝度レベル(a)との差l_1(
=a−L)を求め、画像輝度の最高レベル(H)と画素
の存在する最も高い輝度レベル(b)との差l_2(=
H−b)を求め、l_1とl_2の差が小さくなるよう
に前記照明装置の光量を自動的に調整するようになした
照明光量の自動設定方法。1. Image the object illuminated by the illumination device with a camera,
A brightness histogram representing the number of pixels with respect to brightness is created from the image data, and the difference l_1 (
=a-L) and the difference l_2(=
H-b), and automatically adjusts the light amount of the lighting device so that the difference between l_1 and l_2 becomes small.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP61142920A JPS62299948A (en) | 1986-06-20 | 1986-06-20 | Automatic setting method for illumination light quantity |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP61142920A JPS62299948A (en) | 1986-06-20 | 1986-06-20 | Automatic setting method for illumination light quantity |
Publications (1)
Publication Number | Publication Date |
---|---|
JPS62299948A true JPS62299948A (en) | 1987-12-26 |
Family
ID=15326701
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP61142920A Pending JPS62299948A (en) | 1986-06-20 | 1986-06-20 | Automatic setting method for illumination light quantity |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS62299948A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH03145646A (en) * | 1989-11-01 | 1991-06-20 | Matsushita Electric Ind Co Ltd | Pattern inspecting method |
EP0569589A1 (en) * | 1991-07-12 | 1993-11-18 | Omron Corporation | Apparatus and method for determining or setting adequate illuminating and photographing condition, etc., in picture processing system; and apparatus and method for aiding the determination or setting |
DE19727471C1 (en) * | 1997-06-27 | 1998-12-17 | Siemens Ag | Method for automatically adjusting the intensity of lighting for devices for position detection and / or quality control in the automatic assembly of components |
WO2000060855A1 (en) | 1999-04-06 | 2000-10-12 | Koninklijke Philips Electronics N.V. | Apparatus for processing signals |
-
1986
- 1986-06-20 JP JP61142920A patent/JPS62299948A/en active Pending
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH03145646A (en) * | 1989-11-01 | 1991-06-20 | Matsushita Electric Ind Co Ltd | Pattern inspecting method |
EP0569589A1 (en) * | 1991-07-12 | 1993-11-18 | Omron Corporation | Apparatus and method for determining or setting adequate illuminating and photographing condition, etc., in picture processing system; and apparatus and method for aiding the determination or setting |
EP0569589A4 (en) * | 1991-07-12 | 1994-10-12 | Omron Tateisi Electronics Co | Apparatus and method for determining or setting adequate illuminating and photographing condition, etc., in picture processing system; and apparatus and method for aiding the determination or setting. |
DE19727471C1 (en) * | 1997-06-27 | 1998-12-17 | Siemens Ag | Method for automatically adjusting the intensity of lighting for devices for position detection and / or quality control in the automatic assembly of components |
US6546126B1 (en) | 1997-06-27 | 2003-04-08 | Siemiens Aktiengesellschaft | Method for automatically setting intensity of illumination fpr positional recognion and quality controlde |
WO2000060855A1 (en) | 1999-04-06 | 2000-10-12 | Koninklijke Philips Electronics N.V. | Apparatus for processing signals |
US7119852B1 (en) | 1999-04-06 | 2006-10-10 | Koninklijke Philips Electronics N. V. | Apparatus for processing signals |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6859618B1 (en) | Exposure compensation method and system employing meter matrix and flash | |
JPS62299948A (en) | Automatic setting method for illumination light quantity | |
US6529243B1 (en) | Method for electronic reduction of the contrast of video images as early as during recording | |
CN209745834U (en) | Optical defect detection system with brightness adjustment | |
JPH06215128A (en) | Picture processor | |
CN212780549U (en) | Defect detection device | |
JP2009124309A (en) | Image device | |
WO1990002464A1 (en) | Video camera with automatic intensity control | |
JPH06121214A (en) | Image recorder | |
JP2000266514A (en) | Method and device for inspecting metallic sheet | |
JP2568161B2 (en) | Automatic exposure control device | |
KR101408673B1 (en) | Method and apparatus for detecting foreign materials on transparent substrates using image processing | |
JPS6342443A (en) | Method and device for adjusting optical axis of headlight | |
JPS60196734A (en) | Illumination controller | |
JPH07105355A (en) | Method and device for recognizing picture | |
JP2002057500A (en) | Method for recognizing electronic component | |
JPH0818828A (en) | Test chart | |
JP2944776B2 (en) | Position recognition device | |
JP3270128B2 (en) | Observation method using light intensity distribution feedback | |
JP2580295B2 (en) | Automatic exposure control device | |
JPH0672975B2 (en) | Auto focus method | |
JPH0423576A (en) | Video camera equipment | |
JPH0832866A (en) | Automatic exposure controller | |
JPH0146856B2 (en) | ||
JPH06243235A (en) | Checking device for mounted board |