JPH06160054A - Image processing device - Google Patents

Image processing device

Info

Publication number
JPH06160054A
JPH06160054A JP4332529A JP33252992A JPH06160054A JP H06160054 A JPH06160054 A JP H06160054A JP 4332529 A JP4332529 A JP 4332529A JP 33252992 A JP33252992 A JP 33252992A JP H06160054 A JPH06160054 A JP H06160054A
Authority
JP
Japan
Prior art keywords
image data
sample
data
input means
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
JP4332529A
Other languages
Japanese (ja)
Inventor
Yoshifumi Atono
由文 後野
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.)
Shinko Electric Industries Co Ltd
Original Assignee
Shinko Electric Industries Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shinko Electric Industries Co Ltd filed Critical Shinko Electric Industries Co Ltd
Priority to JP4332529A priority Critical patent/JPH06160054A/en
Publication of JPH06160054A publication Critical patent/JPH06160054A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To correct the displacement of a specimen to a measuring reference position between two cameras, by forming image data with first and second cameras on the basis of voltage data per picture element of a specimen image existing in first and second measuring positions. CONSTITUTION:A specific part of a reference lead frame existing in a first measuring position is put as a linear edge 44 of an inner lead 42. A first reference position is indicated by a pointer 48a in a scale 46 attached on a slider. An MPU 28 drives an X-Y table 22 and moves the reference lead frame to a second measuring position when the first reference position is determined in sampling measurement. By the mechanical error of the X-Y table 22, the linear edge 44 of the inner lead 42 is biased by a distance D to right from a second measuring position. The MPU 28 finds the distance D by operating to store it in a memory 36. When a biased quantity is determined by this, the real width measurement of the inner lead is carried out.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は画像処理装置に関し、一
層詳細には検体の画像を画素毎の電圧データを基に第1
の画像データを生成する第1の入力手段と第2の入力手
段とを備える画像処理装置に関する
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing apparatus, and more specifically, a first example of an image of a sample based on voltage data for each pixel.
An image processing apparatus including first input means and second input means for generating image data of

【0002】[0002]

【従来の技術】従来、例えば検体であるリードフレーム
のインナーリードの寸法等を計測するために画像処理技
術が利用されている。昨今、高精度の計測のために画像
倍率を変更したり、計測作業の高速化を目的として入力
手段として複数のCCDカメラを用いる画像処理装置が
採用されている。画像倍率を変更するために2個の入力
手段を有する画像処理装置の場合、等倍率の第1のカメ
ラでインナーリードの指定部分の計測を行う。当該部分
をさらに精密に計測したい場合、高倍率の第2のカメラ
で同部分の計測を行う。計測は通常、カメラの視野内の
特定位置を計測基準位置として寸法等を計測する。この
計測はコンピュータシステムが行う。計測するインナー
リードを第1のカメラと第2のカメラの間で対応させる
ために、リードフレームを移動させるための搬送機構が
設けられている。また、リードフレームを移動させるこ
となく、同一のレンズでインナーリードを捕らえ、切換
手段を介して光路を切り換えることにより、第1のカメ
ラと第2のカメラを切り換える方式の画像処理装置も有
る。
2. Description of the Related Art Conventionally, image processing technology has been used to measure, for example, the size of inner leads of a lead frame which is a sample. 2. Description of the Related Art Recently, image processing apparatuses that use a plurality of CCD cameras as input means have been adopted for the purpose of changing the image magnification for highly accurate measurement and increasing the speed of measurement work. In the case of an image processing apparatus having two input means for changing the image magnification, the designated portion of the inner lead is measured by the first camera having the same magnification. When it is desired to measure the portion more precisely, the same portion is measured with a second camera having a high magnification. In the measurement, dimensions and the like are usually measured using a specific position within the visual field of the camera as a measurement reference position. This measurement is performed by the computer system. A transport mechanism for moving the lead frame is provided in order to make the inner leads to be measured correspond between the first camera and the second camera. There is also an image processing apparatus of a type in which the inner lead is caught by the same lens and the optical path is switched via the switching means without moving the lead frame, thereby switching the first camera and the second camera.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、上記の
従来の複数のカメラを有する画像処理装置には次のよう
な課題がある。第1のカメラと第2のカメラは検査する
インナーリードの特定位置を確実に視野内の計測基準位
置に合わせなければならない。第1のカメラの場合、リ
ードフレームの特定位置と対応している任意の位置を計
測基準位置として設定できるが、第2のカメラの場合、
計測基準位置は第1のカメラの計測基準位置と対応した
位置でなければならない。ところが、搬送機構はいくら
精密に製造されても機械的な誤差をゼロにすることがで
きない。そのため、リードフレームを搬送すると第2の
カメラの計測基準位置とインナーリードの特定位置との
間にはズレが生じてしまい、計測制度の低下、計測信頼
性の低下を招来してしまうという課題がある。そこで、
第1のカメラおよび/または第2のカメラの取り付け位
置を微調整可能な画像処理装置も提案されているが、微
調整機構を設けても搬送機構の振動等がこの微調整機構
に影響を与え、却ってズレ発生の原因となることが判明
した。
However, the above-described conventional image processing apparatus having a plurality of cameras has the following problems. The first camera and the second camera must ensure that the specific position of the inner lead to be inspected is aligned with the measurement reference position within the field of view. In the case of the first camera, an arbitrary position corresponding to the specific position of the lead frame can be set as the measurement reference position, but in the case of the second camera,
The measurement reference position must be a position corresponding to the measurement reference position of the first camera. However, no matter how precisely the transport mechanism is manufactured, the mechanical error cannot be reduced to zero. Therefore, when the lead frame is conveyed, a deviation occurs between the measurement reference position of the second camera and the specific position of the inner lead, which causes a decrease in measurement accuracy and a decrease in measurement reliability. is there. Therefore,
Although an image processing apparatus capable of finely adjusting the mounting position of the first camera and / or the second camera has been proposed, even if a fine adjustment mechanism is provided, vibration of the transport mechanism affects the fine adjustment mechanism. On the contrary, it became clear that it would cause a gap.

