JPH04336384A - Pattern inspection device - Google Patents

Pattern inspection device

Info

Publication number
JPH04336384A
JPH04336384A JP3107681A JP10768191A JPH04336384A JP H04336384 A JPH04336384 A JP H04336384A JP 3107681 A JP3107681 A JP 3107681A JP 10768191 A JP10768191 A JP 10768191A JP H04336384 A JPH04336384 A JP H04336384A
Authority
JP
Japan
Prior art keywords
image
gradation
pattern
inspected
expanding
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
JP3107681A
Other languages
Japanese (ja)
Inventor
Toshiyuki Yamada
敏之 山田
Takamasa Kaiho
海寳 孝昌
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.)
Seiko Instruments Inc
Original Assignee
Seiko Instruments Inc
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 Seiko Instruments Inc filed Critical Seiko Instruments Inc
Priority to JP3107681A priority Critical patent/JPH04336384A/en
Publication of JPH04336384A publication Critical patent/JPH04336384A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Image Analysis (AREA)

Abstract

PURPOSE:To enable automatic inspection by performing a gradation expanding and reducing process as a preprocess for a binarization processing so as to remove the influence of disturbance. CONSTITUTION:After a gradation image is inputted, the preprocess by the gradation expanding and reducing process is performed and this gradation expanding and reducing process is carried out in proper combination according to the density distribution state of a pattern part to be inspected and a background. When the brightness value distribution of the pattern part to be inspected is lower than that of the background, the inspection pattern is erased from the image by the reducing process from the expanding process to generate a gradation image consisting of only the background. When the light and dark distribution state is high, on the other hand, the expanding process is performed from the reducing process. The image and original image are used to perform arithmetic between the images. At this time, an illumination irregularity and a color irregularity in the image are removed. Therefore, the gradation image after the preprocess is subjected to binarization processing by using a single threshold value. Further, the area, etc., of the pattern part to be inspected is analyzed to perform the inspection.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】この発明は、液晶パネルの表示パ
ターン検査装置、基板の回路パターン検査装置に関する
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a display pattern inspection device for liquid crystal panels and a circuit pattern inspection device for substrates.

【0002】0002

【従来の技術】従来のパターン検査装置は、画像メモリ
に取り込まれた濃淡画像に対して、単一あるいは、局所
的に設定されたしきい値を用いて二値化処理を行い、背
景と検査対象パターンを分離し検査を行っていた。
[Prior Art] A conventional pattern inspection device performs a binarization process on a grayscale image captured in an image memory using a single or locally set threshold value, and then performs a binarization process to distinguish between background and inspection images. The target pattern was isolated and inspected.

【0003】0003

【発明が解決しようとする課題】しかし、従来のパター
ン検査装置では、取り込まれた画像に、照明による明る
さのムラ、検査対象パターン部の色ムラ等が存在した場
合等、輝度の分布状態が変化した場合、あらかじめ設定
されたしきい値による二値化処理では、検査対象パター
ン部のみを分離できず、面積等により欠陥を検査ができ
ないという課題があった。
[Problems to be Solved by the Invention] However, in conventional pattern inspection devices, when there is uneven brightness due to illumination, uneven color in the pattern to be inspected, etc. in the captured image, the brightness distribution state becomes unstable. In the case of a change, there is a problem that binarization processing using a preset threshold value cannot separate only the pattern portion to be inspected, and defects cannot be inspected due to area or the like.

【0004】そこで、この発明の目的は、従来のこのよ
うな課題を解決するため、照明によって発生する明るさ
のムラや検査対象パターン部の色ムラの影響を受けずに
、検査対象パターン部と背景とが分離された二値画像を
作成し、その画像を解析し、面積等による欠陥検査を行
うことができるパターン検査装置を得ることである。
SUMMARY OF THE INVENTION Therefore, an object of the present invention is to solve the above-mentioned problems of the conventional art, and to make it possible to distinguish between the pattern part to be inspected and the pattern part to be inspected without being affected by the unevenness of brightness caused by illumination or the uneven color of the pattern part to be inspected. It is an object of the present invention to provide a pattern inspection device that can create a binary image separated from the background, analyze the image, and perform defect inspection based on area and the like.

【0005】[0005]

