JP2000155011A - Position measuring method and device - Google Patents

Position measuring method and device

Info

Publication number
JP2000155011A
JP2000155011A JP10329261A JP32926198A JP2000155011A JP 2000155011 A JP2000155011 A JP 2000155011A JP 10329261 A JP10329261 A JP 10329261A JP 32926198 A JP32926198 A JP 32926198A JP 2000155011 A JP2000155011 A JP 2000155011A
Authority
JP
Japan
Prior art keywords
image
template
processing
search
position measurement
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
JP10329261A
Other languages
Japanese (ja)
Inventor
Shoji Muramatsu
彰二 村松
Yasushi Otsuka
裕史 大塚
Yoshiki Kobayashi
小林  芳樹
Hideshi Shimizu
英志 清水
Satohiko Imai
聡彦 今井
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.)
Hitachi Ltd
Hitachi Information and Control Systems Inc
Original Assignee
Hitachi Ltd
Hitachi Process Computer Engineering Inc
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 Hitachi Ltd, Hitachi Process Computer Engineering Inc filed Critical Hitachi Ltd
Priority to JP10329261A priority Critical patent/JP2000155011A/en
Publication of JP2000155011A publication Critical patent/JP2000155011A/en
Pending legal-status Critical Current

Links

Landscapes

  • Length Measuring Devices By Optical Means (AREA)
  • Image Processing (AREA)
  • Image Analysis (AREA)

Abstract

PROBLEM TO BE SOLVED: To automatically determine the optimization of parameters such as the combination of preprocessing filters and the thinning ratio of matching processes without the intervention of a worker. SOLUTION: This position measuring device is provided with a means 2 acquiring a good sample image of the same kind as the image of an on-line inspection, a means 3 setting a template region used for position measurement, a means 4 setting the search area scanning a template for position measurement, and a means 5 automatically determining the strategy for stably conducting position measurement at a high speed. The position measurement strategy automatic determining means 5 optimized the parameters such as the kind and sequence of filter processing and thinning ratio in response to the sample image with the template and search area set manually. The genetic algorithm(GA) is employed for determining the optimum combination of parameters.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は画像を用いた位置計
測に関し、特に、自由に設定された対象の位置計測を高
速かつ安定に行うために、前処理や間引き処理の組み合
わせ戦略を自動的に決定する位置計測方法と装置に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to position measurement using images, and more particularly, to automatically and stably measure the position of a freely set object by automatically combining strategies of preprocessing and thinning processing. The present invention relates to a position measurement method and device to be determined.

【0002】[0002]

【従来の技術】位置計測装置に使用される技術の一つ
に、画像を用いたものがある。この画像を用いた位置計
測装置では、予め位置を計測したい対象をテンプレート
として登録しておき、入力された画像中からテンプレー
トを走査してテンプレートマッチングを行い、相関値が
最も高くなったところで対象の位置を計測する。この技
術は、プリント板など様々な工業製品の製造工程で使用
され、計測の対象となるマーキングはアライメントマー
クと呼ばれる。
2. Description of the Related Art One of the techniques used for a position measuring device is one using an image. In the position measurement device using this image, an object whose position is to be measured is registered in advance as a template, the template is scanned from the input image to perform template matching, and when the correlation value becomes highest, the object is measured. Measure the position. This technology is used in the manufacturing process of various industrial products such as printed boards, and the markings to be measured are called alignment marks.

【0003】この位置計測では、位置計測に適したアラ
イメントマークやそれに代わるパターンを画像で設定
し、テンプレートマッチングを用いて設定したアライメ
ントマークが安定に計測できるように調整している。具
体的な調整内容としては、高速に処理するための画像の
解像度、安定に計測できるように画像中の特徴量を強調
する前処理、さらに解像度と前処理の組み合わせなどが
ある。位置計測の対象毎に、これらの調整を画像処理に
精通した開発者が試行錯誤的に行っている。
In this position measurement, an alignment mark suitable for position measurement and a pattern that substitutes for the position are set in an image, and adjustment is performed so that the alignment mark set using template matching can be measured stably. Specific contents of the adjustment include a resolution of the image for high-speed processing, a pre-processing that emphasizes a feature amount in the image so that the measurement can be performed stably, and a combination of the resolution and the pre-processing. For each position measurement target, these adjustments are performed by a developer who is familiar with image processing by trial and error.

【0004】画像を用いた位置計測の従来技術として、
位置計測処理を粗い測定と密な測定との二段階にわけて
実施する方法がある。すなわち、画像の解像度を低くし
て高速に粗く位置計測を行い、二段階目の計測で高解像
度の画像を使用して高精度に位置計測する。この方法の
一例を示す特開平8−111599号によれば、二段階に処理
を分ける方法として、濃度投影を使用して大体の位置を
高速に抽出し、その後に、テンプレートと入力画像の相
関値を算出して精度良く位置計測を行う方式を採用して
いる。図2のフローチャートに、前処理、粗い位置計測
処理及び密な位置計測処理による一般的な位置計測の手
順を示す。
[0004] As a conventional technique of position measurement using images,
There is a method in which the position measurement processing is performed in two stages of coarse measurement and dense measurement. In other words, the position of the image is reduced and the position is roughly measured at a high speed, and the position of the second stage is measured with high accuracy using the high-resolution image. According to JP-A-8-111599, which shows an example of this method, as a method of dividing the processing into two steps, a rough position is extracted at high speed using density projection, and then the correlation value between the template and the input image is extracted. Is calculated and the position is measured with high accuracy. The flowchart of FIG. 2 shows a general procedure of position measurement by preprocessing, coarse position measurement processing, and dense position measurement processing.

【0005】[0005]

【発明が解決しようとする課題】画像を使用して位置計
測を行う場合、設定されたテンプレートが入力画像中で
いかに高速に、そして安定に検出できるかが重要にな
る。二段階に処理を分ける方法では、アライメントマー
クが小さかったり、パターンが複雑で安定に濃度投影が
得られない場合に、安定に位置計測をすることが困難と
なる。また、画像の解像度を低くして、データ量を小さ
くして位置計測を行うことも考えられるが、この方法も
アライメントマークが小さかったり、パターンが複雑な
場合には、画像中の特徴が欠落してしまい、テンプレー
トマッチングによる安定なマッチングができない。
When performing position measurement using an image, it is important how fast and stable the set template can be detected in the input image. In the method in which the processing is divided into two steps, it is difficult to measure the position stably when the alignment mark is small or the pattern is complicated and the density projection cannot be stably obtained. It is also conceivable to perform position measurement by reducing the resolution of the image and reducing the amount of data.However, this method also lacks features in the image when the alignment mark is small or the pattern is complicated. Therefore, stable matching by template matching cannot be performed.

【0006】安定にマッチング処理を行うためには、画
像の解像度を落しても特徴が欠落しないように画像の特
徴を強調したり、特徴が欠落しないように解像度を落す
度合いを調節する必要がある。つまり、使用する画像の
状況に応じて位置計測を行う戦略を変える必要があり、
テンプレートの設定や探索する領域、高速化のための解
像度など、位置計測に必要なパラメータの調整が必要に
なる。
In order to perform the matching process stably, it is necessary to emphasize the features of the image so that the features are not lost even if the resolution of the image is reduced, or to adjust the degree to which the resolution is reduced so that the features are not lost. . In other words, it is necessary to change the position measurement strategy according to the situation of the image to be used,
It is necessary to adjust parameters necessary for position measurement, such as setting of a template, an area to be searched, and resolution for speeding up.

【0007】図3に、従来の戦略決定の手順を示す。従
来は、探索戦略設定(S24)において、作業者が前処
理に用いるフィルタの種類や画像データの縮小率(間引
き率)などのパラメータを経験的に設定していた。そし
て、複数のサンプルに対して評価を行い(S25)、要
求された性能を満たさない場合(NG)はフィードバッ
ク(S28)により探索戦略の再設定を行う。もし、探
索戦略の変更だけで性能を満たさない場合には、さらに
フィードバックS27,S26と、テンプレートや探索
領域の再設定が必要になる。
FIG. 3 shows a conventional strategy determination procedure. Conventionally, in the search strategy setting (S24), the operator has empirically set parameters such as the type of filter used for preprocessing and the reduction rate (thinning rate) of image data. Then, a plurality of samples are evaluated (S25), and if the required performance is not satisfied (NG), the search strategy is reset by feedback (S28). If the performance is not satisfied only by changing the search strategy, feedback S27, S26 and the resetting of the template and the search area are further required.

【0008】このように、従来はサンプルを評価する度
に、作業者が長時間かけてパラメータの再設定、再評価
を行うため、作業者に重い負担となっている。さらに、
画像特徴の強調処理は熟練者のノウハウを必要とするた
め、一般の作業者には困難な作業となっている。
As described above, conventionally, every time a sample is evaluated, the operator resets and re-evaluates the parameters over a long period of time, which places a heavy burden on the operator. further,
The image feature enhancement process requires know-how of a skilled person, which is a difficult task for ordinary workers.

【0009】本発明の目的は、従来技術の問題点を克服
し、パラメータの最適化等を自動的に行い、作業者が介
入することなく高速で安定な位置計測手法の戦略を決定
できる位置計測装置を提供することにある。
An object of the present invention is to overcome the problems of the prior art, automatically optimize parameters and the like, and determine a strategy for a high-speed and stable position measurement method without operator intervention. It is to provide a device.

【0010】[0010]

【課題を解決するための手段】上記目的を達成する本発
明の位置計測方法は、対象画像を入力して所定の前処理
を行い、前記対象画像の所定位置の特徴を含むテンプレ
ートによる探索処理を行って前記所定位置を計測する場
合に、予め、前記対象画像のサンプル画像に基づいて設
定したテンプレートと探索領域に対し、複数のフィルタ
処理の種類と順番からなるパラメータの組み合わせを、
画像の特徴が維持または強調されるように選択し、前記
対象画像による位置計測に際して、選択されたパラメー
タの組み合せによって前記前処理を行うことを特徴とす
る。
According to the position measuring method of the present invention which achieves the above object, a target image is input, a predetermined preprocessing is performed, and a search process using a template including a characteristic of a predetermined position of the target image is performed. When performing and measuring the predetermined position, in advance, for a template and a search region set based on the sample image of the target image, a combination of parameters consisting of a plurality of types and order of filter processing,
It is characterized in that selection is made so that features of the image are maintained or emphasized, and the preprocessing is performed by a combination of selected parameters when measuring the position of the target image.

【0011】また、前記前処理のための複数のフィルタ
処理の種類と順番及び前記探索処理のための画像のX方
向及びY方向の間引き率や間引き位置を含むパラメータ
の組合せを、画像の特徴を維持しながら前記探索処理が
高速化されるように選択し、前記対象画像による位置計
測に際し、選択されたパラメータの組み合せによって前
記前処理と前記探索処理を行うことを特徴とする。
The combination of parameters including the types and orders of the plurality of filter processes for the pre-processing and the thinning rates and the thinning positions in the X and Y directions of the image for the search process are determined by the characteristics of the image. It is characterized in that the search processing is selected so as to be accelerated while maintaining the same, and in the position measurement using the target image, the preprocessing and the search processing are performed by a combination of the selected parameters.

【0012】また、前記対象画像の位置計測は二段階に
行い、まず、前記パラメータの組合せを適用して使用す
る画像の解像度を低くした粗の位置計測を行い、その結
果により前記探索領域を狭めると共に前記解像度を復旧
して密の位置計測を行う。
Further, the position measurement of the target image is performed in two stages. First, coarse position measurement is performed by lowering the resolution of the image to be used by applying the combination of the parameters, and the search area is narrowed according to the result. At the same time, the resolution is restored and dense position measurement is performed.

【0013】また、前記パラメータの組合せは、前記テ
ンプレートと前記サンプル画像とのマッチング処理によ
る認識度が高くかつ処理時間短くなるように選択するこ
とを特徴とする。前記認識度は、前記マッチング処理に
よる前記所定位置における相関値と、前記所定位置以外
における最大相関値との差に依存して決定される。な
お、前記所定位置以外における最大相関値は、使用する
画像に設定される間引き率から複数の画像データが得ら
れる場合に、これら全ての画像データに対するマッチン
グ処理の結果から得ることを特徴とする。
Further, the combination of the parameters is selected so that the degree of recognition by the matching process between the template and the sample image is high and the processing time is short. The recognition degree is determined depending on a difference between a correlation value at the predetermined position by the matching processing and a maximum correlation value at a position other than the predetermined position. It should be noted that the maximum correlation value at a position other than the predetermined position is obtained from a result of a matching process on all the image data when a plurality of image data are obtained from a thinning rate set for an image to be used.

【0014】本発明の位置計測装置は、対象画像を入力
して所定の前処理を行い、前記対象画像の所定位置の特
徴を含むテンプレートによる探索を行なって、前記所定
位置を計測するものであって、前記対象画像のサンプル
画像に基づいて位置計測に使用するテンプレートを設定
するテンプレート領域設定手段と、前記テンプレートを
走査する探索領域を設定するテンプレート探索領域設定
手段と、これら手段により設定されたテンプレートと探
索領域を用い、前記前処理として前記サンプル画像に施
すフィルタ処理の種類と順番を含むパラメータの組合せ
を画像の特徴が維持または強調されるように選択するパ
ラメータ選択手段とを有する探索戦略決定機構を具備し
たことを特徴とする。
The position measuring apparatus according to the present invention measures a predetermined position by inputting a target image and performing predetermined pre-processing, performing a search using a template including a feature of the predetermined position of the target image. A template area setting means for setting a template used for position measurement based on a sample image of the target image; a template search area setting means for setting a search area for scanning the template; and a template set by these means. And a parameter selection means for selecting a combination of parameters including the type and order of filter processing to be performed on the sample image as the pre-processing so that the characteristics of the image are maintained or emphasized. It is characterized by having.

【0015】あるいは、対象画像を入力して所定の前処
理を行い、前記対象画像の所定位置の特徴を含むテンプ
レートによる探索処理を行なう位置計測機構を備え、さ
らに、前記対象画像のサンプル画像に基づいて位置計測
に使用するテンプレートを設定するテンプレート領域設
定手段と、前記テンプレートを走査する探索領域を設定
するテンプレート探索領域設定手段と、これら手段によ
り設定されたテンプレートと探索領域を用い、前記前処
理として前記サンプル画像に施すフィルタ処理の種類と
順番及び前記サンプル画像のX方向及びY方向の間引き
率や間引き位置を含むパラメータの組合せを画像の特徴
を維持しながら前記探索処理を高速化できるように選択
するパラメータ選択手段とを有する探索戦略決定機構を
備え、前記探索戦略決定機構で選択されたパラメータの
組合せに従って、前記位置計測機構における前処理と探
索処理を行うように構成したことを特徴とする。
Alternatively, there is provided a position measuring mechanism for inputting the target image, performing predetermined preprocessing, and performing a search process using a template including a feature of a predetermined position of the target image, and further, based on a sample image of the target image. Template area setting means for setting a template to be used for position measurement, template search area setting means for setting a search area for scanning the template, and using the template and search area set by these means as the pre-processing. The type and order of the filter processing applied to the sample image and a combination of parameters including the thinning rate and the thinning position in the X and Y directions of the sample image are selected so as to speed up the search processing while maintaining the characteristics of the image. A search strategy determination mechanism having parameter selection means for performing According to the combination of the selected parameter decision mechanism, characterized by being configured to perform search processing and pre-processing of the position measurement mechanism.

【0016】本発明によれば、作業者がテンプレート領
域とテンプレートの探索領域を設定すれば、使用する画
像に応じて安定な位置計測を可能にする前処理のフィル
タ処理を自動的に選択することができる。
According to the present invention, when a worker sets a template region and a template search region, a pre-processing filter process enabling stable position measurement according to an image to be used is automatically selected. Can be.

【0017】また、前処理でのフィルタ処理と探索処理
での画像の解像度(間引き率)の組み合わせを、解像度
を低くした場合でも位置計測に必要な特徴を失うことの
ないように自動的に選択することができるので、高速で
安定な位置計測のためのパラメータ調整作業が著しく軽
減できる。
Further, a combination of the resolution (thinning rate) of the image in the filter processing in the pre-processing and the search processing is automatically selected so that the characteristics required for position measurement are not lost even when the resolution is lowered. Therefore, parameter adjustment work for high-speed and stable position measurement can be significantly reduced.

【0018】つまり、本発明によれば、作業者はアライ
メントマークもしくはそれに代わるパターンを装置に設
定するだけで、対象毎に作成された戦略による高速かつ
安定な位置計測を行うことができる。
That is, according to the present invention, the operator can perform high-speed and stable position measurement based on a strategy created for each target simply by setting an alignment mark or a pattern instead of the alignment mark in the apparatus.

【0019】[0019]

【発明の実施の形態】以下、本発明の一実施形態を図面
を用いて詳細に説明する。図1は、一実施例による画像
を用いた位置計測装置の処理機能を示すブロック図であ
る。本実例の位置計測では、予め登録したテンプレート
画像が入力画像のどの部分と最もマッチングしている
か、相関値を調べることによって該当位置を探索する。
そのため、テンプレート画像や探索戦略を設定する探索
戦略設定機構1と、それらの情報を記録する記録手段6
と、設定された戦略を使用して位置計測を行う位置計測
機構7から構成される。
An embodiment of the present invention will be described below in detail with reference to the drawings. FIG. 1 is a block diagram illustrating a processing function of a position measurement device using an image according to an embodiment. In the position measurement of the present example, a corresponding position is searched for by checking which part of the input image matches the template image registered in advance and the correlation value.
Therefore, a search strategy setting mechanism 1 for setting a template image and a search strategy, and a recording unit 6 for recording such information.
And a position measurement mechanism 7 that performs position measurement using the set strategy.

【0020】探索戦略設定機構1は、サンプル画像取得
手段2で位置計測に使用する画像のサンプルを取得し、
位置計測テンプレート領域設定手段3で取得したサンプ
ル画像のアライメントマークの領域に対し、作業者がグ
ラフィックインターフェース(GUI)を用いてテンプ
レート画像の設定を行う。さらに、テンプレート探索領
域設定手段4で、テンプレートを探索するサンプル画像
中の領域を設定する。
The search strategy setting mechanism 1 acquires a sample of an image used for position measurement by the sample image acquiring means 2,
The operator sets a template image using a graphic interface (GUI) for the alignment mark area of the sample image acquired by the position measurement template area setting means 3. Further, the template search area setting means 4 sets an area in the sample image for searching for a template.

【0021】次に、位置計測戦略自動決定手段5で、作
業者が設定したテンプレート画像と探索領域を評価し
て、位置計測を高速かつ安定に行えるように、画像にか
ける強調処理などの前処理や高速化手法を自動的に決定
する。
Next, the position measurement strategy automatic determination means 5 evaluates the template image and the search area set by the operator, and performs preprocessing such as emphasis processing applied to the image so that position measurement can be performed quickly and stably. And speed-up method are determined automatically.

【0022】探索戦略設定機構1で行われる処理はオフ
ラインで実施されるため、決定されたテンプレート画
像、探索領域情報及び探索戦略情報は、記録手段6のそ
れぞれテンプレート画像領域61、探索領域情報領域6
2及び探索戦略テーブル63に格納される。
Since the processing performed by the search strategy setting mechanism 1 is performed off-line, the determined template image, search area information and search strategy information are stored in the template image area 61 and the search area information area 6 of the recording means 6, respectively.
2 and the search strategy table 63.

【0023】オンラインの計測を行う位置計測機構7
は、記録手段6に格納されているテンプレート画像と探
索領域の入力画像に対し、決定された探索戦略の手法を
用いて探索する。このため、画像取得手段8で実際に位
置測定する入力画像を取得し、位置計測処理手段9が探
索戦略に従い入力画像中のテンプレートの位置を探索す
る。結果出力手段10では、計測結果をディスプレイ上
に表示すると共に、結果を必要とする位置制御装置など
に送信する。
Position measurement mechanism 7 for online measurement
Searches the template image stored in the recording unit 6 and the input image of the search area using the determined search strategy. Therefore, the input image to be actually measured is obtained by the image obtaining means 8, and the position measurement processing means 9 searches for the position of the template in the input image according to the search strategy. The result output means 10 displays the measurement result on a display and transmits the result to a position control device or the like which needs the result.

【0024】以下、本発明をプリント基板検査装置に適
用した例で説明する。図4に、プリント基板検査装置の
位置計測機構を示す。まず、位置計測を行う対象のサン
プル(良品)の基板49をステージ43上に載せる。カ
メラ41によりサンプルの画像を取得し、位置計測装置
42に伝送する。プリント基板検査装置では検査データ
に従い、基板上に実装されている対象部品に対してカメ
ラ41の位置を制御し、部品形状やサイズを検査する。
以下では、プリント基板上のアライメントマークの位置
計測を例にして説明する。
Hereinafter, an example in which the present invention is applied to a printed circuit board inspection apparatus will be described. FIG. 4 shows a position measuring mechanism of the printed circuit board inspection device. First, a substrate 49 of a sample (non-defective product) to be subjected to position measurement is placed on the stage 43. An image of the sample is acquired by the camera 41 and transmitted to the position measurement device 42. In accordance with the inspection data, the printed board inspection apparatus controls the position of the camera 41 with respect to the target component mounted on the board, and inspects the component shape and size.
In the following, a description will be given of an example of measuring the position of an alignment mark on a printed circuit board.

【0025】位置計測装置42はパソコン(PC)など
の計算機装置で構成され、上述の探索戦略設定機構1
と、記録手段6と、位置計測機構7を備え、一連の処理
を実行する。はじめに、作業者がディスプレイ44に表
示されたサンプルの基板49の画像45に対し、アライ
メントマーク46を含むテンプレート46の指定、アラ
イメントマークを探索する探索領域48の指定を行う。
この設定に基づいて、後述するように探索戦略が自動的
に決定される。
The position measuring device 42 is composed of a computer device such as a personal computer (PC), and has the above-described search strategy setting mechanism 1
, A recording unit 6 and a position measuring mechanism 7 to execute a series of processing. First, an operator specifies a template 46 including an alignment mark 46 and a search area 48 for searching for an alignment mark with respect to an image 45 of a sample substrate 49 displayed on a display 44.
Based on this setting, a search strategy is automatically determined as described later.

【0026】次に、検査対象のワークが次々とステージ
43上に載せられて、基板検査のオンライン処理が開始
される。位置計測機構7はカメラ41によるワークの画
像と、記録手段6に格納された探索戦略を用いて、アラ
イメントマーク46の位置計測を行う。計測された位置
情報は、プリント板上の搭載部品もしくはプリント板自
身の位置補正に使用される。つまり、計測されたアライ
メントマークの位置情報を用いて、ステージ43を動作
させ位置補正を行う。
Next, the workpieces to be inspected are successively placed on the stage 43, and the online processing of the substrate inspection is started. The position measuring mechanism 7 measures the position of the alignment mark 46 using the image of the workpiece by the camera 41 and the search strategy stored in the recording means 6. The measured position information is used for correcting the position of a mounted component on the printed board or the printed board itself. In other words, the position is corrected by operating the stage 43 using the measured position information of the alignment mark.

【0027】次に、位置計測機構7の処理内容を説明す
る。図2のように、まず、位置計測に使用するワークの
画像を取得する(S11)。本実例の位置計測は、処理
を高速にするために粗い位置計測を行い(S14)、そ
の狭い範囲に限定し、画像データを縮小せずに、高精度
に位置計測するための密な位置計測処理を行う(S1
5)。これにより、高精度な位置計測を高速に実行でき
る。
Next, the processing contents of the position measuring mechanism 7 will be described. As shown in FIG. 2, first, an image of a work to be used for position measurement is obtained (S11). In the position measurement of the present example, coarse position measurement is performed to speed up the processing (S14), and the position is limited to a narrow range, and dense position measurement is performed for high-accuracy position measurement without reducing image data. Perform processing (S1
5). Thereby, highly accurate position measurement can be performed at high speed.

