JP2008267904A - Visual inspecting apparatus and method for inspecting surface state - Google Patents
Visual inspecting apparatus and method for inspecting surface state Download PDFInfo
- Publication number
- JP2008267904A JP2008267904A JP2007109330A JP2007109330A JP2008267904A JP 2008267904 A JP2008267904 A JP 2008267904A JP 2007109330 A JP2007109330 A JP 2007109330A JP 2007109330 A JP2007109330 A JP 2007109330A JP 2008267904 A JP2008267904 A JP 2008267904A
- Authority
- JP
- Japan
- Prior art keywords
- stage
- inspection
- workpiece
- imaging unit
- 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
Links
Images
Landscapes
- Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)
Abstract
Description
この発明は、所定の立体形状を有する物体を検査対象物として、検査対象物(以下「ワーク」という。)の表面に欠陥がないかどうかを、画像処理の手法により検査する装置および方法に関する。 The present invention relates to an apparatus and a method for inspecting whether or not a surface of an inspection object (hereinafter referred to as “workpiece”) has a defect by an image processing technique using an object having a predetermined three-dimensional shape as an inspection object.
ワークの表面の欠陥を精度良く検出するには、カメラや照明部の光軸が被検査面に対して一定の方向に合わせられた状態になるように調整する必要がある。特に、被検査面が曲面であったり、複数の面を検査する場合などには、ワークに対するカメラおよび照明部の位置や姿勢を変更しながら複数回の撮像を行う必要がある。 In order to detect defects on the surface of the workpiece with high accuracy, it is necessary to adjust so that the optical axes of the camera and the illumination unit are aligned in a certain direction with respect to the surface to be inspected. In particular, when the surface to be inspected is a curved surface or when a plurality of surfaces are inspected, it is necessary to perform imaging a plurality of times while changing the position and orientation of the camera and the illumination unit with respect to the workpiece.
たとえば下記の特許文献1には、多関節ロボットによりワークまたは光学系を支持し、このロボットの動作を制御することにより被検査箇所を順次カメラの焦点位置に移動させ、撮像を行うことが記載されている。
For example, the following
ワークの位置や姿勢をロボットを用いて変化させながら検査を行う場合には、検査対象のワークの形状や大きさなどが変わると、これに応じてロボット側の機構を変更しなければならない場合がある。したがって、種々のワークに対応するのは困難である。 When inspecting while changing the position and orientation of a workpiece using a robot, if the shape or size of the workpiece to be inspected changes, the robot side mechanism may need to be changed accordingly. is there. Therefore, it is difficult to deal with various workpieces.
一方、カメラや照明部をロボットにより動かす場合には、ロボット側の機構を変更する必要はなくなる。しかし、定められた検査領域を確実に撮像するには、ワークを位置決めするか、ワークのずれ量を検出して、そのずれ量の分だけロボットの制御データを補正する必要がある。 On the other hand, when the camera or the illumination unit is moved by the robot, it is not necessary to change the mechanism on the robot side. However, in order to reliably image a predetermined inspection area, it is necessary to position the workpiece or detect the deviation amount of the workpiece and correct the robot control data by the deviation amount.
ワークを位置決めする方法を採用するには、ワークを固定支持する手段が必要となるから、ワークをロボットにより支持する場合と同様に、ワークの形状や大きさの変化に対応できなくなってしまう。ずれ量を検出してロボットの制御データを補正する方法をとる場合には、このような問題は生じないが、位置ずれ検出のための撮像や演算等の前処理が必要になるため、検査の効率が低下する。 In order to employ the method of positioning the workpiece, a means for fixing and supporting the workpiece is required. Therefore, as in the case where the workpiece is supported by the robot, it becomes impossible to cope with changes in the shape and size of the workpiece. Such a problem does not occur when taking the method of correcting the control data of the robot by detecting the amount of deviation, but pre-processing such as imaging and calculation for detecting the position deviation is necessary. Efficiency is reduced.
また、多関節ロボットの各アームの動作量が大きくなったり、制御が複雑になると、カメラを位置合わせするのに要する時間が長くなる。特に、多面体ワークの検査のようにワークとカメラとの位置関係を変更しながら複数回の撮像を繰り返す場合には、毎時のカメラの位置合わせに要する時間によって検査の効率が著しく低下するおそれがある。 Further, when the amount of movement of each arm of the articulated robot becomes large or the control becomes complicated, the time required for aligning the camera becomes long. In particular, when imaging is repeated a plurality of times while changing the positional relationship between the workpiece and the camera as in the inspection of a polyhedral workpiece, the efficiency of the inspection may be significantly reduced depending on the time required for camera alignment every hour. .
この発明は上記の各種問題点を考慮して、検査対象のワークの変更に容易に対応することができるとともに、ワーク毎に撮像対象位置を変更しながら複数回の撮像を行う場合の検査の効率を高めることを、目的とする。 In consideration of the above-mentioned various problems, the present invention can easily cope with the change of the workpiece to be inspected, and the efficiency of the inspection when performing the imaging a plurality of times while changing the imaging target position for each workpiece. The purpose is to increase
この発明による外観検査装置は、ワークを固定する手段が設けられていない所定広さのワーク搭載面を有するステージが複数個、それぞれ一定の間隔毎に回転軸を介して取り付けられ、これらのステージと一体に移動可能に構成され、その移動範囲内の所定位置が検査位置として設定されたステージ支持テーブル;各ステージの回転軸にそれぞれ着脱可能に装着されて、装着された回転軸およびこれに対応するステージの回転を阻止する複数のステージ固定機構;各ステージの回転軸にそれぞれステージ固定機構を装着して、各ステージが検査位置に向けて順に送られるようにステージ支持テーブルを移動させるとともに、検査位置にステージが到達する都度、ステージ支持テーブルを一時停止させる移動制御手段;検査位置に到達したステージの回転軸に着脱可能に装着されて、装着された回転軸およびこれに対応するステージを回転させるステージ回転機構;ワークの検査用の画像を生成するための検査用撮像部;検査位置の近傍において、検査用撮像部を、その位置および姿勢を変更可能に支持する撮像部支持機構;検査位置にステージが停止したときに、このステージの次に検査位置に停止するステージの現在の停止位置におけるワーク搭載面を撮像可能に配備される前処理用撮像部;ワークが搭載されたステージについて、前処理用撮像部により生成されるワーク搭載面の基準画像が登録される基準画像登録手段;基準画像に示されるのと同じ位置および向きをもってワークが搭載されたステージが検査位置に停止したときに検査用撮像部の光軸をワークに合わせするための制御データとして、ステージ回転機構および撮像部支持機構の動作制御に関するデータが複数とおり登録される制御データ登録手段;ステージ支持テーブルが停止する都度、前処理用撮像部に撮像を行わせて、生成された画像を基準画像と照合することにより画像中のワークのずれ量を求めるずれ量算出手段、このずれ量に基づき制御データ登録手段に登録された各制御データを補正する制御データ補正手段;ステージ支持テーブルが停止する都度、その時点で検査位置に停止しているステージの回転軸にステージ回転機構を装着するとともに、この回転軸に対するステージ固定機構の装着を解除し、一段階前のステージ支持テーブルの停止時に算出されたずれ量に基づき補正された制御データを用いてステージ回転機構および撮像部支持機構を制御しながら検査用撮像部に複数回の撮像を行わせ、毎時の撮像により生成された画像を用いて検査のための画像処理を実行する検査実行手段;の各構成を具備する。 In the appearance inspection apparatus according to the present invention, a plurality of stages each having a workpiece mounting surface having a predetermined width and not provided with means for fixing a workpiece are attached via a rotating shaft at regular intervals. A stage support table configured so as to be movable integrally and having a predetermined position within the movement range set as an inspection position; detachably mounted on the rotary shafts of the respective stages, and the mounted rotary shafts corresponding thereto A plurality of stage fixing mechanisms that prevent rotation of the stage; a stage fixing mechanism is attached to each stage's rotation axis, and the stage support table is moved so that each stage is sequentially sent toward the inspection position, and the inspection position A movement control means for temporarily stopping the stage support table every time the stage arrives at the stage; A stage rotating mechanism that is detachably mounted on the rotating shaft of the machine and rotates the mounted rotating shaft and the stage corresponding thereto; an imaging unit for inspection for generating an image for inspection of the workpiece; in the vicinity of the inspection position An imaging unit support mechanism that supports the imaging unit for inspection in such a manner that the position and orientation of the imaging unit can be changed; when the stage stops at the inspection position, at the current stop position of the stage that stops at the inspection position next to the stage Pre-processing imaging unit arranged to be capable of imaging the workpiece mounting surface; reference image registration means for registering a reference image of the workpiece mounting surface generated by the pre-processing imaging unit for the stage on which the workpiece is mounted; reference image To align the optical axis of the imaging unit for inspection with the workpiece when the stage on which the workpiece is mounted has the same position and orientation as shown in Control data registration means for registering a plurality of data relating to the operation control of the stage rotation mechanism and the imaging unit support mechanism as control data; generated by causing the preprocessing imaging unit to perform imaging whenever the stage support table stops A deviation amount calculating means for obtaining a deviation amount of a work in the image by comparing the image thus obtained with a reference image; a control data correcting means for correcting each control data registered in the control data registration means based on the deviation amount; Each time the support table stops, the stage rotation mechanism is mounted on the rotation axis of the stage that is stopped at the inspection position at that time, and the stage fixing mechanism is released from the rotation axis, and the stage support table in the previous stage is released. Stage rotation mechanism and imaging unit support using control data corrected based on the amount of deviation calculated when stopping Each configuration includes: an inspection execution unit that causes the inspection imaging unit to perform imaging a plurality of times while controlling the mechanism, and executes image processing for inspection using an image generated by the hourly imaging.
上記の構成によれば、検査対象のワークは、それぞれステージに固定されない状態で搭載される。各ステージの回転軸は、検査位置に到達するまで回転しないように固定されるが、検査位置に到達すると、固定が解除されてステージ回転機構が装着され、回転可能になる。 According to said structure, the workpiece | work to be examined is mounted in the state which is not fixed to a stage, respectively. The rotation axis of each stage is fixed so as not to rotate until it reaches the inspection position. However, when the inspection axis reaches the inspection position, the fixing is released and the stage rotation mechanism is mounted and becomes rotatable.
検査の際には、ステージ回転機構および撮像部支持機構の双方の動作を制御することにより、ステージを回転させながら撮像部の位置および角度を調整することができる。よって、検査用撮像部を位置合わせするのに要する時間を短縮することができ、撮像を効率良く行うことができる。 At the time of inspection, by controlling the operations of both the stage rotation mechanism and the imaging unit support mechanism, the position and angle of the imaging unit can be adjusted while rotating the stage. Therefore, it is possible to shorten the time required for aligning the imaging unit for inspection, and it is possible to efficiently perform imaging.
また、ワークを固定しない場合には、上記の制御のための制御データを補正する必要があるが、この補正に必要なワークのずれ量は、ワークが検査位置に到達する前に算出されるので、前処理のために検査の開始が遅れるのを防止できる。また、位置ずれ量の算出後にワークはステージとともに検査位置に移動するが、ステージは検査位置に到達するまで固定されているので、算出された位置ずれ量が変動するのを防止することができる。よって、検査前に算出されたずれ量に基づいて適正に補正された制御データを用いて、ワークのあらかじめ定められた撮像対象位置を、定められた方向から撮像することができ、検査の精度を確保することができる。
さらに、制御データを補正する処理まで前処理に含めるようにすれば、検査をより効率良く進めることができる。
Further, when the workpiece is not fixed, it is necessary to correct the control data for the above control. However, the amount of deviation of the workpiece necessary for this correction is calculated before the workpiece reaches the inspection position. Therefore, it is possible to prevent the start of the inspection from being delayed due to the preprocessing. In addition, the workpiece moves to the inspection position together with the stage after calculating the positional deviation amount. However, since the stage is fixed until the inspection position is reached, the calculated positional deviation amount can be prevented from fluctuating. Therefore, it is possible to image the predetermined imaging target position of the workpiece from the predetermined direction using the control data appropriately corrected based on the deviation amount calculated before the inspection, and improve the accuracy of the inspection. Can be secured.
Furthermore, if the preprocessing includes the process of correcting the control data, the inspection can be performed more efficiently.
なお、下記の特許文献2には、基板の回路パターンの検査装置として、ワーク支持用のホルダが90度間隔で設けられた回転テーブルを具備し、この回転テーブルを90度ステップで回転させながら、ワーク搬入、位置ずれ検出、検査、および搬出の各処理を並行して行うようにした構成の装置が記載されている。また検査位置の手前の位置で被検査基板のずれ量を検出し、このずれ量を用いて基板と検査治具(多数の接触子を用いて回路パターンを読み取る構成のもの)との相対位置を補正することも記載されている。
In addition, in
しかし、この文献に記載の発明は、平面上の回路パターンを検査対象とするものであり、基板に被せて回路パターンとの接触状態を検出するタイプの検査治具の設置位置を、基板の位置ずれ量に応じて調整するにすぎない。立体形状を有するワークを検査対象として、ワークの回転と撮像部の位置および姿勢の調整とを同時に行いながら複数回の撮像を行うことや、ワークが搭載されるステージを検査位置まで固定することによって、検査前に検出した位置ずれ量の精度を確保することは、この文献には全く記載されていない。 However, the invention described in this document is intended to inspect a circuit pattern on a plane, and the installation position of an inspection jig of a type that covers the substrate and detects the contact state with the circuit pattern is the position of the substrate. It is only adjusted according to the amount of deviation. By taking a workpiece having a three-dimensional shape as an inspection target and performing imaging multiple times while simultaneously rotating the workpiece and adjusting the position and orientation of the imaging unit, or by fixing the stage on which the workpiece is mounted to the inspection position Ensuring the accuracy of the amount of displacement detected before inspection is not described in this document at all.
さらに、この特許文献2では、被検査基板をその形状に応じたホルダ内に固定支持しており、形状や大きさの異なる種々のワークを検査できるようにする、という技術的思想はなんら開示されていない。
Further, in this
上記の外観検査装置の好ましい態様では、ステージ支持テーブルには、少なくとも3個のステージが配備されており、前記検査位置および前処理用撮像部による撮像が行われる位置を除く所定のステージ停止位置がワークの搬入位置に設定される。これにより、ワークの搬出、位置ずれ検出、検査の各処理を並行して行うことが可能になり、検査の効率をさらに高めることができる。 In a preferred aspect of the appearance inspection apparatus, at least three stages are arranged on the stage support table, and a predetermined stage stop position excluding the inspection position and a position where imaging by the preprocessing imaging unit is performed is performed. Set to the workpiece loading position. As a result, it is possible to carry out the workpiece unloading, misalignment detection, and inspection processes in parallel, and the inspection efficiency can be further increased.
より好ましい態様では、ステージ支持テーブルは、各ステージ間の間隔に対応する角度ずつ回転するインデックステーブルとして構成される。これにより、ステージ支持テーブルの回転を繰り返しながら、複数のワークを順に受け付けて検査を行うことが可能になり、検査の効率をより一層高めることができる。 In a more preferred aspect, the stage support table is configured as an index table that rotates by an angle corresponding to the interval between the stages. As a result, it is possible to perform inspection by sequentially receiving a plurality of workpieces while repeating the rotation of the stage support table, and the efficiency of the inspection can be further enhanced.
この発明に係る表面状態の検査方法では、ワークを固定する手段が設けられていない所定広さのワーク搭載面を有するステージが複数個、それぞれ一定の間隔毎に回転軸を介して取り付けられ、これらのステージと一体に移動可能な構成のステージ支持テーブルを用意し、このテーブルの移動範囲の所定位置を検査位置として設定する。また、検査位置の近傍に、検査用撮像部を、その位置および姿勢を変更可能に支持するとともに、検査位置にステージが到達したときに、このステージの次に検査位置に停止するステージの現在の停止位置におけるワーク搭載面を撮像可能な状態で、前処理用撮像部を配備する。また、ワークが搭載されたステージについて、前処理用撮像部により生成されるワーク搭載面の基準画像を登録するとともに、この基準画像に示されるのと同じ位置および向きをもってワークが搭載されたステージが検査位置に停止したときに検査用撮像部の光軸をワークに合わせるための制御データとして、回転軸の回転動作および検査用撮像部の位置ならびに姿勢の制御に関するデータを複数とおり登録しておく。 In the surface condition inspection method according to the present invention, a plurality of stages each having a workpiece mounting surface having a predetermined width, which are not provided with means for fixing the workpiece, are attached via a rotating shaft at regular intervals. A stage support table configured to be movable integrally with the stage is prepared, and a predetermined position in the moving range of the table is set as an inspection position. In addition, the inspection imaging unit is supported in the vicinity of the inspection position so that the position and posture thereof can be changed, and when the stage reaches the inspection position, the current stage of the stage that stops at the inspection position next to this stage The preprocessing imaging unit is arranged in a state where the workpiece mounting surface at the stop position can be imaged. In addition, for the stage on which the workpiece is mounted, a reference image of the workpiece mounting surface generated by the preprocessing imaging unit is registered, and the stage on which the workpiece is mounted at the same position and orientation as shown in the reference image As the control data for aligning the optical axis of the inspection imaging unit with the workpiece when stopped at the inspection position, a plurality of data relating to the rotation operation of the rotation axis and the position and orientation control of the inspection imaging unit are registered in advance.
検査の際には、各ステージの回転軸を固定した状態にして、各ステージが検査位置に向けて順に送られるようにステージ支持テーブルを移動させるとともに、検査位置にステージが到達する都度、ステージ支持テーブルを一時停止させる。 During inspection, the stage rotation axis is fixed, the stage support table is moved so that each stage is sent in turn toward the inspection position, and the stage is supported each time the stage reaches the inspection position. Pause the table.
さらに、ステージ支持テーブルが停止する都度、前処理用撮像部に撮像を行わせて、生成された画像を基準画像と照合することにより画像中のワークのずれ量を算出する。また、ステージ支持テーブルが停止する都度、その時点で検査位置に停止しているステージの回転軸の固定を解除してステージを回転可能にした後、一段階前のステージ支持テーブルの停止時に算出されたずれ量に基づき補正した制御データを用いて回転軸の回転動作および検査用撮像部の位置ならびに姿勢を制御しながら、検査用撮像部に複数回の撮像を行わせ、毎時の撮像により生成された画像を用いて検査のための画像処理を実行する。 Further, each time the stage support table stops, the preprocessing imaging unit performs imaging, and the generated image is collated with the reference image to calculate the shift amount of the workpiece in the image. Also, every time the stage support table stops, it is calculated when the stage support table is stopped one stage after releasing the fixed rotation axis of the stage that is stopped at the inspection position and making the stage rotatable. The control data corrected based on the amount of misalignment is used to control the rotation operation of the rotating shaft and the position and orientation of the imaging unit for inspection. The image processing for inspection is executed using the obtained image.
上記の外観検査装置および表面状態の検査方法によれば、検査対象のワークを固定する必要がなく、任意の位置および向きをもってステージに設置すれば良いから、ワークの変更に容易に対応することができる。
さらにステージの回転と検査用撮像部の位置および姿勢の制御とによって、ワークに対する検査用撮像部の位置合わせを効率良く行うことができ、また検査が開始されるまでステージを固定することにより、検査前にワークのずれ量を求めても、その精度が確保できるようにしたので、効率が良く、かつ精度の高い検査を行うことができる。
According to the appearance inspection apparatus and the surface condition inspection method described above, it is not necessary to fix the workpiece to be inspected, and it is only necessary to install the workpiece on the stage with an arbitrary position and orientation. it can.
Furthermore, the rotation of the stage and the control of the position and orientation of the inspection imaging unit can efficiently align the inspection imaging unit with respect to the workpiece, and the stage is fixed until the inspection starts. Even if the amount of deviation of the workpiece is obtained in advance, the accuracy can be ensured, so that an efficient and highly accurate inspection can be performed.
図1は、この発明が適用された外観検査装置の一部構成を示す。
この外観検査装置は、樹脂成形品等の鏡面反射性の高いワークWを対象に、その表面に凹凸や色彩異常などの欠陥がないかどうかを判別するもので、円盤状のインデックステーブル1を用いてワークWの搬入、前処理、検査、ワークWの搬出の各処理を並行して行うことにより、多数のワークWに対する検査を効率良く進められるようにしている。
FIG. 1 shows a partial configuration of an appearance inspection apparatus to which the present invention is applied.
This appearance inspection apparatus is for discriminating whether there is a defect such as unevenness or color abnormality on the surface of a workpiece W having high specular reflectivity such as a resin molded product, and uses a disk-shaped index table 1. Thus, the inspection of a large number of workpieces W can be efficiently advanced by performing the processing of loading, pre-processing, inspection, and unloading of the workpieces W in parallel.
インデックステーブル1には、テーブル本体のほか、モータを含む駆動機構やエンコーダなど(いずれも図示せず。)が含まれる。また、このインデックステーブル1の上面には、ワーク搭載用のステージ2が、4個、等角度間隔をもって(すなわち90°毎に)配備されている。
In addition to the table body, the index table 1 includes a drive mechanism including a motor, an encoder, and the like (none of which are shown). Further, on the upper surface of the index table 1, four
各ステージ2は、平坦で矩形状のワーク搭載面20を具備し、このワーク搭載面20を水平にした状態で、インデックステーブル1に回転軸21を介して取り付けられる。
Each
この実施例では、インデックステーブル1を、90°回転する毎に一時停止させながら繰り返し回転させ、各ステージ2が停止する位置A,B,C,Dにおいて、それぞれワークWの搬入、前処理、検査、ワークWの搬出の各処理を実行するようにしている。以下では、A,B,C,Dの各位置を、それぞれ「ワーク搬入位置A」「前処理位置B」「検査位置C」「ワーク搬出位置D」という。
なお、前処理位置Bおよび検査位置Cとは、これらの位置で処理が実行されることを意味するのではなく、これらの位置に停止したワークWに対して前処理や検査が実行されることを意味する。
In this embodiment, the index table 1 is repeatedly rotated while being paused every 90 ° rotation, and the work W is loaded, preprocessed, and inspected at the positions A, B, C, and D where the
Note that the preprocessing position B and the inspection position C do not mean that processing is performed at these positions, but preprocessing or inspection is performed on the workpiece W stopped at these positions. Means.
この外観検査装置では、ステージ2に搭載されたワークWについて、ワーク搭載面20に接する面を除く各面を撮像して検査を行うことができる。また、各ワークWを2度搬入し、1度目の搬入時と2度目の搬入時とで上下方向を反転させるようにすれば、ワークWの全面を検査する用途にも対応することができる。
なお、図1の例では、図示の便宜上、ワークWを直方体状の物体として示しているが、実際には、ステージ2に静止した状態で載せることが可能なものであれば、種々の立体形状を有するワークWを処理対象とすることができる。
In this appearance inspection apparatus, it is possible to inspect the workpiece W mounted on the
In the example of FIG. 1, for convenience of illustration, the workpiece W is shown as a rectangular parallelepiped object. However, in practice, various solid shapes can be used as long as they can be placed on the
前処理位置Bの上方には、カメラ4や図示しない照明装置(カメラ4に一体化されている場合もある。)が配備される。カメラ4は、図示しない支持部材により撮像面を真下に向けて固定支持されており、その高さや倍率は、ステージ2のワーク搭載面20の全面を視野に含むように調整されている。以下、このカメラ4を「前処理用カメラ4」という。
Above the preprocessing position B, a
前処理用カメラ4は、前処理位置Bにステージ2が停止する都度、撮像を行う。この撮像により生成された画像は、あらかじめ登録された基準画像と照合されて、基準画像が示すワークWの基準の位置および基準の向きに対する実際のワークWのずれ量(位置ずれ量および回転ずれ量)が算出される。さらに、算出されたずれ量を用いて、検査で使用される制御データを補正する処理が行われる。
この明細書では、上記の前処理用カメラ4により生成された画像に対する一連の処理を、ワークWに対する位置・姿勢認識処理としてとらえ、以下、そのように表現する。この位置・姿勢認識処理は、前処理用カメラ4により撮像されたワークWが次の検査位置Cに移動する前に完了する。
The
In this specification, a series of processing for the image generated by the
検査位置Cには、検査用撮像部5が配備される。この検査用撮像部5は、カメラ6と照明装置7とを含むもので、後記するスカラーロボット9によって、位置および姿勢を変更可能に支持されている。なお、以下では、前出の前処理用カメラ4との混同を避けるために、カメラ6を「検査用カメラ6」という場合と、単に「カメラ6」という場合とがある。
At the inspection position C, an
インデックステーブル1の下方の検査位置Cに対応する場所には、モータ30を含むステージ回転機構3が配備されている。このステージ回転機構3は、図示しない上下動機構により上下動可能に支持されており、上死点においてステージ2側の回転軸21に連結される。これにより、検査位置Cに到達したステージ2の回転方向や回転角度を制御することが可能になる。
A
この実施例では、ワークWの特定の面がワーク搭載面20に接するようにして、ワークWをステージ2に搭載し、検査位置Cに向けて順次送り込む。検査位置Cでは、ステージ2の回転制御と検査用撮像部5の位置および姿勢の調整によって、ワークWに設定された複数の撮像ポイントに検査用撮像部5を順に位置合わせし、撮像を実行する。この制御に用いられる制御データは、後記するティーチング処理によりあらかじめ登録されており、ワークW毎に、位置・姿勢認識処理で補正される。
In this embodiment, the workpiece W is mounted on the
なお、各ステージ2とも、検査位置Cに到達するまでは、後記するステージ固定機構8により回転が阻止された状態に設定される。よって、前処理用カメラ4により生成された画像を用いて求めたワークWのずれ量が変動するのを防止でき、検査位置Cでは、補正された制御データを用いて検査用撮像部5とワークWとの位置合わせを精度良く行うことができる。
Each
図2は、上記のインデックステーブル1が回転する間に各ステージ2に対して行われる処理を、ステージ2毎に個別に示す。なお、この図でのみ、各ステージ2を「ステージa,b,c,d」として示す。
またこの図では、1つのワークWに対応する処理を点線枠で囲むとともに、これらの枠の近傍に、処理対象のワークWの搬入順序を<1><2><3>・・・のように示す。いずれのステージ2でも、搬入位置Aに停止したときに新たなワークWが搬入され、以下、B,C,Dの各位置に順に移動しながら、位置・姿勢認識処理、検査、搬出の各処理が実行される。
FIG. 2 individually shows the processing performed for each
Further, in this figure, the processing corresponding to one workpiece W is surrounded by a dotted frame, and the order of loading the workpieces W to be processed in the vicinity of these frames is <1><2><3>. Shown in In any
図2に示すように、この実施例では、インデックステーブル1を回転させることにより、4個のワークWを、1ステップずつ処理を遅らせながら並行して行うことができる。また、いずれのワークWについても、検査位置Cに停止した時点で制御データの補正が完了しているので、その補正された制御データを用いて直ちに検査を実行することができる。よって、多数のワークWを検査する場合でも、効率良く処理を進めることができる。 As shown in FIG. 2, in this embodiment, by rotating the index table 1, four workpieces W can be performed in parallel while delaying processing by one step. In addition, since the correction of the control data is completed for any workpiece W when it stops at the inspection position C, the inspection can be immediately performed using the corrected control data. Therefore, even when a large number of workpieces W are inspected, the processing can be efficiently performed.
ただし、位置・姿勢認識処理をワークWの位置ずれ量の算出にとどめ、検査において、各種制御データを補正しながら検査を行うようにしてもよい。
また、インデックステーブル1により支持するステージ2の数は4個に限定されるものではない。たとえば図3に示すように、ステージ2をもう1つ増やし、検査前の位置・姿勢認識処理をB1,B2の2つの位置に分けて行ってもよい。この場合には、B1,B2の各位置にそれぞれカメラ4a,4bが配備され、B1ではワークWのおよその位置を検出する「粗サーチ」が、B2ではワークWの詳細な位置ずれ量を求める「詳細サーチ」が、それぞれ行われる。
However, the position / posture recognition processing may be limited to the calculation of the amount of displacement of the workpiece W, and the inspection may be performed while correcting various control data.
Further, the number of
また上記とは逆に、ステージ2を3個にして、ワークWの搬入および搬出を同じ位置で行うようにしてもよい。
また、ステージ2を移動可能に支持する手段はインデックステーブル1に限らず、たとえば一軸に沿って移動するテーブルを使用し、このテーブルの移動方向に沿って、ワーク搬入位置A、前処理位置B、検査位置C、ワーク搬出位置Dの各位置を設定してもよい。
In contrast to the above, the number of
Further, the means for supporting the
図4は、検査用撮像部5の詳細な構成を示す。なお、この図では、作図の便宜上、照明装置7の大きさをカメラ6に対して大きく誇張して表すとともに、カメラ6の光軸を紙面の縦方向に合わせて示す。また、図中のRは、カメラ6の視野に含まれるワークW上の領域(以下、「視野対応領域」という。)であり、Pは撮像ポイントである。この撮像ポイントPは、ティーチング時に、カメラ6および照明装置7の光軸を合わせるための目標位置としてユーザにより指定されるもので、視野対応領域Rの中心点にあたる。
FIG. 4 shows a detailed configuration of the
照明装置7には、ハーフミラー70と、2個の照明部71,72(以下、「第1の照明部71」「第2の照明部72」という。)とが組み込まれる。ハーフミラー70はカメラ6の光軸上に設けられ、第1の照明部71はハーフミラー70の側方に、第2の照明部72はハーフミラー70の下方に、それぞれ配置される。
The
第1の照明部71は、複数個の光源74(具体的にはLEDである。)が収容された面状光源であって、前面には拡散板75が配備されている。第2の照明部72は、上面にカメラの覗き穴78が形成されたドーム型の筐体76の内部に、複数個の光源74が円環状に配備された構成のものである。各光源74の光軸は、カメラ6の光軸に平行になるように設定され、筐体76の下部には、円錐台または角錐台状の内面を有する光拡散部材77が配備されている。
The
なお、いずれの照明部71,72にも、ワークWの色彩に応じて照明色を変更できるように、R,G,Bの各色彩光を発する3種類の光源74が組み込まれる。図4では、これらの発光色の違いを、網点、斜線等のパターンにより示す。
Each of the
第1の照明部71の各光源74から発した光は、前面の拡散板75により混合されてハーフミラー70に照射された後、カメラ6の光軸に沿って進行する。これにより視野対応領域Rには、カメラ6とほぼ同じ方向からの照明光による照明(以下、「同軸落射照明」という。)が行われる。
Light emitted from each
第2の照明部72の各光源74から発した光は、光拡散板77を介して覗き穴78の下方に出射される。よって、この照明部72が点灯した場合には、視野対応領域Rには、カメラ6の光軸に対して斜め方向から入射する光による照明(以下、「斜め入射照明」という。)が行われる。
なお、各光源71,72からの照明光は、いずれも視野対応領域Rの全域を照明できるように、出射光の径が調整されている。
Light emitted from each
In addition, the diameter of the emitted light is adjusted so that the illumination light from each
この実施例では、ワークWの表面の凹凸欠陥の有無を検査する場合には、第1の光源71による同軸落射照明を行って、カメラ6に入射する正反射光の強度に着目した画像処理を実行する。また色彩欠陥を検出する場合には、第2の光源72による斜め入射照明を行って、カメラ6に入射する拡散反射光の強度に着目した画像処理を実行する。いずれの照明を行う場合でも、欠陥がある場合とない場合とでカメラに入射する反射光の強度が異なるものになる。
In this embodiment, when inspecting the presence or absence of irregularities on the surface of the workpiece W, coaxial epi-illumination by the
この実施例の検査では、上記の反射の特性を利用して、基準の画像と明るさが大きく異なる部位を欠陥として検出するが、この種の検査の精度を確保するには、ワークWに検査用撮像部5の光軸を合わせる処理を正確に行う必要がある。特に図4のような構成の光学系により凹凸欠陥を検出する場合には、同軸落射照明光に対する視野対応領域Rからの正反射光をカメラ6に入射させるには、カメラ6の光軸が視野対応領域Rの法線方向に合わせられた状態にするのが望ましい。また、色欠陥を検出する場合にも、カメラ6の光軸が視野対応領域Rの法線方向に合わせられていれば、視野対応領域Rからの拡散反射光を安定して撮像することができる。
In the inspection of this embodiment, the above-mentioned reflection characteristics are used to detect a part having a brightness significantly different from that of the reference image as a defect. To ensure the accuracy of this type of inspection, the work W is inspected. It is necessary to accurately perform the process of aligning the optical axis of the
そこでこの実施例では、撮像ポイントPの法線の方向に検査用撮像部5の光軸を合わせることを撮像の条件として、ステージ2の回転動作やスカラーロボット9の動作に関する制御データを、この条件を満たすように設定する。
In this embodiment, therefore, the control data relating to the rotation operation of the
図5は、上記の検査用撮像部5を支持するスカラーロボット9の構成を示す。
このスカラーロボット9は、基台部91に4個のアーム部92,93,94,95を、それぞれ駆動軸c1,c2,c3,c4を介して順に連結した構成のもので、所定の高さ位置に吊り下げ固定される。先端アーム95には、検査用撮像部5のカメラ6および照明装置7を支持するホルダ部96が取り付けられている。また、先端アーム95は伸縮可能に構成されている。
FIG. 5 shows a configuration of the
The
さらに、この図には示していないが、ホルダ部96は、図の矢印方向に回転する軸により先端アーム95に回動可能に取り付けられている。この軸を回転させることによって、図6に示すように、カメラ6および照明装置7の向き(図中、鉛直方向に対する光軸のなす角度αとして示す。)を、0〜90°までの範囲で回転させることができる。
Furthermore, although not shown in this figure, the
上記の構成によれば、各アーム部間の軸c1〜c4の回転制御および先端アーム95の長さの調整、ならびにホルダ部96の回転を制御することにより、X軸(図の左右方向)、Y軸(図の紙面に直交する方向)、およびZ軸(図の上下方向)の各軸により表される3次元空間内の任意の位置に、任意の方向を向けて検査用撮像部5を配置することができる。
According to the above configuration, by controlling the rotation of the axes c1 to c4 between the arm portions and adjusting the length of the
図7は、ステージ2の回転および固定に関する機構の構成を示す。
各ステージ2の回転軸21は、インデックステーブル1の下方側に長く突出するようにして、図示しない貫通孔に挿入されている。この下方側の突出部分には、大小2つのナット22,23が取り付けられている。大きい方のナット22は、インデックステーブル1の下面の近くに配置され、小さい方のナット23は、回転軸21の下端部に配置される。
FIG. 7 shows the structure of the mechanism related to the rotation and fixation of the
The
また各ステージには、それぞれ個別にステージ固定機構8が設けられる。このステージ固定機構8は、インデックステーブル1の下面に取り付けられた支持ボックス81、ナット22に対する係合部材82、L字型のロッド85を有するソレノイド83などにより構成される。
Each stage is provided with a
係合部材82は、ナット22の厚みに応じた溝幅の凹溝部84を具備し、この凹溝部84をナット22に対向させた状態にして、支持ボックス81内を図の左右方向に沿ってスライドするように支持される。また、凹溝部84を支持ボックス81から突出させるために、凹溝部84の裏面が引っ張りバネ86を介して支持ボックス81の前面に連結されている。
ソレノイド83は、L字型ロッド85の先端の屈曲部分が係合部材82の前面に当接するようにして、図示しない固定部材により支持ボックス81の下方位置に支持される。また、ロッド85が伸びきったときにその先端部がナット22の下方に位置するように、ソレノイド83の支持位置が調整されている。
The engaging
The
ステージ回転機構3は、前記したモータ30の駆動軸31にカップリング32やチャック機構33などが設けられた構成のもので、検査位置Cの下方位置に上下動可能に配備される。
The
図8は、ステージ2が検査位置Cに到達してからワーク搬出位置Dへの移動が開始されるまでに実行されるステージ固定機構8およびステージ回転機構3の動作の流れを示す。なお、図8では、紙面の都合上、以下の説明に支障のない範囲で符号を省略する。
FIG. 8 shows the flow of operations of the
ステージ2が検査位置Cに到達するまでは、ステージ固定機構8のソレノイド83はロッド85が突出する非励磁状態に設定され、ロッド85の先端部はナット22の下方に位置する。これに伴い、係合部材82はナット22側に引っ張られて、凹溝部84がナット22に係合し、回転軸21は固定された状態となる。
図8(1)は、ステージ2が検査位置Cに停止した直後の状態であって、回転軸21は、上記した状態のステージ固定機構8により固定されている。またステージ回転機構3は、回転軸21の下端のナット23よりも下方に位置している。
Until the
FIG. 8A shows a state immediately after the
この後、図8(2)(3)に示すように、ステージ回転機構3が上昇し、チャック機構33により回転軸21の下端のナット23が挟み込まれる。これにより回転軸21にステージ回転機構3が装着された状態となると、図8(4)に示すように、ソレノイド83が励磁されてロッド85が支持ボックス81内に引き込まれる。この動きに応じて係合部材82のナット22に対する係合も解除され、回転軸21およびステージ2は回転可能な状態になる。この状態で、モータ30およびスカラーロボット9の動作を制御しながら検査のための撮像が実行される。
Thereafter, as shown in FIGS. 8 (2) and (3), the
撮像が終了すると、図8(5)に示すように、ソレノイド83から再びロッド85が突出する。これにより、係合部材82の引っ張り状態も回復して、凹溝部84がナット22に係合し、回転軸21は再び固定された状態となる。さらに図8(6)に示すように、ステージ回転機構3のチャック機構33によるナット23の挟持が解除される。この後、ステージ回転機構3が下降すると、ステージ2はワーク搬入位置Dに移動する。
When the imaging is completed, the
図9は、外観検査装置の全体構成を示すブロック図である。
この外観検査装置は、制御処理装置11の管理下でプログラマブル・ロジック・コントローラ(PLC)10により各種機構の動作を統括制御するもので、PLC10の下位の制御系として、ロボットコントローラ12やモータドライバ13が設けられている。
FIG. 9 is a block diagram showing the overall configuration of the appearance inspection apparatus.
This visual inspection apparatus controls the operation of various mechanisms by a programmable logic controller (PLC) 10 under the control of the control processing apparatus 11. A
ロボットコントローラ12はスカラーロボット9の動作を制御し、モータドライバ13は、インデックステーブル1、ステージ回転機構3の各モータの動作を制御する。
The
さらにPLC10には、検査用カメラ6、照明装置7、前処理用カメラ4、ステージ固定機構8などが接続される。
制御処理装置11は、パーソナルコンピュータによるもので、ティーチングや検査時の確認作業等のために、マウス,キーボードなどの操作部14やモニタ15が接続される。
Further, the
The control processing device 11 is a personal computer, and is connected to an
インデックステーブル1、ステージ回転機構3、スカラーロボット9などの動作制御に必要なプログラムや制御データは、制御処理装置11で作成され、PLC10に供給される。PLC10は、供給されたプログラムや制御データを用いて各種機構を制御する。
また、PLC10には、位置・姿勢認識処理のために前処理用カメラ4からの画像信号が入力されるが、検査用カメラ6からの画像信号は制御処理装置11に入力される。検査のための画像処理や判定処理の殆どは、制御処理装置11で実行される。
Programs and control data necessary for operation control of the index table 1, the
Further, the image signal from the
図10は、検査前のティーチング時に実行される処理の流れを示す。この処理は、制御処理装置11が主体となって、PLC10を介して各部の動作を制御しつつ、適宜、ユーザによる設定操作を受け付けながら行うものである。
FIG. 10 shows the flow of processing executed during teaching before inspection. This process is performed mainly by the control processing device 11 while accepting a setting operation by the user while controlling the operation of each unit via the
この実施例のティーチングでは、欠陥のない良品のワークWをいずれかのステージ2に載せて、インデックステーブル1を検査時と同様の順序で回転させながら、位置・姿勢認識処理で使用する基準画像、基準制御データ、および検査用カメラ6の毎時の撮像に対応する基準画像などを登録する。
なお、この図10および以下の図11,12に示す処理は、凹凸欠陥検査、色欠陥検査のいずれにも適用可能なものである。
In the teaching of this embodiment, a non-defective non-defective workpiece W is placed on one of the
Note that the processing shown in FIG. 10 and the following FIGS. 11 and 12 can be applied to both the defect inspection and the color defect inspection.
まず最初のST1(STは「ステップ」の略である。以下も同じ。)は、良品ワークWの搬入を受け付ける。ユーザが、ワーク搬入位置Aに停止中のステージ2に良品ワークWを設置して開始操作を行うと、良品ワークWの搬入の受付が終了したとみなして、ST2に進む。
First, ST1 (ST is an abbreviation for “step”. The same applies to the following) accepts the loading of the non-defective workpiece W. When the user installs the non-defective workpiece W on the
なお、検査時のワーク搬入処理では厳密な位置決めを行う必要はないが、ティーチングの際にはCADデータを参照する都合上、ワークWの位置および向きが、あらかじめ定められた基準の位置および基準の向きに一致するように、ワークWを位置決めする。または、ワークWを設置した後に、あらかじめ定めた複数の基準点の座標を入力し、その入力データに基づき基準の位置および基準の向きを修正してもよい。 Although it is not necessary to perform precise positioning in the workpiece loading process at the time of inspection, the position and orientation of the workpiece W are determined based on a predetermined standard position and standard for the convenience of referring to the CAD data during teaching. The workpiece W is positioned so as to match the direction. Alternatively, after setting the workpiece W, the coordinates of a plurality of predetermined reference points may be input, and the reference position and reference direction may be corrected based on the input data.
つぎのST2では、ワークWが搭載されたステージ2を前処理位置Bまで移動する。ST3では、前処理用カメラ4を駆動してワークWの撮像を行う。ST4では、ST3の撮像により生成された画像を、位置・姿勢認識用の基準画像としてメモリ内に登録する。
In the next ST2, the
上記の登録処理が終了すると、ST5に進み、ワークWが搭載されたステージ2を検査位置Cまで移動する。ST6では、登録データを特定するための番号(以下、「登録番号」という。)nを初期値の1に設定し、以下、n番目の撮像に用いられる制御データおよび良品画像を登録する。
When the registration process is completed, the process proceeds to ST5, and the
ST7では、あらかじめ登録されたワークWのCADデータに基づき、ワークWの立体形状をモニタ15に表示し、ユーザにワークW上の1点を指定させることにより、指定された点を撮像ポイントPとして受け付ける。ST8では、この撮像ポイントPについて、CADデータから3次元座標および法線の方向を取得する。
In ST7, based on the CAD data of the workpiece W registered in advance, the solid shape of the workpiece W is displayed on the
つぎに、ST9では、上記の取得データに基づき、スカラーロボット9およびステージ回転機構3のモータ30について、検査用撮像部5の光軸を指定された撮像ポイントPの法線方向に合わせるのに必要な動作量(各駆動軸の回転方向および回転角度を表す数値として表される。)を算出し、その算出結果に基づき各機構に対する制御データを設定する。さらにST10では、設定した制御データを用いて各機構の動作を制御する。各機構の動作が終了すると、ST11に進み、検査用のカメラ6にワークWを撮像させる。
Next, in ST9, it is necessary to align the optical axis of the
この撮像により生成された画像はモニタ15に表示される。ユーザは、この表示画面を見て、ワークWの表面の所望の範囲について検査に適した画像が生成されたかどうかを確認し、良ければ確定操作を行う。この確定操作が行われると、ST12からST13に進み、ST9で設定した制御データをn番目の基準制御データとして登録する。さらにST14では、ST11の撮像により生成された画像をn番目の良品画像として登録する。
An image generated by this imaging is displayed on the
一方、モニタ15に表示された画像が検査に適さないと判断した場合には、ユーザはキャンセル操作を行う。この場合には、ST12が「NO」となってST7に戻り、撮像ポイントPの再指定を受け付ける。
On the other hand, when it is determined that the image displayed on the
このように、撮像ポイントPの指定に応じて作成された画像をユーザに確認させながら、検査に適した画像が得られたと確認されたときのみ、設定された制御データおよび良品画像を登録する。 In this way, the set control data and the non-defective image are registered only when it is confirmed that an image suitable for the inspection has been obtained while allowing the user to confirm the image created in accordance with the designation of the imaging point P.
以後は、ユーザの終了操作が行われるまで、ST16でnの値を更新してからST7に戻り、新たな撮像ポイントPの指定を受け付ける。そして新たな撮像ポイントPについて、上記と同様の手順を実行する。
ユーザが、ワークWの検査が必要な部位がすべて撮像されたと判断して終了操作を行うと、ST15からST17に進み、nの現在値を登録数Nとして保存する。さらにST18では、ワークWが搭載されたステージ2をワーク搬出位置Dに移動し、ST19でワークWを搬出して、処理を終了する。
Thereafter, until the user's end operation is performed, the value of n is updated in ST16 and then the process returns to ST7 to accept designation of a new imaging point P. Then, the same procedure as described above is executed for the new imaging point P.
When the user determines that all parts that require inspection of the workpiece W have been imaged and performs an end operation, the process proceeds from ST15 to ST17, and the current value of n is stored as the registration number N. Furthermore, in ST18, the
つぎの図11および図12は、上記のティーチングが終了して検査モードに移行したときの前処理位置Bおよび検査位置Cに対する処理の流れを示す。これらの処理は、ユーザの検査開始操作により開始されるもので、制御処理装置11およびPLC10の協働により、双方の処理が並列で実行される。
Next, FIG. 11 and FIG. 12 show the flow of processing for the preprocessing position B and the inspection position C when the teaching is completed and the mode is changed to the inspection mode. These processes are started by a user's inspection start operation, and both processes are executed in parallel by the cooperation of the control processing device 11 and the
図11は、前処理位置Bに対する処理の流れを示す。
最初のST101では、処理対象のワークWを特定するためのカウンタkを0に設定した後、ST102〜107のループを実行する。
FIG. 11 shows the flow of processing for the preprocessing position B.
In the first ST101, after setting the counter k for specifying the workpiece W to be processed to 0, the loop of ST102 to 107 is executed.
ST102では、カウンタkをインクリメントする。ST103では、停止したステージ2上のワークWを前処理用カメラ4により撮像する。ST104では、この撮像により生成された画像を基準画像と照合し(たとえば正規化相関演算を行う。)、ワークWの位置ずれ量および回転ずれ量を算出する。
In ST102, the counter k is incremented. In ST103, the work W on the stopped
ST105では、ST104で算出した位置ずれ量および回転ずれ量を用いて、ティーチング処理で登録されたN個の基準制御データを補正する。ST106では、補正された制御データをk番目のワークWの制御データとして、メモリに一時保存する。なお、保存された制御データは、検査において使用された後にクリアされる。 In ST105, the N reference control data registered in the teaching process are corrected using the positional deviation amount and the rotational deviation amount calculated in ST104. In ST106, the corrected control data is temporarily stored in the memory as control data for the kth workpiece W. The stored control data is cleared after being used in the inspection.
以下、インデックステーブル1が90°回転して停止する都度、上記のループを実行する。検査の終了操作が行われると、ST107が「YES」となって処理を終了する。 Thereafter, each time the index table 1 rotates 90 ° and stops, the above loop is executed. When the inspection end operation is performed, ST107 is “YES” and the process is ended.
図12は、検査位置Cにおける処理の流れを示す。
この処理では、最初のST201でカウンタkに初期値のゼロをセットし、インデックステーブル1が180°回転するまで、言い換えれば最初のワークWが検査位置Cに到着するまで待機する。インデックステーブル1が180°回転すると、ST202が「YES」となってST203に進み、カウンタkをインクリメントする。このインクリメント後のkは、検査対象のワークWにつき、前処理位置Bで保存された制御データを特定する目的で使用される。
FIG. 12 shows the flow of processing at the inspection position C.
In this process, the initial value zero is set in the counter k in the first ST201, and the process waits until the index table 1 rotates 180 °, in other words, until the first workpiece W arrives at the inspection position C. When the index table 1 is rotated by 180 °, ST202 becomes “YES”, the process proceeds to ST203, and the counter k is incremented. This incremented k is used for the purpose of specifying the control data stored at the preprocessing position B for the workpiece W to be inspected.
ST204では、登録番号nに初期値の1をセットする。ST205では、メモリからk番目のワークWのn番目の制御データを読み出す。ST206では、読み出した制御データを用いて、スカラーロボット9およびステージ回転機構3の各動作を制御する。これにより、検査用撮像部5の光軸は、ワークWのn番目の撮像ポイントPの法線方向に合わせられる。
In ST204,
上記の制御が終了すると、ST207では、検査用カメラ6によりワークWを撮像する。ST208では、メモリからn番目の良品画像を読み出し、この良品画像と撮像により生成された画像との差分演算処理を行うことによって、両画像間の明度差を示す差画像を生成する。
When the above control is completed, the work W is imaged by the
この後はST209、210において、上記の差画像を2値化し、その2値化の結果を用いて欠陥の有無を判定する。具体的には、2値化により良品画像との明るさの差が所定のしきい値を超える画素を検出し、検出された画素数を計数し、その計数値があらかじめ定めた許容値を上回る場合に、「欠陥あり」と判定する。画素数の計数値が許容値以下であれば、欠陥はないと判定する。 Thereafter, in ST209 and 210, the difference image is binarized, and the presence / absence of a defect is determined using the binarization result. Specifically, the binarization detects pixels whose brightness difference from a non-defective image exceeds a predetermined threshold, counts the number of detected pixels, and the counted value exceeds a predetermined allowable value. In this case, it is determined that “there is a defect”. If the count value of the number of pixels is less than the allowable value, it is determined that there is no defect.
以下、登録番号nが登録数Nに達するまで、ST212においてnをインクリメントし、毎時のnについてST205〜210の各ステップを実行する。これにより、1つのワークWに対し、ティーチング時に指定された各撮像ポイントに順に検査用撮像部5の光軸が合わせられ、撮像および検査のための画像処理が実行されることになる。
Hereinafter, until the registration number n reaches the registration number N, n is incremented in ST212, and steps ST205 to 210 are executed for n every hour. As a result, the optical axis of the imaging unit for
N個の撮像ポイントのすべてについて、上記ST205〜210の処理が行われると、ST211が「YES」となる。ここで検査の終了操作が行われなければ、ST213が「NO」となってST203に戻り、再びカウンタkをインクリメントする。以下、インデックステーブル1が90°回転して停止する都度、同様の処理を実行することにより、検査位置Cに到達したワークWを順に検査する。
この後、所定の時点で検査の終了操作が行われると、ST213が「YES」となり、処理を終了する。
When the processes of ST205 to 210 are performed for all N imaging points, ST211 becomes “YES”. Here, if the inspection end operation is not performed, ST213 becomes “NO”, the process returns to ST203, and the counter k is incremented again. Thereafter, each time the index table 1 is rotated by 90 ° and stopped, the workpiece W that has reached the inspection position C is sequentially inspected by executing the same processing.
Thereafter, when an inspection end operation is performed at a predetermined time point, ST213 becomes “YES” and the process ends.
上記図11,12の処理によれば、インデックステーブル1が停止する都度、検査位置Cに停止したステージ2上のワークWを検査するとともに、前処理位置Bに停止したステージ2上のワークWについて、つぎの検査のために、ワークWのずれ量を求めて制御データを補正することが可能となる。
11 and 12, each time the index table 1 stops, the work W on the
この実施例の外観検査装置では、ステージ2の回転制御とスカラーロボット9に対する制御とを組み合わせて、各撮像ポイントPに検査用撮像部5の光軸を合わせるので、スカラーロボット9の動作を簡単にでき、撮像のための調整処理を短時間で行うことができる。よって、検査位置Cにおける処理効率を高めることができる。
In the appearance inspection apparatus of this embodiment, the rotation control of the
しかも、検査の際のワークWの搬入では、ワーク搭載面20に接する面さえ統一されていれば、位置や向きを問わずにステージ2に載せるだけで良いから、作業者が手作業で搬入を行う場合でも手間がかからない。また、検査対象のワークWが変更されても容易に対応することができる。
In addition, when the work W is brought in at the time of inspection, it is only necessary to place the work W on the
なお、上記の実施例では、検査用撮像部5を支持するための撮像部支持機構としてスカラーロボット9を使用したが、これに代えて、図13に示すように、X,Y,Zの各軸毎にその軸方向に沿って移動可能な移動機構101,102,103を設けるとともに、図5と同構成のホルダ部96により検査用撮像部5を回動可能に支持し、これらの機構の動作を制御することにより、検査用撮像部5を、その位置および光軸の方向を変更可能な状態で支持してもよい。
In the above embodiment, the
W ワーク
P 撮像ポイント
1 インデックステーブル
2 ステージ
3 ステージ回転機構
4 前処理用カメラ
5 検査用撮像部
6 検査用カメラ
7 照明装置
8 ステージ固定機構
9 スカラーロボット
10 PLC
11 制御処理装置
20 ワーク搭載面
21 回転軸
W Work
11
Claims (4)
各ステージの回転軸にそれぞれ着脱可能に装着されて、装着された回転軸およびこれに対応するステージの回転を阻止する複数のステージ固定機構と、
各ステージの回転軸にそれぞれステージ固定機構を装着して、各ステージが前記検査位置に向けて順に送られるように前記ステージ支持テーブルを移動させるとともに、前記検査位置にステージが到達する都度、ステージ支持テーブルを一時停止させる移動制御手段と、
前記検査位置に停止したステージの回転軸に着脱可能に装着されて、装着された回転軸およびこれに対応するステージを回転させるステージ回転機構と、
前記ワークの検査用の画像を生成するための検査用撮像部と、
前記検査位置の近傍において、前記検査用撮像部を、その位置および姿勢を変更可能な状態で支持する撮像部支持機構と、
前記検査位置にステージが停止したときに、このステージの次に検査位置に停止するステージの現在の停止位置におけるワーク搭載面を撮像可能に配備される前処理用撮像部と、
ワークが搭載されたステージについて、前記前処理用撮像部により生成されるワーク搭載面の基準画像が登録される基準画像登録手段と、
前記基準画像に示されるのと同じ位置および向きをもってワークが搭載されたステージが前記検査位置に停止したときに前記検査用撮像部の光軸をワークに合わせるための制御データとして、前記ステージ回転機構および撮像部支持機構の動作制御に関するデータが複数とおり登録される制御データ登録手段と、
前記ステージ支持テーブルが停止する都度、前処理用撮像部に撮像を行わせて、生成された画像を前記基準画像と照合することにより画像中のワークのずれ量を求めるずれ量算出手段と、
前記ずれ量算出手段が算出したワークのずれ量に基づき前記制御データ登録手段に登録された各制御データを補正する制御データ補正手段と、
前記ステージ支持テーブルが停止する都度、その時点で検査位置に停止しているステージの回転軸に前記ステージ回転機構を装着するとともに、この回転軸に対するステージ固定機構の装着を解除し、一段階前のステージ支持テーブルの停止時に算出されたずれ量に基づき補正された制御データを用いて前記ステージ回転機構および撮像部支持機構を制御しながら検査用撮像部に複数回の撮像を行わせ、毎時の撮像により生成された画像を用いて検査のための画像処理を実行する検査実行手段とを、具備する外観検査装置。 A plurality of stages having workpiece mounting surfaces of a predetermined width that are not provided with means for fixing the workpieces, are attached via a rotation shaft at regular intervals, and are configured to be movable integrally with these stages. A stage support table in which a predetermined position within the moving range is set as an inspection position;
A plurality of stage fixing mechanisms that are detachably attached to the rotation shafts of the respective stages, and that prevent the rotation of the attached rotation shafts and the corresponding stages;
A stage fixing mechanism is attached to each stage rotation shaft, and the stage support table is moved so that each stage is sequentially sent toward the inspection position. Each time the stage reaches the inspection position, the stage support is supported. A movement control means for temporarily stopping the table;
A stage rotating mechanism that is detachably mounted on the rotating shaft of the stage stopped at the inspection position, and rotates the mounted rotating shaft and the corresponding stage;
An inspection imaging unit for generating an image for inspection of the workpiece;
In the vicinity of the inspection position, an imaging unit support mechanism that supports the imaging unit for inspection in a state where the position and orientation thereof can be changed;
When the stage stops at the inspection position, a preprocessing imaging unit that is arranged so as to be able to image the workpiece mounting surface at the current stop position of the stage that stops at the inspection position next to the stage;
Reference image registration means for registering a reference image of the workpiece mounting surface generated by the preprocessing imaging unit for the stage on which the workpiece is mounted;
The stage rotation mechanism as control data for aligning the optical axis of the imaging unit for inspection with the workpiece when a stage on which the workpiece is mounted at the same position and orientation as shown in the reference image stops at the inspection position. And control data registration means for registering a plurality of data relating to operation control of the imaging unit support mechanism,
Each time the stage support table is stopped, a deviation amount calculating means for obtaining a deviation amount of a workpiece in the image by causing the preprocessing imaging unit to perform imaging and comparing the generated image with the reference image;
Control data correction means for correcting each control data registered in the control data registration means based on the deviation amount of the workpiece calculated by the deviation amount calculation means;
Each time the stage support table stops, the stage rotating mechanism is mounted on the rotating shaft of the stage that is stopped at the inspection position at that time, and the mounting of the stage fixing mechanism on the rotating shaft is released. Using the control data corrected based on the amount of deviation calculated when the stage support table is stopped, the inspection imaging unit is made to perform imaging multiple times while controlling the stage rotation mechanism and the imaging unit support mechanism, and the imaging is performed every hour. An appearance inspection apparatus comprising inspection execution means for executing image processing for inspection using the image generated by.
前記検査位置の近傍に、検査用撮像部を、その位置および姿勢を変更可能に支持するとともに、前記検査位置にステージが停止したときに、このステージの次に検査位置に停止するステージの現在の停止位置におけるワーク搭載面を撮像可能な状態で、前処理用撮像部を配備し、
ワークが搭載されたステージについて、前記前処理用撮像部により生成されるワーク搭載面の基準画像を登録するとともに、この基準画像に示されるのと同じ位置および向きをもってワークが搭載されたステージが前記検査位置に停止したときに前記検査用撮像部の光軸をワークに合わせるための制御データとして、前記回転軸の回転動作および検査用撮像部の位置ならびに姿勢の制御に関するデータを複数とおり登録しておき、
各ステージの回転軸を固定した状態にして、各ステージが前記検査位置に向けて順に送られるように前記ステージ支持テーブルを移動させるとともに、前記検査位置にステージが到達する都度、ステージ支持テーブルを一時停止させ、
前記ステージ支持テーブルが停止する都度、前処理用撮像部に撮像を行わせて、生成された画像を前記基準画像と照合することにより画像中のワークのずれ量を算出し、
前記ステージ支持テーブルが停止する都度、その時点で検査位置に停止しているステージの回転軸の固定を解除してステージを回転可能にした後、一段階前のステージ支持テーブルの停止時に算出されたずれ量に基づき補正された制御データを用いて前記回転軸の回転動作および検査用撮像部の位置ならびに姿勢を制御しながら、検査用撮像部に複数回の撮像を行わせ、毎時の撮像により生成された画像を用いて検査のための画像処理を実行する、表面状態の検査方法。 A plurality of stages each having a workpiece mounting surface of a predetermined width, which are not provided with means for fixing a workpiece, are mounted via a rotation shaft at regular intervals, and can be moved integrally with these stages. Prepare a support table, set a predetermined position of the moving range of this table as the inspection position,
An imaging unit for inspection is supported in the vicinity of the inspection position so that the position and orientation thereof can be changed, and when the stage stops at the inspection position, the current stage of the stage that stops at the inspection position next to the stage In a state where the work mounting surface at the stop position can be imaged, a preprocessing imaging unit is deployed,
For the stage on which the workpiece is mounted, the reference image of the workpiece mounting surface generated by the preprocessing imaging unit is registered, and the stage on which the workpiece is mounted at the same position and orientation as shown in the reference image is As control data for aligning the optical axis of the imaging unit for inspection with the workpiece when stopped at the inspection position, a plurality of data relating to the control of the rotational operation of the rotating shaft and the position and orientation of the imaging unit for inspection are registered. Every
With the rotation axis of each stage fixed, the stage support table is moved so that each stage is sequentially sent toward the inspection position, and the stage support table is temporarily moved each time the stage reaches the inspection position. Stop,
Each time the stage support table stops, the preprocessing imaging unit performs imaging, and the generated image is collated with the reference image to calculate the amount of work displacement in the image,
Each time the stage support table stops, it is calculated at the time when the stage support table is stopped one stage after releasing the fixation of the rotation axis of the stage that is stopped at the inspection position and making the stage rotatable. Using the control data corrected based on the amount of deviation, while controlling the rotation operation of the rotating shaft and the position and orientation of the inspection imaging unit, the imaging unit for inspection performs multiple imaging, and is generated by imaging every hour A surface state inspection method, wherein image processing for inspection is executed using the processed image.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007109330A JP2008267904A (en) | 2007-04-18 | 2007-04-18 | Visual inspecting apparatus and method for inspecting surface state |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007109330A JP2008267904A (en) | 2007-04-18 | 2007-04-18 | Visual inspecting apparatus and method for inspecting surface state |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2008267904A true JP2008267904A (en) | 2008-11-06 |
Family
ID=40047613
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2007109330A Pending JP2008267904A (en) | 2007-04-18 | 2007-04-18 | Visual inspecting apparatus and method for inspecting surface state |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2008267904A (en) |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2014095727A (en) * | 2014-02-10 | 2014-05-22 | Jx Nippon Mining & Metals Corp | Sample analyzer and sample analysis method |
JP2015094642A (en) * | 2013-11-11 | 2015-05-18 | マークテック株式会社 | Flaw detector |
JP5803034B1 (en) * | 2014-11-05 | 2015-11-04 | アキム株式会社 | Conveying device and conveying method |
JP5828180B1 (en) * | 2014-11-05 | 2015-12-02 | アキム株式会社 | Conveyor with appearance inspection, Conveying method with appearance inspection |
JP2016191620A (en) * | 2015-03-31 | 2016-11-10 | ヴィスコ・テクノロジーズ株式会社 | Image inspecting device |
CN106645152A (en) * | 2016-12-08 | 2017-05-10 | 苏州德创测控科技有限公司 | Image collection device |
CN107664642A (en) * | 2017-11-01 | 2018-02-06 | 航天新长征大道科技有限公司 | A kind of apparent flaws device for fast detecting |
WO2019171756A1 (en) * | 2018-03-08 | 2019-09-12 | 宇部興産機械株式会社 | Moulded article imaging method and moulded article imaging device |
JP2019203730A (en) * | 2018-05-22 | 2019-11-28 | 日立オートモティブシステムズ株式会社 | Surface inspection device and surface inspection method |
JP2019215348A (en) * | 2018-06-13 | 2019-12-19 | ハイデルベルガー ドルツクマシーネン アクチエンゲゼルシヤフトHeidelberger Druckmaschinen AG | Image inspection robot |
KR20210142816A (en) * | 2020-05-19 | 2021-11-26 | 주식회사에스제이하이텍 | Individual zero-setting multiple stage based automatic inspection device |
CN114274482A (en) * | 2021-12-24 | 2022-04-05 | 博众精工科技股份有限公司 | Detection mechanism and wireless gasket post-processing system that charges |
-
2007
- 2007-04-18 JP JP2007109330A patent/JP2008267904A/en active Pending
Cited By (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2015094642A (en) * | 2013-11-11 | 2015-05-18 | マークテック株式会社 | Flaw detector |
JP2014095727A (en) * | 2014-02-10 | 2014-05-22 | Jx Nippon Mining & Metals Corp | Sample analyzer and sample analysis method |
JP5803034B1 (en) * | 2014-11-05 | 2015-11-04 | アキム株式会社 | Conveying device and conveying method |
JP5828180B1 (en) * | 2014-11-05 | 2015-12-02 | アキム株式会社 | Conveyor with appearance inspection, Conveying method with appearance inspection |
JP2016191620A (en) * | 2015-03-31 | 2016-11-10 | ヴィスコ・テクノロジーズ株式会社 | Image inspecting device |
CN106645152A (en) * | 2016-12-08 | 2017-05-10 | 苏州德创测控科技有限公司 | Image collection device |
CN107664642A (en) * | 2017-11-01 | 2018-02-06 | 航天新长征大道科技有限公司 | A kind of apparent flaws device for fast detecting |
WO2019171756A1 (en) * | 2018-03-08 | 2019-09-12 | 宇部興産機械株式会社 | Moulded article imaging method and moulded article imaging device |
JP2019155625A (en) * | 2018-03-08 | 2019-09-19 | 宇部興産機械株式会社 | Imaging method of molded article and imaging apparatus of molded article |
JP2019203730A (en) * | 2018-05-22 | 2019-11-28 | 日立オートモティブシステムズ株式会社 | Surface inspection device and surface inspection method |
JP7025992B2 (en) | 2018-05-22 | 2022-02-25 | 日立Astemo株式会社 | Surface inspection equipment and surface inspection method |
JP2019215348A (en) * | 2018-06-13 | 2019-12-19 | ハイデルベルガー ドルツクマシーネン アクチエンゲゼルシヤフトHeidelberger Druckmaschinen AG | Image inspection robot |
KR20210142816A (en) * | 2020-05-19 | 2021-11-26 | 주식회사에스제이하이텍 | Individual zero-setting multiple stage based automatic inspection device |
KR102349036B1 (en) | 2020-05-19 | 2022-01-10 | 주식회사에스제이하이텍 | Individual zero-setting multiple stage based automatic inspection device |
CN114274482A (en) * | 2021-12-24 | 2022-04-05 | 博众精工科技股份有限公司 | Detection mechanism and wireless gasket post-processing system that charges |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP2008267904A (en) | Visual inspecting apparatus and method for inspecting surface state | |
JP4020144B2 (en) | Inspection method of surface condition | |
US7684031B2 (en) | Visual inspection apparatus, visual inspection method, and peripheral edge inspection unit that can be mounted on visual inspection apparatus | |
US20080225281A1 (en) | Visual inspection apparatus | |
JP2008203280A (en) | Defect inspection apparatus | |
JPWO2002023623A1 (en) | Alignment device | |
KR101747852B1 (en) | Printed circuit board coating inspection apparatus and inspection methods thereof | |
JP2010025713A (en) | Flaw inspection method and flaw inspection device | |
KR20100071621A (en) | Appearance inspecting method of semiconductor chip and its device | |
JP2007248241A (en) | Inspection method and device of surface state | |
JPH0758176A (en) | Shape recognizing equipment for semiconductor wafer | |
KR100699733B1 (en) | Visual inspecting method and apparatus | |
WO2022075041A1 (en) | Appearance inspection device and method | |
JP3770611B2 (en) | Appearance inspection device | |
KR101234935B1 (en) | Inspection device of illumination and inspection method of illumination | |
JP2009008502A (en) | Data registering method for surface state inspection and surface state inspection device | |
US6963394B2 (en) | Inspecting device for semiconductor wafer | |
JP2005268530A (en) | Alignment device for semiconductor wafer | |
WO2021033396A1 (en) | Wafer appearance inspection device and method | |
KR20160121716A (en) | Surface inspection apparatus based on hybrid illumination | |
JP2003075906A (en) | Camera mount device, camera device, inspecting device, and adjusting method for attitude and positions of plurality of linear ccd cameras | |
JP2008021884A (en) | Inspection apparatus | |
JP6671309B2 (en) | Inspection device and inspection method | |
KR102304880B1 (en) | Semiconductor manufacturing apparatus and method for manufacturing semiconductor device | |
JP4981703B2 (en) | Appearance inspection apparatus and appearance inspection method |