JP2007256132A - Inspection device and ptp-sheet manufacturing apparatus - Google Patents

Inspection device and ptp-sheet manufacturing apparatus Download PDF

Info

Publication number
JP2007256132A
JP2007256132A JP2006081993A JP2006081993A JP2007256132A JP 2007256132 A JP2007256132 A JP 2007256132A JP 2006081993 A JP2006081993 A JP 2006081993A JP 2006081993 A JP2006081993 A JP 2006081993A JP 2007256132 A JP2007256132 A JP 2007256132A
Authority
JP
Japan
Prior art keywords
area
inspection
determination
specifying
region
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
JP2006081993A
Other languages
Japanese (ja)
Other versions
JP4566940B2 (en
Inventor
Yukihiro Taguchi
幸弘 田口
Takashi Wakita
隆司 脇田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
CKD Corp
Original Assignee
CKD Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by CKD Corp filed Critical CKD Corp
Priority to JP2006081993A priority Critical patent/JP4566940B2/en
Publication of JP2007256132A publication Critical patent/JP2007256132A/en
Application granted granted Critical
Publication of JP4566940B2 publication Critical patent/JP4566940B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Abstract

<P>PROBLEM TO BE SOLVED: To provide an inspection device for appropriately determining the inferior place of an inspection target such as the adhesion region of linear foreign matters or the like for inspecting the inspection target, and to provide a PTP-sheet manufacturing apparatus that uses the inspection device. <P>SOLUTION: Respective brightness data of a threshold L1 for relatively specifying a region high in the possibility of foreign matters with high sensitivity and a threshold L2 for relatively specifying a region high in the possibility of the foreign matter with low sensitivity are binarized to form two binarized images (S10). Next, lump processing is performed, to specify (M) connection regions L1(0)-L1(M-1) from one binarized image (L1 image). Furthermore, (N) connection regions L2(0)-L2(N-1) are specified from the other binarized image (L2 image) (S20). Then, a connection region L1(y), containing a connection region L2(x), is extracted, and the foreign matter of a connection region L1(y) is to determine, on the basis of the circumferential length of the connection region L1(y) (S30). <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

本発明は、PTPシートの製造に際し、検査対象の画像データに基づき外観検査を行う検査装置及び、当該検査装置を具備してなるPTPシートの製造装置に関する。   The present invention relates to an inspection apparatus that performs an appearance inspection based on image data to be inspected when manufacturing a PTP sheet, and a PTP sheet manufacturing apparatus that includes the inspection apparatus.

一般に、PTPシートの製造過程にあっては、ポケット部に錠剤等が充填された後、ポケット部を密封するためのカバーフィルムの取着前や取着後に、カメラなどによって充填された錠剤等が撮像され、異物の混入等の異常が検査される。そして、異常判定されたPTPシートは不良品として排出される。   In general, in the process of manufacturing a PTP sheet, after a tablet or the like is filled in a pocket portion, a tablet or the like filled with a camera or the like is attached before or after attachment of a cover film for sealing the pocket portion. An image is taken and inspected for abnormalities such as contamination. Then, the PTP sheet determined to be abnormal is discharged as a defective product.

このような外観検査において、錠剤表面の各部分を別の閾値で2値化することによって、より高精度な検査を可能とする技術も知られている(例えば、特許文献1参照)。
特開2001−33390号公報
In such an appearance inspection, there is also known a technique that enables a more accurate inspection by binarizing each part of the tablet surface with different threshold values (see, for example, Patent Document 1).
JP 2001-33390 A

ところが、従来技術は、毛髪などの線状異物を検出するという点において、十分であるとは言えなかった。   However, the prior art has not been sufficient in terms of detecting linear foreign matters such as hair.

すなわち、細い線状異物を検出する場合、従来の撮影分解能では不十分であり、撮影分解能を高くすれば、検査装置のコストを増大させることになり、また、画像処理に要する時間が長くなってしまう。一方、上記2値化のための閾値によって調整する手法もあるが、細い線状異物を検出可能な閾値を設定すると、異物以外のノイズ成分などによっても不良品判定してしまうおそれがあり、良品錯誤率(良品を誤って不良品と判定してしまう確率)を増大させてしまうことが懸念される。   That is, when detecting a thin linear foreign object, the conventional imaging resolution is not sufficient, and increasing the imaging resolution increases the cost of the inspection apparatus, and also increases the time required for image processing. End up. On the other hand, there is a method of adjusting by the threshold value for binarization, but if a threshold value that can detect a thin linear foreign object is set, a defective product may be determined by noise components other than the foreign object. There is a concern that the error rate (probability that a non-defective product is erroneously determined as a defective product) is increased.

本発明は、上述した問題を解決するためになされたものであり、その目的は、線状異物の付着部位等、検査対象の不良箇所を適切に判定して検査対象を検査可能な検査装置、及び、当該検査装置を具備するPTPシートの製造装置を提供することにある。   The present invention has been made in order to solve the above-described problem, and the purpose thereof is an inspection apparatus capable of appropriately inspecting a defective portion of an inspection target such as an attachment site of a linear foreign object and inspecting the inspection target, And it is providing the manufacturing apparatus of the PTP sheet | seat which comprises the said test | inspection apparatus.

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

手段1.検査対象を撮像する撮像手段と、
前記撮像手段による撮像結果に基づく画像データを用い、前記検査対象の検査を行う検査装置において、
前記検査対象の不良箇所となり得る判定領域を前記画像データから相対的に高感度で特定するための第1閾値に基づき、前記判定領域としての第1領域を特定する第1領域特定手段と、
前記検査対象の不良箇所となり得る判定領域を前記画像データから相対的に低感度で特定するための第2閾値に基づき、前記判定領域としての第2領域を特定する第2領域特定手段と、
前記第1領域特定手段にて特定される前記第1領域の良/不良を、当該第1領域と前記第2領域特定手段にて特定される前記第2領域との包含関係に基づいて判定することにより、前記検査対象の検査を行う検査手段とを備えていることを特徴とする検査装置。
Means 1. An imaging means for imaging the inspection object;
In the inspection apparatus for inspecting the inspection object using image data based on the imaging result by the imaging means,
A first area specifying means for specifying a first area as the determination area based on a first threshold for specifying a determination area that can be a defective portion of the inspection object with relatively high sensitivity from the image data;
A second area specifying means for specifying a second area as the determination area based on a second threshold value for specifying a determination area that can be a defective portion of the inspection object with relatively low sensitivity from the image data;
The quality of the first area specified by the first area specifying means is determined based on the inclusion relationship between the first area and the second area specified by the second area specifying means. By this, the inspection apparatus characterized by including the test | inspection means which test | inspects the said test object.

手段1では、検査対象を撮像し、その画像データから、第1閾値に基づいて判定領域としての第1領域を特定する。また、その画像データから、第2閾値に基づいて判定領域としての第2領域を特定する。具体的には、第1及び第2閾値でそれぞれ、画像データを二値化処理し、連結領域を抽出してラベリングするという具合である。もっとも、二値化を行うことは必須ではなく、例えば閾値を下回る(あるいは上回る)領域の画素のみを「0」とし、閾値を上回る(あるいは下回る)領域の画素については当初の画像データのまま(多値データのまま)として、連結領域を抽出するようにしてもよい。   In the means 1, the inspection object is imaged, and the first area as the determination area is specified based on the first threshold value from the image data. Further, the second area as the determination area is specified from the image data based on the second threshold value. Specifically, the binarization processing is performed on the image data with the first and second threshold values, and the connected regions are extracted and labeled. However, binarization is not indispensable. For example, only pixels in a region below (or above) a threshold value are set to “0”, and pixels in a region above (or below) a threshold value remain as the original image data ( As a multivalued data), a connected area may be extracted.

ここで、判定領域は、検査対象の不良箇所となり得る領域であり、例えば異物と予想される領域である。判定領域としての第1領域は、上記第1閾値によって画像データから相対的に高感度で特定される。また、判定領域としての第2領域は、上記第2閾値によって画像データから相対的に低感度で特定される。   Here, the determination area is an area that can be a defective part to be inspected, for example, an area that is expected to be a foreign object. The first region as the determination region is specified with relatively high sensitivity from the image data by the first threshold value. The second area as the determination area is specified with relatively low sensitivity from the image data by the second threshold value.

手段1によれば、相対的に高感度で特定される第1領域の良/不良が、第1領域と第2領域との包含関係に基づいて判定される。高感度で特定される第1領域の良/不良を判定すれば、例えば毛髪等の線状異物も異物として判定することができる。一方で、第1領域と第2領域との包含関係に基づけば、不良箇所である可能性の高い第1領域のみを判定の対象とすることができる。すなわち、低感度で特定される第2領域が第1領域に包含される場合は、当該第1領域が異物等の付着した不良箇所である可能性が高くなる。これにより、良品錯誤率の増大を抑制することができる。その結果、線状異物の付着部位等、検査対象の不良箇所を適切に判定して検査対象を検査することができる。   According to the means 1, the quality of the first area specified with relatively high sensitivity is determined based on the inclusion relationship between the first area and the second area. If the quality of the first region specified with high sensitivity is determined, for example, a linear foreign object such as hair can also be determined as a foreign object. On the other hand, based on the inclusion relationship between the first region and the second region, only the first region that is highly likely to be a defective portion can be determined. That is, when the second region specified with low sensitivity is included in the first region, there is a high possibility that the first region is a defective portion to which foreign matter or the like is attached. Thereby, the increase in the non-defective product error rate can be suppressed. As a result, it is possible to inspect the inspection target by appropriately determining the defective portion of the inspection target such as the adhesion part of the linear foreign matter.

なお、第1領域と第2領域との包含関係の判断手法は特に限定されるものではない。通常は、第1領域の内部に第2領域が存在するか否かで判断することができる。もっとも、後述するように微分データを画像データとする場合、異物等の輪郭部分が強調されることにより、第1領域や第2領域が、ある領域の輪郭(の一部)として特定されることもあり得る。その場合には、輪郭の内部まで含めて包含関係を判断するようにしてもよいし、輪郭に外接あるいは内接する矩形領域等によって包含関係を判断するようにしてもよい。   Note that the method for determining the inclusion relationship between the first region and the second region is not particularly limited. Usually, it can be determined by whether or not the second area exists inside the first area. However, when differential data is used as image data, as will be described later, the first region and the second region are specified as (part of) the contour of a certain region by emphasizing the contour portion of a foreign substance or the like. There is also a possibility. In that case, the inclusion relationship may be determined including the inside of the contour, or the inclusion relationship may be determined by a circumscribed or inscribed rectangular region or the like.

手段2.検査対象を撮像する撮像手段と、
前記撮像手段による撮像結果に基づく画像データを用い、前記検査対象の検査を行う検査装置において、
前記検査対象の不良箇所となり得る判定領域を前記画像データから相対的に高感度で特定するための第1閾値に基づき、前記判定領域としての第1領域を特定する第1領域特定手段と、
前記検査対象の不良箇所となり得る判定領域を前記画像データから相対的に低感度で特定するための第2閾値に基づき、前記判定領域としての第2領域を特定する第2領域特定手段と、
該第2領域特定手段にて特定される前記第2領域を包含する領域であって、前記第1領域特定手段にて特定される第1領域を、包含領域として特定する包含領域特定手段と、
該包含領域特定手段にて特定される前記包含領域の良/不良を判定することにより、前記検査対象の検査を行う検査手段とを備えていることを特徴とする検査装置。
Mean 2. An imaging means for imaging the inspection object;
In the inspection apparatus for inspecting the inspection object using image data based on the imaging result by the imaging means,
A first area specifying means for specifying a first area as the determination area based on a first threshold for specifying a determination area that can be a defective portion of the inspection object with relatively high sensitivity from the image data;
A second area specifying means for specifying a second area as the determination area based on a second threshold value for specifying a determination area that can be a defective portion of the inspection object with relatively low sensitivity from the image data;
An inclusion area specifying means for specifying the first area specified by the first area specifying means as an inclusion area, the area including the second area specified by the second area specifying means;
An inspection apparatus comprising: inspection means for inspecting the inspection object by determining whether the inclusion area specified by the inclusion area specifying means is good or defective.

上記手段1の構成には、例えば、全ての第1領域に基づく検査を行い、その後、当該検査結果の有効性を、上記包含関係があるか否かによって判断する構成も含まれる。   The configuration of the means 1 includes, for example, a configuration in which an inspection based on all the first regions is performed, and then the validity of the inspection result is determined based on whether or not the inclusion relationship exists.

これに対して、手段2によれば、第2領域を包含する第1領域(包含領域)が特定され、当該包含領域の良/不良を判定することにより検査が行われる。このようにすれば、第2領域と包含関係にない第1領域に対する判定処理が行われないため、検査後に包含関係を判断する上記構成と比べ、検査に要する時間を短縮することが可能となる。   On the other hand, according to the means 2, the first area (inclusion area) including the second area is specified, and the inspection is performed by determining whether the inclusion area is good or bad. In this way, since the determination process for the first region that is not in the inclusion relationship with the second region is not performed, the time required for the inspection can be shortened compared to the above-described configuration that determines the inclusion relationship after the inspection. .

もちろん、手段2の構成によっても、上記手段1と同様の効果が奏される。   Of course, the same effects as the above-described means 1 can be obtained by the configuration of the means 2.

手段3.手段2に記載の検査装置において、
前記第2領域特定手段にて特定される前記第2領域が前記判定領域として妥当か否かを判定する妥当性判定手段を備え、
前記包含領域特定手段は、前記妥当性判定手段にて妥当であると判定された第2領域に対し、前記包含領域を特定することを特徴とする検査装置。
Means 3. In the inspection apparatus according to means 2,
A validity determination means for determining whether the second area specified by the second area specifying means is appropriate as the determination area;
The inspection apparatus characterized in that the inclusion area specifying means specifies the inclusion area with respect to a second area determined to be appropriate by the validity determination means.

低感度で特定される第2領域にも、不良箇所ではない領域、例えば画像データのノイズによる領域等が含まれるおそれがある。この点、手段3によれば、第2領域が上記判定領域として妥当か否かが判定される。例えば、所定の判定値よりも小さな面積値の第2領域を判定領域から除外するという具合である。そして、判定領域として妥当であると判定された第2領域に対して、包含領域が特定される。これにより、包含領域の特定処理及び包含領域に対する判定処理が削減されるため、検査に要する時間を短縮することができる。   The second area specified with low sensitivity may include an area that is not a defective part, for example, an area caused by noise in image data. In this regard, according to the means 3, it is determined whether or not the second area is valid as the determination area. For example, the second region having an area value smaller than a predetermined determination value is excluded from the determination region. Then, the inclusion area is specified for the second area determined to be valid as the determination area. This reduces the time required for the inspection because the inclusion area specifying process and the determination process for the inclusion area are reduced.

手段4.手段3に記載の検査装置において、
前記妥当性判定手段は、前記妥当性の判定を、前記第2領域の面積値の判定値との比較及び前記第2領域の周囲長の判定値との比較のうち少なくとも一方に基づいて行うことを特徴とする検査装置。
Means 4. In the inspection apparatus according to means 3,
The validity determination means performs the validity determination based on at least one of a comparison with a determination value of an area value of the second region and a determination value of a peripheral length of the second region. Inspection device characterized by

手段4によれば、上記妥当性の判定が第2領域の面積値や周囲長の判定値との比較に基づいて行われるため、比較的簡単な判定処理によって妥当性を判定することができる。   According to the means 4, since the validity determination is performed based on comparison with the area value of the second region and the peripheral length determination value, the validity can be determined by a relatively simple determination process.

手段5.手段2乃至4のいずれかに記載の検査装置において、
前記検査手段は、最初に前記第2領域の良/不良を判定し、当該第2領域の良/不良が判定できない場合に、前記包含領域の良/不良を判定することにより、前記検査対象の検査を行うことを特徴とする検査装置。
Means 5. In the inspection apparatus according to any one of means 2 to 4,
The inspection means first determines the quality of the second area, and when the quality of the second area cannot be determined, the quality of the inclusion area is determined to determine the quality of the inspection target. An inspection apparatus characterized by performing an inspection.

第2領域は画像データから相対的に低感度で特定されるのであるが、この第2領域が例えば十分な面積値や周囲長を有している場合には、第1領域(包含領域)に対する判定処理を行うまでもなく、第2領域が不良(例えば異物)であるとの判定が可能となる。そこで、手段5では、最初に第2領域の良/不良を判定し、当該第2領域の良/不良が判定できない場合に、包含領域の良/不良を判定するようにした。このようにすれば、包含領域に対する判定処理を削減することができ、検査に要する時間を短縮することができる。   The second area is specified with relatively low sensitivity from the image data. If this second area has a sufficient area value or perimeter, for example, the second area is included in the first area (inclusion area). It is possible to determine that the second area is defective (for example, a foreign object) without performing the determination process. Therefore, the means 5 first determines whether the second area is good or bad, and if the second area is not good or bad, it is determined whether the inclusion area is good or bad. In this way, it is possible to reduce the determination process for the inclusion region, and it is possible to reduce the time required for the inspection.

手段6.手段5に記載の検査装置において、
前記包含領域特定手段は、前記検査手段にて前記第2領域の良/不良が判定できない場合に、当該第2領域を包含する前記包含領域を特定することを特徴とする検査装置。
Means 6. In the inspection apparatus according to means 5,
The inclusive area specifying means specifies the inclusive area including the second area when the inspection means cannot determine whether the second area is good or bad.

手段6によれば、第2領域の良/不良が判定できない場合にだけ包含領域を特定するため、包含領域の特定処理を削減することができる。これにより、検査に要する時間を短縮することができる。   According to the means 6, since the inclusion area is specified only when the quality of the second area cannot be determined, the inclusion area specifying process can be reduced. Thereby, the time required for the inspection can be shortened.

手段7.手段1乃至6のいずれかに記載の検査装置において、
前記検査手段は、前記良/不良の判定を、対象となる領域の面積値の判定値との比較及び対象となる領域の周囲長の判定値との比較のうち少なくとも一方に基づいて行うことを特徴とする検査装置。
Mean 7 In the inspection apparatus according to any one of means 1 to 6,
The inspection means performs the determination of good / bad based on at least one of a comparison with a determination value of an area value of a target region and a determination value of a peripheral length of the target region. Characteristic inspection device.

手段7によれば、上記良/不良の判定が領域の面積値や周囲長の判定値との比較に基づいて行われるため、比較的簡単な判定処理によって検査を行うことができる。   According to the means 7, the determination of good / bad is performed based on the comparison with the area value of the region and the determination value of the perimeter, so that the inspection can be performed by a relatively simple determination process.

手段8.手段1乃至6のいずれかに記載の検査装置において、
前記検査手段は、前記良/不良の判定を、対象となる領域の周囲長の判定値との比較に基づいて行うことを特徴とする検査装置。
Means 8. In the inspection apparatus according to any one of means 1 to 6,
The inspection apparatus according to claim 1, wherein the inspection unit performs the good / bad determination based on a comparison with a determination value of a perimeter of a target region.

手段8によれば、上記良/不良の判定が領域の周囲長の判定値との比較に基づいて行われるため、面積値が相対的に小さくなる傾向にある例えば毛髪等の線状異物の場合に有効である。   According to the means 8, since the determination of good / bad is made based on the comparison with the determination value of the peripheral length of the region, the area value tends to be relatively small, for example, in the case of a linear foreign object such as hair It is effective for.

手段9.手段1乃至8のいずれかに記載の検査装置において、
前記画像データは、前記撮像結果として前記検査対象の濃淡を示す輝度データ、又は、前記輝度データを微分処理して得られる微分データであることを特徴とする検査装置。
Means 9. In the inspection apparatus according to any one of means 1 to 8,
2. The inspection apparatus according to claim 1, wherein the image data is luminance data indicating the density of the inspection object as the imaging result, or differential data obtained by differentiating the luminance data.

手段9に示すように、上記画像データの一例に、撮像結果として検査対象の濃淡を示す輝度データ、又は、撮像結果を微分処理して得られる微分データが挙げられる。ここで特に微分データは、輝度データの局所的な輝度変化を示すものとなるため、例えば輝度データに基づく画像に撮像条件による明暗(影等)が生じている場合にも、当該明暗に左右されにくい。したがって、微分データを用いると、画像の補正処理等を省略できるという点で、有利である。   As shown in the means 9, examples of the image data include luminance data indicating the density of the inspection target as the imaging result, or differential data obtained by differentiating the imaging result. Here, the differential data particularly indicates a local luminance change of the luminance data. Therefore, for example, even when light and darkness (such as a shadow) due to the imaging condition is generated in the image based on the luminance data, it depends on the light and darkness. Hateful. Therefore, using differential data is advantageous in that image correction processing and the like can be omitted.

以上は、検査装置の発明として説明してきたが、次に示すように、PTPシートの製造装置の発明として実現することもできる。   Although the above has been described as an invention of an inspection apparatus, as described below, it can also be realized as an invention of a PTP sheet manufacturing apparatus.

手段10.手段1乃至9のいずれかに記載の検査装置を具備してなるPTPシートの製造装置。   Means 10. An apparatus for manufacturing a PTP sheet comprising the inspection apparatus according to any one of means 1 to 9.

このようなPTPシートの製造装置においても、上述した検査装置と同様の効果が奏される。   In such a PTP sheet manufacturing apparatus, the same effect as the above-described inspection apparatus can be obtained.

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

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

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

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

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

このようなPTPシート1の製造過程において、錠剤5が各ポケット部2に充填されたPTPフィルム6を検査するための構成が、検査装置12である。   In the manufacturing process of the PTP sheet 1, a configuration for inspecting the PTP film 6 in which the tablets 5 are filled in the pocket portions 2 is an inspection device 12.

次に、検査装置12について説明する。図2に示すように、検査装置12は、照明装置21、「撮像手段」としてのカメラ22、処理実行装置23などで構成される。   Next, the inspection apparatus 12 will be described. As shown in FIG. 2, the inspection device 12 includes an illumination device 21, a camera 22 as “imaging means”, a process execution device 23, and the like.

照明装置21は、撮像のための撮像光を照射するものである。カメラ22は、照明装置21から照射される撮像光の反射光に基づいて撮像を行うものである。カメラ22は、PTP包装機11に設けられた図示しないエンコーダからの信号に基づいてPTPフィルム6が所定量送られるごとに撮像を行うようになっている。ここで、カメラ22と照明装置21との関係について説明する。図3に示すように、カメラ22と照明装置21とは、PTPフィルム6のポケット部2側に配置されている。そして、照明装置21から照射される撮像光が、包装用フィルム3越しに錠剤5及びカバーフィルム4を照らし、錠剤5及びカバーフィルム4からの反射光により、カメラ22は二次元でPTPフィルム6を撮像する。処理実行装置23は、いわゆるコンピュータシステムとして構成されており、画像処理等の各種処理を実行可能となっている。   The illumination device 21 irradiates imaging light for imaging. The camera 22 performs imaging based on reflected light of imaging light emitted from the illumination device 21. The camera 22 takes an image every time a predetermined amount of the PTP film 6 is fed based on a signal from an encoder (not shown) provided in the PTP packaging machine 11. Here, the relationship between the camera 22 and the illumination device 21 will be described. As shown in FIG. 3, the camera 22 and the lighting device 21 are arranged on the pocket portion 2 side of the PTP film 6. And the imaging light irradiated from the illuminating device 21 illuminates the tablet 5 and the cover film 4 through the packaging film 3, and the camera 22 causes the PTP film 6 to be two-dimensionally reflected by the reflected light from the tablet 5 and the cover film 4. Take an image. The process execution device 23 is configured as a so-called computer system, and can execute various processes such as image processing.

次に、処理実行装置23の構成について説明する。図4に示すように、処理実行装置23は、撮像記憶部31、二値化処理部32、二値化画像記憶部33、判定値記憶部34、検査結果記憶部35、入出力ポート36、及び、中央処理装置(以下、CPUという)37を備えている。前記記憶部及び処理部31〜35は、入出力ポート36を介して、CPU37に接続されている。   Next, the configuration of the process execution device 23 will be described. As shown in FIG. 4, the processing execution device 23 includes an imaging storage unit 31, a binarization processing unit 32, a binarized image storage unit 33, a determination value storage unit 34, an inspection result storage unit 35, an input / output port 36, A central processing unit (hereinafter referred to as CPU) 37 is provided. The storage unit and the processing units 31 to 35 are connected to the CPU 37 via the input / output port 36.

撮像記憶部31は、カメラ22から出力される撮像結果としての輝度データを記憶するためのものである。本実施形態において、この輝度データが「画像データ」に相当する。二値化処理部32は、前記輝度データに基づき、後述する第1及び第2の閾値L1,L2によって、2つの二値化画像を生成する機能を有する。   The imaging storage unit 31 is for storing luminance data as an imaging result output from the camera 22. In the present embodiment, this luminance data corresponds to “image data”. The binarization processing unit 32 has a function of generating two binarized images based on the luminance data using first and second threshold values L1 and L2 described later.

二値化画像記憶部33は、二値化処理部32にて生成された二値化画像を記憶するためのものである。また、判定値記憶部34は、検査に用いられる判定値を記憶するためのものである。検査結果記憶部35は、検査結果等を記憶するためのものである。   The binarized image storage unit 33 is for storing the binarized image generated by the binarization processing unit 32. The determination value storage unit 34 is for storing a determination value used for inspection. The inspection result storage unit 35 is for storing inspection results and the like.

CPU37は、処理実行装置23の全体の制御を司り、各種処理プログラムを実行することにより、入出力ポート36を介して、記憶部及び処理部31〜35を制御する。またこのCPU37には、入出力ポート36を介して、PTP包装機11が接続されている。かかる構成により、例えば、PTP包装機11の不良シート排出機構などを制御することができるようになっている。   The CPU 37 controls the entire processing execution device 23 and controls the storage units and the processing units 31 to 35 via the input / output port 36 by executing various processing programs. Further, the PTP packaging machine 11 is connected to the CPU 37 via the input / output port 36. With this configuration, for example, the defective sheet discharge mechanism of the PTP packaging machine 11 can be controlled.

次に、CPU37によって実行される検査処理を、図5及び図6のフローチャートに基づき説明する。   Next, the inspection process executed by the CPU 37 will be described based on the flowcharts of FIGS.

最初のステップ(以下、ステップを単に記号Sで示す)10において、二値化処理を行う。この処理は、図4中の撮像記憶部31に記憶された輝度データを、2つの閾値L1,L2で二値化し、各閾値L1,L2に対応する2つの二値化画像(以下、「L1画像」、「L2画像」とも記述する)を生成するものである。本実施形態における閾値L1は、異物の可能性が高い領域を相対的に高感度で特定するための閾値である。一方、閾値L2は、異物の可能性が高い領域を相対的に低感度で特定するための閾値である。なお、生成された二値化画像は、図4中の二値化画像記憶部33に記憶される。   In the first step (hereinafter, the step is simply indicated by symbol S) 10, binarization processing is performed. This process binarizes the luminance data stored in the imaging storage unit 31 in FIG. 4 with two threshold values L1 and L2, and two binarized images corresponding to the threshold values L1 and L2 (hereinafter referred to as “L1”). Image "and" L2 image "). The threshold value L1 in the present embodiment is a threshold value for specifying a region having a high possibility of a foreign substance with relatively high sensitivity. On the other hand, the threshold value L2 is a threshold value for specifying a region having a high possibility of a foreign substance with relatively low sensitivity. The generated binarized image is stored in the binarized image storage unit 33 in FIG.

続くS20では、二値化画像記憶部33に記憶された二値化画像に対する塊処理を行う。塊処理は、二値化画像から連結領域を抽出する処理と、当該抽出された連結領域に対するラベリングを行う処理とからなる。この塊処理によって、上記各二値化画像ごとに、連結領域が特定される。なお、L1画像からM個(Mは自然数)の連結領域が特定されたものとし、これらM個の連結領域をL1(0),L1(1),L1(2),・・・,L1(M−1)と記述する。また、L2画像からN個(Nは自然数)の連結領域が特定されたものとし、これらN個の連結領域をL2(0),L2(1),L2(2),・・・,L2(N−1)と記述する。本実施形態におけるL1(0)〜L1(M−1)の各連結領域が「第1領域」に相当し、L2(0)〜L2(N−1)の各連結領域が「第2領域」に相当する。   In subsequent S20, a block process is performed on the binarized image stored in the binarized image storage unit 33. The chunk processing includes processing for extracting a connected area from a binarized image and processing for labeling the extracted connected area. By this lump processing, a connected area is specified for each of the binarized images. It is assumed that M (M is a natural number) connected regions are identified from the L1 image, and these M connected regions are designated as L1 (0), L1 (1), L1 (2),. M-1). Further, it is assumed that N (N is a natural number) connected regions are identified from the L2 image, and these N connected regions are designated as L2 (0), L2 (1), L2 (2),. N-1). In the present embodiment, each connected region of L1 (0) to L1 (M-1) corresponds to a “first region”, and each connected region of L2 (0) to L2 (N−1) is a “second region”. It corresponds to.

