JP5924272B2 - Wire state inspection method and wire state inspection device - Google Patents

Wire state inspection method and wire state inspection device Download PDF

Info

Publication number
JP5924272B2
JP5924272B2 JP2013001548A JP2013001548A JP5924272B2 JP 5924272 B2 JP5924272 B2 JP 5924272B2 JP 2013001548 A JP2013001548 A JP 2013001548A JP 2013001548 A JP2013001548 A JP 2013001548A JP 5924272 B2 JP5924272 B2 JP 5924272B2
Authority
JP
Japan
Prior art keywords
electric wire
terminal
variation
inspection method
line
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
JP2013001548A
Other languages
Japanese (ja)
Other versions
JP2014134409A (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.)
Sumitomo Wiring Systems Ltd
Original Assignee
Sumitomo Wiring Systems Ltd
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 Sumitomo Wiring Systems Ltd filed Critical Sumitomo Wiring Systems Ltd
Priority to JP2013001548A priority Critical patent/JP5924272B2/en
Publication of JP2014134409A publication Critical patent/JP2014134409A/en
Application granted granted Critical
Publication of JP5924272B2 publication Critical patent/JP5924272B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Description

この発明は、電線の状態を検査する技術に関する。   The present invention relates to a technique for inspecting the state of an electric wire.

電線の状態を検査する手法の一つとして、検査対象となる部分を撮像して、得られた撮像データを画像解析することにより、当該部分の状態を検査するものが知られている(いわゆる「外観検査」)。   One technique for inspecting the state of an electric wire is to inspect the state of the part by imaging the part to be inspected and analyzing the obtained image data (so-called "" Visual inspection").

例えば、電線は、その端部の絶縁被覆が皮剥ぎされることにより芯線が露出した状態とされる。また、その皮剥ぎされた端部に、端子が接続される。このような電線に対して、例えば、皮剥ぎされた端部を撮像して、得られた撮像データを画像解析することにより、芯線があるべき位置に絶縁被覆がないか、また、絶縁被覆があるべき位置に芯線がないか、などが検査される。皮剥ぎされた端部に端子が接続されている場合、例えば、芯線と絶縁被覆との境界と、端子との位置関係をみて、電線に対して端子が適切な位置に接続されているかが検査される場合もある。   For example, the electric wire is in a state where the core wire is exposed by peeling off the insulating coating at the end. A terminal is connected to the peeled end. For such an electric wire, for example, by imaging the peeled end and analyzing the obtained image data, there is no insulation coating at the position where the core wire should be, or the insulation coating is It is inspected whether there is a core wire at the position where it should be. When the terminal is connected to the peeled end, for example, the boundary between the core wire and the insulation coating and the positional relationship between the terminal and the terminal are inspected to determine whether the terminal is connected to an appropriate position. Sometimes it is done.

ところで、電線を撮像した撮像データにおいて、絶縁被覆と芯線とを判別するにあたっては、「色」が指標とされることが多かった。ところが、絶縁被覆には、様々なカラーバリエーションが存在するため、例えば、絶縁被覆と芯線とが似た色味となっている場合に、「色」を指標とした判別態様では、絶縁被覆と芯線とを正確に判別できない虞があった。   By the way, in the imaging data obtained by imaging the electric wire, “color” is often used as an index in distinguishing between the insulation coating and the core wire. However, since there are various color variations in the insulation coating, for example, when the insulation coating and the core wire have similar colors, in the discrimination mode using “color” as an index, the insulation coating and the core wire There is a possibility that cannot be accurately determined.

絶縁被覆とそれ以外の部分との判別精度を高める技術として、例えば、特許文献1では、端子が接続された電線を撮像したデータを、輝度を指標として2値化する構成が開示されている。ここでは、電線の色に応じて、撮像データを2値化する際の閾値を個別に設定することによって、電線の色に関係なく、安定して検査を行えるように担保している。   As a technique for improving the discrimination accuracy between the insulation coating and other parts, for example, Patent Document 1 discloses a configuration in which data obtained by imaging an electric wire connected to a terminal is binarized using luminance as an index. Here, according to the color of an electric wire, the threshold value at the time of binarizing imaging data is individually set, so that the inspection can be stably performed regardless of the color of the electric wire.

また、特許文献2では、端子が接続された電線を撮像するにあたって、金属部分が明るく、樹脂部分が暗くなるように、コントラストをつける技術が開示されている。この構成によると、例えば絶縁被覆が「白」の場合であっても、樹脂部分と金属部分とのコントラストが十分に維持されるため、誤判定を回避できる。   Patent Document 2 discloses a technique for providing contrast so that a metal part is bright and a resin part is dark when imaging an electric wire to which a terminal is connected. According to this configuration, for example, even when the insulation coating is “white”, the contrast between the resin portion and the metal portion is sufficiently maintained, so that erroneous determination can be avoided.

特開平6−102192号公報JP-A-6-102192 特開2003−214825号公報JP 2003-214825 A

しかしながら、従来の技術では、絶縁被覆とその周囲の部材とが比較的近い輝度レベルである場合に、撮像の条件や、製造バラツキなど、検査条件の些細な変動の影響をうけて、簡単に誤判定が生じてしまう可能性が高い。また、例えば特許文献1のように、電線の色毎に閾値を設定する態様では、オペレータの作業負担も大きくなり、多様なカラーバリエーションに柔軟に対応することが難しかった。   However, in the conventional technology, when the insulation coating and the surrounding members have relatively close luminance levels, the error is easily caused by the influence of slight variations in inspection conditions such as imaging conditions and manufacturing variations. There is a high possibility that a determination will occur. Further, for example, as in Patent Document 1, in an aspect in which a threshold value is set for each color of an electric wire, an operator's work load increases, and it is difficult to flexibly cope with various color variations.

この発明は、上記の課題に鑑みてなされてものであり、電線の状態を、その色に関係なく、簡易かつ正確に評価できる技術を提供することを目的とする。   This invention is made in view of said subject, and it aims at providing the technique which can evaluate the state of an electric wire simply and correctly irrespective of the color.

第1の態様は、電線状態の検査方法であって、a)検査対象となる電線を撮像して撮像データを取得する工程と、b)前記撮像データ内に、対象領域を設定する工程と、c)前記対象領域内において、前記電線の延在方向と直交する方向に沿うラインを、前記電線の延在方向に沿って複数配列し、同一のラインに沿う輝度の変化量の絶対値を総和した値を、当該ラインのバラツキ量として取得する工程と、d)前記電線の延在方向に沿う前記バラツキ量の変化の態様に基づいて、前記電線の状態を評価する工程と、を備える。   The first aspect is a method for inspecting a wire state, in which a) a step of capturing an image of an electric wire to be inspected to acquire imaging data, and b) a step of setting a target region in the imaging data; c) In the target region, a plurality of lines along the direction perpendicular to the extending direction of the electric wires are arranged along the extending direction of the electric wires, and the absolute value of the amount of change in luminance along the same line is summed. And a step of evaluating the state of the electric wire on the basis of the variation of the variation amount along the extending direction of the electric wire.

第2の態様は、第1の態様に係る検査方法であって、検査対象となる電線の端部に端子が接続されており、前記電線における、前記端子の芯線圧着部が圧着されている第1部分と、前記端子の被覆圧着部が圧着されている第2部分との間の部分が、前記対象領域とされる。   A second aspect is an inspection method according to the first aspect, wherein a terminal is connected to an end of an electric wire to be inspected, and a core wire crimping portion of the terminal in the electric wire is crimped. A portion between one portion and the second portion to which the covering crimp portion of the terminal is crimped is the target region.

第3の態様は、第1または第2の態様に係る検査方法であって、e)前記バラツキ量の算出に先立って、前記対象領域内のデータ部分を、輝度成分を抽出した輝度データに変換するとともに、前記輝度データに、微分フィルタをかける前処理を行う工程、を備える。   A third aspect is an inspection method according to the first or second aspect, and e) converts a data portion in the target region into luminance data obtained by extracting a luminance component prior to calculating the variation amount. And a pre-processing for applying a differential filter to the luminance data.

第4の態様は、第1から第3のいずれかの態様に係る検査方法であって、前記c)工程において、前記ラインにおいて、その両端の部分領域を除いた中央部分を、対象ライン部分とし、前記対象ライン部分における前記輝度の変化量の絶対値を総和した値を、前記バラツキ量として取得する。   A fourth aspect is an inspection method according to any one of the first to third aspects, wherein in the step c), in the line, a central part excluding partial areas at both ends thereof is set as a target line part. Then, a value obtained by summing up the absolute values of the luminance change amounts in the target line portion is acquired as the variation amount.

第5の態様は、第1から第4のいずれかの態様に係る検査方法であって、前記d)工程が、d1)2次元のグラフの横軸に、前記複数のラインをその配列順に並べ、前記2次元のグラフの縦軸に、前記複数のラインの各々について算出された前記バラツキ量をプロットして、当該プロットを結んで得られる線を、変動関数として取得する工程と、d2)前記2次元のグラフ上に、定められた一定のバラツキ量で推移する閾値関数を規定するとともに、前記閾値関数と前記変動関数との交点の個数を計数する工程と、d3)前記交点の個数に基づいて、前記電線の状態を評価する工程と、を備える。   A fifth aspect is an inspection method according to any one of the first to fourth aspects, wherein the step d) arranges the plurality of lines in the arrangement order on the horizontal axis of the d1) two-dimensional graph. Plotting the variation amount calculated for each of the plurality of lines on the vertical axis of the two-dimensional graph, and obtaining a line obtained by connecting the plots as a variation function; d2) Defining a threshold function that transitions with a predetermined fixed variation amount on a two-dimensional graph and counting the number of intersections of the threshold function and the variation function; and d3) based on the number of intersections. And a step of evaluating the state of the electric wire.

第6の態様は、第5の態様に係る検査方法であって、前記d3)工程において、前記交点の個数がゼロの場合に否定的な評価を与える。   A sixth aspect is an inspection method according to the fifth aspect, and in the step d3), a negative evaluation is given when the number of intersections is zero.

第7の態様は、第5または第6の態様に係る検査方法であって、前記d3)工程において、前記交点の個数が1の場合であり、かつ、前記変動関数が定められた形状タイプに合致する場合に、肯定的な評価を与え、前記定められた形状タイプが、前記交点に対して定められた側で前記閾値関数より大きな値で推移するとともに、他方の側で前記閾値関数より小さな値で推移する形状である。   A seventh aspect is an inspection method according to the fifth or sixth aspect, wherein in the step d3), the number of the intersections is 1, and the shape type is defined with the variation function. If there is a match, give a positive rating and the defined shape type transitions with a value greater than the threshold function on the defined side relative to the intersection and smaller than the threshold function on the other side It is a shape that changes in value.

第8の態様は、第5から第7のいずれかの態様に係る検査方法であって、前記d3)工程において、前記交点の個数が2の場合に、いずれかの交点について、前記変動関数が定められた形状タイプに合致する場合に、肯定的な評価を与え、前記定められた形状タイプが、前記いずれかの交点に対して定められた側で前記閾値関数より大きな値で推移するとともに、他方の側で前記閾値関数より小さな値で推移する形状である。   An eighth aspect is an inspection method according to any one of the fifth to seventh aspects, wherein, in the step d3), when the number of intersection points is 2, the variation function is calculated for any intersection point. A positive rating is given if it matches a defined shape type, and the defined shape type transitions at a value greater than the threshold function on the defined side for any of the intersections; It is a shape that changes at a value smaller than the threshold function on the other side.