【0028】処理S14の粗い位置計測処理では、位置
計測に使用する画像データを縮小し、処理に使用するデ
ータ量を小さくして位置計測処理を高速化している。こ
のとき、単純に画像データを縮小すると、テンプレート
や入力画像中の特徴が欠落してしまい、認識率の低下を
生じて安定な位置計測が困難になる。
In the coarse position measurement processing in step S14, image data used for position measurement is reduced, and the amount of data used for processing is reduced to speed up the position measurement processing. At this time, if the image data is simply reduced, features in the template and the input image will be lost, and the recognition rate will be reduced, and stable position measurement will be difficult.

【0029】そこで、本実施例では使用する画像に対
し、前処理1〜前処理nにより複数のフィルタ処理を行
い(S12、S13)、テンプレートや入力画像中の特
徴を強調ないし誇張する。これにより、画像データを縮
小しても、テンプレート中の特徴の欠落を防止できる。
本実施例では、作業者が設定したテンプレートと探索領
域において、前処理のためのフィルタ処理の組合せや、
高速化のための間引き率を自動的に設定する。
Therefore, in this embodiment, a plurality of filtering processes are performed on the image to be used by preprocessing 1 to preprocessing n (S12, S13), and features in the template and the input image are emphasized or exaggerated. As a result, even if the image data is reduced, it is possible to prevent the feature in the template from being lost.
In the present embodiment, a combination of filter processing for pre-processing,
Automatically set the thinning rate for speeding up.

【0030】本実施例は、図3における探索戦略の設定
(S24)とサンプル評価(S25)を自動化し、探索
戦略の複数のパラメータの最適な組合せの決定に、遺伝
的アルゴリズム:GA(ニューロ/遺伝的手法の実験と
応用:インターフェース,1992年2月号)を採用し
ている。以下、本実施例における自動化の手法を詳細に
説明する。
This embodiment automates the setting of the search strategy (S24) and the sample evaluation (S25) in FIG. 3, and uses the genetic algorithm GA (neuro / neuro) to determine the optimal combination of a plurality of parameters of the search strategy. Experiments and Applications of Genetic Methods: Interface, February 1992). Hereinafter, the automation method in the present embodiment will be described in detail.

【0031】図5は、探索戦略のパラメータの要素と戦
略管理の説明図を示す。前処理として行うフィルタ処理
には、平滑化フィルタ、エッジ強調フィルタ、最大値フ
ィルタ、最小値フィルタ、中間値フィルタがある。それ
ぞれのフィルタは窓サイズや重み係数といったパラメー
タにより、複数の処理が存在する。図6に、フィルタの
一例を示す。平滑化フィルタとしてフィルタA、エッジ
強調フィルタとしてフィルタB、Cなどがある。
FIG. 5 is an explanatory diagram of parameters of search strategy and strategy management. Filter processing performed as preprocessing includes a smoothing filter, an edge enhancement filter, a maximum value filter, a minimum value filter, and an intermediate value filter. Each filter has a plurality of processes depending on parameters such as a window size and a weight coefficient. FIG. 6 shows an example of the filter. There is a filter A as a smoothing filter and filters B and C as an edge emphasis filter.

【0032】このため、フィルタ処理のパラメータの組
み合わせは膨大な数になる。本実施例では、処理無しも
含めて15種類のフィルタ処理を、探索戦略のパラメー
タとし、図5(b)の戦略管理テーブルに示すように、
5段のフィルタ処理の組合せを作成する。もちろん、前
処理のフィルタの種類や処理の組合せは、対象とする画
像に応じて適宜に変更可能である。
For this reason, the number of combinations of the parameters for the filtering process becomes enormous. In the present embodiment, 15 types of filter processing including no processing are used as parameters of the search strategy, and as shown in the strategy management table of FIG.
A combination of five stages of filter processing is created. Of course, the type of filter and the combination of the pre-processing can be appropriately changed according to the target image.

【0033】図7に、複数のフィルタ処理の作用を説明
する。例えば、アライメントマークを含むテンプレート
画像71に対し、最小値フィルタを適用して画像72を
生成する。画像72では、アライメントマークの暗部
(黒)が最小値フィルタ処理により拡大して、強調され
ている。これにより、アライメントマークの特徴を強調
して、高速化のための解像度低下(間引き)を可能にし
ている。
FIG. 7 illustrates the operation of a plurality of filtering processes. For example, an image 72 is generated by applying a minimum value filter to a template image 71 including an alignment mark. In the image 72, the dark part (black) of the alignment mark is enlarged and emphasized by the minimum value filter processing. As a result, the characteristics of the alignment mark are emphasized, and the resolution can be reduced (decimated) for speeding up.

【0034】あるいは、テンプレート画像71に対し、
垂直エッジ強調フィルタ処理を行い、その結果の画像7
3に対して、最大値フィルタ処理を実行して、画像74
を生成する。アライメントマークの垂直成分のみを強調
し、膨張することで、特徴を欠落することなく間引いた
テンプレート画像が得られる。これにより、マッチング
に使用するテンプレート画像の解像度をより低下でき、
テンプレート画像がより複雑な場合にも、安定したマッ
チング処理が可能になる。
Alternatively, for the template image 71,
A vertical edge enhancement filter process is performed, and the resulting image 7
3 is subjected to the maximum value filter processing to obtain the image 74
Generate By emphasizing and expanding only the vertical component of the alignment mark, it is possible to obtain a thinned template image without losing features. As a result, the resolution of the template image used for matching can be further reduced,
Even when the template image is more complicated, stable matching processing can be performed.

【0035】図8に、探索戦略のパラメータである間引
き率の説明図を示す。説明を簡単にするために、テンプ
レート画像8×8画素、入力画像に14×14画素を用
いて説明する。間引き率はX方向およびY方向で独立に
設定する(図5)。図示の例は、X方向の間引き率=
2、Y方向の間引き率=3である。このとき、テンプレ
ートマッチングに使用されるデータは、黒丸の画素で示
してある。
FIG. 8 is an explanatory diagram of the thinning rate which is a parameter of the search strategy. For simplicity, the description will be made using 8 × 8 pixels of the template image and 14 × 14 pixels of the input image. The thinning rate is set independently in the X and Y directions (FIG. 5). In the illustrated example, the thinning rate in the X direction =
2. The thinning rate in the Y direction = 3. At this time, data used for template matching is indicated by black circle pixels.

【0036】間引き率を大きくすると(解像度を低くす
ると)、マッチング処理に使用されるデータ量が少なく
なるので、高速処理が可能となる。しかし、間引き率を
大きくすると画像の特徴が欠落しやすく、テンプレート
と入力画像との適切な相関値を算出することができな
い。そのため、処理対象の画像によって間引き率の調整
を行う必要がある。
When the thinning rate is increased (when the resolution is reduced), the amount of data used for the matching processing is reduced, so that high-speed processing can be performed. However, if the thinning rate is increased, the features of the image tend to be missing, and an appropriate correlation value between the template and the input image cannot be calculated. Therefore, it is necessary to adjust the thinning rate depending on the image to be processed.

【0037】本実施例では、前処理でのフィルタ処理の
組み合わせと、マッチング処理での間引き率を自動的に
調節し、高速で安定な位置計測ができるパラメータの最
適な組合せを探索戦略として決定し、戦略管理テーブル
63に格納する。フィルタ処理の組み合わせは膨大にな
り、その最適な組み合わせは対象とするテンプレート画
像と探索対象となる入力画像や、解像度によって変化す
る。そこで、探索戦略の自動設定を前処理および間引き
率の最適組み合わせ問題としてとらえ、GAを用いて最
適化する。GAは、最適化するパラメータの組み合わせ
を遺伝子に見立て、遺伝子をランダムに発生させ良好な
結果が得られる組み合わせを見つける最適化手法の一つ
である。
In this embodiment, the combination of the filter processing in the pre-processing and the thinning rate in the matching processing are automatically adjusted, and the optimal combination of the parameters that can perform high-speed and stable position measurement is determined as a search strategy. , Stored in the strategy management table 63. The number of combinations of the filter processing becomes enormous, and the optimum combination changes depending on the target template image, the input image to be searched, and the resolution. Therefore, the automatic setting of the search strategy is considered as an optimal combination problem of the preprocessing and the thinning rate, and the optimization is performed using the GA. GA is one of the optimization techniques that considers a combination of parameters to be optimized as a gene and randomly generates a gene to find a combination that provides good results.

