JPH01245365A - Method and device for evaluating inspection capacity for appearance inspector - Google Patents

Method and device for evaluating inspection capacity for appearance inspector

Info

Publication number
JPH01245365A
JPH01245365A JP63075182A JP7518288A JPH01245365A JP H01245365 A JPH01245365 A JP H01245365A JP 63075182 A JP63075182 A JP 63075182A JP 7518288 A JP7518288 A JP 7518288A JP H01245365 A JPH01245365 A JP H01245365A
Authority
JP
Japan
Prior art keywords
probability
inspected
appearance
image
sum
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.)
Pending
Application number
JP63075182A
Other languages
Japanese (ja)
Inventor
Kazuo Kuki
一夫 九鬼
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.)
Kanegafuchi Chemical Industry Co Ltd
Original Assignee
Kanegafuchi Chemical Industry Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Kanegafuchi Chemical Industry Co Ltd filed Critical Kanegafuchi Chemical Industry Co Ltd
Priority to JP63075182A priority Critical patent/JPH01245365A/en
Publication of JPH01245365A publication Critical patent/JPH01245365A/en
Pending legal-status Critical Current

Links

Landscapes

  • Inking, Control Or Cleaning Of Printing Machines (AREA)
  • Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)
  • Image Input (AREA)
  • Image Processing (AREA)
  • Closed-Circuit Television Systems (AREA)
  • Image Analysis (AREA)

Abstract

PURPOSE:To accurately obtain an evaluation value even if a defect having the same density gradation as that of the surface of a substance to be inspected exists by calculating the evaluation value of inspection capacity based on the 1st detection probability, the 2nd appearance probability and distribution probability. CONSTITUTION:The 1st detection probability of an appearance inspector and the 1st appearance probability of a defect on the surface of a substance to be inspected are respectively calculated in each feature value of an image expressing the feature of the image of the substance to be inspected. Then the 2nd inspection probability of the appearance inspector and the 2nd appearance probability of the defect are found out in each degree of the image expressing the feature of the image of the substance to be inspected and the distribution probability in the degree of a feature value other than the degree of the feature value included in the image data of the substance to be inspected is calculated based on the 2nd detection probability and the 2nd appearance probability. The evaluation value of inspection capacity is calculated based on the 1st detection probability, the 1st appearance probability and the distribution probability. Even if a defect having the density gradation as that of the surface of the substance to be inspected exists, the evaluation value can be accurately obtained.

Description

【発明の詳細な説明】 し産業上の利用分野] 本発明は、被検査物を撮影し上記撮影された画像のデー
タに基づいて被検査物の表面における欠陥を検査する外
観検査装置のための検査能力評価方法及び装置に関する
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention is directed to an appearance inspection device for photographing an object to be inspected and inspecting defects on the surface of the object based on the data of the photographed image. This invention relates to a testing ability evaluation method and device.

[従来の技術] 従来、2次元カメラを用いて被検査物を撮像することに
より、もしくは1次元カメラを用いて該1次元カメラの
走査方向と直角な方向へ被検査物を移動しながら撮像す
ることにより得られる2次元の濃淡画像又は彩色画像か
ら、被検査物表面の汚れ、傷、破損及び欠落等の欠陥を
検出するために、種々の測定方法、欠陥検出のアルゴリ
ズム及び外観検査装置等が考案されてきた。
[Prior Art] Conventionally, an object to be inspected is imaged using a two-dimensional camera, or an image is taken using a one-dimensional camera while moving the object to be inspected in a direction perpendicular to the scanning direction of the one-dimensional camera. Various measurement methods, defect detection algorithms, visual inspection equipment, etc. are used to detect defects such as dirt, scratches, damage, and missing parts on the surface of the inspected object from the two-dimensional grayscale or colored images obtained by this method. has been devised.

これらの外観検査装置の検査能力を評価する方法及び装
置が本発明者によって、特願昭63−031444号に
おいて提案されている。この外観検査装置のための検査
方法は、被検査物を濃淡画像として撮影し上記濃淡画像
のデータに基づいて被検査物の表面における欠陥を検査
する外観検査装置のための検査能力評価方法において、
所定の濃淡度階調毎にすべての上記濃淡度階調を含む画
像データに基ついて上記外観検査装置が上記各濃淡度階
調の画像を検出できる確率である検出確率を演算し、上
記濃淡度階調毎に表面に欠陥がある上記被検査物の画像
のデータに基づいて上記欠陥が出現する確率である出現
確率を演算し、上記検出確率と上記出現確率との上記各
濃淡度階調毎の積の総和である第1の総和をすべての上
記濃淡度階調にわたって演算し、上記各濃淡度階調の上
記出現確率の総和である第2の総和をすべての上記濃淡
度階調にわたって演算し、上記第1の総和を上記第2の
総和で除算し、上記除算値を上記外観検査装置の検査能
力の評価値とすることを特徴としている。
A method and apparatus for evaluating the inspection ability of these visual inspection apparatuses have been proposed by the present inventor in Japanese Patent Application No. 63-031444. This inspection method for an appearance inspection apparatus is an inspection ability evaluation method for an appearance inspection apparatus that photographs an object to be inspected as a grayscale image and inspects defects on the surface of the object to be inspected based on the data of the grayscale image.
The detection probability, which is the probability that the appearance inspection device can detect an image of each of the above-mentioned gradations, is calculated based on the image data including all the above-mentioned gradations of gradation for each predetermined gradation of gradation, and The appearance probability, which is the probability that the defect will appear, is calculated based on the data of the image of the object to be inspected that has a defect on the surface for each gradation, and the detection probability and the appearance probability are calculated for each gray level. A first summation, which is the sum of the products of the above, is calculated over all the above-mentioned density gradations, and a second summation, which is the sum of the above-mentioned appearance probabilities of each of the above-mentioned density gradations, is calculated over all the above-mentioned density gradations. The first total sum is divided by the second total sum, and the divided value is used as an evaluation value of the inspection ability of the visual inspection apparatus.

[発明が解決しようとする課題] しかしながら、上述の従来例の外観検査装置のための検
査能力評価方法及び装置においては、上述のように濃淡
度階調に基づいて被検査物の表面における汚れを検出し
ているので、被検査物に付着した汚れの濃淡度階調が被
検査物の表面の濃淡度階調と同一である場合、その汚れ
を検出することができず、これによって、上記外観検査
装置の評価値に誤差を生じるという問題点があった。
[Problems to be Solved by the Invention] However, in the above-mentioned conventional inspection performance evaluation method and apparatus for the visual inspection apparatus, dirt on the surface of the object to be inspected is detected based on the gray scale as described above. Therefore, if the gradation of the dirt attached to the object to be inspected is the same as the gradation of gradation of the gradation of the surface of the object to be inspected, the dirt cannot be detected. There was a problem in that an error occurred in the evaluation value of the inspection device.

本発明の目的は以上の問題点を解決し、被検査物に付着
した汚れ等の欠陥の濃淡度階調が被検査物の表面の濃淡
度階調と同一であっても、外観検査装置の検査能力を適
確に自動的に数値化して評価することができる外観検査
装置のための評価方法及び装置を提供することにある。
An object of the present invention is to solve the above problems, and even if the gradation of the gradation of defects such as dirt attached to the object to be inspected is the same as the gradation of gradation of the gradation of the surface of the object to be inspected, it is possible to An object of the present invention is to provide an evaluation method and device for a visual inspection device that can accurately and automatically quantify and evaluate inspection ability.

「課題を解決するための手段] 第1の発明の評価方法は、被検査物を撮影し上記撮影さ
れた画像のデータに基づいて被検査物の表面における欠
陥を検査する外観検査装置のための検査能力評価方法に
おいて、所定の濃淡度階調毎にすべての上記濃淡度階調
を含む画像データに基づいて上記外観検査装置が各濃淡
度階調の画像を検出できる確率である第1の検出確率を
演算し、上記濃淡度階調毎に表面に欠陥がある上記被検
査物の画像のデータに基づいて上記欠陥が出現する確率
である第1の出現確率を演算し、上記第1の検出確率と
上記第1の出現確率との上記各濃淡度階調毎の積の総和
である第1の総和をすべての上記濃淡度階調にわたって
演算し、上記各濃淡度階調の上記第1の出現確率の総和
である第2の総和をすべての上記濃淡度階調にわたって
演算し、上記第1の総和を上記第2の総和で除算し、上
記被検査物の画像データに基づいて上記被検査物の濃淡
度階調を有する画像データの出現確率を演算し、上記被
検査物の画像の特徴を表す画像の特徴量の各度合い毎に
上記特徴量のすべての度合いを含む画像データに基づい
て上記外観検査装置が上記特徴量の各度合いの画像を検
出できる確率である第2の検出確率を演算し、上記被検
査物の画像データに基づいて上記特徴量の各度合い毎に
上記欠陥が出現する確率である第2の出現確率を演算し
、上記第2の検出確率と上記第2の出現確率に基づいて
上記被検査物の画像データが有する上記特徴量の度合い
以外の上記特徴量の度合いの分布確率を演算し、上記被
検査物の濃淡度階調を有する画像データの出現確率と上
記分布確率との積に上記除算値を加算し、上記加算値を
上記外観検査装置の検査能力の評価値とすることを特徴
とする。
"Means for Solving the Problems" The evaluation method of the first invention is for an appearance inspection device that photographs an object to be inspected and inspects defects on the surface of the object based on the data of the photographed image. In the inspection ability evaluation method, the first detection is the probability that the appearance inspection device can detect an image of each gray scale based on image data including all the gray scales for each predetermined gray scale. A probability is calculated, and a first appearance probability, which is a probability that the defect appears, is calculated based on data of an image of the object to be inspected having a defect on the surface for each gray level, and the first detection is performed. A first sum, which is the sum of the products of the probability and the first appearance probability, for each of the gray scales, is calculated over all the gray scales, and A second sum, which is the sum of appearance probabilities, is calculated over all the gray scales, the first sum is divided by the second sum, and the result is calculated based on the image data of the object to be inspected. Calculate the probability of appearance of image data having grayscale gradations of the object, and calculate the probability of appearance of image data having gradations of gradation of the object, and calculate the probability of appearance of image data having gradations of gradation of the object, and calculate the probability of appearance of image data that includes all degrees of the feature amount for each degree of the feature amount of the image representing the image characteristics of the object to be inspected. A second detection probability is calculated, which is a probability that the appearance inspection device can detect an image with each degree of the feature amount, and the defect appears for each degree of the feature amount based on the image data of the object to be inspected. A second appearance probability is calculated, which is a probability that The distribution probability is calculated, and the division value is added to the product of the probability of appearance of image data having grayscale gradation of the object to be inspected and the distribution probability, and the added value is calculated as It is characterized by being an evaluation value.

第2の発明の評価装置は、被検査物を撮影し上記撮影さ
れた画像のデータに基づいて被検査物の表面における欠
陥を検査する外観検査装置のための検査能力評価装置に
おいて、所定の濃淡度階調毎にすべての上記濃淡度階調
を含む画像データに基づいて上記外観検査装置が各濃淡
度階調の画像を検出できる確率である第1の検出確率を
演算する第1の演算手段と、上記濃淡度階調毎に表面に
欠陥がある上記被検査物の画像のデータに基づいて上記
欠陥が出現する確率である第1の出現確率を演算する第
2の演算手段と、上記第1の検出確率と上記第1の出現
確率との上記各濃淡度階調毎の積の総和である第1の総
和をすべての上記濃淡度階調にわたって演算する第3の
演算手段と、上記各濃淡度階調の上記第1の出現確率の
総和である第2の総和をすべての上記濃淡度階調にわた
って演算する第4の演算手段と、上記第1の総和を上記
第2の総和で除算する第5の演算手段と、上記被検査物
の画像データに基づいて上記被検査物の濃淡度階調を有
する画像データの出現確率を演算する第6の演算手段と
、上記被検査物の画像の特徴を表す画像の特徴量の各度
合い毎に上記特徴量のすべての度合いを含む画像データ
に基づいて上記外観検査装置か上記特徴量の各度合いの
画像を検出できる確率である第2の検出確率を演算する
第7の演算手段と、上記被検査物の画像データに基づい
て上記特徴量の各度合い毎に上記欠陥が出現する確率で
ある第2の出現確率を演算する第8の演算手段と、上記
第2の検出確率と上記第2の出現確率に基づいて上記被
検査物の画像データが有する上記特徴量の度合い以外の
上記特徴量の度合いの分布確率を演算する第9の演算手
段と、上記被検査物の濃淡度階調を有する画像データの
出現確率と上記分布確率との積に上記第5の演算手段に
よって演算された除算値を加算する第10の演算手段と
を備え、上記第10の演算手段で得られた加算値を上記
外観検査装置の検査能力の評価値とすることを特徴とす
る。
The evaluation device of the second invention is an inspection ability evaluation device for an appearance inspection device that photographs an object to be inspected and inspects defects on the surface of the object based on the data of the photographed image. a first calculation means for calculating a first detection probability that is a probability that the appearance inspection apparatus can detect an image of each density gradation based on image data including all of the density gradations for each density gradation; and a second calculation means for calculating a first appearance probability, which is a probability that the defect will appear, based on data of an image of the object to be inspected having a defect on its surface for each density gradation; 1 detection probability and the first appearance probability for each of the gray scales; a fourth calculation means for calculating a second sum which is the sum of the first appearance probabilities of the gray scales over all the gray scales; and dividing the first sum by the second sum. a sixth calculation means for calculating the probability of appearance of image data having gradations of the to-be-inspected object based on the image data of the to-be-inspected object; a second detection which is the probability that the visual inspection device can detect an image with each degree of the feature amount based on image data including all the degrees of the feature amount of the image representing the feature; a seventh calculation means for calculating a probability; and an eighth calculation means for calculating a second appearance probability, which is a probability that the defect will appear for each degree of the feature amount, based on the image data of the object to be inspected. and a ninth calculation means for calculating the distribution probability of the degree of the feature amount other than the degree of the feature amount that the image data of the object to be inspected has based on the second detection probability and the second appearance probability. and a tenth calculation means for adding the division value calculated by the fifth calculation means to the product of the appearance probability of the image data having the density gradation of the object to be inspected and the distribution probability, The present invention is characterized in that the added value obtained by the tenth calculation means is used as an evaluation value of the inspection ability of the visual inspection device.

第3の発明の評価方法は、被検査物を撮影し上記撮影さ
れた画像のデータに基づいて被検査物の表面における欠
陥を検査する外観検査装置のための検査能力評価方法に
おいて、所定の濃淡度階調毎にすべての上記濃淡度階調
を含む画像データに基づいて上記外観検査装置が各濃淡
度階調の画像を検出できる確率である第1の検出確率を
演算し、上記濃淡度階調毎に表面に欠陥がある上記被検
査物の画像のデータに基づいて上記欠陥が出現する確率
である第1の出現確率を演算し、上記第1の検出確率と
上記第1の出現確率と上記被検査物に対する各濃淡度階
調毎の予め決められた第1の重要度との上記各濃淡度階
調毎の積の総和である第1の総和をすべての上記濃淡度
階調にわたって演算し、上記第1の出現確率と上記第1
の重要度との上記各濃淡度階調毎の積の総和である第2
の総和をすべての上記濃淡度階調にわたって演算し、上
記第1の総和を上記第2の総和で除算し、上記被検査物
の画像データに基づいて上記被検査物の濃淡度階調を有
する画像データの出現確率を演算し、上記被検査物の画
像の特徴を表す画像の特徴量の各度合い毎に上記特徴量
のすべての度合いを含む画像データに基づいて上記外観
検査装置が上記特徴量の各度合いの画像を検出できる確
率である第2の検出確率を演算し、上記被検査物の画像
データに基づいて上記特徴量の各度合い毎に上記欠陥が
出現する確率である第2の出現確率を演算し、上記第2
の検出確率と上記第2の出現確率と上記被検査物に対し
て上記特徴量の各度合い毎に予め決められた第2の重要
度に基づいて上記被検査物の画像データが有する上記特
徴量の度合い以外の上記特徴量の度合いの分布確率を演
算し、上記被検査物の濃淡度階調を有する画像データの
出現確率と上記分布確率との積に上記除算値を加算し、
上記加算値を上記外観検査装置の検査能力の評価値とす
ることを特徴とする。
The evaluation method of the third invention is an inspection ability evaluation method for an appearance inspection device that photographs an object to be inspected and inspects defects on the surface of the object based on the data of the image taken. A first detection probability, which is a probability that the appearance inspection device can detect an image of each density gradation, is calculated based on image data including all of the above-mentioned density gradations for each density gradation, and A first appearance probability, which is the probability that the defect will appear, is calculated based on the image data of the object to be inspected that has a defect on its surface for each key, and the first detection probability and the first appearance probability are calculated. A first sum, which is the sum of the products of each of the gray scales with a predetermined first importance level for each gray scale of the object to be inspected, is calculated over all of the gray scales. and the first appearance probability and the first
The second value, which is the sum of the products of each gray level, with the importance of
is calculated over all the gray scales, the first sum is divided by the second sum, and the gray scale of the object to be inspected is obtained based on the image data of the object to be inspected. The appearance inspection device calculates the appearance probability of the image data, and calculates the feature amount based on the image data including all degrees of the feature amount for each degree of the feature amount of the image representing the feature of the image of the object to be inspected. A second detection probability, which is the probability of detecting an image with each degree of Calculate the probability and calculate the second
The feature amount that the image data of the object to be inspected has based on the detection probability of calculating the distribution probability of the degree of the feature amount other than the degree of , and adding the division value to the product of the probability of appearance of the image data having the gray scale of the object to be inspected and the distribution probability,
It is characterized in that the above-mentioned added value is used as an evaluation value of the inspection ability of the above-mentioned appearance inspection device.

第4の発明の評価装置は、被検査物を撮影し上記撮影さ
れた画像のデータに基づいて被検査物の表面における欠
陥を検査する外観検査装置のための検査能力評価装置に
おいて、所定の濃淡度階調毎にすべての上記濃淡度階調
を含む画像データに基づいて上記外観検査装置が各濃淡
度階調の画像を検出できる確率である第1の検出確率を
演算する第1の演算手段と、上記濃淡度階調毎に表面に
欠陥がある上記被検査物の画像のデータに基づいて上記
欠陥が出現する確率である第1の出現確率を演算する第
2の演算手段と、上記第1の検出確率と上記第1の出現
確率と上記被検査物に対する各濃淡度階調毎の予め決め
られた第1の重要度との上記各濃淡度階調毎の積の総和
である第1の総和をすべての上記濃淡度階調にわたって
演算する第3の演算手段と、上記第1の出現確率と上記
第1の重要度との上記各濃淡度階調毎の積の総和である
第2の総和をすべての上記濃淡度階調にわたって演算す
る第4の演算手段と、上記第1の総和を上記第2の総和
で除算する第5の演算手段と、上記被検査物の画像デー
タに基づいて上記被検査物の濃淡度階調を有する画像デ
ータの出現確率を演算する第6の演算手段と、上記被検
査物の画像の特徴を表す画像の特徴量の各度合い毎に上
記特徴量のすべての度合いを含む画像データに基づいて
上記外観検査装置が上記特徴量の各度合いの画像を検出
できる確率である第2の検出確率を演算する第7の演算
手段と、上記被検査物の画像データに基ついて上記特徴
量の各度合い毎に上記欠陥が出現する確率である第2の
出現確率を演算する第8の演算手段と、上記第2の検出
確率と上記第2の出現確率と上記被検査物に対して上記
特徴量の各度合い毎に予め決められた第2の重要度に基
づいて上記被検査物の画像データが有する上記特徴量の
度合い以外の上記特徴量の度合いの分布確率を演算する
第9の演算手段と、上記被検査物の濃淡度階調を有する
画像データの出現確率と上記分布確率との積に上記第5
の演算手段によって演算された除算値を加算する第1O
の演算手段とを備え、上記第1Oの演算手段によって演
算された加算値を上記外観検査装置の検査能力の評価値
とすることを特徴とする。
An evaluation device according to a fourth aspect of the invention is an inspection ability evaluation device for an appearance inspection device that photographs an object to be inspected and inspects defects on the surface of the object based on the data of the photographed image. a first calculation means for calculating a first detection probability that is a probability that the appearance inspection apparatus can detect an image of each density gradation based on image data including all of the density gradations for each density gradation; and a second calculation means for calculating a first appearance probability, which is a probability that the defect will appear, based on data of an image of the object to be inspected having a defect on its surface for each density gradation; 1 detection probability, the first appearance probability, and a predetermined first importance level for each density gradation for the object to be inspected. a third calculating means for calculating the sum of the values over all the gray levels, and a second calculating means that is the sum of the products of the first appearance probability and the first importance level for each gray level. based on the image data of the object to be inspected; a sixth calculating means for calculating the probability of appearance of image data having gradations of gradations of the object to be inspected; a seventh calculation means for calculating a second detection probability that is a probability that the appearance inspection apparatus can detect an image of each degree of the feature amount based on image data including all the degrees; and an image of the object to be inspected. eighth calculation means for calculating a second appearance probability that is the probability that the defect will appear for each degree of the feature amount based on the data; and the second detection probability, the second appearance probability, and the second appearance probability. distribution probability of the degree of the feature amount other than the degree of the feature amount that the image data of the object to be inspected has based on a second degree of importance predetermined for each degree of the feature amount for the object to be inspected; and the fifth calculation means for calculating the product of the appearance probability of the image data having the gray scale of the object to be inspected and the distribution probability.
The first O which adds the division value calculated by the calculating means of
, and the added value calculated by the first O calculation means is used as an evaluation value of the inspection ability of the visual inspection apparatus.

第5の発明の評価方法は、被検査物を撮影し上記撮影さ
れた画像のデータに基づいて被検査物の表面における欠
陥を検査する外観検査装置のための検査能力評価方法に
おいて、所定の濃淡度階調毎に表面に欠陥がある上記被
検査物の画像のデータに基づいて上記欠陥が出現する確
率である第1の出現確率を演算し、予め決められ上記外
観検査装置が各濃淡度階調の画像を検出できる確率であ
る第1の検出確率と上記第1の出現確率との上記各濃淡
度階調毎の積の総和である第1の総和をすべての上記濃
淡度階調にわたって演算し、上記各濃淡度階調の上記第
1の出現確率の総和である第2の総和をすべての上記濃
淡度階調にわたって演算し、上記第1の総和を上記第2
の総和で除算し、上記被検査物の画像データに基づいて
上記被検査物の濃淡度階調を有する画像データの出現確
率を演算し、上記被検査物の画像データに基づいて上記
被検査物の画像の特徴を表す画像の特徴量の各度合い毎
に上記欠陥が出現する確率である第2の出現確率を演算
し、予め決められ上記外観検査装置が上記特徴量の各度
合いの画像を検出できる確率である第2の検出確率と上
記第2の出現確率に基づいて上記被検査物の画像データ
か有する上記特徴量の度合い以外の上記特徴量の度合い
の分布確率を演算し、上記被検査物の濃淡度階調を有す
る画像データの出現確率と上記分布確率との積に上記除
算値を加算し、上記加算値を上記外観検査装置の検査能
力の評価値とすることを特徴とする。
The evaluation method of the fifth invention is an inspection ability evaluation method for an appearance inspection device that photographs an object to be inspected and inspects defects on the surface of the object based on the data of the photographed image. A first appearance probability, which is the probability that the defect will appear, is calculated based on the data of the image of the object to be inspected that has a defect on its surface for each gray scale, Calculate a first summation, which is the sum of the products of the first detection probability, which is the probability of detecting the gray scale image, and the first appearance probability, for each of the gray scale levels, over all the gray scale levels. Then, a second sum, which is the sum of the first appearance probabilities of each of the gray scales, is calculated over all the gray scales, and the first sum is calculated as the second sum of the first appearance probabilities for each gray scale.
Based on the image data of the object to be inspected, calculate the appearance probability of image data having gradations of gradation of the object to be inspected, A second appearance probability, which is the probability that the defect will appear, is calculated for each degree of the feature amount of the image representing the feature of the image, and the appearance inspection device detects an image with each degree of the feature amount determined in advance. Based on the second detection probability, which is the probability of occurrence, and the second appearance probability, a distribution probability of the degree of the feature other than the degree of the feature that the image data of the object to be inspected is calculated, and The present invention is characterized in that the above-mentioned division value is added to the product of the appearance probability of image data having the gray scale of the object and the above-mentioned distribution probability, and the above-mentioned added value is used as an evaluation value of the inspection ability of the above-mentioned appearance inspection apparatus.

゛第6の発明の評価装置は、被検査物を撮影し上記撮影
された画像のデータに基づいて被検査物の表面における
欠陥を検査する外観検査装置のための検査能力評価装置
において、所定の濃淡度階調毎に表面に欠陥がある上記
被検査物の画像のデータに基づいて上記欠陥が出現する
確率である第1の出現確率を演算する第1の演算手段と
、予め決められ上記外観検査装置が各濃淡度階調の画像
を検出できる確率である第1の検出確率と上記第1の出
現確率との上記各濃淡度階調毎の積の総和である第1の
総和をすべての上記濃淡度階調にわたって演算する第2
の演算手段と、上記各濃淡度階調の上記第1の出現確率
の総和である第2の総和をすべての上記濃淡度階調にわ
たって演算する第3の演算手段と、上記第1の総和を上
記第2の総和で除算する第4の演算手段と、上記被検査
物の画像データに基づいて上記被検査物の濃淡度階調を
有する画像データの出現確率を演算する第5の演算手段
と、上記被検査物の画像データに基づいて上記被検査物
の画像の特徴を表す画像の特徴1の各度合い毎に上記欠
陥が出現する確率である第2の出現確率を演算する第6
の演算手段と、予め決められ上記外観検査装置が上記特
徴量の各度合いの画像を検出できる確率である第2の検
出確率と上記第2の出現確率に基づいて上記被検査物の
画像データが有する上記特徴量の度合い以外の上記特徴
量の度合いの分布確率を演算する第7の演算手段と、上
記被検査物の濃淡度階調を有する画像データの出現確率
と上記分布確率との積に上記第4の演算手段によって演
算された除算値を加算する第8の演算手段とを備え、上
記第8の演算手段で得られた加算値を上記外観検査装置
の検査能力の評価値とすることを特徴とする。
゛The evaluation device of the sixth invention is an inspection ability evaluation device for an appearance inspection device that photographs an object to be inspected and inspects defects on the surface of the object based on the data of the photographed image. a first calculation means that calculates a first appearance probability that is a probability that the defect will appear based on data of an image of the object to be inspected that has a defect on its surface for each density gradation; The first sum, which is the sum of the products of the first detection probability, which is the probability that the inspection device can detect an image of each density gradation, and the first appearance probability, for each density gradation, is calculated by The second calculation is performed over the above gray scale.
a third calculation means for calculating a second sum which is the sum of the first appearance probabilities for each of the gray scales over all the gray scales; a fourth calculation means for dividing by the second summation; and a fifth calculation means for calculating the appearance probability of image data having grayscale gradations of the object to be inspected based on the image data of the object to be inspected. , a sixth step of calculating a second appearance probability, which is a probability that the defect appears for each degree of image feature 1 representing the feature of the image of the object to be inspected, based on the image data of the object to be inspected;
image data of the object to be inspected is calculated based on the second detection probability, which is a predetermined probability that the appearance inspection device can detect an image of each degree of the feature amount, and the second appearance probability. seventh calculating means for calculating the distribution probability of the degree of the feature amount other than the degree of the feature amount having the feature amount; and an eighth calculation means for adding the division value calculated by the fourth calculation means, and the added value obtained by the eighth calculation means is used as an evaluation value of the inspection ability of the appearance inspection device. It is characterized by

第7の発明の評価方法は、被検査物を撮影し上記撮影さ
れた画像のデータに基づいて被検査物の表面における欠
陥を検査する外観検査装置のための検査能力評価方法に
おいて、所定の濃淡度階調毎に表面に欠陥がある上記被
検査物の画像のデータに基づいて上記欠陥が出現する確
率である第1の出現確率を演算し、予め決められ上記外
観検査装置が各濃淡度階調の画像を検出できる確率であ
る第1の検出確率と上記第1の出現確率と上記被検査物
に対する各濃淡度階調毎の予め決められた第1の重要度
との上記各濃淡度階調毎の積の総和である第1の総和を
すべての上記濃淡度階調にわたって演算し、上記第1の
出現確率と上記第1の重要度との上記各濃淡度階調毎の
積の総和である第2の総和をすべての上記濃淡度階調に
わたって演算し、上記第1の総和を上記第2の総和で除
算し、上記被検査物の画像データに基づいて上記被検査
物の濃淡度階調を有する画像データの出現確率を演算し
、上記被検査物の画像データに基づいて上記被検査物の
画像の特徴を表す画像の特徴量の各度合い毎に上記欠陥
が出現する確率である第2の出現確率を演算し、予め決
められ上記外観検査装置が上記特徴量の各度合いの画像
を検出できる確率である第2の検出確率と上記第2の出
現確率と上記被検査物に対して上記特徴量の各度合い毎
に予め決められた第2の重要度に基づいて上記被検査物
の画像データが有する上記特徴量の度合い以外の上記特
徴量の度合いの分布確率を演算し、上記被検査物の濃淡
度階調を有する画像データの出現確率と上記分布確率と
の積に上記除算値を加算し、上記加算値を上記外観検査
装置の検査能力の評価値とすることを特徴とする。
The evaluation method of the seventh invention is an inspection ability evaluation method for an appearance inspection apparatus that photographs an object to be inspected and inspects defects on the surface of the object based on the data of the photographed image. A first appearance probability, which is the probability that the defect will appear, is calculated based on the data of the image of the object to be inspected that has a defect on its surface for each gray scale, a first detection probability that is a probability of detecting a gray scale image; a first appearance probability; and a predetermined first importance level for each gray scale for the object to be inspected; A first sum, which is the sum of the products for each tone, is calculated over all the gray scales, and the sum of the products of the first appearance probability and the first importance level for each gray scale is calculated. A second summation is calculated over all the gray scales, the first summation is divided by the second summation, and the grayscale of the object to be inspected is calculated based on the image data of the object to be inspected. The probability of appearance of image data having gradations is calculated, and the probability that the defect appears for each degree of the feature amount of the image representing the feature of the image of the object to be inspected is calculated based on the image data of the object to be inspected. A second probability of appearance is calculated, and a second detection probability that is a predetermined probability that the appearance inspection device can detect an image with each degree of the feature amount, a second probability of appearance, and a second probability of occurrence of the object to be inspected are calculated. calculate the distribution probability of the degree of the feature amount other than the degree of the feature amount that the image data of the object to be inspected has based on a second degree of importance determined in advance for each degree of the feature amount, and The division value is added to the product of the appearance probability of image data having gradations of gradation of the object to be inspected and the distribution probability, and the added value is used as an evaluation value of the inspection ability of the appearance inspection device. do.

第8の発明の評価装置は、被検査物を撮影し上記撮影さ
れた画像のデータに基ついて被検査物の表面における欠
陥を検査する外観検査装置のための検査能力評価装置に
おいて、所定の濃淡度階調毎に表面に欠陥がある上記被
検査物の画像のデータに基づいて上記欠陥が出現する確
率である第1の出現確率を演算する第1の演算手段と、
予め決められ上記外観検査装置が各濃淡度階調の画像を
検出できる確率である第1の検出確率と上記第1の出現
確率と上記被検査物に対する各濃淡度階調毎の予め決め
られた第1の重要度との上記各濃淡度階調毎の積の総和
である第1の総和をすべての上記濃淡度階調にわたって
演算する第2の演算手段と、上記第1の出現確率と上記
第1の重要度との上記各濃淡度階調毎の積の総和である
第2の総和をすべての上記濃淡度階調にわたって演算す
る第3の演算手段と、上記第1の総和を上記第2の総和
で除算する第4の演算手段と、上記被検査物の画像デー
タに基づいて上記被検査物の濃淡度階調を有する画像デ
ータの出現確率を演算する第5の演算手段と、上記被検
査物の画像データに基づいて上記被検査物の画像の特徴
を表す画像の特徴量の各度合い毎に上記欠陥が出現する
確率である第2の出現確率を演算する第6の演算手段と
、予め決められ上記外観検査装置が上記特徴量の各度合
いの画像を検出できる確率である第2の検出確率と上記
第2の出現確率と上記被検査物に対して上記特徴量の各
度合い毎に予め決められた第2の重要度に基づいて上記
被検査物の画像データが有する上記特徴量の度合い以外
の上記特徴量の度合いの分布確率を演算する第7の演算
手段と、上記被検査物の濃淡度階調を有する画像データ
の出現確率と上記分布確率との積に上記第4の演算手段
によって演算された除算値を加算する第8の演算手段と
を備え、上記第8の演算手段によって演算された加算値
を上記外観検査装置の検査能力の評価値とすることを特
徴とする。
An evaluation device according to an eighth aspect of the present invention is an inspection ability evaluation device for an appearance inspection device that photographs an object to be inspected and inspects defects on the surface of the object based on the data of the photographed image. a first calculation means that calculates a first appearance probability that is a probability that the defect will appear based on data of an image of the object to be inspected that has a defect on its surface for each degree gradation;
a first detection probability that is predetermined and is a probability that the appearance inspection device can detect an image of each gray scale, the first appearance probability, and a predetermined probability for each gray scale for the inspected object. a second calculation means for calculating a first sum, which is a sum of the products of the first importance level and each of the gray scale levels, over all the gray scale levels; and the first probability of occurrence and the a third calculating means for calculating a second sum, which is the sum of the products of each gray scale with the first importance level, over all the gray scales; 2, a fifth calculation means for calculating the probability of appearance of image data having a gray scale of the object to be inspected based on the image data of the object to be inspected; a sixth calculation means for calculating a second appearance probability, which is a probability that the defect will appear, for each degree of the feature amount of the image representing the feature of the image of the object to be inspected, based on the image data of the object to be inspected; , a second detection probability that is predetermined and is a probability that the appearance inspection device can detect an image with each degree of the feature amount, the second appearance probability, and each degree of the feature amount for the object to be inspected. a seventh calculating means for calculating the distribution probability of the degree of the feature amount other than the degree of the feature amount that the image data of the object to be inspected has based on a second degree of importance determined in advance; and an eighth calculation means for adding a division value calculated by the fourth calculation means to the product of the appearance probability of image data having gray scale of the object and the distribution probability, and the eighth calculation means It is characterized in that the added value calculated by the means is used as an evaluation value of the inspection ability of the visual inspection device.

さらに、上記各発明において、上記画像の特徴量か、被
検査物の表面における汚れ欠陥の面積に対応する画素数
又は被検査物の周囲長さであることを特徴とする。
Furthermore, each of the above inventions is characterized in that the feature amount of the image is the number of pixels corresponding to the area of a dirt defect on the surface of the object to be inspected, or the circumference length of the object to be inspected.

[作用] 第1と第2の発明によれば、被検査物を撮影し上記撮影
された画像のデータに基づいて被検査物の表面における
欠陥を検査する外観検査装置のための検査能力評価方法
において、所定の濃淡度階調毎にすべての上記濃淡度階
調を含む画像データに基づいて上記外観検査装置が各濃
淡度階調の画像を検出できる確率である第1の検出確率
を演算し、上記濃淡度階調毎に表面に欠陥がある上記被
検査物の画像のデータに基づいて上記欠陥が出現する確
率である第1の出現確率を演算し、上記第1の検出確率
と上記第1の出現確率との上記各濃淡度階調毎の積の総
和である第1の総和をすべての上記77!淡度階調にわ
たって演算し、上記各濃淡度階調の上記第1の出現確率
の総和である第2の総和をすべての上記濃淡度階調にわ
たって演算し、上記第1の総和を上記第2の総和で除算
し、上記被検査物の画像データに基づいて上記被検査物
の濃淡度階調を有する画像データの出現確率を演算し、
上記被検査物の画像の特徴を表す画像の特徴量の各度合
い毎に上記特徴量のすべての度合いを含む画像データに
基づいて上記外観検査装置が上記特徴量の各度合いの画
像を検出できる確率である第2の検出確率を演算し、上
記被検査物の画像データに基づいて上記特徴量の各度合
い毎に上記欠陥が出現する確率である第2の出現確率を
演算し、上記第2の検出確率と上記第2の出現確率に基
づいて上記被検査物の画像データが有する上記特徴量の
度合い以外の上記特徴量の度合いの分布確率を演算し、
上記被検査物の濃淡度階調を有する画像データの出現確
率と上記分布確率との積に上記除算値を加算し、上記加
算値を上記外観検査装置の検査能力の評価値とする。こ
れによって、上記外観検査装置の検査能力を評価する評
価値を、被検査物に付着した汚れ等の欠陥の濃淡度階調
が被検査物の表面の濃淡度階調と同一であっても、適確
にかつ迅速に得ることができる。
[Operation] According to the first and second inventions, there is an inspection ability evaluation method for an appearance inspection device that photographs an object to be inspected and inspects defects on the surface of the object based on data of the photographed image. In this step, a first detection probability, which is a probability that the appearance inspection device can detect an image of each density gradation, is calculated based on image data including all of the density gradations for each predetermined density gradation. , calculate a first appearance probability, which is the probability that the defect will appear, based on the data of the image of the object to be inspected having a defect on the surface for each density gradation, and calculate the first appearance probability, which is the probability that the defect will appear, and calculate the first probability of occurrence and the first detection probability. The first sum, which is the sum of the products of each gray scale with the appearance probability of 1, is calculated by adding all the 77! A second sum, which is the sum of the first appearance probabilities of each of the lightness and lightness levels, is calculated over all the lightness and lightness levels, and the first sum is calculated as the second summation, which is the sum of the first appearance probabilities for each of the lightness and lightness levels. and calculate the appearance probability of image data having gray scale of the object to be inspected based on the image data of the object to be inspected;
Probability that the visual inspection device can detect an image with each degree of the feature amount based on image data including all degrees of the feature amount for each degree of the feature amount of the image representing the feature of the image of the inspected object. A second detection probability is calculated, which is the probability that the defect appears for each degree of the feature amount, based on the image data of the inspection object, and a second detection probability is calculated, which is the probability that the defect appears for each degree of the feature amount, Calculating the distribution probability of the degree of the feature amount other than the degree of the feature amount that the image data of the inspection object has based on the detection probability and the second appearance probability,
The above-mentioned division value is added to the product of the appearance probability of the image data having the grayscale gradation of the above-mentioned object to be inspected and the above-mentioned distribution probability, and the above-mentioned added value is used as an evaluation value of the inspection ability of the above-mentioned appearance inspection apparatus. As a result, the evaluation value for evaluating the inspection ability of the above-mentioned appearance inspection apparatus can be adjusted to can be obtained accurately and quickly.

また第3と第4の発明によれば、被検査物を撮影し上記
撮影された画像のデータに基ついて被検査物の表面にお
ける欠陥を検査する外観検査装置のための検査能力評価
方法において、所定の濃淡度階調毎にすべての上記濃淡
度階調を含む画像データに基ついて上記外観検査装置が
各濃淡度階調の画像を検出できる確率である第1の検出
確率を演算し、上記濃淡度階調毎に表面に欠陥がある上
記被検査物の画像のデータに基づいて上記欠陥が出現す
る確率である第1の出現確率を演算し、上記第1の検出
確率と上記第1の出現確率と上記被検査物に対する各濃
淡度階調毎の予め決められた第1の重要度との上記各濃
淡度階調毎の積の総和である第1の総和をすべての上記
濃淡度階調にわたって演算し、上記第1の出現確率と上
記第1の重要度との上記各濃淡度階調毎の積の総和であ
る第2の総和をすべての上記濃淡度階調にわたって演算
し、上記第1の総和を上記第2の総和で除算し、上記被
検査物の画像データに基づいて上記被検査物の濃淡度階
調を有する画像データの出現確率を演算し、上記被検査
物の画像の特徴を表す画像の特徴量の各度合い毎に上記
特徴量のすべての度合いを含む画像データに基づいて上
記外観検査装置が上記特徴量の各度合いの画像を検出で
きる確率である第2の検出確率を演算し、上記被検査物
の画像データに基づいて上記特徴量の各度合い毎に上記
欠陥が出現する確率である第2の出現確率を演算し、上
記第2の検出確率と上記第2の出現確率と上記被検査物
に対して上記特徴量の各度合い毎に予め決められた第2
の重要度に基づいて上記被検査物の画像データが有する
上記特徴量の度合い以外の上記特徴量の度合いの分布確
率を演算し、上記被検査物の濃淡度階調を有する画像デ
ータの出現確率と上記分布確率との積に上記除算値を加
算し、上記加算値を上記外観検査装置の検査能力の評価
値とする。これによって、上記外観検査装置の検査能力
を評価する評価値を、被検査物に付着した汚れ等の欠陥
の濃淡度階調が被検査物の表面の〆農淡度階調と同一で
あっても、適確にかつ迅速に得ることができる。
Further, according to the third and fourth inventions, an inspection ability evaluation method for an appearance inspection apparatus that photographs an object to be inspected and inspects defects on the surface of the object based on data of the photographed image, A first detection probability, which is a probability that the appearance inspection device can detect an image of each density gradation, is calculated based on image data including all of the density gradations for each predetermined density gradation, and A first appearance probability, which is the probability that the defect will appear, is calculated based on the image data of the object to be inspected that has a defect on its surface for each density gradation, and the first probability of occurrence and the first probability of occurrence of the defect are calculated. The first sum, which is the sum of the products of the appearance probability and the predetermined first importance level for each density gradation for the object to be inspected, for each density gradation is calculated for all the density gradations. A second sum, which is the sum of the products of the first appearance probability and the first importance level for each of the gray levels, is calculated over all the gray levels, and the The first sum is divided by the second sum, and the probability of appearance of image data having the density gradation of the object to be inspected is calculated based on the image data of the object to be inspected. a second detection which is the probability that the appearance inspection device can detect an image with each degree of the feature amount based on image data including all degrees of the feature amount for each degree of the feature amount of the image representing the feature; A probability is calculated, and a second appearance probability, which is the probability that the defect appears for each degree of the feature amount, is calculated based on the image data of the object to be inspected, and the second appearance probability is calculated based on the image data of the object to be inspected. The probability of appearance of and the predetermined second
Calculate the distribution probability of the degree of the feature amount other than the degree of the feature amount that the image data of the object to be inspected has based on the importance of The above-mentioned division value is added to the product of and the above-mentioned distribution probability, and the above-mentioned added value is used as an evaluation value of the inspection ability of the above-mentioned appearance inspection apparatus. As a result, the evaluation value for evaluating the inspection ability of the above-mentioned appearance inspection device can be determined by determining whether the gray scale of defects such as dirt attached to the inspected object is the same as the gray scale of the surface of the inspected object. can also be obtained accurately and quickly.

さらに、第5と第6の発明によれば、被検査物を撮影し
上記撮影された画像のデータに基づいて被検査物の表面
における欠陥を検査する外観検査装置のための検査能力
評価方法において、所定の濃淡度階調毎に表面に欠陥が
ある上記被検査物の画像のデータに基づいて上記欠陥が
出現する確率である第1の出現確率を演算し、予め決め
られ上記外観検査装置が各濃淡度階調の画像を検出てき
る確率である第1の検出確率と上記第1の出現確率との
上記各濃淡度階調毎の積の総和である第1の総和をすべ
ての上記濃淡度階調にわたって演算し、上記各濃淡度階
調の上記第1の出現確率の総和である第2の総和をすべ
ての上記濃淡度階調にわたって演算し、上記第1の総和
を上記第2の総和で除算し、上記被検査物の画像データ
に基づいて上記被検査物の濃淡度階調を有する画像デー
タの出現確率を演算し、上記被検査物の画像データに基
づいて上記被検査物の画像の特徴を表す画像の特徴量の
各度合い毎に上記欠陥が出現する確率である第2の出現
確率を演算し、予め決められ上記外観検査装置が上記特
徴量の各度合いの画像を検出できる確率である第2の検
出確率と上記第2の出現確率に基づいて上記被検査物の
画像データが有する上記特徴量の度合い以外の上記特徴
量の度合いの分布確率を演算し、上記被検査物の濃淡度
階調を有する画像データの出現確率と上記分布確率との
積に上記除算値を加算し、上記加算値を上記外観検査装
置の検査能力の評価値とする。これによって、上記外観
検査装置の検査能力を評価する評価値を、被検査物に付
着した汚れ等の欠陥の濃淡度階調か被検査物の表面の濃
淡度階調と同一であっても、適確にかつ迅速に得ること
ができる。
Furthermore, according to the fifth and sixth inventions, in an inspection ability evaluation method for an appearance inspection apparatus that photographs an object to be inspected and inspects defects on the surface of the object based on data of the photographed image. , a first appearance probability, which is the probability that the defect will appear, is calculated based on the data of the image of the object to be inspected having a defect on the surface for each predetermined gradation level, and the predetermined appearance inspection apparatus The first sum, which is the sum of the products of the first detection probability, which is the probability of detecting an image of each density gradation, and the first appearance probability, for each density gradation, is calculated for all the gradations. A second sum, which is the sum of the first appearance probabilities of each of the gray levels, is calculated over all of the gray levels, and the first sum is calculated as the second total. The appearance probability of the image data having the gray scale of the object to be inspected is calculated based on the image data of the object to be inspected. A second appearance probability, which is the probability that the defect will appear, is calculated for each degree of the feature amount of the image representing the feature of the image, and is determined in advance so that the appearance inspection device can detect images with each degree of the feature amount. Based on the second detection probability, which is a probability, and the second appearance probability, a distribution probability of the degree of the feature amount other than the degree of the feature amount that the image data of the object to be inspected has is calculated, and The above-mentioned division value is added to the product of the appearance probability of the image data having the density gradation and the above-mentioned distribution probability, and the above-mentioned added value is used as an evaluation value of the inspection ability of the above-mentioned visual inspection apparatus. As a result, even if the evaluation value for evaluating the inspection ability of the above-mentioned appearance inspection device is the same as the gradation level of defects such as dirt attached to the object to be inspected or the gradation level of the gradation level of the surface of the object to be inspected, can be obtained accurately and quickly.

またさらに、第7と第8の発明によれば、被検査物を撮
影し上記撮影された画像のデータに基づいて被検査物の
表面における欠陥を検査する外観検査装置のための検査
能力評価方法において、所定の濃淡度階調毎に表面に欠
陥がある上記被検査物の画像のデータに基づいて上記欠
陥が出現する確率である第1の出現確率を演算し、予め
決められ上記外観検査装置が各濃淡度階調の画像を検出
できる確率である第1の検出確率と上記第1の出現確率
と上記被検査物に対する各濃淡度階調毎の予め決められ
た第1の重要度との上記各濃淡度階調毎の積の総和であ
る第1の総和をすべての上記濃淡度階調にわたって演算
し、上記第1の出現確率と上記第1の重要度との上記各
濃淡度階調毎の積の総和である第2の総和をすべての上
記濃淡度階調にわたって演算し、上記第1の総和を上記
第2の総和で除算し、上記被検査物の画像データに基つ
いて上記被検査物の濃淡度階調を有する画像データの出
現確率を演算し、上記被検査物の画像データに基づいて
上記被検査物の画像の特徴を表す画像の特徴量の各度合
い毎に上記欠陥が出現する確率である第2の出現確率を
演算し、予め決められ上記外観検査装置が上記特徴量の
各度合いの画像を検出できる確率である第2の検出確率
と上記第2の出現確率と上記被検査物に対して上記特徴
量の各度合い毎に予め決められた第2の重要度に基つい
て上記被検査物の画像データが有する上記特徴量の度合
い以外の上記特徴量の度合いの分布確率を演算し、上記
被検査物の濃淡度階調を有する画像データの出現確率と
上記分布確率との積に上記除算値を加算し、上記加算値
を上記外観検査装置の検査能力の評価値とする。これに
よって、上記外観検査装置の検査能力を評価する評価値
を、被検査物に付着した汚れ等の欠陥の濃淡度階調が被
検査物の表面の濃淡度階調と同一であっても、適確にか
つ迅速に得ることができる。
Furthermore, according to the seventh and eighth inventions, an inspection ability evaluation method for an appearance inspection apparatus that photographs an object to be inspected and inspects defects on the surface of the object based on data of the photographed image. , a first appearance probability, which is a probability that the defect will appear, is calculated based on data of an image of the object to be inspected having a defect on the surface for each predetermined gray level, and a first appearance probability is determined in advance, and the first appearance probability is determined in advance by the appearance inspection apparatus. is the probability that an image of each gray level can be detected; the first appearance probability; and a predetermined first importance level for each gray level for the object to be inspected. A first sum, which is the sum of the products for each of the gray scales, is calculated over all the gray scales, and the first summation of the first appearance probability and the first importance level is calculated for each gray scale. A second sum, which is a sum of products for each, is calculated over all the gray levels, and the first sum is divided by the second sum, and the result is calculated based on the image data of the test object. The appearance probability of image data having gradations of gradation of the inspection object is calculated, and the defect is calculated for each degree of the image feature amount representing the image feature of the inspection object based on the image data of the inspection object. A second appearance probability, which is a probability of appearance, is calculated, and a second detection probability, which is a predetermined probability that the appearance inspection device can detect an image with each degree of the feature amount, the second appearance probability, and the above. distribution probability of the degree of the feature amount other than the degree of the feature amount that the image data of the object to be inspected has based on a second degree of importance predetermined for each degree of the feature amount for the object to be inspected; , and add the division value to the product of the probability of appearance of the image data having the density gradation of the object to be inspected and the distribution probability, and use the added value as the evaluation value of the inspection ability of the appearance inspection device. do. As a result, the evaluation value for evaluating the inspection ability of the above-mentioned appearance inspection apparatus can be adjusted to can be obtained accurately and quickly.

[実施例] 第1図は本発明の一実施例である外観検査機能と該外観
検査機能の検査能力を評価するための評価装置(以下、
外観検査及び評価装置という。)のブロック図である。
[Example] Fig. 1 shows a visual inspection function and an evaluation device (hereinafter referred to as
It is called appearance inspection and evaluation equipment. ) is a block diagram of.

第1図において、この外観検査及び評価装置は、被検査
物10に照明用の光を照射する投光装置20と、ビデオ
カメラ11とアナログ・ディジタル変換(以下、A/D
変換という。)回路12を有する撮像装置100と、中
央演算処理装置1、リードオンリメモリ (以下、RO
Mという。)2、ランダムアクセスメモリ(以下、RA
Mという。)3、キーボード4及びデイスプレィ装置5
を有する画像処理装置200を備え、上記画像処理装置
200は、撮像装置100を用いて被検査物の表面の汚
れ欠陥を検査する検査モードと、上記撮像装置100及
び他の撮像装置の汚れ欠陥の検査能力を評価する第1と
第2の評価モードを備えたことを特徴としている。
In FIG. 1, this visual inspection and evaluation apparatus includes a light projecting device 20 that irradiates an object to be inspected with illumination light, a video camera 11, and an analog-to-digital converter (hereinafter referred to as A/D converter).
It's called conversion. ) An imaging device 100 having a circuit 12, a central processing unit 1, and a read-only memory (hereinafter referred to as RO
It's called M. ) 2. Random access memory (hereinafter referred to as RA)
It's called M. ) 3, keyboard 4 and display device 5
The image processing device 200 has an inspection mode for inspecting dirt defects on the surface of an object to be inspected using the imaging device 100, and an inspection mode for inspecting dirt defects on the imaging device 100 and other imaging devices. It is characterized by having first and second evaluation modes for evaluating inspection ability.

第1図において、ビデオカメラ11は、投光装置20か
ら光が照射された被検査物10を撮影した後、撮影した
1フイ一ルド分(1画面分)の2次元濃淡画像の情報を
含む白黒のテレビ信号をA/D変換回路12に出力する
。A/D変換回路12は、人力されたテレビ信号の画像
を16階調でA/D変換し、変換された画像データを画
像処理装置200のフ不りタ30を介してCPUIに出
力する。ここで、A/D変換回路12から出力される画
像データは、1画面の各画素が16階調で表現された階
調(以下、濃淡度階調といい、該濃淡度階調を最も淡い
白色を示す1から最も濃い黒色を示す16までの自然数
で示す。)のデータからなり、また、上記1画面の画像
データは1000画素の画像データからなる。
In FIG. 1, the video camera 11 photographs the inspected object 10 irradiated with light from the light projector 20, and then includes information on a two-dimensional grayscale image of one field (one screen). A black and white television signal is output to the A/D conversion circuit 12. The A/D conversion circuit 12 performs A/D conversion on the manually inputted television signal image in 16 gradations, and outputs the converted image data to the CPUI via the image processing unit 30 of the image processing device 200. Here, the image data output from the A/D conversion circuit 12 has a gradation in which each pixel of one screen is expressed in 16 gradations (hereinafter referred to as gradation, and the gradation is the lightest gradation). The image data of one screen consists of image data of 1000 pixels.

CPU1は、画像処理装置200内の動作を制御する制
御回路であり、該CPUIには、ROM2とRAM3と
デイスプレィ装置5が接続される。
The CPU 1 is a control circuit that controls operations within the image processing device 200, and the ROM 2, RAM 3, and display device 5 are connected to the CPU 1.

ROM2は、画像処理装置200における上記検査モー
ド並びに上記第1及び第2の評価モードの制御を行うた
めのシステムプログラムを格納し、RAM3は、上記C
PUIのワークエリアとして用いられるとともにCPU
Iに入力された画像データを一時的に格納する。デイス
プレィ装置5は、CPUIに人力された画像データ及び
RAM3に一時的に格納された画像データの各画像を表
示するとともにCPU1で演算された検査結果及び評価
結果のデータを表示する。
The ROM 2 stores a system program for controlling the inspection mode and the first and second evaluation modes in the image processing device 200, and the RAM 3 stores a system program for controlling the inspection mode and the first and second evaluation modes in the image processing device 200.
Used as a work area for the PUI and as a CPU
The image data input to I is temporarily stored. The display device 5 displays each image of the image data manually input to the CPUI and the image data temporarily stored in the RAM 3, and also displays the data of the inspection results and evaluation results calculated by the CPU 1.

以上のように構成された外観検査及び評価装置の動作に
ついて、検査モード、第1の評価モード、及び第2の評
価モードに分けて説明する。
The operation of the visual inspection and evaluation apparatus configured as described above will be explained separately in the inspection mode, the first evaluation mode, and the second evaluation mode.

(1)検査モード まず、表面に汚れ欠陥の無い被検査物をビデオカメラ1
1を用いて撮影し、該撮影した画像の画像データ(以下
、正常画像の画像データという。)がA/D変換回路1
2及びCPIJ lを介してRAM3に格納されるとと
もに、デイスプレィ装置5に表示される。上記正常画像
の画像データは、1画面分の各画素における濃淡度階調
のデータから構成される。次いで、CPUIは、上記R
AM3に格納された正常画像の画像データが上記各濃淡
度階調の画素を含んでいるか否かを検出し、上記検出さ
れた上記各濃淡度階調に対応する計16個のデータ(以
下、正常画像の階調データという。)をRAM3に格納
する。
(1) Inspection mode First, the object to be inspected, which has no dirt or defects on its surface, is
1, and the image data of the photographed image (hereinafter referred to as image data of a normal image) is transferred to the A/D conversion circuit 1.
2 and CPIJ l, the data is stored in the RAM 3 and displayed on the display device 5. The image data of the above-mentioned normal image is composed of gray scale data for each pixel for one screen. Then, the CPUI executes the above R
It is detected whether the image data of the normal image stored in AM3 includes pixels of each of the above-mentioned gray scales, and a total of 16 pieces of data (hereinafter referred to as (referred to as gradation data of a normal image) is stored in the RAM 3.

次いで、被検査物の表面における欠陥の検査時において
、被検査物をビデオカメラlを用いて撮影し、該撮影し
た画像の画像データ(以下、検査画像の画像データとい
う。)がA/D変換回路12及びCPUIを介してRA
M3に格納されるとともに、デイスプレィ装置5に表示
される。次いで、CPU1は、上記RAM3に格納され
た検査画像の画像データか各濃淡度階調の画素を含んで
いるか否かを検出した後、検出された上記各濃淡度階調
に対応する計16個のデータ(以下、検査画像の階調デ
ータという。)と、上記RAM3に格納された正常画像
の階調データとを比較し、検査画像の階調データにおい
て正常画像の階調データに無い階調が含まれているか否
かを判別する。
Next, when inspecting for defects on the surface of the object to be inspected, the object to be inspected is photographed using a video camera l, and the image data of the photographed image (hereinafter referred to as image data of the inspection image) is A/D converted. RA via circuit 12 and CPUI
It is stored in M3 and displayed on display device 5. Next, the CPU 1 detects whether or not the image data of the inspection image stored in the RAM 3 includes pixels of each density gradation, and then detects a total of 16 pixels corresponding to each detected density gradation. data (hereinafter referred to as the gradation data of the inspection image) and the gradation data of the normal image stored in the RAM 3, and the gradation data of the inspection image that does not exist in the gradation data of the normal image is detected. Determine whether it is included.

ここで、もし検査画像の階調データにおいて正常画像の
階調データに無い階調が含まれているとき、CPUIは
、正常画像の階調データに無い濃淡度階調のデータをデ
イスプレィ装置5に出力して表示させ、一方、もし検査
画像の階調データに正常画像の階調データに無い濃淡度
階調が含まれていないとき、cpuiは、汚れ欠陥が無
いと判断して、”汚れ欠陥なし″とデイスプレィ装置5
に出力して表示させる。
Here, if the gradation data of the inspection image includes a gradation that is not included in the gradation data of the normal image, the CPUI sends the data of the gradation gradation that is not included in the gradation data of the normal image to the display device 5. On the other hand, if the gradation data of the inspection image does not include gradation levels that are not present in the gradation data of the normal image, the CPU determines that there is no dirt defect and displays it as a "stain defect". None'' and display device 5
output and display it.

さらに、CPUIは、検査画像の階調データにおいて正
常画像の階調データに無い各濃淡度階調(以下、特定の
濃淡度階調という。)についての上記正常画像の画像デ
ータと上記検査画像の画像データのそれぞれの画素数を
計数する。
Furthermore, in the gradation data of the inspection image, the CPUI uses the image data of the normal image and the inspection image for each gradation gradation (hereinafter referred to as a specific gradation gradation) that is not in the gradation data of the normal image. Count the number of pixels in each image data.

この特定の濃淡度階調についての画素数の計数は例えば
、RAM3に格納された正常画像の画像データと検査画
像の画像データに対して、上記特定の濃淡度を有する画
素を例えば白色の画像データにデータ変換し、一方、上
記特定の濃淡度階調以外の画素を黒色の画像データにデ
ータ変換し、上記正常画像の画像データと上記検査画像
の画像データについて上記白色の画素を計数することに
よって得られる。この手順は、従来の画像処理技術にお
いて、”画像データの2値化“として公知である。
Counting the number of pixels for this specific gray level is performed by counting pixels having the specific gray level, for example, into white image data for the image data of the normal image and the image data of the inspection image stored in the RAM 3. On the other hand, by converting pixels other than the specific gray scale to black image data, and counting the white pixels for the image data of the normal image and the image data of the inspection image. can get. This procedure is known in conventional image processing technology as "binarization of image data."

上記計数された特定の濃淡度階調についての検査画像の
画像データにおける画素数が、上記計数された特定の濃
淡度階調についての正常画像の画像データにおける画素
数を中心として予め決定される画素数の許容範囲内にあ
るか否かがCPUIによって判別される。上記各特定の
濃淡度階調において、上記許容範囲にある場合は上記検
査物に汚れがないものとして、cputは”汚れなし”
をデイスプレィ装置5に表示させる。一方、上記各特定
の濃淡度階調のいずれかにおいて上記許容範囲内にない
ならば、CPUIは”汚れ有り”と上記許容範囲内にな
い上記特定の濃淡度階調のデータをデイスプレィ装置5
に表示させる。
A pixel in which the number of pixels in the image data of the inspection image for the specific gradation level counted is predetermined around the number of pixels in the image data of the normal image for the specific gradation gradation counted above. It is determined by the CPUI whether or not the number is within the allowable range. If each specific density gradation is within the above tolerance range, it is assumed that there is no dirt on the inspection object, and cput is "no dirt".
is displayed on the display device 5. On the other hand, if any of the specific gray scales is not within the allowable range, the CPU will display the data of the specific gray scale that is not within the allowable range as "stained" to the display device 5.
to be displayed.

以上の検査モードにおいては、検査画像の画像データに
含まれない検査画像の画像データの各特定の濃淡度階調
について行っているが、各特定の濃淡度階調のうち予め
決定された濃淡度階調について行うようにしてもよい。
In the above inspection mode, each specific gray scale of the image data of the test image that is not included in the image data of the test image is performed. The process may also be performed for gradations.

上述の16階調の濃淡度階調の画像による外観検査及び
評価装置を用いて、薄黄色の地の平面板上に赤色の社章
マークを印刷した被検出物表面に付着した汚れを検査す
る外観検査装置を評価した場合の実験例について以下に
説明する。ここで、上記汚れには、薄鼠色から黒色まで
の各汚れがあるとする。
Using the above-mentioned visual inspection and evaluation device using images with 16 gradations of gradation, dirt adhering to the surface of the object to be detected, which has a red company emblem printed on a flat plate with a light yellow background, is inspected. An experimental example in which a visual inspection device was evaluated will be described below. Here, it is assumed that the above-mentioned stains include stains ranging from pale gray to black.

上記ビデオカメラ11を用いて表面に汚れのない被検査
物を撮影した正常画像では、薄黄色の地色は最も明るい
ので淡色の鼠色の画像となり、社章マークはそれよりや
や濃い鼠色の画像となり、例えば地色の濃淡度階調は4
〜6、マークの濃淡度階調は10〜12である。
In a normal image taken using the video camera 11 of an object to be inspected with no dirt on its surface, the light yellow ground color is the brightest, resulting in a light gray image, and the company emblem is a slightly darker gray color. For example, the gradation of the ground color is 4.
~6, the gray scale of the mark is 10~12.

これに対して表面が汚れている被検査物の画像(以下、
汚れ画像という。)で、例えばその表面に墨の付着した
場合には、真黒に近い画像の濃淡度階調が例えば15と
なる。また、逆に、上記被検査物の表面に白い粉末が付
着した場合には、その画像の濃淡度階調は2となる。こ
れらの場合には、上述の検査装置による汚れの検出は比
較的容易である。即ち、正常画像では4〜6と10〜1
2の濃淡度階調のみであるが、汚れ画像では正常画像の
階調の他に、鼠色による汚れの画像である15の濃淡度
階調や、白い粉末の画像である2の濃淡度階調も含まれ
る。従って、上述のように、正常画像か汚れ画像かは、
4〜6及び10〜12の濃淡度階調のみの画像か、それ
以外の階調も含まれている画像かを検査し、もし、含ま
れていれば、汚れ画像であるとして検出することができ
る。
In contrast, images of objects to be inspected with dirty surfaces (hereinafter referred to as
It is called a dirty image. ), and for example, if ink is attached to the surface, the gradation level of the nearly pure black image will be, for example, 15. Conversely, when white powder adheres to the surface of the object to be inspected, the gray scale of the image becomes 2. In these cases, it is relatively easy to detect dirt using the above-mentioned inspection device. That is, in normal images, 4-6 and 10-1
However, in addition to the gradation of the normal image, the soiled image has a gradation of 15, which is a gray stain image, and a gradation of 2, which is an image of white powder. It also includes the tone. Therefore, as mentioned above, whether it is a normal image or a dirty image,
It is checked whether the image has only gray scales of 4 to 6 and 10 to 12, or whether it contains other gray scales, and if it does, it can be detected as a dirty image. can.

この場合における、濃淡度階調に対する該装置の検出確
率と汚れ欠陥の出現確率の関係を示すデータを第2図に
示す。
FIG. 2 shows data showing the relationship between the detection probability of the apparatus and the appearance probability of dirt defects with respect to the density gradation in this case.

ここで、上記検出確率とは、上記検査装置固有の特性で
あって、正常画像に含まれる各濃淡度階調における検出
確率は0となり、一方、汚れ画像を確実に検出できる場
合の各濃淡度階調における検出確率は1となる。もし、
上記検査装置が完全でなく、ある確率で当該濃淡度階調
の画像を検出しない場合の上記検出確率は1未満となる
。上記外観検査及び評価装置において、検出確率は撮像
装置100の性能に依存する。
Here, the detection probability is a characteristic unique to the inspection device, and the detection probability at each gray level included in a normal image is 0, while the detection probability at each gray level when a dirty image can be reliably detected. The detection probability at each gradation is 1. if,
If the inspection device is not perfect and does not detect an image of the gray scale with a certain probability, the detection probability is less than 1. In the above visual inspection and evaluation device, the detection probability depends on the performance of the imaging device 100.

また、汚れ欠陥の出現確率とは、同一のプロセスで製造
された例えば100以上の多数の被検査物において生じ
る汚れ欠陥全体の中で、各濃淡度階調における汚れ欠陥
が発生する確率である。なお、各濃淡度階調の上記出現
確率の総和はlである。
Further, the appearance probability of a stain defect is the probability that a stain defect at each density gradation will occur among all stain defects that occur in a large number of inspected objects, for example, 100 or more manufactured by the same process. Note that the sum of the above-mentioned appearance probabilities of each gray level is l.

上述のように、正常画像に4〜6と10〜12の濃淡度
階調の画像が含まれているので、第2図の(A)に示す
ように、4〜6と10〜12の濃淡度階調の画像の汚れ
欠陥を上記検査装置によって検出することができない。
As mentioned above, the normal image includes images with gradations of 4 to 6 and 10 to 12, so as shown in (A) in Figure 2, the images with gradations of 4 to 6 and 10 to 12 are included. The above-mentioned inspection apparatus cannot detect dirt defects in grayscale images.

また、汚れ欠陥の画像が、第2図の(B)に示すように
、2ないし15の濃淡度階調のみであるとき、該装置か
正常に働く限り、上述のような汚れ欠陥のある被検査物
を100%検出できる(以下、検査装置の検査能が10
0%であるという。)ことが期待できる。
Furthermore, when the image of the stain defect has only 2 to 15 gray scales, as shown in FIG. Can detect 100% of the test object (hereinafter referred to as 100% detection capability of the test device)
It is said that it is 0%. ) can be expected.

次に、汚れ欠陥がマークに使用する赤色の印刷インクが
板の表面にこぼれて生じるとする。この場合は、第3図
(B)に示すように、汚れ画像はマークと同じ11の階
調の画像となるから、該汚れ欠陥を、上記濃淡度階調に
よる識別によって検出できない。即ち、上記検査装置で
は上記汚れ欠陥を検出することができない。従って、該
検査装置の検査能は0%となる。
Now suppose that a smudge defect is caused by the red printing ink used for the mark spilling onto the surface of the board. In this case, as shown in FIG. 3(B), the stain image is an image with the same 11 gradations as the mark, so the stain defect cannot be detected by the discrimination based on the above-mentioned density gradation. That is, the above-mentioned inspection device cannot detect the above-mentioned dirt defect. Therefore, the inspection ability of the inspection device is 0%.

さらに−船釣な場合として、第4図(B)に示すように
、汚れ欠陥が上記2例以外の階調をも含む場合について
述べる。この場合には、tqれ欠陥の画像が1〜16の
どの階調の汚れ欠陥が出現するかは統計的な確率現象と
なる。ここで、上述の従来例の濃淡度階調の識別による
検査装置を用いる限り、社章の地色及びマークと同じ4
〜6及び10〜12の濃淡度階調の画像を汚れ欠陥とし
て検出することができない。
Furthermore, as a case of boat fishing, a case will be described in which the dirt defect includes gradations other than the above two examples, as shown in FIG. 4(B). In this case, which gradation of the stain defect from 1 to 16 appears in the image of the tq defect becomes a statistical probability phenomenon. Here, as long as the above-mentioned conventional inspection device based on gradation discrimination is used, the background color and mark of the company emblem are the same as 4.
Images with gray scales of ~6 and 10~12 cannot be detected as stain defects.

従って、上記検査装置と被検査物を含む検査システムの
第1の検査能に、(i)を次式で表す。
Therefore, (i) is expressed by the following equation for the first inspection ability of the inspection system including the inspection device and the object to be inspected.

1:1 f +”F (i)・G(i)di −fl・・F・(i)・G (i)di  ”” 1b
)ここで、F(i)はjの濃淡度階調における検査装置
の上記検出確率であり、G(i)はiの濃淡度階調にお
ける検査装置の上記汚れ欠陥の出現確率である。また、
F r(i)はiの濃淡度階調における理想的な検査装
置の上記検出確率であって、■である。
1:1 f +”F (i)・G(i)di −fl・・F・(i)・G (i)di ”” 1b
) Here, F(i) is the detection probability of the inspection device at the gray scale of j, and G(i) is the probability of appearance of the stain defect on the inspection device at the gray scale of i. Also,
F r (i) is the detection probability of the ideal inspection device at the gray level of i, and is ■.

すなわち、検査装置と被検査物を含む検査システムの第
1の検査能に、として、(1a)式で示すように、各濃
淡度階調における上記検査装置の検出確率とその濃淡度
階調における汚れ欠陥が出現する出現確率との積をとり
、各濃淡度階調における積の値をすべての濃淡度階調に
わたって総和を求めた値と、すべての濃淡度階調におい
て検出確率が1である理想的な検査装置において上記総
和を求めた値と比の値を用いる。ここで、調査する濃淡
度階調の数を無限に大きくする場合、上記検査システム
の検査能に1として、(1b)式で示すように、各濃淡
度階調における上記検査装置の検出確率とその濃淡度階
調における汚れ欠陥が出現する出現確率との積をとり、
各濃淡度階調における積の値をすべての濃淡度階調にわ
たって積分した値と、上記理想的な検査装置において上
記積分値を求めた値と比の値を用いる。
In other words, the first inspection capability of the inspection system including the inspection device and the object to be inspected is, as shown in equation (1a), the detection probability of the inspection device at each gray scale and the detection probability at that gray scale. The detection probability is 1 for all gradation levels and the value obtained by summing the product value at each gradation level over all gradation levels. In an ideal inspection device, the value obtained by calculating the above-mentioned sum and the value of the ratio are used. Here, if the number of gradations to be investigated is infinitely increased, the detection probability of the inspection device at each gradation is calculated by setting the inspection performance of the inspection system to 1, as shown in equation (1b). Take the product of the appearance probability of a dirt defect at that density gradation,
A value obtained by integrating the product value at each gray scale over all gray scales, and a value obtained by calculating the integral value using the ideal inspection apparatus are used as a ratio value.

上記検査能に、の指標を用いれば、例えば検査装置の性
能が良好で、被検査物の汚れの濃淡度階調か社章の地色
やマークの濃淡度階調と重ならない場合は1に近い値と
なるが、各濃淡度階調における検査装置自体の検出確率
が1より小さかったり、汚れ欠陥の濃淡度階調が地色や
マークの濃淡度階調と重なる確率が多くなれば、その検
査能に1の値は小さくなり、Oに近くなる。即ち、この
検査能に、の指標を目安とすることにより、その検査シ
ステムが検査しようとする被検査物に対して本質的にと
の程度の検査能力をもっているかを表示することができ
る。
If we use the index for the above inspection performance, for example, if the performance of the inspection device is good and the gradation of dirt on the object to be inspected does not overlap with the background color of the company emblem or the gradation of gradation of the mark, then it will be 1. The values will be close to each other, but if the detection probability of the inspection device itself at each gradation level is smaller than 1, or if the probability that the gradation level of a dirt defect overlaps with the gradation level of the background color or mark increases, then The value of 1 for the inspection ability becomes small and close to 0. That is, by using the index of this inspection ability as a guideline, it is possible to indicate whether the inspection system essentially has the inspection ability of the inspection object to be inspected.

次に、上述の第1の検査能に1の指標では、汚れ欠陥が
被検査物の製品に与える影響が汚れ欠陥の濃度に関係せ
ず、一定値の1であるとしている。
Next, in the above-mentioned first inspection performance index of 1, it is assumed that the influence of a stain defect on a product to be inspected is a constant value of 1, regardless of the concentration of the stain defect.

しかしながら、現実の場合には、例えば白っぽい汚れが
あった場合の製品としてのイメージの劣化度は、黒い汚
れがあった場合の製品としてイメージの劣化度より小さ
い等の評価が行なわれることが多い。従って、この要素
をも加味した評価がより妥当である。
However, in real cases, for example, the degree of deterioration of the image of the product when there is whitish dirt is often evaluated as being smaller than the degree of deterioration of the image of the product when there is black dirt. Therefore, an evaluation that also takes this factor into account is more appropriate.

従って、上記検査装置と被検査物を含む検査システムの
第2の検査能に*(i)を次式で表す。
Therefore, *(i) is expressed as the second inspection ability of the inspection system including the inspection device and the object to be inspected by the following equation.

1に こで、H(i)はiの濃淡度階調の汚れ欠陥が被検査物
に与える製品としてのイメージの劣化度を数値化した値
(以下、重要度という。)であり、該重要度の値が大き
いほど、汚れ欠陥か被検査物に与えるイメージダウンが
大きく、該濃淡度階調の重要度が高い。
1, H(i) is a numerical value (hereinafter referred to as the degree of importance) of the degree of deterioration of the image of the product to be inspected due to the stain defect of the gray scale of i; The larger the value of the degree, the greater the image deterioration caused by dirt defects on the inspected object, and the higher the importance of the gradation.

すなわち、検査装置と被検査物を含む検査システムの第
2の検査能に、は、(2a)式及び(2b)式で示すよ
うに、(la)式及び(1b)式における各分子及び分
母にそれぞれ上記重要度を乗じた式となっている。ここ
で、重要度H(i)は、各被検査物の価値、性能、対象
物を扱う集団の価値感、製造工程等によって、予め決定
される。
In other words, the second inspection capability of the inspection system including the inspection device and the test object is as shown in equations (2a) and (2b), where each numerator and denominator in equations (la) and (1b) are is multiplied by the above importance level. Here, the degree of importance H(i) is determined in advance based on the value and performance of each object to be inspected, the sense of value of the group handling the object, the manufacturing process, and the like.

従って、この検査能に、の指標を目安とすることにより
、その検査システムが検査しようとする被検査物に対し
て本質的にどの程度の検査能力をもっているかを、被検
査物に与える製品としてのイメージの劣化度を示す重要
度を考慮して表示することができる。
Therefore, by using the index of this inspection ability as a guide, we can determine how much inspection ability the inspection system essentially has for the inspection object as a product that gives the inspection object. It is possible to display the image in consideration of the degree of importance indicating the degree of deterioration of the image.

さらに、上記(1a)式を濃淡度階調で分割された部分
数列の和として、例えば次式のように表される。
Furthermore, the above equation (1a) can be expressed as the sum of partial sequences divided by gradation, for example, as in the following equation.

1=1 なお、上記(1b)式を濃淡度階調で分割された部分積
分の和として、(3)式と同様に表すことができる。
1=1 Note that the above equation (1b) can be expressed similarly to equation (3) as a sum of partial integrals divided by gradation.

第1表は、ある検査装置の検出確率F (i)及び出現
確率G (i)を示す表である。この検査装置の第1の
検査能に、(i)を(2a)式及び(3)式に基づいて
求めると、K、 (i) −0,81となる。
Table 1 is a table showing the detection probability F (i) and the appearance probability G (i) of a certain inspection device. When (i) is calculated based on equations (2a) and (3) for the first testing ability of this testing device, it becomes K, (i) -0,81.

ここで、濃淡度階調i=5及び11に対して検出確率F
 (i) −〇であるので、上記(3)式の右辺の第2
項及び第4項はOとなる。すなわち、発明が解決しよう
とする課題の欄において述べたように、被検査物の表面
の濃淡度階調と同一の濃淡度階調を有する汚れが上記被
検査物の表面に付着した場合においては無条件に検出確
率F (i)はOとなり、上記で定義した第1及び第2
の検査能に、、に、には上記濃淡度階調における評価が
含まれていない。本実施例においては、以下、濃淡度階
調i=5と11のうち上述の実験例における社章のマー
クと同一の濃淡度階調1=11を有する汚れに対して、
上記検査モードで述べた特定の濃淡度階調(この実験例
では、濃淡度階調1=11である。)における画素数に
関する評価を加える。この画素数は公知の通り、上記特
定の濃淡度階調における画素の面積に対応する。
Here, the detection probability F for gray scales i=5 and 11
(i) −〇, so the second on the right side of equation (3) above is
term and the fourth term are O. That is, as stated in the section of the problem to be solved by the invention, when stains having the same gradation of gradation as the gradation of gradation of the surface of the object to be inspected adhere to the surface of the object to be inspected, The detection probability F (i) is unconditionally O, and the first and second
The inspection performance of , , , does not include evaluation at the above-mentioned density gradation. In this example, below, for the stain having the same gradation 1=11 as the company emblem mark in the above experimental example among the gradation gradation i=5 and 11,
An evaluation regarding the number of pixels at a specific gray scale (in this experimental example, gray scale 1=11) described in the above inspection mode is added. As is well known, this number of pixels corresponds to the area of the pixel at the above-mentioned specific gray level.

このとき、多少の計測上の誤差を含めて、上記マークの
面積に対応する画素数は常に、401から500とし、
これを外れる画素数の画像はマーク以外のもの、すなわ
ち汚れの画像であるとする。
At this time, including some measurement errors, the number of pixels corresponding to the area of the mark is always 401 to 500,
It is assumed that an image with a number of pixels outside of this range is an image other than a mark, that is, an image of dirt.

マークと同一の濃淡度階調」1の画像に現れる汚れの画
素数の子め決定された各範囲毎に出現する確率を計算す
ると、第5図を得る。次いで、濃淡度階調11の画像に
対して上記検査装置が有する検出確率がほぼ一様で、し
かも画素数の大きさか変化しても一定値でかつ確実に検
出することができる。つまり、検出確率が第5図のごと
く1であるならば、上述の従来例の検査装置のように、
濃淡度階調のみで汚れ欠陥を検査する検査装置では、検
出不可能な濃淡度階調11の汚れの画像であっても、そ
れが上記画素数が401ないし500画素以外の面積を
有する画像であれば、汚れ欠陥として検出することがで
きる。従って、上記特定の濃淡度階調11において上記
マーク以外の画素数における上記画素数jを関数とする
検査能Ka(i・u、 j)を次式のように定義する。
Figure 5 is obtained by calculating the probability that dirt will appear in each determined range of the number of pixels of dirt that appears in an image with the same gradation level of 1 as the mark. Next, the detection probability of the above-mentioned inspection apparatus for an image of 11 gray scales is almost uniform, and even if the number of pixels changes, it can be detected reliably and at a constant value. In other words, if the detection probability is 1 as shown in FIG.
In an inspection device that inspects dirt defects using only grayscale gradations, even if it is an undetectable dirt image with grayscale 11, it is not possible to detect it even if it is an image with an area other than 401 to 500 pixels. If so, it can be detected as a stain defect. Therefore, the inspection ability Ka (i.u, j), which is a function of the number of pixels j at the number of pixels other than the mark at the specific gray level 11, is defined as follows.

・・・(4) ここで、P(j)は濃淡度階調11における画素数jに
おける検査装置の検出確率であり、Q<j)は濃淡度階
調11における画素数jにおける検査装置の上記画素数
の出現確率であり、Pr (j)は濃淡度階調11にお
ける画素数Jにおける理想的な検査装置の上記検出確率
であって、値は1である。
...(4) Here, P(j) is the detection probability of the inspection device at the number of pixels j at the gradation level 11, and Q<j) is the detection probability of the inspection device at the number of pixels j at the gradation level 11. Pr (j) is the probability of occurrence of the above number of pixels, and Pr (j) is the detection probability of an ideal inspection device for the number J of pixels at the gray level 11, and has a value of 1.

すなわち、上記検査能K a(i=11. j)として
(4)式で示すように、濃淡度階調11における各画素
数jにおける上記検査装置の検出確率とその画素数jに
おける汚れ欠陥が出現する出現確率との積をとり、各画
素数jにおける積の値を上記マークの画素数以外の画素
数にわたって総和を求めた値と、すべての画素数jにお
いて検出確率が1である理想的な検査装置において上記
総和を求めた値との比の値を用いる。ここで、調査を行
う画素数jを無限に大きくする場合、上記総和の式で表
される(4)式を積分式で表すことができる。
That is, as shown in equation (4) for the inspection ability K a (i = 11. The value obtained by summing the product value for each pixel number j over the number of pixels other than the number of pixels of the mark above, and the ideal detection probability where the detection probability is 1 for all pixel numbers j. The value of the ratio of the above sum to the value obtained using a suitable inspection device is used. Here, if the number j of pixels to be investigated is infinitely increased, equation (4) expressed by the above summation equation can be expressed by an integral equation.

さらに、上記(4)式で表される検査能Kaに ′濃淡
度階調11の濃淡画像が出現する出現確率Sである次式
を乗じ、 +=1 またさらに、上記乗算結果Ka−3に上記第1の検査能
に1を加えて、上記検査装置の検査能力の評価を示す第
3の検査能に3を次式で表す。
Furthermore, the inspection ability Ka expressed by the above equation (4) is multiplied by the following equation, which is the appearance probability S of the appearance of a grayscale image with gradation level 11: +=1 Furthermore, the above multiplication result Ka-3 is By adding 1 to the above-mentioned first inspection ability, 3 is expressed as the third inspection ability indicating the evaluation of the inspection ability of the above-mentioned inspection device using the following formula.

・・・ (6) さらに、上記検査能Ktと同様に、濃淡度階調iの汚れ
欠陥が被検査物に与える製品としてのイメージの劣化度
を数値化した重要度H(i)と、特定の濃淡度階調にお
ける上記画素数jを関数とする重要度R(j)を考慮1
5た第4の検査能に4は、上記(6)式の右辺の第1項
の分母及び分子にそれぞれ濃淡度階調iの関数である重
要度H(i)を乗じ、かつ上記(6)式の右辺の第2項
の乗算式の第2項の分母及び分子にそれぞれ、濃淡度階
調11における上記画素数jの関数である重要度R(j
)を乗じ、次式のようになる。
... (6) Furthermore, similar to the above inspection ability Kt, the importance level H(i), which quantifies the degree of deterioration of the image of the product caused by the dirt defect of the density gradation i on the inspected object, and the specific Considering the importance R(j) as a function of the number of pixels j in the gray scale of 1
4 is obtained by multiplying the denominator and numerator of the first term on the right side of the above equation (6) by the importance level H(i) which is a function of the density gradation i, and the above (6). ), the importance R(j
) to obtain the following formula.

・・・ (7) なお、以下に示す第1の評価モードにおいて上記第3の
検査能に3を用いて評価を行い、また、以下に示す第2
の評価モードにおいて上記第4の検査能に4を用いて評
価を行う。
... (7) In addition, in the first evaluation mode shown below, evaluation was performed using 3 for the third inspection ability, and also in the second evaluation mode shown below.
In the evaluation mode, evaluation is performed using 4 for the fourth inspection ability.

また、画素数jに依存する重要度R(j)は、上記重要
度H(i)と同様に、各被検査物の価値、性能、対象物
を扱う集団の価値感、製造工程等によって予め決定され
る。
In addition, the degree of importance R(j), which depends on the number of pixels j, is determined in advance based on the value and performance of each object to be inspected, the sense of value of the group handling the object, the manufacturing process, etc., similar to the degree of importance H(i) above. It is determined.

従って、上記第3と第4の検査能に3.に4の指標を目
安とすることにより、その検査ンステムが検査しようと
する被検査物に対して本質的にどの程度の検査能力を有
しているが否かを、被検査物の濃淡度階調と同一の汚れ
欠陥が上記被検査物の表面にある場合であっても、適正
に評価することができる。
Therefore, 3. By using index 4 as a guideline, you can determine whether or not the inspection system essentially has the ability to inspect the object to be inspected. Even if the same stain defect as the sample exists on the surface of the object to be inspected, it can be properly evaluated.

例えば、上記第3又は第4の検査能に3.に、が1に近
い程、より完成された検査システムといえるが、通常の
検査システムにおいては上記検査能に、、に、が例えば
0.4以上であれば、価値のある検査能力を有する検査
システムとされる。また、検査能に3.に4が例えば0
. 6以上の場合、さらに、価値の高い検査システムよ
なり、例えば0゜8以上では極めて価値の高い検査シス
テムといえる。
For example, 3. The closer , to 1 is, the more complete the inspection system is.However, in a normal inspection system, if , , and , are, for example, 0.4 or more, the inspection system has a valuable inspection ability. It is considered a system. In addition, 3. For example, 4 is 0
.. If it is 6 or more, it is a highly valuable inspection system, for example, if it is 0°8 or more, it can be said that it is an extremely valuable inspection system.

(2)第1の評価モード まず、上記撮像装置100の検出確率F (i)を求め
るために、16個のすべての濃淡度階調の画素を有する
画像(以下、基準画像という。)をビデオカメラ11を
用いて撮影し、該撮影した画像の画像データである基準
画像の画像データをA/D変換回路12及びCPUIを
介してRAM3に格納する。次いで、CPUIは、上記
RAM3に格納された基準画像の画像データが、各濃淡
度階調の画素を含んでいるか否かを検出し、検出された
計16個のデータである基準画像の階調データをRAM
3に格納する。
(2) First evaluation mode First, in order to obtain the detection probability F (i) of the imaging device 100, an image having pixels of all 16 gray scales (hereinafter referred to as a reference image) is A photograph is taken using the camera 11, and image data of a reference image, which is image data of the photographed image, is stored in the RAM 3 via the A/D conversion circuit 12 and the CPUI. Next, the CPU detects whether or not the image data of the reference image stored in the RAM 3 includes pixels of each gray scale, and detects the detected gray scale of the reference image, which is a total of 16 pieces of data. data to RAM
Store in 3.

次いで、上記の基準画像の階調データを求める手順を例
えば10回以上繰り返して行って、上記各濃淡度階調に
おける基準画像の階調データの平均値を、撮像装置10
0の検出確率F(i)としてRAM3に格納する。
Next, the procedure for obtaining the gradation data of the reference image described above is repeated, for example, 10 times or more, and the average value of the gradation data of the reference image at each of the gradation levels is determined by the imaging device 10.
It is stored in the RAM 3 as a detection probability F(i) of 0.

さらに、予め表面に汚れ欠陥の無い被検査物をビデオカ
メラIIを用いて撮影して、上記検査モードと同様に正
常画像の階調データを求め、RAM3に格納する。
Furthermore, an object to be inspected with no dirt or defects on its surface is photographed in advance using the video camera II, and gradation data of a normal image is determined in the same manner as in the above inspection mode and stored in the RAM 3.

次いで、汚れ欠陥のある被検査物をビデオカメラ11を
用いて撮影し、該撮影した画像の画像データ(以下、汚
れ画像の画像データという。)かA/D変換回路12及
びCPUIを介してRAM3に格納される。次いで、C
PUIは、上記RAM3に格納された汚れ画像の画像デ
ータが、各濃淡度階調の画素を含んでいるか否かを検出
した後、検出された計16個のデータ(以下、汚れ画像
の階調データという。)と、上記RAM3に格納された
正常画像の階調データとを比較し、汚れ画像の階調デー
タに正常画像の階調データに無い階調が含まれているか
否かを判別する。ここで、もし汚れ画像の階調データに
正常画像の階調データに無い濃淡度階調か含まれている
とき、cpulは、該濃淡度階調における汚れ出現デー
タを1とし、一方、もし汚れ画像の階調データに正常画
像の階調データに無い濃淡度階調が含まれていないとき
、CPUIは、該濃淡度階調における汚れ出現データを
Oとして、すへての濃淡度階調に対する計16個の汚れ
出現データをRAM3に格納する。
Next, the object to be inspected with the stain defect is photographed using the video camera 11, and the image data of the photographed image (hereinafter referred to as image data of the stain image) is stored in the RAM 3 via the A/D conversion circuit 12 and the CPUI. is stored in Then, C
After detecting whether or not the image data of the dirt image stored in the RAM 3 includes pixels of each gray scale, the PUI detects a total of 16 pieces of detected data (hereinafter referred to as the gray scale of the dirt image). ) is compared with the gradation data of the normal image stored in the RAM 3, and it is determined whether the gradation data of the dirty image includes gradations that are not included in the gradation data of the normal image. . Here, if the gradation data of the dirty image includes a gradation level that is not included in the gradation data of the normal image, cpul sets the dirt appearance data at the gradation level to 1; When the gradation data of an image does not include a gradation level that is not present in the gradation data of a normal image, the CPUI sets the dirt appearance data at the gradation level to O, and calculates the data for all gradation levels. A total of 16 pieces of dirt appearance data are stored in the RAM3.

次いで、上記の汚れ出現データを求める手順を、同一の
製造工程で製造されかつ表面に汚れ欠陥を有する被検査
物について例えば100個以上、繰り返して行った後、
上記各濃淡度階調における汚れ出現データの平均値を求
め、該平均値を上記被検査物に対する各濃淡度階調にお
ける汚れ欠陥の出現確率G(i)としてRAM3に格納
する。
Next, after repeating the above-described procedure for obtaining stain appearance data on, for example, 100 or more test objects manufactured in the same manufacturing process and having stain defects on the surface,
The average value of the stain appearance data in each of the gray scales is determined, and the average value is stored in the RAM 3 as the appearance probability G(i) of stain defects at each gray scale for the object to be inspected.

