JPH1172440A - Method and apparatus for visual inspection of stamped tablet - Google Patents

Method and apparatus for visual inspection of stamped tablet

Info

Publication number
JPH1172440A
JPH1172440A JP23350097A JP23350097A JPH1172440A JP H1172440 A JPH1172440 A JP H1172440A JP 23350097 A JP23350097 A JP 23350097A JP 23350097 A JP23350097 A JP 23350097A JP H1172440 A JPH1172440 A JP H1172440A
Authority
JP
Japan
Prior art keywords
tablet
appearance
stamped
inspecting
value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP23350097A
Other languages
Japanese (ja)
Other versions
JP3557081B2 (en
Inventor
Nariaki Suzuki
成昭 鈴木
Akio Aoyama
昭夫 青山
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 JP23350097A priority Critical patent/JP3557081B2/en
Publication of JPH1172440A publication Critical patent/JPH1172440A/en
Application granted granted Critical
Publication of JP3557081B2 publication Critical patent/JP3557081B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide a method and an apparatus for visual inspection of stamped tablets whereby stamped tablets filled in a pocket part of a blister sheet being transferred can be inspected in a blister sheet package machine in an inspection process wherein stamps on surfaces of tablets are not distinguished from a foreign article, etc. SOLUTION: One-dimensional image data of the whole surface of a stamped tablet is binarized for every pixel of a CCD camera (S3). It is detected whether or not a total count PS of pixels of one value (dark part) is between a minimum reference count PMIN and a maximum reference count PMAX (S9). It is also checked whether a length of a short side BS of a circumscribed rectangle to all pixels of the one value (dark part) is not smaller than a short side reference value LMIN, and at the same time a length of a long side BL of the circumscribed rectangle is not larger than a long side reference value LMAX (S11). The stamped tablet is visually inspected in this manner.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、捺印錠剤の外観を
検査する捺印錠剤の外観検査方法に関し、特に、ブリス
タシート包装機内で実施するものに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method for inspecting the appearance of a stamped tablet for examining the appearance of a stamped tablet, and more particularly to a method implemented in a blister sheet packaging machine.

【0002】[0002]

【従来の技術】従来、捺印錠剤の外観を検査する捺印錠
剤の外観検査方法では、錠剤の表面の捺印を異物として
判断しないように、錠剤の表面の捺印部分をその他の部
分と区別して、捺印錠剤の外観を検査していた。例え
ば、特開平6−258226号公報に記載された錠剤の
外観検査方法では、錠剤の表面を2次元撮像装置で撮像
することによって得られた映像信号に対して、錠剤の表
面に印刷された記号を含んだ記号検査ウィンドウを設定
するとともに、その記号検査ウィンドウ内を複数の単位
ドットに等分し、それらの単位ドットを明部分と暗部分
とに2値化した2値化データを、以下に述べるように処
理することによって、錠剤に印刷された記号を異物とし
て判断しないようにしていた。
2. Description of the Related Art Conventionally, in a method for inspecting the appearance of a stamped tablet, which inspects the appearance of the stamped tablet, the stamped portion of the tablet surface is distinguished from other portions so that the stamped surface of the tablet is not judged as a foreign substance. The appearance of the tablets was inspected. For example, in the tablet appearance inspection method described in JP-A-6-258226, a symbol printed on the tablet surface is used for a video signal obtained by imaging the tablet surface with a two-dimensional imaging device. Is set, and the symbol inspection window is equally divided into a plurality of unit dots, and the binarized data obtained by binarizing the unit dots into a light portion and a dark portion is shown below. By processing as described, the symbol printed on the tablet is not determined as a foreign substance.

【0003】すなわち、記号検査ウィンドウ内の単位ド
ットの中から検査対象となる単位ドットを検査ドットと
して複数設定する一方で、各検査ドットについて、良品
の場合に明部分となるか暗部分となるかを表す2値化良
品データを予め設定しておき、記号検査ウィンドウ内の
各検査ドットの2値化データをその検査ドットに対応す
る2値化良品データと比較し、一致しない検査ドットの
数が所定の許容値より多いときに、記号検査ウィンドウ
内の外観に不良があると判定していた。従って、錠剤に
印刷された記号は異物として判断されず、さらに、錠剤
の表面に印刷された記号を含んだ記号検査ウィンドウ内
で、錠剤の異物なども検出することができた。
[0003] That is, while a plurality of unit dots to be inspected are set as inspection dots from among the unit dots in the symbol inspection window, whether each inspection dot is a bright portion or a dark portion in the case of a non-defective product is determined. Is set in advance, and the binarized data of each inspection dot in the symbol inspection window is compared with the binarized non-defective data corresponding to the inspection dot. When the value was larger than the predetermined allowable value, it was determined that there was a defect in the appearance in the symbol inspection window. Therefore, the symbol printed on the tablet was not determined as a foreign substance, and the foreign substance of the tablet could be detected in the symbol inspection window including the symbol printed on the surface of the tablet.

【0004】また、記号検査ウィンドウ内の各検査ドッ
トの2値化データをその検査ドットに対応する2値化良
品データと比較する場合においては、検査ドットの2値
化データがその検査ドットに対応する2値化良品データ
と一致しなくても、かかる検査ドットに隣接する上下左
右4つの単位ドットの2値化データのいずれかかに一致
すれば、検査ドットの2値化データがその検査ドットに
対応する2値化良品データと一致するものとみなしてお
り、錠剤の表面に印刷された記号が多少太くなったたり
細くなったりしても、錠剤の外観に不良があると判定さ
れることはないので、錠剤の表面に印刷された記号の形
状不良を適切に検査することができた。
When comparing the binarized data of each inspection dot in the symbol inspection window with the binarized non-defective data corresponding to the inspection dot, the binarized data of the inspection dot corresponds to the inspection dot. Even if it does not match the binarized non-defective data, if it matches any of the binarized data of the four upper, lower, left, and right unit dots adjacent to the test dot, the binarized data of the test dot will Is considered to match the binarized non-defective data corresponding to, and even if the symbol printed on the surface of the tablet becomes slightly thicker or thinner, it is determined that the tablet appearance is defective. Because there was no, it was possible to properly inspect the shape defect of the symbol printed on the tablet surface.

【0005】また、錠剤の標準姿勢だけでなく、その標
準姿勢から所定角度回転させた複数の傾斜姿勢について
も、各検査ドットの2値化良品データを設定しており、
記号検査ウィンドウ内の各検査ドットの2値化データを
その検査ドットに対応する2値化良品データと比較する
場合において、いずれか一つの姿勢における2値化良品
データに対し一致しない検査ドットの数が所定の許容値
より少なければ、記号検査ウィンドウ内の外観に不良が
ないと判定するので、錠剤が標準姿勢から多少傾いて
も、記号検査ウィンドウ内の外観不良の検査をすること
ができた。
In addition to the standard posture of the tablet, binarized non-defective data of each inspection dot is set for a plurality of inclined postures rotated by a predetermined angle from the standard posture.
When comparing the binarized data of each inspection dot in the symbol inspection window with the binarized non-defective data corresponding to the inspection dot, the number of inspection dots that do not match the binarized non-defective data in any one posture Is smaller than a predetermined allowable value, it is determined that there is no defect in the appearance in the symbol inspection window. Therefore, even if the tablet is slightly inclined from the standard posture, the appearance defect in the symbol inspection window can be inspected.

【0006】[0006]

【発明が解決しようとする課題】しかしながら、特開平
6−258226号公報に記載された錠剤の外観検査方
法は、錠剤の表面を2次元撮像装置で撮像することによ
って得られた2次元イメージデータを基にして、記号検
査ウィンドウの設定、検査ドットの特定、検査ドットに
隣接する上下左右4つの単位ドットの特定、検査ドット
に対応する2値化良品データの特定と比較、標準姿勢お
よび複数の傾斜姿勢の2値化良品データの特定と比較な
どの処理を行っており、所謂「パターン・マッチング」
という手法を用いて外観検査を行っているので、検査処
理の効率はもともと良くない。
However, the tablet appearance inspection method described in Japanese Patent Application Laid-Open No. 6-258226 discloses a two-dimensional image data obtained by imaging the surface of a tablet with a two-dimensional imaging device. Based on the above, set the symbol inspection window, specify the inspection dot, specify four unit dots above, below, left and right adjacent to the inspection dot, identify and compare binarized non-defective data corresponding to the inspection dot, standard posture and multiple inclinations Performs processing such as identifying and comparing binarized non-defective data on posture, and is called “pattern matching”.
The appearance inspection is performed by using the method described above, so that the efficiency of the inspection processing is not originally good.

【0007】このような錠剤の外観検査方法を用いて、
搬送中のブリスタシートのポケット部に充填された錠剤
の外観をブリスタシート包装機内で検査しようとする
と、ブリスタシート包装機は約6000錠/分以上の包
装速度でブリスタシートのポケット部に錠剤を充填させ
ることができるので、ブリスタシート包装機の包装処理
に対して検査処理が大幅に遅れてしまい、ブリスタシー
ト包装機の包装能力を有効に活かすことができなくな
る。
Using such a tablet appearance inspection method,
When trying to inspect the appearance of the tablets filled in the pockets of the blister sheet during transportation in the blister sheet packaging machine, the blister sheet packaging machine fills the tablets in the pockets of the blister sheet at a packaging speed of about 6,000 tablets / minute or more. As a result, the inspection process is greatly delayed from the packaging process of the blister sheet packaging machine, and the packaging ability of the blister sheet packaging machine cannot be effectively utilized.

【0008】さらに、ブリスタシートのポケット部に充
填された錠剤の表面の記号は任意の方向を向いているこ
とから、あらゆる傾斜姿勢に対する2値化良品データを
準備して各検査ドットと比較することができなければ、
外観検査の実効性を得ることができない。すなわち、表
面に記号が印刷された錠剤に対し、所謂「パターン・マ
ッチング」という手法を用いて行う外観検査は、ブリス
タシート包装機内で実施することは不可能であった。
Further, since the symbol on the surface of the tablet filled in the pocket portion of the blister sheet is oriented in an arbitrary direction, it is necessary to prepare binarized non-defective data for any inclined posture and compare it with each inspection dot. If you can't
The effectiveness of visual inspection cannot be obtained. That is, it was impossible to perform an appearance inspection on a tablet having a symbol printed on its surface using a so-called “pattern matching” technique in a blister sheet packaging machine.

【0009】上述した問題点に対しては、錠剤の表面に
印刷された記号や異物などを一つにまとめて算出した面
積を、錠剤の表面に印刷された記号が多少太くなったた
り細くなったりしても良品とみなす面積範囲と比較する
とともに、錠剤の表面に印刷された記号や異物などを一
つにまとめて計測した外接形状を、錠剤の表面に印刷さ
れた記号が任意の方向を向いていても良品とみなす形状
範囲と比較し、錠剤の表面に印刷された記号を異物など
と区別することなく錠剤の外観検査を行えば、錠剤の表
面の記号の方向に影響されることがなく、検査処理の効
率をも非常に良くすることができる。従って、表面に記
号が印刷された錠剤の外観検査をブリスタシート包装機
内で実施することが可能となる。
In order to solve the above-mentioned problem, the area calculated by combining symbols and foreign substances printed on the surface of the tablet into a single unit is reduced by making the symbols printed on the surface of the tablet slightly thicker or thinner. In addition to comparing with the area range considered as non-defective, the circumscribed shape that collectively measures symbols and foreign substances printed on the tablet surface, and the symbol printed on the tablet surface in any direction If you perform a visual inspection of the tablet without distinguishing the symbols printed on the tablet surface from foreign substances, etc., compared to the shape range considered to be good even if it is oriented, it may be affected by the direction of the symbols on the tablet surface In addition, the efficiency of the inspection process can be made very good. Therefore, the appearance inspection of the tablet having the symbol printed on the surface can be performed in the blister sheet packaging machine.

【0010】そこで、本発明は、上述した問題点を解決
するためになされたものであり、錠剤の表面の捺印を異
物などと区別することなく検査処理を行うことによっ
て、搬送中のブリスタシートのポケット部に充填された
捺印錠剤の外観をブリスタシート包装機内で検査するこ
とができる捺印錠剤の外観検査方法と捺印錠剤の外観検
査装置を提供することを目的とする。
Accordingly, the present invention has been made to solve the above-mentioned problems, and an inspection process is performed without distinguishing a stamp on the surface of a tablet from a foreign substance or the like, so that a blister sheet being conveyed is conveyed. It is an object of the present invention to provide a method for inspecting the appearance of a stamped tablet and an apparatus for inspecting the appearance of a stamped tablet that can inspect the appearance of a stamped tablet filled in a pocket portion in a blister sheet packaging machine.

【0011】[0011]

【課題を解決するための手段】この目的を達成するため
に成された請求項1に係る捺印錠剤の外観検査方法は、
捺印錠剤の表面全体のイメージデータを画素ごとに2値
化し、一方の値の全ての画素に対する外接形状が第1基
準範囲内にあるか否かを判断することにより、前記捺印
錠剤の外観を検査することを特徴とする。
According to a first aspect of the present invention, there is provided a method for inspecting the appearance of a stamped tablet, wherein the method comprises the steps of:
The appearance of the stamp tablet is inspected by binarizing the image data of the entire surface of the stamp tablet for each pixel and determining whether or not the circumscribed shapes of all pixels of one value are within the first reference range. It is characterized by doing.

【0012】また、請求項2に係る捺印錠剤の外観検査
方法は、捺印錠剤の表面全体のイメージデータを画素ご
とに2値化し、一方の値の画素で構成されるものであっ
て一定値以上の大きさをもつ全ての連結領域に対する外
接形状が第1基準範囲内にあるか否かを判断することに
より、前記捺印錠剤の外観を検査することを特徴とす
る。
According to a second aspect of the present invention, there is provided a method for inspecting the appearance of an imprinted tablet, wherein the image data of the entire surface of the imprinted tablet is binarized for each pixel and is constituted by pixels of one value, and is not less than a certain value. The appearance of the stamp tablet is inspected by determining whether or not the circumscribed shapes for all the connection regions having the size of are within the first reference range.

【0013】また、請求項3に係る捺印錠剤の外観検査
方法は、請求項1又は請求項2に記載する捺印錠剤の外
観検査方法であって、一方の値の全ての画素に対する総
数が第2基準範囲内にあるか否かをも判断することによ
り、前記捺印錠剤の外観を検査することを特徴とする。
According to a third aspect of the present invention, there is provided a method for inspecting the appearance of a stamped tablet according to the first or second aspect, wherein the total number of one of the values for all pixels is the second. It is characterized in that the appearance of the stamp is inspected by judging whether or not it is within the reference range.

【0014】また、請求項4に係る捺印錠剤の外観検査
方法は、請求項1又は請求項2に記載する捺印錠剤の外
観検査方法であって、一方の値の画素で構成されるもの
であって一定値以上の大きさをもつ全ての連結領域の画
素の総数が第2基準範囲内にあるか否かをも判断するこ
とにより、前記捺印錠剤の外観を検査することを特徴と
する。
According to a fourth aspect of the present invention, there is provided a method for inspecting the appearance of a stamped tablet according to the first or second aspect, wherein the method comprises a pixel of one value. The appearance of the stamp is inspected by also determining whether or not the total number of pixels of all connected regions having a size equal to or greater than a certain value is within the second reference range.

【0015】また、請求項5に係る捺印錠剤の外観検査
方法は、請求項1乃至請求項4のいずれか一つに記載す
る捺印錠剤の外観検査方法であって、前記第1基準範囲
は確率統計的に算出されたものであることを特徴とす
る。また、請求項6に係る捺印錠剤の外観検査方法は、
請求項3又は請求項4に記載する捺印錠剤の外観検査方
法であって、前記第2基準範囲は確率統計的に算出され
たものであることを特徴とする。
According to a fifth aspect of the present invention, there is provided a method for inspecting the appearance of a stamped tablet according to any one of the first to fourth aspects, wherein the first reference range is a probability range. It is characterized by being statistically calculated. Further, the method for inspecting the appearance of a stamped tablet according to claim 6 comprises:
5. The method for inspecting the appearance of a stamped tablet according to claim 3, wherein the second reference range is calculated stochastically. 6.

【0016】また、請求項7に係る捺印錠剤の外観検査
方法は、請求項1乃至請求項6のいずれか一つに記載す
る捺印錠剤の外観検査方法であって、前記外接形状は長
方形であることを特徴とする。
According to a seventh aspect of the present invention, there is provided a method for inspecting the appearance of a stamped tablet according to any one of the first to sixth aspects, wherein the circumscribed shape is rectangular. It is characterized by the following.

【0017】また、請求項8に係る捺印錠剤の外観検査
方法は、請求項7に記載する捺印錠剤の外観検査方法で
あって、前記第1基準範囲の対象が前記長方形の長辺と
短辺であることを特徴とする。また、請求項9に係る捺
印錠剤の外観検査方法は、請求項7に記載する捺印錠剤
の外観検査方法であって、前記第1基準範囲の対象が前
記長方形の対角線であることを特徴とする。また、請求
項10に係る捺印錠剤の外観検査方法は、請求項7に記
載する捺印錠剤の外観検査方法であって、前記第1基準
範囲の対象が前記長方形の面積であることを特徴とす
る。
According to an eighth aspect of the present invention, there is provided the method for inspecting the appearance of a stamped tablet according to the seventh aspect, wherein the object of the first reference range is a long side and a short side of the rectangle. It is characterized by being. According to a ninth aspect of the present invention, there is provided the method for inspecting the appearance of a stamped tablet according to the seventh aspect, wherein the object of the first reference range is the diagonal line of the rectangle. . According to a tenth aspect of the present invention, there is provided the method for inspecting the appearance of a stamped tablet according to the seventh aspect, wherein the object of the first reference range is the area of the rectangle. .

【0018】また、請求項11に係る捺印錠剤の外観検
査方法は、請求項1乃至請求項10のいずれか一つに記
載する捺印錠剤の外観検査方法であって、搬送中のブリ
スタシートのポケット部に充填された捺印錠剤の外観を
ブリスタシート包装機内で検査することを特徴とする。
また、請求項12に係る捺印錠剤の外観検査装置は、請
求項1乃至請求項11のいずれか一つに記載する捺印錠
剤の外観検査方法を実施することを特徴とする。
According to a eleventh aspect of the present invention, there is provided a method for inspecting the appearance of a stamped tablet according to any one of the first to tenth aspects. It is characterized in that the appearance of the stamp tablet filled in the section is inspected in a blister sheet packaging machine.
According to a twelfth aspect of the present invention, there is provided a stamped tablet appearance inspection apparatus that implements the stamped tablet appearance inspection method according to any one of the first to eleventh aspects.

【0019】このような構成を有する本発明の捺印錠剤
の外観検査方法と捺印錠剤の外観検査装置では、捺印錠
剤の表面全体のイメージデータを画素ごとに2値化する
ことによって、捺印錠剤の表面全体を2値化された画素
で把握する。ここでは、錠剤の表面の捺印は、異物など
と等しく一方の値の画素で把握されおり、かかる一方の
値の全ての画素に対する外接形状(例えば、長方形)が
計測されるとともに、かかる一方の値の画素の総数が算
出される。
In the method and apparatus for inspecting the appearance of a stamped tablet according to the present invention having the above-described configuration, the image data of the entire surface of the stamped tablet is binarized for each pixel to obtain the surface of the stamped tablet. The whole is grasped by binarized pixels. Here, the stamp on the surface of the tablet is grasped by a pixel of one value equal to a foreign substance, and the circumscribed shape (for example, a rectangle) of all the pixels of the one value is measured and the one value is measured. Are calculated.

【0020】その一方、外観不良のない捺印錠剤の表面
全体を、同様にして、2値化された画素で予め把握して
おき、このときの一方の値の全ての画素に対する外接形
状を計測して、捺印錠剤の外観検査の基準とする。ただ
し、捺印が任意の方向を向いていても外観検査が行える
ように、かかる基準に幅を持たせた第1基準範囲とす
る。さらに、このときの一方の値の画素の総数を算出し
て、捺印錠剤の外観検査の基準とする。ただし、捺印の
僅かな滲みや掠れは許容されるべきだから、かかる基準
に幅を持たせた第2基準範囲とする。
On the other hand, the entire surface of the stamp tablet having no appearance defect is similarly grasped in advance by binarized pixels, and the circumscribed shapes of all the pixels of one value at this time are measured. And use it as the basis for the appearance inspection of stamped tablets. However, the first reference range has a certain width so that the appearance inspection can be performed even when the seal is oriented in an arbitrary direction. Further, the total number of pixels of one value at this time is calculated and used as a reference for the appearance inspection of the stamp. However, since slight bleeding or rubbing of the seal should be allowed, the second reference range is set to have a certain width.

【0021】尚、同一タイプの捺印錠剤の外観検査結果
がある程度蓄積された後は、既に行われた外観検査結果
(一方の値の全ての画素に対する外接形状の母集団や、
一方の値の画素の総数の母集団)を確率統計的に処理す
ることによって、第1基準範囲や第2基準範囲を定めて
も良い。
After the appearance inspection results of the same type of stamped tablet have been accumulated to some extent, the already performed appearance inspection results (the population of the circumscribed shape for all pixels of one value,
The first reference range or the second reference range may be determined by statistically processing the population of the total number of pixels of one value).

【0022】そして、一方の値の全ての画素に対する外
接形状が第1基準範囲内にあると判断されるとともに、
一方の値の画素の総数が第2基準範囲内にあると判断さ
れれば、錠剤の表面の捺印状態が許容範囲であり、か
つ、錠剤の表面に異物などがないとして、検査対象の捺
印錠剤に外観不良がないと判定する。また、一方の値の
全ての画素に対する外接形状が第1基準範囲内にないと
判断されるか、一方の値の画素の総数が第2基準範囲内
にないと判断されれば、錠剤の表面の捺印状態が許容範
囲でないか、錠剤の表面に異物などがあるか、または、
その両方であるとして、検査対象の捺印錠剤に外観不良
があると判定する。尚、一方の値の画素で構成されるも
のであって一定値未満の大きさをもつ全ての連結領域に
ついて、上述した外接形状や総数の対象から外していれ
ば、ノイズなどの誤差要因を取り除くことができる。
Then, it is determined that the circumscribed shapes of all the pixels of one value are within the first reference range,
If it is determined that the total number of pixels of one value is within the second reference range, it is determined that the stamping state on the tablet surface is within the allowable range, and that there is no foreign matter on the tablet surface, and the stamping tablet to be inspected is Is determined to have no appearance defect. If it is determined that the circumscribed shape for all pixels of one value is not within the first reference range, or if the total number of pixels of one value is not within the second reference range, the surface of the tablet Is not in the acceptable range, there are foreign substances on the tablet surface, or
Based on both, it is determined that the stamp tablet to be inspected has defective appearance. In addition, if all the connected regions that are constituted by pixels of one value and have a size smaller than a certain value are excluded from the circumscribed shape and the total number, the error factors such as noise are removed. be able to.

【0023】よって、従来技術で用いた所謂「パターン
・マッチング」の手法とは異なって、検査対象の錠剤の
表面の捺印方向が外観検査に影響を及ぼすことはなく、
さらに、検査処理の効率も非常に良い。
Therefore, unlike the so-called “pattern matching” method used in the prior art, the marking direction on the surface of the tablet to be inspected does not affect the appearance inspection.
Further, the efficiency of the inspection process is very good.

【0024】すなわち、本発明の捺印錠剤の外観検査方
法と捺印錠剤の外観検査装置は、錠剤の表面の捺印を異
物などと区別せずに検査処理を行っているので、錠剤の
表面の捺印の方向に影響されることもなく、検査処理の
効率を非常に良くすることができる。従って、本発明の
捺印錠剤の外観検査方法をもって、搬送中のブリスタシ
ートのポケット部に充填された捺印錠剤の外観をブリス
タシート包装機内で検査することができる。
That is, since the method for inspecting the appearance of a stamped tablet and the apparatus for inspecting the appearance of a stamped tablet according to the present invention perform the inspection process without distinguishing the stamping on the tablet surface from foreign substances, etc. The efficiency of the inspection process can be greatly improved without being affected by the direction. Therefore, according to the method for inspecting the appearance of a stamped tablet of the present invention, the appearance of the stamped tablet filled in the pocket of the blister sheet being conveyed can be inspected in the blister sheet packaging machine.

【0025】また、錠剤の表面の捺印を異物などと等し
く一方の値の画素で把握して検査処理を行うので、外観
検査の対象が捺印錠剤に制限されることはない。従っ
て、正常に撮像できるものならば、どのような錠剤でも
外観検査の対象にすることができる。
In addition, since the inspection process is performed by grasping the stamp on the surface of the tablet with a pixel of one value equal to that of a foreign substance or the like, the object of the appearance inspection is not limited to the stamp tablet. Therefore, any tablet that can be normally imaged can be subjected to the appearance inspection.

【0026】また、一定値未満の大きさをもつ連結領域
を外観検査の対象から外すことによって、捺印錠剤の外
観検査からノイズなどの誤差要因を取り除けば、信頼性
のある捺印錠剤の外観検査を行うことができる。
In addition, by removing a connection area having a size smaller than a certain value from the object of the visual inspection to remove error factors such as noise from the visual inspection of the imprint tablet, a reliable visual inspection of the imprint tablet can be performed. It can be carried out.

【0027】また、既に行われた外観検査結果を確率統
計的に処理することによって、捺印錠剤の外観検査の基
準となる第1基準範囲や第2基準範囲を決定すれば、信
頼性のある捺印錠剤の外観検査を行うことができる。
If the first reference range and the second reference range, which are the basis of the visual inspection of the stamped tablet, are determined by processing the results of the already performed visual inspection stochastically, reliable stamping can be performed. A visual inspection of the tablet can be performed.

【0028】[0028]

【発明の実施の形態】以下、本発明の実施の形態を図面
を参照にして説明する。本実施の形態では、図2に示す
ように、捺印錠剤の外観検査装置である外観検査装置1
0をブリスタシート包装機30に装備することよって、
ブリスタシート包装機30内で捺印錠剤の外観検査方法
を実施している。
Embodiments of the present invention will be described below with reference to the drawings. In the present embodiment, as shown in FIG. 2, a visual inspection device 1 which is a visual inspection device for a stamped tablet.
By equipping the blister sheet packaging machine 30 with
The method for inspecting the appearance of the stamped tablet is performed in the blister sheet packaging machine 30.

【0029】まず、捺印錠剤の外観検査方法が実施され
るブリスタシート包装機30について、簡単に説明す
る。ブリスタシート包装機30は、錠剤などをブリスタ
シートに自動的に包装するものである。具体的には、ま
ず、PP、PVCなどの容器フィルム40を、フィルム
送りロール33とテンションロール31、32で、加熱
板50と成形板51に送り込み、錠剤などが充填される
ポケット部44(図3参照)を容器フィルム40に成形
する。そして、容器フィルム40にポケット部44(図
3参照)が成形されたもの41が、錠剤投入シャッター
52の下にまで送られてくると、錠剤投入シャッター5
2が各ポケット部44(図3参照)に錠剤などを自動的
に充填する 。ここでは、図5に示された捺印錠剤1が
各ポケット部44(図3参照)に充填される。
First, a brief description will be given of the blister sheet packaging machine 30 in which the method for inspecting the appearance of a stamped tablet is carried out. The blister sheet packaging machine 30 automatically packages tablets and the like into blister sheets. Specifically, first, a container film 40 such as PP or PVC is fed into a heating plate 50 and a forming plate 51 by a film feed roll 33 and tension rolls 31 and 32, and a pocket portion 44 (see FIG. 3) is formed into a container film 40. Then, when the container 41 formed with the pocket portion 44 (see FIG. 3) in the container film 40 is sent below the tablet input shutter 52, the tablet input shutter 5
2 automatically fills each pocket 44 (see FIG. 3) with a tablet or the like. Here, the stamp tablet 1 shown in FIG. 5 is filled in each pocket 44 (see FIG. 3).

【0030】さらに、各ポケット部44(図3参照)に
捺印錠剤1が充填された容器フィルム41の上に、アル
ミ製の蓋フィルム42をテンションロール34、35を
介して送り込み、一対のシールロール36で固着させ
る。これによって、捺印錠剤1(図5参照)が各ポケッ
ト部44(図3参照)に充填された、フィルム状のブリ
スタシート43が製造される。かかるフィルム状のブリ
スタシート43はシート状に裁断された後に、図示しな
い不良シート排出機構やブリスタシート集積機構などへ
順に送られる。
Further, an aluminum cover film 42 is fed via tension rolls 34 and 35 onto a container film 41 in which each pocket portion 44 (see FIG. 3) is filled with the stamp tablet 1, and a pair of seal rolls is provided. Fix at 36. As a result, a film-like blister sheet 43 in which the stamp tablet 1 (see FIG. 5) is filled in each pocket 44 (see FIG. 3) is manufactured. After the film-shaped blister sheet 43 is cut into a sheet shape, it is sequentially sent to a defective sheet discharging mechanism, a blister sheet stacking mechanism, and the like (not shown).

【0031】次に、捺印錠剤の外観検査方法を実施する
外観検査装置10について、図4のブロック図を用いて
説明する。外観検査装置10は、A/D変換器13、コ
ンパレータ14、画像メモリ16、シェーディング補正
テーブル18、CPU20、判定用メモリ22、入出力
インターフェース23、外観検査結果及び統計データメ
モリ24、カメラタイミング制御手段26などから構成
される。
Next, the appearance inspection apparatus 10 for implementing the appearance inspection method for a stamped tablet will be described with reference to the block diagram of FIG. The visual inspection device 10 includes an A / D converter 13, a comparator 14, an image memory 16, a shading correction table 18, a CPU 20, a determination memory 22, an input / output interface 23, a visual inspection result and statistical data memory 24, a camera timing control unit. 26 and the like.

【0032】A/D変換器13は、CCDカメラ11で
撮像した1次元イメージデータを、アナログ信号からデ
ジタル信号に変換するものである。ここで、CCDカメ
ラ11について説明すると、図3に示すように、照明1
2の光13でブリスタシート43を照らし、ブリスタシ
ート43をその幅方向に1次元撮像するものである。し
たがって、ブリスタシート43の幅方向に1列に成形さ
れた複数のポケット部44及び、各ポケット部44に充
填された捺印錠剤1を同時に撮像することができる。こ
のとき、固定ロール37に密着した状態のブリスタシー
ト43を撮像しているので、フィルム状のブリスタシー
ト43が揺れて撮像に悪影響が及ぶことはない。尚、C
CDカメラ11と照明12は、図2と図3では、ブリス
タシート包装機30内に描かれているが、外観検査装置
10を構成するものの一つである。
The A / D converter 13 converts one-dimensional image data captured by the CCD camera 11 from an analog signal to a digital signal. Here, the CCD camera 11 will be described. As shown in FIG.
The blister sheet 43 is illuminated with the second light 13 and the blister sheet 43 is one-dimensionally imaged in the width direction. Therefore, a plurality of pockets 44 formed in one row in the width direction of the blister sheet 43 and the tablet 1 filled in each pocket 44 can be simultaneously imaged. At this time, since the image of the blister sheet 43 in close contact with the fixed roll 37 is imaged, the film-shaped blister sheet 43 does not swing and adversely affect the imaging. Note that C
The CD camera 11 and the lighting 12 are depicted in the blister sheet packaging machine 30 in FIGS. 2 and 3, but are one of the components of the visual inspection device 10.

【0033】図4に戻り、コンパレータ14は、デジタ
ル信号に置き換えられた1次元イメージデータを、特定
のしきい値で2値化するものである。尚、1次元イメー
ジデータはCCDカメラ11で撮像されたものであるか
ら、CCDカメラ11の画素ごとに2値化する。また、
コンパレータ14で使用するしきい値は、検査条件にあ
わせて変更させることができる。画像メモリ16は、コ
ンパレータ14で2値化された1次元イメージデータを
記憶するものである。シェーディング補正テーブル18
は、1次元イメージデータをコンパレータ14で2値化
する際に使用するしきい値tが記憶されるものである。
尚、ブリスタシート43全体を照明12の光13で一様
に照らすことは技術的に限界があることより、かかるし
きい値tにはシェーディング補正されている。
Returning to FIG. 4, the comparator 14 binarizes the one-dimensional image data, which has been replaced by a digital signal, with a specific threshold value. Since the one-dimensional image data is captured by the CCD camera 11, it is binarized for each pixel of the CCD camera 11. Also,
The threshold used by the comparator 14 can be changed according to the inspection conditions. The image memory 16 stores the one-dimensional image data binarized by the comparator 14. Shading correction table 18
Stores a threshold value t used when the one-dimensional image data is binarized by the comparator 14.
Note that there is a technical limit in uniformly illuminating the entire blister sheet 43 with the light 13 of the illumination 12, and thus the threshold value t is corrected for shading.

【0034】CPU20は、後述する図1のフローチャ
ートを実行するものであり、判定用メモリ22などを使
用して実行する。入出力インターフェース23は、ブリ
スタシート包装機30に制御信号を送信又は受信するた
めのものである。これによって、例えば、ブリスタシー
ト包装機30の不良シート排出機構などを制御すること
ができる。また、モニタ25に表示データを送信するた
めのものでもあり、1次元イメージデータや外観検査結
果などをモニタ25に表示させることができる。尚、モ
ニタ25は、図4では、外観検査装置10外に描かれて
いるが、外観検査装置10を構成するものの一つであ
る。
The CPU 20 executes a flowchart shown in FIG. 1 to be described later, and executes it by using the determination memory 22 and the like. The input / output interface 23 is for transmitting or receiving a control signal to or from the blister sheet packaging machine 30. Thereby, for example, a defective sheet discharging mechanism of the blister sheet packaging machine 30 can be controlled. It is also for transmitting display data to the monitor 25, and can display one-dimensional image data, a visual inspection result, and the like on the monitor 25. Although the monitor 25 is illustrated outside the appearance inspection device 10 in FIG. 4, it is one of the components constituting the appearance inspection device 10.

【0035】外観検査結果及び統計データメモリ24
は、外観検査結果データや外観検査結果データを確率統
計的に処理した統計データ(図8参照)を記憶するもの
である。これらの外観検査結果データや統計データは、
モニタ25に表示させることができる。また、これらの
外観検査結果データや統計データに基づいて、ブリスタ
シート包装機30に制御信号を送信することもできる。
Visual inspection result and statistical data memory 24
Stores the appearance inspection result data and statistical data (see FIG. 8) obtained by probabilistically processing the appearance inspection result data. These visual inspection result data and statistical data are
It can be displayed on the monitor 25. Further, a control signal can be transmitted to the blister sheet packaging machine 30 based on the appearance inspection result data and the statistical data.

【0036】カメラタイミング制御手段26は、CCD
カメラ11が撮像する1次元イメージデータを、A/D
変換器13に取り込むタイミングを制御するものであ
る。かかるタイミングは、ブリスタシート包装機30に
設けられたエンコーダ(図示せず)からの信号に基づい
て行われる。
The camera timing control means 26 includes a CCD
The one-dimensional image data captured by the camera 11 is converted into A / D
It controls the timing to be taken into the converter 13. Such timing is performed based on a signal from an encoder (not shown) provided in the blister sheet packaging machine 30.

【0037】次に、捺印錠剤の外観検査方法の手順を、
図1のフローチャート図に基づいて説明する。先ず、ス
テップ(以下、「S」と略記する)1において、CCD
カメラ11で撮像した1次元イメージデータを取り込
み、S2において、かかる1次元イメージデータをA/
D変換器13でアナログ信号からデジタル信号に変換す
る。そして、S3において、デジタル信号に変換された
1次元イメージデータを、シェーディング補正テーブル
18に記憶されたしきい値tをもって、コンパレータ1
4で2値化する。
Next, the procedure of the method for inspecting the appearance of a stamped tablet will be described.
Description will be made based on the flowchart of FIG. First, in step (hereinafter, abbreviated as “S”) 1, a CCD
The one-dimensional image data captured by the camera 11 is fetched, and in S2, the one-dimensional image data is
The D converter 13 converts the analog signal into a digital signal. Then, in S3, the one-dimensional image data converted into the digital signal is compared with the threshold value t stored in the shading correction table 18 by the comparator 1.
4 is binarized.

【0038】例えば、図5に示すように、S1でCCD
カメラ11で撮像した1次元イメージデータが捺印錠剤
1にかかった想像線Aに該当するときは、想像線Aに該
当する1次元イメージデータの輝度階調は図6に示すよ
うになる。このとき、捺印錠剤1の表面2の捺印部分
3、4、5、6と、捺印錠剤1の表面2に付着した異物
7のうち、想像線Aに該当する1次元イメージデータは
捺印部分3の一部をとらえているので、かかる1次元イ
メージデータの輝度階調を表す図6においては、捺印部
分3の一部に相当する部分A3の輝度は暗くなり、その
他の部分(捺印錠剤1の表面2に相当する部分)は明る
く表示される。そして、S3でしきい値tをもって2値
化することにより、捺印部分3の一部に相当する部分A
3は暗部を示す一方の値に2値化され、その他の部分
(捺印錠剤1の表面2に相当する部分)は明部を示す他
方の値に2値化される。尚、かかる2値化は、CCDカ
メラ11の画素単位で行われる。
For example, as shown in FIG.
When the one-dimensional image data captured by the camera 11 corresponds to the imaginary line A applied to the seal tablet 1, the luminance gradation of the one-dimensional image data corresponding to the imaginary line A is as shown in FIG. At this time, the one-dimensional image data corresponding to the imaginary line A among the marking portions 3, 4, 5, and 6 on the surface 2 of the marking tablet 1 and the foreign matter 7 attached to the surface 2 of the marking tablet 1 In FIG. 6 showing the brightness gradation of the one-dimensional image data, a part A3 corresponding to a part of the stamped part 3 has a lower brightness, and the other part (the surface of the stamped tablet 1) has been captured. 2) is displayed brightly. Then, by performing binarization with the threshold value t in S3, a portion A corresponding to a part of the stamped portion 3 is obtained.
3 is binarized to one value indicating a dark part, and the other part (a part corresponding to the surface 2 of the stamp tablet 1) is binarized to the other value indicating a light part. The binarization is performed for each pixel of the CCD camera 11.

【0039】このように2値化された1次元イメージデ
ータを、S4では、画像メモリ16に集積し、捺印錠剤
1の表面2の全体を2値化された画素で把握する。次
に、S5において、一方の値(暗部分)の画素で構成さ
れた連結領域について、一定値であるノイズ基準数P未
満の画素数で構成されているものの画素の値を、一方の
値(暗部分)から他方の値(明部分)にする。これによ
り、捺印錠剤1の表面2の全体を把握する画像メモリ1
6の2値化画像の中から、種々の原因によって発生した
微小なノイズを除去する。
In step S4, the binarized one-dimensional image data is accumulated in the image memory 16, and the entire surface 2 of the stamp 1 is grasped by binarized pixels. Next, in S5, for the connected region formed by the pixels of one value (dark portion), the value of the pixel having the number of pixels smaller than the noise reference number P, which is a constant value, is changed to the value of one value ( From the dark part) to the other value (light part). Thereby, the image memory 1 for grasping the entire surface 2 of the stamp tablet 1
From the binarized image of No. 6, minute noise generated by various causes is removed.

【0040】そして、S6において、かかる画像メモリ
16の2値化画像の中から、最も大きい連結領域の画素
数Mを求め、次のS7で、画素数Mはノイズ基準数Pと
比較される。画素数Mがノイズ基準数P未満である場合
は(S7:Yes)、S12に進んで、S1でCCDカ
メラ11が撮像した捺印錠剤1は良品と判定する。これ
は、捺印されていない錠剤(例えば片面が捺印されてい
ない錠剤)が混在している場合に、捺印されていない錠
剤(または、捺印されていない錠剤の片面)で外観不良
のないものがCCDカメラ11に撮像された際に、良品
と判定させるためである。一方、画素数Mがノイズ基準
数P未満でない場合は(S7:No)、S8に進む。
Then, in S6, the largest number M of pixels of the connected area is obtained from the binary image in the image memory 16, and in next S7, the number M of pixels is compared with the noise reference number P. If the number of pixels M is less than the noise reference number P (S7: Yes), the process proceeds to S12, and the imprinting tablet 1 imaged by the CCD camera 11 in S1 is determined to be good. This is because when tablets that are not stamped (for example, tablets that are not stamped on one side) are mixed, tablets that are not stamped (or tablets that are not stamped) that do not have a bad appearance have a CCD. This is because when the image is taken by the camera 11, it is determined to be a non-defective product. On the other hand, if the number M of pixels is not less than the noise reference number P (S7: No), the process proceeds to S8.

