JP3500711B2 - Appearance inspection device - Google Patents

Appearance inspection device

Info

Publication number
JP3500711B2
JP3500711B2 JP17453894A JP17453894A JP3500711B2 JP 3500711 B2 JP3500711 B2 JP 3500711B2 JP 17453894 A JP17453894 A JP 17453894A JP 17453894 A JP17453894 A JP 17453894A JP 3500711 B2 JP3500711 B2 JP 3500711B2
Authority
JP
Japan
Prior art keywords
inspection
inspection item
item data
memory
user program
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
JP17453894A
Other languages
Japanese (ja)
Other versions
JPH0843053A (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 Electric Works Co Ltd
Original Assignee
Matsushita Electric Works 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 Works Ltd filed Critical Matsushita Electric Works Ltd
Priority to JP17453894A priority Critical patent/JP3500711B2/en
Publication of JPH0843053A publication Critical patent/JPH0843053A/en
Application granted granted Critical
Publication of JP3500711B2 publication Critical patent/JP3500711B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、生産工程で製品等の外
観の良否判定などを画像処理によって行なう外観検査装
置において、使用者の作成したユーザプログラムによっ
て検査項目を指定できるようにした外観検査装置に関す
るものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an appearance inspection device which allows a user program created by a user to specify an inspection item in an appearance inspection device for determining the quality of the appearance of a product or the like in a production process by image processing. It relates to the device.

【0002】[0002]

【従来の技術】近年、生産工程ではライン上を搬送され
るワークなどの被検査物の外観をTVカメラのような画
像入力装置により撮像し、画像入力装置によって得られ
た画像に画像処理を施すことによって被検査物の外観の
良否判定を行なうようにした外観検査装置が採用されて
いる。この種の外観検査装置では、画像から所要の情報
(寸法・形状や良否)を得るために、計測条件や判定条
件を検査前に設定しておくことが必要である。検査前に
設定する条件としては、画像入力装置で被検査物を撮像
するタイミングを指示する検査開始条件、被検査物を基
準として設定したラインやウインドウのような検査領域
の位置ないし範囲、入力画像の中での被検査物の位置に
応じて検査領域の画像内での位置を補正する手順、検査
領域で得た情報から被検査物について面積、重心の位
置、主軸の方向、寸法、形状などの各種特徴量を求める
手順(一般には数式で表すことができる)、特徴量に対
する良否の判定基準がある。これらの計測条件や判定条
件は、被測定物の種類ごとに異なるから被測定物ごとに
品種データとして管理される。
2. Description of the Related Art In recent years, in a production process, an external appearance of an object to be inspected such as a work conveyed on a line is imaged by an image input device such as a TV camera, and the image obtained by the image input device is subjected to image processing. As a result, an appearance inspection device is used that determines whether the appearance of the object to be inspected is good or bad. In this type of appearance inspection device, it is necessary to set measurement conditions and determination conditions before the inspection in order to obtain required information (dimension / shape and quality) from the image. The conditions to be set before the inspection include inspection start conditions for instructing the timing of imaging the inspection object with the image input device, the position or range of the inspection area such as a line or window set with the inspection object as a reference, and the input image. Procedure of correcting the position of the inspection area in the image according to the position of the inspection object in the image, the area of the inspection object from the information obtained in the inspection area, the position of the center of gravity, the direction of the main axis, dimensions, shape, etc. There is a procedure (generally represented by a mathematical expression) for determining various characteristic amounts of, and a criterion of quality of the characteristic amount. Since these measurement conditions and determination conditions differ for each type of measured object, they are managed as product type data for each measured object.

【0003】一方、外観検査装置がシステムとしてあら
かじめ備えている機能には限界があるから、必要に応じ
て使用者による機能の拡張や変更が可能となるようにユ
ーザプログラムを記述できるようにした外観検査装置が
提案されている。とくに、品種データの中でも、被検査
物に対する検査領域と検査領域から抽出すべき特徴量お
よび特徴量の判定基準である検査内容とは被検査物ごと
に異なるから、検査項目として使用者による修正が必要
になることが多い。
On the other hand, since the appearance inspection apparatus has a limited function provided in advance as a system, an appearance in which a user program can be described so that the user can expand or change the function as needed. Inspection devices have been proposed. In particular, in the product data, the inspection area for the inspected object, the feature amount to be extracted from the inspected area, and the inspection content, which is the criterion for determining the feature amount, differ from inspected item to inspected item. Often needed.

【0004】[0004]

【発明が解決しようとする課題】ところで、上述した外
観検査装置において、ユーザプログラムによって検査項
目を定義しようとすれば、使用者は外観検査装置につい
てプログラムの記述方法以外に装置そのものの特性を細
部まで知ることが必要になり、ユーザプログラムが記述
できるように構成されているにもかかわらず十分な知識
がなければユーザプログラムを容易には設定できないと
いう問題がある。とくに、最近では外観検査装置の機能
の向上に伴って、装置の細部を知ることは困難になって
きており、ユーザプログラムの開発が一層困難になって
きている。
By the way, in the above-mentioned appearance inspection apparatus, if an inspection item is to be defined by a user program, the user will not only describe the appearance inspection apparatus in detail in the characteristics of the apparatus itself in addition to the program description method. There is a problem in that the user program cannot be easily set without sufficient knowledge even though the user program is structured so that it can be written. In particular, with the recent improvement in the function of the appearance inspection device, it has become difficult to know the details of the device, and the development of a user program has become more difficult.

【0005】また、外観検査装置は、複数種類の検査項
目から所要の検査項目を選択できるように複数種類の検
査項目データをシステムとしてあらかじめ備えており、
外観検査装置に設けた操作スイッチなどによって必要な
検査項目を選択できるようにしてある。このようにして
選択した検査項目データは、システムプログラムで管理
されている検査項目メモリ(一般にはメモリの一部領域
が割り当てられる)に書き込まれて検査の際に使用され
るのであり、一方、ユーザプログラムは検査項目メモリ
とは別に設けたプログラムメモリ(一般にはメモリの一
部領域が割り当てられる)に書き込まれるから、ユーザ
プログラムで作成した検査項目データはシステムプログ
ラムでは利用できないことになる。すなわち、ユーザプ
ログラムで作成した検査項目データは、外観検査装置に
用意されている検査項目データと同じように扱うことが
できず、ユーザプログラムでしか利用することができな
いという問題がある。その結果、実際にはシステムプロ
グラムに対して検査項目データを引き渡せば検査項目が
実行できると考えられる場合でも、ユーザプログラム中
に検査項目データを実行する処理も記述することが必要
になり、ユーザプログラムを作成しようとする使用者の
大きな負担になっている。
Further, the appearance inspection apparatus is provided with a plurality of types of inspection item data in advance as a system so that a desired inspection item can be selected from a plurality of types of inspection items.
Necessary inspection items can be selected by operating switches provided on the appearance inspection device. The inspection item data selected in this way is written to the inspection item memory (generally a partial area of the memory is allocated) managed by the system program and used for inspection. Since the program is written in a program memory (generally a partial area of the memory is allocated) provided separately from the inspection item memory, the inspection item data created by the user program cannot be used by the system program. That is, there is a problem that the inspection item data created by the user program cannot be handled in the same way as the inspection item data prepared in the appearance inspection device, and can be used only by the user program. As a result, even if it is considered that the inspection item can be executed by actually delivering the inspection item data to the system program, it is necessary to describe the process of executing the inspection item data in the user program. It is a heavy burden for users who want to create programs.

【0006】さらに、加工装置、検査装置、組立装置な
どの作業装置の視覚センサとして外観検査装置を利用す
る場合、同じ動作をする作業装置が複数台あれば、同じ
検査項目データを設定した外観検査装置が複数台必要に
なる。この場合、1台の外観検査装置に対して検査項目
データを設定して装置を調整した後、各外観検査装置に
検査項目データを複写することになるが、各作業装置の
機械的誤差や外観件装置に用いる画像入力装置と被検査
物との相対位置の誤差などに応じて、検査項目データの
人手による調整が必要であり、調整作業に手間がかかる
とともに、結果にばらつきが生じるという問題があっ
た。
Further, when the visual inspection device is used as a visual sensor of a working device such as a processing device, an inspection device, and an assembly device, if there are a plurality of working devices that perform the same operation, the visual inspection with the same inspection item data is set. Requires multiple devices. In this case, after setting the inspection item data for one visual inspection device and adjusting the device, the inspection item data is copied to each visual inspection device. It is necessary to manually adjust the inspection item data according to the error in the relative position between the image input device used for the target device and the inspected object, and the adjustment work is time-consuming and the results may vary. there were.

【0007】本発明は上記問題点に鑑みて為されたもの
であり、第1の目的は、ユーザプログラムとして検査項
目データを記述する際に、検査項目データの実行処理と
してシステムプログラムを流用できる部分については、
ユーザプログラムからの流用を可能とし、かつシステム
プログラムとユーザプログラムとの別を設けずに検査項
目データを扱うことができるようにしてユーザプログラ
ムの作成を容易にし、第2の目的は、すべての検査項目
データについてユーザプログラムでの読み出しと書き込
みとを可能とすることによって、ユーザプログラムとし
て装置のばらつきに対する調整方法を記述することで、
検査項目データの自動調整を可能とする外観検査装置を
提供することにある。
The present invention has been made in view of the above problems. A first object of the present invention is that, when describing inspection item data as a user program, a system program can be diverted as an execution process of inspection item data. about,
The user program can be reused, and the inspection item data can be handled without providing the system program and the user program, facilitating the creation of the user program. The second purpose is to perform all inspections. By allowing the user program to read and write the item data, by describing the adjustment method for device variations as the user program,
An object of the present invention is to provide a visual inspection device that enables automatic adjustment of inspection item data.

【0008】[0008]

【課題を解決するための手段】請求項1の発明は、被検
査物を画像入力装置により撮像して得た画像に画像処理
を施すことにより被検査物の外観検査を行なう外観検査
装置において、画像内の検査領域および検査内容を示す
検査項目データを格納する書換可能な検査項目メモリ
と、ユーザプログラムとは別に設けられ検査項目データ
を用いて検査を実行する実行処理部と、使用者が作成し
たユーザプログラムに含まれる検査項目データを抽出し
検査項目メモリに格納する検査項目抽出部と、検査項
目メモリに格納された各検査項目データを所定の手順で
選択するとともに選択した検査項目データを前記実行処
理部に引き渡すスケジューラとを備え、スケジューラは
ユーザプログラムにより起動されることを特徴とする。
According to a first aspect of the present invention, there is provided an appearance inspection apparatus for performing an appearance inspection of an inspection object by performing image processing on an image obtained by picking up an image of the inspection object with an image input device. A rewritable inspection item memory for storing inspection item data indicating the inspection area and inspection content in the image, and inspection item data provided separately from the user program.
The execution processing unit that executes the inspection by using, and the inspection item data included in the user program created by the user is extracted.
A test item extracting unit for storing the test item memory Te, and a scheduler to be passed to the execution processing unit test items selected data with each inspection item data stored in the inspection item memory selects a predetermined procedure, The scheduler is characterized by being started by a user program.

【0009】 請求項2の発明は、検査項目メモリに
は、ユーザプログラムとは別にあらかじめ設定されてい
る検査項目データとユーザプログラムに含まれる検査項
目データとが混在して格納されることを特徴とする。請
求項3の発明は、被検査物を画像入力装置により撮像し
て得た画像に画像処理を施すことにより被検査物の外観
検査を行なう外観検査装置において、画像内の検査領域
および検査内容を示す検査項目データを格納する揮発性
メモリである検査項目メモリと、検査項目データを用い
て検査を実行する実行処理部と、検査項目メモリに登録
された検査項目データを保存する不揮発性メモリである
保存用メモリと、使用者が作成したユーザプログラム
含まれる検査項目データを抽出して検査項目メモリに格
納する検査項目抽出部と、検査項目メモリに格納された
各検査項目データを所定の手順で選択するとともに選択
した検査項目データを前記実行処理部に引き渡すスケジ
ューラとを備え、スケジューラはユーザプログラムによ
り起動されることを特徴とする。
According to a second aspect of the present invention, the inspection item memory stores the inspection item data set separately from the user program and the inspection item data included in the user program in a mixed manner. To do. According to a third aspect of the present invention, in an appearance inspection apparatus that performs an appearance inspection of an inspection object by performing image processing on an image obtained by capturing the inspection object with an image input device, Using the inspection item memory, which is a volatile memory that stores the inspection item data shown, and the inspection item data
The execution processing unit that executes the inspection, the storage memory that is the non-volatile memory that stores the inspection item data registered in the inspection item memory, and the user program created by the user .
A test item extracting unit for storing inspection item data to the inspection item memory extracted and the contained, the execution processing inspection item data selected with the respective inspection item data stored in the inspection item memory selects a predetermined procedure And a scheduler which is handed over to the department, and the scheduler is activated by a user program.

【0010】 請求項4の発明は、被検査物を画像入力
装置により撮像して得た画像に画像処理を施すことによ
り被検査物の外観検査を行なう外観検査装置において、
画像内の検査領域および検査内容を示す検査項目データ
を格納する揮発性メモリである検査項目メモリと、検査
項目データを用いて検査を実行する実行処理部と、検査
項目データを保存する不揮発性メモリである保存用メモ
リと、使用者が作成したユーザプログラムに含まれる
査項目データを抽出して保存用メモリに格納する検査項
抽出部と、保存用メモリから検査項目データを検査項
目メモリに複写するデータ複写部と、検査項目メモリに
格納された各検査項目データを所定の手順で選択すると
ともに選択した検査項目データを前記実行処理部に引き
渡すスケジューラとを備え、スケジューラはユーザプロ
グラムにより起動されることを特徴とする。
According to a fourth aspect of the present invention, there is provided an appearance inspection device that performs an appearance inspection of an inspection object by performing image processing on an image obtained by capturing the inspection object with an image input device.
An inspection item memory that is a volatile memory that stores inspection item data indicating an inspection area and inspection content in an image, and an inspection
Extraction and execution processing unit for executing a test by using the item data, the storage memory is a nonvolatile memory that stores the inspection item data, the test <br/>査項th data included in the user program the user has created The inspection item extraction unit that stores the data in the memory for storage and the data copying unit that copies the inspection item data from the memory for storage in the inspection item memory, and each inspection item data stored in the memory for the inspection item is selected in a predetermined procedure. the inspection item data selected while a scheduler to be passed to the execution unit, the scheduler characterized in that it is activated by the user program.

【0011】請求項5の発明は、保存用メモリに格納さ
れた検査項目データはユーザプログラムによる修正が許
可されていることを特徴とする。
According to a fifth aspect of the invention, the inspection item data stored in the storage memory is permitted to be modified by the user program.

【0012】[0012]

【作用】請求項1の発明は、使用者が作成したユーザプ
ログラムに含まれる検査項目データを検査項目メモリに
格納し、検査項目メモリに格納された各検査項目データ
をスケジューラによって所定の手順で選択するととも
に、スケジューラで選択した検査項目データを検査項目
データを用いて検査を実行する既存の実行処理部に対し
て引き渡すようにし、かつスケジューラをユーザプログ
ラムにより起動するから、ユーザプログラムに検査項目
データを記述する際に、検査項目データに対応した検査
を実行する処理は、外観検査装置がシステムとして備え
ている既存のものを用いることができ、従来のように検
査項目データの実行処理についてもユーザプログラムに
記述する場合に比較すると、ユーザプログラムの作成に
要する手間が大幅に削減される。また、既存の実行処理
部はメーカ側で外観検査装置の特性を考慮して作成され
るものであって、この既存の実行処理部に対して検査項
目データを引き渡すだけで検査を行なうようにしている
から、使用者側では外観検査装置の細部の特性について
は考慮する必要がなく、外観検査装置について十分な知
識がない使用者でも比較的容易にユーザプログラムを作
成することが可能になるのである。
According to the invention of claim 1, the inspection item data included in the user program created by the user is stored in the inspection item memory, and each inspection item data stored in the inspection item memory is selected by the scheduler in a predetermined procedure. In addition, the inspection item data selected by the scheduler is passed to the existing execution processing unit that executes the inspection using the inspection item data, and the scheduler is started by the user program, so the inspection item data is sent to the user program. At the time of description, the existing process included in the visual inspection apparatus as a system can be used for the process of executing the inspection corresponding to the inspection item data. Compared with the case described in, the time required to create a user program is significantly Is Gensa. Also, the existing execution processing unit is created by the manufacturer in consideration of the characteristics of the appearance inspection device, and the inspection is performed only by passing the inspection item data to the existing execution processing unit. Therefore, it is not necessary for the user to consider the characteristics of the details of the appearance inspection device, and even a user who does not have sufficient knowledge about the appearance inspection device can relatively easily create a user program. .

【0013】請求項2の発明は、検査項目メモリにユー
ザプログラムと既存の検査項目データとを混在させてい
るから、外観検査装置が保有している検査項目データと
同じ検査項目データをユーザプログラムで使用する場合
に、既存の検査項目データを検査項目メモリに転送する
だけで利用することができ、ユーザプログラムでの検査
項目の記述量が削減されてユーザプログラムの作成が一
層容易になる。
According to the second aspect of the present invention, since the user program and the existing inspection item data are mixed in the inspection item memory, the same inspection item data as the inspection item data held by the visual inspection apparatus is stored in the user program. When used, it can be used by simply transferring the existing inspection item data to the inspection item memory, the amount of description of inspection items in the user program is reduced, and the creation of the user program becomes easier.

【0014】請求項3の発明は、検査項目メモリとして
揮発性メモリを用いるものであり、検査項目メモリに登
録された検査項目データを保存する不揮発性メモリより
なる保存用メモリを付加していることによって、電源遮
断時でも検査項目データが保存用メモリに保存され、次
に電源を投入する際には検査項目データを保存用メモリ
から検査項目メモリに複写するだけで検査を実行するこ
とができ、検査項目データを再度設定しなおす手間が生
じない。
According to the third aspect of the present invention, a volatile memory is used as the inspection item memory, and a storage memory including a non-volatile memory for storing the inspection item data registered in the inspection item memory is added. Allows the inspection item data to be saved in the storage memory even when the power is cut off, and the next time the power is turned on, the inspection item data can be copied from the storage memory to the inspection item memory to perform the inspection. There is no need to reset inspection item data again.

【0015】請求項4の発明は、請求項3の構成と同様
に、不揮発性メモリよりなる保存用メモリに検査項目デ
ータを保存するようにしているものであり、検査項目デ
ータを保存用メモリに格納した後に検査項目メモリに複
写するから、検査項目データの設定中に電源が遮断して
も、すでに設定されている検査項目データは保存用メモ
リに残ることになり、検査項目データを一層安全に保存
することができる。
According to a fourth aspect of the present invention, like the configuration of the third aspect, the inspection item data is stored in a storage memory composed of a non-volatile memory, and the inspection item data is stored in the storage memory. Since it is copied to the inspection item memory after it is stored, even if the power is cut off while setting the inspection item data, the already set inspection item data will remain in the storage memory, making the inspection item data safer. Can be saved.

【0016】請求項5の発明は、保存用メモリに格納さ
れた検査項目データのユーザプログラムによる修正を許
可しているから、一旦設定された検査項目データであっ
ても必要に応じて修正することができ、しかも、修正前
の検査項目データと修正後の検査項目データとの差異が
少ないときには、保存用メモリに格納されている検査項
目データを利用して新たな検査項目データを作成するこ
とができ、検査項目データの作成が一層容易になる。
According to the invention of claim 5, the inspection item data stored in the storage memory is permitted to be corrected by the user program. Therefore, even the inspection item data once set can be corrected as necessary. When the difference between the inspection item data before correction and the inspection item data after correction is small, new inspection item data can be created using the inspection item data stored in the storage memory. This makes it easier to create inspection item data.

【0017】[0017]

【実施例】【Example】

(実施例1)まず、本実施例で用いる外観検査装置の全
体構成について概説する。図2に示すように、外観検査
装置1は画像入力装置としてのCCDカメラ2により撮
像した被検査物の画像を、A/D変換器3によってディ
ジタル画像に変換し、画像メモリ4に記憶させる。A/
D変換器3や画像メモリ4で得られる画像は、マイクロ
コンピュータよりなる画像処理部5により処理され、被
検査物の検査に必要な特徴量が求められる。演算処理部
6では画像処理部5で求めた特徴量に基づいて被検査物
の良否判定や種類判別などが行なわれ、また画像メモリ
4に対して読み書きを行なう。ここで、画像処理部5に
おいては濃淡画像を2値化して画像メモリ4に2値化画
像を書き込み、この2値化画像に対して特徴量を求める
ようになっている。画像メモリ4に格納された画像は、
D/A変換器7を通してCRTのようなモニタ8にも出
力される。また、演算処理部6にはコンピュータ装置の
ような外部装置との間でデータを授受したり外観検査装
置1で求めた結果や外部装置に伝送するために入出力部
9が設けられている。入出力部9としては、RS232
CやRS422のような汎用のインタフェースやキーボ
ードを接続するためのインタフェースが設けられる。さ
らに、演算処理部6には、EEPROMもしくは電源バ
ックアップしたSRAMよりなる不揮発性メモリ12
と、DRAMもしくは電源バックアップしていないSR
AMよりなる揮発性メモリ11とが設けられている。不
揮発性メモリ12には入出力部9を通して読み書きされ
るユーザプログラムなどが格納され、揮発性メモリ11
には検査項目データなどが格納される。
(Embodiment 1) First, the overall structure of the appearance inspection apparatus used in this embodiment will be outlined. As shown in FIG. 2, the appearance inspection apparatus 1 converts an image of an object to be inspected captured by a CCD camera 2 as an image input device into a digital image by an A / D converter 3 and stores the digital image in an image memory 4. A /
The image obtained by the D converter 3 and the image memory 4 is processed by the image processing unit 5 including a microcomputer, and the characteristic amount necessary for the inspection of the inspection object is obtained. The arithmetic processing unit 6 determines whether the object to be inspected is good or bad based on the characteristic amount obtained by the image processing unit 5, and reads or writes the image memory 4. Here, in the image processing unit 5, the grayscale image is binarized, the binarized image is written in the image memory 4, and the feature amount is obtained for this binarized image. The images stored in the image memory 4 are
It is also output to a monitor 8 such as a CRT through the D / A converter 7. Further, the arithmetic processing unit 6 is provided with an input / output unit 9 for exchanging data with an external device such as a computer device and transmitting the result obtained by the appearance inspection device 1 and the external device. As the input / output unit 9, RS232
A general-purpose interface such as C or RS422 and an interface for connecting a keyboard are provided. Further, the arithmetic processing unit 6 includes a nonvolatile memory 12 including an EEPROM or a SRAM backed up by a power source.
And DRAM or SR without power backup
A volatile memory 11 made of AM is provided. The non-volatile memory 12 stores user programs read and written through the input / output unit 9, and the volatile memory 11
Stores inspection item data and the like.

【0018】 次に、画像処理部5の動作について説明
する。図1に示すように、ユーザプログラムPuに記述
された検査項目データDTuは、揮発性メモリ11のう
ちシステムプログラムが管理する領域Asであって後述
するスケジューラ13が参照する領域Atに書き込まれ
る。すなわち、揮発性メモリ11に設けた領域Atが検
査項目メモリとして用いられる。ここで、ユーザプログ
ラムPuから検査項目データDTuを抽出して領域At
に書き込む作業は、画像処理部5の機能を記述するシス
テムプログラムで実現されている検査項目抽出部により
実行される。また、スケジューラ13もシステムプログ
ラムによって実現されており、外観検査装置1の装置と
しての特性を活かすように検査項目データの実行順序を
決定し、システムプログラムで記述され検査項目データ
DTuを実行する機能を有した実行処理部に検査項目デ
ータDTuを引き渡す機能を有している。
Next, the operation of the image processing unit 5 will be described. As shown in FIG. 1, test査項th data DTu described in the user program Pu is written in the area At the scheduler 13 to be described later a region As the system program for managing one of the volatile memory 11 is referenced. That is, the area At provided in the volatile memory 11 is used as the inspection item memory. Here, the inspection item data DTu is extracted from the user program Pu and the area At is extracted.
The work of writing to is executed by the inspection item extraction unit realized by the system program that describes the function of the image processing unit 5. The scheduler 13 is also realized by a system program, and has a function of determining the execution order of the inspection item data so as to utilize the characteristics of the appearance inspection device 1 as a device and executing the inspection item data DTu described in the system program. It has a function of delivering the inspection item data DTu to the execution processing unit.

【0019】スケジューラ13では、たとえば図3に示
すように、まず画像処理部5で一度に処理できる検査項
目データの個数を確認した後(S1)、領域Atの検査
項目データDTuについて検査項目の対象が白画素(2
値化画像の画素のうち閾値に対して明部側の画素)が存
在するか否かを判定する(S2)。白画素を対象とする
検査項目データDTuがあれば、白画素を対象とする検
査項目データDTuについてステップS1で確認した個
数以下の検査項目データDTuを取込み(S3)、シス
テムプログラムの実行処理部に検査項目データDTuを
引き渡し(S4)、被検査物について検査項目データD
Tuで設定した所要の特徴量を求める(S5)。白画素
を対象とする検査項目データDTuのうち未処理のもの
があれば(S6)、ステップS3に戻り、次の検査項目
データDTuを取り込む。
In the scheduler 13, for example, as shown in FIG. 3, first, the number of inspection item data that can be processed at a time by the image processing unit 5 is confirmed (S1), and then the inspection item data DTu in the area At is targeted for inspection items. Is a white pixel (2
It is determined whether or not there is a pixel on the bright side of the threshold value of the binarized image) (S2). If there is the inspection item data DTu targeting the white pixels, the inspection item data DTu of the number equal to or less than the number confirmed in step S1 for the inspection item data DTu targeting the white pixels are fetched (S3), and the execution processing unit of the system program is executed. The inspection item data DTu is delivered (S4), and the inspection item data D for the object to be inspected
The required feature amount set by Tu is obtained (S5). If there is unprocessed inspection item data DTu for the white pixels (S6), the process returns to step S3 to fetch the next inspection item data DTu.

【0020】また、白画素を対象とする検査項目が終了
すれば、黒画素(2値化画像の画素のうち閾値に対して
暗部側の画素)が存在するか否かを判定する(S7)。
以下、白画素の場合と同様に、同時に処理できる個数以
下の検査項目データDTuを取り込み(S8)、システ
ムプログラムの実行処理部に引き渡して(S9)、被検
査物の特徴量を求める(S10)。黒画素を対象とする
検査項目データDTuがすべて処理されると(S1
1)、スケジューラ13の処理が終了する。
When the inspection item for the white pixels is completed, it is determined whether or not there are black pixels (pixels on the dark side with respect to the threshold value among the pixels of the binarized image) (S7). .
Thereafter, as in the case of the white pixels, the inspection item data DTu, which is equal to or less than the number that can be processed at the same time, is fetched (S8) and delivered to the execution processing unit of the system program (S9) to obtain the characteristic amount of the inspection object (S10). . When all the inspection item data DTu for the black pixels are processed (S1
1), the processing of the scheduler 13 ends.

【0021】上記手順では、ステップS5、ステップS
10ではシステムプログラムにおける実行処理部が検査
項目データDTuを実行して特徴量を求めるから、使用
者は外観検査装置1の細部の特性について知る必要はな
く、単に検査項目データDTuをユーザプログラムPu
として記述すればよいことになる。また、検査項目デー
タDTuの実行処理を行なう部分をユーザプログラムP
uとして記述する必要がないから、ユーザプログラムP
uの記述が容易になるとともに、同じ処理であればユー
ザプログラムPuのサイズを従来よりも縮小することが
できる。
In the above procedure, step S5 and step S
In 10, the execution processing unit in the system program executes the inspection item data DTu to obtain the characteristic amount, so that the user does not need to know the detailed characteristics of the appearance inspection apparatus 1 and simply outputs the inspection item data DTu to the user program Pu.
It should be described as. In addition, the portion which executes the execution processing of the inspection item data DTu is the user program P.
Since it is not necessary to describe it as u, the user program P
The description of u becomes easy, and the size of the user program Pu can be reduced compared to the conventional case if the same processing is performed.

【0022】スケジューラ13の起動は、ユーザプログ
ラムPuによって行なえばよいのであって、ユーザプロ
グラムPuからのスケジューラ13の起動により、ユー
ザプログラムPuで記述された検査項目データDTu
は、システムプログラムの実行処理部で実行されるので
ある。 (実施例2)実施例1ではユーザプログラムPuから検
査項目データDTuのみをスケジューラ13の管理する
領域Atに書き込むようにしていたが、本実施例では、
図4に示すように、システムプログラムにより設定した
検査項目データDTsを検査項目データDTuと合わせ
て領域Atに書き込むようにしている。すなわち、ユー
ザプログラムPuにより記述した検査手順では、システ
ムプログラムにすでに用意されている検査項目データD
Tsを流用すればよい場合もある。そこで、システムプ
ログラムに複数種類用意されている検査項目データDT
sのうち、所望の検査項目データDTsを選択して領域
Atに格納し、またユーザプログラムPuで定義した検
査項目データDTuも領域Atに格納するのである。シ
ステムプログラムから所要の検査項目DTsを領域At
に格納する作業は、外観検査装置1に設けた入出力部9
からの指令で行なえばよい。
The activation of the scheduler 13 may be performed by the user program Pu, and the inspection item data DTu described in the user program Pu by the activation of the scheduler 13 from the user program Pu.
Is executed by the execution processing unit of the system program. (Second Embodiment) In the first embodiment, only the inspection item data DTu is written from the user program Pu into the area At managed by the scheduler 13, but in the present embodiment,
As shown in FIG. 4, the inspection item data DTs set by the system program is written in the area At together with the inspection item data DTu. That is, in the inspection procedure described by the user program Pu, the inspection item data D already prepared in the system program
In some cases, Ts may be diverted. Therefore, inspection item data DT prepared in plural types in the system program
Of s, desired inspection item data DTs is selected and stored in the region At, and the inspection item data DTu defined by the user program Pu is also stored in the region At. Area At of the required inspection item DTs from the system program
The work of storing in the input / output unit 9 provided in the visual inspection apparatus 1
It can be done by a command from.

【0023】検査項目データDTs,DTuが領域At
に格納されれば、実施例1と同様にしてユーザプログラ
ムPuからスケジューラ13を起動し、各検査項目デー
タDTs,DTuをシステムプログラムで実行させるの
である。他の構成は実施例1と同様である。 (実施例3)実施例2では、検査項目データDTs,D
Tuを揮発性メモリ11に設定した領域Atにのみ格納
していたが、この場合には電源が切れたときに、検査項
目データDTs,DTuが消失することになる。そこ
で、本実施例では、図5に示すように、領域Atに格納
した検査項目データDTs,DTuを不揮発性メモリ1
2に保存するようにしてある。
The inspection item data DTs and DTu are in the area At
Then, the scheduler 13 is activated from the user program Pu and the inspection item data DTs and DTu are executed by the system program as in the first embodiment. Other configurations are similar to those of the first embodiment. (Example 3) In Example 2, the inspection item data DTs, D
Although Tu was stored only in the area At set in the volatile memory 11, in this case, the inspection item data DTs and DTu will be lost when the power is turned off. Therefore, in this embodiment, as shown in FIG. 5, the inspection item data DTs and DTu stored in the area At are stored in the nonvolatile memory 1.
It is designed to be stored in 2.

【0024】すなわち、領域Atに検査項目データDT
s,DTuを格納した後に、不揮発性メモリ12の相応
する適当な空き領域(この領域が保存用メモリになる)
に検査項目データDTs,DTuを複写するのである。
電源投入時には、不揮発性メモリ12から領域Atへ検
査項目データDTs,DTuが複写されて検査の実行が
可能になる。ここに、揮発性メモリ11と不揮発性メモ
リ12との間での検査項目データDTs,DTuの複写
は、システムプログラムに記述されているデータ複写部
により処理される。他の構成および動作は実施例2と同
様である。
That is, the inspection item data DT is set in the area At.
After storing s and DTu, a corresponding appropriate empty area of the non-volatile memory 12 (this area becomes a storage memory)
The inspection item data DTs and DTu are copied to the.
When the power is turned on, the inspection item data DTs and DTu are copied from the non-volatile memory 12 to the area At, and the inspection can be executed. Here, the copying of the inspection item data DTs, DTu between the volatile memory 11 and the non-volatile memory 12 is processed by the data copying unit described in the system program. Other configurations and operations are similar to those of the second embodiment.

【0025】(実施例4)本実施例では、図6に示すよ
うに、ユーザプログラムPuで定義した検査項目データ
DTuを、まず不揮発性メモリ11の適当な空き領域
(この領域が保存メモリになる)に格納するようにして
いるものであって、システムプログラムから選択した検
査項目データDTsも不揮発性メモリ12に格納されて
いる。こうにして、不揮発性メモリ12に検査項目デー
タDTs,DTuを揃えた後に、揮発性メモリ11にお
けるスケジューラ13が管理する領域Atに検査項目デ
ータDTs,DTuを複写するのである。この複写はシ
ステムプログラムにより実現されているデータ複写部に
より処理される。
(Embodiment 4) In this embodiment, as shown in FIG. 6, the inspection item data DTu defined by the user program Pu is first stored in an appropriate empty area of the non-volatile memory 11 (this area becomes a storage memory). ), And the inspection item data DTs selected from the system program are also stored in the non-volatile memory 12. In this way, after the inspection item data DTs and DTu are arranged in the non-volatile memory 12, the inspection item data DTs and DTu are copied to the area At managed by the scheduler 13 in the volatile memory 11. This copying is processed by the data copying unit realized by the system program.

