[go: up one dir, main page]

JPH0672780B2 - Defective product judgment image processing device - Google Patents

Defective product judgment image processing device

Info

Publication number
JPH0672780B2
JPH0672780B2 JP1111981A JP11198189A JPH0672780B2 JP H0672780 B2 JPH0672780 B2 JP H0672780B2 JP 1111981 A JP1111981 A JP 1111981A JP 11198189 A JP11198189 A JP 11198189A JP H0672780 B2 JPH0672780 B2 JP H0672780B2
Authority
JP
Japan
Prior art keywords
inspection
work
defective
pixels
value
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
JP1111981A
Other languages
Japanese (ja)
Other versions
JPH02291910A (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.)
Meidensha Corp
Sumitomo Wiring Systems Ltd
Original Assignee
Meidensha Corp
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 Meidensha Corp, Sumitomo Wiring Systems Ltd filed Critical Meidensha Corp
Priority to JP1111981A priority Critical patent/JPH0672780B2/en
Priority to EP89308100A priority patent/EP0354782B1/en
Priority to DE68927489T priority patent/DE68927489T2/en
Priority to CA000608044A priority patent/CA1327636C/en
Priority to KR2019890011941U priority patent/KR920003641Y1/en
Priority to US07/393,763 priority patent/US5121439A/en
Publication of JPH02291910A publication Critical patent/JPH02291910A/en
Publication of JPH0672780B2 publication Critical patent/JPH0672780B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

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

Description

【発明の詳細な説明】 A.産業上の利用分野 本発明は不良品判定画像処理装置に関し、複雑な形状を
した製品の良否、特に部品の欠落不良を検査するのに用
いて好適である。
DETAILED DESCRIPTION OF THE INVENTION A. Field of Industrial Application The present invention relates to a defective product determination image processing apparatus, and is suitable for use in inspecting the quality of a product having a complicated shape, in particular, the defect defect of parts.

B.発明の概要 第1発明の不良品判定画像処理装置は、予め複数の良品
ワークをテレビカメラで撮影し、テレビカメラの画像信
号を二値化して良品ワークの画素数をカウントし、カウ
ント値を統計処理して平均値μと標準偏差σを求め、μ
±3σを判定値として記憶しておき、次に同じテレビカ
メラで検査ワークを撮影し、その画像信号を二値化して
検査ワークの画素数をカウントし、検査ワークの画素数
が判定値を外れると、検査ワークは不良であると判定す
るものである。
B. Summary of the Invention The defective product determination image processing apparatus of the first invention captures a plurality of non-defective work pieces with a TV camera in advance, binarizes the image signal of the TV camera, counts the number of pixels of the non-defective work pieces, and counts the count value. Is statistically processed to find the average value μ and standard deviation σ, and μ
± 3σ is stored as a determination value, the inspection work is then photographed by the same TV camera, the image signal is binarized to count the number of pixels of the inspection work, and the number of pixels of the inspection work deviates from the determination value. Then, the inspection work is determined to be defective.

第2発明の不良品判定画像処理装置は、予め複数の良品
ワークをテレビカメラで撮影し、テレビカメラの画像信
号を二値化して良品ワークの画素数をカウントし、カウ
ント値を統計処理して平均値を求め、平均値を基準値と
して記憶しておき、次に同じテレビカメラで検査ワーク
を撮影し、その画像信号を二値化して検査ワークの画素
数をカウントし、基準値と検査ワークの画素数に差が出
ると、検査ワークは不良であると判定するものである。
The defective product determination image processing device of the second invention photographs a plurality of non-defective works in advance with a TV camera, binarizes the image signal of the TV camera to count the number of pixels of non-defective works, and statistically processes the count value. Obtain the average value, store the average value as a reference value, then take an image of the inspection work with the same TV camera, binarize the image signal, and count the number of pixels of the inspection work. If there is a difference in the number of pixels, the inspection work is determined to be defective.

C.従来技術 複雑な形状をした製品の代表例の1つとして、自動車の
ワイヤリング・ハーネスがある。
C. Conventional technology One of the representative examples of products with complicated shapes is a wiring harness for automobiles.

自動車には多種多様の電装品が用いられており、電流容
量の比較的少ない電装品として、照明、信号、制御、警
告、充電、計器、窓ふきなどを行う多くのものがある。
A wide variety of electrical components are used in automobiles, and there are many electrical components with relatively low current capacity that perform lighting, signals, control, warnings, charging, measuring instruments, window wiping, and the like.

これらの電装品を持続する配線を、自動車の組立ライン
で円滑に組み付けることができるような形に予めまとめ
たものが、ワイヤリング・ハーネスである。ワイヤリン
グ・ハーネスは、必要な長さに切断した多数の電線をビ
ニールテープなどで集束し、それにハーネス部品(チュ
ーブ、クランパ、グロメット、プロテクタ、テーピング
等)を取り付けて構成される。
A wiring harness is a wiring harness in which these electrical components are connected in advance so that they can be smoothly assembled on an automobile assembly line. The wiring harness is constructed by bundling a large number of electric wires cut to a required length with vinyl tape or the like, and attaching harness parts (tube, clamper, grommet, protector, taping, etc.) to it.

ワイヤリング・ハーネスは、通常の製造方法では、図板
(板に製作用図面を貼り付けたもの)上に集束電線をセ
ットし、図板を製造ラインに沿って送りながら、集束電
線の所要部分に必要なハーネス部品を取り付けていくこ
とによりより作られる。
In the usual manufacturing method, the wiring harness sets the focusing wire on the drawing board (the one with the drawing for production attached), and while sending the drawing board along the manufacturing line, It is made by installing the necessary harness parts.

このようにして作られたワイヤリング・ハーネスは、必
要な部品が全て取り付けられているか否か検査され、部
品が欠落していれば、不良品とされる。
The wiring harness produced in this way is inspected whether all necessary parts are attached, and if any parts are missing, it is determined as a defective product.

