JP2004317188A - Visual inspection apparatus and ptp packaging machine - Google Patents

Visual inspection apparatus and ptp packaging machine Download PDF

Info

Publication number
JP2004317188A
JP2004317188A JP2003108791A JP2003108791A JP2004317188A JP 2004317188 A JP2004317188 A JP 2004317188A JP 2003108791 A JP2003108791 A JP 2003108791A JP 2003108791 A JP2003108791 A JP 2003108791A JP 2004317188 A JP2004317188 A JP 2004317188A
Authority
JP
Japan
Prior art keywords
illumination
area
identification
pocket portion
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.)
Granted
Application number
JP2003108791A
Other languages
Japanese (ja)
Other versions
JP4034222B2 (en
Inventor
Katsunori Ishigure
克範 石榑
Yukihiro Taguchi
幸弘 田口
Tei Inoguchi
禎 井野口
Takashi Wakita
隆司 脇田
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)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a visual inspection apparatus capable of certainly detecting foreign matters even when there is identification data in the sheet part other than the pocket part of a PTP sheet. <P>SOLUTION: The visual inspection apparatus K1 is constituted so that the presence of foreign matters is inspected after tablets 5 are charged in the respective pocket parts 2 formed on the PTP sheet 10. The pocket parts 2a and non-pocket parts 2b of the PTP sheet 10 are illuminated by an illumination means 11 and reflected light is detected by a CCD (charge coupled device) camera 12 while the image data obtained from the reflected light is processed by an image processor 13. A CPU (central processing unit) 20 performs the setting of the illumination condition of the background region R2 of the non-pocket parts 2b (S21), image capture processing (S22), binarization processing (S23) and foreign matter detecting processing (S24). Further, the CPU 20 performs the setting of the illumination condition of an identification region R1 (S26), image capture processing (S27), binarization processing (S28) and foreign matter detecting processing (S29) to perform the inspection of foreign matter on the basis of these processings (S30). <P>COPYRIGHT: (C)2005,JPO&NCIPI

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]
TECHNICAL FIELD OF THE INVENTION
The present invention belongs to the technical field including a visual inspection device for inspecting a PTP sheet and a PTP packaging machine equipped with the visual inspection device.
[0002]
[Prior art]
Generally, a PTP sheet is composed of a container film in which a pocket portion into which a tablet or the like is put is formed, and a sealing film fixed to the container film so as to seal the opening side of the pocket portion in the container film. ing. Then, before the container film and the sealing film are fixed to each other, a tablet or the like is put into the pocket portion.
[0003]
As a PTP sheet appearance inspection apparatus configured as described above, there is known an apparatus capable of inspecting the PTP sheet for the presence or absence of foreign matter such as hair (see Patent Document 1).
[0004]
Further, as another tablet inspection device, there is one in which an imaging unit images a tablet, binarizes image information from the tablet, and inspects the tablet for the presence or absence of a defect or foreign matter (see Patent Document 2). ).
[0005]
[Patent Document 1]
JP-A-11-39484
[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 area and the tablet area of the image for determining foreign matter inspection are masked, and it is determined whether or not there is a foreign matter such as hair in the unmasked portion. ing. Therefore, even if there is a foreign substance in a color character area or the like, the presence or absence of the foreign substance cannot be detected because the mask is masked.
[0007]
Further, in the case of the tablet inspection apparatus described in Patent Literature 2, the inspection is only for inspecting the presence or absence of a defect or foreign matter on the tablet, and is not an inspection 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 numerals such as product descriptions is printed in black ink on a sheet portion other than the pocket portion of the PTP sheet. This 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. Therefore, when the identification information is attached to the sheet portion other than the pocket portion, the foreign material is not detected in the sheet portion, and the foreign material detection of the entire PTP sheet is not always sufficient.
[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 identification information is present in a sheet portion other than a pocket portion of a PTP sheet. Providing is one of the main purposes.
[0010]
Means for Solving the Problems and Effects of the Invention
The characteristic means capable of achieving the above object will be described below. In addition, characteristic actions and effects of each means will be described as necessary.
[0011]
Means 1. The illuminating means irradiates light on the PTP sheet provided with the pocket portion and the non-pocket portion other than the pocket portion, the imaging means receives the light from the illuminated PTP sheet, and the obtained image data is used as the foreign matter inspection means. In a visual inspection device that processes and inspects for the presence of foreign matter,
The foreign substance inspection unit is configured to perform a foreign substance inspection based on an identification area condition for an identification area to which identification information of the non-pocket portion is attached, and to perform a foreign substance inspection on a background area to which the identification information of the non-pocket part is not attached. An appearance inspection apparatus characterized by switching between a foreign substance inspection based on a background area condition and performing the inspection. still. The “identification information” is, for example, a character, a symbol, a pattern, or the like attached to represent a product name, a product description, or the like, and may be described by printing or the like, or may be attached in other forms. .
[0012]
According to the above means 1, the foreign matter inspection means inspects 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, when the illumination means illuminates the identification area and the imaging means captures an image, 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 a sufficient foreign substance cannot be detected. However, by taking measures such as an increase in the amount of illumination of the illuminating means or a change in the level of a threshold value during image data processing under the identification area condition, foreign substances in the identification area can be reliably detected.
[0013]
Further, the foreign matter inspection means inspects foreign matter in the background area of the non-pocket portion under the background area condition. Since identification information is not added to the background area, when the illumination unit illuminates the background area and the imaging unit captures an image, the amount of light received by the imaging unit from the identification region is large. Therefore, the image data obtained from the imaging means reaches a sufficient level, and foreign matter in the background area can be reliably detected. However, similarly to the case where the background area condition is the identification area 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 is rather difficult to detect the foreign matter in the background area. Therefore, by appropriately setting the background region condition to be different from the identification region condition, it is possible to reliably detect the foreign matter in the background region.
[0014]
Means 2. The illuminating means irradiates light on the PTP sheet provided with the pocket portion and the non-pocket portion other than the pocket portion, the imaging means receives the light from the illuminated PTP sheet, and the obtained image data is used as the foreign matter inspection means. In a visual inspection device that processes and inspects for the presence of foreign matter,
An identification area to which the identification information of the non-pocket portion is attached, and an area determination unit that determines a background area to which the identification information of the non-pocket portion is not attached,
Under the judgment of the area discriminating means, a foreign substance inspection based on an identification area condition for an identification area to which the identification information of the non-pocket portion is attached, and a foreign substance inspection for a background area to which the identification information of the non-pocket section is not attached. An appearance inspection apparatus characterized in that the inspection is performed by switching between a foreign matter inspection based on background area conditions.
[0015]
According to the above means 2, the area determining means determines the identification area to which the identification information of the non-pocket portion is attached and the background area to which the identification information of the non-pocket portion is not attached. The foreign matter inspection means inspects foreign matter in the identification area under the identification area condition in the manner 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 above means 1. Therefore, according to the present invention, it is possible to reliably detect foreign matter in the identification area and the background area.
[0016]
Means 3. In the appearance inspection apparatus according to the above means 1 or 2, the foreign matter inspection means includes a 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 the above description.
[0017]
According to the means 3, the identification area to which the identification information such as the character and the symbol is attached is binarized based on the identification area condition. In this case, when the illuminating unit illuminates the identification area and the imaging unit captures an image, even if the amount of light received by the imaging unit from the identification area is small, the image data obtained from the imaging unit may have a level adjusted threshold value, for example. The binarization is performed based on the identification area condition. Thereby, the foreign matter in the identification area is reliably detected.
[0018]
In addition, a background area to which no identification information is attached is binarized by 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. Foreign matter in the background area can be reliably detected. However, if the image data is processed with the background area condition having the same threshold value as the identification area condition, the amount of light received by the imaging unit is too large, so that it is rather difficult to detect foreign matter in the background area. Therefore, when the image data is binarized, the region condition is appropriately set so as to be different from the identification region condition, so that the foreign matter in the background region is reliably detected.
[0019]
Means 4. In the visual inspection device according to the means 3, a threshold condition for discriminating between an identification area with a foreign substance and an identification area without a foreign substance is set as the identification area condition at the level of the image data obtained from the imaging means. A visual inspection apparatus characterized by the above-mentioned.
[0020]
According to the means (4), the identification area having the foreign matter and the identification area having no foreign matter are reliably determined based on the threshold condition of the identification area condition.
[0021]
Means 5. In the visual inspection device according to the above means 3, as the background area condition, a threshold condition for discriminating a background area having a foreign substance and a background area having no foreign substance is set in a level of image data obtained from the imaging means. A visual inspection device characterized by being performed.
[0022]
According to the means 5, the background region having the foreign matter and the background region having no foreign matter are reliably determined based on the threshold value of the background region condition.
[0023]
Means 6. The appearance inspection apparatus according to any one of the above means 1 to 4, wherein the foreign matter inspection means grasps in advance an output value of the imaging means corresponding to a reflected light amount of the identification area.
[0024]
Since the identification information is attached to the identification area of the non-pocket portion, 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 a sufficient foreign substance 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 level of the threshold value in the image data processing under the identification area condition are taken. As a result, foreign matter in the identification area can be reliably detected.
[0025]
Means 7. 7. The appearance inspection apparatus according to claim 2, wherein the area determination unit includes a position adjustment unit that adjusts a position when determining the identification area and the background area. apparatus. As a method of position adjustment, a reference position is provided on the PTP sheet to prevent a position shift occurring in a direction orthogonal to the transport direction of the PTP sheet, and the amount of position shift between the position of the end face of the PTP sheet and the reference position is determined. It may be calculated and corrected.
[0026]
According to the above means 7, since the position adjusting means adjusts the position when judging the identification area and the background area, even if the position of the PTP sheet changes, the area judging means makes sure the identification area and the background area. Can be determined. This makes it possible to reliably detect foreign matter in the identification area and the background area.
[0027]
Means 8. In the appearance inspection device according to any one of the above means 1 to 7, the foreign matter inspection means may be 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 above means 8, at the time of foreign substance inspection of the identification area, illumination based on the identification area illumination condition for illuminating the identification area is performed. 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. Therefore, the image data obtained from the imaging means does not reach a sufficient level, and there is a possibility that a sufficient foreign substance cannot be detected. However, by taking measures such as increasing the amount of illumination light of the illumination means under the set identification area illumination condition, foreign substances in the identification area can be reliably detected.
[0029]
Further, at the time of the foreign substance inspection of the background area, illumination based on the background area illumination condition for illuminating the background area is performed. Since no identification information is given to the background area, the amount of light received by the imaging unit is large. Therefore, the image data obtained from the imaging means reaches a sufficient level, and foreign matter in the background area can be reliably detected. However, similarly to 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, so that it is rather difficult to detect the foreign matter in the background area. Therefore, by appropriately setting the background region illumination condition to be different from the identification region illumination condition, it is possible to reliably detect the foreign matter in the background region.
[0030]
Means 9. In the appearance inspection device according to any one of the above means 1 to 8, the illumination light amount of the illumination means is adjusted to illuminate the identification information illumination condition for illuminating the identification area or the background area. An appearance inspection apparatus, wherein lighting conditions for background information are set.
[0031]
According to the means 9, the illumination information amount of the illumination means is adjusted, so that the identification information illumination condition or the background area illumination condition is set. In this case, when the amount of light received from the identification region or the background region received by the imaging unit is small and the foreign matter inspection is not performed accurately, the identification information illumination condition or the background region illumination condition is set so that the illumination amount of the illumination unit increases. Are set respectively. Conversely, when the amount of light received from the identification area or the background area received by the imaging means is large and the foreign substance 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. Thus, even if the light reflectance of the identification area or the background area is different, the illumination amount of the illuminating means for illuminating the identification area or the background area becomes appropriate, so that the foreign matter in the identification area or the background area can be accurately inspected. .
[0032]
Means 10. In the appearance inspection apparatus according to any one of the means 1 to 9, the output signal of the imaging unit is adjusted to set the identification information illumination condition or the background information illumination condition. Appearance inspection device.
[0033]
According to the above 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 phenomenon that the output signal of the imaging unit approaches, for example, the upper limit and the foreign substance inspection cannot be performed does not occur, and no trouble occurs in the foreign substance inspection.
[0034]
Means 11. In the visual inspection device according to the means 10, when the identification information illumination condition or the background information illumination condition is set, an output signal of the imaging unit is set so as not to approach an upper limit value. Features a visual inspection device.
[0035]
According to the means 11, the identification area lighting condition or the background area lighting condition is set so that the output signal of the imaging means does not approach the upper limit value. Accordingly, when the illumination unit illuminates under the set identification region illumination condition or the background region illumination condition, the output signal of the imaging unit does not approach the upper limit value, so that the foreign substance inspection is smoothly performed.
[0036]
Means 12. In the visual inspection device according to any one of the means 1 to 11, the exposure time when the imaging unit is exposed to light from the PTP sheet is adjusted to expose the identification area. Wherein the identification region exposure condition or the background region exposure condition for exposing the background region is set.
[0037]
According to the means 12, by adjusting the exposure time when the imaging means is exposed, the identification information exposure condition or the background information exposure condition is set. In this case, when the amount of light received from the identification area or the background area received by the imaging unit is small and the foreign substance inspection is not accurately performed, the identification information exposure condition or the background information exposure condition is set so that the exposure time increases. Are set respectively. Conversely, when the amount of light received from the identification area or the background area received by the imaging unit is large and the foreign substance inspection is not performed accurately, the identification information exposure condition or the background information exposure condition is set so that the exposure time is reduced. Are set respectively. Thereby, even if the reflectance of the identification area or the background area is different, the exposure time for illuminating the identification area or the background area is adjusted, so that the presence or absence of foreign matter in the identification area or the background area can be accurately inspected. .
[0038]
Means 13. In the visual inspection device according to any one of the above means 1 to 12, the light from the PTP sheet is used to adjust the aperture of the light when the imaging means is exposed, thereby exposing the identification area. An appearance area inspection condition for setting an identification area exposure condition or a background area exposure condition for exposing the background area.
[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 the light received by the imaging means. In this case, 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 performed accurately, the identification information exposure condition or the background information is set such that the aperture of the light is reduced. Exposure conditions are set respectively. Conversely, when the amount of light received from the identification area or the background area received by the imaging means is large and the foreign substance inspection is not performed accurately, the identification information exposure condition or the background information is adjusted so that the aperture of the light increases. Each exposure condition is set. Thus, even if the light reflectance or the like of the identification area or the background area is different, the aperture of the light is adjusted, so that the presence or absence of foreign matter in the identification area or the background area can be accurately inspected.
[0040]
Means 14. In the appearance inspection device according to any one of the above means 1 to 13, the foreign matter inspection means may be configured such that, when the PTP sheet is continuously conveyed, image data based on illumination of the identification area, and image data of the background area. An appearance inspection apparatus, which corrects a positional shift between the PTP sheet and image data based on illumination due to conveyance of the PTP sheet.
[0041]
Since the PTP sheet is continuously conveyed, a positional shift occurs between the image data based on the illumination for the pocket and the image data based on the illumination for the non-pocket. However, according to the means 14, since the position shift due to the conveyance of the PTP sheet is corrected, it is possible to perform the detection with higher accuracy.
[0042]
Means 15. In any one of the above means 1 to 14, illumination for the pocket portion under the illumination condition of the pocket portion for inspecting the foreign material in the pocket portion, and illumination of the non-pocket portion for inspecting the foreign material in the non-pocket portion may be performed. An appearance inspection apparatus comprising: an illumination control unit that alternately performs illumination for a non-pocket portion.
[0043]
According to the means 15, the illumination for the pocket portion and the illumination for the non-pocket portion are alternately performed, and the inspection of foreign matter in the pocket portion and the inspection of foreign material in the non-pocket portion are alternately performed. Therefore, the foreign substance inspection of the whole PTP sheet having the pocket portions and the non-pocket portions alternately can be smoothly performed.
[0044]
Means 16. In the appearance inspection device according to any one of the above means 1 to 15, the image data processing by the illumination for the pocket portion is performed before the image data processing by the illumination for the non-pocket portion, and the image data processing by the illumination for the non-pocket portion is performed. An appearance inspection apparatus, comprising: an image data processing unit that eliminates the influence of the pocket illumination when performing image data processing.
[0045]
Since the pocket into which the tablet is inserted is bulged in a protruding manner, there is a concern that the bulge and the shadow of the tablet may cause erroneous detection as if the non-pocket had foreign matter. In this regard, according to the means 16, the illumination for the pocket portion is performed before the illumination for the non-pocket portion, and the foreign substance inspection for the pocket portion is performed before the foreign substance inspection for the non-pocket portion. When performing image data processing using illumination for pockets, image data processing is performed to eliminate the influence of illumination for pockets. Therefore, at the time of the foreign substance inspection of the non-pocket part, the influence of the foreign substance inspection result of the pocket part is removed, and erroneous detection due to a shadow such as a protruding bulge of the pocket part can be prevented.
[0046]
Means 17. In the appearance inspection apparatus according to any one of the means 1 to 16, the identification information is ink that has a property of transmitting infrared light, and the illuminating means can irradiate infrared light. 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 the light including the infrared light by the illumination means is imaged by the imaging means having sensitivity to the infrared light, the color of the sheet to which the identification information is attached is given. Regardless of this, a video signal is output in which the brightness of the identification information itself is higher than that of the foreign substance in the identification area where the identification information exists. Therefore, there is no need to change the illumination color tone or apply a color filter depending on the color of the identification information, and it is possible to simplify the optical setting.
[0048]
Means 18. A PTP packaging machine provided with the visual inspection device 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 as in the means 18, the sheet can be inspected in the packaging process by the PTP packaging machine. Thus, a PTP sheet in which a defect is found during or after packaging can be eliminated.
[0050]
BEST MODE FOR CARRYING OUT 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 PTP sheet is inspected in the PTP packaging machine P1 by equipping the PTP packaging machine P1 with a PTP sheet appearance inspection device K1.
[0052]
First, the PTP packaging machine P1 in which the appearance inspection of the PTP sheet is performed will be briefly described. The PTP packing machine P1 is for automatically packing tablets into PTP sheets. Specifically, a light-transmitting film 3 such as polypropylene or polyvinyl chloride is fed into the heating plate 4a and the forming 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 a film 3. When the pockets 2a corresponding to the molding plate 4b are formed on the film 3 as described above, flat non-pockets 2b are formed between the pockets 2a. For this reason, the cross section of the film 3 along the longitudinal direction has a shape in which the non-pocket portions 2b and the pocket portions 2a are alternately formed at predetermined intervals. On the non-pocket portion 2b of the film 3, identification information 2c (see FIG. 6) such as characters, numerals, symbols, and patterns such as product descriptions (for example, "AB50") is printed with black ink. When the film 3 in which the pocket portions 2a are formed is sent below the tablet input shutter 6 serving as the tablet input means, the tablets 5 are automatically filled in each pocket portion 2a by the tablet input 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 pockets 2a are filled with the tablets 5, and fixed by a pair of seal rolls 8 and 9 as sealing means. Can be Thus, a film-shaped PTP sheet 10 in which the tablets 5 are filled in the respective pocket portions 2a is manufactured (see FIG. 4). After the film-shaped PTP sheet 10 is cut into a sheet shape, it is sequentially sent to a not-shown defective sheet discharging mechanism, a PTP sheet stacking mechanism, and the like.
[0054]
Next, the appearance inspection device K1 of 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 visual inspection device K1 includes a lighting 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 adjusting function for illuminating with a set light amount based on set lighting conditions. In this case, the illumination light amount of the illumination unit 11 is set to 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 device 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, a visual inspection result and statistical data memory 24, a camera timing It comprises control means 26 and the like.
[0057]
As shown in FIG. 6, the CCD camera 12 receives reflected light of L1, L2, and L3 within a certain area and two-dimensionally captures the image. The captured two-dimensional image data is converted from an analog signal for each pixel. They are converted into digital signals 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 in accordance with the data of the shading correction table 18. In this shading correction, since there is a technical limit in uniformly illuminating the entire PTP sheet 10 with the illumination light of the illumination means 11, the variation in the brightness of the video data caused by the brightness of the light due to the difference in the position is considered. This is performed for correction.
[0058]
The image memory 16 stores not only multi-valued data output from the shading correction unit 14 but also data that has been subjected to image processing by the CPU 20 or in the process of image processing, for example, binarized data. The binarized two-dimensional image data stored in the image memory 16 is used at the time of foreign substance inspection.
[0059]
The CPU 20 as image data processing means executes image data processing using various image processing programs, foreign matter detection programs, and other programs while using the storage contents of the determination memory 22 and the like. The determination memory 22 stores threshold data (described later) for performing image processing by the CPU 20, and the presence / absence of a foreign substance can be inspected based on the threshold data.
[0060]
The input / output interface 23 is for transmitting control signals 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, a defective sheet discharging mechanism of the PTP packaging machine P1 can be controlled. The input / output interface 23 is for transmitting display data to the monitor 25, and can display two-dimensional image data, a visual inspection result, and the like on the monitor 25.
[0061]
The test result and statistical data memory 24 stores test result data, statistical data obtained by probabilistically processing the test result data, and the like. These inspection result data and statistical data are also used at the time of foreign substance inspection, and can be displayed on the monitor 25 under the control of the CPU 20. Further, the CPU 20 can transmit a control signal to the PTP packaging machine P1 based on the appearance inspection result data and the statistical data.
[0062]
The camera timing control means 26 controls the timing at which two-dimensional image data captured by the CCD camera 12 is captured. 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. The illuminating means 11 and the CCD camera 12 are arranged on the front side of the PTP sheet 10 after the sealing film 7 is adhered, as shown in FIG. Then, the illumination unit 11 illuminates the PTP sheet 10 in which each pocket 2a is filled with the tablet 5. The CCD camera 12 receives reflected light within a certain area and performs two-dimensional imaging.
[0064]
The tablets 5 to be filled one by one into the pockets 2a have various forms and the like, and the reflectance of the pockets 2a filled with the tablets 5 differs depending on the tablets 5. The reflectance of the non-pocket portion 2b (the aluminum sealing film described later) is different from the reflectance of light of the pocket portion 2a filled with the tablet 5. An area including a portion of the non-pocket portion 2b to which the identification information 2c is attached (hereinafter, referred to as an identification region R1) is a region of the non-pocket portion 2b to which the identification information 2c is not attached (hereinafter, referred to as a background region R2). ) And the presence or absence of the identification information 2c, the light reflectance differs. Furthermore, the light reflectance differs depending on whether there is a foreign substance in the identification region R1 of the non-pocket portion 2b and whether 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 including 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. Light intensity is low. On the other hand, when the magnitude of the output signal is close to the “255” level, the amount of reflected light is large. Specifically, as shown in FIG. 5, when the illuminating unit 11 irradiates the PTP sheet 10 with a constant light amount, the CCD camera 12 that receives the reflected light from the identification area R1 where there is no foreign matter outputs an output value D2, The CCD camera 12 receiving the reflected light from the identification region R1 where the foreign matter is present outputs an output value D1. Further, the CCD camera 12 receiving the reflected light from the background region R2 having no foreign matter outputs an output value D4, and the CCD camera 12 receiving the reflected light from the background region R2 having a foreign matter outputs the output value D3. Therefore, in order to detect the presence / absence of a foreign object from the output value D1 and the output value D2 of the CCD camera 12 receiving the reflected light from the identification area R1, the identification area condition (threshold condition) is larger than the output value D1 and the output value. It is necessary to set a threshold value Q1 smaller than D2. Similarly, in order to detect the presence / absence of a foreign object from the output value D3 and the output value D4 of the CCD camera 12 receiving the reflected light from the background area R2, the background area condition (threshold condition) is set to be larger than the output value D3 and output. It is necessary to set a threshold value Q2 smaller than the value D4. It goes without saying that 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 reflected light amounts from the pocket portion 2a and the non-pocket portion 2b (identification region R1 and background region R2) are different. Therefore, in order to obtain the required amount of reflected light and detect the presence or absence of a foreign substance, a pocket portion illumination condition described later is set, and further, the identification region illumination condition and the background region illumination condition of the non-pocket portion illumination condition are individually set. Is set. Under the setting, the illumination unit 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 amount of light. In this case, the amount of light reflected 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 appropriately. Also, with respect to an aperture member (not shown) for adjusting the amount of light received by the CCD camera 12 from the PTP sheet 10, the amount of aperture of the light is appropriately adjusted. Since the pocket 2a protrudes from the PTP sheet 10 to the front side and the tablet 5 is contained in the pocket 2a, it is as if the non-pocket 2b has foreign matter due to the bulging and the shadow of the tablet 5. Is erroneously detected. In this regard, in the present embodiment, the image data processing by illumination of the pocket 2a is performed before the image data processing by illumination of the non-pocket 2b. In order to remove the influence of the image data processing result of 2a, "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 the “mask” is applied, the position is corrected by transporting the PTP sheet 10. In detail, as shown in FIG. 6, the CCD camera 12 receives the reflected light in the fixed area L1 under the illumination for the pocket 2a by the illumination means 11, and under the control of the camera timing control means 26, The first video signal is captured at a predetermined timing. Next, while the PTP sheet 10 is being conveyed, the CCD camera 12 receives the reflected light in the fixed area L2 under the illumination of the background area illumination condition of the non-pocket portion 2b of the illumination means 11, and the camera timing control means 26 The second video signal is captured at a predetermined timing under the control of. Further, while the PTP sheet 10 is being conveyed, the CCD camera 12 receives the reflected light in the certain area L3 under the illumination of the identification area illumination condition of the non-pocket portion 2b of the illumination means 11, and the camera timing control means 26 Under control, a third video signal is captured at a predetermined timing. In this case, there is a time difference between the timing of capturing the first video signal, the timing of capturing the second video signal, and the timing of capturing the third video signal. Is transported. For this reason, a positional shift 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 the displacement, a mask having a corrected time difference is prepared so as to eliminate 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 forming a mask. In addition, the transport speed of the PTP sheet 10 and the amount of positional deviation due to the time difference between the first, second, and third timings under the control of the camera timing control unit 26 are 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. However, in FIG. 6, for the sake of simplicity, the areas L2 and L3 are displayed slightly shifted in a direction perpendicular to the transport direction. ing.
[0067]
Next, the appearance inspection of the PTP film 10 by the appearance inspection device 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 for foreign matter in the pocket 2a, illumination conditions for the pocket are set, and the illuminating means 11 emits a predetermined amount of light. The reflected light from the PTP sheet 10 is received by the CCD camera 12, and the obtained image data is processed by the CPU 20 to check for the presence of foreign matter.
[0068]
In step S2, a foreign object detection process for the non-pocket portion 2b is performed. In the case of the foreign substance inspection for the non-pocket portion 2b, the amount of reflected light from the PTP sheet 10 differs between the identification region R1 having the identification information in the non-pocket portion 2b and the background region R2 having no identification information in the non-pocket portion 2b. I do. Therefore, in the case of the foreign substance inspection of the non-pocket portion 2b, the identification region illumination condition for the identification region R1 or the background region illumination condition for the background region R2 is set. Under the set identification area illumination condition or background area illumination condition, the illumination means 11 irradiates light, the illuminated reflected light from the PTP sheet 10 is received by the CCD camera 12, and the obtained image data is transmitted to the CPU 20 by the CPU 20. Process and inspect for foreign matter. Then, in the case of the foreign substance inspection of the identification area R1, a threshold condition (threshold Q1 in FIG. 5) for discriminating the identification information R1 with the foreign substance and the identification information R1 without the foreign substance is set as the identification area condition. Is inspected for the presence of foreign matter. In the case of the foreign substance inspection of the background area R2, a threshold condition (threshold Q2 in FIG. 5) for determining the background area R2 having the foreign substance and the background area R2 having no foreign substance is set. Will be inspected. After the non-pocket portion 2b foreign object detection process (S2), the pocket portion 2a foreign object detection process (S1) is performed again, and steps S1 and S2 are repeated alternately.
[0069]
Next, the specific contents of the foreign matter detection processing of the pocket portion 2a will be described with reference to the flowchart shown in FIG. First, as shown in FIG. 8, in step S11, when the illuminating means 11 illuminates the pocket 2a, the illumination conditions of the pocket are set. First, it is determined whether the amount of reflected light from the pocket 2a is large. That is, it is determined whether or not the output signal of the CCD camera 12 receiving the reflected light is large. When it is determined that the amount of reflected light from the pocket portion 2a is small, the illumination condition of the pocket portion is set such that the amount of illumination light of the illumination means 11 increases. Conversely, when it is determined that the amount of reflected light from the pocket 2a is large, the illumination condition of the pocket is set so that the amount of illumination of the illumination means 11 is reduced.
[0070]
More specifically, when the magnitude of the output signal of the CCD camera 12 receiving the reflected light from the pocket 2a is close to, for example, the maximum "255" stage, the illumination light amount of the illumination means 11 for illuminating the current pocket 2a is large. As too much, the illumination light amount of the illumination means 11 is reduced. Therefore, in this case, the illumination means is set so that the magnitude from the output signal of the CCD camera 12 receiving the reflected light from the pocket part 2a is smaller by a predetermined amount than the upper limit value. Eleven illumination light quantities are set.
[0071]
Next, in step S12, processing for capturing an image for the pocket portion captured by the CCD camera 12 is performed. At this time, the illumination means 11 illuminates the PTP sheet 10 according to the set pocket illumination conditions, so that the CCD camera 12 receives an appropriate amount of reflected light and captures a clear video signal.
[0072]
More specifically, the CCD camera 12 receives reflected light in the fixed area L1 (see FIG. 6) and performs two-dimensional imaging. In this case, under the illumination for the pocket portion 2a, the camera timing control means 26 captures the first video signal from the CCD camera 12. After that, the CCD camera 12 converts the captured two-dimensional image data from an analog signal to a digital signal and outputs the digital signal to the image memory 16.
[0073]
In step S13, binarization processing for the pocket portion for inspecting foreign matter in the pocket portion 2a is performed. In this case, a video signal, which is multi-value data stored in the image memory 16, is binarized by a certain threshold to obtain a binary image. The binary image has a bright level “1” when no light is blocked, and 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, foreign matter detection processing for the pocket part for inspecting foreign matter in the pocket part 2a is performed. In the foreign matter detection processing of the pocket portion 2a, in the case of foreign matter other than slender foreign matter such as hair and fiber waste, since no or almost no light is transmitted, the image level is very dark level "0" and is determined to be defective. You. However, since slender foreign matter such as hair and fiber waste has a bright level "1" because of its fineness, it is necessary to determine whether it is a slender foreign matter such as hair and fiber waste.
[0075]
In the case of judging whether or not the object is a slender foreign object, a perimeter calculation process is performed based on the obtained binarized data, and it is judged whether or not the perimeter (the number of dots) of each connected component is equal to or longer than a long block judgment value dot. Is done. As a result of this determination, a connected component having a peripheral length 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 perimeter of the connected component corresponding to the elongated foreign matter is very long because of its slenderness, and exceeds the long lump determination value dot. Therefore, it is determined to be a long lump, and the pocket portion 2a is determined to be defective. .
[0076]
Next, the specific contents of the foreign matter detection processing 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 illuminating means 11 illuminates the background region R2 of the non-pocket portion 2b, a background region illumination condition is set. First, it is determined whether 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 such that the amount of illumination of the illumination unit 11 increases. Conversely, if 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 amount of illumination of the illumination unit 11 decreases.
[0078]
In setting the background region illumination condition, if the magnitude of the output signal of the CCD camera 12 receiving the reflected light from the background region R2 is close to, for example, the maximum “255”, it is determined that the illumination light amount of the illumination unit 11 is too large. , Reduce the amount of illumination. Therefore, in this case, the illumination light amount 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 smaller than the upper limit by a predetermined amount. Is set.
[0079]
Next, in step S22, a process of capturing an image for the background area captured by the CCD camera 12 is performed. At that time, the illuminating means 11 illuminates the PTP sheet 10 according to the set background area illumination condition, and the CCD camera 12 receives an appropriate amount of reflected light to capture a clear video signal. The process of capturing the image of the background region R2 for the non-pocket portion is the same as the process of capturing the image for the pocket portion.
[0080]
In step S23, binarization processing of the background region R2 is performed in order to inspect foreign matter in the background region R2 of the non-pocket portion 2b. This binarization processing of the background region R2 is the same as the binarization processing for the pocket portion, and the binarization is performed on the video signal which is the multi-value data stored in the image memory 16 to obtain a binary image. . As a binary image, a place where no light is blocked has a bright level “1”, whereas a place where light is completely blocked has a dark level “0”.
[0081]
In step S24, foreign matter detection processing of the background area R2 for inspecting foreign matter in the background area R2 of the non-pocket portion 2b is performed. When performing a video signal process by illuminating the background region R2, a “mask” whose position has been corrected is applied, so that erroneous detection due to a shadow such as a protruding bulge of the pocket portion 2a is prevented.
[0082]
The foreign matter detection processing of the background area R2 of the non-pocket part 2b is the same as the foreign matter detection processing of the pocket part 2a. In the case of a large foreign matter, the image level becomes dark level “0” and is determined to be defective. In addition, since the elongated foreign matter has the bright level “1”, it is determined that the elongated foreign matter is an elongated foreign matter. As a result of the determination of the slender foreign matter, if the above-described non-long block is determined, the background region R2 is determined to be good, whereas if the long block is determined, the background region R2 is determined to be defective. .
[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 known in advance, and the transport speed of the PTP sheet 10 is also known, the current position of the identification region R1 is recognized. In the PTP sheet 10 to be conveyed, the PTP sheet 10 may be displaced in a direction perpendicular to the conveying direction. Therefore, when discriminating between the identification area R1 and the background area R2 of the PTP sheet 10, a reference position is provided on the PTP sheet 10 for preventing a displacement occurring in a direction orthogonal to the transport direction of the PTP sheet. Then, the position 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 region R1 and the background region R2 is performed.
[0084]
Next, in step S26, when the illuminating means 11 illuminates the identification region R1 of the non-pocket portion 2b, an 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 amount of the illumination unit 11 increases. Conversely, 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 amount of the illumination unit 11 decreases.
[0085]
In 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, for example, the maximum “255”, it is determined that the illumination light amount of the illumination unit 11 is too large. , Reduce the amount of illumination. Therefore, in this case, the illumination light amount 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 smaller than the upper limit by a predetermined amount. Is set. However, since the identification area R1 has a different reflectance than the background area R2, it is necessary to set an appropriate amount of light to illuminate each of them. In this case, the set lighting condition of the identification region R1 or the lighting condition of the background region R2 does not always match.
[0086]
Next, in step S27, a process of capturing an image for the identification area captured by the CCD camera 12 is performed. At that time, the illuminating 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 to capture a clear video signal. The process of capturing the image of the identification region R1 is the same as the process of capturing the image for the pocket portion.
[0087]
In step S28, a binarization process of the identification region R1 for inspecting a foreign substance in the identification region R1 of the non-pocket portion 2b is performed. The binarization processing of the identification region R1 is similar to the binarization processing of the pocket portion, and the video signal which is the multi-value data stored in the image memory 16 is binarized to obtain a binary image. As a binary image, a place where no light is blocked has a bright level “1”, whereas a place where light is completely blocked has a dark level “0”.
[0088]
In step S29, foreign matter detection processing for the identification area for inspecting foreign matter in the identification area is performed. In addition, when performing the video signal processing by illuminating the identification region R1, a “mask” whose position is corrected is applied, so that erroneous detection due to a shadow such as a protruding bulge of the pocket portion 2a is prevented.
[0089]
The foreign substance detection processing of the identification region R1 is the same as the foreign substance detection processing of the pocket portion 2a. In the case of a large foreign substance, the image level becomes dark level “0” and is determined to be defective. In addition, since the elongated foreign matter has the bright level “1”, it is determined that the elongated foreign matter is an elongated foreign matter. As a result of the determination of the slender foreign substance, if the above-described non-long block is determined, the identification region R1 is determined to be good, whereas if the above-described long block is determined, the identification region R1 is determined to be defective. .
[0090]
In step S30, a comprehensive determination of the foreign object detection processing 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 material 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 substance anywhere in the identification region R1, the background region R2, and the pocket portion 2a, it is determined to be defective. Hereinafter, when the PTP sheet 10 is conveyed, the appearance inspection device K1 inspects all the PTP sheets 10 for foreign substances attached to the pocket portions 2a and the non-pocket portions 2b.
[0091]
As described in detail above, the visual inspection apparatus K1 of this embodiment illuminates the PTP sheet 10 using the illumination means 11 to inspect the presence or absence of foreign matter in the pocket 2a and the non-pocket 2b of the PTP sheet 10. The CCD camera 12 serving as an image pickup unit receives the reflected light of the PTP sheet 10 and processes a signal obtained from the CCD camera 12. Then, the CPU 20 as the foreign matter inspection means of the background region R2 sets the illumination condition of the background region R2 (S21 of FIG. 9), the image capturing process (S22 of FIG. 9), the binarization process (S23 of FIG. 9), and Foreign matter detection processing (S24 in FIG. 9) is performed. Then, the CPU 20 as the area discriminating means and the foreign matter inspection means for the discriminating area R1 specifies the discriminating area R1 of the PTP sheet 10 (S25 in FIG. 9), and sets the illumination condition of the discriminating area R1 (S26 in FIG. 9). The image capturing process (S27 in FIG. 9), the binarization process (S28 in FIG. 9), and the foreign object detection process (S29 in FIG. 9) are performed, and based on these, the foreign object 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 visual inspection device K1 determines whether the identification region R1 and the background region R2 are based on the illumination condition of the identification region R1 or the illumination condition of the background region R2. Each attached foreign substance can be inspected accurately.
[0092]
The illumination for the pocket 2a is performed before the illumination for the non-pocket 2b, the foreign substance inspection for the pocket 2a is performed before the foreign substance inspection for the non-pocket 2b, and the foreign substance inspection for the non-pocket 2b is performed. At the time of image data processing, the influence of the foreign substance inspection result of the pocket portion 2a is removed. This can prevent erroneous detection due to the shadow of the protruding bulge of the pocket portion 2a.
[0093]
Further, one illumination means 10 alternately illuminates the pocket portion 2a and the non-pocket portion 2b, and one CCD camera 12 receives reflected light from the PTP sheet 10 and outputs a video signal output from the CCD camera 12. The image processing apparatus 13 processes the image data based on the above, and alternately performs the foreign substance inspection of the pocket 2a and the foreign substance inspection of the non-pocket part 2b. Thereby, the foreign substance inspection of the entire PTP sheet 10 having the pocket portions 2a and the non-pocket portions 2b alternately can be smoothly performed. Further, only one illuminating means 10 and one CCD camera 12 are required, and the manufacturing cost of the visual inspection apparatus K1 is reduced.
[0094]
It should be noted that the present invention is not limited to the above-described embodiment, and various changes can be made. For example, the CCD camera 12 and the illuminating means 11 constituting the visual inspection apparatus K1 are mounted inside the PTP packaging machine P1 in FIGS. 1 and 2, but may be outside the PTP packaging machine P1.
[0095]
When setting the identification region exposure condition (illumination condition) for exposing the identification region R1 or the background region exposure condition (illumination condition) for 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 amount of aperture of the light received by the CCD camera 12 is reduced. The identification region exposure condition or the background region exposure condition is set so as to decrease. Conversely, when the amount of reflected light from the identification area R1 or the background area R2 is large and the foreign substance inspection is not performed accurately, the exposure time is reduced, or the aperture of the light received by the CCD camera 12 is increased. The identification area exposure condition or the 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" level). The aperture of the camera 12 may be adjusted. In addition, 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, but two or more of them may be adjusted comprehensively. In short, the identification region exposure condition and the background region exposure condition are set so that the foreign substance inspection of the identification region or the background region is accurately performed.
[0097]
As the identification information 2c of the non-pocket portion 5b, an ink having transparency to infrared light may be used. In that case, the illumination unit 11 can irradiate infrared light, and the CCD camera 12 as the imaging unit is changed to have sensitivity to infrared light. As an ink having a transmittance to infrared light, for example, an ink such as Alcolor VA (trade name) manufactured by Dainippon Ink and Chemicals, Inc. is used.
[0098]
With this configuration, when the reflected light of the identification information irradiated with the light including the infrared light by the illumination unit 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 that of the foreign matter in the identification area 2c where the identification information 2c exists is output. Therefore, there is no need to change the illumination color tone or apply a color filter according to the color of the identification information 2c, and it is possible to simplify optical settings.
[0099]
Further, the appearance inspection device K1 may be arranged 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 illustrating an overall configuration of a PTP sheet appearance inspection apparatus.
FIG. 4 is an enlarged sectional view of a PTP sheet in a state where a tablet is placed in a pocket portion.
FIG. 5 is an explanatory diagram for describing a relationship between an output value from a CCD camera and a threshold.
FIG. 6 is an explanatory diagram for describing a relationship between conveyance of a PTP sheet and imaging by a CCD camera.
FIG. 7 is a flowchart illustrating an outline of a foreign substance detection process of the PTP sheet appearance inspection apparatus.
FIG. 8 is a flowchart illustrating foreign matter detection processing of a pocket portion of a PTP sheet.
FIG. 9 is a flowchart illustrating a foreign object detection process for a non-pocket portion of a PTP sheet.
[Explanation of symbols]
2a: Pocket portion, 2b: Non-pocket portion, 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 results and statistical data Memory, 25 monitor, 26 camera timing control means, P1 PTP packaging machine, K1 appearance inspection device, Q1 threshold as a threshold condition, Q2 threshold as a threshold condition, S1 pocket area foreign matter inspection, S2 ... Non-pocket area foreign matter inspection, S11. Setting of illumination conditions for pocket, S12. Capture process, S13: binarization process for pocket portion, S14: Foreign object detection process for pocket portion, S21: Illumination condition setting of background region of non-pocket portion, S22: Capture process of image of background region of non-pocket portion, S23 ... Binarization processing of the non-pocket part background area, S24... Foreign object detection processing of the non-pocket part background area, S26... Lighting condition setting of the non-pocket part identification area, S27. Import processing, S28: binarization processing of the non-pocket part identification area, S29: foreign substance detection processing of the non-pocket part identification area, S30: comprehensive judgment.

Claims (18)

ポケット部及び当該ポケット部以外の非ポケット部を備えるPTPシート上に、照明手段が光を照射し、照射されたPTPシートからの光を撮像手段が受光し、得られた画像データを異物検査手段が処理して異物の有無を検査する外観検査装置において、
前記異物検査手段は、前記非ポケット部の識別情報が付された識別領域に対しての識別領域条件による異物検査と、前記非ポケット部の前記識別情報が付されていない背景領域に対しての背景領域条件による異物検査とを切り換えて行うことを特徴とする外観検査装置。
The illuminating means irradiates light on the PTP sheet provided with the pocket portion and the non-pocket portion other than the pocket portion, the imaging means receives the light from the illuminated PTP sheet, and the obtained image data is used as the foreign matter inspection means. In a visual inspection device that processes and inspects for the presence of foreign matter,
The foreign substance inspection unit is configured to perform a foreign substance inspection based on an identification area condition for an identification area to which identification information of the non-pocket portion is attached, and to perform a foreign substance inspection on a background area to which the identification information of the non-pocket part is not attached. An appearance inspection apparatus characterized by switching between a foreign substance inspection based on a background area condition and performing the inspection.
ポケット部及び当該ポケット部以外の非ポケット部を備えるPTPシート上に、照明手段が光を照射し、照射されたPTPシートからの光を撮像手段が受光し、得られた画像データを異物検査手段が処理して異物の有無を検査する外観検査装置において、
前記非ポケット部の識別情報が付された識別領域と、前記非ポケット部の識別情報が付されていない背景領域とを判別する領域判別手段と、
前記領域判別手段の判断の下、前記異物検査手段は、前記非ポケット部の識別情報が付された識別領域に対しての識別領域条件による異物検査と、前記非ポケット部の前記識別情報が付されていない背景領域に対しての背景領域条件による異物検査とを切り換えて行うことを特徴とする外観検査装置。
The illuminating means irradiates light on the PTP sheet provided with the pocket portion and the non-pocket portion other than the pocket portion, the imaging means receives the light from the illuminated PTP sheet, and the obtained image data is used as the foreign matter inspection means. In a visual inspection device that processes and inspects for the presence of foreign matter,
An identification area to which the identification information of the non-pocket portion is attached, and an area determination unit that determines a background area to which the identification information of the non-pocket portion is not attached,
Under the judgment of the area discriminating means, the foreign matter inspection means performs a foreign matter inspection based on an identification area condition for an identification area to which the identification information of the non-pocket portion is attached, and attaches the identification information of the non-pocket portion. An appearance inspection apparatus characterized by switching between a background area that has not been subjected to a foreign substance inspection based on background area conditions.
前記異物検査手段は、前記識別領域を識別領域条件でもってまたは前記背景領域を背景領域条件でもって2値化する2値化手段を備えることを特徴とする請求項1または2に記載の外観検査装置。The visual inspection according to claim 1, wherein the foreign matter inspection unit includes a binarization unit that binarizes the identification area based on an identification area condition or the background area based on a background area condition. apparatus. 前記識別領域条件として、前記撮像手段から得られる画像データのレベルおいて、異物がある識別領域と異物がない識別情報とを判別する閾値条件が設定されることを特徴とする請求項3に記載の外観検査装置。4. A threshold condition for determining an identification area having a foreign substance and identification information having no foreign substance at a level of image data obtained from the imaging unit as the identification area condition. Appearance inspection equipment. 前記背景領域条件として、前記撮像手段から得られる画像データのレベルおいて、異物がある背景領域と、異物がない背景領域とを判別する閾値条件を設定することを特徴とする請求項3に記載の外観検査装置。4. A threshold condition for discriminating a background area having a foreign substance and a background area having no foreign substance at a level of image data obtained from the imaging means as the background area condition. Appearance inspection equipment. 前記異物検査手段は、前記識別領域の反射光量に対応する撮像手段の出力値を予め把握していることを特徴とする請求項1乃至4のいずれかに記載の外観検査装置。The appearance inspection apparatus according to claim 1, wherein the foreign matter inspection unit grasps in advance an output value of the imaging unit corresponding to a reflected light amount of the identification area. 前記領域判別手段は、前記識別領域と前記背景領域とを判別する際に位置調整する位置調整手段を備えることを特徴とする請求項2乃至6のいずれか記載の外観検査装置。The appearance inspection apparatus according to claim 2, wherein the area determination unit includes a position adjustment unit that adjusts a position when determining the identification area and the background area. 前記異物検査手段は、前記識別領域を照明するための識別領域照明条件に基づく照明、または、前記背景領域を照明するための背景領域照明条件に基づく照明を切り換えることを特徴とする請求項1乃至7のいずれかに記載の外観検査装置。The lighting device according to claim 1, wherein the foreign matter inspection unit switches between illumination based on an identification region illumination condition for illuminating the identification region and illumination based on a background region illumination condition for illuminating the background region. 7. The visual inspection device according to any one of 7. 前記照明手段の照明光量が調整されることにより、前記識別領域を照明するための識別領域照明条件または前記背景領域を照明するための背景領域照明条件が設定されることを特徴とする請求項1乃至8のいずれかに記載の外観検査装置。2. An illumination area condition for illuminating the identification area or a background area illumination condition for illuminating the background area is set by adjusting an illumination light amount of the illumination unit. 9. The visual inspection device according to any one of claims 1 to 8. 前記撮像手段の出力信号が調整されることにより、前記識別領域を照明するための識別領域照明条件または前記背景領域を照明するための背景領域照明条件が設定されることを特徴とする請求項1乃至9のいずれかに記載の外観検査装置。The identification signal for illuminating the identification area or the illumination condition for the background area for illuminating the background area is set by adjusting the output signal of the imaging unit. 10. The visual inspection device according to any one of claims 9 to 9. 前記識別領域照明条件または前記背景領域照明条件が設定される際に、前記撮像手段の出力信号が上限値に近づかないように設定されることを特徴とする請求項10に記載の外観検査装置。11. The visual inspection apparatus according to claim 10, wherein when the identification region illumination condition or the background region illumination condition is set, an output signal of the imaging unit is set so as not to approach an upper limit value. 前記PTPシートからの光でもって、前記撮像手段が露光される際の露光時間が調整されることにより、前記識別領域を露光するための識別領域露光条件または前記背景領域を露光するための背景領域露光条件が設定されることを特徴とする請求項1乃至11のいずれかに記載の外観検査装置。Exposure time when the imaging unit is exposed to light from the PTP sheet is adjusted so that an identification area exposure condition for exposing the identification area or a background area for exposing the background area The appearance inspection apparatus according to claim 1, wherein exposure conditions are set. 前記PTPシートからの光でもって、前記撮像手段が露光される際の光の絞り量が調整されることにより、前記識別領域を露光するための識別領域露光条件または前記背景領域を露光するための背景領域露光条件が設定されることを特徴とする請求項1乃至12のいずれかに記載の外観検査装置。The light from the PTP sheet is used to adjust the aperture of the light when the imaging unit is exposed, so that the identification area exposure condition for exposing the identification area or the exposure area for exposing the background area is performed. 13. The visual inspection apparatus according to claim 1, wherein a background area exposure condition is set. 前記異物検査手段は、PTPシートが連続的に搬送される際に、前記識別領域の照明に基づく画像データと、前記背景領域の照明に基づく画像データとの間の前記PTPシートの搬送による位置ずれを修正することを特徴とする請求項1乃至13のいずれかに記載の外観検査装置。When the PTP sheet is continuously conveyed, the foreign matter inspection unit may detect a positional shift between the image data based on the illumination of the identification area and the image data based on the illumination of the background area due to the conveyance of the PTP sheet. 14. The visual inspection device according to claim 1, wherein: 前記ポケット部の異物を検査するための、ポケット部照明条件によるポケット部用照明と、前記非ポケット部の異物を検査するための、非ポケット部照明条件による非ポケット部用照明とを交互に行う照明制御手段を備えることを特徴とする請求項1乃至14のいずれかに記載の外観検査装置。Illumination for the pocket portion under the illumination condition of the pocket portion for inspecting the foreign material in the pocket portion and illumination for the non-pocket portion under the illumination condition of the non-pocket portion for inspecting the foreign material of the non-pocket portion are alternately performed. The visual inspection device according to claim 1, further comprising a lighting control unit. 前記ポケット部用照明による画像データ処理を、前記非ポケット部用照明による画像データ処理よりも先に行い、前記非ポケット部用照明による画像データ処理を行う際に、前記ポケット部用照明の影響を除くようにする画像データ処理手段を備えることを特徴とする請求項1乃至15のいずれかに記載の外観検査装置。The image data processing by the illumination for the pocket portion is performed before the image data processing by the illumination for the non-pocket portion, and when performing the image data processing by the illumination for the non-pocket portion, the influence of the illumination for the pocket portion is reduced. 16. The visual inspection device according to claim 1, further comprising an image data processing unit for removing the image data. 前記識別情報は、赤外光に対し、透過性を有するインクが使用されており、前記照明手段が赤外光を照射でき、撮像手段が赤外光に対し感度を有することを特徴とする請求項1乃至16のいずれかに記載の外観検査装置。The identification information uses ink having a transparency with respect to infrared light, the illumination means can irradiate infrared light, and the imaging means has sensitivity to infrared light. Item 17. An appearance inspection apparatus according to any one of Items 1 to 16. 請求項1乃至17のいずれかに記載の外観検査装置を備えたことを特徴とするPTP包装機。A PTP packaging machine comprising the appearance inspection device according to any one of claims 1 to 17.
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 true JP2004317188A (en) 2004-11-11
JP4034222B2 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)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012225864A (en) * 2011-04-22 2012-11-15 Ushio Inc Analyzer
JP2017194342A (en) * 2016-04-20 2017-10-26 株式会社東芝 Sheet inspection device, sheet inspection method and sheet inspection program
EP3553504A4 (en) * 2016-12-08 2020-09-16 CKD Corporation Inspection device and ptp packaging machine

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63248290A (en) * 1987-04-03 1988-10-14 Kyowa Hakko Kogyo Co Ltd High accuracy appearance inspecting method by video
JPH04312181A (en) * 1991-04-10 1992-11-04 Mitsubishi Cable Ind Ltd Method for inspecting printing mark on filamentary body
JPH0894333A (en) * 1994-09-20 1996-04-12 Nippon Steel Corp Method for detecting scratch of steel plate
JPH08105799A (en) * 1994-10-05 1996-04-23 Olympus Optical Co Ltd Color classification device
JPH1139484A (en) * 1997-07-17 1999-02-12 Toshiba Eng Co Ltd Method and system for detecting fault
JP2000055640A (en) * 1998-08-03 2000-02-25 Ckd Corp Ptp seal inspecting device
JP2000171410A (en) * 1998-12-04 2000-06-23 Ckd Corp Visual inspection apparatus for ptp sheet 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
JP2003023530A (en) * 2001-07-09 2003-01-24 Matsushita Electric Ind Co Ltd Image processor

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63248290A (en) * 1987-04-03 1988-10-14 Kyowa Hakko Kogyo Co Ltd High accuracy appearance inspecting method by video
JPH04312181A (en) * 1991-04-10 1992-11-04 Mitsubishi Cable Ind Ltd Method for inspecting printing mark on filamentary body
JPH0894333A (en) * 1994-09-20 1996-04-12 Nippon Steel Corp Method for detecting scratch of steel plate
JPH08105799A (en) * 1994-10-05 1996-04-23 Olympus Optical Co Ltd Color classification device
JPH1139484A (en) * 1997-07-17 1999-02-12 Toshiba Eng Co Ltd Method and system for detecting fault
JP2000055640A (en) * 1998-08-03 2000-02-25 Ckd Corp Ptp seal inspecting device
JP2000171410A (en) * 1998-12-04 2000-06-23 Ckd Corp Visual inspection apparatus for ptp sheet 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
JP2003023530A (en) * 2001-07-09 2003-01-24 Matsushita Electric Ind Co Ltd Image processor

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012225864A (en) * 2011-04-22 2012-11-15 Ushio Inc Analyzer
JP2017194342A (en) * 2016-04-20 2017-10-26 株式会社東芝 Sheet inspection device, sheet inspection method and sheet inspection program
EP3553504A4 (en) * 2016-12-08 2020-09-16 CKD Corporation Inspection device and ptp packaging machine

Also Published As

Publication number Publication date
JP4034222B2 (en) 2008-01-16

Similar Documents

Publication Publication Date Title
CN110023742B (en) Inspection device and PTP packaging machine
US7260244B2 (en) Print inspection method and print inspection apparatus
JP2006292419A (en) Defect inspection device and ptp packaging machine
JP5697168B2 (en) Inspection device and PTP packaging machine
JP2003215047A (en) Visual inspection apparatus and ptp packaging machine equipped with the same
JP2014019089A (en) Inspection device of sheet-like material
CN111630369B (en) Inspection device, PTP packaging machine, and correction method for inspection device
JP4332122B2 (en) Appearance 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
JP2006226857A (en) Inspection method and inspection device for printed matter
JP4030716B2 (en) Tablet appearance inspection device and PTP packaging machine
JP2004317187A (en) Visual inspection apparatus 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
JP3761313B2 (en) Tablet appearance inspection method, tablet appearance inspection device and blister sheet packaging machine
JP4173257B2 (en) Sheet visual 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
JP2004077495A (en) Visual inspection device
JP4788870B2 (en) Defect inspection device and PTP packaging machine

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