JPH11166898A - Device and method for inspecting rod for flaw - Google Patents

Device and method for inspecting rod for flaw

Info

Publication number
JPH11166898A
JPH11166898A JP9333128A JP33312897A JPH11166898A JP H11166898 A JPH11166898 A JP H11166898A JP 9333128 A JP9333128 A JP 9333128A JP 33312897 A JP33312897 A JP 33312897A JP H11166898 A JPH11166898 A JP H11166898A
Authority
JP
Japan
Prior art keywords
flaw
rod
density difference
pixel
pixels
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP9333128A
Other languages
Japanese (ja)
Inventor
Shigeki Danshita
茂樹 段下
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.)
Showa Corp
Original Assignee
Showa 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 Showa Corp filed Critical Showa Corp
Priority to JP9333128A priority Critical patent/JPH11166898A/en
Publication of JPH11166898A publication Critical patent/JPH11166898A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To accurately detect any linear, shallow flaw, such as a spiral flaw (circumferentially extending flaw) on the surface of a rod, and to determine with high accuracy whether or not the rod is defective according to the size of the flaw. SOLUTION: As a rod 5 serving as a subject for inspection is rotated, the surface of the rod 5 is photographed with a one-dimensional CCD camera 21 and data about the image of its overall peripheral surface are stored in an image memory 32. A flaw pixel detecting part 34 detects those pixels which are in proximity to each other in the direction of the axis of the rod and which differ in density (difference of brightness) by more than a flaw detection threshold as flaw pixels. A density difference (detection threshold) changing part 33 for detecting flaws adjusts the detection threshold so that a predetermined number or more of flaws can be detected. A flaw pixel grouping part 35 groups flaw pixels within a predetermined pixel interval in the direction of the axis, and then groups flaw pixels within the predetermined pixel interval in the circumferential direction to extract a linear flaw. A defective judging part 36 determines whether or not the rod 5 is defective by comparing the size (length, area, etc.) of the linear flaw with a criterion for defectives.

Description

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

【0001】[0001]

【発明の属する技術分野】この発明は、ショックアブソ
ーバ等に用いられるシリンダ・ロッド等の円筒形物体の
表面についた傷を画像処理を利用して検出し、良否判定
を行なうロッド傷検査装置およびロッド傷検査方法に係
り、詳しくは、ロッド表面の螺旋傷を検出できるように
したロッド傷検査装置およびロッド傷検査方法に関する
ものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a rod flaw inspection apparatus and a rod flaw detection apparatus for detecting flaws on the surface of a cylindrical object such as a cylinder or rod used in a shock absorber or the like by using image processing to judge pass / fail. The present invention relates to a flaw inspection method, and more particularly, to a rod flaw inspection apparatus and a rod flaw inspection method capable of detecting a spiral flaw on a rod surface.

【0002】[0002]

【従来の技術】特開昭49−129585号公報には、
緩回転するロッド上に一母線に沿ってレーザ光を走査さ
せ、その反射光を光検知器で受光することで、ロッド表
面の傷を光電的に検出する技術が記載されている。ま
た、受光にあたっては、ロッド面に対する正反射方向で
受光する明視野法(傷が暗黒部として検出される)、ま
たは、正反射方向と異なる方向で受光する暗視野法(傷
が明光部として検出される)のいずれも採用できること
が記載されている。
2. Description of the Related Art JP-A-49-129585 discloses that
A technique is described in which a laser beam is scanned along a generatrix on a slowly rotating rod, and the reflected light is received by a photodetector to photoelectrically detect a flaw on the rod surface. When receiving light, a bright-field method in which light is received in the specular reflection direction with respect to the rod surface (scratch is detected as a dark area) or a dark-field method in which light is received in a direction different from the specular reflection direction (scratch is detected as a bright light area) ) Can be adopted.

【0003】特開昭50−75086号公報には、ロッ
ドに対設した低倍率の顕微鏡対物レンズでロッド表面の
像を撮像管の撮像面上に結像させ、ロッドを軸心まわり
に回転させながら対物レンズを軸方向へ移動させること
により、ロッド全表面を螺旋状に走査して、ロッド表面
の傷を撮像管によるビデオ信号として検出する技術が記
載されている。
[0003] Japanese Patent Application Laid-Open No. 50-75086 discloses an image of a rod surface formed on an imaging surface of an imaging tube by a low-magnification microscope objective lens opposed to the rod, and the rod is rotated around an axis. While the objective lens is moved in the axial direction, the entire surface of the rod is spirally scanned to detect a flaw on the rod surface as a video signal from an imaging tube.

【0004】特開平4−12257号公報には、走行す
る鋼板に予想される線状疵の発生方向に対して斜めに視
野をもつ一次元CCDカメラを鋼板に対向して配置し、
CCDカメラから鋼板表面に対しての走査信号を所定の
間隔で順次出力すると共に、出力された走査信号間の差
をとって各走査に対応する差信号を作成し、順次作成さ
れる差信号から基準値を越える信号を欠陥信号として抽
出するとともに、欠陥信号が走査間隔毎に実質上一定の
ピッチで鋼板の幅方向に順次移動することから欠陥信号
の連続性を判定し、線状疵の検出を行なうようにした鋼
板の線状疵の検出技術が記載されている。
Japanese Patent Application Laid-Open No. 4-1257 / 1992 discloses that a one-dimensional CCD camera having a visual field oblique to a direction in which a linear flaw is expected to be generated on a running steel sheet is disposed to face the steel sheet.
Scanning signals for the surface of the steel sheet are sequentially output from the CCD camera at predetermined intervals, and a difference between the output scanning signals is calculated to generate a difference signal corresponding to each scan. A signal exceeding the reference value is extracted as a defect signal, and the defect signal sequentially moves in the width direction of the steel sheet at a substantially constant pitch at each scanning interval, thereby determining the continuity of the defect signal and detecting a linear flaw. A technique for detecting a linear flaw in a steel sheet is described.

【0005】特開平5−180777号公報には、円筒
形状の被検査体を回転させ、被検査体の外周表面を軸方
向に複数分割した画像情報をテレビカメラで取込み、各
分割画像情報の輝度成分を加算し、加算された輝度成分
が所定のしきい値を越える部分に欠陥があるものと判定
するようにした円筒形物体の外観検査装置が記載されて
いる。
[0005] Japanese Patent Application Laid-Open No. 5-180777 discloses a technique in which a cylindrical object to be inspected is rotated, image information obtained by dividing the outer peripheral surface of the object into a plurality of parts in an axial direction is taken in by a television camera, and the luminance of each divided image information is obtained. There is described an appearance inspection apparatus for a cylindrical object in which components are added and a portion where the added luminance component exceeds a predetermined threshold value is determined to be defective.

【0006】[0006]

【発明が解決しようとする課題】被検査面からの反射光
を光電変換して得た被検査面の画像情報に基づいて、被
検査面の傷を検査する技術が種々提案されている。しか
しながら、従来の技術は、被検査面の画像情報(例えば
濃度値や輝度値)が基準値(しきい値)を越えた部分を
傷として検出し、検出した傷の個数や傷の面積に基づい
て良否判定を行なうものである。
Various techniques have been proposed for inspecting a surface to be inspected for flaws based on image information of the surface to be inspected obtained by photoelectrically converting reflected light from the surface to be inspected. However, the conventional technology detects a portion where image information (for example, density value or luminance value) of a surface to be inspected exceeds a reference value (threshold value) as a flaw, and determines based on the number of detected flaws and a flaw area. The pass / fail judgment is made.

【0007】ショックアブソーバ等に用いられるシリン
ダ・ロッドでは、ロッドの表面加工時(バニッシング)
に砥石の傷等によって螺旋状の傷がつくことがある。傷
となった部分には凹部と凸部が形成される。ショックア
ブソーバでは、シリンダ・ロッドの表面に凸部がある
と、凸部によってオイルシールに傷やクラックが発生
し、オイル漏れの原因になることがある。このため、ロ
ッド表面の螺旋状の傷を検出して良否判定を行なう必要
があるが、従来の傷検査技術では、螺旋状の傷を的確に
検出して良否判定を行なうことが困難であった。
For cylinders and rods used in shock absorbers, etc., when the surface of the rod is processed (burnishing)
In some cases, spiral scratches may be formed due to scratches on the grindstone. A concave portion and a convex portion are formed in the damaged portion. In the case of the shock absorber, if the surface of the cylinder / rod has a protrusion, the protrusion may cause a scratch or a crack in the oil seal, which may cause oil leakage. For this reason, it is necessary to detect the spiral flaw on the rod surface and make the quality judgment. However, with the conventional flaw inspection technology, it was difficult to accurately detect the spiral flaw and make the quality judgment. .

【0008】例えば、従来の検査装置で、浅い傷を検出
できるように基準値(しきい値)を低く設定すると(傷
の検出感度を高く設定すると)、螺旋状の傷以外に浅い
点状の傷が全て検出されてしまい、浅い点状の傷の検出
結果に基づいて不良の判定を行なってしまう。そこで、
深い点状の傷のみが検出できるように基準値(しきい
値)を高めに設定すると(傷の検出感度を低く設定する
と)、浅い螺旋傷が検出できない。
For example, when a reference value (threshold) is set low (when the detection sensitivity of a flaw is set high) so that a shallow flaw can be detected by a conventional inspection apparatus, a shallow spot-like besides a spiral flaw can be detected. All the scratches are detected, and a defect is determined based on the detection result of the shallow dot-like scratches. Therefore,
If the reference value (threshold) is set high (if the flaw detection sensitivity is set low) so that only deep point flaws can be detected, shallow spiral flaws cannot be detected.

【0009】この発明はこのような課題を解決するため
なされたもので、ロッド表面に付いた螺旋状の傷を的確
に検出して良否判定を行なうことのできるロッド傷検査
装置およびロッド傷検査方法を提供することを目的とす
る。
The present invention has been made to solve such a problem, and a rod flaw inspection apparatus and a rod flaw inspection method capable of accurately detecting a spiral flaw on a rod surface and making a quality judgment. The purpose is to provide.

【0010】[0010]

【課題を解決するための手段】前記課題を解決するため
この発明に係るロッド傷検査装置は、ロッドとロッド周
表面を撮像する撮像部とを相対的に移動させながらロッ
ドの全周に亘ってロッド表面を撮像する撮像装置と、撮
像部から出力されるロッド表面の画像信号を画像データ
へ変換するA/D変換器と、A/D変換された画像デー
タを記憶する画像メモリと、画像データに基づいてロッ
ド軸方向に近接する画素間で濃度差(輝度差)が予め設
定した傷検出用濃度差値(傷検出用しきい値)を越えた
画素を傷として検出する傷画素検出部と、傷として検出
された画素の間隔が予め設定した画素間隔以内であるも
のをグループ化する傷画素グループ化部と、グループ化
された傷画素群の幅,長さ,画素数と予め設定した良否
判定基準とを比較して良否判定を行なう良否判定部とを
備えてなる。
In order to solve the above-mentioned problems, a rod flaw inspection apparatus according to the present invention moves over the entire circumference of a rod while relatively moving the rod and an imaging unit for imaging the peripheral surface of the rod. An imaging device for imaging the rod surface, an A / D converter for converting an image signal of the rod surface output from the imaging unit into image data, an image memory for storing A / D-converted image data, and image data A flaw pixel detection unit for detecting, as a flaw, a pixel whose density difference (luminance difference) between pixels adjacent in the rod axis direction exceeds a preset flaw detection density difference value (flaw detection threshold) based on A flaw pixel grouping unit for grouping pixels in which the distance between pixels detected as flaws is within a predetermined pixel interval; and the width, length, number of pixels of the grouped flaw pixel groups and a predetermined quality Compare with criteria Comprising a quality judgment unit for judging acceptability Te.

【0011】なお、傷として検出された画素の画素数が
予め設定した基準数に達しない場合には、傷検出用濃度
差値(傷検出用しきい値)をより小さな値へ変更する傷
検出濃度差値変更部を備えるようにしてもよい。
When the number of pixels detected as flaws does not reach the preset reference number, the flaw detection density difference value (flaw detection threshold value) is changed to a smaller value. A density difference value changing unit may be provided.

【0012】また、傷画素検出部は、ロッド軸方向に2
画素離れた画素間の濃度差(輝度差)が予め設定した傷
検出用濃度差値(傷検出用しきい値)を越えた場合は濃
度差傾き係数を1とし、ロッド軸方向に1画素離れた画
素間の濃度差が予め設定した傷検出用濃度差値を越えた
場合は濃度差傾き係数を2とし、傷検出濃度差値変更部
は、濃度差係数の累積値が予め設定した基準累積値に達
しない場合には、前記傷検出用濃度差値をより小さな値
へ変更するようにしてもよい。
In addition, the flaw pixel detecting section is provided with two in the rod axis direction.
If the density difference (luminance difference) between the pixels separated from each other exceeds a preset density difference value for flaw detection (fault detection threshold value), the density difference gradient coefficient is set to 1 and the pixel is separated by one pixel in the rod axis direction. If the density difference between the detected pixels exceeds a preset density difference value for flaw detection, the density difference gradient coefficient is set to 2, and the flaw detection density difference value changing unit determines that the cumulative value of If the value does not reach the value, the density difference value for flaw detection may be changed to a smaller value.

【0013】この発明に係るロッド傷検査方法は、ロッ
ドとロッドの周表面を撮像する撮像部とを相対的に移動
させながらロッドの全周面に亘ってロッド表面を撮像
し、ロッド表面の画像信号を画像データへ変換して画像
メモリに一時記憶させた後に、ロッド軸方向に近接する
画素間で濃度差(輝度差)が予め設定した傷検出用濃度
差値(傷検出用しきい値)を越えた画素を傷として検出
し、次に、傷として検出された画素の間隔が予め設定し
た画素間隔以内であるものをグループ化して線状傷を検
出し、次に、検出された線状傷の幅,長さ,面積と予め
設定した良否判定基準とを比較して良否判定を行なうこ
とを特徴とする。
According to the rod flaw inspection method of the present invention, the rod surface is imaged over the entire peripheral surface of the rod while relatively moving the rod and an imaging unit for imaging the peripheral surface of the rod, and an image of the rod surface is obtained. After the signal is converted into image data and temporarily stored in the image memory, the density difference (luminance difference) between the pixels adjacent in the rod axis direction is a preset density difference value for flaw detection (flaw detection threshold value). Pixels that exceed the threshold value are detected as flaws, and then, pixels that are detected as flaws within a predetermined pixel interval are grouped to detect linear flaws. The quality is determined by comparing the width, length, and area of the flaw with a predetermined quality determination standard.

【0014】なお、傷として検出された画素の画素数が
予め設定した基準数に達しない場合には、傷検出用濃度
差値(傷検出用しきい値)をより小さな値へ変更するこ
とで傷の検出感度を変更するようにしてもよい。
If the number of pixels detected as flaws does not reach the preset reference number, the flaw detection density difference value (flaw detection threshold value) is changed to a smaller value. The flaw detection sensitivity may be changed.

【0015】さらに、ロッド軸方向に2画素離れた画素
間の濃度差が予め設定した傷検出用濃度差値を越えた場
合は濃度差傾き係数を1とし、ロッド軸方向に1画素離
れた画素間の濃度差が予め設定した傷検出用濃度差値を
越えた場合は濃度差傾き係数を2とし、濃度差係数の累
積値が予め設定した基準累積値に達しない場合には、傷
検出用濃度差値(傷検出用しきい値)をより小さな値へ
変更することで傷の検出感度を変更するようにしてもよ
い。
Further, when the density difference between the pixels separated by two pixels in the rod axis direction exceeds a preset density difference value for flaw detection, the density difference gradient coefficient is set to 1, and the pixels separated by one pixel in the rod axis direction are set. If the density difference between the two exceeds the preset density difference value for flaw detection, the density difference slope coefficient is set to 2, and if the cumulative value of the density difference coefficient does not reach the preset reference cumulative value, The flaw detection sensitivity may be changed by changing the density difference value (flaw detection threshold value) to a smaller value.

【0016】この発明に係るロッド傷検査装置およびロ
ッド傷検査方法は、ロッド軸方向に近接する画素間での
濃度差(輝度差)に基づいて傷の判定を行なうので、ロ
ッド表面の反射係数や照明光の強度変化等によって検出
画像の濃度が変化した場合でも、傷を的確に検出でき
る。また、撮像部の視野範囲の周辺で画像が暗くなるの
を補正(いわゆるシェージング補正)しなくても、傷を
的確に検出できる。
In the rod flaw inspection apparatus and the rod flaw inspection method according to the present invention, the determination of a flaw is made based on the density difference (luminance difference) between pixels adjacent in the rod axis direction. Even when the density of the detected image changes due to a change in the intensity of the illumination light or the like, the flaw can be accurately detected. Further, the flaw can be accurately detected without correcting the darkening of the image around the visual field range of the imaging unit (so-called shading correction).

【0017】ロッド軸方向の濃度差(輝度差)に基づい
て傷として検出された各画素の間隔が予め設定した画素
間隔以内であるものをグループ化するので、このグルー
プ化によって螺旋状の線状傷を抽出することができる。
そして、検出された線状傷の幅,長さ,面積に基づいて
良否判定を行なう。よって、ロッド表面に浅い点状の傷
がある場合でも、点状傷と線状傷とを区別することがで
き、線状傷に基づいた正確な良否判断ができる。
The pixels whose intervals between pixels detected as flaws are within a predetermined pixel interval based on the density difference (luminance difference) in the rod axis direction are grouped. Wounds can be extracted.
Then, a pass / fail judgment is made based on the width, length, and area of the detected linear scratch. Therefore, even if there is a shallow point-like flaw on the rod surface, the point-like flaw and the linear flaw can be distinguished, and accurate pass / fail judgment can be made based on the linear flaw.

【0018】また、この発明に係るロッド傷検査装置お
よびロッド傷検査方法は、傷として検出された画素の画
素数が予め設定した基準数に達しない場合には、傷検出
用濃度差値(傷検出用しきい値)をより小さな値へ変更
して、傷の検出処理を繰り返すことができる。よって、
深くかつ長い線状傷がある場合には、速やかに不良と判
定することができるともに、浅い線状傷についても確実
に検出することができる。また、ロッド全周面の撮像画
像中から傷として検出される画素数が基準数に達するよ
うに傷検出用濃度差値を自動設定することができる。よ
って、グループ化の精度を良好に保つことができ、線状
傷を精度良く検出することができる。
Further, in the rod flaw inspection apparatus and the rod flaw inspection method according to the present invention, when the number of pixels detected as flaws does not reach a preset reference number, the flaw detection density difference value (flaw detection) The flaw detection process can be repeated by changing the detection threshold value to a smaller value. Therefore,
When there is a deep and long linear flaw, it can be quickly determined to be defective, and a shallow linear flaw can be reliably detected. Further, the density difference value for flaw detection can be automatically set so that the number of pixels detected as flaws in the captured image of the entire peripheral surface of the rod reaches the reference number. Therefore, the grouping accuracy can be kept good, and the linear flaw can be detected with high accuracy.

【0019】さらに、この発明に係るロッド傷検査装置
およびロッド傷検査方法は、ロッド軸方向に2画素離れ
た画素間の濃度差(輝度差)が予め設定した傷検出用濃
度差値(傷検出用しきい値)を越えた場合は濃度差傾き
係数を1とし、ロッド軸方向に1画素離れた画素間の濃
度差が予め設定した傷検出用濃度差値を越えた場合は濃
度差傾き係数を2として、傷画素の検出に重み付けを行
ない、濃度差係数の累積値が予め設定した基準累積値に
達しない場合には、傷検出用濃度差値(傷検出用しきい
値)をより小さな値へ変更して傷画素の検出を繰り返す
ようにしたので、傷部分を的確に抽出できるように傷検
出用濃度差値を自動設定することができる。隣接画素間
で濃度差(輝度差)が大きい部分は傷である確率が大き
いので、隣接画素間で傷検出用濃度差値(傷検出用しき
い値)を越えた場合は重み付け係数を高くすることで、
傷部分を的確に検出できる検出感度を設定することがで
きる。よって、検出感度が必要以上に高く設定され、傷
でないノイズ部分を傷として誤検出することを防止する
ことができる。
Further, in the rod flaw inspection apparatus and the rod flaw inspection method according to the present invention, the density difference (luminance difference) between the pixels separated by two pixels in the rod axis direction is a preset density difference value for flaw detection (flaw detection). If the density difference exceeds the threshold value, the density difference gradient coefficient is set to 1. If the density difference between pixels separated by one pixel in the rod axis direction exceeds a preset density difference value for flaw detection, the density difference gradient coefficient is set to 1. Is set to 2, and the detection of the flaw pixel is weighted. If the cumulative value of the density difference coefficient does not reach the preset reference cumulative value, the flaw detection density difference value (flaw detection threshold value) is set to a smaller value. Since the detection of the flaw pixel is repeated by changing to the value, the density difference value for flaw detection can be automatically set so that the flaw portion can be accurately extracted. Since a portion where the density difference (luminance difference) between adjacent pixels is large is likely to be a flaw, when the density difference value for flaw detection between adjacent pixels exceeds a flaw detection threshold value, the weighting coefficient is increased. By that
It is possible to set a detection sensitivity at which a flaw can be accurately detected. Therefore, the detection sensitivity is set higher than necessary, and it is possible to prevent erroneous detection of a non-scratch noise portion as a scratch.

【0020】[0020]

【発明の実施の形態】以下この発明の実施の形態を添付
図面に基づいて説明する。図1はこの発明に係るロッド
傷検査装置のブロック構成図である。この発明に係るロ
ッド傷検査装置1は、撮像装置2と、画像処理装置3
と、画像表示装置4とからなる。
Embodiments of the present invention will be described below with reference to the accompanying drawings. FIG. 1 is a block diagram of a rod flaw inspection apparatus according to the present invention. A rod flaw inspection device 1 according to the present invention includes an imaging device 2 and an image processing device 3
And an image display device 4.

【0021】撮像装置2は、撮像部21と、照明用光源
22と、撮像制御部23と、回動機構部24とを備え
る。撮像部21は、1次元CCDカメラを用いて構成し
ている。撮像部21は、検査対象であるロッド5の軸方
向を視野にして、ロッド5に対向させて配置している。
照明用光源22は、ロッド5の軸方向に均一な照明光を
照射できるように線状光源を用いている。回動機構部2
4は、図示しないロッド装着部に装着されたロッド5を
保持するとともに、撮像制御部23から供給される回動
指令信号23aに基づいてロッド5をその軸心まわりに
回動させる。
The imaging device 2 includes an imaging unit 21, an illumination light source 22, an imaging control unit 23, and a rotation mechanism unit 24. The imaging unit 21 is configured using a one-dimensional CCD camera. The imaging unit 21 is disposed to face the rod 5 with the axial direction of the rod 5 to be inspected as a visual field.
As the illumination light source 22, a linear light source is used so that uniform illumination light can be emitted in the axial direction of the rod 5. Rotating mechanism 2
4 holds the rod 5 mounted on a rod mounting unit (not shown), and rotates the rod 5 around its axis based on a rotation command signal 23a supplied from the imaging control unit 23.

【0022】撮像制御部23は、画像処理装置3から画
像取込指令信号37aが供給されると、撮像部21の撮
像動作と回動機構部24の回動動作を制御して、ロッド
5の全周の表面画像を撮像する。撮像制御部23は、撮
像部制御情報23bを撮像部21へ供給することで、撮
像部21の撮像タイミングと撮像された画像信号(1ラ
イン分の画像信号)21aの出力タイミングを制御する
とともに、画像信号(1ライン分の画像信号)の出力に
先立って出力タイミング信号23cを画像処理装置3へ
供給する。撮像制御部23は、1ライン分の撮像ならび
に画像信号21aの出力が完了すると、回動指令信号2
3aを回動機構部24へ供給してロッド5を所定角度回
動させる。撮像制御部23は、ロッド表面の撮像ならび
にロッド5の回動を順次繰り返すことで、ロッド5の全
周に亘って表面画像を撮像する。
When the image capturing command signal 37a is supplied from the image processing device 3, the image capturing control unit 23 controls the image capturing operation of the image capturing unit 21 and the rotating operation of the rotating mechanism unit 24, and The whole surface image is captured. The imaging control unit 23 supplies the imaging unit control information 23b to the imaging unit 21, thereby controlling the imaging timing of the imaging unit 21 and the output timing of the image signal (image signal for one line) 21a. The output timing signal 23c is supplied to the image processing device 3 prior to the output of the image signal (image signal for one line). When the imaging of one line and the output of the image signal 21a are completed, the imaging control unit 23
3a is supplied to the rotation mechanism 24 to rotate the rod 5 by a predetermined angle. The imaging control unit 23 captures a surface image over the entire circumference of the rod 5 by sequentially repeating imaging of the rod surface and rotation of the rod 5.

【0023】本実施の形態では、撮像部21に3000
画素の1次元CCDカメラを用いて、ロッド5の軸方向
全長が3000画素となる画像を得るようにしている。
また、ロッド5を1.8度ずつ回動させるようにしてい
る。これにより、ロッド5の全周面が、3000画素×
200画素となる画像を得るようにしている。なお、撮
像画像の画素数ならびにロッド5の回転角度は、検出す
べき傷の大きさや検出分解能に応じて適宜設定すること
ができる。また、本実施の形態では、撮像部21に撮像
レンズ系を有するCCDカメラを用いる構成を示した
が、密着型のイメージセンサをロッド表面の近傍に配置
して、ロッド表面の画像を得るようにしてもよい。さら
に、本実施の形態ではロッド5を回動させる構成を示し
たが、撮像部21をロッド表面から所定の距離を保って
回転移動させることで、全周面の画像を得るようにして
もよい。ロッド5と撮像部21とを互いに逆方向へ回動
させるようにしてもよい。なお、撮像部21を回動させ
る場合は、撮像部21と照明用光源22との位置関係を
一定の関係に保ったまま回動させる。また、ロッド5を
所定の速度で連続的に回転させておき、所定の時間間隔
で撮像を繰り返すことで、ロッド全周の画像を得るよう
にしてもよい。
In the present embodiment, 3000
Using a one-dimensional CCD camera with pixels, an image is obtained in which the entire length of the rod 5 in the axial direction is 3000 pixels.
Further, the rod 5 is rotated by 1.8 degrees. As a result, the entire peripheral surface of the rod 5 becomes 3000 pixels ×
An image having 200 pixels is obtained. Note that the number of pixels of the captured image and the rotation angle of the rod 5 can be appropriately set according to the size of a flaw to be detected and the detection resolution. Further, in the present embodiment, a configuration in which a CCD camera having an imaging lens system is used for the imaging unit 21 has been described. However, a close contact type image sensor is arranged near the rod surface to obtain an image of the rod surface. You may. Furthermore, although the configuration in which the rod 5 is rotated has been described in the present embodiment, an image of the entire peripheral surface may be obtained by rotating the imaging unit 21 while maintaining a predetermined distance from the rod surface. . The rod 5 and the imaging unit 21 may be rotated in opposite directions. When the imaging unit 21 is rotated, the imaging unit 21 is rotated while maintaining the positional relationship between the imaging unit 21 and the illumination light source 22 in a fixed relationship. Alternatively, an image of the entire circumference of the rod may be obtained by continuously rotating the rod 5 at a predetermined speed and repeating the imaging at predetermined time intervals.

【0024】図2は照明用光源と撮像部との位置関係の
一例を示す説明図である。本実施の形態では、ロッド5
の表面の法線方向に対して所定の入射角度θ1で照明光
源22からの照明光を照射し、正反射方向(入射角θ1
と出射角θ2とが等しくなる方向)とは異なる方向(例
えばロッド5の表面の法線方向)に撮像部21を配置し
てロッド表面を撮像するようにしている。なお、正反射
方向に撮像部21を配置するようにしてもよい。ロッド
表面に傷があると反射光の反射角度が変化するので(傷
による乱反射が生ずるので)、撮像部21の受光量が変
化する。これにより、撮像画像に濃淡変化(輝度変化)
が生ずるので、撮像画像の濃淡変化(輝度変化)に基づ
いて傷の検出を行なうことができる。
FIG. 2 is an explanatory diagram showing an example of the positional relationship between the illumination light source and the image pickup unit. In the present embodiment, the rod 5
The illumination light from the illumination light source 22 is irradiated at a predetermined incident angle θ1 with respect to the normal direction of the surface of
The imaging unit 21 is arranged in a direction (for example, a direction normal to the surface of the rod 5) different from the direction in which the angle θ2 and the emission angle θ2 are equal to each other to image the rod surface. Note that the imaging unit 21 may be arranged in the regular reflection direction. If there is a scratch on the rod surface, the reflection angle of the reflected light changes (due to the irregular reflection caused by the scratch), so that the amount of light received by the imaging unit 21 changes. This allows the captured image to change in shading (change in brightness)
Is generated, it is possible to detect a flaw based on a change in shading (change in brightness) of a captured image.

【0025】図1に示すように、画像処理部3は、A/
D変換器31と、画像メモリ(フレームメモリ)32
と、傷検出用濃度差値変更部33と、傷画素検出部34
と、傷画素グループ化部35と、良否判定部36と、画
像取込制御部37と、良否判定基準値格納部38と、操
作部39と、表示制御部40とを備える。なお、画像処
理部3は、画像入力ボード等を備えたパーソナルコンピ
ュータと画像処理プログラムとで構成することができ
る。
As shown in FIG. 1, the image processing unit 3
D converter 31 and image memory (frame memory) 32
A density difference value changing unit 33 for flaw detection, and a flaw pixel detection unit 34
A defect pixel grouping unit 35, a pass / fail determination unit 36, an image capture control unit 37, a pass / fail determination reference value storage unit 38, an operation unit 39, and a display control unit 40. Note that the image processing unit 3 can be constituted by a personal computer having an image input board and the like and an image processing program.

【0026】A/D変換器31は、撮像部21から出力
される画像信号21aを各画素毎にA/D変換して、ロ
ッド表面の画像信号を画像データ31aへ変換する。本
実施の形態では、撮像部21に白黒用のCCDカメラを
用いるとともに、A/D変換器31に分解能8ビットの
ものを用いて、256階調の濃淡画像データ(輝度デー
タ)31aを得るようにしている。本実施の形態では、
撮像部21から出力される画像信号21aをA/D変換
器31へ直接入力する構成を示したが、A/D変換器3
1の前段にアナログ信号処理部を設け、このアナログ信
号処理部によって画像信号21aを増幅するとともに直
流レベル(平均出力レベル)を補正して、画像信号21
aのダイナミックレンジ(画像信号の電圧の最小値と最
大値)がA/D変換器31の入力電圧範囲になるように
した画像信号を生成し、生成した画像信号をA/D変換
器31へ入力するようにしてもよい。このような構成を
とることにより、傷等による反射光量の微少な変化を検
出することができ、検出分解能を向上させることができ
る(傷の検出能力を高めることができる)。画像データ
31aは画像メモリ32に供給されて、画像メモリ32
に一時記憶される。
The A / D converter 31 A / D converts the image signal 21a output from the imaging unit 21 for each pixel, and converts the image signal on the rod surface into image data 31a. In this embodiment, a monochrome CCD camera is used for the imaging unit 21 and a gray-scale image data (luminance data) 31a of 256 gradations is obtained by using an A / D converter 31 having a resolution of 8 bits. I have to. In the present embodiment,
The configuration in which the image signal 21a output from the imaging unit 21 is directly input to the A / D converter 31 has been described.
An analog signal processing unit is provided in a stage preceding the analog signal processing unit 1, and the image signal 21 a is amplified and the DC level (average output level) is corrected by the analog signal processing unit.
An image signal is generated so that the dynamic range a (the minimum value and the maximum value of the voltage of the image signal) falls within the input voltage range of the A / D converter 31, and the generated image signal is sent to the A / D converter 31. You may make it input. With such a configuration, a minute change in the amount of reflected light due to a flaw or the like can be detected, and the detection resolution can be improved (the flaw detection capability can be improved). The image data 31a is supplied to the image memory 32,
Is temporarily stored.

【0027】画像取込制御部37は、操作部39から検
査開始要求39aが供給されると、画像取込指令信号3
7aを撮像制御部23へ供給して、ロッド表面の撮像を
開始させる。画像取込制御部37は、撮像制御部23か
ら供給される出力タイミング信号23cに基づいて画像
の取込みタイミングを制御する。画像取込制御部37
は、A/D変換タイミングクロック信号37bをA/D
変換器31へ供給することで、画像信号21aを各画素
毎に対応してA/D変換させるとともに、書き込みアド
レス情報37cを画像メモリ32へ順次供給すること
で、各画素毎に対応した画像データ31aが所定のアド
レスに書き込まれるようにする。これにより、画像メモ
リ32に、ロッド5の軸方向を主走査方向とし、ロッド
の回動方向を副走査方向とする濃淡画像データ(輝度デ
ータ)からなる多値(256階調)画像が格納される。
When the inspection start request 39a is supplied from the operation section 39, the image capture control section 37 outputs the image capture command signal 3
7a is supplied to the imaging control unit 23 to start imaging the rod surface. The image capture control unit 37 controls the image capture timing based on the output timing signal 23c supplied from the imaging control unit 23. Image capture control unit 37
Converts the A / D conversion timing clock signal 37b into an A / D signal.
The image signal 21a is A / D-converted for each pixel by supplying it to the converter 31, and the write address information 37c is sequentially supplied to the image memory 32, so that the image data corresponding to each pixel is provided. 31a is written to a predetermined address. Thus, the image memory 32 stores a multi-valued (256 gradation) image composed of grayscale image data (luminance data) in which the axial direction of the rod 5 is the main scanning direction and the rotating direction of the rod is the sub-scanning direction. You.

【0028】図3は画像メモリに格納されたロッド表面
画像の説明図である。図3に示すように、ロッド5の全
周の表面画像は、軸方向(X方向)が例えば3000画
素、ロッドの周方向(Y方向)が例えば200画素(2
00ライン)で、各画素が256階調の濃度データ(輝
度データ)からなる画像情報として、画像メモリ32に
一時記憶される。
FIG. 3 is an explanatory view of the rod surface image stored in the image memory. As shown in FIG. 3, the surface image of the entire circumference of the rod 5 has, for example, 3000 pixels in the axial direction (X direction) and 200 pixels in the circumferential direction (Y direction) of the rod 5 (2 pixels).
(00 line), each pixel is temporarily stored in the image memory 32 as image information composed of density data (luminance data) of 256 gradations.

【0029】図1に示す傷検出用濃度差値変更部33
は、傷検出用濃度差値33aの初期値として比較的大き
な値(例えば10)を傷画素検出部34へ供給する。傷
画素検出部34は、画像メモリ32から軸方向1ライン
分の濃度データを読み出して、読み出した濃度データを
傷画素検出部34内の濃度データ記憶部に一時記憶させ
るとともに、ロッド軸方向に近接する画素間で濃度差が
予め設定した傷検出用濃度差値を越えた画素を傷として
検出する。なお、傷画素検出部34内に1ライン分の濃
度データを一時記憶する濃度データ記憶部を設けずに、
傷画素検出部34は、画像メモリ32から濃度データを
逐次読み出しながら、傷画素を検出するようにしてもよ
い。
The density difference value changing unit 33 for flaw detection shown in FIG.
Supplies a relatively large value (for example, 10) to the flaw pixel detection unit 34 as an initial value of the flaw detection density difference value 33a. The flaw pixel detection unit 34 reads the density data of one line in the axial direction from the image memory 32, temporarily stores the read density data in the density data storage unit in the flaw pixel detection unit 34, and reads the density data in the rod axis direction. Pixels whose density difference exceeds the preset density difference value for flaw detection are detected as flaws. Note that, without providing a density data storage unit for temporarily storing density data for one line in the flaw pixel detection unit 34,
The flaw pixel detection unit 34 may detect flaw pixels while sequentially reading density data from the image memory 32.

【0030】図4は傷画素検出部における傷検出処理の
説明図である。図4(b)は軸方向1ライン分の濃度デ
ータ(濃度値)の一例を示している。なお、図4(b)
では軸方向の数画素分(11画素分)について示してい
る。図4(a)は濃度値(輝度値)の変化をわかりやす
くするためにグラフとして示したものである。図4
(a)において、縦軸は濃度値(輝度値)、横軸は画素
番号(軸方向の位置に相当)である。傷画素検出部34
は、着目画素とその1つ前の画素と濃度値を比較して、
濃度が傷検出用濃度差値(例えば10)以上増加してい
る場合は、着目画素を傷画素と判定するとともに、1つ
前の画素に対して濃度が傷検出用濃度差値(例えば1
0)以上増加している場合は、濃度差傾き係数を2とす
る。傷画素検出部34は、着目画素とその2つ前の画素
との濃度値を比較して、濃度が傷検出用濃度差値(例え
ば10)以上増加している場合は、着目画素を傷画素と
判定するとともに、2つ前の画素に対して濃度が傷検出
用濃度差値(例えば10)以上増加している場合は、濃
度差傾き係数を1とする。図4(c)は、検出された濃
度差傾き係数を画素位置との対応を付けて示したもので
ある。
FIG. 4 is an explanatory diagram of the flaw detection processing in the flaw pixel detection unit. FIG. 4B shows an example of density data (density value) for one line in the axial direction. FIG. 4 (b)
In the figure, several pixels (11 pixels) in the axial direction are shown. FIG. 4A is shown as a graph for easy understanding of a change in density value (luminance value). FIG.
In (a), the vertical axis represents the density value (luminance value), and the horizontal axis represents the pixel number (corresponding to the position in the axial direction). Scratched pixel detection unit 34
Compares the density value of the pixel of interest with the immediately preceding pixel,
If the density increases by more than the density difference value for flaw detection (for example, 10), the pixel of interest is determined to be a flaw pixel, and the density of the previous pixel is higher than the density difference value for flaw detection (for example, 1).
0) In the case of the increase, the density difference gradient coefficient is set to 2. The flaw pixel detection unit 34 compares the density value of the pixel of interest with the pixel immediately before the pixel of interest, and if the density increases by a density difference value for flaw detection (for example, 10) or more, sets the pixel of interest to the flaw pixel. Is determined, and the density difference slope coefficient is set to 1 if the density has increased by more than the density difference value for flaw detection (for example, 10) with respect to the two pixels immediately before. FIG. 4C shows the detected density difference slope coefficient in association with the pixel position.

【0031】このように、傷画素検出部34は、ロッド
軸方向に濃度が増加する変化に基づいてロッド表面の傷
を検出する。なお、傷によって生ずる濃度変化は、明る
くなる変化と暗くなる変化とがあるが、これらの変化は
図4(a)に示すように対としてあるので、本実施の形
態では濃度(輝度)が増加する変化にのみ着目して傷の
検出を行なうようにしている。なお、濃度(輝度)が増
加変化ではなく、濃度(輝度)の減少変化に基づいて傷
を検出するようにしてもよい。また、濃度変化(輝度変
化)の増加および減少の両方を検出するようにしてもよ
い。
As described above, the flaw pixel detection unit 34 detects a flaw on the rod surface based on a change in which the density increases in the rod axis direction. The density change caused by the flaw includes a change in brightness and a change in darkness. Since these changes are paired as shown in FIG. 4A, the density (luminance) increases in this embodiment. The flaw detection is performed by paying attention only to the change that occurs. Note that the flaw may be detected based on a decrease in the density (luminance) instead of an increase in the density (luminance). Further, both an increase and a decrease in the density change (the luminance change) may be detected.

【0032】傷画素検出部34は、1つ前の画素からの
濃度増加変化値が傷検出用濃度差値を越えている場合は
その画素を傷画素とするとともに濃度差傾き係数を2と
し、傷画素の座標データ(Xn,Yn)と濃度差傾き係
数とを、傷画素検出部34内の傷検出結果記憶部に格納
する。傷画素検出部34は、1つ前の画素からの濃度増
加変化値が傷検出用濃度差値を越えていない場合は、2
つ前の画素からの濃度増加変化値が傷検出用濃度差値を
越えているか否かの判断を行ない、越えている場合は濃
度差傾き係数を1し、傷画素の座標データ(Xn,Y
n)と濃度差傾き係数とを、傷画素検出部34内の傷検
出結果記憶部に格納する。傷画素検出部34は、軸方向
での傷検出処理を軸方向の全ての画素について行なう。
但し、軸方向の最初の画素(X0)については処理を行
なわず、2番目の画素(X1)についてはその前の画素
(X0)との比較のみを行なう。傷画素検出部34は、
1ライン毎での軸方向における傷検出処理を全てのライ
ンをついて行なう。
If the density increase change value from the immediately preceding pixel exceeds the density difference value for flaw detection, the flaw pixel detection unit 34 sets that pixel as a flaw pixel and sets the density difference gradient coefficient to 2, The coordinate data (Xn, Yn) of the flaw pixel and the density difference gradient coefficient are stored in the flaw detection result storage section in the flaw pixel detection section 34. If the density increase change value from the immediately preceding pixel does not exceed the density difference value for flaw detection, the flaw pixel detection unit 34
A determination is made as to whether the density increase change value from the immediately preceding pixel exceeds the density difference value for flaw detection, and if so, the density difference gradient coefficient is set to 1 and coordinate data (Xn, Y
n) and the density difference slope coefficient are stored in the flaw detection result storage section in the flaw pixel detection section 34. The flaw pixel detection unit 34 performs flaw detection processing in the axial direction for all pixels in the axial direction.
However, no processing is performed on the first pixel (X0) in the axial direction, and only the comparison with the previous pixel (X0) is performed on the second pixel (X1). The scratch pixel detection unit 34
A flaw detection process in the axial direction for each line is performed for all lines.

【0033】図5は傷画素検出部による傷検出結果を示
す説明図である。図5(a)は、濃度差傾き係数が2と
して検出された傷画素と、濃度差傾き係数が1として検
出された傷画素とが混在する例を示している。図5
(b)は、濃度差傾き係数が2として検出された傷画素
のみが存在する例を示している。なお、図5において
は、濃度差傾き係数が2として検出された画素を黒塗り
で示し、濃度差傾き係数が1として検出された画素をハ
ッチングで示している。
FIG. 5 is an explanatory diagram showing the result of flaw detection by the flaw pixel detection unit. FIG. 5A shows an example in which a flaw pixel detected with a density difference gradient coefficient of 2 and a flaw pixel detected with a density difference gradient coefficient of 1 coexist. FIG.
(B) shows an example in which only a flaw pixel detected as having a density difference slope coefficient of 2 exists. In FIG. 5, pixels detected as having a density difference gradient coefficient of 2 are shown in black, and pixels detected as having a density difference gradient coefficient of 1 are shown as hatched.

【0034】図1に示す傷検出用濃度差値変更部33
は、傷画素検出部34によって傷として検出された全て
の画素について濃度差傾き係数34aの総和を求める。
傷検出用濃度差値変更部33は、濃度差傾き係数の総和
が1000以下である場合は、傷検出用濃度差値33a
が高すぎてロッド表面の傷を的確に検出できていないも
のと判断し、傷検出用濃度差値33aを初期値よりも低
い値に変更して、傷画素検出部34に再度傷検出処理を
行なわせる。傷検出用濃度差値変更部33は、濃度差傾
き係数の総和が1000を越えている場合には、傷画素
グループ化開始要求情報33bを傷画素グループ化部3
5へ供給して、傷画素グループ化を開始させる。
The flaw detection density difference value changing unit 33 shown in FIG.
Calculates the sum of the density difference gradient coefficients 34a for all the pixels detected as flaws by the flaw pixel detection unit 34.
When the sum of the density difference gradient coefficients is 1000 or less, the flaw detection density difference value changing unit 33 a
Is determined to be too high to detect the flaw on the rod surface properly, the flaw detection density difference value 33a is changed to a value lower than the initial value, and the flaw pixel detection unit 34 performs the flaw detection processing again. Let them do it. When the sum of the density difference gradient coefficients exceeds 1000, the flaw detection density difference value changing unit 33 transmits the flaw pixel grouping start request information 33b to the flaw pixel grouping unit 3.
5 to start flaw pixel grouping.

【0035】傷検出用濃度差値変更部33は、濃度差傾
き係数の総和が100を越え1000以下である場合に
は、傷検出用濃度差値33aを1レベル低下させる。す
なわち、傷検出用濃度差値33aを初期値の10から9
へ変更する。傷検出用濃度差値変更部33は、濃度差傾
き係数の総和が10を越え100以下である場合には、
傷検出用濃度差値33aを2レベル低下させる。すなわ
ち、傷検出用濃度差値33aを初期値の10から8へ変
更する。傷検出用濃度差値変更部33は、濃度差傾き係
数の総和が10以下である場合には、傷検出用濃度差値
33aを5レベル低下させる。すなわち、傷検出用濃度
差値33aを初期値の10から5へ変更する。
When the sum of the density difference gradient coefficients is more than 100 and not more than 1000, the flaw detection density difference value changing unit 33 lowers the flaw detection density difference value 33a by one level. That is, the density difference value 33a for flaw detection is changed from the initial value of 10 to 9
Change to When the sum of the density difference gradient coefficients is more than 10 and 100 or less,
The density difference value 33a for flaw detection is reduced by two levels. That is, the density difference value 33a for flaw detection is changed from the initial value of 10 to 8. When the sum of the density difference gradient coefficients is 10 or less, the flaw detection density difference value changing unit 33 lowers the flaw detection density difference value 33a by five levels. That is, the density difference value 33a for flaw detection is changed from the initial value of 10 to 5.

【0036】そして、傷検出用濃度差値変更部33は、
先の傷画素検出処理によって検出された傷画素の濃度差
傾き係数の総和に基づいて新たに設定した傷検出用濃度
差値33aを傷画素検出部34へ供給して、傷画素検出
部34に新たに設定した傷検出用濃度差値33aに基づ
く傷画素検出処理を行なわせる。傷検出用濃度差変更部
33は、新たに設定した傷検出用濃度差値33aに基づ
く傷画素検出処理がなされた結果、濃度差傾き係数の総
和が1000を越えた場合には、傷画素グループ化開始
要求情報33bを傷画素グループ化部35へ供給して、
傷画素グループ化を開始させる。傷検出用濃度差変更部
33は、新たに設定した傷検出用濃度差値33aに基づ
く傷画素検出処理がなされた結果、濃度差傾き係数の総
和が1000以下である場合には、傷検出用濃度差値の
変更を濃度差傾き係数の総和が1000を越えるまで繰
り返す。
The flaw detection density difference value changing unit 33
The density difference value 33a for flaw detection newly set based on the sum of the density difference gradient coefficients of the flaw pixels detected by the previous flaw pixel detection processing is supplied to the flaw pixel detection unit 34, and is transmitted to the flaw pixel detection unit 34. A flaw pixel detection process based on the newly set flaw detection density difference value 33a is performed. If the sum of the density difference gradient coefficients exceeds 1000 as a result of the flaw pixel detection processing based on the newly set flaw detection density difference value 33a, the flaw detection density difference changing unit 33 Supply of the conversion start request information 33b to the damaged pixel grouping unit 35,
Start the wound pixel grouping. If the sum of the density difference gradient coefficients is 1000 or less as a result of the flaw pixel detection processing based on the newly set flaw detection density difference value 33a, The change of the density difference value is repeated until the sum of the density difference gradient coefficients exceeds 1000.

【0037】なお、本実施の形態では、傷として検出さ
れた画素の濃度差傾き係数の総和に基づいて傷検出用濃
度差値を最適化する処理を示したが、傷として検出され
た画素の総数が所定画素数以上となるように傷検出用濃
度差値を最適化するようにしてもよい。
In the present embodiment, the processing for optimizing the density difference value for flaw detection based on the sum of the density difference gradient coefficients of the pixels detected as flaws has been described. The density difference value for flaw detection may be optimized so that the total number is equal to or more than the predetermined number of pixels.

【0038】傷画素グループ化部35は、傷検出用濃度
差値変更部33から傷画素グループ化開始要求情報33
bが供給されると、傷画素検出部34内の傷検出結果記
憶部に格納されている傷画素の座標データ(Xn,Y
n)34bを全て読み込んで、傷画素のグループ化を行
なう。
The flaw pixel grouping section 35 receives the flaw pixel grouping start request information 33 from the flaw detection density difference value changing section 33.
When b is supplied, the coordinate data (Xn, Y) of the flaw pixel stored in the flaw detection result storage unit in the flaw pixel detection unit 34
n) Read all 34b and group the damaged pixels.

【0039】図6は傷画素グループ化部におけるグルー
プ化処理の説明図である。傷画素グループ化部35は、
まず軸方向(X方向)についてグループ化を行なった後
に、周方向(Y方向)についてグループ化を行なう。図
6(a)は軸方向におけるグループ範囲を示している。
軸方向(X方向)については、傷画素(傷として検出さ
れた画素)から軸方向(X方向)に±5画素以内にある
他の傷画素をグループ化する。
FIG. 6 is an explanatory diagram of the grouping process in the flaw pixel grouping unit. The scratch pixel grouping unit 35
First, after grouping in the axial direction (X direction), grouping is performed in the circumferential direction (Y direction). FIG. 6A shows a group range in the axial direction.
In the axial direction (X direction), other flaw pixels within ± 5 pixels in the axial direction (X direction) from the flaw pixel (pixel detected as flaw) are grouped.

【0040】全ライン(全ての軸方向)について、傷画
素のグループ化が完了した後に、周方向(Y方向)へ±
5ライン(画素)の範囲内に他の傷画素または他の傷画
素グループが存在する場合には、それぞれの傷画素また
は傷画素グループの軸方向位置のずれが±1画素範囲内
であれば同一の傷グループとしてグループ化する。この
周方向のグループ化を全周(全ライン)に亘って行な
う。
After the grouping of the flawed pixels is completed for all the lines (all the axial directions), ± in the circumferential direction (the Y direction)
When another defective pixel or another defective pixel group exists within the range of 5 lines (pixels), the same if the displacement of each defective pixel or defective pixel group in the axial direction is within ± 1 pixel range. Group as a wound group. This circumferential grouping is performed over the entire circumference (all lines).

【0041】図6(b)は軸方向でのグループ化がなさ
れなかった場合(傷画素数=1)における周方向でのグ
ループ化範囲を示している。この場合は、黒塗りで示し
た傷画素から±5ラインの範囲で軸方向位置のずれが±
1画素となる範囲、すなわち、ハッチング示した範囲に
ある傷画素がグループ化される。図6(c)は軸方向に
11画素に亘ってグループされた傷グループに対する周
方向でのグループ化範囲を示している。この場合は、黒
塗りで示した傷画素グループから±5ラインの範囲で、
軸方向位置のずれがグループ化された傷範囲からさらに
軸方向へ1画素ずれた範囲にある傷画素がグループ化さ
れる。
FIG. 6B shows a grouping range in the circumferential direction when the grouping in the axial direction is not performed (the number of flawed pixels = 1). In this case, the deviation of the axial position within ± 5 lines from the damaged pixel shown in black is ±
Damaged pixels in a range of one pixel, that is, a range indicated by hatching are grouped. FIG. 6C shows the grouping range in the circumferential direction with respect to the flaw groups grouped over 11 pixels in the axial direction. In this case, within a range of ± 5 lines from the damaged pixel group shown in black,
Flawed pixels whose axial position shifts by one pixel further in the axial direction from the grouped flaw range are grouped.

【0042】図7は傷画素グループ化部における他のグ
ループ化処理の説明図である。傷画素グループ化部35
は、傷画素(傷として検出された画素)から軸方向(X
方向)に±5画素以内、周方向(Y方向)に±5画素以
内にある他の傷画素をグループ化するようにしてもよ
い。なお、図6および図7では濃度差傾き係数の値に関
係なく傷画素を黒塗りで示している。また、グループ化
の対象となる範囲をハッチングで示している。
FIG. 7 is an explanatory diagram of another grouping process in the flaw pixel grouping unit. Wound pixel grouping unit 35
Indicates the distance from the scratch pixel (pixel detected as a scratch) in the axial direction (X
Other flawed pixels that are within ± 5 pixels in the (direction) and ± 5 pixels in the circumferential direction (Y direction) may be grouped. In FIGS. 6 and 7, the damaged pixel is shown in black regardless of the value of the density difference gradient coefficient. The range to be grouped is indicated by hatching.

【0043】傷画素グループ化部35は、図6または図
7に示したグループ化処理を繰り返すことで、所定範囲
内にある傷画素を順次グループ化していく。傷画素グル
ープ化部35は、新たにグループ化した傷画素の周辺に
グループ化対象となる傷画素がなくなると、一連のグル
ープ化によって得られた傷画素グループにラベル名を付
与するとともに、グループ化された傷画素のすべての位
置座標をラベル名との対応を付けて、傷画素グループ化
部35内の傷画素グループ記憶部に格納する。傷画素グ
ループ化部35は、グループ化がなされていない他の傷
画素についてグループ化処理を施す。このグループ化処
理によって、線状傷の抽出がなされる。
The defective pixel grouping unit 35 sequentially groups defective pixels within a predetermined range by repeating the grouping process shown in FIG. 6 or FIG. When there are no more flawed pixels to be grouped around the newly grouped flawed pixels, the flawed pixel grouping unit 35 assigns a label name to the flawed pixel group obtained by a series of grouping, and performs grouping. The position coordinates of all the damaged pixels thus created are stored in the damaged pixel group storage unit in the damaged pixel grouping unit 35 in association with the label names. The damaged pixel grouping unit 35 performs a grouping process on other damaged pixels that have not been grouped. By this grouping process, a linear flaw is extracted.

【0044】ロッド表面の全範囲に亘ってグループ化処
理が完了すると、傷画素グループ化部35は、傷グルー
プ毎に線状傷の軸方向の長さ(幅)と線状傷の周方向の
長さと、線状傷の面積を求める。
When the grouping process is completed over the entire range of the rod surface, the flaw pixel grouping unit 35 sets the axial length (width) of the linear flaw and the circumferential direction of the linear flaw for each flaw group. Determine the length and area of the linear wound.

【0045】図8はグループ化された傷画素群(線状
傷)の一例を示す説明図である。図8はグループ化処理
によって2つの線状傷(ラベルA,ラベルB)が抽出さ
れた例を示している。傷画素グループ化部35は、グル
ープ化された各画素の位置座標から、軸方向座標(X座
標)の最大値と軸方向座標(X座標)の最小値との差を
とることで線状傷の軸方向の長さ(幅)を求め、周方向
座標(Y座標)の最大値と周方向座標(Y座標)の最小
値との差をとることで線状傷の周方向の長さを求め、さ
らに、グループした傷画素の総画素数を線状傷の面積と
する。
FIG. 8 is an explanatory diagram showing an example of a group of flawed pixels (linear flaws). FIG. 8 shows an example in which two linear flaws (label A and label B) are extracted by the grouping process. The flaw pixel grouping unit 35 calculates the difference between the maximum value of the axial coordinates (X coordinate) and the minimum value of the axial coordinates (X coordinate) from the position coordinates of each grouped pixel to obtain a linear flaw. The axial length (width) of the linear flaw is determined by calculating the difference between the maximum value of the circumferential coordinate (Y coordinate) and the minimum value of the circumferential coordinate (Y coordinate). Then, the total number of the scratched pixels in the group is defined as the area of the linear scratch.

【0046】図1に示した傷画素グループ化部35は、
線状傷の幅,長さ,面積の各データ35aをラベル名と
の対応を付けて良否判定部36へ供給する。良否判定部
36は、傷画素グループ化部35によって抽出された線
状傷の大きさ(幅,長さ,面積)と良否判定基準値格納
部38に格納されている線状傷の良否判定基準値38a
とを比較することで良否判定を行なう。本実施の形態で
は、線状傷の幅,長さ,面積のそれぞれが許容値(許容
幅,許容長さ,許容面積)を越えたものを不良と判定す
るようにしている。なお、線状傷の幅,長さ,面積のい
ずれかが許容値を越えたものを不良と判定するようにし
てもよい。また、線状傷の幅,長さ,面積のそれぞれが
許容値(許容幅,許容長さ,許容面積)を越えていない
場合でも、検出された線状傷の総数が許容数を越えた場
合には、不良と判定するようにしてもよい。
The flaw pixel grouping unit 35 shown in FIG.
The data 35a of the width, length and area of the linear flaw are supplied to the pass / fail judgment unit 36 in association with the label name. The pass / fail determination unit 36 determines the size (width, length, area) of the linear flaw extracted by the flaw pixel grouping unit 35 and the pass / fail judgment criteria of the linear flaw stored in the pass / fail determination reference value storage unit 38. Value 38a
Is determined by comparing with. In the present embodiment, a linear flaw whose width, length, and area each exceed an allowable value (allowable width, allowable length, allowable area) is determined to be defective. It should be noted that any of the linear flaws whose width, length, or area exceeds an allowable value may be determined to be defective. In addition, even if the width, length, and area of the linear scratch do not exceed the allowable values (allowable width, allowable length, and allowable area), the total number of detected linear scratches exceeds the allowable number. May be determined to be defective.

【0047】良否判定結果36aは表示制御部40へ供
給される。表示制御部40は、良否判定結果36aを画
像表示装置4へ表示させる。画像表示装置4は、CRT
ディスプレイ装置や液晶表示装置等を用いて構成してい
る。表示制御部40は、画像表示装置4の画面上に操作
メニューを表示させることで、画像取込の開始要求を入
力させたり、良否判定基準値の設定や表示画像の選択切
り替え等の各種の操作要求を入力できるようにしてい
る。表示制御部40は、良否判定基準値の設定モードが
指定されると良否判定基準値を入力するためのメニュー
画面を表示させて、良否判定基準値の入力を促す。操作
部39から入力された良否判定基準値39bは良否判定
基準値格納部38に格納されるとともに、入力された良
否判定基準値39bが画像表示装置4の画面に表示され
る。良否判定基準値格納部38は、不揮発性メモリまた
は電池等で電源がバックアップされたメモリを用いて構
成しており、入力された良否判定基準値39bを保持す
る。
The pass / fail judgment result 36a is supplied to the display control unit 40. The display control unit 40 causes the image display device 4 to display the pass / fail judgment result 36a. The image display device 4 is a CRT
It is configured using a display device, a liquid crystal display device, or the like. The display control unit 40 displays an operation menu on the screen of the image display device 4 to input a start request for image capture, set a pass / fail determination reference value, and perform various operations such as selection switching of a display image. Makes it possible to enter requests. When the pass / fail judgment reference value setting mode is designated, the display control unit 40 displays a menu screen for inputting the pass / fail judgment reference value, and prompts the user to input the pass / fail judgment reference value. The pass / fail judgment reference value 39b input from the operation unit 39 is stored in the pass / fail judgment reference value storage unit 38, and the input pass / fail judgment reference value 39b is displayed on the screen of the image display device 4. The pass / fail judgment reference value storage unit 38 is configured using a nonvolatile memory or a memory whose power supply is backed up by a battery or the like, and holds the input pass / fail judgment reference value 39b.

【0048】表示制御部40は、操作部39からロッド
表面画像の表示要求39cが供給されると、画像メモリ
32に格納されている画像データ32aに基づいて、ロ
ッド表面の濃淡画像を生成して、画像表示装置4の画面
に表示させる。表示制御部40は、操作部39からスク
ロール要求39cに基づいてロッド表面の濃淡画像をス
クロール表示させる。表示制御部40は、濃淡画像の代
りに擬似カラー画像表示を行なうようにしてもよい。
When a display request 39c for the rod surface image is supplied from the operation unit 39, the display control unit 40 generates a grayscale image of the rod surface based on the image data 32a stored in the image memory 32. Is displayed on the screen of the image display device 4. The display control unit 40 scrolls and displays the grayscale image of the rod surface based on the scroll request 39c from the operation unit 39. The display control unit 40 may display a pseudo color image instead of the grayscale image.

【0049】表示制御部40は、操作部39から傷画素
検出結果の表示要求39cが供給されると、傷画素検出
部34内の傷検出結果記憶部に格納されている傷画素の
座標データ(Xn,Yn)および濃度差傾き係数34c
に基づいて傷画素位置ならびに濃度差傾き係数の擬似カ
ラー表示画像を生成し、画像表示装置4の画面上に傷画
素の検出結果を擬似カラー表示させる。
When the display control section 40 is supplied with the display request 39c of the defect pixel detection result from the operation section 39, the coordinate data of the defect pixel stored in the defect detection result storage section in the defect pixel detection section 34 ( Xn, Yn) and density difference slope coefficient 34c
, A pseudo color display image of the position of the flaw pixel and the density difference gradient coefficient is generated, and the detection result of the flaw pixel is displayed on the screen of the image display device 4 in a pseudo color.

【0050】表示制御部40は、操作部39から傷画素
グループ化処理結果の表示要求39cが供給されると、
傷画素グループ化部35内の傷画素グループ記憶部に格
納されている情報35bに基づいて、傷画素のグループ
化画像(線状傷画像)を生成し、画像表示装置4の画面
上に表示させる。なお、表示制御部40は、良否判定部
36から不良の判定結果とともに不良と判定された傷画
素グループのラベル名の供給を受け、不良と判定された
傷画素のグループ化画像(線状傷画像)と位置情報,線
状傷の幅,長さ,面積等の情報を不良の判定結果ととも
に画像表示装置4の画面上に表示させるようにしてもよ
い。
When the display control section 40 is supplied with the display request 39c of the result of the processing for grouping the defective pixels from the operation section 39,
Based on the information 35b stored in the flaw pixel group storage section in the flaw pixel grouping section 35, a flaw pixel grouped image (linear flaw image) is generated and displayed on the screen of the image display device 4. . The display control unit 40 receives the defect determination result from the pass / fail determination unit 36 and the label name of the defective pixel group determined to be defective, and obtains a grouped image of the defective pixels determined to be defective (linear scratch image). ), Position information, and information such as the width, length, and area of the linear flaw may be displayed on the screen of the image display device 4 together with the result of the defect determination.

【0051】図9はロッド傷検査装置ならびにロッド傷
検査方法の動作ならびに処理を示すフローチャートであ
る。検査対象となるロッド5が撮像装置2内に装着され
た状態で、操作部39から検査開始要求39aが入力さ
れると、撮像部21による撮像と回動機構部24による
ロッド回動とが同期してなされ、ロッド5の全周面に亘
って表面画像の撮像がなされる。撮像された画像信号2
1aは、A/D変換器31でA/D変換された後に、画
像メモリ32に格納される。これにより、ロッド全周面
の表面画像の入力が完了する(ステップS1)。
FIG. 9 is a flowchart showing the operation and processing of the rod flaw inspection apparatus and rod flaw inspection method. When an inspection start request 39a is input from the operation unit 39 in a state where the rod 5 to be inspected is mounted in the imaging device 2, the imaging by the imaging unit 21 and the rod rotation by the rotation mechanism unit 24 are synchronized. Then, a surface image is captured over the entire peripheral surface of the rod 5. Image signal 2 captured
1 a is A / D converted by the A / D converter 31 and then stored in the image memory 32. Thus, the input of the surface image of the entire peripheral surface of the rod is completed (step S1).

【0052】表面画像の入力(画像取込)が完了する
と、傷画素検出部34によって軸方向(X方向)におけ
る画素間での濃度差(輝度差)変化量が傷検出用濃度差
値(傷検出用しきい値)を越えている画素が傷として検
出される。全ての軸方向(全てのライン)について軸方
向(X方向)での傷検出処理がなされると(ステップS
2)、傷検出用濃度差値変更部33によって傷として検
出された画素の濃度差傾き係数の総和が求められ、また
は、傷として検出された画素の総画素数が求められる
(ステップS3)。傷検出用濃度差値変更部33は、傷
として検出された画素の濃度差傾き係数の総和、また
は、傷として検出された画素の総画素数が所定条件に達
してしない場合には、傷検出用濃度差値(傷検出用しき
い値)を下げる(ステップS4)。傷画素検出部34
は、変更された傷検出用濃度差値(傷検出用しきい値)
に基づいて軸方向(X方向)での傷検出処理を再度行な
う。(ステップS2)。
When the input of the front surface image (image capture) is completed, the amount of change in density difference (luminance difference) between pixels in the axial direction (X direction) is determined by the flaw pixel detection unit 34. Pixels exceeding the detection threshold are detected as flaws. When flaw detection processing in the axial direction (X direction) is performed for all axial directions (all lines) (Step S)
2) The sum of the density difference gradient coefficients of the pixels detected as flaws by the flaw detection density difference value changing unit 33 is obtained, or the total number of pixels detected as flaws is obtained (step S3). The density difference value changing unit 33 for flaw detection detects the sum of the density difference gradient coefficients of the pixels detected as flaws or the flaw detection when the total number of pixels detected as flaws does not reach a predetermined condition. The density difference value for use (threshold for flaw detection) is lowered (step S4). Scratched pixel detection unit 34
Is the changed density difference value for flaw detection (flaw detection threshold value)
, The flaw detection process in the axial direction (X direction) is performed again. (Step S2).

【0053】ステップS3で、傷として検出された画素
の濃度差傾き係数の総和、または、傷として検出された
画素の総画素数が所定条件に達したことが確認される
と、ステップS5で、傷画素グループ化部35によって
軸方向(X方向)で所定の画素間隔以内にある傷画素の
グループ化がなされる。次にステップS6で、周方向
(Y方向)で所定の画素間隔以内にある傷画素または傷
画素群のグループ化がなされる。ステップS5ならびに
ステップS6でのグループ化によって線状傷が抽出され
る。傷画素グループ化部35は、グループ化によって抽
出した線状傷の大きさ(幅,長さ,面積)を求める(ス
テップS7)。良否判定部36は、抽出された線状傷の
大きさ(幅,長さ,面積)と良否判定基準値(許容幅,
許容長さ,許容面積)とを比較して、良否判定を行なう
(ステップS8)。
If it is confirmed in step S3 that the sum of the density difference gradient coefficients of the pixels detected as flaws or the total number of pixels detected as flaws has reached a predetermined condition, in step S5 The defective pixel grouping unit 35 groups defective pixels within a predetermined pixel interval in the axial direction (X direction). Next, in step S6, the flawed pixels or flawed pixel groups within the predetermined pixel interval in the circumferential direction (Y direction) are grouped. Linear flaws are extracted by the grouping in step S5 and step S6. The flaw pixel grouping unit 35 calculates the size (width, length, area) of the linear flaw extracted by the grouping (step S7). The pass / fail determination unit 36 determines the size (width, length, area) of the extracted linear scratch and a pass / fail determination reference value (allowable width,
(Permissible length, permissible area) to determine the quality (step S8).

【0054】[0054]

【発明の効果】以上説明したようにこの発明に係るロッ
ド傷検査装置およびロッド傷検査方法は、ロッド軸方向
に近接する画素間での濃度差に基づいて傷の判定を行な
い、ロッド軸方向の濃度差に基づいて傷として検出され
た各画素の間隔が予め設定した画素間隔以内であるもの
をグループ化することで線状の傷を検出し、検出された
線状傷の幅,長さ,面積に基づいて良否判定を行なうの
で、ロッド表面に付いた線状の傷を的確に検出して精度
の高い良否判定を行なうことができる。
As described above, the rod flaw inspection apparatus and the rod flaw inspection method according to the present invention determine a flaw based on the density difference between pixels adjacent in the rod axis direction, and determine the flaw in the rod axis direction. Linear flaws are detected by grouping pixels whose intervals between pixels detected as flaws based on the density difference are within a preset pixel distance, and the width, length, Since the pass / fail judgment is performed based on the area, a linear scratch on the rod surface can be accurately detected and the pass / fail judgment can be made with high accuracy.

【0055】ロッド軸方向に近接する画素間での濃度差
に基づいて傷の判定を行なうので、、ロッド表面の反射
係数や照明光の強度変化等によって検出画像の濃度が変
化した場合でも、傷を的確に検出できる。また、撮像部
の視野範囲の周辺で画像が暗くなるのを補正(いわゆる
シェージング補正)しなくても、傷を的確に検出でき
る。
Since the flaw is determined based on the density difference between the pixels adjacent in the rod axis direction, even if the density of the detected image changes due to a change in the reflection coefficient of the rod surface or the intensity of the illumination light, the flaw is determined. Can be accurately detected. Further, the flaw can be accurately detected without correcting the darkening of the image around the visual field range of the imaging unit (so-called shading correction).

【0056】ロッド軸方向の濃度差に基づいて傷として
検出された各画素の間隔が予め設定した画素間隔以内で
あるものをグループ化することで、螺旋状の線状傷を抽
出することができる。そして、検出された線状傷の幅,
長さ,面積に基づいて良否判定を行なう。よって、ロッ
ド表面に浅い点状の傷がある場合でも、点状傷と線状傷
とを区別することができ、線状傷に基づいた正確な良否
判断ができる。
By grouping pixels whose intervals between pixels detected as flaws based on the density difference in the rod axis direction are within a predetermined pixel interval, a spiral linear flaw can be extracted. . And the width of the detected linear flaw,
The pass / fail judgment is made based on the length and the area. Therefore, even if there is a shallow point-like flaw on the rod surface, the point-like flaw and the linear flaw can be distinguished, and accurate pass / fail judgment can be made based on the linear flaw.

【0057】また、この発明に係るロッド傷検査装置お
よびロッド傷検査方法は、傷として検出された画素の画
素数が予め設定した基準数に達しない場合には、傷検出
用濃度差値をより小さな値へ変更して、傷の検出処理を
繰り返すことができる。よって、深くかつ長い線状傷が
ある場合には、速やかに不良と判定することができると
もに、浅い線状傷についても確実に検出することができ
る。また、ロッド全周面の撮像画像中から傷として検出
される画素数が基準数に達するように傷検出用濃度差値
を自動設定することができる。よって、グループ化の精
度を良好に保つことができ、線状傷を精度良く検出する
ことができる。
Further, in the rod flaw inspection apparatus and the rod flaw inspection method according to the present invention, when the number of pixels detected as flaws does not reach a preset reference number, the flaw detection density difference value is increased. By changing the value to a small value, the flaw detection process can be repeated. Therefore, when there is a deep and long linear flaw, it can be quickly determined to be defective, and also a shallow linear flaw can be reliably detected. Further, the density difference value for flaw detection can be automatically set so that the number of pixels detected as flaws in the captured image of the entire peripheral surface of the rod reaches the reference number. Therefore, the grouping accuracy can be kept good, and the linear flaw can be detected with high accuracy.

【0058】さらに、この発明に係るロッド傷検査装置
およびロッド傷検査方法は、ロッド軸方向に2画素離れ
た画素間の濃度差が予め設定した傷検出用濃度差値を越
えた場合は濃度差傾き係数を1とし、ロッド軸方向に1
画素離れた画素間の濃度差が予め設定した傷検出用濃度
差値を越えた場合は濃度差傾き係数を2として、傷画素
の検出に重み付けを行ない、濃度差係数の累積値が予め
設定した基準累積値に達しない場合には、傷検出用濃度
差値をより小さな値へ変更して傷画素の検出を繰り返す
ようにしたので、傷部分を的確に抽出できるように傷検
出用濃度差値を自動設定することができる。隣接画素間
で濃度差が大きい部分は傷である確率が大きいので、隣
接画素間で傷検出用濃度差値を越えた場合は重み付け係
数を高くすることで、傷部分を的確に検出できる検出感
度を設定することができる。よって、検出感度が必要以
上に高く設定され、傷でないノイズ部分を傷として誤検
出することを防止することができる。
Further, in the rod flaw inspection apparatus and the rod flaw inspection method according to the present invention, when the density difference between pixels separated by two pixels in the rod axis direction exceeds a preset density difference value for flaw detection, Set the tilt coefficient to 1 and set 1 in the rod axis direction.
If the density difference between the pixels separated by a pixel exceeds a preset density difference value for flaw detection, the density difference gradient coefficient is set to 2 and the detection of the flaw pixel is weighted, and the cumulative value of the density difference coefficient is set in advance. If the reference cumulative value is not reached, the density difference value for flaw detection is changed to a smaller value and the detection of flaw pixels is repeated, so that the flaw detection density difference value is used so that flaws can be accurately extracted. Can be set automatically. Since there is a high probability that a portion where the density difference between adjacent pixels is large is a flaw, when the density difference value for flaw detection between adjacent pixels is exceeded, the weighting coefficient is increased to detect the flaw portion accurately. Can be set. Therefore, the detection sensitivity is set higher than necessary, and it is possible to prevent erroneous detection of a non-scratch noise portion as a scratch.

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

【図1】この発明に係るロッド傷検査装置のブロック構
成図
FIG. 1 is a block diagram of a rod damage inspection apparatus according to the present invention.

【図2】照明用光源と撮像部との位置関係の一例を示す
説明図
FIG. 2 is an explanatory diagram illustrating an example of a positional relationship between a light source for illumination and an imaging unit.

【図3】画像メモリに格納されたロッド表面画像の説明
FIG. 3 is an explanatory diagram of a rod surface image stored in an image memory.

【図4】傷画素検出部における傷検出処理の説明図FIG. 4 is an explanatory diagram of a flaw detection process in a flaw pixel detection unit.

【図5】傷画素検出部による傷検出結果を示す説明図FIG. 5 is an explanatory diagram showing a result of flaw detection by the flaw pixel detection unit.

【図6】傷画素グループ化部におけるグループ化処理の
説明図
FIG. 6 is an explanatory diagram of a grouping process in a flaw pixel grouping unit.

【図7】傷画素グループ化部における他のグループ化処
理の説明図
FIG. 7 is an explanatory diagram of another grouping process in the flaw pixel grouping unit.

【図8】グループ化された傷画素群(線状傷)の一例を
示す説明図
FIG. 8 is an explanatory diagram showing an example of a group of flawed pixels (linear flaws);

【図9】ロッド傷検査装置ならびにロッド傷検査方法の
動作ならびに処理を示すフローチャート
FIG. 9 is a flowchart showing the operation and processing of a rod flaw inspection apparatus and a rod flaw inspection method.

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

1…ロッド傷検査装置、2…撮像装置、3…画像処理装
置、4…画像表示装置、5…ロッド(検査対象物)、2
1…撮像部(1次元CCDカメラ)、22…照明用光
源、24…回動機構部、31…A/D変換器、32…画
像メモリ、33…傷検出用濃度差値変更部、34…傷画
素検出部、35…傷画素グループ化部、36…良否判定
部、37…画像取込制御部、38…良否判定基準値格納
部、39…操作部、40…表示制御部。
DESCRIPTION OF SYMBOLS 1 ... Rod flaw inspection apparatus, 2 ... Imaging apparatus, 3 ... Image processing apparatus, 4 ... Image display apparatus, 5 ... Rod (inspection object), 2
DESCRIPTION OF SYMBOLS 1 ... Image pick-up part (one-dimensional CCD camera), 22 ... Light source for illumination, 24 ... Rotating mechanism part, 31 ... A / D converter, 32 ... Image memory, 33 ... Density difference value change part for flaw detection, 34 ... Damaged pixel detection unit, 35: Damaged pixel grouping unit, 36: Pass / fail judgment unit, 37: Image capture control unit, 38: Pass / fail judgment reference value storage unit, 39: Operation unit, 40: Display control unit.

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 検査対象であるロッドとロッドの周表面
を撮像する撮像部とを相対的に移動させながらロッドの
全周に亘ってロッド表面を撮像する撮像装置と、 前記撮像部から出力されるロッド表面の画像信号を画像
データへ変換するA/D変換器と、 A/D変換された画像データを記憶する画像メモリと、 画像データに基づいてロッド軸方向に近接する画素間で
濃度差が予め設定した傷検出用濃度差値を越えた画素を
傷として検出する傷画素検出部と、 傷として検出された画素の間隔が予め設定した画素間隔
以内であるものをグループ化する傷画素グループ化部
と、 グループ化された傷画素群の幅,長さ,画素数と予め設
定した良否判定基準とを比較して良否判定を行なう良否
判定部と、を備えたことを特徴とするロッド傷検査装
置。
An imaging apparatus for imaging a rod surface over the entire circumference of a rod while relatively moving a rod to be inspected and an imaging unit for imaging the peripheral surface of the rod, and an image output from the imaging unit. A / D converter for converting an image signal of the rod surface into image data, an image memory for storing the A / D converted image data, and a density difference between pixels adjacent in the rod axis direction based on the image data A flaw pixel detection unit for detecting as a flaw a pixel which exceeds a preset density difference value for flaw detection, and a flaw pixel group for grouping pixels in which a distance between pixels detected as flaws is within a predetermined pixel interval. And a pass / fail determination unit that compares the width, length, and number of pixels of the group of flawed pixels with a predetermined pass / fail determination criterion to determine pass / fail. Inspection equipment.
【請求項2】 傷として検出された画素の画素数が予め
設定した基準数に達しない場合には、傷検出用濃度差値
をより小さな値へ変更する傷検出濃度差値変更部を備え
たことを特徴とする請求項1記載のロッド傷検査装置。
2. A flaw detection density difference value changing unit for changing a flaw detection density difference value to a smaller value when the number of pixels detected as flaws does not reach a preset reference number. The rod damage inspection device according to claim 1, wherein:
【請求項3】 前記傷画素検出部は、ロッド軸方向に2
画素離れた画素間の濃度差が予め設定した傷検出用濃度
差値を越えた場合は濃度差傾き係数を1とし、ロッド軸
方向に1画素離れた画素間の濃度差が予め設定した傷検
出用濃度差値を越えた場合は濃度差傾き係数を2とし、
前記傷検出濃度差値変更部は、濃度差係数の累積値が予
め設定した基準累積値に達しない場合には、傷検出用濃
度差値をより小さな値へ変更することを特徴とする請求
項1記載のロッド傷検査装置。
3. The apparatus according to claim 2, wherein the flaw pixel detecting section is provided in the direction of the rod axis.
If the density difference between pixels separated by a pixel exceeds a preset density difference value for flaw detection, the density difference gradient coefficient is set to 1, and the density difference between pixels one pixel away in the rod axis direction is set to the preset flaw detection. If the density difference value exceeds the threshold value, the density difference slope coefficient is set to 2,
The flaw detection density difference value changing unit changes the flaw detection density difference value to a smaller value when the cumulative value of the density difference coefficient does not reach a preset reference cumulative value. 2. The rod damage inspection device according to 1.
【請求項4】 検査対象であるロッドとロッドの周表面
を撮像する撮像部とを相対的に移動させながらロッドの
全周面に亘ってロッド表面を撮像し、ロッド表面の画像
信号を画像データへ変換して画像メモリに一時記憶させ
た後に、 ロッド軸方向に近接する画素間で濃度差が予め設定した
傷検出用濃度差値を越えた画素を傷として検出し、 傷として検出された画素の間隔が予め設定した画素間隔
以内であるものをグループ化して線状傷を検出し、 検出された線状傷の幅,長さ,面積と予め設定した良否
判定基準とを比較して良否判定を行なうことを特徴とす
るロッド傷検査方法。
4. An image of the rod surface is taken over the entire peripheral surface of the rod while relatively moving the rod to be inspected and an imaging unit for imaging the peripheral surface of the rod, and an image signal of the rod surface is converted into image data. After the pixel is detected as a flaw, the pixel whose density difference exceeds a preset flaw detection density difference value between pixels adjacent in the rod axis direction is detected as a flaw. Detecting linear flaws by grouping pixels whose intervals are within the preset pixel interval, and comparing the width, length, and area of the detected linear flaws with the preset pass / fail judgment criteria A rod flaw inspection method characterized by performing the following.
【請求項5】 傷として検出された画素の画素数が予め
設定した基準数に達しない場合には、傷検出用濃度差値
をより小さな値へ変更することで傷の検出感度を変更す
ることを特徴とする請求項4記載のロッド傷検査方法。
5. When the number of pixels detected as flaws does not reach a preset reference number, flaw detection sensitivity is changed by changing the flaw detection density difference value to a smaller value. The rod damage inspection method according to claim 4, characterized in that:
【請求項6】 ロッド軸方向に2画素離れた画素間の濃
度差が予め設定した傷検出用濃度差値を越えた場合は濃
度差傾き係数を1とし、ロッド軸方向に1画素離れた画
素間の濃度差が予め設定した傷検出用濃度差値を越えた
場合は濃度差傾き係数を2とし、濃度差係数の累積値が
予め設定した基準累積値に達しない場合には、傷検出用
濃度差値をより小さな値へ変更することで傷の検出感度
を変更することを特徴とする請求項4記載のロッド傷検
査方法。
6. When the density difference between pixels separated by two pixels in the rod axis direction exceeds a preset density difference value for flaw detection, the density difference gradient coefficient is set to 1, and pixels separated by one pixel in the rod axis direction are set. If the density difference between the two exceeds the preset density difference value for flaw detection, the density difference slope coefficient is set to 2, and if the cumulative value of the density difference coefficient does not reach the preset reference cumulative value, The rod flaw inspection method according to claim 4, wherein the flaw detection sensitivity is changed by changing the density difference value to a smaller value.
JP9333128A 1997-12-03 1997-12-03 Device and method for inspecting rod for flaw Pending JPH11166898A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9333128A JPH11166898A (en) 1997-12-03 1997-12-03 Device and method for inspecting rod for flaw

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9333128A JPH11166898A (en) 1997-12-03 1997-12-03 Device and method for inspecting rod for flaw

Publications (1)

Publication Number Publication Date
JPH11166898A true JPH11166898A (en) 1999-06-22

Family

ID=18262615

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9333128A Pending JPH11166898A (en) 1997-12-03 1997-12-03 Device and method for inspecting rod for flaw

Country Status (1)

Country Link
JP (1) JPH11166898A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000348166A (en) * 1999-04-02 2000-12-15 Japan Tobacco Inc Appearance examination device for cylindrical article
JP2002324233A (en) * 2001-04-25 2002-11-08 Showa Corp Method and device for detecting crack of pipe
KR100367058B1 (en) * 1998-11-30 2003-01-09 올림파스 고가꾸 고교 가부시키가이샤 Flaw detector
WO2004072628A1 (en) * 2003-02-12 2004-08-26 Hitachi, Ltd. Defect inspection device and method therefor
JP2006258737A (en) * 2005-03-18 2006-09-28 Kobe Steel Ltd Surface defect inspection method of aluminum alloy bar material
JP2008298799A (en) * 2008-09-12 2008-12-11 Kirin Techno-System Co Ltd Illumination and imaging device for cap made of resin
JP2009050229A (en) * 2007-08-29 2009-03-12 Fuji Seisakusho:Kk Noodle making machine
JP2010197177A (en) * 2009-02-24 2010-09-09 Panasonic Electric Works Co Ltd Visual inspection method and apparatus
JP2018096950A (en) * 2016-12-16 2018-06-21 日本特殊陶業株式会社 Manufacturing method and inspection device

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100367058B1 (en) * 1998-11-30 2003-01-09 올림파스 고가꾸 고교 가부시키가이샤 Flaw detector
JP2000348166A (en) * 1999-04-02 2000-12-15 Japan Tobacco Inc Appearance examination device for cylindrical article
JP2002324233A (en) * 2001-04-25 2002-11-08 Showa Corp Method and device for detecting crack of pipe
WO2004072628A1 (en) * 2003-02-12 2004-08-26 Hitachi, Ltd. Defect inspection device and method therefor
JP2004264054A (en) * 2003-02-12 2004-09-24 Hitachi Ltd Flaw inspection device and method for using it
JP2006258737A (en) * 2005-03-18 2006-09-28 Kobe Steel Ltd Surface defect inspection method of aluminum alloy bar material
JP4509833B2 (en) * 2005-03-18 2010-07-21 株式会社神戸製鋼所 Surface defect inspection method for aluminum alloy bar
JP2009050229A (en) * 2007-08-29 2009-03-12 Fuji Seisakusho:Kk Noodle making machine
JP2008298799A (en) * 2008-09-12 2008-12-11 Kirin Techno-System Co Ltd Illumination and imaging device for cap made of resin
JP2010197177A (en) * 2009-02-24 2010-09-09 Panasonic Electric Works Co Ltd Visual inspection method and apparatus
JP2018096950A (en) * 2016-12-16 2018-06-21 日本特殊陶業株式会社 Manufacturing method and inspection device

Similar Documents

Publication Publication Date Title
JP4351522B2 (en) Pattern defect inspection apparatus and pattern defect inspection method
JP5187939B2 (en) Appearance inspection device
JPH11166898A (en) Device and method for inspecting rod for flaw
JP2003329606A (en) Inner surface inspection device
JP2000121569A (en) Apparatus for inspection of flaw on surface of rod
CN101995325A (en) Appearance detection method and system of image sensor
JP4581424B2 (en) Appearance inspection method and image processing apparatus
JPH08101130A (en) Surface flaw inspecting device
JP2009162579A (en) Quality evaluator as to section of paper and quality evaluation method using same
EP0599335B1 (en) Cylindrical container inner surface tester
JP2008005194A (en) Detecting device and detecting method for defective pixel
JPH0862155A (en) Object 0bserving apparatus
JP4212702B2 (en) Defect inspection apparatus, defect inspection method, and storage medium
JP3127598B2 (en) Method for extracting density-varying constituent pixels in image and method for determining density-fluctuation block
JPH06118026A (en) Method for inspecting vessel inner surface
JPH05164703A (en) Inspecting method for surface of workpiece
JP2021189239A (en) Belt inspection system and belt inspection program
JP2021189238A (en) Belt inspection system and belt inspection program
JP2002303588A (en) Pattern defect inspection device
JPH06324005A (en) Method for detecting rolling flaw of steel plate
JP4792314B2 (en) Substrate inspection apparatus and substrate inspection method
JPH01214743A (en) Optical apparatus for checking
JPH10311776A (en) Optical member tester
JP3604974B2 (en) Screen inspection method
JPH05322792A (en) Flaw inspecting device