次のS30では、異物判定処理を行う。この異物判定処理は、上記連結領域を用いて異物判定を行うものである。異物判定の結果は判定フラグFに反映されるようになっており、当初は「0」とされる判定フラグFが、異物であるとの判定により「1」にセットされる。なお、この異物判定処理については、後に詳述する。   In the next S30, foreign matter determination processing is performed. In this foreign matter determination process, foreign matter determination is performed using the connected region. The result of the foreign object determination is reflected in the determination flag F, and the determination flag F initially set to “0” is set to “1” by determining that it is a foreign object. This foreign matter determination process will be described in detail later.

続くS40では、判定フラグFが「1」であるか否かが判断される。ここでF=1と判断された場合(S40:YES)、S50にて不良品との判定を行い、本検査処理を終了する。一方、F≠1(F=0)である場合(S40:NO)、S60にて良品との判定を行い、本検査処理を終了する。   In subsequent S40, it is determined whether or not the determination flag F is “1”. If it is determined that F = 1 (S40: YES), it is determined as a defective product in S50, and this inspection process is terminated. On the other hand, if F ≠ 1 (F = 0) (S40: NO), it is determined as a non-defective product in S60, and the present inspection process is terminated.

ここで図5中のS30にて実行される異物判定処理について詳述する。図6は、異物判定処理を示すフローチャートである。   Here, the foreign object determination process executed in S30 of FIG. 5 will be described in detail. FIG. 6 is a flowchart showing the foreign matter determination process.

最初のS300において、変数xに「0」を代入する。また、判定フラグFを「0」としてリセットする。   In the first S300, “0” is substituted into the variable x. Further, the determination flag F is reset to “0”.

続くS310では、連結領域L2(x)の面積値が判定値P以上であるか否かを判定する。この判定処理は、判定値Pを下回る面積値の連結領域L2(x)を検査から除外するためのものである。つまり、低感度のL2画像に含まれるノイズ成分を検査から除外するのである。ここで、連結領域L2(x)の面積値≧Pである場合(S310:YES)、S320へ移行する。一方、連結領域L2(x)の面積値<Pである場合(S310:NO)、S370へ移行する。   In continuing S310, it is determined whether the area value of the connection area | region L2 (x) is more than the determination value P. FIG. This determination process is for excluding the connected region L2 (x) having an area value lower than the determination value P from the inspection. That is, the noise component included in the low-sensitivity L2 image is excluded from the inspection. Here, when the area value of the connection region L2 (x) ≧ P (S310: YES), the process proceeds to S320. On the other hand, when the area value of the connection region L2 (x) <P (S310: NO), the process proceeds to S370.

S320では、連結領域L2(x)の周囲長が判定値S2以上であるか否かを判定する。この判定処理は、判定値S2以上の周囲長を有する連結領域L2(x)を異物と判定するためのものである。つまり、低感度で特定される連結領域L2(x)が判定値S2以上の周囲長を有する場合、高感度のL1画像を考慮せず、即時に異物と判定するのである。ここで、連結領域L2(x)の周囲長≧S2である場合(S320:YES)、S330にてL2(x)を異物と判定し、判定フラグFを「1」にセットして、S370へ移行する。一方、連結領域L2(x)の周囲長<S2である場合(S320:NO)、S340へ移行する。   In S320, it is determined whether or not the peripheral length of the connected region L2 (x) is equal to or greater than the determination value S2. This determination process is for determining the connected region L2 (x) having a perimeter greater than or equal to the determination value S2 as a foreign object. That is, when the connected region L2 (x) specified with low sensitivity has a perimeter greater than or equal to the determination value S2, it is immediately determined as a foreign object without considering the high-sensitivity L1 image. Here, if the perimeter of the connected region L2 (x) ≧ S2 (S320: YES), L2 (x) is determined to be a foreign object in S330, the determination flag F is set to “1”, and the process proceeds to S370. Transition. On the other hand, when the perimeter of the connected region L2 (x) <S2 (S320: NO), the process proceeds to S340.

S340では、連結領域L2(x)を包含する連結領域L1(y)を抽出する。そして、S350にて、連結領域L1(y)の周囲長が、判定値S1以上であるか否かを判断する。つまり、低感度で特定された連結領域L2(x)の周囲長だけでは異物とまでは判断できない場合に、連結領域L2(x)を包含する連結領域L1(y)を抽出し、高感度で特定された連結領域L1(y)の周囲長を用いて異物判定を行うのである。   In S340, the connected area L1 (y) including the connected area L2 (x) is extracted. In S350, it is determined whether or not the peripheral length of the connected region L1 (y) is equal to or greater than the determination value S1. That is, when it is impossible to determine even a foreign object only by the perimeter of the connection area L2 (x) specified with low sensitivity, the connection area L1 (y) including the connection area L2 (x) is extracted, and high sensitivity is obtained. Foreign matter determination is performed using the perimeter of the identified connected region L1 (y).

連結領域L1(y)の周囲長≧S1である場合(S350:YES)、S360にてL1(y)を異物と判定し、判定フラグFを「1」にセットして、S370へ移行する。一方、連結領域L1(y)の周囲長<S1である場合(S350:NO)、S360の処理を実行せず、S370へ移行する。   When the perimeter of the connected region L1 (y) ≧ S1 (S350: YES), L1 (y) is determined as a foreign object in S360, the determination flag F is set to “1”, and the process proceeds to S370. On the other hand, if the perimeter of the connected region L1 (y) <S1 (S350: NO), the process of S360 is not executed and the process proceeds to S370.

S370では、変数xをインクリメントし、続くS380にて、変数xが定数Nに等しいか否か、すなわち、L2(0)〜L2(N−1)まで全ての連結領域について処理したか否かを判断する。ここでx=Nである場合(S380:YES)、すなわち全ての連結領域について処理したと判断された場合は、本異物判定処理を終了する。一方、x≠Nである場合(S380:NO)、すなわち処理していない連結領域があるうちは、S310からの処理を繰り返す。   In S370, the variable x is incremented, and in subsequent S380, whether or not the variable x is equal to the constant N, that is, whether or not all connected regions from L2 (0) to L2 (N-1) have been processed. to decide. If x = N (S380: YES), that is, if it is determined that all connected regions have been processed, the foreign matter determination process is terminated. On the other hand, when x ≠ N (S380: NO), that is, as long as there is an unprocessed connected region, the processing from S310 is repeated.

以上が検査処理の流れであるが、ここで上記検査処理に対する理解を容易にするため、図7及び図8に基づき、具体的な説明を加える。図7(a)は、錠剤5の撮像画像51を示す模式図であり、図7(b)は、図7(a)中に記号Xで示す部分における輝度分布を示す模式図である。なお、図7(a)には、線状異物を記号Iで示している。   The above is the flow of the inspection process. Here, in order to facilitate understanding of the inspection process, a specific description will be added based on FIGS. Fig.7 (a) is a schematic diagram which shows the captured image 51 of the tablet 5, FIG.7 (b) is a schematic diagram which shows the luminance distribution in the part shown by the symbol X in Fig.7 (a). In FIG. 7A, the linear foreign matter is indicated by the symbol I.

本実施形態では、上述したように、異物の可能性が高い領域を相対的に高感度で特定するための閾値L1、及び、異物の可能性が高い領域を相対的に低感度で特定するための閾値L2が設定される。すなわち、錠剤5の表面輝度に近い基準の値(基準値)に対し、閾値L1が近い側に、閾値L2が遠い側に設定される(図7(b)参照)。   In the present embodiment, as described above, the threshold L1 for specifying a region having a high possibility of foreign matter with relatively high sensitivity and a region having a high possibility of foreign matter are specified with relatively low sensitivity. The threshold value L2 is set. That is, the threshold value L1 is set to the near side and the threshold value L2 is set to the far side with respect to the reference value (reference value) close to the surface luminance of the tablet 5 (see FIG. 7B).

上記検査処理では、これらの閾値L1,L2による二値化処理が行われる(図5中のS10)。図8(a)は、閾値L2による二値化処理で生成されたL2画像を示す模式図であり、図8(b)は、閾値L1による二値化処理で生成されたL1画像を示す模式図である。また、図8(c)は、領域の包含関係を示すために便宜的に両画像を重ねて示したものである。   In the inspection process, a binarization process using these threshold values L1 and L2 is performed (S10 in FIG. 5). FIG. 8A is a schematic diagram showing an L2 image generated by binarization processing using the threshold L2, and FIG. 8B is a schematic diagram showing an L1 image generated by binarization processing using the threshold L1. FIG. Further, FIG. 8C shows both images superimposed for convenience in order to show the inclusion relation of the regions.

これらの二値化画像に対して塊処理を行うことで(図5中のS20)、L2画像における連結領域L2(0)〜L2(3)が特定される(図8(a)参照)。また、L1画像における連結領域L1(0)〜L1(2)が特定される(図8(b)参照)。   By performing the lump processing on these binarized images (S20 in FIG. 5), the connected regions L2 (0) to L2 (3) in the L2 image are specified (see FIG. 8A). In addition, connected regions L1 (0) to L1 (2) in the L1 image are specified (see FIG. 8B).

異物判定処理では、最初に、L2画像における連結領域L2(x)に基づく判定が行われる。ここで最初に判定対象となる連結領域L2(0)の面積値が判定値Pを下回っていると仮定すれば、連結領域L2(0)は、L2画像におけるノイズ成分として、判定対象から除外される(図6中のS310:NO)。   In the foreign matter determination process, first, determination based on the connected region L2 (x) in the L2 image is performed. Assuming that the area value of the connected region L2 (0) to be determined first is below the determination value P, the connected region L2 (0) is excluded from the determination target as a noise component in the L2 image. (S310 in FIG. 6: NO).

次に、変数xがインクリメントされて(図6中のS370,S380:NO)、連結領域L2(1)が判定対象とされる。連結領域L2(1)の面積値が判定値P以上であり、かつ、周囲長が判定値S2を下回っていると仮定すれば、連結領域L2(1)を包含する連結領域L1(y)が抽出される(S310:YES,S320:NO,S340)。つまり、L2画像における連結領域L2(x)が異物であると判定できない場合に、L1画像における連結領域L1(y)を利用するのである。この例でいえば、図8(c)から分かるように、連結領域L2(1)を包含する連結領域L1(2)が抽出される。そして、連結領域L1(2)の周囲長が判定値S1以上であると仮定すれば、連結領域L1(2)が異物と判定され(S350:YES)、判定フラグFがセットされて「1」となる(S360)。   Next, the variable x is incremented (S370, S380: NO in FIG. 6), and the connected region L2 (1) is determined as a determination target. Assuming that the area value of the connection region L2 (1) is equal to or greater than the determination value P and the perimeter is less than the determination value S2, the connection region L1 (y) including the connection region L2 (1) is obtained. Extracted (S310: YES, S320: NO, S340). That is, when it is not possible to determine that the connection area L2 (x) in the L2 image is a foreign object, the connection area L1 (y) in the L1 image is used. In this example, as can be seen from FIG. 8C, the connected region L1 (2) including the connected region L2 (1) is extracted. If it is assumed that the perimeter of the connection area L1 (2) is equal to or greater than the determination value S1, the connection area L1 (2) is determined to be a foreign object (S350: YES), and the determination flag F is set to “1”. (S360).

同様に、変数xがインクリメントされて(図6中のS370,S380:NO)、連結領域L2(2),L2(3)が順に判定対象とされる。連結領域L2(2),L2(3)においても、面積値が判定値P以上であり、かつ、周囲長が判定値S2を下回っていると仮定すれば、連結領域L2(1)を包含する連結領域L1(2)が抽出され(S340)、L1(2)が異物と判定されて判定フラグFが「1」にセットされる(S350:YES,S360)。   Similarly, the variable x is incremented (S370 and S380 in FIG. 6: NO), and the connected regions L2 (2) and L2 (3) are sequentially determined. Even in the connected regions L2 (2) and L2 (3), assuming that the area value is equal to or greater than the determination value P and the perimeter is less than the determination value S2, the connection region L2 (1) is included. The connected area L1 (2) is extracted (S340), L1 (2) is determined to be a foreign object, and the determination flag F is set to “1” (S350: YES, S360).

