JPH0228438Y2 - - Google Patents

Info

Publication number
JPH0228438Y2
JPH0228438Y2 JP18447384U JP18447384U JPH0228438Y2 JP H0228438 Y2 JPH0228438 Y2 JP H0228438Y2 JP 18447384 U JP18447384 U JP 18447384U JP 18447384 U JP18447384 U JP 18447384U JP H0228438 Y2 JPH0228438 Y2 JP H0228438Y2
Authority
JP
Japan
Prior art keywords
signal
binary
reference signal
circuit
outputs
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
JP18447384U
Other languages
Japanese (ja)
Other versions
JPS6199044U (en
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 filed Critical
Priority to JP18447384U priority Critical patent/JPH0228438Y2/ja
Publication of JPS6199044U publication Critical patent/JPS6199044U/ja
Application granted granted Critical
Publication of JPH0228438Y2 publication Critical patent/JPH0228438Y2/ja
Expired legal-status Critical Current

Links

Landscapes

  • Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)
  • Length Measuring Devices By Optical Means (AREA)

Description

【考案の詳細な説明】 〔考案の属する技術分野〕 本考案は、テレビカメラのような撮像装置を用
いて医薬用カプセルのような物体の表面における
汚れや異物等の付着、あるいは変形などの表面欠
陥の有無を検出する装置、特に前記カプセルにお
けるような湾曲した端面に存在する前記表面欠陥
をも確実に検出しうる装置構成に関する。
[Detailed description of the invention] [Technical field to which the invention pertains] The present invention uses an imaging device such as a television camera to detect dirt, foreign matter, etc. attached to the surface of an object such as a pharmaceutical capsule, or surface deformation. The present invention relates to a device for detecting the presence or absence of defects, and particularly to a device configuration that can reliably detect surface defects that exist on curved end surfaces such as those in the capsule.

〔従来技術とその問題点〕[Prior art and its problems]

第4図は従来使用されている、医薬用カプセル
のような物体の表面欠陥検出装置の構成図で、図
において1は画像信号1aを出力する撮像装置と
してのテレビカメラ、2は基準信号3をしきい値
信号として画像信号1aを二値信号2aに変換し
て出力する二値化回路である。第4図において
は、テレビカメラ1が撮像する物体の表面に、汚
れや異物等の付着、あるいは変形などの異常状態
(以後このような状態を表面欠陥ということがあ
る)が存在すると、二値信号2aに途切れなどの
異常が生じる。4はこのような二値信号2aにお
ける異常を検出して警報出力等の所定の動作を行
う信号処理装置で、5は上述の各部からなる表面
欠陥検出装置である。
FIG. 4 is a block diagram of a conventionally used surface defect detection device for an object such as a pharmaceutical capsule. This is a binarization circuit that converts the image signal 1a into a binary signal 2a and outputs it as a threshold signal. In FIG. 4, if there is an abnormal condition such as dirt, foreign matter, etc., or deformation on the surface of the object imaged by the television camera 1 (hereinafter, such a condition may be referred to as a surface defect), a binary value will be generated. An abnormality such as an interruption occurs in the signal 2a. 4 is a signal processing device that detects such an abnormality in the binary signal 2a and performs a predetermined operation such as outputting an alarm, and 5 is a surface defect detection device comprising the above-mentioned parts.

第5図は第6図のような両端に湾曲した底部を
有する円筒状カプセル6に対する欠陥検出装置5
の動作を説明するためのもので、第5図において
縦軸Vは第4図における画像信号1aの電圧レベ
ル、横軸tは時間、特性線Aはテレビカメラ1に
よつて行われる撮像の水平走査がカプセル6の軸
心X−Xに平行に行れた時の該軸心X−Xに対応
する画像信号1aの波形である。以後上記水平走
査の一回分に対応する画像信号1aを1Hラスタ
信号ということがある。第5図においてVsは第
4図の二値化回路2に入力される基準信号3の電
圧レベルで、表面欠陥検出装置5では電圧Vsを
しきい値電圧として二値化回路2で画像信号1a
の二値化を行うようにしているので、特性線Aは
点Bと点Cとの間の部分が二値化され、欠陥検出
装置5では、二値化された特性線Aの部分に対応
するカプセル6の表面部分の欠陥検出が行われ
る。したがつて第4図の検出装置5には、特性線
Aの立ち上がり点Dと点Bとの間に対応するカプ
セル6の部分、および特性線Aの立ち上がり点E
と点Cとの間に対応するカプセル6の部分、につ
いては欠陥検出ができないという問題があり、こ
のため点B,D間および点C,E間の特性線Aに
対して微分検出を行つて欠陥検出をする方法が提
案されたが、この方法には、また、欠陥検出を行
うためのしきい値の設定が困難であるとか、装置
構成が複雑になるなどの問題があるほか、このよ
うな微分検出を行つても表面欠陥の全てを検出す
ることはできないという問題があつた。
FIG. 5 shows a defect detection device 5 for a cylindrical capsule 6 having a bottom curved at both ends as shown in FIG.
In FIG. 5, the vertical axis V represents the voltage level of the image signal 1a in FIG. This is the waveform of the image signal 1a corresponding to the axis XX of the capsule 6 when scanning is performed parallel to the axis XX. Hereinafter, the image signal 1a corresponding to one horizontal scan may be referred to as a 1H raster signal. In FIG. 5, Vs is the voltage level of the reference signal 3 input to the binarization circuit 2 in FIG.
Since the characteristic line A is binarized, the part between points B and C is binarized, and the defect detection device 5 corresponds to the binarized part of the characteristic line A. Defects are detected on the surface of the capsule 6. Therefore, the detection device 5 in FIG.
There is a problem in that defects cannot be detected for the portion of the capsule 6 that corresponds between and points C, so differential detection is performed on the characteristic line A between points B and D and between points C and E. A method for detecting defects has been proposed, but this method has problems such as difficulty in setting thresholds for detecting defects and a complicated equipment configuration. There was a problem in that even if differential detection was performed, it was not possible to detect all surface defects.

〔考案の目的〕[Purpose of invention]

本考案は上述したような従来の表面欠陥検出装
置における問題を解消して、平坦な表面は勿論の
こと前記カプセルにおけるような湾曲した端面に
存在する表面欠陥をも確実に検出しうる表面欠陥
検出装置を提供することを目的とする。
The present invention solves the problems with conventional surface defect detection devices as described above, and provides surface defect detection that can reliably detect surface defects that exist not only on flat surfaces but also on curved end surfaces such as those in the capsule. The purpose is to provide equipment.

〔考案の要点〕[Key points of the idea]

本考案は、上記目的を達成するために、画像信
号を出力する撮像装置と、画像信号を基準信号に
もとづいて二値化し第1二値信号を出力する第1
二値化回路と、第1二値信号について信号処理を
行う信号処理回路と、からなる物体の表面欠陥検
出装置において、さらに、画像信号を所定閾値で
二値化して第1二値信号を出力する第2二値化回
路と、第2二値信号によつて駆動され、該第2二
値化信号が加えられている期間に定電圧信号の積
分を行ない、その積分出力を前記基準信号として
発生する基準信号発生回路と、を設けたもので、
このように構成することによつて基準信号が画像
信号とほぼ同様な時間的変化をするようにして、
もつて平坦な表面は勿論のこと、前述のカプセル
におけるような湾曲した端面に存在する表面欠陥
をも確実に検出しうる表面欠陥検出装置が得られ
るようにしたものである。
In order to achieve the above object, the present invention provides an imaging device that outputs an image signal, and a first imaging device that binarizes the image signal based on a reference signal and outputs a first binary signal.
In an object surface defect detection device comprising a binarization circuit and a signal processing circuit that performs signal processing on the first binary signal, the image signal is further binarized with a predetermined threshold value and a first binary signal is output. a second binarization circuit that is driven by a second binary signal, integrates a constant voltage signal during a period when the second binarization signal is applied, and uses the integrated output as the reference signal; It is equipped with a reference signal generation circuit that generates
With this configuration, the reference signal changes over time in almost the same way as the image signal,
It is possible to obtain a surface defect detection device that can reliably detect surface defects present not only on a flat surface but also on a curved end surface such as in the capsule described above.

〔考案の実施例〕[Example of idea]

第1図は本考案の一実施例の構成図で、第2図
は第1図における各部の波形説明図である。第1
図および第2図において、7は画像信号1aと図
示していない回路によつて発生させられた定電圧
V1とが入力され、電圧V1をしきい値として画像
信号1aが二値化された第2二値信号7aを出力
する第2二値化回路、8は第2二値信号7aによ
つて駆動され基準信号3を発生す基準信号発生回
路である。基準信号発生回路8は第3図に示した
よう構成されている。すなわち第3図において、
81は第2二値信号7aが入力される入力端子、
82は図示していない回路によつて発生させられ
た定電圧Vsが入力される入力端子、83は以下
に説明するようにして基準信号3が出力される出
力端子、84は二値信号7aが端子81を介して
入力され、該信号7aがLレベルであるとオン状
態になつて出力端子83をアースに短絡し、信号
7aがHレベルになるとオフ状態になるアナログ
スイツチである。85は可変抵抗器、86はコン
デンサである。
FIG. 1 is a block diagram of an embodiment of the present invention, and FIG. 2 is a waveform explanatory diagram of each part in FIG. 1. 1st
In the figure and FIG. 2, 7 is a constant voltage generated by the image signal 1a and a circuit not shown.
V 1 is input, and a second binarization circuit outputs a second binary signal 7a obtained by binarizing the image signal 1a using the voltage V 1 as a threshold; This is a reference signal generation circuit that is driven by the reference signal 3 and generates the reference signal 3. The reference signal generating circuit 8 is constructed as shown in FIG. That is, in Figure 3,
81 is an input terminal to which the second binary signal 7a is input;
82 is an input terminal to which a constant voltage Vs generated by a circuit not shown is input, 83 is an output terminal to which the reference signal 3 is output as explained below, and 84 is a binary signal 7a. It is an analog switch that is input through a terminal 81, and is turned on when the signal 7a is at L level, shorting the output terminal 83 to ground, and turned off when the signal 7a is at H level. 85 is a variable resistor, and 86 is a capacitor.

第1図においては二値化回路7と基準信号発生
回路8とが上記のように構成されているので、二
値化回路7に入力される画像信号1aのレベルが
定電圧V1より低い間は二値信号7aはLレベル
にあり、この結果アナログスイツチ84がオン状
態となつて基準信号3は0ボルトになつている
が、画像信号1aのレベルが定電圧V1を超える
と二値信号7aはHレベルになるのでアナログス
イツチ84はオフ状態となり、この結果基準信号
3の電圧は抵抗器85の抵抗値とコンデンサ86
の静電容量とで決定される時定数に従つて上昇す
る。この電圧上昇は信号7aがHレベル状態にな
つている間継続するので信号3の電圧は定電圧
Vsに漸近する。第1図における9は、画像信号
1aと基準信号3とが入力され、両信号の差を演
算してこの差電圧が内蔵された定電圧V2よりも
大きくなるとHレベルとなる第1二値信号9aを
出力する第1二値化回路で、この場合信号処理回
路4は二値信号9aに対して信号処理を行うよう
に構成されている。
In FIG. 1, the binarization circuit 7 and the reference signal generation circuit 8 are configured as described above, so that while the level of the image signal 1a input to the binarization circuit 7 is lower than the constant voltage V 1 . The binary signal 7a is at the L level, and as a result, the analog switch 84 is turned on and the reference signal 3 is at 0 volts. However, when the level of the image signal 1a exceeds the constant voltage V1 , the binary signal 7a is turned on. 7a becomes H level, the analog switch 84 is turned off, and as a result, the voltage of the reference signal 3 is equal to the resistance value of the resistor 85 and the capacitor 86.
The capacitance increases according to a time constant determined by the capacitance. This voltage increase continues while signal 7a is in the H level state, so the voltage of signal 3 is a constant voltage.
Asymptotic to Vs. 9 in FIG. 1 is a first binary value that receives the image signal 1a and the reference signal 3, calculates the difference between the two signals, and becomes H level when this difference voltage becomes larger than the built-in constant voltage V2 . The first binary circuit outputs the signal 9a, and in this case, the signal processing circuit 4 is configured to perform signal processing on the binary signal 9a.

第1図においては二値化回路9が上記のように
構成されているので、二値化回路7,9に画像信
号1aが入力されると第2図のF点の時刻に二値
信号9aはHレベルとなり、このHレベルは第2
図のG点の時刻にLレベルに復帰する。故に第1
図に示した欠陥検出装置によれば、第2図の点F
から点Gまでの間の特性線Aに対応したカプセル
の部分に対する表面欠陥の検出が行われるわけ
で、前述したように従来の欠陥検出装置では第2
図AのB点よりも左側の特性線Aに対応するカプ
セル部分、すなわち第6図に示したカプセル6の
左端の湾曲した端面の部分に対して欠陥検出がで
きなかつたのに対し、第1図の装置ではこのよう
なカプセル部分に対しても欠陥検出ができること
が明らかである。なお第1図の装置によれば、第
2図Aから明らかなように、点Gと点Cとの間の
特性線Aに対応するカプセル部分だけ従来装置に
比べて欠陥検出範囲が減少しているが、第1図の
装置においてはこの検出範囲の減少は無視できる
大きさになるように要部が構成されている。
In FIG. 1, since the binarization circuit 9 is configured as described above, when the image signal 1a is input to the binarization circuits 7 and 9, the binary signal 9a is inputted at the time of point F in FIG. becomes H level, and this H level is the second
It returns to the L level at the time of point G in the figure. Therefore, the first
According to the defect detection device shown in the figure, point F in Figure 2
Surface defects are detected for the portion of the capsule corresponding to the characteristic line A between
While it was not possible to detect defects in the capsule portion corresponding to characteristic line A on the left side of point B in Figure A, that is, in the curved end surface at the left end of capsule 6 shown in Figure 6, It is clear that the apparatus shown in the figure can detect defects even in such a capsule portion. According to the device shown in FIG. 1, as is clear from FIG. 2A, the defect detection range is reduced only in the capsule portion corresponding to the characteristic line A between points G and C compared to the conventional device. However, in the apparatus shown in FIG. 1, the main parts are constructed so that this reduction in the detection range is negligible.

〔考案の効果〕[Effect of idea]

上述したように、本考案においては、画像信号
を出力する撮像装置と、画像信号を基準信号にも
とづいて二値化し第1二値信号を出力する第1二
値化回路と、第1二値信号について信号処理を行
う信号処理回路と、からなる物体の表面欠陥検出
装置において、さらに、画像信号を所定閾値で二
値化して第2二値信号を出力する第2二値化回路
と、第1二値信号によつて駆動され、該第2二値
信号が加えられている期間に定電圧信号の積分を
行い、その積分出力を前記基準信号として発生す
る基準信号発生回路と、を設けたので、このよう
に構成することによつて基準信号が画像信号とほ
ぼ同様な時間的変化をするようにして、もつて平
坦な表面は請論のこと、前述のカプセルにおける
ような湾曲した端面に存在する表面欠陥をも確実
に検出しうる表面欠陥検出装置が得られる効果が
ある。
As described above, the present invention includes an imaging device that outputs an image signal, a first binarization circuit that binarizes the image signal based on a reference signal and outputs a first binary signal, and a first binary signal. A signal processing circuit that performs signal processing on the signal; and a second binarization circuit that binarizes the image signal using a predetermined threshold value and outputs a second binary signal; a reference signal generating circuit that is driven by the first binary signal, integrates the constant voltage signal during the period when the second binary signal is applied, and generates the integrated output as the reference signal. Therefore, by configuring it in this way, the reference signal changes over time in almost the same way as the image signal, so that it can be used not only on a flat surface but also on a curved end surface like the one in the capsule mentioned above. This has the effect of providing a surface defect detection device that can reliably detect existing surface defects.

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

第1図は本考案の一実施例の構成図、第2図は
第1図における各部の波形説明図で、同図A、同
図B、同図Cはそれぞれ異なる説明図である。第
3図は第2図における基準信号発生回路の構成
図、第4図は従来の表面欠陥検出装置の構成図、
第5図は第4図の装置の動作説明図、第6図は欠
陥検出対象物体としてのカプセルの平面図であ
る。 1……撮像装置としてのテレビカメラ、1a…
…画像信号、3……基準信号、4……信号処理回
路、7……第2二値化回路、7a……第2二値信
号、8……基準信号発生回路、9……第1二値化
回路、9a……第2二値信号。
FIG. 1 is a block diagram of an embodiment of the present invention, and FIG. 2 is an explanatory diagram of waveforms of various parts in FIG. 1. FIG. 1A, FIG. 1B, and FIG. FIG. 3 is a configuration diagram of the reference signal generation circuit in FIG. 2, FIG. 4 is a configuration diagram of a conventional surface defect detection device,
FIG. 5 is an explanatory diagram of the operation of the apparatus shown in FIG. 4, and FIG. 6 is a plan view of a capsule as an object to be detected for defects. 1... Television camera as an imaging device, 1a...
...Image signal, 3...Reference signal, 4...Signal processing circuit, 7...Second binarization circuit, 7a...Second binary signal, 8...Reference signal generation circuit, 9...First and second Value conversion circuit, 9a...second binary signal.

Claims (1)

【実用新案登録請求の範囲】[Scope of utility model registration request] 画像信号を出力する撮像装置と、前記画像信号
を基準信号にもとづいて二値化し第1二値信号を
出力する第1二値化回路と、前記第1二値信号に
ついて信号処理を行う信号処理回路と、からなる
物体の表面欠陥検出装置において、前記画像信号
を所定閾値で二値化して第2二値信号を出力する
第2二値化回路と、前記第2二値信号によつて駆
動され、該第2二値信号が加えられている期間に
定電圧信号の積分を行ない、その積分出力を前記
基準信号として発生する基準信号発生回路と、を
設けたことを特徴とする表面欠陥検出装置。
an imaging device that outputs an image signal; a first binarization circuit that binarizes the image signal based on a reference signal and outputs a first binary signal; and a signal processor that performs signal processing on the first binary signal. A second binarization circuit that binarizes the image signal at a predetermined threshold value and outputs a second binary signal; and a second binarization circuit that is driven by the second binary signal. and a reference signal generation circuit that integrates the constant voltage signal during the period in which the second binary signal is applied and generates the integrated output as the reference signal. Device.
JP18447384U 1984-12-05 1984-12-05 Expired JPH0228438Y2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP18447384U JPH0228438Y2 (en) 1984-12-05 1984-12-05

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP18447384U JPH0228438Y2 (en) 1984-12-05 1984-12-05

Publications (2)

Publication Number Publication Date
JPS6199044U JPS6199044U (en) 1986-06-25
JPH0228438Y2 true JPH0228438Y2 (en) 1990-07-31

Family

ID=30741962

Family Applications (1)

Application Number Title Priority Date Filing Date
JP18447384U Expired JPH0228438Y2 (en) 1984-12-05 1984-12-05

Country Status (1)

Country Link
JP (1) JPH0228438Y2 (en)

Also Published As

Publication number Publication date
JPS6199044U (en) 1986-06-25

Similar Documents

Publication Publication Date Title
US5210397A (en) Differentiating and integrating circuit for translating bar code signals into corresponding pulses
JPH0228438Y2 (en)
US4437115A (en) Object and inspection system
US4551761A (en) Signal processing circuit including image sensor
JPS6093878A (en) Picture reader
JPH0543564Y2 (en)
US5784053A (en) Two-dimensional pattern digitizer
JPH0512441A (en) Edge image generator
JPH051507B2 (en)
JP3113775B2 (en) Binarization circuit
JP2868233B2 (en) Vehicle movement detection device
JPH0153542B2 (en)
KR900002812B1 (en) Frequency discrimination circuit of horizontal synchronous signal
JPS6057745B2 (en) Binarization circuit
JPS5939068B2 (en) Signal enhancement circuit for pattern processing
JPS61175787A (en) Edge detecting circuit
JPS61277286A (en) Adaptive binary-coding circuit
JPS6159032B2 (en)
JPS6017990Y2 (en) noise detection device
JPH0421100A (en) Method and device for recognizing white line on travel path
JPH06213641A (en) Optical image-pickup-surface inspecting device
KR960012693B1 (en) NTSC / PAL signal discrimination circuit using color signal
JPH04225393A (en) Automatic changeover circuit for polarity of synchronizing signal of monitor device
JPH0346048B2 (en)
JPS63103567A (en) Image input device