JP2768208B2 - Screw defect inspection device - Google Patents

Screw defect inspection device

Info

Publication number
JP2768208B2
JP2768208B2 JP5099566A JP9956693A JP2768208B2 JP 2768208 B2 JP2768208 B2 JP 2768208B2 JP 5099566 A JP5099566 A JP 5099566A JP 9956693 A JP9956693 A JP 9956693A JP 2768208 B2 JP2768208 B2 JP 2768208B2
Authority
JP
Japan
Prior art keywords
image
screw
defect
original image
created
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.)
Expired - Fee Related
Application number
JP5099566A
Other languages
Japanese (ja)
Other versions
JPH06307829A (en
Inventor
志貴男 安藤
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.)
Denso Corp
Original Assignee
Denso Corp
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 Denso Corp filed Critical Denso Corp
Priority to JP5099566A priority Critical patent/JP2768208B2/en
Publication of JPH06307829A publication Critical patent/JPH06307829A/en
Application granted granted Critical
Publication of JP2768208B2 publication Critical patent/JP2768208B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

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

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は、ネジの欠陥を検査する
装置に関し、特にネジの先端部分の打痕等の欠陥を確実
に検出することができるネジ欠陥検査装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an apparatus for inspecting a defect of a screw, and more particularly to an apparatus for inspecting a screw defect capable of reliably detecting a defect such as a dent at a tip portion of the screw.

【0002】[0002]

【従来の技術】従来より、ネジの打痕等の欠陥を検出す
ることは、ネジが相手側のナットに入らないという重大
事態が発生することを防止するために非常に重要であっ
た。このネジの欠陥を検出する方法としては、例えば目
視でネジの全周を検査する方法が考えられるが、当然な
がら欠陥の見落としがあるので、近年では、ネジの欠陥
の検出を自動的に行なう各種の自動検査装置が提案され
ている。
2. Description of the Related Art Conventionally, it has been very important to detect a defect such as a dent of a screw in order to prevent a serious situation in which the screw does not enter a mating nut. As a method of detecting the screw defect, for example, a method of visually inspecting the entire circumference of the screw can be considered. However, since the defect is naturally overlooked, in recent years, various types of automatic detection of the screw defect have been performed. Has been proposed.

【0003】例えば、ネジの根元側の(ネジ山形状が同
一である)完全ネジ部については、ネジの周期性を利用
して検査を行なう装置が知られている。この装置では、
図7(a)に示す様に、検査対象となる被検ネジ部に特
定方向から光を照射し、ネジの打痕等のある部分(欠陥
部)では反射光に乱れが生じることを利用し、この反射
光の乱れによって生ずる出力信号の変化によって、ネジ
の欠陥を検出している。具体的には、受光部に入射した
反射光によって生ずる出力信号の状態の変化に基づい
て、ネジの欠陥を検出している。
[0003] For example, there is known a device for inspecting a complete thread portion at the root side of a screw (having the same thread shape) by utilizing the periodicity of the screw. In this device,
As shown in FIG. 7A, light is irradiated from a specific direction to a screw portion to be inspected, which is to be inspected. The screw defect is detected by the change in the output signal caused by the disturbance of the reflected light. Specifically, a screw defect is detected based on a change in the state of an output signal caused by reflected light incident on the light receiving unit.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、この様
な装置では、ネジの全ての部分における欠陥を確実に検
出できるとは限らなかった。例えば、規則的なパターン
の繰り返し形状である完全ネジ部では、従来の装置でも
ネジの欠陥を検出することができるが、規則的なパター
ンの繰り返し形状から外れるネジ先端面取部について
は、ネジの欠陥を確実に検出できないことがあった。
However, with such an apparatus, it is not always possible to reliably detect defects in all parts of the screw. For example, in a complete screw portion having a regular pattern repetition shape, a screw defect can be detected even with a conventional device. In some cases, defects could not be reliably detected.

【0005】これは、図7(b)に示す様に、ネジ先端
面取部でも前記完全ネジ部の欠陥と同様な反射光の乱れ
が生ずるためであり、従来の装置では、このネジ先端面
取部の乱れとネジの欠陥よる反射光の乱れとを判別で
きないために、ネジの欠陥を完全には検出できないとい
う問題があった。
This is because, as shown in FIG. 7 (b), the reflected light is disturbed even in the chamfered portion at the screw tip as in the case of the defect of the completely threaded portion. for disturbance of the intake section and not determine a disturbance of the reflected light due to the defect of the screw, there is a problem that can not be detected in full defects screws.

