JP2002251603A - Image processing program formation method and system for it - Google Patents

Image processing program formation method and system for it

Info

Publication number
JP2002251603A
JP2002251603A JP2001049111A JP2001049111A JP2002251603A JP 2002251603 A JP2002251603 A JP 2002251603A JP 2001049111 A JP2001049111 A JP 2001049111A JP 2001049111 A JP2001049111 A JP 2001049111A JP 2002251603 A JP2002251603 A JP 2002251603A
Authority
JP
Japan
Prior art keywords
image processing
processing subroutine
subroutine
image
processing 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.)
Granted
Application number
JP2001049111A
Other languages
Japanese (ja)
Other versions
JP4442042B2 (en
Inventor
Yoshihiko Sugimoto
義彦 杉本
Takeshi Masuda
剛 増田
Mitsuru Shirasawa
満 白澤
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 JP2001049111A priority Critical patent/JP4442042B2/en
Publication of JP2002251603A publication Critical patent/JP2002251603A/en
Application granted granted Critical
Publication of JP4442042B2 publication Critical patent/JP4442042B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Image Analysis (AREA)
  • Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)
  • Processing Or Creating Images (AREA)
  • Stored Programmes (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

PROBLEM TO BE SOLVED: To allow a user to form an image processing program for an image processor without requiring any knowledge about image processing. SOLUTION: An image processing program formation function arranged in the image processor 4 displays an objective image obtained by photographing the image processing object on an input/output display device 1, and from at least a single pair of combination of a plurality of kinds of image processing objects and inspection purposes stored in an image processing storage part 431, a matching image processing subroutine candidate set is selected according to an item selected by inputting operation through an operation inputting device 3. Each of a plurality of kinds of image processing subroutine candidates is executed on all or a part of the objective images inside a designated area designated by inputting operation through the operation inputting device 3, and on the basis of the respective execution results of the selected plural kinds of image processing subroutine candidates, the image processing subroutine candidate selected from the set is incorporated into the image processing program as an image processing subroutine to an image inside the designated area.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、画像処理装置の画
像処理プログラムを作成するための画像処理プログラム
作成方法およびそのシステムに関するものである。
The present invention relates to a method and system for creating an image processing program for creating an image processing program for an image processing apparatus.

【0002】[0002]

【従来の技術】この種の従来技術として、特開平7−1
60843号公報には、所定の画像処理を実行する画像
処理サブルーチンを複数記憶した記憶手段と、記憶手段
に記憶された画像処理サブルーチンをメニュー表示する
表示手段と、操作者の指示により、メニュー表示から所
望のサブルーチンを選択する選択手段と、選択手段によ
って選択されたサブルーチンを呼び出して、この呼び出
したサブルーチンの実行を含む画像認識プログラムを構
築する構築手段とを含む画像認識プログラム構築装置が
開示されている。この装置では、操作者が所望の画像処
理サブルーチンを選択すると、その画像処理をした結果
がモニタ上に表示される。操作者は、その画像処理の結
果に満足すれば、画像処理サブルーチンを画像認識プロ
グラムに登録し、結果に満足しない場合は、再び、選択
を繰り返すことになる。登録は、テーブルに画像処理サ
ブルーチンを書き込むことにより行われる。登録されて
いる画像処理サブルーチンを画像処理ライブラリから呼
び出すことにより、所望の画像処理を実行する画像認識
プログラムが実現される。この画像認識プログラム構築
装置では、アルゴリズムに関する知識のあるユーザが、
画像処理の知識からメニューを辿り、選択した画像処理
サブルーチンの結果を見てこれを取捨する。また、画像
処理の知識のあるユーザがメニューで選択した一の結果
の表示を見て画像処理サブルーチンを登録するかどうか
を決定する。
2. Description of the Related Art Japanese Patent Laid-Open No.
Japanese Patent Application Laid-Open No. 60843 discloses a storage means for storing a plurality of image processing subroutines for executing predetermined image processing, a display means for displaying a menu of image processing subroutines stored in the storage means, An image recognition program construction apparatus is disclosed which includes selection means for selecting a desired subroutine, and construction means for calling a subroutine selected by the selection means and constructing an image recognition program including execution of the called subroutine. . In this device, when an operator selects a desired image processing subroutine, the result of the image processing is displayed on a monitor. If the operator is satisfied with the result of the image processing, the operator registers the image processing subroutine in the image recognition program, and if not satisfied with the result, the operator repeats the selection again. Registration is performed by writing an image processing subroutine in a table. By calling a registered image processing subroutine from the image processing library, an image recognition program for executing desired image processing is realized. In this image recognition program construction device, a user with knowledge about the algorithm
The menu is traced from the knowledge of the image processing, and the result of the selected image processing subroutine is discarded. Also, it is determined whether or not to register the image processing subroutine by seeing the display of one result selected by the user with knowledge of the image processing on the menu.

【0003】特開2000−56958公報には、画像
データに対してそれぞれ各種処理を行う入出力の各引数
を持つ複数のソフトウエア部品を備え、少なくとも入力
引数と出力引数とを対応させて複数のソフトウエア部品
を結合させて所望の画像処理機能を実現する画像処理ソ
フトウエアの自動生成方法が開示されている。この方法
は、ソフトウエア部品の入出力関係で、ソフトウエア部
品同士の結合候補を探し、画像処理ソフトウエアを自動
的に生成する。
Japanese Patent Application Laid-Open No. 2000-56958 has a plurality of software components each having input and output arguments for performing various processes on image data. An automatic generation method of image processing software that realizes a desired image processing function by combining software components is disclosed. According to this method, image processing software is automatically generated by searching for a connection candidate between software components based on the input / output relationship of the software components.

【0004】特開昭63−191278号公報には、外
部記憶装置にアルゴリズムの操作仕様とアルゴリズムの
使用に関する画像処理専門家のノウハウを格納し、画像
処理アルゴリズム実行時のユーザへの入力要求に関して
ユーザへの入力選択の判断基準の説明もしくは入力の選
択範囲限定もしくは入力自動選択を行う画像処理アルゴ
リズム実行時のユーザ支援方式が開示されている。この
方式は、ユーザが副機能選択やパラメータ値設定のため
に入力を要求される場合に入力を決定することを支援す
る。
Japanese Patent Application Laid-Open No. 63-191278 stores an operation specification of an algorithm and know-how of an image processing expert regarding the use of the algorithm in an external storage device. There is disclosed a user support method at the time of executing an image processing algorithm for explaining a criterion for determining an input selection to an input, limiting an input selection range, or automatically selecting an input. This scheme assists the user in determining the input when it is required to select a sub-function or set a parameter value.

【0005】特願2000−193408の外観検査プ
ログラム作成装置は、画像処理アルゴリズム記憶部に記
憶されている画像処理アルゴリズムと、検査対象種別標
準検査フロー記憶部に記憶されている検査パラメータと
を組み合わせて、外観検査プログラムを作成する。
The appearance inspection program creating device of Japanese Patent Application No. 2000-193408 combines an image processing algorithm stored in an image processing algorithm storage unit with an inspection parameter stored in an inspection object type standard inspection flow storage unit. Create a visual inspection program.

【0006】特開平9−288568号公報には、入力
された画像を格納する画像記憶手段と、画像に施す一連
の処理を処理単位として複数種類の処理単位を格納した
処理単位記憶手段と、処理単位記憶手段に格納された処
理単位を選択して用いるための手順を記述した実行フロ
ーを格納する実行フロー記憶手段と、実行フロー記憶手
段に格納された実行フローに従って処理単位記憶手段に
格納された各処理単位を組み合わせて用いることにより
画像記憶手段に格納された画像から対象物に関する特定
の性状を検出する処理手段と、処理手段による処理結果
を出力する出力手段とを備える画像処理装置が開示され
ている。この装置は、画像を施す一連の処理を処理単位
として複数種類の処理単位を、手順を記述した実行フロ
ーによって動作させる。また、画像処理装置の実行フロ
ー作成方法が記載され、未定義の変数名があるときの処
理でフローチャートの作成を禁止する方法が提案されて
いる。
Japanese Patent Application Laid-Open No. Hei 9-288568 discloses an image storage means for storing an input image, a processing unit storage means for storing a plurality of types of processing units using a series of processing to be performed on the image as a processing unit, An execution flow storing means for storing an execution flow describing a procedure for selecting and using a processing unit stored in the unit storage means, and an execution flow stored in the processing unit storage means in accordance with the execution flow stored in the execution flow storage means An image processing apparatus including a processing unit that detects a specific property of an object from an image stored in an image storage unit by using each processing unit in combination and an output unit that outputs a processing result by the processing unit is disclosed. ing. The apparatus operates a plurality of types of processing units in accordance with an execution flow describing a procedure, with a series of processing for applying an image as a processing unit. In addition, a method of creating an execution flow of the image processing apparatus is described, and a method of prohibiting creation of a flowchart in a process when there is an undefined variable name has been proposed.

【0007】ところで、画像処理装置は、外観検査、寸
法測定検査、位置測定検査、傷クラック検査、文字検査
など、画像処理対象の検査に適合するように設定されて
使用される。その設定方法は、メニューを通して、画像
処理装置内に予め内蔵された各機能を取捨選択するとと
もにパラメータを設定することによって画像処理の設定
を行う第1の方法と、画像処理装置上で画像処理の基本
機能としてのプログラムを動かし選別することによって
画像処理の設定を行う第2の方法とに大別される。
Incidentally, the image processing apparatus is set and used so as to be suitable for the inspection of the image processing object such as the appearance inspection, the dimension measurement inspection, the position measurement inspection, the flaw crack inspection, the character inspection and the like. The setting method includes a first method of setting image processing by selecting and selecting parameters included in the image processing apparatus through a menu and setting parameters, and a method of performing image processing on the image processing apparatus. This is roughly classified into a second method of setting image processing by moving and selecting a program as a basic function.

【0008】画像処理装置の検査能力の向上によって、
多種多様な対象物を扱うようになってきている昨今にお
いては、画像処理装置の使用態様を予測する必要のある
第1の方法よりも、上記プログラムをライブラリ化して
ユーザに提供し、ユーザの様々な目的に合った画像処理
装置に設定することができる第2の方法によって設定が
行われる場合が増えてきている。
[0008] By improving the inspection capability of the image processing apparatus,
In recent years in which a variety of objects are being handled, the above-mentioned program is provided to the user as a library and provided to the user rather than the first method which needs to predict the use mode of the image processing apparatus. In many cases, the setting is performed by the second method that can be set to an image processing apparatus suitable for a specific purpose.

【0009】この第2の方法(プログラム方式)では、
画像処理装置のハードウエア性能および画像処理のアル
ゴリズムなど、ユーザにとって作成困難なものがライブ
ラリになっていることが多い。そして、ライブラリは、
例えばC言語ライブラリとしてC言語でまたは画像処理
装置専用ライブラリとして専用言語で提供される。
In the second method (program method),
In many cases, libraries that are difficult for users to create, such as hardware performance of image processing apparatuses and image processing algorithms, are stored in libraries. And the library is
For example, it is provided in a C language as a C language library or in a dedicated language as a library dedicated to an image processing apparatus.

【0010】[0010]

【発明が解決しようとする課題】しかしながら、上記第
2の方法の場合、ユーザにとっては、ライブラリを使い
こなすための前提条件として、当然にその使い方を習得
する必要があることに加えて、そのプログラム言語での
プログラムの設計および作成の技能習得が必要となり、
相当数の工数(訓練)を消化しなければならないといっ
た問題がある。
However, in the case of the above-mentioned second method, the user must naturally learn how to use the library as a prerequisite for mastering the library, in addition to the programming language. You will need to learn the skills of designing and creating programs in
There is a problem that a considerable number of man-hours (training) must be completed.

【0011】このため、画像処理(条件)の設定を自動
化して、上記工数を削減する方法が提案されている(プ
ログラミングの自動化)。例えば自動ティーチングがあ
り、これは、検査対象(物体)を画像処理装置の視野に
捉え、ボタン押下等の動作によって、その画像のデータ
的特徴を抽出し、それを所定の判断アルゴリズムに通し
て所定の判断を行い、この判断により画像処理のパラメ
ータを設定する(例えば特開2000−134467参
照)。
For this reason, a method has been proposed in which the setting of image processing (conditions) is automated to reduce the number of steps (automation of programming). For example, there is automatic teaching, in which an inspection target (object) is captured in the field of view of an image processing apparatus, and a data feature of the image is extracted by an operation such as pressing a button, and the extracted data feature is passed through a predetermined determination algorithm to obtain a predetermined feature. Is determined, and the parameters of the image processing are set based on the determination (for example, see JP-A-2000-134467).

【0012】しかしながら、この方法は、どの画像処理
で検査をするか予め決まっている単機能な画像処理セン
サなどに適用されており、どの画像処理で検査をするか
定まらない汎用の画像処理装置には適さない。この理由
は、汎用の画像処理装置の場合、画像処理対象の画像が
例えば日の丸のような白地に赤丸の画像であったとする
と、その画像からは、赤丸の面積を求めることもでき、
あるいは赤丸の重心位置を求めることもできるなか、人
の判断によらずに判断アルゴリズムのみで、それらのど
ちらを求めるべきであるかの判断を下すことができない
からである。
However, this method is applied to a single-function image processing sensor or the like in which image processing is to be inspected in advance, and is applied to a general-purpose image processing apparatus in which image processing is not determined. Is not suitable. The reason is that, in the case of a general-purpose image processing apparatus, if the image to be processed is an image of a red circle on a white background such as a Japanese flag, the area of the red circle can be obtained from the image,
Alternatively, while it is possible to determine the position of the center of gravity of the red circle, it is not possible to determine which of them should be determined by a determination algorithm alone without depending on human judgment.

【0013】このため、画像処理装置において、どの画
像処理で検査をするかの判断が可能となるように、画像
処理対象の画像に対して領域を指定し、この領域内の画
像のデータ的特徴を限定することにより、どの画像処理
で検査をするかを自動的に設定(自動設定)することが
試みられている。
For this reason, in the image processing apparatus, an area is designated for an image to be image-processed so that it is possible to determine which image processing is to be used for the inspection, and data characteristics of the image in this area are specified. It has been attempted to automatically set (automatically set) which image processing is to be used for inspection by limiting the number of images.

【0014】しかしながら、この自動設定は、ユーザの
判断を領域指定という操作入力で取り込むことで、画像
処理装置側がどの画像処理で検査をするかの判断が容易
になるものの、自動ティーチングと本質的に同じ問題を
持っており、予め想定した画像処理のみを設定できるこ
とに変わりがない。
[0014] However, this automatic setting makes it easier to determine which image processing the image processing apparatus performs the inspection by taking in the user's judgment by an operation input of area designation, but is essentially equivalent to automatic teaching. It has the same problem, and only the image processing assumed in advance can be set.

【0015】この他、プログラムの自動作成手法として
は、ユーザの判断を、対話型インターフェースを通して
取得し、雛形のプログラムを作成するものがある。しか
し、この方法では、ユーザの目的が何であるのかを判別
するための設問を、予め想定して作成する必要がある。
もし、ユーザの目的に合致する設問が用意されていなけ
れば、ユーザは、自己の目的に近いと考える雛形のプロ
グラムが作成されるように、設問に答える必要がある。
この場合、設問に対する答えに応じてどのような雛形の
プログラムが作成されるかを把握していなければならな
い。また、雛形のプログラムの作成時点では、画像処理
によるデータが提示されない状態で判断する必要があ
る。
As another automatic program creation method, there is a method of acquiring a user's judgment through an interactive interface and creating a template program. However, in this method, it is necessary to prepare a question for determining what the purpose of the user is in advance.
If a question matching the user's purpose is not prepared, the user needs to answer the question so that a template program considered to be close to the user's purpose is created.
In this case, it is necessary to know what model program is created according to the answer to the question. In addition, at the time of creation of a template program, it is necessary to make a determination in a state where data by image processing is not presented.

【0016】上記従来の方法は、いずれも想定された機
能を設定する方法であり、設定された機能によって抽出
された画像データのユーザへのフィードバック、ユーザ
による自動設定自体の調整がなく、自動設定自体がユー
ザのニーズに合うようになっていく成長性に欠けるとい
う問題点があった。
Each of the above-mentioned conventional methods is a method for setting an assumed function. The image data extracted by the set function is not fed back to the user, and the automatic setting itself is not adjusted by the user. There has been a problem in that it lacks the growth potential for itself to meet the needs of the user.

【0017】本発明は、上記事情に鑑みてなされたもの
であり、ユーザに画像処理の知識が無くても画像処理装
置の画像処理プログラムを簡単に作成することができる
画像処理プログラム作成方法およびそのシステムを提供
することを目的とする。
The present invention has been made in view of the above circumstances, and an image processing program creating method and an image processing program creating method capable of easily creating an image processing program for an image processing apparatus without a user having knowledge of image processing. The purpose is to provide a system.

【0018】[0018]

【課題を解決するための手段】上記課題を解決するため
の請求項1記載の発明の画像処理プログラム作成方法
は、画像表示用の表示手段と、各種操作入力用の入力手
段と、予め分類された複数種類の画像処理対象項目およ
び複数種類の検査目的項目の少なくとも一方の組みの項
目毎に、複数種類の画像処理サブルーチン候補を含む画
像処理サブルーチン候補セットを記憶する記憶手段とを
利用して、画像処理プログラム作成機能が画像処理装置
の画像処理プログラムを作成する方法であって、画像処
理対象の撮像で得た対象画像を前記表示手段に表示する
ステップと、前記複数種類の画像処理対象項目および複
数種類の検査目的項目の少なくとも一方の組みから、前
記入力手段を通じた操作入力で選択された項目に応じ
て、対応する画像処理サブルーチン候補セットを前記記
憶手段から選択するステップと、この選択された画像処
理サブルーチン候補セットに含まれる複数種類の画像処
理サブルーチン候補の各々を、前記入力手段を通じた操
作入力で指定された指定領域内の、前記対象画像の全部
または一部の画像に対して実行するステップと、前記選
択された複数種類の画像処理サブルーチン候補の各実行
結果を基に、前記選択された画像処理サブルーチン候補
セットから選択された画像処理サブルーチン候補を、前
記指定領域内の画像に対する画像処理サブルーチンとし
て前記画像処理装置の画像処理プログラムに組み込むス
テップとを有することを特徴とする。
According to a first aspect of the present invention, there is provided an image processing program creating method comprising: a display unit for displaying an image; an input unit for inputting various operations; Storage means for storing an image processing subroutine candidate set including a plurality of types of image processing subroutine candidates for at least one set of the plurality of types of image processing target items and the plurality of types of inspection target items, An image processing program creating function for creating an image processing program of the image processing apparatus, wherein a step of displaying a target image obtained by imaging the image processing target on the display unit; and Image processing corresponding to an item selected by an operation input through the input means from at least one set of a plurality of types of inspection purpose items And selecting a plurality of types of image processing subroutine candidates included in the selected image processing subroutine candidate set in a designated area designated by operation input through the input means Selecting from the selected image processing subroutine candidate set based on each execution result of the selected plurality of types of image processing subroutine candidates. Incorporating the selected image processing subroutine candidate into an image processing program of the image processing apparatus as an image processing subroutine for an image in the designated area.

【0019】この方法によれば、ユーザが、入力手段を
通じた操作入力で、複数種類の画像処理対象項目および
複数種類の検査目的項目の少なくとも一方の組みから、
所望の項目を選択するとともに、表示手段に表示された
対象画像に対して領域を指定して指定領域の情報を入力
すると、選択された項目に対応する画像処理サブルーチ
ン候補セットが選択されて、この画像処理サブルーチン
候補セットに含まれる複数種類の画像処理サブルーチン
候補の各々が指定領域内の画像に対して実行され、続い
て、これら画像処理サブルーチン候補の各実行結果を基
に、上記選択された画像処理サブルーチン候補セットか
ら選択された画像処理サブルーチン候補が、指定領域内
の画像に対する画像処理サブルーチンとして画像処理プ
ログラムに組み込まれるようになるから、ユーザに画像
処理の知識が無くても画像処理装置の画像処理プログラ
ムを作成することができる。
According to this method, the user can input an operation input through the input means to select from at least one of a plurality of types of image processing target items and a plurality of types of inspection target items.
When a desired item is selected and an area is specified for the target image displayed on the display means and information on the specified area is input, an image processing subroutine candidate set corresponding to the selected item is selected, and Each of the plurality of types of image processing subroutine candidates included in the image processing subroutine candidate set is executed on the image in the designated area, and subsequently, the selected image The image processing subroutine candidate selected from the processing subroutine candidate set is incorporated into the image processing program as an image processing subroutine for the image in the designated area. A processing program can be created.

【0020】ここで、例えば生産ラインで得られた欠陥
のある検査対象を撮像して得た画像が上記対象画像とし
て使用される場合、対象画像の欠陥のある領域を指定領
域とするなどの簡単な操作で、画像処理プログラムを作
成することができる。また、複数種類の画像処理サブル
ーチン候補には、例えば、異物検査、ひび検査およびク
ラック検査などの各種検査用のものがあるが、外観検
査、寸法測定、有無検知および文字検出などの検査目的
を選択するだけで、検査目的に最適な画像処理サブルー
チン候補が複数種類自動的に選択されることになるの
で、ユーザは、上述の具体的な画像処理の検査種別を知
らなくても、入力手段を通じた上記操作入力を容易に行
うことができる。さらに、画像処理装置が、検査対象に
発生しうる不具合の有無を確認するなどのために使用さ
れる場合、画像処理装置を使用する現場のユーザは、た
とえ画像処理の知識が無くても、検査対象としての画像
処理対象に発生しうる不具合などを経験的なノウハウと
して通常把握しており、この場合、検査対象に発生しう
る不具合などに関する経験的なノウハウが盛り込まれた
画像処理プログラムが作成されることになる。
Here, for example, when an image obtained by imaging an inspection target having a defect obtained on a production line is used as the target image, a simple method such as setting a defective region of the target image as a designated region is used. With a simple operation, an image processing program can be created. The plurality of types of image processing subroutine candidates include, for example, various types of inspections such as a foreign substance inspection, a crack inspection, and a crack inspection. By simply performing the above, a plurality of types of image processing subroutine candidates optimal for the inspection purpose are automatically selected, so that the user can input through the input unit without knowing the specific image processing inspection type. The above operation input can be easily performed. Further, when the image processing apparatus is used to confirm whether there is a defect that may occur in the inspection target, a user at the site using the image processing apparatus can perform inspection even if the image processing apparatus has no knowledge of image processing. In general, defects that may occur in the target image processing are known as empirical know-how. Will be.

【0021】要するに、請求項1記載の発明によれば、
ユーザに画像処理の知識が無くても画像処理装置の画像
処理プログラムを簡単に作成することができるほか、画
像処理の知識が不要となるため、その習得時間を削減す
ることができる。また、ユーザが指定領域を設定するの
で、画像処理対象の間違った部分を検査する画像処理プ
ログラムが作成されることがない。さらに、複数種類の
画像処理対象項目および複数種類の検査項目の少なくと
も一方の組みから項目が選択されるので、画像処理対象
や検査目的に適した画像処理プログラムを作成すること
ができ、また不要な項目が排除されるから、画像処理プ
ログラムによる実行時間を短縮することができる。
In short, according to the first aspect of the present invention,
Even if the user does not have the knowledge of the image processing, the image processing program of the image processing apparatus can be easily created, and since the knowledge of the image processing is not required, the learning time can be reduced. Further, since the user sets the designated area, there is no need to create an image processing program for inspecting a wrong portion of the image processing target. Further, since an item is selected from at least one set of a plurality of types of image processing target items and a plurality of types of inspection items, an image processing program suitable for the image processing target and the inspection purpose can be created, and unnecessary Since the items are eliminated, the execution time by the image processing program can be reduced.

【0022】請求項2記載の発明は、請求項1記載の画
像処理プログラム作成方法において、前記指定領域内の
画像に対して、前記選択された複数種類の画像処理サブ
ルーチン候補の各々を実行した後、これら画像処理サブ
ルーチン候補の各実行結果を前記表示手段に表示するス
テップをさらに有し、前記画像処理サブルーチンを前記
画像処理プログラムに組み込むステップでは、前記表示
手段に表示された各実行結果を基に、前記選択された画
像処理サブルーチン候補セットから、前記入力手段を通
じた操作入力で選択された画像処理サブルーチン候補
を、前記指定領域内の画像に対する画像処理サブルーチ
ンとして前記画像処理プログラムに組み込むことを特徴
とする。この方法によれば、請求項1記載の発明におい
て、選択された複数種類の画像処理サブルーチン候補の
各々が指定領域内の画像に対して実行されると、これら
画像処理サブルーチン候補の各実行結果が表示手段に表
示されるようになり、この後、ユーザが、表示手段に表
示された各実行結果を基に、上記選択された画像処理サ
ブルーチン候補セットから、入力手段を通じた操作入力
で画像処理サブルーチン候補を選択すると、これが指定
領域内の画像に対する画像処理サブルーチンとして画像
処理プログラムに組み込まれるようになるから、ユーザ
に画像処理の知識が無くても画像処理装置の画像処理プ
ログラムを作成することができる。また、項目に対応す
る複数種類の画像処理サブルーチン候補が選択されるの
で、これら画像処理サブルーチン候補には、項目に対応
するものが含まれ、項目に対応しないものは含まれない
から、選択された複数種類の画像処理サブルーチン候補
の数が必要以上に多くなるという問題が生ぜず、各実行
結果を基にした画像処理サブルーチン候補の選択操作が
容易となる。さらに、対話式の面倒な設問に答えること
なく、従ってその機能を設ける必要もなく、ユーザが満
足する実行結果となった画像処理サブルーチンにより、
ユーザの検査目的に合致した画像処理プログラムを作成
することができ、画像処理プログラムの修正などを不要
にすることができる。
According to a second aspect of the present invention, in the method of the first aspect, each of the plurality of selected image processing subroutine candidates is executed on an image in the designated area. Displaying the respective execution results of the image processing subroutine candidates on the display means. In the step of incorporating the image processing subroutine into the image processing program, based on the respective execution results displayed on the display means, The image processing subroutine candidate selected by the operation input through the input unit from the selected image processing subroutine candidate set is incorporated in the image processing program as an image processing subroutine for an image in the designated area. I do. According to this method, when each of the plurality of selected image processing subroutine candidates is executed on an image in the designated area, the execution result of each of the image processing subroutine candidates is calculated. The image processing subroutine is displayed on the display means. After that, based on each execution result displayed on the display means, the user selects an image processing subroutine from the selected image processing subroutine candidate set by an operation input through the input means. When a candidate is selected, the candidate is incorporated into the image processing program as an image processing subroutine for an image in the designated area, so that the image processing program of the image processing apparatus can be created without the user having knowledge of image processing. . Further, since a plurality of types of image processing subroutine candidates corresponding to the item are selected, those image processing subroutine candidates include those corresponding to the item, and those not corresponding to the item are not included. The problem that the number of plural types of image processing subroutine candidates becomes unnecessarily large does not occur, and the operation of selecting an image processing subroutine candidate based on each execution result becomes easy. In addition, the image processing subroutine that does not answer the troublesome interactive questions, and therefore does not need to provide the function, and has a satisfactory execution result by the user,
It is possible to create an image processing program that matches the inspection purpose of the user, and it is not necessary to modify the image processing program.

【0023】請求項3記載の発明は、請求項1記載の画
像処理プログラム作成方法において、前記指定領域内の
画像に対して、前記選択された複数種類の画像処理サブ
ルーチン候補の各々を実行した後、これら画像処理サブ
ルーチン候補の実行結果から、それぞれ、所定基準から
乖離する度合いを示す乖離度を算出するステップをさら
に有し、前記画像処理サブルーチンを前記画像処理プロ
グラムに組み込むステップでは、前記算出された複数の
乖離度を基に、前記選択された画像処理サブルーチン候
補セットから自動的に画像処理サブルーチン候補を選択
し、これを前記指定領域内の画像に対する画像処理サブ
ルーチンとして前記画像処理プログラムに組み込むこと
を特徴とする。この方法によれば、請求項1記載の発明
において、選択された複数種類の画像処理サブルーチン
候補の各々が指定領域内の画像に対して実行されると、
これら画像処理サブルーチン候補の実行結果からそれぞ
れ乖離度が算出され、続いて、これら乖離度を基に、上
記選択された画像処理サブルーチン候補セットから自動
的に画像処理サブルーチン候補が選択されて、これが指
定領域内の画像に対する画像処理サブルーチンとして画
像処理プログラムに組み込まれるようになるから、ユー
ザに画像処理の知識が無くても画像処理装置の画像処理
プログラムをより簡単に作成することができる。また、
例えば、画像処理サブルーチン候補セットに含まれる異
なる画像処理サブルーチン候補(画像処理アルゴリズ
ム)の各々によって欠陥が検出される場合、それらか
ら、欠陥の検出に最適な画像処理サブルーチン候補を自
動的に検出させる構成が可能となり、この場合、ユーザ
の判断ミスで最適でない画像処理サブルーチン候補が選
ばれるといったことをなくすことができる。
According to a third aspect of the present invention, in the image processing program creating method according to the first aspect, after each of the plurality of selected image processing subroutine candidates is executed on an image in the designated area. And a step of calculating a degree of deviation indicating a degree of deviation from a predetermined reference from the execution results of these image processing subroutine candidates. In the step of incorporating the image processing subroutine into the image processing program, Automatically selecting an image processing subroutine candidate from the selected image processing subroutine candidate set based on a plurality of divergence degrees, and incorporating the candidate in the image processing program as an image processing subroutine for an image in the designated area. Features. According to this method, when each of the selected plurality of types of image processing subroutine candidates is executed for an image in the designated area,
The degree of divergence is calculated from the execution results of these image processing subroutine candidates, and based on these degrees of divergence, image processing subroutine candidates are automatically selected from the selected image processing subroutine candidate set, and designated. Since the image processing subroutine for the image in the area is incorporated in the image processing program, the image processing program of the image processing apparatus can be more easily created without the user having knowledge of the image processing. Also,
For example, when a defect is detected by each of the different image processing subroutine candidates (image processing algorithms) included in the image processing subroutine candidate set, an image processing subroutine candidate optimal for defect detection is automatically detected therefrom. In this case, it is possible to eliminate a case where a non-optimal image processing subroutine candidate is selected due to a user's erroneous judgment.

【0024】請求項4記載の発明は、請求項3記載の画
像処理プログラム作成方法において、前記対象画像は、
良品および不良品の複数の画像処理対象からそれぞれ複
数得られ、前記対象画像を前記表示手段に表示するステ
ップでは、前記複数の対象画像の少なくとも1つを前記
表示手段に表示し、前記選択された複数種類の画像処理
サブルーチン候補の各々を実行するステップでは、これ
ら画像処理サブルーチン候補の各々を、前記複数の対象
画像の各指定領域内の画像に対して実行し、前記乖離度
を算出するステップでは、前記各対象画像に対する前記
複数種類の画像処理サブルーチン候補の実行結果から、
それぞれの画像処理サブルーチン候補に対する乖離度を
統計的に算出し、前記画像処理サブルーチンを前記画像
処理プログラムに組み込むステップでは、前記統計的に
算出された各乖離度を基に、前記選択された画像処理サ
ブルーチン候補セットから自動的に画像処理サブルーチ
ン候補を選択し、これを前記指定領域内の画像に対する
画像処理サブルーチンとして前記画像処理プログラムに
組み込むことを特徴とする。この方法によれば、ユーザ
が、入力手段を通じた操作入力で、複数種類の画像処理
対象項目および複数種類の検査目的項目の少なくとも一
方の組みから、所望の項目を選択するとともに、表示手
段に表示された少なくとも1つの対象画像に対して領域
を指定して指定領域の情報を入力すると、選択された項
目に対応する画像処理サブルーチン候補セットが選択さ
れて、この画像処理サブルーチン候補セットに含まれる
複数種類の画像処理サブルーチン候補の各々が、複数の
対象画像の各指定領域内の画像に対して実行され、続い
て、これら画像処理サブルーチン候補の各実行結果か
ら、上記選択された複数種類の画像処理サブルーチン候
補の各々の乖離度が統計的に算出され、続いて、これら
乖離度を基に、上記選択された画像処理サブルーチン候
補セットから自動的に画像処理サブルーチン候補が選択
されて、これが指定領域内の画像に対する画像処理サブ
ルーチンとして画像処理プログラムに組み込まれるよう
になるから、ユーザに画像処理の知識が無くても画像処
理装置の画像処理プログラムをより簡単に作成すること
ができる。例えば、画像処理プログラムの作成の際、生
産ラインに流れる良品および不良品の複数の画像処理対
象を撮像して複数の対象画像を取得し、これら複数の対
象画像を請求項4記載の発明に適用すれば、選択された
画像処理サブルーチン候補セットに含まれる各画像処理
サブルーチン候補の乖離度が統計的に算出されていくの
で、検査精度の最適な画像処理サブルーチン候補を画像
処理サブルーチンとして統計的に自動選択することがで
きる。また、画像処理対象の良品画像、不良品画像をプ
ログラム作成前に取得、記憶しておき、これを利用する
ことでプログラム作成が効率的に行え、同画像データの
繰り返し利用や確認も可能となる。
According to a fourth aspect of the present invention, in the image processing program creating method of the third aspect, the target image is
In the step of obtaining a plurality of non-defective products and defective products from a plurality of image processing targets, and displaying the target images on the display unit, displaying at least one of the plurality of target images on the display unit, In the step of executing each of the plurality of types of image processing subroutine candidates, the step of executing each of the image processing subroutine candidates on an image in each designated region of the plurality of target images and calculating the degree of divergence is performed. From the execution results of the plurality of types of image processing subroutine candidates for each of the target images,
In the step of statistically calculating the degree of divergence for each image processing subroutine candidate and incorporating the image processing subroutine into the image processing program, the selected image processing subroutine is performed based on the statistically calculated degree of divergence. An image processing subroutine candidate is automatically selected from a subroutine candidate set, and this is incorporated in the image processing program as an image processing subroutine for an image in the designated area. According to this method, the user selects a desired item from at least one of a plurality of types of image processing target items and a plurality of types of inspection target items by an operation input through the input unit, and displays the desired item on the display unit. When an area is designated for at least one target image and information on the designated area is input, an image processing subroutine candidate set corresponding to the selected item is selected, and a plurality of image processing subroutine candidate sets included in the image processing subroutine candidate set are selected. Each type of image processing subroutine candidate is executed on an image in each designated area of the plurality of target images, and subsequently, the plurality of types of selected image processing The degree of divergence of each of the subroutine candidates is calculated statistically, and subsequently, based on these degrees of divergence, the selected image processing subroutine is selected. The image processing subroutine candidate is automatically selected from the image candidate set and is incorporated into the image processing program as an image processing subroutine for the image in the designated area. An image processing program for the device can be created more easily. For example, when an image processing program is created, a plurality of non-defective and defective products flowing on a production line are imaged to obtain a plurality of target images, and the plurality of target images are applied to the invention according to claim 4. Then, the degree of divergence of each image processing subroutine candidate included in the selected image processing subroutine candidate set is statistically calculated, so that the image processing subroutine candidate having the optimum inspection accuracy is automatically statistically determined as an image processing subroutine. You can choose. In addition, a non-defective image and a defective image to be subjected to image processing are acquired and stored before the program is created, and by using this, the program can be efficiently created and the same image data can be repeatedly used and confirmed. .

【0025】請求項5記載の発明は、請求項1〜4のい
ずれかに記載の画像処理プログラム作成方法において、
前記画像処理サブルーチン候補セットには、それぞれに
互いに異なるパラメータの値が割り当てられた複数の同
一フローの画像処理サブルーチン候補が含まれることを
特徴とする。この方法によれば、好適なパラメータの値
が割り当てられた好適な画像処理サブルーチン候補セッ
トで、より好適な画像処理プログラムを作成することが
できる。
According to a fifth aspect of the present invention, in the image processing program creating method according to any one of the first to fourth aspects,
The image processing subroutine candidate set includes a plurality of image processing subroutine candidates of the same flow to which different parameter values are assigned. According to this method, a more suitable image processing program can be created with a suitable image processing subroutine candidate set to which suitable parameter values are assigned.

【0026】請求項6記載の発明は、請求項1〜4のい
ずれかに記載の画像処理プログラム作成方法において、
前記入力手段を通じて操作入力された画像処理対象項目
および検査目的項目の少なくとも一方の項目と、前記記
憶手段に記憶されている全種類の画像処理サブルーチン
候補から前記入力手段を通じた操作入力で選択された複
数種類の画像処理サブルーチン候補とに応じて、これら
画像処理サブルーチン候補を前記操作入力された項目に
対応させて前記記憶手段に記憶することを特徴とする。
この方法によれば、ユーザが、入力手段を通じた操作入
力で、所望する項目を設定するとともに、記憶手段に記
憶されている全種類の画像処理サブルーチン候補から所
望する複数種類の画像処理サブルーチン候補を選択する
と、選択された複数種類の画像処理サブルーチン候補が
設定した項目に対応して記憶手段に記憶されるようにな
る。このような登録は、例えば生産技術者が製造部門の
技術者に依頼することで行われ、この依頼を受けた製造
部門の技術者が現場に則した登録をすることになる。こ
れにより、現場により一層適合した画像処理プログラム
の作成が可能になる。
According to a sixth aspect of the present invention, there is provided the image processing program creating method according to any one of the first to fourth aspects,
At least one of the image processing target item and the inspection purpose item input and operated through the input unit and all types of image processing subroutine candidates stored in the storage unit are selected by the operation input through the input unit. According to a plurality of types of image processing subroutine candidates, the image processing subroutine candidates are stored in the storage unit in association with the items input by the operation.
According to this method, the user sets desired items by an operation input through the input unit, and selects a plurality of desired image processing subroutine candidates from all types of image processing subroutine candidates stored in the storage unit. Upon selection, the plurality of types of selected image processing subroutine candidates are stored in the storage unit corresponding to the set items. Such registration is performed, for example, by requesting a production engineer from a manufacturing department engineer, and the manufacturing department engineer who receives the request performs registration according to the site. This makes it possible to create an image processing program that is more suitable for the site.

【0027】請求項7記載の発明は、請求項1〜4のい
ずれかに記載の画像処理プログラム作成方法において、
前記選択された画像処理サブルーチン候補セットに含ま
れる複数種類の画像処理サブルーチン候補に、共通する
処理部分がある場合、それら複数種類の画像処理サブル
ーチン候補は、前記共通する処理部分を兼用することを
特徴とする。ここで、画像処理サブルーチン候補セット
に含まれる複数種類の画像処理サブルーチン候補は、画
像処理サブルーチン候補セットが画像処理対象項目およ
び検査目的項目の少なくとも一方に対応する関係で、例
えば同じ前処理を踏む場合などが多くなり、その前処理
を複数種類の画像処理サブルーチン候補の各々について
逐一実行していくと全体の実行時間が勢い長くなるが、
請求項7記載の発明によれば、共通する処理部分が複数
種類の画像処理サブルーチン候補の各々によって兼用さ
れ、共通する処理部分については1回の処理で済むよう
になるから、画像処理プログラムを作成するための実行
時間を大幅に短縮することができる。
According to a seventh aspect of the present invention, in the image processing program creating method according to any one of the first to fourth aspects,
When a plurality of types of image processing subroutine candidates included in the selected image processing subroutine candidate set have a common processing portion, the plurality of types of image processing subroutine candidates also serve as the common processing portion. And Here, a plurality of types of image processing subroutine candidates included in the image processing subroutine candidate set include, for example, a case where the image processing subroutine candidate set performs the same preprocessing in a relationship corresponding to at least one of the image processing target item and the inspection target item. When the pre-processing is executed for each of a plurality of types of image processing subroutine candidates one by one, the entire execution time increases.
According to the seventh aspect of the present invention, the common processing portion is shared by each of the plurality of types of image processing subroutine candidates, and the common processing portion needs to be processed only once. Execution time can be greatly reduced.

【0028】請求項8記載の発明は、請求項1〜4のい
ずれかに記載の画像処理プログラム作成方法において、
前記指定領域内の画像に対して、前記選択された複数種
類の画像処理サブルーチン候補の各々を実行するステッ
プでは、その複数種類の画像処理サブルーチン候補の各
々に含まれるパラメータのうち、前記入力手段を通じた
操作入力で選択されたパラメータとこのパラメータに対
して指定された可変条件とに応じて、前記選択された複
数種類の画像処理サブルーチン候補の各々を、これに含
まれる前記選択されたパラメータを前記指定された可変
条件で可変しながら、前記指定領域内の画像に対して実
行し、前記画像処理サブルーチンを前記画像処理プログ
ラムに組み込むステップでは、その画像処理サブルーチ
ン内の前記選択されたパラメータの値を、前記各実行結
果から得られるそのパラメータの適正範囲の中心値に設
定することを特徴とする。この方法によれば、ユーザ
が、入力手段を通じた操作入力で、既に選択された複数
種類の画像処理サブルーチン候補の各々に含まれるパラ
メータのうち、所望のパラメータを選択するとともに、
その可変条件(範囲および刻みなど)を指定すると、選
択されたパラメータと指定された可変条件とに応じて、
上記選択された複数種類の画像処理サブルーチン候補の
各々が、これに含まれる選択されたパラメータを指定さ
れた可変条件で可変しながら、指定領域内の画像に対し
て実行され、続いて、上記選択された複数種類の画像処
理サブルーチン候補の各実行結果を基に選択された画像
処理サブルーチン候補内の選択されたパラメータの値
が、各実行結果から得られるそのパラメータの適正範囲
(例えば、各実行結果のヒストグラムのピークなどで適
正範囲の限界が決まる)の中心値に設定されて、この中
心値に設定された画像処理サブルーチン候補が画像処理
サブルーチンとして画像処理プログラムに組み込まれる
ようになる。これにより、良不良判定が特定の範囲で一
定する場合、画像処理プログラムに組み込む画像処理サ
ブルーチン内の所望のパラメータの値が適正範囲の中心
値に設定され、最も代表的なパラメータに設定されるこ
とになる。
According to an eighth aspect of the present invention, there is provided the image processing program creating method according to any one of the first to fourth aspects,
In the step of executing each of the selected plurality of types of image processing subroutine candidates on the image in the designated area, the parameters included in each of the plurality of types of image processing subroutine candidates are selected through the input unit. In accordance with the parameter selected by the operation input and the variable condition specified for this parameter, each of the plurality of selected image processing subroutine candidates is replaced with the selected parameter included therein. The step of executing the image processing subroutine in the image processing program while executing the image processing in the image in the specified area while changing under the specified variable condition, sets the value of the selected parameter in the image processing subroutine to , Set to the center value of the appropriate range of the parameter obtained from each execution result To. According to this method, the user selects a desired parameter from among the parameters included in each of the plurality of types of image processing subroutine candidates already selected by an operation input through the input unit,
If you specify the variable conditions (such as range and increment), according to the selected parameter and the specified variable condition,
Each of the plurality of selected image processing subroutine candidates is executed on an image in a specified area while changing selected parameters included in the selected image processing subroutines under specified variable conditions. The value of the selected parameter in the image processing subroutine candidate selected based on each execution result of the plurality of types of image processing subroutine candidates obtained is determined by the appropriate range of the parameter obtained from each execution result (for example, each execution result (The limit of the appropriate range is determined by the peak of the histogram in (1)), and the image processing subroutine candidate set to this central value is incorporated in the image processing program as an image processing subroutine. With this, when the pass / fail judgment is constant in a specific range, the value of a desired parameter in the image processing subroutine to be incorporated into the image processing program is set to the center value of the appropriate range and set to the most representative parameter. become.

【0029】請求項9記載の発明は、請求項2記載の画
像処理プログラム作成方法において、前記選択された複
数種類の画像処理サブルーチン候補の各実行結果を前記
表示手段に表示するステップでは、これらの各実行結果
とともに、前記対象画像または各実行結果を出した画像
処理サブルーチン候補による前記対象画像に対する画像
処理済みの画像を前記表示手段に表示することを特徴と
する。この方法によれば、選択された複数種類の画像処
理サブルーチン候補の各実行結果とともに、対象画像ま
たは各画像処理済みの画像が表示手段に表示されるか
ら、各実行結果の視認性が高まり、例えば、各実行結果
のみでは画像処理サブルーチン候補の選択が困難である
場合、画像処理済みの画像を参考にして適切な画像処理
サブルーチン候補を画像処理サブルーチンとして選択す
ることが可能となる。
According to a ninth aspect of the present invention, in the image processing program creating method of the second aspect, the step of displaying each execution result of the selected plurality of types of image processing subroutine candidates on the display means includes the steps of: Along with each execution result, the target image or an image that has been subjected to image processing on the target image by an image processing subroutine candidate that has issued each execution result is displayed on the display means. According to this method, the target image or each image-processed image is displayed on the display unit together with each execution result of the selected plurality of types of image processing subroutine candidates, so that the visibility of each execution result is improved, and for example, When it is difficult to select an image processing subroutine candidate based only on each execution result, it is possible to select an appropriate image processing subroutine candidate as an image processing subroutine with reference to the image that has undergone image processing.

【0030】請求項10記載の発明は、請求項1〜4の
いずれかに記載の画像処理プログラム作成方法におい
て、前記画像処理サブルーチンが組み込まれて作成され
た前記画像処理プログラムに、共通する処理部分がある
場合、これらの処理部分を一の処理部分として統合する
ステップをさらに有することを特徴とする。この方法に
よれば、画像処理プログラムの容量を減らすことができ
るほか、その実行の高速化を図ることができる。また、
画像処理プログラムが短くなり、全体の把握が容易にな
る。
According to a tenth aspect of the present invention, in the image processing program creating method according to any one of the first to fourth aspects, a processing portion common to the image processing program created by incorporating the image processing subroutine. If there is, the method further comprises the step of integrating these processing parts as one processing part. According to this method, the capacity of the image processing program can be reduced, and the speed of the execution can be increased. Also,
The image processing program is shortened, and the entire picture is easily grasped.

【0031】請求項11記載の発明は、請求項1〜4の
いずれかに記載の画像処理プログラム作成方法におい
て、前記画像処理サブルーチンが組み込まれて作成され
た前記画像処理プログラムのフローチャートを前記表示
手段に表示するステップをさらに有することを特徴とす
る。この方法によれば、各画像処理サブルーチンが画像
処理プログラムのどこに組み込まれたかを容易に把握す
ることができる。例えば、画像処理サブルーチンが画像
処理プログラムに組み込まれる毎に、表示手段に画像処
理プログラムのフローチャートが表示されるようにすれ
ば、文字プログラミングに不慣れなユーザでも、フロー
チャートのシンボルが増えるのを確認することで、画像
処理サブルーチンが画像処理プログラムのどこに組み込
まれたのかを感覚的に把握することができる。
According to an eleventh aspect of the present invention, in the image processing program creating method according to any one of the first to fourth aspects, a flow chart of the image processing program created by incorporating the image processing subroutine is displayed on the display means. Is displayed. According to this method, it is possible to easily grasp where each image processing subroutine is incorporated in the image processing program. For example, if a flowchart of the image processing program is displayed on the display unit every time the image processing subroutine is incorporated into the image processing program, even if the user is not accustomed to character programming, it is possible to confirm that the number of symbols in the flowchart increases. Thus, it is possible to intuitively grasp where the image processing subroutine is incorporated in the image processing program.

【0032】請求項12記載の発明は、請求項11記載
の画像処理プログラム作成方法において、前記画像処理
プログラムのフローチャートを前記表示手段に表示する
ステップでは、そのフローチャート内の前記画像処理サ
ブルーチンのシンボルと関連付けられた位置に、その画
像処理サブルーチンによる前記対象画像に対する画像処
理済みの画像を表示することを特徴とする。この方法に
よれば、対象画像の各指定領域内の画像に対する各画像
処理サブルーチンによる実行結果を容易に検証すること
ができる。
According to a twelfth aspect of the present invention, in the image processing program creating method according to the eleventh aspect, the step of displaying the flowchart of the image processing program on the display means includes the symbol of the image processing subroutine in the flowchart. An image processed by the image processing subroutine with respect to the target image is displayed at the associated position. According to this method, it is possible to easily verify the execution result of each image processing subroutine for an image in each specified area of the target image.

【0033】請求項13記載の発明は、請求項11記載
の画像処理プログラム作成方法において、前記画像処理
プログラムのフローチャートを前記表示手段に表示する
ステップでは、そのフローチャート内の前記画像処理サ
ブルーチンのシンボルに対する前記入力手段を通じた操
作入力に応じて、対応する画像処理サブルーチンによる
各画像処理過程の画像を順次切替表示することを特徴と
する。この方法によれば、画像処理サブルーチンによる
各画像処理過程および画像処理結果が適切であるか否か
の確認が行うことができる。
According to a thirteenth aspect of the present invention, in the image processing program creating method according to the eleventh aspect, the step of displaying the flowchart of the image processing program on the display means includes: In accordance with an operation input through the input means, images in respective image processing steps by a corresponding image processing subroutine are sequentially switched and displayed. According to this method, it is possible to confirm whether each image processing step and the image processing result by the image processing subroutine are appropriate.

【0034】請求項14記載の発明は、請求項11記載
の画像処理プログラム作成方法において、前記画像処理
プログラムのフローチャートを前記表示手段に表示する
ステップでは、前記画像処理プログラムのフローチャー
トを前記表示手段に表示するステップでは、まず、画像
処理プログラムのフローチャートを前記表示手段に表示
し、続いてこの表示手段に表示したフローチャートに対
して、前記入力手段を通じた操作入力で指定された位置
に、前記選択された画像処理サブルーチン候補を画像処
理サブルーチンとして組み込んで、これが組み込まれて
作成された画像処理プログラムのフローチャートを前記
表示手段に表示することを特徴とする。この方法によれ
ば、画像処理サブルーチンを画像処理プログラムの所望
する位置に組み込むことができるほか、前に作成した画
像処理プログラムの所望する位置に、新たな画像処理サ
ブルーチンを容易に組み込むことができるから、別の画
像処理プログラムを作成するための時間(工数)を、前
に作成した画像処理プログラムを土台にすることで大幅
に削減することができる。
According to a fourteenth aspect of the present invention, in the image processing program creating method according to the eleventh aspect, the step of displaying the flowchart of the image processing program on the display means includes displaying the flowchart of the image processing program on the display means. In the displaying step, first, a flowchart of the image processing program is displayed on the display unit, and then the selected flowchart is displayed at a position designated by an operation input through the input unit with respect to the flowchart displayed on the display unit. The image processing subroutine candidate is incorporated as an image processing subroutine, and a flowchart of an image processing program created by incorporating the image processing subroutine is displayed on the display means. According to this method, the image processing subroutine can be incorporated at a desired position of the image processing program, and a new image processing subroutine can be easily incorporated at a desired position of the previously created image processing program. In addition, the time (man-hours) for creating another image processing program can be significantly reduced by using the previously created image processing program as a basis.

【0035】請求項15記載の発明は、請求項1〜4の
いずれかに記載の画像処理プログラム作成方法におい
て、前記対象画像を前記表示手段に表示するステップで
は、まず、前記画像処理装置の画像処理プログラムのフ
ローチャートを、画像処理サブルーチン用のシンボルと
ともに前記表示手段に表示し、続いて、前記入力手段を
通じた操作入力による前記フローチャート上の前記シン
ボルの選択に応じて、前記対象画像を前記表示手段に表
示し、前記画像処理サブルーチンを前記画像処理プログ
ラムに組み込むステップでは、前記選択された画像処理
サブルーチン候補を、画像処理サブルーチンとして前記
画像処理プログラム内の前記選択されたシンボルに対応
する位置に組み込むことを特徴とする。この方法によれ
ば、画像処理プログラムを作成する前に、その全体を構
成しておくことができる。ユーザは、画像処理プログラ
ムのどこに、これから選択される画像処理サブルーチン
候補が画像処理サブルーチンとして組み込まれるのかを
理解することができる。画像処理プログラムの作成後で
も、再度同様のステップを踏むことで、画像処理サブル
ーチンを変更することができる。例えば、画像処理対象
の変更により、画像処理プログラムの全体を変更する必
要はないが、ある画像処理サブルーチンを変更する必要
がある場合などに対応可能となる。
According to a fifteenth aspect of the present invention, in the image processing program creating method according to any one of the first to fourth aspects, in the step of displaying the target image on the display means, an image of the image processing apparatus is firstly displayed. A flowchart of a processing program is displayed on the display unit together with a symbol for an image processing subroutine, and subsequently, the target image is displayed on the display unit in accordance with selection of the symbol on the flowchart by an operation input through the input unit. And incorporating the image processing subroutine into the image processing program, incorporating the selected image processing subroutine candidate at a position corresponding to the selected symbol in the image processing program as an image processing subroutine. It is characterized by. According to this method, the entire image processing program can be configured before it is created. The user can understand where in the image processing program the image processing subroutine candidate to be selected is incorporated as the image processing subroutine. Even after the image processing program is created, the image processing subroutine can be changed by performing the same steps again. For example, it is not necessary to change the entire image processing program by changing the image processing target, but it is possible to cope with a case where a certain image processing subroutine needs to be changed.

【0036】請求項16記載の発明は、請求項1〜4の
いずれかに記載の画像処理プログラム作成方法におい
て、前記画像処理サブルーチンを前記画像処理プログラ
ムに組み込んだ後、前記対象画像とともに前記指定領域
を前記表示手段に表示するステップと、この表示手段に
表示された指定領域を別の指定領域にコピーアンドペー
ストする前記入力手段を通じた操作入力に応じて、前記
別の指定領域内の画像に対する画像処理サブルーチンと
して、前記選択された画像処理サブルーチン候補を割り
当てて前記画像処理プログラムを修正するステップとを
さらに有することを特徴とする。この方法によれば、検
査対象の特定部分の欠陥に的を絞って、適用すべき画像
処理サブルーチンを決定するだけで、その欠陥が発生し
そうな別の部分にも同じ画像処理サブルーチンを容易に
適用することができる。これにより、画像処理プログラ
ムの作成時間を大幅に短縮することができる。また、実
際の検査対象の指定領域が多角形などで、矩形などの代
表的な領域形状で表現し難い場合などでは、予め矩形な
どの代表的な領域形状の別の領域で画像処理サブルーチ
ンを決定しておき、決定した画像処理サブルーチンの設
定内容を所望の形状の指定領域にコピーすることで、こ
の指定領域の画像処理サブルーチンを設定することがで
きる。
According to a sixteenth aspect of the present invention, in the image processing program creating method according to any one of the first to fourth aspects, after the image processing subroutine is incorporated in the image processing program, the designated area is added together with the target image. On the display means, and in response to an operation input through the input means for copying and pasting the designated area displayed on the display means to another designated area, an image corresponding to an image in the another designated area Modifying the image processing program by allocating the selected image processing subroutine candidate as a processing subroutine. According to this method, the image processing subroutine to be applied is simply determined by focusing on the defect of the specific portion to be inspected, and the same image processing subroutine is easily applied to another portion where the defect is likely to occur. can do. As a result, the time for creating the image processing program can be significantly reduced. When the designated area to be actually inspected is a polygon or the like and it is difficult to represent the area with a typical area shape such as a rectangle, the image processing subroutine is determined in advance in another area having a typical area shape such as a rectangle. In advance, by copying the set contents of the determined image processing subroutine to a designated area having a desired shape, the image processing subroutine of the designated area can be set.

【0037】請求項17記載の発明は、画像表示用の表
示手段と、各種操作入力用の入力手段と、予め分類され
た複数種類の画像処理対象項目および複数種類の検査目
的項目の少なくとも一方の組みの項目毎に、複数種類の
画像処理サブルーチン候補を含む画像処理サブルーチン
候補セットを記憶する記憶手段とを利用して、画像処理
装置の画像処理プログラムを作成する画像処理プログラ
ム作成機能とにより構成される画像処理プログラム作成
システムであって、前記画像処理プログラム作成機能
は、画像処理対象の撮像で得た対象画像を前記表示手段
に表示し、前記複数種類の画像処理対象項目および複数
種類の検査目的項目の少なくとも一方の組みから、前記
入力手段を通じた操作入力で選択された項目に応じて、
対応する画像処理サブルーチン候補セットを前記記憶手
段から選択し、この選択された画像処理サブルーチン候
補セットに含まれる複数種類の画像処理サブルーチン候
補の各々を、前記入力手段を通じた操作入力で指定され
た指定領域内の、前記対象画像の全部または一部の画像
に対して実行し、前記選択された複数種類の画像処理サ
ブルーチン候補の各実行結果を基に、前記選択された画
像処理サブルーチン候補セットから選択された画像処理
サブルーチン候補を、前記指定領域内の画像に対する画
像処理サブルーチンとして前記画像処理装置の画像処理
プログラムに組み込む各処理を実行することを特徴とす
る。この構成にによれば、ユーザに画像処理の知識が無
くても画像処理装置の画像処理プログラムを簡単に作成
することができるほか、画像処理の知識が不要となるた
め、その習得時間を削減することができる。また、ユー
ザが指定領域を設定するので、画像処理対象の間違った
部分を検査する画像処理プログラムが作成されることが
ない。さらに、複数種類の画像処理対象項目および複数
種類の検査項目の少なくとも一方の組みから項目が選択
されるので、画像処理対象や検査目的に適した画像処理
プログラムを作成することができ、また不要な項目が排
除されるから、画像処理プログラムによる実行時間を短
縮することができる。
According to a seventeenth aspect of the present invention, there is provided a display means for displaying an image, an input means for inputting various operations, and at least one of a plurality of types of image processing target items and a plurality of types of inspection purpose items which are classified in advance. A storage means for storing an image processing subroutine candidate set including a plurality of types of image processing subroutine candidates for each set item, and an image processing program creating function for creating an image processing program of the image processing apparatus. An image processing program creation function, wherein the image processing program creation function displays a target image obtained by imaging the image processing target on the display unit, and displays the plurality of types of image processing target items and a plurality of types of inspection purposes. From at least one set of items, according to the item selected by the operation input through the input means,
A corresponding image processing subroutine candidate set is selected from the storage unit, and each of a plurality of types of image processing subroutine candidates included in the selected image processing subroutine candidate set is designated by an operation input through the input unit. Executes on all or a part of the target image in the area, and selects from the selected image processing subroutine candidate set based on each execution result of the selected plural types of image processing subroutine candidates Each of the image processing subroutine candidates is executed as an image processing subroutine for an image in the designated area, which is incorporated in an image processing program of the image processing apparatus. According to this configuration, it is possible to easily create an image processing program of the image processing apparatus even if the user does not have knowledge of image processing, and it is not necessary to have knowledge of image processing, so that learning time is reduced. be able to. Further, since the user sets the designated area, there is no need to create an image processing program for inspecting a wrong portion of the image processing target. Further, since an item is selected from at least one set of a plurality of types of image processing target items and a plurality of types of inspection items, an image processing program suitable for the image processing target and the inspection purpose can be created, and unnecessary Since the items are eliminated, the execution time by the image processing program can be reduced.

【0038】[0038]

【発明の実施の形態】図1は画像処理プログラム作成シ
ステムの構成図、図2は図1の画像処理アルゴリズム記
憶部の説明図、図3は図1の画像処理プログラム作成シ
ステムに設けられる画像処理プログラム作成機能の動作
フロー図、図4は図3の動作フローの説明図であり、こ
れらの図を用いて本発明の第1実施形態について説明す
る。
FIG. 1 is a block diagram of an image processing program creation system, FIG. 2 is an explanatory diagram of an image processing algorithm storage section of FIG. 1, and FIG. 3 is an image processing program provided in the image processing program creation system of FIG. FIG. 4 is an explanatory diagram of the operation flow of the program creation function, and FIG. 4 is an explanatory diagram of the operation flow of FIG. 3. The first embodiment of the present invention will be described with reference to these drawings.

【0039】図1に示す画像処理プログラム作成システ
ムは、CRTまたはLCDなどにより構成される画像表
示用の入出力表示装置1と、画像処理対象(例えば生産
物などの検査対象)を撮像するための撮像装置2と、キ
ーボードおよびマウスなどにより構成される各種操作入
力用の操作入力装置3と、画像処理装置4とを備えてい
る。
The image processing program creating system shown in FIG. 1 is an image input / output display device 1 composed of a CRT or LCD, and an image processing target (for example, an inspection target such as a product). The image processing apparatus includes an imaging device 2, an operation input device 3 configured by a keyboard and a mouse for various operation inputs, and an image processing device 4.

【0040】この画像処理装置4は、CPU、各種メモ
リおよびハードディスクなどにより構成され、撮像用メ
モリ41、自動実行設定部42、画像処理アルゴリズム
記憶部43、プログラム作成部44、画像処理プログラ
ム格納部45、画像処理プログラム実行部46、処理画
像・結果格納部47および画像・設定表示用メモリ48
を備え、これら各部により構成される通常の画像処理機
能および第1実施形態の特徴となる画像処理プログラム
作成機能を有している。
The image processing apparatus 4 comprises a CPU, various memories, a hard disk, and the like. , An image processing program execution unit 46, a processed image / result storage unit 47, and an image / setting display memory 48
And has a normal image processing function constituted by these units and an image processing program creation function which is a feature of the first embodiment.

【0041】これら両機能のうち、通常の画像処理機能
は従来と同様であるのでその説明を省略し、以下では第
1実施形態の特徴となる画像処理プログラム作成機能に
ついて説明する。なお、図1の例では、プログラム作成
部44は、自動実行データ格納部441、画像処理サブ
ルーチン挿入位置指定部442、領域指定部443、
「複数の画像処理サブルーチン候補実行部」444、画
像処理サブルーチン候補選択指定部445および「画像
処理プログラムへの組込み部」446を含んでいる。ま
た、画像処理アルゴリズム記憶部43は、画像処理記憶
部431および複数の画像処理サブルーチン候補セット
設定情報部432を含んでいる。
Of these two functions, the ordinary image processing function is the same as the conventional one, so that the description thereof is omitted, and the image processing program creation function which is a feature of the first embodiment will be described below. In the example of FIG. 1, the program creation unit 44 includes an automatic execution data storage unit 441, an image processing subroutine insertion position designation unit 442, an area designation unit 443,
It includes a “plurality of image processing subroutine candidate execution units” 444, an image processing subroutine candidate selection / designation unit 445, and an “incorporation unit into image processing program” 446. Further, the image processing algorithm storage unit 43 includes an image processing storage unit 431 and a plurality of image processing subroutine candidate set setting information units 432.

【0042】先ず、画像処理プログラム作成機能により
解決する課題について説明すると、従来では、既述の如
く画像処理装置の使用には一定の習得工数を必要とす
る。このため、実際には画像処理を習得した技術者のみ
が画像処理装置を使用する傾向が高くなり、その使用範
囲を拡大することができない。これらの工数を低減する
ために、自動設定機能や雛形プログラム作成機能を持つ
画像処理装置が見受けられるが、これらは、画像処理を
サブルーチン化し、メニューや対話型のインターフェー
スを通して画像処理サブルーチンを選択して画像処理プ
ログラムを作成するものであり、通常、各画像処理機能
に対応した選択インターフェースになっているので、ユ
ーザに画像処理の内容の認識を強いることが多くなる。
First, the problem to be solved by the image processing program creation function will be described. Conventionally, as described above, the use of the image processing apparatus requires a certain number of learning steps. Therefore, actually, only a technician who has learned image processing tends to use the image processing apparatus, and the range of use cannot be expanded. In order to reduce these man-hours, there are image processing apparatuses having an automatic setting function and a template program creating function. However, these apparatuses convert image processing into a subroutine and select an image processing subroutine through a menu or an interactive interface. An image processing program is created, and usually has a selection interface corresponding to each image processing function, so that the user is often forced to recognize the contents of the image processing.

【0043】例えば、特開平7−160843号公報の
画像認識プログラム構築装置では、メニュー選択により
コーディングおよびコンパイルの作業を不要にし、画像
処理プログラムの作成作業の簡易化を図っているが、ユ
ーザが画像データの知識を持っていることを期待し、そ
の知識によって画像処理サブルーチンが選択されるよう
に構成されている。しかし、汎用の画像処理装置では、
その機能も多岐にわたり、画像処理サブルーチンも数多
く(100個以上の画像処理サブルーチンが用意されて
いることが多い)、画像処理知識のないユーザにとっ
て、所望の処理を実現するために適切な画像処理サブル
ーチンの選択を行うことは困難である。
For example, in the image recognition program construction apparatus disclosed in Japanese Patent Application Laid-Open No. Hei 7-160843, the coding and compiling work is not required by selecting a menu, and the creation of the image processing program is simplified. The user is expected to have knowledge of the data, and the image processing subroutine is selected based on the knowledge. However, in a general-purpose image processing device,
Its functions are also diverse, there are many image processing subroutines (often more than 100 image processing subroutines are prepared), and an image processing subroutine suitable for a user without image processing knowledge to realize desired processing. It is difficult to make a choice.

【0044】そこで、第1実施形態では、上記課題を解
決すべく、入出力表示装置1と、操作入力装置3と、画
像処理アルゴリズム記憶部43に含まれる画像処理記憶
部431とを利用して、画像処理装置4の画像処理プロ
グラムを作成する画像処理プログラム作成機能が設けら
れるのである。
Therefore, in the first embodiment, in order to solve the above problems, the input / output display device 1, the operation input device 3, and the image processing storage unit 431 included in the image processing algorithm storage unit 43 are used. An image processing program creation function for creating an image processing program for the image processing apparatus 4 is provided.

【0045】画像処理記憶部431には、予め分類され
た複数種類の画像処理対象項目および複数種類の検査目
的項目の各項目毎に、複数種類の画像処理サブルーチン
候補を含む画像処理サブルーチン候補セットが記憶され
ている。検査目的項目は、図2の例に示すように、外観
検査、寸法測定、有無検知(位置検出)および文字検出
などの各項目に予め分類され、これらの項目毎に画像処
理サブルーチン候補セットが対応付けされて画像処理記
憶部431に記憶されている。各画像処理サブルーチン
候補セットには、外観検査の項目の場合、異物検査、ひ
び検査、クラック検査および欠け検査の複数種類の画像
処理サブルーチン候補が含まれる。同様に、寸法測定、
有無検知および文字検出などの各画像処理サブルーチン
候補セットにも、図2(a)に示すような複数種類の画
像処理サブルーチン候補が含まれる。そして、これらの
各画像処理サブルーチン候補セットに含まれる複数種類
の画像処理サブルーチン候補は、図2(b)に示すGU
I(グラフィカル・ユーザ・インターフェース)を通じ
て選択可能になっている。例えば、図2(c)に示すよ
うに、外観検査の画像処理サブルーチン候補セットに含
まれる異物検査の項目をアクティブにして、操作入力装
置3を通じてGUIの「設定」ボタンをオンする操作を
行えば、異物検査の画像処理サブルーチン候補が選択さ
れる。
The image processing storage unit 431 stores an image processing subroutine candidate set including a plurality of types of image processing subroutine candidates for each of a plurality of types of image processing target items and a plurality of types of inspection target items which are classified in advance. It is remembered. As shown in the example of FIG. 2, the inspection purpose items are classified in advance into items such as appearance inspection, dimension measurement, presence / absence detection (position detection), and character detection, and an image processing subroutine candidate set corresponds to each of these items. And stored in the image processing storage unit 431. In the case of the appearance inspection item, each image processing subroutine candidate set includes a plurality of types of image processing subroutine candidates for foreign matter inspection, crack inspection, crack inspection, and chipping inspection. Similarly, dimension measurement,
Each set of image processing subroutine candidates for presence / absence detection and character detection also includes a plurality of types of image processing subroutine candidates as shown in FIG. Then, a plurality of types of image processing subroutine candidates included in each of these image processing subroutine candidate sets are represented by a GU shown in FIG.
It is selectable through I (graphical user interface). For example, as shown in FIG. 2C, if the foreign matter inspection item included in the visual inspection image processing subroutine candidate set is activated and the operation of turning on the “setting” button of the GUI through the operation input device 3 is performed. Then, an image processing subroutine candidate for foreign substance inspection is selected.

【0046】なお、図2の例には示されていないが、各
画像処理対象項目にも、複数種類の画像処理サブルーチ
ン候補を含む画像処理サブルーチン候補セットが対応付
けされている。画像処理対象項目の例を挙げると、画像
処理対象が生産品である場合には、商品的に形状の安定
した例えばスイッチなどの商品分類項目が使用され、画
像処理対象が人や動物である場合には、手、足および顔
などの部位項目が使用される。また、画像処理対象およ
び検査目的の両方を一の項目として画像処理サブルーチ
ン候補セットが対応付けされる場合もある。
Although not shown in the example of FIG. 2, each image processing target item is also associated with an image processing subroutine candidate set including a plurality of types of image processing subroutine candidates. As an example of the image processing target item, when the image processing target is a product, a product classification item such as a switch, which has a stable shape as a product, is used, and the image processing target is a person or an animal. Is used for site items such as hands, feet, and face. Further, the image processing subroutine candidate set may be associated with both the image processing target and the inspection purpose as one item.

【0047】上記画像処理プログラム作成機能は、主と
して自動実行設定部42およびプログラム作成部44に
より構成され、画像処理装置4の画像処理プログラムを
作成するための各種処理を実行する。例えば、画像処理
対象の撮像で得えられ、撮像用メモリ41に記憶されて
いる対象画像のデータを画像・設定表示用メモリ48に
転送して、対象画像を入出力表示装置1の画面に表示す
る処理が行われる。また、複数種類の画像処理対象項目
および複数種類の検査目的項目の少なくとも一方の組み
から、操作入力装置3を通じた操作入力で選択された項
目に応じて、対応する画像処理サブルーチン候補セット
を画像処理記憶部431から選択する処理が行われる。
また、選択された画像処理サブルーチン候補セットに含
まれる複数種類の画像処理サブルーチン候補の各々を、
操作入力装置3を通じた操作入力で指定された指定領域
内の、対象画像の全部または一部の画像に対して実行
し、これらの各実行結果を入出力表示装置1の画面に表
示する処理が実行される。さらに、その画面に表示され
た各実行結果を基に、上記選択された画像処理サブルー
チン候補セットから、操作入力装置3を通じた操作入力
で選択された画像処理サブルーチン候補を、上記指定領
域内の画像に対する画像処理サブルーチンとして画像処
理装置4の画像処理プログラムに組み込む処理が実行さ
れる。
The image processing program creation function is mainly composed of an automatic execution setting section 42 and a program creation section 44, and executes various processes for creating an image processing program for the image processing apparatus 4. For example, the data of the target image obtained by the imaging of the image processing target and stored in the imaging memory 41 is transferred to the image / setting display memory 48, and the target image is displayed on the screen of the input / output display device 1. Is performed. In addition, from at least one of a plurality of types of image processing target items and a plurality of types of inspection target items, a corresponding image processing subroutine candidate set is subjected to image processing in accordance with an item selected by an operation input through the operation input device 3. A process of selecting from the storage unit 431 is performed.
Further, each of the plurality of types of image processing subroutine candidates included in the selected image processing subroutine candidate set is
A process is executed for all or a part of the target image in the designated area designated by the operation input through the operation input device 3, and the result of each execution is displayed on the screen of the input / output display device 1. Be executed. Further, based on each execution result displayed on the screen, the image processing subroutine candidate selected by the operation input through the operation input device 3 is replaced with the image processing subroutine candidate selected from the selected image processing subroutine candidate set in the designated area. Is executed in the image processing program of the image processing apparatus 4 as an image processing subroutine corresponding to.

【0048】次に、第1実施形態の特徴となる画像処理
プログラム作成機能の動作について説明する。まず、G
UIを利用して、これからユーザに選択させる画像処理
サブルーチン候補を画像処理サブルーチンとして挿入す
べき画像処理プログラム内の位置を指定させるための画
面に、入出力表示装置1の画面を切り替える処理が実行
される。この後、ステップS1で、上記画像処理サブル
ーチンを挿入すべき位置が、操作入力装置3を通じた操
作入力で指定されると、指定された位置情報を一時保持
し、続いて、対象画像を入出力表示装置1の画面に表示
する処理が行われる。これらは、自動実行設定部42お
よび画像処理サブルーチン挿入位置指定部442により
実行される。
Next, the operation of the image processing program creation function which is a feature of the first embodiment will be described. First, G
Using the UI, a process for switching the screen of the input / output display device 1 to a screen for designating a position in the image processing program in which an image processing subroutine candidate to be selected by the user from now on is to be inserted as an image processing subroutine is executed. You. Thereafter, in step S1, when the position where the image processing subroutine is to be inserted is designated by the operation input through the operation input device 3, the designated position information is temporarily held, and then the target image is input / output. Processing for displaying on the screen of the display device 1 is performed. These are executed by the automatic execution setting unit 42 and the image processing subroutine insertion position designation unit 442.

【0049】この後、ステップS2で、対象画像の全部
または一部の画像に対する指定領域(図4(a)の「領
域作成」の枠参照)が、操作入力装置3を通じた操作入
力で指定されると、その指定領域の情報を一時保持し
(図1の443)、続いて、GUIを用いて、複数種類
の画像処理対象項目および複数種類の検査目的項目の少
なくとも一方の組みから所望の項目をユーザに選択させ
るための画面に、入出力表示装置1の画面を切り替える
処理が実行される。
Thereafter, in step S 2, a designated area for all or a part of the target image (see the “area creation” frame in FIG. 4A) is designated by an operation input through the operation input device 3. Then, the information of the designated area is temporarily held (443 in FIG. 1), and subsequently, a desired item is selected from at least one set of a plurality of types of image processing target items and a plurality of types of inspection target items using the GUI. Is performed to switch the screen of the input / output display device 1 to the screen for prompting the user to select.

【0050】この後、複数種類の画像処理対象項目およ
び複数種類の検査目的項目の少なくとも一方の組みか
ら、操作入力装置3を通じた操作入力で所望の項目が選
択されると、ステップS3で、その項目に対応する画像
処理サブルーチン候補セットを画像処理記憶部431か
ら選択する処理が行われる。
Thereafter, when a desired item is selected from at least one of a plurality of types of image processing target items and a plurality of types of inspection target items by an operation input through the operation input device 3, the process proceeds to step S3. A process of selecting an image processing subroutine candidate set corresponding to the item from the image processing storage unit 431 is performed.

【0051】続いて、ステップS4で、選択された画像
処理サブルーチン候補セット内から登録順に従って一の
画像処理サブルーチン候補を選択し、これを上記指定領
域内の画像に対して実行する処理が行われる(図1の4
44)。
Subsequently, in step S4, a process of selecting one image processing subroutine candidate from the selected image processing subroutine candidate set in accordance with the registration order and executing the selected image processing subroutine for an image in the designated area is performed. (4 in FIG. 1)
44).

【0052】続いて、ステップS5で、選択された画像
処理サブルーチン候補セット内に、未実行の画像処理サ
ブルーチン候補が残っているか否かの判別が行われる。
未実行の画像処理サブルーチン候補が残っていれば(S
5でYES)、ステップS4に戻る一方、そうでなけれ
ば(S5でNO)、ステップS8で、図4(b)の例に
示すように、上記各画像処理サブルーチン候補の実行結
果を入出力表示装置1の画面に表示して、所望の画像処
理サブルーチン候補を受け付ける処理が実行される(図
1の445)。
Subsequently, in step S5, it is determined whether or not an unexecuted image processing subroutine candidate remains in the selected image processing subroutine candidate set.
If unexecuted image processing subroutine candidates remain (S
5), return to step S4, otherwise (NO in S5), input and output the execution results of each of the above image processing subroutine candidates in step S8, as shown in the example of FIG. A process of displaying on the screen of the device 1 and receiving a desired image processing subroutine candidate is executed (445 in FIG. 1).

【0053】この後、ステップS9,S10で、その画
面に表示された各実行結果を基に、上記選択された画像
処理サブルーチン候補セットから、操作入力装置3を通
じた操作入力で所望の画像処理サブルーチン候補(図4
(d)では「ひび検査」)が選択されると、この選択さ
れた画像処理サブルーチン候補を、上記指定領域内の画
像に対する画像処理サブルーチンとして、画像処理プロ
グラム内の、ステップS1で指定された位置に組み込む
処理が行われる(図4(c)の「領域1のひび検査」参
照)。
Then, in steps S9 and S10, based on the execution results displayed on the screen, a desired image processing subroutine is selected from the selected image processing subroutine candidate set by an operation input through the operation input device 3. Candidate (Fig. 4
When “crack inspection” is selected in (d), the selected image processing subroutine candidate is set as the image processing subroutine for the image in the specified area, and the position specified in step S1 in the image processing program. (See "Inspection of crack in region 1" in FIG. 4C).

【0054】ここで、例えば生産ラインで得られた欠陥
のある検査対象を撮像して得た画像が上記対象画像とし
て使用される場合、対象画像の欠陥のある領域を指定領
域とするなどの簡単な操作で、画像処理プログラムを作
成することができる。実際、生産ラインでは、欠陥のあ
る検査対象そのものを撮像した画像を参照しながら画像
処理プログラムが作成されるが、本画像処理プログラム
作成機能によれば、画像処理の知識のない人でも、欠陥
が発生し得る領域を指摘しながら、画像処理プログラム
を作成することができる。
Here, for example, when an image obtained by imaging an inspection target having a defect obtained on a production line is used as the above-mentioned target image, it is possible to simply use a defective region of the target image as a designated region. With a simple operation, an image processing program can be created. In fact, on the production line, an image processing program is created while referring to an image of the inspection target itself having a defect. It is possible to create an image processing program while pointing out a region where the occurrence is possible.

【0055】また、複数種類の画像処理サブルーチン候
補には、例えば、異物検査、ひび検査およびクラック検
査などの各種検査用のものがあるが、外観検査、寸法測
定、有無検知(位置検出)および文字検出などの検査目
的を選択するだけで、検査目的に最適な画像処理サブル
ーチン候補が複数種類自動的に選択されることになるの
で、ユーザは、上述の具体的な画像処理の検査種別を知
らなくても、操作入力装置3を通じた上記操作入力を容
易に行うことができる。
The plurality of types of image processing subroutine candidates include those for various kinds of inspections such as a foreign matter inspection, a crack inspection and a crack inspection. By simply selecting the inspection purpose such as detection, a plurality of types of image processing subroutine candidates that are optimal for the inspection purpose are automatically selected. Therefore, the user does not know the inspection type of the specific image processing described above. However, the operation input through the operation input device 3 can be easily performed.

【0056】また、画像処理には、一般的に外観検査、
寸法測定、有無検知などの類型が見られ、画像処理対象
が異なっても、同様の検査を行う場合には画像データの
特性に合わせていく課程で、同じような画像処理アルゴ
リズムが使用されるという傾向がある。すなわち、画像
処理装置に搭載されている多数の画像処理アルゴリズム
のうち、少なくとも初期段階では、少数の画像処理アル
ゴリズムが使用できれば、画像処理を行うことができ
る。また、同様の検査対象を扱う場合には、同じような
画像処理プログラムが組み込まれて処理を行うことが多
い。従って、代表的な(よく使われる)画像処理を自動
実行し、予め画像処理装置に組み込まれた判断のみでは
不十分となる部分を、自動処理結果としてユーザにフィ
ードバックし、ユーザの判断を仰ぐことで、最適となる
画像処理プログラムの作成が可能になるのである。
The image processing generally includes an appearance inspection,
There are types such as dimension measurement and presence / absence detection, and even if the image processing target is different, the same image processing algorithm is used in the process of matching the characteristics of the image data when performing the same inspection Tend. That is, image processing can be performed as long as a small number of image processing algorithms can be used at least at the initial stage among many image processing algorithms mounted on the image processing apparatus. Further, when handling similar inspection targets, processing is often performed by incorporating a similar image processing program. Therefore, the representative (frequently used) image processing is automatically executed, and a part where the judgment incorporated in the image processing apparatus alone is not sufficient is fed back to the user as an automatic processing result, and the user's judgment is asked. Thus, it becomes possible to create an optimal image processing program.

【0057】さらに、画像処理装置4が、検査対象に発
生しうる不具合の有無を確認するなどのために使用され
る場合、画像処理装置4を使用する現場のユーザは、た
とえ画像処理の知識が無くても、検査対象としての画像
処理対象に発生しうる不具合(例えば検査対象の欠陥部
分または欠陥が起きそうな箇所など)を経験的なノウハ
ウとして通常把握しており、この場合、検査対象に発生
しうる不具合などに関する経験的なノウハウが盛り込ま
れた画像処理プログラムが作成されることになる。
Further, when the image processing apparatus 4 is used for confirming whether or not there is a defect that may occur in the inspection object, a user at the site using the image processing apparatus 4 has knowledge of image processing. Even if there is no defect, the defect that can occur in the image processing target as the inspection target (for example, a defect part of the inspection target or a place where a defect is likely to occur) is usually grasped as empirical know-how. An image processing program is created that incorporates empirical know-how relating to possible problems.

【0058】以上、第1実施形態によれば、ユーザに画
像処理の知識が無くても画像処理装置4の画像処理プロ
グラム(例えば外観検査および計測など、画像処理対象
に適した応用プログラム)を簡単に作成することができ
るほか、画像処理の知識が不要となるため、その習得時
間(工数)を削減することができる。また、ユーザが指
定領域を設定するので、画像処理対象の間違った部分を
検査する画像処理プログラムが作成されることがない。
さらに、複数種類の画像処理対象項目および複数種類の
検査項目の少なくとも一方の組みから項目が選択される
ので、画像処理対象や検査目的に適した画像処理プログ
ラムを作成することができ、また不要な項目が排除され
るから、画像処理プログラムによる実行時間を短縮する
ことができる。
As described above, according to the first embodiment, even if the user does not have knowledge of image processing, the image processing program of the image processing apparatus 4 (for example, an application program suitable for an image processing object such as visual inspection and measurement) can be simplified. In addition to this, it is not necessary to have knowledge of image processing, so that the learning time (man-hours) can be reduced. Further, since the user sets the designated area, there is no need to create an image processing program for inspecting a wrong portion of the image processing target.
Further, since an item is selected from at least one set of a plurality of types of image processing target items and a plurality of types of inspection items, an image processing program suitable for the image processing target and the inspection purpose can be created, and unnecessary Since the items are eliminated, the execution time by the image processing program can be reduced.

【0059】また、項目に対応する複数種類の画像処理
サブルーチン候補が選択されるので、これら画像処理サ
ブルーチン候補には、項目に対応するものが含まれ、項
目に対応しないものは含まれないから、選択された複数
種類の画像処理サブルーチン候補の数が必要以上に多く
なるという問題が生ぜず、各実行結果を基にした画像処
理サブルーチン候補の選択操作が容易となる。さらに、
対話式の面倒な設問に答えることなく、従ってその機能
を設ける必要もなく、ユーザが満足する実行結果となっ
た画像処理サブルーチン候補により、ユーザの検査目的
に合致した画像処理プログラムを作成することができ、
画像処理プログラムの修正などを不要にすることができ
る。
Further, since a plurality of types of image processing subroutine candidates corresponding to the items are selected, these image processing subroutine candidates include those corresponding to the items and those not corresponding to the items are not included. The problem that the number of the selected plural types of image processing subroutine candidates becomes unnecessarily large does not occur, and the operation of selecting the image processing subroutine candidates based on each execution result becomes easy. further,
It is possible to create an image processing program that meets the user's inspection purpose by using the image processing subroutine candidates that have been executed satisfactorily by the user without answering the troublesome interactive questions and therefore without providing the function. Can,
Modification of the image processing program can be made unnecessary.

【0060】なお、第1実施形態では、画像処理プログ
ラム作成機能が画像処理装置内に具備される構成になっ
ているが、画像処理プログラム作成機能が画像処理装置
とは別体の画像処理プログラム作成装置として設けられ
る構成でもよい。
In the first embodiment, the image processing program creation function is provided in the image processing apparatus. However, the image processing program creation function is provided separately from the image processing apparatus. A configuration provided as a device may be used.

【0061】図5は画像処理プログラム作成システムに
設けられる別の画像処理プログラム作成機能の動作フロ
ー図、図6は図5の動作フローの説明図であり、これら
の図を用いて本発明の第2実施形態について説明する。
ただし、以下の各実施形態では図1を共通に使用する。
FIG. 5 is an operation flowchart of another image processing program creation function provided in the image processing program creation system, and FIG. 6 is an explanatory diagram of the operation flow of FIG. 5. Two embodiments will be described.
However, FIG. 1 is commonly used in the following embodiments.

【0062】第2実施形態の画像処理プログラム作成シ
ステムは、入出力表示装置1と、撮像装置2と、操作入
力装置3とを第1実施形態と同様に備えるほか、選択さ
れた画像処理サブルーチン候補に対するパラメータ設定
機能を画像処理プログラム作成機能がさらに有する以外
は第1実施形態と同様に構成される画像処理装置4を備
える。
The image processing program creation system according to the second embodiment includes an input / output display device 1, an image pickup device 2, and an operation input device 3 in the same manner as in the first embodiment. An image processing apparatus 4 having the same configuration as that of the first embodiment except that the image processing program creation function further has a parameter setting function for.

【0063】すなわち、図5に示すように、ステップS
5,S8間にステップS6,S7が追加され、ステップ
S6で、図6に示す「パラメータ修正画面」のようなG
UIを用いて、所望の画像処理サブルーチン候補に対す
るパラメータの修正入力を受け付け、続いて、修正があ
ると(S7でYES)、所望の画像処理サブルーチン候
補に対するパラメータを、受け付けたパラメータに修正
した上で、ステップS4に戻る一方、修正がなければ
(S7でNO)、ステップS8に進む処理を実行する構
成になっている。
That is, as shown in FIG.
Steps S6 and S7 are added between the steps S5 and S8. In the step S6, G such as the "parameter correction screen" shown in FIG.
Using the UI, a correction input of a parameter for a desired image processing subroutine candidate is received, and if there is a correction (YES in S7), the parameter for the desired image processing subroutine candidate is corrected to the received parameter. When the process returns to step S4 and there is no correction (NO in S7), the process proceeds to step S8.

【0064】以上、第2実施形態によれば、所望の画像
処理サブルーチン候補に対するパラメータの修正が可能
になっているので、より好適な画像処理プログラムの作
成が可能になる。
As described above, according to the second embodiment, it is possible to modify a parameter for a desired image processing subroutine candidate, so that a more suitable image processing program can be created.

【0065】図7は画像処理プログラム作成システムに
設けられる別の画像処理プログラム作成機能の動作フロ
ー図、図8,図9は図7の動作フローの説明図であり、
これらの図を用いて本発明の第3実施形態について説明
する。
FIG. 7 is an operation flowchart of another image processing program creation function provided in the image processing program creation system, and FIGS. 8 and 9 are explanatory diagrams of the operation flow of FIG.
The third embodiment of the present invention will be described with reference to these drawings.

【0066】第3実施形態の画像処理プログラム作成シ
ステムは、選択された複数種類の画像処理サブルーチン
候補の各実行結果を入出力表示装置1の画面に表示し、
この画面に表示された各実行結果を基に、選択済みの画
像処理サブルーチン候補セットから、操作入力装置3を
通じた操作入力で画像処理サブルーチン候補を選択させ
る処理手順に代えて、選択された複数種類の画像処理サ
ブルーチン候補の各実行結果から、それぞれ、所定基準
から乖離する度合いを示す乖離度を算出し、これら複数
の乖離度を基に、選択済みの画像処理サブルーチン候補
セットから、自動的に画像処理サブルーチン候補を選択
する処理手順を含む画像処理プログラム作成機能が画像
処理装置4に具備される以外は第1実施形態と同様に構
成される。
The image processing program creation system according to the third embodiment displays on the screen of the input / output display device 1 the results of execution of the selected plural types of image processing subroutine candidates.
On the basis of each execution result displayed on this screen, instead of the processing procedure of selecting an image processing subroutine candidate by an operation input through the operation input device 3 from the selected image processing subroutine candidate set, a plurality of selected image processing subroutine candidates are selected. From the respective execution results of the image processing subroutine candidates, a degree of deviation indicating a degree of deviation from a predetermined reference is calculated, and based on the plurality of degrees of deviation, an image is automatically extracted from a selected image processing subroutine candidate set. The configuration is the same as that of the first embodiment except that the image processing device 4 is provided with an image processing program creation function including a processing procedure for selecting a processing subroutine candidate.

【0067】第3実施形態では、一の良品および一の不
良品の画像処理対象をそれぞれ撮像して2つの対象画像
を取得し、これら対象画像の各々に対し、選択された画
像処理サブルーチン候補セットに含まれる各画像処理サ
ブルーチン候補を実行し、これらの実行結果から、良品
の対象画像については値が小さく、不良品の対象画像に
ついては値が大きくなる、良品基準に対する乖離度を算
出し、対象画像が不良品である場合に乖離度の値が一番
大きくなる画像処理サブルーチン候補を選択し、これを
画像処理サブルーチンとして画像処理プログラムに組み
込む処理が行われる。
In the third embodiment, image processing targets of one good product and one defective product are respectively imaged to obtain two target images, and a selected image processing subroutine candidate set is set for each of these target images. The image processing subroutine candidates included in are executed, and from these execution results, the value is small for the non-defective target image and large for the defective target image. When the image is defective, an image processing subroutine candidate having the largest divergence value is selected, and the image processing subroutine is incorporated into the image processing program as an image processing subroutine.

【0068】図7において、2つの対象画像が画像処理
装置4に入力されると、不良品の対象画像に対してステ
ップS11,S12の処理が実行され、この後、ステッ
プS13,S14に進んで、良品の画像に切り替えら
れ、ステップS11に戻って、良品の対象画像に対して
ステップS11,S12の処理が実行され、この後、ス
テップS13,S15を経てステップS17に進む。
In FIG. 7, when two target images are input to the image processing apparatus 4, the processing of steps S11 and S12 is performed on the defective target image, and thereafter, the process proceeds to steps S13 and S14. Then, the process is switched to a non-defective image, and the process returns to step S11 to execute the processes of steps S11 and S12 on the non-defective target image, and then proceeds to step S17 via steps S13 and S15.

【0069】ステップS11では、第1実施形態と同様
に、画像処理サブルーチンの挿入位置指定用の画面に切
り替える処理と、指定された位置情報を一時保持し、対
象画像を表示する処理と、指定領域の情報を一時保持
し、所望の項目選択用の画面に切り替える処理と、選択
された項目に対応する画像処理サブルーチン候補セット
を画像処理記憶部431から選択する処理と、各画像処
理サブルーチン候補を実行する処理とが行われる。ステ
ップS12では、上記各画像処理サブルーチン候補の実
行結果を所定のメモリなどに格納する処理が実行される
(図1の441)。
In step S11, as in the first embodiment, a process for switching to a screen for designating an insertion position of the image processing subroutine, a process for temporarily storing designated position information and displaying a target image, and a process for designating a designated area Is temporarily held and the screen is switched to a screen for selecting a desired item, an image processing subroutine candidate set corresponding to the selected item is selected from the image processing storage unit 431, and each image processing subroutine candidate is executed. Is performed. In step S12, a process of storing the execution results of the respective image processing subroutine candidates in a predetermined memory or the like is executed (441 in FIG. 1).

【0070】そして、ステップS17に進むと、良品結
果の正規化値計算の処理が実行され、続いて、ステップ
S18〜S20で、不良品結果の正規化値計算の処理
と、良品/不良品の乖離度(分離度合い)の比の計算の
処理と、最大乖離度のアルゴリズム選択の処理とが順次
実行され、この後、乖離度を基に自動的に選択された画
像処理サブルーチン候補を画像処理サブルーチンとして
画像処理装置4の画像処理プログラムに組み込む処理が
実行される。
When the process proceeds to step S17, the process of calculating the normalization value of the non-defective product is executed. Subsequently, in steps S18 to S20, the process of calculating the normalized value of the non-defective product, and Processing for calculating the ratio of the degree of divergence (degree of separation) and processing for selecting the algorithm for the maximum degree of divergence are sequentially executed, and thereafter, the image processing subroutine candidate automatically selected based on the degree of divergence is converted to an image processing subroutine. The processing to be incorporated in the image processing program of the image processing apparatus 4 is executed.

【0071】ここで、図8(a)に示すように、ステッ
プS17,S18では、同一基準で判定するために、良
品基準の測定値で正規化値(百分率)が算出される。な
お、これに限らず、複数の良品基準の平均値あるいは平
均値と標準偏差から求めた最大基準値や最小基準値など
を使用して正規化を行ってもよい。
Here, as shown in FIG. 8 (a), in steps S17 and S18, a normalized value (percentage) is calculated with the measured value based on the non-defective product in order to make the determination based on the same standard. The present invention is not limited to this, and normalization may be performed using an average value of a plurality of non-defective standards, or a maximum reference value or a minimum reference value obtained from the average value and the standard deviation.

【0072】ステップS19では、良品の測定結果を良
品基準に十分近いとみなして、良品の、良品基準からの
乖離度と、不良品の、良品基準からの乖離度との比(下
記の式参照)をとって、図8(b)に示すように、分離
度合いとしての乖離度が算出される。ステップS20で
は、乖離度の比が最大になった画像処理サブルーチン候
補が、良不良を最も分離した画像処理サブルーチンとし
て選択される。
In step S19, it is considered that the measurement result of the non-defective product is sufficiently close to the non-defective product standard, and the ratio of the deviation of the non-defective product from the non-defective product standard (see the following equation). ) Is calculated as shown in FIG. 8B. In step S20, the image processing subroutine candidate with the largest ratio of divergence is selected as the image processing subroutine that best separates good / bad.

【0073】 比=|不良品正規化値-100|/|良品正規化値-100| さらに詳述すると、図9(a)に示す黒の円形の画像を
良品基準としたとき、対象画像から画像処理で得られる
データは多数考えられるが、ここでは、面積、周囲長検
出、射影幅およびパターンマッチングによる相関値であ
るとする。図9(b)に示す画像を良品画像としたと
き、これは良品基準よりも若干小さくまた偏っており、
良品基準と差があるが、この良品画像から得られる上記
のデータは良品基準に十分近いとみなす。この設定で、
例えば、図9(c)〜(e)に示す画像A、画像B、画
像Cを不良品画像として良品基準と比較すると、画像A
の場合、面積値、周囲長の乖離度は余り変わらず、射影
幅、パターンマッチングの乖離度が大きくなる。また、
画像Bの場合は射影幅、周囲長の乖離度は余り変わら
ず、面積値とパターンマッチングの乖離度が大きくな
る。また、画像Cの場合は射影幅、面積値、パターンマ
ッチングの乖離度は余り変わらず、周囲長の乖離度が大
きくなる。このように、不良の状態によって、正確な判
定に効果的な画像処理が異なるため、抽出すべき不良の
状態に適した画像処理を選択することが、第3実施形態
の目的である。
Ratio = | Defective Product Normalized Value−100 | / | Normal Product Normalized Value−100 | More specifically, when the black circular image shown in FIG. Although a large number of data obtained by the image processing are conceivable, here, it is assumed that the data is a correlation value obtained by area, perimeter detection, projection width, and pattern matching. When the image shown in FIG. 9B is defined as a non-defective image, it is slightly smaller and biased than the non-defective standard.
Although there is a difference from the non-defective product standard, the above data obtained from this non-defective product image is considered to be sufficiently close to the non-defective product standard. With this setting,
For example, comparing the images A, B, and C shown in FIGS.
In the case of, the divergence of the area value and the perimeter does not change much, and the divergence of the projection width and the pattern matching increases. Also,
In the case of the image B, the divergence between the projection width and the perimeter does not change much, and the divergence between the area value and the pattern matching increases. In the case of the image C, the projection width, the area value, and the divergence of the pattern matching do not change much, and the divergence of the peripheral length increases. As described above, the image processing effective for accurate determination differs depending on the state of the defect. Therefore, it is an object of the third embodiment to select image processing suitable for the state of the defect to be extracted.

【0074】以上、第3実施形態によれば、ユーザに画
像処理の知識が無くても画像処理装置の画像処理プログ
ラムをより簡単に作成することができる。
As described above, according to the third embodiment, an image processing program of an image processing apparatus can be more easily created without a user having knowledge of image processing.

【0075】なお、図7のフローでは、良品画像および
不良品画像が各1つ使用されることになっているが、そ
れぞれ複数使用されることにすれば、より多くのサンプ
ル画像から乖離度の比が統計的に得られる。これによ
り、一層好適な画像処理サブルーチン候補の選択が可能
となって、一層好適な画像処理プログラムの作成が可能
となる。また、製造工程では、スタッフは、良品基準を
確認した後、良品グループ、不良品グループを工程に流
して、良品、不良品混在でも正確に判別することができ
るように訓練をして経験を積むが、これにそのまま上記
画像処理プログラム作成システムを適用することができ
る。
In the flow of FIG. 7, one non-defective image and one defective image are to be used. However, if a plurality of non-defective images are used, the deviation degree from a larger number of sample images can be determined. The ratio is obtained statistically. As a result, a more suitable image processing subroutine candidate can be selected, and a more suitable image processing program can be created. Also, in the manufacturing process, after confirming the non-defective product standards, the staff flows the non-defective product group and the defective product group into the process, and trains them so that they can accurately determine the mixture of non-defective products and defective products, and gains experience. However, the above-described image processing program creation system can be applied as it is.

【0076】図10は画像処理プログラム作成システム
に設けられる別の画像処理プログラム作成機能の説明
図、図11は画像処理サブルーチン候補の選択、そのパ
ラメータの修正および新たな画像処理サブルーチン候補
の登録の説明図であり、これらの図を用いて本発明の第
4実施形態について説明する。
FIG. 10 is an explanatory diagram of another image processing program creating function provided in the image processing program creating system. FIG. 11 is an illustration of selecting an image processing subroutine candidate, correcting its parameters, and registering a new image processing subroutine candidate. It is a figure and a 4th embodiment of the present invention is described using these figures.

【0077】第4実施形態の画像処理プログラム作成シ
ステムは、画像処理サブルーチン候補セットに、それぞ
れに互いに異なるパラメータの値が割り当てられた複数
の同一フローの画像処理サブルーチン候補が含まれる以
外は第1実施形態と同様に構成される。
The image processing program creation system according to the fourth embodiment is similar to the first embodiment except that the image processing subroutine candidate set includes a plurality of image processing subroutine candidates of the same flow to which mutually different parameter values are assigned. The configuration is the same as that of the form.

【0078】すなわち、図10に示すように、画像処理
サブルーチン候補セットに含まれる異物検査、ひび検査
およびかけ検査などの複数種類の画像処理サブルーチン
候補の各々には、同一フローの画像処理サブルーチン候
補が複数設けられており、それぞれのパラメータには異
なる値が予め割り当てられている。例えば、異物検査の
同一フローの「微分値しきい値」には、「40」、「5
0」、「60」の異なる値が割り当てられ、ひび検査の
同一フローの「光量差しきい値」には、「10」、「5
0」の異なる値が割り当てられ、そしてかけ検査の同一
フローの「ライン本数」には、「15」,「10」の異
なる値が割り当てられている。
That is, as shown in FIG. 10, for each of a plurality of types of image processing subroutine candidates such as a foreign substance inspection, a crack inspection, and a fray inspection included in the image processing subroutine candidate set, an image processing subroutine candidate having the same flow is used. A plurality of parameters are provided, and different values are assigned to the respective parameters in advance. For example, "40", "5"
Different values of “0” and “60” are assigned, and “10” and “5” are assigned to the “light amount difference threshold value” of the same flow of crack inspection.
A different value of “0” is assigned, and different values of “15” and “10” are assigned to “the number of lines” of the same flow of the gating inspection.

【0079】そして、図11(a)に示すように、画像
処理サブルーチン候補セットに含まれる複数種類の画像
処理サブルーチン候補は、各実行結果(図では「O
K」,「NG」)とともに表示され、GUIを通じて所
望のものを選択することができるようになっている。例
えば、所望の画像処理サブルーチン候補をアクティブに
して、操作入力装置3を通じてGUIの「設定」ボタン
をオンする操作を行えば、その画像処理サブルーチン候
補が画像処理サブルーチンとして選択される。キャンセ
ルする場合は、GUIの「キャンセル」ボタンをオンす
る操作を行えばよい。
As shown in FIG. 11A, a plurality of types of image processing subroutine candidates included in the image processing subroutine candidate set have respective execution results (“O” in the figure).
K ”,“ NG ”), and a desired item can be selected through the GUI. For example, if the user activates a desired image processing subroutine candidate and turns on the “setting” button of the GUI through the operation input device 3, the image processing subroutine candidate is selected as the image processing subroutine. To cancel, an operation of turning on a “cancel” button on the GUI may be performed.

【0080】また、操作入力装置3を通じてGUIの
「パラメータ設定」ボタンをオンする操作を行えば、図
11(b)に示す「パラメータ設定・登録」の画面に切
り替わる。そして、操作入力装置3を通じて所望の値を
修正したいパラメータの項目に入力する操作を行い、続
いてGUIの「設定」ボタンをオンする操作を行えば、
図10に示した対応する画像処理サブルーチン候補のパ
ラメータの値がその入力した値に修正される。また、G
UIの「登録」ボタンをオンする操作を行えば、対応す
る画像処理サブルーチン候補と同一のフローをコピーし
て、これに図11(b)に示す一連のパラメータが設定
され、新たな画像処理サブルーチン候補が対応する画像
処理サブルーチン候補セットに追加される。
If the operation of turning on the "parameter setting" button of the GUI is performed through the operation input device 3, the screen is switched to the "parameter setting / registration" screen shown in FIG. Then, by performing an operation of inputting a parameter item whose desired value is to be corrected through the operation input device 3, and then performing an operation of turning on a “setting” button of the GUI,
The value of the parameter of the corresponding image processing subroutine candidate shown in FIG. 10 is corrected to the input value. G
If an operation of turning on the “register” button of the UI is performed, the same flow as the corresponding image processing subroutine candidate is copied, and a series of parameters shown in FIG. Candidates are added to the corresponding image processing subroutine candidate set.

