JPH08189822A - Inclination detecting method - Google Patents

Inclination detecting method

Info

Publication number
JPH08189822A
JPH08189822A JP7002583A JP258395A JPH08189822A JP H08189822 A JPH08189822 A JP H08189822A JP 7002583 A JP7002583 A JP 7002583A JP 258395 A JP258395 A JP 258395A JP H08189822 A JPH08189822 A JP H08189822A
Authority
JP
Japan
Prior art keywords
inclination
line
straight line
raw image
cells
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.)
Granted
Application number
JP7002583A
Other languages
Japanese (ja)
Other versions
JP3307131B2 (en
Inventor
Hirofumi Matsuzaki
浩文 松▲崎▼
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 JP00258395A priority Critical patent/JP3307131B2/en
Publication of JPH08189822A publication Critical patent/JPH08189822A/en
Application granted granted Critical
Publication of JP3307131B2 publication Critical patent/JP3307131B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PURPOSE: To specify the inclination of an object based on the distribution of a table by setting the table of plurality of cells composed of intercept values of line components extended to a projection line and inclination from picture elements in rectilinear components extracted from a raw image and adding the values of the relevant cells while searching the picture elements. CONSTITUTION: A chip 3 is photographed by a camera 10 and a raw image after processed by an A/D converter 11 is stored in a raw image memory 13. A rectilinear data extracting part 15 extracts rectilinear components in nearly transverse direction from the raw image data and stores the results in a processed image memory 14. A θY table 17 is composed of a plurality of cells having as components; the inclination θ and an intercept value Y of a line component extended to a constant projection line from a picture element on a straight line. A table processing part 16 carries out addition for relevant cell values of the table 17 one by one while searching the picture elements on a straight line. An inclination judging part 18 computes an approximate curved line by the method of least squares according to the table 17 for which processing by the processing part 16 has been completed and computes the inclination of an object from an inflection point.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、電子部品や基板などの
ように、カメラで観察される対象物の傾き検出方法に関
するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method for detecting the inclination of an object observed by a camera, such as electronic parts and boards.

【0002】[0002]

【従来の技術】近年、対象物をカメラで観察し、対象物
の理想位置に対する位置ずれを検出することが広く行わ
れている。この位置ずれには、水平面内のθ方向の位置
ずれ(本明細書において「傾き」という)が含まれる。
2. Description of the Related Art In recent years, it has been widely practiced to observe an object with a camera and detect a displacement of the object from an ideal position. This positional deviation includes positional deviation in the θ direction in the horizontal plane (referred to as “tilt” in this specification).

【0003】以下図11〜図14を参照しながら従来の
傾き検出方法について説明する。図11は従来の対象物
を例示する平面図である。図11中、1は粘着シート2
をテンションを有する状態で保持する粘着シート、3は
粘着シート2の上面に貼付いている対象物としてのチッ
プである。そして、従来の傾き検出方法はパターンマッ
チング法を応用したものであり、図11に示すように傾
きのない理想位置におけるリファレンスパターンを設定
するためのウィンドウ4がチップ3を包囲するように設
定される。
A conventional inclination detecting method will be described below with reference to FIGS. FIG. 11 is a plan view illustrating a conventional object. In FIG. 11, 1 is an adhesive sheet 2
3 is a chip as an object stuck on the upper surface of the adhesive sheet 2. The conventional tilt detection method is an application of the pattern matching method, and as shown in FIG. 11, a window 4 for setting a reference pattern at an ideal position without tilt is set so as to surround the chip 3. .

【0004】図12は図11のウィンドウの拡大図であ
る。図12に示すように、チップ3の傾きを検出するた
めには、チップ3の角部3a,3b,3c,3dのエッ
ジC1,C2,C3,C4の位置を特定できればよい。
したがって、この例では、エッジC1,C2,C3,C
4を中心P1,P2,P3,P4とするリファレンスパ
ターン5,6,7,8を設定する。そして、実際の対象
物の画像が得られたら、これらのリファレンスパターン
5,6,7,8が最も良くマッチングする位置を探し出
し、その位置における中心C1,C2,C3,C4をチ
ップ3のエッジC1,C2,C3,C4の位置とするも
のである。
FIG. 12 is an enlarged view of the window shown in FIG. As shown in FIG. 12, in order to detect the inclination of the chip 3, it is sufficient to specify the positions of the edges C1, C2, C3, C4 of the corners 3a, 3b, 3c, 3d of the chip 3.
Therefore, in this example, the edges C1, C2, C3, C
Reference patterns 5, 6, 7, and 8 having P4 as the center P1, P2, P3, and P4 are set. Then, when the image of the actual object is obtained, a position where these reference patterns 5, 6, 7, and 8 best match is found, and the centers C1, C2, C3, and C4 at the positions are found at the edge C1 of the chip 3. , C2, C3, C4.

【0005】[0005]

【発明が解決しようとする課題】図13は、従来の対象
物を例示する平面図である。図13では、図11のよう
な理想位置(傾きなし)ではなく、傾きがある場合を示
している。そして、図14は図13の一部拡大図であ
り、リファレンスパターン5が角部3aにマッチングす
ると解釈される様子を示す。そして、リファレンスパタ
ーン5と角部3aの画像のマッチングが最高になる際、
図14に示すように、リファレンスパターン5の中心C
1(処理上エッジP1の位置とされる)は、実際のエッ
ジP1からずれてしまう。したがって、中心C1に基い
て算出されるチップ3の傾きは実際のチップ3の傾きと
一致しない。このように、従来の傾き検出方法では、傾
きの検出精度が低いという問題点があった。
FIG. 13 is a plan view illustrating a conventional object. FIG. 13 shows a case where there is a tilt, not the ideal position (no tilt) as shown in FIG. Then, FIG. 14 is a partially enlarged view of FIG. 13, and shows how the reference pattern 5 is interpreted as matching the corner portion 3a. Then, when the matching between the reference pattern 5 and the image of the corner 3a is maximized,
As shown in FIG. 14, the center C of the reference pattern 5
1 (which is the position of the processing edge P1) deviates from the actual edge P1. Therefore, the inclination of the chip 3 calculated based on the center C1 does not match the actual inclination of the chip 3. As described above, the conventional inclination detection method has a problem that the inclination detection accuracy is low.

【0006】そこで本発明は、精度良く対象物の傾きを
検出できる傾き検出方法を提供することを目的とする。
Therefore, an object of the present invention is to provide an inclination detecting method capable of detecting the inclination of an object with high accuracy.

【0007】[0007]

【課題を解決するための手段】本発明の傾き検出方法
は、対象物の生画像を取得するステップと、取得した生
画像から直線の成分を抽出した処理画像を得るステップ
と、直線上の画素から一定の投影ラインへ延ばした線分
の切片値と線分の傾きとを要素に含む複数のセルからな
るテーブルを設定し、直線上の画素をサーチしつつセル
のうち該当するセルの値を積和するステップと、テーブ
ルの分布に基いて対象物の傾きを特定するステップとを
有する。
A tilt detecting method according to the present invention comprises a step of obtaining a raw image of an object, a step of obtaining a processed image in which a straight line component is extracted from the obtained raw image, and pixels on a straight line. Set a table consisting of multiple cells that include the intercept value of the line segment and the slope of the line segment, which are extended to a certain projection line from, and search the pixels on the straight line to find the value of the corresponding cell among the cells. It has a step of summing products and a step of identifying the inclination of the object based on the distribution of the table.

【0008】[0008]

【作用】上記構成により、生画像から直線の成分が抽出
された処理画像が求められ、この直線上の画素から投影
ラインへ延ばした線分の切片値と線分の傾きとを要素と
する複数のセルからなるテーブルが設定される。そし
て、直線上の画素をサーチし、該当するセルの値が積和
され、このセルの値の分布により対象物の傾きが特定さ
れる。ここで、対象物が傾きを有するときは、その全体
の傾向がそのままセルの値の分布に反映される。したが
って、従来の傾き検出方法のように、局所的なマッチン
グのみにより傾きを検出するものに比べ、格段に検出精
度を向上することができる。
With the above configuration, a processed image in which a straight line component is extracted from a raw image is obtained, and a plurality of lines each having an intercept value of a line segment extending from a pixel on this straight line to a projection line and a slope of the line segment are used as elements. A table consisting of cells is set. Then, the pixels on the straight line are searched, the values of the corresponding cells are summed, and the inclination of the object is specified by the distribution of the values of the cells. Here, when the object has an inclination, the overall tendency of the object is directly reflected in the distribution of the cell values. Therefore, the detection accuracy can be remarkably improved as compared with the conventional inclination detection method in which the inclination is detected only by local matching.

【0009】[0009]

【実施例】次に図面を参照しながら本発明の実施例を説
明する。
Embodiments of the present invention will now be described with reference to the drawings.

【0010】図1は本発明の一実施例における外観検査
装置のブロック図である。以下従来手段を示す図11以
下と同様の構成要素については同一符号を付すことによ
り説明を省略する。
FIG. 1 is a block diagram of a visual inspection apparatus according to an embodiment of the present invention. The same components as those shown in FIG. 11 and subsequent drawings showing the conventional means are designated by the same reference numerals and the description thereof will be omitted.

【0011】図1中、10は対象物としてのチップ3を
観察するカメラ、11はカメラ10の画像をデジタル化
するA/D変換器、12は全体を制御する制御部であ
る。また13はA/D変換器11が出力する生画像を格
納する生画像メモリ、14は直線データ抽出部15によ
り生画像にソーベル変換を施して直線の成分のみを抽出
した処理画像が格納される処理画像メモリ、16は直線
上の画素から一定の投影ラインへ延ばした線分の切片値
(Y)と線分の傾き(θ)とを要素に含む複数のセルか
らなるθYテーブル17の処理を行うテーブル処理部、
18はテーブル処理部16の処理が完了した後のθYテ
ーブル17に基いて最小二乗法による近似曲線を求め、
この近似曲線の変曲点から対象物の傾きを求める傾き判
定部である。
In FIG. 1, 10 is a camera for observing the chip 3 as an object, 11 is an A / D converter for digitizing an image of the camera 10, and 12 is a control unit for controlling the whole. Further, 13 is a raw image memory for storing a raw image output from the A / D converter 11, and 14 is a processed image obtained by performing a Sobel transformation on the raw image by the straight line data extraction unit 15 and extracting only a straight line component. The processed image memory 16 processes the θY table 17 composed of a plurality of cells whose elements are the intercept value (Y) of the line segment and the inclination (θ) of the line segment extending from the pixels on the straight line to a certain projection line. The table processing unit,
18 is an approximate curve obtained by the method of least squares based on the θY table 17 after the processing of the table processing unit 16 is completed,
It is an inclination determination unit that obtains the inclination of the object from the inflection point of this approximate curve.

【0012】次に図2(本発明の一実施例における傾き
検出方法を示すフローチャート)を参照しながら、傾き
検出方法の全体の流れを説明する。まずステップ1に
て、カメラ10でチップ3を撮像し、A/D変換器11
にてデジタル化した生画像を生画像メモリ13に格納す
る。次にステップ2にて、直線データ抽出部15が生画
像メモリ13内の生画像に対しソーベル変換を施して、
ほぼ横向きの直線の成分のみを抽出する。即ちこの例で
は、チップ3の縁部や配線などのうちほぼX軸に平行な
もののみが抽出されることになる。
Next, with reference to FIG. 2 (a flowchart showing a tilt detecting method according to an embodiment of the present invention), an overall flow of the tilt detecting method will be described. First, in step 1, the camera 10 takes an image of the chip 3 and the A / D converter 11
The raw image digitized at is stored in the raw image memory 13. Next, in step 2, the straight line data extraction unit 15 performs Sobel transformation on the raw image in the raw image memory 13,
Only the substantially straight line components are extracted. That is, in this example, only the edge portion of the chip 3, the wiring, and the like that are substantially parallel to the X axis are extracted.

【0013】図3(a)〜(c)は本発明の一実施例に
おける傾き検出方法の直線抽出処理の説明図である。こ
こで、図3(a)に示すようにXY軸に対して傾きを有
する生画像が得られたとき、直線データ抽出部13は、
図3(b)に示すような3×3の空間フィルタを用い
て、図3(c)に示すようにほぼ横向きの直線の成分の
みを抽出する。ここでソーベル変換自体は、画像処理分
野における周知技術であるから詳細な説明は省略する。
ここで、この例ではウィンドウ4の左下角点を(0,Y
min)、右上角点を(Xmax,Ymax)とする矩
形領域としてあり、(0,Ymin)から(0,Yma
x)に至るウィンドウ4の左辺を投影ライン19として
いる。
FIGS. 3A to 3C are explanatory views of the straight line extraction processing of the inclination detecting method in the embodiment of the present invention. Here, when a raw image having an inclination with respect to the XY axes is obtained as shown in FIG. 3A, the straight line data extraction unit 13
By using a 3 × 3 spatial filter as shown in FIG. 3B, only substantially straight line components as shown in FIG. 3C are extracted. Here, the Sobel transform itself is a well-known technique in the image processing field, and therefore a detailed description thereof will be omitted.
Here, in this example, the lower left corner point of the window 4 is (0, Y
min) and the upper right corner point is (Xmax, Ymax) as a rectangular area, and (0, Ymin) to (0, Yma)
The left side of the window 4 up to x) is the projection line 19.