【0026】本実施例の手順では、検査項目データDT
s,DTuが不揮発性メモリ12に一旦格納されるか
ら、実施例3と同様に電源の遮断時にも検査項目データ
DTs,DTuを保持しておくことができる。他の構成
および動作は実施例2と同様である。 (実施例5)本実施例は、すでに不揮発性メモリ12に
格納されている検査項目データDTs,DTuを、新た
に記述したユーザプログラムPuで利用できるようにす
る例であって、図7に示すように、ユーザプログラムP
uでは不揮発性メモリ12から読み出した検査項目デー
タDTs,DTuを修正し、不揮発性メモリ12に再度
保存できるようにしてある。このような処理を行なえ
ば、実施例3あるいは実施例4のようにユーザプログラ
ムPuを不揮発性メモリ12に保存する場合であって、
ユーザプログラムPuで実際に用いる検査項目データD
Ts,DTuと、すでに不揮発性メモリ12に格納され
ている検査項目データDTs,DTuとの間で大幅な差
異がなく、不揮発性メモリ12に格納されている検査項
目データDTs,DTuの簡単な修正程度で使用できる
場合には、ユーザプログラムPuでの検査項目データD
Ts,DTuの定義が容易になるのである。
In the procedure of this embodiment, the inspection item data DT
Since s and DTu are temporarily stored in the non-volatile memory 12, the inspection item data DTs and DTu can be held even when the power is turned off, as in the third embodiment. Other configurations and operations are similar to those of the second embodiment. (Fifth Embodiment) This embodiment is an example in which the inspection item data DTs and DTu already stored in the non-volatile memory 12 can be used by the newly described user program Pu, and is shown in FIG. User program P
In u, the inspection item data DTs and DTu read from the non-volatile memory 12 are corrected and can be stored again in the non-volatile memory 12. When such processing is performed, the user program Pu is stored in the non-volatile memory 12 as in the third or fourth embodiment.
Inspection item data D actually used by the user program Pu
There is no significant difference between Ts and DTu and the inspection item data DTs and DTu already stored in the non-volatile memory 12, and the inspection item data DTs and DTu stored in the non-volatile memory 12 can be simply modified. If it can be used in a certain degree, the inspection item data D in the user program Pu
The definition of Ts and DTu becomes easy.