従来、部品の欠落検査の手法として、人間の目視による
外観検査が実施されており、また画像処理による外観検
査の導入が考えられている。
Conventionally, as a method for inspecting missing parts, a visual inspection by human eyes has been carried out, and the introduction of visual inspection by image processing has been considered.

画像処理による従来の外観検査を第8図を参照して説明
する。
A conventional visual inspection by image processing will be described with reference to FIG.

第8図に示すように、ワイヤリング・ハーネス1は図板
2上にセットされており、図板2は矢印A方向に送られ
る。1aは集束電線、1bはハーネス部品である。そして、
工業用のテレビカメラ3でワイヤリング・ハーネス1及
び図板2を撮影し、画像信号を画像処理装置4に送る。
画像処理装置4はテレビカメラインタフェース、マイク
ロコンピュータを内蔵しており、テレビカメラ3の撮影
視野に対応して図板2の面を複数に分割した各撮影領
域、例えば図中一点鎖線で分けた4つの撮影領域I,II,I
II,IVと、テレビカメラ3の撮影視野とが一致したタイ
ミング毎に、テレビカメラ3の画像信号を画像処理装置
4が取り込む。
As shown in FIG. 8, the wiring harness 1 is set on the drawing board 2, and the drawing board 2 is fed in the direction of arrow A. 1a is a focusing electric wire, and 1b is a harness component. And
The industrial television camera 3 photographs the wiring harness 1 and the drawing board 2, and sends an image signal to the image processing device 4.
The image processing device 4 has a built-in television camera interface and a microcomputer, and each photographing region obtained by dividing the surface of the drawing board 2 into a plurality of portions corresponding to the photographing field of view of the television camera 3, for example, a dashed line 4 in the figure. Imaging areas I, II, I
The image processing device 4 captures the image signal of the television camera 3 at each timing when the photographing field of view of the television camera 3 is matched with II and IV.

画像処理装置4にはターミナル5(キーボード、CRTを
有する)により、各撮影領域に対応させて、各ハーネス
部品が正規に占位する位置と各ハーネス部品の正規の形
状とを示す画像が登録されている。また、画像処理装置
4にはモニタ6が接続されている。
In the image processing device 4, the terminal 5 (having a keyboard and a CRT) is used to register an image showing a position where each harness component is normally occupied and a regular shape of each harness component in association with each photographing area. ing. A monitor 6 is connected to the image processing device 4.

そして画像処理装置4は、取り込んだ画像信号を基に検
査対象のワイヤリング・ハーネス1の各ハーネス部品1b
の位置、形状を検出し、検出した実際の位置、形状と、
登録した画像とを比較することにより、各ハーネス部品
1bが正しく取り付けられているか否かを判定する。
Then, the image processing device 4 determines each harness component 1b of the wiring harness 1 to be inspected based on the captured image signal.
The position and shape of is detected, and the detected actual position and shape,
By comparing the registered image with each harness part
Determine if 1b is installed correctly.

D.発明が解決しようとする課題 ところで、ワイヤリング・ハーネスの部品欠落検査をす
る手法のうち、目視による外観検査では、検査精度が悪
く、また作業者の疲労が激しい。
D. Problems to be Solved by the Invention By the way, of the methods for inspecting missing parts of wiring harnesses, the visual appearance inspection is inferior in inspection accuracy, and the operator is very tired.

一方、従来の画像処理による外観検査では、全てのハー
ネス部品1bの正規の位置、形状を画像として登録してお
かなければならないため、膨大なデータを登録する必要
があり、登録するのに時間がかかる。また、画像信号を
基に、検査対象のワイヤリング・ハーネス1のハーネス
部品1bの位置、形状を検査するのに時間がかかり、また
位置、形状を正しく検出することが難しい。これらのこ
とから、検査を簡単、迅速に行うことができない。
On the other hand, in the conventional visual inspection by image processing, since the regular positions and shapes of all the harness components 1b must be registered as images, it is necessary to register a huge amount of data, and it takes time to register. It takes. Further, it takes time to inspect the position and shape of the harness component 1b of the wiring harness 1 to be inspected based on the image signal, and it is difficult to correctly detect the position and shape. For these reasons, the inspection cannot be performed easily and quickly.

本発明は上述した従来技術に鑑み、目視によらずしかも
簡単、迅速に、欠落検査を自動的に正確に行うことがで
きる不良品判定画像処理装置を提供することを目的とす
る。
The present invention has been made in view of the above-described conventional art, and an object of the present invention is to provide a defective product determination image processing apparatus that can perform a missing inspection automatically and accurately without using visual inspection.

E.課題を解決するための手段 第1発明による不良品判定画像処理装置は、良品ワーク
及び検査ワークの撮影に同じ撮影視野で共用されるテレ
ビカメラと、ティーチング指令と検査指令を切換えて出
力する装置と、テレビカメラからの画像信号を入力して
検査ワークが不良であるか否か判定する画像処理装置と
を具備し、 前記画像処理装置は、前記テレビカメラからのワークの
画像信号を背影の画素とワークの画素とに分ける二値化
処理部と、ワークの画素数をカウントするカウント部
と、ティーチング指令が出力されている場合に良品ワー
クの画素のカウント値を入力して平均値μと標準偏差σ
を計算し、μ±3σを判定値として出力する統計処理部
と、判定値を記憶するメモリと、検査指令が出力されて
いる場合に検査ワークの画素のカウント値をメモリに記
憶した判定値と比較し、判定値を外れると検査ワークが
不良であると判定する判定部とを有することを特徴とす
るものである。
E. Means for Solving the Problem The defective product determination image processing apparatus according to the first aspect of the present invention outputs a TV camera which is commonly used in the same field of view for shooting a non-defective work and an inspection work and a teaching command and an inspection command by switching. The image processing apparatus includes an apparatus and an image processing apparatus that inputs an image signal from a television camera to determine whether or not an inspection work is defective, and the image processing apparatus is configured to detect an image signal of the work from the television camera as a shadow image. A binarization processing unit that divides into pixels and work pixels, a counting unit that counts the number of work pixels, and when the teaching command is output, input the count value of non-defective work pixels and input the average value μ Standard deviation σ
And a statistical processing unit that outputs μ ± 3σ as a determination value, a memory that stores the determination value, and a determination value that stores the count value of the pixel of the inspection work in the memory when the inspection command is output. It is characterized in that it has a judging section for comparing and judging that the inspection work is defective when it is out of the judgment value.