【0004】光路切換式の画像処理装置の場合、搬送機
構や微調整機構に起因するズレの発生は防止し得るが、
光路を切り換える切換手段(例えば反射鏡)の取付精度
が低いと第2のカメラへの光軸にズレが生じ、前者と同
様、第2のカメラの計測基準位置とインナーリードの特
定位置との間にはズレが生じてしまい、計測制度の低
下、計測信頼性の低下を招来してしまうという課題があ
る。従って、本発明は第1の入力手段と第2の入力手段
との間の計測基準位置に対する検体のズレを補正可能な
画像処理装置を提供することを目的とする。
In the case of the optical path switching type image processing apparatus, it is possible to prevent the occurrence of the shift due to the transport mechanism and the fine adjustment mechanism.
If the mounting accuracy of the switching means (for example, a reflecting mirror) for switching the optical path is low, the optical axis to the second camera is deviated, and like the former case, between the measurement reference position of the second camera and the specific position of the inner lead. However, there is a problem in that the measurement system and the measurement reliability are deteriorated due to the deviation. Therefore, it is an object of the present invention to provide an image processing apparatus capable of correcting the displacement of the sample with respect to the measurement reference position between the first input means and the second input means.

【0005】[0005]

【課題を解決するための手段】上記課題を解決するため
本発明は次の構成を備える。すなわち、まず第1の構成
は、第1の計測位置に在る検体の画像を画素毎の電圧デ
ータを基に第1の画像データを生成する第1の入力手段
と、該第1の入力手段に対する位置が固定され、第2の
計測位置に在る検体の画像を画素毎の電圧データを基に
第2の画像データを生成する第2の入力手段と、検体を
前記第1の計測位置から第2の計測位置へ移動させるた
めの搬送機構と、前記第1の画像データを記憶するため
の第1の記憶手段と、前記第2の画像データを記憶する
ための第2の記憶手段と、基準検体が前記第1の計測位
置に在る場合の前記第1の入力手段の視野内における基
準検体の特定箇所の位置を、第1の入力手段の視野内に
おける第1の基準位置とし、前記搬送機構を介して基準
検体が前記第2の計測位置へ移動された際に前記第2の
入力手段の視野内における基準検体の前記特定箇所の位
置と、第2の入力手段の視野内における前記第1の基準
位置に対応する第2の基準位置との偏倚量を予め記憶し
ておくための第3の記憶手段と、前記第2の画像データ
を基に検体の指定部分の寸法等の物理データを求め、該
物理データを前記偏倚量で補正した補正物理データを求
める演算手段と、前記第2の入力手段を介して検体の第
2の画像データを生成し、該第2の画像データを前記第
2の記憶手段へ記憶し、該第2の画像データを基に前記
演算手段を介して検体の前記補正物理データを求める制
御手段とを具備することを特徴とする。
In order to solve the above problems, the present invention has the following constitution. That is, first, the first configuration includes first input means for generating first image data of the image of the sample at the first measurement position based on voltage data for each pixel, and the first input means. A second input means for generating a second image data based on the voltage data for each pixel of the image of the sample at the second measurement position whose position is fixed, and the sample from the first measurement position. A transport mechanism for moving to a second measurement position, a first storage means for storing the first image data, and a second storage means for storing the second image data, The position of the specific location of the reference sample in the field of view of the first input means when the reference sample is at the first measurement position is defined as the first reference position in the field of view of the first input means, and When the reference sample is moved to the second measurement position via the transport mechanism, The deviation amount between the position of the specific portion of the reference sample in the visual field of the second input means and the second reference position corresponding to the first reference position in the visual field of the second input means is stored in advance. And a third storage means for storing the physical data such as dimensions of a designated portion of the specimen based on the second image data, and a computing means for obtaining corrected physical data obtained by correcting the physical data with the deviation amount. And generating second image data of the sample through the second input means, storing the second image data in the second storage means, and performing the calculation based on the second image data. Control means for obtaining the corrected physical data of the sample via the means.

【0006】また第2の構成は、計測位置に在る検体の
画像を画素毎の電圧データを基に第1の画像データを生
成する第1の入力手段と、該第1の入力手段に対する位
置が固定され、前記計測位置に在る検体の画像を画素毎
の電圧データを基に第2の画像データを生成する第2の
入力手段と、画像データの生成を前記第1の入力手段と
前記第2の入力手段で切り換えるための切換手段と、前
記第1の画像データを記憶するための第1の記憶手段
と、前記第2の画像データを記憶するための第2の記憶
手段と、基準検体が前記計測位置に在る場合の前記第1
の入力手段の視野内における基準検体の特定箇所の位置
を、第1の入力手段の視野内における第1の基準位置と
し、前記切換手段を介して画像データ切り換えた際に前
記第2の入力手段の視野内における基準検体の前記特定
箇所の位置と、第2の入力手段の視野内における前記第
1の基準位置に対応する第2の基準位置との偏倚量を予
め記憶しておくための第3の記憶手段と、前記第2の画
像データを基に検体の指定部分の寸法等の物理データを
求め、該物理データを前記偏倚量で補正した補正物理デ
ータを求める演算手段と、前記第2の入力手段を介して
検体の第2の画像データを生成し、該第2の画像データ
を前記第2の記憶手段へ記憶し、該第2の画像データを
基に前記演算手段を介して検体の前記補正物理データを
求める制御手段とを具備することを特徴とする。さら
に、上記両構成において、前記演算手段は第1の画像デ
ータを基に検体の指定部分の寸法等の物理データを求
め、前記制御手段は前記第1の画像データに基づく物理
データと前記補正物理データとを比較するようにしても
よい。
In the second configuration, the first input means for generating the first image data of the image of the sample at the measurement position based on the voltage data for each pixel, and the position for the first input means. A second input means for generating second image data based on voltage data for each pixel of the image of the sample at the measurement position, and the first input means for generating the image data. Switching means for switching by the second input means, first storage means for storing the first image data, second storage means for storing the second image data, and a reference The first when the sample is at the measurement position
The position of the specific portion of the reference sample in the visual field of the input means is set as the first reference position in the visual field of the first input means, and the second input means is used when the image data is switched via the switching means. For storing in advance the amount of deviation between the position of the specific portion of the reference sample in the field of view of the second reference position and the second reference position corresponding to the first reference position in the field of view of the second input means. And storage means for calculating physical data such as dimensions of a designated portion of the sample based on the second image data, and calculating corrected physical data obtained by correcting the physical data with the deviation amount. Second image data of the specimen is generated via the input means of the second storage means, the second image data is stored in the second storage means, and the specimen is calculated based on the second image data via the calculation means. And a control means for obtaining the corrected physical data of Characterized by comprising. Further, in both of the above-mentioned configurations, the arithmetic means obtains physical data such as a size of a designated portion of the specimen based on the first image data, and the control means has physical data based on the first image data and the correction physical You may make it compare with data.

【0007】[0007]

【作用】作用について説明する。第1の構成において、
制御手段は第2の画像データを基に検体の指定部分の寸
法等の物理データを求め、その物理データを予め計測し
ておいた偏倚量で補正した補正物理データを求めるの
で、搬送機構の機械的誤差により、第2の入力手段の第
2の基準位置に対する検体の位置ズレが生じても、当該
ズレを補正した補正物理データを求めることが可能とな
る。また、第2の構成において、制御手段は第2の画像
データを基に検体の指定部分の寸法等の物理データを求
め、その物理データを予め計測しておいた偏倚量で補正
した補正物理データを求めるので、切換手段に起因する
光軸ズレにより、第2の入力手段の第2の基準位置に対
する検体の位置ズレが生じても、当該ズレを補正した補
正物理データを求めることが可能となる。また、両構成
において、演算手段は第1の画像データを基に検体の指
定部分の寸法等の物理データを求め、制御手段は第1の
画像データに基づく物理データと補正物理データとを比
較する構成にすると、両データの差異を求めることが可
能となる。
[Operation] The operation will be described. In the first configuration,
The control means obtains the physical data such as the dimensions of the designated portion of the sample based on the second image data, and obtains the corrected physical data obtained by correcting the physical data with the bias amount measured in advance. Even if a positional deviation of the sample with respect to the second reference position of the second input unit occurs due to a physical error, it is possible to obtain corrected physical data that corrects the positional deviation. Further, in the second configuration, the control means obtains physical data such as the dimensions of the designated portion of the sample based on the second image data, and the physical data is corrected by the pre-measured deviation amount. Therefore, even if the position shift of the sample with respect to the second reference position of the second input unit occurs due to the optical axis shift caused by the switching unit, it becomes possible to obtain the corrected physical data in which the shift is corrected. . Further, in both configurations, the calculation means obtains physical data such as the size of the designated portion of the sample based on the first image data, and the control means compares the physical data based on the first image data with the corrected physical data. With the configuration, it is possible to find the difference between the two data.

【0008】[0008]

【実施例】以下、本発明の好適な実施例について添付図
面と共に詳述する。 (第1実施例)第1実施例について図1〜図4を参照し
て説明する。図1は第1実施例の画像処理装置のブロッ
クダイアグラムであり、図2はその機械的構成を示した
説明図である。なお、第1実施例では検体の一例である
リードフレームのインナーリードのリード幅を計測する
画像処理装置を例に挙げて説明する。10は第1の入力
手段である第1のCCDカメラであり、直下の第1の計
測位置に在るリードフレーム14の画像を画素毎の電圧
データに変換する多数のCCD素子16aを内蔵する。
第1のカメラ10は、前記電圧データを基に2値信号で
ある第1の画像データを生成する。第1のカメラ10は
固定部材18へしっかり固定されている。なお、固定部
材18はその位置が固定されている。
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. (First Embodiment) A first embodiment will be described with reference to FIGS. FIG. 1 is a block diagram of the image processing apparatus of the first embodiment, and FIG. 2 is an explanatory diagram showing its mechanical structure. In the first embodiment, an image processing apparatus that measures the lead width of the inner lead of the lead frame, which is an example of the sample, will be described as an example. Reference numeral 10 denotes a first CCD camera which is a first input means, and has a large number of CCD elements 16a for converting an image of the lead frame 14 located immediately below the first measurement position into voltage data for each pixel.
The first camera 10 generates first image data, which is a binary signal, based on the voltage data. The first camera 10 is firmly fixed to the fixing member 18. The position of the fixing member 18 is fixed.

【0009】20は第2の入力手段である第2のCCD
カメラであり、直下の第2の計測位置に在るリードフレ
ーム14の画像を画素毎の電圧データに変換する多数の
CCD素子16bを内蔵する。第2のカメラ20は、前
記電圧データを基に2値信号である第2の画像データを
生成する。第2のカメラ20も固定部材18へしっかり
固定されると共に、第1のカメラ10に対する位置も固
定されている。22は搬送機構の一例であるX−Yテー
ブルであり、モータを含む公知の駆動機構によりスライ
ダ24は水平面内でX−Y方向へ移動(2次元運動)可
能になっている。スライダ24は上面の所定位置にリー
ドフレーム14を保持可能になっている。X−Yテーブ
ル22は、第1のカメラ10で第1の画像データを生成
する場合、スライダ24を移動させてリードフレーム1
4を第1の計測位置(図2に実線で示す位置)に配置す
る。一方、第2のカメラ20で第2の画像データを生成
する場合、スライダ24を移動させてリードフレーム1
4を第2の計測位置(図2に2点鎖線で示す位置)に配
置する。
Reference numeral 20 is a second CCD which is a second input means.
It is a camera and incorporates a large number of CCD elements 16b for converting the image of the lead frame 14 located immediately below the second measurement position into voltage data for each pixel. The second camera 20 generates second image data which is a binary signal based on the voltage data. The second camera 20 is also firmly fixed to the fixing member 18, and the position with respect to the first camera 10 is also fixed. Reference numeral 22 denotes an XY table which is an example of a transport mechanism, and the slider 24 can be moved (two-dimensional movement) in the XY directions within a horizontal plane by a known drive mechanism including a motor. The slider 24 can hold the lead frame 14 at a predetermined position on the upper surface. When the first camera 10 generates the first image data, the XY table 22 moves the slider 24 to move the lead frame 1.
4 is placed at the first measurement position (the position indicated by the solid line in FIG. 2). On the other hand, when the second camera 20 generates the second image data, the slider 24 is moved to move the lead frame 1.
4 is arranged at the second measurement position (the position indicated by the chain double-dashed line in FIG. 2).