第9の態様は、第5から第8のいずれかの態様に係る検査方法であって、前記d3)工程において、前記交点の個数が3以上の場合に否定的な評価を与える。   A ninth aspect is an inspection method according to any of the fifth to eighth aspects, and in the step d3), a negative evaluation is given when the number of intersection points is 3 or more.

第10の態様は、電線状態の検査装置であって、検査対象となる電線を撮像して撮像データを取得する撮像データ取得部と、前記撮像データ内に、対象領域を設定する対象領域設定部と、前記対象領域内において、前記電線の延在方向と直交する方向に沿うラインを、前記電線の延在方向に沿って複数配列し、同一のラインに沿う輝度の変化量の絶対値を総和した値を、当該ラインのバラツキ量として取得するバラツキ量算出部と、前記電線の延在方向に沿う前記バラツキ量の変化の態様に基づいて、前記電線の状態を評価する評価部と、を備える。   A tenth aspect is an inspection apparatus for an electric wire state, an imaging data acquisition unit that acquires an imaging data by imaging an electric wire to be inspected, and a target area setting unit that sets a target area in the imaging data In the target region, a plurality of lines along a direction orthogonal to the extending direction of the electric wire are arranged along the extending direction of the electric wire, and the absolute value of the amount of change in luminance along the same line is summed. A variation amount calculation unit that acquires the calculated value as a variation amount of the line, and an evaluation unit that evaluates the state of the electric wire based on a variation aspect of the variation amount along the extending direction of the electric wire. .

第1、第10の態様によると、電線の延在方向に沿うバラツキ量の変化の態様に基づいて、電線の状態を評価する。ここにおいて、バラツキ量は、電線の延在方向と直交する方向に沿う輝度の変化量の絶対値を総和した値であるので、例えば、電線の露出芯線部と対応する部分は、その色に関係なく、バラツキ量が比較的大きな値となり、電線の絶縁被覆部と対応する部分は、その色に関係なく、バラツキ量が比較的小さな値となる。したがって、電線の状態を、その色に関係なく、簡易かつ正確に評価できる。   According to the 1st, 10th aspect, the state of an electric wire is evaluated based on the aspect of the variation | change_quantity of the variation amount along the extension direction of an electric wire. Here, the amount of variation is the sum of the absolute values of the amount of change in luminance along the direction orthogonal to the extending direction of the electric wire. For example, the portion corresponding to the exposed core portion of the electric wire is related to the color. However, the variation amount is a relatively large value, and the portion corresponding to the insulation coating portion of the electric wire has a relatively small variation amount regardless of the color. Therefore, the state of the electric wire can be easily and accurately evaluated regardless of its color.

第2の態様によると、電線における、端子の芯線圧着部が圧着されている第1部分と端子の被覆圧着部が圧着されている第2部分との間の部分が、対象領域とされる。この構成によると、電線に対して端子が適切な位置に接続されているかを評価することができる。   According to the 2nd aspect, the part between the 1st part in which the core wire crimping part of a terminal is crimped | bonded in the electric wire, and the 2nd part to which the coating crimping part of a terminal is crimped | bonded is made into an object area | region. According to this structure, it can be evaluated whether the terminal is connected to the electric wire at an appropriate position.

第3の態様によると、バラツキ量の算出に先立って、対象領域内のデータ部分に前処理が施される。この構成によると、例えば、検査対象となる電線の絶縁被覆部に電線識別用のマークなどが印刷されている場合であっても、それに由来する輝度成分は微分フィルタを通すことによりおおまかに除去される。したがって、このようなマークなどの影響を受けて電線の状態を誤って評価する、といった事態を回避できる。   According to the third aspect, prior to the calculation of the variation amount, the data portion in the target area is preprocessed. According to this configuration, for example, even when a wire identification mark or the like is printed on the insulation coating portion of the wire to be inspected, the luminance component derived therefrom is roughly removed by passing through the differential filter. The Therefore, it is possible to avoid a situation in which the state of the electric wire is erroneously evaluated under the influence of such a mark or the like.

第4の態様によると、ラインの中央部分のみが、バラツキ量の算出において考慮される。ラインの両端部付近は、電線以外が現れている部分となりやすいところ、この構成によると電線以外が現れている部分の影響を除去して、電線に由来する輝度の変化量のみを、バラツキ量に反映させることができる。その結果、電線の状態を正確に評価することができる。   According to the fourth aspect, only the central part of the line is taken into account in the calculation of the variation amount. The area near both ends of the line is likely to be the part where the wires other than the wire appear, but according to this configuration, the influence of the portion where the wires other than the wire appears is removed, and only the variation in luminance derived from the wire is changed to the amount of variation. It can be reflected. As a result, the state of the electric wire can be accurately evaluated.

第5〜第9の態様によると、変動関数と閾値関数との交点の個数に基づいて、電線の状態を評価するので、簡易かつ正確に、電線の状態を評価することができる。   According to the fifth to ninth aspects, since the state of the electric wire is evaluated based on the number of intersections between the variation function and the threshold function, the state of the electric wire can be evaluated easily and accurately.

端子付電線を模式的に示す側面図である。It is a side view which shows an electric wire with a terminal typically. 端子付電線を模式的に示す平面図である。It is a top view which shows an electric wire with a terminal typically. 検査装置のハードウェア構成を示すブロック図である。It is a block diagram which shows the hardware constitutions of a test | inspection apparatus. 検査処理部において実現される機能ブロック図である。It is a functional block diagram implement | achieved in an inspection process part. 撮像部が取得した撮像データ、および、ここに設定される対象領域の一例を示す図である。It is a figure which shows an example of the imaging data which the imaging part acquired, and the target area | region set here. バラツキ量を算出する態様を説明するための図である。It is a figure for demonstrating the aspect which calculates variation amount. 検査装置にて実行される処理の流れを示す図である。It is a figure which shows the flow of the process performed with an inspection apparatus. 評価部が行う処理の流れを示す図である。It is a figure which shows the flow of the process which an evaluation part performs. 端子付電線から得られる変動関数の一例を模式的に示す図である。It is a figure which shows typically an example of the variation function obtained from an electric wire with a terminal. 端子付電線から得られる変動関数の一例を模式的に示す図である。It is a figure which shows typically an example of the variation function obtained from an electric wire with a terminal. 端子付電線から得られる変動関数の一例を模式的に示す図である。It is a figure which shows typically an example of the variation function obtained from an electric wire with a terminal. 端子付電線から得られる変動関数の一例を模式的に示す図である。It is a figure which shows typically an example of the variation function obtained from an electric wire with a terminal. 端子付電線から得られる変動関数の一例を模式的に示す図である。It is a figure which shows typically an example of the variation function obtained from an electric wire with a terminal. 変形例に係る評価の態様を説明するための図である。It is a figure for demonstrating the aspect of the evaluation which concerns on a modification.

以下、図面を参照しながら、実施の形態について説明する。なお、以下の実施の形態は、本発明を具体化した一例であり、本発明の技術的範囲を限定する事例ではない。また、図面においては、理解容易のため、各部の寸法や数が誇張または簡略化して図示されている場合がある。   Hereinafter, embodiments will be described with reference to the drawings. The following embodiment is an example embodying the present invention, and is not an example of limiting the technical scope of the present invention. In the drawings, the size and number of each part may be exaggerated or simplified for easy understanding.

<1.端子付電線80>
実施形態に係る検査装置100は、電線8(ここでは、例えば、端部に端子9が接続された端子付電線80)の状態を検査する装置である。検査装置100について説明する前に、検査装置100にて検査対象となる端子付電線80について、図1、図2を参照しながら説明する。図1は、端子付電線80を模式的に示す側面図である。図2は、端子付電線80を模式的に示す平面図である。
<1. Electric wire with terminal 80>
The inspection device 100 according to the embodiment is a device that inspects the state of the electric wire 8 (for example, the electric wire with terminal 80 in which the terminal 9 is connected to the end portion). Before describing the inspection device 100, the terminal-attached electric wire 80 to be inspected by the inspection device 100 will be described with reference to FIGS. 1 and 2. FIG. 1 is a side view schematically showing the terminal-attached electric wire 80. FIG. 2 is a plan view schematically showing the terminal-attached electric wire 80.

端子付電線80は、電線8の端部に端子9が圧着接続されることにより形成される。   The terminal-attached electric wire 80 is formed by crimping and connecting the terminal 9 to the end of the electric wire 8.

電線8は、芯線部81と、芯線部81の外周を被覆する絶縁被覆部82とを備える。芯線部81は、例えば、銅、銅合金、アルミニウム、アルミニウム合金等の金属線の撚り合せ線又は単線によって構成される。絶縁被覆部82は、例えば、樹脂材料を押出被覆等することによって形成される。電線8の端部は、絶縁被覆部82が皮剥ぎされて、芯線部81が露出している。以下、電線8の端部に露出する芯線部81を、「露出芯線部81」ともいう。   The electric wire 8 includes a core wire portion 81 and an insulating coating portion 82 that covers the outer periphery of the core wire portion 81. The core wire portion 81 is constituted by, for example, a stranded wire or a single wire of a metal wire such as copper, a copper alloy, aluminum, or an aluminum alloy. The insulating coating portion 82 is formed, for example, by extrusion coating a resin material. The end portion of the electric wire 8 is stripped of the insulating covering portion 82 and the core wire portion 81 is exposed. Hereinafter, the core wire portion 81 exposed at the end of the electric wire 8 is also referred to as an “exposed core wire portion 81”.

端子9は、例えば、銅もしくは黄銅などの銅合金の部材、又はそれらの部材に錫(Sn)メッキもしくは錫に銀(Ag)、銅(Cu)、ビスマス(Bi)などが添加された錫合金のメッキが施された導体の部材である。端子9は、例えば、端子接続部91と、芯線圧着部92と、被覆圧着部93と、2つの連結部94,95とを備える。   The terminal 9 is, for example, a copper alloy member such as copper or brass, or a tin alloy in which tin (Sn) plating or tin (Ag), copper (Cu), bismuth (Bi) or the like is added to these members. It is a member of a conductor to which the plating is applied. The terminal 9 includes, for example, a terminal connecting portion 91, a core wire crimping portion 92, a covering crimping portion 93, and two connecting portions 94 and 95.

端子接続部91は、相手側の端子と接続される部分である。端子接続部91は、具体的には、例えば、略筒状の形状(いわゆるメス端子形状)に形成されており、ピン状、または、タブ状の接続部を有する相手側端子(いわゆるオス端子)が挿入接続可能とされている。なお、端子接続部91は、ピン状、または、タブ状の形状(いわゆるオス端子形状)に形成されていてもよく、また、ネジ等によって相手側の部材に接続可能な環状形状等に形成されていてもよい。   The terminal connection part 91 is a part connected to the counterpart terminal. Specifically, the terminal connection part 91 is formed in, for example, a substantially cylindrical shape (so-called female terminal shape), and has a pin-like or tab-like connection part (so-called male terminal). Can be inserted and connected. The terminal connecting portion 91 may be formed in a pin shape or a tab shape (so-called male terminal shape), and is formed in an annular shape that can be connected to a mating member by a screw or the like. It may be.

