JPH0431976A - Image monitoring method - Google Patents

Image monitoring method

Info

Publication number
JPH0431976A
JPH0431976A JP2137871A JP13787190A JPH0431976A JP H0431976 A JPH0431976 A JP H0431976A JP 2137871 A JP2137871 A JP 2137871A JP 13787190 A JP13787190 A JP 13787190A JP H0431976 A JPH0431976 A JP H0431976A
Authority
JP
Japan
Prior art keywords
image
monitoring
area
pixels
monitoring area
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
Application number
JP2137871A
Other languages
Japanese (ja)
Inventor
Michiya Yokota
道也 横田
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.)
Seikosha KK
Original Assignee
Seikosha 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 Seikosha KK filed Critical Seikosha KK
Priority to JP2137871A priority Critical patent/JPH0431976A/en
Publication of JPH0431976A publication Critical patent/JPH0431976A/en
Pending legal-status Critical Current

Links

Landscapes

  • Length Measuring Devices By Optical Means (AREA)
  • Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)
  • Image Processing (AREA)
  • Closed-Circuit Television Systems (AREA)
  • Image Analysis (AREA)

Abstract

PURPOSE:To accurately perform monitoring along a monitoring purpose by performing monitoring decision by calculating the feature quantity of a monitoring area by magnifying a feature area by prescribed number of picture elements after eliminating a noise on a screen. CONSTITUTION:A differential image can be obtained by performing image pickup and binary coding setting a substrate before element packaging as a preceding image and the substrate after packaging as a succeeding image. Thence, one picture element with runlength less than prescribed horizontal and vertical effective runlength Lhe, Lve is eliminated to eliminate noise parts S2 in horizontal and vertical directions in an element packaging part S1 and a noise part S2 in the monitoring area S. Then, the picture element is magnified by prescribed number of expansion picture elements in both horizontal and vertical directions. Therefore, aberration when the element is packaged can be permitted. Thence, when the extraction of the monitoring area T is completed, the block is divided into N inspection blocks Q, and the decision for the normal/defective condition of the block is performed by counting the number of significant picture elements in a normal image i.e. the number of picture elements of binary-coded differential image between the preceding image and the succeeding image.

Description

