JP3220526B2 - Teaching method and teaching device for image inspection device - Google Patents

Teaching method and teaching device for image inspection device

Info

Publication number
JP3220526B2
JP3220526B2 JP21132292A JP21132292A JP3220526B2 JP 3220526 B2 JP3220526 B2 JP 3220526B2 JP 21132292 A JP21132292 A JP 21132292A JP 21132292 A JP21132292 A JP 21132292A JP 3220526 B2 JP3220526 B2 JP 3220526B2
Authority
JP
Japan
Prior art keywords
color
reference range
inspection
inspection target
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.)
Expired - Fee Related
Application number
JP21132292A
Other languages
Japanese (ja)
Other versions
JPH0658727A (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.)
Panasonic Corp
Panasonic Holdings Corp
Original Assignee
Panasonic Corp
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 Panasonic Corp, Matsushita Electric Industrial Co Ltd filed Critical Panasonic Corp
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)

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 have been measured,
2. Description of the Related Art Inspection by image recognition is widely used for measuring the position and shape of a component to perform component alignment, and to judge the quality of the component or product.

【0003】そして、濃淡画像データより情報数が多い
色画像データの色情報を使用した検査方法が一般化して
いる。
Inspection methods using color information of color image data having more information than gray image data have become common.

【0004】画像検査装置に、この色画像データの色情
報を使用した検査を行わせるためには、先ず、画像検査
装置の色抽出基準範囲テーブル・メモリに、検査対象物
の色画像データから抽出するべき色範囲を規定する色抽
出基準範囲をティーチングしておく必要がある。
In order for the image inspection apparatus to perform an 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 from the color image data. It is necessary to teach a color extraction reference range that defines a 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 a configuration of a teaching device using a teaching method of a conventional example of an image inspection device.

【0007】図4に示すように、従来例のティーチング
装置は、検査対象物の画面位置発生部3と、撮像され任
意のルートを介して順次送られてくる検査対象物の色画
像データを記憶する画像メモリ2と、手作業ティーチン
グ操作部1と、色抽出基準範囲テーブル・メモリ6とを
有する。
As shown in FIG. 4, the conventional teaching device stores a screen position generating unit 3 for an inspection object and color image data of the inspection object sequentially picked up and sent via an arbitrary route. 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 used up to now is changed and teaching becomes necessary, first, the screen position generator 3 for the inspection object outputs the color image data of the inspection object. Is issued to the image memory 2. Upon receiving the instruction 4, the image memory 2 sends the image data 5 at the specified inspection target screen position to the manual teaching operation unit 1. The manual teaching operation unit 1 extracts the color distribution of the image data 5 at the screen position of the inspection object sent by the color extraction work, sets the extracted color distribution as a color extraction reference range, and sets the color extraction reference. The range is taught in the color extraction reference range table memory 6.

【0010】[0010]

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

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

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

【0013】[0013]

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

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

【0015】[0015]

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

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

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

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

【0019】[0019]

【実施例】本発明の画像検査装置のティーチング方法の
一実施例方法を使用した画像検査装置のティーチング装
置の一実施例を図1に基づいて説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS One embodiment of a teaching method for an image inspection apparatus according to the present invention 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 inspection screen position data 14 and inspection adjacent screen position data 14 '.
To the screen position generator 3, the address data 15 to the color distribution memory 8, and the color extraction reference range table designation data 16 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 is sent from the control unit 13 via the screen position generating unit 3 to the screen position generating unit. 3 based on the small screen position data 14 "and the adjacent screen position data 14 'to be inspected, including the screen position to be inspected and the adjacent screen position to be inspected, which are received in correspondence with the screen position data No. 3 described above. And the color image data 5 corresponding to the inspection target adjacent screen position data 14 ′ 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 on the color distribution data 1.
0 is 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 color distribution data 11 at the small screen position and color distribution data 11 'at the adjacent screen position to be inspected. Send to The color extraction reference range setting unit 9 removes the color distribution data 11 ′ of the adjacent screen position to be inspected from the color distribution data 11 of the received small screen position, and outputs the color extraction reference range data 12 of the inspection screen position. Is set in the color extraction reference range table memory 6. The color extraction reference range table memory 6 receives the teaching and stores the color extraction reference range data 12.
When the image inspection apparatus performs inspection by image recognition, the table instruction data 18
Is sent to the color extraction reference range table memory 6, and the table instruction data 18 is read from the color extraction reference range table memory 6.
The color extraction reference range data based on the image data 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 object screen positions 19 and 21 where the cream solder printed part of the color image 22 of the electronic circuit board on which the cream solder is to be inspected is located.
Inspection target adjacent screen positions 23, 24, 2 where various components around the inspection target cream solder printing section are located.
5 is shown. Color images 22 of the inspection object sequentially sent
Before performing the inspection by image recognition, the inspection target screen position 1
Teaching the color extraction reference range data 12 (FIG. 1) corresponding to 9 and 21 to the color extraction reference range table memory 6 (FIG. 1). In this teaching operation, as described with reference to FIG. 1 described above, the color distribution extraction unit 7 performs a distributed process on the extracted color distribution, and displays the inspection target screen of the color image 22 of the inspection target (electronic circuit board). Small screen position 20 and inspection target screen position 21 (cream solder printing portion) including position 19 (cream solder printing portion) and inspection adjacent screen position 23 (various components around cream solder printing portion) and inspection target The color distribution data 20 ″ (11 in FIG. 1) of the small screen position 20 ′ including the adjacent screen positions 24 and 25 (various components around the cream solder printing section) and the adjacent screen positions 23 and 24 to be inspected. The color distribution data 23 ', 24', and 25 '(11' in FIG. 1) of 25 (various components around the cream solder printing section) are created.
The color distribution data 20 ″ (11 in FIG. 1) of the small screen positions 20 and 20 ′ in FIG. 3 together with the address data 15 from the control unit 13 and stored in the color distribution memory 8; , 24, 25 color information distribution data 23 ',
These are sent to the color extraction standard distribution range setting unit 9 as 24 'and 25' (11 'in FIG. 1). In the color extraction reference range setting unit 9, the color distribution data 2 of the small screen positions 20 and 20 'in FIG.
From 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) for the inspection target screen positions 19 and 21 in FIG. Teaching to 6.

【0025】本発明の画像検査装置のティーチング方法
とその装置は、上記の実施例に限らず種々の態様が可能
である。例えば、検査対象物の色画像22の検査対象画
面位置は、本実施例では19と21の2箇所であるが、
2箇所には限らない。図1に示す実施例の回路構成と役
割分担は、目的を達成できさえすれば自由に設計でき
る。色抽出基準範囲テーブル・メモリ6の個数は自由に
設計できる。
The teaching method of the image inspection apparatus and the apparatus according to the present invention are not limited to the above-described embodiment, but may take various forms. For example, the inspection target screen positions of the color image 22 of the inspection target are two positions of 19 and 21 in this embodiment.
Not limited to two places. The circuit configuration and role assignment of the embodiment shown in FIG. 1 can be freely designed as long as the object 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 the teaching device of the image inspection apparatus of the present invention, the small screen including the inspection target screen position of the color image data of the inspection target and the inspection adjacent screen position adjacent to the inspection target screen position. Location color distribution,
The color distribution of the inspection target adjacent screen position is extracted from the color distribution of the inspection target adjacent screen position, and the color distribution of the inspection target adjacent screen position is removed from the color distribution of the inspection target adjacent screen position. Since the reference range is set and 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 distribution of the adjacent screen position adjacent to the inspection target screen removed from the color distribution of the small screen position including the inspection target screen position and the inspection target adjacent screen position is determined as a color extraction criterion. Because of the range, the boundary between the screen position to be inspected and the adjacent screen position to be inspected is mechanically determined by the address data of the color image data, and the color distribution at the small screen position and the color distribution at the adjacent screen position to be inspected are determined. The color in the color extraction reference range measured and obtained as described above always consists of only the color at the position of the inspection target screen. Therefore, automatic measurement becomes possible, and variations in the set color extraction reference range can be eliminated.

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

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

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

【図3】本実施例の色抽出基準範囲の設定動作図であ
る。
FIG. 3 is a setting operation diagram of a color extraction reference range according to the present 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 inspection target screen position 11 ′, 23 ′ to 25 ′ Color distribution data (color distribution) at inspection adjacent 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 specification data 17 table specification memory 18 table specification data

フロントページの続き (58)調査した分野(Int.Cl.7,DB名) G01B 11/00 - 11/30 102 G01N 21/84 - 21/958 G06T 1/00 G06T 7/00 Continuation of the front page (58) Field surveyed (Int.Cl. 7 , DB name) G01B 11/00-11/30 102 G01N 21/84-21/958 G06T 1/00 G06T 7/00

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 色画像データから検査対象部分が有する
特定の色を抽出して検査する画像検査のために検査対象
物の検査対象部分の特定の色を規定した色抽出基準範囲
を記憶している色抽出基準範囲テーブル・メモリを有
し、この色抽出基準範囲テーブル・メモリから使用する
べき色抽出基準範囲を順次読出し、撮像され任意のルー
トを介して順次送られてくる検査対象物の色画像データ
から前記使用するべき色抽出基準範囲の色を抽出し、こ
の抽出された前記使用するべき色抽出基準範囲の色画像
データに基づいて検査を行う画像検査装置の前記色抽出
基準範囲テーブル・メモリに、記憶するべき色抽出基準
範囲をティーチングする画像検査装置のティーチング方
法において、検査対象物の色画像データの検査対象画面
位置とこの検査対象画面位置に隣接する検査対象隣接画
面位置とを含む小画面位置の色分布と、前記検査対象隣
接画面位置の色分布とを抽出し、前記小画面位置の色分
布から前記検査対象隣接画面位置の色分布を除去したも
のを、前記検査対象物の前記検査対象画面位置の色抽出
基準範囲として設定し、これを前記色抽出基準範囲テー
ブル・メモリにアドレスデータと対応させて記憶させる
ことを特徴とする画像検査装置のティーチング方法。
1. A color extraction reference range that defines a specific color of an inspection target portion of an inspection target for image inspection for extracting a specific color of the inspection target portion from color image data and inspecting the extracted color. The color extraction reference range table memory to be used is sequentially read out from the color extraction reference range table memory, and the color of the inspection object which is imaged and sequentially sent through an arbitrary route is stored. The color extraction reference range table of the image inspection apparatus for extracting a color of the color extraction reference range to be used from image data and performing an inspection 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, a position of an inspection target screen of color image data of an inspection target and an image of the inspection target image are determined. 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 color distribution of the inspection target adjacent screen position is extracted from the color distribution of the small screen position. Removing the color distribution as a color extraction reference range of the inspection target screen position of the inspection object, and storing the color extraction reference range in the color extraction reference range table memory in correspondence with the address data. Teaching method of an image inspection apparatus to be performed.
【請求項2】 色画像データから検査対象部分が有する
特定の色を抽出して検査する画像検査のために検査対象
物の検査対象部分の特定の色を規定した色抽出基準範囲
を記憶している色抽出基準範囲テーブル・メモリを有
し、この色抽出基準範囲テーブル・メモリから使用する
べき色抽出基準範囲を順次読出し、撮像され任意のルー
トを介して順次送られてくる検査対象物の色画像データ
から前記使用するべき色抽出基準範囲の色を抽出し、こ
の抽出された前記使用するべき色抽出基準範囲の色画像
データに基づいて検査を行う画像検査装置の前記色抽出
基準範囲テーブル・メモリに、記憶するべき色抽出基準
範囲をティーチングする画像検査装置のティーチング装
置において、検査対象物の色画像データの検査対象画面
位置とこの検査対象画面位置に隣接する検査対象隣接画
面位置とを含む小画面位置の色分布と、前記検査対象隣
接画面位置の色分布とを抽出する色分布抽出部と、前記
小画面位置の色分布から前記検査対象隣接画面位置の色
分布を除去したものを、前記検査対象物の前記検査対象
画面位置の色抽出基準範囲として設定し、これを前記色
抽出基準範囲テーブル・メモリにアドレスデータと対応
させて記憶させる色抽出基準範囲設定部とを有すること
を特徴とする画像検査装置のティーチング装置。
2. A color extraction reference range defining a specific color of an inspection target portion of an inspection target for image inspection for extracting a specific color of the inspection target portion from color image data and inspecting the extracted color. The color extraction reference range table memory to be used is sequentially read out from the color extraction reference range table memory, and the color of the inspection object which is imaged and sequentially sent through an arbitrary route is stored. The color extraction reference range table of the image inspection apparatus for extracting a color of the color extraction reference range to be used from image data and performing an inspection based on the extracted color image data of the color extraction reference range to be used. In a teaching device of an image inspection device for teaching a color extraction reference range to be stored in a memory, a position of an inspection target screen of color image data of an inspection target and an image of the inspection target image are displayed. A color distribution extraction unit for extracting a color distribution at a small screen position including an inspection target adjacent screen position adjacent to a surface position and a color distribution at the inspection target adjacent screen position; and performing the inspection based on the color distribution at the small screen position. A color distribution at the target adjacent screen position removed is set as a color extraction reference range of the inspection target screen position of the inspection object, and stored in the color extraction reference range table / memory in association with the address data. And a color extraction reference range setting unit for causing the image inspection apparatus to perform the teaching.
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 JPH0658727A (en) 1994-03-04
JP3220526B2 true 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)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4841819B2 (en) * 2004-09-09 2011-12-21 大日本スクリーン製造株式会社 Defect detection by color image of an object

Also Published As

Publication number Publication date
JPH0658727A (en) 1994-03-04

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
US20060050267A1 (en) Substrate inspection method and apparatus
US7062080B2 (en) Method of inspecting curved surface and device for inspecting printed circuit board
JP3906780B2 (en) Data registration method for component code conversion table, board inspection data creation device, registration processing program, and storage medium thereof
JP3179874B2 (en) Teaching method and teaching device for image inspection device
JP2570239B2 (en) Mounting component inspection data generation method and mounting component inspection apparatus used for implementing the method
EP1314974B1 (en) Method of inspecting curved surface and device for inspecting printed circuit board
JP3220526B2 (en) Teaching method and teaching device for image inspection device
JP3472443B2 (en) Mounted parts inspection equipment
JPH11258178A (en) Apparatus and method for inspection
JPH10269292A (en) System for indicating work place
JP3264020B2 (en) Inspection data creation method and mounted component inspection device
JP2664141B2 (en) Mounting board inspection equipment
JPS62298750A (en) Inspecting device for printed circuit board
JP3189308B2 (en) Method and apparatus for displaying soldering inspection results, method for correcting soldering failure, and soldering inspection apparatus
JP2576815B2 (en) Mounting board inspection equipment
JP3691925B2 (en) Soldering appearance inspection apparatus and soldering appearance inspection method
JP3524254B2 (en) Method for detecting displacement of substrate to be inspected by pattern matching method
JP2797703B2 (en) How to set the inspection frame for electronic components
JPS62182810A (en) Teaching method for reference circuit board data of automatic inspecting device
JPH05259700A (en) Circuit board inspecting apparatus
JPH0820229B2 (en) Mounting board inspection equipment
JPH04161841A (en) Optical printed board inspecting apparatus
JPS62197752A (en) Inspection for connection of printed circuit board
JPS62261050A (en) Printed circuit board inspecting device

Legal Events

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

Free format text: PAYMENT UNTIL: 20070810

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20080810

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20080810

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20090810

Year of fee payment: 8

LAPS Cancellation because of no payment of annual fees