JPH05135181A - Abnormality detection device - Google Patents

Abnormality detection device

Info

Publication number
JPH05135181A
JPH05135181A JP3320995A JP32099591A JPH05135181A JP H05135181 A JPH05135181 A JP H05135181A JP 3320995 A JP3320995 A JP 3320995A JP 32099591 A JP32099591 A JP 32099591A JP H05135181 A JPH05135181 A JP H05135181A
Authority
JP
Japan
Prior art keywords
logic
counter
abnormality
area
value
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
JP3320995A
Other languages
Japanese (ja)
Inventor
Kenji Kotaki
賢二 小滝
Tomoo Ookuni
朋生 大国
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 Electric Corp
Original Assignee
Mitsubishi Electric Corp
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 Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP3320995A priority Critical patent/JPH05135181A/en
Publication of JPH05135181A publication Critical patent/JPH05135181A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To increase the execution speed of an abnormality detection system which uses image processing technique or reduce the manufacture cost. CONSTITUTION:When the number of successive picture elements regarded as logic '1' among binary-coded picture elements counted by a scanning counter 73 in single-time scanning exceeds a constant value, the area value of the picture elements of logic '1' is increased by an area counter 51 and an abnormality decision means decides the abnormality of image data according to the incremental value; while the picture elements of logic '1' are counted, picture elements of logic '0' are counted and if the continuity of the picture elements of logic '1' is ceased halfway, the output of the scanning counter 73 is reset by a scanning counter resetting means 74 by considering that a noise is mixed with the image data.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】この発明は、画像データ中に現わ
れた被写体の正常部分と異常部分を画像を構成する画素
の輝度の差より検出する異常検出装置に関するものであ
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an abnormality detecting apparatus for detecting a normal portion and an abnormal portion of a subject appearing in image data from a difference in luminance of pixels forming an image.

【0002】[0002]

【従来の技術】図4は例えば「画像処理アルゴリズムの
最新動向」(昭63.9.5)、新技術コミュニケーシ
ョンズ、12章に示された従来の異常検出装置を示すも
ので、図において、1は画像入力用のカメラであり、2
はカメラ1に撮像された画像をA/D変換する画像入力
装置、3は画像入力装置2で変換された濃淡データを、
あるしきい値で2値化する2値化処理、4は2値化処理
3で2値化されたデータのノイズを除去する為のノイズ
除去処理、5はノイズ除去処理4でノイズ除去された2
値データの「1」の数値をもつ画素数をカウントする面
積カウンタ処理、6は面積カウンタ処理5でカウントさ
れたデータ数より、異常かどうかの判定を行う異常判定
処理である。
2. Description of the Related Art FIG. 4 shows a conventional abnormality detecting device shown in Chapter 12 of "Latest Trend of Image Processing Algorithms" (Sho 63.9.5), New Technology Communications, Chapter 12, for example. Is a camera for image input, 2
Is an image input device for A / D converting an image captured by the camera 1, and 3 is grayscale data converted by the image input device 2,
Binarization processing for binarizing with a certain threshold value, 4 is noise removal processing for removing noise of the data binarized by the binarization processing 3, and 5 is noise removal by the noise removal processing 4. Two
An area counter process that counts the number of pixels having the value “1” in the value data, and 6 is an abnormality determination process that determines whether or not there is an abnormality based on the number of data counted by the area counter process 5.

【0003】次に動作について説明する。カメラ1によ
って入力された画像データは、画像入力装置2によって
A/D変換される。次にA/D変換された濃淡画像デー
タを2値化処理3により2値化する。入力画像において
正常である部分と異常部分の輝度に、明らかに大きなひ
らきが存在する場合、正常部分と異常部分の中間の輝度
にしきい値を設定し2値化する事で例えば正常部分を論
理「0」と異常部分を論理「1」のように2分化する事
ができる。
Next, the operation will be described. The image data input by the camera 1 is A / D converted by the image input device 2. Next, the A / D-converted grayscale image data is binarized by binarization processing 3. If there is an apparently large opening in the brightness of the normal part and the abnormal part in the input image, a threshold value is set to the intermediate brightness between the normal part and the abnormal part to binarize the normal part, for example. It is possible to divide the "0" and the abnormal portion into two like a logical "1".