【発明の詳細な説明】 [産業上の利用分野〕 この発明は、例えば製造組立工程等において平面基板上
にIC素子等が正しく実装されたが、孔が正しく開けら
れているか等の監視を行うための画像監視方法に関する
[Detailed Description of the Invention] [Industrial Application Field] The present invention monitors whether holes are correctly drilled when IC elements, etc. are correctly mounted on a flat substrate during, for example, a manufacturing and assembly process. The present invention relates to an image monitoring method for.

[従来の技術] 長さやパターン等の良否判別、すなわち例えば被検査物
(監視対象物)の長さが規定通りか、被検査物の形状が
規定通りか等の判別は、被検査物をテレビカメラ等で撮
像して、その長さや形状等か現れている特徴領域部分を
ウィンドウで指定して検査領域を狭く指定し、その部分
内の上記長さや形状が現れている画素の数を数える等に
より物理量として精度高く測定し、その画素数が許容値
以内であるか否か等により、良否判別が行われている。
[Prior Art] To determine the quality of length, pattern, etc., for example, to determine whether the length of the object to be inspected (object to be monitored) is as specified or whether the shape of the object is as specified, Take an image with a camera, etc., specify in a window the characteristic area where the length, shape, etc. appear, specify a narrow inspection area, and count the number of pixels in that area where the length and shape appear. The physical quantity is measured with high precision using the method, and quality determination is performed based on whether the number of pixels is within an allowable value or not.

ところで製造組立工程等での加工後の外観検査等、例え
ば素子実装工程等での加工後、素子が正しく取り付けら
れているかの検査は素子の取り付けられた位置の精度は
重要ではなく、ただ素子が取り付けられていればよいこ
とも多い。
By the way, in the appearance inspection after processing in the manufacturing and assembly process, for example, in the element mounting process, the accuracy of the installed position of the element is not important, but the accuracy of the element is simply In many cases, it is sufficient if it is installed.

[解決しようとする課題] このような外観検査等のあいまいな抽象的判断基準によ
る検査(以後、監視という)では、監視領域を複数のブ
ロックに分けて、各ブロックを同一の監視レベルで監視
し、素子が実装等される特徴領域部分とその他の、製造
加工工程においてなんらの加工等が施されない部分とか
同一の監視レベルとなることは好ましくない。すなわち
特徴領域部分とその他の非特徴領域部分とは監視領域に
対する貢献度を変えることが望ましい。また監視領域全
体の変化を知るために、非特徴領域部分も詳細に調べる
ことはかえって監視の目的から逸脱する。
[Problem to be solved] In inspections (hereinafter referred to as monitoring) based on vague and abstract criteria such as visual inspections, the monitoring area is divided into multiple blocks and each block is monitored at the same monitoring level. It is not preferable that the same monitoring level be applied to the characteristic area portion where the device is mounted and other portions which are not processed in the manufacturing process. That is, it is desirable that the characteristic region portion and other non-characteristic region portions have different degrees of contribution to the monitoring region. Further, in order to find out changes in the entire monitoring area, it is necessary to examine the non-characteristic area in detail, which actually deviates from the purpose of monitoring.

一方、監視領域を分割せずに一つの監視領域として監視
すると、例えばある部分にはごみが付着しており、また
ある部分にはきすがある等により、これらが検査の段階
で異符号として現れて、従つてそれらが相殺され、結局
正常物として誤判定される場合も生じ、またノイズの影
響が大きくなり、誤判定される場合も生じてくる。
On the other hand, if the monitoring area is monitored as a single monitoring area without dividing it, for example, there may be dust attached to a certain area, or there may be scratches in another area, which will appear as different codes during the inspection stage. Therefore, these factors cancel each other out, and there are cases where the object is erroneously determined as normal, and there are also cases where the influence of noise increases and the object is erroneously determined.

そこで本発明の目的は、監視の目的に沿って正しく監視
を行なうことか可能な画像監視方法を提供することにあ
る。
SUMMARY OF THE INVENTION Therefore, an object of the present invention is to provide an image monitoring method that allows correct monitoring in accordance with the purpose of monitoring.

[課題を解決するための手段] 上記目的を達成するために、本発明は、監視対象物を撮
像した撮像手段の画面内において特徴領域を含む部分を
監視領域として設定し、この監視領域内における特徴量
を産出して監視判定を行なう画像監視方法において、上
記監視領域の設定は、画面内のノイズを除去した後に、
上記特徴領域を所定画素数分拡大した画面において行な
う。
[Means for Solving the Problems] In order to achieve the above object, the present invention sets a portion including a characteristic area as a monitoring area in the screen of an imaging means that images an object to be monitored, and In an image monitoring method that generates feature quantities and makes monitoring judgments, the monitoring area is set after removing noise in the screen.
This is performed on a screen in which the characteristic region is enlarged by a predetermined number of pixels.

また、上記監視判定は、上記監視領域を複数のブロック
に分割し、この分割したブロックごとに、特徴量を算出
して行なうことが好ましい。
Further, it is preferable that the monitoring determination is performed by dividing the monitoring area into a plurality of blocks and calculating a feature amount for each divided block.

更に、上記特徴量は監視対象物の加工前の画像と加工後
の画像との差画像から算出することか好ましい。
Furthermore, it is preferable that the feature amount is calculated from a difference image between an unprocessed image and a processed image of the monitored object.

[実施例] 以下、本発明の一実施例を図面に基づいて詳細に説明す
る。
[Example] Hereinafter, an example of the present invention will be described in detail based on the drawings.

ます、画像監視装置の全体構成について説明する。第2
図において、監視対象物1は製造ライン等の素子実装工
程(図示省略)中にあり、照明2の下で、撮像手段3に
より、素子が実装される面の撮像が行われる。撮像は実
装前の事前画像と、実装後の事後画像の双方が行われる
。素子実装ロボットにおける実装準備終了や実装終了の
入力制御信号は入力用回線5により装置本体7に入力さ
れる。装置本体7の動作条件等は、キーバッド8で入力
される。入力制御信号が入力用回線5より入力されると
装置本体7は事前撮像や事後撮像。
First, the overall configuration of the image monitoring device will be explained. Second
In the figure, a monitoring target 1 is in the process of mounting elements (not shown) on a manufacturing line or the like, and under illumination 2, an imaging means 3 images the surface on which the elements are mounted. Imaging is performed for both a preliminary image before mounting and a subsequent image after mounting. Input control signals for completion of mounting preparation and completion of mounting in the element mounting robot are inputted to the apparatus main body 7 through the input line 5. The operating conditions of the device body 7 and the like are input using the keypad 8. When an input control signal is input from the input line 5, the device main body 7 performs pre-imaging or post-imaging.

良否判定を実行し、結果を出力用回線6より出力制御信
号として出力する。なお装置本体7には、撮像手段3で
撮像した映像、さらにそれを2値符号化した画像信号等
を表示可能なCRT 7 aが設けである。
The pass/fail judgment is executed and the result is outputted as an output control signal from the output line 6. The main body 7 of the apparatus is provided with a CRT 7a capable of displaying an image captured by the imaging means 3, an image signal obtained by binary encoding the image, and the like.

次に、画像監視装置の全体のブロック構成を第3図を用
いて説明する。
Next, the overall block configuration of the image monitoring device will be explained using FIG. 3.

ROM21には、ノイズの除去、およびその後の特徴領
域の拡大(膨張)、良否判定等、CPU22を動作させ
るためのプログラムが記憶されている。
The ROM 21 stores programs for operating the CPU 22, such as noise removal, subsequent enlargement (expansion) of the feature region, and quality determination.

RAM23にはノイズの除去及びその後の特徴領域の拡
大の際の横有効ランレングスLhe及び縦何効うンレン
グスLve、本発明により抽出された監視領域、検査ブ
ロック、各検査ブロックにおける基準有意画素数、良否
判定基準値1等のデータか記憶されている。横有効ラン
レングスLhe及び縦有効ランレングスLve、  ブ
ロックの大きさ。
The RAM 23 stores horizontal effective run length Lhe and vertical effective run length Lve during noise removal and subsequent enlargement of the feature region, the monitoring region extracted according to the present invention, inspection blocks, reference number of significant pixels in each inspection block, Data such as pass/fail judgment reference value 1 is stored. Horizontal effective run length Lhe, vertical effective run length Lve, block size.

良否判定を行なう際の許容値等の条件は、オペレータか
CRT7a等を見ながら、キーバッド8等より入力し、
i / oポート29を介してRAM23に記憶される
Conditions such as allowable values for pass/fail judgment are entered by the operator using the keypad 8, etc. while looking at the CRT 7a, etc.
It is stored in RAM 23 via I/O port 29.

CPU22はROM21の指令およびRAM 23のデ
ータに基づき、ノイズの除去及びその後の特徴領域の拡
大、良否判定等を行なう。
Based on the commands in the ROM 21 and the data in the RAM 23, the CPU 22 performs noise removal, subsequent enlargement of the characteristic region, quality determination, and the like.

撮像手段3で撮像した画像信号はA/D回路30を経て
フレームメモリ31に蓄えられ、またフレームメモリ3
1の記憶内容は表示回路32を経てCRT7aに表示さ
れる。なおフレームメモリ31には、事前画像、事後画
像それぞれの記憶領域がある。
The image signal captured by the imaging means 3 is stored in the frame memory 31 via the A/D circuit 30, and is also stored in the frame memory 31.
The stored contents of 1 are displayed on the CRT 7a via the display circuit 32. Note that the frame memory 31 has storage areas for each of a pre-image and a post-image.

次に第1図、第4図〜第7図を用いて本発明による画像
監視方法を詳細に説明する。
Next, the image monitoring method according to the present invention will be explained in detail using FIGS. 1 and 4 to 7.

第4図において、まず、撮像手段2により撮像された映
像を2値化するためのしきい値、良否判定を行なう際の
許容値等の監視条件を設定する(402)。
In FIG. 4, first, monitoring conditions such as a threshold value for binarizing the video imaged by the imaging means 2 and an allowable value for making a pass/fail determination are set (402).

そして正常な素子実装前の基板を事前画像として撮像し
て、これを2値符号化する。また上記基板に正常に素子
の実装が行われた後、この基板を事後画像として撮像し
て、これを2値符号化する。
Then, a normal board before device mounting is imaged as a preliminary image, and this is binary encoded. Further, after the elements are normally mounted on the board, the board is imaged as a post-image, and this is binary coded.

そして2値符号化された事前画像と事後画像との差画像
(排他的論理和)をとる(403)。これにより第1図
(a)に示すように、有意差1の2値基準差画像が得ら
れる。
Then, a difference image (exclusive OR) between the binary-encoded prior image and the subsequent image is obtained (403). As a result, as shown in FIG. 1(a), a binary reference difference image with a significant difference of 1 is obtained.

次に監視基準領域の抽出を行なう(404)。Next, a monitoring reference area is extracted (404).

これはノイズの除去、及びその後の特徴領域の拡大(膨
脂)によりなされる。
This is done by removing noise and subsequently expanding (bloating) the feature region.

第5図は水平方向のノイズを除去する場合について説明
したものである。第1図(a)に示すように撮像手段1
の画面内に設定された監視領域S(撮像手段1の画面そ
のものとしてもよく、またその一部をウィンドウ等で指
定してもよい)には有為差画素領域(符号1の画素の領
域)が存在するが、これは素子等が実装された部分SL
とノイズ等により形成された部分S2とが存在している
FIG. 5 explains the case of removing noise in the horizontal direction. As shown in FIG. 1(a), the imaging means 1
The monitoring area S (which may be the screen of the imaging means 1 itself, or a part of which may be designated by a window, etc.) set within the screen of is a significant difference pixel area (region of pixels with reference numeral 1). exists, but this is the part SL where elements etc. are mounted.
and a portion S2 formed by noise or the like.

そこでノイズ等により形成された部分S2を排除するた
めに、水平方向において所定画素数の有効横ランレング
スLheより短い有為差画素部分を除去する。監視領域
Sの左上隅の画素点を基準点とし、右方向及び下方向の
座標をそれぞれit  Jとし、(i、j)点の差画像
をI c(i、j)とする。そして、(i、j)−(1
,1)より右方向に見ていく。まずj=1.i−1とし
く502. 503)、またカウンタP hO−0、カ
ウンタPh1−0とする(504)。カウンタPhOは
現在画素位置の直前における連続符号0画素数をカウン
トし、カウンタP旧は現在画素位置の直前における連続
符号1画素数をカウントする。ここで説明の都合上、(
i、j)= (1,1)より右方向に00111110
0011101    ・と続くとする。即ち0符号画
素が2個続き、その次ぎに1符号画素が5個続き、その
次ぎに0符号画素が3個続き、その次ぎに1符号画素が
3個続き、その次ぎに0符号画素が1個続き、その次に
1符号画素が続くとする。また有効横ランレングスLh
eを4画素、監視領域Sの水平画素数及び垂直画素数を
それぞれKH,KVとする。
Therefore, in order to eliminate the portion S2 formed by noise or the like, a significant difference pixel portion shorter than the effective horizontal run length Lhe of a predetermined number of pixels in the horizontal direction is removed. Let the pixel point at the upper left corner of the monitoring area S be the reference point, let the rightward and downward coordinates be it J, and let the difference image of point (i, j) be I c (i, j). And (i, j)-(1
,1) Look further to the right. First, j=1. i-1 and 502. 503), and the counter PhO-0 and the counter Ph1-0 (504). The counter PhO counts the number of continuous code 0 pixels immediately before the current pixel position, and the counter Pold counts the number of continuous code 1 pixels immediately before the current pixel position. For convenience of explanation, (
i, j) = 00111110 to the right from (1, 1)
0011101 · and so on. That is, two 0 code pixels follow, then five 1 code pixels, then three 0 code pixels, then three 1 code pixels, and then one 0 code pixel. Assume that one code pixel follows the other, and then one code pixel follows. Also, the effective lateral run length Lh
Let e be 4 pixels, and the number of horizontal pixels and the number of vertical pixels of the monitoring area S be KH and KV, respectively.

