JPH0242407B2 - - Google Patents
Info
- Publication number
- JPH0242407B2 JPH0242407B2 JP24960583A JP24960583A JPH0242407B2 JP H0242407 B2 JPH0242407 B2 JP H0242407B2 JP 24960583 A JP24960583 A JP 24960583A JP 24960583 A JP24960583 A JP 24960583A JP H0242407 B2 JPH0242407 B2 JP H0242407B2
- Authority
- JP
- Japan
- Prior art keywords
- image
- inspected
- frame memory
- television camera
- converter
- 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
Links
- 230000007547 defect Effects 0.000 claims description 23
- 238000000034 method Methods 0.000 claims description 7
- 238000001514 detection method Methods 0.000 description 4
- 238000010586 diagram Methods 0.000 description 3
- 230000004069 differentiation Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01B—MEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
- G01B11/00—Measuring arrangements characterised by the use of optical techniques
- G01B11/30—Measuring arrangements characterised by the use of optical techniques for measuring roughness or irregularity of surfaces
- G01B11/303—Measuring arrangements characterised by the use of optical techniques for measuring roughness or irregularity of surfaces using photoelectric detection means
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Length Measuring Devices By Optical Means (AREA)
- Length Measuring Devices With Unspecified Measuring Means (AREA)
- Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)
Description
【発明の詳細な説明】
〔技術分野〕
本発明は、被検査物の表面にある凹凸欠陥をテ
レビカメラによつて画像にとり込み、コンピユー
タによつて多値化の数値処理を行なうことにより
認識する凹凸欠陥検出方法に関するものである。[Detailed Description of the Invention] [Technical Field] The present invention captures an image of irregularities on the surface of an object to be inspected using a television camera, and recognizes the defects by performing multivalue numerical processing using a computer. The present invention relates to an uneven defect detection method.
従来の凹凸欠陥検出方法では、まず被検査物に
正反射光を当てて得られる正反射像を浮動2値化
などの2値化処理により処理する。ここで、浮動
2値化とは、あるしきい値で入力信号を比較し、
大小によつて2値(例えば1、0)に分けると
き、しきい値が入力信号に順応して変化するよう
にしたものをいう。その後、コンピユータに入
れ、画素数カウントやマツチング手段を用いて欠
陥を検出していた。即ち、画像を2値化した後、
集画に対してマスクを用意し、このマスクにより
原画を判別する。いいかえれば、原画にマスクを
重ね(マツチング)、マスクと原画が重なつた部
分の画素数を数え(画素数カウント)て欠陥を検
出していた。しかるに、被検査物の表面の凹凸欠
陥は発生個所がランダムで、マツチング手法は使
用できない。即ち、マツチング手法は、手法を適
用する対象物が判明していないと、いいかえれば
マスクが限定できないと使用できない。又、凹凸
欠陥は、欠陥の大きさが均一でないため、画素数
カウント手法も不正確となつていた。
In the conventional unevenness defect detection method, first, a specularly reflected image obtained by applying specularly reflected light to an object to be inspected is processed by a binarization process such as floating binarization. Here, floating binarization compares input signals at a certain threshold,
When dividing into binary values (for example, 1, 0) based on magnitude, the threshold value changes according to the input signal. After that, they were put into a computer and used to count the number of pixels and use matching means to detect defects. That is, after binarizing the image,
A mask is prepared for the collection of images, and the original image is determined using this mask. In other words, defects were detected by overlapping a mask on the original image (matching) and counting the number of pixels in the area where the mask and the original image overlapped (pixel count). However, unevenness defects on the surface of the object to be inspected occur at random locations, and the matching method cannot be used. That is, the matching method cannot be used unless the object to which the method is applied is known, or in other words, the mask cannot be defined. Furthermore, since the uneven defects are not uniform in size, the method of counting the number of pixels has also become inaccurate.
本発明の目的とするところは、欠陥の大きさが
均一でなくても同一判定基準で処理できるように
して従来2値化処理では検出が困難な凹凸欠陥を
検出できるようにすることにある。
An object of the present invention is to enable processing using the same criteria even if the size of the defect is not uniform, thereby making it possible to detect uneven defects that are difficult to detect using conventional binarization processing.
実施例
第1図において、1は光源で、被検査物2を斜
め上方から照明し、被検査物2の表面に正反射光
を与える。3はテレビカメラで、被検査物2の正
反射像をとり込む。このとき、凸欠陥の正反射像
は、第2図のようにA側では明るい部分4とな
り、B側では暗い部分5となる。テレビカメラ3
からの映像信号は、第3図のように、A/D変換
器6に入力されてA/D変換され、順次フレーム
メモリ7に書き込まれる。8はコンピユータで、
フレームメモリ7に書き込まれた被検査物2の画
像データを数値処理する。9はメモリで、処理の
結果や途中結果を書き込む。フレームメモリ7は
テレビカメラ3と同期して1画像分の画像データ
を書き込むことが可能な高速大容量メモリであ
り、1画像を256×256の画素に分散して記憶して
おり、1画素は256階調(8ビツト)の光量デー
タを持つている。
Embodiment In FIG. 1, reference numeral 1 denotes a light source that illuminates an object 2 to be inspected obliquely from above and provides specularly reflected light to the surface of the object 2 to be inspected. A television camera 3 captures a regular reflection image of the object 2 to be inspected. At this time, the specular reflection image of the convex defect becomes a bright part 4 on the A side and a dark part 5 on the B side, as shown in FIG. TV camera 3
The video signal is input to the A/D converter 6, A/D converted, and sequentially written into the frame memory 7, as shown in FIG. 8 is a computer,
The image data of the inspected object 2 written in the frame memory 7 is numerically processed. 9 is a memory in which processing results and intermediate results are written. The frame memory 7 is a high-speed, large-capacity memory that can write image data for one image in synchronization with the television camera 3, and stores one image by distributing it into 256 x 256 pixels. It has 256 gradations (8 bits) of light intensity data.
動 作
フレームメモリ7に書き込まれた第4図aのよ
うな256×256の画素を第4図bのように水平方向
にN分割、垂直方向にM分割してN×M個の領域
に分ける。第4図bの場合、M=8、N=8で64
の領域に分割されており、1領域内の画素数は32
×32=1024画素となつている。この1領域中の
1024画素について、平均光量をコンピユータ8で
計算し、メモリ9に書き込む。これを64領域のす
べてについて計算し、計算された平均光量を領域
の位置に沿つて第5図のようにK11、K12と割り
付ける。今後、平均光量はKMNで位置を示す。こ
のようにフレームメモリ7内をそれぞれ複数の画
素を含む領域に分割し、領域内の平均光量を求め
るのは、凹凸欠陥では、隣接する画素の間での光
量の変化が比較的緩やかであり、微分のような処
理では光量の変化が検出しにくいからである。す
なわち、複数の画素について平均光量を求めるこ
とにより、光量の変化を強調することができ、凹
凸欠陥を光量の変化によつて検出するのが容易に
なるのである。つぎに1つの領域の平均光量に対
して第5図のように8近傍、例えば、K53に対し
てK42、K43、K44、K52、K54、K62、K63、K64の
8近傍の平均光量と比較し、8近傍中でKMNの光
量より小さい光量の内で、KMNとの光量差を計算
し、最も大きな差を選び出す。これをSMNとす
る。式で表すと、
SMN=KMN−MIN(KMNの8近傍)
ただし、KMN−MIN(KMNの8近傍)>0とし、
MIN(KMNの8近傍)は8近傍中の最小値を選
ぶ。Operation Divide the 256 x 256 pixels written in the frame memory 7 as shown in Figure 4 a into N x M areas by dividing them into N horizontally and M vertically as shown in Figure 4 b. . In the case of Figure 4b, M=8, N=8 and 64
The number of pixels in one area is 32.
×32=1024 pixels. in this one area
The computer 8 calculates the average light amount for 1024 pixels and writes it into the memory 9. This is calculated for all 64 areas, and the calculated average light quantity is assigned as K 11 and K 12 along the position of the area as shown in FIG. From now on, the average light intensity will indicate the position in K MN . The reason why the frame memory 7 is divided into regions each containing a plurality of pixels and the average amount of light within each region is determined is because in uneven defects, the change in the amount of light between adjacent pixels is relatively gradual; This is because it is difficult to detect changes in the amount of light using processes such as differentiation. That is, by determining the average light amount for a plurality of pixels, changes in the light amount can be emphasized, and uneven defects can be easily detected based on changes in the light amount. Next, for the average light amount of one area, as shown in Figure 5, eight neighbors are determined, for example, for K 53 , K 42 , K 43 , K 44 , K 52 , K 54 , K 62 , K 63 , K 64 The average light intensity of the 8 neighborhoods is calculated, and the difference in light intensity from K MN is calculated among the 8 neighborhoods that are smaller than the light intensity of K MN , and the largest difference is selected. Let this be SMN . Expressed in the formula, S MN = K MN − MIN (8 neighbors of K MN ) However, K MN − MIN (8 neighbors of K MN ) > 0,
MIN (8 neighbors of K MN ) selects the minimum value among the 8 neighbors.
このSMNもS11からS88まで求める。ただし、S11
はK21、K22、K12の3近傍より計算し、S12は5
近傍より計算する。SN1、SN8、S1M、S8Mも同様に
計算する。MIN(KMNの8近傍)が条件を満さな
い場合はSMN=0とする。このようにして計算さ
れた64個のSMNについて、あらかじめ設定された
判定基準と比較すれば、凹凸欠陥が存在している
領域を検出できるのである。また、凹凸欠陥の欠
陥の位置を検出するのではなく、凹凸欠陥の有無
によつて被検査物2の良否を決定するときには、
SMNの最大値を求め、あらかじめ設定された判定
基準と比較すれば目的を達成することができる。 This S MN is also calculated from S 11 to S 88 . However, S 11
is calculated from the three neighborhoods of K 21 , K 22 , and K 12 , and S 12 is 5
Calculate from the neighborhood. S N1 , S N8 , S 1M , and S 8M are calculated in the same way. If MIN (8 neighbors of K MN ) does not satisfy the condition, S MN =0. By comparing the 64 S MNs calculated in this way with preset criteria, it is possible to detect areas where uneven defects exist. Furthermore, when determining the quality of the inspected object 2 based on the presence or absence of uneven defects, rather than detecting the position of the uneven defects,
The purpose can be achieved by finding the maximum value of S MN and comparing it with preset criteria.
具体的に説明すると、第6図aのように、K22
とK32にわたつて凸欠陥がある場合、明るい領域
K22の平均光量が100で、暗い領域Kの平均光量
が20とする。又、残りの平均光量はすべて50とす
ると、第6図bのように、S22=80、S32=0とな
り、凸欠陥を検出できる。 To explain specifically, as shown in Figure 6a, K 22
If there is a convex defect over K 32 , the bright region
Assume that the average light amount of K 22 is 100, and the average light amount of dark area K is 20. Further, if the remaining average light quantities are all 50, then S 22 =80 and S 32 =0 as shown in FIG. 6b, and a convex defect can be detected.
上述のように本発明は、被検査物の表面に正反
射光を与える光源と、前記被検査物の正反射像を
とり込むテレビカメラと、前記テレビカメラの出
力をA/D変換するA/D変換器と、前記A/D
変換器の出力を順次格納するフレームメモリとを
備え、前記フレームメモリに格納された画像デー
タを水平方向にN個、垂直方向にM個に区切り1
画像をM×N個の領域に分ける手段と、前記1領
域の画像データを読み出し各点の明るさの平均値
を計算する手段と、各領域の平均値を比べて差を
計算する手段と、計算された平均値の差を基準値
と比較する比較手段とにより凹凸欠陥を検出する
から、欠陥の大きさが均一でなくても同一判定基
準で処理でき、従来2値化処理では検出が困難な
凹凸欠陥を検出できるという効果を奏するもので
ある。
As described above, the present invention includes a light source that provides specularly reflected light to the surface of an object to be inspected, a television camera that captures a specularly reflected image of the object, and an A/D converter that converts the output of the television camera. D converter and the A/D
a frame memory that sequentially stores the output of the converter, and divides the image data stored in the frame memory into N pieces in the horizontal direction and M pieces in the vertical direction.
means for dividing an image into M×N regions; means for reading the image data of the one region and calculating an average value of brightness at each point; and means for comparing the average values of each region and calculating a difference; Uneven defects are detected using a comparison means that compares the difference between the calculated average values with a reference value, so even if the defects are not uniform in size, they can be processed using the same criteria, making them difficult to detect using conventional binarization processing. This has the effect of being able to detect uneven defects.
第1図は本発明検出方法に使用する装置の一実
施例の斜視図、第2図は同上のテレビカメラの正
反射像の一例の正面図、第3図は同上のブロツク
回路図、第4図a,bはフレームメモリに書き込
まれた画像データ説明図、第5図は同上の平均光
量割り付け図、第6図a,bは本発明の凹凸欠陥
検出方法の具本説明図である。
1……光源、2……被検査物、3……テレビカ
メラ、6……A/D変換器、7……フレームメモ
リ、8……コンピユータ、9……メモリ。
FIG. 1 is a perspective view of an embodiment of the apparatus used in the detection method of the present invention, FIG. 2 is a front view of an example of a specularly reflected image of the television camera shown above, FIG. Figures a and b are explanatory diagrams of image data written in the frame memory, Fig. 5 is a diagram of the average light quantity allocation same as above, and Figures 6 a and b are explanatory diagrams of the unevenness defect detection method of the present invention. DESCRIPTION OF SYMBOLS 1... Light source, 2... Test object, 3... Television camera, 6... A/D converter, 7... Frame memory, 8... Computer, 9... Memory.
Claims (1)
前記被検査物の正反射像をとり込むテレビカメラ
と、前記テレビカメラの出力をA/D変換する
A/D変換器と、前記A/D変換器の出力を順次
格納するフレームメモリとを備え、前記フレーム
メモリに格納された画像データを水平方向にN
個、垂直方向にM個に区切り1画像をM×N個の
領域に分ける手段と、前記1領域の画像データを
読み出し各点の明るさの平均値を計算する手段
と、各領域の平均値を比べて差を計算する手段
と、計算された平均値の差を基準値と比較する比
較手段とにより凹凸欠陥を検出することを特徴と
する凹凸欠陥検出方法。1. A light source that provides specularly reflected light on the surface of the object to be inspected;
A television camera that captures a regular reflection image of the object to be inspected, an A/D converter that converts the output of the television camera from analog to digital, and a frame memory that sequentially stores the output of the A/D converter. , the image data stored in the frame memory is horizontally N
means for dividing one image into M×N regions by vertically dividing the image into M regions; means for reading out the image data of the one region and calculating the average value of the brightness of each point; and the average value of each region. 1. A method for detecting unevenness defects, characterized in that an unevenness defect is detected by a means for calculating a difference by comparing the average values, and a comparison means for comparing the difference between the calculated average values with a reference value.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP24960583A JPS60135707A (en) | 1983-12-23 | 1983-12-23 | Detecting method of ruggedness defect |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP24960583A JPS60135707A (en) | 1983-12-23 | 1983-12-23 | Detecting method of ruggedness defect |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS60135707A JPS60135707A (en) | 1985-07-19 |
| JPH0242407B2 true JPH0242407B2 (en) | 1990-09-21 |
Family
ID=17195505
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP24960583A Granted JPS60135707A (en) | 1983-12-23 | 1983-12-23 | Detecting method of ruggedness defect |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS60135707A (en) |
Families Citing this family (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH0772718B2 (en) * | 1985-02-15 | 1995-08-02 | 株式会社日立製作所 | Appearance inspection device |
| JPH02242108A (en) * | 1989-03-15 | 1990-09-26 | Matsushita Electric Works Ltd | Appearance inspecting machine |
| DE4230068A1 (en) * | 1992-09-09 | 1994-03-10 | Tzn Forschung & Entwicklung | Method and device for contactless checking of the surface roughness of materials |
| JP5821708B2 (en) * | 2012-03-06 | 2015-11-24 | トヨタ自動車株式会社 | Defect inspection apparatus and defect inspection method |
| JP2013205381A (en) * | 2012-03-29 | 2013-10-07 | Nisshin Steel Co Ltd | Method and system for detecting defect of steel tape threaded into cold rolling mill |
| JP6643301B2 (en) * | 2017-12-06 | 2020-02-12 | 日東電工株式会社 | Defect inspection device and defect inspection method |
-
1983
- 1983-12-23 JP JP24960583A patent/JPS60135707A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS60135707A (en) | 1985-07-19 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPH0736001B2 (en) | Bottle defect inspection method | |
| US5917957A (en) | Method of and apparatus for processing an image | |
| JPH0242407B2 (en) | ||
| JP3322958B2 (en) | Print inspection equipment | |
| CN120451161B (en) | Toothpaste tube quality detection method and system based on machine vision | |
| JP3332208B2 (en) | Defect detection method and apparatus for netted glass | |
| JPH04147045A (en) | Surface inspection device | |
| JP2000199745A (en) | Inspection method and apparatus for color unevenness | |
| JP2710527B2 (en) | Inspection equipment for periodic patterns | |
| JP2003156451A (en) | Defect detection device | |
| JP3160743B2 (en) | LCD panel defect inspection equipment | |
| JP3216439B2 (en) | Internal inspection equipment for circular containers | |
| JPH0711414B2 (en) | Glass bottle uneven thickness inspection method | |
| JP3234636B2 (en) | Defect inspection equipment | |
| JPH08297020A (en) | Defect inspection method and its equipment | |
| KR102196396B1 (en) | A method for detecting surface defects of variable display panel glass | |
| JP3202330B2 (en) | Defect inspection equipment | |
| JP2010044010A (en) | Method for detecting defect of mesh- or wire-embedded glass | |
| JP2638121B2 (en) | Surface defect inspection equipment | |
| JPH11132966A (en) | Meander tracking device for defect inspection device | |
| CN113920054B (en) | A film line positioning and film strip identification method | |
| JPH0682724B2 (en) | Wafer defect inspection system | |
| JPH09145638A (en) | Surface defect inspection method and device | |
| JP7297354B1 (en) | Image processing system and image processing method | |
| JPH04122844A (en) | Inspecting apparatus for defect |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| EXPY | Cancellation because of completion of term |