JP2019045451A - Inspection apparatus, inspection method and program - Google Patents

Inspection apparatus, inspection method and program Download PDF

Info

Publication number
JP2019045451A
JP2019045451A JP2017172038A JP2017172038A JP2019045451A JP 2019045451 A JP2019045451 A JP 2019045451A JP 2017172038 A JP2017172038 A JP 2017172038A JP 2017172038 A JP2017172038 A JP 2017172038A JP 2019045451 A JP2019045451 A JP 2019045451A
Authority
JP
Japan
Prior art keywords
image
inspection
defect
pixel value
difference
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
JP2017172038A
Other languages
Japanese (ja)
Inventor
勇樹 井門
Yuki Imon
勇樹 井門
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.)
Dai Nippon Printing Co Ltd
Original Assignee
Dai Nippon Printing 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 Dai Nippon Printing Co Ltd filed Critical Dai Nippon Printing Co Ltd
Priority to JP2017172038A priority Critical patent/JP2019045451A/en
Publication of JP2019045451A publication Critical patent/JP2019045451A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Image Analysis (AREA)
  • Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)

Abstract

To provide an inspection apparatus and the like that improve convenience of inspection.SOLUTION: An inspection apparatus that detects a defect of an inspection object by comparing an inspection image 200 which is obtained by imaging the inspection object with a reference image 100 calculates a difference of pixel values between the inspection image 200 and the reference image 100 to create a difference image 300, and creates two mask images 301a and 301b using edge expansion images 202 and 102 in which edges of the inspection image 200 and the reference image 100 are expanded relative to the difference image 300. Further, noise removal is performed by creating a composite image 302 in which two mask images 301a and 301b are synthesized, subtracting a predetermined value from a pixel value of the composite image 302, and making the pixel value of a pixel in which the pixel value is smaller than 0 as 0. The inspection apparatus detects the defect using the composite image 302 after performing the noise removal.SELECTED DRAWING: Figure 5

Description

本発明は、画像処理技術を用いた検査装置、検査方法、およびプログラムに関する。   The present invention relates to an inspection apparatus, an inspection method, and a program using image processing technology.

製造現場では、撮影装置で製品を撮影した検査画像から製品の欠陥の有無を検査するといったことが行われている。その検査手法としては、検査画像を基準画像と比較して欠陥の検出を行うことが多い。   At a manufacturing site, it is carried out to inspect the presence or absence of a defect of a product from an inspection image obtained by photographing the product with a photographing device. As the inspection method, defects are often detected by comparing an inspection image with a reference image.

特許文献1では、基準画像の画素値と検査画像の画素値の差分をとって得た差分画像を用いて汚れと抜けの欠陥画像を作成し、欠陥画像の画素値を所定の閾値で二値化して汚れや抜けの欠陥候補を抽出し、その面積により欠陥候補が真の欠陥であるか否かを判定することが記載されている。   In Patent Document 1, a defect image of dirt and omission is created using a difference image obtained by taking the difference between the pixel value of the reference image and the pixel value of the inspection image, and the pixel value of the defect image is binary with a predetermined threshold. It is described that the defect candidate of dirt or omission is extracted and the area is used to determine whether the defect candidate is a true defect or not.

特許第4844784号Patent No. 4844784

しかしながら、上記の検査方法には検査の利便性の面で課題があった。例えば従来の手法では欠陥画像の全画素の画素値に対して閾値との比較処理を行うため、処理速度が遅くなる。また欠陥画像には、撮影装置の受光素子の感度のばらつき等に伴ってノイズが生じているため、この後に続く欠陥候補の抽出処理においてノイズを考慮した閾値を慎重に設定する必要がある。   However, the above inspection method has problems in terms of the convenience of the inspection. For example, in the conventional method, the processing speed is reduced because the comparison processing with the threshold value is performed on the pixel values of all pixels of the defect image. Further, since noise is generated in the defect image due to the variation of the sensitivity of the light receiving element of the imaging device, etc., it is necessary to carefully set the threshold considering noise in the subsequent defect candidate extraction processing.

本発明は上記の問題に鑑みてなされたものであり、検査の利便性を向上させた検査装置等を提供することを目的とする。   The present invention has been made in view of the above problems, and an object of the present invention is to provide an inspection apparatus and the like in which the convenience of the inspection is improved.

前述した課題を解決するための第1の発明は、検査対象を撮影して得られた検査画像を基準画像と比較することで前記検査対象の欠陥を検出する検査装置であって、前記検査画像と前記基準画像の間で画素値の差分をとって差分画像を作成する差分画像作成部と、前記差分画像または前記差分画像に基づいて作成された画像の画素値から所定値を引き、画素値が0未満となった画素の画素値を0とすることでノイズ除去を行うノイズ除去部と、前記ノイズ除去を行った後の画像または当該画像に基づいて作成された画像を用いて欠陥の検出を行う欠陥検出部と、を有することを特徴とする検査装置である。   A first invention for solving the above-mentioned problems is an inspection apparatus for detecting a defect of the inspection object by comparing an inspection image obtained by photographing the inspection object with a reference image, the inspection image And a difference image generation unit that generates a difference image by taking a difference of pixel values between the reference image and the reference image, and subtracting a predetermined value from pixel values of the difference image or an image generated based on the difference image; Detection of defects using a noise removal unit that performs noise removal by setting the pixel value of a pixel whose value is less than 0 to 0, an image after the noise removal is performed, or an image created based on the image And a defect detection unit that performs the inspection.

本発明では、画像から欠陥の検出を行う時点で、画素値から所定値を引くことによるノイズ除去が既に行われているため、欠陥の検出時にノイズを考慮する必要がなくなる。また、ノイズ除去時に画素値が0となった部分は欠陥の検出時に考慮しなくてよく、解析対象から除外できるので、処理の高速化を図ることができる。そのため、検査の利便性を向上させることができる。   In the present invention, at the time of detection of a defect from an image, noise removal by subtracting a predetermined value from a pixel value has already been performed, so it is not necessary to consider noise when detecting a defect. Further, the part where the pixel value is 0 at the time of noise removal does not have to be considered at the time of detection of a defect, and can be excluded from the analysis target, so that the processing speed can be increased. Therefore, the convenience of the inspection can be improved.

前記欠陥検出部は、前記ノイズ除去を行った後の画像または当該画像に基づいて作成された画像の画素値を所定の閾値で二値化して欠陥候補を抽出し、前記欠陥候補の面積に基づいて前記欠陥候補が真の欠陥であるか否かを判定することが望ましい。
欠陥の検出時には、例えばノイズ除去後の画像の画素値を閾値と比較して欠陥候補を抽出することができる。この際、上記したように閾値を設定するにあたってノイズは考慮しなくてよく、また画素値が0の部分は解析対象から除外できるので、画素値と閾値との比較判定処理を画像全面で行う必要がなく、処理の高速化が実現される。
The defect detection unit extracts a defect candidate by binarizing the pixel value of the image after the noise removal or the image created based on the image with a predetermined threshold value, and based on the area of the defect candidate It is desirable to determine whether the defect candidate is a true defect.
At the time of detection of a defect, for example, the pixel value of the image after noise removal can be compared with a threshold value to extract a defect candidate. At this time, noise may not be taken into consideration when setting the threshold as described above, and since the portion where the pixel value is 0 can be excluded from the analysis target, it is necessary to perform comparison and determination processing of the pixel value and the threshold over the entire image Processing speed can be realized.

