JP5852858B2 - Terminal inspection apparatus and terminal inspection method - Google Patents

Terminal inspection apparatus and terminal inspection method Download PDF

Info

Publication number
JP5852858B2
JP5852858B2 JP2011254669A JP2011254669A JP5852858B2 JP 5852858 B2 JP5852858 B2 JP 5852858B2 JP 2011254669 A JP2011254669 A JP 2011254669A JP 2011254669 A JP2011254669 A JP 2011254669A JP 5852858 B2 JP5852858 B2 JP 5852858B2
Authority
JP
Japan
Prior art keywords
terminal
gap
light
bifurcated
color light
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.)
Active
Application number
JP2011254669A
Other languages
Japanese (ja)
Other versions
JP2013108863A (en
Inventor
隆洋 川口
隆洋 川口
朝輝 大石
朝輝 大石
健 渡邉
健 渡邉
理恵 今村
理恵 今村
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yazaki Corp
Original Assignee
Yazaki 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 Yazaki Corp filed Critical Yazaki Corp
Priority to JP2011254669A priority Critical patent/JP5852858B2/en
Publication of JP2013108863A publication Critical patent/JP2013108863A/en
Application granted granted Critical
Publication of JP5852858B2 publication Critical patent/JP5852858B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、コネクタ等に設けられる二股形状端子の隙間が正常であるか否かを検査する端子検査装置及び端子検査方法に関する。   The present invention relates to a terminal inspection apparatus and a terminal inspection method for inspecting whether or not a gap between bifurcated terminals provided in a connector or the like is normal.

例えば、車両に搭載するコネクタに搭載する端子として、従来より二股形状端子が用いられている(例えば、特許文献1参照)。図10に示すように、該二股形状端子11(以下、「端子11」と略す)は、先端が2方向に分岐しており、その先端部11a,11bは丸みを有している。更に、2つの先端部11a,11bは、隙間距離dだけ隔てて設けられている。   For example, a bifurcated terminal is conventionally used as a terminal mounted on a connector mounted on a vehicle (see, for example, Patent Document 1). As shown in FIG. 10, the bifurcated terminal 11 (hereinafter abbreviated as “terminal 11”) has its tip branched in two directions, and its tips 11a and 11b are rounded. Further, the two tip portions 11a and 11b are provided to be separated by a gap distance d.

また、端子11はプレス抜き加工により製造されており、端子11をコネクタハウジングに取り付ける際に、先端部11a,11bの隙間距離(図10に示すd)が正常であるか否かを検査する必要がある。このような検査は、多数の端子を短時間で検査する必要があるので、従来より、端子検査装置を用いた検査が行われている。   Further, the terminal 11 is manufactured by press punching, and when the terminal 11 is attached to the connector housing, it is necessary to inspect whether or not the gap distance (d shown in FIG. 10) between the end portions 11a and 11b is normal. There is. Since such an inspection needs to inspect a large number of terminals in a short time, an inspection using a terminal inspection apparatus has been conventionally performed.

図11は、従来における端子検査装置の構成を模式的に示す説明図であり、図示のように、測定対象となる端子11の長手方向(軸方向)から該端子11に向けて(矢印r1)青色光を照射する青色光発光部12と、端子11の長手方向に対して所定の角度を有する方向(矢印r2,r3)から赤色光を照射する2つの赤色光発光部13a,13bと、撮影方向が端子11の長手方向を向き、端子11にて反射した光(矢印r4)を撮影するカメラ(撮影手段)14と、を有している。なお、図11に示す端子11は、二股形状端子11を側面方向から見た図であり、符号「A」の方向から見ると、図10に示すように二股形状をなしている。そして、コントローラ101に設けられる光照射部111の制御により、各発光部12,13a,13bが制御される。   FIG. 11 is an explanatory view schematically showing the configuration of a conventional terminal inspection apparatus. As shown in the figure, from the longitudinal direction (axial direction) of the terminal 11 to be measured toward the terminal 11 (arrow r1). A blue light emitting unit 12 that emits blue light, two red light emitting units 13a and 13b that emit red light from directions (arrows r2 and r3) having a predetermined angle with respect to the longitudinal direction of the terminal 11, and photographing And a camera (photographing means) 14 for photographing the light reflected by the terminal 11 (arrow r4). Note that the terminal 11 shown in FIG. 11 is a view of the bifurcated terminal 11 as viewed from the side, and when viewed from the direction of the symbol “A”, it has a bifurcated shape as shown in FIG. And each light emission part 12, 13a, 13b is controlled by control of the light irradiation part 111 provided in the controller 101. FIG.

また、カメラ14で撮影された画像は、画像解析部112にて青色、赤色の領域が解析され、隙間演算部113では、画像解析部112による解析結果に基づいて端子11の先端部11a,11bの隙間距離dを測定する。そして、良否判定部114は、測定された隙間距離dが所定の範囲内の数値である場合には良品であると判定し、所定の範囲内の数値でない場合には不良品であると判定する。この判定結果は、表示器121に表示される。更に、コントローラ101は、電力を供給するための電源部115を備えている。   In addition, the image captured by the camera 14 is analyzed for blue and red regions by the image analysis unit 112, and the gap calculation unit 113 analyzes the tip portions 11 a and 11 b of the terminal 11 based on the analysis result by the image analysis unit 112. The gap distance d is measured. The pass / fail determination unit 114 determines that the measured gap distance d is a non-defective product when the measured gap distance d is a numerical value within a predetermined range, and determines that the measured product is a defective product when the measured gap distance d is not a numerical value within the predetermined range. . The determination result is displayed on the display 121. The controller 101 further includes a power supply unit 115 for supplying power.

次に、図11に示す画像解析部112、及び隙間演算部113における処理について説明する。上述したように、青色光発光部12は、端子11の軸方向から該端子11の先端方向に向けて青色光を照射し、2つの赤色光発光部13a,13bは、それぞれ端子11の軸方向に対して傾斜した方向から光を照射する。従って、丸みを有する先端部11a,11b(図10参照)では光が多方向に反射するので、カメラ14にて撮影される先端部11a,11bの画像は赤色となる。また、先端部11a,11b以外の領域では軸方向から照射した青色光が反射してカメラ14に取り込まれるので、その画像は青色となる。   Next, processing in the image analysis unit 112 and the gap calculation unit 113 illustrated in FIG. 11 will be described. As described above, the blue light emitting unit 12 emits blue light from the axial direction of the terminal 11 toward the distal end direction of the terminal 11, and the two red light emitting units 13a and 13b are respectively in the axial direction of the terminal 11. The light is irradiated from a direction inclined with respect to. Accordingly, since the light is reflected in multiple directions at the rounded tip portions 11a and 11b (see FIG. 10), the images of the tip portions 11a and 11b photographed by the camera 14 are red. In addition, in the regions other than the tip portions 11a and 11b, the blue light irradiated from the axial direction is reflected and taken into the camera 14, so that the image is blue.

その結果、画像解析部112では、例えば図2(a)に示すように、端子11の先端部11a,11bが赤色で、その周囲が青色となる画像を取得することができ、隙間演算部113は、赤色の領域を抽出することにより、隙間距離dを求めることができる。   As a result, the image analysis unit 112 can acquire an image in which the tip portions 11a and 11b of the terminal 11 are red and the surroundings are blue as shown in FIG. Can extract the gap distance d by extracting the red region.

ところで、上述したように、端子11はプレス抜き加工で製造されるので、プレス抜き加工時の板厚や型の状況により断面状態(端子11の側面の状態)が変化することが多々あり得る。以下、プレス抜き加工の動作と、断面状態との関係について説明する。   By the way, as described above, since the terminal 11 is manufactured by press punching, the cross-sectional state (the state of the side surface of the terminal 11) can often change depending on the thickness of the plate and the state of the mold at the time of press punching. Hereinafter, the relationship between the operation of the punching process and the cross-sectional state will be described.

図12は、プレス抜き加工で材料をプレス抜きするときの様子を示す説明図であり、ダイの上に平板金属の材料を載置し、更に、パンチを下降させることにより、材料を打ち抜く。即ち、図12(a)、(b)、(c)の順に材料が打ち抜かれる。   FIG. 12 is an explanatory view showing a state in which a material is punched by press punching. A flat metal material is placed on a die, and the punch is lowered to punch the material. That is, the material is punched in the order of FIGS. 12 (a), (b), and (c).

図13は、プレス抜き加工により加工された端子11の断面の様子を示す説明図である。図示のように、平板形状の金属をプレス抜き加工したときの断面は、滑らかな曲率を有するダレa1、光沢があり縦筋を有するせん断面a2、材料をむしりとった形状の破断面a3、及びギザギザを有するバリa4、の4層構造となる。   FIG. 13 is an explanatory view showing a state of a cross section of the terminal 11 processed by press punching. As shown in the drawing, the cross-section when a plate-shaped metal is punched out is a sag a1 having a smooth curvature, a shear surface a2 having a glossy vertical line, a fracture surface a3 having a shape stripped of material, and It becomes a four-layer structure of burr a4 having jagged edges.

ここで、せん断面a2は、表面が平坦であるから照射された光は正反射する。即ち、端子11の軸方向から照射される青色光は直線的に反射してカメラ14に入光する。他方、破断面a3は表面にムラがあるので照射され光は拡散反射する。即ち、端子11に対して傾斜した方向から照射される赤色光は多方向に乱反射し、このうちの一部がカメラ14に入光する。従って、カメラ14で撮影される画像は、せん断面a2の部分は青色成分が多く含まれ、破断面a3の部分は赤色成分が多く含まれる画像として撮影されることとなる。   Here, since the surface of the shear plane a2 is flat, the irradiated light is regularly reflected. That is, the blue light irradiated from the axial direction of the terminal 11 is linearly reflected and enters the camera 14. On the other hand, since the fracture surface a3 has unevenness on the surface, the irradiated light is diffusely reflected. That is, red light irradiated from a direction inclined with respect to the terminal 11 is diffusely reflected in multiple directions, and a part of the red light enters the camera 14. Therefore, in the image photographed by the camera 14, the shear plane a2 portion includes a large amount of blue component, and the fracture surface a3 includes a portion including a large amount of red component.

一方、プレス抜き加工機では、ダイとパンチとの間のクリアランス(ダイの周面とパンチの周面との間の距離)の大きさに応じて、上記の4層構造が大きく変化することが知られている。具体的には、クリアランスが適正な場合には上述した図13に示した4層構造となるが、クリアランスが過小の場合には、図14(a)に示すように2次せん断面a5が発生する。この際、2次せん断面a5は、表面に凹凸が多く発生するので、赤色、青色共に集光されず、カメラ14で撮影される画像は全体が暗くなってしまう。また、クリアランスが過大の場合には、図14(b)に示すように破断面a3の領域が広くなり、カメラ14で撮影される画像は赤色の領域が多くなってしまう。   On the other hand, in a press punching machine, the above four-layer structure may change greatly depending on the size of the clearance between the die and the punch (the distance between the peripheral surface of the die and the peripheral surface of the punch). Are known. Specifically, when the clearance is appropriate, the four-layer structure shown in FIG. 13 is obtained, but when the clearance is too small, a secondary shear surface a5 is generated as shown in FIG. 14 (a). To do. At this time, since the secondary shear surface a5 has many irregularities on the surface, neither red nor blue is condensed, and the entire image taken by the camera 14 becomes dark. Further, when the clearance is excessive, the area of the fracture surface a3 is widened as shown in FIG. 14B, and the image captured by the camera 14 has many red areas.

従って、図14(a),(b)のように、端子11の断面の状態によって、カメラ14で撮影される画像の青色、赤色の領域が変化してしまい、一定の基準で赤色領域、青色領域を判別して先端部11a,11bの隙間距離dを求めると、測定精度に大きな誤差を含む場合が発生し、状況によっては測定ができなくなるという問題が発生する。なお、図14(a),(b)に示した側面状態は、共に端子11としては良品であり、実用上何等問題は生じない。   Accordingly, as shown in FIGS. 14A and 14B, the blue and red regions of the image photographed by the camera 14 change depending on the state of the cross section of the terminal 11, and the red region and the blue region are fixed on a constant basis. If the gap distance d between the tip portions 11a and 11b is determined by determining the region, there may be a case where the measurement accuracy includes a large error, and there is a problem that measurement cannot be performed depending on the situation. Note that the side surface states shown in FIGS. 14A and 14B are both non-defective as the terminal 11 and do not cause any problem in practice.

また、図12に示したダイとパンチクリアランスを一定に保持すれば上記の問題は軽減されるが、クリアランスは工作機械のメンテナンスが行われる毎に変化してしまい、一定に保持することは容易でない。   Further, if the die and punch clearance shown in FIG. 12 are kept constant, the above problem is reduced, but the clearance changes every time the machine tool is maintained, and it is not easy to keep it constant. .

特開2009−245605号公報JP 2009-245605 A

上述したように、従来における端子検査装置では、端子11の側面の状態に応じて、光の反射特性が変化するので、同一の基準で先端部11a,11b間の隙間距離dを測定すると、測定精度が低下することや、測定自体ができなくなってしまうという問題があった。   As described above, in the conventional terminal inspection apparatus, since the light reflection characteristics change according to the state of the side surface of the terminal 11, when the gap distance d between the tips 11a and 11b is measured with the same reference, the measurement is performed. There were problems that accuracy was lowered and measurement itself could not be performed.

本発明は、このような従来の課題を解決するためになされたものであり、その目的とするところは、二股形状端子の側面の状態が変化した場合であっても高精度に先端部の間の隙間距離を測定することが可能な端子検査装置、及び端子検査方法を提供することにある。   The present invention has been made to solve such a conventional problem, and the object of the present invention is to provide a high-accuracy gap between the tip portions even when the state of the side surface of the bifurcated terminal changes. It is an object of the present invention to provide a terminal inspection device and a terminal inspection method capable of measuring the gap distance.

上記目的を達成するため、本願請求項1に記載の端子検査装置は、二股形状端子の隙間を検査する端子検査装置において、前記二股形状端子の長手方向に対して平行となる軸方向から、該二股形状端子に向けて第1の色彩光(例えば、青色光)を照射する第1の照射手段と、前記軸方向に対して所定角度傾斜した方向から前記二股形状端子に向けて第2の色彩光(例えば、赤色光)を照射する第2の照射手段と、前記二股形状端子に照射された第1の色彩光、及び第2の色彩光の反射光を撮影する撮影手段と、前記撮影手段で撮影された画像から、第1の色彩光、及び第2の色彩光を抽出し、この抽出結果に基づいて前記二股形状端子の隙間距離を求める隙間演算手段と、を備え、前記隙間演算手段は、前記二股形状端子の側面状態に応じて、該二股形状端子の先端部のエッジ部分であると判定する閾値となる色相が設定され、この色相に基づいて前記先端部のエッジを検出し、2つの先端部のエッジ間距離を求める複数の隙間演算プログラムを記憶する記憶部、を含み、前記第1の色彩光、及び第2の色彩光の抽出結果に基づいて、前記側面状態を判定し、判定された側面状態に対応する前記隙間演算プログラムを用いて、前記二股形状端子の隙間距離を求めることを特徴とする。 In order to achieve the above object, a terminal inspection apparatus according to claim 1 of the present application is a terminal inspection apparatus for inspecting a gap between bifurcated terminals from an axial direction parallel to the longitudinal direction of the bifurcated terminals. A first irradiating means for irradiating a first color light (for example, blue light) toward the bifurcated terminal; and a second color from the direction inclined by a predetermined angle with respect to the axial direction toward the bifurcated terminal. A second irradiating means for irradiating light (for example, red light), a first chromatic light irradiated on the bifurcated terminal, and a photographing means for photographing reflected light of the second chromatic light; and the photographing means. A gap calculating means for extracting the first color light and the second color light from the image photographed in step, and obtaining a gap distance between the bifurcated terminals based on the extraction result, the gap calculating means in response to a side surface state of the forked terminal The bifurcated hue becoming the determining threshold value as an edge portion of the tip portion of the terminal is set, based on the hue detecting the edge of the tip, a plurality of gaps for obtaining the distance between the edges of the two tips A storage unit for storing a calculation program, wherein the gap state calculation program corresponding to the determined side surface state is determined based on the extraction result of the first color light and the second color light. Is used to determine the gap distance between the forked terminals.

請求項に記載の発明は、前記隙間演算手段は、前記撮影手段にて撮影される画像の、前記二股形状端子の各先端部の間となる隙間領域の画像に含まれる前記第1の色彩光の色彩成分、及び第2の色彩光の色彩成分の量に応じて、前記側面状態を分類することを特徴とする。 According to a second aspect of the present invention, the gap calculating means includes the first color included in an image of a gap area between the tips of the bifurcated terminals of the image taken by the photographing means. The side surface state is classified according to the amount of the color component of light and the color component of the second color light.

請求項に記載の発明は、前記隙間演算手段は、前記隙間領域を、2つの前記先端部どうしを結ぶ線に対して平行となる方向の中心線により上側領域、下側領域に区分し、上側領域の色彩成分、及び下側成分の色彩成分に基づいて、上側領域または下側領域を選別エリアとして選択し、選択された選別エリアの色彩成分に基づいて前記側面状態を判定することを特徴とする。 In the invention according to claim 3 , the gap calculation means divides the gap area into an upper area and a lower area by a center line in a direction parallel to a line connecting the two tip portions. The upper region or the lower region is selected as a selection area based on the color component of the upper region and the color component of the lower component, and the side surface state is determined based on the color component of the selected selection area. And

請求項に記載の発明は、前記第1の色彩光は青色光であり、前記第2の色彩光は赤色光であることを特徴とする。 The invention according to claim 4 is characterized in that the first color light is blue light and the second color light is red light.

請求項に記載の端子検査方法は、二股形状端子の隙間を検査する端子検査方法において、前記二股形状端子の長手方向に対して平行となる軸方向から、該二股形状端子に向けて第1の色彩光を照射する第1の色彩光照射工程と、前記軸方向に対して所定角度傾斜した方向から前記二股形状端子に向けて第2の色彩光を照射する第2の色彩光照射工程と、前記二股形状端子に照射された第1の色彩光、及び第2の色彩光の反射光を撮影手段にて撮影する撮影工程と、前記撮影手段で撮影された画像から、第1の色彩光、及び第2の色彩光を抽出し、この抽出結果に基づいて、前記二股形状端子の側面状態に応じた複数の隙間演算プログラムが記憶される記憶部から、適切な隙間演算プログラムを選択し、この隙間演算プログラムを用いて前記二股形状端子の隙間距離を求める隙間演算工程と、を備え、前記隙間演算プログラムは、前記側面状態に応じて、前記二股形状端子の先端部のエッジ部分であると判定する閾値となる色相が設定され、この色相に基づいて前記先端部のエッジを検出し、2つの先端部のエッジ間距離を求めるプログラムであることを特徴とする。 The terminal inspection method according to claim 5 is a terminal inspection method for inspecting a gap between the bifurcated terminals, from the axial direction parallel to the longitudinal direction of the bifurcated terminals, toward the bifurcated terminals. A first color light irradiation step of irradiating the color light of the second color light, and a second color light irradiation step of irradiating the second color light toward the bifurcated terminal from a direction inclined at a predetermined angle with respect to the axial direction; From the photographing step of photographing the first chromatic light irradiated on the bifurcated terminal and the reflected light of the second chromatic light by the photographing means, and the first colored light from the image photographed by the photographing means The second color light is extracted, and based on the extraction result, an appropriate gap calculation program is selected from a storage unit that stores a plurality of gap calculation programs according to the side surface state of the bifurcated terminal, Using this gap calculation program And a gap calculation step for determining a gap distance crotch shape terminal, the clearance calculation program, in response to said side surface state, the hue becoming the determining threshold value as an edge portion of the tip portion of the bifurcated terminal sets And a program for detecting an edge of the tip portion based on the hue and calculating a distance between the edges of the two tip portions .

本発明の請求項1,の発明では、二股形状端子の軸方向から第1の色彩光を照射し、軸方向に対して傾斜した方向から第2の色彩光を照射し、これらの反射光を撮影した画像に基づいて二股形状端子の先端部のエッジを検出し、2つの先端部のエッジに基づいて先端部の隙間を求める。この際、撮影された画像から先端部の側面形状を推定し、推定した側面形状に応じた隙間演算プログラムを用いて隙間を算出する。従って、二股形状端子の側面状態が異なる場合であっても先端部のエッジを高精度に求めることができ、良品、不良品の判断を高精度に行うことが可能となる。 According to the first and fifth aspects of the present invention, the first color light is irradiated from the axial direction of the bifurcated terminal, the second color light is irradiated from the direction inclined with respect to the axial direction, and the reflected light thereof. The edge of the tip portion of the bifurcated terminal is detected based on the image obtained by photographing the two, and the gap between the tip portions is obtained based on the edges of the two tip portions. At this time, the side shape of the tip is estimated from the captured image, and the gap is calculated using a gap calculation program corresponding to the estimated side shape. Therefore, even when the side surface state of the bifurcated terminal is different, the edge of the tip portion can be obtained with high accuracy, and it is possible to determine whether the product is good or defective with high accuracy.

更に、各隙間演算プログラムに閾値となる色相が設定され、この色相を基準として先端部のエッジを求めるので、エッジ間距離を高精度に求めることが可能となる。 Furthermore , a hue as a threshold is set in each gap calculation program, and the edge of the tip is obtained with reference to this hue, so that the distance between the edges can be obtained with high accuracy.

請求項の発明では、二股形状端子の2つの先端部の間である隙間領域の画像に含まれる色彩成分に基づいて側面状態を分類する。即ち、二股形状端子の側面状態に応じて、隙間領域の色彩成分が変化するので、この色彩成分を用いることにより、側面状態を高精度に分類することが可能となる。 In the invention of claim 2 , the side surface state is classified based on the color components included in the image of the gap region between the two tip portions of the bifurcated terminal. In other words, since the color component of the gap region changes according to the side surface state of the bifurcated terminal, the side surface state can be classified with high accuracy by using this color component.

請求項の発明では、隙間領域を上側領域と下側領域に区分し、各領域の色彩成分に基づいて、側面状態を判定する際の選別エリアを選択するので、より一層高精度な側面状態の分類が可能となる。 In the invention of claim 3 , the gap area is divided into an upper area and a lower area, and a selection area for determining the side face state is selected based on the color component of each area. Can be classified.

請求項の発明では、第1の色彩光を青色光とし、第2の色彩光を赤色光とするので、両者のコントラストの関係から、先端部のエッジを高精度に検出することができ、ひいては端子先端部の隙間距離を高精度に求めることが可能となる。 In the invention of claim 4 , since the first color light is blue light and the second color light is red light, the edge of the tip can be detected with high accuracy from the relationship between the contrast between the two, As a result, it becomes possible to obtain | require the clearance gap of a terminal front-end | tip part with high precision.

本発明の実施形態に係る端子検査装置の構成を示すブロック図である。It is a block diagram which shows the structure of the terminal inspection apparatus which concerns on embodiment of this invention. 本発明の実施形態に係る端子検査装置で撮影される、A状態〜D状態の各端子画像を模式的に示す説明図である。It is explanatory drawing which shows typically each terminal image of A state-D state image | photographed with the terminal test | inspection apparatus which concerns on embodiment of this invention. 本発明の実施形態に係る端子検査装置で撮影される、A状態〜D状態の各端子画像の色相分布を示す図である。It is a figure which shows the hue distribution of each terminal image of A state-D state image | photographed with the terminal inspection apparatus which concerns on embodiment of this invention. 本発明の実施形態に係る端子検査装置で撮影される端子、及び隙間の画像を模式的に示す説明図である。It is explanatory drawing which shows typically the image image | photographed with the terminal image | photographed with the terminal inspection apparatus which concerns on embodiment of this invention, and a clearance gap. 本発明の第1,第2実施形態に係る端子検査装置の、処理手順を示すフローチャートである。It is a flowchart which shows the process sequence of the terminal inspection apparatus which concerns on 1st, 2nd embodiment of this invention. 本発明の第1実施形態に係る端子検査装置の、端子選別処理を示すフローチャートである。It is a flowchart which shows the terminal selection process of the terminal inspection apparatus which concerns on 1st Embodiment of this invention. 本発明の第1実施形態に係る端子検査装置の、色検査処理を行う際の画像領域を示す説明図である。It is explanatory drawing which shows the image area | region at the time of performing a color inspection process of the terminal inspection apparatus which concerns on 1st Embodiment of this invention. 本発明の第2実施形態に係る端子検査装置の、端子選別処理を示すフローチャートである。It is a flowchart which shows the terminal selection process of the terminal inspection apparatus which concerns on 2nd Embodiment of this invention. 本発明の第2実施形態に係る端子検査装置の、色検査処理を行う際の画像領域を示す説明図である。It is explanatory drawing which shows the image area | region at the time of performing a color test | inspection process of the terminal test | inspection apparatus which concerns on 2nd Embodiment of this invention. 従来における端子検査装置の構成を示すブロック図である。It is a block diagram which shows the structure of the conventional terminal inspection apparatus. 本発明に係る端子検査装置で検査する端子の先端部を示す説明図である。It is explanatory drawing which shows the front-end | tip part of the terminal test | inspected with the terminal test | inspection apparatus which concerns on this invention. プレス抜き加工で端子を製造する様子を示す説明図である。It is explanatory drawing which shows a mode that a terminal is manufactured by press punching. プレス抜き加工で製造される端子の、通常の断面を示す説明図である。It is explanatory drawing which shows the normal cross section of the terminal manufactured by press punching. プレス抜き加工機のクリアランスが大きい場合及び小さい場合の、端子断面の様子を示す説明図である。It is explanatory drawing which shows the mode of a terminal cross section when the clearance of a press punching machine is large and small.

以下、本発明の実施形態を図面に基づいて説明する。   Hereinafter, embodiments of the present invention will be described with reference to the drawings.

[第1実施形態の構成説明]
図1は、本発明の実施形態に係る端子検査装置の構成を示すブロック図である。図1に示すように、この端子検査装置は、測定対象となる端子11の長手方向(軸方向)から該端子11に向けて青色光(第1の色彩光)を照射する青色光発光部(第1の照射手段)12と、端子11の長手方向に対して所定の角度を有する方向から赤色光(第2の色彩光)を照射する2つの赤色光発光部(第2の照射手段)13a,13bと、端子11にて反射した光を導入して撮影するカメラ(撮影手段)14と、を備えている。そして、これらはコントローラ21により制御される。
[Description of Configuration of First Embodiment]
FIG. 1 is a block diagram showing a configuration of a terminal inspection apparatus according to an embodiment of the present invention. As shown in FIG. 1, the terminal inspection apparatus includes a blue light emitting unit (irradiating blue light (first color light) from the longitudinal direction (axial direction) of the terminal 11 to be measured toward the terminal 11. (First irradiating means) 12 and two red light emitting sections (second irradiating means) 13 a that irradiate red light (second colored light) from a direction having a predetermined angle with respect to the longitudinal direction of the terminal 11. , 13b, and a camera (photographing means) 14 for photographing by introducing light reflected by the terminal 11. These are controlled by the controller 21.

コントローラ21は、青色光発光部12及び各赤色光発光部13a,13bに制御信号を出力して光の照射を制御する光照射部22と、カメラ14で撮影された画像を解析して青色光、及び赤色光が存在する領域を検出する画像解析部23と、画像解析部23で検出された赤色光領域、及び青色光領域に基づいて、端子の側面状態(詳細は後述する)を選別する端子選別部24と、を有している。   The controller 21 outputs a control signal to the blue light emitting unit 12 and the red light emitting units 13a and 13b to control the light irradiation, and analyzes the image captured by the camera 14 to analyze the blue light. And an image analysis unit 23 for detecting a region where red light is present, and a side surface state (details will be described later) of the terminal based on the red light region and the blue light region detected by the image analysis unit 23 And a terminal selection unit 24.

更に、各端子状態毎の隙間演算プログラムを記憶する記憶部を含み、端子選別部24にて端子状態が選別された際に、この選別された端子状態に対応する隙間演算プログラムを読み出し、この隙間演算プログラムを実行して先端部11a,11b間の隙間距離dを算出する隙間演算部(隙間演算手段)25と、隙間演算部25で求められた隙間距離dの大きさに応じて、この端子11が良品であるか、或いは不良品であるかを判定する良否判定部26と、を備えている。また、コントローラ21を作動させるための電力を供給する電源部27を備えている。   Furthermore, a storage unit for storing a clearance calculation program for each terminal state is included, and when the terminal state is selected by the terminal selection unit 24, a clearance calculation program corresponding to the selected terminal state is read, and this clearance A gap calculation unit (gap calculation means) 25 that calculates a gap distance d between the distal end portions 11a and 11b by executing a calculation program, and this terminal according to the size of the gap distance d obtained by the gap calculation unit 25 A pass / fail judgment unit 26 that judges whether 11 is a non-defective product or a defective product. Moreover, the power supply part 27 which supplies the electric power for operating the controller 21 is provided.

更に、コントローラ21は、表示器31に接続され、カメラ14で撮影された画像、及び良否判定部26による判定結果は、該表示器31に表示される。なお、図1に示すコントローラ21は、例えば、中央演算ユニット(CPU)や、RAM、ROM、ハードディスク等の記憶手段からなる一体型のコンピュータとして構成することができる。   Further, the controller 21 is connected to the display device 31, and the image taken by the camera 14 and the determination result by the quality determination unit 26 are displayed on the display device 31. The controller 21 shown in FIG. 1 can be configured as an integrated computer including a central processing unit (CPU) and storage means such as a RAM, a ROM, and a hard disk.

[端子の側面状態について]
次に、端子11の側面状態と、カメラ14で撮影される画像に含まれる青色領域、及び赤色領域との関係について説明する。端子11の側面状態は、前述の図13に示した正常な状態(以下、「A状態」という)、図14(a)に示した2次せん断面a5が存在する状態(以下、「B状態」という)、図14(b)に示した破断面a3が多い状態(以下、「C状態」という)、及び、端子11の先端がえぐれている状態(以下、「D状態」という)に大別される。なお、A状態、B状態、C状態は、側面の状態が異なるのみであるので、全て良品であり、また、D状態についても先端部がえぐられているものの、端子としては実用上問題無いので良品として取り扱う。
[Terminal side condition]
Next, the relationship between the side surface state of the terminal 11 and the blue region and red region included in the image captured by the camera 14 will be described. The side surface state of the terminal 11 includes the normal state shown in FIG. 13 (hereinafter referred to as “A state”) and the state where the secondary shear surface a5 shown in FIG. 14A exists (hereinafter referred to as “B state”). ”), A state in which there are many fractured surfaces a3 shown in FIG. 14B (hereinafter referred to as“ C state ”), and a state in which the tip of the terminal 11 is blanked (hereinafter referred to as“ D state ”). Separated. The A state, the B state, and the C state are different from each other only in the state of the side surface, and are all non-defective, and the tip portion of the D state is also removed, but there is no practical problem as a terminal. Handle as good.

図2(a)は、端子11の側面がA状態である場合の、カメラ14で撮影された画像を示す説明図であり、先端部11a,11bの部分が赤色(但し、上側の一部に青みかかった部分が存在する)とされ、その他の部分が青色とされている。   FIG. 2A is an explanatory diagram showing an image taken by the camera 14 when the side surface of the terminal 11 is in the A state, and the tip portions 11a and 11b are red (however, a part on the upper side). The other part is blue.

図2(b)は、端子11の側面がB状態である場合の、カメラ14で撮影された画像を示す説明図であり、各先端部11a,11bの中央部が暗みかかった画像となり、また、各先端部11a,11bの隙間領域についても同様に暗みかかった画像となっている。即ち、B状態では2次せん断面a5(図14(b)参照)が存在するものの、この表面には凹凸が多く発生しているので、全体的青色、及び赤色がカメラ14に集光されず、全体が暗みかかった画像となる。   FIG. 2B is an explanatory diagram showing an image taken by the camera 14 when the side surface of the terminal 11 is in the B state, and the center portion of each of the tip portions 11a and 11b is an image that is dark. In addition, the gap region between the tip portions 11a and 11b is also a dark image. That is, in the B state, there is a secondary shear surface a5 (see FIG. 14B), but since there are many irregularities on this surface, the overall blue and red colors are not condensed on the camera 14. The whole image becomes dark.

図2(c)は、端子11の側面がC状態である場合の、カメラ14で撮影された画像を示す説明図であり、先端部11a,11bが赤色とされ、更に、隙間領域についても同様に赤みかかった画像となっている。   FIG. 2C is an explanatory view showing an image photographed by the camera 14 when the side surface of the terminal 11 is in the C state, the tip portions 11a and 11b are red, and the same applies to the gap region. The image is reddish.

図2(d)は、端子11の側面がD状態である場合の、カメラ14で撮影された画像を示す説明図であり、先端部11a,11bのえぐれた部分が青色で表示されている。   FIG. 2D is an explanatory view showing an image photographed by the camera 14 when the side surface of the terminal 11 is in the D state, and the hollow portions of the tip portions 11a and 11b are displayed in blue.

そして、本実施形態に係る端子検査装置では、画像全体の色相から端子の側面状態が上述したA状態、B状態、C状態、D状態のうちのいずれに属するかを推定し、推定した側面状態に基づいて、それぞれの隙間演算プログラムを用いて、先端部11a,11b間の隙間距離d(図10参照)を算出する。具体的には、先端部11a,11bのエッジを検出する際の色抽出条件を側面状態毎に変更して隙間距離dを算出する。   And in the terminal inspection apparatus which concerns on this embodiment, it is estimated from the hue of the whole image whether the side surface state of a terminal belongs to the A state, B state, C state, or D state mentioned above, and the estimated side surface state Based on the above, the gap distance d (see FIG. 10) between the tip portions 11a and 11b is calculated using the respective gap calculation programs. Specifically, the gap distance d is calculated by changing the color extraction conditions for detecting the edges of the tips 11a and 11b for each side state.

[色抽出条件の説明]
次に、A状態、B状態、C状態及びD状態の、色抽出条件について図3,図4を参照して説明する。図3は、カメラ14で撮影された画像に含まれる色相の分布と、色相環との関係を示す説明図であり、図4は、反射光を取得する領域を示す説明図である。
[Description of color extraction conditions]
Next, color extraction conditions in the A state, the B state, the C state, and the D state will be described with reference to FIGS. FIG. 3 is an explanatory diagram showing the relationship between the distribution of hues included in an image photographed by the camera 14 and the hue circle, and FIG. 4 is an explanatory diagram showing an area for obtaining reflected light.

図3(a)は、端子11の先端部11a,11bがA状態のときの、カメラ14で撮影される画像に含まれる色相分布を示しており、曲線p1は図4に示す領域q2の光分布である端子反射光分布を示し、曲線p2は図4に示す領域q1の光分布である隙間反射光分布を示している。また、横軸は色相環を示しており、左端から右端に向けて「緑」「黄色」「赤」「紫」「青」「水色」「緑」の順に変化しており、実際には左端と右端が繋がる円環状である。そして、図3(a)では、曲線p1は色相が「赤」となる領域にピークが存在しており、曲線p2は色相が「青」となる領域にピークが存在している。従って、先端部11aのエッジ部e(先端部11aと隙間部となる領域q1との境界)は、図3(a)の符号e1に示す色相となる。   FIG. 3A shows the hue distribution included in the image taken by the camera 14 when the tip portions 11a and 11b of the terminal 11 are in the A state, and the curve p1 indicates the light in the region q2 shown in FIG. The terminal reflected light distribution as the distribution is shown, and the curve p2 shows the gap reflected light distribution as the light distribution in the region q1 shown in FIG. Also, the horizontal axis shows the hue circle, and changes from left to right in the order of “green” “yellow” “red” “purple” “blue” “light blue” “green”. And the right end of the ring. In FIG. 3A, the curve p1 has a peak in a region where the hue is “red”, and the curve p2 has a peak in a region where the hue is “blue”. Therefore, the edge portion e of the distal end portion 11a (the boundary between the distal end portion 11a and the region q1 serving as the gap portion) has a hue indicated by reference sign e1 in FIG.

図3(b)は、端子11の先端部11a,11bがB状態のときの、カメラ14で撮影される画像に含まれる色相分布を示しており、曲線p3は領域q2の光分布である端子反射光分布を示し、曲線p4は領域q1の光分布である隙間反射光分布を示している。上述したように、B状態では先端部11a,11bで反射する光が暗くなる傾向があるので、曲線p3は、色相が「赤」から若干「青」側にシフトした領域にピークが存在している。また、曲線p4は、色相が「青」から若干「赤」側にシフトした領域にピークが存在している。そして、この場合には先端部11aのエッジ部eは、図3(b)の符号e2に示す色相となる。   FIG. 3B shows the hue distribution included in the image photographed by the camera 14 when the tip portions 11a and 11b of the terminal 11 are in the B state, and the curve p3 is a terminal that is the light distribution in the region q2. The reflected light distribution is shown, and the curve p4 shows the gap reflected light distribution that is the light distribution in the region q1. As described above, in the B state, the light reflected by the tip portions 11a and 11b tends to be dark. Therefore, the curve p3 has a peak in a region where the hue is slightly shifted from “red” to “blue”. Yes. The curve p4 has a peak in a region where the hue is slightly shifted from “blue” to “red”. In this case, the edge portion e of the distal end portion 11a has a hue indicated by a symbol e2 in FIG.

図3(c)は、端子11の先端部11a,11bがC状態のときの、カメラ14で撮影される画像に含まれる色相分布を示しており、曲線p5は領域q2の光分布である端子反射光分布を示し、曲線p6は領域q1の光分布である隙間反射光分布を示している。上述したように、C状態では先端部11a,11bで反射する光がより赤くなる傾向があるので、曲線p5は、色相が「赤」から若干「黄色」側にシフトした領域にピークが存在している。また、曲線p6は、色相が「青」から「赤」側にシフトした領域にピークが存在している。そして、この場合には先端部11aのエッジ部eは、図3(c)の符号e3に示す色相となる。   FIG. 3C shows the hue distribution included in the image taken by the camera 14 when the tip portions 11a and 11b of the terminal 11 are in the C state, and the curve p5 is a terminal that is the light distribution in the region q2. The reflected light distribution is shown, and the curve p6 shows the gap reflected light distribution which is the light distribution in the region q1. As described above, in the C state, the light reflected by the tip portions 11a and 11b tends to be red. Therefore, the curve p5 has a peak in a region where the hue is slightly shifted from “red” to the “yellow” side. ing. The curve p6 has a peak in a region where the hue is shifted from “blue” to “red”. In this case, the edge portion e of the distal end portion 11a has a hue indicated by a symbol e3 in FIG.

図3(d)は、端子11の先端部11a,11bがD状態のときの、カメラ14で撮影される画像に含まれる色相分布を示しており、曲線p7は領域q2の光分布である端子反射光分布を示し、曲線p8は領域q1の光分布である隙間反射光分布を示している。上述したように、D状態では先端部11a,11bで反射する光が青くなる傾向があるので、曲線p7は、色相が「赤」から若干「青」側にシフトした領域にピークが存在している。また、曲線p8は、色相が「青」から「緑」側にシフトした領域にピークが存在している。そして、この場合には先端部11aのエッジ部eは、図3(d)の符号e4に示す色相となる。   FIG. 3D shows the hue distribution included in the image photographed by the camera 14 when the tip portions 11a and 11b of the terminal 11 are in the D state, and the curve p7 is a terminal that is the light distribution in the region q2. The reflected light distribution is shown, and the curve p8 shows the gap reflected light distribution that is the light distribution in the region q1. As described above, in the D state, the light reflected by the tip portions 11a and 11b tends to be blue. Therefore, the curve p7 has a peak in a region where the hue is slightly shifted from “red” to “blue”. Yes. The curve p8 has a peak in a region where the hue is shifted from “blue” to “green”. In this case, the edge portion e of the distal end portion 11a has a hue indicated by a symbol e4 in FIG.

そして、各端子状態毎に、上記したe1〜e4に示した色相を基準として、先端部11aのエッジを認識することができる。即ち、本実施形態では、上記の4状態の特徴を踏まえて、端子11の色抽出条件を各状態毎に変更することにより、端子状態に応じたエッジ検出を行う。そして、検出したエッジに基づく隙間測定処理を実行する。   And the edge of the front-end | tip part 11a can be recognized on the basis of the hue shown to above-mentioned e1-e4 for every terminal state. That is, in the present embodiment, edge detection corresponding to the terminal state is performed by changing the color extraction condition of the terminal 11 for each state based on the characteristics of the above four states. Then, a gap measurement process based on the detected edge is executed.

[第1実施形態の動作説明]
次に、本発明の第1実施形態にかかる端子検査装置の処理動作を、図5,図6に示すフローチャートを参照して説明する。
[Description of Operation of First Embodiment]
Next, the processing operation of the terminal inspection apparatus according to the first embodiment of the present invention will be described with reference to the flowcharts shown in FIGS.

端子11の隙間検査が開始されると、図1に示す光照射部は、青色光発光部12より端子11に向けて青色光を照射させ、且つ、2つの赤色光発光部13a,13bより端子11に向けて赤色光を照射させる。   When the gap inspection of the terminal 11 is started, the light irradiation unit shown in FIG. 1 irradiates the blue light from the blue light emitting unit 12 toward the terminal 11 and the terminals from the two red light emitting units 13a and 13b. 11 is irradiated with red light.

そして、カメラ14は、端子11で反射した光を撮影し、撮影した画像データを画像解析部23に出力する。この画像は表示器31に表示される。また、画像解析部23は、画像中に含まれる色相を検出し、更に、隙間演算部25は、検出した色相と基準となる色相との関係から端子11の2つの先端部11a,11bのエッジを検出する。この処理では、隙間演算部25は、図3(a)に示したエッジe1が設定されているので、このエッジe1を用いて各先端部11a,11bのエッジを検出し、この隙間距離dを求める(図5のステップS11)。   The camera 14 captures the light reflected by the terminal 11 and outputs the captured image data to the image analysis unit 23. This image is displayed on the display 31. Further, the image analysis unit 23 detects the hue included in the image, and the gap calculation unit 25 further detects the edges of the two end portions 11a and 11b of the terminal 11 from the relationship between the detected hue and the reference hue. Is detected. In this process, since the edge e1 shown in FIG. 3A is set, the gap calculation unit 25 detects the edge of each of the tip portions 11a and 11b using this edge e1, and sets the gap distance d. Obtained (step S11 in FIG. 5).

そして、求められた隙間距離dが予め設定している良品の範囲内となるか否かを判定し(ステップS12)、良品の範囲内であると判定された場合には(ステップS12でYES)、良否判定部26は、この端子11は良品であるものと判定する。この判定結果は表示器31に表示される。   Then, it is determined whether or not the obtained gap distance d is within a preset good product range (step S12), and if it is determined that it is within the good product range (YES in step S12). The pass / fail judgment unit 26 judges that the terminal 11 is a non-defective product. The determination result is displayed on the display 31.

他方、ステップS11で求められた隙間距離dが良品の範囲内でないと判定された場合には(ステップS12でNO)、ステップS14において、端子選別処理を実行する。   On the other hand, if it is determined that the gap distance d obtained in step S11 is not within the non-defective range (NO in step S12), terminal selection processing is executed in step S14.

以下、端子選別処理の詳細な処理手順を、図6に示すフローチャートを参照して説明する。初めに、画像解析部23は、端子11の各先端部11a,11bの隙間領域(図7に示すR1の領域)の画像の色相を検査する(ステップS31)。   Hereinafter, a detailed processing procedure of the terminal selection processing will be described with reference to a flowchart shown in FIG. First, the image analysis unit 23 inspects the hue of the image in the gap region (region R1 shown in FIG. 7) between the tip portions 11a and 11b of the terminal 11 (step S31).

次いで、画像解析部23は、隙間領域R1に含まれる色相の「青」成分を評価し、「青」の色相が閾値よりも多いか否かを判定する(ステップS32)。そして、「青」の色相が閾値以上であると判定された場合には(ステップS32でHi)、端子選別部24は、端子11の側面はD状態であるものと判断する(ステップS34)。従って、図4(d)に示したエッジe4の色相を用いて、端子11の先端部11a,11bを検出する。   Next, the image analysis unit 23 evaluates the “blue” component of the hue included in the gap region R1, and determines whether the hue of “blue” is greater than the threshold (step S32). If it is determined that the hue of “blue” is equal to or greater than the threshold value (Hi in step S32), the terminal selection unit 24 determines that the side surface of the terminal 11 is in the D state (step S34). Therefore, the tip portions 11a and 11b of the terminal 11 are detected using the hue of the edge e4 shown in FIG.

一方、ステップS32の処理において、「青」の色相が閾値未満であると判定された場合には(ステップS32でLow)、画像解析部23は、隙間領域R1に含まれる色相の「赤」成分を評価し、「赤」の色相が閾値よりも多いか否かを判定する(ステップS33)。そして、「赤」の色相が閾値以上であると判定された場合には(ステップS33でHi)、端子選別部24は、端子11の側面はC状態であるものと判断する(ステップS35)。従って、図4(c)に示したエッジe3の色相を用いて、端子11の先端部11a,11bを検出する。   On the other hand, when it is determined in the process of step S32 that the hue of “blue” is less than the threshold (Low in step S32), the image analysis unit 23 performs the “red” component of the hue included in the gap region R1. Is evaluated and it is determined whether or not the hue of “red” is greater than the threshold (step S33). If it is determined that the hue of “red” is equal to or greater than the threshold (Hi in Step S33), the terminal selection unit 24 determines that the side surface of the terminal 11 is in the C state (Step S35). Therefore, the tip portions 11a and 11b of the terminal 11 are detected using the hue of the edge e3 shown in FIG.

また、ステップS33の処理において、「赤」の色相が閾値未満であると判定された場合には(ステップS33でLow)、端子選別部24は、端子11の側面はB状態であるものと判断する(ステップS36)。従って、図4(b)に示したエッジe2の色相を用いて、端子11の先端部11a,11bを検出する。   If it is determined in step S33 that the hue of “red” is less than the threshold (Low in step S33), the terminal selection unit 24 determines that the side surface of the terminal 11 is in the B state. (Step S36). Therefore, the tip portions 11a and 11b of the terminal 11 are detected using the hue of the edge e2 shown in FIG.

そして、ステップS34,S35,S36の処理で決定した各状態に基づいて、エッジe2〜e4のうちのいずれかを選択し、隙間演算部25は、選択したエッジを用いて先端部11a,11b間の隙間距離dを求める(図5のステップS15)。その後、求めた隙間距離dが良品の範囲内であるか否かを判定し(ステップS16)、この範囲内であれば、この端子11は良品であると判定し(ステップS13)、この範囲内でなければ、この端子11は不良品であると判定する(ステップS17)。   And based on each state determined by the process of step S34, S35, S36, either one of the edges e2-e4 is selected, and the gap | interval calculating part 25 uses the selected edge, and between front-end | tip parts 11a and 11b Is obtained (step S15 in FIG. 5). Thereafter, it is determined whether or not the obtained gap distance d is within a non-defective range (step S16). If it is within this range, it is determined that the terminal 11 is non-defective (step S13). Otherwise, it is determined that the terminal 11 is a defective product (step S17).

こうして、端子の側面の状態に応じた条件に基づいて、隙間を検査することにより、高精度な隙間測定ができるのである。   Thus, the gap can be measured with high accuracy by inspecting the gap based on the condition according to the state of the side surface of the terminal.

このようにして、第1実施形態に係る端子検査装置では、基準となる閾値を用いて端子11の隙間距離dを測定した結果、良品でないと判定された場合には、そのまま不良品とするのではなく、端子11の側面の状態に応じて、隙間距離dを演算する条件を設定して再度隙間距離dを計算している。従って、良品を不良品と誤判定する確率を低減させ、より高精度に端子11の先端部の状態を検査することが可能となる。   As described above, in the terminal inspection apparatus according to the first embodiment, when the gap distance d between the terminals 11 is measured using the reference threshold value, and it is determined that the product is not a good product, it is regarded as a defective product. Instead, according to the state of the side surface of the terminal 11, the condition for calculating the gap distance d is set and the gap distance d is calculated again. Therefore, it is possible to reduce the probability of erroneously determining a non-defective product as a defective product, and to inspect the state of the tip portion of the terminal 11 with higher accuracy.

また、プレス抜き加工機での加工条件によらず、良品、不良品の判定ができるので、作業者による頻繁な設定調整が不要となる。更に、画像を誤判定することによるラインの停止を削減でき、作動効率を向上させることができる。   In addition, since a non-defective product or a defective product can be determined regardless of the processing conditions of the press punching machine, frequent setting adjustments by the operator are unnecessary. Furthermore, line stoppage due to erroneous determination of an image can be reduced, and operating efficiency can be improved.

[第2実施形態の説明]
次に、本実施形態に係る端子検査装置の第2実施形態について説明する。装置構成は、前述した図1と同一であり、第2実施形態では、図5に示したフローチャートのステップS14の処理手順のみが相違する。以下、第2実施形態に係る端子検査装置の処理手順を、図8に示すフローチャートを参照して説明する。
[Description of Second Embodiment]
Next, a second embodiment of the terminal inspection apparatus according to this embodiment will be described. The apparatus configuration is the same as that in FIG. 1 described above, and only the processing procedure of step S14 in the flowchart shown in FIG. 5 is different in the second embodiment. Hereinafter, the processing procedure of the terminal inspection apparatus according to the second embodiment will be described with reference to the flowchart shown in FIG.

初めに、画像解析部23は、端子11の各先端部11a,11bの隙間領域を上下に分類し(図9に示す上部隙間領域R2a、下部隙間領域R2b)、それぞれの隙間領域において画像の色相を検査する(ステップS51)。   First, the image analysis unit 23 classifies the gap regions of the tip portions 11a and 11b of the terminal 11 in the vertical direction (upper gap region R2a and lower gap region R2b shown in FIG. 9), and the hue of the image in each gap region. Is inspected (step S51).

次いで、画像解析部23は、上部隙間領域R2a、及び下部隙間領域R2bに含まれる「青」成分、及び「赤」成分を検出する。ここで、「青」の色相は、0〜255の256段階で規定され、同様に「赤」の色相は、0〜255の256段階で規定されることとする。   Next, the image analysis unit 23 detects the “blue” component and the “red” component included in the upper gap region R2a and the lower gap region R2b. Here, the hue of “blue” is defined in 256 levels from 0 to 255, and similarly, the hue of “red” is defined in 256 levels from 0 to 255.

そして、ステップS52の処理において、各色相の成分評価を行い、評価の結果に基づいて、選別エリアを選定する(ステップS54)。具体的には、上部隙間領域R2aに含まれる青色の成分量が「220」を上回った場合にはこの上部隙間領域R2aを選別エリアとして選定する。また、上部隙間領域R2aに含まれる青色の成分量が「220」以下であり、且つ、下部隙間領域R2bに含まれる青色の成分量が「220」を上回った場合には下部隙間領域R2bを選別エリアとして選択する。   Then, in the process of step S52, component evaluation of each hue is performed, and a selection area is selected based on the evaluation result (step S54). Specifically, when the blue component amount included in the upper gap region R2a exceeds “220”, the upper gap region R2a is selected as the selection area. Further, when the blue component amount included in the upper gap region R2a is “220” or less and the blue component amount included in the lower gap region R2b exceeds “220”, the lower gap region R2b is selected. Select as area.

更に、上下共に青色の成分量が「220」以下であり、且つ、上部隙間領域R2aに含まれる赤色の成分量が「80」を上回った場合には、上部隙間領域R2aを選別エリアとして選択し、上部隙間領域R2aに含まれる赤色の成分量が「80」以下であり、且つ、下部隙間領域R2bに含まれる赤色の成分量が「80」を上回った場合には、下部隙間領域R2bを選別エリアとして選択する。   Furthermore, when the blue component amount is “220” or less in both the upper and lower portions and the red component amount included in the upper gap region R2a exceeds “80”, the upper gap region R2a is selected as the selection area. When the red component amount contained in the upper gap region R2a is “80” or less and the red component amount contained in the lower gap region R2b exceeds “80”, the lower gap region R2b is selected. Select as area.

更に、上記以外の場合には、上部隙間領域R2aに含まれる青色の成分量と、下部隙間領域R2bに含まれる青色の成分量とを比較し(ステップS53)、青色の成分量が大きい方を選別エリアとして選択する(ステップS54)。その後、選択された選別エリアの画像を用いて、下記のステップS55〜S61の処理により、端子11の側面状態がB状態、C状態、D状態のいずれであるかを判別する。   In cases other than the above, the amount of blue component contained in the upper gap region R2a is compared with the amount of blue component contained in the lower gap region R2b (step S53). It selects as a selection area (step S54). Thereafter, using the image of the selected sorting area, it is determined whether the side surface state of the terminal 11 is the B state, the C state, or the D state by the processes in steps S55 to S61 described below.

まず、ステップS55において、第1選別処理を実行する。この処理では、選別された領域(R2aまたはR2b)の画像(以下、単に「画像」という)中の青色の成分量が「210」を上回っているか否かを判定する。そして、「210」を上回っている場合には、端子11の側面はD状態であるものと判断する(ステップS62)。即ち、画像中の青色の度合いが大きい場合には、図2(d)に示したように、端子11にえぐれが生じている可能性が高いのでD状態であるものと判断する。   First, in step S55, a first selection process is executed. In this process, it is determined whether or not the blue component amount in the image (hereinafter simply referred to as “image”) of the selected region (R2a or R2b) exceeds “210”. If it exceeds “210”, it is determined that the side surface of the terminal 11 is in the D state (step S62). That is, when the degree of blue color in the image is large, it is determined that the terminal 11 is in the D state because there is a high possibility that the terminal 11 has a gap as shown in FIG.

ステップS56において、第2選別処理を実行する。この処理では、画像中の赤色の成分量が「95」を上回っているか否かを判定する。そして、「95」を上回っている場合には、端子11の側面はC状態であるものと判断する(ステップS63)。即ち、画像中の赤色の度合いが大きい場合には、図14(b)、図2(c)に示したように、破断面の領域が大きい可能性が高いのでC状態であるものと判断する。   In step S56, the second sorting process is executed. In this process, it is determined whether or not the red component amount in the image exceeds “95”. If it exceeds “95”, it is determined that the side surface of the terminal 11 is in the C state (step S63). That is, when the degree of red in the image is large, as shown in FIGS. 14B and 2C, it is highly likely that the area of the fractured surface is large, so it is determined that the state is the C state. .

ステップS57において、第3選別処理を実行する。この処理では、画像中の青色の成分量が「160」を上回っているか否かを判定する。即ち、赤色成分が「95」以下という条件下で、青色の成分量が「160」を上回っているか否かを判定する。そして、「160」を上回っている場合には、端子11の側面はD状態であるものと判断する(ステップS62)。   In step S57, a third sorting process is executed. In this process, it is determined whether or not the blue component amount in the image exceeds “160”. That is, it is determined whether or not the amount of blue component exceeds “160” under the condition that the red component is “95” or less. If “160” is exceeded, it is determined that the side surface of the terminal 11 is in the D state (step S62).

ステップS58において、第4選別処理を実行する。この処理では、画像中の赤色の成分量が「60」を上回っているか否かを判定する。即ち、青色成分が「160」以下という条件下で、赤色の成分量が「60」を上回っているか否かを判定する。そして、「60」を上回っている場合には、端子11の側面はB状態であるものと判断する(ステップS64)。即ち、画像中の赤色成分がある程度存在し、且つ青色の成分量が低い場合には、画像全体が暗いものと判断できるので、図14(a)、図2(b)に示したように、せん断面の領域が大きい可能性が高いのでB状態であるものと判断する。   In step S58, the fourth sorting process is executed. In this process, it is determined whether or not the red component amount in the image exceeds “60”. That is, it is determined whether or not the red component amount exceeds “60” under the condition that the blue component is “160” or less. If it exceeds “60”, it is determined that the side surface of the terminal 11 is in the B state (step S64). That is, when the red component in the image is present to some extent and the blue component amount is low, it can be determined that the entire image is dark, so as shown in FIGS. 14 (a) and 2 (b), Since there is a high possibility that the area of the shear plane is large, it is determined that the state is the B state.

ステップS59において、第5選別処理を実行する。この処理では、画像中の青色の成分量が「140」を上回っているか否かを判定する。即ち、赤色成分が「60」以下という条件下で、青色の成分量が「140」を上回っているか否かを判定する。そして、「140」を上回っている場合には、端子11の側面はD状態であるものと判断する(ステップS62)。   In step S59, the fifth sorting process is executed. In this process, it is determined whether or not the blue component amount in the image exceeds “140”. That is, it is determined whether or not the blue component amount exceeds “140” under the condition that the red component is “60” or less. If it exceeds “140”, it is determined that the side surface of the terminal 11 is in the D state (step S62).

ステップS60において、第6選別処理を実行する。この処理では、画像中の青色の成分量が「80」を上回っているか否かを判定する。そして、「80」を上回っている場合には、端子11の側面はB状態であるものと判断する(ステップS64)。   In step S60, a sixth sorting process is executed. In this process, it is determined whether or not the blue component amount in the image exceeds “80”. If it exceeds “80”, it is determined that the side surface of the terminal 11 is in the B state (step S64).

ステップS61において、第7選別処理を実行する。この処理では、画像中の赤色の成分量が「40」を上回っているか否かを判定する。即ち、青色成分が「80」以下という条件下で、赤色の成分量が「40」を上回っているか否かを判定する。そして、「40」を上回っている場合には、端子11の側面はC状態であるものと判断する(ステップS63)。他方、「40」以下である場合には、端子11の側面はB状態であるものと判断する(ステップS64)。   In step S61, a seventh sorting process is executed. In this process, it is determined whether or not the red component amount in the image exceeds “40”. That is, it is determined whether the red component amount exceeds “40” under the condition that the blue component is “80” or less. If it exceeds “40”, it is determined that the side surface of the terminal 11 is in the C state (step S63). On the other hand, if it is “40” or less, it is determined that the side surface of the terminal 11 is in the B state (step S64).

こうして、選別された領域(R1aまたはR1b)の画像に含まれる青色の成分量、及び赤色の成分量に基づいて、複数段階に亘って弁別することにより、より高精度にB状態、C状態、或いはD状態の分類を行うことができるのである。その後の処理については、前述した図5で示したステップS15〜S17の処理と同一であるので説明を省略する。   Thus, by discriminating over a plurality of stages based on the blue component amount and the red component amount contained in the image of the selected region (R1a or R1b), the B state, the C state, Alternatively, the D state can be classified. The subsequent processing is the same as the processing in steps S15 to S17 shown in FIG.

このようにして、第2実施形態に係る端子検査装置では、基準となる閾値を用いて端子11の隙間距離dを測定した結果、良品でないと判定された場合には、そのまま不良品とするのではなく、端子11の側面の状態に応じて、隙間を演算する条件を設定して再度隙間距離dを計算するので、良品を不良品であると誤判定する確率を低減させ、より高精度に端子11の先端部の状態を検査することが可能となる。   As described above, in the terminal inspection apparatus according to the second embodiment, when the gap distance d of the terminal 11 is measured using the reference threshold value, and it is determined that the terminal 11 is not a good product, it is regarded as a defective product. Instead, the condition for calculating the gap is set according to the state of the side surface of the terminal 11 and the gap distance d is calculated again. Therefore, the probability of misjudging a non-defective product as a defective product is reduced, and the accuracy is increased. The state of the tip of the terminal 11 can be inspected.

また、プレス抜き加工機での加工条件によらず、良品、不良品の判定ができるので、作業者による頻繁な設定調整が不要となる。更に、画像を誤判定することによるラインの停止を削減でき、作動効率を向上させることができる。   In addition, since a non-defective product or a defective product can be determined regardless of the processing conditions of the press punching machine, frequent setting adjustments by the operator are unnecessary. Furthermore, line stoppage due to erroneous determination of an image can be reduced, and operating efficiency can be improved.

以上、本発明の端子検査装置及び端子検査方法を図示の実施形態に基づいて説明したが、本発明はこれに限定されるものではなく、各部の構成は、同様の機能を有する任意の構成のものに置き換えることができる。   The terminal inspection apparatus and the terminal inspection method of the present invention have been described above based on the illustrated embodiment. However, the present invention is not limited to this, and the configuration of each unit is an arbitrary configuration having the same function. Can be replaced with something.

例えば、上述した実施形態では、第1の色彩光として青色光を用い、第2の色彩光として赤色光を用いる例について説明したが、本発明はこれに限定されるものではなく、色彩のコントラストを用いて識別可能な色彩であれば、他の色彩光を用いることも可能である。   For example, in the above-described embodiment, an example in which blue light is used as the first color light and red light is used as the second color light has been described. However, the present invention is not limited to this, and the color contrast is not limited thereto. Any other color light can be used as long as the color can be identified using.

また、上述した実施形態では、端子11の側面状態をA状態、B状態、C状態、D状態の4つに分類する例について説明したが、これらの分類は一例を示したものであり、5以上に分類することも可能であり、また、2つ、3つの状態に分類することも可能である。   In the above-described embodiment, the example in which the side surface state of the terminal 11 is classified into four states of the A state, the B state, the C state, and the D state has been described. It is possible to classify into the above, and it is also possible to classify into two or three states.

本発明は、端子の側面状態によらず高精度に隙間距離を測定することに利用することができる。   The present invention can be used to measure the gap distance with high accuracy regardless of the side surface state of the terminal.

11 二股形状端子(端子)
11a,11b 先端部
12 青色光発光部
13a,13b 赤色光発光部
14 カメラ
21 コントローラ
22 光照射部
23 画像解析部
24 端子選別部
25 隙間演算部
26 良否判定部
27 電源部
31 表示器
R1 隙間領域
R2a 上部隙間領域
R2b 下部隙間領域
11 Bifurcated terminal (terminal)
11a, 11b Tip part 12 Blue light emitting part 13a, 13b Red light emitting part 14 Camera 21 Controller 22 Light irradiation part 23 Image analysis part 24 Terminal selection part 25 Gap calculation part 26 Pass / fail judgment part 27 Power supply part 31 Display R1 Gap area R2a Upper gap area R2b Lower gap area

Claims (5)

二股形状端子の隙間を検査する端子検査装置において、
前記二股形状端子の長手方向に対して平行となる軸方向から、該二股形状端子に向けて第1の色彩光を照射する第1の照射手段と、
前記軸方向に対して所定角度傾斜した方向から前記二股形状端子に向けて第2の色彩光を照射する第2の照射手段と、
前記二股形状端子に照射された第1の色彩光、及び第2の色彩光の反射光を撮影する撮影手段と、
前記撮影手段で撮影された画像から、第1の色彩光、及び第2の色彩光を抽出し、この抽出結果に基づいて前記二股形状端子の隙間距離を求める隙間演算手段と、
を備え、
前記隙間演算手段は、
前記二股形状端子の側面状態に応じて、該二股形状端子の先端部のエッジ部分であると判定する閾値となる色相が設定され、この色相に基づいて前記先端部のエッジを検出し、2つの先端部のエッジ間距離を求める複数の隙間演算プログラムを記憶する記憶部、を含み、
前記第1の色彩光、及び第2の色彩光の抽出結果に基づいて、前記側面状態を判定し、判定された側面状態に対応する前記隙間演算プログラムを用いて、前記二股形状端子の隙間距離を求めることを特徴とする端子検査装置。
In the terminal inspection device that inspects the gap between the bifurcated terminals,
A first irradiating means for irradiating first colored light toward the bifurcated terminal from an axial direction parallel to the longitudinal direction of the bifurcated terminal;
Second irradiating means for irradiating the second colored light from the direction inclined at a predetermined angle with respect to the axial direction toward the bifurcated terminal;
Photographing means for photographing the first color light irradiated on the bifurcated terminal and the reflected light of the second color light;
A gap calculation means for extracting the first color light and the second color light from the image shot by the shooting means, and obtaining a gap distance between the bifurcated terminals based on the extraction result;
With
The gap calculation means includes
According to the side surface state of the bifurcated terminal, a hue that serves as a threshold for determining the edge portion of the tip of the bifurcated terminal is set, and based on this hue, the edge of the tip is detected, A storage unit for storing a plurality of gap calculation programs for obtaining the distance between the edges of the tip part ,
Based on the extraction results of the first color light and the second color light, the side surface state is determined, and the clearance distance between the bifurcated terminals is determined using the clearance calculation program corresponding to the determined side surface state. A terminal inspection device characterized by obtaining
前記隙間演算手段は、前記撮影手段にて撮影される画像の、前記二股形状端子の各先端部の間となる隙間領域の画像に含まれる前記第1の色彩光の色彩成分、及び第2の色彩光の色彩成分の量に応じて、前記側面状態を分類することを特徴とする請求項1に記載の端子検査装置。 The gap calculation means includes a color component of the first color light included in an image of a gap area between the tips of the bifurcated terminals of an image photographed by the photographing means, and a second The terminal inspection apparatus according to claim 1 , wherein the side surface state is classified according to a color component amount of color light . 前記隙間演算手段は、前記隙間領域を、2つの前記先端部どうしを結ぶ線に対して平行となる方向の中心線により上側領域、下側領域に区分し、上側領域の色彩成分、及び下側成分の色彩成分に基づいて、上側領域または下側領域を選別エリアとして選択し、
選択された選別エリアの色彩成分に基づいて前記側面状態を判定することを特徴とする請求項2に記載の端子検査装置。
The gap calculation means divides the gap area into an upper area and a lower area by a center line in a direction parallel to a line connecting the two tip portions, and a color component of the upper area and a lower side Based on the color component of the component, select the upper area or the lower area as the selection area,
The terminal inspection apparatus according to claim 2 , wherein the side surface state is determined based on a color component of the selected sorting area .
前記第1の色彩光は青色光であり、前記第2の色彩光は赤色光であることを特徴とする請求項1〜請求項3のいずれか1項に記載の端子検査装置。 4. The terminal inspection device according to claim 1, wherein the first color light is blue light, and the second color light is red light . 5. 二股形状端子の隙間を検査する端子検査方法において、In the terminal inspection method for inspecting the gap between the forked terminals,
前記二股形状端子の長手方向に対して平行となる軸方向から、該二股形状端子に向けて第1の色彩光を照射する第1の色彩光照射工程と、A first chromatic light irradiation step of irradiating the first chromatic light toward the bifurcated terminal from an axial direction parallel to the longitudinal direction of the bifurcated terminal;
前記軸方向に対して所定角度傾斜した方向から前記二股形状端子に向けて第2の色彩光を照射する第2の色彩光照射工程と、A second color light irradiation step of irradiating second color light toward the bifurcated terminal from a direction inclined by a predetermined angle with respect to the axial direction;
前記二股形状端子に照射された第1の色彩光、及び第2の色彩光の反射光を撮影手段にて撮影する撮影工程と、A photographing step of photographing the first color light and the reflected light of the second color light applied to the bifurcated terminal with a photographing unit;
前記撮影手段で撮影された画像から、第1の色彩光、及び第2の色彩光を抽出し、この抽出結果に基づいて、前記二股形状端子の側面状態に応じた複数の隙間演算プログラムが記憶される記憶部から、適切な隙間演算プログラムを選択し、この隙間演算プログラムを用いて前記二股形状端子の隙間距離を求める隙間演算工程と、The first color light and the second color light are extracted from the image photographed by the photographing means, and a plurality of gap calculation programs corresponding to the side surface state of the bifurcated terminal are stored based on the extraction result. A gap calculation step of selecting an appropriate gap calculation program from the storage unit to obtain the gap distance of the bifurcated terminal using the gap calculation program;
を備え、With
前記隙間演算プログラムは、前記側面状態に応じて、前記二股形状端子の先端部のエッジ部分であると判定する閾値となる色相が設定され、この色相に基づいて前記先端部のエッジを検出し、2つの先端部のエッジ間距離を求めるプログラムであることAccording to the side surface state, the gap calculation program sets a hue that serves as a threshold value for determining the edge portion of the tip portion of the bifurcated terminal, and detects the edge of the tip portion based on the hue. A program that calculates the distance between the edges of two tips
を特徴とする端子検査方法。Terminal inspection method characterized by this.

JP2011254669A 2011-11-22 2011-11-22 Terminal inspection apparatus and terminal inspection method Active JP5852858B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011254669A JP5852858B2 (en) 2011-11-22 2011-11-22 Terminal inspection apparatus and terminal inspection method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011254669A JP5852858B2 (en) 2011-11-22 2011-11-22 Terminal inspection apparatus and terminal inspection method

Publications (2)

Publication Number Publication Date
JP2013108863A JP2013108863A (en) 2013-06-06
JP5852858B2 true JP5852858B2 (en) 2016-02-03

Family

ID=48705761

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011254669A Active JP5852858B2 (en) 2011-11-22 2011-11-22 Terminal inspection apparatus and terminal inspection method

Country Status (1)

Country Link
JP (1) JP5852858B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107081275B (en) * 2017-04-26 2018-05-04 麦特达因(苏州)汽车部件有限公司 A kind of fit-up gap distance detection system and its detection method based on machine vision

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009093834A (en) * 2007-10-04 2009-04-30 Yazaki Corp Female terminal
JP5019621B2 (en) * 2008-03-28 2012-09-05 古河電気工業株式会社 Connecting terminal

Also Published As

Publication number Publication date
JP2013108863A (en) 2013-06-06

Similar Documents

Publication Publication Date Title
US8224605B2 (en) Inspection standard setting device, inspection standard setting method and process inspection device
CN107076683B (en) Measurement processing device, measurement processing method, measurement processing program, and method for manufacturing the device
KR102062433B1 (en) Defect quantification method, defect quantification device, and defect evaluation value display device
CN107076684B (en) Measurement processing device, measurement processing method, and measurement processing program
EP3418726A1 (en) Defect detection apparatus, defect detection method, and program
CN107305190B (en) Defect inspection method and defect inspection system
CN107544432B (en) Lifetime determination device, lifetime determination method, and computer-readable recording medium
EP3237876B1 (en) Method and apparatus for detecting defects on tyres in a tyre production process
US8917940B2 (en) Edge measurement video tool with robust edge discrimination margin
JP6063630B2 (en) Pattern measuring apparatus and semiconductor measuring system
JP6403547B2 (en) Steel component identification device and program thereof
JP4492356B2 (en) Substrate inspection device, parameter setting method and parameter setting device
EP3182060A1 (en) Apparatus for inspecting shape of metal body, and method for inspecting shape of metal body
JP5168215B2 (en) Appearance inspection device
KR20130065717A (en) Image processing apparatus and computer program
KR20180090756A (en) System and method for scoring color candidate poses against a color image in a vision system
KR101615843B1 (en) Semiconductor measurement device and recording medium
Ruisz et al. Quality evaluation in resistance spot welding by analysing the weld fingerprint on metal bands by computer vision
JP5852858B2 (en) Terminal inspection apparatus and terminal inspection method
US10180317B2 (en) Pattern-measuring device and computer program
JP5403180B1 (en) Image evaluation method, image evaluation apparatus, and image evaluation program
WO2015146744A1 (en) Tool inspection method and tool inspection device
US20210191372A1 (en) Analysis of additive manufacturing processes
JP2016217913A (en) X-ray inspection device
JP6530536B2 (en) Three-dimensional shape measuring apparatus, measurement data processing unit, measurement data processing method, and computer program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20141017

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20150806

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20150818

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20150911

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20151201

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20151207

R150 Certificate of patent or registration of utility model

Ref document number: 5852858

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250