JP3288902B2 - Seal inspection system - Google Patents

Seal inspection system

Info

Publication number
JP3288902B2
JP3288902B2 JP16808395A JP16808395A JP3288902B2 JP 3288902 B2 JP3288902 B2 JP 3288902B2 JP 16808395 A JP16808395 A JP 16808395A JP 16808395 A JP16808395 A JP 16808395A JP 3288902 B2 JP3288902 B2 JP 3288902B2
Authority
JP
Japan
Prior art keywords
inspection
width
sealing material
seal
function
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
JP16808395A
Other languages
Japanese (ja)
Other versions
JPH08334478A (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.)
Three Bond Co Ltd
Original Assignee
Three Bond Co 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 Three Bond Co Ltd filed Critical Three Bond Co Ltd
Priority to JP16808395A priority Critical patent/JP3288902B2/en
Publication of JPH08334478A publication Critical patent/JPH08334478A/en
Application granted granted Critical
Publication of JP3288902B2 publication Critical patent/JP3288902B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

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

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明はシール検査システムに係
り、更に詳しくは、自動シール塗布装置等を用いてビー
ド状に塗布されたシール材の塗布状態を判定するシール
検査システムの改良に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a seal inspection system, and more particularly, to an improvement in a seal inspection system for judging the application state of a seal material applied in a bead shape using an automatic seal application device or the like.

【0002】[0002]

【従来の技術】近時、各種機械部品相互間におけるシー
ルを行うに当たり、シリコーン樹脂等を用いたシール方
法が採用されている。
2. Description of the Related Art In recent years, a sealing method using a silicone resin or the like has been adopted for sealing between various mechanical parts.

【0003】とりわけ、エンジン等の組立工程において
は、組立ラインへの適用も容易であるとともに、作業環
境の改善等を図ることができるため、ワークの接合面に
沿って移動可能に設けたノズルから液状のシール材を吐
出し、これを接合面に自動的に塗布する装置が普及する
に至っている。
[0003] In particular, in an assembly process of an engine or the like, since it can be easily applied to an assembly line and can improve a working environment, a nozzle provided movably along a joint surface of a workpiece can be used. 2. Description of the Related Art Apparatuses for discharging a liquid sealing material and automatically applying the liquid sealing material to a joint surface have become widespread.

【0004】ところで、上述の塗布装置においては、何
らかの理由によりシール材に空気等が混入している場合
に、ノズルからシール材を吐出する際に空気が噴出し、
いわゆる空打ち状態となってシール材の連続的な吐出を
部分的に阻害したり、或いは部分的な塗布幅の異常等を
発生するという不都合がある。
In the above-described coating apparatus, when air or the like is mixed in the sealing material for some reason, air is ejected when the sealing material is discharged from the nozzle.
There is an inconvenience that a so-called idling state is caused to partially obstruct continuous ejection of the sealing material, or to cause a partial application width abnormality or the like.

【0005】このため、自動塗布後において、接合面に
塗布されたシール材の状態を検査する必要があり、この
検査は、作業者による目視観察が採用されている他、C
CDカメラ等の撮像手段を採用した画像処理による塗布
検査も採用されるに至っている。
For this reason, after the automatic application, it is necessary to inspect the state of the sealing material applied to the joint surface. In this inspection, visual observation by an operator is adopted.
A coating inspection by image processing using an imaging means such as a CD camera has also been adopted.

【0006】[0006]

【発明が解決しようとする課題】しかしながら、塗布の
異常若しくは欠陥は稀に発生するものであるため、目視
検査では欠陥がないものとの思い込みに起因して、実際
に欠陥が発生した場合にこれを見逃してしまう場合を生
じ易い。
However, since a coating abnormality or a defect rarely occurs, if a defect actually occurs due to the assumption that there is no defect in the visual inspection, Is likely to be overlooked.

【0007】また、目視検査では、検査者の主観により
塗布の異常を判定するため、塗布状態について正常であ
るか又は異常であるかの判断の基準を一律にすることが
難しい。すなわち、目視検査では、ある検査者によって
は異常と判断される塗布状態が、別の検査者によって正
常と判断される場合があり、シール材の塗布状態の評価
を定量化することができない。
Further, in the visual inspection, since the abnormality of the coating is determined by the examiner's subjectivity, it is difficult to make the standard for determining whether the coating state is normal or abnormal. That is, in the visual inspection, the application state determined to be abnormal by one inspector may be determined to be normal by another inspector, and the evaluation of the application state of the sealing material cannot be quantified.

【0008】この一方、画像処理による検査では、撮影
した画像内の濃度値にバラツキを生じ易く、二値化した
画像データに対して画像処理を行なう検査では、検査結
果の精度確保が困難になるという不都合があった。これ
を更に詳述すると、撮影時に照明の乱反射がないとした
場合の画像は、図4(A)に示されるように、接合面4
0に対してシール材41を明確に識別することができ
る。これは、通常接合面40は明るく撮像されるのに対
して、シール材はこの明るさよりも暗く撮像されるため
である。
On the other hand, in an inspection by image processing, the density value in a captured image tends to vary, and in an inspection in which image processing is performed on binarized image data, it is difficult to ensure the accuracy of the inspection result. There was an inconvenience. More specifically, as shown in FIG. 4 (A), an image in the case where there is no irregular reflection of illumination at the time of photographing is obtained.
The seal material 41 can be clearly identified from 0. This is because the bonding surface 40 is normally imaged brightly, while the sealing material is imaged darker than this brightness.

【0009】従って、この図4(A)に示した画像を所
定のしきい値により二値化すると、図4(B)に示され
るように接合面40とシール材41とを良好に分離する
ことができ、このため、接合面40上のシール材41を
捕捉することが可能となる。さらに、同図中の点線枠内
における画素数を数えて当該画素数を設定値と比較する
ことにより、シール材が塗布された面積を捕捉し、塗布
状態の検査を行うことができる。
Therefore, when the image shown in FIG. 4A is binarized by a predetermined threshold value, the joining surface 40 and the sealing material 41 are satisfactorily separated as shown in FIG. 4B. Therefore, the sealing material 41 on the bonding surface 40 can be captured. Further, by counting the number of pixels in the dotted frame in the figure and comparing the number of pixels with a set value, it is possible to capture the area on which the sealing material has been applied and to inspect the applied state.

【0010】しかしながら、シール材の塗布が行われる
現場においては、製造工程の一部分であり、照明の設置
位置も制限されるため、周囲の明るさ等、検査環境は必
ずしも良好でない。このため、実際の撮影に際しては、
図4(C)に示されるように、シール材41の一部分で
照明が反射して明るくなり、このシール材41の一部分
と接合面40の明るさが近似してしまう場合がある。従
って、図4(C)に示した画像を二値化すると、図4
(D)に示すように、シール材41として分離される部
分が、実際のシール材41部分よりも少なくなり、図中
点線で囲まれた画素数を数えても設定数未満の画素数と
して塗布不良と判定される。
[0010] However, at the site where the sealing material is applied, it is a part of the manufacturing process, and the installation position of the lighting is limited. Therefore, the inspection environment such as the ambient brightness is not always good. For this reason, in actual shooting,
As shown in FIG. 4C, the illumination is reflected by a part of the sealing material 41 and becomes bright, and the brightness of the bonding surface 40 may be approximated to the part of the sealing material 41. Therefore, when the image shown in FIG. 4C is binarized,
As shown in (D), the portion separated as the sealing material 41 is smaller than the actual sealing material 41, and even if the number of pixels surrounded by a dotted line in the figure is counted, the number of pixels is smaller than the set number. It is determined to be defective.

【0011】すなわち、検査環境によっては、シール材
41上に照明の反射が生じ、このシール材部分の反射の
ため、塗布状態の誤判定を生ずるという不都合があっ
た。従って、理想状態で接合面40を撮像した場合に
は、画像処理により塗布状態の判定を行なうことができ
ても、実際の製造工程では、シール材41の反射のた
め、目視によらない自動検査を行っても信頼性が低いも
のであった。
That is, depending on the inspection environment, there is a problem that illumination is reflected on the sealing material 41 and erroneous determination of the application state is caused by the reflection of the sealing material. Therefore, when the bonding surface 40 is imaged in an ideal state, the coating state can be determined by image processing. However, in the actual manufacturing process, the reflection of the sealing material 41 causes the automatic inspection without visual inspection. Was unreliable.