【0006】しかも、一般に、ネジ先端面取部付近は打
痕等の欠陥が生じ易い場所であり、そのため、このネジ
先端面取部の欠陥を完全に検出できないという点は、一
層大きな問題となっていた。本発明は、前記課題を解決
するためになされ、ネジ先端面取部の欠陥も好適に検出
できるネジ欠陥検査装置を提供することを目的とする。
In addition, in general, a defect such as a dent is likely to occur near the screw tip chamfered portion. Therefore, the fact that the defect of the screw tip chamfered portion cannot be completely detected becomes a more serious problem. I was SUMMARY OF THE INVENTION The present invention has been made to solve the above-described problems, and has as its object to provide a screw defect inspection apparatus capable of suitably detecting a defect in a chamfered portion of a screw tip.

【0007】[0007]

【課題を解決するための手段】前記目的を達成するため
の請求項1記載の発明は、図1に例示する様に、ネジを
撮影した画像を入力し、該画像に基づいてネジの欠陥を
検出するネジ欠陥検査装置において、前記ネジの原画像
を画像情報として作成する原画像作成手段M1と、該原
画像作成手段M1によって作成された原画像を反転し
て、ネジのネガ形状をなす反転画像を作成する反転画像
作成手段M2と、前記原画像作成手段M1によって作成
された原画像をネジの軸方向に所定ピッチ分ずらして、
ネジの後画像を作成する後画像作成手段M3と、該後画
像作成手段M3によって作成された後画像と前記反転画
像作成手段によって作成された反転画像とを重ね合わせ
て、両画像の干渉部分を求める画像比較手段M4と、該
画像比較手段M4によって得られた両画像の干渉部分に
基づいて、ネジの欠陥を検出するネジ欠陥検出手段M5
と、を備えたことを特徴とするネジ欠陥検査装置を要旨
とする。
According to the first aspect of the present invention, as shown in FIG. 1, an image obtained by photographing a screw is input, and a defect of the screw is determined based on the image. In a screw defect inspection apparatus for detecting, an original image creating means M1 for creating an original image of the screw as image information, and an inversion of the original image created by the original image creating means M1 to form a negative screw shape. An inverted image creating means M2 for creating an image and the original image created by the original image creating means M1 are shifted by a predetermined pitch in the axial direction of the screw ,
A post-image creating means M3 for creating a post-image of the screw, and the post-image created by the post-image creating means M3 and the inverted image created by the inverted image creating means are superimposed on each other to reduce an interference portion between the two images. An image comparing unit M4 to be obtained and a screw defect detecting unit M5 for detecting a screw defect based on an interference portion between the two images obtained by the image comparing unit M4.
The gist is a screw defect inspection device characterized by comprising:

【0008】[0008]

【作用】以上述べた本発明では、原画像作成手段M1に
よって、ネジを撮影して得られたネジの原画像を画像情
報として作成する。そして、反転画像作成手段M2によ
って、この原画像を反転してネジのネガ形状をなす反転
画像を作成するとともに、後画像作成手段M3によっ
て、原画像をネジの軸方向に所定ピッチ分ずらしてネジ
の後画像を作成する。そして、画像比較手段M4によ
り、後画像作成手段M3によって作成された後画像と反
転画像作成手段M2によって作成された反転画像とを重
ね合わせて両画像が重なる干渉部分を求め、ネジ欠陥検
出手段M5によって、この両画像が重なる干渉部分に基
づいて、ネジの欠陥を検出する。つまり、ネジに欠陥が
ある場合、ネジの原画像とその反転画像とをそのまま重
ね合わせても欠陥は検出できないが、原画像を例えば1
ピッチずらすと、ずらした後画像はネジの欠陥部だけが
原画像よりはみ出ることになる。そこで、予め検査する
ネジの反転画像を作成しておき、この反転画像とピッチ
をずらした後画像とを比較すると、ネジに欠陥がある場
合には、両画像に干渉する(重なる)部分が生ずるの
で、この様な干渉部分がある場合には、ネジに欠陥があ
ると判定するものである。
According to the present invention described above, an original image of a screw obtained by photographing a screw is created as image information by the original image creating means M1. Then, the original image is inverted by the inverted image creating means M2 to create an inverted image having a screw negative shape , and the post-image creating means M3 shifts the original image by a predetermined pitch in the axial direction of the screw. After the image is created. Then, the image comparing unit M4 superimposes the post-image created by the post-image creating unit M3 and the inverted image created by the inverted image creating unit M2 to obtain an interference portion where the two images overlap, and obtains the screw defect detecting unit M5. Accordingly, a screw defect is detected based on the interference portion where the two images overlap. In other words, if the screw has a defect, the defect cannot be detected even if the original image of the screw and its inverted image are directly superimposed.
When the pitch is shifted, in the shifted image, only the defective portion of the screw protrudes from the original image. Therefore, an inverted image of the screw to be inspected is created in advance, and when the inverted image is compared with the image after shifting the pitch, if the screw has a defect, a portion that interferes (overlaps) with both images occurs. Therefore, if there is such an interference portion, it is determined that the screw is defective.