【0041】次に、S8では、画像メモリ16に集積さ
れた一方の値(暗部分)の画素についてカウントするこ
とにより、捺印錠剤1の表面2の捺印部分3、4、5、
6と、捺印錠剤1の表面2に付着した異物7などに該当
する画素の総数PSを算出する。
Next, in S8, by counting the pixels of one value (dark part) accumulated in the image memory 16, the marking portions 3, 4, 5, and 5 on the surface 2 of the marking tablet 1 are counted.
6 and the total number PS of pixels corresponding to the foreign matter 7 attached to the surface 2 of the stamp tablet 1 and the like.

【0042】そして、S9において、最小基準数PMI
Nから最大基準数PMAXの間に総数PSがあるか否か
を判断する。尚、最小基準数PMINから最大基準数P
MAXの間は第2基準範囲に相当する。最小基準数PM
INから最大基準数PMAXの間に総数PSがない場合
は(S9:No)、S13に進んで、S1でCCDカメ
ラ11が撮像した捺印錠剤1は不良品と判定する。一
方、最小基準数PMINから最大基準数PMAXの間に
総数PSがある場合は(S9:Yes)、S10に進
む。
Then, in S9, the minimum reference number PMI
It is determined whether there is a total number PS between N and the maximum reference number PMAX. Note that the minimum reference number PMIN is changed to the maximum reference number P
Between MAX corresponds to a second reference range. Minimum reference number PM
If there is no total number PS between IN and the maximum reference number PMAX (S9: No), the process proceeds to S13, and the stamp tablet 1 captured by the CCD camera 11 in S1 is determined to be defective. On the other hand, when the total number PS is between the minimum reference number PMIN and the maximum reference number PMAX (S9: Yes), the process proceeds to S10.

【0043】次に、S10では、画像メモリ16に集積
された一方の値(暗部分)の全ての画素に対する長方形
の外接形状(以下、「外接長方形」という)Bを計測
し、かかる外接長方形Bの長辺BLと短辺BSの長さを
求める。例えば、画像メモリ16の2値化画像が図7に
示すものである場合には、捺印錠剤1の表面2の捺印部
分3、4、5、6と、捺印錠剤1の表面2に付着した異
物7とに該当する一方の値(暗部分)の全ての画素に対
して、外接する外接長方形Bを計測し、かかる外接長方
形Bの長辺BLと短辺BSの長さを画素数をもって求め
る。
Next, in S10, a rectangle circumscribed shape (hereinafter, referred to as "circumscribed rectangle") B for all pixels of one value (dark portion) accumulated in the image memory 16 is measured, and the circumscribed rectangle B is measured. Of the long side BL and the short side BS are determined. For example, when the binarized image in the image memory 16 is as shown in FIG. 7, the marking portions 3, 4, 5, and 6 on the surface 2 of the marking tablet 1 and the foreign matter adhered to the surface 2 of the marking tablet 1 The circumscribing rectangle B is measured for all pixels having one value (dark portion) corresponding to 7 and the lengths of the long side BL and the short side BS of the circumscribing rectangle B are determined by the number of pixels.

【0044】そして、S11において、短辺BSの長さ
が短辺基準値LMIN以上であり、かつ、長辺BLの長
さが長辺基準値LMAX以下であるか否かを判断する。
すなわち、S10で計測された外接長方形Bが第1基準
範囲内であるか否かを判断する。このように、第1基準
範囲内を、短辺基準値LMIN以上かつ長辺基準値LM
AX以下をもって定義するのは、捺印錠剤の外観検査方
法が捺印錠剤1の表面の捺印の方向に影響されないよう
にするためである。従って、短辺基準値LMINと長辺
基準値LMAXは、捺印錠剤1のあらゆる傾斜姿勢を考
慮して決められる。
In S11, it is determined whether or not the length of the short side BS is equal to or longer than the short side reference value LMIN and the length of the long side BL is equal to or shorter than the long side reference value LMAX.
That is, it is determined whether or not the circumscribed rectangle B measured in S10 is within the first reference range. As described above, the first reference range is set to be equal to or longer than the short side reference value LMIN and the long side reference value LM.
AX is defined below so that the appearance inspection method of the imprinted tablet is not affected by the direction of imprinting on the surface of the imprinted tablet 1. Therefore, the short-side reference value LMIN and the long-side reference value LMAX are determined in consideration of all the inclination postures of the stamp 1.

【0045】短辺BSの長さが短辺基準値LMIN以上
であり、かつ、長辺BLの長さが長辺基準値LMAX以
下である場合は(S11:Yes)、S12に進んで、
S1でCCDカメラ11が撮像した捺印錠剤1は良品と
判定する。一方、短辺BSの長さが短辺基準値LMIN
以上でない、又は、長辺BLの長さが長辺基準値LMA
X以下でない場合は(S11:No)、S13に進ん
で、S1でCCDカメラ11が撮像した捺印錠剤1は不
良品と判定する。
If the length of the short side BS is equal to or longer than the short side reference value LMIN and the length of the long side BL is equal to or shorter than the long side reference value LMAX (S11: Yes), the process proceeds to S12.
The stamp tablet 1 imaged by the CCD camera 11 in S1 is determined to be non-defective. On the other hand, the length of the short side BS is equal to the short side reference value LMIN.
Or the length of the long side BL is longer than the long side reference value LMA.
If it is not less than or equal to X (S11: No), the process proceeds to S13, and the stamp tablet 1 imaged by the CCD camera 11 in S1 is determined to be defective.

【0046】このようにして、捺印錠剤の外観検査方法
の手順が進められるのであるが、CCDカメラ11は、
ブリスタシート43の幅方向に1列に並んだ複数の捺印
錠剤1を同時に撮像するので、上述したS1〜S13
は、ブリスタシート43の幅方向に1列に並んだ各捺印
錠剤1について同時進行的に行われる。さらに、上述し
たように、従来技術で用いた所謂「パターン・マッチン
グ」のような相関関係を調べるのでなく、画像メモリ1
6に集積された一方の値(暗部分)の画素の総数PSを
比較したり、一方の値(暗部分)の全ての画素に対する
外接長方形Bを比較するという単純な処理を用いている
ので、検査処理が大変に速くなり、6000錠/分以上
あるブリスタシート包装機30の包装速度に十分に対応
することができる。
In this way, the procedure of the method for inspecting the appearance of the stamped tablet is advanced.
Since a plurality of stamps 1 arranged in a line in the width direction of the blister sheet 43 are simultaneously imaged, the above-described S1 to S13
Is performed simultaneously with respect to each of the stamps 1 arranged in a line in the width direction of the blister sheet 43. Further, as described above, instead of examining the correlation such as the so-called “pattern matching” used in the prior art, the image memory 1
Since the simple processing of comparing the total number PS of the pixels of one value (dark part) accumulated in 6 or comparing the circumscribed rectangle B for all the pixels of one value (dark part) is used, The inspection process becomes very fast, and can sufficiently cope with the packaging speed of the blister sheet packaging machine 30 of 6000 tablets / min or more.

【0047】また、上述したノイズ基準数P、最小基準
数PMIN、最大基準数PMAX、短辺基準値LMI
N、長辺基準値LMAXは、画素数をもって判定用メモ
リ22に予め記憶されている。例えば、ノイズ基準数P
に「10」が、最小基準数PMINに「430」が、最
大基準数PMAXに「530」が、短辺基準値LMIN
に「15」が、長辺基準値LMAXに「40」が記憶さ
れる。特に、最小基準数PMIN、最大基準数PMA
X、短辺基準値LMIN、長辺基準値LMAXについて
は、外観不良のない捺印錠剤1の表面全体を、CCDカ
メラ11で撮像して、2値化された画素で予め把握して
おき、このときの一方の値(暗部分)の画素の総数など
を基準にして決定する。
The above-described noise reference number P, minimum reference number PMIN, maximum reference number PMAX, and short-side reference value LMI
N and the long side reference value LMAX are stored in the determination memory 22 in advance with the number of pixels. For example, the noise reference number P
"10", "430" as the minimum reference number PMIN, "530" as the maximum reference number PMAX, and the short-side reference value LMIN.
"15" and "40" as the long side reference value LMAX. In particular, minimum reference number PMIN, maximum reference number PMA
Regarding X, the short side reference value LMIN, and the long side reference value LMAX, the entire surface of the stamp tablet 1 having no defective appearance is imaged by the CCD camera 11 and grasped in advance by binarized pixels. The determination is made based on the total number of pixels of one value (dark part) at that time.

【0048】以上詳細に説明したように、本実施の形態
の捺印錠剤の外観検査方法と捺印錠剤の外観検査装置1
0では、捺印錠剤1の表面2の全体の1次元イメージデ
ータを、CCDカメラ11の画素ごとに2値化すること
によって(S3)、捺印錠剤1の表面2の全体を2値化
された画素で把握する(S4)。ここでは、例えば、図
5の捺印錠剤1においては、捺印錠剤1の表面2の捺印
部分3、4、5、6は、異物7などと等しく等しく一方
の値(暗部分)の画素で把握され、かかる一方の値(暗
部分)の画素の総数PSが算出されるとともに(S
8)、かかる一方の値(暗部分)の全ての画素に対する
外接長方形Bが計測される(S10、図7参照)。
As described in detail above, the appearance inspection method of the stamped tablet and the appearance inspection apparatus 1 of the stamped tablet according to the present embodiment.
In the case of 0, the entire one-dimensional image data of the surface 2 of the imprinting tablet 1 is binarized for each pixel of the CCD camera 11 (S3). (S4). Here, for example, in the imprint tablet 1 of FIG. 5, the imprint portions 3, 4, 5, and 6 on the surface 2 of the imprint tablet 1 are grasped by the pixels of one value (dark portion) equal to the foreign matter 7 and the like. , The total number PS of the pixels of the one value (dark portion) is calculated and (S
8) The circumscribed rectangle B is measured for all the pixels of the one value (dark part) (S10, see FIG. 7).

【0049】その一方、外観不良のない捺印錠剤1の表
面2の全体を、同様にして、2値化された画素で予め把
握しておき、このときの一方の値(暗部分)の画素の総
数PSを算出して、捺印錠剤1の外観検査の基準とす
る。ただし、捺印の僅かな滲みや掠れは許容されるべき
だから、かかる基準に幅を持たせ、最小基準数PMIN
から最大基準数PMAXの間としている(S7)。さら
に、このときの一方の値(暗部分)の全ての画素に対す
る外接長方形Bを計測して、捺印錠剤1の外観検査の基
準とする。ただし、捺印が任意の方向を向いていても外
観検査が行えるように、かかる基準に幅を持たせ、外接
長方形Bの長辺BLに対する長辺基準値LMAX以下、
かつ、外接長方形Bの短辺BSに対する短辺基準値LM
IN以上としている(S11)。
On the other hand, the entire surface 2 of the imprinted tablet 1 having no defective appearance is similarly grasped in advance by binarized pixels, and the pixels of one value (dark portion) at this time are obtained. The total number PS is calculated and used as a reference for the appearance inspection of the stamp tablet 1. However, slight bleeding or rubbing of the seal should be allowed.
To the maximum reference number PMAX (S7). Further, the circumscribed rectangle B for all the pixels of one value (dark part) at this time is measured and used as a reference for the appearance inspection of the stamp tablet 1. However, such a standard is given a width so that the appearance inspection can be performed even when the seal is oriented in an arbitrary direction, and is equal to or less than a long side reference value LMAX with respect to the long side BL of the circumscribed rectangle B.
And a short-side reference value LM for the short side BS of the circumscribed rectangle B
IN or more (S11).

【0050】尚、同一タイプの捺印錠剤1の外観検査結
果がある程度蓄積された後は、既に行われた外観検査結
果(一方の値(暗部分)の画素の総数の母集団や、一方
の値(暗部分)の全ての画素に対する外接長方形の母集
団)を確率統計的に処理することによって、より正確な
最小基準数PMIN、最大基準数PMAX、短辺基準値
LMIN、長辺基準値LMAXを定めることもできる。
After the appearance inspection results of the same type of imprinted tablet 1 have been accumulated to some extent, the appearance inspection results that have already been performed (the population of the total number of pixels of one value (dark portion) or one value) By statistically processing the population of circumscribed rectangles for all pixels in the (dark portion), more accurate minimum reference number PMIN, maximum reference number PMAX, short-side reference value LMIN, and long-side reference value LMAX are obtained. It can also be determined.

【0051】例えば、外観検査結果及び統計データメモ
リ24に記憶された外観検査結果(一方の値の画素の総
数PSの母集団)を、図8に示すように確率統計的に処
理して、最小基準数PMINと最大基準数PMAXを、
平均値と標準偏差σで定める。このとき、ブリスタシー
ト43のポケット部44の位置ごとに確率統計的な処理
を行うこともできるので、ブリスタシート43のポケッ
ト部44の位置ごとに最小基準数PMINと最大基準数
PMAXを定めることもできる。これによって、ブリス
タシート43全体を照明12の光13で一様に照らすこ
とができないことから生じる検査錯誤を一層低く抑える
ことができる。また、短辺基準値LMINと長辺基準値
LMAXについても、同様に定めることができる。
For example, the appearance inspection result and the appearance inspection result (population of the total number PS of pixels of one value) stored in the statistical data memory 24 are statistically processed as shown in FIG. The reference number PMIN and the maximum reference number PMAX are
Determined by the average value and standard deviation σ. At this time, since the probability statistical processing can be performed for each position of the pocket portion 44 of the blister sheet 43, the minimum reference number PMIN and the maximum reference number PMAX can be determined for each position of the pocket portion 44 of the blister sheet 43. it can. As a result, it is possible to further suppress inspection errors caused by the fact that the entire blister sheet 43 cannot be uniformly illuminated with the light 13 of the illumination 12. Further, the short-side reference value LMIN and the long-side reference value LMAX can be similarly determined.

【0052】そして、一方の値(暗部分)の画素の総数
PSが最小基準数PMINから最大基準数PMAXの間
にあると判断されるとともに(S9:Yes)、一方の
値(暗部分)の全ての画素に対する外接長方形Bの短辺
BSの長さが短辺基準値LMIN以上であり、かつ、か
かる外接長方形Bの長辺BLの長さが長辺基準値LMA
X以下であると判断されれば(S11:Yes)、捺印
錠剤1の表面2の捺印状態が許容範囲であり、かつ、捺
印錠剤1の表面2に異物7などがないとして、検査対象
の捺印錠剤1に外観不良がないと判定する(S12)。
Then, it is determined that the total number PS of the pixels of one value (dark part) is between the minimum reference number PMIN and the maximum reference number PMAX (S9: Yes), and the value PS of one value (dark part) is determined. The length of the short side BS of the circumscribed rectangle B for all pixels is equal to or longer than the short side reference value LMIN, and the length of the long side BL of the circumscribed rectangle B is the long side reference value LMA.
If it is determined to be X or less (S11: Yes), it is determined that the printing state of the surface 2 of the printing tablet 1 is within the allowable range and that there is no foreign matter 7 on the surface 2 of the printing tablet 1, and the printing of the inspection target is performed. It is determined that the tablet 1 has no appearance defect (S12).

【0053】また、一方の値(暗部分)の画素の総数P
Sが最小基準数PMINから最大基準数PMAXの間に
ないと判断されるか(S9:No)、一方の値(暗部
分)の全ての画素に対する外接長方形Bの短辺BSの長
さが短辺基準値LMIN以上でない、又は、かかる外接
長方形Bの長辺BLの長さが長辺基準値LMAX以下で
ないと判断されれば(S11:No)、捺印錠剤1の表
面2の捺印状態が許容範囲でないか、捺印錠剤1の表面
2に異物7などがあるか、または、その両方であるとし
て、検査対象の捺印錠剤1に外観不良があると判定する
(S13)。
The total number P of pixels of one value (dark portion)
It is determined that S is not between the minimum reference number PMIN and the maximum reference number PMAX (S9: No), or the length of the short side BS of the circumscribed rectangle B for all pixels of one value (dark portion) is short. If it is determined that the length is not more than the side reference value LMIN, or if the length of the long side BL of the circumscribed rectangle B is not less than the long side reference value LMAX (S11: No), the printing state of the front surface 2 of the printing tablet 1 is allowable. It is determined that it is out of the range, that there is a foreign substance 7 on the surface 2 of the stamp tablet 1, or that both are both, and that the stamp tablet 1 to be inspected has a poor appearance (S13).

【0054】尚、一方の値(暗部分)の画素で構成され
るものであってノイズ基準数P未満の大きさをもつ全て
の連結領域について、それらの画素の値を一方の値(暗
部分)から他方の値(明部分)にしており(S5)、上
述した総数PSや外接長方形Bの対象から外しているの
で、ノイズなどの誤差要因を取り除くことができる。
Note that, for all connected regions which are composed of pixels of one value (dark portion) and have a size smaller than the noise reference number P, the values of those pixels are changed to one value (dark portion). ) To the other value (bright portion) (S5), and is excluded from the targets of the total number PS and the circumscribed rectangle B, so that error factors such as noise can be removed.

【0055】よって、従来技術で用いた所謂「パターン
・マッチング」の手法とは異なるので、検査対象の捺印
錠剤1の表面2の捺印方向が外観検査に影響を及ぼすこ
とはなく、さらに、検査処理の効率も非常に良い。
Therefore, since it is different from the so-called "pattern matching" technique used in the prior art, the marking direction on the surface 2 of the tablet 1 to be inspected does not affect the appearance inspection. The efficiency is also very good.

【0056】すなわち、本発明の捺印錠剤の外観検査方
法と捺印錠剤の外観検査装置30は、捺印錠剤1の表面
2の捺印部分3、4、5、6を異物7などと区別せずに
検査処理を行っているので、捺印錠剤1の表面2の捺印
部分3、4、5、6の方向に影響されることもなく、検
査処理の効率を非常に良くすることができる。従って、
本実施の形態の捺印錠剤の外観検査方法をもって、搬送
中のブリスタシート43のポケット部44に充填された
捺印錠剤1の外観をブリスタシート包装機30内で検査
することができる。
That is, the method for inspecting the appearance of a stamped tablet and the apparatus for inspecting the stamped tablet appearance 30 of the present invention inspect the stamped portions 3, 4, 5, and 6 on the surface 2 of the stamped tablet 1 without distinguishing them from the foreign matter 7 or the like. Since the processing is performed, the efficiency of the inspection processing can be greatly improved without being affected by the directions of the marking portions 3, 4, 5, and 6 on the surface 2 of the marking tablet 1. Therefore,
The appearance of the stamp tablet 1 filled in the pocket portion 44 of the blister sheet 43 being transported can be inspected in the blister sheet packaging machine 30 by the stamp tablet appearance inspection method of the present embodiment.

【0057】また、捺印錠剤1の表面2の捺印部分3、
4、5、6を異物7などと等しく一方の値(暗部分)の
画素で把握して検査処理を行うので(S1〜S13)、
外観検査の対象が捺印錠剤1に制限されることはない。
従って、正常に撮像できるものならば、どのような錠剤
でも外観検査の対象にすることができる。
Further, the stamped portion 3 on the surface 2 of the stamped tablet 1
The inspection process is performed by grasping the pixels 4, 5, and 6 with the pixel of one value (dark portion) equal to the foreign matter 7 or the like (S1 to S13).
The target of the appearance inspection is not limited to the stamp tablet 1.
Therefore, any tablet that can be normally imaged can be subjected to the appearance inspection.

【0058】また、ノイズ基準数P未満の大きさをもつ
連結領域を外観検査の対象から外すことによって(S
5)、捺印錠剤1の外観検査からノイズなどの誤差要因
を取り除いているので、信頼性のある捺印錠剤1の外観
検査を行うことができる。
Also, by removing the connected area having a size smaller than the noise reference number P from the object of the visual inspection (S
5) Since the error factors such as noise are removed from the appearance inspection of the stamp tablet 1, the appearance inspection of the stamp tablet 1 can be performed reliably.

【0059】また、既に行われた外観検査結果を確率統
計的に処理することによって、捺印錠剤1の外観検査の
基準となる最小基準数PMIN、最大基準数PMAX、
短辺基準値LMIN、長辺基準値LMAXを決定すれ
ば、信頼性のある捺印錠剤1の外観検査を行うことがで
きる。
Further, by processing the results of the already performed appearance inspection stochastically, the minimum reference number PMIN, maximum reference number PMAX,
If the short-side reference value LMIN and the long-side reference value LMAX are determined, a reliable appearance inspection of the stamp tablet 1 can be performed.

【0060】尚、本発明は上記実施の形態に限定される
ものでなく、その趣旨を逸脱しない範囲で様々な変更が
可能である。例えば、上記実施の形態においては、S1
0で計測された外接長方形Bが第1基準範囲内であるか
否かの判断を、S11において、外接長方形Bの短辺B
Sの長さが短辺基準値LMIN以上であり、かつ、外接
長方形Bの長辺BLの長さが長辺基準値LMAX以下で
あるか否かで判断しているが、外接長方形Bの対角線の
長さ、面積などをもって判断してもよい。
The present invention is not limited to the above embodiment, and various changes can be made without departing from the gist of the present invention. For example, in the above embodiment, S1
In S11, it is determined whether or not the circumscribed rectangle B measured at 0 is within the first reference range.
It is determined whether the length of S is equal to or greater than the short side reference value LMIN and the length of the long side BL of the circumscribed rectangle B is equal to or less than the long side reference value LMAX. May be determined based on the length, area, and the like.

【0061】また、S10、S11において、一方の値
(暗部分)の全ての画素に対する外接長方形Bを計測し
第1基準範囲内であるか否かを判断しているが、一方の
値(暗部分)の全ての画素に対する外接円を計測し第1
基準範囲内であるか否かを判断してもよい。このとき、
第1基準範囲であるか否かの判断は、外接円の外径、内
径、外周、又は面積などを用いて行う。また、一方の値
(暗部分)の全ての画素に対する外接多角形を計測し第
1基準範囲内であるか否かを判断してもよい。このと
き、第1基準範囲であるか否かの判断は、外接多角形の
長対角線の長さ、短対角線の長さなどを用いて行う。
In S10 and S11, the circumscribed rectangle B for all pixels of one value (dark portion) is measured to determine whether or not it is within the first reference range. Measure the circumscribed circle for all the pixels in
It may be determined whether or not it is within the reference range. At this time,
The determination as to whether or not it is the first reference range is performed using the outer diameter, inner diameter, outer circumference, area, or the like of the circumscribed circle. Alternatively, the circumscribed polygon for all the pixels of one value (dark portion) may be measured to determine whether the value is within the first reference range. At this time, the determination as to whether or not the range is the first reference range is performed using the length of the long diagonal line, the length of the short diagonal line, and the like of the circumscribed polygon.

【0062】また、一方の値(暗部分)の画素の総数P
Sを計算し第2基準範囲内であるか否かを判断した後に
おいて(S8、S9)、一方の値(暗部分)の全ての画
素に対する外接長方形Bを計測し第1基準範囲内である
か否かを判断しているが(S10、S11)、これらの
判断の順序を逆にして、一方の値(暗部分)の全ての画
素に対する外接長方形Bが第1基準範囲内であるか否か
を判断した後において、一方の値(暗部分)の画素の総
数PSが第2基準範囲内であるか否かを判断してもよ
い。
The total number P of pixels of one value (dark portion)
After calculating S and judging whether or not it is within the second reference range (S8, S9), the circumscribed rectangle B for all pixels of one value (dark part) is measured and is within the first reference range. (S10, S11), the order of these determinations is reversed to determine whether the circumscribed rectangle B for all pixels of one value (dark portion) is within the first reference range. After the determination, it may be determined whether or not the total number PS of pixels of one value (dark portion) is within the second reference range.

【0063】また、捺印錠剤1の表面2には表側と裏側
が存在するが、表側と裏側に異なる捺印がされていた
り、表側又は裏側のいずれか(片側)のみに捺印がされ
ている場合には、CCDカメラ11が捺印錠剤1の表面
2の表側又は裏側のいずれを撮像しても、捺印錠剤1の
外観検査が支障なく行われるように、表側と裏側の両者
を兼用した最小基準数PMIN、最大基準数PMAX、
短辺基準値LMIN、長辺基準値LMAXを決定する。
特に、ブリスタシート包装機30においては、捺印錠剤
1の表面2を表側又は裏側に揃えながら、ブリスタシー
ト43のポケット部44に充填することは困難なので、
CCDカメラ11が捺印錠剤1の表面2の表側又は裏側
のいずれを撮像しても、捺印錠剤1の外観検査が支障な
く行えることは有効である。
The front side 2 and the back side are present on the front side 2 of the stamp tablet 1. However, when the front side and the back side are differently stamped, or when only one of the front side and the back side (one side) is stamped. Is the minimum reference number PMIN that is used for both the front and back sides so that the appearance inspection of the stamping tablet 1 can be performed without any trouble even if the CCD camera 11 takes an image of the front side or the back side of the front surface 2 of the stamping tablet 1. , Maximum reference number PMAX,
The short side reference value LMIN and the long side reference value LMAX are determined.
In particular, in the blister sheet packaging machine 30, it is difficult to fill the pocket 44 of the blister sheet 43 while aligning the front surface 2 of the stamp tablet 1 with the front side or the back side.
Regardless of whether the CCD camera 11 takes an image of the front side or the back side of the front surface 2 of the marking tablet 1, it is effective that the appearance inspection of the marking tablet 1 can be performed without any trouble.

【0064】また、上記実施の形態においては、1次元
撮像装置であるCCDカメラ11で撮像した1次元イメ
ージデータを基にして検査処理を行っているが(S1〜
S13)、2次元撮像装置であるCCDカメラで撮像し
た2次元イメージデータを基にしても行うことができ
る。このとき、2次元撮像装置であるCCDカメラで撮
像される2次元イメージデータには、ブリスタシート4
3の幅方向に並んだ複数の捺印錠剤1だけでなく、ブリ
スタシート43の長さ方向に並んだ複数の捺印錠剤1を
も同時に撮像することができるので、上述したS1〜S
13は、ブリスタシート43の一定領域内に並んだ各捺
印錠剤1について同時進行的に行うことができる。尚、
上記実施の形態において使用する1次元イメージデータ
は、2次元イメージデータより画素サイズが細かいの
で、2次元イメージデータを基にした検査処理と比べ、
高性能な外観検査を高速な検査処理のもとで実現するこ
とができる。
In the above embodiment, the inspection process is performed based on the one-dimensional image data picked up by the CCD camera 11, which is a one-dimensional image pickup device.
S13) It can be performed based on two-dimensional image data captured by a CCD camera, which is a two-dimensional imaging device. At this time, the blister sheet 4 is included in the two-dimensional image data imaged by the CCD camera, which is a two-dimensional imaging device.
3 as well as a plurality of stamped tablets 1 arranged in the length direction of the blister sheet 43 as well as a plurality of stamped tablets 1 arranged in the width direction.
Step 13 can be performed simultaneously for each stamp tablet 1 arranged in a certain area of the blister sheet 43. still,
The one-dimensional image data used in the above embodiment has a smaller pixel size than the two-dimensional image data.
High-performance appearance inspection can be realized under high-speed inspection processing.

【0065】また、CCDカメラ11は固体画像素子を
用いたカメラであるが、撮像管を用いた従来のカメラで
撮像したイメージデータを基にしても、検査処理を行う
ことができる。ただし、かかるイメージデータには画素
という区切りが存在しないから、S3で行われる2値化
処理は、画像メモリ16の画素ごとに行う。
Although the CCD camera 11 is a camera using a solid-state image element, an inspection process can be performed based on image data taken by a conventional camera using an image pickup tube. However, since there is no pixel segment in the image data, the binarization process performed in S3 is performed for each pixel in the image memory 16.

【0066】また、CCDカメラ11は、ブリスタシー
ト43の幅方向に1列に並んだ複数の捺印錠剤1(ブリ
スタシート43のポケット部44)を同時に撮像するだ
けでなく、ブリスタシート43のシート部をも同時に撮
像している(図3参照)。そこで、CCDカメラ11で
撮像することによって得られる各1次元イメージデータ
を、同様にして、CCDカメラ11の画素ごとに2値化
するとともに同期させて集積し、ブリスタシート43の
シート部に連続的に連なった一方の値(暗部分)の画素
の各総数を基準数と比較させることによって、ブリスタ
シート43のシート部の外観をもブリスタシート包装機
30内で同時に検査させることもできる。
The CCD camera 11 not only captures images of a plurality of stamps 1 (the pockets 44 of the blister sheet 43) arranged in a line in the width direction of the blister sheet 43, but also captures the sheet portion of the blister sheet 43. At the same time (see FIG. 3). Therefore, each one-dimensional image data obtained by capturing an image with the CCD camera 11 is similarly binarized for each pixel of the CCD camera 11 and integrated in a synchronized manner, and is continuously stored in the sheet portion of the blister sheet 43. By comparing each total number of pixels of one value (dark portion) connected to the reference number with the reference number, the appearance of the sheet portion of the blister sheet 43 can be simultaneously inspected in the blister sheet packaging machine 30.

【0067】ただし、CCDカメラ11が撮像した1次
元イメージデータにおいては、捺印錠剤1の表面2とブ
リスタシート43のシート部の輝度階調は相当に異なる
ので、上述したS3、S4で使用したものとは別の、コ
ンパレータ(コンパレータ14とは異なる特定のしきい
値をもつ)、画像メモリ、シェーディング補正テーブル
を、ブリスタシート43のシート部の外観検査専用に使
用して、各1次元イメージデータをCCDカメラ11の
画素ごとに2値化するとともに同期させて集積させる。
これにより、ブリスタシート43のシート部の外観検査
の信頼性を向上させることができる。
However, in the one-dimensional image data picked up by the CCD camera 11, since the luminance gradation of the surface 2 of the stamp tablet 1 and the sheet portion of the blister sheet 43 are considerably different, the ones used in S3 and S4 described above are used. The one-dimensional image data is obtained by using a comparator (having a specific threshold value different from that of the comparator 14), an image memory, and a shading correction table exclusively for visual inspection of the sheet portion of the blister sheet 43. Each pixel of the CCD camera 11 is binarized and integrated in synchronization.
Thereby, the reliability of the appearance inspection of the sheet portion of the blister sheet 43 can be improved.

【0068】[0068]

【発明の効果】本発明の捺印錠剤の外観検査方法と捺印
錠剤の外観検査装置は、錠剤の表面の捺印を異物などと
区別せずに検査処理を行っているので、錠剤の表面の捺
印の方向に影響されることもなく、検査処理の効率を非
常に良くすることができる。従って、本発明の捺印錠剤
の外観検査方法をもって、搬送中のブリスタシートのポ
ケット部に充填された捺印錠剤の外観をブリスタシート
包装機内で検査することができる。
The method for inspecting the appearance of a tablet and the apparatus for inspecting the appearance of a tablet according to the present invention perform the inspection process without discriminating the stamp on the tablet surface from foreign substances and the like. The efficiency of the inspection process can be greatly improved without being affected by the direction. Therefore, according to the method for inspecting the appearance of a stamped tablet of the present invention, the appearance of the stamped tablet filled in the pocket of the blister sheet being conveyed can be inspected in the blister sheet packaging machine.

【0069】また、錠剤の表面の捺印を異物などと等し
く一方の値の画素で把握して検査処理を行うので、外観
検査の対象が捺印錠剤に制限されることはない。従っ
て、正常に撮像できるものならば、どのような錠剤でも
外観検査の対象にすることができる。
In addition, since the inspection process is performed by grasping the stamp on the surface of the tablet with a pixel of one value equal to that of a foreign substance or the like, the object of the appearance inspection is not limited to the stamp tablet. Therefore, any tablet that can be normally imaged can be subjected to the appearance inspection.

【0070】また、一定値未満の大きさをもつ連結領域
を外観検査の対象から外すことによって、捺印錠剤の外
観検査からノイズなどの誤差要因を取り除けば、信頼性
のある捺印錠剤の外観検査を行うことができる。
Also, by removing the connection area having a size less than a certain value from the object of the visual inspection to remove error factors such as noise from the visual inspection of the imprint tablet, a reliable visual inspection of the imprint tablet can be performed. It can be carried out.

【0071】また、既に行われた外観検査結果を確率統
計的に処理することによって、捺印錠剤の外観検査の基
準となる第2基準範囲や第1基準範囲を決定すれば、信
頼性のある捺印錠剤の外観検査を行うことができる。
Further, if the results of the already performed appearance inspection are statistically processed to determine the second reference range and the first reference range which are the basis of the appearance inspection of the stamped tablet, reliable stamping can be performed. A visual inspection of the tablet can be performed.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明の捺印錠剤の外観検査方法の手順を示し
たフローチャート図である。
FIG. 1 is a flowchart showing a procedure of a method for inspecting the appearance of a stamped tablet according to the present invention.

【図2】本発明の捺印錠剤の外観検査方法の全体構成を
示すブロック図である。
FIG. 2 is a block diagram showing the overall configuration of the method for inspecting the appearance of a stamped tablet according to the present invention.

【図3】ブリスタシート包装機の一部を示した斜視図で
あり、搬送中のブリスタシートのポケット部に充填され
た捺印錠剤の外観を撮像する部分を示した図である。
FIG. 3 is a perspective view showing a part of the blister sheet packaging machine, showing a part for imaging the appearance of a stamp tablet filled in a pocket of a blister sheet being conveyed.

【図4】本発明の捺印錠剤の外観検査方法の機能構成を
示すブロック図である。
FIG. 4 is a block diagram showing a functional configuration of the method for inspecting the appearance of a stamped tablet according to the present invention.

【図5】捺印錠剤の外観を示す図である。FIG. 5 is a view showing the appearance of a stamp tablet.

【図6】1次元イメージデータの輝度階調を示した図で
ある。
FIG. 6 is a diagram illustrating luminance gradation of one-dimensional image data.

【図7】捺印錠剤の外観と外接長方形を示す図である。FIG. 7 is a diagram showing the appearance of a stamp tablet and a circumscribed rectangle.

【図8】捺印錠剤の外観検査結果(一方の値の画素の総
数の母集団)を確率統計的に処理した表を示した図であ
る。
FIG. 8 is a diagram showing a table obtained by probabilistically processing appearance inspection results (population of the total number of pixels of one value) of a stamp tablet.

【符号の説明】[Explanation of symbols]

1 捺印錠剤 10 捺印錠剤の外観検査装置 30 ブリスタシート包装機 43 ブリスタシート 44 ブリスタシートのポケット部 PS 一方の値の画素の総数 B 外接長方形 P ノイズ基準数 BL 外接長方形の長辺 BS 外接長方形の短辺 LMAX 長辺基準値 LMIN 短辺基準値 1 stamped tablet 10 stamped tablet appearance inspection device 30 blister sheet packaging machine 43 blister sheet 44 blister sheet pocket part PS total number of pixels of one value B circumscribed rectangle P noise reference number BL circumscribed rectangle long side BS circumscribed rectangle short Side LMAX Long side reference value LMIN Short side reference value

Claims (12)

【特許請求の範囲】[Claims] 【請求項1】 捺印錠剤の表面全体のイメージデータを
画素ごとに2値化し、一方の値の全ての画素に対する外
接形状が第1基準範囲内にあるか否かを判断することに
より、前記捺印錠剤の外観を検査することを特徴とする
捺印錠剤の外観検査方法。
1. The method according to claim 1, wherein the image data of the entire surface of the imprinting tablet is binarized for each pixel, and it is determined whether or not the circumscribed shapes of all pixels of one value are within a first reference range. A method for inspecting the appearance of a stamped tablet, comprising inspecting the appearance of the tablet.
【請求項2】 捺印錠剤の表面全体のイメージデータを
画素ごとに2値化し、一方の値の画素で構成されるもの
であって一定値以上の大きさをもつ全ての連結領域に対
する外接形状が第1基準範囲内にあるか否かを判断する
ことにより、前記捺印錠剤の外観を検査することを特徴
とする捺印錠剤の外観検査方法。
2. The image data of the entire surface of the imprinting tablet is binarized for each pixel, and the circumscribed shape for all connected regions having pixels of one value and having a size equal to or greater than a certain value is determined. A method for inspecting the appearance of a stamped tablet, comprising: inspecting the appearance of the stamped tablet by determining whether the stamped tablet is within a first reference range.
【請求項3】 請求項1又は請求項2に記載する捺印錠
剤の外観検査方法において、 一方の値の全ての画素に対する総数が第2基準範囲内に
あるか否かをも判断することにより、前記捺印錠剤の外
観を検査することを特徴とする捺印錠剤の外観検査方
法。
3. The method for inspecting the appearance of a stamped tablet according to claim 1 or 2, further comprising: determining whether a total number of one of the values for all pixels is within a second reference range. A method for inspecting the appearance of a stamped tablet, comprising inspecting the appearance of the stamped tablet.
【請求項4】 請求項1又は請求項2に記載する捺印錠
剤の外観検査方法において、 一方の値の画素で構成されるものであって一定値以上の
大きさをもつ全ての連結領域の画素の総数が第2基準範
囲内にあるか否かをも判断することにより、前記捺印錠
剤の外観を検査することを特徴とする捺印錠剤の外観検
査方法。
4. The method for inspecting the appearance of a stamped tablet according to claim 1 or 2, wherein the pixels of one of the connected areas, each of which has a size equal to or greater than a certain value, are constituted by pixels of one value. A method for inspecting the appearance of the stamped tablet by also determining whether or not the total number of the stamped tablets is within the second reference range.
【請求項5】 請求項1乃至請求項4のいずれか一つに
記載する捺印錠剤の外観検査方法において、 前記第1基準範囲は確率統計的に算出されたものである
ことを特徴とする捺印錠剤の外観検査方法。
5. The method for inspecting the appearance of a stamped tablet according to any one of claims 1 to 4, wherein the first reference range is calculated stochastically. Tablet appearance inspection method.
【請求項6】 請求項3又は請求項4に記載する捺印錠
剤の外観検査方法において、 前記第2基準範囲は確率統計的に算出されたものである
ことを特徴とする捺印錠剤の外観検査方法。
6. The method for inspecting the appearance of a stamped tablet according to claim 3 or 4, wherein the second reference range is calculated stochastically. .
【請求項7】 請求項1乃至請求項6のいずれか一つに
記載する捺印錠剤の外観検査方法において、 前記外接形状は長方形であることを特徴とする捺印錠剤
の外観検査方法。
7. The method for inspecting the appearance of a stamped tablet according to any one of claims 1 to 6, wherein the circumscribed shape is a rectangle.
【請求項8】 請求項7に記載する捺印錠剤の外観検査
方法において、 前記第1基準範囲の対象が前記長方形の長辺と短辺であ
ることを特徴とする捺印錠剤の外観検査方法。
8. The method for inspecting the appearance of a stamped tablet according to claim 7, wherein the object of the first reference range is a long side and a short side of the rectangle.
【請求項9】 請求項7に記載する捺印錠剤の外観検査
方法において、 前記第1基準範囲の対象が前記長方形の対角線であるこ
とを特徴とする捺印錠剤の外観検査方法。
9. The method for inspecting the appearance of a stamped tablet according to claim 7, wherein the object of the first reference range is the diagonal line of the rectangle.
【請求項10】 請求項7に記載する捺印錠剤の外観検
査方法において、 前記第1基準範囲の対象が前記長方形の面積であること
を特徴とする捺印錠剤の外観検査方法。
10. The method for inspecting the appearance of a stamped tablet according to claim 7, wherein the object of the first reference range is the area of the rectangle.
【請求項11】 請求項1乃至請求項10のいずれか一
つに記載する捺印錠剤の外観検査方法において、 搬送中のブリスタシートのポケット部に充填された捺印
錠剤の外観をブリスタシート包装機内で検査することを
特徴とする捺印錠剤の外観検査方法。
11. The method for inspecting the appearance of a stamped tablet according to any one of claims 1 to 10, wherein the appearance of the stamped tablet filled in the pocket portion of the blister sheet being conveyed is measured in a blister sheet packaging machine. A method for inspecting the appearance of a stamped tablet characterized by inspecting.
【請求項12】 請求項1乃至請求項11のいずれか一
つに記載する捺印錠剤の外観検査方法を実施することを
特徴とする捺印錠剤の外観検査装置。
12. A stamped tablet appearance inspection apparatus, wherein the stamped tablet appearance inspection method according to any one of claims 1 to 11 is performed.
JP23350097A 1997-08-29 1997-08-29 Appearance inspection method for stamped tablets and appearance inspection device for stamped tablets Expired - Lifetime JP3557081B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP23350097A JP3557081B2 (en) 1997-08-29 1997-08-29 Appearance inspection method for stamped tablets and appearance inspection device for stamped tablets

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP23350097A JP3557081B2 (en) 1997-08-29 1997-08-29 Appearance inspection method for stamped tablets and appearance inspection device for stamped tablets

Publications (2)

Publication Number Publication Date
JPH1172440A true JPH1172440A (en) 1999-03-16
JP3557081B2 JP3557081B2 (en) 2004-08-25

Family

ID=16956005

Family Applications (1)

Application Number Title Priority Date Filing Date
JP23350097A Expired - Lifetime JP3557081B2 (en) 1997-08-29 1997-08-29 Appearance inspection method for stamped tablets and appearance inspection device for stamped tablets

Country Status (1)

Country Link
JP (1) JP3557081B2 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10246707A (en) * 1997-03-05 1998-09-14 Toagosei Co Ltd Method for inspecting sealed package
JP2003215047A (en) * 2002-01-17 2003-07-30 Ckd Corp Visual inspection apparatus and ptp packaging machine equipped with the same
JP2004077495A (en) * 2003-10-21 2004-03-11 Ckd Corp Visual inspection device
JP2012225666A (en) * 2011-04-15 2012-11-15 Ckd Corp Tablet inspection apparatus and ptp packaging machine
CN111398308A (en) * 2020-03-27 2020-07-10 上海健康医学院 Automatic detection method and system for packaging quality of aluminum-plastic bubble caps of tablets and capsules

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100929475B1 (en) * 2005-02-23 2009-12-02 파나소닉 전공 주식회사 Inspection method of granular object and inspection apparatus performing the method
KR102311595B1 (en) * 2021-03-31 2021-10-13 (주)아이프리즘 Vision inspection system of date printing status for product and method thereof

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10246707A (en) * 1997-03-05 1998-09-14 Toagosei Co Ltd Method for inspecting sealed package
JP2003215047A (en) * 2002-01-17 2003-07-30 Ckd Corp Visual inspection apparatus and ptp packaging machine equipped with the same
JP2004077495A (en) * 2003-10-21 2004-03-11 Ckd Corp Visual inspection device
JP2012225666A (en) * 2011-04-15 2012-11-15 Ckd Corp Tablet inspection apparatus and ptp packaging machine
CN111398308A (en) * 2020-03-27 2020-07-10 上海健康医学院 Automatic detection method and system for packaging quality of aluminum-plastic bubble caps of tablets and capsules

Also Published As

Publication number Publication date
JP3557081B2 (en) 2004-08-25

Similar Documents

Publication Publication Date Title
JP5697168B2 (en) Inspection device and PTP packaging machine
JP2009293999A (en) Wood defect detector
JP2003215047A (en) Visual inspection apparatus and ptp packaging machine equipped with the same
JP3929647B2 (en) Tablet appearance inspection device and PTP packaging machine
JP3557081B2 (en) Appearance inspection method for stamped tablets and appearance inspection device for stamped tablets
KR100827906B1 (en) Substrate inspection device
JP3549656B2 (en) Tablet printing equipment
KR20120109547A (en) Appearance inspection device
JP4030716B2 (en) Tablet appearance inspection device and PTP packaging machine
JP3549752B2 (en) PTP sheet appearance inspection device and PTP packaging machine
JPH10267853A (en) Method and device for inspecting appearance of imprinted tablet
JP3461128B2 (en) Appearance inspection method and device for stamped tablets
JP4034222B2 (en) Appearance inspection apparatus for PTP sheet packed with tablets and PTP packaging machine
JP3761313B2 (en) Tablet appearance inspection method, tablet appearance inspection device and blister sheet packaging machine
JP2000266514A (en) Method and device for inspecting metallic sheet
JP4201143B2 (en) Appearance inspection device and PTP packaging machine equipped with appearance inspection device
JP3461136B2 (en) Tablet visual inspection device and PTP packaging machine
JP4566940B2 (en) Inspection apparatus and PTP sheet manufacturing apparatus
JP3580319B2 (en) Capsule band seal detection method and band seal detection device
JP4251325B2 (en) Appearance inspection device and PTP packaging machine
JP3577194B2 (en) Tablet appearance inspection method and tablet appearance inspection device
WO2023243134A1 (en) Tablet inspection device and tablet inspection method
JP2004317187A (en) Visual inspection apparatus and ptp packaging machine
JP3585708B2 (en) Tablet appearance inspection method and tablet appearance inspection device
JPH03237570A (en) Method and device for inspecting code-printed face

Legal Events

Date Code Title Description
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: 20040420

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20040514

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20080521

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20090521

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20090521

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20100521

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20110521

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20120521

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20120521

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20130521

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20130521

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20140521

Year of fee payment: 10

EXPY Cancellation because of completion of term