また第2発明による不良品判定画像処理装置は、良品ワ
ーク及び検査ワークの撮影に同じ撮影視野で共用される
テレビカメラと、ティーチング指令と検査指令を切換え
て出力する装置と、テレビカメラからの画像信号を入力
して検査ワークが不良であるか否かを判定する画像処理
装置とを具備し、 前記画像処理装置は、前記テレビカメラからのワークの
画像信号を背影の画素とワークの画素とに分ける二値化
処理部と、ワークの画素数をカウントするカウント部
と、ティーチング指令が出力されている場合に良品ワー
クの画素のカウント値を入力して平均値を算出する統計
処理部と、平均値を基準値として記憶するメモリと、検
査指令が出力されている場合にメモリに記憶した基準値
と検査ワークの画素のカウント値を比較し、その差が設
定値よりも大きいと検査ワークが不良であると判定する
判定部とを有することを特徴とするものである。
The defective product determination image processing apparatus according to the second aspect of the present invention includes a television camera that is commonly used for capturing non-defective workpieces and inspection workpieces in the same field of view, an apparatus that switches between a teaching instruction and an inspection instruction, and outputs an image from the television camera. And an image processing device for determining whether or not the inspection work is defective by inputting a signal, wherein the image processing device converts the image signal of the work from the television camera into a pixel of the back shadow and a pixel of the work. A binarization processing unit that separates, a counting unit that counts the number of pixels of the work, a statistical processing unit that inputs the count value of the pixels of the non-defective work when the teaching command is output, and an average processing unit, and an average The memory that stores the value as the reference value is compared with the reference value stored in the memory when the inspection command is output and the pixel count value of the inspection work, and the difference is set. It has a judgment part which judges that the inspection work is defective when it is larger than the value.

F.作用 良品ワークと部品の欠落した不良品ワークとでは面積が
異なるので、同じテレビカメラにより同じ視野で撮影す
ると、画像信号を二値化して得られるワークの画素数に
誤差範囲以上の差が生じる。
F. Action Since the area of a non-defective work is different from that of a defective work with missing parts, when the same TV camera captures the same field of view, there is a difference in the number of pixels of the work obtained by binarizing the image signal that exceeds the error range. Occurs.

そこで第1発明の装置では、最初にティーチングとし
て、予め複数の良品ワークをテレビカメラで撮影し、そ
の画像信号を二値化して良品ワークの画素数をカウント
し、カウント値を統計処理して平均値μと標準偏差σを
求め、μ±3σを判定値として記憶しておく。次に検査
に際し、同じテレビカメラで検査ワークを撮影し、その
画像信号を二値化して検査ワークの画素数をカウントす
る。検査ワークの画素数を判定値と比較し、判定値を外
れると、検査ワークが不良であると判定する。このよう
に良品ワークのみのカウント値を統計処理して判定値μ
±3σを設定することにより。良品サンプルと不良品サ
ンプルを計測して両者の中間値を判定値とする場合に比
較し、多数の不良品サンプルを用意する必要がなく有利
である。例えばワイヤハーネスの外観検査のように検査
個所が多数有る場合は、個々の検査個所で不良状態を故
意に引き起すのは面倒であり、また無駄である。また、
不良品サンプルを計測する分、サンプル回数が多く判定
値を決定するまでに要する時間が長くかかる。
Therefore, in the apparatus of the first invention, first, as teaching, a plurality of non-defective works are photographed in advance by a TV camera, the image signals thereof are binarized to count the number of pixels of the non-defective works, and the count values are statistically processed and averaged. The value μ and the standard deviation σ are obtained, and μ ± 3σ is stored as a judgment value. Next, at the time of inspection, the inspection work is photographed by the same TV camera, the image signal is binarized, and the number of pixels of the inspection work is counted. The number of pixels of the inspection work is compared with the determination value. If the number of pixels deviates from the determination value, it is determined that the inspection work is defective. In this way, the count value of only good products is statistically processed and the judgment value μ
By setting ± 3σ. This is advantageous in that it is not necessary to prepare a large number of defective samples, as compared with the case where a good sample and a defective sample are measured and an intermediate value between them is used as a determination value. For example, when there are many inspection points such as a visual inspection of the wire harness, it is troublesome and wasteful to intentionally cause a defective state at each inspection point. Also,
Since defective samples are measured, the number of samples is large and the time required to determine the determination value is long.

また第2発明の装置では、最初にティーチングとして、
複数の良品ワークをテレビカメラで撮影し、その画像信
号を二値化して良品ワークの画素数をカウントし、カウ
ント値を統計処理して平均値を求め、平均値を基準値と
して記憶しておく。次に検査に際し、同じテレビカメラ
で検査ワークを撮影し、その画像信号を二値化して検査
ワーク画素数をカウントする。基準値と検査ワークの画
素数を比較し、差が出ると、検査ワークが不良であると
判定する。この場合、基準値が統計処理により決まるか
ら良品ワークのバラツキが判定結果に殆ど影響しない。
また、差の許容範囲が設定値により決まるから、設定値
により判定精度を自由に決めることができる。
In the device of the second invention, first, as teaching,
A plurality of non-defective works are photographed with a TV camera, the image signals are binarized, the number of pixels of non-defective works is counted, the count value is statistically processed to obtain an average value, and the average value is stored as a reference value. . Next, at the time of inspection, the inspection work is photographed by the same TV camera, the image signal is binarized, and the number of inspection work pixels is counted. The reference value and the number of pixels of the inspection work are compared, and if there is a difference, it is determined that the inspection work is defective. In this case, since the reference value is determined by statistical processing, variations in non-defective work hardly affect the determination result.
Moreover, since the allowable range of the difference is determined by the set value, the determination accuracy can be freely determined by the set value.

G.実施例 以下、本発明を図面に基づいて詳細に説明する。第1図
は本発明の実施例のシステム系統を示す構成図、第2図
は図板の搬送ラインを示す平面図、第3図は図板の構成
図、第4図は動作のタイミングを示す図、第5図はティ
ーチングのフローチャート、第6図は統計処理のフロー
チャート、第7図は検査のフローチャートである。
G. Examples Hereinafter, the present invention will be described in detail with reference to the drawings. FIG. 1 is a block diagram showing a system system of an embodiment of the present invention, FIG. 2 is a plan view showing a transportation line of a board, FIG. 3 is a block diagram of a board, and FIG. 4 is a timing chart of operation. FIG. 5 is a flowchart of teaching, FIG. 6 is a flowchart of statistical processing, and FIG. 7 is a flowchart of inspection.

第3図に示すように、図板10は台車11の上に斜めに設置
してあり台車11はガイドレール12に沿い、図示しない動
力源によって走行する。図板10は白色である。10aはハ
ーネスの支え部材、11aは車輪である。よって、第2図
に示すように、図板10は矢印B方向に送られ、組立ライ
ン13と検査ライン15とをライン速度Vで循環移動する。
そして図板10が組立ライン13に沿って移動する間に、図
板10上でワイヤリング・ハーネス14(第2図参照)を組
立てる。14aは例えば黒色の集束電線、14bは青色、赤色
など白以外の色のハーネス部品である。組立てられたワ
イヤリング・ハーネス14は検査ライン15に沿って移動す
る間に部品欠落の有無を検査される。検査の具体的説明
は後述する。検査をパスしたワイヤリング・ハーネスは
図板10から外され、図板10は再び組立ライン13に戻る。
不良と判定されたワイヤリング・ハーネスは図板10に取
付いたまま組立ライン13に戻り、手直しされる。
As shown in FIG. 3, the drawing board 10 is obliquely installed on the carriage 11, and the carriage 11 runs along a guide rail 12 by a power source (not shown). The drawing board 10 is white. 10a is a harness support member, and 11a is a wheel. Therefore, as shown in FIG. 2, the drawing board 10 is sent in the direction of the arrow B, and cyclically moves at the line speed V between the assembly line 13 and the inspection line 15.
Then, while the drawing board 10 moves along the assembly line 13, the wiring harness 14 (see FIG. 2) is assembled on the drawing board 10. Reference numeral 14a is, for example, a black focused electric wire, and 14b is a harness component of a color other than white such as blue and red. The assembled wiring harness 14 is inspected for missing parts while moving along the inspection line 15. A specific explanation of the inspection will be given later. The wiring harness that has passed the inspection is removed from the drawing board 10, and the drawing board 10 returns to the assembly line 13 again.
The wiring harness determined to be defective is returned to the assembly line 13 while being attached to the drawing board 10 and is reworked.

また、図板10上には検査の前処理(ティーチング)とし
て、良品ワーク、即ち必要とされるハーネス部品14bが
全て正確に集束電線14aに取付けられていることが目視
等により既に確認されているワイヤリング・ハーネスG
が取付けられる。良品ワークGは統計処理のため、異な
るもの複数が用いられる。
Further, as a pretreatment (teaching) for the inspection on the drawing board 10, it has already been confirmed by visual inspection that the non-defective work, that is, all the necessary harness components 14b are correctly attached to the focusing electric wire 14a. Wiring harness G
Is installed. A plurality of different good works G are used because of the statistical processing.

本実施例ではワークの大きさに合せ分解能を高めるため
4台の工業用テレビカメラTV1,TV2,TV3,TV4を用いてい
る。第1図〜第3図に示すように、検査ライン15中で、
図板10の上方に支持部材16を斜めに架設し、この支持部
材16に各テレビカメラTV1,TV2,TV3,TV4を設置し、図板1
0に正対させてある。各テレビカメラの撮影視野は検査
精度に合わせて調整するが、図板10よりも大幅に狭く設
定したので、図板進行方向Bと直角な方向Cにずらすこ
とにより図板10を縦方向にカバーするようにしている。
また図板10を横方向にカバーするように、図板10に横方
向に間隔をあけてマーク17を設け、マーク17を検査ライ
ン15中に設けた光電センサ等で検出する毎に画像処理装
置20がテレビカメラの画像信号を取込むようにしてあ
る。更に、テレビカメラ1台毎に順に画像処理を行うよ
うに、4台のテレビカメラTV1〜TV4を図板進行方向Bに
ずらし、各テレビカメラに対応してセンサを設けて4個
のセンサPH1,PH2,PH3,PH4も同様にずらしてある。ま
た、検査ライン15中にはリミットスイッチLSを設け、図
板10が検査ライン15に到達したことを検知して、画像処
理装置20にスタート指令を与えるようにしている。
In this embodiment, four industrial TV cameras TV1, TV2, TV3, TV4 are used in order to increase the resolution according to the size of the work. As shown in FIGS. 1 to 3, in the inspection line 15,
A support member 16 is installed diagonally above the drawing board 10, and each of the TV cameras TV1, TV2, TV3, TV4 is installed on the supporting member 16 and
Faced to 0. The field of view of each TV camera is adjusted according to the inspection accuracy, but since it was set to be much narrower than the drawing board 10, the drawing board 10 is vertically covered by shifting it in the direction C perpendicular to the board traveling direction B. I am trying to do it.
Further, to cover the drawing board 10 in the horizontal direction, marks 17 are provided in the drawing board 10 at intervals in the horizontal direction, and the image processing apparatus is provided each time the mark 17 is detected by a photoelectric sensor or the like provided in the inspection line 15. 20 is designed to capture the image signal of the TV camera. Further, the four TV cameras TV1 to TV4 are shifted in the direction B of the drawing board so that image processing is sequentially performed for each TV camera, and a sensor is provided corresponding to each TV camera to provide four sensors PH1, PH2, PH3 and PH4 are also staggered. Further, a limit switch LS is provided in the inspection line 15 to detect that the drawing board 10 has reached the inspection line 15 and give a start command to the image processing apparatus 20.

