JPH1040380A - Method and device for inspecting mark - Google Patents

Method and device for inspecting mark

Info

Publication number
JPH1040380A
JPH1040380A JP8192384A JP19238496A JPH1040380A JP H1040380 A JPH1040380 A JP H1040380A JP 8192384 A JP8192384 A JP 8192384A JP 19238496 A JP19238496 A JP 19238496A JP H1040380 A JPH1040380 A JP H1040380A
Authority
JP
Japan
Prior art keywords
mark
inspection
package
pattern
image
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
JP8192384A
Other languages
Japanese (ja)
Inventor
Kazunori Hayashi
和慶 林
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.)
Sony Corp
Original Assignee
Sony Corp
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 Sony Corp filed Critical Sony Corp
Priority to JP8192384A priority Critical patent/JPH1040380A/en
Publication of JPH1040380A publication Critical patent/JPH1040380A/en
Pending legal-status Critical Current

Links

Landscapes

  • Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)
  • Image Processing (AREA)
  • Image Analysis (AREA)

Abstract

PROBLEM TO BE SOLVED: To easily and accurately recognize a mark and to execute an inspection within limit time by inspecting a mark to be inspected by using a mark position, a mark range and a reference mark pattern. SOLUTION: A picture signal obtained by photographing a reference IC package from its upper surface is outputted from a video camera 12 and sent to a picture processing unit 11, various picture processing for the picture signal is executed and the processed result is sent to a monitor device. Consequently the picture obtained by photographing the reference IC package from its upper surface is displayed on the screen of the device 15. An window for retrieving a printing mark and the existing position and range of a 1st pin mark is set up from the picture of an initial IC package. The picture pattern of a mark included in a position and a range corresponding to the mark position and the mark range is teached as a reference mark pattern and a mark to be inspected is inspected by using the mark position, the mark range and the reference mark pattern.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、画像処理を用い
て、例えばICパッケージなどの表面に描かれた文字や
記号等のマークを検査するマーク検査方法及び装置に関
する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a mark inspection method and apparatus for inspecting marks such as characters and symbols drawn on the surface of an IC package or the like by using image processing.

【0002】[0002]

【従来の技術】従来より、IC(集積回路)やLSI
(大規模集積回路)等の製造時には、これらIC素子や
LSI素子を樹脂にて封止した樹脂封止パッケージ(以
下、単にICパッケージと呼ぶことにする)の表面すな
わちモールド樹脂の表面に、品名やロット番号,製造メ
ーカ名或いは商号等の各種文字や数字,記号等が印字さ
れる。以下、これら印字される各文字等を印字マークと
呼ぶ。また、上記ICパッケージのモールド樹脂の表面
には、第1リード端子が配置される位置及びICパッケ
ージの方向や表裏を指示するための窪み、すなわちイン
デックスマークが形成されている。以下、この窪みのイ
ンデックスマークを第1ピンマークと呼ぶことにする。
なお、当該ICパッケージ上の印字マークは、レーザ光
線による刻印によって形成される場合と、インクによる
捺印によって形成される場合の2種類がある。
2. Description of the Related Art Conventionally, ICs (integrated circuits) and LSIs have been used.
When manufacturing (large-scale integrated circuits) and the like, the product name is placed on the surface of a resin-sealed package (hereinafter simply referred to as an IC package) in which these IC elements and LSI elements are sealed with resin, that is, the surface of the mold resin. And various characters such as lot numbers, manufacturer names or trade names, numbers, and symbols are printed. Hereinafter, these characters and the like to be printed are referred to as print marks. Further, on the surface of the mold resin of the IC package, there are formed depressions, ie, index marks, for designating the position where the first lead terminals are arranged, the direction of the IC package, and the front and back sides. Hereinafter, the index mark of this depression is referred to as a first pin mark.
Note that there are two types of print marks on the IC package: a case formed by engraving with a laser beam and a case formed by stamping with ink.

【0003】ところで、上記製造したICパッケージを
例えばスティック状又はトレイ状等の収納容器に収納す
る場合には、異なる種類のICパッケージが混入したか
どうかを検査する必要がある。また、例えば上記スティ
ック状又はトレイ状等の複数の収納容器から取り出した
複数のICパッケージを、別の大容量の収納容器、例え
ばエンボステープ等からなるテープ状の収納容器に再収
納するような場合にも、異なる種類のICパッケージが
混入したかどうかを検査する必要がある。さらに、上記
ICパッケージを上記スティック状やトレイ状或いはテ
ープ状の収納容器に収納する場合には、当該ICパッケ
ージを正しい向きで収納する為に、上記第1ピンマーク
が正しい位置にあるかどうか、すなわちICパッケージ
が正しい向きであるかどうかを検査する必要もある。
When the manufactured IC package is stored in a storage container such as a stick or a tray, it is necessary to check whether or not different types of IC packages are mixed. Further, for example, a case where a plurality of IC packages taken out from a plurality of storage containers such as the stick-shaped or tray-shaped storage containers are re-stored in another large-capacity storage container, for example, a tape-shaped storage container made of embossed tape or the like. In addition, it is necessary to inspect whether different types of IC packages are mixed. Further, when the IC package is stored in the stick-shaped, tray-shaped or tape-shaped storage container, it is determined whether the first pin mark is at a correct position in order to store the IC package in a correct direction. That is, it is necessary to check whether the IC package is oriented correctly.

【0004】これらの検査を実行する検査装置では、基
準となる印字マークや第1ピンマークのパターンを予め
記憶しており、上記ICパッケージ上に実際に形成され
ている印字マークや第1ピンマークをビデオカメラ等に
て撮影して得られたパターンと、上記基準となる印字マ
ークや第1ピンマークのパターンとを比較することによ
って、上述したような異なる種類のICパッケージの混
入がないかどうかの検査と、ICパッケージの向きが正
しいかどうかの検査を行う。なお、以下の説明では、上
記基準となる印字マークのパターンを基準印字パターン
と呼び、基準となる第1ピンマークのパターンを基準第
1ピンパターンと呼ぶ。また、上記ICパッケージ上に
実際に形成されている印字マークをビデオカメラにて撮
影して得たパターンを検査対象印字パターンと呼び、同
じくICパッケージ上に形成されている第1ピンマーク
を撮影して得たパターンを検査対象第1ピンパターンと
呼ぶ。
In an inspection apparatus for performing these inspections, a reference print mark and a first pin mark pattern are stored in advance, and the print mark and the first pin mark actually formed on the IC package are stored. By comparing the pattern obtained by photographing with a video camera or the like with the pattern of the reference print mark or the first pin mark, whether or not the above-described different types of IC packages are mixed is determined. And an inspection of whether the orientation of the IC package is correct. In the following description, the pattern of the reference print mark is referred to as a reference print pattern, and the pattern of the reference first pin mark is referred to as a reference first pin pattern. A pattern obtained by photographing a print mark actually formed on the IC package with a video camera is referred to as a print pattern to be inspected, and a first pin mark similarly formed on the IC package is photographed. The obtained pattern is referred to as a first pin pattern to be inspected.

【0005】上記検査装置における検査の結果、例え
ば、上記基準印字パターンと上記検査対象印字パターン
とが一致しているときには、異なる種類のICパッケー
ジの混入は無く、逆に不一致になったときには異なる種
類のICパッケージの混入があったと判断できる。ま
た、上記基準第1ピンパターンと上記検査対象第1ピン
パターンとが一致しているきにはICパッケージの向き
は正しく、逆に不一致になったときにはICパッケージ
の向きが正しくないと判断できる。なお、上記基準印字
パターン及び検査対象印字パターンでは、印字マークを
構成する各印字文字等のそれぞれを個別のパターンとし
て扱う場合や、複数の印字文字等の一まとまりを一つの
パターンとして扱う場合、或いはこれらを組み合わせて
扱う場合などがある。
[0005] As a result of the inspection by the inspection apparatus, for example, when the reference print pattern and the inspection target print pattern coincide with each other, there is no mixing of different types of IC packages. It can be determined that the IC package has been mixed. When the reference first pin pattern and the first pin pattern to be inspected match, the direction of the IC package is correct, and when they do not match, it can be determined that the direction of the IC package is incorrect. In the reference print pattern and the inspection target print pattern, each of the print characters constituting the print mark is handled as an individual pattern, or a group of a plurality of print characters is handled as one pattern, or There are cases where these are handled in combination.

【0006】ところで、上述したようなパターン比較に
よる検査を実現するためには、上記検査装置に対して、
予め上記基準印字パターン及び基準第1ピンパターンを
画像として取り込ませて記憶させておくことが必要とな
る。当該検査装置に記憶される上記基準印字パターンや
基準第1ピンパターンは、実際に印字された印字マーク
や実際に形成された第1ピンマークを、ビデオカメラに
よって撮影して得た画像から形成されている。このよう
に、検査装置に対して上記基準印字パターンや基準第1
ピンパターンの画像を取り込ませて記憶させることは、
一般に教示すなわちティーチングと呼ばれており、通常
は人間が当該検査装置を操作することで行われている。
[0006] By the way, in order to realize the inspection by the pattern comparison as described above, the above inspection apparatus must be
It is necessary to previously capture and store the reference print pattern and the reference first pin pattern as images. The reference print pattern and the reference first pin pattern stored in the inspection device are formed from an image obtained by photographing a printed mark actually printed or a first pin mark actually formed by a video camera. ing. Thus, the reference printing pattern and the reference first
Importing the pin pattern image and storing it
This is generally called teaching or teaching, and is usually performed by a human operating the inspection apparatus.

【0007】ここで、特に上記印字マークが例えば文字
からなる場合、全ての文字の形状は既に一般的に知られ
ているものであり、またそれぞれの文字の特徴量も既知
である。したがって、当該文字からなる印字マークを検
査する場合に、予め用意されることになる上記基準印字
パターンは、必ずしも上記ティーチングによって生成す
る必要はなく、上記文字の特徴量から計算等によって作
成することも可能である。ただし、上記ICパッケージ
上に描かれる印字マークには、一般的な文字以外の特殊
な文字や記号、或いは特殊なロゴ(書体)の文字からな
るものも多い。したがって、従来の検査装置では、上述
した検査に先だって、必ずティーチングが行われてい
る。
Here, especially when the print mark is composed of, for example, characters, the shapes of all characters are already generally known, and the characteristic amount of each character is also known. Therefore, when inspecting a print mark composed of the character, the reference print pattern that is prepared in advance does not necessarily need to be generated by the teaching, and may be created by calculation or the like from the characteristic amount of the character. It is possible. However, the print mark drawn on the IC package often includes special characters and symbols other than general characters, or special logo (font) characters. Therefore, in the conventional inspection apparatus, teaching is always performed prior to the above-described inspection.

【0008】[0008]

【発明が解決しようとする課題】ところが、上記ICの
種類は非常に多く、また製造ロット番号やバージョンの
違い(例えば動作速度などの違い)まで含めると、上記
ICパッケージ上に印字される印字マークの種類は膨大
な数になり、これら印字マークからなる検査対象パター
ンに対応して用意されることになる上記基準印字パター
ンの種類も膨大になる。
However, the types of the ICs are extremely large, and if the differences in the production lot number and the version (for example, the difference in the operation speed) are included, the print marks printed on the IC package are made. The number of types of reference print patterns prepared in correspondence with the pattern to be inspected composed of these print marks also becomes enormous.

【0009】しかし、検査するICの種類や製造ロッ
ト,バージョン等が変わる度に、上述したように人間が
介在して検査装置に対して上記ティーチングを行うこと
は、非常に煩雑であり、また、検査時間の長時間化と人
件費によるコスト上昇にもつながる。
However, as described above, it is very troublesome to perform the above-described teaching on the inspection apparatus through human intervention every time the type, manufacturing lot, version, etc. of the IC to be inspected changes. This leads to longer inspection times and higher costs due to labor costs.

【0010】このため、上記ICの種類や製造ロット,
バージョン等の違いの全てに対応できる複数の基準印字
パターンを、予め上記ティーチングによって作成して検
査装置に記憶させておくことも可能であるが、この場
合、検査装置にはこれら膨大な数の基準印字パターンを
全て記憶させるための大容量の記憶手段が必要になり、
検査装置のコストが上昇してしまう。
For this reason, the type of IC, the production lot,
It is also possible to create a plurality of reference print patterns that can cope with all the differences between versions and the like in advance by the above-mentioned teaching and store them in the inspection device. Large-capacity storage means for storing all print patterns is required,
The cost of the inspection device increases.

【0011】また、新たなICが開発された場合には、
新たな印字マークも登場することになり、これら新たな
印字マークに対応する基準印字パターンを生成するため
に、更にティーチングが必要になり、逆に、製造中止に
なったICが存在するような場合は当該製造中止になっ
たICに対応する基準印字パターンの消去が必要にな
る。
When a new IC is developed,
New print marks will also appear, and in order to generate a reference print pattern corresponding to these new print marks, further teaching is required, and conversely, if there is an IC that has been discontinued Requires erasing the reference print pattern corresponding to the IC whose production has been discontinued.

【0012】さらに、上記検査の際には、上述したよう
に予め記憶しておいた基準印字パターンと検査対象印字
パターンとの相違を比較することになるが、当該検査対
象印字パターンの欠陥、すなわち印字マークの欠陥等に
より、正しい判定ができない場合がある。例えば数字の
0と8、1と7、6と8等のような良く似た印字マーク
の場合、これら印字マークの一部の欠陥によって間違っ
た判断を行う虞れがある。より具体的に言うと、例えば
数字の0の真ん中がゴミ等によってつながって見えるよ
うな場合には、当該0を8として認識してしまうような
ことが起き、逆に数字の8の真ん中の線が薄く印字され
たり、或いは印字されていなかったりした場合には、当
該8を0として認識してしまうようなこと等が起き得
る。
Further, at the time of the above-mentioned inspection, the difference between the previously stored reference print pattern and the print pattern to be inspected is compared. In some cases, correct judgment cannot be made due to a defect of a print mark or the like. For example, in the case of similar print marks such as the numbers 0 and 8, 1 and 7, 6 and 8, etc., there is a possibility that an erroneous judgment may be made due to some defects of these print marks. More specifically, for example, in the case where the center of the number 0 appears to be connected by dust or the like, the 0 may be recognized as 8, and conversely, the line at the center of the number 8 may be recognized. Is printed faintly or is not printed, the 8 may be recognized as 0, etc.

【0013】このように、検査対象印字パターンと基準
印字パターンの単なる全体的なパターン比較のみでは、
印字マークに上述したような良く似た文字等が含まれる
場合の検査の信頼性が低くなる。
As described above, a mere overall pattern comparison between the inspection target print pattern and the reference print pattern is not sufficient.
The reliability of the inspection when the print mark includes the similar characters as described above becomes low.

【0014】この問題を解決するために、従来より、検
査対象のマークの検査結果が曖昧な場合すなわち検査装
置において正しく判断できないときには、当該検査対象
印字マークの画像を複数領域に分割し、それぞれの分割
領域内のパターンと基準印字パターンの対応する部分と
のパターン比較による検査を行うことで、検査の信頼性
を確保するようなことが行われている。例えば一つの文
字からなる印字マークを検査対象印字パターンとした場
合を例に挙げて説明すると、上記検査結果が曖昧な場
合、上記検査装置では、上記検査対象の印字マークの画
像と基準印字パターンをそれぞれ同じ数の複数の領域に
分割し、上記検査対象の印字マークの画像の各分割領域
内のパターン画像と、上記基準印字パターンのそれぞれ
対応する分割領域内のパターンとを比較することで、検
査の信頼性を確保するようにしている。なお、ここでの
領域分割手法としては、縦横均等に2分割する方法や、
決まった面積毎に分割する方法などがある。
In order to solve this problem, conventionally, when the inspection result of a mark to be inspected is ambiguous, that is, when the inspection device cannot judge correctly, the image of the print mark to be inspected is divided into a plurality of areas, and each image is divided into a plurality of areas. An inspection is performed by comparing the pattern in the divided area with the corresponding part of the reference print pattern to ensure the reliability of the inspection. For example, a case where a print mark composed of one character is used as an inspection target print pattern will be described as an example.If the inspection result is ambiguous, the inspection apparatus uses the image of the inspection target print mark and a reference print pattern. The inspection is performed by dividing the image of the print mark to be inspected into a plurality of areas, and comparing the pattern image in each of the divided areas of the image of the print mark to be inspected with the pattern in each of the divided areas corresponding to the reference print pattern. I try to ensure the reliability. In addition, as a region division method here, a method of equally dividing into two in the vertical and horizontal directions,
For example, there is a method of dividing the image into fixed areas.

【0015】しかし、上述したような分割領域毎に検査
する場合において、例えば領域分割の際の境界部分に印
字マークのパターンが含まれるような場合には、当該境
界部分の印字マークのパターン幅を実際のパターン幅と
は異なる幅として検出してしまうことがあり、このよう
に実際とは異なるパターン幅として検出してしまうと、
上記分割領域内におけるパターン幅の割合が本来の割合
に対して大きく異なり、検査の信頼性が損なわれるよう
になる。より具体的に説明すると、印字マークが例えば
文字の場合において、当該文字の一部分が上記領域分割
の際の境界部分に含まれる場合には、当該境界部分の文
字の線幅が実際の線幅とは異なる幅として検出されるこ
とがあり、このように間違った線幅として検出される
と、当該文字を正しく認識することができなくなる。
However, when the inspection is performed for each of the divided areas as described above, for example, when the pattern of the print mark is included in the boundary part at the time of the area division, the pattern width of the print mark at the boundary part is changed. In some cases, it is detected as a width different from the actual pattern width.
The ratio of the pattern width in the divided area is largely different from the original ratio, and the reliability of the inspection is impaired. More specifically, when the print mark is, for example, a character, and when a part of the character is included in a boundary portion at the time of the area division, the line width of the character at the boundary portion is equal to the actual line width. May be detected as a different width, and if such a wrong line width is detected, the character cannot be correctly recognized.

【0016】一方、一般的に検査時間には制限がある。
そのため上述したような検査を行う際の検査アルゴリズ
ムは、上記制限時間内で終了しなければならない。
On the other hand, the inspection time is generally limited.
Therefore, the inspection algorithm for performing the above-described inspection must be completed within the time limit.

【0017】ここで、前述したように、上記ICパッケ
ージ上の印字マークは、レーザ光線によって刻印されて
形成される場合と、インクによって捺印されて形成され
る場合とがあるが、特に上記インクを用いて捺印されて
形成される印字マークは、捺印時のばらつきにより、例
えばマークの線の太さ(例えば文字の線の太さ)がばら
ついたり、印字位置のズレも起こり易い。このように線
の太さの変化や印字位置のズレが発生したとしても、こ
れらを許容できるような検査アルゴリズム(以下、高許
容量検査アルゴリズムと呼ぶ)を用いれば、ICパッケ
ージ上の印字マークを認識することができる。
As described above, the print mark on the IC package may be formed by engraving with a laser beam or may be formed by imprinting with ink. A print mark formed by being stamped using the above-described method is likely to have, for example, variations in the thickness of the mark line (eg, the thickness of a character line) and a shift in a printing position due to a variation in the stamping. Even if the line thickness changes or the printing position shifts as described above, if an inspection algorithm that can tolerate these changes (hereinafter referred to as a high allowable amount inspection algorithm) is used, the print marks on the IC package can be printed. Can be recognized.

【0018】しかし、上記高許容量検査アルゴリズムで
は、上記印字マークの線の太さの変化や印字位置のズレ
を吸収するようにしているために、実行時間が多く必要
となる。このため、従来は、上記制限時間内に検査が終
了するように、上記線の太さの変化や印字位置のズレの
許容量を少なく設定した検査アルゴリズム(以下、低許
容量検査アルゴリズムと呼ぶ)を用いている。ところ
が、上記高許容量検査アルゴリズムならばICパッケー
ジ上の印字マークを認識できたにものであっても、上記
低許容量検査アルゴリズムでは認識できないことが起き
得る。すなわち、当該低許容量検査アルゴリズムを用い
た検査装置では、本来ならば検査結果が良と判定すべき
ものであっても、不良と判定することが多くなり、検査
時の良否判定の歩留まりが悪化する。
However, in the above-mentioned high tolerance inspection algorithm, a large amount of execution time is required because a change in the line thickness of the print mark and a shift in the print position are absorbed. For this reason, conventionally, an inspection algorithm (hereinafter, referred to as a low-permissible-amount inspection algorithm) in which the permissible amount of the change in the line thickness or the deviation of the printing position is set to be small so that the inspection is completed within the time limit. Is used. However, even if the above-described high tolerance inspection algorithm can recognize the print mark on the IC package, the low tolerance inspection algorithm may fail to recognize it. That is, in the inspection apparatus using the low tolerance inspection algorithm, even if the inspection result should be normally determined to be good, it is often determined to be defective, and the yield of quality determination at the time of inspection is deteriorated. .