前記検査画像のエッジを膨張させたエッジ膨張画像を用いて前記差分画像に生じたエッジ部分を除去するマスク処理を行って第1のマスク画像を作成するとともに、前記基準画像のエッジを膨張させたエッジ膨張画像を用いて前記差分画像に生じたエッジ部分を除去するマスク処理を行って第2のマスク画像を作成するマスク処理部をさらに有し、前記ノイズ除去部は、前記第1、第2のマスク画像を合成した合成画像の画素値から前記所定値を引いてノイズ除去を行うことが望ましい。
上記のマスク処理を行うことで、検査画像と基準画像の位置ずれ等に伴って差分画像にエッジ部分が顕在化する場合にも、これを欠陥として誤検出するのを防ぐことができ、また上記2つのマスク画像を合成した合成画像を欠陥の検出に用いることで欠陥を確実に検出することができる。本発明ではこの合成画像に対し前記のノイズ除去を行うことで、ノイズ除去処理が1回で済み、処理が高速化される。
An edge expansion image obtained by expanding an edge of the inspection image is used to perform a mask process for removing an edge portion generated in the difference image to create a first mask image, and expand an edge of the reference image. The image processing apparatus further includes a mask processing unit that performs mask processing for removing an edge portion generated in the difference image using an edge expansion image to create a second mask image, and the noise removal unit includes the first and second noise removal units. It is desirable to perform the noise removal by subtracting the predetermined value from the pixel value of the combined image obtained by combining the mask images of
By performing the mask processing described above, even when an edge portion appears in a difference image due to positional deviation between an inspection image and a reference image, it is possible to prevent erroneous detection as a defect, and Defects can be reliably detected by using a composite image obtained by combining two mask images for defect detection. In the present invention, the noise removal process is performed only once by performing the noise removal on the composite image, thereby speeding up the process.

第2の発明は、検査対象を撮影して得られた検査画像を基準画像と比較することで前記検査対象の欠陥を検出する検査方法であって、コンピュータが、前記検査画像と前記基準画像の間で画素値の差分をとって差分画像を作成するステップと、前記差分画像または前記差分画像に基づいて作成された画像の画素値から所定値を引き、画素値が0未満となった画素の画素値を0とすることでノイズ除去を行うステップと、前記ノイズ除去を行った後の画像または当該画像に基づいて作成された画像を用いて欠陥の検出を行うステップと、を実行することを特徴とする検査方法である。   A second invention is an inspection method for detecting a defect of the inspection object by comparing an inspection image obtained by photographing the inspection object with a reference image, and a computer is configured to compare the inspection image and the reference image. And subtracting a predetermined value from the pixel value of the image created based on the difference image or the difference image, and calculating the difference between the pixel values between the pixels, and subtracting the predetermined value from the pixel value of the image created based on the difference image Performing a step of removing noise by setting the pixel value to 0, and a step of detecting a defect using the image after the removal of the noise or an image created based on the image It is an inspection method to be characterized.

第3の発明は、コンピュータを、検査対象を撮影して得られた検査画像を基準画像と比較することで前記検査対象の欠陥を検出する検査装置であって、前記検査画像と前記基準画像の間で画素値の差分をとって差分画像を作成する差分画像作成部と、前記差分画像または前記差分画像に基づいて作成された画像の画素値から所定値を引き、画素値が0未満となった画素の画素値を0とすることでノイズ除去を行うノイズ除去部と、前記ノイズ除去を行った後の画像または当該画像に基づいて作成された画像を用いて欠陥の検出を行う欠陥検出部と、を有する検査装置として機能させるためのプログラムである。   A third invention is an inspection apparatus for detecting a defect of the inspection object by comparing a computer with an inspection image obtained by photographing the inspection object with a reference image, and the inspection image and the reference image A predetermined value is subtracted from the pixel value of an image created based on the difference image or the difference image or the difference image, and a pixel value becomes less than 0. A noise removal unit that performs noise removal by setting the pixel value of each pixel to 0, and a defect detection unit that performs defect detection using an image after the noise removal or an image created based on the image And a program for functioning as an inspection device.

本発明により、検査の利便性を向上させた検査装置等を提供することができる。   According to the present invention, it is possible to provide an inspection apparatus etc. in which the convenience of inspection is improved.

検査システム1を示す図。FIG. 1 shows an inspection system 1; 検査装置3のハードウェア構成を示す図。FIG. 2 is a diagram showing a hardware configuration of an inspection device 3. 基準画像100と検査画像200の例。The example of the reference | standard image 100 and the test | inspection image 200. FIG. 検査装置3の機能構成を示す図。FIG. 2 is a diagram showing a functional configuration of the inspection device 3. 検査方法の流れを示すフローチャート。The flowchart which shows the flow of the inspection method. エッジ画像101とエッジ膨張画像102の例。The example of the edge image 101 and the edge expansion image 102. FIG. エッジ画像201とエッジ膨張画像202の例。The example of the edge image 201 and the edge expansion image 202. FIG. 差分画像300の例。The example of the difference image 300. マスク画像301a、301bの例。The example of mask image 301a, 301b. 合成画像302の例。An example of a composite image 302. ノイズ除去処理と欠陥候補の抽出処理について説明する図。The figure explaining a noise removal process and the extraction process of a defect candidate. 差分画像400の例。The example of the difference image 400. マスク画像401a、401bの例。The example of mask image 401a, 401b. 合成画像402の例。An example of a composite image 402.

以下、図面に基づいて本発明の好適な実施形態について詳細に説明する。   Hereinafter, preferred embodiments of the present invention will be described in detail based on the drawings.

(1.検査システム1)
図1は本発明の実施形態に係る検査装置3を含む検査システム1を示す図である。図1に示すように、検査システム1は、検査装置3、撮影装置5等を有する。
(1. Inspection system 1)
FIG. 1 is a view showing an inspection system 1 including an inspection apparatus 3 according to an embodiment of the present invention. As shown in FIG. 1, the inspection system 1 includes an inspection device 3, an imaging device 5, and the like.

検査装置3は、検査システム1での検査全体を制御し、後述する手順により検査対象の欠陥検査を行うものである。検査対象は例えば用紙10に印刷された絵柄(印刷物)であり、その絵柄を撮影した検査画像に基づいて絵柄に欠陥が無いか検査が行われる。ただし検査対象はこれに限らず、回路パターンや印刷版などであってもよい。   The inspection device 3 controls the entire inspection in the inspection system 1 and performs defect inspection of an inspection object according to a procedure described later. The inspection target is, for example, a pattern (printed matter) printed on the sheet 10, and it is checked whether there is a defect in the pattern based on the inspection image obtained by photographing the pattern. However, the inspection target is not limited to this, and may be a circuit pattern or a printing plate.