以上の結果、図板10上は,,,,…という複
数の撮影領域に区分され、第4図に示すように、センサ
PH1〜PH4が順にマーク17を検出する毎に、,,,
,…という順で各撮影領域の画像処理が行われる。
As a result of the above, the drawing board 10 is divided into a plurality of photographing areas such as ..., As shown in FIG.
Each time PH1 to PH4 detect mark 17,
The image processing of each photographing area is performed in the order of.

なお、18は蛍光灯などの照明用光源、BSは非常停止用ス
イッチである。また検査ライン15は外光阻止のため暗幕
19で覆われている。
Reference numeral 18 is a light source for illumination such as a fluorescent lamp, and BS is an emergency stop switch. In addition, the inspection line 15 has a dark curtain to block external light.
Covered with 19.

第1図に示すように、画像処理装置20には各テレビカメ
ラTV1〜TV4からアナログの画像信号S1,S2,S3,S4が送ら
れ、また各センサPH1〜PH4からマーク検出信号M1,M2,M
3,M4が、リミットスイッチLSからスタート指令信号21
が、スイッチBSから非常停止信号22が、スイッチSWから
指令信号23によりティーチング指令と検査指令とを切換
えてそれぞれ送られてくる。
As shown in FIG. 1, the image processing device 20 is supplied with analog image signals S1, S2, S3, S4 from each of the television cameras TV1 to TV4, and the mark detection signals M1, M2, from each of the sensors PH1 to PH4. M
3, M4, start command signal 21 from limit switch LS
However, the emergency stop signal 22 is sent from the switch BS and the teaching command and the inspection command are sent from the switch SW by switching the command signal 23.

画像処理装置20は二値化処理部と、カウント部と、統計
処理部と、メモリと、判定部とを有しており、スイッチ
SWの操作により第5図及び第6図に示す良品のワイヤリ
ング・ハーネスGに基づくティーチングと、第7図に示
す検査対象のワイヤリング・ハーネス14の検査とを行
う。
The image processing device 20 includes a binarization processing unit, a counting unit, a statistical processing unit, a memory, and a determination unit, and a switch.
By operating the SW, the teaching based on the non-defective wiring harness G shown in FIGS. 5 and 6 and the inspection of the wiring harness 14 to be inspected shown in FIG. 7 are performed.

画像処理装置20の各機能部はマイクロコンピュータと適
当なハードウエア、ソフトウエアによって実現される。
Each functional unit of the image processing device 20 is realized by a microcomputer and appropriate hardware and software.

二値化処理部は、センサPH1〜PH4のマーク検出毎に、入
力した画像信号S1〜S4をワイヤリング・ハーネスG,14を
示す黒画素信号と図板10を示す白画素信号に分けて二値
化しカウント部に送る。なお、処理時間を短縮するため
に、或るテレビカメラの画像信号を取込むと、直ちに次
のテレビカメラの画像信号を取込む準備を行う。また、
二値化すべきエリアを調整するために、図板10上に横方
向に間隔をあけてターゲット24を設け、ターゲット24を
基準とする所定のエリアの画像信号のみを二値化するよ
うに補正を行っている。
The binarization processing unit divides the input image signals S1 to S4 into black pixel signals indicating the wiring harnesses G and 14 and white pixel signals indicating the drawing board 10 and binarizes each time the marks are detected by the sensors PH1 to PH4. And send it to the counting section. In order to reduce the processing time, when the image signal of a certain television camera is captured, the preparation for capturing the image signal of the next television camera is immediately performed. Also,
In order to adjust the area to be binarized, the targets 24 are provided on the plate 10 at intervals in the lateral direction, and correction is performed so as to binarize only the image signal of a predetermined area based on the target 24. Is going.

カウント部は、二値化した画像信号のうち黒画素信号の
画素数を、各撮影領域,,…毎にカウントし、そ
のカウント値を統計処理部,メモリ及び判定部に送る。
The counting unit counts the number of pixels of the black pixel signal in the binarized image signal for each photographing region, ... And sends the count value to the statistical processing unit, the memory, and the determination unit.

メモリは、スイッチSWからティーチング指令を与えられ
たときに、統計処理のためにカウント部からのカウント
値を撮影領域に対応したアドレスに一旦セーブし、また
統計処理部での計算結果を影響領域に対応したアドレス
にセーブする。
When the teaching command is given from the switch SW, the memory temporarily saves the count value from the count section to the address corresponding to the shooting area for statistical processing, and also stores the calculation result in the statistical processing section in the affected area. Save to the corresponding address.

第1発明の実施例として、統計処理部はスイッチSWから
ティーチング指令を与えられたとき、各撮影領域毎にメ
モリからカウント値を入力し、第6図に示す平均値μの
計算と標準偏差(分散)σの計算から判定値μ±3σを
計算し、メモリに記憶させる。但し、nはサンプル回
数、xnはn回目のサンプルのカウント値、μnは前回の
平均値、μn+1は今回の平均値であり、初回はカウント
値をそのまま平均値とする。また、▲σ2 n▼は前回の分
散、▲σ2 n+1▼は今回の分散である。
As an embodiment of the first aspect of the invention, when the statistical processing section receives a teaching command from the switch SW, it inputs the count value from the memory for each photographing area, and calculates the average value μ and the standard deviation (shown in FIG. 6). The judgment value μ ± 3σ is calculated from the calculation of (variance) σ and stored in the memory. However, n is the number of times of sampling, xn is the count value of the nth sample, μn is the previous average value, μn + 1 is the current average value, and the count value is the average value as it is at the first time. Further, ▲ σ 2 n ▼ is the previous dispersion, and ▲ σ 2 n + 1 ▼ is the current dispersion.