【0027】たとえば、同じ作業を行なう複数台の外観
検査装置に検査項目データDTs,DTuを設定する場
合には、1台の外観検査装置1で調整済の検査項目デー
タDTs,DTuを他の外観検査装置1に複写すると、
他の外観検査装置1では被検査物と画像入力装置(CC
Dカメラ2)との相対位置の相違に対する検査項目デー
タDTs,DTuに含まれる位置の補正などの調整作業
が必要になる。このような調整作業を人手によって行な
うのでは手間がかかり、かつ調整内容にばらつきが生じ
ることがあるから、ユーザプログラムPuにおいて、図
8のように、検査項目データDTs,DTuの自動調整
を行なう処理を付加しておく。すなわち、装置の機械的
誤差に起因する位置ずれを測定し(S1)、機械的誤差
を計算する(S2)。このようにして求めた誤差に対し
て検査項目データDTs,DTuについての位置補正を
行なう(S3)。また、2値化画像を得るのに必要な最
適な閾値を求めるための検査項目データDTs,DTu
を実行し(S4)、閾値を修正するとともに閾値を不揮
発性メモリ12に保存する(S5)。次に、ステップS
3で位置補正した検査項目データDTs,DTuを実行
して(S6)、被検査物に対する検査項目データDT
s,DTuの位置ずれを修正するとともに不揮発性メモ
リ12に修正後の検査項目データDTs,DTuを登録
する(S7)。ここで、必要に応じて判定基準の修正も
行なう。
For example, when the inspection item data DTs and DTu are set in a plurality of appearance inspection devices that perform the same work, the inspection item data DTs and DTu adjusted by one appearance inspection device 1 are used for other appearance inspection devices. When copied to the inspection device 1,
In the other appearance inspection device 1, the inspection object and the image input device (CC
Adjustment work such as correction of the position included in the inspection item data DTs, DTu for the difference in relative position with the D camera 2) is required. If such an adjustment work is manually performed, it may be time-consuming and the contents of the adjustment may vary. Therefore, in the user program Pu, a process for automatically adjusting the inspection item data DTs and DTu as shown in FIG. Is added. That is, the positional deviation caused by the mechanical error of the device is measured (S1), and the mechanical error is calculated (S2). Positional correction is performed on the inspection item data DTs and DTu with respect to the error thus obtained (S3). Also, the inspection item data DTs and DTu for obtaining the optimum threshold value necessary for obtaining the binarized image.
Is executed (S4), the threshold is corrected and the threshold is stored in the non-volatile memory 12 (S5). Next, step S
The inspection item data DTs and DTu whose position has been corrected in step 3 are executed (S6), and the inspection item data DT for the object to be inspected
The position deviations of s and DTu are corrected, and the corrected inspection item data DTs and DTu are registered in the nonvolatile memory 12 (S7). Here, the judgment criterion is also corrected if necessary.

