JP2881312B2 - Defect inspection equipment - Google Patents

Defect inspection equipment

Info

Publication number
JP2881312B2
JP2881312B2 JP1202457A JP20245789A JP2881312B2 JP 2881312 B2 JP2881312 B2 JP 2881312B2 JP 1202457 A JP1202457 A JP 1202457A JP 20245789 A JP20245789 A JP 20245789A JP 2881312 B2 JP2881312 B2 JP 2881312B2
Authority
JP
Japan
Prior art keywords
run
length
processing
connectivity
buffer
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.)
Expired - Lifetime
Application number
JP1202457A
Other languages
Japanese (ja)
Other versions
JPH0367159A (en
Inventor
宏晃 木村
正樹 布施
正利 戸田
哲夫 高橋
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.)
Mitsubishi Rayon Co Ltd
Original Assignee
Mitsubishi Rayon 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 Mitsubishi Rayon Co Ltd filed Critical Mitsubishi Rayon Co Ltd
Priority to JP1202457A priority Critical patent/JP2881312B2/en
Publication of JPH0367159A publication Critical patent/JPH0367159A/en
Application granted granted Critical
Publication of JP2881312B2 publication Critical patent/JP2881312B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

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

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION 【産業上の利用分野】[Industrial applications]

本発明は、ラインCDDカメラなどのセンサーで読み取
った画像データに含まれる異物、汚れ、キズ、黒点、ピ
ホール、フィッシュアイなどの欠陥数のカウント、サイ
ズの測定を、高速で行なう欠陥検査装置に関する。
The present invention relates to a defect inspection apparatus that performs high-speed counting of the number of defects such as foreign matter, dirt, scratches, black spots, piholes, and fish eyes and measurement of size included in image data read by a sensor such as a line CDD camera.

【従来の技術】[Prior art]

従来の欠陥検査装置は、例えば検査物をラインCCDカ
メラなどのセンサーで画像データを読み取った後その画
像データを二値化し、更にランレングス符号化処理回路
によってランレングス符号化処理を行い、得られたラン
レングス符号を画像メモリ内に記憶し、前記画像メモリ
内に記憶したランレングス符号を連結性処理によって欠
陥を測定していた。
A conventional defect inspection apparatus reads, for example, image data of an inspection object using a sensor such as a line CCD camera, binarizes the image data, and further performs run-length encoding processing by a run-length encoding processing circuit. The run-length code is stored in an image memory, and the run-length code stored in the image memory is used to measure defects by connectivity processing.

【発明が解決しようとする課題】[Problems to be solved by the invention]

しかしながら、前記欠陥検査装置については、ランレ
ングス符号化処理の後、連結性処理を行なうために、高
速に欠陥測定を行なうことができなかった。
However, the defect inspection apparatus cannot perform high-speed defect measurement because the connectivity processing is performed after the run-length encoding processing.

【課題を解決するための手段】[Means for Solving the Problems]

本発明の目的は、前記ランレングス符号化処理と連結
性処理とを並行処理することによって、高速な欠陥測定
を行えるようにした欠陥検査装置を提供することにあ
る。 以下、本発明の欠陥検査装置は、 前記二値画像データの変化点アドレスを得るランレン
グス符号化手段と、 前記ランレングス符号化手段から出力される前記ライ
ンセンサーカメラの複数行分のランレングス符号を記憶
する2系列からなるランレングス符号記憶手段と、 前記ランレングス符号記憶手段に記憶したランレング
ス符号により連結性処理を行い欠陥の測定を行なう連結
性処理手段と、 前記ランレングス符号記憶手段の一方の系列に対して
前記ランレングス符号化手段によるランレングス符号の
記憶と、前記ランレングス符号記憶手段の他方の系列に
対する前記連結性処理手段による処理とを並列処理する
手段と、 前記並列処理手段におけるランレングス符号の記憶と
前記連結性処理手段による処理とがいずれも終了したこ
とを確認する手段と、 前記確認する手段による確認後、前記ランレングス符
号記憶手段の系列を切り替える手段と、 を備えていることを特徴とする。
SUMMARY OF THE INVENTION It is an object of the present invention to provide a defect inspection apparatus capable of performing a high-speed defect measurement by performing the run-length encoding process and the connectivity process in parallel. In the following, the defect inspection apparatus of the present invention comprises: run-length encoding means for obtaining a change point address of the binary image data; and run-length codes for a plurality of lines of the line sensor camera output from the run-length encoding means. A run-length code storage unit consisting of two series storing the run-length code stored in the run-length code storage unit, and performing a connectivity process using the run-length code stored in the run-length code storage unit to measure a defect. Means for performing parallel processing of storing a run-length code by the run-length encoding means for one of the series and processing by the connectivity processing means for the other series of the run-length code storing means; and the parallel processing means It is confirmed that both the storage of the run-length code and the processing by the connectivity processing means have been completed. Means for, after confirmation by means of the check, characterized in that it comprises a means for switching the sequence of the run-length code storage means.

