JPH0658727A - Method and equipment for teaching of image inspecting apparatus - Google Patents

Method and equipment for teaching of image inspecting apparatus

Info

Publication number
JPH0658727A
JPH0658727A JP21132292A JP21132292A JPH0658727A JP H0658727 A JPH0658727 A JP H0658727A JP 21132292 A JP21132292 A JP 21132292A JP 21132292 A JP21132292 A JP 21132292A JP H0658727 A JPH0658727 A JP H0658727A
Authority
JP
Japan
Prior art keywords
color
reference range
inspection target
inspection
screen position
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.)
Granted
Application number
JP21132292A
Other languages
Japanese (ja)
Other versions
JP3220526B2 (en
Inventor
Yasutaka Iwata
康孝 岩田
Kazuhiro Ikurumi
和宏 王生
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP21132292A priority Critical patent/JP3220526B2/en
Publication of JPH0658727A publication Critical patent/JPH0658727A/en
Application granted granted Critical
Publication of JP3220526B2 publication Critical patent/JP3220526B2/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)

Abstract

PURPOSE:To enable automation of a teaching operation by a method wherein a color distribution at a small image plane position wherefrom the color distribution at an image plane position adjacent to an object of inspection is removed is set as a color extraction reference range for the image plane position of the object of inspection and this is so stored in a color extraction reference range table memory as to correspond to address data. CONSTITUTION:A color extraction reference range table memory 6 is taught color extraction reference range data for image plane positions 19 and 21 of objects of inspection. A color distribution extracted in a color distribution extracting part 7 is subjected to a dispersion processing, so as to prepare color distribution data 20'' on a small image plane position 20 including the image plane position 19 of the object of inspection of a color image 22 of the object of inspection and the image plane position 23 adjacent to the object of inspection and on a small image plane position 20' including the image plane position 21 of the object of inspection and image plane positions 24 and 25 adjacent thereto, and also color distribution data 23' to 25' on the adjacent image plane positions 23 to 25. These data are stored in a color distribution memory 8, together with address data 15, the color distribution data on the adjacent image planes are removed therefrom in a color extraction reference range setting part 9, and the data thus processed are taught the table memory 6.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、画像検査装置に対する
判定基準のティーチング方法とティーチング装置に関
し、特に、色情報を使用する画像検査装置に対する判定
基準のティーチング方法とティーチング装置に関するも
のである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a teaching method and a teaching device of a criterion for an image inspection device, and more particularly to a teaching method and a teaching device of a criterion for an image inspection device using color information.

【0002】[0002]

【従来の技術】従来から、電子機器生産の実装工程にお
いて、印刷されたクリーム半田の位置や形状を測定し、
部品の位置や形状を測定して、部品の位置合わせを行っ
たり、部品や製品の良否判定等を行うために、画像認識
による検査が広く使用されている。
2. Description of the Related Art Conventionally, in the mounting process of electronic device production, the position and shape of printed cream solder are measured,
2. Description of the Related Art Inspection based on image recognition is widely used to measure the position and shape of a component, align the component, and determine the quality of a component or a product.

【0003】そして、濃淡画像データより情報数が多い
色画像データの色情報を使用した検査方法が一般化して
いる。
An inspection method using the color information of the color image data, which has a larger number of information than the grayscale image data, has been generalized.

【0004】画像検査装置に、この色画像データの色情
報を使用した検査を行わせるためには、先ず、画像検査
装置の色抽出基準範囲テーブル・メモリに、検査対象物
の色画像データから抽出するべき色範囲を規定する色抽
出基準範囲をティーチングしておく必要がある。
In order for the image inspection apparatus to perform the inspection using the color information of the color image data, first, the color extraction reference range table memory of the image inspection apparatus extracts the color image data of the inspection object. It is necessary to teach the color extraction reference range that defines the color range to be performed.

【0005】画像検査装置の従来例のティーチング方法
とこの方法を使用するティーチング装置を図4に基づい
て説明する。
A conventional teaching method of an image inspection apparatus and a teaching apparatus using this method will be described with reference to FIG.

【0006】図4は、画像検査装置の従来例のティーチ
ング方法を使用するティーチング装置の構成を示すブロ
ック図である。
FIG. 4 is a block diagram showing the structure of a teaching device that uses a conventional teaching method for an image inspection device.

【0007】図4に示すように、従来例のティーチング
装置は、検査対象物の画面位置発生部3と、撮像され任
意のルートを介して順次送られてくる検査対象物の色画
像データを記憶する画像メモリ2と、手作業ティーチン
グ操作部1と、色抽出基準範囲テーブル・メモリ6とを
有する。
As shown in FIG. 4, the teaching device of the conventional example stores the screen position generating unit 3 of the inspection object and the color image data of the inspection object which is picked up and sequentially sent through an arbitrary route. Image memory 2, a manual teaching operation unit 1, and a color extraction reference range table memory 6.

【0008】次に、図4に基づいて、従来例のティーチ
ング方法を説明する。
Next, a conventional teaching method will be described with reference to FIG.

【0009】図4において、これまで使用していた色抽
出基準範囲が変更し、ティーチングが必要になった場合
に、先ず、検査対象物の画面位置発生部3から、検査対
象物の色画像データの検査対象画面位置の指示4を、画
像メモリ2に対して発生する。画像メモリ2は、前記指
示4を受けて、指示された検査対象画面位置の画像デー
タ5を手作業ティーチング操作部1に送る。手作業ティ
ーチング操作部1では、送られて来た検査対象画面位置
の画像データ5の色分布を色抽出作業で抽出し、抽出し
たこの色分布を色抽出基準範囲として設定し、この色抽
出基準範囲を色抽出基準範囲テーブル・メモリ6にティ
ーチングしている。
In FIG. 4, when the color extraction reference range that has been used so far is changed and teaching is required, first, from the screen position generating section 3 of the inspection object, the color image data of the inspection object is displayed. The instruction 4 of the inspection target screen position is generated for the image memory 2. Upon receiving the instruction 4, the image memory 2 sends the image data 5 at the instructed screen position to be inspected to the manual teaching operation unit 1. In the manual teaching operation unit 1, the color distribution of the image data 5 at the inspection target screen position that has been sent is extracted by color extraction work, and this extracted color distribution is set as a color extraction reference range. The range is taught in the color extraction reference range table memory 6.

【0010】[0010]

【発明が解決しようとする課題】上記の従来例の画像検
査装置のティーチング方法とティーチング装置の色抽出
基準範囲の設定方法は、検査対象物の色画像データの検
査対象画面位置の色分布を色抽出作業で測定・抽出し、
これを色抽出基準範囲として設定する方法である。しか
し、検査対象画面位置の色分布と検査対象隣接画面位置
の色分布とは、完全に分離していることは無く、これら
の色分布の一部が互いに重なり合っている場合が多く、
検査対象画面位置と検査対象隣接画面位置のアドレスデ
ータで機械的に、検査対象画面位置の色分布を測定・抽
出すると、抽出した検査対象画面位置の色分布の中に
は、検査対象画面位置にのみ含まれている色だけではな
く、検査対象隣接画面位置にある色の一部が含まれ、検
査の誤差要因になるので、手作業による補正が必要であ
る。このことの為に、前記色抽出作業における色分布測
定の自動化が困難であり、手作業で行われている。従っ
て、検査対象物のロット変更や設計変更等により、色抽
出基準範囲の変更が必要になった場合、又は、カメラや
照明の経時変化によって、色抽出基準範囲の変更が必要
になった場合に、色抽出基準範囲設定の手作業が必要
で、作業者に負担がかかり、設定に時間がかかるという
問題点がある。
The teaching method of the image inspection apparatus and the method of setting the color extraction reference range of the teaching apparatus according to the above-described conventional examples use the color distribution of the inspection object screen position of the color image data of the inspection object as a color distribution. Measure and extract in extraction work,
This is a method of setting this as a color extraction reference range. However, the color distribution of the inspection target screen position and the color distribution of the inspection target adjacent screen position are not completely separated, and in many cases, some of these color distributions overlap each other,
When the color distribution of the inspection target screen position is mechanically measured and extracted by the address data of the inspection target screen position and the inspection target adjacent screen position, the inspection target screen position is included in the extracted color distribution of the inspection target screen position. Not only the colors included but also a part of the colors in the adjacent screen position of the inspection target are included, which causes an error in the inspection, and thus manual correction is necessary. Because of this, it is difficult to automate the color distribution measurement in the color extraction work, and it is performed manually. Therefore, when it is necessary to change the color extraction reference range due to a lot change or design change of the inspection object, or when it is necessary to change the color extraction reference range due to the change over time of the camera or lighting. However, there is a problem that a manual work for setting the color extraction reference range is required, which puts a burden on the operator and takes a long time for the setting.

【0011】又、上記のように、手作業の作業負担と時
間がかかるだけでは無く、手作業による補正では、色抽
出作業における判断に個人差が生じ、この方法で抽出さ
れた色分布にバラツキが発生するので、この色分布を基
準にした色抽出基準範囲にもバラツキが発生し、検査の
精度や信頼性が良くないという問題点がある。
Further, as described above, not only is the work burden and time required for manual work, but manual correction causes individual differences in judgment in color extraction work, resulting in variations in the color distribution extracted by this method. As a result, the color extraction reference range based on this color distribution also varies, and the accuracy and reliability of the inspection are not good.

【0012】本発明は、上記の問題点を解決し、ティー
チング作業の自動化を可能にし、ティーチングの作業負
担を解消し、ティーチングの作業時間を短縮し、色抽出
基準範囲のバラツキを解消できる画像検査装置のティー
チング方法とティーチング装置を提供することを課題と
している。
The present invention solves the above problems, makes it possible to automate teaching work, reduces the work load of teaching, shortens the working time of teaching, and eliminates variations in the color extraction reference range. It is an object to provide a teaching method for a device and a teaching device.

【0013】[0013]

【課題を解決するための手段】本発明の画像検査装置の
ティーチング方法は、上記の課題を解決するために、色
画像データから検査対象部分が有する特定の色を抽出し
て検査する画像検査のために検査対象物の検査対象部分
の特定の色を規定した色抽出基準範囲を記憶している色
抽出基準範囲テーブル・メモリを有し、この色抽出基準
範囲テーブル・メモリから使用するべき色抽出基準範囲
を順次読出し、撮像され任意のルートを介して順次送ら
れてくる検査対象物の色画像データから前記使用するべ
き色抽出基準範囲の色を抽出し、この抽出された前記使
用するべき色抽出基準範囲の色画像データに基づいて検
査を行う画像検査装置の前記色抽出基準範囲テーブル・
メモリに、記憶するべき色抽出基準範囲をティーチング
する画像検査装置のティーチング方法において、検査対
象物の色画像データの検査対象画面位置とこの検査対象
画面位置に隣接する検査対象隣接画面位置とを含む小画
面位置の色分布と、前記検査対象隣接画面位置の色分布
とを抽出し、前記小画面位置の色分布から前記検査対象
隣接画面位置の色分布を除去したものを、前記検査対象
物の前記検査対象画面位置の色抽出基準範囲として設定
し、これを前記色抽出基準範囲テーブル・メモリにアド
レスデータと対応させて記憶させることを特徴とする。
In order to solve the above-mentioned problems, the teaching method of the image inspection apparatus of the present invention is an image inspection method for extracting and inspecting a specific color of a portion to be inspected from color image data. Has a color extraction reference range table memory that stores a color extraction reference range that defines a specific color of the inspection target portion of the inspection target, and the color extraction to be used from this color extraction reference range table memory The reference range is sequentially read out, the color of the color extraction reference range to be used is extracted from the color image data of the inspection object that is imaged and sequentially sent through an arbitrary route, and the extracted color to be used is extracted. The color extraction reference range table of the image inspection device that inspects based on the color image data of the extraction reference range.
In a teaching method of an image inspection device for teaching a color extraction reference range to be stored in a memory, an inspection target screen position of color image data of an inspection target and an inspection target adjacent screen position adjacent to the inspection target screen position are included. The color distribution of the small screen position and the color distribution of the inspection target adjacent screen position are extracted, and the one obtained by removing the color distribution of the inspection target adjacent screen position from the color distribution of the small screen position is the inspection target object. It is characterized in that it is set as a color extraction reference range of the inspection target screen position and is stored in the color extraction reference range table memory in association with address data.

【0014】本発明の画像検査装置のティーチング装置
は、上記の課題を解決するために、色画像データから検
査対象部分が有する特定の色を抽出して検査する画像検
査のために検査対象物の検査対象部分の特定の色を規定
した色抽出基準範囲を記憶している色抽出基準範囲テー
ブル・メモリを有し、この色抽出基準範囲テーブル・メ
モリから使用するべき色抽出基準範囲を順次読出し、撮
像され任意のルートを介して順次送られてくる検査対象
物の色画像データから前記使用するべき色抽出基準範囲
の色を抽出し、この抽出された前記使用するべき色抽出
基準範囲の色画像データに基づいて検査を行う画像検査
装置の前記色抽出基準範囲テーブル・メモリに、記憶す
るべき色抽出基準範囲をティーチングする画像検査装置
のティーチング装置において、検査対象物の色画像デー
タの検査対象画面位置とこの検査対象画面位置に隣接す
る検査対象隣接画面位置とを含む小画面位置の色分布
と、前記検査対象隣接画面位置の色分布とを抽出する色
分布抽出部と、前記小画面位置の色分布から前記検査対
象隣接画面位置の色分布を除去したものを、前記検査対
象物の前記検査対象画面位置の色抽出基準範囲として設
定し、これを前記色抽出基準範囲テーブル・メモリにア
ドレスデータと対応させて記憶させる色抽出基準範囲設
定部とを有することを特徴とする。
In order to solve the above problems, the teaching device of the image inspection apparatus of the present invention extracts the specific color of the inspection object portion from the color image data and inspects it for the image inspection object. It has a color extraction reference range table memory that stores a color extraction reference range that defines a specific color of the inspection target portion, and sequentially reads out the color extraction reference range to be used from this color extraction reference range table memory, The color image of the color extraction reference range to be used is extracted from the color image data of the inspection object which is picked up and sequentially sent through an arbitrary route, and the extracted color image of the color extraction reference range to be used. A teaching device for an image inspection device that teaches a color extraction reference range to be stored in the color extraction reference range table memory of the image inspection device that performs inspection based on data. In, the color distribution of the small screen position including the inspection target screen position of the color image data of the inspection target and the inspection target adjacent screen position adjacent to the inspection target screen position, and the color distribution of the inspection target adjacent screen position. A color distribution extraction unit to extract, the one obtained by removing the color distribution of the inspection target adjacent screen position from the color distribution of the small screen position is set as the color extraction reference range of the inspection target screen position of the inspection target, A color extraction reference range setting unit for storing this in the color extraction reference range table memory in association with the address data.

【0015】[0015]

【作用】本発明の画像検査装置のティーチング方法で
は、検査対象物の色画像データの検査対象画面位置とこ
の検査対象画面位置に隣接する検査対象隣接画面位置と
を含む小画面位置の色分布と、前記検査対象隣接画面位
置の色分布とを抽出し、前記小画面位置の色分布から前
記検査対象隣接画面位置の色分布を除去したものを、前
記検査対象物の前記検査対象画面位置の色抽出基準範囲
として設定し、これを前記色抽出基準範囲テーブル・メ
モリにアドレスデータと対応させて記憶させるので、次
の作用を有する。
According to the teaching method of the image inspection apparatus of the present invention, the color distribution of the small screen position including the inspection target screen position of the color image data of the inspection target and the inspection target adjacent screen position adjacent to this inspection target screen position, , The color distribution of the inspection target adjacent screen position is extracted, and the color distribution of the inspection target adjacent screen position is removed from the color distribution of the small screen position to obtain the color of the inspection target screen position of the inspection target. Since it is set as the extraction reference range and is stored in the color extraction reference range table memory in association with the address data, it has the following operation.

