JP2949089B2 - Image processing device - Google Patents

Image processing device

Info

Publication number
JP2949089B2
JP2949089B2 JP9086541A JP8654197A JP2949089B2 JP 2949089 B2 JP2949089 B2 JP 2949089B2 JP 9086541 A JP9086541 A JP 9086541A JP 8654197 A JP8654197 A JP 8654197A JP 2949089 B2 JP2949089 B2 JP 2949089B2
Authority
JP
Japan
Prior art keywords
edge
detection area
detection
image processing
processing apparatus
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP9086541A
Other languages
Japanese (ja)
Other versions
JPH10281730A (en
Inventor
真一 大倉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
AJIA EREKUTORONIKUSU KK
Original Assignee
AJIA EREKUTORONIKUSU KK
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 AJIA EREKUTORONIKUSU KK filed Critical AJIA EREKUTORONIKUSU KK
Priority to JP9086541A priority Critical patent/JP2949089B2/en
Publication of JPH10281730A publication Critical patent/JPH10281730A/en
Application granted granted Critical
Publication of JP2949089B2 publication Critical patent/JP2949089B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、ICチップ上のボ
ンディングパッドなどの物体のエッジを検出し、当該物
体の位置を検出する画像処理装置に関する。
The present invention relates to an image processing apparatus for detecting an edge of an object such as a bonding pad on an IC chip and detecting the position of the object.

【0002】[0002]

【従来の技術】従来、ICチップ上のボンディングパッ
ド(以後、パッドと称する)のエッジを検出する際によ
く使用される方法は、投影図による検出方法である。こ
の方法は、図9に示すように、予め指定された検出エリ
ア10において、縦方向の投影図(プロジェクション)
と横方向の投影図を作成し、各々の投影図が所定のしき
い値を横切る点をパッド11のエッジとする。
2. Description of the Related Art Conventionally, a method often used for detecting an edge of a bonding pad (hereinafter, referred to as a pad) on an IC chip is a detection method based on a projection view. In this method, as shown in FIG. 9, a vertical projection diagram (projection) is applied to a detection area 10 designated in advance.
Then, a projection in the horizontal direction is created, and a point where each projection crosses a predetermined threshold value is defined as an edge of the pad 11.

【0003】[0003]

【発明が解決しようとする課題】投影図によるパッドの
検出方法は、検出エリア内にパッド以外の物体が存在し
ない場合に限り、有効な方法である。しかし、実際は、
パッドの近傍には、リ−ドパタ−ンや、別のパッドなど
が存在する。これらの物体は、検出エリアにおける縦方
向及び横方向の投影図に影響を与えるため、パッドのエ
ッジを正確に検出することができない。
The method of detecting a pad based on a projection view is an effective method only when no object other than the pad exists in the detection area. But in fact,
In the vicinity of the pad, there are a lead pattern and another pad. Since these objects affect the projections in the vertical and horizontal directions in the detection area, the edges of the pad cannot be accurately detected.

【0004】本発明は、上記欠点を解決すべくなされた
もので、その目的は、検出エリア内に目標の物体(パッ
ドなど)以外の物体が存在しても、当該目標の物体のエ
ッジを正確に検出できる画像処理装置を提供することで
ある。
SUMMARY OF THE INVENTION The present invention has been made to solve the above-described drawbacks, and has as its object to accurately detect an edge of a target object even if an object other than the target object (such as a pad) exists in a detection area. It is an object of the present invention to provide an image processing device capable of detecting the same.

【0005】[0005]

【課題を解決するための手段】[Means for Solving the Problems]

A. 上記目的を達成するため、本発明の画像処理装置
は、取り込み画像について検出エリア及びしきい値を決
定する第1手段と、前記検出エリア内において1ライン
ごとに濃度の断面図を作成し、前記しきい値と前記濃度
の断面図に基づいて前記検出エリア内の物体のエッジを
検出する第2手段とを備える。
A. In order to achieve the above object, an image processing apparatus according to the present invention includes: a first unit that determines a detection area and a threshold for a captured image; and a cross-sectional view of density for each line in the detection area. Second means for detecting an edge of an object in the detection area based on a threshold value and a sectional view of the density.

【0006】前記第2手段は、前記検出エリア内の1点
をエッジ検出開始点とし、前記エッジ検出開始点から前
記検出エリアの端部に向かって1ラインごとに濃度の断
面図を作成する。
The second means sets a point in the detection area as an edge detection start point, and creates a cross-sectional view of the density for each line from the edge detection start point toward an end of the detection area.

【0007】前記第2手段は、最初に作成した濃度の断
面図から前記物体の両端を示すエッジペアが検出できな
かった場合に、前記検出エリアを拡大した後、再びエッ
ジ検出を行う。
The second means performs edge detection again after enlarging the detection area when an edge pair indicating both ends of the object cannot be detected from the cross section of the density created first.

【0008】前記第2手段は、2回目以降に作成した濃
度の断面図から前記物体の両端を示すエッジペアが検出
できた場合において、次のラインが前記検出エリアから
外れるときは、前記検出エリアを拡大した後、再びエッ
ジ検出を行う。
[0008] The second means, when an edge pair indicating both ends of the object can be detected from the cross-sectional view of the density created from the second time on, when the next line deviates from the detection area, the detection area After the enlargement, edge detection is performed again.

【0009】本発明の画像処理装置は、前記検出エリア
の大きさが最大となった場合に、前記検出エリアの大き
さを元に戻し、前記しきい値を変化させた後に、再びエ
ッジ検出を行う第3手段を備え、また、前記しきい値が
上限又は下限を越えた場合に、前記物体のエッジ検出は
不可能であると判断する第4手段を備える。
In the image processing apparatus according to the present invention, when the size of the detection area is maximized, the size of the detection area is restored, the edge is detected again after the threshold value is changed. A third means for determining that the edge detection of the object is impossible when the threshold value exceeds an upper limit or a lower limit.

【0010】B. 本発明の画像処理装置は、取り込み
画像について検出エリア及びしきい値を決定する第1手
段と、前記検出エリア内において1ラインごとに濃度の
断面図を作成し、前記しきい値と前記濃度の断面図に基
づいて前記検出エリア内の物体のエッジを検出する第2
手段と、前記物体のエッジの検出結果に基づいて前記検
出エリアより狭い再検出エリアを設定する第3手段と、
前記再検出エリア内において1ラインごとに濃度の断面
図を作成し、前記しきい値と前記再検出エリア内の濃度
の断面図に基づいて前記物体のエッジを再検出する第4
手段とを備えている。
B. An image processing apparatus according to the present invention includes a first unit that determines a detection area and a threshold value for a captured image, and creates a cross-sectional view of density for each line in the detection area, and A second step of detecting an edge of the object in the detection area based on the sectional view;
Means, and third means for setting a re-detection area smaller than the detection area based on the detection result of the edge of the object,
A fourth step of creating a cross-sectional view of the density for each line in the re-detection area and re-detecting the edge of the object based on the threshold and the cross-sectional view of the density in the re-detection area
Means.

【0011】前記第3手段は、前記再検出エリアを、少
なくとも前記第2手段により検出された前記物体のエッ
ジの全てを含むような範囲に設定する。本発明の画像処
理装置は、さらに、前記第4手段による前記物体のエッ
ジの検出率が所定の判定値以上である場合に、前記再検
出エリア内のエッジの位置の平均値を求め、その平均値
を前記物体のエッジの位置とする第5手段を備える。
The third means sets the re-detection area to a range including at least all the edges of the object detected by the second means. The image processing apparatus of the present invention further obtains an average value of the position of the edge in the re-detection area when the detection rate of the edge of the object by the fourth means is equal to or more than a predetermined determination value. Fifth means for setting a value to a position of an edge of the object is provided.

【0012】本発明の画像処理装置は、さらに、前記第
4手段による前記物体のエッジの検出率が所定の判定値
未満である場合に、前記第1手段により決定された前記
検出エリアを拡大した後、再びエッジ検出を行う第5手
段を備える。
The image processing apparatus of the present invention further enlarges the detection area determined by the first means when a detection rate of the edge of the object by the fourth means is less than a predetermined determination value. Thereafter, a fifth means for performing edge detection again is provided.

【0013】本発明の画像処理装置は、さらに、前記検
出エリアの大きさが最大となった場合に、前記検出エリ
アの大きさを元に戻し、前記しきい値を変化させた後
に、再びエッジ検出を行う第6手段を備え、また、前記
しきい値が上限又は下限を越えた場合に、前記物体のエ
ッジ検出は不可能であると判断する第7手段を備えてい
る。
In the image processing apparatus according to the present invention, when the size of the detection area is maximized, the size of the detection area is restored, the threshold value is changed, and then the edge is again detected. A sixth means for performing detection is provided, and a seventh means for determining that edge detection of the object is impossible when the threshold value exceeds an upper limit or a lower limit.

【0014】[0014]

【発明の実施の形態】以下、図面を参照しながら、本発
明の画像処理装置について詳細に説明する。図1は、本
発明の画像処理装置の全体構成を示している。画像取り
込み部1は、基準画像と被検査画像を取り込む部分であ
り、CCDカメラ、ビデオカメラ、スキャナなどから構
成される。画像メモリ2は、基準画像と被検査画像を記
憶する部分であり、少なくとも2フレ−ム分の画像デ−
タを記憶できる容量を有する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, an image processing apparatus according to the present invention will be described in detail with reference to the drawings. FIG. 1 shows the overall configuration of the image processing apparatus of the present invention. The image capturing unit 1 captures a reference image and an image to be inspected, and includes a CCD camera, a video camera, a scanner, and the like. The image memory 2 stores a reference image and an image to be inspected, and stores image data of at least two frames.
Data storage capacity.

【0015】しきい値決定回路3は、パッドのエッジを
検出する際に基準となるしきい値を決定する回路であ
る。概略エッジ検出回路4は、以下に述べるエッジ検出
アルゴリズムにより、パッドのエッジの概略の位置を検
出する回路である。判定回路5は、概略エッジ検出回路
4でエッジの概略の位置を求める際に行われる種々の判
定を行う部分である。
The threshold value determining circuit 3 is a circuit for determining a threshold value which is used as a reference when detecting a pad edge. The rough edge detection circuit 4 is a circuit that detects a rough position of a pad edge by an edge detection algorithm described below. The determination circuit 5 is a part that performs various types of determination performed when the approximate edge detection circuit 4 determines the approximate position of the edge.

【0016】詳細エッジ検出回路6は、概略エッジの位
置に基づいて、正確なエッジの位置を求めるための範囲
を決定し、さらに、その範囲において、パッドのエッジ
の位置を検出する回路である。判定回路7は、詳細エッ
ジ検出回路6でエッジの位置を求める際に行われる種々
の判定を行う部分である。
The detailed edge detecting circuit 6 is a circuit which determines a range for obtaining an accurate edge position based on the approximate edge position, and further detects a pad edge position in the range. The determination circuit 7 is a part that performs various determinations performed when the edge position is obtained by the detailed edge detection circuit 6.

【0017】次に、図1の画像処理装置の動作について
説明する。なお、以下では、パッドの位置を検出するパ
ッド検出方法を例に説明することとする。
Next, the operation of the image processing apparatus of FIG. 1 will be described. In the following, a pad detection method for detecting the position of a pad will be described as an example.

【0018】まず、画像取り込み部1により基準画像と
被検査画像を画像メモリ2内に取り込み、図2に示すよ
うに、パッドの検出エリア10を設定する。本例では、
例えば、検出エリア10の左上を座標原点Oとする。ま
た、しきい値決定回路3により、パッドのエッジを検出
する際に基準となるしきい値を決定する。
First, the reference image and the image to be inspected are fetched into the image memory 2 by the image fetching unit 1, and a pad detection area 10 is set as shown in FIG. In this example,
For example, the upper left of the detection area 10 is set as the coordinate origin O. Further, the threshold value determining circuit 3 determines a reference threshold value when detecting the edge of the pad.

【0019】次に、概略エッジ検出回路4及び判定回路
5によりパッドの概略のエッジの位置が検出される。こ
のエッジ検出は、パッド上の異物による誤検出や指定さ
れたパッド以外のものを検出しないようにするために行
う。
Next, the approximate edge detection circuit 4 and the determination circuit 5 detect the approximate edge position of the pad. This edge detection is performed so as to prevent erroneous detection due to foreign matter on the pad or other than the designated pad.

【0020】まず、検出エリア10内の所定の1点(画
素)がオペレ−タにより選択され、その所定の1点をエ
ッジ検出開始点Pとする。また、図3に示すように、エ
ッジ検出開始点Pから検出エリア10の上方向aに向か
って、1ライン(行)ずつ、横方向(X方向)の濃度の
断面図を作成し、かつ、各濃度の断面図について、その
断面図がしきい値を横切る点(画素の位置)を概略エッ
ジの位置とする。
First, a predetermined point (pixel) in the detection area 10 is selected by an operator, and the predetermined point is set as an edge detection start point P. Further, as shown in FIG. 3, a cross-sectional view of the density in the horizontal direction (X direction) is created for each line (row) from the edge detection start point P toward the upward direction a of the detection area 10, and Regarding the cross-sectional view of each density, a point (pixel position) at which the cross-sectional view crosses the threshold value is roughly defined as an edge position.

【0021】ここで、ラインk以降は、エッジが検出さ
れないと考えられるため、予め設定された指定ライン数
だけ連続してエッジの検出が行われなかった場合には、
検出ラインがパッドから外れたものとして、上方向aへ
のエッジ検出を終了する。
Here, since it is considered that no edge is detected after the line k, if the edge is not detected continuously for the preset number of designated lines,
Assuming that the detection line has deviated from the pad, the edge detection in the upward direction a ends.

【0022】また、エッジ検出が行われなかったライン
が指定ライン数に達していないが、検出ラインが検出エ
リア10から外れたときにおいても、上方向aへのエッ
ジ検出を終了する。
Further, even when the number of lines for which edge detection has not been performed has not reached the specified number of lines, but the detected line has deviated from the detection area 10, the edge detection in the upward direction a is terminated.

【0023】同様に、エッジ検出開始点Pから検出エリ
ア10の下方向bに向かって、1ライン(行)ずつ、横
方向(X方向)の濃度の断面図を作成し、かつ、各濃度
の断面図について、その断面図がしきい値を横切る点
(画素の位置)を概略エッジの位置とする。
Similarly, from the edge detection start point P to the downward direction b of the detection area 10, one line (line) is formed for each line (row) in a cross-sectional view of the density in the horizontal direction (X direction). Regarding the cross-sectional view, a point (pixel position) at which the cross-sectional view crosses the threshold value is roughly defined as an edge position.

【0024】下方向bについても、上方向aと同様に、
指定ライン数だけ連続してエッジの検出が行われなかっ
た場合、又は検出ラインが検出エリア10から外れた場
合には、下方向bへのエッジ検出を終了する。
As for the downward direction b, similarly to the upward direction a,
If edge detection has not been performed continuously for the specified number of lines, or if the detected line has deviated from the detection area 10, the edge detection in the downward direction b ends.

【0025】上方向a及び下方向bに対するエッジ検出
が終了すると、例えば、図4に示すように、パッドの横
方向(X方向)のエッジの概略の位置を示すエッジペア
群(×印で示す)が得られる。
When the edge detection in the upward direction a and the downward direction b is completed, for example, as shown in FIG. 4, an edge pair group (indicated by a cross) indicating the approximate position of the edge in the horizontal direction (X direction) of the pad Is obtained.

【0026】さらに、図2の検出エリア10の左方向c
及び右方向dについても、エッジ検出開始点Pから検出
エリア10の左方向c又は右方向dに向かって、それぞ
れ1ライン(列)ずつ、縦方向(Y方向)の濃度の断面
図を作成し、かつ、各濃度の断面図について、その断面
図がしきい値を横切る点(画素の位置)を概略エッジの
位置とする。
Further, the left direction c of the detection area 10 in FIG.
Also, for the right direction d, a cross-sectional view of the density in the vertical direction (Y direction) is created for each line (row) from the edge detection start point P toward the left direction c or the right direction d of the detection area 10. In addition, with respect to the cross-sectional views of each concentration, a point (pixel position) where the cross-sectional view crosses the threshold value is set as an approximate edge position.

【0027】左方向c及び右方向dに対するエッジ検出
が終了すると、例えば、図5に示すように、パッドの縦
方向(Y方向)のエッジの概略の位置を示すエッジペア
群(×印で示す)が得られる。
When the edge detection in the left direction c and the right direction d is completed, for example, as shown in FIG. 5, an edge pair group (indicated by a cross) indicating the approximate position of the edge in the vertical direction (Y direction) of the pad Is obtained.

【0028】なお、エッジ検出開始点Pから所定方向に
エッジ検出を行うにあたって、エッジペアが全く見つか
らない場合には、パッドに対して検出エリア10が狭
い、即ち、パッドが検出エリア10からはみだしている
と考えられる。
When detecting an edge in a predetermined direction from the edge detection start point P, if no edge pair is found, the detection area 10 is narrow with respect to the pad, that is, the pad protrudes from the detection area 10. it is conceivable that.

【0029】よって、このような場合には、検出エリア
10の大きさを所定量だけ拡大した後に、再び、上述の
概略エッジ検出アルゴリズムを適用し、エッジぺアを検
出する。
Therefore, in such a case, after the size of the detection area 10 is enlarged by a predetermined amount, the above-described general edge detection algorithm is applied again to detect the edge pair.

【0030】但し、検出エリア10の大きさが予め設定
された最大検出エリアを越える場合には、検出エリア1
0の拡大は行わない。この場合には、検出エリア10を
最初の大きさに戻すと共に、しきい値を増加(又は減
少)させて、再び、上述のエッジ検出動作を行う。
However, if the size of the detection area 10 exceeds the preset maximum detection area, the detection area 1
No expansion of 0 is performed. In this case, the detection area 10 is returned to the initial size, and the threshold value is increased (or decreased), and the above-described edge detection operation is performed again.

【0031】また、しきい値が予め設定された最大しき
い値を越える(又は最小しきい値を下回る)場合には、
パッド検出不可能(NG)として、エッジ検出動作を終
了する。
When the threshold value exceeds a preset maximum threshold value (or falls below a minimum threshold value),
The pad detection is not possible (NG), and the edge detection operation ends.

【0032】次に、詳細エッジ検出回路6及び判定回路
7によりパッドの詳細なエッジ位置が検出される。この
エッジ検出は、エッジの直線性を見ることによりパッド
のエッジを正確に検出すること、及び、エッジ位置の平
均値を求めることによりエッジの検出位置の精度を向上
させることを目的とする。
Next, the detailed edge position of the pad is detected by the detailed edge detection circuit 6 and the determination circuit 7. The purpose of this edge detection is to accurately detect the edge of the pad by checking the linearity of the edge, and to improve the accuracy of the edge detection position by obtaining the average value of the edge positions.

【0033】まず、パッドの4つのエッジ近傍に再検出
エリアA,B,C,Dを設定する。この再検出エリア
は、以下のようにして決定される。図4及び図5に示す
ように、横方向(X方向)のエッジペア群のうち、横方
向の位置がエッジ検出開始点Pの横方向の位置から最も
遠く離れているエッジを検出し、そのエッジの座標を横
方向概略エッジ座標Emax ,Emax ´とする。また、横
方向のエッジペア群のうち、横方向の位置がエッジ検出
開始点Pの横方向の位置に最も近いエッジを検出し、そ
のエッジの座標を横方向概略エッジ座標Emin ,Emin
´とする。
First, re-detection areas A, B, C and D are set near the four edges of the pad. This redetection area is determined as follows. As shown in FIGS. 4 and 5, the edge whose horizontal position is farthest from the horizontal position of the edge detection start point P is detected from the edge pair group in the horizontal direction (X direction), and the edge is detected. Are assumed to be the approximate horizontal edge coordinates Emax and Emax '. Further, an edge whose horizontal position is closest to the horizontal position of the edge detection start point P in the horizontal edge pair group is detected, and the coordinates of the edge are converted to the horizontal approximate edge coordinates Emin, Emin.
'.

【0034】同様に、縦方向(Y方向)のエッジペア群
のうち、縦方向の位置がエッジ検出開始点Pの縦方向の
位置から最も遠く離れているエッジを検出し、そのエッ
ジの座標を縦方向概略エッジ座標Fmax ,Fmax ´とす
る。また、縦方向のエッジペア群のうち、縦方向の位置
がエッジ検出開始点Pの縦方向の位置に最も近いエッジ
を検出し、そのエッジの座標を縦方向概略エッジ座標F
min ,Fmin ´とする。
Similarly, of the edge pair group in the vertical direction (Y direction), the edge whose vertical position is farthest from the vertical position of the edge detection start point P is detected, and the coordinates of the edge are set in the vertical direction. The directions are assumed to be roughly edge coordinates Fmax and Fmax '. Further, an edge whose vertical position is closest to the vertical position of the edge detection start point P in the vertical edge pair group is detected, and the coordinates of the edge are determined by the vertical approximate edge coordinates F.
min and Fmin '.

【0035】そして、再検出エリアAの横方向は、横方
向のエッジペア群が全て含まれるように、少なくともE
max からEmin までの範囲よりは広く設定され、縦方向
は、Fmax からFmax ´までの範囲に設定される。
The horizontal direction of the re-detection area A is at least E so that all the edge pairs in the horizontal direction are included.
It is set wider than the range from max to Emin, and the vertical direction is set from Fmax to Fmax '.

【0036】同様に、再検出エリアBの横方向は、横方
向のエッジペア群が全て含まれるように、少なくともE
max ´からEmin ´までの範囲よりは広く設定され、縦
方向は、Fmax からFmax ´までの範囲に設定される。
Similarly, the horizontal direction of the re-detection area B is at least E so that all the edge pairs in the horizontal direction are included.
It is set wider than the range from max 'to Emin', and the vertical direction is set from Fmax to Fmax '.

【0037】また、再検出エリアCの縦方向は、縦方向
のエッジペア群が全て含まれるように、少なくともFma
x からFmin までの範囲よりは広く設定され、横方向
は、Emax からEmax ´までの範囲に設定される。
The vertical direction of the re-detection area C is at least Fma so that all edge pairs in the vertical direction are included.
It is set wider than the range from x to Fmin, and the horizontal direction is set from Emax to Emax '.

【0038】同様に、再検出エリアDの縦方向は、縦方
向のエッジペア群が全て含まれるように、少なくともF
max ´からFmin ´までの範囲よりは広く設定され、横
方向は、Emax からEmax ´までの範囲に設定される。
Similarly, the vertical direction of the re-detection area D is at least F so that all vertical edge pairs are included.
The width is set wider than the range from max 'to Fmin', and the horizontal direction is set from Emax to Emax '.

【0039】次に、図6に示すように、再検出エリア
A,B,C,Dにおいて、再度、パッドのエッジ検出を
行う。そして、再検出エリアA,B,C,Dにおけるエ
ッジ検出率が、予め設定された判定値以上であれば、再
検出エリアA,B,C,Dで検出されたエッジの座標値
の平均値をエッジ座標とする。
Next, as shown in FIG. 6, pad edges are detected again in the re-detection areas A, B, C and D. If the edge detection rates in the re-detection areas A, B, C, and D are equal to or greater than a predetermined determination value, the average value of the coordinate values of the edges detected in the re-detection areas A, B, C, and D Is the edge coordinate.

【0040】一方、再検出エリアA,B,C,Dにおけ
るエッジ検出率が、予め設定された判定値未満の場合に
は、検出エリア10を所定量だけ拡大した後、再び、最
初から上述のエッジ検出アルゴリズムを適用し、エッジ
の検出を実行する。
On the other hand, when the edge detection rates in the re-detection areas A, B, C, and D are less than a predetermined judgment value, the detection area 10 is enlarged by a predetermined amount, and then the above-described operation is started again from the beginning. An edge detection algorithm is applied to perform edge detection.

【0041】但し、検出エリア10の大きさが予め設定
された最大検出エリアを越える場合には、検出エリア1
0を最初の大きさに戻すと共に、しきい値を増加(又は
減少)させて、再び、上述のエッジ検出動作を行う。
However, if the size of the detection area 10 exceeds the preset maximum detection area, the detection area 1
The threshold value is increased (or decreased) while 0 is returned to the initial value, and the above-described edge detection operation is performed again.

【0042】また、しきい値が予め設定された最大しき
い値を越える場合(又は最小しきい値を下回る場合)に
は、パッド検出不可能(NG)として、エッジ検出動作
を終了する。
If the threshold value exceeds the preset maximum threshold value (or falls below the minimum threshold value), the pad detection is impossible (NG) and the edge detection operation is terminated.

【0043】再検出エリアA,B,C,Dにおいてエッ
ジ座標(平均値)を検出した後、当該エッジの座標に基
づいて、パッドの位置を求める。なお、上述のエッジ検
出アルゴリズムをフロ−チャ−ト化したものを、図7及
び図8に示しておく。
After detecting the edge coordinates (average value) in the re-detection areas A, B, C, and D, the position of the pad is obtained based on the coordinates of the edge. FIGS. 7 and 8 show flowcharts of the above-described edge detection algorithm.

【0044】上記実施の形態では、位置検出の対象とな
る物体(パッド)が背景よりも明るい場合を前提とした
が、その逆であってもよい。また、位置検出の対象とな
る物体が正方形でなくても、上述のエッジ検出アルゴリ
ズムを適用できる。
In the above embodiment, it is assumed that the object (pad) to be subjected to position detection is brighter than the background, but the reverse is also possible. Further, even if the object whose position is to be detected is not a square, the above-described edge detection algorithm can be applied.

【0045】[0045]

【発明の効果】以上、説明したように、本発明の画像処
理装置によれば、次のような効果を奏する。パッド全体
を含む検出エリアにおいて概略のエッジ検出を行った
後、エッジ近傍に再検出エリアを設定し、その再検出エ
リアにおいて詳細なエッジ検出を再び行っている。
As described above, according to the image processing apparatus of the present invention, the following effects can be obtained. After performing rough edge detection in the detection area including the entire pad, a re-detection area is set near the edge, and detailed edge detection is performed again in the re-detection area.

【0046】また、各エッジ検出においては、投影図
(プロジェクション)を用いることなく、1ラインごと
の濃度の断面図を用いている。よって、位置検出の対象
となるパッドの周辺にボンディングワイヤやリ−ドなど
が存在しても、パッドのエッジを正確に検出することが
できる。
Also, in each edge detection, a sectional view of the density for each line is used without using a projection diagram (projection). Therefore, even if a bonding wire or a lead exists around the pad whose position is to be detected, the pad edge can be detected accurately.

【0047】また、再検出エリアの設定により、エッジ
検出の直線性を見ることができ、これによりパッド上の
異物などを誤検出することがなく、正確にパッドのエッ
ジを検出できるようになる。また、再検出エリアにおい
て求められたエッジ座標の平均値をとることで、エッジ
検出の精度を向上させることができる。
Further, by setting the re-detection area, the linearity of edge detection can be checked, and thereby the edge of the pad can be detected accurately without erroneously detecting a foreign substance or the like on the pad. In addition, by taking the average value of the edge coordinates obtained in the re-detection area, the accuracy of edge detection can be improved.

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

【図1】本発明の実施の形態に関わる画像処理装置の構
成を示す図。
FIG. 1 is a diagram showing a configuration of an image processing apparatus according to an embodiment of the present invention.

【図2】本発明のエッジ検出手法を示す図。FIG. 2 is a diagram showing an edge detection method according to the present invention.

【図3】本発明のエッジ検出手法を示す図。FIG. 3 is a diagram showing an edge detection method according to the present invention.

【図4】本発明のエッジ検出手法を示す図。FIG. 4 is a diagram showing an edge detection method according to the present invention.

【図5】本発明のエッジ検出手法を示す図。FIG. 5 is a diagram showing an edge detection method according to the present invention.

【図6】本発明のエッジ検出手法を示す図。FIG. 6 is a diagram showing an edge detection method according to the present invention.

【図7】本発明の画像処理装置の動作を示すフロ−チャ
−ト。
FIG. 7 is a flowchart showing the operation of the image processing apparatus of the present invention.

【図8】本発明の画像処理装置の動作を示すフロ−チャ
−ト。
FIG. 8 is a flowchart showing the operation of the image processing apparatus of the present invention.

【図9】従来のエッジ検出手法を示す図。FIG. 9 is a diagram showing a conventional edge detection method.

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

10 :検出エリア 11 :パッド、 A,B,C,D :再検出エリア。 10: Detection area 11: Pad, A, B, C, D: Re-detection area.

Claims (11)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 取り込み画像について検出エリア及びし
きい値を決定する第1手段と、前記検出エリア内におい
て1ラインごとに濃度の断面図を作成し、前記しきい値
と前記濃度の断面図に基づいて前記検出エリア内の物体
のエッジを検出する第2手段と、前記物体のエッジの検
出結果に基づいて前記検出エリアより狭い再検出エリア
を設定する第3手段と、前記再検出エリア内において1
ラインごとに濃度の断面図を作成し、前記しきい値と前
記再検出エリア内の濃度の断面図に基づいて前記物体の
エッジを再検出する第4手段とを具備することを特徴と
する画像処理装置。
1. A first means for determining a detection area and a threshold value for a captured image, and forming a cross-sectional view of density for each line in the detection area, and forming the cross-sectional view of the threshold value and the density. Second means for detecting an edge of the object in the detection area based on the detection of the edge of the object.
Re-detection area smaller than the detection area based on the output result
And third means for setting a value within the re-detection area.
Create a cross section of concentration for each line, and
Based on the cross-sectional view of the concentration in the re-detection area,
An image processing apparatus comprising: fourth means for re-detecting an edge .
【請求項2】 取り込み画像について検出エリア及びし
きい値を決定する第1手段と、前記検出エリア内におい
て1ラインごとに濃度の断面図を作成し、前記しきい値
と前記濃度の断面図に基づいて前記検出エリア内の物体
のエッジを検出する第2手段とを具備し、前記第2手段
は、前記検出エリア内の1点をエッジ検出開始点とし、
前記エッジ検出開始点から前記検出エリアの端部に向か
って1ラインごとに濃度の断面図を作成することを特徴
とする画像処理装置。
2. A detection area for a captured image.
First means for determining a threshold value;
A cross-sectional view of the concentration for each line by
And the object in the detection area based on the cross-sectional view of the concentration
And a second means for detecting an edge of the detection area, the second means as one edge detection start point in the detection area,
A cross-sectional view of density is created for each line from the edge detection start point toward an end of the detection area.
The image processing apparatus according to.
【請求項3】 前記第2手段は、最初に作成した濃度の
断面図から前記物体の両端を示すエッジペアが検出でき
なかった場合に、前記検出エリアを拡大した後、再びエ
ッジ検出を行うことを特徴とする請求項記載の画像処
理装置。
3. The method according to claim 2, wherein when the edge pair indicating both ends of the object cannot be detected from the cross section of the density created first, the edge detection is performed again after enlarging the detection area. 3. The image processing apparatus according to claim 2, wherein:
【請求項4】 前記第2手段は、2回目以降に作成した
濃度の断面図から前記物体の両端を示すエッジペアが検
出できた場合において、次のラインが前記検出エリアか
ら外れるときは、前記検出エリアを拡大した後、再びエ
ッジ検出を行うことを特徴とする請求項記載の画像処
理装置。
4. The method according to claim 1, wherein when the edge pair indicating both ends of the object can be detected from the cross-sectional views of the density created after the second time, when the next line deviates from the detection area, the detection is performed. 3. The image processing apparatus according to claim 2 , wherein edge detection is performed again after the area is enlarged.
【請求項5】 前記検出エリアの大きさが最大となった
場合に、前記検出エリアの大きさを元に戻し、前記しき
い値を変化させた後に、再びエッジ検出を行う第3手段
をさらに具備することを特徴とする請求項又は記載
の画像処理装置。
5. The method according to claim 5, wherein when the size of the detection area is maximized, the size of the detection area is returned to the original size, the threshold value is changed, and edge detection is performed again. the image processing apparatus according to claim 3 or 4, wherein that it comprises.
【請求項6】 前記しきい値が上限又は下限を越えた場
合に、前記物体のエッジ検出は不可能であると判断する
第4手段をさらに具備することを特徴とする請求項
載の画像処理装置。
6. The image according to claim 5 , further comprising: fourth means for judging that the edge of the object cannot be detected when the threshold value exceeds an upper limit or a lower limit. Processing equipment.
【請求項7】 前記第3手段は、前記再検出エリアを、
少なくとも前記第2手段により検出された前記物体のエ
ッジの全てを含むような範囲に設定することを特徴とす
る請求項記載の画像処理装置。
7. The third means, wherein the re-detection area is
The image processing apparatus according to claim 1, wherein the set in the range that includes all of the edges of said detected object by at least the second means.
【請求項8】 前記第4手段による前記物体のエッジの
検出率が所定の判定値以上である場合に、前記再検出エ
リア内のエッジの位置の平均値を求め、その平均値を前
記物体のエッジの位置とする第5手段を具備することを
特徴とする請求項記載の画像処理装置。
8. When an edge detection rate of the object by the fourth means is equal to or greater than a predetermined determination value, an average value of edge positions in the re-detection area is obtained, and the average value is determined for the object. the image processing apparatus according to claim 1, characterized by comprising a fifth means for the position of the edge.
【請求項9】 前記第4手段による前記物体のエッジの
検出率が所定の判定値未満である場合に、前記第1手段
により決定された前記検出エリアを拡大した後、再びエ
ッジ検出を行う第5手段を具備することを特徴とする請
求項1記載の画像処理装置。
9. When the detection rate of the edge of the object by the fourth means is less than a predetermined determination value, the detection area determined by the first means is enlarged and then edge detection is performed again. 2. The image processing apparatus according to claim 1, comprising five means.
【請求項10】 前記検出エリアの大きさが最大となっ
た場合に、前記検出エリアの大きさを元に戻し、前記し
きい値を変化させた後に、再びエッジ検出を行う第6手
段をさらに具備することを特徴とする請求項記載の画
像処理装置。
10. A sixth means for resetting the size of the detection area when the size of the detection area is maximized, changing the threshold value, and performing edge detection again. The image processing apparatus according to claim 9, further comprising:
【請求項11】 前記しきい値が上限又は下限を越えた
場合に、前記物体のエッジ検出は不可能であると判断す
る第7手段をさらに具備することを特徴とする請求項1
0記載の画像処理装置。
11. The apparatus according to claim 1, further comprising: seventh means for determining that edge detection of said object is impossible when said threshold value exceeds an upper limit or a lower limit.
0. The image processing apparatus according to item 0.
JP9086541A 1997-04-04 1997-04-04 Image processing device Expired - Lifetime JP2949089B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9086541A JP2949089B2 (en) 1997-04-04 1997-04-04 Image processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9086541A JP2949089B2 (en) 1997-04-04 1997-04-04 Image processing device

Publications (2)

Publication Number Publication Date
JPH10281730A JPH10281730A (en) 1998-10-23
JP2949089B2 true JP2949089B2 (en) 1999-09-13

Family

ID=13889872

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9086541A Expired - Lifetime JP2949089B2 (en) 1997-04-04 1997-04-04 Image processing device

Country Status (1)

Country Link
JP (1) JP2949089B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4834244B2 (en) * 2000-06-21 2011-12-14 株式会社東芝 Dimensional inspection method and apparatus, and mask manufacturing method
JP2002277207A (en) * 2001-03-19 2002-09-25 Keyence Corp Optical measuring device

Also Published As

Publication number Publication date
JPH10281730A (en) 1998-10-23

Similar Documents

Publication Publication Date Title
US20030002707A1 (en) Generating super resolution digital images
JP4230880B2 (en) Defect inspection method
JP3659426B2 (en) Edge detection method and edge detection apparatus
JP2949089B2 (en) Image processing device
JP3164003B2 (en) Mounted parts inspection device
JP4513394B2 (en) Color image processing method and image processing apparatus
JP2008116207A (en) Apparatus and method for image measurement, and program
JP2003162723A (en) Image processing program
JP2010182330A (en) Method for processing color image and image processor
WO2020217970A1 (en) Wire shape measurement device, wire three-dimensional image generation method, and wire shape measurement method
JP2000194861A (en) Method and device for recognizing image
JP4566686B2 (en) Method and apparatus for determining shape of object
JPH1153539A (en) Circular pattern discriminating method and storage medium
JPH0894541A (en) Method for detecting chipped corner of subject for inspection
JP2516844B2 (en) Parts detection method and device
JP3278568B2 (en) Recognition method of bonding wire
JP2005038178A (en) Inspection apparatus for reference mark of inspection object
JP2710685B2 (en) Defect detection method by visual inspection
JP2002190021A (en) Device and method for detecting position
JP3111434B2 (en) Image processing device
JP2971793B2 (en) Position detection device
JP2008258980A (en) Image information processor, and image inclination angle calculation method
JP3306936B2 (en) Signature stacking state judgment device
JP2959017B2 (en) Circular image discrimination method
JP2903823B2 (en) Pattern recognition device