【0010】26はROMであり、マイクロプロセッサ
(MPU)28のオペレーティングシステム、画像処理
装置の制御プログラム、制御データ等が予め記憶されて
いる。30はRAMであり、メモリエリアを第1のメモ
リ32、第2のメモリ34、第3のメモリ36、・・・
・・に分割されている。第1のメモリ32は、第1の記
憶手段として、第1のカメラ10で生成された第1の画
像データを記憶する。第2のメモリ34は、第2の記憶
手段として、第2のカメラ20で生成された第2の画像
データを記憶する。
Reference numeral 26 denotes a ROM in which an operating system of the microprocessor (MPU) 28, a control program of the image processing apparatus, control data and the like are stored in advance. Reference numeral 30 denotes a RAM, and the memory area is a first memory 32, a second memory 34, a third memory 36, ...
.. is divided into The first memory 32 stores the first image data generated by the first camera 10 as a first storage unit. The second memory 34 stores, as a second storage unit, the second image data generated by the second camera 20.

【0011】第3のメモリ36は、予め計測された偏倚
量が記憶される。ここで偏倚量について説明する。基準
となる形状、サイズを有する基準リードフレームが第1
の計測位置に在る場合に、第1のカメラ10の視野内に
おける基準リードフレームの特定箇所(例えばインナー
リードの直線エッジ部分)の位置を、第1のカメラ10
の視野内における第1の基準位置とする。X−Yテーブ
ル22を介して基準リードフレームが第2の計測位置へ
移動された際に、第2のカメラ20の視野内における基
準リードフレームの前記特定箇所の位置と、第2のカメ
ラ20の視野内において第1の基準位置に対応する第2
の基準位置との差が偏倚量である。偏倚量は偏倚長や、
偏倚量に相当する第2のカメラ20の画像を構成する画
素数で表すことができる。偏倚量は実際の計測に先立
ち、基準リードフレームをサンプリング計測を行うこと
によって求める。なお、偏倚量が判っている場合はRO
M26に制御データとして記憶しておいてもよい。その
他、RAM30にはオペレータから入力されたコマンド
やデータ、MPU28が処理したデータ等が一時記憶さ
れる。なお、第1の記憶手段、第2の記憶手段、第3の
記憶手段としてはRAM30に代えてICカード等の外
部メモリを用いることも可能である。
The third memory 36 stores the amount of deviation measured in advance. Here, the deviation amount will be described. The first is a standard lead frame that has a standard shape and size.
, The position of a specific portion (for example, a straight edge portion of the inner lead) of the reference lead frame within the field of view of the first camera 10 is set to the first camera 10.
The first reference position within the field of view. When the reference lead frame is moved to the second measurement position via the XY table 22, the position of the specific position of the reference lead frame in the visual field of the second camera 20 and the position of the second camera 20. The second corresponding to the first reference position in the field of view
The difference from the reference position of is the amount of deviation. The amount of deviation is the deviation length,
It can be represented by the number of pixels forming the image of the second camera 20 corresponding to the deviation amount. The deviation amount is obtained by sampling and measuring the reference lead frame prior to the actual measurement. If the deviation amount is known, RO
It may be stored in M26 as control data. In addition, the RAM 30 temporarily stores commands and data input by the operator, data processed by the MPU 28, and the like. An external memory such as an IC card can be used instead of the RAM 30 as the first storage means, the second storage means, and the third storage means.

【0012】MPU28は、演算手段および制御手段と
しての機能を有する。MPU28は演算手段として、第
1のメモリ32に記憶されている第1の画像データを基
にインナーリードの指定部分の幅(物理データの一例)
を求める。また、第2のメモリ34に記憶されている第
2の画像データを基にインナーリードの前記指定部分の
幅を求め、その第2の画像データを基に求めた幅を第3
のメモリ36に記憶されている偏倚量で補正した補正幅
(補正物理データ)を求める。
The MPU 28 has a function as a calculation means and a control means. The MPU 28 serves as a calculation means, based on the first image data stored in the first memory 32, the width of the designated portion of the inner lead (an example of physical data).
Ask for. Further, the width of the designated portion of the inner lead is obtained based on the second image data stored in the second memory 34, and the width obtained based on the second image data is set to the third value.
The correction width (correction physical data) corrected by the deviation amount stored in the memory 36 of FIG.

【0013】MPU28は、制御手段として、第1のカ
メラ10を介してリードフレーム14の第1の画像デー
タを生成し、第1のメモリ32へ記憶する。ここで、M
PU28はリードフレーム14のインナーリードの指定
部分の幅を演算機能を利用して求める。例えば、この求
まった幅について高倍率の第2のカメラ20で高精度の
計測が必要と判断される場合、MPU28はX−Yテー
ブル22を駆動させ、リードフレーム14を第1の計測
位置から第2の計測位置へ移動させる。そこで、第2の
カメラ20を介してリードフレーム14の第2の画像デ
ータを生成し、第2のメモリ34へ記憶する。第2の画
像データが求まったら、MPU28は演算機能を使い、
第2の画像データからインナーリードの当該指定部分の
補正幅を求める。MPU28はこの補正幅と第1の画像
データに基づく幅とを比較し、当該指定部分の幅が良好
か否かを判断する。その他、MPU28は制御プログラ
ムに従って、画像処理装置各部の動作を制御する。
The MPU 28 as control means generates first image data of the lead frame 14 via the first camera 10 and stores it in the first memory 32. Where M
The PU 28 obtains the width of the designated portion of the inner lead of the lead frame 14 using the arithmetic function. For example, when it is determined that the second camera 20 having a high magnification needs to perform highly accurate measurement on the obtained width, the MPU 28 drives the XY table 22 to move the lead frame 14 from the first measurement position to the first measurement position. Move to measurement position 2. Therefore, the second image data of the lead frame 14 is generated via the second camera 20 and stored in the second memory 34. When the second image data is obtained, the MPU 28 uses the arithmetic function,
The correction width of the designated portion of the inner lead is obtained from the second image data. The MPU 28 compares this corrected width with the width based on the first image data to determine whether or not the width of the designated portion is good. In addition, the MPU 28 controls the operation of each unit of the image processing apparatus according to the control program.