【0016】即ち、検査対象画面位置と検査対象隣接画
面位置とを含む小画面位置の色分布から、検査対象画面
位置に隣接する検査対象隣接画面位置の色分布を除去し
たものを、色抽出基準範囲としているので、検査対象画
面位置と検査対象隣接画面位置との境界線を色画像デー
タのアドレスデータによって機械的に決めて、小画面位
置の色分布と検査対象隣接画面位置の色分布とを測定
し、上記のようにして求めた色抽出基準範囲の色は、常
に、検査対象画面位置にある色のみから構成されたもの
になる。従って、自動測定が可能になり、且つ、設定す
る色抽出基準範囲のバラツキを解消できる。
That is, the color extraction standard is obtained by removing the color distribution of the inspection target adjacent screen position adjacent to the inspection target screen position from the color distribution of the small screen position including the inspection target screen position and the inspection target adjacent screen position. Since it is a range, the boundary line between the inspection target screen position and the inspection target adjacent screen position is mechanically determined by the address data of the color image data, and the color distribution of the small screen position and the color distribution of the inspection target adjacent screen position are determined. The color in the color extraction reference range that is measured and obtained as described above is always composed of only the color at the inspection target screen position. Therefore, it is possible to perform automatic measurement and eliminate variations in the set color extraction reference range.

【0017】本発明の画像検査装置のティーチング装置
は、検査対象物の色画像データの検査対象画面位置とこ
の検査対象画面位置に隣接する検査対象隣接画面位置と
を含む小画面位置の色分布と、前記検査対象隣接画面位
置の色分布とを抽出する色分布抽出部と、前記小画面位
置の色分布から前記検査対象隣接画面位置の色分布を除
去したものを、前記検査対象物の前記検査対象画面位置
の色抽出基準範囲として設定し、これを前記色抽出基準
範囲テーブル・メモリにアドレスデータと対応させて記
憶させる色抽出基準範囲設定部とを有するので、次の作
用がある。
The teaching device of the image inspection apparatus according to the present invention has a color distribution of a small screen position including the inspection target screen position of the color image data of the inspection target and the inspection target adjacent screen position adjacent to the inspection target screen position. A color distribution extracting unit that extracts the color distribution of the inspection target adjacent screen position, and the color distribution of the small screen position from which the color distribution of the inspection target adjacent screen position is removed, The color extraction reference range setting unit for setting the color extraction reference range of the target screen position and storing it in the color extraction reference range table memory in association with the address data has the following operation.

【0018】即ち、検査対象画面位置と検査対象隣接画
面位置とを含む小画面位置の色分布から、検査対象画面
位置に隣接する検査対象隣接画面位置の色分布を除去し
たものを、色抽出基準範囲としているので、検査対象画
面位置と検査対象隣接画面位置との境界線を色画像デー
タのアドレスデータによって機械的に決めて、検査対象
画面位置の色分布と検査対象隣接画面位置の色分布とを
測定し、上記のようにして求めた色抽出基準範囲の色
は、常に、検査対象画面位置にある色のみから構成され
たものになる。従って、自動測定が可能になり、且つ、
設定する色抽出基準範囲のバラツキを解消できる。
That is, a color extraction standard is obtained by removing the color distribution of the inspection target adjacent screen position adjacent to the inspection target screen position from the color distribution of the small screen position including the inspection target screen position and the inspection target adjacent screen position. Since it is a range, the boundary line between the inspection target screen position and the inspection target adjacent screen position is mechanically determined by the address data of the color image data to determine the color distribution of the inspection target screen position and the color distribution of the inspection target adjacent screen position. Is measured and the color in the color extraction reference range obtained as described above is always composed of only the color in the inspection target screen position. Therefore, automatic measurement is possible, and
It is possible to eliminate variations in the set color extraction reference range.

【0019】[0019]

【実施例】本発明の画像検査装置のティーチング方法の
一実施例方法を使用した画像検査装置のティーチング装
置の一実施例を図1に基づいて説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS One embodiment of a teaching method for an image inspecting apparatus according to the present invention An embodiment of a teaching apparatus for an image inspecting apparatus using the method will be described with reference to FIG.

【0020】図1において、制御部13が、検査対象画
面位置データ14や検査対象隣接画面位置データ14′
を画面位置発生部3に送り、アドレスデータ15を色分
布メモリ8に送り、色抽出基準範囲テーブル指定データ
16をテーブル指定メモリ17に送ることによって、画
像検査装置のティーチング作業全体を制御している。
In FIG. 1, the control unit 13 controls the inspection target screen position data 14 and the inspection target adjacent screen position data 14 '.
Is sent to the screen position generator 3, the address data 15 is sent to the color distribution memory 8, and the color extraction reference range table designation data 16 is sent to the table designation memory 17, thereby controlling the entire teaching work of the image inspection apparatus. .

【0021】画面位置発生部3は、各種の画面位置デー
タ4を画像メモリ2に送る。
The screen position generator 3 sends various screen position data 4 to the image memory 2.