第2発明では、統計処理部は第6図中の平均値μの計算
だけを行い、μを基準値としてメモリに記憶させる。
In the second invention, the statistical processing unit only calculates the average value μ in FIG. 6 and stores it in the memory with μ as a reference value.

第1発明の実施例として判定部は、スイッチSWから検査
指令を与えられたときに、カウント部からのカウント値
を、メモリに記憶した判定値μ±3σと撮影領域毎に比
較し、比較の結果、いずれかの領域で判定値から外れて
いるときには、ハーネス部品が欠落しているか余分と判
定し、“不良”を示す判定信号25を出力する。
As an embodiment of the first aspect of the present invention, the determination unit compares the count value from the count unit with the determination value μ ± 3σ stored in the memory for each imaging region when the inspection command is given from the switch SW, and As a result, when it is out of the determination value in any of the areas, it is determined that the harness component is missing or excessive, and the determination signal 25 indicating "defective" is output.

第2発明では判定部は、スイッチSWから検査指令を与え
られたときに、カウント部からのカウント値とメモリに
記憶した基準値μとを、撮影領域毎に比較し、比較の結
果、いずれかの領域で両者の差が設定値(これはハーネ
ス部品の大きさなどのバラツキ、判定精度等に応じて予
め適宜決める)よりも大きいときには、ハーネス部品が
欠落しているか余分に付いていると判定し、“不良”を
示す判定信号25を出力する。
In the second invention, the determination unit compares the count value from the count unit and the reference value μ stored in the memory for each imaging region when the inspection command is given from the switch SW, and the comparison result indicates which one of them. If the difference between the two is greater than the set value (this is determined in advance according to variations in the size of harness parts, judgment accuracy, etc.), it is determined that the harness parts are missing or extra. Then, the determination signal 25 indicating "defective" is output.

以上のことから、ティーチングにおいては、複数の良品
サンプルを用い、各図板10上に良品のワイヤリング・ハ
ーネスGをセットして検査ライン15に順次送り、センサ
PH1〜PH4のマーク検出毎に、テレビカメラTV1〜TV4の画
像信号を取込んで、黒画素数をカウントし、カウント値
をワイヤリング・ハーネスGの各撮影領域での面積とし
て、判定値μ±3σまたは基準値μをティーチングして
おく。
From the above, in teaching, a plurality of non-defective samples are used, non-defective wiring harness G is set on each drawing board 10 and sequentially sent to the inspection line 15.
Each time PH1 to PH4 marks are detected, the image signals of the TV cameras TV1 to TV4 are captured, the number of black pixels is counted, and the count value is taken as the area in each shooting area of the wiring harness G, and the judgment value μ ± 3σ Alternatively, teach the reference value μ.

次に検査においては、図板10上で組立てられたワイヤリ
ング・ハーネス14を検査ライン15に送り、各テレビカメ
ラTV1〜TV4の視野を変えることなく、センサPH1〜PH4の
マーク検出毎に、画像信号を取込んで黒画素数をカウン
トし、各撮影領域毎にティーチングした黒画素数の判定
値μ±3σまたは基準値μと比較して、不良か否かを判
定する。不良の場合は手直しが行われる。
Next, in the inspection, the wiring harness 14 assembled on the drawing board 10 is sent to the inspection line 15, and the image signal is detected each time the marks of the sensors PH1 to PH4 are detected without changing the visual fields of the TV cameras TV1 to TV4. The number of black pixels is captured, counted, and compared with the judgment value μ ± 3σ or the reference value μ of the number of black pixels taught for each photographing area to judge whether or not there is a defect. If it is defective, rework is performed.

なお、画像処理装置20にはキーボードにスイッチSWを有
するパソコン26を接続してあり、画像処理数値20の操作
に用いる。また部品欠落が判定されると、この判定結果
をCRT表示装置27に表示する。また、画像処理装置20に
は画像処理の調整用にモニタ28を接続してあり、各テレ
ビカメラTV1〜TV4により撮影した画像をモニタ28に映し
出すようにすると共に、更に録画装置(VTR)29に記録
しておき、後日、検査内容を調査できるようにしてあ
る。第1図中、30は電源ユニットであり、カメラ用電源
と、蛍光灯用高周波電源とを内蔵する。
A personal computer 26 having a switch SW on a keyboard is connected to the image processing apparatus 20 and is used for operating the image processing numerical value 20. When it is determined that the component is missing, the result of this determination is displayed on the CRT display device 27. Further, a monitor 28 is connected to the image processing device 20 for adjustment of image processing so that images taken by each of the television cameras TV1 to TV4 are displayed on the monitor 28, and further recorded on a recording device (VTR) 29. A record is kept so that the examination contents can be investigated at a later date. In FIG. 1, reference numeral 30 is a power supply unit, which contains a power supply for a camera and a high frequency power supply for a fluorescent lamp.

結局本実施例では、部品欠落のない良品のワイヤリング
・ハーネスGを複数用い、各良品の黒画素数から統計処
理により判定値または基準値を求め、これらの値と、検
査対象となっているワイヤリング・ハーネス14を示す黒
画素数を比較するという、二値化による単純面積比較に
より、部品欠落の有無を判定している。よって判定精度
が高い。また画像処理装置20の処理は、二値化、カウン
ト、統計処理、比較という簡単なものだけであるため処
理速度は極めて早く、よって図板10の移動速度を早くす
ることができ、検査効率が向上し、オンライン速度で検
査を実行できる。
After all, in the present embodiment, a plurality of non-defective wiring / harnesses G having no missing parts are used, the judgment value or the reference value is obtained by the statistical processing from the number of black pixels of each non-defective product, and these values and the wiring to be inspected. The presence / absence of a component is determined by comparing the number of black pixels indicating the harness 14 by simple area comparison by binarization. Therefore, the determination accuracy is high. Further, the processing of the image processing device 20 is only a simple process such as binarization, counting, statistical processing, and comparison, so the processing speed is extremely fast, and therefore the moving speed of the drawing board 10 can be increased, and the inspection efficiency is improved. Better and can perform inspections at online speeds.