【0014】38はキーボードであり、MPU28へコ
マンドやデータを入力する。また、キーボード38を介
して偏倚量を入力することができる。偏倚量を補正した
いような場合、キーボード38から入力可能である。な
お、入力手段としてはキーボード38に限定されない。
40はディスプレイであり、MPU28が処理した情
報、キーボード38から入力されたデータ等が表示され
る。なお、表示手段としてはディスプレイ40に限定さ
れない。
Reference numeral 38 is a keyboard for inputting commands and data to the MPU 28. In addition, the amount of deviation can be input via the keyboard 38. When it is desired to correct the deviation amount, it can be input from the keyboard 38. The input means is not limited to the keyboard 38.
A display 40 displays information processed by the MPU 28, data input from the keyboard 38, and the like. The display means is not limited to the display 40.

【0015】次に図3および図4をさらに参照して動作
について説明する。まず、偏倚量を求めるサンプリング
計測の動作について説明する。図3には第1のカメラ1
0の画像を示す。このとき、基準リードフレームはスラ
イダ24上に保持され、第1の計測位置に在る。基準リ
ードフレームの特定箇所はインナーリード42の直線エ
ッジ44とする。従って、第1の基準位置は、スライダ
24上に取り付けてあるスケール46においてポインタ
48aが示す位置である。MPU28はサンプリング計
測において、この第1の基準位置をRAM30に記憶し
ておく。第1の基準位置が決定したら、MPU28はX
−Yテーブル22を駆動して基準リードフレーム14を
第2の計測位置へ移動させる。
Next, the operation will be described with further reference to FIGS. 3 and 4. First, the operation of sampling measurement for obtaining the amount of deviation will be described. The first camera 1 is shown in FIG.
An image of 0 is shown. At this time, the reference lead frame is held on the slider 24 and is in the first measurement position. The specific portion of the reference lead frame is the straight edge 44 of the inner lead 42. Therefore, the first reference position is the position indicated by the pointer 48a on the scale 46 mounted on the slider 24. The MPU 28 stores this first reference position in the RAM 30 during sampling measurement. When the first reference position is determined, the MPU 28 makes X
-The Y table 22 is driven to move the reference lead frame 14 to the second measurement position.

【0016】図4には第2のカメラ20の画像を示す。
このとき、基準リードフレームは第2の計測位置に在
る。ポインタ48bに示すスケール46の位置が図3の
第1の基準位置に対応する第2の基準位置である。しか
し、X−Yテーブル22の機械的誤差によりインナーリ
ード42の直線エッジ44は第2の基準位置より右方向
へ距離Dだけ偏倚している。MPU28はこの距離Dを
演算で求め、偏倚量=+Dとして第3のメモリ36へ記
憶する。これにより偏倚量が決定される。偏倚量Dが決
定されたら実際のインナーリードの幅計測を行う。
FIG. 4 shows an image of the second camera 20.
At this time, the reference lead frame is in the second measurement position. The position of the scale 46 indicated by the pointer 48b is the second reference position corresponding to the first reference position in FIG. However, due to a mechanical error of the XY table 22, the straight edge 44 of the inner lead 42 is displaced rightward from the second reference position by the distance D. The MPU 28 calculates this distance D and stores it in the third memory 36 with the deviation amount = + D. This determines the amount of bias. When the deviation amount D is determined, the actual width of the inner lead is measured.

【0017】第2のカメラ20による高精度の計測が必
要となった場合、計測されるリードフレーム14のイン
ナーリードの特定箇所(図4の直線エッジ44に相当)
は常に第2の基準位置に対して+Dだけ偏倚しているの
で、MPU28はインナーリードの幅計測を第2の基準
位置から行った後、偏倚量D分差し引く演算を行い補正
幅を求める。この補正幅を、第1の画像データに基づき
求められた幅と比較し、その差異が予め定められた許容
範囲内であれば、指定部分の幅が良好であると判断し、
次の計測に備える。一方、当該差異が許容範囲外であれ
ば、指定部分の幅が不良であると判断し、ディスプレイ
40に表示し、オペレータへ報知する。
When highly accurate measurement by the second camera 20 is required, a specific portion of the inner lead of the lead frame 14 to be measured (corresponding to the straight edge 44 in FIG. 4).
Is always deviated by + D from the second reference position, the MPU 28 measures the width of the inner lead from the second reference position and then performs a calculation for subtracting the deviation amount D to obtain the correction width. This corrected width is compared with the width obtained based on the first image data, and if the difference is within a predetermined allowable range, it is determined that the width of the designated portion is good,
Prepare for the next measurement. On the other hand, if the difference is outside the allowable range, it is determined that the width of the designated portion is defective, the width is displayed on the display 40, and the operator is notified.

【0018】(第2実施例)第2実施例について図5と
共に説明する。なお、第1実施例と同一の構成部材につ
いては第1実施例と同一の符号を附し、説明は省略す
る。第2実施例の画像処理装置は光路切換式の画像処理
装置である。図5において、70a、70bは光路管で
ある。光路管70aの下端にはレンズ72が取り付けら
れ、上端は第1のカメラ10へ連結されている。一方、
光路管70bはL字状に形成され、下端は光路管70a
の中途部へ連絡し、上端は第2のカメラ20へ連絡して
いる。
(Second Embodiment) A second embodiment will be described with reference to FIG. The same components as those in the first embodiment are designated by the same reference numerals as those in the first embodiment, and the description thereof will be omitted. The image processing apparatus of the second embodiment is an optical path switching type image processing apparatus. In FIG. 5, 70a and 70b are optical path tubes. A lens 72 is attached to the lower end of the optical path tube 70a, and the upper end is connected to the first camera 10. on the other hand,
The optical path tube 70b is formed in an L shape, and the lower end is the optical path tube 70a.
The second camera 20 is connected to the second camera 20 at the upper end.