【0012】また、図4に示したような二値化した画像
のウインドウ内の画素数に基づいて検査対象の有無を判
定する手法では、二値化する場合のしきい値の設定が難
しい。これは、ある検査環境では良好に作用するしきい
値が、他の環境ではシール材部分と接合面部分とを分離
しなくなってしまう、という不都合が生じる。また、照
明位置や強さが変更される毎に、しきい値を設定するの
は、余りに煩雑であり画像処理によるシール材の塗布状
態の検査の自動化を妨げてしまう。また、判別分析法等
によるしきい値の自動設定では、処理に長時間必要とな
る。
In the method of determining the presence or absence of an inspection object based on the number of pixels in a window of a binarized image as shown in FIG. 4, it is difficult to set a threshold value for binarization. This causes a disadvantage that a threshold value that works well in one inspection environment does not separate the sealing material portion and the joint surface portion in another environment. Setting the threshold every time the illumination position or the intensity is changed is too complicated and hinders the automatic inspection of the application state of the sealing material by image processing. Further, in the automatic setting of the threshold value by the discriminant analysis method or the like, the processing requires a long time.

【0013】このように、シール材の塗布状態の検査シ
ステムには、検査環境によって照明位置や照度が変動す
ることにより画像データ中の濃度が均一でなく多少変化
していても、また、シール材の一部で外来光が反射して
接合面と同一の明るさとなっていても、画像データ中の
シール材部分を分離できる手法が望まれる。
As described above, the inspection system for the application state of the sealing material is not limited to the sealing material even if the density in the image data is not uniform and slightly changed due to the change of the illumination position or the illuminance depending on the inspection environment. Even if external light is reflected by a part of the image and the brightness is the same as that of the bonding surface, a method capable of separating the sealing material portion in the image data is desired.

【0014】反射によってシール材を識別できない箇所
は、実際にはシール材の塗布方向に沿う中央部に発生し
易いことが判明した。すなわち、シール材の厚みなどに
より、シール材41の幅方向の両端部分は、照明の反射
が生じ難く、暗く撮像される。すなわち、シール材41
の中央部分の濃度が照明の影響を受けやすく不安定であ
るのに対して、両端部については安定して接合面40と
の濃度差が生じる。従って、シール材の幅方向両端濃度
は、接合面の濃度に対して明確に識別することができ
る。
It has been found that the portion where the sealing material cannot be identified by reflection is likely to actually occur in the central portion along the coating direction of the sealing material. That is, due to the thickness of the sealing material and the like, both ends in the width direction of the sealing material 41 are hardly reflected by illumination, and are imaged dark. That is, the sealing material 41
Is unstable due to the influence of illumination, while the density at the both ends is stably different from the bonding surface 40. Therefore, the density at both ends in the width direction of the sealing material can be clearly identified with respect to the density at the joining surface.

【0015】[0015]

【発明の目的】本発明の目的は、ワーク接合面の画像デ
ータに対して、シール材の幅方向両端に沿う濃度分布の
変化に基づいてシール材の有無を検出し、この検出を予
め定められた検査ポイント毎に行うことによってシール
材の塗布状態を高速にかつ高精度に行うことができるシ
ール検査システムを提供することにある。
SUMMARY OF THE INVENTION It is an object of the present invention to detect the presence or absence of a sealing material based on a change in density distribution along both ends in the width direction of the sealing material with respect to image data of a work joining surface, and to determine this detection in advance. It is an object of the present invention to provide a seal inspection system capable of performing the application state of the sealing material at high speed and with high accuracy by performing the inspection for each inspection point.

【0016】[0016]

【課題を解決するための手段】前記目的を達成するた
め、本発明は、シール材が塗布されたワーク接合面を撮
像する手段と、この撮像手段で取り込まれたデータを画
像データとして記憶する画像メモリと、この画像メモリ
に接続されるとともに画像データに対して濃淡画像処理
を行う処理装置とを備え、さらに、処理装置は、画像デ
ータ上に予め定められた検査ポイントを中心とした検査
幅部分の画素位置を検索する検査部分特定機能と、画像
データ中の検査幅の両端位置から検査ポイントまでの画
素のうち濃度変化値が設定値以上となった画素の位置を
前記シール材の幅方向両端位置と判定する両サイド検出
機能と、この両サイド検出機能によって幅方向両端が検
出されない場合に当該検査ポイントについてシール切れ
目と判定する切れ目エラー判定機能とを備える、という
構成を採っている。
In order to achieve the above object, the present invention provides a means for capturing an image of a workpiece joint surface to which a sealing material has been applied, and an image for storing data captured by the image capturing means as image data. A memory, and a processing device connected to the image memory and performing grayscale image processing on the image data. The processing device further includes an inspection width portion centered on a predetermined inspection point on the image data. Inspection part specifying function to search for the pixel position of, and the position of the pixel whose density change value is equal to or larger than the set value among the pixels from the both ends of the inspection width in the image data to the inspection point are both ends in the width direction of the sealing material A two-side detection function for determining a position, and a cut for determining a seal break for the inspection point when both ends in the width direction are not detected by the two-side detection function. And a color determination function, and employs a configuration that.

【0017】さらに、シール検査システムにおける処理
装置は、切れ目エラーが複数の検査ポイントで連続して
発生した時に塗布状態の不良と判定する塗布状態判定機
能を備えた、という構成を採っている。また、検査ポイ
ントが、正常に塗布されたシール材の幅方向の中心に設
定されるとともに、前記検査幅の両端が、前記ワーク接
合面上に設定される、という構成が好ましくは採用され
る。
Further, the processing apparatus in the seal inspection system has a configuration in which a coating state determining function for determining that the coating state is defective when a break error occurs continuously at a plurality of inspection points is adopted. Preferably, the inspection point is set at the center in the width direction of the normally applied sealing material, and both ends of the inspection width are set on the work bonding surface.

【0018】また、処理装置は、両サイド検出機能によ
って検出された幅方向両端位置に基づいて当該検査ポイ
ントでのシール材の幅を算出する塗布幅算出機能と、こ
の塗布幅算出機能によって算出された塗布幅が予め定め
られた最小設定幅よりも小さい場合に当該検査ポイント
について塗布幅エラーと判定する塗布幅エラー判定機能
とを備える、という構成を採っている。
Further, the processing device calculates the width of the sealing material at the inspection point based on the both end positions in the width direction detected by the both-side detection function, and calculates the width of the sealing material at the inspection point. And an application width error determination function of determining an application width error for the inspection point when the application width is smaller than a predetermined minimum setting width.

【0019】さらに、処理装置は、塗布幅エラーが複数
の検査ポイントで連続して発生した時に塗布状態の不良
と判定する塗布状態判定機能を備える、という構成を採
っている。
Further, the processing apparatus is provided with a coating state determining function for determining that the coating state is defective when a coating width error occurs continuously at a plurality of inspection points.

【0020】また、処理装置は、両サイド検出機能によ
って検出された幅方向両端位置と検査ポイントの位置と
に基づいて塗布位置のずれ量を判定するずれ量算出機能
と、このずれ量算出機能によって算出されたずれ量が予
め定められた設定ずれ量よりも大きい場合に当該検査ポ
イントについてずれエラーと判定するずれエラー判定機
能とを備える、という構成も採用でき、これによって塗
布状態の各種バリエーションが個別的に検査できる。こ
の際、処理装置は、前記塗布幅エラーが複数の検査ポイ
ントで連続して発生した時に塗布状態の不良と判定する
塗布状態判定機能を備える構成とするとよい。
Further, the processing device includes a shift amount calculating function for determining a shift amount of the coating position based on the both ends in the width direction detected by the both side detecting functions and the position of the inspection point, and a shift amount calculating function. A deviation error determination function for determining a deviation error for the inspection point when the calculated deviation amount is larger than a predetermined deviation amount. Can be inspected. In this case, the processing apparatus may be provided with a coating state determining function for determining that the coating state is defective when the coating width error occurs continuously at a plurality of inspection points.

【0021】[0021]

【作用】濃淡画像処理を行うに先立ち、正常にシール材
の塗布が行われた基準ワークを用いて検査ポイントが教
示され、各検査ポイントが処理装置内に記憶される。こ
の後、ワーク接合面にシール材が塗布された検査対象に
対して撮像手段で画像データを取り込み、これを画像メ
モリに記憶させる。処理装置は画像メモリにおける画像
データに対して前記検査ポイント毎にシール幅方向から
の濃淡画像処理を行う。ここで、シール材の両端が検出
されたか否かは、ワーク接合面の濃度とシール材の両端
濃度との比較によって判断される。濃度差は、ワーク接
合面及びシール材の色、若しくは光の反射率等に基づい
て設定しておき、その濃度差の設定値に基づいてシール
両端の有無を判断することができる。
Before performing the gradation image processing, the inspection points are taught using the reference work to which the sealing material is normally applied, and each inspection point is stored in the processing device. After that, image data is captured by the imaging means for the inspection target having the sealing material applied to the work bonding surface, and the image data is stored in the image memory. The processing device performs grayscale image processing on the image data in the image memory for each inspection point in the seal width direction. Here, whether or not both ends of the sealing material are detected is determined by comparing the density of the work joining surface with the density of both ends of the sealing material. The density difference is set based on the color of the work bonding surface and the seal material, the reflectance of light, or the like, and the presence or absence of both ends of the seal can be determined based on the set value of the density difference.

