JPH0814847B2 - Pattern inspection method - Google Patents

Pattern inspection method

Info

Publication number
JPH0814847B2
JPH0814847B2 JP63288165A JP28816588A JPH0814847B2 JP H0814847 B2 JPH0814847 B2 JP H0814847B2 JP 63288165 A JP63288165 A JP 63288165A JP 28816588 A JP28816588 A JP 28816588A JP H0814847 B2 JPH0814847 B2 JP H0814847B2
Authority
JP
Japan
Prior art keywords
pattern
direction code
image
histogram
edge image
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 - Lifetime
Application number
JP63288165A
Other languages
Japanese (ja)
Other versions
JPH02133885A (en
Inventor
智治 中原
新治 畑澤
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.)
Panasonic Electric Works Co Ltd
Original Assignee
Matsushita Electric Works Ltd
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 Matsushita Electric Works Ltd filed Critical Matsushita Electric Works Ltd
Priority to JP63288165A priority Critical patent/JPH0814847B2/en
Publication of JPH02133885A publication Critical patent/JPH02133885A/en
Publication of JPH0814847B2 publication Critical patent/JPH0814847B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime 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)
  • Testing Or Measuring Of Semiconductors Or The Like (AREA)
  • Image Analysis (AREA)

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は印刷回路板の外観目視検査を自動化するパタ
ーン検査方法に関するものである。
The present invention relates to a pattern inspection method for automating visual appearance inspection of a printed circuit board.

[従来の技術] 従来特開昭63-15380号に見られるように2値化像又は
濃淡画像上において、繰り返されるパターンの各々に、
予め設定した位置でパターンのアドレスを測定し、繰り
返しパターンの平均的な位置や、揃い具合を検査する方
法がある。
[Prior Art] As seen in Japanese Patent Laid-Open No. 63-15380, a repeated pattern is formed on a binarized image or a grayscale image.
There is a method of measuring the address of the pattern at a preset position and inspecting the average position and the alignment of the repeated patterns.

[発明が解決しようとする課題] しかしながら従来方法は個別のパターン毎に測定位置
を予め設定しなければならないため、複数のパターンが
存在するときには、設定作業が煩雑になるという問題が
ある。またワークセット時のずれや、パターン自体の変
形による位置ずれが生じると、本来の測定位置からずれ
たところを測定し、正しい測定結果が得られなかった。
[Problems to be Solved by the Invention] However, in the conventional method, since the measurement position has to be set in advance for each individual pattern, there is a problem that the setting work becomes complicated when a plurality of patterns exist. In addition, when a work set or a position shift due to the deformation of the pattern itself occurs, the position where the measurement is deviated from the original measurement position is measured, and a correct measurement result cannot be obtained.

本発明は上述の問題点に鑑みて為されたもので、その
目的とするところは事前の煩雑なデータ設定作業が不要
で、画像の位置ずれの有無にかかわらず正しくパターン
検査が行えるパターン検査方法を提供するにある。
The present invention has been made in view of the above problems, and its object is a pattern inspection method that does not require a complicated data setting work in advance and can perform a pattern inspection correctly regardless of the presence or absence of a positional deviation of an image. To provide.

[課題を解決するための手段] 本発明は、繰り返し形状のパターンからなる濃淡画像
を、微分細線化してエッジ画像を求め、このエッジ画像
の着目するパターンの部分における濃度勾配の方向コー
ドをX軸方向、又はY軸方向に投影して求めて各方向コ
ード値をメモリし、このメモリした方向コード値を参照
して着目する方向コード値のみを加算してヒストグラム
を求めることを特徴とするものである。
[Means for Solving the Problem] According to the present invention, a grayscale image composed of a pattern of a repetitive shape is differentiated into a fine line to obtain an edge image, and a direction code of a density gradient in a pattern portion of interest in the edge image is set as an X axis. Each direction code value obtained by projecting in the direction or the Y-axis direction is stored in memory, and only the direction code value of interest is added with reference to the stored direction code value to obtain a histogram. is there.

〔作用〕[Action]

而して本発明によれば、繰り返し形状のパターンから
なる濃淡画像を、微分細線化してエッジ画像を求め、こ
のエッジ画像の着目するパターンの部分における濃度勾
配の方向コードをX軸方向、又はY軸方向に投影して求
めて各方向コード値をメモリし、このメモリした方向コ
ード値を参照して着目する方向コード値のみを加算して
ヒストグラムを求めるので、統計量の値より検査を行う
こととなって、個々のパターン形状を認識する方法のよ
うな煩雑なデータ設定が不要となり、また個々のパター
ン形状を認識しないため、個々のパターンずれによる測
定ミスを発生することがない。
Thus, according to the present invention, a grayscale image having a pattern of a repetitive shape is differentiated into a thin line to obtain an edge image, and the direction code of the density gradient in the target pattern portion of the edge image is set in the X-axis direction or Y direction. Each direction code value that is obtained by projecting in the axial direction is stored in memory, and only the direction code value of interest is added to obtain the histogram by referring to this stored direction code value, so check from the statistical value. Therefore, complicated data setting such as a method of recognizing individual pattern shapes is not required, and since individual pattern shapes are not recognized, measurement error due to individual pattern displacement does not occur.

〔実施例〕〔Example〕

以下本発明を実施例によって説明する。 The present invention will be described below with reference to examples.

第1図は本発明方法を用いたパターン検査装置の実施
例構成を示しており、この実施例では印刷回路板1上方
からTVカメラ2により撮像して得られる映像信号を、A/
D変換器3を通してデジタル信号に変換する。
FIG. 1 shows the configuration of an embodiment of a pattern inspection apparatus using the method of the present invention. In this embodiment, a video signal obtained by picking up an image from above the printed circuit board 1 by the TV camera 2 is A /
It is converted into a digital signal through the D converter 3.

デジタル変換した信号を微分回路4によって微分し、
濃度勾配を表す微分の絶対値と、濃度勾配の方向を表す
方向コードとを得る。得られた微分の絶対値は2値化処
理回路5にてパターンの形状を表すように2値化し、更
に細線化処理回路6で細線化処理を施し、エッジ画像デ
ータを得る。この細線化処理回路6で得られたエッジ画
像データをフレームメモリ7に書き込む。
The digitally converted signal is differentiated by the differentiating circuit 4,
The absolute value of the derivative representing the concentration gradient and the direction code representing the direction of the concentration gradient are obtained. The obtained absolute value of the differential is binarized by the binarization processing circuit 5 so as to represent the shape of the pattern, and further thinned by the thinning processing circuit 6 to obtain edge image data. The edge image data obtained by the thinning processing circuit 6 is written in the frame memory 7.

また方向コードは方向コードメモリ8に格納される。 The direction code is also stored in the direction code memory 8.

上記のエッジ画像は第2図(a)に示されるようにパ
ターンの形状を良く表したものとなる。ここで第2図
(a)において回路パターンPの先端の矢印は方向コー
ドの向きを示し、パターン形状の一部を示すものであ
る。
The edge image described above is a good representation of the shape of the pattern as shown in FIG. Here, in FIG. 2A, the arrow at the tip of the circuit pattern P indicates the direction of the direction code and indicates a part of the pattern shape.

次に判定処理部9における方向コードヒストグラムの
作成方法を第2図〜第4図に基づいて説明する。
Next, a method of creating the direction code histogram in the determination processing unit 9 will be described with reference to FIGS.

まず得られた画像上において着目するパターンの部分
を決定する。例えば、画像のX軸方向のずれを知りたい
とすれば回路パターンPの先端に着目する。
First, the portion of the pattern of interest on the obtained image is determined. For example, when it is desired to know the displacement of the image in the X-axis direction, attention is paid to the tip of the circuit pattern P.

次いで着目する部分の方向コードを調べ、その着目す
る部分の方向コードのみを、得たい情報を良く表わす軸
方向へ投影する。第2図(a)において、X軸方向の位
置ずれを知りたいとすると、回路パターンPの先端の方
向コードをX軸方向へ投影する。この投影により得られ
たコードヒストグラムが第2図(b)である。
Next, the direction code of the portion of interest is examined, and only the direction code of the portion of interest is projected in the axial direction that well represents the desired information. In FIG. 2A, if it is desired to know the positional deviation in the X-axis direction, the direction code at the tip of the circuit pattern P is projected in the X-axis direction. The code histogram obtained by this projection is shown in FIG.

第4図はこの投影処理の流れを示す。フレームメモリ
7上のエッジ画像を走査し、エッジ画像を検出したらエ
ッジ画像上のアドレスに対応する方向コードメモリ8上
の方向コード値を参照し、着目する方向コードであれば
ヒストグラムに加算する。
FIG. 4 shows the flow of this projection processing. The edge image on the frame memory 7 is scanned, and when the edge image is detected, the direction code value on the direction code memory 8 corresponding to the address on the edge image is referred to, and if it is the direction code of interest, it is added to the histogram.

方向コードのヒストグラムが得られたら、このヒスト
グラムの中央値、分布の幅等の統計量を計算する。これ
らの統計量より回路パターンPの検査を行う。つまり予
め良品の回路パターンの方向コードのヒストグラム統計
量を登録しておき、上記のように計測により求めたヒス
トグラムの統計量と比較することにより回路パターンP
の検査が行えるのである。
When the histogram of the direction code is obtained, statistics such as the median of this histogram and the width of the distribution are calculated. The circuit pattern P is inspected based on these statistics. That is, the histogram statistic of the direction code of the non-defective circuit pattern is registered in advance, and is compared with the statistic of the histogram obtained by the measurement as described above to obtain the circuit pattern P.
Can be inspected.

例えば、中央値からは、第2図(b)に示すように、
回路パターンPのX軸方向の位置が得られ、分布の幅か
らは例えば第3図(b)に示すような分布の幅であれば
第3図(a)に示すように回路パターンPの先端が一直
線上に整列されていないことが分かる。即ち分布の幅で
回路パターンPの先端の整列度合を検査することができ
るのである。
For example, from the median value, as shown in FIG.
The position of the circuit pattern P in the X-axis direction is obtained. From the distribution width, for example, if the distribution width is as shown in FIG. 3 (b), the tip of the circuit pattern P is as shown in FIG. 3 (a). It can be seen that are not aligned. That is, the degree of alignment of the tips of the circuit patterns P can be inspected by the width of the distribution.

〔発明の効果〕〔The invention's effect〕

本発明によれば、繰り返し形状のパターンからなる濃
淡画像を、微分細線化してエッジ画像を求め、このエッ
ジ画像の着目するパターンの部分における濃度勾配の方
向コードをX軸方向、又はY軸方向に投影して求めて各
方向コード値をメモリし、このメモリした方向コード値
を参照して着目する方向コード値のみを加算してヒスト
グラムを求めるので、統計量の値より検査を行うことと
なって、個々のパターン形状を認識する方法のような煩
雑なデータ設定が不要となり、また個々のパターン形状
を認識しないため、個々のパターンずれによる測定ミス
を発生することがなく、画像の位置ずれの右右にかかわ
らず、正しくパターンの測定が行えるという効果を奏す
る。
According to the present invention, a grayscale image having a pattern of a repetitive shape is differentiated into a thin line to obtain an edge image, and the direction code of the density gradient in the pattern portion of interest in the edge image is set in the X-axis direction or the Y-axis direction. Each direction code value obtained by projecting is memorized, and only the direction code value of interest is added to obtain the histogram by referring to this memorized direction code value. No need for complicated data setting such as the method of recognizing individual pattern shape, and because individual pattern shapes are not recognized, measurement errors due to individual pattern deviations do not occur and image misregistration on the right It has an effect that the pattern can be accurately measured regardless of the right side.

【図面の簡単な説明】[Brief description of drawings]

第1図は本発明方法を用いた実施例のシステム構成図、
第2図(a)は同上によって得たエッジ画像の例図、第
2図(b)は同上によって得た第2図(a)の方向コー
ドヒストグラムの例図、第3図(a)は同上によって得
たエッジ画像の別の例図、第3図(b)は同上によって
得た第3図(a)の方向コードヒストグラムの例図、第
4図は同上の投影処理のフローチャートである。 1は印刷回路板、2はTVカメラ、3はA/D変換器、4は
微分回路、5は2値化処理回路、6は細線化処理回路、
7はフレームメモリ、8は方向コードメモリ、9は判定
処理部、Pは回路パターンである。
FIG. 1 is a system configuration diagram of an embodiment using the method of the present invention,
2 (a) is an example image of the edge image obtained by the same as above, FIG. 2 (b) is an example diagram of the direction code histogram of FIG. 2 (a) obtained by the same as above, and FIG. 3 (a) is the same as above. FIG. 3 (b) is an example diagram of the direction code histogram of FIG. 3 (a) obtained by the above, and FIG. 4 is a flowchart of the projection processing of the same. 1 is a printed circuit board, 2 is a TV camera, 3 is an A / D converter, 4 is a differentiation circuit, 5 is a binarization processing circuit, 6 is a thinning processing circuit,
7 is a frame memory, 8 is a direction code memory, 9 is a determination processing unit, and P is a circuit pattern.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】繰り返し形状のパターンからなる濃淡画像
を、微分細線化してエッジ画像を求め、このエッジ画像
の着目するパターンの部分における濃度勾配の方向コー
ドをX軸方向、又はY軸方向に投影して求めて各方向コ
ード値をメモリし、このメモリした方向コード値を参照
して着目する方向コード値のみを加算してヒストグラム
を求めることを特徴とするパターン検査方法。
1. A grayscale image having a repeating pattern is differentiated into a thin line to obtain an edge image, and a direction code of a density gradient in a pattern portion of the edge image to be projected is projected in the X-axis direction or the Y-axis direction. The pattern inspection method is characterized in that the obtained direction code values are stored in memory, and the stored direction code values are referenced to add only the direction code values of interest to obtain a histogram.
JP63288165A 1988-11-15 1988-11-15 Pattern inspection method Expired - Lifetime JPH0814847B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63288165A JPH0814847B2 (en) 1988-11-15 1988-11-15 Pattern inspection method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63288165A JPH0814847B2 (en) 1988-11-15 1988-11-15 Pattern inspection method

Publications (2)

Publication Number Publication Date
JPH02133885A JPH02133885A (en) 1990-05-23
JPH0814847B2 true JPH0814847B2 (en) 1996-02-14

Family

ID=17726650

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63288165A Expired - Lifetime JPH0814847B2 (en) 1988-11-15 1988-11-15 Pattern inspection method

Country Status (1)

Country Link
JP (1) JPH0814847B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0592646A (en) * 1991-09-30 1993-04-16 Ezel Inc Method for inspecting printed matter
JP5435904B2 (en) * 2008-07-11 2014-03-05 株式会社メガトレード How to detect fatal wounds

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61877A (en) * 1984-06-14 1986-01-06 Amada Co Ltd Form recognizer

Also Published As

Publication number Publication date
JPH02133885A (en) 1990-05-23

Similar Documents

Publication Publication Date Title
JPH077446B2 (en) Part recognition method
US5206917A (en) Method for collating independent figure elements between images
US4745296A (en) Process for optically testing circuit boards to detect incorrect circuit patterns
CN115375610A (en) Detection method and device, detection equipment and storage medium
JPH01236700A (en) Inspection and orientation recognition method of component lead
JPS6042884B2 (en) IC lead bending inspection device
JPH0814847B2 (en) Pattern inspection method
JPH0210461B2 (en)
US6526165B1 (en) Methods and apparatuses for refining a geometric description of an object having a plurality of extensions
JP3049488B2 (en) Pattern inspection method and pattern inspection device
JPH02251714A (en) Method for inspecting polarity of mounted polar part and visual inspection method for mounting board
JP2912070B2 (en) Object position recognition method
JP3447538B2 (en) Pattern inspection method
JPH0224323B2 (en)
JP3218875B2 (en) Three-dimensional object shape inspection device
JPH02165004A (en) Object testing apparatus
JPH0749933B2 (en) Printed circuit board inspection method and device
JP2964594B2 (en) Mark inspection method
JPH0791932A (en) Visual inspection of soldered state
JP2971793B2 (en) Position detection device
JPH10105718A (en) Optical measurement method for hole position
JPH07140091A (en) Pattern inspection
JPH10105720A (en) Optical measurement method for hole position
JPH10141930A (en) Method and device for inspecting pattern
JP3111432B2 (en) Image processing device