JP2943078B2 - Inspection device - Google Patents

Inspection device

Info

Publication number
JP2943078B2
JP2943078B2 JP2335654A JP33565490A JP2943078B2 JP 2943078 B2 JP2943078 B2 JP 2943078B2 JP 2335654 A JP2335654 A JP 2335654A JP 33565490 A JP33565490 A JP 33565490A JP 2943078 B2 JP2943078 B2 JP 2943078B2
Authority
JP
Japan
Prior art keywords
wire
inspection
inspected
pixels
electric wire
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2335654A
Other languages
Japanese (ja)
Other versions
JPH05126531A (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.)
Toshiba Engineering Corp
Original Assignee
Toshiba Engineering 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 Toshiba Engineering Corp filed Critical Toshiba Engineering Corp
Priority to JP2335654A priority Critical patent/JP2943078B2/en
Publication of JPH05126531A publication Critical patent/JPH05126531A/en
Application granted granted Critical
Publication of JP2943078B2 publication Critical patent/JP2943078B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

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

Description

【発明の詳細な説明】 [発明の目的] (産業上の利用分野) 本発明は、電線端部の加工品質の検査を画像処理によ
り行う検査装置に関する。
[Detailed Description of the Invention] [Object of the Invention] (Industrial application field) The present invention relates to an inspection apparatus for inspecting the processing quality of an end of an electric wire by image processing.

(従来の技術) 電線端部の処理の1つとして圧着端子を用いることが
ある。現在、電線端部の圧着加工は、自動端子圧着機に
より電線の被覆剥きから端子の圧着までを高速かつ自動
的に処理することが可能である。しかし、加工品質を保
つためには1本ごとまたはサンプルをとって圧着前の芯
線の長さや圧着位置の検査を行うことが好ましい。そこ
で、電線端部の画像を画素で構成される映像信号に変換
し、所定の画像処理を施して電線端部の加工品質の検査
を行う検査装置が開発されている。
(Prior Art) A crimp terminal may be used as one of the treatments of the electric wire end. At present, the crimping process of the end of the electric wire can automatically and automatically process from the stripping of the electric wire to the crimping of the terminal by an automatic terminal crimping machine. However, in order to maintain the processing quality, it is preferable to inspect the length of the core wire and the crimping position before crimping one by one or taking a sample. Therefore, an inspection apparatus has been developed which converts an image of the end of the electric wire into a video signal composed of pixels, performs predetermined image processing, and inspects the processing quality of the end of the electric wire.

これら検査装置は、自動端子圧着機とは別々に設けら
れており、電線端部に圧着端子が取付けられた後に、圧
着端子の取付け状態すべてを検査判定する。
These inspection devices are provided separately from the automatic terminal crimping machine, and after the crimp terminal is attached to the end of the electric wire, inspect and determine all the mounting states of the crimp terminal.

このような検査判定する場合、自動端子圧着機と検査
装置が別々であるため、自動端子圧着機の一つの処理工
程(例えば、電線被覆剥ぎ)終了後、検査装置を自動端
子圧着機の近傍に移動させて電線被覆剥ぎ状態を検査判
定しているため、検査装置の移動時間を要する。
In the case of such an inspection determination, since the automatic terminal crimping machine and the inspection device are separate, after one processing step of the automatic terminal crimping machine (for example, stripping the wire covering), the inspection device is moved to the vicinity of the automatic terminal crimping machine. Since the wire sheath is moved and inspected to determine the stripped state, it takes time to move the inspection device.

さらに、電線端部に圧着端子を取付け後の検査項目
は、圧着後の芯線先端の突き出し状態、圧着端子の
電線被覆部の圧着状態、圧着端子の電線芯線の圧着状
態、電線圧着部の圧着端子のつぶれ具合などの検査判
定が必要となり、この工程での検査時間が多大である。
Furthermore, the inspection items after the crimp terminal is attached to the end of the wire include the protruding state of the core wire tip after crimping, the crimping state of the wire covering portion of the crimp terminal, the crimping state of the wire core of the crimp terminal, and the crimp terminal of the wire crimping section. It is necessary to make an inspection determination such as the degree of collapse, and the inspection time in this step is enormous.

これらの検査判定の時間のために、電線端部の圧着端
子を取付ける自動端子圧着機の生産性を低下させる要因
となっている。
These inspection and determination times are factors that reduce the productivity of an automatic terminal crimping machine for mounting crimp terminals at the ends of electric wires.

また、これら従来の検査装置は、非検査物体を方向お
よび傾きを一定にするため、確実に固定させないと正確
な判定が不可能であった。つまり線径が細く軟弱な撚線
等は、自動端子圧着機で加工中に曲りや撚れが生ずる
が、この場合、被検査物体の曲りまたは撚れを修正しか
つ固定させなければならなかった。
Further, in these conventional inspection apparatuses, accurate determination is impossible unless the non-inspection object is fixed securely in order to keep the direction and inclination of the non-inspection object. In other words, a soft wire with a small wire diameter may bend or twist during processing with an automatic terminal crimping machine, but in this case, the bent or twist of the object to be inspected must be corrected and fixed. .

さらに、検査にあたっては第14図に示すように検査ウ
ィンドウ1を被検査電線の画像2の適当な位置に設定
し、この検査ウィンドウ1内の画素について処理を行う
ことで検査を行っている。
Further, in the inspection, as shown in FIG. 14, the inspection window 1 is set at an appropriate position of the image 2 of the wire to be inspected, and the pixels in the inspection window 1 are processed to perform the inspection.

しかしながら、電線の線径や硬度、圧着端子の大きさ
の違いなどの条件により、撮像される位置での被検査電
線の傾きが一定しない。このため、被検査電線の画像3
が検査ウィンドウ1に対して斜めになってしまい、正確
な検査が行えなかった。
However, the inclination of the wire to be inspected at the position where the image is taken is not constant due to conditions such as the wire diameter and hardness of the wire and the size of the crimp terminal. Therefore, image 3 of the inspected electric wire
Was oblique to the inspection window 1, and an accurate inspection could not be performed.

また、被覆と背景色や圧着端子とを、色の違いで判別
しているため、被覆と異なる色の文字が被覆に印刷され
ている場合、文字を背景や圧着端子と誤判断してしまう
ため、被覆の長さなどを正確に測定することが困難であ
った。
In addition, since the coating is distinguished from the background color or the crimp terminal based on the color difference, if a character of a different color from the coating is printed on the coating, the character is erroneously determined as the background or the crimp terminal. It was difficult to accurately measure the length of the coating.

(発明が解決しようとする課題) 上述したように、従来の検査装置にあっては、自動端
子圧着機と検査装置が別々に存在し、検査判定項目も多
数あり、検査判定に要する時間が多大であり、被検査電
線の傾きや被覆に印刷された文字により正確な検査が行
えないという課題があった。
(Problems to be Solved by the Invention) As described above, in the conventional inspection device, the automatic terminal crimping machine and the inspection device are separately provided, there are many inspection determination items, and the time required for the inspection determination is large. However, there has been a problem that accurate inspection cannot be performed due to the inclination of the wire to be inspected or the characters printed on the coating.

そこで、本発明はかかる問題点を解決すべくなされた
もので、該存の自動端子圧着機に簡単に取付けられかつ
自動端子圧着機の生産効率を損なうことなく検査判定が
できかつ被検査電線の傾きや被覆に印刷された文字を補
正して正確な検査を行うことのできる検査装置を提供す
るものである。
Therefore, the present invention has been made to solve such a problem, and can be easily attached to the existing automatic terminal crimping machine, can perform inspection determination without impairing the production efficiency of the automatic terminal crimping machine, and can perform inspection of the wire to be inspected. An object of the present invention is to provide an inspection apparatus capable of performing an accurate inspection by correcting a character printed on an inclination or a covering.

[発明の構成] (課題を解決するための手段) 本発明は、被検査電線の画像を画素で構成される映像
信号に変換し、この映像信号に所定の画像処理を施して
前記被検査電線の検査を行う検査装置において、前記被
検査電線の映像上に、少なくとも2本の平行な傾き検査
ラインを設け、この検査ライン上の前記被検査電線の輪
郭を構成する画素の縦横の座標を算出する座標算出手段
と、前記座標算出手段により算出された前記画素の縦横
の座標比により前記被検査電線の傾き角度を算出する傾
き算出手段と、前記傾き算出手段により算出された前記
被検査電線の傾き角度に基づいて、画像処理画面上に検
査ウインドウを生成するウインドウ生成手段と、前記画
素数より求められる被検査電線の線径と予め設定される
係数とに基づいて、前記ウインドウ生成手段によって生
成された検査ウインドウの縦横の大きさを変更する手段
とを具備することを特徴とする検査装置である。
[Constitution of the Invention] (Means for Solving the Problems) The present invention converts an image of a wire under test into a video signal composed of pixels, performs predetermined image processing on the video signal, and performs a predetermined image processing on the video signal. In the inspection device that performs the inspection, at least two parallel inclination inspection lines are provided on the image of the inspection target wire, and the vertical and horizontal coordinates of the pixels constituting the contour of the inspection target wire on the inspection line are calculated. Coordinate calculating means, an inclination calculating means for calculating an inclination angle of the electric wire under inspection based on a vertical / horizontal coordinate ratio of the pixel calculated by the coordinate calculating means, and an inclination calculating means for calculating the inclination angle of the electric wire under inspection calculated by the inclination calculating means. A window generating means for generating an inspection window on the image processing screen based on the inclination angle; and a window generating means for generating the inspection window on the image processing screen based on a wire diameter of the inspection target wire obtained from the number of pixels and a preset coefficient. An inspection apparatus characterized by comprising a means for changing the size of the horizontal and vertical inspection windows generated by the window generating means.

また、第2の発明は、被検査電線の画像を画素で構成
される映像信号に変換し、この映像信号に所定の画像処
理を施して前記被検査電線の検査を行う検査装置におい
て、前記被検査電線の被覆部分の画素列に混在する被覆
と異なる色の画素の数を計数し、その数が所定の値以下
である場合、前記被覆と異なる色の画素を被覆と同等の
色の画素に補正する補正手段を具備するものである。
According to a second aspect of the present invention, in the inspection apparatus for converting an image of a wire under test into a video signal composed of pixels and performing predetermined image processing on the video signal to test the wire under test, Count the number of pixels of a different color from the coating mixed in the pixel column of the coating portion of the inspection wire, and when the number is equal to or less than a predetermined value, convert the pixel of a different color from the coating into a pixel of a color equivalent to the coating. It is provided with a correcting means for correcting.

また、第3の発明は、被検査電線の画像を画素で構成
される映像信号に変換し、この映像信号に所定の画像処
理を施して前記被検査電線の検査を行う検査装置におい
て、電線端部の被覆を剥いで露出させた芯線の長さを測
定する第1の測定手段と、前記芯線に圧着端子を圧着し
た後、前記被検査電線の被覆の端縁と被覆に圧着された
圧着端子との間の長さを測定する第2の測定手段と、前
記第1および第2の測定手段により測定される長さと予
め設定される前記圧着端子の形状とから前記被検査電線
の検査を行う検査手段とを具備するものである。
According to a third aspect of the present invention, there is provided an inspection apparatus for converting an image of an inspected electric wire into a video signal composed of pixels, performing predetermined image processing on the video signal, and inspecting the inspected electric wire. First measuring means for measuring the length of the core wire exposed by peeling off the coating of the portion, and a crimp terminal crimped to the end of the coating of the wire to be inspected and the coating after the crimp terminal is crimped to the core wire. A second measuring means for measuring a length between the first and second measuring means, and an inspection of the electric wire to be inspected based on a length measured by the first and second measuring means and a preset shape of the crimp terminal. Inspection means.

(作 用) 本発明では、芯線の長さと被覆の端縁と被覆に圧着さ
れた圧着端子との間の長さとを測定し、これらと予め設
定される圧着端子の形状(大きさ)とから被検査電線の
検査を行うので、測定箇所が少なく検査判定に要する時
間が少なく済み、自動端子圧着機の生産効率を損なうこ
となく検査判定ができる。
(Operation) In the present invention, the length of the core wire and the length between the edge of the coating and the crimp terminal crimped on the coating are measured, and the length and the shape (size) of the crimp terminal set in advance are measured. Since the inspection of the wire to be inspected is performed, the number of measurement points is small and the time required for the inspection determination is reduced, and the inspection determination can be performed without impairing the production efficiency of the automatic terminal crimping machine.

また、画素数より求められる被検査電線の線径と予め
設定される係数とから画像処理画面上に生成する検査ウ
ィンドウの縦横の大きさを決めている。さらに、被検査
電線の映像上での傾き角度を、被検査電線の輪郭を構成
する画素の縦横の座標比により求め、求めた傾き角度に
応じて検査ウィンドウを画像処理画面上に設けるので、
正確な検査が行える。
Further, the vertical and horizontal sizes of the inspection window generated on the image processing screen are determined from the wire diameter of the wire to be inspected obtained from the number of pixels and a preset coefficient. Furthermore, since the inclination angle on the image of the wire to be inspected is obtained by the vertical and horizontal coordinate ratio of the pixels constituting the contour of the wire to be inspected, and the inspection window is provided on the image processing screen according to the obtained inclination angle,
Accurate inspection can be performed.

また、被検査電線の被覆部分の画素列に混在する被覆
と異なる色の画素の数を計数し、その数が所定の値以下
である場合、被覆と異なる色の画素を被覆と同等の色の
画素に補正する補正手段を具備するので、被覆に印刷さ
れた文字を補正した後、正確な検査が行える。
In addition, the number of pixels of a different color from the coating mixed in the pixel column of the covered portion of the wire to be inspected is counted, and when the number is equal to or less than a predetermined value, the pixel of a different color from the coating is converted to a color equivalent to the coating. Since the correction means for correcting the pixels is provided, accurate inspection can be performed after correcting the characters printed on the coating.

(実施例) 以下、本発明の実施例を図面を用いて説明する。(Example) Hereinafter, an example of the present invention will be described with reference to the drawings.

第1図は本発明の一実施例の検査装置の構成を示すブ
ロック図である。
FIG. 1 is a block diagram showing a configuration of an inspection apparatus according to one embodiment of the present invention.

同図に示すように検査装置10は、ITVカメラ(工業用
ビデオカメラ)20a、20b、照明21、21、映像信号切替え
器23、デコーダ31ならびに画素メモリ33r、33g、33bを
備えたカラー画像入出力部30、カラー画像モニター35、
入出力インターフェース41、カム型リミットスイッチ4
3、機械系制御部45、CPU51ならびにメモリ53、ハードデ
ィスク装置55、フロッピィディスク装置57を備えた例え
ばパーソナルコンピュータからなるシステム制御部50、
システムモニタ61、キーボード63から構成されている。
As shown in FIG. 1, the inspection apparatus 10 includes a color image input device including ITV cameras (industrial video cameras) 20a and 20b, lights 21, 21, a video signal switch 23, a decoder 31, and pixel memories 33r, 33g, and 33b. Output unit 30, color image monitor 35,
I / O interface 41, cam type limit switch 4
3, a mechanical system control unit 45, a CPU 51 and a memory 53, a hard disk device 55, a system control unit 50 including, for example, a personal computer including a floppy disk device 57,
It comprises a system monitor 61 and a keyboard 63.

第2図は、全自動端子圧着機100の圧着を行う部分を
示す図である、同図において、110は45度毎に回転する
インデックステーブル110である。インデックステーブ
ル110の周囲には電線120を把持するアーム111が8本設
けられている。
FIG. 2 is a view showing a portion for performing crimping of the fully automatic terminal crimping machine 100. In FIG. 2, reference numeral 110 denotes an index table 110 which rotates every 45 degrees. Eight arms 111 for holding the electric wires 120 are provided around the index table 110.

Aの位置にあるアーム111は、図示しない電線カット
・ストリップ部から供給される所定の長さに切断された
上、その端部の被覆が所定の長さで剥かれて芯線が露出
された電線120を把持する。
The arm 111 at the position A is cut into a predetermined length supplied from a not-shown wire cutting / strip portion, and the end of the wire is stripped to a predetermined length to expose the core wire. Hold 120.

そして、インデックステーブル110の回転により電線1
20はCの位置まで搬送され、圧着機部130によって電線1
20の端部に圧着端子140が圧着される。
Then, the rotation of the index table 110 causes the electric wire 1
20 is conveyed to the position C, and the wire 1 is
The crimp terminal 140 is crimped to the end of the 20.

さらに、圧着端子140が圧着された電線120は、Eの位
置まで搬送され、ここで図示しない電線トレーへ落下さ
れる。
Further, the electric wire 120 to which the crimp terminal 140 has been crimped is transported to the position E, where it is dropped onto an electric wire tray (not shown).

ITVカメラ20a、20bは、それぞれB、Dの位置にある
電線120の端部の画像を撮像可能に配置されている。B
の位置では圧着前の画像を、Dの位置では圧着後の画像
を撮像することになる。このとき、全自動端子圧着機10
0の作動タイミングがカム型リミットスイッチ43により
システム制御部50に入力されており、このタイミングに
基づいてITVカメラ20a、20bのフレーム内に電線120が収
まったとき画像が取込まれる。なお、機械系制御部45
は、全自動端子圧着機100で加工する電線の種類および
圧着端子の種類を変更する場合に、それら電線および圧
着端子を全自動端子圧着機100に装着する作業の障害と
ならないようにITVカメラ20a、20bを退避位置に移動さ
せる。
The ITV cameras 20a and 20b are arranged so as to be able to capture images of the ends of the electric wires 120 at positions B and D, respectively. B
The image before the compression is captured at the position D, and the image after the compression is captured at the position D. At this time, fully automatic terminal crimping machine 10
The operation timing of 0 is input to the system control unit 50 by the cam type limit switch 43, and based on this timing, an image is captured when the electric wire 120 fits in the frame of the ITV cameras 20a and 20b. The mechanical system controller 45
When changing the types of wires and crimp terminals to be processed by the fully automatic terminal crimping machine 100, the ITV camera 20a , 20b to the evacuation position.

ITVカメラ20a、20bから出力される映像信号は、映像
信号切替え器23により検査を行う方が選択されてカラー
画像入出力部30に入力される。カラー画像入出力部30に
入力された映像信号は、例えば縦512、横512の画素ごと
にデコーダ31でR(赤)、G(緑)、B(青)、256階
調の3原色濃度データに変換され、それぞれ画像メモリ
33r、33g、33bに格納される。また、変換された映像信
号は、カラー画像モニタ35で確認可能とされている。
The video signal output from the ITV cameras 20a and 20b is input to the color image input / output unit 30 by selecting the inspection method by the video signal switch 23. The video signal input to the color image input / output unit 30 is, for example, three primary color density data of R (red), G (green), B (blue), and 256 gradations by the decoder 31 for each of 512 vertical pixels and 512 horizontal pixels. Converted to each image memory
These are stored in 33r, 33g, and 33b. The converted video signal can be checked on the color image monitor 35.

カラー画像入出力部30に格納された濃度データは、シ
ステム制御部50により処理されて、第3図ならびに第4
図で示した芯線の長さL1、被覆の長さL2が許容値以内で
あるか否かが検査される。
The density data stored in the color image input / output unit 30 is processed by the system control unit 50, and is processed as shown in FIGS.
It is checked whether or not the length L1 of the core wire and the length L2 of the coating shown in the drawing are within allowable values.

つまり、本発明では、電線120の被覆を剥いだ後の電
線120の芯線の長さL1を測定判定し、この長さL1が所定
の許容値以内であれば可とする。被覆を剥いだ電線120
がアーム111で把持された位置は固定のままで、次の圧
着部130で圧着端子140が圧着される。電線120の線形と
被覆を剥いだ後の芯線長によって、圧着端子140の大き
さおよび形状の事前にシステム制御部50に設定済みのた
め、この圧着端子140と電線120の被覆部の長さL2を測定
するのみで他の項目、例えば圧着端子140と電線120の芯
線の長さL3を測定する必要はない。さらに、既存の全自
動端子圧着機100に2つのITVカメラ20a、20bを取付ける
だけで、全自動端子圧着機100の作業工程途中で検査可
能とすることができる。
That is, in the present invention, the length L1 of the core wire of the electric wire 120 after the coating of the electric wire 120 is stripped is determined, and if the length L1 is within a predetermined allowable value, it is acceptable. Stripped wire 120
While the position held by the arm 111 remains fixed, the crimp terminal 140 is crimped by the next crimping section 130. Since the size and shape of the crimp terminal 140 have been set in the system control unit 50 in advance according to the alignment of the wire 120 and the core wire length after stripping the sheath, the length L2 of the crimp terminal 140 and the sheath portion of the wire 120 have been set. It is not necessary to measure other items, for example, the length L3 of the core wire of the crimp terminal 140 and the electric wire 120 only. Further, by simply attaching the two ITV cameras 20a and 20b to the existing fully automatic terminal crimping machine 100, the inspection can be performed during the working process of the fully automatic terminal crimping machine 100.

ところで、電線120は、線径や硬度、圧着端子の大き
さの違いなどの条件により、第5図に示すように、ITV
カメラ20a、20bに対し傾いた位置で撮像されることがあ
る。そこで、検査ウィンドウ200を電線120の傾きθにあ
わせて生成して処理を行う。
By the way, as shown in FIG. 5, depending on conditions such as the wire diameter, hardness, and the size of the crimp terminal,
The image may be captured at a position inclined with respect to the cameras 20a and 20b. Therefore, the inspection window 200 is generated and processed in accordance with the inclination θ of the electric wire 120.

検査ウィンドウ200を電線120の傾きθにあわせて生成
する手順を、第6図のフローチャートを用いて説明す
る。
A procedure for generating the inspection window 200 in accordance with the inclination θ of the electric wire 120 will be described with reference to the flowchart of FIG.

まず、傾きθを求めるための基準線となる傾き検査ラ
イン210を中心としてX方向に±5〜10画素の位置に補
助ライン211、212を設定する(ステップ601)。なお、
傾き検査ライン210は、予め例えばキーボード63からの
入力により設定されている。
First, auxiliary lines 211 and 212 are set at positions of ± 5 to 10 pixels in the X direction with respect to a tilt test line 210 serving as a reference line for obtaining a tilt θ (step 601). In addition,
The tilt inspection line 210 is set in advance by, for example, input from the keyboard 63.

次いで、補助ライン211、212上に位置する電線120の
輪郭を形成する画素P1、P2の座標(x1、y1)及び(x2、
y2)を求める(ステップ602)。
Next, the coordinates (x1, y1) and (x2, x1) of the pixels P1, P2 forming the contour of the electric wire 120 located on the auxiliary lines 211, 212
y2) is obtained (step 602).

そして、次式に示すようにして画素P1、P2の座標値の
差の比、促ち画素数の比から電線120の傾きθを求める
(ステップ603)。
Then, as shown in the following equation, the inclination θ of the electric wire 120 is obtained from the ratio of the difference between the coordinate values of the pixels P1 and P2 and the ratio of the number of prompting pixels (step 603).

x=|x2−x1| y=|y2−y1| tanθ=y/x この後、検査ウィンドウ200に傾きθを持たせて生成
する(ステップ604)。この後、生成された検査ウィン
ドウ200内の画像に対して所定の検査、例えば芯線の長
さL1の検査を行う。
x = | x2-x1 | y = | y2-y1 | tan θ = y / x Thereafter, the inspection window 200 is generated with the inclination θ (step 604). Thereafter, a predetermined inspection, for example, an inspection of the length L1 of the core wire is performed on the generated image in the inspection window 200.

従って、検査ウィンドウ200が電線120と平行になるの
で、正確な検査が行える。
Therefore, since the inspection window 200 is parallel to the electric wire 120, accurate inspection can be performed.

次に、検査ウィンドウ200内の被覆上に、被覆とは異
なる色で印刷された文字が存在する場合の処理について
説明する。
Next, a description will be given of a process performed when characters printed in a color different from the coating exist on the coating in the inspection window 200.

第7図に示した例では、検査ウィンドウ200内の被覆
上に、“A"という文字が印刷されている。さらに、検査
ウィンドウ200の拡大図を第8図に示す。同図に示すよ
うに、検査ウィンドウ200は、40×15画素から構成され
ている。ここでは、被覆部分の画素列に混在する文字の
画素を被覆と同等のデータを有する画素に変換する処理
を行う。
In the example shown in FIG. 7, the letter “A” is printed on the covering in the inspection window 200. Further, an enlarged view of the inspection window 200 is shown in FIG. As shown in the figure, the inspection window 200 is composed of 40 × 15 pixels. Here, processing is performed to convert the pixels of the characters mixed in the pixel column of the covering portion into pixels having data equivalent to the covering.

まず、各画素のデータを二値化する。これは、第9図
に示す色抽出領域300内のデータを持つ画素を1とし、
その以外の画素を0とする。色抽出領域300は、Y(輝
度)、R(赤)、G(緑)の値で定義される領域で、こ
の範囲内の色が被覆色とみなされる。
First, the data of each pixel is binarized. This means that the pixel having data in the color extraction area 300 shown in FIG.
Other pixels are set to 0. The color extraction area 300 is an area defined by Y (luminance), R (red), and G (green) values, and a color within this range is regarded as a covering color.

このようにして各画素のデータを二値化した画像の模
式図を第10図に示す。
FIG. 10 is a schematic diagram of an image obtained by binarizing the data of each pixel in this manner.

次に、Y方向の列ごとにmaxフィルタを作用させて、
文字の部分の画素を被覆と同等の画素とする。ここで、
maxフィルタとは、ソフトウェアで実現されるフィルタ
であって、前後の画素のデータを参照しつつ所定の画素
数以下の被覆色以外の画素列を被覆と同等の画素列に変
換するフィルタである。例えば、画素列X7は、第11図
(a)で示すように画素Y24〜Y26が被覆色以外の色であ
るが、maxフィルタを作用させることで、被覆色に変換
される(同図(b))。この後、例えば圧着部の被覆長
L2の検査を行う。
Next, a max filter is operated for each column in the Y direction,
The pixels in the character portion are assumed to be pixels equivalent to the covering. here,
The max filter is a filter implemented by software, and is a filter that converts a pixel row other than a predetermined number of pixels and a color other than a cover color into a pixel row equivalent to a cover while referring to data of preceding and succeeding pixels. For example, in the pixel row X7, the pixels Y24 to Y26 are colors other than the covering color as shown in FIG. 11A, but are converted to the covering color by applying the max filter (FIG. 11B )). After this, for example, the coating length of the crimping part
Inspect L2.

従って、文字であった画素が消去されるので、正確な
検査が行えるようになる。
Therefore, since the pixels which were characters are erased, accurate inspection can be performed.

さらに、第3図および第4図に示す電線120の芯線長L
1および電線120の被覆部と圧着端子140との長さL2を検
査するための検査ウィンドウ200の縦横の大きさの生成
について第12図および第13図を用いて説明する。なお、
各図共通する部分には同符号を付した。
Further, the core wire length L of the electric wire 120 shown in FIG. 3 and FIG.
The generation of the vertical and horizontal sizes of the inspection window 200 for inspecting the length L2 of the cover portion of the wire 1 and the wire 120 and the crimp terminal 140 will be described with reference to FIG. 12 and FIG. In addition,
Parts common to the drawings are denoted by the same reference numerals.

第12図は、電線120の芯線長L1を検査するための検査
ウィンドウを示す図である。
FIG. 12 is a diagram showing an inspection window for inspecting the core length L1 of the electric wire 120.

同図に示す検査ウィンドウ200の縦横の大きさの生成
は、次のようにして行われる。
The generation of the vertical and horizontal sizes of the inspection window 200 shown in the figure is performed as follows.

検査ウィンドウ200の幅Wは、電線120の電線径dを測
定し、この電線径dに予めシステムパラメータとして定
められる係数KWを乗じることにより求められる。
Width W of the inspection window 200 may measure the wire diameter d of the wire 120 is obtained by multiplying the coefficient K W pre defined as a system parameter in the wire diameter d.

また、検査ウィンドウ200の長さLは、予め種類ごと
に定められた芯線長さ上限値lmaxに、l1、l2を加算する
ことにより求められる。l1、l2は、それぞれ予めシステ
ムパラメータとして定められる係数K1、K2をlmaxに乗じ
た値である。
The length L of the test window 200, the core wire length upper limit value l max determined for each advance type, obtained by adding the l1, l2. l1, l2 is a value obtained by multiplying the coefficients K1, K2, which is preset as a system parameter respectively l max.

即ち、 W=d×KW L=l1+lmax+l2 =lmax(1+K1+K2)である。That is, W = d × K W L = l1 + lmax + l2 = lmax (1 + K1 + K2).

また、これらの値により検査ウィンドウ200の位置も
決められている。
In addition, the position of the inspection window 200 is determined by these values.

第13図は、電線120の被覆部と圧着端子140との長さL2
を検査するための検査ウィンドウを示す図である。
FIG. 13 shows the length L2 between the covering portion of the electric wire 120 and the crimp terminal 140.
FIG. 9 is a diagram showing an inspection window for inspecting a.

同図に示す検査ウィンドウ200の縦横の大きさの生成
は、次のようにして行われる。
The generation of the vertical and horizontal sizes of the inspection window 200 shown in the figure is performed as follows.

検査ウィンドウ200の幅W′は、電線120の電線径d′
を測定し、この電線径d′に予めシステムパラメータと
して定められる係数KW′を乗じることにより求められ
る。
The width W 'of the inspection window 200 is the wire diameter d' of the wire 120.
Is measured and multiplied by a coefficient K W ′ previously determined as a system parameter to the wire diameter d ′.

また、検査ウィンドウ200の長さL′は、予め種類ご
とに定められた圧着深さ限度値lmax′に、l1′、l2′を
加算することにより求められる。l1′、l2′は、それぞ
れ予めシステムパラメータとして定められる係数K1′、
K2′をlmax′に乗じた値である。
The length L of the test window 200 ', pre-crimp depth limits defined for each type l max' in, l1 ', l2' is obtained by adding a. l1 ′ and l2 ′ are coefficients K1 ′,
It is a value obtained by multiplying K2 'by lmax '.

即ち、 W′=d′×KW′ L′=l1′+lmax′+l2′ =lmax′(1+K1′+K2′)である。That is, W '= d' × K W 'L' = l1 '+ l max' + l2 '= l max' (1 + K1 '+ K2').

このように測定により得られる電線径と予め設定され
た係数から検査ウィンドウの縦横の大きさを設定するの
で、電線径や芯線長さ上限値、圧着深さ限度値に応じた
望ましい大きさの検査ウィンドウを自動的に設定するこ
とができる。
Since the length and width of the inspection window are set based on the wire diameter obtained by the measurement and the preset coefficient, inspection of a desired size according to the wire diameter, the upper limit of the core wire length, and the crimping depth limit value is performed. Windows can be set automatically.

[発明の効果] 本発明では、予め圧着端子の形状を設定しておき、芯
線の長さと被覆の端縁と被覆に圧着された圧着端子との
間の長さとから被検査電線の検査を行うので、測定箇所
が少なく検査判定に要する時間が少なく済み、自動端子
圧着機の生産効率を損なうことなく検査判定ができる。
[Effects of the Invention] In the present invention, the shape of the crimp terminal is set in advance, and the wire to be inspected is inspected based on the length of the core wire and the length between the edge of the coating and the crimp terminal crimped to the coating. Therefore, the number of measurement points is small and the time required for the inspection determination is reduced, and the inspection determination can be performed without impairing the production efficiency of the automatic terminal crimping machine.

また、被検査電線の映像上での傾きと線径を求め、求
めた傾きと線径に応じた検査ウィンドウを生成するの
で、正確な検査が行える。
In addition, since the inclination and the wire diameter of the inspected electric wire on the image are obtained and an inspection window corresponding to the obtained inclination and the wire diameter is generated, accurate inspection can be performed.

さらに、被検査電線の被覆部分の画素列に混在する被
覆と異なる色の画素を、被覆と同等の色の画素に補正す
るので、正確な検査が行える。
Furthermore, since pixels of a different color from the coating mixed in the pixel row of the covered portion of the inspection target wire are corrected to pixels of the same color as the coating, accurate inspection can be performed.

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

第1図は本発明の一実施例の検査装置の構成を示すブロ
ック図、第2図は全自動端子圧着機の圧着を行う部分を
示す図、第3図は検査を行う芯線の長さを説明するため
の図、第4図は検査を行う被覆の長さを説明するための
図、第5図は電線の傾きθに対する補正を説明するため
の図、第6図は電線の傾きθに合わせて検査ウィンドウ
を生成する手順を示すフローチャート、第7図は被覆上
に文字が印刷された電線を示す図、第8図はこの検査ウ
ィンドウの拡大図、第9図は色抽出領域を説明するため
の図、第10図は色抽出領域に基づき各画素のデータを二
値化した画象の模式図、第11図(a)はmaxフィルタを
作用させる前の画素列を示す図、第11図(b)はmaxフ
ィルタを作用させた後の画素列を示す図、第12図は芯線
長L1を検査するための検査ウィンドウを示す図、第13図
は被覆部と圧着端子との長さL2を検査するための検査ウ
ィンドウを示す図、第14図は検査ウィンドウに対し電線
が傾いた位置にある状態を示す図である。 10……検査装置、20a、20b……ITVカメラ、30……カラ
ー画像入出力部、50……システム制御部、120……電
線、140……圧着端子、200……検査ウィンドウ、300…
…色抽出領域。
FIG. 1 is a block diagram showing a configuration of an inspection apparatus according to one embodiment of the present invention, FIG. 2 is a view showing a portion for performing crimping of a fully automatic terminal crimping machine, and FIG. FIG. 4 is a diagram for explaining the length of the coating to be inspected, FIG. 5 is a diagram for explaining the correction for the wire inclination θ, and FIG. 6 is a diagram for explaining the wire inclination θ. FIG. 7 is a flowchart showing a procedure for generating an inspection window, FIG. 7 is a diagram showing electric wires having characters printed on a covering, FIG. 8 is an enlarged view of the inspection window, and FIG. FIG. 10 is a schematic diagram of an image obtained by binarizing the data of each pixel based on the color extraction area, FIG. 11 (a) is a diagram showing a pixel column before the max filter is applied, and FIG. FIG. (B) is a diagram showing a pixel row after a max filter is applied, and FIG. 12 is an inspection for inspecting a core line length L1. FIG. 13 is a view showing a window, FIG. 13 is a view showing an inspection window for inspecting the length L2 of the covering portion and the crimp terminal, and FIG. 14 is a view showing a state in which the electric wire is inclined with respect to the inspection window. is there. 10 Inspection device, 20a, 20b ITV camera, 30 Color image input / output unit, 50 System control unit, 120 Wire, 140 Crimp terminal, 200 Inspection window, 300
... Color extraction area.

───────────────────────────────────────────────────── フロントページの続き (72)発明者 伊藤 太 東京都東久留米市八幡町1丁目2番9号 第一電工株式会社内 (72)発明者 吉田 知行 東京都東久留米市八幡町1丁目2番9号 第一電工株式会社内 (56)参考文献 特開 昭59−42436(JP,A) 特開 昭61−275612(JP,A) 特開 昭55−138603(JP,A) 特開 昭63−201785(JP,A) (58)調査した分野(Int.Cl.6,DB名) G01B 11/00 - 11/30 102 G01N 21/84 - 21/91 G06T 7/00 ──────────────────────────────────────────────────続 き Continuing on the front page (72) Inventor Futa Ito 1-29-1 Yawata-cho, Higashi-Kurume-shi, Tokyo Inside Dai-Ichi Electric Works Co., Ltd. (72) Tomoyuki Yoshida 1-2-2 Yawata-cho, Higashi-Kurume-shi, Tokyo No. 9 Daiichi Denko Corporation (56) References JP-A-59-42436 (JP, A) JP-A-61-275612 (JP, A) JP-A-55-138603 (JP, A) 63-201785 (JP, A) (58) Fields investigated (Int. Cl. 6 , DB name) G01B 11/00-11/30 102 G01N 21/84-21/91 G06T 7/00

Claims (3)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】被検査電線の画像を画素で構成される映像
信号に変換し、この映像信号に所定の画像処理を施して
前記被検査電線の検査を行う被検査装置において、 前記被検査電線の映像上に、少なくとも2本の平行な傾
き検査ラインを設け、この検査ライン上の前記被検査電
線の輪郭を構成する画素の縦横の座標を算出する座標算
出手段と、 前記座標算出手段により算出された前記画素の縦横の座
標比により前記被検査電線の傾き角度を算出する傾き算
出手段と、 前記傾き算出手段により算出された前記被検査電線の傾
き角度に基づいて、画像処理画面上に検査ウインドウを
生成するウインドウ生成手段と、 前記画素数より求められる被検査電線の線径と予め設定
される係数とに基づいて、前記ウインドウ生成手段によ
って生成された検査ウインドウの縦横の大きさを変更す
る手段と を具備することを特徴とする検査装置。
An inspection apparatus for converting an image of an electric wire to be inspected into a video signal composed of pixels, performing predetermined image processing on the video signal, and inspecting the electric wire to be inspected. At least two parallel tilt test lines are provided on the image of (1), and coordinate calculating means for calculating vertical and horizontal coordinates of pixels constituting the contour of the wire under test on the test line; and calculating by the coordinate calculating means. An inclination calculating means for calculating an inclination angle of the inspected electric wire based on the vertical and horizontal coordinate ratios of the pixels, and an inspection on an image processing screen based on the inclination angle of the inspected electric wire calculated by the inclination calculating means. A window generating unit for generating a window; and an inspection generated by the window generating unit based on a wire diameter of the wire to be inspected obtained from the number of pixels and a preset coefficient. Means for changing the vertical and horizontal sizes of the window.
【請求項2】被検査電線の画像を画素で構成される映像
信号に変換し、この映像信号に所定の画像処理を施して
被検査電線の検査を行う検査装置において、 前記第1および第2の測定手段により測定される長さと
予め設定される前記圧着端子の形状とから前記被検査電
線の検査を行う検査手段と を具備することを特徴とする検査装置。
2. An inspection apparatus for converting an image of a wire under test into a video signal composed of pixels, performing predetermined image processing on the video signal, and testing the wire under test. An inspecting means for inspecting the inspected electric wire from the length measured by the measuring means and the preset shape of the crimp terminal.
【請求項3】被検査電線の画像を画素で構成される映像
信号に変換し、この映像信号に所定の画像処理を施して
被検査電線の検査を行う検査装置において、 電線端部の被覆を剥いで露出させた芯線の長さを測定す
る第1の測定手段と、 前記芯線に圧着端子を圧着した後、前記被検査電線の被
覆の端縁と被覆に圧着された圧着端子との間の長さを測
定する第2の測定手段と、 前記第1および第2の測定手段により測定される長さと
予め設定される前記圧着端子の形状とから前記被検査電
線の検査を行う検査手段と を具備することを特徴とする検査装置。
3. An inspection apparatus for converting an image of an inspected electric wire into a video signal composed of pixels, performing predetermined image processing on the video signal, and inspecting the inspected electric wire. First measuring means for measuring the length of the core wire exposed by peeling; and, after crimping the crimp terminal to the core wire, between the edge of the coating of the wire to be inspected and the crimp terminal crimped to the coating. A second measuring means for measuring the length, and an inspecting means for inspecting the inspected electric wire based on the length measured by the first and second measuring means and a preset shape of the crimp terminal. An inspection device, comprising:
JP2335654A 1990-07-23 1990-11-30 Inspection device Expired - Fee Related JP2943078B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2335654A JP2943078B2 (en) 1990-07-23 1990-11-30 Inspection device

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP19414890 1990-07-23
JP2-194148 1990-07-23
JP2335654A JP2943078B2 (en) 1990-07-23 1990-11-30 Inspection device

Publications (2)

Publication Number Publication Date
JPH05126531A JPH05126531A (en) 1993-05-21
JP2943078B2 true JP2943078B2 (en) 1999-08-30

Family

ID=26508338

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2335654A Expired - Fee Related JP2943078B2 (en) 1990-07-23 1990-11-30 Inspection device

Country Status (1)

Country Link
JP (1) JP2943078B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4710426B2 (en) * 2005-06-14 2011-06-29 富士ゼロックス株式会社 Image processing apparatus, image processing method, and image processing program
WO2012053365A1 (en) * 2010-10-18 2012-04-26 新明和工業株式会社 Device for inspecting crimped state of crimped terminal

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS55138603A (en) * 1979-04-16 1980-10-29 Hitachi Ltd Detecting system of pattern position
JPS5942436A (en) * 1982-08-09 1984-03-09 Sumitomo Electric Ind Ltd Method for inspecting solderless terminal
JPS61275612A (en) * 1985-05-31 1986-12-05 Toshiba Corp Detecting device for filament leg curvature of article
JP2547557B2 (en) * 1987-02-17 1996-10-23 マツダ株式会社 Article identification method in image processing

Also Published As

Publication number Publication date
JPH05126531A (en) 1993-05-21

Similar Documents

Publication Publication Date Title
JP2824552B2 (en) System and method for automatic optical inspection
US5293220A (en) Method for inspecting stripped condition of electric wire
CN111025701B (en) Curved surface liquid crystal screen detection method
WO2010013612A1 (en) Circuit pattern examining apparatus and circuit pattern examining method
JPH0515977B2 (en)
JP2943078B2 (en) Inspection device
JPS62282250A (en) Method and device for inspecting circuit board
JPH0682377A (en) Appearance inspecting device of semiconductor
JPH02189880A (en) Crimp contact condition inspecting device for crimped terminal
JPH11271234A (en) Inspecting device and method, and inspecting reference data forming device
JPH08327497A (en) Method for inspecting color liquid crystal display panel
JPH11101622A (en) Crimp-style terminal inspecting device
JP2001016622A (en) Debug device and test method for image pickup device
JP2528929B2 (en) Automatic white uniformity evaluation method for color cathode ray tubes
JPS61211935A (en) Convergence amount detective method of color cathode-ray tube
JPH0727517A (en) Crimping terminal inspecting device
TWI841834B (en) Apparatus and method for checking line defects on panel
KR970012877A (en) Cathode ray tube screen inspection adjusting device and method
KR0183736B1 (en) Method of judging photo sensor arrangement of cathode ray tube picture
JPH0613417A (en) Semiconductor chip recognition device
JP2002131241A (en) Method and apparatus for inspecting failure
JPH0650735A (en) Mark inspection device
JP2002259971A (en) Method for detecting uneven image density and inspection device therefor
JP2971794B2 (en) Projection threshold determination device and inspection device
JP2971793B2 (en) Position detection device

Legal Events

Date Code Title Description
S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090625

Year of fee payment: 10

LAPS Cancellation because of no payment of annual fees