【0028】上述のようなユーザプログラムPuを用い
れば、複数台の外観検査装置1について検査項目データ
DTs,DTuを、その外観検査装置1の機差に応じて
設定することができるのであり、しかも自動的に設定す
るから手間がかからないのである。
By using the user program Pu as described above, it is possible to set the inspection item data DTs and DTu for a plurality of appearance inspection devices 1 according to the machine difference of the appearance inspection devices 1. Since it is set automatically, there is no hassle.

【0029】[0029]

【発明の効果】請求項1の発明は、使用者が作成したユ
ーザプログラムに含まれる検査項目データを検査項目メ
モリに格納し、検査項目メモリに格納された各検査項目
データをスケジューラによって所定の手順で選択すると
ともに、スケジューラで選択した検査項目データを検査
項目データを用いて検査を実行する既存の実行処理部に
対して引き渡すようにし、かつスケジューラをユーザプ
ログラムにより起動するから、ユーザプログラムに検査
項目データを記述する際に、検査項目データに対応した
検査を実行する処理は、外観検査装置がシステムとして
備えている既存のものを用いることができ、従来のよう
に検査項目データの実行処理についてもユーザプログラ
ムに記述する場合に比較すると、ユーザプログラムの作
成に要する手間が大幅に削減されるという利点がある。
また、既存の実行処理部はメーカ側で外観検査装置の特
性を考慮して作成されるものであって、この既存の実行
処理部に対して検査項目データを引き渡すだけで検査を
行なうようにしているから、使用者側では外観検査装置
の細部の特性については考慮する必要がなく、外観検査
装置について十分な知識がない使用者でも比較的容易に
ユーザプログラムを作成することが可能になるという利
点がある。
According to the invention of claim 1, the inspection item data included in the user program created by the user is stored in the inspection item memory, and each inspection item data stored in the inspection item memory is subjected to a predetermined procedure by the scheduler. In addition, the inspection item data selected by the scheduler is passed to the existing execution processing unit that executes the inspection using the inspection item data, and the scheduler is started by the user program. When describing the data, the existing process that the visual inspection device has as a system can be used as the process for executing the inspection corresponding to the inspection item data. Compared to writing in a user program, the time required to create the user program is It has the advantage of being reduced to the width.
Also, the existing execution processing unit is created by the manufacturer in consideration of the characteristics of the appearance inspection device, and the inspection is performed only by passing the inspection item data to the existing execution processing unit. Therefore, the user does not need to consider the characteristics of the details of the appearance inspection device, and even a user who does not have sufficient knowledge about the appearance inspection device can create a user program relatively easily. There is.