【0022】特定の検査ポイントにおけるシール材の両
端が検出できない時は、当該検査ポイントのシール切れ
がカウントされる。そして、次の検査ポイントでシール
材の両端検出が依然として行えない場合には、シール切
れのカウントが積算される。このように連続したシール
切れのカウント数が許容設定回数を越えた時に、シール
切れと看做して塗布異常と判断される。
When both ends of the seal material at a specific inspection point cannot be detected, the number of seal breaks at the inspection point is counted. If the detection of both ends of the seal material cannot be performed at the next inspection point, the count of the seal breakage is added. When the count value of the continuous seal break exceeds the allowable set number, it is determined that the seal is broken and the application is determined to be abnormal.

【0023】また、処理装置にシール材の最小設定幅を
検出する機能を付与した構成においては、シール切れの
他に各検査ポイントにおけるシール塗布幅並びに幅ずれ
も同時に検出することが可能となる。
Further, in a configuration in which the processing device is provided with a function of detecting the minimum set width of the seal material, it is possible to simultaneously detect the seal application width and the width deviation at each inspection point in addition to the seal break.

【0024】[0024]

【実施例】以下、本発明に係るシール検査システムの一
実施例を図面を参照しながら説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of a seal inspection system according to the present invention will be described below with reference to the drawings.

【0025】図1には、シール検査システムのブロック
構成図が示されている。この図において、検査ワーク1
0は自動車のエンジンヘッドカバー等が対象とされてお
り、このワーク10の接合面40にシリコーン樹脂等の
シール材41が塗布されている。シール材41の塗布
は、シール材41塗布用の図示しないロボットにより行
なわれる。このシール材塗布ロボットは接合面40にシ
ール材41を吐出するノズルと、このノズルを接合面4
0に沿って移動させるノズル駆動手段とを備えており、
ノズル駆動手段は、ロボットコントローラ11に駆動制
御されるようになっている。このロボットコントローラ
11は、ノズルをワーク10の接合面40に沿って塗布
軌跡上にティーチングし、連続的に生産されるワーク1
0の接合面40に対して順次シール材41の塗布を行な
わせる機能を備えている。
FIG. 1 shows a block diagram of the seal inspection system. In this figure, inspection work 1
Numeral 0 designates an automobile engine head cover or the like, and a sealing material 41 such as a silicone resin is applied to a joint surface 40 of the work 10. The application of the sealing material 41 is performed by a robot (not shown) for applying the sealing material 41. The sealing material application robot includes a nozzle for discharging a sealing material 41 on the bonding surface 40 and a nozzle for connecting the nozzle to the bonding surface 4.
Nozzle driving means for moving along 0.
The nozzle driving means is driven and controlled by the robot controller 11. The robot controller 11 teaches the nozzle on the application locus along the joining surface 40 of the workpiece 10, and the workpiece 1 that is continuously produced
A function of sequentially applying the sealing material 41 to the bonding surface 40 of the “0” is provided.

【0026】ワーク10の検査位置における上方には、
撮像手段を構成する複数のCCDカメラ12及び照明装
置13が配置されている。CCDカメラ12は、本実施
例では有効画素数が768(H)×494(V)であ
り、モノクロで検査ワーク10内の接合面40を撮像す
る。また、CCDカメラ12とワーク10との撮影距離
は、この有効画素数内でシールが例えば4〜6画素程度
の大きさに撮影できる程度に設定される。検査対象のワ
ークおよびCCDカメラ12の位置は固定されていて、
ワーク10の接合面40は常に同一位置で撮像されるよ
うになっている。
Above the inspection position of the work 10,
A plurality of CCD cameras 12 and illuminating devices 13 constituting the image pickup means are arranged. In the present embodiment, the CCD camera 12 has an effective pixel number of 768 (H) × 494 (V), and captures a monochrome image of the joint surface 40 in the inspection work 10. The photographing distance between the CCD camera 12 and the work 10 is set such that the sticker can be photographed to a size of, for example, about 4 to 6 pixels within the effective number of pixels. The positions of the work to be inspected and the CCD camera 12 are fixed,
The joining surface 40 of the work 10 is always imaged at the same position.

【0027】前記CCDカメラ12には画像切換器14
が併設されており、この画像切換器14は、CCDカメ
ラ12を撮像対象の位置に応じて順次切り換え、接続中
のCCDカメラ12が撮像したアナログ画像データをデ
ジタイザ15に入力する。
The CCD camera 12 has an image switch 14
The image switch 14 sequentially switches the CCD camera 12 according to the position of the imaging target, and inputs analog image data captured by the connected CCD camera 12 to the digitizer 15.

【0028】ディジタイザ15は、CCDカメラ12が
出力するアナログ画像データをデジタル画像データに変
換するA/D変換器16と、このA/D変換器16が出
力する画像データを記憶する画像メモリ17と、この画
像メモリ17中の画像データをモニタ表示用にアナログ
変換するD/A変換器18とにより構成されている。こ
こでは、A/D変換器16は、アナログ画像データを2
56諧調(濃度値「0」から「255」)のデジタル画
像データに変換している。以下、この256諧調のデジ
タル画像データを単に画像データと称する。
The digitizer 15 includes an A / D converter 16 for converting analog image data output from the CCD camera 12 into digital image data, and an image memory 17 for storing image data output from the A / D converter 16. And a D / A converter 18 for converting the image data in the image memory 17 into analog data for monitor display. Here, the A / D converter 16 converts the analog image data into two.
It is converted into digital image data of 56 tones (density values “0” to “255”). Hereinafter, the digital image data of 256 gradations is simply referred to as image data.

【0029】一方、D/A変換器18には、内外モニタ
19,20及びプリンタ21が接続されている。一度画
像メモリ17に蓄積された画像データをD/A変換して
モニタ19,20に表示するため、モニタ上に表示され
た画像の座標と、画像メモリ17のアドレスによる座標
とが対応する。従って、モニタ19,20に表示した画
像に対してオペレータにより指示された位置は、画像メ
モリ17のアドレスに対応し、さらに、CCDカメラ1
2により撮像された接合面40の位置に対応する。
On the other hand, the internal / external monitors 19 and 20 and the printer 21 are connected to the D / A converter 18. Since the image data once stored in the image memory 17 is D / A converted and displayed on the monitors 19 and 20, the coordinates of the image displayed on the monitor correspond to the coordinates of the address of the image memory 17. Therefore, the position indicated by the operator with respect to the images displayed on the monitors 19 and 20 corresponds to the address of the image memory 17, and furthermore, the CCD camera 1
2 corresponds to the position of the bonding surface 40 imaged.

【0030】しかも、ここでは、CCDカメラ12の位
置が固定されているため、画像メモリ17中の画像デー
タの1画素の縦横の長さが、接合面40の何mmに対応
するかが特定される。また、この1画素の実際の大きさ
が特定されるため、モニタ上の画像データの実際の長さ
を併せて表示することが可能となる。
Further, since the position of the CCD camera 12 is fixed here, it is specified how many mm of the vertical and horizontal lengths of one pixel of the image data in the image memory 17 correspond to the bonding surface 40. You. Further, since the actual size of one pixel is specified, the actual length of the image data on the monitor can be displayed together.

【0031】また、D/A変換器18にはプリンタ21
が併設され、必要に応じて画像データや検査結果等を印
刷出力できるように構成されている。
The D / A converter 18 has a printer 21
Are provided so that image data and inspection results can be printed out as needed.

【0032】前記画像メモリ17には、処理装置として
のマイクロコンピュータ25が接続されている。このマ
イクロコンピュータ25は、画像メモリ17に蓄積され
た画像データに対する濃淡画像処理を行ない、また、ロ
ボットコントローラ11による駆動制御のタイミング等
を指示する。マイクロコンピュータ25には、実際に
は、制御手順が記載されたプログラムを予め記憶した図
示しないハードディスク又はROM等の記憶手段が併設
されている。
A microcomputer 25 as a processing device is connected to the image memory 17. The microcomputer 25 performs grayscale image processing on the image data stored in the image memory 17 and instructs the timing of drive control by the robot controller 11 and the like. Actually, the microcomputer 25 is provided with storage means such as a hard disk or a ROM (not shown) in which a program in which a control procedure is described is stored in advance.

【0033】マイクロコンピュータ25は、ロボットコ
ントローラ11に対して所定の塗布開始信号、検査終了
信号を出力するとともに、ロボットコントローラ11か
ら出力される撮影開始信号をI/Oボード26を介して
入力する回路とを備えている。また、マイクロコンピュ
ータ25には、外部に接続されたキーボード24により
所定のパラメータが入力されるようになっている。具体
的には、教示用プログラムを実行する際の検査対象に応
じた検査開始位置、検査開始方向、検査終了位置、許容
切れ幅、許容幅等が可変情報として任意に設定可能とさ
れている。
The microcomputer 25 outputs a predetermined application start signal and an inspection end signal to the robot controller 11 and inputs a photographing start signal output from the robot controller 11 via the I / O board 26. And In addition, predetermined parameters are input to the microcomputer 25 by the keyboard 24 connected to the outside. Specifically, an inspection start position, an inspection start direction, an inspection end position, an allowable cutting width, an allowable width, and the like according to an inspection target when executing the teaching program can be arbitrarily set as variable information.

【0034】前記マイクロコンピュータ25は、各種プ
ログラムに従い、シール材の塗布状態の検査ポイントを
画像データ上に定義する検査位置特定部25Aと、この
検査位置特定部25Aによって定義された検査ポイント
pのシール材の塗布状態を画像処理により判定する塗布
状態検査部25Bを備えたものである。
According to various programs, the microcomputer 25 defines an inspection position specifying section 25A for defining the inspection point of the application state of the sealing material on the image data, and a seal for the inspection point p defined by the inspection position specifying section 25A. The apparatus includes an application state inspection unit 25B that determines the application state of the material by image processing.

【0035】検査位置特定部25Aは、シール材が塗布
されていなければならない位置を特定する。すなわち、
CCDカメラ12で撮像した512×512の画像デー
タ中、シール材の存在が検出されなければならない座標
を特定するものである。シール材が良好に抽出された場
合、この画像データには4〜6画素を太さとして連続し
た線が検出される。この線の位置はワークの形状および
この接合面40へシール材41を塗布位置によって定ま
る。
The inspection position specifying section 25A specifies a position where the sealing material must be applied. That is,
In the 512 × 512 image data picked up by the CCD camera 12, the coordinates at which the presence of the sealing material must be detected are specified. When the sealing material is successfully extracted, a continuous line having a thickness of 4 to 6 pixels is detected in this image data. The position of this line is determined by the shape of the work and the position where the sealing material 41 is applied to the joining surface 40.

【0036】検査位置特定部25Aは、まず、正常にシ
ール材が塗布された接合面40の画像データをモニタ1
9,20に表示する。または、正常にシール材が塗布さ
れるべき位置を例えば黒く塗りつぶし、当該接合面40
の画像データをモニタに表示する。次いで、オペレータ
から検査開始位置と検査終了位置とをモニタ上の座標情
報として受けつける。さらに、オペレータから探索方向
の指示を受けつけると、ワークの形状に添ったシール材
の塗布位置を探索処理により画像メモリの座標として自
動的に検出するものである。
The inspection position specifying unit 25A first monitors the image data of the joint surface 40 on which the sealing material has been normally applied by using the monitor 1.
Displayed at 9, 20. Alternatively, the position where the sealing material should be normally applied is painted black, for example, and the joining surface 40
Is displayed on the monitor. Next, the inspection start position and the inspection end position are received from the operator as coordinate information on the monitor. Further, when an instruction of a search direction is received from the operator, the application position of the sealing material according to the shape of the work is automatically detected as the coordinates of the image memory by the search processing.

【0037】ここでは、画像データ中のシール材と判定
される画素を1画素づつ追跡することにより行なう。こ
の探索処理では、まず、探索方向への直進で何画素連続
しているかの数を求め、連続している画素数が基準値よ
り大きい場合は、その方向へ1画素進み、座標を記録す
る。
Here, the process is performed by tracing the pixels determined as the seal material in the image data one by one. In this search processing, first, the number of continuous pixels in the search direction is determined, and if the number of continuous pixels is larger than the reference value, the coordinate is recorded by moving one pixel in that direction.

【0038】さらに、連続の数が基準値より小さい場合
は、シールの曲がり部分と判断し新しい探索方向を決定
する。直進できない場合は、左右45度の方向を調べ濃
度値の比較により新しい方向を決定する。
Further, when the number of the continuations is smaller than the reference value, it is determined that the seal is a bent portion, and a new search direction is determined. If the vehicle cannot go straight, the direction at 45 degrees to the left and right is checked, and a new direction is determined by comparing the density values.

【0039】次いで、現位置の濃度と進行方向に隣接す
る画素の濃度の平均を基準濃度値とし、現位置から先の
2と3番目の画素の濃度の平均を比較濃度値とする。そ
して、基準濃度値が比較濃度値以上である場合には、そ
の方向へ1画素進み、進んだ位置を現位置として座標を
記録する。
Next, the average of the density of the current position and the density of the pixel adjacent in the traveling direction is set as a reference density value, and the average of the densities of the second and third pixels ahead of the current position is set as a comparison density value. If the reference density value is equal to or greater than the comparison density value, the pixel advances in that direction by one pixel, and the advanced position is recorded as the current position.

【0040】探索して座標を記録する毎に当該位置が終
了位置の範囲か否かを確認し、終了範囲内に入った場合
には正常と判定して終了する。一方、探索がシール材4
1から外れて正常に探索できなくなった場合を考え、一
定回数探索を繰り返しても終了位置に到達しない場合に
は異常と判定して終了する。
Each time a search is made and the coordinates are recorded, it is checked whether or not the position is within the range of the end position. If the position is within the end range, it is determined that the position is normal and the process is terminated. On the other hand, the search was for sealing material 4
Considering the case where the search deviates from 1 and cannot be normally performed, if the search does not reach the end position even if the search is repeated a fixed number of times, it is determined to be abnormal and the process ends.

【0041】これにより、シール材が塗布された線とし
て抽出される。さらに、この線上の一定間隔のポイント
を検査ポイントして座標を特定する。このとき、検査ポ
イントは、一定幅の中心に設定される。
Thus, the line on which the sealing material is applied is extracted. Further, points at regular intervals on this line are inspected to specify coordinates. At this time, the inspection point is set at the center of a certain width.

【0042】前記塗布状態検査部25Bは、画像データ
上に予め定義された検査ポイントでのシール材41の幅
方向の濃度変化値が設定値以上となった位置を当該シー
ル材の幅方向両端位置と判定する両サイド検出機能と、
この両サイド検出機能によって幅方向両端が検出されな
い場合に当該検査ポイントについてシール切れ目と判定
する切れ目エラー判定機能とを備えている。
The coating state inspection unit 25B determines the position where the density change value in the width direction of the sealing material 41 at the inspection point defined in advance on the image data is equal to or more than the set value, at both ends in the width direction of the sealing material. Both side detection function to determine
When both ends in the width direction are not detected by the both-side detection function, a break error determination function of determining that the inspection point is a seal break is provided.

【0043】また、塗布状態検査部25Bは、両サイド
検出機能によって検出された幅方向両端位置に基づいて
当該検査ポイントでのシール材の幅を算出する塗布幅算
出機能と、この塗布幅算出機能によって算出された塗布
幅が予め定められた最小設定幅よりも小さい場合に当該
検査ポイントについて塗布幅エラーと判定する塗布幅エ
ラー判定機能とを備えている。
The application state inspection section 25B calculates an application width calculation function for calculating the width of the sealing material at the inspection point based on the both ends in the width direction detected by the both-side detection function, and an application width calculation function. When the application width calculated by the above is smaller than a predetermined minimum setting width, an application width error determination function of determining an application width error for the inspection point is provided.

【0044】さらに、塗布状態検査部25Bは、両サイ
ド検出機能によって検出された幅方向両端位置と前記検
査ポイントの位置とに基づいて塗布位置のずれ量を判定
するずれ量算出機能と、このずれ量算出機能によって算
出されたずれ量が予め定められた設定ずれ量よりも大き
い場合に当該検査ポイントについてずれエラーと判定す
るずれエラー判定機能とを備えている。
Further, the coating state inspection unit 25B has a shift amount calculating function for determining a shift amount of the coating position based on the both ends in the width direction detected by the both side detecting function and the position of the inspection point, and a shift amount calculating function. A shift error determining function is provided for determining a shift error for the inspection point when the shift amount calculated by the amount calculating function is larger than a predetermined set shift amount.

【0045】また、本実施例では、各エラーが複数の検
査ポイントで連続して生じた場合に塗布状態の不良と判
定しているため、塗布状態検査部25Bは、各エラーの
回数をカウントするエラーカウンタを備えている。
In this embodiment, when each error occurs continuously at a plurality of inspection points, it is determined that the coating state is defective. Therefore, the coating state inspection unit 25B counts the number of each error. It has an error counter.

【0046】次に、塗布状態検査部25Bについて、更
に詳細に説明する。
Next, the application state inspection section 25B will be described in more detail.

【0047】塗布状態検査部25Bは、画像メモリ17
に蓄積された画像データに対して、濃淡変化の大きい部
分を検出することでシール材の存在を確認する。ここで
は、図2に示すように、塗布状態の検査として、シール
材の切れ目と、塗布幅と、シール材塗布位置のずれとの
3要素を確認している。まず、図3を参照して画像処理
によるシール材部分の抽出手法について説明し、次い
で、シール材の塗布状態の検査を行なう塗布状態検査部
25Bの処理工程を説明する。
The coating state inspection unit 25B is provided with an image memory 17
The presence of the sealing material is confirmed by detecting a portion having a large change in shading with respect to the image data stored in. Here, as shown in FIG. 2, as the inspection of the application state, three elements of a break in the seal material, an application width, and a shift of the seal material application position are confirmed. First, a method of extracting a seal material portion by image processing will be described with reference to FIG. 3, and then a processing step of the application state inspection unit 25B that inspects the application state of the seal material will be described.

【0048】検査ポイントpは、ワーク接合面40に塗
布されたシール材41の幅方向の中心位置に定義され
る。また、この検査ポイントpは、シール材41の塗布
方向に沿って一定間隔に配置される。さらに、検査ポイ
ントpに対して、検査幅wが定義されている。これは、
検査ポイントからシール材の幅方向に一定距離広く設定
されていて、この検査幅wの両端は、ここでは、ワーク
接合面40内に位置している。
The inspection point p is defined at the center position in the width direction of the sealing material 41 applied to the work joining surface 40. The inspection points p are arranged at regular intervals along the application direction of the sealing material 41. Further, an inspection width w is defined for the inspection point p. this is,
The inspection point is set to be wider by a certain distance in the width direction of the sealing material from the inspection point, and both ends of the inspection width w are located within the work bonding surface 40 in this case.

【0049】塗布状態検査部25Bは、検査幅wの両端
の画素から検査ポイントpの画素までの濃度変化を検知
する。上述したように、シール材41の幅方向のエッジ
部分は照明の反射の影響を受けにくいため、塗布状態検
査部25Bは、検査幅wの両端の画素の濃度から検査ポ
イントp方向に隣り合う画素の濃度変化を算出し、この
濃度変化が設定値以上の変化であればシール材のエッジ
であると判断する。
The application state inspection unit 25B detects a change in density from the pixels at both ends of the inspection width w to the pixel at the inspection point p. As described above, since the edge portion in the width direction of the sealing material 41 is hardly affected by the reflection of illumination, the coating state inspection unit 25B determines the pixel adjacent to the inspection point p direction from the density of the pixels at both ends of the inspection width w. Is calculated, and if this density change is equal to or more than the set value, it is determined that the edge is the edge of the sealing material.

【0050】検査幅wの両端から検査ポイントpへ至る
までの画素のうち、当該濃度変化が設定値以上の画素の
位置がシール材の両端であると判断されるため、塗布状
態検査部25Bは、CCDカメラ12で撮像した接合面
40上に塗布されたシール材の一点(検査ポイント)で
の幅を抽出することができる。この検出したシール材の
幅は画素の数として算出されるため、正常に塗布された
場合の幅に応じた画素数と比較することにより、このC
CDカメラ12で撮像した検査ポイントpでのシール材
の幅が正常よりも細いのかまたは太いのかを定量的に判
定することができる。
Since the position of the pixel whose density change is equal to or greater than the set value among the pixels from both ends of the inspection width w to the inspection point p is determined to be the both ends of the sealing material, the coating state inspection unit 25B In addition, the width at one point (inspection point) of the sealing material applied on the bonding surface 40 captured by the CCD camera 12 can be extracted. Since the detected width of the sealing material is calculated as the number of pixels, by comparing with the number of pixels corresponding to the width in the case of normal application, this C is calculated.
It is possible to quantitatively determine whether the width of the sealing material at the inspection point p captured by the CD camera 12 is smaller or larger than normal.

【0051】さらに、検査ポイントpは、正常に塗布さ
れたシール材の幅方向の中心位置に設定されているた
め、この検査ポイントpの位置と、シール材の両サイド
(エッジ)であると判断された画素の位置とを比較する
ことにより、シール材が本来塗布されるべき位置からど
の程度ずれているかを定量的に判定することができる。
CCDカメラ12は、正常に塗布されたシール材の幅が
4〜6画素となるようにワーク接合面40を撮像するた
め、このシール材の幅およびずれ量をミリ単位で検出す
ることができる。
Further, since the inspection point p is set at the center position in the width direction of the normally applied sealing material, it is determined that the inspection point p is located on both sides (edges) of the sealing material. By comparing with the positions of the pixels, it is possible to quantitatively determine how much the seal material deviates from the position where the seal material should be applied.
Since the CCD camera 12 captures an image of the work bonding surface 40 so that the width of the normally applied sealing material is 4 to 6 pixels, the width and the amount of displacement of the sealing material can be detected in millimeters.

【0052】また、塗布状態検査部25Bは、シール材
の塗布方向に一定間隔で配置された検査ポイント毎にこ
のシール材の幅の検出を行なう。このとき、塗布状態検
査部25Bは、複数の検査ポイントpについて連続して
シール材の幅の検出に失敗した場合には、シール材の塗
布方向に切れ目が生じていると判断する。
The application state inspection unit 25B detects the width of the sealing material at each inspection point arranged at a constant interval in the application direction of the sealing material. At this time, when the detection of the width of the sealing material has failed successively for a plurality of inspection points p, the application state inspection unit 25B determines that a break has occurred in the application direction of the sealing material.

【0053】ここで、図1に示した構成によるシール材
の塗布状態の検査工程を図2のフローチャートに基づい
て説明する。
Here, the inspection process of the application state of the sealing material with the configuration shown in FIG. 1 will be described with reference to the flowchart of FIG.

【0054】まず、照度検査を行なう(ステップS
1)。これは、照明が暗くなった場合は、シール材41
のエッジ部分の濃度と接合面40部分の濃度とが近似
し、濃度変化に基づくシール材の幅方向の両端(両サイ
ド)の検出が良好に行なえなくなるため、CCDカメラ
12による撮像の前に照度検査を行なうものである。照
度検査がNGの場合は照明不良として検査を行なわずに
処理を終了する(ステップS2)。
First, an illuminance inspection is performed (step S).
1). This is because when the illumination is dark, the sealing material 41
Since the density of the edge portion and the density of the joining surface 40 portion are close to each other and detection of both ends (both sides) in the width direction of the sealing material based on the density change cannot be performed satisfactorily, the illuminance before the imaging by the CCD camera 12 is performed. An inspection is performed. If the illuminance test is NG, the process is terminated without performing the test as a defective illumination (step S2).

【0055】次いで、CCDカメラ12で撮像した画像
データに対して予め定義された検査ポイントpについ
て、シール材の両サイドの検出処理を行なう。さらに、
この検出結果に基づいて塗布状態の検査を行なう。
Next, detection processing of both sides of the sealing material is performed on the inspection point p defined in advance for the image data picked up by the CCD camera 12. further,
An inspection of the application state is performed based on the detection result.

【0056】図2に示すステップS3からステップS1
8までは、1つの検査ポイントpについての処理の流れ
である。画像データに対しては、ワーク接合面40に沿
って複数の検査ポイントpが定義されているため、ステ
ップS18でこの画像データに対して定義されたすべて
の検査ポイントpの両サイド検出処理が終了したか否か
を判定する。
Steps S3 to S1 shown in FIG.
8 is the flow of processing for one inspection point p. Since a plurality of inspection points p are defined for the image data along the workpiece joint surface 40, the process of detecting both sides of all the inspection points p defined for this image data is completed in step S18. It is determined whether or not it has been performed.

【0057】また、この図2に示す塗布状態の検査で
は、シール材の塗布の切れ目(ステップS3〜S6)
と、塗布されたシール材の幅と(ステップS8〜S
9)、シール材の塗布位置のずれ(ステップS13〜S
16)の検査を行なう。本実施例では、それぞれの検査
において、切れ目等が1つの検査ポイントではなく、連
続した検査ポイントで発生している場合にエラー(塗布
状態の不良)と判定する。
In the inspection of the application state shown in FIG. 2, a break in the application of the sealing material (steps S3 to S6).
And the width of the applied sealing material (steps S8 to S8).
9), deviation of the application position of the sealing material (Steps S13 to S13)
The inspection of 16) is performed. In the present embodiment, in each inspection, if a break or the like occurs not at one inspection point but at consecutive inspection points, it is determined that an error (defective coating state) has occurred.