【0014】そしてテーブル処理部16により、図2の
ステップ3のテーブル処理を行い、傾き判定部18によ
りステップ4の傾き判定を行う。ここでステップ3の処
理内容は図7、ステップ4の処理内容は図9に基いて後
に詳述する。
Then, the table processing section 16 performs the table processing of step 3 of FIG. 2, and the tilt determination section 18 performs the tilt determination of step 4. Here, the processing content of step 3 will be described in detail later with reference to FIG. 7 and the processing content of step 4 will be described later with reference to FIG.

【0015】さて処理内容を説明する前に、図4(本発
明の一実施例における傾き検出方法の切片及び傾きの説
明図)を参照しながら、投影ライン19の切片Y、傾き
θについて述べる。ここで、本実施例では、傾きθとし
て、一定きざみの値θ1,θ2,θ3,θ4,θ5のみ
を使用する。ここで、上述したように抽出された直線の
成分はほぼX軸に平行なものばかりであるので、きざみ
としては、1〜5°程度でよい。またθ1>θ2>θ3
=0>θ4>θ5としておく。そして図4に示すよう
に、直線上の画素Pn(Xn,Yn)があるとき、傾き
θkk は添字)をとったときの投影ライン19の切片
k はYk =int(Xn・tanθk +Yn)で求ま
る。
Before explaining the processing contents, the intercept Y and the inclination θ of the projection line 19 will be described with reference to FIG. 4 (an explanatory view of the intercept and the inclination of the inclination detecting method in one embodiment of the present invention). Here, in this embodiment, as the inclination θ, only the constant step values θ1, θ2, θ3, θ4, and θ5 are used. Since the straight line components extracted as described above are almost parallel to the X axis, the step may be about 1 to 5 °. In addition, θ1>θ2> θ3
= 0>θ4> θ5. Then, as shown in FIG. 4, when there is a pixel Pn (Xn, Yn) on a straight line, the intercept Y k of the projection line 19 when the inclination θ k ( k is a subscript) is taken is Y k = int (Xn · tan θ k + Yn).

【0016】次に傾きθk と抽出された直線の成分の傾
きとの関係を図5(a)〜(c)(本発明の一実施例に
おける傾きの説明図)を参照しながら説明する。まず上
述したように、傾きθk は対象物の傾きとは無関係にソ
フトウェア上で設定される離散的な値を持つ。したがっ
て、ある傾きθk が対象物の傾きから大きくずれている
こともあるし、ある傾きθk が対象物の傾きに完全に一
致することもある。
Next, the relationship between the inclination θ k and the inclination of the extracted straight line component will be described with reference to FIGS. 5A to 5C (an explanatory view of the inclination in an embodiment of the present invention). First, as described above, the inclination θ k has a discrete value set by software regardless of the inclination of the object. Therefore, a certain inclination θ k may be largely deviated from the inclination of the object, and a certain inclination θ k may be completely coincident with the inclination of the object.

【0017】ここで、図5(a)で示すように、傾きθ
k 1が抽出された直線の傾きから大きくずれている場
合、直線上の画素から傾きθk 1なる線分(矢印参照)
を投影ライン19に延ばすと各画素からの切片はばらば
らの値を取る。したがって、切片ごとの個数分布をとれ
ば、なだらかで幅広いパターンになる。
Here, as shown in FIG. 5A, the inclination θ
If k 1 deviates significantly from the slope of the extracted straight line, the line segment with the slope θ k 1 from the pixel on the straight line (see arrow)
When is extended to the projection line 19, the intercepts from each pixel have different values. Therefore, if the number distribution for each intercept is taken, the pattern becomes gentle and wide.

【0018】一方図5(c)で示すように、たまたま傾
きθk 3が抽出された直線の傾きと一致しているとき、
各画素から投影ライン19に延ばされる線分は重なりあ
い、同一の直線上の各画素の切片は完全に一致する。し
たがって、図3(c)の場合の切片の分布は、急峻なも
のとなる。なお図3(b)のような中間的な適合関係が
あるときは、切片の分布もまた図3(a)と図3(c)
の中間的なものとなる。
On the other hand, as shown in FIG. 5C, when the inclination θ k 3 happens to coincide with the inclination of the extracted straight line,
The line segments extending from each pixel to the projection line 19 overlap, and the intercepts of each pixel on the same straight line completely match. Therefore, the distribution of intercepts in the case of FIG. 3C becomes steep. When there is an intermediate matching relationship as shown in FIG. 3 (b), the distribution of intercepts is also shown in FIGS. 3 (a) and 3 (c).
It will be something in between.

【0019】本実施例では以上のような関係に着目し、
図6(本発明の一実施例におけるθYテーブルの構成
図)に示すθYテーブル17を設け、これに基いた処理
を行う。このθYテーブル17は、第1要素に傾きθk
k =1,2,・・・,5)、第2要素に切片Y(Y=
Ymin,Ymin+1,・・・,Ymax)を持つ2
次元配列Val(,)とする。そして、1つ1つの要素
Val(θk ,Y)をセル、同一の傾きθk を有するセ
ル群をセグメントと呼ぶことにする。
In this embodiment, paying attention to the above relationship,
A θY table 17 shown in FIG. 6 (configuration diagram of the θY table in one embodiment of the present invention) is provided, and processing based on this is performed. The θY table 17 has a tilt θ k as the first element.
( K = 1, 2, ..., 5), the intercept Y (Y =
Ymin, Ymin + 1, ..., Ymax) 2
The dimension array is Val (,). Each element Val (θ k , Y) is called a cell, and a cell group having the same inclination θ k is called a segment.

【0020】次に図7(本発明の一実施例におけるテー
ブル処理を示すフローチャート)を参照しながら、テー
ブル処理部16の動作を説明する。まずステップ30に
て、各セルVal(,)の値を0に初期化し、ステップ
31にて、サーチ位置Pnをウィンドウ4の左上点
(0,Ymax)にセット(初期化)する。
Next, the operation of the table processing section 16 will be described with reference to FIG. 7 (a flow chart showing the table processing in one embodiment of the present invention). First, in step 30, the value of each cell Val (,) is initialized to 0, and in step 31, the search position Pn is set (initialized) at the upper left point (0, Ymax) of the window 4.

【0021】以下、ステップ32にてこのサーチ位置P
nが終了位置(Xmax,Ymax)となるまで、黒画
素(抽出された直線上の画素上にサーチ位置Pnが存在
すること)かどうか検討し(ステップ33)、黒画素で
なければサーチ位置Pnを更新する(ステップ34)処
理を繰り返す。即ち、抽出された直線上の画素をサーチ
する。そして、現サーチ位置Pnが黒画素であれば、ス
テップ35以後の処理を行って、ステップ32以下のサ
ーチループへ復帰する。
Thereafter, in step 32, this search position P
Until n reaches the end position (Xmax, Ymax), it is examined whether or not it is a black pixel (the search position Pn exists on the pixel on the extracted straight line) (step 33). If it is not a black pixel, the search position Pn (Step 34) is repeated. That is, the pixels on the extracted straight line are searched. If the current search position Pn is a black pixel, the process after step 35 is performed, and the process returns to the search loop after step 32.

【0022】さてサーチ位置Pnが黒画素であれば、ス
テップ35にて添字k を1に初期化し、添字k が5より
大(即ち、傾きθ1〜θk の処理が完了)となるまで、
添字 k が示す現在の傾きθk について、投影ライン19
への切片Yk を求め(ステップ37)、上記θYテーブ
ル17の該当するセルVal(θk ,Yk )の値に1を
加算してゆき(ステップ38)、添字k をインクリメン
トして(ステップ39)、ステップ36以下の処理を繰
り返す。以上により、該当セルVal(θk ,Yk )の
値が1づつ加算されてゆく。
Now, if the search position Pn is a black pixel,
Subscript at step 35k Is initialized to 1 and the subscriptk Is from 5
Large (that is, inclination θ1 to θk Process is completed)
Subscript k Present inclination θk About the projection line 19
To Yk (Step 37), the θY table
Corresponding cell Val (θk , Yk ) Value of 1
Add (step 38), subscriptk Increment
(Step 39) and repeat the processing from step 36 onward.
Return. From the above, the corresponding cell Val (θk , Yk )of
The value is incremented by one.