図2は検査装置3のハードウェア構成を示す図である。図2に示すように、検査装置3は、例えば制御部31、記憶部32、入力部33、表示部34、通信制御部35等をバス36により接続して構成したコンピュータにより実現できる。但しこれに限ることなく、適宜様々な構成をとることができる。   FIG. 2 is a diagram showing a hardware configuration of the inspection apparatus 3. As shown in FIG. 2, the inspection apparatus 3 can be realized by a computer configured by connecting, for example, the control unit 31, the storage unit 32, the input unit 33, the display unit 34, and the communication control unit 35 via the bus 36. However, without being limited to this, various configurations can be taken as appropriate.

制御部31はCPU、ROM、RAMなどから構成される。CPUは、記憶部32、ROMなどの記憶媒体に格納された検査装置3の処理に係るプログラムをRAM上のワークエリアに呼び出して実行する。ROMは不揮発性メモリであり、ブートプログラムやBIOSなどのプログラム、データなどを恒久的に保持している。RAMは揮発性メモリであり、記憶部32、ROMなどからロードしたプログラムやデータを一時的に保持するとともに、制御部31が各種処理を行うために使用するワークエリアを備える。   The control unit 31 includes a CPU, a ROM, a RAM, and the like. The CPU calls a program related to the processing of the inspection apparatus 3 stored in the storage unit 32 or a storage medium such as a ROM to a work area on the RAM and executes the program. The ROM is a non-volatile memory, which permanently holds a boot program, a program such as a BIOS, data and the like. The RAM is a volatile memory, and temporarily stores programs and data loaded from the storage unit 32 and the ROM, and includes a work area used by the control unit 31 to perform various processes.

記憶部32はハードディスクドライブやソリッドステートドライブ、フラッシュメモリ等であり、制御部31が実行するプログラム、プログラム実行に必要なデータ、OSなどが格納される。これらのプログラムやデータは、制御部31により必要に応じて読み出され実行される。   The storage unit 32 is a hard disk drive, a solid state drive, a flash memory or the like, and stores a program executed by the control unit 31, data necessary for program execution, an OS, and the like. These programs and data are read and executed by the control unit 31 as needed.

入力部33は検査装置3に各種の設定入力を行うものである。
表示部34は例えば液晶ディスプレイ等である。
通信制御部35はネットワーク等を介した通信を媒介する通信インタフェースであり、撮影装置5等との間で通信を行う。
バス36は、検査装置3の各部間の制御信号、データ信号等の授受を媒介する経路である。
The input unit 33 is used to input various settings to the inspection apparatus 3.
The display unit 34 is, for example, a liquid crystal display.
The communication control unit 35 is a communication interface that mediates communication via a network or the like, and communicates with the imaging device 5 or the like.
The bus 36 is a path that mediates the exchange of control signals, data signals, and the like between the respective units of the inspection apparatus 3.

撮影装置5は検査対象を撮影する。撮影装置5は複数の受光素子、および集光レンズ等を有し、それぞれの受光素子で受光した光を電気信号に変換する。撮影装置5には例えばCCD(Charge Coupled Device)カメラ等のエリアカメラが用いられるが、これに限ることはなく、ラインカメラなどであってもよい。特に図示しないが、本実施形態では検査対象の撮影用の照明なども別途設けられる。   The imaging device 5 captures an inspection object. The photographing device 5 includes a plurality of light receiving elements, a condensing lens, and the like, and converts the light received by each light receiving element into an electric signal. For example, an area camera such as a CCD (Charge Coupled Device) camera is used as the photographing device 5, but the invention is not limited thereto, and a line camera or the like may be used. Although not particularly illustrated, in the present embodiment, illumination for photographing an inspection object is separately provided.

本実施形態では、検査装置3による欠陥検査を行うにあたり、検査に用いる基準画像を記憶部32に格納しておく。図3(a)はこの基準画像100の例である。基準画像100は、欠陥の無い検査対象を表わす正の画像であり、例えば欠陥の無い検査対象を撮影して得られる。   In the present embodiment, when performing a defect inspection by the inspection device 3, a reference image used for the inspection is stored in the storage unit 32. FIG. 3A is an example of this reference image 100. FIG. The reference image 100 is a positive image representing a defect-free inspection object, and can be obtained, for example, by imaging a defect-free inspection object.

一方、検査装置3は、撮影装置5によって検査対象を撮影して得られた検査画像について、基準画像100との比較により欠陥の検出を行う。図3(b)はこの検査画像200の例であり、本実施形態では図示の箇所に汚れ欠陥aと抜け欠陥bがあるものとする。なお、本実施形態では基準画像100と検査画像200をグレースケール画像とし、その明暗が画素値(階調値)で表される。画素値は、輝度が高くなるにつれて高くなる。   On the other hand, the inspection apparatus 3 detects a defect on the inspection image obtained by photographing the inspection object by the imaging apparatus 5 in comparison with the reference image 100. FIG. 3B shows an example of the inspection image 200. In the present embodiment, it is assumed that there are a dirt defect a and a drop-out defect b in the illustrated portion. In the present embodiment, the reference image 100 and the inspection image 200 are gray scale images, and the contrast is represented by pixel values (gradation values). The pixel value increases as the brightness increases.

汚れ欠陥aは、汚れによる検査対象からの色(輝度を含む概念をいう)の変化が画像において生じる部分であり、抜け欠陥bは、検査対象において本来形成されるべき部分が形成されないことによる検査対象からの色の変化が画像において生じる部分である。   The dirt defect a is a portion where a change in color (a concept including brightness) from the inspection object due to dirt occurs in the image, and the omission defect b is an inspection due to the fact that a portion to be originally formed in the inspection object It is the part where a change in color from the subject occurs in the image.

本実施形態では、検査対象の絵柄(パターン)を、高輝度と低輝度の背景を並べ、それぞれの背景上に低輝度と高輝度のドーナツ状の部分を形成したものとする。また汚れ欠陥aによって本来輝度の高い部分の輝度が低くなり、抜け欠陥bによって本来輝度の低い部分の輝度が高くなるものとする。   In the present embodiment, it is assumed that patterns (patterns) to be inspected are formed by arranging high-brightness and low-brightness backgrounds and forming low-brightness and high-brightness toroidal portions on the respective backgrounds. In addition, it is assumed that the luminance of the portion where the luminance is originally high decreases due to the dirt defect a, and the luminance of the portion where the luminance is originally low becomes high due to the omission defect b.

図4は検査装置3の機能構成を示す図である。図4に示すように、検査装置3は、差分画像作成部11、マスク処理部12、画像合成部13、ノイズ除去部14、欠陥検出部15等を有する。   FIG. 4 is a diagram showing a functional configuration of the inspection apparatus 3. As shown in FIG. 4, the inspection apparatus 3 includes a difference image generation unit 11, a mask processing unit 12, an image synthesis unit 13, a noise removal unit 14, a defect detection unit 15, and the like.

差分画像作成部11は、基準画像100と検査画像200の間で画素値の差分をとって差分画像を作成するものである。本実施形態では、上記した汚れ欠陥aと抜け欠陥bを別々に検出するため、基準画像100の画素値から検査画像200の画素値を引いた差分画像と、検査画像200の画素値から基準画像100の画素値を引いた差分画像をそれぞれ作成する。   The difference image generation unit 11 generates a difference image by calculating the difference between the pixel values of the reference image 100 and the inspection image 200. In this embodiment, in order to separately detect the above-described dirt defect a and dropout defect b, a difference image obtained by subtracting the pixel value of the inspection image 200 from the pixel value of the reference image 100 and the reference image from the pixel values of the inspection image 200 The difference image which subtracted 100 pixel values is each created.

マスク処理部12は、各差分画像に対し、基準画像100と検査画像200のエッジを膨張させたエッジ膨張画像を用いてそれぞれマスク処理を行い、2つのマスク画像を作成するものである。   The mask processing unit 12 performs mask processing on each difference image using an edge expansion image obtained by expanding the edges of the reference image 100 and the inspection image 200 to create two mask images.

画像合成部13は、上記2つのマスク画像を合成して合成画像を作成するものである。   The image combining unit 13 combines the two mask images to create a combined image.

ノイズ除去部14は、合成画像の画素値から所定値を引き、画素値が0未満となった画素の画素値を0とすることでノイズ除去を行うものである。   The noise removing unit 14 performs noise removal by subtracting a predetermined value from the pixel value of the composite image and setting the pixel value of the pixel whose pixel value is less than 0 to 0.

欠陥検出部15は、ノイズ除去を行った後の合成画像を用いて汚れ欠陥aや抜け欠陥bの検出を行うものである。   The defect detection unit 15 detects the dirt defect a and the missing defect b using the composite image after the noise removal.

(2.検査方法)
次に、本実施形態に係る検査方法について説明する。図5は検査方法の流れを示すフローチャートであり、図5の各ステップは検査装置3の制御部31によって実行される。ここでは、前記したように検査に用いる基準画像100が検査装置3の記憶部32に格納されており、検査対象を撮影装置5によって撮影した検査画像200が検査装置3の制御部31によって取得された状態とする。
(2. Inspection method)
Next, the inspection method according to the present embodiment will be described. FIG. 5 is a flowchart showing the flow of the inspection method, and each step of FIG. 5 is executed by the control unit 31 of the inspection apparatus 3. Here, as described above, the reference image 100 used for the inspection is stored in the storage unit 32 of the inspection device 3, and the inspection image 200 obtained by photographing the inspection object by the imaging device 5 is acquired by the control unit 31 of the inspection device 3 Be in the

本実施形態では、まず検査装置3が基準画像100のエッジを抽出し(S1)、基準画像100のエッジを膨張させたエッジ膨張画像102を作成する(S2)。図6(a)は基準画像100のエッジを抽出したエッジ画像101の例であり、図6(b)はそのエッジを膨張させたエッジ膨張画像102の例である。エッジの抽出および膨張については既知の手法を適用できるので、詳細な説明は省略する。   In the present embodiment, first, the inspection device 3 extracts an edge of the reference image 100 (S1), and creates an edge expansion image 102 in which the edge of the reference image 100 is expanded (S2). FIG. 6A shows an example of the edge image 101 in which the edge of the reference image 100 is extracted, and FIG. 6B shows an example of the edge expansion image 102 in which the edge is expanded. A known method can be applied to edge extraction and expansion, and thus detailed description will be omitted.

検査装置3は、検査対象を撮影して得られた検査画像200についても、上記と同様にエッジ抽出(S3)とエッジの膨張を行ってエッジ膨張画像202を作成する(S4)。図7(a)は検査画像200からエッジを抽出したエッジ画像201の例であり、図7(b)はそのエッジを膨張させたエッジ膨張画像202の例である。   The inspection apparatus 3 also performs edge extraction (S3) and edge expansion on the inspection image 200 obtained by photographing the inspection object as described above to create an edge expansion image 202 (S4). FIG. 7A is an example of an edge image 201 obtained by extracting an edge from the inspection image 200, and FIG. 7B is an example of an edge expanded image 202 obtained by expanding the edge.

本実施形態では、基準画像100、検査画像200、およびエッジ膨張画像102、202を用いて検査画像200における汚れ欠陥aと抜け欠陥bの検査を行う。   In the present embodiment, using the reference image 100, the inspection image 200, and the edge expansion images 102 and 202, the inspection of the dirt defect a and the omission defect b in the inspection image 200 is performed.

汚れ欠陥aの検査としては、まず基準画像100の画素値から検査画像200の画素値を引いた差分画像300を作成する(S5)。図8は差分画像300の例である。ここでは、基準画像100と検査画像200の対応する位置にある画素同士で、基準画像100の画素の画素値から検査画像200の画素の画素値を引く演算を行う。演算後の値が0未満になる場合は、その画素の画素値を0とする。   As the inspection of the stain defect a, first, a difference image 300 is created by subtracting the pixel value of the inspection image 200 from the pixel value of the reference image 100 (S5). FIG. 8 is an example of the difference image 300. Here, calculation is performed by subtracting the pixel value of the pixel of the inspection image 200 from the pixel value of the pixel of the reference image 100 between the pixels at corresponding positions of the reference image 100 and the inspection image 200. If the value after calculation is less than 0, the pixel value of that pixel is set to 0.

基準画像100の画素値から検査画像200の画素値を引くことで、差分画像300に汚れ欠陥aが顕在化するが、図8の例では、用紙10の位置ずれ等に伴って、検査画像200が基準画像100に対してわずかに位置ずれし、絵柄のエッジ部分の一部も顕在化している。これは欠陥ではないので、以降の処理で差分画像300から除去する必要がある。   By subtracting the pixel value of the inspection image 200 from the pixel value of the reference image 100, the stain defect a appears in the difference image 300. However, in the example of FIG. Are slightly misaligned with respect to the reference image 100, and part of the edge portion of the pattern is also apparent. Since this is not a defect, it is necessary to remove it from the difference image 300 in the subsequent processing.

そのため、検査装置3は、エッジ膨張画像202を用いて差分画像300をマスク処理し、マスク画像301a(第1のマスク画像)を作成する(S6)。図9(a)はマスク画像301aの例である。ここでは、差分画像300の画素の画素値を、エッジ膨張画像202において対応する位置にある画素の画素値と比較し、差分画像300の方が画素値が高い場合はその画素の画素値をそのままとし、それ以外の場合はその画素の画素値を0とする。   Therefore, the inspection apparatus 3 performs mask processing on the difference image 300 using the edge expansion image 202, and creates a mask image 301a (first mask image) (S6). FIG. 9A shows an example of the mask image 301a. Here, the pixel value of the pixel of the difference image 300 is compared with the pixel value of the pixel at the corresponding position in the edge expansion image 202, and if the pixel value of the difference image 300 is higher, the pixel value of that pixel is used as it is. The pixel value of that pixel is set to 0 otherwise.

検査装置3は、さらにエッジ膨張画像102を用いて差分画像300をマスク処理し、マスク画像301b(第2のマスク画像)を作成する(S7)。図9(b)はマスク画像301bの例である。マスク処理の手法は上記と同様である。   The inspection apparatus 3 further mask-processes the difference image 300 using the edge expansion image 102, and creates a mask image 301b (second mask image) (S7). FIG. 9B is an example of the mask image 301 b. The mask processing method is the same as described above.

図9(a)、(b)に示すように、エッジ膨張画像102、202によってマスク処理を行うことで前記したエッジ部分は除去される。ただし、エッジ膨張画像102、202のどちらでマスク処理を行うかによって汚れ欠陥aの現れ方(残り方)も違うので、本実施形態では、汚れ欠陥aを確実に検出するため、さらにマスク画像301a、301bを合成し、合成画像302を作成する(S8)。   As shown in FIGS. 9A and 9B, by performing mask processing with the edge expansion images 102 and 202, the edge portions described above are removed. However, the appearance (remaining manner) of the dirt defect a is different depending on which of the edge expansion images 102 and 202 is used to perform the mask processing, so in the present embodiment, the dirt image a is detected with certainty. , 301b are synthesized to generate a synthesized image 302 (S8).

図10は合成画像302の例である。ここでは、マスク画像301a、301bの間で対応する位置にある画素の画素値を比較し、マスク画像301aの画素の方が画素値が高い場合はその位置の画素値をマスク画像301aの画素の画素値とし、マスク画像301bの画素の方が画素値が高い場合はその位置の画素値をマスク画像301bの画素の画素値とする。マスク画像301a、301bの画素の画素値が同じ場合は、当該画素値をその位置の画素値とする。   FIG. 10 shows an example of the composite image 302. Here, the pixel values of the pixels at corresponding positions are compared between the mask images 301a and 301b, and if the pixel values of the pixels of the mask image 301a are higher, the pixel values of those positions are the pixel values of the pixels of the mask image 301a. When the pixel value of the pixel of the mask image 301b is higher than the pixel value, the pixel value of the position is set as the pixel value of the pixel of the mask image 301b. If the pixel values of the pixels of the mask images 301a and 301b are the same, the pixel value is set as the pixel value of that position.

検査装置3は、この合成画像302について、各画素の画素値から所定値を引き、画素値が0未満となる画素の画素値を0とすることで、ノイズ除去を行う(S9)。   The inspection apparatus 3 performs noise removal by subtracting a predetermined value from the pixel value of each pixel and setting the pixel value of the pixel whose pixel value is less than 0 to 0 in the composite image 302 (S9).

すなわち、本実施形態では撮影装置5の受光素子の感度のばらつき、照明光の強さのばらつき、レンズの収差等に起因して合成画像302の画素値にノイズ(微小な画素値の変動)が生じていることがある。図11(a)のAはその例である。   That is, in the present embodiment, noise (a slight change in pixel value) is generated in the pixel value of the composite image 302 due to variations in sensitivity of light receiving elements of the imaging device 5, variations in intensity of illumination light, aberration of a lens, and the like. It may have happened. A in FIG. 11A is an example.

通常の処理では、合成画像302の画素値を閾値によって二値化して画素値が閾値以上の画素を欠陥候補として抽出し、その面積の大小等で欠陥候補が真の欠陥であるか否かの判定を行うことが多いが、前記したように、従来の手法では合成画像302の全画素の画素値に対して閾値との比較処理を行うため、演算に時間がかかり、処理速度の遅さにつながっている。   In normal processing, the pixel value of the composite image 302 is binarized with a threshold, and the pixel whose pixel value is equal to or larger than the threshold is extracted as a defect candidate, and whether the defect candidate is a true defect due to the size of the area or the like In many cases, the determination is performed, but as described above, since the conventional method performs comparison processing with the threshold value with respect to the pixel values of all the pixels of the composite image 302, it takes time for calculation, and processing speed is slow. linked.

また二値化の際の閾値はノイズを考慮して慎重に設定する必要があり、オペレータの経験等にも左右されやすい。実際にはノイズによって画素値が大きくなった(真の欠陥の無い)部分を誤って欠陥候補として抽出するのを防ぐためBに示すように高い値とすることが多く、真の欠陥が欠陥候補として抽出される時のサイズが小さくなり欠陥検出の精度が低下する要因となっている。   In addition, the threshold for binarization needs to be set carefully in consideration of noise, and is easily influenced by the experience of the operator. In practice, in order to prevent erroneous extraction of a portion where the pixel value is large (without a true defect) due to noise as a defect candidate, a high value is often used as shown in B, and a true defect is a defect candidate When it is extracted as a factor, the size becomes smaller and the accuracy of defect detection decreases.

そこで、本実施形態ではS9において合成画像302の各画素の画素値Aから予め定めた所定値を一律に引く演算を行い、A’に示すように演算後の値が0未満になる画素の画素値を0とする。この所定値は、ノイズのみ生じている(真の欠陥の無い)部分での演算後の値を0未満とするべく事前に定められている。   Therefore, in the present embodiment, in S9, the pixel value of each pixel of the composite image 302 is uniformly subtracted from the pixel value A of the pixel, and the pixel value of the pixel after calculation becomes less than 0 as indicated by A ′. The value is 0. This predetermined value is previously determined so as to make the value after calculation in a portion where only noise occurs (without a true defect) be less than zero.

検査装置3は、S9のノイズ除去処理を行った後の合成画像302に対し、汚れ欠陥aの検出処理を行う(S10)。ここでは、図11(b)に示すように合成画像302の画素値を所定の閾値Cと比較して二値化し、画素値が閾値C以上の画素を欠陥候補303として抽出する。そして、欠陥候補303の面積を基準値と比較することにより欠陥候補303が真の欠陥であるかどうかを判定する。例えば欠陥候補303の面積が基準値以上であれば、その欠陥候補303を真の欠陥とする。   The inspection apparatus 3 performs a detection process of the stain defect a on the composite image 302 after the noise removal process of S9 (S10). Here, as shown in FIG. 11B, the pixel value of the composite image 302 is compared with a predetermined threshold C to be binarized, and a pixel having a pixel value equal to or higher than the threshold C is extracted as a defect candidate 303. Then, the area of the defect candidate 303 is compared with a reference value to determine whether the defect candidate 303 is a true defect. For example, if the area of the defect candidate 303 is equal to or larger than the reference value, the defect candidate 303 is regarded as a true defect.