【0004】次いでノイズ除去処理4により、画像入力
時に発生したノイズや2値化時に発生したノイズ等を除
去し、ノイズによる異常部分の面積カウント5の誤った
動作を防ぐ。
Next, noise removal processing 4 removes noise generated during image input, noise generated during binarization, etc. to prevent erroneous operation of the area count 5 of an abnormal portion due to noise.

【0005】そして面積カウント処理5により異常部分
である論理「1」の画素数をカウントする。異常判定処
理6は、面積カウンタ5でカウントされた面積カウント
値と、あらかじめ設定された異常判定基準値を比較し、
異常出力を行う。
Then, the area count processing 5 counts the number of pixels of logic "1" which is an abnormal portion. The abnormality determination processing 6 compares the area count value counted by the area counter 5 with a preset abnormality determination reference value,
Output an error.

【0006】次にこのシステムをソフトウエアーで実現
した場合について説明する。図4における1と2はハー
ドウエアで画像入力、A/D変換を行う。図4の2値化
処理3は、しきい値と比較し、しきい値以上は論理
「1」、未満は論理「0」を出力する。
Next, a case where this system is realized by software will be described. In FIG. 4, 1 and 2 perform image input and A / D conversion by hardware. The binarization process 3 in FIG. 4 compares with a threshold value, and outputs a logic "1" when the threshold value is exceeded and a logic "0" when the threshold value is less than the threshold value.

【0007】そしてノイズ処理4は、2値データのノイ
ズ処理法として例えば膨脹、収縮処理を行う。膨脹、収
縮処理は、2値化により論理「0」もしくは論理「1」
に変換された画像を以下の関数にて表わす。
The noise processing 4 performs, for example, expansion and contraction processing as a noise processing method for binary data. Expansion and contraction processing is logical "0" or logical "1" by binarization.
The image converted into is represented by the following function.

【0008】[0008]

【数1】 [Equation 1]

【0009】すると2値データのノイズ除去処理は一般
的に以下の2つの論理演算をそれぞれ数回行う事により
実現される。 (a)膨脹処理結果p1 (i,j) p1 (i,j)=Q(i−1,j−1)+Q(i,j−1)+Q(i+1,j −1)+Q(i−1,j)+Q(i,j)+Q(i+1,j )+Q(i−1,j+1)+Q(i,j+1)+Q(i+1 ,j) (b)収縮処理結果p2 (i,j) p2 (i,j)=Q(i−1,j−1)×Q(i,j−1)×Q(i+1,j −1)×Q(i−1,j)×Q(i−1,j+1)×Q(i ,j+1)×Q(i+1,j+1) ノイズ除去においては、除去すべきノイズの大きさに応
じて、上記の膨脹処理を複数回行った後に、収縮処理を
複数回行う必要があり、この様な処理を施す事によりノ
イノズを除去することができる。
Then, noise removal processing of binary data is generally realized by performing the following two logical operations several times. (A) Expansion processing result p 1 (i, j) p 1 (i, j) = Q (i-1, j-1) + Q (i, j-1) + Q (i + 1, j-1) + Q (i -1, j) + Q (i , j) + Q (i + 1, j) + Q (i-1, j + 1) + Q (i, j + 1) + Q (i + 1, j) (b) shrinking process result p 2 (i, j) p 2 (i, j) = Q (i-1, j-1) × Q (i, j-1) × Q (i + 1, j -1) × Q (i-1, j) × Q (i- 1, j + 1) × Q (i 1, j + 1) × Q (i + 1, j + 1) In noise removal, the expansion process is performed a plurality of times and then the contraction process is performed a plurality of times depending on the size of noise to be removed. It is necessary to perform such treatment, and by performing such treatment, the noise can be removed.