【0019】74は切換手段の一例であるミラーシャッ
タであり、光路管70a内であって、光路管70bと連
絡している部分に設けられている。ミラーシャッタ74
は軸76を中心として矢印Xのように回動可能になって
いる。ミラーシャッタ74は図5に実線で示す位置に在
ると、右側面が反射面に形成されており、光路を右方向
へ90度転換させることができる。その結果、レンズ7
2を通過した光は第2のカメラ20へ送ることが可能に
なっている。一方、ミラーシャッタ74が図5に2点鎖
線で示す位置に在ると、レンズ72を通過した光は光路
78aで進み、障害物が無いので直接第1のカメラ10
へ送ることが可能になっている。すなわち、第2実施例
では第1実施例のX−Yテーブル22の代わりにミラー
シャッタ74が設けられている。
Reference numeral 74 denotes a mirror shutter which is an example of a switching means, and is provided in the optical path tube 70a at a portion communicating with the optical path tube 70b. Mirror shutter 74
Is rotatable about the shaft 76 as shown by an arrow X. When the mirror shutter 74 is at the position shown by the solid line in FIG. 5, the right side surface is formed as a reflecting surface, and the optical path can be turned 90 degrees to the right. As a result, lens 7
The light passing through 2 can be sent to the second camera 20. On the other hand, when the mirror shutter 74 is located at the position shown by the chain double-dashed line in FIG.
It is possible to send to. That is, in the second embodiment, a mirror shutter 74 is provided instead of the XY table 22 of the first embodiment.

【0020】80はミラーシャッタ駆動部であり、モー
タ、ソレノイド等を含む回転アクチュエータから成り、
ミラーシャッタ74を矢印Xに示すように回動させる。
82は固定ミラーであり、光路管70aから光路管70
bへ曲折された光は光路78bで第2のカメラ20へ送
られる。従って、第2実施例では、検体であるリードフ
レーム14を移動させることなく、ミラーシャッタ74
を回動させることで第1のカメラ10と第2のカメラ2
0での計測を切り換えることができる。
Reference numeral 80 denotes a mirror shutter drive section, which comprises a rotary actuator including a motor, a solenoid, and the like.
The mirror shutter 74 is rotated as shown by arrow X.
Reference numeral 82 denotes a fixed mirror, which is used for the light path tube 70a to the light path tube 70
The light bent to b is sent to the second camera 20 on the optical path 78b. Therefore, in the second embodiment, the mirror shutter 74 is not moved without moving the lead frame 14, which is the sample.
By rotating the first camera 10 and the second camera 2
The measurement at 0 can be switched.

【0021】第2実施例において、例えばミラーシャッ
タ74や固定シャッタ74の機械的誤差、取付誤差によ
り第2のカメラ20への光路78b(光軸)が所定の光
路からずれることがある。その結果、第2のカメラ20
の第2の基準位置とリードフレーム14の特定位置(例
えばインナーリードの直線エッジ)との間にズレが生じ
ることがある。この場合であっても、第1実施例と同様
に予め偏倚量Dを求めておけば補正物理データを求める
ことができる。以上、本発明の好適な実施例について種
々述べてきたが、本発明は上述の実施例に限定されるの
ではなく、例えば入力手段の数は2以上の場合でもその
うちの2個の入力手段については本発明を採用し得る
等、発明の精神を逸脱しない範囲でさらに多くの改変を
施し得るのはもちろんである。
In the second embodiment, the optical path 78b (optical axis) to the second camera 20 may deviate from the predetermined optical path due to, for example, mechanical error or mounting error of the mirror shutter 74 or the fixed shutter 74. As a result, the second camera 20
There may be a deviation between the second reference position and the specific position of the lead frame 14 (for example, a straight edge of the inner lead). Even in this case, the corrected physical data can be obtained by previously obtaining the deviation amount D as in the first embodiment. Although various preferred embodiments of the present invention have been described above, the present invention is not limited to the above-described embodiments. For example, even when the number of input means is two or more, two input means of them will be described. Needless to say, many modifications can be made without departing from the spirit of the invention, such as adopting the present invention.

【0022】[0022]

【発明の効果】本発明に係る画像処理装置を用いると、
まず請求項1の構成では、制御手段は第2の画像データ
を基に検体の指定部分の寸法等の物理データを求め、そ
の物理データを予め計測しておいた偏倚量で補正した補
正物理データを求めるので、搬送機構の機械的誤差によ
り、第2の入力手段の第2の基準位置に対する検体の位
置ズレが生じても、当該ズレを補正した補正物理データ
を求めることが可能となる。また、請求項3の構成で
は、制御手段は第2の画像データを基に検体の指定部分
の寸法等の物理データを求め、その物理データを予め計
測しておいた偏倚量で補正した補正物理データを求める
ので、切換手段に起因する光軸ズレにより、第2の入力
手段の第2の基準位置に対する検体の位置ズレが生じて
も、当該ズレを補正した補正物理データを求めることが
可能となるので、第1の入力手段と第2の入力手段との
間の計測基準位置に対する検体のズレを確実に補正で
き、計測制度、計測信頼性の向上を図ることができる。
さらに、請求項2および4の構成では、演算手段は第1
の画像データを基に検体の指定部分の寸法等の物理デー
タを求め、制御手段は第1の画像データに基づく物理デ
ータと補正物理データとを比較する構成にすると、両デ
ータの差異を求めることが可能となる等の著効を奏す
る。
When the image processing apparatus according to the present invention is used,
First, in the configuration of claim 1, the control means obtains physical data such as the size of the designated portion of the sample based on the second image data, and the corrected physical data is obtained by correcting the physical data with the bias amount measured in advance. Therefore, even if the displacement of the sample with respect to the second reference position of the second input unit occurs due to the mechanical error of the transport mechanism, it is possible to obtain the corrected physical data in which the displacement is corrected. Further, in the configuration of claim 3, the control means obtains the physical data such as the size of the designated portion of the sample based on the second image data, and the physical data is corrected by the pre-measured deviation amount. Since the data is obtained, even if the position shift of the sample with respect to the second reference position of the second input unit occurs due to the optical axis shift caused by the switching unit, it is possible to obtain the corrected physical data that corrects the shift. Therefore, the deviation of the sample with respect to the measurement reference position between the first input means and the second input means can be reliably corrected, and the measurement accuracy and the measurement reliability can be improved.
Further, in the configurations of claims 2 and 4, the arithmetic means is the first
When the physical data such as the size of the designated portion of the sample is obtained based on the image data of 1. and the control means is configured to compare the physical data based on the first image data and the corrected physical data, the difference between the two data is obtained. It is possible to achieve a remarkable effect.

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

【図1】本発明に係る画像処理装置の第1実施例を示し
たブロックダイアグラム。
FIG. 1 is a block diagram showing a first embodiment of an image processing apparatus according to the present invention.

【図2】第1実施例の機械的構成を示した説明図。FIG. 2 is an explanatory view showing a mechanical configuration of the first embodiment.

【図3】第1実施例においてサンプリング計測時の第1
のカメラの画像を示した説明図。
FIG. 3 shows a first example at the time of sampling measurement in the first embodiment.
Explanatory drawing showing an image of the camera of FIG.

【図4】第1実施例においてサンプリング計測時の第2
のカメラの画像を示した説明図。
FIG. 4 shows a second example of sampling measurement in the first example.
Explanatory drawing showing an image of the camera of FIG.

【図5】第2実施例の画像処理装置の機械的構成を示し
た説明図。
FIG. 5 is an explanatory diagram showing a mechanical configuration of an image processing apparatus according to a second embodiment.

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

10 第1のカメラ 14 リードフレーム 20 第2のカメラ 22 X−Yテーブル 28 MPU 32 第1のメモリ 34 第2のメモリ 36 第3のメモリ 42 インナーリード 44 直線エッジ 74 ミラーシャッタ 80 ミラーシャッタ駆動部 82 固定ミラー 10 First Camera 14 Lead Frame 20 Second Camera 22 XY Table 28 MPU 32 First Memory 34 Second Memory 36 Third Memory 42 Inner Lead 44 Straight Edge 74 Mirror Shutter 80 Mirror Shutter Drive Unit 82 Fixed mirror

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 第1の計測位置に在る検体の画像を画素
毎の電圧データを基に第1の画像データを生成する第1
の入力手段と、 該第1の入力手段に対する位置が固定され、第2の計測
位置に在る検体の画像を画素毎の電圧データを基に第2
の画像データを生成する第2の入力手段と、 検体を前記第1の計測位置から第2の計測位置へ移動さ
せるための搬送機構と、 前記第1の画像データを記憶するための第1の記憶手段
と、 前記第2の画像データを記憶するための第2の記憶手段
と、 基準検体が前記第1の計測位置に在る場合の前記第1の
入力手段の視野内における基準検体の特定箇所の位置
を、第1の入力手段の視野内における第1の基準位置と
し、前記搬送機構を介して基準検体が前記第2の計測位
置へ移動された際に前記第2の入力手段の視野内におけ
る基準検体の前記特定箇所の位置と、第2の入力手段の
視野内における前記第1の基準位置に対応する第2の基
準位置との偏倚量を予め記憶しておくための第3の記憶
手段と、 前記第2の画像データを基に検体の指定部分の寸法等の
物理データを求め、該物理データを前記偏倚量で補正し
た補正物理データを求める演算手段と、 前記第2の入力手段を介して検体の第2の画像データを
生成し、該第2の画像データを前記第2の記憶手段へ記
憶し、該第2の画像データを基に前記演算手段を介して
検体の前記補正物理データを求める制御手段とを具備す
ることを特徴とする画像処理装置。
1. A first image data generating device for generating an image of a sample at a first measurement position based on voltage data for each pixel.
Input means and the position with respect to the first input means are fixed, and the image of the sample at the second measurement position is set to the second based on the voltage data for each pixel.
Second input means for generating the image data of, a transport mechanism for moving the sample from the first measurement position to the second measurement position, and a first storage unit for storing the first image data. Storage means, second storage means for storing the second image data, and specification of the reference sample in the visual field of the first input means when the reference sample is at the first measurement position The position of the location is set as a first reference position within the field of view of the first input means, and the field of view of the second input means when the reference sample is moved to the second measurement position via the transport mechanism. A third amount for pre-storing the amount of deviation between the position of the specific portion of the reference sample in the inside and the second reference position corresponding to the first reference position in the field of view of the second input means. Storage means and designation of specimen based on the second image data A second image data of the sample is generated through a calculation unit that obtains physical data such as a size of a minute and obtains corrected physical data obtained by correcting the physical data with the deviation amount; Control means for storing the second image data in the second storage means and for obtaining the corrected physical data of the sample through the computing means based on the second image data. Image processing device.
【請求項2】 前記演算手段は第1の画像データを基に
検体の指定部分の寸法等の物理データを求め、 前記制御手段は前記第1の画像データに基づく物理デー
タと前記補正物理データとを比較することを特徴とする
請求項1記載の画像処理装置。
2. The calculation means obtains physical data such as a size of a designated portion of a sample based on the first image data, and the control means calculates the physical data based on the first image data and the corrected physical data. The image processing device according to claim 1, wherein
【請求項3】 計測位置に在る検体の画像を画素毎の電
圧データを基に第1の画像データを生成する第1の入力
手段と、 該第1の入力手段に対する位置が固定され、前記計測位
置に在る検体の画像を画素毎の電圧データを基に第2の
画像データを生成する第2の入力手段と、 画像データの生成を前記第1の入力手段と前記第2の入
力手段で切り換えるための切換手段と、 前記第1の画像データを記憶するための第1の記憶手段
と、 前記第2の画像データを記憶するための第2の記憶手段
と、 基準検体が前記計測位置に在る場合の前記第1の入力手
段の視野内における基準検体の特定箇所の位置を、第1
の入力手段の視野内における第1の基準位置とし、前記
切換手段を介して画像データ切り換えた際に前記第2の
入力手段の視野内における基準検体の前記特定箇所の位
置と、第2の入力手段の視野内における前記第1の基準
位置に対応する第2の基準位置との偏倚量を予め記憶し
ておくための第3の記憶手段と、 前記第2の画像データを基に検体の指定部分の寸法等の
物理データを求め、該物理データを前記偏倚量で補正し
た補正物理データを求める演算手段と、 前記第2の入力手段を介して検体の第2の画像データを
生成し、該第2の画像データを前記第2の記憶手段へ記
憶し、該第2の画像データを基に前記演算手段を介して
検体の前記補正物理データを求める制御手段とを具備す
ることを特徴とする画像処理装置。
3. A first input means for generating first image data based on voltage data for each pixel of an image of a sample at a measurement position, and a position relative to the first input means is fixed. Second input means for generating second image data based on voltage data for each pixel of the image of the sample at the measurement position, and generation of the image data by the first input means and the second input means. A switching unit for switching the first image data, a first storage unit for storing the first image data, a second storage unit for storing the second image data, and a reference sample at the measurement position. The position of the specific location of the reference sample in the visual field of the first input means when
The first reference position in the visual field of the input means, and the position of the specific portion of the reference sample in the visual field of the second input means when the image data is switched via the switching means, and the second input. Third storage means for storing in advance the amount of deviation from the second reference position corresponding to the first reference position within the field of view of the means, and designation of the specimen based on the second image data. Calculating physical data such as the size of the part, calculating the corrected physical data by correcting the physical data with the deviation amount, and generating the second image data of the sample through the second input means, Control means for storing the second image data in the second storage means and for obtaining the corrected physical data of the sample through the computing means based on the second image data. Image processing device.
【請求項4】 前記演算手段は第1の画像データを基に
検体の指定部分の寸法等の物理データを求め、 前記制御手段は前記第1の画像データに基づく物理デー
タと前記補正物理データとを比較することを特徴とする
請求項3記載の画像処理装置。
4. The calculation means obtains physical data such as a size of a designated portion of a sample based on the first image data, and the control means calculates the physical data based on the first image data and the corrected physical data. The image processing device according to claim 3, wherein
JP4332529A 1992-11-17 1992-11-17 Image processing device Pending JPH06160054A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4332529A JPH06160054A (en) 1992-11-17 1992-11-17 Image processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4332529A JPH06160054A (en) 1992-11-17 1992-11-17 Image processing device