【0019】そこで、本発明はこのような状況に鑑みて
なされたものであり、ICの種類が多くても、また新し
いICが開発されたりしてもICパッケージ上の印字マ
ークや第1ピンマークを容易かつ正確に認識でき、さら
に、検査も制限時間内で実行でき、良否判定の歩留まり
も向上させることが可能で、コストの上昇も抑えること
ができるマーク検査方法及び装置を提供することを目的
とする。
Therefore, the present invention has been made in view of such a situation, and even if there are many types of ICs or a new IC is developed, a print mark or a first pin mark on an IC package is obtained. To provide a mark inspection method and apparatus capable of easily and accurately recognizing a mark, performing an inspection within a time limit, improving the yield of pass / fail judgment, and suppressing an increase in cost. And

【0020】[0020]

【課題を解決するための手段】本発明のマーク検査方法
及び装置は、画像処理を使用してマーク検査を行うもの
であり、マーク位置及びマーク範囲を教示し、少なくと
もマークとその周辺の画像を取り込み、マーク位置及び
マーク範囲に対応する位置及び範囲内のマークの画像パ
ターンを基準マークパターンとして教示し、マーク位置
及びマーク範囲と基準マークパターンとを用いて、検査
対象のマークを検査することにより、上述した課題を解
決する。
SUMMARY OF THE INVENTION A mark inspection method and apparatus according to the present invention performs mark inspection by using image processing, teaches a mark position and a mark range, and at least marks and an image around the mark. By taking in, instructing the image pattern of the mark within the position and range corresponding to the mark position and mark range as a reference mark pattern, and inspecting the mark to be inspected using the mark position and mark range and the reference mark pattern To solve the above-mentioned problem.

【0021】すなわち、本発明によれば、マーク位置及
びマーク範囲の教示と、基準マークパターンの教示とを
別々に行うことで、同じマーク位置及び同じマーク範囲
内に存在する複数種類のマークから、それぞれに対応し
た複数種類の基準マークパターンを容易に教示できるよ
うになる。
That is, according to the present invention, the teaching of the mark position and the mark range and the teaching of the reference mark pattern are separately performed, so that a plurality of types of marks existing in the same mark position and the same mark range can be obtained. It is possible to easily teach a plurality of types of reference mark patterns corresponding to the respective types.

【0022】[0022]

【発明の実施の形態】以下、本発明の好ましい実施の形
態について、図面を参照しながら説明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Preferred embodiments of the present invention will be described below with reference to the drawings.

【0023】図1には、本発明のマーク検査方法を実現
する一実施の携帯として、ICパッケージ上に形成され
た印字マーク及び第1ピンマークを検査するマーク検査
装置の全体構成例を図示している。
FIG. 1 shows an example of the overall configuration of a mark inspection apparatus for inspecting a print mark and a first pin mark formed on an IC package as one embodiment of a portable device for implementing the mark inspection method of the present invention. ing.

【0024】すなわち図1に示す本発明実施例のマーク
検査装置は、ICパッケージ14上に形成された品名や
ロット番号,製造メーカ名或いは商号等の各種文字や数
字,記号等の印字マークや第1ピンマークの検査を画像
処理を使用して行う装置であって、上記ICパッケージ
14を照明する照明装置19と、上記ICパッケージ1
4の表面に形成された印字マークや第1ピンマークを撮
影するビデオカメラ12と、画像を表示するモニタ装置
15と、上記ビデオカメラ12からの画像信号に対して
後述するフィルタリングやモニタ画面への表示を行うた
めの画像処理を施すと共に後述する検査機能を実現する
ための画像処理を行う画像処理ユニット11と、画像信
号や基準印字パターン,基準第1ピンパターンのデー
タ,各種ウィンドウ設定用の座標値,ICパッケージ1
4上のマーク検査時の検査領域を示す位置及び範囲の情
報等の各種情報を記憶する記憶装置18と、オペレータ
からの後述するウィンドウ指示、その他の各種操作入力
を当該マーク検査装置にて処理可能な信号に変換するマ
ン−マシンインターフェイスとしての操作盤16と、各
部をプログラムに従って制御するホストコンピュータ1
7とを有してなるものである。
That is, the mark inspection apparatus according to the embodiment of the present invention shown in FIG. 1 is capable of printing characters such as a product name, a lot number, a manufacturer name or a trade name, various characters, numerals, symbols, etc., formed on an IC package 14. An illumination device 19 for illuminating the IC package 14, wherein the illumination device 19 illuminates the IC package 14;
4, a video camera 12 for photographing a print mark or a first pin mark formed on the surface of the monitor 4, a monitor device 15 for displaying an image, An image processing unit 11 that performs image processing for displaying and performs image processing for realizing an inspection function to be described later; image signal, reference print pattern, reference first pin pattern data, and coordinates for setting various windows. Value, IC package 1
4, a storage device 18 for storing various information such as position and range information indicating the inspection area at the time of the mark inspection, and a window instruction to be described later and other various operation inputs from the operator can be processed by the mark inspection device. Panel 16 as a man-machine interface for converting signals into various signals, and a host computer 1 for controlling each part according to a program.
7 is provided.

【0025】本実施例のマーク検査装置では、ICパッ
ケージ14を例えば前記スティック状又はトレイ状或い
はテープ状の収納容器に収納する場合において、異なる
種類のICパッケージ14が混入したかどうか、及び、
これら収納容器にICパッケージ14が正しい向きに収
納されたかどうかをマーク検査結果によって判断し、当
該ICパッケージ14の良否を判定するものである。
In the mark inspection apparatus of this embodiment, when the IC package 14 is stored in the stick-shaped, tray-shaped or tape-shaped storage container, for example, it is determined whether or not different types of IC packages 14 are mixed.
Whether the IC package 14 has been stored in the correct orientation in these storage containers is determined based on the mark inspection result, and the quality of the IC package 14 is determined.

【0026】以下の説明では、上記スティック状又はト
レイ状の複数の収納容器から取り出した複数のICパッ
ケージ14を、別の大容量の収納容器であるテープ状の
収納容器(例えばエンボステープ13)に再収納したよ
うな場合に、当該エンボステープ13上に収納されたI
Cパッケージ14の種類が間違っていないかとICパッ
ケージ14の方向が間違っていないかを、本発明のマー
ク検査装置が検査する例について説明する。なお、図1
の例では、ICパッケージ14を収納した上記エンボス
テープ13を、図示しない搬送系にて搬送しながら、当
該エンボステープ13上に収納されたICパッケージ1
4の検査を順次行う場合の構成を図示している。
In the following description, a plurality of IC packages 14 taken out of the plurality of stick-shaped or tray-shaped storage containers are transferred to a tape-shaped storage container (eg, embossed tape 13) as another large-capacity storage container. In the case where it is stored again, the I stored on the embossed tape 13
An example in which the mark inspection apparatus of the present invention inspects whether the type of the C package 14 is correct and whether the direction of the IC package 14 is correct will be described. FIG.
In the example, while the embossed tape 13 containing the IC package 14 is transported by a transport system (not shown), the IC package 1 stored on the embossed tape 13 is transported.
4 illustrates a configuration in the case where inspections of No. 4 are sequentially performed.

【0027】ここで、図1の構成の具体的な動作説明の
前に、本実施例のマーク検査装置におけるICパッケー
ジ14の検査機能について説明する。
Here, before describing the specific operation of the configuration of FIG. 1, the inspection function of the IC package 14 in the mark inspection apparatus of the present embodiment will be described.

【0028】本実施例のマーク検査装置におけるICパ
ッケージ14の検査機能には、上述したように上記エン
ボステープ13上に異なる種類の上記ICパッケージ1
4が混入して収納されていないかどうかを検査する機能
と、上記エンボステープ13上に上記ICパッケージ1
4が正しい向きで収納されたかどうかを検査する機能と
がある。
The inspection function of the IC package 14 in the mark inspection apparatus of the present embodiment includes the above-described IC package 1 of a different type on the embossed tape 13 as described above.
And a function of checking whether or not the IC package 1 is contained in the embossed tape 13.
There is a function to check whether or not 4 is stored in the correct orientation.

【0029】上記異なる種類のICパッケージ14の混
入検査機能はICパッケージ14上に印刷された印字マ
ークを認識することで実現し、上記ICパッケージ14
の収納時の向きの検査機能は当該ICパッケージ14上
に形成された第1ピンマークの位置を認識することで実
現するようにしている。
The mixing inspection function of the different types of IC packages 14 is realized by recognizing a print mark printed on the IC package 14.
The inspection function of the orientation at the time of storage is realized by recognizing the position of the first pin mark formed on the IC package 14.

【0030】上記印字マークの認識は、ICパッケージ
14上に実際に印字されている印字マークのパターンす
なわち検査対象印字パターンが、後述するティーチング
工程にて登録して基準印字パターンと同じであるかどう
かを判定することにより行う。当該基準印字パターンと
検査対象印字パターンとが同じであるかどうかの判定の
際には、例えば1文字毎にいわゆるテンプレートマッチ
ング処理を使用し、そのマッチングの度合いを示す後述
するスコアにて判断する。
The recognition of the print mark is performed by checking whether the pattern of the print mark actually printed on the IC package 14, that is, the print pattern to be inspected is the same as the reference print pattern registered in the teaching process described later. Is determined. When determining whether or not the reference print pattern and the inspection target print pattern are the same, for example, a so-called template matching process is used for each character, and a determination is made based on a score indicating the degree of matching, which will be described later.

【0031】上記第1ピンマークの認識は、ICパッケ
ージ14上に窪みとして形成されている第1ピンマーク
のパターンすなわち検査対象第1ピンパターンが、後述
するティーチング工程にて登録した基準第1ピンパター
ンと同じであるかどうかを判定することにより行う。上
記基準第1ピンパターンと検査対象第1ピンパターンと
が同じであるかどうかの判定には、上記印字マークの検
査の場合と同様にテンプレートマッチング処理による判
定処理を用いる。ここで、上記第1ピンマークは後述す
るように円形や半円形状であり、上述したように第1ピ
ンマークはICパッケージ14上の窪みとして形成され
る。さらに、ICパッケージ14のモールド樹脂の表面
は梨地であるが、当該第1ピンマークは鏡面になってい
る。したがって、後述するように例えば照明を横方向か
ら当てることで、第1ピンマーク部分は他の部分よりも
暗く見えるようになる。この第1ピンマークの検査で
は、当該第1ピンマーク部分と他の部分との明るさの違
い、すなわち当該ICパッケージ14をビデオカメラ1
2にて撮影した画像の濃淡値の違いを利用し、上記テン
プレートマッチング処理によって判定処理を行うように
する。このとき、マッチした位置については無視し、ど
の程度マッチしたかを示すスコアによって第1ピンマー
クが存在するかどうかを判定する。また、当該判定の際
には、更に後述する検査領域内の画像を2値化し、上記
検査対象第1ピンパターンの領域の面積とその他の領域
の面積との割合を用いた判定処理を追加し、ICパッケ
ージ14によってこれら判定処理を選択使用すること
で、上記ICパッケージ14の表裏判定が必要な場合に
も対応できるようにしている。
The recognition of the first pin mark is based on the fact that the pattern of the first pin mark formed as a depression on the IC package 14, ie, the first pin pattern to be inspected, is the reference first pin registered in the teaching process described later. This is performed by determining whether the pattern is the same as the pattern. To determine whether the first reference pin pattern is the same as the first pin pattern to be inspected, a determination process based on a template matching process is used as in the case of the inspection of the print mark. Here, the first pin mark has a circular or semicircular shape as described later, and the first pin mark is formed as a depression on the IC package 14 as described above. Further, the surface of the mold resin of the IC package 14 is matte, but the first pin mark is a mirror surface. Therefore, as described later, for example, by illuminating from the lateral direction, the first pin mark portion looks darker than the other portions. In the inspection of the first pin mark, the difference in brightness between the first pin mark portion and other portions, that is, the IC package 14 is attached to the video camera 1
The determination process is performed by the template matching process using the difference in the gray value of the image captured in step 2. At this time, the matching position is ignored, and it is determined whether or not the first pin mark exists based on a score indicating the degree of matching. Further, at the time of the determination, an image in the inspection area, which will be described later, is binarized, and a determination process using the ratio of the area of the area of the first pin pattern to be inspected to the area of the other areas is added. By selectively using these determination processes by the IC package 14, it is possible to cope with the case where the front and back of the IC package 14 need to be determined.

【0032】なお、上記テンプレートマッチング処理と
は、基準とする画像内の小領域をテンプレートとし、他
方の画像内で当該テンプレートと最も類似した領域を探
し出す、すなわちマッチングを判断するような処理であ
る。したがって、本実施例のマーク検査装置では、上記
基準印字パターンや基準第1ピンパターンをテンプレー
トとし、後述する検査領域内の検査対象印字パターンや
検査対象第1ピンパターンとのマッチングを判断する。
Note that the template matching process is a process in which a small region in an image serving as a reference is used as a template, and a region most similar to the template in the other image is searched for, that is, the matching is determined. Therefore, in the mark inspection apparatus of the present embodiment, the reference print pattern or the first reference pin pattern is used as a template, and the matching with the print pattern to be inspected or the first pin pattern to be inspected in the inspection area described later is determined.

【0033】また、上記スコアは、上記テンプレートマ
ッチング処理においてマッチングの度合いを示す値であ
り、本実施例では印字マーク用のスコアとして良品スコ
アと不良品スコアと中間スコアとを設定し、第1ピンマ
ーク用として第1ピンスコアを設定している。上記良品
スコアとは、当該検査対象のICパッケージを良品であ
ると判断する際の閾値であり、印字マークを構成する各
文字等毎に上記テンプレートマッチング処理を行って得
られるマッチングの度合いの値が、全て当該閾値以上で
あるときに、このICパッケージを良品であると判断す
る。また、上記不良品スコアとは、当該検査対象のIC
パッケージを不良品であると判断する際の閾値であり、
各文字等毎にテンプレートマッチング処理を行って得ら
れるマッチングの度合いの値が、当該閾値未満となる文
字が存在するときに、このICパッケージを不良品(異
なる種類のIC)であると判断する。上記中間スコア
は、上記良品スコア未満で且つ不良品スコア以上となる
値であり、上記良品スコア及び不良品スコアを用いた検
査を行った結果、不良品ではないが当該検査対象のIC
パッケージを良品であると判断し難いときに、後述する
ように1文字分のマークの画像パターンを分割して各分
割領域毎にマッチング処理を行って当該ICパッケージ
の良否判定を行う際の閾値である。このため、当該中間
スコアは分割スコアと呼ぶこともでき、上記各文字等を
分割した各分割領域毎のマッチングの度合いの値が、全
て当該閾値以上であるか又は当該閾値未満となる分割領
域が存在するか否かにより、このICパッケージを良品
か又は不良品であると判断する。さらに、上記第1ピン
スコアとは、当該検査対象のICパッケージの第1ピン
マークの検査を行う際の閾値であり、第1ピンマークに
対して上記テンプレートマッチング処理を行って得られ
るマッチングの度合いの値が、当該閾値以上であるか又
は当該閾値未満であるかによって、このICパッケージ
の向きの判定及び後述するような表裏判定を行う。な
お、上記各スコアは、例えばオペレータによる上記操作
盤16の操作に応じて設定される。また、ICパッケー
ジが良品であっても、例えば印字マークが薄い場合には
不良品と判定される場合があるので、この場合には後述
するように前記照明装置19の明るさを調節して再度検
査することができる。
The score is a value indicating the degree of matching in the template matching process. In this embodiment, a non-defective score, a defective score, and an intermediate score are set as scores for a print mark. A first pin score is set for a mark. The non-defective score is a threshold value for determining that the IC package to be inspected is non-defective, and the value of the degree of matching obtained by performing the template matching process for each character or the like forming a print mark is When all the values are equal to or larger than the threshold value, the IC package is determined to be non-defective. The above-mentioned defective product score is defined as the IC to be inspected.
This is the threshold for determining that the package is defective,
When there is a character whose matching degree value obtained by performing the template matching process for each character or the like is less than the threshold, the IC package is determined to be defective (an IC of a different type). The above-mentioned intermediate score is a value that is less than the above-mentioned good product score and is not less than the defective product score. As a result of the inspection using the above-mentioned good product score and defective product score, it is not defective,
When it is difficult to determine that the package is a non-defective product, a threshold value is used to divide the image pattern of the mark for one character, perform matching processing for each divided region, and determine the acceptability of the IC package as described later. is there. For this reason, the intermediate score can also be referred to as a division score, and the value of the degree of matching for each of the divided regions into which each of the characters or the like is divided is equal to or greater than the threshold or less than the threshold. This IC package is determined to be good or defective depending on whether or not it exists. Further, the first pin score is a threshold value when the first pin mark of the IC package to be inspected is inspected, and the degree of matching obtained by performing the template matching process on the first pin mark Is determined based on whether the value is equal to or more than the threshold value or less than the threshold value. Each score is set, for example, according to an operation of the operation panel 16 by an operator. Further, even if the IC package is good, for example, if the print mark is thin, it may be determined that the IC package is defective. In this case, the brightness of the illumination device 19 is adjusted as described later, and Can be inspected.

【0034】次に、上述したような検査機能を実現する
ために、本発明実施例のマーク検査装置においては以下
のような各工程にて検査を行うようにしている。すなわ
ち、本実施例のマーク検査装置では、前記基準印字パタ
ーンと基準第1ピンパターンを記憶するティーチング工
程と、当該ティーチング工程にて得られた基準印字パタ
ーン及び基準第1ピンパターンと実際のICパッケージ
14上の検査対象印字パターン及び検査対象印字パター
ンとの比較による通常の検査工程と、当該通常の検査工
程でNGすなわち不良と判定されたときに再び検査を行
うリトライ検査工程とにより、上記検査機能を実現可能
にしている。
Next, in order to realize the above-described inspection function, the mark inspection apparatus according to the embodiment of the present invention performs inspection in the following steps. That is, in the mark inspection apparatus of the present embodiment, the teaching step of storing the reference print pattern and the reference first pin pattern, the reference print pattern and the reference first pin pattern obtained in the teaching step, and the actual IC package The inspection function described above is performed by a normal inspection process by comparing the inspection target print pattern and the inspection target print pattern on 14 and a retry inspection process of performing an inspection again when the normal inspection process is determined to be NG, that is, a defect. Is feasible.

【0035】上記ティーチング工程には、本発明にかか
る第1の教示工程としてオペレータの操作によるオフラ
インティーチング工程と、第2の教示工程として当該マ
ーク検査装置が自動的に行うオンラインティーチング工
程の2つのティーチング工程がある。
The teaching process includes two teaching processes, an offline teaching process performed by an operator as a first teaching process according to the present invention, and an online teaching process automatically performed by the mark inspection apparatus as a second teaching process. There is a process.

【0036】上記オペレータの操作によるオフラインテ
ィーチング工程では、基準となるICパッケージ(以
下、基準ICパッケージと呼ぶ)を用い、当該基準IC
パッケージの上面をビデオカメラ12によって撮影し、
後述するオンラインティーチング工程においてICパッ
ケージ上の印字マークと第1ピンマークをサーチして基
準印字パターンと基準第1ピンパターンを登録するため
の位置及び範囲をウィンドウとして設定して記憶する。
また、上記ビデオカメラ12によって撮影された上記第
1ピンマークの画像は、当該ティーチングにより得られ
た上記位置及び範囲のデータを記憶装置18にセーブす
る時に、同時にファイルデータとして記憶され、またロ
ードするときに同時に読み出される。
In the offline teaching process by the operation of the operator, a reference IC package (hereinafter referred to as a reference IC package) is used.
The upper surface of the package is photographed by the video camera 12,
In an online teaching process to be described later, a print mark and a first pin mark on the IC package are searched, and a position and a range for registering the reference print pattern and the reference first pin pattern are set and stored as windows.
The image of the first pin mark photographed by the video camera 12 is simultaneously stored and loaded as file data when the position and range data obtained by the teaching are saved in the storage device 18. Sometimes they are read at the same time.