【0010】次に図4で面積カウント処理5でノイズ除
去後の2値データの「1」の画素値をもつ画素をカウン
トし、異常判定処理6で異常判定する。
Next, in FIG. 4, the area count processing 5 counts the pixels having a pixel value of "1" of the binary data after noise removal, and the abnormality determination processing 6 determines the abnormality.

【0011】又、この処理をハードウエアーで実現しよ
うとした場合、図5は「工業用画像処理」、(昭63.
5.31)、昭晃堂、3章に示された3×3の局所領域
に切り出すための回路図で、図4のノイズ除去処理4を
ハードウエアで実現する場合のブロック図である。
When this processing is to be realized by hardware, FIG. 5 shows "industrial image processing" (Sho 63.
5.31), Shokoido, is a circuit diagram for cutting out into a 3 × 3 local area shown in Chapter 3, and is a block diagram when the noise removal processing 4 of FIG. 4 is implemented by hardware.

【0012】図5の31は、2値化処理の出力であり、
「0」もしくは「1」の画素値を持った画像データであ
る。41は時系列的に入力される画像データ31を、一
水平ライン分だけ保持する為のラインバッファであり、
水平同期信号33が入力されている。31の画像データ
31が、ラッチ42により3列に切り出される。
Reference numeral 31 in FIG. 5 indicates the output of the binarization processing.
The image data has a pixel value of "0" or "1". Reference numeral 41 is a line buffer for holding the image data 31 input in time series by one horizontal line,
The horizontal synchronizing signal 33 is input. The image data 31 of 31 is cut out into three columns by the latch 42.

【0013】又、水平同期信号33に制御され、ライン
バッファ41に入ったデータが3行に分けられる。これ
により3×3の局所領域に切り出されたデータが、メモ
リ43のアドレス選択線に入る。
Further, the data stored in the line buffer 41 under the control of the horizontal synchronizing signal 33 is divided into three rows. As a result, the data cut out in the 3 × 3 local area enters the address selection line of the memory 43.

【0014】この様に各ラッチとメモリアドレス線を結
線する事により、注目画素と近傍の画素の「0」もしく
は「1」の状態に応じて、メモリ43のうち512個の
メモリセル中の唯一のメモリセルを選択する事ができ
る。そして膨脹や収縮の処理に対応する処理結果を、あ
らかじめ対応するメモリセル内に書込んでおき、処理す
べき画像データを入力する事によって、一回の膨脹(も
しくは収縮処理)が実行できる。
By connecting each latch and the memory address line in this manner, only one of the 512 memory cells of the memory 43 can be selected depending on the state of "0" or "1" of the pixel of interest and the neighboring pixel. The memory cell of can be selected. Then, the processing result corresponding to the expansion and contraction processing is written in the corresponding memory cell in advance, and the image data to be processed is input, so that the expansion (or contraction processing) can be performed once.

【0015】通常のノイズ除去においては、同図に示す
装置を縦属接続する事によりノイズ除去は構成される。
この様にしてノイズ除去されたデータが図4の面積カウ
ント処理5で面積カウントされ、異常判定処理6で判定
される。
In normal noise removal, noise removal is configured by vertically connecting the devices shown in FIG.
The data thus noise-removed is subjected to area counting in the area counting processing 5 of FIG. 4 and judged in the abnormality judging processing 6.

【0016】[0016]

【発明が解決しようとする課題】従来の異常検出装置は
以上のように構成されているので、係るノイズ除去処理
をソフトウエアーで実施するには、除去すべきノイズの
大きさに応じて膨脹処理を複数回行った後に、収縮処理
を複数回行う必要があり、ノイズ処理に多大な時間を要
するといった問題点があった。
Since the conventional anomaly detection apparatus is constructed as described above, in order to carry out such noise removal processing by software, expansion processing is performed according to the magnitude of noise to be removed. After performing a plurality of times, it is necessary to perform the contraction processing a plurality of times, and there is a problem in that it takes a lot of time for the noise processing.

【0017】また、係るノイズで除去処理をハードウエ
アにて実施するには、ノイズ除去のパターンを書き込ん
でおくメモリ、及び局所領域を切り出す為のラインバッ
ファが必要である為、その実現に費用がかかるなどの問
題点があった。
Further, in order to carry out the removal processing by such noise with hardware, a memory for writing a pattern for noise removal and a line buffer for cutting out a local area are required, so that it is expensive to implement. There was a problem such as this.

【0018】この発明は上記の様な問題点を解消する為
になされたもので、ソフトウエアーでの実現において高
速に処理できるとともに、ハードウエアでの実現におい
てもメモリ、ラインバッファ等の高価なチップを使用せ
ずに、異常検出を行う事を目的とする。
The present invention has been made in order to solve the above problems, and can realize high-speed processing in software implementation, and also in hardware implementation, an expensive chip such as a memory or line buffer. The purpose is to detect abnormalities without using.

【0019】[0019]

【課題を解決するための手段】この発明に係る異常検出
装置は、デジタル信号化した画像データの各画素を濃淡
に応じて論理1或は0の2値信号に変換する2値化手段
と、2値化された画像データを走査し各画素計数時に所
定個数以上論理1を計数時には計数値を出力する走査カ
ウンタと、該走査カウンタによる連続論理1の計数中に
論理0計数判定時には連続論理1の計数値をクリアする
走査カウンタリセット手段と、上記走査カウンタより出
力される計数値と画像中の異常部分判定する異常判定基
準値を比較する比較手段と、該比較手段によって異常部
分と判定された論理1の画素数を計数する面積カウンタ
と、面積カウント値と予め設定された異常判定基準値と
を比較し異常出力を行う異常判定手段とを設けたもので
ある。
An abnormality detecting device according to the present invention comprises a binarizing means for converting each pixel of image data converted into a digital signal into a binary signal of logic 1 or 0 in accordance with shading. A scanning counter that scans binarized image data and outputs a count value when counting a predetermined number or more of logical 1s at the time of counting each pixel, and a continuous logical 1 when a logical 0 count is determined while the continuous logical 1 is being counted by the scanning counter. Scanning counter resetting means for clearing the count value, comparing means for comparing the count value output from the scanning counter with an abnormality judging reference value for judging an abnormal portion in the image, and the comparing means for judging the abnormal portion. An area counter that counts the number of pixels of logic 1 and an abnormality determination unit that compares the area count value with a preset abnormality determination reference value and outputs an abnormality are provided.

【0020】[0020]

【作用】この発明によれば、1回の走査で走査カウンタ
が計数した2値化画素中、論理1とみなした画素が連続
して一定個数以上あった場合、論理1の画素の面積値を
面積カウンタにインクリメントし、このインクリメント
値をもとに異常判定手段にて画像データの異常判定を行
い、また、論理1の画素を計数中、論理0の画素を計数
し、論理1の画素の連続性を途中で打を切った場合、画
像データへのノイズ混入として走査カウンタ出力を走査
カウンタセット手段にてリセットすることで、1回の走
査で1度にノイズ除去と面積カウントをする為、1画素
に付1度のデータアクセスで済み、処理が高速化でき
る。
According to the present invention, when there are a certain number or more of the pixels regarded as logic 1 continuously among the binarized pixels counted by the scan counter in one scan, the area value of the logic 1 pixel is set. The area counter is incremented, and the abnormality determination means determines the abnormality of the image data based on the increment value. Further, while counting the pixels of logic 1, the pixels of logic 0 are counted, and the pixels of logic 1 continue. When the image quality is cut off in the middle, noise is mixed into the image data, and the scanning counter output is reset by the scanning counter setting means, so that noise is removed and the area is counted at one time by one scanning. Data can be accessed once for each pixel, and the processing speed can be increased.

【0021】[0021]

【実施例】【Example】

実施例1.以下、この発明の一実施例を図について説明
する。図1において、1〜3までで従来と同様に異常
値、正常値が0もしくは1の2値データが入力される。
次に7は、面積カウント制御装置であり2値化された画
像のノイズを除去しながら異常部分の面積をカウントす
る様に、面積カウント5の動作を制御するものである。
Example 1. An embodiment of the present invention will be described below with reference to the drawings. In FIG. 1, binary data of abnormal values and normal values of 0 or 1 is input in the first to third areas as in the conventional case.
Next, 7 is an area count controller which controls the operation of the area count 5 so as to count the area of the abnormal portion while removing the noise of the binarized image.

【0022】これら処理は、まず入力された1画面分の
2値画像データノイズ除去、次に面積カウントを行う
が、これらは入力画像において「0」もしくは「1」の
画素が、連続して、ある一定個数以上続く時に、面積カ
ウンターがインクリメントするように制御される。
In these processes, first, the input binary image data noise for one screen is removed, and then the area is counted. In these processes, the pixels of "0" or "1" are consecutive in the input image, The area counter is controlled so as to increment when a certain number or more continues.

【0023】一方、入力画像が一定ランレングス以上画
素が続かない場合はノイズと判断して面積カウント動作
をしない様にして制御する事により、ノイズの影響を除
去しながら面積カウントできる。又、これらの処理は、
一画面分の2値データを、1回だけアクセスし判定する
だけで処理が可能である。
On the other hand, when pixels in the input image do not continue for more than a certain run length, it is determined that the image is noise, and the area counting operation is not performed, so that the area can be counted while removing the influence of noise. Also, these processes
Binary data for one screen can be processed only by accessing and determining once.

【0024】また、異常判定処理6では、従来と同様に
して、あらかじめ異常面積値設定レジスタ52に設定さ
れた異常判定値と面積カウント値を比較する事により、
異常判定される。
In the abnormality determination processing 6, the abnormality determination value set in advance in the abnormal area value setting register 52 is compared with the area count value in the same manner as in the conventional case.
Abnormality is judged.

【0025】次に動作について説明する。例えば図1に
おける面積カウント値の制御7をハードウエアーで実現
した場合の一実施例を図2に示す。同図において画像デ
ータ31がドットクロック32に同期して入力される走
査カウンタ73は、画素値「1」が入力された時にイン
クリメントし、画素値「0」が入力された時走査カウン
タリセット制御74により0にクリアされる。これによ
り、走査カウンタの出力は、走査方向に連続して「1」
画素が入力される時にのみ、連続する画素数を出力し、
それ以外の時は「0」を出力する。
Next, the operation will be described. For example, FIG. 2 shows an embodiment in which the control 7 of the area count value in FIG. 1 is realized by hardware. In the figure, the scan counter 73 to which the image data 31 is input in synchronization with the dot clock 32 is incremented when the pixel value "1" is input, and the scan counter reset control 74 when the pixel value "0" is input. Is cleared to 0 by. As a result, the output of the scanning counter is continuously "1" in the scanning direction.
Outputs the number of consecutive pixels only when pixels are input,
Otherwise, "0" is output.

【0026】一方、走査設定レジスタ72には、入力画
像において「1」画素が連続して入力された時に、異常
物であるかを判断するランレングスデータが保持されて
おり、走査カウンタ73の出力と走査設定レジスタ値を
コンパレータ71で比較し、走査カウンタ出力が走査設
定レジスタ値より大きい時に、面積カウンタ51がカウ
ント可能となる様に制御信号を出力する。
On the other hand, the scan setting register 72 holds run-length data for determining whether the pixel is an abnormal one when "1" pixels are continuously input in the input image, and the output of the scan counter 73. And the scan setting register value are compared by the comparator 71, and when the scan counter output is larger than the scan setting register value, the area counter 51 outputs a control signal to enable counting.

【0027】走査カウンタは、水平同期信号33を入力
する走査カウンタリセット制御74により一走査が終了
するごとにその内容はクリアされ、ある設定値以上連続
して「1」画素が入力されなければ、面積をカウントし
ない様に動作するので、入力画像にノイズを含んでいて
も、その影響を除去しながら「1」の部分の面積計測す
る事ができる。この様にして得られた面積値は、従来と
同様にして、異常物があるかどうかの判定が行われる。
更に垂直同期信号を受け面積カウンターのリセット制御
75は、面積カウンター51を、一画面分データが終了
した時点でゼロクリアする。
The content of the scan counter is cleared every time one scan is completed by the scan counter reset control 74 for inputting the horizontal synchronizing signal 33, and if "1" pixels are not continuously input for a certain set value or more, Since the operation does not count the area, even if the input image contains noise, it is possible to measure the area of the "1" portion while removing the influence. The area value thus obtained is used to determine whether or not there is an abnormal object as in the conventional case.
Further, the area counter reset control 75 receiving the vertical synchronization signal clears the area counter 51 to zero when the data for one screen is completed.

【0028】実施例2.又、上記実施例ではハードウエ
アで実現した場合について説明したが、ソフトウエアで
も実現した場合の処理フローを図3に示す。まず2値画
像入力7aでデータが入力され、面積カウンターと走査
カウンターが76でリセットされる。7cで画素値
「1」であるかどうかを判定している。もし「1」なら
7dで走査カウンターをインクリメントする。
Example 2. In the above embodiment, the case where it is realized by hardware has been described, but the processing flow when it is realized by software is shown in FIG. First, data is input at the binary image input 7a, and the area counter and scan counter are reset at 76. It is determined at 7c whether the pixel value is "1". If "1", the scan counter is incremented at 7d.

【0029】7eでは、「1」が設定した値以上連続し
ているか判定し、連続しているなら7fをインクリメン
トし、異常物であったと判断して、面積カウンターをイ
ンクリメントする。7d〜7fでは、異常値が連続し、
なおかつ判定値より大きいものは異常と見なし、不連続
なものはノイズと見なし、7gでクリアーされる。
At 7e, it is judged whether "1" is continuous for a set value or more, and if it is continuous, 7f is incremented, and it is judged as an abnormal object, and the area counter is incremented. In 7d to 7f, abnormal values continue,
In addition, those larger than the judgment value are regarded as abnormal, and those which are discontinuous are regarded as noise, and are cleared at 7 g.

【0030】それを一走査線くりかえすのに限定してい
るのが7gである。つまり、一走査線途切れでは連続し
ていると見なさないのである。7hで一画面分のデータ
量の判定をする。5aでは異常面積カウント値を読み出
し、6aで異常判定する。
It is 7 g that it is limited to repeating one scanning line. In other words, one scan line break is not considered to be continuous. The amount of data for one screen is determined in 7h. In 5a, the abnormal area count value is read, and in 6a, the abnormality is determined.

【0031】この様にソフトウエアーでは、画像データ
とのアクセスは、1画素につき1回、7cで行うのみで
ある。あとはカウンター値の判定で、ノイズ除去と面積
カウントが行える。従って画像データのメモリとのアク
セスによる処理時間が削減され、速い処理が可能とな
る。
As described above, the software only accesses the image data once per pixel at 7c. After that, noise can be removed and area can be counted by judging the counter value. Therefore, the processing time for accessing the image data to the memory is reduced, and fast processing is possible.

【0032】実施例3.次にシステムとして他の実施例
を示す。赤外線カメラを利用した火災異常検出システム
である。赤外線カメラで撮った火災現場の画像は、火災
発生部分と正常部分の温度差により輝度に大きな差がで
る。その輝度に差の出現する様にその中間の輝度レベル
で2値化し、火災部分を「1」、正常部分を「0」とす
る。
Example 3. Next, another embodiment will be shown as a system. This is a fire abnormality detection system using an infrared camera. Images of a fire scene taken with an infrared camera show a large difference in brightness due to the temperature difference between the fire-occurring part and the normal part. Binarization is performed at an intermediate brightness level so that a difference in brightness appears, and a fire part is "1" and a normal part is "0".

【0033】又、火災は赤外線画像としてみると、ある
程度高温部の塊となっている為、画素としては連続して
いる。その一定以上連続しているのを異常とし、それ以
下を正常とする。その異常が一定以 になれば火災が発
生したと判断し警報を出す。
In addition, when the fire is viewed as an infrared image, it is a lump of a high temperature part to some extent, and therefore it is continuous as pixels. Abnormality is defined as continuous for a certain amount or more, and normal is defined as less than that. If the abnormality exceeds a certain level, it is judged that a fire has occurred and an alarm is issued.

【0034】実施例4.又、プリント基盤の欠陥検出に
も用いられる。これは基盤の画像を2値化し、正常なパ
ターンの「1」もしくは「0」の値を持つ画素数を代表
値として持っておく。次に対象の基盤を、正常時のもの
と同じ撮影条件のもとで2値化し画素を走査し、代表値
と比較することで欠陥の有無を判定できる。
Example 4. It is also used to detect defects on the printed circuit board. For this, the base image is binarized and the number of pixels having a value of "1" or "0" of a normal pattern is held as a representative value. Next, it is possible to determine the presence or absence of a defect by binarizing the target substrate under the same imaging conditions as in the normal state, scanning the pixels, and comparing with a representative value.

【0035】[0035]

【発明の効果】以上のように、この発明によればハード
ウエアで画像データを一時的に保持するラインバッファ
やメモリを使用しないので、システムとしては安価に構
築できる。又、ソウトウエアにて本装置を構築した場
合、ノイズ除去や面積カウントともなら画像データのア
クセスが一度で済む為、処理スピードが向上する。
As described above, according to the present invention, since the line buffer and the memory for temporarily holding the image data by hardware are not used, the system can be constructed at low cost. In addition, when this device is constructed with software, the processing speed is improved because noise removal, area counting, and image data can be accessed only once.

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

【図1】この発明による画像の異常検出システムの構成
図である。
FIG. 1 is a configuration diagram of an image abnormality detection system according to the present invention.

【図2】この発明をハードウエアで実現した場合のブロ
ック図である。
FIG. 2 is a block diagram when the present invention is implemented by hardware.

【図3】この発明をソフトウエアで実現した場合のフロ
ーチャートである。
FIG. 3 is a flowchart when the present invention is implemented by software.

【図4】従来の異常検出システムのシステム構成図であ
る。
FIG. 4 is a system configuration diagram of a conventional abnormality detection system.

【図5】従来の異常検出システムをハードウエアで実現
した場合のブロック図である。
FIG. 5 is a block diagram when a conventional abnormality detection system is realized by hardware.

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

2 画像信号A/D変換装置 3 画像データ2値化処理 5 異常部分面積カウント処理 6 異常判定処理 7 面積をカウントする為の制御処理 31 2値画像データ 51 異常面積カウンター 52 異常面積値設定レジスタ 71 コンパレータ 73 走査カウンター 74 走査カウンターリセット制御 2 image signal A / D converter 3 image data binarization processing 5 abnormal part area count processing 6 abnormality determination processing 7 control processing for counting areas 31 binary image data 51 abnormal area counter 52 abnormal area value setting register 71 Comparator 73 Scan counter 74 Scan counter reset control

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 デジタル信号化した画像データの各画素
を濃淡に応じて論理1或は0の2値信号に変換する2値
化手段と、2値化された画像データを走査し各画素計数
時に所定個数以上論理1を計数時には計数値を出力する
走査カウンタと、該走査カウンタによる連続論理1の計
数中に論理0計数判定時には連続論理1の計数値をクリ
アする走査カウンタリセット手段と、上記走査カウンタ
より出力される計数値と画像中の異常部分判定する異常
判定基準値を比較する比較手段と、該比較手段によって
異常部分と判定された論理1の画素数を計数する面積カ
ウンタと、面積カウント値と予め設定された異常判定基
準値とを比較し異常出力を行う異常判定手段とを備えた
ことを特徴とする異常検出装置。
1. A binarizing means for converting each pixel of image data converted into a digital signal into a binary signal of logic 1 or 0 according to shading, and scanning the binarized image data to count each pixel. A scan counter for outputting a count value when counting a predetermined number of logic 1s or more, and a scan counter resetting means for clearing the count value of the continuous logic 1 when a logic 0 count is judged while the continuous logic 1 is being counted by the scan counter; Comparing means for comparing a count value output from the scanning counter with an abnormality judging reference value for judging an abnormal portion in an image; an area counter for counting the number of pixels of logic 1 judged to be an abnormal portion by the comparing means; An abnormality detecting device comprising: an abnormality determining unit that compares a count value with a preset abnormality determination reference value and outputs an abnormality.
JP3320995A 1991-11-08 1991-11-08 Abnormality detection device Pending JPH05135181A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3320995A JPH05135181A (en) 1991-11-08 1991-11-08 Abnormality detection device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3320995A JPH05135181A (en) 1991-11-08 1991-11-08 Abnormality detection device

Publications (1)

Publication Number Publication Date
JPH05135181A true JPH05135181A (en) 1993-06-01

Family

ID=18127610

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3320995A Pending JPH05135181A (en) 1991-11-08 1991-11-08 Abnormality detection device

Country Status (1)

Country Link
JP (1) JPH05135181A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108885265A (en) * 2016-03-31 2018-11-23 富士胶片株式会社 Range image processing unit, range image acquisition device and range image processing method
CN114608975A (en) * 2022-02-28 2022-06-10 天津大学 System and method for testing dynamic II-type fracture toughness of rock

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108885265A (en) * 2016-03-31 2018-11-23 富士胶片株式会社 Range image processing unit, range image acquisition device and range image processing method
CN114608975A (en) * 2022-02-28 2022-06-10 天津大学 System and method for testing dynamic II-type fracture toughness of rock

Similar Documents

Publication Publication Date Title
EP0009674B1 (en) Data manipulation apparatus for improving the legibility of scale changed image objects
EP0117559B1 (en) Pattern checking apparatus
EP1330116A2 (en) Vertical black line removal in a document scanner
JPH05276365A (en) Programmable device for determining background level of document
JPH05135181A (en) Abnormality detection device
JP2002310937A (en) Method and apparatus for inspection of defect
JP2882227B2 (en) Pixel defect correction device
JP2000101924A (en) Defect detection correction device in image input device
JP4097834B2 (en) Rib missing inspection method for ribbed color filter substrate
JP3598196B2 (en) Periodic pattern defect inspection equipment
JPH06147855A (en) Image inspection method
JP2818644B2 (en) Micro shape detector
JPS5830645A (en) Pattern inspecting system
JPH06323825A (en) Inspection equipment for printed mark
JP3002473B2 (en) Pattern inspection method and apparatus
JPH0351965A (en) Pattern matching processor
JPS6170673A (en) Image processor
JPS6244892A (en) Image processor
JPS6089284A (en) System for cutting out character line
JPH0429109B2 (en)
JPH045940B2 (en)
JPH0351026B2 (en)
JPH06164931A (en) Picture signal processor
JPH0750504B2 (en) Pattern recognition device
JPS60113988A (en) Method of inspecting appearance of printed circuit board