さらに、CPUIは、RAM3に格納された上記撮像装
置100の検出確率F (i)と汚れ欠陥の出現確率G
(i)を読み出して、上記(1a)式を用いて第1の検
査能に、を計算する。これによって、上記(6)式の右
辺の第1項の値を求めることができる。
Furthermore, the CPUI calculates the detection probability F (i) of the imaging device 100 stored in the RAM 3 and the appearance probability G of the dirt defect.
(i) is read out, and the first testability is calculated using the above equation (1a). As a result, the value of the first term on the right side of the above equation (6) can be determined.

さらに、ビデオカメラ11の撮影視野の中に、例えば1
0aI以上の所定数8個の汚れ欠陥がある社章である被
検査物を配置し、上記N個の被検査物を上記ビデオカメ
ラ11を用いて撮影する。該撮影した画像の画像データ
(以下、検査画像Nの画像データという。)がA/D変
換回路12及びCPU 1を介してRA M 3に格納
される。以上の手順を、例えば10回以上の整数M回に
わたって繰り返して行う。
Furthermore, within the field of view of the video camera 11, for example, one
Inspection objects having company emblems having a predetermined number of eight stain defects of 0aI or more are arranged, and the N inspection objects are photographed using the video camera 11. Image data of the photographed image (hereinafter referred to as image data of inspection image N) is stored in RAM 3 via A/D conversion circuit 12 and CPU 1. The above procedure is repeated, for example, an integer number M times of 10 or more.

次いで、CPUIは、上記RAM3に格納された上記M
個の検査画像Nの画像データに基づいて、各濃淡度階調
iにおける画素数を計数する。上記計数された画素数を
第3表に示す。この第3表は、各濃淡度階調iにおける
画素数の分布を示すとともに、例えばマークと同一の濃
淡度階調11における画素数jの分布を、第3表の濃淡
度階調11の欄における画素数のデータから得ることが
できる。すなわち、第3表から濃淡度階調11における
画素数jに関するデータを取り出して、第5表を作成す
ることができる。第5表においては、それぞれ5の画素
数毎に分割された画像データの分布を示しており、これ
により、上記(7)式の第2項の積における各画素数j
に対する画像データの出現確率Q(j)を求めることが
できる。
Next, the CPUI reads the M stored in the RAM3.
The number of pixels at each gray scale i is counted based on the image data of the test images N. Table 3 shows the number of pixels counted above. Table 3 shows the distribution of the number of pixels at each gray scale i, and also shows the distribution of the number j of pixels at gray scale 11, which is the same as the mark, in the column for gray scale 11 in Table 3. It can be obtained from the data on the number of pixels in . That is, by extracting the data regarding the number of pixels j at gradation level 11 from Table 3, Table 5 can be created. Table 5 shows the distribution of image data divided into 5 pixel numbers, and thereby each pixel number j in the product of the second term of the above equation (7)
The appearance probability Q(j) of the image data can be determined for the image data.

さらに、CPUIは、上記RAM3に格納された基準画
像の画像データと上記検査画像Nの画像データに基づい
て、上述の検出確率F (i)の算出と同様に、上記基
準画像の画像データにおける各画素数jにおける分布と
、上記検査画像Nの画像データにおける各画素数jにお
ける分布を比較することにより、各画素数jにおける検
出確率P(j)を求める。
Furthermore, based on the image data of the reference image stored in the RAM 3 and the image data of the inspection image N, the CPU The detection probability P(j) at each pixel number j is determined by comparing the distribution at each pixel number j with the distribution at each pixel number j in the image data of the inspection image N.

上記第3表における、上記社章のマークの濃淡度階調i
と同一の濃淡度階調、例えば11である濃淡度階調の各
データから、マーク1個の大きさに対応する画素数AO
とマークの数N個の積を減算して、修正されたデータ表
を、第4表に得る。
In Table 3 above, the gradation level i of the company emblem mark
From each data of the same gray scale, for example 11, the number of pixels AO corresponding to the size of one mark is calculated.
By subtracting the product of N and the number of marks, a modified data table is obtained in Table 4.

すなわち、この減算によって、第4表が、上記社章にお
けるマーク以外の汚れ欠陥のみのデータから構成される
。この第4表のデータから、例えば濃淡度階調iが11
における画像データの画素数とすべての濃淡度階調にお
ける画像データの画素数の比の値を求めることにより、
上記(6)式の右辺の積の左側の項の値である、濃淡度
階調11における汚れ欠陥の画像データの出現確率を求
めることができる。
That is, by this subtraction, Table 4 is constructed from data only on dirt defects other than the marks in the company emblem. From the data in Table 4, for example, the gray level i is 11
By finding the value of the ratio of the number of pixels of image data at and the number of pixels of image data at all gray scales,
The probability of appearance of the image data of the dirt defect at the gradation level 11, which is the value of the term on the left side of the product on the right side of the above equation (6), can be determined.

従って、以上求めたそれぞれの値を上記(6)式に代入
することにより、第3の検査能に3を求めることができ
る。CPUIは、上記演算された第3の検査能に3のデ
ータをデイスプレィ装置5に出力して表示させる。以上
で、第1の評価モードの動作が終了する。
Therefore, by substituting each value obtained above into the above equation (6), it is possible to obtain 3 as the third inspection ability. The CPUI outputs the data of 3 to the third testability calculated above to the display device 5 for display. This completes the operation of the first evaluation mode.

なお、例えば検査能に3が0. 4以上のときは該検査
システムの検査能力が所定以上あるとじて合格とし、一
方、検査能に3が0. 4未満のときは該検査システム
の検査能力が所定未満として不合格とする検査システム
の評価基準を上記検査能に3の計算の前に、予めキーボ
ード4から入力した後cputを介してRAM3に格納
し、上記検査能に3の計算後に、上記評価基準に従って
CPU1が合格か不合格かを判別し、その評価結果をデ
イスプレィ装置5に出力して表示させるようにしてもよ
い。ここで、検査能に3の評価基準をO14としている
が、これに限らず、検査工程、製造工程、肉眼検査との
併用度合い、検査のコスト及び信頼度、自動外観検査装
置の設備コストなどを考慮して変更してもよい。
In addition, for example, 3 is 0. If it is 4 or more, it means that the inspection ability of the inspection system is above the specified level, and it is considered to have passed.On the other hand, if the inspection ability is 3, it is 0. If it is less than 4, the inspection ability of the inspection system is considered to be less than a predetermined value and the inspection system is rejected. Before calculating 3, the evaluation criteria of the inspection system is entered in advance from the keyboard 4 to the above inspection ability, and then stored in the RAM 3 via cput. However, after calculating the inspection performance of 3, the CPU 1 may determine whether the test is pass or fail according to the evaluation criteria, and the evaluation result may be output to the display device 5 for display. Here, the evaluation standard of 3 for inspection performance is O14, but it is not limited to this, but includes inspection process, manufacturing process, degree of combined use with visual inspection, inspection cost and reliability, equipment cost of automatic visual inspection equipment, etc. It may be changed with consideration.

以上の第1の評価モードの動作においては、撮像装置1
00の第3の検査能に3を計算しているが、これに限ら
ず、撮像装置を代えることにより上記検出確率か変化し
、また、被検査物を代えることにより上記出現確率が変
化するので、画像処理装置200のコネクタ30にビデ
オカメラとA/D変換回路を備えた別の撮像装置を接続
し、同−又は別の被検査物について第3の検査能に3を
計算するようにしてもよい。
In the above-described operation in the first evaluation mode, the imaging device 1
Although 3 is calculated as the third inspection ability of 00, the above detection probability changes by changing the imaging device, and the above appearance probability changes by changing the inspected object. , another imaging device equipped with a video camera and an A/D conversion circuit is connected to the connector 30 of the image processing device 200, and 3 is calculated as the third inspection capability for the same or another object to be inspected. Good too.

(3)第2の評価モード このとき、CPUIは、第1の評価モードと同様に、撮
像装置100の検出確率F(i)と、同一の製造工程で
製造されかつ汚れ欠陥のある被検査物に対する汚れ欠陥
の出現確率G(i)を求めてRAM3に格納する。
(3) Second evaluation mode At this time, as in the first evaluation mode, the CPUI calculates the detection probability F(i) of the imaging device 100 and the inspection target that is manufactured in the same manufacturing process and has a dirt defect. The appearance probability G(i) of a stain defect is calculated and stored in the RAM 3.

次いで、操作者は、上記被検査物に対して予め上述の基
準で決められた、それぞれ製品としての劣化度を示す各
濃淡度階調iにおける重要度H(i)と、各画素数Jに
おける重要度R(j)をキーボード4を用いて入力し、
上記重要度H(i)及びR(j)のデータがCPU l
を介してRAM3に格納される。
Next, the operator determines the degree of importance H(i) at each gray level i, which indicates the degree of deterioration of the product, and the degree of importance H(i) at each pixel number J, which is predetermined based on the above-mentioned criteria for the object to be inspected. Input the importance level R(j) using the keyboard 4,
The data with the above importance levels H(i) and R(j) are stored in the CPU l
The data is stored in the RAM 3 via the .

さらに、CPUIは、上述の第1の評価モードと同様に
、各画素数jに対する検出確率P(j)と出現確率Q 
(j)を求めるとともに、例えば濃淡度階調11におけ
る汚れ欠陥の出現確率である上記〈7)式の右辺の第2
項の積の左側の項の値を求めた後、それぞれのデータを
RAM3に格納する。
Furthermore, as in the first evaluation mode described above, the CPUI calculates the detection probability P(j) and the appearance probability Q for each number of pixels j.
In addition to finding (j), for example, the second value on the right side of the above equation
After determining the value of the term on the left side of the product of the terms, each data is stored in the RAM 3.

最後に、CPUIは、RAM3に格納された上記撮像装
置100の検出確率F (i)、  P (j)を汚れ
欠陥の出現確率G (i)、 Q (j)と上記重要度
H(i)。
Finally, the CPU converts the detection probability F (i), P (j) of the imaging device 100 stored in the RAM 3 into the appearance probability G (i), Q (j) of the stain defect and the above importance level H (i). .

R(j)と、上記濃淡度階調11における汚れ欠陥の出
現確率を読み出して、上記(7)式を用いて第4の検査
能に4を計算した後、該第4の検査能に4のデータをデ
イスプレィ装置5に出力して表示させる。以上で、第2
の評価モードの動作が終了する。
After reading out R(j) and the appearance probability of dirt defects at the above-mentioned density gradation 11 and calculating 4 as the fourth inspection ability using the above equation (7), 4 is added to the fourth inspection ability. The data is output to the display device 5 and displayed. That's it for the second
The evaluation mode operation ends.

なお、上述した第1表の実験例の検査装置の上記第2の
検査能に、を上記検査装置及び評価装置を用いて計算す
ると、0.81である。
In addition, when the second inspection ability of the inspection apparatus of the experimental example in Table 1 is calculated using the above inspection apparatus and evaluation apparatus, it is 0.81.

第2表は、上述した社章に対してこの検査及び評価装置
を用いて評価を行った実験例における検出確率、出現確
率及び重要度を示すグラフであり、第2表の検出確率、
出現確率、及び重要度をそれぞれ第6図に示す。
Table 2 is a graph showing the detection probability, appearance probability, and importance level in an experimental example in which the above-mentioned company emblem was evaluated using this inspection and evaluation device.
The appearance probability and importance are shown in FIG. 6, respectively.

第2表の実験例の検査装置の第1ないし第4の検査能に
1ないしに4を上記検査装置及び評価装置を用いて計算
するとそれぞれ、0. 81. 0. 81.0.90
49,0.9321となる。従って、上記第3と第4の
検査能に3.に4を求めることにより、正常画像と同一
の濃淡度階調を有する汚れ欠陥を考慮した検査能力を評
価することができる検査能を求めることができる。
When 1 to 4 are calculated for the first to fourth inspection abilities of the inspection apparatus of the experimental example in Table 2 using the above inspection apparatus and evaluation apparatus, the results are 0. 81. 0. 81.0.90
49,0.9321. Therefore, 3. By finding 4 in , it is possible to obtain the inspection ability that allows evaluation of the inspection ability in consideration of dirt defects having the same gray scale as the normal image.

以上説明したように、被検査物の汚れ欠陥を検査しかつ
その検査能力を評価する外観検査及び評価装置において
、上記第3又は第4の検査能に3゜K4を自動的に計算
することができるので、上述のように、上記重要度を考
慮せずもしくは考慮するとともに、正常画像と同一の濃
淡度階調を有する汚れ欠陥を考慮した検査能の評価値を
求めることができ、上記外観検査装置に対して迅速かつ
的確な性能評価を行うことができる。従って、この種の
検査装置を導入するに当たって、いかなる検査能の検査
装置を導入するのが最善であるかの判断が容易となる。
As explained above, in a visual inspection and evaluation device that inspects contamination defects on an object to be inspected and evaluates its inspection ability, it is possible to automatically calculate 3°K4 for the third or fourth inspection ability. Therefore, as described above, it is possible to obtain an evaluation value of the inspection performance that takes into account the dirt defects that have the same gray scale as the normal image, without or in addition to taking into account the above-mentioned importance level, and to perform the above-mentioned appearance inspection. It is possible to quickly and accurately evaluate the performance of the device. Therefore, when introducing this type of inspection device, it becomes easy to judge which inspection ability is best to introduce.

またその結果として、上述したような取り引き上のトラ
ブルも減少することが期待でき、産業上極めて有意義で
ある。
Furthermore, as a result, it can be expected that the above-mentioned transactional troubles will be reduced, which is extremely meaningful from an industrial perspective.

以上の実施例において、上記(6)式及び(7)式は上
記社章のマークの濃淡度階調が上記社章の表面における
汚れ欠陥の濃淡度階調と同一の場合について述べている
が、これに限らず、上記(6)式及び(7)式を、被検
査物の表面の濃淡度階調が上記被検査物の表面に付着す
る汚れ欠陥の濃淡度階調と同一の場合に容易に拡張でき
る。
In the above embodiments, equations (6) and (7) describe the case where the gradation of the gradation of the mark on the company emblem is the same as the gradation of gradation of dirt on the surface of the company emblem. However, the above equations (6) and (7) are not limited to this, but when the gradation of the gradation of the surface of the object to be inspected is the same as the gradation of the gradation of dirt attached to the surface of the object to be inspected. Easily expandable.

以上の実施例においては、表面に汚れ欠陥があるか否か
を被検査物の濃淡画像を用いて検査する装置について述
べているが、これに限らず、被検査物の表面における破
損、欠落、傷、構成部材の形状の正常性、構成部材の取
り付は位置、方向及び向きの正常性、被検査物の大きさ
、被検査物の長さなどを検査するようにしてもよい。従
って、汚れ欠陥の画素数jに代えて、被検査物の外観の
画像から容易に計算して得ることができ上記画像の形状
的特徴を表す連続的又は離散的パラメータ(以下、画像
の特徴量という。)を用いてもよい。
In the above embodiments, an apparatus is described that uses a grayscale image of the object to be inspected to check whether there is a dirt defect on the surface of the object. It may be possible to inspect flaws, the normality of the shape of the component, the normality of the position, direction, and orientation of the component, the size of the object to be inspected, the length of the object to be inspected, and the like. Therefore, instead of the number j of pixels of a dirt defect, a continuous or discrete parameter (hereinafter referred to as image feature amount ) may be used.

この画像の特徴量としては、物体の周囲長、物体の面積
に対する周囲長の比、各濃淡度階調における画素数、物
体にある穴の個数、上記穴の周囲長、上記穴の面積、物
体の円形度計数、物体の形状計数、物体のフエレ径、物
体の1次モーメント、物体の2次モーメント、物体の面
積に対するモーメント、物体の重心座標、物体の基礎統
計値、全体の画像に対する物体の占有率、物体の最大径
と特定の軸との角度、物体の最大輝度、物体の最小輝度
、物体の直径、物体の体積、楕円物体の軸長、楕円物体
の軸長比、物体における2軸の平均径、物体における2
点間の辺縁部の距離、物体における2点間の距離、物体
における3点角、物体における4点角、複数の物体の個
数、複数の物体間の距離などを用いてもよい。
The feature values of this image include the perimeter of the object, the ratio of the perimeter to the area of the object, the number of pixels at each gray level, the number of holes in the object, the perimeter of the hole, the area of the hole, and the object. circularity count of the object, shape count of the object, Fuere diameter of the object, first moment of the object, second moment of the object, moment relative to the area of the object, coordinates of the center of gravity of the object, basic statistical values of the object, object's relative to the entire image. Occupancy rate, angle between the maximum diameter of the object and a specific axis, maximum brightness of the object, minimum brightness of the object, diameter of the object, volume of the object, axial length of an elliptical object, axial length ratio of an elliptical object, two axes of the object average diameter of 2 in the object
The edge distance between points, the distance between two points on an object, the three-point angle on the object, the four-point angle on the object, the number of multiple objects, the distance between multiple objects, etc. may be used.

以上の実施例において、ビデオカメラ11を用いている
が、これに限らず、1画面の濃淡画像を撮影できるその
他の種類のカメラを用いるようにしてもよい。また、ビ
デオカメラ11としてカラービデオカメラを用い、濃淡
画像の代わりに色情報を含む彩色画像を用いて評価する
ようにしてらよい。
In the above embodiment, the video camera 11 is used, but the present invention is not limited to this, and other types of cameras capable of capturing a single screen of grayscale images may be used. Furthermore, a color video camera may be used as the video camera 11, and a colored image containing color information may be used for evaluation instead of a grayscale image.

以上の実施例において、上記外観検査及び評価装置の第
1及び第2の評価モードで上記撮像装置100の検出確
率を演算しているが、これに限らず、他の装置で演算し
た検出確率又は予め決められた検出確率を用いて上記第
3及び第4の検査能に、、に、を演算するようにしても
よい。
In the above embodiments, the detection probability of the imaging device 100 is calculated in the first and second evaluation modes of the visual inspection and evaluation device, but the detection probability is not limited to this, and the detection probability calculated by another device or The third and fourth inspection abilities may be calculated using a predetermined detection probability.

以上の実施例において、A/D変換回路12はビデオカ
メラ11から人力されるテレビ信号の画像を16階調で
A/D変換しているが、これに限らず、4,8,32,
64,128,256等の複数の階調でA/D変換して
もよい。このとき、画像処理装置200において処理さ
れるデータは、複数の各濃淡度階調で処理される。
In the above embodiment, the A/D conversion circuit 12 A/D converts the image of the television signal manually inputted from the video camera 11 in 16 gradations, but the A/D conversion circuit 12 is not limited to this.
A/D conversion may be performed at a plurality of gradations such as 64, 128, 256, etc. At this time, the data processed by the image processing device 200 is processed at each of a plurality of gray levels.

第1表 第2表 第3表 第4表 第5表 [発明の効果] 以上詳述したように本発明によれば、外観検査装置の第
1の検出確率と被検査物における表面の欠陥の第1の出
現確率をそれぞれ被検査物の画像の特徴と表す画像の特
徴量毎に演算して求めた後、上記被検査物の画像の特徴
を表す画像の6度合い毎に上記外観検査装置の第2の検
出確率と上記欠陥の第2の出現確率を求め、上記第2の
検出確率と上記第2の出現確率に基づいて上記被検査物
のが画像データが有する上記特徴量の度合い以外の上記
特徴量の度合いの分布確率を演算し、上記第1の検出確
率と上記第1の出現確率と上記分布確率に基づいて上記
検査装置の検査能力の評価値を演算するようにしたので
、上記被検査物の表面の濃淡度階調と同一の濃淡度階調
を有する汚れ等の欠陥があっても、上記外観検査装置の
検査能力を評価する評価値を、適確にかつ迅速に得るこ
とができる。
Table 1 Table 2 Table 3 Table 4 Table 5 [Effects of the Invention] As detailed above, according to the present invention, the first detection probability of the visual inspection device and the detection of surface defects on the inspected object After calculating and determining the first appearance probability for each of the image characteristics of the object to be inspected and the characteristic amount of the image representing the image, the appearance inspection apparatus A second detection probability and a second appearance probability of the defect are determined, and based on the second detection probability and the second appearance probability, the inspection object is determined to have a degree other than the degree of the feature amount that the image data has. The distribution probability of the degree of the feature amount is calculated, and the evaluation value of the inspection ability of the inspection device is calculated based on the first detection probability, the first appearance probability, and the distribution probability. To accurately and quickly obtain an evaluation value for evaluating the inspection ability of the above-mentioned appearance inspection device even if there is a defect such as dirt having the same gradation of gradation as that of the surface of the object to be inspected. Can be done.

また、上記第1の検出確率と上記第1の出現確率と上記
分布確率に加えて、上記各濃淡度階調毎に予め決められ
た第1の重要度と上記各特徴量毎に予め決められた第2
の重要度に基づいて上記検査装置の検査能力の評価値を
演算するようにしたので、上記第1と第2の重要度を考
慮に入れて、上記外観検査装置の検査能力を評価する評
価値を適確にかつ迅速に得ることができる。
In addition to the first detection probability, the first appearance probability, and the distribution probability, a first importance level predetermined for each gray scale and a first importance level predetermined for each feature quantity are also provided. second
Since the evaluation value of the inspection ability of the above-mentioned inspection device is calculated based on the importance of can be obtained accurately and quickly.

さらに、上記第1と第2の検出確率を予め決められた値
を用いて上記検査装置の検査能力の評価値を演算するよ
うに構成した場合も、同様の効果を有する。
Furthermore, the same effect can be obtained when the evaluation value of the inspection ability of the inspection apparatus is calculated using predetermined values of the first and second detection probabilities.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明の一実施例である外観検査及び評価装置
のブロック図、 第2図ないし第6図はそれぞれ上記評価装置を用いて評
価した実験例における評価結果を示すグラフである。 1・・・中央演算処理装置(CP U)、2・・・リー
ドオンリメモリ (ROM)、3・・・ランダムアクセ
スメモリ(RAM)、4・・・キーボード、 5・・・デイスプレィ装置、 IO・・・被検査物、 11・・・ビデオカメラ、 12・・・アナログ・ディジタル変換回路(A/D変換
回路)、 100・・・撮像装置、 200・・・画像処理装置。 特許出願人 鐘淵化学工業株式会社 代理人 弁理士 青白 葆 はが1名 第1図 第2図 a褒M11 派瑛崖階@1
FIG. 1 is a block diagram of a visual inspection and evaluation device that is an embodiment of the present invention, and FIGS. 2 to 6 are graphs showing evaluation results in experimental examples evaluated using the above evaluation device, respectively. 1...Central processing unit (CPU), 2...Read only memory (ROM), 3...Random access memory (RAM), 4...Keyboard, 5...Display device, IO・...Object to be inspected, 11...Video camera, 12...Analog-to-digital conversion circuit (A/D conversion circuit), 100...Imaging device, 200... Image processing device. Patent applicant Kanebuchi Kagaku Kogyo Co., Ltd. Agent Patent attorney Aohaku Ao Haga 1 person Figure 1 Figure 2

Claims (10)

【特許請求の範囲】[Claims] (1)被検査物を撮影し上記撮影された画像のデータに
基づいて被検査物の表面における欠陥を検査する外観検
査装置のための検査能力評価方法において、 所定の濃淡度階調毎にすべての上記濃淡度階調を含む画
像データに基づいて上記外観検査装置が各濃淡度階調の
画像を検出できる確率である第1の検出確率を演算し、 上記濃淡度階調毎に表面に欠陥がある上記被検査物の画
像のデータに基づいて上記欠陥が出現する確率である第
1の出現確率を演算し、 上記第1の検出確率と上記第1の出現確率との上記各濃
淡度階調毎の積の総和である第1の総和をすべての上記
濃淡度階調にわたって演算し、上記各濃淡度階調の上記
第1の出現確率の総和である第2の総和をすべての上記
濃淡度階調にわたって演算し、 上記第1の総和を上記第2の総和で除算し、上記被検査
物の画像データに基づいて上記被検査物の濃淡度階調を
有する画像データの出現確率を演算し、 上記被検査物の画像の特徴を表す画像の特徴量の各度合
い毎に上記特徴量のすべての度合いを含む画像データに
基づいて上記外観検査装置が上記特徴量の各度合いの画
像を検出できる確率である第2の検出確率を演算し、 上記被検査物の画像データに基づいて上記特徴量の各度
合い毎に上記欠陥が出現する確率である第2の出現確率
を演算し、 上記第2の検出確率と上記第2の出現確率に基づいて上
記被検査物の画像データが有する上記特徴量の度合い以
外の上記特徴量の度合いの分布確率を演算し、 上記被検査物の濃淡度階調を有する画像データの出現確
率と上記分布確率との積に上記除算値を加算し、上記加
算値を上記外観検査装置の検査能力の評価値とすること
を特徴とする外観検査装置のための検査能力評価方法。
(1) In an inspection capability evaluation method for an appearance inspection device that photographs an object to be inspected and inspects defects on the surface of the object based on the data of the photographed image, all A first detection probability, which is a probability that the appearance inspection device can detect an image of each density gradation, is calculated based on the image data including the density gradation, and detects a defect on the surface for each density gradation. A first appearance probability, which is the probability that the defect will appear, is calculated based on data of an image of the inspected object, and each of the gray scales of the first detection probability and the first appearance probability are calculated. A first sum, which is the sum of the products for each tone, is calculated over all the above-mentioned gradations, and a second sum, which is the sum of the first appearance probabilities of each of the above-mentioned gradations, is calculated over all the above-mentioned gradations. the first total is divided by the second total, and the appearance probability of image data having the gray scale of the object to be inspected is calculated based on the image data of the object to be inspected. and the visual inspection device detects images of each degree of the feature amount based on image data including all degrees of the feature amount for each degree of the feature amount of the image representing the feature of the image of the inspected object. calculate a second detection probability that is the probability that the defect will appear; calculate a second appearance probability that is the probability that the defect will appear for each degree of the feature amount based on the image data of the inspected object; The distribution probability of the degree of the feature amount other than the degree of the feature amount that the image data of the object to be inspected has is calculated based on the detection probability of 2 and the second appearance probability, and the density level of the object to be inspected is calculated. The above-mentioned division value is added to the product of the appearance probability of image data having a tone and the above-mentioned distribution probability, and the above-mentioned added value is used as an evaluation value of the inspection ability of the above-mentioned appearance inspection device. Testing ability evaluation method.
(2)被検査物を撮影し上記撮影された画像のデータに
基づいて被検査物の表面における欠陥を検査する外観検
査装置のための検査能力評価装置において、 所定の濃淡度階調毎にすべての上記濃淡度階調を含む画
像データに基づいて上記外観検査装置が各濃淡度階調の
画像を検出できる確率である第1の検出確率を演算する
第1の演算手段と、 上記濃淡度階調毎に表面に欠陥がある上記被検査物の画
像のデータに基づいて上記欠陥が出現する確率である第
1の出現確率を演算する第2の演算手段と、 上記第1の検出確率と上記第1の出現確率との上記各濃
淡度階調毎の積の総和である第1の総和をすべての上記
濃淡度階調にわたって演算する第3の演算手段と、 上記各濃淡度階調の上記第1の出現確率の総和である第
2の総和をすべての上記濃淡度階調にわたって演算する
第4の演算手段と、 上記第1の総和を上記第2の総和で除算する第5の演算
手段と、 上記被検査物の画像データに基づいて上記被検査物の濃
淡度階調を有する画像データの出現確率を演算する第6
の演算手段と、 上記被検査物の画像の特徴を表す画像の特徴量の各度合
い毎に上記特徴量のすべての度合いを含む画像データに
基づいて上記外観検査装置が上記特徴量の各度合いの画
像を検出できる確率である第2の検出確率を演算する第
7の演算手段と、上記被検査物の画像データに基づいて
上記特徴量の各度合い毎に上記欠陥が出現する確率であ
る第2の出現確率を演算する第8の演算手段と、上記第
2の検出確率と上記第2の出現確率に基づいて上記被検
査物の画像データが有する上記特徴量の度合い以外の上
記特徴量の度合いの分布確率を演算する第9の演算手段
と、 上記被検査物の濃淡度階調を有する画像データの出現確
率と上記分布確率との積に上記第5の演算手段によって
演算された除算値を加算する第10の演算手段とを備え
、上記第10の演算手段で得られた加算値を上記外観検
査装置の検査能力の評価値とすることを特徴とする外観
検査装置のための検査能力評価装置。
(2) In an inspection ability evaluation device for a visual inspection device that photographs an object to be inspected and inspects defects on the surface of the object based on the data of the photographed image, all a first calculation means for calculating a first detection probability that is a probability that the appearance inspection device can detect an image of each density gradation based on image data including the density gradation; a second calculation means for calculating a first appearance probability that is a probability that the defect will appear based on image data of the object to be inspected having a surface defect for each key; and the first detection probability and the above. a third calculation means for calculating a first sum, which is the sum of the products of each of the gray scales with the first appearance probability, over all of the gray scales; a fourth calculation means for calculating a second sum, which is the sum of the first appearance probabilities, over all the gray levels; and a fifth calculation means for dividing the first sum by the second sum. and a sixth step of calculating the appearance probability of image data having gray scale of the object to be inspected based on the image data of the object to be inspected.
and the visual inspection device calculates each degree of the feature amount based on image data including all the degrees of the feature amount of the image representing the feature of the image of the object to be inspected. a seventh calculation means for calculating a second detection probability, which is the probability that the image can be detected; and a second calculation means, which is the probability that the defect will appear for each degree of the feature amount based on the image data of the object to be inspected. and a degree of the feature amount other than the degree of the feature amount that the image data of the inspected object has based on the second detection probability and the second appearance probability. a ninth calculation means for calculating the distribution probability of the object to be inspected; and a tenth arithmetic means for adding, and the added value obtained by the tenth arithmetic means is used as an evaluation value of the inspection ability of the appearance inspection apparatus. Device.
(3)被検査物を撮影し上記撮影された画像のデータに
基づいて被検査物の表面における欠陥を検査する外観検
査装置のための検査能力評価方法において、 所定の濃淡度階調毎にすべての上記濃淡度階調を含む画
像データに基づいて上記外観検査装置が各濃淡度階調の
画像を検出できる確率である第1の検出確率を演算し、 上記濃淡度階調毎に表面に欠陥がある上記被検査物の画
像のデータに基づいて上記欠陥が出現する確率である第
1の出現確率を演算し、 上記第1の検出確率と上記第1の出現確率と上記被検査
物に対する各濃淡度階調毎の予め決められた第1の重要
度との上記各濃淡度階調毎の積の総和である第1の総和
をすべての上記濃淡度階調にわたって演算し、 上記第1の出現確率と上記第1の重要度との上記各濃淡
度階調毎の積の総和である第2の総和をすべての上記濃
淡度階調にわたって演算し、上記第1の総和を上記第2
の総和で除算し、上記被検査物の画像データに基づいて
上記被検査物の濃淡度階調を有する画像データの出現確
率を演算し、 上記被検査物の画像の特徴を表す画像の特徴量の各度合
い毎に上記特徴量のすべての度合いを含む画像データに
基づいて上記外観検査装置が上記特徴量の各度合いの画
像を検出できる確率である第2の検出確率を演算し、 上記被検査物の画像データに基づいて上記特徴量の各度
合い毎に上記欠陥が出現する確率である第2の出現確率
を演算し、 上記第2の検出確率と上記第2の出現確率と上記被検査
物に対して上記特徴量の各度合い毎に予め決められた第
2の重要度に基づいて上記被検査物の画像データが有す
る上記特徴量の度合い以外の上記特徴量の度合いの分布
確率を演算し、上記被検査物の濃淡度階調を有する画像
データの出現確率と上記分布確率との積に上記除算値を
加算し、上記加算値を上記外観検査装置の検査能力の評
価値とすることを特徴とする外観検査装置のための検査
能力評価方法。
(3) In an inspection capability evaluation method for an appearance inspection device that photographs an object to be inspected and inspects defects on the surface of the object based on the data of the photographed image, all A first detection probability, which is a probability that the appearance inspection device can detect an image of each density gradation, is calculated based on the image data including the density gradation, and detects a defect on the surface for each density gradation. A first appearance probability, which is the probability that the defect will appear, is calculated based on data of an image of the object to be inspected, and calculates each of the first detection probability, first appearance probability, and each other for the object to be inspected. A first sum, which is the sum of the products of each of the gray scales with a predetermined first importance level for each gray scale, is calculated over all the gray scales, and A second sum, which is the sum of the products of the appearance probability and the first importance level for each of the gray scales, is calculated over all the gray scales, and the first sum is calculated as the sum of the products of the first importance level and the first importance level.
, and calculate the appearance probability of image data having the gray scale of the object to be inspected based on the image data of the object to be inspected, Calculate a second detection probability that is the probability that the appearance inspection device can detect an image with each degree of the feature amount based on image data including all the degrees of the feature amount for each degree of the object to be inspected. A second appearance probability, which is the probability that the defect appears for each degree of the feature amount, is calculated based on the image data of the object, and the second detection probability, the second appearance probability, and the object to be inspected are calculated. Calculate the distribution probability of the degree of the feature amount other than the degree of the feature amount that the image data of the object to be inspected has based on a second degree of importance determined in advance for each degree of the feature amount. , the above-mentioned division value is added to the product of the appearance probability of the image data having gradations of gradations of the above-mentioned object to be inspected and the above-mentioned distribution probability, and the above-mentioned added value is used as an evaluation value of the inspection ability of the above-mentioned visual inspection apparatus. Inspection ability evaluation method for featured appearance inspection equipment.
(4)被検査物を撮影し上記撮影された画像のデータに
基づいて被検査物の表面における欠陥を検査する外観検
査装置のための検査能力評価装置において、 所定の濃淡度階調毎にすべての上記濃淡度階調を含む画
像データに基づいて上記外観検査装置が各濃淡度階調の
画像を検出できる確率である第1の検出確率を演算する
第1の演算手段と、 上記濃淡度階調毎に表面に欠陥がある上記被検査物の画
像のデータに基づいて上記欠陥が出現する確率である第
1の出現確率を演算する第2の演算手段と、 上記第1の検出確率と上記第1の出現確率と上記被検査
物に対する各濃淡度階調毎の予め決められた第1の重要
度との上記各濃淡度階調毎の積の総和である第1の総和
をすべての上記濃淡度階調にわたって演算する第3の演
算手段と、 上記第1の出現確率と上記第1の重要度との上記各濃淡
度階調毎の積の総和である第2の総和をすべての上記濃
淡度階調にわたって演算する第4の演算手段と、 上記第1の総和を上記第2の総和で除算する第5の演算
手段と、 上記被検査物の画像データに基づいて上記被検査物の濃
淡度階調を有する画像データの出現確率を演算する第6
の演算手段と、 上記被検査物の画像の特徴を表す画像の特徴量の各度合
い毎に上記特徴量のすべての度合いを含む画像データに
基づいて上記外観検査装置が上記特徴量の各度合いの画
像を検出できる確率である第2の検出確率を演算する第
7の演算手段と、上記被検査物の画像データに基づいて
上記特徴量の各度合い毎に上記欠陥が出現する確率であ
る第2の出現確率を演算する第8の演算手段と、上記第
2の検出確率と上記第2の出現確率と上記被検査物に対
して上記特徴量の各度合い毎に予め決められた第2の重
要度に基づいて上記被検査物の画像データが有する上記
特徴量の度合い以外の上記特徴量の度合いの分布確率を
演算する第9の演算手段と、 上記被検査物の濃淡度階調を有する画像データの出現確
率と上記分布確率との積に上記第5の演算手段によって
演算された除算値を加算する第10の演算手段とを備え
、上記第10の演算手段によって演算された加算値を上
記外観検査装置の検査能力の評価値とすることを特徴と
する外観検査装置のための検査能力評価装置。
(4) In an inspection ability evaluation device for an appearance inspection device that photographs an object to be inspected and inspects defects on the surface of the object based on the data of the photographed image, all a first calculation means for calculating a first detection probability that is a probability that the appearance inspection device can detect an image of each density gradation based on image data including the density gradation; a second calculation means for calculating a first appearance probability that is a probability that the defect will appear based on image data of the object to be inspected having a surface defect for each key; and the first detection probability and the above. The first sum, which is the sum of the products of the first probability of appearance and the predetermined first importance level for each gray scale for the object to be inspected, for each gray scale is calculated as follows: a third calculation means that calculates across the gray scale; a fourth calculation means for calculating over the gray scale; a fifth calculation means for dividing the first sum by the second sum; and a fifth calculation means for dividing the first sum by the second sum. Sixth step for calculating the probability of appearance of image data having grayscale gradation
and the visual inspection device calculates each degree of the feature amount based on image data including all the degrees of the feature amount of the image representing the feature of the image of the object to be inspected. a seventh calculation means for calculating a second detection probability, which is the probability that the image can be detected; and a second calculation means, which is the probability that the defect will appear for each degree of the feature amount based on the image data of the object to be inspected. an eighth calculating means for calculating the appearance probability of the second detection probability, the second appearance probability, and a second importance predetermined for each degree of the feature amount for the object to be inspected; ninth calculation means for calculating the distribution probability of the degree of the feature amount other than the degree of the feature amount that the image data of the object to be inspected has based on the degree of density; tenth calculation means for adding the division value calculated by the fifth calculation means to the product of the probability of occurrence of data and the distribution probability; An inspection ability evaluation device for a visual inspection device, characterized in that the evaluation value is an evaluation value of the inspection ability of the visual inspection device.
(5)被検査物を撮影し上記撮影された画像のデータに
基づいて被検査物の表面における欠陥を検査する外観検
査装置のための検査能力評価方法において、 所定の濃淡度階調毎に表面に欠陥がある上記被検査物の
画像のデータに基づいて上記欠陥が出現する確率である
第1の出現確率を演算し、 予め決められ上記外観検査装置が各濃淡度階調の画像を
検出できる確率である第1の検出確率と上記第1の出現
確率との上記各濃淡度階調毎の積の総和である第1の総
和をすべての上記濃淡度階調にわたって演算し、 上記各濃淡度階調の上記第1の出現確率の総和である第
2の総和をすべての上記濃淡度階調にわたって演算し、 上記第1の総和を上記第2の総和で除算し、上記被検査
物の画像データに基づいて上記被検査物の濃淡度階調を
有する画像データの出現確率を演算し、 上記被検査物の画像データに基づいて上記被検査物の画
像の特徴を表す画像の特徴量の各度合い毎に上記欠陥が
出現する確率である第2の出現確率を演算し、 予め決められ上記外観検査装置が上記特徴量の各度合い
の画像を検出できる確率である第2の検出確率と上記第
2の出現確率に基づいて上記被検査物の画像データが有
する上記特徴量の度合い以外の上記特徴量の度合いの分
布確率を演算し、上記被検査物の濃淡度階調を有する画
像データの出現確率と上記分布確率との積に上記除算値
を加算し、上記加算値を上記外観検査装置の検査能力の
評価値とすることを特徴とする外観検査装置のための検
査能力評価方法。
(5) In an inspection capability evaluation method for an appearance inspection device that photographs an object to be inspected and inspects defects on the surface of the object based on the data of the photographed image, A first appearance probability, which is a probability that the defect will appear, is calculated based on data of an image of the object to be inspected, which is determined in advance, and the appearance inspection device can detect images of each density gradation. A first sum, which is the sum of the products of the first detection probability, which is a probability, and the first appearance probability, for each of the gray scales, is calculated over all the gray scales, and A second sum, which is the sum of the first appearance probabilities of gradations, is calculated over all the gradation levels, and the first sum is divided by the second sum, and the image of the object to be inspected is calculated. The probability of appearance of image data having gradations of gradations of the object to be inspected is calculated based on the data, and each of the feature quantities of the image representing the image characteristics of the object to be inspected is calculated based on the image data of the object to be inspected. A second appearance probability, which is the probability that the defect will appear for each degree, is calculated, and a second detection probability, which is a predetermined probability that the appearance inspection device can detect an image with each degree of the feature amount, and the second Calculate the distribution probability of the degree of the feature amount other than the degree of the feature amount that the image data of the object to be inspected has based on the appearance probability of 2, and calculate the appearance of image data having the gray scale of the object to be inspected. An inspection ability evaluation method for an appearance inspection apparatus, characterized in that the above-mentioned division value is added to the product of the probability and the above-mentioned distribution probability, and the added value is used as an evaluation value of the inspection ability of the above-mentioned appearance inspection apparatus.
(6)被検査物を撮影し上記撮影された画像のデータに
基づいて被検査物の表面における欠陥を検査する外観検
査装置のための検査能力評価装置において、 所定の濃淡度階調毎に表面に欠陥がある上記被検査物の
画像のデータに基づいて上記欠陥が出現する確率である
第1の出現確率を演算する第1の演算手段と、 予め決められ上記外観検査装置が各濃淡度階調の画像を
検出できる確率である第1の検出確率と上記第1の出現
確率との上記各濃淡度階調毎の積の総和である第1の総
和をすべての上記濃淡度階調にわたって演算する第2の
演算手段と、 上記各濃淡度階調の上記第1の出現確率の総和である第
2の総和をすべての上記濃淡度階調にわたって演算する
第3の演算手段と、 上記第1の総和を上記第2の総和で除算する第4の演算
手段と、 上記被検査物の画像データに基づいて上記被検査物の濃
淡度階調を有する画像データの出現確率を演算する第5
の演算手段と、 上記被検査物の画像データに基づいて上記被検査物の画
像の特徴を表す画像の特徴量の各度合い毎に上記欠陥が
出現する確率である第2の出現確率を演算する第6の演
算手段と、予め決められ上記外観検査装置が上記特徴量
の各度合いの画像を検出できる確率である第2の検出確
率と上記第2の出現確率に基づいて上記被検査物の画像
データが有する上記特徴量の度合い以外の上記特徴量の
度合いの分布確率を演算する第7の演算手段と、 上記被検査物の濃淡度階調を有する画像データの出現確
率と上記分布確率との積に上記第4の演算手段によって
演算された除算値を加算する第8の演算手段とを備え、
上記第8の演算手段で得られた加算値を上記外観検査装
置の検査能力の評価値とすることを特徴とする外観検査
装置のための検査能力評価装置。
(6) In an inspection ability evaluation device for an appearance inspection device that photographs an object to be inspected and inspects defects on the surface of the object based on the data of the photographed image, the surface is inspected at each predetermined gray level. a first calculation means that calculates a first appearance probability that is a probability that the defect will appear based on data of an image of the object to be inspected that has a defect; Calculate a first summation, which is the sum of the products of the first detection probability, which is the probability of detecting the gray scale image, and the first appearance probability, for each of the gray scale levels, over all the gray scale levels. a second calculation means for calculating a second sum, which is the sum of the first appearance probabilities for each of the gray scales, over all the gray scales; a fourth calculation means for dividing the total sum by the second summation; and a fifth calculation means for calculating the appearance probability of image data having the gray scale of the object to be inspected based on the image data of the object to be inspected.
a calculation means for calculating a second appearance probability, which is the probability that the defect appears for each degree of the feature amount of the image representing the feature of the image of the object to be inspected, based on the image data of the object to be inspected; a sixth calculation means, and an image of the object to be inspected based on the second detection probability and the second appearance probability, which are predetermined probabilities that the appearance inspection device can detect images of each degree of the feature amount. seventh calculating means for calculating the distribution probability of the degree of the feature amount other than the degree of the feature amount that the data has; and eighth calculation means for adding the division value calculated by the fourth calculation means to the product,
An inspection ability evaluation device for a visual inspection device, characterized in that the added value obtained by the eighth calculation means is used as an evaluation value of the inspection ability of the visual inspection device.
(7)被検査物を撮影し上記撮影された画像のデータに
基づいて被検査物の表面における欠陥を検査する外観検
査装置のための検査能力評価方法において、 所定の濃淡度階調毎に表面に欠陥がある上記被検査物の
画像のデータに基づいて上記欠陥が出現する確率である
第1の出現確率を演算し、 予め決められ上記外観検査装置が各濃淡度階調の画像を
検出できる確率である第1の検出確率と上記第1の出現
確率と上記被検査物に対する各濃淡度階調毎の予め決め
られた第1の重要度との上記各濃淡度階調毎の積の総和
である第1の総和をすべての上記濃淡度階調にわたって
演算し、上記第1の出現確率と上記第1の重要度との上
記各濃淡度階調毎の積の総和である第2の総和をすべて
の上記濃淡度階調にわたって演算し、上記第1の総和を
上記第2の総和で除算し、上記被検査物の画像データに
基づいて上記被検査物の濃淡度階調を有する画像データ
の出現確率を演算し、 上記被検査物の画像データに基づいて上記被検査物の画
像の特徴を表す画像の特徴量の各度合い毎に上記欠陥が
出現する確率である第2の出現確率を演算し、 予め決められ上記外観検査装置が上記特徴量の各度合い
の画像を検出できる確率である第2の検出確率と上記第
2の出現確率と上記被検査物に対して上記特徴量の各度
合い毎に予め決められた第2の重要度に基づいて上記被
検査物の画像データが有する上記特徴量の度合い以外の
上記特徴量の度合いの分布確率を演算し、 上記被検査物の濃淡度階調を有する画像データの出現確
率と上記分布確率との積に上記除算値を加算し、上記加
算値を上記外観検査装置の検査能力の評価値とすること
を特徴とする外観検査装置のための検査能力評価方法。
(7) In an inspection capability evaluation method for an appearance inspection device that photographs an object to be inspected and inspects defects on the surface of the object based on the data of the photographed image, A first appearance probability, which is a probability that the defect will appear, is calculated based on data of an image of the object to be inspected, which is determined in advance, and the appearance inspection device can detect images of each density gradation. The sum of the products of the first detection probability, which is a probability, the first appearance probability, and the predetermined first importance level for each gray scale for the object to be inspected, for each gray scale. A first sum that is calculated over all the gray scales, and a second sum that is the sum of the products of the first appearance probability and the first importance level for each gray scale. is calculated over all the gray scales, the first sum is divided by the second sum, and image data having gray scales of the object to be inspected is obtained based on the image data of the object to be inspected. Calculate the appearance probability of the defect, and calculate the second appearance probability, which is the probability that the defect will appear, for each degree of the feature amount of the image representing the feature of the image of the object to be inspected, based on the image data of the object to be inspected. A second detection probability, which is a predetermined probability that the appearance inspection device can detect an image with each degree of the feature amount, and the second appearance probability, and each of the feature amounts for the object to be inspected are calculated. Calculate the distribution probability of the degree of the feature amount other than the degree of the feature amount that the image data of the object to be inspected has on the basis of a second degree of importance predetermined for each degree, and calculate the density of the object to be inspected. A visual inspection device characterized in that the division value is added to the product of the probability of appearance of image data having gradations and the distribution probability, and the added value is used as an evaluation value of the inspection ability of the visual inspection device. Testing ability evaluation method.
(8)被検査物を撮影し上記撮影された画像のデータに
基づいて被検査物の表面における欠陥を検査する外観検
査装置のための検査能力評価装置において、 所定の濃淡度階調毎に表面に欠陥がある上記被検査物の
画像のデータに基づいて上記欠陥が出現する確率である
第1の出現確率を演算する第1の演算手段と、 予め決められ上記外観検査装置が各濃淡度階調の画像を
検出できる確率である第1の検出確率と上記第1の出現
確率と上記被検査物に対する各濃淡度階調毎の予め決め
られた第1の重要度との上記各濃淡度階調毎の積の総和
である第1の総和をすべての上記濃淡度階調にわたって
演算する第2の演算手段と、 上記第1の出現確率と上記第1の重要度との上記各濃淡
度階調毎の積の総和である第2の総和をすべての上記濃
淡度階調にわたって演算する第3の演算手段と、 上記第1の総和を上記第2の総和で除算する第4の演算
手段と、 上記被検査物の画像データに基づいて上記被検査物の濃
淡度階調を有する画像データの出現確率を演算する第5
の演算手段と、 上記被検査物の画像データに基づいて上記被検査物の画
像の特徴を表す画像の特徴量の各度合い毎に上記欠陥が
出現する確率である第2の出現確率を演算する第6の演
算手段と、予め決められ上記外観検査装置が上記特徴量
の各度合いの画像を検出できる確率である第2の検出確
率と上記第2の出現確率と上記被検査物に対して上記特
徴量の各度合い毎に予め決められた第2の重要度に基づ
いて上記被検査物の画像データが有する上記特徴量の度
合い以外の上記特徴量の度合いの分布確率を演算する第
7の演算手段と、上記被検査物の濃淡度階調を有する画
像データの出現確率と上記分布確率との積に上記第4の
演算手段によって演算された除算値を加算する第8の演
算手段とを備え、上記第8の演算手段によって演算され
た加算値を上記外観検査装置の検査能力の評価値とする
ことを特徴とする外観検査装置のための検査能力評価装
置。
(8) In an inspection ability evaluation device for an appearance inspection device that photographs an object to be inspected and inspects defects on the surface of the object based on the data of the photographed image, the surface is inspected at each predetermined gray level. a first calculation means that calculates a first appearance probability that is a probability that the defect will appear based on data of an image of the object to be inspected that has a defect; a first detection probability that is a probability of detecting a gray scale image; a first appearance probability; and a predetermined first importance level for each gray scale for the object to be inspected; a second calculation means for calculating a first sum, which is a sum of products for each tone, over all the grayscale levels; and each grayscale level of the first appearance probability and the first importance level. a third calculation means for calculating a second sum, which is a sum of products for each key, over all the grayscale levels; and a fourth calculation means for dividing the first sum by the second sum. , a fifth step of calculating the appearance probability of image data having gray scale of the object to be inspected based on the image data of the object to be inspected;
a calculation means for calculating a second appearance probability, which is the probability that the defect appears for each degree of the feature amount of the image representing the feature of the image of the object to be inspected, based on the image data of the object to be inspected; a sixth calculation means, a second detection probability that is predetermined and is a probability that the appearance inspection device can detect an image of each degree of the feature amount, the second appearance probability, and the above for the object to be inspected; a seventh operation for calculating the distribution probability of the degree of the feature amount other than the degree of the feature amount that the image data of the object to be inspected has based on a second degree of importance predetermined for each degree of the feature amount; means, and an eighth calculation means for adding the division value calculated by the fourth calculation means to the product of the appearance probability of the image data having the density gradation of the object to be inspected and the distribution probability. An inspection ability evaluation device for a visual inspection device, characterized in that the added value calculated by the eighth calculation means is used as an evaluation value of the inspection ability of the visual inspection device.
(9)上記画像の特徴量が、被検査物の表面における汚
れ欠陥の面積に対応する画素数又は被検査物の周囲長さ
であることを特徴とする請求項第1項、第3項、第5項
、又は第7項記載の外観検査装置のための検査能力評価
方法。
(9) Claims 1 and 3, wherein the feature amount of the image is the number of pixels corresponding to the area of a dirt defect on the surface of the object to be inspected or the circumference length of the object to be inspected; 5. An inspection ability evaluation method for the appearance inspection device according to item 5 or 7.
(10)上記画像の特徴量が、被検査物の表面における
汚れ欠陥の面積に対応する画素数又は被検査物の周囲長
さであることを特徴とする請求項第2項、第4項、第6
項、又は第8項記載の外観検査装置のための検査能力評
価装置。
(10) Claims 2 and 4, wherein the feature amount of the image is the number of pixels corresponding to the area of a dirt defect on the surface of the object to be inspected or the circumference length of the object to be inspected; 6th
8. An inspection ability evaluation device for the appearance inspection device according to item 1 or item 8.
JP63075182A 1988-03-28 1988-03-28 Method and device for evaluating inspection capacity for appearance inspector Pending JPH01245365A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63075182A JPH01245365A (en) 1988-03-28 1988-03-28 Method and device for evaluating inspection capacity for appearance inspector

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63075182A JPH01245365A (en) 1988-03-28 1988-03-28 Method and device for evaluating inspection capacity for appearance inspector

Publications (1)

Publication Number Publication Date
JPH01245365A true JPH01245365A (en) 1989-09-29

Family

ID=13568806

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63075182A Pending JPH01245365A (en) 1988-03-28 1988-03-28 Method and device for evaluating inspection capacity for appearance inspector

Country Status (1)

Country Link
JP (1) JPH01245365A (en)

Similar Documents

Publication Publication Date Title
JP3581149B2 (en) Method and apparatus for identifying an object using a regular sequence of boundary pixel parameters
JP3884834B2 (en) Defect inspection method and apparatus
JP3333472B2 (en) Non-destructive detection method and device of blood egg in brown chicken egg
JPH01245365A (en) Method and device for evaluating inspection capacity for appearance inspector
JP3342581B2 (en) Automatic coating film deterioration diagnosis method and apparatus
JPH08145907A (en) Inspection equipment of defect
JPH06116914A (en) Film deterioration diagnostic method and device thereof
JP3745075B2 (en) Film thickness measuring device
JPH01231181A (en) Method and device for evaluating inspection capacity for visual inspecting device
JPH01206240A (en) Evaluating method and apparatus of checking capacity for external appearance checking apparatus
JPH08145904A (en) Inspection equipment of bright defect/dark defect
JP2638121B2 (en) Surface defect inspection equipment
JP2005172649A (en) Apparatus for inspecting defect
JPH05130512A (en) Picture element defect measuring instrument for solid-state image pickup element
JPH0735699A (en) Method and apparatus for detecting surface defect
JPH08189902A (en) Picture processing device
JP6690316B2 (en) Defect inspection apparatus, defect inspection method and defect inspection system for sheet-like inspected object
JPH04152254A (en) Surface state inspection device
CN117636046A (en) Steel surface defect detection method, device, detection platform and storage medium
CN118071216A (en) Multi-dimensional visual unqualified data analysis method based on LIMS system
JP2004347363A (en) Method for inspecting display quality of electronic display through degree of disorder of luminance distribution
JPH04152251A (en) Surface state inspection device
JP3785693B2 (en) Image processing inspection equipment
JPS5938634A (en) Non-destructive automatic inspection apparatus
JPH08101140A (en) Sheet fish-eye measuring method and device