【0022】画像メモリ2は、撮像され任意のルートを
介して順次送られてくる検査対象物の色画像データを記
憶すると共に、制御部13から、画面位置発生部3を介
して画面位置発生部3の画面位置データと対応して受け
た、検査対象画面位置と検査対象隣接画面位置とを含む
小画面位置データ14″や検査対象隣接画面位置データ
14′に基づいて、小画面位置データ14″や検査対象
隣接画面位置データ14′に対応する色画像データ5を
色分布抽出部7に送る。色分布抽出部7は、色画像デー
タ5から色分布を抽出し、分散処理して色分布データ1
0を作成し、これを色分布メモリ8に送る。色分布メモ
リ8は、色分布データ10と制御部13からのアドレス
データ15とを、小画面位置の色分布データ11と検査
対象隣接画面位置の色分布データ11′として色抽出基
準範囲設定部9に送る。色抽出基準範囲設定部9は、送
られて来た小画面位置の色分布データ11から検査対象
隣接画面位置の色分布データ11′を除去して、検査対
象画面位置の色抽出基準範囲データ12を設定し、これ
を色抽出基準範囲テーブル・メモリ6にティーチングす
る。色抽出基準範囲テーブル・メモリ6はこのティーチ
ングを受けて、色抽出基準範囲データ12を記憶する。
画像検査装置が画像認識による検査を行う場合には、前
記テーブル指定メモリ17からテーブル指示データ18
を色抽出基準範囲テーブル・メモリ6に送り、色抽出基
準範囲テーブル・メモリ6からテーブル指示データ18
に基づく色抽出基準範囲データを読み出して、画像認識
による検査を行う。
The image memory 2 stores the color image data of the inspection object which is picked up and sequentially sent through an arbitrary route, and from the control unit 13 through the screen position generating unit 3 the screen position generating unit. Based on the small screen position data 14 ″ including the inspection target screen position and the inspection target adjacent screen position and the inspection target adjacent screen position data 14 ′ received corresponding to the screen position data of No. 3, the small screen position data 14 ″. The color image data 5 corresponding to the inspection target adjacent screen position data 14 'is sent to the color distribution extraction unit 7. The color distribution extraction unit 7 extracts a color distribution from the color image data 5 and performs a dispersion process to perform the color distribution data 1
0 is created and sent to the color distribution memory 8. The color distribution memory 8 uses the color distribution data 10 and the address data 15 from the control unit 13 as the color distribution data 11 at the small screen position and the color distribution data 11 ′ at the adjacent screen position to be inspected as the color extraction reference range setting unit 9. Send to. The color extraction reference range setting unit 9 removes the color distribution data 11 ′ of the inspection target adjacent screen position from the sent color distribution data 11 of the small screen position to obtain the color extraction reference range data 12 of the inspection target screen position. Is set and the color extraction reference range table memory 6 is taught. Upon receiving this teaching, the color extraction reference range table memory 6 stores the color extraction reference range data 12.
When the image inspection apparatus performs an inspection by image recognition, the table designation memory 17 to the table instruction data 18
Is sent to the color extraction reference range table memory 6 and the table instruction data 18 from the color extraction reference range table memory 6 is sent.
The color extraction reference range data based on is read and an inspection by image recognition is performed.

【0023】次に、本実施例の動作を図1〜図3に基づ
いて説明する。
Next, the operation of this embodiment will be described with reference to FIGS.

【0024】図2は、検査対象物であるクリーム半田印
刷された電子回路用基板の色画像22の検査対象クリー
ム半田印刷部が位置する検査対象画面位置19、21
と、前記検査対象クリーム半田印刷部の周囲にある各種
構成品が位置する検査対象隣接画面位置23、24、2
5とを示す。順次送られて来る検査対象物の色画像22
の画像認識による検査を行う前に、検査対象画面位置1
9、21に対する色抽出基準範囲データ12(図1)を
色抽出基準範囲テーブル・メモリ6(図1)にティーチ
ングする。このティーチング動作では、上記の図1の説
明のようにして、色分布抽出部7において、抽出した色
分布を分散処理して、検査対象物(電子回路用基板)の
色画像22の検査対象画面位置19(クリーム半田印刷
部)と検査対象隣接画面位置23(クリーム半田印刷部
の周囲にある各種構成品)とを含む小画面位置20及び
検査対象画面位置21(クリーム半田印刷部)と検査対
象隣接画面位置24、25(クリーム半田印刷部の周囲
にある各種構成品)とを含む小画面位置20′の色分布
データ20″(図1の11)と、検査対象隣接画面位置
23、24、25(クリーム半田印刷部の周囲にある各
種構成品)の色分布データ23′、24′、25′(図
1の11′)とを作成する。これらのデータは、一旦、
色分布メモリ8に記憶され、制御部13からのアドレス
データ15と共に、図3の小画面位置20と20′の色
分布データ20″(図1の11)、図3の検査対象隣接
画面位置23、24、25の色情報分布データ23′、
24′、25′(図1の11′)として、色抽出標準分
布範囲設定部9に送られる。色抽出基準範囲設定部9で
は、図3の小画面位置20と20′の色分布データ2
0″(図1の11)から、図3の検査対象隣接画面位置
23、24、25の色情報分布データ23′、24′、
25′(図1の11′)を除去して、図3の検査対象画
面位置19、21の色抽出基準範囲データ26(図1の
12)を作成し、これを色抽出基準範囲テーブル・メモ
リ6にティーチングする。
FIG. 2 shows inspection target screen positions 19 and 21 at which the inspection target cream solder printing portion of the color image 22 of the electronic circuit board on which the cream solder is printed, which is the inspection object, is located.
And adjacent inspection target screen positions 23, 24, 2 where various components around the inspection target cream solder printing section are located.
5 and 5 are shown. Color image 22 of the inspection object sent in sequence
Before the inspection by the image recognition of the
The color extraction reference range data 12 (FIG. 1) for 9 and 21 is taught to the color extraction reference range table memory 6 (FIG. 1). In this teaching operation, as described above with reference to FIG. 1, in the color distribution extraction unit 7, the extracted color distribution is subjected to dispersion processing, and the inspection target screen of the color image 22 of the inspection target (electronic circuit board) is displayed. Small screen position 20 including position 19 (cream solder printing part) and inspection target adjacent screen position 23 (various components around the cream solder printing part) and inspection target screen position 21 (cream solder printing part) and inspection target Color distribution data 20 ″ (11 in FIG. 1) of a small screen position 20 ′ including adjacent screen positions 24 and 25 (various components around the cream solder printing portion), and inspection target adjacent screen positions 23 and 24, Color distribution data 23 ', 24', 25 '(11' in FIG. 1) of 25 (various components around the cream solder printing portion) are created.
The color distribution memory 8 stores the color distribution data 20 ″ (11 in FIG. 1) of the small screen positions 20 and 20 ′ of FIG. 3 and the inspection target adjacent screen position 23 of FIG. 3 together with the address data 15 from the control unit 13. , 24, 25 color information distribution data 23 ',
24 'and 25' (11 'in FIG. 1) are sent to the color extraction standard distribution range setting unit 9. In the color extraction reference range setting unit 9, the color distribution data 2 at the small screen positions 20 and 20 'in FIG.
0 ″ (11 in FIG. 1), the color information distribution data 23 ′, 24 ′ at the inspection target adjacent screen positions 23, 24, 25 in FIG.
25 '(11' in FIG. 1) is removed to create color extraction reference range data 26 (12 in FIG. 1) at the inspection target screen positions 19 and 21 in FIG. Teaching to 6.

【0025】本発明の画像検査装置のティーチング方法
とその装置は、上記の実施例に限らず種々の態様が可能
である。例えば、検査対象物の色画像22の検査対象画
面位置は、本実施例では19と21の2箇所であるが、
2箇所には限らない。図1に示す実施例の回路構成と役
割分担は、目的を達成できさえすれば自由に設計でき
る。色抽出基準範囲テーブル・メモリ6の個数は自由に
設計できる。
The teaching method for the image inspection apparatus and the apparatus therefor according to the present invention are not limited to the above-described embodiments, but various modes are possible. For example, the inspection target screen positions of the color image 22 of the inspection target are 19 and 21 in this embodiment,
It is not limited to two places. The circuit configuration and role sharing of the embodiment shown in FIG. 1 can be freely designed as long as the purpose can be achieved. The number of color extraction reference range table memories 6 can be freely designed.

【0026】[0026]

【発明の効果】本発明の画像検査装置のティーチング方
法とティーチング装置では、検査対象物の色画像データ
の検査対象画面位置とこの検査対象画面位置に隣接する
検査対象隣接画面位置とを含む小画面位置の色分布と、
前記検査対象隣接画面位置の色分布とを抽出し、前記小
画面位置の色分布から前記検査対象隣接画面位置の色分
布を除去したものを、前記検査対象物の前記検査対象画
面位置の色抽出基準範囲として設定し、これを前記色抽
出基準範囲テーブル・メモリにアドレスデータと対応さ
せて記憶させるので、次の効果を奏する。
According to the teaching method and teaching device of the image inspection apparatus of the present invention, a small screen including the inspection target screen position of the color image data of the inspection target and the inspection target adjacent screen position adjacent to this inspection target screen position. Position color distribution,
Extracting the color distribution of the inspection target adjacent screen position and removing the color distribution of the inspection target adjacent screen position from the color distribution of the small screen position is the color extraction of the inspection target screen position of the inspection target. Since it is set as a reference range and is stored in the color extraction reference range table memory in association with the address data, the following effects are obtained.

【0027】即ち、検査対象画面位置と検査対象隣接画
面位置とを含む小画面位置の色分布から、検査対象画面
位置に隣接する検査対象隣接画面位置の色分布を除去し
たものを、色抽出基準範囲としているので、検査対象画
面位置と検査対象隣接画面位置との境界線を色画像デー
タのアドレスデータによって機械的に決めて、小画面位
置の色分布と検査対象隣接画面位置の色分布とを測定
し、上記のようにして求めた色抽出基準範囲の色は、常
に、検査対象画面位置にある色のみから構成されたもの
になる。従って、自動測定が可能になり、且つ、設定す
る色抽出基準範囲のバラツキを解消できる。
That is, the color extraction standard is obtained by removing the color distribution of the inspection target adjacent screen position adjacent to the inspection target screen position from the color distribution of the small screen position including the inspection target screen position and the inspection target adjacent screen position. Since it is a range, the boundary line between the inspection target screen position and the inspection target adjacent screen position is mechanically determined by the address data of the color image data, and the color distribution of the small screen position and the color distribution of the inspection target adjacent screen position are determined. The color in the color extraction reference range that is measured and obtained as described above is always composed of only the color at the inspection target screen position. Therefore, it is possible to perform automatic measurement and eliminate variations in the set color extraction reference range.

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

【図1】本発明の画像検査装置のティーチング方法の一
実施例方法を使用した画像検査装置のティーチング装置
の一実施例のブロック図である。
FIG. 1 is a block diagram of an example of a teaching device of an image inspection apparatus using a teaching method of an image inspection apparatus of the present invention.

【図2】検査対象物の画面位置の構成図である。FIG. 2 is a configuration diagram of a screen position of an inspection object.

【図3】本実施例の色抽出基準範囲の設定動作図であ
る。
FIG. 3 is an operation diagram of setting a color extraction reference range according to this embodiment.

【図4】従来例のブロック図である。FIG. 4 is a block diagram of a conventional example.

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

2 画像メモリ 3 画面位置発生部 4 各種画面位置データ 5 色画像データ 6 色抽出基準範囲テーブル・メモリ 7 色分布抽出部 8 色分布メモリ 9 色抽出基準範囲設定部 10 色分布データ(色分布) 11、20″ 検査対象画面位置の色分布データ(色分
布) 11′、23′〜25′検査対象隣接画面位置の色分布
データ(色分布) 12、26 色抽出基準範囲データ(色抽出基準範囲) 13 制御部 14 検査対象画面位置データ 14′ 検査対象隣接画面位置データ 15 アドレスデータ 16 色抽出基準範囲テーブル指定データ 17 テーブル指定メモリ 18 テーブル指定データ
2 image memory 3 screen position generation unit 4 various screen position data 5 color image data 6 color extraction reference range table / memory 7 color distribution extraction unit 8 color distribution memory 9 color extraction reference range setting unit 10 color distribution data (color distribution) 11 , 20 ″ Color distribution data (color distribution) at the inspection target screen position 11 ′, 23 ′ to 25 ′ Color distribution data (color distribution) at the adjacent inspection target screen position 12, 26 Color extraction reference range data (Color extraction reference range) 13 control unit 14 inspection target screen position data 14 'inspection target adjacent screen position data 15 address data 16 color extraction reference range table designation data 17 table designation memory 18 table designation data

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 色画像データから検査対象部分が有する
特定の色を抽出して検査する画像検査のために検査対象
物の検査対象部分の特定の色を規定した色抽出基準範囲
を記憶している色抽出基準範囲テーブル・メモリを有
し、この色抽出基準範囲テーブル・メモリから使用する
べき色抽出基準範囲を順次読出し、撮像され任意のルー
トを介して順次送られてくる検査対象物の色画像データ
から前記使用するべき色抽出基準範囲の色を抽出し、こ
の抽出された前記使用するべき色抽出基準範囲の色画像
データに基づいて検査を行う画像検査装置の前記色抽出
基準範囲テーブル・メモリに、記憶するべき色抽出基準
範囲をティーチングする画像検査装置のティーチング方
法において、検査対象物の色画像データの検査対象画面
位置とこの検査対象画面位置に隣接する検査対象隣接画
面位置とを含む小画面位置の色分布と、前記検査対象隣
接画面位置の色分布とを抽出し、前記小画面位置の色分
布から前記検査対象隣接画面位置の色分布を除去したも
のを、前記検査対象物の前記検査対象画面位置の色抽出
基準範囲として設定し、これを前記色抽出基準範囲テー
ブル・メモリにアドレスデータと対応させて記憶させる
ことを特徴とする画像検査装置のティーチング方法。
1. A color extraction reference range defining a specific color of an inspection target portion of an inspection target is stored for image inspection in which a specific color of the inspection target portion is extracted from color image data and inspected. It has a color extraction reference range table memory that reads out the color extraction reference range to be used from this color extraction reference range table memory sequentially, and the color of the inspection object that is imaged and sent sequentially through an arbitrary route. The color extraction reference range table of the image inspection device that extracts the color of the color extraction reference range to be used from the image data and inspects based on the extracted color image data of the color extraction reference range to be used. In a teaching method of an image inspection apparatus for teaching a color extraction reference range to be stored in a memory, an inspection target screen position of color image data of an inspection target and this inspection target image. The color distribution of the small screen position including the inspection target adjacent screen position adjacent to the surface position and the color distribution of the inspection target adjacent screen position are extracted, and the inspection target adjacent screen position of the inspection target adjacent screen position is extracted from the color distribution of the small screen position. What removed the color distribution is set as a color extraction reference range of the inspection target screen position of the inspection target, and this is stored in the color extraction reference range table memory in association with address data. Teaching method for image inspection device.
【請求項2】 色画像データから検査対象部分が有する
特定の色を抽出して検査する画像検査のために検査対象
物の検査対象部分の特定の色を規定した色抽出基準範囲
を記憶している色抽出基準範囲テーブル・メモリを有
し、この色抽出基準範囲テーブル・メモリから使用する
べき色抽出基準範囲を順次読出し、撮像され任意のルー
トを介して順次送られてくる検査対象物の色画像データ
から前記使用するべき色抽出基準範囲の色を抽出し、こ
の抽出された前記使用するべき色抽出基準範囲の色画像
データに基づいて検査を行う画像検査装置の前記色抽出
基準範囲テーブル・メモリに、記憶するべき色抽出基準
範囲をティーチングする画像検査装置のティーチング装
置において、検査対象物の色画像データの検査対象画面
位置とこの検査対象画面位置に隣接する検査対象隣接画
面位置とを含む小画面位置の色分布と、前記検査対象隣
接画面位置の色分布とを抽出する色分布抽出部と、前記
小画面位置の色分布から前記検査対象隣接画面位置の色
分布を除去したものを、前記検査対象物の前記検査対象
画面位置の色抽出基準範囲として設定し、これを前記色
抽出基準範囲テーブル・メモリにアドレスデータと対応
させて記憶させる色抽出基準範囲設定部とを有すること
を特徴とする画像検査装置のティーチング装置。
2. A color extraction reference range defining a specific color of an inspection target portion of an inspection target is stored for image inspection in which a specific color of the inspection target portion is extracted from color image data and inspected. It has a color extraction reference range table memory that reads out the color extraction reference range to be used from this color extraction reference range table memory sequentially, and the color of the inspection object that is imaged and sent sequentially through an arbitrary route. The color extraction reference range table of the image inspection device that extracts the color of the color extraction reference range to be used from the image data and inspects based on the extracted color image data of the color extraction reference range to be used. In the teaching device of the image inspection device that teaches the color extraction reference range to be stored in the memory, the inspection target screen position of the color image data of the inspection target and this inspection target image. A color distribution extracting unit that extracts a color distribution of a small screen position including an inspection target adjacent screen position adjacent to a surface position and a color distribution of the inspection target adjacent screen position, and the inspection from the color distribution of the small screen position. The one obtained by removing the color distribution of the target adjacent screen position is set as the color extraction reference range of the inspection target screen position of the inspection target, and this is stored in the color extraction reference range table memory in association with the address data. A teaching device for an image inspection device, comprising:
JP21132292A 1992-08-07 1992-08-07 Teaching method and teaching device for image inspection device Expired - Fee Related JP3220526B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP21132292A JP3220526B2 (en) 1992-08-07 1992-08-07 Teaching method and teaching device for image inspection device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP21132292A JP3220526B2 (en) 1992-08-07 1992-08-07 Teaching method and teaching device for image inspection device

Publications (2)

Publication Number Publication Date
JPH0658727A true JPH0658727A (en) 1994-03-04
JP3220526B2 JP3220526B2 (en) 2001-10-22

Family

ID=16604037

Family Applications (1)

Application Number Title Priority Date Filing Date
JP21132292A Expired - Fee Related JP3220526B2 (en) 1992-08-07 1992-08-07 Teaching method and teaching device for image inspection device

Country Status (1)

Country Link
JP (1) JP3220526B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006078300A (en) * 2004-09-09 2006-03-23 Dainippon Screen Mfg Co Ltd Flaw detection method of object by color image of the object

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006078300A (en) * 2004-09-09 2006-03-23 Dainippon Screen Mfg Co Ltd Flaw detection method of object by color image of the object

Also Published As

Publication number Publication date
JP3220526B2 (en) 2001-10-22

Similar Documents

Publication Publication Date Title
US5739846A (en) Method of inspecting component placement accuracy for each first selected circuit board to be assembled of a batch
JP3906780B2 (en) Data registration method for component code conversion table, board inspection data creation device, registration processing program, and storage medium thereof
JP2570239B2 (en) Mounting component inspection data generation method and mounting component inspection apparatus used for implementing the method
JPH0643112A (en) Teaching method and equipment for image inspecting apparatus
KR100486410B1 (en) Auto-teaching method for printed circuit board part mounting inspection system
JPH0658727A (en) Method and equipment for teaching of image inspecting apparatus
JPH11258178A (en) Apparatus and method for inspection
KR100286041B1 (en) Method and device for setting teaching data of automatic PCB inspection device
JP3264020B2 (en) Inspection data creation method and mounted component inspection device
JP2664141B2 (en) Mounting board inspection equipment
JPH09152317A (en) Method and apparatus for inspection of mounting component
JPS62298750A (en) Inspecting device for printed circuit board
JP3691925B2 (en) Soldering appearance inspection apparatus and soldering appearance inspection method
JPH09145334A (en) Method and equipment for inspecting mounted device
JPH0763816A (en) Printed board inspection method and apparatus, centralized inspection system of prinrted board
JPH06258243A (en) Mounting part inspection device
JPH0820229B2 (en) Mounting board inspection equipment
JP2576815B2 (en) Mounting board inspection equipment
JPH0526815A (en) Method for teaching mounted parts inspection data
JPH07120420B2 (en) Mounted board inspection device
JP3185430B2 (en) Substrate inspection method and apparatus
JPH04161841A (en) Optical printed board inspecting apparatus
JP3189441B2 (en) Teaching data correction method for mounted component inspection equipment
JPH07107651B2 (en) Method of teaching reference board data in automatic inspection device
JPS62261050A (en) Printed circuit board inspecting device

Legal Events

Date Code Title Description
FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20070810

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20080810

Year of fee payment: 7

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

Year of fee payment: 7

Free format text: PAYMENT UNTIL: 20080810

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

Year of fee payment: 8

Free format text: PAYMENT UNTIL: 20090810

LAPS Cancellation because of no payment of annual fees