JP2007263696A - Profile-defect detection method and program - Google Patents

Profile-defect detection method and program Download PDF

Info

Publication number
JP2007263696A
JP2007263696A JP2006088212A JP2006088212A JP2007263696A JP 2007263696 A JP2007263696 A JP 2007263696A JP 2006088212 A JP2006088212 A JP 2006088212A JP 2006088212 A JP2006088212 A JP 2006088212A JP 2007263696 A JP2007263696 A JP 2007263696A
Authority
JP
Japan
Prior art keywords
measurement data
slope
pseudo
straight line
defect
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.)
Granted
Application number
JP2006088212A
Other languages
Japanese (ja)
Other versions
JP4927427B2 (en
Inventor
Masaki Iguchi
雅喜 井口
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nippon Sheet Glass Co Ltd
Original Assignee
Nippon Sheet Glass Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nippon Sheet Glass Co Ltd filed Critical Nippon Sheet Glass Co Ltd
Priority to JP2006088212A priority Critical patent/JP4927427B2/en
Publication of JP2007263696A publication Critical patent/JP2007263696A/en
Application granted granted Critical
Publication of JP4927427B2 publication Critical patent/JP4927427B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Length Measuring Devices By Optical Means (AREA)
  • Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a defect detection method and its program for calculating a quasi-straight line with accuracy that will not deteriorate, by using a simple means, in a state of on-line real time where inspecting objects are flowing, when detecting defects in the profile shapes of the inspecting objects. <P>SOLUTION: A measurement-data capturing means 11 of a discriminator 4 thereinto inputs an output waveform of the voltage level of a glass plate 1 from a one-dimensional CCD camera 3, to generate measurement data on each inspection side, while specifying a corner of the glass plate 1. A quasi-straight line calculation means 12 calculates the initial value of an intercept and that of a slope by the least-squares method, in calculating the quasi-straight line. Two slopes are calculated by means of enclosure method, by using a function indicating the degree of distribution of the measurement data as to the positional relation between the measurement data and an initial quasi-straight line, based on the initial-value intercept and slope. Furthermore, a slope optimum with respect to these two slopes is calculated by a method of bisection, and a quasi-straight line, based on the slope and the then intercept, is calculated. <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

本発明は、ガラス板等の外形に発生する欠点を検出する技術に関する。   The present invention relates to a technique for detecting a defect occurring in an outer shape of a glass plate or the like.

従来、ガラス板等の外形に発生する欠点を検出する手法の研究が進められている。例えば、特許文献1には、ガラス板の切口に発生した欠点を検出する装置が記載されている。一般に、ガラス板製造ラインにおいて、ガラス板の製造は、窯から引き上げられたガラス板を、ラインコンベア上で搬送方向に平行な方向及び垂直な方向にそれぞれ切断することにより行われる。具体的には、トリンマにより搬送方向に平行な方向の切断線(トリンマ線)を引き、斜行カッタにより搬送方向に直角な方向の切断線(カッタ線)を引き、ブレーカによりカッタ線に沿って切断し、中割装置によりトリンマ線に沿って切断する。この切断の際に、ガラス板の切口であるエッジには、ガラス板の面方向の外側に突き出た角(つの)や、ガラス板の面方向の内側に欠けた欠け等の欠点が発生する場合がある。切口欠点検出装置が欠点を検出することにより、切口不良のあるガラス板は、その程度に応じて不良品として廃棄される。このように、切口欠点検出装置は、切口の欠点検出を目視で行う代わりに開発されたものであり、ガラス板が高速で搬送されている状態の下で、そのガラス板の切口に発生した角及び欠け等の欠点を、オンラインリアルタイム処理にて検出することができる。   Conventionally, research on techniques for detecting defects occurring in the outer shape of a glass plate or the like has been underway. For example, Patent Document 1 describes an apparatus for detecting a defect generated at a cut surface of a glass plate. Generally, in a glass plate production line, a glass plate is produced by cutting a glass plate pulled up from a kiln in a direction parallel to a conveying direction and a direction perpendicular to the conveying direction on a line conveyor. Specifically, a cutting line (trimmer line) in a direction parallel to the conveying direction is drawn by a trimmer, a cutting line (cutter line) in a direction perpendicular to the conveying direction is drawn by a skew cutter, and a cutting line is cut along the cutter line. Cut and cut along the trimmer line with a splitting device. When this cutting occurs, the edge that is the cut edge of the glass plate has defects such as corners (outside) protruding outward in the surface direction of the glass plate or chipping in the surface direction of the glass plate There is. When the cut defect detection device detects the defect, a glass plate having a cut defect is discarded as a defective product depending on the degree. As described above, the cut defect detection device was developed instead of visually detecting the cut defect, and the corner generated at the cut of the glass plate under the condition that the glass plate is being conveyed at high speed. And defects such as chipping can be detected by online real-time processing.

ここで、切口欠点検出装置は、切口を検査する際に、ガラス板の切口面であるエッジ部分の疑似直線を求め、実際に計測したエッジ部分の座標データ(計測データ)とその疑似直線とを比較し、角及び欠けの大きさを算出し、基準値と照合することにより、許容範囲内の欠点であるか否かを判定する。この疑似直線を求めるためには、様々が手法が用いられており、例えば、最小二乗法、ハフ変換法等を用いた手法が様々な検査分野において提案されている。   Here, when inspecting the cut, the cut defect detecting device obtains a pseudo straight line of the edge portion which is the cut surface of the glass plate, and obtains the actually measured coordinate data (measurement data) of the edge portion and the pseudo straight line. By comparing, calculating the size of the corner and the chip and comparing with the reference value, it is determined whether or not the defect is within the allowable range. Various methods are used to obtain the pseudo straight line. For example, methods using the least square method, the Hough transform method, and the like have been proposed in various inspection fields.

例えば、非特許文献2には、電子部品の外周上の欠点を、最小二乗法及びハフ変換法を用いて検出する装置が記載されている。具体的には、ハフ変換法により正常な外周領域を算出する際に最大度数を与える(ρ,θ)の近傍を検索範囲として、外周座標の出現頻度を計算し、その出現頻度を座標に重み付ける。そして、重み付けした座標データを用いて最小二乗法により、疑似直線を算出するものである。これにより、許容範囲内の湾曲及び歪みを有する電子部品は良品として判定されるから、誤差の少ない正常領域を検出することができる。   For example, Non-Patent Document 2 describes an apparatus that detects a defect on the outer periphery of an electronic component using a least square method and a Hough transform method. Specifically, the frequency of appearance of the outer peripheral coordinates is calculated using the neighborhood of (ρ, θ) that gives the maximum frequency when calculating the normal outer region by the Hough transform method, and the appearance frequency is weighted to the coordinates The Then, the pseudo straight line is calculated by the least square method using the weighted coordinate data. Accordingly, an electronic component having a curvature and distortion within an allowable range is determined as a non-defective product, and thus a normal region with few errors can be detected.

また、非特許文献3には、物品の検査を、ハフ変換法、固有ベクトル法及び最小二乗法を用いて行う方法が記載されている。具体的には、ハフ変換法により粗近似直線を求め、直線候補点としての距離diを算出し、それらの中央値と前後n個ずつの平均値DMを求めて、その平均値DMと距離ditの間の差の絶対値が基準値を超える点を直線候補点群から除去する。そして、最後に残った直線候補点から、固有ベクトル法または最小二乗法により疑似直線を算出するものである。これにより、直線候補点群に著しくかけ離れた点が含まれていてもその点を除外することができるから、疑似直線を精度高く検出することができる。   Non-Patent Document 3 describes a method for inspecting an article using a Hough transform method, an eigenvector method, and a least square method. Specifically, a rough approximate straight line is obtained by the Hough transform method, a distance di as a straight line candidate point is calculated, a median value thereof and an average value DM of n pieces before and after are obtained, and the average value DM and the distance dit are obtained. The point where the absolute value of the difference between the values exceeds the reference value is removed from the straight line candidate point group. Then, a pseudo straight line is calculated from the last remaining straight line candidate point by the eigenvector method or the least square method. As a result, even if a point far from the straight line candidate point group is included, it is possible to exclude the point, so that a pseudo straight line can be detected with high accuracy.

また、非特許文献4には、物品の欠点を最小二乗法を用いて検査する方法が記載されている。具体的には、最小二乗法を用いて、欠点を検査するための疑似直線を算出し、その後に疑似直線と計測点の座標と間の差を求める。そして、その差が一定値を超えた計測点を除外し、再度最小二乗法を用いて疑似直線を算出し、これを直線近似の係数が収束するまで繰り返すものである。   Non-Patent Document 4 describes a method for inspecting a defect of an article using a least square method. Specifically, a pseudo straight line for inspecting a defect is calculated by using the least square method, and then a difference between the pseudo straight line and the coordinates of the measurement point is obtained. Then, measurement points where the difference exceeds a certain value are excluded, a pseudo straight line is calculated again using the least square method, and this is repeated until the coefficients of the linear approximation converge.

特開平01−169343号公報Japanese Patent Laid-Open No. 01-169343 特開平15−139519号公報Japanese Patent Laid-Open No. 15-139519 特開平11−096371号公報Japanese Patent Laid-Open No. 11-096371 特開平10−283473号公報JP-A-10-283473

しかしながら、前述の特許文献2〜4に記載された手法は、いずれも比較的小さい物を検査対象としており、物が流れているオンラインリアルタイムの状態で疑似直線を算出し検査を行うものではない。例えば、検査物を固定できない場合、検査物の流れを制御できない場合、検査物が比較的大きい場合には、検査物がカメラの視野内に収まらないことがある。この場合、検査物を一度に撮影できないため、分離した画像を接合する必要があり、全体として処理が複雑になってしまうという問題があった。   However, the methods described in Patent Documents 2 to 4 described above all target relatively small objects, and do not perform inspection by calculating a pseudo straight line in an online real-time state in which the objects are flowing. For example, when the inspection object cannot be fixed, the flow of the inspection object cannot be controlled, or when the inspection object is relatively large, the inspection object may not be within the field of view of the camera. In this case, since the inspection object cannot be photographed at one time, it is necessary to join the separated images, and there is a problem that the processing becomes complicated as a whole.

また、前述の特許文献3及び4に記載された手法では、疑似直線を算出する際に、不都合な計測点を除外している。このため、疑似直線を算出するための情報量が少なくなり、全体として精度の低い疑似直線が算出される可能性があるから、除外した計測点が必ずしも除外するのに相応しいものではない場合があるという問題があった。一般に、疑似直線を精度高く算出するためには、計測点の情報量はできる限り多いことが望ましい。   In the methods described in Patent Documents 3 and 4 described above, inconvenient measurement points are excluded when calculating the pseudo straight line. For this reason, the amount of information for calculating the pseudo line is reduced, and a pseudo line with low accuracy may be calculated as a whole. Therefore, the excluded measurement points may not necessarily be suitable for exclusion. There was a problem. Generally, in order to calculate a pseudo straight line with high accuracy, it is desirable that the amount of information of measurement points is as large as possible.

また、前述の特許文献2〜4に記載された手法は、最小二乗法を用いて疑似直線を算出している。このため、著しく離れた計測点があると、疑似直線を精度高く算出することができなくなるという問題があった。   Moreover, the method described in the above-mentioned patent documents 2 to 4 calculates a pseudo straight line using the least square method. For this reason, there is a problem in that if there are measurement points that are significantly distant from each other, the pseudo straight line cannot be calculated with high accuracy.

また、特許文献2及び3に記載された手法は、ハフ変換法を用いて疑似直線を算出している。ハフ変換法は、その処理を行うためのメモリを大量に必要とし、投票方式を用いているため、処理時間がかかるという問題があった。   Further, the methods described in Patent Documents 2 and 3 calculate a pseudo straight line using the Hough transform method. The Hough transform method has a problem in that it requires a large amount of memory for performing the processing and uses a voting method, which requires processing time.

そこで、本発明はこのような問題に着目してなされたものであり、その目的は、検査物の外形の欠点を検出する場合に、検査物が流れているオンラインリアルタイムの状態で、簡易な手法により、精度が低下することのない疑似直線を算出可能な欠点検出方法及びプログラムを提供することにある。   Therefore, the present invention has been made paying attention to such a problem, and the purpose thereof is a simple method in the online real-time state in which the inspection object is flowing when detecting the defect of the outer shape of the inspection object. Accordingly, it is an object of the present invention to provide a defect detection method and a program capable of calculating a pseudo straight line without reducing accuracy.

以下、本発明において、疑似直線を算出する原理を説明する。算出する疑似直線を(1)式に示す。

Figure 2007263696

ここで、計測データ(x,y)は、1次元の撮像装置が検出した光に対応する信号に基づいて生成した座標データを示す。また、bは傾きを、aは切片をそれぞれ示す。 Hereinafter, the principle of calculating the pseudo straight line in the present invention will be described. The pseudo line to be calculated is shown in equation (1).
Figure 2007263696

Here, the measurement data (x i , y i ) indicates coordinate data generated based on a signal corresponding to light detected by the one-dimensional imaging device. Further, b represents an inclination, and a represents an intercept.

そして、最小化したい評価関数は、

Figure 2007263696

である。 And the evaluation function we want to minimize is
Figure 2007263696

It is.

一般に、データcの集合において、これらの中間値であるメディアンcにより、(3)式の絶対偏差の和を最小にすることが知られている。

Figure 2007263696
In general, the set of data c i, the median c m is these intermediate values, it is known to minimize the sum of absolute deviation of (3).
Figure 2007263696

したがって、仮に傾きbを固定すると、(2)式の評価関数を最小にする切片aの値は、メディアン関数を用いて(4)式のように表すことができる。

Figure 2007263696
Therefore, if the slope b is fixed, the value of the intercept a that minimizes the evaluation function of equation (2) can be expressed as equation (4) using the median function.
Figure 2007263696

傾きbについては、(5)式の関数を用いて算出する。

Figure 2007263696

本発明は、最小二乗法を用いて疑似直線の傾き及び切片の初期値を求め、囲い込み法を用いて前述の(4)(5)式により2つの傾きを求め、2分法を用いて(4)(5)式により2つの傾きの間に存在する最適な傾きを求め、(1)式を算出する。ここで、最小二乗法は、初期値を求めるために1回のみ用いられる。 The slope b is calculated using the function of equation (5).
Figure 2007263696

In the present invention, the initial value of the slope and intercept of the quasi-straight line is obtained using the least square method, the two slopes are obtained using the enclosing method (4) and (5), and the bisection method is used ( 4) The optimum inclination existing between the two inclinations is obtained from the expression (5), and the expression (1) is calculated. Here, the least square method is used only once to obtain the initial value.

すなわち、本願発明による欠点検出方法は、検査物の流れ方向に対して斜め方向に細長光源を配置し、該細長光源と平行に1次元の撮像装置を配置し、該撮像装置が検出した光から、前記検査物の外形に発生した欠点を検出する方法において、前記撮像装置が検出した光に対応する信号を入力し、該信号に基づいて計測データを生成する計測データ生成ステップと、該生成した計測データにより、最小二乗法を用いて、初期値としての疑似直線の傾き及び切片を求め、囲い込み法を用いて、前記初期値としての傾き及び切片から、求めるべき疑似直線の傾きをその間の値として有する2つの傾きを求め、2分法を用いて、前記2つの傾きから、疑似直線の傾きを求め、該傾きに対する切片を求めて疑似直線を算出する疑似直線算出ステップと、該算出した疑似直線と、前記生成した計測データとの間の誤差を算出し、該誤差により欠点の幅及び長さを算出し、許容範囲の欠点であるか否かを判定する欠点判定ステップとを有することを特徴とする。   That is, in the defect detection method according to the present invention, an elongated light source is disposed in an oblique direction with respect to the flow direction of the inspection object, a one-dimensional imaging device is disposed in parallel with the elongated light source, and light detected by the imaging device is detected. In the method for detecting a defect generated in the outer shape of the inspection object, a measurement data generation step of inputting a signal corresponding to the light detected by the imaging device and generating measurement data based on the signal, and the generated From the measured data, use the least square method to determine the slope and intercept of the pseudo line as the initial value, and use the enclosing method to determine the slope of the pseudo line to be determined from the slope and intercept as the initial value. A pseudo-straight line calculating step for obtaining a slope of a pseudo straight line from the two slopes using a bisection method and obtaining an intercept for the slope to calculate a pseudo straight line; A defect determination step of calculating an error between the calculated pseudo-line and the generated measurement data, calculating a width and a length of the defect based on the error, and determining whether the defect is within an allowable range; It is characterized by having.

本発明を欠点検出方法として説明したが、本発明はコンピュータによって実行されるプログラムとしても実質的に実現し得るものであり、本発明には、欠点検出プログラムも含まれる。すなわち、本発明による欠点検出プログラムは、検査物の流れ方向に対して斜め方向に配置した細長光源、該細長光源と平行に配置した1次元の撮像装置、及び、該撮像装置が検出した光から、前記検査物の外形に発生した欠点を検出する判別装置を備えた装置による欠点検出プログラムであって、前記装置を構成するコンピュータに、前記撮像装置が検出した光に対応する信号を入力し、該信号に基づいて計測データを生成する処理と、該生成した計測データにより、最小二乗法を用いて、初期値としての疑似直線の傾き及び切片を求める処理と、囲い込み法を用いて、前記初期値としての傾き及び切片から、求めるべき疑似直線の傾きをその間の値として有する2つの傾きを求める処理と、2分法を用いて、前記2つの傾きから、疑似直線の傾きを求める処理と、前記求めた傾きに対する切片を求め、前記傾き及び切片により疑似直線を算出する処理と、該算出した疑似直線と、前記生成した計測データとの間の誤差を算出する処理と、該誤差により欠点の幅及び長さを算出し、許容範囲の欠点であるか否かを判定する処理とを実行させることを特徴とする。   Although the present invention has been described as a defect detection method, the present invention can be substantially realized as a program executed by a computer, and the present invention includes a defect detection program. That is, the defect detection program according to the present invention includes an elongated light source arranged obliquely with respect to the flow direction of the inspection object, a one-dimensional imaging device arranged in parallel with the elongated light source, and light detected by the imaging device. , A defect detection program by an apparatus provided with a discrimination device for detecting defects generated in the outer shape of the inspection object, and a signal corresponding to the light detected by the imaging apparatus is input to a computer constituting the apparatus, A process of generating measurement data based on the signal, a process of obtaining the slope and intercept of the pseudo line as an initial value using the generated square data using the least square method, and the initial method using the enclosing method From the slopes and intercepts as values, a process for obtaining two slopes having the slope of the pseudo line to be obtained as a value between them, and using the bisection method, the two slopes are used to calculate the pseudo straight line. A process for calculating an inclination of the calculated straight line, a process for obtaining an intercept with respect to the obtained slope, calculating a pseudo straight line based on the slope and the intercept, and a process for calculating an error between the calculated pseudo straight line and the generated measurement data And calculating the width and length of the defect based on the error and determining whether the defect is within the allowable range.

以上のように、本発明によれば、検査物の外形の欠点を検出する場合に、検査物が流れているオンラインリアルタイムの状態で、簡易な手法により、精度が低下することのない疑似直線を算出することが可能となる。これにより、検査物の外形の欠点を検出する際に、誤判定が少なくなる。   As described above, according to the present invention, when detecting a defect in the outer shape of an inspection object, a pseudo straight line that does not decrease accuracy can be obtained by a simple method in an online real-time state in which the inspection object flows. It is possible to calculate. Thereby, when detecting the defect of the external shape of the inspection object, erroneous determination is reduced.

以下、本発明を実施するための最良の形態について図面を用いて詳細に説明する。
〔構成〕
まず、本発明の実施の形態による切口欠点検出装置の構成について説明する。図1は、切口欠点検出装置の全体構成を示す概略図である。図1(a)(b)において、この反射型の切口欠点検出装置10は、ラインコンベア(図示せず)上を一定速度で搬送されるガラス板1の上方に、長手方向が所定の角度(例えばY軸方向に対して45°の角度)をなすように配置した蛍光灯2と、同じくガラス板1の上方に、CCD素子の配列方向が所定の角度(例えばY軸方向に対して45°の角度)をなし、かつ、蛍光灯2に平行に配置した複数台の1次元のCCDカメラ3と、CCDカメラ3からの出力波形を処理し、欠点の大きさを算出して、許容範囲内の欠点であるか否かを判別する判別装置4とを備えている。
The best mode for carrying out the present invention will be described below in detail with reference to the drawings.
〔Constitution〕
First, the configuration of the cut defect detecting device according to the embodiment of the present invention will be described. FIG. 1 is a schematic diagram showing the overall configuration of the cut defect detecting device. 1 (a) and 1 (b), the reflection type cut defect detecting device 10 has a longitudinal direction at a predetermined angle (above a glass plate 1 conveyed at a constant speed on a line conveyor (not shown)). For example, above the fluorescent lamp 2 arranged so as to form an angle of 45 ° with respect to the Y-axis direction and the glass plate 1, the arrangement direction of the CCD elements is a predetermined angle (for example, 45 ° with respect to the Y-axis direction). And the output waveforms from the CCD camera 3 are processed and the size of the defect is calculated to be within an allowable range. And a discriminating device 4 for discriminating whether or not this is a drawback.

この切口欠点検出装置10によれば、蛍光灯2からの光はガラス板1の表面を反射してCCDカメラ3により受光される。この受光量は、ガラス板1のエッジに欠点がある場合と欠点がない場合とでは異なるものとなる。したがって、判別装置4は、この受光量の違いにより、ガラス板1の4辺(搬送方向に平行なトリンマ辺、及び搬送方向に垂直なブレーカ辺)についての欠点情報を得ることができるから、欠点が存在した場合の長さ及び幅を算出し、欠点を検出することができる。   According to this cut defect detecting device 10, the light from the fluorescent lamp 2 is reflected by the surface of the glass plate 1 and received by the CCD camera 3. The amount of received light differs depending on whether the edge of the glass plate 1 has a defect or not. Therefore, the discriminating device 4 can obtain defect information about the four sides (trimmer side parallel to the transport direction and breaker side perpendicular to the transport direction) of the glass plate 1 due to the difference in the amount of received light. The length and the width when there is a defect can be calculated to detect a defect.

図1(c)は、欠点の幅及び長さを説明する図である。ガラス板1の右エッジのトリンマ辺に角の欠点がある場合、欠点の長さは、ガラス板1の搬送方向に平行した方向の角の大きさをいい、欠点の幅は、ガラス板1の搬送方向に垂直の方向の角の大きさをいう。また、ガラス板1のブレーカ辺に欠けの欠点がある場合、欠点の長さは、ガラス板1の搬送方向に垂直の方向の欠けの大きさをいい、欠点の幅は、ガラス板1の搬送方向に平行した方向の欠けの大きさをいう。   FIG. 1C is a diagram illustrating the width and length of the defect. When there is a corner defect on the right edge of the glass plate 1, the length of the defect refers to the size of the corner in a direction parallel to the conveying direction of the glass plate 1. The size of the corner in the direction perpendicular to the transport direction. When there is a defect of chipping on the breaker side of the glass plate 1, the length of the defect refers to the size of the chip in the direction perpendicular to the conveying direction of the glass plate 1, and the width of the defect is the conveyance of the glass plate 1. The size of the chip in the direction parallel to the direction.

次に、図1に示した判別装置4の構成について説明する。図2は、判別装置4の構成を示すブロック図である。この判別装置4は、計測データ取込手段11、疑似直線算出手段12、欠点判定手段13及び記憶手段14を備えている。   Next, the configuration of the determination device 4 shown in FIG. 1 will be described. FIG. 2 is a block diagram illustrating a configuration of the determination device 4. The discriminating device 4 includes a measurement data fetching unit 11, a pseudo straight line calculating unit 12, a defect determining unit 13, and a storage unit 14.

計測データ取込手段11は、CCDカメラ3からガラス板1の各辺における電圧レベルの出力波形を入力し、4つの検査辺の計測データ(検査辺における計測点の座標データ)を生成し、この計測データに基づいて、ガラス板1の2つの辺の接点である角(かど)の計測データを特定し、検査辺毎に計測データを区別し、記憶手段14に格納する。   The measurement data capturing means 11 receives the output waveform of the voltage level at each side of the glass plate 1 from the CCD camera 3 and generates measurement data (coordinate data of measurement points at the inspection side) of the four inspection sides. Based on the measurement data, the measurement data of the corners that are the contact points of the two sides of the glass plate 1 are specified, and the measurement data is distinguished for each inspection side and stored in the storage unit 14.

疑似直線算出手段12は、記憶手段14から検査辺毎の計測データを読み出し、当該計測データに基づいて検査辺毎に疑似直線を算出する。この疑似直線の算出(疑似直線の切片及び傾きの算出)にあたり、切片及び傾きの初期値を最小二乗法により算出する。そして、計測データと初期値の切片及び傾きによる初期疑似直線との間の位置関係における計測データの分布度合いを示す関数を用いて、囲い込み法により2つの傾きを算出し、その2つの傾きに対して2分法により最適な傾きを算出し、当該傾き及びそのときの切片による疑似直線を算出する。この場合、切片は、メディアン(median)関数を用いて傾きから算出する。   The pseudo straight line calculating unit 12 reads out measurement data for each inspection side from the storage unit 14 and calculates a pseudo straight line for each inspection side based on the measurement data. In calculating the pseudo line (calculation of the intercept and slope of the pseudo line), initial values of the intercept and the slope are calculated by the least square method. Then, using the function indicating the degree of distribution of the measurement data in the positional relationship between the measurement data and the initial value intercept and inclination, two inclinations are calculated by the enclosing method, and the two inclinations are calculated. Then, an optimum inclination is calculated by the bisection method, and a pseudo straight line is calculated by the inclination and the intercept at that time. In this case, the intercept is calculated from the slope using a median function.

欠点判定手段13は、疑似直線算出手段12により算出された疑似直線と、記憶手段14から読み出した計測データとの間の誤差を算出し、欠点の幅及び長さを算出し、許容範囲内の欠点であるか否かを判定する。   The defect determination unit 13 calculates an error between the pseudo line calculated by the pseudo line calculation unit 12 and the measurement data read from the storage unit 14, calculates the width and length of the defect, and falls within an allowable range. It is determined whether it is a defect.

〔動作〕
次に、図1に示した切口欠点検出装置10における判別装置4の動作について説明する。図3は、切口欠点検出装置10の判別装置4による欠点検出処理の全体を説明するためのフローチャート図である。まず、計測データ取込手段11は、CCDカメラ3からガラス板1の各検査辺における電圧レベルの出力波形を入力し、出力波形に基づいて各検査辺における計測点の座標データである計測データ(x,y)を生成する(ステップS2−1)。
[Operation]
Next, the operation of the discriminating device 4 in the cut defect detecting device 10 shown in FIG. 1 will be described. FIG. 3 is a flowchart for explaining the entire defect detection process performed by the determination device 4 of the cut defect detection device 10. First, the measurement data fetching means 11 receives an output waveform of a voltage level at each inspection side of the glass plate 1 from the CCD camera 3, and based on the output waveform, measurement data (coordinate data of measurement points at each inspection side) x i , y i ) are generated (step S2-1).

