JP4332122B2 - Appearance inspection device and PTP packaging machine - Google Patents

Appearance inspection device and PTP packaging machine Download PDF

Info

Publication number
JP4332122B2
JP4332122B2 JP2005008491A JP2005008491A JP4332122B2 JP 4332122 B2 JP4332122 B2 JP 4332122B2 JP 2005008491 A JP2005008491 A JP 2005008491A JP 2005008491 A JP2005008491 A JP 2005008491A JP 4332122 B2 JP4332122 B2 JP 4332122B2
Authority
JP
Japan
Prior art keywords
tablet
color
luminance
pixels
constant
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.)
Active
Application number
JP2005008491A
Other languages
Japanese (ja)
Other versions
JP2006194801A (en
Inventor
幸弘 田口
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
CKD Corp
Original Assignee
CKD Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by CKD Corp filed Critical CKD Corp
Priority to JP2005008491A priority Critical patent/JP4332122B2/en
Publication of JP2006194801A publication Critical patent/JP2006194801A/en
Application granted granted Critical
Publication of JP4332122B2 publication Critical patent/JP4332122B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Description

本発明は、PTPシートの製造に際し用いられる外観検査装置、及び、該外観検査装置を備えたPTP包装機を含む技術分野に属するものである。   The present invention belongs to a technical field including an appearance inspection apparatus used in manufacturing a PTP sheet and a PTP packaging machine provided with the appearance inspection apparatus.

一般に、PTPシートは、錠剤等が充填されるポケット部が形成された樹脂製の包装用フィルムと、その包装用フィルムにポケット部の開口側を密封するように前記包装用フィルムに取着されるアルミニウム製のカバーフィルムとから構成されている。   In general, a PTP sheet is attached to a packaging film made of resin in which a pocket portion filled with tablets or the like is formed, and the packaging film so that the opening side of the pocket portion is sealed to the packaging film. It is comprised from the cover film made from aluminum.

従来、PTPシートの製造に際しては、ポケット部に錠剤等が充填された後、錠剤の色異常を検出する色識別検査が行われる。この色識別検査によって例えば異種錠の混入を検出することができる。   Conventionally, when manufacturing a PTP sheet, after a tablet or the like is filled in a pocket portion, a color identification inspection for detecting color abnormality of the tablet is performed. For example, mixing of different types of tablets can be detected by this color identification inspection.

色識別検査では、先ず照明手段から錠剤に光を照射し、その反射光をカメラによりカラー撮像する。そして、カラー画像データであるRGBデータをHIS変換し、色相H・彩度S・輝度Iや輝度統計(H・S・Iのスペクトラム分布の平均や標準偏差等)を求め、これらと所定の基準値との類似度から錠剤の色異常を検出する(例えば、特許文献1参照)。   In the color identification inspection, light is first applied to the tablet from the illumination means, and the reflected light is color-imaged by a camera. Then, RGB data, which is color image data, is subjected to HIS conversion to obtain hue H, saturation S, luminance I, and luminance statistics (average, standard deviation, etc. of the spectrum distribution of H, S, I) and these and a predetermined standard The color abnormality of the tablet is detected from the similarity with the value (see, for example, Patent Document 1).

HIS変換を行う理由としては、一般にカラー画像(RGB)では、同じ色(色相H)、同じ濃さ(彩度S)であると人間が認識しても、明るさ(輝度I)が変化するとRGB値は大きく変化するが、色相H・彩度S・輝度Iでは人間が感じる色の感覚に近い表現ができるとされているためである。
特開平10−104076号公報
The reason for performing the HIS conversion is that, in general, in a color image (RGB), even if a human recognizes that the same color (hue H) and the same darkness (saturation S), the brightness (luminance I) changes. This is because the RGB values vary greatly, but the hue H, saturation S, and luminance I can be expressed close to the sense of color felt by humans.
Japanese Patent Laid-Open No. 10-104076

しかしながら、従来の色識別検査では、例えば色相Hを求める場合、彩度Sや輝度Iが小さい時に誤差が大きくなる。つまり、錠剤の色が白色に近くなるほど、色相H・彩度S・輝度Iや輝度統計を適正に求めることが困難となり、色識別精度が低下するおそれがある。錠剤色としては白色に近い色が多用されているため、このような不具合は頻繁に起こり得る。   However, in the conventional color identification inspection, for example, when obtaining the hue H, the error increases when the saturation S and the luminance I are small. That is, the closer the tablet color is to white, the more difficult it is to obtain the hue H, saturation S, luminance I, and luminance statistics, and there is a risk that the color identification accuracy will decrease. Since a color close to white is frequently used as the tablet color, such a problem can occur frequently.

また、輝度統計処理により得られた最多値を錠剤の色として色識別検査を行う方法もあるが、捺印錠剤を検査する場合や錠剤表面に異物が付着している場合などは、錠剤の色として得られるデータに捺印文字色や異物色のデータも含まれてしまうため、このような方法でも色識別精度が低下するおそれがある。   In addition, there is a method of performing color identification inspection using the maximum value obtained by luminance statistical processing as the color of the tablet, but when inspecting a stamped tablet or when foreign matter adheres to the tablet surface, the color of the tablet Since the data obtained includes stamped character color and foreign matter color data, there is a possibility that the color identification accuracy may be lowered even with such a method.

本発明は、上記事情に鑑みてなされたものであり、PTPシートの製造過程における外観不良を検査するに際し、錠剤の色識別精度の向上を図ることのできる外観検査装置、及び、PTP包装機を提供することを主たる目的の一つとしている。   The present invention has been made in view of the above circumstances, and has an appearance inspection apparatus and a PTP packaging machine that can improve the color identification accuracy of tablets when inspecting appearance defects in the manufacturing process of PTP sheets. It is one of the main purposes to provide.

以下、上記目的等を解決するのに適した各手段につき項分けして説明する。なお、必要に応じて対応する手段に特有の作用効果等を付記する。   In the following, each means suitable for solving the above-mentioned purpose will be described in terms of items. In addition, the effect etc. peculiar to the means to respond | correspond as needed are added.

手段1. 包装用フィルムに形成されたポケット部に錠剤が収容され、ポケット部を塞ぐようにカバーフィルムが取着されるPTPシートの製造に際し用いられる外観検査装置であって、
少なくとも前記錠剤に対して所定の光を照射する照明手段と、
前記照明手段により照射された面を撮像する撮像手段と、
前記撮像手段から出力される画像信号を処理する画像処理装置とを備え、
前記画像信号から得たカラー画像データを基に前記錠剤の色異常を検出する色識別検査を実行可能に構成され、
前記色識別検査に際しては、
前記カラー画像データのうち前記錠剤に相当する部分の複数の画素の中から、当該画素における赤の輝度に第1の定数を乗算した値と、当該画素における緑の輝度に第2の定数を乗算した値と、当該画素における青の輝度に第3の定数を乗算した値との総和たる輝度の高い順に所定数の画素を抽出し、
当該所定数の画素のRGB各成分毎の輝度に基づく判定により前記錠剤の色異常を検出可能にしたことを特徴とする外観検査装置。
Means 1. It is an appearance inspection device used in the manufacture of a PTP sheet in which a tablet is accommodated in a pocket portion formed in a packaging film and a cover film is attached so as to close the pocket portion,
Illumination means for irradiating at least the tablet with predetermined light;
Imaging means for imaging the surface illuminated by the illumination means;
An image processing device for processing an image signal output from the imaging means,
It is configured to be able to perform a color identification test for detecting color abnormality of the tablet based on color image data obtained from the image signal,
In the color identification inspection,
Among a plurality of pixels in the color image data corresponding to the tablet, a value obtained by multiplying the red luminance in the pixel by the first constant and a green constant in the pixel are multiplied by the second constant. A predetermined number of pixels in the descending order of luminance, which is the sum of the obtained value and the value obtained by multiplying the blue luminance of the pixel by the third constant ,
An appearance inspection apparatus characterized in that color abnormality of the tablet can be detected by determination based on luminance of each RGB component of the predetermined number of pixels.

上記手段1によれば、包装用フィルムに形成されたポケット部に錠剤が収容され、ポケット部を塞ぐようにカバーフィルムが取着されるPTPシートの製造に際しては、色識別検査が行われる。色識別検査においては、撮像されたカラー画像データのうち錠剤に相当する部分の複数の画素の中から、当該画素における赤の輝度に第1の定数を乗算した値と、当該画素における緑の輝度に第2の定数を乗算した値と、当該画素における青の輝度に第3の定数を乗算した値との総和たる輝度の高い順に所定数の画素を抽出し、当該所定数の画素のRGB各成分毎の輝度に基づく判定により錠剤の色異常を検出する。従って、検査対象が白色に近い色の錠剤であっても、さらには表面に異物が付着した錠剤や捺印錠剤などであっても、錠剤の高輝度領域を色識別領域とすることで、色識別精度を低下させることなく適正に色識別検査を行うことができる。結果として、色相H・彩度S・輝度Iを基にした従来の色識別検査に比べ、色識別精度の向上を図ることができる。 According to the above means 1, a color identification inspection is performed when manufacturing a PTP sheet in which a tablet is accommodated in a pocket portion formed in a packaging film and a cover film is attached so as to close the pocket portion. In the color identification test, a value obtained by multiplying the red luminance of the pixel by the first constant from the plurality of pixels corresponding to the tablet in the captured color image data, and the green luminance of the pixel to a value obtained by multiplying the second constant, and extracts a predetermined number of pixels in the third high sum serving luminance value obtained by multiplying the constant forward to the luminance of the blue in the pixel, RGB each of the predetermined number of pixels Abnormal color of the tablet is detected by determination based on the luminance of each component . Therefore, even if the object to be inspected is a tablet with a color close to white, or even a tablet with a foreign object attached to the surface or a stamped tablet, the color identification area is used by making the high-luminance area of the tablet a color identification area. The color identification inspection can be performed properly without degrading the accuracy. As a result, it is possible to improve the color identification accuracy as compared with the conventional color identification inspection based on the hue H, the saturation S, and the luminance I.

手段2.包装用フィルムに形成されたポケット部に錠剤が収容され、ポケット部を塞ぐようにカバーフィルムが取着されるPTPシートの製造に際し用いられる外観検査装置であって、
少なくとも前記錠剤に対して所定の光を照射する照明手段と、
前記照明手段により照射された面を撮像する撮像手段と、
前記撮像手段から出力される画像信号を処理する画像処理装置とを備え、
前記画像信号から得たカラー画像データを基に前記錠剤の色異常を検出する色識別検査を実行可能に構成され、
前記色識別検査に際しては、
前記カラー画像データのうち前記錠剤に相当する部分の複数の画素の中から、当該画素における赤の輝度に第1の定数を乗算した値と、当該画素における緑の輝度に第2の定数を乗算した値と、当該画素における青の輝度に第3の定数を乗算した値との総和たる輝度の高い順に所定数の画素を抽出し、
当該所定数の画素のRGB各成分毎の輝度の平均値を求め、当該RGB各成分の輝度の平均値と、RGB各成分毎に予め設定された輝度基準値との差が、RGB各成分毎にそれぞれ許容範囲内か否かを判定することで、前記錠剤の色異常を検出可能にしたことを特徴とする外観検査装置。
Mean 2. It is an appearance inspection device used in the manufacture of a PTP sheet in which a tablet is accommodated in a pocket portion formed in a packaging film and a cover film is attached so as to close the pocket portion,
Illumination means for irradiating at least the tablet with predetermined light;
Imaging means for imaging the surface illuminated by the illumination means;
An image processing device for processing an image signal output from the imaging means,
It is configured to be able to perform a color identification test for detecting color abnormality of the tablet based on color image data obtained from the image signal,
In the color identification inspection,
Among a plurality of pixels in the color image data corresponding to the tablet, a value obtained by multiplying the red luminance in the pixel by the first constant and a green constant in the pixel are multiplied by the second constant. A predetermined number of pixels in the descending order of luminance, which is the sum of the obtained value and the value obtained by multiplying the blue luminance of the pixel by the third constant ,
The average value of the luminance for each RGB component of the predetermined number of pixels is obtained, and the difference between the average value of the luminance of each RGB component and the luminance reference value preset for each RGB component is determined for each RGB component. In addition, it is possible to detect an abnormal color of the tablet by determining whether or not each is within an allowable range.

上記手段2によれば、上記手段1と同様の作用効果が奏される。さらに、本手段では、撮像されたカラー画像データのうち錠剤に相当する部分の複数の画素の中から、当該画素における赤の輝度に第1の定数を乗算した値と、当該画素における緑の輝度に第2の定数を乗算した値と、当該画素における青の輝度に第3の定数を乗算した値との総和たる輝度の高い順に所定数の画素を抽出し、当該所定数の画素の輝度の平均値を求め、当該輝度の平均値と所定の輝度基準値との差が許容範囲内か否かを判定している。このように輝度の平均値をとることで、より適正な判定を行うことができ、さらなる色識別精度の向上を図ることができる。
さらに、本手段では、抽出された所定数の画素のRGB各成分毎の輝度の平均値を求め、当該RGB各成分の輝度の平均値と、RGB各成分毎に予め設定された輝度基準値との差が、RGB各成分毎にそれぞれ許容範囲内か否かを判定している。このようにすることで、より厳密な判定を行うことができ、さらなる色識別精度の向上を図ることができる。
According to the means 2, the same effects as the means 1 can be obtained. Further, in the present means, the value obtained by multiplying the red luminance in the pixel by the first constant from the plurality of pixels corresponding to the tablet in the captured color image data, and the green luminance in the pixel A predetermined number of pixels are extracted in descending order of luminance, which is the sum of the value obtained by multiplying the second constant by the second constant and the value obtained by multiplying the blue luminance of the pixel by the third constant, and the luminance of the predetermined number of pixels is extracted. An average value is obtained, and it is determined whether or not a difference between the average value of the luminance and a predetermined luminance reference value is within an allowable range. In this way, by taking the average value of luminance, more appropriate determination can be performed, and further improvement in color identification accuracy can be achieved.
Further, in this means, the average value of the luminance of each RGB component of the predetermined number of extracted pixels is obtained, the average value of the luminance of each RGB component, and the luminance reference value preset for each RGB component, It is determined whether or not the difference is within an allowable range for each of the RGB components. By doing in this way, a stricter determination can be performed and the further improvement in color identification accuracy can be aimed at.

手段.前記色識別検査に際しては、
予め設定された錠剤ウインドウを前記カラー画像データにおける前記錠剤の位置に合わせて位置決めする処理を行い、
前記錠剤ウインドウの領域内から前記所定数の画素を抽出するよう構成されていることを特徴とする手段1又は2に記載の外観検査装置。
Means 3 . In the color identification inspection,
A process for positioning a preset tablet window according to the position of the tablet in the color image data is performed,
The appearance inspection apparatus according to claim 1 or 2 , wherein the predetermined number of pixels are extracted from the area of the tablet window.

上記手段によれば、錠剤ウインドウを設定することにより、検査効率及び検査精度の向上を図ることができる。また、上記各手段の構成により、捺印錠剤の捺印部分等を除くために複雑な錠剤ウインドウの設定処理を行う必要もなく、検査前及び検査時のウインドウ設定処理の簡素化を図ることができる。なお、上記錠剤ウインドウは、錠剤内の領域と、錠剤外のシート部(包装用フィルム)の領域とを区別するための境界とされるもの、つまり検査における検査領域を画定するものであり、錠剤の形状に対応して設定される。従って、上記錠剤ウインドウは、少なくとも前記錠剤の外形よりも小さく設定されていることが好ましい。 According to the means 3 , it is possible to improve the inspection efficiency and the inspection accuracy by setting the tablet window. Further, the configuration of each of the above means eliminates the need to perform complicated tablet window setting processing in order to remove the stamped portions of the stamped tablets, and simplifies the window setting processing before and during the inspection. The tablet window serves as a boundary for distinguishing between the area inside the tablet and the area of the sheet part (packaging film) outside the tablet, that is, demarcates the inspection area in the inspection. It is set corresponding to the shape of. Therefore, it is preferable that the tablet window is set to be at least smaller than the outer shape of the tablet.

手段.前記錠剤は、半カプセル同士を組み合わせたカプセル錠であって、
前記錠剤ウインドウは、前記両半カプセルの境界部を含まないように二分割された構成となっており、
前記二分割された錠剤ウインドウの各領域内から前記所定数の画素を抽出し、前記半カプセル毎に前記色識別検査を行うことを特徴とする手段に記載の外観検査装置。
Means 4 . The tablet is a capsule tablet in which half capsules are combined,
The tablet window is configured to be divided into two so as not to include the boundary between the half capsules,
The appearance inspection apparatus according to claim 3 , wherein the predetermined number of pixels are extracted from each region of the tablet window divided into two and the color identification inspection is performed for each half capsule.

上記手段によれば、異なる色の半カプセル同士を組み合わせたカプセル錠に対しても、色識別検査を行うことができる。 According to the above means 4 , the color identification inspection can be performed even on the capsule lock in which the half capsules of different colors are combined.

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

手段5のように、外観検査装置をPTP包装機に備えることで、PTPシートの製造過程において不良品を効率的に除外できる等のメリットが生じる。   By providing the appearance inspection apparatus in the PTP packaging machine as in the means 5, there is a merit that defective products can be efficiently excluded in the manufacturing process of the PTP sheet.

以下、一実施形態について、図面を参照しつつ説明する。   Hereinafter, an embodiment will be described with reference to the drawings.

本実施形態では、外観検査装置をPTP包装機に装備することによって、PTP包装機においてPTPシートの外観不良が検査されるようになっている。図2(a),(b)に示すように、PTPシート1は、複数のポケット部2を備えた包装用フィルムとしての容器フィルム3と、ポケット部2を塞ぐようにして容器フィルム3に取着されたカバーフィルムとしての密封用フィルム4とを有している。容器フィルム3は、例えば、PP(ポリプロピレン)やPVC(ポリ塩化ビニル)等の比較的硬質で所定の剛性を有する熱可塑性樹脂材料によって構成され、光透過性を有している(ここでは、透明を呈している)。密封用フィルム4は、アルミニウムによって構成されている。また、各ポケット部2には被充填物としての錠剤(カプセル錠も含まれる)5が1つずつ収容されている。なお、本実施形態における錠剤5は捺印錠剤であるが、便宜上、捺印部分の図示は省略する。また、錠剤5の表面色は、白色に近い色をしており、少なくとも捺印部分の色よりも明るい色となっている。   In the present embodiment, the appearance inspection device is equipped in the PTP packaging machine, whereby the appearance defect of the PTP sheet is inspected in the PTP packaging machine. As shown in FIGS. 2A and 2B, the PTP sheet 1 is attached to the container film 3 as a packaging film having a plurality of pocket portions 2 and the container film 3 so as to close the pocket portions 2. And a sealing film 4 as a covered cover film. The container film 3 is made of, for example, a relatively hard thermoplastic resin material having a predetermined rigidity, such as PP (polypropylene) or PVC (polyvinyl chloride), and has light transparency (here, transparent). Presents). The sealing film 4 is made of aluminum. Each pocket portion 2 accommodates one tablet 5 (including a capsule tablet) as an object to be filled. In addition, although the tablet 5 in this embodiment is a stamp tablet, illustration of a stamp part is abbreviate | omitted for convenience. Moreover, the surface color of the tablet 5 is a color close to white, and is a lighter color than at least the color of the stamped portion.

図1に示すように、PTP包装機7は、錠剤5を容器フィルム3に自動的に包装するものである。具体的には、PP、PVCなどの帯状の樹脂フィルムをフィルム送りロール9とテンションロール10,11とで、加熱装置12及び成形装置13に送り込み、錠剤5充填用のポケット部2を樹脂フィルムに成形する。そして、樹脂フィルムにポケット部2の成形された容器フィルム3が、充填装置14の下まで送られてくると、充填装置14が各ポケット部2に錠剤5を自動的に充填する。   As shown in FIG. 1, the PTP packaging machine 7 automatically packages the tablets 5 on the container film 3. Specifically, a belt-shaped resin film such as PP or PVC is fed to the heating device 12 and the molding device 13 by the film feed roll 9 and the tension rolls 10 and 11, and the pocket portion 2 for filling the tablet 5 is used as the resin film. Mold. And if the container film 3 in which the pocket part 2 was shape | molded by the resin film is sent to the bottom of the filling apparatus 14, the filling apparatus 14 will automatically fill the tablet 5 in each pocket part 2.

一方、帯状に形成された密封用フィルム4は、テンションロール16,17を介してフィルム受けロール18の方へと案内されている。フィルム受けロール18には、加熱ロール19が圧接可能となっており、該加熱ロール19の外周面には、僅かに凸状に形成された格子状の線(図示略)が設けられている。そして、両ロール18,19間に、容器フィルム3及び密封用フィルム4が送り込まれるようになっている。両フィルム3,4が、両ロール18,19間を加熱圧接状態で通過することで、容器フィルム3に密封用フィルム4が取着される。これによって、錠剤5が各ポケット部2に充填された長尺状のPTPフィルム20が製造される。   On the other hand, the sealing film 4 formed in a belt shape is guided toward the film receiving roll 18 via the tension rolls 16 and 17. A heating roll 19 can be pressed against the film receiving roll 18, and a lattice-like line (not shown) formed in a slightly convex shape is provided on the outer peripheral surface of the heating roll 19. The container film 3 and the sealing film 4 are fed between the rolls 18 and 19. The sealing film 4 is attached to the container film 3 by passing both the films 3 and 4 between the rolls 18 and 19 in a heated and pressed state. Thus, a long PTP film 20 in which the tablet 5 is filled in each pocket portion 2 is manufactured.

さて、前記充填装置14の下流側、かつ、前記フィルム受けロール18及び加熱ロール19の上流側には、容器フィルム3の移送経路に沿って、容器フィルム3(充填された錠剤5)の外観不良を検査するための外観検査装置21が配設されている。当該外観検査装置21は、錠剤5の色を識別し、これを基に異種錠の混入の検出を主目的とする色識別検査を行うものである。   Now, on the downstream side of the filling device 14 and the upstream side of the film receiving roll 18 and the heating roll 19, along the transfer path of the container film 3, the appearance defect of the container film 3 (filled tablet 5) is poor. An appearance inspection apparatus 21 for inspecting the above is disposed. The appearance inspection device 21 identifies the color of the tablet 5 and performs a color identification inspection mainly for the purpose of detecting mixing of different types of tablets based on the color.

上記検査を経て、容器フィルム3に密封用フィルム4が取着された後、PTPフィルム20は、図示しない打抜装置によってPTPシート1単位に裁断される。なお、外観検査装置21によって不良品判定された場合、そのPTPシートは、図示しない不良シート排出機構によって別途排出される。   After the inspection, after the sealing film 4 is attached to the container film 3, the PTP film 20 is cut into one PTP sheet by a punching device (not shown). When the defective product is determined by the appearance inspection device 21, the PTP sheet is discharged separately by a defective sheet discharge mechanism (not shown).

さて、PTP包装機7の概略は以上のとおりであるが、以下においては図1,3に基づき、外観検査装置21についてより具体的に説明する。   Now, the outline of the PTP packaging machine 7 is as described above. In the following, the appearance inspection apparatus 21 will be described more specifically based on FIGS.

外観検査装置21は、照明手段としての照明装置22、撮像手段としてのカメラ23、画像処理装置24、モニタ25、並びにキーボード26等を備えている。   The appearance inspection apparatus 21 includes an illumination device 22 as an illumination unit, a camera 23 as an imaging unit, an image processing device 24, a monitor 25, a keyboard 26, and the like.

図1に示すように、照明装置22は容器フィルム3のポケット部2開口側に設けられている。照明装置22は白色光(可視光)を照射する図示しない光源を有している。また、カメラ23としてはカラーカメラが採用されている。   As shown in FIG. 1, the lighting device 22 is provided on the opening side of the pocket portion 2 of the container film 3. The illumination device 22 has a light source (not shown) that emits white light (visible light). A color camera is used as the camera 23.

次にカメラ23と照明装置22との関係について説明する。本実施形態では、カメラ23は、PTPフィルム20の平面に対して、略垂直方向から撮像可能となっており、照明装置22から照射された光は錠剤5及び密封用フィルム4を照らし、錠剤5及び密封用フィルム4から反射した光がカメラ23によってカラー撮像されるように構成されている。そして、カメラ23によって撮像された画像データ(カラー画像データ)は、当該カメラ23内部においてデジタル信号(RGB信号)に変換された上で、デジタル信号の形で画像処理装置24に入力されるようになっている。   Next, the relationship between the camera 23 and the illumination device 22 will be described. In the present embodiment, the camera 23 can capture an image from a substantially vertical direction with respect to the plane of the PTP film 20, and the light emitted from the illumination device 22 illuminates the tablet 5 and the sealing film 4, and the tablet 5 The light reflected from the sealing film 4 is configured to be color-captured by the camera 23. The image data (color image data) captured by the camera 23 is converted into a digital signal (RGB signal) inside the camera 23 and then input to the image processing device 24 in the form of a digital signal. It has become.

さて、上述した画像処理装置24は、カメラ23に対応した画像メモリ41、マスキング手段42、二値化手段43、判定用メモリ44、外観検査結果及び統計データメモリ45、カメラタイミング制御手段46、並びに、CPU及び入出力インターフェース47などから構成され、後述するような画像データの処理や、外観不良の判定等を実施可能なっている。なお、画像メモリ41は、色情報を記憶可能なRGB画像メモリである。   The image processing device 24 described above includes an image memory 41 corresponding to the camera 23, a masking unit 42, a binarizing unit 43, a determination memory 44, an appearance inspection result and statistical data memory 45, a camera timing control unit 46, and The CPU and the input / output interface 47, etc., can perform image data processing, appearance defect determination, and the like as will be described later. The image memory 41 is an RGB image memory capable of storing color information.

従って、カメラ23で撮像された画像データは、デジタル信号に変換された後、画像メモリ41に記憶される。また、各画像データは、検査時においてマスキング手段42によりマスキング処理が行われた後、再度画像メモリ41に記憶され、同様に二値化手段43により二値化された後、再度画像メモリ41に記憶される。   Therefore, image data captured by the camera 23 is converted into a digital signal and then stored in the image memory 41. Each image data is masked by the masking means 42 at the time of inspection and stored again in the image memory 41. Similarly, the image data is binarized by the binarizing means 43 and then stored again in the image memory 41. Remembered.

CPU及び入出力インターフェース47は、各種処理プログラムを判定用メモリ44の記憶内容などを使用しつつ実行するとともに、PTP包装機7に制御信号を送出し又はPTP包装機7から動作信号などの各種信号を送受信するためのものである。これによって、例えば、PTP包装機7の不良シート排出機構などを制御することができるようになっている。また、CPU及び入出力インターフェース47は、モニタ25に表示データを送出する機能をも有する。かかる機能により、各種画像データや外観検査結果などを、モニタ25に表示させることができるようになっている。さらに、CPU及び入出力インターフェース47は、キーボード26からのデータを入力する機能をも有する。   The CPU and the input / output interface 47 execute various processing programs while using the stored contents of the determination memory 44 and the like, and send control signals to the PTP packaging machine 7 or various signals such as operation signals from the PTP packaging machine 7. Is for sending and receiving. Thereby, for example, the defective sheet discharge mechanism of the PTP packaging machine 7 can be controlled. The CPU and input / output interface 47 also has a function of sending display data to the monitor 25. With this function, various image data, appearance inspection results, and the like can be displayed on the monitor 25. Further, the CPU and input / output interface 47 has a function of inputting data from the keyboard 26.

外観検査結果及び統計データメモリ45(以下、単にデータメモリ45という)は、画像データに関する座標等のデータ、外観検査結果データ、及び、該外観検査結果データを確率統計的に処理した統計データなどを記憶するものである。これらの外観検査結果データや統計データは、CPU及び入出力インターフェース47の制御に基づき、適宜モニタ25に表示させることができる。また、これらの外観検査結果データや統計データに基づいてCPU及び入出力インターフェース47がPTP包装機7に制御信号を送出することもできる。   The appearance inspection result and statistical data memory 45 (hereinafter simply referred to as the data memory 45) includes data such as coordinates relating to image data, appearance inspection result data, statistical data obtained by probabilistically processing the appearance inspection result data, and the like. It is something to remember. These appearance inspection result data and statistical data can be appropriately displayed on the monitor 25 based on the control of the CPU and the input / output interface 47. Further, the CPU and the input / output interface 47 can send a control signal to the PTP packaging machine 7 based on the appearance inspection result data and the statistical data.

カメラタイミング制御手段46は、カメラ23が撮像する画像データを、画像メモリ41に取り込むタイミングを制御するものである。かかるタイミングはPTP包装機7に設けられた図示しないエンコーダからの信号に基づいて制御され、PTPフィルム20を所定量送るごとにカメラ23によるシート単位(例えば打ち抜かれるPTPシート単位)で撮像が行われる。   The camera timing control means 46 controls the timing at which image data captured by the camera 23 is taken into the image memory 41. Such timing is controlled based on a signal from an encoder (not shown) provided in the PTP packaging machine 7, and every time the PTP film 20 is fed by a predetermined amount, imaging is performed in sheet units (for example, punched PTP sheet units) by the camera 23. .

次に、上記PTPフィルム20の外観検査(色識別検査)の手順について説明する。   Next, the procedure of appearance inspection (color identification inspection) of the PTP film 20 will be described.

まず、外観検査に先だって事前に実行される検査前設定処理としての「検査前設定ルーチン」について図4のフローチャートに従って説明する。   First, a “pre-inspection setting routine” as a pre-inspection setting process executed in advance prior to the appearance inspection will be described with reference to the flowchart of FIG.

同ルーチンにおいては、先ずステップS101において、上記照明装置22とは別に容器フィルム3のポケット部2突出側に設けられた図示しない照明装置を点灯させた状態で、カメラ23により良品(不良品でないことが明らかなPTPシート)を撮像し、当該良品の濃淡画像を取得する。   In this routine, first, in step S101, a non-defective product (not defective) is made by the camera 23 with a lighting device (not shown) provided on the protruding side of the pocket portion 2 of the container film 3 turned on separately from the lighting device 22. Is captured, and a gray image of the non-defective product is acquired.

ステップS102において、照明装置22の点灯状態でカメラ23により良品のカラー画像(RGB画像)を取得する。   In step S <b> 102, a good color image (RGB image) is acquired by the camera 23 in the lighting state of the lighting device 22.

ステップS103において、ステップS101で取得した良品濃淡画像から各錠剤5の位置データ〔座標データ(x,y)〕として当該錠剤5の重心位置の座標データ(以下、単に重心位置データという)を算出する。そして、これら各錠剤5の重心位置データを色識別検査における各錠剤5の基準位置データとして設定し、データメモリ45に格納(記憶)する。なお、これらの処理は、良品濃淡画像を錠剤検知レベルとなる所定の閾値を基準に二値化し、これら二値化画像データを画像メモリ41に格納した後に、当該二値化画像データを基に行われる。   In step S103, the coordinate data of the center of gravity of the tablet 5 (hereinafter simply referred to as the center of gravity position data) is calculated as the position data [coordinate data (x, y)] of each tablet 5 from the non-defective gray image acquired in step S101. . The center-of-gravity position data of each tablet 5 is set as reference position data for each tablet 5 in the color identification test, and stored (stored) in the data memory 45. Note that these processes binarize the good / dark image based on a predetermined threshold value that is the tablet detection level, store the binarized image data in the image memory 41, and then based on the binarized image data. Done.

ステップS104において、ステップS103で取得した良品濃淡画像の二値化画像データを基に色識別検査用の錠剤ウインドウPWを設定する。本実施形態における錠剤ウインドウPWは、錠剤5内の領域(錠剤部領域)と、錠剤5外のシート部の領域(シート部領域)とを区別するための境界とされるものであり、図2(c)に示すように、錠剤5の円と同心円をなし、かつ、直径が一回り(例えば約1mm)小さく設定される。そして、色識別検査に際しては、各検査画像データに関し、錠剤ウインドウPWが設定された上で、錠剤5内の領域について錠剤5の色の異常が検出されるようになっている。   In step S104, a tablet window PW for color identification inspection is set based on the binarized image data of the non-defective gray image acquired in step S103. The tablet window PW in the present embodiment is a boundary for distinguishing an area in the tablet 5 (tablet area) and a sheet area outside the tablet 5 (sheet area). As shown in (c), it is concentric with the circle of the tablet 5, and the diameter is set smaller (for example, about 1 mm). In the color identification inspection, the tablet window PW is set with respect to each inspection image data, and an abnormality in the color of the tablet 5 is detected in the region in the tablet 5.

ステップS105において、色識別検査における錠剤5の色基準値(輝度基準値)F0となる色基準値データ(判定基準値データ)を抽出する処理を行う。より詳しくは、ステップS103で取得した各錠剤5の重心位置データに合わせて錠剤ウインドウPWを良品カラー画像に位置決めした後、錠剤ウインドウPW内から色基準値データを抽出し、判定用メモリ44に格納(記憶)する。例えば、本実施形態では、錠剤ウインドウPW内にある複数の画素の中から輝度」(後述する式(1)参照)の高い順に3つの画素を抽出するとともに、当該3画素のRGB各成分毎の輝度の平均値R0,G0,B0を算出し、当該各平均値R0,G0,B0を構成成分とする色基準値F0(R0,G0,B0)を輝度基準値として設定する。なお、良品濃淡画像から得た錠剤5の重心位置データを基に、良品カラー画像において錠剤ウインドウPWを位置決めするようにしているのは、反射光を撮像した画像である良品カラー画像においては、錠剤5の背景部まで明るく映ってしまい、錠剤5の重心位置データを適正に算出することが困難であるためである。 In step S105, a process of extracting color reference value data (determination reference value data) that becomes the color reference value (luminance reference value) F0 of the tablet 5 in the color identification inspection is performed. More specifically, after positioning the tablet window PW to a non-defective color image in accordance with the gravity center position data of each tablet 5 acquired in step S103, color reference value data is extracted from the tablet window PW and stored in the determination memory 44. (Remember. For example, in the present embodiment, three pixels are extracted from the plurality of pixels in the tablet window PW in descending order of luminance ” (see formula (1) described later) , and each RGB component of the three pixels is extracted. Average values R0, G0, B0 are calculated, and color reference values F0 (R0, G0, B0) having the average values R0, G0, B0 as constituent components are set as luminance reference values. The tablet window PW is positioned in the non-defective color image based on the gravity center position data of the tablet 5 obtained from the non-defective gray image. In the non-defective color image, which is an image obtained by imaging reflected light, the tablet This is because it is difficult to calculate the center-of-gravity position data of the tablet 5 properly.

ステップS106で各種設定を行い、モニタ25での表示処理を実行する。ここで、各種設定には、錠剤ウインドウPWの設定位置の確定処理などが含まれる。   Various settings are performed in step S106, and display processing on the monitor 25 is executed. Here, the various settings include a process for determining the setting position of the tablet window PW.

次に、外観検査(色識別検査)について図5のフローチャートに従って説明する。   Next, the appearance inspection (color identification inspection) will be described with reference to the flowchart of FIG.

図5の「色識別検査ルーチン」に示すように、色識別検査に際しては、先ずステップS201において、全ポケット部2に関してそれぞれ錠剤良品フラグを0に設定する。   As shown in the “color identification inspection routine” of FIG. 5, in the color identification inspection, first, in step S201, the non-defective tablet flag is set to 0 for all the pocket portions 2.

ステップS202において検査対象たるPTPフィルム20の検査カラー画像(RGB画像)を取得する。   In step S202, an inspection color image (RGB image) of the PTP film 20 to be inspected is acquired.

ステップS203において、ポケット番号カウンタ値C2(以下、単にポケット番号C2という)に1を設定する。   In step S203, 1 is set to the pocket number counter value C2 (hereinafter simply referred to as pocket number C2).

ステップS204においてポケット番号C2の値が一検査あたり(一シートあたり)のポケット数N以下であるか否かを判定する。   In step S204, it is determined whether or not the value of the pocket number C2 is equal to or less than the number N of pockets per inspection (per sheet).

ここで肯定判定された場合には、ステップS205において検査カラー画像に対し上記錠剤ウインドウPWを重ねる処理を行う。より詳しくは、ポケット番号C2に対応するポケット部2における錠剤5の重心位置を上記基準位置データを基に特定し、当該錠剤5の重心位置に錠剤ウインドウPWの中心位置を合わせるようにして検査カラー画像に対し錠剤ウインドウPWを位置決めする。加えて、錠剤ウインドウPWによって区別された各領域のうち、検査対象外となる部分(シート部領域)にマスキングを施す処理が行われる。   If an affirmative determination is made here, a process of superimposing the tablet window PW on the inspection color image is performed in step S205. More specifically, the position of the center of gravity of the tablet 5 in the pocket portion 2 corresponding to the pocket number C2 is specified based on the reference position data, and the center position of the tablet window PW is aligned with the position of the center of gravity of the tablet 5 to check the color. The tablet window PW is positioned with respect to the image. In addition, a process of masking a portion (sheet portion region) that is not to be inspected among the regions distinguished by the tablet window PW is performed.

ステップS206において、錠剤5の色検出値F1となる色検出値データを抽出する処理を行う。より詳しくは、検査カラー画像の錠剤ウインドウPW内にある複数の画素の中から輝度の高い順に3つの画素を抽出するとともに、当該3画素のRGB各成分毎の輝度の平均値R1,G1,B1を構成成分とする色検出値F1(R1,G1,B1)を算出する。なお、上記「輝度」は、例えば下式(1)により算出される。 In step S206, a process of extracting color detection value data to be the color detection value F1 of the tablet 5 is performed. More specifically, three pixels are extracted in descending order of luminance from a plurality of pixels in the tablet window PW of the inspection color image, and average values R1, G1 of luminance for each RGB component of the three pixels are extracted. , B1 as a constituent component is calculated as a color detection value F1 (R1, G1, B1). Note that the “luminance” is calculated by the following equation (1), for example.

輝度=(K1×R)+(K2×G)+(K3×B) …(1)
上式(1)において、Rはその画素における赤の輝度、Gはその画素における緑の輝度、Bはその画素における青の輝度である。K1,K2,K3は定数で、例えばK1=0.298912,K2=0.586611,K3=0.114478とすれば、視覚感度に略一致した輝度を得ることができる。また、K1=K2=K3=1としてもよいし、例えばK1=1,K2=K3=0として、赤のみの輝度を利用するなど、特定の色のみの輝度を基にしてもよい。また、R、G、Bの中で、最も輝度の高いものの輝度を、選択的にその画素の輝度としてもよい。
Luminance = (K1 × R) + (K2 × G) + (K3 × B) (1)
In the above equation (1), R is the red luminance at the pixel, G is the green luminance at the pixel, and B is the blue luminance at the pixel. K1, K2, and K3 are constants. For example, if K1 = 0.298912, K2 = 0.866611, and K3 = 0.14478, a luminance that substantially matches the visual sensitivity can be obtained. Alternatively, K1 = K2 = K3 = 1 may be used, or the luminance of only a specific color may be used, for example, K1 = 1, K2 = K3 = 0, and the luminance of only red may be used. In addition, the luminance of the highest luminance among R, G, and B may be selectively set as the luminance of the pixel.

ステップS207において、色検出値F1のRGB各成分(R1,G1,B1)から、色基準値F0のRGB各成分(R0,G0,B0)をそれぞれ減算した絶対値が、予め設定された色許容値F2のRGB各成分(R2,G2,B2)よりも小さいか否かをRGB各成分毎に判定する。そして、RGB全成分について色許容値F2(R2,G2,B2)より小さいと判定された場合には、ステップS208において、錠剤5が良品であるものとして、ポケット番号C2に対応した錠剤良品フラグに1を設定し、ステップS209へ移行する。一方、ステップS207において否定判定された場合には、そのままステップS209へ移行する。そして、ステップS209においてポケット番号C2の値に1を加え、再びステップS204へ移行する。   In step S207, the absolute values obtained by subtracting the RGB components (R0, G0, B0) of the color reference value F0 from the RGB components (R1, G1, B1) of the color detection value F1 are set to the preset color tolerances. It is determined for each RGB component whether or not it is smaller than the RGB components (R2, G2, B2) of the value F2. When it is determined that all the RGB components are smaller than the color allowable value F2 (R2, G2, B2), the tablet non-defective flag corresponding to the pocket number C2 is set as a non-defective tablet 5 in step S208. 1 is set, and the process proceeds to step S209. On the other hand, if a negative determination is made in step S207, the process directly proceeds to step S209. In step S209, 1 is added to the value of the pocket number C2, and the process proceeds to step S204 again.

さて、上記ステップS204において否定判定された場合、すなわちポケット番号C2の値が一検査あたり(一シートあたり)のポケット数Nを超えたと判定された場合には、ステップS210において一検査あたり(一シートあたり)の全ポケット部2に関して錠剤良品フラグに1が設定されているか否かを判定する。ここで、肯定判定された場合にはステップS211において良品判定を行い、本処理を一旦終了する。一方、否定判定された場合には、ステップS212において不良品判定を行い、本処理を一旦終了する。これらの検査結果は、モニタ25やPTP包装機7(不良シート排出機構を含む)に出力される。   When a negative determination is made in step S204, that is, when it is determined that the value of the pocket number C2 exceeds the number of pockets N per inspection (per sheet), per inspection (per sheet) It is determined whether or not 1 is set in the tablet non-defective product flag for all pocket portions 2. If an affirmative determination is made here, a non-defective product determination is performed in step S211, and the process is temporarily terminated. On the other hand, if a negative determination is made, defective product determination is performed in step S212, and this process is temporarily terminated. These inspection results are output to the monitor 25 and the PTP packaging machine 7 (including the defective sheet discharge mechanism).

以上詳述したように、本実施形態の色識別検査においては、検査カラー画像のうち錠剤5に相当する部分の複数の画素の中から輝度の高い順に3つの画素を抽出し、当該3画素のRGB各成分毎の輝度の平均値である色検出値F1(R1,G1,B1)を求め、当該色検出値F1(R1,G1,B1)と、RGB各成分毎に予め設定された輝度基準値である色基準値F0(R0,G0,B0)との差が、RGB各成分毎にそれぞれ許容範囲である色許容値F2(R2,G2,B2)内か否かを判定することで、錠剤5の色異常を検出する。従って、本実施形態のように検査対象が白色に近い色の錠剤5であっても、さらには表面に異物が付着した錠剤や捺印錠剤などであっても、錠剤5の高輝度領域を色識別領域とすることで、色識別精度を低下させることなく適正に色識別検査を行うことができる。結果として、色相H・彩度S・輝度Iを基にした従来の色識別検査に比べ、色識別精度の向上を図ることができる。 As described above in detail, in the color identification inspection according to the present embodiment, three pixels are extracted in order of increasing luminance from a plurality of pixels corresponding to the tablet 5 in the inspection color image. A color detection value F1 (R1, G1, B1) which is an average value of luminance for each RGB component of the pixel is obtained, and the color detection value F1 (R1, G1, B1) and each RGB component are preset. It is determined whether or not the difference from the color reference value F0 (R0, G0, B0), which is a luminance reference value, is within the allowable color range F2 (R2, G2, B2) for each RGB component. Thus, the color abnormality of the tablet 5 is detected. Therefore, even if the subject to be inspected is a tablet 5 with a color close to white as in the present embodiment, or even a tablet or a stamped tablet with foreign matter attached to the surface, the high-luminance area of the tablet 5 is color-identified. By setting the area, it is possible to appropriately perform the color identification inspection without reducing the color identification accuracy. As a result, it is possible to improve the color identification accuracy as compared with the conventional color identification inspection based on the hue H, the saturation S, and the luminance I.

以上説明した実施形態において、例えば、次のように構成の一部を適宜変更して実施することも可能である。勿論、以下において例示しない他の変更例も当然可能である。   In the embodiment described above, for example, a part of the configuration can be appropriately changed as follows. Of course, other modifications not exemplified below are also possible.

(a)上記実施形態では、検査対象となる錠剤の態様例としてタブレット錠が挙げられているが、錠剤の種類はこれに限られるものではなく、例えばカプセル錠等であってもよい。但し、カプセル錠は半カプセル同士を組み合わせた構成となっているため、錠剤ウインドウは両半カプセルの境界部を含まないように二分割された構成となり、カプセル錠を検査する際には、前記二分割された錠剤ウインドウの各領域内から所定数の画素を抽出し、半カプセル毎に色識別検査を行う。このようにすることで、異なる色の半カプセル同士を組み合わせたカプセル錠に対しても、色識別検査を行うことができる。   (A) In the said embodiment, although the tablet tablet is mentioned as an aspect example of the tablet used as test | inspection object, the kind of tablet is not restricted to this, For example, a capsule tablet etc. may be sufficient. However, since the capsule tablet has a configuration in which half capsules are combined, the tablet window is divided into two so as not to include the boundary portion of both half capsules. A predetermined number of pixels are extracted from each area of the divided tablet window, and color identification inspection is performed for each half capsule. By doing in this way, a color identification test | inspection can be performed also with respect to the capsule tablet which combined the half capsules of different colors.

)上記実施形態では、検査カラー画像のうち錠剤5に相当する部分の複数の画素の中から輝度の高い順に3つの画素を抽出するように構成されているが、抽出する画素数はこれに限られるものではない。 ( B ) In the above embodiment, three pixels are extracted in order of increasing luminance from the plurality of pixels corresponding to the tablet 5 in the inspection color image. It is not limited to.

)上記錠剤ウインドウの形状や大きさ等は適宜設定できるものであって、必ずしも上記実施形態に限定されるものではない。 ( C ) The shape and size of the tablet window can be set as appropriate, and are not necessarily limited to the above embodiment.

一実施形態におけるPTP包装機等の概略構成を示す模式図である。It is a schematic diagram which shows schematic structure, such as a PTP packaging machine in one Embodiment. (a)はPTPシートを示す斜視図であり、(b)はPTPシートを示す部分拡大断面図であり、(c)は錠剤ウインドウの概念を説明するための平面模式図である。(A) is a perspective view which shows a PTP sheet, (b) is a partial expanded sectional view which shows a PTP sheet, (c) is a plane schematic diagram for demonstrating the concept of a tablet window. 外観検査装置の電気的構成を示すブロック図である。It is a block diagram which shows the electrical structure of an external appearance inspection apparatus. 「検査前設定ルーチン」を示すフローチャートである。7 is a flowchart showing a “pre-inspection setting routine”. 「色識別検査ルーチン」を示すフローチャートである。10 is a flowchart illustrating a “color identification inspection routine”.

1…PTPシート、2…ポケット部、3…包装用フィルムとしての容器フィルム、4…カバーフィルムとしての密封用フィルム、5…錠剤、7…PTP包装機、21…外観検査装置、22…照明手段としての照明装置、23…撮像手段としてのカメラ、24…画像処理装置、PW…錠剤ウインドウ。
DESCRIPTION OF SYMBOLS 1 ... PTP sheet, 2 ... Pocket part, 3 ... Container film as packaging film, 4 ... Sealing film as cover film, 5 ... Tablet, 7 ... PTP packaging machine, 21 ... Visual inspection apparatus, 22 ... Illuminating means Illuminating device, 23 ... Camera as imaging means, 24 ... Image processing device, PW ... Tablet window.

Claims (5)

包装用フィルムに形成されたポケット部に錠剤が収容され、ポケット部を塞ぐようにカバーフィルムが取着されるPTPシートの製造に際し用いられる外観検査装置であって、
少なくとも前記錠剤に対して所定の光を照射する照明手段と、
前記照明手段により照射された面を撮像する撮像手段と、
前記撮像手段から出力される画像信号を処理する画像処理装置とを備え、
前記画像信号から得たカラー画像データを基に前記錠剤の色異常を検出する色識別検査を実行可能に構成され、
前記色識別検査に際しては、
前記カラー画像データのうち前記錠剤に相当する部分の複数の画素の中から、当該画素における赤の輝度に第1の定数を乗算した値と、当該画素における緑の輝度に第2の定数を乗算した値と、当該画素における青の輝度に第3の定数を乗算した値との総和たる輝度の高い順に所定数の画素を抽出し、
当該所定数の画素のRGB各成分毎の輝度に基づく判定により前記錠剤の色異常を検出可能にしたことを特徴とする外観検査装置。
It is an appearance inspection device used in the manufacture of a PTP sheet in which a tablet is accommodated in a pocket portion formed in a packaging film and a cover film is attached so as to close the pocket portion,
Illumination means for irradiating at least the tablet with predetermined light;
Imaging means for imaging the surface illuminated by the illumination means;
An image processing device for processing an image signal output from the imaging means,
It is configured to be able to perform a color identification test for detecting color abnormality of the tablet based on color image data obtained from the image signal,
In the color identification inspection,
Among a plurality of pixels corresponding to the tablet in the color image data, a value obtained by multiplying the red luminance in the pixel by the first constant and a green constant in the pixel are multiplied by the second constant. A predetermined number of pixels in the descending order of luminance, which is the sum of the obtained value and the value obtained by multiplying the blue luminance of the pixel by the third constant ,
An appearance inspection apparatus characterized in that color abnormality of the tablet can be detected by determination based on luminance of each RGB component of the predetermined number of pixels.
包装用フィルムに形成されたポケット部に錠剤が収容され、ポケット部を塞ぐようにカバーフィルムが取着されるPTPシートの製造に際し用いられる外観検査装置であって、
少なくとも前記錠剤に対して所定の光を照射する照明手段と、
前記照明手段により照射された面を撮像する撮像手段と、
前記撮像手段から出力される画像信号を処理する画像処理装置とを備え、
前記画像信号から得たカラー画像データを基に前記錠剤の色異常を検出する色識別検査を実行可能に構成され、
前記色識別検査に際しては、
前記カラー画像データのうち前記錠剤に相当する部分の複数の画素の中から、当該画素における赤の輝度に第1の定数を乗算した値と、当該画素における緑の輝度に第2の定数を乗算した値と、当該画素における青の輝度に第3の定数を乗算した値との総和たる輝度の高い順に所定数の画素を抽出し、
当該所定数の画素のRGB各成分毎の輝度の平均値を求め、当該RGB各成分の輝度の平均値と、RGB各成分毎に予め設定された輝度基準値との差が、RGB各成分毎にそれぞれ許容範囲内か否かを判定することで、前記錠剤の色異常を検出可能にしたことを特徴とする外観検査装置。
It is an appearance inspection device used in the manufacture of a PTP sheet in which a tablet is accommodated in a pocket portion formed in a packaging film and a cover film is attached so as to close the pocket portion,
Illumination means for irradiating at least the tablet with predetermined light;
Imaging means for imaging the surface illuminated by the illumination means;
An image processing device for processing an image signal output from the imaging means,
It is configured to be able to perform a color identification test for detecting color abnormality of the tablet based on color image data obtained from the image signal,
In the color identification inspection,
Among a plurality of pixels in the color image data corresponding to the tablet, a value obtained by multiplying the red luminance in the pixel by the first constant and a green constant in the pixel are multiplied by the second constant. A predetermined number of pixels in the descending order of luminance, which is the sum of the obtained value and the value obtained by multiplying the blue luminance of the pixel by the third constant ,
The average value of the luminance for each RGB component of the predetermined number of pixels is obtained, and the difference between the average value of the luminance of each RGB component and the luminance reference value preset for each RGB component is determined for each RGB component. In addition, it is possible to detect an abnormal color of the tablet by determining whether or not each is within an allowable range.
前記色識別検査に際しては、
予め設定された錠剤ウインドウを前記カラー画像データにおける前記錠剤の位置に合わせて位置決めする処理を行い、
前記錠剤ウインドウの領域内から前記所定数の画素を抽出するよう構成されていることを特徴とする請求項1又は2に記載の外観検査装置。
In the color identification inspection,
A process for positioning a preset tablet window according to the position of the tablet in the color image data is performed,
Appearance inspection apparatus according to claim 1 or 2, characterized in that it is configured to extract the predetermined number of pixels from the area of the tablet window.
前記錠剤は、半カプセル同士を組み合わせたカプセル錠であって、
前記錠剤ウインドウは、前記両半カプセルの境界部を含まないように二分割された構成となっており、
前記二分割された錠剤ウインドウの各領域内から前記所定数の画素を抽出し、前記半カプセル毎に前記色識別検査を行うことを特徴とする請求項に記載の外観検査装置。
The tablet is a capsule tablet in which half capsules are combined,
The tablet window is configured to be divided into two so as not to include the boundary between the half capsules,
The appearance inspection apparatus according to claim 3 , wherein the predetermined number of pixels are extracted from each region of the divided tablet window, and the color identification inspection is performed for each half capsule.
請求項1乃至のいずれかに記載の外観検査装置を備えたことを特徴とするPTP包装機。 PTP packaging machine, characterized by having a visual inspection apparatus according to any one of claims 1 to 4.
JP2005008491A 2005-01-17 2005-01-17 Appearance inspection device and PTP packaging machine Active JP4332122B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005008491A JP4332122B2 (en) 2005-01-17 2005-01-17 Appearance inspection device and PTP packaging machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005008491A JP4332122B2 (en) 2005-01-17 2005-01-17 Appearance inspection device and PTP packaging machine

Publications (2)

Publication Number Publication Date
JP2006194801A JP2006194801A (en) 2006-07-27
JP4332122B2 true JP4332122B2 (en) 2009-09-16

Family

ID=36800991

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005008491A Active JP4332122B2 (en) 2005-01-17 2005-01-17 Appearance inspection device and PTP packaging machine

Country Status (1)

Country Link
JP (1) JP4332122B2 (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008146432A (en) * 2006-12-12 2008-06-26 Sumitomo Chemical Co Ltd Method of detecting mark
JP5063235B2 (en) * 2007-07-23 2012-10-31 Ckd株式会社 Tablet inspection device and PTP packaging machine
JP5582610B2 (en) * 2010-11-03 2014-09-03 学校法人早稲田大学 Image identification apparatus and program
US9994347B2 (en) * 2013-02-20 2018-06-12 Yuyama Mfg. Co., Ltd. Medicine inspection device and medicine packaging system
CN103888683B (en) * 2014-03-24 2015-05-27 深圳市中兴移动通信有限公司 Mobile terminal and shooting method thereof
JP6273339B1 (en) * 2016-12-08 2018-01-31 Ckd株式会社 Inspection device and PTP packaging machine
JP6625786B2 (en) * 2017-02-28 2019-12-25 株式会社オプティム Anomaly detection system, anomaly detection method and program
CN116685419A (en) * 2021-07-01 2023-09-01 普锐特冶金技术日本有限公司 Abnormality detection device and abnormality detection method

Also Published As

Publication number Publication date
JP2006194801A (en) 2006-07-27

Similar Documents

Publication Publication Date Title
JP4332122B2 (en) Appearance inspection device and PTP packaging machine
US11017523B2 (en) Inspection device and PTP packaging machine
JP4368808B2 (en) Appearance inspection device and PTP packaging machine
JP4523474B2 (en) Defect inspection device and PTP packaging machine
JP4647643B2 (en) Defect inspection device and PTP packaging machine
JP4173184B2 (en) PTP package appearance inspection equipment
JP2003215047A (en) Visual inspection apparatus and ptp packaging machine equipped with the same
JP5352615B2 (en) Tablet inspection device and PTP packaging machine
JP3344995B2 (en) Tablet surface inspection device
JP4472499B2 (en) Defect inspection device and PTP packaging machine
JP4213108B2 (en) Lighting device for visual inspection
JP2005291939A (en) Apparatus and method for inspecting ptp sheet
JP5063235B2 (en) Tablet inspection device and PTP packaging machine
JP4477516B2 (en) Inspection device and PTP packaging machine
WO2021161619A1 (en) Inspection device, packaging sheet manufacturing device, and inspection method
JP4213106B2 (en) Appearance inspection device and PTP packaging machine
JP2006138683A (en) Visual inspection device and ptp packaging machine
JP4788870B2 (en) Defect inspection device and PTP packaging machine
JP5313999B2 (en) Tablet inspection device and PTP packaging machine
JP4201143B2 (en) Appearance inspection device and PTP packaging machine equipped with appearance inspection device
JP2006219178A (en) Inspecting apparatus and ptp packaging machine
JP4251325B2 (en) Appearance inspection device and PTP packaging machine
JP2004077495A (en) Visual inspection device
JP2020153803A (en) Inspection device, ptp packaging machine, and method for producing ptp sheet
JP4455348B2 (en) 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: 20081104

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090324

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090427

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

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20090619

R150 Certificate of patent or registration of utility model

Ref document number: 4332122

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20120626

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20120626

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20130626

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20130626

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20140626

Year of fee payment: 5