【0037】ここで、異なる種類のICであっても、同
一形状のICパッケージであれば、印字マークや第1ピ
ンマークの位置及び範囲は同じであると考えられるた
め、当該オフラインティーチング工程では、後述するオ
ンラインティーチング工程において基準印字パターンと
基準第1ピンパターンを登録する際の検索範囲を、予め
ウィンドウとして設定するようにしている。これによ
り、異なる種類のICであっても、同一形状のICパッ
ケージであるならば、これら各種のICに対してそれぞ
れ基準印字パターンや基準第1ピンパターンのティーチ
ングを行う場合に、ICの種類が変わったとしてもその
都度ウィンドウを再設定する必要がなくなる。さらに当
該オフラインティーチング工程では、テンプレートマッ
チング処理においてマッチングの度合いを判定する際の
後述するスコアを設定して記憶する。なお、以下、当該
オフラインティーチング時に設定するウィンドウをオフ
ラインティーチング用ウィンドウと呼ぶ。
Here, even if the IC packages are of different types, if the IC packages have the same shape, the positions and ranges of the print marks and the first pin marks are considered to be the same. A search range for registering a reference print pattern and a reference first pin pattern in an online teaching process described later is set in advance as a window. With this, even if different types of ICs are in the same shape IC package, when performing teaching of the reference print pattern or the reference first pin pattern to each of these various ICs, the type of the IC is changed. There is no need to reset the window each time it changes. Further, in the offline teaching step, a score, which will be described later, when determining the degree of matching in the template matching process is set and stored. Hereinafter, the window set during the offline teaching is referred to as an offline teaching window.

【0038】次に、前記自動的に行われるオンラインテ
ィーチング工程は、当該マーク検査装置に供給された最
初のICパッケージ14を良品であると仮定し、当該最
初のICパッケージ14の上面をビデオカメラ12によ
って撮影し、上記オフラインティーチング用ウィンドウ
に対応する位置及び範囲を当該最初のICパッケージ1
4の画像から自動検索により探し出す。さらに、当該オ
ンラインティーチング工程では、上記自動検索により探
し出した当該ウィンドウ内の印字マークの画像パターン
を基準印字パターンとして記憶し、同じく探し出した当
該ウィンドウ内の第1ピンマークの画像パターンを基準
第1ピンパターンとして記憶する。なお、上記第1ピン
マークのティーチングでは、第1ピンマークをビデオカ
メラ12にて撮影した画像そのものを記憶する。上記オ
ンラインティーチング工程における基準印字パターンと
基準第1ピンパターンの記憶動作を、以下、マスタ登録
と呼ぶことにする。
Next, in the automatically performed online teaching process, the first IC package 14 supplied to the mark inspection apparatus is assumed to be good, and the upper surface of the first IC package 14 is placed on the video camera 12. And the position and range corresponding to the offline teaching window are set in the first IC package 1.
Search out from the image of No. 4 by automatic search. Further, in the online teaching process, the image pattern of the print mark in the window searched by the automatic search is stored as a reference print pattern, and the image pattern of the first pin mark in the window also searched is used as the reference first pin. Store as a pattern. In the teaching of the first pin mark, an image itself of the first pin mark taken by the video camera 12 is stored. The operation of storing the reference print pattern and the reference first pin pattern in the online teaching process will be hereinafter referred to as master registration.

【0039】ここで、当該オンラインティーチング工程
において、ビデオカメラ12にて撮影したICパッケー
ジ14の画像内から印字マークの文字列を探す際に、前
記オフラインティーチング工程にて使用した基準ICパ
ッケージ上の印字マークの位置と、当該最初のICパッ
ケージ14上の印字マークの位置とが異なる可能性があ
るため、当該文字列を探すためのウィンドウの大きさ
は、上記オンフライティーチング用ウィンドウの大きさ
よりも上下に例えば各1.5倍、左右をさらに各上下幅
を加えた幅だけ大きいものとしている。なお、当該オン
ラインティーチング工程で使用するウィンドウを以下オ
ンラインティーチング用ウィンドウと呼ぶ。また、当該
オンラインティーチング工程では、当該オンラインティ
ーチング用ウィンドウ内で検索した文字列を、各文字毎
に分離して、それぞれの文字をテンプレート画像、すな
わち基準印字パターンとして登録すると共に、実際にI
Cパッケージの検査を行う際のサーチエリアすなわち検
査領域を設定して記憶する。この検査領域は、上記文字
列の左右端の各1文字については他の文字に対するもの
よりも大きい領域となるものである。このようにする理
由は、実際にICパッケージを検査する時に、先ず文字
列の左右端の文字をサーチし、これら左右端の文字が見
つかった時点で、それらの位置関係から、当該検査対象
のICパッケージ全体の傾きを計算し、当該求めた傾き
と位置に応じて実際の文字列の傾きと位置を補正するよ
うにしているからである。また、上述のように文字列の
各文字を分離する際には、例えば「−」などの横に長く
縦に短い文字については用いずにマスタ登録しないよう
にしている。
Here, in the online teaching process, when the character string of the print mark is searched for from the image of the IC package 14 photographed by the video camera 12, the printing on the reference IC package used in the offline teaching process is performed. Since the position of the mark and the position of the print mark on the first IC package 14 may be different, the size of the window for searching for the character string is larger or smaller than the size of the on-fly teaching window. For example, the width is 1.5 times larger, and the left and right are larger by the width obtained by adding the upper and lower widths. The window used in the online teaching process is hereinafter referred to as an online teaching window. In the online teaching process, a character string searched in the online teaching window is separated for each character, and each character is registered as a template image, that is, a reference print pattern.
A search area for inspecting the C package, that is, an inspection area is set and stored. This inspection area is an area larger for one character at each of the left and right ends of the character string than for other characters. The reason for this is that when actually inspecting the IC package, first, the characters at the left and right ends of the character string are searched, and when these left and right characters are found, the position of the IC to be inspected is determined based on their positional relationship. This is because the inclination of the entire package is calculated, and the actual inclination and position of the character string are corrected in accordance with the obtained inclination and position. Further, when separating each character of the character string as described above, master registration is not performed without using a horizontally long and vertically short character such as "-".

【0040】なお、上記オンラインティーチング工程に
おいて、マスタ登録に失敗したときには、モニタ画面上
にティーチングが不良となった旨の表示を画像処理ユニ
ット11が行う。また、マーク検査の実行途中で、上記
エンボステープ13にて供給されるICのロットが切り
換えられたりして、印字マークの文字等の品質が変わ
り、検査エラーが頻発するようになった場合には、マー
ク検査装置を一旦停止して再度マスタ登録(オンライン
ティーチング)を行うようにする。
In the online teaching process, when the master registration fails, the image processing unit 11 displays on the monitor screen that the teaching has failed. Further, when the lot of the IC supplied by the embossed tape 13 is switched during the execution of the mark inspection, the quality of the characters of the print mark changes, and an inspection error frequently occurs. Then, the mark inspection device is temporarily stopped and the master registration (on-line teaching) is performed again.

【0041】次に、上記通常の検査工程は、上記ティー
チング工程においてマスタ登録動作を行った後に行わ
れ、上記ティーチング工程にて得られた基準印字パター
ン及び基準第1ピンパターンと実際のICパッケージ1
4を撮影して得た検査対象印字パターン及び検査対象印
字パターンとを比較して、前記エンボステープ13上に
異なる種類のICパッケージが混入して収納されていな
いかどうかの検査と、当該エンボステープ13上にIC
パッケージが正しい向きで収納されたかどうかの検査を
行う。
Next, the normal inspection process is performed after performing the master registration operation in the teaching process, and the reference print pattern and the reference first pin pattern obtained in the teaching process are compared with the actual IC package 1.
4 is compared with the print pattern to be inspected and the print pattern to be inspected obtained by photographing No. 4 to check whether or not different types of IC packages are mixed and stored on the embossed tape 13; IC on 13
Inspect the package for correct orientation.

【0042】さらに、本実施例のマーク検査装置には、
上述した通常の検査工程の他に、前記リトライ検査工程
がある。当該リトライ検査工程は、前述したように通常
の検査工程にてICパッケージがNGすなわち不良と判
定されたときに、良品であるにもかかわらず不良品であ
ると判定されたものでないことを再確認するための再検
査工程である。
Further, in the mark inspection apparatus of the present embodiment,
In addition to the normal inspection process described above, there is the retry inspection process. In the retry inspection process, as described above, when the IC package is determined to be NG, that is, defective in the normal inspection process, it is reconfirmed that the IC package is not determined to be defective although it is good. This is a re-inspection process for performing

【0043】すなわち例えば、印字マークがインクによ
り捺印されたものである場合には、当該捺印時の押圧力
のばらつきにより、文字の太さが変化したり、印字位置
がズレたりすることがあり、このような場合には本来良
品であるにもかかわらず不良品であると判定されること
がある。このため、本実施例のマーク検査装置では、上
記通常の検査工程で一旦NGと判定されたとしても、当
該リトライ検査により再確認を行うようにし、当該リト
ライ検査で再びNGと判定されたときにのみ当該ICパ
ッケージを不良品であると判定する。
That is, for example, when the print mark is stamped with ink, the thickness of the character may change or the print position may shift due to the variation in the pressing force at the time of the stamp. In such a case, it may be determined that the product is defective although it is originally good. For this reason, in the mark inspection apparatus according to the present embodiment, even if it is determined as NG once in the above-described normal inspection process, re-confirmation is performed by the retry inspection, and when it is determined as NG again in the retry inspection, Only the IC package is determined to be defective.

【0044】なお、上記通常の検査工程において、上記
文字の太さの変化や印字位置のズレに対応できるような
検査を行うことも可能であるが、この場合、検査の処理
時間が多く必要になる。一方、これら文字の太さの変化
や印字位置のズレが発生する頻度は低く、このような発
生頻度の低いもののために通常の検査工程で多くの検査
時間を費やすことは検査コストの上昇を招いて好ましく
ない。
In the above-described ordinary inspection process, it is possible to perform an inspection that can cope with a change in the thickness of the character or a shift in the printing position. However, in this case, a long processing time is required for the inspection. Become. On the other hand, changes in the thickness of these characters and misalignment of the printing position occur at a low frequency, and spending a large amount of inspection time in a normal inspection process due to such a low frequency of occurrence causes an increase in inspection cost. Is not preferred.

【0045】このため、本実施例のマーク検査装置にお
いて上記通常の検査工程では、上記文字の太さの変化や
印字位置のズレに対応する処理を省略し、当該通常の検
査工程で一旦不良品であると判断したときのみ、上記リ
トライ検査を行うことで、全体の検査時間を短縮すると
共に、本来良品であるにもかかわらず不良品であるとし
て間違って判定されることを防止し、ICパッケージ検
査の歩留まり向上を図っている。
For this reason, in the mark inspection apparatus of the present embodiment, in the above-described normal inspection process, the processing corresponding to the change in the thickness of the character and the deviation of the printing position is omitted, and the defective product is once judged in the normal inspection process. By performing the retry inspection only when it is determined that the IC package is defective, it is possible to shorten the overall inspection time and to prevent an erroneous determination as a defective product despite the fact that the IC package is originally good. We are improving the yield of inspection.

【0046】また、当該リトライ検査工程では、上記通
常の検査工程での検査に比べて、ICパッケージ上の印
字マークを探索する範囲を広く設定し、また、印字マー
クの線の太さ(例えば文字の太さ)を変えて検査を行
う。なお、このリトライ検査工程は、特に印字マークの
検査の際に行われるものであるが、第1ピンマークの検
査にも適用することは可能である。ただし、当該第1ピ
ンマークの場合は印字マークと違い、マークの太さや位
置が変化することは殆どないため、当該第1ピンマーク
の検査の際にリトライ検査は必ずしも必要ない。
Further, in the retry inspection process, compared with the inspection in the normal inspection process, the range for searching for the print mark on the IC package is set wider, and the line width of the print mark (for example, characters) Inspection is performed by changing the thickness. Note that this retry inspection step is performed particularly at the time of inspecting a print mark, but can also be applied to inspection of a first pin mark. However, in the case of the first pin mark, unlike the print mark, the thickness and position of the mark hardly change, so that a retry inspection is not necessarily required when inspecting the first pin mark.

【0047】なお、上記検査時間は、例えば以下の式に
て求めることができるものである。
The inspection time can be obtained, for example, by the following equation.

【0048】ttotal=t1pin+tmark1+tmark2mark1=tpos1+tch1*n1mark2=tpos2+tch2*n2 上記各式において、ttotalは全体の検査時間、t1pin
は第1ピンマークの検査時間、tmark1は印字マークの
うち例えば品名の検査時間、tmark2は印字マークのう
ち例えばロット番号の検査時間、tpos1は上記品名の印
字マークの位置決め及び傾きを補正するための回転補正
にかかる時間、tpos2は上記ロット番号の因子マークの
位置決め及び回転補正にかかる時間、tch1は上記品名
の印字マークの1文字の検査時間、tch2は上記ロット
番号の印字マークの1文字の検査時間、n1は上記品名
の印字マークの文字数、tch2は上記ロット番号の印字
マークの文字数である。これらの検査処理時間はICパ
ッケージの種類の違いや、文字の大きさの違い、第1ピ
ンマークの大きさの違いなどで大きく変化する。一般的
に文字の高さ又は幅がn倍になると、n2倍の処理時間
が必要である。
[0048] t total = t 1pin + t mark1 + t mark2 t mark1 = t pos1 + t ch1 * in n 1 t mark2 = t pos2 + t ch2 * n 2 above formulas, t total is the total inspection time, t 1pin
Inspection time of the first pin marks, t MARK1 the inspection time, for example, product name of the print mark, t mark2 the inspection time of the print mark for example lot number, t pos1 the correct positioning and inclination of the print mark of the product name T pos2 is the time required for positioning and rotation correction of the factor mark of the lot number, t ch1 is the inspection time of one character of the print mark of the product name, and t ch2 is the printing of the lot number. 1 character inspection time of the mark, n 1 is the number of characters in the print mark of the product name, t ch2 is the number of characters in the print mark of the lot number. These inspection processing times vary greatly depending on the type of IC package, the size of characters, the size of the first pin mark, and the like. Generally, when the height or width of a character is n times, n 2 times of processing time is required.

【0049】次に、本発明実施例のマーク検査装置にお
ける上記ティーチング工程と通常の検査工程とリトライ
検査工程の詳細な内容について順番に説明する。
Next, detailed contents of the teaching process, the normal inspection process, and the retry inspection process in the mark inspection apparatus according to the embodiment of the present invention will be described in order.

【0050】先ず、上記ティーチング工程のうち、上記
オフラインティーチング工程は、具体的には図2に示す
フローチャートのような手順で行われる。なお、図2に
は当該オフラインティーチングの全体の流れを示す。
First, among the teaching steps, the off-line teaching step is specifically performed according to a procedure shown in a flowchart of FIG. FIG. 2 shows the overall flow of the offline teaching.

【0051】この図2のフローチャートにおいて、先ず
ステップST1では基準ICパッケージがビデオカメラ
12の前にセットされる。なお、当該基準ICパッケー
ジのセットは、オペレータが行う場合、又は前記搬送系
にて自動的に行われる場合等の何れであってもよい。上
記ビデオカメラ12からは、上記基準ICパッケージを
上面から撮影した画像信号が出力され、画像処理ユニッ
ト11に送られて例えば後述するフィルタリングやモニ
タ画面へ表示するための各種画像処理が施され、モニタ
装置15に送られる。これにより、当該モニタ装置15
のモニタ画面上には、上記基準ICパッケージを上面か
ら撮影した画像が表示される。
In the flowchart of FIG. 2, first, in step ST1, the reference IC package is set in front of the video camera 12. The setting of the reference IC package may be performed by an operator or automatically by the transport system. From the video camera 12, an image signal obtained by photographing the reference IC package from above is output, sent to the image processing unit 11, and subjected to, for example, filtering and various image processing for display on a monitor screen, which will be described later. It is sent to the device 15. Thereby, the monitor device 15
On the monitor screen, an image of the reference IC package photographed from above is displayed.

【0052】次のステップST2では、上記モニタ画面
上に表示された上記基準ICパッケージの画像上に、上
記オフラインティーチング用ウィンドウを設定する。す
なわち当該ステップST2では、後に行われるオンライ
ンティーチング工程において最初のICパッケージ14
の画像から印字マーク及び第1ピンマークが存在する位
置及び範囲を検索するためのウィンドウを設定する。ま
た、このステップST2では、テンプレートマッチング
処理においてマッチングの度合いを判定する際の前記ス
コアの設定も行う。これらウィンドウの位置及び範囲の
設定及びスコアの設定は、オペレータによる操作盤16
の操作に応じて行われる。
In the next step ST2, the offline teaching window is set on the image of the reference IC package displayed on the monitor screen. That is, in the step ST2, the first IC package 14 is used in the online teaching process performed later.
A window for retrieving the position and range where the print mark and the first pin mark are present from the image is set. In step ST2, the score is set when the degree of matching is determined in the template matching process. The setting of the position and range of these windows and the setting of the score are performed by the operator using the operation panel 16.
Is performed in accordance with the operation of.

【0053】ステップST3では、上記ステップST2
にて設定されたオフラインティーチング用ウィンドウの
位置及び範囲、スコアの情報を記憶装置18に記憶す
る。また、ステップST3では、上記撮影した基準IC
パッケージ上の第1ピンマークの画像情報も記憶装置1
8に記憶する。
In step ST3, step ST2
The information on the position, range, and score of the offline teaching window set in the step (1) is stored in the storage device 18. In step ST3, the photographed reference IC
The image information of the first pin mark on the package is also stored in the storage device 1.
8 is stored.

【0054】ここで、上記ステップST2におけるオフ
ラインティーチング用ウィンドウの位置及び範囲の設定
は、以下の図3から図9に示すようにして行う。
The setting of the position and range of the offline teaching window in step ST2 is performed as shown in FIGS. 3 to 9 below.

【0055】図3には、上記ビデオカメラ12にて撮影
してモニタ画面上に表示された上記基準ICパッケージ
24の上面画像を示している。また、当該基準ICパッ
ケージ24上には、例えば「ABCDEF」「abcd
efgh」「1110000111」「−αβγσθ
−」の各文字列及び数字列が印字マークとして形成され
ており、第1リード端子に対応する位置として左下隅に
第1ピンマーク23が配置されているとする。
FIG. 3 shows a top image of the reference IC package 24 photographed by the video camera 12 and displayed on a monitor screen. In addition, for example, “ABCDEF”, “abcd”
efgh "" 11100000111 "" -αβγσθ
It is assumed that each character string and numeral string of "-" are formed as print marks, and the first pin mark 23 is arranged at the lower left corner as a position corresponding to the first lead terminal.

【0056】この図3の例では、上記基準ICパッケー
ジ24上の印字マークの内、「abcdefgh」の文
字列をオフラインティーチング用ウィンドウ21にて囲
み、第1ピンマーク25をオフラインティーチング用ウ
ィンドウ23にて囲んでいる。上記オフラインティーチ
ング用ウィンドウ21にて囲まれた部分は、後のオンラ
インティーチング時に基準印字パターンをマスタ登録す
るための範囲となり、また、上記オフラインティーチン
グ用ウィンドウ23にて囲まれた部分は、後のオンライ
ンティーチング時に基準第1ピンパターンをマスタ登録
するための範囲となる。
In the example of FIG. 3, among the print marks on the reference IC package 24, the character string “abcdefgh” is surrounded by the off-line teaching window 21, and the first pin mark 25 is placed on the off-line teaching window 23. Surrounding. The portion surrounded by the above-mentioned offline teaching window 21 is a range for registering the reference print pattern as a master at the time of the later online teaching, and the portion surrounded by the above-mentioned offline teaching window 23 is the later online teaching. This is the range for registering the reference first pin pattern as a master during teaching.

【0057】ここで、上記印字マークを囲むオフライン
ティーチング用ウィンドウ21を設定する場合、後のオ
フラインティーチング時に基準印字パターンとしてマス
タ登録したい印字マークの文字列の全体を囲むようにす
る。このとき、印字マークはICの種類によって横方向
の文字数が異なるため、当該オフラインティーチング用
ウィンドウ21を設定する場合は、横一列の文字列全体
を囲むようにする。なお、当該オフラインティーチング
用ウィンドウ21については最大4個まで設定できる。
ただし、多くの文字等を一度に検査すると後のマーク検
査時に検査時間が長くなるため、本実施例のマーク検査
装置は、印字マークの検査の際に必要な文字列に対して
のみ登録する。
Here, when the off-line teaching window 21 surrounding the print mark is set, the entire character string of the print mark to be master-registered as a reference print pattern at the time of the subsequent offline teaching is set. At this time, since the number of characters in the horizontal direction of the print mark varies depending on the type of IC, when setting the off-line teaching window 21, the entire character string in one horizontal line is surrounded. It should be noted that up to four windows 21 for offline teaching can be set.
However, if many characters or the like are inspected at one time, the inspection time will be long at the time of the subsequent mark inspection. Therefore, the mark inspection apparatus of the present embodiment registers only the character string necessary for the inspection of the print mark.

【0058】上記第1ピンマーク25を囲むオフライン
ティーチング用ウィンドウ25を設定する場合も、同様
に当該第1ピンマーク25の全体を囲むようにする。
When the offline teaching window 25 surrounding the first pin mark 25 is set, the whole of the first pin mark 25 is similarly surrounded.

【0059】上記オフラインティーチング用ウィンドウ
21及び25は、オペレータによる上記操作盤16の操
作に応じて移動すると共に大きさが変更されるものであ
る。上記操作盤16には、上記ウィンドウ21及び25
の移動と大きさを入力設定するための手段として、例え
ばマウスやトラックボールが配され、したがって、上記
ウィンドウ21及び25は、オペレータによる当該マウ
ス或いはトラックボールの操作に応じてモニタ画面上の
任意の位置に移動すると共に任意の大きさに設定され
る。上記モニタ画面上における上記ウィンドウ21及び
25の位置及び大きさを示す情報、例えば座標情報等は
上記記憶装置18に記憶される。ただし、このオフライ
ンティーチング工程の段階では、ウィンドウ21及び2
5の位置及び大きさの設定のみを行い、当該ウィンドウ
21及び25内の印字マーク及び第1ピンマークのティ
ーチングは行っていない。
The offline teaching windows 21 and 25 are moved and changed in size according to the operation of the operation panel 16 by the operator. The operation panel 16 includes the windows 21 and 25.
For example, a mouse or a trackball is provided as a means for inputting and setting the movement and size of the mouse. Therefore, the windows 21 and 25 are provided on the monitor screen in accordance with the operation of the mouse or the trackball by the operator. It moves to the position and is set to an arbitrary size. Information indicating the positions and sizes of the windows 21 and 25 on the monitor screen, such as coordinate information, is stored in the storage device 18. However, at this stage of the offline teaching process, windows 21 and 2
Only the position and size of No. 5 are set, and the teaching of the print mark and the first pin mark in the windows 21 and 25 is not performed.

【0060】上記図3の例では、「abcdefgh」
の文字列を上記オフラインティーチング用ウィンドウ2
1にて囲んでいるが、後のオンラインティーチング工程
において基準印字パターンとして登録したくない文字等
がある場合には、これら登録したくない文字等がある領
域を禁止領域として設定することもできる。図4には、
当該禁止領域を設定した例を示す。なお、この図4も図
3と同様に基準ICパッケージ24の上面画像を示して
いる。
In the example of FIG. 3, "abcdefgh"
In the above offline teaching window 2
Although surrounded by 1, if there are characters or the like that are not desired to be registered as the reference print pattern in the subsequent online teaching process, an area including these characters or the like that should not be registered can be set as a prohibited area. In FIG.
An example in which the prohibited area is set is shown. Note that FIG. 4 also shows an upper surface image of the reference IC package 24 as in FIG.

【0061】図4において、上記図3の例でオフライン
ティーチング用ウィンドウ21にて囲まれた部分内の禁
止領域は、上記ウィンドウ21とは別のウィンドウ22
にて設定する。当該禁止領域は、上記ウィンドウ21内
で基準印字パターンとして登録したくない領域を設定す
るものであるため、上記ウィンドウ22は当該ウィンド
ウ21の範囲内に設定する。当該禁止領域を設定するた
めのウィンドウ22も、オペレータによる上記操作盤1
6の操作に応じて移動すると共に大きさが変更されるも
のである。上記モニタ画面上における上記ウィンドウ2
1の位置及び大きさを示す情報も上記記憶装置18に記
憶される。
In FIG. 4, the prohibited area in the portion surrounded by the offline teaching window 21 in the example of FIG.
Set with. Since the prohibited area is for setting an area in the window 21 that is not desired to be registered as a reference print pattern, the window 22 is set within the range of the window 21. The window 22 for setting the prohibited area is also provided by the operator with the operation panel 1.
The size is changed while moving according to the operation of No. 6. Window 2 on the monitor screen
Information indicating the position and the size of No. 1 is also stored in the storage device 18.

【0062】ところで、第1ピンマークは、図3や図4
に示したような基準ICパッケージ24の角の部分に配
されるものの他に、例えば図5に示すような半円マーク
27で且つICパッケージ26の1辺寄りの中央部に配
されるものである場合や、例えば図6に示すような大小
2つの円マーク28,29で且つICパッケージ30の
それぞれ対向する2辺寄りに配されるものである場合が
ある。すなわち、図5のICパッケージ26の場合は半
円マーク27がある辺側に第1リード端子が存在し、図
6のICパッケージ30の場合は小円マーク28が有る
辺側に第1リード端子が存在する。したがって、例えば
図5に示したようなICパッケージ26の場合は、図7
に示すウィンドウ33のように、上記半円マーク27を
囲むオフラインティーチング用ウィンドウを設定するこ
とで、後のオンラインティーチング時には当該半円マー
ク27を基準第1ピンパターンとして登録することが可
能となる。
By the way, the first pin mark is shown in FIG.
In addition to those arranged at the corners of the reference IC package 24 as shown in FIG. 5, for example, semicircular marks 27 as shown in FIG. In some cases, for example, there are two large and small circle marks 28 and 29 as shown in FIG. That is, in the case of the IC package 26 of FIG. 5, the first lead terminal exists on the side where the semicircle mark 27 is located, and in the case of the IC package 30 of FIG. Exists. Therefore, for example, in the case of the IC package 26 as shown in FIG.
By setting an off-line teaching window surrounding the semicircle mark 27 as shown in a window 33 shown in FIG. 7, the semicircle mark 27 can be registered as a reference first pin pattern at the time of online teaching later.

【0063】また、上記図5や図6の半円マーク27や
小円マーク28,大円マーク29は、上記第1ピンマー
クとしての役割と共に、ICパッケージの表裏を示す役
割をも有している。すなわち、ICパッケージには、リ
ード端子の曲方向が正ベントと逆ベントの2種類存在
し、これら正ベントと逆ベントを区別するために、上記
図5や図6に示すようなマーク27や28,29が形成
されている。なお、図5のような半円マーク27が配さ
れているICパッケージ26は正ベントであり、図6の
ような大小2つの円マーク28,29が配されているI
Cパッケージ30は逆ベントである。
The semicircle mark 27, the small circle mark 28, and the large circle mark 29 in FIGS. 5 and 6 serve not only as the first pin mark but also to indicate the front and back of the IC package. I have. That is, in the IC package, there are two kinds of bending directions of the lead terminals, the forward vent and the reverse vent. In order to distinguish between the forward vent and the reverse vent, the marks 27 and 28 shown in FIGS. , 29 are formed. The IC package 26 provided with the semicircle mark 27 as shown in FIG. 5 is a regular vent, and the IC package 26 provided with two large and small circle marks 28 and 29 as shown in FIG.
The C package 30 is a reverse vent.

【0064】ここで、モニタ画面上にこれらICパッケ
ージ26,30の上面画像を表示した場合、上記半円マ
ーク27及び大小2つの円マーク28,29はそれぞれ
同じような濃淡値を持つものである。また、図5及び図
6を見て判るように、正ベントを示すの半円マーク27
と逆ベントを示す大円マーク29の半分とは、形状が非
常に似ており、また面積も非常に近い。
Here, when the top images of the IC packages 26 and 30 are displayed on the monitor screen, the semicircle mark 27 and the two large and small circle marks 28 and 29 have the same grayscale value, respectively. . Further, as can be seen from FIGS. 5 and 6, a semicircular mark 27
And the half of the great circle mark 29 indicating the reverse vent are very similar in shape and very close in area.

【0065】したがって、後述するマーク検査時におい
て上記第1ピンマークの検査を行う場合には、上記半円
マーク27と上記大円マーク29の半分とを互いに誤っ
て認識してしまう虞れがある。このため、本実施例のマ
ーク検査装置では、第1ピンマークの検査を行う場合に
おいて、上記半円マーク27と上記大円マーク29の半
分とを互いに誤って認識してしまわないように、当該正
ベントのICパッケージ26については、上記オフライ
ンティーチング用ウィンドウ33の他に、もう一つのウ
ィンドウを設定するようにしている。
Therefore, when inspecting the first pin mark at the time of the mark inspection to be described later, there is a possibility that the half circle mark 27 and half of the large circle mark 29 are erroneously recognized. . For this reason, in the mark inspection apparatus of the present embodiment, when inspecting the first pin mark, the semicircle mark 27 and the half of the great circle mark 29 are not erroneously recognized from each other. With respect to the IC package 26 of the front vent, another window is set in addition to the window 33 for the offline teaching.

【0066】すなわち例えば、図7に示すように正ベン
トのICパッケージ26の画像に対して第1ピンマーク
である半円マーク27をオフラインティーチング用ウィ
ンドウ33にて囲んだときには、図8に示すように更に
もう一つのウィンドウ34を設定する。当該ウィンドウ
34の配される領域は、図6に示した逆ベントのICパ
ッケージ30上で大円マーク29が配されることになる
位置に対応する。
That is, for example, as shown in FIG. 7, when the semicircle mark 27 as the first pin mark is surrounded by the offline teaching window 33 with respect to the image of the IC package 26 of the front vent as shown in FIG. And another window 34 is set. The area where the window 34 is arranged corresponds to the position where the great circle mark 29 is to be arranged on the reverse vented IC package 30 shown in FIG.

【0067】このように、正ベントのICパッケージ2
6に対して、上記2つのウィンドウ33,34を設ける
ようにすれば、後に当該正ベントのICパッケージ26
の第1ピンマーク(半円マーク27)の検査を行ったと
きに、誤って逆ベントのICパッケージ30が混入する
と、2つのウィンドウ33及び34に対応して設けられ
ることになる後述する検査領域に、同じような濃淡値で
かつ同じような形状のマーク(大円マークの場合は当該
マークの半分)が検出されることになり、これは上記正
ベントのICパッケージ26の第1ピンマーク検査時に
は有り得ないはずである。したがって、当該ICパッケ
ージは不良品であること、すなわち当該ICパッケージ
は上記正ベントのICパッケージ26ではないことを検
出できるようになる。なお、上記ウィンドウ34の大き
さは、正確である必要はなく、後のマーク検査時に、当
該ウィンドウ34に対応して設けられることになる検査
領域内に何らかのマークが存在することを検出できるよ
うな大きさであればよい。また、上記各ウィンドウはリ
ード端子側にはみ出ないように設定する。
As described above, the positive vent IC package 2
If the two windows 33 and 34 are provided to the IC card 6, the IC package 26 of the front vent will be provided later.
When the IC package 30 of the reverse vent is mistakenly mixed when the inspection of the first pin mark (semicircle mark 27) is performed, an inspection area described later which is provided corresponding to the two windows 33 and 34 will be provided. At the same time, a mark having the same gray level and the same shape (half of the mark in the case of a great circle mark) is detected, which is the first pin mark inspection of the IC package 26 of the above-described positive vent. Sometimes this should not be possible. Therefore, it is possible to detect that the IC package is defective, that is, that the IC package is not the IC package 26 of the above-described vent. Note that the size of the window 34 does not need to be accurate, and the size of the window 34 can be detected in a later mark inspection so that the presence of any mark in an inspection area to be provided corresponding to the window 34 can be detected. Any size is acceptable. The windows are set so as not to protrude to the lead terminal side.

【0068】一方、図6に示したような逆ベントのIC
パッケージ30においては、図9に示すように、上記大
円マーク29全体を囲むようなウィンドウを、オフライ
ンティーチング用ウィンドウ35として設定する。な
お、当該逆ベントのICパッケージ30の場合、実際の
第1リード端子は上記小円マーク28側の辺に配されて
いるが、何れにしても上記大円マーク29側の辺と対向
する辺側に第1リード端子が配されることは判っている
ため、上記大円マーク29側をオフラインティーチング
用ウィンドウとしても構わない。すなわち、マーク検査
装置は、上記オフラインティーチング用ウィンドウ35
に対応して設けられることになる後述検査領域内で当該
大円マーク29を検出したときには、当該大円マーク2
9側の辺と対向する辺側に第1リード端子が存在するこ
とを知ることができる。
On the other hand, the reverse vent IC shown in FIG.
In the package 30, as shown in FIG. 9, a window surrounding the whole of the great circle mark 29 is set as the window 35 for offline teaching. In the case of the reverse vented IC package 30, the actual first lead terminals are arranged on the side on the small circle mark 28 side, but in any case, the side opposite to the side on the large circle mark 29 side. Since it is known that the first lead terminal is provided on the side, the great circle mark 29 side may be used as a window for off-line teaching. In other words, the mark inspection apparatus uses the offline teaching window 35.
When the great circle mark 29 is detected in the inspection area to be described later, which is provided corresponding to
It can be known that the first lead terminal exists on the side opposite to the side on the side of the ninth side.

【0069】ここで、当該逆ベントのICパッケージ3
0に対しては、上記正ベントの場合のような2つのウィ
ンドウを設けるようなことはせず、一つの上記ウィンド
ウ35のみとする。なぜならば、当該逆ベントのICパ
ッケージ30の大円マーク29の検査を行っている場合
に、誤って正ベントのICパッケージ26が混入して、
上記ウィンドウ35に対応して設けられる検査領域内に
上記正ベントのICパッケージ26の半円マーク27が
入ってきたとしても、上記大円マーク29を囲むような
大きさの検査領域内では、上記半円マーク27の前記ス
コアが大円マーク29の場合よりも低くなるので、当該
ICパッケージ26が逆ベントのICパッケージ30と
は異なるものであることを検出できるからである。
Here, the IC package 3 of the reverse vent is used.
With respect to 0, two windows are not provided as in the case of the above-mentioned normal vent, and only one window 35 is provided. This is because, when the inspection of the great circle mark 29 of the IC package 30 of the reverse vent is performed, the IC package 26 of the normal vent is erroneously mixed.
Even if the semicircular mark 27 of the IC package 26 of the regular vent enters the inspection area provided corresponding to the window 35, the inspection area having a size surrounding the great circle mark 29 has This is because the score of the semicircle mark 27 is lower than that of the great circle mark 29, so that it can be detected that the IC package 26 is different from the reverse vented IC package 30.

【0070】上記図7から図9にて説明した各オフライ
ンティーチング用ウィンドウ33,34,35も、オペ
レータによる上記操作盤16の操作に応じて移動すると
共に大きさが変更されるものである。上記モニタ画面上
における各ウィンドウ33,34,35の位置及び大き
さを示す情報も上記記憶装置18に記憶される。
Each of the offline teaching windows 33, 34 and 35 described with reference to FIGS. 7 to 9 also moves and changes size according to the operation of the operation panel 16 by the operator. Information indicating the position and size of each window 33, 34, 35 on the monitor screen is also stored in the storage device 18.

【0071】次に、上述したオフラインティーチング工
程において上記オフラインティーチング用ウィンドウを
設定する際の手順について、図10のフローチャートを
用いて説明する。なお、この図10のフローチャート
は、図2のフローチャートのステップST2及びステッ
プST3をより詳細に説明するものであり、上記オフラ
インティーチング用ウィンドウを設定する際に、オペレ
ータが操作盤16を操作して設定したウィンドウから、
さらに最適なオフラインティーチング用ウィンドウを設
定し直すためのティーチング処理について説明するため
のものである。
Next, the procedure for setting the window for offline teaching in the above-described offline teaching process will be described with reference to the flowchart of FIG. Note that the flowchart of FIG. 10 describes step ST2 and step ST3 of the flowchart of FIG. 2 in more detail. When the offline teaching window is set, the operator operates the operation panel 16 to set the offline teaching window. From the window
Further, the teaching processing for resetting the optimal offline teaching window is described.

【0072】この図10において、ステップST11で
は、オペレータが操作盤16を操作して設定したウィン
ドウ内の画像を構成する各画素を2値化し、得られた2
値画像中の各連結成分に個々のラベルを割り当てるラベ
リング処理を施す。これにより、当該ウィンドウ内に例
えば文字等のマークがある場合には、当該文字等のマー
クを構成する各線或いは面内の各画素に対してそれぞれ
同じラベルが割り当てられることになる。言い換えれ
ば、文字等のマークを構成する各線或いは面のうち連結
した各線或いは面には、それぞれ同じラベルが割り当て
られることになる。
In FIG. 10, in step ST11, each pixel constituting an image in the window set by the operator operating the operation panel 16 is binarized, and the obtained binarization is performed.
A labeling process for assigning individual labels to each connected component in the value image is performed. As a result, when there is a mark such as a character in the window, for example, the same label is assigned to each line or each pixel in the plane constituting the mark such as the character. In other words, the same label is assigned to each connected line or surface among the lines or surfaces constituting a mark such as a character.

【0073】ステップST12では上記オペレータが設
定したウィンドウに接するラベルを除去する。また、当
該ステップST12では、画像信号に対して後述するフ
ァイルリングを施すことより、ノイズ成分の除去も行
う。
In step ST12, the label in contact with the window set by the operator is removed. In step ST12, a noise component is also removed by performing a file ring described later on the image signal.

【0074】ステップST13では、上記オペレータが
設定したウィンドウ内で上記個々のラベル毎の分類を行
う。すなわち、当該ウィンドウ内でそれぞれ同じラベル
が割り当てられた各画素毎にまとめる分類を行う。さら
に言い換えればこのステップST13では、上述したよ
うにオペレータが設定したウィンドウ内に例えば文字等
がある場合に、当該文字を構成する各線の各画素にはそ
れぞれ同じラベルが割り当てられているため、これらを
ラベル毎すなわち文字等毎に分類する。
In step ST13, the individual labels are classified in the window set by the operator. That is, classification is performed for each pixel to which the same label is assigned in the window. In other words, in step ST13, when there is, for example, a character or the like in the window set by the operator as described above, the same label is assigned to each pixel of each line constituting the character. Classification is performed for each label, that is, for each character.

【0075】次のステップST14では、上記オペレー
タが設定したウィンドウ内にラベルが残っているか否か
の判断を行う。すなわち、当該ウィンドウ内にラベルが
残っていると言うことは、このウィンドウ内の画像に文
字等が存在することを表し、ラベルが残っていないと言
うことは当該ウィンドウ内の画像に文字等が存在しない
ことを表している。当該ステップST14において、ラ
ベルが残っていると判断した場合にはステップST15
に進み、残っていないと判断した場合にはステップST
18に進む。
In the next step ST14, it is determined whether or not a label remains in the window set by the operator. That is, that a label remains in the window indicates that characters and the like exist in the image in this window, and that no label remains means that there is a character and the like in the image in the window. It does not. If it is determined in step ST14 that a label remains, the process proceeds to step ST15.
To step ST if it is determined that there is no remaining
Proceed to 18.

【0076】ステップST15では、上記オペレータが
設定したウィンドウ内の各ラベルのうち、横一例に並ん
だラベルのみ残し、他のラベルは削除する。すなわち、
このステップST15では、当該ウィンドウ内に横一列
に並んだ例えば複数の文字等からなる画像が存在する場
合にはこれら文字列に対応するラベルのみ残し、当該横
一列に並んでいないラベルについては削除することを行
う。
In step ST15, of the labels in the window set by the operator, only the labels arranged in a horizontal example are left, and the other labels are deleted. That is,
In this step ST15, if there is an image composed of, for example, a plurality of characters arranged in a horizontal line in the window, only the labels corresponding to these character strings are left, and labels not arranged in the horizontal line are deleted. Do that.

【0077】ステップST16では、上記ステップST
15にて残った上記横一列に並んだ各ラベルの最外形
を、上記オペレータが設定したウィンドウに代えて新た
に自動設定したウィンドウすなわちオフラインティーチ
ング用ウィンドウとして、記憶装置18に記憶する。
At step ST16, at step ST16
The outermost shape of each of the labels arranged in the horizontal line remaining at 15 is stored in the storage device 18 as a window automatically set, that is, a window for offline teaching, instead of the window set by the operator.

【0078】ステップST17では、上記自動設定され
たオフラインティーチング用ウィンドウをモニタ画面上
に表示する。
At step ST17, the automatically set off-line teaching window is displayed on the monitor screen.

【0079】一方、ステップST18では、上記オペレ
ータが設定したウィンドウをオフラインティーチング用
ウィンドウとして記憶し、次のステップST19では当
該ウィンドウをモニタ画面上に表示する。すなわち、上
記ステップST14にてノーと判断されるのは、上記オ
フラインティーチング用ウィンドウにて正しく文字列等
を囲んでいない場合であり、このときはステップST1
8及びステップST19に示すようにオペレータが設定
したままのウィンドウをそのまま記憶及び表示する。
On the other hand, in step ST18, the window set by the operator is stored as an off-line teaching window, and in the next step ST19, the window is displayed on the monitor screen. That is, the determination of NO in step ST14 is a case where a character string or the like is not correctly enclosed in the offline teaching window.
As shown in step 8 and step ST19, the window set by the operator is stored and displayed as it is.

【0080】上述したように、上記図10のフローチャ
ートの処理では、オペレータが設定したウィンドウ内の
文字列等のマークを検出し、これら検出した文字列等の
マークに基づいて最適なオフラインティーチング用ウィ
ンドウを自動的に設定し直し、当該自動設定したオフラ
インティーチング用ウィンドウを記憶すると共に、当該
自動設定したウィンドウをモニタ画面上に表示するよう
なことを行っている。
As described above, in the processing of the flow chart of FIG. 10, a mark such as a character string in the window set by the operator is detected, and an optimal offline teaching window is determined based on the detected mark such as the character string. Is automatically set again, the automatically set offline teaching window is stored, and the automatically set window is displayed on the monitor screen.

【0081】なお、本実施例の説明では、文字等が横一
列に並んでいる場合の例を挙げているが、文字等が例え
ば縦に並んでいる場合でも上述同様にウィンドウの設定
等を行うことが可能である。すなわち、本実施例装置で
は、オフラインティーチング時に横に長いウィンドウを
設定した場合は文字等が横に並んでいるものと解釈し、
縦に長いウィンドウを設定した場合は文字等が縦に並ん
でいるものと解釈する。本実施例装置において、縦に長
いウィンドウを設定した場合の動作は、横に長いウィン
ドウを設定した場合に準ずる。
In the description of this embodiment, an example in which characters and the like are arranged in a horizontal line is given. However, even when characters and the like are arranged in a vertical direction, window setting and the like are performed in the same manner as described above. It is possible. That is, in the present embodiment, when a long window is set at the time of offline teaching, it is interpreted that characters and the like are arranged side by side,
When a vertically long window is set, it is interpreted that characters and the like are arranged vertically. In the present embodiment, the operation when a vertically long window is set is equivalent to the operation when a horizontally long window is set.

【0082】次に、前記ティーチング工程のうちの前記
自動的に行われるオンラインティーチング工程、すなわ
ち前記基準印字パターンと基準第1ピンパターンを記憶
するマスタ登録は、具体的には図11及び図12に示す
フローチャートのような手順で行われる。なお、図11
には基準印字パターンを記憶する際の流れを示す、図1
2には基準第1ピンパターンを記憶する際の流れを示
す。
Next, the online teaching process, which is automatically performed in the teaching process, that is, the master registration for storing the reference print pattern and the reference first pin pattern is specifically described in FIGS. 11 and 12. This is performed according to a procedure as shown in the flowchart. Note that FIG.
FIG. 1 shows a flow of storing a reference print pattern.
2 shows a flow when the reference first pin pattern is stored.

【0083】当該オンラインティーチング工程では、前
述したように、当該マーク検査装置に供給される最初の
ICパッケージ14を良品であると仮定し、前記オフラ
インティーチング工程で記憶した上記オフラインティー
チング用ウィンドウから更に当該オンラインティーチン
グ用のウィンドウを生成し、このオンラインティーチン
グ用ウィンドウ内の印字マークの画像パターンを基準印
字パターンとして記憶し、同じく第1ピンマークの画像
パターンを基準第1ピンパターンとして記憶する。
In the online teaching process, as described above, it is assumed that the first IC package 14 supplied to the mark inspection device is a non-defective product, and the offline teaching window stored in the offline teaching process is used to further determine the IC package 14. A window for online teaching is generated, an image pattern of a print mark in the window for online teaching is stored as a reference print pattern, and an image pattern of the first pin mark is also stored as a reference first pin pattern.

【0084】先ず、基準印字パターンを登録する際のフ
ローチャートを示す図11において、ステップST20
では、前記オフラインティーチングにて設定されたオフ
ラインティーチング用ウィンドウよりも大きなウィンド
ウを設定する。例えば、上記オンフライティーチング用
ウィンドウの大きさよりも上下に各1.5倍、左右をさ
らに各上下幅を加えた幅だけ大きくしたウィンドウを前
記オンラインティーチング用ウィンドウとして設定す
る。
First, in FIG. 11, which shows a flowchart for registering the reference print pattern, step ST20
Then, a window larger than the window for offline teaching set in the offline teaching is set. For example, a window whose size is 1.5 times higher and lower than the size of the on-fly teaching window and whose left and right sides are further increased by a width obtained by adding up and down widths is set as the online teaching window.

【0085】ステップST21では、上記ステップST
20にて設定したオンラインティーチング用ウィンドウ
内の画像を構成する各画素を2値化し、得られた2値画
像中の各連結成分に個々のラベルを割り当てるラベリン
グ処理を施す。これにより、当該ウィンドウ内に例えば
文字等のマークがある場合には、当該文字等のマークを
構成する各線或いは面内の各画素に対してそれぞれ同じ
ラベルが割り当てられる。
At step ST21, at step ST21
Each pixel constituting the image in the online teaching window set in step 20 is binarized, and a labeling process for assigning an individual label to each connected component in the obtained binary image is performed. As a result, when there is a mark such as a character in the window, for example, the same label is assigned to each line or each pixel in the plane constituting the mark such as the character.

【0086】ステップST22では上記オンラインティ
ーチング用ウィンドウに接するラベルを除去する。ま
た、当該ステップST22では、画像信号に対して後述
するファイルリングを施すことよりノイズ成分の除去も
行う。
In step ST22, the label in contact with the online teaching window is removed. In step ST22, a noise component is also removed by performing a later-described file ring on the image signal.

【0087】ステップST23では、上記オンラインテ
ィーチング用ウィンドウ内で上記個々のラベル毎の分類
を行う。すなわち、当該ウィンドウ内でそれぞれ同じラ
ベルが割り当てられた各画素毎にまとめる分類を行う。
In step ST23, the individual labels are classified in the online teaching window. That is, classification is performed for each pixel to which the same label is assigned in the window.

【0088】次のステップST24では、上記オンライ
ンティーチング用ウィンドウ内にラベルが残っているか
否かの判断を行う。すなわち、当該ウィンドウ内にラベ
ルが残っていると言うことはこのウィンドウ内の画像に
文字等が存在することを表し、ラベルが残っていないと
言うことは当該ウィンドウ内の画像に文字等が存在しな
いことを表している。当該ステップST24において、
ラベルが残っていると判断した場合にはステップST2
5に進み、残っていないと判断した場合にはステップS
T27に進む。
In the next step ST24, it is determined whether or not a label remains in the online teaching window. That is, to say that a label remains in the window indicates that characters and the like exist in the image in this window, and to say that there is no label means that there is no character and the like in the image in the window. It represents that. In the step ST24,
If it is determined that the label remains, step ST2
Go to step 5, if it is determined that there is no remaining, step S
Proceed to T27.

【0089】ステップST25では、上記オンラインテ
ィーチング用ウィンドウ内の各ラベルのうち、横一例に
並んだラベルのみ残し、他のラベルは削除する。すなわ
ち、このステップST25では、当該ウィンドウ内に横
一列に並んだ例えば複数の文字等からなる画像が存在す
る場合にはこれら文字列に対応するラベルのみ残し、当
該横一列に並んでいないラベルについては削除すること
を行う。
In step ST25, of the labels in the online teaching window, only the labels arranged in a horizontal example are left, and the other labels are deleted. That is, in this step ST25, when there are images consisting of a plurality of characters arranged in a horizontal line in the window, only the labels corresponding to these character strings are left, and the labels not arranged in the horizontal line are left. Do delete.

【0090】ステップST26では、上記ステップST
25にて残ったラベルのそれぞれについて元の画像と座
標、及びサーチ範囲を記憶する。つまり、当該ステップ
ST26では、上記オンラインティーチング用ウィンド
ウ内に存在する文字等のマークの画像とその座標、すな
わち基準印字パターンを記憶すると共に、当該ウィンド
ウ内で上述したような文字等のマークをサーチする範
囲、すなわち実際のマーク検査時の検査領域を指定する
ための情報を、前記記憶装置18に記憶する。なお、上
記サーチ範囲すなわち検査領域とはマークを探す広さを
指定する範囲であり、通常は例えば30画素分とする
が、マークの文字等の位置が広い範囲にばらついている
場合には例えば40画素分とする。ただし、当該検査領
域(サーチ範囲)を大きくすると、検査時間が延びるこ
とになる。
In step ST26, the above-mentioned step ST
At 25, the original image and coordinates and the search range are stored for each of the remaining labels. In other words, in step ST26, the image of the mark such as the character existing in the online teaching window and its coordinates, that is, the reference print pattern is stored, and the mark such as the character described above is searched in the window. Information for specifying a range, that is, an inspection area at the time of an actual mark inspection is stored in the storage device 18. Note that the search range, that is, the inspection area is a range for designating the area for searching for a mark. Usually, the range is, for example, 30 pixels. Pixels. However, when the inspection area (search range) is enlarged, the inspection time is extended.

【0091】一方、ステップST27では、エラー処理
を行う。すなわち、上記ステップST24にてラベルが
残っていないと言うことは、上記ステップST20にて
設定した範囲内に文字等のマークが存在しないことを意
味し、当該オンラインティーチングにおける基準印字パ
ターンの記憶ができないので、エラー処理を行うように
する。
On the other hand, in step ST27, error processing is performed. That is, that no label remains in step ST24 means that a mark such as a character does not exist within the range set in step ST20, and the reference print pattern cannot be stored in the online teaching. Therefore, error processing is performed.

【0092】上述したように、上記図11のフローチャ
ートの処理では、先にオフラインティーチング工程にて
設定したオフラインティーチング用ウィンドウに対応す
る位置で且つそれよりも大きいオンラインティーチング
用ウィンドウを設定し、当該マーク検査装置に供給され
た最初のICパッケージ14の画像のうち、当該オンラ
インティーチング用ウィンドウ内の印字マークの各パタ
ーンを基準印字パターンとして登録すると共に、このオ
ンラインティーチング用ウィンドウから実際にマーク検
査を行う際の検査領域を設定登録することを行ってい
る。
As described above, in the processing of the flowchart of FIG. 11, the online teaching window is set at a position corresponding to the offline teaching window previously set in the offline teaching step and is larger than the position. In the first image of the IC package 14 supplied to the inspection device, each pattern of the print marks in the online teaching window is registered as a reference print pattern, and when the mark inspection is actually performed from the online teaching window. Is set and registered.

【0093】次に、基準第1ピンパターンを登録する際
のフローチャートを示す図12において、ステップST
70では、前記オフラインティーチングにて設定された
第1ピンマークに対応するオフラインティーチング用ウ
ィンドウを用い、当該ウィンドウ内の画像のテンプレー
トマッチング処理を行う。
Next, referring to FIG. 12 showing a flowchart for registering the reference first pin pattern, step ST
At 70, a template matching process of an image in the window is performed using an offline teaching window corresponding to the first pin mark set in the offline teaching.

【0094】ステップST71では、当該マッチングに
より得られた値(以下マッチングスコアと呼ぶ)と前記
第1ピンスコアとを比較し、上記マッチングスコアが第
1ピンスコアより大きいときにはステップST72に進
み、小さいときにはステップST74に進む。
In step ST71, the value obtained by the matching (hereinafter referred to as a matching score) is compared with the first pin score. If the matching score is larger than the first pin score, the process proceeds to step ST72; Proceed to step ST74.

【0095】上記ステップST71にて上記マッチング
スコアが第1ピンスコアより大きいと判断されたときに
は、上記ウィンドウ内の画像は第1ピンマークであると
判定でき、したがって、ステップST72では当該第1
ピンマークのパターンを基準第1ピンパターンとしてマ
スタ登録する。
If it is determined in step ST71 that the matching score is larger than the first pin score, it is possible to determine that the image in the window is the first pin mark.
The pattern of the pin mark is registered as a master first pin pattern.

【0096】次のステップST73では、当該第1ピン
パターンのマスタ登録が完了したことを確認するための
表示を例えばモニタ装置上に行う。
In the next step ST73, a display for confirming that the master registration of the first pin pattern has been completed is performed on, for example, a monitor device.

【0097】一方、上記ステップST71にて上記マッ
チングスコアが第1ピンスコアより小さいと判断したと
きに進むステップST74では、エラー処理を行う。す
なわち、上記ステップST71にて上記マッチングスコ
アが第1ピンスコアより小さいと判断したと言うこと
は、上記ステップST70にてマッチング処理したウィ
ンドウ内には第1ピンマークが存在しないことを意味
し、当該オンラインティーチングにおける基準第1ピン
パターンの記憶ができないので、エラー処理を行うよう
にする。
On the other hand, in step ST74, which is performed when it is determined in step ST71 that the matching score is smaller than the first pin score, error processing is performed. That is, determining that the matching score is smaller than the first pin score in step ST71 means that the first pin mark does not exist in the window subjected to the matching process in step ST70. Since the reference first pin pattern cannot be stored in online teaching, error processing is performed.

【0098】上述した図12のフローチャートに示すよ
うに、本実施例のマーク検査装置においては、前記オフ
ラインティーチングによって後のオンラインティーチン
グ時に基準第1ピンパターンの登録を行う際の検索位置
を予め設定しておくことにより、例えICの種類が変わ
ったとしても、第1ピンマークの位置が同じICパッケ
ージであれば、上記オンラインティーチング工程におい
てオペレータが介在しなくても基準第1ピンパターンの
ティーチングを自動的に行うことが可能となっている。
As shown in the flowchart of FIG. 12, in the mark inspection apparatus of the present embodiment, a search position for registering the reference first pin pattern at the time of online teaching later by the offline teaching is set in advance. By doing so, even if the type of IC changes, if the position of the first pin mark is the same in the IC package, the teaching of the reference first pin pattern can be automatically performed without an operator in the online teaching process. It is possible to perform it.

【0099】次に、上述したオフラインティーチング工
程及びオンラインティーチング工程の後に行われる前記
通常の検査工程は、以下の図13や図14に示すフロー
チャートのような手順にて行われる。なお、図13のフ
ローチャートには例えば文字等が一列に並んだ印字マー
ク全体を検査する際の流れを示し、図14のフローチャ
ートには一文字毎の印字マーク或いは第1ピンマークの
ように一つのマークだけを検査する際の流れを示してい
る。
Next, the above-described ordinary inspection process performed after the above-described offline teaching process and online teaching process is performed according to a procedure as shown in the following flowcharts of FIGS. Note that the flowchart of FIG. 13 shows a flow for inspecting the entire print mark in which characters and the like are arranged in a line, for example, and the flowchart of FIG. 14 shows one mark such as a print mark for each character or a first pin mark. Only shows the flow when inspecting.

【0100】先ず、図13のフローチャートにおいて、
ステップST30では、前記図1のテープ状収納容器で
あるエンボステープ13上に収納された検査対象のIC
パッケージ14をビデオカメラ12て撮影した画像か
ら、前述のオンラインティーチング工程にて設定した検
査領域内の一列に並んだ印字マーク、例えば文字列のう
ち、両端の文字をサーチする。なお、ここに言うサーチ
とは、基準画像内でのテンプレートの位置と同じ位置を
基準として、予め設定された大きさの範囲の全画素位置
で類似度判定を行い、最も類似度の高い領域を対応領域
として選ぶことであり、本実施例のマーク検査装置にお
いて当該サーチを行う場合には、上記検査領域内で上記
記憶した基準印字パターンと類似したパターンをテンプ
レートマッチングにより探し出すことが行われる。
First, in the flowchart of FIG.
In step ST30, the IC to be inspected stored on the embossed tape 13, which is the tape-shaped storage container of FIG.
From the image obtained by photographing the package 14 with the video camera 12, the print marks arranged in a line in the inspection area set in the above-described online teaching step, for example, the characters at both ends in the character string are searched. Note that the search referred to here is based on the same position as the position of the template in the reference image, and the similarity determination is performed at all pixel positions within a predetermined size range, and the region having the highest similarity is determined. When the search is performed in the mark inspection apparatus of the present embodiment, a pattern similar to the stored reference print pattern is searched for in the inspection area by template matching.

【0101】ステップST31では、上記サーチにより
見つけだした文字列の位置及び角度から前述した傾き及
び位置の補正処理としてアフィン変換を行う。
In step ST31, affine transformation is performed as the above-described inclination and position correction processing from the position and angle of the character string found by the search.

【0102】ステップST32では、上記文字列内の1
文字毎に検査を行う。すなわち当該ステップST32で
は、当該文字列内の各文字毎に、前記基準印字パターン
の中で一致するパターンがあるかどうかを前記テンプレ
ートマッチング処理により探し出す検査を行う。
At step ST32, 1 in the character string
Inspect for each character. That is, in the step ST32, for each character in the character string, an inspection is performed to search for a matching pattern in the reference print pattern by the template matching process.

【0103】ステップST33では、上記文字列内の全
ての文字について上記ステップST32の検査が終了し
たか否かの判断を行い、終了していないときにはステッ
プST32に処理に戻り、終了したときにはステップS
T34に進む。
In step ST33, it is determined whether or not the inspection in step ST32 has been completed for all the characters in the character string. If not, the process returns to step ST32;
Proceed to T34.

【0104】ステップST34では、上記文字列内の全
ての文字について上記テンプレートマッチング処理を行
った結果、当該文字列内の全ての文字のパターンと前記
基準印字パターン内のそれぞれ対応するパターンとが一
致したか否かを判断する。当該ステップST34の判断
にて一致していないと判断したときには、ステップST
36に進み、ここで当該ICパッケージは不良、すなわ
ち異なる種類のICであると判定する。一方、上記ステ
ップST34にて一致すると判断したときには、ステッ
プST35に進み、ここで当該ICパッケージは良品、
すなわち正しいICであると判定する。
In step ST34, as a result of performing the template matching processing on all the characters in the character string, the pattern of all the characters in the character string matches the corresponding pattern in the reference print pattern. It is determined whether or not. If it is determined in step ST34 that they do not match, the process proceeds to step ST34.
Proceeding to 36, the IC package is determined to be defective, that is, a different type of IC. On the other hand, if it is determined in step ST34 that they match, the process proceeds to step ST35, where the IC package is a non-defective product.
That is, it is determined that the IC is correct.

【0105】次に、図14のフローチャートを用いて一
文字毎の印字マーク或いは第1ピンマークのように一つ
のマークだけを検査する処理の流れを説明する。なお、
この図14のフローチャートは、上記第1ピンマークの
ように一つのマークを検査する場合と、上記図13のフ
ローチャートのステップST32における1文字の検査
の何れにも適用できるものである。この図14の例で
は、印字マークのうちの1文字の検査を行う場合の流れ
を示している。なお、第1ピンマークの検査の場合に
は、図14のフローチャート中の1文字とある所を第1
ピンマークと言い換えれば同様の処理として検査可能で
ある。
Next, the flow of processing for inspecting only one mark such as a print mark for each character or a first pin mark will be described with reference to the flowchart of FIG. In addition,
The flowchart of FIG. 14 can be applied to both the case of inspecting one mark such as the first pin mark and the inspection of one character in step ST32 of the flowchart of FIG. The example of FIG. 14 shows a flow in the case of inspecting one character of a print mark. In the case of inspecting the first pin mark, one character in the flowchart of FIG.
In other words, it can be inspected as a similar process in other words.

【0106】この図14において、ステップST40で
は前記ICパッケージ上に印字された1文字のパターン
と、前記基準印字パターンとを比較する前記テンプレー
トマッチング処理を行う。
In FIG. 14, in step ST40, the template matching process for comparing the one-character pattern printed on the IC package with the reference print pattern is performed.

【0107】ステップST41では、上記テンプレート
マッチング処理におけるマッチングの度合いの値が、前
述した良品スコア未満か否かを判断する。当該マッチン
グの度合いの値が上記良品スコア未満であると判断した
ときにはステップST42に進み、良品スコア未満でな
いと判断したとき、すなわち良品スコア以上であると判
断したときにはステップST48に進む。当該ステップ
ST48では当該1文字のパターンは基準印字パターン
と一致していると判定する。
In step ST41, it is determined whether or not the value of the degree of matching in the template matching process is less than the above-mentioned good item score. When it is determined that the value of the degree of matching is less than the non-defective score, the process proceeds to step ST42, and when it is determined that the value is not less than the non-defective score, that is, when it is determined that the value is not less than the non-defective score, the process proceeds to step ST48. In step ST48, it is determined that the pattern of the one character matches the reference print pattern.

【0108】上記ステップST42では、上記テンプレ
ートマッチング処理におけるマッチングの度合いの値
が、前述した不良品スコア未満か否かを判断する。ここ
で、当該マッチングの度合いの値が上記不良品スコア未
満でないと判断したとき、すなわち不良品スコア以上で
あると判断したときにはステップST43に進み、不良
品スコア未満であると判断したときにはステップST4
7に進む。当該ステップST47では当該1文字のパタ
ーンは基準印字パターン内と一致していないと判定す
る。
In step ST42, it is determined whether or not the value of the degree of matching in the template matching process is less than the above-mentioned defective product score. Here, when it is determined that the value of the degree of matching is not less than the defective product score, that is, when it is determined that the value is equal to or more than the defective product score, the process proceeds to step ST43.
Go to 7. In step ST47, it is determined that the pattern of the one character does not match the reference print pattern.

【0109】上記ステップST43では、上記ステップ
ST41及びステップST42の判断の結果、上記マッ
チングの度合いの値が前記良品スコア未満で且つ不良品
スコア以上となっており、当該文字の判定が難しいの
で、この文字を詳細に検査するために当該文字を前述の
ように分割して各分割領域毎のマッチングによる判定処
理を行う。本実施例のマーク検査装置では、当該分割時
の分割数を図15に示すように水平及び垂直方向にそれ
ぞれ3分割して全体として9分割となるように分割して
いる。このように9分割することで、例えば文字を構成
する線が分割領域に跨ることが少なくなり、検査の信頼
正が向上する。したがって、当該ステップST43の処
理では、上記9分割した各分割領域B1〜B9のそれぞれ
についてテンプレートマッチング処理を行う。なお、図
15には、1文字として例えば数字の8を用いた例を示
している。
In the step ST43, as a result of the judgments in the steps ST41 and ST42, the value of the degree of matching is less than the good score and not less than the bad score, and it is difficult to judge the character. In order to inspect a character in detail, the character is divided as described above, and a determination process is performed by matching for each divided region. In the mark inspection apparatus of this embodiment, the number of divisions at the time of division is divided into three in the horizontal and vertical directions as shown in FIG. By dividing into nine parts in this manner, for example, lines constituting a character are less likely to straddle the divided area, and the reliability of the inspection is improved. Therefore, in the processing of step ST43 performs the template matching process for each of the divided regions B 1 .about.B 9 that the 9 divided. FIG. 15 shows an example in which, for example, the numeral 8 is used as one character.

【0110】次のステップST44では、上記各分割領
域B1〜B9のマッチング処理により得られた各値が、前
記中間スコアすなわち分割スコア以上であるか否かの判
断を行う。これら各分割領域B1〜B9におけるマッチン
グの度合いの値が、上記分割スコア以上でないと判断し
たとき、すなわち分割スコア未満であると判断したとき
にはステップST46に進み、分割スコア以上であると
判断したときにはステップST45に進む。上記ステッ
プST46では当該1文字のパターンは基準印字パター
ンと一致していないと判定し、上記ステップST45で
は当該1文字のパターンは基準印字パターンと一致して
いると判定する。
In the next step ST44, it is determined whether or not each value obtained by the matching processing of the divided areas B 1 to B 9 is equal to or larger than the above-mentioned intermediate score, that is, the divided score. When it is determined that the value of the degree of matching in each of the divided areas B 1 to B 9 is not equal to or more than the above-described division score, that is, when it is determined that the value is less than the division score, the process proceeds to step ST46, and it is determined that the value is equal to or more than the division score. Sometimes, the process proceeds to step ST45. In step ST46, it is determined that the one-character pattern does not match the reference print pattern. In step ST45, it is determined that the one-character pattern matches the reference print pattern.

【0111】次に、上述したような通常の検査工程にて
検査を行った結果、NGすなわち不良と判定されたとき
には前記リトライ検査が行われ、当該リトライ検査工程
は具体的には図16のフローチャートに示すような流れ
で行われる。
Next, as a result of the inspection performed in the normal inspection process as described above, when it is determined that the inspection is NG, that is, a defect, the retry inspection is performed. The flow is performed as shown in FIG.

【0112】この図16において、ステップST50
は、前記通常の検査工程である。次に、ステップST5
1において良否の判定を行う。ここで、上記ステップS
T50での通常の検査工程の結果が良と判定されたとき
にはステップST59に進み、不良と判定されたときに
はステップST52に進む。上記ステップST59では
当該ICパッケージは良品であると判定する。
In FIG. 16, step ST50 is performed.
Is the normal inspection step. Next, step ST5
In step 1, pass / fail judgment is made. Here, the above step S
When it is determined that the result of the normal inspection process at T50 is good, the process proceeds to step ST59, and when it is determined that the result is bad, the process proceeds to step ST52. In step ST59, the IC package is determined to be non-defective.

【0113】上記ステップST51にて不良と判定され
たときに進むステップST52では、検査対象となって
いる印字マークすなわち例えば文字の線の太さに対応し
た検査を行う。なお、上記ICパッケージ14上に形成
された印字マークには、レーザ光線によって刻印された
マークものとインクにより捺印されたマークの2種類が
ある。上記レーザ光線によって刻印された印字マークは
文字等の太さは常に一定であるが、上記インク捺印によ
る印字マークは文字等の太さは変化し易い(例えば欠け
たり、滲んだりする)。したがって、特に、上記インク
捺印による印字マークの場合は、文字等の太さの変化や
滲み、欠け等に対応した検査が必要となる。このため、
当該インク捺印による印字マークのリトライ検査の際に
は、文字の太さを変えて再検査するようにしている。
In step ST52, which proceeds when it is determined to be defective in step ST51, an inspection corresponding to the print mark to be inspected, that is, for example, the thickness of a character line is performed. There are two types of print marks formed on the IC package 14, a mark imprinted with a laser beam and a mark imprinted with ink. The thickness of characters or the like is always constant in the print mark engraved by the laser beam, but the thickness of the characters or the like in the print mark formed by the ink stamp is easily changed (for example, chipped or blurred). Therefore, in particular, in the case of a print mark formed by the above-described ink stamping, an inspection corresponding to a change in thickness of a character or the like, bleeding, chipping, or the like is required. For this reason,
At the time of retry inspection of the print mark by the ink stamping, the character is changed in thickness and re-inspected.

【0114】次のステップST52では、良否を再度判
定する。ここで、上記ステップST52での検査の結果
が良と判定されたときにはステップST58に進み、不
良と判定されたときにはステップST54に進む。上記
ステップST58では当該ICパッケージは良品である
と判定する。
In the next step ST52, pass / fail is determined again. Here, when the result of the inspection in step ST52 is determined to be good, the process proceeds to step ST58, and when it is determined to be bad, the process proceeds to step ST54. In step ST58, the IC package is determined to be non-defective.

【0115】上記ステップST53にて不良と判定され
たときに進むステップST54では、検査対象となって
る印字マークすなわち文字の印字位置ズレに対応した検
査を行う。具体的に言うと、当該ステップST54で
は、印字マークを探索する範囲を広く設定して検査を行
う。
In step ST54, which proceeds when it is determined that there is a defect in step ST53, an inspection corresponding to a print position shift of a print mark to be inspected, that is, a character is performed. Specifically, in step ST54, the inspection is performed by setting a wide search range for the print mark.

【0116】次のステップST55では、良否を再度判
定する。ここで、上記ステップST54での検査の結果
が良と判定されたときにはステップST57に進み、不
良と判定されたときにはステップST56に進む。上記
ステップST57では当該ICパッケージは良品である
と判定し、ステップST56では当該ICパッケージは
不良品であると判定する。
In the next step ST55, pass / fail is determined again. Here, when the result of the inspection in step ST54 is determined to be good, the process proceeds to step ST57, and when it is determined to be defective, the process proceeds to step ST56. In step ST57, the IC package is determined to be non-defective, and in step ST56, the IC package is determined to be defective.

【0117】なお、前記通常の検査工程では、1文字に
対する検査範囲が30画素×30画素でサーチサイズは
変更可能であり、文字線幅の変化に対しては対応できな
いのに対して、上記リトライ検査工程では、1文字に対
する検査範囲が40画素×40画素の固定サイズであ
り、文字線幅の変化に対しては基準印字パターンの文字
の線幅を太く或いは細くして再検査する。このため、上
記リトライ検査工程では、その処理時間が前記通常の検
査工程の例えば5倍程度となる。
In the normal inspection process, the inspection range for one character is 30 pixels × 30 pixels, the search size can be changed, and the change in the character line width cannot be dealt with. In the inspection process, the inspection range for one character is a fixed size of 40 pixels × 40 pixels, and the character line width of the reference print pattern is increased or decreased for the change of the character line width, and the inspection is performed again. Therefore, in the retry inspection process, the processing time is, for example, about five times as long as that in the normal inspection process.

【0118】また、リトライ検査は、前記オンラインテ
ィーチング工程でも行うことができる。ただし、この場
合のリトライ検査とは、上記ステップST50での通常
検査後のステップST51にて不良と判定された場合
に、ステップST52のマークの線の太さに対応した検
査とステップST54の印字位置ズレに対応した検査を
行い、これら検査により得られた印字マークを前記基準
印字マークとする処理となる。
The retry inspection can also be performed in the online teaching process. However, the retry inspection in this case refers to the inspection corresponding to the thickness of the mark line in step ST52 and the printing position in step ST54 when it is determined in step ST51 that it is defective after the normal inspection in step ST50. Inspection corresponding to the deviation is performed, and a print mark obtained by these inspections is used as the reference print mark.

【0119】ところで、上述したようなICパッケージ
14上の印字マークや第1ピンマークの検査を行う場
合、当該ICパッケージ14上の照明条件は極めて重要
である。すなわち、ビデオカメラ12にてICパッケー
ジ14上を撮影した画像に基づいて上記マーク検査を行
う場合、上記ICパッケージ14上に形成された印字マ
ーク及び第1ピンマークの画像とその他のモールド樹脂
表面部分(以下非マーク部分と呼ぶ)の画像との間のコ
ントラストが高くなければ、当該印字マーク及び第1ピ
ンマークとその他の非マーク部分との差を検知すること
ができなくなり、当該マーク検査の信頼性が悪化するこ
とになる。このため、前記照明装置19は、ビデオカメ
ラ12にて撮影した上記ICパッケージ14上の印字マ
ーク及び第1ピンマークの画像とその他の非マーク部分
の画像との間のコントラストが高くなるような照明状態
を実現するものでなければならない。
Incidentally, when inspecting the print mark and the first pin mark on the IC package 14 as described above, the illumination conditions on the IC package 14 are extremely important. That is, when performing the mark inspection based on an image photographed on the IC package 14 by the video camera 12, the image of the print mark and the first pin mark formed on the IC package 14 and other mold resin surface portions If the contrast between the image (hereinafter referred to as a non-mark portion) and the non-mark portion is not high, the difference between the print mark and the first pin mark and the other non-mark portions cannot be detected, and the reliability of the mark inspection can be reduced. Sex will be worse. Therefore, the illuminating device 19 increases the contrast between the image of the print mark and the first pin mark on the IC package 14 captured by the video camera 12 and the image of the other non-mark portions. It must realize the state.

【0120】そこで、本実施例のマーク検査装置の照明
装置19では、上記ICパッケージ14に対してできる
だけ近い位置から照明すると共に、当該ICパッケージ
14の上面に対して平行な方向から照明することで、上
記高コントラストな画像が得られる照明状態を実現して
いる。すなわち、当該照明装置19では、照明光を発生
する発光部の位置を、上記ICパッケージ14の上面に
対して近い位置で且つ低い位置に配置し、横方向から照
明できるようにすることで、上記高コントラストな画像
が得られる照明状態を実現している。
Therefore, the illumination device 19 of the mark inspection apparatus of the present embodiment illuminates the IC package 14 from a position as close as possible and illuminates the IC package 14 from a direction parallel to the upper surface thereof. Thus, an illumination state in which a high-contrast image is obtained is realized. That is, in the lighting device 19, the position of the light emitting unit that generates the illumination light is arranged at a position close to the upper surface of the IC package 14 and at a low position so that illumination can be performed from the lateral direction. An illumination state in which a high-contrast image can be obtained is realized.

【0121】このように、上記ICパッケージ14の上
面に対して上記発光部の位置を低い位置にすると共に当
該ICパッケージ14の上面への照明角度を小さくする
のは、逆にICパッケージ14の上面に対して発光部の
配置位置を高くして照明角度を大きくすると、当該IC
パッケージ14上の印字マーク及び第1ピンマークを撮
影した画像のコントラストが下がってしまうためであ
る。特に、前記第1ピンマークのように、マーク部分が
鏡面でかつ窪んでいるようなマークでは、上記ICパッ
ケージ14上への照明角度を大きくすると、コントラス
トが低くなって当該第1ピンマーク部分の画像と他の部
分との区別がつけ難くなるため、上記照明角度を小さく
して、マーク検査の安定化を図るようにする。また、上
記ICパッケージ14上に形成された印字マークには、
前述したようにレーザ光線によって刻印されたマークと
インク捺印によるマークの2種類がある。上記インク捺
印による印字マークの濃さは多少変化するが濃いもので
あり、したがって、当該インク捺印による印字マークの
場合は上記発光部の配置位置が高くても低くても、画像
の見え方には余り変化がない。これに対して、上記レー
ザ光線によって刻印された印字マークの濃さは上記イン
ク捺印による印字マークよりも薄くなる。したがって、
ICパッケージ14上の印字マークが上記レーザ光線に
て刻印された印字マークである場合には、上記発光部の
配置位置を当該印字マークにできるだけ近づけるように
し、マーク検査の安定化を図るようにする。
As described above, lowering the position of the light emitting portion with respect to the upper surface of the IC package 14 and reducing the illumination angle on the upper surface of the IC package 14 are different from those of the upper surface of the IC package 14. When the illumination angle is increased by increasing the position of the light emitting unit with respect to
This is because the contrast of the image obtained by photographing the print mark and the first pin mark on the package 14 decreases. In particular, in the case of a mark such as the first pin mark in which the mark portion is specular and depressed, when the illumination angle on the IC package 14 is increased, the contrast is lowered and the first pin mark portion is reduced. Since it is difficult to distinguish the image from other parts, the illumination angle is reduced to stabilize the mark inspection. The print marks formed on the IC package 14 include:
As described above, there are two types of marks: a mark imprinted by a laser beam and a mark imprinted by ink. The density of the print mark formed by the above-described ink stamping is slightly changed but is dark. There is not much change. On the other hand, the density of the print mark imprinted by the laser beam becomes thinner than the print mark formed by the ink printing. Therefore,
When the print mark on the IC package 14 is a print mark engraved with the laser beam, the position of the light emitting unit is set as close as possible to the print mark to stabilize the mark inspection. .

【0122】上述したように、ICパッケージ14を照
明する照明装置19において、照明状態の善し悪しはマ
ーク検査の信頼性に大きく影響する。
As described above, in the illumination device 19 for illuminating the IC package 14, the quality of the illumination condition greatly affects the reliability of the mark inspection.

【0123】このような照明状態を実現する照明装置1
9は、図17に示すような構造となされる。
The illumination device 1 for realizing such an illumination state
9 has a structure as shown in FIG.

【0124】この図17に示す照明装置19は、上方側
及び下方側が開放された中空の四角い箱状の筐体51
と、当該四角い箱状の筐体51の4つの面の各内面側に
設けられる複数の発光部50とを有してなるものであ
り、さらに当該照明装置19自体が上下方向に移動可能
になされているものである。なお、当該照明装置19を
上下方向に移動するための機構についての図示は省略し
ているが、当該機構は、例えば上記筐体51を固定して
支持する支持部と、長手側が上記上下方向となるように
設置されたレールと、当該レール上で上記支持部を上下
方向に移動させた後、その位置で上記支持部を固定する
固定機構とを少なくとも有するものである。また、上記
レール上で上記支持部を上下方向に移動させるための駆
動機構を設けることも可能であり、当該駆動機構を前記
ICパッケージの照明状態に応じて制御することで、照
明装置19の上下方向の配置位置を自動変更できるよう
にすることも可能である。
The lighting device 19 shown in FIG. 17 has a hollow rectangular box-shaped casing 51 whose upper and lower sides are open.
And a plurality of light-emitting units 50 provided on the respective inner surfaces of the four surfaces of the rectangular box-shaped housing 51, and the illumination device 19 itself can be moved in the vertical direction. Is what it is. Although illustration of a mechanism for moving the lighting device 19 in the vertical direction is omitted, the mechanism includes, for example, a support portion for fixing and supporting the housing 51 and a longitudinal side having the vertical direction. And a fixing mechanism that moves the support unit up and down on the rail and then fixes the support unit at that position. It is also possible to provide a drive mechanism for moving the support section in the vertical direction on the rail, and to control the drive mechanism in accordance with the illumination state of the IC package, so that the illumination device 19 can be moved up and down. It is also possible to automatically change the arrangement position in the direction.

【0125】ここで、上記各発光部50はそれぞれが例
えば10個のLED(発光ダイオード)素子を一直線上
に配設したLEDアレイユニットからなるものである。
上記筐体51の上記4つの面の各内面には、それぞれ3
個の上記LEDアレイユニットが配置され、したがっ
て、当該照明装置19では上記4つの面で合計12個の
LEDアレイユニットが使用されている。当該筐体51
の上記4つの面にそれぞれ対応する3個のLEDアレイ
ユニットは、これらLEDアレイユニットの各長辺が各
々平行になされると共に長辺端部が揃えられた3列平行
状態にて配置され、上記エンボステープ13上側の位置
すなわち上記筐体51の下方部寄りの位置に配置されて
いる。なお、本実施例のマーク検査装置の照明装置19
では、上記ICパッケージ14の表面から約15mmの
高さになるように、上記筐体51の各内面に上記LED
アレイユニット群を配置する。
Here, each of the light emitting sections 50 is formed of an LED array unit in which, for example, ten LED (light emitting diode) elements are arranged in a straight line.
Each inner surface of the four surfaces of the housing 51 has 3
Therefore, a total of 12 LED array units are used on the four surfaces in the lighting device 19. The housing 51
The three LED array units respectively corresponding to the above four surfaces are arranged in a three-parallel state in which the long sides of these LED array units are made parallel and the long side ends are aligned. It is arranged at a position above the embossed tape 13, that is, at a position near the lower part of the housing 51. Note that the illumination device 19 of the mark inspection device of the present embodiment.
Then, the inner surface of the housing 51 is provided with the LED so as to have a height of about 15 mm from the surface of the IC package 14.
Arrange the array unit group.

【0126】また、上記発光部50のLEDアレイユニ
ットは、それぞれユニット毎に個別に明るさを調整でき
るものである。本実施例のマーク検査装置では、ICパ
ッケージ14のマーク検査の信頼性が照明装置19の照
明状態に大きく影響するため、前記ティーチングの前に
は上記各LEDアレイユニットの調整を行うようにす
る。当該調整の際には、ICパッケージ14の非マーク
部分と印字マーク及び第1ピンマークとのコントラスト
が充分に高くなるような明るさ(光量)調整と、ICパ
ッケージ14での照明ムラをなくすような発光調整とを
行う。
Further, the brightness of the LED array units of the light emitting section 50 can be individually adjusted for each unit. In the mark inspection apparatus of the present embodiment, since the reliability of the mark inspection of the IC package 14 greatly affects the illumination state of the illumination device 19, each of the LED array units is adjusted before the teaching. In the adjustment, the brightness (light amount) is adjusted so that the contrast between the non-mark portion of the IC package 14 and the print mark and the first pin mark is sufficiently high, and the illumination unevenness in the IC package 14 is eliminated. Light emission adjustment.

【0127】なお、各LEDアレイユニット(発光部5
0)による上記ICパッケージ14上への照明角度は、
前述したようなに小さい角度にすることが望ましい。と
ころが、図17に示すように、上記筐体51の各内面に
設けられる各LEDアレイユニットは、当該筐体51の
上下方向に前記3列平行に配置されている。このため、
これら3列のLEDアレイユニットのうち、ICパッケ
ージ14に最も近くなる位置のLEDアレイユニットと
最も遠くなる位置のLEDアレイユニット、さらに中間
位置のLEDアレイユニットとでは、それぞれ明るさを
別々に調整することが望ましい。上記照明装置19で
は、ICパッケージ14に最も近い位置のLEDアレイ
ユニットを最も明るくし、最も遠い位置のLEDアレイ
ユニットを最も暗くし、中間位置のLEDアレイユニッ
トを中間の明るさとするように調整することで、当該マ
ーク検査装置におけるマーク検査の信頼性の向上を図る
ようにしている。
Note that each LED array unit (light emitting unit 5
0), the illumination angle on the IC package 14 is
It is desirable that the angle be small as described above. However, as shown in FIG. 17, the LED array units provided on each inner surface of the housing 51 are arranged in parallel with the three rows in the up-down direction of the housing 51. For this reason,
Of the three rows of LED array units, the brightness is separately adjusted for the LED array unit closest to the IC package 14, the LED array unit farthest from the IC package 14, and the LED array unit at the intermediate position. It is desirable. In the lighting device 19, the LED array unit closest to the IC package 14 is adjusted to be the brightest, the LED array unit located farthest to the darkest, and the LED array unit at the intermediate position is adjusted to have the intermediate brightness. Thus, the reliability of the mark inspection in the mark inspection apparatus is improved.

【0128】ここで、上述したような各LEDアレイユ
ニットの明るさの調整や当該調整した明るさでマーク検
査を良好に行えるかどうかなどの確認は、例えば、前記
ホストコンピュータ17がモニタ画面上にメニュー項目
として表示する複数の検査項目設定用メニューのうちの
一つである光量調整メニュー上で行われ、当該光量調整
は例えば前記ティーチングの前に行われるものである。
Here, the adjustment of the brightness of each LED array unit and the confirmation of whether or not the mark inspection can be performed satisfactorily with the adjusted brightness as described above can be performed, for example, by the host computer 17 displaying on the monitor screen. The adjustment is performed on a light amount adjustment menu which is one of a plurality of inspection item setting menus displayed as menu items, and the light amount adjustment is performed, for example, before the teaching.

【0129】すなわち、前記ホストコンピュータ17
は、前記ティーチングの前にはマーク検査装置の初期設
定のために上記モニタ画面上に複数の検査項目設定用メ
ニューを表示させており、このとき、前記オペレータが
当該モニタ画面を見ながら前記操作盤16を操作して上
記光量調整メニューを選択すると、当該マーク検査装置
は光量調整モードに移行する。
That is, the host computer 17
Before the teaching, a plurality of inspection item setting menus are displayed on the monitor screen for the initial setting of the mark inspection apparatus. At this time, the operator views the operation panel while watching the monitor screen. When the light amount adjustment menu is selected by operating the button 16, the mark inspection apparatus shifts to a light amount adjustment mode.

【0130】当該光量調整モードに移行したマーク検査
装置のホストコンピュータ17は、モニタ画面上にIC
パッケージの画像を表示させると共に、当該ICパッケ
ージの画像上で例えば20画素×20画素の大きさの確
認枠を設定して、当該確認枠内の画像の濃淡値をモニタ
画面上に表示させる。なお、当該確認枠は、前記オフラ
インティーチング用ウィンドウとは別のウィンドウとし
て任意に設定したり、前記オフラインティーチング用ウ
ィンドウと同じウィンドウとして設定したりすることが
できる。
The host computer 17 of the mark inspection apparatus that has shifted to the light amount adjustment mode displays an IC on the monitor screen.
In addition to displaying the image of the package, a confirmation frame having a size of, for example, 20 pixels × 20 pixels is set on the image of the IC package, and the grayscale value of the image in the confirmation frame is displayed on the monitor screen. The confirmation frame can be arbitrarily set as a window different from the offline teaching window, or can be set as the same window as the offline teaching window.

【0131】このとき、実際にコントラストの確認を行
いたい画像部分の指定は、オペレータが前記操作盤16
を操作することにより行い、ホストコンピュータ17
は、当該オペレータによる操作盤16の操作に応じて上
記確認枠をモニタ画面上で移動させると共に、当該確認
枠内の画像の濃淡値を表示させる。
At this time, the operator designates an image portion whose contrast is actually to be checked by the operator using the operation panel 16.
By operating the host computer 17
Moves the confirmation frame on the monitor screen in response to the operation of the operation panel 16 by the operator, and displays the gray value of the image in the confirmation frame.

【0132】なお、実際に当該表示される値としては、
上記確認枠内のマーク部分の濃淡値の平均値、上記確認
枠内でマーク部分が占める割合、上記確認枠内でマーク
以外の非マーク部分の濃淡値の平均値、上記確認枠内で
非マーク部分が占める割合、上記マーク部分の濃淡値の
平均値と非マーク部分の濃淡値の平均値の差などがあ
る。当該マーク部分と非マーク分との濃淡値の平均値の
差が大きい程、コントラストが高く、マーク検査の信頼
性は向上する。したがって、当該マーク部分と非マーク
部分との濃淡値の平均値の差に基づいて、上記照明装置
19の光量調整を行うことになる。
Note that the actually displayed value is:
The average value of the gray value of the mark part in the above-mentioned confirmation frame, the ratio of the mark part in the above-mentioned confirmation frame, the average value of the gray value of the non-mark part other than the mark in the above-mentioned confirmation frame, and the non-mark in this confirmation frame There is a ratio of the portion occupied, a difference between the average value of the gray value of the marked portion and the average value of the gray value of the non-mark portion, and the like. The larger the difference between the average values of the gray values of the mark portion and the non-mark portion, the higher the contrast and the higher the reliability of the mark inspection. Therefore, the light amount of the illumination device 19 is adjusted based on the difference between the average values of the gray values of the marked portion and the non-marked portion.

【0133】上記コントラストがマーク検査に適してい
るかどうかの判断は、オペレータが上記濃淡値として表
示された数値を見て行う場合と、マーク検査装置自身が
予め基準値として設定されている基準濃淡値と上記実際
に測定した濃淡値とを比較して行う場合との何れか一方
を用いることができる。したがって、当該コントラスト
がマーク検査に適していないと判断されたときには、上
記ホストコンピュータ17が上記基準濃淡値と上記実際
の測定濃淡値との比較結果に基づいて前記照明装置19
の光量調整を行うか、或いは、オペレータが上記モニタ
画面に表示された濃淡値に基づいて前記操作盤16を操
作して前記照明装置19の光量調整を行うことになる。
なお、オペレータが操作盤16を操作して光量調整を行
う場合も、実際には上記ホストコンピュータ17が上記
操作盤16の操作量に応じて上記照明装置19の光量調
整を行う。
Whether the contrast is suitable for the mark inspection is determined when the operator looks at the numerical value displayed as the gray value, or when the mark inspection apparatus itself sets the reference gray value set in advance as the reference value. Either the case where the comparison is made with the actually measured density value can be used. Therefore, when it is determined that the contrast is not suitable for the mark inspection, the host computer 17 uses the illumination device 19 based on a comparison result between the reference gray value and the actual measured gray value.
Or the operator adjusts the light amount of the illumination device 19 by operating the operation panel 16 based on the gray value displayed on the monitor screen.
Note that, even when the operator operates the operation panel 16 to adjust the light amount, the host computer 17 actually adjusts the light amount of the illumination device 19 according to the operation amount of the operation panel 16.

【0134】ただし、オペレータが上記モニタ画面に表
示された濃淡値に基づいて前記照明装置19の光量調整
を行う場合も、ホストコンピュータ17は上記基準濃淡
値と実際の測定濃淡値との比較を行っており、当該ホス
トコンピュータ17は、上記比較の結果から上記照明装
置19の光量が少なくマーク検査に適していないと判断
したときにはその旨を、また、上記光量がマーク検査を
行う際の限界値であり、当該光量がもう少し大きくした
方が良いと判断したときにはその旨を、光量がマーク検
査に必要な量だけあると判断したときにはその旨を、さ
らに光量がマーク検査に充分な量であると判断したとき
にはその旨を、モニタ画面上に表示させることで、オペ
レータの光量判断の補助を行うようにする。なお、上記
照明装置19の光量が少なくマーク検査に適していない
と判断したときの表示例としては「BAD」のような文
字表示を行い、また、上記光量がマーク検査を行う際の
限界値であると判断したときの表示例としては「NOT
BAD」、上記光量がマーク検査に必要な量だけある
と判断したときの表示例としては「GOOD」、上記光
量がマーク検査に充分な量であると判断したときの表示
例としては「GREAT」のような文字表示を行う。し
たがって、オペレータは、モニタ画面上に例えば「BA
D」と表示された場合には上記照明装置19の光量をよ
り大きくするように調整しなければならないことを認識
でき、また例えば「NOT BAD」と表示された場合
には上記光量がもう少し大きくなるように調整しなけれ
ばならないことを認識でき、さらに例えば「GOOD」
や「GREAT」とされた場合には光量を調整する必要
がないことを認識できる。
However, when the operator adjusts the light amount of the illuminating device 19 based on the gray value displayed on the monitor screen, the host computer 17 also compares the reference gray value with the actual measured gray value. When the host computer 17 determines from the result of the comparison that the light amount of the illuminating device 19 is small and is not suitable for the mark inspection, the host computer 17 indicates so, and the host computer 17 determines that the light amount is a limit value at the time of performing the mark inspection. Yes, when it is judged that it is better to increase the light amount a little more, it is judged that the light amount is the amount necessary for the mark inspection, and it is judged that the light amount is sufficient for the mark inspection. When this is done, the fact is displayed on a monitor screen to assist the operator in determining the amount of light. In addition, as a display example when it is determined that the light amount of the lighting device 19 is small and not suitable for the mark inspection, a character display such as “BAD” is displayed, and the light amount is a limit value at the time of performing the mark inspection. The display example when it is determined that there is
BAD "," GOOD "is a display example when it is determined that the light amount is sufficient for the mark inspection, and" GREAT "is a display example when it is determined that the light amount is an amount sufficient for the mark inspection. Is displayed. Therefore, the operator displays, for example, “BA
When "D" is displayed, it can be recognized that the light amount of the illumination device 19 must be adjusted to be larger. For example, when "NOT BAD" is displayed, the light amount becomes slightly larger. Can be recognized as having to be adjusted, for example, "GOOD"
Or "GREAT", it can be recognized that there is no need to adjust the light amount.

【0135】一方、前記ICパッケージ14での照明ム
ラの発生原因としては、例えばLEDアレイユニットの
取り付け方が悪かったり、前記筐体51の4つの内面に
取り付けられた各LEDアレイユニットの明るさが当該
前記筐体51の4つの内面の上下,左右で対象でない場
合等が考えられる。上記照明ムラが発生すると、モニタ
画面上に表示されたICパッケージ画像は、左右又は上
下で明るさが変わってしまう。このような照明ムラが極
端に大きくなると、前記ティーチングやマスタ登録が失
敗することになる。特に、印字マークはICパッケージ
上で横方向に並んで配置されることになるため、当該印
字マークの検査は、画面の左右方向の照明ムラに強く影
響されることになる。
On the other hand, the cause of the uneven illumination in the IC package 14 may be, for example, poor mounting of the LED array unit or brightness of each LED array unit mounted on the four inner surfaces of the housing 51. It is conceivable that the four inner surfaces of the housing 51 are not targeted at the top, bottom, left and right. When the illumination unevenness occurs, the brightness of the IC package image displayed on the monitor screen changes between left and right or up and down. If the illumination unevenness becomes extremely large, the teaching and the master registration will fail. In particular, since the print marks are arranged side by side on the IC package, the inspection of the print marks is strongly affected by illumination unevenness in the horizontal direction of the screen.

【0136】本実施例のマーク検査装置では、このよう
な照明ムラの有無の確認と当該照明ムラに対応する光量
調整をも、前述同様にティーチング前の光量調整メニュ
ー上で行うようにしている。すなわち、当該照明ムラの
確認及びそのための光量調整の場合も、前記ホストコン
ピュータ17がモニタ画面上に表示する前記検査項目設
定用メニューのうちの光量調整メニュー上で行われる。
In the mark inspection apparatus of this embodiment, the confirmation of the presence or absence of such illumination unevenness and the adjustment of the light amount corresponding to the illumination unevenness are also performed on the light amount adjustment menu before teaching, as described above. That is, the illumination unevenness is confirmed and the light amount is adjusted on the light amount adjustment menu among the inspection item setting menus displayed on the monitor screen by the host computer 17.

【0137】すなわち本実施例のマーク検査装置では、
当該照明ムラの確認及び光量の調整を行う場合、モニタ
画面上にICパッケージの画像を表示させると共に、当
該ICパッケージ上の印字マークの画像のうち例えば左
右両端の印字マークを前記同様の確認枠で囲むように
し、これら左右両端の印字マーク部分の濃淡値と非マー
ク部分の濃淡値を求め、これらの値に基づいて左右両端
の照明ムラを確認すると共に、その確認結果に応じて光
量調整を行うようにする。
That is, in the mark inspection apparatus of this embodiment,
When checking the illumination unevenness and adjusting the light amount, an image of the IC package is displayed on the monitor screen, and among the images of the print marks on the IC package, for example, the print marks at the left and right ends are displayed in the same check frame as described above. The light and dark values of the print mark portion and the non-mark portion at these left and right ends are obtained so as to check the illumination unevenness at the left and right ends based on these values, and adjust the light amount according to the check result. To do.

【0138】より具体的に説明すると、上記左右方向の
照明ムラの確認を行う場合には、先ず例えば左端の印字
マークを上記確認枠にて囲んで当該確認枠内の印字マー
クの濃淡値の平均値と当該印字マーク以外の非マーク部
分の濃淡値の平均値とを求め、当該左端の印字マークと
非マーク部分との濃淡値の平均値の差を求める。次に、
右端の印字マークを上記確認枠にて囲んで当該確認枠内
の印字マークの濃淡値の平均値と当該印字マーク以外の
非マーク部分の濃淡値の平均値とを求め、当該右端の印
字マークと非マーク部分との濃淡値の平均値の差を求め
る。さらに、上記左端の印字マークを上記確認枠で囲ん
だときの非マーク部分の濃淡値の平均値と上記右端の印
字マークを上記確認枠で囲んだときの非マーク部分の濃
淡値の平均値との差を求める。
More specifically, in order to check the illumination unevenness in the left-right direction, first, for example, the leftmost print mark is surrounded by the check frame, and the average of the grayscale values of the print marks in the check frame is determined. The value and the average value of the gray values of the non-mark portions other than the print mark are obtained, and the difference between the average values of the gray values of the leftmost print mark and the non-mark portion is obtained. next,
Surround the right end print mark with the above confirmation frame, find the average value of the gray value of the print mark in the confirmation frame and the average value of the gray value of the non-mark part other than the print mark, and The difference between the average value of the gray value and the non-mark portion is determined. Furthermore, the average value of the gray value of the non-mark portion when the print mark on the left end is surrounded by the confirmation frame and the average value of the gray value of the non-mark portion when the print mark on the right end is surrounded by the check frame Find the difference between

【0139】このようにして求めた左右両端の濃淡値の
差から照明ムラの有無を確認し、光量の調整を行う。す
なわち、上記左端の印字マークと非マーク部分との濃淡
値の平均値の差が、マーク検査に必要なコントラストが
得られる許容値未満になっているときには、当該左端に
おける上記差の値が上記許容値以上となるように光量調
整を行い、また、上記右端の印字マークと非マーク部分
との濃淡値の平均値の差が上記許容値未満になっている
ときには、当該右端における上記差の値が上記許容値以
上となるように光量調整を行う。さらに、上記左端にお
ける上記非マーク部分の濃淡値の平均値と上記右端にお
ける上記非マーク部分の濃淡値の平均値との差が、照明
ムラとして許容できない非許容値より大きくなっている
ときには、これら左端と右端における上記非マーク部分
の濃淡値の平均値の差が上記非許容値以下となるように
光量調整を行う。
The presence or absence of illumination unevenness is confirmed from the difference between the grayscale values of the left and right ends thus obtained, and the light amount is adjusted. That is, when the difference between the average values of the grayscale values of the print mark at the left end and the non-mark portion is smaller than the allowable value for obtaining the contrast required for the mark inspection, the value of the difference at the left end is equal to the allowable value. The light amount is adjusted to be equal to or greater than the value, and when the difference between the average values of the gray values of the print mark and the non-mark portion at the right end is less than the allowable value, the value of the difference at the right end is The light amount is adjusted so as to be equal to or more than the allowable value. Further, when the difference between the average value of the gray value of the non-mark portion at the left end and the average value of the gray value of the non-mark portion at the right end is larger than the non-permissible value that is not allowable as illumination unevenness, The light amount is adjusted so that the difference between the average value of the gray value of the non-mark portion at the left end and the right end is equal to or less than the non-permissible value.

【0140】おな、上記各濃淡値のモニタ画面上への表
示や照明ムラの存在をオペレータに認知させるための表
示は前述同様にして行うことができる。また、光量調整
も前述同様にして行う。
The display of each of the above-mentioned gray-scale values on the monitor screen and the display for allowing the operator to recognize the presence of uneven illumination can be performed in the same manner as described above. The light amount adjustment is performed in the same manner as described above.

【0141】その他、上記照明装置19には、上記各L
EDアレイユニットからの光を拡散するための拡散板を
設けることも可能である。この拡散板を設けるようにす
れば、LEDアレイユニットを構成する各LED素子の
光を拡散でき、ICパッケージ14上の照明ムラを減ら
すことが可能となる。
In addition, the lighting device 19 includes the L
It is also possible to provide a diffusion plate for diffusing light from the ED array unit. If this diffusion plate is provided, light of each LED element constituting the LED array unit can be diffused, and illumination unevenness on the IC package 14 can be reduced.

【0142】上述したような照明装置19を用い、上記
筐体51の上記開放された下方側内部に前記エンボステ
ープ13上に収納されたICパッケージ14を置き、当
該ICパッケージ14の上面を上記各発光部50にて取
り囲むようにして横方向で且つ近くから照明すると共
に、このICパッケージ14の上面を当該筐体51の上
記開放された上方側中央から、前記ビデオカメラ12に
よって図中矢印V方向を撮影する。これにより、当該ビ
デオカメラ12からは、上記ICパッケージ14上の印
字マーク及び第1ピンマークとその他の非マーク部分と
の間のコントラストが高い画像が得られるようになる。
Using the lighting device 19 described above, the IC package 14 housed on the embossed tape 13 is placed inside the open lower side of the housing 51, and the upper surface of the IC package 14 is The light is illuminated laterally and from the vicinity so as to be surrounded by the light emitting unit 50, and the upper surface of the IC package 14 is moved from the open upper center of the housing 51 by the video camera 12 in the direction of the arrow V in FIG. To shoot. Thus, the video camera 12 can obtain an image with high contrast between the print mark and the first pin mark on the IC package 14 and other non-mark portions.

【0143】なお、上述した説明では、ホストコンピュ
ータ17が照明装置19を制御する例について述べてい
るが、画像処理ユニット11が照明装置19を制御する
ようにしても良い。すなわち、この場合は、ホストコン
ピュータ17が行っていた上述した照明装置19の制御
を、画像処理ユニット11が行うようにする。
In the above description, the example in which the host computer 17 controls the lighting device 19 is described. However, the image processing unit 11 may control the lighting device 19. That is, in this case, the image processing unit 11 controls the lighting device 19 described above, which was performed by the host computer 17.

【0144】次に前述した画像のフィルタリングについ
て説明する。
Next, the above-described image filtering will be described.

【0145】前述したようにICパッケージ14のモー
ルド樹脂表面は、梨地状となっているため、ビデオカメ
ラ12にて撮影して得られた画像の濃淡値は均一になら
ない。そのため、ICパッケージ14上のマークが良好
に印字或いは刻印されていていたとしても、前記マッチ
ング処理のスコア値が低くなる傾向があり、異なるマー
クの区別が付け難くなるという問題がある。本実施例の
マーク検査装置では、これを改善するために、マーク検
査の前処理として、ビデオカメラ12にて撮影した画像
に対して、画像処理ユニット11で画像に平滑化処理を
施し、ICパッケージ14の非マーク部分とマーク部分
とでそれぞれの濃淡値を均一にしてマッチング処理の安
定化を図るようにしている。
As described above, since the surface of the mold resin of the IC package 14 has a satin shape, the density value of an image obtained by photographing with the video camera 12 is not uniform. Therefore, even if the mark on the IC package 14 is printed or imprinted well, there is a tendency that the score value of the matching process tends to be low, and it is difficult to distinguish different marks. In the mark inspection apparatus of the present embodiment, in order to improve this, as a pre-process of the mark inspection, the image taken by the video camera 12 is subjected to a smoothing process by the image processing unit 11, and the IC package is processed. The non-marked portion and the marked portion of 14 are made uniform in their grayscale values to stabilize the matching process.

【0146】ここでは、上記平滑化処理として、上記ビ
デオカメラ12からの画像信号に対して3×3メディア
ンフィルタによるフィルタリングを2回施している。図
18には、メディアンフィルタ処理前と処理後の濃淡値
分布を示す。なお、図18の(A)及び(B)において
縦軸は画素(pixels)数を示し、横軸は濃淡値(glayva
lue)を示している。また、図18の(A)には上記非
マーク部分のメディアンフィルタ処理前後の濃淡値分布
を、図18の(B)にはマーク部分として印字マーク部
分のメディアンフィルタ処理前後の濃淡値分布を示し、
これら図18の(A)及び(B)の図中実線はビデオカ
メラ12からの画像すなわちメディアンフィルタ処理前
の元画像の濃淡値分布曲線を、図中破線はメディアンフ
ィルタ処理後の画像の濃淡値分布曲線を示している。
Here, as the smoothing process, the image signal from the video camera 12 is filtered twice by a 3 × 3 median filter. FIG. 18 shows the gray value distributions before and after the median filter processing. In FIGS. 18A and 18B, the vertical axis indicates the number of pixels, and the horizontal axis indicates the gray level (glayva).
lue). FIG. 18A shows the gray value distribution of the non-mark portion before and after the median filter processing, and FIG. 18B shows the gray value distribution of the print mark portion before and after the median filter processing as the mark portion. ,
The solid lines in FIGS. 18A and 18B show the gray value distribution curves of the image from the video camera 12, ie, the original image before the median filter processing, and the broken lines in the figures show the gray value values of the image after the median filter processing. The distribution curve is shown.

【0147】上記図18から判るように、濃淡値分布
は、非マーク部分及びマーク部分ともにメディアンフィ
ルタ処理後が処理前に比べて狭い範囲に収まっているこ
とがわかる。
As can be seen from FIG. 18, it is understood that the gray value distribution of both the non-mark portion and the mark portion falls within a narrower range after the median filter processing than before the processing.

【0148】すなわち、マッチング処理では、全体的に
均一に濃淡値が変化してもマッチング処理の結果には影
響しないが、個々の画素それぞれの濃淡値の変化はスコ
アに大きく影響するため、図18にて説明したようにメ
ディアンフィルタ処理によって非マーク部分とマーク部
分それぞれの部分内での濃淡値の変化が少なくなれば、
マーク検査の安定性及び精度が向上する。
That is, in the matching processing, even if the gray level changes uniformly as a whole, it does not affect the result of the matching processing, but the change in the gray level of each pixel greatly affects the score. As described in, if the change in the gray value in each of the non-mark part and the mark part is reduced by the median filter processing,
The stability and accuracy of mark inspection are improved.

【0149】前述したように、本発明実施例のマーク検
査装置においては、ティーチング工程をオフラインティ
ーチング工程とオンラインティーチング工程とに分ける
ことにより、同一形状のICパッケージ(同じ位置にマ
ークがあるもの)については、1度のオフラインティー
チングでオンラインティーチングの際の基準印字パター
ン及び基準第1ピンパターンのマスタ登録位置を設定で
きる。したがって、本実施例のマーク検査装置では、多
くの種類のICパッケージのティーチングデータを保存
する必要がなくなり、記憶容量が少なくて良い。また、
オンラインティーチング時には、実際にエンボステープ
13上に収納された例えば最初のICパッケージ上の印
字マーク及び第1ピンマークを基準印字パターン及び基
準第1ピンパターンとして記憶するので、ティーチング
時と実際の検査時の印字マーク,第1ピンマークのパタ
ーンの変化に強くなる。
As described above, in the mark inspection apparatus according to the embodiment of the present invention, the teaching process is divided into an offline teaching process and an online teaching process, so that IC packages having the same shape (marks at the same positions) can be obtained. Can set the master print position of the reference print pattern and the reference first pin pattern at the time of online teaching by one offline teaching. Therefore, in the mark inspection apparatus of this embodiment, it is not necessary to store teaching data of many types of IC packages, and the storage capacity may be small. Also,
At the time of online teaching, the print mark and the first pin mark, for example, on the first IC package actually stored on the embossed tape 13 are stored as the reference print pattern and the reference first pin pattern. Of the print mark and the pattern of the first pin mark.

【0150】また、本実施例のマーク検査装置では、1
文字を9分割して基準印字パターンとの比較検査するこ
とにより、文字等の線幅が変化した場合でも安定したマ
ーク検査ができる。
In the mark inspection apparatus of this embodiment, 1
By dividing a character into nine parts and comparing and inspecting the character with a reference print pattern, a stable mark inspection can be performed even when the line width of a character or the like changes.

【0151】さらに、本実施例のマーク検査装置では、
リトライ検査にて通常の検査工程の処理アルゴリズムを
変えることにより、文字等の線幅が変化したときに不良
判定したとしても、当該リトライ検査で救済することが
できる。したがって、本実施例のマーク検査装置によれ
ば、マーク位置がずれたICパッケージでも良品と判断
でき、良品を誤って不良品とする誤判定を防ぐことがで
きる。
Further, in the mark inspection apparatus of this embodiment,
By changing the processing algorithm of the normal inspection process in the retry inspection, even if a defect is determined when the line width of a character or the like changes, it can be remedied by the retry inspection. Therefore, according to the mark inspection apparatus of the present embodiment, even an IC package in which the mark position is shifted can be determined as a non-defective product, and erroneous determination of a non-defective product as a defective product can be prevented.

【0152】[0152]

【発明の効果】以上の説明で明らかなように、本発明の
マーク検査方法及び装置においては、マーク位置及びマ
ーク範囲を教示し、少なくともマークとその周辺の画像
を取り込み、マーク位置及びマーク範囲に対応する位置
及び範囲内のマークの画像パターンを基準マークパター
ンとして教示し、マーク位置及びマーク範囲と基準マー
クパターンとを用いて、検査対象のマークを検査するこ
とにより、例えばマークが付されたICの種類が多くて
も、また新しいICが開発されたりしてもICパッケー
ジ上の印字マークや第1ピンマークを容易かつ正確に認
識でき、さらに、検査も制限時間内で実行でき、良否判
定の歩留まりも向上させることが可能で、コストの上昇
も抑えることが可能となる。
As is apparent from the above description, in the mark inspection method and apparatus of the present invention, the mark position and the mark range are taught, and at least the image of the mark and its surroundings are taken in. Teach the image pattern of the mark within the corresponding position and range as a reference mark pattern, and inspect the mark to be inspected using the mark position and the mark range and the reference mark pattern. Even if there are many types of ICs or new ICs are developed, the printed marks and first pin marks on the IC package can be easily and accurately recognized, and the inspection can be performed within the time limit. The yield can be improved, and the increase in cost can be suppressed.

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

【図1】本発明実施例のマーク検査装置の概略構成を示
す図である。
FIG. 1 is a diagram showing a schematic configuration of a mark inspection apparatus according to an embodiment of the present invention.

【図2】オフラインティーチング工程の流れを示すフロ
ーチャートである。
FIG. 2 is a flowchart showing a flow of an offline teaching process.

【図3】ICパッケージ上の印字マーク及び第1ピンマ
ークを検査するために設定するウィンドウの説明に用い
る図である。
FIG. 3 is a diagram used to explain a window set for inspecting a print mark and a first pin mark on an IC package.

【図4】禁止領域についての説明に用いる図である。FIG. 4 is a diagram used to describe a prohibited area.

【図5】正ベントの説明に用いる図である。FIG. 5 is a diagram used for explaining a normal vent.

【図6】逆ベントの説明に用いる図である。FIG. 6 is a diagram used for explaining a reverse vent.

【図7】正ベントのICパッケージ上の第1ピンマーク
を検査するために設定するウィンドウの説明に用いる図
である。
FIG. 7 is a diagram used to explain a window set for inspecting a first pin mark on a front vent IC package.

【図8】正ベントのICパッケージを誤って逆ベントの
ICパッケージと判定しないために設定するウィンドウ
の説明に用いる図である。
FIG. 8 is a diagram used to describe a window that is set so that a forward vent IC package is not erroneously determined to be a reverse vent IC package.

【図9】逆ベントのICパッケージの第1ピンマークを
検査するために設定するウィンドウの説明に用いる図で
ある。
FIG. 9 is a diagram used to explain a window set for inspecting a first pin mark of an IC package of a reverse vent.

【図10】オフラインティーチング用ウィンドウの設定
の流れを示すフローチャートである。
FIG. 10 is a flowchart showing a flow of setting an offline teaching window.

【図11】基準印字パターンのマスタ登録を行うオンラ
インティーチング工程の流れを示すフローチャートであ
る。
FIG. 11 is a flowchart illustrating a flow of an online teaching process for performing master registration of a reference print pattern.

【図12】基準第1ピンパターンのマスタ登録を行うオ
ンラインティーチング工程の流れを示すフローチャート
である。
FIG. 12 is a flowchart illustrating a flow of an online teaching process for performing master registration of a reference first pin pattern.

【図13】印字マークの一列分を検査する検査工程の流
れを示すフローチャートである。
FIG. 13 is a flowchart illustrating a flow of an inspection process for inspecting one line of a print mark.

【図14】印字マークの1文字分及び第1ピンマークを
検査する検査工程の流れを示すフローチャートである。
FIG. 14 is a flowchart illustrating a flow of an inspection process for inspecting one character of a print mark and a first pin mark.

【図15】文字の分割領域についての説明に用いる図で
ある。
FIG. 15 is a diagram used to describe a character division area.

【図16】リトライ検査工程の流れを示すフローチャー
トである。
FIG. 16 is a flowchart showing a flow of a retry inspection process.

【図17】照明装置の具体的構成を説明するための図で
ある。
FIG. 17 is a diagram illustrating a specific configuration of a lighting device.

【図18】フィルタリングによる画像処理の効果の説明
に用いる図である。
FIG. 18 is a diagram used to explain the effect of image processing by filtering.

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

11 画像処理ユニット、 12 ビデオカメラ、 1
3 エンボステープ、14 ICパッケージ、 15
モニタ装置、 16 操作盤、 17 ホストコンピュ
ータ、 18 記憶装置、 19 照明装置
11 image processing unit, 12 video camera, 1
3 Embossed tape, 14 IC package, 15
Monitor device, 16 operation panel, 17 host computer, 18 storage device, 19 lighting device

Claims (11)

【特許請求の範囲】[Claims] 【請求項1】 画像処理を使用してマーク検査を行うマ
ーク検査方法において、 マーク位置及びマーク範囲を教示する第1の教示工程
と、 少なくともマークとその周辺の画像を取り込む画像取り
込み工程と、 上記マーク位置及びマーク範囲に対応する位置及び範囲
内のマークの画像パターンを基準マークパターンとして
教示する第2の教示工程と、 上記マーク位置及びマーク範囲と上記基準マークパター
ンとを用いて、検査対象のマークを検査する検査工程と
を有することを特徴とするマーク検査方法。
1. A mark inspection method for performing a mark inspection using image processing, comprising: a first teaching step of teaching a mark position and a mark range; an image capturing step of capturing at least an image of a mark and its surroundings; A second teaching step of teaching, as a reference mark pattern, an image pattern of a mark within a position and a range corresponding to the mark position and the mark range, and using the mark position and the mark range and the reference mark pattern, A mark inspection method, comprising: inspecting a mark.
【請求項2】 上記検査工程は、上記検査対象のマーク
の画像を複数の領域に分割し、この複数の分割領域毎に
検査する分割検査工程を含むことを特徴とする請求項1
記載のマーク検査方法。
2. The method according to claim 1, wherein the inspection step includes a division inspection step of dividing the image of the mark to be inspected into a plurality of areas and inspecting each of the plurality of divided areas.
The mark inspection method described.
【請求項3】 上記分割検査工程では、上記検査対象の
マークの画像を水平及び垂直方向にそれぞれ3分割した
9個の分割領域毎に検査を行うことを特徴とする請求項
2記載のマーク検査方法。
3. The mark inspection according to claim 2, wherein in the division inspection step, the image of the mark to be inspected is inspected for each of nine divided regions obtained by dividing the image of the mark to be inspected into three in the horizontal and vertical directions. Method.
【請求項4】 上記検査工程にてマーク不良と判定した
ときには、当該不良と判定されたマークに対して、マー
クを構成する線の太さ及びマーク位置のズレを補正した
精細なマーク検査を実行するリトライ検査工程を設ける
ことを特徴とする請求項1記載のマーク検査方法。
4. When a mark is determined to be defective in the inspection step, a fine mark inspection is performed on the mark determined to be defective in such a manner that the thickness of a line forming the mark and the deviation of the mark position are corrected. 2. The mark inspection method according to claim 1, further comprising a retry inspection step.
【請求項5】 画像処理を使用してマーク検査を行うマ
ーク検査装置において、 マーク位置及びマーク範囲を教示する第1の教示手段
と、 少なくともマーク及びその周辺画像を取り込む画像取り
込み手段と、 上記マーク位置及びマーク範囲に対応する位置及び範囲
内のマークの画像パターンを基準マークパターンとして
教示する第2の教示手段と、 上記マーク位置及びマーク範囲の情報と上記基準マーク
パターンの情報とを記憶する記憶手段と、 上記記憶手段に記憶した上記マーク位置及びマーク範囲
の情報と上記基準マークパターンの情報とを用いて、検
査対象のマークを検査する検査手段とを有することを特
徴とする検査装置。
5. A mark inspection apparatus for performing mark inspection using image processing, wherein: first teaching means for teaching a mark position and a mark range; image capturing means for capturing at least a mark and a peripheral image thereof; Second teaching means for teaching, as a reference mark pattern, an image pattern of a mark within a position and a range corresponding to the position and the mark range; and storage for storing information on the mark position and the mark range and information on the reference mark pattern. An inspection apparatus for inspecting a mark to be inspected using the information on the mark position and the mark range stored in the storage means and the information on the reference mark pattern.
【請求項6】 上記検査手段は、上記検査対象のマーク
の画像を複数の領域に分割し、この複数の分割領域毎に
検査する分割検査をも行うことを特徴とする請求項5記
載のマーク検査装置。
6. The mark according to claim 5, wherein the inspection unit divides the image of the mark to be inspected into a plurality of regions and performs a division inspection for inspecting each of the plurality of divided regions. Inspection equipment.
【請求項7】 上記分割検査の際には、上記検査対象の
マークの画像を水平及び垂直方向にそれぞれ3分割した
9個の分割領域毎に検査を行うことを特徴とする請求項
6記載のマーク検査装置。
7. The division inspection according to claim 6, wherein the inspection is performed for each of nine divided areas obtained by dividing the image of the mark to be inspected into three in the horizontal and vertical directions. Mark inspection device.
【請求項8】 上記検査手段は、マーク不良と判定した
とき、当該不良と判定されたマークに対して、マークを
構成する線の太さ及びマーク位置のズレを補正した精細
なマーク検査を実行するリトライ検査をも行うことを特
徴とする請求項5記載のマーク検査装置。
8. When the mark is determined to be defective, the inspection means performs a fine mark inspection on the mark determined to be defective by correcting the thickness of a line forming the mark and the deviation of the mark position. 6. The mark inspection apparatus according to claim 5, wherein a retry inspection is also performed.
【請求項9】 上記検査対象のマーク及びその周辺を照
明する照明手段を有することを特徴とする請求項5記載
のマーク検査装置。
9. The mark inspection apparatus according to claim 5, further comprising illumination means for illuminating the mark to be inspected and its periphery.
【請求項10】 上記照明手段は、複数の発光部を有
し、各発光部はそれぞれ発光量を調整可能であることを
特徴とする請求項9記載のマーク検査装置。
10. The mark inspection apparatus according to claim 9, wherein the illumination means has a plurality of light emitting units, and each light emitting unit is capable of adjusting a light emission amount.
【請求項11】 上記照明装置は、照明位置を変更する
照明位置変更手段を備えることを特徴とする請求項9記
載のマーク検査装置。
11. The mark inspection device according to claim 9, wherein the illumination device includes illumination position changing means for changing an illumination position.
JP8192384A 1996-07-22 1996-07-22 Method and device for inspecting mark Pending JPH1040380A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8192384A JPH1040380A (en) 1996-07-22 1996-07-22 Method and device for inspecting mark

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8192384A JPH1040380A (en) 1996-07-22 1996-07-22 Method and device for inspecting mark

Publications (1)

Publication Number Publication Date
JPH1040380A true JPH1040380A (en) 1998-02-13

Family

ID=16290405

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8192384A Pending JPH1040380A (en) 1996-07-22 1996-07-22 Method and device for inspecting mark

Country Status (1)

Country Link
JP (1) JPH1040380A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11316836A (en) * 1998-05-06 1999-11-16 Omron Corp Person identifying
JP2001141426A (en) * 1999-11-16 2001-05-25 Ckd Corp Appearance inspecting device and printing device
JP2002270062A (en) * 2001-03-06 2002-09-20 Citizen Electronics Co Ltd Push switch
JP2009521022A (en) * 2005-12-22 2009-05-28 ピルツ ゲーエムベーハー アンド コー.カーゲー Method for configuring a monitoring device for monitoring a spatial domain
JP2010038762A (en) * 2008-08-06 2010-02-18 Micronics Japan Co Ltd Inspection apparatus
US7809180B2 (en) 2004-07-05 2010-10-05 Panasonic Corporation Method of generating image of component
JP2010256222A (en) * 2009-04-27 2010-11-11 Shibuya Kogyo Co Ltd Article inspection method
WO2012164631A1 (en) * 2011-06-03 2012-12-06 上野精機株式会社 Semiconductor print test method, program, and device for same
JP2014235569A (en) * 2013-06-03 2014-12-15 新電元工業株式会社 Sealed symbol inspection method, sealed symbol inspection device and electronic apparatus
KR102298218B1 (en) * 2020-04-10 2021-09-06 신균섭 Method for inspecting the quality of imprinting of parts and devices therefore

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11316836A (en) * 1998-05-06 1999-11-16 Omron Corp Person identifying
JP2001141426A (en) * 1999-11-16 2001-05-25 Ckd Corp Appearance inspecting device and printing device
JP2002270062A (en) * 2001-03-06 2002-09-20 Citizen Electronics Co Ltd Push switch
US7809180B2 (en) 2004-07-05 2010-10-05 Panasonic Corporation Method of generating image of component
US9151446B2 (en) 2005-12-22 2015-10-06 Pilz Gmbh & Co. Kg Method and system for configuring a monitoring device for monitoring a spatial area
JP2009521022A (en) * 2005-12-22 2009-05-28 ピルツ ゲーエムベーハー アンド コー.カーゲー Method for configuring a monitoring device for monitoring a spatial domain
US9695980B2 (en) 2005-12-22 2017-07-04 Pilz Gmbh & Co. Kg Method and system for configuring a monitoring device for monitoring a spatial area
JP2010038762A (en) * 2008-08-06 2010-02-18 Micronics Japan Co Ltd Inspection apparatus
JP2010256222A (en) * 2009-04-27 2010-11-11 Shibuya Kogyo Co Ltd Article inspection method
JPWO2012164631A1 (en) * 2011-06-03 2014-07-31 上野精機株式会社 Semiconductor print inspection method, program, and apparatus
JP5881087B2 (en) * 2011-06-03 2016-03-09 上野精機株式会社 Semiconductor print inspection method, program, and apparatus
WO2012164631A1 (en) * 2011-06-03 2012-12-06 上野精機株式会社 Semiconductor print test method, program, and device for same
JP2014235569A (en) * 2013-06-03 2014-12-15 新電元工業株式会社 Sealed symbol inspection method, sealed symbol inspection device and electronic apparatus
KR102298218B1 (en) * 2020-04-10 2021-09-06 신균섭 Method for inspecting the quality of imprinting of parts and devices therefore

Similar Documents

Publication Publication Date Title
US7505149B2 (en) Apparatus for surface inspection and method and apparatus for inspecting substrate
US7167583B1 (en) Image processing system for use with inspection systems
US7406191B2 (en) Inspection data producing method and board inspection apparatus using the method
US20060133660A1 (en) Apparatus and method for detecting defect existing in pattern on object
US7463763B2 (en) Apparatus, method, and program for assisting in selection of pattern element for pattern matching
JPH1040380A (en) Method and device for inspecting mark
JPH07260701A (en) Recognition method of area of inspection
EP1889288B1 (en) Method and apparatus for inspecting marking of semiconductor package
CN114549390A (en) Circuit board detection method, electronic device and storage medium
JP2004151057A (en) Registration method of component code conversion table, conversion table registration device, registration program for component code conversion table, and storage medium
CN1898555B (en) Substrate inspection device
KR100507887B1 (en) Inspection apparatus and method for an illuminating optical element
JP2003099758A (en) Method and device for inspecting appearance of substrate
JP4302234B2 (en) Mounting parts inspection device
JP2007033126A (en) Substrate inspection device, parameter adjusting method thereof and parameter adjusting device
JP4814116B2 (en) Mounting board appearance inspection method
JPH07175894A (en) Neural network, character recognition method, electronic parts mounting inspecting device and managing method using the same
JP4872930B2 (en) Character recognition device, fuel pump module assembling device equipped with such device, and character recognition method
JP3233205B2 (en) Circuit inspection method and device
JPS63257808A (en) Device for inspecting parts fitting
JP3683827B2 (en) Pattern defect inspection method and pattern defect inspection apparatus
JPH09147056A (en) Method and device for checking appearance of mark
JP3998617B2 (en) Game machine manufacturing process management system
JPS63167980A (en) Method and device for defect inspection of printed wiring pattern or the like
JPH07107510B2 (en) Substrate inspection device and substrate inspection method

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20040706

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040713

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20041109