【0081】以上、第4実施形態によれば、好適なパラ
メータの値が割り当てられた好適な画像処理サブルーチ
ン候補セットで、より好適な画像処理プログラムを作成
することができる。
As described above, according to the fourth embodiment, a more suitable image processing program can be created with a suitable image processing subroutine candidate set to which suitable parameter values are assigned.

【0082】図12は画像処理プログラム作成システム
に設けられる別の画像処理プログラム作成機能の説明図
であり、この図を用いて本発明の第5実施形態について
説明する。
FIG. 12 is an explanatory diagram of another image processing program creation function provided in the image processing program creation system. A fifth embodiment of the present invention will be described with reference to FIG.

【0083】第5実施形態の画像処理プログラム作成シ
ステムは、操作入力装置3を通じて操作入力された画像
処理対象項目および検査目的項目の少なくとも一方の項
目と、画像処理記憶部431に記憶されている全種類の
画像処理サブルーチン候補から操作入力装置3を通じた
操作入力で選択された複数種類の画像処理サブルーチン
候補とに応じて、これら画像処理サブルーチン候補を上
記操作入力された項目に対応させて画像処理記憶部43
1に記憶する処理を画像処理プログラム作成機能がさら
に行う以外は第1実施形態と同様に構成される。
The image processing program creation system according to the fifth embodiment includes at least one of an image processing target item and an inspection target item input through the operation input device 3 and all of the items stored in the image processing storage unit 431. In accordance with the plurality of types of image processing subroutine candidates selected by the operation input through the operation input device 3 from the types of image processing subroutine candidates, the image processing subroutine candidates are stored in the image processing corresponding to the items input by the operation. Part 43
1 is configured in the same manner as the first embodiment except that the image processing program creation function further performs the processing to be stored in 1.

