JP5546021B2 - Tablet inspection device and PTP packaging machine - Google Patents

Tablet inspection device and PTP packaging machine Download PDF

Info

Publication number
JP5546021B2
JP5546021B2 JP2011121197A JP2011121197A JP5546021B2 JP 5546021 B2 JP5546021 B2 JP 5546021B2 JP 2011121197 A JP2011121197 A JP 2011121197A JP 2011121197 A JP2011121197 A JP 2011121197A JP 5546021 B2 JP5546021 B2 JP 5546021B2
Authority
JP
Japan
Prior art keywords
predetermined point
tablet
tangent
direction information
predetermined
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
JP2011121197A
Other languages
Japanese (ja)
Other versions
JP2012247376A (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 JP2011121197A priority Critical patent/JP5546021B2/en
Publication of JP2012247376A publication Critical patent/JP2012247376A/en
Application granted granted Critical
Publication of JP5546021B2 publication Critical patent/JP5546021B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Length Measuring Devices By Optical Means (AREA)
  • Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)
  • Containers And Plastic Fillers For Packaging (AREA)
  • Image Analysis (AREA)

Description

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

一般に、PTPシートは、錠剤等が充填されるポケット部を有する樹脂製の包装用フィルムと、その包装用フィルムにポケット部の開口側を密封するように取着されるアルミニウム製のカバーフィルムとから構成されている。   Generally, a PTP sheet includes a resin packaging film having a pocket portion filled with tablets and the like, and an aluminum cover film attached to the packaging film so as to seal the opening side of the pocket portion. It is configured.

PTPシートの製造に際しては、ポケット部に錠剤等が充填された後、錠剤の欠けや割れ等に関する外観異常が検査される。当該検査においては、例えば照射手段から光が照射され、その透過光或いは反射光がカメラにて撮像され、当該撮像された画像データを基に錠剤の欠け等が検査される。   In manufacturing the PTP sheet, after the pocket portion is filled with tablets or the like, the appearance abnormality relating to chipping or cracking of the tablets is inspected. In the inspection, for example, light is irradiated from the irradiation means, the transmitted light or reflected light is imaged by a camera, and a chip of the tablet is inspected based on the captured image data.

上記検査の手法としては、例えば予め基準(目標)となる錠剤の輪郭を設定しておく。一方で、実際に検査対象となる錠剤の画像データから当該錠剤の輪郭を抽出し、当該輪郭の外周をベクトル軌跡(接線)で追い、ベクトルの回転角度を計測する。そして、計測されるベクトルの回転角度が、基準錠剤の輪郭の各座標毎に予め設定されている設定角と比較され、実測角度が設定角よりも大きい箇所が見出された場合に、割れや欠けがあるものと判定される(例えば、特許文献1等参照)。   As the inspection method, for example, the outline of a tablet as a reference (target) is set in advance. On the other hand, the contour of the tablet is extracted from the image data of the tablet actually to be inspected, the outer periphery of the contour is followed by a vector locus (tangent), and the rotation angle of the vector is measured. Then, the rotation angle of the measured vector is compared with a preset angle preset for each coordinate of the contour of the reference tablet, and if a portion where the measured angle is larger than the preset angle is found, It is determined that there is a chip (see, for example, Patent Document 1).

特開2005−172608号公報JP 2005-172608 A

しかしながら、上記公報に記載された技術というのは、実際に計測される各点のベクトルの回転角度が、都度、基準錠剤の輪郭の各点毎に予め設定されている設定角と比較されるものである。このため、検査対象となる錠剤の種類、つまり形状や、サイズ等が変わる毎に、基準錠剤の輪郭及び各点毎の設定角のデータを用意しておく必要があった。   However, the technique described in the above publication is such that the rotation angle of the vector of each actually measured point is compared with the set angle preset for each point of the reference tablet contour each time. It is. For this reason, it is necessary to prepare the contour of the reference tablet and the set angle data for each point every time the type of the tablet to be inspected, that is, the shape, size, etc. changes.

また、ポケット部内に充填されている錠剤が、常に同じ姿勢をとっているとは限らない。例えば、錠剤が、ポケット部内において若干傾いた状態で収容されているとすると、画像データから抽出される錠剤の輪郭というのは、必ずしも基準錠剤の輪郭と一致するとは限らない。このため、正確な角度比較に支障が生じてしまうことが懸念され、結果として、正確な検査を行うことができなかったり、誤判定の原因となったりする等の不具合が起こるおそれがある。   In addition, the tablets filled in the pocket portions do not always take the same posture. For example, if the tablet is stored in a slightly inclined state in the pocket portion, the outline of the tablet extracted from the image data does not necessarily match the outline of the reference tablet. For this reason, there is a concern that an accurate angle comparison may be hindered, and as a result, there is a possibility that an inaccurate inspection cannot be performed or a malfunction such as an erroneous determination may occur.

本発明は、上記事情等に鑑みてなされたものであり、PTPシートの製造過程における錠剤の欠け等の検査に際し、錠剤の変更にも柔軟かつ円滑に対応することができ、しかも検査精度の飛躍的な向上を図ることのできる錠剤検査装置及びPTP包装機を提供することを主たる目的の一つとしている。   The present invention has been made in view of the above circumstances and the like, and can flexibly and smoothly cope with changes in tablets when inspecting for chipping of tablets in the manufacturing process of a PTP sheet. One of the main objectives is to provide a tablet inspection device and a PTP packaging machine that can improve the quality of the product.

以下、上記課題を解決するのに適した各手段につき項分けして説明する。なお、必要に応じて対応する手段に特有の作用効果を付記する。   Hereinafter, each means suitable for solving the above-described problem will be described separately. In addition, the effect specific to the means to respond | corresponds as needed is added.

手段1.PTPシートの製造過程において、搬送される帯状の包装用フィルムに形成されたポケット部に収容された錠剤を検査する錠剤検査装置であって、
前記ポケット部に収容された錠剤に対し光を照射可能な照明手段と、
前記照明手段により照明された範囲内の錠剤を撮像可能な撮像手段と、
前記撮像手段から出力される画像信号を処理する画像処理装置とを備え、
前記画像処理装置は、
前記画像信号から得た画像データに基づき、前記錠剤の輪郭を抽出する輪郭抽出手段と、
前記錠剤の輪郭上における第1の所定点の接線の向き情報を求めるとともに、前記錠剤の輪郭上における第2の所定点の接線の向き情報を演算する第1及び第2演算手段と、
前記錠剤の輪郭上において、前記第1の所定点及び第2の所定点で挟まれた第3の所定点の接線の向き情報を求める第3演算手段と、
前記第3の所定点の接線の向き情報と、前記第1の所定点の接線の向き情報及び第2の所定点の接線の向き情報とを比較し、前記第3の所定点の接線の向き情報が、前記第1の所定点の接線の向き情報及び第2の所定点の接線の向き情報に基づく許容範囲を逸脱している場合に、当該第3の所定点に関し不良候補として判定する判定手段と、を備え、
前記第1及び第2演算手段は、前記錠剤の輪郭上の複数通りの第1の所定点及び第2の所定点につき接線の向き情報を演算するものであるとともに、前記第3演算手段も、前記錠剤の輪郭上の複数通りの第3の所定点につき接線の向き情報を演算するものであり、前記判定手段は、前記複数通りの第3の所定点に関し、接線の向き情報の比較判定を行うものであることを特徴とする錠剤検査装置。
Means 1. In the manufacturing process of the PTP sheet, a tablet inspection device for inspecting a tablet contained in a pocket portion formed in a belt-shaped packaging film to be conveyed,
Illumination means capable of irradiating light to the tablet accommodated in the pocket portion,
Imaging means capable of imaging tablets in a range illuminated by the illumination means;
An image processing device for processing an image signal output from the imaging means,
The image processing apparatus includes:
Based on image data obtained from the image signal, contour extracting means for extracting the contour of the tablet;
First and second calculating means for calculating direction information of a tangent of a first predetermined point on the outline of the tablet and calculating direction information of a tangent of a second predetermined point on the outline of the tablet;
A third computing means for obtaining tangent direction information of a third predetermined point sandwiched between the first predetermined point and the second predetermined point on the outline of the tablet;
The direction information of the tangent of the third predetermined point is compared with the direction information of the tangent of the first predetermined point and the direction information of the tangent of the second predetermined point, and the direction of the tangent of the third predetermined point When the information deviates from the allowable range based on the tangent direction information of the first predetermined point and the tangent direction information of the second predetermined point, the determination for determining the third predetermined point as a defect candidate Means, and
The first and second calculation means calculate tangential direction information for a plurality of first predetermined points and second predetermined points on the outline of the tablet, and the third calculation means also Tangential direction information is calculated for a plurality of third predetermined points on the outline of the tablet, and the determination means performs a comparison determination of the tangential direction information for the plurality of third predetermined points. A tablet inspection apparatus characterized by being performed.