【0038】図9に、本実施例における遺伝子の説明図
を示す。(a)は遺伝子構造で、間引き率はX方向、Y
方向それぞれ4ビット(0〜15)で、また、フィルタ
処理は5段階の処理をそれぞれ4ビットで設定する。
(b)は遺伝子の一例を示し、間引き率X方向=5(010
1)、Y方向=3(0011)としている。前処理のフィルタに
は、フィルタB(0010)、フィルタA(0001)、フィルタD
(0100)、フィルタF(0110)、処理無し(0000)の5段階の
組合せによるフィルタ処理を行う。(c)は、処理無し
を含むフィルタA〜Oの16種類の遺伝子マッピング値
(4ビット)を示す。(b)の各フィルタはこの遺伝子
マッピング値により設定されている。
FIG. 9 is an explanatory diagram of a gene in this example. (A) is the gene structure, the thinning rate is X direction, Y
The direction is set by 4 bits (0 to 15), and the filter processing is set by 5 bits in each of 4 bits.
(B) shows an example of a gene, and the thinning rate in the X direction = 5 (010
1), Y direction = 3 (0011). Filters for pre-processing include filter B (0010), filter A (0001), filter D
(0100), filter F (0110), and no processing (0000). (C) shows 16 types of gene mapping values (4 bits) of filters A to O including no processing. Each filter in (b) is set by this gene mapping value.

【0039】図10は、本実施例におけるGAの処理を
示す。まず、遺伝子の初期集団を生成する(S31)。
初期集団の遺伝子は、乱数により幅広い種類のn個の遺
伝子をする。図9(b)を例に取ると、28ビットから
なる遺伝子のビット配列に対し、乱数を用いて無作為に
n個生成する。
FIG. 10 shows GA processing in this embodiment. First, an initial population of genes is generated (S31).
The genes of the initial population have a wide variety of n genes by random numbers. Taking FIG. 9B as an example, n bits are randomly generated using random numbers for a bit array of a 28-bit gene.

【0040】次に交叉によってn個の子供遺伝子を作成
する(S32)。図11に示すように、二つの遺伝子か
らランダムに切断面を決定し、二つの遺伝子を交叉させ
て子供遺伝子を生成する。たとえば、乱数により10ビ
ット目に切断面を設定し、二つの親遺伝子の10ビット
以下をそっくり入れ替えて、二つの子供遺伝子を生成す
る。
Next, n child genes are created by crossover (S32). As shown in FIG. 11, a cut surface is randomly determined from two genes, and the two genes are crossed to generate a child gene. For example, a cutting plane is set at the 10th bit by random numbers, and 10 bits or less of two parent genes are completely replaced to generate two child genes.

【0041】次に、突然変異により、生成された2n個
の遺伝子からn個の遺伝子を生成する(S33)。図1
2に示すように、突然変異は一つ一つのビット毎にある
一定以上の確率でビット反転を実施する。たとえば、1
3ビット目に対して、突然変異値を乱数によって生成
し、突然変異値がある値以上の場合、ビット反転を行
う。これによって、遺伝子を微小に変化させることがで
きる。
Next, n genes are generated from the generated 2n genes by mutation (S33). FIG.
As shown in FIG. 2, the mutation performs bit inversion with a certain probability or more for each bit. For example, 1
For the third bit, a mutation value is generated by random numbers, and if the mutation value is equal to or greater than a certain value, bit inversion is performed. Thereby, the gene can be minutely changed.

【0042】以上によって3n個になった遺伝子に対
し、それぞれの遺伝子の優劣を示す適合度を算出する
(S34)。そして、淘汰により、適合度の低い遺伝子
が消滅し、次の世代に残す遺伝子の個数をn個にする
(S35)。S32〜S35までの一連の処理が1世代
分である。この1世代分のn個の遺伝子の中に、最適化
の終了条件を満たしているものが存在するか判定し(S
36)、終了条件を満たしていない場合は、S32の交
叉から処理を繰り返す。終了条件は、適合度が予め定め
た閾値を超えている遺伝子が存在する場合、または、繰
り返し回数が規定回数(例えば、30世代分)を超えた
場合に成立する。
With respect to the 3n genes as described above, the degree of suitability indicating the superiority or inferiority of each gene is calculated (S34). Then, by the selection, the genes with low fitness are extinguished, and the number of genes to be left in the next generation is set to n (S35). A series of processing from S32 to S35 corresponds to one generation. It is determined whether or not any of the n genes of one generation satisfies the optimization termination condition (S
36) If the termination condition is not satisfied, the process is repeated from the crossing of S32. The termination condition is satisfied when there is a gene whose fitness exceeds a predetermined threshold value or when the number of repetitions exceeds a specified number (for example, for 30 generations).

【0043】本実施例では、交叉、突然変異、淘汰の方
法を上記のように行っているが、同様の作用を実現でき
れば、どのような方法でも構わない。つまり、新しい遺
伝子を古い遺伝子から生成する(交叉)、ある一定の確
率で遺伝子に変化を生じさせる(突然変異)、遺伝子の
数を世代毎に一定に保つ(淘汰)ができればよい。
In the present embodiment, the methods of crossover, mutation, and selection are performed as described above, but any method can be used as long as the same action can be realized. That is, it is only necessary to be able to generate a new gene from an old gene (crossover), cause a change in the gene with a certain probability (mutation), and keep the number of genes constant for each generation (selection).

【0044】次に、処理S34の適合度の算出について
説明する。本実施例での適合度は、認識度と処理速度の
2つの要素を考慮し、どちらの要素の良否にも依存する
ように互いに掛け合わせる。さらに、認識度と処理速度
の重みを調整できるように、各々の重み係数m(≧
0),n(≧0)で階乗する形式とする。重み係数m,
nは、位置計測の精度と処理時間の何れを重視するかの
基本戦略により決まるもので、通常はほぼ固定的に扱え
る。本実施例の適合度は数1のように定義する。
Next, the calculation of the degree of conformity in step S34 will be described. In the present embodiment, the degree of matching is multiplied by each other in consideration of the two factors of the degree of recognition and the processing speed, depending on the quality of either element. Furthermore, each weighting factor m (≧
0), n (≧ 0). Weight coefficient m,
n is determined by a basic strategy of placing importance on the accuracy of the position measurement and the processing time, and can usually be handled almost fixedly. The fitness of the present embodiment is defined as in Equation 1.

【0045】[0045]

【数1】 適合度=(認識度のm乗)×(処理速度のn乗) ここで、処理速度は、相関値の計算時間に反比例するた
め、間引き率、テンプレートや探索領域の大きさ、前処
理時間に依存する。一方、認識度は、「正解位置の見つ
け易さ」と、「誤認識のし難さ」とに依存し、各要素は
正解位置と不正解位置での相関値に依存する。本実施例
の認識度は数2のように定義する。
## EQU00001 ## Fitness = (m-th power of recognition) .times. (N-th power of processing speed) Since the processing speed is inversely proportional to the calculation time of the correlation value, the thinning rate, the size of the template or the search area, Depends on preprocessing time. On the other hand, the degree of recognition depends on “easiness of finding a correct answer position” and “difficulty of incorrect recognition”, and each element depends on a correlation value between the correct answer position and the incorrect answer position. The recognition degree in the present embodiment is defined as in Expression 2.

【0046】[0046]