【0084】すなわち、画像処理記憶部431には、図
12(a)に示すように多数の画像処理サブルーチン候
補が記憶されており、図12(b)に示す「画像処理対
象・目的選択」の画面を呼び出すと、画像処理記憶部4
31に記憶されている全種類の画像処理サブルーチン候
補が入出力表示装置1に表示される。そして、操作入力
装置3を通じて、画像処理対象項目および検査目的項目
の少なくとも一方の項目を入力するとともに、入出力表
示装置1に表示された全種類の画像処理サブルーチン候
補から所望する複数種類の画像処理サブルーチン候補を
選択すると、これら画像処理サブルーチン候補が入力さ
れた項目に対応して画像処理記憶部431に記憶され
る。図12(b),(c),(d)の例では、外観検査
の項目が選択され、この項目に対応して、異物検査、ひ
び検査、クラック検査および欠け検査の画像処理サブル
ーチン候補が画像処理記憶部431に記憶される。この
ような登録は、例えば生産技術者が製造部門の技術者に
依頼することで行われ、この依頼を受けた製造部門の技
術者が現場に則した登録をすることになる。なお、図1
2(d)には、新しく登録された画像処理サブルーチン
候補セットによる自動実行の結果が示されている。
That is, as shown in FIG. 12A, a large number of image processing subroutine candidates are stored in the image processing storage section 431, and the "image processing object / purpose selection" shown in FIG. When the screen is called, the image processing storage unit 4
All types of image processing subroutine candidates stored in 31 are displayed on the input / output display device 1. Then, at least one of the image processing target item and the inspection purpose item is input through the operation input device 3, and a plurality of types of image processing desired from all types of image processing subroutine candidates displayed on the input / output display device 1 are performed. When a subroutine candidate is selected, these image processing subroutine candidates are stored in the image processing storage unit 431 corresponding to the input items. In the examples of FIGS. 12B, 12C, and 12D, the item of the appearance inspection is selected, and corresponding to this item, the image processing subroutine candidates of the foreign substance inspection, the crack inspection, the crack inspection, and the chipping inspection are displayed as images. It is stored in the processing storage unit 431. Such registration is performed, for example, by requesting a production engineer from a manufacturing department engineer, and the manufacturing department engineer who receives the request performs registration according to the site. FIG.
2 (d) shows the result of automatic execution by the newly registered image processing subroutine candidate set.

【0085】以上、第5実施形態によれば、現場により
一層適合した画像処理プログラムの作成が可能になる。
また、自動的に実行させる複数の画像処理サブルーチン
候補を登録または削除して、画像処理サブルーチン候補
セットをカスタマイズし、各画像処理サブルーチン候補
セットを選択容易にすれば、画像処理プログラムの作成
の生産性を向上させることである。
As described above, according to the fifth embodiment, it is possible to create an image processing program that is more suitable for the site.
In addition, by registering or deleting a plurality of image processing subroutine candidates to be automatically executed and customizing the image processing subroutine candidate set and making it easy to select each image processing subroutine candidate set, the productivity of image processing program creation can be improved. It is to improve.

【0086】図13は画像処理プログラム作成システム
に設けられる別の画像処理プログラム作成機能の説明図
であり、この図を用いて本発明の第6実施形態について
説明する。
FIG. 13 is an explanatory diagram of another image processing program creation function provided in the image processing program creation system, and a sixth embodiment of the present invention will be described with reference to FIG.

【0087】第6実施形態の画像処理プログラム作成シ
ステムは、選択された画像処理サブルーチン候補セット
に含まれる複数種類の画像処理サブルーチン候補に、共
通する処理部分がある場合には、それら複数種類の画像
処理サブルーチン候補が、その共通する処理部分を兼用
する以外は第1実施形態と同様に構成される。
The image processing program creation system according to the sixth embodiment, when a plurality of types of image processing subroutine candidates included in the selected image processing subroutine candidate set have a common processing portion, the plurality of types of image processing subroutine candidates The configuration is the same as that of the first embodiment except that the processing subroutine candidate also serves as the common processing part.

【0088】図13(a)〜(d)の例では、画像処理
サブルーチン候補セットには、有無判定、面積検出、重
心位置検出およびひび検査の複数種類の画像処理サブル
ーチン候補が含まれ、これらの各々には複数種類の処理
が含まれている。この画像処理サブルーチン候補セット
の設計時、各画像処理サブルーチン候補内に、どのよう
な前処理または共通化の可能な処理が含まれているかが
分かるので、各画像処理サブルーチン候補内の処理を検
討して共通化情報が設定される。
In the examples shown in FIGS. 13A to 13D, the image processing subroutine candidate set includes a plurality of types of image processing subroutine candidates for presence / absence determination, area detection, center of gravity position detection, and crack inspection. Each includes a plurality of types of processing. At the time of designing this image processing subroutine candidate set, it is possible to know what kind of pre-processing or common processing is included in each image processing subroutine candidate. Common information is set.

【0089】ここでは、2値化、微分および細線化の処
理が共通化情報(2値化,微分,細線化)として設定さ
れている。具体的には、複数種類の画像処理サブルーチ
ン候補のうち、有無判定、面積検出および重心位置検出
の画像処理サブルーチン候補には、共通化情報の2値化
処理が含まれ、共通化情報の微分処理および細線化が含
まれないので、それぞれに(1,0,0)が共通化情報
の各処理のアルゴリズムに代えて割り当てられている。
これに対して、残りの画像処理サブルーチン候補には、
共通化情報の微分処理および細線化が含まれ、共通化情
報の2値化処理が含まれないので、(0,1,1)が共
通化情報の各処理のアルゴリズムに代えて割り当てられ
ている。共通化情報の各処理のアルゴリズムは画像処理
サブルーチン候補セットに含まれる。
Here, the processing of binarization, differentiation and thinning is set as common information (binarization, differentiation and thinning). Specifically, among a plurality of types of image processing subroutine candidates, image processing subroutine candidates for presence / absence determination, area detection, and center-of-gravity position detection include binarization processing of common information, and differential processing of common information. (1, 0, 0) is assigned to each of them instead of the algorithm of each process of the common information.
In contrast, the remaining image processing subroutine candidates include:
Since differentiation processing and thinning of the common information are included and binary processing of the common information is not included, (0, 1, 1) is assigned instead of the algorithm of each processing of the common information. . The algorithm of each process of the common information is included in the image processing subroutine candidate set.

【0090】このように、2値化、微分および細線化の
各処理のアルゴリズムに代えて、共通化情報が割り当て
られた各画像処理サブルーチン候補が最初にコールされ
たとき、まず、共通化情報の各処理が実行され、共通化
処理の出力データが一時保持される。この後、各画像処
理サブルーチン候補内に格納されている共通化情報に従
って、上記出力データがコピーされて使用され、各画像
処理サブルーチン候補の、共通化情報の各処理を除く個
別処理(図では個別部分)が実行される。
As described above, when each image processing subroutine candidate to which common information is assigned is first called instead of the algorithm of each of the binarization, differentiation and thinning processing, first, the common information Each process is executed, and output data of the common process is temporarily held. Thereafter, the output data is copied and used in accordance with the common information stored in each image processing subroutine candidate, and the individual processing of each image processing subroutine candidate excluding each processing of the common information (in FIG. Part) is executed.

【0091】なお、同じ2値化でもパラメータが異なる
場合があるので、図13(e)に示すように、パラメー
タを付加してフラグ対応させるようにしてもよい。ただ
し、図において、A,B,Cなどのアルファベットはパ
ラメータ条件であり、0,1の数字は共通化フラグであ
る。
Since the parameters may be different even in the same binarization, the parameters may be added to correspond to the flags as shown in FIG. However, in the figure, alphabets such as A, B, and C are parameter conditions, and numbers 0 and 1 are common flags.

【0092】画像処理サブルーチン候補セットに含まれ
る複数種類の画像処理サブルーチン候補は、画像処理サ
ブルーチン候補セットが画像処理対象項目および検査目
的項目の少なくとも一方に対応する関係で、例えば同じ
前処理を踏む場合などが多くなり、その前処理を複数種
類の画像処理サブルーチン候補の各々について逐一実行
していくと全体の実行時間が勢い長くなるが、第6実施
形態によれば、共通する処理部分が複数種類の画像処理
サブルーチン候補の各々によって兼用され、共通する処
理部分については1回の処理で済むようになるから、画
像処理プログラムを作成するための実行時間を大幅に短
縮することができる。
A plurality of types of image processing subroutine candidates included in the image processing subroutine candidate set include, for example, a case where the image processing subroutine candidate set performs the same preprocessing because of a relationship corresponding to at least one of the image processing target item and the inspection target item. When the pre-processing is executed for each of a plurality of types of image processing subroutine candidates one by one, the overall execution time increases, but according to the sixth embodiment, a plurality of types of common processing parts are used. The image processing subroutine candidates are also used in common, and only one processing is required for the common processing part, so that the execution time for creating the image processing program can be greatly reduced.

【0093】図14は画像処理プログラム作成システム
に設けられる別の画像処理プログラム作成機能による動
作フロー図、図15,図16は図14の動作フローの説
明図であり、これらの図を用いて本発明の第7実施形態
について説明する。
FIG. 14 is an operation flow diagram of another image processing program creation function provided in the image processing program creation system, and FIGS. 15 and 16 are explanatory diagrams of the operation flow of FIG. A seventh embodiment of the invention will be described.

【0094】第7実施形態の画像処理プログラム作成シ
ステムは、指定領域内の画像に対して、選択された複数
種類の画像処理サブルーチン候補の各々を実行すると
き、その複数種類の画像処理サブルーチン候補の各々に
含まれるパラメータのうち、操作入力装置3を通じた操
作入力で選択されたパラメータとこのパラメータに対し
て指定された可変条件とに応じて、上記選択された複数
種類の画像処理サブルーチン候補の各々を、これに含ま
れる上記選択されたパラメータを上記指定された可変条
件で可変しながら、指定領域内の画像に対して実行し、
選択された画像処理サブルーチン候補を画像処理サブル
ーチンとして画像処理プログラムに組み込むとき、その
画像処理サブルーチン内の上記選択されたパラメータの
値を、各実行結果から得られるそのパラメータの適正範
囲の中心値に設定する処理を画像処理プログラム作成機
能がさらに行う以外は第1実施形態と同様に構成され
る。
When the image processing program creating system of the seventh embodiment executes each of a plurality of selected image processing subroutine candidates on an image in a designated area, the plurality of image processing subroutine candidates are selected. Each of the plurality of selected image processing subroutine candidates is selected according to a parameter selected by an operation input through the operation input device 3 and a variable condition specified for the parameter among the parameters included in each of the parameters. Is performed on the image in the designated area while changing the selected parameter included in the designated condition under the designated variable condition,
When incorporating the selected image processing subroutine candidate into an image processing program as an image processing subroutine, set the value of the selected parameter in the image processing subroutine to the center value of the appropriate range of the parameter obtained from each execution result The configuration is the same as that of the first embodiment except that the image processing program creation function further performs the processing to be performed.

【0095】すなわち、可変パラメータフラグが1で、
パラメータが選択され、この可変条件が指定されると
(S21でYES)、ステップS22に進む一方、そう
でなければ(S22でNO)、ステップS28に進む。
That is, if the variable parameter flag is 1,
If a parameter is selected and this variable condition is specified (YES in S21), the process proceeds to step S22, otherwise (NO in S22), the process proceeds to step S28.

【0096】ステップS22に進むと、選択されたパラ
メータの値を可変条件の初期値に変更し、ステップS2
3で、その変更されたパラメータの画像処理サブルーチ
ンを実行する処理が行われる。続いて、ステップS24
で、実行結果が適正範囲内か否かの判定が行われ、適正
であれば(S24でYES)、ステップS25でそのパ
ラメータを格納し、この後、ステップS26に進む一
方、適正でなければ(S24でNO)、ステップS26
に進む。
At step S22, the value of the selected parameter is changed to the initial value of the variable condition.
In step 3, a process of executing an image processing subroutine of the changed parameter is performed. Subsequently, step S24
Then, it is determined whether or not the execution result is within the proper range. If the result is proper (YES in S24), the parameter is stored in step S25, and thereafter, the process proceeds to step S26. (NO in S24), Step S26
Proceed to.

【0097】ステップS26に進むと、パラメータの値
が可変条件(可変範囲)を超えたか否かの判定が行わ
れ、超えると(S26でYES)、ステップS27でパ
ラメータを適正範囲の中心に設定し、この後、ステップ
S28に進む一方、超えなければ(S26でNO)、パ
レメータの値を変更した後にステップS22に戻る。な
お、ステップS28では、第1実施形態の図3に示した
フローと同様の処理が実行される。
At step S26, it is determined whether or not the value of the parameter has exceeded the variable condition (variable range). If it has exceeded (YES at S26), the parameter is set at the center of the appropriate range at step S27. Thereafter, the process proceeds to step S28, but if not exceeded (NO in S26), the process returns to step S22 after changing the parameter value. In step S28, the same processing as the flow shown in FIG. 3 of the first embodiment is executed.

【0098】図15の例に示す重心位置検出の場合、ス
テップS22〜S27において、可変パラメータフラグ
が1のとき、可変パラメータ情報部を参照し、この部分
を実行することでパラメータが決定される。つまり、図
1の「複数の画像処理サブルーチン候補実行部」444
は、画像処理サブルーチン候補セット内の可変パラメー
タ情報を使用してパラメータを決定した上でステップS
28の自動実行に進むのである。各画像処理サブルーチ
ン候補毎に、可変パラメータの有無を示す可変パラメー
タフラグが用意されており、可変パラメータフラグが1
のとき、ステップS22〜S27のパラメータ決定ルー
チンが機能する。
In the case of detecting the position of the center of gravity shown in the example of FIG. 15, when the variable parameter flag is 1 in steps S22 to S27, the parameter is determined by referring to the variable parameter information section and executing this part. That is, the “plurality of image processing subroutine candidate execution units” 444 in FIG.
Determines the parameters using the variable parameter information in the image processing subroutine candidate set, and then proceeds to step S
It proceeds to automatic execution of 28. A variable parameter flag indicating the presence or absence of a variable parameter is prepared for each image processing subroutine candidate.
At this time, the parameter determination routine of steps S22 to S27 functions.

【0099】特定のパラメータの上下限値・変化量を設
定すると、「複数の画像処理サブルーチン候補実行部」
444は、その全てを実行し、検査結果が適正範囲内で
あれば、パラメータを格納していく。全可変パラメータ
を実行し終わると、適正パラメータの上限および下限か
らパラメータを確定する。図14のステップS27で
は、最も上限に近い適正パラメータと最も下限に近い適
正パラメータの平均値、あるいは中央値などが求められ
る。図16の例に示す左側の画像について、光量180
の部分の中心あたりに重心位置を求めたい場合、可変パ
ラメータを2値化のしきい値とし、このしきい値の上限
値を200、下限値を100、そして変化量を1とし、
検査結果(重心位置)の適正範囲を矩形領域R1である
とすると、2値化しきい値が151〜180の間で重心
位置が求められ、自動実行によって決定される2値化し
きい値は165となる。
When the upper and lower limits and the amount of change of a specific parameter are set, the "plurality of image processing subroutine candidate execution units"
444 executes all of them, and stores the parameters if the inspection result is within the appropriate range. After the execution of all the variable parameters, the parameters are determined from the upper and lower limits of the appropriate parameters. In step S27 of FIG. 14, an average value or a median value of the appropriate parameters closest to the upper limit and the appropriate parameters closest to the lower limit is obtained. For the left image shown in the example of FIG.
When it is desired to obtain the center of gravity position around the center of the portion, the variable parameter is set as a threshold value for binarization, the upper limit value of the threshold value is 200, the lower limit value is 100, and the change amount is 1,
Assuming that the appropriate range of the inspection result (center of gravity position) is the rectangular region R1, the position of the center of gravity is obtained between the binarization thresholds 151 to 180, and the binarization threshold determined by automatic execution is 165. Become.

【0100】ここで、画像処理サブルーチンの選択およ
び実行と、その実行結果の表示と、画像処理サブルーチ
ンの選択または解除との一連の処理を繰り返して画像処
理プログラムを作成する従来技術では、画像処理サブル
ーチンに、予め予想されたパラメータが使用されるの
で、検査対象が予想範囲内に入っていなければ、適切な
画像処理プログラムを作成することができない課題があ
る。
Here, in the prior art in which a series of processes of selecting and executing the image processing subroutine, displaying the execution result, and selecting or canceling the image processing subroutine are repeated to create an image processing program, the image processing subroutine is used. However, since parameters predicted in advance are used, there is a problem that an appropriate image processing program cannot be created unless the inspection target is within the expected range.

【0101】これに対し、第7実施形態によれば、画像
処理サブルーチンのパラメータが適切な値に設定される
ので、適切な画像処理プログラムが可能になる。また、
良不良判定が特定の範囲で一定する場合、画像処理プロ
グラムに組み込む画像処理サブルーチン内の所望のパラ
メータの値が適正範囲の中心値に設定され、最も代表的
なパラメータに設定されることになる。
On the other hand, according to the seventh embodiment, the parameters of the image processing subroutine are set to appropriate values, so that an appropriate image processing program can be realized. Also,
When the pass / fail judgment is constant in a specific range, the value of a desired parameter in the image processing subroutine to be incorporated in the image processing program is set to the center value of the appropriate range, and set to the most representative parameter.

【0102】図17は画像処理プログラム作成システム
に設けられる別の画像処理プログラム作成機能による動
作フロー図、図18は図14の動作フローの説明図であ
り、これらの図を用いて本発明の第8実施形態について
説明する。
FIG. 17 is an operation flow diagram of another image processing program generation function provided in the image processing program generation system, and FIG. 18 is an explanatory diagram of the operation flow of FIG. 14. Eighth embodiment will be described.

【0103】第8実施形態の画像処理プログラム作成シ
ステムは、選択された複数種類の画像処理サブルーチン
候補の各実行結果を入出力表示装置1の画面に表示する
とき、それらの各実行結果とともに、対象画像または各
実行結果を出した画像処理サブルーチン候補による対象
画像に対する画像処理済みの画像を入出力表示装置1の
画面に表示する処理部が、画像処理プログラム作成機能
にさらに設けられている以外は第1実施形態と同様に構
成される。
The image processing program creating system according to the eighth embodiment, when displaying the execution results of a plurality of types of selected image processing subroutine candidates on the screen of the input / output display device 1, displays the execution results together with the respective execution results. Except that the image processing program creating function further includes a processing unit that displays an image or an image that has been subjected to image processing on the target image by the image processing subroutine candidate that has issued each execution result on the screen of the input / output display device 1. The configuration is the same as that of the first embodiment.

【0104】すなわち、ステップS31で、第1実施形
態と同様に、選択された複数種類の画像処理サブルーチ
ン候補の各実行結果を得たとき、ステップS32で、そ
れらの各実行結果(図では処理結果)を格納し、ステッ
プS33で、画像処理フラグが示す画像を格納する処理
が行われる。ここでは、図18(a),(b)の例に示
す画像表示フラグが使用される。この画像表示フラグ
は、画像処理サブルーチン候補セット内の各画像処理サ
ブルーチン候補に付加され、対象画像(図では原画像)
または付加された画像処理サブルーチン候補による各処
理のうち、どの処理による画像処理済みの画像を入出力
表示装置1の画面に表示するのかを示すフラグを有して
いる。例えば、画像処理サブルーチン候補セット内の異
物検査およびかけ検査の画像処理サブルーチン候補につ
いては、原画像のフラグが1になっているので、原画像
が入出力表示装置1の画面に表示され、ひび検査の画像
処理サブルーチン候補については、すべてのフラグが0
になっているので、画像が表示されないことになる。
That is, as in the first embodiment, when the execution results of a plurality of selected image processing subroutine candidates are obtained in step S31, the respective execution results (the processing results in FIG. ) Is stored, and in step S33, a process of storing the image indicated by the image processing flag is performed. Here, the image display flag shown in the example of FIGS. 18A and 18B is used. This image display flag is added to each image processing subroutine candidate in the image processing subroutine candidate set, and the target image (the original image in the figure)
Alternatively, the input / output display device 1 has a flag indicating which of the processes of the added image processing subroutine candidates is to be displayed on the screen of the input / output display device 1 after the image processing. For example, as for the image processing subroutine candidates of the foreign matter inspection and the fray inspection in the image processing subroutine candidate set, since the flag of the original image is 1, the original image is displayed on the screen of the input / output display device 1, and the crack inspection is performed. All flags are 0 for the image processing subroutine candidate
, The image is not displayed.

【0105】ステップS34で、画像表示フラグ内に1
のフラグがあるか否かの判別が行われ、1のフラグがあ
れば(S34でYES)、ステップS35で、対応する
画像と処理結果とを合成し、ステップS36で、処理結
果の一覧を作成する処理が行われる一方、1のフラグが
なければ(S34でNO)、ステップS36に進む。こ
の後、作成された一覧に従って、入出力表示装置1の画
面に各実行結果が表示される。図18(c)には、図1
8(a),(b)の画像表示フラグに対応する表示例が
示されている。なお、図18(c)の例では、一つの画
像処理サブルーチン候補には、一つの画像が表示されて
いるが、複数の画像が表示されるようにしてもよい。
In step S34, 1 is set in the image display flag.
It is determined whether or not there is a flag. If the flag is 1 (YES in S34), the corresponding image is combined with the processing result in step S35, and a list of processing results is created in step S36. If there is no 1 flag (NO in S34), the process proceeds to step S36. Thereafter, each execution result is displayed on the screen of the input / output display device 1 according to the created list. FIG. 18C shows FIG.
8A and 8B show display examples corresponding to the image display flags. In the example of FIG. 18C, one image is displayed in one image processing subroutine candidate, but a plurality of images may be displayed.

【0106】以上、第8実施形態によれば、各実行結果
の視認性が高まり、例えば、各実行結果のみでは画像処
理サブルーチン候補の選択が困難である場合、画像処理
済みの画像を参考にして適切な画像処理サブルーチン候
補を選択することが可能となる。
As described above, according to the eighth embodiment, the visibility of each execution result is improved. For example, when it is difficult to select an image processing subroutine candidate using only each execution result, referring to an image that has been subjected to image processing, It is possible to select an appropriate image processing subroutine candidate.

【0107】図19は画像処理プログラム作成システム
に設けられる別の画像処理プログラム作成機能の説明図
であり、この図を用いて本発明の第9実施形態について
説明する。
FIG. 19 is an explanatory diagram of another image processing program creation function provided in the image processing program creation system. The ninth embodiment of the present invention will be described with reference to FIG.

【0108】第9実施形態の画像処理プログラム作成シ
ステムは、画像処理サブルーチンが組み込まれて作成さ
れた画像処理プログラムに、共通する処理部分がある場
合、これらの処理部分を一の処理部分として統合する処
理を画像処理プログラム作成機能がさらに行う以外は第
1実施形態と同様に構成される。
In the image processing program creating system according to the ninth embodiment, if an image processing program created by incorporating an image processing subroutine has common processing parts, these processing parts are integrated as one processing part. The configuration is the same as that of the first embodiment except that the processing is further performed by the image processing program creation function.

【0109】例えば、図19(a)に示すように、画像
処理サブルーチン候補セットから有無判定の画像処理サ
ブルーチン候補を選択する操作入力に応じて、これを画
像処理プログラムに組み込み、続いて別の画像処理サブ
ルーチン候補セットから面積検出の画像処理サブルーチ
ン候補を選択する操作入力に応じて、これを画像処理プ
ログラムに組み込むなどして、画像処理プログラムを作
成した後、図19(b)に示す画面に切り替える処理が
行われる。
For example, as shown in FIG. 19A, in response to an operation input for selecting an image processing subroutine candidate for presence / absence judgment from an image processing subroutine candidate set, this is incorporated into an image processing program, and then another image processing subroutine is selected. In response to an operation input for selecting an image processing subroutine candidate for area detection from the processing subroutine candidate set, the image processing subroutine is incorporated into the image processing program, and the image processing program is created. Then, the screen is switched to the screen shown in FIG. Processing is performed.

【0110】この後、図19(b)に示す画面の「編
集」をチェックする操作入力などに応じて、図19
(c)の処理順序を図19(d)の処理順序に編集する
処理が行われる。図19(c)の編集前の処理順序で
は、有無判定から重心位置検出に処理が移行するが、メ
ニューなどで共通化の編集を指示し、これに応じた操作
入力に従って、図19(d)に示すように、有無判定の
前に2値化処理を実行するように共通する処理部分を一
の処理部分として統合する処理が実行される。
Thereafter, in response to an operation input for checking “edit” on the screen shown in FIG.
Processing for editing the processing order of (c) to the processing order of FIG. 19D is performed. In the processing order before the editing shown in FIG. 19C, the processing shifts from the presence / absence determination to the detection of the center of gravity. However, an instruction to edit the commonization is given by a menu or the like, and FIG. As shown in (2), processing for integrating common processing parts as one processing part is performed so that the binarization processing is performed before the presence / absence determination.

【0111】なお、図中の領域情報は、画像処理サブル
ーチン挿入位置指定部442でユーザが入力した情報を
基に、「画像処理プログラムへの組込み部」446によ
って生成される。また、領域情報の内容は、領域番号
(各画像処理がどの領域を対象としているかを示すI
D)、領域種別(矩形、円、多角形など)、領域形状
(頂点座標、中心座標・半径など)などである。
The area information in the figure is generated by the “embedding unit into image processing program” 446 based on the information input by the user in the image processing subroutine insertion position specifying unit 442. The content of the area information includes an area number (I which indicates which area each image processing targets).
D), area type (rectangle, circle, polygon, etc.), area shape (vertex coordinates, center coordinates / radius, etc.), and the like.

【0112】以上、第9実施形態によれば、画像処理プ
ログラムの容量を減らすことができるほか、その実行速
度の高速化を図ることができる。また、画像処理プログ
ラムが短くなり、全体の把握が容易となり、画像処理の
生産性を向上させることができる。
As described above, according to the ninth embodiment, the capacity of the image processing program can be reduced, and the execution speed thereof can be increased. In addition, the image processing program is shortened, the entire image is easily grasped, and the productivity of image processing can be improved.

【0113】図20は画像処理プログラム作成システム
に設けられる別の画像処理プログラム作成機能による動
作フロー図、図21は図20の動作フローの説明図であ
り、これらの図を用いて本発明の第10実施形態につい
て説明する。
FIG. 20 is an operation flow diagram of another image processing program generation function provided in the image processing program generation system, and FIG. 21 is an explanatory diagram of the operation flow of FIG. 20. Tenth embodiment will be described.

【0114】第10実施形態の画像処理プログラム作成
システムは、画像処理サブルーチンが組み込まれて作成
された画像処理プログラムのフローチャートを入出力表
示装置1の画面に表示するとともに、そのフローチャー
ト内の画像処理サブルーチンのシンボルと関連付けられ
た位置、例えばそのシンボル上に、その画像処理サブル
ーチンによる対象画像に対する画像処理済みの画像を表
示する処理を画像処理プログラム作成機能がさらに行う
以外は第1実施形態と同様に構成される。
The image processing program creating system according to the tenth embodiment displays a flowchart of an image processing program created by incorporating an image processing subroutine on the screen of the input / output display device 1, and displays the image processing subroutine in the flowchart. The configuration is the same as that of the first embodiment except that the image processing program creating function further performs a process of displaying an image that has been subjected to image processing on the target image by the image processing subroutine at a position associated with the symbol, for example, the symbol. Is done.

【0115】図20において、ステップ41で、画像処
理サブルーチン候補が選択されると、ステップS42の
「画像処理サブルーチンによる追加用プログラムの構
成」、ステップS43の「表示データ読み込み」、ステ
ップS44の「画像処理サブルーチンのアイコン読み込
み」、ステップS45の「出力画像読み込み」、ステッ
プS46の「表示用アイコンと出力画像の合成」、ステ
ップS47の「表示用アイコンの表示位置情報作成」、
ステップS48の「アイコン接続情報作成」、そしてス
テップS49の「表示データ書き込み」の各処理が順次
実行される。
In FIG. 20, when an image processing subroutine candidate is selected in step 41, "configuration of an additional program by image processing subroutine" in step S42, "display data reading" in step S43, and "image data" in step S44. "Read icon of processing subroutine", "Read output image" in step S45, "Synthesize display icon and output image" in step S46, "Create display position information of display icon" in step S47,
The processes of “create icon connection information” in step S48 and “write display data” in step S49 are sequentially executed.

【0116】ここで、ステップS42の追加用プログラ
ムは、検査領域の自動実行で選択された画像処理サブル
ーチン候補をソースプログラムに置き換えたものであ
り、図21(c)に示す画像処理記憶部431に格納さ
れている画像処理サブルーチン候補とリンクし、画像処
理サブルーチン挿入位置選択部442で画像処理プログ
ラムに組み込まれる。ステップS43の表示データは、
アイコン、表示位置、アイコン間の接続情報からなり、
図21(a)に示す画像処理プログラム格納部45から
読み出され、フローチャートへの挿入時に見え方を考慮
して再計算され、選択された画像処理サブルーチンのア
イコンを挿入して元に戻される。ステップS45の出力
画像は自動実行データ格納部441から読み込まれる。
実行結果の画像は、自動実行時、自動実行データ格納部
441に保存されている出力画像をアイコンに合成し、
一つのアイコンとして表示される。画像処理プログラム
実行部46が情報を解析して、画像・設定表示用メモリ
48に書き込むことで、図21(b)に示すように、入
出力表示装置1に表示される。なお、アイコンの情報
は、画像処理記憶部431に格納されている。
Here, the additional program in step S42 is obtained by replacing the image processing subroutine candidate selected in the automatic execution of the inspection area with a source program, and is stored in the image processing storage unit 431 shown in FIG. The image processing subroutine is linked with the stored image processing subroutine candidate, and is incorporated into the image processing program by the image processing subroutine insertion position selection unit 442. The display data of step S43 is
It consists of icons, display positions, and connection information between the icons.
The image processing program is read out from the image processing program storage unit 45 shown in FIG. 21A, is recalculated in consideration of the appearance at the time of insertion into the flowchart, is inserted into the selected image processing subroutine icon, and is restored. The output image in step S45 is read from the automatic execution data storage unit 441.
When the image of the execution result is automatically executed, the output image stored in the automatic execution data storage unit 441 is synthesized with the icon,
It is displayed as one icon. The image processing program execution unit 46 analyzes the information and writes it in the image / setting display memory 48, so that the information is displayed on the input / output display device 1 as shown in FIG. Note that the icon information is stored in the image processing storage unit 431.

【0117】つまり、画像処理サブルーチン候補が組み
込まれて作成された画像処理プログラムのフローチャー
トが、図21(b)に示すように、入出力表示装置1の
画面に表示されるとともに、そのフローチャート内の画
像処理サブルーチンのシンボルと関連付けられた位置
に、その画像処理サブルーチンによる対象画像に対する
画像処理済みの画像が表示され、その画像と、対応する
画像処理サブルーチンのアイコンとが一つのアイコンに
なっているのである。
That is, a flowchart of the image processing program created by incorporating the image processing subroutine candidates is displayed on the screen of the input / output display device 1 as shown in FIG. At the position associated with the symbol of the image processing subroutine, an image on which the image processing has been performed on the target image by the image processing subroutine is displayed. Since the image and the icon of the corresponding image processing subroutine are one icon, is there.

【0118】以上、第10実施形態によれば、各画像処
理サブルーチン候補が画像処理プログラム内のどこに組
み込まれたかを容易に把握することができ、対象画像の
各指定領域内の画像に対する各画像処理サブルーチン候
補による実行結果を容易に検証することができる。ま
た、プログラマが画像処理プログラムを修正する場合、
画像処理サブルーチンが画像処理プログラム内に隠蔽さ
れることがなく、それが画像処理プログラム内のどこに
組み込まれたかを容易に把握することができるので、そ
の修正が容易となる。
As described above, according to the tenth embodiment, it is possible to easily grasp where each image processing subroutine candidate is incorporated in the image processing program, and to perform each image processing subroutine on the image in each designated area of the target image. The execution result of the subroutine candidate can be easily verified. Also, if the programmer modifies the image processing program,
Since the image processing subroutine is not hidden in the image processing program, and it can be easily grasped where the image processing subroutine is incorporated in the image processing program, the correction becomes easy.

【0119】図22は画像処理プログラム作成システム
に設けられる別の画像処理プログラム作成機能による動
作フロー図、図23〜図25は図22の動作フローの説
明図であり、これらの図を用いて本発明の第11実施形
態について説明する。
FIG. 22 is an operation flow diagram according to another image processing program creation function provided in the image processing program creation system, and FIGS. 23 to 25 are explanatory diagrams of the operation flow of FIG. 22. An eleventh embodiment of the present invention will be described.

【0120】第11実施形態の画像処理プログラム作成
システムは、画像処理プログラムのフローチャートを入
出力表示装置1の画面に表示するとき、そのフローチャ
ート内の画像処理サブルーチンのシンボル(アイコン)
に対する操作入力装置3を通じた操作入力に応じて、対
応する画像処理サブルーチンによる各画像処理過程の画
像を順次切替表示する処理を画像処理プログラム作成機
能がさらに行う以外は第10実施形態と同様に構成され
る。
When the flowchart of the image processing program is displayed on the screen of the input / output display device 1, the image processing program creation system according to the eleventh embodiment displays symbols (icons) of the image processing subroutine in the flowchart.
The configuration is the same as that of the tenth embodiment except that the image processing program creation function further performs a process of sequentially switching and displaying the images in each image processing process by the corresponding image processing subroutine according to the operation input through the operation input device 3 for Is done.

【0121】図22において、操作入力装置3を通じ
て、図23(b)に示す画像処理サブルーチンのアイコ
ンをダブルクリックする操作を行えば、ステップS52
の「画像処理サブルーチンの実行」、ステップS53の
「処理画像・結果の格納」、ステップS54の「表示デ
ータ読み込み」、ステップS55の「画像処理サブルー
チンのアイコン読み込み」、ステップS56の「再表示
入力待ち」、ステップS57の「未表示の処理画像・結
果あり?」の処理が順次実行される。ステップS57
で、未表示の処理画像・結果ありの判定結果が得られる
と(S57でYES)、ステップS58に進み、そうで
なければ(S57でNO)、終了する。
In FIG. 22, if the operation input device 3 is operated to double-click the icon of the image processing subroutine shown in FIG.
"Execution of image processing subroutine", "Storing of processed image / result" in step S53, "Reading of display data" in step S54, "Reading of icon of image processing subroutine" in step S55, and "Wait for redisplay input" in step S56. ", And the process of" Is there an undisplayed processed image / result? "In step S57. Step S57
If the determination result indicating that there is an undisplayed processed image / result is obtained (YES in S57), the process proceeds to step S58; otherwise (NO in S57), the process ends.

【0122】ステップS58に進むと、「出力画像・結
果読み込み」の処理が実行され、この後、ステップS5
9の「表示用アイコンと出力画像・結果の合成」、ステ
ップS60の「表示用アイコンの表示位置情報作成」、
ステップS61の「アイコン接続情報作成」、ステップ
S62の「表示データ書き込み」の処理が順次実行さ
れ、この後、ステップS56に戻る。
At step S58, "output image / result reading" processing is executed, and thereafter, step S5 is executed.
9, “Synthesis of display icon and output image / result”, “Creation of display position information of display icon” in step S60,
The process of “creating icon connection information” of step S61 and the process of “writing display data” of step S62 are sequentially performed, and thereafter, the process returns to step S56.

【0123】上記フローを補説すると、ステップS54
の表示データは、図23(a)に示す画像処理プログラ
ム格納部45から読み出される。ステップS56〜S6
2で、順次画像表示するとき、例えば入出力表示装置1
の画面に表示されているアイコンをクリックすると、次
の処理画像・結果を表示する動作に入る。処理画像表示
をしていて、再表示入力待ちがない場合も考えられ、こ
の場合で、処理画像が複数枚あれば、動画を表示するこ
とになる。画像処理サブルーチンの種別によって処理画
像・結果の数が変動する。入出力表示装置1の画面に表
示されたフローチャートの構成要素(アイコン)に対す
る操作に応じて、詳細データ、途中経過の確認を可能に
するために、画像処理の処理画像・結果を表示する。な
お、図22のフローでは、図23(b)に示すように画
像が表示されるが、図23(c)の「かけ検査」のサブ
ルーチンに示すように、その画像処理サブルーチンのパ
ラメータのリストが表示されるようにしてもよい。
If the above flow is supplemented, step S54
Are read out from the image processing program storage unit 45 shown in FIG. Steps S56 to S6
2, when sequentially displaying images, for example, the input / output display device 1
When the icon displayed on the screen is clicked, the operation for displaying the next processed image / result is started. There may be a case where the processed image is displayed and there is no waiting for redisplay input. In this case, if there are a plurality of processed images, a moving image is displayed. The number of processed images / results varies depending on the type of image processing subroutine. In accordance with an operation on a component (icon) of the flowchart displayed on the screen of the input / output display device 1, a detailed image and a processed image / result of the image processing are displayed in order to enable confirmation of the progress. In the flow of FIG. 22, an image is displayed as shown in FIG. 23 (b). However, as shown in a subroutine of "apply inspection" in FIG. It may be displayed.

【0124】ここで、本発明の各実施形態では、画像処
理プログラムに組み込まれる画像処理サブルーチンは、
間接的に、複数種類の画像処理対象項目および複数種類
の検査目的項目の少なくとも一方の組みの項目に対応し
て選択される関係で、従来の「複数」の画像処理サブル
ーチンに相当する大きなものとなる場合があるが、この
場合の「大きな」画像処理サブルーチンによる各画像処
理過程の画像を確認したいときがあり得る。
Here, in each embodiment of the present invention, the image processing subroutine incorporated in the image processing program is as follows:
Indirectly, a large selection corresponding to at least one of the plurality of types of image processing target items and the plurality of types of inspection target items corresponds to the conventional "plurality" of image processing subroutines. However, there may be times when it is desired to confirm the image in each image processing step by the “large” image processing subroutine in this case.

【0125】そこで、図24(a)の例に示すように、
入出力表示装置1の画面上の「ひび検査」のサブルーチ
ン内には、デフォルトで、図24(f),図25(b)
に示すような、その画像処理サブルーチンによる最終の
処理結果画像が表示されている。この状態で、図24
(a)の例に示す「ひび検査」のサブルーチンのアイコ
ンをクリックする毎に、「ひび検査」の画像処理サブル
ーチンによる各画像処理過程の画像が、図24(b),
図25(a)に示すような対象画像(原画像)、図24
(c),図25(c)に示すような微分値画像、図24
(d),図25(d)に示すような微分方向値画像、図
24(e),図25(e)に示すような細線化画像、そ
して図24(f),図25(b)に示すような画像処理
結果の画像に周期的に切り替わるのである。なお、図2
5(f)はエッジ延長した画像が表示される場合の例で
ある。
Therefore, as shown in the example of FIG.
24 (f) and 25 (b) by default in the subroutine "Crack inspection" on the screen of the input / output display device 1.
, A final processing result image of the image processing subroutine is displayed. In this state, FIG.
Each time the icon of the “crack inspection” subroutine shown in the example of (a) is clicked, an image of each image processing process by the “crack inspection” image processing subroutine is displayed as shown in FIG.
The target image (original image) as shown in FIG.
(C), a differential value image as shown in FIG.
(D), differential direction value images as shown in FIG. 25 (d), thinned images as shown in FIGS. 24 (e) and 25 (e), and FIGS. 24 (f) and 25 (b). The image is periodically switched to the image of the image processing result as shown. Note that FIG.
FIG. 5F shows an example in which an image whose edge is extended is displayed.

【0126】以上、第11実施形態によれば、画像処理
サブルーチンによる各画像処理過程および画像処理結果
が適切であるか否かの確認が行うことができる。
As described above, according to the eleventh embodiment, it is possible to confirm whether each image processing step by the image processing subroutine and the image processing result are appropriate.

【0127】図26,図27は画像処理プログラム作成
システムに設けられる別の画像処理プログラム作成機能
による動作フロー図であり、これらの図を用いて本発明
の第12実施形態について説明する。
FIGS. 26 and 27 are operation flow charts of another image processing program creation function provided in the image processing program creation system. The twelfth embodiment of the present invention will be described with reference to these figures.

【0128】第12実施形態の画像処理プログラム作成
システムは、画像処理プログラムのフローチャートを入
出力表示装置1の画面に表示するとき、まず、画像処理
プログラムのフローチャートを入出力表示装置1の画面
に表示し、続いて入出力表示装置1の画面に表示したフ
ローチャートに対して、操作入力装置3を通じた操作入
力で指定された位置に、上記選択された画像処理サブル
ーチン候補を画像処理サブルーチンとして組み込んで、
これが組み込まれて作成された画像処理プログラムのフ
ローチャートを入出力表示装置1の画面に表示する処理
を画像処理プログラム作成機能がさらに行う以外は第1
0実施形態と同様に構成される。
When displaying the flowchart of the image processing program on the screen of the input / output display device 1, the image processing program creation system of the twelfth embodiment first displays the flowchart of the image processing program on the screen of the input / output display device 1. Then, with respect to the flowchart displayed on the screen of the input / output display device 1, the selected image processing subroutine candidate is incorporated as an image processing subroutine at a position designated by an operation input through the operation input device 3,
Except that the image processing program creation function further performs a process of displaying a flowchart of the image processing program created by incorporating the program on the screen of the input / output display device 1,
The configuration is the same as that of the first embodiment.

【0129】図26において、領域指定部から画像処理
サブルーチン選択指定部までを経た後、ステップS71
の「全体プログラム(画像処理プログラム)の読み込
み」、ステップS72の「入力装置による挿入位置指
定」、ステップS73の「指定位置へのプログラム挿
入」、ステップS74の「全体プログラムの格納」、ス
テップS75の「表示データ読み込み」、ステップS7
6の「画像処理サブルーチンのアイコン読み込み」、ス
テップS77の「表示用アイコンの表示位置情報作
成」、ステップS78の「アイコン接続情報作成」、そ
してステップS79の「表示データ書き込み」の処理が
順次実行される。なお、ステップS75の表示データ
は、図27(a)の画像処理プログラム格納部45から
読み出される。
In FIG. 26, after passing from the area designation section to the image processing subroutine selection designation section, step S71 is performed.
"Reading entire program (image processing program)", "designation of insertion position by input device" in step S72, "insertion of program into designated position" in step S73, "storing of entire program" in step S74, and step S75. "Read display data", step S7
No. 6, "read icon of image processing subroutine", step S77 "create display position information of display icon", step S78 "create icon connection information", and step S79 "write display data" are sequentially executed. You. Note that the display data in step S75 is read from the image processing program storage unit 45 in FIG.

【0130】つまり、図26のS70内に示す「検査
1」と「検査2」との間が指定されると、図27(b)
に示すように、その指定された位置に、選択された画像
処理サブルーチン候補が画像処理サブルーチンとして組
み込まれる。図では、「検査1」と「検査2」との間
に、異物検査およびかけ検査の画像処理サブルーチンが
組み込まれている。そして、これらの画像処理サブルー
チンが組み込まれて作成された画像処理プログラムのフ
ローチャートが入出力表示装置1の画面に表示されるの
である。
In other words, when the space between “test 1” and “test 2” shown in S70 of FIG. 26 is designated, FIG.
As shown in (2), the selected image processing subroutine candidate is incorporated as an image processing subroutine at the designated position. In the figure, an image processing subroutine for foreign substance inspection and fray inspection is incorporated between “inspection 1” and “inspection 2”. Then, a flowchart of the image processing program created by incorporating these image processing subroutines is displayed on the screen of the input / output display device 1.

【0131】以上、第12実施形態によれば、画像処理
サブルーチンを画像処理プログラムの所望する位置に組
み込むことができるほか、前に作成した画像処理プログ
ラムの所望する位置に、新たな画像処理サブルーチンを
容易に組み込むことができるから、別の画像処理プログ
ラムを作成するための時間を、前に作成した画像処理プ
ログラムを土台にすることで大幅に削減することができ
る。
As described above, according to the twelfth embodiment, the image processing subroutine can be incorporated at a desired position of the image processing program, and a new image processing subroutine can be added at a desired position of the previously created image processing program. Since it can be easily incorporated, the time required to create another image processing program can be significantly reduced by using the previously created image processing program as a base.

【0132】図28は画像処理プログラム作成システム
に設けられる別の画像処理プログラム作成機能の説明図
であり、この図を用いて本発明の第13実施形態につい
て説明する。
FIG. 28 is an explanatory diagram of another image processing program creation function provided in the image processing program creation system. The thirteenth embodiment of the present invention will be described with reference to FIG.

【0133】第13実施形態の画像処理プログラム作成
システムは、対象画像を入出力表示装置1の画面に表示
するとき、まず、画像処理装置4の画像処理プログラム
のフローチャートを、画像処理サブルーチン用のシンボ
ルとともに入出力表示装置1の画面に表示し、続いて、
操作入力装置を通じた操作入力による上記フローチャー
ト上の上記シンボルの選択に応じて、対象画像を入出力
表示装置1の画面に表示し、画像処理サブルーチンを画
像処理プログラムに組み込むとき、選択された画像処理
サブルーチン候補を、画像処理サブルーチンとして画像
処理プログラム内の上記選択されたシンボルに対応する
位置に組み込む処理を画像処理プログラム作成機能がさ
らに行う以外は第1実施形態と同様に構成される。
When the target image is displayed on the screen of the input / output display device 1, the image processing program creation system of the thirteenth embodiment first sets the flowchart of the image processing program of the image processing device 4 to the symbol for the image processing subroutine. Is displayed on the screen of the input / output display device 1 along with
When the target image is displayed on the screen of the input / output display device 1 in accordance with the selection of the symbol on the flowchart by the operation input through the operation input device, and the image processing subroutine is incorporated in the image processing program, the selected image processing is performed. The configuration is the same as that of the first embodiment, except that the image processing program creation function further performs a process of incorporating a subroutine candidate into a position corresponding to the selected symbol in the image processing program as an image processing subroutine.

【0134】図28(a)において、画像処理記憶部4
31には、デフォルト処理用のデフォルトアイコンが格
納されている。そして、第1実施形態では、ステップS
1の前に、これからユーザに選択させる画像処理サブル
ーチン候補を画像処理サブルーチンとして挿入すべき画
像処理プログラム内の位置を指定させるための画面に、
入出力表示装置1の画面を切り替える処理が実行される
が、このとき、図28(b)に示すように、デフォルト
アイコンを含む画像処理プログラムのフローチャートが
入出力表示装置1の画面に表示されるのである。この
後、第1実施形態と同様に、画像処理サブルーチン候補
が選択されると、図28(c)に示すように、デフォル
トアイコンの位置から、選択された画像処理サブルーチ
ン候補が画像処理サブルーチンとして組み込まれる。
In FIG. 28A, the image processing storage unit 4
31 stores default icons for default processing. Then, in the first embodiment, step S
Before step 1, a screen for allowing the user to specify a position in the image processing program to insert an image processing subroutine candidate to be selected as an image processing subroutine,
The process of switching the screen of the input / output display device 1 is executed. At this time, a flowchart of the image processing program including the default icon is displayed on the screen of the input / output display device 1, as shown in FIG. It is. Thereafter, as in the first embodiment, when an image processing subroutine candidate is selected, as shown in FIG. 28C, the selected image processing subroutine candidate is incorporated as an image processing subroutine from the position of the default icon. It is.

【0135】以上、第13実施形態によれば、画像処理
プログラムを作成する前に、その全体を構成しておくこ
とができ、ユーザは、画像処理プログラムのどこに、こ
れから選択される画像処理サブルーチン候補が画像処理
サブルーチンとして組み込まれるのかを理解することが
できる。画像処理プログラムの作成後でも、再度同様の
ステップを踏むことで、画像処理サブルーチンを変更す
ることができる。例えば、画像処理対象の変更により、
画像処理プログラムの全体を変更する必要はないが、あ
る画像処理サブルーチンを変更する必要がある場合など
に対応可能となる。
As described above, according to the thirteenth embodiment, the entire image processing program can be constructed before the image processing program is created, and the user can select the image processing subroutine candidate to be selected anywhere in the image processing program. Is incorporated as an image processing subroutine. Even after the image processing program is created, the image processing subroutine can be changed by performing the same steps again. For example, by changing the image processing target,
It is not necessary to change the entire image processing program, but it is possible to cope with a case where a certain image processing subroutine needs to be changed.

【0136】図29は画像処理プログラム作成システム
に設けられる別の画像処理プログラム作成機能による動
作フロー図、図30は図29の動作フローの説明図であ
り、これらの図を用いて本発明の第14実施形態につい
て説明する。
FIG. 29 is an operation flow diagram according to another image processing program generation function provided in the image processing program generation system, and FIG. 30 is an explanatory diagram of the operation flow of FIG. 29. A fourteenth embodiment will be described.

【0137】第14実施形態の画像処理プログラム作成
システムは、画像処理サブルーチンを画像処理プログラ
ムに組み込んだ後、対象画像とともに指定領域を入出力
表示装置1の画面に表示し、入出力表示装置1の画面に
表示された指定領域を別の指定領域にコピーアンドペー
ストする、操作入力装置3を通じた操作入力に応じて、
別の指定領域内の画像に対する画像処理サブルーチンと
して、選択された画像処理サブルーチン候補を割り当て
て画像処理プログラムを修正する処理を画像処理プログ
ラム作成機能がさらに行う以外は第1実施形態と同様に
構成される。
The image processing program creating system according to the fourteenth embodiment, after incorporating the image processing subroutine into the image processing program, displays the designated area together with the target image on the screen of the input / output display device 1. In response to an operation input through the operation input device 3, the specified area displayed on the screen is copied and pasted into another specified area.
As an image processing subroutine for an image in another designated area, the image processing subroutine is configured in the same manner as in the first embodiment except that the image processing program creation function further performs processing for allocating the selected image processing subroutine candidate and correcting the image processing program. You.

【0138】図29において、ステップS81の「領域
選択」、ステップS82の「領域のコピー」、ステップ
S83の「コピー先領域用画像処理プログラムの作
成」、ステップS84の「全体プログラムの読み込
み」、ステップS85の「コピーされた領域の画像処理
サブルーチンの追加」、ステップS86の「全体プログ
ラムの格納」、ステップS87の「表示データ読み込
み」、ステップS88の「表示用アイコンの表示位置情
報作成」、ステップS89の「アイコン接続情報作
成」、そしてステップS90の「表示データ書き込み」
の各処理が順次実行される。
In FIG. 29, "area selection" in step S81, "copy area" in step S82, "creation of image processing program for copy destination area" in step S83, "read entire program" in step S84, "Addition of image processing subroutine for copied area" in S85, "Storing entire program" in step S86, "Reading display data" in step S87, "Creating display position information of display icon" in step S88, step S89 "Create icon connection information" and "Write display data" in step S90
Are sequentially executed.

【0139】ステップS81,82では、画像の領域を
操作して、領域をコピーする。例えば、図30(a)に
示すように、操作入力装置3で、領域R2を選択してコ
ピーし、別の場所に領域R3をペーストする。ステップ
S83では、領域情報が操作入力装置3によって変更さ
れていることを除き、コピー元領域において自動生成さ
れた画像処理プログラムのデータをコピーし、プログラ
ムを生成する(図30(b)参照)。
In steps S81 and S82, the area of the image is operated to copy the area. For example, as shown in FIG. 30A, the region R2 is selected and copied by the operation input device 3, and the region R3 is pasted to another place. In step S83, data of the image processing program automatically generated in the copy source area is copied, except that the area information is changed by the operation input device 3, and a program is generated (see FIG. 30B).

【0140】ここで、対称形の画像の場合には、一箇所
で不良が見つかったとき、他と同じような箇所でも不良
が発生する可能性が高い。コピー元の検査領域内でプロ
グラムを調整したとき、コピー先の検査領域でも同じ検
査をする必要がある可能性が高い。格納内容は、領域番
号(各画像処理がどの領域を対象としているかを示すI
D)、領域種別(矩形、円、多角形など)、領域形状
(頂点座標、中心座標・半径など)を含み、これらは操
作入力装置の操作によるコピーの段階で変更される。
Here, in the case of a symmetrical image, when a defect is found at one location, there is a high possibility that a defect will occur at a location similar to the others. When the program is adjusted in the inspection area of the copy source, it is highly likely that the same inspection needs to be performed in the inspection area of the copy destination. The storage content is an area number (I indicating which area each image processing is targeted for).
D), area type (rectangular, circular, polygonal, etc.) and area shape (vertex coordinates, center coordinates / radius, etc.), which are changed at the stage of copying by operation of the operation input device.

【0141】つまり、図30(a)に示すように、領域
R2を領域R3にコピーアンドペーストすることで、図
30(d)に示すように、領域R2に対する「領域R2
の異物検査」、「領域R2のかけ検査」の処理がコピー
されて、その下に領域R3に対する「領域R3の異物検
査」、「領域R3のかけ検査」の処理が追加されるので
ある。なお、図30(a)には配線パターンの画像が示
されている。
That is, as shown in FIG. 30A, by copying and pasting the region R2 to the region R3, as shown in FIG.
The processing of "foreign substance inspection of area R2" and the processing of "overlapping inspection of area R2" are copied, and the processing of "foreign substance inspection of area R3" and "overlapping inspection of area R3" for area R3 are added below. FIG. 30A shows an image of the wiring pattern.

【0142】以上、第14実施形態によれば、検査対象
の特定部分の欠陥に的を絞って、適用すべき画像処理サ
ブルーチンを決定するだけで、その欠陥が発生しそうな
別の部分にも同じ画像処理サブルーチンを容易に適用す
ることができ、これにより、画像処理プログラムの作成
時間を大幅に短縮することができる。また、実際の検査
対象の指定領域が多角形などで、矩形などの代表的な領
域形状で表現し難い場合などでは、予め矩形などの代表
的な領域形状の別の領域で画像処理サブルーチンを決定
しておき、決定した画像処理サブルーチンの設定内容を
所望の形状の指定領域にコピーすることで、この指定領
域の画像処理サブルーチンを設定することができる。
As described above, according to the fourteenth embodiment, only the image processing subroutine to be applied is determined by focusing on the defect in the specific portion to be inspected, and the same applies to another portion where the defect is likely to occur. The image processing subroutine can be easily applied, whereby the time required to create the image processing program can be greatly reduced. When the designated area to be actually inspected is a polygon or the like and it is difficult to represent the area with a typical area shape such as a rectangle, the image processing subroutine is determined in advance in another area having a typical area shape such as a rectangle. In advance, by copying the set contents of the determined image processing subroutine to a designated area having a desired shape, the image processing subroutine of the designated area can be set.

【0143】[0143]

【発明の効果】以上のことから明らかなように、請求項
1記載の発明の画像処理プログラム作成方法は、画像表
示用の表示手段と、各種操作入力用の入力手段と、予め
分類された複数種類の画像処理対象項目および複数種類
の検査目的項目の少なくとも一方の組みの項目毎に、複
数種類の画像処理サブルーチン候補を含む画像処理サブ
ルーチン候補セットを記憶する記憶手段とを利用して、
画像処理プログラム作成機能が画像処理装置の画像処理
プログラムを作成する方法であって、画像処理対象の撮
像で得た対象画像を前記表示手段に表示するステップ
と、前記複数種類の画像処理対象項目および複数種類の
検査目的項目の少なくとも一方の組みから、前記入力手
段を通じた操作入力で選択された項目に応じて、対応す
る画像処理サブルーチン候補セットを前記記憶手段から
選択するステップと、この選択された画像処理サブルー
チン候補セットに含まれる複数種類の画像処理サブルー
チン候補の各々を、前記入力手段を通じた操作入力で指
定された指定領域内の、前記対象画像の全部または一部
の画像に対して実行するステップと、前記選択された複
数種類の画像処理サブルーチン候補の各実行結果を基
に、前記選択された画像処理サブルーチン候補セットか
ら選択された画像処理サブルーチン候補を、前記指定領
域内の画像に対する画像処理サブルーチンとして前記画
像処理装置の画像処理プログラムに組み込むステップと
を有するので、ユーザに画像処理の知識が無くても画像
処理装置の画像処理プログラムを簡単に作成することが
できるほか、画像処理の知識が不要となるため、その習
得時間を削減することができる。また、ユーザが指定領
域を設定するので、画像処理対象の間違った部分を検査
する画像処理プログラムが作成されることがない。さら
に、複数種類の画像処理対象項目および複数種類の検査
項目の少なくとも一方の組みから項目が選択されるの
で、画像処理対象や検査目的に適した画像処理プログラ
ムを作成することができ、また不要な項目が排除される
から、画像処理プログラムによる実行時間を短縮するこ
とができる。
As is apparent from the above description, the method for creating an image processing program according to the first aspect of the present invention comprises a display means for displaying an image, an input means for inputting various operations, and a plurality of pre-classified input means. Storage means for storing an image processing subroutine candidate set including a plurality of types of image processing subroutine candidates for at least one set of types of image processing target items and a plurality of types of inspection target items,
An image processing program creation function for creating an image processing program of the image processing apparatus, wherein a step of displaying a target image obtained by imaging of the image processing target on the display unit; and A step of selecting a corresponding image processing subroutine candidate set from the storage unit from at least one set of a plurality of types of inspection target items in accordance with an item selected by an operation input through the input unit; Each of a plurality of types of image processing subroutine candidates included in the image processing subroutine candidate set is executed for all or a part of the target image in a specified area specified by an operation input through the input unit. And selecting the selected image processing subroutine candidates based on respective execution results of the plurality of selected image processing subroutine candidates. Incorporating the image processing subroutine candidate selected from the processing subroutine candidate set into the image processing program of the image processing apparatus as an image processing subroutine for an image in the designated area, so that the user has no knowledge of image processing. Also, the image processing program of the image processing apparatus can be easily created, and knowledge of image processing is not required, so that the learning time can be reduced. Further, since the user sets the designated area, there is no need to create an image processing program for inspecting a wrong portion of the image processing target. Further, since an item is selected from at least one set of a plurality of types of image processing target items and a plurality of types of inspection items, an image processing program suitable for the image processing target and the inspection purpose can be created, and unnecessary Since the items are eliminated, the execution time by the image processing program can be reduced.

【0144】請求項2記載の発明によれば、請求項1記
載の画像処理プログラム作成方法において、前記指定領
域内の画像に対して、前記選択された複数種類の画像処
理サブルーチン候補の各々を実行した後、これら画像処
理サブルーチン候補の各実行結果を前記表示手段に表示
するステップをさらに有し、前記画像処理サブルーチン
を前記画像処理プログラムに組み込むステップでは、前
記表示手段に表示された各実行結果を基に、前記選択さ
れた画像処理サブルーチン候補セットから、前記入力手
段を通じた操作入力で選択された画像処理サブルーチン
候補を、前記指定領域内の画像に対する画像処理サブル
ーチンとして前記画像処理プログラムに組み込むので、
ユーザに画像処理の知識が無くても画像処理装置の画像
処理プログラムを作成することができる。また、選択さ
れた複数種類の画像処理サブルーチン候補の数が必要以
上に多くなるという問題が生ぜず、各実行結果を基にし
た画像処理サブルーチン候補の選択操作が容易となる。
さらに、対話式の面倒な設問に答えることなく、従って
その機能を設ける必要もなく、ユーザが満足する実行結
果となった画像処理サブルーチンにより、ユーザの検査
目的に合致した画像処理プログラムを作成することがで
き、画像処理プログラムの修正などを不要にすることが
できる。
According to the second aspect of the present invention, in the image processing program creating method according to the first aspect, each of the plurality of selected image processing subroutine candidates is executed on an image in the designated area. After that, the method further comprises the step of displaying each execution result of these image processing subroutine candidates on the display means. In the step of incorporating the image processing subroutine into the image processing program, each execution result displayed on the display means is displayed. Based on the selected image processing subroutine candidate set, the image processing subroutine candidate selected by the operation input through the input unit is incorporated into the image processing program as an image processing subroutine for an image in the designated area.
An image processing program for an image processing apparatus can be created without a user having knowledge of image processing. In addition, the problem that the number of the selected plural types of image processing subroutine candidates becomes unnecessarily large does not occur, and the operation of selecting the image processing subroutine candidates based on each execution result becomes easy.
Furthermore, it is possible to create an image processing program that meets the user's inspection purpose by using an image processing subroutine that has a satisfactory execution result without answering the troublesome interactive questions and therefore without providing the function. Therefore, it is not necessary to modify the image processing program.

【0145】請求項3記載の発明によれば、請求項1記
載の画像処理プログラム作成方法において、前記指定領
域内の画像に対して、前記選択された複数種類の画像処
理サブルーチン候補の各々を実行した後、これら画像処
理サブルーチン候補の実行結果から、それぞれ、所定基
準から乖離する度合いを示す乖離度を算出するステップ
をさらに有し、前記画像処理サブルーチンを前記画像処
理プログラムに組み込むステップでは、前記算出された
複数の乖離度を基に、前記選択された画像処理サブルー
チン候補セットから自動的に画像処理サブルーチン候補
を選択し、これを前記指定領域内の画像に対する画像処
理サブルーチンとして前記画像処理プログラムに組み込
むので、ユーザに画像処理の知識が無くても画像処理装
置の画像処理プログラムをより簡単に作成することがで
きる。また、例えば、画像処理サブルーチン候補セット
に含まれる異なる画像処理サブルーチン候補(画像処理
アルゴリズム)の各々によって欠陥が検出される場合、
それらから、欠陥の検出に最適な画像処理サブルーチン
候補を自動的に検出させる構成が可能となり、この場
合、ユーザの判断ミスで最適でない画像処理サブルーチ
ン候補が選ばれるといったことをなくすことができる。
According to a third aspect of the present invention, in the image processing program creating method according to the first aspect, each of the plurality of selected image processing subroutine candidates is executed on an image in the designated area. After that, from the execution results of these image processing subroutine candidates, the method further comprises a step of calculating a degree of deviation indicating a degree of deviation from a predetermined reference. In the step of incorporating the image processing subroutine into the image processing program, An image processing subroutine candidate is automatically selected from the selected image processing subroutine candidate set based on the plurality of divergence degrees thus determined, and is incorporated in the image processing program as an image processing subroutine for an image in the designated area. Therefore, even if the user does not have knowledge of image processing, the image processing It is possible to create the ram more easily. Further, for example, when a defect is detected by each of the different image processing subroutine candidates (image processing algorithms) included in the image processing subroutine candidate set,
From these, it is possible to automatically detect an optimal image processing subroutine candidate for defect detection. In this case, it is possible to prevent a non-optimal image processing subroutine candidate from being selected due to a user's misjudgment.

【0146】請求項4記載の発明によれば、請求項3記
載の画像処理プログラム作成方法において、前記対象画
像は、良品および不良品の複数の画像処理対象からそれ
ぞれ複数得られ、前記対象画像を前記表示手段に表示す
るステップでは、前記複数の対象画像の少なくとも1つ
を前記表示手段に表示し、前記選択された複数種類の画
像処理サブルーチン候補の各々を実行するステップで
は、これら画像処理サブルーチン候補の各々を、前記複
数の対象画像の各指定領域内の画像に対して実行し、前
記乖離度を算出するステップでは、前記各対象画像に対
する前記複数種類の画像処理サブルーチン候補の実行結
果から、それぞれの画像処理サブルーチン候補に対する
乖離度を統計的に算出し、前記画像処理サブルーチンを
前記画像処理プログラムに組み込むステップでは、前記
統計的に算出された各乖離度を基に、前記選択された画
像処理サブルーチン候補セットから自動的に画像処理サ
ブルーチン候補を選択し、これを前記指定領域内の画像
に対する画像処理サブルーチンとして前記画像処理プロ
グラムに組み込むので、ユーザに画像処理の知識が無く
ても画像処理装置の画像処理プログラムをより簡単に作
成することができる。また、検査精度の最適な画像処理
サブルーチン候補を画像処理サブルーチンとして統計的
に自動選択することができる。
According to a fourth aspect of the present invention, in the image processing program creating method according to the third aspect, a plurality of the target images are obtained from a plurality of non-defective and defective image processing targets, respectively. In the step of displaying on the display unit, at least one of the plurality of target images is displayed on the display unit, and in the step of executing each of the plurality of selected image processing subroutine candidates, the image processing subroutine candidate is selected. Is performed on an image in each designated region of the plurality of target images, and in the step of calculating the degree of divergence, the execution results of the plurality of types of image processing subroutine candidates for the respective target images are respectively determined. Statistically calculates the degree of deviation from the image processing subroutine candidate, and executes the image processing subroutine in the image processing program. In the step of incorporating the image processing subroutine, the image processing subroutine candidate is automatically selected from the selected image processing subroutine candidate set based on each of the statistically calculated divergence degrees. Since the image processing program is incorporated in the image processing program as an image processing subroutine, the image processing program of the image processing apparatus can be more easily created without the user having knowledge of image processing. In addition, an image processing subroutine candidate having the optimum inspection accuracy can be automatically selected statistically as an image processing subroutine.

【0147】請求項5記載の発明によれば、請求項1〜
4のいずれかに記載の画像処理プログラム作成方法にお
いて、前記画像処理サブルーチン候補セットには、それ
ぞれに互いに異なるパラメータの値が割り当てられた複
数の同一フローの画像処理サブルーチン候補が含まれる
ので、より好適な画像処理プログラムを作成することが
できる。
According to the invention set forth in claim 5, claims 1 to 5 are provided.
5. In the image processing program creating method according to any one of the aspects 4, the image processing subroutine candidate set includes a plurality of image processing subroutine candidates of the same flow to which different parameter values are assigned. A simple image processing program can be created.

【0148】請求項6記載の発明によれば、請求項1〜
4のいずれかに記載の画像処理プログラム作成方法にお
いて、前記入力手段を通じて操作入力された画像処理対
象項目および検査目的項目の少なくとも一方の項目と、
前記記憶手段に記憶されている全種類の画像処理サブル
ーチン候補から前記入力手段を通じた操作入力で選択さ
れた複数種類の画像処理サブルーチン候補とに応じて、
これら画像処理サブルーチン候補を前記操作入力された
項目に対応させて前記記憶手段に記憶するので、現場に
より一層適合した画像処理プログラムの作成が可能にな
る。
According to the invention described in claim 6, claims 1 to 1 are provided.
4. The image processing program creating method according to any one of 4, wherein at least one of an image processing target item and an inspection target item operated and input through the input unit;
According to a plurality of types of image processing subroutine candidates selected by an operation input through the input unit from all types of image processing subroutine candidates stored in the storage unit,
Since these image processing subroutine candidates are stored in the storage means in association with the items input by the operation, it is possible to create an image processing program more suitable for the site.

【0149】請求項7記載の発明によれば、請求項1〜
4のいずれかに記載の画像処理プログラム作成方法にお
いて、前記選択された画像処理サブルーチン候補セット
に含まれる複数種類の画像処理サブルーチン候補に、共
通する処理部分がある場合、それら複数種類の画像処理
サブルーチン候補は、前記共通する処理部分を兼用する
ので、画像処理プログラムを作成するための実行時間を
大幅に短縮することができる。
According to the invention described in claim 7, claims 1 to
5. In the image processing program creating method according to any one of the above, when the plurality of types of image processing subroutine candidates included in the selected image processing subroutine candidate set have a common processing portion, the plurality of types of image processing subroutines Since the candidate also serves as the common processing portion, the execution time for creating the image processing program can be significantly reduced.

【0150】請求項8記載の発明によれば、請求項1〜
4のいずれかに記載の画像処理プログラム作成方法にお
いて、前記指定領域内の画像に対して、前記選択された
複数種類の画像処理サブルーチン候補の各々を実行する
ステップでは、その複数種類の画像処理サブルーチン候
補の各々に含まれるパラメータのうち、前記入力手段を
通じた操作入力で選択されたパラメータとこのパラメー
タに対して指定された可変条件とに応じて、前記選択さ
れた複数種類の画像処理サブルーチン候補の各々を、こ
れに含まれる前記選択されたパラメータを前記指定され
た可変条件で可変しながら、前記指定領域内の画像に対
して実行し、前記画像処理サブルーチンを前記画像処理
プログラムに組み込むステップでは、その画像処理サブ
ルーチン内の前記選択されたパラメータの値を、前記各
実行結果から得られるそのパラメータの適正範囲の中心
値に設定するので、良不良判定が特定の範囲で一定する
場合、画像処理プログラムに組み込む画像処理サブルー
チン内の所望のパラメータの値が適正範囲の中心値に設
定され、最も代表的なパラメータに設定される。
According to the invention of claim 8, claims 1 to
5. The method according to claim 4, wherein the step of executing each of the plurality of selected image processing subroutine candidates on the image in the designated area includes the plurality of image processing subroutines. Among the parameters included in each of the candidates, the plurality of types of the selected image processing subroutine candidates are selected in accordance with a parameter selected by an operation input through the input unit and a variable condition specified for the parameter. Executing each of the selected parameters included therein, while changing the selected parameters under the specified variable condition, on the image in the specified area, and incorporating the image processing subroutine into the image processing program; The value of the selected parameter in the image processing subroutine is obtained from each of the execution results. If the pass / fail judgment is constant in a specific range, the value of a desired parameter in the image processing subroutine incorporated in the image processing program is set to the center value of the appropriate range. , Set to the most representative parameters.

【0151】請求項9記載の発明によれば、請求項2記
載の画像処理プログラム作成方法において、前記選択さ
れた複数種類の画像処理サブルーチン候補の各実行結果
を前記表示手段に表示するステップでは、これらの各実
行結果とともに、前記対象画像または各実行結果を出し
た画像処理サブルーチン候補による前記対象画像に対す
る画像処理済みの画像を前記表示手段に表示するので、
各実行結果の視認性が高まり、例えば、各実行結果のみ
では画像処理サブルーチン候補の選択が困難である場
合、画像処理済みの画像を参考にして適切な画像処理サ
ブルーチン候補を画像処理サブルーチン候補として選択
することが可能となる。
According to the ninth aspect of the present invention, in the image processing program creating method according to the second aspect, the step of displaying each execution result of the selected plurality of types of image processing subroutine candidates on the display means, Along with each of these execution results, the target image or an image that has been subjected to image processing on the target image by the image processing subroutine candidate that has issued each execution result is displayed on the display unit.
When the visibility of each execution result is enhanced, and, for example, it is difficult to select an image processing subroutine candidate only with each execution result, an appropriate image processing subroutine candidate is selected as an image processing subroutine candidate with reference to the image that has been subjected to image processing. It is possible to do.

【0152】請求項10記載の発明によれば、請求項1
〜4のいずれかに記載の画像処理プログラム作成方法に
おいて、前記画像処理サブルーチンが組み込まれて作成
された前記画像処理プログラムに、共通する処理部分が
ある場合、これらの処理部分を一の処理部分として統合
するステップをさらに有するので、画像処理プログラム
の容量を減らすことができるほか、その実行の高速化を
図ることができる。また、画像処理プログラムが短くな
り、全体の把握が容易になる。
According to the tenth aspect, the first aspect is provided.
In the image processing program creating method according to any one of claims 1 to 4, when the image processing program created by incorporating the image processing subroutine has a common processing part, these processing parts are regarded as one processing part. Since the method further includes an integration step, the capacity of the image processing program can be reduced, and the speed of the execution can be increased. In addition, the image processing program is shortened, and it is easy to grasp the whole.

【0153】請求項11記載の発明によれば、請求項1
〜4のいずれかに記載の画像処理プログラム作成方法に
おいて、前記画像処理サブルーチンが組み込まれて作成
された前記画像処理プログラムのフローチャートを前記
表示手段に表示するステップをさらに有するので、各画
像処理サブルーチンが画像処理プログラムのどこに組み
込まれたかを容易に把握することができる。例えば、画
像処理サブルーチンが画像処理プログラムに組み込まれ
る毎に、表示手段に画像処理プログラムのフローチャー
トが表示されるようにすれば、文字プログラミングに不
慣れなユーザでも、フローチャートのシンボルが増える
のを確認することで、画像処理サブルーチンが画像処理
プログラムのどこに組み込まれたのかを感覚的に把握す
ることができる。
According to the eleventh aspect, according to the first aspect,
5. The image processing program creating method according to any one of the items 1 to 4, further comprising the step of displaying on the display means a flowchart of the image processing program created by incorporating the image processing subroutine. It can be easily grasped where the image processing program is incorporated. For example, if a flowchart of the image processing program is displayed on the display unit every time the image processing subroutine is incorporated into the image processing program, even if the user is not accustomed to character programming, it is possible to confirm that the number of symbols in the flowchart increases. Thus, it is possible to intuitively grasp where the image processing subroutine is incorporated in the image processing program.

【0154】請求項12記載の発明によれば、請求項1
1記載の画像処理プログラム作成方法において、前記画
像処理プログラムのフローチャートを前記表示手段に表
示するステップでは、そのフローチャート内の前記画像
処理サブルーチンのシンボルと関連付けられた位置に、
その画像処理サブルーチンによる前記対象画像に対する
画像処理済みの画像を表示するので、対象画像の各指定
領域内の画像に対する各画像処理サブルーチンによる実
行結果を容易に検証することができる。
According to the twelfth aspect, according to the first aspect,
In the image processing program creating method according to the first aspect, in the step of displaying the flowchart of the image processing program on the display unit, at a position associated with the symbol of the image processing subroutine in the flowchart,
Since the image that has been subjected to the image processing on the target image by the image processing subroutine is displayed, it is possible to easily verify the execution result of each image processing subroutine on the image in each designated area of the target image.

【0155】請求項13記載の発明によれば、請求項1
1記載の画像処理プログラム作成方法において、前記画
像処理プログラムのフローチャートを前記表示手段に表
示するステップでは、そのフローチャート内の前記画像
処理サブルーチンのシンボルに対する前記入力手段を通
じた操作入力に応じて、対応する画像処理サブルーチン
による各画像処理過程の画像を順次切替表示するので、
画像処理サブルーチンによる各画像処理過程および画像
処理結果が適切であるか否かの確認が行うことができ
る。
According to the thirteenth aspect, the first aspect is provided.
In the image processing program creating method according to the first aspect, the step of displaying the flowchart of the image processing program on the display means corresponds to an operation input to the symbol of the image processing subroutine in the flowchart through the input means. Since the images in each image processing process by the image processing subroutine are sequentially switched and displayed,
It is possible to confirm whether each image processing step and the image processing result by the image processing subroutine are appropriate.

【0156】請求項14記載の発明によれば、請求項1
1記載の画像処理プログラム作成方法において、前記画
像処理プログラムのフローチャートを前記表示手段に表
示するステップでは、まず、画像処理プログラムのフロ
ーチャートを前記表示手段に表示し、続いてこの表示手
段に表示したフローチャートに対して、前記入力手段を
通じた操作入力で指定された位置に、前記選択された画
像処理サブルーチン候補を画像処理サブルーチンとして
組み込んで、これが組み込まれて作成された画像処理プ
ログラムのフローチャートを前記表示手段に表示するの
で、画像処理サブルーチンを画像処理プログラムの所望
する位置に組み込むことができるほか、別の画像処理プ
ログラムを作成するための時間(工数)を、前に作成し
た画像処理プログラムを土台にすることで大幅に削減す
ることができる。
According to the fourteenth aspect, the first aspect is provided.
In the image processing program creating method according to the first aspect, in the step of displaying the flowchart of the image processing program on the display unit, first, the flowchart of the image processing program is displayed on the display unit, and then the flowchart displayed on the display unit On the other hand, the selected image processing subroutine candidate is incorporated as an image processing subroutine at a position designated by an operation input through the input means, and a flowchart of an image processing program created by incorporating the selected image processing subroutine is displayed on the display means. , The image processing subroutine can be incorporated at a desired position in the image processing program, and the time (man-hours) for creating another image processing program is based on the previously created image processing program. This can greatly reduce the cost.

【0157】請求項15記載の発明によれば、請求項1
〜4のいずれかに記載の画像処理プログラム作成方法に
おいて、前記対象画像を前記表示手段に表示するステッ
プでは、まず、前記画像処理装置の画像処理プログラム
のフローチャートを、画像処理サブルーチン用のシンボ
ルとともに前記表示手段に表示し、続いて、前記入力手
段を通じた操作入力による前記フローチャート上の前記
シンボルの選択に応じて、前記対象画像を前記表示手段
に表示し、前記画像処理サブルーチンを前記画像処理プ
ログラムに組み込むステップでは、前記選択された画像
処理サブルーチン候補を、画像処理サブルーチンとして
前記画像処理プログラム内の前記選択されたシンボルに
対応する位置に組み込むので、画像処理プログラムを作
成する前に、その全体を構成しておくことができる。ユ
ーザは、画像処理プログラムのどこに、これから選択さ
れる画像処理サブルーチン候補が画像処理サブルーチン
として組み込まれるのかを理解することができる。画像
処理プログラムの作成後でも、再度同様のステップを踏
むことで、画像処理サブルーチンを変更することができ
る。例えば、画像処理対象の変更により、画像処理プロ
グラムの全体を変更する必要はないが、ある画像処理サ
ブルーチンを変更する必要がある場合などに対応可能と
なる。
According to the fifteenth aspect, the first aspect is provided.
In the image processing program creating method according to any one of Items 1 to 4, in the step of displaying the target image on the display unit, first, a flowchart of an image processing program of the image processing apparatus is displayed together with a symbol for an image processing subroutine. Displaying the target image on the display unit in response to the selection of the symbol on the flowchart by the operation input through the input unit, and displaying the image processing subroutine on the image processing program. In the incorporating step, the selected image processing subroutine candidate is incorporated as an image processing subroutine at a position corresponding to the selected symbol in the image processing program. You can keep. The user can understand where in the image processing program the image processing subroutine candidate to be selected is incorporated as the image processing subroutine. Even after the image processing program is created, the image processing subroutine can be changed by performing the same steps again. For example, it is not necessary to change the entire image processing program by changing the image processing target, but it is possible to cope with a case where a certain image processing subroutine needs to be changed.

【0158】請求項16記載の発明によれば、請求項1
〜4のいずれかに記載の画像処理プログラム作成方法に
おいて、前記画像処理サブルーチンを前記画像処理プロ
グラムに組み込んだ後、前記対象画像とともに前記指定
領域を前記表示手段に表示するステップと、この表示手
段に表示された指定領域を別の指定領域にコピーアンド
ペーストする前記入力手段を通じた操作入力に応じて、
前記別の指定領域内の画像に対する画像処理サブルーチ
ンとして、前記選択された画像処理サブルーチン候補を
割り当てて前記画像処理プログラムを修正するステップ
とをさらに有するので、検査対象の特定部分の欠陥に的
を絞って、適用すべき画像処理サブルーチンを決定する
だけで、その欠陥が発生しそうな別の部分にも同じ画像
処理サブルーチンを容易に適用することができる。これ
により、画像処理プログラムの作成時間を大幅に短縮す
ることができる。
According to the sixteenth aspect of the present invention, the first aspect is provided.
In the image processing program creating method according to any one of the above (1) to (4), after incorporating the image processing subroutine into the image processing program, displaying the designated area together with the target image on the display means; In response to an operation input through the input means for copying and pasting the displayed designated area to another designated area,
Correcting the image processing program by allocating the selected image processing subroutine candidate as an image processing subroutine for an image in the another designated area, thereby focusing on a defect in a specific portion to be inspected. By simply determining the image processing subroutine to be applied, the same image processing subroutine can be easily applied to another portion where the defect is likely to occur. As a result, the time for creating the image processing program can be significantly reduced.

【0159】請求項17記載の発明は、画像表示用の表
示手段と、各種操作入力用の入力手段と、予め分類され
た複数種類の画像処理対象項目および複数種類の検査目
的項目の少なくとも一方の組みの項目毎に、複数種類の
画像処理サブルーチン候補を含む画像処理サブルーチン
候補セットを記憶する記憶手段とを利用して、画像処理
装置の画像処理プログラムを作成する画像処理プログラ
ム作成機能とにより構成される画像処理プログラム作成
システムであって、前記画像処理プログラム作成機能
は、画像処理対象の撮像で得た対象画像を前記表示手段
に表示し、前記複数種類の画像処理対象項目および複数
種類の検査目的項目の少なくとも一方の組みから、前記
入力手段を通じた操作入力で選択された項目に応じて、
対応する画像処理サブルーチン候補セットを前記記憶手
段から選択し、この選択された画像処理サブルーチン候
補セットに含まれる複数種類の画像処理サブルーチン候
補の各々を、前記入力手段を通じた操作入力で指定され
た指定領域内の、前記対象画像の全部または一部の画像
に対して実行し、前記選択された複数種類の画像処理サ
ブルーチン候補の各実行結果を基に、前記選択された画
像処理サブルーチン候補セットから選択された画像処理
サブルーチン候補を、前記指定領域内の画像に対する画
像処理サブルーチンとして前記画像処理装置の画像処理
プログラムに組み込む各処理を実行するので、ユーザに
画像処理の知識が無くても画像処理装置の画像処理プロ
グラムを簡単に作成することができるほか、画像処理の
知識が不要となるため、その習得時間を削減することが
できる。また、ユーザが指定領域を設定するので、画像
処理対象の間違った部分を検査する画像処理プログラム
が作成されることがない。さらに、複数種類の画像処理
対象項目および複数種類の検査項目の少なくとも一方の
組みから項目が選択されるので、画像処理対象や検査目
的に適した画像処理プログラムを作成することができ、
また不要な項目が排除されるから、画像処理プログラム
による実行時間を短縮することができる。
According to a seventeenth aspect of the present invention, there is provided a display means for displaying an image, an input means for inputting various operations, and at least one of a plurality of types of image processing target items and a plurality of types of inspection target items which are classified in advance. A storage means for storing an image processing subroutine candidate set including a plurality of types of image processing subroutine candidates for each set item, and an image processing program creating function for creating an image processing program of the image processing apparatus. An image processing program creation function, wherein the image processing program creation function displays a target image obtained by imaging the image processing target on the display unit, and displays the plurality of types of image processing target items and a plurality of types of inspection purposes. From at least one set of items, according to the item selected by the operation input through the input means,
A corresponding image processing subroutine candidate set is selected from the storage means, and each of a plurality of types of image processing subroutine candidates included in the selected image processing subroutine candidate set is designated by an operation input through the input means. Executes on all or a part of the target image in the area, and selects from the selected image processing subroutine candidate set based on each execution result of the selected plural types of image processing subroutine candidates The image processing subroutine candidate is used as an image processing subroutine for an image in the designated area, and is executed in the image processing program of the image processing apparatus. Image processing programs can be easily created, and no knowledge of image processing is required Because, it is possible to reduce the acquisition time. Further, since the user sets the designated area, there is no need to create an image processing program for inspecting a wrong portion of the image processing target. Furthermore, since an item is selected from at least one set of a plurality of types of image processing target items and a plurality of types of inspection items, it is possible to create an image processing program suitable for image processing targets and inspection purposes,
Since unnecessary items are eliminated, the execution time by the image processing program can be reduced.

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

【図1】画像処理プログラム作成システムの構成図であ
る。
FIG. 1 is a configuration diagram of an image processing program creation system.

【図2】図1の画像処理アルゴリズム記憶部の説明図で
ある。
FIG. 2 is an explanatory diagram of an image processing algorithm storage unit in FIG. 1;

【図3】図1の画像処理プログラム作成システムに設け
られる画像処理プログラム作成機能の動作フロー図であ
る。
FIG. 3 is an operation flowchart of an image processing program creation function provided in the image processing program creation system of FIG. 1;

【図4】図3の動作フローの説明図である。FIG. 4 is an explanatory diagram of the operation flow of FIG. 3;

【図5】画像処理プログラム作成システムに設けられる
別の画像処理プログラム作成機能の動作フロー図であ
る。
FIG. 5 is an operation flowchart of another image processing program creation function provided in the image processing program creation system.

【図6】図5の動作フローの説明図である。6 is an explanatory diagram of the operation flow of FIG.

【図7】画像処理プログラム作成システムに設けられる
別の画像処理プログラム作成機能の動作フロー図であ
る。
FIG. 7 is an operation flowchart of another image processing program creation function provided in the image processing program creation system.

【図8】図7の動作フローの説明図である。FIG. 8 is an explanatory diagram of the operation flow of FIG. 7;

【図9】図7の動作フローの説明図である。FIG. 9 is an explanatory diagram of the operation flow of FIG. 7;

【図10】画像処理プログラム作成システムに設けられ
る別の画像処理プログラム作成機能の説明図である。
FIG. 10 is an explanatory diagram of another image processing program creation function provided in the image processing program creation system.

【図11】画像処理サブルーチン候補の選択、そのパラ
メータの修正および新たな画像処理サブルーチン候補の
登録の説明図である。
FIG. 11 is an explanatory diagram of selecting an image processing subroutine candidate, correcting its parameters, and registering a new image processing subroutine candidate.

【図12】画像処理プログラム作成システムに設けられ
る別の画像処理プログラム作成機能の説明図である。
FIG. 12 is an explanatory diagram of another image processing program creation function provided in the image processing program creation system.

【図13】画像処理プログラム作成システムに設けられ
る別の画像処理プログラム作成機能の説明図である。
FIG. 13 is an explanatory diagram of another image processing program creation function provided in the image processing program creation system.

【図14】画像処理プログラム作成システムに設けられ
る別の画像処理プログラム作成機能による動作フロー図
である。
FIG. 14 is an operation flowchart of another image processing program creation function provided in the image processing program creation system.

【図15】図14の動作フローの説明図である。FIG. 15 is an explanatory diagram of the operation flow in FIG. 14;

【図16】図14の動作フローの説明図である。FIG. 16 is an explanatory diagram of the operation flow in FIG. 14;

【図17】画像処理プログラム作成システムに設けられ
る別の画像処理プログラム作成機能による動作フロー図
である。
FIG. 17 is an operation flowchart of another image processing program creation function provided in the image processing program creation system.

【図18】図14の動作フローの説明図である。18 is an explanatory diagram of the operation flow in FIG.

【図19】画像処理プログラム作成システムに設けられ
る別の画像処理プログラム作成機能の説明図である。
FIG. 19 is an explanatory diagram of another image processing program creation function provided in the image processing program creation system.

【図20】画像処理プログラム作成システムに設けられ
る別の画像処理プログラム作成機能による動作フロー図
である。
FIG. 20 is an operation flowchart of another image processing program creation function provided in the image processing program creation system.

【図21】図20の動作フローの説明図である。FIG. 21 is an explanatory diagram of the operation flow in FIG. 20;

【図22】画像処理プログラム作成システムに設けられ
る別の画像処理プログラム作成機能による動作フロー図
である。
FIG. 22 is an operation flowchart of another image processing program creation function provided in the image processing program creation system.

【図23】図22の動作フローの説明図である。FIG. 23 is an explanatory diagram of the operation flow in FIG. 22;

【図24】図22の動作フローの説明図であって、表示
装置(入出力表示装置)上に表示された中間画像をプリ
ンタで印刷出力して得た図面に代わる写真である。
24 is an explanatory diagram of the operation flow of FIG. 22, which is a photograph replacing a drawing obtained by printing out an intermediate image displayed on a display device (input / output display device) by a printer.

【図25】図22の動作フローの説明図であって、表示
装置(入出力表示装置)上に表示された中間画像をプリ
ンタで印刷出力して得た図面に代わる写真である。
FIG. 25 is an explanatory diagram of the operation flow of FIG. 22, which is a photograph replacing a drawing obtained by printing out an intermediate image displayed on a display device (input / output display device) by a printer.

【図26】画像処理プログラム作成システムに設けられ
る別の画像処理プログラム作成機能による動作フロー図
である。
FIG. 26 is an operation flowchart of another image processing program creation function provided in the image processing program creation system.

【図27】画像処理プログラム作成システムに設けられ
る別の画像処理プログラム作成機能による動作フロー図
である。
FIG. 27 is an operation flowchart of another image processing program creation function provided in the image processing program creation system.

【図28】画像処理プログラム作成システムに設けられ
る別の画像処理プログラム作成機能の説明図である。
FIG. 28 is an explanatory diagram of another image processing program creation function provided in the image processing program creation system.

【図29】画像処理プログラム作成システムに設けられ
る別の画像処理プログラム作成機能による動作フロー図
である。
FIG. 29 is an operation flowchart of another image processing program creation function provided in the image processing program creation system.

【図30】図29の動作フローの説明図である。FIG. 30 is an explanatory diagram of the operation flow in FIG. 29;

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

1 入出力表示装置 2 撮像装置 3 操作入力装置 4 画像処理装置4 Reference Signs List 1 input / output display device 2 imaging device 3 operation input device 4 image processing device 4

───────────────────────────────────────────────────── フロントページの続き (72)発明者 白澤 満 大阪府門真市大字門真1048番地松下電工株 式会社内 Fターム(参考) 2G051 AA65 AB01 AB03 EA08 EA11 EA12 EA14 ED07 ED23 FA01 5B050 AA04 BA13 CA07 DA02 EA06 EA07 FA02 FA12 5B057 AA03 BA02 BA26 CA02 CA08 CA12 CA16 CB02 CB08 CB12 CB16 CC01 CE12 DA03 DB02 DB05 DB09 DC03 DC04 DC08 5B076 DC02 DD06 5E501 BA05 CA03 CA04 CB02 CB09 DA05 DA12 DA13 EB05 FA05 ────────────────────────────────────────────────── ─── Continuing from the front page (72) Inventor Mitsuru Shirasawa 1048 Kazuma Kadoma, Osaka Prefecture F-term in Matsushita Electric Works Co., Ltd. EA07 FA02 FA12 5B057 AA03 BA02 BA26 CA02 CA08 CA12 CA16 CB02 CB08 CB12 CB16 CC01 CE12 DA03 DB02 DB05 DB09 DC03 DC04 DC08 5B076 DC02 DD06 5E501 BA05 CA03 CA04 CB02 CB09 DA05 DA12 DA13 EB05 FA05

Claims (17)

【特許請求の範囲】[Claims] 【請求項1】 画像表示用の表示手段と、各種操作入力
用の入力手段と、予め分類された複数種類の画像処理対
象項目および複数種類の検査目的項目の少なくとも一方
の組みの項目毎に、複数種類の画像処理サブルーチン候
補を含む画像処理サブルーチン候補セットを記憶する記
憶手段とを利用して、画像処理プログラム作成機能が画
像処理装置の画像処理プログラムを作成する方法であっ
て、 画像処理対象の撮像で得た対象画像を前記表示手段に表
示するステップと、 前記複数種類の画像処理対象項目および複数種類の検査
目的項目の少なくとも一方の組みから、前記入力手段を
通じた操作入力で選択された項目に応じて、対応する画
像処理サブルーチン候補セットを前記記憶手段から選択
するステップと、 この選択された画像処理サブルーチン候補セットに含ま
れる複数種類の画像処理サブルーチン候補の各々を、前
記入力手段を通じた操作入力で指定された指定領域内
の、前記対象画像の全部または一部の画像に対して実行
するステップと、 前記選択された複数種類の画像処理サブルーチン候補の
各実行結果を基に、前記選択された画像処理サブルーチ
ン候補セットから選択された画像処理サブルーチン候補
を、前記指定領域内の画像に対する画像処理サブルーチ
ンとして前記画像処理装置の画像処理プログラムに組み
込むステップとを有することを特徴とする画像処理プロ
グラム作成方法。
A display unit for displaying an image, an input unit for inputting various operations, and at least one set of a plurality of types of image processing target items and a plurality of types of inspection target items classified in advance, A storage means for storing an image processing subroutine candidate set including a plurality of types of image processing subroutine candidates, wherein the image processing program creating function creates an image processing program of the image processing apparatus. Displaying a target image obtained by imaging on the display unit; and an item selected by an operation input through the input unit from at least one set of the plurality of types of image processing target items and the plurality of types of inspection target items Selecting a corresponding image processing subroutine candidate set from the storage means in accordance with Executing each of a plurality of types of image processing subroutine candidates included in the routine candidate set on all or a part of the target image in a designated area designated by an operation input through the input unit. An image processing subroutine candidate selected from the selected image processing subroutine candidate set is used as an image processing subroutine for an image in the designated area, based on each execution result of the selected plurality of types of image processing subroutine candidates. Incorporating the image processing program into the image processing program of the image processing apparatus.
【請求項2】 前記指定領域内の画像に対して、前記選
択された複数種類の画像処理サブルーチン候補の各々を
実行した後、これら画像処理サブルーチン候補の各実行
結果を前記表示手段に表示するステップをさらに有し、 前記画像処理サブルーチンを前記画像処理プログラムに
組み込むステップでは、前記表示手段に表示された各実
行結果を基に、前記選択された画像処理サブルーチン候
補セットから、前記入力手段を通じた操作入力で選択さ
れた画像処理サブルーチン候補を、前記指定領域内の画
像に対する画像処理サブルーチンとして前記画像処理プ
ログラムに組み込むことを特徴とする請求項1記載の画
像処理プログラム作成方法。
2. A step of executing each of the plurality of selected image processing subroutine candidates on an image in the designated area, and displaying each execution result of the image processing subroutine candidates on the display unit. In the step of incorporating the image processing subroutine into the image processing program, based on each execution result displayed on the display means, an operation through the input means from the selected image processing subroutine candidate set 2. The image processing program creating method according to claim 1, wherein the image processing subroutine candidate selected by the input is incorporated in the image processing program as an image processing subroutine for an image in the designated area.
【請求項3】 前記指定領域内の画像に対して、前記選
択された複数種類の画像処理サブルーチン候補の各々を
実行した後、これら画像処理サブルーチン候補の実行結
果から、それぞれ、所定基準から乖離する度合いを示す
乖離度を算出するステップをさらに有し、 前記画像処理サブルーチンを前記画像処理プログラムに
組み込むステップでは、前記算出された複数の乖離度を
基に、前記選択された画像処理サブルーチン候補セット
から自動的に画像処理サブルーチン候補を選択し、これ
を前記指定領域内の画像に対する画像処理サブルーチン
として前記画像処理プログラムに組み込むことを特徴と
する請求項1記載の画像処理プログラム作成方法。
3. After executing each of the plurality of selected image processing subroutine candidates on the image in the designated area, each of the plurality of types of image processing subroutine candidates deviates from a predetermined reference from execution results of the image processing subroutine candidates. Calculating a divergence indicating a degree; and incorporating the image processing subroutine into the image processing program, based on the calculated plurality of divergence, from the selected image processing subroutine candidate set. 2. The method according to claim 1, wherein an image processing subroutine candidate is automatically selected and incorporated into the image processing program as an image processing subroutine for an image in the designated area.
【請求項4】 前記対象画像は、良品および不良品の複
数の画像処理対象からそれぞれ複数得られ、 前記対象画像を前記表示手段に表示するステップでは、
前記複数の対象画像の少なくとも1つを前記表示手段に
表示し、 前記選択された複数種類の画像処理サブルーチン候補の
各々を実行するステップでは、これら画像処理サブルー
チン候補の各々を、前記複数の対象画像の各指定領域内
の画像に対して実行し、 前記乖離度を算出するステップでは、前記各対象画像に
対する前記複数種類の画像処理サブルーチン候補の実行
結果から、それぞれの画像処理サブルーチン候補に対す
る乖離度を統計的に算出し、 前記画像処理サブルーチンを前記画像処理プログラムに
組み込むステップでは、前記統計的に算出された各乖離
度を基に、前記選択された画像処理サブルーチン候補セ
ットから自動的に画像処理サブルーチン候補を選択し、
これを前記指定領域内の画像に対する画像処理サブルー
チンとして前記画像処理プログラムに組み込むことを特
徴とする請求項3記載の画像処理プログラム作成方法。
4. The method according to claim 1, wherein a plurality of the target images are obtained from a plurality of non-defective and defective image processing targets, and the displaying the target images on the display means includes:
In the step of displaying at least one of the plurality of target images on the display means and executing each of the selected plurality of types of image processing subroutine candidates, each of the plurality of image processing subroutine candidates is referred to as the plurality of target image subroutines. The step of calculating the degree of divergence is performed on the image in each of the designated areas, and the degree of divergence for each image processing subroutine candidate is determined from the execution results of the plurality of types of image processing subroutine candidates for each of the target images. In the step of statistically calculating and incorporating the image processing subroutine into the image processing program, the image processing subroutine is automatically selected from the selected image processing subroutine candidate set based on each of the statistically calculated divergence degrees. Select a suggestion,
4. The image processing program creating method according to claim 3, wherein this is incorporated in the image processing program as an image processing subroutine for an image in the designated area.
【請求項5】 前記画像処理サブルーチン候補セットに
は、それぞれに互いに異なるパラメータの値が割り当て
られた複数の同一フローの画像処理サブルーチン候補が
含まれることを特徴とする請求項1〜4のいずれかに記
載の画像処理プログラム作成方法。
5. The image processing subroutine candidate set according to claim 1, wherein the image processing subroutine candidate set includes a plurality of image processing subroutine candidates of the same flow to which different parameter values are assigned. The method for creating an image processing program according to the item 1.
【請求項6】 前記入力手段を通じて操作入力された画
像処理対象項目および検査目的項目の少なくとも一方の
項目と、前記記憶手段に記憶されている全種類の画像処
理サブルーチン候補から前記入力手段を通じた操作入力
で選択された複数種類の画像処理サブルーチン候補とに
応じて、これら画像処理サブルーチン候補を前記操作入
力された項目に対応させて前記記憶手段に記憶すること
を特徴とする請求項1〜4のいずれかに記載の画像処理
プログラム作成方法。
6. An operation through the input unit from at least one of an image processing target item and an inspection target item operated and input through the input unit and all kinds of image processing subroutine candidates stored in the storage unit. The image processing subroutine candidate is stored in the storage means in accordance with the plurality of types of image processing subroutine candidates selected by the input, in association with the operation-input item. An image processing program creation method according to any one of the above.
【請求項7】 前記選択された画像処理サブルーチン候
補セットに含まれる複数種類の画像処理サブルーチン候
補に、共通する処理部分がある場合、それら複数種類の
画像処理サブルーチン候補は、前記共通する処理部分を
兼用することを特徴とする請求項1〜4のいずれかに記
載の画像処理プログラム作成方法。
7. When a plurality of types of image processing subroutine candidates included in the selected image processing subroutine candidate set include a common processing portion, the plurality of types of image processing subroutine candidates determine the common processing portion. 5. The image processing program creating method according to claim 1, wherein the image processing program is shared.
【請求項8】 前記指定領域内の画像に対して、前記選
択された複数種類の画像処理サブルーチン候補の各々を
実行するステップでは、その複数種類の画像処理サブル
ーチン候補の各々に含まれるパラメータのうち、前記入
力手段を通じた操作入力で選択されたパラメータとこの
パラメータに対して指定された可変条件とに応じて、前
記選択された複数種類の画像処理サブルーチン候補の各
々を、これに含まれる前記選択されたパラメータを前記
指定された可変条件で可変しながら、前記指定領域内の
画像に対して実行し、 前記画像処理サブルーチンを前記画像処理プログラムに
組み込むステップでは、その画像処理サブルーチン内の
前記選択されたパラメータの値を、前記各実行結果から
得られるそのパラメータの適正範囲の中心値に設定する
ことを特徴とする請求項1〜4のいずれかに記載の画像
処理プログラム作成方法。
8. The step of executing each of the plurality of selected image processing subroutine candidates for an image in the designated area includes the step of executing the selected one of the parameters included in each of the plurality of image processing subroutine candidates. According to a parameter selected by an operation input through the input means and a variable condition specified for the parameter, each of the plurality of types of selected image processing subroutine candidates is included in the selected Executing the parameters on the image in the designated area while varying the parameters under the designated variable condition. In the step of incorporating the image processing subroutine into the image processing program, the selected Parameter value set to the center value of the appropriate range of the parameter obtained from each execution result The image processing program creation method according to any one of claims 1 to 4, characterized in Rukoto.
【請求項9】 前記選択された複数種類の画像処理サブ
ルーチン候補の各実行結果を前記表示手段に表示するス
テップでは、これらの各実行結果とともに、前記対象画
像または各実行結果を出した画像処理サブルーチン候補
による前記対象画像に対する画像処理済みの画像を前記
表示手段に表示することを特徴とする請求項2記載の画
像処理プログラム作成方法。
9. A step of displaying each execution result of the plurality of selected image processing subroutine candidates on the display means, the image processing subroutine outputting the target image or each execution result together with each execution result. 3. The image processing program creating method according to claim 2, wherein an image that has been subjected to image processing on the target image by a candidate is displayed on the display unit.
【請求項10】 前記画像処理サブルーチンが組み込ま
れて作成された前記画像処理プログラムに、共通する処
理部分がある場合、これらの処理部分を一の処理部分と
して統合するステップをさらに有することを特徴とする
請求項1〜4のいずれかに記載の画像処理プログラム作
成方法。
10. If the image processing program created by incorporating the image processing subroutine has a common processing portion, the image processing program further includes a step of integrating these processing portions as one processing portion. An image processing program creating method according to claim 1.
【請求項11】 前記画像処理サブルーチンが組み込ま
れて作成された前記画像処理プログラムのフローチャー
トを前記表示手段に表示するステップをさらに有するこ
とを特徴とする請求項1〜4のいずれかに記載の画像処
理プログラム作成方法。
11. The image according to claim 1, further comprising a step of displaying on the display means a flowchart of the image processing program created by incorporating the image processing subroutine. Processing program creation method.
【請求項12】 前記画像処理プログラムのフローチャ
ートを前記表示手段に表示するステップでは、そのフロ
ーチャート内の前記画像処理サブルーチンのシンボルと
関連付けられた位置に、その画像処理サブルーチンによ
る前記対象画像に対する画像処理済みの画像を表示する
ことを特徴とする請求項11記載の画像処理プログラム
作成方法。
12. A step of displaying the flowchart of the image processing program on the display means, at a position associated with the symbol of the image processing subroutine in the flowchart, after the image processing on the target image by the image processing subroutine is completed. The method according to claim 11, wherein the image is displayed.
【請求項13】 前記画像処理プログラムのフローチャ
ートを前記表示手段に表示するステップでは、そのフロ
ーチャート内の前記画像処理サブルーチンのシンボルに
対する前記入力手段を通じた操作入力に応じて、対応す
る画像処理サブルーチンによる各画像処理過程の画像を
順次切替表示することを特徴とする請求項11記載の画
像処理プログラム作成方法。
13. The step of displaying the flow chart of the image processing program on the display means, in response to an operation input to the symbol of the image processing subroutine in the flow chart through the input means, the corresponding image processing subroutine 12. The method according to claim 11, wherein the images in the image processing process are sequentially switched and displayed.
【請求項14】 前記画像処理プログラムのフローチャ
ートを前記表示手段に表示するステップでは、まず、画
像処理プログラムのフローチャートを前記表示手段に表
示し、続いてこの表示手段に表示したフローチャートに
対して、前記入力手段を通じた操作入力で指定された位
置に、前記選択された画像処理サブルーチン候補を画像
処理サブルーチンとして組み込んで、これが組み込まれ
て作成された画像処理プログラムのフローチャートを前
記表示手段に表示することを特徴とする請求項11記載
の画像処理プログラム作成方法。
14. In the step of displaying the flowchart of the image processing program on the display means, first, the flowchart of the image processing program is displayed on the display means. Incorporating the selected image processing subroutine candidate as an image processing subroutine at a position designated by an operation input through the input means, and displaying a flowchart of an image processing program created by incorporating the selected image processing subroutine on the display means. The method for creating an image processing program according to claim 11, wherein:
【請求項15】 前記対象画像を前記表示手段に表示す
るステップでは、まず、前記画像処理装置の画像処理プ
ログラムのフローチャートを、画像処理サブルーチン用
のシンボルとともに前記表示手段に表示し、続いて、前
記入力手段を通じた操作入力による前記フローチャート
上の前記シンボルの選択に応じて、前記対象画像を前記
表示手段に表示し、 前記画像処理サブルーチンを前記画像処理プログラムに
組み込むステップでは、前記選択された画像処理サブル
ーチン候補を、画像処理サブルーチンとして前記画像処
理プログラム内の前記選択されたシンボルに対応する位
置に組み込むことを特徴とする請求項1〜4のいずれか
に記載の画像処理プログラム作成方法。
15. In the step of displaying the target image on the display means, first, a flowchart of an image processing program of the image processing apparatus is displayed on the display means together with a symbol for an image processing subroutine. Displaying the target image on the display unit in accordance with the selection of the symbol on the flowchart by an operation input through an input unit; and incorporating the image processing subroutine into the image processing program. 5. The method according to claim 1, wherein a subroutine candidate is incorporated as an image processing subroutine in a position corresponding to the selected symbol in the image processing program.
【請求項16】 前記画像処理サブルーチンを前記画像
処理プログラムに組み込んだ後、前記対象画像とともに
前記指定領域を前記表示手段に表示するステップと、 この表示手段に表示された指定領域を別の指定領域にコ
ピーアンドペーストする前記入力手段を通じた操作入力
に応じて、前記別の指定領域内の画像に対する画像処理
サブルーチンとして、前記選択された画像処理サブルー
チン候補を割り当てて前記画像処理プログラムを修正す
るステップとをさらに有することを特徴とする請求項1
〜4のいずれかに記載の画像処理プログラム作成方法。
16. After the image processing subroutine is incorporated in the image processing program, displaying the designated area together with the target image on the display means, and replacing the designated area displayed on the display means with another designated area. Modifying the image processing program by assigning the selected image processing subroutine candidate as an image processing subroutine for an image in the another designated area in response to an operation input through the input means for copying and pasting the image processing program. 2. The method according to claim 1, further comprising:
5. The method according to any one of claims 1 to 4, wherein
【請求項17】 画像表示用の表示手段と、各種操作入
力用の入力手段と、予め分類された複数種類の画像処理
対象項目および複数種類の検査目的項目の少なくとも一
方の組みの項目毎に、複数種類の画像処理サブルーチン
候補を含む画像処理サブルーチン候補セットを記憶する
記憶手段とを利用して、画像処理装置の画像処理プログ
ラムを作成する画像処理プログラム作成機能とにより構
成される画像処理プログラム作成システムであって、 前記画像処理プログラム作成機能は、画像処理対象の撮
像で得た対象画像を前記表示手段に表示し、前記複数種
類の画像処理対象項目および複数種類の検査目的項目の
少なくとも一方の組みから、前記入力手段を通じた操作
入力で選択された項目に応じて、対応する画像処理サブ
ルーチン候補セットを前記記憶手段から選択し、この選
択された画像処理サブルーチン候補セットに含まれる複
数種類の画像処理サブルーチン候補の各々を、前記入力
手段を通じた操作入力で指定された指定領域内の、前記
対象画像の全部または一部の画像に対して実行し、前記
選択された複数種類の画像処理サブルーチン候補の各実
行結果を基に、前記選択された画像処理サブルーチン候
補セットから選択された画像処理サブルーチン候補を、
前記指定領域内の画像に対する画像処理サブルーチンと
して前記画像処理装置の画像処理プログラムに組み込む
各処理を実行することを特徴とする画像処理プログラム
作成システム。
17. A display unit for displaying an image, an input unit for inputting various operations, and an item of at least one of a plurality of types of image processing target items and a plurality of types of inspection target items which are classified in advance. An image processing program creating system configured to have an image processing program creating function of creating an image processing program of an image processing apparatus using a storage unit that stores an image processing subroutine candidate set including a plurality of types of image processing subroutine candidates The image processing program creation function displays a target image obtained by imaging the image processing target on the display unit, and sets at least one of the plurality of types of image processing target items and the plurality of types of inspection target items. From the corresponding image processing subroutine candidate set according to the item selected by the operation input through the input means. Each of a plurality of types of image processing subroutine candidates selected from the storage unit and included in the selected image processing subroutine candidate set is stored in a designated area designated by an operation input through the input unit. The image processing subroutine candidate selected from the selected image processing subroutine candidate set is executed based on each execution result of the plurality of selected image processing subroutine candidates executed on all or a part of the images.
An image processing program creation system, which executes each processing incorporated in an image processing program of the image processing apparatus as an image processing subroutine for an image in the designated area.
JP2001049111A 2001-02-23 2001-02-23 Image processing program creation method and system Expired - Fee Related JP4442042B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001049111A JP4442042B2 (en) 2001-02-23 2001-02-23 Image processing program creation method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001049111A JP4442042B2 (en) 2001-02-23 2001-02-23 Image processing program creation method and system

Publications (2)

Publication Number Publication Date
JP2002251603A true JP2002251603A (en) 2002-09-06
JP4442042B2 JP4442042B2 (en) 2010-03-31

Family

ID=18910265

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001049111A Expired - Fee Related JP4442042B2 (en) 2001-02-23 2001-02-23 Image processing program creation method and system

Country Status (1)

Country Link
JP (1) JP4442042B2 (en)

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006001107A1 (en) * 2004-06-24 2006-01-05 Ishida Co., Ltd. X-ray inspection apparatus, and method for creating an image processing procedure of the x-ray inspection apparatus
JP2007026423A (en) * 2005-06-17 2007-02-01 Omron Corp Image processor and image processing method
JP2007128306A (en) * 2005-11-04 2007-05-24 Omron Corp Image processing apparatus
JP2007535717A (en) * 2003-02-28 2007-12-06 アペリオ・テクノロジーズ・インコーポレイテッド Image processing and image analysis framework
JP2007327848A (en) * 2006-06-07 2007-12-20 Omron Corp Inspection control device, inspection control method, inspection system, control program and recording medium
JP2008512793A (en) * 2004-09-13 2008-04-24 ボストン サイエンティフィック リミテッド System and method for dynamic classification images
JP2009054148A (en) * 2002-07-26 2009-03-12 Ricoh Co Ltd Image forming apparatus, program, and recording medium
JP2010128908A (en) * 2008-11-28 2010-06-10 Canon It Solutions Inc Information processing apparatus, control method for the same, and program
JP2010244507A (en) * 2009-03-18 2010-10-28 Canon It Solutions Inc Information processing apparatus, method of controlling the same, and program
JP2011053787A (en) * 2009-08-31 2011-03-17 Omron Corp Image processing apparatus and image processing program
JP2011118467A (en) * 2009-11-30 2011-06-16 Canon It Solutions Inc Information processor, information processing method and computer program
JP2011191312A (en) * 2005-06-17 2011-09-29 Omron Corp Image processing apparatus
US8199358B2 (en) 2003-02-28 2012-06-12 Aperio Technologies, Inc. Digital slide image analysis
JP2013140572A (en) * 2011-12-06 2013-07-18 Canon Marketing Japan Inc Information processing apparatus, control method of the same, and program
WO2014024637A1 (en) * 2012-08-09 2014-02-13 日立オートモティブシステムズ株式会社 Image processing device
US8705825B2 (en) 2009-12-11 2014-04-22 Leica Biosystems Imaging, Inc. Signal to noise ratio in digital pathology image analysis
JP2020123130A (en) * 2019-01-30 2020-08-13 Ckd株式会社 Image processing programming device and image processing programming method
JP2021033869A (en) * 2019-08-28 2021-03-01 キヤノン株式会社 Electronic equipment, control method of the same, program and storage medium

Citations (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0244993A (en) * 1988-08-05 1990-02-14 Fuji Photo Film Co Ltd Test printing method for video printer
JPH02256365A (en) * 1988-10-24 1990-10-17 Xerox Corp Image processor and method
JPH03178267A (en) * 1989-12-07 1991-08-02 Canon Inc Picture processor
JPH0465772A (en) * 1990-07-06 1992-03-02 Hitachi Ltd Device and method for editing interactive data
JPH05108789A (en) * 1991-10-14 1993-04-30 Hitachi Software Eng Co Ltd Graphic processing system
JPH0662252A (en) * 1992-05-19 1994-03-04 Minolta Camera Co Ltd Digital image generating device
JPH06208554A (en) * 1993-01-08 1994-07-26 Daikin Ind Ltd Method and device for document data processing of document processing system
JPH0749935A (en) * 1991-08-30 1995-02-21 Canon Inc Device and method for image processing
JPH07160843A (en) * 1993-12-02 1995-06-23 Toyota Motor Corp Image recognition program constructing device and method therefor
JPH08263663A (en) * 1995-03-27 1996-10-11 Mitsubishi Electric Corp Image processor
JPH09200511A (en) * 1996-01-19 1997-07-31 Fuji Photo Film Co Ltd Digital photograph printer
JPH09259289A (en) * 1996-03-25 1997-10-03 Topcon Corp Method and device for measuring edge posture recognition formula
JPH09288568A (en) * 1996-04-23 1997-11-04 Matsushita Electric Works Ltd Image processor and execution flow preparing method for the same
JPH10149280A (en) * 1996-09-17 1998-06-02 Toshiba Corp Device and method for program composition
JPH10302063A (en) * 1997-04-25 1998-11-13 Canon Inc Image processor and method therefor
JPH10340346A (en) * 1997-06-06 1998-12-22 Matsushita Electric Ind Co Ltd Image processor
JPH11203485A (en) * 1998-01-13 1999-07-30 Mitsutoyo Corp Image measuring device
JPH11259282A (en) * 1998-03-12 1999-09-24 Toshiba Corp Device for synthesizing program and method therefor
JPH11282822A (en) * 1998-03-26 1999-10-15 Toshiba Corp Image processing program combination method and device and optimum solution searching method and device
JP2000028336A (en) * 1998-07-10 2000-01-28 Hoya Corp Device for measuring shape and method therefor

Patent Citations (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0244993A (en) * 1988-08-05 1990-02-14 Fuji Photo Film Co Ltd Test printing method for video printer
JPH02256365A (en) * 1988-10-24 1990-10-17 Xerox Corp Image processor and method
JPH03178267A (en) * 1989-12-07 1991-08-02 Canon Inc Picture processor
JPH0465772A (en) * 1990-07-06 1992-03-02 Hitachi Ltd Device and method for editing interactive data
JPH0749935A (en) * 1991-08-30 1995-02-21 Canon Inc Device and method for image processing
JPH05108789A (en) * 1991-10-14 1993-04-30 Hitachi Software Eng Co Ltd Graphic processing system
JPH0662252A (en) * 1992-05-19 1994-03-04 Minolta Camera Co Ltd Digital image generating device
JPH06208554A (en) * 1993-01-08 1994-07-26 Daikin Ind Ltd Method and device for document data processing of document processing system
JPH07160843A (en) * 1993-12-02 1995-06-23 Toyota Motor Corp Image recognition program constructing device and method therefor
JPH08263663A (en) * 1995-03-27 1996-10-11 Mitsubishi Electric Corp Image processor
JPH09200511A (en) * 1996-01-19 1997-07-31 Fuji Photo Film Co Ltd Digital photograph printer
JPH09259289A (en) * 1996-03-25 1997-10-03 Topcon Corp Method and device for measuring edge posture recognition formula
JPH09288568A (en) * 1996-04-23 1997-11-04 Matsushita Electric Works Ltd Image processor and execution flow preparing method for the same
JPH10149280A (en) * 1996-09-17 1998-06-02 Toshiba Corp Device and method for program composition
JPH10302063A (en) * 1997-04-25 1998-11-13 Canon Inc Image processor and method therefor
JPH10340346A (en) * 1997-06-06 1998-12-22 Matsushita Electric Ind Co Ltd Image processor
JPH11203485A (en) * 1998-01-13 1999-07-30 Mitsutoyo Corp Image measuring device
JPH11259282A (en) * 1998-03-12 1999-09-24 Toshiba Corp Device for synthesizing program and method therefor
JPH11282822A (en) * 1998-03-26 1999-10-15 Toshiba Corp Image processing program combination method and device and optimum solution searching method and device
JP2000028336A (en) * 1998-07-10 2000-01-28 Hoya Corp Device for measuring shape and method therefor

Cited By (28)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009054148A (en) * 2002-07-26 2009-03-12 Ricoh Co Ltd Image forming apparatus, program, and recording medium
JP4542180B2 (en) * 2002-07-26 2010-09-08 株式会社リコー Image forming apparatus, program, and recording medium
JP2011123900A (en) * 2003-02-28 2011-06-23 Aperio Technologies Inc Image processing and image analysis framework
US9019546B2 (en) 2003-02-28 2015-04-28 Leica Biosystems Imaging, Inc. Image processing of digital slide images based on a macro
US8780401B2 (en) 2003-02-28 2014-07-15 Leica Biosystems Imaging, Inc. Systems and methods for analyzing digital slide images using algorithms constrained by parameter data
JP2007535717A (en) * 2003-02-28 2007-12-06 アペリオ・テクノロジーズ・インコーポレイテッド Image processing and image analysis framework
US8467083B2 (en) 2003-02-28 2013-06-18 Aperio Technologies, Inc. Framework for processing the content of a digital image of a microscope sample
US8199358B2 (en) 2003-02-28 2012-06-12 Aperio Technologies, Inc. Digital slide image analysis
JP4818100B2 (en) * 2003-02-28 2011-11-16 アペリオ・テクノロジーズ・インコーポレイテッド Image processing and image analysis framework
US7570787B2 (en) 2004-06-24 2009-08-04 Ishida Co., Ltd. X-ray inspection apparatus and method for creating an image processing procedure for the X-ray inspection apparatus
WO2006001107A1 (en) * 2004-06-24 2006-01-05 Ishida Co., Ltd. X-ray inspection apparatus, and method for creating an image processing procedure of the x-ray inspection apparatus
JP2008512793A (en) * 2004-09-13 2008-04-24 ボストン サイエンティフィック リミテッド System and method for dynamic classification images
JP2011191312A (en) * 2005-06-17 2011-09-29 Omron Corp Image processing apparatus
JP2007026423A (en) * 2005-06-17 2007-02-01 Omron Corp Image processor and image processing method
JP2007128306A (en) * 2005-11-04 2007-05-24 Omron Corp Image processing apparatus
JP2007327848A (en) * 2006-06-07 2007-12-20 Omron Corp Inspection control device, inspection control method, inspection system, control program and recording medium
JP2010128908A (en) * 2008-11-28 2010-06-10 Canon It Solutions Inc Information processing apparatus, control method for the same, and program
JP2010244507A (en) * 2009-03-18 2010-10-28 Canon It Solutions Inc Information processing apparatus, method of controlling the same, and program
JP2011053787A (en) * 2009-08-31 2011-03-17 Omron Corp Image processing apparatus and image processing program
JP2011118467A (en) * 2009-11-30 2011-06-16 Canon It Solutions Inc Information processor, information processing method and computer program
US8705825B2 (en) 2009-12-11 2014-04-22 Leica Biosystems Imaging, Inc. Signal to noise ratio in digital pathology image analysis
JP2013140572A (en) * 2011-12-06 2013-07-18 Canon Marketing Japan Inc Information processing apparatus, control method of the same, and program
WO2014024637A1 (en) * 2012-08-09 2014-02-13 日立オートモティブシステムズ株式会社 Image processing device
JP2014035697A (en) * 2012-08-09 2014-02-24 Hitachi Automotive Systems Ltd Image processing apparatus
JP2020123130A (en) * 2019-01-30 2020-08-13 Ckd株式会社 Image processing programming device and image processing programming method
JP7138579B2 (en) 2019-01-30 2022-09-16 Ckd株式会社 Image processing programming device and image processing programming method
JP2021033869A (en) * 2019-08-28 2021-03-01 キヤノン株式会社 Electronic equipment, control method of the same, program and storage medium
JP7391571B2 (en) 2019-08-28 2023-12-05 キヤノン株式会社 Electronic devices, their control methods, programs, and storage media

Also Published As

Publication number Publication date
JP4442042B2 (en) 2010-03-31

Similar Documents

Publication Publication Date Title
JP2002251603A (en) Image processing program formation method and system for it
CN109961421B (en) Data generating device, data generating method, and data generating recording medium
EP3486867A1 (en) Defect inspection apparatus, defect inspection method, and program thereof
WO2019117065A1 (en) Data generation device, data generation method and data generation program
JP6780769B2 (en) Learning equipment, learning methods and learning programs
JP2001516910A (en) Method and system for interactively developing graphic control flow and related software for machine vision systems
JP2005293264A (en) Learning type sorting apparatus and learning type sorting method
JP7393833B2 (en) Computer program, method, and apparatus for generating virtual defect images using an artificial intelligence model generated based on user input
US20230021099A1 (en) Method and assistance system for checking samples for defects
JP2019133303A (en) Information processor and information processing program and information processing method
JP2007052575A (en) Metadata applying device and metadata applying method
JP7337557B2 (en) Information processing device, system, information processing method and program
WO2020111048A1 (en) Computer program, learning model generation device, display device, particle discrimination device, learning model generation method, display method, and particle discrimination method
WO2022019110A1 (en) Program, information processing device, information processing method, and model generation method
JP5815434B2 (en) Manual creation support device and manual creation support method
WO2021161628A1 (en) Machine learning method, and information processing device for machine learning
CN115631374A (en) Control operation method, control detection model training method, device and equipment
JP2004030193A (en) Image processing apparatus, image processing system including same, and image processing method
JP2009527000A (en) Methods and systems for data analysis and feature recognition including detection of avian influenza virus
JP3138430B2 (en) User interface screen creation support device
JP4379913B2 (en) Image quality inspection device
WO2022190518A1 (en) Integrated model generation method, image inspection system, image inspection model generation device, image inspection model generation program, and image inspection device
WO2022044150A1 (en) Image generation device, image generation method, and program
JP2023003207A (en) Program, information processor, method for processing information, and method for generating learning model
JPH09275459A (en) Image quality evaluation method and its device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20060822

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20090810

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090818

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20091019

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20091222

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20100104

R151 Written notification of patent or utility model registration

Ref document number: 4442042

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

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

Free format text: PAYMENT UNTIL: 20130122

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20130122

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees