JP2002236908A - Master registering method for searching, and object retrieving method and testing method - Google Patents

Master registering method for searching, and object retrieving method and testing method

Info

Publication number
JP2002236908A
JP2002236908A JP2001033025A JP2001033025A JP2002236908A JP 2002236908 A JP2002236908 A JP 2002236908A JP 2001033025 A JP2001033025 A JP 2001033025A JP 2001033025 A JP2001033025 A JP 2001033025A JP 2002236908 A JP2002236908 A JP 2002236908A
Authority
JP
Japan
Prior art keywords
master
edge
change angle
density change
search
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
JP2001033025A
Other languages
Japanese (ja)
Inventor
Koichi Wakitani
康一 脇谷
Takashi Anezaki
隆 姉崎
Noriaki Yugawa
典昭 湯川
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP2001033025A priority Critical patent/JP2002236908A/en
Publication of JP2002236908A publication Critical patent/JP2002236908A/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 provide a master registering method capable of eliminating noise even in the case where the condition of illumination or the like is not good. SOLUTION: In registering a searching master, an image S of a photographed master M is divided into six small areas S1 to S6, and edge point sequence constituting the edge in the respective small areas is detected to obtain the density change angle in the direction of changing the image density in each detected edge point and obtain frequency distribution graphs a1 to a6 of the density change angle. The edge point (indicated by a solid line in b1 to b6) having the same density change angle as the density change angle making the frequency distribution maximum is registered as a feature point of the master.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、部品実装時の位置
決め、プリント基板・液晶パネル・PDP(プラズマデ
ィスプレイパネル)等のアライメントを、画像処理を用
いて行う際に、比較するためのサーチ用マスタを登録す
る方法並びに物体の検索方法および検査方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a search master for comparing positioning at the time of component mounting and alignment of a printed circuit board, a liquid crystal panel, a PDP (plasma display panel) and the like by using image processing. And a method of searching for and inspecting an object.

【0002】[0002]

【従来の技術】従来、サーチ用マスタを登録する場合、
マスタの登録範囲内で、エッジ点の検出を行い、検出さ
れたエッジ点の強度が予め設定されたしきい値以上であ
るエッジ点を、マスタの特徴点として登録されていた。
2. Description of the Related Art Conventionally, when registering a search master,
An edge point is detected within the registration range of the master, and an edge point at which the intensity of the detected edge point is equal to or greater than a predetermined threshold value is registered as a feature point of the master.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、マスタ
として登録する物品の照明等の条件は、必ずしも最良で
はなく、コントラストの強い領域と弱い領域とが混在す
る。したがって、コントラストの弱い領域のエッジ点を
特徴点として登録する場合、その弱い領域に存在するノ
イズ成分のエッジを検出しないようにすると、コントラ
ストの強い領域のエッジ点を検出することができなかっ
たり、またコントラストの強い領域のエッジ点を検出す
るようにすると、ノイズ成分のエッジ点を特徴点として
登録してしまうという問題があった。
However, the conditions such as the illumination of the article registered as the master are not always the best, and a high contrast area and a low contrast area are mixed. Therefore, when registering an edge point of a low contrast area as a feature point, if an edge of a noise component existing in the weak area is not detected, an edge point of a high contrast area cannot be detected, Further, when an edge point of a region having a high contrast is detected, there is a problem that an edge point of a noise component is registered as a feature point.

【0004】そこで、本発明は、照明等の条件が良くな
い場合でも、ノイズを除去し得るマスタの登録方法並び
に物体の検索方法および検査方法を提供することを目的
とする。
Accordingly, an object of the present invention is to provide a method of registering a master, a method of searching for an object, and a method of inspecting an object capable of removing noise even when conditions such as lighting are not good.

【0005】[0005]

【課題を解決するための手段】上記課題を解決するため
に、本発明の請求項1に記載のサーチ用マスタ登録方法
は、予め登録されたパターン(以下、マスタという)
を、入力された画像の中から検索するサーチ手法におけ
るマスタの登録方法であって、マスタを撮影した画像を
複数個の小領域に分割するとともに、これら各小領域内
でのエッジを構成するエッジ点列を検出し、これら検出
された各エッジ点における画像濃度が変化する方向の濃
度変化角度を求めるとともに、この濃度変化角度の度数
分布を求め、この度数分布が最大となる濃度変化角度と
同じ濃度変化角度を有するエッジ点をマスタの特徴点と
して登録する方法である。
In order to solve the above-mentioned problems, a search master registration method according to a first aspect of the present invention uses a pre-registered pattern (hereinafter, referred to as a master).
Is a method of registering a master in a search method for searching from an input image, wherein an image obtained by capturing the master is divided into a plurality of small areas, and an edge constituting an edge in each of the small areas. A point sequence is detected, and a density change angle in a direction in which the image density changes at each of the detected edge points is obtained, and a frequency distribution of the density change angle is obtained. In this method, an edge point having a density change angle is registered as a feature point of a master.

【0006】また、本発明の請求項2に記載のサーチ用
マスタ登録方法は、予め登録されたパターン(以下、マ
スタという)を、入力された画像の中から検索するサー
チ手法におけるマスタの登録方法であって、マスタを撮
影した画像を複数個の小領域に分割するとともに、これ
ら各小領域内でのエッジを構成するエッジ点列を検出
し、これら検出された各エッジ点における画像濃度が変
化する方向の濃度変化角度を求めるとともに、この濃度
変化角度の度数分布を求め、この度数分布が所定のしき
い値を越える濃度変化角度と同じ濃度変化角度を有する
エッジ点をマスタの特徴点として登録する方法である。
According to a second aspect of the present invention, there is provided a method for registering a master in a search method in which a previously registered pattern (hereinafter, referred to as a master) is searched from an input image. In addition, the image obtained by capturing the master is divided into a plurality of small areas, and a sequence of edge points constituting edges in each of the small areas is detected, and the image density at each of the detected edge points changes. And the frequency distribution of the density change angle is obtained, and an edge point having the same density change angle as the density change angle at which the frequency distribution exceeds a predetermined threshold value is registered as a feature point of the master. How to

【0007】上記請求項1または請求項2に記載のサー
チ用マスタ登録方法によれば、サーチ用マスタを撮影し
た画像の各小領域においてエッジ点を検出し、これら検
出されたエッジ点での濃度変化角度を求めるとともに、
この濃度変化角度の度数分布が最大である、または所定
のしきい値を越えるエッジ点をマスタの特徴点として、
すなわち外形データとして登録するようにしたので、マ
スタに対する照明状態にかかわらずエッジ部分を良好に
抽出し得るとともに、ノイズについても確実に除去する
ことができる。
According to the search master registration method of the present invention, an edge point is detected in each small area of an image obtained by photographing the search master, and a density at the detected edge point is detected. Find the change angle,
An edge point at which the frequency distribution of the density change angle is maximum or exceeds a predetermined threshold value is defined as a feature point of the master.
That is, since the data is registered as the external shape data, the edge portion can be satisfactorily extracted regardless of the illumination state with respect to the master, and noise can be reliably removed.

【0008】また、本発明の請求項3に記載のサーチ用
マスタ登録方法は、予め登録されたパターン(以下、マ
スタという)を、入力された画像の中から検索するサー
チ手法におけるマスタの登録方法であって、マスタを撮
影した画像を複数個の小領域に分割するとともに、これ
ら各小領域内でのエッジを構成するエッジ点列を検出
し、これら検出された各エッジ点における画像濃度が変
化する方向の濃度変化角度を求めるとともに、この濃度
変化角度の度数分布を求め、この度数分布が最大となる
濃度変化角度と同じ濃度変化角度を有するエッジ点を抽
出するとともに、これら抽出されたエッジ点間の距離
が、所定のしきい値範囲内にあるものを同一領域と判断
し、同一領域と判断された部分領域におけるエッジ点の
全個数が所定個数より多い場合に、その部分領域に存在
するエッジ点をマスタの特徴点として登録する方法であ
る。
According to a third aspect of the present invention, there is provided a method for registering a master in a search method in which a previously registered pattern (hereinafter, referred to as a master) is searched from an input image. In addition, the image obtained by capturing the master is divided into a plurality of small areas, and a sequence of edge points constituting edges in each of the small areas is detected, and the image density at each of the detected edge points changes. And the frequency distribution of the density change angle is obtained, and the edge points having the same density change angle as the density change angle at which the frequency distribution becomes maximum are extracted. If the distance between them is within a predetermined threshold range, the area is determined to be the same area. If you have a method of registering the edge points present in the partial area as the feature points of the master.

【0009】また、本発明の請求項4に記載のサーチ用
マスタ登録方法は、予め登録されたパターン(以下、マ
スタという)を、入力された画像の中から検索するサー
チ手法におけるマスタの登録方法であって、マスタを撮
影した画像を複数個の小領域に分割するとともに、これ
ら各小領域内でのエッジを構成するエッジ点列を検出
し、これら検出された各エッジ点における画像濃度が変
化する方向の濃度変化角度を求めるとともに、この濃度
変化角度の度数分布を求め、この度数分布が所定のしき
い値を越える濃度変化角度と同じ濃度変化角度を有する
エッジ点を抽出するとともに、これら抽出されたエッジ
点間の距離が、所定のしきい値範囲内にあるものを同一
領域と判断し、同一領域と判断された部分領域における
エッジ点の全個数が所定個数より多い場合に、その部分
領域に存在するエッジ点をマスタの特徴点として登録す
る方法である。
According to a fourth aspect of the present invention, there is provided a method for registering a master for search in a search method for searching a previously registered pattern (hereinafter, referred to as a master) from an input image. In addition, the image obtained by capturing the master is divided into a plurality of small areas, and a sequence of edge points constituting edges in each of the small areas is detected, and the image density at each of the detected edge points changes. And a frequency distribution of the density change angle is obtained, and an edge point having the same density change angle as the density change angle at which the frequency distribution exceeds a predetermined threshold value is extracted. If the distance between the specified edge points is within a predetermined threshold range, the area is determined to be the same area. If more than the constant number is a method for registering the edge points present in the partial area as the feature points of the master.

【0010】上記請求項3または請求項4に記載のサー
チ用マスタ登録方法によれば、サーチ用マスタを撮影し
た画像の各小領域においてエッジ点を検出し、これら検
出されたエッジ点での濃度変化角度を求めるとともに、
この濃度変化角度の度数分布が最大である、または所定
のしきい値を越えるエッジ点を抽出し、さらにエッジ点
間の距離が所定のしきい値範囲内のものを同一領域内に
あると判断するとともに、この同一領域内と判断された
部分領域ごとにエッジ点の全個数を求めて、エッジ部で
あると判断し得る設定個数より多いか否かを判断するよ
うにしたので、マスタに対する照明状態にかかわらずエ
ッジ部分を良好に抽出し得るとともに、ノイズを確実に
除去することができる。
According to the search master registration method of the present invention, an edge point is detected in each small area of an image obtained by photographing the search master, and the density at the detected edge point is detected. Find the change angle,
An edge point whose frequency distribution of the density change angle is maximum or exceeds a predetermined threshold value is extracted, and an edge point whose distance between the edge points is within a predetermined threshold value is determined to be in the same area. In addition, the total number of edge points is determined for each of the partial areas determined to be within the same area, and it is determined whether the number is greater than the set number that can be determined to be an edge portion. Regardless of the state, the edge portion can be satisfactorily extracted and noise can be reliably removed.

【0011】また、本発明の請求項5に記載の物体の検
索方法は、請求項1乃至4のいずれかに記載の登録方法
を用いてパターンをマスタとして登録する工程と、この
工程により登録されたマスタと同一形状を有する物体を
検索する検索工程とからなる検索方法である。
According to a fifth aspect of the present invention, there is provided a method for retrieving an object, comprising: registering a pattern as a master using the registration method according to any one of the first to fourth aspects; A search step of searching for an object having the same shape as the master.

【0012】上記請求項5に記載の物体の検索方法によ
れば、確実に登録されたパターンを用いて物体を検索す
るため、物体の検索を正確に行うことができる。さら
に、本発明の請求項6に記載の物体の検査方法は、請求
項1乃至4のいずれかに記載の登録方法を用いてパター
ンをマスタとして登録する工程と、この登録工程により
登録されたマスタと同一形状を有する物体を検索する検
索工程と、上記登録工程により登録されたマスタと上記
検索工程により検索されたマスタと同一形状を有する物
体とを比較することにより、物体の状態を検査する検査
工程とからなる検査方法である。
According to the object search method of the present invention, since the object is searched for using the registered pattern, the object search can be performed accurately. Further, according to a method for inspecting an object according to a sixth aspect of the present invention, a step of registering a pattern as a master using the registration method according to any one of the first to fourth aspects, and a step of registering the master registered by the registration step A search step for searching for an object having the same shape as the above, and an inspection for checking the state of the object by comparing a master registered in the registration step with an object having the same shape as the master searched in the search step. This is an inspection method including steps.

【0013】また本発明の請求項7に記載の物体の検査
方法は、請求項6に記載の検査方法の対象である物体
を、プリント基板、液晶パネル、またはプラズマディス
プレイパネルとしたものである。
According to a seventh aspect of the present invention, an object to be inspected according to the sixth aspect is a printed circuit board, a liquid crystal panel, or a plasma display panel.

【0014】上記請求項6および7に記載の物体の検査
方法によれば、確実に登録されたパターンを用いて物体
を検査するため、物体、例えばプリント基板、液晶パネ
ル、またはプラズマディスプレイパネルの検査を正確に
行うことができる。
According to the method for inspecting an object according to the sixth and seventh aspects, the object is inspected by using the registered pattern without fail, so that the object, for example, a printed circuit board, a liquid crystal panel, or a plasma display panel is inspected. Can be performed accurately.

【0015】[0015]

【発明の実施の形態】以下、本発明の第1の実施の形態
におけるサーチ用マスタ登録方法を、図1〜図4に基づ
き説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS A search master registration method according to a first embodiment of the present invention will be described below with reference to FIGS.

【0016】このマスタ登録方法は、サーチの比較対象
物となるマスタを撮影するとともにこの撮影された画像
に画像処理を施して特徴点を抽出し、例えばその外形デ
ータをサーチ用マスタのパターンデータとして登録する
方法である。図1に示すように、本実施の形態における
比較対象物すなわちマスタMとしては、例えば平面視が
十字形状をしたものとして説明するとともに、その撮影
画像Sの左中および左下の箇所に、小さい丸いノイズN
があるものとして説明する。
In this master registration method, a master to be compared with a search is photographed, and the photographed image is subjected to image processing to extract feature points. For example, the outline data is used as pattern data of a search master. How to register. As shown in FIG. 1, as the comparison object, that is, the master M, in the present embodiment, for example, a cross-shaped plan view will be described. Noise N
It will be explained as if there is.

【0017】まず、マスタ登録方法に使用する登録装置
の概略構成について説明する。このマスタ登録装置に
は、マスタを撮影する撮影カメラ(例えば、CCDカメ
ラが用いられる)と、この撮影カメラにて撮影された画
像を取り込むとともに所定の画像処理を施しその外形で
あるエッジ部分を多数の点列として検出する画像処理部
と、この画像処理部にて検出された各エッジ点における
画像濃度が最大に変化する方向の濃度変化角度を求める
角度検出部と、この角度検出部にて得られた各エッジ点
での濃度変化角度の度数分布を求める度数演算部と、こ
の度数演算部にて得られた度数分布が最大である濃度変
化角度と同一の濃度変化角度を有するエッジ点を抽出す
るエッジ点抽出部と、このエッジ点抽出部にて得られた
エッジ点をマスタの特徴点として、すなわち形状データ
として登録する特徴登録部とが具備されている。なお、
上記画像処理部、検出部、演算部、抽出部および登録部
については、コンピュータ装置に具備されるハードウエ
アおよびソフトウエアにて実現されるものである。
First, a schematic configuration of a registration device used for the master registration method will be described. The master registration device includes a photographing camera (for example, a CCD camera) for photographing the master, and an image photographed by the photographing camera. An image processing unit that detects the point sequence as a point sequence, an angle detection unit that calculates a density change angle in a direction in which the image density at each edge point detected by the image processing unit changes maximum, and an angle detection unit that obtains A frequency calculation unit for obtaining a frequency distribution of the density change angle at each of the obtained edge points, and an edge point having the same density change angle as the density change angle at which the frequency distribution obtained by the frequency calculation unit is the maximum is extracted. And a feature registration unit that registers the edge points obtained by the edge point extraction unit as feature points of the master, that is, as shape data. In addition,
The image processing unit, the detection unit, the calculation unit, the extraction unit, and the registration unit are realized by hardware and software provided in a computer device.