ここで、図8(b)のL1画像における連結領域L1(0),L1(1)は、L2画像における連結領域を包含する関係にないため、当初から異物判定の対象となることはない。すなわち、連結領域L1(0),L1(1)は、L1画像におけるノイズ成分として判定対象から除外されることになる。   Here, since the connected areas L1 (0) and L1 (1) in the L1 image in FIG. 8B do not include the connected areas in the L2 image, they are not subject to foreign object determination from the beginning. That is, the connected regions L1 (0) and L1 (1) are excluded from the determination targets as noise components in the L1 image.

なお、本実施形態において、図4中の二値化処理部32及びCPU37が「第1領域特定手段」及び「第2領域特定手段」を構成し、図5中のS10及びS20の処理が第1領域特定手段及び第2領域特定手段としての処理に相当する。また、CPU37は「妥当性判定手段」、「包含領域特定手段」及び「検査手段」をも構成し、図6中のS310の処理が妥当性判定手段としての処理に相当し、S340の処理が包含領域特定手段としての処理に相当し、S320及びS350の処理が検査手段としての処理に相当する。   In the present embodiment, the binarization processing unit 32 and the CPU 37 in FIG. 4 constitute “first area specifying means” and “second area specifying means”, and the processes of S10 and S20 in FIG. This corresponds to processing as one area specifying means and second area specifying means. The CPU 37 also constitutes “validity determining means”, “inclusion area specifying means”, and “inspecting means”, and the processing of S310 in FIG. 6 corresponds to the processing as the validity determining means, and the processing of S340 is performed. This corresponds to the processing as the inclusion area specifying means, and the processing of S320 and S350 corresponds to the processing as the inspection means.

以上詳述したように、本実施形態では、異物の可能性が高い領域を相対的に高感度で特定するための閾値L1、及び、異物の可能性が高い領域を相対的に低感度で特定するための閾値L2のそれぞれで輝度データが二値化され、2つの二値化画像が生成される(図5中のS10)。次に、一方の二値化画像(L1画像)から、M個の連結領域L1(0)〜L1(M−1)が特定される。また、他方の二値化画像(L2画像)から、N個の連結領域L2(0)〜L2(N−1)が特定される(S20)。そして、連結領域L2(x)を包含する連結領域L1(y)が抽出され、連結領域L1(y)の周囲長に基づいて、連結領域L1(y)の異物判定が行われる(図6中のS340〜S360)。このように、高感度で特定される連結領域L1(y)に基づく異物判定が行われるため、例えば毛髪等の線状異物等の異物も判定することができる。一方で、異物判定が行われる連結領域L1(y)は低感度で特定される連結領域L2を包含するものとなっており、連結領域L2(x)と包含関係にない連結領域L1(y)は異物判定の対象とならない。したがって、L1画像におけるノイズ成分を検査から除外することができ、良品錯誤率の増大を抑制することができる。その結果、線状異物の付着部位等、錠剤5の不良箇所を適切に判定して検査対象を検査することができる。   As described above in detail, in the present embodiment, the threshold L1 for specifying a region having a high possibility of foreign matter with relatively high sensitivity and a region having a high possibility of foreign matter are specified with relatively low sensitivity. The luminance data is binarized at each of the threshold values L2 to generate two binarized images (S10 in FIG. 5). Next, M connected regions L1 (0) to L1 (M-1) are specified from one binarized image (L1 image). Further, N connected regions L2 (0) to L2 (N-1) are specified from the other binarized image (L2 image) (S20). Then, a connected region L1 (y) including the connected region L2 (x) is extracted, and foreign matter determination of the connected region L1 (y) is performed based on the perimeter of the connected region L1 (y) (in FIG. 6). S340 to S360). In this way, since foreign matter determination based on the connection region L1 (y) specified with high sensitivity is performed, foreign matter such as linear foreign matter such as hair can also be determined. On the other hand, the connected region L1 (y) in which the foreign object determination is performed includes the connected region L2 specified with low sensitivity, and the connected region L1 (y) that is not included in the connected region L2 (x). Is not subject to foreign object determination. Therefore, noise components in the L1 image can be excluded from the inspection, and an increase in the non-defective product error rate can be suppressed. As a result, the inspection target can be inspected by appropriately determining the defective part of the tablet 5 such as the adhesion part of the linear foreign matter.

また、本実施形態では、上述したように異物判定が行われる連結領域L1(y)は低感度で特定される連結領域L2を包含するものだけであり、連結領域L2(x)と包含関係にない連結領域L1(y)についての判定は行われない。これにより、連結領域L1(y)の全てについて判定を行い、その後、当該判定の有効性を連結領域L2(x)との包含関係で判断する構成と比べ、検査に要する時間を短縮することが可能となる。   Further, in the present embodiment, as described above, the connected region L1 (y) where the foreign object determination is performed includes only the connected region L2 specified with low sensitivity, and the connected region L2 (x) is in an inclusive relationship. The determination is not performed for the unconnected region L1 (y). Thereby, it is possible to reduce the time required for the inspection as compared with the configuration in which determination is performed for all of the connected regions L1 (y), and then the effectiveness of the determination is determined based on the inclusion relationship with the connected regions L2 (x). It becomes possible.

さらにまた、本実施形態では、低感度で特定される連結領域L2(x)の妥当性が判定されている。すなわち、連結領域L2(x)の面積値が判定値P以上であるか否かを判断することにより、判定値Pを下回る面積値の連結領域L2(x)を異物判定から除外している(図6中のS310:NO)。また、連結領域L2(x)の周囲長が判定値S2以上であるか否かを判断することにより、低感度で特定される連結領域L2(x)が判定値S2以上の周囲長を有する場合、高感度のL1画像を考慮せず、連結領域L2(x)を即時に異物と判定している(S320,S330)。そして、これらの場合には、連結領域L1(y)の特定処理及び連結領域L1(y)に対する判定処理が行われない。この点においても、検査時間の短縮に寄与する。   Furthermore, in this embodiment, the validity of the connection region L2 (x) specified with low sensitivity is determined. That is, by determining whether or not the area value of the connection region L2 (x) is equal to or greater than the determination value P, the connection region L2 (x) having an area value lower than the determination value P is excluded from the foreign object determination ( S310 in FIG. 6: NO). In addition, when it is determined whether or not the perimeter of the connected region L2 (x) is greater than or equal to the determination value S2, the connected region L2 (x) that is identified with low sensitivity has a perimeter greater than or equal to the determination value S2. The connected region L2 (x) is immediately determined as a foreign object without considering the high-sensitivity L1 image (S320, S330). In these cases, the specifying process for the connection area L1 (y) and the determination process for the connection area L1 (y) are not performed. This also contributes to shortening the inspection time.

また、本実施形態では、異物であるか否かの判定処理が各連結領域L2(x),L1(y)の周囲長に基づいて行われる(図6中のS320,S350)。これにより、面積値が比較的小さくなる傾向の線状異物を適切に判定することができる。しかも、連結領域L2(x)の妥当性判定を含め、判定処理(S310,S320,S350)は面積値や周囲長と各判定値との比較に基づいて行っているため、処理を比較的簡単なものとすることができる。   In the present embodiment, the process for determining whether or not the object is a foreign object is performed based on the perimeter of each of the connected regions L2 (x) and L1 (y) (S320 and S350 in FIG. 6). Thereby, it is possible to appropriately determine a linear foreign object whose area value tends to be relatively small. In addition, since the determination process (S310, S320, S350) including the validity determination of the connected region L2 (x) is performed based on a comparison between the area value and the perimeter and each determination value, the process is relatively simple. Can be.

以上、一実施形態について説明してきたが、本発明の趣旨を逸脱しない限りにおいて種々の形態で実施可能である。すなわち、以下に例示するような態様で実施することも可能であるし、また、以下に例示しない態様で実施することももちろん可能である。   Although one embodiment has been described above, various embodiments can be implemented without departing from the spirit of the present invention. That is, it is possible to implement in the modes exemplified below, and of course, it is possible to implement in modes not exemplified below.

(a)上記実施形態では、撮像記憶部31に記憶された輝度データそのものを、2つの閾値L1,L2で二値化し、各閾値L1,L2に対応する2つの二値化画像を生成していた。   (A) In the above embodiment, the luminance data itself stored in the imaging storage unit 31 is binarized with two threshold values L1 and L2, and two binarized images corresponding to the threshold values L1 and L2 are generated. It was.

これに対し、輝度データに対して微分処理を施した微分データを画像データとして、2つの閾値で二値化するようにしてもよい。具体的には、図5中のS10において、注目画素に対し、3×3画素や、5×5画素の微分処理を行い、閾値との比較によって、二値化画像を生成する構成とすることが考えられる。   On the other hand, differential data obtained by performing differential processing on luminance data may be binarized with two threshold values as image data. Specifically, in S10 in FIG. 5, a configuration in which a 3 × 3 pixel or 5 × 5 pixel differentiation process is performed on the target pixel and a binarized image is generated by comparison with a threshold value. Can be considered.

微分データは、輝度データの局所的な輝度変化を示すものとなるため、例えば輝度データに基づく画像に撮像条件による明暗(影等)が生じている場合に、当該明暗に左右されにくい。その結果、特別な補正処理を必要としないという点で有利である。   Since the differential data indicates a local luminance change of the luminance data, for example, when the image based on the luminance data is light and dark (such as a shadow) due to the imaging condition, it is not easily affected by the light and dark. As a result, it is advantageous in that no special correction process is required.

(b)上記実施形態では、低感度で特定される連結領域L2(x)の妥当性判定を面積値で行い(図6中のS310)、連結領域L2(x),L1(y)の異物判定を周囲長で行っていた(S320,S350)。これに対し、妥当性判定を周囲長で行い、異物判定を面積値で行う構成としてもよい。また、これら判定処理を、面積値及び周囲長の両方で行うこととしてもよい。   (B) In the embodiment described above, the validity of the connection region L2 (x) specified with low sensitivity is determined based on the area value (S310 in FIG. 6), and the foreign matters in the connection regions L2 (x) and L1 (y) The determination was made based on the perimeter (S320, S350). On the other hand, it is good also as a structure which performs validity determination by circumference length and performs foreign material determination by an area value. These determination processes may be performed on both the area value and the perimeter.

(c)上記実施形態は、包装用フィルム3にカバーフィルム4が貼着された後に、検査を行う構成であった。これに対し、包装用フィルム3にカバーフィルム4が貼着される前に、検査を行う構成としてもよい。すなわち、フィルム受けロール17及び加熱ロール18の上流側において、錠剤5を撮像するようにしてもよい。また、その場合、本実施形態と同様の反射光を用いるようにしてもよいし、カメラと照明装置とを包装用フィルム3を介して対向する位置に配置し、透過光を用いて検査するようにしてもよい。   (C) The embodiment described above was configured to inspect after the cover film 4 was adhered to the packaging film 3. On the other hand, it is good also as a structure which test | inspects before the cover film 4 is affixed on the film 3 for packaging. That is, the tablet 5 may be imaged on the upstream side of the film receiving roll 17 and the heating roll 18. In this case, the reflected light similar to that of the present embodiment may be used, or the camera and the lighting device are arranged at positions facing each other with the packaging film 3 interposed therebetween, and the inspection is performed using the transmitted light. It may be.

(a)はPTPシートを示す斜視図であり、(b)は裁断前のPTPフィルムを示す斜視図であり、(c)は、PTPシートを示す部分拡大断面図である。(A) is a perspective view which shows a PTP sheet, (b) is a perspective view which shows the PTP film before cutting, (c) is a partial expanded sectional view which shows a PTP sheet. 実施形態におけるPTP包装機の概略構成を示す模式図である。It is a schematic diagram which shows schematic structure of the PTP packaging machine in embodiment. カメラと照明装置との関係を示す説明図である。It is explanatory drawing which shows the relationship between a camera and an illuminating device. 検査装置の電気的構成を示すブロック図である。It is a block diagram which shows the electric constitution of a test | inspection apparatus. 検査処理を示すフローチャートである。It is a flowchart which shows an inspection process. 異物判定処理を示すフローチャートである。It is a flowchart which shows a foreign material determination process. (a)は錠剤の撮像画像を示す模式図であり、(b)は(a)における輝度値の分布を示す模式図である。(A) is a schematic diagram which shows the captured image of a tablet, (b) is a schematic diagram which shows distribution of the luminance value in (a). 二値化画像を例示する模式図である。It is a schematic diagram which illustrates a binarized image.

符号の説明Explanation of symbols

1…PTPシート、2…ポケット部、3…包装用フィルム、4…カバーフィルム、5…錠剤、6…PTPフィルム、11…PTP包装機、12…検査装置、21…照明装置、22…カメラ、23…処理実行装置、31…撮像記憶部、32…二値化処理部、33…二値化画像記憶部、34…判定値記憶部、35…検査結果記憶部、36…入出力ポート、37…中央処理装置(CPU)。
DESCRIPTION OF SYMBOLS 1 ... PTP sheet, 2 ... Pocket part, 3 ... Packaging film, 4 ... Cover film, 5 ... Tablet, 6 ... PTP film, 11 ... PTP packaging machine, 12 ... Inspection apparatus, 21 ... Illumination device, 22 ... Camera, DESCRIPTION OF SYMBOLS 23 ... Processing execution apparatus, 31 ... Imaging storage part, 32 ... Binarization processing part, 33 ... Binarized image storage part, 34 ... Determination value storage part, 35 ... Inspection result storage part, 36 ... Input / output port, 37 ... Central processing unit (CPU).

Claims (10)

検査対象を撮像する撮像手段と、
前記撮像手段による撮像結果に基づく画像データを用い、前記検査対象の検査を行う検査装置において、
前記検査対象の不良箇所となり得る判定領域を前記画像データから相対的に高感度で特定するための第1閾値に基づき、前記判定領域としての第1領域を特定する第1領域特定手段と、
前記検査対象の不良箇所となり得る判定領域を前記画像データから相対的に低感度で特定するための第2閾値に基づき、前記判定領域としての第2領域を特定する第2領域特定手段と、
前記第1領域特定手段にて特定される前記第1領域の良/不良を、当該第1領域と前記第2領域特定手段にて特定される前記第2領域との包含関係に基づいて判定することにより、前記検査対象の検査を行う検査手段とを備えていることを特徴とする検査装置。
An imaging means for imaging the inspection object;
In the inspection apparatus for inspecting the inspection object using image data based on the imaging result by the imaging means,
A first area specifying means for specifying a first area as the determination area based on a first threshold for specifying a determination area that can be a defective portion of the inspection object with relatively high sensitivity from the image data;
A second area specifying means for specifying a second area as the determination area based on a second threshold value for specifying a determination area that can be a defective portion of the inspection object with relatively low sensitivity from the image data;
The quality of the first area specified by the first area specifying means is determined based on the inclusion relationship between the first area and the second area specified by the second area specifying means. By this, the inspection apparatus characterized by including the test | inspection means which test | inspects the said test object.
検査対象を撮像する撮像手段と、
前記撮像手段による撮像結果に基づく画像データを用い、前記検査対象の検査を行う検査装置において、
前記検査対象の不良箇所となり得る判定領域を前記画像データから相対的に高感度で特定するための第1閾値に基づき、前記判定領域としての第1領域を特定する第1領域特定手段と、
前記検査対象の不良箇所となり得る判定領域を前記画像データから相対的に低感度で特定するための第2閾値に基づき、前記判定領域としての第2領域を特定する第2領域特定手段と、
該第2領域特定手段にて特定される前記第2領域を包含する領域であって、前記第1領域特定手段にて特定される第1領域を、包含領域として特定する包含領域特定手段と、
該包含領域特定手段にて特定される前記包含領域の良/不良を判定することにより、前記検査対象の検査を行う検査手段とを備えていることを特徴とする検査装置。
An imaging means for imaging the inspection object;
In the inspection apparatus for inspecting the inspection object using image data based on the imaging result by the imaging means,
A first area specifying means for specifying a first area as the determination area based on a first threshold for specifying a determination area that can be a defective portion of the inspection object with relatively high sensitivity from the image data;
A second area specifying means for specifying a second area as the determination area based on a second threshold value for specifying a determination area that can be a defective portion of the inspection object with relatively low sensitivity from the image data;
An inclusion area specifying means for specifying the first area specified by the first area specifying means as an inclusion area, the area including the second area specified by the second area specifying means;
An inspection apparatus comprising: inspection means for inspecting the inspection object by determining whether the inclusion area specified by the inclusion area specifying means is good or defective.
請求項2に記載の検査装置において、
前記第2領域特定手段にて特定される前記第2領域が前記判定領域として妥当か否かを判定する妥当性判定手段を備え、
前記包含領域特定手段は、前記妥当性判定手段にて妥当であると判定された第2領域に対し、前記包含領域を特定することを特徴とする検査装置。
The inspection apparatus according to claim 2,
A validity determination means for determining whether the second area specified by the second area specifying means is appropriate as the determination area;
The inspection apparatus characterized in that the inclusion area specifying means specifies the inclusion area with respect to a second area determined to be appropriate by the validity determination means.
請求項3に記載の検査装置において、
前記妥当性判定手段は、前記妥当性の判定を、前記第2領域の面積値の判定値との比較及び前記第2領域の周囲長の判定値との比較のうち少なくとも一方に基づいて行うことを特徴とする検査装置。
The inspection apparatus according to claim 3, wherein
The validity determination means performs the validity determination based on at least one of a comparison with a determination value of an area value of the second region and a determination value of a peripheral length of the second region. Inspection device characterized by
請求項2乃至4のいずれかに記載の検査装置において、
前記検査手段は、最初に前記第2領域の良/不良を判定し、当該第2領域の良/不良が判定できない場合に、前記包含領域の良/不良を判定することにより、前記検査対象の検査を行うことを特徴とする検査装置。
The inspection apparatus according to any one of claims 2 to 4,
The inspection means first determines the quality of the second area, and when the quality of the second area cannot be determined, the quality of the inclusion area is determined to determine the quality of the inspection target. An inspection apparatus characterized by performing an inspection.
請求項5に記載の検査装置において、
前記包含領域特定手段は、前記検査手段にて前記第2領域の良/不良が判定できない場合に、当該第2領域を包含する前記包含領域を特定することを特徴とする検査装置。
The inspection apparatus according to claim 5, wherein
The inclusive area specifying means specifies the inclusive area including the second area when the inspection means cannot determine whether the second area is good or bad.
請求項1乃至6のいずれかに記載の検査装置において、
前記検査手段は、前記良/不良の判定を、対象となる領域の面積値の判定値との比較及び対象となる領域の周囲長の判定値との比較のうち少なくとも一方に基づいて行うことを特徴とする検査装置。
The inspection apparatus according to any one of claims 1 to 6,
The inspection means performs the determination of good / bad based on at least one of a comparison with a determination value of an area value of a target region and a determination value of a peripheral length of the target region. Characteristic inspection device.
請求項1乃至6のいずれかに記載の検査装置において、
前記検査手段は、前記良/不良の判定を、対象となる領域の周囲長の判定値との比較に基づいて行うことを特徴とする検査装置。
The inspection apparatus according to any one of claims 1 to 6,
The inspection apparatus according to claim 1, wherein the inspection unit performs the good / bad determination based on a comparison with a determination value of a perimeter of a target region.
請求項1乃至8のいずれかに記載の検査装置において、
前記画像データは、前記撮像結果として前記検査対象の濃淡を示す輝度データ、又は、前記撮像結果を微分処理して得られる微分データであることを特徴とする検査装置。
The inspection apparatus according to any one of claims 1 to 8,
The inspection apparatus according to claim 1, wherein the image data is luminance data indicating the density of the inspection target as the imaging result or differential data obtained by differentiating the imaging result.
請求項1乃至9のいずれかに記載の検査装置を具備してなるPTPシートの製造装置。
A PTP sheet manufacturing apparatus comprising the inspection apparatus according to claim 1.
JP2006081993A 2006-03-24 2006-03-24 Inspection apparatus and PTP sheet manufacturing apparatus Active JP4566940B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006081993A JP4566940B2 (en) 2006-03-24 2006-03-24 Inspection apparatus and PTP sheet manufacturing apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006081993A JP4566940B2 (en) 2006-03-24 2006-03-24 Inspection apparatus and PTP sheet manufacturing apparatus

Publications (2)

Publication Number Publication Date
JP2007256132A true JP2007256132A (en) 2007-10-04
JP4566940B2 JP4566940B2 (en) 2010-10-20

Family

ID=38630522

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006081993A Active JP4566940B2 (en) 2006-03-24 2006-03-24 Inspection apparatus and PTP sheet manufacturing apparatus

Country Status (1)

Country Link
JP (1) JP4566940B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013134666A (en) * 2011-12-27 2013-07-08 Dainippon Screen Mfg Co Ltd Binary image generation device, classification device, binary image generation method, and classification method
WO2019009214A1 (en) * 2017-07-07 2019-01-10 キヤノン株式会社 Image processing device, image processing method and program for detecting deformation from image

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04106460A (en) * 1990-08-28 1992-04-08 Toshiba Corp Detecting method of defect
JP2000199745A (en) * 1998-10-26 2000-07-18 Dainippon Printing Co Ltd Method and apparatus for inspection of color nonuniformity
JP2002055053A (en) * 2000-08-08 2002-02-20 Ckd Corp Visual inspection apparatus for tablet and ptp packaging machine
JP2003215047A (en) * 2002-01-17 2003-07-30 Ckd Corp Visual inspection apparatus and ptp packaging machine equipped with the same

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04106460A (en) * 1990-08-28 1992-04-08 Toshiba Corp Detecting method of defect
JP2000199745A (en) * 1998-10-26 2000-07-18 Dainippon Printing Co Ltd Method and apparatus for inspection of color nonuniformity
JP2002055053A (en) * 2000-08-08 2002-02-20 Ckd Corp Visual inspection apparatus for tablet and ptp packaging machine
JP2003215047A (en) * 2002-01-17 2003-07-30 Ckd Corp Visual inspection apparatus and ptp packaging machine equipped with the same

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013134666A (en) * 2011-12-27 2013-07-08 Dainippon Screen Mfg Co Ltd Binary image generation device, classification device, binary image generation method, and classification method
WO2019009214A1 (en) * 2017-07-07 2019-01-10 キヤノン株式会社 Image processing device, image processing method and program for detecting deformation from image
CN110892255A (en) * 2017-07-07 2020-03-17 佳能株式会社 Image processing apparatus, image processing method, and program for detecting defects from an image
JPWO2019009214A1 (en) * 2017-07-07 2020-05-21 キヤノン株式会社 Image processing apparatus, image processing method, and program for detecting deformation from image
US11443500B2 (en) 2017-07-07 2022-09-13 Canon Kabushiki Kaisha Image processing apparatus, image processing method, and program for detecting defect from image
JP7191823B2 (en) 2017-07-07 2022-12-19 キヤノン株式会社 Image processing device, image processing method and program for detecting deformation from image
CN110892255B (en) * 2017-07-07 2024-03-01 佳能株式会社 Image processing apparatus, method and storage medium for detecting defect from image

Also Published As

Publication number Publication date
JP4566940B2 (en) 2010-10-20

Similar Documents

Publication Publication Date Title
JP5526183B2 (en) Inspection device and PTP packaging machine
KR20130001111A (en) Package inspection apparatus
JP2009293999A (en) Wood defect detector
JP4647643B2 (en) Defect inspection device and PTP packaging machine
JP2006214814A (en) Inspection device and ptp packaging machine
US11513082B2 (en) Foreign substance inspection apparatus and foreign substance inspection method
JP4566940B2 (en) Inspection apparatus and PTP sheet manufacturing apparatus
JP2008267926A (en) Fluorescent lamp inspecting device
JP6619547B2 (en) Inspection device
JP4472499B2 (en) Defect inspection device and PTP packaging machine
JP4684172B2 (en) Appearance inspection apparatus and PTP sheet manufacturing apparatus
JP6188620B2 (en) Inspection device and PTP packaging machine
JP5744414B2 (en) Tablet inspection device and PTP packaging machine
JP2020034345A (en) Inspection system and inspection method
JP2005091016A (en) X-ray inspection device
JP2006244869A (en) Plasma display panel inspection device, manufacturing method of plasma display panel, and device inspection method
JP4534827B2 (en) Film defect detection method and defect detection apparatus
JP2006219178A (en) Inspecting apparatus and ptp packaging machine
JP4397850B2 (en) Inspection device, correction data generation device, and PTP packaging machine
JP2006105852A (en) Visual inspection apparatus and ptp packaging machine
JP2006189293A (en) Inspection method and device of striped irregular defect
JP2006189294A (en) Inspection method and device of irregular defect
JP2004077495A (en) Visual inspection device
JP4251325B2 (en) Appearance inspection device and PTP packaging machine
JP2005308441A (en) Neck ring inspection device and neck ring inspection method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20080107

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20100430

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100601

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100709

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

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20100804

R150 Certificate of patent or registration of utility model

Ref document number: 4566940

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20130813

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20130813

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20140813

Year of fee payment: 4