JP4034222B2 - Appearance inspection apparatus for PTP sheet packed with tablets and PTP packaging machine - Google Patents

Appearance inspection apparatus for PTP sheet packed with tablets and PTP packaging machine Download PDF

Info

Publication number
JP4034222B2
JP4034222B2 JP2003108791A JP2003108791A JP4034222B2 JP 4034222 B2 JP4034222 B2 JP 4034222B2 JP 2003108791 A JP2003108791 A JP 2003108791A JP 2003108791 A JP2003108791 A JP 2003108791A JP 4034222 B2 JP4034222 B2 JP 4034222B2
Authority
JP
Japan
Prior art keywords
illumination
area
identification
ptp sheet
condition
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 - Fee Related
Application number
JP2003108791A
Other languages
Japanese (ja)
Other versions
JP2004317188A (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 JP2003108791A priority Critical patent/JP4034222B2/en
Publication of JP2004317188A publication Critical patent/JP2004317188A/en
Application granted granted Critical
Publication of JP4034222B2 publication Critical patent/JP4034222B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

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

Description

【0001】
【発明の属する技術分野】
本発明は、PTPシートを検査する外観検査装置及び当該外観検査装置を備えたPTP包装機を含む技術分野に属するものである。
【0002】
【従来の技術】
一般に、PTPシートは、錠剤等が投入されるポケット部が形成された容器フィルムと、その容器フィルムにポケット部の開口側を密封するように前記容器フィルムに固着される密封用フィルムとから構成されている。そして、容器フィルムと密封用フィルムとが固着される前に、ポケット部に錠剤等が投入される。
【0003】
このように構成されるPTPシートの外観検査装置として、PTPシートに毛髪などの異物の有無を検査できるものが知られている(特許文献1参照)。
【0004】
また、別の錠剤検査装置として、撮像部が錠剤を撮像し、その錠剤からの画像情報を2値化処理して、錠剤上の欠陥または異物の有無を検査するものがある(特許文献2参照)。
【0005】
【特許文献1】
特開平11−39484号公報
【特許文献2】
特開平4−36643号公報
【0006】
【発明が解決しようとする課題】
しかしながら、特許文献1に記載された外観検査装置の場合、異物検査の判定用画像の色文字領域、錠剤領域はマスクされ、マスクされていない部分について、髪の毛などの異物があるかどうかが判定されている。そのため、色文字領域などに異物があった場合であっても、マスクされているため、異物の有無を検出できなかった。
【0007】
また、特許文献2に記載された錠剤検査装置の場合、錠剤上の欠陥または異物の有無を検査するものにすぎず、PTPシートのポケット部以外のシート上の異物の有無を検査するものではない。
【0008】
ところで、近年、PTPシートのポケット部以外のシート部分について、製品説明などの文字、数字等の識別情報が黒色インクで印刷されている。この黒色の識別情報は、PTPシート上のゴミなどの異物と誤認識されるおそれがあり、誤認識の防止のため、ポケット部以外のシート部分を検査対象として扱いにくかった。そのため、ポケット部以外のシート部分に識別情報が付されている場合、そのシート部分については異物の検出が行われず、PTPシート全体の異物検出としては必ずしも十分なものではなかった。
【0009】
本発明は、上記事情に鑑みてなされたものであり、PTPシートのポケット部以外のシート部分に識別情報があった場合でも、異物を確実に検出することができる外観検査装置及びPTP包装機を提供することを主たる目的の一つとしている。
【0010】
【課題を解決するための手段及び発明の効果】
上記目的を達成し得る特徴的手段について以下に説明する。また、各手段につき、特徴的な作用及び効果を必要に応じて記載する。
【0011】
手段1.ポケット部及び当該ポケット部以外の非ポケット部を備えるPTPシート上に、照明手段が光を照射し、照射されたPTPシートからの光を撮像手段が受光し、得られた画像データを異物検査手段が処理して異物の有無を検査する外観検査装置において、
前記異物検査手段は、前記非ポケット部の識別情報が付された識別領域に対しての識別領域条件による異物検査と、前記非ポケット部の前記識別情報が付されていない背景領域に対しての背景領域条件による異物検査とを切り換えて行うことを特徴とする外観検査装置。尚。「識別情報」は、例えば、製品名、製品説明などを表すために、付される文字、記号、模様などであり、印刷などによって記載されてもよいし、その他の形態で付されてもよい。
【0012】
上記手段1によれば、異物検査手段は、識別領域条件の下、非ポケット部の識別領域の異物を検査する。その識別領域には、識別情報が付されているため、照明手段が識別領域を照明し撮像手段が撮像した際に、撮像手段が識別領域から受ける光の量は少ない。そのため、撮像手段から得られる画像データは、十分なレベルに達せず、十分な異物の検出ができないおそれがある。しかし、識別領域条件の下、照明手段の照明光量の増加とか、画像データ処理の際の閾値のレベル変更等の対策が取られることにより、識別領域の異物を確実に検出できる。
【0013】
また、異物検査手段は、背景領域条件の下、非ポケット部の前記背景領域の異物を検査する。その背景領域には、識別情報が付されていないため、照明手段が背景領域を照明し撮像手段が撮像した際に、撮像手段が識別領域から受ける光の量は多い。そのため、撮像手段から得られる画像データは、十分なレベルに達し、背景領域の異物を確実に検出できる。しかし、背景領域条件が、識別領域条件の場合と同様に、例えば照明手段の照明光量が多いと、画像データのレベルが高すぎ、却って背景領域の異物が検出しにくい状況となる。そのため、背景領域条件が識別領域条件と異なるように適切に設定されることで、背景領域の異物を確実に検出できる。
【0014】
手段2. ポケット部及び当該ポケット部以外の非ポケット部を備えるPTPシート上に、照明手段が光を照射し、照射されたPTPシートからの光を撮像手段が受光し、得られた画像データを異物検査手段が処理して異物の有無を検査する外観検査装置において、
前記非ポケット部の識別情報が付された識別領域と、前記非ポケット部の識別情報が付されていない背景領域とを判別する領域判別手段と、
前記領域判別手段の判断の下、前記非ポケット部の識別情報が付された識別領域に対しての識別領域条件による異物検査と、前記非ポケット部の前記識別情報が付されていない背景領域に対しての背景領域条件による異物検査とを切り換えて行うことを特徴とする外観検査装置。
【0015】
上記手段2によれば、領域判別手段は非ポケット部の識別情報が付された識別領域と、非ポケット部の識別情報が付されていない背景領域とを判別する。異物検査手段は、上記手段1において既述した態様で、識別領域条件の下、識別領域の異物を検査する。異物検査手段は、上記手段1において既述した態様で、背景領域条件の下、非ポケット部の背景領域の異物を検査する。従って、本発明によれば、識別領域および背景領域の異物を確実に検出することができる。
【0016】
手段3.上記手段1または2に記載の外観検査装置において、前記異物検査手段は、前記識別領域を識別領域条件でもって、または、前記背景領域を背景領域条件でもって2値化する2値化手段を備えることを特徴とする記載の外観検査装置。
【0017】
上記手段3によれば、文字、記号などの識別情報が付された識別領域は、識別領域条件でもって2値化される。この場合、照明手段が識別領域を照明し撮像手段が撮像した際に、撮像手段が識別領域から受ける光の量が少なくても、撮像手段から得られる画像データが、例えばレベル調整された閾値を有する識別領域条件でもって2値化される。それにより、識別領域の異物が確実に検出される。
【0018】
また、識別情報が付されていない背景領域は、背景領域条件でもって2値化される。この場合、照明手段が背景領域を照明し撮像手段が撮像した際に、識別情報が付されておらず、撮像手段が識別領域から受ける光の量は多いため、撮像手段から得られる画像データから背景領域の異物を確実に検出できる。しかし、背景領域条件が、識別領域条件と同様なレベルの閾値でもって、画像データを処理すると、撮像手段が受ける光の量が多すぎるため、却って背景領域の異物が検出しにくい状況となる。そのため、画像データが2値化される際に領域条件が識別領域条件と異なるように適切に設定されることで、背景領域の異物が確実に検出される。
【0019】
手段4.上記手段3に記載の外観検査装置において、識別領域条件として、前記撮像手段から得られる画像データのレベルおいて、異物がある識別領域と異物がない識別領域とを判別する閾値条件が設定されることを特徴とする外観検査装置。
【0020】
上記手段4によれば、異物がある識別領域と、異物がない識別領域とが、識別領域条件の閾値条件でもって確実に判別される。
【0021】
手段5.上記手段3に記載の外観検査装置において、前記背景領域条件として、前記撮像手段から得られる画像データのレベルおいて、異物がある背景領域と、異物がない背景領域とを判別する閾値条件が設定されることを特徴とする外観検査装置。
【0022】
上記手段5によれば、異物がある背景領域と、異物がない背景領域とは、背景領域条件の閾値条件でもって確実に判別される。
【0023】
手段6.上記手段1乃至4のいずれかに記載の外観検査装置において、異物検査手段は、前記識別領域の反射光量に対応する撮像手段の出力値を予め把握していることを特徴とする外観検査装置。
【0024】
非ポケット部の識別領域には、識別情報が付されているため、撮像手段が識別領域から受ける光の量は少ない。そのため、撮像手段から得られる画像データは、十分なレベルに達せず、十分な異物の検出ができないおそれがある。しかし、上記手段6によれば、識別領域の反射光量に対応する撮像手段の出力値が把握されているので、識別領域条件の下、画像データ処理の際の閾値のレベル変更等の対策が取られることにより、識別領域の異物を確実に検出できる。
【0025】
手段7.上記手段2乃至6のいずれかに記載の外観検査装置において、前記領域判別手段は、前記識別領域と前記背景領域とを判別する際に位置調整する位置調整手段を備えることを特徴とする外観検査装置。尚、位置調整の方法として、PTPシートの搬送方向に直交する方向に生じる位置ずれを防止するための、基準位置をPTPシートに設け、PTPシートの端面の位置と基準位置との位置ずれ量を計算して、補正してもよい。
【0026】
上記手段7によれば、位置調整手段は、識別領域と背景領域とを判別する際に位置調整するので、PTPシートの位置が変動しても、領域判別手段は識別領域と背景領域とを確実に判別することができる。それにより、識別領域および背景領域の異物を確実に検出することができる。
【0027】
手段8.上記手段1乃至7のいずれかに記載の外観検査装置において、異物検査手段は、前記識別領域を照明するための識別領域照明条件に基づく照明、または、前記背景領域を照明するための背景領域照明条件に基づく照明を切り換えることを特徴とする外観検査装置。
【0028】
上記手段8によれば、識別領域の異物検査の際に、識別領域を照明するための識別領域照明条件に基づく照明が行われる。識別領域には、識別情報が付されているため、撮像手段が識別領域から受ける光の量は少ない。そのため、撮像手段から得られる画像データは、十分なレベルに達せず、十分な異物の検出ができないおそれがある。しかし、設定された識別領域照明条件の下、照明手段の照明光量の増加等の対策が取られることにより、識別領域の異物を確実に検出できる。
【0029】
また、背景領域の異物検査の際に、背景領域を照明するための背景領域照明条件に基づく照明が行われる。その背景領域には、識別情報が付されていないため、撮像手段が受ける光の量は多い。そのため、撮像手段から得られる画像データは、十分なレベルに達し、背景領域の異物を確実に検出できる。しかし、背景領域照明条件が、識別領域照明条件の場合と同様に、例えば照明手段の照明光量が多いと、画像データのレベルが高すぎ、却って背景領域の異物が検出しにくい状況となる。そのため、背景領域照明条件が識別領域照明条件と異なるように適切に設定されることで、背景領域の異物を確実に検出できる。
【0030】
手段9.上記手段1乃至8のいずれかに記載の外観検査装置において、前記照明手段の照明光量が調整されることにより、前記識別領域を照明するための識別情報照明条件、または、前記背景領域を照明するための背景情報照明条件が設定されることを特徴とする外観検査装置。
【0031】
上記手段9によれば、照明手段の照明光量が調整されることにより、識別情報照明条件または背景領域照明条件が設定される。この場合、撮像手段が受ける識別領域または背景領域からの光の光量が少なく、異物検査が正確に行われない場合、照明手段の照明光量が増加するように、識別情報照明条件または背景領域照明条件がそれぞれ設定される。反対に、撮像手段が受ける識別領域または背景領域からの光の光量が多く、異物検査が正確に行われない場合、照明手段の照明光量が減少するように、識別情報照明条件または背景領域照明条件が設定される。それにより、識別領域または背景領域の光の反射率等が異なっても、識別領域または背景領域を照明する照明手段の照明光量が適正になるため、識別領域または背景領域の異物を正確に検査できる。
【0032】
手段10.手段1乃至9のいずれかに記載の外観検査装置において、前記撮像手段の出力信号が調整されることにより、前記識別情報照明条件、または、前記背景情報照明条件が設定されることを特徴とする外観検査装置。
【0033】
上記手段10によれば、識別情報照明条件または背景情報照明条件が設定される際に、識別領域または背景領域から得られる撮像手段の出力信号が調整される。それにより、撮像手段の出力信号が例えば上限値に近づいて、異物検査ができないという現象が生じず、異物検査の際に支障が生じない。
【0034】
手段11.上記手段10に記載の外観検査装置において、前記識別情報照明条件、または、前記背景情報照明条件が設定される際に、前記撮像手段の出力信号が上限値に近づかないように設定されることを特徴とする外観検査装置。
【0035】
上記手段11によれば、撮像手段の出力信号が上限値に近づかないように、識別領域照明条件または前記背景領域照明条件が設定される。それにより、設定された識別領域照明条件または前記背景領域照明条件でもって、照明手段が照明する場合、撮像手段の出力信号が上限値に近づかないので、異物検査が円滑に行われる。
【0036】
手段12.上記手段1乃至11のいずれかに記載の外観検査装置において、前記PTPシートからの光でもって、前記撮像手段が露光される際の露光時間が調整されることにより、前記識別領域を露光するための識別領域露光条件、または、前記背景領域を露光するための背景領域露光条件が設定されることを特徴とする外観検査装置。
【0037】
上記手段12によれば、撮像手段が露光される際の露光時間が調整されることにより、識別情報露光条件、または、前記背景情報露光条件が設定される。この場合、撮像手段が受ける識別領域または背景領域からの光の光量が少なく、異物検査が正確に行われない場合、露光時間が増加するように、識別情報露光条件、または、前記背景情報露光条件がそれぞれ設定される。反対に、撮像手段が受ける識別領域または背景領域からの光の光量が多く、異物検査が正確に行われない場合、露光時間が減少するように、識別情報露光条件、または、前記背景情報露光条件がそれぞれ設定される。それにより、識別領域または背景領域の光の反射率等が異なっても、識別領域または背景領域照明する際の露光時間が調整されるため、識別領域または背景領域の異物の有無を正確に検査できる。
【0038】
手段13.上記手段1乃至12のいずれかに記載の外観検査装置において、前記PTPシートからの光でもって、前記撮像手段が露光される際の光の絞り量が調整されることにより、前記識別領域を露光するための識別領域露光条件、または、前記背景領域を露光するための背景領域露光条件が設定されることを特徴とする外観検査装置。
【0039】
上記手段13によれば、撮像手段が受ける光の絞り量が調整されることにより、識別情報露光条件、または、前記背景情報露光条件が設定される。この場合、撮像手段が受ける識別領域または背景領域からの光の光量が少なく、異物検査が正確に行われない場合、光の絞り量が減少するように、識別情報露光条件、または、前記背景情報露光条件がそれぞれ設定される。反対に、撮像手段が受ける識別領域または背景領域からの光の光量が多く、異物検査が正確に行われない場合、光の絞り量が増加するように、識別情報露光条件、または、前記背景情報露光条件それぞれ設定される。それにより、識別領域または背景領域の光の反射率等が異なっても、光の絞り量が調整されるため、識別領域または背景領域の異物の有無を正確に検査できる。
【0040】
手段14.上記手段1乃至13のいずれかに記載の外観検査装置において、前記異物検査手段は、前記PTPシートが連続的に搬送される際に、前記識別領域の照明に基づく画像データと、前記背景領域の照明に基づく画像データとの間の前記PTPシートの搬送による位置ずれを修正することを特徴とする外観検査装置。
【0041】
PTPシートは連続的に搬送されるため、ポケット部用照明に基づく画像データと、非ポケット部用照明に基づく画像データとの間に位置ずれが生じる。しかし、手段14によれば、PTPシートの搬送による位置ずれが修正されるので、より一層の精度の高い検出を行うことができる。
【0042】
手段15.上記手段1乃至14のいずれかにおいて、前記ポケット部の異物を検査するための、ポケット部照明条件によるポケット部用照明と、前記非ポケット部の異物を検査するための、非ポケット部照明条件による非ポケット部用照明とを交互に行う照明制御手段を備えることを特徴とする外観検査装置。
【0043】
上記手段15によれば、ポケット部用照明と、非ポケット部用照明とが交互に行われ、ポケット部の異物検査と、非ポケット部の異物検査とが交互に行われる。そのため、ポケット部及び非ポケット部を交互に備えるPTPシート全体の異物検査を円滑に行うことができる。
【0044】
手段16.上記手段1乃至15のいずれかに記載の外観検査装置において、前記ポケット部用照明による画像データ処理を、前記非ポケット部用照明による画像データ処理よりも先に行い、前記非ポケット部用照明による画像データ処理を行う際に、前記ポケット部用照明の影響を除くようにする画像データ処理手段を備えることを特徴とする外観検査装置。
【0045】
錠剤が投入されるポケット部は、突状に膨らんでいるので、その膨らみ及び錠剤による影によって、あたかも非ポケット部に異物が付いているものと、誤検出されることが懸念される。この点、上記手段16によれば、ポケット部用照明が、非ポケット部用照明より先に行われ、ポケット部の異物検査が、非ポケット部の異物検査より先に行われて、非ポケット部用照明による画像データ処理を行う際に、ポケット部用照明の影響を除くようにする画像データ処理がなされる。従って、非ポケット部の異物検査の際に、ポケット部の異物検査結果の影響が除去されて、ポケット部の突状の膨らみ等の影による誤検出を防止することができる。
【0046】
手段17.上記手段1乃至16のいずれかに記載の外観検査装置において、前記識別情報は、赤外光に対し、透過性を有するインクが使用されており、前記照明手段が赤外光を照射でき、撮像手段が赤外光に対し感度を有することを特徴とする外観検査装置。
【0047】
上記手段17によれば、照明手段によって赤外光を含む光の照射された識別情報の反射光が赤外光に感度を有する撮像手段で撮像されると、識別情報が付されたシートの色に関係なく、識別情報の存在する識別領域内の異物よりも識別情報自体の明度が高い映像信号が出力される。このため、識別情報の色により照明色調を変更したり、カラーフィルタをかけたりする必要がなく、光学的な設定の簡素化を図ることができる。
【0048】
手段18.上記手段1乃至17のいずれかに記載の外観検査装置を備えたPTP包装機。
【0049】
この手段18のようにPTP包装機に上記各手段にて特定された外観検査装置を設けることにより、PTP包装機による包装過程においてシートの検査を行うことができる。これにより、包装途中或いは包装後において、欠陥が発見されたPTPシートを排除することができる。
【0050】
【発明の実施の形態】
以下、一実施の形態について、図1乃至図9を参照しつつ説明する。
【0051】
この実施の形態では、図1に示すように、PTPシートの外観検査装置K1をPTP包装機P1に装備することによって、PTP包装機P1内でPTPシートの検査を実施している。
【0052】
まず、PTPシートの外観検査が実施されるPTP包装機P1について簡単に説明する。PTP包装機P1は、錠剤をPTPシートに自動的に包装するものである。具体的には、ポリプロピレン、ポリ塩化ビニルなどの光透過性を有するフィルム3が、フィルム送りロール3aとテンションロール3b、3cとによって、加熱板4a及び成形板4bに送り込まれ、ポケット部2a(図2参照)がフィルム3に成形される。このようにフィルム3に、成形板4bに対応したポケット部2aが形成される場合に、ポケット部2a間に平らな非ポケット部2bが形成される。そのため、フィルム3の長手方向に沿った断面は非ポケット部2bとポケット部2aとが所定間隔で交互に形成される格好となる。そのフィルム3の非ポケット部2bには、例えば製品説明(例えば「AB50」)などの文字、数字、記号、模様などの識別情報2c(図6参照)が黒色インクで印刷されている。そして、ポケット部2aが成形されたフィルム3が、錠剤投入手段たる錠剤投入シャッター6の下にまで送られてくると、錠剤投入シャッター6により各ポケット部2aに錠剤5が自動的に充填される。
【0053】
さらに、各ポケット部2aに錠剤5が充填されたフィルム3上に、アルミ製の密封用フィルム7がテンションロール7a、7bを介して送り込まれ、シール手段たる一対のシールロール8、9で固着させられる。これによって、錠剤5が各ポケット部2aに充填されたフィルム状のPTPシート10が製造される(図4参照)。かかるフィルム状のPTPシート10はシート状に裁断された後に、図示しない不良シート排出機構やPTPシート集積機構などへ順に送られる。
【0054】
次に、ポケット部2aに錠剤5が充填されたPTPシート10の外観検査装置K1について、図3のブロック図を中心に説明する。外観検査装置K1は、照明手段11(図1、3参照)、撮像手段であるCCDカメラ12、画像データ処理手段としての画像処理装置13などから構成される。
【0055】
照明手段11は、設定された照明条件に基づき、設定した光量で照明する光量調整機能を有するLED(図示せず)を具備している。この場合、照明手段11の照明光量は、露光制御手段としてのCPU20の制御の下に、複数段階のいずれかに設定される。
【0056】
画像処理装置13は、図3に示すように、シェーディング補正手段14、画像メモリ16、シェーディング補正テーブル18、CPU20、判定用メモリ22、入出力インターフェース23、外観検査結果及び統計データメモリ24、カメラタイミング制御手段26などから構成される。
【0057】
CCDカメラ12は、図6に示すように、一定エリア内L1、L2及びL3の反射光を受光して二次元的に撮像するが、撮像した二次元イメージデータを、一画素毎にアナログ信号からデジタル信号に変換して出力するものである。画像メモリ16は、デジタル化された二次元イメージデータを順次記憶して、二次元イメージデータとして記憶するものである。ここで、CPU20によって二次元イメージデータが、画像メモリ16に記憶される前に、シェーディング補正テーブル18のデータに従って、シェーディング補正手段14がシェーディング補正している。このシェーディング補正は、PTPシート10の全体を照明手段11の照明光で一様に照らすことは技術的に限界があることから、かかる位置の相違による光の明暗により生じる映像データの明度のばらつきを補正するために行われるものである。
【0058】
また、画像メモリ16には、シェーディング補正手段14から出力される多値データのみならず、CPU20によって画像処理された又は画像処理される過程におけるデータ、例えば二値化したデータも記憶される。画像メモリ16に記憶される二値化した二次元イメージデータは、異物検査の際に用いられる。
【0059】
画像データ処理手段としてのCPU20は、各種の画像処理プログラム、異物検出用のプログラム、その他のプログラムを、判定用メモリ22の記憶内容等を使用しつつ、画像データ処理を実行するものである。判定用メモリ22は、CPU20によって画像処理するための閾値データ(後述)を記憶し、この閾値データによって異物の存在の有無を検査できる。
【0060】
入出力インターフェース23は、PTP包装機P1に制御信号を送信し又はPTP包装機P1から動作信号等の各種信号を受信するためのものである。これら各種信号の送受信によって、例えば、PTP包装機P1の不良シート排出機構などを制御することができる。また、入出力インターフェース23は、モニタ25に表示データを送信するためのものであり、二次元化したイメージデータや外観検査結果などを、モニタ25に表示させることができる。
【0061】
検査結果及び統計データメモリ24は、検査結果データ、該検査結果データを確率統計的に処理した統計データ等を記憶するものである。これらの検査結果データや統計データは、異物検査の際にも用いられ、CPU20の制御に基づき、モニタ25に表示させることができる。また、これら外観検査結果データや統計データに基づいて、CPU20がPTP包装機P1に制御信号を送信することもできる。
【0062】
カメラタイミング制御手段26は、CCDカメラ12が撮像する二次元イメージデータを、取り込むタイミングを制御するものである。かかるタイミングは、PTP包装機P1に設けられた図示しないエンコーダからの信号に基づいて行われる。
【0063】
ここで、CCDカメラ12と照明手段11との関係について説明する。照明手段11及びCCDカメラ12は、図1に示されるように、密封フィルム7を貼着した後のPTPシート10の表側に配置されている。そして、照明手段11は、各ポケット部2aに錠剤5が充填されたPTPシート10を照明する。CCDカメラ12は一定エリア内の反射光を受光して二次元的に撮像する。
【0064】
各ポケット部2aに1個ずつ充填される錠剤5は、種々の形態等を有しており、錠剤5が充填されたポケット部2aの反射率は、錠剤5によって異なっている。また、非ポケット部2b(後述するアルミ製の密封用フィルム)の反射率は、錠剤5が充填されたポケット部2aの光の反射率とは異なる。また、非ポケット部2bの識別情報2cが付されている部分を含む領域(以下識別領域R1という)は、非ポケット部2bの識別情報2cが付されていない部分の領域(以下背景領域R2という)と、識別情報2cの存在の有無により、光の反射率が異なっている。更に、非ポケット部2bの識別領域R1に異物があるか否かにより、また、背景領域R2に異物があるか否かにより、光の反射率が異なっている。尚、図6に示す識別領域R1は、識別情報2cを含む長方形状の枠として記載したが、識別情報2cを含む形状であれば、必ずしもその形状に限定される訳ではない。CCDカメラ12は、既述したように、「0」段階から「255」段階に分けられる大きさの信号を1画素毎に出力する際、出力信号の大きさが「0」段階に近いと反射光量が少ない。それに対し、出力信号の大きさが「255」段階に近いと反射光量が多い。具体的には、図5に示すように、照明手段11がPTPシート10を一定光量で照射すると、異物がない識別領域R1からの反射光を受けるCCDカメラ12は、出力値D2を出力し、異物がある識別領域R1からの反射光を受けるCCDカメラ12は、出力値D1を出力する。また、異物がない背景領域R2からの反射光を受けるCCDカメラ12は、出力値D4を出力し、異物がある背景領域R2からの反射光を受けるCCDカメラ12は、出力値D3を出力する。従って、識別領域R1からの反射光を受けるCCDカメラ12の出力値D1及び出力値D2から、異物の有無を検出するために、識別領域条件(閾値条件)として、出力値D1より大きくかつ出力値D2より小さい閾値Q1を設定する必要がある。同様に、背景領域R2からの反射光を受けるCCDカメラ12の出力値D3及び出力値D4から、異物の有無を検出するために、背景領域条件(閾値条件)として、出力値D3より大きくかつ出力値D4より小さい閾値Q2を設定する必要がある。尚、上記出力信号の数値及び出力値D1乃至D4は、あくまでも例示にすぎないことはいうまでもない。
【0065】
このように照明手段11がPTPシート10を一定光量で照射しても、ポケット部2a及び非ポケット部2b(識別領域R1及び背景領域R2)からの反射光量が異なる。そのため、必要な反射光量を得て異物の有無を検出するために、後述するポケット部照明条件が設定され、更に、非ポケット部照明条件のうちの識別領域照明条件及び背景領域照明条件が個々に設定される。その設定の下に、照明手段11によって、反射光量ポケット部2a及び非ポケット部2b(識別領域R1及び背景領域R2を含む)は適切な光量で照明される。この場合、PTPシート10の識別領域R1からの反射光量は予め把握され、照明手段11の照明時間が適宜調整される。また、CCDカメラ12がPTPシート10から受ける光の光量調整をする絞り部材(図示せず)についても、その光の絞り量が適宜調整される。尚、ポケット部2aがPTPシート10から表側に突状に膨らみ、ポケット部2aに錠剤5が入っているので、その膨らみ及び錠剤5による影によって、あたかも非ポケット部2bに異物が付いているものと、誤検出されることが懸念される。この点、本実施の形態では、ポケット部2aの照明による画像データ処理を、非ポケット部2bの照明による画像データ処理よりも先に行い、非ポケット部2bの画像データ処理の際に、ポケット部2aの画像データ処理結果の影響を除去するために「マスク」をかけることとしている。
【0066】
尚、ポケット部2aの画像データ処理結果の影響を除去するための「マスク」のデータは、画像メモリ16に予め記憶されている。但し、「マスク」をかける際に、PTPシート10の搬送による位置修正が行われる。詳細には、CCDカメラ12は、図6に示すように、照明手段11によるポケット部2a用の照明の下、一定エリアL1内の反射光を受光し、カメラタイミング制御手段26の制御の下、所定のタイミングで1度目の映像信号を取り込む。次に、PTPシート10の搬送中に、CCDカメラ12は、照明手段11の非ポケット部2bの背景領域照明条件の照明の下、一定エリアL2内の反射光を受光し、カメラタイミング制御手段26の制御の下、所定のタイミングで2度目の映像信号を取り込む。更に、PTPシート10の搬送中に、CCDカメラ12は、照明手段11の非ポケット部2bの識別領域照明条件の照明の下、一定エリアL3内の反射光を受光し、カメラタイミング制御手段26の制御の下、所定のタイミングで3度目の映像信号を取り込む。この場合、1度目の映像信号の取り込みタイミングと、2度目の映像信号の取り込みタイミングと、3度目の映像信号の取り込みタイミングとの間にはそれぞれ時間差があり、その時間差の間にもPTPシート10が搬送される。そのため、ポケット部用照明に基づく1度目の映像信号(画像データ)と、非ポケット部用照明に基づく2度目及び3度目の映像信号(画像データ)との間に位置ずれが生じることになる。この位置ずれの悪影響を防止するため、非ポケット部2bの画像データ処理の際に、ポケット部2aの画像データ処理結果の影響を除去するように、その時間差を修正したマスクが準備される。この場合、PTPシート10のポケット部2a及び非ポケット部2bの位置は予め把握され、マスク成形のために使用される。また、PTPシート10の搬送速度と、カメラタイミング制御手段26の制御による1度目、2度目及び3度目のタイミングの時間差による位置ずれ量は予め把握され、時間差の修正のために使用される。尚、エリアL2及びL3は、エリアL1の位置からその時間差分だけ搬送方向に搬送するものであるが、図6では見やすくするように、便宜的に搬送方向と直交する方向に若干ずらして表示されている。
【0067】
次に、PTP包装機P1における外観検査装置K1によるPTPフィルム10の外観検査について、図7乃至図9に示されるフローチャートを参照して説明する。ステップS1において、図7に示されるように、ポケット部2a用異物検出処理が行われる。ポケット部2aの異物を検査する際には、ポケット部照明条件が設定されて、照明手段11が所定光量の光を照射する。照射されたPTPシート10からの反射光をCCDカメラ12が受光し、得られた画像データをCPU20が処理して異物の有無を検査する。
【0068】
ステップS2において、非ポケット部2b用の異物検出処理が行われる。この非ポケット部2b用の異物検査の場合、非ポケット部2bに識別情報がある識別領域R1と、非ポケット部2bに識別情報がない背景領域R2とでは、PTPシート10からの反射光量が相違する。そのため、非ポケット部2bの異物検査の場合、識別領域R1用の識別領域照明条件、または、背景領域R2用の背景領域照明条件がそれぞれ設定される。設定された識別領域照明条件または背景領域照明条件の下、照明手段11が光を照射し、照射されたPTPシート10からの反射光をCCDカメラ12が受光し、得られた画像データをCPU20が処理して異物の有無を検査する。そして、識別領域R1の異物検査の場合、異物がある識別情報R1と、異物がない識別情報R1とを判別する閾値条件(図5の閾値Q1)が、識別領域条件として設定され、識別領域R1に関し異物の有無が検査される。また、背景領域R2の異物検査の場合、異物がある背景領域R2と、異物がない背景領域R2とを判別する閾値条件(図5の閾値Q2)が設定され、背景領域R2に関し異物の有無が検査される。そして、非ポケット部2b用異物検出処理(S2)の後には、ポケット部2a用異物検出処理(S1)が再び行われ、ステップS1及びステップS2が交互に繰り返される。
【0069】
次に、ポケット部2aの異物検出処理の具体的内容について、図8に示すフローチャートを参照して説明する。まず、図8に示されるように、ステップS11において、照明手段11がポケット部2aを照明する際に、ポケット部照明条件が設定される。最初に、ポケット部2aからの反射光量が多いか否かが判断される。つまり、反射光を受けるCCDカメラ12の出力信号が大きいか否かが判断される。ポケット部2aからの反射光量が少ないと判断された場合、照明手段11の照明光量が増加するように、ポケット部照明条件が設定される。反対に、ポケット部2aからの反射光量が多いと判断された場合、照明手段11の照明光量が減少するように、ポケット部照明条件が設定される。
【0070】
より詳しくは、ポケット部2aからの反射光を受けるCCDカメラ12の出力信号の大きさが例えば最大の「255」段階に近い場合、現在のポケット部2aを照明する照明手段11の照明光量が多すぎるものとして、照明手段11の照明光量を少なくする。従って、この場合には、ポケット部照明条件として、ポケット部2aからの反射光を受けるCCDカメラ12の出力信号からの大きさが、上限値に比べて所定量小さい値となるように、照明手段11の照明光量が設定される。
【0071】
次に、ステップS12において、CCDカメラ12によって撮像されたポケット部用の画像の取り込み処理が行われる。その際、設定されたポケット部照明条件によって、照明手段11がPTPシート10を照明するので、適正光量の反射光を、CCDカメラ12が受け、鮮明な映像信号の取り込みが行われる。
【0072】
より詳細には、CCDカメラ12は一定エリアL1(図6参照)内の反射光を受光して二次元的に撮像する。この場合、ポケット部2a用の照明の下、カメラタイミング制御手段26により、CCDカメラ12から1度目の映像信号が取り込まれる。その後、CCDカメラ12は、撮像した二次元イメージデータを、アナログ信号からデジタル信号に変換して画像メモリ16に出力する。
【0073】
ステップS13において、ポケット部2aの異物を検査するためのポケット部用の二値化処理が行われる。この場合、画像メモリ16に記憶される多値データである映像信号が、ある閾値により二値化され、その二値画像を得る。二値画像としては、光が何ら遮られない場合には、明るいレベル「1」となるのに対し、光が完全に遮られた場合には、暗いレベル「0」となる。ポケット部2aに例えば毛髪、繊維屑等の細長異物以外の大きな異物がある場合、光が遮られ暗いレベル「0」となる。
【0074】
ステップS14において、ポケット部2aの異物を検査するためのポケット部用の異物検出処理が行われる。ポケット部2aの異物検出処理としては、毛髪、繊維屑等の細長異物以外の異物の場合、全く或いは殆ど光を透過しないため、その映像レベルは非常に暗いレベル「0」となり、不良と判定される。しかし、毛髪、繊維屑等の細長異物は、その細さ故に明るいレベル「1」となるので、毛髪、繊維屑等の細長異物か否かを判定する必要がある。
【0075】
細長異物か否かの判定の場合、得られた二値化データに基づき周囲長演算処理が行われ、各連結成分の周囲長(ドット数)が、長塊判定値ドット以上か否かが判定される。この判定の結果、長塊判定値ドットに満たない周囲長を有する連結成分については、非長塊と判定がなされ、ポケット部2aは良好と判定される。ところが、細長異物に相当する連結成分の周囲長は、その細長さ故に非常に長く、長塊判定値ドットを越えることとなるので、長塊と判定されて、ポケット部2aは不良と判定される。
【0076】
次に、非ポケット部2bの異物検出処理についての具体的内容について、図9に示すフローチャートを参照し説明する。
【0077】
図9に示されるステップS21において、照明手段11が非ポケット部2bの背景領域R2を照明する際に、背景領域照明条件が設定される。最初、背景領域R2からの反射光量が多いか否かが判断される。つまり、背景領域R2からの反射光を受けるCCDカメラ12からの出力信号が大きいか否かが判断される。背景領域R2からの反射光量が少ないと判断された場合、照明手段11の照明光量が増加するように、背景領域照明条件が設定される。反対に、背景領域R2からの反射光量が多いと判断された場合、照明手段11の照明光量が減少するように、背景領域照明条件が設定される。
【0078】
この背景領域照明条件の設定に際し、背景領域R2からの反射光を受けるCCDカメラ12の出力信号の大きさが、例えば最大の「255」に近い場合、照明手段11の照明光量が多すぎるものとして、照明光量を少なくする。従って、この場合には、背景領域照明条件として、背景領域R2からの反射光を受けるCCDカメラ12の出力信号からの大きさが、上限値に比べて所定量小さい値となるように、照明光量が設定される。
【0079】
次に、ステップS22において、CCDカメラ12によって撮像された背景領域用の画像の取り込み処理が行われる。その際、設定された背景領域照明条件によって、照明手段11がPTPシート10を照明し、適正光量の反射光を、CCDカメラ12が受け、鮮明な映像信号の取り込みが行われる。この非ポケット部用の背景領域R2の画像の取り込み処理は、ポケット部用の画像の取り込み処理と同様である。
【0080】
ステップS23において、非ポケット部2bの背景領域R2の異物を検査するため、背景領域R2の二値化処理が行われる。この背景領域R2の二値化処理は、ポケット部用の二値化処理と同様であり、画像メモリ16に記憶される多値データである映像信号が二値化され、二値画像が得られる。二値画像としては、光が何ら遮られないところは、明るいレベル「1」となるのに対し、光が完全に遮られたところは、暗いレベル「0」となる。
【0081】
ステップS24において、非ポケット部2bの背景領域R2の異物を検査するための背景領域R2の異物検出処理が行われる。尚、背景領域R2の照明による映像信号処理を行う際に、位置修正した「マスク」をかけるので、ポケット部2aの突状の膨らみ等の影による誤検出が防止される。
【0082】
非ポケット部2bの背景領域R2の異物検出処理は、ポケット部2aの異物検出処理と同様であり、大きな異物の場合、その映像レベルは暗いレベル「0」となり、不良と判定される。また、細長異物は明るいレベル「1」となるので、細長異物かが判定される。細長異物の判定の結果、前述した非長塊と判定されると、背景領域R2は良好と判定されるのに対し、前述した長塊と判定されると、背景領域R2は不良と判定される。
【0083】
次に、ステップS25において、非ポケット部2bの背景領域R2内の識別領域R1を特定する。PTPシート10の静止状態の識別領域R1の位置は予め把握されており、PTPシート10の搬送速度も把握されているので、現在の識別領域R1の位置が認識される。尚、搬送されるPTPシート10においては、搬送方向と直交する方向にPTPシート10の位置ずれが発生することがあり得る。そのため、PTPシート10の識別領域R1と背景領域R2とを判別する際に、PTPシートの搬送方向に直交する方向に生じる位置ずれを防止するための基準位置をPTPシート10に設ける。そして、検出された基準位置と、PTPシート10の端面の位置との位置ずれ量を計算し補正して、識別領域R1と背景領域R2との位置調整を行う。
【0084】
次に、ステップS26において、照明手段11が非ポケット部2bの識別領域R1を照明する際に、識別領域照明条件が設定される。識別領域R1からの反射光量が多いか否かが判断される。つまり、識別領域R1からの反射光を受けるCCDカメラ12からの出力信号が大きいか否かが判断される。識別領域R1からの反射光量が少ないと判断された場合、照明手段11の照明光量が増加するように、識別領域照明条件が設定される。反対に、識別領域R1からの反射光量が多いと判断された場合、照明手段11の照明光量が減少するように、識別領域照明条件が設定される。
【0085】
この識別領域照明条件の設定に際し、識別領域R1からの反射光を受けるCCDカメラ12の出力信号の大きさが、例えば最大の「255」に近い場合、照明手段11の照明光量が多すぎるものとして、照明光量を少なくする。従って、この場合には、識別領域照明条件として、識別領域R1からの反射光を受けるCCDカメラ12の出力信号からの大きさが、上限値に比べて所定量小さい値となるように、照明光量が設定される。ただし、識別領域R1は背景領域R2と比べて反射率が異なるため、それぞれを照明するのに適切な光量を設定する必要がある。この場合、設定された識別領域R1の照明条件、または、背景領域R2の照明条件については、必ずしも一致しない。
【0086】
次に、ステップS27において、CCDカメラ12によって撮像された識別領域用の画像の取り込み処理が行われる。その際、設定された識別領域照明条件によって、照明手段11がPTPシート10を照明し、適正光量の反射光を、CCDカメラ12が受け、鮮明な映像信号の取り込みが行われる。この識別領域R1の画像の取り込み処理は、ポケット部用の画像の取り込み処理と同様である。
【0087】
ステップS28において、非ポケット部2bの識別領域R1の異物を検査するための識別領域R1の二値化処理が行われる。この識別領域R1の二値化処理は、ポケット部の二値化処理と同様であり、画像メモリ16に記憶される多値データである映像信号が二値化され、二値画像が得られる。二値画像としては、光が何ら遮られないところは、明るいレベル「1」となるのに対し、光が完全に遮られたところは、暗いレベル「0」となる。
【0088】
ステップS29において、識別領域の異物を検査するための識別領域用の異物検出処理が行われる。尚、識別領域R1の照明による映像信号処理を行う際に、位置修正した「マスク」をかけるので、ポケット部2aの突状の膨らみ等の影による誤検出が防止される。
【0089】
識別領域R1の異物検出処理は、ポケット部2aの異物検出処理と同様であり、大きな異物の場合、その映像レベルは暗いレベル「0」となり、不良と判定される。また、細長異物は明るいレベル「1」となるので、細長異物かが判定される。細長異物の判定の結果、前述した非長塊と判定されると、識別領域R1は良好と判定されるのに対し、前述した長塊と判定されると、識別領域R1は不良と判定される。
【0090】
ステップS30において、異物検出処理の総合判定が行われる。この総合判定は、ポケット部2aに付いた異物の検査結果と、非ポケット部2bの識別領域R1及び背景領域R2に付いた異物の検査結果との総合判定により行われる。この場合、識別領域R1、背景領域R2及びポケット部2aのどこかに異物が付いていれば、不良と判定される。以下、PTPシート10が搬送される際に、外観検査装置K1は全てのPTPシート10のポケット部2a及び非ポケット部2bに付いた異物を検査する。
【0091】
以上詳述したごとく、この実施の形態の外観検査装置K1は、PTPシート10のポケット部2a及び非ポケット部2bの異物の有無を検査するため、照明手段11を用いてPTPシート10を照明し、撮像手段としてのCCDカメラ12がそのPTPシート10の反射光を受け、CCDカメラ12から得られた信号を処理する。そして、背景領域R2の異物検査手段としてのCPU20は、背景領域R2の照明条件の設定(図9のS21)、画像取り込み処理(図9のS22)、二値化処理(図9のS23)及び異物検出処理(図9のS24)を行う。そして、領域判別手段及び識別領域R1の異物検査手段としてのCPU20は、PTPシート10の識別領域R1を特定し(図9のS25)、識別領域R1の照明条件の設定(図9のS26)、画像取り込み処理(図9のS27)、二値化処理(図9のS28)及び異物検出処理(図9のS29)を行い、これらに基づいて異物検査(図9のS30)を行う。そのため、識別領域R1及び背景領域R2からの反射率が異なっても、外観検査装置K1は、識別領域R1の照明条件、または、背景領域R2の照明条件に基づき、識別領域R1及び背景領域R2に付いた異物をそれぞれ正確に検査できる。
【0092】
また、ポケット部2a用の照明を、非ポケット部2b用の照明より先に行い、ポケット部2aの異物検査を、非ポケット部2bの異物検査より先に行い、非ポケット部2bの異物検査の画像データ処理の際に、ポケット部2aの異物検査結果の影響を除去する。それにより、ポケット部2aの突状の膨らみの影による誤検出を防止することができる。
【0093】
また、1つの照明手段10がポケット部2a及び非ポケット部2bの照明を交互に行い、1つのCCDカメラ12がPTPシート10からの反射光を受光して、CCDカメラ12から出力される映像信号を基に、画像処理装置13が画像データを処理して、ポケット部2aの異物検査と、非ポケット部2bの異物検査とを交互に行う。それにより、ポケット部2a及び非ポケット部2bを交互に備えるPTPシート10全体の異物検査が円滑に行うことができる。また、照明手段10及びCCDカメラ12が1個で済み、外観検査装置K1の製造コストが安価になる。
【0094】
尚、本発明は上述した実施の形態に限定されることなく、種々の変更が可能である。例えば、外観検査装置K1を構成するCCDカメラ12と照明手段11は、図1及び図2ではPTP包装機P1内に装着されているが、PTP包装機P1外にあってもよい。
【0095】
また、識別領域R1を露光する際の識別領域露光条件(照明条件)または背景領域R2を露光する際の背景領域露光条件(照明条件)を設定する際に、露光時間(照明手段11の照明時間を含む)を調整してもよいし、反射光を受けるCCDカメラ12の光の絞り量を調整してもよい。このような場合において、識別領域R1または背景領域R2からの反射光量が少なく、異物検査が正確に行われない場合、露光時間が増加するように、または、CCDカメラ12が受ける光の絞り量が減少するように、識別領域露光条件または背景領域露光条件がそれぞれ設定される。反対に、識別領域R1または背景領域R2からの反射光量が多く、異物検査が正確に行われない場合、露光時間が減少するように、または、CCDカメラ12が受ける光の絞り量が増加するように、識別領域露光条件または背景領域露光条件がそれぞれ設定される。
【0096】
特に、CCDカメラ12の出力信号の大きさが上限値(「255」段階)に近づかないようにするため、露光時間(照明時間を含む)を調整してもよく、また、反射光を受けるCCDカメラ12の光の絞り量を調整してもよい。また、照明手段11の照明光量、照明手段11の照明時間、CCDカメラ12の光の絞り量のいずれか一つに限らず、二つ以上のものを総合的に調整してもよい。要するに、識別領域または背景領域の異物検査が正確に行われるように、識別領域露光条件または背景領域露光条件がそれぞれ設定される。
【0097】
非ポケット部5bの識別情報2cは、赤外光に対し、透過性を有するインクが使用されてもよい。その場合、照明手段11が赤外光を照射でき、撮像手段としてのCCDカメラ12が赤外光に対し感度を有するように変更する。赤外光に対し、透過性を有するインクとしては、例えば大日本インキ化学工業株式会社製のアルカラーVA(商品名)等のインクが用いられる。
【0098】
このように構成すれば、照明手段11によって赤外光を含む光の照射された識別情報の反射光が赤外光に感度を有するCCDカメラ12で撮像されると、識別情報2cが記載されたPTPシート10の色に関係なく、識別情報2cの存在する識別領域2c内の異物よりも識別情報2c自体の明度が高い映像信号が出力される。このため、識別情報2cの色により照明色調を変更したり、カラーフィルタをかけたりする必要がなく、光学的な設定の簡素化を図ることができる。
【0099】
また、外観検査装置K1はシールローラ9の上流側に配置されていてもよい。
【図面の簡単な説明】
【図1】PTPシートの包装機の機能構成を示す図である。
【図2】PTP包装機の一部を示し、搬送中のシートを示した斜視図である。
【図3】PTPシートの外観検査装置の全体構成を示すブロック図である。
【図4】ポケット部に錠剤を入れた状態のPTPシートの拡大断面図である。
【図5】CCDカメラからの出力値と閾値との関係について説明するための説明図である。
【図6】PTPシートの搬送とCCDカメラの撮像との関係について説明するための説明図である。
【図7】PTPシートの外観検査装置の異物検出処理の概要を示すフローチャート図である。
【図8】PTPシートのポケット部の異物検出処理を示すフローチャート図である。
【図9】PTPシートの非ポケット部の異物検出処理を示すフローチャート図である。
【符号の説明】
2a…ポケット部、2b…非ポケット部、5…錠剤、7…フィルム、10…PTPシート、11…照明手段、12…撮像手段としてのCCDカメラ、14…シェーディング補正手段、13…画像データ処理手段としての画像処理装置、16…画像メモリ、18…シェーディング補正テーブル、20…露光制御手段及び画像データ処理手段としてのCPU、22…判定用メモリ、23…入出力インターフェース、24…検査結果及び統計データメモリ、25…モニタ、26…カメラタイミング制御手段、P1…PTP包装機、K1…外観検査装置、Q1…閾値条件としての閾値、Q2…閾値条件としての閾値、S1…ポケット部領域異物検査、S2…非ポケット部領域異物検査、S11…ポケット部の照明条件設定、S12…ポケット部用画像の取り込み処理、S13…ポケット部用二値化処理、S14…ポケット部用異物検出処理、S21…非ポケット部の背景領域の照明条件設定、S22…非ポケット部の背景領域の画像の取り込み処理、S23…非ポケット部の背景領域の二値化処理、S24…非ポケット部の背景領域の異物検出処理、S26…非ポケット部の識別領域の照明条件設定、S27…非ポケット部の識別領域の画像の取り込み処理、S28…非ポケット部の識別領域の二値化処理、S29…非ポケット部の識別領域の異物検出処理、S30…総合判定。
[0001]
BACKGROUND OF THE INVENTION
The present invention belongs to a technical field including an appearance inspection apparatus for inspecting a PTP sheet and a PTP packaging machine equipped with the appearance inspection apparatus.
[0002]
[Prior art]
In general, a PTP sheet is composed of a container film in which a pocket portion into which tablets and the like are placed is formed, and a sealing film that is fixed to the container film so as to seal the opening side of the pocket portion to the container film. ing. And before a container film and a sealing film adhere, a tablet etc. are thrown into a pocket part.
[0003]
As an appearance inspection apparatus for a PTP sheet configured as described above, there is known an apparatus capable of inspecting a PTP sheet for the presence of foreign matters such as hair (see Patent Document 1).
[0004]
As another tablet inspection apparatus, there is an apparatus in which an imaging unit images a tablet, binarizes image information from the tablet, and inspects whether there is a defect or a foreign substance on the tablet (see Patent Document 2). ).
[0005]
[Patent Document 1]
JP 11-39484 A
[Patent Document 2]
JP-A-4-36643
[0006]
[Problems to be solved by the invention]
However, in the case of the appearance inspection apparatus described in Patent Document 1, the color character region and the tablet region of the image for determination of foreign matter inspection are masked, and it is determined whether or not there is foreign matter such as hair in the unmasked portion. ing. Therefore, even if there is a foreign object in the color character area or the like, the presence or absence of the foreign object cannot be detected because it is masked.
[0007]
Moreover, in the case of the tablet inspection apparatus described in Patent Document 2, it is merely a device for inspecting the presence or absence of defects or foreign matter on the tablet, and does not inspect for the presence or absence of foreign matter on a sheet other than the pocket portion of the PTP sheet. .
[0008]
By the way, in recent years, identification information such as characters and numbers such as product descriptions is printed with black ink on a sheet portion other than the pocket portion of the PTP sheet. The black identification information may be erroneously recognized as foreign matter such as dust on the PTP sheet, and it is difficult to treat a sheet portion other than the pocket portion as an inspection target in order to prevent erroneous recognition. For this reason, when identification information is attached to a sheet portion other than the pocket portion, the foreign matter is not detected for the sheet portion, which is not necessarily sufficient for detecting the foreign matter of the entire PTP sheet.
[0009]
The present invention has been made in view of the above circumstances, and has an appearance inspection apparatus and a PTP packaging machine capable of reliably detecting foreign matter even when there is identification information in a sheet portion other than a pocket portion of a PTP sheet. It is one of the main purposes to provide.
[0010]
[Means for Solving the Problems and Effects of the Invention]
Characteristic means capable of achieving the above object will be described below. For each means, characteristic actions and effects are described as necessary.
[0011]
Means 1. On the PTP sheet having a pocket portion and a non-pocket portion other than the pocket portion, the illumination means emits light, the imaging means receives the light from the irradiated PTP sheet, and the obtained image data is used as a foreign matter inspection means. In the appearance inspection device that processes and inspects for foreign matter,
The foreign matter inspecting means performs foreign matter inspection according to an identification region condition for an identification region to which identification information of the non-pocket portion is attached, and a background region to which the identification information of the non-pocket portion is not attached. An appearance inspection apparatus characterized by switching between foreign object inspections based on background region conditions. still. “Identification information” is, for example, letters, symbols, patterns, etc. that are added to represent product names, product descriptions, etc., and may be described by printing or the like. .
[0012]
According to the means 1, the foreign matter inspection means inspects the foreign matter in the identification area of the non-pocket portion under the identification area condition. Since the identification information is attached to the identification area, the amount of light received by the imaging unit from the identification area is small when the illumination unit illuminates the identification area and the imaging unit images. Therefore, the image data obtained from the imaging means does not reach a sufficient level, and there is a possibility that sufficient foreign matter cannot be detected. However, foreign substances in the identification area can be reliably detected by taking measures such as an increase in the amount of illumination light of the illuminating means or a change in threshold level during image data processing under the identification area condition.
[0013]
Further, the foreign matter inspection means inspects the foreign matter in the background region in the non-pocket portion under the background region condition. Since the identification information is not attached to the background area, when the illumination unit illuminates the background area and the imaging unit takes an image, the imaging unit receives a large amount of light from the identification area. For this reason, the image data obtained from the imaging means reaches a sufficient level, and foreign matter in the background area can be reliably detected. However, as in the case where the background area condition is the identification area condition, for example, if the illumination light amount of the illumination means is large, the level of the image data is too high, and it becomes difficult to detect foreign matter in the background area. For this reason, it is possible to reliably detect foreign matter in the background area by appropriately setting the background area condition to be different from the identification area condition.
[0014]
Mean 2. On the PTP sheet having a pocket portion and a non-pocket portion other than the pocket portion, the illumination means emits light, the imaging means receives the light from the irradiated PTP sheet, and the obtained image data is used as a foreign matter inspection means. In the appearance inspection device that processes and inspects for foreign matter,
Area discriminating means for discriminating between an identification area with identification information of the non-pocket part and a background area without identification information of the non-pocket part;
Under the judgment of the area discriminating means, a foreign object inspection based on an identification area condition for an identification area with identification information of the non-pocket part, and a background area without the identification information of the non-pocket part An external appearance inspection apparatus characterized in that the foreign object inspection according to the background region condition is switched.
[0015]
According to the means 2, the area discriminating means discriminates the identification area to which the identification information of the non-pocket part is attached and the background area to which the identification information of the non-pocket part is not attached. The foreign substance inspection means inspects the foreign substance in the identification area under the identification area condition in the manner already described in the above means 1. The foreign matter inspection means inspects the foreign matter in the background area of the non-pocket portion under the background area condition in the manner described in the means 1 above. Therefore, according to the present invention, foreign substances in the identification area and the background area can be reliably detected.
[0016]
Means 3. In the appearance inspection apparatus according to the means 1 or 2, the foreign matter inspection means includes binarization means for binarizing the identification area with an identification area condition or the background area with a background area condition. The appearance inspection apparatus according to claim.
[0017]
According to the means 3, the identification area to which identification information such as characters and symbols is attached is binarized according to the identification area condition. In this case, when the illumination unit illuminates the identification area and the imaging unit captures an image, the image data obtained from the imaging unit has, for example, a level-adjusted threshold even if the imaging unit receives a small amount of light from the identification region. It is binarized by the identification area condition that it has. As a result, the foreign matter in the identification area is reliably detected.
[0018]
In addition, the background area to which no identification information is attached is binarized according to the background area condition. In this case, when the illumination unit illuminates the background area and the imaging unit captures an image, the identification information is not attached, and the amount of light received by the imaging unit from the identification region is large. Therefore, from the image data obtained from the imaging unit Foreign matter in the background area can be reliably detected. However, when the image data is processed with the background area condition having a threshold of the same level as the identification area condition, the amount of light received by the imaging means is too large, and it becomes difficult to detect foreign matter in the background area. For this reason, when the image data is binarized, the foreign object in the background region is reliably detected by appropriately setting the region condition to be different from the identification region condition.
[0019]
Means 4. In the appearance inspection apparatus according to the above-described means 3, as the identification region condition, a threshold value condition for discriminating between an identification region with a foreign substance and an identification region without a foreign substance is set at the level of image data obtained from the imaging means. An appearance inspection apparatus characterized by that.
[0020]
According to the means 4, an identification area with a foreign object and an identification area without a foreign object are reliably discriminated based on the threshold condition of the identification area condition.
[0021]
Means 5. In the appearance inspection apparatus according to the above means 3, a threshold condition for determining a background area with a foreign substance and a background area without a foreign substance is set as the background area condition at the level of image data obtained from the imaging means. An appearance inspection apparatus characterized by being made.
[0022]
According to the means 5, the background area with the foreign object and the background area without the foreign object are reliably discriminated based on the threshold condition of the background area condition.
[0023]
Means 6. 5. The appearance inspection apparatus according to any one of the means 1 to 4, wherein the foreign matter inspection means grasps in advance the output value of the imaging means corresponding to the amount of reflected light of the identification area.
[0024]
Since the identification information is attached to the identification area of the non-pocket part, the amount of light received by the imaging means from the identification area is small. Therefore, the image data obtained from the imaging means does not reach a sufficient level, and there is a possibility that sufficient foreign matter cannot be detected. However, according to the means 6, since the output value of the imaging means corresponding to the reflected light amount of the identification area is grasped, measures such as changing the threshold level during image data processing are taken under the identification area condition. By doing so, foreign matter in the identification area can be reliably detected.
[0025]
Mean 7 7. The appearance inspection apparatus according to any one of the means 2 to 6, wherein the area determination means includes a position adjustment means for adjusting a position when the identification area and the background area are determined. apparatus. As a position adjustment method, a reference position is provided in the PTP sheet to prevent a position shift that occurs in a direction orthogonal to the conveyance direction of the PTP sheet, and the position shift amount between the position of the end surface of the PTP sheet and the reference position It may be calculated and corrected.
[0026]
According to the means 7, the position adjusting means adjusts the position when discriminating the identification area and the background area. Therefore, even if the position of the PTP sheet fluctuates, the area discriminating means ensures the identification area and the background area. Can be determined. Thereby, the foreign substances in the identification area and the background area can be reliably detected.
[0027]
Means 8. 8. The appearance inspection apparatus according to any one of the above means 1 to 7, wherein the foreign matter inspection means is illumination based on an identification area illumination condition for illuminating the identification area, or background area illumination for illuminating the background area. An appearance inspection apparatus characterized by switching illumination based on conditions.
[0028]
According to the means 8, illumination based on the identification area illumination condition for illuminating the identification area is performed at the time of foreign matter inspection of the identification area. Since identification information is attached to the identification area, the amount of light received from the identification area by the imaging means is small. Therefore, the image data obtained from the imaging means does not reach a sufficient level, and there is a possibility that sufficient foreign matter cannot be detected. However, foreign substances in the identification area can be reliably detected by taking measures such as increasing the amount of illumination light of the illumination means under the set identification area illumination conditions.
[0029]
In addition, during the foreign object inspection of the background area, illumination based on the background area illumination condition for illuminating the background area is performed. Since the identification information is not attached to the background area, the amount of light received by the imaging means is large. For this reason, the image data obtained from the imaging means reaches a sufficient level, and foreign matter in the background area can be reliably detected. However, as in the case where the background area illumination condition is the identification area illumination condition, for example, when the illumination light amount of the illumination unit is large, the level of the image data is too high, and it becomes difficult to detect foreign matter in the background area. Therefore, the foreign object in the background area can be reliably detected by appropriately setting the background area illumination condition to be different from the identification area illumination condition.
[0030]
Means 9. In the appearance inspection apparatus according to any one of the above-described means 1 to 8, the identification information illumination condition for illuminating the identification area or the background area is illuminated by adjusting the amount of illumination light of the illumination means. An appearance inspection apparatus in which a background information illumination condition is set.
[0031]
According to the means 9, the identification information illumination condition or the background area illumination condition is set by adjusting the illumination light quantity of the illumination means. In this case, the identification information illumination condition or the background region illumination condition is set so that the illumination light amount of the illumination unit increases when the amount of light from the identification region or the background region received by the imaging unit is small and the foreign matter inspection is not accurately performed. Are set respectively. On the other hand, if the amount of light from the identification area or background area received by the imaging means is large and the foreign matter inspection is not performed accurately, the identification information illumination condition or the background area illumination condition is set so that the illumination light quantity of the illumination means decreases. Is set. As a result, even if the light reflectance of the identification area or the background area is different, the amount of illumination light of the illumination means for illuminating the identification area or the background area becomes appropriate, so that foreign matter in the identification area or the background area can be inspected accurately. .
[0032]
Means 10. The visual inspection apparatus according to any one of means 1 to 9, wherein the identification information illumination condition or the background information illumination condition is set by adjusting an output signal of the imaging means. Appearance inspection device.
[0033]
According to the means 10, when the identification information illumination condition or the background information illumination condition is set, the output signal of the imaging means obtained from the identification area or the background area is adjusted. As a result, the output signal of the imaging means approaches, for example, an upper limit value, so that the phenomenon that foreign matter inspection cannot be performed does not occur, and no trouble occurs during foreign matter inspection.
[0034]
Means 11. In the appearance inspection apparatus according to the means 10, when the identification information illumination condition or the background information illumination condition is set, the output signal of the imaging means is set so as not to approach an upper limit value. A visual inspection device.
[0035]
According to the means 11, the identification area illumination condition or the background area illumination condition is set so that the output signal of the imaging means does not approach the upper limit value. Thereby, when the illumination unit illuminates under the set identification area illumination condition or the background area illumination condition, the output signal of the imaging unit does not approach the upper limit value, so that the foreign object inspection is performed smoothly.
[0036]
Means 12. 12. The appearance inspection apparatus according to any one of the above means 1 to 11, wherein the identification region is exposed by adjusting an exposure time when the imaging means is exposed with light from the PTP sheet. An appearance inspection apparatus characterized in that an identification area exposure condition or a background area exposure condition for exposing the background area is set.
[0037]
According to the means 12, the identification information exposure condition or the background information exposure condition is set by adjusting the exposure time when the imaging means is exposed. In this case, the identification information exposure condition or the background information exposure condition is set so that the exposure time is increased when the amount of light from the identification area or the background area received by the imaging unit is small and the foreign matter inspection is not accurately performed. Are set respectively. On the contrary, the identification information exposure condition or the background information exposure condition is set so that the exposure time is reduced when the amount of light from the identification area or background area received by the imaging unit is large and the foreign matter inspection is not performed accurately. Are set respectively. Thereby, even if the light reflectance of the identification region or the background region is different, the exposure time when illuminating the identification region or the background region is adjusted, so that the presence or absence of foreign matter in the identification region or the background region can be accurately inspected. .
[0038]
Means 13. 13. The appearance inspection apparatus according to any one of the above means 1 to 12, wherein the identification region is exposed by adjusting a diaphragm amount of light when the imaging means is exposed with light from the PTP sheet. An appearance inspection apparatus characterized in that an identification region exposure condition for performing the exposure or a background region exposure condition for exposing the background region is set.
[0039]
According to the means 13, the identification information exposure condition or the background information exposure condition is set by adjusting the aperture amount of light received by the imaging means. In this case, when the amount of light from the identification area or background area received by the imaging means is small and the foreign matter inspection is not performed accurately, the identification information exposure condition or the background information is set so that the amount of light aperture is reduced. Each exposure condition is set. On the other hand, when the amount of light from the identification area or background area received by the imaging means is large and the foreign matter inspection is not performed accurately, the identification information exposure condition or the background information is set so that the amount of light aperture increases. Each exposure condition is set. Thereby, even if the reflectance of light in the identification region or the background region is different, the amount of aperture of the light is adjusted, so that the presence or absence of foreign matter in the identification region or the background region can be accurately inspected.
[0040]
Means 14. 14. The appearance inspection apparatus according to any one of the above means 1 to 13, wherein the foreign matter inspection means includes image data based on illumination of the identification area and the background area when the PTP sheet is continuously conveyed. An appearance inspection apparatus for correcting a positional shift caused by conveyance of the PTP sheet between image data based on illumination.
[0041]
Since the PTP sheet is continuously conveyed, a positional deviation occurs between the image data based on the pocket illumination and the image data based on the non-pocket illumination. However, according to the means 14, since the misalignment due to the conveyance of the PTP sheet is corrected, it is possible to perform detection with higher accuracy.
[0042]
Means 15. In any one of the above means 1 to 14, according to the pocket portion illumination condition for inspecting the pocket portion foreign matter and the non-pocket portion illumination condition for inspecting the non-pocket portion foreign matter. An appearance inspection apparatus comprising illumination control means for alternately performing non-pocket illumination.
[0043]
According to the means 15, the pocket portion illumination and the non-pocket portion illumination are alternately performed, and the pocket portion foreign matter inspection and the non-pocket portion foreign matter inspection are alternately performed. Therefore, the foreign substance inspection of the whole PTP sheet provided with a pocket part and a non-pocket part alternately can be performed smoothly.
[0044]
Means 16. The visual inspection apparatus according to any one of the above means 1 to 15, wherein the image data processing by the pocket portion illumination is performed prior to the image data processing by the non-pocket portion illumination, and the non-pocket portion illumination is performed. An appearance inspection apparatus comprising image data processing means for removing the influence of the illumination for the pocket portion when performing image data processing.
[0045]
Since the pocket portion into which the tablet is inserted bulges in a protruding shape, there is a concern that it may be erroneously detected as a foreign matter attached to the non-pocket portion due to the swelling and shadow of the tablet. In this regard, according to the means 16, the pocket portion illumination is performed prior to the non-pocket portion illumination, and the pocket portion foreign matter inspection is performed prior to the non-pocket portion foreign matter inspection. When performing image data processing using the illumination for the image, image data processing is performed so as to eliminate the influence of the illumination for the pocket portion. Therefore, in the foreign matter inspection of the non-pocket portion, the influence of the foreign matter inspection result of the pocket portion is removed, and erroneous detection due to a shadow such as a protruding bulge of the pocket portion can be prevented.
[0046]
Means 17. 17. The appearance inspection apparatus according to any one of the above means 1 to 16, wherein the identification information uses ink that is transmissive to infrared light, and the illumination means can irradiate infrared light so that imaging can be performed. An appearance inspection apparatus characterized in that the means has sensitivity to infrared light.
[0047]
According to the means 17, when the reflected light of the identification information irradiated with light including infrared light is imaged by the imaging means having sensitivity to infrared light by the illumination means, the color of the sheet to which the identification information is attached Regardless of whether the identification information itself has a higher brightness than the foreign substance in the identification area where the identification information exists. For this reason, it is not necessary to change the illumination color tone or apply a color filter depending on the color of the identification information, and the optical setting can be simplified.
[0048]
Means 18. A PTP packaging machine comprising the appearance inspection apparatus according to any one of the above means 1 to 17.
[0049]
By providing the PTP packaging machine with the appearance inspection device specified by each of the above-described means like the means 18, the sheet can be inspected in the packaging process by the PTP packaging machine. Thereby, the PTP sheet in which the defect is found can be eliminated during or after packaging.
[0050]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, an embodiment will be described with reference to FIGS. 1 to 9.
[0051]
In this embodiment, as shown in FIG. 1, the inspection of the PTP sheet is carried out in the PTP packaging machine P1 by installing the PTP sheet appearance inspection device K1 in the PTP packaging machine P1.
[0052]
First, the PTP packaging machine P1 in which the appearance inspection of the PTP sheet is performed will be briefly described. The PTP packaging machine P1 automatically wraps tablets on a PTP sheet. Specifically, a film 3 having optical transparency such as polypropylene and polyvinyl chloride is fed into the heating plate 4a and the molding plate 4b by the film feed roll 3a and the tension rolls 3b and 3c, and the pocket portion 2a (see FIG. 2) is formed into the film 3. Thus, when the pocket part 2a corresponding to the shaping | molding board 4b is formed in the film 3, the flat non-pocket part 2b is formed between the pocket parts 2a. Therefore, the cross section along the longitudinal direction of the film 3 is such that the non-pocket portions 2b and the pocket portions 2a are alternately formed at predetermined intervals. In the non-pocket portion 2b of the film 3, for example, identification information 2c (see FIG. 6) such as characters, numbers, symbols, and patterns such as product descriptions (for example, “AB50”) is printed with black ink. Then, when the film 3 in which the pocket portion 2a is formed is sent to the bottom of the tablet insertion shutter 6 which is a tablet insertion means, the tablet 5 is automatically filled in each pocket portion 2a by the tablet insertion shutter 6. .
[0053]
Further, an aluminum sealing film 7 is fed through the tension rolls 7a and 7b onto the film 3 in which the tablets 5 are filled in the pockets 2a, and fixed with a pair of seal rolls 8 and 9 as sealing means. It is done. Thus, a film-like PTP sheet 10 in which the tablets 5 are filled in the pocket portions 2a is manufactured (see FIG. 4). After the film-like PTP sheet 10 is cut into a sheet shape, the film-like PTP sheet 10 is sequentially sent to a defective sheet discharge mechanism, a PTP sheet stacking mechanism, or the like (not shown).
[0054]
Next, the appearance inspection apparatus K1 for the PTP sheet 10 in which the pockets 2a are filled with the tablets 5 will be described with reference to the block diagram of FIG. The appearance inspection apparatus K1 includes an illumination unit 11 (see FIGS. 1 and 3), a CCD camera 12 as an imaging unit, an image processing unit 13 as an image data processing unit, and the like.
[0055]
The illuminating means 11 includes an LED (not shown) having a light amount adjustment function for illuminating with a set light amount based on the set illumination conditions. In this case, the illumination light quantity of the illumination unit 11 is set at any one of a plurality of levels under the control of the CPU 20 as the exposure control unit.
[0056]
As shown in FIG. 3, the image processing apparatus 13 includes a shading correction unit 14, an image memory 16, a shading correction table 18, a CPU 20, a determination memory 22, an input / output interface 23, an appearance inspection result and statistical data memory 24, a camera timing. It consists of the control means 26 and the like.
[0057]
As shown in FIG. 6, the CCD camera 12 receives reflected light from the L1, L2, and L3 within a certain area and captures it two-dimensionally. The captured two-dimensional image data is converted from analog signals for each pixel. It is converted into a digital signal and output. The image memory 16 sequentially stores digitized two-dimensional image data and stores it as two-dimensional image data. Here, before the two-dimensional image data is stored in the image memory 16 by the CPU 20, the shading correction means 14 performs shading correction according to the data in the shading correction table 18. In this shading correction, there is a technical limit to uniformly illuminating the entire PTP sheet 10 with the illumination light of the illumination means 11, and therefore, variations in brightness of video data caused by light contrast due to the difference in position are eliminated. This is done to correct.
[0058]
The image memory 16 stores not only multi-value data output from the shading correction means 14 but also data processed by the CPU 20 or in the course of image processing, for example, binarized data. The binarized two-dimensional image data stored in the image memory 16 is used for foreign object inspection.
[0059]
The CPU 20 as the image data processing means executes image data processing of various image processing programs, foreign object detection programs, and other programs while using the stored contents of the determination memory 22. The determination memory 22 stores threshold data (to be described later) for image processing by the CPU 20, and the presence / absence of a foreign object can be inspected by the threshold data.
[0060]
The input / output interface 23 is for transmitting a control signal to the PTP packaging machine P1 or receiving various signals such as operation signals from the PTP packaging machine P1. By transmitting and receiving these various signals, for example, the defective sheet discharge mechanism of the PTP packaging machine P1 can be controlled. The input / output interface 23 is used to transmit display data to the monitor 25, and can display two-dimensional image data, an appearance inspection result, and the like on the monitor 25.
[0061]
The inspection result and statistical data memory 24 stores inspection result data, statistical data obtained by probabilistically processing the inspection result data, and the like. These inspection result data and statistical data are also used for foreign object inspection, and can be displayed on the monitor 25 under the control of the CPU 20. The CPU 20 can also send a control signal to the PTP packaging machine P1 based on these appearance inspection result data and statistical data.
[0062]
The camera timing control means 26 controls the timing for taking in the two-dimensional image data captured by the CCD camera 12. Such timing is performed based on a signal from an encoder (not shown) provided in the PTP packaging machine P1.
[0063]
Here, the relationship between the CCD camera 12 and the illumination means 11 will be described. As shown in FIG. 1, the illumination unit 11 and the CCD camera 12 are arranged on the front side of the PTP sheet 10 after the sealing film 7 is attached. And the illumination means 11 illuminates the PTP sheet 10 with which the tablet 5 was filled in each pocket part 2a. The CCD camera 12 receives reflected light within a certain area and images it two-dimensionally.
[0064]
The tablets 5 filled one by one in each pocket portion 2 a have various forms and the like, and the reflectance of the pocket portions 2 a filled with the tablets 5 varies depending on the tablets 5. Moreover, the reflectance of the non-pocket part 2b (the aluminum sealing film described later) is different from the light reflectance of the pocket part 2a filled with the tablets 5. Further, the region including the portion to which the identification information 2c of the non-pocket portion 2b is attached (hereinafter referred to as identification region R1) is the region of the portion to which the identification information 2c of the non-pocket portion 2b is not attached (hereinafter referred to as background region R2). ) And the presence / absence of the identification information 2c, the light reflectance differs. Furthermore, the reflectance of light differs depending on whether or not there is a foreign substance in the identification region R1 of the non-pocket portion 2b and whether or not there is a foreign substance in the background region R2. Although the identification region R1 shown in FIG. 6 is described as a rectangular frame including the identification information 2c, the shape is not necessarily limited to the shape as long as the shape includes the identification information 2c. As described above, when the CCD camera 12 outputs a signal having a magnitude divided from the “0” stage to the “255” stage for each pixel, the CCD camera 12 reflects when the magnitude of the output signal is close to the “0” stage. There is little light quantity. On the other hand, when the output signal is close to the “255” stage, the amount of reflected light is large. Specifically, as shown in FIG. 5, when the illumination unit 11 irradiates the PTP sheet 10 with a certain amount of light, the CCD camera 12 that receives the reflected light from the identification region R1 having no foreign matter outputs an output value D2, The CCD camera 12 that receives the reflected light from the identification region R1 where there is a foreign object outputs an output value D1. Further, the CCD camera 12 that receives the reflected light from the background region R2 without foreign matter outputs an output value D4, and the CCD camera 12 that receives the reflected light from the background region R2 with foreign matter outputs an output value D3. Accordingly, in order to detect the presence or absence of foreign matter from the output value D1 and output value D2 of the CCD camera 12 that receives the reflected light from the identification region R1, the output value is larger than the output value D1 as the identification region condition (threshold condition). It is necessary to set a threshold value Q1 smaller than D2. Similarly, in order to detect the presence / absence of a foreign substance from the output value D3 and the output value D4 of the CCD camera 12 that receives the reflected light from the background region R2, the output is larger than the output value D3 as the background region condition (threshold condition). It is necessary to set a threshold value Q2 smaller than the value D4. Needless to say, the numerical values of the output signals and the output values D1 to D4 are merely examples.
[0065]
Thus, even if the illumination means 11 irradiates the PTP sheet 10 with a constant light amount, the light amounts reflected from the pocket portion 2a and the non-pocket portion 2b (the identification region R1 and the background region R2) are different. Therefore, in order to obtain the necessary amount of reflected light and detect the presence or absence of foreign matter, the pocket illumination conditions described later are set, and the identification area illumination condition and the background area illumination condition of the non-pocket illumination conditions are individually set. Is set. Under this setting, the illumination means 11 illuminates the reflected light amount pocket portion 2a and the non-pocket portion 2b (including the identification region R1 and the background region R2) with an appropriate light amount. In this case, the amount of reflected light from the identification region R1 of the PTP sheet 10 is grasped in advance, and the illumination time of the illumination means 11 is adjusted as appropriate. In addition, the diaphragm amount of the diaphragm member (not shown) that adjusts the amount of light received from the PTP sheet 10 by the CCD camera 12 is adjusted as appropriate. The pocket portion 2a bulges from the PTP sheet 10 to the front side, and the tablet 5 is contained in the pocket portion 2a. There is a concern that false detection will occur. In this regard, in the present embodiment, the image data processing by the illumination of the pocket portion 2a is performed prior to the image data processing by the illumination of the non-pocket portion 2b, and the pocket portion is processed during the image data processing of the non-pocket portion 2b. In order to remove the influence of the image data processing result 2a, a “mask” is applied.
[0066]
Note that “mask” data for removing the influence of the image data processing result of the pocket portion 2 a is stored in the image memory 16 in advance. However, when applying the “mask”, position correction is performed by conveying the PTP sheet 10. Specifically, as shown in FIG. 6, the CCD camera 12 receives the reflected light in the fixed area L1 under illumination for the pocket portion 2a by the illumination means 11, and is controlled by the camera timing control means 26. The first video signal is captured at a predetermined timing. Next, during the conveyance of the PTP sheet 10, the CCD camera 12 receives the reflected light in the fixed area L 2 under the illumination of the background area illumination condition of the non-pocket part 2 b of the illumination unit 11, and the camera timing control unit 26. Under the control, the second video signal is captured at a predetermined timing. Further, during the conveyance of the PTP sheet 10, the CCD camera 12 receives the reflected light in the certain area L 3 under illumination of the identification area illumination condition of the non-pocket portion 2 b of the illumination means 11, and the camera timing control means 26 Under the control, the third video signal is captured at a predetermined timing. In this case, there is a time difference between the capture timing of the first video signal, the capture timing of the second video signal, and the capture timing of the third video signal, and the PTP sheet 10 also exists between the time differences. Is transported. For this reason, a positional deviation occurs between the first video signal (image data) based on the pocket illumination and the second and third video signals (image data) based on the non-pocket illumination. In order to prevent the adverse effect of this positional deviation, a mask whose time difference is corrected is prepared so as to remove the influence of the image data processing result of the pocket portion 2a during the image data processing of the non-pocket portion 2b. In this case, the positions of the pocket portion 2a and the non-pocket portion 2b of the PTP sheet 10 are grasped in advance and used for mask molding. Further, the positional deviation amount due to the time difference between the first time, the second time, and the third time due to the conveyance speed of the PTP sheet 10 and the control of the camera timing control means 26 is grasped in advance and used for correcting the time difference. The areas L2 and L3 are transported in the transport direction by the time difference from the position of the area L1, but are displayed slightly shifted in the direction orthogonal to the transport direction for the sake of convenience in FIG. ing.
[0067]
Next, the appearance inspection of the PTP film 10 by the appearance inspection apparatus K1 in the PTP packaging machine P1 will be described with reference to the flowcharts shown in FIGS. In step S1, as shown in FIG. 7, foreign matter detection processing for the pocket portion 2a is performed. When inspecting the foreign matter in the pocket portion 2a, the pocket portion illumination conditions are set, and the illumination means 11 emits a predetermined amount of light. The CCD camera 12 receives the reflected light from the irradiated PTP sheet 10, and the CPU 20 processes the obtained image data to inspect for the presence of foreign matter.
[0068]
In step S2, foreign matter detection processing for the non-pocket portion 2b is performed. In the foreign matter inspection for the non-pocket portion 2b, the amount of light reflected from the PTP sheet 10 is different between the identification region R1 having identification information in the non-pocket portion 2b and the background region R2 having no identification information in the non-pocket portion 2b. To do. Therefore, in the case of foreign matter inspection of the non-pocket portion 2b, an identification area illumination condition for the identification area R1 or a background area illumination condition for the background area R2 is set. Under the set identification area illumination condition or background area illumination condition, the illumination means 11 emits light, the CCD camera 12 receives the reflected light from the irradiated PTP sheet 10, and the CPU 20 receives the obtained image data. Process and inspect for foreign matter. In the case of foreign matter inspection in the identification region R1, a threshold condition (threshold value Q1 in FIG. 5) for discriminating between identification information R1 with foreign matter and identification information R1 without foreign matter is set as the identification region condition. Is checked for the presence of foreign matter. In the case of the foreign matter inspection in the background region R2, a threshold condition (threshold value Q2 in FIG. 5) for determining the background region R2 with the foreign matter and the background region R2 without the foreign matter is set, and whether or not there is a foreign matter with respect to the background region R2. Inspected. Then, after the foreign matter detection process (S2) for the non-pocket part 2b, the foreign matter detection process (S1) for the pocket part 2a is performed again, and step S1 and step S2 are alternately repeated.
[0069]
Next, the specific content of the foreign matter detection process of the pocket part 2a is demonstrated with reference to the flowchart shown in FIG. First, as shown in FIG. 8, when the illumination means 11 illuminates the pocket portion 2a in step S11, a pocket portion illumination condition is set. First, it is determined whether or not the amount of reflected light from the pocket portion 2a is large. That is, it is determined whether or not the output signal of the CCD camera 12 that receives the reflected light is large. When it is determined that the amount of reflected light from the pocket portion 2a is small, the pocket portion illumination condition is set so that the amount of illumination light of the illumination means 11 increases. On the contrary, when it is determined that the amount of reflected light from the pocket portion 2a is large, the pocket portion illumination conditions are set so that the amount of illumination light of the illumination unit 11 decreases.
[0070]
More specifically, when the magnitude of the output signal of the CCD camera 12 that receives the reflected light from the pocket portion 2a is close to the maximum “255” level, for example, the illumination means 11 that illuminates the current pocket portion 2a has a large amount of illumination light. As too much, the illumination light quantity of the illumination means 11 is reduced. Therefore, in this case, as the pocket portion illumination condition, the illumination means is set so that the magnitude from the output signal of the CCD camera 12 that receives the reflected light from the pocket portion 2a is a predetermined amount smaller than the upper limit value. 11 illumination light quantity is set.
[0071]
Next, in step S <b> 12, a process for capturing an image for the pocket portion captured by the CCD camera 12 is performed. At that time, since the illumination means 11 illuminates the PTP sheet 10 according to the set pocket part illumination conditions, the CCD camera 12 receives an appropriate amount of reflected light, and a clear video signal is captured.
[0072]
More specifically, the CCD camera 12 receives reflected light in the fixed area L1 (see FIG. 6) and images it two-dimensionally. In this case, the first video signal is captured from the CCD camera 12 by the camera timing control means 26 under illumination for the pocket portion 2a. Thereafter, the CCD camera 12 converts the captured two-dimensional image data from an analog signal to a digital signal and outputs the converted signal to the image memory 16.
[0073]
In step S13, binarization processing for the pocket portion for inspecting the foreign matter in the pocket portion 2a is performed. In this case, the video signal which is multi-value data stored in the image memory 16 is binarized by a certain threshold value, and the binary image is obtained. A binary image has a bright level “1” when no light is blocked, whereas it has a dark level “0” when the light is completely blocked. When there is a large foreign matter other than an elongated foreign matter such as hair or fiber waste in the pocket portion 2a, the light is blocked and the dark level becomes “0”.
[0074]
In step S14, the pocket portion foreign matter detection process for inspecting the foreign matter in the pocket portion 2a is performed. In the foreign matter detection processing of the pocket portion 2a, in the case of foreign matter other than elongated foreign matter such as hair and fiber scraps, since the light does not transmit at all or almost no light, the image level becomes very dark level “0” and is judged as defective. The However, since the slender foreign matter such as hair and fiber waste has a bright level “1” because of its thinness, it is necessary to determine whether or not it is a slender foreign matter such as hair and fiber waste.
[0075]
In the case of determining whether or not the object is a slender foreign object, the perimeter calculation processing is performed based on the obtained binarized data, and it is determined whether the perimeter of each connected component (number of dots) is equal to or greater than the long block determination value dot. Is done. As a result of this determination, a connected component having a perimeter that is less than the long block determination value dot is determined to be a non-long block and the pocket portion 2a is determined to be good. However, the peripheral length of the connected component corresponding to the elongated foreign matter is very long because of the elongated length, and exceeds the long block determination value dot. Therefore, it is determined to be a long block and the pocket portion 2a is determined to be defective. .
[0076]
Next, the specific contents of the foreign matter detection process of the non-pocket portion 2b will be described with reference to the flowchart shown in FIG.
[0077]
In step S21 shown in FIG. 9, when the illumination unit 11 illuminates the background region R2 of the non-pocket portion 2b, the background region illumination condition is set. First, it is determined whether or not the amount of reflected light from the background region R2 is large. That is, it is determined whether or not the output signal from the CCD camera 12 that receives the reflected light from the background region R2 is large. When it is determined that the amount of reflected light from the background region R2 is small, the background region illumination condition is set so that the amount of illumination of the illumination unit 11 increases. On the other hand, when it is determined that the amount of reflected light from the background region R2 is large, the background region illumination condition is set so that the illumination light amount of the illumination unit 11 decreases.
[0078]
When setting the background area illumination conditions, if the magnitude of the output signal of the CCD camera 12 that receives the reflected light from the background area R2 is close to the maximum “255”, for example, the illumination means 11 has too much illumination light. Reduce the amount of illumination. Accordingly, in this case, the illumination light quantity is set so that the magnitude from the output signal of the CCD camera 12 that receives the reflected light from the background area R2 is a predetermined amount smaller than the upper limit value as the background area illumination condition. Is set.
[0079]
Next, in step S <b> 22, a background area image captured by the CCD camera 12 is captured. At that time, the illumination unit 11 illuminates the PTP sheet 10 according to the set background region illumination condition, and the CCD camera 12 receives an appropriate amount of reflected light, and a clear video signal is captured. The image capturing process of the background region R2 for the non-pocket part is the same as the image capturing process for the pocket part.
[0080]
In step S23, the binarization process of the background region R2 is performed in order to inspect the foreign matter in the background region R2 of the non-pocket portion 2b. The binarization process for the background region R2 is the same as the binarization process for the pocket portion, and the video signal that is multi-value data stored in the image memory 16 is binarized to obtain a binary image. . As a binary image, a light level is “1” when no light is blocked, whereas a dark level “0” is obtained when light is completely blocked.
[0081]
In step S24, a foreign matter detection process for the background region R2 for inspecting the foreign matter in the background region R2 of the non-pocket portion 2b is performed. In addition, since the position-corrected “mask” is applied when performing the video signal processing by illumination of the background region R2, erroneous detection due to a shadow such as a protruding bulge of the pocket portion 2a is prevented.
[0082]
The foreign object detection process in the background region R2 of the non-pocket part 2b is the same as the foreign object detection process in the pocket part 2a, and in the case of a large foreign object, the video level is dark level “0”, and is determined to be defective. Further, since the slender foreign matter has a bright level “1”, it is determined whether the slender foreign matter is slender. As a result of the determination of the elongated foreign matter, the background region R2 is determined to be good when it is determined to be the above-mentioned non-long block, whereas the background region R2 is determined to be defective when it is determined to be the above-described long block. .
[0083]
Next, in step S25, the identification area R1 in the background area R2 of the non-pocket portion 2b is specified. Since the position of the identification region R1 in the stationary state of the PTP sheet 10 is grasped in advance and the conveyance speed of the PTP sheet 10 is also grasped, the current position of the identification region R1 is recognized. Note that in the transported PTP sheet 10, the PTP sheet 10 may be displaced in a direction orthogonal to the transport direction. Therefore, when determining the identification region R1 and the background region R2 of the PTP sheet 10, a reference position is provided on the PTP sheet 10 for preventing a positional shift that occurs in a direction orthogonal to the transport direction of the PTP sheet. Then, the positional deviation between the detected reference position and the position of the end face of the PTP sheet 10 is calculated and corrected, and the position adjustment between the identification area R1 and the background area R2 is performed.
[0084]
Next, in step S26, when the illumination unit 11 illuminates the identification region R1 of the non-pocket portion 2b, the identification region illumination condition is set. It is determined whether the amount of reflected light from the identification region R1 is large. That is, it is determined whether or not the output signal from the CCD camera 12 that receives the reflected light from the identification region R1 is large. When it is determined that the amount of reflected light from the identification region R1 is small, the identification region illumination condition is set so that the illumination light amount of the illumination unit 11 increases. On the other hand, when it is determined that the amount of reflected light from the identification region R1 is large, the identification region illumination condition is set so that the illumination light amount of the illumination unit 11 decreases.
[0085]
When setting the identification area illumination condition, if the magnitude of the output signal of the CCD camera 12 that receives the reflected light from the identification area R1 is close to the maximum “255”, for example, the illumination means 11 has too much illumination light quantity. Reduce the amount of illumination. Therefore, in this case, the illumination light quantity is set so that the magnitude from the output signal of the CCD camera 12 that receives the reflected light from the identification area R1 is a value smaller by a predetermined amount than the upper limit as the identification area illumination condition. Is set. However, since the identification region R1 has a reflectance different from that of the background region R2, it is necessary to set an appropriate amount of light for illuminating each of the identification region R1. In this case, the set illumination condition of the identification area R1 or the illumination condition of the background area R2 does not necessarily match.
[0086]
Next, in step S27, an image for the identification area captured by the CCD camera 12 is captured. At that time, the illumination means 11 illuminates the PTP sheet 10 according to the set identification area illumination conditions, and the CCD camera 12 receives an appropriate amount of reflected light, and a clear video signal is captured. The image capturing process for the identification region R1 is the same as the image capturing process for the pocket portion.
[0087]
In step S28, binarization processing of the identification region R1 for inspecting the foreign matter in the identification region R1 of the non-pocket portion 2b is performed. The binarization processing of the identification region R1 is the same as the binarization processing of the pocket portion, and the video signal that is multi-value data stored in the image memory 16 is binarized to obtain a binary image. As a binary image, a light level is “1” when no light is blocked, whereas a dark level “0” is obtained when light is completely blocked.
[0088]
In step S29, the foreign substance detection process for the identification area for inspecting the foreign substance in the identification area is performed. In addition, since the position-corrected “mask” is applied when performing video signal processing by illumination of the identification region R1, erroneous detection due to shadows such as a protruding bulge of the pocket portion 2a is prevented.
[0089]
The foreign object detection process in the identification region R1 is the same as the foreign object detection process in the pocket portion 2a. When the foreign object is a large foreign object, the video level is dark level “0” and it is determined to be defective. Further, since the slender foreign matter has a bright level “1”, it is determined whether the slender foreign matter is slender. As a result of the determination of the elongated foreign matter, when it is determined that the non-long block described above, the identification region R1 is determined to be good, whereas when it is determined to be the above-described long block, the identification region R1 is determined to be defective. .
[0090]
In step S30, a comprehensive determination of the foreign object detection process is performed. This comprehensive determination is performed by comprehensive determination of the inspection result of the foreign matter attached to the pocket portion 2a and the inspection result of the foreign matter attached to the identification region R1 and the background region R2 of the non-pocket portion 2b. In this case, if there is a foreign object somewhere in the identification region R1, the background region R2, and the pocket portion 2a, it is determined as defective. Hereinafter, when the PTP sheet 10 is conveyed, the appearance inspection apparatus K1 inspects the foreign matters attached to the pocket portions 2a and the non-pocket portions 2b of all the PTP sheets 10.
[0091]
As described above in detail, the appearance inspection apparatus K1 of this embodiment illuminates the PTP sheet 10 using the illumination means 11 in order to inspect the presence or absence of foreign matter in the pocket portion 2a and the non-pocket portion 2b of the PTP sheet 10. The CCD camera 12 as the imaging means receives the reflected light from the PTP sheet 10 and processes the signal obtained from the CCD camera 12. Then, the CPU 20 as the foreign matter inspection means for the background area R2 sets the illumination conditions for the background area R2 (S21 in FIG. 9), the image capture process (S22 in FIG. 9), the binarization process (S23 in FIG. 9), and Foreign matter detection processing (S24 in FIG. 9) is performed. Then, the CPU 20 as the area discrimination means and the foreign matter inspection means of the identification area R1 specifies the identification area R1 of the PTP sheet 10 (S25 in FIG. 9), sets the illumination condition of the identification area R1 (S26 in FIG. 9), Image capturing processing (S27 in FIG. 9), binarization processing (S28 in FIG. 9) and foreign matter detection processing (S29 in FIG. 9) are performed, and based on these, foreign matter inspection (S30 in FIG. 9) is performed. Therefore, even if the reflectances from the identification region R1 and the background region R2 are different, the appearance inspection apparatus K1 applies the identification region R1 and the background region R2 based on the illumination condition of the identification region R1 or the illumination condition of the background region R2. Each attached foreign object can be inspected accurately.
[0092]
Further, the illumination for the pocket portion 2a is performed before the illumination for the non-pocket portion 2b, the foreign matter inspection of the pocket portion 2a is performed before the foreign matter inspection of the non-pocket portion 2b, and the foreign matter inspection of the non-pocket portion 2b is performed. During the image data processing, the influence of the foreign matter inspection result of the pocket portion 2a is removed. Thereby, the erroneous detection by the shadow of the protruding bulge of the pocket part 2a can be prevented.
[0093]
Also, one illumination means 10 alternately illuminates the pocket portion 2a and the non-pocket portion 2b, and one CCD camera 12 receives the reflected light from the PTP sheet 10, and is output from the CCD camera 12. Based on the above, the image processing device 13 processes the image data, and alternately performs the foreign matter inspection of the pocket portion 2a and the foreign matter inspection of the non-pocket portion 2b. Thereby, the foreign material test | inspection of the whole PTP sheet 10 provided with the pocket part 2a and the non-pocket part 2b alternately can be performed smoothly. Further, only one illumination means 10 and CCD camera 12 are required, and the manufacturing cost of the appearance inspection apparatus K1 is reduced.
[0094]
The present invention is not limited to the above-described embodiment, and various modifications can be made. For example, the CCD camera 12 and the illumination means 11 constituting the appearance inspection apparatus K1 are mounted in the PTP packaging machine P1 in FIGS. 1 and 2, but may be outside the PTP packaging machine P1.
[0095]
Further, when setting the identification region exposure condition (illumination condition) when exposing the identification region R1 or the background region exposure condition (illumination condition) when exposing the background region R2, the exposure time (the illumination time of the illumination means 11) is set. May be adjusted, or the aperture of the CCD camera 12 that receives the reflected light may be adjusted. In such a case, when the amount of reflected light from the identification region R1 or the background region R2 is small and the foreign matter inspection is not performed accurately, the exposure time is increased or the aperture amount of light received by the CCD camera 12 is small. The identification area exposure condition or the background area exposure condition is set so as to decrease. On the contrary, when the amount of reflected light from the identification region R1 or the background region R2 is large and the foreign matter inspection is not performed accurately, the exposure time is reduced or the amount of aperture of light received by the CCD camera 12 is increased. In addition, an identification area exposure condition or a background area exposure condition is set.
[0096]
In particular, the exposure time (including the illumination time) may be adjusted so that the magnitude of the output signal of the CCD camera 12 does not approach the upper limit (“255” stage), and the CCD that receives the reflected light. The amount of aperture of light from the camera 12 may be adjusted. Further, not only one of the illumination light amount of the illumination unit 11, the illumination time of the illumination unit 11, and the aperture amount of the light of the CCD camera 12, two or more items may be adjusted comprehensively. In short, the identification area exposure condition or the background area exposure condition is set so that the foreign substance inspection of the identification area or the background area is accurately performed.
[0097]
For the identification information 2c of the non-pocket portion 5b, ink having transparency to infrared light may be used. In that case, the illumination means 11 can irradiate infrared light, and the CCD camera 12 as the imaging means is changed so as to be sensitive to infrared light. As the ink having transparency to infrared light, for example, ink such as Alcolor VA (trade name) manufactured by Dainippon Ink & Chemicals, Inc. is used.
[0098]
If comprised in this way, when the reflected light of the identification information irradiated with the light containing infrared light by the illumination means 11 is imaged by the CCD camera 12 having sensitivity to the infrared light, the identification information 2c is described. Regardless of the color of the PTP sheet 10, a video signal in which the brightness of the identification information 2c itself is higher than the foreign matter in the identification area 2c where the identification information 2c exists is output. For this reason, it is not necessary to change the illumination color tone or apply a color filter according to the color of the identification information 2c, and the optical setting can be simplified.
[0099]
Further, the appearance inspection apparatus K1 may be disposed on the upstream side of the seal roller 9.
[Brief description of the drawings]
FIG. 1 is a diagram showing a functional configuration of a PTP sheet packaging machine.
FIG. 2 is a perspective view showing a part of the PTP packaging machine and showing a sheet being conveyed.
FIG. 3 is a block diagram showing an overall configuration of a PTP sheet appearance inspection apparatus.
FIG. 4 is an enlarged cross-sectional view of a PTP sheet with a tablet in a pocket.
FIG. 5 is an explanatory diagram for explaining a relationship between an output value from a CCD camera and a threshold value.
FIG. 6 is an explanatory diagram for explaining a relationship between conveyance of a PTP sheet and imaging by a CCD camera.
FIG. 7 is a flowchart showing an outline of foreign matter detection processing of a PTP sheet appearance inspection apparatus.
FIG. 8 is a flowchart illustrating foreign object detection processing in a pocket portion of a PTP sheet.
FIG. 9 is a flowchart illustrating foreign object detection processing for a non-pocket portion of a PTP sheet.
[Explanation of symbols]
2a ... pocket part, 2b ... non-pocket part, 5 ... tablet, 7 ... film, 10 ... PTP sheet, 11 ... illumination means, 12 ... CCD camera as imaging means, 14 ... shading correction means, 13 ... image data processing means Image processing apparatus, 16 ... image memory, 18 ... shading correction table, 20 ... CPU as exposure control means and image data processing means, 22 ... determination memory, 23 ... input / output interface, 24 ... inspection result and statistical data Memory, 25 ... Monitor, 26 ... Camera timing control means, P1 ... PTP packaging machine, K1 ... Appearance inspection device, Q1 ... Threshold value as threshold condition, Q2 ... Threshold value as threshold condition, S1 ... Pocket area foreign matter inspection, S2 ... Non-pocket area foreign matter inspection, S11 ... Setting illumination conditions for pocket part, S12 ... Pocket part image Capture processing, S13... Binarization processing for pocket portion, S14... Foreign matter detection processing for pocket portion, S21... Illumination condition setting for non-pocket portion background region, S22. ... binarization processing of the non-pocket background area, S24 ... foreign object detection processing of the non-pocket background area, S26 ... lighting condition setting of the non-pocket identification area, S27 ... image of the non-pocket identification area Ingestion processing, S28: binarization processing of the non-pocket part identification area, S29: foreign object detection processing of the non-pocket part identification area, S30: comprehensive determination.

Claims (14)

ポケット部及び当該ポケット部以外の非ポケット部を備え、裏側に密封フィルムの貼着されてなるPTPシート上に、表側に配置された照明手段が光を照射し、照射されたPTPシートからの光を、表側に配置された撮像手段が受光し、得られた画像データを異物検査手段が処理して異物の有無を検査する錠剤を包装したPTPシートの外観検査装置において、
前記非ポケット部の識別情報が付された識別領域と、前記非ポケット部の識別情報が付されていない背景領域とを判別する領域判別手段を備え、
前記領域判別手段の判断の下、前記異物検査手段は、前記非ポケット部の識別情報が付された識別領域に対しての識別領域条件による異物検査と、前記非ポケット部の前記識別情報が付されていない背景領域に対しての背景領域条件による異物検査とを切り換えて行い、
前記異物検査手段は、PTPシートが連続的に搬送される際における、前記識別領域の照明に基づく画像データと、前記背景領域の照明に基づく画像データとの間の前記PTPシートの搬送による位置ずれを、前記各異物検査を行うために、PTPシートの搬送速度に基づき修正することを特徴とする錠剤を包装したPTPシートの外観検査装置。
On the PTP sheet which has a pocket part and a non-pocket part other than the pocket part, and a sealing film is attached to the back side, the illumination means arranged on the front side irradiates light, and the light from the irradiated PTP sheet In the appearance inspection apparatus for a PTP sheet in which tablets are packaged in which the imaging means arranged on the front side receives light and the obtained image data is processed by the foreign matter inspection means to check for the presence of foreign matter.
An area discriminating unit for discriminating between an identification area with identification information of the non-pocket part and a background area without identification information of the non-pocket part;
Under the judgment of the area discriminating means, the foreign substance inspecting means attaches the foreign substance inspection according to the identification area condition to the identification area to which the identification information of the non-pocket part is attached, and the identification information of the non-pocket part. Switch the foreign object inspection according to the background area condition for the background area that is not done,
The foreign substance inspection means, definitive when the PTP sheet is continuously conveyed, the image data based on illumination of the identified region, the position by the transport of the PTP sheet between the image data based on the illumination of the background area A device for inspecting appearance of a PTP sheet packaged with tablets, wherein the displacement is corrected based on the conveyance speed of the PTP sheet in order to perform each foreign substance inspection .
前記照明手段の照明光量が調整されることにより、前記識別領域を照明するための識別領域照明条件または前記背景領域を照明するための背景領域照明条件が設定されることを特徴とする請求項1に記載の錠剤を包装したPTPシートの外観検査装置。  The identification area illumination condition for illuminating the identification area or the background area illumination condition for illuminating the background area is set by adjusting the amount of illumination light of the illumination means. A PTP sheet visual inspection device in which the tablets according to 1 are packaged. 前記撮像手段の出力信号が調整されることにより、前記識別領域を照明するための識別領域照明条件または前記背景領域を照明するための背景領域照明条件が設定されることを特徴とする請求項1又は2に記載の錠剤を包装したPTPシートの外観検査装置。  2. An identification area illumination condition for illuminating the identification area or a background area illumination condition for illuminating the background area is set by adjusting an output signal of the imaging means. Or the external appearance inspection apparatus of the PTP sheet which packaged the tablet of 2. 前記識別領域照明条件または前記背景領域照明条件が設定される際に、前記撮像手段の出力信号が上限値に近づかないように設定されることを特徴とする請求項3に記載の錠剤を包装したPTPシートの外観検査装置。  The tablet according to claim 3, wherein the output signal of the imaging unit is set so as not to approach an upper limit value when the identification area illumination condition or the background area illumination condition is set. PTP sheet visual inspection device. 前記PTPシートからの光でもって、前記撮像手段が露光される際の露光時間が調整されることにより、前記識別領域を露光するための識別領域露光条件または前記背景領域を露光するための背景領域露光条件が設定されることを特徴とする請求項1乃至4のいずれかに記載の錠剤を包装したPTPシートの外観検査装置。  The exposure time when the imaging means is exposed is adjusted with light from the PTP sheet, so that an identification area exposure condition for exposing the identification area or a background area for exposing the background area 5. An appearance inspection apparatus for a PTP sheet packaged with tablets according to claim 1, wherein exposure conditions are set. 前記PTPシートからの光でもって、前記撮像手段が露光される際の光の絞り量が調整されることにより、前記識別領域を露光するための識別領域露光条件または前記背景領域を露光するための背景領域露光条件が設定されることを特徴とする請求項1乃至5のいずれかに記載の錠剤を包装したPTPシートの外観検査装置。  With the light from the PTP sheet, by adjusting the aperture amount of the light when the imaging means is exposed, the identification area exposure condition for exposing the identification area or the background area is exposed. The background region exposure condition is set, and the appearance inspection apparatus for a PTP sheet packaging tablets according to any one of claims 1 to 5. 前記異物検査手段は、前記識別領域を識別領域条件でもってまたは前記背景領域を背景領域条件でもって2値化する2値化手段を備えることを特徴とする請求項1乃至6のいずれかに記載の錠剤を包装したPTPシートの外観検査装置。  The said foreign substance inspection means is provided with the binarization means which binarizes the said identification area | region on identification area conditions or the said background area | region on background area conditions. Device for inspecting the appearance of PTP sheets packed with tablets. 前記識別領域条件として、前記撮像手段から得られる画像データのレベルおいて、異物がある識別領域と異物がない識別情報とを判別する閾値条件が設定されることを特徴とする請求項7に記載の錠剤を包装したPTPシートの外観検査装置。  8. The threshold condition for discriminating between an identification area with a foreign substance and identification information without a foreign substance is set as the identification area condition at the level of image data obtained from the imaging means. Device for inspecting the appearance of PTP sheets packed with tablets. 前記背景領域条件として、前記撮像手段から得られる画像データのレベルおいて、異物がある背景領域と異物がない背景領域とを判別する閾値条件が設定されることを特徴とする請求項7又は8に記載の錠剤を包装したPTPシートの外観検査装置。  9. The threshold condition for determining a background area with a foreign object and a background area without a foreign object is set as the background area condition at a level of image data obtained from the imaging means. A PTP sheet visual inspection device in which the tablets according to 1 are packaged. 前記異物検査手段は、前記識別領域の反射光量に対応する撮像手段の出力値を予め把握していることを特徴とする請求項1乃至9のいずれかに記載の錠剤を包装したPTPシートの外観検査装置。  The external appearance of the PTP sheet packaging tablets according to any one of claims 1 to 9, wherein the foreign matter inspection means grasps in advance the output value of the imaging means corresponding to the amount of reflected light of the identification region. Inspection device. 前記ポケット部の異物を検査するための、ポケット部照明条件によるポケット部用照明と、前記非ポケット部の異物を検査するための、非ポケット部照明条件による非ポケット部用照明とを交互に行う照明制御手段を備えることを特徴とする請求項1乃至10のいずれかに記載の錠剤を包装したPTPシートの外観検査装置。  Illumination for the pocket portion under the pocket portion illumination condition for inspecting the foreign matter in the pocket portion and non-pocket portion illumination under the non-pocket portion illumination condition for inspecting the foreign matter in the non-pocket portion are alternately performed. 11. An appearance inspection apparatus for a PTP sheet packaged with tablets according to claim 1, further comprising an illumination control means. 前記ポケット部用照明による画像データ処理を、前記非ポケット部用照明による画像データ処理よりも先に行い、前記非ポケット部用照明による画像データ処理を行う際に、前記ポケット部用照明の影響を除くようにする画像データ処理手段を備えることを特徴とする請求項1乃至11のいずれかに記載の錠剤を包装したPTPシートの外観検査装置。  The image data processing by the pocket illumination is performed prior to the image data processing by the non-pocket illumination, and the influence of the pocket illumination is performed when the image data processing by the non-pocket illumination is performed. 12. An appearance inspection apparatus for a PTP sheet packaged with tablets according to claim 1, further comprising image data processing means to be excluded. 前記識別情報は、赤外光に対し、透過性を有するインクが使用されており、前記照明手段が赤外光を照射でき、撮像手段が赤外光に対し感度を有することを特徴とする請求項1乃至12のいずれかに記載の錠剤を包装したPTPシートの外観検査装置。  The identification information uses ink that is transparent to infrared light, the illumination means can irradiate infrared light, and the imaging means has sensitivity to infrared light. Item 13. An appearance inspection apparatus for a PTP sheet in which the tablet according to any one of Items 1 to 12 is packaged. 請求項1乃至13のいずれかに記載の錠剤を包装したPTPシートの外観検査装置を備えたことを特徴とするPTP包装機。  14. A PTP packaging machine comprising a PTP sheet appearance inspection device in which the tablet according to claim 1 is packaged.
JP2003108791A 2003-04-14 2003-04-14 Appearance inspection apparatus for PTP sheet packed with tablets and PTP packaging machine Expired - Fee Related JP4034222B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003108791A JP4034222B2 (en) 2003-04-14 2003-04-14 Appearance inspection apparatus for PTP sheet packed with tablets and PTP packaging machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003108791A JP4034222B2 (en) 2003-04-14 2003-04-14 Appearance inspection apparatus for PTP sheet packed with tablets and PTP packaging machine

Publications (2)

Publication Number Publication Date
JP2004317188A JP2004317188A (en) 2004-11-11
JP4034222B2 true JP4034222B2 (en) 2008-01-16

Family

ID=33470147

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003108791A Expired - Fee Related JP4034222B2 (en) 2003-04-14 2003-04-14 Appearance inspection apparatus for PTP sheet packed with tablets and PTP packaging machine

Country Status (1)

Country Link
JP (1) JP4034222B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5482721B2 (en) * 2011-04-22 2014-05-07 ウシオ電機株式会社 Analysis equipment
JP6755696B2 (en) * 2016-04-20 2020-09-16 株式会社東芝 PTP sheet inspection device, PTP sheet inspection method
JP6273339B1 (en) * 2016-12-08 2018-01-31 Ckd株式会社 Inspection device and PTP packaging machine

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0693776B2 (en) * 1987-04-03 1994-11-16 協和醗酵工業株式会社 High-precision appearance video inspection method
JP2957744B2 (en) * 1991-04-10 1999-10-06 三菱電線工業株式会社 Inspection method of printed mark on striatum
JPH08105799A (en) * 1994-10-05 1996-04-23 Olympus Optical Co Ltd Color classification device
JP3300546B2 (en) * 1994-09-20 2002-07-08 新日本製鐵株式会社 Steel sheet flaw detection method
JP4060401B2 (en) * 1997-07-17 2008-03-12 東芝ソリューション株式会社 Defect detection method and system
JP3819597B2 (en) * 1998-08-03 2006-09-13 シーケーディ株式会社 PTP seal inspection device
JP3549752B2 (en) * 1998-12-04 2004-08-04 シーケーディ株式会社 PTP sheet appearance inspection device and PTP packaging machine
JP2000332500A (en) * 1999-05-17 2000-11-30 Matsushita Electric Ind Co Ltd Method for setting illumination of electronic component
JP2001091469A (en) * 1999-09-21 2001-04-06 Olympus Optical Co Ltd Surface defect inspection device
JP4256083B2 (en) * 2001-07-09 2009-04-22 パナソニック株式会社 Image processing device

Also Published As

Publication number Publication date
JP2004317188A (en) 2004-11-11

Similar Documents

Publication Publication Date Title
CN110023742B (en) Inspection device and PTP packaging machine
JP4523474B2 (en) Defect inspection device and PTP packaging machine
JP4368808B2 (en) Appearance inspection device and PTP packaging machine
JP4173184B2 (en) PTP package appearance inspection equipment
JP4332122B2 (en) Appearance inspection device and PTP packaging machine
JP2003215047A (en) Visual inspection apparatus and ptp packaging machine equipped with the same
JP5697168B2 (en) Inspection device and PTP packaging machine
JP3929647B2 (en) Tablet appearance inspection device and PTP packaging machine
JP3344995B2 (en) Tablet surface inspection device
JP4472499B2 (en) Defect inspection device and PTP packaging machine
JP4034222B2 (en) Appearance inspection apparatus for PTP sheet packed with tablets and PTP packaging machine
JP3557081B2 (en) Appearance inspection method for stamped tablets and appearance inspection device for stamped tablets
JP2003291929A (en) Inspection method and apparatus for single-dose package sheet
JP4477516B2 (en) Inspection device and PTP packaging machine
JP3549752B2 (en) PTP sheet appearance inspection device and PTP packaging machine
JP4201143B2 (en) Appearance inspection device and PTP packaging machine equipped with appearance inspection device
JP2004317187A (en) Visual inspection apparatus and ptp packaging machine
JP2002139444A (en) Visual inspection apparatus for tablet and ptp packaging machine
JP4173257B2 (en) Sheet visual inspection device and PTP packaging machine
JP4034033B2 (en) Tablet appearance inspection device and PTP packaging machine
CN114945819A (en) Inspection apparatus, package sheet manufacturing apparatus, and inspection method
JP2000266514A (en) Method and device for inspecting metallic sheet
JP3461136B2 (en) Tablet visual inspection device and PTP packaging machine
JP4788870B2 (en) Defect inspection device and PTP packaging machine
JP2004077495A (en) Visual inspection device

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20050808

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20051025

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20051121

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060516

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060612

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20070130

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20070307

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: 20071023

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20071024

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

Free format text: PAYMENT UNTIL: 20101102

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

Ref document number: 4034222

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20101102

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20111102

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20111102

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20121102

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20121102

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20131102

Year of fee payment: 6

LAPS Cancellation because of no payment of annual fees