【課題を解決するための手段】上記課題を解決するため
に、この発明は、外乱の影響を除去するため、二値化処
理を行う前処理として濃淡膨張縮小処理を行う構成とし
、背景と検査対象パターン部の安定した分離が図れるよ
うにした。
[Means for Solving the Problems] In order to solve the above problems, the present invention has a configuration in which gray scale expansion and reduction processing is performed as pre-processing for binarization processing in order to remove the influence of disturbance, and the background and inspection Stable separation of target pattern parts is now possible.

【0006】[0006]

【作用】上記のように構成されたパターン検査装置にお
いては、濃淡膨張縮小処理が作用して、照明ムラ、色ム
ラが存在する画像においても、それらの外乱の影響を受
けずに二値化処理による背景と検査対象パターン部の分
離が可能となり、面積等によるパターン検査が可能とな
る。
[Operation] In the pattern inspection device configured as described above, the gradation expansion/contraction processing works, and even images with uneven illumination and coloring can be binarized without being affected by these disturbances. It becomes possible to separate the background and the pattern portion to be inspected, and pattern inspection based on area, etc. becomes possible.

【0007】[0007]

【実施例】以下に、この発明の実施例を図面に基づいて
説明する。図1は、本発明のパターン検査装置の検査手
順を示す説明図である。図1に示すように、本発明にお
いては、濃淡画像を取り込んだ後に濃淡膨張縮小処理に
よる前処理を施し、処理前の濃淡画像と処理後の濃淡画
像から、画像間演算を行うことによって検査対象パター
ン部をのみ抽出した濃淡画像を作成する。その画像に対
して、背景と検査対象パターン部を分離するための二値
化処理を行い、検査対象パターン部の面積等を解析し、
検査を行なう。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Examples of the present invention will be described below with reference to the drawings. FIG. 1 is an explanatory diagram showing an inspection procedure of a pattern inspection apparatus according to the present invention. As shown in FIG. 1, in the present invention, after capturing a grayscale image, preprocessing is performed using grayscale expansion/reduction processing, and inter-image calculation is performed from the grayscale image before processing and the grayscale image after processing. Create a grayscale image with only the pattern portion extracted. The image is subjected to binarization processing to separate the background and the pattern part to be inspected, and the area etc. of the pattern part to be inspected is analyzed.
Conduct an inspection.

【0008】図2は、本発明であるパターン検査装置の
実施例を示す説明図である。同図において、搬送レール
1で送られてきたパターンを検査する試料2がフォトセ
ンサ3の前を通過したとき、フォトセンサ3から電装コ
ントローラ4に制御信号が送信され、試料2はTVカメ
ラ5の真下で止まる。このとき、試料2上部のTVカメ
ラ5が試料2の画像をとらえ、画像処理部6がその画像
を入力する。画像処理部6では、取り込んだ画像を濃淡
膨張縮小処理等を行い、試料2のパターンの検査を行い
、その結果を電装コントローラ4へ転送する。検査結果
が良好の場合は試料2は搬送レール1によって次の行程
へ送られ、検査結果が不良の場合は電装コントローラ4
からの指示により試料2が搬出機7によって搬出テーブ
ル8へ搬出され、不良品として区別される。
FIG. 2 is an explanatory diagram showing an embodiment of a pattern inspection apparatus according to the present invention. In the same figure, when a sample 2 whose pattern is to be inspected sent on a transport rail 1 passes in front of a photosensor 3, a control signal is sent from the photosensor 3 to an electrical controller 4, and the sample 2 is inspected by a TV camera 5. It stops directly below. At this time, the TV camera 5 above the sample 2 captures an image of the sample 2, and the image processing unit 6 inputs the image. The image processing section 6 performs gradation expansion/reduction processing on the captured image, inspects the pattern of the sample 2, and transfers the results to the electronic controller 4. If the test result is good, the sample 2 is sent to the next step by the transport rail 1, and if the test result is bad, the sample 2 is sent to the electrical controller 4.
The sample 2 is carried out by the carry-out machine 7 to the carry-out table 8 according to instructions from the sample 2, and is distinguished as a defective product.

【0009】次に、本発明で二値画像作成前に使用され
る濃淡膨張縮小処理について説明する。図3は、濃淡膨
張処理の説明図である。濃淡膨張処理とは、個々の画素
を中心とした指定形状10の範囲の中で、最も高い輝度
値により、指定形状内の画素の輝度値を置き換える処理
を言う。濃淡画像9は膨張処理前の画像である。各マス
は1画素に対応し、数字はそれぞれの画素の輝度値を表
わしている。この濃淡画像9を構成している各画素を中
心として指定形状10をラスタ走査により順次あてはめ
、その中で最も輝度値の高い値で指定形状10内の画素
の輝度値をすべて置き換える。この動作を画面全画素に
ついて行った濃淡膨張処理後の画像が、濃淡画像11で
ある。
Next, the grayscale expansion/reduction process used before creating a binary image in the present invention will be explained. FIG. 3 is an explanatory diagram of the shading expansion process. The gradation expansion process refers to a process in which the brightness value of a pixel within the designated shape is replaced by the highest brightness value within the range of the designated shape 10 centered on each pixel. Grayscale image 9 is an image before expansion processing. Each square corresponds to one pixel, and the numbers represent the brightness value of each pixel. A designated shape 10 is sequentially applied to each pixel constituting this grayscale image 9 by raster scanning, and the brightness values of all pixels within the designated shape 10 are replaced with the value with the highest brightness value among them. The image after gradation expansion processing in which this operation is performed for all pixels on the screen is the gradation image 11.

【0010】図4は、濃淡縮小処理の説明図である。濃
淡縮小処理とは、個々の画素を中心とした指定形状13
の範囲の中で、最も低い輝度値により、指定形状内の画
素の輝度値を置き換える処理を言う。濃淡画像12は縮
小処理前の画像である。各マスは1画素に対応し、数字
はそれぞれの画素の輝度値を表わしている。この濃淡画
像12を構成している各画素を中心として指定形状13
をラスタ走査により順次あてはめ、その中で最も輝度値
の低い値で指定形状13内の画素の輝度値を置き換える
。この動作を画面全画素について行った濃淡縮小処理後
の画像が、濃淡画像14である。
FIG. 4 is an explanatory diagram of the shading reduction process. Shade reduction processing is a specified shape 13 centered on each pixel.
This refers to the process of replacing the brightness value of a pixel within a specified shape with the lowest brightness value within the range of . The grayscale image 12 is an image before reduction processing. Each square corresponds to one pixel, and the numbers represent the brightness value of each pixel. The specified shape 13 is centered around each pixel composing this grayscale image 12.
are sequentially applied by raster scanning, and the luminance value of the pixel within the specified shape 13 is replaced with the lowest luminance value among them. The image after the gradation reduction process in which this operation is performed for all pixels on the screen is the gradation image 14.

【0011】この濃淡膨張縮小処理を、検査対象パター
ン部と背景の濃度分布状態により、適宜組み合わせて実
行する。検査対象パターン部の輝度値分布が、背景に対
して低い場合は、膨張処理から縮小処理を行い、画像内
より検査パターンを消去し、背景のみの濃淡画像を作成
する。濃淡分布状態が逆の場合は、縮小処理から膨張処
理を行う。この画像と元画像を用いて画像間演算(減算
)を行う。その際に、画像内に含まれる照明ムラ、色ム
ラが除去される。したがって、この前処理を行った濃淡
画像については、単一のしきい値によって二値化処理を
行うことができる。
[0011] This shading expansion/reduction processing is executed in appropriate combinations depending on the density distribution state of the pattern portion to be inspected and the background. If the luminance value distribution of the pattern to be inspected is lower than the background, expansion processing and reduction processing are performed to erase the inspection pattern from the image and create a grayscale image of only the background. If the grayscale distribution state is reversed, the reduction process is followed by the expansion process. An inter-image operation (subtraction) is performed using this image and the original image. At this time, illumination unevenness and color unevenness included in the image are removed. Therefore, the grayscale image that has undergone this preprocessing can be binarized using a single threshold value.

【0012】0012

【発明の効果】この発明は、以上説明したように、入力
画像に、照明ムラやパターンの色ムラが存在している場
合であっても、濃淡膨張縮小処理によってそれらを除去
できるため、外乱の多い状況下での検査、色ムラによる
二値化が困難だった試料についての検査が可能となった
。その結果、従来、人の視覚による検査に頼っていた工
程を、機械による自動検査に置き換えることができ、精
度の向上、人件費の削減、生産性の向上を図ることがで
きる。
Effects of the Invention As explained above, even if the input image has uneven illumination or color unevenness in the pattern, this invention can remove them by the gradation expansion/reduction processing, thereby reducing the disturbance. This makes it possible to inspect samples that are difficult to binarize due to color unevenness. As a result, processes that conventionally relied on human visual inspection can be replaced with automatic inspection by machines, making it possible to improve accuracy, reduce labor costs, and improve productivity.

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