【0018】次に、上記マスタ登録装置を用いてマスタ
の登録方法を、図2、図3および図4のフロー図に基づ
き説明する。まず、マスタをCCDカメラにて撮影した
画像データが画像処理部にて取り込まれ、ここで複数の
小領域に分割された後(ステップ1)、各小領域ごとに
エッジ部分が点列として検出されるとともに、これら各
小領域にて検出されたエッジ点における濃度変化角度が
角度検出部にて求められる(ステップ2)。
Next, a method of registering a master using the above-described master registration device will be described with reference to the flowcharts of FIGS. 2, 3 and 4. First, image data obtained by photographing a master with a CCD camera is taken in by an image processing unit and divided into a plurality of small areas (step 1), and an edge portion is detected as a point sequence for each of the small areas. At the same time, the angle change section determines the density change angle at the edge point detected in each of the small areas (step 2).

【0019】本第1の実施の形態におけるマスタMの画
像Sは、図1にて示したように、十字形状のものであ
り、その画面全体が例えば6つの小領域に分割されるも
のとする。なお、小領域を識別するために、左上→左中
→左下→右上→右中→右下の順番で、第1〜第6小領域
(S1〜S6)と称する。
The image S of the master M in the first embodiment has a cross shape as shown in FIG. 1, and the entire screen is divided into, for example, six small areas. . In order to identify a small area, the areas are referred to as first to sixth small areas (S1 to S6) in the order of upper left → middle left → lower left → upper right → middle right → lower right.

【0020】また、濃度変化角度については、例えば、
図2に示すように、各小領域におけるエッジ点での濃度
が、左から右に変化する場合の角度を0度、上から下に
変化する場合の角度を90度、右から左に変化する場合
の角度を180度および下から上に変化する場合の角度
を270度とする。
As for the density change angle, for example,
As shown in FIG. 2, when the density at the edge point in each small area changes from left to right, the angle changes from 0 to 90 degrees, from top to bottom changes from 90 degrees, and changes from right to left. The angle in the case is 180 degrees and the angle in the case of changing from bottom to top is 270 degrees.

【0021】次に、上記検出された各エッジ点での濃度
変化角度の度数分布が度数演算部にて求められるととも
に(ステップ3)、この度数分布が一番大きい濃度変化
角度のエッジ点が抽出され、そして特徴登録部にて、上
記抽出されたエッジ点がマスタの特徴点として、すなわ
ち外形データとして登録される(ステップ4)。
Next, the frequency distribution of the density change angle at each of the detected edge points is obtained by the frequency calculation unit (step 3), and the edge point of the density change angle having the largest frequency distribution is extracted. Then, the extracted edge points are registered as characteristic points of the master, that is, as outline data in the characteristic registration unit (step 4).

【0022】例えば、第1小領域S1については、図3
の(a1)の度数分布グラフにて示すように、90度の
箇所が最大値になっており、したがって同図の(b1)
の実線に示すように、水平方向のエッジ部が特徴点とし
て登録される。
For example, regarding the first small area S1, FIG.
As shown in the frequency distribution graph of (a1), the maximum value is at the point of 90 degrees, and therefore, (b1) of FIG.
As shown by a solid line, an edge in the horizontal direction is registered as a feature point.

【0023】また、第2小領域S2については、(a
2)の度数分布グラフにて示すように、0度の箇所が最
大値になっており、したがって(b2)の実線に示すよ
うに、上下方向のエッジ部が特徴点として登録される。
In the second small area S2, (a
As shown in the frequency distribution graph of 2), the location at 0 degrees has the maximum value, and therefore, as shown by the solid line in (b2), the vertical edge portion is registered as a feature point.

【0024】この第2小領域S2については、(b2)
に示すように、左下側にノイズ(小さい丸印にて示す)
N1が存在するが、このノイズについての度数分布が他
のエッジ部に吸収されて0度の箇所だけが最大値になる
ため、ノイズが特徴点として登録されることはない。す
なわち、ノイズが除去されたことになる。
For the second small area S2, (b2)
As shown in the figure, noise is shown on the lower left side (indicated by a small circle)
Although N1 exists, since the frequency distribution of this noise is absorbed by other edge portions and only the portion at 0 ° has the maximum value, the noise is not registered as a feature point. That is, the noise has been removed.

【0025】また、第3小領域S3についても、第2小
領域S2と同様に、左下方にノイズN2が存在するが、
やはり、このノイズの度数分布についても他のエッジ部
に吸収されてしまい、0度の箇所だけが最大値となり、
したがって(b3)の実線にて示すように、上下方向の
エッジ部だけが特徴点として登録される。
In the third small area S3, as in the second small area S2, a noise N2 exists at the lower left.
Again, the frequency distribution of this noise is also absorbed by other edge parts, and only the point at 0 degree has the maximum value,
Therefore, as shown by the solid line in (b3), only the vertical edge portion is registered as a feature point.

【0026】なお、第4〜第6小領域(S4〜S6)に
ついても同様であり、(a4)〜(a6)に度数分布を
示し、(b4)〜(b6)に抽出されるエッジ部を示
す。このように、サーチ用マスタを撮影した画像の各小
領域においてエッジ点を検出し、これら検出されたエッ
ジ点での濃度変化角度を求めるとともに、この濃度変化
角度の度数分布が最大となるエッジ点をマスタの特徴点
として、すなわち外形データとして登録するようにした
ので、マスタに対する照明状態にかかわらず所定のエッ
ジ部分を良好に抽出し得るとともに、ノイズについても
確実に除去することができる。
The same applies to the fourth to sixth small areas (S4 to S6). The frequency distributions are shown in (a4) to (a6), and the edge portions extracted in (b4) to (b6) are Show. As described above, the edge points are detected in each small region of the image obtained by capturing the search master, the density change angle at each of the detected edge points is determined, and the edge point at which the frequency distribution of the density change angle is the maximum is obtained. Are registered as the feature points of the master, that is, as the outline data, so that a predetermined edge portion can be satisfactorily extracted irrespective of the lighting state of the master, and noise can be reliably removed.

【0027】次に、本発明の第2の実施の形態における
サーチ用マスタ登録方法を、図5および図6に基づき説
明する。上記第1の実施の形態においては、エッジ点を
検出する際に、度数分布が最大である濃度変化角度に対
応するものを検出したが、本第2の実施の形態では、度
数分布が所定のしきい値以上となるものを検出するもの
であり、基本的な構成および登録方法は、第1の実施の
形態にて説明したものと同一であるため、構成について
は説明を省略するとともに、登録方法については、図6
のフロー図に基づき、異なる箇所に着目して説明する。
Next, a method of registering a master for search according to the second embodiment of the present invention will be described with reference to FIGS. In the first embodiment, when the edge point is detected, the one corresponding to the density change angle at which the frequency distribution is the maximum is detected. However, in the second embodiment, the frequency distribution is determined by a predetermined value. This is to detect a threshold value or more, and the basic configuration and registration method are the same as those described in the first embodiment. See Figure 6 for the method.
Based on the flow chart of FIG.

