JP3919505B2 - Pattern inspection apparatus and method - Google Patents
Pattern inspection apparatus and method Download PDFInfo
- Publication number
- JP3919505B2 JP3919505B2 JP2001346090A JP2001346090A JP3919505B2 JP 3919505 B2 JP3919505 B2 JP 3919505B2 JP 2001346090 A JP2001346090 A JP 2001346090A JP 2001346090 A JP2001346090 A JP 2001346090A JP 3919505 B2 JP3919505 B2 JP 3919505B2
- Authority
- JP
- Japan
- Prior art keywords
- image
- pattern
- inspection
- block
- predetermined pattern
- 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
Images
Landscapes
- Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)
- Testing Or Measuring Of Semiconductors Or The Like (AREA)
- Image Processing (AREA)
- Image Analysis (AREA)
Description
【0001】
【発明の属する技術分野】
本発明は、各種対象物の外観形状に現れるパターンを検査して欠陥を検出するパターン検査装置に関するものであり、例えばプリント基板や、リードフレーム、半導体ウェハー、及びそれらのフォトマスク等のパターンを検査して微細な欠陥を検出するパターン検査装置に関する。
【0002】
【従来の技術】
プリント基板や、リードフレーム、半導体ウェハー等においてパターンの微細化が進んでいる。例えばプリント基板では、そのパターンの微細化が進み、端子接続部分が狭ピッチ化すると共に、ラインおよびスペースも縮小化している。このため、プリント基板の外観検査等のパターン検査において、より高い検出分解能が要求されるようになっている。その結果、パターン検査のために使用される画像、すなわち、検査対象パターンを表す被検査画像や、比較法を採用した場合に検査対象パターンと比較すべき良品パターンを表す参照画像を記憶するために必要なメモリの容量が増大してきている。
【0003】
【発明が解決しようとする課題】
そこで本発明は、パターン検査のために記憶すべき画像に対して必要なメモリ容量を低減することができるパターン検査装置および方法を提供することを目的とする。
【0004】
【課題を解決するための手段および発明の効果】
第1の発明は、所定パターンが形成された検査対象物の撮像画像に基づき当該所定パターンを検査するパターン検査装置であって、
前記所定パターンの検査のために記憶すべき画像を表すデータを格納するための記憶手段と、
前記記憶すべき画像を、画素を最下位の画像単位として階層的に所定の画像単位に分割し、上位の階層における画像単位から順に、各画像単位につき当該画像単位が前記所定パターンの少なくとも一部を含むか否かを判定する判定手段と、
前記判定手段による判定結果に基づき、最下位よりも上位の階層における画像単位のうち前記所定パターンの少なくとも一部を含む画像単位である対象画像単位に対してのみ、当該対象画像単位を構成する下位の階層の画像単位を表すデータを当該対象画像単位の位置情報と共に前記記憶手段に記憶させる記憶制御手段と
を備えることを特徴とする。
【0005】
このような第1の発明によれば、最下位よりも上位の階層における各画像単位のうち検査すべき所定パターンの少なくとも一部を含む画像単位に対してのみ、その画像単位を構成する下位の階層の画像単位を表すデータが記憶されるので、パターン検査のために記憶すべき画像のためのメモリ容量が低減され、また、必要なメモリ容量の増大を抑えつつ、検査すべきパターンを含む部分のみにつき詳細な画像を記憶することが可能となる。
【0006】
第2の発明は、第1の発明において、
前記判定手段は、前記記憶すべき画像を複数の画素からなる画像単位であるブロックに分割し、各ブロックにつき当該ブロックが前記所定パターンの少なくとも一部を含むか否かを判定し、
前記記憶制御手段は、前記記憶すべき画像におけるブロックのうち前記所定パターンの少なくとも一部を含むブロックである対象ブロックに対してのみ、当該対象ブロックを構成する各画素を表す画素データを前記記憶手段に記憶させることを特徴とする。
【0007】
このような第2の発明によれば、各ブロックのうち検査すべき所定パターンの少なくとも一部を含むブロックに対してのみ、そのブロックを構成する画素を表す画素データが記憶されるので、パターン検査のために記憶すべき画像のためのメモリ容量が低減され、また、必要なメモリ容量の増大を抑えつつ、検査すべきパターンを含む部分のみにつき詳細な画像を記憶することが可能となる。
【0008】
第3の発明は、第2の発明において、
前記判定手段は、前記記憶すべき画像の各対象ブロックにつき、当該対象ブロックの属性を検出して属性情報を出力する属性検出手段を含み、
前記記憶制御手段は、前記記憶すべき画像における各対象ブロックを構成する各画素を表す画素データを当該対象ブロックの前記属性情報と共に前記記憶手段に記憶させることを特徴とする。
【0009】
このような第3発明によれば、検査すべき所定パターンの少なくとも一部を含むブロック毎に記憶されている属性情報を利用することにより、検査対象物の各部分に応じた適切な態様(例えば適切な検査感度)で所定パターンを検査することができる。
【0010】
第4の発明は、第3の発明において、
前記所定パターンの連続領域のそれぞれの面積を算出する面積算出手段と、
前記記憶すべき画像の各対象ブロックにつき、当該対象ブロックに少なくとも一部が含まれる前記連続領域の面積に応じて前記所定パターンの検査感度を設定する検査感度設定手段と、
前記記憶手段に記憶された前記画素データに基づき、各対象ブロックにつき設定された前記検査感度に応じて、前記所定パターンにおける欠陥を対象ブロック毎に検出する欠陥検出手段とを更に備えることを特徴とする。
【0011】
このような第4の発明によれば、検査すべき所定パターンの連続領域の面積に応じて検査感度がブロック毎に設定されるので、検査対象物の各部分に応じた適切な感度(検査の重要度に応じた適切な検査感度)で所定パターンにおける欠陥を検出することができる。
【0012】
第5の発明は、第2の発明において、
前記撮影画像である被検査画像と前記所定パターンを表す基準とすべき参照画像とを比較することにより前記所定パターンにおける欠陥を検出する欠陥検出手段を更に備え、
前記判定手段は、前記参照画像を前記記憶すべき画像として、前記参照画像の各ブロックにつき当該ブロックが前記所定パターンの少なくとも一部を含むか否かを判定し、
前記記憶制御手段は、前記参照画像のブロックのうち前記所定パターンの少なくとも一部を含むブロックである対象ブロックに対してのみ、当該対象ブロックを構成する各画素を表す画素データを前記記憶手段に記憶させ、
前記欠陥検出手段は、前記被検査画像の画素データと前記記憶手段に記憶された前記参照画像の画素データとを画素毎に比較する比較照合手段を含むことを特徴とする。
【0013】
このような第5の発明によれば、参照画像の各ブロックのうち検査すべき所定パターンの少なくとも一部を含むブロックに対してのみ、そのブロックを構成する画素を表す画素データが記憶されるので、比較法によるパターン検査のために記憶すべき参照画像のためのメモリ容量が低減され、また、必要なメモリ容量の増大を抑えつつ、検査すべきパターンを含む部分のみにつき詳細な参照画像を記憶することが可能となる。
【0014】
第6の発明は、第2の発明において、
前記撮影画像である被検査画像において前記所定パターンを構成する画素である対象画素の平均値である平均濃度と当該対象画素のそれぞれの値との差に基づき、前記所定パターンにおける欠陥を検出する欠陥検出手段を更に備え、
前記判定手段は、前記被検査画像を前記記憶すべき画像として、前記被検査画像の各ブロックにつき当該ブロックが前記所定パターンの少なくとも一部を含むか否かを判定し、
前記記憶制御手段は、前記被検査画像のブロックのうち前記所定パターンの少なくとも一部を含むブロックである対象ブロックに対してのみ、当該対象ブロックを構成する各画素を表す画素データを前記記憶手段に記憶させ、
前記欠陥検出手段は、
前記記憶手段に記憶された前記画素データに基づき、前記被検査画像の各対象ブロックにおいて前記所定パターンを構成する画素についての平均値を前記平均濃度として対象ブロック毎に算出する平均濃度算出手段と、
前記記憶手段に記憶された前記画素データに基づき、前記被検査画像の各対象ブロックにおいて前記所定パターンを構成する各画素の値と当該対象ブロックにつき算出された前記平均濃度との差を算出し、当該差に基づき前記所定パターンにおける欠陥の有無を対象ブロック毎に判定する欠陥判定手段と
を含むことを特徴とする。
【0015】
このような第6の発明によれば、被検査画像の各ブロックのうち検査すべき所定パターンの少なくとも一部を含むブロックに対してのみ、そのブロックを構成する画素を表す画素データが記憶されるので、相対濃度法(詳細は後述)によるパターン検査のために記憶すべき被検査画像のためのメモリ容量が低減され、また、必要なメモリ容量の増大を抑えつつ、検査すべきパターンを含む部分のみにつき詳細な被検査画像を記憶することが可能となる。
【0016】
第7の発明は、第4から第6の発明のいずれかにおいて、
前記検査対象物はプリント基板であり、
前記所定パターンは前記プリント基板上に形成された金メッキのパターンであることを特徴とする。
【0017】
このような第7の発明によれば、例えば出荷段階のプリント基板の外観検査においてワイヤボンディング接続等のための金メッキのパターンにおける欠陥の有無を検出する際に、参照画像または被検査画像を記憶するためのメモリ容量を低減することができる。この場合、検査すべき金メッキ部の面積がプリント基板全体の面積に占める割合は小さいので、メモリ容量の低減について大きな効果が得られる。
【0018】
第8の発明は、所定パターンが形成された検査対象物の撮像画像に基づき当該所定パターンを検査するパターン検査方法であって、
前記所定パターンの検査のために記憶すべき画像を、画素を最下位の画像単位として階層的に所定の画像単位に分割し、上位の階層における画像単位から順に、各画像単位につき当該画像単位が前記所定パターンの少なくとも一部を含むか否かを判定する判定ステップと、
前記判定ステップでの判定結果に基づき、最下位よりも上位の階層における画像単位のうち前記所定パターンの少なくとも一部を含む画像単位である対象画像単位に対してのみ、当該対象画像単位を構成する下位の階層の画像単位を表すデータを当該対象画像単位の位置情報と共に所定の記憶手段に記憶する記憶ステップと
を備えることを特徴とする。
【0019】
【発明の実施の形態】
以下、本発明の実施形態につき添付図面を参照して説明する。
<1.第1の実施形態>
まず、本発明の第1の実施形態に係るパターン検査装置について説明する。このパターン検査装置は、出荷段階におけるプリント基板の外観検査のための装置であって、ワイヤボンディング接続等のためにプリント基板上に形成された金メッキのパターンにおける欠陥の有無を比較法により検査する。この検査は、プリント基板の製造工程が終了した後すなわちソルダレジスト(はんだレジスト)がプリント基板に塗布された後における金メッキのパターンを検査対象パターンとするため、検査対象物であるプリント基板の全面積に対し検査対象パターンの面積の占める割合が小さい。本実施形態は、この点に着目し、比較法によるパターン検査に使用される参照画像の記憶に必要なメモリ容量の低減を図っている。なお、本実施形態における参照画像および被検査画像は多値画像であっても2値画像であってもよいが、以下ではこれらは多値画像であるものとして説明する。
【0020】
<1.1 パターン検査装置の構成>
図1は、本実施形態に係るパターン検査装置の機能的構成を示すブロック図である。このパターン検査装置は、ラインCCDを有する撮像装置14と、検査対象物としてのプリント基板12が載置される移動ステージ10とを備えている。撮像装置14は、ラインCCDの長手方向を主走査方向とし移動ステージ10の移動方向を副走査方向として、移動ステージ10によってプリント基板12を移動させつつプリント基板12を撮像する。これにより撮像装置14からプリント基板12の撮像画像を示す信号Dvがパターン検査装置の本体に入力される。パターン検査装置の本体は、切換スイッチ16と、格納判定処理部18と、参照画像記憶部20と、格納データ展開部22と、比較照合部24と、欠陥判定部26と、モニタ表示部28とを備えている。
【0021】
上記構成のパターン検査装置では、まず、良品のプリント基板(以下「参照基板」という)12が撮像され、その撮像画像の信号Dvが切換スイッチ16によって格納判定処理部18に入力される。格納判定処理部18は、間引き画像としての参照画像において金メッキ部を検出し、その検出結果に基づき金メッキのパターンを示す画素データのみを後述のブロックを単位として参照画像記憶部20に格納する。これにより参照画像が記憶される。次に、検査対象物であるプリント基板12が撮像され、その撮像画像の信号Dvが、被検査画像を表すデータとして切換スイッチ16により比較照合部24に画素単位で入力される。このとき、格納データ展開部22は、参照画像記憶部20から参照画像のデータを読み出し、被検査画像データの比較照合部24への画素単位での順次入力に同期して、位置的に対応する参照画像のデータを画素単位で比較照合部24に順次入力する。比較照合部24は、このようにして入力される被検査画像のデータと参照画像のデータとを画素毎に比較し、両画像の差分に相当するデータである差分マップデータを出力する。欠陥判定部26は、所定の閾値を用いて差分マップデータを2値化することにより欠陥を検出する。モニタ表示部28は、このようにして検出された欠陥を、その位置および形状が認識できるように表示する。
【0022】
図2は、本実施形態に係るパターン検査装置のハードウェア構成を示すブロック図である(ただし、移動ステージ10については省略)。このパターン検査装置は、既述のように、撮像装置14および移動ステージ10と検査装置本体とからなる。検査装置本体は、主・副走査アドレス管理部30と、バッファメモリ32と、参照画像記憶部としての画像メモリ20と、格納データ展開部としての比較制御部22と、既述の比較照合部24と、コンピュータ40とを備え、これらはシステムバス100によって互いにデータ転送可能に接続されている。撮像装置14から出力される画像信号Dvは、バッファメモリ32および比較照合部24に入力される。また、撮像装置14および移動ステージ10は、所定プログラムに基づきコンピュータ42内のCPU42から出力される制御信号Sc1およびSc2によってそれぞれ制御される。
【0023】
主・副走査アドレス管理部30は、撮像装置14および移動ステージ10から、撮像画像の原点を示す基準位置信号Srefと、撮像装置14から装置本体に順次入力される画像信号Dvの示す画素(以下「入力画素」という)の主走査方向における位置を示す画像クロック信号Saと、その入力画素の副査方向における位置を示すエンコーダ信号Sbとを受け取り、これらの信号に基づき、撮像画像の全領域における入力画素の位置を示す信号(以下「画素アドレス信号」という)Sadを出力する。この画素アドレスSadは、バッファメモリ32および比較照合部24に入力される。
【0024】
バッファメモリ32は、撮像装置14から入力される参照画像の信号Dvを画素データとして、画素アドレス信号Sadに応じた番地に一時的に格納する。コンピュータ40は、中央処理装置としてのCPU42と、主記憶としてのメモリ(以下「メインメモリ」という)44と、モニタ表示部28としての表示装置(図示せず)と、キーボードやマウス等の入力操作装置(図示せず)とを備えており、メインメモリ44に格納される所定のプログラムをCPU42が実行することにより、格納判定処理部18および欠陥判定部26をソフトウェア的に実現する。
【0025】
参照画像記憶部としての画像メモリ20には、参照基板の撮像画像である参照画像を示す信号Dvが撮像装置14から装置本体に入力されているとき、格納判定処理部18としてのコンピュータ40により、その参照画像における金メッキのパターンを示す画素データのみが後述のブロックを単位として格納される。
【0026】
格納データ展開部としての比較制御部22は、検査対象物としてのプリント基板の撮影画像である被検査画像を示す信号Dvが撮像装置14から装置本体に入力されているときに、主・副走査アドレス管理部30からの画素アドレス信号Sadに対応する画素を含むブロックについての参照画像の画素データBdrを、画像メモリ20から読み出す。そして、比較照合部24への被検査画像の画素データの順次入力に同期して、位置的に対応する参照画像の画素のデータDrを順次比較照合部24に入力する。
【0027】
比較照合部24は、このようにして入力される被検査画像のデータと参照画像のデータとを画素毎に比較し、両画像の差分に相当するデータである差分マップデータを出力する。この差分マップデータは、欠陥判定部26としてのコンピュータ40に入力される。
【0028】
<1.2 パターン検査のための処理>
図3は、上記のように構成された本実施形態に係るパターン検査装置による処理手順(メインルーチン)を示すフローチャートである。このフローチャートにおいて、ステップS10〜S16は、所定プログラムに基づきCPU42によって実行され、これにより格納判定処理部18が実現される。ステップS18は、CPU42による制御の下、比較制御部22および比較照合部24によって実行される。ステップS20はCPU42によって実行され、これにより欠陥判定部26が実現される。ステップS22は、CPU42による制御の下、表示装置(モニタ表示部)によって実行される。なお、本実施形態では比較制御部22および比較照合部24は専用ハードウェアとして実現されているが、これらもCPU42によってソフトウェア的に実現してもよい。
【0029】
本実施形態においてCPU42は、上記のハードウェア構成の下で、パターン検査のための所定プログラムに基づき下記のように動作する。
【0030】
まず、CPU42は、参照画像において金メッキのパターンを検出するための閾値(以下「金メッキ検出閾値」または単に「閾値」という)を決定するために、図4に示すような閾値決定処理を実行する(ステップS10)。この閾値決定処理では、まず、撮像装置14に参照基板を撮像させ、それによって得られる参照画像の間引き画像を表すデータ(以下「間引き画像データ」という)をバッファメモリ32に格納し、その間引き画像データから濃度ヒストグラムを生成する(ステップS102)。ところで、プリント基板の撮影画像では、ベース部(基材部)やソルダレジスト部の画像濃度は低く、金メッキ部の画像濃度は高くなる。したがって、ここで生成される濃度ヒストグラムは、図5に示すように、ベース部に対するピークp1と金メッキ部に対応するピークp2とを有する双峰性ヒストグラムとなる。そこで、この双峰性ヒストグラムにおける谷t1に対応する濃度を、金メッキ検出閾値Thとする(ステップS104)。この閾値Thによって上記の間引き画像を2値化することにより、間引き画像(参照画像)において金メッキ部を容易に検出することができる。このような閾値Thの決定後は、その閾値Thの確認のために、間引き画像をコンピュータ40の表示装置(図示せず)に表示する(ステップS106)。また、この表示を見た操作者が閾値Thの変更のための操作をした場合には、その操作に応じて閾値Thを変更する。その後、閾値決定処理を終了し、図3に示したメインルーチンに復帰する。
【0031】
次にCPU42は、図6に示す金メッキ部検出処理を実行する(ステップS12)。この金メッキ部検出処理では、まず、上記の金メッキ部検出閾値Thで参照画像である間引き画像を2値化することにより、2値化画像を生成する(ステップS122)。この2値化画像では、間引き画像のうち値が閾値Th以上である画素(このような画素は金メッキのパターンを構成すると見なすことができる)の値は“1”となり、それ以外の画素の値は“0”となる。次に、この2値化画像を、複数画素からなる画像単位であるブロックに分割し、値が“1”である画素を含む各ブロックにつき、そのブロックの位置を示すブロックアドレスBadを画像メモリ20に格納する(ステップS124)。例えば、図9(a)に示すようなハンダレジスト部と基材部と金メッキ部とを有するプリント基板の間引き画像を7×7個のブロックに分割するものとすると、第2行第E列、第2行第F列、第3行第E列、第3行第F列、第5行第E列、第5行F列、第6行第E列、第6行第F列の各ブロックが金メッキのパターンgp1またはgp2(の一部)を含んでいるので、これらのブロックの位置を示すブロックアドレスが、画像メモリ20内に予め領域の確保された配列ABadに順に格納される。すなわち図9(b)に示すように、ABad[0]=“E2”、ABad[1]=“F2”、ABad[2]=“E3”、ABad[3]=“F3”、ABad[4]=“E5”、ABad[5]=“F5”、ABad[6]=“E6”、ABad[7]=“F6”となる。ここで、第j行第E列のブロックアドレスは“Ej”と表記し、第j行第F列のブロックアドレスは“Fj”と表記するものとする(j=1〜7)。また、以下において、ブロックアドレスが“Xj”であるブロックを「ブロックXj」と表記するものとする(X=A〜G、j=1〜7)。このようにして金メッキのパターンを含むブロックが検出されて、それらのブロックアドレスが格納されると、金メッキ部検出処理を終了し、図3に示したメインルーチンに復帰する。
【0032】
次にCPU42は、図7に示す検査感度設定処理を実行する(ステップS14)。この検査感度設定処理では、まず、上記の2値化画像より、値が“1”の画素からなる連続領域すなわち閉図形を抽出し、各閉図形の面積を算出する(ステップS142)。次に、間引き画像において閾値Th以上の画素を含むブロックすなわち2値化画像において値が“1”の画素を含むブロック(これは金メッキのパターンを含むブロックであり、以下「対象ブロック」という)のいずれかに注目し(ステップS144)、注目対象ブロックにつき閾値Th以上の画素が属する閉図形を求める(ステップS146)。そして、注目対象ブロックが複数の閉図形を含む場合には、注目対象ブロックにおける最小面積の閉図形を求める(ステップS148,S150)。その後、注目対象ブロックに対し、それに含まれる閉図形の面積(複数の閉図形が含まれる場合にはそれらの面積の最小値)に応じて検査感度を設定する(ステップS152)。図9(a)に示した例では、ブロックE2、F2、E3、F3、E5、F5、E6、F6が対象ブロックであり、これらのうちいずれかを注目対象ブロックとし、その注目対象ブロックについて検査感度を設定する。注目対象ブロックについての検査感度の設定は、具体的には、画像メモリ20内に予め領域の確保された配列ATsenの要素のうち注目対象ブロックに対応する配列要素に、検査感度を示す値(「高」または「低」)を格納することにより行う(図9(b)参照)。
【0033】
一般に、出荷段階のプリント基板において金メッキ等の導体部が露出しているのは、次の3種類の部分である。
(1)端子として接続する部分。
(2)シールド用のGNDパターン(接地部のパターン)の部分。
(3)後工程で使用されるアライメント用パターン(「トンボマーク」と呼ばれる)の部分。
これらのうち(2)の部分は連続する面積が極めて大きく、(1)や(3)の部分の面積は大きくはない。一方、検査の重要度については(1)の部分が最も高く、(2)の部分は、大きな欠陥以外は問題とならないので検査の重要度が比較的低く、(3)の部分も、アライメントできれば問題とならないので検査の重要度は比較的低い。したがって、(1)の部分の検査の感度は高く設定すべきであるが、(2)および(3)の部分の検査の感度は低くてもよい。ところで、(1)の部分と(2)の部分とは面積によって区別することができる。また、(1)の部分と(3)の部分とは面積で区別するのは困難であるが、(3)の部分の数は多くはないので、仮に誤った感度を設定したとしても、後で操作者がその感度を容易に修正することができる。よって、面積の小さい閉図形に相当する金メッキ部については高い感度で検査し、面積の大きい閉図形に相当する金メッキ部については低い感度で検査すべきである。例えば感度を「高」、「中」、「低」の3段階に分ける場合には、それらの感度を、例えば「30画素以下」、「80画素以下」、「200画素以上」というように面積に対応させるとよい。
【0034】
本実施形態では、検査感度を「高」と「低」との2段階に分け、検査感度を、30個以下の画素からなる金メッキのパターン(閉図形)を含む対象ブロックについては「高」とし、30個を越える画素からなる金メッキのパターン(閉図形)を含む対象ブロックについては「低」としている。したがって、図9(a)に示したプリント基板については、各ブロックが4×4画素からなるものとすると(図9(b)参照)、ブロックE2、F2、E3、F3は20画素からなる金メッキのパターンgp1(の一部)を含むので、それらのブロックの検査感度は「高」となり、ブロックE5、F5、E6、F6は36画素からなる金メッキのパターンgp2(の一部)を含むので、それらのブロックの検査感度は「低」となる。
【0035】
上記のようにして決定される検査感度が注目対象ブロックについて設定されると、次に、未注目の対象ブロックが残っているか否か判定し(ステップS154)、未注目の対象ブロックが残っていれば、それらのいずれかの対象ブロックに注目し(ステップS156)、ステップS148へ戻る。以降、未注目の対象ブロックが無くなるまでステップS148〜S156を繰り返し実行し、未注目の対象ブロックが無くなれば、検査感度設定処理を終了し、図3に示したメインルーチンに復帰する。この時点では、図9(a)に示したプリント基板について、各対象ブロックの属性情報として、各対象ブロックの検査感度が配列ATsenに図9(b)示すように格納されている。
【0036】
次にCPU42は、図8に示す参照画像格納処理を実行する(ステップS16)。この参照画像格納処理では、まず、撮像装置14に参照基板を再び撮像させ、それによって得られる参照画像を既述の間引き画像の分割と同一の態様で複数のブロックに分割し(図9(a)参照)、参照画像の画素データを1ブロック行分ずつ撮像装置14から入力して、バッファメモリ32に一時的に格納する(ステップS162)。1ブロック行分の画素データがバッファメモリ32に格納されると(以下、バッファメモリ32に画素データの格納されたブロック行を「該当ブロック行」という)、該当ブロック行に含まれる対象ブロックの画素データを、当該対象ブロックにつき既に記憶されているブロックアドレスおよび検査感度と対応付けて画像メモリ20に格納する(ステップS164)。具体的には、図9(b)示すように全ての対象ブロックのブロックアドレスが走査順に配列ABadに格納されているので、配列ABadに格納されたブロックアドレスを先頭から順に参照して、主・副走査アドレス管理部30から出力される該当ブロック行についての画素アドレス信号Sadに基づき、該当ブロック行が対象ブロックを含むか否かを判定する。そして、その判定結果に基づき、該当ブロック行に含まれる対象ブロックの画素データをバッファメモリ32から画像メモリ20に転送してそこに格納し、画像メモリ20内に予め領域の確保された配列APtrの各要素のうちその対象ブロックに対応する配列要素に、画像メモリ20内のそれら画素データを指すポインタを格納する(図9(b)参照)。その後、参照画像の全ての画素データ(全てのブロック行の画素データ)が撮像装置14から入力されたか否かを判定し(ステップS166)、参照画像の全ての画素データが入力されていない場合にはステップS162へ戻る。以降、参照画像の全ての画素データが入力されるまでステップS162〜S166を繰り返し実行する。そして、参照画像の全ての画素データが入力されて全ての対象ブロックの画素データが図9(b)に示すようなデータ構造で画像メモリ20に格納されると、参照画像格納処理を終了し、図3に示したメインルーチンに復帰する。
【0037】
以上により、CPU42によってソフトウェア的に実現される格納判定処理部18の動作(ステップS12〜S16)が終了する。
【0038】
その後は、下記のようにして比較照合処理が実行される(ステップS18)。まずCPU42が、検査対象物としてのプリント基板を撮像装置14に撮像させ、それにより得られる被検査画像を表す画像信号Dvを出力させる。この画像信号Dvは、ハードウェアとして実現された比較照合部24に入力される。これにより、プリント基板12の撮像のための走査に従って被検査画像の画素データが比較照合部24に順次入力される。このとき、主・副走査アドレス管理部30は、撮像装置14から順次入力される画素データに対応する画素アドレス信号Sadを出力し、この画素アドレス信号Sadは比較制御部22に入力される。比較制御部22は、この画素アドレス信号Sadに基づき、図9(b)に示したような配列ABadおよびAPtrを参照して、その画素アドレス信号Sadに対応する画素を含むブロックについての参照画像の画素データBdrを、そのブロックのブロックアドレスBadと共に画像メモリ20から読み出す。そして、比較照合部24への被検査画像の画素データの順次入力に同期して、位置的に対応する参照画像の画素データDrを比較照合部24に順次入力する。比較照合部24は、このようにして入力される被検査画像のデータと参照画像のデータとを画素毎に比較し、両画像の差分に相当するデータである差分マップデータを出力する。
【0039】
なお、本実施形態では、各対象ブロックのブロックアドレスがプリント基板の撮像のための走査順に配列ABadに格納されているので(図9(b)参照)、比較制御部22は、主・副走査アドレス管理部30からの画素アドレス信号Sadに対応する画素を含むブロックについての参照画像の画素データBdrを効率よく読み出すことができる。したがって、各対象ブロックのブロックアドレスが走査順に配列ABadに格納されていない場合には、各対象ブロックのブロックアドレスの格納後に、配列ABadにおけるブロックアドレスを走査順となるようにソーティングしておくのが好ましい。また、上記において、主・副走査アドレス管理部30からの画素アドレス信号Sadに対応する画素を含むブロックが対象ブロックでない場合(金メッキのパターンを含まないブロックの場合)には、参照画像のそのブロックの画素データは画像メモリ20には格納されていない。この場合、比較制御22は、所定の特殊な画素データDrを出力し、比較照合部24は、そのような画素については、比較制御部22からの特殊な画素データDrに基づき、実質的に比較を行わずに両画像の差分値として“0”を出力する。これは、対象ブロック以外のブロックについては被検査画像と参照画像との間に差異がないと見なすことを意味する。
【0040】
上記の比較照合処理が終了すると、CPU42は、対象ブロック毎に配列ATsenに設定された検査感度に応じた閾値を用いて差分マップデータを2値化することにより、欠陥を検出する(ステップS20)。ここで、使用される閾値(以下「欠陥閾値」という)は、参照画像と被検査画像との間で対応する画素の値がどの程度相違すれば欠陥と見なすか否かを決める値であり、検査感度として「高」が設定されている対象ブロックには小さい欠陥閾値が使用され、検査感度として「低」が設定されている対象ブロックには大きい欠陥閾値が使用される。このような欠陥閾値に基づく欠陥検出を行った後、CPU42は、検出された欠陥を、その位置および形状が認識できるように表示装置(図示せず)に表示させる(ステップS22)。
【0041】
<1.3 効果>
上記実施形態によれば、図9(a)に示すようなプリント基板における金メッキのパターンを比較法によって検査する際に、その検査に使用される参照画像は、図9(b)に示すようなデータ構造に従って記憶される。すなわち、参照画像が複数画素からなる画像単位であるブロックに分割され、それらのブロックのうち検査すべきパターンである金メッキのパターンを含むブロック(対象ブロック)のみにつき画素データが記憶される。したがって、参照画像の記憶に必要なメモリ容量を低減することができる。特に、出荷段階のプリント基板の外観検査の場合には、検査すべき金メッキ部の面積は全面積の10%程度であるのが一般的であって、金メッキ部の面積の占める割合が小さいので、メモリ容量の低減の効果は大きなものとなる。本願発明者が実際のプリント基板について調べたところ、上記実施形態において参照画像の記憶に必要なメモリ容量は、平均で、参照画像の全画素データを記憶するためのメモリ容量の約12%程度となること、すなわち必要なメモリ容量が約1/8程度に低減されることを確認している。
【0042】
また、上記実施形態によれば、必要なメモリ容量の増大を抑えつつ、参照画像のうち検査すべき金メッキのパターンの存在する部分のみにつき詳細な画像を記憶することが可能となる。
【0043】
さらに、上記実施形態によれば、対象ブロック毎にブロックの属性情報として検査感度が設定されており(図9(b)参照)、対象ブロック毎に検査感度を変えて金メッキのパターンを検査することができる。これにより、端子として接続する部分を構成する金メッキ部のように検査の重要度の高い箇所については高い感度で検査し、シールド用のGNDパターンのように検査の重要度が比較的低い箇所では低い感度で検査するというように、検査の重要度に応じて適切な感度でパターン検査を行うことが容易となる。
【0044】
<1.4 第1の実施形態の変形例>
上記実施形態では、参照基板を撮像のために撮像装置14および移動ステージ10によって2回走査し、1回目の走査(撮像)によって得られる間引き画像に基づき、金メッキ検出閾値Thの決定、金メッキのパターンを含むブロックである対象ブロックの検出、および検査感度の設定を行い、2回目の走査(撮像)によって得られる参照画像を図9(b)に示すようなデータ構造で効率よく画像メモリ20に記憶している。しかし、場合によっては、参照基板を1回走査するのみで、同様のデータ構造で効率よく参照画像を記憶することも可能である。例えば、上記実施形態では検査感度を対象ブロック毎に設定するために金メッキ部に相当する各閉図形の面積を求めているが(図7のステップS142)、このような閉図形の面積の算出を行わない場合には、閾値決定処理、金メッキ部検出処理、および検査感度設定処理(図3のステップS10〜S16)に代えて、図10に示す格納判定処理により格納判定処理部18を実現することができる。この格納判定処理では、CPU42は所定プログラムに基づき下記のように動作する。
【0045】
まず、参照基板を撮像装置14に撮像させ、それによって得られる参照画像を表す画素データを1ブロック行分ずつ撮像装置14から入力して、バッファメモリ32に一時的に格納する(ステップS171)。1ブロック行分の画素データがバッファメモリ32に格納されると(以下、バッファメモリ32に画素データの格納されたブロック行を「入力ブロック行」という)、入力ブロック行における先頭のブロックに注目し(ステップS172)、注目ブロックが所定の閾値以上の画素を含むか否かにより、金メッキのパターンを含むか否かを判定する(ステップS174)。ここで使用する閾値は、予め、プリント基板の代表部分の画像を取り込んで、図5に示す濃度ヒストグラムと同様の濃度ヒストグラムを作成し、その濃度ヒストグラムに基づき決定される。
【0046】
上記判定の結果、注目ブロックが金メッキのパターンを含む場合には、注目ブロックを構成する画素のデータを、その注目ブロックのブロックアドレスと対応付けて画像メモリ20に格納する(ステップS175)。このとき、画像メモリ20に格納された注目ブロックの画素データを指すポインタを、図9(b)に示すように配列APtrに格納する。その後、ステップS176へ進む。上記判定の結果、注目ブロックが金メッキのパターンを含まない場合には、注目ブロックの画素データを画像メモリ20に格納することなく、ステップS176へ進む。
【0047】
ステップS176では、入力ブロック行に未注目のブロックが残っているか否かを判定する。その判定の結果、未注目のブロックが残っていれば、入力ブロック行における現時点の注目ブロックの次のブロックである未注目ブロックに注目し(ステップS177)、ステップS173へ戻る。そして、入力ブロック行において未注目のブロックが無くなるまでステップS173〜S177を繰り返し実行し、未注目のブロックが無くなればステップS178へ進む。
【0048】
ステップS178では、参照画像の全ての画素データ(全てのブロック行の画素データ)が撮像装置14から入力されたか否かを判定し、参照画像の全ての画素データが入力されていない場合にはステップS171へ戻る。以降、参照画像の全ての画素データが入力されるまでステップS171〜S178を繰り返し実行する。そして、参照画像の全ての画素データが入力されて、金メッキのパターンを含む全てのブロックの画素データが図9(b)に示すようなデータ構造(ただし、配列ATsenは除外されているものとする)で画像メモリ20に格納されると、格納判定処理を終了し、図3に示したメインルーチンに復帰する。
【0049】
以後は、上記実施形態と同様の処理(ステップS18〜S22)により、金メッキ部における欠陥検出が行われ、検出された欠陥が表示される。
【0050】
以上の説明からわかるように、上記格納判定処理によって格納判定処理部18を実現する場合であっても、参照画像の記憶に必要なメモリ容量を低減することができ、また、必要なメモリ容量の増大を抑えつつ、参照画像のうち検査すべき金メッキのパターンの存在する部分のみにつき詳細な画像を記憶することが可能になる。
【0051】
<2.第2の実施形態>
次に、本発明の第2の実施形態に係るパターン検査装置について説明する。このパターン検査装置も、出荷段階におけるプリント基板の外観検査のための装置であって、ワイヤボンディング接続等のためにプリント基板上に形成された金メッキのパターンにおける欠陥の有無を検査するが、比較法に基づき検査を行う第1の実施形態とは異なり、特開平2000−258353号公報等で開示された欠陥検査方法に基づき検査を行う。同公報に開示された欠陥検査方法は、検査対象物の撮像画像から得られる各画素毎の濃度データに基づいて上記検査対象物の欠陥を検査する欠陥検査方法であって、全濃度データを局所領域に分割し、画素単位の濃度データが上記局所領域内の平均濃度から大きくかけ離れている場合にその画素を欠陥画素であると判断することを特徴としている(以下、このような欠陥検査方法を「相対濃度法」という)。なお、以下では、本実施形態に係るパターン検査装置の構成要素のうち第1の実施形態における構成要素と同一のものについては、同一の参照符号を付して詳しい説明を省略する。
【0052】
<2.1 パターン検査装置の構成>
図11は、本実施形態に係るパターン検査装置の機能的構成を示すブロック図である。このパターン検査装置は、第1の実施形態と同様の構成の撮像装置14および移動ステージ10を備えており、これらによってプリント基板12が撮像され、それによって得られる撮像画像を示す信号Dvが撮像装置14からパターン検査装置の本体に入力される。パターン検査装置の本体は、格納判定処理部58と、被検査画像記憶部60と、格納データ展開部62と、平均濃度算出部64と、欠陥判定部66と、モニタ表示部68とを備えている。
【0053】
上記構成のパターン検査装置では、検査対象物であるプリント基板12が撮像され、その撮像によって得られる被検査画像の信号Dvが撮像装置14から格納判定処理部58に入力される。格納判定処理部58は、被検査画像において金メッキ部を検出し、その検出結果に基づき金メッキのパターンを示す画素データのみをブロックを単位として被検査画像記憶部60に格納する。これにより被検査画像が記憶される。次に、格納データ展開部62が、被検査画像記憶部60から被検査画像の画素データを読み出し、この被検査画像の画素データに基づいて、平均濃度算出部64が、ブロック毎に金メッキのパターンの平均濃度を算出する。その後、格納データ展開部62が、再び被検査画像記憶部60から被検査画像の画素データをブロック単位で読み出し、このブロック単位の被検査画像の画素データとブロック毎に算出された金メッキのパターンの上記平均濃度とに基づき、欠陥判定部66がブロック毎に欠陥の有無を判定する。モニタ表示部68は、このようにして検出された欠陥を表示する。
【0054】
図12は、本実施形態に係るパターン検査装置のハードウェア構成を示すブロック図である(ただし、移動ステージ10については省略)。このパターン検査装置は、既述の撮像装置14および移動ステージ10と検査装置本体とからなる。検査装置本体は、主・副走査アドレス管理部30と、バッファメモリ32と、被検査画像記憶部としての画像メモリ60と、コンピュータ40とを備え、これらはシステムバス100によって互いにデータ転送可能に接続されており、撮像装置14から出力される画像信号Dvはバッファメモリ32に入力される。また、撮像装置14および移動ステージ10は、所定プログラムに基づきコンピュータ40内のCPU42から出力される制御信号Sc1およびSc2によってそれぞれ制御される。
【0055】
主・副走査アドレス管理部30は、第1の実施形態と同様にして、撮像画像である被検査画像の全領域における入力画素の位置を示す画素アドレス信号Sadを出力する。この画素アドレス信号Sadはバッファメモリ32に入力される。
【0056】
バッファメモリ32は、撮像装置14から入力される被検査画像の信号Dvを画素データとして、画素アドレス信号Sadに応じた番地に一時的に格納する。
【0057】
コンピュータ40は、第1の実施形態と同様、CPU42と、メインメモリ44と、モニタ表示部68としての表示装置(図示せず)と、キーボードやマウス等の入力操作装置(図示せず)とを備えており、メインメモリ44に格納される所定のプログラムをCPU42が実行することにより、格納判定処理部58、格納データ展開部62、平均濃度算出部64、および欠陥判定部66をソフトウェア的に実現する。
【0058】
<2.2 パターン検査のための処理>
図13は、上記のように構成された本実施形態に係るパターン検査装置による処理手順(メインルーチン)を示すフローチャートである。CPU42がこのフローチャートの各ステップを実行することにより、図11に示した各部すなわちパターン検査装置の各機能単位が実現される。ここで、格納判定処理部58はステップS50〜S56によって実現され、平均濃度算出部64と格納データ展開部62のうち平均濃度算出部64に関係する部分とは、ステップS58によって実現され、欠陥判定部66と格納データ展開部62のうち欠陥判定部66に関係する部分とは、ステップS60によって実現される。
【0059】
図13のフローチャートにおけるステップS50〜S56は、参照画像を被検査画像に置き換えれば、第1の実施形態についての図3のフローチャートにおけるステップS10〜S16と同一であるので、これらのステップS50〜S56の説明を省略する。
【0060】
CPU42が上記ステップS50〜S56の実行を終了した時点では、被検査画像のブロックのうち金メッキのパターンを含むブロックである対象ブロックの画素データのみが、図15に示すようなデータ構造で画像メモリ60に格納されている。ただし、図9(a)に示すようなプリント基板を検査対象物とし、その撮像画像である被検査画像は、7×7個のブロックに分割されるものとする。なお、この時点では、配列Adenに値は未だ設定されていない。
【0061】
本実施形態では、CPU42は、上記ステップS50〜S56の実行後、図14に示す平均濃度算出処理を実行する。この平均濃度算出処理では、まず、いずれかの対象ブロックに注目する(ステップS282)。通常は、配列APtrの先頭に格納されたポインタの指す画素データ群に対応する対象ブロックに注目する。例えば図15に示した例では、ポインタAPtr[0]の指す画素データ群に対応する対象ブロックE2に注目する。次に、注目対象ブロックの画素のうち閾値決定処理(ステップS50)で得られた金メッキ検出閾値Th以上の画素の平均値を算出する(ステップS284)。次に、この平均値を、注目対象ブロックにおいて金メッキのパターンを構成する画素の平均濃度値(以下「金メッキ部ブロック平均濃度」という)として画像メモリ60に格納する(ステップS286)。図15に示した例では、注目対象ブロックがブロックE2のとき、ポインタAPtr[0]の指す画素データ群のうち金メッキ検出閾値Th以上の画素データの平均値den0を、ブロックE2の属性情報として、画像メモリ60内に予め領域の確保された配列Adenの先頭に格納する。
【0062】
このようにして注目対象ブロックについて金メッキ部ブロック平均濃度が配列Adenに格納されると、次に、未注目の対象ブロックが残っているか否かを判定する(ステップS288)。この判定の結果、未注目の対象ブロックが残っていれば、未注目の対象ブロックのいずれかに注目し(ステップS290)、ステップS284へ戻る。通常は、配列APtrにおいて現時点の注目対象ブロックを指すポインタの次のポインタが指す対象ブロックが、次の注目対象ブロックとなる。
【0063】
以降、未注目の対象ブロックが無くなるまでステップS284〜S290を繰り返し実行し、未注目の対象ブロックが無くなれば、平均濃度算出処理を終了し、図13に示したメインルーチンに復帰する。この時点では、図9(a)に示したプリント基板について、各対象ブロックについての金メッキ部ブロック平均濃度が配列Adenに図15に示すように格納されている。
【0064】
次にCPU42は、図16に示す欠陥判定処理を実行する(ステップS60)。この欠陥判定処理では、まず、いずれかの対象ブロックに注目する(ステップS282)。通常は、配列APtrの先頭に格納されたポインタの指す画素データ群に対応する対象ブロックに注目する。図15に示した例では、ポインタAPtr[0]の指す画素データ群に対応する対象ブロックE2に注目する。次に、注目対象ブロックの画像Aを表す画素データを、配列APtrにおける対応するポインタを参照して取得する(ステップS304)。そして、これらの画素データに基づき、注目対象ブロックの画像Aに2値化及び膨張収縮の処理を施すことにより、画像Bを得る(ステップS306)。次に、この画像Bで注目対象ブロックの画像Aをマスクすることにより画像Cを得る(ステップS308)。このようなステップS306、S308の処理により、注目対象ブロックにおける金メッキのパターンの境界部において欠陥の誤検出が生じないように、金メッキのパターンのみからなる画像Cが生成される。
【0065】
その後、配列Adenから注目対象ブロックについての金メッキ部ブロック平均濃度を取得し、その平均濃度と上記のようにして得られた画像Cの各画素値との差の絶対値を求め、それらの絶対値の最大値を欠陥度とする(ステップS310)。そして、注目対象ブロックにつき設定された検査感度を配列ATsenから取得し、その検査感度に応じて決まる閾値よりも上記欠陥度が大きいか否かにより、注目対象ブロックにおける欠陥の有無、すなわち注目対象ブロックが欠陥ブロックか否かを判定する(ステップS312)。ここで、使用される閾値(これも「欠陥閾値」という)は、上記欠陥度がどの程度大きければ「欠陥有り」と見なすか否かを決める値であり、検査感度として「高」が設定されている対象ブロックには小さい欠陥閾値が使用され、検査感度として「低」が設定されている対象ブロックには大きい欠陥閾値が使用される。
【0066】
このようにして注目対象ブロックにおける欠陥の有無が判定された後は、未注目の対象ブロックが残っているか否かを判定する(ステップS314)。この判定の結果、未注目の対象ブロックが残っていれば、未注目の対象ブロックのいずれかに注目し(ステップS316)、ステップS304へ戻る。通常は、配列APtrにおいて現時点の注目対象ブロックに対応するポインタの次のポインタに対応する対象ブロックが、次の注目対象ブロックとなる。
【0067】
以降、未注目の対象ブロックが無くなるまでステップS304〜S316を繰り返し実行し、未注目の対象ブロックが無くなれば、欠陥判定処理を終了し、図13に示したメインルーチンに復帰する。
【0068】
その後、CPU42は、上記の欠陥判定処理の結果に基づき、各ブロックにおける欠陥の有無を表示装置(図示せず)に表示させる(ステップS62)。
【0069】
<2.3 効果>
上記実施形態によれば、図9(a)に示すようなプリント基板における金メッキのパターンを相対濃度法によって検査する場合、その検査に使用される被検査画像は、図15に示すようなデータ構造に従って記憶される。これにより、被検査画像におけるブロックのうち検査すべきパターンである金メッキのパターンを含むブロック(対象ブロック)のみにつき画素データが記憶されるので、被検査画像の記憶に必要なメモリ容量を低減することができる。
【0070】
また、上記実施形態によれば、必要なメモリ容量の増大を抑えつつ、被検査画像のうち検査すべき金メッキのパターンの存在する部分のみにつき詳細な画像を記憶することが可能となる。
【0071】
さらに、上記実施形態によれば、第1の実施形態と同様、対象ブロック毎にブロックの属性情報として検査感度が設定されるので、検査箇所に応じた検査感度の設定により、検査の重要度に応じた適切な感度で相対濃度法によるパターン検査を行うことができる。
【0072】
<3.その他の実施形態および変形例>
上記各実施形態では、はんだレジスト塗布後のプリント基板における金メッキパターンが検査されるが、本発明において検査対象とするパターンは金メッキのパターンに限定されるものではなく、例えばプリント基板におけるエッチング後の銅パターンの検査にも本発明は適用可能である。また、本発明は、プリント基板以外の他の検査対象物におけるパターンの検査にも適用可能である。ただし、はんだレジスト塗布後のプリント基板における金メッキパターンのように、検査対象物の全面積に占める検査対象パターンの割合が小さい場合に、本発明は特に有効である。すなわち、このような場合のパターン検査において、画像を記憶するためのメモリ容量の低減の効果が大きなものとなる。
【0073】
また、上記各実施形態では、パターン検査のために記憶すべき画像である参照画像または被検査画像を複数画素からなる画像単位としてのブロックに分割し、参照画像または被検査画像におけるブロックのうち金メッキのパターンを含むブロックである対象ブロックのブロックアドレスを記憶すると共に、各対象ブロックの画素データを記憶している。これは、画像データを階層的に記憶することを意味する。すなわち、記憶すべき画像を階層的に所定の画像単位に分割し、上位階層から順に、各画像単位が金メッキのパターンを含んでいるか否かを調べ、金メッキのパターンを含む画像単位のみにつき、下位階層の画像単位を表すデータを記憶することを意味している。そして、上記各実施形態では、画像記憶のための階層が、ブロックを画像単位とする第1の階層(上位の階層)と画素を画像単位とする第2の階層(下位階層)との2階層からなる。しかし、これに代えて、パターン検査のために記憶すべき画像につき3つ以上の階層を設定して(ただし、最下位の階層における画像単位は常に画素である)、その画像を階層的に記憶するようにしてもよい。このようにして階層の数を増やすことにより、画像を記憶するためのメモリ容量を更に低減することができる。
【0074】
さらに、上記第1の実施形態では比較法によるパターン検査に本発明が適用され、上記第2の実施形態では相対濃度法によるパターン検査に本発明が適用されているが、本発明は、これらの検査法に限定されるものではなく、例えばDRC(Design Rule Check)法によるパターン検査にも適用可能である。
【図面の簡単な説明】
【図1】本発明の第1の実施形態に係るパターン検査装置の機能的構成を示すブロック図である。
【図2】第1の実施形態に係るパターン検査装置のハードウェア構成を示すブロック図である。
【図3】第1の実施形態におけるパターン検査の手順を示すフローチャートである。
【図4】第1の実施形態においてパターン検査のために実行される閾値決定処理を示すフローチャートである。
【図5】第1の実施形態における検査対象物の画像のヒストグラムを示す図である。
【図6】第1の実施形態においてパターン検査のために実行される金メッキ部検出処理を示すフローチャートである。
【図7】第1の実施形態においてパターン検査のために実行される検査感度設定処理を示すフローチャートである。
【図8】第1の実施形態においてパターン検査のために実行される参照画像格納処理を示すフローチャートである。
【図9】第1の実施形態における検査対象物である出荷段階のプリント基板を示す平面図(a)、および、そのプリント基板に対する参照画像を記憶するためのデータ構造を示す図(b)である。
【図10】第1の実施形態の変形例においてパターン検査のために実行される格納判定処理を示すフローチャートである。
【図11】本発明の第2の実施形態に係るパターン検査装置の機能的構成を示すブロック図である。
【図12】第2の実施形態に係るパターン検査装置のハードウェア構成を示すブロック図である。
【図13】第2の実施形態におけるパターン検査の手順を示すフローチャートである。
【図14】第2の実施形態においてパターン検査のために実行される平均濃度算出処理を示すフローチャートである。
【図15】第2の実施形態において被検査画像を記憶するためのデータ構造を示す図である。
【図16】第2の実施形態においてパターン検査のために実行される欠陥判定処理を示すフローチャートである。
【符号の説明】
10 …移動ステージ
12 …プリント基板(検査対象物)
14 …撮像装置
16 …切換スイッチ
18 …格納判定処理部
20 …参照画像記憶部(画像メモリ)
22 …格納データ展開部(比較制御部)
24 …比較照合部
26 …欠陥判定部
30 …主・副走査アドレス管理部
32 …バッファメモリ
40 …コンピュータ
42 …CPU
44 …メインメモリ
60 …被検査画像記憶部(画像メモリ)
62 …格納データ展開部
64 …平均濃度算出部
66 …欠陥判定部
Th …金メッキ部検出閾値[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a pattern inspection apparatus for inspecting a pattern appearing in the appearance shape of various objects to detect a defect, for example, inspecting a pattern such as a printed board, a lead frame, a semiconductor wafer, and their photomask. The present invention relates to a pattern inspection apparatus that detects fine defects.
[0002]
[Prior art]
Patterns are being miniaturized on printed boards, lead frames, semiconductor wafers, and the like. For example, in a printed circuit board, the pattern has been miniaturized, terminal connection portions have a narrow pitch, and lines and spaces have also been reduced. For this reason, higher detection resolution is required in pattern inspection such as appearance inspection of printed circuit boards. As a result, to store an image used for pattern inspection, that is, an image to be inspected representing an inspection target pattern, or a reference image representing a non-defective pattern to be compared with the inspection target pattern when a comparison method is employed. The required memory capacity is increasing.
[0003]
[Problems to be solved by the invention]
Therefore, an object of the present invention is to provide a pattern inspection apparatus and method that can reduce the memory capacity required for an image to be stored for pattern inspection.
[0004]
[Means for Solving the Problems and Effects of the Invention]
1st invention is a pattern inspection apparatus which test | inspects the said predetermined pattern based on the captured image of the test target object in which the predetermined pattern was formed,
Storage means for storing data representing an image to be stored for inspection of the predetermined pattern;
The image to be stored is divided into predetermined image units hierarchically with pixels as the lowest image unit, and the image unit is the predetermined pattern for each image unit in order from the image unit in the upper hierarchy. At least part of Determining means for determining whether or not
Based on the determination result by the determination means, the predetermined pattern among the image units in a hierarchy higher than the lowest At least part of Storage control means for storing, in the storage means, together with position information of the target image unit, data representing lower-level image units constituting the target image unit only for the target image unit that is an image unit including
It is characterized by providing.
[0005]
According to the first invention as described above, the predetermined pattern to be inspected among the image units in the hierarchy higher than the lowest level At least part of Since the data representing the image unit of the lower hierarchy constituting the image unit is stored only for the image unit including the image unit, the memory capacity for the image to be stored for pattern inspection is reduced, and It is possible to store a detailed image only for a portion including a pattern to be inspected while suppressing an increase in necessary memory capacity.
[0006]
According to a second invention, in the first invention,
The determination unit divides the image to be stored into blocks each of which is an image unit including a plurality of pixels, and each block has the predetermined pattern. At least part of Whether or not
The storage control means is the predetermined pattern among the blocks in the image to be stored. At least part of The pixel data representing each pixel constituting the target block is stored in the storage unit only for the target block that is a block including.
[0007]
According to such 2nd invention, the predetermined pattern which should be test | inspected among each block At least part of Since pixel data representing pixels constituting the block is stored only for the block including the memory, the memory capacity for the image to be stored for pattern inspection is reduced, and the required memory capacity is increased. Thus, it is possible to store a detailed image only for a portion including a pattern to be inspected.
[0008]
According to a third invention, in the second invention,
The determination means includes attribute detection means for detecting attribute of the target block and outputting attribute information for each target block of the image to be stored,
The storage control means causes the storage means to store pixel data representing each pixel constituting each target block in the image to be stored together with the attribute information of the target block.
[0009]
According to such a third invention, the predetermined pattern to be inspected At least part of By using the attribute information stored for each block including the predetermined pattern, it is possible to inspect the predetermined pattern in an appropriate mode (for example, appropriate inspection sensitivity) according to each part of the inspection object.
[0010]
According to a fourth invention, in the third invention,
Area calculating means for calculating the area of each of the continuous regions of the predetermined pattern;
For each target block of the image to be stored, inspection sensitivity setting means for setting the inspection sensitivity of the predetermined pattern according to the area of the continuous region at least part of which is included in the target block;
And a defect detection means for detecting a defect in the predetermined pattern for each target block in accordance with the inspection sensitivity set for each target block based on the pixel data stored in the storage means. To do.
[0011]
According to the fourth aspect of the invention, since the inspection sensitivity is set for each block according to the area of the continuous region of the predetermined pattern to be inspected, appropriate sensitivity (inspection of the inspection object) is set for each part of the inspection object. It is possible to detect a defect in a predetermined pattern with an appropriate inspection sensitivity according to the degree of importance.
[0012]
According to a fifth invention, in the second invention,
A defect detection means for detecting a defect in the predetermined pattern by comparing the image to be inspected, which is the captured image, with a reference image to be a standard representing the predetermined pattern;
The determination means uses the reference image as the image to be stored, and for each block of the reference image, the block is the predetermined pattern. At least part of Whether or not
The storage control means is the predetermined pattern of the reference image block. At least part of Pixel data representing each pixel constituting the target block is stored in the storage means only for the target block that is a block including
The defect detection means includes comparison / collation means for comparing pixel data of the image to be inspected and pixel data of the reference image stored in the storage means for each pixel.
[0013]
According to the fifth aspect, a predetermined pattern to be inspected among the blocks of the reference image. At least part of Since pixel data representing pixels constituting the block is stored only for the block including the reference number, the memory capacity for the reference image to be stored for the pattern inspection by the comparison method is reduced, and the necessary data is stored. It is possible to store a detailed reference image only for a portion including a pattern to be inspected while suppressing an increase in memory capacity.
[0014]
A sixth invention is the second invention, wherein:
A defect that detects a defect in the predetermined pattern based on a difference between an average density that is an average value of target pixels that are pixels constituting the predetermined pattern in the inspection image that is the captured image and each value of the target pixel A detection means;
The determination means uses the image to be inspected as the image to be stored, and the block is the predetermined pattern for each block of the image to be inspected. At least part of Whether or not
The storage control means is the predetermined pattern among the blocks of the image to be inspected. At least part of Pixel data representing each pixel constituting the target block is stored in the storage means only for the target block that is a block including
The defect detection means includes
Based on the pixel data stored in the storage means, average density calculation means for calculating an average value for pixels constituting the predetermined pattern in each target block of the image to be inspected as the average density for each target block;
Based on the pixel data stored in the storage means, calculate the difference between the value of each pixel constituting the predetermined pattern in each target block of the image to be inspected and the average density calculated for the target block, Defect determination means for determining the presence or absence of defects in the predetermined pattern for each target block based on the difference;
It is characterized by including.
[0015]
According to such a sixth invention, the predetermined pattern to be inspected among the blocks of the inspected image. At least part of Since the pixel data representing the pixels constituting the block is stored only for the block containing the image, the memory capacity for the inspected image to be stored for the pattern inspection by the relative density method (details will be described later) is It is possible to store a detailed image to be inspected only for a portion including a pattern to be inspected while suppressing an increase in necessary memory capacity.
[0016]
According to a seventh invention, in any one of the fourth to sixth inventions,
The inspection object is a printed circuit board,
The predetermined pattern is a gold plating pattern formed on the printed circuit board.
[0017]
According to such a seventh invention, for example, when detecting the presence or absence of a defect in a gold plating pattern for wire bonding connection or the like in the appearance inspection of a printed circuit board at the shipping stage, the reference image or the image to be inspected is stored. Therefore, the memory capacity can be reduced. In this case, since the ratio of the area of the gold-plated portion to be inspected to the total area of the printed circuit board is small, a great effect can be obtained in reducing the memory capacity.
[0018]
An eighth invention is a pattern inspection method for inspecting a predetermined pattern based on a captured image of an inspection object on which the predetermined pattern is formed,
The image to be stored for the inspection of the predetermined pattern is divided into predetermined image units hierarchically with pixels as the lowest image unit, and the image unit for each image unit in order from the image unit in the upper hierarchy. The predetermined pattern At least part of A determination step of determining whether or not
Based on the determination result in the determination step, the predetermined pattern among the image units in a hierarchy higher than the lowest level At least part of A storage step of storing, in a predetermined storage unit, data representing the image unit of a lower layer constituting the target image unit together with position information of the target image unit only for the target image unit including the target image unit;
It is characterized by providing.
[0019]
DETAILED DESCRIPTION OF THE INVENTION
Embodiments of the present invention will be described below with reference to the accompanying drawings.
<1. First Embodiment>
First, the pattern inspection apparatus according to the first embodiment of the present invention will be described. This pattern inspection apparatus is an apparatus for inspecting the appearance of a printed circuit board at the shipping stage, and inspects the presence or absence of defects in a gold plating pattern formed on the printed circuit board for wire bonding connection or the like by a comparison method. Since this inspection uses the gold-plated pattern after the printed circuit board manufacturing process is completed, that is, after the solder resist (solder resist) is applied to the printed circuit board, the entire area of the printed circuit board that is the inspection object. On the other hand, the ratio of the area of the inspection target pattern is small. The present embodiment pays attention to this point, and aims to reduce the memory capacity necessary for storing the reference image used for the pattern inspection by the comparison method. Note that the reference image and the image to be inspected in the present embodiment may be a multi-value image or a binary image, but in the following description, these are assumed to be multi-value images.
[0020]
<1.1 Configuration of pattern inspection device>
FIG. 1 is a block diagram showing a functional configuration of the pattern inspection apparatus according to the present embodiment. This pattern inspection apparatus includes an
[0021]
In the pattern inspection apparatus having the above configuration, a good printed circuit board (hereinafter referred to as “reference board”) 12 is first imaged, and a signal Dv of the captured image is input to the storage
[0022]
FIG. 2 is a block diagram showing a hardware configuration of the pattern inspection apparatus according to the present embodiment (however, the moving
[0023]
The main / sub-scanning
[0024]
The
[0025]
When the signal Dv indicating the reference image, which is a captured image of the reference board, is input from the
[0026]
The
[0027]
The comparison /
[0028]
<1.2 Processing for pattern inspection>
FIG. 3 is a flowchart showing a processing procedure (main routine) by the pattern inspection apparatus according to the present embodiment configured as described above. In this flowchart, steps S10 to S16 are executed by the
[0029]
In the present embodiment, the
[0030]
First, the
[0031]
Next, the
[0032]
Next, the
[0033]
In general, the following three types of portions are exposed on the printed circuit board at the shipping stage where the conductive portions such as gold plating are exposed.
(1) A portion to be connected as a terminal.
(2) A portion of a GND pattern (grounding portion pattern) for shielding.
(3) A portion of an alignment pattern (referred to as “dragonfly mark”) used in a subsequent process.
Of these, the area (2) has a very large continuous area, and the areas (1) and (3) are not large. On the other hand, with regard to the importance of inspection, the part (1) is the highest, and the part (2) is relatively insignificant because there is no problem other than a large defect. If the part (3) can also be aligned, Since this is not a problem, the importance of inspection is relatively low. Therefore, (1) The inspection sensitivity of this part should be set high, (2) And the sensitivity of the inspection of the part (3) may be low. By the way, the part (1) and the part (2) can be distinguished by the area. In addition, it is difficult to distinguish the part (1) and the part (3) by area, but since the number of the part (3) is not large, even if an incorrect sensitivity is set, The operator can easily correct the sensitivity. Therefore, a gold-plated portion corresponding to a closed figure with a small area should be inspected with high sensitivity, and a gold-plated portion corresponding to a closed figure with a large area should be inspected with low sensitivity. For example, when the sensitivity is divided into three stages of “high”, “medium”, and “low”, the sensitivity is an area such as “30 pixels or less”, “80 pixels or less”, “200 pixels or more”, for example. It is good to correspond to.
[0034]
In this embodiment, the inspection sensitivity is divided into two stages of “high” and “low”, and the inspection sensitivity is set to “high” for a target block including a gold-plated pattern (closed figure) composed of 30 or less pixels. The target block including a gold-plated pattern (closed figure) composed of more than 30 pixels is set to “low”. Therefore, for the printed circuit board shown in FIG. 9A, assuming that each block consists of 4 × 4 pixels (see FIG. 9B), the blocks E2, F2, E3, and F3 are gold-plated consisting of 20 pixels. Therefore, the inspection sensitivity of these blocks is “high”, and the blocks E5, F5, E6, and F6 include a gold plating pattern gp2 (part) of 36 pixels. The inspection sensitivity of those blocks is “low”.
[0035]
Once the inspection sensitivity determined as described above is set for the target block of interest, it is next determined whether or not the target block of unfocused remains (step S154), and the target block of unfocused remains. For example, attention is paid to any of these target blocks (step S156), and the process returns to step S148. Thereafter, steps S148 to S156 are repeatedly executed until there is no unfocused target block. If there is no unfocused target block, the inspection sensitivity setting process is terminated, and the process returns to the main routine shown in FIG. At this time, for the printed circuit board shown in FIG. 9A, the inspection sensitivity of each target block is stored as the attribute information of each target block in the array ATsen as shown in FIG. 9B.
[0036]
Next, the
[0037]
Thus, the operation (steps S12 to S16) of the storage
[0038]
Thereafter, the comparison / collation process is executed as follows (step S18). First, the
[0039]
In the present embodiment, since the block address of each target block is stored in the array ABad in the scanning order for imaging the printed circuit board (see FIG. 9B), the
[0040]
When the above comparison / collation processing is completed, the
[0041]
<1.3 Effects>
According to the above embodiment, when the gold plating pattern on the printed circuit board as shown in FIG. 9A is inspected by the comparison method, the reference image used for the inspection is as shown in FIG. 9B. Stored according to the data structure. That is, the reference image is divided into blocks each of which is an image unit composed of a plurality of pixels, and pixel data is stored only for blocks (target blocks) including a gold plating pattern that is a pattern to be inspected among these blocks. Therefore, the memory capacity necessary for storing the reference image can be reduced. In particular, in the case of appearance inspection of printed circuit boards at the shipping stage, the area of the gold-plated portion to be inspected is generally about 10% of the total area, and the proportion of the area of the gold-plated portion is small. The effect of reducing the memory capacity is significant. When the inventor of the present application investigated an actual printed circuit board, the memory capacity necessary for storing the reference image in the above embodiment is about 12% of the memory capacity for storing all pixel data of the reference image on average. That is, it is confirmed that the necessary memory capacity is reduced to about 1/8.
[0042]
Further, according to the above-described embodiment, it is possible to store a detailed image only for a portion where a gold plating pattern to be inspected exists in a reference image while suppressing an increase in necessary memory capacity.
[0043]
Furthermore, according to the embodiment, inspection sensitivity is set as block attribute information for each target block (see FIG. 9B), and the gold plating pattern is inspected by changing the inspection sensitivity for each target block. Can do. As a result, a high-inspection location such as a gold-plated portion constituting a portion connected as a terminal is inspected with high sensitivity, and a low-intensity location such as a shield GND pattern is low. As inspected with sensitivity, it becomes easy to perform pattern inspection with appropriate sensitivity according to the importance of inspection.
[0044]
<1.4 Modification of First Embodiment>
In the above embodiment, the reference substrate is scanned twice by the
[0045]
First, the reference board is imaged by the
[0046]
As a result of the determination, if the target block includes a gold plating pattern, the pixel data constituting the target block is stored in the
[0047]
In step S176, it is determined whether or not an unfocused block remains in the input block row. As a result of the determination, if an unfocused block remains, the block of interest that is the next block of the current block of interest in the input block row is focused (step S177), and the process returns to step S173. Then, steps S173 to S177 are repeatedly executed until there are no unfocused blocks in the input block row. If there are no unfocused blocks, the process proceeds to step S178.
[0048]
In step S178, it is determined whether all pixel data of the reference image (pixel data of all block rows) has been input from the
[0049]
Thereafter, the defect detection in the gold plating part is performed by the same process (steps S18 to S22) as in the above embodiment, and the detected defect is displayed.
[0050]
As can be seen from the above description, even when the storage
[0051]
<2. Second Embodiment>
Next, a pattern inspection apparatus according to the second embodiment of the present invention will be described. This pattern inspection apparatus is also an apparatus for visual inspection of a printed circuit board at the shipping stage, and inspects the presence or absence of defects in a gold plating pattern formed on the printed circuit board for wire bonding connection or the like. Unlike the first embodiment in which the inspection is performed based on the above, the inspection is performed based on the defect inspection method disclosed in Japanese Unexamined Patent Publication No. 2000-258353. The defect inspection method disclosed in the publication is a defect inspection method for inspecting a defect of the inspection object based on density data for each pixel obtained from a captured image of the inspection object, and the total density data is locally The pixel is divided into regions, and when the density data in pixel units is far from the average density in the local region, the pixel is determined to be a defective pixel (hereinafter, such defect inspection method is referred to as a defect inspection method). "Relative concentration method"). In the following description, the same components as those in the first embodiment among the components of the pattern inspection apparatus according to the present embodiment are denoted by the same reference numerals, and detailed description thereof is omitted.
[0052]
<2.1 Configuration of pattern inspection device>
FIG. 11 is a block diagram showing a functional configuration of the pattern inspection apparatus according to the present embodiment. This pattern inspection apparatus includes an
[0053]
In the pattern inspection apparatus having the above-described configuration, the printed
[0054]
FIG. 12 is a block diagram showing a hardware configuration of the pattern inspection apparatus according to the present embodiment (however, the moving
[0055]
As in the first embodiment, the main / sub-scanning
[0056]
The
[0057]
As in the first embodiment, the
[0058]
<2.2 Processing for pattern inspection>
FIG. 13 is a flowchart showing a processing procedure (main routine) by the pattern inspection apparatus according to the present embodiment configured as described above. When the
[0059]
Steps S50 to S56 in the flowchart of FIG. 13 are the same as steps S10 to S16 in the flowchart of FIG. 3 for the first embodiment if the reference image is replaced with the image to be inspected. Description is omitted.
[0060]
At the time when the
[0061]
In the present embodiment, the
[0062]
When the gold-plated portion block average density for the target block of interest is stored in the array Aden in this way, it is next determined whether or not the target block of unattention remains (step S288). As a result of this determination, if an unfocused target block remains, focus on any of the unfocused target blocks (step S290), and the process returns to step S284. Normally, the target block pointed to by the pointer next to the pointer indicating the current target block in the array APtr is the next target block.
[0063]
Thereafter, steps S284 to S290 are repeatedly executed until there is no unfocused target block. If there is no unfocused target block, the average density calculation process is terminated, and the process returns to the main routine shown in FIG. At this point in time, for the printed circuit board shown in FIG. 9A, the gold-plated part block average density for each target block is stored in the array Aden as shown in FIG.
[0064]
Next, the
[0065]
Thereafter, the average density of the gold-plated block for the block of interest is obtained from the array Aden, and the absolute value of the difference between the average density and each pixel value of the image C obtained as described above is obtained. Is the defect degree (step S310). Then, the inspection sensitivity set for the target block is acquired from the array ATsen, and the presence or absence of a defect in the target block, that is, the target block according to whether or not the defect degree is greater than a threshold value determined according to the inspection sensitivity. Is determined to be a defective block (step S312). Here, the threshold value used (also referred to as “defect threshold value”) is a value that determines how much the above-mentioned defect degree is regarded as “defective”, and “high” is set as the inspection sensitivity. A small defect threshold is used for the target block that is set, and a large defect threshold is used for the target block for which “low” is set as the inspection sensitivity.
[0066]
After determining whether or not there is a defect in the target block in this way, it is determined whether or not an untargeted target block remains (step S314). As a result of the determination, if an unfocused target block remains, the focus is on any of the unfocused target blocks (step S316), and the process returns to step S304. Normally, the target block corresponding to the pointer next to the pointer corresponding to the current target block in the array APtr is the next target block.
[0067]
Thereafter, steps S304 to S316 are repeatedly executed until there is no unfocused target block. If there is no unfocused target block, the defect determination process is terminated and the process returns to the main routine shown in FIG.
[0068]
Thereafter, based on the result of the defect determination process, the
[0069]
<2.3 Effects>
According to the above embodiment, when the gold plating pattern on the printed circuit board as shown in FIG. 9A is inspected by the relative density method, the inspected image used for the inspection has a data structure as shown in FIG. Will be remembered according to. As a result, the pixel data is stored only for the block (target block) including the gold plating pattern that is the pattern to be inspected among the blocks in the inspected image, thereby reducing the memory capacity necessary for storing the inspected image. Can do.
[0070]
Further, according to the above-described embodiment, it is possible to store a detailed image only for a portion where a gold plating pattern to be inspected exists in an image to be inspected while suppressing an increase in necessary memory capacity.
[0071]
Furthermore, according to the above-described embodiment, since the inspection sensitivity is set as the block attribute information for each target block, as in the first embodiment, the inspection sensitivity is set according to the inspection location. Pattern inspection by the relative density method can be performed with appropriate sensitivity.
[0072]
<3. Other Embodiments and Modifications>
In each of the above embodiments, the gold plating pattern on the printed circuit board after applying the solder resist is inspected, but the pattern to be inspected in the present invention is not limited to the gold plating pattern, for example, the copper after etching on the printed circuit board The present invention is also applicable to pattern inspection. The present invention is also applicable to pattern inspection on other inspection objects other than printed circuit boards. However, the present invention is particularly effective when the ratio of the inspection target pattern occupying the entire area of the inspection target is small, such as a gold plating pattern on the printed circuit board after applying the solder resist. That is, in the pattern inspection in such a case, the effect of reducing the memory capacity for storing the image is significant.
[0073]
In each of the above embodiments, the reference image or the image to be inspected, which is an image to be stored for pattern inspection, is divided into blocks as image units composed of a plurality of pixels, and gold plating among the blocks in the reference image or the image to be inspected is performed. The block address of the target block which is a block including the pattern is stored, and the pixel data of each target block is stored. This means that image data is stored hierarchically. That is, the image to be stored is hierarchically divided into predetermined image units, and in order from the upper layer, it is checked whether each image unit includes a gold plating pattern. This means that data representing the image unit of the hierarchy is stored. In each of the above embodiments, the hierarchy for image storage is the two hierarchies: the first hierarchy (upper hierarchy) with blocks as image units and the second hierarchy (lower hierarchy) with pixels as image units. Consists of. However, instead of this, three or more hierarchies are set for an image to be stored for pattern inspection (however, the image unit in the lowest hierarchy is always a pixel), and the images are hierarchically stored. You may make it do. By increasing the number of hierarchies in this way, the memory capacity for storing images can be further reduced.
[0074]
Furthermore, in the first embodiment, the present invention is applied to the pattern inspection by the comparison method, and in the second embodiment, the present invention is applied to the pattern inspection by the relative density method. The present invention is not limited to the inspection method, and can also be applied to pattern inspection by, for example, DRC (Design Rule Check) method.
[Brief description of the drawings]
FIG. 1 is a block diagram showing a functional configuration of a pattern inspection apparatus according to a first embodiment of the present invention.
FIG. 2 is a block diagram showing a hardware configuration of the pattern inspection apparatus according to the first embodiment.
FIG. 3 is a flowchart showing a procedure of pattern inspection in the first embodiment.
FIG. 4 is a flowchart showing a threshold value determination process executed for pattern inspection in the first embodiment.
FIG. 5 is a diagram showing a histogram of an image of an inspection object in the first embodiment.
FIG. 6 is a flowchart showing a gold plating part detection process executed for pattern inspection in the first embodiment.
FIG. 7 is a flowchart showing an inspection sensitivity setting process executed for pattern inspection in the first embodiment.
FIG. 8 is a flowchart showing a reference image storage process executed for pattern inspection in the first embodiment.
FIG. 9A is a plan view showing a printed circuit board at the shipping stage as an inspection object in the first embodiment, and FIG. 9B is a diagram showing a data structure for storing a reference image for the printed circuit board. is there.
FIG. 10 is a flowchart showing a storage determination process executed for pattern inspection in the modification of the first embodiment.
FIG. 11 is a block diagram showing a functional configuration of a pattern inspection apparatus according to a second embodiment of the present invention.
FIG. 12 is a block diagram showing a hardware configuration of a pattern inspection apparatus according to a second embodiment.
FIG. 13 is a flowchart showing a procedure of pattern inspection in the second embodiment.
FIG. 14 is a flowchart showing an average density calculation process executed for pattern inspection in the second embodiment.
FIG. 15 is a diagram showing a data structure for storing an image to be inspected in the second embodiment.
FIG. 16 is a flowchart showing a defect determination process executed for pattern inspection in the second embodiment.
[Explanation of symbols]
10… Movement stage
12 ... Printed circuit board (inspection object)
14: Imaging device
16 ... changeover switch
18 ... Storage determination processing unit
20: Reference image storage unit (image memory)
22 ... Stored data expansion unit (comparison control unit)
24 ... Comparison verification part
26 ... Defect determination unit
30: Main / sub scanning address management section
32 ... Buffer memory
40: Computer
42 ... CPU
44 ... main memory
60 .. Inspected image storage unit (image memory)
62 ... Stored data expansion unit
64: Average concentration calculation unit
66 ... Defect determination unit
Th ... gold-plated part detection threshold
Claims (8)
前記所定パターンの検査のために記憶すべき画像を表すデータを格納するための記憶手段と、
前記記憶すべき画像を、画素を最下位の画像単位として階層的に所定の画像単位に分割し、上位の階層における画像単位から順に、各画像単位につき当該画像単位が前記所定パターンの少なくとも一部を含むか否かを判定する判定手段と、
前記判定手段による判定結果に基づき、最下位よりも上位の階層における画像単位のうち前記所定パターンの少なくとも一部を含む画像単位である対象画像単位に対してのみ、当該対象画像単位を構成する下位の階層の画像単位を表すデータを当該対象画像単位の位置情報と共に前記記憶手段に記憶させる記憶制御手段と
を備えることを特徴とするパターン検査装置。A pattern inspection apparatus for inspecting a predetermined pattern based on a captured image of an inspection object on which a predetermined pattern is formed,
Storage means for storing data representing an image to be stored for inspection of the predetermined pattern;
The image to be stored is divided into predetermined image units hierarchically with pixels as the lowest image unit, and the image unit is at least a part of the predetermined pattern for each image unit in order from the image unit in the upper hierarchy. Determining means for determining whether or not
Based on the determination result by the determination means, only the target image unit that is an image unit that includes at least a part of the predetermined pattern among the image units in the higher hierarchy than the lowest level, configures the target image unit. And a storage control means for storing in the storage means together with position information of the target image unit.
前記記憶制御手段は、前記記憶すべき画像におけるブロックのうち前記所定パターンの少なくとも一部を含むブロックである対象ブロックに対してのみ、当該対象ブロックを構成する各画素を表す画素データを前記記憶手段に記憶させることを特徴とする、請求項1に記載のパターン検査装置。The determination unit divides the image to be stored into blocks that are image units including a plurality of pixels, and determines whether the block includes at least a part of the predetermined pattern for each block;
The storage control means stores pixel data representing each pixel constituting the target block only for a target block that is a block including at least a part of the predetermined pattern among blocks in the image to be stored. The pattern inspection apparatus according to claim 1, wherein the pattern inspection apparatus is stored.
前記記憶制御手段は、前記記憶すべき画像における各対象ブロックを構成する各画素を表す画素データを当該対象ブロックの前記属性情報と共に前記記憶手段に記憶させることを特徴とする、請求項2に記載のパターン検査装置。The determination means includes attribute detection means for detecting attribute of the target block and outputting attribute information for each target block of the image to be stored,
The storage control means causes the storage means to store pixel data representing each pixel constituting each target block in the image to be stored together with the attribute information of the target block. Pattern inspection equipment.
前記記憶すべき画像の各対象ブロックにつき、当該対象ブロックに少なくとも一部が含まれる前記連続領域の面積に応じて前記所定パターンの検査感度を設定する検査感度設定手段と、
前記記憶手段に記憶された前記画素データに基づき、各対象ブロックにつき設定された前記検査感度に応じて、前記所定パターンにおける欠陥を対象ブロック毎に検出する欠陥検出手段と
を更に備えることを特徴とする、請求項3に記載のパターン検査装置。Area calculating means for calculating the area of each of the continuous regions of the predetermined pattern;
For each target block of the image to be stored, inspection sensitivity setting means for setting the inspection sensitivity of the predetermined pattern according to the area of the continuous region at least part of which is included in the target block;
And a defect detection means for detecting a defect in the predetermined pattern for each target block in accordance with the inspection sensitivity set for each target block based on the pixel data stored in the storage means. The pattern inspection apparatus according to claim 3.
前記判定手段は、前記参照画像を前記記憶すべき画像として、前記参照画像の各ブロックにつき当該ブロックが前記所定パターンの少なくとも一部を含むか否かを判定し、
前記記憶制御手段は、前記参照画像のブロックのうち前記所定パターンの少なくとも一部を含むブロックである対象ブロックに対してのみ、当該対象ブロックを構成する各画素を表す画素データを前記記憶手段に記憶させ、
前記欠陥検出手段は、前記被検査画像の画素データと前記記憶手段に記憶された前記参照画像の画素データとを画素毎に比較する比較照合手段を含むことを特徴とする、請求項2に記載のパターン検査装置。A defect detection means for detecting a defect in the predetermined pattern by comparing the image to be inspected, which is the captured image, with a reference image to be a standard representing the predetermined pattern;
The determination unit determines whether the block includes at least a part of the predetermined pattern for each block of the reference image as the image to be stored,
The storage control means stores, in the storage means, pixel data representing each pixel constituting the target block only for a target block that is a block including at least a part of the predetermined pattern among the blocks of the reference image. Let
The defect detection unit includes a comparison / collation unit that compares pixel data of the inspection image and pixel data of the reference image stored in the storage unit for each pixel. Pattern inspection equipment.
前記判定手段は、前記被検査画像を前記記憶すべき画像として、前記被検査画像の各ブロックにつき当該ブロックが前記所定パターンの少なくとも一部を含むか否かを判定し、
前記記憶制御手段は、前記被検査画像のブロックのうち前記所定パターンの少なくとも一部を含むブロックである対象ブロックに対してのみ、当該対象ブロックを構成する各画素を表す画素データを前記記憶手段に記憶させ、
前記欠陥検出手段は、
前記記憶手段に記憶された前記画素データに基づき、前記被検査画像の各対象ブロックにおいて前記所定パターンを構成する画素についての平均値を前記平均濃度として対象ブロック毎に算出する平均濃度算出手段と、
前記記憶手段に記憶された前記画素データに基づき、前記被検査画像の各対象ブロックにおいて前記所定パターンを構成する各画素の値と当該対象ブロックにつき算出された前記平均濃度との差を算出し、当該差に基づき前記所定パターンにおける欠陥の有無を対象ブロック毎に判定する欠陥判定手段と
を含むことを特徴とする、請求項2に記載のパターン検査装置。A defect that detects a defect in the predetermined pattern based on a difference between an average density that is an average value of target pixels that are pixels constituting the predetermined pattern in the inspection image that is the captured image and each value of the target pixel A detection means;
The determination means determines whether the block includes at least a part of the predetermined pattern for each block of the inspection image as the image to be inspected.
The storage control means stores, in the storage means, pixel data representing each pixel constituting the target block only for a target block that is a block including at least a part of the predetermined pattern among the blocks of the inspection image. Remember,
The defect detection means includes
Based on the pixel data stored in the storage means, average density calculation means for calculating an average value for pixels constituting the predetermined pattern in each target block of the image to be inspected as the average density for each target block;
Based on the pixel data stored in the storage means, calculate a difference between the value of each pixel constituting the predetermined pattern in each target block of the image to be inspected and the average density calculated for the target block, The pattern inspection apparatus according to claim 2, further comprising a defect determination unit that determines, for each target block, whether there is a defect in the predetermined pattern based on the difference.
前記所定パターンは前記プリント基板上に形成された金メッキのパターンであることを特徴とする、請求項4から6までのいずれか1項に記載のパターン検査装置。The inspection object is a printed circuit board,
The pattern inspection apparatus according to claim 4, wherein the predetermined pattern is a gold plating pattern formed on the printed circuit board.
前記所定パターンの検査のために記憶すべき画像を、画素を最下位の画像単位として階層的に所定の画像単位に分割し、上位の階層における画像単位から順に、各画像単位につき当該画像単位が前記所定パターンの少なくとも一部を含むか否かを判定する判定ステップと、
前記判定ステップでの判定結果に基づき、最下位よりも上位の階層における画像単位のうち前記所定パターンの少なくとも一部を含む画像単位である対象画像単位に対してのみ、当該対象画像単位を構成する下位の階層の画像単位を表すデータを当該対象画像単位の位置情報と共に所定の記憶手段に記憶する記憶ステップと
を備えることを特徴とするパターン検査方法。A pattern inspection method for inspecting a predetermined pattern based on a captured image of an inspection object on which a predetermined pattern is formed,
The image to be stored for the inspection of the predetermined pattern is divided into predetermined image units hierarchically with pixels as the lowest image unit, and the image unit for each image unit in order from the image unit in the upper hierarchy. A determination step of determining whether or not at least part of the predetermined pattern is included;
Based on the determination result in the determination step, the target image unit is configured only for the target image unit that is an image unit including at least a part of the predetermined pattern among the image units in the hierarchy higher than the lowest level. A pattern inspection method comprising: storing data representing an image unit of a lower hierarchy in a predetermined storage unit together with position information of the target image unit.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2001346090A JP3919505B2 (en) | 2001-11-12 | 2001-11-12 | Pattern inspection apparatus and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2001346090A JP3919505B2 (en) | 2001-11-12 | 2001-11-12 | Pattern inspection apparatus and method |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2003149171A JP2003149171A (en) | 2003-05-21 |
JP3919505B2 true JP3919505B2 (en) | 2007-05-30 |
Family
ID=19159323
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2001346090A Expired - Fee Related JP3919505B2 (en) | 2001-11-12 | 2001-11-12 | Pattern inspection apparatus and method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP3919505B2 (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4703327B2 (en) * | 2005-09-15 | 2011-06-15 | 株式会社東京精密 | Image defect inspection apparatus and image defect inspection method |
JP5466811B2 (en) * | 2006-11-22 | 2014-04-09 | オリンパス株式会社 | Substrate inspection apparatus and substrate inspection method |
JP2011089967A (en) * | 2009-10-26 | 2011-05-06 | Mitsubishi Chemical Engineering Corp | Method for inspecting surface of mirror finished belt |
CN103617589B (en) * | 2013-09-18 | 2016-07-06 | 西安交通大学 | A kind of information concealing method based on local histogram |
-
2001
- 2001-11-12 JP JP2001346090A patent/JP3919505B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JP2003149171A (en) | 2003-05-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7646908B2 (en) | Defect detection apparatus and defect detection method | |
US6865288B1 (en) | Pattern inspection method and apparatus | |
JPH0160767B2 (en) | ||
JP3706051B2 (en) | Pattern inspection apparatus and method | |
JP4230880B2 (en) | Defect inspection method | |
JP2011007728A (en) | Method, apparatus and program for defect detection | |
JPH11337498A (en) | Apparatus and method for inspecting printed circuit board | |
JP3919505B2 (en) | Pattern inspection apparatus and method | |
JP4104213B2 (en) | Defect detection method | |
JPH0210461B2 (en) | ||
JPH095255A (en) | Defect inspection method and apparatus, and manufacturing method of element for thin film magnetic head | |
JP2001099625A (en) | Device and method for pattern inspection | |
JPH0610815B2 (en) | Wiring pattern inspection method and device | |
JP3116438B2 (en) | Inspection apparatus and inspection method for printed wiring board | |
JP2003203218A (en) | Appearance inspection apparatus and method | |
JPH063541B2 (en) | Pattern inspection equipment | |
JPS6186638A (en) | Wiring pattern defect inspection method | |
JP2000199709A (en) | Method and device for inspecting pattern | |
JPH0723845B2 (en) | Defect detection method | |
JP2843389B2 (en) | Bonding ball inspection device | |
JP3003925B2 (en) | Defect inspection equipment | |
JPH0332723B2 (en) | ||
JP3626353B2 (en) | Pattern inspection apparatus and pattern inspection method | |
JP3210713B2 (en) | Geometric pattern inspection method and apparatus using contraction, expansion and processing of an imaging pattern for identification of predetermined features and tolerances | |
JPS642992B2 (en) |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20040226 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20060227 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20060404 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20060601 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20070213 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20070213 |
|
R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100223 Year of fee payment: 3 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100223 Year of fee payment: 3 |
|
LAPS | Cancellation because of no payment of annual fees |