JP2010066126A - Image processing method and foreign matter inspecting device using the same - Google Patents

Image processing method and foreign matter inspecting device using the same Download PDF

Info

Publication number
JP2010066126A
JP2010066126A JP2008232693A JP2008232693A JP2010066126A JP 2010066126 A JP2010066126 A JP 2010066126A JP 2008232693 A JP2008232693 A JP 2008232693A JP 2008232693 A JP2008232693 A JP 2008232693A JP 2010066126 A JP2010066126 A JP 2010066126A
Authority
JP
Japan
Prior art keywords
image
groove
brightness
image processing
deep
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
JP2008232693A
Other languages
Japanese (ja)
Inventor
Masao Goto
正男 後藤
Takashi Murozaki
隆 室崎
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 JP2008232693A priority Critical patent/JP2010066126A/en
Publication of JP2010066126A publication Critical patent/JP2010066126A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)
  • Image Processing (AREA)
  • Image Analysis (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide an image processing method for enhancing the recognition precision of a capture image in the inspection of the foreign matter in a groove. <P>SOLUTION: The image processing method includes measurement step (S201) for measuring the brightness of an image at every groove, gain calculation step (S202) for calculating a gain correcting the brightness of the image of a predetermined groove by using the average brightness of the brightnesses of the images of the grooves positioned on both sides of the predetermined groove, and gain correction step (S203) for correcting the brightness of the image of the predetermined groove at every groove by using the calculated gain. In rectilinear grooves arranged at regular intervals, the brightnesses of the images of the grooves positioned on both sides of the predetermined groove have linear relationship with respect to the brightness of the image of the predetermined groove. Accordingly, the brightness of the image of the predetermined groove not affected by an inspection environment can be estimated. <P>COPYRIGHT: (C)2010,JPO&INPIT

Description

本発明は、画像処理方法およびこれを用いた異物検査装置に関し、詳しくは、被検査体の溝内の異物の有無を検査する画像処理方法およびこれを用いた異物検査装置に関する。   The present invention relates to an image processing method and a foreign matter inspection apparatus using the same, and more particularly to an image processing method for inspecting the presence or absence of foreign matter in a groove of an object to be inspected and a foreign matter inspection apparatus using the image processing method.

従来、燃料ポンプのコンミテータの各セグメントを分割する深溝内の異物を検出する異物検査では、コンミテータの軸方向上側から深溝内の画像を取込み、深溝内の深部の異物の有無を検出することが困難であった。一方、被検査体の外観をプリズムを用いて様々な角度から検査する技術が公知である。しかし、この技術をコンミテータの深溝内の異物検査に適用し、円錐型プリズムによってコンミテータの深溝内を検査すると、円錐型プリズムの中心軸とコンミテータの中心軸の軸ずれ、円錐型プリズムの傾き、および円錐型プリズムの組成による光の減衰等によって、取込んだ画像データに濃淡のばらつきが生じ、異物を検出することが困難となる問題が生じていた。深溝内の異物が検出されないと、隣り合うセグメントが異物によって導電する虞があった。
ところで、特許文献1では、映像信号の輝度階調を、輝度階調分布パターン毎に予め設定されている補正データに基づいて補正している。
しかし、コンミテータの深溝内の異物検査では、取込んだ画像データにおける計測部位の輝度変化に規則性がないので、このような補正方法を適用して取込み画像の認識精度を向上することは困難であった。
Conventionally, in foreign matter inspection that detects foreign matter in the deep groove that divides each segment of the commutator of the fuel pump, it is difficult to detect the presence or absence of foreign matter in the deep groove by capturing an image in the deep groove from the upper side in the axial direction of the commutator Met. On the other hand, a technique for inspecting the appearance of an object to be inspected from various angles using a prism is known. However, when this technology is applied to the inspection of foreign matter in the deep groove of a commutator and the inside of the deep groove of the commutator is inspected by a conical prism, the misalignment between the central axis of the conical prism and the central axis of the commutator, the inclination of the conical prism, and Due to the attenuation of light due to the composition of the conical prism, etc., there has been a problem that variation in density occurs in the captured image data, making it difficult to detect foreign matter. If the foreign matter in the deep groove is not detected, there is a possibility that the adjacent segments are conductive by the foreign matter.
By the way, in Patent Document 1, the luminance gradation of the video signal is corrected based on correction data set in advance for each luminance gradation distribution pattern.
However, in the inspection of foreign matter in the deep groove of the commutator, since there is no regularity in the luminance change of the measurement site in the captured image data, it is difficult to improve the recognition accuracy of the captured image by applying such a correction method. there were.

特開平6−311391公報JP-A-6-313191

本発明の目的は、溝内の異物検査において取込み画像の認識精度を向上する画像処理方法およびこれを用いた異物検査装置を提供することにある。   An object of the present invention is to provide an image processing method for improving the recognition accuracy of a captured image in the inspection of foreign matter in a groove and a foreign matter inspection apparatus using the image processing method.

請求項1に係る発明によると、被検査体の溝内の異物の有無を計測する画像処理方法は、溝ごとの画像の輝度を計測する計測段階と、所定の溝の両隣に位置する溝の画像の輝度を平均した輝度を利用し、所定の溝の画像の輝度を補正するゲインを算出するゲイン算出段階と、このゲインを利用し、所定の溝の画像ごとに輝度を補正するゲイン補正段階と、を含む。一定の間隔で配置される直線状の溝において、所定の溝の両隣に位置する溝の画像の輝度は、所定の溝の画像の輝度と線形の関係を有している。このため、所定の溝の画像の輝度を補正するゲインを、所定の溝の両隣に位置する溝の画像の輝度を平均した輝度を利用して算出することで、照明のばらつき等、検査環境の影響を受けていない各溝の輝度を推定することができる。これにより、取込み画像の認識精度を向上することができる。この結果、精密な異物検査をすることができる。なお、請求項1の被検査体は、例えば、直方体形状、放射状形状等、様々な形状の被検査体であっても良い。   According to the first aspect of the present invention, an image processing method for measuring the presence / absence of a foreign substance in a groove of an object to be inspected includes a measurement stage for measuring the luminance of an image for each groove, and a groove located on both sides of a predetermined groove A gain calculating step for calculating a gain for correcting the luminance of the image of the predetermined groove using the luminance obtained by averaging the luminance of the image, and a gain correction step for correcting the luminance for each image of the predetermined groove using the gain And including. In the linear grooves arranged at regular intervals, the luminance of the image of the groove located on both sides of the predetermined groove has a linear relationship with the luminance of the image of the predetermined groove. For this reason, the gain for correcting the luminance of the image of the predetermined groove is calculated by using the luminance obtained by averaging the luminance of the images of the grooves located on both sides of the predetermined groove, so that the inspection environment such as illumination variation can be calculated. The brightness of each groove that is not affected can be estimated. Thereby, the recognition accuracy of the captured image can be improved. As a result, a precise foreign object inspection can be performed. The inspected object of claim 1 may be inspected objects having various shapes such as a rectangular parallelepiped shape and a radial shape.

請求項2に係る発明によると、画像処理方法は、前記溝ごとの画像の輝度を補正し、溝ごとの画像の輝度の平均値を所定値に合わせる平均値調整段階をさらに含む。このため、ゲイン補正段階では、溝ごとの画像の輝度が所定値を基準として相対的に補正される。これにより、2値化処理における閾値の余裕度が大きくなる。この結果、取込み画像の認識精度を向上し、精密な異物検査をすることができる。   According to a second aspect of the present invention, the image processing method further includes an average value adjusting step of correcting the luminance of the image for each groove and adjusting the average value of the luminance of the image for each groove to a predetermined value. For this reason, in the gain correction stage, the luminance of the image for each groove is relatively corrected based on a predetermined value. This increases the threshold margin in the binarization process. As a result, it is possible to improve the recognition accuracy of the captured image and perform a precise foreign object inspection.

請求項3に係る発明によると、計測段階は、被検査体が一定の間隔で交互に有する深溝および浅溝の画像の輝度を計測する。ゲイン算出段階は、深溝の両隣に位置する浅溝の画像の輝度を平均した輝度を利用し、深溝の画像の輝度を補正するゲインを算出する。輝度補正段階は、このゲインを利用し、深溝の画像ごとに輝度を補正する。深溝の両隣に位置する浅溝の画像の輝度は、この深溝の画像の輝度と線形の関係を有し、深溝の画像の輝度と浅溝の画像の輝度とは一定の関係を有する。また、浅溝の異物は除去され易く、異物を有する可能性が低い。このため、深溝ごとの画像の輝度を補正するゲインを、深溝の両隣の浅溝の画像の輝度を平均した輝度を利用して算出することで、照明のばらつきまたは異物の影響等を受けていない深溝の輝度を推定することができる。これにより、深溝内の取込み画像の認識精度を向上し、精密な異物検査を行うことができる。   According to the invention of claim 3, in the measurement step, the brightness of the images of the deep grooves and the shallow grooves that the object to be inspected alternately has at regular intervals is measured. In the gain calculation step, a gain for correcting the brightness of the deep groove image is calculated by using the brightness obtained by averaging the brightness of the shallow groove images located on both sides of the deep groove. In the brightness correction stage, this gain is used to correct the brightness for each deep groove image. The brightness of the image of the shallow groove located on both sides of the deep groove has a linear relationship with the brightness of the image of the deep groove, and the brightness of the image of the deep groove and the brightness of the image of the shallow groove has a certain relationship. Moreover, the foreign material in the shallow groove is easily removed, and the possibility of having the foreign material is low. For this reason, the gain for correcting the brightness of the image for each deep groove is calculated by using the brightness obtained by averaging the brightness of the images of the shallow grooves on both sides of the deep groove, so that it is not affected by variations in illumination or the influence of foreign matter. The brightness of the deep groove can be estimated. Thereby, the recognition accuracy of the captured image in the deep groove can be improved, and a precise foreign object inspection can be performed.

請求項4に係る発明によると、円錐型光学系は、浅溝および深溝を通過した光を屈折させ、画像入力手段に入射する。このため、溝の上方からの撮像では測定困難な深溝の深部における異物検査が可能となる。ところで、放射状に形成された深溝および浅溝の中心に円錐型光学系を挿入して異物検査を行うことで、深溝の画像の輝度は、円錐型光学系の中心軸と深溝および浅溝の中心軸との軸ずれ等による影響を受ける。しかし、一定の間隔で放射状に配置される深溝および浅溝において、深溝の両隣に位置する浅溝の画像の輝度は、深溝の画像の輝度と線形の関係を有している。そこで、深溝ごとに画像の輝度を補正するゲインを、両隣の浅溝の画像の輝度を平均した輝度を利用して算出することで、円錐型光学系を使用することで生じる光の減衰の影響を受けていない深溝の輝度を推定することができる。これにより、深溝内の取込み画像の認識精度を向上し、精密な異物検査を行うことができる。   According to the fourth aspect of the invention, the conical optical system refracts the light that has passed through the shallow groove and the deep groove and enters the image input means. For this reason, it is possible to inspect the foreign matter in the deep part of the deep groove, which is difficult to measure by imaging from above the groove. By the way, by inserting a conical optical system in the center of the deep grooves and shallow grooves formed radially, and performing foreign object inspection, the brightness of the image of the deep grooves can be determined by the central axis of the conical optical system and the centers of the deep grooves and shallow grooves. It is affected by misalignment with the shaft. However, in the deep groove and the shallow groove that are radially arranged at a constant interval, the brightness of the image of the shallow groove located on both sides of the deep groove has a linear relationship with the brightness of the image of the deep groove. Therefore, the gain that corrects the brightness of the image for each deep groove is calculated by using the brightness that averages the brightness of the images of the adjacent shallow grooves. It is possible to estimate the brightness of the deep groove that has not received the light. Thereby, the recognition accuracy of the captured image in the deep groove can be improved, and a precise foreign object inspection can be performed.

請求項5に係る発明によると、位置調節機構は、画像入力手段側から被検査体側に向けて内径の広がるテーパ面を有する案内手段のテーパ面と被検査体の外縁とを当接し、円錐型光学系の中心軸と浅溝および深溝の中心軸とを同軸に調節する。これにより、円錐型光学系を通過する光の減衰が抑制され、取込み画像の認識精度を向上することができる。   According to the fifth aspect of the present invention, the position adjusting mechanism abuts the tapered surface of the guide means having a tapered surface having an inner diameter extending from the image input means side toward the object to be inspected and the outer edge of the object to be inspected. The central axis of the optical system and the central axis of the shallow and deep grooves are adjusted coaxially. Thereby, attenuation of the light passing through the conical optical system is suppressed, and the recognition accuracy of the captured image can be improved.

(第1実施形態)
本発明の第1実施形態の異物検査装置を図1に示す。本実施形態の異物検査装置20は、燃料ポンプに用いられるコンミテータの各セグメントを分割する深溝内の異物を検出する装置である。
まず、被検査体となるコンミテータおよびこのコンミテータの用いられる燃料ポンプについて、図9〜図12に基づき説明する。燃料ポンプ50は、例えば車両等の燃料タンク内に装着されるインタンク式のウエスコポンプである。燃料ポンプ50は、図9に示すように、ポンプ部51と、ポンプ部51を回転駆動するモータ部52と、吐出側カバー53とを備えている。
ポンプ部51は、インペラ54およびこのインペラ54を収容するポンプカバー55およびポンプケーシング56を有する。ポンプカバー55に形成された吸入口57から吸入された燃料は、インペラ54の回転によりポンプ流路58で加圧され、モータ部52の永久磁石60と電機子61との間を通り、吐出口72から吐出される。
モータ部52は、直流モータを構成しており、永久磁石60、電機子61、および電機子61の反ポンプ部側でコンミテータ80を有している。ハウジング62の内周壁に取り付けられた永久磁石60は、回転方向に極の異なる磁極を形成している。
(First embodiment)
A foreign substance inspection apparatus according to a first embodiment of the present invention is shown in FIG. The foreign matter inspection apparatus 20 of the present embodiment is a device that detects foreign matter in a deep groove that divides each segment of a commutator used in a fuel pump.
First, a commutator to be inspected and a fuel pump using the commutator will be described with reference to FIGS. The fuel pump 50 is an in-tank type Wesco pump mounted in a fuel tank of a vehicle or the like, for example. As shown in FIG. 9, the fuel pump 50 includes a pump unit 51, a motor unit 52 that rotationally drives the pump unit 51, and a discharge side cover 53.
The pump unit 51 includes an impeller 54, a pump cover 55 that accommodates the impeller 54, and a pump casing 56. The fuel sucked from the suction port 57 formed in the pump cover 55 is pressurized in the pump flow path 58 by the rotation of the impeller 54, passes between the permanent magnet 60 and the armature 61 of the motor unit 52, and is discharged from the discharge port. 72 is discharged.
The motor unit 52 constitutes a DC motor, and has a permanent magnet 60, an armature 61, and a commutator 80 on the side of the armature 61 opposite to the pump unit. The permanent magnet 60 attached to the inner peripheral wall of the housing 62 forms magnetic poles having different poles in the rotation direction.

電機子61は、中央コア63に圧入された回転軸部材としてのシャフト64を備えている。磁極コイル部65は、中央コア63の外周に回転方向に6個設けられ、中央コア63と結合している。各磁極コイル部65は、コイルコア66、ボビン67、およびボビン67に巻線を集中巻きして形成されているコイル68を有している。6個の磁極コイル部65は同一構成である。   The armature 61 includes a shaft 64 as a rotating shaft member press-fitted into the central core 63. Six magnetic pole coil portions 65 are provided on the outer periphery of the central core 63 in the rotational direction, and are coupled to the central core 63. Each magnetic pole coil section 65 has a coil core 66, a bobbin 67, and a coil 68 formed by concentrating windings around the bobbin 67. The six magnetic pole coil portions 65 have the same configuration.

各コイル68のコンミテータ80側の始端および終端は、端子69と電気的に接続している。端子69はコンミテータ80の結線端子85に嵌合し、電気的に接続している。一方、コイル68のポンプ部側の端部は、端子70と電気的に接続している。回転方向に連続して隣接する3個の端子70は、端子71によって電気的に接続している。   The start and end of each coil 68 on the commutator 80 side are electrically connected to the terminal 69. The terminal 69 is engaged with and electrically connected to the connection terminal 85 of the commutator 80. On the other hand, the end of the coil 68 on the pump portion side is electrically connected to the terminal 70. Three terminals 70 that are adjacent to each other in the rotation direction are electrically connected by a terminal 71.

吐出側カバー53は、モータ部52のコンミテータ80側を覆い、略中央部に吐出口72を形成している。吐出側カバー53のコンミテータ80側には、ブラシ73が設けられている。ブラシ73は、スプリング74によって付勢され、コンミテータ80と接触している。吐出側カバー53の中央部からずれた外周側に受電コネクタ75が形成されている。受電コネクタ75内に設けられている端子76は、ブラシ73と電気的に接続している。端子76からブラシ73を経由してコンミテータ80に駆動電流が供給される。   The discharge-side cover 53 covers the commutator 80 side of the motor unit 52 and forms a discharge port 72 at a substantially central portion. A brush 73 is provided on the commutator 80 side of the discharge side cover 53. The brush 73 is urged by a spring 74 and is in contact with the commutator 80. A power receiving connector 75 is formed on the outer peripheral side shifted from the central portion of the discharge side cover 53. A terminal 76 provided in the power receiving connector 75 is electrically connected to the brush 73. A drive current is supplied from the terminal 76 to the commutator 80 via the brush 73.

コンミテータ80は、図10および図11に示すように、径方向へ直線状に延びる6個の深溝81で分割された6個のセグメント82を有している。セグメント82は、例えばカーボンから形成されている。各セグメント82は、回転方向の中間に廃油溝としての浅溝83を有している。深溝81および浅溝83は放射状に等間隔で形成されている。
セグメント82の電機子側は、中間端子84と当接し、電気的に接続している。中間端子84は、例えば黄銅から形成されている。中間端子84は、結線端子85と突部87で結合し、電気的に接続している。結線端子85は、軸方向から見て円弧状に形成され、径方向に対向する中間端子84を電気的に接続している。これにより、径方向に対向して設けられるセグメント82は、それぞれ同電位となっている。
受電コネクタ75の端子76からブラシ73を経由してセグメント82に駆動電流が供給されると、セグメント82から中間端子84、結線端子85、端子69を経由してコイル68に駆動電流が供給され、電機子61が回転する。電機子61の回転により、各セグメント82はブラシ73と順次接触する。
As shown in FIGS. 10 and 11, the commutator 80 includes six segments 82 divided by six deep grooves 81 extending linearly in the radial direction. The segment 82 is made of carbon, for example. Each segment 82 has a shallow groove 83 as a waste oil groove in the middle in the rotation direction. The deep grooves 81 and the shallow grooves 83 are radially formed at equal intervals.
The armature side of the segment 82 is in contact with and electrically connected to the intermediate terminal 84. The intermediate terminal 84 is made of, for example, brass. The intermediate terminal 84 is coupled to the connection terminal 85 by the protrusion 87 and is electrically connected. The connection terminal 85 is formed in an arc shape when viewed from the axial direction, and electrically connects the intermediate terminals 84 opposed in the radial direction. Thereby, the segments 82 provided facing each other in the radial direction have the same potential.
When the drive current is supplied from the terminal 76 of the power receiving connector 75 to the segment 82 via the brush 73, the drive current is supplied from the segment 82 to the coil 68 via the intermediate terminal 84, the connection terminal 85, and the terminal 69. The armature 61 rotates. Due to the rotation of the armature 61, each segment 82 sequentially contacts the brush 73.

コンミテータ80の製造工程は、まず、6個に分割する前のセグメントの母材と、中間端子の母材と、結線端子85とを組み付け、絶縁樹脂86でインサート成形する。次に、セグメントの母材および中間端子の母材を、図示しない円盤型のカッターで切断することで深溝81を形成する。深溝81が形成されることで、セグメント82および中間端子84は6分割され、電気的に絶縁する。円盤型のカッターの厚さは、例えば0.35mm±0.01mmである。図12に示すように、深溝81は、幅aを例えば0.35mm±0.05mm、深さbを例えば4mmに形成される。深溝81の深部に中間端子84の切断された断面841が露出している。中間端子81の切断による切り屑等が深溝内の異物となる。
さらに、各セグメント82の回転方向の中間を円盤型のカッターで切断することで、廃油溝となる浅溝83を形成する。浅溝83は、幅を例えば0.35mm±0.05mm、深さを例えば2.5mmに形成される。
In the manufacturing process of the commutator 80, first, the base material of the segment before dividing into six pieces, the base material of the intermediate terminal, and the connection terminal 85 are assembled and insert-molded with the insulating resin 86. Next, the deep groove 81 is formed by cutting the base material of the segment and the base material of the intermediate terminal with a disk-shaped cutter (not shown). By forming the deep groove 81, the segment 82 and the intermediate terminal 84 are divided into six and are electrically insulated. The thickness of the disk-type cutter is, for example, 0.35 mm ± 0.01 mm. As shown in FIG. 12, the deep groove 81 is formed with a width a of, for example, 0.35 mm ± 0.05 mm and a depth b of, for example, 4 mm. A cut section 841 of the intermediate terminal 84 is exposed in the deep portion of the deep groove 81. Chips and the like resulting from cutting the intermediate terminal 81 become foreign matter in the deep groove.
Furthermore, the shallow groove | channel 83 used as a waste oil groove | channel is formed by cut | disconnecting the intermediate | middle of the rotation direction of each segment 82 with a disk type cutter. The shallow groove 83 is formed with a width of, for example, 0.35 mm ± 0.05 mm and a depth of, for example, 2.5 mm.

次に、異物検査装置20の構成について説明する。異物検査装置20は、図1に示すように、画像処理手段21、画像入力手段22、円錐型光学系26、光源29、位置調節機構等から構成されている。
画像処理手段21は、CPUおよびRAM、ROM等のメモリを有するコンピュータ並びにその周辺機器で構成されており、画像入力手段22と接続している。画像処理手段21は、ROM等に記憶された異物検査用プログラムをCPUにロードすることで画像入力手段22を制御するとともに、画像入力手段22から伝送された画像データを画像処理し、被検査体としてのコンミテータ80の深溝内の異物の有無を計測する。
Next, the configuration of the foreign matter inspection apparatus 20 will be described. As shown in FIG. 1, the foreign substance inspection apparatus 20 includes an image processing unit 21, an image input unit 22, a conical optical system 26, a light source 29, a position adjusting mechanism, and the like.
The image processing means 21 includes a computer having a CPU, a memory such as a RAM and a ROM, and peripheral devices thereof, and is connected to the image input means 22. The image processing means 21 controls the image input means 22 by loading a foreign substance inspection program stored in a ROM or the like into the CPU, and performs image processing on the image data transmitted from the image input means 22 to inspect the object to be inspected. The presence or absence of foreign matter in the deep groove of the commutator 80 is measured.

画像入力手段22は、画像を撮像するためのレンズおよびCCD等のイメージセンサを有して構成されるカメラであり、支柱23の取付腕24に取り付けられている。画像入力手段22は、円錐型光学系から入射した光を光電変換し、画像処理手段21へ伝送する。
円錐型光学系26は、円柱型の基部261と、円錐型の先端部262とが一体で形成されたプリズムにより構成されている。円錐型光学系26は、支柱23の中間に設けられた支持腕25に取り付けられている。円錐型光学系26の軸方向の中間位置には、傾斜ガイド27が設けられ、円錐型光学系26の軸の傾きを調整している。
The image input means 22 is a camera configured to include a lens for capturing an image and an image sensor such as a CCD, and is attached to the mounting arm 24 of the column 23. The image input means 22 photoelectrically converts the light incident from the conical optical system and transmits it to the image processing means 21.
The conical optical system 26 is configured by a prism in which a cylindrical base 261 and a conical tip 262 are integrally formed. The conical optical system 26 is attached to a support arm 25 provided in the middle of the column 23. An inclination guide 27 is provided at an intermediate position in the axial direction of the conical optical system 26 to adjust the inclination of the axis of the conical optical system 26.

光源29は、被検査体の溝に向けて光を照射する円環状の照明であり、コンミテータ80の径外方向からコンミテータ80の全周を囲うように設けられる。
位置調節機構は、ガイド31、昇降台34およびパレット32を備える。
案内手段としてのガイド31は、被検査体としてのコンミテータ80側に向けて内径の広がる円錐状のテーパ面36を有し、支持腕25に固定されている。マスキング28は、ガイド31のテーパ面36の内周側に設けられ、天地方向に移動可能である。
昇降台34は、上部にパレット32を備え、コンベア35の上に設置されている。パレット32の上にはコンミテータ80が載せられている。昇降台34は内部にシリンダ33を備え、パレットを天地方向に移動可能である。ガイド31、昇降台34およびパレット32は特許請求の範囲の位置調節機構を構成している。
The light source 29 is annular illumination that irradiates light toward the groove of the object to be inspected, and is provided so as to surround the entire circumference of the commutator 80 from the radially outward direction of the commutator 80.
The position adjustment mechanism includes a guide 31, a lifting platform 34, and a pallet 32.
The guide 31 as the guide means has a conical tapered surface 36 whose inner diameter increases toward the commutator 80 as the object to be inspected, and is fixed to the support arm 25. The masking 28 is provided on the inner peripheral side of the tapered surface 36 of the guide 31 and is movable in the vertical direction.
The elevator 34 has a pallet 32 at the top and is installed on a conveyor 35. A commutator 80 is placed on the pallet 32. The lifting platform 34 includes a cylinder 33 therein, and can move the pallet in the vertical direction. The guide 31, the lifting platform 34, and the pallet 32 constitute a position adjusting mechanism in the scope of claims.

次に、異物検査装置20の作動について説明する。
コンミテータ80をパレット32に載せた昇降台34がコンベア35によって、円錐型光学系26の直下に移動してくると、図示しないストッパによって昇降台34の移動が停止する。次に、昇降台34の内部のシリンダ33が天方向に伸びてコンミテータ80を載せたパレット32が円錐型光学系26側へ移動する。このとき、コンミテータ80の中心軸tと円錐型光学系26の中心軸sとは、図2(A)に示すように、僅かにずれているものとする。このままシリンダ33が天方向に伸びることで、コンミテータ80の外縁89とガイド31のテーパ面36とが当接する。さらに、シリンダ33が天方向に僅かに伸び、図2(B)に示すように、コンミテータ80はテーパ面36に案内され、コンミテータ80の中心軸tと円錐型光学系26の中心軸sとが略同軸となるよう調整される。このとき、コンミテータ80の中心軸tと円錐型光学系26の中心軸sとは、コンミテータ80の外縁89と深溝81および浅溝83の公差により僅かにずれている場合がある。
次に、マスキング28がコンミテータ80側へ移動し、コンミテータ80のセグメント82および絶縁樹脂86の軸方向上面に当接する。これにより、コンミテータ80の深溝81および浅溝83では、軸方向からの光の侵入が遮断される。
Next, the operation of the foreign matter inspection apparatus 20 will be described.
When the elevator 34 with the commutator 80 placed on the pallet 32 is moved directly below the conical optical system 26 by the conveyor 35, the movement of the elevator 34 is stopped by a stopper (not shown). Next, the cylinder 33 inside the lifting platform 34 extends in the upward direction, and the pallet 32 on which the commutator 80 is placed moves to the conical optical system 26 side. At this time, it is assumed that the center axis t of the commutator 80 and the center axis s of the conical optical system 26 are slightly shifted as shown in FIG. As the cylinder 33 extends in the top direction, the outer edge 89 of the commutator 80 and the tapered surface 36 of the guide 31 come into contact with each other. Further, the cylinder 33 extends slightly in the upward direction, and as shown in FIG. 2B, the commutator 80 is guided by the tapered surface 36, and the central axis t of the commutator 80 and the central axis s of the conical optical system 26 are It is adjusted to be substantially coaxial. At this time, the center axis t of the commutator 80 and the center axis s of the conical optical system 26 may be slightly shifted due to the tolerance between the outer edge 89 of the commutator 80 and the deep grooves 81 and the shallow grooves 83.
Next, the masking 28 moves toward the commutator 80, and comes into contact with the upper surface in the axial direction of the segment 82 and the insulating resin 86 of the commutator 80. Thereby, in the deep groove 81 and the shallow groove 83 of the commutator 80, the penetration of light from the axial direction is blocked.

光源29から照射された光は、コンミテータ80の径外方向から深溝81および浅溝83を通り、円錐型光学系26へ入射する。図3に示すように、深溝81を通る光のうち、コンミテータ80の軸方向表面側を通る光40は、円錐型光学系26の先端部262の円錐面で屈折し、基部261の径外側を通って画像入力手段22に入射する。深溝81を通る光のうち、コンミテータ80の軸方向深部側を通る光41は、先端部262の円錐面で屈折し、基部261の径内側を通って画像入力手段22に入射する。   The light emitted from the light source 29 passes through the deep groove 81 and the shallow groove 83 from the radially outward direction of the commutator 80 and enters the conical optical system 26. As shown in FIG. 3, among the light passing through the deep groove 81, the light 40 passing through the axial surface side of the commutator 80 is refracted by the conical surface of the distal end portion 262 of the conical optical system 26, and the outer diameter of the base portion 261 is reflected. Then, the light enters the image input means 22. Of the light that passes through the deep groove 81, the light 41 that passes through the deep side in the axial direction of the commutator 80 is refracted by the conical surface of the tip 262 and enters the image input means 22 through the inside of the base 261.

円錐型光学系26の中心軸sとコンミテータ80の深溝81および浅溝83の中心軸tが同一のとき、深溝81の表面側を通る光40が、円錐型光学系26の先端部262へ入射する光路を図4に示す。円錐型光学系26を軸方向画像入力手段側から見たとき、深溝81内を直接透過した透過光43と深溝81を形成する側壁88に反射した反射光44とは、共に円錐型光学系26の中心軸sを通り、深溝81と反対側の円錐面で屈折して画像入力手段22に入射する。このとき、透過光43は明るく、反射光44は透過光43と比較して暗い画像となる。このため、コンミテータ80と円錐型光学系26との中心軸の軸ずれが生じる場合、軸ずれの方向および距離と深溝81との位置関係によって、透過光43による画像の範囲が減少し、反射光44による画像の範囲が拡大する。   When the central axis s of the conical optical system 26 and the central axes t of the deep groove 81 and the shallow groove 83 of the commutator 80 are the same, the light 40 passing through the surface side of the deep groove 81 is incident on the tip 262 of the conical optical system 26. The optical path to be performed is shown in FIG. When the conical optical system 26 is viewed from the axial image input means side, both the transmitted light 43 directly transmitted through the deep groove 81 and the reflected light 44 reflected by the side wall 88 forming the deep groove 81 are both conical optical system 26. And refracted at the conical surface opposite to the deep groove 81 and enters the image input means 22. At this time, the transmitted light 43 is bright and the reflected light 44 is darker than the transmitted light 43. Therefore, when the center axis of the commutator 80 and the conical optical system 26 is misaligned, the range of the image by the transmitted light 43 is reduced depending on the direction and distance of the misalignment and the positional relationship between the deep grooves 81 and the reflected light. The range of the image by 44 is enlarged.

画像入力手段22は、円錐型光学系26から入射した光を光電変換し、画像処理手段21へ伝送する。画像処理手段21へ入力された画像データを図5に示す。図5では、説明を間単にするため透過光のみを示し、反射光は示していない。図5において、各三角形の内側は明るくなっており、円全体は暗くなっているものとする。三角形のB画像2、D画像4、F画像6、H画像8、J画像10およびL画像12は、それぞれ各深溝81の画像を示し、三角形のA画像1、C画像3、E画像5、G画像7、I画像9およびK画像11は、それぞれ各浅溝83の画像を示している。各三角形の画像において円の中心側の頂点は、深溝81または浅溝83の深部側を示し、円の径外方向に位置する各三角形の画像の底辺は、深溝81または浅溝83の表面側を示している。浅溝83のA画像1およびG画像7を示す三角形の面積が他の浅溝83の画像3、5、9、11を示す三角形の面積より小さくなっている。これは、浅溝83のA画像1およびG画像7が他の浅溝83の画像3、5、9、11の画像より暗いことを示している。また、深溝81のB画像2およびH画像8を示す三角形の面積が他の深溝81の画像4、6、10、12を示す三角形の面積より小さくなっている。これは、深溝81のB画像2およびH画像8が他の深溝81の画像4、6、10、12より暗いことを示している。   The image input means 22 photoelectrically converts the light incident from the conical optical system 26 and transmits it to the image processing means 21. Image data input to the image processing means 21 is shown in FIG. In FIG. 5, only transmitted light is shown and the reflected light is not shown to simplify the description. In FIG. 5, it is assumed that the inside of each triangle is bright and the entire circle is dark. Triangular B image 2, D image 4, F image 6, H image 8, J image 10 and L image 12 show images of each deep groove 81, respectively, and triangular A image 1, C image 3, E image 5, The G image 7, the I image 9, and the K image 11 show images of the respective shallow grooves 83, respectively. In each triangle image, the vertex on the center side of the circle indicates the deep side of the deep groove 81 or the shallow groove 83, and the base of each triangle image located in the radially outward direction of the circle is the surface side of the deep groove 81 or the shallow groove 83. Is shown. The area of the triangle showing the A image 1 and the G image 7 of the shallow groove 83 is smaller than the area of the triangle showing the images 3, 5, 9, and 11 of the other shallow grooves 83. This indicates that the A image 1 and the G image 7 of the shallow groove 83 are darker than the images 3, 5, 9, and 11 of the other shallow grooves 83. Further, the area of the triangle indicating the B image 2 and the H image 8 of the deep groove 81 is smaller than the area of the triangle indicating the images 4, 6, 10, and 12 of the other deep grooves 81. This indicates that the B image 2 and the H image 8 of the deep groove 81 are darker than the images 4, 6, 10, and 12 of the other deep grooves 81.

画像処理手段21は、深溝81内の異物の有無を計測するため、取込んだ画像データを画像処理する。この画像処理手段21が行う画像処理の手順を図6のフローチャートに示す。
まず、画像処理手段21は、取込んだ画像データについて、画像全体を適切な明暗に調整するスケーリング処理を行う(S101)。次に、放射状に撮像された深溝81および浅溝83の画像の中心位置を検出する(S102)。そして、S102で検出した中心位置を基準として、放射状の画像を帯状の画像に変換する(S103)。
この状態の浅溝83および深溝81の画像を図8(A)に示す。図5と同様、三角形の内側の部分は明るくなっており、背景は暗くなっているものとする。浅溝83のA画像1およびG画像7が他の浅溝83の画像3、5、9、11の画像より暗くなっている。また、深溝81のB画像2およびH画像8が他の深溝81の画像4、6、10、12より暗くなっている。
The image processing means 21 performs image processing on the captured image data in order to measure the presence or absence of foreign matter in the deep groove 81. The procedure of image processing performed by the image processing means 21 is shown in the flowchart of FIG.
First, the image processing means 21 performs a scaling process for adjusting the entire image to appropriate brightness for the captured image data (S101). Next, the center positions of the images of the deep grooves 81 and the shallow grooves 83 captured radially are detected (S102). Then, using the center position detected in S102 as a reference, the radial image is converted into a strip image (S103).
An image of the shallow groove 83 and the deep groove 81 in this state is shown in FIG. As in FIG. 5, it is assumed that the inner part of the triangle is bright and the background is dark. The A image 1 and the G image 7 of the shallow groove 83 are darker than the images 3, 5, 9, and 11 of the other shallow grooves 83. Further, the B image 2 and the H image 8 of the deep groove 81 are darker than the images 4, 6, 10, 12 of the other deep grooves 81.

画像処理手段21は、後述する輝度補正方法によって深溝81の画像の輝度を補正する(S104)。輝度補正を行った後の深溝81および浅溝83の画像を図8(B)に示す。深溝81のB画像2およびH画像8を示す三角形の面積は、他の深溝81の画像と同等の大きさとなっており、深溝81のB画像2およびH画像8が光の減衰等の影響を受けていない輝度に近似したことを示している。深溝81のH画像8に異物領域13が示されている。
次に、画像処理手段21は、異物検査をする検査領域を作成し、所定の閾値で2値化処理を行う(S105)。本実施形態では、検査領域は、例えば、深溝81の深部から1.66mmに設定される。コンミテータ80は、深部から0.4mmの検査領域が、隣り合うセグメントの導電の防止に有効な領域である。
The image processing means 21 corrects the brightness of the image of the deep groove 81 by a brightness correction method described later (S104). FIG. 8B shows an image of the deep groove 81 and the shallow groove 83 after the luminance correction is performed. The area of the triangle indicating the B image 2 and the H image 8 of the deep groove 81 is the same size as the other deep groove 81 images, and the B image 2 and the H image 8 of the deep groove 81 are affected by light attenuation and the like. It shows that it approximated to the brightness that was not received. The foreign substance region 13 is shown in the H image 8 of the deep groove 81.
Next, the image processing means 21 creates an inspection area for foreign object inspection, and performs binarization processing with a predetermined threshold (S105). In the present embodiment, the inspection area is set to 1.66 mm from the deep part of the deep groove 81, for example. In the commutator 80, an inspection region of 0.4 mm from the deep portion is an effective region for preventing conduction between adjacent segments.

画像処理手段21は、クロージング演算またはオープニング演算等のモルフォロジーを行い、異物領域のノイズを除去する(S106)。次に、凸包領域を作成し、深溝本来の形状を表す画像とする(S107)。そして、S107で得られた画像と、S106で得られた画像との差分を検出する(S108)。これにより得られた差分から異物の有無を計測する(S109)。   The image processing means 21 performs a morphology such as a closing operation or an opening operation to remove noise in the foreign substance region (S106). Next, a convex hull region is created and used as an image representing the original shape of the deep groove (S107). Then, a difference between the image obtained in S107 and the image obtained in S106 is detected (S108). The presence / absence of a foreign object is measured from the difference thus obtained (S109).

次に、S104における輝度補正方法の手順を、図7のフローチャートに基づいて説明する。
まず、画像処理手段21は、各浅溝83の画像1、3、5、7、9、11の輝度、および各深溝81の画像2、4、6、8、10、12の輝度をそれぞれ計測する(S201)。ここで、円錐型光学系の中心軸sと深溝81および浅溝83の中心軸tとの芯ずれ、円錐型光学系の傾き、円錐型光学系の組成、および深溝81の有する異物等により、深溝81および浅溝83の画像の輝度は均一となっていない。しかし、深溝81の画像の輝度と浅溝83の画像の輝度とは所定の関係を有し、各深溝81の画像の輝度は、両隣の浅溝83の輝度と線形の関係を有している。そこで、画像処理手段21は、各深溝81の画像の輝度を補正するためのゲインを両隣の浅溝83の輝度を平均した輝度を利用して算出する(S202)。例えば、浅溝83のA画像1およびC画像3の輝度を平均した輝度を目標とし、深溝81のB画像2の輝度を補正するゲインを算出する。また、他の深溝81の画像の輝度を補正するゲインを、それぞれの深溝81の両隣に位置する浅溝83の画像の輝度を平均した輝度を目標として算出する。
そして、画像処理手段21は、S202で算出したゲインを利用し、深溝81の画像ごとに輝度を補正する(S203)。本実施形態では、径が0.2mm以内の異物を検出することが可能となる。
Next, the procedure of the luminance correction method in S104 will be described based on the flowchart of FIG.
First, the image processing means 21 measures the brightness of the images 1, 3, 5, 7, 9, 11 of each shallow groove 83 and the brightness of the images 2, 4, 6, 8, 10, 12 of each deep groove 81, respectively. (S201). Here, due to the misalignment between the center axis s of the conical optical system and the center axis t of the deep groove 81 and the shallow groove 83, the inclination of the conical optical system, the composition of the conical optical system, and the foreign matter included in the deep groove 81, etc. The brightness of the images of the deep groove 81 and the shallow groove 83 is not uniform. However, the brightness of the image of the deep groove 81 and the brightness of the image of the shallow groove 83 have a predetermined relationship, and the brightness of the image of each deep groove 81 has a linear relationship with the brightness of the adjacent shallow grooves 83. . Therefore, the image processing means 21 calculates a gain for correcting the luminance of the image of each deep groove 81 using the luminance obtained by averaging the luminance of the adjacent shallow grooves 83 (S202). For example, a gain that corrects the luminance of the B image 2 in the deep groove 81 is calculated by targeting the luminance obtained by averaging the luminances of the A image 1 and the C image 3 in the shallow groove 83. Further, the gain for correcting the brightness of the image of the other deep groove 81 is calculated with the brightness obtained by averaging the brightness of the images of the shallow grooves 83 located on both sides of each deep groove 81 as a target.
Then, the image processing unit 21 corrects the luminance for each image of the deep groove 81 using the gain calculated in S202 (S203). In the present embodiment, it is possible to detect a foreign object having a diameter of 0.2 mm or less.

本実施形態では、深溝81ごとに画像の輝度を補正するゲインを、深溝81の両隣の浅溝83の画像の輝度を平均した輝度を利用して算出している。一定の間隔で交互に配置される直線状の深溝81および浅溝83において、深溝81の画像の輝度と、この深溝81の両隣に位置する浅溝83の画像の輝度とは線形の関係を有する。このため、円錐型光学系の中心軸sと深溝81および浅溝83の中心軸tとの芯ずれ、円錐型光学系の傾き、円錐型光学系の組成、および照明または異物の影響等を受けていない深溝81の輝度を推定することができる。このため、深溝81の画像の異物領域が2値化処理の際に、背景または深溝81の画像に同化してしまうことを抑制することができる。この結果、深溝81の取込み画像の認識精度を向上し、精密な異物検査を行うことができる。
さらに、本実施形態では、ガイド31の有するテーパ面36とコンミテータ80の外縁89とを当接し、円錐型光学系26の中心軸sと浅溝83および深溝81の中心軸tとを同軸に調節している。これにより、円錐型光学系26を通過する光の減衰が抑制され、取込み画像の認識精度を向上することができる。
In the present embodiment, the gain for correcting the brightness of the image for each deep groove 81 is calculated using the brightness obtained by averaging the brightness of the images of the shallow grooves 83 on both sides of the deep groove 81. In linear deep grooves 81 and shallow grooves 83 that are alternately arranged at regular intervals, the luminance of the image of the deep groove 81 and the luminance of the image of the shallow groove 83 located on both sides of the deep groove 81 have a linear relationship. . Therefore, the center axis s of the conical optical system and the center axis t of the deep groove 81 and the shallow groove 83 are decentered, the inclination of the conical optical system, the composition of the conical optical system, and the influence of illumination or foreign matter. The brightness of the deep groove 81 that is not present can be estimated. For this reason, it can suppress that the foreign material area | region of the image of the deep groove 81 is assimilated with the image of the background or the deep groove 81 in the case of a binarization process. As a result, the recognition accuracy of the captured image of the deep groove 81 can be improved, and a precise foreign object inspection can be performed.
Furthermore, in this embodiment, the tapered surface 36 of the guide 31 and the outer edge 89 of the commutator 80 are brought into contact with each other, and the central axis s of the conical optical system 26 and the central axes t of the shallow groove 83 and the deep groove 81 are adjusted coaxially. is doing. Thereby, the attenuation of light passing through the conical optical system 26 is suppressed, and the recognition accuracy of the captured image can be improved.

(第2実施形態)
本発明の第2実施形態の異物検査装置を図13に示す。第1実施形態と実質的に同一の部材には同一の符号を付して説明を省略する。第2実施形態では、直方体に形成された被検査体90の溝91内の異物を検出する。被検査体90は、直線状のM溝〜Q溝91を等間隔に有している。各溝91の深さ、幅、長さは同じ大きさに形成されている。
図示しない光源から照射された光は、矢印45の方向から各溝91内を通り、画像入力手段22に入射する。画像入力手段22は、円錐型光学系26から入射した光を光電変換し、画像処理手段21へ伝送する。なお、被検査体の上面92に図示しないマスキングを取り付け、上方からの光の入射を遮断しても良い。
(Second Embodiment)
A foreign substance inspection apparatus according to a second embodiment of the present invention is shown in FIG. Components substantially the same as those in the first embodiment are denoted by the same reference numerals and description thereof is omitted. In 2nd Embodiment, the foreign material in the groove | channel 91 of the to-be-inspected object 90 formed in the rectangular parallelepiped is detected. The inspected object 90 has linear M grooves to Q grooves 91 at equal intervals. The depth, width, and length of each groove 91 are the same size.
Light emitted from a light source (not shown) passes through the grooves 91 from the direction of the arrow 45 and enters the image input means 22. The image input means 22 photoelectrically converts the light incident from the conical optical system 26 and transmits it to the image processing means 21. Note that masking (not shown) may be attached to the upper surface 92 of the object to be inspected to block the incidence of light from above.

画像修理手段21は、第1実施形態で説明したS101〜S109、およびS201〜S203の手順に従い画像処理を行い、溝91内の異物の有無を計測する。本実施形態では、S201〜S203の手順を図14〜図17に基づいてさらに詳しく説明する。
画像処理手段21は、各溝91の画像の輝度を測定する(S201)。画像処理手段21の測定したM溝〜Q溝91の画像の輝度に基づいて入力した波形を図14に示す。図14において、横軸の座標は、S103において帯状に変換した画像の横軸の座標に相当する。縦軸の濃度値は、この帯状の画像における縦軸方向に連続する画素の平均輝度に相当する。
画像処理手段21は、M溝〜Q溝91の画像に対応した波形ごとに平均値を算出する。この波形の平均値を図14に示す。次に、画像処理手段21は、M溝〜Q溝91の画像の輝度を補正し、M溝〜Q溝91の画像に対応した波形の平均値を、256階調の中間付近に設定した所定値に合わせる平均値調整処理を行う。この処理を行った後の波形を図15に示す。
The image repair means 21 performs image processing according to the procedures of S101 to S109 and S201 to S203 described in the first embodiment, and measures the presence or absence of foreign matter in the groove 91. In the present embodiment, the procedure of S201 to S203 will be described in more detail with reference to FIGS.
The image processing means 21 measures the brightness of the image of each groove 91 (S201). FIG. 14 shows a waveform input based on the brightness of the image of the M groove to Q groove 91 measured by the image processing means 21. In FIG. 14, the coordinate on the horizontal axis corresponds to the coordinate on the horizontal axis of the image converted into a band shape in S103. The density value on the vertical axis corresponds to the average luminance of pixels that are continuous in the vertical axis direction in this strip-shaped image.
The image processing means 21 calculates an average value for each waveform corresponding to the images of the M groove to the Q groove 91. The average value of this waveform is shown in FIG. Next, the image processing means 21 corrects the luminance of the image of the M-groove to Q-groove 91, and the average value of the waveform corresponding to the image of the M-groove to Q-groove 91 is set to the middle of 256 gradations. An average value adjustment process is performed according to the value. The waveform after this processing is shown in FIG.

画像処理手段21は、所定の溝の画像の輝度を補正するゲインを、所定の溝の両隣に位置する溝の画像の輝度を平均した輝度を利用して算出する(S202)。例えば、M溝91の画像およびO溝91の画像の輝度を平均した輝度を利用し、N溝の画像を補正するゲインを算出する。同じく、N溝91の画像およびP溝91の画像の輝度を平均した輝度を利用し、O溝の画像を補正するゲインを算出する。O溝91の画像およびQ溝91の画像の輝度を平均した輝度を利用し、P溝の画像を補正するゲインを算出する。
画像処理手段21は、S202で算出したゲインを利用し、M溝〜Q溝91の画像ごとに輝度を補正する(S203)。この補正によって、M溝〜Q溝91の画像に対応した波形が縦軸方向へ引き伸ばされる状態を図16に示す。M溝〜Q溝91の画像に対応した波形は、実線で示す波形から点線で示す波形へ、所定値を基準として相対的に引き伸ばされている。このようにして輝度補正が完了した状態を図17に示す。M溝〜Q溝91の画像に対応した波形は、広い範囲で濃度値が分布するものとなっている。
The image processing means 21 calculates a gain for correcting the luminance of the image of the predetermined groove using the luminance obtained by averaging the luminances of the images of the grooves located on both sides of the predetermined groove (S202). For example, the gain for correcting the N-groove image is calculated using the luminance obtained by averaging the luminance of the image of the M-groove 91 and the image of the O-groove 91. Similarly, a gain for correcting the image of the O-groove is calculated using the luminance obtained by averaging the luminance of the image of the N-groove 91 and the image of the P-groove 91. A gain that corrects the image of the P groove is calculated using the luminance obtained by averaging the luminance of the image of the O groove 91 and the image of the Q groove 91.
The image processing means 21 uses the gain calculated in S202 to correct the brightness for each image of the M-groove to Q-groove 91 (S203). FIG. 16 shows a state in which the waveform corresponding to the image of the M groove to the Q groove 91 is stretched in the vertical axis direction by this correction. The waveform corresponding to the images of the M-groove to Q-groove 91 is relatively stretched from the waveform indicated by the solid line to the waveform indicated by the dotted line with reference to a predetermined value. FIG. 17 shows a state where the brightness correction is completed in this way. The waveform corresponding to the image of the M-groove to Q-groove 91 has a distribution of density values over a wide range.

本実施形態では、所定の溝ごとに画像の輝度を補正するゲインを、所定の溝の両隣の溝の画像の輝度を平均した輝度を利用して算出している。一定の間隔で配置される直線状の溝において、所定の溝の画像の輝度と、この所定の溝の両隣に位置する溝の画像の輝度とは線形の関係を有する。このため、照明のばらつき等の影響を受けていない所定の溝の輝度を推定することができる。
さらに、画像処理手段21は、M溝〜Q溝91の画像の平均値を所定値に合わせる平均値調整処理を行った後、M溝〜Q溝91の画像ごとに輝度を補正している。このため、M溝〜Q溝91画像の輝度は、所定値を基準として相対的に補正される。これにより、2値化処理における閾値の余裕度を大きくすることが可能となり、異物領域が背景または溝の画像に同化してしまうことを抑制することができる。この結果、溝の取り込み画像の認識精度を向上し、精密な異物検査を行うことができる。
In the present embodiment, the gain for correcting the luminance of the image for each predetermined groove is calculated using the luminance obtained by averaging the luminances of the images of the grooves adjacent to the predetermined groove. In linear grooves arranged at regular intervals, the brightness of an image of a predetermined groove and the brightness of the images of grooves located on both sides of the predetermined groove have a linear relationship. For this reason, the brightness | luminance of the predetermined groove | channel which is not influenced by the dispersion | variation in illumination etc. can be estimated.
Further, the image processing unit 21 corrects the luminance for each image of the M-groove to Q-groove 91 after performing an average value adjusting process for matching the average value of the images of the M-groove to Q-groove 91 with a predetermined value. For this reason, the luminance of the M-groove to Q-groove 91 images is relatively corrected with reference to a predetermined value. As a result, the threshold margin in the binarization process can be increased, and the foreign matter area can be prevented from being assimilated into the background or groove image. As a result, it is possible to improve the recognition accuracy of the captured image of the groove and perform a precise foreign object inspection.

(他の実施形態)
上記第1実施形態では、深溝81と浅溝83とを有するコンミテータ80の深溝81内の異物を検出する画像処理方法について説明した。これに対し、深溝81のみを有するコンミテータ80の深溝内の異物を検出する画像処理方法に本発明を適用しても良い。
上記第2実施形態では、直方体に形成された被検査体90の溝91内の異物を検出する画像処理方法について説明した。これに対し、直線状の溝を規則的な間隔で3本以上有する被検査体であれば、様々な形状の被検査体に本発明を適用しても良く、深溝および浅溝を交互に有する被検査体に本発明を適用しても良い。
以上説明したように、本発明は上記実施形態に限定されるものではなく、その要旨を逸脱しない範囲で種々の形態に実施可能である。
(Other embodiments)
In the first embodiment, the image processing method for detecting the foreign matter in the deep groove 81 of the commutator 80 having the deep groove 81 and the shallow groove 83 has been described. On the other hand, the present invention may be applied to an image processing method for detecting foreign matter in the deep groove of the commutator 80 having only the deep groove 81.
In the second embodiment, the image processing method for detecting the foreign matter in the groove 91 of the inspected object 90 formed in a rectangular parallelepiped has been described. On the other hand, the present invention may be applied to an inspected object having various shapes as long as the inspected object has three or more linear grooves at regular intervals, and has deep grooves and shallow grooves alternately. You may apply this invention to a to-be-inspected object.
As described above, the present invention is not limited to the above-described embodiment, and can be implemented in various forms without departing from the gist thereof.

本発明の第1実施形態による異物検査装置の断面図。Sectional drawing of the foreign material inspection apparatus by 1st Embodiment of this invention. (A),(B)本発明の第1実施形態による異物検査装置の作動を示す図。(A), (B) The figure which shows the action | operation of the foreign material inspection apparatus by 1st Embodiment of this invention. 本発明の第1実施形態による円錐型光学系による光路を示す図。The figure which shows the optical path by the conical type optical system by 1st Embodiment of this invention. 本発明の第1実施形態による円錐型光学系による光路を示す図。The figure which shows the optical path by the conical type optical system by 1st Embodiment of this invention. 本発明の第1実施形態による浅溝および深溝の画像を示す模式図。The schematic diagram which shows the image of the shallow groove | channel and deep groove | channel by 1st Embodiment of this invention. 本発明の第1実施形態による画像処理方法を示すフローチャート。3 is a flowchart showing an image processing method according to the first embodiment of the present invention. 本発明の第1実施形態による画像処理方法を示すフローチャート。3 is a flowchart showing an image processing method according to the first embodiment of the present invention. (A),(B)本発明の第1実施形態による浅溝および深溝の画像を示す模式図。(A), (B) The schematic diagram which shows the image of the shallow groove | channel and deep groove | channel by 1st Embodiment of this invention. 本発明の第1実施形態による異物検査装置の検査対象となるコンミテータが用いられる燃料ポンプの断面図。Sectional drawing of the fuel pump with which the commutator used as the test object of the foreign material inspection apparatus by 1st Embodiment of this invention is used. 本発明の第1実施形態による異物検査装置の検査対象となるコンミテータの斜視図。The perspective view of the commutator used as the test object of the foreign material inspection apparatus by 1st Embodiment of this invention. 本発明の第1実施形態による異物検査装置の検査対象となるコンミテータの断面図。Sectional drawing of the commutator used as the test object of the foreign material inspection apparatus by 1st Embodiment of this invention. 本発明の第1実施形態による異物検査装置の検査対象となるコンミテータの要部断面図。The principal part sectional drawing of the commutator used as the test object of the foreign material inspection apparatus by 1st Embodiment of this invention. 本発明の第2実施形態による異物検査装置の模式図。The schematic diagram of the foreign material inspection apparatus by 2nd Embodiment of this invention. 本発明の第2実施形態による画像の輝度分布を示すグラフ。The graph which shows the luminance distribution of the image by 2nd Embodiment of this invention. 本発明の第2実施形態による画像の輝度分布を示すグラフ。The graph which shows the luminance distribution of the image by 2nd Embodiment of this invention. 本発明の第2実施形態による画像の輝度分布を示すグラフ。The graph which shows the luminance distribution of the image by 2nd Embodiment of this invention. 本発明の第2実施形態による画像の輝度分布を示すグラフ。The graph which shows the luminance distribution of the image by 2nd Embodiment of this invention.

符号の説明Explanation of symbols

20:異物検査装置、21:画像処理手段、22:画像入力手段、23:支柱、24:取付腕、25:支持腕、26:円錐型光学系、27:傾斜ガイド、28:マスキング、29:光源、31:ガイド、32:パレット、33:シリンダ、34:昇降台、35:コンベア、80:コンミテータ(被検査体) 20: foreign matter inspection device, 21: image processing means, 22: image input means, 23: support, 24: mounting arm, 25: support arm, 26: conical optical system, 27: tilt guide, 28: masking, 29: Light source, 31: guide, 32: pallet, 33: cylinder, 34: lifting platform, 35: conveyor, 80: commutator (inspection object)

Claims (5)

直線状の溝を一定の間隔で3本以上有する被検査体の前記溝内を通過する光を光電変換して取込んだ画像データにより前記溝内の異物の有無を計測する画像処理方法であって、
前記溝ごとの画像の輝度を計測する計測段階と、
所定の溝の両隣に位置する溝の画像の輝度を平均した輝度を利用し、前記所定の溝の画像の輝度を補正するゲインを算出するゲイン算出段階と、
前記ゲインを利用し、前記所定の溝の画像ごとに輝度を補正するゲイン補正段階と、
を含むことを特徴とするコンピュータによる画像処理方法。
An image processing method for measuring the presence or absence of foreign matter in the groove based on image data obtained by photoelectrically converting light passing through the groove of an object to be inspected having three or more linear grooves at regular intervals. And
A measurement stage for measuring the brightness of the image for each groove;
A gain calculating step of calculating a gain for correcting the brightness of the image of the predetermined groove using a brightness obtained by averaging the brightness of the images of the grooves located on both sides of the predetermined groove;
Using the gain, a gain correction step of correcting the brightness for each image of the predetermined groove,
A computer-processed image processing method.
請求項1記載のコンピュータによる画像処理方法において、
前記溝ごとの画像の輝度を補正し、前記溝ごとの画像の輝度の平均値を所定値に合わせる平均値調整段階をさらに含むことを特徴とするコンピュータによる画像処理方法。
The image processing method by a computer according to claim 1.
An image processing method by a computer, further comprising an average value adjustment step of correcting the luminance of the image for each groove and adjusting an average value of the luminance of the image for each groove to a predetermined value.
請求項1または2記載のコンピュータによる画像処理方法において、
前記被検査体は、直線状に形成された深溝および浅溝を一定の間隔で交互に有し、
前記計測段階では、前記深溝および前記浅溝の画像の輝度を計測し、
前記ゲイン算出段階では、前記深溝の両側に位置する前記浅溝の画像の輝度を平均した輝度を利用して前記深溝の画像の輝度を補正するゲインを算出し、
前記輝度補正段階では、前記ゲインを利用し、前記深溝の画像ごとに輝度を補正することを特徴とするコンピュータによる画像処理方法。
The image processing method by a computer according to claim 1 or 2,
The object to be inspected has deep grooves and shallow grooves formed in a straight line alternately at regular intervals,
In the measurement stage, the brightness of the image of the deep groove and the shallow groove is measured,
In the gain calculation step, a gain for correcting the brightness of the image of the deep groove is calculated using a brightness obtained by averaging the brightness of the image of the shallow groove located on both sides of the deep groove,
In the brightness correction stage, the gain is used to correct the brightness for each image of the deep groove, and the image processing method by a computer is characterized in that:
直線状に形成された前記深溝と前記浅溝とを一定の間隔で放射状に有する前記被検査体の溝内に光を照射する光源と、
前記深溝および前記浅溝の中心に挿入され、前記浅溝および前記深溝を通過した光を屈折する円錐型光学系と、
前記円錐型光学系から入射した光を光電変換する画像入力手段と、
請求項3に記載の画像処理方法を用いて、前記画像入力手段から伝送された画像データにより前記深溝内の異物の有無を計測する画像処理手段と、
を備えることを特徴とする異物検査装置。
A light source for irradiating light into the groove of the object to be inspected, which has the deep grooves and the shallow grooves formed linearly at a constant interval; and
A conical optical system that is inserted in the center of the deep groove and the shallow groove and refracts light that has passed through the shallow groove and the deep groove;
Image input means for photoelectrically converting light incident from the conical optical system;
Using the image processing method according to claim 3, image processing means for measuring the presence or absence of foreign matter in the deep groove based on image data transmitted from the image input means;
A foreign matter inspection apparatus comprising:
請求項4に記載の異物検査装置において、
前記画像入力手段側から前記被検査体側に向けて内径の広がるテーパ面を有する案内手段のテーパ面と前記被検査体の外縁とを当接し、前記円錐型光学系の中心軸と前記浅溝および前記深溝の中心軸とを同軸に調節する位置調節機構をさらに備えることを特徴とする異物検査装置。
The foreign matter inspection apparatus according to claim 4,
The tapered surface of the guide means having a tapered surface having an inner diameter extending from the image input means side toward the object to be inspected and the outer edge of the object to be inspected, the central axis of the conical optical system, the shallow groove, A foreign matter inspection apparatus further comprising a position adjustment mechanism that adjusts the central axis of the deep groove coaxially.
JP2008232693A 2008-09-10 2008-09-10 Image processing method and foreign matter inspecting device using the same Pending JP2010066126A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008232693A JP2010066126A (en) 2008-09-10 2008-09-10 Image processing method and foreign matter inspecting device using the same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008232693A JP2010066126A (en) 2008-09-10 2008-09-10 Image processing method and foreign matter inspecting device using the same

Publications (1)

Publication Number Publication Date
JP2010066126A true JP2010066126A (en) 2010-03-25

Family

ID=42191834

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008232693A Pending JP2010066126A (en) 2008-09-10 2008-09-10 Image processing method and foreign matter inspecting device using the same

Country Status (1)

Country Link
JP (1) JP2010066126A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024063471A1 (en) * 2022-09-19 2024-03-28 주식회사 엘지에너지솔루션 Apparatus and method for inspecting external appearance of product

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024063471A1 (en) * 2022-09-19 2024-03-28 주식회사 엘지에너지솔루션 Apparatus and method for inspecting external appearance of product

Similar Documents

Publication Publication Date Title
JP2020508465A (en) Method and device for inspection of assets
CN106164654B (en) Engagement state judgment method and molding machine
US11734811B2 (en) Inspection system and inspection method
US20200353623A1 (en) Inspection system
JPH08153566A (en) Automatic adjusting device for spark gap and eccentricity of multi-electrode spark plug
JP2010066126A (en) Image processing method and foreign matter inspecting device using the same
JP2008275623A (en) Measurement device for measuring parameter of blade rotor and measurement process for measuring with the device
JP2017040548A (en) Detection method, measurement method, and measurement device
JP2009109243A (en) Device for inspecting resin sealing material
JP2009092474A (en) Flash detection method for molded article
JP4234661B2 (en) Ball inspection method in wire bonding
US6893310B2 (en) Apparatus and method for adjusting spark gap of spark plug
CN107462187B (en) Method and device for determining light spot circle center during coaxiality detection of ceramic ferrule
JP2007196301A (en) Automatic operating apparatus and automatic operating method using image
JP2007198761A (en) Flaw detection method and detector
AU6683300A (en) Method and device for determining the width of a gap between a rotor and a stator
JP2006038775A (en) Image inspection device and image inspection method of transparent substrate for flat display panel
JP2007033295A (en) Inspection device
KR101576129B1 (en) Device for inspecting valve spring shape
JP2017009469A (en) Device for detection of terminal crimping failure
JP2009276108A (en) Image sensor surface inspection method
CN110907470A (en) Optical filter detection device and optical filter detection method
JP2008026254A (en) Visual examination system of rubber hose
JP2014232082A (en) Pattern inspection method and pattern inspection device
JP5458755B2 (en) Line-shaped object height measuring apparatus, line-shaped object height measuring method used for the apparatus, and line-shaped object height measuring control program