芯線圧着部92は、電線8の露出芯線部81に圧着されるべき部分である。芯線圧着部92は、電線8に圧着接続される前の状態においては、例えば断面略U字状に形成されており、これが、露出芯線部81を抱持するように圧縮変形されることによって、芯線圧着部92が露出芯線部81に圧着接続される。芯線圧着部92が露出芯線部81に圧着接続されることによって、端子9と芯線部81とが電気的に接続される。   The core wire crimping portion 92 is a portion to be crimped to the exposed core wire portion 81 of the electric wire 8. The core wire crimping portion 92 is formed, for example, in a substantially U-shaped cross section before being crimped and connected to the electric wire 8, and is compressed and deformed so as to hold the exposed core wire portion 81. The core wire crimping portion 92 is crimped and connected to the exposed core wire portion 81. The core wire crimping portion 92 is crimped and connected to the exposed core wire portion 81, whereby the terminal 9 and the core wire portion 81 are electrically connected.

被覆圧着部93は、電線8の絶縁被覆部82に圧着されるべき部分である。被覆圧着部93は、電線8に圧着接続される前の状態においては、例えば断面略U字状に形成されており、これが、絶縁被覆部82を抱持するように圧縮変形されることによって、被覆圧着部93が絶縁被覆部82に圧着接続される。被覆圧着部93が絶縁被覆部82に圧着接続されることによって、端子9が電線8に対して強固に固定される。   The covering crimping portion 93 is a portion to be crimped to the insulating covering portion 82 of the electric wire 8. In a state before the crimping connection portion 93 is crimped and connected to the electric wire 8, it is formed in, for example, a substantially U-shaped cross section, and is compressed and deformed so as to hold the insulating coating portion 82. The cover crimping portion 93 is crimped and connected to the insulating coating portion 82. The terminal 9 is firmly fixed to the electric wire 8 by the crimping connection portion 93 being crimped and connected to the insulating coating portion 82.

2つの連結部94,95のうち、一方の連結部(第1連結部)94は、端子接続部91と芯線圧着部92とを連結する、また、他方の連結部(第2連結部)95は、芯線圧着部92と被覆圧着部93とを連結する。各連結部94,95は、一対の起立片と底部とによって形成される溝状の部分である。電線8に対して端子9が適切な位置に接続されている場合、第2連結部95の溝状の部分には、電線8における露出芯線部81と絶縁被覆部82の境界位置の付近の部分が収容された状態となる。すなわち、第2連結部95の溝の開口端(以下「窓部90」ともいう)から、当該境界位置が見える状態となる。   Of the two connecting portions 94, 95, one connecting portion (first connecting portion) 94 connects the terminal connecting portion 91 and the core wire crimping portion 92, and the other connecting portion (second connecting portion) 95. Connects the core crimping part 92 and the covering crimping part 93. Each of the connecting portions 94 and 95 is a groove-like portion formed by a pair of upright pieces and a bottom portion. When the terminal 9 is connected to the electric wire 8 at an appropriate position, the groove-shaped portion of the second connecting portion 95 includes a portion in the vicinity of the boundary position between the exposed core portion 81 and the insulating coating portion 82 in the electric wire 8. Will be housed. That is, the boundary position can be seen from the opening end of the groove of the second connecting portion 95 (hereinafter also referred to as “window portion 90”).

<2.検査装置100>
<2−1.ハードウェア構成>
検査装置100のハードウェア構成について、図3を参照しながら説明する。図3は、検査装置100のハードウェア構成を示すブロック図である。
<2. Inspection device 100>
<2-1. Hardware configuration>
A hardware configuration of the inspection apparatus 100 will be described with reference to FIG. FIG. 3 is a block diagram illustrating a hardware configuration of the inspection apparatus 100.

検査装置100は、撮像部1と検査処理部2とを主として備える。   The inspection apparatus 100 mainly includes an imaging unit 1 and an inspection processing unit 2.

撮像部1は、検査対象となる端子付電線80を撮像する。撮像部1は、例えば、二次元イメージセンサおよび結像レンズ等から構成することができる。   The imaging unit 1 images the terminal-attached electric wire 80 to be inspected. The imaging unit 1 can be composed of, for example, a two-dimensional image sensor and an imaging lens.

検査処理部2は、撮像部1が取得した撮像データを解析することによって、端子付電線80の状態を評価する。検査処理部2は、例えば、CPU201、ROM202、RAM203、通信部204、記憶装置205等が、バスライン206を介して相互接続された一般的なコンピュータによって構成されている。ここにおいて、ROM202は基本プログラム等を格納しており、RAM203はCPU201が所定の処理を行う際の作業領域として供される。通信部204は、LAN等の通信回線を介したデータ通信機能を有する。記憶装置205は、フラッシュメモリ、あるいは、ハードディスク装置等の不揮発性の記憶装置によって構成されている。   The inspection processing unit 2 evaluates the state of the terminal-attached electric wire 80 by analyzing the imaging data acquired by the imaging unit 1. The inspection processing unit 2 includes, for example, a general computer in which a CPU 201, a ROM 202, a RAM 203, a communication unit 204, a storage device 205, and the like are interconnected via a bus line 206. Here, the ROM 202 stores basic programs and the like, and the RAM 203 serves as a work area when the CPU 201 performs predetermined processing. The communication unit 204 has a data communication function via a communication line such as a LAN. The storage device 205 is configured by a nonvolatile storage device such as a flash memory or a hard disk device.

記憶装置205にはプログラムPrが格納されており、このプログラムPrに記述された手順に従って、主制御部としてのCPU201が演算処理を行うことにより、検査装置100の各種機能が実現されるように構成されている。プログラムPrは、通常、予め記憶装置205等のメモリに格納されて使用されるものであるが、CD−ROMあるいはDVD−ROM、外部のフラッシュメモリ等の記録媒体に記録された形態(プログラムプロダクト)で提供され(あるいは、ネットワークを介した外部サーバからのダウンロードなどにより提供され)、追加的または交換的に記憶装置205等のメモリに格納されるものであってもよい。もっとも、検査処理部2において実現される一部あるいは全部の機能は、専用の論理回路等でハードウェア的に実現されてもよい。   A program Pr is stored in the storage device 205, and various functions of the inspection apparatus 100 are realized by the CPU 201 as a main control unit performing arithmetic processing according to the procedure described in the program Pr. Has been. The program Pr is normally stored and used in advance in a memory such as the storage device 205, but is recorded in a recording medium such as a CD-ROM or DVD-ROM or an external flash memory (program product). (Or provided by downloading from an external server via a network) and may be additionally or exchanged stored in a memory such as the storage device 205. However, some or all of the functions realized in the inspection processing unit 2 may be realized in hardware by a dedicated logic circuit or the like.

検査処理部2には、さらに、入力装置21、および、表示装置22が接続されている。入力装置21は、例えば、キーボード、マウス、各種スイッチ、タッチパネル等の少なくとも1つを含む入力デバイスであり、オペレータからの各種の操作(コマンドや各種データの入力といった操作)を受け付ける。表示装置22は、液晶表示装置、ランプ等により構成されており、CPU201による制御の下、各種の情報を表示する。   An input device 21 and a display device 22 are further connected to the inspection processing unit 2. The input device 21 is an input device including at least one of a keyboard, a mouse, various switches, a touch panel, and the like, for example, and accepts various operations (operations such as inputting commands and various data) from the operator. The display device 22 includes a liquid crystal display device, a lamp, and the like, and displays various information under the control of the CPU 201.

<2−2.機能構成>
検査処理部2が備える機能構成について、図4を参照しながら説明する。図4は、検査処理部2において実現される機能ブロック図である。
<2-2. Functional configuration>
A functional configuration provided in the inspection processing unit 2 will be described with reference to FIG. FIG. 4 is a functional block diagram realized in the inspection processing unit 2.

検査処理部2は、撮像制御部31と、対象領域設定部32と、前処理部33と、バラツキ量算出部34と、評価部35とを備えている。これら各機能部は、上述したとおり、例えば、CPU201がプログラムPrに従って所定の演算処理を行うことにより実現される。   The inspection processing unit 2 includes an imaging control unit 31, a target area setting unit 32, a preprocessing unit 33, a variation amount calculation unit 34, and an evaluation unit 35. As described above, these functional units are realized, for example, by the CPU 201 performing predetermined arithmetic processing according to the program Pr.

<撮像制御部31>
撮像制御部31は、撮像部1を制御して、検査対象となる端子付電線80を撮像させる。つまり、撮像部1と撮像制御部31とが協働して、検査対象となる端子付電線80を撮像して撮像データを取得する撮像データ取得部を構成する。ただし、検査対象となる端子付電線80は、その延在方向が定められた軸に沿うような姿勢とされるとともに、窓部90を真上に向けた状態で配置され、撮像部1は、このような姿勢で配置された端子付電線80を真上から撮像する。撮像部1が取得した撮像データ(図5参照)は、例えば、検査処理部2の制御下で、表示装置22に表示される。
<Imaging control unit 31>
The imaging control unit 31 controls the imaging unit 1 to image the terminal-attached electric wire 80 to be inspected. That is, the imaging unit 1 and the imaging control unit 31 cooperate to configure an imaging data acquisition unit that images the terminal-attached electric wire 80 to be inspected and acquires imaging data. However, the terminal-attached electric wire 80 to be inspected is placed in a posture in which the extending direction is along the determined axis, and is arranged with the window portion 90 facing directly upward, and the imaging unit 1 is The terminal-attached electric wire 80 arranged in such a posture is imaged from directly above. The imaging data (see FIG. 5) acquired by the imaging unit 1 is displayed on the display device 22 under the control of the inspection processing unit 2, for example.

<対象領域設定部32>
対象領域設定部32は、撮像部1によって取得された端子付電線80の撮像データ内に、対象領域Mを設定する。対象領域Mは、図5に示されるように、矩形領域であり、平行な一対の辺の延在方向(以下「Y方向」ともいう)が、端子付電線80の延在方向とほぼ一致するように設定される。したがって、他方の一対の辺の延在方向(以下「X方向」ともいう)が、端子付電線80の延在方向と直交する方向(以下「端子付電線80を横断する方向」ともいう)とほぼ一致するように設定されることになる。
<Target area setting unit 32>
The target area setting unit 32 sets the target area M in the imaging data of the terminal-attached electric wire 80 acquired by the imaging unit 1. As shown in FIG. 5, the target region M is a rectangular region, and the extending direction of a pair of parallel sides (hereinafter also referred to as “Y direction”) substantially coincides with the extending direction of the terminal-attached electric wire 80. Is set as follows. Therefore, the extending direction of the other pair of sides (hereinafter also referred to as “X direction”) is perpendicular to the extending direction of the terminal-attached electric wire 80 (hereinafter also referred to as “direction crossing the terminal-attached electric wire 80”). It will be set so that it will almost agree.

ここでは、電線8(撮像データ上の電線8)における、芯線圧着部92が圧着されている第1の部分M1と被覆圧着部93が圧着されている第2の部分M2との間の部分(以下「間隙部分」ともいう)が、対象領域Mとされる。ただし、対象領域Mは、芯線圧着部92および被覆圧着部93を含まない範囲で、できるだけ大きな領域とされることが好ましい。このような好ましい対象領域Mを規定するには、例えば、対象領域MのY方向に沿う長さを、芯線圧着部92の被覆圧着部93側の端部と、被覆圧着部93の芯線圧着部92側の端部との離間距離(撮像データ上の離間距離)と略同一とし、さらに、+Y側の辺が芯線圧着部92の被覆圧着部93側の端部と一致するように設定すればよい。また、対象領域MのX方向に沿う長さを、端子付電線80の幅(撮像データ上の幅)よりも十分に大きなものとし、さらに、X方向に沿う辺の中心が、端子付電線80の中心線上にくるように設定すればよい。   Here, in the electric wire 8 (the electric wire 8 on the imaging data), the portion between the first portion M1 where the core crimping portion 92 is crimped and the second portion M2 where the covering crimping portion 93 is crimped ( Hereinafter, the target region M is also referred to as a “gap portion”. However, it is preferable that the target region M is as large as possible without including the core crimping portion 92 and the covering crimping portion 93. In order to define such a preferable target region M, for example, the length along the Y direction of the target region M is set such that the end of the core wire crimping portion 92 on the side of the coated crimping portion 93 and the core crimping portion of the coated crimping portion 93 are arranged. If it is set to be substantially the same as the separation distance from the end portion on the 92 side (separation distance on the imaging data), and the side on the + Y side coincides with the end portion on the covering crimping portion 93 side of the core crimping portion 92. Good. Further, the length of the target region M along the X direction is sufficiently larger than the width of the terminal-attached electric wire 80 (width on the imaging data), and the center of the side along the X direction is the electric wire 80 with the terminal. It may be set so as to be on the center line of.

検査装置100においては、予め、検査対象となる端子付電線80と同じ形状タイプの端子付電線の撮像データ内に、理想的な寸法の対象領域を理想的な位置に設定するとともに、この端子付電線内の定められた箇所を代表箇所として規定して、この代表箇所の位置と、理想的な対象領域(具体的には、例えば、理想的な対象領域の各頂点位置)との相対位置関係を登録する処理が行われている。対象領域設定部32は、検査対象となる端子付電線80の撮像データが取得されると、当該撮像データ内から、代表箇所を検索してその位置を特定し、特定された位置に対して予め記憶されている相対位置関係にある各頂点位置から規定される領域を、対象領域Mとして設定する。なお、対象領域Mの設定に用いられる代表箇所は、一意に規定される箇所であればよく、例えば、芯線圧着部92の被覆圧着部93側の端縁を、代表箇所とすることができる。この端縁は、これを境に輝度が大きく変化する位置となっているので、対象領域設定部32は、輝度の変化に基づいて、当該端縁の位置を特定することができる。   In the inspection apparatus 100, the target area of the ideal dimension is set in an ideal position in the imaging data of the terminal-attached electric wire having the same shape type as the terminal-attached electric wire 80 to be inspected, and the terminal attachment is provided. Relative positional relationship between the position of this representative location and the ideal target area (specifically, for example, each vertex position of the ideal target area) Processing to register is performed. When the imaging data of the terminal-attached electric wire 80 to be inspected is acquired, the target area setting unit 32 searches for a representative location from the imaging data and specifies the position thereof, and the target area setting unit 32 in advance with respect to the specified position. An area defined from each vertex position in the stored relative positional relationship is set as a target area M. In addition, the representative location used for the setting of the object area | region M should just be a location prescribed | regulated uniquely, For example, the edge by the side of the covering crimping | compression-bonding part 93 of the core wire crimping part 92 can be made into a representative location. Since this edge is a position where the luminance changes greatly from this boundary, the target area setting unit 32 can specify the position of the edge based on the change in luminance.

端子付電線80が、所期の姿勢で撮像されている場合、上記の処理によって設定された対象領域Mおいて、Y方向と端子付電線80の延在方向とが良好に一致する。ところが、端子付電線80が、例えば、定められた姿勢から微小に回転した姿勢で撮像されてしまった場合、Y方向と端子付電線80の延在方向とがずれる虞がある。そこで、対象領域設定部32は、例えば、対象領域Mの設定に先立って、撮像データに対して、必要に応じて、回転補正を施してもよい。この回転補正を行う場合、対象領域設定部32は、まず、撮像データにおける端子付電線80の延在方向を、例えば芯線圧着部92のエッジ部分を検出することにより特定し、この延在方向が所期の方向からずれている場合に、このずれが低減されるように撮像データを回転させる。そして、回転補正が施された後の撮像データ内に、対象領域Mを設定する。この回転補正を行っておけば、Y軸と端子付電線80の延在方向とが良好に一致するように担保される。   When the terminal-attached electric wire 80 is imaged in an intended posture, the Y direction and the extending direction of the terminal-attached electric wire 80 are well matched in the target region M set by the above processing. However, when the terminal-attached electric wire 80 is imaged in a posture that is slightly rotated from a predetermined posture, for example, the Y direction and the extending direction of the terminal-attached electric wire 80 may be shifted. Therefore, for example, prior to setting the target area M, the target area setting unit 32 may perform rotation correction on the imaging data as necessary. When performing this rotation correction, the target region setting unit 32 first specifies the extending direction of the terminal-attached electric wire 80 in the imaging data by detecting, for example, the edge portion of the core wire crimping unit 92, and the extending direction is determined. When there is a deviation from the intended direction, the imaging data is rotated so that this deviation is reduced. Then, the target area M is set in the imaging data after the rotation correction is performed. If this rotation correction is performed, it is ensured that the Y-axis and the extending direction of the terminal-attached electric wire 80 are in good agreement.

<前処理部33>
前処理部33は、端子付電線80の撮像データにおける対象領域M内のデータ部分を対象データとして、対象データに対して前処理を施す。前処理とは、具体的には、対象データを、輝度成分を抽出した輝度データに変換し、さらに、得られた輝度データに、端子付電線80を横断する方向(X方向)の微分フィルタをかける処理である。微分フィルタをかけられた後の輝度データは、X方向に隣り合う輝度の変化量を表すデータとなる。この微分フィルタがかけられることによって、撮像データのY方向に沿うエッジが強調される。また、この微分フィルタがかけられることによって、絶縁被覆部82に電線識別用のマーク(例えばリングマーク)などが印刷されている場合であっても、その輝度成分は、微分フィルタを通すことによりおおまかに除去されることになる。
<Pre-processing unit 33>
The preprocessing unit 33 preprocesses the target data using the data portion in the target region M in the imaging data of the terminal-attached electric wire 80 as target data. Specifically, the pre-processing converts target data into luminance data obtained by extracting luminance components, and further applies a differential filter in the direction (X direction) across the terminal-attached electric wire 80 to the obtained luminance data. Process. The luminance data after being subjected to the differential filter is data representing the amount of change in luminance adjacent in the X direction. By applying this differential filter, the edge along the Y direction of the imaged data is emphasized. Further, by applying this differential filter, even if a wire identification mark (for example, a ring mark) is printed on the insulation coating portion 82, the luminance component is roughly obtained by passing through the differential filter. Will be removed.

<バラツキ量算出部34>
いま、撮像データ内に設定された対象領域Mが、端子付電線80を横断する方向(X方向)に沿って「m」画素、端子付電線80の延在方向(Y方向)に沿って「n」画素が、マトリクス状に配列された「m×n」の画素領域であったとする。ここで、X方向に沿って延在し、Y方向に沿う幅が1画素分の帯状領域を「ライン」とよぶとすると、対象領域Mは、Y軸に沿って「n」本のラインが配列された画素領域となっている。以下において、この「n」本のラインを、+Y側(端子付電線80の先端側)から順に、第1ラインL1、第2ラインL2、・・、第nラインLnという(図6参照)。
<Variation amount calculation unit 34>
Now, the target region M set in the imaging data is “m” pixels along the direction (X direction) crossing the terminal-attached electric wire 80, and along the extending direction (Y direction) of the terminal-attached electric wire 80. It is assumed that “n” pixels are “m × n” pixel regions arranged in a matrix. Here, when a band-like region extending along the X direction and having a width along the Y direction of one pixel is called a “line”, the target region M has “n” lines along the Y axis. It is an arrayed pixel region. Hereinafter, these “n” lines are referred to as a first line L1, a second line L2,..., And an nth line Ln in order from the + Y side (the distal end side of the terminal-attached electric wire 80) (see FIG. 6).

バラツキ量算出部34は、前処理後の対象データにおいて、Y方向に沿って配列される複数のラインL1,L2,・・,Lnのそれぞれについて、当該ラインLi(i=1,2,・・,n)に沿う輝度の変化量(具体的には、X方向に隣り合う画素間の輝度の差分値)の絶対値を総和した値を、当該ラインLiのバラツキ量Viとして取得する。   The variation amount calculation unit 34 calculates the line Li (i = 1, 2,...) For each of the plurality of lines L1, L2,. , N), a value obtained by summing up absolute values of luminance change amounts (specifically, luminance difference values between pixels adjacent in the X direction) is acquired as the variation amount Vi of the line Li.

ただし、各ラインLiの両端付近は、バラツキ量Viの算出において考慮されないことが好ましい。すなわち、バラツキ量算出部34は、各ラインLiにおいて、その両端の部分領域を除いた中央部分を対象ライン部分Ciとし、対象ライン部分Ciにおける輝度の変化量の絶対値を総和した値を、バラツキ量Viとして取得することが好ましい。   However, it is preferable that the vicinity of both ends of each line Li is not considered in the calculation of the variation amount Vi. That is, the variation amount calculation unit 34 sets the central portion excluding the partial regions at both ends of each line Li as the target line portion Ci, and calculates a value obtained by summing up the absolute values of the luminance change amounts in the target line portion Ci. It is preferable to obtain the quantity Vi.

対象ライン部分Ciは、例えば、次の態様で規定することができる。すなわち、バラツキ量算出部34は、まず、ラインLi内における、端子付電線80の一対のエッジ(X方向に沿う両端部)の各位置Eai,Ebiを特定する。端子付電線80のエッジ(すなわち、端子付電線80と背景との境界位置)は、当該境界位置を境に輝度が大きく変化する位置となっているので、バラツキ量算出部34は、輝度の変化量に基づいて、端子付電線80のエッジを特定することができる。そして、バラツキ量算出部34は、一対のエッジ位置Eai,Ebiの各々よりも定められたピクセル数分だけ(例えば、10ピクセル分だけ)内側の位置Fai,Fbiを特定し、これら一対の位置Fai,Fbiの間の領域を、対象ライン部分Ciとする。   The target line portion Ci can be defined in the following manner, for example. That is, the variation amount calculation unit 34 first identifies the positions Eai and Ebi of the pair of edges (both ends along the X direction) of the terminal-attached electric wire 80 in the line Li. Since the edge of the terminal-attached electric wire 80 (that is, the boundary position between the terminal-attached electric wire 80 and the background) is a position where the luminance greatly changes with the boundary position as a boundary, the variation amount calculation unit 34 changes the luminance. Based on the amount, the edge of the terminal-attached electric wire 80 can be specified. Then, the variation amount calculation unit 34 identifies the positions Fai and Fbi that are inside by the number of pixels determined from each of the pair of edge positions Eai and Ebi (for example, by 10 pixels), and the pair of positions Fai. , Fbi is a target line portion Ci.