ここで、「第1の所定点」、「第2の所定点」は、両点の中心角が鋭角をなすよう設定され、「第3の所定点」は、その中心角の範囲内の輪郭上に位置するように設定される。   Here, the “first predetermined point” and the “second predetermined point” are set so that the central angle of both points forms an acute angle, and the “third predetermined point” is an outline within the range of the central angle. It is set to be located above.

また、「向き情報」は、勾配、傾き、角度、ベクトル等の概念で表すことができる。また、「向き情報」として、接線に直交する概念(例えば、明るさ変化のベクトル)等で表現することもできる。   Further, the “direction information” can be expressed by concepts such as gradient, inclination, angle, and vector. Further, the “direction information” can be expressed by a concept orthogonal to a tangent (for example, a brightness change vector) or the like.

さらに、「前記第3の所定点の接線の向き情報と、前記第1の所定点の接線の向き情報及び第2の所定点の接線の向き情報とを比較」は、いわば相対的な比較を意味するものであり、「第3の所定点の接線の向き情報が、第1の所定点の接線の向き情報及び第2の所定点の接線の向き情報に基づく許容範囲」内にある場合としては、例えば、第3の所定点の接線のベクトル角度が、第1の所定点の接線のベクトル角度と第2の所定点の接線のベクトル角度との間にある場合等を挙げることができる。   Furthermore, “comparing tangent direction information of the third predetermined point with tangent direction information of the first predetermined point and tangent direction information of the second predetermined point” is a relative comparison. This means that the tangent direction information of the third predetermined point is within the allowable range based on the tangent direction information of the first predetermined point and the tangent direction information of the second predetermined point. For example, the case where the vector angle of the tangent line of the third predetermined point is between the vector angle of the tangent line of the first predetermined point and the vector angle of the tangent line of the second predetermined point can be cited.

手段1によれば、第1及び第2演算手段により、錠剤の輪郭上における第1の所定点及び第2の所定点の接線の向き情報が求められる。また、第3演算手段により、第1の所定点及び第2の所定点で挟まれた第3の所定点の接線の向き情報が求められる。そして、第3の所定点の接線の向き情報と、第1の所定点の接線の向き情報及び第2の所定点の接線の向き情報とが比較され、第3の所定点の接線の向き情報が、第1の所定点の接線の向き情報及び第2の所定点の接線の向き情報に基づく許容範囲を逸脱している場合に、判定手段によって当該第3の所定点に関し不良候補として判定される。第1〜第3の所定点の接線の向き情報については複数通り演算され、判定手段による比較判定は、複数通りの第3の所定点に関し行われる。ここで、錠剤に欠け等が無い場合には、錠剤の輪郭は連続したものとなるため、第3の所定点の接線の向き情報というのは、第1の所定点の接線の向き情報及び第2の所定点の接線の向き情報に基づく許容範囲内にある筈であり、当該許容範囲を逸脱している場合には、第1及び第2の所定点間において錠剤の輪郭が連続していないといえる。   According to the means 1, the direction information of the tangent lines of the first predetermined point and the second predetermined point on the outline of the tablet is obtained by the first and second calculating means. Further, the third computing means obtains tangent direction information of the third predetermined point sandwiched between the first predetermined point and the second predetermined point. Then, the tangent direction information of the third predetermined point is compared with the tangent direction information of the first predetermined point and the tangent direction information of the second predetermined point, and the tangent direction information of the third predetermined point. Is deviated from the allowable range based on the tangent direction information of the first predetermined point and the tangent direction information of the second predetermined point, the determination unit determines that the third predetermined point is a defect candidate. The The tangent direction information of the first to third predetermined points is calculated in a plurality of ways, and the comparison determination by the determination means is performed on the plurality of third predetermined points. Here, when there is no chip or the like in the tablet, since the outline of the tablet is continuous, the tangent direction information of the third predetermined point is the tangential direction information of the first predetermined point and the tangent direction information of the first predetermined point. If it is within the allowable range based on the tangent direction information of the predetermined point 2 and deviates from the allowable range, the outline of the tablet is not continuous between the first and second predetermined points. It can be said.

このように、手段1では、画像信号から得た画像データに基づき、錠剤の輪郭を抽出し、当該抽出された実際の錠剤の輪郭に基づいて判定を行うことができ、従来技術で説明したような基準錠剤の輪郭や、各点毎の設定角のデータを別途用意しておく必要がない。このため、錠剤の変更にも柔軟かつ円滑に対応することができる一方で、正確な検査を行うことができる。また、錠剤が、ポケット部内において若干傾いた状態で収容されていたとしても、本手段では、錠剤の輪郭の連続性という見地から判定を行うこととしているため、錠剤の姿勢が都度異なっていたとしても、それによって誤判定を起こすことはない。この点においても、不良候補の判定がより正確なものとなり、ひいては検査精度の飛躍的な向上を図ることができる。   As described above, the means 1 can extract the outline of the tablet based on the image data obtained from the image signal, and perform the determination based on the extracted outline of the actual tablet, as described in the prior art. It is not necessary to prepare a separate reference tablet contour and set angle data for each point. For this reason, it is possible to respond flexibly and smoothly to changes in tablets, and it is possible to perform an accurate inspection. In addition, even if the tablet is stored in a slightly inclined state in the pocket portion, this means that the determination is made from the standpoint of the continuity of the contour of the tablet, so that the posture of the tablet is different every time. However, it does not cause misjudgment. Also in this respect, the determination of the defect candidate becomes more accurate, and as a result, the inspection accuracy can be drastically improved.

手段2.前記第1の所定点及び第3の所定点と、前記第3の所定点及び第2の所定点とが、等間隔又は等角度間隔となるよう設定されることを特徴とする手段1に記載の錠剤検査装置。   Mean 2. The means 1 is characterized in that the first predetermined point and the third predetermined point, and the third predetermined point and the second predetermined point are set at equal intervals or equal angular intervals. Tablet inspection device.

ここで、「等間隔」とあるのは、所定点間の輪郭長さが等しいことを意味し、「等角度間隔」とあるのは、各所定点から重心又は中心までの線分を引いたときの各線分間のなす角度同士が等しいことを意味する。   Here, “equal spacing” means that the contour lengths between the predetermined points are equal, and “equal angular spacing” means when a line segment from each predetermined point to the center of gravity or the center is drawn. It means that the angles formed by each line segment are equal.

手段2によれば、第3の所定点が、第1の所定点側或いは第2の所定点側に偏って設定される場合に比べ、より一層精度の高い検査を行うことができる。   According to the means 2, it is possible to perform inspection with higher accuracy than when the third predetermined point is set to be biased toward the first predetermined point side or the second predetermined point side.

手段3.前記第1及び第2演算手段にて演算された第1の所定点若しくは第2の所定点の接線の向き情報を、別の比較判定に際し前記第3演算手段にて演算されるべき第3の所定点の接線の向き情報として利用可能、又は、
前記第3演算手段にて演算された第3の所定点の接線の向き情報を、別の比較判定に際し前記第1及び第2演算手段にて演算されるべき第1の所定点若しくは第2の所定点の接線の向き情報として利用可能、又は、
前記第1及び第2演算手段にて演算された第1の所定点及び第2の所定点のうち一方の接線の向き情報を、別の比較判定に際し前記第1及び第2演算手段にて演算されるべき第1の所定点及び第2の所定点のうち他方の接線の向き情報として利用可能となっていることを特徴とする手段1又は2に記載の錠剤検査装置。
Means 3. The direction information of the tangent line of the first predetermined point or the second predetermined point calculated by the first and second calculation means is calculated by the third calculation means to be calculated by the third calculation means in another comparison determination. Can be used as tangent direction information for a given point, or
The direction information of the tangent line of the third predetermined point calculated by the third calculating means is used as the first predetermined point or the second predetermined value to be calculated by the first and second calculating means in another comparison determination. Can be used as tangent direction information for a given point, or
The direction information of one tangent of the first predetermined point and the second predetermined point calculated by the first and second calculating means is calculated by the first and second calculating means in another comparison determination. The tablet inspection apparatus according to means 1 or 2, characterized in that it can be used as direction information of the other tangent line among the first predetermined point and the second predetermined point to be performed.

手段3によれば、ある比較判定では第1の所定点、第2の所定点、或いは、第3の所定点の接線の向き情報であったものが、別の判定に際してはそれとは異なる所定点の接線の向き情報として利用することができる。このため、逐一接線の向き情報を演算する手間を省略することができ、結果として、検査速度の向上を図ることができる。   According to the means 3, what is information on the tangent direction of the first predetermined point, the second predetermined point, or the third predetermined point in a certain comparison determination is different from that in another determination. Can be used as tangent direction information. For this reason, the trouble of calculating the direction information of each tangent line can be omitted, and as a result, the inspection speed can be improved.

手段4.前記第3の所定点として、等間隔毎又は等角度間隔毎に少なくとも12通り設定されており、前記判定手段は、少なくとも12通りの第3の所定点に関し、接線の向き情報の比較判定を行うものであることを特徴とする手段1乃至3のいずれかに記載の錠剤検査装置。   Means 4. As the third predetermined point, at least 12 types are set at equal intervals or at equal angular intervals, and the determination unit performs comparison determination of tangent direction information regarding at least 12 third predetermined points. The tablet inspection device according to any one of means 1 to 3, wherein the tablet inspection device is a device.

手段4によれば、輪郭上の全範囲にわたってより均等な検査を行うことができ、偏った特定の部位のみが検査されることによる不具合を防止することができる。尚、第3の所定点は、少なくとも24通り設定されているのがより望ましく、少なくとも72通り設定されているのがさらに望ましく、少なくとも360通り設定されているのがより一層望ましい。また、検査精度の一層の向上を図るという趣旨からは、輪郭上の全ての点(画素点)につき、比較判定されることとするのが望ましい。   According to the means 4, it is possible to perform a more uniform inspection over the entire range on the contour, and it is possible to prevent problems caused by inspecting only specific biased parts. The third predetermined point is more preferably set at least 24, more preferably at least 72, and even more preferably at least 360. Further, for the purpose of further improving the inspection accuracy, it is desirable that all the points (pixel points) on the contour are compared and determined.

手段5.不良候補として判定された前記第3の所定点に基づき、欠けの領域の面積又は長さを求め、当該面積又は長さが予め定められた規定値を超えた場合に、不良品判定することを特徴とする手段1乃至4のいずれかに記載の錠剤検査装置。   Means 5. Based on the third predetermined point determined as a defect candidate, the area or length of the missing region is obtained, and when the area or length exceeds a predetermined specified value, the defective product is determined. The tablet inspection apparatus according to any one of means 1 to 4, which is characterized.

手段5によれば、誤差程度、或いは、許容できる程度の極めて微細な欠け等を不良と判定してしまうことがなく、結果として良品錯誤率の悪化を抑制することができる。   According to the means 5, it is not determined that an error or an extremely fine chip or the like of an allowable level is defective, and as a result, deterioration of the non-defective product error rate can be suppressed.

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

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

一実施形態におけるPTP包装機等の概略構成を示す模式図である。It is a schematic diagram which shows schematic structure, such as a PTP packaging machine in one Embodiment. (a)はPTPシートを示す斜視図であり、(b)はPTPシートを示す部分拡大断面図である。(A) is a perspective view which shows a PTP sheet, (b) is a partial expanded sectional view which shows a PTP sheet. 錠剤検査装置の電気的構成を示すブロック図である。It is a block diagram which shows the electric constitution of a tablet inspection apparatus. 「検査ルーチン」の一例を示すフローチャートである。It is a flowchart which shows an example of an "inspection routine." 検査対象となる錠剤の輪郭を示す模式図であり比較の概念を説明する図である。It is a schematic diagram which shows the outline of the tablet used as a test object, and is a figure explaining the concept of a comparison. (a)は錠剤の欠け等を示す錠剤の輪郭の模式図であり、(b)は拡大模式図である。(A) is a schematic diagram of the outline of a tablet showing chipping of the tablet and the like (b) is an enlarged schematic diagram. 別の実施形態を説明するための模式図である。It is a schematic diagram for demonstrating another embodiment. (a),(b)ともに、別の実施形態を説明するための模式図である。(A), (b) is a schematic diagram for demonstrating another embodiment.

以下、一実施形態について、図面を参照しつつ説明する。本実施形態では、錠剤検査装置をPTP包装機に装備することによって、PTP包装機においてPTPシートの不良が検査される。   Hereinafter, an embodiment will be described with reference to the drawings. In this embodiment, the PTP sheet is inspected for defects in the PTP packaging machine by installing the tablet inspection device in the PTP packaging machine.

図2(a),(b)に示すように、PTPシート1は、複数のポケット部2を備えた包装用フィルムとしての容器フィルム3と、ポケット部2を塞ぐようにして容器フィルム3に取着されたカバーフィルムとしての密封用フィルム4とを有している。   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.

容器フィルム3は、例えば、PP(ポリプロピレン)やPVC(ポリ塩化ビニル)等の比較的硬質で所定の剛性を有する熱可塑性樹脂材料によって構成され、光透過性を有している(ここでは、透明を呈している)。密封用フィルム4は、アルミニウムによって構成されている。   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.

また、各ポケット部2には、例えば円板形状(平面視円形状)をなす錠剤5が1つずつ収容されている。本実施形態の錠剤5は白色に近い色をしているが、色はこれに限定されるものではない。   Each pocket portion 2 accommodates one tablet 5 having, for example, a disc shape (circular shape in plan view). Although the tablet 5 of this embodiment has a color close to white, the color is not limited to this.

図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 fill each pocket part 2 with the tablet 5 automatically.

一方、帯状に形成された密封用フィルム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の移送経路に沿って、錠剤5の不良を検査するための錠剤検査装置21が配設されている。当該錠剤検査装置21は、錠剤5の周縁部の割れ、欠けの検出を主目的とする検査を行うものである。   Now, on the downstream side of the filling device 14 and on the upstream side of the film receiving roll 18 and the heating roll 19, a tablet inspection device 21 for inspecting a defect of the tablet 5 along the transfer path of the container film 3. Is arranged. The tablet inspection device 21 performs an inspection mainly for detecting cracks and chippings in the peripheral edge of the tablet 5.

上記検査を経て、容器フィルム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 a defective product is determined by the tablet inspection device 21, the PTP sheet that has been determined to be defective is separately discharged by a defective sheet discharge mechanism (not shown).

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

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

照明装置22は、容器フィルム3のポケット部2側に設けられており(図1参照)、面発光が可能となっている。   The illuminating device 22 is provided on the pocket portion 2 side of the container film 3 (see FIG. 1) and can emit light.

また、カメラ23は、容器フィルム3を介して照明装置22とは反対側(図1では上側)に設けられており、照明装置22から照射される光のうち、容器フィルム3を透過した光を撮像可能となっている。本実施形態では、カメラ23として、CCDカメラが採用されている。   The camera 23 is provided on the opposite side (upper side in FIG. 1) to the lighting device 22 through the container film 3, and the light transmitted from the lighting device 22 is transmitted through the container film 3. Imaging is possible. In the present embodiment, a CCD camera is employed as the camera 23.

このように、本実施形態では、照明装置22から照射される光が、容器フィルム3及び錠剤5を照らし、そこを透過した光が、カメラ23によって二次元撮像されるように構成されている。そして、カメラ23によって撮像された画像データは、カメラ23内部においてデジタル信号に変換された上で、デジタル信号の形で画像処理装置24に入力されるようになっている。   Thus, in this embodiment, the light irradiated from the illuminating device 22 illuminates the container film 3 and the tablet 5, and the light transmitted therethrough is configured to be two-dimensionally imaged by the camera 23. The image data captured by the camera 23 is converted into a digital signal inside the camera 23 and then input to the image processing device 24 in the form of a digital signal.

画像処理装置24は、図3に示すように、カメラ23に対応する画像メモリ41、二値化手段43、判定用メモリ44、検査結果及び統計データメモリ45、カメラタイミング制御手段46、並びに、CPU及び入出力インターフェース47などから構成され、後述するような画像データの処理や、不良判定(検査)等を実施可能となっている。   As shown in FIG. 3, the image processing device 24 includes an image memory 41 corresponding to the camera 23, a binarizing unit 43, a determination memory 44, an inspection result and statistical data memory 45, a camera timing control unit 46, and a CPU. And an input / output interface 47 and the like, and can perform image data processing, defect determination (inspection), and the like as described later.

カメラ23で撮像された二次元画像データは、デジタル信号に変換された後、対応する画像メモリ41に記憶される。また、画像データは、検査時において、二値化手段43により二値化された後、再度画像メモリ41に記憶される。   The two-dimensional image data captured by the camera 23 is converted into a digital signal and then stored in the corresponding image memory 41. Further, the image data is binarized by the binarizing means 43 at the time of inspection, and then stored in the image memory 41 again.

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 storage contents of the determination memory 44 to be described later, and send a control signal to the PTP packaging machine 7 or an operation signal from the PTP packaging machine 7. It is for transmitting and receiving various signals. 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, binary or grayscale image data, defect 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.

判定用メモリ44は、後述する比較、判定に際し用いられる接線の向き情報の許容範囲に関するデータが記憶されているとともに、不良品判定に際し用いられる欠け領域の判定規定値Soに関するデータも記憶されている。   The determination memory 44 stores data related to an allowable range of tangent direction information used for comparison and determination, which will be described later, and also stores data related to a predetermined defect area determination value So used for defective product determination. .

また、検査結果及び統計データメモリ45は、画像データに関する座標等のデータ、検査結果データ、及び、該検査結果データを確率統計的に処理した統計データなどを記憶するものである。これらの検査結果データや統計データは、CPU及び入出力インターフェース47の制御に基づき、前記判定用メモリ44に記憶されている各データと併せて、適宜モニタ25に表示させることができる。また、これらの検査結果データや統計データに基づいてCPU及び入出力インターフェース47がPTP包装機7に制御信号を送出することもできる。   The inspection result and statistical data memory 45 stores data such as coordinates relating to image data, inspection result data, statistical data obtained by probabilistically processing the inspection result data, and the like. These inspection result data and statistical data can be appropriately displayed on the monitor 25 together with each data stored in the determination memory 44 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 these inspection result data and statistical data.

さらに、カメラタイミング制御手段46は、カメラ23が撮像する画像データを、画像メモリ41に取り込むタイミングを制御するものである。かかるタイミングはPTP包装機7に設けられた図示しないエンコーダからの信号に基づいて制御され、容器フィルム3を所定量送るごとにカメラ23によるシート単位(例えば打ち抜かれるPTPシート単位)で撮像が行われる。   Further, 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 container film 3 is fed by a predetermined amount, imaging is performed in units of sheets by the camera 23 (for example, PTP sheets to be punched). .

次に、主として画像処理装置24において実行される不良検査(錠剤5の周縁部の欠けの検査)の手順について図4のフローチャート等に従って説明する。   Next, the procedure of the defect inspection (inspection of the chip of the peripheral portion of the tablet 5) executed mainly in the image processing device 24 will be described according to the flowchart of FIG.

同図に示すように、「検査ルーチン」において、まずステップS101では、二値化処理を実行する。具体的には、画像メモリ41に記憶された画像データに対し、二値化手段43にて二値化処理が行われる。   As shown in the figure, in the “inspection routine”, first, in step S101, binarization processing is executed. Specifically, the binarization unit 43 performs binarization processing on the image data stored in the image memory 41.

ステップS102では、塊処理を実行する。具体的には、ステップS101において得られた二値化データに基づき、錠剤5に相当する錠剤領域の認識を行う。   In step S102, chunk processing is executed. Specifically, the tablet area corresponding to the tablet 5 is recognized based on the binarized data obtained in step S101.

ステップS103では、ステップS102で得られた錠剤領域の輪郭形状を抽出する輪郭抽出処理を実行する。具体的には、錠剤領域の輪郭R1を構成する画素点の相対的な座標データが求められる。尚、ステップS103の処理ないし当該処理を行う主体(CPU)が「輪郭抽出処理手段」に相当する。   In step S103, a contour extraction process for extracting the contour shape of the tablet region obtained in step S102 is executed. Specifically, relative coordinate data of pixel points constituting the outline R1 of the tablet region is obtained. The processing in step S103 or the main body (CPU) that performs the processing corresponds to “contour extraction processing means”.

ステップS104では、前記抽出された輪郭R1のデータに基づき、各点における接線の向き情報を求める。   In step S104, tangent direction information at each point is obtained based on the extracted contour R1 data.

より詳しくは、例えば、先ず図5に示すように、錠剤5の輪郭Rの重心Gを特定する。また、当該重心Gから、前記輪郭R上の所定点BPにかけて基準直線BLを設定する。本例では、錠剤5が平面視において円形状をなしていることから、前記所定点BP、及び、基準直線BLは任意に設定され得る。その上で、今回判定の対象となる輪郭R上の所定点(第3の所定点P3)についての接線SL3の向き情報を求める。また、当該第3の所定点P3及び前記重心G間を結ぶ直線L3と、前記基準直線BLとのなす角度θ3に対し、微小角度(δ:例えばδ=5°)を増減した角度θ1(θ1=θ3+δ),θ2(θ2=θ3−δ)を求め、当該角度θ1,θ2毎に、それぞれ重心Gを通る直線L1,L2を引き、当該直線L1,L2と前記抽出された輪郭Rとの各交点を第1、第2の所定点P1,P2として設定する。そして、当該第1、第2の所定点P1,P2について、接線SL1,SL2の向き情報を求める。尚、各点P1,P2,P3の接線SL1,SL2,SL3の向き情報については、本例ではベクトル角度で表される。   More specifically, for example, as shown in FIG. 5, first, the center of gravity G of the contour R of the tablet 5 is specified. A reference straight line BL is set from the center of gravity G to a predetermined point BP on the contour R. In this example, since the tablet 5 has a circular shape in plan view, the predetermined point BP and the reference straight line BL can be arbitrarily set. Then, the direction information of the tangent SL3 about the predetermined point (third predetermined point P3) on the contour R to be determined this time is obtained. Further, an angle θ1 (θ1) obtained by increasing or decreasing a minute angle (δ: δ = 5 °, for example) with respect to an angle θ3 formed by the straight line L3 connecting the third predetermined point P3 and the center of gravity G and the reference straight line BL. = Θ3 + δ), θ2 (θ2 = θ3-δ), straight lines L1 and L2 passing through the center of gravity G are drawn for each angle θ1 and θ2, and each of the straight lines L1 and L2 and the extracted contour R is drawn. The intersection points are set as first and second predetermined points P1 and P2. Then, the orientation information of the tangent lines SL1 and SL2 is obtained for the first and second predetermined points P1 and P2. Note that the orientation information of the tangent lines SL1, SL2, and SL3 of the points P1, P2, and P3 is represented by a vector angle in this example.

また、当該ステップS104では、輪郭R1上の全ての点(画素点)が、第3の所定点P3として設定され、輪郭R1上の全ての点(画素点)につき、接線SL3の向き情報が演算される。また、当該第3の所定点P3に対応して、第1、第2の所定点P1,P2についても接線SL1,SL2の向き情報が演算される。但し、輪郭R1上の全ての点(画素点)につき、接線SL1,SL2,SL3の向き情報が求められる都合上、あるときにおいて第3の所定点P3であったものが、別の時点では、第1或いは第2の所定点P1,P2に相当するということも起こり得るし、あるときにおいて第1又は第2の所定点P1,P2であったものが、別の時点では、第3の所定点P3に相当するということも起こり得るし、あるときにおいて第1及び第2の所定点P1,P2のうちいずれか一方であったものが、別の時点では、第1及び第2の所定点P1,P2のうちいずれか他方に相当するということも起こり得る。このため、本実施形態では、あるときには第1の所定点P1、第2の所定点P2、或いは、第3の所定点P3の接線SL1,SL2,SL3の向き情報であったものが、別の判定に際してはそれとは異なる所定点P1,P2,P3の接線SL1,SL2,SL3の向き情報として利用することができるようになっている。   In step S104, all the points (pixel points) on the contour R1 are set as the third predetermined point P3, and the tangent SL3 orientation information is calculated for all the points (pixel points) on the contour R1. Is done. Corresponding to the third predetermined point P3, the orientation information of the tangents SL1 and SL2 is calculated also for the first and second predetermined points P1 and P2. However, for all points (pixel points) on the contour R1, the orientation information of the tangents SL1, SL2, and SL3 is obtained for the sake of convenience. It can also correspond to the first or second predetermined points P1 and P2, and at some point what was the first or second predetermined points P1 and P2 is a third place at another time. It may happen that it corresponds to the fixed point P3, and one of the first and second predetermined points P1 and P2 at one time may be the first and second predetermined points at another time. It may happen that one of P1 and P2 corresponds to the other. For this reason, in the present embodiment, in some cases, the direction information of the tangent lines SL1, SL2, SL3 of the first predetermined point P1, the second predetermined point P2, or the third predetermined point P3 At the time of determination, it can be used as orientation information of tangents SL1, SL2, and SL3 of predetermined points P1, P2, and P3 different from the above.

次に、ステップS105では、ステップS104で求めた複数通りの第3の所定点P3の接線SL3の向き情報につき、比較処理を実行する。すなわち、第3の所定点P3の接線SL3の向き情報と、第1の所定点P1の接線SL1の向き情報及び第2の所定点P2の接線SL2の向き情報とを比較し、第3の所定点P3の接線SL3の向き情報が、第1の所定点P1の接線SL1の向き情報及び第2の所定点P2の接線SL2の向き情報に基づく許容範囲を逸脱しているか否かを判定する(例えば、第3の所定点P3の接線SL3のベクトル角度が、第1の所定点P1の接線SL1のベクトル角度と第2の所定点P2の接線SL2のベクトル角度との間にあるか否かを判定する)。そして、許容範囲を逸脱している場合には、当該第3の所定点P3に関し不良候補として判定する。一方、第3の所定点P3の接線SL3の向き情報が、許容範囲を逸脱していない場合には、当該第3の所定点P3に関し不良候補として判定されることはない。   Next, in step S105, a comparison process is executed for the orientation information of the tangent line SL3 of the plurality of third predetermined points P3 obtained in step S104. That is, the direction information of the tangent SL3 of the third predetermined point P3 is compared with the direction information of the tangent SL1 of the first predetermined point P1 and the direction information of the tangent SL2 of the second predetermined point P2, and the third place It is determined whether or not the orientation information of the tangent SL3 of the fixed point P3 deviates from an allowable range based on the orientation information of the tangent SL1 of the first predetermined point P1 and the orientation information of the tangent SL2 of the second predetermined point P2 ( For example, whether the vector angle of the tangent SL3 of the third predetermined point P3 is between the vector angle of the tangent SL1 of the first predetermined point P1 and the vector angle of the tangent SL2 of the second predetermined point P2 or not. judge). And when it has deviated from the allowable range, the third predetermined point P3 is determined as a defect candidate. On the other hand, when the orientation information of the tangent SL3 of the third predetermined point P3 does not deviate from the allowable range, the third predetermined point P3 is not determined as a defect candidate.

例えば、図6(a),(b)に示すように、欠け51が生じていないとすると(図6(b)の2点鎖線参照)、第3の所定点P3aの接線SL3aの向き情報(ベクトル角度)は、第1の所定点P1の接線SL1の向き情報(ベクトル角度)と第2の所定点P2の接線SL2の向き(ベクトル角度)との間にある筈であり、許容範囲を逸脱しない筈である。これに対し、同図実線で示すように、欠け51が生じている領域においては(図6(b)の実線参照)、第3の所定点P3bの接線SL3bの向き情報(ベクトル角度)は、第1の所定点P1の接線SL1の向き情報(ベクトル角度)と第2の所定点P2の接線SL2の向き(ベクトル角度)との間にない、つまり、許容範囲を逸脱する筈である。ステップS105では、このような比較、判定処理を、ステップS104で求めた複数通りの第3の所定点P3の接線SL3の向き情報につき実行する。   For example, as shown in FIGS. 6 (a) and 6 (b), if no chip 51 is generated (see the two-dot chain line in FIG. 6 (b)), the orientation information (3) of the tangent SL3a of the third predetermined point P3a ( The vector angle) should be between the direction information (vector angle) of the tangent SL1 of the first predetermined point P1 and the direction (vector angle) of the tangent SL2 of the second predetermined point P2, and deviates from the allowable range. Don't be jealous. On the other hand, as shown by the solid line in the figure, in the region where the chip 51 is generated (see the solid line in FIG. 6B), the orientation information (vector angle) of the tangent SL3b of the third predetermined point P3b is: It is not between the direction information (vector angle) of the tangent SL1 of the first predetermined point P1 and the direction (vector angle) of the tangent SL2 of the second predetermined point P2, that is, it should depart from the allowable range. In step S105, such comparison and determination processing is executed for the orientation information of the tangent SL3 of the plurality of third predetermined points P3 obtained in step S104.

次に、ステップS106では、ステップS105の比較処理において、連続して不良候補として判定された第3の所定点P3に基づいて、欠け面積を算出する処理を実行する。上述のとおり、欠け51が生じている領域においては、第3の所定点P3の接線SL3の向き情報は、許容範囲を逸脱する筈である。このため、連続して不良候補として判定される第3の所定点P3の数が規定値を超えるような場合には、所定以上の大きさの欠け51が生じていると言える。   Next, in step S106, a process of calculating a chipped area is executed based on the third predetermined point P3 that is continuously determined as a defect candidate in the comparison process of step S105. As described above, in the region where the chip 51 is generated, the orientation information of the tangent SL3 of the third predetermined point P3 should deviate from the allowable range. For this reason, when the number of the third predetermined points P3 that are continuously determined as defective candidates exceeds a specified value, it can be said that a chip 51 having a size larger than a predetermined value has occurred.

続くステップS107では、ステップS106において算出した欠け領域の面積Sxが、予め定められた判定規定値So以下か否かを判定する。そして、欠け領域の面積Sxが判定規定値So以下の場合には、ステップS108において良品判定を行い、本処理を終了する。一方、欠け領域の面積Sxが判定規定値Soよりも大きいものが1つでもある場合には、ステップS109において不良判定を行い、本処理を一旦終了する。これらの検査結果は、モニタ25やPTP包装機7(不良シート排出機構を含む)に出力される。   In subsequent step S107, it is determined whether or not the area Sx of the missing region calculated in step S106 is equal to or smaller than a predetermined determination specified value So. If the area Sx of the missing region is equal to or smaller than the determination specified value So, a non-defective product determination is performed in step S108, and this process ends. On the other hand, if there is at least one missing area Sx larger than the specified determination value So, a failure determination is made in step S109, and the 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).

なお、上記ステップS101からステップS109の処理は、PTPフィルム20上の各錠剤5について実行され、後にPTPシート1となって裁断されたときに同一シート上に一つでも不良判定された錠剤5が含まれているときは、そのシートは不良と判断され排出される。   Note that the processing from step S101 to step S109 is executed for each tablet 5 on the PTP film 20, and when one of the tablets 5 determined as defective on the same sheet is cut into the PTP sheet 1 later. If it is included, the sheet is judged to be defective and discharged.

以上詳述したように、本実施形態によれば、第3の所定点P3の接線SL3の向き情報が、第1の所定点P1の接線SL1の向き情報及び第2の所定点P2の接線SL2の向き情報に基づく許容範囲を逸脱している場合に、当該第3の所定点P3に関し不良候補として判定される。また、第1〜第3の所定点P1〜P3の接線SL1〜SL3の向き情報については錠剤5の輪郭Rに沿って複数通り演算され、前記比較判定は、複数通り(全ての点の)の第3の所定点P3に関し行われる。このように、本実施形態では、画像データに基づき抽出された実際の錠剤5の輪郭Rに基づいて判定を行うことができ、従来技術で説明したような基準錠剤の輪郭や、各点毎の設定角のデータを別途用意しておく必要がない。このため、検査対象となる錠剤5が変更された場合であっても柔軟かつ円滑に対応することができる一方で、正確な検査を行うことができる。   As described above in detail, according to the present embodiment, the orientation information of the tangent SL3 of the third predetermined point P3 is the orientation information of the tangent SL1 of the first predetermined point P1 and the tangent SL2 of the second predetermined point P2. When it deviates from the allowable range based on the orientation information, the third predetermined point P3 is determined as a defect candidate. Further, the direction information of the tangent lines SL1 to SL3 of the first to third predetermined points P1 to P3 is calculated in a plurality of ways along the outline R of the tablet 5, and the comparison determination is performed in a plurality of ways (for all points). This is performed with respect to the third predetermined point P3. Thus, in this embodiment, determination can be performed based on the contour R of the actual tablet 5 extracted based on the image data, and the contour of the reference tablet as described in the prior art, There is no need to prepare setting angle data separately. For this reason, even if the tablet 5 to be inspected is changed, it is possible to respond flexibly and smoothly, while performing an accurate inspection.

また、錠剤5が、ポケット部2内において若干傾いた状態で収容されていたとしても、本実施形態では、錠剤5の輪郭Rの連続性という見地から判定を行うこととしている。そのため、錠剤5の姿勢が都度異なっていたとしても、それによって誤判定を起こすことはない。この点においても、不良候補の判定がより正確なものとなり、ひいては検査精度の飛躍的な向上を図ることができる。   Even if the tablet 5 is accommodated in the pocket portion 2 in a slightly tilted state, in the present embodiment, the determination is made from the viewpoint of the continuity of the contour R of the tablet 5. Therefore, even if the posture of the tablet 5 is different each time, no erroneous determination is caused thereby. Also in this respect, the determination of the defect candidate becomes more accurate, and as a result, the inspection accuracy can be drastically improved.

また、本実施形態では、第3の所定点P3が、第1の所定点P1と第2の所定点P2の丁度中間位置に設定される。つまり、第1の所定点P1及び第3の所定点P3と、第3の所定点P3及び第2の所定点P2とが、等間隔又は等角度間隔となるよう設定される。従って、第3の所定点が、第1の所定点側或いは第2の所定点側に偏って設定される場合に比べ、より一層精度の高い検査を行うことができる。   In the present embodiment, the third predetermined point P3 is set at an intermediate position between the first predetermined point P1 and the second predetermined point P2. That is, the first predetermined point P1 and the third predetermined point P3, and the third predetermined point P3 and the second predetermined point P2 are set to be at equal intervals or equal angular intervals. Therefore, it is possible to perform inspection with higher accuracy than when the third predetermined point is set to be biased toward the first predetermined point or the second predetermined point.

さらに、本実施形態では、輪郭R1上の全ての点(画素点)が、第3の所定点P3として設定され、輪郭R1上の全ての点(画素点)につき、接線SL3の向き情報が演算される。また、当該第3の所定点P3に対応して、第1、第2の所定点P1,P2についても接線SL1,SL2の向き情報が演算され、比較、判定に供される。このような細やかな設定を行うことで、あるときにおいて第1及び第2の所定点P1,P2のうちいずれか一方であったものが、別の時点では、第1及び第2の所定点P1,P2のうちいずれか他方に相当するということも起こり得る。このため、あるときには第1の所定点P1、第2の所定点P2、或いは、第3の所定点P3の接線SL1,SL2,SL3の向き情報であったものが、別の判定に際してはそれとは異なる所定点P1,P2,P3の接線SL1,SL2,SL3の向き情報として利用することができる。このため、逐一接線の向き情報を演算する手間を省略することができ、結果として、検査速度の向上を図ることができる。また、輪郭R1上の全範囲にわたってより均等な検査を行うことができ、偏った特定の部位のみが検査されることによる不具合を防止することができる。   Further, in the present embodiment, all points (pixel points) on the contour R1 are set as the third predetermined point P3, and the orientation information of the tangent SL3 is calculated for all the points (pixel points) on the contour R1. Is done. Corresponding to the third predetermined point P3, the direction information of the tangents SL1 and SL2 is calculated for the first and second predetermined points P1 and P2, and is used for comparison and determination. By performing such detailed setting, what was one of the first and second predetermined points P1 and P2 at one time is different from the first and second predetermined points P1 at another time. , P2 may correspond to the other. For this reason, the orientation information of the tangent lines SL1, SL2, and SL3 of the first predetermined point P1, the second predetermined point P2, or the third predetermined point P3 is sometimes different from that in another determination. It can be used as orientation information of tangent lines SL1, SL2, and SL3 of different predetermined points P1, P2, and P3. For this reason, the trouble of calculating the direction information of each tangent line can be omitted, and as a result, the inspection speed can be improved. In addition, more uniform inspection can be performed over the entire range on the contour R1, and problems caused by inspecting only specific biased parts can be prevented.

以上説明した実施形態において、例えば、次のように構成の一部を適宜変更して実施することも可能である。勿論、以下において例示しない他の変更例も当然可能である。   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)上記実施形態では、説明の便宜上、錠剤5の輪郭Rの重心Gや、基準直線BLを設定することとしている。しかしながら、各所定点P1〜P3毎の接線SL1〜SL3の向き情報の相対的な比較を行うように構成するのであれば、わざわざ重心Gや、基準直線BL等を設定しなくてもよい。   (A) In the above embodiment, for convenience of explanation, the center of gravity G of the contour R of the tablet 5 and the reference straight line BL are set. However, if it is configured to perform relative comparison of the orientation information of the tangent lines SL1 to SL3 for each of the predetermined points P1 to P3, the center of gravity G, the reference straight line BL, and the like need not be set.

(b)上記実施形態では、平板円板状の錠剤5を検査する場合に具体化することとしている。これに対し、例えば中央部と周縁部とで厚みが異なる錠剤、いわゆるレンズ錠等であっても検査を行うことができる。   (B) In the said embodiment, when inspecting the flat disk-shaped tablet 5, it shall be materialized. On the other hand, for example, it is possible to inspect even tablets such as so-called lens locks having different thicknesses at the central portion and the peripheral portion.

(c)また、平面視非円形状の錠剤であっても、検査することができる。例えば、図7に示すように、平面視楕円形状の錠剤5Aや、平面視長円形状の錠剤であっても検査可能である。例えば、同図に示すような平面視楕円形状をなす錠剤5Aの場合において基準直線BLが設定される場合には、重心又は中心から最も距離のある点BPを通る直線[或いは逆に、最も近い点を通る直線(短径)]が基準直線BLとして好適に設定される。   (C) In addition, even a non-circular tablet in plan view can be inspected. For example, as shown in FIG. 7, even a tablet 5A having an elliptical shape in plan view or a tablet having an elliptical shape in plan view can be inspected. For example, in the case of the tablet 5A having an elliptical shape in plan view as shown in the figure, when the reference straight line BL is set, the straight line passing through the point BP having the longest distance from the center of gravity or the center [or conversely, the closest A straight line passing through the point (minor axis)] is suitably set as the reference straight line BL.

(d)さらに、図8(a)に示す平面視略三角形状等の錠剤5Bや、図8(b)に示すトローチ錠等に代表される円環状の錠剤5Cであっても検査可能である。後者の場合、外周縁の輪郭のみならず、内周縁の輪郭についても検査することができる。   (D) Furthermore, even a tablet 5B having a substantially triangular shape in a plan view shown in FIG. 8A or an annular tablet 5C typified by a troche tablet shown in FIG. 8B can be inspected. . In the latter case, not only the contour of the outer peripheral edge but also the contour of the inner peripheral edge can be inspected.

(e)上記実施形態では、照明装置22から照射され、容器フィルム3を透過した透過光をカメラ23により撮像し、錠剤5の検査を行う構成となっている。これに限らず、錠剤5から反射した反射光を撮像し、検査を行う構成としてもよい。反射光を利用した検査によれば、容器フィルム3に密封用フィルム4が取着された後段階においても、錠剤5の検査を行うことが可能となる。   (E) In the said embodiment, it has the structure which inspects the tablet 5 by imaging with the camera 23 the transmitted light irradiated from the illuminating device 22 and permeate | transmitted the container film 3. FIG. However, the present invention is not limited thereto, and a configuration may be adopted in which reflected light reflected from the tablet 5 is imaged and the inspection is performed. According to the inspection using reflected light, the tablet 5 can be inspected even after the sealing film 4 is attached to the container film 3.

(f)上記実施形態では、ステップS101で二値化処理を実行し、ステップS102で塊処理を実行した上で、ステップS103において、輪郭抽出処理を実行することとしているが、これとは別の手法で輪郭抽出処理を実行してもよい。例えば、上記二値化処理に代えて、いわゆる微分処理を実行することで輪郭抽出処理を実行することもできる。   (F) In the above embodiment, binarization processing is executed in step S101, chunk processing is executed in step S102, and contour extraction processing is executed in step S103. The contour extraction process may be executed by a technique. For example, instead of the binarization process, the contour extraction process can be executed by executing a so-called differentiation process.

(g)上記実施形態では、欠け領域の面積Sxが判定規定値Soよりも大きい場合に、不良品判定を行うこととしているが、欠け領域の長さ(周囲長)が規定値よりも大きい場合に、不良品判定を行うこととしてもよい。   (G) In the embodiment described above, defective product determination is performed when the area Sx of the chipped region is larger than the determination specified value So, but the length (peripheral length) of the chipped region is larger than the specified value. In addition, the defective product may be determined.

(h)上記実施形態では、輪郭R1上の全ての点(画素点)が、第3の所定点P3として設定され、比較、判定が行われることとなっているが、必ずしも全ての点(画素点)につき比較が行われなくてもよい。但し、検査精度の観点からは、第3の所定点は、少なくとも24通り(輪郭Rが円形状の場合には15°間隔で)設定されているのがより望ましく、少なくとも72通り(輪郭Rが円形状の場合には5°間隔で)設定されているのがさらに望ましく、少なくとも360通り(輪郭Rが円形状の場合には1°間隔で)設定されているのがより一層望ましい。   (H) In the above embodiment, all the points (pixel points) on the contour R1 are set as the third predetermined point P3, and the comparison and determination are performed. The comparison does not have to be performed. However, from the viewpoint of inspection accuracy, it is more preferable that the third predetermined points are set at least 24 (at intervals of 15 ° when the contour R is circular), and at least 72 (the contour R is It is more desirable that the angle is set at 5 ° intervals in the case of a circular shape, and it is even more desirable that at least 360 patterns are set (at intervals of 1 ° when the contour R is circular).

1…PTPシート、2…ポケット部、3…容器フィルム、4…密封用フィルム、5…錠剤、7…PTP包装機、21…錠剤検査装置、22…照明装置、23…カメラ、24…画像処理装置、44…判定用メモリ。   DESCRIPTION OF SYMBOLS 1 ... PTP sheet, 2 ... Pocket part, 3 ... Container film, 4 ... Sealing film, 5 ... Tablet, 7 ... PTP packaging machine, 21 ... Tablet inspection device, 22 ... Illumination device, 23 ... Camera, 24 ... Image processing Device, 44 ... Memory for determination.

Claims (6)

PTPシートの製造過程において、搬送される帯状の包装用フィルムに形成されたポケット部に収容された錠剤を検査する錠剤検査装置であって、
前記ポケット部に収容された錠剤に対し光を照射可能な照明手段と、
前記照明手段により照明された範囲内の錠剤を撮像可能な撮像手段と、
前記撮像手段から出力される画像信号を処理する画像処理装置とを備え、
前記画像処理装置は、
前記画像信号から得た画像データに基づき、前記錠剤の輪郭を抽出する輪郭抽出手段と、
前記錠剤の輪郭上における第1の所定点の接線の向き情報を求めるとともに、前記錠剤の輪郭上における第2の所定点の接線の向き情報を演算する第1及び第2演算手段と、
前記錠剤の輪郭上において、前記第1の所定点及び第2の所定点で挟まれた第3の所定点の接線の向き情報を求める第3演算手段と、
前記第3の所定点の接線の向き情報と、前記第1の所定点の接線の向き情報及び第2の所定点の接線の向き情報とを比較し、前記第3の所定点の接線の向き情報が、前記第1の所定点の接線の向き情報及び第2の所定点の接線の向き情報に基づく許容範囲を逸脱している場合に、当該第3の所定点に関し不良候補として判定する判定手段と、を備え、
前記第1及び第2演算手段は、前記錠剤の輪郭上の複数通りの第1の所定点及び第2の所定点につき接線の向き情報を演算するものであるとともに、前記第3演算手段も、前記錠剤の輪郭上の複数通りの第3の所定点につき接線の向き情報を演算するものであり、前記判定手段は、前記複数通りの第3の所定点に関し、接線の向き情報の比較判定を行うものであることを特徴とする錠剤検査装置。
In the manufacturing process of the PTP sheet, a tablet inspection device for inspecting a tablet contained in a pocket portion formed in a belt-shaped packaging film to be conveyed,
Illumination means capable of irradiating light to the tablet accommodated in the pocket portion,
Imaging means capable of imaging tablets in a range illuminated by the illumination means;
An image processing device for processing an image signal output from the imaging means,
The image processing apparatus includes:
Based on image data obtained from the image signal, contour extracting means for extracting the contour of the tablet;
First and second calculating means for calculating direction information of a tangent of a first predetermined point on the outline of the tablet and calculating direction information of a tangent of a second predetermined point on the outline of the tablet;
A third computing means for obtaining tangent direction information of a third predetermined point sandwiched between the first predetermined point and the second predetermined point on the outline of the tablet;
The direction information of the tangent of the third predetermined point is compared with the direction information of the tangent of the first predetermined point and the direction information of the tangent of the second predetermined point, and the direction of the tangent of the third predetermined point When the information deviates from the allowable range based on the tangent direction information of the first predetermined point and the tangent direction information of the second predetermined point, the determination for determining the third predetermined point as a defect candidate Means, and
The first and second calculation means calculate tangential direction information for a plurality of first predetermined points and second predetermined points on the outline of the tablet, and the third calculation means also Tangential direction information is calculated for a plurality of third predetermined points on the outline of the tablet, and the determination means performs a comparison determination of the tangential direction information for the plurality of third predetermined points. A tablet inspection apparatus characterized by being performed.
前記第1の所定点及び第3の所定点と、前記第3の所定点及び第2の所定点とが、等間隔又は等角度間隔となるよう設定されることを特徴とする請求項1に記載の錠剤検査装置。   2. The first predetermined point and the third predetermined point, and the third predetermined point and the second predetermined point are set to be at equal intervals or equal angular intervals. The tablet inspection apparatus described. 前記第1及び第2演算手段にて演算された第1の所定点若しくは第2の所定点の接線の向き情報を、別の比較判定に際し前記第3演算手段にて演算されるべき第3の所定点の接線の向き情報として利用可能、又は、
前記第3演算手段にて演算された第3の所定点の接線の向き情報を、別の比較判定に際し前記第1及び第2演算手段にて演算されるべき第1の所定点若しくは第2の所定点の接線の向き情報として利用可能、又は、
前記第1及び第2演算手段にて演算された第1の所定点及び第2の所定点のうち一方の接線の向き情報を、別の比較判定に際し前記第1及び第2演算手段にて演算されるべき第1の所定点及び第2の所定点のうち他方の接線の向き情報として利用可能となっていることを特徴とする請求項1又は2に記載の錠剤検査装置。
The direction information of the tangent line of the first predetermined point or the second predetermined point calculated by the first and second calculation means is calculated by the third calculation means to be calculated by the third calculation means in another comparison determination. Can be used as tangent direction information for a given point, or
The direction information of the tangent line of the third predetermined point calculated by the third calculating means is used as the first predetermined point or the second predetermined value to be calculated by the first and second calculating means in another comparison determination. Can be used as tangent direction information for a given point, or
The direction information of one tangent of the first predetermined point and the second predetermined point calculated by the first and second calculating means is calculated by the first and second calculating means in another comparison determination. The tablet inspection apparatus according to claim 1, wherein the tablet inspection apparatus can be used as direction information of the other tangent line of the first predetermined point and the second predetermined point to be performed.
前記第3の所定点として、等間隔毎又は等角度間隔毎に少なくとも12通り設定されており、前記判定手段は、少なくとも12通りの第3の所定点に関し、接線の向き情報の比較判定を行うものであることを特徴とする請求項1乃至3のいずれかに記載の錠剤検査装置。   As the third predetermined point, at least 12 types are set at equal intervals or at equal angular intervals, and the determination unit performs comparison determination of tangent direction information regarding at least 12 third predetermined points. The tablet inspection device according to claim 1, wherein the tablet inspection device is a device. 不良候補として判定された前記第3の所定点に基づき、欠けの領域の面積又は長さを求め、当該面積又は長さが予め定められた規定値を超えた場合に、不良品判定することを特徴とする請求項1乃至4のいずれかに記載の錠剤検査装置。   Based on the third predetermined point determined as a defect candidate, the area or length of the missing region is obtained, and when the area or length exceeds a predetermined specified value, the defective product is determined. The tablet inspection device according to any one of claims 1 to 4, wherein 請求項1乃至5のいずれかに記載の錠剤検査装置を備えることを特徴とするPTP包装機。   A PTP packaging machine comprising the tablet inspection device according to claim 1.
JP2011121197A 2011-05-31 2011-05-31 Tablet inspection device and PTP packaging machine Active JP5546021B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011121197A JP5546021B2 (en) 2011-05-31 2011-05-31 Tablet inspection device and PTP packaging machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011121197A JP5546021B2 (en) 2011-05-31 2011-05-31 Tablet inspection device and PTP packaging machine

Publications (2)

Publication Number Publication Date
JP2012247376A JP2012247376A (en) 2012-12-13
JP5546021B2 true JP5546021B2 (en) 2014-07-09

Family

ID=47467923

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011121197A Active JP5546021B2 (en) 2011-05-31 2011-05-31 Tablet inspection device and PTP packaging machine

Country Status (1)

Country Link
JP (1) JP5546021B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5993358B2 (en) * 2013-10-29 2016-09-14 Ckd株式会社 Inspection device and PTP packaging machine
JP6763064B1 (en) * 2019-06-11 2020-09-30 Ckd株式会社 Inspection equipment and packaging manufacturing equipment

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01207878A (en) * 1988-02-16 1989-08-21 Fujitsu Ltd Contour inspection device
JP3132857B2 (en) * 1991-10-21 2001-02-05 松下電器産業株式会社 Cream solder print inspection device and cream solder print inspection method
JPH11132743A (en) * 1997-10-31 1999-05-21 Meidensha Corp Defect inspecting device by image signal processing
JP2001165636A (en) * 1999-12-10 2001-06-22 Japan Radio Co Ltd Method and device for detecting pattern defect of printed board wiring pattern
JP2002203233A (en) * 2000-10-23 2002-07-19 Omron Corp Method and apparatus for inspection
JP3653063B2 (en) * 2002-06-07 2005-05-25 三菱重工業株式会社 Agricultural product quality judgment device and agricultural product quality judgment method
JP2005172608A (en) * 2003-12-11 2005-06-30 Nichizou Imc:Kk Appearance inspecting apparatus
JP4684172B2 (en) * 2006-06-06 2011-05-18 シーケーディ株式会社 Appearance inspection apparatus and PTP sheet manufacturing apparatus
JP2011007728A (en) * 2009-06-29 2011-01-13 Seiko Epson Corp Method, apparatus and program for defect detection
JP5529074B2 (en) * 2011-05-12 2014-06-25 Ckd株式会社 Tablet inspection device and PTP packaging machine

Also Published As

Publication number Publication date
JP2012247376A (en) 2012-12-13

Similar Documents

Publication Publication Date Title
CN109844505B (en) Burn inspection device for glass container
JP4368808B2 (en) Appearance inspection device and PTP packaging machine
KR102265301B1 (en) Appearance Inspection Device and Blister Packing Machine
JP6062396B2 (en) Inspection system and PTP packaging machine
EP3605010B1 (en) Method and device for detecting defects in the closure of encapsulated vials
JP4647643B2 (en) Defect inspection device and PTP packaging machine
JP5529074B2 (en) Tablet inspection device and PTP packaging machine
JP6613353B2 (en) Appearance inspection device and blister packaging machine
JP5161905B2 (en) Tablet inspection device and PTP packaging machine
JP5352615B2 (en) Tablet inspection device and PTP packaging machine
JP5546021B2 (en) Tablet inspection device and PTP packaging machine
CN105937883B (en) Device and method for inspecting closures
JP5074476B2 (en) Tablet inspection device and PTP packaging machine
JP6188620B2 (en) Inspection device and PTP packaging machine
JP4477516B2 (en) Inspection device and PTP packaging machine
JP4684172B2 (en) Appearance inspection apparatus and PTP sheet manufacturing apparatus
JP2011209085A (en) Tablet inspection apparatus and ptp packaging machine
JP2009276102A (en) Pocket shape inspecting device
JP4368813B2 (en) Inspection device and PTP packaging machine
JP4684173B2 (en) Appearance inspection apparatus and PTP sheet manufacturing apparatus
JP6983604B2 (en) Container mouth inspection device and container mouth inspection method
EP3859319A1 (en) Manufacturing device of package and manufacturing method of package
JP2010133824A (en) Cap inspection apparatus and cap inspection method
JP4397850B2 (en) Inspection device, correction data generation device, and PTP packaging machine
JP5679650B2 (en) Tablet inspection device and PTP packaging machine

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20130107

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20130918

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20131001

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20140512

R150 Certificate of patent or registration of utility model

Ref document number: 5546021

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150