【作用】[Action]

上述のように構成された本発明の欠陥検査装置は、次
のように作用する。 本発明の欠陥検査装置は、ランレングス符号記憶手段
を複数系列設けてあり、またランレングス符号記憶手段
の一方の系列にランレングス符号を記憶させる間に、こ
のランレングス符号記憶手段の他方の系列に対して連結
性処理手段による処理を行い、前記連結性処理手段終了
を確認した後、ランレングス符号処理終了時に前記ラン
レングス符号記憶手段の系列を切り替える手段とを有し
ているので、ランレングス符号化処理と連結性処理とを
並列に行なうことができる。
The defect inspection apparatus of the present invention configured as described above operates as follows. The defect inspection apparatus according to the present invention is provided with a plurality of run-length code storage means, and stores the run-length code in one of the run-length code storage means while storing the run-length code in the other series. And a means for switching the series of the run-length code storage means at the end of the run-length code processing after confirming the end of the connectivity processing means. The encoding process and the connectivity process can be performed in parallel.

【実施例】 以下、本発明の一実施例を図面に沿って説明する。 第1図は、本発明の欠陥検査装置の1構成例を示す図
である。 同図において、1は、ラインCCDカメラであり、検査
対象物の画像を読み取る。2は、画像処理回路であり、
ラインCCDカメラによって読み取った検査対象物の画像
データから欠陥を測定するものであり、同図にその内部
構成例を示す。また、17は、ホストCPUであり、前記画
像処理回路2により送られる検査結果の表示等を行な
う。 前記画像処理回路2は、例えば3〜16の各部より構成
され以下各部について説明する。 3は、A/Dコンバータであり、CCDカメラの信号をA/D
変換するものであり、例えば8ビットでA/D変換する。 4は、コンパレータであり、A/Dコンバータ3の出力
を、閾値メモリ9の値及び後述するメモリ6内の論理指
定メモリ10に基づいて、例えば、欠陥が検出された場合
は、“1"、正常部が検出された場合は“0"とする。 5は、ランレングス符号化回路であり、コンパレータ
4から出力された二値データにおいて、その二値データ
の“0"から“1"あるいは“1"から“0"に変化するアドレ
ス、即ちランレングス符号を得る。 また、連結性処理は、ROM6内にプログラムとして記憶
されており、前記ランレングス符号化回路5によってラ
ンレングス符号化したデータを連結性処理することによ
って、検査対象物に含まれる欠陥を測定する。 7は、画像処理回路2内のメモリでありCPUの主メモ
リと同様に使用できる。同図に示す通り、8〜13は、メ
モリ7の具体的な構成例である。 まず8は、基準値メモリであり、ラインCCDカメラ1
の画像データを1行分記憶するメモリである。次に9
は、閾値メモリであり、ラインCCDカメラ1の各素子ご
とに閾値を設定する。なお、固定値を指定する場合は、
同一値を閾値メモリ9に記憶させればよい。また、前記
基準値メモリ8と閾値メモリ9とにおいては、ラインCC
Dカメラ1の素子間バラツキ、照明の斑、レンズの歪み
などを補正することができる。この補正は、例えば基準
値メモリ8に透過率あるいは反射率が均一である基準用
の被写体を読み取った画像データを記憶させ、この画像
データと閾値として指定した透過率または反射率との積
をとり、この積を閾値メモリ9に記憶させることによっ
てできる。 また10は、論理指定メモリであり、これは検出したい
欠陥に応じて前記コンパレータ4による二値化の論理を
変更するものであり、例えば閾値未満の出力レベルを有
する欠陥を検出したい場合には“1"、閾値より大きい出
力レベルを有する欠陥を検出したい場合は“0"をセット
する。 11は、ライン数指定メモリであり、ランレングス符号
化回路5の処理ライン数の単位をセットする。 12は、ランレングスバッファであり、前記ランレング
ス符号化回路5により出力されたランレングス符号を記
憶する。このランレングスバッファ12は、バッファ(0
系列)12aとバッファ(1系列)12bからなる2系列を有
しており、0系列バッファ12aがランレングス符号化回
路5によってランレングス符号化処理を行なわれている
時、1系列バッファ12bでは連結処理が行なわれるとい
う具合いに、交互に使用される。前記バッファ12a、12b
に記憶できる欠陥数は、例えばバッファのメモリ容量を
128KBにすると、1ランレングス符号のデータ長が2バ
イト個であるため、(128K/4)個となる。 13は、ランレングスバッファ切替指定メモリであり、
ランレングス符号化回路5が使用するランレングスバッ
ファ12の系列を記憶している。なお、このランレングス
バッファ切替指定13が指定していない系列は、連結性処
理によって連結性処理される。 14は、RAMであり、欠陥検査プログラムを記憶するRAM
である。 また、15は、ROMであり欠陥検査処理プログラム、特
に前述した連結性処理プログラム等を記憶している。 6はCPUであり、前記ROM内のプログラムに従って、各
部を制御しながら欠陥の測定を行なう。前記CPU15によ
る制御には、例えばランレングス符号化処理が終了した
時、連結性処理からの処理終了の割り込み信号の入力
や、連結性処理が終了した時にランレングスバッファ切
替指定信号の出力等がある。 16は,RS−232Cインターフェースであり、画像処理回
路2とホストCPU17との間で、検査条件、検査結果のデ
ータ転送を行なう。 本発明の欠陥検査装置は、前記構成から理解される通
り、複数個のバッファを有したランレングスバッファ
で、その各々の系列のバッファに対して同時にランレン
グス符号化処理と連結性処理を行なうものである。した
がって、前記ランレングス符号化処理と連結性処理のタ
イミングが重要となる。 以下、第1図に示した欠陥検査装置の機能及び前記処
理タイミングの条件について、第2図に示したランレン
グス符号化処理と連結性処理のタイミング図を参照しな
がら説明する。 本発明の欠陥検査装置は、下記、に示した条件で
欠陥検査を行なった場合に、ランレングス符号化処理と
連結性処理を好ましいタイミング状態で行なうことがで
きる。第2図(a)は、下記、に示す条件でランレ
ングス符号化処理と連結性処理が行なわれたタイミング
図を示す。 CCD走査周期×指定ライン数>連結性処理時間 ランレングスバッファ容量>ランレングス符号のデー
タ量 ラインCCDカメラ1の出力信号S1は、検査対象物の画
像を1ライン分読み取ったアナログ信号であり、カメラ
の走査周期によって連続的に画像処理回路2へ出力され
る。この出力信号S1は、画像処理回路2に入力される
と、A/Dコンバータ3によりA/D変換され、次にコンパレ
ータ4によって二値化されたデータとなる。なお、コン
パレータ4による二値化は、閾値メモリ9に基づいて行
なわれる。 前記二値化データは、ランレングス符号化回路5によ
りランレングス符号化処理を行いランレングス符号を得
る。このランレングス符号は、第2図(a)に示したラ
ンレングス符号化処理信号S2、S3の通りランレングスバ
ッファ系列切替指定メモリ13で指定された系列のバッフ
ァに記憶される。そしてランレングス符号化回路5は、
前記バッファへの記憶が終了したら、同図(a)の割り
込み信号S4に示すように、その処理終了を知らせる割り
込み信号S4を出力する。 一方、連結性処理は、ランレングスバッファ系列切替
指定メモリ13で指定されていない系列のバッファに対し
て行い欠陥の測定を行なう。(連結性処理信号S5、S6参
照)この連結性処理が終了したら、CPU15は第2図
(a)中のランレングスバッファ系列切替指定信号S7に
示すランレングスバッファ切替指定メモリ13の内容を変
更する。 ここで、前記信号S7の切替パルスP1が発生された後、
割り込み信号S4の割り込みパルスが出力された場合、ラ
ンレングス系列切替指定メモリ13で指定したバッファの
系列が切り替えられる。例えば、第2図(a)におい
て、ランレングス系列切替指定メモリ13は、ランレング
スバッファ系列切替指定信号S7のパルスP1が発生前及び
直後においては、1系列バッファを指定している。しか
し、割り込み信号S4のパルスP2が出力された場合、ラン
レングス系列切替指定メモリ13の指定系列は、前記ラン
レングスバッファ系列切替指定信号S7のパルスP1を確認
した後であるために、0系列に切り替えられる。 したがって、ランレングス符号化処理と連結性処理
は、前述した信号S4、S7によるランレングスバッファ系
列指定メモリ13の内容変化によって、その処理タイミン
グが決定される。以下、本発明の欠陥検査装置は、前述
した処理を繰り返すことによって、検査対象物に含まれ
る欠陥の測定を行うことができる。 なお、本発明の欠陥検査装置は、前記条件が下記
′に示す通り連結性処理に時間を要する場合、例え
ば、検査対象物に非常に多い数の欠陥が含まれている時
でも欠陥を測定することができる。第2図(b)は、下
記′、に示す条件でランレングス符号化処理と連結
性処理が行なわれたタイミング図を示す。 ′CCD走査周期×指定ライン数<連結性処理時間 第2図(b)においては、0系列バッファにおける連
結性処理(連結性処理信号S5参照)が途中の時に、1系
列バッファにおけるランレングス符号化処理(ランレン
グス符号化処理S3参照)が終了し、その処理の終了を示
す割り込み信号(割り込み信号S4のパルスP4参照)が発
生された場合を示している。 0系列バッファへのランレングス符号化処理が終了す
ると、同図(b)の信号S3に示す通りパルスP3が発生さ
れて、ランレングス系列切替メモリ13が1系列バッファ
を指定し、これより1系列バッファへのランレングス符
号化処理が開始される。その1系列バッファへのランレ
ングス処理が終了すると、同図(b)の信号S4に示すパ
ルスP4が発生される。しかし、0系列バッファの連結性
処理は、同図(b)の信号S5からわかる通り処理の途中
であるために、ランレングス系列切替指定メモリ13の内
容は、前記信号S4のパルスP4の発生によっても変更され
ず1系列バッファを指定した状態を維持する。したがっ
て、1系列バッファのランレングス符号化処理は、信号
S3に示す通り、1系列バッファを指定したままでその空
き領域に対して新たなラインCCDカメラの出力S1による
二値データに基づいて処理を行ない、そのランレングス
符号を記憶させる。一方、0系列バッファにおける連結
性処理は、信号S5に示すとおり前記信号S4の割り込みパ
ルスP3を無視して処理を継続し、その処理が終了したら
信号S7に示す通り切替パルスP5を発生させる。 そして1系列バッファのランレングス符号化処理が終
了すると、信号S4に示す割り込みパルスP6が出力され、
この時にランレングス系列切替指定メモリ13が、前信号
S5に示す通り切替パルスP5を確認しているために、0系
列バッファに切り替えられる。以下、前述した条件
の状態のランレングス符号化処理と連結性処理が行なわ
れる。 また、下記′に示す条件が発生した場合は、欠陥測
定中に何らかのトラブルが発生した判断し、必要に応じ
て、エラー処理を行なう。 ′ランレングスバッファ容量<ランレングス符号のデ
ータ量 次に本発明の欠陥検査装置によって、透明フィルムに
含まれるフィッシュアイを測定した例を示す。なお、表
1はラインCCDカメラの撮像条件を示す。 測定したフィルムに含まれるフィッシュアイの画像デ
ータは、平均0.05個/行である。また、連結性処理時間
は、CPU15にV30(日本電気(株)製16ビットマイコン)
を使用した場合、走査周期0.2msで1.6個/行であり、前
記320倍のフィッシュアイ数まで測定できる。
Hereinafter, an embodiment of the present invention will be described with reference to the drawings. FIG. 1 is a diagram showing one configuration example of the defect inspection apparatus of the present invention. In FIG. 1, reference numeral 1 denotes a line CCD camera, which reads an image of an inspection object. 2 is an image processing circuit,
This figure measures a defect from image data of an inspection object read by a line CCD camera, and FIG. Reference numeral 17 denotes a host CPU which displays an inspection result sent by the image processing circuit 2 and the like. The image processing circuit 2 is composed of, for example, 3 to 16 units, and each unit will be described below. Reference numeral 3 denotes an A / D converter, which converts a CCD camera signal into an A / D signal.
A / D conversion is performed by, for example, 8 bits. Reference numeral 4 denotes a comparator which outputs the output of the A / D converter 3 to “1” when a defect is detected based on the value of the threshold memory 9 and a logical designation memory 10 in the memory 6 described later, for example. When a normal part is detected, it is set to “0”. Reference numeral 5 denotes a run-length encoding circuit, which is an address of the binary data output from the comparator 4, which changes from "0" to "1" or "1" to "0" of the binary data, that is, a run-length. Get the sign. The connectivity processing is stored as a program in the ROM 6, and the data included in the run-length encoded data by the run-length encoding circuit 5 is subjected to connectivity processing to measure a defect included in the inspection object. Reference numeral 7 denotes a memory in the image processing circuit 2, which can be used similarly to the main memory of the CPU. As shown in the drawing, reference numerals 8 to 13 are specific configuration examples of the memory 7. First, 8 is a reference value memory, which is a line CCD camera 1
Is a memory for storing one line of image data. Then 9
Is a threshold memory, which sets a threshold for each element of the line CCD camera 1. When specifying a fixed value,
The same value may be stored in the threshold memory 9. In the reference value memory 8 and the threshold value memory 9, the line CC
Variation between elements of the D camera 1, unevenness of illumination, lens distortion, and the like can be corrected. For this correction, for example, image data obtained by reading a reference subject having a uniform transmittance or reflectance is stored in the reference value memory 8, and the product of this image data and the transmittance or reflectance specified as a threshold value is calculated. This product can be stored in the threshold memory 9. Reference numeral 10 denotes a logic designation memory for changing the logic of binarization by the comparator 4 according to a defect to be detected. For example, when a defect having an output level less than a threshold is to be detected, ""1" is set when a defect having an output level larger than 1 is to be detected. Reference numeral 11 denotes a line number designation memory for setting a unit of the number of processing lines of the run length encoding circuit 5. Reference numeral 12 denotes a run-length buffer, which stores the run-length code output from the run-length encoding circuit 5. The run-length buffer 12 stores a buffer (0
The sequence buffer 12a has two sequences consisting of a sequence 12a and a buffer (1 sequence) 12b. When the 0-sequence buffer 12a is being run-length-encoded by the run-length encoding circuit 5, the 1-sequence buffer 12b is connected. They are used alternately, so that the processing takes place. The buffers 12a, 12b
The number of defects that can be stored in
If the size is 128 KB, the data length of one run-length code is 2 bytes, so that it is (128K / 4). 13 is a run length buffer switching designation memory,
The sequence of the run length buffer 12 used by the run length encoding circuit 5 is stored. The series not specified by the run-length buffer switching specification 13 is subjected to connectivity processing by connectivity processing. 14 is a RAM, which stores a defect inspection program
It is. Reference numeral 15 denotes a ROM which stores a defect inspection processing program, particularly, the connectivity processing program described above. Reference numeral 6 denotes a CPU, which measures a defect while controlling each unit according to a program in the ROM. The control by the CPU 15 includes, for example, when a run-length encoding process is completed, an interrupt signal for terminating processing from the connectivity process is input, and when a connectivity process is completed, a run-length buffer switching designation signal is output. . Reference numeral 16 denotes an RS-232C interface for performing data transfer of inspection conditions and inspection results between the image processing circuit 2 and the host CPU 17. As can be understood from the above configuration, the defect inspection apparatus of the present invention is a run-length buffer having a plurality of buffers, and performs a run-length encoding process and a connectivity process on each of the series of buffers at the same time. It is. Therefore, the timing of the run-length encoding process and the connectivity process is important. Hereinafter, the function of the defect inspection apparatus shown in FIG. 1 and the condition of the processing timing will be described with reference to the timing chart of the run-length encoding process and the connectivity process shown in FIG. The defect inspection apparatus of the present invention can perform the run-length encoding processing and the connectivity processing in a preferable timing state when the defect inspection is performed under the following conditions. FIG. 2A is a timing chart in which the run-length encoding process and the connectivity process are performed under the following conditions. CCD scanning cycle × specified number of lines> connectivity processing time run-length buffer capacity> run-length code data amount The output signal S1 of the line CCD camera 1 is an analog signal obtained by reading one line of the image of the inspection object. Are continuously output to the image processing circuit 2 according to the scanning cycle. When this output signal S1 is input to the image processing circuit 2, it is A / D converted by the A / D converter 3, and then becomes binary data by the comparator 4. The binarization by the comparator 4 is performed based on the threshold memory 9. The binary data is subjected to a run-length encoding process by a run-length encoding circuit 5 to obtain a run-length code. This run-length code is stored in the buffer of the sequence designated by the run-length buffer sequence switching designation memory 13 as in the run-length encoded processing signals S2 and S3 shown in FIG. Then, the run-length encoding circuit 5
When the storage in the buffer is completed, an interrupt signal S4 for notifying the end of the process is output as shown in an interrupt signal S4 in FIG. On the other hand, the connectivity processing is performed on a buffer of a sequence not specified in the run-length buffer sequence switching designation memory 13 to measure a defect. (See the connectivity processing signals S5 and S6.) When this connectivity processing is completed, the CPU 15 changes the contents of the run-length buffer switching designation memory 13 indicated by the run-length buffer sequence switching designation signal S7 in FIG. 2 (a). . Here, after the switching pulse P1 of the signal S7 is generated,
When the interruption pulse of the interruption signal S4 is output, the series of the buffer designated by the run-length series switching designation memory 13 is switched. For example, in FIG. 2 (a), the run-length sequence switching designation memory 13 designates a one-line buffer before and immediately after the pulse P1 of the run-length buffer sequence switching designation signal S7 occurs. However, when the pulse P2 of the interrupt signal S4 is output, the specified sequence of the run-length sequence switching designation memory 13 is changed to 0 sequence because the pulse P1 of the run-length buffer sequence switching designation signal S7 has been confirmed. Can be switched. Therefore, the processing timing of the run-length encoding process and the connectivity process is determined by the change in the contents of the run-length buffer sequence designation memory 13 due to the above-described signals S4 and S7. Hereinafter, the defect inspection apparatus of the present invention can measure the defects included in the inspection object by repeating the above-described processing. It should be noted that the defect inspection apparatus of the present invention measures the defect even when the inspection object contains a very large number of defects, for example, when the conditions require time for the connectivity processing as shown in the following '. be able to. FIG. 2 (b) is a timing chart in which the run-length encoding process and the connectivity process are performed under the following conditions. 'CCD scanning cycle × specified number of lines <connectivity processing time In FIG. 2 (b), when the connectivity processing in the 0-series buffer (see the connectivity processing signal S5) is in progress, the run-length encoding in the 1-series buffer is performed. This shows a case where the process (see the run-length encoding process S3) is completed and an interrupt signal indicating the end of the process (see the pulse P4 of the interrupt signal S4) is generated. When the run-length encoding process for the 0-sequence buffer is completed, a pulse P3 is generated as shown in a signal S3 in FIG. 11B, and the run-length sequence switching memory 13 designates a one-sequence buffer, and the one-sequence buffer is designated. The run-length encoding process for the buffer is started. When the run-length processing for the one-series buffer is completed, a pulse P4 indicated by a signal S4 in FIG. However, since the connectivity processing of the 0-sequence buffer is in the middle of the processing as can be seen from the signal S5 in FIG. 9B, the contents of the run-length-sequence switching designation memory 13 are changed by the generation of the pulse P4 of the signal S4. Is not changed and the state in which the one-series buffer is designated is maintained. Therefore, the run-length encoding of the one-series buffer
As shown in S3, a process is performed on the empty area based on the binary data from the output S1 of the new line CCD camera while the one-series buffer is designated, and the run-length code is stored. On the other hand, the connectivity processing in the 0-series buffer ignores the interrupt pulse P3 of the signal S4 as shown in the signal S5 and continues the processing, and when the processing is completed, generates the switching pulse P5 as shown in the signal S7. When the run-length encoding process of the one-series buffer is completed, an interrupt pulse P6 shown in a signal S4 is output,
At this time, the run-length sequence switching designation memory 13 stores the previous signal
Since the switching pulse P5 has been confirmed as shown in S5, switching to the 0-sequence buffer is performed. Hereinafter, the run-length encoding process and the connectivity process under the condition described above are performed. Further, when the condition shown in the following (1) occurs, it is determined that some trouble has occurred during the defect measurement, and error processing is performed as necessary. 'Run-length buffer capacity <run-length code data amount] Next, an example in which fish eyes contained in a transparent film are measured by the defect inspection apparatus of the present invention will be described. Table 1 shows imaging conditions of the line CCD camera. The average of the fisheye image data contained in the measured film was 0.05 / line. The connectivity processing time is V30 (16-bit microcomputer manufactured by NEC Corporation) for CPU15.
Is used, the number of fish eyes is 1.6 times / row at a scanning period of 0.2 ms, and the number of fish eyes can be measured up to 320 times the number of fish eyes.

【発明の効果】【The invention's effect】

本発明の欠陥検査装置は、次の特徴があり、従来のラ
ンレングス符号の連結性処理よりも、高速化が可能とな
り、欠陥検査装置としての効果は大きい。 並列処理 1系列の場合は、ランレングス符号の連結性処理中
は、ラインCCDカメラからのランレングス符号を記憶す
ることはできないが、2系列の場合は、交互に使用する
ことで並列処理が可能となる。 処理時間の平均化 1ライン分のランレングスバッファしかないと、処理
時間はランレングス符号数の最多値の処理時間で決めら
れるが、複数ライン分のランレングスバッファがある場
合は、1ライン当りの平均ランレングス符号数で決めら
れる。これは、通常、非常に少ない値である。
The defect inspection apparatus of the present invention has the following features, and can achieve higher speed than the conventional run-length code connectivity processing, and has a great effect as the defect inspection apparatus. Parallel processing In the case of one series, the run-length code from the line CCD camera cannot be stored during the run-length code connectivity processing, but in the case of two series, parallel processing is possible by using them alternately. Becomes Averaging of processing time If there is only one line of run-length buffer, the processing time is determined by the processing time of the maximum value of the number of run-length codes. It is determined by the average number of run-length codes. This is usually a very small value.

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

第1図は、本発明の装置構成の1例を示す図で、第2図
は、ランレングス符号化と連結性処理のタイミングを示
す図である。 1……ラインCCDカメラ 2……画像処理回路 3……A/Dコンバータ 4……コンパレータ 5……ランレングス符号化回路 6……ROM(欠陥検査プログラム、特に連結性処理プロ
グラムを記憶) 7……メモリ 8……基準値メモリ 9……閾値メモリ 10……論理指定メモリ 11……ライン数指定メモリ 12……ランレングスバッファ 12a……0系列バッファ 12b……1系列バッファ 13……ランレングスバッファ系列切替指定メモリ 14……RAM 15……CPU 16……RS−232C 17……ホストCPU
FIG. 1 is a diagram showing an example of a device configuration of the present invention, and FIG. 2 is a diagram showing timings of run-length encoding and connectivity processing. DESCRIPTION OF SYMBOLS 1 ... Line CCD camera 2 ... Image processing circuit 3 ... A / D converter 4 ... Comparator 5 ... Run length encoding circuit 6 ... ROM (stores a defect inspection program, especially a connectivity processing program) 7 ... … Memory 8… Reference value memory 9… Threshold memory 10… Logic designation memory 11… Line number designation memory 12… Run length buffer 12a… 0 sequence buffer 12b… 1 sequence buffer 13… Run length buffer Series switching designation memory 14 RAM 15 CPU 16 RS-232C 17 Host CPU

───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 平1−189549(JP,A) (58)調査した分野(Int.Cl.6,DB名) G01N 21/84 - 21/91 G06T 1/00 - 17/50 ────────────────────────────────────────────────── (5) References JP-A-1-189549 (JP, A) (58) Fields investigated (Int. Cl. 6 , DB name) G01N 21/84-21/91 G06T 1 / 00-17/50

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】ラインセンサーカメラにより、検査対象物
の画像を読み取り、読み取った画像データを二値化し、
この二値画像データに含まれる欠陥を測定する欠陥検査
装置において、 前記二値画像データの変化点アドレスを得るランレング
ス符号化手段と、 前記ランレングス符号化手段から出力される前記ライン
センサーカメラの複数行分のランレングス符号を記憶す
る2系列からなるランレングス符号記憶手段と、 前記ランレングス符号記憶手段に記憶したランレングス
符号により連結性処理を行い欠陥の測定を行う連結性処
理手段と、 前記ランレングス符号記憶手段の一方の系列に対して前
記ランレングス符号化手段によるランレングス符号の記
憶と、前記ランレングス符号記憶手段の他方の系列に対
する前記連結性処理手段による処理とを並列処理する手
段と、 前記並列処理手段におけるランレングス符号の記憶と前
記連結性処理手段による処理とがいずれも終了したこと
を確認する手段と、 前記確認する手段による確認後、前記ランレングス符号
記憶手段の系列を切り替える手段と、 を備えていることを特徴とする欠陥検査装置。
An image of an inspection object is read by a line sensor camera, and the read image data is binarized.
In a defect inspection device that measures a defect included in the binary image data, a run-length encoding unit that obtains a change point address of the binary image data; and a line sensor camera that is output from the run-length encoding unit. A run-length code storage unit composed of two sequences that store run-length codes for a plurality of rows; a connectivity processing unit that performs a connectivity process using the run-length codes stored in the run-length code storage unit to measure a defect; The storage of a run-length code by the run-length encoding means for one of the series of the run-length code storage means and the processing by the connectivity processing means for the other series of the run-length code storage means are performed in parallel. Means for storing run-length codes in the parallel processing means and the connectivity processing means. Means for confirming that the management is completed either after confirmation by means of the confirmation, defect inspection apparatus according to claim that and means for switching the sequence of the run-length code storage means.
JP1202457A 1989-08-04 1989-08-04 Defect inspection equipment Expired - Lifetime JP2881312B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1202457A JP2881312B2 (en) 1989-08-04 1989-08-04 Defect inspection equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1202457A JP2881312B2 (en) 1989-08-04 1989-08-04 Defect inspection equipment

Publications (2)

Publication Number Publication Date
JPH0367159A JPH0367159A (en) 1991-03-22
JP2881312B2 true JP2881312B2 (en) 1999-04-12

Family

ID=16457846

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1202457A Expired - Lifetime JP2881312B2 (en) 1989-08-04 1989-08-04 Defect inspection equipment

Country Status (1)

Country Link
JP (1) JP2881312B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2820330B2 (en) * 1991-04-23 1998-11-05 信越ポリマー株式会社 Inspection method for wound plastic film
JP3202330B2 (en) * 1992-05-26 2001-08-27 三菱レイヨン株式会社 Defect inspection equipment
JP3234636B2 (en) * 1992-06-25 2001-12-04 三菱レイヨン株式会社 Defect inspection equipment
JPH06294198A (en) * 1993-04-08 1994-10-21 Shion:Kk Laminated walling equipped with manufacture treatment layer by fibrous material

Also Published As

Publication number Publication date
JPH0367159A (en) 1991-03-22

Similar Documents

Publication Publication Date Title
US4746789A (en) Reading device for bar codes
JPH053787B2 (en)
JP2881312B2 (en) Defect inspection equipment
JPH0626423B2 (en) Document reader
JPS59117873A (en) Automatic self-diagnosing electro-optical imaging system
JPH1032810A (en) Image-processing inspecting device
JP7457878B2 (en) Digital event encoding for driving event-based image sensors
US5506700A (en) Facsimile apparatus having A/D converter shared with a plurality of analog sensors
JP3202330B2 (en) Defect inspection equipment
US6995802B2 (en) Image binarization method and binary image creation method
JP2962671B2 (en) Defect inspection device and defect inspection method
JP3234636B2 (en) Defect inspection equipment
JP3119581B2 (en) Defect inspection device and defect inspection method
JPH0545301A (en) Defect inspecting apparatus
JP2849311B2 (en) Optical reader
JPS6133093A (en) Image display device
JPH03216566A (en) Tester of ccd linear image sensor
JPH0682385A (en) Defect inspection device
JPH0354510B2 (en)
JPH06303502A (en) Image pickup device
JPH029272A (en) Encoding device
JPH114345A (en) Image processor
JPS62268269A (en) Output correction circuit for image sensor
JPH04296165A (en) Picture reader
JPH08147456A (en) X-ray image detecting device and image reader

Legal Events

Date Code Title Description
S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313113

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

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

Free format text: PAYMENT UNTIL: 20090205

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20100205

Year of fee payment: 11

EXPY Cancellation because of completion of term
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100205

Year of fee payment: 11