JP2000214097A - Tablet visual inspection device and PTP packaging machine - Google Patents
Tablet visual inspection device and PTP packaging machineInfo
- Publication number
- JP2000214097A JP2000214097A JP11019636A JP1963699A JP2000214097A JP 2000214097 A JP2000214097 A JP 2000214097A JP 11019636 A JP11019636 A JP 11019636A JP 1963699 A JP1963699 A JP 1963699A JP 2000214097 A JP2000214097 A JP 2000214097A
- Authority
- JP
- Japan
- Prior art keywords
- tablet
- area
- region
- video signal
- appearance inspection
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01N—INVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
- G01N21/00—Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
- G01N21/84—Systems specially adapted for particular applications
- G01N21/88—Investigating the presence of flaws or contamination
- G01N21/95—Investigating the presence of flaws or contamination characterised by the material or shape of the object to be examined
- G01N21/9508—Capsules; Tablets
Landscapes
- Physics & Mathematics (AREA)
- Health & Medical Sciences (AREA)
- Life Sciences & Earth Sciences (AREA)
- Chemical & Material Sciences (AREA)
- Analytical Chemistry (AREA)
- Biochemistry (AREA)
- General Health & Medical Sciences (AREA)
- General Physics & Mathematics (AREA)
- Immunology (AREA)
- Pathology (AREA)
- Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)
Abstract
(57)【要約】
【課題】 錠剤の周縁部の不安定な映像を異物と誤判定
することなく、また、ほとんどが周縁部にありほんの一
部が平面部に掛かっているような異物についても、確実
に異物と判断することができる錠剤の外観検査装置およ
びPTP包装機を提供することを目的とする。
【解決手段】 本発明の錠剤の外観検査装置では、画像
処理装置に、映像信号を二値化する二値化手段を設け、
前記二値化手段により前記映像信号を第一の閾値をもっ
て二値化して得られた一方の値の連結成分が、前記錠剤
の領域である錠剤領域の、前記錠剤の中心部を含む第一
の領域と、前記第一の領域の外側の第二の領域のうち、
前記第一の領域に一部でも含まれる前記錠剤領域内の連
結成分は、前記錠剤上の異物と判断する第一異物判別手
段を設けた。
(57) [Summary] [Problem] To prevent the unstable image of the peripheral part of a tablet from being erroneously judged as a foreign substance, and also to prevent foreign substances which are mostly on the peripheral part and only a part of the foreign substance is hung on a flat part. It is an object of the present invention to provide a tablet appearance inspection apparatus and a PTP packaging machine that can reliably determine a foreign substance. SOLUTION: In the tablet appearance inspection device of the present invention, the image processing device is provided with a binarization unit for binarizing a video signal,
A connected component of one of the values obtained by binarizing the video signal with a first threshold value by the binarizing unit is a tablet region, which is a region of the tablet, and includes a central portion of the tablet. Region and, of the second region outside the first region,
A first foreign matter discriminating means is provided for judging a connected component in the tablet area which is at least partially included in the first area as a foreign matter on the tablet.
Description
【0001】[0001]
【発明の属する技術分野】本発明は、錠剤の異物を検査
する外観検査装置、および錠剤の異物を検査する機能を
有するPTP包装機に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a visual inspection device for inspecting foreign substances in tablets and a PTP packaging machine having a function of inspecting foreign substances in tablets.
【0002】[0002]
【従来の技術】従来、錠剤表面の異物を検査する錠剤の
外観検査装置では、錠剤を撮像装置により撮像して得た
映像信号を、一定の閾値をもって二値化し、異物を表す
一方の値の画素を計数し、一定値以下のものを良品、一
定値以上のものを表面に汚れや毛髪などの異物が付着し
た不良品と判断することにより錠剤の外観検査が行われ
ていた。図11のフローチャートを参照して説明する
と、ステップ(以下Sと表記する。)31では、錠剤を
撮像した撮像装置から出力され画像メモリに記憶されて
いる多値データである映像信号を二値化する。つぎに、
S32では検査エリアを設定する。検査エリアは錠剤の
位置があらかじめ定まっていれば、あらかじめ設定して
おいても良いが、錠剤の位置が都度ばらつくようであれ
ばS31の二値化により得た二値画像により、都度設定
しても良い。つぎに、S33では検査エリア内の一方の
値の画素の数を計数し異物の総面積を求める。そして、
S34では異物の総面積が一定値を越えた錠剤について
は、異物が付着しているとして不良と判断する。2. Description of the Related Art Conventionally, in a tablet appearance inspection apparatus for inspecting foreign matter on a tablet surface, a video signal obtained by imaging a tablet with an imaging device is binarized with a certain threshold value, and one of the values representing the foreign matter is converted into a binary value. The appearance inspection of tablets has been carried out by counting the pixels and judging those having a certain value or less as non-defective products and those having a certain value or more as defective products having foreign matters such as dirt or hair adhered to the surface. Referring to the flowchart of FIG. 11, in step (hereinafter, referred to as S) 31, a video signal which is multi-valued data output from an imaging device that has captured a tablet and stored in an image memory is binarized. I do. Next,
In S32, an inspection area is set. The inspection area may be set in advance if the position of the tablet is predetermined, but if the position of the tablet varies each time, the inspection area may be set each time using the binary image obtained by the binarization in S31. Is also good. Next, in S33, the number of pixels of one value in the inspection area is counted to determine the total area of the foreign matter. And
In S34, a tablet having a total foreign substance area exceeding a certain value is determined to be defective because foreign substances are attached.
【0003】しかし、一般に錠剤の周縁部は斜面である
ことが多く、撮像装置の受光面と平行に近い中心部に比
べ、周縁部は光量が不足し映像信号が不安定になりやす
い。特に、断面が楕円形である糖衣錠、あるいは大きく
かつ角度のついた面取りがされた分割錠は、この影響が
大きい。たとえば、分割錠の場合、面取り部が平面部に
比べて均一に暗くなるのみでなく、面取り部のエッジの
外側に三日月状の暗部が発生することがある。撮像装置
による撮像は光源から出た光が被検査面から乱反射され
る光を撮像装置の受光面に捉えることにより撮像され
る。ここで、撮像装置が錠剤の被検査面の法線方向に近
ければ、光量が十分ありかつ直接反射する成分と乱反射
する成分の比率も安定しているが、一方、接線方向に近
づくと光量が不足するのみでなく、直接反射する成分と
乱反射する成分の比率も不安定になり、乱反射する成分
が極端に減少する部位が生じることに起因する。この場
合は、そのまま二値化したのでは、三日月状の暗部が異
物と判定され、異物が無いにも関わらず不良品になる。However, in general, the peripheral portion of the tablet is often a slope, and the peripheral portion has a shortage of light quantity and is likely to be unstable in the video signal, as compared with the central portion which is almost parallel to the light receiving surface of the imaging device. In particular, sugar-coated tablets having an elliptical cross section, or split tablets with large and angled chamfers have a large effect. For example, in the case of a divided tablet, not only the chamfered portion becomes darker than the flat portion, but also a crescent-shaped dark portion may be generated outside the edge of the chamfered portion. The image pickup by the image pickup device is performed by capturing light, which is emitted from a light source and is irregularly reflected from a surface to be inspected, on a light receiving surface of the image pickup device. Here, if the imaging device is close to the normal direction of the inspected surface of the tablet, the amount of light is sufficient and the ratio of the directly reflected component to the irregularly reflected component is stable, but on the other hand, the light amount is close to the tangential direction. In addition to the shortage, the ratio of the directly reflected component to the irregularly reflected component becomes unstable, resulting in a portion where the irregularly reflected component extremely decreases. In this case, if the binarization is performed as it is, the crescent-shaped dark portion is determined to be a foreign substance, and becomes a defective product despite the absence of the foreign substance.
【0004】三日月状の暗部は黒色の異物と比較すれば
明るいので、閾値を低い(暗い)値にすることにより、
検出しないようにすることも考えられるが、50μm程
度の太さの毛髪は、光が回り込むため三日月状の暗部よ
りも明るい映像信号のレベルになることもあり、異物を
見逃すおそれがある。また、毛髪は常に真っ黒であると
は限らず、三日月状の暗部よりも明るい色の毛髪も存在
する。そこで、、錠剤の周縁部を除いた平面部に検査領
域を限定して、映像の不安定な周縁部の領域を検査領域
から外すことにより、誤判定を防いでいた。Since a crescent-shaped dark part is brighter than a black foreign substance, by setting the threshold to a low (dark) value,
Although it is conceivable not to detect the hair, hair having a thickness of about 50 μm may have a video signal level brighter than that of a crescent-shaped dark portion due to light circling, and may miss a foreign substance. In addition, the hair is not always black, and some hair is lighter in color than a crescent-shaped dark part. Therefore, an erroneous determination is prevented by limiting the inspection area to a flat part excluding the peripheral part of the tablet and excluding the unstable peripheral part area of the image from the inspection area.
【0005】[0005]
【発明が解決しようとする課題】しかしながら、ほとん
どが周縁部にありほんの一部が検査エリア内に掛かって
いるような異物については、検査エリア内の画素のみを
異物と見なすので、異物と見なされる画素が微少であり
ノイズとの区別ができないため、このような異物を検出
することは困難であった。そこで本発明は、上述した問
題点を解決するためになされたものであり、錠剤の周縁
部の不安定な映像を異物と誤判定することなく、また、
ほとんどが周縁部にありほんの一部が平面部に掛かって
いるような異物についても、確実に異物と判断すること
ができる錠剤の外観検査装置およびPTP包装機を提供
することを目的とする。However, a foreign substance which is mostly at the periphery and only a part of the foreign substance is located in the inspection area is regarded as a foreign substance because only pixels in the inspection area are regarded as foreign substances. It is difficult to detect such foreign matter because the pixels are so small that they cannot be distinguished from noise. Therefore, the present invention has been made in order to solve the above-described problems, without erroneously determining an unstable image of the peripheral portion of the tablet as a foreign substance,
It is an object of the present invention to provide a tablet visual inspection device and a PTP packaging machine that can reliably determine even foreign substances, most of which are on the peripheral edge and only a part of the foreign substances are on the flat part.
【0006】[0006]
【課題を解決するための手段】この目的を達成するため
になされた請求項1に係る錠剤の外観検査装置は、錠剤
を照射する照明装置と、前記錠剤の前記照明装置により
照射された面を撮像する撮像装置と、前記撮像装置から
出力される映像信号を処理する画像処理装置を有する錠
剤の外観検査装置において、前記画像処理装置に、前記
映像信号を二値化する二値化手段を設け、前記二値化手
段により前記映像信号を第一の閾値をもって二値化して
得られた 一方の値の連結成分が、前記錠剤の領域であ
る錠剤領域の、前記錠剤の中心部を含む第一の領域と、
前記第一の領域の外側の第二の領域のうち、前記第一の
領域に一部でも含まれる前記錠剤領域内の連結成分は、
前記錠剤上の異物と判断する第一異物判別手段を設けた
ことを特徴とする。According to a first aspect of the present invention, there is provided a tablet appearance inspection apparatus comprising: an illumination device for irradiating a tablet; and a surface of the tablet irradiated by the illumination device. In a tablet appearance inspection device having an imaging device for imaging and an image processing device for processing a video signal output from the imaging device, the image processing device is provided with a binarization unit for binarizing the video signal. A connected component of one of the values obtained by binarizing the video signal with a first threshold value by the binarization unit, the first component including a central part of the tablet in a tablet area that is an area of the tablet; Area and
Of the second region outside the first region, the connected component in the tablet region, which is also included in the first region,
A first foreign matter discriminating means for judging a foreign matter on the tablet is provided.
【0007】また、請求項2に係る錠剤の外観検査装置
は、請求項1に記載する錠剤の外観検査装置であって、
前記第一の閾値は、第一の領域の錠剤の映像信号のレベ
ルと、第一の領域の異物の映像信号のレベルとの間のレ
ベルに選択されていることを特徴とする。また、請求項
3に係る錠剤の外観検査装置は、請求項1または請求項
2に記載する錠剤の外観検査装置であって、前記錠剤領
域は、前記二値化手段により前記映像信号を前記第一の
閾値をもって二値化して、得られた他方の値の連結成分
の外周により囲まれた領域であることを特徴とする。A tablet appearance inspection apparatus according to claim 2 is the tablet appearance inspection apparatus according to claim 1,
The first threshold value is selected as a level between the level of the video signal of the tablet in the first area and the level of the video signal of the foreign substance in the first area. The tablet appearance inspection apparatus according to claim 3 is the tablet appearance inspection apparatus according to claim 1 or claim 2, wherein the tablet area is configured to convert the video signal by the binarization unit into the video signal. It is characterized by being a region which is binarized with one threshold value and is surrounded by the outer periphery of the obtained connected component of the other value.
【0008】また、請求項4に係る錠剤の外観検査装置
は、請求項1または請求項2に記載する錠剤の外観検査
装置であって、前記錠剤領域は、前記二値化手段により
前記映像信号を第二の閾値をもって二値化して得られ
た、他方の値の連結成分の外周により囲まれた領域であ
ることを特徴とする。また、請求項5に係る錠剤の外観
検査装置は、請求項1乃至請求項4のいずれか一つに記
載する錠剤の外観検査装置であって、前記二値化手段に
より前記映像信号を第二の閾値をもって二値化して得ら
れた一方の値の連結成分のうち、前記第二の領域に全て
含まれる前記錠剤領域内の連結成分は、前記錠剤上の異
物と判断する第二異物判別手段を設けたことを特徴とす
る。According to a fourth aspect of the present invention, there is provided a tablet appearance inspection apparatus according to the first or second aspect, wherein the tablet area is provided by the binarizing means. Is a region obtained by binarizing with the second threshold value and surrounded by the outer periphery of the connected component of the other value. According to a fifth aspect of the present invention, there is provided a tablet appearance inspection apparatus according to any one of the first to fourth aspects, wherein the binarizing means converts the video signal into a second image signal. Among the connected components of one value obtained by binarizing with the threshold of, the connected component in the tablet area included in the second area is a second foreign matter determining unit that determines that the foreign matter is on the tablet Is provided.
【0009】また、請求項6に係る錠剤の外観検査装置
は、請求項4または請求項5に記載する錠剤の外観検査
装置であって、前記第二の閾値は、第二の領域の錠剤の
映像信号と、第二の領域の異物の映像信号との間のレベ
ルに選択されていることを特徴とする。また、請求項7
に係る錠剤の外観検査装置は、請求項1乃至請求項6の
いずれか一つに記載する錠剤の外観検査装置であって、
前記錠剤は、円形であり、前記第一の領域は、前記錠剤
領域の中心に中心を一致させて設けた円の内側の領域で
あることを特徴とする。According to a sixth aspect of the present invention, there is provided the tablet appearance inspection apparatus according to the fourth or fifth aspect, wherein the second threshold value is set to a value corresponding to the second area. The level is selected between the video signal and the video signal of the foreign matter in the second area. Claim 7
The tablet visual inspection device according to claim 1, is a tablet visual inspection device according to any one of claims 1 to 6,
The tablet is circular, and the first region is a region inside a circle provided with the center coincident with the center of the tablet region.
【0010】また、請求項8に係る錠剤の外観検査装置
は、請求項1乃至請求項7のいずれか一つに記載する錠
剤の外観検査装置であって、前記錠剤は、分割錠または
糖衣錠であることを特徴とする。また、請求項9に係る
錠剤の外観検査装置は、請求項1乃至請求項8のいずれ
か一つに記載する錠剤の外観検査装置であって、前記錠
剤は、PTPシートのポケットに充填された錠剤である
ことを特徴とする。また、請求項10に係るPTP包装
機は、請求項9に記載する錠剤の外観検査装置を設けた
ことを特徴とする。The tablet appearance inspection apparatus according to claim 8 is the tablet appearance inspection apparatus according to any one of claims 1 to 7, wherein the tablet is a divided tablet or a sugar-coated tablet. There is a feature. A tablet appearance inspection apparatus according to claim 9 is the tablet appearance inspection apparatus according to any one of claims 1 to 8, wherein the tablet is filled in a pocket of a PTP sheet. It is characterized by being a tablet. According to a tenth aspect of the present invention, there is provided a PTP packaging machine including the tablet appearance inspection device according to the ninth aspect.
【0011】このような構成を有する本発明の錠剤の外
観検査装置では、前記画像処理装置に、前記映像信号を
二値化する二値化手段を設け、前記二値化手段により前
記映像信号を第一の閾値をもって二値化して得られた一
方の値の連結成分が、前記錠剤の領域である錠剤領域
の、前記錠剤の中心部を含む第一の領域と、前記第一の
領域の外側の第二の領域のうち、前記第一の領域に一部
でも含まれる前記錠剤領域内の連結成分は、前記錠剤上
の異物と判断する第一異物判別手段を設けたので、周縁
部に発生する暗部を異物と誤判定することなく、また、
ほとんどが周縁部にありほんの一部が平面部に掛かって
いるような異物についても、確実に異物と判断すること
ができる。[0011] In the tablet appearance inspection apparatus of the present invention having such a configuration, the image processing apparatus is provided with a binarization unit for binarizing the video signal, and the binarization unit converts the video signal into a binary signal. A connected component of one value obtained by binarization with a first threshold is a tablet region that is a region of the tablet, a first region including a central portion of the tablet, and an outside of the first region. In the second region, the connected component in the tablet region, which is also included in the first region even partially, is provided at the peripheral portion because the first foreign matter discriminating means for determining foreign matter on the tablet is provided. Without falsely determining the dark area to be
Even a foreign substance which is mostly on the peripheral edge and only part of the foreign substance is hung on the flat part can be reliably determined as a foreign substance.
【0012】また、前記第一の閾値を、第一の領域の錠
剤の映像信号と、第一の領域の異物の映像信号との間の
レベルに選択すれば、第一の領域の異物を二値化手段に
より安定して異物と判別することができる。また、前記
二値化手段により前記映像信号を前記第一の閾値をもっ
て二値化し、得られた他方の値の連結成分の外周により
囲まれた領域を前記錠剤領域とすれば、異物の連結成分
を得るための二値化処理と錠剤領域を得るための二値化
処理を、一つの閾値による一回の二値化処理により行う
ことができ、簡単な処理でほとんどが周縁部にありほん
の一部が平面部に掛かっているような異物についても、
確実に異物と判断することができる。Further, if the first threshold value is selected to be a level between the video signal of the tablet in the first area and the video signal of the foreign substance in the first area, the foreign substance in the first area is reduced to two levels. It is possible to stably determine the foreign matter by the value converting means. Further, if the image signal is binarized by the binarization means using the first threshold, and the region surrounded by the outer periphery of the obtained connected component of the other value is set as the tablet region, the connected component of the foreign substance is obtained. The binarization processing for obtaining the tablet area and the binarization processing for obtaining the tablet area can be performed by one binarization processing using one threshold value. For foreign matter where the part is hanging on the flat part,
It can be reliably determined that the substance is a foreign substance.
【0013】また、前記二値化手段により前記映像信号
を第二の閾値をもって二値化し、得られた他方の値の連
結成分の外周により囲まれた領域を前記錠剤領域とすれ
ば、錠剤領域を特定するに当たり、異物の映像信号のレ
ベルにとらわれることなく、錠剤領域を最も安定して検
出することができる閾値のレベルを選択することができ
る。[0013] Further, if the video signal is binarized by the binarization means using a second threshold value, and the area surrounded by the outer periphery of the obtained connected component of the other value is set as the tablet area, When specifying the threshold value, it is possible to select a threshold level at which the tablet area can be detected most stably without being influenced by the level of the video signal of the foreign substance.
【0014】また、前記二値化手段により前記映像信号
を第二の閾値をもって二値化して得られた一方の値の連
結成分のうち、前記第二の領域に全て含まれる前記錠剤
領域内の連結成分は、前記錠剤上の異物と判断する第二
異物判別手段を設ければ、第二の領域に全て含まれる錠
剤領域内の異物も、安定して判別することができる。Further, of the connected components of one of the values obtained by binarizing the video signal with a second threshold value by the binarizing means, the tablet region contained in the second region is entirely included in the second region. If the connected component is provided with a second foreign matter discriminating means for judging the foreign matter on the tablet, the foreign matter in the tablet area which is entirely included in the second area can be also stably discriminated.
【0015】また前記第二の閾値は、第二の領域の錠剤
の映像信号と、第二の領域の異物の映像信号との間のレ
ベルに選択すれば、第二の領域の異物の検出または錠剤
領域を特定する上で、錠剤周縁部の映像が不安定な領域
の影響を受けない安定した検出または特定が可能とな
る。If the second threshold value is selected to be a level between the video signal of the tablet in the second area and the video signal of the foreign substance in the second area, the detection of the foreign substance in the second area or In specifying the tablet region, stable detection or specification can be performed without being affected by the region where the image of the tablet peripheral portion is unstable.
【0016】また、前記錠剤が、円形であり、前記第一
の領域が、前記錠剤領域の中心に中心を一致させて設け
た円の内側の領域とすれば、複雑な処理をすることな
く、第一の領域と第二の領域を容易に区分することがで
きる。Further, if the tablet is circular and the first region is a region inside a circle provided so that the center coincides with the center of the tablet region, no complicated processing is performed. The first area and the second area can be easily separated.
【0017】また、分割錠または糖衣錠についても、周
縁部に生じる暗部を異物と誤判定することなく、また、
ほとんどが周縁部にありほんの一部が平面部に掛かって
いるような異物についても、確実に異物と判断すること
ができるまた、複雑な処理を要しないので多くの錠剤を
同時に撮像し同時に処理することを要する、PTPシー
トのポケットに充填された錠剤の外観検査に適用するこ
とができる。また、PTP包装機に設ければ、錠剤の周
縁部に発生する暗部を異物と誤判定することなく、ま
た、ほとんどが周縁部にありほんの一部が平面部に掛か
っているような異物についても、確実に異物と判断する
ことができるPTP包装機を提供することができる。In the case of a divided tablet or a sugar-coated tablet, the dark portion formed in the peripheral portion is not erroneously determined as a foreign substance.
Even foreign substances, most of which are on the periphery and only partly hung on a flat part, can be reliably judged as foreign substances.Moreover, since complicated processing is not required, many tablets are imaged and processed simultaneously. This can be applied to the visual inspection of tablets filled in the pockets of the PTP sheet. Further, if provided on the PTP packaging machine, the dark portion generated at the peripheral portion of the tablet is not erroneously determined as a foreign material, and the foreign material that is mostly on the peripheral portion and only a part of the foreign material is hung on the flat surface portion is also prevented. Thus, it is possible to provide a PTP packaging machine that can reliably determine a foreign substance.
【0018】[0018]
【発明の実施の形態】[第1の実施形態]本発明の実施
の形態を図と共に以下に説明する。第1の実施形態では
図2に示すように、PTPシートに包装された錠剤の外
観検査装置をPTP包装機30に装備することによっ
て、PTP包装機30内で錠剤の外観検査を実施してい
る。DESCRIPTION OF THE PREFERRED EMBODIMENTS [First Embodiment] An embodiment of the present invention will be described below with reference to the drawings. In the first embodiment, as shown in FIG. 2, the appearance inspection of tablets is carried out in the PTP packaging machine 30 by equipping the PTP packaging machine 30 with an appearance inspection device for tablets packaged in a PTP sheet. .
【0019】まず、錠剤の外観検査が実施されるPTP
包装機30について、簡単に説明する。PTP包装機3
0は、錠剤等をPTPシートに自動的に包装するもので
ある。具体的には、まず、ポリプロピレン、PVC、な
どの容器フィルム40を、フィルム送りロール33とテ
ンションロール31、32で、加熱板50と成形板51
に送り込み、錠剤などが充填されるポケット部44(図
3参照)を容器フィルム40に成形する。そして、容器
フィルム40にポケット部44(図3参照)が成形され
たもの41が、錠剤投入シャッター52の下にまで送ら
れてくると、錠剤投入シャッター52が各ポケット部4
4(図3参照)に錠剤などを自動的に充填する。ここで
は、錠剤1が各ポケット部44(図3参照)に充填され
る。First, a PTP in which a tablet appearance inspection is performed
The packaging machine 30 will be described briefly. PTP packaging machine 3
0 automatically packages tablets and the like on a PTP sheet. Specifically, first, a container film 40 such as polypropylene, PVC, or the like is heated by a film feed roll 33 and tension rolls 31 and 32 using a heating plate 50 and a forming plate 51.
Then, the pocket portion 44 (see FIG. 3) filled with tablets and the like is formed in the container film 40. When the container film 40 having the pocket portion 44 (see FIG. 3) formed thereon is sent below the tablet input shutter 52, the tablet input shutter 52 is moved to each of the pocket portions 4.
4 (see FIG. 3) is automatically filled with tablets and the like. Here, the tablet 1 is filled in each pocket 44 (see FIG. 3).
【0020】さらに、各ポケット部44(図3参照)に
錠剤1が充填された容器フィルム41の上に、アルミ製
の密封用フィルム42をテンションロール34、35を
介して送り込み、一対のシールロール36で固着させ
る。これによって、錠剤1が各ポケット部44(図3参
照)に充填されたフィルム状のPTPシート43が製造
される。かかるフィルム状のPTPシート43はシート
状に裁断された後に、図示しない不良シート排出機構や
PTPシート集積機構などへ順に送られる。Further, an aluminum sealing film 42 is fed via tension rolls 34 and 35 onto a container film 41 in which each pocket portion 44 (see FIG. 3) is filled with the tablet 1, and a pair of seal rolls is provided. Fix at 36. Thus, a film-like PTP sheet 43 in which the tablet 1 is filled in each pocket portion 44 (see FIG. 3) is manufactured. After the film-shaped PTP sheet 43 is cut into a sheet shape, it is sequentially sent to a not-shown defective sheet discharging mechanism, a PTP sheet stacking mechanism, and the like.
【0021】次に、錠剤の外観検査装置について、図4
のブロック図を用いて説明する。外観検査装置は、撮像
装置であるCCDカメラ11、表示装置であるモニタ2
5、図4のブロック図には記載されていないが照明装置
である照明12、画像処理装置10などから構成され
る。なお、CCDカメラ11と照明12は、図2と図3
ではPTP包装機30内に描かれているが、外観検査装
置を構成するものの一つである。照明12は、ハロゲン
ランプあるいは高周波点灯装置を有する蛍光灯等であ
る。ランプ等の温度や電源電流等を制御して、一定の輝
度が維持できるような、輝度制御部を有する照明で有れ
ば、照明12の輝度のばらつきを考慮しなくても、高精
度な錠剤の外観検査が可能となる。FIG. 4 shows a tablet appearance inspection apparatus.
This will be described with reference to the block diagram of FIG. The visual inspection device includes a CCD camera 11 as an imaging device and a monitor 2 as a display device.
5, an illumination device 12, which is not shown in the block diagram of FIG. 4, but is an illumination device, an image processing device 10, and the like. The CCD camera 11 and the illumination 12 are shown in FIGS.
Although it is illustrated in the PTP packaging machine 30, it is one of the components that constitute the visual inspection device. The illumination 12 is a halogen lamp, a fluorescent lamp having a high-frequency lighting device, or the like. If the lighting has a brightness control unit that can maintain a certain brightness by controlling the temperature of the lamp or the like and the power supply current, etc., a highly accurate tablet can be obtained without considering the variation in the brightness of the lighting 12. Can be inspected.
【0022】画像処理装置10は、A/D変換器3、シ
ェーディング補正手段14、画像メモリ16、シェーデ
ィング補正テーブル18、CPU20、判定用メモリ2
2、入出力インターフェース23、外観検査結果及び統
計データメモリ24、カメラタイミング制御手段26な
どから構成される。A/D変換器3は、CCDカメラ1
1で撮像した一次元イメージデータを、アナログ信号か
らデジタル信号に変換するものである。ここで、CCD
カメラ11について説明すると、図3に示すように、照
明12の光13でPTPシート43を照らし、PTPシ
ート43をその幅方向に一次元撮像するものである。従
って、PTPシート43の幅方向に一列に成形された複
数のポケット部44及び、各ポケット部44に充填され
た錠剤1を同時に撮像することができる。このとき、固
定ロール37に密着した状態のPTPシート43を撮像
しているので、フィルム状のPTPシート43が揺れて
撮像に悪影響が及ぶことはない。The image processing apparatus 10 includes an A / D converter 3, a shading correction unit 14, an image memory 16, a shading correction table 18, a CPU 20, and a determination memory 2.
2, an input / output interface 23, a visual inspection result and statistical data memory 24, a camera timing control means 26, and the like. The A / D converter 3 is a CCD camera 1
The one-dimensional image data captured in step 1 is converted from an analog signal to a digital signal. Where CCD
Describing the camera 11, as shown in FIG. 3, the PTP sheet 43 is illuminated by the light 13 of the illumination 12, and the PTP sheet 43 is one-dimensionally imaged in its width direction. Therefore, a plurality of pockets 44 formed in a line in the width direction of the PTP sheet 43 and the tablets 1 filled in the respective pockets 44 can be simultaneously imaged. At this time, since the PTP sheet 43 in close contact with the fixed roll 37 is imaged, the film-shaped PTP sheet 43 does not swing and does not adversely affect the imaging.
【0023】図4に戻り、画像メモリ16は、A/D変
換された一次元イメージデータを順次記憶して、PTP
シートの二次元イメージデータとして記憶するものであ
る。なお、一次元イメージデータを画像メモリ16に記
憶する前に、シェーディング補正テーブル18のデータ
に従って、シェーディング補正手段14によりシェーデ
ィング補正している。尚、シェーディング補正はPTP
シート43全体を照明12の光13で一様に照らすこと
は技術的に限界があることから、かかる位置の違いによ
る照明の明暗により生じる映像データの明度のばらつき
を補正している。また画像メモリ16には、シェーディ
ング補正手段14から出力される多値データのみでな
く、画像処理された、または画像処理される過程におけ
るデータ、例えば二値化したデータ、も記憶される。Returning to FIG. 4, the image memory 16 sequentially stores A / D converted one-dimensional image data,
This is stored as two-dimensional image data of the sheet. Before the one-dimensional image data is stored in the image memory 16, shading correction is performed by the shading correction unit 14 in accordance with the data in the shading correction table 18. Shading correction is PTP
Since there is a technical limit in uniformly illuminating the entire sheet 43 with the light 13 of the illumination 12, the variation in the brightness of the video data caused by the brightness of the illumination due to such a difference in position is corrected. The image memory 16 stores not only multi-valued data output from the shading correction unit 14 but also data that has undergone image processing or is in the process of being subjected to image processing, for example, binarized data.
【0024】CPU20は、色々の画像処理プログラム
を実行するためのものであり、判定用メモリ22などを
使用して実行する。入出力インターフェース23は、P
TP包装機30に制御信号を送信又は受信するためのも
のである。これによって、例えば、PTP包装機30の
不良シート排出機構などを制御することができる。ま
た、モニタ25に表示データを送信するためのものでも
あり、2次元化したイメージデータや外観検査結果など
を、モニタ25に表示させることができる。The CPU 20 is for executing various image processing programs, and is executed using the determination memory 22 or the like. The input / output interface 23 is
This is for transmitting or receiving a control signal to the TP packaging machine 30. Thereby, for example, a defective sheet discharging mechanism of the PTP packaging machine 30 can be controlled. It is also for transmitting display data to the monitor 25, and the monitor 25 can display two-dimensional image data, a visual inspection result, and the like.
【0025】外観検査結果及び統計データメモリ24
は、連結成分に関する座標等のデータ、外観検査結果デ
ータや外観検査結果データを確率統計的に処理した統計
データ等を記憶するものである。これらの外観検査結果
データや統計データは、モニタ25に表示させることが
できる。また、これらの外観検査結果データや統計デー
タに基づいて、PTP包装機30に制御信号を送信する
こともできる。カメラタイミング制御手段26は、CC
Dカメラ11が撮像する一次元イメージデータを、A/
D変換器3に取り込むタイミングを制御するものであ
る。かかるタイミングは、PTP包装機30に設けられ
たエンコーダ(図示せず)からの信号に基づいて行われ
る。Visual inspection result and statistical data memory 24
Stores data such as coordinates regarding connected components, appearance inspection result data, and statistical data obtained by statistically processing appearance inspection result data. These appearance inspection result data and statistical data can be displayed on the monitor 25. Further, a control signal can be transmitted to the PTP packaging machine 30 based on the appearance inspection result data and the statistical data. The camera timing control means 26
The one-dimensional image data captured by the D camera 11 is
It controls the timing of taking in the D converter 3. Such timing is performed based on a signal from an encoder (not shown) provided in the PTP packaging machine 30.
【0026】次に、錠剤の外観検査の処理の手順を図1
のフローチャート図に基づいて説明する。まず、S1に
より、画像メモリ16に記憶された多値データである映
像信号を、第1の閾値δcにより二値化して、連結成分
に対しラベル付け処理をする。便宜上、錠剤の表面の映
像信号のレベルを高い(明るい)レベル、背景や異物等
を低い(暗い)レベルである場合を仮定し、以下に説明
する。従って、二値化して得た異物の連結成分である一
方の値は0であり、錠剤の表面である他方の値は1であ
る。第1の閾値δcについて図を参照して説明する。図
7は被検査対象である錠剤を図示したものであり、錠剤
100の表面には異物101、102、103が存在し
暗部104が生じている。想像線Bは第1の領域と第2
の領域の境界を示す。図8は、図7の想像線Aに該当す
るラインの輝度階調を示す図である。図8のA1は異物
102に相当する映像信号であり、A2は異物103、
A3は暗部104に相当する。第1の閾値δcは錠剤の
平面部の異物103を検出するために、異物103の映
像信号A2のレベルよりも高く設定する。また、当然錠
剤表面の映像レベルよりも低く選択する。このように選
択した第1の閾値δcにより、多値データである映像信
号を二値化すると、図9に示すように異物101、10
2、103および暗部104が一方の値の連結成分とな
る。ラベル付け処理は、これら一方の値(0)の連結成
分について行う。Next, the procedure of the tablet appearance inspection process is shown in FIG.
This will be described based on the flowchart of FIG. First, in S1, the video signal, which is multi-valued data stored in the image memory 16, is binarized using a first threshold δc, and a labeling process is performed on the connected component. For convenience, the following description is based on the assumption that the level of the video signal on the surface of the tablet is a high (bright) level and the background and foreign matter are at a low (dark) level. Therefore, one value which is the connected component of the foreign substance obtained by binarization is 0, and the other value which is the surface of the tablet is 1. The first threshold value δc will be described with reference to the drawings. FIG. 7 illustrates a tablet to be inspected. Foreign substances 101, 102, and 103 are present on the surface of the tablet 100, and a dark portion 104 is generated. The imaginary line B represents the first area and the second area.
Indicates the boundaries of the region. FIG. 8 is a diagram showing a luminance gradation of a line corresponding to the imaginary line A in FIG. A1 in FIG. 8 is a video signal corresponding to the foreign matter 102, A2 is a foreign matter 103,
A3 corresponds to the dark part 104. The first threshold value δc is set to be higher than the level of the video signal A2 of the foreign substance 103 in order to detect the foreign substance 103 on the flat portion of the tablet. Also, naturally, it is selected to be lower than the image level of the tablet surface. When the video signal, which is multi-value data, is binarized by the first threshold value δc selected in this way, as shown in FIG.
2, 103 and the dark portion 104 are connected components of one value. The labeling process is performed on the connected component having one of these values (0).
【0027】つぎに、S2により、画像メモリ16に記
憶された多値データである映像信号を、第2の閾値δに
より二値化して、連結成分に対しラベル付け処理をす
る。ラベル付け処理は、異物を表す一方の値(0)の連
結成分のみでなく、錠剤の表面を表す他方の値(1)の
連結成分についても行う。第2の閾値δは、図7に示す
異物102のような錠剤の周縁部の異物を区別するため
には、図8に示す周縁部の異物102に相当する映像信
号A1よりも高い(明るい)レベルに設定し、一方、図
7に示す暗部104を含む周縁部の不安定な領域の影響
を避けるためには、暗部104に相当する図8の錠剤の
暗部の映像信号A3よりも低い(暗い)レベルに設定す
るとよい。また、錠剤領域を特定するために、背景の映
像信号のレベルよりも高い(明るい)レベルに設定する
とよい。この場合も、映像信号A3よりも低い(暗い)
レベルに設定すると周縁部の不安定な領域の影響が無
い。従って、図8から明らかなように、第2の閾値δは
通常第1の閾値δcよりも低い(暗い)レベルに選択さ
れる。本実施形態においては、周縁部の異物を区別する
ための閾値と錠剤領域を特定するための閾値を一つの閾
値により処理しているが、当然、個々に異なる閾値、た
とえば周縁部の異物を区別するための閾値を第2の閾値
とし錠剤領域を特定するための閾値を第3の閾値として
も良い。その場合は、処理が多少複雑になるので、錠剤
一つ当たりの処理時間は長くなる。映像信号を第2の閾
値δにより二値化すると、図10に示すように異物10
1、102のみが一方の値の連結成分となる。ラベル付
け処理は、これら一方の値の連結成分および錠剤である
他方の値の連結成分について行う。Next, in S2, the video signal, which is multi-valued data stored in the image memory 16, is binarized by a second threshold value δ, and a labeling process is performed on connected components. The labeling process is performed not only on the connected component having one value (0) representing the foreign substance, but also on the connected component having the other value (1) representing the surface of the tablet. The second threshold value δ is higher (brighter) than the video signal A1 corresponding to the foreign matter 102 at the periphery shown in FIG. 8 in order to distinguish foreign matter at the periphery of the tablet such as the foreign matter 102 shown in FIG. In order to set the level to the level and avoid the influence of the unstable area of the periphery including the dark part 104 shown in FIG. 7, the video signal A3 of the dark part of the tablet shown in FIG. ) Level should be set. Further, in order to specify the tablet region, it is preferable to set the level to a level higher (brighter) than the level of the background video signal. Also in this case, it is lower (darker) than the video signal A3.
When set to the level, there is no influence of the unstable area at the periphery. Therefore, as is apparent from FIG. 8, the second threshold value δ is usually selected to be lower (darker) than the first threshold value δc. In the present embodiment, the threshold value for distinguishing the foreign matter at the peripheral portion and the threshold value for specifying the tablet region are processed by one threshold value. And the threshold for specifying the tablet area may be the third threshold. In that case, the processing becomes somewhat complicated, and the processing time per tablet becomes longer. When the video signal is binarized by the second threshold value δ, as shown in FIG.
Only 1 and 102 are connected components of one value. The labeling process is performed on the connected component of one value and the connected component of the other value that is a tablet.
【0028】そして、S3において第2の閾値δにより
二値化して得られた他方の値(1)の連結成分から、錠
剤の連結成分を特定し錠剤領域とする。図10において
は錠剤100が錠剤領域となる。錠剤の連結成分の特定
は、あらかじめ設定された座標を含み、あらかじめ設定
された範囲内の面積の連結成分を、錠剤の連結成分と特
定する。プログラムを簡略化するために、例えば座標の
み、あるいは面積の大きさのみから特定してもよい。ま
た、錠剤の位置がそれほどばらつかない場合は、前もっ
て錠剤領域を設定しておくこともできる。しかし、PT
Pシートに包装した錠剤の検査においては、PTPシー
トの容器フィルムのポケットは、錠剤よりも十分大きく
成形されているので錠剤の位置が定まらないことが多
く、精密な外観検査をする上では、映像信号から都度特
定することが望ましい。Then, in S3, the connected component of the tablet is specified from the connected component of the other value (1) obtained by binarization using the second threshold value δ, and is set as a tablet area. In FIG. 10, the tablet 100 is the tablet area. The specification of the connected component of the tablet includes predetermined coordinates, and specifies a connected component having an area within a predetermined range as the connected component of the tablet. In order to simplify the program, for example, it may be specified from only the coordinates or only the size of the area. If the positions of the tablets do not vary so much, the tablet area can be set in advance. But PT
In the inspection of tablets packaged in P-sheets, the positions of the tablets are often not determined because the pockets of the container film of the PTP sheet are formed sufficiently larger than the tablets, and therefore, when performing a precise visual inspection, images are required. It is desirable to specify each time from the signal.
【0029】つぎに、S4において錠剤領域を、第1の
領域と第2の領域に区分する。第1の領域は、撮像装置
の受光面と平行に近い被検査面を有し、安定して映像信
号を取得することができる領域であり、通常は中心部を
含む領域である。第2の領域は、撮像装置の受光面と被
検査面との角度が大きく、安定して映像信号を取得する
ことができない領域であり、通常は周縁部の領域であ
る。その区分は、S3において特定した錠剤領域の中心
を求め、あらかじめ用意した第1の領域に相当する形状
を、錠剤領域の中心と中心を一致させて設定し、その内
側を第1の領域、外側を第2の領域とする。図7、図
8、図9、図10においては、想像線Bの内側が第1の
領域であり、外側が第2の領域である。これらの図に示
すように、第1の領域に相当する形状が円形であれば、
中心の座標のみを考慮すればよく、傾きを考慮する必要
がないので、処理が容易になる。特に、円形の錠剤にお
いて有効である。Next, in S4, the tablet area is divided into a first area and a second area. The first region has a surface to be inspected that is nearly parallel to the light receiving surface of the imaging device and is a region where a video signal can be stably acquired, and is usually a region including a central portion. The second region is a region where the angle between the light receiving surface of the imaging device and the surface to be inspected is large and a video signal cannot be stably acquired, and is usually a peripheral region. The division determines the center of the tablet region specified in S3, sets a shape corresponding to the first region prepared in advance so that the center of the tablet region coincides with the center, and sets the inside to the first region and the outside to the first region. Is defined as a second region. 7, 8, 9, and 10, the inside of the imaginary line B is the first area, and the outside is the second area. As shown in these figures, if the shape corresponding to the first region is circular,
Only the coordinates of the center need to be considered, and it is not necessary to consider the inclination, so that the processing is facilitated. In particular, it is effective for circular tablets.
【0030】そして、S5において第1の閾値δcによ
り二値化して得られた一方の値(0)の連結成分のう
ち、第1の領域に一部でも含まれる一定値以上の面積を
有する連結成分を第1異物とする。例えば図9に示すよ
う異物101は第1の領域に一部が含まれているので、
第1異物となる。一方、異物102および暗部104は
第1の領域に全く入っていないので、第1異物にはなら
ない。ここで、一定値以上の面積を有する連結成分のみ
を第1異物としているのは、ノイズ除去のためである。Then, among the connected components of one value (0) obtained by binarizing with the first threshold value δc in S5, the connected component having an area of a certain value or more that is at least partially included in the first region. The component is defined as a first foreign substance. For example, as shown in FIG. 9, the foreign matter 101 is partially included in the first region,
It becomes the first foreign matter. On the other hand, the foreign material 102 and the dark portion 104 do not enter the first region at all, and thus do not become the first foreign material. Here, the reason why only the connected component having an area equal to or larger than a certain value is set as the first foreign substance is to remove noise.
【0031】つぎに、S6において第2の閾値δにより
二値化して得られた一方の値(0)の連結成分のうち、
第2の領域に全て含まれる一定値以上の面積を有する連
結成分を第2異物とする。例えば図10に示すよう異物
102は第2の領域に全体が含まれているので、第2異
物である。一方、異物101は第2の領域の外にはみ出
しているので、第2異物にはならない。また、図7に示
す暗部104は第2の閾値δよりも映像信号のレベルが
高いので、S2の二値化により消されて第2異物にはな
らない。ここで、一定値以上の面積を有する連結成分の
みを第2異物としているのは、第1異物の時と同様にノ
イズ除去のためである。そしてS7では、S5において
第1異物がまたはS6において第2異物が存在すると判
断された錠剤は、異物が存在する錠剤であり不良と判断
する。不良と判断された錠剤を含むシートは、後の不良
シート排出機構により排出される。ここでは一つの錠剤
の処理について説明したが、複数の錠剤を同時に撮像
し、複数の錠剤について同時または順次上記処理を行っ
ても良い。Next, of the connected components of one value (0) obtained by binarizing with the second threshold value δ in S6,
A connected component having an area equal to or larger than a certain value, which is included in the second region, is defined as a second foreign substance. For example, as shown in FIG. 10, the foreign matter 102 is a second foreign matter because the foreign matter is entirely contained in the second region. On the other hand, the foreign matter 101 does not become the second foreign matter because it protrudes outside the second area. Further, since the level of the video signal in the dark portion 104 shown in FIG. 7 is higher than the second threshold value δ, the dark portion 104 is eliminated by the binarization of S2 and does not become the second foreign matter. Here, the reason why only the connected component having an area equal to or larger than a certain value is used as the second foreign matter is to remove noise as in the case of the first foreign matter. Then, in S7, the tablet determined to have the first foreign substance in S5 or the second foreign substance in S6 is a tablet having the foreign substance and is determined to be defective. The sheet containing the tablet determined to be defective is discharged by a defective sheet discharge mechanism to be described later. Here, the processing of one tablet has been described, but a plurality of tablets may be imaged simultaneously, and the above processing may be performed on a plurality of tablets simultaneously or sequentially.
【0032】さて、以下に本実施形態の錠剤の外観検査
装置において特徴的な作用効果を列挙する。 (イ)上記構成を有する本実施形態の錠剤の外観検査装
置によれば、第一の領域に一部でも含まれる錠剤領域内
の連結成分は、錠剤上の異物と判断するので、周縁部に
発生する暗部を異物と誤判定することなく、また、ほと
んどが周縁部に位置しほんの一部が平面部に掛かってい
るような異物についても、確実に異物と判断することが
できる。 (ロ)第2の閾値を別途設けたので、錠剤中心部の異物
である第1異物の映像レベルに影響されることなく、周
縁部の異物あるいは錠剤領域を得るのに適した閾値を選
択することができる。 (ハ)第2の閾値は、第2の領域の錠剤の映像信号のレ
ベルよりも低く、つまり錠剤周縁部の不安定領域の錠剤
の映像信号のレベルよりも低く、かつ第二の領域の異物
の映像信号よりも高いレベルに設定したので、第2の領
域の異物の検出または錠剤領域を特定する上で、錠剤周
縁部の映像が不安定な領域の影響を受けない安定した検
出または特定が可能となる。 (二)第1の閾値を、錠剤の平面部である第1の領域の
錠剤の映像信号のレベルよりも低く、かつ第1の領域の
異物の映像信号よりも高いレベルに設定したので、第1
の領域の異物を二値化手段により安定して異物と判別す
ることができる。The characteristic effects of the tablet appearance inspection apparatus according to the present embodiment will be described below. (A) According to the tablet appearance inspection apparatus of the present embodiment having the above configuration, the connected components in the tablet area, which are even partially included in the first area, are determined to be foreign substances on the tablet, It is possible to reliably determine a generated foreign material as a foreign material without erroneously determining the generated foreign material as a foreign material, and also with respect to a foreign material that is almost entirely located at the peripheral portion and only partially covers the flat surface portion. (B) Since the second threshold value is separately provided, a threshold value suitable for obtaining the foreign material or the tablet area at the peripheral portion without being affected by the image level of the first foreign material as the foreign material at the tablet center is selected. be able to. (C) The second threshold value is lower than the level of the video signal of the tablet in the second area, that is, lower than the level of the video signal of the tablet in the unstable area at the periphery of the tablet, and the foreign matter in the second area. Since the video signal is set to a higher level than the video signal of the above, in detecting foreign matter in the second region or specifying the tablet region, stable detection or specification in which the image of the tablet peripheral portion is not affected by the unstable region is performed. It becomes possible. (2) Since the first threshold is set to be lower than the level of the video signal of the tablet in the first area, which is the flat part of the tablet, and higher than the level of the video signal of the foreign substance in the first area. 1
The foreign matter in the region can be stably determined as the foreign matter by the binarizing means.
【00033】(ホ)第二の閾値をもって二値化して得
られた一方の値の連結成分のうち、第二の領域に全て含
まれる前記錠剤領域内の連結成分は、前記錠剤上の異物
と判断するので、第二の領域に全て含まれる錠剤領域内
の異物も判別することができる。[0003] (e) Among the connected components of one value obtained by binarization using the second threshold value, the connected components in the tablet area, which are all included in the second area, are considered as foreign substances on the tablet. Since the determination is made, it is also possible to determine the foreign matter in the tablet area that is entirely included in the second area.
【0034】(へ)錠剤が、円形であり、前記第一の領
域が、前記錠剤領域の中心に中心を一致させて設けた円
の内側の領域とするので、複雑な処理をすることなく、
第一の領域と第二の領域を容易に区分することができ
る。(F) Since the tablet is circular and the first area is an area inside a circle provided so that the center coincides with the center of the tablet area, the first area can be processed without complicated processing.
The first area and the second area can be easily separated.
【0035】(ト)分割錠または糖衣錠等のように、周
縁部の面に角度がついている事により映像が不安定にな
る錠剤についても、周縁部に発生する暗部を異物と誤判
定することなく、また、ほとんどが周縁部にありほんの
一部が平面部に掛かっているような異物についても、確
実に異物と判断することができる。 (チ)複雑な処理を要しないので多くの錠剤を同時に撮
像し同時に処理することを要する、PTPシートのポケ
ットに充填された錠剤の外観検査に適用することができ
る。 (リ)PTP包装機に設ければ、錠剤の周縁部に発生す
る暗部を異物と誤判定することなく、また、ほとんどが
周縁部にありほんの一部が平面部に掛かっているような
異物についても、確実に異物と判断することができるP
TP包装機を提供することができる。(G) Even for tablets such as a split tablet or a sugar-coated tablet, the image of which is unstable due to the angle of the surface of the peripheral part, the dark part generated in the peripheral part is not erroneously determined as a foreign substance. In addition, a foreign substance which is mostly on the peripheral edge and only a part of the foreign substance is hung on the flat part can be reliably determined as a foreign substance. (H) The present invention can be applied to the visual inspection of tablets filled in a pocket of a PTP sheet, which requires simultaneous imaging and processing of many tablets because complicated processing is not required. (I) If provided on the PTP packaging machine, the dark portion generated at the peripheral portion of the tablet will not be erroneously determined as a foreign material, and the foreign material which is mostly located on the peripheral portion and only a part of the foreign material is hung on the flat surface portion will be described. Can be reliably determined to be a foreign substance.
A TP packaging machine can be provided.
【0036】[第2の実施形態]次に、本発明の第2の
実施形態について、図面と共に説明する。上記実施形態
1では、第1の領域と第2の領域に区分するにあたり、
錠剤領域の中心を求め、あらかじめ用意した第1の領域
に相当する形状を、錠剤領域の中心と中心を一致させて
設定し、その内側を第1の領域、外側を第2の領域とし
ていた。これに対し、本実施形態では、第1の閾値δc
により二値化して得られた一方の値の連結成分と、錠剤
領域の中心座標との距離の最小値が、基準値である異物
基準距離HRd以下であるか否かにより、錠剤領域内の
連結成分を、第1の領域に一部でも含まれる異物である
第1異物あるいは、第2の領域に全てが含まれる異物で
ある第2異物と判断している。しかし、PTP包装機の
構成および錠剤の外観検査装置のブロック図は、上記実
施形態1と同様であるので、同様な部分の説明は省略
し、上記した相違点を中心に図5のフローチャートを参
照して説明する。[Second Embodiment] Next, a second embodiment of the present invention will be described with reference to the drawings. In the first embodiment, when dividing into the first area and the second area,
The center of the tablet region is determined, and a shape corresponding to the first region prepared in advance is set so that the center of the tablet region coincides with the center, and the inside is defined as the first region and the outside is defined as the second region. In contrast, in the present embodiment, the first threshold δc
The connection in the tablet area is determined by whether or not the minimum value of the distance between the connected component of one value obtained by binarization and the center coordinate of the tablet area is equal to or less than the foreign matter reference distance HRd which is the reference value. The component is determined to be a first foreign substance that is a foreign substance even partially contained in the first region, or a second foreign substance that is a foreign substance entirely contained in the second region. However, since the configuration of the PTP packaging machine and the block diagram of the tablet appearance inspection apparatus are the same as those in the first embodiment, the description of the same parts will be omitted, and the flowchart shown in FIG. I will explain.
【0037】まず、S11において画像メモリ16に記
憶されたPTPシートに充填された錠剤の多値データで
ある映像信号を、第1の閾値δcにより二値化して、一
方の値の連結成分に対しラベル付け処理をする。 S1
1は上記実施形態1のS1と同様であり、第1の閾値δ
cおよびラベル付け処理についても同様である。つぎ
に、S12において画像メモリ16に記憶されたPTP
シートに充填された錠剤の多値データである映像信号
を、第2の閾値δにより二値化して、一方の値および他
方の値の連結成分についてラベル付け処理をする。 S
12は上記実施形態1のS2と同様であり、第2の閾値
δおよびラベル付け処理についても同様である。そし
て、S13において第2の閾値δにより二値化して得ら
れた他方の値の連結成分から、錠剤の連結成分を特定し
錠剤領域とする。S13は上記実施形態1のS3と同様
である。First, in step S11, a video signal, which is multivalued data of a tablet filled in a PTP sheet and stored in the image memory 16, is binarized by a first threshold value δc, and a connected component of one of the values is calculated. Perform labeling processing. S1
1 is the same as S1 of the first embodiment, and the first threshold δ
The same applies to c and the labeling process. Next, the PTP stored in the image memory 16 in S12
A video signal, which is multi-value data of a tablet filled in a sheet, is binarized by a second threshold value δ, and a labeling process is performed on a connected component of one value and the other value. S
12 is the same as S2 of the first embodiment, and the same applies to the second threshold value δ and the labeling process. Then, in S13, the connected component of the tablet is specified from the connected component of the other value obtained by binarization using the second threshold value δ, and is set as a tablet area. S13 is the same as S3 of the first embodiment.
【0038】次に、S14において錠剤の中心座標を求
める。中心は錠剤領域のX座標の最大値と最小値を加え
て2で割ったものを中心のX座標、錠剤領域のY座標の
最大値と最小値を加えて2で割ったものを中心のY座標
とする。もっとも、中心の代わりに重心を用いても良い
し、他の求め方で中心を求めても良い。また、錠剤の位
置があらかじめ定まっている場合は、あらかじめ設定し
た固定値を中心としても良いが、PTPシートに包装さ
れた錠剤に応用する場合は、錠剤に対しPTPシートの
ポケットは十分大きく成形されており、錠剤の位置が定
まらないので都度錠剤領域から中心を求める方がより精
度の高い検査が可能となる。Next, the center coordinates of the tablet are determined in S14. The center is obtained by adding the maximum value and the minimum value of the tablet area and dividing by 2 to obtain the center X coordinate, and adding the maximum value and the minimum value of the Y coordinate of the tablet area and dividing the result by 2 to obtain the center. Coordinates. Of course, the center of gravity may be used instead of the center, or the center may be obtained by another method. When the position of the tablet is predetermined, a fixed value set in advance may be used as the center, but when applied to a tablet packed in a PTP sheet, the pocket of the PTP sheet is formed sufficiently large with respect to the tablet. Since the position of the tablet is not determined, obtaining the center from the tablet area each time enables more accurate inspection.
【0039】そして、S15において第1の閾値δcに
より二値化して得られた一方の値の連結成分のうち、S
14で求めた錠剤領域の中心座標からの距離の最小値
が、基準値としての異物基準距離HRd以下である錠剤
領域内の一定値以上の面積を有する連結成分を、第1異
物と判断する。ここで、一定値以上の面積を有する連結
成分のみを第1異物としているのは、ノイズ除去のため
である。異物基準距離HRdは、撮像装置の受光面と平
行に近い安定して映像信号を取得することができる領域
のみが含まれるように選択する。Then, of the connected components of one value obtained by binarization using the first threshold value δc in S15, S
A connected component having an area equal to or larger than a certain value in the tablet region in which the minimum value of the distance from the center coordinates of the tablet region obtained in step 14 is equal to or smaller than the foreign object reference distance HRd as the reference value is determined as the first foreign object. Here, the reason why only the connected component having an area equal to or larger than a certain value is set as the first foreign substance is to remove noise. The foreign matter reference distance HRd is selected so as to include only an area close to being parallel to the light receiving surface of the imaging device and capable of obtaining a stable video signal.
【0040】そして、S16において第2の閾値δによ
り二値化して得られた一方の値の連結成分のうち、S1
4で求めた錠剤領域の中心座標からの距離の最小値が、
異物基準距離HRdを越える錠剤領域内の一定値以上の
面積を有する連結成分を、第2異物と判断する。ここ
で、一定値以上の面積を有する連結成分のみを第2異物
としているのは、第1異物の時と同様にノイズ除去のた
めである。そしてS17では、S15において第1異物
が存在する錠剤またはS16において第2異物が存在す
ると判断された錠剤は、異物が存在する錠剤であり不良
と判断する。不良と判断された錠剤を含むシートは、後
に不良シート排出機構により排出される。S17は上記
実施形態1のS7と同様である。Then, of the connected components of one value obtained by binarization using the second threshold value δ in S16, S1
The minimum value of the distance from the center coordinates of the tablet area obtained in 4 is
A connected component having an area equal to or larger than a certain value in the tablet region exceeding the foreign matter reference distance HRd is determined as a second foreign matter. Here, the reason why only the connected component having an area equal to or larger than a certain value is used as the second foreign matter is to remove noise as in the case of the first foreign matter. In S17, the tablet in which the first foreign substance is present in S15 or the tablet in which it is determined that the second foreign substance is present in S16 is a tablet in which the foreign substance is present and is determined to be defective. The sheet containing the tablet determined to be defective is later discharged by the defective sheet discharge mechanism. Step S17 is the same as step S7 in the first embodiment.
【0041】さて、以下に本実施形態において特徴的な
作用効果を列挙する。 (イ)本実施形態の錠剤の外観検査装置も、実施形態1
の錠剤の外観検査装置と基本構成が共通しているため、
実施形態1にて挙げたイ、ロ、ハ、二、ホ、ト、チ、リ
の作用効果を奏することはいうまでもない。 (ロ)異物基準距離HRdの設定のみにより第1の領域
に一部でも含まれる第1異物と、第2の領域に全て含ま
れる第2異物を判断することができるので、設定が容易
である。特に円形の錠剤においては、第1の領域と第2
の領域の境界は、通常錠剤の中心と中心を一致して設け
た円が最も適しているので、本実施の形態でも、前記実
施形態1と全く同様の効果を得ることができる。Now, the characteristic effects of this embodiment will be listed below. (A) The tablet appearance inspection apparatus of the present embodiment is also the same as that of the first embodiment.
Because the basic configuration is the same as the tablet visual inspection device,
Needless to say, the effects of A, B, C, B, E, G, J, and R described in the first embodiment are exhibited. (B) Only by setting the foreign matter reference distance HRd, it is possible to determine the first foreign matter even partially contained in the first area and the second foreign matter entirely contained in the second area, so that setting is easy. . Especially in the case of round tablets, the first region and the second region
The boundary of the region is most preferably a circle provided so that the center of the tablet coincides with the center, and therefore, in the present embodiment, the same effect as in the first embodiment can be obtained.
【0042】[第3の実施形態]次に、本発明の第3の
実施形態について、図面と共に説明する。上記実施形態
1では、錠剤領域を特定するにあたり、錠剤中心部の異
物を特定する第1の閾値δcとは別に第2の閾値δによ
り二値化していた。これに対し、本実施形態では、第1
の閾値δcにより二値化して得られた他方の値の連結成
分から錠剤領域を特定している。しかし、PTP包装機
の構成および錠剤の外観検査装置のブロック図は、上記
実施形態1と同様であるので、同様な部分の説明は省略
し、上記した相違点を中心に図6のフローチャートを参
照して説明する。[Third Embodiment] Next, a third embodiment of the present invention will be described with reference to the drawings. In the first embodiment, when specifying the tablet area, binarization is performed using the second threshold value δ separately from the first threshold value δc for specifying a foreign substance at the center of the tablet. On the other hand, in the present embodiment, the first
The tablet area is specified from the connected component of the other value obtained by binarization using the threshold value δc. However, since the configuration of the PTP packaging machine and the block diagram of the tablet appearance inspection apparatus are the same as those in the first embodiment, the description of the same parts will be omitted, and the flow chart of FIG. I will explain.
【0043】まず、S21において画像メモリ16に記
憶されたPTPシートに充填された錠剤の多値データで
ある映像信号を、第1の閾値δcにより二値化して、連
結成分に対しラベル付け処理をする。 ラベル付け処理
は、一方の値のみでなく他方の値の連結成分に対しても
行う。第1の閾値δcについては上記実施形態1のS1
と同様である。つぎに、S22において第1の閾値δc
により二値化して得られた他方の値の連結成分から、錠
剤の連結成分を特定し錠剤領域とする。錠剤の連結成分
の特定は前記実施形態1のS3と同様である。そして、
S23において中心を含む第1の領域と、第2の領域に
区分する。区分は上記実施形態1のS4と同様である。First, in step S21, a video signal, which is multi-value data of a tablet filled in a PTP sheet and stored in the image memory 16, is binarized by a first threshold value δc, and labeling processing is performed on connected components. I do. The labeling process is performed not only on one value but also on a connected component of the other value. Regarding the first threshold value δc, S1 of the first embodiment is used.
Is the same as Next, in S22, the first threshold δc
The connected component of the tablet is specified from the connected component of the other value obtained by binarization according to and is set as a tablet area. The connection component of the tablet is specified in the same manner as in S3 of the first embodiment. And
In S23, the area is divided into a first area including the center and a second area. The classification is the same as in S4 of the first embodiment.
【0044】そして、S24において第1の閾値δcに
より二値化して得られた一方の値(0)の連結成分のう
ち、第1の領域に一部でも含まれる一定値以上の面積を
有する連結成分を第1異物とする。上記実施形態1のS
5と同様である。そしてS25では、S24において第
1異物が存在する錠剤は、不良と判断する。不良と判断
された錠剤を含むシートは、上記実施形態1のS7と同
様に、後の不良シート排出機構により排出される。Then, in S24, of the connected components of one value (0) obtained by binarization using the first threshold value δc, the connected component having an area of a certain value or more that is at least partially included in the first region. The component is defined as a first foreign substance. S of the first embodiment
Same as 5. Then, in S25, the tablet in which the first foreign matter is present in S24 is determined to be defective. The sheet containing the tablet determined to be defective is discharged by the subsequent defective sheet discharge mechanism, similarly to S7 of the first embodiment.
【0045】さて、以下に本実施形態において特徴的な
作用効果を列挙する。 (イ)本実施形態の錠剤の外観検査装置も、実施形態1
の錠剤の外観検査装置と基本構成が共通しているため、
実施形態1にて挙げたイ、ニ、へ、ト、チ、リの作用効
果を奏することはいうまでもない。 (ロ)一つの閾値による一回の二値化処理により、ほと
んどが周縁部にありほんの一部が平面部に掛かっている
ような異物についても、確実に異物と判断することがで
きる。処理がより簡単になることにより、より高速の処
理が可能となり、多くの錠剤を同時に検査しなくてはな
らないPTP包装機上での外観検査にも適している。The operation and effects characteristic of the present embodiment will be listed below. (A) The tablet appearance inspection apparatus of the present embodiment is also the same as that of the first embodiment.
Because the basic configuration is the same as the tablet visual inspection device,
Needless to say, the effects of A, D, H, G, H, and R described in the first embodiment are exhibited. (B) By a single binarization process using one threshold value, even a foreign substance that is mostly on the peripheral edge and only partially hangs on the flat part can be reliably determined as a foreign substance. The simplicity of processing allows for faster processing and is also suitable for visual inspection on PTP packaging machines where many tablets must be inspected simultaneously.
【0046】[0046]
【発明の効果】このような構成を有する本発明の錠剤の
外観検査装置では、前記画像処理装置に、前記映像信号
を二値化する二値化手段を設け、前記二値化手段により
前記映像信号を第一の閾値をもって二値化して得られた
一方の値の連結成分が、前記錠剤の領域である錠剤領域
の、前記錠剤の中心部を含む第一の領域と、前記第一の
領域の外側の第二の領域のうち、前記第一の領域に一部
でも含まれる前記錠剤領域内の連結成分は、前記錠剤上
の異物と判断する第一異物判別手段を設けたので、周縁
部に発生する暗部を異物と誤判定することなく、また、
ほとんどが周縁部にありほんの一部が平面部に掛かって
いるような異物についても、確実に異物と判断すること
ができる。According to the tablet appearance inspection apparatus of the present invention having such a configuration, the image processing apparatus is provided with a binarization unit for binarizing the video signal, and the binarization unit performs the binarization by the binarization unit. A connected component of one value obtained by binarizing the signal with a first threshold value is a tablet region, which is a region of the tablet, a first region including a central portion of the tablet, and the first region. Of the second region outside the connected region, the connected component in the tablet region, which is also included in the first region, is provided with first foreign matter determination means for determining foreign matter on the tablet. Without misjudging the dark area generated in
Even a foreign substance which is mostly on the peripheral edge and only part of the foreign substance is hung on the flat part can be reliably determined as a foreign substance.
【0047】また、前記第一の閾値を、第一の領域の錠
剤の映像信号と、第一の領域の異物の映像信号との間の
レベルに選択すれば、第一の領域の異物を二値化手段に
より安定して異物と判別することができる。また、前記
二値化手段により前記映像信号を前記第一の閾値をもっ
て二値化し、得られた他方の値の連結成分の外周により
囲まれた領域を前記錠剤領域とすれば、異物の連結成分
を得るための二値化処理と錠剤領域を得るための二値化
処理を、一つの閾値による一回の二値化処理により行う
ことができ、簡単な処理でほとんどが周縁部にありほん
の一部が平面部に掛かっているような異物についても、
確実に異物と判断することができる。Further, if the first threshold value is selected to be a level between the video signal of the tablet in the first area and the video signal of the foreign substance in the first area, the foreign substance in the first area is reduced to two levels. It is possible to stably determine the foreign matter by the value converting means. Further, if the image signal is binarized by the binarization means using the first threshold, and the region surrounded by the outer periphery of the obtained connected component of the other value is set as the tablet region, the connected component of the foreign substance is obtained. The binarization processing for obtaining the tablet area and the binarization processing for obtaining the tablet area can be performed by one binarization processing using one threshold value. For foreign matter where the part is hanging on the flat part,
It can be reliably determined that the substance is a foreign substance.
【0048】また、前記二値化手段により前記映像信号
を第二の閾値をもって二値化し、得られた他方の値の連
結成分の外周により囲まれた領域を前記錠剤領域とすれ
ば、錠剤領域を特定するに当たり、異物の映像信号のレ
ベルにとらわれることなく、錠剤領域を最も安定して検
出することができる閾値のレベルを選択することができ
る。Further, if the binarizing means binarizes the video signal with a second threshold value and sets the area surrounded by the outer periphery of the obtained connected component of the other value as the tablet area, When specifying the threshold value, it is possible to select a threshold level at which the tablet area can be detected most stably without being influenced by the level of the video signal of the foreign substance.
【0049】また、前記二値化手段により前記映像信号
を第二の閾値をもって二値化して得られた一方の値の連
結成分のうち、前記第二の領域に全て含まれる前記錠剤
領域内の連結成分は、前記錠剤上の異物と判断する第二
異物判別手段を設ければ、第二の領域に全て含まれる錠
剤領域内の異物も、安定して判別することができる。Further, of the connected components of one of the values obtained by binarizing the video signal with the second threshold value by the binarizing means, the tablet area contained in the second area is entirely included in the second area. If the connected component is provided with a second foreign matter discriminating means for judging the foreign matter on the tablet, the foreign matter in the tablet area which is entirely included in the second area can be also stably discriminated.
【0050】また前記第二の閾値は、第二の領域の錠剤
の映像信号と、第二の領域の異物の映像信号との間のレ
ベルに選択すれば、第二の領域の異物の検出または錠剤
領域を特定する上で、錠剤周縁部の映像が不安定な領域
の影響を受けない安定した検出または特定が可能とな
る。If the second threshold value is selected to be a level between the video signal of the tablet in the second area and the video signal of the foreign substance in the second area, the detection of the foreign substance in the second area or In specifying the tablet region, stable detection or specification can be performed without being affected by the region where the image of the tablet peripheral portion is unstable.
【0051】また、前記錠剤が、円形であり、前記第一
の領域が、前記錠剤領域の中心に中心を一致させて設け
た円の内側の領域とすれば、複雑な処理をすることな
く、第一の領域と第二の領域を容易に区分することがで
きる。Further, if the tablet is circular and the first area is an area inside a circle provided with the center coincident with the center of the tablet area, no complicated processing is performed. The first area and the second area can be easily separated.
【0052】また、分割錠または糖衣錠についても、周
縁部に生じる暗部を異物と誤判定することなく、また、
ほとんどが周縁部にありほんの一部が平面部に掛かって
いるような異物についても、確実に異物と判断すること
ができるまた、複雑な処理を要しないので多くの錠剤を
同時に撮像し同時に処理することを要する、PTPシー
トのポケットに充填された錠剤の外観検査に適用するこ
とができる。また、PTP包装機に設ければ、錠剤の周
縁部に発生する暗部を異物と誤判定することなく、ま
た、ほとんどが周縁部にありほんの一部が平面部に掛か
っているような異物についても、確実に異物と判断する
ことができるPTP包装機を提供することができる。In the case of a divided tablet or a sugar-coated tablet, the dark portion formed in the peripheral portion is not erroneously determined as a foreign substance.
Even foreign substances, most of which are on the periphery and only partly hung on a flat part, can be reliably judged as foreign substances.Moreover, since complicated processing is not required, many tablets are imaged and processed simultaneously. This can be applied to the visual inspection of tablets filled in the pockets of the PTP sheet. Further, if provided on the PTP packaging machine, the dark portion generated at the peripheral portion of the tablet is not erroneously determined as a foreign material, and the foreign material that is mostly on the peripheral portion and only a part of the foreign material is hung on the flat surface portion is also prevented. Thus, it is possible to provide a PTP packaging machine that can reliably determine a foreign substance.
【図1】本発明の錠剤の外観検査装置の第1の実施の形
態の動作を示すフローチャート図である。FIG. 1 is a flowchart showing an operation of a first embodiment of a tablet appearance inspection device of the present invention.
【図2】本発明の錠剤の外観検査装置の全体構成を示す
ブロック図である。FIG. 2 is a block diagram showing the overall configuration of the tablet appearance inspection device of the present invention.
【図3】PTP包装機の一部を示した斜視図であり、搬
送中のPTPシートのポケット部に充填された錠剤また
はカプセルの外観を撮像する部分を示した図である。FIG. 3 is a perspective view showing a part of the PTP packaging machine, and showing a part for imaging the appearance of a tablet or capsule filled in a pocket portion of a PTP sheet being conveyed.
【図4】本発明の錠剤の外観検査装置の機能構成を示す
ブロック図である。FIG. 4 is a block diagram showing a functional configuration of the tablet appearance inspection device of the present invention.
【図5】本発明の錠剤の外観検査装置の第2の実施の形
態の動作を示すフローチャート図である。FIG. 5 is a flowchart showing an operation of the tablet appearance inspection apparatus according to the second embodiment of the present invention.
【図6】本発明の錠剤の外観検査装置の第3の実施の形
態の動作を示すフローチャート図である。FIG. 6 is a flowchart showing the operation of the third embodiment of the tablet appearance inspection device of the present invention.
【図7】錠剤の外観を示す図である。FIG. 7 is a view showing the appearance of a tablet.
【図8】図7の想像線Aに該当するラインの映像信号を
示す図である。8 is a diagram showing a video signal of a line corresponding to the imaginary line A in FIG.
【図9】第1の閾値により二値化した映像データを示す
図である。FIG. 9 is a diagram showing video data binarized by a first threshold.
【図10】第2の閾値により二値化した映像データを示
す図である。FIG. 10 is a diagram showing video data binarized by a second threshold.
【図11】従来の錠剤の外観検査装置の動作を示すフロ
ーチャート図である。FIG. 11 is a flowchart showing the operation of a conventional tablet appearance inspection device.
1 錠剤 3 A/D変換器 10 画像処理装置 11 CCDカメラ 12 照明 13 光 14 シェーディング補正手段 16 画像メモリ 18 シェーディング補正テーブル 20 CPU 22 判定用メモリ 23 入出力インターフェース 24 統計データメモリ 25 モニタ 26 カメラタイミング制御手段 30 PTP包装機 31、32、34、35 テンションロール 33 フィルム送りロール 36 シールロール 37 固定ロール 40 容器フィルム 42 密封用フィルム 43 ブリスタシート 44 ポケット部 50 加熱板 51 成形板 52 錠剤投入シャッター 100 錠剤 101、102、103 異物 104 暗部 Reference Signs List 1 tablet 3 A / D converter 10 image processing device 11 CCD camera 12 illumination 13 light 14 shading correction means 16 image memory 18 shading correction table 20 CPU 22 judgment memory 23 input / output interface 24 statistical data memory 25 monitor 26 camera timing control Means 30 PTP packaging machine 31, 32, 34, 35 Tension roll 33 Film feed roll 36 Seal roll 37 Fixing roll 40 Container film 42 Sealing film 43 Blister sheet 44 Pocket 50 Heating plate 51 Molding plate 52 Tablet input shutter 100 Tablet 101 , 102, 103 Foreign matter 104 Dark area
───────────────────────────────────────────────────── フロントページの続き Fターム(参考) 2G051 AA02 AA32 AB20 CA03 CB01 EA09 EA11 EB01 EB05 EC01 ED09 ──────────────────────────────────────────────────続 き Continued on the front page F term (reference) 2G051 AA02 AA32 AB20 CA03 CB01 EA09 EA11 EB01 EB05 EC01 ED09
Claims (10)
記照明装置により照射された面を撮像する撮像装置と、
前記撮像装置から出力される映像信号を処理する画像処
理装置を有する錠剤の外観検査装置において、前記画像
処理装置に、 前記映像信号を二値化する二値化手段を設け、 前記二値化手段により前記映像信号を第一の閾値をもっ
て二値化して得られた一方の値の連結成分が、 前記錠剤の領域である錠剤領域の、 前記錠剤の中心部を含む第一の領域と、 前記第一の領域の外側の第二の領域のうち、 前記第一の領域に一部でも含まれる前記錠剤領域内の連
結成分は、 前記錠剤上の異物と判断する第一異物判別手段を設けた
ことを特徴とする錠剤の外観検査装置。An illumination device for irradiating a tablet, an imaging device for imaging a surface of the tablet irradiated by the illumination device,
In a tablet appearance inspection device having an image processing device that processes a video signal output from the imaging device, the image processing device includes a binarization unit that binarizes the video signal, A connected component of one value obtained by binarizing the video signal with a first threshold value according to a tablet region, which is a region of the tablet, a first region including a central portion of the tablet, and In the second area outside the one area, the connected component in the tablet area, which is also included in the first area even partly, is provided with first foreign matter determination means for determining foreign matter on the tablet. A tablet appearance inspection device characterized by the following.
像信号のレベルと、第一の領域の異物の映像信号のレベ
ルとの間のレベルに選択されていることを特徴とする請
求項1に記載する錠剤の外観検査装置。2. The method according to claim 1, wherein the first threshold is selected to be a level between a level of a video signal of a tablet in a first area and a level of a video signal of a foreign substance in the first area. The tablet appearance inspection device according to claim 1.
記映像信号を前記第一の閾値をもって二値化して、得ら
れた他方の値の連結成分の外周により囲まれた領域であ
ることを特徴とする請求項1または請求項2に記載する
錠剤の外観検査装置。3. The tablet area is an area surrounded by the outer periphery of a connected component of the other value obtained by binarizing the video signal with the first threshold value by the binarizing means. The tablet appearance inspection device according to claim 1 or 2, wherein:
記映像信号を第二の閾値をもって二値化して得られた、
他方の値の連結成分の外周により囲まれた領域であるこ
とを特徴とする請求項1または請求項2に記載する錠剤
の外観検査装置。4. The tablet area is obtained by binarizing the video signal with a second threshold by the binarizing means.
The tablet appearance inspection device according to claim 1 or 2, wherein the region is a region surrounded by the outer periphery of the other value of the connected component.
の閾値をもって二値化して得られた一方の値の連結成分
のうち、前記第二の領域に全て含まれる前記錠剤領域内
の連結成分は、前記錠剤上の異物と判断する第二異物判
別手段を設けたことを特徴とする請求項1乃至請求項4
のいずれか一つに記載する錠剤の外観検査装置。5. A tablet region included in the second region, which is included in the second region, of a connected component of one value obtained by binarizing the video signal with a second threshold value by the binarizing means. The connected component is provided with a second foreign matter discriminating means for judging a foreign matter on the tablet.
The tablet appearance inspection device described in any one of the above.
像信号と、第二の領域の異物の映像信号との間のレベル
に選択されていることを特徴とする請求項4または請求
項5に記載する錠剤の外観検査装置。6. The apparatus according to claim 4, wherein the second threshold value is selected to be a level between a video signal of a tablet in a second area and a video signal of a foreign substance in a second area. Or a tablet visual inspection device according to claim 5.
は、前記錠剤領域の中心に中心を一致させて設けた円の
内側の領域であることを特徴とする請求項1乃至請求項
6のいずれか一つに記載する錠剤の外観検査装置。7. The tablet according to claim 1, wherein the tablet has a circular shape, and the first region is a region inside a circle provided so that the center is coincident with the center of the tablet region. Item 7. A tablet appearance inspection device according to any one of Items 6.
とを特徴とする請求項1乃至請求項7のいずれか一つに
記載する錠剤の外観検査装置。8. The tablet appearance inspection apparatus according to claim 1, wherein the tablet is a divided tablet or a sugar-coated tablet.
填された錠剤であることを特徴とする請求項1乃至請求
項8のいずれか一つに記載する錠剤の外観検査装置。9. The tablet appearance inspection apparatus according to claim 1, wherein the tablet is a tablet filled in a pocket of a PTP sheet.
を設けたことを特徴とするPTP包装機。10. A PTP packaging machine provided with the tablet appearance inspection device according to claim 9.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP01963699A JP3461136B2 (en) | 1999-01-28 | 1999-01-28 | Tablet visual inspection device and PTP packaging machine |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP01963699A JP3461136B2 (en) | 1999-01-28 | 1999-01-28 | Tablet visual inspection device and PTP packaging machine |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2000214097A true JP2000214097A (en) | 2000-08-04 |
| JP3461136B2 JP3461136B2 (en) | 2003-10-27 |
Family
ID=12004713
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP01963699A Expired - Fee Related JP3461136B2 (en) | 1999-01-28 | 1999-01-28 | Tablet visual inspection device and PTP packaging machine |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP3461136B2 (en) |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2003215047A (en) * | 2002-01-17 | 2003-07-30 | Ckd Corp | Visual inspection apparatus and ptp packaging machine equipped with the same |
| JP2004077495A (en) * | 2003-10-21 | 2004-03-11 | Ckd Corp | Appearance inspection device |
| JP2006193197A (en) * | 2005-01-17 | 2006-07-27 | Ckd Corp | Inspection device and PTP packaging machine |
| JP2021156775A (en) * | 2020-03-27 | 2021-10-07 | 日本碍子株式会社 | Inspection method and inspection device for pillar-shaped honeycomb structure |
-
1999
- 1999-01-28 JP JP01963699A patent/JP3461136B2/en not_active Expired - Fee Related
Cited By (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2003215047A (en) * | 2002-01-17 | 2003-07-30 | Ckd Corp | Visual inspection apparatus and ptp packaging machine equipped with the same |
| JP2004077495A (en) * | 2003-10-21 | 2004-03-11 | Ckd Corp | Appearance inspection device |
| JP2006193197A (en) * | 2005-01-17 | 2006-07-27 | Ckd Corp | Inspection device and PTP packaging machine |
| JP2021156775A (en) * | 2020-03-27 | 2021-10-07 | 日本碍子株式会社 | Inspection method and inspection device for pillar-shaped honeycomb structure |
| JP7145904B2 (en) | 2020-03-27 | 2022-10-03 | 日本碍子株式会社 | Inspection method and inspection apparatus for columnar honeycomb structure |
Also Published As
| Publication number | Publication date |
|---|---|
| JP3461136B2 (en) | 2003-10-27 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN110023742B (en) | Inspection device and PTP packaging machine | |
| JP3929647B2 (en) | Tablet appearance inspection device and PTP packaging machine | |
| US11624711B2 (en) | Method and device for the optical inspection of containers | |
| JP2003215047A (en) | Visual inspection apparatus and ptp packaging machine equipped with the same | |
| JPWO2017029864A1 (en) | Egg inspection device and egg sorting system | |
| JP4173184B2 (en) | PTP package appearance inspection equipment | |
| JP2006133052A (en) | Foreign object inspection method and apparatus | |
| JP2009036522A (en) | Defect inspection device and PTP packaging machine | |
| JP2004257937A (en) | Foreign matter inspection device and inspection method | |
| JP3461136B2 (en) | Tablet visual inspection device and PTP packaging machine | |
| JP4332122B2 (en) | Appearance inspection device and PTP packaging machine | |
| JP3549752B2 (en) | PTP sheet appearance inspection device and PTP packaging machine | |
| JP4173257B2 (en) | Sheet visual inspection device and PTP packaging machine | |
| JP4030716B2 (en) | Tablet appearance inspection device and PTP packaging machine | |
| JP2003216928A (en) | Normal/defective confection deciding system | |
| JP3557081B2 (en) | Appearance inspection method for stamped tablets and appearance inspection device for stamped tablets | |
| JPH0862155A (en) | Object observation device | |
| JPH11287763A (en) | Automatic inspection method of egg, transfer-controlling device of egg suited for it, and automatic inspection device of egg | |
| JPH04216445A (en) | Device for inspecting bottle | |
| JP3761313B2 (en) | Tablet appearance inspection method, tablet appearance inspection device and blister sheet packaging machine | |
| JP3893777B2 (en) | PTP sheet visual inspection device | |
| CN110889842A (en) | Method for detecting looseness of small cigarette pack cigarette label | |
| JP2002310936A (en) | Method and apparatus for visual inspection | |
| JPH0823530B2 (en) | Object observation apparatus and method for inspecting inner wall surface of cylindrical object using the apparatus | |
| JP2004317188A (en) | Appearance inspection device and PTP packaging machine |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20080815 Year of fee payment: 5 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090815 Year of fee payment: 6 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090815 Year of fee payment: 6 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100815 Year of fee payment: 7 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110815 Year of fee payment: 8 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120815 Year of fee payment: 9 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120815 Year of fee payment: 9 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130815 Year of fee payment: 10 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130815 Year of fee payment: 10 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20140815 Year of fee payment: 11 |
|
| LAPS | Cancellation because of no payment of annual fees |