JP7088232B2 - Inspection equipment, inspection methods, and programs - Google Patents
Inspection equipment, inspection methods, and programs Download PDFInfo
- Publication number
- JP7088232B2 JP7088232B2 JP2020079260A JP2020079260A JP7088232B2 JP 7088232 B2 JP7088232 B2 JP 7088232B2 JP 2020079260 A JP2020079260 A JP 2020079260A JP 2020079260 A JP2020079260 A JP 2020079260A JP 7088232 B2 JP7088232 B2 JP 7088232B2
- Authority
- JP
- Japan
- Prior art keywords
- height
- region
- pixels
- image
- regions
- 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.)
- Active
Links
Images
Landscapes
- Length Measuring Devices By Optical Means (AREA)
Description
本発明は、測定対象物の撮影画像から3次元位置を測定する3次元測定技術に関し、特に、3次元位置の検出精度が十分であるか否かを判定する技術にする。 The present invention relates to a three-dimensional measurement technique for measuring a three-dimensional position from a photographed image of a measurement object, and in particular, a technique for determining whether or not the detection accuracy of the three-dimensional position is sufficient.
近年、撮影画像から、対象物(被写体)の3次元位置あるいは対象物までの距離を測定する技術が多く利用されている。3次元測定の手法として、正弦波パターンや所定の空間符号化が施されたパターン光を投影して、3角測量の原理により対象物の位置を検出するアクティブステレオ法がある。 In recent years, many techniques for measuring the three-dimensional position of an object (subject) or the distance to the object from a photographed image have been used. As a method of three-dimensional measurement, there is an active stereo method in which a sine wave pattern or a pattern light to which a predetermined spatial coding is applied is projected to detect the position of an object by the principle of triangular measurement.
どのような測定原理であっても撮影画像から距離または3次元位置を求めるためには、対象物が十分な明るさで撮影されており、かつ輝度飽和が発生していない必要がある。十分な明るさがなかったり輝度飽和が発生していたりする場合には、精度のよい測定が行えない。この問題に対応するために、明るさの異なる複数の画像を撮影することも考えられるが、そうすると処理時間が多大になるという問題が生じる。輝度飽和が発生しないような条件で撮影を行った場合、低輝度領域で十分な精度で測定が行えているかを判断できる必要がある。 In order to obtain the distance or the three-dimensional position from the captured image regardless of the measurement principle, it is necessary that the object is photographed with sufficient brightness and that the luminance saturation does not occur. If the brightness is not sufficient or the brightness is saturated, accurate measurement cannot be performed. In order to deal with this problem, it is conceivable to take a plurality of images having different brightness, but this causes a problem that the processing time becomes long. When shooting is performed under conditions that do not cause brightness saturation, it is necessary to be able to determine whether the measurement can be performed with sufficient accuracy in the low brightness region.
特許文献1は、位相シフト法を用いた3次元測定において、所定の輝度振幅以下のデータは利用しないことを開示する。特許文献1は、精度の悪いデータを利用しないことで、低輝度領域において誤った距離が算出されることを防止しているとしている。 Patent Document 1 discloses that data having a predetermined luminance amplitude or less is not used in a three-dimensional measurement using a phase shift method. Patent Document 1 states that by not using inaccurate data, it is possible to prevent an erroneous distance from being calculated in a low-luminance region.
しかしながら、複数の画素を含む領域までの距離を、当該領域に含まれる画素の距離の平均として算出する場合には、輝度振幅だけからは距離精度を求められない。このようにして求められる距離は、たとえば、領域の大きさや輝度のオフセット成分の大きさの影響も受ける。領域が大きいほど平均値は安定し、オフセット成分が大きい(明るい)ほどノイズも大きくなるといった影響があるためである。 However, when the distance to the region including a plurality of pixels is calculated as the average of the distances of the pixels included in the region, the distance accuracy cannot be obtained only from the luminance amplitude. The distance obtained in this way is also affected by, for example, the size of the region and the size of the offset component of the luminance. This is because the larger the region, the more stable the average value, and the larger the offset component (brighter), the larger the noise.
すなわち、撮影画像における輝度振幅のみに基づいて、算出される距離が十分な精度を有するか否かを判定することはできない。 That is, it is not possible to determine whether or not the calculated distance has sufficient accuracy based only on the luminance amplitude in the captured image.
本発明は上記実情に鑑みなされたものであって、本発明は、撮影画像に基づいて計測対象物の高さを求める3次元計測装置において、求められた高さが信頼できるか否かを判定可能な技術を提供することを目的とする。 The present invention has been made in view of the above circumstances, and the present invention determines whether or not the obtained height is reliable in a three-dimensional measuring device that obtains the height of a measurement object based on a captured image. The purpose is to provide possible technologies.
本発明の第一の態様に係る3次元計測装置は、対象物の画像を取得する画像取得手段と、前記画像に基づいて、前記画像中に設定された領域に含まれる複数の画素それぞれについて当該画素にある被写体の高さを求め、前記複数の画素についての被写体の高さから前記領域についての高さを求める高さ算出手段と、前記複数の画素についての被写体高さのばらつきと、前記複数の画素の数とに基づいて、前記領域について求められた高さが信頼
できるか否かを判定する判定手段と、を備える。
The three-dimensional measuring device according to the first aspect of the present invention corresponds to an image acquisition means for acquiring an image of an object and a plurality of pixels included in a region set in the image based on the image. A height calculation means for obtaining the height of a subject in a pixel and obtaining a height for the region from the height of the subject for the plurality of pixels, a variation in the height of the subject for the plurality of pixels, and the plurality. A determination means for determining whether or not the height obtained for the region is reliable based on the number of pixels of the above is provided.
本態様において、前記高さ算出手段は、前記複数の画素の被写体の高さの平均を前記領域についての高さとして求めることができる。 In this embodiment, the height calculation means can obtain the average height of the subjects of the plurality of pixels as the height for the region.
本態様において、前記判定手段は、(前記複数の画素についての被写体高さの標準偏差)/(前記複数の画素の数)1/2が閾値以下の場合に、前記領域についての高さが信頼できると判定することができる。測定結果の標準偏差は一般には測定を複数回行わなければ求められないが、領域の高さが領域内の画素についての高さの平均として求められる場合には、上述の式により領域についての高さの測定結果の標準偏差を推定できる。したがって、領域内の各画素についての高さの標準偏差から領域についての高さの標準偏差を求められ、領域についての高さの確からしさを評価することができる。 In this embodiment, the determination means is reliable in the height of the region when (the standard deviation of the subject height for the plurality of pixels) / (the number of the plurality of pixels) 1/2 is equal to or less than the threshold value. It can be determined that it can be done. The standard deviation of the measurement result is generally not obtained unless the measurement is performed multiple times, but when the height of the region is obtained as the average height of the pixels in the region, the height for the region is calculated by the above formula. The standard deviation of the measurement result can be estimated. Therefore, the standard deviation of the height for the region can be obtained from the standard deviation of the height for each pixel in the region, and the certainty of the height for the region can be evaluated.
本態様に係る3次元計測装置は、前記判定手段によって前記領域についての高さが信頼できないと判定された場合に、前記領域を拡大して高さを再算出するか、もしくは、撮影条件を変えて画像を再取得するか、またはこれらの処理を行うことを提案する制御手段をさらに備えることも好ましい。ここで、撮影条件の変更は、より明るい画像が撮影できるよう変更であればどのようなものであってもよい。撮影条件の変更の例として、照明の明るさの変更、露光時間の変更、カメラの光学系のF値の変更が挙げられる。 When the determination means determines that the height of the region is unreliable, the three-dimensional measuring device according to this embodiment expands the region and recalculates the height, or changes the imaging conditions. It is also preferable to further provide a control means that proposes to reacquire the image or perform these processes. Here, the change of the shooting condition may be any change as long as it can be changed so that a brighter image can be shot. Examples of changing the shooting conditions include changing the brightness of the illumination, changing the exposure time, and changing the F value of the optical system of the camera.
本態様における3次元計測装置は、各画素にある被写体の高さを求める方法は、特に限定されない。高さ算出手法の例として、位相シフト法、光切断法、符号化光投影法等が挙げられる。いずれの手法において、撮影画像における輝度の値が算出精度に影響を及ぼす。 The three-dimensional measuring device in this embodiment is not particularly limited in the method of obtaining the height of the subject in each pixel. Examples of the height calculation method include a phase shift method, an optical cutting method, a coded optical projection method, and the like. In either method, the brightness value in the captured image affects the calculation accuracy.
本発明の第二の態様に係る3次元測定装置は、
正弦波パターンの光を投影する投影手段と、
前記光が投影された対象物の画像を取得する画像取得手段と、
前記対象物に投影する光の位相を異ならせて撮影された複数の画像に基づいて、前記画像中に設定された領域に含まれる複数の画素それぞれについて当該画素にある被写体の基準平面からの高さを求め、前記複数の画素についての高さの平均を前記領域についての高さとして求める高さ算出手段と、
前記複数の画素について高さのばらつきをσ、前記複数の画素の数をN、前記領域についての高さの許容誤差をETとしたときに、σ/N1/2≦ETであれば前記領域についての高さが信頼できると判定し、そうでなければ信頼できないと判定する判定手段と、
を備える。
The three-dimensional measuring device according to the second aspect of the present invention is
A projection means that projects light in a sine wave pattern,
An image acquisition means for acquiring an image of an object on which the light is projected, and an image acquisition means.
Based on a plurality of images taken with different phases of light projected on the object, the height of each of the plurality of pixels included in the region set in the image from the reference plane of the subject in the pixel. A height calculation means for obtaining the height and obtaining the average height of the plurality of pixels as the height for the region.
If σ / N 1/2 ≤ ET , where σ is the height variation for the plurality of pixels, N is the number of the plurality of pixels, and ET is the height tolerance for the region. A determination means for determining that the height of the region is reliable, and otherwise unreliable.
To prepare for.
本態様において、前記高さ算出手段は、前記複数の画像に基づいて、前記複数の画素のそれぞれについて前記光の位相を求め、位相接続処理および位相接続ミスの補正処理を行ってから前記複数の画素のそれぞれについての高さを求めるものであり、前記判定手段は、前記補正処理前の位相を複数のクラスに分類し、含まれる画素の最も多いクラスに含まれる画素の数が、前記複数の画素の全体の数の所定割合よりも少ない場合も、前記領域についての高さが信頼できないと判定することも好ましい。 In this embodiment, the height calculation means obtains the phase of the light for each of the plurality of pixels based on the plurality of images, performs phase connection processing and phase connection error correction processing, and then performs the plurality of phases. The height of each of the pixels is obtained, and the determination means classifies the phase before the correction process into a plurality of classes, and the number of pixels included in the class having the largest number of included pixels is the plurality of pixels. It is also preferable to determine that the height for the region is unreliable even when it is less than a predetermined ratio of the total number of pixels.
なお、本発明は、上記手段の少なくとも一部を含む3次元計測装置として捉えることができる。また、本発明は、上記手段が行う処理の少なくとも一部を含む3次元計測方法として捉えることもできる。また、これらの方法の各ステップをコンピュータに実行させるためのコンピュータプログラムや、当該プログラムを非一時的に記憶したコンピュータ読取可能な記憶媒体として捉えることもできる。上記構成および処理の各々は技術的な矛盾が生じない限り互いに組み合わせて本発明を構成することができる。 The present invention can be regarded as a three-dimensional measuring device including at least a part of the above means. Further, the present invention can also be regarded as a three-dimensional measurement method including at least a part of the processing performed by the above means. Further, it can be regarded as a computer program for causing a computer to execute each step of these methods, or as a computer-readable storage medium in which the program is stored non-temporarily. Each of the above configurations and processes can be combined with each other to construct the present invention as long as there is no technical contradiction.
本発明によれば、撮影画像に基づいて計測対象物の高さを求める3次元計測装置において、求められた高さが信頼できるか否かを判定可能となる。 According to the present invention, it is possible to determine whether or not the obtained height is reliable in the three-dimensional measuring device that obtains the height of the object to be measured based on the captured image.
以下、図面を参照して本発明の好適な実施形態について説明する。本実施形態に係る3次元測定システムは、測定対象物にパターン光を投影して撮影を行い、3角測量の原理を用いて測定対象物の3次元形状を測定する。 Hereinafter, preferred embodiments of the present invention will be described with reference to the drawings. The three-dimensional measurement system according to the present embodiment projects a pattern light onto the object to be measured to take an image, and measures the three-dimensional shape of the object to be measured by using the principle of triangular measurement.
(第1の実施形態)
以下、図面を参照して本発明の好適な実施形態について説明する。本実施形態は基板検査を行うための3次元計測装置である。本実施形態に係る3次元計測装置は、部品が取り付けられた基板(測定対象物)にパターン光を投影して撮影を行い、3角測量の原理を用いて測定対象物の3次元形状を測定する。本実施形態では、基板の表面高さ(基板が設置されている面と平行な基準面からの距離)を測定し、基板に部品が正常に取り付けられているかどうかを検査(部品浮き検査)する。
(First Embodiment)
Hereinafter, preferred embodiments of the present invention will be described with reference to the drawings. This embodiment is a three-dimensional measuring device for inspecting a substrate. The three-dimensional measuring device according to the present embodiment projects a pattern light onto a substrate (measurement object) on which a component is attached to take an image, and measures the three-dimensional shape of the measurement object using the principle of triangular surveying. do. In this embodiment, the surface height of the board (distance from the reference plane parallel to the surface on which the board is installed) is measured, and whether or not the parts are normally mounted on the board is inspected (part floating inspection). ..
[構成]
図1は、本実施形態に係る3次元計測装置100の構成を示す図である。3次元計測装置100は、大略、投影部110、カメラ120、演算装置130から構成される。
[Constitution]
FIG. 1 is a diagram showing a configuration of a three-
投影部110は、測定対象物150に対して、正弦波のパターン光を投影する。投影部110は、ハロゲンランプやキセノンランプなどの光源、光源から照射された光にパターンを形成するための液晶素子などのパターン生成素子、およびマイクロレンズなどの光学系を備える。なお、投影部110が投影する光は、可視光である必要はなく、赤外光などの不可視光であっても良い。
The
投影部110が投影する光のパターンについて説明する。本実施形態では、位相シフト法を用いて3次元測定を行うので、投影部110は、周期的に変動する縞状のパターン光を投影する。図2(A)に投影部110が投影する光のパターンの例を示す。図2(A)に示す例は、縦縞のパターン光、すなわち、横方向に輝度が正弦波状に連続的に変化し、縦方向には輝度が一定であるようなパターン光を示す。正弦波の周波数(パターン光の空間周波数)は特に限定されない。本実施形態では、縦縞のパターン光の位相をずらしつつ複数回投影する。位相算出のためには最低3回の投影が必要であり、計測精度を考慮すると撮影枚数は多いほど好ましい。本実施形態では、計測の容易性から位相を90°(4分
の1周期)ずつずらして4回の投影を行う。以下では、これら複数の縦縞のパターン光を縦縞パターン光セットと称する。このように、縦縞パターン光セットのそれぞれを測定対象物150に投影して撮影した複数の画像から、画像に生じた輝度の変化の位相を算出することで測定対象物150の高さを測定できる。
The pattern of light projected by the
図2(B)は、投影光の正弦波の位相を異ならせて撮影された複数枚(ここでは4枚)の画像におけるある一点での輝度値I1~I4を示す。これらの輝度値から、当該点での位相のズレθを求めることができる(位相復元)。この位相をもとに三角測量の原理を用いて、当該点の高さを求めることができる。 FIG. 2B shows luminance values I1 to I4 at a certain point in a plurality of images (here, four images) taken with different phases of the sine waves of the projected light. From these luminance values, the phase shift θ at that point can be obtained (phase restoration). Based on this phase, the height of the point can be obtained using the principle of triangulation.
カメラ120は、パターン光が投影された測定対象物150を撮影する。カメラ120は、制御部131からの指令に基づいて、投影部110がパターン光の位相を切り替える度に撮影を行う。本実施形態においては、カメラ120が撮影した画像データは、画像入力部133に入力される。
The
演算装置130は、CPUなどのプロセッサ、RAMやROMなどのメモリ(記憶装置)、外部装置とのインタフェース、キーボードやマウスなどの入力装置、およびディスプレイやスピーカーなどの出力装置を備えるコンピュータである。演算装置130は、メモリに格納されたプログラムをCPUが実行することにより、制御部131、画像入力部133、高さ算出部134、精度判定部135、検査部136、通知部137などの機能を提供する。上記の各機能の一部または全ては、ASIC(Application Specific Integrated Circuit)やFPGA(Field Programmable Gate Array)のようなハードウェア回路によって実現されても構わない。これらの各機能部の詳細は、以下のフローチャートともに説明する。
The
[処理]
[[基板検査の全体処理]]
図3は、本実施形態に係る3次元計測装置100が行う基板検査の一つである部品浮き検査処理の全体の流れを示すフローチャートである。ここで示すフローチャートは処理の一例であり、その処理内容や処理順序は適宜変更して構わない。なお、投影部110とカメラ120のキャリブレーション(較正処理)は完了しているものとする。
[process]
[[Overall processing of board inspection]]
FIG. 3 is a flowchart showing the entire flow of the component float inspection process, which is one of the substrate inspections performed by the three-
まず、ステップS102において、投影タイミングごとに位相を異ならせた正弦波パターンを投影部110から測定対象物150に対して投影し、パターン光の投影にあわせてカメラ120が測定対象物150を撮影する。投影部110は、制御部132からの指令にしたがって、指示されたタイミングで指示された位相の正弦波パターン光を測定対象物150に投影する。制御部132は、投影部110がパターン光の位相を変える度に、撮影を行うようにカメラ120を制御する。カメラ120によって撮影された画像データは、画像入力部133に入力されて、一時的に記憶される。なお、ステップS102において撮影された複数の画像データをまとめて、撮影画像データと称する。
First, in step S102, a sine wave pattern whose phase is different for each projection timing is projected from the
次に、ステップS104において、ユーザが入力部(不図示)を介して、撮影画像における距離検出領域を複数設定する。もしくは3次元計測装置100が公知の技術を用いて自動的に撮影画像における距離検出領域を複数設定する。距離検出領域は、その中の各点の高さが等しいような領域とすることが望ましい。図5(A)に距離検出領域の設定の例を示す。図5(A)は、部品52を含む基板が撮影された画像51を示す。ここでは部品52内に4つの距離検出領域53a~53dが設定されている。なお、撮影時における基板とカメラの位置関係があらかじめ決まっていれば、距離検出領域はあらかじめ定めておくことができる。
Next, in step S104, the user sets a plurality of distance detection areas in the captured image via the input unit (not shown). Alternatively, the three-
後述するように、それぞれの距離検出領域について1つの高さが算出される。これら4つの領域の高さから、部品52が適切な位置(高さ)に水平に設置されているか、すなわち部品52が基板に適切に取り付けられているかが判定される。
As will be described later, one height is calculated for each distance detection area. From the heights of these four regions, it is determined whether the
ステップS106において、高さ算出部134は、距離検出領域53a~53dのそれぞれについて、領域内に含まれる各点(各画素)の高さを求め、その高さの平均を当該領域の高さとして決定する。
In step S106, the
ステップS108では、検査部136が領域ごとの高さから部品52が正常に取り付けられているか否かを判定する。具体的には、各領域の距離差の最大値が基準値(許容ばらつき)以内であり、かつ、各領域の距離の平均が基準以内であれば(S108-YES)であれば、検査部136は部品52が正常に取り付けられていると判定する(S110)。なお、これらの基準値(高さの許容ばらつきおよび高さの許容範囲)はあらかじめ設定されているものとする。なお、部品が正常に取り付けられているか否かの判定条件は、ここで示した条件に限られるものではない。
In step S108, the
一方、ステップS108の判定において距離差の最大値が基準値を超えれば部品52は水平に取り付けられていないことが分かり、また、平均距離が基準値外であれば正しい高さに取り付けられていないことが分かる。したがってこの場合(S108-NO)は、検査部136は部品52の取り付け状態が異常であると判定する(S112)。
On the other hand, in the determination of step S108, if the maximum value of the distance difference exceeds the reference value, it is found that the
[[距離算出処理の詳細処理]]
図4は、ステップS106における距離算出処理の詳細な流れを示すフローチャートである。図4は、1つの距離検出領域の高さを求める処理である。したがって、距離検出領域53a~53dのそれぞれについて図4に示す処理が実行される。以下では、図4において処理の対象とされている距離検出領域を対象領域と称する。
[[Detailed processing of distance calculation processing]]
FIG. 4 is a flowchart showing a detailed flow of the distance calculation process in step S106. FIG. 4 is a process for obtaining the height of one distance detection area. Therefore, the process shown in FIG. 4 is executed for each of the
ステップS202において、高さ算出部134は、対象領域内の各画素について位相を算出する。各画素の位相φは、キャリブレーションにより画素ごとに決定される基準位相との差を用いて高さhに変換可能である。位相を求める際には、位相接続と呼ばれる操作を行って、位相を広範囲にわたる連続量に変換する。位相接続によって全ての位相が正しく接続されるとは限らず、位相接続ミスが発生する場合がある。位相接続ミスが発生すると、位相接続後の位相には誤差として2πi/α(iは整数、αは接続倍率)が加算される。
In step S202, the
図5(B)は、位相接続後の位相誤差のヒストグラムを示す。位相誤差は、各画素の位相と対象領域内の平均位相との差である。ノイズによる誤差は正規分布(ガウス分布)にしたがうが、位相接続ミスによる誤差は上述のように離散的な値をとる。したがって、ヒストグラムの形状は中心が2πi/αずつずれたα種類の正規分布が混合した形状となる。ここで、位相接続ミスが発生する確率は発生しない確率よりも低いので、図5(B)に示すように位相誤差0付近の分布が最大の集合となる。 FIG. 5B shows a histogram of the phase error after the phase connection. The phase error is the difference between the phase of each pixel and the average phase in the target region. The error due to noise follows a normal distribution (Gaussian distribution), but the error due to a phase connection error takes a discrete value as described above. Therefore, the shape of the histogram is a mixture of α-type normal distributions whose centers are offset by 2πi / α. Here, since the probability that a phase connection error occurs is lower than the probability that a phase connection error does not occur, the distribution near zero phase error is the largest set as shown in FIG. 5 (B).
ステップS204において、高さ算出部134は、図5(B)の分布を複数のクラスに分類する。この処理により、図5(B)において点線で区切られた複数の分布が得られる。
In step S204, the
ステップS206において、高さ算出部134は、画素数が最大のクラス54に属する画素数が、対象領域全体の画素数の所定割合以上であるか否かを判定する。この判定がYESであれば、ステップS208に進み位相接続ミスの補正が行われる。具体的には、高さ算出部134は、各クラスの位相から2πi/αを引く(整数iはクラスごとに決めら
れる)。これにより、位相誤差のヒストグラムは、図5(C)に示すような中心が0の1つの正規分布55となる。一方、ステップS206の判定がNOであれば、位相接続ミスの補正が正しく行えないため、ステップS220に進み撮影条件を変えて再撮影を行うことを提案する。
In step S206, the
一般に、位相接続ミスのないクラスに分類される位相の数は、他のクラスに分類される位相の数よりも十分に大きくなる。しかし、条件によっては接続ミスのないクラスの要素数と他のクラスの要素数に十分な差が生じない場合があり、そのような場合には接続ミスのないクラスの推定を誤る可能性がある。このような誤判定を防ぐために、ステップS206の判定が導入されている。ステップS206の条件を満たさない場合には、接続ミスの補正が不可能であると判断される。ステップS206における所定割合は実験を用いて適宜評価すればよいが、接続ミスのあるクラスの要素数は全体の35%以上にはならないと考えられる。したがって、所定割合として35%を利用することができる。 In general, the number of phases classified into a class without phase connection errors is sufficiently larger than the number of phases classified into other classes. However, depending on the conditions, there may not be a sufficient difference between the number of elements in the class without connection errors and the number of elements in other classes, and in such cases, the estimation of the class without connection errors may be incorrect. .. In order to prevent such an erroneous determination, the determination in step S206 has been introduced. If the condition of step S206 is not satisfied, it is determined that the correction of the connection error is impossible. The predetermined ratio in step S206 may be appropriately evaluated using an experiment, but it is considered that the number of elements in the class having a connection error does not exceed 35% of the total. Therefore, 35% can be used as a predetermined ratio.
ステップS212において、高さ算出部134は、補正後の位相の標準偏差σ(すなわち図5(C)に示される分布55の標準偏差)を算出する。また、ステップS214において、高さ算出部134は、対象領域内の画素数N(すなわち、分布55の要素数)を取得する。
In step S212, the
ステップS216において、精度判定部135は、σ/N1/2が、高さ測定における許容誤差ET以下であるか否かを判定する。高さ測定の許容誤差ETは、ユーザによってあらかじめ設定され、メモリに格納されている。対象領域は高さが等しい(と推定される)画素から構成されるので、対象領域の高さを当該領域内の各画素の高さの平均値として求める場合には、対象領域の高さの標準誤差はσ/N1/2となる。したがって、ステップS216の判定により、領域の高さの測定誤差が許容誤差以内となるか否かを判定できる。なお、ここではσ/N1/2が許容誤差ET以下となることを条件としたが、ET/2以下あるいはET/3以下などを条件としても構わない。
In step S216, the
ステップS216の判定がYESであれば、対象領域の高さの測定誤差(真値とのズレ)が許容誤差以内になると推定できる。したがって、この場合はステップS218に進み、高さ算出部134は、対象領域の各画素の高さの平均を当該対象領域の高さとして決定する。
If the determination in step S216 is YES, it can be estimated that the measurement error (deviation from the true value) of the height of the target region is within the permissible error. Therefore, in this case, the process proceeds to step S218, and the
一方、ステップS216の判定がNOであれば、対象領域の高さの推定誤差が許容誤差よりも大きくなる可能性が高い。したがって、この場合はステップS220に進み、制御部131は、通知部137から撮影条件を変えて再測定を行うことを提案するように制御を行う。撮影条件の変更の例として、照明の明るさの変更、露光時間の変更、カメラの光学系のF値の変更が挙げられる。なお、ステップS220では、制御部131は、撮影条件の変更の提案を行う代わりに、撮影条件を自動的に変更して再計測を自動的に行うようにしても構わない。
On the other hand, if the determination in step S216 is NO, there is a high possibility that the estimation error of the height of the target region will be larger than the permissible error. Therefore, in this case, the process proceeds to step S220, and the
[評価結果]
図6(A),6(B)は、実験による評価結果を示す図である。図6(A)は比較的好条件の領域についての評価結果を示し、図6(B)は図6(A)よりも条件が悪い領域についての評価結果を示す。
[Evaluation results]
6 (A) and 6 (B) are diagrams showing the evaluation results by the experiment. FIG. 6A shows the evaluation results for the region with relatively favorable conditions, and FIG. 6B shows the evaluation results for the region with worse conditions than FIG. 6A.
この実験では、位相推定を50回試行した。平均高さを求める平面領域(一例が、図6(A)の領域61、図6(B)の領域65として示されている)を設定し、各回の実験データに対して領域内の平均位相と標準偏差推定を行った。50回の平均位相に対して標準偏差を求め、平均位相の標準偏差と各試行での推定値との比較を行った。また、領域の面
積を変化させて領域サイズ(画素数)と標準偏差の関係についても評価した。
In this experiment, phase estimation was tried 50 times. A plane region (an example is shown as
図6(A),6(B)において、丸印62が50回の平均位相の標準偏差を示す。縦方向の線63(実際は50点のプロット)は、各回の実験データ(領域内の位相の標準偏差と領域内の画素数)から推定される平均位相の標準偏差を示す。曲線64は、平均位相の標準偏差の理論値を示す。
In FIGS. 6 (A) and 6 (B), the
図6(A)、6(B)から、比較的条件が悪い場合であっても、0.001ラジアン程度の精度で標準偏差の推定が可能であることが分かる。また、領域サイズ(領域内の画素数)が増加すると、領域の平均位相の誤差は領域サイズNに対してN-1/2のオーダーで減少していることが分かる。 From FIGS. 6 (A) and 6 (B), it can be seen that the standard deviation can be estimated with an accuracy of about 0.001 radian even when the conditions are relatively bad. Further, it can be seen that as the region size (the number of pixels in the region) increases, the error in the average phase of the region decreases in the order of N- 1 / 2 with respect to the region size N.
[本実施形態の有利な効果]
測定誤差は、本来は複数回の測定を行わなければ求められない。本実施形態では、領域内の複数画素の高さの平均として領域の高さを求めているので、領域内の高さの標準偏差と領域内の画素の数から、領域の高さの標準誤差を推定可能である。したがって、1回の測定(より正確には、1セットのパターン光投影と撮影)により、高さの測定誤差を求めることができる。
[Advantageous effect of this embodiment]
Originally, the measurement error cannot be obtained unless a plurality of measurements are performed. In the present embodiment, since the height of the region is obtained as the average of the heights of a plurality of pixels in the region, the standard error of the height of the region is obtained from the standard deviation of the height in the region and the number of pixels in the region. Can be estimated. Therefore, the height measurement error can be obtained by one measurement (more accurately, one set of pattern light projection and photographing).
基板検査において、反射率が低い領域は照明の正弦波パターンによる輝度振幅が小さくなり、SN比の減少や位相接続ミスのような要因により画素単位では十分に精度のよい高さ計測が行えない。一方、基板検査において部品浮きなどを検査する場合には、画素単位ではなく領域単位の平均高さのばらつき精度が十分安定していれば検査が可能である。本実施形態では、領域単位での高さ測定にばらつきが許容範囲内であるか否かを判定できる。すなわち、反射率が低いような低振幅領域においても、要求される精度で高さ計測が行える。また、十分な精度が得られない場合に、撮影条件を変更して再計測を行うように提案できる。 In the substrate inspection, the luminance amplitude due to the sine wave pattern of illumination becomes small in the region where the reflectance is low, and due to factors such as a decrease in the SN ratio and a phase connection error, it is not possible to perform height measurement with sufficient accuracy on a pixel-by-pixel basis. On the other hand, in the case of inspecting the floating of parts in the substrate inspection, the inspection is possible if the variation accuracy of the average height in the area unit is sufficiently stable, not in the pixel unit. In the present embodiment, it is possible to determine whether or not the variation in the height measurement in each region is within the allowable range. That is, the height can be measured with the required accuracy even in a low amplitude region where the reflectance is low. In addition, if sufficient accuracy cannot be obtained, it can be proposed to change the shooting conditions and perform remeasurement.
(変形例)
上記の説明では、位相シフト法を用いて部品の高さを求めているが、部品高さを求める具体的な手法は位相シフト法に限られない。その他に利用可能な手法として、スリット光あるいはスポット光を投影する光切断法、空間符号化が施されたパターン光を投影する符号化光投影法なども利用可能である。具体的な手法に関わらず、領域内の各点についての高さのばらつきおよび領域サイズから、領域内の平均高さの誤差を求められる。
(Modification example)
In the above description, the height of the component is obtained by using the phase shift method, but the specific method for determining the height of the component is not limited to the phase shift method. As other methods that can be used, a light cutting method that projects slit light or spot light, a coded light projection method that projects spatially coded pattern light, and the like can also be used. Regardless of the specific method, the error of the average height in the region can be obtained from the height variation and the region size at each point in the region.
また、本発明にかかる3次元計測装置は必ずしも基板検査装置あるいは検査装置に組み込んで利用する必要はない。3次元計測の計測結果は任意の用途に利用可能であり、本発明は3次元計測装置あるいは3次元計測方法として捉えることができる。 Further, the three-dimensional measuring device according to the present invention does not necessarily have to be incorporated into a substrate inspection device or an inspection device for use. The measurement result of the three-dimensional measurement can be used for any purpose, and the present invention can be regarded as a three-dimensional measuring device or a three-dimensional measuring method.
また、上記の実施形態では物体表面の高さを求めているが、任意の軸に沿った位置、ある投影平面内での位置、3次元位置などを計測の対象として構わない。対象領域内の各画素の測定値のばらつきが正規分布にしたがうことを利用しているので、3次元位置を計測対象とする場合には、対象領域の大きさはノイズによる誤差よりも小さくなるように設定すること必要がある。 Further, although the height of the object surface is obtained in the above embodiment, a position along an arbitrary axis, a position in a certain projection plane, a three-dimensional position, or the like may be measured. Since the variation of the measured value of each pixel in the target area follows a normal distribution, the size of the target area should be smaller than the error due to noise when the measurement target is a three-dimensional position. Must be set to.
100:3次元計測装置 110:投影部 120:カメラ 130:演算装置 150:計測対象物
131:制御部 133:画像入力部 134:3次元位置算出部 135:精度判定部
136:検査部 137:通知部
100: 3D measurement device 110: Projection unit 120: Camera 130: Arithmetic unit 150: Measurement object 131: Control unit 133: Image input unit 134: 3D position calculation unit 135: Accuracy determination unit 136: Inspection unit 137: Notification Department
Claims (10)
前記対象物の画像を取得する画像取得手段と、
前記画像に基づいて、前記画像中に設定された領域に含まれる複数の画素それぞれについて当該画素にある被写体の高さを求め、前記複数の画素についての被写体の高さから前記領域についての高さを求める高さ算出手段と、
前記領域に含まれる前記複数の画素についての被写体高さのばらつきを、前記複数の画素の数に応じた値で割った値が、所定の閾値以下である場合に、前記領域について求められた高さが信頼できると判定し、そうでない場合に信頼できないと判定する判定手段と、
を備え、
前記高さ算出手段は、前記対象物の複数の領域のそれぞれについて、当該領域についての高さを求め、
前記複数の領域についての高さが前記判定手段によって信頼できると判定される場合に、前記複数の領域についての高さに基づいて、前記対象物が前記基板に正常に取り付けられているか否かを判定する検査手段をさらに備える、
ことを特徴とする、検査装置。 An inspection device that inspects whether an object is normally attached to a board.
An image acquisition means for acquiring an image of the object and
Based on the image, the height of the subject in the pixel is obtained for each of the plurality of pixels included in the region set in the image, and the height of the subject from the plurality of pixels is the height of the region. Height calculation means to find
The height obtained for the region when the value obtained by dividing the variation in the subject height for the plurality of pixels included in the region by the value corresponding to the number of the plurality of pixels is equal to or less than a predetermined threshold value. A determination means that determines that the image is reliable, and if it is not, it is determined that the image is unreliable.
Equipped with
The height calculation means obtains the height of each of the plurality of regions of the object, and obtains the height of the region.
When the heights of the plurality of regions are determined to be reliable by the determination means, whether or not the object is normally attached to the substrate is determined based on the heights of the plurality of regions. Further equipped with inspection means for determination,
An inspection device characterized by that.
請求項1に記載の検査装置。 The inspection means is the object if the maximum value of the distance difference between the heights of the plurality of regions is within the first reference value and the average of the heights of the plurality of regions is within the second reference value. Is determined to be normally attached to the board,
The inspection device according to claim 1.
請求項1または2に記載の検査装置。 The height calculation means obtains the average of the heights of the subjects of the plurality of pixels as the height for the region.
The inspection device according to claim 1 or 2.
請求項1から3のいずれか1項に記載の検査装置。 The variation in the subject height for the plurality of pixels is the standard deviation of the subject height for the plurality of pixels.
The inspection device according to any one of claims 1 to 3.
記領域を拡大して高さを再算出するか、もしくは、撮影条件を変えて画像を再取得するか、またはこれらの処理を行うことを提案する制御手段をさらに備える、
請求項1から4のいずれか1項に記載の検査装置。 When the determination means determines that the height of the area is unreliable, the area is enlarged to recalculate the height, or the shooting conditions are changed and the image is reacquired. Further equipped with a control means that proposes to perform the processing of
The inspection device according to any one of claims 1 to 4.
請求項1から5のいずれか1項に記載の検査装置。 The height of the subject in the pixel is obtained for each of the pixels by any of the phase shift method, the optical cutting method, and the coded light projection method.
The inspection device according to any one of claims 1 to 5.
正弦波パターンの光を投影する投影手段と、
前記光が投影された対象物の画像を取得する画像取得手段と、
前記対象物に投影する光の位相を異ならせて撮影された複数の画像に基づいて、前記画像中に設定された領域に含まれる複数の画素それぞれについて当該画素にある被写体の基準平面からの高さを求め、前記複数の画素についての高さの平均を前記領域についての高さとして求める高さ算出手段と、
前記複数の画素について高さのばらつきをσ、前記複数の画素の数をN、前記領域についての高さの許容誤差をETとしたときに、σ/N1/2≦ETであれば前記領域についての高さが信頼できると判定し、そうでなければ信頼できないと判定する判定手段と、
を備え、
前記高さ算出手段は、前記対象物の複数の領域のそれぞれについて、当該領域についての高さを求め、
前記複数の領域についての高さが前記判定手段によって信頼できると判定される場合に、前記複数の領域についての高さに基づいて、前記対象物が前記基板に正常に取り付けられているか否かを判定する検査手段をさらに備える、
ことを特徴とする、検査装置。 An inspection device that inspects whether an object is normally attached to a board.
A projection means that projects light in a sine wave pattern,
An image acquisition means for acquiring an image of an object on which the light is projected, and an image acquisition means.
Based on a plurality of images taken with different phases of light projected on the object, the height of each of the plurality of pixels included in the region set in the image from the reference plane of the subject in the pixel. A height calculation means for obtaining the height and obtaining the average height of the plurality of pixels as the height for the region.
If σ / N 1/2 ≤ ET , where σ is the height variation for the plurality of pixels, N is the number of the plurality of pixels, and ET is the height tolerance for the region. A determination means for determining that the height of the region is reliable, and otherwise unreliable.
Equipped with
The height calculation means obtains the height of each of the plurality of regions of the object, and obtains the height of the region.
When the heights of the plurality of regions are determined to be reliable by the determination means, whether or not the object is normally attached to the substrate is determined based on the heights of the plurality of regions. Further equipped with inspection means for determination,
An inspection device characterized by that.
前記判定手段は、前記補正処理前の位相を複数のクラスに分類し、含まれる画素の最も多いクラスに含まれる画素の数が、前記複数の画素の全体の数の所定割合よりも少ない場合も、前記領域についての高さが信頼できないと判定する、
請求項7に記載の検査装置。 The height calculation means obtains the phase of the light for each of the plurality of pixels based on the plurality of images, performs phase connection processing and phase connection error correction processing, and then for each of the plurality of pixels. The height of the
The determination means classifies the phase before the correction process into a plurality of classes, and the number of pixels included in the class having the largest number of pixels included may be less than a predetermined ratio of the total number of the plurality of pixels. , Judge that the height for the area is unreliable,
The inspection device according to claim 7.
対象物の画像を取得する画像取得ステップと、
前記画像に基づいて、前記画像中に設定された領域に含まれる複数の画素それぞれについて当該画素にある被写体の高さを求め、前記複数の画素についての被写体の高さから前記領域についての高さを求める高さ算出ステップと、
前記領域に含まれる前記複数の画素についての被写体高さのばらつきを、前記複数の画素の数に応じた値で割った値が所定の閾値以下である場合に、前記領域について求められた高さが信頼できると判定し、そうでない場合に信頼できないと判定する判定ステップと、
を含み、
前記高さ算出ステップでは、前記対象物の複数の領域のそれぞれについて、当該領域についての高さを求め、
前記複数の領域についての高さが前記判定ステップにおいて信頼できると判定される場合に、前記複数の領域についての高さに基づいて、前記対象物が前記基板に正常に取り付けられているか否かを判定する検査ステップをさらに含む、
検査方法。 It is an inspection method to inspect whether the object is normally attached to the board.
An image acquisition step to acquire an image of an object, and
Based on the image, the height of the subject in the pixel is obtained for each of the plurality of pixels included in the region set in the image, and the height of the subject from the plurality of pixels is the height of the region. The height calculation step to find
The height obtained for the region when the value obtained by dividing the variation in the subject height for the plurality of pixels included in the region by the value corresponding to the number of the plurality of pixels is equal to or less than a predetermined threshold value. Is determined to be reliable, and if not, it is determined to be unreliable.
Including
In the height calculation step, for each of the plurality of regions of the object, the height of the region is obtained.
If the heights of the plurality of regions are determined to be reliable in the determination step, whether or not the object is normally attached to the substrate is determined based on the heights of the plurality of regions. Including additional inspection steps to determine,
Inspection methods.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2020079260A JP7088232B2 (en) | 2020-04-28 | 2020-04-28 | Inspection equipment, inspection methods, and programs |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2020079260A JP7088232B2 (en) | 2020-04-28 | 2020-04-28 | Inspection equipment, inspection methods, and programs |
Related Parent Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2017045648A Division JP6702234B2 (en) | 2017-03-10 | 2017-03-10 | Three-dimensional measuring device, three-dimensional measuring method, and program |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2020122800A JP2020122800A (en) | 2020-08-13 |
| JP7088232B2 true JP7088232B2 (en) | 2022-06-21 |
Family
ID=71992565
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2020079260A Active JP7088232B2 (en) | 2020-04-28 | 2020-04-28 | Inspection equipment, inspection methods, and programs |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP7088232B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN114234847B (en) * | 2021-12-08 | 2024-01-30 | 苏州恒视智能科技有限公司 | Grating projection system and grating phase shift height measurement automatic correction compensation method |
Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2004340832A (en) | 2003-05-16 | 2004-12-02 | Matsushita Electric Ind Co Ltd | Circuit board appearance inspection method and circuit board appearance inspection apparatus |
| JP2011133258A (en) | 2009-12-22 | 2011-07-07 | Yamatake Corp | Three-dimensional shape measuring method and three-dimensional shape measuring instrument |
| JP2013029975A (en) | 2011-07-28 | 2013-02-07 | Fuji Electric Co Ltd | Axle detection device |
| JP2013130457A (en) | 2011-12-21 | 2013-07-04 | Azbil Corp | Shape measurement apparatus, shape measurement system and shape measurement method |
| JP2016130663A (en) | 2015-01-13 | 2016-07-21 | オムロン株式会社 | Inspection device and control method of inspection device |
| JP2017015556A (en) | 2015-07-01 | 2017-01-19 | 名古屋電機工業株式会社 | Substrate height analysis apparatus, substrate height analysis method, and substrate height analysis program |
| JP2018151172A (en) | 2017-03-10 | 2018-09-27 | オムロン株式会社 | Three-dimensional measuring apparatus, three-dimensional measuring method, and program |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH07225834A (en) * | 1994-02-10 | 1995-08-22 | Matsushita Electric Ind Co Ltd | Image noise detector |
-
2020
- 2020-04-28 JP JP2020079260A patent/JP7088232B2/en active Active
Patent Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2004340832A (en) | 2003-05-16 | 2004-12-02 | Matsushita Electric Ind Co Ltd | Circuit board appearance inspection method and circuit board appearance inspection apparatus |
| JP2011133258A (en) | 2009-12-22 | 2011-07-07 | Yamatake Corp | Three-dimensional shape measuring method and three-dimensional shape measuring instrument |
| JP2013029975A (en) | 2011-07-28 | 2013-02-07 | Fuji Electric Co Ltd | Axle detection device |
| JP2013130457A (en) | 2011-12-21 | 2013-07-04 | Azbil Corp | Shape measurement apparatus, shape measurement system and shape measurement method |
| JP2016130663A (en) | 2015-01-13 | 2016-07-21 | オムロン株式会社 | Inspection device and control method of inspection device |
| JP2017015556A (en) | 2015-07-01 | 2017-01-19 | 名古屋電機工業株式会社 | Substrate height analysis apparatus, substrate height analysis method, and substrate height analysis program |
| JP2018151172A (en) | 2017-03-10 | 2018-09-27 | オムロン株式会社 | Three-dimensional measuring apparatus, three-dimensional measuring method, and program |
Also Published As
| Publication number | Publication date |
|---|---|
| JP2020122800A (en) | 2020-08-13 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP7186019B2 (en) | Three-dimensional shape measuring device and three-dimensional shape measuring method | |
| US9835438B2 (en) | Distance measuring apparatus and method | |
| CN112313541B (en) | Apparatus and method | |
| WO2019153569A1 (en) | Phase error correction method for defocusing phenomenon of fringe projection profilometric system | |
| US20130222579A1 (en) | Measurement apparatus and correction method of the same | |
| US10067029B2 (en) | Systems and methods for estimating modulation transfer function in an optical system | |
| US20220357149A1 (en) | Apparatus and method for determining three-dimensional shape of object | |
| JP6702234B2 (en) | Three-dimensional measuring device, three-dimensional measuring method, and program | |
| JP2006527372A5 (en) | ||
| US11898838B2 (en) | Adjustment method and measurement method | |
| JP7088232B2 (en) | Inspection equipment, inspection methods, and programs | |
| JP6673266B2 (en) | Mutual reflection detecting device, mutual reflection detecting method, and program | |
| JP2014066538A (en) | Target for photogrammetry, and photogrammetry method | |
| CN102538680B (en) | Method for inspecting substrate | |
| JP7219034B2 (en) | Three-dimensional shape measuring device and three-dimensional shape measuring method | |
| CN111829456B (en) | Three-dimensional shape measuring device and three-dimensional shape measuring method | |
| JP4423347B2 (en) | Inspection method and inspection apparatus for compound eye distance measuring apparatus and chart used therefor | |
| JP6867487B2 (en) | Imaging device | |
| JP7139953B2 (en) | Three-dimensional shape measuring device, three-dimensional shape measuring method and program | |
| CN116897602A (en) | Inspection system, inspection management device, inspection program generation method and program | |
| CN113516645B (en) | Imaging plane space correction method and correction device and wafer measurement device | |
| JPH10289316A (en) | Parallax calculator, distance calculator and method for the same | |
| TWI839081B (en) | Offset measurement method, measurement device, and computer program product | |
| US20220076435A1 (en) | Three-Dimensional Shape Measuring Method And Three-Dimensional Shape Measuring Device | |
| JP2024117880A (en) | Three-dimensional measurement device and three-dimensional measurement method |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20200428 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20210329 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20210406 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20210524 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20211109 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20220107 |
|
| TRDD | Decision of grant or rejection written | ||
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20220510 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20220523 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 7088232 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |