JPH0781961B2 - Image scratch inspection device - Google Patents
Image scratch inspection deviceInfo
- Publication number
- JPH0781961B2 JPH0781961B2 JP1242548A JP24254889A JPH0781961B2 JP H0781961 B2 JPH0781961 B2 JP H0781961B2 JP 1242548 A JP1242548 A JP 1242548A JP 24254889 A JP24254889 A JP 24254889A JP H0781961 B2 JPH0781961 B2 JP H0781961B2
- Authority
- JP
- Japan
- Prior art keywords
- unit
- image data
- image
- output
- line memory
- 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
Links
Landscapes
- Length Measuring Devices By Optical Means (AREA)
- Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)
- Image Processing (AREA)
- Closed-Circuit Television Systems (AREA)
- Image Analysis (AREA)
Description
【発明の詳細な説明】 〔産業上の利用分野〕 この発明は,被検査物をテレビ・カメラで撮像し傷の有
無・位置および形状等を検査する画像傷検査装置に関す
るものである。Description: TECHNICAL FIELD The present invention relates to an image scratch inspection apparatus for inspecting an object to be inspected with a television camera to inspect the presence / absence, position, shape, etc. of a flaw.
第3図は従来のこの種の画像傷検査装置である。第3図
において,(1)は被検査物を撮像するテレビ・カメ
ラ,(2)はこのテレビ・カメラ(1)が出力する映像
信号を入力しディジタルの多値画像データに変換するカ
メラ・インタフェース,(8)はこのカメラ・インタフ
ェース(2)が出力する多値画像データを所定の基準濃
度値で二値化し二値画像データを得る二値化部,(9)
はこの二値化部(8)から出力される二値画像データを
記憶する二値画像メモリ,(10)は汎用的な各種の演算
処理機能,情報の記憶および入出力機能を備えたプロセ
ッサである。このプロセッサ(10)は上記二値画像メモ
リ(9)に記憶されている二値画像データの解析処理お
よび各部の制御を行う。FIG. 3 shows a conventional image scratch inspection device of this type. In FIG. 3, (1) is a television camera for picking up an image of an object to be inspected, and (2) is a camera interface for inputting a video signal output from the television camera (1) and converting it into digital multi-valued image data. , (8) is a binarization unit for binarizing multi-valued image data output from the camera interface (2) with a predetermined reference density value to obtain binary image data, (9)
Is a binary image memory for storing the binary image data output from the binarization unit (8), and (10) is a processor equipped with various general-purpose arithmetic processing functions, information storage and input / output functions. is there. The processor (10) performs an analysis process of binary image data stored in the binary image memory (9) and control of each unit.
次に動作について説明する。二値化部(8)の二値化を
行う基準濃度値いわゆる二値化レベルはプロセッサ(1
0)によって設定される。テレビ・カメラ(1)で撮像
されカメラ・インタフェース(2)を介して得られる多
値画像データは,二値化部(8)によりこの二値化レベ
ルで白と黒に二値化され,二値画像データとして二値画
像メモリに入力記憶される。傷の検出はこの二値画像デ
ータをプロセッサ(10)で解析することにより行う。Next, the operation will be described. The reference density value for binarizing the binarizing unit (8), the so-called binarization level, is the processor (1
0). The multi-valued image data captured by the TV camera (1) and obtained through the camera interface (2) is binarized by the binarization unit (8) into white and black at this binarization level, The value image data is input and stored in the binary image memory. The scratch is detected by analyzing the binary image data with the processor (10).
第4図は従来装置のカメラ入力画像とその二値画像の一
例を示す図である。第4図において(a)はカメラ入力
画像であり,長い被検査物をカメラ視野上下を長手方向
において撮像したものである。このカメラ入力画像
(a)において,被検査部の画像の左右が背景部の画像
であり,中央付近の傷の画像と同様の濃度レベルにあ
る。(e)はこのカメラ入力画像(a)を,例えば傷の
部分を黒にするように二値化した場合の二値画像であ
り,傷の部分と共に背景部も黒になる。従ってプロセッ
サ(10)の処理は,まず背景部の除去処理を行った後に
傷検出処理を行うようになっていた。FIG. 4 is a diagram showing an example of a camera input image of the conventional device and its binary image. In FIG. 4, (a) is a camera input image, which is an image of a long object to be inspected taken in the longitudinal direction above and below the visual field of the camera. In this camera input image (a), the left and right of the image of the inspected part are images of the background part, and have the same density level as the image of the scratch near the center. (E) is a binary image obtained by binarizing the camera input image (a) so that, for example, the scratched portion becomes black, and the background portion becomes black together with the scratched portion. Therefore, in the processing of the processor (10), first, the background portion is removed, and then the flaw detection processing is performed.
従来の画像傷検査装置は以上のように構成されており,
被検査物と,傷部と同様の濃度レベルの背景部の画像が
同一画面に撮像される場合において,プロセッサの解析
処理に背景部の除去処理が必要となり,傷検出に時間が
かかるという課題があった。The conventional image flaw inspection device is configured as described above,
When an image of an object to be inspected and a background portion having a density level similar to that of the scratched portion are captured on the same screen, the background portion removal processing is required for the analysis processing of the processor, and it takes a long time to detect the flaw. there were.
この発明は上記のような課題を解消するためになされた
もので,背景部の画像があっても短時間で傷検出可能な
画像傷検査装置を得ることを目的としている。The present invention has been made to solve the above problems, and an object thereof is to provide an image flaw inspection apparatus capable of detecting flaws in a short time even if there is an image of the background portion.
この発明に係る画像傷検査装置は,上記従来装置の構成
のカメラ・インタフェースと二値化部の間に,走査線1
本分の画像データを記憶するライン・メモリと,カメラ
・インタフェースから出力される画像データと,このラ
イン・メモリから出力される画像データの差分データを
得る減算部と,この差分データに係数を乗ずる乗算部
と,この乗算部の乗算出力にライン・メモリから出力さ
れる画像データを加算しライン・メモリへ出力記憶させ
る加算部を備え,減算部出力の差分データを二値化部へ
供給するように構成したものである。The image flaw inspection apparatus according to the present invention includes a scanning line 1 between the camera interface and the binarization unit having the above-described conventional apparatus.
A line memory for storing the image data of the main line, an image data output from the camera interface, a subtraction unit for obtaining difference data between the image data output from the line memory, and a coefficient for multiplying the difference data A multiplication unit and an addition unit that adds the image data output from the line memory to the multiplication output of this multiplication unit and outputs and stores it in the line memory are provided, and the difference data output from the subtraction unit is supplied to the binarization unit. It is configured in.
この発明においては,前走査線までライン・メモリに演
算記憶された画像データと現入力走査線の画像データの
差分データを二値化するので,画面の垂直方向に濃度変
化がある部分のみが二値化されることになり,背景部が
除去された二値画像データを得ることが可能となる。In the present invention, since the difference data between the image data calculated and stored in the line memory up to the previous scan line and the image data of the current input scan line is binarized, only the portion where the density change in the vertical direction of the screen is binary. Since the image is digitized, it is possible to obtain binary image data with the background part removed.
第1図はこの発明の一実施例を示す図であり,(1)
(2)(9)および(10)は上記従来装置と全く同一の
ものである。(3)は走査線1本分すなわち画面上の水
平方向1ライン分の画像データを記憶するライン・メモ
リである。(4)はこのライン・メモリ(3)とカメラ
・インタフェース(2)の双方から出力される画像デー
タの差分データを得る減算部である。(5)はこの減算
部(4)から出力される差分データに係数を乗ずる乗算
部,(6)はこの乗算部(5)に係数を設定供給する乗
数設定部,(7)は上記乗算部(5)の乗算出力にライ
ン・メモリ(3)から出力される画像データを加算する
加算部である。この加算部(7)の加算出力は次の走査
線データの演算用としてライン・メモリ(3)に入力記
憶する。(8)は従来装置と同様の二値化部であるが,
上記減算部(4)が出力する差分データを二値化する位
置に設置する。FIG. 1 is a diagram showing an embodiment of the present invention.
(2) (9) and (10) are exactly the same as the above conventional device. (3) is a line memory for storing image data for one scanning line, that is, one horizontal line on the screen. (4) is a subtraction unit for obtaining difference data of image data output from both the line memory (3) and the camera interface (2). (5) is a multiplication unit that multiplies the difference data output from the subtraction unit (4) by a coefficient, (6) is a multiplier setting unit that sets and supplies the coefficient to the multiplication unit (5), and (7) is the multiplication unit It is an adder that adds the image data output from the line memory (3) to the multiplication output of (5). The addition output of the addition unit (7) is input and stored in the line memory (3) for calculation of the next scanning line data. (8) is a binarization unit similar to the conventional device,
The difference data output by the subtraction unit (4) is installed at a position where it is binarized.
上記のように構成された画像傷検査装置において,ライ
ン・メモリ(3)に1走査線ごとに得られる画像データ
は,乗算部(5)の係数を例えば1/4等の1以下の値に
することにより,画面上垂直方向の差分データすなわち
濃度変化分を少しづつ加算蓄積していくことになるの
で,いわゆる平滑データとなる。第2図はこの発明の実
施例におけるカメラ入力画像と二値画像の一例を示す図
である。第2図において,(a)は従来装置と同一のカ
メラ入力画像,(b)は破線で示す傷部垂直方向断面の
カメラ・インタフェース(2)から出力される入力デー
タの濃度分布,(c)は同位置のライン・メモリ(3)
に蓄積される平滑データの濃度分布,(d)は同位置の
減算部(4)から出力される差分データの濃度分布であ
る。二値化部(8)の二値化レベルはこの差分データ
(d)の傷部を抽出可能な値に設定される。一方背景部
は画面内垂直方向に同様の濃度であり差分データの分布
の振巾が微少であるため除去される。(e)は傷部のみ
抽出された二値画像である。In the image flaw inspection device configured as described above, the image data obtained for each scanning line in the line memory (3) has the coefficient of the multiplication unit (5) set to a value of 1 or less such as 1/4. By doing so, the difference data in the vertical direction on the screen, that is, the density change amount is added and accumulated little by little, so that it becomes so-called smooth data. FIG. 2 is a diagram showing an example of a camera input image and a binary image in the embodiment of the present invention. In FIG. 2, (a) is the same camera input image as the conventional device, (b) is the density distribution of the input data output from the camera interface (2) of the cross section in the vertical direction of the scratch shown by the broken line, (c) Is the line memory at the same position (3)
The density distribution of the smoothed data accumulated in (1), (d) is the density distribution of the difference data output from the subtraction unit (4) at the same position. The binarization level of the binarization unit (8) is set to a value capable of extracting the scratched portion of the difference data (d). On the other hand, the background part is removed because the density is similar in the vertical direction in the screen and the amplitude of the difference data distribution is very small. (E) is a binary image in which only the scratched portion is extracted.
以上のようにこの発明によれば,差分データを得る減算
部とライン・メモリを備え,更に乗算部と加算部により
このライン・メモリに平滑化された画像データを蓄積す
るようにし,かつ二値化部を差分データの二値化を行う
位置に設置したので,画面の垂直方向に濃度変化がある
部分すなわち背景部が除去された傷部のみが抽出できる
ことになり傷検出時間を短縮できる効果がある。As described above, according to the present invention, the subtraction unit for obtaining the difference data and the line memory are provided, and the multiplication unit and the addition unit store the smoothed image data in the line memory, and the binary data is stored. Since the digitization unit is installed at the position where the difference data is binarized, only the portion where the density change in the vertical direction of the screen, that is, the flaw portion where the background portion is removed can be extracted, and the effect of shortening the flaw detection time can be obtained. is there.
第1図はこの発明の画像傷検査装置の一実施例の図,第
2図はこの発明装置のカメラ入力画像と二値画像の一例
を示す図,第3図は従来の画像傷検査装置を示す図,第
4図は従来装置のカメラ入力画像と二値画像の一例を示
す図である。 図において,(1)はテレビ・カメラ,(2)はカメラ
・インタフェース,(3)はライン・メモリ,(4)は
減算部,(5)は乗算部,(6)は乗数設定部,(7)
は加算部,(8)は二値化部,(9)は二値画像メモ
リ,(10)はプロセッサ,(a)はカメラ入力画像,
(b)は入力データ,(c)は平滑データ,(d)は差
分データ,(e)は二値画像である。 なお,各図中同一符号は同一又は相当部分を示すものと
する。FIG. 1 is a diagram of an embodiment of an image flaw inspection apparatus of the present invention, FIG. 2 is a diagram showing an example of a camera input image and a binary image of the apparatus of the present invention, and FIG. 3 is a conventional image flaw inspection apparatus. 4 and FIG. 4 are diagrams showing an example of a camera input image and a binary image of the conventional apparatus. In the figure, (1) is a television camera, (2) is a camera interface, (3) is a line memory, (4) is a subtraction unit, (5) is a multiplication unit, (6) is a multiplier setting unit, ( 7)
Is an addition unit, (8) is a binarization unit, (9) is a binary image memory, (10) is a processor, (a) is a camera input image,
(B) is input data, (c) is smooth data, (d) is difference data, and (e) is a binary image. The same reference numerals in the drawings indicate the same or corresponding parts.
───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.6 識別記号 庁内整理番号 FI 技術表示箇所 H04N 7/18 W ─────────────────────────────────────────────────── ─── Continuation of the front page (51) Int.Cl. 6 Identification code Internal reference number FI Technical indication H04N 7/18 W
Claims (1)
のテレビ・カメラが出力する映像信号をディジタルの多
値画像データに変換するカメラ・インタフェースと,走
査線1本分の画像データを記憶するライン・メモリと,
上記カメラ・インタフェースから出力される画像データ
とこのライン・メモリから出力される画像データの差分
データを得る減算部と,この減算部から出力される差分
データと係数の乗算を行う乗算部と,この乗算部の乗数
を設定する乗数設定部と,上記乗算部の乗算出力にライ
ン・メモリから出力される画像データを加算し加算デー
タをライン・メモリへ出力する加算部と,上記減算部か
ら出力される差分データの二値化を行う二値化部と,こ
の二値化部から出力される二値画像データを記憶する二
値画像メモリと,この二値画像メモリ内の二値画像デー
タの解析および上記各部の制御を行うプロセッサを備え
たことを特徴とする画像傷検査装置。1. A television camera for imaging an object to be inspected, a camera interface for converting a video signal output by the television camera into digital multi-valued image data, and image data for one scanning line stored. Line memory,
A subtraction unit for obtaining difference data between the image data output from the camera interface and the image data output from the line memory; a multiplication unit for multiplying the difference data output from the subtraction unit by a coefficient; The multiplier setting unit that sets the multiplier of the multiplication unit, the addition unit that adds the image data output from the line memory to the multiplication output of the multiplication unit and outputs the addition data to the line memory, and the output from the subtraction unit. A binarization unit for binarizing the difference data, a binary image memory for storing the binary image data output from the binarization unit, and an analysis of the binary image data in the binary image memory. And an image flaw inspection apparatus comprising a processor for controlling the above-mentioned respective parts.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1242548A JPH0781961B2 (en) | 1989-09-19 | 1989-09-19 | Image scratch inspection device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1242548A JPH0781961B2 (en) | 1989-09-19 | 1989-09-19 | Image scratch inspection device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH03103754A JPH03103754A (en) | 1991-04-30 |
| JPH0781961B2 true JPH0781961B2 (en) | 1995-09-06 |
Family
ID=17090745
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP1242548A Expired - Lifetime JPH0781961B2 (en) | 1989-09-19 | 1989-09-19 | Image scratch inspection device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0781961B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2786554B2 (en) * | 1991-06-07 | 1998-08-13 | 株式会社クボタ | Long body inspection equipment |
-
1989
- 1989-09-19 JP JP1242548A patent/JPH0781961B2/en not_active Expired - Lifetime
Also Published As
| Publication number | Publication date |
|---|---|
| JPH03103754A (en) | 1991-04-30 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPH0736001B2 (en) | Bottle defect inspection method | |
| JPH03160349A (en) | Device for detecting crack | |
| JPH0781961B2 (en) | Image scratch inspection device | |
| JPH06103276B2 (en) | Surface inspection device | |
| JPH04240557A (en) | Method for detecting flaw | |
| JP2569543B2 (en) | Hardness tester | |
| JP2000180375A (en) | Flat panel display inspection method and apparatus | |
| JP3598196B2 (en) | Periodic pattern defect inspection equipment | |
| JPH04115147A (en) | Optical inspection apparatus | |
| JPH0514898A (en) | Image monitor device | |
| JP2500649B2 (en) | IC foreign matter inspection device | |
| JP2909756B2 (en) | Nonmetallic inclusion inspection method and nonmetallic inclusion inspection apparatus | |
| JPH0682724B2 (en) | Wafer defect inspection system | |
| JPS61147377A (en) | Image analyzer | |
| JPH0319990B2 (en) | ||
| JP2564737B2 (en) | Automatic magnetic particle flaw detector | |
| JPH0359362B2 (en) | ||
| JP2762724B2 (en) | Appearance inspection device | |
| JPH09161079A (en) | Image processing device | |
| JPH07243824A (en) | Image inspection equipment | |
| JPH02271243A (en) | Flaw detection and apparatus therefor | |
| JPH02278145A (en) | Method and apparatus for detecting damage of image | |
| JPH096954A (en) | Low contrast defect detector | |
| JP2004020428A (en) | Image inspection method and image inspection device | |
| JPH01158577A (en) | Method for background erasing and binarization processing for line graphic picture and its device and picture processor for fingerprint picture |