【数2】認識度=(正解位置の見つけ易さ)×(ご認識
のし難さ) 正解位置の見つけ易さ=正解位置での相関値−閾値1 誤認識のし難さ=正解位置での相関値−不正解位置での
最大相関値−閾値2ここで、「正解位置の見つけ易さ」
及び「誤認識のし難さ」の0以下の値は、それぞれ0と
する。数2の認識度を決定するために、テンプレートと
入力画像とのマッピング処理を行い、「正解位置での相
関値」、「不正解位置での最大相関値」を求める。この
マッピング処理には、遺伝子情報の間引き率と前処理
(フィルタ処理の組合せ)を用いる。
## EQU2 ## Recognition level = (easy to find correct position) × (difficult to recognize) Easy to find correct position = correlation value at correct position−threshold 1 Difficulty to recognize = correct position Correlation value−maximum correlation value at incorrect answer position−threshold 2 where “easy to find correct answer position”
In addition, the value of 0 or less of “difficulty of misrecognition” is 0. In order to determine the degree of recognition of Expression 2, mapping processing between the template and the input image is performed, and a “correlation value at a correct answer position” and a “maximum correlation value at an incorrect answer position” are obtained. This mapping process uses the thinning rate of genetic information and preprocessing (combination of filtering processes).

【0047】図13に、マッピング処理によって求めら
れる相関値分布の概念図を示す。最も高い相関値のピー
ク61が「正解位置での相関値」、次に高い相関値のピ
ーク62が「不正解位置での最大相関値」である。数
1、数2より、適合度は相関値の計算時間が短いほど、
また、相関値61が大きいほど、相関値62が小さいほ
ど、大きくなる。
FIG. 13 shows a conceptual diagram of the correlation value distribution obtained by the mapping process. The peak 61 having the highest correlation value is the “correlation value at the correct answer position”, and the peak 62 having the next highest correlation value is the “maximum correlation value at the incorrect answer position”. From Equations (1) and (2), the better the fitness, the shorter the calculation time of the correlation value,
Also, the larger the correlation value 61 and the smaller the correlation value 62, the larger.

【0048】本実施例では、以上のように適合度を定義
しているので、各々の要素の組み合わせを調整して、処
理速度を優先させるか、認識率を優先させるかを自由に
設定することもできる。
In this embodiment, since the degree of conformity is defined as described above, it is possible to freely set the priority of the processing speed or the recognition rate by adjusting the combination of each element. Can also.

【0049】さらに、安定にテンプレートマッチングを
行うように戦略を決定するためには、テンプレートマッ
チングの処理に使用されるデータ集合を全ての組に対し
て評価する必要がある。
Further, in order to determine a strategy for performing template matching stably, it is necessary to evaluate a data set used for template matching processing for all sets.

【0050】図14に、間引き率と適合度の関係を示
す。図示のように、入力画像に対し、X方向間引き率が
2、Y方向間引き率が3に設定された場合、マッチング
処理に使用されるデータ集団は(イ)〜(ヘ)の6種類
となる。これら6種類のデータの全てに対し、安定なマ
ッチング処理を実現する必要がある場合には、適合度の
計算に際し6種類全てのマッチング処理を行い、数1の
計算式にあてはめることで実現する。つまり、不正解位
置での最も高い相関値62は、入力画像から間引きされ
た6種類のデータの中から、不正解の相関値で最も高い
値が選択されることになる。ただし、適合度を算出する
にあたって、上記のように全てのデータ集団を考慮する
ことは必須の要件ではない。
FIG. 14 shows the relationship between the thinning rate and the fitness. As illustrated, when the thinning rate in the X direction is set to 2 and the thinning rate in the Y direction is set to 3 for the input image, the data groups used in the matching process are six types (a) to (f). . When it is necessary to realize stable matching processing for all of these six types of data, the matching is calculated by performing all six types of matching processing and calculating the fitness by applying the equation (1). That is, as the highest correlation value 62 at the incorrect answer position, the highest value of the incorrect answer correlation values is selected from the six types of data thinned out from the input image. However, it is not an essential requirement to consider all data groups as described above when calculating the fitness.

【0051】本実例では、数1、数2に示した計算式で
適合度を算出したが、認識度の各要素に重み付けをした
り、単に「正解位置の相関値」と「不正解位置の最大相
関値」の差から認識度を求めるなど、種々の変形が可能
である。さらに、同様の性質をもつ適合度が算出できも
のでれば、全く異なる計算式によってもよい。
In this example, the degree of conformity was calculated by the formulas shown in Equations 1 and 2. However, each element of the degree of recognition was weighted, and the “correlation value of the correct position” and the “correlation value of the incorrect position” Various modifications are possible, such as obtaining the degree of recognition from the difference between the “maximum correlation values”. Furthermore, a completely different calculation formula may be used as long as the degree of fitness having the same properties can be calculated.

【0052】また、本実施例ではパラメータ組合せの最
適化の手法としてGAを採用したが、ある評価関数(適
合度)のパラメータを最適化する手法であれば、最急降
下法など、他の手法によってもよい。
In this embodiment, GA is adopted as a method of optimizing a parameter combination. However, if a method of optimizing a parameter of a certain evaluation function (fitness) is used, another method such as a steepest descent method may be used. Is also good.

【0053】以上のように、本発明の実施形態では、使
用する画像に最適な位置計測戦略を自動的に設定するこ
とが可能である。その戦略は、より高速に、より安定に
なるように最適化されており、従来作業者が行っていた
調整作業を簡単かつ効率よく行うことができる。
As described above, in the embodiment of the present invention, it is possible to automatically set the optimal position measurement strategy for the image to be used. The strategy is optimized so as to be faster and more stable, and the adjustment work conventionally performed by the worker can be performed simply and efficiently.

【0054】なお、図4の位置計測装置の各手段は、図
1のように複数の物理的手段により実現されてもよい。
あるいは、複数の手段による機能が一つの物理的手段に
纏められて実現されてもよい。ちなみに、本実施例では
一般のPC(動作周波数200MHz程度)を使用し、一
つの物理的手段で実現している。このPCにより最適な
位置計測戦略を求めるのに、テンプレート画像(60×
60画素)と探索画像(512×440画素)を使用し
た場合、500秒程度で済む。従来の人手により試行錯
誤しなが調整していた作業時間から見れば無に等しいも
のである。
Each unit of the position measuring device shown in FIG. 4 may be realized by a plurality of physical units as shown in FIG.
Alternatively, functions by a plurality of means may be realized by being combined into one physical means. Incidentally, in this embodiment, a general PC (operating frequency of about 200 MHz) is used and realized by one physical means. To find the optimal position measurement strategy using this PC, a template image (60 ×
When using the search image (512 × 440 pixels) and the search image (512 × 440 pixels), it takes only about 500 seconds. From the point of view of the working time that was adjusted by trial and error by a conventional manual operation, it is equivalent to nothing.

【0055】[0055]

【発明の効果】本発明の位置計測によれば、使用する画
像の特徴を維持ないし強調できるフィルタ処理の最適な
組合せを前もって自動的に決定できるので、精度の高い
位置計測が可能になると共に、画像の前処理に要してい
た作業時間を大幅に短縮でき、作業者はテンプレート領
域と探索領域を設定する簡単な作業ですむので熟練を要
しない。
According to the position measurement of the present invention, it is possible to automatically determine in advance the optimum combination of the filter processing capable of maintaining or enhancing the characteristics of the image to be used. The work time required for the pre-processing of the image can be greatly reduced, and the operator does not need to be skilled because it is a simple work of setting the template area and the search area.

【0056】また、画像の解像度(間引き率)の最適な
組合せ、さらには前処理のフィルタ処理と画像の解像度
の最適な組合せを自動的に決定できるので、対象の位置
計測を高速かつ安定に行える効果がある。
Further, since the optimum combination of the image resolution (thinning rate) and the optimum combination of the pre-processing filter processing and the image resolution can be automatically determined, the position measurement of the target can be performed quickly and stably. effective.

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

【図1】本発明の一実施例による位置計測装置の構成
図。
FIG. 1 is a configuration diagram of a position measuring device according to an embodiment of the present invention.

【図2】画像を用いた位置計測の一般的な処理手順を示
すフロー図。
FIG. 2 is a flowchart showing a general processing procedure of position measurement using an image.

【図3】従来の探索戦略の決定手順を示すフロー図。FIG. 3 is a flowchart showing a conventional search strategy determination procedure.

【図4】本発明の位置計測装置をプリント基板検査に適
用した概略の説明図。
FIG. 4 is a schematic explanatory view in which the position measuring device of the present invention is applied to printed circuit board inspection.

【図5】探索戦略のパラメータと探索戦略テーブルのデ
ータ構成を示す説明図。
FIG. 5 is an explanatory diagram showing search strategy parameters and a data configuration of a search strategy table.

【図6】複数のフィルタ処理のフィルタ係数を示す説明
図。
FIG. 6 is an explanatory diagram showing filter coefficients of a plurality of filter processes.

【図7】複数のフィルタ処理の組合せによる作用、効果
を示す説明図。
FIG. 7 is an explanatory diagram showing an operation and an effect obtained by combining a plurality of filter processes.

【図8】テンプレートと入力画像に適用する間引き率の
説明図。
FIG. 8 is an explanatory diagram of a thinning rate applied to a template and an input image.

【図9】一実施例による遺伝子の構成を示す説明図。FIG. 9 is an explanatory diagram showing the structure of a gene according to one example.

【図10】一実施例による遺伝的アルゴリズム(GA)
の処理手順を示すフロー図。
FIG. 10 shows a genetic algorithm (GA) according to one embodiment.
The flowchart which shows the processing procedure of.

【図11】GAの処理内容(交叉)を示す説明図。FIG. 11 is an explanatory diagram showing processing contents (crossover) of GA.

【図12】GAの処理内容(突然変異)を示す説明図。FIG. 12 is an explanatory diagram showing processing contents (mutation) of GA.

【図13】マッチング処理による相関値の分布を示す説
明図。
FIG. 13 is an explanatory diagram showing a distribution of correlation values by a matching process.

【図14】間引き率と適合度算出との関係を示す説明
図。
FIG. 14 is an explanatory diagram showing the relationship between the thinning rate and the calculation of the degree of matching.

【符号の説明】[Explanation of symbols]

1…探索戦略設定機構、2…サンプル画像取得手段、3
…位置計測テンプレート領域設定手段、4…テンプレー
ト探索領域設定手段、5…位置計測戦略自動決定手段、
6…記憶手段、7…位置計測機構、8…画像取得手段、
9…位置計測処理手段、10…結果出力手段、41…カ
メラ、42…位置計測装置、43…ステージ、44…デ
ィスプレイ、45…画像、46…テンプレート、47…
アライメントマーク、48…探索領域、49…プリント
基板、63…探索戦略テーブル。
1. Search strategy setting mechanism 2. Sample image acquisition means 3,
... Position measurement template area setting means, 4 ... Template search area setting means, 5 ... Position measurement strategy automatic determination means,
6 storage means, 7 position measurement mechanism, 8 image acquisition means,
9 Position measurement processing means, 10 Result output means, 41 Camera, 42 Position measurement device, 43 Stage, 44 Display, 45 Image, 46 Template, 47
Alignment mark, 48: Search area, 49: Printed circuit board, 63: Search strategy table.

フロントページの続き (72)発明者 大塚 裕史 茨城県日立市大みか町七丁目1番1号 株 式会社日立製作所日立研究所内 (72)発明者 小林 芳樹 茨城県日立市大みか町七丁目1番1号 株 式会社日立製作所日立研究所内 (72)発明者 清水 英志 茨城県日立市大みか町五丁目2番1号 日 立プロセスコンピュータエンジニアリング 株式会社内 (72)発明者 今井 聡彦 茨城県日立市大みか町五丁目2番1号 日 立プロセスコンピュータエンジニアリング 株式会社内 Fターム(参考) 2F065 AA03 BB27 CC01 DD06 FF04 JJ03 JJ19 JJ26 QQ24 QQ31 QQ33 QQ39 QQ41 SS13 TT02 5B057 AA03 BA02 BA24 CD07 CE06 DA07 DA16 DC33 Continued on the front page (72) Inventor Hiroshi Otsuka 7-1-1, Omika-cho, Hitachi City, Ibaraki Prefecture Inside Hitachi Research Laboratory, Hitachi, Ltd. (72) Inventor Yoshiki Kobayashi 7-1-1, Omika-cho, Hitachi City, Ibaraki Prefecture Hitachi, Ltd.Hitachi Research Laboratories (72) Inventor Eiji Shimizu 5-2-1 Omikacho, Hitachi City, Ibaraki Prefecture Hitachi Process Computer Engineering Co., Ltd. (72) Inventor Toshihiko Imai 5-chome Omikamachi, Hitachi City, Ibaraki Prefecture No. 2 No.1 Hitachi Process Computer Engineering Co., Ltd. F term (reference) 2F065 AA03 BB27 CC01 DD06 FF04 JJ03 JJ19 JJ26 QQ24 QQ31 QQ33 QQ39 QQ41 SS13 TT02 5B057 AA03 BA02 BA24 CD07 CE06 DA07 DA16 DC33

Claims (8)

【特許請求の範囲】[Claims] 【請求項1】 対象画像を入力して所定の前処理を行
い、前記対象画像の所定位置の特徴を含むテンプレート
による探索処理を行って、前記所定位置を計測する位置
計測方法において、 予め、前記対象画像のサンプル画像に基づいて設定した
テンプレートと探索領域に対し、複数のフィルタ処理の
種類と順番からなるパラメータの組み合わせを、画像の
特徴が維持または強調されるように選択し、 前記対象画像による位置計測に際して、選択されたパラ
メータの組み合せによって前記前処理を行うことを特徴
とする位置計測方法。
1. A position measurement method for inputting a target image, performing predetermined preprocessing, performing a search process using a template including a feature of a predetermined position of the target image, and measuring the predetermined position, For the template and the search area set based on the sample image of the target image, a combination of parameters consisting of a plurality of types and order of filter processing is selected so that the characteristics of the image are maintained or emphasized. A position measurement method, wherein the pre-processing is performed based on a combination of selected parameters at the time of position measurement.
【請求項2】 対象画像を入力して所定の前処理を行
い、前記対象画像の所定位置の特徴を含むテンプレート
による探索処理を行って、前記所定位置を計測する位置
計測方法において、 予め、前記対象画像のサンプル画像に基づいて設定した
テンプレートと探索領域に対し、前記前処理のための複
数のフィルタ処理の種類と順番、及び前記探索処理のた
めの画像のX方向及びY方向の間引き率や間引き位置を
含むパラメータの組合せを、画像の特徴を維持しながら
前記探索処理が高速化されるように選択し、 前記対象画像による位置計測に際し、選択されたパラメ
ータの組み合せによって前記前処理と前記探索処理を行
うことを特徴とする位置計測方法。
2. A position measuring method for measuring a predetermined position by inputting a target image, performing a predetermined pre-processing, performing a search process using a template including a feature of a predetermined position of the target image, and measuring the predetermined position. For the template and the search area set based on the sample image of the target image, the types and order of the plurality of filter processes for the preprocessing, the thinning rate of the image for the search process in the X direction and the Y direction, A combination of parameters including a thinned-out position is selected so that the search processing is speeded up while maintaining the characteristics of the image. In the position measurement using the target image, the pre-processing and the search are performed by a combination of the selected parameters. A position measurement method comprising performing processing.
【請求項3】 請求項2において、 まず、前記パラメータの組合せを適用して使用する画像
の解像度を低くした粗の位置計測を行い、その結果によ
り前記探索領域を狭めると共に前記解像度を復旧して密
の位置計測を行うことを特徴とする位置計測方法。
3. The method according to claim 2, wherein a coarse position measurement is performed by lowering the resolution of an image to be used by applying the combination of the parameters, and as a result, the search area is narrowed and the resolution is restored. A position measurement method characterized by performing dense position measurement.
【請求項4】 請求項1、2または3において、 前記パラメータの組合せは、前記テンプレートと前記サ
ンプル画像とのマッチング処理による認識度が高くかつ
処理時間短くなるように選択することを特徴とする位置
計測方法。
4. The position according to claim 1, wherein the combination of the parameters is selected such that the degree of recognition by the matching process between the template and the sample image is high and the processing time is short. Measurement method.
【請求項5】 請求項4において、 前記認識度は、前記マッチング処理による前記所定位置
における相関値と、前記所定位置以外における最大相関
値との差に依存して決定される位置計測方法。
5. The position measurement method according to claim 4, wherein the degree of recognition is determined depending on a difference between a correlation value at the predetermined position by the matching processing and a maximum correlation value at positions other than the predetermined position.
【請求項6】 請求項5において、 前記所定位置以外における最大相関値は、使用する画像
に設定される間引き率から複数の画像データが得られる
場合に、これら全ての画像データに対するマッチング処
理の結果から得ることを特徴とする位置計測方法。
6. The image processing apparatus according to claim 5, wherein the maximum correlation value at a position other than the predetermined position is a result of a matching process for all the image data when a plurality of image data are obtained from a thinning rate set for an image to be used. A position measuring method characterized by obtaining from a position.
【請求項7】 対象画像を入力して所定の前処理を行
い、前記対象画像の所定位置の特徴を含むテンプレート
による探索を行なって、前記所定位置を計測する位置計
測装置において、 前記対象画像のサンプル画像に基づいて位置計測に使用
するテンプレートを設定するテンプレート領域設定手段
と、前記テンプレートを走査する探索領域を設定するテ
ンプレート探索領域設定手段と、これら手段により設定
されたテンプレートと探索領域を用い、前記前処理とし
て前記サンプル画像に施すフィルタ処理の種類と順番を
含むパラメータの組合せを画像の特徴が維持または強調
されるように選択するパラメータ選択手段とを有する探
索戦略決定機構を具備したことを特徴とする位置計測装
置。
7. A position measuring device that inputs a target image, performs predetermined preprocessing, performs a search using a template including a feature of a predetermined position of the target image, and measures the predetermined position. Template region setting means for setting a template used for position measurement based on the sample image, template search area setting means for setting a search area for scanning the template, and a template and a search area set by these means, A parameter selection unit for selecting a combination of parameters including a type and an order of filter processing to be performed on the sample image as the pre-processing so that characteristics of the image are maintained or emphasized. Position measuring device.
【請求項8】 対象画像を入力して所定の前処理を行
い、前記対象画像の所定位置の特徴を含むテンプレート
による探索処理を行なう位置計測機構を備え、前記所定
位置を計測する位置計測装置において、 前記対象画像のサンプル画像に基づいて位置計測に使用
するテンプレートを設定するテンプレート領域設定手段
と、前記テンプレートを走査する探索領域を設定するテ
ンプレート探索領域設定手段と、これら手段により設定
されたテンプレートと探索領域を用い、前記前処理とし
て前記サンプル画像に施すフィルタ処理の種類と順番及
び前記サンプル画像のX方向及びY方向の間引き率や間
引き位置を含むパラメータの組合せを画像の特徴を維持
しながら前記探索処理を高速化できるように選択するパ
ラメータ選択手段とを有する探索戦略決定機構を具備
し、 前記探索戦略決定機構で選択されたパラメータの組合せ
に従って、前記位置計測機構における前処理と探索処理
を行うように構成したことを特徴とする位置計測装置。
8. A position measuring device for inputting a target image, performing predetermined pre-processing, performing a search process using a template including a feature of a predetermined position of the target image, and measuring the predetermined position. A template area setting means for setting a template used for position measurement based on a sample image of the target image, a template search area setting means for setting a search area for scanning the template, and a template set by these means. Using a search area, the type and order of filter processing to be performed on the sample image as the pre-processing and a combination of parameters including a thinning rate and a thinning position in the X and Y directions of the sample image are maintained while maintaining the characteristics of the image. Search parameter selection means for selecting so as to speed up the search process Comprises a decision mechanism, the search according to a combination of the selected parameter strategy determination mechanism, the position measuring apparatus characterized by being configured to perform search processing and pre-processing of the position measurement mechanism.
JP10329261A 1998-11-19 1998-11-19 Position measuring method and device Pending JP2000155011A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10329261A JP2000155011A (en) 1998-11-19 1998-11-19 Position measuring method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10329261A JP2000155011A (en) 1998-11-19 1998-11-19 Position measuring method and device

Publications (1)

Publication Number Publication Date
JP2000155011A true JP2000155011A (en) 2000-06-06

Family

ID=18219478

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10329261A Pending JP2000155011A (en) 1998-11-19 1998-11-19 Position measuring method and device

Country Status (1)

Country Link
JP (1) JP2000155011A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000207376A (en) * 1999-01-08 2000-07-28 Nippon Telegr & Teleph Corp <Ntt> Method and device for improving performance of system and storage medium recording system performance improving program
JP2004534337A (en) * 2001-07-04 2004-11-11 コーニンクレッカ フィリップス エレクトロニクス エヌ ヴィ Optimization of reference marking selection used to predict imager position
JPWO2006001107A1 (en) * 2004-06-24 2007-08-02 株式会社イシダ X-ray inspection apparatus and method for generating image processing procedure of X-ray inspection apparatus
EP2077442A1 (en) * 2006-10-27 2009-07-08 Bridgestone Corporation Separation filter deciding device and tire inspecting device
JP2012015698A (en) * 2010-06-30 2012-01-19 Meidensha Corp Pantograph detection device and method thereof
JP2020016948A (en) * 2018-07-23 2020-01-30 株式会社キーエンス Image inspection device

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000207376A (en) * 1999-01-08 2000-07-28 Nippon Telegr & Teleph Corp <Ntt> Method and device for improving performance of system and storage medium recording system performance improving program
JP2004534337A (en) * 2001-07-04 2004-11-11 コーニンクレッカ フィリップス エレクトロニクス エヌ ヴィ Optimization of reference marking selection used to predict imager position
JPWO2006001107A1 (en) * 2004-06-24 2007-08-02 株式会社イシダ X-ray inspection apparatus and method for generating image processing procedure of X-ray inspection apparatus
US7570787B2 (en) 2004-06-24 2009-08-04 Ishida Co., Ltd. X-ray inspection apparatus and method for creating an image processing procedure for the X-ray inspection apparatus
EP2077442A1 (en) * 2006-10-27 2009-07-08 Bridgestone Corporation Separation filter deciding device and tire inspecting device
EP2077442A4 (en) * 2006-10-27 2014-10-01 Bridgestone Corp Separation filter deciding device and tire inspecting device
JP2012015698A (en) * 2010-06-30 2012-01-19 Meidensha Corp Pantograph detection device and method thereof
JP2020016948A (en) * 2018-07-23 2020-01-30 株式会社キーエンス Image inspection device
JP7080123B2 (en) 2018-07-23 2022-06-03 株式会社キーエンス Image inspection equipment

Similar Documents

Publication Publication Date Title
JP4302965B2 (en) Semiconductor device manufacturing method and manufacturing system thereof
US6275600B1 (en) Measuring image characteristics of output from a digital printer
JP2005156334A (en) Pseudo defective image automatic creation device and imaging inspection device
JP3927541B2 (en) Laser beam positioning device for laser processing equipment
WO2020121564A1 (en) Dimension measurement device, dimension measurement program, and semiconductor manufacturing system
JP2007334766A (en) Abnormal area detection device and abnormal area detection method
JP4982213B2 (en) Defect inspection apparatus and defect inspection method
CN110689524B (en) No-reference online image definition evaluation method and system
US11663713B2 (en) Image generation system
CN107544432A (en) Life determining apparatus, life determining method and computer-readable recording medium
CN100372089C (en) Pattern evaluating apparatus, pattern evaluating method and program
JPH03257304A (en) Position recognizing apparatus
JP2011014152A (en) Abnormal region detecting device and abnormal region detection method
JP2001188906A (en) Method and device for automatic image calssification
JP2000155011A (en) Position measuring method and device
JPH06160067A (en) Method for measuring size of circuit pattern
JP2002243428A (en) Method and device for pattern inspection
JP2008116206A (en) Apparatus, method, and program for pattern size measurement
CN113674174B (en) Line scanning cylinder geometric correction method and device based on significant line matching
JPH11257939A (en) Measuring method for pattern dimension
WO2021140823A1 (en) Pattern edge detecting method, pattern edge detecting device, and recording medium having program for causing computer to execute pattern edge detection recorded thereon
JP2004357050A (en) System and method for evaluating waveform quality
JPH06160047A (en) Pattern matching method
JP2855590B2 (en) Correlation analyzer
US20220254041A1 (en) Image processing device, storage medium, and image processing method

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20040127