【0009】つまり、ネジに欠陥がある場合、ネジの原
画像とその反転画像とをそのまま重ね合わせても欠陥は
検出できないが、原画像を例えば1ピッチずらすと、ず
らした後画像はネジの欠陥部だけが原画像よりはみ出る
ことになる。そこで、予め検査するネジの反転画像を作
成しておき、この反転画像とピッチをずらした後画像と
を比較すると、ネジに欠陥がある場合には、両画像に干
渉する(重なる)部分が生ずるので、この様な干渉部分
がある場合には、ネジに欠陥があると判定するものであ
る。
In other words, if the screw has a defect, the defect cannot be detected even if the original image of the screw and its inverted image are directly superimposed, but if the original image is shifted by, for example, one pitch, the image after the shift will have a defect of the screw. Only the part protrudes from the original image. Therefore, an inverted image of the screw to be inspected is created in advance, and the inverted image is compared with the image after shifting the pitch. When the screw has a defect, a portion that interferes (overlaps) with both images occurs. Therefore, if there is such an interference portion, it is determined that the screw is defective.

【0010】[0010]

【実施例】以下に本発明の実施例を図面と共に説明す
る。図2は本実施例のネジ欠陥検査置全体の構成を表す
概略構成図であり、図3はその電気的構成を示すブロッ
ク図である。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 2 is a schematic configuration diagram showing the entire configuration of the screw defect inspection device of the present embodiment, and FIG. 3 is a block diagram showing the electrical configuration thereof.

【0011】図2に示す如く、1は検査対象となるネ
ジ、2はネジ1を固定して回転する回転台、3は回転台
2を駆動するモータ、4はネジ1に光を照射する透過照
明装置、5は透過照明装置4からの光を受光するエリア
カメラ、6はエリアカメラ5からの信号を画像データに
変更する汎用画像処理装置、7は汎用画像処理装置6で
処理された種々の画像を写すモニター、10は装置全体
の制御を行なう電子制御装置である。
As shown in FIG. 2, 1 is a screw to be inspected, 2 is a turntable that fixes and rotates the screw 1, 3 is a motor that drives the turntable 2, and 4 is a transmission that irradiates the screw 1 with light. Illumination device, 5 is an area camera that receives light from the transmission illumination device 4, 6 is a general-purpose image processing device that changes a signal from the area camera 5 into image data, and 7 is various types of image data processed by the general-purpose image processing device 6. A monitor 10 for displaying an image is an electronic control unit for controlling the entire apparatus.

【0012】このうち、前記回転台2は、その回転の中
心にネジ1の頭部を固定するとともに、モータ3によっ
て駆動されて矢印A方向に所定の定速度で回転する。前
記透過照明装置4は、ネジ1の側面から均一に光を照射
する。前記エリアカメラ5は、透過照明装置4とネジ1
との延長線上に配置されており、透過照明装置4から照
射されてネジ1の周囲を透過した光を受光し、ネジ1の
2次元の明暗シルエット画像を検出する。
The rotary table 2 has a screw 1 fixed at the center of rotation, and is driven by a motor 3 to rotate at a predetermined constant speed in the direction of arrow A. The transmission illumination device 4 uniformly irradiates light from the side surface of the screw 1. The area camera 5 includes a transmission illumination device 4 and a screw 1.
The light received from the transmission illumination device 4 and transmitted around the screw 1 is received, and a two-dimensional bright and dark silhouette image of the screw 1 is detected.