なお本発明は、ワイヤリング・ハーネスのみならず、他
の検査ワークの部品欠落を検査するのにも適用できる。
この場合、検査ワークの形状がいくら複数であってもま
た部品の個別検出が困難であっても、面積比較により部
品欠落を判定するため、まったく問題はない。また、テ
レビカメラの視野は検査精度に合わせて調整すればよ
く、従って検査精度とワークの大きさに応じてテレビカ
メラを1台から多数台用いれば良い。
The present invention can be applied not only to wiring harnesses but also to inspect for missing parts in other inspection works.
In this case, no matter how many shapes the inspection work has, or even if it is difficult to detect individual parts, there is no problem because the missing parts are determined by area comparison. Further, the field of view of the television camera may be adjusted according to the inspection accuracy, and therefore one to many television cameras may be used according to the inspection accuracy and the size of the work.

H.発明の効果 以上実施例とともに具体的に説明したように本発明によ
れば、良品ワークと検査ワークを同じテレビカメラで撮
影して得た画像信号を二値化し、良品ワークを示す画素
数から統計処理により判定値または基準値を求め、これ
らの値と検査ワークを示す画素数とを比較して部品欠落
があるか否かを判定する。このように判定値または基準
値を統計処理により決定するので、誤差が小さい。また
単純面積比較により判定しているため、ワーク部品の部
品位置、寸法等をティーチングする必要がなく、迅速且
つ簡単な処理により検査ができる。また検査対象となる
ワークの種類を変えたときには、良品であることが確認
されたその種のワークを良品ワークとするだけでよく、
検査プログラムの変更を要しない。
H. Effect of the Invention According to the present invention as specifically described in connection with the embodiments above, the number of pixels indicating a non-defective work is binarized by binarizing the image signal obtained by photographing the non-defective work and the inspection work with the same TV camera. From these, a determination value or a reference value is obtained by statistical processing, and these values are compared with the number of pixels indicating the inspection work to determine whether or not there is a missing part. Since the judgment value or the reference value is determined by the statistical processing in this way, the error is small. Further, since the determination is made by the simple area comparison, it is not necessary to teach the component position, dimension, etc. of the work component, and the inspection can be performed by a quick and simple process. Also, when the type of work to be inspected is changed, it is only necessary to regard that type of work that has been confirmed to be non-defective as a non-defective work.
No change to the inspection program is required.

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

第1図は本発明の一実施例に係るシステム系統を示す系
統図、第2図は図板の搬送ラインを示す平面図、第3図
は図板の搬送状態を示す構成図、第4図は動作タイミン
グを示す図、第5図はティーチングのフローチャート、
第6図は統計処理のフローチャート、第7図は検査のフ
ローチャート、第8図は従来技術を示すシステム系統図
である。 図面中、 10は図板、 14は検査ワークとしてのワイヤリング・ハーネス、 Gは良品ワークとしてのワイヤリング・ハーネス、 SWはティーチングと検査の指令切換用スイッチ、 TV1,TV2,TV3,TV4はテレビカメラ、 20は画像処理装置である。
FIG. 1 is a system diagram showing a system system according to an embodiment of the present invention, FIG. 2 is a plan view showing a transportation line of a drawing board, FIG. 3 is a configuration diagram showing a transportation state of a drawing board, and FIG. Is a diagram showing operation timing, FIG. 5 is a flowchart of teaching,
FIG. 6 is a flow chart of statistical processing, FIG. 7 is a flow chart of inspection, and FIG. 8 is a system system diagram showing a conventional technique. In the drawings, 10 is a drawing board, 14 is a wiring harness as an inspection work, G is a wiring harness as a non-defective work, SW is a switch for teaching and inspection command change, TV1, TV2, TV3, TV4 are TV cameras, Reference numeral 20 is an image processing device.

───────────────────────────────────────────────────── フロントページの続き (72)発明者 高橋 常悦 愛知県稲沢市長野1―10―28 (72)発明者 阿部 清秀 愛知県西春日井郡西枇杷島町押花5 (56)参考文献 特開 昭61−169749(JP,A) 特開 昭62−85803(JP,A) 特開 昭61−194305(JP,A) 特開 昭62−180251(JP,A) ─────────────────────────────────────────────────── ─── Continuation of the front page (72) Inventor Tsuneetsu 1-10-28 Nagano, Inazawa-shi, Aichi Prefecture (72) Inventor Kiyohide Abe 5 Oshibana, Nishibiwajima-cho, Nishikasugai-gun, Aichi Prefecture (56) References JP-A-61 -169749 (JP, A) JP 62-85803 (JP, A) JP 61-194305 (JP, A) JP 62-180251 (JP, A)

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】良品ワーク及び検査ワークの撮影に同じ撮
影視野で共用されるテレビカメラと、ティーチング指令
と検査指令を切換えて出力する装置と、テレビカメラか
らの画像信号を入力して検査ワークが不良であるか否か
判定する画像処理装置とを具備し、 前記画像処理装置は、前記テレビカメラからのワークの
画像信号を背影の画素とワークの画素とに分ける二値化
処理部と、ワークの画素数をカウントするカウント部
と、ティーチング指令が出力されている場合に良品ワー
クの画素のカウント値を入力して平均値μと標準偏差σ
を計算し、μ±3σを判定値として出力する統計処理部
と、判定値を記憶するメモリと、検査指令が出力されて
いる場合に検査ワークの画素のカウント値をメモリに記
憶した判定値と比較し、判定値を外れると検査ワークが
不良であると判定する判定部とを有することを特徴とす
る不良品判定画像処理装置。
1. A television camera which is commonly used for photographing non-defective workpieces and inspection workpieces in the same field of view, a device for switching and outputting a teaching command and an inspection instruction, and an inspection workpiece which receives an image signal from the television camera. An image processing device for determining whether or not there is a defect, the image processing device, a binarization processing unit that divides the image signal of the work from the television camera into pixels of the back shadow and pixels of the work, The counting unit that counts the number of pixels of the work and the count value of the pixels of the non-defective work when the teaching command is output, and the average value μ and standard deviation σ
And a statistical processing unit that outputs μ ± 3σ as a determination value, a memory that stores the determination value, and a determination value that stores the count value of the pixel of the inspection work in the memory when the inspection command is output. A defective product determination image processing apparatus, comprising: a determination unit that determines that the inspection work is defective when compared and deviates from the determination value.
【請求項2】良品ワーク及び検査ワークの撮影に同じ撮
影視野で共用されるテレビカメラと、ティーチング指令
と検査指令を切換えて出力する装置と、テレビカメラか
らの画像信号を入力して検査ワークが不良であるか否か
判定する画像処理装置とを具備し、 前記画像処理装置は、前記テレビカメラからのワークの
画像信号を背影の画素とワークの画素とに分ける二値化
処理部と、ワークの画素数をカウントするカウント部
と、ティーチング指令が出力されている場合に良品ワー
クの画素のカウント値を入力して平均値を算出する統計
処理部と、平均値を基準値として記憶するメモリと、検
査指令が出力されている場合にメモリに記憶した基準値
と検査ワークの画素のカウント値を比較し、その差が設
定値よりも大きいと検査ワークが不良であると判定する
判定部とを有することを特徴とする不良品判定画像処理
装置。
2. A television camera which is commonly used for photographing non-defective workpieces and inspection workpieces in the same field of view, a device which switches between a teaching instruction and an inspection instruction and outputs, and an inspection workpiece which receives an image signal from the television camera. An image processing device for determining whether or not there is a defect, the image processing device, a binarization processing unit that divides the image signal of the work from the television camera into pixels of the back shadow and pixels of the work, A counting unit that counts the number of pixels, a statistical processing unit that calculates the average value by inputting the count value of the non-defective workpiece pixels when a teaching command is output, and a memory that stores the average value as a reference value. When the inspection command is output, the reference value stored in the memory is compared with the pixel count value of the inspection work. If the difference is larger than the set value, the inspection work is defective. A defective product determination image processing device, comprising: a determination unit that determines that there is a defective product.
JP1111981A 1988-08-12 1989-05-02 Defective product judgment image processing device Expired - Fee Related JPH0672780B2 (en)

Priority Applications (6)

Application Number Priority Date Filing Date Title
JP1111981A JPH0672780B2 (en) 1989-05-02 1989-05-02 Defective product judgment image processing device
EP89308100A EP0354782B1 (en) 1988-08-12 1989-08-09 Image processor for detecting incomplete articles
DE68927489T DE68927489T2 (en) 1988-08-12 1989-08-09 Image processing device for the detection of incomplete objects
CA000608044A CA1327636C (en) 1988-08-12 1989-08-10 Image processor for detecting incomplete articles
KR2019890011941U KR920003641Y1 (en) 1988-08-12 1989-08-12 Image processing apparatus for detection of odd product
US07/393,763 US5121439A (en) 1988-08-12 1989-08-14 Image processor for detecting incomplete articles such as wiring harnesses

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1111981A JPH0672780B2 (en) 1989-05-02 1989-05-02 Defective product judgment image processing device

Publications (2)

Publication Number Publication Date
JPH02291910A JPH02291910A (en) 1990-12-03
JPH0672780B2 true JPH0672780B2 (en) 1994-09-14

Family

ID=14574962

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1111981A Expired - Fee Related JPH0672780B2 (en) 1988-08-12 1989-05-02 Defective product judgment image processing device

Country Status (1)

Country Link
JP (1) JPH0672780B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6351408B2 (en) * 2014-07-08 2018-07-04 アズビル株式会社 Image inspection apparatus and image inspection method

Also Published As

Publication number Publication date
JPH02291910A (en) 1990-12-03

Similar Documents

Publication Publication Date Title
EP0878965A3 (en) Method for tracking entering object and apparatus for tracking and monitoring entering object
US4692799A (en) Automatic inspection system for detecting foreign matter
US4591918A (en) Image sensor system
KR920003641Y1 (en) Image processing apparatus for detection of odd product
JPH0672780B2 (en) Defective product judgment image processing device
JP2527403B2 (en) Method and apparatus for correcting the amount of movement of an object to be measured by a speckle pattern using laser light
FI88095C (en) AUTOMATISK REGLERING AV BILDSKAORPA I BILDROER
JPH03154173A (en) Defective deciding image processor
JP2543370B2 (en) Sealant inspection method using visual sensor
JPH08114426A (en) Method and device for inspecting bending of wire
EP1676238B1 (en) A method for measuring dimensions by means of a digital camera
JPH0868613A (en) Method and apparatus for inspection of component by image processing
JP3282868B2 (en) Resolution inspection method
JPH082601Y2 (en) Appearance inspection device for wire harness
CN210572020U (en) Visual detection equipment erected on existing assembly line
JPH0829357A (en) Appearance inspection device for automation line
JPH0251050A (en) Correction of positional deviation
JP3038718B2 (en) Method and apparatus for inspecting solder bridge of lead component
JPH06288714A (en) Measuring device
JP2660560B2 (en) Defect inspection method
JPH07117394B2 (en) Sheet metal processing inspection device
JP3042766U (en) Grain size measuring device
KR100278670B1 (en) Inspection method and apparatus for TV screen
JPH1063856A (en) Method for inspecting appearance and device therefor
JPH0663985B2 (en) Surface defect inspection device

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees