JP2004077495A - Visual inspection device - Google Patents

Visual inspection device Download PDF

Info

Publication number
JP2004077495A
JP2004077495A JP2003360343A JP2003360343A JP2004077495A JP 2004077495 A JP2004077495 A JP 2004077495A JP 2003360343 A JP2003360343 A JP 2003360343A JP 2003360343 A JP2003360343 A JP 2003360343A JP 2004077495 A JP2004077495 A JP 2004077495A
Authority
JP
Japan
Prior art keywords
tablet
image data
visual inspection
infrared light
brightness
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.)
Pending
Application number
JP2003360343A
Other languages
Japanese (ja)
Inventor
Yukihiro Taguchi
田口 幸弘
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 JP2003360343A priority Critical patent/JP2004077495A/en
Publication of JP2004077495A publication Critical patent/JP2004077495A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/84Systems specially adapted for particular applications
    • G01N21/88Investigating the presence of flaws or contamination
    • G01N21/95Investigating the presence of flaws or contamination characterised by the material or shape of the object to be examined
    • G01N21/9508Capsules; Tablets

Landscapes

  • Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Chemical & Material Sciences (AREA)
  • Analytical Chemistry (AREA)
  • Biochemistry (AREA)
  • General Health & Medical Sciences (AREA)
  • General Physics & Mathematics (AREA)
  • Immunology (AREA)
  • Pathology (AREA)
  • Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a visual inspection device that can increase inspection accuracy and simplify setting of an optical system. <P>SOLUTION: The visual inspection device 12 comprises lighting means 21 for irradiating a PTP film having tablets and a cover film respectively provided with infrared-transparent identification information (seal part and print part), with infrared light from a pocket part side, a CCD camera 22 sensitive to infrared light, and an image processing device 23 for processing an image signal from the CCD camera 22. In the image processing device 23, first binary coding means 29 first create binary image data without consideration to the seal part of the tablet, locate a tablet region, and determine a foreign matter in the tablet region. Second binary coding means 31 next create binary image data without consideration to the print part of the cover film, and determine a foreign matter on the cover film. <P>COPYRIGHT: (C)2004,JPO

Description

 本発明は、外観検査装置を含む技術分野に属するものである。 The present invention belongs to the technical field including a visual inspection device.

 一般に、PTPシートは、錠剤の投入されるポケット部が形成されてなる通常透明性を有した包装用フィルムと、その包装用フィルムにポケット部の開口側を密封するように取着されるカバーフィルムとによって構成されている。前記包装用フィルムに対しカバーフィルムを取着する前段階において、ポケット部に固形製剤やカプセル等の錠剤が投入される。製品を区別する等のために、錠剤には捺印が施され、カバーフィルムには印刷が施されている。 In general, a PTP sheet has a normally transparent packaging film in which a pocket into which a tablet is inserted is formed, and a cover film attached to the packaging film so as to seal the opening side of the pocket. And is constituted by. Before the cover film is attached to the packaging film, tablets such as solid preparations and capsules are put into the pockets. Tablets are stamped, and cover films are printed to distinguish products.

 上記PTPシートの製造に際しては、錠剤のひびや欠け、あるいは異物が付着する等により製造された不良品の有無を検査するといった外観検査を行う必要があり、かかる検査に際しては外観検査装置が用いられる。すなわち、この種の外観検査装置では、照明手段によって錠剤に可視光を照射し、その反射光を撮像手段により撮像する。この撮像手段から出力される映像信号は、画像処理装置によって、所定の閾値をもって二値化される。ここで、例えば白い錠剤を撮像した場合について説明すると、錠剤表面は明るく映り、背景のカバーフィルム及び異物が存在する部分は暗く映る。そして、これらの明度の相違を考慮して前記閾値を設定することで、背景物と、錠剤とを区別して認識すると共に、暗い部分であるひびや欠けの有無あるいは異物の存在を前記画像処理装置によって判断することができる。 When manufacturing the PTP sheet, it is necessary to perform an appearance inspection such as inspecting the presence or absence of defective products produced due to cracks, chips, or foreign substances attached to the tablet, and an appearance inspection device is used for such inspection. . That is, in this type of visual inspection device, the tablet is irradiated with visible light by the illumination means, and the reflected light is imaged by the imaging means. The video signal output from the imaging means is binarized by the image processing device at a predetermined threshold. Here, for example, when a white tablet is imaged, the surface of the tablet appears bright, and the portion where the cover film and the foreign matter are present in the background appears dark. By setting the threshold value in consideration of the difference in brightness, the background object and the tablet are distinguished and recognized, and the presence or absence of cracks or chips, or the presence of foreign matter, which is a dark part, is determined by the image processing apparatus. Can be determined by:

 ところで、上記技術では、捺印、印刷等の識別情報を異物や、錠剤のひびや欠けと区別するために、画像処理装置によって捺印や印刷の領域にマスク処理を施したり、捺印や印刷の面積値による特徴抽出を行ったりして、検査を実施している。しかしながら、当該検査では、マスクされた範囲や、捺印や印刷の領域内に異物等がある場合には、かかる異物等の検出が困難となってしまう。 By the way, in the above-mentioned technology, in order to distinguish identification information such as stamping and printing from foreign matter and cracks or chipping of tablets, a masking process is applied to an area of stamping or printing by an image processing device, or an area value of stamping or printing is used. Inspections are performed by extracting features by using However, in the inspection, when there is a foreign substance or the like in the masked area or the area of stamping or printing, it becomes difficult to detect the foreign substance or the like.

 また、錠剤の傾きにより捺印の見え方や位置が異なったり、捺印及び印刷自体の位置や色の精度にばらつきがあったりすると、正確な判断ができないという不具合がある。 す る と In addition, if the appearance or position of the seal differs due to the inclination of the tablet, or if the position or color accuracy of the seal and printing itself varies, there is a problem that accurate judgment cannot be made.

 さらに、錠剤とカバーフィルムとの明度のコントラストが、品種により様々であるため、品種毎に照明手段の照明の色調を変更したり、カラーフィルタを設けたりして、コントラストが大きくなるように設定する必要があり、光学系の設定に手間がかかるおそれがある。 Further, since the brightness contrast between the tablet and the cover film varies depending on the product type, the color tone of the illumination means is changed for each product type, or a color filter is provided, so that the contrast is set to be large. And the setting of the optical system may be troublesome.

 本発明は、上記事情に鑑みてなされたものであり、検査精度の向上及び光学系の設定の簡易化を図ることのできる外観検査装置を提供することを主たる目的としている。 The present invention has been made in view of the above circumstances, and a main object of the present invention is to provide a visual inspection apparatus capable of improving inspection accuracy and simplifying setting of an optical system.

 上記目的を達成し得る特徴的手段について以下に説明する。また、各手段につき、特徴的な作用及び効果を必要に応じて記載する。 特 徴 The characteristic means that can achieve the above object will be described below. In addition, characteristic actions and effects of each means will be described as necessary.

 手段1.錠剤の外観検査装置であって、少なくとも前記錠剤に対して赤外光を含む光を照射する照明手段と、赤外光に感度を有し、前記照明手段により照射された面を撮像する撮像手段と、前記撮像手段から出力される映像信号を処理する画像処理装置とを備え、前記画像処理装置は、前記映像信号によって得られる画像イメージデータを用いて、前記錠剤の表面に付された識別情報を無視した上で、前記錠剤の存在する領域内の異常を判定するための判定手段を備えることを特徴とする外観検査装置。 Means 1. A tablet appearance inspection device, comprising: an illuminating unit that irradiates at least the tablet with light including infrared light; and an imaging unit that has sensitivity to infrared light and images a surface irradiated by the illuminating unit. And an image processing device for processing a video signal output from the imaging means, wherein the image processing device uses the image data obtained by the video signal to identify the identification information attached to the surface of the tablet. A visual inspection apparatus comprising: a determination unit for determining an abnormality in an area where the tablet exists, ignoring the above.

 手段1によれば、照明手段によって赤外光を含む光の照射された錠剤の反射光が赤外光に感度を有する撮像手段で撮像されると、錠剤の色に関係なく、錠剤の存在する領域内の異常部分よりも錠剤自体の明度が高い映像信号が出力される。このため、錠剤の色により照明色調を変更したり、カラーフィルタをかけたりする必要がなく、光学的な設定の簡素化を図ることができる。尚、異常とは、異物や錠剤のひびや欠け等のことである(以下、各手段において同様)。そして、画像処理装置では、判定手段によって、識別情報(例えば、錠剤の表面に施された記号、文字、模様などからなる捺印部)の存在の有無に関わらず、識別情報が無視された上で、錠剤の存在する領域内の異常が判定される。すなわち、識別情報のみを無視することで、識別情報の付された領域に異常がある場合にも、かかる異常の検出可能となり、検査精度の向上を図ることができる。 According to the means 1, when the reflected light of the tablet 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 tablet exists regardless of the color of the tablet. A video signal is output in which the brightness of the tablet itself is higher than the abnormal part in the area. Therefore, it is not necessary to change the illumination color tone or apply a color filter depending on the color of the tablet, and it is possible to simplify the optical setting. The abnormality is a foreign substance, a crack or a chip of a tablet, and the like (hereinafter, the same applies to each means). In the image processing apparatus, the determination unit ignores the identification information regardless of the presence or absence of the identification information (for example, a seal portion formed of a symbol, a character, a pattern, or the like applied to the surface of the tablet). The abnormality in the area where the tablet is present is determined. That is, by ignoring only the identification information, even if there is an abnormality in the area to which the identification information is attached, the abnormality can be detected, and the inspection accuracy can be improved.

 手段2.移送コンベア上に載置された錠剤の外観検査装置であって、少なくとも前記錠剤に対して赤外光を含む光を照射する照明手段と、赤外光に感度を有し、前記照明手段により照射された面を撮像する撮像手段と、前記撮像手段から出力される映像信号を処理する画像処理装置とを備え、前記画像処理装置は、前記映像信号によって得られる画像イメージデータを用いて、前記錠剤の表面に付された識別情報を無視した上で、前記錠剤の存在する領域内の異常を判定するための判定手段を備えることを特徴とする外観検査装置。 Means 2. An appearance inspection device for tablets placed on a transfer conveyor, wherein the illumination unit irradiates at least light containing infrared light to the tablets, and has sensitivity to infrared light, and is irradiated by the illumination unit. An image processing unit that processes a video signal output from the imaging unit, wherein the image processing device uses the image data obtained by the video signal to generate the tablet. A visual inspection apparatus comprising: a determination unit configured to determine an abnormality in an area where the tablet exists while ignoring identification information attached to a surface of the visual inspection device.

 手段2によれば、手段1と同様の作用効果が奏されることで、移送コンベア上に載置された錠剤の外観検査が可能である。 According to the means 2, the same operation and effect as those of the means 1 are achieved, so that the appearance inspection of the tablets placed on the transfer conveyor can be performed.

 手段3.前記画像イメージデータは、明度に関する濃淡イメージデータであり、前記判定手段は、前記濃淡イメージデータを所定の閾値に基づき判定するものであり、前記閾値は、前記錠剤表面及び前記識別情報の明度より低く、かつ、前記錠剤の背景及び異常部分の明度より高く設定されていることを特徴とする手段1または2に記載の外観検査装置。 Means 3. The image image data is gray-scale image data related to lightness, and the determining unit determines the gray-scale image data based on a predetermined threshold, wherein the threshold is lower than the brightness of the tablet surface and the identification information. 3. The visual inspection device according to claim 1 or 2, wherein the brightness is set higher than the brightness of the background and abnormal portion of the tablet.

 手段3によれば、画像イメージデータが、明度に関する濃淡イメージデータであるため、明度を利用した判別をすることができる。判定手段では、閾値が錠剤表面及び識別情報の明度より低く設定されることで、識別情報を錠剤表面と同一視、すなわち、無視することができる。また、閾値が、錠剤の背景及び異常部分の明度より高く設定されることで、錠剤の存在する領域を背景に対して明確に区別した上で、確実に異常を検出することができる。 According to the means 3, since the image data is the light and shade image data relating to the brightness, it is possible to make a determination using the brightness. In the determination means, the identification information can be identified with the tablet surface, that is, can be ignored by setting the threshold value lower than the brightness of the tablet surface and the identification information. Further, by setting the threshold value higher than the brightness of the background of the tablet and the brightness of the abnormal portion, it is possible to reliably detect the abnormality while clearly distinguishing the region where the tablet exists from the background.

 手段4.前記判定手段は、前記濃淡イメージデータから前記閾値を基準に二値化した画像イメージデータを作成した上で、判定を行うことを特徴とする手段3に記載の外観検査装置。 (4) Means 4. 4. The visual inspection apparatus according to claim 3, wherein the determination unit makes a determination after creating binarized image image data based on the threshold from the grayscale image data.

 手段4によれば、濃淡イメージデータから閾値を基準に二値化した画像イメージデータを作成するため、画像での錠剤と異常とを区別する際の確実性のさらなる向上を図ることができる。 According to the means 4, since the image image data binarized from the grayscale image data based on the threshold value is created, it is possible to further improve the certainty in distinguishing the tablet from the abnormality in the image.

 手段5.前記判定手段は、前記錠剤の存在する領域内における前記錠剤の明度より低い明度の連結成分の面積を所定の判定基準値と比較することで判定を行うことを特徴とする手段3又は4に記載の外観検査装置。 {Means 5}. The means (3) or (4), wherein the determination unit performs the determination by comparing the area of the connected component having a lower brightness than the brightness of the tablet in an area where the tablet exists with a predetermined determination reference value. Appearance inspection equipment.

 手段5によれば、錠剤の存在する領域内における錠剤の明度より低い明度の連結成分の面積を所定の判定基準値と比較することで判定が行われる。このため、低い明度の連結成分として小さな面積を持つノイズ等を除去し、異常を一層確実に判定できる。 According to the means 5, the determination is made by comparing the area of the connected component having a brightness lower than the brightness of the tablet in the region where the tablet exists with a predetermined determination reference value. Therefore, noise or the like having a small area as a low-brightness connected component can be removed, and abnormality can be determined more reliably.

 手段6.前記識別情報は、赤外光に対し、透過性を有するインクが使用されることで付されていることを特徴とする手段1乃至5のいずれかに記載の外観検査装置。 {Means 6}. The visual inspection apparatus according to any one of means 1 to 5, wherein the identification information is given by using an ink having a property of transmitting infrared light.

 手段6によれば、錠剤の識別情報は、赤外光に対し透過性を有するインクが使用されるため、赤外光を照射した際の反射光において、識別情報と錠剤自体との明度差が極めて小さくなる。同様に、カバーフィルムの識別情報は、赤外光に対し透過性を有するインクが採用されているため、赤外光を照射した際の反射光において、識別情報とカバーフィルム自体との明度差が極めて小さくなる。従って、画像イメージデータを作成する際に、識別情報を各々錠剤やカバーフィルムと同一視、すなわち、無視しやすくすることができる。 According to the means 6, since the identification information of the tablet is an ink having transparency to infrared light, the difference in brightness between the identification information and the tablet itself in reflected light upon irradiation with infrared light is used. Extremely small. Similarly, since the identification information of the cover film employs an ink that is transparent to infrared light, the difference in brightness between the identification information and the cover film itself in reflected light when irradiated with infrared light. Extremely small. Therefore, when creating the image data, the identification information can be identified with the tablet or the cover film, that is, it can be easily ignored.

 手段7.手段1乃至6のいずれかに記載の外観検査装置を備えたことを特徴とするPTP包装機。 {Means 7}. A PTP packaging machine comprising the visual inspection device according to any one of means 1 to 6.

 手段7のように、外観検査装置をPTP包装機に備えてもよい。 (4) As in the means 7, the visual inspection device may be provided in the PTP packaging machine.

 以下、一実施の形態について、図面を参照しつつ説明する。まず、図2,3に基づいて、検査対象としてのPTPシート1について説明する。PTPシート1は、複数のポケット部2の凹設された包装用フィルム3と、ポケット部2を塞ぐようにして包装用フィルム3に取着されたアルミニウム製のカバーフィルム4とを有している。そして、各ポケット部2には、錠剤5が1つずつ収容されている。本実施の形態では、PTPシート1は、帯状の包装用フィルム3及びカバーフィルム4から形成された帯状のPTPフィルム6がカット或いは打抜かれることで、シート状に製造されている。 Hereinafter, an embodiment will be described with reference to the drawings. First, the PTP sheet 1 as an inspection target will be described with reference to FIGS. The PTP sheet 1 has a packaging film 3 in which a plurality of pockets 2 are recessed, and an aluminum cover film 4 attached to the packaging film 3 so as to cover the pockets 2. . Each of the pockets 2 contains one tablet 5. In the present embodiment, the PTP sheet 1 is manufactured in a sheet shape by cutting or punching a strip-shaped PTP film 6 formed from a strip-shaped packaging film 3 and a cover film 4.

 また、錠剤5表面には、記号、文字、模様などからなる識別情報としての捺印部8が設けられている。また、カバーフィルム4には、同じく記号等からなる識別情報としての印刷部9が設けられている。本実施の形態において、前記捺印部8には、セラックをブタノール等のアルコール系有機溶媒に溶解したビヒクルに三二酸化鉄、酸化チタン、食用色素アルミニウムレーキ等の顔料を混合させたインク等が用いられる。また、印刷部9を構成する素材としては、大日本インキ化学工業株式会社製のアルカラーVA(商品名)等のインクが用いられる。これらの各インクは、赤外光に対し透過性を有している。 {Circle around (5)} On the surface of the tablet 5, there is provided a seal portion 8 as identification information composed of symbols, characters, patterns and the like. In addition, the cover film 4 is provided with a printing unit 9 as identification information similarly composed of symbols and the like. In the present embodiment, an ink or the like obtained by mixing pigments such as iron sesquioxide, titanium oxide, and an edible dye aluminum lake in a vehicle in which shellac is dissolved in an alcohol-based organic solvent such as butanol is used for the seal portion 8. . In addition, as a material constituting the printing unit 9, an ink such as Alcolor VA (trade name) manufactured by Dainippon Ink and Chemicals, Inc. is used. Each of these inks has transparency to infrared light.

 上記のように構成されてなるPTPシート1は、図4に示すようにPTP包装機11で製造され、該PTP包装機11内に設けられた外観検査装置12によって外観検査が実施されるようになっている。 The PTP sheet 1 configured as described above is manufactured by a PTP wrapping machine 11 as shown in FIG. 4, and a visual inspection is performed by a visual inspection device 12 provided in the PTP wrapping machine 11. Has become.

 すなわち、PTP包装機11は、最上流側にロール状に巻回された包装用フィルム3を配置できるようになっている。包装用フィルム3には、PP(ポリプロピレン)、PVC(ポリ塩化ビニル)等の光透過性を有する(ここでは透明性を有する)熱可塑性樹脂材料が採用されている。包装用フィルム3は、間欠的に搬送されるようになっており、包装用フィルム3の搬送経路に沿って、加熱手段14とポケット成形手段15とが順に配設されている。これら加熱手段14及びポケット成形手段15によって、ポケット部2が成形されるようになっている。そして、ポケット部2が形成された包装用フィルム3の移送経路に沿って、錠剤投入装置16、フィルム受けロール17が配設されている。錠剤投入装置16へと到達させられた包装用フィルム3の各ポケット部2には、該錠剤投入装置16によって、錠剤5が充填されるようになっている。 That is, the PTP packaging machine 11 can arrange the packaging film 3 wound in a roll shape on the most upstream side. The packaging film 3 is made of a light-transmissive (here, transparent) thermoplastic resin material such as PP (polypropylene) or PVC (polyvinyl chloride). The packaging film 3 is configured to be transported intermittently, and a heating unit 14 and a pocket forming unit 15 are sequentially arranged along a transport path of the packaging film 3. The pocket 2 is formed by the heating means 14 and the pocket forming means 15. A tablet feeding device 16 and a film receiving roll 17 are arranged along the transfer path of the packaging film 3 in which the pocket portion 2 is formed. Each pocket portion 2 of the packaging film 3 reached to the tablet input device 16 is filled with the tablet 5 by the tablet input device 16.

 一方、ロール状に巻回されたカバーフィルム4の引出し端は、前記フィルム受けロール17の方へと案内されている。フィルム受けロール17には、加熱ロール18が圧接可能となっており、両ロール17,18間を加熱圧接状態で通過することで、包装用フィルム3にカバーフィルム4が貼着されるようになっている。これにより、錠剤5が各ポケット部2に充填されたPTPフィルム6が製造される。かかるPTPフィルム6はその後図示しない打抜装置によってPTPシート1単位に裁断される。 On the other hand, the drawn end of the cover film 4 wound in a roll shape is guided toward the film receiving roll 17. A heating roll 18 can be pressed against the film receiving roll 17, and the cover film 4 is attached to the packaging film 3 by passing between the two rolls 17 and 18 in a heated and pressed state. ing. Thereby, the PTP film 6 in which the tablet 5 is filled in each pocket portion 2 is manufactured. The PTP film 6 is thereafter cut into one PTP sheet by a punching device (not shown).

 次に、PTPフィルム6の外観検査装置12について説明する。図1に示すように、外観検査装置12は、照明手段21、撮像手段としてのCCDカメラ22、画像処理装置23、モニタ24及びキーボード25を備えている。 Next, the appearance inspection device 12 for the PTP film 6 will be described. As shown in FIG. 1, the appearance inspection device 12 includes an illumination unit 21, a CCD camera 22 as an imaging unit, an image processing device 23, a monitor 24, and a keyboard 25.

 照明手段21は、赤外光を照射することができるものである。CCDカメラ22は、照明手段21から照射される赤外光の波長領域に感度を有するものである。ここで、CCDカメラ22と照明手段21との関係について説明する。図5に示すように、CCDカメラ22と照明手段21とは、PTPフィルム6のポケット部2側において配置されている。そして、照明手段21から照射される赤外光が、包装用フィルム3越しに錠剤5及びカバーフィルム4を照らし、錠剤5及びカバーフィルム4から反射した光が、CCDカメラ22によって二次元撮像されるようになっている。 (4) The illumination means 21 can emit infrared light. The CCD camera 22 has sensitivity in a wavelength region of infrared light emitted from the illumination unit 21. Here, the relationship between the CCD camera 22 and the illumination means 21 will be described. As shown in FIG. 5, the CCD camera 22 and the illuminating means 21 are arranged on the pocket 2 side of the PTP film 6. Then, the infrared light emitted from the illumination unit 21 illuminates the tablet 5 and the cover film 4 through the packaging film 3, and the light reflected from the tablet 5 and the cover film 4 is two-dimensionally imaged by the CCD camera 22. It has become.

 このとき、CCDカメラ22で撮像された映像信号としてのイメージデータにおいては、錠剤5の色に関係なく、錠剤5の明度がカバーフィルム4の明度よりも高くなる。また、錠剤5上の異物と錠剤5のひびや欠け等の明度は錠剤5の明度より低く、カバーフィルム4上の異物等の明度はカバーフィルム4の明度より低くなる。さらに、錠剤5の捺印部8及びカバーフィルム4の印刷部9は、赤外光を透過させやすい。このため、錠剤5の捺印部8と錠剤5自体の明度差が極めて小さく、カバーフィルム4の印刷部9とカバーフィルム4自体との明度差が極めて小さくなるようになっている。尚、以下では、錠剤5上の異物、錠剤5のひびや欠け等及びカバーフィルム4上の異物等を便宜上、「異物」と総称する。 At this time, in the image data as a video signal captured by the CCD camera 22, the brightness of the tablet 5 becomes higher than the brightness of the cover film 4 regardless of the color of the tablet 5. Further, the brightness of the foreign matter on the tablet 5 and the crack or chipping of the tablet 5 is lower than the brightness of the tablet 5, and the brightness of the foreign matter on the cover film 4 is lower than the brightness of the cover film 4. Further, the stamped portion 8 of the tablet 5 and the printed portion 9 of the cover film 4 easily transmit infrared light. For this reason, the difference in brightness between the stamped portion 8 of the tablet 5 and the tablet 5 itself is extremely small, and the difference in brightness between the printed portion 9 of the cover film 4 and the cover film 4 itself is extremely small. In the following, foreign substances on the tablet 5, cracks or chips of the tablet 5, and foreign substances on the cover film 4 are collectively referred to as "foreign substances" for convenience.

 次に、外観検査装置12の電気的構成について説明する。図1に示すように、画像処理装置23は、A/D変換器27、シェーディング補正手段28、第1の二値化手段29、第1の画像メモリ30、第2の二値化手段31、第2の画像メモリ32、第3の画像メモリ33、判定用メモリ34、CPU及び入出力インターフェース35、外観検査結果及び統計データメモリ36、カメラタイミング制御手段37などから構成される。 Next, the electrical configuration of the visual inspection device 12 will be described. As shown in FIG. 1, the image processing device 23 includes an A / D converter 27, a shading correction unit 28, a first binarization unit 29, a first image memory 30, a second binarization unit 31, It comprises a second image memory 32, a third image memory 33, a determination memory 34, a CPU and input / output interface 35, a visual inspection result and statistical data memory 36, a camera timing control means 37, and the like.

 A/D変換器27は、CCDカメラ22で撮像した二次元イメージデータを、アナログ信号からデジタル信号に変換するものである。A/D変換されたイメージデータは、シェーディング補正テーブル38のデータに従ってシェーディング補正手段28によってシェーディング補正された後、第3の画像メモリ33に記憶される。なお、シェーディング補正は、包装用フィルム3の撮像範囲全体を照明手段21の赤外光で均一に照らすことは技術的に限界があることから、位置の相違により生じる赤外光の明度のばらつきを補正するために行われるものである。 The A / D converter 27 converts two-dimensional image data captured by the CCD camera 22 from an analog signal to a digital signal. The A / D-converted image data is subjected to shading correction by the shading correction means 28 according to the data of the shading correction table 38, and then stored in the third image memory 33. In the shading correction, since there is a technical limit in uniformly illuminating the entire imaging range of the packaging film 3 with the infrared light of the illuminating unit 21, the variation in the brightness of the infrared light caused by the difference in the position is considered. This is performed for correction.

 また、同時に、前記補正された明度に関するデータは、第1の二値化手段29により第1の閾値δ1をもって二値化された後、第1の画像メモリ30に順次記憶されるようになっている。これにより、PTPフィルム6の第1の二値化イメージデータが形成される。第1の閾値δ1は、捺印部8を含めた錠剤5の存在する領域(錠剤領域)内にある異物を判定するためのものである。第1の閾値δ1としては、例えば、錠剤5の背景となるカバーフィルム4及び異物よりも明るい値、かつ、錠剤5及び捺印部8よりも暗い値が選択される。本実施の形態では、第1の閾値δ1は錠剤5の明度より若干低い値に設定されている。 At the same time, the data relating to the corrected brightness is binarized by the first binarization means 29 with the first threshold value δ1, and then sequentially stored in the first image memory 30. I have. Thereby, the first binarized image data of the PTP film 6 is formed. The first threshold value δ1 is for determining a foreign substance in an area (tablet area) where the tablet 5 exists including the seal portion 8. As the first threshold value δ1, for example, a value that is lighter than the cover film 4 and the foreign matter that are the background of the tablet 5 and a value that is darker than the tablet 5 and the seal portion 8 are selected. In the present embodiment, the first threshold δ1 is set to a value slightly lower than the brightness of the tablet 5.

 同様に、前記補正された明度に関するデータは、第2の二値化手段31により第2の閾値δ2をもって二値化された後、第2の画像メモリ32に記憶され、これによりPTPフィルム6の第2の二値化イメージデータが形成される。第2の閾値δ2は、主としてカバーフィルム4に存在する異物を判定するためのもので、カバーフィルム4及び印刷部9よりも暗い値が選択される。本実施の形態では、第2の閾値δ2はカバーフィルム4の明度より若干低い値に設定されている。 Similarly, the data regarding the corrected lightness is binarized by the second binarizing means 31 with the second threshold value δ2, and then stored in the second image memory 32. Second binary image data is formed. The second threshold value δ2 is mainly for determining foreign matter existing in the cover film 4, and a value darker than the cover film 4 and the printing unit 9 is selected. In the present embodiment, the second threshold value δ2 is set to a value slightly lower than the brightness of the cover film 4.

 CPU及び入出力インターフェース35は、各種画像処理プログラム、その他のプログラムを、判定用メモリ34の記憶内容などを使用しつつ実行するとともに、PTP包装機11に制御信号を送出し又はPTP包装機11から動作信号などの各種信号を受信するためのものである。これによって、例えば、PTP包装機11の不良シート排出機構などを制御することができるようになっている。また、CPU及び入出力インターフェース35は、モニタ24に表示データを送出する機能をも有する。かかる機能により、二値あるいは濃淡のイメージデータや外観検査結果などを、モニタ24に表示させることができるようになっている。 The CPU and the input / output interface 35 execute various image processing programs and other programs while using the contents stored in the memory for determination 34, and send a control signal to the PTP packaging machine 11 or This is for receiving various signals such as operation signals. Thereby, for example, a defective sheet discharging mechanism of the PTP packaging machine 11 can be controlled. Further, the CPU and the input / output interface 35 have a function of transmitting display data to the monitor 24. With this function, it is possible to display binary or grayscale image data, an appearance inspection result, and the like on the monitor 24.

 外観検査結果及び統計データメモリ36は、イメージデータに関する座標等のデータ、外観検査結果データ、及び、該外観検査結果データを確率統計的に処理した統計データなどを記憶するものである。これらの外観検査結果データや統計データは、CPU及び入出力インターフェース35の制御に基づき、モニタ24に表示させることができる。また、これらの外観検査結果データや統計データに基づいてCPU及び入出力インターフェース35がPTP包装機11に制御信号を送出することもできる。キーボード25は、判定用メモリ34に記憶される良否判断の基準値等の設定を入力するためのものである。 The visual inspection result and statistical data memory 36 stores data such as coordinates of image data, visual inspection result data, and statistical data obtained by statistically processing the visual inspection result data. These appearance inspection result data and statistical data can be displayed on the monitor 24 under the control of the CPU and the input / output interface 35. Further, the CPU and the input / output interface 35 can send a control signal to the PTP packaging machine 11 based on the appearance inspection result data and the statistical data. The keyboard 25 is for inputting settings such as a reference value for quality judgment stored in the judgment memory 34.

 カメラタイミング制御手段37は、CCDカメラ22が撮像するイメージデータを、A/D変換器27に取り込むタイミングを制御するものである。かかるタイミングはPTP包装機11に設けられた図示しないエンコーダからの信号に基づいて制御され、PTPフィルム6を所定量送るごとにCCDカメラ22の撮像が行われる。 The camera timing control means 37 controls the timing at which image data captured by the CCD camera 22 is taken into the A / D converter 27. Such timing is controlled based on a signal from an encoder (not shown) provided in the PTP packaging machine 11, and the CCD camera 22 captures an image every time the PTP film 6 is fed by a predetermined amount.

 次に、PTPフィルム6の外観検査の手順とともに、異物による外観不良品が検出される場合の具体例について、図6(a)〜(f),7,8に基づいて説明する。図6(a)は、具体例としてのPTPフィルム6の外観検査範囲の一部(以下、本検査範囲Pと記載する)であり、ポケット部2には、捺印部8(図では「C]の文字)の設けられた錠剤5が収納され、該錠剤5には異物Dxが付着しているものとする。また、カバーフィルム4には印刷部9(図では「123」の文字)が設けられ、異物Dyが付着しているものとする。このPTPフィルム6が、CCDカメラ22で撮像され、シェーディング補正されて第3の画像メモリ33に記憶される。例えば、図6(a)のA−A’線上の記憶された画像の明度は、図6(b)に示すように錠剤領域において高く、カバーフィルム4の領域及び異物領域が低くなる。 Next, a specific example in which a defective appearance due to foreign matter is detected together with the procedure of the appearance inspection of the PTP film 6 will be described with reference to FIGS. 6 (a) to (f), 7, and 8. FIG. 6A shows a part of a visual inspection range of the PTP film 6 as a specific example (hereinafter, referred to as a main inspection range P), and a seal portion 8 (“C” in FIG. It is assumed that a tablet 5 provided with a character () is stored, and a foreign substance Dx is attached to the tablet 5. Further, a printing unit 9 (character “123” in the figure) is provided on the cover film 4. It is assumed that foreign matter Dy is attached. The PTP film 6 is imaged by the CCD camera 22, subjected to shading correction, and stored in the third image memory 33. For example, the brightness of the stored image on the line A-A 'in FIG. 6A is high in the tablet area and the area of the cover film 4 and the foreign substance area are low as shown in FIG. 6B.

 次に、図7のフローチャートに示すようなルーチンR1が実行される。ルーチンR1では、画像処理装置23(主としてCPU)によって「第1の二値化処理に伴う検査判定」が実行される。画像処理装置23は、まずステップS1において、第1の二値化手段29によって第1の二値化イメージデータを形成し、該データを第1の画像メモリ30に記憶させる(第1の二値化処理)。すなわち、第1の閾値δ1以上を1(明)、閾値δ1未満を0(暗)として、本検査範囲Pにおいては、A−A’線上のデータが図6(c)、二次元的画像が図6(d)に示すような二値化イメージデータに変換される。 Next, a routine R1 as shown in the flowchart of FIG. 7 is executed. In the routine R1, the “inspection determination accompanying the first binarization process” is executed by the image processing device 23 (mainly the CPU). First, in step S1, the image processing device 23 forms first binarized image data by the first binarizing means 29 and stores the data in the first image memory 30 (first binary image data). Treatment). That is, assuming that the first threshold value δ1 or more is 1 (bright) and the value less than the first threshold value δ1 is 0 (dark), the data on the line AA ′ in FIG. It is converted into binary image data as shown in FIG.

 次に、ステップS2において、第1の画像メモリ30に記憶された第1の二値化イメージデータに対して塊処理を実行する。塊処理としては、二値化イメージデータの0(暗)及び1(明)について各連結成分を特定する処理と、それぞれの連結成分についてラベル付けを行うラベル付け処理とがある。ここで、それぞれ特定される各連結成分の占有面積はCCDカメラ22の画素に応じたドット数で表される。 Next, in step S2, block processing is performed on the first binarized image data stored in the first image memory 30. The block processing includes a process of specifying each connected component for 0 (dark) and 1 (bright) of the binarized image data, and a labeling process for labeling each connected component. Here, the occupied area of each of the specified connected components is represented by the number of dots corresponding to the pixels of the CCD camera 22.

 ステップS3において、画像処理装置23は、第1の二値化イメージデータから求めた1(明)の連結成分の中から、捺印部8を含む錠剤5に相当する連結成分を特定する。錠剤5に相当する連結成分は、所定の座標を含む連結成分、所定の形状である連結成分、或いは所定の面積であるところの連結成分等の判断手法により容易に錠剤5に相当する連結成分、すなわち、錠剤領域を特定することができる。従って、本検査範囲Pにおいては、異物Dxを含んだ錠剤領域J(図6(d)参照)が特定される。 In step S3, the image processing device 23 specifies a connected component corresponding to the tablet 5 including the seal portion 8 from among 1 (bright) connected components obtained from the first binarized image data. The connected component corresponding to the tablet 5 is a connected component including predetermined coordinates, a connected component having a predetermined shape, or a connected component easily corresponding to the tablet 5 by a determination method such as a connected component having a predetermined area, That is, the tablet region can be specified. Accordingly, in the inspection range P, the tablet area J (see FIG. 6D) including the foreign matter Dx is specified.

 ステップS4では、画像処理装置23は、錠剤領域内の異物の面積Sxを演算する。すなわち、第1の二値化イメージデータから求めた0(暗)の連結成分のうち、ステップS3で特定した錠剤領域の座標に含まれる、あるいは連なるものを抽出し、その面積つまり異物の面積Sxを求める。従って、本検査範囲Pでは、異物Dxの面積が算出される。 In step S4, the image processing device 23 calculates the area Sx of the foreign matter in the tablet area. That is, of the connected components of 0 (dark) obtained from the first binarized image data, those which are included in or connected to the coordinates of the tablet area specified in step S3 are extracted, and the area thereof, that is, the area Sx of the foreign matter, is extracted. Ask for. Therefore, in the inspection range P, the area of the foreign matter Dx is calculated.

 ステップS5では、異物の面積Sxを予め定められた判定基準値Pxと比較する。そして、異物の面積Sxが判定基準値Pよりも小さい場合には、ステップS6へ移行し、非異物判定(正常判定)を行う。一方、異物の面積Sxが判定基準値Px以上の場合はステップS7へ移行し、該ステップS7において異物判定(異常判定)を行う。従って、本検査範囲Pにおいて、異物Dxの面積が判定基準値Pxと比較されることで、異物Dxが異物であるか否かが判定される。このように、ルーチンR1では、錠剤領域を特定した上で、捺印部8の存在に関係なく該錠剤領域内の異物の存在の有無が判定される。 In step S5, the area Sx of the foreign matter is compared with a predetermined reference value Px. When the area Sx of the foreign matter is smaller than the determination reference value P, the process proceeds to step S6, and a non-foreign matter determination (normal determination) is performed. On the other hand, when the area Sx of the foreign matter is equal to or larger than the determination reference value Px, the process proceeds to step S7, where foreign matter determination (abnormality determination) is performed. Accordingly, in the inspection range P, the area of the foreign matter Dx is compared with the determination reference value Px to determine whether the foreign matter Dx is a foreign matter. As described above, in the routine R <b> 1, after the tablet area is specified, it is determined whether or not there is a foreign substance in the tablet area regardless of the presence of the seal portion 8.

 さて、図8は、ルーチンR2を示すフローチャートであり、ルーチンR2では、画像処理装置23によって「第2の二値化処理に伴う検査判定」が実行される。まず、ステップS11において、画像処理装置23は、第2の二値化手段31によって第2の二値化イメージデータを形成し、該データを第2の画像メモリ32に記憶させる。すなわち、第2の閾値δ2以上を1(明)、第2の閾値δ2未満を0(暗)として、本検査範囲Pにおいては、A−A’線上のデータが図6(e)、二次元的画像が図6(f)に示すような二値化イメージデータに変換される。 FIG. 8 is a flowchart showing the routine R2. In the routine R2, the “inspection determination accompanying the second binarization process” is performed by the image processing device 23. First, in step S11, the image processing device 23 forms second binarized image data by the second binarizing means 31, and stores the data in the second image memory 32. That is, assuming that 1 (bright) is greater than or equal to the second threshold δ2 and 0 (dark) is less than the second threshold δ2, the data on the line AA ′ is two-dimensional in FIG. The target image is converted into binary image data as shown in FIG.

 ステップS12において、第2の画像メモリ32に記憶された第2の二値化イメージデータに対して、ステップS2と同様の塊処理を実行する。 In step S12, the block processing similar to step S2 is performed on the second binarized image data stored in the second image memory 32.

 ステップS13では、画像処理装置23は、異物の面積Syを演算する。すなわち、第2の二値化イメージデータから求めた0(暗)の連結成分を抽出し、その面積つまり異物の面積Syを求める。従って、本検査範囲Pにおいては、異物Dyの面積が算出される。 In step S13, the image processing device 23 calculates the area Sy of the foreign matter. That is, a connected component of 0 (dark) obtained from the second binarized image data is extracted, and its area, that is, the area Sy of the foreign matter is obtained. Therefore, in the main inspection range P, the area of the foreign matter Dy is calculated.

 ステップS14では、異物の面積Syを予め定められた判定基準値Pyと比較する。そして、異物の面積Syが判定基準値Pyよりも小さい場合には、ステップS15へ移行し、非異物判定(正常判定)を行う。一方、異物の面積Syが判定基準値Py以上の場合はステップS16へ移行し、該ステップS16において異物判定(異常判定)を行う。従って、本検査範囲Pにおいて、異物Dyの面積が判定基準値Pyと比較されることで、異物Dyが異物であるか否かが判定される。このように、ルーチンR2では、印刷部9の存在に関係なく、主としてカバーフィルム4上の異物の存在の有無が判定される。 In step S14, the area Sy of the foreign matter is compared with a predetermined determination reference value Py. If the area Sy of the foreign matter is smaller than the determination reference value Py, the process proceeds to step S15, and a non-foreign matter determination (normality determination) is performed. On the other hand, if the area Sy of the foreign matter is equal to or larger than the determination reference value Py, the process proceeds to step S16, where foreign matter determination (abnormality determination) is performed. Therefore, in the inspection range P, it is determined whether or not the foreign matter Dy is a foreign matter by comparing the area of the foreign matter Dy with the determination reference value Py. As described above, in the routine R2, it is mainly determined whether or not there is a foreign substance on the cover film 4 irrespective of the presence of the printing unit 9.

 上記ルーチンR1,R2の処理は、PTPシート1の製造過程で実行され、その処理単位はPTPシート1単位である。そして、ルーチンR1,R2のうち、少なくとも一方で異物判定されるときは、そのPTPシート1は不良と判断され排出される。 The processes of the above-mentioned routines R1 and R2 are executed in the process of manufacturing the PTP sheet 1, and the processing unit is one PTP sheet. If at least one of the routines R1 and R2 is determined to be foreign, the PTP sheet 1 is determined to be defective and is discharged.

 以上詳述したように、本実施の形態によれば、錠剤5の捺印部8には、赤外光に対し透過性を有するインクが採用されている。このため、赤外光を照射した際の反射光において、捺印部8と錠剤5自体との明度差が極めて小さくなる。さらに、第1の閾値δ1を錠剤5の明度より若干低い値に設定することで、捺印部8の存在の有無に関係なく、捺印部8のみが無視された上で、錠剤領域の異物を判定できる。 As described in detail above, according to the present embodiment, ink having transparency to infrared light is used for the seal portion 8 of the tablet 5. Therefore, the difference in brightness between the stamped portion 8 and the tablet 5 itself becomes extremely small in the reflected light when the infrared light is irradiated. Further, by setting the first threshold value δ1 to a value slightly lower than the brightness of the tablet 5, regardless of the presence or absence of the stamped portion 8, only the stamped portion 8 is ignored and foreign matter in the tablet area is determined. it can.

 加えて、カバーフィルム4の印刷部9には、前記捺印部8と同様に赤外光に対し透過性を有するインクが採用されているため、赤外光を照射した際の反射光において、印刷部9とカバーフィルム4自体との明度差が極めて小さくなる。さらに、第2の閾値δ2をカバーフィルム4の明度より若干低い値に設定することで、印刷部9の存在の有無に関係なく、印刷部9のみが無視された上で、第1の閾値δ1では判別できなかったカバーフィルム4上の異物まで判定できる。従って、捺印部8や印刷部9の範囲にマスク処理を施したりする必要があり、しかもマスクされた範囲の検査が困難である従来技術とは異なり、マスク処理が不要になり、捺印部8及び印刷部9の存在する範囲における検査についても、比較的正確に行うことができる。 In addition, the printing portion 9 of the cover film 4 is made of an ink having a transmittance to infrared light as in the case of the seal portion 8, so that the reflected light when irradiating infrared light is used for printing. The brightness difference between the portion 9 and the cover film 4 itself becomes extremely small. Furthermore, by setting the second threshold value δ2 to a value slightly lower than the brightness of the cover film 4, regardless of the presence or absence of the printing unit 9, only the printing unit 9 is ignored and the first threshold δ1 is set. Can be determined even on the cover film 4 which could not be determined. Therefore, it is necessary to apply a mask process to the area of the stamping section 8 and the printing section 9, and unlike the prior art in which it is difficult to inspect the masked area, mask processing is not required, and the stamping section 8 and the printing section 9 are not required. The inspection in the area where the printing unit 9 exists can be performed relatively accurately.

 また、赤外光の下では、錠剤5の色に関係なく、錠剤5の明度がカバーフィルム4の明度よりも高くなる。このため、錠剤5の色により照明色調を変更したり、カラーフィルタをかけたりする必要がなく、光学的な設定の簡素化を図ることができる。 (4) Under infrared light, the brightness of the tablet 5 is higher than the brightness of the cover film 4 regardless of the color of the tablet 5. For this reason, there is no need to change the illumination color tone or apply a color filter depending on the color of the tablet 5, and it is possible to simplify optical settings.

 尚、上述した実施の形態の記載内容に限定されることなく、例えば次のように実施してもよい。 Note that the present invention is not limited to the above-described embodiment, and may be implemented as follows, for example.

 (a)外観検査の手順において、ルーチンR1での二値化処理を行わず、第1の閾値δ1以上の明度領域を検出し、該明度領域から錠剤領域を判定し、錠剤領域内の第1の閾値δ1未満の明度領域の面積について、異物判定を実施してもよい。同様に、ルーチンR2での二値化処理を行わず、第2の閾値δ2未満の明度領域の面積について異物判定を実施してもよい。 (A) In the procedure of the visual inspection, without performing the binarization process in the routine R1, a lightness area equal to or more than the first threshold δ1 is detected, a tablet area is determined from the lightness area, and the first area in the tablet area is determined. The foreign matter determination may be performed for the area of the brightness region less than the threshold value δ1. Similarly, without performing the binarization process in the routine R2, the foreign matter determination may be performed on the area of the lightness area smaller than the second threshold value δ2.

 (b)上記実施の形態では、1つの検査領域内に異物が複数ある場合について特に言及していないが、異物の可能性がある面積Sx,Syが複数あるようなときは、最大の異物面積についてのみ判定基準値Px,Pyと比較判定してもよいし、それぞれについて判定基準値Px,Pyと比較判定してもよい。 (B) Although the above embodiment does not particularly mention a case where there are a plurality of foreign matters in one inspection area, when there are a plurality of areas Sx and Sy where there is a possibility of foreign matters, the largest foreign matter area May be compared with the judgment reference values Px and Py, or each of them may be compared with the judgment reference values Px and Py.

 (c)ルーチンR1,R2は必ずしも両方を実行する必要はなく、ルーチンR1において異物判定された場合は、ルーチンR2を実行しなくてもよいし、ルーチンR2において異物判定された場合は、ルーチンR1を実行しなくてもよい。 (C) The routines R1 and R2 do not necessarily need to execute both. If the foreign object is determined in the routine R1, the routine R2 may not be executed. If the foreign object is determined in the routine R2, the routine R1 may be executed. Need not be executed.

 (d)上記実施の形態ではPTPフィルム6の外観検査を行うための外観検査装置に具体化したが、例えば移送コンベア上に載置された錠剤の外観を検査する装置に具体化してもよい。 (D) In the above embodiment, the present invention is embodied as an appearance inspection apparatus for inspecting the appearance of the PTP film 6, but may be embodied as an apparatus for inspecting the appearance of tablets placed on a transfer conveyor, for example.

 (e)照明手段21として、赤外光を含み、赤外光以外の波長領域の光、例えば、可視光を照射するものを採用するとともに、撮像手段として、赤外光のみに感度を持つカメラ、又は、赤外光に感度を持つカメラの前に赤外光のみを通過させるフィルタを採用してもよい。 (E) A camera that includes infrared light and emits light in a wavelength region other than infrared light, for example, visible light, is employed as the illumination means 21 and a camera having sensitivity only to infrared light as an imaging means. Alternatively, a filter that allows only infrared light to pass may be employed in front of a camera that is sensitive to infrared light.