この場合、閾値Cは前記のノイズを考慮することなく設定できるので、オペレータの経験等にも左右されず、閾値Cを低い値に設定して欠陥候補を大きく抽出し、欠陥検出の精度を向上させることが可能になる。また画素値A’が0の部分は解析対象から除外し、画素値A’と閾値Cとの比較は画素値A’が0で無い部分についてのみ行えばよい。且つS9において各画素の画素値から一律に所定値を引く演算もごく短時間で行うことができるので、全体の演算に時間がかからず、処理速度を向上させることができる。   In this case, since the threshold C can be set without considering the noise, it is not influenced by the experience of the operator etc. The threshold C is set to a low value to extract a large number of defect candidates and improve the accuracy of defect detection. It will be possible to Further, the portion where the pixel value A 'is 0 is excluded from the analysis target, and the comparison between the pixel value A' and the threshold C may be performed only for the portion where the pixel value A 'is not 0. In addition, since the calculation of subtracting the predetermined value uniformly from the pixel value of each pixel can be performed in S9 in a very short time, the entire calculation does not take time, and the processing speed can be improved.

本実施形態では、以上の処理により検査画像200から汚れ欠陥aの検出を行う。なお、上記のマスク画像301a、301bと合成画像302は、本発明において「差分画像に基づいて作成された画像」に対応する。   In the present embodiment, the contamination defect a is detected from the inspection image 200 by the above processing. The mask images 301a and 301b and the composite image 302 described above correspond to the “image created based on the difference image” in the present invention.

次に、抜け欠陥bの検査について説明する。検査装置3は、抜け欠陥bの検査として、まず検査画像200の画素値から基準画像100の画素値を引いた差分画像400を作成する(S11)。   Next, inspection of the missing defect b will be described. The inspection apparatus 3 first creates a difference image 400 obtained by subtracting the pixel value of the reference image 100 from the pixel value of the inspection image 200 as the inspection of the missing defect b (S11).

図12は差分画像400の例である。S11では、検査画像200と基準画像100の対応する位置にある画素同士で、検査画像200の画素の画素値から基準画像100の画素の画素値を引く演算を行う。演算後の値が0未満になる場合は、その画素の画素値を0とする。検査画像200の画素値から基準画像100の画素値を引くことで差分画像400に抜け欠陥bが顕在化する。また両画像100、200の位置ずれに伴って絵柄のエッジ部分の一部も差分画像400に現れている。   FIG. 12 shows an example of the difference image 400. In S11, calculation is performed to subtract the pixel value of the pixel of the reference image 100 from the pixel value of the pixel of the inspection image 200 between the pixels at corresponding positions of the inspection image 200 and the reference image 100. If the value after calculation is less than 0, the pixel value of that pixel is set to 0. By subtracting the pixel value of the reference image 100 from the pixel value of the inspection image 200, the defect b appears in the difference image 400. Further, along with the positional deviation of both the images 100 and 200, a part of the edge portion of the pattern also appears in the difference image 400.

検査装置3は、この差分画像400に対しても、エッジ膨張画像202を用いてマスク処理し、マスク画像401a(第1のマスク画像)を作成するとともに(S12)、エッジ膨張画像102を用いてマスク処理し、マスク画像401b(第2のマスク画像)を作成する(S13)。図13(a)、(b)はそれぞれ差分画像400に対しエッジ膨張画像202、102によるマスク処理を行った後のマスク画像401a、401bの例であり、前記したエッジ部分が除去される。マスク処理の詳細は前記のS6、S7と同様である。   The inspection apparatus 3 also performs mask processing on the difference image 400 using the edge expansion image 202 to create a mask image 401 a (first mask image) (S 12), and uses the edge expansion image 102. A mask process is performed to create a mask image 401 b (second mask image) (S 13). FIGS. 13A and 13B show examples of the mask images 401a and 401b after the mask processing with the edge expansion images 202 and 102 is performed on the difference image 400, respectively, and the above-described edge portions are removed. The details of the mask process are the same as those in S6 and S7.

そして、検査装置3はマスク画像401a、401bを合成し、合成画像402を作成する(S14)。図14は合成画像402の例である。合成処理の詳細も前記のS8と同様である。   Then, the inspection apparatus 3 combines the mask images 401a and 401b to create a combined image 402 (S14). FIG. 14 shows an example of the composite image 402. The details of the synthesis process are also the same as in the above-described S8.

検査装置3は、この合成画像402についても、各画素の画素値から所定値を引き、画素値が0未満となる画素の画素値を0とすることで、ノイズ除去を行う(S15)。ノイズ除去処理の詳細も前記のS9と同様である。   The inspection apparatus 3 also performs noise removal by subtracting a predetermined value from the pixel value of each pixel and setting the pixel value of the pixel whose pixel value is less than 0 to 0 also in the composite image 402 (S15). The details of the noise removal process are also the same as those in S9.

検査装置3は、S15のノイズ除去処理を行った後の合成画像402に対し、抜け欠陥bの検出処理を行う(S16)。抜け欠陥bの検出処理の詳細も前記のS10と同様である。   The inspection apparatus 3 performs the detection process of the missing defect b on the composite image 402 after the noise removal process of S15 (S16). The details of the detection process of the missing defect b are also the same as those in S10 described above.

以上により検査画像200における抜け欠陥bを汚れ欠陥aと別々に抽出することができる。なお、上記のマスク画像401a、401bと合成画像402も、本発明において「差分画像に基づいて作成された画像」に対応する。   As described above, the missing defect b in the inspection image 200 can be extracted separately from the dirt defect a. The mask images 401a and 401b and the composite image 402 described above also correspond to the "image created based on the difference image" in the present invention.

以上説明したように、本実施形態では、S10、S16において合成画像302、402から欠陥の検出を行う時点で、前記の手法によるノイズ除去が行われているため、欠陥の検出時にノイズを考慮する必要がなくなる。また、ノイズ除去時に画素値が0となった部分は欠陥の検出時に考慮しなくてよく、解析対象から除外できるので、処理の高速化を図ることができる。そのため、検査の利便性を向上させることができる。   As described above, in the present embodiment, noise is removed by the above-described method when defects are detected from the composite images 302 and 402 in S10 and S16. There is no need. Further, the part where the pixel value is 0 at the time of noise removal does not have to be considered at the time of detection of a defect, and can be excluded from the analysis target, so that the processing speed can be increased. Therefore, the convenience of the inspection can be improved.

欠陥の検出時には、ノイズ除去後の合成画像302、402の画素値を閾値Cと比較して欠陥候補を抽出することができる。この際、上記したように閾値Cを設定するに当たってノイズは考慮しなくてよく、また画素値が0の部分は解析対象から除外できるので、画素値と閾値Cとの比較判定処理を画像全面で行う必要がなく、処理の高速化が実現される。   At the time of detection of a defect, pixel values of the combined image 302 and 402 after noise removal can be compared with the threshold C to extract a defect candidate. At this time, as described above, noise may not be taken into consideration when setting the threshold C, and a portion with a pixel value of 0 can be excluded from the analysis target. There is no need to do it, and the processing speed can be realized.

また、本実施形態では、差分画像300(400)に対し、エッジ膨張画像202、102を用いてマスク処理を行い、2つのマスク画像301a、301b(401a、401b)を作成した後、これらを合成して合成画像302(402)を作成するので、検査画像200と基準画像100の位置ずれ等に伴って差分画像300(400)にエッジ部分が顕在化する場合にも、これを欠陥として誤検出するのを防ぐことができ、また上記2つのマスク画像301a、301b(401a、401b)を合成した合成画像302(402)を欠陥の検出に用いることで欠陥を確実に検出することができる。本実施形態ではこの合成画像302(402)に対し前記のノイズ除去処理を行うことで、ノイズ除去処理が1回で済み、処理が高速化される。   Further, in the present embodiment, mask processing is performed on the difference image 300 (400) using the edge expansion images 202 and 102 to create two mask images 301a and 301b (401a and 401b), and then these are combined. Then, since the composite image 302 (402) is created, even if an edge portion appears in the difference image 300 (400) due to positional deviation between the inspection image 200 and the reference image 100, this is erroneously detected as a defect. Can be prevented, and defects can be reliably detected by using the composite image 302 (402) obtained by combining the two mask images 301a and 301b (401a and 401b) for defect detection. In the present embodiment, performing the noise removal process on the composite image 302 (402) allows the noise removal process to be performed only once, thereby speeding up the process.

しかしながら、本発明がこれに限ることはない。例えば本実施形態では汚れ欠陥aと抜け欠陥bを別々に検出するために2つの差分画像300、400を作成しているが、いずれか一方のみ作成してもよい。   However, the present invention is not limited thereto. For example, in the present embodiment, two differential images 300 and 400 are created to separately detect the dirt defect a and the drop-out defect b, but only one of them may be created.

また、本実施形態では合成画像302(402)に対しノイズ除去を行っているが、合成前のそれぞれのマスク画像301a、301b(401a、401b)に対してノイズ除去を行ってもよい。この場合、欠陥の検出を行う合成画像302(402)は、本発明において「ノイズ除去を行った後の画像に基づいて作成された画像」に対応する。   Further, although the noise removal is performed on the combined image 302 (402) in the present embodiment, the noise removal may be performed on the mask images 301a and 301b (401a and 401b) before combining. In this case, the composite image 302 (402) for detecting a defect corresponds to the "image created based on the image after noise removal" in the present invention.

さらに、場合によってはいずれか一方のマスク画像に対して直接ノイズ除去と欠陥検出を行ってもよく、この場合は他方のマスク画像の作成とマスク画像の合成処理が不要になる。さらに、マスク処理自体を省略して差分画像300(400)に対し直接ノイズ除去と欠陥検出を行うことも可能である。   Furthermore, in some cases, noise removal and defect detection may be performed directly on either one of the mask images, in which case the creation of the other mask image and the process of combining the mask images become unnecessary. Furthermore, it is also possible to perform noise removal and defect detection directly on the difference image 300 (400) by omitting the mask processing itself.

また、S10やS16における欠陥の検出方法も特に限定されない。本発明では、どのような検出方法を用いる場合であっても、欠陥の検出時にノイズを考慮する必要がなく、またノイズ除去時に画素値が0となった部分を欠陥の検出時に考慮しなくてよいので処理の高速化を図ることができる。   Moreover, the detection method of the defect in S10 or S16 is not specifically limited, either. In the present invention, no matter what detection method is used, it is not necessary to take noise into consideration when detecting a defect, and do not take into consideration, when detecting a defect, a portion where the pixel value is 0 when removing noise. Since it is good, the processing can be speeded up.

以上、添付図面を参照して、本発明の好適な実施形態について説明したが、本発明は係る例に限定されない。当業者であれば、本願で開示した技術的思想の範疇内において、各種の変更例または修正例に想到し得ることは明らかであり、それらについても当然に本発明の技術的範囲に属するものと了解される。   The preferred embodiments of the present invention have been described above with reference to the accompanying drawings, but the present invention is not limited to such examples. It is apparent that those skilled in the art can conceive of various modifications or alterations within the scope of the technical idea disclosed in the present application, and of course these also fall within the technical scope of the present invention. It is understood.

1:検査システム
3:検査装置
5:撮影装置
10:用紙
11:差分画像作成部
12:マスク処理部
13:画像合成部
14:ノイズ除去部
15:欠陥検出部
100:基準画像
101、201:エッジ画像
102、202:エッジ膨張画像
200:検査画像
300、400:差分画像
301a、301b、401a、401b:マスク画像
302、402:合成画像
303:欠陥候補
1: Inspection system 3: Inspection device 5: Imaging device 10: Paper 11: Difference image creation unit 12: Mask processing unit 13: Image composition unit 14: Noise removal unit 15: Defect detection unit 100: Reference image 101, 201: Edge Image 102, 202: edge expansion image 200: inspection image 300, 400: difference image 301a, 301b, 401a, 401b: mask image 302, 402: composite image 303: defect candidate

Claims (5)

検査対象を撮影して得られた検査画像を基準画像と比較することで前記検査対象の欠陥を検出する検査装置であって、
前記検査画像と前記基準画像の間で画素値の差分をとって差分画像を作成する差分画像作成部と、
前記差分画像または前記差分画像に基づいて作成された画像の画素値から所定値を引き、画素値が0未満となった画素の画素値を0とすることでノイズ除去を行うノイズ除去部と、
前記ノイズ除去を行った後の画像または当該画像に基づいて作成された画像を用いて欠陥の検出を行う欠陥検出部と、
を有することを特徴とする検査装置。
An inspection apparatus for detecting a defect of the inspection object by comparing an inspection image obtained by photographing the inspection object with a reference image,
A difference image generation unit that generates a difference image by calculating a difference between pixel values of the inspection image and the reference image;
A noise removing unit that subtracts noise by subtracting a predetermined value from the pixel value of the difference image or an image created based on the difference image, and setting the pixel value of the pixel whose pixel value is less than 0 to 0;
A defect detection unit that detects a defect using the image after the noise removal or the image created based on the image;
An inspection apparatus comprising:
前記欠陥検出部は、
前記ノイズ除去を行った後の画像または当該画像に基づいて作成された画像の画素値を所定の閾値で二値化して欠陥候補を抽出し、前記欠陥候補の面積に基づいて前記欠陥候補が真の欠陥であるか否かを判定することを特徴とする請求項1記載の検査装置。
The defect detection unit
The pixel value of the image after the noise removal or the image created based on the image is binarized with a predetermined threshold to extract a defect candidate, and the defect candidate is true based on the area of the defect candidate The inspection apparatus according to claim 1, wherein it is determined whether or not there is a defect of
前記検査画像のエッジを膨張させたエッジ膨張画像を用いて前記差分画像に生じたエッジ部分を除去するマスク処理を行って第1のマスク画像を作成するとともに、前記基準画像のエッジを膨張させたエッジ膨張画像を用いて前記差分画像に生じたエッジ部分を除去するマスク処理を行って第2のマスク画像を作成するマスク処理部をさらに有し、
前記ノイズ除去部は、
前記第1、第2のマスク画像を合成した合成画像の画素値から前記所定値を引いてノイズ除去を行うことを特徴とする請求項1または請求項2記載の検査装置。
An edge expansion image obtained by expanding an edge of the inspection image is used to perform a mask process for removing an edge portion generated in the difference image to create a first mask image, and expand an edge of the reference image. The image processing apparatus further includes a mask processing unit that performs a mask process of removing an edge portion generated in the difference image using an edge expansion image to create a second mask image,
The noise removing unit
3. The inspection apparatus according to claim 1, wherein noise removal is performed by subtracting the predetermined value from the pixel value of the combined image obtained by combining the first and second mask images.
検査対象を撮影して得られた検査画像を基準画像と比較することで前記検査対象の欠陥を検出する検査方法であって、
コンピュータが、
前記検査画像と前記基準画像の間で画素値の差分をとって差分画像を作成するステップと、
前記差分画像または前記差分画像に基づいて作成された画像の画素値から所定値を引き、画素値が0未満となった画素の画素値を0とすることでノイズ除去を行うステップと、
前記ノイズ除去を行った後の画像または当該画像に基づいて作成された画像を用いて欠陥の検出を行うステップと、
を実行することを特徴とする検査方法。
An inspection method for detecting a defect of the inspection object by comparing an inspection image obtained by photographing the inspection object with a reference image,
The computer is
Calculating a difference between pixel values of the inspection image and the reference image;
Performing noise removal by subtracting a predetermined value from the pixel value of the difference image or the image created based on the difference image, and setting the pixel value of the pixel whose pixel value is less than 0 to 0;
Detecting a defect using the image after the noise removal or the image created based on the image;
An inspection method characterized by performing.
コンピュータを、
検査対象を撮影して得られた検査画像を基準画像と比較することで前記検査対象の欠陥を検出する検査装置であって、
前記検査画像と前記基準画像の間で画素値の差分をとって差分画像を作成する差分画像作成部と、
前記差分画像または前記差分画像に基づいて作成された画像の画素値から所定値を引き、画素値が0未満となった画素の画素値を0とすることでノイズ除去を行うノイズ除去部と、
前記ノイズ除去を行った後の画像または当該画像に基づいて作成された画像を用いて欠陥の検出を行う欠陥検出部と、
を有する検査装置として機能させるためのプログラム。
Computer,
An inspection apparatus for detecting a defect of the inspection object by comparing an inspection image obtained by photographing the inspection object with a reference image,
A difference image generation unit that generates a difference image by calculating a difference between pixel values of the inspection image and the reference image;
A noise removing unit that subtracts noise by subtracting a predetermined value from the pixel value of the difference image or an image created based on the difference image, and setting the pixel value of the pixel whose pixel value is less than 0 to 0;
A defect detection unit that detects a defect using the image after the noise removal or the image created based on the image;
A program for functioning as an inspection device having.
JP2017172038A 2017-09-07 2017-09-07 Inspection apparatus, inspection method and program Pending JP2019045451A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2017172038A JP2019045451A (en) 2017-09-07 2017-09-07 Inspection apparatus, inspection method and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2017172038A JP2019045451A (en) 2017-09-07 2017-09-07 Inspection apparatus, inspection method and program

Publications (1)

Publication Number Publication Date
JP2019045451A true JP2019045451A (en) 2019-03-22

Family

ID=65812738

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017172038A Pending JP2019045451A (en) 2017-09-07 2017-09-07 Inspection apparatus, inspection method and program

Country Status (1)

Country Link
JP (1) JP2019045451A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2020187656A (en) * 2019-05-16 2020-11-19 株式会社キーエンス Image inspection device
CN112505035A (en) * 2019-09-13 2021-03-16 株式会社斯库林集团 Method for detecting gas-liquid interface inside nozzle and substrate processing apparatus

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2020187656A (en) * 2019-05-16 2020-11-19 株式会社キーエンス Image inspection device
JP7349816B2 (en) 2019-05-16 2023-09-25 株式会社キーエンス Image inspection device
CN112505035A (en) * 2019-09-13 2021-03-16 株式会社斯库林集团 Method for detecting gas-liquid interface inside nozzle and substrate processing apparatus
KR20210031812A (en) * 2019-09-13 2021-03-23 가부시키가이샤 스크린 홀딩스 Detecting method of gas-liquid interface in nozzle and substrate processing apparatus
KR102513788B1 (en) * 2019-09-13 2023-03-24 가부시키가이샤 스크린 홀딩스 Detecting method of gas-liquid interface in nozzle and substrate processing apparatus

Similar Documents

Publication Publication Date Title
JP6666046B2 (en) Image processing apparatus and image processing method
JP2008180696A (en) Defect detector, defect detecting method, image sensor device, image sensor module, defect detecting program, and computer readable recording medium
JP2008064486A (en) Device and method for inspecting printed matter
JP6696323B2 (en) Pattern inspection apparatus and pattern inspection method
JP5088165B2 (en) Defect detection method and defect detection apparatus
JP2019045451A (en) Inspection apparatus, inspection method and program
WO2014103617A1 (en) Alignment device, defect inspection device, alignment method, and control program
CN111669523A (en) Pixel correction
JP2016194434A (en) Inspection system and inspection method
JP6623545B2 (en) Inspection system, inspection method, program, and storage medium
KR20160097651A (en) Apparatus and Method for Testing Pattern of Sample using Validity Image Processing Technique, and computer-readable recording medium with program therefor
JP2016217872A (en) Inspection device, inspection method, program, and storage media
KR20190079317A (en) Machine vision inspection device and product inspection method using machine vision
JP2008171142A (en) Spot defect detection method and device
JP7362324B2 (en) Inspection method, manufacturing method and inspection device for image display device
JP2019132862A (en) Inspection device
JP2006145228A (en) Unevenness defect detecting method and unevenness defect detector
JP2006035505A (en) Method and device for inspecting printed matter
JP2009074828A (en) Flaw detection method and flaw detector
KR101053779B1 (en) Metal mask inspection method of display means
JP2000321038A (en) Method for detecting fault of pattern
JP7300155B2 (en) Teaching device in solid preparation appearance inspection, and teaching method in solid preparation appearance inspection
JP2006242584A (en) Irregularity defect detecting method and apparatus
KR100351129B1 (en) System for Examination printing inferior using Circumference Mask
JP2001021502A (en) Flaw inspecting method and system therefor

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20200728

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20210513

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20210601

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20211124