JP3761313B2 - Tablet appearance inspection method, tablet appearance inspection device and blister sheet packaging machine - Google Patents

Tablet appearance inspection method, tablet appearance inspection device and blister sheet packaging machine Download PDF

Info

Publication number
JP3761313B2
JP3761313B2 JP35065097A JP35065097A JP3761313B2 JP 3761313 B2 JP3761313 B2 JP 3761313B2 JP 35065097 A JP35065097 A JP 35065097A JP 35065097 A JP35065097 A JP 35065097A JP 3761313 B2 JP3761313 B2 JP 3761313B2
Authority
JP
Japan
Prior art keywords
tablet
image
gray
value
video level
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP35065097A
Other languages
Japanese (ja)
Other versions
JPH11178894A (en
Inventor
成昭 鈴木
昭夫 青山
幸弘 田口
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
CKD Corp
Original Assignee
CKD Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by CKD Corp filed Critical CKD Corp
Priority to JP35065097A priority Critical patent/JP3761313B2/en
Publication of JPH11178894A publication Critical patent/JPH11178894A/en
Application granted granted Critical
Publication of JP3761313B2 publication Critical patent/JP3761313B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B30PRESSES
    • B30BPRESSES IN GENERAL
    • B30B11/00Presses specially adapted for forming shaped articles from material in particulate or plastic state, e.g. briquetting presses, tabletting presses
    • B30B11/005Control arrangements

Description

【0001】
【発明の属する技術分野】
本発明は、錠剤の外観を検査する錠剤の外観検査方法と外観検査装置に関し、特に、ブリスタシート包装機内でブリスタシートのポケット部に充填された錠剤の外観を検査するとともに、錠剤を撮像した濃淡画像の映像レベルを監視するものに関する。
【0002】
【従来の技術】
従来、錠剤をブリスタシートに包装するブリスタシート包装機内では、錠剤を撮像した濃淡画像から取得される2値画像に基づいて錠剤の外観を検査するとともに、錠剤の外観検査の精度を向上・維持させるために、その濃淡画像の映像レベルを監視している。
【0003】
かかる監視する手段の一つとして、例えば、特開平8−139986号公報に掲載された画像データ入力装置を使用することが考えられる。この画像データ入力装置は、デジタル画像データから所定時間単位での平均濃度を求め、前回求められた平均濃度と今回の平均濃度との差分に応じた補正量によって照明装置の光量を補正することにより、照明装置の光量調整をリアルタイムで自動的に行うことができるものである。これにより、精度の良い画像データを供給することができるので、錠剤の外観検査の精度を向上・維持することに貢献できると言える。
【0004】
【発明が解決しようとする課題】
しかしながら、従来技術の画像データ入力装置においては、デジタル画像データから所定時間単位での平均濃度を求めていることから、デジタル画像データの欠陥等がある場合には、その影響を必ず受けていた。
【0005】
特に、ブリスタシート包装機内でブリスタシートのポケット部に充填された錠剤の外観を検査する場合において、片面のみに捺印がなされているタイプの錠剤を検査するときは、かかる錠剤の片面を揃えながらブリスタシートのポケット部に充填させることは困難であることから、従来技術の画像データ入力装置においては、捺印部分の有無の影響をまともに受けて平均濃度が常に変動することになり、照明装置の光量が本来安定していてもその補正がなされるおそれがある。
【0006】
また、ブリスタシートのシート部に粉が噛み込んだり、錠剤の表面に異物が付着したり、錠剤の表面の一部が欠けていたり、ブリスタシートの一部のポケット部に錠剤が充填されていなかったり、あるいは、ブリスタシートの一部のポケット部に異なる錠剤が充填されている場合など、検査対象の錠剤の外観に異常があると判断されるときにおいても、従来技術の画像データ入力装置においては、それらの影響をまともに受けて平均濃度が変動することになり、同様にして、照明装置の光量が本来安定していてもその補正がなされるおそれがある。
【0007】
さらに、これらの不都合(照明装置の光量が安定している際に補正がなされること)を回避しようと、変動する平均濃度の許容範囲を拡大すれば、逆に、照明装置の光量が不足していてもその補正がなされないおそれがある。
【0008】
そのため、従来技術の画像データ入力装置を使用して、濃淡画像の映像レベルを監視しても、上述した観点からすれば、錠剤の外観検査の精度を向上・維持することに貢献できるとは言えない。
【0009】
そこで、本発明は、上述した問題点を解決するためになされたものであり、検査対象の錠剤の捺印部分や付着異物などの影響を受けることなく、濃淡画像の映像レベルを監視することを実現した錠剤の外観検査方法と錠剤の外観検査装置を提供することを目的とする。
【0010】
【課題を解決するための手段】
この目的を達成するために本発明は以下の特徴を有する。
(1)錠剤を撮像した濃淡画像に基づいて前記錠剤の外観を検査するとともに、前記濃淡画像の濃淡値を映像レベル基準値と比較することによって前記濃淡画像の映像レベルを監視する錠剤の外観検査方法であって、前記映像レベル基準値と比較される前記濃淡画像の濃淡値は、前記錠剤の表面に対応する位置の画素のものであって、光の明るさが一定である照明手段を備えたことを特徴とする。
【0011】
(2)錠剤を撮像した濃淡画像に基づいて前記錠剤の外観を検査するとともに、前記濃淡 画像の濃淡値を映像レベル基準値と比較することによって前記濃淡画像の映像レベルを監視する錠剤の外観検査方法において、前記映像レベル基準値と比較される前記濃淡画像の濃淡値は、前記錠剤の表面に対応する位置の画素のものであって、前記錠剤の表面に対応する位置の画素とは、前記錠剤の表面の捺印と異物に対応する位置のものを除いたものであることを特徴とする。
【0012】
(3)錠剤を撮像した濃淡画像に基づいて前記錠剤の外観を検査するとともに、前記濃淡画像の濃淡値を映像レベル基準値と比較することによって前記濃淡画像の映像レベルを監視する錠剤の外観検査方法において、前記映像レベル基準値と比較される前記濃淡画像の濃淡値は、前記錠剤の表面に対応する位置の画素のものであって、前記映像レベル基準値と比較される前記濃淡画像の濃淡値の画素の位置を、前記濃淡画像から取得される2値画像に基づいて特定し、前記2値画像に表示された錠剤の領域内に連結領域が存在する場合には、前記映像レベル基準値と比較される前記濃淡画像の濃淡値は、前記2値画像の連結領域に対応する位置の画素のものを除いたものであることを特徴とする。
【0013】
(4)錠剤を撮像した濃淡画像に基づいて前記錠剤の外観を検査するとともに、前記濃淡画像の濃淡値を映像レベル基準値と比較することによって前記濃淡画像の映像レベルを監視する錠剤の外観検査方法において、前記映像レベル基準値と比較される前記濃淡画像の濃淡値は、前記錠剤の表面に対応する位置の画素のものであって、前記映像レベル基準値と比較される前記濃淡画像の濃淡値の画素の位置を、前記濃淡画像から取得される2値画像に基づいて特定し、前記2値画像に表示された錠剤の領域内に連結領域が複数存在する場合には、前記連結領域のX座標・Y座標のそれぞれの最大値・最小値に基づいて、前記映像レベル基準値と比較される前記濃淡画像の濃淡値の画素の位置を特定することを特徴とする。
【0014】
(5)錠剤を撮像した濃淡画像に基づいて前記錠剤の外観を検査するとともに、前記濃淡画像の濃淡値を映像レベル基準値と比較することによって前記濃淡画像の映像レベルを監視する錠剤の外観検査方法において、前記映像レベル基準値と比較される前記濃淡画像の濃淡値は、前記錠剤の表面に対応する位置の画素のものであって、前記映像レベル基準値と比較される前記濃淡画像の濃淡値の画素の位置を、前記濃淡画像から取得される2値画像に基づいて特定し、前記2値画像に表示された錠剤の領域内に連結領域が存在しない場合には、前記映像レベル基準値と比較される前記濃淡画像の濃淡値は、前記錠剤の表面の重心に基づいて特定される位置の画素のものであることを特徴とする。
【0015】
(6)(1)に記載する錠剤の外観検査方法において、前記錠剤の表面に対応する位置の画素とは、前記錠剤の表面の捺印と異物に対応する位置のものを除いたものであることを特徴とする。
(7)(1)、(2)、(6)のいずれか一つに記載する錠剤の外観検査方法において、前記映像レベル基準値と比較される前記濃淡画像の濃淡値の画素の位置を、前記濃淡画像から取得される2値画像に基づいて特定することを特徴とする。
(8)(7)に記載する錠剤の外観検査方法において、前記2値画像に表示された錠剤の領域内に連結領域が存在する場合には、前記映像レベル基準値と比較される前記濃淡画像の濃淡値は、前記2値画像の連結領域に対応する位置の画素のものを除いたものであることを特徴とする。
(9)(7)に記載する錠剤の外観検査方法において、前記2値画像に表示された錠剤の領域内に連結領域が複数存在する場合には、前記連結領域のX座標・Y座標のそれぞれの最大値・最小値に基づいて、前記映像レベル基準値と比較される前記濃淡画像の濃淡値の画素の位置を特定することを特徴とする
【0016】
(10)(3)、(4)、(7)、(8)、(9)のいずれか一つに記載する錠剤の外観 検査方法において、前記2値画像に表示された錠剤の領域内に連結領域が存在しない場合には、前記映像レベル基準値と比較される前記濃淡画像の濃淡値は、前記錠剤の表面の重心に基づいて特定される位置の画素のものであることを特徴とする。
(11)(1)乃至(10)のいずれか一つに記載する錠剤の外観検査方法において、
ブリスタシート包装機内で搬送中のブリスタシートのポケット部に充填された錠剤の外観を検査することを特徴とする。
(12)錠剤の外観検査装置において、(1)乃至(11)のいずれか一つに記載する錠剤の外観検査方法を実施することを特徴とする。
(13)ブリスタシート包装機において、(12)に記載する錠剤の外観検査装置を備えたことを特徴とする。
【0017】
このような構成を有する本発明の錠剤の外観検査方法と錠剤の外観検査装置では、錠剤を撮像した濃淡画像に基づいて錠剤の外観を検査するとともに、かかる濃淡画像の濃淡値のうち錠剤の表面に対応する画素のものを映像レベル基準値と比較することによって、その濃淡画像の映像レベルを監視している。このとき、濃淡画像において錠剤の表面に対応する画素の位置を特定する必要があるが、その特定は、例えば、濃淡画像から取得される2値画像に基づいて行われる。
【0018】
そして、錠剤の表面に捺印部分があったり、異物が付着したりすれば、2値画像に表示された錠剤の領域内に連結領域が存在することになる。そこで、2値画像に表示された錠剤の領域内に連結領域が存在すると判断した場合には、2値画像におけるその連結領域の画素の位置を介して、濃淡画像における錠剤の捺印部分や付着異物などの位置を認識する。これにより、濃淡画像に映し出された錠剤の領域内において、かかる連結領域に対応する位置を排除することによって、濃淡画像における錠剤の表面に対応する画素の位置を特定することが可能となる。
【0019】
すなわち、本発明の錠剤の外観検査方法と錠剤の外観検査装置では、濃淡画像の濃淡値のうち錠剤の表面に対応する画素のものを映像レベル基準値と比較することによって、濃淡画像の映像レベルを監視することができるので、検査対象の錠剤の捺印部分や付着異物などの影響を受けることなく、濃淡画像の映像レベルを監視することが実現できる。
【0020】
また、濃淡画像から取得される2値画像の連結領域の画素の位置を介して、濃淡画像における錠剤の捺印部分や付着異物などを認識しているので、濃淡画像において錠剤の表面に対応する画素の位置を確実に特定することができる。
【0021】
また、検査対象の錠剤に複数の捺印部分や付着異物などが存在する場合には、2値画像に表示された錠剤の領域内に連結領域が複数存在することになるが、それらの連結領域のX座標・Y座標のそれぞれの最大値・最小値に基づいて、濃淡画像における錠剤の表面に対応する画素の位置を特定すれば、その処理を高速に行うことができる。
【0022】
また、濃淡画像における錠剤の濃淡値のうち映像データとして最も信頼性の高いものは、濃淡値の差が大きな部分(エッジ)から遠く離れた錠剤の表面の重心及びその周辺に対応する位置の画素の濃淡値であるが、2値画像に表示された錠剤の領域内に連結領域が存在しない場合には、錠剤の表面の重心及びその周辺には捺印部分や付着異物などが存在しないことから、この場合には、濃淡画像における錠剤の表面の重心に基づいて画素の位置を特定することによって、最も信頼性の高い映像データを映像レベル基準値と比較させることができる。
【0023】
また、濃淡画像の映像レベルの異常原因の多くが照明手段の光量の劣化以外のもの(例えば、位置、外光、方向などの照明条件の変化、照明手段の汚れ、カメラのレンズの汚れや絞りのずれなど)にあることから、明るさが一定である照明手段を備えれば、照明手段の明るさを自動的に補正して濃淡画像の映像レベルを正常に戻す場合と異なり、異常原因を本質的に解明することができるので、かかる異常原因を根絶することによって、濃淡画像の映像レベルの異常が発生する確率を大幅に減少させることができる。
【0024】
また、本発明の錠剤の外観検査装置がブリスタシート包装機に備えられること等によって、ブリスタシートのポケット部に充填された錠剤の外観を検査する際においては、ブリスタシート包装機内のブリスタシートは多少その搬送方向に揺れながら移動し、ブリスタシートのポケット部に充填された錠剤の位置も多少ばらつくけれども、映像レベル基準値と比較される濃淡画像の濃淡値として、錠剤の表面に対応する位置の画素のものを使用すれば、ブリスタシートの搬送方向の揺れや錠剤の位置のばらつきの影響を受けることなく、濃淡画像の映像レベルを監視することを実現することができる。
【0025】
【発明の実施の形態】
以下、本発明の実施の形態を図面を参照にして説明する。本実施の形態では、図4に示すように、錠剤の外観検査装置である外観検査装置10をブリスタシート包装機30に装備することよって、ブリスタシート包装機30内で錠剤の外観検査方法を実施している。
【0026】
かかる錠剤の外観検査方法は、錠剤を撮像した濃淡画像から取得される2値画像に基づいて錠剤の外観を検査するとともに、かかる濃淡画像の濃淡値のうち錠剤の表面に対応する画素のものを映像レベル基準値と比較することによって、その濃淡画像の映像レベルを監視するものである。
【0027】
まず、錠剤の外観検査方法が実施されるブリスタシート包装機30について、簡単に説明する。ブリスタシート包装機30は、錠剤などをブリスタシートに自動的に包装するものである。具体的には、まず、PP、PVCなどの容器フィルム40を、フィルム送りロール33とテンションロール31、32で、加熱板50と成形板51に送り込み、錠剤などが充填されるポケット部44(図5参照)を容器フィルム40に成形する。
【0028】
そして、容器フィルム40にポケット部44(図5参照)が成形されたもの41が、錠剤投入シャッター52の下にまで搬送されてくると、錠剤投入シャッター52が各ポケット部44(図5参照)に錠剤1(図5参照)を自動的に充填する。さらに、各ポケット部44(図5参照)に錠剤1が充填された容器フィルム41の上に、アルミ製の蓋フィルム42をテンションロール34、35を介して送り込み、一対のシールロール36で熱圧着させる。
【0029】
これによって、錠剤1が各ポケット部44に充填された(図5参照)、フィルム状のブリスタシート43が製造される。かかるフィルム状のブリスタシート43はシート状に裁断された後に、図示しない不良シート排出機構やブリスタシート集積機構などへ順に送られる。
【0030】
次に、錠剤の外観検査方法を実施する外観検査装置10について、図6のブロック図を用いて説明する。外観検査装置10は、A/D変換器13、コンパレータ14、画像メモリ16、シェーディング補正テーブル18、CPU20、判定用メモリ22、入出力インターフェース23、カメラタイミング制御手段26、グラフィックメモリ27、蛍光灯一定光量制御手段28などから構成される。
【0031】
A/D変換器13は、CCDカメラ11で撮像した1次元の濃淡画像を、アナログ信号からデジタル信号に変換するものである。ここで、CCDカメラ11について説明すると、図5に示すように、照明手段である蛍光灯12の光9でブリスタシート43を一様に照らし、搬送中のブリスタシート43をその幅方向に1次元撮像すること繰り返して行うものである。そのため、ここでは、ブリスタシート43のシート部45、その幅方向に1列に成形された5個のポケット部44及び、各ポケット部44に充填された錠剤1を同時に撮像することができる。
【0032】
このとき、固定ロール37に密着した状態のブリスタシート43を撮像しているので、フィルム状のブリスタシート43の搬送方向に対する垂直方向の揺れを考慮する必要はない。尚、CCDカメラ11と蛍光灯12は、図4と図6では、ブリスタシート包装機30内に描かれているが、それぞれ外観検査装置10を構成するものの一つである。
【0033】
図に戻り、コンパレータ14は、デジタル信号に置き換えられた1次元の濃淡画像を、しきい値で2値化処理するものである。かかる1次元の濃淡画像はCCDカメラ11で撮像されたものであるから、CCDカメラ11の画素ごとに2値化処理する。
【0034】
そして、コンパレータ14で使用するしきい値は、明るいほど濃淡値が大きくなる条件においては、錠剤1の表面の濃淡値よりも小さく、かつ、ブリスタシート43のシート部45や錠剤1の表面の付着異物や捺印部分などのそれぞれの濃淡値よりも大きい値に設定される。他方、明るいほど濃淡値が小さくなる条件においては、錠剤1の表面の濃淡値よりも大きく、かつ、ブリスタシート43のシート部45や錠剤1の表面の付着異物や捺印部分などのそれぞれの濃淡値よりも小さい値に設定される。
【0035】
画像メモリ16は、コンパレータ14で順次に2値化処理された1次元の2値画像を、同期させながら2次元の2値画像(以下、単に「2値画像」という)として記憶するものである。ここで記憶された2値画像を画像処理することによって、錠剤1の外観検査が行われる。シェーディング補正テーブル18は、コンパレータ14で使用するしきい値などが記憶されるものである。
【0036】
CPU20は、後述する図1のフローチャートが示す処理などを実行するものであり、判定用メモリ22、グラフィックメモリ27などを使用して実行する。判定用メモリ22は、映像レベル基準値Qなどが記憶されるメモリである。また、グラフィックメモリ27は、CCDカメラ11で繰り返し撮像された1次元の濃淡画像を、同期させながら2次元の濃淡画像(以下、単に「濃淡画像」という)として記憶するメモリである。
【0037】
従って、グラフィックメモリ27に記憶された濃淡画像と、上述した画像メモリ16上の2値画像は共に、CCDカメラ11で繰り返し撮像された同一の1次元の濃淡画像から作成されているので、上述した画像メモリ16上の2値画像は、グラフィックメモリ27上の濃淡画像を原画として取得したものと言える。これにより、グラフィックメモリ27上の濃淡画像と、上述した画像メモリ16上の2値画像は、位置的に相関関係にある。
【0038】
尚、ここでは、説明の便宜上、グラフィックメモリ27上の濃淡画像と、上述した画像メモリ16上の2値画像は共に、同じ大きさの画像として記憶され、それぞれのX座標・Y座標も一致するものとする。
【0039】
また、ここでは、グラフィックメモリ27上の濃淡画像(上述した画像メモリ16上の2値画像についても同様である)は、図7に示すように、ブリスタシート43の幅方向の2列のポケット部44に充填された合計10個の錠剤1を、1シート分のブリスタシート43として、一つの濃淡画像70で記憶される。尚、図7の濃淡画像70は、横向きに図示されている。
【0040】
さらに、錠剤1はその片面のみに「イロハ」という捺印部分があるが、ブリスタシート包装機30においては、ブリスタシート43のポケット部44に錠剤1の片面を揃えながら充填することは困難であるので、一つの濃淡画像70に映し出された10個の錠剤1には、捺印部分である「イロハ」が濃度差で明確に表示されたものと、捺印部分である「イロハ」が表示されないものがある。
【0041】
また、ブリスタシート包装機30においては、ブリスタシート43のポケット部44に錠剤1の捺印部分である「イロハ」の方向を揃えながら充填することも困難であるので、濃淡画像70において濃度差で明確に表示された捺印部分の「イロハ」は、あらゆる方向を向いている。
【0042】
入出力インターフェース23は、ブリスタシート包装機30に検査データ及び制御信号などを送信又は受信するためのものである。かかる検査データ及び制御信号などに基づいて、例えば、ブリスタシート包装機30の不良シート排出機構などを制御することができる。また、モニタ25に表示データを送信するためのものでもあり、グラフィックメモリ27上の濃淡画像70、画像メモリ16上の2値画像、外観検査結果などをモニタ25に表示させることができる。尚、モニタ25は、図6では、外観検査装置10外に描かれているが、外観検査装置10を構成するものの一つである。
【0043】
カメラタイミング制御手段26は、CCDカメラ11が撮像する1次元の濃淡画像を、A/D変換器13に取り込むタイミングを制御するものである。かかるタイミングは、ブリスタシート包装機30に設けられたエンコーダ(図示せず)からの信号に基づいて行われる。これにより、CCDカメラ11は繰り返して1次元の濃淡画像を撮像することができる。
【0044】
蛍光灯一定光量制御手段28は、蛍光灯12の光9の明るさを一定に制御するものである。具体的には、蛍光灯12の光量や温度を計測するセンサー(図示せず)を蛍光灯12付近に設置し、ここで検出される光量と温度から、蛍光灯12の光量を一定に保つように、コントローラー(図示せず)から高周波点灯装置(図示せず)又は、蛍光灯12に設置されているファンモーター(図示せず)やヒーター(図示せず)を制御することにより行う。
【0045】
次に、濃淡画像の監視手順を、図1のフローチャート図に基づいて説明する。かかる濃淡画像の監視は、画像メモリ16上の2値画像を介して、グラフィックメモリ27上の濃淡画像70に対して行われるものである。また、画像メモリ16上の2値画像を処理して行われれる錠剤の外観検査と同時に実施されるものである。
【0046】
先ず、ステップ(以下、「S」と略記する)1により、画像メモリ16上の2値画像において、所定の錠剤1の領域内の連結領域Aに対するラベリング処理を行う。ここでは、説明の便宜上、所定の錠剤1とは、画像メモリ16上の2値画像の左上隅に表示されたものとする。また、かかる錠剤1の領域内には合計n個の連結領域Aが存在するものとする。
【0047】
次のS2では、図2に示すテーブル80が判定用メモリ22に作成される。すなわち、番号付けされた合計n個の連結領域Aの各々について、X座標の最小値XMIN、X座標の最大値XMAX、Y座標の最小値YMIN、Y座標の最大値YMAXがそれぞれ求められ記憶される。さらに、各X座標の最小値XMINのうち最小のものX1、各X座標の最大値XMAXのうち最大のものX2、各Y座標の最小値YMINのうち最小のものY1、各Y座標の最大値YMAXのうち最大のものY2がそれぞれ求められ記憶される。
【0048】
そして、S3において、所定の錠剤1の領域内に連結領域Aが存在するか否かが判断される。ここでは、所定の錠剤1の領域内に連結領域Aがn個存在することから、所定の錠剤1の領域内に連結領域Aが存在すると判断され(S3:Yes)、S4へ進む。
【0049】
次のS4では、画像メモリ16上の2値画像とは位置的に相関関係にあるグラフィックメモリ27上の濃淡画像70において、画像メモリ16上の2値画像のX座標・Y座標が(X2、(Y1+Y2)/2)である画素に対応する位置を特定し、その位置の画素の濃淡値を映像レベル基準値Qと比較されるもの(以下、「サンプリング映像データP」という)とする。
【0050】
ここでは、図3に示すように、グラフィックメモリ27上の濃淡画像70の左上隅に映し出された錠剤1内において(図7参照)、X座標・Y座標が(X2、(Y1+Y2)/2)の位置T(×印)にある画素の濃淡値が、サンプリング映像データPとされる。
【0051】
このとき、かかる錠剤1の表面の付着異物や捺印部分である「イロハ」などは、画像メモリ16上の2値画像においては、連結領域Aの一つとしてそれぞれ認識されていることから、X座標のX2は、かかる錠剤1の表面の付着異物や捺印部分である「イロハ」などのX座標のうち最大の値であることを意味する。同様に、Y座標のY1は、かかる錠剤1の表面の付着異物や捺印部分である「イロハ」などのY座標のうち最小の値であることを意味し、Y座標のY2は、かかる錠剤1の表面の付着異物や捺印部分である「イロハ」などのY座標のうち最大の値であることを意味する。
【0052】
従って、グラフィックメモリ27上の濃淡画像70の左上隅に映し出された錠剤1内において(図7参照)、X座標・Y座標が(X2、(Y1+Y2)/2)の位置T(×印)に、かかる錠剤1の表面の付着異物や捺印部分である「イロハ」などが存在する可能性は限りなく小さい。すなわち、図3に示すように、X座標・Y座標が(X2、(Y1+Y2)/2)の位置T(×印)には、かかる錠剤1の表面が映し出されていると言える。これにより、グラフィックメモリ27上の濃淡画像70において、錠剤1の表面に対応する画素の位置が特定される。
【0053】
一方、所定の錠剤1の領域内に連結領域Aが存在しないと判断された場合には(S3:No)、S5へ進む。次のS5では、画像メモリ16上の2値画像とは位置的に相関関係にあるグラフィックメモリ27上の濃淡画像において、画像メモリ16上の2値画像の左上隅の錠剤1の重心に対応する位置を特定し、その位置の画素の濃淡値をサンプリング映像データPとする。
【0054】
この場合には、画像メモリ16上の2値画像において、所定の錠剤1の領域内に連結領域Aが存在しないのであるから、かかる錠剤1の表面には付着異物や捺印部分である「イロハ」などは存在しない。従って、グラフィックメモリ27上の濃淡画像の左上隅に映し出された錠剤1内において、かかる錠剤1の重心には、その表面が映し出されていると言える。
【0055】
S4又はS5において、サンプリング映像データPが決定された後は、S6において、サンプリング映像データPと映像レベル基準値Qとの差Rを求める。そして、次のS7では、かかる差Rの絶対値が許容差H内にあるか否かを判断する。尚、許容差Hは予め設定されており、判定用メモリ22に記憶されている。
【0056】
かかる差Rの絶対値が許容差H内にあると判断されれば(S7:Yes)、グラフィックメモリ27上の濃淡画像は最適な映像レベルにあるとして、図1の濃淡画像の監視手順を終了する。一方、かかる差Rの絶対値が許容差H内にないと判断されれば(S7:No)、グラフィックメモリ27上の濃淡画像は最適な映像レベルにないとして、S8において、ブリスタシート包装機30に警告信号を出力した後に、図1の濃淡画像の監視手順を終了する。
【0057】
そして、このような図1の濃淡画像の監視手順は、1シート分のブリスタシート43がグラフィックメモリ27に一つの濃淡画像として新たに記憶される度に行われる。
【0058】
以上詳細に説明したように、本実施の形態の錠剤の外観検査方法と錠剤の外観検査装置30では、錠剤1を撮像したグラフィクメモリ27上の濃淡画像に基づいて錠剤1の外観を検査するとともに、かかる濃淡画像の濃淡値のうち錠剤1の表面に対応する画素のものを映像レベル基準値Qと比較することによって(S7)、その濃淡画像の映像レベルを監視している(S8)。このとき、グラフィクメモリ27上の濃淡画像において錠剤1の表面に対応する画素の位置を特定する必要があるが、その特定は、グラフィクメモリ27上の濃淡画像から取得される画像メモリ16上の2値画像に基づいて行われる(S4、S5)。
【0059】
そして、グラフィクメモリ27上の濃淡画像70の左上隅に映し出された錠剤1にように(図7)、かかる錠剤1の表面に捺印部分「イロハ」があったり、異物が付着したりすれば、画像メモリ16上の2値画像の左上隅に表示された錠剤1の領域内には連結領域Aが存在することになる。そこで、画像メモリ16上の2値画像の左上隅に表示された錠剤1の領域内に連結領域Aが存在すると判断した場合には(S3:Yes)、画像メモリ16上の2値画像におけるその連結領域Aの画素の位置を介して、グラフィクメモリ27上の濃淡画像70の左上隅に映し出された錠剤1の捺印部分「イロハ」や付着異物などの位置を認識する。
【0060】
これにより、グラフィクメモリ27上の濃淡画像70の左上隅に映し出された錠剤1の領域内において、画像メモリ16上の2値画像におけるその連結領域Aに対応する位置を排除することによって、グラフィクメモリ27上の濃淡画像70における錠剤1の表面に対応する画素の位置を特定することが可能となる(S4)。
【0061】
すなわち、本実施の形態の錠剤の外観検査方法と錠剤の外観検査装置10では、グラフィクメモリ27上の濃淡画像の濃淡値のうち錠剤1の表面に対応する画素のものを映像レベル基準値Qと比較することによって(S4〜S7)、グラフィクメモリ27上の濃淡画像の映像レベルを監視することができるので、検査対象の錠剤1の捺印部分「イロハ」や付着異物などの影響を受けることなく、グラフィクメモリ27上の濃淡画像の映像レベルを監視することが実現できる。
【0062】
また、グラフィクメモリ27上の濃淡画像から取得される画像メモリ16上の2値画像の連結領域Aの画素の位置を介して(S4)、グラフィクメモリ27上の濃淡画像における錠剤1の捺印部分「イロハ」や付着異物などを認識しているので、グラフィクメモリ27上の濃淡画像において錠剤1の表面に対応する画素の位置を確実に特定することができる。
【0063】
また、グラフィクメモリ27上の濃淡画像70の左上隅に映し出された錠剤1のように、複数の捺印部分「イ」「ロ」「ハ(2つの部分に分かれる)」や付着異物などが存在する場合には(S3:Yes)、画像メモリ16上の2値画像の左上隅に表示された錠剤1の領域内に連結領域Aが複数存在することになるが、それらの連結領域AのX座標・Y座標のそれぞれの最大値・最小値であるXMIN、XMAX、YMIN、YMAXに基づいて、グラフィクメモリ27上の濃淡画像70の左上隅に映し出された錠剤1の表面に対応する画素の位置を特定しているので(S4)、その処理を高速に行うことができる。
【0064】
また、グラフィクメモリ27上の濃淡画像における錠剤1の濃淡値のうち映像データとして最も信頼性の高いものは、濃淡値の差が大きな部分(エッジ)である錠剤1の輪郭から遠く離れた錠剤1の表面の重心及びその周辺に対応する位置の画素の濃淡値であるが、画像メモリ16上の2値画像の左上隅に表示された錠剤1の領域内に連結領域Aが存在しない場合には(S3:No)、かかる錠剤1の表面の重心及びその周辺には捺印部分「イロハ」や付着異物などが存在しないことから、この場合には、グラフィクメモリ27上の濃淡画像の左上隅に映し出された錠剤1の表面の重心に基づいて画素の位置を特定することによって(S5)、最も信頼性の高い映像データを映像レベル基準値Qと比較させることができる。
【0065】
また、グラフィクメモリ27上の濃淡画像の映像レベルの異常原因の多くが蛍光灯12の光量の劣化以外のもの(例えば、位置、外光、方向などの照明条件の変化、蛍光灯12の汚れ、CCDカメラ11のレンズの汚れや絞りのずれなど)にあることから、蛍光灯一定光量制御手段28によって明るさが一定となる蛍光灯12を備えることにより、蛍光灯12の明るさを自動的に補正してグラフィクメモリ27上の濃淡画像の映像レベルを正常に戻す場合とは異なって、異常原因を本質的に解明することができるので、かかる異常原因を根絶することによって、グラフィクメモリ27上の濃淡画像の映像レベルの異常が発生する確率を大幅に減少させることができる。
【0066】
また、本実施の形態の錠剤の外観検査装置10がブリスタシート包装機30に備えられることによって、ブリスタシート43のポケット部44に充填された錠剤1の外観を検査する際においては、ブリスタシート包装機30内のブリスタシート43は多少その搬送方向に揺れながら移動し、ブリスタシート43のポケット部44に充填された錠剤1の位置も多少ばらつくけれども、映像レベル基準値Qと比較されるグラフィクメモリ27上の濃淡画像の濃淡値として、錠剤1の表面に対応する位置の画素のものを使用しているので(S4、S5)、ブリスタシート43の搬送方向の揺れや錠剤1の位置のばらつきの影響を受けることなく、グラフィクメモリ27上の濃淡画像の映像レベルを監視することを実現することができる。
【0067】
尚、本発明は上記実施の形態に限定されるものでなく、その趣旨を逸脱しない範囲で様々な変更が可能である。
例えば、本実施の形態の濃淡画像の監視手順において、所定の錠剤1として、画像メモリ16上の2値画像の左上隅に表示されたもの(グラフィクメモリ27上の濃淡画像の左上隅に映し出されたもの)を使用しているが、それ以外のものを使用しもよい。
【0068】
また、所定の錠剤1として、一カ所のものを使用しているが、数カ所のものを使用してもよい。このとき、例えば、画像メモリ16上の2値画像の左上隅及び右下隅に表示されたもの(グラフィクメモリ27上の濃淡画像の左上隅及び右下隅に映し出されたもの)を使用すれば、画像メモリ16上の2値画像に表示された全てのもの(グラフィクメモリ27上の濃淡画像に映し出された全てのもの)を使用したときと同等の効果が簡単に得ることができる。また、画像メモリ16上の2値画像の左下隅及び右上隅に表示されたもの(グラフィクメモリ27上の濃淡画像の左下隅及び右上隅に映し出されたもの)を使用しても、同様である。
【0069】
また、グラフィクメモリ27上の濃淡画像(画像メモリ16上の2値画像)には、1シート分のブリスタシート43しか映し出されないが、数シート分のブリスタシート43が映し出されるときは、所定の錠剤1として、各シート上の錠剤を使用すると良い。
【0070】
また、本実施の形態の濃淡画像の監視手順においては、サンプリング映像データPと映像レベル基準値Qの差Rの絶対値が許容差H内にないと判断されれば(S7:No)、すぐに、ブリスタシート包装機30に警告信号が出力されるが(S8)、一時的な外乱などの影響をなくすために、かかる差Rの絶対値が許容差H内にないと判断されるケースが所定回数連続して起きたときに、はじめて、ブリスタシート包装機30に警告信号を出力させてもよい。尚、このときの所定回数は、判定用メモリ22に予め記憶させておく。
【0071】
また、本実施の形態の濃淡画像の監視手順においては、サンプリング映像データPと映像レベル基準値Qの差Rの絶対値を許容差Hと比較させており(S7)、サンプリング映像データPの許容範囲は、映像レベル基準値Qを基準にして正側・負側ともに許容差Hの半分の大きさの幅を有しているが、錠剤の外観検査装置10の固有の特性を鑑みて、かかる正側・負側の幅の大きさを異にしてもよい。尚、このときの正側・負側の幅の大きさも、判定用メモリ22に予め記憶させておく。
【0072】
また、本実施の形態の濃淡画像の監視手順においては、S1でラベリング処理された全ての連結領域Aを対象として、所定の錠剤1の領域内に連結領域Aが存在するか否かが判断されるが(S3)、連結領域Aの中にはノイズなどから発生した微小なものが含まれるもこともある。
【0073】
そこで、S2でテーブル80を作成する際には、番号付けされた合計n個の連結領域Aの各々について、それぞれの面積Bをも求め(図2参照)、面積Bが所定面積に満たない連結領域Aについては、画像メモリ16上の2値画像や判定用メモリ22のテーブル80から消去し、その後において、S3に進むようにしてもよい。このようにすれば、ノイズなどから発生した微小な連結領域Aを、錠剤1の捺印部分「イロハ」や付着異物などと誤って認識することはない。尚、このときの所定面積も、判定用メモリ22に予め記憶させておく。
【0074】
また、本実施の形態の濃淡画像の監視手順においては、映像レベル基準値Qは判定用メモリ22に予め記憶させたものを使用しているが、蛍光灯12の光量を計測するセンサーが示した値を基にして算出したものを使用してもよい。また、グラフィクメモリ27上のある濃淡画像を基にして決定したものを使用してもよい。さらに、濃淡画像の監視手順の一つのステップとして、映像レベル基準値Qを自動的に決定させてもよい。
【0075】
また、本実施の形態の濃淡画像の監視手順においては、グラフィックメモリ27上の濃淡画像70において、錠剤1の表面に対応する画素の位置を特定するX座標・Y座標として、(X2、(Y1+Y2)/2)を使用しているが、錠剤1の表面に対応する画素の位置を特定できるX座標・Y座標であれば、どんなものでもよい。例えば、X1、X2、Y1、Y2を使用した関係式で表したX座標・Y座標のほとんどの位置には、かかる錠剤1の表面が映し出されていると言える。尚、X座標のX1は、かかる錠剤1の表面の付着異物や捺印部分である「イロハ」などのX座標のうち最小の値であることを意味する。
【0076】
また、本実施の形態の濃淡画像の監視手順においては、画像メモリ16上の2値画像の左上隅に表示された錠剤1の領域内に連結領域Aが存在しない場合には(S3:No)、グラフィクメモリ27上の濃淡画像の左上隅に映し出された錠剤1の表面の重心に対応する画素の位置を特定することによって(S5)、最も信頼性の高い映像データを映像レベル基準値Pと比較させることができたが、かかる錠剤1の表面の重心の周辺など他の画素の位置の濃淡値も、最も信頼性の高い映像データとして扱うことができる。
【0077】
【発明の効果】
本発明の錠剤の外観検査方法と錠剤の外観検査装置では、濃淡画像の濃淡値のうち錠剤の表面に対応する画素のものを映像レベル基準値と比較することによって、濃淡画像の映像レベルを監視することができるので、検査対象の錠剤の捺印部分や付着異物などの影響を受けることなく、濃淡画像の映像レベルを監視することが実現できる。
【0078】
また、濃淡画像から取得される2値画像の連結領域の画素の位置を介して、濃淡画像における錠剤の捺印部分や付着異物などを認識しているので、濃淡画像において錠剤の表面に対応する画素の位置を確実に特定することができる。
【0079】
また、検査対象の錠剤に複数の捺印部分や付着異物などが存在する場合には、2値画像に表示された錠剤の領域内に連結領域が複数存在することになるが、それらの連結領域のX座標・Y座標のそれぞれの最大値・最小値に基づいて、濃淡画像における錠剤の表面に対応する画素の位置を特定すれば、その処理を高速に行うことができる。
【0080】
また、濃淡画像における錠剤の濃淡値のうち映像データとして最も信頼性の高いものは、濃淡値の差が大きな部分(エッジ)から遠く離れた錠剤の表面の重心及びその周辺に対応する位置の画素の濃淡値であるが、2値画像に表示された錠剤の領域内に連結領域が存在しない場合には、錠剤の表面の重心及びその周辺には捺印部分や付着異物などが存在しないことから、この場合には、濃淡画像における錠剤の表面の重心に基づいて画素の位置を特定することによって、最も信頼性の高い映像データを映像レベル基準値と比較させることができる。
【0081】
また、濃淡画像の映像レベルの異常原因の多くが照明手段の光量の劣化以外のもの(例えば、位置、外光、方向などの照明条件の変化、照明手段の汚れ、カメラのレンズの汚れや絞りのずれなど)にあることから、明るさが一定である照明手段を備えれば、照明手段の明るさを自動的に補正して濃淡画像の映像レベルを正常に戻す場合と異なり、異常原因を本質的に解明することができるので、かかる異常原因を根絶することによって、濃淡画像の映像レベルの異常が発生する確率を大幅に減少させることができる。
【0082】
また、本発明の錠剤の外観検査装置がブリスタシート包装機に備えられること等によって、ブリスタシートのポケット部に充填された錠剤の外観を検査する際においては、ブリスタシート包装機内のブリスタシートは多少その搬送方向に揺れながら移動し、ブリスタシートのポケット部に充填された錠剤の位置も多少ばらつくけれども、映像レベル基準値と比較される濃淡画像の濃淡値として、錠剤の表面に対応する位置の画素のものを使用すれば、ブリスタシートの搬送方向の揺れや錠剤の位置のばらつきの影響を受けることなく、濃淡画像の映像レベルを監視することを実現することができる。
【図面の簡単な説明】
【図1】 本発明の錠剤の外観検査方法において、濃淡画像の監視手順を示したフローチャート図である。
【図2】 判定用メモリに作成されるテーブルの内容を示した図である。
【図3】 グラフィックメモリ上の濃淡画像に映し出された所定の錠剤内において、かかる錠剤の表面の付着異物や捺印部分などと、X座標・Y座標が(X2、(Y1+Y2)/2)である位置との関係を示した図である。
【図4】 本発明の錠剤の外観検査方法の全体構成を示すブロック図である。
【図5】 ブリスタシート包装機の一部を示した斜視図であり、搬送中のブリスタシートのポケット部に充填された錠剤の外観を撮像する部分を示す図である。
【図6】 本発明の錠剤の外観検査方法の機能構成を示すブロック図である。
【図7】 グラフィックメモリに記憶される一つの濃淡画像の一例を示した図である。
【符号の説明】
1 錠剤
10 錠剤の外観検査装置
12 蛍光灯
28 蛍光灯一定光量制御手段
30 ブリスタシート包装機
43 ブリスタシート
44 ブリスタシートのポケット部
70 濃淡画像
A 連結領域
Q 映像レベル基準値
XMIN 連結領域のX座標の最小値
XMAX 連結領域のX座標の最大値
YMIN 連結領域のY座標の最小値
YMAX 連結領域のY座標の最大値
[0001]
BACKGROUND OF THE INVENTION
  The present invention relates to a tablet appearance inspection method and an appearance inspection apparatus for inspecting the appearance of a tablet, and in particular, to inspect the appearance of a tablet filled in a pocket portion of a blister sheet in a blister sheet packaging machine, and to measure the density of a tablet. The present invention relates to monitoring the video level of an image.
[0002]
[Prior art]
  Conventionally, in a blister sheet packaging machine for packaging tablets into blister sheets, the appearance of the tablets is inspected based on a binary image acquired from a grayscale image obtained by imaging the tablets, and the accuracy of the appearance inspection of the tablets is improved and maintained. Therefore, the video level of the grayscale image is monitored.
[0003]
  As one of such monitoring means, for example, it is conceivable to use an image data input device described in JP-A-8-139986. This image data input device obtains an average density in predetermined time units from digital image data, and corrects the light quantity of the lighting device by a correction amount according to the difference between the average density obtained last time and the current average density. The light quantity adjustment of the lighting device can be automatically performed in real time. As a result, it is possible to supply accurate image data, which can contribute to improving and maintaining the accuracy of the appearance inspection of tablets.
[0004]
[Problems to be solved by the invention]
  However, in the conventional image data input device, since the average density in a predetermined time unit is obtained from the digital image data, if there is a defect or the like of the digital image data, it is always affected.
[0005]
  In particular, when inspecting the appearance of a tablet filled in a pocket portion of a blister sheet in a blister sheet packaging machine, when inspecting a type of tablet in which only one side is marked, the blister while aligning one side of the tablet. Since it is difficult to fill the pocket portion of the sheet, the average density always fluctuates due to the presence or absence of the stamped portion in the image data input device of the prior art, and the light quantity of the illumination device There is a risk that the correction will be made even if is inherently stable.
[0006]
  In addition, powder is caught in the sheet part of the blister sheet, foreign matter adheres to the surface of the tablet, part of the surface of the tablet is missing, or part of the pocket part of the blister sheet is not filled with the tablet. Even when it is determined that there is an abnormality in the appearance of the tablet to be inspected, such as when some of the pockets of the blister sheet are filled with different tablets, the conventional image data input device As a result, the average density fluctuates under the influence, and similarly, there is a possibility that the correction is made even if the light quantity of the illumination device is inherently stable.
[0007]
  Furthermore, if the permissible range of the fluctuating average density is expanded to avoid these inconveniences (correction is made when the light intensity of the illumination device is stable), the light intensity of the illumination device is insufficient. However, the correction may not be made.
[0008]
  Therefore, even if the image level of the grayscale image is monitored using the image data input device of the prior art, it can be said that it can contribute to improving and maintaining the accuracy of the appearance inspection of the tablet from the above viewpoint. Absent.
[0009]
  Therefore, the present invention has been made to solve the above-described problems, and has realized that the image level of a grayscale image can be monitored without being affected by the stamped portion of the tablet to be inspected or adhering foreign matter. An object of the present invention is to provide a tablet appearance inspection method and a tablet appearance inspection apparatus.
[0010]
[Means for Solving the Problems]
  to this endThe present invention has the following features.
(1)A tablet appearance inspection method for inspecting the appearance of the tablet based on a gray image obtained by imaging a tablet, and monitoring the video level of the gray image by comparing the gray value of the gray image with a video level reference value. The gray value of the gray image to be compared with the video level reference value is that of a pixel at a position corresponding to the surface of the tablet.And equipped with lighting means with constant light brightnessIt is characterized by.
[0011]
(2) Inspecting the appearance of the tablet based on the gray image obtained by imaging the tablet, In the tablet appearance inspection method for monitoring the video level of the gray image by comparing the gray value of the image with a video level reference value, the gray value of the gray image compared with the video level reference value is A pixel at a position corresponding to the surface,The pixel at the position corresponding to the surface of the tablet is a pixel excluding the mark on the surface of the tablet and the position corresponding to the foreign matter.
[0012]
(3) Inspecting the appearance of the tablet based on a gray image obtained by imaging the tablet, and monitoring the video level of the gray image by comparing the gray value of the gray image with a video level reference value In the method, the gray value of the gray image to be compared with the video level reference value is that of a pixel at a position corresponding to the surface of the tablet,The position of the pixel of the gray value of the gray image to be compared with the video level reference value is specified based on the binary image acquired from the gray imageIf there is a connected area in the tablet area displayed in the binary image, the gray value of the gray image compared with the video level reference value corresponds to the connected area of the binary image. Excluding the pixel at the position to beIt is characterized by.
[0013]
(4) Inspecting the appearance of the tablet based on a gray image obtained by imaging the tablet, and monitoring the video level of the gray image by comparing the gray value of the gray image with a video level reference value In the method, the gray value of the gray image to be compared with the video level reference value is that of a pixel at a position corresponding to the surface of the tablet, and the gray value of the gray image to be compared with the video level reference value. When the position of the pixel of the value is specified based on the binary image acquired from the grayscale image, and there are a plurality of connected regions in the tablet region displayed in the binary image, Specifying the position of the pixel of the gray value of the gray image to be compared with the video level reference value based on the maximum value and the minimum value of the X coordinate and the Y coordinate, respectively.It is characterized by.
[0014]
(5) Inspecting the appearance of the tablet based on the gray image obtained by imaging the tablet, and monitoring the video level of the gray image by comparing the gray value of the gray image with a video level reference value In the method, the gray value of the gray image to be compared with the video level reference value is that of a pixel at a position corresponding to the surface of the tablet, and the gray value of the gray image to be compared with the video level reference value. If the position of the pixel of the value is specified based on the binary image acquired from the grayscale image, and there is no connected region in the tablet region displayed in the binary image, the video level reference value The gray value of the gray image to be compared with is that of the pixel at the position specified based on the center of gravity of the surface of the tabletIt is characterized by.
[0015]
(6) In the tablet appearance inspection method described in (1), the pixel at the position corresponding to the surface of the tablet excludes the mark on the surface of the tablet and the position corresponding to the foreign matter.It is characterized by.
(7) In the tablet appearance inspection method according to any one of (1), (2), and (6), the position of the pixel of the gray value of the gray image that is compared with the video level reference value, It is specified based on a binary image acquired from the grayscale image.
(8) In the tablet appearance inspection method described in (7), when there is a connected region in the region of the tablet displayed in the binary image, the grayscale image compared with the video level reference value The gray value is a value obtained by excluding a pixel at a position corresponding to the connected area of the binary image.
(9) In the tablet appearance inspection method described in (7), when there are a plurality of connected regions in the region of the tablet displayed in the binary image, each of the X coordinate and the Y coordinate of the connected region The position of the pixel of the gray value of the gray image to be compared with the video level reference value is specified based on the maximum value / minimum value of.
[0016]
(10) Appearance of the tablet according to any one of (3), (4), (7), (8), (9) In the inspection method, when there is no connected area in the tablet area displayed in the binary image, the density value of the density image compared with the video level reference value is set at the center of gravity of the surface of the tablet. It is a pixel of the position specified based on it.
(11) In the appearance inspection method for tablets described in any one of (1) to (10),
It is characterized by inspecting the appearance of the tablet filled in the pocket portion of the blister sheet being conveyed in the blister sheet packaging machine.
(12) In the tablet appearance inspection apparatus, the tablet appearance inspection method described in any one of (1) to (11) is performed.
(13) The blister sheet packaging machine includes the tablet appearance inspection apparatus described in (12).
[0017]
  In the tablet appearance inspection method and the tablet appearance inspection apparatus of the present invention having such a configuration, the appearance of the tablet is inspected based on the gray image obtained by imaging the tablet, and the surface of the tablet among the gray values of the gray image. The video level of the grayscale image is monitored by comparing the pixel corresponding to 1 with the video level reference value. At this time, it is necessary to specify the position of the pixel corresponding to the surface of the tablet in the grayscale image, and the specification is performed based on a binary image acquired from the grayscale image, for example.
[0018]
  Then, if there is a stamped portion on the surface of the tablet or foreign matter adheres, a connected region exists in the region of the tablet displayed in the binary image. Therefore, if it is determined that a connected area exists within the tablet area displayed in the binary image, the tablet marking portion or attached foreign matter in the grayscale image is determined via the position of the pixel in the connected area in the binary image. Recognize the position. Thereby, it is possible to specify the position of the pixel corresponding to the surface of the tablet in the grayscale image by excluding the position corresponding to the connected area in the tablet area displayed in the grayscale image.
[0019]
  That is, in the tablet appearance inspection method and tablet appearance inspection apparatus of the present invention, the image level of the grayscale image is compared by comparing the pixel corresponding to the surface of the tablet among the grayscale values of the grayscale image with the video level reference value. Therefore, it is possible to monitor the video level of the grayscale image without being affected by the stamped portion of the tablet to be inspected or the adhered foreign matter.
[0020]
  Further, since the part of the tablet in the grayscale image, the adhered foreign matter, and the like are recognized via the position of the pixel in the connection region of the binary image acquired from the grayscale image, the pixel corresponding to the surface of the tablet in the grayscale image. Can be reliably identified.
[0021]
  In addition, when there are a plurality of stamped portions or adhered foreign substances on the tablet to be inspected, there are a plurality of connected areas in the tablet area displayed in the binary image. If the position of the pixel corresponding to the surface of the tablet in the grayscale image is specified based on the maximum value / minimum value of the X coordinate / Y coordinate, the processing can be performed at high speed.
[0022]
  The most reliable image data among the gray values of the tablets in the gray image is the pixel at the position corresponding to the center of gravity of the surface of the tablet far from the portion (edge) where the difference in the gray values is large and the periphery thereof. If there is no connected area in the tablet area displayed in the binary image, there is no stamped part or adhering foreign matter around the center of gravity of the tablet surface and its periphery. In this case, the most reliable video data can be compared with the video level reference value by specifying the pixel position based on the center of gravity of the surface of the tablet in the grayscale image.
[0023]
  Many of the causes of abnormalities in the image level of grayscale images are other than the deterioration of the light intensity of the illumination means (for example, changes in illumination conditions such as position, external light, direction, etc., dirt on the illumination means, camera lens dirt and aperture If a lighting means with constant brightness is provided, the brightness of the lighting means is automatically corrected to return the image level of the grayscale image to normal. Since the problem can be essentially solved, the probability of occurrence of an abnormality in the image level of the grayscale image can be greatly reduced by eradicating the cause of the abnormality.
[0024]
  Further, when the appearance of the tablet filled in the pocket portion of the blister sheet is inspected by providing the tablet appearance inspection device of the present invention in the blister sheet packaging machine, the blister sheet in the blister sheet packaging machine is somewhat Although the position of the tablet that moves while shaking in the conveying direction and the pocket portion of the blister sheet varies somewhat, the pixel at the position corresponding to the surface of the tablet is used as the gray value of the gray image to be compared with the video level reference value. If it is used, it is possible to monitor the video level of the grayscale image without being affected by the fluctuation of the blister sheet conveyance direction and the variation of the tablet position.
[0025]
DETAILED DESCRIPTION OF THE INVENTION
  Hereinafter, embodiments of the present invention will be described with reference to the drawings. In the present embodiment, as shown in FIG. 4, the blister sheet packaging machine 30 is equipped with an appearance inspection apparatus 10 that is a tablet appearance inspection apparatus, whereby a tablet appearance inspection method is carried out in the blister sheet packaging machine 30. is doing.
[0026]
  Such a tablet appearance inspection method inspects the appearance of a tablet based on a binary image acquired from a grayscale image obtained by imaging the tablet, and uses a pixel corresponding to the surface of the tablet among the grayscale values of the grayscale image. By comparing with the video level reference value, the video level of the grayscale image is monitored.
[0027]
  First, the blister sheet packaging machine 30 in which the tablet appearance inspection method is performed will be briefly described. The blister sheet packaging machine 30 automatically wraps tablets or the like in blister sheets. Specifically, first, a container film 40 such as PP or PVC is fed to the heating plate 50 and the molding plate 51 by the film feed roll 33 and the tension rolls 31 and 32, and the pocket portion 44 (see FIG. 5) is formed into a container film 40.
[0028]
  Then, when the container film 40 having the pocket portion 44 (see FIG. 5) formed therein is conveyed under the tablet insertion shutter 52, the tablet insertion shutter 52 is moved to each pocket portion 44 (see FIG. 5). The tablet 1 (see FIG. 5) is automatically filled. Further, an aluminum lid film 42 is fed through tension rolls 34 and 35 onto a container film 41 filled with tablets 1 in each pocket 44 (see FIG. 5), and thermocompression bonding is performed with a pair of seal rolls 36. Let
[0029]
  Thereby, the tablet 1 is filled in each pocket 44 (see FIG. 5), and the film-like blister sheet 43 is manufactured. The film-like blister sheet 43 is cut into a sheet shape, and then sent to a defective sheet discharge mechanism, a blister sheet stacking mechanism, and the like (not shown).
[0030]
  Next, an appearance inspection apparatus 10 that implements the tablet appearance inspection method will be described with reference to the block diagram of FIG. The appearance inspection apparatus 10 includes an A / D converter 13, a comparator 14, an image memory 16, a shading correction table 18, a CPU 20, a determination memory 22, an input / output interface 23, a camera timing control means 26, a graphic memory 27, and a constant fluorescent lamp. The light amount control means 28 is configured.
[0031]
  The A / D converter 13 converts a one-dimensional gray image captured by the CCD camera 11 from an analog signal to a digital signal. Here, the CCD camera 11 will be described. As shown in FIG. 5, the blister sheet 43 is uniformly illuminated by the light 9 of the fluorescent lamp 12 as the illumination means, and the blister sheet 43 being conveyed is one-dimensionally in the width direction. The imaging is repeated. Therefore, here, the sheet portion 45 of the blister sheet 43, the five pocket portions 44 formed in one row in the width direction thereof, and the tablet 1 filled in each pocket portion 44 can be simultaneously imaged.
[0032]
  At this time, since the blister sheet 43 in close contact with the fixed roll 37 is imaged, it is not necessary to take into account the shaking in the direction perpendicular to the conveying direction of the film-like blister sheet 43. The CCD camera 11 and the fluorescent lamp 12 are drawn in the blister sheet packaging machine 30 in FIGS. 4 and 6, but are one of the components of the appearance inspection apparatus 10, respectively.
[0033]
  Returning to the figure, the comparator 14 binarizes the one-dimensional grayscale image replaced with the digital signal with a threshold value. Since such a one-dimensional grayscale image is captured by the CCD camera 11, binarization processing is performed for each pixel of the CCD camera 11.
[0034]
  The threshold value used in the comparator 14 is smaller than the light and shade value of the surface of the tablet 1 under the condition that the light and dark value becomes larger, and the adhesion of the sheet portion 45 of the blister sheet 43 and the surface of the tablet 1 is achieved. It is set to a value larger than the respective shade values of the foreign matter and the stamped portion. On the other hand, under the condition that the lighter and darker the lightness value becomes, the lightness and darkness values of the surface of the tablet 1 are greater than the lightness and value of the sheet portion 45 of the blister sheet 43 and the adhered foreign matter and the stamped portion of the surface of the tablet 1. Is set to a smaller value.
[0035]
  The image memory 16 stores the one-dimensional binary image sequentially binarized by the comparator 14 as a two-dimensional binary image (hereinafter simply referred to as “binary image”) while synchronizing. . The appearance inspection of the tablet 1 is performed by performing image processing on the binary image stored here. The shading correction table 18 stores threshold values used by the comparator 14.
[0036]
  The CPU 20 executes processing shown in the flowchart of FIG. 1 to be described later, and executes it using the determination memory 22, the graphic memory 27, and the like. The determination memory 22 is a memory in which the video level reference value Q and the like are stored. The graphic memory 27 is a memory that stores a one-dimensional gray image repeatedly captured by the CCD camera 11 as a two-dimensional gray image (hereinafter simply referred to as “gray image”) while synchronizing.
[0037]
  Accordingly, both the grayscale image stored in the graphic memory 27 and the binary image on the image memory 16 described above are created from the same one-dimensional grayscale image repeatedly captured by the CCD camera 11. It can be said that the binary image on the image memory 16 is obtained by using the grayscale image on the graphic memory 27 as an original image. Thereby, the grayscale image on the graphic memory 27 and the binary image on the image memory 16 described above are in a positional relationship.
[0038]
  Here, for convenience of explanation, the grayscale image on the graphic memory 27 and the binary image on the image memory 16 described above are both stored as images of the same size, and the respective X coordinates and Y coordinates also coincide. Shall.
[0039]
  Further, here, the grayscale image on the graphic memory 27 (the same applies to the binary image on the image memory 16 described above), as shown in FIG. A total of 10 tablets 1 filled in 44 are stored as a single blister sheet 43 as a single blister sheet 43. Note that the gray image 70 in FIG. 7 is shown in a horizontal direction.
[0040]
  Further, the tablet 1 has a stamped part “Iroha” only on one side, but in the blister sheet packaging machine 30, it is difficult to fill the pocket part 44 of the blister sheet 43 while aligning one side of the tablet 1. Among the 10 tablets 1 displayed in one gray image 70, there are a tablet in which “Iroha” is clearly displayed with a density difference and a “Iroha” in which a seal is not displayed. .
[0041]
  In the blister sheet packaging machine 30, it is difficult to fill the pocket portion 44 of the blister sheet 43 while aligning the direction of “Iroha” that is the stamped portion of the tablet 1. “Iroha” of the seal part displayed on the screen faces all directions.
[0042]
  The input / output interface 23 is for transmitting or receiving inspection data and control signals to the blister sheet packaging machine 30. For example, the defective sheet discharge mechanism of the blister sheet packaging machine 30 can be controlled based on the inspection data and the control signal. Moreover, it is also for transmitting display data to the monitor 25, and the grayscale image 70 on the graphic memory 27, the binary image on the image memory 16, the appearance inspection result, etc. can be displayed on the monitor 25. Note that the monitor 25 is drawn outside the appearance inspection apparatus 10 in FIG. 6, but is one of the components of the appearance inspection apparatus 10.
[0043]
  The camera timing control means 26 controls the timing at which the one-dimensional grayscale image captured by the CCD camera 11 is taken into the A / D converter 13. Such timing is performed based on a signal from an encoder (not shown) provided in the blister sheet packaging machine 30. Thereby, the CCD camera 11 can repeatedly capture a one-dimensional gray image.
[0044]
  The fluorescent lamp constant light quantity control means 28 controls the brightness of the light 9 of the fluorescent lamp 12 to be constant. Specifically, a sensor (not shown) for measuring the light quantity and temperature of the fluorescent lamp 12 is installed near the fluorescent lamp 12, and the light quantity of the fluorescent lamp 12 is kept constant from the detected light quantity and temperature. In addition, a high frequency lighting device (not shown) or a fan motor (not shown) or a heater (not shown) installed in the fluorescent lamp 12 is controlled from a controller (not shown).
[0045]
  Next, the grayscale image monitoring procedure will be described with reference to the flowchart of FIG. The gray image monitoring is performed on the gray image 70 on the graphic memory 27 via the binary image on the image memory 16. Further, it is performed simultaneously with the appearance inspection of the tablet performed by processing the binary image on the image memory 16.
[0046]
  First, in step (hereinafter abbreviated as “S”) 1, a labeling process is performed on the connection area A in the area of the predetermined tablet 1 in the binary image on the image memory 16. Here, for convenience of explanation, it is assumed that the predetermined tablet 1 is displayed in the upper left corner of the binary image on the image memory 16. Further, it is assumed that there are a total of n connected regions A in the region of the tablet 1.
[0047]
  In the next S2, the table 80 shown in FIG. 2 is created in the determination memory 22. That is, the X coordinate minimum value XMIN, the X coordinate maximum value XMAX, the Y coordinate minimum value YMIN, and the Y coordinate maximum value YMAX are respectively obtained and stored for each of the numbered n connected regions A in total. The Further, the minimum value X1 of the minimum values XMIN of each X coordinate, the maximum value X2 of the maximum value XMAX of each X coordinate, the minimum value Y1 of the minimum value YMIN of each Y coordinate, and the maximum value of each Y coordinate The maximum Y2 of YMAX is obtained and stored.
[0048]
  In S <b> 3, it is determined whether or not the connection area A exists in the area of the predetermined tablet 1. Here, since n connection areas A exist in the area of the predetermined tablet 1, it is determined that the connection area A exists in the area of the predetermined tablet 1 (S3: Yes), and the process proceeds to S4.
[0049]
  In the next S4, in the grayscale image 70 on the graphic memory 27 that is positionally correlated with the binary image on the image memory 16, the X and Y coordinates of the binary image on the image memory 16 are (X2, The position corresponding to the pixel (Y1 + Y2) / 2) is specified, and the gray value of the pixel at that position is compared with the video level reference value Q (hereinafter referred to as “sampled video data P”).
[0050]
  Here, as shown in FIG. 3, the X coordinate / Y coordinate is (X2, (Y1 + Y2) / 2) in the tablet 1 displayed in the upper left corner of the grayscale image 70 on the graphic memory 27 (see FIG. 7). The gray value of the pixel at the position T (x mark) is the sampled video data P.
[0051]
  At this time, since the adhered foreign matter on the surface of the tablet 1 or “Iroha” as a stamped portion is recognized as one of the connected areas A in the binary image on the image memory 16, the X coordinate This X2 means that it is the maximum value among the X coordinates of the adhered foreign matter on the surface of the tablet 1 or “Iroha” which is a stamped portion. Similarly, Y1 of the Y coordinate means the smallest value among the Y coordinates such as “Iroha” which is the adhered foreign matter on the surface of the tablet 1 or the stamped portion, and Y2 of the Y coordinate is the tablet 1 This means that it is the maximum value among the Y-coordinates such as “Iroha”, which is a foreign matter adhering to the surface or “Iroha”, which is a marking portion.
[0052]
  Accordingly, in the tablet 1 displayed in the upper left corner of the grayscale image 70 on the graphic memory 27 (see FIG. 7), the X coordinate / Y coordinate is at the position T (x mark) of (X2, (Y1 + Y2) / 2). The possibility of the presence of foreign substances adhering to the surface of the tablet 1 or “Iroha” as a stamped portion is extremely small. That is, as shown in FIG. 3, it can be said that the surface of the tablet 1 is projected at a position T (x mark) where the X coordinate / Y coordinate is (X2, (Y1 + Y2) / 2). Thereby, the position of the pixel corresponding to the surface of the tablet 1 is specified in the grayscale image 70 on the graphic memory 27.
[0053]
  On the other hand, when it is determined that the connection area A does not exist in the area of the predetermined tablet 1 (S3: No), the process proceeds to S5. In the next S5, in the grayscale image on the graphic memory 27 that is positionally correlated with the binary image on the image memory 16, it corresponds to the center of gravity of the tablet 1 at the upper left corner of the binary image on the image memory 16. The position is specified, and the gray value of the pixel at the position is set as sampling video data P.
[0054]
  In this case, in the binary image on the image memory 16, there is no connection area A within the predetermined area of the tablet 1. There is no such thing. Therefore, it can be said that the surface of the tablet 1 is projected at the center of gravity of the tablet 1 projected in the upper left corner of the grayscale image on the graphic memory 27.
[0055]
  After the sampled video data P is determined in S4 or S5, a difference R between the sampled video data P and the video level reference value Q is obtained in S6. In the next S7, it is determined whether or not the absolute value of the difference R is within the tolerance H. The tolerance H is preset and stored in the determination memory 22.
[0056]
  If it is determined that the absolute value of the difference R is within the tolerance H (S7: Yes), the grayscale image on the graphic memory 27 is determined to be at the optimum video level, and the grayscale image monitoring procedure of FIG. To do. On the other hand, if it is determined that the absolute value of the difference R is not within the tolerance H (S7: No), it is determined that the grayscale image on the graphic memory 27 is not at the optimum video level, and the blister sheet packaging machine 30 is determined in S8. After the warning signal is output, the grayscale image monitoring procedure in FIG. 1 is terminated.
[0057]
  1 is performed every time one blister sheet 43 for one sheet is newly stored in the graphic memory 27 as one gray image.
[0058]
  As described above in detail, in the tablet appearance inspection method and the tablet appearance inspection apparatus 30 according to the present embodiment, the appearance of the tablet 1 is inspected based on the grayscale image on the graphic memory 27 in which the tablet 1 is imaged. The image level of the grayscale image is monitored by comparing the grayscale value of the grayscale image with a pixel corresponding to the surface of the tablet 1 with the video level reference value Q (S7). At this time, it is necessary to specify the position of the pixel corresponding to the surface of the tablet 1 in the grayscale image on the graphic memory 27. This is specified by 2 on the image memory 16 acquired from the grayscale image on the graphic memory 27. This is performed based on the value image (S4, S5).
[0059]
  Then, as shown in the tablet 1 displayed in the upper left corner of the grayscale image 70 on the graphic memory 27 (FIG. 7), if there is a stamped part “Iroha” on the surface of the tablet 1 or foreign matter adheres, In the region of the tablet 1 displayed in the upper left corner of the binary image on the image memory 16, there is a connected region A. Therefore, when it is determined that the connected area A exists in the area of the tablet 1 displayed in the upper left corner of the binary image on the image memory 16 (S3: Yes), the binary image on the image memory 16 is displayed in the binary image. Through the position of the pixel in the connection area A, the positions of the stamped portion “Iroha” and attached foreign matter of the tablet 1 displayed in the upper left corner of the grayscale image 70 on the graphic memory 27 are recognized.
[0060]
  Thus, by eliminating the position corresponding to the connected area A in the binary image on the image memory 16 in the area of the tablet 1 displayed in the upper left corner of the grayscale image 70 on the graphic memory 27, the graphic memory 27, it is possible to specify the position of the pixel corresponding to the surface of the tablet 1 in the grayscale image 70 on S27 (S4).
[0061]
  That is, in the tablet appearance inspection method and the tablet appearance inspection apparatus 10 according to the present embodiment, among the grayscale values of the grayscale image on the graphic memory 27, the pixel corresponding to the surface of the tablet 1 is used as the video level reference value Q. By comparing (S4 to S7), the video level of the grayscale image on the graphic memory 27 can be monitored, so that it is not affected by the stamped portion “Iroha” of the tablet 1 to be inspected or attached foreign matter, Monitoring the video level of the grayscale image on the graphic memory 27 can be realized.
[0062]
  Further, through the position of the pixel in the connection area A of the binary image on the image memory 16 acquired from the grayscale image on the graphic memory 27 (S4), the stamped portion “of the tablet 1 in the grayscale image on the graphic memory 27” Since it recognizes “Iroha” or attached foreign matter, the position of the pixel corresponding to the surface of the tablet 1 in the grayscale image on the graphic memory 27 can be reliably specified.
[0063]
  Further, as in the tablet 1 displayed in the upper left corner of the grayscale image 70 on the graphic memory 27, there are a plurality of stamped portions “I”, “B”, “C” (divided into two parts), adhered foreign matters, and the like. In this case (S3: Yes), there are a plurality of connected areas A in the area of the tablet 1 displayed in the upper left corner of the binary image on the image memory 16, but the X coordinates of these connected areas A are present. The position of the pixel corresponding to the surface of the tablet 1 displayed in the upper left corner of the grayscale image 70 on the graphic memory 27 based on the maximum value / minimum value XMIN, XMAX, YMIN, YMAX of the Y coordinate. Since it is identified (S4), the process can be performed at high speed.
[0064]
  The most reliable image data among the gradation values of the tablet 1 in the gradation image on the graphic memory 27 is the tablet 1 far from the outline of the tablet 1 that is a portion (edge) where the difference in the gradation value is large. If the connected region A does not exist in the region of the tablet 1 displayed at the upper left corner of the binary image on the image memory 16, it is the gray value of the pixel at the position corresponding to the center of gravity of the surface and the periphery thereof. (S3: No), since there is no stamped part “Iroha” or adhering foreign matter at the center of gravity of the surface of the tablet 1 and the periphery thereof, in this case, it is displayed in the upper left corner of the grayscale image on the graphic memory 27. By specifying the pixel position based on the center of gravity of the surface of the tablet 1 (S5), the most reliable video data can be compared with the video level reference value Q.
[0065]
  Further, many of the causes of abnormal image levels of the grayscale image on the graphic memory 27 are other than the deterioration of the light quantity of the fluorescent lamp 12 (for example, changes in illumination conditions such as position, external light, direction, dirt on the fluorescent lamp 12, Therefore, the brightness of the fluorescent lamp 12 is automatically adjusted by providing the fluorescent lamp 12 whose brightness is constant by the fluorescent lamp constant light amount control means 28. Unlike the case of correcting and returning the image level of the grayscale image on the graphic memory 27 to normal, the cause of the abnormality can be clarified essentially, so by eliminating the cause of the abnormality, The probability of occurrence of an abnormality in the image level of the grayscale image can be greatly reduced.
[0066]
  In addition, when the blister sheet packaging machine 30 includes the tablet appearance inspection apparatus 10 of the present embodiment, the blister sheet packaging is performed when the appearance of the tablet 1 filled in the pocket portion 44 of the blister sheet 43 is inspected. The blister sheet 43 in the machine 30 moves while being slightly swung in the conveying direction, and the position of the tablet 1 filled in the pocket portion 44 of the blister sheet 43 varies somewhat, but the graphic memory 27 to be compared with the video level reference value Q is used. Since the pixel value at the position corresponding to the surface of the tablet 1 is used as the gray value of the upper gray image (S4, S5), the influence of the fluctuation of the blister sheet 43 in the conveying direction and the variation in the position of the tablet 1 are affected. It is possible to monitor the video level of the grayscale image on the graphic memory 27 without receiving the image.
[0067]
  In addition, this invention is not limited to the said embodiment, A various change is possible in the range which does not deviate from the meaning.
  For example, in the grayscale image monitoring procedure of the present embodiment, the predetermined tablet 1 is displayed in the upper left corner of the binary image on the image memory 16 (displayed in the upper left corner of the grayscale image on the graphic memory 27). Other) may be used.
[0068]
  Moreover, although the thing of one place is used as the predetermined tablet 1, the thing of several places may be used. At this time, for example, if the binary images on the image memory 16 displayed at the upper left corner and the lower right corner (projected at the upper left corner and the lower right corner of the grayscale image on the graphic memory 27) are used, An effect equivalent to that obtained when all the images displayed on the binary image on the memory 16 (all the images displayed on the grayscale image on the graphic memory 27) are used can be easily obtained. The same applies to the case where binary images on the image memory 16 displayed in the lower left corner and upper right corner (projected in the lower left corner and upper right corner of the grayscale image on the graphic memory 27) are used. .
[0069]
  Further, only one sheet of the blister sheet 43 is displayed on the grayscale image (the binary image on the image memory 16) on the graphic memory 27, but when several sheets of the blister sheet 43 are displayed, a predetermined number of sheets are displayed. As the tablet 1, tablets on each sheet may be used.
[0070]
  In the grayscale image monitoring procedure of the present embodiment, if it is determined that the absolute value of the difference R between the sampled video data P and the video level reference value Q is not within the tolerance H (S7: No), immediately. In addition, although a warning signal is output to the blister sheet packaging machine 30 (S8), it is determined that the absolute value of the difference R is not within the tolerance H in order to eliminate the influence of a temporary disturbance or the like. The blister sheet packaging machine 30 may be made to output a warning signal for the first time when it occurs continuously for a predetermined number of times. Note that the predetermined number of times at this time is stored in the determination memory 22 in advance.
[0071]
  Further, in the grayscale image monitoring procedure of the present embodiment, the absolute value of the difference R between the sampled video data P and the video level reference value Q is compared with the tolerance H (S7). The range has a width that is half of the tolerance H on both the positive side and the negative side with respect to the video level reference value Q. However, in view of the inherent characteristics of the tablet appearance inspection apparatus 10, such a range is required. The widths of the positive side and the negative side may be different. The positive and negative widths at this time are also stored in advance in the determination memory 22.
[0072]
  Further, in the grayscale image monitoring procedure according to the present embodiment, it is determined whether or not the connection area A exists in the area of the predetermined tablet 1 for all the connection areas A that have been labeled in S1. However, (S3), the connection region A may include a minute one generated due to noise or the like.
[0073]
  Therefore, when the table 80 is created in S2, the area B is also obtained for each of the numbered n connected regions A (see FIG. 2), and the area B is less than the predetermined area. The area A may be deleted from the binary image on the image memory 16 or the table 80 of the determination memory 22, and thereafter, the process may proceed to S3. In this way, the minute connection region A generated due to noise or the like is not erroneously recognized as the stamped portion “Iroha” or adhered foreign matter of the tablet 1. The predetermined area at this time is also stored in the determination memory 22 in advance.
[0074]
  In the grayscale image monitoring procedure of the present embodiment, the video level reference value Q is stored in the determination memory 22 in advance, but a sensor for measuring the light quantity of the fluorescent lamp 12 is shown. You may use what was calculated based on the value. Alternatively, an image determined based on a certain grayscale image on the graphic memory 27 may be used. Further, the video level reference value Q may be automatically determined as one step of the grayscale image monitoring procedure.
[0075]
  In the grayscale image monitoring procedure according to the present embodiment, in the grayscale image 70 on the graphic memory 27, (X2, (Y1 + Y2) are used as the X coordinate / Y coordinate specifying the position of the pixel corresponding to the surface of the tablet 1. ) / 2) is used, but any X-coordinate / Y-coordinate can be used as long as the position of the pixel corresponding to the surface of the tablet 1 can be specified. For example, it can be said that the surface of the tablet 1 is projected at most positions of the X coordinate / Y coordinate represented by the relational expression using X1, X2, Y1, and Y2. The X coordinate X1 means the smallest value among the X coordinates of the adhered foreign matter on the surface of the tablet 1 or “Iroha” which is a stamped portion.
[0076]
  Further, in the grayscale image monitoring procedure of the present embodiment, when the connected region A does not exist in the region of the tablet 1 displayed at the upper left corner of the binary image on the image memory 16 (S3: No). Then, by specifying the position of the pixel corresponding to the center of gravity of the surface of the tablet 1 displayed in the upper left corner of the grayscale image on the graphic memory 27 (S5), the most reliable video data is set to the video level reference value P. Although it was possible to compare, the gray value of the position of other pixels such as the periphery of the center of gravity of the surface of the tablet 1 can also be handled as the most reliable video data.
[0077]
【The invention's effect】
  In the tablet appearance inspection method and tablet appearance inspection apparatus of the present invention, the image level of the gray image is monitored by comparing the pixel corresponding to the surface of the tablet among the gray values of the gray image with the video level reference value. Therefore, it is possible to monitor the video level of the grayscale image without being affected by the stamped portion of the tablet to be inspected or the attached foreign matter.
[0078]
  Further, since the part of the tablet in the grayscale image, the adhered foreign matter, and the like are recognized via the position of the pixel in the connection region of the binary image acquired from the grayscale image, the pixel corresponding to the surface of the tablet in the grayscale image. Can be reliably identified.
[0079]
  In addition, when there are a plurality of stamped portions or adhered foreign substances on the tablet to be inspected, there are a plurality of connected areas in the tablet area displayed in the binary image. If the position of the pixel corresponding to the surface of the tablet in the grayscale image is specified based on the maximum value / minimum value of the X coordinate / Y coordinate, the processing can be performed at high speed.
[0080]
  The most reliable image data among the gray values of the tablets in the gray image is the pixel at the position corresponding to the center of gravity of the surface of the tablet far from the portion (edge) where the difference in the gray values is large and the periphery thereof. If there is no connected area in the tablet area displayed in the binary image, there is no stamped part or adhering foreign matter around the center of gravity of the tablet surface and its periphery. In this case, the most reliable video data can be compared with the video level reference value by specifying the pixel position based on the center of gravity of the surface of the tablet in the grayscale image.
[0081]
  Many of the causes of abnormalities in the image level of grayscale images are other than the deterioration of the light intensity of the illumination means (for example, changes in illumination conditions such as position, external light, direction, etc., dirt on the illumination means, camera lens dirt and aperture If a lighting means with constant brightness is provided, the brightness of the lighting means is automatically corrected to return the image level of the grayscale image to normal. Since the problem can be essentially solved, the probability of occurrence of an abnormality in the image level of the grayscale image can be greatly reduced by eradicating the cause of the abnormality.
[0082]
  Further, when the appearance of the tablet filled in the pocket portion of the blister sheet is inspected by providing the tablet appearance inspection device of the present invention in the blister sheet packaging machine, the blister sheet in the blister sheet packaging machine is somewhat Although the position of the tablet that moves while shaking in the conveying direction and the pocket portion of the blister sheet varies somewhat, the pixel at the position corresponding to the surface of the tablet is used as the gray value of the gray image to be compared with the video level reference value. If it is used, it is possible to monitor the video level of the grayscale image without being affected by the fluctuation of the blister sheet conveyance direction and the variation of the tablet position.
[Brief description of the drawings]
FIG. 1 is a flowchart showing a procedure for monitoring gray images in a tablet appearance inspection method of the present invention.
FIG. 2 is a diagram showing the contents of a table created in a determination memory.
FIG. 3 shows X, Y coordinates (X2, (Y1 + Y2) / 2) and the adhered foreign matter and the stamped portion on the surface of the tablet in a predetermined tablet displayed in a grayscale image on the graphic memory. It is the figure which showed the relationship with a position.
FIG. 4 is a block diagram showing the overall configuration of the tablet appearance inspection method of the present invention.
FIG. 5 is a perspective view showing a part of the blister sheet packaging machine, and is a view showing a part for imaging the appearance of the tablet filled in the pocket portion of the blister sheet being conveyed.
FIG. 6 is a block diagram showing the functional configuration of the tablet appearance inspection method of the present invention.
FIG. 7 is a diagram showing an example of one gray image stored in a graphic memory.
[Explanation of symbols]
  1 tablet
  10 Appearance inspection device for tablets
  12 Fluorescent lights
  28 Fluorescent lamp constant light quantity control means
  30 Blister sheet packaging machine
  43 Blister sheet
  44 Blister sheet pocket
  70 grayscale image
  A connection area
  Q Image level reference value
  XMIN Minimum value of the X coordinate of the connected area
  XMAX Maximum value of X coordinate of connected area
  YMIN Minimum value of Y coordinate of connected area
  Maximum value of Y coordinate of YMAX connected area

Claims (7)

錠剤を撮像した濃淡画像に基づいて前記錠剤の外観を検査するとともに、前記濃淡画像の濃淡値を映像レベル基準値と比較することによって前記濃淡画像の映像レベルを監視する錠剤の外観検査方法において、In the tablet appearance inspection method for inspecting the appearance of the tablet based on a gray image obtained by imaging a tablet, and monitoring the video level of the gray image by comparing the gray value of the gray image with a video level reference value,
前記映像レベル基準値と比較される前記濃淡画像の濃淡値は、前記錠剤の表面に対応する位置の画素のものであって、The gray value of the gray image to be compared with the video level reference value is that of a pixel at a position corresponding to the surface of the tablet,
前記映像レベル基準値と比較される前記濃淡画像の濃淡値の画素の位置を、前記濃淡画像から取得される2値画像に基づいて特定し、A position of a pixel of the gray value of the gray image to be compared with the video level reference value is specified based on a binary image acquired from the gray image;
前記2値画像に表示された錠剤の領域内に連結領域が存在する場合には、前記映像レベル基準値と比較される前記濃淡画像の濃淡値は、前記2値画像の連結領域に対応する位置の画素のものを除いたものであることを特徴とする錠剤の外観検査方法。When a connected area exists in the tablet area displayed in the binary image, the gray value of the gray image compared with the video level reference value is a position corresponding to the connected area of the binary image. A method for inspecting the appearance of a tablet, which is obtained by excluding the above-mentioned pixels.
錠剤を撮像した濃淡画像に基づいて前記錠剤の外観を検査するとともに、前記濃淡画像の濃淡値を映像レベル基準値と比較することによって前記濃淡画像の映像レベルを監視する錠剤の外観検査方法において、In the tablet appearance inspection method for inspecting the appearance of the tablet based on a gray image obtained by imaging a tablet, and monitoring the video level of the gray image by comparing the gray value of the gray image with a video level reference value,
前記映像レベル基準値と比較される前記濃淡画像の濃淡値は、前記錠剤の表面に対応する位置の画素のものであって、The gray value of the gray image to be compared with the video level reference value is that of a pixel at a position corresponding to the surface of the tablet,
前記映像レベル基準値と比較される前記濃淡画像の濃淡値の画素の位置を、前記濃淡画像から取得される2値画像に基づいて特定し、A position of a pixel of the gray value of the gray image to be compared with the video level reference value is specified based on a binary image acquired from the gray image;
前記2値画像に表示された錠剤の領域内に連結領域が複数存在する場合には、前記連結領域のX座標・Y座標のそれぞれの最大値・最小値に基づいて、前記映像レベル基準値と比較される前記濃淡画像の濃淡値の画素の位置を特定することを特徴とする錠剤の外観検査方法。In the case where there are a plurality of connected areas in the tablet area displayed in the binary image, the video level reference value and the maximum value / minimum value of the X and Y coordinates of the connected area are determined. A method for inspecting the appearance of a tablet, characterized by specifying a position of a gray value pixel of the gray image to be compared.
錠剤を撮像した濃淡画像に基づいて前記錠剤の外観を検査するとともに、前記濃淡画像の濃淡値を映像レベル基準値と比較することによって前記濃淡画像の映像レベルを監視する錠剤の外観検査方法において、In the tablet appearance inspection method for inspecting the appearance of the tablet based on a gray image obtained by imaging a tablet, and monitoring the video level of the gray image by comparing the gray value of the gray image with a video level reference value,
前記映像レベル基準値と比較される前記濃淡画像の濃淡値は、前記錠剤の表面に対応する位置の画素のものであって、The gray value of the gray image to be compared with the video level reference value is that of a pixel at a position corresponding to the surface of the tablet,
前記映像レベル基準値と比較される前記濃淡画像の濃淡値の画素の位置を、前記濃淡画像から取得される2値画像に基づいて特定し、A position of a pixel of the gray value of the gray image to be compared with the video level reference value is specified based on a binary image acquired from the gray image;
前記2値画像に表示された錠剤の領域内に連結領域が存在しない場合には、前記映像レベル基準値と比較される前記濃淡画像の濃淡値は、前記錠剤の表面の重心に基づいて特定される位置の画素のものであることを特徴とする錠剤の外観検査方法。If there is no connected area in the tablet area displayed in the binary image, the gray value of the gray image compared with the video level reference value is specified based on the center of gravity of the surface of the tablet. A method for inspecting the appearance of a tablet, wherein the method is for a pixel at a certain position.
請求項1または請求項2に記載する錠剤の外観検査方法において、In the external appearance inspection method of the tablet according to claim 1 or 2,
前記2値画像に表示された錠剤の領域内に連結領域が存在しない場合には、前記映像レベル基準値と比較される前記濃淡画像の濃淡値は、前記錠剤の表面の重心に基づいて特定される位置の画素のものであることを特徴とする錠剤の外観検査方法。If there is no connected area in the tablet area displayed in the binary image, the gray value of the gray image compared with the video level reference value is specified based on the center of gravity of the surface of the tablet. A method for inspecting the appearance of a tablet, wherein the method is for a pixel at a certain position.
請求項1乃至請求項4のいずれか一つに記載する錠剤の外観検査方法において、In the tablet external appearance inspection method according to any one of claims 1 to 4,
ブリスタシート包装機内で搬送中のブリスタシートのポケット部に充填された錠剤の外観を検査することを特徴とする錠剤の外観検査方法。A method for inspecting the appearance of a tablet, comprising: inspecting the appearance of a tablet filled in a pocket portion of a blister sheet being conveyed in a blister sheet packaging machine.
請求項1乃至請求項5のいずれか一つに記載する錠剤の外観検査方法を実施することを特徴とする錠剤の外観検査装置。6. A tablet appearance inspection apparatus, wherein the tablet appearance inspection method according to claim 1 is performed. 請求項6に記載する錠剤の外観検査装置を備えたことを特徴とするブリスタシート包装機。A blister sheet packaging machine comprising the tablet appearance inspection apparatus according to claim 6.
JP35065097A 1997-12-19 1997-12-19 Tablet appearance inspection method, tablet appearance inspection device and blister sheet packaging machine Expired - Lifetime JP3761313B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP35065097A JP3761313B2 (en) 1997-12-19 1997-12-19 Tablet appearance inspection method, tablet appearance inspection device and blister sheet packaging machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP35065097A JP3761313B2 (en) 1997-12-19 1997-12-19 Tablet appearance inspection method, tablet appearance inspection device and blister sheet packaging machine

Publications (2)

Publication Number Publication Date
JPH11178894A JPH11178894A (en) 1999-07-06
JP3761313B2 true JP3761313B2 (en) 2006-03-29

Family

ID=18411929

Family Applications (1)

Application Number Title Priority Date Filing Date
JP35065097A Expired - Lifetime JP3761313B2 (en) 1997-12-19 1997-12-19 Tablet appearance inspection method, tablet appearance inspection device and blister sheet packaging machine

Country Status (1)

Country Link
JP (1) JP3761313B2 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6894772B2 (en) * 2001-02-12 2005-05-17 Analytical Spectral Devices System and method for grouping reflectance data
KR101118513B1 (en) * 2010-08-13 2012-03-12 엘지전자 주식회사 Pill box and method for a medication management
JP5917964B2 (en) 2012-03-19 2016-05-18 富士ゼロックス株式会社 Tablet, tablet manufacturing method, tablet management device, tablet verification device, and program
JP6027048B2 (en) * 2014-04-22 2016-11-16 Ckd株式会社 Inspection system and PTP packaging machine
CN111398308B (en) * 2020-03-27 2023-01-17 上海健康医学院 Automatic detection method and system for packaging quality of aluminum-plastic bubble caps of tablets and capsules

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0827239B2 (en) * 1986-11-14 1996-03-21 オムロン株式会社 Lighting equipment
JP2825601B2 (en) * 1990-03-24 1998-11-18 武田薬品工業株式会社 Automatic printing defect inspection system
JPH0821805A (en) * 1994-07-08 1996-01-23 Datsuku Eng Kk Appearance inspecting method and device thereof

Also Published As

Publication number Publication date
JPH11178894A (en) 1999-07-06

Similar Documents

Publication Publication Date Title
JPH06100555B2 (en) Defect inspection method and device for transparent object
JP3761313B2 (en) Tablet appearance inspection method, tablet appearance inspection device and blister sheet packaging machine
JP3344995B2 (en) Tablet surface inspection device
JPH07332951A (en) Apparatus and method for inspecting image
JP2003291929A (en) Inspection method and apparatus for single-dose package sheet
JPH11287763A (en) Automatic inspection method of egg, transfer-controlling device of egg suited for it, and automatic inspection device of egg
JP3549752B2 (en) PTP sheet appearance inspection device and PTP packaging machine
JP2002139444A (en) Visual inspection apparatus for tablet and ptp packaging machine
JP2000266514A (en) Method and device for inspecting metallic sheet
JP3494561B2 (en) Tablet appearance inspection method and tablet appearance inspection device
JP5331133B2 (en) Tablet inspection device and PTP packaging machine
JPH1172440A (en) Method and apparatus for visual inspection of stamped tablet
JP2006219178A (en) Inspecting apparatus and ptp packaging machine
JPH07260445A (en) Method and apparatus for inspecting lead frame automatically
JP4034222B2 (en) Appearance inspection apparatus for PTP sheet packed with tablets and PTP packaging machine
JP6207008B2 (en) Inspection apparatus and inspection method
JP3577194B2 (en) Tablet appearance inspection method and tablet appearance inspection device
JPH0823530B2 (en) Object observation apparatus and method for inspecting inner wall surface of cylindrical object using the apparatus
JP2005009981A (en) Inspection method and inspection apparatus for superposed state of superposed object
JP3494552B2 (en) Tablet appearance inspection method and tablet appearance inspection device
JP2005153982A (en) Lid displacement detection device and lid displacement detection method
JPS6111602A (en) Device for inspecting boundary line of content in vessel
KR100277364B1 (en) Missing defect automatic detection method and device
JP2004317187A (en) Visual inspection apparatus and ptp packaging machine
JP2006317271A (en) Inspection device, correction data forming device and ptp packing machine

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20040730

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040921

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20041115

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20050201

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050328

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20051101

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20051109

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20051220

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20060110

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090120

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100120

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110120

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110120

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120120

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120120

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130120

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130120

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140120

Year of fee payment: 8

EXPY Cancellation because of completion of term