【0028】すなわち、まず、第1の実施の形態と同様
に、マスタをCCDカメラにて撮影した画像データが画
像処理部にて取り込まれ、ここで複数の小領域に分割さ
れた後(ステップ11)、各小領域ごとにエッジ部分が
点列として検出されるとともに、これら各小領域にて検
出されたエッジ点における濃度変化角度が角度検出部に
て求められた後(ステップ12)、各エッジ点での濃度
変化角度の度数分布が度数演算部にて求められる(ステ
ップ13)。
That is, as in the first embodiment, first, image data obtained by photographing a master with a CCD camera is taken in by an image processing unit and divided into a plurality of small areas (step 11). ), An edge portion is detected as a point sequence for each small area, and a density change angle at an edge point detected in each of the small areas is obtained by an angle detection unit (step 12). The frequency distribution of the density change angle at the point is obtained by the frequency calculation unit (step 13).

【0029】そして、次に、図5に示すように、検出さ
れたエッジ点での濃度変化角度の度数分布において、所
定のしきい値(設定値)Lを越える濃度変化角度を有す
るエッジ点を抽出するようにして特徴点として登録する
ものである(ステップ14)。
Next, as shown in FIG. 5, in the frequency distribution of the density change angle at the detected edge point, an edge point having a density change angle exceeding a predetermined threshold value (set value) L is determined. The feature points are extracted and registered as feature points (step 14).

【0030】例えば、第1小領域S1については、図5
の(a1)の度数分布グラフにて示すように、しきい値
Lを越える角度を見ると、0度および90度の箇所が該
当しており、したがって同図の(b1)の実線に示すよ
うに、上下方向および水平方向のエッジ部が特徴点とし
て登録される。
For example, regarding the first small area S1, FIG.
As shown in the frequency distribution graph of (a1), when the angle exceeding the threshold value L is seen, the portions at 0 ° and 90 ° correspond to each other. Therefore, as shown by the solid line in (b1) of FIG. The vertical and horizontal edges are registered as feature points.

【0031】また、第2小領域S2については、(a
2)の度数分布グラフにて示すように、0度および27
0度の箇所が該当しており、したがって(b2)の実線
に示すように、上下方向および水平方向のエッジ部が特
徴点として登録される。
In the second small area S2, (a
As shown in the frequency distribution graph of 2), 0 degree and 27 degree
The position at 0 ° corresponds to the position, and therefore, as shown by the solid line in (b2), the vertical and horizontal edges are registered as feature points.

【0032】以下、第3小領域S3〜第6小領域S62
についても同様である。このように、度数分布が所定の
しきい値を越える濃度変化角度を有するエッジ点を抽出
することにより、度数分布が最大である濃度変化角度を
有するものを抽出する場合よりも、エッジ点を多く抽出
することができ、したがって多くの特徴点を登録するこ
とができるので、サーチ用マスタとしてのサーチの精度
が向上する。
Hereinafter, the third small area S3 to the sixth small area S62
The same applies to. As described above, by extracting the edge points having the density change angle whose frequency distribution exceeds the predetermined threshold value, the number of the edge points is increased as compared with the case where the frequency distribution having the maximum density change angle is extracted. Since extraction can be performed and many feature points can be registered, search accuracy as a search master is improved.

【0033】次に、本発明の第3の実施の形態における
サーチ用マスタ登録方法を、図7および図8に基づき説
明する。このマスタ登録方法は、基本的には、第1の実
施の形態と同様に、サーチの比較対象物となるマスタを
撮影するとともにこの撮影された画像に画像処理を施し
て特徴点を検出し、例えばその外形データを、サーチ用
マスタのデータとして登録する方法である。したがっ
て、本第3の実施の形態にて説明する比較対象物は、第
1の実施の形態にて説明したものと同一であり、またそ
の撮影画像の左中および左下の箇所に、小さい丸いノイ
ズが入っているものである。
Next, a method of registering a master for search according to the third embodiment of the present invention will be described with reference to FIGS. This master registration method basically captures a master serving as a search comparison object and performs image processing on the captured image to detect feature points, similarly to the first embodiment. For example, there is a method of registering the outline data as search master data. Therefore, the comparison object described in the third embodiment is the same as that described in the first embodiment, and a small round noise is placed in the middle left and lower left portions of the captured image. It is what contains.

【0034】まず、マスタ登録方法に使用する登録装置
の概略構成について説明する。このマスタ登録装置に
は、マスタを撮影する撮影カメラ(例えば、CCDカメ
ラが用いられる)と、この撮影カメラにて撮影された画
像を取り込むとともに所定の画像処理を施しその外形で
あるエッジ部分を多数の点列として検出する画像処理部
と、この画像処理部にて検出された各エッジ点における
画像濃度が最大に変化する方向の濃度変化角度を求める
角度検出部と、この角度検出部にて得られた各エッジ点
での濃度変化角度の度数分布を求める度数演算部と、こ
の度数演算部にて得られた度数分布が最大である濃度変
化角度と同一の濃度変化角度を有するエッジ点を抽出す
るエッジ点抽出部と、これら抽出されたエッジ点間の距
離が所定のしきい値(設定距離)内にあるものを同一領
域のものと判断する領域判断部と、この領域判断部にて
同一領域と判断された部分領域におけるエッジ点の個数
を求める個数演算部と、この個数演算部にて求められた
全個数が所定のしきい値(設定個数)より多いか否かを
判断する個数判断部と、この個数判断部にて所定のしき
い値より多い場合にその部分領域を構成するエッジ点を
マスタの特徴点として、すなわち形状データとして登録
する特徴登録部とが具備されている。
First, a schematic configuration of a registration device used for the master registration method will be described. The master registration device includes a photographing camera (for example, a CCD camera) for photographing the master, and an image photographed by the photographing camera. An image processing unit that detects the point sequence as a point sequence, an angle detection unit that obtains a density change angle in a direction in which the image density at each edge point detected by the image processing unit changes maximum, and an angle detection unit A frequency calculation unit for obtaining a frequency distribution of the density change angle at each of the obtained edge points, and an edge point having the same density change angle as the density change angle at which the frequency distribution obtained by the frequency calculation unit is the maximum is extracted. An edge point extracting unit, a region determining unit that determines that the distance between these extracted edge points is within a predetermined threshold value (set distance) as the same region, and an area determining unit Number calculating section for calculating the number of edge points in the partial area determined to be the same area, and determining whether or not the total number obtained by the number calculating section is greater than a predetermined threshold value (set number). A number judging section and a feature registering section for registering, as a feature point of the master, an edge point constituting the partial area when the number judging section exceeds a predetermined threshold value, that is, as shape data. .

【0035】ところで、上記領域判断部において、抽出
されたエッジ点間の距離が所定のしきい値内にあるか否
かを判断するようにしているのは、抽出されたエッジ点
同士が同一領域(部分領域)であるか否か、すなわち連
結するエッジ点列であるか否かを判断するためであり、
また上記個数判断部においては、各部分領域におけるエ
ッジ点の全個数が所定の設定個数に比べて、すなわちエ
ッジ部であると判断できるような最低個数と比べて、そ
の部分領域がノイズであるか否かが判断される。
By the way, the above-mentioned area judging section judges whether or not the distance between the extracted edge points is within a predetermined threshold value because the extracted edge points are in the same area. (Partial area), that is, to determine whether or not it is a series of connected edge points.
Also, in the number determination section, whether the total number of edge points in each partial area is noise compared to a predetermined set number, that is, a minimum number that can be determined to be an edge part, It is determined whether or not.

【0036】なお、上記画像処理部、検出部、演算部、
抽出部、各判断部および登録部については、コンピュー
タ装置に具備されたソフトウエアにて実現されるもので
ある。
The image processing unit, the detecting unit, the calculating unit,
The extraction unit, each of the determination units, and the registration unit are realized by software provided in a computer device.

【0037】次に、上記マスタ登録装置を用いてマスタ
を登録する方法を、図7および図8のフロー図に基づき
説明する。まず、マスタMをCCDカメラにて撮影した
画像データSが画像処理部にて取り込まれ、ここで複数
の小領域に分割された後(ステップ21)、各小領域ご
とにエッジ部分が点列として検出されるとともに、これ
ら各小領域にて検出されたエッジ点における濃度変化角
度が角度検出部にて求められる(ステップ22)。
Next, a method of registering a master using the master registration device will be described with reference to the flowcharts of FIGS. First, image data S obtained by photographing the master M with a CCD camera is taken in by an image processing unit and divided into a plurality of small areas (step 21). At the same time, the density change angle at the edge point detected in each of these small areas is obtained by the angle detection unit (step 22).

【0038】勿論、第1の実施の形態と同様に、マスタ
の画像データは十字形状であり、その画面全体が6つの
小領域に分割されさるとともに、これらを識別するため
に、左上→左中→左下→右上→右中→右下の順番で、第
1〜第6小領域(S1〜S6)と称する。
Of course, as in the first embodiment, the master image data is in the shape of a cross, and the entire screen is divided into six small areas. The first to sixth small areas (S1 to S6) are referred to in the order of → lower left → upper right → middle right → lower right.

【0039】また、この濃度変化角度についても、第1
の実施の形態と同様に、各エッジ点列の方向であり、こ
のエッジ点列の方向(点列が直線にて表される場合に
は、その直線)に対する法線の角度(向き)で表され、
また各小領域におけるエッジ点での濃度が、左から右に
変化する場合の角度を0度、上から下に変化する場合の
角度を90度、右から左に変化する場合の角度を180
度および下から上に変化する場合の角度を270度とす
る。
The density change angle is also determined by the first
Similarly to the embodiment, the direction of each edge point sequence is expressed by an angle (direction) of a normal with respect to the direction of the edge point sequence (when the point sequence is represented by a straight line, the straight line). And
In addition, when the density at the edge point in each small region changes from left to right, the angle is 0 degree, when the density changes from top to bottom is 90 degrees, and when the density changes from right to left is 180 degrees.
The degree and the angle when changing from bottom to top are 270 degrees.

【0040】次に、上記検出された各エッジ点での濃度
変化角度の度数分布が度数演算部にて求められるととも
に(ステップ23)、エッジ点抽出部にて、この度数分
布が一番大きい濃度変化角度のエッジ点が抽出される
(ステップ24)。
Next, the frequency distribution of the density change angle at each of the detected edge points is obtained by the frequency calculation unit (step 23), and the density distribution having the maximum frequency distribution is obtained by the edge point extraction unit. Edge points at the changing angles are extracted (step 24).

【0041】次に、領域判断部にて、これら抽出された
エッジ点間の距離が所定のしきい値内であるか否かが判
断されて、所定のしきい値内にあるものについて各エッ
ジ点が同一の領域であるとみなされる(判断される)
(ステップ25)。
Next, the area judging section judges whether or not the distance between the extracted edge points is within a predetermined threshold value. Points are considered to be the same area (determined)
(Step 25).

【0042】次に、個数演算部にて、同一領域であると
判断された部分領域ごとに、エッジ点の全個数が求めら
れて設定個数と比較され、そして設定個数より多い場合
には、その部分領域が求めるエッジであると判断され
て、これらのエッジ点がマスタの特徴点として登録され
る(ステップ26)。
Next, the total number of edge points is obtained and compared with the set number for each partial area determined to be the same area by the number calculating section. It is determined that the partial area is the edge to be sought, and these edge points are registered as master feature points (step 26).

【0043】なお、本実施の形態では、図7に示す第2
小領域S2について説明する。すなわち、第2小領域S
2については、図7の(a2)の度数分布グラフにて示
すように、0度の箇所が最大値になっており、またエッ
ジ点間の距離が所定のしきい値内にある部分領域は、第
1部分領域R1、第2部分領域R2および第3部分領域
R3であり、さらにこれら各部分領域におけるエッジ点
の全個数が設定個数より多いものは、第1部分領域R1
および第2部分領域R2であり、これら両部分領域R
1,R2が特徴点として登録される。
In this embodiment, the second embodiment shown in FIG.
The small area S2 will be described. That is, the second small area S
As shown in the frequency distribution graph of (a2) in FIG. 7, the maximum value is obtained at the position of 0 degrees, and the partial region in which the distance between the edge points is within the predetermined threshold value is shown in FIG. , The first partial region R1, the second partial region R2, and the third partial region R3, and the total number of edge points in each of these partial regions is larger than the set number, the first partial region R1
And the second partial region R2.
1 and R2 are registered as feature points.

【0044】したがって、同図の(b2)の実線に示す
ように、上下方向のエッジ部が特徴点として登録され
る。設定個数より少ない第3部分領域R3はノイズN1
であることを示しており、特徴点として登録されること
はない。すなわち、ノイズが除去されたことになる。
Therefore, as shown by the solid line in (b2) of the figure, the vertical edge portion is registered as a feature point. The third partial region R3 smaller than the set number is the noise N1.
Is not registered as a feature point. That is, the noise has been removed.

【0045】また、第3小領域S3についても、第2小
領域S2と同様に、第4部分領域R4および第5部分領
域R5が求められるとともに、各エッジ点の全個数によ
り、第4部分領域R4だけが特徴点として登録される。
As for the third small area S3, similarly to the second small area S2, the fourth partial area R4 and the fifth partial area R5 are obtained, and the fourth partial area R4 and the fifth partial area R5 are determined based on the total number of each edge point. Only R4 is registered as a feature point.

【0046】なお、第1領域および第4〜第6小領域
(S1,S4〜S6)についても、同様であり、(a
1),(a4)〜(a6)に度数分布を示し、(b
1),(b4)〜(b6)に登録されるエッジを示す。
The same applies to the first area and the fourth to sixth small areas (S1, S4 to S6).
1), (a4) to (a6) show frequency distributions, and (b)
1) shows edges registered in (b4) to (b6).

【0047】このように、サーチ用マスタを撮影した画
像の各小領域においてエッジ点を検出し、これら検出さ
れたエッジ点での濃度変化角度を求めるとともに、この
濃度変化角度の度数分布が最大となるエッジ点を抽出
し、さらにエッジ点間の距離が所定のしきい値範囲内の
ものを同一領域内にあると判断するとともに、この同一
領域内と判断された部分領域ごとにエッジ点の全個数を
求めて、エッジ部であると判断し得る設定個数より多い
か否かを判断するようにしたので、マスタに対する照明
状態にかかわらず所定のエッジ部分を良好に抽出し得る
とともに、ノイズを確実に除去することができる。
As described above, the edge points are detected in each small area of the image obtained by photographing the search master, the density change angle at these detected edge points is obtained, and the frequency distribution of the density change angle is maximized. Edge points which are within a predetermined threshold range are determined to be within the same area, and the total of the edge points is determined for each of the partial areas determined to be within the same area. Since the number is determined and it is determined whether the number is larger than a set number that can be determined to be an edge portion, a predetermined edge portion can be satisfactorily extracted irrespective of an illumination state with respect to the master, and noise can be reliably reduced. Can be removed.

【0048】次に、本発明の第4の実施の形態における
サーチ用マスタ登録方法を、図9および図10に基づき
説明する。上記第3の実施の形態においては、エッジ点
を検出する際に、度数分布が最大である濃度変化角度に
対応するものを検出したが、本第4の実施の形態では、
度数分布が所定のしきい値以上となるものを検出するも
のであり、基本的な構成および登録方法は、第3の実施
の形態にて説明したものと同一であるため、構成につい
ては説明を省略するとともに、登録方法については、図
9および図10のフロー図に基づき、異なる箇所に着目
して説明する。
Next, a search master registration method according to the fourth embodiment of the present invention will be described with reference to FIGS. In the third embodiment, when the edge point is detected, the one corresponding to the density change angle having the maximum frequency distribution is detected. However, in the fourth embodiment,
This is to detect the frequency distribution of which is equal to or more than a predetermined threshold value. The basic configuration and registration method are the same as those described in the third embodiment. In addition to the description, the registration method will be described focusing on different points based on the flowcharts of FIGS. 9 and 10.

【0049】すなわち、まず、第3の実施の形態と同様
に、マスタMをCCDカメラにて撮影した画像データS
が画像処理部にて取り込まれ、ここで複数の小領域に分
割された後(ステップ31)、各小領域ごとにエッジ部
分が点列として検出されるとともに、これら各小領域に
て検出されたエッジ点における濃度変化角度が角度検出
部にて求められた後(ステップ32)、各エッジ点での
濃度変化角度の度数分布が度数演算部にて求められる
(ステップ33)。
That is, first, as in the third embodiment, image data S obtained by photographing the master M with a CCD camera is used.
Is captured by the image processing unit and is divided into a plurality of small areas (step 31). Then, an edge portion is detected as a point sequence for each of the small areas, and detected in each of these small areas. After the density change angle at the edge point is obtained by the angle detection unit (step 32), the frequency distribution of the density change angle at each edge point is obtained by the frequency calculation unit (step 33).

【0050】そして、次に、図9に示すように、検出さ
れたエッジ点での濃度変化角度の度数分布において、所
定のしきい値(設定値)Lを越える濃度変化角度を有す
るエッジ点を抽出するようにしたものである(ステップ
34)。
Then, as shown in FIG. 9, in the frequency distribution of the density change angle at the detected edge point, an edge point having a density change angle exceeding a predetermined threshold value (set value) L is determined. This is extracted (step 34).

【0051】例えば、第2小領域S1については、図9
の(a2)の度数分布グラフにて示すように、しきい値
Lを越える場合を見ると、0度および270度の箇所が
該当しており、したがって同図の(b2)の実線に示す
ように、上下方向および水平方向の第1部分領域〜第4
部分領域(R1〜R4)が抽出されるとともに、各部分
領域(R1〜R4)におけるエッジ点の全個数の比較に
より、第4部分領域R4はノイズであると判断される。
For example, regarding the second small area S1, FIG.
As shown in the frequency distribution graph of (a2), when the threshold value L is exceeded, the points at 0 degree and 270 degree correspond to each other, and therefore, as shown by the solid line in (b2) of FIG. The first to fourth partial areas in the vertical and horizontal directions
The partial regions (R1 to R4) are extracted, and the fourth partial region R4 is determined to be noise by comparing the total number of edge points in each of the partial regions (R1 to R4).

【0052】また、第3小領域S3については、(a
3)の度数分布グラフにて示すように、やはり、0度お
よび270度の箇所が該当するとともに、エッジ点の全
個数の比較により、(b3)の実線に示すように、第5
部分領域R5および第6部分領域R6が特徴点として登
録される。なお、第7部分領域R7については、ノイズ
であると判断される。残りの各小領域S1,S4〜S6
についても同様である。
In the third small area S3, (a)
As shown in the frequency distribution graph of 3), the points at 0 ° and 270 ° still apply, and by comparing the total number of edge points, the fifth point is obtained as shown by the solid line in (b3).
The partial region R5 and the sixth partial region R6 are registered as feature points. Note that the seventh partial region R7 is determined to be noise. Remaining small areas S1, S4 to S6
The same applies to.

【0053】上記エッジ点が抽出された後は、第3の実
施の形態と同様に、領域判断部にて、これら抽出された
エッジ点間の距離が所定のしきい値内であるか否かが判
断されて、所定のしきい値内にあるものについて各エッ
ジ点が同一の領域であるとみなされ(ステップ35)、
次に個数演算部にて、同一領域であると判断された部分
領域ごとに、エッジ点の全個数が求められて設定個数と
比較され、そして設定個数より多い場合には、その部分
領域が求めるエッジであると判断されて、これらのエッ
ジ点がマスタの特徴点として登録される(ステップ3
6)。
After the edge points are extracted, as in the third embodiment, the area determining unit determines whether the distance between the extracted edge points is within a predetermined threshold value. Is determined, and for those falling within a predetermined threshold, each edge point is regarded as the same area (step 35).
Next, the total number of edge points is calculated and compared with the set number for each partial area determined to be the same area by the number calculation unit, and if the number is larger than the set number, the partial area is calculated. Edges are determined, and these edge points are registered as master feature points (step 3).
6).

【0054】このように、度数分布が所定のしきい値を
越える濃度変化角度を有するエッジ点を抽出することに
より、度数分布が最大となる濃度変化角度を有するもの
を抽出する第3の実施の形態の場合に比べて、エッジ点
を多く抽出することができ、したがって多くの特徴点を
登録することができるので、サーチ用マスタとしてのサ
ーチの精度が向上する。
As described above, by extracting the edge points having the density change angle at which the frequency distribution exceeds the predetermined threshold value, the one having the density change angle at which the frequency distribution becomes the maximum is extracted. Compared to the case of the form, more edge points can be extracted, and thus more feature points can be registered, so that the accuracy of the search as a search master is improved.

【0055】ここで、本発明の物体の検索方法に係る実
施の形態について、簡単に説明する。すなわち、この検
索方法は、上述した各実施の形態に係るマスタの登録方
法を用いて所定のパターンをマスタとして登録する工程
と、この工程により登録されたマスタと同一の外形(形
状)を有する部品(物体)を検索する検索工程とを具備
したものであり、この検索方法によれば、確実に登録さ
れたパターンを用いて部品を検索するため、部品の検索
を正確に行うことができる。
Here, an embodiment according to the object search method of the present invention will be briefly described. That is, this search method includes a step of registering a predetermined pattern as a master using the master registration method according to each of the above-described embodiments, and a part having the same outer shape (shape) as the master registered in this step. And a search step of searching for an (object). According to this search method, a part can be searched for using a registered pattern without fail, so that the part can be searched accurately.

【0056】さらに、本発明の物体の検査方法に係る実
施の形態について、簡単に説明する。すなわち、この検
査方法は、上述した各実施の形態に係るマスタの登録方
法を用いて所定のパターンをマスタとして登録する工程
と、この登録工程により登録されたマスタと同一形状を
有する物体を検索する検索工程と、上記登録工程により
登録されたマスタと上記検索工程により検索されたマス
タと同一形状を有する物体とを比較することにより、物
体の状態を検査する検査工程とを具備したものであり、
また検査の対象である物体としては、プリント基板、液
晶パネル、プラズマディスプレイパネルなどがある。
Further, an embodiment of the object inspection method of the present invention will be briefly described. That is, this inspection method includes a step of registering a predetermined pattern as a master using the master registration method according to each of the above-described embodiments, and a search for an object having the same shape as the master registered in the registration step. A search step, and an inspection step of inspecting the state of the object by comparing the master registered in the registration step with the object having the same shape as the master searched in the search step,
Objects to be inspected include printed circuit boards, liquid crystal panels, and plasma display panels.

【0057】この検査方法によれば、確実に登録された
パターンを用いて部品を検査するため、プリント基板、
液晶パネル、プラズマディスプレイパネルなどの部品の
検査を正確に行うことができる。
According to this inspection method, the component is inspected using the registered pattern without fail.
Inspection of components such as a liquid crystal panel and a plasma display panel can be performed accurately.

【0058】[0058]

【発明の効果】以上のように本発明の請求項1または請
求項2に記載のサーチ用マスタ登録方法によれば、サー
チ用マスタを撮影した画像の各小領域においてエッジ点
を検出し、これら検出されたエッジ点での濃度変化角度
を求めるとともに、この濃度変化角度の度数分布が最大
である、または所定のしきい値を越えるエッジ点をマス
タの特徴点として、すなわち外形データとして登録する
ようにしたので、マスタに対する照明状態にかかわらず
エッジ部分を良好に抽出し得るとともに、ノイズについ
ても確実に除去することができる。
As described above, according to the method for registering a master for search according to the first or second aspect of the present invention, edge points are detected in each small area of an image obtained by photographing the master for search. A density change angle at the detected edge point is obtained, and an edge point at which the frequency distribution of the density change angle is the maximum or exceeds a predetermined threshold value is registered as a master feature point, that is, as external shape data. As a result, the edge portion can be satisfactorily extracted irrespective of the illumination state of the master, and noise can be reliably removed.

【0059】また、本発明の請求項3または請求項4に
記載のサーチ用マスタ登録方法によれば、サーチ用マス
タを撮影した画像の各小領域においてエッジ点を検出
し、これら検出されたエッジ点での濃度変化角度を求め
るとともに、この濃度変化角度の度数分布が最大であ
る、または所定のしきい値を越えるエッジ点を抽出し、
さらにエッジ点間の距離が所定のしきい値範囲内のもの
を同一領域内にあると判断するとともに、この同一領域
内と判断された部分領域ごとにエッジ点の全個数を求め
て、エッジ部であると判断し得る設定個数より多いか否
かを判断するようにしたので、マスタに対する照明状態
にかかわらずエッジ部分を良好に抽出し得るとともに、
ノイズを確実に除去することができる。
According to the search master registration method of the present invention, an edge point is detected in each small area of an image obtained by photographing the search master, and the detected edge is detected. While obtaining the density change angle at the point, extract the edge point where the frequency distribution of this density change angle is the maximum or exceeds a predetermined threshold,
Further, it is determined that the distance between the edge points is within a predetermined threshold value range within the same region, and the total number of edge points is determined for each of the partial regions determined to be within the same region. Since it is determined whether or not the number is larger than the set number that can be determined as, the edge portion can be satisfactorily extracted regardless of the lighting state with respect to the master,
Noise can be reliably removed.

【0060】また、本発明の請求項5に記載の物体の検
索方法によれば、確実に登録されたパターンを用いて物
体を検索するため、物体の検索を正確に行うことができ
る。さらに、本発明の請求項6および7に記載の物体の
検査方法によれば、確実に登録されたパターンを用いて
物体を検査するため、プリント基板、液晶パネル、プラ
ズマディスプレイパネルなどの物体の検査を正確に行う
ことができる。
Further, according to the object search method of the fifth aspect of the present invention, the object can be searched using the registered pattern without fail, so that the object can be searched accurately. Furthermore, according to the object inspection method according to the sixth and seventh aspects of the present invention, since the object is inspected using the registered pattern, the object inspection such as a printed circuit board, a liquid crystal panel, and a plasma display panel is performed. Can be performed accurately.

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

【図1】本発明の第1の実施の形態に係るマスタ登録方
法を説明するためのマスタの画像を示す。
FIG. 1 shows an image of a master for explaining a master registration method according to a first embodiment of the present invention.

【図2】同第1の実施の形態に係るマスタ登録方法にお
ける濃度変化角度を示す図である。
FIG. 2 is a diagram showing a density change angle in a master registration method according to the first embodiment.

【図3】同第1の実施の形態に係るマスタ登録方法にお
けるエッジ点の抽出状態を説明する図である。
FIG. 3 is a diagram illustrating an extraction state of an edge point in the master registration method according to the first embodiment.

【図4】同第1の実施の形態に係るマスタ登録方法を示
すフロー図である。
FIG. 4 is a flowchart showing a master registration method according to the first embodiment.

【図5】本発明の第2の実施の形態に係るマスタ登録方
法におけるエッジ点の抽出状態を説明する図である。
FIG. 5 is a diagram illustrating an extraction state of an edge point in a master registration method according to a second embodiment of the present invention.

【図6】同第2の実施の形態に係るマスタ登録方法を示
すフロー図である。
FIG. 6 is a flowchart showing a master registration method according to the second embodiment.

【図7】本発明の第3の実施の形態に係るマスタ登録方
法におけるエッジ点の抽出状態を説明する図である。
FIG. 7 is a diagram illustrating an extraction state of an edge point in a master registration method according to a third embodiment of the present invention.

【図8】同第3の実施の形態に係るマスタ登録方法を示
すフロー図である。
FIG. 8 is a flowchart showing a master registration method according to the third embodiment.

【図9】本発明の第4の実施の形態に係るマスタ登録方
法におけるエッジ点の抽出状態を説明する図である。
FIG. 9 is a diagram illustrating an extraction state of an edge point in a master registration method according to a fourth embodiment of the present invention.

【図10】同第4の実施の形態に係るマスタ登録方法を
示すフロー図である。
FIG. 10 is a flowchart showing a master registration method according to the fourth embodiment.

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

M マスタ S 画像 S1〜S6 小領域 R1〜R6 部分領域 M master S image S1 to S6 Small area R1 to R6 Partial area

───────────────────────────────────────────────────── フロントページの続き (72)発明者 湯川 典昭 大阪府門真市大字門真1006番地 松下電器 産業株式会社内 Fターム(参考) 2F065 AA03 AA07 AA12 AA14 AA54 BB02 BB28 CC00 CC01 DD04 FF01 FF04 JJ03 JJ26 QQ03 QQ25 QQ32 QQ34 QQ51 RR09 SS03 UU05 5B057 AA03 CA08 CA12 CB12 CB20 CC02 CE11 CG09 DA03 DB02 DB09 DC03 DC08 DC16 DC19 DC22 5L096 AA06 BA03 FA03 FA35 FA66 FA67 FA72 GA51  ────────────────────────────────────────────────── ─── Continuing from the front page (72) Noriaki Yukawa, Inventor 1006 Odakadoma, Kadoma City, Osaka Prefecture F-term in Matsushita Electric Industrial Co., Ltd. QQ32 QQ34 QQ51 RR09 SS03 UU05 5B057 AA03 CA08 CA12 CB12 CB20 CC02 CE11 CG09 DA03 DB02 DB09 DC03 DC08 DC16 DC19 DC22 5L096 AA06 BA03 FA03 FA35 FA66 FA67 FA72 GA51

Claims (7)