【0023】図8は本発明の一実施例における加算後の
θYテーブルの例示図である。図7の処理が完了すれ
ば、各セルの値はある分布を持つようになり、この分布
の全体的な特徴が対象物であるチップ3の傾きを示して
いるのである。図8中、斜線を付したセルの値は、各セ
グメントにおける最大値を示している。次に図9(本発
明の一実施例における傾き判定を示すフローチャー
ト)、図10(本発明の一実施例における近似曲線の例
示図)を参照しながら、傾き判定部18の動作を説明す
る。まずステップ40にて、全てのセルの値のうち最大
値を抽出し、これを最大値WM とする。そして、この最
大値WM を持つセルの傾きを最大値傾きθM とする(ス
テップ41)。
FIG. 8 is a view showing an example of the θY table after addition in the embodiment of the present invention. When the process of FIG. 7 is completed, the value of each cell has a certain distribution, and the overall characteristic of this distribution indicates the inclination of the chip 3 which is the object. In FIG. 8, the shaded cell value indicates the maximum value in each segment. Next, the operation of the tilt determination unit 18 will be described with reference to FIG. 9 (flow chart showing tilt determination in one embodiment of the present invention) and FIG. 10 (illustration diagram of an approximate curve in one embodiment of the present invention). First, in step 40, the maximum value is extracted from the values of all cells and is set as the maximum value W M. Then, the gradient of the cell having the maximum value W M is set as the maximum gradient θ M (step 41).

【0024】次いで、最大値WM を持つセルの左側のセ
グメントのセルの最大値を求め、これを左側最大値W
L 、そのときの傾きを左側最大値傾きθM-1 とする(ス
テップ42)。同様に、最大値WM を持つセルの右側の
セグメントについて右側最大値WR 、右側最大値傾きθ
M+1 を求める(ステップ43)。
Next, the maximum value of the cell in the segment on the left side of the cell having the maximum value W M is obtained, and this is calculated as the maximum value W on the left side.
L , and the slope at that time is the left-side maximum value slope θ M-1 (step 42). Similarly, for the segment on the right side of the cell having the maximum value W M , the right side maximum value W R and the right side maximum value slope θ
M + 1 is calculated (step 43).

【0025】次に、図10に示すように横軸に傾きθ、
縦軸に最大値Wをとった、θ−W平面を仮想し、このθ
−W平面内において、点(θM-1 ,WL )、点(θM
M)、点(θM+1 ,WR )から最小二乗法により近似
曲線Sを求める(ステップ44)。そして、この近似曲
線Sを微分するなどしてその変曲点Q(θR ,WR )を
求め、変曲点Qのθ座標θR を求める傾きとする(ステ
ップ45)。以上の説明から明らかなように、傾きθk
はもともと離散的な値として設定されていたが、正しい
傾きがその中間値であっても、以上のような近似曲線を
利用することにより正確に傾きを検出できる。また、対
象物がどのように傾いていても、その傾きの全体的傾向
は、θYテーブル17の各セルの値に全体的に反映され
るものであって、精度の良い傾き検出を行うことができ
る。
Next, as shown in FIG. 10, the horizontal axis is tilted by θ,
The θ-W plane with the maximum value W on the vertical axis is hypothesized and
In the −W plane, the point (θ M-1 , W L ) and the point (θ M ,
W M ), the point (θ M + 1 , W R ) is used to obtain an approximate curve S (step 44). Then, the inflection point Q (θ R , W R ) is obtained by differentiating the approximate curve S, and the θ coordinate θ R of the inflection point Q is used as the inclination to be obtained (step 45). As is clear from the above description, the slope θ k
Was originally set as a discrete value, but even if the correct slope is an intermediate value, the slope can be accurately detected by using the above approximate curve. Further, no matter how the object is tilted, the overall tendency of the tilt is reflected in the value of each cell of the θY table 17, and accurate tilt detection can be performed. it can.

【0026】この検出された傾きによってノズルを回転
させて補正を行い、吸着して基板に搭載する。そして、
次のチップの傾き検出、吸着、搭載を繰り返す。
The nozzle is rotated according to the detected inclination to perform correction, and the nozzle is sucked and mounted on the substrate. And
The next chip tilt detection, suction, and mounting are repeated.

