JPH06300706A - Image processing apparatus - Google Patents
Image processing apparatusInfo
- Publication number
- JPH06300706A JPH06300706A JP5089661A JP8966193A JPH06300706A JP H06300706 A JPH06300706 A JP H06300706A JP 5089661 A JP5089661 A JP 5089661A JP 8966193 A JP8966193 A JP 8966193A JP H06300706 A JPH06300706 A JP H06300706A
- Authority
- JP
- Japan
- Prior art keywords
- image data
- storage means
- real
- real image
- data
- 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
Links
Landscapes
- Image Processing (AREA)
- Image Analysis (AREA)
- Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)
- Testing Or Measuring Of Semiconductors Or The Like (AREA)
Abstract
(57)【要約】
【目的】 形状検査において、恒常的な異常のみを検出
可能な画像処理装置を提供する。
【構成】 画像入力手段10は、検体12の画像を取り
込み、実画像データを生成する。第1の記憶手段30、
32は、画像入力手段10が生成した実画像データを記
憶する。第2の記憶手段28は、基準画像データを記憶
する。第3の記憶手段34は、複数の実画像データ同士
の論理積である合成実画像データを記憶する。比較手段
38は、基準画像データと合成実画像データとを比較す
る。制御手段38は、画像入力手段10を介して複数の
検体12の実画像データを生成して第1の記憶手段3
0、32へ記憶し、複数の実画像データ同士の論理積で
ある合成実画像データを生成して第3の記憶手段34へ
記憶し、基準画像データと合成実画像データとを比較
し、相違点があれば異常ありと判断する。
(57) [Summary] [Object] To provide an image processing apparatus capable of detecting only a constant abnormality in a shape inspection. [Structure] The image input means 10 captures an image of a sample 12 and generates actual image data. The first storage means 30,
32 stores the actual image data generated by the image input means 10. The second storage unit 28 stores the reference image data. The third storage unit 34 stores combined real image data which is a logical product of a plurality of real image data. The comparison means 38 compares the reference image data with the combined actual image data. The control unit 38 generates the actual image data of the plurality of specimens 12 via the image input unit 10 to generate the first storage unit 3.
0, 32, and synthetic real image data, which is the logical product of a plurality of real image data, is generated and stored in the third storage means 34, the reference image data and the synthetic real image data are compared, and the difference is obtained. If there is a point, it is judged to be abnormal.
Description
【0001】[0001]
【産業上の利用分野】本発明は画像処理装置に関し、一
層詳細にはパターンマッチングにより検体の形状検査を
行うための画像処理装置に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing apparatus, and more particularly to an image processing apparatus for inspecting a sample shape by pattern matching.
【0002】[0002]
【従来の技術】例えばリードフレーム(検体)のインナ
ーリードの形状検査に画像処理技術が利用されている。
従来のインナーリードの検査方法について図3と共に説
明する。100は基準画像であり、予めサンプリングさ
れたリードフレーム102aの画像である。基準画像1
00を構成する2値データである画像データが基準画像
データとして予め記憶されている。104は実画像であ
り、検査するリードフレーム102bの画像である。実
画像104は検査の都度、CCDカメラにより取り込ま
れ実画像104を構成する2値または多値データである
実画像データが生成される。実画像データは生成の都度
記憶される。2. Description of the Related Art For example, an image processing technique is used for inspecting the shape of an inner lead of a lead frame (sample).
A conventional inner lead inspection method will be described with reference to FIG. Reference numeral 100 is a reference image, which is an image of the lead frame 102a sampled in advance. Reference image 1
Image data that is binary data that configures 00 is stored in advance as reference image data. Reference numeral 104 is an actual image, which is an image of the lead frame 102b to be inspected. The real image 104 is captured by the CCD camera every time the inspection is performed, and the real image data which is the binary or multi-valued data forming the real image 104 is generated. The actual image data is stored each time it is generated.
【0003】形状検査はパターンマッチングにより行わ
れる。すなわち、実画像データと基準画像データとを比
較手段を介して比較する。図3の例の場合、基準画像1
00では、リードフレーム102aにバリ106aが形
成されている。一方、実画像104では、リードフレー
ム102bのインナーリード108aにバリ106bが
形成されると共に、ゴミ110aが付着している。ま
た、インナーリード108bにはゴミ110bが付着し
ている。さらに、基準画像100ではインナーリード1
08cに透孔112が穿設されているが、実画像104
のインナーリード108bには透孔がない。従って、実
画像データと基準画像データとの相違点を図示すると比
較画像114のようになる。この比較画像114を構成
する2値データが比較画像データであり、制御手段は比
較手段から比較画像データが送られた場合、リードフレ
ーム102bの形状に異常有りと判断する。図3の場
合、特にインナーリード108bに透孔が穿設されてい
ないため、不良品となる。さらに、インナーリード10
8bに透孔を穿設するためのプレス金型装置のパンチの
欠損も検知可能となる。The shape inspection is performed by pattern matching. That is, the actual image data and the reference image data are compared via the comparison means. In the case of the example of FIG. 3, the reference image 1
In No. 00, the burr 106a is formed on the lead frame 102a. On the other hand, in the actual image 104, burrs 106b are formed on the inner leads 108a of the lead frame 102b, and dust 110a is attached. Further, dust 110b is attached to the inner leads 108b. Furthermore, in the reference image 100, the inner lead 1
Although the through hole 112 is formed in 08c, the actual image 104
The inner lead 108b has no through hole. Therefore, the difference between the actual image data and the reference image data is illustrated as a comparison image 114. The binary data forming the comparative image 114 is the comparative image data, and the control unit determines that the shape of the lead frame 102b is abnormal when the comparative image data is sent from the comparing unit. In the case of FIG. 3, since the inner lead 108b is not provided with a through hole, it is a defective product. Furthermore, the inner lead 10
It is also possible to detect a defect in the punch of the press die device for forming the through hole in 8b.
【0004】[0004]
【発明が解決しようとする課題】しかしながら、上記の
従来の画像処理技術を用いた形状検査には次のような課
題がある。実画像104と基準画像100を比較した場
合、比較画像114に明示されるようにバリ106a、
106b、ゴミ110a、110b、透孔112が両者
100、104の相違点として検出される。ところが、
バリ106a、106b、ゴミ110a、110bにつ
いてはリードフレーム102bの製造工程における製造
装置の異常に関しては上特に問題とはならない。問題と
なるのはインナーリード108bにおける透孔の欠損で
ある。透孔の欠損の原因としては第1にプレス金型装置
のパンチの欠損である。もし、パンチが欠損した状態で
リードフレームの製造を継続すると不良品を大量に製造
することになっていしまい、経済的に大きな損害を被る
ことになる。従って、インナーリード108bの透孔の
欠損のような恒常的な異常は早期に検出しなければなら
ない。However, the shape inspection using the above-mentioned conventional image processing technique has the following problems. When the real image 104 and the reference image 100 are compared, as shown in the comparison image 114, the burr 106a,
106b, dusts 110a and 110b, and the through hole 112 are detected as differences between the two 100 and 104. However,
Regarding the burrs 106a and 106b and the dusts 110a and 110b, there is no particular problem in terms of abnormality of the manufacturing apparatus in the manufacturing process of the lead frame 102b. The problem is the loss of the through hole in the inner lead 108b. The first cause of the defect of the through hole is the defect of the punch of the press die device. If the manufacturing of the lead frame is continued with the punch missing, a large number of defective products will be manufactured, which will result in significant financial loss. Therefore, a permanent abnormality such as a defect in the through hole of the inner lead 108b must be detected early.
【0005】ところが、従来のパターンマッチングによ
る検査方法では、バリ106a、106bやゴミ110
a、110bのように偶然に発生が特に問題とされない
ような異常も確実に検出してしまうため、検出された異
常が恒常的な異常なのか、それとも偶然的な異常なのか
の判断は困難である。その結果、異常を検出した場合、
その都度異常発生の原因を究明する必要が有り、生産性
向上の妨げになるという課題がある。従って、本発明は
形状検査において、恒常的な異常のみを検出可能な画像
処理装置を提供することを目的とする。However, in the conventional inspection method using pattern matching, burrs 106a and 106b and dust 110 are formed.
It is difficult to judge whether the detected abnormality is a constant abnormality or an accidental abnormality, because an abnormality such as a and 110b that does not occur by accident happens to be a problem. is there. As a result, when an abnormality is detected,
There is a problem that it is necessary to investigate the cause of the abnormal occurrence each time, which hinders the improvement of productivity. Therefore, an object of the present invention is to provide an image processing apparatus capable of detecting only a constant abnormality in a shape inspection.
【0006】[0006]
【課題を解決するための手段】上記課題を解決するため
本発明は次の構成を備える。すなわち、第1の構成は、
検体の画像を取り込み、該画像を示す2値データである
実画像データを生成する画像入力手段と、該画像入力手
段が生成した前記実画像データを記憶するための第1の
記憶手段と、予め定められた基準となる検体の画像を示
す2値データである基準画像データを記憶するための第
2の記憶手段と、複数の検体に係る複数の実画像データ
同士の論理積である合成実画像データを記憶するための
第3の記憶手段と、前記基準画像データと合成実画像デ
ータとを比較するための比較手段と、前記画像入力手段
を介して複数の検体についてそれぞれ実画像データを生
成して前記第1の記憶手段へ記憶し、第1の記憶手段に
記憶されている複数の実画像データ同士の論理積である
合成実画像データを生成して前記第3の記憶手段へ記憶
し、前記比較手段を介して前記第2の記憶手段に記憶さ
れている前記基準画像データと前記第3の記憶手段に記
憶されている前記合成実画像データとを比較し、相違点
があれば異常ありと判断する制御手段とを具備すること
を特徴とする。特に、前記基準画像データは、サンプリ
ングされた複数の検体に係る複数の実画像データ同士の
論理積である合成画像データでよい。In order to solve the above problems, the present invention has the following constitution. That is, the first configuration is
An image input unit that captures an image of the sample and generates real image data that is binary data representing the image, a first storage unit that stores the real image data generated by the image input unit, and A second storage unit for storing reference image data, which is binary data indicating an image of a determined reference sample, and a synthetic real image that is a logical product of a plurality of real image data of a plurality of samples. Third storage means for storing data, comparison means for comparing the reference image data and synthetic real image data, and real image data for each of a plurality of samples via the image input means Stored in the first storage means, synthetic real image data that is a logical product of a plurality of real image data stored in the first storage means is generated, and stored in the third storage means, The comparison means Control for comparing the reference image data stored in the second storage unit with the combined actual image data stored in the third storage unit through the above, and determining that there is an abnormality if there is a difference. And means. In particular, the reference image data may be synthetic image data that is a logical product of a plurality of real image data of a plurality of sampled samples.
【0007】第2の構成は、検体の画像を取り込み、該
画像を示す多値データである実画像データを生成する画
像入力手段と、該画像入力手段が生成した前記実画像デ
ータを記憶するための第1の記憶手段と、予め定められ
た基準となる検体の画像を示す多値データである基準画
像データを記憶するための第2の記憶手段と、複数の検
体に係る複数の実画像データ同士を比較し、画素毎に、
比較した前記多値データの内最小の値を示す値で構成さ
れる合成実画像データを記憶するための第3の記憶手段
と、前記基準画像データと合成実画像データとを比較す
るための比較手段と、前記画像入力手段を介して複数の
検体についてそれぞれ実画像データを生成して前記第1
の記憶手段へ記憶し、第1の記憶手段に記憶されている
複数の実画像データから前記合成実画像データを生成し
て前記第3の記憶手段へ記憶し、前記比較手段を介して
前記第2の記憶手段に記憶されている前記基準画像デー
タと前記第3の記憶手段に記憶されている前記合成実画
像データとを比較し、相違点があれば異常ありと判断す
る制御手段とを具備することを特徴とする。特に、前記
基準画像データは、サンプリングされた複数の検体に係
る複数の実画像データを比較し、画素毎に、比較した多
値データの内最小の値を示す値で構成される合成画像デ
ータでよい。さらに、第1の構成、第2の構成におい
て、前記制御手段が、異常ありと判断した際にその旨報
知するための出力手段を設けてもよい。The second configuration is to store an image of a sample, image input means for generating real image data which is multivalued data showing the image, and the real image data generated by the image input means. First storage means, second storage means for storing reference image data, which is multi-valued data indicating an image of a specimen serving as a predetermined reference, and a plurality of real image data relating to a plurality of specimens. Compare each other, for each pixel,
Third storage means for storing combined actual image data composed of a value indicating the minimum value of the compared multi-valued data, and comparison for comparing the reference image data with the combined actual image data Means and the image inputting means to generate real image data for each of a plurality of specimens to generate the first image data.
Of the plurality of real image data stored in the first storage means to generate the combined real image data, store the composite real image data in the third storage means, and store the composite real image data in the third storage means. Control means for comparing the reference image data stored in the second storage means with the combined actual image data stored in the third storage means, and judging that there is an abnormality if there is a difference. It is characterized by doing. In particular, the reference image data is synthetic image data configured by comparing a plurality of real image data of a plurality of sampled samples, and for each pixel, a value indicating the minimum value of the compared multivalued data. Good. Further, in the first configuration and the second configuration, when the control means determines that there is an abnormality, an output means may be provided for notifying the fact.
【0008】[0008]
【作用】作用について説明する。第1の構成において、
制御手段は、画像入力手段を介して複数の検体について
それぞれ実画像データを生成して第1の記憶手段へ記憶
し、第1の記憶手段に記憶されている複数の実画像デー
タ同士の論理積である合成実画像データを生成して第3
の記憶手段へ記憶し、比較手段を介して第2の記憶手段
に記憶されている基準画像データと第3の記憶手段に記
憶されている合成実画像データとを比較し、相違点があ
れば異常ありと判断する。その際、合成実画像データは
複数の実画像データ同士の論理積であるから、恒常的に
発生する形状のみを示す画像データであるからバリやゴ
ミ等の偶然的に発生する異常形状は合成実画像データか
ら除去可能となる。従って、基準画像データと比較する
画像データは、恒常的に発生する形状のみを示す画像デ
ータとすることができる。[Operation] The operation will be described. In the first configuration,
The control means generates real image data for each of the plurality of samples via the image input means, stores the real image data in the first storage means, and obtains a logical product of the plurality of real image data stored in the first storage means. To generate synthetic real image data that is
Of the reference image data stored in the second storage means and the combined actual image data stored in the third storage means through the comparison means, and if there is a difference, Judge as abnormal. At that time, since the combined actual image data is a logical product of a plurality of actual image data, it is the image data showing only the shape that is constantly generated. It can be removed from the image data. Therefore, the image data to be compared with the reference image data can be image data showing only the shape that is constantly generated.
【0009】第2の構成において、画像入力手段を介し
て複数の検体についてそれぞれ実画像データを生成して
第1の記憶手段へ記憶し、第1の記憶手段に記憶されて
いる複数の実画像データから合成実画像データを生成し
て第3の記憶手段へ記憶し、比較手段を介して第2の記
憶手段に記憶されている基準画像データと第3の記憶手
段に記憶されている合成実画像データとを比較し、相違
点があれば異常ありと判断する。その際、合成実画像デ
ータは複数の実画像データ同士を比較して成るデータで
あるから、恒常的に発生する形状のみを示す画像データ
であるからバリやゴミ等の偶然的に発生する異常形状は
合成実画像データから除去可能となる。従って、基準画
像データと比較する画像データは、恒常的に発生する形
状のみを示す画像データとすることができる。In the second configuration, real image data is generated for each of a plurality of specimens via the image input means and stored in the first storage means, and the plurality of real images stored in the first storage means. Synthetic real image data is generated from the data and stored in the third storage means, and the reference image data stored in the second storage means and the synthetic real image stored in the third storage means via the comparing means. The image data is compared, and if there is a difference, it is determined that there is an abnormality. At that time, since the combined real image data is data that is obtained by comparing a plurality of real image data with each other, it is the image data that shows only the shape that is constantly generated. Can be removed from the combined real image data. Therefore, the image data to be compared with the reference image data can be image data showing only the shape that is constantly generated.
【0010】[0010]
【実施例】以下、本発明の好適な実施例について添付図
面と共に詳述する。図1は実施例であるリードフレーム
(検体の一例)の形状検査用の画像処理装置のブロック
ダイアグラムである。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT A preferred embodiment of the present invention will now be described in detail with reference to the accompanying drawings. FIG. 1 is a block diagram of an image processing apparatus for shape inspection of a lead frame (an example of a sample) which is an embodiment.
【0011】10は画像入力手段であるCCDカメラで
あり、基台部16の上方に固定されている。CCDカメ
ラ10は、直下の計測位置に在るリードフレーム12の
画像を画素毎の電圧データに変換する多数のCCD素子
を内蔵する。CCDカメラ10は、当該電圧データを基
に、2値データである実画像データを生成する。14は
検査テーブルであり、基台部16上部に設けられてい
る。検査テーブル14は透明な材料で形成され、上面に
はリードフレーム12を保持可能になっている。18は
光源であり、例えばハロゲン照明装置が用いられてい
る。光源18は、基台部16内に設けられている。光源
18からは上方へ照射光20が照射される。照射光20
は、透明な検査テーブル14を透過してリードフレーム
12を照射可能になっている。従って、CCDカメラ1
0は光源18からの透過光を受光してリードフレーム1
2の画像データを生成する。Reference numeral 10 denotes a CCD camera which is an image input means and is fixed above the base 16. The CCD camera 10 incorporates a large number of CCD elements that convert the image of the lead frame 12 located immediately below the measurement position into voltage data for each pixel. The CCD camera 10 generates real image data that is binary data based on the voltage data. Reference numeral 14 is an inspection table, which is provided above the base 16. The inspection table 14 is made of a transparent material and can hold the lead frame 12 on its upper surface. Reference numeral 18 denotes a light source, and for example, a halogen lighting device is used. The light source 18 is provided in the base unit 16. Irradiation light 20 is emitted upward from the light source 18. Irradiation light 20
Can pass through the transparent inspection table 14 and irradiate the lead frame 12. Therefore, the CCD camera 1
0 is the lead frame 1 that receives the transmitted light from the light source 18.
2 image data is generated.
【0012】22はRAMであり、メモリエリアが第1
のメモリ24、第2のメモリ26、第3のメモリ28、
第4のメモリ30、第5のメモリ32、第6のメモリ3
4、・・・に分割されている。第1のメモリ24には、
CCDカメラ10が生成した実画像データであって、基
準画像データ作成用の第1のサンプルリードフレーム
(後述)の実画像データが記憶される。第2のメモリ2
6には、CCDカメラ10が生成した実画像データであ
って、基準画像データ作成用の第2のサンプルリードフ
レーム(後述)の実画像データが記憶される。Reference numeral 22 is a RAM, which has a first memory area.
Memory 24, second memory 26, third memory 28,
Fourth memory 30, fifth memory 32, sixth memory 3
It is divided into 4, ... In the first memory 24,
The actual image data generated by the CCD camera 10 and the actual image data of the first sample lead frame (described later) for creating the reference image data is stored. Second memory 2
6 stores actual image data generated by the CCD camera 10 and actual image data of a second sample lead frame (described later) for creating the reference image data.
【0013】第3のメモリ28は、第2の記憶手段とし
て、予め定められた基準となる検体の画像を示す2値デ
ータである基準画像データを記憶する。本実施例の基準
画像データは、第1のメモリ24と第2のメモリ26に
記憶されている両実画像データ同士の論理積で表される
合成画像データである。なお、基準画像データはサンプ
リングして設定するのではなく、設計データ(CADデ
ータ)を基に設定してもよい。第4のメモリ30は、第
1の記憶手段として、CCDカメラ10が生成した実画
像データであって、検体である第1のリードフレーム
(後述)の実画像データが記憶される。第5のメモリ3
2は、第1の記憶手段として、CCDカメラ10が生成
した実画像データであって、検体である第2のリードフ
レーム(後述)の実画像データが記憶される。The third memory 28 stores, as a second storage means, reference image data which is binary data indicating an image of a specimen serving as a predetermined reference. The reference image data of this embodiment is composite image data represented by a logical product of both real image data stored in the first memory 24 and the second memory 26. The reference image data may be set based on design data (CAD data) instead of being set by sampling. The fourth memory 30, as the first storage means, stores actual image data generated by the CCD camera 10 and actual image data of a first lead frame (described later) which is a sample. Fifth memory 3
2 is actual image data generated by the CCD camera 10 as the first storage means, and actual image data of a second lead frame (described later) which is a sample is stored therein.
【0014】第6のメモリ34は、第3の記憶手段とし
て、第1のリードフレームと第2のリードフレームに係
る実画像データの合成実画像データを記憶する。合成実
画像データは、第4のメモリ30と第5のメモリ32に
記憶されている両実画像データ同士の論理積で表される
合成画像データである。その他、RAM22には、オペ
レータから入力されたコマンドやデータ、後述するマイ
クロプロセッサが処理したデータ等が一時記憶される。
なお、RAM22に代えてICカード等の外部メモリを
用いることも可能である。36はROMであり、後述す
るマイクロプロセッサのオペレーティングシステム、画
像処理装置の制御プログラム、制御データ等が予め記憶
されている。なお、基準画像データがサンプリングによ
らず、予め設定されている場合はRAM22ではなくR
OM36に記憶しておいてもよい。The sixth memory 34, as a third storage means, stores combined real image data of real image data relating to the first lead frame and the second lead frame. The combined actual image data is combined image data represented by a logical product of both actual image data stored in the fourth memory 30 and the fifth memory 32. In addition, the RAM 22 temporarily stores commands and data input by an operator, data processed by a microprocessor described later, and the like.
It is also possible to use an external memory such as an IC card instead of the RAM 22. Reference numeral 36 denotes a ROM in which an operating system of a microprocessor, a control program of the image processing apparatus, control data, and the like, which will be described later, are stored in advance. If the reference image data is preset regardless of sampling, R
It may be stored in the OM 36.
【0015】38はマイクロプロセッサ(MPU)であ
り、比較手段と制御手段の機能を有する。MPU38
は、比較手段として第3のメモリ28に記憶されている
基準画像データと第6のメモリ34に記憶されている合
成実画像データとを比較して相違点を検出する。また、
MPU38は、詳しくは後述するが、制御手段として、
CCDカメラ10を介して第1のサンプルリードフレー
ムと第2のサンプルリードフレームの実画像データを生
成し、第1のメモリ24と第2のメモリ26へそれぞれ
記憶させる。MPU38は、第1のメモリ24と第2の
メモリ26に記憶されている実画像データ同士の論理積
で表される合成画像データを作成し、基準画像デーとし
て第3のメモリ28へ記憶する。Reference numeral 38 is a microprocessor (MPU) having the functions of comparing means and control means. MPU38
As a comparison means, the reference image data stored in the third memory 28 is compared with the combined actual image data stored in the sixth memory 34 to detect a difference. Also,
The MPU 38 will be described later in detail, but as a control means,
Real image data of the first sample lead frame and the second sample lead frame is generated via the CCD camera 10 and stored in the first memory 24 and the second memory 26, respectively. The MPU 38 creates composite image data represented by the logical product of the actual image data stored in the first memory 24 and the second memory 26, and stores the composite image data in the third memory 28 as reference image data.
【0016】検査に当たり、MPU38はCCDカメラ
10を介して検体である第1のリードフレームと第2の
リードフレームの実画像データを生成し、第4のメモリ
30と第5のメモリ32へそれぞれ記憶させる。MPU
38は、第4のメモリ30と第5のメモリ32に記憶さ
れている実画像データ同士の論理積で表される合成実画
像データを作成し、第6のメモリ34へ記憶する。続い
て、MPU38は、比較手段としての機能を用いて第3
のメモリ28に記憶されている基準画像データと第6の
メモリ34に記憶されている合成実画像データとを比較
し、相違点があった場合、またはその相違量が予め設定
されている許容範囲を超える場合は異常ありと判断し、
ディスプレイ(後述)へその旨表示する。その他、MP
U38は制御プログラム等に従って、画像処理装置各部
の動作を制御する。At the time of inspection, the MPU 38 generates real image data of the first lead frame and the second lead frame, which are specimens, through the CCD camera 10 and stores them in the fourth memory 30 and the fifth memory 32, respectively. Let MPU
38 creates composite real image data represented by the logical product of the real image data stored in the fourth memory 30 and the fifth memory 32, and stores it in the sixth memory 34. Subsequently, the MPU 38 uses the function as the comparison means to perform the third operation.
Of the reference image data stored in the memory 28 and the combined actual image data stored in the sixth memory 34, and if there is a difference, or the difference amount is set in advance within an allowable range. If it exceeds, it is judged as abnormal,
This is displayed on the display (described later). Other, MP
U38 controls the operation of each unit of the image processing apparatus according to a control program or the like.
【0017】40は入力装置(例えばキーボード)であ
り、MPU38へコマンドやデータを入力する。なお、
入力装置42としてはキーボードに限定されない。42
は出力手段の一例であるディスプレイであり、MPU3
8が、異常ありと判断した際にオペレータへ異常発生の
旨を報知する。出力手段としては、ディスプレイ44に
限定されず、ブザー等の音響装置等も採用可能である。
ディスプレイ42には、その他入力装置40から入力さ
れたコマンドやデータ、MPU38が処理した情報等も
表示される。Reference numeral 40 is an input device (for example, a keyboard) for inputting commands and data to the MPU 38. In addition,
The input device 42 is not limited to the keyboard. 42
Is a display which is an example of an output means,
When 8 determines that there is an abnormality, it notifies the operator of the occurrence of the abnormality. The output means is not limited to the display 44, and an acoustic device such as a buzzer can be adopted.
The display 42 also displays other commands and data input from the input device 40, information processed by the MPU 38, and the like.
【0018】次に図2をさらに参照して画像処理装置の
動作について説明する。まず、基準画像データの作成に
ついて述べる。プレス金型装置が安定運転状態になった
らCCDカメラ10を介して第1のサンプルリードフレ
ーム12aの画像50aを取り込み、実画像データを生
成する。MPU38は、第1のサンプルリードフレーム
12aに係る実画像データを第1のメモリ24へ記憶す
る。続いてCCDカメラ10を介して第2のサンプルリ
ードフレーム12bの画像50bを取り込み、実画像デ
ータを生成する。MPU38は、第2のサンプルリード
フレーム12bに係る実画像データを第2のメモリ26
へ記憶する。Next, the operation of the image processing apparatus will be described with further reference to FIG. First, the creation of reference image data will be described. When the press die device is in a stable operation state, the image 50a of the first sample lead frame 12a is captured via the CCD camera 10 to generate actual image data. The MPU 38 stores the actual image data of the first sample lead frame 12a in the first memory 24. Subsequently, the image 50b of the second sample lead frame 12b is captured via the CCD camera 10 to generate actual image data. The MPU 38 stores the actual image data relating to the second sample lead frame 12b in the second memory 26.
Memorize to
【0019】第1のサンプルリードフレーム12aと第
2のサンプルリードフレーム12bの実画像データが生
成されたら、MPU38は、第1のメモリ24と第2の
メモリ26に記憶されている実画像データ同士の論理積
で表される合成画像データを作成し、基準画像デーとし
て第3のメモリ28へ記憶する。第1のサンプルリード
フレーム12aには画像50aに示すように偶然的に発
生したバリ52aが形成され、第2のサンプルリードフ
レーム12bには画像50bに示すように偶然的に発生
したバリ52bが形成されている。しかし、基準画像デ
ータは第1のサンプルリードフレーム12aと第2のサ
ンプルリードフレーム12bの実画像データ同士の論理
積で表されるため、基準画像データに基づく画像50c
の基準リードフレーム12cにはバリ52a、52bが
示されていない。When the actual image data of the first sample lead frame 12a and the second sample lead frame 12b are generated, the MPU 38 compares the actual image data stored in the first memory 24 and the actual image data of the second memory 26 with each other. The composite image data represented by the logical product of is created and stored in the third memory 28 as reference image data. The first sample lead frame 12a is formed with an accidental burr 52a as shown in the image 50a, and the second sample lead frame 12b is formed with an accidental burr 52b as shown in the image 50b. Has been done. However, since the reference image data is represented by the logical product of the actual image data of the first sample lead frame 12a and the second sample lead frame 12b, the image 50c based on the reference image data is obtained.
Burrs 52a and 52b are not shown on the reference lead frame 12c.
【0020】リードフレームの検査に当たり、MPU3
8はCCDカメラ10を介して検体である第1のリード
フレーム12dの画像50dを取り込み、実画像データ
を生成する。MPU38は、第1のリードフレーム12
dに係る実画像データを第4のメモリ30へ記憶する。
続いてCCDカメラ10を介して第2のリードフレーム
12eの画像50eを取り込み、実画像データを生成す
る。MPU38は、第2のリードフレーム12eに係る
実画像データを第5のメモリ32へ記憶する。When inspecting the lead frame, MPU3
Reference numeral 8 captures an image 50d of the first lead frame 12d, which is a sample, via the CCD camera 10 to generate actual image data. The MPU 38 includes the first lead frame 12
The actual image data related to d is stored in the fourth memory 30.
Then, the image 50e of the second lead frame 12e is captured via the CCD camera 10 to generate actual image data. The MPU 38 stores the actual image data relating to the second lead frame 12e in the fifth memory 32.
【0021】第1のリードフレーム12dと第2のリー
ドフレーム12eの実画像データが生成されたら、MP
U38は、第4のメモリ30と第5のメモリ32に記憶
されている実画像データ同士の論理積で表される合成実
画像データを作成し、第6のメモリ34へ記憶する。第
1のリードフレーム12dには画像50dに示すように
偶然的に発生したバリ52c、ゴミ54aが示され、第
2のリードフレーム12eには画像50eに示すように
偶然的に発生したバリ52d、52e、ゴミ54bが示
されている。しかし、合成実画像データは第1のリード
フレーム12dと第2のリードフレーム12eの実画像
データ同士の論理積で表されるため、合成実画像データ
に基づく画像50fのリードフレーム12fにはバリ5
2c、52d、52e、ゴミ54a、54bが示されて
いない。When the actual image data of the first lead frame 12d and the second lead frame 12e is generated, MP
U38 creates combined real image data represented by the logical product of the real image data stored in the fourth memory 30 and the fifth memory 32, and stores it in the sixth memory 34. The first lead frame 12d shows burrs 52c and dust 54a that are accidentally generated as shown in the image 50d, and the second lead frame 12e is burrs 52d that is accidentally generated as shown in the image 50e. 52e and dust 54b are shown. However, since the combined actual image data is represented by the logical product of the actual image data of the first lead frame 12d and the second lead frame 12e, the lead frame 12f of the image 50f based on the combined actual image data has a burr 5.
2c, 52d, 52e and dust 54a, 54b are not shown.
【0022】基準画像データと合成実画像データが作成
されたらMPU38は、比較手段としての機能を用いて
第3のメモリ28に記憶されている基準画像データと第
6のメモリ34に記憶されている合成実画像データとを
比較し、相違点を検出する。検出された相違点を画像5
0gに示す。図2に示す例の場合、基準リードフレーム
12cのインナーリード56aには本来必要である透孔
58が穿設されている。しかし、検査された第1のリー
ドフレーム12dのインナーリード56bおよび第2の
リードフレーム12eのインナーリード56cには透孔
が穿設されていない。この理由は、例えばプレス金型装
置のパンチの欠損という重大な故障によるものと推測さ
れる。この状態でリードフレームが量産されれば不良品
を大量生産することになり経済的に大きな損失となって
しまう。インナーリード56bおよび56cに透孔が穿
設されていないため、合成実画像データに基づく画像5
0fのリードフレーム12fのインナーリード56dに
も透孔が無い。従って、画像50gに示す相違点は、透
孔58の有無である。When the reference image data and the combined actual image data are created, the MPU 38 is stored in the third memory 28 and the reference image data stored in the third memory 28 by using the function as a comparison means. The difference is detected by comparing with the synthetic real image data. Image 5 showing the detected differences
It shows in 0 g. In the case of the example shown in FIG. 2, a through hole 58, which is originally necessary, is formed in the inner lead 56a of the reference lead frame 12c. However, the inner lead 56b of the first lead frame 12d and the inner lead 56c of the second lead frame 12e, which have been inspected, have no through holes. The reason for this is presumed to be due to a serious failure such as punch defect of the press die device. If lead frames are mass-produced in this state, defective products will be mass-produced, resulting in a large economical loss. Since the through holes are not formed in the inner leads 56b and 56c, the image 5 based on the combined actual image data is displayed.
The inner lead 56d of the 0f lead frame 12f also has no through hole. Therefore, the difference shown in the image 50g is the presence or absence of the through hole 58.
【0023】MPU38は、画像50gに相違点(図2
の例では透孔58)が検出された場合、または当該相違
点のサイズ、面積等が予め設定されている許容範囲を超
える場合は異常ありと判断し、ディスプレイ42へその
旨表示する。ディスプレイ42へ異常ありの表示をする
ことにより、オペレータはプレス金型装置を停止して直
ちに検査、整備を行うことができる。The MPU 38 differs from the image 50g in FIG.
In the example, if the through hole 58) is detected, or if the size, area, etc. of the difference point exceeds a preset allowable range, it is determined that there is an abnormality, and that fact is displayed on the display 42. By displaying the abnormality on the display 42, the operator can stop the press die apparatus and immediately perform inspection and maintenance.
【0024】上記実施例では画像を示す各データは2値
データであったが、実画像データ、基準画像データを多
値データとし、合成画像データは複数の検体に係る複数
の実画像データ同士を比較し、画素毎に、比較した前記
多値データの内最小の値を示す値で構成してもよい。そ
の場合、制御手段は、画像入力手段を介して複数の検体
についてそれぞれ実画像データを生成して第1の記憶手
段へ記憶し、第1の記憶手段に記憶されている複数の実
画像データから合成実画像データを生成して第3の記憶
手段へ記憶し、比較手段を介して第2の記憶手段に記憶
されている基準画像データと第3の記憶手段に記憶され
ている合成実画像データとを比較し、相違点があれば異
常ありと判断する。また、基準画像データは、サンプリ
ングされた複数の検体に係る複数の実画像データを比較
し、画素毎に、比較した多値データの内最小の値を示す
値で構成される合成画像データとしてもよい。In the above embodiment, each data representing an image is binary data, but the real image data and the reference image data are multi-valued data, and the composite image data is a plurality of real image data of a plurality of specimens. Alternatively, each pixel may be configured to have a value indicating the minimum value of the compared multi-valued data. In that case, the control unit generates real image data for each of the plurality of specimens via the image input unit, stores the real image data in the first storage unit, and extracts the real image data from the plurality of real image data stored in the first storage unit. The synthetic real image data is generated and stored in the third storage means, and the reference image data stored in the second storage means and the synthetic real image data stored in the third storage means via the comparing means. And are compared, and if there is a difference, it is determined that there is an abnormality. In addition, the reference image data may also be synthetic image data configured by comparing a plurality of real image data of a plurality of sampled samples and showing, for each pixel, a value indicating the minimum value of the compared multi-valued data. Good.
【0025】多値データを扱う場合でも、合成実画像デ
ータは複数の実画像データ同士を比較して成るデータで
あるから、恒常的に発生する形状のみを示す画像データ
であるからバリやゴミ等の偶然的に発生する異常形状は
合成実画像データから除去可能となる。従って、基準画
像データと比較する画像データは、恒常的に発生する形
状のみを示す画像データとすることができる。以上、本
発明の好適な実施例について種々述べて来たが、本発明
は上述の実施例に限定されるのではなく、例えば基準画
像データを作成するためにサンプリングするサンプルリ
ードフレームの数、および合成実画像データを作成する
ためにサンプリングするリードフレームの数は3以上で
あってもよい等、発明の精神を逸脱しない範囲で多くの
改変を施し得るのはもちろんである。Even in the case of handling multi-valued data, since the composite real image data is data obtained by comparing a plurality of real image data with each other, it is the image data showing only the shape that is constantly generated, and therefore burr, dust, etc. The abnormal shape that occurs by accident can be removed from the combined real image data. Therefore, the image data to be compared with the reference image data can be image data showing only the shape that is constantly generated. Although various embodiments of the present invention have been described above, the present invention is not limited to the above-described embodiments. For example, the number of sample lead frames sampled to create reference image data, and Needless to say, many modifications can be made without departing from the spirit of the invention, for example, the number of lead frames sampled to create the composite real image data may be three or more.
【0026】[0026]
【発明の効果】本発明に係る画像処理装置を用いると、
請求項1の構成では、制御手段は画像入力手段を介して
複数の検体についてそれぞれ実画像データを生成して第
1の記憶手段へ記憶し、第1の記憶手段に記憶されてい
る複数の実画像データ同士の論理積である合成実画像デ
ータを生成して第3の記憶手段へ記憶し、比較手段を介
して第2の記憶手段に記憶されている基準画像データと
第3の記憶手段に記憶されている合成実画像データとを
比較し、相違点があれば異常ありと判断する。その際、
合成実画像データは複数の実画像データ同士の論理積で
あるから、恒常的に発生する形状のみを示す画像データ
であるからバリやゴミ等の偶然的に発生する異常形状は
合成実画像データから除去可能となる。When the image processing apparatus according to the present invention is used,
According to the configuration of claim 1, the control means generates real image data for each of the plurality of specimens via the image input means, stores the real image data in the first storage means, and stores the plurality of real images stored in the first storage means. Synthetic actual image data, which is a logical product of image data, is generated and stored in the third storage means, and is stored in the third storage means and the reference image data stored in the second storage means via the comparison means. The stored combined actual image data is compared, and if there is a difference, it is determined that there is an abnormality. that time,
Since the composite real image data is the logical product of multiple real image data, it is the image data showing only the shape that constantly occurs. It can be removed.
【0027】同様に請求項3の構成では、制御手段は画
像入力手段を介して複数の検体についてそれぞれ実画像
データを生成して第1の記憶手段へ記憶し、第1の記憶
手段に記憶されている複数の実画像データから合成実画
像データを生成して第3の記憶手段へ記憶し、比較手段
を介して第2の記憶手段に記憶されている基準画像デー
タと第3の記憶手段に記憶されている合成実画像データ
とを比較し、相違点があれば異常ありと判断する。その
際、合成実画像データは複数の実画像データ同士を比較
して成るデータであるから、恒常的に発生する形状のみ
を示す画像データであるからバリやゴミ等の偶然的に発
生する異常形状は合成実画像データから除去可能とな
る。Similarly, in the structure of claim 3, the control means generates actual image data for each of the plurality of specimens via the image input means, stores the image data in the first storage means, and stores the actual image data in the first storage means. The composite real image data is generated from the plurality of real image data stored in the third storage means, and is stored in the third storage means via the comparison means and the reference image data stored in the second storage means. The stored combined actual image data is compared, and if there is a difference, it is determined that there is an abnormality. At that time, since the combined real image data is data that is obtained by comparing a plurality of real image data with each other, it is the image data that shows only the shape that is constantly generated. Can be removed from the combined real image data.
【0028】従って、請求項1または3の構成におい
て、基準画像データと比較する画像データは、恒常的に
発生する形状のみを示す画像データとすることができる
ので、バリやゴミのような偶然に発生し、問題とされな
いような形状異常を比較する合成実画像データから除去
できるので、問題となる恒常的な異常のみを検出可能と
なる。その結果、真に点検が必要な場合にのみ原因を究
明すれば足りるので、生産性を向上させることができる
等の著効を奏する。Therefore, in the structure according to the first or third aspect, the image data to be compared with the reference image data can be image data showing only a shape that is constantly generated. Since it is possible to remove the abnormal shape that does not cause a problem from the synthetic real image data for comparison, it is possible to detect only the permanent abnormality that is a problem. As a result, it suffices to investigate the cause only when a true inspection is really required, so that a remarkable effect such as productivity can be improved.
【図1】本発明に係る画像処理装置の実施例を示したブ
ロックダイアグラム。FIG. 1 is a block diagram showing an embodiment of an image processing apparatus according to the present invention.
【図2】実施例の画像処理装置における形状検査の手順
を示した説明図。FIG. 2 is an explanatory diagram showing a shape inspection procedure in the image processing apparatus of the embodiment.
【図3】従来の画像処理装置における形状検査の手順を
示した説明図。FIG. 3 is an explanatory diagram showing a procedure of shape inspection in a conventional image processing apparatus.
10 CCDカメラ 12、12a〜12f リードフレーム 28 第3のメモリ 30 第4のメモリ 32 第5のメモリ 34 第6のメモリ 36 ROM 38 MPU 42 ディスプレイ 50a〜50f 画像 10 CCD camera 12, 12a to 12f Lead frame 28 Third memory 30 Fourth memory 32 Fifth memory 34 Sixth memory 36 ROM 38 MPU 42 Display 50a to 50f Image
Claims (5)
値データである実画像データを生成する画像入力手段
と、 該画像入力手段が生成した前記実画像データを記憶する
ための第1の記憶手段と、 予め定められた基準となる検体の画像を示す2値データ
である基準画像データを記憶するための第2の記憶手段
と、 複数の検体に係る複数の実画像データ同士の論理積であ
る合成実画像データを記憶するための第3の記憶手段
と、 前記基準画像データと合成実画像データとを比較するた
めの比較手段と、 前記画像入力手段を介して複数の検体についてそれぞれ
実画像データを生成して前記第1の記憶手段へ記憶し、
第1の記憶手段に記憶されている複数の実画像データ同
士の論理積である合成実画像データを生成して前記第3
の記憶手段へ記憶し、前記比較手段を介して前記第2の
記憶手段に記憶されている前記基準画像データと前記第
3の記憶手段に記憶されている前記合成実画像データと
を比較し、相違点があれば異常ありと判断する制御手段
とを具備することを特徴とする画像処理装置。1. An image of a specimen is captured and the image is displayed. 2
Image input means for generating real image data that is value data, first storage means for storing the real image data generated by the image input means, and an image of a specimen serving as a predetermined reference are shown. Second storage means for storing reference image data that is binary data, and third storage means for storing combined real image data that is a logical product of a plurality of real image data of a plurality of samples. And comparing means for comparing the reference image data and the combined actual image data, and generating actual image data for each of a plurality of specimens via the image input means and storing the actual image data in the first storage means,
The composite real image data, which is a logical product of a plurality of real image data stored in the first storage means, is generated to generate the third real image data.
In the storage means, and compares the reference image data stored in the second storage means with the synthetic real image data stored in the third storage means via the comparison means, An image processing apparatus comprising: a control unit that determines that there is an abnormality if there is a difference.
れた複数の検体に係る複数の実画像データ同士の論理積
である合成画像データであることを特徴とする請求項1
記載の画像処理装置。2. The reference image data is synthetic image data which is a logical product of a plurality of real image data of a plurality of sampled samples.
The image processing device described.
値データである実画像データを生成する画像入力手段
と、 該画像入力手段が生成した前記実画像データを記憶する
ための第1の記憶手段と、 予め定められた基準となる検体の画像を示す多値データ
である基準画像データを記憶するための第2の記憶手段
と、 複数の検体に係る複数の実画像データ同士を比較し、画
素毎に、比較した前記多値データの内最小の値を示す値
で構成される合成実画像データを記憶するための第3の
記憶手段と、 前記基準画像データと合成実画像データとを比較するた
めの比較手段と、 前記画像入力手段を介して複数の検体についてそれぞれ
実画像データを生成して前記第1の記憶手段へ記憶し、
第1の記憶手段に記憶されている複数の実画像データか
ら前記合成実画像データを生成して前記第3の記憶手段
へ記憶し、前記比較手段を介して前記第2の記憶手段に
記憶されている前記基準画像データと前記第3の記憶手
段に記憶されている前記合成実画像データとを比較し、
相違点があれば異常ありと判断する制御手段とを具備す
ることを特徴とする画像処理装置。3. An image input means for capturing an image of a sample and generating real image data which is multi-valued data showing the image, and a first for storing the real image data generated by the image input means. A storage means, a second storage means for storing reference image data which is multi-valued data showing an image of a specimen serving as a predetermined reference, and a plurality of real image data relating to a plurality of specimens are compared with each other. A third storage unit for storing, for each pixel, synthetic real image data composed of a value indicating the smallest value among the compared multivalued data; and the reference image data and the synthetic real image data. Comparing means for comparing and actual image data for each of a plurality of samples via the image input means, and stores the actual image data in the first storage means,
The composite real image data is generated from a plurality of real image data stored in the first storage means, stored in the third storage means, and stored in the second storage means via the comparison means. Comparing the reference image data and the combined actual image data stored in the third storage means,
An image processing apparatus comprising: a control unit that determines that there is an abnormality if there is a difference.
れた複数の検体に係る複数の実画像データを比較し、画
素毎に、比較した多値データの内最小の値を示す値で構
成される合成画像データであることを特徴とする請求項
3記載の画像処理装置。4. The reference image data is composed by comparing a plurality of sampled real image data of a plurality of specimens, and for each pixel, a value indicating the minimum value of the compared multi-valued data. The image processing apparatus according to claim 3, wherein the image processing apparatus is image data.
にその旨報知するための出力手段を具備することを特徴
とする請求項1、2、3または4記載の画像処理装置。5. The image processing apparatus according to claim 1, wherein the control means includes an output means for notifying that there is an abnormality when it is determined that there is an abnormality.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP5089661A JPH06300706A (en) | 1993-04-16 | 1993-04-16 | Image processing apparatus |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP5089661A JPH06300706A (en) | 1993-04-16 | 1993-04-16 | Image processing apparatus |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH06300706A true JPH06300706A (en) | 1994-10-28 |
Family
ID=13976942
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP5089661A Pending JPH06300706A (en) | 1993-04-16 | 1993-04-16 | Image processing apparatus |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH06300706A (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2019078565A (en) * | 2017-10-20 | 2019-05-23 | 株式会社小矢部精機 | Workpiece reading device |
| JP2024136727A (en) * | 2023-03-24 | 2024-10-04 | 三菱電機株式会社 | Terminal inspection device and semiconductor device |
-
1993
- 1993-04-16 JP JP5089661A patent/JPH06300706A/en active Pending
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2019078565A (en) * | 2017-10-20 | 2019-05-23 | 株式会社小矢部精機 | Workpiece reading device |
| JP2024136727A (en) * | 2023-03-24 | 2024-10-04 | 三菱電機株式会社 | Terminal inspection device and semiconductor device |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US6799130B2 (en) | Inspection method and its apparatus, inspection system | |
| US20250232573A1 (en) | System and method of object detection using ai deep learning | |
| US6133545A (en) | Welding robot | |
| JP2018004272A (en) | Pattern inspection device and pattern inspection method | |
| JPH06300706A (en) | Image processing apparatus | |
| JP3806461B2 (en) | Appearance inspection equipment | |
| CN109447403A (en) | A kind of welding defect analysis system and method based on big data | |
| JPH04238592A (en) | Automatic bundled bar steel tally device | |
| KR100499163B1 (en) | Wafer defect classification method | |
| US10852244B2 (en) | Image processing apparatus, image processing method, and recording medium | |
| JP2543370B2 (en) | Sealant inspection method using visual sensor | |
| WO2024065189A1 (en) | Method, system, apparatus, electronic device, and storage medium for evaluating work task | |
| JPH0735699A (en) | Method and apparatus for detecting surface defect | |
| US20220327681A1 (en) | Production-speed component inspection system and method | |
| KR20230116537A (en) | Defective product sorting device and sorting method based on deep learning technology | |
| JP3090061U (en) | Immediate reporting system for printed board surface defects | |
| JP2006078381A (en) | Display method of display of image processing apparatus | |
| KR100369832B1 (en) | Managing apparatus and method for hindrance article | |
| JP2000329594A (en) | Data collection processing device and recording medium on which data collection processing program is recorded | |
| CN109115782A (en) | Optical defect detection device based on multi-resolution image | |
| JPWO2020017546A1 (en) | Imaging device and imaging method | |
| JP2006220528A (en) | Defect classification system and defect classification method | |
| KR20000005053U (en) | Wafer break detector | |
| JP2020017163A (en) | Stamp checker, stamp inspection method and object inspection device | |
| JPS6315116B2 (en) |