【特許請求の範囲】[Claims] 【請求項1】予め登録されたパターン(以下、マスタと
いう)を、入力された画像の中から検索するサーチ手法
におけるマスタの登録方法であって、マスタを撮影した
画像を複数個の小領域に分割するとともに、これら各小
領域内でのエッジを構成するエッジ点列を検出し、これ
ら検出された各エッジ点における画像濃度が変化する方
向の濃度変化角度を求めるとともに、この濃度変化角度
の度数分布を求め、この度数分布が最大となる濃度変化
角度と同じ濃度変化角度を有するエッジ点をマスタの特
徴点として登録することを特徴とするサーチ用マスタ登
録方法。
1. A method of registering a master in a search method for searching a previously registered pattern (hereinafter referred to as a master) from an input image, wherein an image obtained by capturing the master is stored in a plurality of small areas. In addition to the division, the edge point sequence constituting the edge in each of these small areas is detected, the density change angle in the direction in which the image density changes at each of the detected edge points is obtained, and the frequency of this density change angle is calculated. A search master registration method, wherein a distribution is obtained, and an edge point having the same density change angle as the density change angle at which the frequency distribution is maximum is registered as a feature point of the master.
【請求項2】予め登録されたパターン(以下、マスタと
いう)を、入力された画像の中から検索するサーチ手法
におけるマスタの登録方法であって、 マスタを撮影した画像を複数個の小領域に分割するとと
もに、これら各小領域内でのエッジを構成するエッジ点
列を検出し、 これら検出された各エッジ点における画像濃度が変化す
る方向の濃度変化角度を求めるとともに、この濃度変化
角度の度数分布を求め、 この度数分布が所定のしきい値を越える濃度変化角度と
同じ濃度変化角度を有するエッジ点をマスタの特徴点と
して登録することを特徴とするサーチ用マスタ登録方
法。
2. A method for registering a master in a search method for searching a pre-registered pattern (hereinafter referred to as a master) from an input image, wherein an image obtained by capturing the master is stored in a plurality of small areas. In addition to dividing, the edge point sequence constituting the edge in each of the small areas is detected, the density change angle in the direction in which the image density changes at each of the detected edge points is obtained, and the frequency of the density change angle is calculated. A search master registration method comprising: obtaining a distribution; and registering, as feature points of a master, edge points having the same density change angle as that of which the frequency distribution exceeds a predetermined threshold value.
【請求項3】予め登録されたパターン(以下、マスタと
いう)を、入力された画像の中から検索するサーチ手法
におけるマスタの登録方法であって、 マスタを撮影した画像を複数個の小領域に分割するとと
もに、これら各小領域内でのエッジを構成するエッジ点
列を検出し、 これら検出された各エッジ点における画像濃度が変化す
る方向の濃度変化角度を求めるとともに、この濃度変化
角度の度数分布を求め、 この度数分布が最大となる濃度変化角度と同じ濃度変化
角度を有するエッジ点を抽出するとともに、これら抽出
されたエッジ点間の距離が、所定のしきい値範囲内にあ
るものを同一領域と判断し、 同一領域と判断された部分領域におけるエッジ点の全個
数が所定個数より多い場合に、その部分領域に存在する
エッジ点をマスタの特徴点として登録することを特徴と
するサーチ用マスタ登録方法。
3. A method for registering a master in a search method for searching a previously registered pattern (hereinafter, referred to as a master) from an input image, wherein an image obtained by capturing the master is stored in a plurality of small areas. In addition to dividing, the edge point sequence constituting the edge in each of the small areas is detected, the density change angle in the direction in which the image density changes at each of the detected edge points is obtained, and the frequency of the density change angle is calculated. A distribution is obtained, and an edge point having the same density change angle as the density change angle at which the frequency distribution becomes maximum is extracted, and the distance between the extracted edge points within a predetermined threshold range is determined. If the total number of edge points in the partial area determined to be the same area is larger than a predetermined number, the edge points existing in the partial area are determined as master features. A search master registration method characterized by registering as a mark.
【請求項4】予め登録されたパターン(以下、マスタと
いう)を、入力された画像の中から検索するサーチ手法
におけるマスタの登録方法であって、 マスタを撮影した画像を複数個の小領域に分割するとと
もに、これら各小領域内でのエッジを構成するエッジ点
列を検出し、 これら検出された各エッジ点における画像濃度が変化す
る方向の濃度変化角度を求めるとともに、この濃度変化
角度の度数分布を求め、 この度数分布が所定のしきい値を越える濃度変化角度と
同じ濃度変化角度を有するエッジ点を抽出するととも
に、これら抽出されたエッジ点間の距離が、所定のしき
い値範囲内にあるものを同一領域と判断し、 同一領域と判断された部分領域におけるエッジ点の全個
数が所定個数より多い場合に、その部分領域に存在する
エッジ点をマスタの特徴点として登録することを特徴と
するサーチ用マスタ登録方法。
4. A method of registering a master in a search method for searching a previously registered pattern (hereinafter, referred to as a master) from an input image, wherein an image obtained by capturing the master is stored in a plurality of small areas. In addition to dividing, the edge point sequence constituting the edge in each of the small areas is detected, the density change angle in the direction in which the image density changes at each of the detected edge points is obtained, and the frequency of the density change angle is calculated. A distribution is obtained, and edge points having the same density change angle as this frequency distribution exceeds a predetermined threshold value are extracted, and the distance between the extracted edge points is within a predetermined threshold range. Are determined to be the same area, and if the total number of edge points in the partial area determined to be the same is larger than a predetermined number, the edge points existing in the partial area A master registration method for searching, characterized by registering as a feature point of a master.
【請求項5】請求項1乃至4のいずれかに記載の登録方
法を用いてパターンをマスタとして登録する工程と、こ
の登録工程により登録されたマスタと同一形状を有する
物体を検索する検索工程とからなることを特徴とする物
体の検索方法。
5. A step of registering a pattern as a master using the registration method according to claim 1, and a search step of searching for an object having the same shape as the master registered in the registration step. An object retrieval method characterized by comprising:
【請求項6】請求項1乃至4のいずれかに記載の登録方
法を用いてパターンをマスタとして登録する工程と、こ
の登録工程により登録されたマスタと同一形状を有する
物体を検索する検索工程と、上記登録工程により登録さ
れたマスタと上記検索工程により検索されたマスタと同
一形状を有する物体とを比較することにより、物体の状
態を検査する検査工程とからなることを特徴とする物体
の検査方法。
6. A step of registering a pattern as a master using the registration method according to claim 1, and a search step of searching for an object having the same shape as the master registered in the registration step. An inspection step of inspecting the state of the object by comparing the master registered in the registration step with an object having the same shape as the master searched in the search step. Method.
【請求項7】物体が、プリント基板、液晶パネル、また
はプラズマディスプレイパネルであることを特徴とする
請求項6に記載の物体の検査方法。
7. The method according to claim 6, wherein the object is a printed circuit board, a liquid crystal panel, or a plasma display panel.
JP2001033025A 2001-02-09 2001-02-09 Master registering method for searching, and object retrieving method and testing method Pending JP2002236908A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001033025A JP2002236908A (en) 2001-02-09 2001-02-09 Master registering method for searching, and object retrieving method and testing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001033025A JP2002236908A (en) 2001-02-09 2001-02-09 Master registering method for searching, and object retrieving method and testing method

Publications (1)

Publication Number Publication Date
JP2002236908A true JP2002236908A (en) 2002-08-23

Family

ID=18896845

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001033025A Pending JP2002236908A (en) 2001-02-09 2001-02-09 Master registering method for searching, and object retrieving method and testing method

Country Status (1)

Country Link
JP (1) JP2002236908A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7240313B2 (en) * 2003-06-27 2007-07-03 Ttm Technologies, Inc. Method for analyzing material density variations on a multi-layer printed circuit board
CN110751680A (en) * 2019-10-17 2020-02-04 中国科学院云南天文台 Image processing method with fast alignment algorithm

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7240313B2 (en) * 2003-06-27 2007-07-03 Ttm Technologies, Inc. Method for analyzing material density variations on a multi-layer printed circuit board
CN110751680A (en) * 2019-10-17 2020-02-04 中国科学院云南天文台 Image processing method with fast alignment algorithm

Similar Documents

Publication Publication Date Title
US8019164B2 (en) Apparatus, method and program product for matching with a template
JP2019079553A (en) System and method for detecting line in vision system
JP2023120281A (en) System and method for detecting line in vision system
JPH03294976A (en) Reference mark pattern detecting device
CN110084830A (en) A kind of detection of video frequency motion target and tracking
JP2015207868A (en) Imaging-direction tilt detection method, imaging-direction tilt detection program, and imaging-direction tilt detection device
JP2002236908A (en) Master registering method for searching, and object retrieving method and testing method
US10062155B2 (en) Apparatus and method for detecting defect of image having periodic pattern
JP5983033B2 (en) Position relationship determination program, position relationship determination method, and position relationship determination device
KR101126759B1 (en) Method of teaching for electronic parts information in chip mounter
CN105653101B (en) Touch point sensing method and optical touch system
JP2004240909A (en) Image processor and image processing method
JP3123275B2 (en) Inspection data creation method for electronic parts shortage inspection
JPH09178427A (en) Image position measuring method
JPH06117815A (en) Method of measuring position/posture of electronic part
JPH10222671A (en) Matching system and producing device using the same
CN106293263B (en) optical sensing electronic device and optical sensing method
WO1998012668A1 (en) Test method and test apparatus using pattern matching
CN118247597A (en) Training sample set data enhancement method and device, electronic equipment and storage medium
JP3915753B2 (en) Image detection device
JP2000311245A (en) Method and edge discriminating device for circuit pattern
CN117848208A (en) Wisdom proctoring portable check out test set
JP5790552B2 (en) Image processing apparatus, image processing program, and image processing method
JP2000269700A (en) Recognizing method for pattern matching
RU2522870C1 (en) Method for range verification of printed-circuit boards