【0030】請求項2の発明は、検査項目メモリにユー
ザプログラムと既存の検査項目データとを混在させてい
るから、外観検査装置が保有している検査項目データと
同じ検査項目データをユーザプログラムで使用する場合
に、既存の検査項目データを検査項目メモリに転送する
だけで利用することができ、ユーザプログラムでの検査
項目の記述量が削減されてユーザプログラムの作成が一
層容易になるという利点がある。
According to the second aspect of the present invention, since the user program and the existing inspection item data are mixed in the inspection item memory, the same inspection item data as the inspection item data possessed by the appearance inspection apparatus can be stored in the user program. When used, it can be used by simply transferring the existing inspection item data to the inspection item memory, which reduces the description amount of the inspection item in the user program and makes it easier to create the user program. is there.

【0031】請求項3の発明は、検査項目メモリとして
揮発性メモリを用いるものであり、検査項目メモリに登
録された検査項目データを保存する不揮発性メモリより
なる保存用メモリを付加していることによって、電源遮
断時でも検査項目データが保存用メモリに保存され、次
に電源を投入する際には検査項目データを保存用メモリ
から検査項目メモリに複写するだけで検査を実行するこ
とができ、検査項目データを再度設定しなおす手間が生
じないという利点がある。
According to the third aspect of the invention, a volatile memory is used as the inspection item memory, and a storage memory including a non-volatile memory for storing the inspection item data registered in the inspection item memory is added. Allows the inspection item data to be saved in the storage memory even when the power is cut off, and the next time the power is turned on, the inspection item data can be copied from the storage memory to the inspection item memory to perform the inspection. There is an advantage that the trouble of resetting the inspection item data again does not occur.

【0032】請求項4の発明は、請求項3の発明と同様
に、不揮発性メモリよりなる保存用メモリに検査項目デ
ータを保存するようにしているものであり、検査項目デ
ータを保存用メモリに格納した後に検査項目メモリに複
写するから、検査項目データの設定中に電源が遮断して
も、すでに設定されている検査項目データは保存用メモ
リに残ることになり、検査項目データを一層安全に保存
することができるという利点がある。
According to a fourth aspect of the invention, like the third aspect of the invention, the inspection item data is stored in a storage memory composed of a non-volatile memory, and the inspection item data is stored in the storage memory. Since it is copied to the inspection item memory after it is stored, even if the power is cut off while setting the inspection item data, the already set inspection item data will remain in the storage memory, making the inspection item data safer. It has the advantage that it can be saved.

【0033】請求項5の発明は、保存用メモリに格納さ
れた検査項目データのユーザプログラムによる修正を許
可しているから、一旦設定された検査項目データであっ
ても必要に応じて修正することができ、しかも、修正前
の検査項目データと修正後の検査項目データとの差異が
少ないときには、保存用メモリに格納されている検査項
目データを利用して新たな検査項目データを作成するこ
とができ、検査項目データの作成が一層容易になるとい
う効果がある。
According to the fifth aspect of the present invention, the inspection item data stored in the storage memory is permitted to be corrected by the user program. Therefore, even the inspection item data once set can be corrected as necessary. When the difference between the inspection item data before correction and the inspection item data after correction is small, new inspection item data can be created using the inspection item data stored in the storage memory. Therefore, there is an effect that the inspection item data can be created more easily.

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

【図1】実施例1の概念説明図である。FIG. 1 is a conceptual explanatory diagram of a first embodiment.

【図2】実施例1に用いる外観検査装置のブロック図で
ある。
FIG. 2 is a block diagram of an appearance inspection device used in the first embodiment.

【図3】実施例1に用いるスケジューラの動作説明図で
ある。
FIG. 3 is an operation explanatory diagram of a scheduler used in the first embodiment.

【図4】実施例2の概念説明図である。FIG. 4 is a conceptual explanatory diagram of a second embodiment.

【図5】実施例3の概念説明図である。FIG. 5 is a conceptual explanatory view of the third embodiment.

【図6】実施例4の概念説明図である。FIG. 6 is a conceptual explanatory diagram of the fourth embodiment.

【図7】実施例5の概念説明図である。FIG. 7 is a conceptual explanatory diagram of the fifth embodiment.

【図8】実施例5で用いるユーザプログラムの例を示す
動作説明図である。
FIG. 8 is an operation explanatory diagram showing an example of a user program used in the fifth embodiment.

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

1 外観検査装置 11 揮発性メモリ 12 不揮発性メモリ 13 スケジューラ At 領域 DTp 検査項目データ DTu 検査項目データ Pu ユーザプログラム 1 Visual inspection device 11 Volatile memory 12 Non-volatile memory 13 scheduler At area DTp inspection item data DTu inspection item data Pu user program

───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 平6−186003(JP,A) 特開 平3−59476(JP,A) 特開 平5−340983(JP,A) 特開 平6−75014(JP,A) 特開 平6−75939(JP,A) 特開 昭62−76756(JP,A) 特開 昭63−1245(JP,A) 特開 昭64−13477(JP,A) 特開 平3−100409(JP,A) 特開 平5−113879(JP,A) (58)調査した分野(Int.Cl.7,DB名) G01B 11/24 G01N 21/88 G06T 1/00 ─────────────────────────────────────────────────── ─── Continuation of the front page (56) Reference JP-A-6-186003 (JP, A) JP-A-3-59476 (JP, A) JP-A-5-340983 (JP, A) JP-A-6- 75014 (JP, A) JP-A-6-75939 (JP, A) JP-A-62-76756 (JP, A) JP-A-63-1245 (JP, A) JP-A-64-13477 (JP, A) JP-A-3-100409 (JP, A) JP-A-5-113879 (JP, A) (58) Fields investigated (Int.Cl. 7 , DB name) G01B 11/24 G01N 21/88 G06T 1/00

Claims (5)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 被検査物を画像入力装置により撮像して
得た画像に画像処理を施すことにより被検査物の外観検
査を行なう外観検査装置において、画像内の検査領域お
よび検査内容を示す検査項目データを格納する書換可能
な検査項目メモリと、検査項目データを用いて検査を実
行する実行処理部と、使用者が作成したユーザプログラ
に含まれる検査項目データを抽出して検査項目メモリ
に格納する検査項目抽出部と、検査項目メモリに格納さ
れた各検査項目データを所定の手順で選択するとともに
選択した検査項目データを前記実行処理部に引き渡すス
ケジューラとを備え、スケジューラはユーザプログラム
により起動されることを特徴とする外観検査装置。
1. A visual inspection apparatus for visual inspection of an object to be inspected by performing image processing on an image obtained by picking up an image of the object to be inspected by an image input device. Perform the inspection using the rewritable inspection item memory that stores the item data and the inspection item data.
Execution processing unit for executing, inspection item extraction unit for extracting inspection item data contained in the user program created by the user and storing it in the inspection item memory, and each inspection item data stored in the inspection item memory in a predetermined manner. and a scheduler to deliver the inspection item data selected with select in step to said execution processing unit, the appearance inspection apparatus scheduler is characterized in that it is activated by the user program.
【請求項2】 検査項目メモリには、ユーザプログラム
とは別にあらかじめ設定されている検査項目データとユ
ーザプログラムに含まれる検査項目データとが混在して
格納されることを特徴とする請求項1記載の外観検査装
置。
2. The inspection item memory stores inspection item data preset in addition to the user program and inspection item data included in the user program in a mixed manner. Appearance inspection device.
【請求項3】 被検査物を画像入力装置により撮像して
得た画像に画像処理を施すことにより被検査物の外観検
査を行なう外観検査装置において、画像内の検査領域お
よび検査内容を示す検査項目データを格納する揮発性メ
モリである検査項目メモリと、検査項目データを用いて
検査を実行する実行処理部と、検査項目メモリに登録さ
れた検査項目データを保存する不揮発性メモリである保
存用メモリと、使用者が作成したユーザプログラムに含
まれる検査項目データを抽出して検査項目メモリに格納
する検査項目抽出部と、検査項目メモリに格納された各
検査項目データを所定の手順で選択するとともに選択し
た検査項目データを前記実行処理部に引き渡すスケジュ
ーラとを備え、スケジューラはユーザプログラムにより
起動されることを特徴とする外観検査装置。
3. An appearance inspection apparatus for performing an appearance inspection of an inspection object by performing image processing on an image obtained by picking up an image of the inspection object by an image input device, and an inspection indicating an inspection area and inspection content in the image. Using the inspection item memory, which is a volatile memory that stores item data, and the inspection item data
An execution unit for executing inspection, and storage memory is a nonvolatile memory that stores the inspection item data registered to the inspection item memory, including the user program that you have created
A test item extracting unit for Murrell storing inspection item data to the inspection item memory extract and the said run processing inspection item data selected with the respective inspection item data stored in the inspection item memory selects a predetermined procedure A visual inspection apparatus, comprising: a scheduler for handing over to a unit, the scheduler being activated by a user program.
【請求項4】 被検査物を画像入力装置により撮像して
得た画像に画像処理を施すことにより被検査物の外観検
査を行なう外観検査装置において、画像内の検査領域お
よび検査内容を示す検査項目データを格納する揮発性メ
モリである検査項目メモリと、検査項目データを用いて
検査を実行する実行処理部と、検査項目データを保存す
る不揮発性メモリである保存用メモリと、使用者が作成
したユーザプログラムに含まれる検査項目データを抽出
して保存用メモリに格納する検査項目抽出部と、保存用
メモリから検査項目データを検査項目メモリに複写する
データ複写部と、検査項目メモリに格納された各検査項
目データを所定の手順で選択するとともに選択した検査
項目データを前記実行処理部に引き渡すスケジューラと
を備え、スケジューラはユーザプログラムにより起動さ
れることを特徴とする外観検査装置。
4. An appearance inspection apparatus for performing an appearance inspection of an inspection object by performing image processing on an image obtained by picking up an image of the inspection object by an image input device, and an inspection indicating an inspection area and inspection content in the image. Using the inspection item memory, which is a volatile memory that stores item data, and the inspection item data
Execution processing unit that executes inspection, storage memory that is a non-volatile memory that stores inspection item data, and inspection item data included in user programs created by the user
The inspection item extraction unit that stores the data in the memory for storage and the data copying unit that copies the inspection item data from the memory for storage in the inspection item memory, and each inspection item data stored in the memory for the inspection item is selected in a predetermined procedure. and a scheduler for the inspection item data selected delivered to the execution processing unit as well as, appearance inspection apparatus scheduler is characterized in that it is activated by the user program.
【請求項5】 保存用メモリに格納された検査項目デー
タはユーザプログラムによる修正が許可されていること
を特徴とする請求項3または請求項4記載の外観検査装
置。
5. The appearance inspection apparatus according to claim 3, wherein the inspection item data stored in the storage memory is permitted to be modified by a user program.
JP17453894A 1994-07-26 1994-07-26 Appearance inspection device Expired - Fee Related JP3500711B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP17453894A JP3500711B2 (en) 1994-07-26 1994-07-26 Appearance inspection device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP17453894A JP3500711B2 (en) 1994-07-26 1994-07-26 Appearance inspection device

Publications (2)

Publication Number Publication Date
JPH0843053A JPH0843053A (en) 1996-02-16
JP3500711B2 true JP3500711B2 (en) 2004-02-23

Family

ID=15980294

Family Applications (1)

Application Number Title Priority Date Filing Date
JP17453894A Expired - Fee Related JP3500711B2 (en) 1994-07-26 1994-07-26 Appearance inspection device

Country Status (1)

Country Link
JP (1) JP3500711B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1032810A (en) * 1996-07-15 1998-02-03 Matsushita Electric Works Ltd Image-processing inspecting device
JP2005092801A (en) * 2003-09-19 2005-04-07 Laurel Bank Mach Co Ltd Large bundle of paper money checking device
JP4330963B2 (en) * 2003-09-19 2009-09-16 ローレルバンクマシン株式会社 Large bundle banknote inspection device

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6276756A (en) * 1985-09-30 1987-04-08 Toshiba Corp Semiconductor device with self-inspecting circuit
JPH0654940B2 (en) * 1986-06-20 1994-07-20 富士ゼロックス株式会社 Automatic image inspection device
JPS6413477A (en) * 1987-07-07 1989-01-18 Nec Corp Testing device for integrated circuit
JPH0359476A (en) * 1989-07-28 1991-03-14 Mitsubishi Electric Corp Method for measuring electronic circuit
JP2744081B2 (en) * 1989-09-14 1998-04-28 株式会社ミツトヨ Measurement support device
JPH05113879A (en) * 1991-10-23 1993-05-07 T A S Tsusho Kk Program creation and data processing method
JPH05340983A (en) * 1992-06-08 1993-12-24 Canon Inc Testing method
JP2702042B2 (en) * 1992-08-26 1998-01-21 本田技研工業株式会社 Simulation system for parts inspection program
JPH0675014A (en) * 1992-08-28 1994-03-18 Nec Ic Microcomput Syst Ltd Inspecting method for semiconductor integrated circuit device
JPH06186003A (en) * 1992-12-16 1994-07-08 Apic Yamada Kk Image processor

Also Published As

Publication number Publication date
JPH0843053A (en) 1996-02-16

Similar Documents

Publication Publication Date Title
KR100702397B1 (en) Image processing system, image processing method and recording medium storing image processing program
US7646415B2 (en) Image correction apparatus correcting and displaying corrected area and method of controlling same
US7356204B2 (en) Image processing apparatus and method of controlling same, computer program and computer-readable storage medium
US20040233301A1 (en) Digital camera
US20020181801A1 (en) Feature-based image correction
US6373499B1 (en) Automated emphasizing of an object in a digital photograph
US8620105B2 (en) Image processing apparatus and image processing method
US20140002692A1 (en) Method and apparatus for automatically categorizing images in a digital camera
US7777912B2 (en) Method and apparatus for selective editing of an automatic digital image correction
US7873186B2 (en) Target-image detecting apparatus and method of controlling same
JP3500711B2 (en) Appearance inspection device
US7970238B2 (en) Method and apparatus for acquiring image of internal structure, and computer product
US7715650B2 (en) Method and apparatus for digital processing of images
US20070064010A1 (en) Display apparatus and control method thereof
JP7094806B2 (en) Image processing device and its control method, image pickup device, program
JP4801933B2 (en) Image processing apparatus and method, and image processing program
US5331441A (en) Color image reading apparatus having color correction coefficients
US6356671B1 (en) Image processing method for an industrial visual sensor
EP0547245B1 (en) Image processing method for industrial visual sensor
EP1304617A2 (en) Optical navigation sensor with shadow memory
JP4400481B2 (en) Image processing device
JP7152986B2 (en) Stone restoration position identification method and stone restoration position identification device
JP3952869B2 (en) Image processing method and image processing program
JP4195955B2 (en) Image processing system and data editing method thereof
US20030110002A1 (en) Method and device for automatically calibrating a digitizer

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: 20031111

LAPS Cancellation because of no payment of annual fees