上記の態様により規定された対象ライン部分Ciは、電線8以外が現れている部分(端子付電線80の背景、第2連結部95の起立片など)が除かれたものとなっている。したがって、背景や起立片の影響を除去して、電線8に由来する輝度の変化量のみを、バラツキ量Viに反映させることができる。   The target line portion Ci defined by the above-described aspect is such that portions other than the electric wires 8 appear (the background of the terminal-attached electric wire 80, the standing piece of the second connecting portion 95, etc.) are removed. Therefore, the influence of the background and the standing piece can be removed, and only the amount of change in luminance derived from the electric wire 8 can be reflected in the variation amount Vi.

各ラインLiについて算出されたバラツキ量Viをみると、当該ラインLiに電線8内のどの位置が現れているかを判別することができる。すなわち、素線により成り立ち、比較的凹凸の多い面領域をなす露出芯線部81が現れている領域は、電線8を横断する方向(X方向)について、輝度が比較的大きく変動する。したがって、あるラインLiに相当する位置に、露出芯線部81が存在している場合、当該ラインLiのバラツキ量Viは、比較的大きな値となる。一方、樹脂などで形成され、比較的凹凸の少ない面領域をなす絶縁被覆部82が現れている領域は、電線8を横断する方向(X方向)について、輝度があまり変化しない。したがって、あるラインLiに相当する位置に、絶縁被覆部82が存在している場合、当該ラインLiのバラツキ量Viは、比較的小さな値となる。   By looking at the variation amount Vi calculated for each line Li, it is possible to determine which position in the electric wire 8 appears on the line Li. In other words, the brightness of the region where the exposed core portion 81 which is formed of the strands and forms the surface region having a relatively large unevenness appears in the direction crossing the electric wire 8 (X direction) is relatively large. Therefore, when the exposed core part 81 exists at a position corresponding to a certain line Li, the variation amount Vi of the line Li becomes a relatively large value. On the other hand, in the region where the insulating coating portion 82 which is formed of resin or the like and forms a surface region with relatively little unevenness appears, the luminance does not change much in the direction crossing the electric wire 8 (X direction). Therefore, when the insulation coating portion 82 exists at a position corresponding to a certain line Li, the variation amount Vi of the line Li is a relatively small value.

<評価部35>
評価部35は、端子付電線80の延在方向(Y軸)に沿う、バラツキ量V1,V2,・・,Vnの変化の態様に基づいて、端子付電線80の状態を評価する。評価部35は、具体的には、例えば、バラツキ量V1,V2,・・,Vnの変化の態様に基づいて、間隙部分に露出芯線部81と絶縁被覆部82との両方が現れているか否か(すなわち、間隙部分に、露出芯線部81と絶縁被覆部82との境界が現れているか否か)を判断し、露出芯線部81と絶縁被覆部82との両方が現れている場合に、当該端子付電線80に肯定的な評価を与える。評価部35が端子付電線80を評価する処理の流れについては、後に具体的に説明する。
<Evaluation part 35>
The evaluation unit 35 evaluates the state of the terminal-attached electric wire 80 based on the variation of the variation amounts V1, V2,..., Vn along the extending direction (Y-axis) of the terminal-attached electric wire 80. Specifically, for example, the evaluation unit 35 determines whether or not both the exposed core portion 81 and the insulating coating portion 82 appear in the gap portion based on the variation of the variation amounts V1, V2,. (That is, whether or not the boundary between the exposed core portion 81 and the insulating coating portion 82 appears in the gap portion), and when both the exposed core portion 81 and the insulating coating portion 82 appear, A positive evaluation is given to the electric wire 80 with a terminal. The process flow in which the evaluation unit 35 evaluates the terminal-attached electric wire 80 will be specifically described later.

<2−3.処理の流れ>
検査装置100にて実行される処理の流れについて、図7を参照しながら説明する。図7は、当該処理の流れを示す図である。
<2-3. Process flow>
The flow of processing executed by the inspection apparatus 100 will be described with reference to FIG. FIG. 7 is a diagram showing the flow of the processing.

<i.全体の流れ>
まず、撮像制御部31が、撮像部1を制御して、検査対象となる端子付電線80を撮像させて、撮像データを取得させる(ステップS1)。
<I. Overall flow>
First, the imaging control unit 31 controls the imaging unit 1 to image the terminal-attached electric wire 80 to be inspected and acquire imaging data (step S1).

続いて、対象領域設定部32が、ステップS1で取得された撮像データ内に、対象領域Mを設定する(ステップS2)。   Subsequently, the target area setting unit 32 sets the target area M in the imaging data acquired in step S1 (step S2).

続いて、前処理部33が、ステップS2で設定された対象領域M内のデータ部分を対象データとして、対象データに対して前処理を施す(ステップS3)。   Subsequently, the preprocessing unit 33 preprocesses the target data using the data portion in the target area M set in step S2 as the target data (step S3).

続いて、バラツキ量算出部34が、前処理後の対象データにおける、n本のラインL1,L2,・・,Lnの各々について、バラツキ量V1,V2,・・,Vnを算出する(ステップS4)。   Subsequently, the variation amount calculation unit 34 calculates the variation amounts V1, V2,..., Vn for each of the n lines L1, L2,..., Ln in the pre-processed target data (step S4). ).

続いて、評価部35が、ステップS4で算出されたバラツキ量V1,V2,・・,Vnの、端子付電線80の延在方向(Y軸)に沿う変化の態様に基づいて、端子付電線80を評価する(ステップS5)。得られた評価結果は、例えば、表示装置22に表示されることによって、オペレータに報知される。   Subsequently, the evaluation unit 35 determines the variation amounts V1, V2,..., Vn calculated in step S4 based on the variation along the extending direction (Y axis) of the terminal-attached electric wire 80. 80 is evaluated (step S5). The obtained evaluation result is displayed on the display device 22 to notify the operator, for example.

<ii.評価処理の流れ>
評価部35が行う評価処理(ステップS5)の流れについて、図8〜図13を参照しながら説明する。図8は、当該処理の流れを示す図である。図9〜図13は、端子付電線80から得られる変動関数Tの一例を模式的に示す図である。
<Ii. Flow of evaluation process>
The flow of the evaluation process (step S5) performed by the evaluation unit 35 will be described with reference to FIGS. FIG. 8 is a diagram showing the flow of the processing. 9-13 is a figure which shows typically an example of the variation function T obtained from the electric wire 80 with a terminal.

まず、評価部35は、2次元のグラフの横軸に、n本のラインL1,L2,・・,Lnをその配列順(具体的には、ライン番号の昇順)に並べ、当該2次元のグラフの縦軸に、各ラインLi(i=1,2,・・,n)について算出されたバラツキ量Viをプロットする。そして、当該プロットを結んで得られる線を、変動関数Tとして取得する(ステップS101)。ここで、得られた変動関数Tを、移動平均などを用いて平滑化しておくことも好ましい。   First, the evaluation unit 35 arranges n lines L1, L2,..., Ln in the arrangement order (specifically, ascending order of line numbers) on the horizontal axis of the two-dimensional graph. The variation amount Vi calculated for each line Li (i = 1, 2,..., N) is plotted on the vertical axis of the graph. Then, a line obtained by connecting the plots is acquired as a variation function T (step S101). Here, it is also preferable to smooth the obtained variation function T using a moving average or the like.

続いて、評価部35は、変動関数Tが規定される2次元のグラフ上に、定められた一定のバラツキ量(すなわち、閾値となるバラツキ量であり、以下単に「閾値」ともいう)qで推移する閾値関数Qを規定するとともに、この閾値関数Qと変動関数Tとの交点Pの個数を計数する(ステップS102)。なお、閾値qの値は、例えば、オペレータが任意に設定できる構成としてもよいし、変動関数Tに応じて評価部35が自動に算出する構成としてもよい。後者の場合、例えば、評価部35は、変動関数Tにおけるバラツキ量の最大値と最小値との平均値を算出して、得られた値を閾値qの値として用いてもよい。   Subsequently, the evaluation unit 35 uses a predetermined constant variation amount (that is, a variation amount serving as a threshold, hereinafter simply referred to as “threshold”) q on a two-dimensional graph in which the variation function T is defined. The transition threshold function Q is defined, and the number of intersection points P between the threshold function Q and the variation function T is counted (step S102). Note that the value of the threshold value q may be, for example, a configuration that can be arbitrarily set by an operator, or a configuration that the evaluation unit 35 automatically calculates according to the variation function T. In the latter case, for example, the evaluation unit 35 may calculate an average value of the maximum value and the minimum value of the variation amount in the variation function T, and use the obtained value as the value of the threshold value q.

続いて、ステップS102の計数結果に基づいて、変動関数Tと閾値関数Qとの交点Pの個数が、「0(ゼロ)」「1」「2」「3以上」のいずれであるか否かを判断する(ステップS103〜ステップS105)。   Subsequently, based on the counting result in step S102, whether the number of intersection points P between the variation function T and the threshold function Q is “0 (zero)”, “1”, “2”, “3 or more”. Is determined (steps S103 to S105).

(a)変動関数Tと閾値関数Qとの交点Pが0個の場合
変動関数Tと閾値関数Qとの交点Pの個数が「0」であると判断された場合(ステップS103でYES)、評価部35は、端子付電線80に否定的な評価を与える(ステップS106)。
(A) When the number of intersection points P between the variation function T and the threshold function Q is 0 When it is determined that the number of intersection points P between the variation function T and the threshold function Q is “0” (YES in step S103). Evaluation part 35 gives negative evaluation to electric wire 80 with a terminal (Step S106).

例えば、図9に示されるように、検査対象となる端子付電線80が、間隙部分に絶縁被覆部82しか現れていない場合(すなわち、露出芯線部81と絶縁被覆部82との境界位置が、芯線圧着部92の下に隠れている場合)、変動関数Tは、全ラインに亘って、低い値で推移するものとなり、閾値関数Qとの交点Pの個数がゼロとなる。評価部35は、このような変動関数Tを与える端子付電線80に対して、否定的な評価を与える。   For example, as shown in FIG. 9, when the terminal-attached electric wire 80 to be inspected has only the insulating coating portion 82 appearing in the gap portion (that is, the boundary position between the exposed core portion 81 and the insulating coating portion 82 is When hidden under the core crimping portion 92), the variation function T changes at a low value over the entire line, and the number of intersection points P with the threshold function Q becomes zero. The evaluation unit 35 gives a negative evaluation to the terminal-attached electric wire 80 that gives such a variation function T.

また例えば、図10に示されるように、検査対象となる端子付電線80が、間隙部分に露出芯線部81しか現れていない場合(すなわち、露出芯線部81と絶縁被覆部82との境界位置が、被覆圧着部93の下に隠れている場合)、変動関数Tは、全ラインに亘って、高い値で推移するものとなり、閾値関数Qとの交点Pの個数がゼロとなる。評価部35は、このような変動関数Tを与える端子付電線80に対しても、否定的な評価を与える。   Further, for example, as shown in FIG. 10, when the terminal-attached electric wire 80 to be inspected has only the exposed core wire portion 81 appear in the gap portion (that is, the boundary position between the exposed core wire portion 81 and the insulating coating portion 82 is The variation function T changes at a high value over the entire line, and the number of the intersection points P with the threshold function Q becomes zero. Evaluation part 35 gives negative evaluation also to electric wire 80 with a terminal which gives such variation function T.

(b)変動関数Tと閾値関数Qとの交点Pが1個の場合
変動関数Tと閾値関数Qとの交点Pの個数が「1」であると判断された場合(ステップS103でNO、ステップS104でYES)、評価部35は、続いて、変動関数Tが定められた形状タイプに合致するか否かを判断する(ステップS107)。ここで、定められた形状タイプとは、具体的には、交点Pよりもライン番号が小さい側(対象領域Mの+Y側の部分に相当)で閾値関数Qより大きな値で推移するとともに、他方の側(交点Pよりもライン番号が大きい側(対象領域Mの−Y側の部分に相当))で閾値関数Qより小さな値で推移するような形状である。
(B) When there is one intersection point P between the variation function T and the threshold function Q When it is determined that the number of intersection points P between the variation function T and the threshold function Q is “1” (NO in step S103, step Next, the evaluation unit 35 determines whether or not the variation function T matches the determined shape type (step S107). Here, specifically, the determined shape type is a value larger than the threshold function Q on the side where the line number is smaller than the intersection P (corresponding to the + Y side portion of the target region M), while the other (A side having a larger line number than the intersection point P (corresponding to a portion on the −Y side of the target region M)) is shifted in a value smaller than the threshold function Q.

ステップS107で肯定的な判断が得られた場合、評価部35は、端子付電線80に肯定的な評価を与える(ステップS108)。一方、ステップS107で否定的な判断が得られた場合、評価部35は、端子付電線80に否定的な評価を与える(ステップS109)。   When a positive determination is obtained in step S107, the evaluation unit 35 gives a positive evaluation to the terminal-attached electric wire 80 (step S108). On the other hand, when a negative determination is obtained in step S107, the evaluation unit 35 gives a negative evaluation to the terminal-attached electric wire 80 (step S109).

例えば、図11に示されるように、検査対象となる端子付電線80が、間隙部分に露出芯線部81と絶縁被覆部82との両方が現れている場合、変動関数Tは、ライン番号が相対的に小さい側に、バラツキ量が比較的高い値で推移する部分が現れるとともに、ライン番号が相対的に大きい側に、バラツキ量が比較的低い値で推移する部分が現れ、途中で閾値関数Qとの交差するものとなる。つまり、変動関数Tは、閾値関数Qとの交点Pが1個であり、かつ、上記の定められた形状タイプに合致するものとなる。評価部35は、このような変動関数Tを与える端子付電線80に対して、肯定的な評価を与える。   For example, as shown in FIG. 11, when both the exposed core wire portion 81 and the insulating coating portion 82 appear in the gap portion of the terminal-attached electric wire 80 to be inspected, the variation function T has a relative line number. On the other hand, a portion where the variation amount changes at a relatively high value appears on the small side, and a portion where the variation amount changes on a relatively large value appears on the relatively large line number. Crosses with That is, the variation function T has one intersection point P with the threshold function Q, and matches the above defined shape type. The evaluation unit 35 gives a positive evaluation to the terminal-attached electric wire 80 that gives such a variation function T.

(c)変動関数Tと閾値関数Qとの交点Pが2個の場合
変動関数Tと閾値関数Qとの交点Pの個数が「2」であると判断された場合(ステップS103でNO、ステップS104でNO、ステップS105でYES)、評価部35は、まず、変動関数Tの一部を評価の対象から除外する(ステップS110)。
(C) When there are two intersection points P between the variation function T and the threshold function Q When it is determined that the number of intersection points P between the variation function T and the threshold function Q is “2” (NO in step S103, step First, the evaluation unit 35 excludes a part of the variation function T from the evaluation target (step S110).

具体的には、評価部35は、まず、変動関数Tにおけるライン番号が小さい側(+Y側)の端部Hにおいて、変動関数Tが閾値関数Qよりも大きいか否かを判断する。すなわち、ライン番号が最も小さいラインL1において、そのバラツキ量V1が閾値qよりも大きいか否かを判断する。   Specifically, the evaluation unit 35 first determines whether or not the variation function T is greater than the threshold function Q at the end portion H on the side where the line number in the variation function T is small (+ Y side). That is, it is determined whether or not the variation amount V1 of the line L1 having the smallest line number is larger than the threshold value q.

そして、変動関数Tが、その端部Hにおいて閾値関数Qよりも小さい場合、評価部35は、2個の交点Pのうち、ライン番号が小さい側の交点P、および、当該交点Pよりもライン番号が小さい側の部分Jを、評価の対象から除外する(図12参照)。   When the variation function T is smaller than the threshold function Q at the end portion H, the evaluation unit 35 determines the intersection point P having the smaller line number among the two intersection points P, and the line from the intersection point P. The portion J having a smaller number is excluded from the evaluation target (see FIG. 12).

一方、変動関数Tが、その端部Hにおいて閾値関数Qよりも大きい場合、評価部35は、2個の交点Pのうち、ライン番号が大きい側の交点P、および、当該交点Pよりもライン番号が大きい側の部分Jを、評価の対象から除外する(図13参照)。   On the other hand, when the variation function T is larger than the threshold function Q at the end portion H, the evaluation unit 35 determines the intersection point P having the larger line number among the two intersection points P and the line from the intersection point P. The part J having the larger number is excluded from the evaluation target (see FIG. 13).

ステップS110を経ると、評価の対象として残された変動関数Tの部分には、閾値関数Qとの交点Pが1個だけ残ることになる。評価部35は、続いて、評価の対象として残された変動関数Tの部分が、定められた形状タイプに合致するか否かを判断する(ステップS107)。上述したとおり、定められた形状タイプとは、具体的には、交点Pよりもライン番号が小さい側で閾値関数Qより大きな値で推移するとともに、他方の側(交点Pよりもライン番号が大きい側)で閾値関数Qより小さな値で推移するような形状である。   After step S110, only one intersection point P with the threshold function Q remains in the portion of the variation function T that is left as an evaluation target. Subsequently, the evaluation unit 35 determines whether or not the portion of the variation function T left as an evaluation target matches the determined shape type (step S107). As described above, specifically, the determined shape type means that the line number is smaller than the intersection point P and changes with a value larger than the threshold function Q, and the other side (the line number is larger than the intersection point P). The shape is such that it changes at a value smaller than the threshold function Q.

ステップS107で肯定的判断が得られた場合、評価部35は、端子付電線80に肯定的な評価を与える(ステップS108)。つまり、変動関数Tと閾値関数Qとの交点Pが2個の場合、評価部35は、いずれかの交点について、変動関数Tが定められた形状タイプに合致する場合に、肯定的な評価を与えることになる。一方、ステップS107で否定的な判断が得られた場合、評価部35は、端子付電線80に否定的な評価を与える(ステップS109)。   When a positive determination is obtained in step S107, the evaluation unit 35 gives a positive evaluation to the terminal-attached electric wire 80 (step S108). That is, when there are two intersection points P between the variation function T and the threshold function Q, the evaluation unit 35 performs a positive evaluation when the variation function T matches the determined shape type at any one of the intersection points. Will give. On the other hand, when a negative determination is obtained in step S107, the evaluation unit 35 gives a negative evaluation to the terminal-attached electric wire 80 (step S109).

例えば、図12に示されるように、検査対象となる端子付電線80が、間隙部分に露出芯線部81と絶縁被覆部82との両方が現れている場合において、対象領域Mが芯線圧着部92を含むような位置に設定されてしまった場合、ライン番号が小さいラインのバラツキ量は、芯線圧着部92のベルマウス部分、あるいは、芯線圧着部92と電線8との境界の影になった部分などの影響で、比較的小さい値となる。したがって、この場合、変動関数Tは、ライン番号が相対的に大きい側とライン番号が相対的に小さい側とに、バラツキ量が比較的低い値で推移する部分が現れるとともに、これらの部分に挟まれて、バラツキ量が比較的高い値で推移する部分が現れ、途中で閾値関数Qと2回交差するものとなる。つまり、変動関数Tは、閾値関数Qとの交点Pが2個であり、かつ、ライン番号が大きい側の交点Pについて、上記の定められた形状タイプに合致するものとなる。評価部35は、このような変動関数Tを与える端子付電線80に対して、肯定的な評価を与える。   For example, as shown in FIG. 12, when the terminal-attached electric wire 80 to be inspected has both the exposed core wire portion 81 and the insulating coating portion 82 appear in the gap portion, the target region M is the core wire crimping portion 92. If the position is set to include a line, the variation amount of the line with a small line number is the bell mouth portion of the core wire crimping portion 92 or the shadow portion of the boundary between the core wire crimping portion 92 and the electric wire 8. It becomes a relatively small value due to such influences. Therefore, in this case, the variation function T has a portion where the variation amount is relatively low on the side where the line number is relatively large and the side where the line number is relatively small, and is sandwiched between these portions. Thus, a portion where the variation amount changes at a relatively high value appears, and the threshold value function Q is crossed twice in the middle. That is, the variation function T has two intersection points P with the threshold function Q, and the intersection point P on the side with the larger line number matches the above defined shape type. The evaluation unit 35 gives a positive evaluation to the terminal-attached electric wire 80 that gives such a variation function T.

また例えば、図13に示されるように、検査対象となる端子付電線80が、間隙部分に露出芯線部81と絶縁被覆部82との両方が現れている場合において、対象領域Mが被覆圧着部93を含むような位置に設定されてしまった場合、ライン番号が大きいラインのバラツキ量は、被覆圧着部93の影響で、比較的大きい値となる。したがって、この場合、変動関数Tは、ライン番号が相対的に大きい側とライン番号が相対的に小さい側とに、バラツキ量が比較的高い値で推移する部分が現れるとともに、これらの部分に挟まれて、バラツキ量が比較的低い値で推移する部分が現れ、途中で閾値関数Qと2回交差するものとなる。つまり、変動関数Tは、閾値関数Qとの交点Pが2個であり、かつ、ライン番号が小さい側の交点Pについて、上記の定められた形状タイプに合致するものとなる。評価部35は、このような変動関数Tを与える端子付電線80に対して、肯定的な評価を与える。   Further, for example, as shown in FIG. 13, in the case where the terminal-attached electric wire 80 to be inspected has both the exposed core portion 81 and the insulating coating portion 82 appear in the gap portion, the target region M is the covered crimp portion. When the position is set to include 93, the variation amount of the line having a large line number becomes a relatively large value due to the influence of the covering crimping portion 93. Therefore, in this case, the variation function T has a portion where the variation amount is relatively high on the side where the line number is relatively large and the side where the line number is relatively small, and is sandwiched between these portions. Thus, a portion where the variation amount changes at a relatively low value appears, and the threshold value function Q is crossed twice in the middle. That is, the variation function T has two intersection points P with the threshold function Q, and the intersection point P on the side with the smaller line number matches the above defined shape type. The evaluation unit 35 gives a positive evaluation to the terminal-attached electric wire 80 that gives such a variation function T.

(d)変動関数Tと閾値関数Qとの交点Pが3個以上の場合
変動関数Tと閾値関数Qとの交点Pの個数が「3以上」であると判断された場合(ステップS103でNO、ステップS104でNO,ステップS105でNO)、評価部35は、端子付電線80に否定的な評価を与える(ステップS111)。
(D) When the intersection point P between the variation function T and the threshold function Q is 3 or more When it is determined that the number of intersection points P between the variation function T and the threshold function Q is “3 or more” (NO in step S103) The evaluation unit 35 gives a negative evaluation to the terminal-attached electric wire 80 (NO in step S104, NO in step S105) (step S111).

<3.効果>
上記の実施の形態によると、端子付電線80の延在方向に沿うバラツキ量Vi(i=1,2,・・,n)の変化の態様に基づいて、端子付電線80の状態を評価する。ここにおいて、バラツキ量Viは、端子付電線80を横断する方向に沿う輝度の変化量の絶対値を総和した値であるので、例えば、電線8の露出芯線部81と対応する部分は、その色に関係なく、バラツキ量Viが比較的大きな値となり、電線8の絶縁被覆部82と対応する部分は、その色に関係なく、バラツキ量Viが比較的小さな値となる。したがって、端子付電線80の状態を、その色に関係なく、簡易かつ正確に評価できる。
<3. Effect>
According to said embodiment, the state of the electric wire 80 with a terminal is evaluated based on the aspect of the variation | change_quantity Vi (i = 1, 2, ..., n) along the extension direction of the electric wire 80 with a terminal. . Here, the variation amount Vi is a value obtained by summing the absolute values of the luminance variations along the direction traversing the terminal-attached electric wire 80. For example, the portion corresponding to the exposed core portion 81 of the electric wire 8 has its Regardless of the variation, the variation amount Vi has a relatively large value, and the portion corresponding to the insulating coating portion 82 of the electric wire 8 has a relatively small variation amount Vi regardless of the color. Therefore, the state of the terminal-attached electric wire 80 can be easily and accurately evaluated regardless of its color.

また、上記の実施によると、端子付電線80における、端子9の芯線圧着部92が圧着されている第1部分と端子9の被覆圧着部93が圧着されている第2部分との間の部分が、対象領域Mとされる。この構成によると、電線8に対して端子9が適切な位置に接続されているかを評価することができる。特に、第1部分と第2部分との間の部分の全体が、1つの対象領域Mとされると、端子付電線80の延在方向に沿う対象領域Mの長さを十分大きくとることができるので、撮像データ中の部分的なノイズなどの影響が低減される。したがって、評価の正確性を担保することができる。   Moreover, according to said implementation, in the electric wire 80 with a terminal, the part between the 1st part by which the core wire crimping part 92 of the terminal 9 is crimped, and the 2nd part by which the coating crimping part 93 of the terminal 9 is crimped | bonded Is the target region M. According to this structure, it can be evaluated whether the terminal 9 is connected to the electric wire 8 at an appropriate position. In particular, if the entire portion between the first portion and the second portion is defined as one target region M, the length of the target region M along the extending direction of the terminal-attached electric wire 80 can be sufficiently large. Therefore, the influence of partial noise or the like in the imaging data is reduced. Therefore, the accuracy of evaluation can be ensured.

また、上記の実施の形態によると、バラツキ量Viの算出に先立って、対象領域M内のデータ部分に前処理が施される。この構成によると、例えば、検査対象となる端子付電線80の絶縁被覆部82に電線識別用のマークなどが印刷されている場合であっても、それに由来する輝度成分は微分フィルタを通すことによりおおまかに除去される。したがって、このようなマークなどの影響を受けて端子付電線80の状態を誤って評価する、といった事態を回避できる。   Further, according to the above-described embodiment, preprocessing is performed on the data portion in the target area M prior to the calculation of the variation amount Vi. According to this configuration, for example, even when a wire identification mark or the like is printed on the insulation coating portion 82 of the terminal-attached electric wire 80 to be inspected, the luminance component derived therefrom is passed through the differential filter. Roughly removed. Therefore, it is possible to avoid a situation in which the state of the terminal-attached electric wire 80 is erroneously evaluated under the influence of such a mark or the like.

また、上記の実施の形態によると、ラインLiの中央部分のみが、バラツキ量Viの算出において考慮される。ラインLiの両端部付近は、電線8以外が現れている部分(端子付電線80の背景、第2連結部95の起立片など)となりやすいところ、この構成によると電線8以外が現れている部分の影響を除去して、電線8に由来する輝度の変化量のみを、バラツキ量Viに反映させることができる。その結果、端子付電線80の状態を正確に評価することができる。   Further, according to the above-described embodiment, only the central portion of the line Li is considered in the calculation of the variation amount Vi. In the vicinity of both ends of the line Li, a portion other than the electric wire 8 is likely to appear (background of the electric wire with terminal 80, an upright piece of the second connecting portion 95, etc.). Thus, only the luminance change amount derived from the electric wire 8 can be reflected in the variation amount Vi. As a result, the state of the terminal-attached electric wire 80 can be accurately evaluated.

また、上記の実施の形態によると、変動関数Tと閾値関数Qとの交点Pの個数に基づいて、端子付電線80の状態を評価するので、簡易かつ正確に、端子付電線80の状態を評価することができる。   Moreover, according to said embodiment, since the state of the electric wire 80 with a terminal is evaluated based on the number of the intersections P of the fluctuation | variation function T and the threshold value function Q, the state of the electric wire 80 with a terminal can be simply and accurately. Can be evaluated.

<4.変形例>
<4−1.第1の変形例>
上記の実施の形態においては、ステップS107(図8)で肯定的な判断が得られた場合に、端子付電線80に肯定的な評価を与える構成としていたが、評価部35は、ステップS107で肯定的な評価が得られた場合に、さらに、次の処理を行ってもよい。
<4. Modification>
<4-1. First Modification>
In the above embodiment, when a positive determination is obtained in step S107 (FIG. 8), a positive evaluation is given to the terminal-attached electric wire 80. However, the evaluation unit 35 is configured in step S107. When a positive evaluation is obtained, the following processing may be further performed.

すなわち、変形例に係る評価部35は、ステップS107で肯定的な評価が得られた場合、続いて、交点Pよりもライン番号が小さい側において、バラツキ量が閾値関数Qよりも大きいラインが連続する本数の最大値を計数するとともに、交点Pよりもライン番号が大きい側において、閾値関数Qよりも小さいラインが連続する本数の最大値を計数する。そして、得られた2つの計数値の両方が、オペレータにより設定された許容値よりも大きいか否かを判断する。ここで肯定的な判断が得られた場合、評価部35は、端子付電線80に肯定的な評価を与える。一方、ここで否定的な判断が得られた場合、評価部35は、端子付電線80に否定的な評価を与える。   That is, when a positive evaluation is obtained in step S107, the evaluation unit 35 according to the modified example continues on the side where the line number is smaller than the intersection P, and the lines whose variation is larger than the threshold function Q are continuous. The maximum value of the number of lines to be processed is counted, and the maximum value of the number of continuous lines smaller than the threshold function Q on the side where the line number is larger than the intersection P is counted. Then, it is determined whether or not both of the two obtained count values are larger than the allowable value set by the operator. When a positive determination is obtained here, the evaluation unit 35 gives a positive evaluation to the terminal-attached electric wire 80. On the other hand, when a negative determination is obtained here, the evaluation unit 35 gives a negative evaluation to the terminal-attached electric wire 80.

この変形例によると、オペレータは、許容値を調整することによって、例えば、間隙部分にほんの少しだけ露出芯線部81(あるいは、絶縁被覆部82)が見えているような状態の端子付電線80に対して、否定的な評価を与えさせることができる。また、撮像データに含まれるノイズなどの影響で、否定的な評価を与えるべき端子付電線80に誤って肯定的な評価が与えられてしまうといった事態を回避できる。   According to this modification, the operator adjusts the allowable value, for example, to the electric wire with terminal 80 in a state in which the exposed core portion 81 (or the insulation coating portion 82) is only slightly visible in the gap portion. On the other hand, a negative evaluation can be given. Further, it is possible to avoid a situation in which a positive evaluation is erroneously given to the terminal-attached electric wire 80 that should be given a negative evaluation due to the influence of noise or the like included in the imaging data.

<4−2.第2の変形例>
評価部35が端子付電線80を評価する態様は、上記に例示したものに限らない。例えば、評価部35は、次の処理によって端子付電線80を評価してもよい。
<4-2. Second Modification>
The aspect in which the evaluation unit 35 evaluates the terminal-attached electric wire 80 is not limited to the example illustrated above. For example, the evaluation unit 35 may evaluate the terminal-attached electric wire 80 by the following process.

評価部35は、まず、図14に示されるように、変動関数Tを、横軸に沿って2等分割する(すなわち、ライン番号が小さい側とライン番号が大きい側とに2等分割する)中心線Kを規定し、中心線Kよりもライン番号が小さい側の変動関数Tの部分(第1部分)T1と、中心線Kよりもライン番号が大きい側の変動関数Tの部分(第2部分)T2との各々において、バラツキ量の平均値R1,R2を算出する。続いて、評価部35は、得られた2つの平均値R1,R2を比較して、第1部分T1の平均値R1が、第2部分T2の平均値よりも大きい場合に、端子付電線80に肯定的な評価を与える。   First, as shown in FIG. 14, the evaluation unit 35 divides the variation function T into two equal parts along the horizontal axis (that is, divides into two equal parts into a side with a smaller line number and a side with a larger line number). The center line K is defined, the portion of the variation function T (first portion) T1 on the side having a smaller line number than the center line K, and the portion of the variation function T on the side having a larger line number than the center line K (second portion). In each of (part) T2, average values R1 and R2 of variation are calculated. Subsequently, the evaluation unit 35 compares the obtained two average values R1, R2, and when the average value R1 of the first portion T1 is larger than the average value of the second portion T2, the electric wire with terminal 80 Give a positive evaluation.

この変形例によると、撮像条件などによって、変動関数Tが全体的に上側(あるいは、下側)にシフトしてしまった場合であっても、安定した評価結果を得ることができる。   According to this modification, a stable evaluation result can be obtained even when the variation function T is shifted upward (or downward) as a whole due to imaging conditions and the like.

<4−3.その他の変形例>
上記の実施の形態においては、検査対象は、端子付電線80であるとしたが、検査対象は必ずしも端子付電線80である必要はない。例えば、端子9が接続されていない電線8が検査対象とされてもよい。例えば、検査装置100を、端子9が接続されていない電線8において、皮剥ぎ位置が適切であるか否かの検査に用いてもよい。この場合、例えば、電線8の皮剥ぎ位置が存在するべき位置を含むように対象領域Mを設定して、上記の一連の処理を行って電線8の状態を評価すればよい。
<4-3. Other variations>
In the above embodiment, the inspection target is the terminal-attached electric wire 80, but the inspection object is not necessarily the terminal-attached electric wire 80. For example, the electric wire 8 to which the terminal 9 is not connected may be the inspection target. For example, you may use the test | inspection apparatus 100 for the test | inspection of whether the stripping position is appropriate in the electric wire 8 to which the terminal 9 is not connected. In this case, for example, the target region M may be set so as to include the position where the skinning position of the electric wire 8 should exist, and the state of the electric wire 8 may be evaluated by performing the above-described series of processing.

1 撮像部
2 検査処理部
31 撮像制御部
32 対象領域設定部
33 前処理部
34 バラツキ量算出部
35 評価部
80 端子付電線
8 電線
9 端子
90 窓部
100 検査装置
M 対象領域
T 変動関数
Q 閾値関数
DESCRIPTION OF SYMBOLS 1 Imaging part 2 Inspection processing part 31 Imaging control part 32 Target area setting part 33 Preprocessing part 34 Dispersion amount calculation part 35 Evaluation part 80 Electric wire with a terminal 8 Electric wire 9 Terminal 90 Window part 100 Inspection apparatus M Target area T Fluctuation function Q Threshold function

Claims (10)

電線状態の検査方法であって、
a)検査対象となる電線を撮像して撮像データを取得する工程と、
b)前記撮像データ内に、対象領域を設定する工程と、
c)前記対象領域内において、前記電線の延在方向と直交する方向に沿うラインを、前記電線の延在方向に沿って複数配列し、同一のラインに沿う輝度の変化量の絶対値を総和した値を、当該ラインのバラツキ量として取得する工程と、
d)前記電線の延在方向に沿う前記バラツキ量の変化の態様に基づいて、前記電線の状態を評価する工程と、
を備える、検査方法。
A method for inspecting a wire condition,
a) capturing an imaging data by imaging an electric wire to be inspected;
b) setting a target area in the imaging data;
c) In the target region, a plurality of lines along the direction perpendicular to the extending direction of the electric wires are arranged along the extending direction of the electric wires, and the absolute value of the amount of change in luminance along the same line is summed. Obtaining a value obtained as a variation amount of the line;
d) a step of evaluating a state of the electric wire based on a variation of the variation amount along the extending direction of the electric wire;
An inspection method comprising:
請求項1に記載の検査方法であって、
検査対象となる電線の端部に端子が接続されており、
前記電線における、前記端子の芯線圧着部が圧着されている第1部分と、前記端子の被覆圧着部が圧着されている第2部分との間の部分が、前記対象領域とされる、検査方法。
The inspection method according to claim 1,
A terminal is connected to the end of the wire to be inspected,
The inspection method, wherein a portion between the first portion of the electric wire where the core crimping portion of the terminal is crimped and the second portion of which the covering crimping portion of the terminal is crimped is the target region. .
請求項1または2に記載の検査方法であって、
e)前記バラツキ量の算出に先立って、前記対象領域内のデータ部分を、輝度成分を抽出した輝度データに変換するとともに、前記輝度データに、微分フィルタをかける前処理を行う工程、
を備える、検査方法。
The inspection method according to claim 1 or 2,
e) prior to the calculation of the variation amount, converting the data portion in the target region into luminance data obtained by extracting a luminance component, and performing a preprocessing for applying a differential filter to the luminance data;
An inspection method comprising:
請求項1から3のいずれかに記載の検査方法であって、
前記c)工程において、
前記ラインにおいて、その両端の部分領域を除いた中央部分を、対象ライン部分とし、前記対象ライン部分における前記輝度の変化量の絶対値を総和した値を、前記バラツキ量として取得する、検査方法。
The inspection method according to any one of claims 1 to 3,
In the step c),
An inspection method for obtaining a value obtained by summing up absolute values of the amount of change in luminance in the target line portion as the variation amount, with a central portion excluding partial regions at both ends of the line as the target line portion.
請求項1から4のいずれかに記載の検査方法であって、
前記d)工程が、
d1)2次元のグラフの横軸に、前記複数のラインをその配列順に並べ、前記2次元のグラフの縦軸に、前記複数のラインの各々について算出された前記バラツキ量をプロットして、当該プロットを結んで得られる線を、変動関数として取得する工程と、
d2)前記2次元のグラフ上に、定められた一定のバラツキ量で推移する閾値関数を規定するとともに、前記閾値関数と前記変動関数との交点の個数を計数する工程と、
d3)前記交点の個数に基づいて、前記電線の状態を評価する工程と、
を備える、検査方法。
The inspection method according to any one of claims 1 to 4,
Step d)
d1) On the horizontal axis of the two-dimensional graph, the plurality of lines are arranged in the order of arrangement, and on the vertical axis of the two-dimensional graph, the variation amount calculated for each of the plurality of lines is plotted, Obtaining a line obtained by connecting the plots as a variation function;
d2) defining a threshold function that transitions with a predetermined amount of variation on the two-dimensional graph, and counting the number of intersections of the threshold function and the variation function;
d3) evaluating the state of the wires based on the number of the intersections;
An inspection method comprising:
請求項5に記載の検査方法であって、
前記d3)工程において、
前記交点の個数がゼロの場合に否定的な評価を与える、検査方法。
The inspection method according to claim 5,
In the step d3),
An inspection method that gives a negative evaluation when the number of intersections is zero.
請求項5または6に記載の検査方法であって、
前記d3)工程において、
前記交点の個数が1の場合であり、かつ、前記変動関数が定められた形状タイプに合致する場合に、肯定的な評価を与え、
前記定められた形状タイプが、前記交点に対して定められた側で前記閾値関数より大きな値で推移するとともに、他方の側で前記閾値関数より小さな値で推移する形状である、検査方法。
The inspection method according to claim 5 or 6,
In the step d3),
If the number of intersections is 1 and the variation function matches a defined shape type, give a positive evaluation,
The inspection method, wherein the defined shape type is a shape that transitions with a value larger than the threshold function on a defined side with respect to the intersection and a transition with a value smaller than the threshold function on the other side.
請求項5から7のいずれかに記載の検査方法であって、
前記d3)工程において、
前記交点の個数が2の場合に、いずれかの交点について、前記変動関数が定められた形状タイプに合致する場合に、肯定的な評価を与え、
前記定められた形状タイプが、前記いずれかの交点に対して定められた側で前記閾値関数より大きな値で推移するとともに、他方の側で前記閾値関数より小さな値で推移する形状である、検査方法。
The inspection method according to any one of claims 5 to 7,
In the step d3),
If the number of intersections is 2, for any intersection, if the variation function matches the defined shape type, give a positive evaluation,
The defined shape type is a shape that transitions with a value greater than the threshold function on a defined side with respect to any of the intersections, and a shape that transitions with a value smaller than the threshold function on the other side. Method.
請求項5から8のいずれかに記載の検査方法であって、
前記d3)工程において、
前記交点の個数が3以上の場合に否定的な評価を与える、検査方法。
The inspection method according to any one of claims 5 to 8,
In the step d3),
An inspection method that gives a negative evaluation when the number of intersections is 3 or more.
電線状態の検査装置であって、
検査対象となる電線を撮像して撮像データを取得する撮像データ取得部と、
前記撮像データ内に、対象領域を設定する対象領域設定部と、
前記対象領域内において、前記電線の延在方向と直交する方向に沿うラインを、前記電線の延在方向に沿って複数配列し、同一のラインに沿う輝度の変化量の絶対値を総和した値を、当該ラインのバラツキ量として取得するバラツキ量算出部と、
前記電線の延在方向に沿う前記バラツキ量の変化の態様に基づいて、前記電線の状態を評価する評価部と、
を備える、検査装置。
A wire condition inspection device,
An imaging data acquisition unit that captures imaging data by imaging an electric wire to be inspected;
A target area setting unit for setting a target area in the imaging data;
Within the target area, a plurality of lines along the direction orthogonal to the extending direction of the electric wires are arranged along the extending direction of the electric wires, and a value obtained by summing up absolute values of luminance variations along the same line , And a variation amount calculation unit that acquires the variation amount of the line as
Based on the variation of the variation amount along the extending direction of the electric wire, the evaluation unit for evaluating the state of the electric wire,
An inspection apparatus comprising:
JP2013001548A 2013-01-09 2013-01-09 Wire state inspection method and wire state inspection device Active JP5924272B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013001548A JP5924272B2 (en) 2013-01-09 2013-01-09 Wire state inspection method and wire state inspection device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013001548A JP5924272B2 (en) 2013-01-09 2013-01-09 Wire state inspection method and wire state inspection device

Publications (2)

Publication Number Publication Date
JP2014134409A JP2014134409A (en) 2014-07-24
JP5924272B2 true JP5924272B2 (en) 2016-05-25

Family

ID=51412808

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013001548A Active JP5924272B2 (en) 2013-01-09 2013-01-09 Wire state inspection method and wire state inspection device

Country Status (1)

Country Link
JP (1) JP5924272B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017156189A (en) * 2016-03-01 2017-09-07 住友電装株式会社 Inspection method and inspection device
JP2017156298A (en) * 2016-03-04 2017-09-07 住友電装株式会社 Terminal position identification method, inspection method, terminal position identification device, and inspection device
JP6911442B2 (en) * 2017-03-27 2021-07-28 住友電装株式会社 Inspection equipment and inspection method
JP7164560B2 (en) * 2020-03-30 2022-11-01 矢崎総業株式会社 Appearance inspection device for crimp terminals

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59217137A (en) * 1983-05-25 1984-12-07 Shin Meiwa Ind Co Ltd Inspecting device for processed wire terminal
JP2517381B2 (en) * 1989-01-18 1996-07-24 新明和工業株式会社 Crimp terminal crimp condition inspection device
JP2624054B2 (en) * 1991-09-19 1997-06-25 住友電装株式会社 Wire stripping condition inspection method
JP5172876B2 (en) * 2010-02-23 2013-03-27 トルーソルテック株式会社 Terminal crimp failure detection device

Also Published As

Publication number Publication date
JP2014134409A (en) 2014-07-24

Similar Documents

Publication Publication Date Title
CN109215020B (en) High-voltage transmission line fault identification method based on computer vision
US9412189B2 (en) Method and system for detecting known measurable object features
Cai et al. A new IC solder joint inspection method for an automatic optical inspection system based on an improved visual background extraction algorithm
CN110544258A (en) Image segmentation method and device, electronic equipment and storage medium
JP5924272B2 (en) Wire state inspection method and wire state inspection device
US11308604B2 (en) Image-based control of wire harness and connector manufacturing processes using artificial intelligence
EP3314571B1 (en) Method and system for detecting known measurable object features
CN107967679B (en) Method for automatically selecting positioning core based on vector graph of PCB product
CN112730251A (en) Device and method for detecting color defects of screen
CN106530273B (en) High-precision FPC (Flexible printed Circuit) linear line detection and defect positioning method
CN113920057A (en) Method, device and system for identifying color of product indicator light
US20220326145A1 (en) Inspection method, program, and inspection system
CN105136818A (en) Printing substrate image detecting method
CN116993654B (en) Camera module defect detection method, device, equipment, storage medium and product
WO2017150328A1 (en) Terminal location specification method, inspection method, terminal location specification device, and inspection device
CN113643296B (en) Method and device for detecting assembly quality of inductance element, electronic equipment and storage medium
WO2017150268A1 (en) Inspection method and inspection device
US11080860B2 (en) Image inspection method
CN110288662B (en) Display detection method and system
JP2018077719A (en) Fracture analyzer and fracture analysis method
Melnyk et al. Detection of defects in printed circuit boards by flood-fill algorithm and distributed cumulative histogram
JP6080556B2 (en) Inspection image generation apparatus, inspection image generation method, and inspection image generation program
WO2017043270A1 (en) Inspection method for terminal-equipped electric wire and inspection device for terminal-equipped electric wire
WO2017188171A1 (en) Inspection device for inspecting exposed core wire part of electric wire
CA2972649C (en) Wire contact inspection

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20150528

TRDD Decision of grant or rejection written
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20160316

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20160322

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20160404

R150 Certificate of patent or registration of utility model

Ref document number: 5924272

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250