JP2009244108A - Method and apparatus for inspecting screw - Google Patents
Method and apparatus for inspecting screw Download PDFInfo
- Publication number
- JP2009244108A JP2009244108A JP2008091035A JP2008091035A JP2009244108A JP 2009244108 A JP2009244108 A JP 2009244108A JP 2008091035 A JP2008091035 A JP 2008091035A JP 2008091035 A JP2008091035 A JP 2008091035A JP 2009244108 A JP2009244108 A JP 2009244108A
- Authority
- JP
- Japan
- Prior art keywords
- screw
- thread
- luminance distribution
- image data
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 33
- 238000009826 distribution Methods 0.000 claims abstract description 61
- 230000007547 defect Effects 0.000 abstract description 39
- 238000007689 inspection Methods 0.000 abstract description 36
- 238000005516 engineering process Methods 0.000 abstract description 3
- 239000000523 sample Substances 0.000 description 19
- 238000013500 data storage Methods 0.000 description 16
- 238000000605 extraction Methods 0.000 description 16
- 230000002950 deficient Effects 0.000 description 6
- 238000011179 visual inspection Methods 0.000 description 4
- 239000000284 extract Substances 0.000 description 3
- 238000003860 storage Methods 0.000 description 3
- 238000001514 detection method Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 238000003384 imaging method Methods 0.000 description 2
- 238000003780 insertion Methods 0.000 description 2
- 230000037431 insertion Effects 0.000 description 2
- 238000004519 manufacturing process Methods 0.000 description 2
- 230000003252 repetitive effect Effects 0.000 description 2
- 230000004323 axial length Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000003754 machining Methods 0.000 description 1
- 230000000873 masking effect Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
Images
Landscapes
- Length Measuring Devices By Optical Means (AREA)
- Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)
Abstract
Description
本発明はねじを検査する方法と装置に関する。 The present invention relates to a method and apparatus for inspecting screws.
従来より、ねじを検査する際には、作業員による目視検査が行われていた。作業員による目視検査には、作業員の作業負荷が高く、また作業員ごとに検査結果に個人差を生じるという問題があった。また雄ねじを検査する場合はともかく、雌ねじを検査する場合には、目視によって適切にねじの良否を検査することができなかった。 Conventionally, when a screw is inspected, a visual inspection is performed by an operator. The visual inspection by the workers has a problem that the workload of the workers is high and individual inspection results vary for each worker. In addition, when inspecting the external thread, when inspecting the internal thread, it was not possible to inspect the quality of the thread appropriately by visual inspection.
そこで、ねじの検査を自動化する技術が開発されている。特許文献1には、ねじの表面を撮像した画像データに基いてねじの良否を判定する技術が開示されている。 Therefore, techniques for automating screw inspection have been developed. Patent Document 1 discloses a technique for determining whether a screw is good or bad based on image data obtained by imaging the surface of the screw.
特許文献1の技術では、ねじの山部の欠陥と谷部の欠陥を区別することなく、欠陥の全体的な大きさに応じてねじの良否判定を行っている。従って、特許文献1の技術では、ねじの山部が健全でねじの谷部に欠陥が存在するような場合でも、そのねじは不良と判定されることになる。しかしながら、ねじの谷部に多少の欠陥が存在していても、ねじの荷重を受けるねじの山部が健全であれば、そのねじは問題なく使用できる場合が多い。逆に、ねじの谷部が健全であっても、ねじの山部に欠陥が存在していると、そのねじを使用することはできない。従って、ねじの山部の欠陥のみを抽出して、ねじの山部の欠陥の大きさに応じてねじの良否判定を行う技術が待望されている。 In the technique of Patent Document 1, the quality of a screw is determined according to the overall size of the defect without distinguishing between a defect at the crest of the screw and a defect at the trough. Therefore, in the technique of Patent Document 1, even when the thread crest is healthy and a defect exists in the screw trough, the screw is determined to be defective. However, even if there are some defects in the valley of the screw, the screw can often be used without any problem if the thread of the screw that receives the load of the screw is healthy. Conversely, even if the thread valley is healthy, the screw cannot be used if there is a defect in the thread peak. Therefore, there is a need for a technique for extracting only the defects at the thread ridges and determining the quality of the screws according to the size of the thread ridge defects.
本発明は上記課題を解決する。本発明はねじの山部の欠陥のみを抽出してねじの良否を適切に判定することが可能な技術を提供する。 The present invention solves the above problems. The present invention provides a technique capable of appropriately determining whether or not a screw is good by extracting only a defect in a screw thread.
本発明はねじを検査する方法として具現化される。その方法は、ねじの表面の輝度分布を取得する工程と、ねじの軸心方向に沿った輝度分布の変曲点の位置を特定する工程と、特定された変曲点の位置に応じてマスクデータを輝度分布に位置合わせする工程と、位置合わせされたマスクデータを用いてねじの表面の輝度分布からねじの山部の輝度分布を抽出する工程と、ねじの山部の輝度分布に基いてねじの良否を判定する工程を備えている。 The present invention is embodied as a method for inspecting a screw. The method includes obtaining a luminance distribution on the surface of the screw, identifying a position of the inflection point of the luminance distribution along the axial direction of the screw, and masking according to the position of the identified inflection point. A step of aligning the data with the luminance distribution, a step of extracting the luminance distribution of the screw ridge from the luminance distribution of the surface of the screw using the aligned mask data, and the luminance distribution of the screw ridge A step of determining whether the screw is good or bad is provided.
上記の方法では、ねじの表面の輝度分布から、マスクデータを用いて、ねじの山部の輝度分布を抽出する。一般に、ねじの表面の輝度分布においては、ねじの山部の輝度も、ねじの谷部の輝度も、ねじの斜面部の輝度よりも高くなるので、ねじの表面の輝度分布からねじの山部とねじの谷部を判別することは難しい。そこで上記の方法では、ねじの軸心方向に沿った輝度分布の変曲点の位置に着目して、ねじの山部と谷部を判別する。これによって、マスクデータの位置合わせを適切に行い、ねじの山部の輝度分布を正確に抽出することができる。抽出されたねじの山部の輝度分布に基づいて、ねじ山の欠落の有無を判別して、ねじの良否を判定することができる。 In the above method, the brightness distribution of the thread crest is extracted from the brightness distribution of the screw surface using mask data. In general, in the brightness distribution of the screw surface, the brightness of the thread ridge and the brightness of the thread valley are higher than the brightness of the slope of the screw. It is difficult to determine the valley of the screw. Therefore, in the above method, the peak portion and the valley portion of the screw are discriminated by paying attention to the position of the inflection point of the luminance distribution along the axial direction of the screw. This makes it possible to properly align the mask data and accurately extract the luminance distribution of the thread ridges. Based on the extracted luminance distribution of the thread ridge, it is possible to determine whether or not the screw is good by determining whether or not the thread is missing.
本発明はねじを検査する装置としても具現化することができる。その装置は、ねじの表面の輝度分布を取得する手段と、ねじの軸心方向に沿った輝度分布の変曲点の位置を特定する手段と、特定された変曲点の位置に応じてマスクデータを輝度分布に位置合わせする手段と、位置合わせされたマスクデータを用いてねじの表面の輝度分布からねじの山部の輝度分布を抽出する手段と、ねじの山部の輝度分布に基いてねじの良否を判定する手段を備えている。 The present invention can also be embodied as a device for inspecting screws. The apparatus includes a means for acquiring a luminance distribution on the surface of the screw, a means for specifying the position of the inflection point of the luminance distribution along the axial direction of the screw, and a mask according to the position of the specified inflection point. Means for aligning the data with the luminance distribution, means for extracting the luminance distribution of the screw ridge from the luminance distribution of the screw surface using the aligned mask data, and based on the luminance distribution of the screw ridge Means for determining whether the screw is good or bad is provided.
本発明の装置と方法によれば、ねじの山部の欠陥のみを抽出してねじの良否を適切に判定することができる。 According to the apparatus and the method of the present invention, it is possible to appropriately determine the quality of the screw by extracting only the defect of the screw thread.
以下に説明する実施例の主要な特徴を列記する。
(特徴1)本発明の方法と装置は、ねじ穴の内面に形成された雌ねじを検査する。
The main features of the embodiments described below are listed.
(Feature 1) The method and apparatus of the present invention inspects an internal thread formed on the inner surface of a screw hole.
図面を参照しながら本発明の一実施形態に係るねじ検査システム100について説明する。図1に示すように、ねじ検査システム100は、計測装置102と、検査制御装置104を備えている。検査制御装置104は、制御装置110、入力装置112、出力装置114、記憶装置116、演算装置118を備える一般的な汎用のコンピュータ装置である。記憶装置116はプログラム記憶部120とデータ記憶部122を備えている。プログラム記憶部120には、ねじ検査システム100に後述する動作を実行させるためのプログラムが記憶されている。データ記憶部122にはねじ検査システム100が動作する際に必要とされるデータや、ねじ検査システム100の動作中に入力装置112や計測装置102から入力されるデータや、ねじ検査システム100が動作中に生成したデータが記憶される。制御装置110がプログラム記憶部120に記憶されたプログラムを順次読み出し、演算装置118を用いて種々の演算処理を実行していくことで、ねじ検査システム100は後述する動作を実現していく。なお図1では、計測装置102の構成要素について、検査制御装置104と信号の入出力関係を有しているもののみを示している。
A
図2は計測装置102の機械的な構成を示している。図2に示すように、計測装置102は、プローブ202と、プローブ202を支持するアーム204を備えている。プローブ202は筒状の部材であって、その先端に発光素子であるLED210と、受光素子であるCCD212を収容している。アーム204はアクチュエータ208によって駆動されて、プローブ202をねじ穴Hに挿入する。プローブ202がねじ穴Hに挿入された状態でLED210を発光させると、プローブ202の側方に光が照射されて、ねじ穴Hの内面で反射した光がCCD212によって受光される。アクチュエータ208、LED210、CCD212は、その動作が検査制御装置104によって制御される。CCD212は、受光した反射光の輝度を検出して検査制御装置104に出力する。
FIG. 2 shows the mechanical configuration of the
プローブ202はアーム204によって周方向に回転可能に支持されている。アーム204に搭載されたモータ206を駆動することで、プローブ202はアーム204に対して周方向に回転する。モータ206はその動作が検査制御装置104によって制御される。プローブ202を回転しながら、LED210による光の照射とCCD212による輝度検出を連続的に行うことによって、ねじ穴Hの内面の周方向の輝度分布を1ライン分取得することができる。
The
ねじ穴Hの内面の周方向の輝度分布が1ライン分取得されると、アクチュエータ208を駆動してプローブ202を上方向に1ライン分引き上げ、再度プローブ202を回転させながらLED210による光の照射とCCD212による輝度検出を行う。これを繰り返し行っていくことによって、ねじ穴Hの最深部から上方向に向けて順に周方向の輝度分布が取得されて、ねじ穴Hの内面全体の輝度分布を取得することができる。
When the luminance distribution in the circumferential direction of the inner surface of the screw hole H is acquired for one line, the
検査制御装置104は、アクチュエータ208の制御履歴に基づいて、プローブ202の先端の挿入深さを算出することができる。またモータ206はエンコーダを内蔵しており、プローブ202の回転角度を検査制御装置104に出力する。検査制御装置104は、CCD212によって検出された輝度を、その時点でのプローブ202の先端の挿入深さと、プローブ202の回転角度に関連付けて、データ記憶部122に記憶していく。最終的に、データ記憶部122には、ねじ穴Hの内面全体の輝度分布が原画像データとして記憶される。
The
図3はねじ穴Hの内面に形成されているねじの形状と、それぞれの部位における反射光の輝度の関係を示している。ねじの山部302と谷部304はプローブ202からの入射光に対して垂直な平滑面となっているから、反射光の輝度が高い。また、一般的なねじの場合には、山部302の幅は谷部304の幅よりも広いため、山部302の反射光の輝度は谷部304の反射光の輝度に比べて高い。また、ねじの斜面部306はプローブ202からの入射光に対して傾斜しているため、山部302や谷部304に比べて反射光の輝度は低い。なお図3には示していないが、ねじの山部302や谷部304に欠陥が存在している場合、その部位は傾斜や凹凸を有することが多く、そこでの反射光の輝度は健全な山部302や谷部304における反射光の輝度よりも低くなる。
FIG. 3 shows the relationship between the shape of the screw formed on the inner surface of the screw hole H and the brightness of the reflected light at each part. Since the
以下では図4を参照しながら、ねじ検査システム100によるねじ穴Hの内面に形成されたねじの検査処理について詳細に説明する。
Hereinafter, an inspection process for screws formed on the inner surface of the screw hole H by the
ステップS402では、計測装置102によってねじ穴Hの内面全体を撮像し、ねじ穴Hの内面全体の輝度分布を示す原画像データを取得する。ステップS402の処理によって、ねじ穴Hの内面全体を撮像した原画像データがデータ記憶部122に記憶される。図5にステップS402で取得される原画像データ500を例示する。
In step S <b> 402, the entire inner surface of the screw hole H is imaged by the
図4のステップS404では、データ記憶部122に記憶されている原画像データに基いて、欠陥抽出処理を行う。この処理の詳細については後述する。ステップS404の処理によって、欠陥が存在する部位とそれ以外の部位を識別した欠陥画像データがデータ記憶部122に記憶される。
In step S404 in FIG. 4, a defect extraction process is performed based on the original image data stored in the
ステップS406では、データ記憶部122に記憶されている原画像データに基いて、ねじ山パターン抽出処理を行う。この処理の詳細については後述する。ステップS406の処理によって、ねじの山部のパターンを抽出したねじ山パターン画像データがデータ記憶部122に記憶される。
In step S406, a thread pattern extraction process is performed based on the original image data stored in the
ステップS408では、ステップS404で生成された欠陥画像データと、ステップS406で生成されたねじ山パターン画像データに基いて、ねじ穴Hの良否判定を行う。この処理の詳細については後述する。 In step S408, the quality of the screw hole H is determined based on the defect image data generated in step S404 and the thread pattern image data generated in step S406. Details of this processing will be described later.
以下では図6を参照しながら、図4のステップS404で行う欠陥抽出処理について説明する。 Hereinafter, the defect extraction process performed in step S404 in FIG. 4 will be described with reference to FIG.
ステップS602では、データ記憶部122から原画像データを読み出す。
In step S <b> 602, original image data is read from the
ステップS604では、ステップS602で読み出した原画像データが表現する輝度分布について、移動平均処理を行う。図5に示すように、原画像データ500においては、ねじの山部が明るく、それに続く斜面部が暗く、それに続く谷部が明るく、それに続く斜面部が暗い、という繰り返しパターンが存在している。図6のステップS604で移動平均処理を行うことによって、上記のような明暗の繰り返しパターンが平準化される。この移動平均処理を行うと、ねじの山部や谷部に欠陥が存在しない健全な個所については、輝度の高い山部や谷部を含む平均値が算出されるので、やや明るい輝度となる。他方、ねじの山部や谷部に欠陥が存在する個所については、輝度の高い山部や谷部を含まない平均値が算出されるので、やや暗い輝度となる。
In step S604, a moving average process is performed on the luminance distribution represented by the original image data read in step S602. As shown in FIG. 5, in the
ステップS606では、ステップS604で移動平均処理を施した後の輝度分布について、二値化処理を行う。この二値化処理を行うことによって、山部や谷部に欠陥が存在しない健全部と、山部や谷部に欠陥が存在する欠陥部が鮮明に区別された輝度分布が得られる。 In step S606, binarization processing is performed on the luminance distribution after the moving average processing is performed in step S604. By performing this binarization process, a luminance distribution is obtained in which a healthy part in which no defect exists in a peak or a valley and a defective part in which a defect exists in a peak or a valley are clearly distinguished.
ステップS608では、ステップS606で二値化処理を施した後の輝度分布を、欠陥画像データとしてデータ記憶部122に記憶する。
In step S608, the luminance distribution after the binarization process in step S606 is stored in the
図7に上記の欠陥抽出処理によって生成される欠陥画像データを例示する。図5の原画像データ500について、図6の欠陥抽出処理を行うことによって、図7のように山部や谷部に欠陥が存在しない健全部704と、山部や谷部に欠陥が存在する欠陥部702を識別した欠陥画像データ700が得られる。欠陥画像データ700においては、健全部704は明部として表現されており、欠陥部702は暗部として表現されている。
FIG. 7 illustrates defect image data generated by the defect extraction process. By performing the defect extraction process of FIG. 6 on the
以下では図8を参照しながら、図4のステップS406で行われるねじ山パターン抽出処理について説明する。 Hereinafter, the thread pattern extraction process performed in step S406 of FIG. 4 will be described with reference to FIG.
ステップS802では、データ記憶部122から原画像データを読み出す。
In step S <b> 802, original image data is read from the
ステップS804では、ステップS802で読み出した原画像データ、すなわちねじ穴Hの内面全体の輝度分布から、ねじの軸心方向(図5の原画像データ500における上下方向)に沿った1ライン分の輝度分布を抽出する。図9の(a)に、ステップS804で抽出される輝度分布を例示する。
In step S804, the luminance of one line along the axial direction of the screw (vertical direction in the
ステップS806では、ステップS804で抽出された1ライン分の輝度分布について、変曲点の位置を特定する。変曲点の位置は、図9の(a)に示す1ライン分の輝度分布について二階微分値を計算し、その二階微分値が0となる点を求めることによって特定される。図9の(a)に示すように、1ライン分の輝度分布における変曲点Pの位置は、ねじの山部に対応する輝度のピークと、ねじの谷部に対応する輝度のピークを、それぞれ両側で挟むような位置に特定される。本実施例の検査制御装置104は、特定された変曲点の位置に応じて、図9の(b)に示す変曲点波形を生成する。この変曲点波形は、特定された変曲点で値が切換わる二値の波形であり、前後の変曲点の間にねじの山部や谷部に対応するピークが存在している範囲では「1」の値を取り、存在していない範囲では「0」の値を取る。
In step S806, the position of the inflection point is specified for the luminance distribution for one line extracted in step S804. The position of the inflection point is specified by calculating a second-order differential value for the luminance distribution for one line shown in FIG. 9A and obtaining a point where the second-order differential value is zero. As shown in (a) of FIG. 9, the position of the inflection point P in the luminance distribution for one line has a luminance peak corresponding to the thread peak and a luminance peak corresponding to the thread valley. Each position is specified to be sandwiched between both sides. The
ステップS808では、ステップS806で特定された変曲点の位置に応じて、マスクデータの位置合わせを行う。本実施例では、図9の(c)に示す基準変曲点波形がデータ記憶部122に予め記憶されている。基準変曲点波形は、製造公差のない理想的なねじ形状の場合の輝度分布を予め取得しておき、その輝度分布における変曲点の位置から予め設定されている変曲点波形である。図9の(b)に示す変曲点波形と、図9の(c)に示す基準変曲点波形の差分の和を算出し、その和が最小となるオフセット量を算出して、マスクデータの位置合わせを行う。
In step S808, the mask data is aligned according to the position of the inflection point specified in step S806. In this embodiment, the reference inflection point waveform shown in FIG. 9C is stored in advance in the
図9の(d)は本実施例で扱うマスクデータを示している。マスクデータは、ねじの輝度分布からねじの山部のみの輝度分布を抽出するために用いられる二値データである。マスクデータが「1」の値を取る範囲は、製造公差のない理想的なねじ形状の場合に、ねじの山部を包含し、かつねじの谷部を含まないような範囲に設定されている。それ以外の範囲においては、マスクデータは「0」の値を取る。本実施例では、図9の(b)に示す変曲点波形と図9の(c)の基準変曲点波形の間のオフセット量に基いて、図9の(d)のマスクデータを図9の(a)の輝度分布に対して位置合わせする。 FIG. 9D shows the mask data handled in this embodiment. The mask data is binary data used to extract the luminance distribution of only the thread crest from the luminance distribution of the screw. The range in which the mask data takes a value of “1” is set to a range that includes the threaded portion of the screw and does not include the threaded valley portion in the case of an ideal screw shape with no manufacturing tolerance. . In other ranges, the mask data takes a value of “0”. In the present embodiment, the mask data of FIG. 9D is represented based on the offset amount between the inflection point waveform shown in FIG. 9B and the reference inflection point waveform of FIG. Positioning is performed with respect to the luminance distribution 9 (a).
ステップS810では、ステップS804で抽出された1ライン分の輝度分布(図9の(a)に示す)に、ステップS808で位置合わせしたマスクデータ(図9の(d)に示す)を乗じることで、図9の(e)に示すねじの山部を抽出した1ライン分の輝度分布を取得する。 In step S810, the luminance distribution for one line extracted in step S804 (shown in FIG. 9A) is multiplied by the mask data (shown in FIG. 9D) aligned in step S808. The luminance distribution for one line obtained by extracting the thread ridges shown in FIG.
ステップS812では、ステップS802で読み出した原画像データにおいて、ねじの軸心方向に沿う全てのラインで上記の抽出処理が終了したか否かを判断する。未だ抽出処理を行っていないラインが存在する場合(ステップS812でNOの場合)、処理はステップS804へ戻り、未だ抽出処理を行っていないラインについてステップS804からステップS810までの処理を実行する。全てのラインについて抽出処理が終了した場合(ステップS812でYESの場合)、処理はステップS814へ進む。 In step S812, it is determined whether or not the above extraction process has been completed for all lines along the axial direction of the screw in the original image data read in step S802. If there is a line that has not been subjected to extraction processing (NO in step S812), the processing returns to step S804, and the processing from step S804 to step S810 is executed for the line that has not yet undergone extraction processing. If the extraction process has been completed for all lines (YES in step S812), the process proceeds to step S814.
ステップS814では、抽出されたねじ山パターンの補正を行う。ステップS814の時点では、ねじ穴Hの内面全体についてのねじ山パターンの抽出が既になされている。この抽出されたねじ山パターンにおいては、ねじ穴Hでねじの山部に欠落している部位があると、その部位が欠落したねじ山パターンが抽出されることになる。ステップS814では、抽出されたねじ山パターンを幅が一様な直線で近似することで、このようなねじ山パターンの欠落を補正する処理を行う。 In step S814, the extracted screw thread pattern is corrected. At the time of step S814, the thread pattern for the entire inner surface of the screw hole H has already been extracted. In this extracted thread pattern, if there is a missing part in the threaded part of the screw hole H, the thread pattern in which that part is missing is extracted. In step S814, the extracted thread pattern is approximated by a straight line having a uniform width to perform processing for correcting such a missing thread pattern.
ステップS816では、ステップS814で補正がなされたねじ山パターンを、ねじ山パターン画像データとしてデータ記憶部122に記憶する。
In step S816, the thread pattern corrected in step S814 is stored in the
図10に上記のねじ山抽出処理によって得られるねじ山パターン画像データ1000を例示する。図5に示す原画像データについて、図8のねじ山パターン抽出処理を行うことによって、図10のようにねじの山部1002とそれ以外の部分1004を区別したねじ山パターン画像データ1000が得られる。ねじ山パターン画像データ1000では、実際のねじ穴Hにおけるねじの山部の幅や、ねじ山のピッチが正確に反映されている。このねじ山パターン画像データ1000を用いることで、ねじの公称の寸法からねじ山パターンを設定する場合に比べて、より現実に近いねじ山パターンを設定することができる。
FIG. 10 illustrates the thread
以下では図11を参照しながら、図4のステップS408で行うねじ穴Hの良否判定処理について説明する。 Hereinafter, the quality determination process for the screw hole H performed in step S408 of FIG. 4 will be described with reference to FIG.
ステップS1102では、データ記憶部122に記憶されている欠陥画像データを読み出す。
In step S1102, the defect image data stored in the
ステップS1104では、データ記憶部122に記憶されているねじ山パターン画像データを読み出す。
In step S1104, the thread pattern image data stored in the
ステップS1106では、ステップS1102で読み出された欠陥画像データと、ステップS1104で読み出されたねじ山パターン画像データに基いて、ねじ山の欠落部分の面積を算出する。図12に示すように、欠陥画像データにおいて欠陥部として識別されている領域1202と、ねじ山パターン画像データにおいてねじの山部であると識別されている領域1204が重複する領域1206が、ねじ山の欠落部分と判断される。この重複する領域1206の面積を算出することによって、ねじ山の欠落部分の面積を取得することができる。
In step S1106, the area of the missing portion of the thread is calculated based on the defect image data read in step S1102 and the thread pattern image data read in step S1104. As shown in FIG. 12, an
ステップS1108では、ステップS1104で読み出されたねじ山パターン画像データと、ステップS1106で算出されたねじ山の欠落部分の面積に基いて、ねじ山の健全部分の面積を算出する。ねじ山パターン画像データに表現されているねじ山は、ねじ穴Hについてねじ山の欠落が存在しないと仮定した場合の理想的なねじ山を表現している。従って、ねじ山パターン画像データにおいてねじの山部であると識別されている領域の全面積を算出し、そこからステップS1106で算出されたねじ山の欠落部分の面積を差し引くことで、ねじ山の健全部分の面積を算出することができる。 In step S1108, the area of the healthy part of the thread is calculated based on the thread pattern image data read in step S1104 and the area of the missing part of the thread calculated in step S1106. The thread represented in the thread pattern image data represents an ideal thread when it is assumed that there is no missing thread in the screw hole H. Therefore, by calculating the total area of the region identified as the screw thread portion in the screw thread pattern image data and subtracting the area of the screw thread missing portion calculated in step S1106, The area of the healthy part can be calculated.
ステップS1110では、ステップS1106で算出されたねじ山の欠落部分の面積と、ステップS1108で算出されたねじ山の健全部分の面積に基づいて、ねじ穴Hの有効ねじ長を計算する。有効ねじ長は次式で計算される。
有効ねじ長=ねじ穴Hのねじ部の軸心方向長さ×ねじ山の健全部分の面積/(ねじ山の健全部分の面積+ねじ山の欠落部分の面積)
In step S1110, the effective screw length of the screw hole H is calculated based on the area of the missing part of the thread calculated in step S1106 and the area of the healthy part of the thread calculated in step S1108. The effective screw length is calculated by the following formula.
Effective screw length = axial length of the threaded portion of the screw hole H x area of the threaded healthy part / (area of the threaded healthy part + area of the threaded missing part)
ステップS1112では、ステップS1010で計算された有効ねじ長を、ねじ穴Hに要求される必要ねじ長と比較する。必要ねじ長は、ねじ穴Hに適用される締結トルクに対して十分な強度が確保されるように規定されている。有効ねじ長が必要ねじ長以上の場合(ステップS1112でYESの場合)、ステップS1114でねじ穴Hは良好と判定される。有効ねじ長が必要ねじ長に満たない場合(ステップS1112でNOの場合)、ステップS1116でねじ穴Hは不良と判定される。ねじ穴Hについての良否判定の結果は、図1の出力装置114に出力される。
In step S1112, the effective screw length calculated in step S1010 is compared with the necessary screw length required for the screw hole H. The required screw length is defined such that sufficient strength is secured against the fastening torque applied to the screw hole H. If the effective screw length is greater than or equal to the required screw length (YES in step S1112), the screw hole H is determined to be good in step S1114. If the effective screw length is less than the required screw length (NO in step S1112), the screw hole H is determined to be defective in step S1116. The result of the quality determination for the screw hole H is output to the
以上のように、本実施例のねじ検査システム100によれば、作業者による目視検査を行うことなく、ねじ穴Hの内面に形成されたねじの良否を適切に検査することができる。
As described above, according to the
なお上記の実施例において、図8のねじ山パターン抽出処理で生成されるねじ山パターン画像データから、ねじの山部の幅やねじ山のピッチを計測することもできる。ねじ山の欠落に着目した良否判定だけでなく、ねじの山部の加工精度と要求される公差に着目した良否判定を行うこともできる。 In the above-described embodiment, the width of the thread ridge and the pitch of the thread can be measured from the thread pattern image data generated by the thread pattern extraction process of FIG. Not only the quality determination focusing on the missing thread, but also the quality determination focusing on the processing accuracy and required tolerances of the screw thread can be performed.
なお上記の実施例において、図8のねじ山パターン抽出処理におけるマスクデータを変更することで、ねじの山部のパターンを抽出する代わりに、ねじの谷部のパターンを抽出することもできる。ねじの谷部のパターンを抽出することで、ねじの谷部の幅を計測することが可能となる。ねじの谷部の加工精度と要求される公差に着目した良否判定を行うこともできる。 In the above-described embodiment, by changing the mask data in the screw thread pattern extraction process of FIG. 8, the screw valley pattern can be extracted instead of extracting the screw thread pattern. By extracting the screw valley pattern, the width of the screw valley can be measured. It is also possible to make a pass / fail judgment focusing on the machining accuracy of the thread valley and the required tolerance.
なお上記の実施例では、ねじ穴Hの内面に形成された雌ねじを検査する場合について説明したが、同様の原理に基づいて、雄ねじのねじ山を検査することも可能である。 In the above embodiment, the case where the internal thread formed on the inner surface of the screw hole H is inspected has been described. However, it is also possible to inspect the thread of the external thread based on the same principle.
なお上記の実施例では、欠陥画像データにおいて欠陥部と識別されている領域とねじ山パターン画像データにおいてねじの山部として識別されている領域が重複する領域を、ねじ山の欠落部分として識別する場合について説明した。これ以外にも、例えば図8のステップS814でねじ山パターンの補正を行うことなく、ステップS802からステップS812までの処理によって抽出されたねじ山パターンから、直接的にねじ山の欠落部分と健全部分を識別してもよい。 In the above-described embodiment, a region where a region identified as a defective portion in the defect image data and a region identified as a screw thread portion in the screw thread pattern image data overlap is identified as a missing portion of the screw thread. Explained the case. In addition to this, for example, without correcting the thread pattern in step S814 in FIG. 8, the thread missing part and the sound part directly from the thread pattern extracted by the processing from step S802 to step S812 are performed. May be identified.
なお上記の実施例では、プローブ202の先端に設けられたLED210とCCD212によってねじ穴Hの内面の輝度分布を取得する場合について説明した。これ以外にも、例えば半導体レーザと光ファイバを組み合わせて用いるなど、他の光学系によってねじ穴Hの内面の輝度分布を取得してもよい。
In the above embodiment, the case where the luminance distribution on the inner surface of the screw hole H is acquired by the
以上、本発明の具体例を詳細に説明したが、これらは例示にすぎず、特許請求の範囲を限定するものではない。特許請求の範囲に記載の技術には、以上に例示した具体例を様々に変形、変更したものが含まれる。
本明細書または図面に説明した技術要素は、単独であるいは各種の組み合わせによって技術的有用性を発揮するものであり、出願時の請求項に記載の組み合わせに限定されるものではない。また、本明細書または図面に例示した技術は複数目的を同時に達成するものであり、そのうちの一つの目的を達成すること自体で技術的有用性を持つものである。
Specific examples of the present invention have been described in detail above, but these are merely examples and do not limit the scope of the claims. The technology described in the claims includes various modifications and changes of the specific examples illustrated above.
The technical elements described in this specification or the drawings exhibit technical usefulness alone or in various combinations, and are not limited to the combinations described in the claims at the time of filing. In addition, the technology illustrated in the present specification or the drawings achieves a plurality of objects at the same time, and has technical utility by achieving one of the objects.
100 検査システム
102 計測装置
104 検査制御装置
110 制御装置
112 入力装置
114 出力装置
116 記憶装置
118 演算装置
120 プログラム記憶部
122 データ記憶部
202 プローブ
204 アーム
206 モータ
208 アクチュエータ
210 LED
212 CCD
302 ねじの山部
304 ねじの谷部
306 ねじの斜面部
500 原画像データ
700 欠陥画像データ
702 欠陥部
704 健全部
1000 ねじ山パターン画像データ
1002 ねじの山部
1004 ねじの山部以外の部分
1202 欠陥部として識別される領域
1204 ねじの山部として識別される領域
1206 ねじ山の欠落部分として識別される領域
DESCRIPTION OF
212 CCD
302
Claims (2)
ねじの表面の輝度分布を取得する工程と、
ねじの軸心方向に沿った輝度分布の変曲点の位置を特定する工程と、
特定された変曲点の位置に応じてマスクデータを輝度分布に位置合わせする工程と、
位置合わせされたマスクデータを用いてねじの表面の輝度分布からねじの山部の輝度分布を抽出する工程と、
ねじの山部の輝度分布に基いてねじの良否を判定する工程を備える方法。 A method for inspecting screws,
Obtaining a luminance distribution of the surface of the screw;
Identifying the position of the inflection point of the luminance distribution along the axial direction of the screw;
Aligning the mask data with the luminance distribution according to the position of the specified inflection point;
Extracting the brightness distribution of the thread ridge from the brightness distribution of the surface of the screw using the aligned mask data;
A method comprising a step of determining whether a screw is good or bad based on a luminance distribution of a screw thread.
ねじの表面の輝度分布を取得する手段と、
ねじの軸心方向に沿った輝度分布の変曲点の位置を特定する手段と、
特定された変曲点の位置に応じてマスクデータを輝度分布に位置合わせする手段と、
位置合わせされたマスクデータを用いてねじの表面の輝度分布からねじの山部の輝度分布を抽出する手段と、
ねじの山部の輝度分布に基いてねじの良否を判定する手段を備える装置。 A device for inspecting screws,
Means for obtaining the luminance distribution of the surface of the screw;
Means for identifying the position of the inflection point of the luminance distribution along the axial direction of the screw;
Means for aligning the mask data with the luminance distribution according to the position of the specified inflection point;
Means for extracting the brightness distribution of the thread crest from the brightness distribution of the screw surface using the aligned mask data;
An apparatus comprising means for determining whether a screw is good or bad based on a luminance distribution of a screw thread.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008091035A JP4965495B2 (en) | 2008-03-31 | 2008-03-31 | Method and apparatus for inspecting screws |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008091035A JP4965495B2 (en) | 2008-03-31 | 2008-03-31 | Method and apparatus for inspecting screws |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2009244108A true JP2009244108A (en) | 2009-10-22 |
JP4965495B2 JP4965495B2 (en) | 2012-07-04 |
Family
ID=41306167
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2008091035A Expired - Fee Related JP4965495B2 (en) | 2008-03-31 | 2008-03-31 | Method and apparatus for inspecting screws |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4965495B2 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR102028866B1 (en) * | 2019-06-17 | 2019-10-04 | 한전케이피에스 주식회사 | Image acquisition apparatus for inspecting screw thread of stud hole |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS59141008A (en) * | 1983-01-31 | 1984-08-13 | Nippon Kokan Kk <Nkk> | Threaded portion inspecting device |
JPS6175204A (en) * | 1984-09-20 | 1986-04-17 | Nippon Kokan Kk <Nkk> | Method for inspecting thread of male screw |
JPS61167807A (en) * | 1985-01-21 | 1986-07-29 | Sumitomo Metal Ind Ltd | Inspecting instrument for surface of screw |
JPH07167625A (en) * | 1993-12-15 | 1995-07-04 | Hewtec:Kk | Method and equipment for inspecting deposited film |
JPH1073418A (en) * | 1996-08-30 | 1998-03-17 | Mazda Motor Corp | Method for detecting defect of tapped hole |
-
2008
- 2008-03-31 JP JP2008091035A patent/JP4965495B2/en not_active Expired - Fee Related
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS59141008A (en) * | 1983-01-31 | 1984-08-13 | Nippon Kokan Kk <Nkk> | Threaded portion inspecting device |
JPS6175204A (en) * | 1984-09-20 | 1986-04-17 | Nippon Kokan Kk <Nkk> | Method for inspecting thread of male screw |
JPS61167807A (en) * | 1985-01-21 | 1986-07-29 | Sumitomo Metal Ind Ltd | Inspecting instrument for surface of screw |
JPH07167625A (en) * | 1993-12-15 | 1995-07-04 | Hewtec:Kk | Method and equipment for inspecting deposited film |
JPH1073418A (en) * | 1996-08-30 | 1998-03-17 | Mazda Motor Corp | Method for detecting defect of tapped hole |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR102028866B1 (en) * | 2019-06-17 | 2019-10-04 | 한전케이피에스 주식회사 | Image acquisition apparatus for inspecting screw thread of stud hole |
Also Published As
Publication number | Publication date |
---|---|
JP4965495B2 (en) | 2012-07-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5025442B2 (en) | Tire shape inspection method and apparatus | |
EP1582863A1 (en) | Multi-resolution inspection system and method of operating same | |
JP5288297B2 (en) | Method for measuring the end shape of a threaded tube | |
US20100118136A1 (en) | Surface inspection device and an arrangement for inspecting a surface | |
JP5438475B2 (en) | Gap step measurement device, gap step measurement method, and program thereof | |
JP5837283B2 (en) | Tire appearance inspection method and appearance inspection apparatus | |
JP2019196985A (en) | Inspection equipment and inspection method | |
JP7010213B2 (en) | Cylindrical surface inspection device and cylindrical surface inspection method | |
KR20080004346A (en) | Unevenness inspecting apparatus, image display apparatus, unevenness inspecting method, and image display method | |
JP2005128016A (en) | Inspection system and method | |
JP4965495B2 (en) | Method and apparatus for inspecting screws | |
JP2020106295A (en) | Sheet defect inspection device | |
JP2007303994A (en) | Visual inspecting device and method | |
JP2009109243A (en) | Device for inspecting resin sealing material | |
JP2007315946A (en) | Three-dimensional shape measurement method and three-dimensional shape measuring device using this | |
JP6604258B2 (en) | Thread shape measuring device for threaded tubes | |
JP5367292B2 (en) | Surface inspection apparatus and surface inspection method | |
JP6595800B2 (en) | Defect inspection apparatus and defect inspection method | |
JP2002148029A (en) | Apparatus and method of inspecting cylindrical object surface irregularities | |
JP6402082B2 (en) | Surface imaging apparatus, surface inspection apparatus, and surface imaging method | |
US20230252616A1 (en) | Inspection system and inspection method | |
JP4619748B2 (en) | Defect detection method for multilayer flat plate inspection object having optical transparency | |
JP4984078B2 (en) | Inspection method for FIPG coating line | |
JP2005061839A (en) | Surface defect inspection method and device | |
JP2015225042A (en) | Defect inspection device and defect inspection method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20100824 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20120208 |
|
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: 20120313 |
|
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: 20120329 |
|
R151 | Written notification of patent or utility model registration |
Ref document number: 4965495 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R151 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20150406 Year of fee payment: 3 |
|
S533 | Written request for registration of change of name |
Free format text: JAPANESE INTERMEDIATE CODE: R313533 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20150406 Year of fee payment: 3 |
|
R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
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 |
|
LAPS | Cancellation because of no payment of annual fees |