【0058】ステップS3では、上述した検査幅wから
検査ポイントpに至るまでの画素のうち設定値以上に濃
度変化が生じた画素の有無を検知する。シール幅の両サ
イドが検出されない場合、切れ目エラーカウンタの値を
「1」増加する(ステップS4)。切れ目エラーカウン
タの値が設定値以上である場合(ステップS5)、すな
わち、予め定めた数の検査ポイント数以上の検査ポイン
トpで切れ目と判定された場合、NGフラグを「ON」
として、切れ目・ずれエラーとする(ステップS6)。
ずれエラーの可能性もあるとするのは、検査幅w外にシ
ール材41が塗布された場合を想定したためである。
In step S3, it is detected whether or not there is a pixel from the inspection width w to the inspection point p in which the density has changed more than the set value. If both sides of the seal width are not detected, the value of the break error counter is increased by "1" (step S4). If the value of the break error counter is equal to or greater than the set value (step S5), that is, if it is determined that there is a break at inspection points p equal to or greater than a predetermined number of inspection points, the NG flag is set to “ON”.
As a break / shift error (step S6).
The reason for the possibility of a displacement error is that it is assumed that the sealing material 41 is applied outside the inspection width w.

【0059】ステップS3でシール材の両サイドが検出
された場合、まず、切れ目エラーカウンタを初期化する
(ステップS7)。さらに、当該シール材の両サイド間
の画素数を算出し、この画素数に基づいて当該シール材
の幅が最小設定幅以上か否かを確認する(ステップS
8)。最小設定幅未満である場合、すなわち、上述の例
では4から6画素以下の画素数であった場合、幅エラー
カウンタの値を「1」増加する(ステップS9)。次い
で、この幅エラーカウンタの値が設定値以上か否かを確
認する(ステップS10)。すなわち、最小設定幅に満
たない検査ポイントpが連続しているか否かを確認す
る。予め設定された数の検査ポイント数以上の検査ポイ
ントpで連続してシール材の幅が小さいと判定された場
合、NGフラグを「ON」として、幅エラーとする(ス
テップS11)。
If both sides of the sealing material are detected in step S3, first, a break error counter is initialized (step S7). Further, the number of pixels between both sides of the sealing material is calculated, and it is confirmed whether or not the width of the sealing material is equal to or larger than the minimum set width based on the number of pixels (step S).
8). If the width is less than the minimum set width, that is, if the number of pixels is 4 to 6 pixels or less in the above example, the value of the width error counter is increased by "1" (step S9). Next, it is checked whether or not the value of the width error counter is equal to or larger than a set value (step S10). That is, it is checked whether the inspection points p smaller than the minimum set width are continuous. When it is determined that the width of the sealing material is small continuously at the inspection points p equal to or larger than the preset number of inspection points, the NG flag is set to “ON” and a width error is caused (step S11).

【0060】ステップS8で最小設定幅以上と判定され
た場合、まず、幅エラーカウンタの値を初期化する(ス
テップS12)。さらに、当該シール材の両サイドの画
素位置と検査ポイントの画素の位置とに基づいて、当該
両サイドが設定ずれ以内に位置しているか否かを確認す
る(ステップS13)。設定ずれ範囲を越えている場
合、他の場合と同様にずれエラーカウンタの値を「1」
増加する(ステップS15)。さらに、この塗布位置の
ずれが連続した検査ポイントpで発生していると判定さ
れた場合(ステップS15)、NGフラグを「ON」と
して、ずれエラーとする(ステップS11)。
If it is determined in step S8 that the width is equal to or larger than the minimum set width, first, the value of the width error counter is initialized (step S12). Further, based on the pixel positions on both sides of the sealing material and the position of the pixel at the inspection point, it is confirmed whether or not both sides are located within the set deviation (step S13). If the deviation exceeds the set deviation range, the value of the deviation error counter is set to “1” as in the other cases.
It increases (step S15). Further, when it is determined that the displacement of the application position occurs at the consecutive inspection points p (step S15), the NG flag is set to “ON” and a displacement error is caused (step S11).

【0061】ステップS13でシール材の両サイド位置
が設定ずれ以内と判定された場合、まず、ずれエラーカ
ウンタを初期化する(ステップS17)。このステップ
S3からS17までの処理で各エラーが設定回数以上と
されない場合は、塗布状態は良好であるとして次の検査
ポイントを選択して処理をステップS3に戻す。
If it is determined in step S13 that both side positions of the sealing material are within the set deviation, first, a deviation error counter is initialized (step S17). If each error is not equal to or greater than the set number of times in the processing of steps S3 to S17, the application state is determined to be good, the next inspection point is selected, and the processing returns to step S3.

【0062】一方、NGと判定された場合、そのままシ
ール材の塗布状態がNGであることを外部表示して処理
を終了するようにしても良いが、ここでは、どの検査ポ
イントでどのようなエラーが発生したかの情報を得るた
め、次の検査ポイントを選択して処理をステップS3に
戻す。本実施例では、この検査ポイント毎のエラー情報
に基づいて塗布ロボットの動作不良の特定を行う。ま
た、このエラー情報に基づいて、塗布ロボットの動作を
制御して、再度シール材の塗布を行うようにしてもよ
い。すなわち、マイクロコンピュータ25は、検査ポイ
ントに対応する位置と、当該検査ポイントのエラー種別
とに基づいて、ロボットコントローラ11に再度シール
材の塗布制御を行なわせてもよい。
On the other hand, if it is determined that the seal material is unacceptable, the fact that the application state of the sealing material is NG may be displayed as it is, and the process may be terminated. In order to obtain information as to whether or not an error has occurred, the next inspection point is selected, and the process returns to step S3. In this embodiment, the operation failure of the coating robot is specified based on the error information for each inspection point. Further, based on this error information, the operation of the application robot may be controlled to apply the sealant again. That is, the microcomputer 25 may cause the robot controller 11 to control the application of the sealing material again based on the position corresponding to the inspection point and the error type of the inspection point.

【0063】全ての検査ポイントについて処理が終了す
ると(ステップS18)、NGフラグの状態を確認して
(ステップS19)、NGフラグがONであればNGを
出力し(ステップS20)、一方、NGフラグがONで
なければOKを出力する(ステップS21)。画像処理
により自動的に行なったシール材の塗布状態の検査結果
を外部表示できる。この外部表示は、モニタ19、20
に行なうようにしても良いし、また、プリンタ21にて
印字することができる。
When the processing is completed for all the inspection points (step S18), the state of the NG flag is confirmed (step S19). If the NG flag is ON, NG is output (step S20). If is not ON, OK is output (step S21). The inspection result of the application state of the sealing material automatically performed by the image processing can be externally displayed. This external display is displayed on the monitors 19 and 20.
Alternatively, printing can be performed by the printer 21.

【0064】ワークの大きさに応じてCCDカメラ12
が複数ある場合、1つの画像データについて処理が終了
した後、画像切換器14によりCCDカメラ12の入力
を切り替えて、次の画像データについての処理を行な
う。
The CCD camera 12 according to the size of the work
In the case where there are a plurality of image data, after the processing for one image data is completed, the input of the CCD camera 12 is switched by the image switch 14, and the processing for the next image data is performed.

【0065】このように図2に示した検査工程による
と、シール材のエッジ部分の検出によりシール材の有無
を検知するため、製造工程など必ずしも良好でない撮像
環境であっても、良好にシール材の両サイドを検出で
き、このため、理想的な照明環境とすることなしに画像
処理によるシール材の塗布状態の検査を行なうことがで
きる。
As described above, according to the inspection process shown in FIG. 2, the presence or absence of the seal material is detected by detecting the edge portion of the seal material. Of the sealing material can be detected by image processing without setting an ideal illumination environment.

【0066】さらに、検査幅の両端から検査ポイントに
向かって濃度変化が設定値以上に生じた画素をシール材
の両端と判定するため、シール材の幅を画素数で定量的
に捕捉することができ、CCDカメラ位置を特定するこ
とにより、1画素が実際の接合面40の何ミリに対応す
るかが特定されるため、この画素数で定義されるシール
材の幅が実際に何ミリであるかを正確に算出することが
できる。
Furthermore, since the pixels in which the density change from the both ends of the inspection width toward the inspection point exceeds the set value are determined as both ends of the sealing material, the width of the sealing material can be quantitatively captured by the number of pixels. By specifying the position of the CCD camera, it is specified how many millimeters of one pixel correspond to the actual bonding surface 40. Therefore, how many millimeters of the width of the sealing material defined by the number of pixels are actually obtained. Can be accurately calculated.

【0067】しかも、検査幅の両端を開始位置とし、当
該位置の画素の濃度値を基準として濃度変化量を検知す
るため、検査対象面での明るさが均一ではなくとも、す
なわち、照明環境が良好でなく接合面40上に乱反射が
多少生じていても、正確な判定を安定して行なうことが
できる。
Further, since the both ends of the inspection width are set as the start positions and the density change amount is detected based on the density value of the pixel at the position, even if the brightness on the inspection target surface is not uniform, that is, the illumination environment is Accurate determination can be stably performed even if some irregular reflection occurs on the bonding surface 40 due to poor quality.

【0068】また、検査ポイントが実際の接合面40上
の位置と対応するため、各検査ポイント毎のエラー状況
に基づいて、ロボットコントローラのシール材塗布動作
を制御することにより、良好に塗布されなかった位置に
ついて自動的にかつ正確に再度シール材を塗布すること
ができる。
Further, since the inspection points correspond to the actual positions on the bonding surface 40, the application of the sealing material by the robot controller based on the error situation at each inspection point is not performed so that the application is not performed satisfactorily. It is possible to automatically and accurately apply the sealing material again at the position where the seal material has been set.

【0069】[0069]

【発明の効果】本発明は以上のように構成され、且つ、
作用するので、これによると、両サイド検出機能が、画
像データ中の検査幅の両端位置から検査ポイントまでの
画素のうち濃度変化値が設定値以上となった画素の位置
をシール材の幅方向両端位置と判定するため、シール材
41の両端の常に暗く撮象される部分に基づいたシール
材41の有無の検出を行うことができ、さらに、切れ目
エラー判定機能が、この両サイド検出機能によって幅方
向両端が検出されない場合に当該検査ポイントについて
シール切れ目と判定するため、シール材41の塗布状態
の不良であるシール切れ目を画像処理により自動的に検
出することができる、という従来にない優れた効果を奏
するシール検査システムを提供することができる。
The present invention is configured as described above, and
According to this, according to this, both sides detection function determines the position of the pixel whose density change value is equal to or larger than the set value among the pixels from both ends of the inspection width in the image data to the inspection point in the width direction of the sealing material. Since it is determined that both end positions are present, it is possible to detect the presence or absence of the seal material 41 based on the portions of the seal material 41 that are always imaged dark. When both ends in the width direction are not detected, the inspection point is determined to be a seal break, so that a seal break, which is a defective application state of the sealing material 41, can be automatically detected by image processing, which is an unprecedented superiority. An effective seal inspection system can be provided.

【0070】また、検査幅の両端がワーク接合面40上
に設定されたため、処理装置が、画像データ上に予め定
められた検査ポイントを中心とした検査幅部分の画素位
置を検索すると、この検査幅の両端位置は接合面40上
の画素となり、このため、濃度変化値を求める上で基準
となる階調値を接合面40上の階調値とすることがで
き、従って、接合面40の濃度値が照明によって変化し
た場合でも、この変化した濃度値を基準としてシール材
41の検出を行うことができ、このため、シール材41
の塗布状態の検査を検査環境の変化の影響を受けずに安
定して行うことができる。
Further, since both ends of the inspection width are set on the work bonding surface 40, when the processing apparatus searches the image data for a pixel position of the inspection width portion centered on a predetermined inspection point, this inspection is performed. Both end positions of the width are pixels on the bonding surface 40. Therefore, a grayscale value on the bonding surface 40 can be used as a reference grayscale value for obtaining a density change value. Even when the density value changes due to illumination, the seal material 41 can be detected based on the changed density value.
Can be inspected stably without being affected by changes in the inspection environment.

【0071】更に、塗布幅算出機能が、両サイド検出機
能によって検出された幅方向両端位置に基づいて当該検
査ポイントでのシール材の幅を算出するため、撮象した
接合面40上のシール材41の幅を画素数として算出す
ることができ、しかも、この画素は、実際の接合面40
上の大きさと対応するため、当該画素数に基づいて接合
面40上のシール材41の塗布幅を算出することがで
き、しかも、塗布幅エラー算出機能が、この塗布幅算出
機能によって算出された塗布幅が予め定められた最小設
定幅よりも小さい場合に当該検査ポイントについて塗布
幅エラーと判定するため、画素数の比較という高速に行
える画像処理によって塗布幅の状態を判定することがで
きる。
Further, since the coating width calculating function calculates the width of the sealing material at the inspection point based on the both end positions in the width direction detected by the both-side detecting function, the sealing material on the joint surface 40 photographed is used. 41 can be calculated as the number of pixels.
In order to correspond to the above size, the application width of the sealing material 41 on the bonding surface 40 can be calculated based on the number of pixels, and the application width error calculation function is calculated by the application width calculation function. When the application width is smaller than the predetermined minimum setting width, the inspection point is determined to be an application width error. Therefore, the state of the application width can be determined by high-speed image processing of comparing the number of pixels.

【0072】また、塗布幅のエラーが複数の検査ポイン
トで連続して生じた場合に塗布状態の不良と判定するた
め、接合時に必要な量のシール材41が塗布されていな
い場合を接合面40の形状等に応じて良好に検知するこ
とができ、しかも、複数の検査ポイントで連続して生じ
た場合に塗布状態の不良と判定すると、1つの検査ポイ
ントでノイズ等により塗布幅のエラーと誤判定された場
合でも、これを塗布状態の不良と判定しないため、ノイ
ズの影響を受けずに塗布状態の不良を判定することがで
きる。
In order to judge that the coating state is defective when an error in the coating width occurs continuously at a plurality of inspection points, the case where the necessary amount of the sealing material 41 is not applied at the time of bonding is determined by using the bonding surface 40. Can be detected satisfactorily according to the shape and the like of the application, and when it is determined that the application state is defective when the inspection occurs continuously at a plurality of inspection points, an error in the application width due to noise or the like is detected at one inspection point. Even when the determination is made, this is not determined as a defective application state, so that the defective application state can be determined without being affected by noise.

【0073】更に、ずれ量算出機能が、両サイド検出機
能によって検出された幅方向両端位置と検査ポイントの
位置とに基づいて塗布位置のずれ量を判定するため、予
め定められた検査ポイントの位置から実際に塗布された
シール材41のずれ量を画素数として定量的に判定する
ことができる、という従来にない優れた効果を奏するシ
ール検査システムを提供することがでる。
Further, the shift amount calculating function determines the shift amount of the coating position based on the width-direction both end positions detected by the both-side detection function and the position of the inspection point. Thus, it is possible to provide a seal inspection system having an unprecedented excellent effect that the shift amount of the seal material 41 actually applied can be quantitatively determined as the number of pixels.

【0074】また、処理装置は、塗布状態判定機能が、
塗布ずれエラーが複数の検査ポイントで連続して発生し
た時に塗布状態の不良と判定するため、1つの検査ポイ
ントでのノイズ等による影響を受けずに塗布状態の判定
を行うことができる、という従来にない優れた効果を奏
するシール検査システムを提供することがでる。
Further, the processing apparatus has a coating state determining function,
Conventionally, the application state is determined without being affected by noise or the like at one inspection point because it is determined that the application state is defective when an application error occurs continuously at a plurality of inspection points. It is possible to provide a seal inspection system that has an excellent effect that cannot be obtained.

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

【図1】本発明に係るシール検査システムの一実施例を
示すブロック構成図である。
FIG. 1 is a block diagram showing an embodiment of a seal inspection system according to the present invention.

【図2】前記シール検査システムの検査フローチャート
である。
FIG. 2 is an inspection flowchart of the seal inspection system.

【図3】シール検査ポイントの概略平面図である。FIG. 3 is a schematic plan view of a seal inspection point.

【図4】(A)〜(D)は撮像データを二値化してシー
ル検査を行う従来例の説明図である。
FIGS. 4A to 4D are explanatory views of a conventional example in which image data is binarized and a seal inspection is performed.

【符号の説明】[Explanation of symbols]

12 CCDカメラ 15 ディジタイザ 17 画像メモリ 25 処理装置としてのマイクロコンピュータ 40 接合面 41 シール材 12 CCD camera 15 Digitizer 17 Image memory 25 Microcomputer as processing device 40 Joining surface 41 Sealing material

フロントページの続き (72)発明者 岡本 裕幸 島根県松江市西生馬町14−4 松江工業 高等専門学校内 (56)参考文献 特開 平5−5606(JP,A) 特開 平5−26621(JP,A) 特開 平6−58732(JP,A) (58)調査した分野(Int.Cl.7,DB名) G01N 21/84 - 21/958 G01B 11/00 - 11/30 G06T 1/00 Continuation of the front page (72) Inventor Hiroyuki Okamoto 14-4, Nishi-Imamachi, Matsue-shi, Shimane Matsue College of Technology (56) References JP-A-5-5606 (JP, A) JP-A-5-26621 ( JP, A) JP-A-6-58732 (JP, A) (58) Fields investigated (Int. Cl. 7 , DB name) G01N 21/84-21/958 G01B 11/00-11/30 G06T 1 / 00

Claims (7)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 シール材が塗布されたワーク接合面を撮
像する手段と、この撮像手段で取り込まれたデータを画
像データとして記憶する画像メモリと、この画像メモリ
に接続されるとともに前記画像データに対して濃淡画像
処理を行う処理装置とを備えたシール検査システムにお
いて、 前記処理装置は、前記画像データ上に予め定められた検
査ポイントを中心とした検査幅部分の画素位置を検索す
る検査部分特定機能と、前記画像データ中の前記検査幅
の両端位置から前記検査ポイントまでの画素のうち濃度
変化値が設定値以上となった画素の位置を前記シール材
の幅方向両端位置と判定する両サイド検出機能と、この
両サイド検出機能によって前記幅方向両端が検出されな
い場合に当該検査ポイントについてシール切れ目と判定
する切れ目エラー判定機能とを備えたことを特徴とする
シール検査システム。
1. A means for capturing an image of a workpiece joint surface to which a seal material has been applied, an image memory for storing data taken in by the image capturing means as image data, and a memory connected to the image memory and for storing the image data. A processing unit for performing a grayscale image processing on the seal inspection system, wherein the processing device specifies an inspection portion for searching for a pixel position of an inspection width portion centered on a predetermined inspection point on the image data. A function and both sides for determining the position of a pixel whose density change value is equal to or larger than a set value among pixels from both end positions of the inspection width to the inspection point in the image data as both end positions in the width direction of the sealing material. A detection function, and a cut that is determined to be a seal break for the inspection point when both ends in the width direction are not detected by the both-side detection function. Seal inspection system is characterized in that a color determination function.
【請求項2】 前記処理装置は、前記切れ目エラーが複
数の検査ポイントで連続して発生した時に塗布状態の不
良と判定する塗布状態判定機能を備えたことを特徴とす
る請求項1記載のシール検査システム。
2. The seal according to claim 1, wherein the processing device has a coating state determining function for determining that the coating state is defective when the break error occurs continuously at a plurality of inspection points. Inspection system.
【請求項3】 前記検査ポイントが、正常に塗布された
シール材の幅方向の中心に設定されるとともに、前記検
査幅の両端が、前記ワーク接合面上に設定されたことを
特徴とする請求項1記載のシール検査システム。
3. The inspection point is set at the center in the width direction of the normally applied sealing material, and both ends of the inspection width are set on the work bonding surface. Item 2. The seal inspection system according to Item 1.
【請求項4】 前記処理装置は、前記両サイド検出機能
によって検出された幅方向両端位置に基づいて当該検査
ポイントでのシール材の幅を算出する塗布幅算出機能
と、この塗布幅算出機能によって算出された塗布幅が予
め定められた最小設定幅よりも小さい場合に当該検査ポ
イントについて塗布幅エラーと判定する塗布幅エラー判
定機能とを備えたことを特徴とする請求項1,2又は3
記載のシール検査システム。
4. An application width calculation function for calculating a width of a sealing material at the inspection point based on the width direction both end positions detected by the both side detection functions, 4. An application width error determination function for determining an application width error for the inspection point when the calculated application width is smaller than a predetermined minimum set width.
The seal inspection system described.
【請求項5】 前記処理装置は、前記塗布幅エラーが複
数の検査ポイントで連続して発生した時に塗布状態の不
良と判定する塗布状態判定機能を備えたことを特徴とす
る請求項4記載のシール検査システム。
5. The processing apparatus according to claim 4, wherein the processing apparatus has a coating state determining function for determining that the coating state is defective when the coating width error occurs continuously at a plurality of inspection points. Seal inspection system.
【請求項6】 前記処理装置は、前記両サイド検出機能
によって検出された幅方向両端位置と前記検査ポイント
の位置とに基づいて塗布位置のずれ量を判定するずれ量
算出機能と、このずれ量算出機能によって算出されたず
れ量が予め定められた設定ずれ量よりも大きい場合に当
該検査ポイントについてずれエラーと判定するずれエラ
ー判定機能とを備えたことを特徴とする請求項1,2又
は3記載のシール検査システム。
6. A shift amount calculating function for determining a shift amount of a coating position based on both end positions in the width direction detected by the both side detection functions and a position of the inspection point, and the processing unit includes: 4. The apparatus according to claim 1, further comprising: a shift error determining function for determining a shift error for the inspection point when the shift amount calculated by the calculating function is larger than a predetermined shift amount. The seal inspection system described.
【請求項7】 前記処理装置は、前記塗布ずれエラーが
複数の検査ポイントで連続して発生した時に塗布状態の
不良と判定する塗布状態判定機能を備えたことを特徴と
する請求項6記載のシール検査システム。
7. The processing apparatus according to claim 6, wherein the processing apparatus has a coating state determining function for determining that the coating state is defective when the coating shift error occurs continuously at a plurality of inspection points. Seal inspection system.
JP16808395A 1995-06-09 1995-06-09 Seal inspection system Expired - Fee Related JP3288902B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP16808395A JP3288902B2 (en) 1995-06-09 1995-06-09 Seal inspection system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP16808395A JP3288902B2 (en) 1995-06-09 1995-06-09 Seal inspection system

Publications (2)

Publication Number Publication Date
JPH08334478A JPH08334478A (en) 1996-12-17
JP3288902B2 true JP3288902B2 (en) 2002-06-04

Family

ID=15861538

Family Applications (1)

Application Number Title Priority Date Filing Date
JP16808395A Expired - Fee Related JP3288902B2 (en) 1995-06-09 1995-06-09 Seal inspection system

Country Status (1)

Country Link
JP (1) JP3288902B2 (en)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3781618B2 (en) * 2000-09-04 2006-05-31 ダイハツ工業株式会社 Measuring method of coating displacement
JP3858633B2 (en) * 2001-06-25 2006-12-20 松下電器産業株式会社 Bonding state inspection method
JP2009036705A (en) * 2007-08-03 2009-02-19 Sanyu Kogyo Kk Robot following type image inspection device
JP2012237679A (en) * 2011-05-12 2012-12-06 Ihi Corp Device and method for inspecting coated state, and program
JP5661833B2 (en) 2013-02-28 2015-01-28 ファナック株式会社 Appearance inspection apparatus and appearance inspection method for an object including a linear pattern
JP6147118B2 (en) * 2013-07-02 2017-06-14 株式会社キーレックス Sealer applicator
CN104359915B (en) 2014-12-08 2017-05-10 合肥京东方光电科技有限公司 Coated glue detection method and device
JP6550240B2 (en) * 2015-03-05 2019-07-24 トヨタ自動車九州株式会社 Coating agent inspection method, coating agent inspection device, coating agent inspection program, and computer readable recording medium recording the program
JP6322663B2 (en) * 2016-03-28 2018-05-09 株式会社Subaru Bonding structure of molded resin composition
JP6262382B2 (en) * 2017-02-28 2018-01-17 株式会社キーレックス Sealer applicator
JP6883458B2 (en) * 2017-03-31 2021-06-09 大和ハウス工業株式会社 Diagnostic method for amorphous sealant
JP6965693B2 (en) 2017-10-30 2021-11-10 オムロン株式会社 Image processing equipment, image processing methods, and image processing programs
JP7137439B2 (en) * 2018-11-02 2022-09-14 株式会社安永 Inspection device, inspection method, and inspection program

Also Published As

Publication number Publication date
JPH08334478A (en) 1996-12-17

Similar Documents

Publication Publication Date Title
JP3288902B2 (en) Seal inspection system
KR100759950B1 (en) Device and method for inspection external appearance
WO2007062563A1 (en) On-line automatic inspection method for detecting surface flaws of steel during the pretreatment of the ship steel
CN110208269B (en) Method and system for distinguishing foreign matters on surface of glass from foreign matters inside glass
JPH06347419A (en) Installed part inspecting device
JP2501076B2 (en) Fastener-Automatic inspection method and inspection device
KR101766884B1 (en) Inspection Method for applying sealer
JPH1010054A (en) Inspection device for surface defect
JP2508176B2 (en) Automatic surface smoothness inspection device
JPH11223608A (en) Film inspecting method, and film inspecting device using the same
JPH08145848A (en) Apparatus for inspection of defect of liquid crystal panel
JP2005172488A (en) Coated state inspection apparatus
JPH06118026A (en) Method for inspecting vessel inner surface
JPH0650904A (en) Method for correcting size of surface defect
JPH03194406A (en) End part position detecting device for object
JP2638121B2 (en) Surface defect inspection equipment
JP2000205846A (en) Device and method for inspecting painting for unevenness
JP2000121495A (en) Screen inspection method
JPH08159984A (en) Pattern irregularity inspecting apparatus
JP2001013081A (en) Method and device for inspecting tire
JPH09321500A (en) Appearance inspecting method in soldered state
JP2536745B2 (en) PCB cut condition inspection method
JP2581133B2 (en) Automatic inspection system for coating smoothness
JPH01210807A (en) Automatic inspecting device for smoothness of paint film
JPH05180621A (en) Apparatus for inspecting seal of top face of bottle opening

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20020226

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

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

Free format text: PAYMENT UNTIL: 20080315

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20090315

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20090315

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20100315

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20100315

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20110315

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20110315

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20120315

Year of fee payment: 10

LAPS Cancellation because of no payment of annual fees