外観検査装置の電気的構成を示すブロック図である。FIG. 2 is a block diagram illustrating an electrical configuration of the visual inspection device. (a)はPTPシートを、(b)はPTPフィルムを示す斜視図である。(A) is a perspective view showing a PTP sheet, (b) is a perspective view showing a PTP film. PTPシートを示す部分拡大断面図である。It is a partial expanded sectional view showing a PTP sheet. PTP包装機等の概略構成を示す模式図である。It is a schematic diagram which shows the schematic structure of a PTP packaging machine etc. PTP包装機における外観検査装置を示す斜視図である。It is a perspective view showing the appearance inspection device in a PTP packing machine. 外観検査装置において異物が検出される具体例を説明するための図であって、(a)は異物の付着したPTPフィルムの外観検査範囲の一部を示す平面図であり、(b)は第3の画像メモリに記憶された図6(a)のA−A’線における明度を示す図であり、(c)は第1の二値化手段により二値化された図6(b)のA−A’線における二値化イメージデータであり、(d)は第1の二値化手段により二値化された図6(a)の二次元的画像の二値化イメージデータであり、(e)は第2の二値化手段により二値化された図6(b)のA−A’線における二値化イメージデータであり、(f)は第2の二値化手段により二値化された図6(a)の二次元的画像の二値化イメージデータである。It is a figure for explaining the example in which a foreign material is detected in a visual inspection device, (a) is a top view showing a part of a visual inspection range of a PTP film to which a foreign material adhered, and (b) is a top view. FIG. 7B is a diagram showing the brightness on the line AA ′ of FIG. 6A stored in the image memory of FIG. 6A, and FIG. 6C is a diagram of FIG. 6B binarized by the first binarizing means; FIG. 6D shows binarized image data along the line AA ′, and FIG. 6D shows binarized image data of the two-dimensional image of FIG. 6A binarized by the first binarizing means; FIG. 6E shows the binarized image data on the line AA ′ in FIG. 6B binarized by the second binarizing unit, and FIG. It is the binarized image data of the binarized two-dimensional image of FIG. 画像処理装置により実行される「第1の二値化処理に伴う検査判定」のルーチンを示すフローチャートである。9 is a flowchart illustrating a routine of “inspection determination accompanying the first binarization process” executed by the image processing apparatus. 画像処理装置により実行される「第2の二値化処理に伴う検査判定」のルーチンを示すフローチャートである。9 is a flowchart illustrating a routine of “inspection determination accompanying the second binarization process” executed by the image processing apparatus.

符号の説明Explanation of reference numerals

1…PTPシート、2…ポケット部、3…包装用フィルム、4…カバーフィルム、5…錠剤、8…識別情報としての捺印部、9…識別情報としての印刷部、11…PTP包装機、12…外観検査装置、21…照明手段、22…CCDカメラ、23…画像処理装置、δ1…第1の閾値、δ2…第2の閾値、Px…判定基準値、Py・・・判定基準値。 DESCRIPTION OF SYMBOLS 1 ... PTP sheet, 2 ... Pocket part, 3 ... Packing film, 4 ... Cover film, 5 ... Tablet, 8 ... Seal part as identification information, 9 ... Printing part as identification information, 11 ... PTP packaging machine, 12 ... Appearance inspection device, 21. Illumination means, 22. CCD camera, 23. Image processing device, .delta.1 first threshold, .delta.2 second threshold, Px determination standard value, Py determination standard value.

Claims (6)

 錠剤の外観検査装置であって、
 少なくとも前記錠剤に対して赤外光を含む光を照射する照明手段と、
 赤外光に感度を有し、前記照明手段により照射された面を撮像する撮像手段と、
 前記撮像手段から出力される映像信号を処理する画像処理装置とを備え、
 前記画像処理装置は、前記映像信号によって得られる画像イメージデータを用いて、前記錠剤の表面に付された識別情報を無視した上で、前記錠剤の存在する領域内の異常を判定するための判定手段を備えることを特徴とする外観検査装置。
A tablet appearance inspection device,
Illuminating means for irradiating at least the tablet with light including infrared light,
Imaging means having sensitivity to infrared light and imaging the surface illuminated by the illumination means,
An image processing device that processes a video signal output from the imaging unit,
The image processing apparatus uses the image data obtained by the video signal to ignore the identification information attached to the surface of the tablet, and to determine an abnormality in an area where the tablet exists. A visual inspection apparatus characterized by comprising means.
 移送コンベア上に載置された錠剤の外観検査装置であって、
 少なくとも前記錠剤に対して赤外光を含む光を照射する照明手段と、
 赤外光に感度を有し、前記照明手段により照射された面を撮像する撮像手段と、
 前記撮像手段から出力される映像信号を処理する画像処理装置とを備え、
 前記画像処理装置は、前記映像信号によって得られる画像イメージデータを用いて、前記錠剤の表面に付された識別情報を無視した上で、前記錠剤の存在する領域内の異常を判定するための判定手段を備えることを特徴とする外観検査装置。
A visual inspection device for tablets placed on a transfer conveyor,
Illuminating means for irradiating at least the tablet with light including infrared light,
Imaging means having sensitivity to infrared light and imaging the surface illuminated by the illumination means,
An image processing device that processes a video signal output from the imaging unit,
The image processing apparatus uses the image data obtained by the video signal to ignore the identification information attached to the surface of the tablet, and to determine an abnormality in an area where the tablet exists. A visual inspection apparatus characterized by comprising means.
 前記画像イメージデータは、明度に関する濃淡イメージデータであり、
 前記判定手段は、前記濃淡イメージデータを所定の閾値に基づき判定するものであり、
 前記閾値は、前記錠剤表面及び前記識別情報の明度より低く、かつ、前記錠剤の背景及び異常部分の明度より高く設定されていることを特徴とする請求項1または2に記載の外観検査装置。
The image data is grayscale image data related to lightness,
The determining means determines the grayscale image data based on a predetermined threshold value,
The visual inspection device according to claim 1, wherein the threshold value is set lower than the brightness of the tablet surface and the identification information, and higher than the brightness of the background and abnormal portion of the tablet.
 前記判定手段は、前記濃淡イメージデータから前記閾値を基準に二値化した画像イメージデータを作成した上で、判定を行うことを特徴とする請求項3に記載の外観検査装置。 4. The visual inspection apparatus according to claim 3, wherein the determination unit makes a determination after creating binary image data from the grayscale image data based on the threshold value.  前記判定手段は、前記錠剤の存在する領域内における前記錠剤の明度より低い明度の連結成分の面積を所定の判定基準値と比較することで判定を行うことを特徴とする請求項3又は4に記載の外観検査装置。 The method according to claim 3, wherein the determination unit performs the determination by comparing an area of a connected component having a brightness lower than the brightness of the tablet in a region where the tablet exists with a predetermined determination reference value. Visual inspection device as described.  前記識別情報は、赤外光に対し、透過性を有するインクが使用されることで付されていることを特徴とする請求項1乃至5のいずれかに記載の外観検査装置。 The visual inspection apparatus according to any one of claims 1 to 5, wherein the identification information is provided by using an ink having a property of transmitting infrared light.
JP2003360343A 2003-10-21 2003-10-21 Visual inspection device Pending JP2004077495A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003360343A JP2004077495A (en) 2003-10-21 2003-10-21 Visual inspection device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003360343A JP2004077495A (en) 2003-10-21 2003-10-21 Visual inspection device

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2002009102A Division JP2003215047A (en) 2002-01-17 2002-01-17 Visual inspection apparatus and ptp packaging machine equipped with the same

Publications (1)

Publication Number Publication Date
JP2004077495A true JP2004077495A (en) 2004-03-11

Family

ID=32025917

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003360343A Pending JP2004077495A (en) 2003-10-21 2003-10-21 Visual inspection device

Country Status (1)

Country Link
JP (1) JP2004077495A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008155948A1 (en) * 2007-06-19 2008-12-24 Qualicaps Co., Ltd. Appearance inspecting apparatus
WO2015198754A1 (en) * 2014-06-27 2015-12-30 株式会社Screenホールディングス Tablet printing apparatus and tablet printing method
KR20160041313A (en) * 2014-10-07 2016-04-18 동우 화인켐 주식회사 Apparatus and method for inspection of touch panel
KR101845721B1 (en) 2016-03-29 2018-04-05 동우 화인켐 주식회사 Apparatus and method for inspection of film type touch sensor

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60195439A (en) * 1984-03-17 1985-10-03 Ikegami Tsushinki Co Ltd Surface inspecting method of article
JPH09187915A (en) * 1996-01-10 1997-07-22 Nippon Eranko Kk Printer for tablet
JPH09231342A (en) * 1996-02-26 1997-09-05 Sanyo Electric Co Ltd Method and device for inspecting tablet
JPH10267865A (en) * 1997-03-26 1998-10-09 Asahi Chem Ind Co Ltd Method and device for inspecting ptp sheet
JPH1172440A (en) * 1997-08-29 1999-03-16 Ckd Corp Method and apparatus for visual inspection of stamped tablet
JPH11236514A (en) * 1998-02-20 1999-08-31 Dainichiseika Color & Chem Mfg Co Ltd Near infrared ray transmitting and dark colored azo-based pigment composition
JP2000055640A (en) * 1998-08-03 2000-02-25 Ckd Corp Ptp seal inspecting device
JP2000135268A (en) * 1998-08-26 2000-05-16 Yuyama Seisakusho:Kk Tablet testing device
JP2000182052A (en) * 1998-12-14 2000-06-30 Toshiba Corp Stain degree discriminating device of printed matter
JP2000182502A (en) * 1998-12-11 2000-06-30 Nitto Electric Works Ltd Molded-case circuit breaker
JP2000214097A (en) * 1999-01-28 2000-08-04 Ckd Corp Visual inspection apparatus for tablet and ptp packaging machine
JP2001033390A (en) * 1999-07-16 2001-02-09 Ckd Corp Visual examination apparatus of tablet and ptp packaging machine
JP2001108624A (en) * 1999-10-04 2001-04-20 Lion Engineering Kk Method for appearance inspection of object
JP2003004647A (en) * 2001-06-18 2003-01-08 Toyobo Co Ltd Defect inspection apparatus

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60195439A (en) * 1984-03-17 1985-10-03 Ikegami Tsushinki Co Ltd Surface inspecting method of article
JPH09187915A (en) * 1996-01-10 1997-07-22 Nippon Eranko Kk Printer for tablet
JPH09231342A (en) * 1996-02-26 1997-09-05 Sanyo Electric Co Ltd Method and device for inspecting tablet
JPH10267865A (en) * 1997-03-26 1998-10-09 Asahi Chem Ind Co Ltd Method and device for inspecting ptp sheet
JPH1172440A (en) * 1997-08-29 1999-03-16 Ckd Corp Method and apparatus for visual inspection of stamped tablet
JPH11236514A (en) * 1998-02-20 1999-08-31 Dainichiseika Color & Chem Mfg Co Ltd Near infrared ray transmitting and dark colored azo-based pigment composition
JP2000055640A (en) * 1998-08-03 2000-02-25 Ckd Corp Ptp seal inspecting device
JP2000135268A (en) * 1998-08-26 2000-05-16 Yuyama Seisakusho:Kk Tablet testing device
JP2000182502A (en) * 1998-12-11 2000-06-30 Nitto Electric Works Ltd Molded-case circuit breaker
JP2000182052A (en) * 1998-12-14 2000-06-30 Toshiba Corp Stain degree discriminating device of printed matter
JP2000214097A (en) * 1999-01-28 2000-08-04 Ckd Corp Visual inspection apparatus for tablet and ptp packaging machine
JP2001033390A (en) * 1999-07-16 2001-02-09 Ckd Corp Visual examination apparatus of tablet and ptp packaging machine
JP2001108624A (en) * 1999-10-04 2001-04-20 Lion Engineering Kk Method for appearance inspection of object
JP2003004647A (en) * 2001-06-18 2003-01-08 Toyobo Co Ltd Defect inspection apparatus

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008155948A1 (en) * 2007-06-19 2008-12-24 Qualicaps Co., Ltd. Appearance inspecting apparatus
JP2009002690A (en) * 2007-06-19 2009-01-08 Qualicaps Co Ltd Visual inspection device
US8154593B2 (en) 2007-06-19 2012-04-10 Qualicaps Co., Ltd. Appearance inspection device
KR101453933B1 (en) * 2007-06-19 2014-10-24 쿠오리카프스 가부시키가이샤 Appearance inspecting apparatus
WO2015198754A1 (en) * 2014-06-27 2015-12-30 株式会社Screenホールディングス Tablet printing apparatus and tablet printing method
JP2016010437A (en) * 2014-06-27 2016-01-21 株式会社Screenホールディングス Tablet printing device and tablet printing method
KR20160041313A (en) * 2014-10-07 2016-04-18 동우 화인켐 주식회사 Apparatus and method for inspection of touch panel
KR101687163B1 (en) 2014-10-07 2016-12-16 동우 화인켐 주식회사 Apparatus and method for inspection of touch panel
KR101845721B1 (en) 2016-03-29 2018-04-05 동우 화인켐 주식회사 Apparatus and method for inspection of film type touch sensor

Similar Documents

Publication Publication Date Title
JP2003215047A (en) Visual inspection apparatus and ptp packaging machine equipped with the same
CN110023742B (en) Inspection device and PTP packaging machine
JP4523474B2 (en) Defect inspection device and PTP packaging machine
JP4332122B2 (en) Appearance inspection device and PTP packaging machine
JP2007279064A (en) Visual inspection device for ptp encapsuled body
JP2006189354A (en) Visual inspection device and ptp packaging machine
JP4627257B2 (en) Inspection device, container with shrink label and shrink label
JP3929647B2 (en) Tablet appearance inspection device and PTP packaging machine
JP4472499B2 (en) Defect inspection device and PTP packaging machine
JP2002099898A (en) Tablet surface inspection device
JP2004077495A (en) Visual inspection device
JP4201143B2 (en) Appearance inspection device and PTP packaging machine equipped with appearance inspection device
JP2004212159A (en) Inspection device for tape member
JP2006226857A (en) Inspection method and inspection device for printed matter
WO2021161619A1 (en) Inspection device, packaging sheet manufacturing device, and inspection method
JP5063235B2 (en) Tablet inspection device and PTP packaging machine
JP5313999B2 (en) Tablet inspection device and PTP packaging machine
JP4034222B2 (en) Appearance inspection apparatus for PTP sheet packed with tablets and PTP packaging machine
JP4788870B2 (en) Defect inspection device and PTP packaging machine
JP2016067930A (en) Inspection method of absorbent article
JP2009162728A (en) Transparent body inspection apparatus, transparent body inspection method, and transparent body inspection system
US20240027340A1 (en) Imaging Device, Inspection Device, and Imaging Method
JP4455348B2 (en) Inspection device and PTP packaging machine
JP2008116304A (en) Method and device for visual examination of ptp sheet
JP2007256132A (en) Inspection device and ptp-sheet manufacturing apparatus

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20050517

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050630

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060307

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060427

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20060926