Publications (1)

Publication Number Publication Date
JPH06160054A true JPH06160054A (en) 1994-06-07

Family

ID=18255942

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4332529A Pending JPH06160054A (en) 1992-11-17 1992-11-17 Image processing device

Country Status (1)

Country Link
JP (1) JPH06160054A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4902732A (en) * 1985-09-30 1990-02-20 Shin-Etsu Chemical Co., Ltd. Epoxy resin-based curable compositions
EP0448823A2 (en) * 1990-02-24 1991-10-02 MERCK PATENT GmbH Separation materials
JPH0981736A (en) * 1995-09-08 1997-03-28 Fuji Electric Co Ltd Flaw inspecting device
JP2007040904A (en) * 2005-08-04 2007-02-15 Seiko Epson Corp Measuring instrument
JP2013104860A (en) * 2011-11-17 2013-05-30 Toray Eng Co Ltd Automatic visual inspection apparatus
US20180356624A1 (en) * 2015-10-01 2018-12-13 Nakamura Sangyo Gakuen Correlation microscope

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4902732A (en) * 1985-09-30 1990-02-20 Shin-Etsu Chemical Co., Ltd. Epoxy resin-based curable compositions
EP0448823A2 (en) * 1990-02-24 1991-10-02 MERCK PATENT GmbH Separation materials
EP0448823B1 (en) * 1990-02-24 1994-02-16 MERCK PATENT GmbH Separation materials
JPH0981736A (en) * 1995-09-08 1997-03-28 Fuji Electric Co Ltd Flaw inspecting device
JP2007040904A (en) * 2005-08-04 2007-02-15 Seiko Epson Corp Measuring instrument
JP2013104860A (en) * 2011-11-17 2013-05-30 Toray Eng Co Ltd Automatic visual inspection apparatus
TWI586959B (en) * 2011-11-17 2017-06-11 Toray Engineering Company Limited Automatic appearance inspection device
US20180356624A1 (en) * 2015-10-01 2018-12-13 Nakamura Sangyo Gakuen Correlation microscope
US10663708B2 (en) * 2015-10-01 2020-05-26 Nakamura Sangyo Gakuen Correlation microscope

Similar Documents

Publication Publication Date Title
KR101110145B1 (en) X-ray fluoroscope
US11421983B2 (en) Structured light projection for specular surfaces
JPH06160054A (en) Image processing device
JP2012078330A (en) Method for adjusting movement of camera unit in lens inspection apparatus and focus check tool
GB2175394A (en) Measuring dimensions of small objects
JP2001066158A (en) Measurement result or analysis result projecting device and method
JPS62110248A (en) Correction method for rotational angle and device thereof
JP6854514B2 (en) Line sensor angle adjustment device, defect inspection device, line sensor angle adjustment method
JP2003029163A (en) Microscope system
JP2003098216A (en) Circuit board inspection device
JP4133657B2 (en) X-ray fluoroscope for precision measurement
JP3614529B2 (en) Calculation parameter measuring method of measuring apparatus and measuring apparatus
US8885051B2 (en) Camera calibration method and camera calibration apparatus
JPH11132735A (en) Ic lead floating inspection device and inspection method
JP3742086B2 (en) Projector having tilt angle measuring device
JP7310541B2 (en) Position measurement method
JPH08233554A (en) Image capture apparatus
WO2021181786A1 (en) Three-dimensional shape measurement device
JP3143527B2 (en) Characteristic inspection apparatus and characteristic inspection method for optical axis correction means
JPH0829129A (en) Length measuring apparatus
JPH09289160A (en) Aligner
JP4187511B2 (en) Absolute tilt measuring device and absolute tilt measuring method of imaging camera
JP3247925B2 (en) Electronic component mounting method
JPH01144019A (en) Method for aligning lcd substrate
JP3068325B2 (en) 3D position measuring device