【0027】[0027]

【発明の効果】本発明の傾き検出方法は、対象物の生画
像を取得するステップと、取得した生画像から直線の成
分を抽出した処理画像を得るステップと、直線上の画素
から一定の投影ラインへ延ばした線分の切片値と線分の
傾きとを要素に含む複数のセルからなるテーブルを設定
し、直線上の画素をサーチしつつセルのうち該当するセ
ルの値を加算するステップと、テーブルの分布に基いて
対象物の傾きを特定するステップとを有するので、対象
物の傾きにより検出される傾きの精度が低下することが
ないので、精度の良い傾き検出を実現することができ
る。
The inclination detecting method of the present invention comprises the steps of obtaining a raw image of an object, obtaining a processed image in which straight line components are extracted from the obtained raw image, and performing a constant projection from pixels on the straight line. A step of setting a table made up of a plurality of cells including, as elements, the intercept value of the line segment extended to the line and the slope of the line segment, and adding the value of the corresponding cell among the cells while searching for pixels on a straight line; , And the step of specifying the inclination of the object based on the distribution of the table, the accuracy of the inclination detected by the inclination of the object does not decrease, so that accurate inclination detection can be realized. .

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

【図1】本発明の一実施例における外観検査装置のブロ
ック図
FIG. 1 is a block diagram of a visual inspection apparatus according to an embodiment of the present invention.

【図2】本発明の一実施例における傾き検出方法を示す
フローチャート
FIG. 2 is a flowchart showing a tilt detection method according to an embodiment of the present invention.

【図3】(a)本発明の一実施例における傾き検出方法
の直線抽出処理の説明図 (b)本発明の一実施例における傾き検出方法の直線抽
出処理の説明図 (c)本発明の一実施例における傾き検出方法の直線抽
出処理の説明図
FIG. 3A is an explanatory diagram of a straight line extracting process of a tilt detecting method according to an embodiment of the present invention. FIG. 3B is an explanatory diagram of a straight line extracting process of a tilt detecting method according to an embodiment of the present invention. Explanatory drawing of straight line extraction processing of the inclination detection method in one embodiment

【図4】本発明の一実施例における傾き検出方法の切片
及び傾きの説明図
FIG. 4 is an explanatory diagram of an intercept and an inclination of an inclination detection method according to an embodiment of the present invention.

【図5】(a)本発明の一実施例における傾きの説明図 (b)本発明の一実施例における傾きの説明図 (c)本発明の一実施例における傾きの説明図5A is an explanatory diagram of a tilt in one embodiment of the present invention. FIG. 5B is an explanatory diagram of a tilt in one embodiment of the present invention. FIG. 5C is an explanatory view of a tilt in one embodiment of the present invention.

【図6】本発明の一実施例におけるθYテーブルの構成
FIG. 6 is a configuration diagram of a θY table according to an embodiment of the present invention.

【図7】本発明の一実施例におけるテーブル処理を示す
フローチャート
FIG. 7 is a flowchart showing table processing according to an embodiment of the present invention.

【図8】本発明の一実施例における加算後のθYテーブ
ルの例示図
FIG. 8 is an exemplary diagram of a θY table after addition in one embodiment of the present invention.

【図9】本発明の一実施例における傾き判定を示すフロ
ーチャート
FIG. 9 is a flowchart showing tilt determination in one embodiment of the present invention.

【図10】本発明の一実施例における近似曲線の例示図FIG. 10 is an exemplary diagram of an approximated curve in one embodiment of the present invention.

【図11】従来の対象物を例示する平面図FIG. 11 is a plan view illustrating a conventional object.

【図12】図11のウィンドウの拡大図FIG. 12 is an enlarged view of the window shown in FIG.

【図13】従来の対象物を例示する平面図FIG. 13 is a plan view illustrating a conventional object.

【図14】図13の一部拡大図FIG. 14 is a partially enlarged view of FIG.

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

3 チップ 17 θYテーブル 19 投影ライン Q 変曲点 3 chips 17 θY table 19 projection line Q inflection point

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】対象物の生画像を取得するステップと、取
得した生画像から直線の成分を抽出した処理画像を得る
ステップと、前記直線上の画素から一定の投影ラインへ
延ばした線分の切片値と前記線分の傾きとを要素に含む
複数のセルからなるテーブルを設定し、前記直線上の画
素をサーチしつつ前記セルのうち該当するセルの値を一
定値づつ加算するステップと、前記テーブルの分布に基
いて対象物の傾きを特定するステップとを有することを
特徴とする傾き検出方法。
1. A step of obtaining a raw image of an object, a step of obtaining a processed image in which a straight line component is extracted from the obtained raw image, and a line segment extending from a pixel on the straight line to a certain projection line. A step of setting a table composed of a plurality of cells including an intercept value and the inclination of the line segment as an element, and adding values of corresponding cells among the cells by a constant value while searching for pixels on the straight line; And a step of identifying the inclination of the object based on the distribution of the table.
【請求項2】前記処理画像は、前記生画像をソーベル変
換したものであることを特徴とする請求項1記載の傾き
検出方法。
2. The tilt detection method according to claim 1, wherein the processed image is a Sobel transform of the raw image.
【請求項3】前記傾きの特定は、前記テーブルの分布の
最大値と、この最大値に隣接するセル群のうちのそれぞ
れの最大値とから定めた近似曲線の変曲点を参照して行
うことを特徴とする請求項1記載の傾き検出方法。
3. The slope is specified by referring to an inflection point of an approximate curve determined from the maximum value of the distribution of the table and the maximum value of each cell group adjacent to the maximum value. The tilt detection method according to claim 1, wherein
JP00258395A 1995-01-11 1995-01-11 Tilt detection method Expired - Fee Related JP3307131B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP00258395A JP3307131B2 (en) 1995-01-11 1995-01-11 Tilt detection method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP00258395A JP3307131B2 (en) 1995-01-11 1995-01-11 Tilt detection method

Publications (2)

Publication Number Publication Date
JPH08189822A true JPH08189822A (en) 1996-07-23
JP3307131B2 JP3307131B2 (en) 2002-07-24

Family

ID=11533402

Family Applications (1)

Application Number Title Priority Date Filing Date
JP00258395A Expired - Fee Related JP3307131B2 (en) 1995-01-11 1995-01-11 Tilt detection method

Country Status (1)

Country Link
JP (1) JP3307131B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007132679A1 (en) * 2006-05-15 2007-11-22 Sanyo Electric Co., Ltd. Image inclination correction device and image inclination correction method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007132679A1 (en) * 2006-05-15 2007-11-22 Sanyo Electric Co., Ltd. Image inclination correction device and image inclination correction method

Also Published As

Publication number Publication date
JP3307131B2 (en) 2002-07-24

Similar Documents

Publication Publication Date Title
US6748104B1 (en) Methods and apparatus for machine vision inspection using single and multiple templates or patterns
US5371690A (en) Method and apparatus for inspection of surface mounted devices
JP3366497B2 (en) Component detection method
US20060188160A1 (en) Device, method, and computer-readable medium for detecting changes in objects in images and their features
US5557690A (en) Method and system for locating objects with subpixel precision
CN114494045B (en) Large spur gear geometric parameter measurement system and method based on machine vision
KR19990036608A (en) How to Create Wafer Measurement Information and How to Position Measurement
US20040109599A1 (en) Method for locating the center of a fiducial mark
JP3545542B2 (en) Wafer rotation direction detection method
JP5160366B2 (en) Pattern matching method for electronic parts
JPH08189822A (en) Inclination detecting method
JP2002207996A (en) Method and device for detecting pattern defect
JP3632461B2 (en) Image recognition method
JP4566686B2 (en) Method and apparatus for determining shape of object
JPH11311506A (en) Method and device for detecting position of electronic component
JPH05149716A (en) Corner detecting method
US6240202B1 (en) Appearance inspection method for electronic parts
JP2004118467A (en) Member inclination recognizing method, member inclination recognition control program, readable recording medium, and shape recognizing device
JPH0737893B2 (en) Pattern matching method
JP4357666B2 (en) Pattern inspection method and apparatus
JP3720476B2 (en) Component detection method
JPH0612249B2 (en) Pattern inspection device
JP3765888B2 (en) Part position detection method
JPH11126816A (en) Method for correcting and deciding coordinates of objective point on wafer
JPH11167640A (en) Measuring method due to image recognition and recording medium

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090517

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100517

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110517

Year of fee payment: 9

LAPS Cancellation because of no payment of annual fees