図4、図5及び図6は、図3に示したステップ2−1の計測データ取り込み処理の詳細を説明する図である。図4は、ガラス板1の左エッジにおいて、A、B及びC部分の計測データを生成する際の電圧レベルの出力波形等を示す。ガラス板1が上から下方向に搬送されるとして、CCDカメラ3は、(1)(2)(3)の順に図4の下に示した電圧レベルの出力波形を判別装置4に出力する。判別装置4は、これらの出力波形を入力し、入力時間に応じたCCDカメラ3による検出位置(ドット位置)のプロット図を生成する。この場合、出力波形の変化するドット位置がエッジ部分に相当するから、このプロット図(時間とドット位置との関係)及びガラス板1の移動速度に基づいて、左エッジにおけるA、B及びC部分のx−y座標を得ることができる。このx−y座標を計測データ(x,y)として扱う。ここで、iは計測データのプロット番号(計測番号)を示す。 4, FIG. 5 and FIG. 6 are diagrams for explaining the details of the measurement data fetching process of step 2-1 shown in FIG. FIG. 4 shows an output waveform or the like of the voltage level when generating measurement data of the A, B, and C portions at the left edge of the glass plate 1. Assuming that the glass plate 1 is conveyed from the top to the bottom, the CCD camera 3 outputs the output waveform of the voltage level shown in the lower part of FIG. 4 to the determination device 4 in the order of (1), (2), and (3). The discriminating device 4 inputs these output waveforms and generates a plot diagram of detection positions (dot positions) by the CCD camera 3 according to the input time. In this case, since the dot position where the output waveform changes corresponds to the edge portion, A, B, and C portions at the left edge based on this plot (relationship between time and dot position) and the moving speed of the glass plate 1 Xy coordinates can be obtained. The xy coordinates are treated as measurement data (x i , y i ). Here, i indicates a plot number (measurement number) of measurement data.

図5は、ガラス板1の右エッジにおいて、A、B及びC部分の計測データを生成する際の電圧レベルの出力波形等を示す。図4と同様に、判別装置4は、出力波形を入力し、入力時間に応じたCCDカメラ3による検出位置(ドット位置)のプロット図を生成し、このプロット図(時間とドット位置との関係)及びガラス板1の移動速度に基づいて、右エッジにおけるA、B及びC部分のx−y座標を得る。このx−y座標を計測データ(x,y)として扱う。 FIG. 5 shows an output waveform or the like of the voltage level when generating measurement data of the A, B, and C portions at the right edge of the glass plate 1. Similar to FIG. 4, the discriminator 4 receives the output waveform, generates a plot diagram of the detection position (dot position) by the CCD camera 3 according to the input time, and this plot diagram (relationship between time and dot position). ) And the moving speed of the glass plate 1, the xy coordinates of the A, B, and C portions at the right edge are obtained. The xy coordinates are treated as measurement data (x i , y i ).

図6は、ガラス板1の中央部分において、A及びC部分の計測データを生成する際の電圧レベルの出力波形等を示す。図4及び図5と同様に、判別装置4は、出力波形を入力し、入力時間に応じたCCDカメラ3による検出位置(ドット位置)のプロット図を生成し、このプロット図(時間とドット位置との関係)及びガラス板1の移動速度に基づいて、中央部分におけるA及びC部分のx−y座標を得る。このx−y座標を計測データ(x,y)として扱う。 FIG. 6 shows an output waveform and the like of the voltage level when generating measurement data of the A and C portions in the central portion of the glass plate 1. Similar to FIGS. 4 and 5, the discriminator 4 receives the output waveform, generates a plot of the detection position (dot position) by the CCD camera 3 according to the input time, and generates this plot (time and dot position). And the xy coordinates of the A and C portions in the central portion are obtained based on the movement speed of the glass plate 1. The xy coordinates are treated as measurement data (x i , y i ).

図3に戻って、ステップ2−1によりガラス板1における4つの検査辺の計測データ(x,y)を得た後に、計測データ取込手段11は、ガラス板1の4つのコーナーである角(かど)に相当する計測データを特定し(ステップS2−2)、検査辺毎に計測データを区別して各検査辺の計測データを特定する(ステップS2−3)。 Returning to FIG. 3, after obtaining the measurement data (x i , y i ) of the four inspection sides in the glass plate 1 in step 2-1, the measurement data fetching means 11 is at the four corners of the glass plate 1. Measurement data corresponding to a certain corner is specified (step S2-2), and measurement data for each inspection side is specified by distinguishing the measurement data for each inspection side (step S2-3).

具体的には、計測データ取込手段11は、図4及び図5に示したプロット図(時間とドット位置との関係)に基づいて4つの角(かど)1〜4を特定する。図4において、計測データ取込手段11は、まず、検査の最初の点pの計測データ及び最後の点である角2の計測データを、プロット図に基づいて、時間軸におけるドット位置情報の有無や変化量等によって特定する。そして、角qの計測データを、プロット図に基づいて、ドット位置情報の有無や変化量等によって特定する。そして、角1の計測データを、プロット図が平行四辺形であることを利用して、角2、点p及び点qの計測データにより特定する。   Specifically, the measurement data fetching means 11 identifies four corners 1 to 4 based on the plot diagrams (relationship between time and dot position) shown in FIGS. 4 and 5. In FIG. 4, the measurement data fetching means 11 first calculates the measurement data at the first point p of the inspection and the measurement data at the corner 2 as the last point, based on the plot diagram, whether there is dot position information on the time axis. And change amount. Then, the measurement data of the corner q is specified by the presence or absence of the dot position information, the change amount, and the like based on the plot diagram. Then, the measurement data of the corner 1 is specified by the measurement data of the corner 2, the point p, and the point q using the fact that the plot diagram is a parallelogram.

図5において、計測データ取込手段11は、前述と同様に、まず、検査の最初の点である角3の計測データ及び最後の点sの計測データを、プロット図に基づいて、時間軸におけるドット位置情報の有無や変化量等によって特定する。そして、点rの計測データを、プロット図に基づいて、ドット位置情報の有無や変化量等によって特定する。そして、角4の計測データを、プロット図が平行四辺形であることを利用して、角3、点r及び点sの計測データにより特定する。このようにして、ガラス板1の4つの角1〜4の計測データが特定される。   In FIG. 5, the measurement data fetching unit 11 first, as described above, first calculates the measurement data at the corner 3 that is the first point of the inspection and the measurement data at the last point s on the time axis based on the plot diagram. It is specified by the presence / absence of dot position information and the amount of change. Then, the measurement data of the point r is specified by the presence / absence of dot position information, the change amount, etc. based on the plot diagram. Then, the measurement data of the corner 4 is specified by the measurement data of the corner 3, the point r, and the point s by utilizing the fact that the plot is a parallelogram. In this way, the measurement data of the four corners 1 to 4 of the glass plate 1 are specified.

ガラス板1の4つの角1〜4の計測データを特定したことにより、計測データ取込手段11は、図4に示したB部分に相当する左エッジのトリンマ辺の計測データを、角1の計測データ及び角2の計測データに基づいて特定する。また、図5に示したB部分に相当する右エッジのトリンマ辺の計測データを、角3の計測データ及び角4の計測データに基づいて特定する。また、図4、図5及び図6に示したA部分に相当する先方エッジのブレーカ辺の計測データを特定し、同様に、C部分に相当する後方エッジのブレーカ辺の計測データを特定する。このようにして、各検査辺の計測データが特定される。   By specifying the measurement data of the four corners 1 to 4 of the glass plate 1, the measurement data capturing unit 11 converts the measurement data of the trimmer side of the left edge corresponding to the portion B shown in FIG. It specifies based on measurement data and the measurement data of the corner 2. Further, the measurement data of the trimmer side of the right edge corresponding to the portion B shown in FIG. 5 is specified based on the measurement data of the corner 3 and the measurement data of the corner 4. Further, the measurement data of the breaker side of the front edge corresponding to the portion A shown in FIGS. 4, 5, and 6 is specified, and similarly, the measurement data of the breaker side of the rear edge corresponding to the portion C is specified. In this way, measurement data for each inspection side is specified.

図3に戻って、疑似直線算出手段12は、計測データ取込手段11により特定された各検査辺の計測データに基づいて、疑似直線(y=bbx+aa)を算出する(ステップS2−4)。ここで、bbは疑似直線の傾きを示し、aaは疑似直線の切片を示す。具体的には、疑似直線算出手段12は、最小二乗法により、切片a1及び傾きb1を初期値として算出する(ステップS2−4−1)。そして、計測データと初期値の切片a1及び傾きb1による初期疑似直線との間の位置関係における計測データの分布度合いを示す関数を用いて、囲い込み法により、2つの傾きを算出し(ステップS2−4−2)、2分法により、前記2つの傾きの間に存在する疑似直線の傾きbbを算出する(ステップS2−4−3)。この場合、切片aaは、メディアン(median)関数を用いて傾きbbから算出する。この疑似直線算出手段12による処理の詳細については後述する。   Returning to FIG. 3, the pseudo straight line calculating means 12 calculates a pseudo straight line (y = bbx + aa) based on the measurement data of each inspection side specified by the measurement data capturing means 11 (step S2-4). Here, bb indicates the inclination of the pseudo line, and aa indicates the intercept of the pseudo line. Specifically, the pseudo straight line calculating means 12 calculates the intercept a1 and the slope b1 as initial values by the least square method (step S2-4-1). Then, two slopes are calculated by the enclosing method using a function indicating the distribution degree of the measurement data in the positional relationship between the measurement data and the initial value intercept a1 and the initial pseudo line by the slope b1 (step S2- 4-2) The inclination bb of the pseudo line existing between the two inclinations is calculated by the bisection method (step S2-4-3). In this case, the intercept aa is calculated from the slope bb using a median function. Details of the processing by the pseudo straight line calculating means 12 will be described later.

欠点判定手段13は、ステップ2−3で計測データ取込手段11により特定された計測辺毎の計測データ、及び、ステップ2−4で疑似直線算出手段12により算出された疑似直線に基づいて、各検査辺について欠点の幅及び長さを算出する(ステップS2−5)。具体的には、欠点判定手段13は、検査辺毎に、計測データと疑似直線との間の差を算出する。ガラス板1の左エッジのトリンマ辺については、欠点の幅がx軸方向であるから(図1(c)を参照)、その検査辺のx軸における計測データと疑似直線との間の差を算出し、その差の最大値を欠点の幅として設定する。この欠点の幅の算出に際して、x軸における計測データと疑似直線との間の差が所定の値以上である場合の計測データの数をカウントし、その数に応じた距離を、欠点の長さとして設定する。ガラス板1の右エッジのトリンマ辺についても、左エッジのトリンマ辺の場合と同様に、欠点の幅及び長さを算出する。   The defect determination means 13 is based on the measurement data for each measurement side specified by the measurement data capturing means 11 in step 2-3 and the pseudo straight line calculated by the pseudo straight line calculation means 12 in step 2-4. The width and length of the defect are calculated for each inspection side (step S2-5). Specifically, the defect determination means 13 calculates the difference between the measurement data and the pseudo line for each inspection side. For the trimmer side of the left edge of the glass plate 1, the width of the defect is in the x-axis direction (see FIG. 1 (c)), so the difference between the measured data on the x-axis of the inspection side and the pseudo line is Calculate and set the maximum difference as the width of the defect. When calculating the width of this defect, the number of measurement data when the difference between the measurement data on the x-axis and the pseudo straight line is greater than or equal to a predetermined value is counted, and the distance according to the number is determined as the length of the defect. Set as. For the right edge trimmer side of the glass plate 1, the width and length of the defect are calculated as in the case of the left edge trimmer side.

また、ガラス板1の前方エッジ及び後方エッジのブレーカ辺については、欠点の幅がy軸方向であるから(図1(c)を参照)、その検査辺のy軸における計測データと疑似直線との間の差を算出し、その差の最大値を欠点の幅として設定する。この欠点の幅の算出に際して、y軸における計測データと疑似直線との間の差が所定の値以上である場合の計測データの数をカウントし、その数に応じた距離を、欠点の長さとして設定する。   Further, for the breaker sides of the front edge and the rear edge of the glass plate 1, since the width of the defect is in the y-axis direction (see FIG. 1C), the measurement data and the pseudo straight line on the y-axis of the inspection side The maximum difference is set as the width of the defect. In calculating the width of this defect, the number of measurement data when the difference between the measurement data on the y-axis and the pseudo-line is equal to or greater than a predetermined value is counted, and the distance corresponding to the number is determined as the length of the defect. Set as.

欠点判定手段13は、ステップ2−5で各検査辺についての欠点の幅及び長さを算出した後、その欠点の幅及び長さを、それぞれ予め設定された基準値と比較し、幅及び長さのうちの少なくとも一方がその基準値よりも大きい場合に、その欠点を許容範囲外の欠点であると判定し、幅及び長さが共にそれぞれの基準値以下の場合に、その欠点を許容範囲内の欠点であると判定する(ステップS2−6)。   The defect determination means 13 calculates the width and length of the defect for each inspection side in step 2-5, and then compares the width and length of the defect with a preset reference value, respectively. If at least one of the values is larger than the reference value, the defect is determined to be an out-of-tolerance defect, and if both the width and length are less than the reference value, the defect is within the allowable range. (Step S2-6).

次に、図3に示したステップ2−4(ステップ2−4−1〜3)における疑似直線を算出する処理の詳細について説明する。図7は、その疑似直線算出処理の詳細を説明するフローチャート図である。この処理は、検査辺毎に、検査辺の計測データ(x,y)、及び前述した(4)式及び(5)式を用いて行われる(ステップS3−1)。まず、疑似直線算出手段12は、最小二乗法により、切片a1及び傾きb1を初期値として算出し(ステップS3−2)、傾きの標準偏差sigbを算出する(ステップS3−3)。この最小二乗法は、図7の処理において、初期値を求めるために1回のみ用いられる。 Next, details of the process of calculating the pseudo straight line in step 2-4 (steps 2-4-1 to 3) shown in FIG. 3 will be described. FIG. 7 is a flowchart for explaining details of the pseudo straight line calculation processing. This process is performed for each inspection side using the measurement data (x i , y i ) of the inspection side and the above-described equations (4) and (5) (step S3-1). First, the pseudo straight line calculating means 12 calculates the intercept a1 and the slope b1 as initial values by the least square method (step S3-2), and calculates the standard deviation sigb of the slope (step S3-3). This least square method is used only once in order to obtain the initial value in the process of FIG.

疑似直線算出手段12は、(4)式により傾きb1のときの切片aを求め、(5)式によりf(b1)を求めて0以上であるか否かを判定する(ステップS3−4)。ここでは、計測データと切片a及び傾きb1による初期疑似直線との間の位置関係を求め、その位置関係における計測データの分布度合いに応じて、傾きをb1に比べて大きくすべきか小さくすべきかを判定する。そして、f(b1)>0の場合は、傾きをb1よりも大きくすべきであると判断し、標準偏差sigbに基づいた値をb1に加算した傾きb2を算出する(ステップS3−5)。また、f(b1)>0でない場合は、傾きをb1よりも小さくすべきであると判断し、標準偏差sigbに基づいた値をb1から減算した傾きb2を算出する(ステップS3−6)。   The pseudo straight line calculating means 12 obtains the intercept a at the inclination b1 from the equation (4), obtains f (b1) from the equation (5), and determines whether it is 0 or more (step S3-4). . Here, the positional relationship between the measurement data and the initial pseudo line by the intercept a and the inclination b1 is obtained, and whether the inclination should be larger or smaller than b1 depending on the distribution degree of the measurement data in the positional relation. judge. If f (b1)> 0, it is determined that the inclination should be larger than b1, and an inclination b2 obtained by adding a value based on the standard deviation sigb to b1 is calculated (step S3-5). If f (b1)> 0 is not satisfied, it is determined that the slope should be smaller than b1, and a slope b2 obtained by subtracting a value based on the standard deviation sigb from b1 is calculated (step S3-6).

そして、疑似直線算出手段12は、(4)式により傾きb2のときの切片aを求め、(5)式によりf(b2)を求め、f(b1)とf(b2)との積が0以上であるか否かを判定する(ステップS3−7)。ここでは、計測データと傾きb1による疑似直線との間の位置関係における計測データの分布度合い、及び、計測データと傾きb2による疑似直線との間の位置関係における計測データの分布度合いについて、これらの分布度合いの関係を判定する。そして、その積が0よりも大きい場合は、新たな傾きb1及びb2を設定して(ステップS3−8)ステップ3−7に戻る。また、積が0以下の場合は、その傾きb1とb2との間に存在する傾きによる疑似直線が、求める疑似直線になるとして、次のステップ3−9に移行する。このようにして、ステップ3−7及び3−8の囲み込み法により、傾きb1及びb2が算出される。   Then, the pseudo straight line calculating means 12 obtains the intercept a at the inclination b2 from the equation (4), obtains f (b2) from the equation (5), and the product of f (b1) and f (b2) is 0. It is determined whether or not this is the case (step S3-7). Here, the distribution degree of the measurement data in the positional relationship between the measurement data and the pseudo line with the inclination b1, and the distribution degree of the measurement data in the positional relationship between the measurement data and the pseudo line with the inclination b2 are as follows. The relationship of distribution degree is determined. And when the product is larger than 0, new inclination b1 and b2 are set (step S3-8), and it returns to step 3-7. On the other hand, if the product is 0 or less, the pseudo straight line due to the slope existing between the slopes b1 and b2 is determined to be the obtained pseudo straight line, and the process proceeds to the next step 3-9. In this way, the inclinations b1 and b2 are calculated by the enclosing method in steps 3-7 and 3-8.

そして、疑似直線算出手段12は、傾きb1とb2との差が標準偏差sigbに基づいた値よりも大きいか否かを判定する(ステップS3−9)。その差が標準偏差sigbに基づいた値よりも大きい場合は、傾きb1とb2との中間の値bbにより(4)式を介して(5)式を求め(ステップS3−10)、f(bb)とf(b1)との積が0以上であるか否かを判定し(ステップS3−11)、傾きb1またはb2の値を中間の値bbに置き換えながら(ステップS3−12,13)、ステップ3−9〜3−13の処理を行う。そして、ステップ3−9において、傾きb1とb2との差が標準偏差sigbに基づいた値以下の場合は、そのときの中間の値である傾きbb、及び、(4)式により求めた傾きbbの場合の切片aaを求める疑似直線の傾き及び切片として設定する(ステップS3−14)。このようにして、ステップ3−9〜13の2分法により、疑似直線の傾きbb及び切片aaが算出される。   Then, the pseudo straight line calculating unit 12 determines whether or not the difference between the inclinations b1 and b2 is larger than a value based on the standard deviation sigb (step S3-9). When the difference is larger than the value based on the standard deviation sigb, the equation (5) is obtained through the equation (4) by using an intermediate value bb between the slopes b1 and b2 (step S3-10), and f (bb ) And f (b1) is determined to be 0 or more (step S3-11), and the value of the gradient b1 or b2 is replaced with an intermediate value bb (steps S3-12, 13). Steps 3-9 to 3-13 are performed. In step 3-9, if the difference between the slopes b1 and b2 is equal to or smaller than the value based on the standard deviation sigb, the slope bb, which is an intermediate value at that time, and the slope bb obtained by the equation (4) In this case, the intercept aa is set as the inclination and intercept of the pseudo line (step S3-14). In this way, the inclination bb and the intercept aa of the pseudo straight line are calculated by the bisection method in steps 3-9 to 13.

以上のように、本発明の実施の形態による切口欠点検出装置10によれば、計測データ取込手段11が、搬送されているガラス板の電圧レベルの波形を1次元のCCDカメラ3から入力し、検査辺毎の計測データを特定するようにした。また、判別装置4が、検査辺毎の計測データを用いて、最小二乗法により初期値となる切片及び傾きを算出し、囲い込み法及び2分法により、計測データと初期値の切片及び傾きによる初期疑似直線との間の位置関係における計測データの分布度合いを示す関数、及びメディアン関数を用いて、疑似直線を算出するようにした。これにより、ガラス板の切口に発生した欠点を検出する場合に、ガラス板が流れているオンラインリアルタイムの状態で、簡易な手法により疑似直線を算出することが可能となる   As described above, according to the cut defect detecting device 10 according to the embodiment of the present invention, the measurement data capturing means 11 inputs the voltage level waveform of the glass plate being conveyed from the one-dimensional CCD camera 3. The measurement data for each inspection side was specified. Further, the discriminating device 4 uses the measurement data for each inspection side to calculate the intercept and inclination as initial values by the least square method, and by the enclosure method and the bisection method, based on the intercept and inclination of the measurement data and the initial values. The pseudo line is calculated using a function indicating the distribution degree of the measurement data in the positional relationship with the initial pseudo line and a median function. This makes it possible to calculate a pseudo straight line by a simple method in the online real-time state in which the glass plate is flowing when detecting a defect occurring at the cut surface of the glass plate.

また、本発明の実施の形態による切口欠点検出装置10によれば、1次元のCCDカメラ3を用いて、搬送されているガラス板1の各所を撮影し、検査辺毎の計測データを特定してガラス板1の切口の欠点を検出するようにした。従来は、検査物を固定できない場合、検査物の流れを制御できない場合、または検査物が比較的大きい場合に、2次元カメラの視野内に収まらないことから、複数の画像を接合する必要があった。本発明の実施の形態では、このような複数の画像を接合する複雑な処理を行う必要がない。   In addition, according to the cut defect detecting device 10 according to the embodiment of the present invention, the one-dimensional CCD camera 3 is used to photograph various portions of the glass plate 1 being conveyed, and the measurement data for each inspection side is specified. Thus, the defect of the cut of the glass plate 1 is detected. Conventionally, if the inspection object cannot be fixed, the flow of the inspection object cannot be controlled, or the inspection object is relatively large, it will not fit within the field of view of the two-dimensional camera. It was. In the embodiment of the present invention, it is not necessary to perform complicated processing for joining such a plurality of images.

また、本発明の実施の形態による切口欠点検出装置10によれば、疑似直線算出手段12が、不都合な計測データを除外することなく、全ての計測データを用いて疑似直線を算出するようにした。これにより、有用な計測データを誤って除外することがなくなり、疑似直線を算出するための情報量が少なくなることがないから、全体として精度の高い疑似直線を算出することが可能となる。したがって、欠点を許容するか否かの判定において、誤判定が少なくなる(図8を参照)。   Further, according to the cut defect detecting device 10 according to the embodiment of the present invention, the pseudo straight line calculating unit 12 calculates the pseudo straight line using all the measurement data without excluding inconvenient measurement data. . Accordingly, useful measurement data is not mistakenly excluded, and the amount of information for calculating the pseudo line is not reduced, so that it is possible to calculate the pseudo line with high accuracy as a whole. Therefore, there are fewer erroneous determinations in determining whether or not to accept a defect (see FIG. 8).

また、本発明の実施の形態による切口欠点検出装置10によれば、判別装置4が、最小二乗法を、初期値を求めるために最初の1回だけ用いるようにした。これにより、著しく離れた計測データがあったとしても、精度の高い疑似直線を求める上で、大きな影響を受けることはない(図9を参照)。   Further, according to the cut defect detecting device 10 according to the embodiment of the present invention, the discriminating device 4 uses the least square method only once for obtaining the initial value. As a result, even if there is remarkably distant measurement data, there is no significant influence on obtaining a highly accurate pseudo straight line (see FIG. 9).

また、本発明の実施の形態による切口欠点検出装置10によれば、判別装置4が、最小二乗法、囲い込み法及び2分法を用いて疑似直線を算出するようにした。これにより、ハフ変換法を用いることなく疑似直線を算出することができるから、ハフ変換法の処理を行うためのメモリを大量に必要とすることがない。また、投票方式を用いる必要がないから、それに伴う処理時間がかかることもない。   Further, according to the cut defect detecting device 10 according to the embodiment of the present invention, the discriminating device 4 calculates the pseudo straight line using the least square method, the enclosing method, and the bisection method. Thereby, since a pseudo straight line can be calculated without using the Hough transform method, a large amount of memory for processing the Hough transform method is not required. Further, since it is not necessary to use a voting method, the processing time associated therewith is not required.

尚、切口欠点検出装置10の判別装置4は、CPU、RAM等の揮発性の記憶媒体、ROM等の不揮発性の記憶媒体、及びインターフェース等を備えたコンピュータによって構成される。判別装置4に備えた計測データ取込手段11、疑似直線算出手段12及び欠点判定手段13の各機能は、これらの機能を記述したプログラムをCPUに実行させることによりそれぞれ実現される。また、これらのプログラムは、磁気ディスク(フロッピィーディスク、ハードディスク等)、光ディスク(CD−ROM、DVD等)、半導体メモリ等の記憶媒体に格納して頒布することもできる。   The discriminating device 4 of the cut defect detecting device 10 includes a computer having a volatile storage medium such as a CPU and a RAM, a non-volatile storage medium such as a ROM, an interface, and the like. The functions of the measurement data fetching means 11, the pseudo straight line calculating means 12 and the defect judging means 13 provided in the determination device 4 are realized by causing the CPU to execute a program describing these functions. These programs can also be stored and distributed in a storage medium such as a magnetic disk (floppy disk, hard disk, etc.), optical disk (CD-ROM, DVD, etc.), semiconductor memory, or the like.

以上、実施の形態を挙げて本発明を説明したが、本発明は上記実施の形態に限定されるものではなく、その技術思想を逸脱しない範囲で種々変形可能である。例えば、上記実施の形態では、ガラス板1を対象として説明したが、ガラス板1の代わりにシート形状の検査物であってもよい。また、上記実施の形態では、切口欠点検出装置10を、オンラインリアルタイム処理で、ガラス板1のエッジにおける切口の欠点を検出するために用いるようにしたが、同様のオンラインリアルタイム処理で、ガラス板1等の検査物のエッジ自体を検査するために用いるようにしてもよい。   The present invention has been described with reference to the embodiment. However, the present invention is not limited to the above embodiment, and various modifications can be made without departing from the technical idea thereof. For example, in the above embodiment, the glass plate 1 is described as an object, but a sheet-shaped inspection object may be used instead of the glass plate 1. In the above embodiment, the cut defect detection device 10 is used to detect cut defects at the edge of the glass plate 1 by online real-time processing. However, the glass plate 1 is detected by similar online real-time processing. For example, it may be used for inspecting the edge of an inspection object.

本発明の実施の形態による切口欠点検出装置の全体構成を示す概略図である。It is the schematic which shows the whole structure of the cut defect detection apparatus by embodiment of this invention. 図1の判別装置の構成を示すブロック図である。It is a block diagram which shows the structure of the discrimination | determination apparatus of FIG. 欠点検出処理の全体を説明するフローチャート図である。It is a flowchart figure explaining the whole defect detection process. 図3の計測データの取り込み処理の詳細を説明する第1の図である。FIG. 4 is a first diagram illustrating details of measurement data import processing of FIG. 3. 図3の計測データの取り込み処理の詳細を説明する第2の図である。It is a 2nd figure explaining the detail of the taking-in process of the measurement data of FIG. 図3の計測データの取り込み処理の詳細を説明する第3の図である。FIG. 4 is a third diagram illustrating details of the measurement data capturing process of FIG. 3. 図3の疑似直線を算出する処理の詳細を説明するフローチャート図である。It is a flowchart figure explaining the detail of the process which calculates the pseudo | simulation line of FIG. 本発明の実施の形態による効果を説明する図である。It is a figure explaining the effect by embodiment of this invention. 最小二乗法により求めた疑似直線と本発明の実施の形態により求めた疑似直線とを比較する図である。It is a figure which compares the pseudo | simulation line calculated | required by the least square method with the quasi-straight line calculated | required by embodiment of this invention.

符号の説明Explanation of symbols

1 ガラス板
2 蛍光灯
3 CCDカメラ
4 判別装置
10 切口欠点検出装置
11 計測データ取込手段
12 疑似直線算出手段
13 欠点判定手段
14 記憶手段
DESCRIPTION OF SYMBOLS 1 Glass plate 2 Fluorescent lamp 3 CCD camera 4 Discriminating device 10 Cut defect detecting device 11 Measurement data taking-in means 12 Pseudo straight line calculating means 13 Defect determining means 14 Storage means

Claims (7)

検査物の流れ方向に対して斜め方向に細長光源を配置し、該細長光源と平行に1次元の撮像装置を配置し、該撮像装置が検出した光から、前記検査物の外形に発生した欠点を検出する方法において、
前記撮像装置が検出した光に対応する信号を入力し、該信号に基づいて計測データを生成する計測データ生成ステップと、
該生成した計測データにより、最小二乗法を用いて、初期値としての疑似直線の傾き及び切片を求め、囲い込み法を用いて、前記初期値としての傾き及び切片から、求めるべき疑似直線の傾きをその間の値として有する2つの傾きを求め、2分法を用いて、前記2つの傾きから、疑似直線の傾きを求め、該傾きに対する切片を求めて疑似直線を算出する疑似直線算出ステップと、
該算出した疑似直線と、前記生成した計測データとの間の誤差を算出し、該誤差により欠点の幅及び長さを算出し、許容範囲の欠点であるか否かを判定する欠点判定ステップとを有することを特徴とする欠点検出方法。
Disadvantages generated in the outer shape of the inspection object from the light detected by the imaging device by disposing the elongated light source obliquely with respect to the flow direction of the inspection object, disposing a one-dimensional imaging device in parallel with the elongated light source. In the method of detecting
A measurement data generation step of inputting a signal corresponding to the light detected by the imaging device and generating measurement data based on the signal;
Using the generated measurement data, the least square method is used to determine the slope and intercept of the pseudo line as an initial value, and the enclosing method is used to determine the slope of the pseudo line to be obtained from the slope and intercept as the initial value. Obtaining two slopes as values between them, obtaining a slope of a pseudo straight line from the two slopes using a bisection method, obtaining an intercept with respect to the slope and calculating a pseudo straight line; and
A defect determination step of calculating an error between the calculated pseudo-line and the generated measurement data, calculating a width and a length of the defect based on the error, and determining whether the defect is within an allowable range; A defect detection method characterized by comprising:
請求項1に記載の欠点検出方法において、
前記疑似直線算出ステップが、囲い込み法を用いて、計測データと初期値の切片及び傾きによる初期疑似直線との間の位置関係における計測データの分布度合いにを示す関数により、前記2つの傾きを求めることを特徴とする欠点検出方法。
The defect detection method according to claim 1,
In the pseudo straight line calculation step, the two slopes are obtained by using a function indicating the degree of distribution of the measurement data in the positional relationship between the measurement data and the initial pseudo line based on the intercept and the slope of the initial value using the enclosing method. A defect detection method characterized by the above.
請求項2に記載の欠点検出方法において、
前記疑似直線算出ステップが、計測データを(x,y)、Nを計測データの数、bを傾き、aを切片とした場合に、計測データの分布度合いを示す関数を
Figure 2007263696

として、前記2つの傾きを求めることを特徴とする欠点検出方法。
The defect detection method according to claim 2,
In the pseudo straight line calculation step, when the measurement data is (x i , y i ), N is the number of measurement data, b is a slope, and a is an intercept, a function indicating the distribution degree of the measurement data is obtained.
Figure 2007263696

A defect detection method characterized by obtaining the two inclinations.
請求項3に記載の欠点検出方法において、
前記疑似直線算出ステップが、メディアン関数を用いて、前記傾きに対する切片を求めることを特徴とする欠点検出方法。
The defect detection method according to claim 3,
The fault detection method, wherein the pseudo straight line calculating step obtains an intercept with respect to the inclination using a median function.
請求項4に記載の欠点検出方法において、
前記疑似直線算出ステップが、計測データを(x,y)、Nを計測データの数、bを傾き、及びaを切片とした場合に、以下のメディアン関数
Figure 2007263696

を用いて、傾きbに対する切片aを求めることを特徴とする欠点検出方法。
The defect detection method according to claim 4,
When the pseudo straight line calculation step uses (x i , y i ) as measurement data, N is the number of measurement data, b is a slope, and a is an intercept, the following median function
Figure 2007263696

A defect detection method, characterized in that an intercept a with respect to a slope b is obtained using.
請求項1から5までのいずれか一項に記載の欠点検出方法において、
前記計測データ生成ステップが、入力した信号から、検査物の4つの角(かど)の計測データを特定し、該4つの角の計測データから4つの検査辺の計測データをそれぞれ生成し、
前記疑似直線算出ステップ及び欠点判定ステップが、前記検査辺毎に、疑似直線を算出し、欠点を判定することを特徴とする欠点検出方法。
In the fault detection method according to any one of claims 1 to 5,
The measurement data generation step specifies measurement data of four corners of the inspection object from the input signal, and generates measurement data of four inspection sides from the measurement data of the four corners,
The defect detection method, wherein the pseudo line calculation step and the defect determination step calculate a pseudo line and determine a defect for each inspection side.
検査物の流れ方向に対して斜め方向に配置した細長光源、該細長光源と平行に配置した1次元の撮像装置、及び、該撮像装置が検出した光から、前記検査物の外形に発生した欠点を検出する判別装置を備えた装置による欠点検出プログラムであって、前記装置を構成するコンピュータに、
前記撮像装置が検出した光に対応する信号を入力し、該信号に基づいて計測データを生成する処理と、
該生成した計測データにより、最小二乗法を用いて、初期値としての疑似直線の傾き及び切片を求める処理と、
囲い込み法を用いて、前記初期値としての傾き及び切片から、求めるべき疑似直線の傾きをその間の値として有する2つの傾きを求める処理と、
2分法を用いて、前記2つの傾きから、疑似直線の傾きを求める処理と、
前記求めた傾きに対する切片を求め、前記傾き及び切片により疑似直線を算出する処理と、
該算出した疑似直線と、前記生成した計測データとの間の誤差を算出する処理と、
該誤差により欠点の幅及び長さを算出し、許容範囲の欠点であるか否かを判定する処理とを実行させる欠点検出プログラム。
The elongated light source arranged in an oblique direction with respect to the flow direction of the inspection object, the one-dimensional imaging device arranged in parallel with the elongated light source, and the defects generated in the outer shape of the inspection object from the light detected by the imaging device A defect detection program by a device including a determination device for detecting a computer, and a computer constituting the device,
A process of inputting a signal corresponding to the light detected by the imaging device and generating measurement data based on the signal;
Using the generated measurement data, the least square method is used to determine the slope and intercept of the pseudo line as an initial value;
Using the enclosing method, from the slope and intercept as the initial value, a process of obtaining two slopes having the slope of the pseudo line to be obtained as a value between them;
A process of obtaining a slope of a pseudo straight line from the two slopes using a bisection method;
Obtaining an intercept with respect to the obtained slope, and calculating a pseudo straight line by the slope and the intercept;
A process of calculating an error between the calculated pseudo straight line and the generated measurement data;
A defect detection program that calculates a width and length of a defect based on the error and executes a process of determining whether the defect is within an allowable range.
JP2006088212A 2006-03-28 2006-03-28 Outline defect detection method and program Active JP4927427B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006088212A JP4927427B2 (en) 2006-03-28 2006-03-28 Outline defect detection method and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006088212A JP4927427B2 (en) 2006-03-28 2006-03-28 Outline defect detection method and program

Publications (2)

Publication Number Publication Date
JP2007263696A true JP2007263696A (en) 2007-10-11
JP4927427B2 JP4927427B2 (en) 2012-05-09

Family

ID=38636839

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006088212A Active JP4927427B2 (en) 2006-03-28 2006-03-28 Outline defect detection method and program

Country Status (1)

Country Link
JP (1) JP4927427B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010091525A (en) * 2008-10-10 2010-04-22 Juki Corp Pattern matching method of electronic component
CN116503397A (en) * 2023-06-26 2023-07-28 山东天通汽车科技股份有限公司 In-vehicle transmission belt defect detection method based on image data
CN116934752A (en) * 2023-09-18 2023-10-24 山东国泰民安玻璃科技有限公司 Glass detection method and system based on artificial intelligence

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01169343A (en) * 1987-12-25 1989-07-04 Nippon Sheet Glass Co Ltd Cut defect detector for glass plate
JPH09189528A (en) * 1997-01-27 1997-07-22 Hitachi Ltd Pattern defect detection method and device
JPH10283473A (en) * 1997-04-03 1998-10-23 Sumitomo Electric Ind Ltd Broken inspecting method and device in image processing
JPH10325711A (en) * 1997-05-23 1998-12-08 Hitachi Ltd Method and apparatus for inspection as well as manufacture of semiconductor substrate
JPH1196371A (en) * 1997-09-24 1999-04-09 Sanyo Electric Co Ltd Straight line detecting method for image recognizing device method for checking input image and article while utilizing the same method
JPH11337324A (en) * 1998-05-28 1999-12-10 Taiyo Elex Kk Sheet glass inspection system
JP2002310618A (en) * 2001-04-19 2002-10-23 Murata Mfg Co Ltd Size measurement device, size measurement method and inspection device for electronic component

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01169343A (en) * 1987-12-25 1989-07-04 Nippon Sheet Glass Co Ltd Cut defect detector for glass plate
JPH09189528A (en) * 1997-01-27 1997-07-22 Hitachi Ltd Pattern defect detection method and device
JPH10283473A (en) * 1997-04-03 1998-10-23 Sumitomo Electric Ind Ltd Broken inspecting method and device in image processing
JPH10325711A (en) * 1997-05-23 1998-12-08 Hitachi Ltd Method and apparatus for inspection as well as manufacture of semiconductor substrate
JPH1196371A (en) * 1997-09-24 1999-04-09 Sanyo Electric Co Ltd Straight line detecting method for image recognizing device method for checking input image and article while utilizing the same method
JPH11337324A (en) * 1998-05-28 1999-12-10 Taiyo Elex Kk Sheet glass inspection system
JP2002310618A (en) * 2001-04-19 2002-10-23 Murata Mfg Co Ltd Size measurement device, size measurement method and inspection device for electronic component

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010091525A (en) * 2008-10-10 2010-04-22 Juki Corp Pattern matching method of electronic component
CN116503397A (en) * 2023-06-26 2023-07-28 山东天通汽车科技股份有限公司 In-vehicle transmission belt defect detection method based on image data
CN116503397B (en) * 2023-06-26 2023-09-01 山东天通汽车科技股份有限公司 In-vehicle transmission belt defect detection method based on image data
CN116934752A (en) * 2023-09-18 2023-10-24 山东国泰民安玻璃科技有限公司 Glass detection method and system based on artificial intelligence
CN116934752B (en) * 2023-09-18 2023-12-08 山东国泰民安玻璃科技有限公司 Glass detection method and system based on artificial intelligence

Also Published As

Publication number Publication date
JP4927427B2 (en) 2012-05-09

Similar Documents

Publication Publication Date Title
JP4611873B2 (en) Method for detecting three-dimensional measurement data using tolerance region
US8103376B2 (en) System and method for the on-machine 2-D contour measurement
TWI532116B (en) Method and system for wafer registration
WO2013061976A1 (en) Shape inspection method and device
JP5972758B2 (en) Particle size measuring apparatus and particle size measuring method
JP6606441B2 (en) Inspection system and inspection method
TW201237363A (en) Image processing apparatus and computer program
JP5913903B2 (en) Shape inspection method and apparatus
US10074551B2 (en) Position detection apparatus, position detection method, information processing program, and storage medium
JP7086148B2 (en) Pallet detectors, forklifts, pallet detection methods, and programs
JP4927427B2 (en) Outline defect detection method and program
JP5647999B2 (en) Pattern matching apparatus, inspection system, and computer program
JPH09251544A (en) Work edge detecting image processor
JPH09281055A (en) Inspection method for chip
JP2008139262A (en) Detect inspection method and inspection apparatus using the same
JP6018802B2 (en) Dimension measuring device and computer program
KR20230009360A (en) Systems and methods for 3D scanning of moving objects that are longer than the field of view
CN105513040B (en) Method for estimating position of amorphous body, device for estimating position of amorphous body, and program
JP2006226834A (en) Surface inspection device and surface inspection method
JP2010281654A (en) X-ray inspection apparatus and inspection program for the same
JP2008256466A (en) Defect detection device, defect detection method, and defect detection program
WO2023140189A1 (en) Information processing device, control method, program, and storage medium
JPH03261803A (en) Detection of edge position
CN112563147B (en) Method, device and system for detecting bag removal of semiconductor chip product
JP2018091801A (en) Method and device for surface shape inspection

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20081222

RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20081222

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A821

Effective date: 20081222

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: 20120131

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20120209

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20150217

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 4927427

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250