Ic(1,1)−1の判断(505)で、上記仮定によ
り(1,1)の位置は0符号画素であるために、Ph1
−0の判断(506)へ進み、504でPh1−〇とし
ているためイエスとなり、511で、Ph0−0 +1
−1とし、515,516を′経てIc(2,1)の場
合の判断(505)に進む。そしてこの場合も(’2.
1)の画素は0符号であり、Phiは0のままであるた
め、511でPh0−1+1−2とし、515.516
を経てIc(3,1)の場合の判断(505)に進む。
In the judgment of Ic(1,1)-1 (505), since the position of (1,1) is a 0 code pixel according to the above assumption, Ph1
Proceed to -0 judgment (506), and at 504 it is YES because it is Ph1-0, and at 511, Ph0-0 +1
-1, and the process goes through steps 515 and 516' to determine the case of Ic (2, 1) (505). And in this case too ('2.
Since the pixel in 1) has a 0 code and Phi remains 0, it is set to 511 as Ph0-1+1-2, and 515.516
The process then proceeds to determination (505) in the case of Ic(3,1).

ここでI c(3,1)は1に変わっているために、5
05の判断でPho−0の判断(512)に進み、Ph
0−2となっているために、513へ進み、2画素のP
hOをノイズ除去(縮小)画像1dへ再生する。また(
3.1)の位置でPhOが途絶えたので、pho−oと
する。そして514でPh1−0十1−1とする。
Here, I c (3, 1) has changed to 1, so 5
Based on the judgment of 05, the process proceeds to the judgment of Pho-0 (512), and Ph
Since it is 0-2, the process goes to 513 and the P of 2 pixels is
Regenerate hO into a noise-removed (reduced) image 1d. Also(
Since PhO is discontinued at position 3.1), it is designated as pho-o. Then, in step 514, it is set to Ph1-01-1.

次に515.516を経てIc(4,1)の場合の判断
(505)に進む。ここでIc(4,1)は1であるた
めに、505の判断で512に進み、pho−。
Next, the process goes through steps 515 and 516 to determine the case of Ic (4, 1) (505). Here, since Ic (4, 1) is 1, the process proceeds to 512 based on the determination in 505, and pho-.

であるために514へ進み、Ph1−1+1−2として
カウントを1つ増やし、515,51[5を経てI c
(5,1)の場合の判断(505)に進む。Ic(5、
■)もIc(4,1)の場合と同様のルートを通り、P
h1−2 + 1−3がカウントされる。Ic(6,1
)、  1c(7,1)の場合も同様であり、Ph1−
5となる。
Therefore, proceed to 514, increment the count by 1 as Ph1-1+1-2, and proceed to 515, 51 [5 to I c
The process proceeds to determination (505) in the case of (5, 1). Ic(5,
■) also passes through the same route as Ic(4,1), and P
h1-2 + 1-3 is counted. Ic(6,1
), 1c(7,1), Ph1-
It becomes 5.

次にI c(8,1)の判断に移り、Ic(8,1)−
0であるため、Ph1−0か否か判断され(506)、
Phl−5であるためにPhl≧Lheか否が判断され
(507)、Phiは横有効ランレングスLhe−4以
上であるために、Phlが縮小画像Idに再生される(
509)、またPhiが0となる(510)。
Next, move on to the judgment of I c (8, 1), I c (8, 1) -
Since it is 0, it is determined whether it is Ph1-0 (506),
Since Phl-5, it is determined whether Phl≧Lhe (507), and since Phi is greater than or equal to the horizontal effective run length Lhe-4, Phl is reproduced into the reduced image Id (
509), and Phi becomes 0 (510).

更にPh0−0+1−1がカウントされる(511)(
9,1)、(10,1)の位置も符号0であるために、
これらにおいて506へ進み、511においてPh0−
3となる。
Furthermore, Ph0-0+1-1 is counted (511) (
Since the positions of 9,1) and (10,1) are also code 0,
In these, the process proceeds to 506, and in 511, Ph0-
It becomes 3.

次に(11,1)の位置において(3,1)の位置の場
合と同様に符号1の画素となるために、(3,1)の場
合と同様のルートを通って3個の符号0画素が縮小画像
Idに再生される。そして(12,1)、(13,1)
においては符号1が続き、512側へ進み、Phiの値
は3となる。
Next, in order to become a pixel with code 1 at the position (11, 1) as in the case of the position (3, 1), the pixel with code 0 passes through the same route as in the case of (3, 1). The pixels are reproduced into a reduced image Id. and (12,1), (13,1)
At , the code 1 continues, progresses to the 512 side, and the value of Phi becomes 3.

そして(14,1)では符号0であるために、506へ
進み、Phlの値は3であるために507へ進む。しか
しPhiはLhe−4に満たないために縮小画像Idへ
は再生されず、また3画素のPhiはphoに変えられ
る(508)。モしてPhiが0となり、またPhOが
1つインクリメントされる。
At (14,1), the code is 0, so the process goes to 506, and since the value of Phl is 3, the process goes to 507. However, since Phi is less than Lhe-4, it is not reproduced into the reduced image Id, and the 3-pixel Phi is changed to pho (508). Then, Phi becomes 0 and PhO is incremented by one.

二二に3画素のPh1をPhOと見做したために、Ph
0−3 + 1−4となる。
Ph
It becomes 0-3 + 1-4.

そして(15,1)で符号1となるために、512へ進
み、Ph0−4となっているために、PLO−4が縮小
画像1dへ再生され、またPhOが0となる。またPh
1−0+1となり、このようにして次々に以後の画素に
おいて判断がなされる。そして(KH,1)の位置へ至
ると、517,518へ進んでjが2となり、以後(i
、2)を順次判断していく。このようにしてj−KVま
で判断がなされ、ノイズの除去処理が終わる。水平方向
において横有効うンレングスLhe=4画素に満たない
符号1の連続画素は、ノイズとして再生されず、符号0
の画素に置き代わる。第5図は水平方向についてのもの
であるが、iとjとを入れ替え、また適当な縦有効ラン
レングスLveを定めることにより、垂直方向について
も第5図が適用でき、水平方向及び垂直方向の双方の処
理を行うことにより、横有効ランレングスL he、縦
有効ランレングスLyeに満たない符号1の連続画素は
符号Oの画素に置き代わる。このようすを示したものが
第1図(b)であり、同図(a)の差画像に対して、所
定の横有効ランレングスL he、縦有効ランレングス
Lveに満たない1画素が取り除かれている。
Then, since the code becomes 1 at (15, 1), the process advances to 512, and since it becomes Ph0-4, PLO-4 is reproduced into the reduced image 1d, and PhO becomes 0. Also Ph
1-0+1, and in this way, judgments are made one after another for subsequent pixels. Then, when it reaches the position (KH, 1), it advances to 517, 518, where j becomes 2, and from then on (i
, 2) will be determined sequentially. In this way, determination is made up to j-KV, and the noise removal process ends. Continuous pixels with a code of 1, which is less than the horizontal effective length Lhe = 4 pixels in the horizontal direction, are not reproduced as noise and have a code of 0.
pixel. Although Fig. 5 is for the horizontal direction, Fig. 5 can also be applied to the vertical direction by exchanging i and j and determining an appropriate vertical effective run length Lve. By performing both processes, consecutive pixels with code 1 that are less than horizontal effective run length L he and vertical effective run length Lye are replaced with pixels with code O. This situation is shown in FIG. 1(b), in which one pixel that is less than a predetermined horizontal effective run length Lhe and vertical effective run length Lve is removed from the difference image shown in FIG. 1(a). ing.

次に特徴領域の拡大(膨脹)動作について説明する。Next, the operation of enlarging (expanding) the feature region will be explained.

第6図は水平方向への拡大(膨脹)についてのフローで
ある。ここで説明の都合上、上述の結果(001111
100000001・ ・)に膨脹を行うものとし、ま
た膨張画素数es−1とする。
FIG. 6 is a flowchart regarding expansion (expansion) in the horizontal direction. Here, for convenience of explanation, the above results (001111
100000001...), and the number of pixels to be expanded is es-1.

なお第6図において、PIOは現在の画素位置の1つ前
の画素までの符号の交互回数を示す。まずj−1,i=
1. Ph0−0. Ph1−0. PIO−0とする
(602〜604)。するとPLO−0であるために(
605)、dpがe(−1)となる(607)。そして
I d(1,1)−0であるために(60g)、609
へ進み、phi−oであるために、611へ進んでPh
0−1となり、Id(2,1)でも同様のコースを進ん
で、Ph0−2となる。
In FIG. 6, PIO indicates the number of alternating codes up to the pixel immediately before the current pixel position. First, j-1, i=
1. Ph0-0. Ph1-0. Set as PIO-0 (602 to 604). Then, since PLO-0 (
605), and dp becomes e(-1) (607). and since I d(1,1)-0 (60g), 609
Proceed to 611 to be phi-o.
The result becomes Ph0-1, and the same course is followed at Id(2,1), resulting in Ph0-2.

そして再び605,607を通って、次の位置の画素の
判断を行う。608でI d(3,1)−1であるため
に、612へ進みPh0−2であるために、613へ進
む。モしてphoを2−1−1とし、このPhOを膨張
画像1eへ再生する。またPIO−0斗1−1とし、p
ho−oとする。またPh1−1とする(614)。
The pixel then passes through 605 and 607 again to determine the pixel at the next position. In 608, since I d(3,1)-1, the process proceeds to 612, and since it is Ph0-2, the process proceeds to 613. pho is set to 2-1-1, and this PhO is reproduced into an expanded image 1e. Also, PIO-0Dou1-1, p
Let's say ho-o. Also, it is set to Ph1-1 (614).

そしてi−4となり(616)、605においてPIO
は0でないため606へ進んでdp−2e−2となる。
Then it becomes i-4 (616), and at 605 PIO
Since is not 0, the process proceeds to 606 and becomes dp-2e-2.

I d(4,1)−1であるために608で612を選
択し、pho−oであるためにそのまま614へ進み、
Ph1−2となり、I d(5,1)、  I d(1
1i、l)、  I d(7,1)も同様であり、Ph
1−5となる。
Since I d(4,1)-1, select 612 at 608, and because it is pho-o, proceed directly to 614;
Ph1-2, I d (5, 1), I d (1
1i,l), Id(7,1) are also similar, and Ph
The score will be 1-5.

次にl d(8,1)−1であるために609へ進み、
Ph1−5であるために610へ進んでPh1−Phi
+dp−5+2=7とし、このPhiを膨張画像■eへ
、すでに再生されている1個の符号0画素に続いて、再
生する。これにより左端画素位置より8個の画素が再生
されたことになり、かつ膨張前に、左端位置より3番目
から7番目までにあった符号1画素は左右に1個づつ増
えた形となっている。
Next, since l d(8,1)-1, proceed to 609,
Since it is Ph1-5, proceed to 610 and enter Ph1-Phi.
+dp-5+2=7, and this Phi is reproduced into the expanded image ■e following one code 0 pixel that has already been reproduced. As a result, 8 pixels from the leftmost pixel position have been reproduced, and the 1 code pixels that were 3rd to 7th from the leftmost position before expansion have been increased by 1 on the left and right. There is.

次に、PIO−1+1−2としてまたPh1−0として
(610) 、さらにPh0−1として(611)60
5.606を通って(9,1)、(10゜1)、・・ 
、(14,1)の位置に進み(608,609,611
) 、Ph0−7となる(611)そして(15,1)
になると符号1画素に変わるために608から612へ
進んでさらにpho−7となっているために613へ進
んで、pho−phO−d p −7−2−5とし、こ
れが再生されている符号1画素の続きに再生される。即
ち符号0画素は膨脹される前に対して両端の2画素が取
り除かれた形で符号1画素の続きに再生される。そして
PLO−2+1−3としてまたpho−oとして(61
3) 、更にPh1−1として、次の位置の画素の判断
に進む。
Next, as PIO-1+1-2 and as Ph1-0 (610), and further as Ph0-1 (611) 60
5. Through 606 (9,1), (10°1),...
, proceed to position (14, 1) (608, 609, 611
), which becomes Ph0-7 (611) and (15,1)
Then, the code changes to 1 pixel, so the process goes from 608 to 612, and since it becomes pho-7, the process goes to 613, where it becomes pho-phO-d p -7-2-5, and this is the code being played. It is played back one pixel after another. That is, the code 0 pixel is reproduced as a continuation of the code 1 pixel with two pixels at both ends removed from before being expanded. And as PLO-2+1-3 and as pho-o (61
3) Further, as Ph1-1, proceed to determination of the pixel at the next position.

このようにして(KH,1)の位置へ至ると(615)
 、PhQ−0か否かの判断(617)へ進み、pho
が0でないときP hO−P hO−1が膨脂画像re
へ再生され、またPhOが0のときPh1−0か否か判
断され(61B)、619によりPh1−Phl+1が
膨脂画像1eへ再生される。
In this way, when we reach the position of (KH, 1), (615)
, proceeds to judgment (617) whether or not PhQ-0, and pho
is not 0, P hO-P hO-1 is the fat image re
Further, when PhO is 0, it is determined whether Ph1-0 or not (61B), and in step 619, Ph1-Phl+1 is reproduced as the fat image 1e.

そしてi−2のラインへ進み、上記と同様に判断されて
、このようにしてj=Kvまで(621)膨脹処理が終
わると終了(623)となる。このようにして水平方向
において符号1の画素列は両端に1画素ずつ増やした形
で再生される。
Then, the process advances to line i-2, and the same judgment as above is made, and when the expansion process is completed until j=Kv (621), the process ends (623). In this way, in the horizontal direction, the pixel column numbered 1 is reproduced with one pixel added at each end.

第6図においてiとjとを入れ替えると垂直方向の膨脹
処理のフロー図となり、水平、垂直の両方向を行うこと
により、両方向に符号1の画素を所定膨脹画素数だけ拡
大させることができる。このようすを示したものが第1
図(C)であり、同図(b)の画像に対して、水平方向
及び垂直方向にそれぞれ所定画素数だけ拡大した画像が
得られている。このように膨脹処理を行うことにより、
素子を実装する際の位置ずれを許容することができる。
If i and j are replaced in FIG. 6, a flowchart of the vertical expansion process is obtained. By performing both horizontal and vertical expansion, the pixel numbered 1 can be expanded by a predetermined number of expansion pixels in both directions. The first one shows this situation.
The image shown in FIG. 3C is an image obtained by enlarging the image shown in FIG. By performing the expansion process in this way,
Positional deviations when mounting elements can be tolerated.

また監視面の照度が変化し、従ってテレビカメラ3の出
力が変動して、2値打号化信号が変動し、これにより符
号1の部分の面積が変動するが、この変動を許容するこ
とができる。膨脂画素数eはこれらの変動を包括するよ
うに設定され、またこれらの変動を包括可能な最低値と
することが望ましく、これにより監視対象物に近い監視
領域の自動設定が可能となる。
Furthermore, the illuminance of the monitoring surface changes, and therefore the output of the television camera 3 changes, and the binary encoding signal changes, which causes the area of the part marked 1 to change, but this change can be tolerated. . The number e of bulge pixels is set to encompass these fluctuations, and is preferably set to the lowest value that can encompass these fluctuations, thereby making it possible to automatically set a monitoring area close to the object to be monitored.

この画像が本発明により得られた監視領域Tであり、ノ
イズが除去され、かつ符号1からなる重要な特徴領域を
水平方向及び垂直方向に所定画素数だけ膨脹させた監視
領域が得られている(404)。
This image is the monitoring area T obtained by the present invention, and the monitoring area is obtained by removing noise and expanding the important characteristic area consisting of code 1 by a predetermined number of pixels in the horizontal and vertical directions. (404).

次に、上記方法による監視領域Tの抽出が終わると、N
個の検査ブロックQ(ブロック番号jm1.2,3. 
  ・・、Nとする)に分割する(404)。各ブロッ
クの横幅はKvとし、縦幅は縦有効ランレングスLve
とする。N個の検査ブロックに分けることにより、最適
の検査単位を得ることができる。
Next, when the extraction of the monitoring area T by the above method is completed, N
inspection blocks Q (block numbers jm1.2, 3.
..., N) (404). The width of each block is Kv, and the vertical width is the vertical effective run length Lve.
shall be. By dividing into N test blocks, an optimal test unit can be obtained.

次に各ブロックごとに正常画像における有意画素数、即
ち上述の2値打号化された正常な事前画像と正常な事後
画像との差画像(排他的論理和)からなる符号1の画素
数を数えて、これをそのブロックにおける良否判定基準
値POrとする。ここに上記で求めた監視領域は所定膨
脹画素数だけ拡大しているために、通常、良否判定基準
値POrは監視領域の画素数より少ない。なお、各基準
値POrは許容範囲durを定め、各ブロックにおける
許容上限p maxr −p Or+ dur 、許容
下限Pm1nr−POr+ durとする。以上で画像
監視のための準備が終わる。
Next, for each block, count the number of significant pixels in the normal image, that is, the number of pixels with code 1, which is the difference image (exclusive OR) between the binary encoded normal prior image and normal subsequent image. This is then set as the pass/fail judgment reference value POr for that block. Here, since the monitoring area obtained above is expanded by a predetermined number of expanded pixels, the pass/fail determination reference value POr is usually smaller than the number of pixels in the monitoring area. Note that each reference value POr defines a permissible range dur, and the permissible upper limit p maxr -p Or+ dur and the permissible lower limit Pm1nr-POr+ dur in each block. This completes the preparation for image monitoring.

次に監視動作指令を待ち(406) 、素子を実装する
準備が終了したという指令が入ると、検査事前画像1a
を入力して2値打号化する(407゜702)。そして
、素子の実装加工が行われ、イベント終了の指令が入る
と(40g) 、事後画像Ibを入力し、2値打号化す
る(409. 703)そして第7図及び第4図に示す
ように、排他的論理和により差画像1cを計算する10
4.410)。
Next, it waits for a monitoring operation command (406), and when the command that the preparation for mounting the device is completed is received, the pre-inspection image 1a
Input and convert into binary encoding (407°702). Then, when the device is mounted and a command to end the event is received (40g), the post-image Ib is input and converted into binary encoding (409.703), and as shown in Figs. 7 and 4. , calculate the difference image 1c by exclusive OR10
4.410).

そして差画像Icと上記で求めた監視領域1eとの積(
AND)画像をとる(705. 411)。
Then, the product of the difference image Ic and the monitoring area 1e obtained above (
AND) Take an image (705.411).

これにより差画像1eのうち、監視領域1eの外側にあ
るものは排除される。
As a result, out of the difference images 1e, those outside the monitoring area 1e are excluded.

そして各ブロックごとに良否判定を行う(4↓2)。各
ブロックQrごとに検査有意画素数Prを求め(707
) 、各ブロックごとに許容範囲内にあるか否か、即ち
P m1nr≦P「≦P maxrであるか否か計算し
て良否判定を行う(708,709゜710.711)
Then, a pass/fail judgment is made for each block (4↓2). The number of test significant pixels Pr is calculated for each block Qr (707
), calculate whether each block is within the allowable range, that is, P m1nr≦P ≦P maxr to determine whether it is acceptable or not (708, 709° 710.711)
.

全てのブロックの良否判定が終わると、判定結果を出力
する(413)。異常と判定された場合は、次の実装加
工を中止し、また再検査が可能な場合は異常判定のブロ
ックを再検査する。正常と判定された場合は、次の監視
対象物1が搬送され、上記と同様の監視動作が行われる
When the quality determination of all blocks is completed, the determination results are output (413). If it is determined to be abnormal, the next mounting process is stopped, and if re-inspection is possible, the block determined to be abnormal is re-inspected. If it is determined to be normal, the next object to be monitored 1 is transported and the same monitoring operation as above is performed.

以上のようにして、監視対象物1の画像監視が行なわれ
In the manner described above, image monitoring of the monitored object 1 is performed.

なお、上記実施例では検査ブロックを垂直方向にN個に
分けたが、更に水平方向にM個に分けて、これらにより
構成されるNXM個の格子状ブロックとする等、検査ブ
ロックへの種々の分割方法が可能である。
In the above embodiment, the inspection block is divided into N pieces in the vertical direction, but it is further divided into M pieces in the horizontal direction to form NXM lattice blocks. Division methods are possible.

また、上記実施例では有意画素を2値打号化された事前
画像と事後画像との差画像を取った結果表われた符号1
の画素としたが、2値打号化する前の正常事前出力画像
と2値打号化する前の正常事後出力画像との差画像をと
り、この出力値が所定のしきい値dより大きい場合、有
意差があるとして、その画素を有意画素としてもよい。
In addition, in the above embodiment, the code 1 that appears as a result of taking a difference image between a prior image and a post image in which significant pixels are binary encoded is
However, if the difference image between the normal pre-output image before binary encoding and the normal post-output image before binary encoding is taken, and this output value is larger than a predetermined threshold value d, If there is a significant difference, that pixel may be determined as a significant pixel.

また2値打号化する前の正常事後出力画像単独において
、その値が所定のしきい値より大きい場合、その画素を
有意画素としてもよい。
Further, if the value of the normal post-output image alone before binary encoding is larger than a predetermined threshold value, that pixel may be determined as a significant pixel.

また、上記実施例では事前監視は行っていないか、事前
画像において特徴領域が存在する場合等は、事前監視に
おいても本発明を実施することが可能である。
Further, in the above embodiments, if preliminary monitoring is not performed or if a characteristic region exists in the preliminary image, the present invention can also be implemented in preliminary monitoring.

[効果] 本発明によれば、監視領域を、画面内のノイズを除去し
た後に、特徴領域を所定画素数分拡大したものから構成
し、この監視領域における特徴量を算出して監視判定を
行うため、特徴領域部分及びそれに極めて近い周辺部に
限定して監視が行われ、監視の目的に沿った監視が行わ
れる。
[Effects] According to the present invention, the monitoring area is configured from a feature area expanded by a predetermined number of pixels after noise in the screen is removed, and the feature amount in this monitoring area is calculated to perform monitoring determination. Therefore, monitoring is performed only in the characteristic region and the surrounding area extremely close to it, and monitoring is performed in accordance with the purpose of monitoring.

また、監視領域が特徴領域部分及びそれに極めて近い周
辺部に限定されるため、監視領域にノイズの入り込む余
地を極力減らすことができ、より正しい監視を行うこと
が可能である。
In addition, since the monitoring area is limited to the characteristic area and the surrounding area extremely close to the feature area, the room for noise to enter the monitoring area can be reduced as much as possible, and more accurate monitoring can be performed.

また、監視領域を複数のブロックに分割して、各ブロッ
クごとに特徴量を算出して監視判定を行うことにより、
上記で抽出した監視領域を更に監視に最適の大きさにし
て、監視することができる。
In addition, by dividing the monitoring area into multiple blocks and calculating the feature values for each block to make monitoring decisions,
The monitoring area extracted above can be further sized to the optimum size for monitoring.

また、特徴量を監視対象物の加工前の画像と加工後の画
像との差画像から算出することにより、監視対象物の事
前事後変化領域に注目して全体監視を実施することが可
能となる。
In addition, by calculating the feature amount from the difference image between the pre-processed image and post-processed image of the monitored object, it becomes possible to carry out overall monitoring by focusing on areas of change before and after the monitored object. .

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

第1図(a)は撮像画面の監視領域における差画像を示
した説明図、同図(b)は同図(a)の画面よりノイズ
を除去した状態を示した説明図、同図(c)は同図(b
)の画面において特徴領域を拡大した状態を示した説明
図、第2図は画像監視装置で監視対象物を監視している
様子を示す外観斜視図、第3図は画像監視装置の構成を
示したシステムブロック図、第4図は画像監視動作を説
明するためのシステムフロー図、第5図は第4図のシス
テムフロー図の監視基準領域抽出におけるノイズ除去動
作を具体的に説明するためのフロー図、第6図は第4図
のシステムフロー図の監視基準領域抽出における領域拡
大動作を具体的に説明するためのフロー図、第7図は第
4図のシステムフロー図における事前画像人力から分割
領域ごとの良否判定までの動作を更に具体的に説明する
ためのフロー図である。 1  ・監視対象物、 3・ ・撮像手段、 Sl   ・特徴領域、 Q・ ・検査ブロック、 T・ ・監視領域。 以  上
FIG. 1(a) is an explanatory diagram showing a difference image in the monitoring area of the imaging screen, FIG. 1(b) is an explanatory diagram showing a state in which noise has been removed from the screen in FIG. ) is the same figure (b
) is an explanatory diagram showing a state in which the characteristic area is enlarged on the screen, FIG. 2 is an external perspective view showing how an object to be monitored is monitored by the image monitoring device, and FIG. 3 is a diagram showing the configuration of the image monitoring device. 4 is a system flow diagram for explaining the image monitoring operation, and FIG. 5 is a flowchart for specifically explaining the noise removal operation in monitoring reference area extraction in the system flow diagram of FIG. 4. Figure 6 is a flowchart for specifically explaining the area enlargement operation in monitoring reference area extraction in the system flow diagram in Figure 4, and Figure 7 is a flowchart for dividing the preliminary image manually in the system flow diagram in Figure 4. FIG. 7 is a flowchart for more specifically explaining the operation up to pass/fail determination for each area. 1. Object to be monitored, 3. Imaging means, Sl. Characteristic region, Q. Inspection block, T. Monitoring region. that's all

Claims (3)

【特許請求の範囲】[Claims] (1)監視対象物を撮像した撮像手段の画面内において
特徴領域を含む部分を監視領域として設定し、この監視
領域内における特徴量を産出して監視判定を行なう画像
監視方法において、 上記監視領域の設定は、 上記画面内のノイズを除去した後に、上記特徴領域を所
定画素数分拡大した画面において行なうことを特徴とす
る画像監視方法。
(1) In an image monitoring method in which a portion including a characteristic area is set as a monitoring area in the screen of an imaging means that images an object to be monitored, and a monitoring judgment is made by producing a feature amount within this monitoring area, the monitoring area is as follows: An image monitoring method characterized in that the setting is performed on a screen in which the characteristic region is enlarged by a predetermined number of pixels after noise in the screen is removed.
(2)上記監視判定は、 上記監視領域を複数のブロックに分割し、この分割した
ブロックごとに、上記特徴量を算出して行なう ことを特徴とする請求項1記載の画像監視方法。
(2) The image monitoring method according to claim 1, wherein the monitoring judgment is performed by dividing the monitoring area into a plurality of blocks and calculating the feature amount for each divided block.
(3)上記特徴量は上記監視対象物の加工前の画像と加
工後の画像との差画像から算出する ことを特徴とする請求項1または2記載の画像監視方法
(3) The image monitoring method according to claim 1 or 2, wherein the feature amount is calculated from a difference image between an unprocessed image and a processed image of the monitored object.
JP2137871A 1990-05-28 1990-05-28 Image monitoring method Pending JPH0431976A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2137871A JPH0431976A (en) 1990-05-28 1990-05-28 Image monitoring method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2137871A JPH0431976A (en) 1990-05-28 1990-05-28 Image monitoring method

Publications (1)

Publication Number Publication Date
JPH0431976A true JPH0431976A (en) 1992-02-04

Family

ID=15208661

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2137871A Pending JPH0431976A (en) 1990-05-28 1990-05-28 Image monitoring method

Country Status (1)

Country Link
JP (1) JPH0431976A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017150927A (en) * 2016-02-24 2017-08-31 Juki株式会社 Inspection device, mounted device, inspection method, and program

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62203287A (en) * 1986-03-04 1987-09-07 Omron Tateisi Electronics Co Check device for component mounting board
JPS62261048A (en) * 1986-05-07 1987-11-13 Omron Tateisi Electronics Co Printed circuit board inspecting device
JPH01236791A (en) * 1988-03-17 1989-09-21 Toshiba Corp Proximity supervisory equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62203287A (en) * 1986-03-04 1987-09-07 Omron Tateisi Electronics Co Check device for component mounting board
JPS62261048A (en) * 1986-05-07 1987-11-13 Omron Tateisi Electronics Co Printed circuit board inspecting device
JPH01236791A (en) * 1988-03-17 1989-09-21 Toshiba Corp Proximity supervisory equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017150927A (en) * 2016-02-24 2017-08-31 Juki株式会社 Inspection device, mounted device, inspection method, and program

Similar Documents

Publication Publication Date Title
KR100744212B1 (en) Method and system for detecting defects on a printed circuit board
KR100309635B1 (en) Automatic visual inspection apparatus, automatic visual inspection method, and recording medium having recorded an automatic visual inspection program
JP3092892B2 (en) Semiconductor chip appearance inspection method and apparatus
KR100759950B1 (en) Device and method for inspection external appearance
JPH0425741A (en) Optical axis adjusting method for headlight
US5115475A (en) Automatic semiconductor package inspection method
JPH0973541A (en) Object detection device/method
JPH0431976A (en) Image monitoring method
JPH07249128A (en) Picture processor for vehicle
JP4629086B2 (en) Image defect inspection method and image defect inspection apparatus
JPH0814524B2 (en) Headlamp optical axis inspection method
JP2543370B2 (en) Sealant inspection method using visual sensor
JPH055609A (en) Cubic recognition method of image
JPH0777495A (en) Pattern inspection method
JPH046404A (en) Image monitoring method
JPH0894541A (en) Method for detecting chipped corner of subject for inspection
JPS6385432A (en) Inspecting method for linear defect
JP2006329679A (en) Method and device for inspecting product pattern
JP3006838B2 (en) Reticle inspection equipment
JP3190173B2 (en) Semiconductor device appearance inspection method and appearance inspection device
JPH0760135B2 (en) Image processing method for wafer defect inspection
JPH0431975A (en) Image monitoring method
JP3487963B2 (en) Inspection method for transparent objects
JPH05128237A (en) Pattern inspecting method
JPS62259184A (en) Detecting device for pattern crack