Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPH0467907B2 - - Google Patents
[go: Go Back, main page]

JPH0467907B2 - - Google Patents

Info

Publication number
JPH0467907B2
JPH0467907B2 JP20486686A JP20486686A JPH0467907B2 JP H0467907 B2 JPH0467907 B2 JP H0467907B2 JP 20486686 A JP20486686 A JP 20486686A JP 20486686 A JP20486686 A JP 20486686A JP H0467907 B2 JPH0467907 B2 JP H0467907B2
Authority
JP
Japan
Prior art keywords
pixel
defect
light
output
pixels
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
Application number
JP20486686A
Other languages
Japanese (ja)
Other versions
JPS6361149A (en
Inventor
Shuji Oonaka
Haruhisa Kudo
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.)
Toto Ltd
NEC Corp
Original Assignee
Toto Ltd
Nippon Electric 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 Toto Ltd, Nippon Electric Co Ltd filed Critical Toto Ltd
Priority to JP20486686A priority Critical patent/JPS6361149A/en
Publication of JPS6361149A publication Critical patent/JPS6361149A/en
Publication of JPH0467907B2 publication Critical patent/JPH0467907B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Length Measuring Devices By Optical Means (AREA)
  • Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)
  • Closed-Circuit Television Systems (AREA)

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、水栓等の被検知物体表面のピンホー
ル、割れ傷等の有無や程度を光学的に検出する表
面欠陥検出方式に関する。
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to a surface defect detection method for optically detecting the presence and extent of pinholes, cracks, etc. on the surface of a detected object such as a water faucet.

(従来の技術) 水栓等の製造過程においてはピンホール欠陥や
割れ傷などが発生する場合があり、これら欠陥品
を製造ラインから除去する必要がある。
(Prior Art) In the manufacturing process of faucets and the like, pinhole defects, cracks, etc. may occur, and it is necessary to remove these defective products from the manufacturing line.

水栓等の表面は、曲面をなすから、平面形状の
物体に比べて自動検査が難しく、人間の目視によ
る検査が行なわれていた。
Since the surfaces of faucets and the like are curved, it is difficult to automatically inspect them compared to flat objects, and inspections have been performed visually by humans.

(発明が解決しようとする問題点) 近年、画像処理技術の進歩とともに、テレビカ
メラを用いた自動欠陥検出が実用化されている。
カメラによる物体像受光手段は大別して透過光受
光と反射光受光に分けられるが、水栓欠陥検出の
場合は、水栓自体が非透明体であるので、後者の
反射光受光による検出方法を採用している。被検
知物体が板材又は円筒パイプの様に平面状の物体
の場合は、反射受光波形が平坦状であるので、比
較的処理が容易であるが、水栓の様に曲面形状の
場合は反射受光波形も曲面形状に対応して凹凸を
持つて変動することとなり、検出処理に工夫を要
し、欠陥検出が煩雑になるという問題があつた。
(Problems to be Solved by the Invention) In recent years, with advances in image processing technology, automatic defect detection using a television camera has been put into practical use.
Object image receiving means using a camera can be roughly divided into transmitted light reception and reflected light reception, but in the case of faucet defect detection, since the faucet itself is non-transparent, the latter detection method based on reflected light reception is adopted. are doing. If the object to be detected is a flat object such as a plate or a cylindrical pipe, the reflected light waveform is flat, so processing is relatively easy. However, if the object is curved like a faucet, the reflected light waveform is flat. The waveform also fluctuates with unevenness corresponding to the curved surface shape, which requires some ingenuity in the detection process, resulting in a problem that defect detection becomes complicated.

また、水栓等の欠陥検査において欠陥の有無の
みの判定だけでは、良品とみなすべき小欠陥も不
良品と判定され、不良品排出率が高くなり歩留り
が悪くなるという問題点があつた。
In addition, when inspecting faucets and the like for defects, if only the presence or absence of defects is determined, small defects that should be considered as good products are also determined to be defective, resulting in a high rejection rate and poor yield.

本発明は、上記問題点に鑑みてなされたもの
で、簡易且つ正確に欠陥を検出することのできる
表面欠陥検出方式を提供することを目的とする。
The present invention has been made in view of the above-mentioned problems, and an object of the present invention is to provide a surface defect detection method that can detect defects simply and accurately.

(問題点を解決するための手段) 前述の問題点を解決し、上記目的を達成するた
めに本発明が提供する手段は、被検知物体表面か
らの光を複数の画素を有する光検出手段に収束し
て入射し、該複数画素を順次所定周期毎に走査し
て各画素の入射光量に相応した受光出力に基づい
て被検知物体表面のピンホール等の欠陥を検出す
る表面欠陥検出方式であつて、前記全画素数の内
所定数の画素間隔をおいて位置する各画素出力を
順次比較し走査方向に対して前側に位置する画素
の出力が後側に位置する画素の出力より所定レベ
ル以上低いときに前記前側に位置する画素を欠陥
開始の位置に相応する画素として判別する欠陥開
始位置判別手段と、前記走査を継続し該走査方向
に対して前側に位置する画素の出力レベルが所定
レベル以上に回復したときに該画素を欠陥終了位
置に相応する画素として判別する欠陥終了位置判
別手段と、前記欠陥開始位置判別手段の判別画素
と欠陥終了位置判別手段の判別画素との画素間隔
に応じて欠陥幅を演算する欠陥幅演算手段とを設
け、該欠陥幅が所定値以上であるときに欠陥とす
ることを特徴とする。
(Means for Solving the Problems) In order to solve the above-mentioned problems and achieve the above objects, the present invention provides means for transmitting light from the surface of an object to be detected to a light detection means having a plurality of pixels. It is a surface defect detection method in which defects such as pinholes on the surface of the object to be detected are detected based on the received light output corresponding to the amount of incident light of each pixel by converging the incident light and sequentially scanning the plurality of pixels at a predetermined period. The output of each pixel located at a predetermined pixel interval among the total number of pixels is sequentially compared, and the output of the pixel located on the front side in the scanning direction is at a predetermined level or higher than the output of the pixel located on the rear side in the scanning direction. defect start position determining means for determining the pixel located on the front side as a pixel corresponding to the defect start position when the output level is low, and the output level of the pixel located on the front side with respect to the scanning direction continues the scanning and the output level of the pixel located on the front side with respect to the scanning direction is a predetermined level. a defect end position determining means that determines the pixel as a pixel corresponding to the defect end position when the pixel has recovered to the above, and a pixel interval between the determining pixel of the defect starting position determining means and the determining pixel of the defect end position determining means. The present invention is characterized in that a defect width calculation means for calculating a defect width is provided, and when the defect width is equal to or larger than a predetermined value, it is determined to be a defect.

(実施例) 第1図は本発明の一実施例を示したブロツク
図、第2図は被検知物体として水栓を例にとつて
示した半断面図、第3図aは正常な水栓表面から
得られる受光レベルの波形図、第3図bは水栓表
面にピンホール等の欠陥が存在する場合の受光レ
ベルの波形図、第3図cは第3図bの欠陥部を拡
大して示した図である。1は複数画素を備え、各
画素に入射した光量に相応したアナログ量の受光
信号を出力する光検出手段としての一次元カメラ
(CCDセンサ)である。一次元カメラ(CCDセン
サ)1を具体的に説明すると、例えば2048個の画
素を横方向に直線配列した構造を持ち、後述する
全長80mm程度の水栓表面からの光をレンズ等を介
して2048個の画素に収束して入射することから、
各画素間隔に対応する分解能、即ち約40ミクロン
の分解能を有する。また、2048個の画素は所定周
期毎に順次走査され、該走査周期に相応して各画
素の受光出力を取り出すとともに走査周期に同期
して各画素を初期設定する。一次元カメラ
(CCDセンサ)1により得られた受光信号は、
A/D(アナログ/デイジタル)変換器2を介し
て順次各画素毎に多値レベル(256階調)のデイ
ジタル値に変換される。このデイジタル値のデー
タは、N(整数)画素分のデータをシフトするシ
フトレジスタ3と引算回路4に供給される。引算
回路4では現在の画素データDAとシフトレジス
タ3を介して得られるN画素前の過去のデータ
DBとで、(DB−DA)=△Dを演算し、続いて符号
判別回路5により△Dが正の場合のみ比較回路6
に出力する。比較回路6では、判定値回路7の判
定値と△Dとの値を比較し、△Dが判定値以上の
時、即ち、第3図cのA点に対応する位置で欠陥
が始まつたとして、画素カウンタ8のデータをN
画素分引いて即ち、画素位置XSをメモリ9に記
憶する。画素カウンタ8には、図示しない発振器
からの走査周期に同期した信号が与えられてい
る。又、この時のDB値をDSとして閾値設定し、
該DS値と現在画素データDAを比較回路10にて
順次比較していき、第3図cに示すようにDS
DAとなる画素位置XEを欠陥の終わりとして判断
する。引算回路20では、XE値とメモリ9に記
憶されていた欠陥の開始画素位置XS値との差△
Xを欠陥幅として算出する。この△Xの値は、幅
の小さい欠陥を良品と判断する為の幅比較回路1
1に入力され、△Xの値が予め設定された閾値以
上である場合、即ち大きな幅の欠陥のみ出力され
る。21は論理積回路である。
(Example) Fig. 1 is a block diagram showing an embodiment of the present invention, Fig. 2 is a half-sectional view showing a water faucet as an example of a detected object, and Fig. 3a is a normal water faucet. Figure 3b is a waveform diagram of the received light level obtained from the faucet surface. Figure 3c is an enlarged view of the defective part in Figure 3b. FIG. Reference numeral 1 denotes a one-dimensional camera (CCD sensor) that is equipped with a plurality of pixels and serves as a light detection means that outputs an analog light reception signal corresponding to the amount of light incident on each pixel. To explain the one-dimensional camera (CCD sensor) 1 in detail, it has a structure in which, for example, 2048 pixels are arranged horizontally in a straight line, and it captures light from the surface of a faucet with a total length of about 80 mm, which will be described later, through a lens, etc. Since it converges and enters the pixels,
It has a resolution corresponding to each pixel interval, ie, a resolution of about 40 microns. Further, the 2048 pixels are sequentially scanned at predetermined intervals, and the light reception output of each pixel is extracted in accordance with the scanning interval, and each pixel is initialized in synchronization with the scanning interval. The light reception signal obtained by the one-dimensional camera (CCD sensor) 1 is
Each pixel is sequentially converted into a multilevel (256 gradation) digital value via an A/D (analog/digital) converter 2. This digital value data is supplied to a shift register 3 that shifts data for N (integer) pixels and a subtraction circuit 4. The subtraction circuit 4 uses the current pixel data D A and the past data N pixels before, which is obtained via the shift register 3.
D B , calculates (D B - D A ) = △D, and then the sign discrimination circuit 5 uses the comparison circuit 6 only when △D is positive.
Output to. The comparison circuit 6 compares the judgment value of the judgment value circuit 7 with the value of △D, and when △D is greater than the judgment value, that is, the defect has started at the position corresponding to point A in Fig. 3 c. , the data of pixel counter 8 is N
The number of pixels is subtracted, that is, the pixel position X S is stored in the memory 9. The pixel counter 8 is supplied with a signal synchronized with the scanning period from an oscillator (not shown). Also, set the D B value at this time as a threshold value as D S ,
The comparison circuit 10 sequentially compares the D S value and the current pixel data D A , and as shown in FIG. 3c, D S
The pixel position X E that corresponds to D A is determined to be the end of the defect. The subtraction circuit 20 calculates the difference △ between the X E value and the defect start pixel position X S value stored in the memory 9.
Calculate X as the defect width. The value of △X is determined by the width comparison circuit 1 for determining small width defects as good products.
1 and the value of ΔX is greater than or equal to a preset threshold, that is, only defects with large widths are output. 21 is an AND circuit.

第4図は本発明の他の実施例を示したブロツク
図である。第3図cの位置Aのレベルに対して位
置Bのレベルが同じかそれ以上の場合は、第1図
実施例で確実に欠陥を検出できるが、位置Bのレ
ベルが位置Aのレベル未満となる場合は、欠陥の
終わりが判別しずらくする。水栓は、部位により
凹凸の方向が決まつているので、位置Bのレベル
が位置Aのレベル未満となる表面レベルの部位で
は、画素アドレス方向を逆方向に走査し、位置B
を欠陥の始まりとして処理させるようにしたこと
を特徴とする。第4図実施例を具体的に説明する
と、あらかじめ第5図に示す様に、正走査による
検出領域m1,m2,m3と逆走査による検出領域
p1,p2,p3とに設定しておき、A/D変換器2で
A/D変換されたデータを正走査Mの処理では、
逆走査Pとタイミングを取るために、一走査分遅
れて処理する様メモリ12に記憶した後、正アド
レスカウンタ19の正走査領域信号Mに基づき領
域m1,m2,m3のみを処理ブロツク13で処理す
る。処理ブロツク13は、第1図の点線内の処理
機能と同等の機能を有する。逆走査の処理では、
A/D変換器2でA/D変換したデータをメモリ
14に記憶した後、逆アドレスカウンタ15の逆
走査領域信号Pに基づき領域p1,p2,p3だけを処
理ブロツク16で処理する。この処理ブロツク1
6は、第1図の点線内の処理機能と同等の機能を
有する。各処理ブロツク13,16からの欠陥信
号はOR回路17を介して出力される。
FIG. 4 is a block diagram showing another embodiment of the present invention. If the level at position B is the same as or higher than the level at position A in Fig. 3c, the defect can be reliably detected using the embodiment in Fig. If this occurs, it becomes difficult to determine the end of the defect. Since the direction of the unevenness of a faucet is determined depending on the part, in the part of the surface level where the level of position B is lower than the level of position A, the pixel address direction is scanned in the opposite direction, and
is characterized in that it is treated as the beginning of a defect. To specifically explain the embodiment in FIG . 4 , as shown in FIG .
p 1 , p 2 , p 3 are set, and the data A/D converted by the A/D converter 2 is used in the forward scanning M process.
After storing it in the memory 12 so as to process it with a one-scan delay in order to match the timing with the reverse scan P, only the areas m 1 , m 2 , and m 3 are processed based on the forward scan area signal M of the forward address counter 19. 13. The processing block 13 has functions equivalent to those within the dotted line in FIG. In the reverse scan process,
After the data A/D converted by the A/D converter 2 is stored in the memory 14, only the areas p 1 , p 2 , p 3 are processed in the processing block 16 based on the reverse scanning area signal P of the reverse address counter 15. . This processing block 1
6 has a function equivalent to the processing function within the dotted line in FIG. The defect signals from each processing block 13 and 16 are outputted via an OR circuit 17.

なお、上述の実施例では、1台のカメラ
(CCDセンサ)を用いて正、逆走査の処理を行な
つているが、2台のカメラを用い、カメラの取付
け位置を逆にして各々のカメラからの受光波形が
正、逆走査となる様に構成しても良い。
Note that in the above embodiment, one camera (CCD sensor) is used to perform forward and reverse scanning processing, but two cameras are used and the mounting positions of the cameras are reversed so that each camera is The configuration may be such that the waveform of light received from the sensor is a forward scan or a reverse scan.

また、前述の実施例では、一次元カメラを用い
て説明したが、二次元カメラの1水平走査線の信
号を用いて同様の処理を行なう場合にも適用しう
る。
Furthermore, although the above-described embodiment has been described using a one-dimensional camera, the present invention can also be applied to a case where similar processing is performed using a signal of one horizontal scanning line of a two-dimensional camera.

なお、前述の実施例では正常レベルより欠陥レ
ベルが小となる場合について説明したが、表面の
正常レベルより欠陥レベルが大となる場合につい
ても同様の考え方が適用しうる。
In the above-described embodiments, the case where the defect level is smaller than the normal level has been described, but the same concept can be applied to the case where the defect level is larger than the normal level on the surface.

(発明の効果) 以上説明したように本発明によれば、水栓等の
表面の欠陥を簡易且つ正確に検出することができ
るという効果が得られる。
(Effects of the Invention) As described above, according to the present invention, it is possible to easily and accurately detect defects on the surface of a faucet or the like.

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

第1図は本発明の一実施例を示したブロツク
図、第2図は水栓の半断面図、第3図は一次元
CCDカメラにより得られた表面受光レベル波形
図、第4図は本発明の他の実施例を示すブロツク
図、第5図は走査方向に対応する検出領域を示し
た図である。 1……一次元CCDカメラ、2……A/D変換
器、3……シフトレジスタ、4……引算回路、5
……符号判別回路、6,10,11……比較回
路、7……判定値回路、8……画素カウンタ、9
……メモリ、12,14……走査メモリ、13,
16……処理ブロツク、15……逆アドレスカウ
ンタ、17……OR回路。
Figure 1 is a block diagram showing one embodiment of the present invention, Figure 2 is a half-sectional view of a water faucet, and Figure 3 is a one-dimensional diagram.
FIG. 4 is a block diagram showing another embodiment of the present invention, and FIG. 5 is a diagram showing a detection area corresponding to the scanning direction. 1...One-dimensional CCD camera, 2...A/D converter, 3...Shift register, 4...Subtraction circuit, 5
... Sign discrimination circuit, 6, 10, 11 ... Comparison circuit, 7 ... Judgment value circuit, 8 ... Pixel counter, 9
...Memory, 12, 14...Scanning memory, 13,
16...processing block, 15...reverse address counter, 17...OR circuit.

Claims (1)

【特許請求の範囲】 1 被検知物体表面からの光を複数画素を有する
光検出手段に収束して入射し、該複数画素を所定
周期毎に走査して各画素の入射光量に相応した受
光出力に基づいて被検知物体表面の欠陥を検出す
る表面欠陥検出方式において、 前記全画素数の内所定数の画素間隔をおいて位
置する各画素出力を順次比較し走査方向に対して
前側に位置する画素出力が後側に位置する画素出
力より所定レベル以上低いときに前記前側に位置
する画素を欠陥開始の位置に相応する画素として
判別する欠陥開始位置判別手段と、前記走査を継
続し該走査方向に対して前側に位置する画素の出
力レベルが所定レベル以上に回復したときに該画
素を欠陥終了位置に相応する画素として判別する
欠陥終了位置判別手段と、前記欠陥開始位置判別
手段の判別画素と欠陥終了位置判別手段の判別画
素との画素間隔に応じて欠陥幅を演算する欠陥幅
演算手段とを設け、該欠陥幅が所定値以上である
ときに欠陥とすることを特徴とする表面欠陥検出
方式。 2 前記光検出手段の走査方向を順方向及び逆方
向に交互に設定するとともに該光検出手段の走査
に対して前記被検知物体表面からの光の入射量が
増加し又は変化しない領域を各走査方向に相応し
て設定し該各領域内だけで欠陥検出を行なうこと
を特徴とする特許請求の範囲第1項記載の表面欠
陥検出方式。
[Claims] 1. Light from the surface of an object to be detected is converged and incident on a light detection means having a plurality of pixels, and the plurality of pixels are scanned at predetermined intervals to obtain a light reception output corresponding to the amount of incident light at each pixel. In a surface defect detection method that detects defects on the surface of a detected object based on the above, the output of each pixel located at a predetermined pixel interval among the total number of pixels is sequentially compared, and the pixel output is located on the front side in the scanning direction. defect start position determining means for determining the pixel located on the front side as a pixel corresponding to a defect start position when the pixel output is lower than the pixel output located on the rear side by a predetermined level or more; defect end position determining means for determining the pixel as a pixel corresponding to the defect end position when the output level of the pixel located in front of the pixel recovers to a predetermined level or higher; and a determination pixel of the defect start position determining means. Defect width calculation means for calculating a defect width according to a pixel interval with a determination pixel of the defect end position determination means, and when the defect width is equal to or greater than a predetermined value, it is determined as a defect. method. 2. The scanning direction of the light detection means is set alternately to the forward direction and the reverse direction, and each region is scanned in an area where the amount of light incident from the surface of the object to be detected increases or does not change with respect to the scanning of the light detection means. 2. The surface defect detection method according to claim 1, wherein the defect detection method is performed only within each area by setting the area according to the direction.
JP20486686A 1986-08-31 1986-08-31 System for detecting surface flaw Granted JPS6361149A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP20486686A JPS6361149A (en) 1986-08-31 1986-08-31 System for detecting surface flaw

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP20486686A JPS6361149A (en) 1986-08-31 1986-08-31 System for detecting surface flaw

Publications (2)

Publication Number Publication Date
JPS6361149A JPS6361149A (en) 1988-03-17
JPH0467907B2 true JPH0467907B2 (en) 1992-10-29

Family

ID=16497697

Family Applications (1)

Application Number Title Priority Date Filing Date
JP20486686A Granted JPS6361149A (en) 1986-08-31 1986-08-31 System for detecting surface flaw

Country Status (1)

Country Link
JP (1) JPS6361149A (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5283642A (en) * 1992-03-16 1994-02-01 The Boeing Company Scratch measurement apparatus and method

Also Published As

Publication number Publication date
JPS6361149A (en) 1988-03-17

Similar Documents

Publication Publication Date Title
JPH0736001B2 (en) Bottle defect inspection method
JP4259749B2 (en) Line-to-line transfer CCD driven at enhanced frame transfer frequency for high-speed profiling
JPS6355650B2 (en)
US5245424A (en) Defect detection method
EP0974832B1 (en) Apparatus and method for detecting light or dark blemishes
JPH0467907B2 (en)
WO2008114263A1 (en) System and method for height measurement
JP3160743B2 (en) LCD panel defect inspection equipment
JPH08313454A (en) Image processing device
JP3216439B2 (en) Internal inspection equipment for circular containers
JPH01263539A (en) Foreign matter inspecting apparatus
JPH0769276B2 (en) Container inner surface inspection device
JPH0443816Y2 (en)
JP2841961B2 (en) Visual recognition device
JPH05164703A (en) Inspecting method for surface of workpiece
JP2554102B2 (en) Slit optical detector
JP2931312B2 (en) Defect inspection method
JP2715897B2 (en) IC foreign matter inspection apparatus and method
KR100241006B1 (en) Thick Surface Surface Image Detection System
JPS6349180B2 (en)
JPH05298594A (en) Image type vehicle sensoring method
JPH0763692A (en) Pattern defect inspection method and its apparatus
JPH09284753A (en) Imaging control method and apparatus for surveillance camera
JPH10253332A (en) Method and apparatus for inspecting defects in periodic pattern
JPH0935041A (en) Original image fetching device