【図1】本発明の検査装置の検査手順を示した説明図で
ある。
FIG. 1 is an explanatory diagram showing an inspection procedure of an inspection apparatus according to the present invention.

【図2】本発明の実施例を示した説明図である。FIG. 2 is an explanatory diagram showing an embodiment of the present invention.

【図3】本発明で使用される濃淡膨張処理方法を示した
説明図である。
FIG. 3 is an explanatory diagram showing a gradation expansion processing method used in the present invention.

【図4】本発明で使用される濃淡縮小処理方法を示した
説明図である。
FIG. 4 is an explanatory diagram showing a shading reduction processing method used in the present invention.

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

1  搬送レール 2  試料 3  フォトセンサ 4  電装コントローラ 5  TVカメラ 6  画像処理部 7  搬出機 8  搬出テーブル 9  膨張処理前の濃淡画面 10  膨張処理指定形状 11  膨張処理後の濃淡画面 12  縮小処理前の濃淡画面 13  縮小処理指定形状 14  縮小処理後の濃淡画面 1 Transport rail 2 Sample 3 Photo sensor 4 Electrical controller 5 TV camera 6 Image processing section 7 Unloading machine 8 Unloading table 9. Grayscale screen before expansion processing 10 Expansion processing specified shape 11. Grayscale screen after expansion processing 12. Grayscale screen before reduction processing 13 Reduction processing specified shape 14. Grayscale screen after reduction processing

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】  装置内の画像メモリに蓄えられた濃淡
入力画像を、二値化処理を行うことによって背景とパタ
ーンとを分離し、その面積等でパターンの欠陥を検査す
るパターン検査装置において、二値化処理の前処理とし
て濃淡膨張縮小処理を行い、前記濃淡膨張縮小処理後の
二値化処理で得られた二値画像を用いてパターン検査を
行なう画像処理部を有することを特徴とするパターン検
査装置。
1. A pattern inspection device that separates a background from a pattern by binarizing a grayscale input image stored in an image memory in the device, and inspects the pattern for defects based on its area, etc. It is characterized by having an image processing unit that performs a grayscale expansion/reduction process as a preprocessing of the binarization process, and performs a pattern inspection using a binary image obtained by the binarization process after the grayscale expansion/reduction process. Pattern inspection equipment.
JP3107681A 1991-05-13 1991-05-13 Pattern inspection device Pending JPH04336384A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3107681A JPH04336384A (en) 1991-05-13 1991-05-13 Pattern inspection device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3107681A JPH04336384A (en) 1991-05-13 1991-05-13 Pattern inspection device

Publications (1)

Publication Number Publication Date
JPH04336384A true JPH04336384A (en) 1992-11-24

Family

ID=14465277

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3107681A Pending JPH04336384A (en) 1991-05-13 1991-05-13 Pattern inspection device

Country Status (1)

Country Link
JP (1) JPH04336384A (en)

Similar Documents

Publication Publication Date Title
KR950009462B1 (en) Display screen inspecting apparatus
KR930000543B1 (en) Process and device for detecting and evaluating surface cracks in workpieces
US5917957A (en) Method of and apparatus for processing an image
JP2009229197A (en) Linear defect detecting method and device
JP3907874B2 (en) Defect inspection method
JP4318776B2 (en) Nonuniformity inspection method and apparatus
JP3695120B2 (en) Defect inspection method
JP4664417B2 (en) Display panel lighting inspection device and display panel lighting inspection method.
KR20140082333A (en) Method and apparatus of inspecting mura of flat display
JPH04238592A (en) Automatic bundled bar steel tally device
JP2001028059A (en) Method and device for color unevenness inspection
JPH04336384A (en) Pattern inspection device
JP3584507B2 (en) Pattern unevenness inspection equipment
JP2004053477A (en) Color irregularity inspecting method and apparatus
JP2004219176A (en) Method and apparatus for detecting pixel irregulality failing
JP3433333B2 (en) Defect inspection method
JP2001083474A (en) Method for inspecting liquid crystal display panel
JPH0313850A (en) Image processing method in wafer-defect inspection
JPH0735699A (en) Method and apparatus for detecting surface defect
JPH06161378A (en) Inspecting device for liquid crystal display device
JP3604974B2 (en) Screen inspection method
JP4382210B2 (en) Periodic pattern inspection method and apparatus
JP2007101415A (en) Inspection device
JPH06118024A (en) Method for detecting luminance unevenness of display element
JP3132931B2 (en) Scratch inspection device