【0013】前記汎用画像処理装置6は、画像データの
処理やネジ1の欠陥の判定等を行なうコンピュータとし
てのデータ処理機能を有する装置であり、図3に示す様
に、周知のCPU6a、エリアカメラ5からの信号を入
力する画像信号入力回路6b、入力した画像データを記
憶する画像メモリA,B、処理プログラム及び測定値を
記憶するRAMI6c、ネジ1の欠陥等を判定するため
の判定用データ(基準値PmL,PtL)を記憶するRA
MII6d、電子制御装置10とデータのやりとりをする
入力ポート6e及び出力ポート6f、それらを接続する
バス6g等からなる。そして、この装置6では、エリア
カメラ5からの信号を2値画像に変更してネジ1の原画
像を作成するとともに、原画像を1ピッチ分ネジの根元
側にシフトした後画像と原画像を反転させた反転画像と
を作成し、更に後画像及び反転画像の画像間のNOR演
算を行なう。
The general-purpose image processing device 6 is a device having a data processing function as a computer for processing image data and determining a defect of the screw 1. As shown in FIG. 5, an image signal input circuit 6b for inputting a signal from the CPU 5, image memories A and B for storing input image data, a RAMI 6c for storing a processing program and measured values, and determination data for determining a defect of the screw 1 ( RA for storing reference values (Pml, PtL)
It comprises an MII 6d, an input port 6e and an output port 6f for exchanging data with the electronic control unit 10, and a bus 6g for connecting them. In this device 6, the signal from the area camera 5 is changed to a binary image to create an original image of the screw 1, and after the original image is shifted by one pitch toward the screw root, the image and the original image are combined. An inverted image that has been inverted is created, and a NOR operation is performed between the subsequent image and the inverted image.

【0014】前記電子制御装置10は、ネジ欠陥検査装
置全体の制御を行なう装置であり、周知のCPU10
a、RAM10b、ROM10c、入力ポート10d、
出力ポート10e及びそれらを接続するバス10fから
なる。そして、この入力ポート10dは、汎用画像処理
装置6の出力ポート6fに接続されており、汎用画像処
理装置6でネジ1の良否が判定された結果を示す判定信
号が入力される。一方、出力ポート10eは、汎用画像
処理装置6の入力ポート6fに接続されており、汎用画
像処理装置6の処理を開始させるスタート信号が出力さ
れる。また、この出力ポート10eには、モータ駆動回
路18を介してモータ3が接続されて、モータ3の回転
速度等を制御するための制御信号が出力され、更に、ネ
ジ1を自動的に選別するためのネジ選別装置19に接続
されて、その制御信号が出力される。
The electronic control unit 10 is a device for controlling the entire screw defect inspection apparatus, and is a well-known CPU 10.
a, RAM 10b, ROM 10c, input port 10d,
It comprises an output port 10e and a bus 10f connecting them. The input port 10d is connected to the output port 6f of the general-purpose image processing device 6, and receives a determination signal indicating the result of the general-purpose image processing device 6 determining whether the screw 1 is good or bad. On the other hand, the output port 10e is connected to the input port 6f of the general-purpose image processing device 6, and outputs a start signal for starting the processing of the general-purpose image processing device 6. The motor 3 is connected to the output port 10e via a motor drive circuit 18 to output a control signal for controlling the rotation speed of the motor 3 and the like, and further, the screw 1 is automatically selected. And a control signal is outputted.

【0015】次に、前記構成のネジ検査装置の動作につ
いて、図4,図5に基づいて説明する。このうち、図4
は装置全体の処理を示すフローチャートであり、ステッ
プ110〜210が汎用画像処理装置6にて行われる処
理を示す。また、図5は作成される画像及び欠陥の検出
方法を示す説明図である。
Next, the operation of the screw inspection apparatus having the above-described configuration will be described with reference to FIGS. Figure 4
Is a flowchart showing processing of the entire apparatus, and shows processing performed by the general-purpose image processing apparatus 6 in steps 110 to 210. FIG. 5 is an explanatory diagram showing a method for detecting a created image and a defect.

【0016】まず、透過照明装置4からネジ1に光を照
射するとともに、その光をエリアカメラ5に受光する状
態で、図4のステップ100にて、モータ駆動回路18
に制御信号を出力して、ネジ1を一定速度で回転させる
処理を行なう。本実施例では、例えば1秒間に140゜
回転する様に制御する。
First, in the state where light is emitted from the transmitted illumination device 4 to the screw 1 and the light is received by the area camera 5, at step 100 in FIG.
To output a control signal to rotate the screw 1 at a constant speed. In this embodiment, for example, control is performed so as to rotate 140 ° per second.

【0017】次に、ステップ110にて、ネジ1の回転
中に、エリアカメラ5から汎用画像処理装置6に対し
て、まず1回目の画像入力を行なう。ステップ120で
は、汎用画像処理装置6にて、入力された画像の信号を
2値化して原画像を作成し、この原画像を画像メモリB
に記憶する。この画像メモリBに記憶された(打痕のあ
る)ネジ先端部分の原画像を模式的に図5(a)に示
す。
Next, at step 110, the first image input from the area camera 5 to the general-purpose image processing device 6 is performed while the screw 1 is rotating. In step 120, the general-purpose image processing device 6 binarizes the input image signal to create an original image, and stores the original image in the image memory B.
To memorize. FIG. 5A schematically shows an original image of a screw tip portion (having a dent) stored in the image memory B.

【0018】ステップ130では、画像メモリBに記憶
した原画像を白黒反転して、図5(b)に示す様な反転
画像(ネゲージパターン)を作成し、この反転画像を
画像メモリAに記憶する。ステップ140では、画像メ
モリBに記憶した原画像を、1ピッチ分下方(ネジ1の
根元側)へシフトして、図5(c)に示す様な後画像を
作成し、この後画像を再び画像メモリに記憶する。
[0018] At step 130, the original image stored in the image memory B and tone reversal, to create the FIG. 5 (b) to indicate such reversed image (screw gauge pattern), the reverse image in the image memory A Remember. In step 140, the original image stored in the image memory B is shifted downward by one pitch (toward the root of the screw 1), and a post-image as shown in FIG. 5C is created. Store in the image memory.

【0019】ステップ150では、図5(c)に示す様
に、画像メモリAに記憶した反転画像と画像メモリBに
記憶した後画像とを重ね合わせる。これによって、ネジ
1の打痕部分(欠陥部)が、反転画像と後画像との重な
り部分で表されることになる。具体的には、画像メモリ
間演算(A NOR B)を行なって、重なり部分(即
ち欠陥部)を抽出し、各欠陥部の面積を求める。
In step 150, the inverted image stored in the image memory A and the image stored in the image memory B are superimposed as shown in FIG. As a result, the dent portion (defect portion) of the screw 1 is represented by the overlapping portion between the inverted image and the subsequent image. Specifically, an inter-image memory operation (A NOR B) is performed to extract an overlapping portion (that is, a defective portion), and the area of each defective portion is obtained.

【0020】つまり、打痕等の欠陥のあるネジ1のシル
エットを反転した反転画像では、ネジ1の欠陥に相当す
る部分が同様なネ形状となるため、そのままの位置で
原画像と反転画像とを重ね合わせても欠陥部は抽出でき
ないが(図6参照)、ネジ1の原画像を1ピッチ分下方
にシフトした後で重ね合わせると、欠陥部がネジ1の良
品部分にシフトすることにより、両画像の重なり合う部
分がネジ1の欠陥として抽出できる様になるのである。
[0020] That is, the reverse image obtained by inverting the silhouette of the screw 1 with defects such as dents, for the portion corresponding to the defect of the screw 1 is similar screw shape, the original image and reverse image in situ Although the defective portion cannot be extracted by superimposing (see FIG. 6), when the original image of the screw 1 is shifted downward by one pitch and then superimposed, the defective portion is shifted to a non-defective portion of the screw 1. Thus, the overlapping portion of the two images can be extracted as a defect of the screw 1.

【0021】続く、ステップ160では、ノイズ除去を
行なって欠陥部を確定し、ステップ170では、確定し
た欠陥部である抽出塊のラベル付けを行なう。ステップ
180では、抽出塊の面積の大きい順から、1番目の抽
出塊の面積PIX(1)と2番目の抽出塊の面積PIX
(2)との面積和Pnを求める。尚、この様にして求め
られた1回目の面積和Pnの値は、何回目かを示すデー
タとともに各回別にRAMI6c等に記憶される。
In the following step 160, noise removal is performed to determine the defective portion, and in step 170, the extracted lump, which is the determined defective portion, is labeled. In step 180, the area PIX (1) of the first extracted lump and the area PIX of the second extracted
The area sum Pn with (2) is obtained. The value of the first area sum Pn thus obtained is stored in the RAM I6c or the like for each time together with data indicating the number of times.

【0022】ステップ190では、n=11か否かを判
定し、n=11でなければステップ110に戻って(次
の回の)面積和Pnを求める処理を行ない、1方n=1
1になればステップ200に進む。本実施例では、ネジ
1が1.5秒間に210°回転する間に、19°間隔に
て11回処理されるので、11回分の面積和Pnが算出
される。
In step 190, it is determined whether or not n = 11. If n = 11, the flow returns to step 110 to perform processing for obtaining the (next time) area sum Pn.
If it becomes 1, the routine proceeds to step 200. In the present embodiment, since the screw 1 is processed 11 times at 19 ° intervals while rotating the screw 1 at 210 ° for 1.5 seconds, the area sum Pn for 11 times is calculated.

【0023】ステップ200では、RAMI6cに記憶
された各面積和Pnのうち、最大値Pmを求めるととも
に、全て(11回分)の面積和Pnを積算したトータル
値Ptを求める。ステップ210では、面積和Pnの最
大値PmをRAMII6dに記憶されている基準値PmL
と比較し、最大値Pmが基準値PmL以上であれば、ネ
ジ1に打痕等の欠陥があると判定する。また、面積和P
nのトータル値Ptを同様にRAMII6dに記憶されて
いる基準値PtLと比較し、トータル値Ptが基準値P
tL以上であれば、ネジ1の一部が未加工であると判定
し、一旦本処理を終了する。尚、PmL<PtLである。
In step 200, the maximum value Pm is obtained from the area sums Pn stored in the RAMI 6c, and the total value Pt obtained by integrating all (11 times) area sums Pn is obtained. In step 210, the maximum value Pm of the area sum Pn is set to the reference value Pml stored in the RAM II 6d.
If the maximum value Pm is equal to or greater than the reference value PmL, it is determined that the screw 1 has a defect such as a dent. Also, the area sum P
n is compared with the reference value PtL similarly stored in the RAM II 6d, and the total value Pt is
If tL or more, it is determined that a part of the screw 1 is unprocessed, and the process is temporarily terminated. Note that PmL <PtL.

【0024】そして、この判定に基づいて、ネジ選別装
置19を駆動して、欠陥のあるネジ1と良好なネジ1と
を自動的に選別する。つまり、面積和Pnの最大値Pm
が基準値PmLより小さければ欠陥が僅かで問題がな
く、逆にそれ以上であれば欠陥があると判定される。ま
た、面積和Pnのトータル値Ptが基準値PtL以上で
あれば、全周にわたって欠陥があると見なされ、それは
未加工であると判断される。
Then, based on the determination, the screw selecting device 19 is driven to automatically select the defective screw 1 and the good screw 1. That is, the maximum value Pm of the area sum Pn
Is smaller than the reference value Pml, the defect is slight and there is no problem. If the total value Pt of the area sum Pn is equal to or more than the reference value PtL, it is determined that there is a defect over the entire circumference, and it is determined that the defect has not been processed.

【0025】この様に、本実施例では、原画像を作成す
るとともに、その反転画像及び1ピッチ分ずらした後画
像を作成し、反転画像と後画像とを比較して、両画像の
干渉部分の大きさから欠陥の有無を判定している。従っ
て、正確にかつ迅速にネジの打痕等の欠陥を検出するこ
とができるという顕著な効果を奏する。特に本実施例で
は、打痕等の欠陥を検出しにくいネジ先端面取部の欠陥
を確実に検出できるという特長がある。
As described above, in this embodiment, an original image is created, an inverted image thereof and an image shifted by one pitch are created, and the inverted image is compared with the succeeding image. The presence or absence of a defect is determined based on the size of. Therefore, there is a remarkable effect that a defect such as a dent of a screw can be detected accurately and quickly. In particular, the present embodiment has a feature that a defect in a chamfered portion of a screw tip where it is difficult to detect a defect such as a dent can be reliably detected.

【0026】また、この様に画像処理を行なうことによ
って、その原理上、打痕だけではなく、異物の付着やネ
ジの欠損の検出、更にはネジの一部未加工も検出するこ
とができる。また、本実施例では、従来の様に反射光を
用いるのではなく、ネジの輪郭形状そのものを用いて欠
陥によるはみ出しの状態を検出できるので、「ネジ入ら
ず」か否かを高い確度で事前に察知することができる。
Further, by performing image processing in this way, in principle, not only a dent but also the detection of the attachment of a foreign substance and the loss of a screw and the unprocessed part of a screw can be detected in principle. Further, in this embodiment, the state of protrusion due to a defect can be detected using the contour shape of the screw itself, instead of using reflected light as in the related art. Can be detected.

【0027】更に、自分自身の画像を、画像メモリ上で
シフトして重ねる処理を行なうために、画像を重ね合わ
せる際のずれ誤差が殆どないという利点がある。その
上、本実施例では、例えば画像のシフト,通常のNOR
論理演算,画像反転等の汎用の処理を使用できるので、
一般的な画像処理装置で済み装置構成が簡単になるとい
う特長がある。
Furthermore, since the process of shifting and overlaying the own image on the image memory is performed, there is an advantage that there is almost no shift error when overlapping the images. In addition, in this embodiment, for example, image shift, normal NOR
General-purpose processing such as logical operation and image inversion can be used.
It has a feature that the configuration of a general image processing apparatus is simplified.

【0028】尚、本発明は前記実施例に何等限定される
ことなく、本実施例の要旨を逸脱しない範囲内におい
て、各種の態様で実施できることは勿論である。例え
ば、前記実施例では、1ピッチ分下方にずらしたが、例
えば2ピッチ以上ずらしてもよい。
It should be noted that the present invention is not limited to the above-described embodiment, and can be carried out in various modes without departing from the gist of the present embodiment. For example, in the above-described embodiment, the shift is performed by one pitch, but may be shifted by two pitches or more.

【0029】また、面積和Pnを求める回数は、必要精
度に応じて任意に設定することが可能である。
The number of times of obtaining the area sum Pn can be arbitrarily set according to the required accuracy.

【0030】[0030]

【発明の効果】以上詳述した様に、本発明のネジ欠陥検
査装置では、後画像と反転画像とを比較し、両画像の干
渉状態に基づいてネジの欠陥を検出している。従って、
ネジの完全ネジ部だけでなく、特に打痕等の欠陥を検出
しにくいネジ先端面取部の欠陥を確実に検出できるとい
う顕著な効果を奏する。また、打痕だけでなく、異物の
付着,ネジの欠損及びネジの一部未加工も検出すること
ができる。
As described above in detail, the screw defect inspection apparatus according to the present invention compares a rear image with a reverse image and detects a screw defect based on the interference state between the two images. Therefore,
The remarkable effect that not only the complete thread portion of the screw but also the defect of the chamfered portion of the screw tip where it is difficult to detect a defect such as a dent can be surely detected. In addition to the dents, it is possible to detect the attachment of foreign matter, the loss of screws, and the unprocessed part of screws.

【0031】更に、従来の様な反射光を用いるのではな
く、ネジの輪郭形状そのものを用いて欠陥によるはみ出
しの状態を検出できるので、「ネジ入らず」か否かを高
い確度で事前に察知することができる。また、自分自身
の画像を、画像メモリ上でシフトして重ねる処理を行な
うために、画像を重ね合わせる際のずれ誤差が殆どない
という利点があるその上、本発明では、例えば画像のシ
フト,通常のNOR論理演算,画像反転等の汎用の処理
を使用できるので、一般的な画像処理装置で済み装置構
成が簡単になるという特長がある。
Furthermore, the state of protrusion due to a defect can be detected by using the contour shape of the screw itself instead of using the reflected light as in the prior art, so that it is possible to detect in advance whether or not "the screw does not enter" with high accuracy. can do. In addition, since the process of shifting the own image on the image memory and superimposing the image is performed, there is an advantage that there is almost no deviation error when the images are superimposed. Since general-purpose processing such as NOR logical operation and image inversion can be used, there is an advantage that the configuration of a general image processing apparatus can be simplified.

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

【図1】 本発明の基本的構成を例示する概略構成図で
ある。
FIG. 1 is a schematic configuration diagram illustrating a basic configuration of the present invention.

【図2】 実施例のネジ欠陥検査装置を示すシステム構
成図である。
FIG. 2 is a system configuration diagram illustrating a screw defect inspection device according to an embodiment.

【図3】 実施例の電気的構成を示すブロック図であ
る。
FIG. 3 is a block diagram showing an electrical configuration of the embodiment.

【図4】 画像処理等を示すフローチャートである。FIG. 4 is a flowchart illustrating image processing and the like.

【図5】 作成された各種の画像を示す説明図FIG. 5 is an explanatory view showing various images created.

【図6】 原画像と反転画像を組み合わせた状態を示す
説明図である。
FIG. 6 is an explanatory diagram showing a state in which an original image and a reverse image are combined.

【図7】 従来技術を示す説明図である。FIG. 7 is an explanatory diagram showing a conventional technique.

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

M1…原画像作成手段 M2…反転画像作成手
段 M3…後画像作成手段 M4…画像比較手段 M5…ネジ欠陥検査手段 1…ネジ 2…回転台 3…モータ 4…透過照明装置 5…エリアカメラ 6…汎用画像処理装置 7…モニター 10…電子制御装置
M1 ... Original image creation means M2 ... Reverse image creation means M3 ... Post-image creation means M4 ... Image comparison means M5 ... Screw defect inspection means 1 ... Screw 2 ... Rotary base 3 ... Motor 4 ... Transmission illumination device 5 ... Area camera 6 ... General-purpose image processing device 7 ... Monitor 10 ... Electronic control device

フロントページの続き (58)調査した分野(Int.Cl.6,DB名) G01B 11/00 - 11/30 G01B 21/00 - 21/30 G01N 21/84 - 21/91Continuation of the front page (58) Field surveyed (Int. Cl. 6 , DB name) G01B 11/00-11/30 G01B 21/00-21/30 G01N 21/84-21/91

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 ネジを撮影した画像を入力し、該画像に
基づいてネジの欠陥を検出するネジ欠陥検査装置におい
て、 前記ネジの原画像を画像情報として作成する原画像作成
手段と、 該原画像作成手段によって作成された原画像を反転し
て、ネジのネガ形状をなす反転画像を作成する反転画像
作成手段と、 前記原画像作成手段によって作成された原画像をネジの
軸方向に所定ピッチ分ずらして、ネジの後画像を作成す
る後画像作成手段と、 該後画像作成手段によって作成された後画像と前記反転
画像作成手段によって作成された反転画像とを重ね合わ
せて、両画像の干渉部分を求める画像比較手段と、 該画像比較手段によって得られた両画像の干渉部分に基
づいて、ネジの欠陥を検出するネジ欠陥検出手段と、 を備えたことを特徴とするネジ欠陥検査装置。
1. A screw defect inspection apparatus for inputting an image of a screw and detecting a screw defect based on the image, comprising: an original image creating means for creating an original image of the screw as image information; Inverting the original image created by the image creating means to create an inverted image forming a negative shape of the screw, a reversed image creating means, and converting the original image created by the original image creating means to the screw
A post-image creating unit that creates a post-image of the screw, shifted by a predetermined pitch in the axial direction, and superimposes the post-image created by the post-image creating unit and the inverted image created by the inverted image creating unit. Image comparing means for obtaining an interference portion between the two images, and screw defect detecting means for detecting a screw defect based on the interference portion between the two images obtained by the image comparing means. Screw defect inspection device.
JP5099566A 1993-04-26 1993-04-26 Screw defect inspection device Expired - Fee Related JP2768208B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5099566A JP2768208B2 (en) 1993-04-26 1993-04-26 Screw defect inspection device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5099566A JP2768208B2 (en) 1993-04-26 1993-04-26 Screw defect inspection device

Publications (2)

Publication Number Publication Date
JPH06307829A JPH06307829A (en) 1994-11-04
JP2768208B2 true JP2768208B2 (en) 1998-06-25

Family

ID=14250689

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5099566A Expired - Fee Related JP2768208B2 (en) 1993-04-26 1993-04-26 Screw defect inspection device

Country Status (1)

Country Link
JP (1) JP2768208B2 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AU2003280760A1 (en) * 2003-11-12 2004-06-06 Kabushiki Kaisha Koe Etec Male thread visual testing device
JP5079562B2 (en) * 2008-03-24 2012-11-21 株式会社ハーモニック・ドライブ・システムズ Contour shape measurement method
KR101230985B1 (en) * 2010-02-03 2013-02-07 주식회사 서울금속 Apparatus for Examining External of Object
CN105004275A (en) * 2015-07-21 2015-10-28 苏州佳祺仕信息科技有限公司 Threaded hole three-CCD camera detection mechanism
KR102104800B1 (en) * 2019-10-15 2020-04-28 이상윤 Screw hole iaspectioa system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5419366A (en) * 1977-07-14 1979-02-14 Nippon Jidoseigyo Ltd Device for inspecting fault of pattern
JPS6176941A (en) * 1984-09-21 1986-04-19 Nippon Denso Co Ltd Method and device for inspecting appearance failure of screw

Also Published As

Publication number Publication date
JPH06307829A (en) 1994-11-04

Similar Documents

Publication Publication Date Title
JP2904069B2 (en) Method for inspecting appearance of spherical object and inspection apparatus therefor
KR960013357B1 (en) Image data inspecting method and apparatus
WO2021250986A1 (en) Inspection device, inspection method, and inspection program
JP2768208B2 (en) Screw defect inspection device
US6807288B2 (en) Image processing apparatus, image processing method, and recording medium recording image processing program
JPH10132537A (en) Method for inspecting part surface having u-shaped groove form
JP2001070455A (en) Method for inspecting pattern width of stent surface
JP3265595B2 (en) Image processing method and apparatus
JPH0535379B2 (en)
JP3160743B2 (en) LCD panel defect inspection equipment
JP2844727B2 (en) Inspection method for gear teeth
JPH02186247A (en) Optical inspecting device
JP2536727B2 (en) Pattern inspection device
JP3218875B2 (en) Three-dimensional object shape inspection device
JP4965495B2 (en) Method and apparatus for inspecting screws
JP2756738B2 (en) Apparatus for visual inspection of semiconductor devices
JPH04265812A (en) Evaluating method of quality of gear tooth contact
JP3283866B2 (en) Circuit pattern defect inspection method and apparatus
JPH01207878A (en) Contour inspection device
JP2003098117A (en) Apparatus for detecting defect of image and its defect detection method
JPH01214743A (en) Optical apparatus for checking
JPH06331327A (en) Inspection of cream solder printing state
JP2531694B2 (en) Method for detecting holes in the soldering part
JP3146399B2 (en) Gear inspection equipment
JP3090121B2 (en) Micro-defect detection method and device

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees