JP2008241424A - Image processing apparatus and method using the same - Google Patents

Image processing apparatus and method using the same Download PDF

Info

Publication number
JP2008241424A
JP2008241424A JP2007081542A JP2007081542A JP2008241424A JP 2008241424 A JP2008241424 A JP 2008241424A JP 2007081542 A JP2007081542 A JP 2007081542A JP 2007081542 A JP2007081542 A JP 2007081542A JP 2008241424 A JP2008241424 A JP 2008241424A
Authority
JP
Japan
Prior art keywords
inspection
setting
image
item
image processing
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.)
Withdrawn
Application number
JP2007081542A
Other languages
Japanese (ja)
Inventor
Akio Onishi
映生 大西
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 JP2007081542A priority Critical patent/JP2008241424A/en
Publication of JP2008241424A publication Critical patent/JP2008241424A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Length Measuring Devices By Optical Means (AREA)
  • Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)
  • Geophysics And Detection Of Objects (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To enable users inexperience in image inspection to easily and speedily configure inspection settings in an image processing apparatus for processing images acquired by imaging. <P>SOLUTION: The image processing apparatus is provided with a storage part in which a plurality of inspection programs are stored; an inspection setting part to be operated by a user to configure desired inspection settings; and a control part for controlling the overall apparatus. The inspection setting part is provided with a data table previously, including a plurality of setting items. The control part automatically sets inspection programs suitable for inspection standards of final setting items of the user (S214 and S216), when the user determines each setting item by a first determination step (S211) for selecting items of inspection objectives; a second determination step (S212) for selecting characteristics of images of objects; and a third determination step (S 213 and S215) for selecting items of inspection standards. Since there is thereby no need for the user to directly select inspection programs, it is possible for inexperienced users to easily and speedily configure inspection settings. <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

本発明は、カメラで撮像した対象物の画像データを画像処理して、対象物の外観検査等の製品検査を行うことができる画像処理装置及びこれを用いた画像処理方法に関する。   The present invention relates to an image processing apparatus capable of performing image processing on image data of an object captured by a camera and performing product inspection such as appearance inspection of the object, and an image processing method using the image processing apparatus.

従来から、この種の画像検査装置は、主として、製品の製造工程において、部品等の品種の識別、異種部品の混入検出、組立て作業や製品検査の自動化のため、対象物をカメラで撮像し、対象物の面積、形状、位置など、画像データの特徴を測定・認識することで、良品、不良品の判定に用いられている。このような検査において、画像処理の検査対象は千差万別であり、検査目的も多岐に亘っている。また、これらの検査目的を実現するために、多くの処理アルゴリズムが必要であり、それぞれの検査対象に最適な処理アルゴリズムが存在する。したがって、このような画像処理装置においては、ユーザは、検査開始に先立って、希望の検査目的に適合する最適な処理アルゴリズムを設定しなければならない。そのため、ユーザは、先ず、所定の検査設定操作によって、検査目的にあった処理アルゴリズムを選択する必要があった。   Conventionally, this type of image inspection apparatus mainly captures an object with a camera in order to identify the type of parts, detection of mixing of different parts, automation of assembly work and product inspection in the product manufacturing process, By measuring and recognizing the characteristics of image data such as the area, shape, and position of an object, it is used to determine non-defective products and defective products. In such an inspection, the inspection targets of image processing are various, and the inspection purposes are diverse. In order to realize these inspection purposes, many processing algorithms are necessary, and there are optimum processing algorithms for each inspection target. Therefore, in such an image processing apparatus, the user must set an optimal processing algorithm that suits the desired inspection purpose before starting the inspection. For this reason, the user must first select a processing algorithm suitable for the inspection purpose by a predetermined inspection setting operation.

ところで、従来の画像検査装置における処理アルゴリズムの選択方法としては、例えば、各処理アルゴリズムに画像処理の特徴を表す名称(例えば、エッジ検査、マッチング検査等)を付けて選択させる方法、各処理アルゴリズムに適した用途を名称(例えば、平均濃淡値等)にして選択させる方法があった。しかし、これらの方法は、画像処理に不慣れなユーザにとっては、検査対象と目的及び希望する検査結果を理解していたとしても、どの処理アルゴリズムを使えば、検査対象に対して検査が可能で、必要な検査目的が達成されるかの選択は、経験やノウハウに依存する部分が多いため、処理アルゴリズムの選択は困難な作業となっていた。また、他の方法として、ある業種によく使われる検査対象および検査目的のリスト(例えば、電機業界の電気部品毎の検査リスト、食品業界で使用する食品の入れ物毎の検査リスト等)を挙げ、それを選ばせることで、処理アルゴリズムに対応させる方法がある。しかし、この方法は、ユーザフレンドリな選択方法にはなってきているが、各業種における膨大な検査対象と検査目的をすべて網羅することが困難であり、検査対象と検査目的を絞る必要があるため、検査の選択範囲が制限され、検査目的に当てはまらない場合があった。   By the way, as a method for selecting a processing algorithm in a conventional image inspection apparatus, for example, a method for selecting each processing algorithm by assigning a name (for example, edge inspection, matching inspection, etc.) that represents the characteristics of the image processing to each processing algorithm, There has been a method of selecting a suitable application by name (for example, an average gray value). However, these methods allow users who are unfamiliar with image processing to inspect the inspection target using any processing algorithm, even if they understand the inspection target and purpose and desired inspection result. The selection of whether a necessary inspection purpose is achieved depends on experience and know-how, and therefore selection of a processing algorithm has been a difficult task. Other methods include lists of inspection targets and inspection objectives frequently used in certain industries (for example, inspection lists for each electrical component in the electrical industry, inspection lists for each container of food used in the food industry, etc.) There is a method to make it correspond to a processing algorithm by making it choose. However, this method has become a user-friendly selection method, but it is difficult to cover all the vast inspection objects and inspection purposes in each industry, and it is necessary to narrow down the inspection objects and inspection purposes. In some cases, the selection range of the inspection was limited and did not apply to the inspection purpose.

また、従来の画像検査装置として、検査対象物品に相当する入力画像と基準画像とをユーザにより設定された照合プログラムに従って照合することにより、検査対象物品を視覚的に検査する画像処理装置において、検査種別の入力により、必要な操作案内が自動的に行われて、この操作案内により検査に適合する画像照合プログラムの設定を行うものが知られている(例えば、特許文献1参照)。しかしながら、この装置では、初心者は、先ず、検査種別を選択において、イラスト等の説明で検査種別に対応する検査内容を理解してから選択し、さらに選択された検査種別に対応する検査方法を、前記と同様にイラストで理解してから選択することにより、検査に必要な画像照合プログラムの設定が行われていた。このため、ユーザが画像照合プログラムを設定するまで選択ステップが多く、検査設定を決定するまでに時間が掛かるという問題があった。
特開2001−165863号公報
Further, as a conventional image inspection apparatus, in an image processing apparatus that visually inspects an inspection target article by collating an input image corresponding to the inspection target article with a reference image according to a collation program set by a user, It is known that necessary operation guidance is automatically performed by inputting a type, and an image collation program suitable for inspection is set by this operation guidance (see, for example, Patent Document 1). However, in this device, a beginner first selects an inspection type, understands the content of the inspection corresponding to the inspection type in the description such as illustrations, and then selects an inspection method corresponding to the selected inspection type. In the same manner as described above, an image collation program necessary for inspection is set by selecting after understanding with illustrations. For this reason, there are many selection steps until the user sets the image collation program, and there is a problem that it takes time to determine the inspection setting.
JP 2001-165863 A

本発明は、上記の問題を解決するためになされたものであり、画像検査に不慣れなユーザでも、検査設定において検査プログラムを容易に迅速に設定することができる画像処理装置及びこれを用いた画像処理方法を提供することを目的とする。   The present invention has been made to solve the above problems, and an image processing apparatus capable of easily and quickly setting an inspection program in an inspection setting even for a user unfamiliar with image inspection, and an image using the same An object is to provide a processing method.

上記目的を達成するために請求項1の発明は、撮像部により撮像された対象物の画像を元に該対象物を検査する画像処理装置であって、複数の検査プログラムが格納された記憶部と、ユーザ操作により所望の検査設定を行う検査設定部と、装置全体を制御する制御部と、を備え、前記検査設定部には、予め複数の設定項目からなるデータテーブルが設けられ、ユーザにより対象物の検査設定が行なわれるとき、前記データテーブルの複数の設定項目の中から一つの設定項目を選択する決定ステップを複数回行った後に、前記制御部は、前記決定ステップの最後に選択された設定項目に対応した検査プログラムを前記記憶部より呼び出して、検査を実行するものである。   In order to achieve the above object, an invention according to claim 1 is an image processing apparatus for inspecting an object based on an image of the object imaged by an imaging unit, wherein the storage unit stores a plurality of inspection programs. A test setting unit for performing desired test settings by a user operation, and a control unit for controlling the entire apparatus. The test setting unit is provided with a data table including a plurality of setting items in advance. When inspection setting of an object is performed, after performing a determination step of selecting one setting item from a plurality of setting items of the data table a plurality of times, the control unit is selected at the end of the determination step. The inspection program corresponding to the set item is called from the storage unit and the inspection is executed.

請求項2の発明は、請求項1に記載の画像処理装置において、前記設定項目は、検査目的を示す項目と、対象物の画像の特徴を示す項目と、対象物の検査基準を示す項目と、を有し、前記決定ステップは、前記検査目的を示す項目を選択する第1の決定ステップと、前記対象物の画像の特徴を示す項目を選択する第2の決定ステップと、前記対象物の検査基準を示す項目を選択する第3の決定ステップと、を有するものである。   According to a second aspect of the present invention, in the image processing apparatus according to the first aspect, the setting items include an item indicating an inspection purpose, an item indicating an image characteristic of the target object, and an item indicating an inspection standard of the target object. The determination step includes: a first determination step for selecting an item indicating the inspection purpose; a second determination step for selecting an item indicating a feature of the image of the object; and And a third determination step for selecting an item indicating the inspection standard.

請求項3の発明は、撮像部により撮像された対象物の画像を元に該対象物を検査する画像処理方法であって、対象物の検査設定を行なう場合に、検査目的を示す複数の項目から一つの項目を選択する決定ステップと、対象物の画像の特徴を示す複数の項目から一つの項目を選択する決定ステップと、対象物の検査基準を示す項目であって、選択されることにより処理アルゴリズムが決定される複数の項目から一つの項目を選択する決定ステップと、を有するものである。   The invention according to claim 3 is an image processing method for inspecting an object based on the image of the object imaged by the imaging unit, and a plurality of items indicating an inspection purpose when performing inspection setting of the object A determination step for selecting one item from the above, a determination step for selecting one item from a plurality of items indicating the characteristics of the image of the object, and an item indicating the inspection criteria of the object, by being selected And a determination step of selecting one item from a plurality of items for which a processing algorithm is determined.

請求項1の発明によれば、ユーザは、データテーブルから検査の設定項目を選択するだけで必要な検査プログラムを自動的に設定できるので、アルゴリズム名称等から検査プログラムを選択する必要がなくなり、不慣れなユーザでも所望する検査設定を容易に簡単に行うことができる。   According to the invention of claim 1, since the user can automatically set a necessary inspection program simply by selecting an inspection setting item from the data table, it is not necessary to select an inspection program from an algorithm name or the like. Even a simple user can easily and easily perform desired inspection settings.

請求項2の発明によれば、ユーザは、検査目的、対象物の画像の特徴、対象物の検査基準の分かり易い3ステップで設定項目の選択作業を行うことができるので、少ないステップで簡単に検査のための設定項目を選択でき、検査設定作業を迅速に行うことができる。   According to the second aspect of the present invention, the user can easily select the setting item in three steps, which are easy to understand the inspection purpose, the feature of the image of the object, and the inspection standard of the object. Setting items for inspection can be selected, and inspection setting work can be performed quickly.

請求項3の発明によれば、3つの分かり易い決定ステップで設定項目を選択できるので、画像処理検査に不慣れなユーザでも、簡単に検査設定できる。   According to the invention of claim 3, since the setting item can be selected in three easy-to-understand determination steps, even a user unfamiliar with image processing inspection can easily perform inspection setting.

以下、本発明の実施形態を図1を参照して説明する。この画像処理装置は、TVカメラ1、画像撮入メモリ2、表示部3、画像表示メモリ4、検査設定部5、オーバーレイメモリ6、制御部7、ROM8、RAM9、入力操作部10を備えている。この画像処理装置は、例えば、製造ラインなどの検査工程において、検査対象物の撮像画像の画像処理に基く、形状、面積、位置などの画像データの特徴の測定、認識、検査等に使用されるものである。   Hereinafter, an embodiment of the present invention will be described with reference to FIG. The image processing apparatus includes a TV camera 1, an image capture memory 2, a display unit 3, an image display memory 4, an inspection setting unit 5, an overlay memory 6, a control unit 7, a ROM 8, a RAM 9, and an input operation unit 10. . This image processing apparatus is used for measurement, recognition, inspection, and the like of image data features such as shape, area, and position based on image processing of a captured image of an inspection target in an inspection process such as a production line. Is.

TVカメラ1は、対象物を撮像する。画像撮入メモリ2は、対象物が撮像されてなる撮像画像を格納する。表示部3は、撮像画像を表示するものであり、表示画面31が設けられている。画像表示メモリ4は、表示部3の有する表示画面31に表示される撮像画像を格納する。検査設定部5は、予め複数の設定項目からなるデータテーブルが設けられ、ユーザ操作により所望の検査設定を行う。オーバーレイメモリ6は、表示部3の表示画面31でオーバーラップ表示をするためのデータを格納している。   The TV camera 1 images a target object. The image capture memory 2 stores a captured image obtained by capturing an object. The display unit 3 displays a captured image, and a display screen 31 is provided. The image display memory 4 stores a captured image displayed on the display screen 31 of the display unit 3. The inspection setting unit 5 is provided with a data table including a plurality of setting items in advance, and performs a desired inspection setting by a user operation. The overlay memory 6 stores data for overlapping display on the display screen 31 of the display unit 3.

制御部7は、CPUを備え、表示画面31の表示画像に関して計算を行い、所定の設定条件に基き画像処理を実行すると共に、装置全体を制御する。ROM(記憶部)8は、対象物を検査するための複数の検査プログラムが格納されると共に、制御部7の動作手順を格納している。RAM9は、制御部7が動作するための記憶領域を有している。入力操作部10は、例えば、キーボードであって、ユーザにより所定の処理条件が入力操作される。また、本装置では、この入力操作部10による画像処理の操作の際、撮像画像を表示する表示画面31に検査処理設定の操作案内が表示される(図4参照)。   The control unit 7 includes a CPU, performs calculations on the display image on the display screen 31, performs image processing based on predetermined setting conditions, and controls the entire apparatus. A ROM (storage unit) 8 stores a plurality of inspection programs for inspecting an object and stores an operation procedure of the control unit 7. The RAM 9 has a storage area for the control unit 7 to operate. The input operation unit 10 is, for example, a keyboard, and a predetermined processing condition is input by the user. Further, in the present apparatus, when the image processing operation is performed by the input operation unit 10, an operation guide for setting the inspection process is displayed on the display screen 31 that displays the captured image (see FIG. 4).

本実施形態の画像処理装置における画像処理設定の全体の手順について、図2(a)、(b)を参照して説明する。画像処理装置では、図2(a)に示すように、先ず、ユーザは、検査対象物を撮像するためのTVカメラ1の設定を行い(S1)、検査対象物を検査するための必要な処理アルゴリズム設定を行う(S2)。次に、処理アルゴリズム設定に基き、照合画像に対する位置補正設定を行い(S3)、検査の判定に必要な数値及び判定演算設定を行って(S4)、所望の検査結果を出力する結果出力設定を行う(S5)。また、ステップ2の処理アルゴリズムの設定では、図2(b)に示すように、まず、ユーザは、処理アルゴリズムの選択を行い(S21)、この選択された処理アルゴリズムに基いて、対象物の検査したい検査領域設定を行い(S22)、検査に必要なパラメータ設定(S23)を行う。したがって、画像処理検査では、まず、最初に行う処理アルゴリズム選択(S21)が重要であり、処理アルゴリズムの選択が画像処理検査全体の最適で迅速な処理を左右する。本実施形態の画像処理装置は、特に、この処理アルゴリズム選択を容易にするものである。   An overall procedure of image processing setting in the image processing apparatus of the present embodiment will be described with reference to FIGS. In the image processing apparatus, as shown in FIG. 2A, first, the user sets the TV camera 1 for imaging the inspection object (S1), and necessary processing for inspecting the inspection object. Algorithm setting is performed (S2). Next, based on the processing algorithm setting, position correction setting for the collation image is performed (S3), numerical values and determination calculation settings necessary for inspection determination are performed (S4), and result output setting for outputting a desired inspection result is set. Perform (S5). In the setting of the processing algorithm in step 2, as shown in FIG. 2B, first, the user selects a processing algorithm (S21), and based on the selected processing algorithm, the inspection of the object is performed. The inspection area desired to be set is set (S22), and the parameters required for the inspection are set (S23). Therefore, in the image processing inspection, the processing algorithm selection (S21) to be performed first is important, and the selection of the processing algorithm affects the optimum and quick processing of the entire image processing inspection. In particular, the image processing apparatus of the present embodiment facilitates this processing algorithm selection.

ここで、本実施形態の画像処理装置において、処理アルゴリズム選択のために、検査設定部5で設定されるデータテーブルについて、下記表1、表2を参照して説明する。   Here, in the image processing apparatus of this embodiment, a data table set by the examination setting unit 5 for selecting a processing algorithm will be described with reference to Tables 1 and 2 below.

Figure 2008241424
Figure 2008241424

表1、表2において、検査設定の設定項目は、検査設定に必要な複数の各設定項目を備え、検査目的を示す項目と、対象物の画像の特徴を示す項目と、対象物の検査基準を示す項目とからなる。対象物の画像の特徴を示す項目は、「白黒」の場合と「濃淡」の場合があり、特徴「白黒」と「濃淡」の各設定に対応して、検査基準の項目は、ユーザの要求する結果情報としての要求結果情報P、Qをそれぞれ表1、表2に示している。また、表1、表2におけるデータテーブルは、各表の上欄の横方向には、検査目的の9項目を示し、左欄の縦方向には、処理アルゴリズム(検査プログラム)を示し、それらの縦横のマトリックスの位置に要求結果情報P、Qがそれぞれ記載されている。このデータテーブルから「検査目的」と「特徴」と「要求結果情報」を選択することにより、左欄の縦方向の処理アルゴリズムが自動的に決定される。また、処理アルゴリズムは、表1では2値化処理されるアルゴリズムを用いることを示し、表2では濃淡化処理されるアルゴリズムを用いることを示す。なお、各表において、該当する検査基準項目がない場合は、斜線を施している。   In Tables 1 and 2, the setting items for the inspection setting include a plurality of setting items necessary for the inspection setting, items indicating the inspection purpose, items indicating the characteristics of the image of the object, and inspection standards for the object It consists of the item which shows. The items indicating the characteristics of the image of the target object may be “black and white” or “dark”, and the items of the inspection standard correspond to the settings of the characteristics “black and white” and “dark”. Tables 1 and 2 show the request result information P and Q as the result information, respectively. The data tables in Tables 1 and 2 show nine items for inspection purposes in the horizontal direction in the upper column of each table, and the processing algorithm (inspection program) in the vertical direction in the left column. The request result information P and Q are described at the vertical and horizontal matrix positions, respectively. By selecting “inspection purpose”, “feature” and “request result information” from this data table, the vertical processing algorithm in the left column is automatically determined. Table 1 shows that the algorithm to be binarized is used in Table 1, and that the algorithm to be used for density is used in Table 2. In each table, if there is no applicable inspection standard item, it is shaded.

Figure 2008241424
Figure 2008241424

上記表1のアルゴリズム欄において、「ライン」は、線上に一列にある対象物の個数を検出するアルゴリズムで、「2値化ウインドウ」は、対象画像を2値化して面積測定するものである。「特徴抽出」は、対象画像の特徴領域内の2値化による個数、面積、重心、主軸方向を測定するものであり、「2値化エッジ」は、線上の対象画像のエッジ検出による個数、長さ、座標の測定等を行う。   In the algorithm column of Table 1 above, “line” is an algorithm for detecting the number of objects in a line on the line, and “binarization window” is for binarizing the target image and measuring the area. “Feature extraction” is to measure the number, area, center of gravity, and principal axis direction by binarization in the feature region of the target image, and “binarization edge” is the number by edge detection of the target image on the line, Measure length and coordinates.

表2のアルゴリズム欄において、「濃淡ウインドウ」は、検査範囲の平均濃淡値(明るさ)を測定するものであり、「濃淡エッジ」は、エッジの個数、エッジ間の長さを判定するものである。「リード」は、IC等のリード線のピッチ、幅、本数等を判定するものである。また、「マッチング」は、登録パターンと一致させて個数、座標間の長さ、座標位置、角度、面積を判定するものである。また、「輪郭マッチング」は、対象画像に複数画像の重なりがある場合に、輪郭のマッチング処理により判定するものである。また、「傷検知」は、明るさの変化のある場所を検知して判定するものである。なお、これらの処理アルゴリズムは、この種の画像処理装置において種々公知であるので、ここでは詳細な説明は省略する。   In the algorithm column of Table 2, “Tint Window” measures the average gray value (brightness) of the inspection range, and “Tint Edge” determines the number of edges and the length between edges. is there. “Lead” is used to determine the pitch, width, number, and the like of lead wires such as ICs. “Matching” is to determine the number, the length between coordinates, the coordinate position, the angle, and the area by matching with the registered pattern. Further, “contour matching” is determined by contour matching processing when a plurality of images are overlapped in the target image. Further, “scratch detection” is to detect and determine a place where the brightness changes. Since these processing algorithms are variously known in this type of image processing apparatus, detailed description thereof is omitted here.

上記表1、2において、検査目的は、通常、有無検査、長さ検査、位置(ずれ)検査、個数(又は本数)検査、大きさ検査、方向検査、明るさ検査、外観(汚れ、傷、バリ、欠け)検査、「基準との違い」検査における9項目でほぼ網羅できる。また、これらの項目は、不慣れなユーザでも理解できるものである。   In Tables 1 and 2 above, inspection purposes are usually presence / absence inspection, length inspection, position (deviation) inspection, number (or number) inspection, size inspection, direction inspection, brightness inspection, appearance (dirt, scratch, It is possible to cover almost nine items in the inspection of “burr, chipping” and “difference from standard”. In addition, these items can be understood even by unskilled users.

例えば、有無検査は、対象物の特定位置に、部品・マーク・穴等があるか無いかを検査するもので、基板上の電子部品有無検査、基板上のはんだ有無検査、ラベル有無検査、錠剤有無検査等を行う。長さ検査は、指定した2点間の位置関係・距離が正しい範囲内にあるかどうかを検査するもので、ボルトの長さチェック、成型品の寸法検査等を行う。位置(ずれ)検査とは、指定したマーク・穴等の位置を求め、それが正しい範囲内にあるかを検査するもので、プリント基板の位置チェック、ラベルのずれチェック、ねじ穴位置チェック等を行う。   For example, the presence / absence inspection is for inspecting whether there is a part, mark, hole, etc. at a specific position of an object. Perform presence / absence inspection. The length inspection is performed to check whether the positional relationship / distance between the two specified points is within the correct range, such as a bolt length check and a dimensional inspection of a molded product. The position (deviation) inspection is to find the position of the specified mark / hole, etc., and inspect whether it is within the correct range. Check the position of the printed circuit board, the label deviation, the screw hole position, etc. Do.

個数(又は本数)検査は、ある一定範囲、線上にあるマークの個数、ICの端子の本数などのチェックを行う。大きさ検査は、対象物の面積の大きさにより検査するものであり、方向検査とは、対象物の方向が正しいかどうかを検査するもので、ICの方向、ラベルの方向チェック等に用いられる。   In the number (or number) inspection, a certain range, the number of marks on a line, the number of IC terminals, and the like are checked. The size inspection is performed based on the size of the area of the object. The direction inspection is performed to check whether the direction of the object is correct, and is used for checking the direction of the IC, the direction of the label, and the like. .

また、明るさ検査は、検査範囲全体の平均の明るさを検査するものである。外観検査は、汚れ・キズ検査及びバリ・カケ検査を含み、指定した範囲内に、キズ・汚れ・ごみ等が無いこと、及び対象物の輪郭・外周に、不正なカケ・バリが無いこと等をそれぞれ検査するもので、ピンホールのチェック、シートのしみチェック等に使用される。基準との違いの検査とは、例えは、名刺等で文字のパターンが基準パターンとずれていないか、不要な刻印がないかなど、基準のパターン等との違いを検査するものである。   The brightness inspection is for inspecting the average brightness of the entire inspection range. Appearance inspection includes dirt / scratch inspection and burrs / defects inspection. There are no scratches, dirt, debris, etc. within the specified range, and there are no illegal burrs / burrs on the outline / outer periphery of the object. These are used for checking pinholes and sheet spots. The inspection of the difference from the reference is, for example, an inspection of a difference from the reference pattern or the like such as whether the character pattern is not shifted from the reference pattern on the business card or the like, or there is no unnecessary marking.

次に、対象物の画像の特徴を示す項目は、撮像画像において明暗がはっきり分かれていて、白黒で判定できる場合に、画像特徴を「白黒」として表し、一方、白黒画像にすると検査対象を明確に判定できない場合に、画像特徴を「濃淡」として表す。これらの選択においては、「白黒」を選択した場合は、処理アルゴリズムは2値化処理により画像処理のスピードを速くでき、「濃淡」選択した場合は、濃淡化処理により詳細に検査することができる。   Next, the item indicating the feature of the image of the object represents the image feature as “monochrome” when the captured image is clearly divided in brightness and can be determined in black and white. If the image feature cannot be determined, the image feature is expressed as “shading”. In these selections, when “monochrome” is selected, the processing algorithm can increase the speed of image processing by binarization processing, and when “darkness” is selected, detailed inspection can be performed by darkening processing. .

ここで、表1、表2に示される検査基準の要求結果情報について説明する。これらの表において、対象物の検査基準を示す項目は、前記検査目的の各項目毎に、検査対象画像の特徴の「白黒」、「濃淡」の選択に対応して、ユーザが必要とする具体的な要求結果情報を詳細に示す。   Here, the request result information of the inspection standard shown in Tables 1 and 2 will be described. In these tables, the items indicating the inspection standard of the object are specific items required by the user corresponding to the selection of “black and white” and “light / dark” of the characteristics of the image to be inspected for each item of the inspection purpose. Detailed request result information is shown.

検査目的が「有無」の場合は、検査基準の要求結果情報として、検査対象が有るか無いかを、ユーザに分かり易いように選択項目として、「一列に並ぶ対象の個数で判定」、「面積で判定」、「一列に並ぶ対象のエッジ個数で判定」、「明るさの変化で判定」、「登録パターンと一致するものの個数で判定」を判定項目としている。これにより、対象画像の特徴が「白黒」のときは、「一列に並ぶ対象の個数で判定」、「面積で判定」、「対象の面積または個数変化で判定」、「一列に並ぶ対象のエッジ個数で判定」の基準項目とし、対象画像の特徴が「濃淡」のときは、「明るさの変化で判定」、「一列に並ぶ対象のエッジ個数で判定」、「登録パターンと一致するものの個数で判定」(重なりがないとき)、「登録パターンと一致するものの個数で判定」(重なりがあるとき)の項目を設けている。   When the inspection purpose is “presence / absence”, whether the inspection target is present or not is selected as a selection item in order to make it easy for the user to understand as the inspection standard request result information. The determination items are “determined by”, “determined by the number of target edges aligned in a row”, “determined by change in brightness”, and “determined by the number of objects that match the registered pattern”. As a result, when the feature of the target image is “black and white”, “determined by the number of objects aligned in a row”, “determined by area”, “determined by change in area or number of objects”, “edges of objects aligned in a row” When the target image feature is “light / dark”, the criteria item of “Judge by number” is “Judge by brightness change”, “Judge by number of target edges in a row”, “Number of items that match registered pattern” "Determine by (when there is no overlap)" and "Determine by the number of items that match the registered pattern" (when there is an overlap).

また、検査目的が「長さ」の場合は、検査基準の要求結果情報は、上記と同様に、ユーザに分かり易いように選択項目として、特徴選択が「白黒」の場合は、「エッジ間の長さ」とし、特徴選択が「濃淡」においては、「エッジ間の長さ」、「リードのピッチ及び幅」、「登録パターンと一致した対象の座標間長さ」(重なりがないとき、あるときに分ける)の各項目を設けている。   When the inspection purpose is “length”, the inspection standard request result information is selected as a selection item for easy understanding by the user, as described above. When the feature selection is “black and white”, “between edges” When the feature selection is “Tint”, “Length between edges”, “Pitch and width of leads”, “Length of target coordinates that match the registered pattern” (when there is no overlap) Each item is provided).

また、検査目的が位置(ずれ)の場合は、上記と同様に、選択項目として、特徴選択が「白黒」の場合は、「特徴の重心座標位置」、「エッジ座標位置」の項目を設け、特徴選択が「濃淡」の場合は、「エッジ座標位置」、「登録パターンと一致した対象の座標位置」(重なりがないとき、あるときに分ける)の各項目を設けている。   In addition, when the inspection purpose is position (deviation), as described above, when the feature selection is “black and white”, the items “feature center of gravity coordinate position” and “edge coordinate position” are provided. When the feature selection is “light / dark”, each item of “edge coordinate position” and “target coordinate position that matches the registered pattern” (when there is no overlap, separate when there is) is provided.

また、検査目的が個数(本数)の場合は、検査基準の要求結果情報は、特徴が「白黒」のときは、「一列に並ぶ対象の個数」、「ばらばらに配置された対象の個数」の各項目を設定し、特徴に「濃淡」を選択したときは、「リードの本数」、「登録パターンと一致した対象の個数」の各項目を設定している。   When the inspection purpose is the number (number), the inspection standard request result information includes “number of objects arranged in a row” and “number of objects arranged in a row” when the feature is “black and white”. When each item is set and “Tint” is selected as the feature, each item of “Number of leads” and “Number of objects matching the registered pattern” is set.

また、検査目的が「大きさ」の場合は、面積の測定により検査が可能なので、検査基準の要求結果情報は、特徴選択が「白黒」の場合のみで行い、「対象の総和面積」、「対象の個別の面積」の項目を設定している。これにより、選択肢を減らして選択作業を簡潔にしている。   In addition, when the inspection purpose is “size”, the inspection can be performed by measuring the area. Therefore, the inspection standard requirement result information is only used when the feature selection is “black and white”, and “target total area”, “ The item "Individual area of object" is set. This reduces options and simplifies the selection process.

また、検査目的が「方向」の場合は、検査基準の要求結果情報は、特徴に「白黒」を選択した場合は、2値化処理で判定できる「対象の主軸方向」の項目のみとし、特徴選択が「濃淡」の場合は、「登録パターンと一致した角度」(重なりがないとき、あるときに分ける)の項目のみとしている。   When the inspection purpose is “direction”, the inspection standard request result information includes only the “target spindle direction” item that can be determined by binarization processing when “black and white” is selected as the feature. When the selection is “light / dark”, only the item of “angle matched with registered pattern” (when there is no overlap, it is divided when there is) is set.

また、検査目的が「明るさ」の場合においては、特徴選択を「濃淡」のみとし、要求結果情報は、検査範囲の明るさを測定すればよいので「検査範囲全体の平均の明るさ」の項目だけとする。   In addition, when the inspection purpose is “brightness”, the feature selection is only “shading” and the request result information only needs to measure the brightness of the inspection range. Only items.

また、検査目的が「外観」(汚れ、傷、ばり、かけ)の場合は、特徴選択を「濃淡」のみとし、外観は、傷等の周辺の明るさの変化で検知できるので「明るさの変化のある箇所を検知して判定」の項目だけとしている。   When the inspection purpose is “appearance” (dirt, scratches, flashes, shading), the feature selection is only “contrast”, and the appearance can be detected by changes in the brightness of the surroundings such as scratches. Only the item of “detect and judge a change” is set.

また、検査目的が「基準との違い」の場合は、特徴選択を「濃淡」のみとし、登録パターンとの違いを検知する「登録パターンと異なる部分の面積で判定」の項目だけとしている。   When the inspection purpose is “difference from the reference”, the feature selection is only “light / dark”, and only the item “determined by the area of the portion different from the registered pattern” for detecting the difference from the registered pattern is set.

上記のように、検査基準の選択項目は、ユーザが直接的に知りたい要求結果情報の内容の表現を用いて、ユーザに検査基準を分かり易くした表現にしている。これにより、処理アルゴリズムの内容を知らない不慣れなユーザであっても検査基準の項目を容易に理解して選択することができる。   As described above, the selection item of the inspection standard is expressed in such a way that the user can easily understand the inspection standard by using the expression of the contents of the request result information that the user wants to know directly. Thereby, even an inexperienced user who does not know the contents of the processing algorithm can easily understand and select the inspection standard items.

次に、本実施形態における検査設定の動作手順について、図3、図4及び図5を参照して説明する。図3において、ユーザは、図4(a)の表示部3の表示画面31に示される検査目的を選定し(ここでは、「a有無」を選択)(S211)(第1の決定ステップ)、続けて、検査対象画像の特徴において「A」の「白黒」を選択すると(S212でYES)(第2の決定ステップ)、表示画面31は、図4(b)の「a有無」で「白黒」選択時の要求結果情報(P)の選択画面に替り、ユーザは、この画面に表示される検査基準41乃至44から所望する検査基準の要求結果情報(P)を選択する(S213)(第3の決定ステップ)。この選択により、制御部7は、S213の最後に選択された検査基準41乃至44の1つの設定項目に対応した処理アルゴリズム(表1参照)をROM8より自動的に呼び出して(S214)、検査設定が終了すると共に、この検査設定に従って検査を実行する。   Next, the inspection setting operation procedure in the present embodiment will be described with reference to FIGS. 3, the user selects the inspection purpose shown on the display screen 31 of the display unit 3 in FIG. 4A (here, “a presence / absence” is selected) (S211) (first determination step), Subsequently, when “black and white” of “A” is selected in the characteristics of the image to be inspected (YES in S212) (second determination step), the display screen 31 displays “black and white” in “a presence / absence” of FIG. Instead of the request result information (P) selection screen at the time of selection, the user selects the desired inspection standard request result information (P) from the inspection standards 41 to 44 displayed on this screen (S213) 3 decision steps). By this selection, the control unit 7 automatically calls the processing algorithm (see Table 1) corresponding to one setting item of the inspection criteria 41 to 44 selected at the end of S213 from the ROM 8 (S214), and sets the inspection settings. And the inspection is executed according to the inspection setting.

一方、S212で濃淡処理を選択した場合は(S212でNO)(第2の決定ステップ)、上記と同様に、表示画面31は、図4(c)の濃淡時の要求結果情報(Q)の選択画面に替り、ユーザはこの画面に表示される検査基準45乃至48から所望する検査基準を選択する(S215)(第3の決定ステップ)。この選択により、制御部7は、S213の最後に選択された検査基準45乃至48の1つの設定項目に対応した処理アルゴリズム(表2参照)をROM8より自動的に呼び出して(S216)、検査設定を終了すると共に、この検査設定に従って検査プログラムを実行する。   On the other hand, when the shading process is selected in S212 (NO in S212) (second determination step), the display screen 31 displays the shading request result information (Q) in FIG. Instead of the selection screen, the user selects a desired inspection standard from the inspection standards 45 to 48 displayed on this screen (S215) (third determination step). By this selection, the control unit 7 automatically calls the processing algorithm (see Table 2) corresponding to one setting item of the inspection criteria 45 to 48 selected at the end of S213 from the ROM 8 (S216), and sets the inspection settings. And the inspection program is executed according to the inspection setting.

上記の図4(b)、(c)における表示は、検査目的の選択が「有無」検査の場合を示しているが、図5に示すように、他の検査目的を選択した場合も、同様に行うことができる。すなわち、表示部3で検査目的と特徴の選択により、これらに対応する要求結果情報を表1、表2のデータテーブルを基に、表示画面31に表示して検査設定を選択することできる。また、検査目的によって、検査対象の特徴選択は、「白黒」、又は「濃淡」のいずれかしか選択肢が存在しない場合(例えば、方向、明るさ、外観など)があるが、それらの検査目的では、「白黒」又は「濃淡」のいずれか一方の処理アルゴリズムが望ましいので予め選択を絞っている。   The display in FIGS. 4B and 4C above shows the case where the inspection purpose is the “presence / absence” inspection, but as shown in FIG. 5, it is the same when another inspection purpose is selected. Can be done. That is, by selecting the inspection purpose and features on the display unit 3, the request result information corresponding to these can be displayed on the display screen 31 based on the data tables of Tables 1 and 2, and the inspection setting can be selected. In addition, depending on the inspection purpose, there are cases where there are only options of “black and white” or “light / dark” for the feature selection of the inspection object (for example, direction, brightness, appearance, etc.). Since either one of the processing algorithms of “black and white” or “light / dark” is desirable, the selection is narrowed down in advance.

このように、本実施形態の画像処理装置によれば、ユーザが最後に選択した設定項目により、必要な検査プログラムが自動的に設定されるので、ユーザは、データテーブルの検査基準から設定項目を1つ選択するだけでよい。したがって、ユーザは専門的なアルゴリズム名称、用途名称などの検査プログラムを選択する必要がなく、検査プログラムの選定作業を行わなくてよいので、画像処理検査に不慣れであっても、所望する検査設定を容易に行うことができる。また、データテーブルを設けて、設定項目の選択を検査目的、対象物の画像の特徴、検査基準の3ステップによる少ない選択ステップで選択作業を行うことができるので、所望する選択を簡単に迅速に行うことができる。また、データテーブルにユーザの要求結果情報に沿った分かり易い表現の検査基準を設けたことにより、ユーザは、検査プログラムを意識せず、自動的に処理アルゴリズムを選択することができる。また、上記検査基準の表現は、ある業界に限定された表現でないので、ユーザの希望する検査基準に該当させ易く、異なる業界の検査対象物であっても適用することができる。   As described above, according to the image processing apparatus of the present embodiment, since the necessary inspection program is automatically set according to the setting item last selected by the user, the user can select the setting item from the inspection standard of the data table. You only need to select one. Therefore, the user does not need to select an inspection program such as a specialized algorithm name or application name, and does not have to perform an inspection program selection operation. Therefore, even if the user is unfamiliar with image processing inspection, the desired inspection setting can be set. It can be done easily. In addition, since a data table is provided, selection of setting items can be performed in a small number of selection steps with three steps of inspection purpose, object image characteristics, and inspection criteria, so that a desired selection can be easily and quickly performed. It can be carried out. In addition, by providing an easy-to-understand expression inspection standard in accordance with user request result information in the data table, the user can automatically select a processing algorithm without being aware of the inspection program. Further, the expression of the inspection standard is not an expression limited to a certain industry, so that it can be easily applied to the inspection standard desired by the user and can be applied even to an inspection object of a different industry.

また、本画像処理装置を用いて対象物を検査する方法を用いれば、画像処理検査に不慣れなユーザでも、検査設定を簡単に迅速に行うことができる。   Further, if a method for inspecting an object using the image processing apparatus is used, even a user unfamiliar with image processing inspection can easily and quickly perform inspection setting.

なお、本発明は、上記実施形態等に限られるものでなく、さらに適宜に変更することができる。例えば、本実施形態では、決定ステップを3ステップとしたが、必要に応じて濃淡と白黒の選択を省略して選択のステップ数を削減することや、逆に3ステップ以上に増やしてより詳細な検査設定を行うことも可能である。   In addition, this invention is not restricted to the said embodiment etc., Furthermore, it can change suitably. For example, in this embodiment, the determination step is three steps. However, if necessary, the selection of shades and black and white may be omitted to reduce the number of selection steps, or conversely, the number of selection steps may be increased to three steps or more. It is also possible to perform inspection settings.

本発明の実施形態に係る画像処理装置の構成図。1 is a configuration diagram of an image processing apparatus according to an embodiment of the present invention. (a)は上記画像処理装置の全体の手順を示すフローチャート、(b)は(a)の処理アルゴリズム設定の手順を示すフローチャート。(A) is a flowchart showing the overall procedure of the image processing apparatus, (b) is a flowchart showing the procedure for setting the processing algorithm of (a). 上記画像処理装置の検査設定の手順を示すフローチャート。6 is a flowchart showing a procedure for inspection setting of the image processing apparatus. (a)、(b)、(c)はそれぞれ上記動作手順における各ステップの操作案内画面を示す図。(A), (b), (c) is a figure which shows the operation guidance screen of each step in the said operation | movement procedure, respectively. 上記画像処理装置の検査設定手順の全体概要を示す図。The figure which shows the whole outline | summary of the test | inspection setting procedure of the said image processing apparatus.

符号の説明Explanation of symbols

1 TVカメラ(撮像部)
5 検査設定部
7 制御部
8 ROM(記憶部)
1 TV camera (imaging part)
5 Inspection setting part 7 Control part 8 ROM (storage part)

Claims (3)

撮像部により撮像された対象物の画像を元に該対象物を検査する画像処理装置であって、
複数の検査プログラムが格納された記憶部と、
ユーザ操作により所望の検査設定を行う検査設定部と、
装置全体を制御する制御部と、を備え、
前記検査設定部には、予め複数の設定項目からなるデータテーブルが設けられ、
ユーザにより対象物の検査設定が行なわれるとき、前記データテーブルの複数の設定項目の中から一つの設定項目を選択する決定ステップを複数回行った後に、前記制御部は、前記決定ステップの最後に選択された設定項目に対応した検査プログラムを前記記憶部より呼び出して、検査を実行することを特徴とする画像処理装置。
An image processing apparatus that inspects an object based on an image of the object imaged by an imaging unit,
A storage unit storing a plurality of inspection programs;
An inspection setting unit for performing desired inspection settings by a user operation;
A control unit for controlling the entire apparatus,
The inspection setting unit is provided with a data table including a plurality of setting items in advance,
When the inspection setting of the object is performed by the user, after the determination step of selecting one setting item from the plurality of setting items of the data table is performed a plurality of times, the control unit is arranged at the end of the determination step. An image processing apparatus, wherein an inspection program corresponding to a selected setting item is called from the storage unit and inspection is executed.
前記設定項目は、検査目的を示す項目と、対象物の画像の特徴を示す項目と、対象物の検査基準を示す項目と、を有し、
前記決定ステップは、前記検査目的を示す項目を選択する第1の決定ステップと、
前記対象物の画像の特徴を示す項目を選択する第2の決定ステップと、
前記対象物の検査基準を示す項目を選択する第3の決定ステップと、を有することを特徴とする請求項1記載の画像処理装置。
The setting item includes an item indicating an inspection purpose, an item indicating an image characteristic of the object, and an item indicating an inspection standard of the object.
The determination step includes a first determination step of selecting an item indicating the inspection purpose;
A second determining step of selecting an item indicating the feature of the image of the object;
The image processing apparatus according to claim 1, further comprising a third determination step of selecting an item indicating an inspection standard of the object.
撮像部により撮像された対象物の画像を元に該対象物を検査する画像処理方法であって、
対象物の検査設定を行なう場合に、
検査目的を示す複数の項目から一つの項目を選択する決定ステップと、
対象物の画像の特徴を示す複数の項目から一つの項目を選択する決定ステップと、
対象物の検査基準を示す項目であって、選択されることにより処理アルゴリズムが決定される複数の項目から一つの項目を選択する決定ステップと、
を有することを特徴とする画像処理方法。
An image processing method for inspecting an object based on an image of the object imaged by an imaging unit,
When setting up inspection of an object,
A decision step of selecting one item from a plurality of items indicating the inspection purpose;
A determination step of selecting one item from a plurality of items indicating characteristics of the image of the object;
A determination step for selecting one item from a plurality of items, which is an item indicating an inspection standard of an object and whose processing algorithm is determined by being selected;
An image processing method comprising:
JP2007081542A 2007-03-27 2007-03-27 Image processing apparatus and method using the same Withdrawn JP2008241424A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007081542A JP2008241424A (en) 2007-03-27 2007-03-27 Image processing apparatus and method using the same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007081542A JP2008241424A (en) 2007-03-27 2007-03-27 Image processing apparatus and method using the same

Publications (1)

Publication Number Publication Date
JP2008241424A true JP2008241424A (en) 2008-10-09

Family

ID=39912965

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007081542A Withdrawn JP2008241424A (en) 2007-03-27 2007-03-27 Image processing apparatus and method using the same

Country Status (1)

Country Link
JP (1) JP2008241424A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010122016A (en) * 2008-11-18 2010-06-03 Yamaha Motor Co Ltd Device and method for inspecting mounting state of component
JP2011022133A (en) * 2009-06-19 2011-02-03 Yaskawa Electric Corp Shape detection system and robot system
JP2011112527A (en) * 2009-11-27 2011-06-09 Ckd Corp Tablet inspection device and ptp packaging machine
JP2014134526A (en) * 2013-01-11 2014-07-24 Sony Corp Substrate inspection device, image analyzing device, method of inspecting substrate and method of producing substrate
JP2020067308A (en) * 2018-10-22 2020-04-30 キヤノン株式会社 Image processing method and image processing device

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010122016A (en) * 2008-11-18 2010-06-03 Yamaha Motor Co Ltd Device and method for inspecting mounting state of component
JP2011022133A (en) * 2009-06-19 2011-02-03 Yaskawa Electric Corp Shape detection system and robot system
JP2011112527A (en) * 2009-11-27 2011-06-09 Ckd Corp Tablet inspection device and ptp packaging machine
JP2014134526A (en) * 2013-01-11 2014-07-24 Sony Corp Substrate inspection device, image analyzing device, method of inspecting substrate and method of producing substrate
JP2020067308A (en) * 2018-10-22 2020-04-30 キヤノン株式会社 Image processing method and image processing device
JP7214432B2 (en) 2018-10-22 2023-01-30 キヤノン株式会社 Image processing method, image processing program, recording medium, image processing apparatus, production system, article manufacturing method

Similar Documents

Publication Publication Date Title
US10878283B2 (en) Data generation apparatus, data generation method, and data generation program
JP6705777B2 (en) Machine learning device, inspection device and machine learning method
JP5861462B2 (en) Inspection standard registration method for solder inspection and board inspection apparatus using the method
US11176650B2 (en) Data generation apparatus, data generation method, and data generation program
US7409081B2 (en) Apparatus and computer-readable medium for assisting image classification
US9410898B2 (en) Appearance inspection device, appearance inspection method, and program
JP2017096750A (en) Positioning method, positioning apparatus, program and computer readable recording medium
CN112577969B (en) Defect detection method and defect detection system based on machine vision
KR20210008352A (en) System and method for detecting defects in imaged items
JP7214432B2 (en) Image processing method, image processing program, recording medium, image processing apparatus, production system, article manufacturing method
US10401227B2 (en) Colorimetry device and colorimetry method
JP2008241424A (en) Image processing apparatus and method using the same
JP2010071951A (en) Visual inspection device and visual inspection method
CN102401636B (en) Image measuring apparatus and image measuring method
US20210183037A1 (en) Image processing device, image processing method, and image processing non-transitory computer readable medium
JP2010133744A (en) Defect detection method, and visual inspection device using the same
CN110596118A (en) Print pattern detection method and print pattern detection device
CN115375610A (en) Detection method and device, detection equipment and storage medium
JP5960433B2 (en) Image processing apparatus and image processing method
JP2007033126A (en) Substrate inspection device, parameter adjusting method thereof and parameter adjusting device
JP5855961B2 (en) Image processing apparatus and image processing method
JP2020134424A (en) Spectroscopic inspection method, image processing device, and robot system
US20210209740A1 (en) Inspection system, information processing apparatus, and non-transitory computer-readable medium
JP7080123B2 (en) Image inspection equipment
JP6180889B2 (en) Printing inspection device

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20100601