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

Appearance inspection device and PTP packaging machine Download PDF

Info

Publication number
JP4368808B2
JP4368808B2 JP2005002126A JP2005002126A JP4368808B2 JP 4368808 B2 JP4368808 B2 JP 4368808B2 JP 2005002126 A JP2005002126 A JP 2005002126A JP 2005002126 A JP2005002126 A JP 2005002126A JP 4368808 B2 JP4368808 B2 JP 4368808B2
Authority
JP
Japan
Prior art keywords
tablet
inspection
image data
position data
image
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
JP2005002126A
Other languages
Japanese (ja)
Other versions
JP2006189354A (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 JP2005002126A priority Critical patent/JP4368808B2/en
Publication of JP2006189354A publication Critical patent/JP2006189354A/en
Application granted granted Critical
Publication of JP4368808B2 publication Critical patent/JP4368808B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B29WORKING OF PLASTICS; WORKING OF SUBSTANCES IN A PLASTIC STATE IN GENERAL
    • B29CSHAPING OR JOINING OF PLASTICS; SHAPING OF MATERIAL IN A PLASTIC STATE, NOT OTHERWISE PROVIDED FOR; AFTER-TREATMENT OF THE SHAPED PRODUCTS, e.g. REPAIRING
    • B29C65/00Joining or sealing of preformed parts, e.g. welding of plastics materials; Apparatus therefor
    • B29C65/02Joining or sealing of preformed parts, e.g. welding of plastics materials; Apparatus therefor by heating, with or without pressure
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B29WORKING OF PLASTICS; WORKING OF SUBSTANCES IN A PLASTIC STATE IN GENERAL
    • B29CSHAPING OR JOINING OF PLASTICS; SHAPING OF MATERIAL IN A PLASTIC STATE, NOT OTHERWISE PROVIDED FOR; AFTER-TREATMENT OF THE SHAPED PRODUCTS, e.g. REPAIRING
    • B29C66/00General aspects of processes or apparatus for joining preformed parts
    • B29C66/50General aspects of joining tubular articles; General aspects of joining long products, i.e. bars or profiled elements; General aspects of joining single elements to tubular articles, hollow articles or bars; General aspects of joining several hollow-preforms to form hollow or tubular articles
    • B29C66/51Joining tubular articles, profiled elements or bars; Joining single elements to tubular articles, hollow articles or bars; Joining several hollow-preforms to form hollow or tubular articles
    • B29C66/53Joining single elements to tubular articles, hollow articles or bars
    • B29C66/534Joining single elements to open ends of tubular or hollow articles or to the ends of bars
    • B29C66/5346Joining single elements to open ends of tubular or hollow articles or to the ends of bars said single elements being substantially flat
    • B29C66/53461Joining single elements to open ends of tubular or hollow articles or to the ends of bars said single elements being substantially flat joining substantially flat covers and/or substantially flat bottoms to open ends of container bodies
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B29WORKING OF PLASTICS; WORKING OF SUBSTANCES IN A PLASTIC STATE IN GENERAL
    • B29CSHAPING OR JOINING OF PLASTICS; SHAPING OF MATERIAL IN A PLASTIC STATE, NOT OTHERWISE PROVIDED FOR; AFTER-TREATMENT OF THE SHAPED PRODUCTS, e.g. REPAIRING
    • B29C66/00General aspects of processes or apparatus for joining preformed parts
    • B29C66/80General aspects of machine operations or constructions and parts thereof
    • B29C66/83General aspects of machine operations or constructions and parts thereof characterised by the movement of the joining or pressing tools
    • B29C66/834General aspects of machine operations or constructions and parts thereof characterised by the movement of the joining or pressing tools moving with the parts to be joined
    • B29C66/8341Roller, cylinder or drum types; Band or belt types; Ball types
    • B29C66/83411Roller, cylinder or drum types
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B29WORKING OF PLASTICS; WORKING OF SUBSTANCES IN A PLASTIC STATE IN GENERAL
    • B29CSHAPING OR JOINING OF PLASTICS; SHAPING OF MATERIAL IN A PLASTIC STATE, NOT OTHERWISE PROVIDED FOR; AFTER-TREATMENT OF THE SHAPED PRODUCTS, e.g. REPAIRING
    • B29C66/00General aspects of processes or apparatus for joining preformed parts
    • B29C66/80General aspects of machine operations or constructions and parts thereof
    • B29C66/83General aspects of machine operations or constructions and parts thereof characterised by the movement of the joining or pressing tools
    • B29C66/834General aspects of machine operations or constructions and parts thereof characterised by the movement of the joining or pressing tools moving with the parts to be joined
    • B29C66/8341Roller, cylinder or drum types; Band or belt types; Ball types
    • B29C66/83411Roller, cylinder or drum types
    • B29C66/83413Roller, cylinder or drum types cooperating rollers, cylinders or drums
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B29WORKING OF PLASTICS; WORKING OF SUBSTANCES IN A PLASTIC STATE IN GENERAL
    • B29CSHAPING OR JOINING OF PLASTICS; SHAPING OF MATERIAL IN A PLASTIC STATE, NOT OTHERWISE PROVIDED FOR; AFTER-TREATMENT OF THE SHAPED PRODUCTS, e.g. REPAIRING
    • B29C66/00General aspects of processes or apparatus for joining preformed parts
    • B29C66/80General aspects of machine operations or constructions and parts thereof
    • B29C66/83General aspects of machine operations or constructions and parts thereof characterised by the movement of the joining or pressing tools
    • B29C66/834General aspects of machine operations or constructions and parts thereof characterised by the movement of the joining or pressing tools moving with the parts to be joined
    • B29C66/8341Roller, cylinder or drum types; Band or belt types; Ball types
    • B29C66/83411Roller, cylinder or drum types
    • B29C66/83415Roller, cylinder or drum types the contact angle between said rollers, cylinders or drums and said parts to be joined being a non-zero angle
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B29WORKING OF PLASTICS; WORKING OF SUBSTANCES IN A PLASTIC STATE IN GENERAL
    • B29CSHAPING OR JOINING OF PLASTICS; SHAPING OF MATERIAL IN A PLASTIC STATE, NOT OTHERWISE PROVIDED FOR; AFTER-TREATMENT OF THE SHAPED PRODUCTS, e.g. REPAIRING
    • B29C66/00General aspects of processes or apparatus for joining preformed parts
    • B29C66/80General aspects of machine operations or constructions and parts thereof
    • B29C66/83General aspects of machine operations or constructions and parts thereof characterised by the movement of the joining or pressing tools
    • B29C66/834General aspects of machine operations or constructions and parts thereof characterised by the movement of the joining or pressing tools moving with the parts to be joined
    • B29C66/8351Jaws mounted on rollers, cylinders, drums, bands, belts or chains; Flying jaws
    • B29C66/83511Jaws mounted on rollers, cylinders, drums, bands, belts or chains; Flying jaws jaws mounted on rollers, cylinders or drums
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B29WORKING OF PLASTICS; WORKING OF SUBSTANCES IN A PLASTIC STATE IN GENERAL
    • B29LINDEXING SCHEME ASSOCIATED WITH SUBCLASS B29C, RELATING TO PARTICULAR ARTICLES
    • B29L2031/00Other particular articles
    • B29L2031/712Containers; Packaging elements or accessories, Packages
    • B29L2031/7162Boxes, cartons, cases
    • B29L2031/7164Blister packages

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)

Description

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

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

PTPシートの製造に際しては、ポケット部に錠剤等が充填された後、カバーフィルムが取着される前段階において、錠剤の欠け等に関する異常、或いは、包装用フィルム(シート部分)に関する異常を検査することが行われる。当該検査としては、例えばポケット部突出側に備えられた照射手段から光が照射され、照射手段とは反対側に備えられたカメラにて透過光を撮像する透過式検査や、ポケット部開口側に備えられた照明手段から錠剤に光を照射し、その反射光をカメラにより撮像する色識別検査(反射式検査)などが実施される。そして、これら各検査において撮像された画像データに基づいて、錠剤の形状や色等が検査されたり、シート上の異物が検査されたりする。   When manufacturing PTP sheets, check for abnormalities related to chipping of the tablets or abnormalities related to the packaging film (sheet portion) before the cover film is attached after the pockets are filled with tablets. Is done. As the inspection, for example, light is irradiated from the irradiation means provided on the pocket protruding side, and a transmission type inspection in which the transmitted light is imaged with a camera provided on the opposite side of the irradiation means, or on the pocket opening side. A color identification inspection (reflection inspection) or the like is performed in which the tablet is irradiated with light from the provided illumination means and the reflected light is imaged by a camera. And based on the image data imaged in these each test | inspection, the shape of a tablet, a color, etc. are test | inspected, or the foreign material on a sheet | seat is test | inspected.

一般的に、前記各検査を行う検査装置は、それぞれ別の場所に設置される単独の検査装置として具現化されており、各装置において錠剤位置を認識した上で各検査を行っていた。   In general, the inspection apparatus that performs each inspection is embodied as a single inspection apparatus installed at a different location, and each inspection is performed after the tablet position is recognized by each apparatus.

例えば、透過式検査においては、カメラから出力される映像信号が所定の画像処理装置によって、所定の閾値をもって二値化される。ここで、錠剤及び異物が存在する部分は暗く映り、背景部は明るく映る。そして、これらの明度の相違を考慮して前記閾値を設定することで、錠剤と背景部とを区別して認識し錠剤の位置特定を行うと共に、ひびや欠けの有無あるいはシート上の異物の存在を前記画像処理装置によって判断することができる。   For example, in the transmission inspection, a video signal output from a camera is binarized with a predetermined threshold by a predetermined image processing device. Here, the part where the tablet and the foreign matter are present appears dark, and the background part appears bright. Then, by setting the threshold value in consideration of these lightness differences, the tablet and the background are distinguished and recognized, the position of the tablet is specified, and the presence or absence of a crack or chip or the presence of foreign matter on the sheet is detected. The determination can be made by the image processing apparatus.

一方、色識別検査において例えば白色錠剤を撮像した場合には、カメラから出力される映像信号が画像処理装置によって二値化されると、錠剤部分は明るく映り、背景部は暗く映る。そして、上記同様に、これらの明度の相違を考慮して前記閾値を設定することで、錠剤と背景部とを区別して認識し錠剤の位置特定を行うと共に、錠剤の色を前記画像処理装置によって判断することができる。   On the other hand, when a white tablet is imaged in the color identification inspection, for example, when the video signal output from the camera is binarized by the image processing device, the tablet portion appears bright and the background portion appears dark. Then, similarly to the above, by setting the threshold value in consideration of the difference in lightness, the tablet and the background part are distinguished and recognized, the position of the tablet is specified, and the color of the tablet is determined by the image processing device. Judgment can be made.

ところが、装置の設置スペース、製造コスト及び検査効率等を考慮して、1つの外観検査装置によって透過式検査及び色識別検査を略同一位置(近接位置)において実施しようとした場合には、両検査のための機構を設置する設置スペースの都合上、両検査位置が近くなってしまう。そのため、色識別検査で撮像される画像には、透過式検査で使用される照明手段に反射した反射光までも撮像されてしまう。つまり、錠剤のみならず背景部まで明るく映ってしまう。この場合、錠剤及び背景部の輝度差やコントラストが小さくなり、当該画像から適正に錠剤位置を検出することは困難となる。   However, in consideration of the installation space of the device, manufacturing cost, inspection efficiency, etc., when a transmission inspection and a color identification inspection are to be performed at substantially the same position (proximity position) by one visual inspection apparatus, both inspections are performed. Both inspection positions will be close due to the installation space for installing the mechanism for this. For this reason, the image picked up by the color identification inspection also picks up even the reflected light reflected by the illumination means used in the transmission inspection. In other words, not only the tablet but also the background part appears bright. In this case, the luminance difference and contrast between the tablet and the background portion are reduced, and it is difficult to detect the tablet position properly from the image.

このような問題に鑑み、例えばカラーフィルタを設けたり、照明手段の色調を異ならせる等して透過光と反射光の波長を異ならせ、波長干渉領域をなくすことによって錠剤位置を検出できるようにしたり(例えば、特許文献1参照)、透過式検査で使用される照明手段に反射した反射光を適宜遮る遮光手段を備えることも考えられる(例えば、特許文献2参照)。
特開2001−41894号公報 特開昭54−143193号公報
In view of such a problem, for example, a color filter is provided, or the wavelengths of transmitted light and reflected light are made different by changing the color tone of the illumination means, etc., so that the tablet position can be detected by eliminating the wavelength interference region. (For example, refer to Patent Document 1) It is also conceivable to include a light shielding means for appropriately blocking reflected light reflected on the illumination means used in the transmission inspection (for example, refer to Patent Document 2).
JP 2001-41894 A JP 54-143193 A

しかしながら、透過光と反射光の波長を異ならせた場合には、特定色しか検出できず、適正な色識別検査を実施できなくなる。一方、遮光手段として検査時に適宜駆動されるシャッタを備えた場合には、当該シャッタの動作が遅く検査速度を上げられず、検査効率の悪化を招くおそれもある。又、遮光手段として液晶シャッタを備えた場合には製造コストの増加が懸念される。   However, if the wavelengths of the transmitted light and the reflected light are different, only a specific color can be detected, and an appropriate color identification inspection cannot be performed. On the other hand, when a shutter that is appropriately driven at the time of inspection is provided as the light shielding means, the operation of the shutter is slow, the inspection speed cannot be increased, and the inspection efficiency may be deteriorated. Further, when a liquid crystal shutter is provided as the light shielding means, there is a concern about an increase in manufacturing cost.

本発明は、上記事情に鑑みてなされたものであり、PTPシートの製造過程における外観不良を検査するに際し、透過式検査及び反射式検査を略同一位置において実施でき、省スペース化、製造コストの低減及び検査効率の向上を図ることのできる外観検査装置、及び、PTP包装機を提供することを主たる目的の一つとしている。   The present invention has been made in view of the above circumstances, and when inspecting the appearance defect in the manufacturing process of the PTP sheet, the transmission type inspection and the reflection type inspection can be performed at substantially the same position, thereby saving space and reducing the manufacturing cost. One of the main objectives is to provide an appearance inspection apparatus and a PTP packaging machine capable of reducing and improving inspection efficiency.

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

手段1.PTPシートの製造過程にあって、搬送される帯状の包装用フィルムに形成されたポケット部に錠剤が収容された後、前記ポケット部を塞ぐようにカバーフィルムがシール状態で取着される前段階において用いられる外観検査装置であって、
前記包装用フィルムのポケット部突出側から前記錠剤及び包装用フィルムに対し所定の光を照射可能な第1光源を具備する第1照明手段と、
前記第1照明手段とは前記包装用フィルムを介して反対側に設けられ、少なくとも前記第1光源から照射され前記包装用フィルムを透過する透過光を撮像可能な第1撮像手段と、
前記包装用フィルムのポケット部開口側から前記錠剤及び包装用フィルムに対し所定の光を照射可能な第2光源を具備する第2照明手段と、
前記包装用フィルムのポケット部開口側において設けられ、少なくとも前記第2光源から照射され前記錠剤に反射した反射光を撮像可能な第2撮像手段と、
前記第1及び第2撮像手段から出力される画像信号を処理する画像処理装置とを備え、
前記第1光源から照射された光の透過光を前記第1撮像手段により撮像し、当該第1撮像手段から出力される画像信号から得た第1検査画像データに基づき、少なくとも前記ポケット部の領域内に存在する錠剤の異常を前記画像処理装置により検出する第1検査と、
前記第2光源から照射される光の反射光を前記第2撮像手段により撮像し、当該第2撮像手段から出力される画像信号から得た第2検査画像データに基づき、少なくとも前記錠剤の表面異常を前記画像処理装置により検出する第2検査とを実行可能に構成され、
前記第1検査に際しては、
前記第1検査画像データから前記錠剤の位置データを算出し、当該位置データを基に前記錠剤の位置を特定して前記錠剤の異常を検出するよう構成され、
前記第2検査に際しては、
前記第1検査において得られた前記錠剤の位置データを基に前記第2検査画像データにおける前記錠剤の位置を割り出し、前記錠剤の表面異常を検出するよう構成されていることを特徴とする外観検査装置。
Means 1. In the manufacturing process of the PTP sheet, after the tablet is stored in the pocket portion formed in the belt-shaped packaging film to be conveyed, the stage before the cover film is attached in a sealed state so as to close the pocket portion Visual inspection apparatus used in
First illumination means comprising a first light source capable of irradiating predetermined light to the tablet and the packaging film from the pocket projecting side of the packaging film;
A first imaging means provided on the opposite side of the first illumination means through the packaging film, capable of imaging transmitted light that is irradiated from at least the first light source and passes through the packaging film;
Second illumination means comprising a second light source capable of irradiating the tablet and the packaging film with predetermined light from the opening side of the pocket portion of the packaging film;
A second imaging means provided on the opening side of the pocket portion of the packaging film and capable of imaging reflected light reflected from the tablet and irradiated from at least the second light source;
An image processing device for processing image signals output from the first and second imaging means,
The transmitted light of the light emitted from the first light source is imaged by the first imaging means, and based on the first inspection image data obtained from the image signal output from the first imaging means, at least the area of the pocket portion A first inspection for detecting abnormalities of the tablet existing in the image processing apparatus;
The reflected light of the light emitted from the second light source is imaged by the second imaging means, and at least the surface abnormality of the tablet is based on the second inspection image data obtained from the image signal output from the second imaging means. Is configured to be capable of performing a second inspection that is detected by the image processing device,
In the first inspection,
Calculating the position data of the tablet from the first inspection image data, configured to detect the abnormality of the tablet by specifying the position of the tablet based on the position data;
In the second inspection,
An appearance inspection configured to determine the position of the tablet in the second inspection image data based on the position data of the tablet obtained in the first inspection, and to detect a surface abnormality of the tablet. apparatus.

上記手段1によれば、PTPシートの製造過程にあって、搬送される帯状の包装用フィルムに形成されたポケット部に錠剤(カプセル錠を含む)が収容された後、ポケット部を塞ぐようにカバーフィルムがシール状態で取着される前段階において外観検査が行われる。すなわち、第1検査においては、第1照明手段の第1光源から錠剤及び包装用フィルムに対し光が照射され、その透過光が第1撮像手段にて撮像される。そして、画像処理装置によって、第1撮像手段から出力される画像信号が処理され、画像信号から得られた画像データに基づき、少なくともポケット部の領域内に存在する錠剤の異常が検出される。一方、第2検査においては、第2照明手段の第2光源から錠剤及び包装用フィルムに対し光が照射され、その反射光が第2撮像手段にて撮像される。そして、画像処理装置によって、第2撮像手段から出力される画像信号が処理され、画像信号から得られた画像データに基づき、少なくとも錠剤の表面異常が検出される。しかし、上記のように1つの外観検査装置によって透過式の第1検査と反射式の第2検査を略同一位置(近接位置)において実施しようとした場合には、両検査のための機構を設置する設置スペースの都合上、両検査位置が近くなってしまう。そのため、第2検査で撮像される画像には、透過式の第1検査で使用される第1照明手段に反射した反射光までも映ってしまう。つまり、錠剤のみならず背景部まで明るく映ってしまう。この場合、錠剤及び背景部の輝度差やコントラストが小さくなり、当該画像から適正に錠剤位置を検出することは困難となる。この点、本手段では、第2検査に際し、第1検査において得られた錠剤の位置データを基に錠剤の位置を推定し、錠剤の表面異常を検出する。そのため、錠剤の位置を的確に把握することができ、錠剤の表面異常の正確な検査を実施できる。ひいては、透過式の第1検査で使用される第1照明手段に反射した反射光を適宜遮る遮光手段を備える必要もないため、当該遮光手段としてのシャッタの動作速度に起因した検査効率の悪化や、遮光手段として液晶シャッタを備えることによる製造コストの増加などの不具合を低減できる。結果として、透過式の第1検査及び反射式の第2検査を略同一位置において実施でき、省スペース化、製造コストの低減及び検査効率の向上を図ることができる。なお、以下の手段においても同様であるが、錠剤の異常とは、錠剤の有無、ポケット部内の異物、錠剤のひびや欠けなどである。また、錠剤の表面異常とは、当該錠剤の色の異常や、当該錠剤に付着した異物などである。   According to the above means 1, in the manufacturing process of the PTP sheet, after the tablets (including capsule tablets) are accommodated in the pocket portions formed in the belt-shaped packaging film to be conveyed, the pocket portions are closed. An appearance inspection is performed before the cover film is attached in a sealed state. That is, in a 1st test | inspection, light is irradiated with respect to a tablet and the packaging film from the 1st light source of a 1st illumination means, and the transmitted light is imaged by the 1st imaging means. Then, the image processing apparatus processes the image signal output from the first imaging unit, and detects an abnormality of the tablet existing at least in the region of the pocket portion based on the image data obtained from the image signal. On the other hand, in a 2nd test | inspection, light is irradiated with respect to a tablet and the packaging film from the 2nd light source of a 2nd illumination means, and the reflected light is imaged by the 2nd imaging means. Then, the image signal output from the second imaging means is processed by the image processing device, and at least a tablet surface abnormality is detected based on the image data obtained from the image signal. However, when the transmission-type first inspection and the reflection-type second inspection are to be performed at substantially the same position (proximity position) by one visual inspection apparatus as described above, a mechanism for both inspections is installed. Both inspection positions will be close due to the installation space. Therefore, the image picked up in the second inspection also includes reflected light reflected by the first illumination means used in the transmission type first inspection. In other words, not only the tablet but also the background part appears bright. In this case, the luminance difference and contrast between the tablet and the background portion are reduced, and it is difficult to detect the tablet position properly from the image. In this regard, in this means, in the second inspection, the tablet position is estimated based on the tablet position data obtained in the first inspection, and the tablet surface abnormality is detected. Therefore, the position of the tablet can be accurately grasped, and the tablet surface abnormality can be accurately inspected. As a result, since it is not necessary to provide light shielding means for appropriately blocking reflected light on the first illumination means used in the transmission type first inspection, the inspection efficiency deteriorates due to the operating speed of the shutter as the light shielding means. In addition, problems such as an increase in manufacturing cost due to the provision of the liquid crystal shutter as the light shielding means can be reduced. As a result, the first inspection of the transmission type and the second inspection of the reflection type can be performed at substantially the same position, and space saving, manufacturing cost reduction, and inspection efficiency can be improved. The same applies to the following means, but the abnormality of the tablet includes the presence or absence of the tablet, foreign matter in the pocket portion, cracking or chipping of the tablet, and the like. Further, the tablet surface abnormality is an abnormality in the color of the tablet, a foreign matter adhering to the tablet, or the like.

手段2.PTPシートの製造過程にあって、搬送される帯状の包装用フィルムに形成されたポケット部に錠剤が収容された後、前記ポケット部を塞ぐようにカバーフィルムがシール状態で取着される前段階において用いられる外観検査装置であって、
前記包装用フィルムのポケット部突出側から前記錠剤及び包装用フィルムに対し所定の光を照射可能な第1光源を具備する第1照明手段と、
前記第1照明手段とは前記包装用フィルムを介して反対側に設けられ、少なくとも前記第1光源から照射され前記包装用フィルムを透過する透過光を撮像可能な第1撮像手段と、
前記包装用フィルムのポケット部開口側から前記錠剤及び包装用フィルムに対し所定の光を照射可能な第2光源を具備する第2照明手段と、
前記包装用フィルムのポケット部開口側において設けられ、少なくとも前記第2光源から照射され前記錠剤に反射した反射光を撮像可能な第2撮像手段と、
前記第1及び第2撮像手段から出力される画像信号を処理する画像処理装置とを備え、
前記第1光源から照射された光の透過光を前記第1撮像手段により撮像し、当該第1撮像手段から出力される画像信号から得た第1検査画像データに基づき、少なくとも前記ポケット部の領域内に存在する錠剤の異常を前記画像処理装置により検出する第1検査と、
前記第2光源から照射される光の反射光を前記第2撮像手段により撮像し、当該第2撮像手段から出力される画像信号から得た第2検査画像データに基づき、少なくとも前記錠剤の表面異常を前記画像処理装置により検出する第2検査とを実行可能に構成され、
前記第1検査に際しては、
前記第1検査画像データから前記錠剤の位置データである検出位置データを算出する処理と、
当該第1検査用に予め設定された第1錠剤ウインドウを、前記第1検査画像データにおける前記錠剤又はポケット部の位置に合わせて位置決めする処理とを行い、
前記第1錠剤ウインドウの領域内外を区別して前記錠剤の異常を検出するよう構成され、
前記第2検査に際しては、
前記第1検査において得られた前記検出位置データと、前記第1検査における前記錠剤の基準位置データとして予め設定された第1基準位置データとのズレ量として算出される検出位置ズレ量、及び、当該第2検査における前記錠剤の基準位置データとして予め設定された第2基準位置データを基に、前記第2検査画像データにおける前記錠剤の位置データを割り出し、当該位置データを基に、当該第2検査用に予め設定された第2錠剤ウインドウを前記第2検査画像データにおける前記錠剤の位置に合わせて位置決めする処理を行い、
前記第2錠剤ウインドウの領域内外を区別して前記錠剤の表面異常を検出するよう構成されていることを特徴とする外観検査装置。
Mean 2. In the manufacturing process of the PTP sheet, after the tablet is stored in the pocket portion formed in the belt-shaped packaging film to be conveyed, the stage before the cover film is attached in a sealed state so as to close the pocket portion Visual inspection apparatus used in
First illumination means comprising a first light source capable of irradiating predetermined light to the tablet and the packaging film from the pocket projecting side of the packaging film;
A first imaging means provided on the opposite side of the first illumination means through the packaging film, capable of imaging transmitted light that is irradiated from at least the first light source and passes through the packaging film;
Second illumination means comprising a second light source capable of irradiating the tablet and the packaging film with predetermined light from the opening side of the pocket portion of the packaging film;
A second imaging means provided on the opening side of the pocket portion of the packaging film and capable of imaging reflected light reflected from the tablet and irradiated from at least the second light source;
An image processing device for processing image signals output from the first and second imaging means,
The transmitted light of the light emitted from the first light source is imaged by the first imaging means, and based on the first inspection image data obtained from the image signal output from the first imaging means, at least the area of the pocket portion A first inspection for detecting abnormalities of the tablet existing in the image processing apparatus;
The reflected light of the light emitted from the second light source is imaged by the second imaging means, and at least the surface abnormality of the tablet is based on the second inspection image data obtained from the image signal output from the second imaging means. Is configured to be capable of performing a second inspection that is detected by the image processing device,
In the first inspection,
Processing for calculating detection position data which is position data of the tablet from the first inspection image data;
The first tablet window set in advance for the first inspection is positioned in accordance with the position of the tablet or pocket portion in the first inspection image data, and
It is configured to detect an abnormality of the tablet by distinguishing the inside and outside of the area of the first tablet window,
In the second inspection,
A detection position shift amount calculated as a shift amount between the detection position data obtained in the first inspection and the first reference position data preset as the reference position data of the tablet in the first inspection; and Based on the second reference position data set in advance as the reference position data of the tablet in the second inspection, the position data of the tablet in the second inspection image data is determined, and on the basis of the position data, the second Performing a process of positioning a second tablet window preset for inspection in accordance with the position of the tablet in the second inspection image data;
An appearance inspection apparatus configured to detect an abnormal surface of the tablet by distinguishing between the inside and outside of the area of the second tablet window.

上記手段2によれば、上記手段1と同様の作用効果が奏される。さらに、本手段では、各錠剤ウインドウを設定することにより、検査効率及び検査精度の向上を図ることができる。また、第1検査において検出される錠剤の位置データ(検出位置データ)や、当該位置データと予め設定された第1基準位置データとのズレ量(検出位置ズレ量)を基に、第2検査にて撮像される第2検査画像データにおける錠剤の位置を割り出し、第2錠剤ウインドウを位置決めする。このため、第2錠剤ウインドウをより正確に位置決めすることができ、検査精度を高めることができる。なお、上記各錠剤ウインドウは、錠剤又はポケット部内の領域と、錠剤又はポケット部外のシート部(包装用フィルム)の領域とを区別するための境界とされるもの、つまり各検査における検査領域を画定するものであり、錠剤又はポケット部の形状に対応して設定される。従って、上記各検査の検査内容を鑑みると、上記第1錠剤ウインドウは、少なくとも前記ポケット部の外形よりも大きく設定されていることが好ましく、上記第2錠剤ウインドウは、少なくとも前記錠剤の外形よりも小さく設定されていることが好ましい。但し、錠剤が例えば半カプセル同士を組み合わせたカプセル錠の場合には、各錠剤ウインドウは前記両カプセルの境界部を含まないように二分割された構成となる。   According to the means 2, the same effects as the means 1 can be obtained. Furthermore, in this means, it is possible to improve inspection efficiency and inspection accuracy by setting each tablet window. In addition, the second inspection is performed based on the tablet position data (detection position data) detected in the first inspection and the deviation amount (detection position deviation amount) between the position data and the first reference position data set in advance. The position of the tablet in the second inspection image data imaged at is determined, and the second tablet window is positioned. For this reason, a 2nd tablet window can be positioned more correctly and test | inspection precision can be improved. In addition, each said tablet window is used as the boundary for distinguishing the area | region in a tablet or a pocket part, and the area | region of the sheet | seat part (packaging film) outside a tablet or a pocket part, ie, the test | inspection area | region in each test | inspection. It defines and is set corresponding to the shape of the tablet or the pocket. Therefore, in view of the inspection contents of each inspection, it is preferable that the first tablet window is set to be at least larger than the outer shape of the pocket portion, and the second tablet window is at least larger than the outer shape of the tablet. It is preferable to set it small. However, when the tablet is, for example, a capsule tablet in which half capsules are combined, each tablet window is divided into two parts so as not to include the boundary part between the two capsules.

手段3.前記第1検査及び第2検査の前段階に行われる検査前設定処理において、
前記第1光源からの透過光を前記第1撮像手段により撮像し、当該第1撮像手段から出力される画像信号から設定用第1画像データを取得するとともに、当該第1撮像手段による撮像に続けて、前記第1光源からの透過光を前記第2撮像手段により撮像し、当該第2撮像手段から出力される画像信号から設定用第2画像データを取得する処理と、
前記設定用第1画像データから前記錠剤の位置データを算出し、当該位置データを前記第1基準位置データとして設定する処理と、
前記設定用第2画像データから前記錠剤の位置データを算出し、当該位置データを前記第2基準位置データとして設定する処理と、
前記第1錠剤ウインドウを設定する処理と、
前記第2錠剤ウインドウを設定する処理とを行うよう構成されていることを特徴とする手段2に記載の外観検査装置。
Means 3. In the pre-inspection setting process performed before the first inspection and the second inspection,
The transmitted light from the first light source is imaged by the first imaging means, setting first image data is acquired from the image signal output from the first imaging means, and the imaging by the first imaging means is continued. A process of capturing the transmitted light from the first light source by the second imaging unit, and obtaining setting second image data from an image signal output from the second imaging unit;
Calculating the position data of the tablet from the first image data for setting, and setting the position data as the first reference position data;
Calculating the position data of the tablet from the second image data for setting, and setting the position data as the second reference position data;
Processing to set the first tablet window;
The appearance inspection apparatus according to claim 2, wherein the appearance inspection apparatus is configured to perform processing for setting the second tablet window.

上記手段3によれば、検査前設定処理において、第1光源からの透過光を第2撮像手段により撮像し、設定用第2画像データを取得することにより、当該設定用第2画像データから錠剤の位置データを算出し、当該位置データを第2基準位置データとして設定する。結果として、より正確な第2基準位置データを得ることができ、検査精度を高めることができる。   According to the means 3, in the pre-inspection setting process, the transmitted light from the first light source is imaged by the second imaging means, and the second image data for setting is obtained, whereby the tablet is obtained from the second image data for setting. Position data is calculated, and the position data is set as second reference position data. As a result, more accurate second reference position data can be obtained, and inspection accuracy can be increased.

手段4.前記第1光源からの透過光を前記第1撮像手段により撮像し、当該第1撮像手段から出力される画像信号から設定用第3画像データを取得するとともに、当該第1撮像手段による撮像に続けて、前記第2光源からの反射光を前記第2撮像手段により撮像し、当該第2撮像手段から出力される画像信号から設定用第4画像データを取得する処理と、
前記第1基準位置データと前記第2基準位置データとのズレ量を基準位置ズレ量として算出する処理と、
前記設定用第3画像データから前記錠剤の位置データを算出し、当該位置データと前記基準位置ズレ量とから前記設定用第4画像データにおける前記錠剤の位置データを割り出し、当該位置データを基に、前記第2錠剤ウインドウを前記設定用第4画像データにおける前記錠剤の位置に合わせて位置決めする処理と、
前記設定用第4画像データにおける前記第2錠剤ウインドウ内から、前記第2検査において前記錠剤の表面異常を検出する際の判定基準値データを抽出する処理とを行うことを特徴とする手段3に記載の外観検査装置。
Means 4. The transmitted light from the first light source is imaged by the first imaging unit, the setting third image data is obtained from the image signal output from the first imaging unit, and the imaging by the first imaging unit is continued. A process of capturing reflected light from the second light source by the second imaging unit and acquiring fourth image data for setting from an image signal output from the second imaging unit;
A process of calculating a deviation amount between the first reference position data and the second reference position data as a reference position deviation amount;
The position data of the tablet is calculated from the third image data for setting, the position data of the tablet in the fourth image data for setting is calculated from the position data and the reference positional deviation amount, and based on the position data A process of positioning the second tablet window in accordance with the position of the tablet in the setting fourth image data;
Means 3 for extracting determination reference value data for detecting an abnormal surface of the tablet in the second inspection from the second tablet window in the fourth image data for setting; Appearance inspection apparatus as described.

上記手段4によれば、第2錠剤ウインドウを設定用第4画像データに設定して判定基準値データを抽出することにより、より適正な判定基準値を取得し、検査精度を高めることができる。   According to the means 4, by setting the second tablet window as the fourth image data for setting and extracting the determination reference value data, a more appropriate determination reference value can be acquired and the inspection accuracy can be improved.

手段5.前記第1検査において、前記第1錠剤ウインドウの領域外として区別されたシート部領域に存在するシート部の異常を検出するよう構成されていることを特徴とする手段2乃至4のいずれかに記載の外観検査装置。   Means 5. The means according to any one of means 2 to 4, wherein the first inspection is configured to detect an abnormality of a sheet portion existing in a sheet portion region distinguished from outside the region of the first tablet window. Visual inspection equipment.

上記手段5によれば、シート部の検査も合わせて実施できるため、検査効率の向上を図ることができる。なお、シート部の異常とは、当該シート部に付着した異物などである。   According to the means 5, since the inspection of the sheet portion can be performed together, the inspection efficiency can be improved. Note that the abnormality of the sheet part is a foreign matter or the like attached to the sheet part.

手段6.前記錠剤はカプセル錠であって、
前記第1検査に際しては、
前記第1検査画像データから、予め設定された基準姿勢からの前記カプセル錠の傾き量を算出する処理と、
前記第1錠剤ウインドウを位置決めする処理に合わせて、当該第1錠剤ウインドウの姿勢を前記カプセル錠の傾き量を基に調整する処理を行い、
前記第2検査に際しては、
前記第2錠剤ウインドウを位置決めする処理に合わせて、当該第2錠剤ウインドウの姿勢を前記カプセル錠の傾き量を基に調整する処理を行うことを特徴とする手段2乃至5のいずれかに記載の外観検査装置。
Means 6. The tablet is a capsule tablet,
In the first inspection,
A process of calculating an inclination amount of the capsule lock from a preset reference posture from the first inspection image data;
In accordance with the process of positioning the first tablet window, the process of adjusting the posture of the first tablet window based on the tilt amount of the capsule tablet,
In the second inspection,
According to any one of means 2 to 5, characterized in that processing for adjusting the posture of the second tablet window based on the tilt amount of the capsule tablet is performed in accordance with the processing for positioning the second tablet window. Appearance inspection device.

上記手段6によれば、錠剤がカプセル錠である場合には、カプセル錠の傾き量を算出し、各錠剤ウインドウの傾き量を補正するため、検査精度をより高めることができる。もちろん、第1及び第2検査の前段階に行われる検査前設定処理において、カプセル錠の基準姿勢を設定する処理を行うこととしてもよい。   According to the means 6, when the tablet is a capsule tablet, the amount of tilt of the capsule tablet is calculated and the amount of tilt of each tablet window is corrected, so that the inspection accuracy can be further increased. Of course, in the pre-inspection setting process that is performed before the first and second inspections, a process for setting the reference posture of the capsule lock may be performed.

手段7.前記第1検査は、前記第1検査画像データから所定の閾値を基準に二値化した二値化画像データを取得した上で、少なくとも前記錠剤の異常を検出する透過式検査であることを特徴とする手段1乃至6のいずれかに記載の外観検査装置。   Mean 7 The first inspection is a transmission inspection that detects at least an abnormality of the tablet after obtaining binarized image data binarized based on a predetermined threshold from the first inspection image data. The visual inspection apparatus according to any one of means 1 to 6.

手段8.前記第2検査は、前記第2検査画像データとして取得されたカラー画像データから少なくとも前記錠剤の色異常を検出する色識別検査であることを特徴とする手段1乃至7のいずれかに記載の外観検査装置。   Means 8. The appearance according to any one of means 1 to 7, wherein the second inspection is a color identification inspection that detects at least color abnormality of the tablet from color image data acquired as the second inspection image data. Inspection device.

上記手段8によれば、上記各手段の構成を基に、透過光と反射光の波長を異ならせることなく色識別検査を実施できるため、検出可能な色が特定色に限られず、適正な色識別検査を実施できる。   According to the means 8, since the color identification inspection can be performed based on the configuration of each means without changing the wavelengths of the transmitted light and the reflected light, the detectable color is not limited to a specific color, and an appropriate color Identification check can be performed.

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

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

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

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

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

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

さて、前記充填装置14の下流側、かつ、前記フィルム受けロール18及び加熱ロール19の上流側には、容器フィルム3の移送経路に沿って、容器フィルム3(充填された錠剤5及びシート部分)の外観不良を検査するための外観検査装置21が配設されている。当該外観検査装置21は、(1)ポケット部2に充填された錠剤5の異常として錠剤5の有無、割れ、欠け等の異常の検出、及び、ポケット部2以外のシート部の異常としてシート部上に存在する毛髪等の異物(以下、「シート異物」と称する)の検出を主目的とする検査(以下、便宜上「A1タイプ検査」と称する)、(2)錠剤5の表面異常として錠剤5の色の異常の検出を主目的とする検査(以下、便宜上「A2タイプ検査」と称する)を行うものである。A1タイプ検査が本実施形態における第1検査(透過式検査)に相当し、A2タイプ検査が第2検査(色識別検査)に相当する。   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, the container film 3 (filled tablets 5 and sheet portions) along the transfer path of the container film 3. An appearance inspection apparatus 21 for inspecting the appearance defects is provided. The appearance inspection apparatus 21 (1) detects abnormalities such as presence / absence of a tablet 5, cracks, chipping, etc. as abnormalities of the tablet 5 filled in the pocket part 2, and sheet parts as abnormalities of sheet parts other than the pocket part 2 Inspection (hereinafter referred to as “A1 type inspection” for convenience) for the purpose of detecting foreign matter such as hair (hereinafter referred to as “sheet foreign matter”) present on the tablet, and (2) Tablet 5 as a surface abnormality of tablet 5 Inspection for the purpose of detecting the color abnormality (hereinafter referred to as “A2 type inspection” for convenience). The A1 type inspection corresponds to the first inspection (transmission type inspection) in the present embodiment, and the A2 type inspection corresponds to the second inspection (color identification inspection).

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

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

外観検査装置21は、第1照明手段としての面発光するA1用照明装置22E、第2照明手段としてのA2用照明装置22H、第1撮像手段としてのA1用カメラ23E、第2撮像手段としてのA2用カメラ23H、画像処理装置24、モニタ25、並びにキーボード26等を備えている。   The appearance inspection apparatus 21 includes an A1 illumination device 22E that emits light as a first illumination means, an A2 illumination device 22H as a second illumination means, an A1 camera 23E as a first imaging means, and a second imaging means. An A2 camera 23H, an image processing device 24, a monitor 25, a keyboard 26, and the like are provided.

図1に示すように、A1用照明装置22Eは容器フィルム3のポケット部2突出側に設けられ、A2用照明装置22Hは容器フィルム3のポケット部2開口側に設けられている。各照明装置22E,22Hはそれぞれ白色光(可視光)を照射する図示しない光源を有している。A1用照明装置22Eの光源が本実施形態における第1光源に相当し、A2用照明装置22Hの光源が第2光源に相当する。   As shown in FIG. 1, the A1 illumination device 22E is provided on the side of the pocket film 2 protruding from the container film 3, and the A2 illumination device 22H is provided on the pocket film 2 opening side of the container film 3. Each of the lighting devices 22E and 22H has a light source (not shown) that emits white light (visible light). The light source of the A1 illumination device 22E corresponds to the first light source in the present embodiment, and the light source of the A2 illumination device 22H corresponds to the second light source.

また、本実施形態では、A1用カメラ23Eとしてモノクロカメラが採用され、A2用カメラ23Hとしてカラーカメラが採用されており、両カメラ23E,23Hは、ほぼ1箇所に集結して配置されている。   In the present embodiment, a monochrome camera is employed as the A1 camera 23E, and a color camera is employed as the A2 camera 23H. The two cameras 23E and 23H are arranged almost at one place.

次に各カメラ23E,23Hと照明装置22E,22Hとの関係について説明する。本実施形態では、各カメラ23E,23Hは、PTPフィルム20の平面に対して、略垂直方向から撮像可能となっており、A1用照明装置22Eから照射された光が容器フィルム3を透過し、各カメラ23E,23Hによってそれぞれ撮像されるように構成されている。各カメラ23E,23Hによって撮像された画像データは、各カメラ23E,23H内部においてデジタル信号に変換された上で、デジタル信号の形で画像処理装置24に入力されるようになっている。   Next, the relationship between the cameras 23E and 23H and the lighting devices 22E and 22H will be described. In this embodiment, each camera 23E, 23H can image from a substantially vertical direction with respect to the plane of the PTP film 20, and the light emitted from the A1 illumination device 22E passes through the container film 3, Each of the cameras 23E and 23H is configured to take an image. Image data captured by each camera 23E, 23H is converted into a digital signal inside each camera 23E, 23H, and then input to the image processing device 24 in the form of a digital signal.

さらに、A2用照明装置22Hから照射された光は錠剤5及び密封用フィルム4を照らし、錠剤5及び密封用フィルム4から反射した光がA2用カメラ23Hによってカラー撮像されるように構成されている。A2用カメラ23Hによって撮像された画像データ(カラー画像データ)は、当該カメラ23H内部においてデジタル信号に変換された上で、デジタル信号の形で画像処理装置24に入力されるようになっている。   Further, the light irradiated from the A2 illumination device 22H illuminates the tablet 5 and the sealing film 4, and the light reflected from the tablet 5 and the sealing film 4 is configured to be color-captured by the A2 camera 23H. . Image data (color image data) captured by the A2 camera 23H is converted into a digital signal inside the camera 23H and then input to the image processing device 24 in the form of a digital signal.

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

従って、各カメラ23E,23Hで撮像された画像データは、デジタル信号に変換された後、それぞれ対応する各画像メモリ41E,41Hに記憶される。また、各画像データは、検査時において、対応するマスキング手段42E,42Hによりマスキング処理が行われた後、再度各画像メモリ41E,41Hに記憶され、同様に、二値化手段43E,43Hにより二値化された後、再度各画像メモリ41E,41Hに記憶される。   Therefore, the image data captured by the cameras 23E and 23H are converted into digital signals and then stored in the corresponding image memories 41E and 41H, respectively. Each image data is subjected to masking processing by the corresponding masking means 42E and 42H at the time of inspection, and is stored again in the image memories 41E and 41H. Similarly, the image data is binary-coded by the binarizing means 43E and 43H. After being converted into a value, it is stored again in the image memories 41E and 41H.

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

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

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

例えば、本実施形態では、所定のシート単位がA1用カメラ23Eの下に移動したタイミングにおいて、当該A1用カメラ23Eによる撮像が行われる。そして、前記シート単位がA2用カメラ23Hの下に移動したタイミングにおいて、当該A2用カメラ23Hによる撮像が行われる。このように、本実施形態では、ほぼ同一箇所にある各カメラ23E,23Hでほぼ同一箇所を撮像しようとしているものの、A1用カメラ23Eの撮像タイミングT1よりも幾分遅い(例えば10msec遅い)タイミングT2でA2用カメラ23Hによる撮像が行われる。従って、撮像タイミングに若干の相違となることから、撮像されるPTPフィルム20のシート単位位置にも若干の相違が生じうるものである。   For example, in the present embodiment, imaging by the A1 camera 23E is performed at a timing when a predetermined sheet unit moves below the A1 camera 23E. Then, at the timing when the sheet unit moves below the A2 camera 23H, imaging is performed by the A2 camera 23H. As described above, in this embodiment, the cameras 23E and 23H located at substantially the same location are about to capture the same location, but the timing T2 is somewhat later (for example, 10 msec later) than the imaging timing T1 of the A1 camera 23E. Thus, imaging by the A2 camera 23H is performed. Accordingly, since there is a slight difference in the imaging timing, a slight difference can also occur in the sheet unit position of the PTP film 20 to be imaged.

次に、上記PTPフィルム20の外観検査(A1タイプ検査及びA2タイプ検査)の手順について説明する。   Next, the procedure of appearance inspection (A1 type inspection and A2 type inspection) of the PTP film 20 will be described.

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

同ルーチンにおいては、先ずステップS101において、A1用照明装置22Eの点灯状態かつA2用照明装置22Hの消灯状態で、各カメラ23E,23Hによって連続して同一の良品(不良品でないことが明らかなPTPシート)を撮像し、当該良品の濃淡画像をそれぞれ取得する。以下、便宜上、このステップS101においてA1用カメラ23Eから得られた濃淡画像をA1濃淡画像といい、A2用カメラ23Hから得られた濃淡画像をA2濃淡画像という。A1濃淡画像又は当該A1濃淡画像を二値化した二値化画像データが本実施形態における設定用第1画像データに相当し、A2濃淡画像又は当該A2濃淡画像を二値化した二値化画像データが設定用第2画像データに相当する。   In this routine, first, in step S101, the same non-defective product (PTP that is clearly not defective) is continuously detected by the cameras 23E and 23H in the lighting state of the A1 lighting device 22E and the lighting state of the A2 lighting device 22H. Sheet), and a gray image of the non-defective product is acquired. Hereinafter, for the sake of convenience, the grayscale image obtained from the A1 camera 23E in step S101 is referred to as an A1 grayscale image, and the grayscale image obtained from the A2 camera 23H is referred to as an A2 grayscale image. The A1 grayscale image or the binarized image data obtained by binarizing the A1 grayscale image corresponds to the first image data for setting in the present embodiment, and the A2 grayscale image or the binary image obtained by binarizing the A2 grayscale image. The data corresponds to the setting second image data.

ステップS102において、A1用照明装置22Eの点灯状態かつA2用照明装置22Hの消灯状態でA1用カメラ23Eにより良品の濃淡画像を取得するとともに、続けてA1用照明装置22Eの消灯状態かつA2用照明装置22Hの点灯状態でA2用カメラ23Hにより良品のカラー画像を取得する。以下、便宜上、このステップS102においてA1用カメラ23Eから得られた良品濃淡画像をA1サンプル画像といい、A2用カメラ23Hから得られた良品カラー画像をA2サンプル画像という。A1サンプル画像が本実施形態における設定用第3画像データに相当し、A2サンプル画像が設定用第4画像データに相当する。   In step S102, a non-defective gray image is acquired by the A1 camera 23E while the A1 illumination device 22E is turned on and the A2 illumination device 22H is turned off, and the A1 illumination device 22E is turned off and the A2 illumination is continued. A non-defective color image is acquired by the A2 camera 23H in the lighting state of the device 22H. Hereinafter, for convenience, the non-defective gray image obtained from the A1 camera 23E in step S102 is referred to as an A1 sample image, and the non-defective color image obtained from the A2 camera 23H is referred to as an A2 sample image. The A1 sample image corresponds to the setting third image data in the present embodiment, and the A2 sample image corresponds to the setting fourth image data.

ステップS103において、ステップS101で取得したA1濃淡画像及びA2濃淡画像からそれぞれ各錠剤5の位置データ〔座標データ(x,y)〕として当該錠剤5の重心位置の座標データ(以下、単に重心位置データという)を算出する。そして、これら各錠剤5の重心位置データを各検査における各錠剤5の基準位置として設定する。詳しくは、A1濃淡画像から得られた各錠剤5の重心位置データをA1タイプ検査における各錠剤5の基準位置となる第1基準位置データとして設定し、データメモリ45Eに格納(記憶)する。一方、A2濃淡画像から得られた各錠剤5の重心位置データをA2タイプ検査における各錠剤5の基準位置となる第2基準位置データとして設定し、データメモリ45Hに格納(記憶)する。なお、これらの処理は、A1濃淡画像及びA2濃淡画像をそれぞれ錠剤検知レベルとなる所定の閾値を基準に二値化し、これら二値化画像データを画像メモリ41E,41Hに格納した後に、当該二値化画像データを基に行われる。   In step S103, the coordinate data of the center of gravity of the tablet 5 (hereinafter simply referred to as the center of gravity position data) as position data [coordinate data (x, y)] of each tablet 5 from the A1 grayscale image and A2 grayscale image acquired in step S101. Calculated). Then, the gravity center position data of each tablet 5 is set as the reference position of each tablet 5 in each inspection. Specifically, the center-of-gravity position data of each tablet 5 obtained from the A1 grayscale image is set as first reference position data that becomes the reference position of each tablet 5 in the A1 type inspection, and is stored (stored) in the data memory 45E. On the other hand, the center-of-gravity position data of each tablet 5 obtained from the A2 grayscale image is set as second reference position data to be the reference position of each tablet 5 in the A2 type inspection, and is stored (stored) in the data memory 45H. In these processes, the A1 grayscale image and the A2 grayscale image are binarized with reference to predetermined threshold values that are tablet detection levels, and the binarized image data is stored in the image memories 41E and 41H, and then the binarized image data is stored. This is performed based on the valued image data.

ステップS104において、A1濃淡画像における所定の錠剤5の重心位置データと、当該錠剤5のA2濃淡画像における重心位置データとのズレ量を算出し、当該ズレ量を基準位置ズレ量α1として設定する。そして、当該基準位置ズレ量α1をデータメモリ45Eに格納(記憶)する。なお、基準位置ズレ量α1は、上述したように各カメラ23E,23Hの配置(検査位置の違い)とシートの搬送によって生じる撮像タイミングの違いに基づいた位置ズレ量であり、各錠剤5に関し略同一とみなすことができる。   In step S104, a deviation amount between the center-of-gravity position data of the predetermined tablet 5 in the A1 grayscale image and the gravity center position data in the A2 grayscale image of the tablet 5 is calculated, and the deviation amount is set as the reference position deviation amount α1. Then, the reference position deviation amount α1 is stored (stored) in the data memory 45E. Note that the reference position shift amount α1 is a position shift amount based on the difference in imaging timing caused by the arrangement of the cameras 23E and 23H (difference in inspection position) and sheet conveyance as described above. Can be considered identical.

ステップS105において、ステップS103で取得したA1濃淡画像の二値化画像データから各ポケット部2の位置を割り出し、当該ポケット部2に合わせてA1タイプ検査用の第1錠剤ウインドウPW1を設定する。本実施形態における第1錠剤ウインドウPW1は、ポケット部2内の領域(ポケット部領域)と、ポケット部2外のシート部の領域(シート部領域)とを区別するための境界とされるものであり、図2(c)に示すように、ポケット部2の円と同心円をなし、かつ、直径が一回り(例えば約1mm)大きく設定される。そして、A1タイプ検査に際しては、各検査画像データに関し、第1錠剤ウインドウPW1が設定された上で、ポケット部2内の領域については錠剤5の異常が、ポケット部2外の領域についてはシート部の異常が、それぞれ検出されるようになっている。   In step S105, the position of each pocket portion 2 is determined from the binarized image data of the A1 grayscale image acquired in step S103, and the first tablet window PW1 for A1 type inspection is set in accordance with the pocket portion 2. The first tablet window PW1 in the present embodiment is a boundary for distinguishing between the region in the pocket portion 2 (pocket portion region) and the region of the sheet portion outside the pocket portion 2 (sheet portion region). Yes, as shown in FIG. 2 (c), it is concentric with the circle of the pocket portion 2, and the diameter is set to be larger (for example, about 1 mm). When the A1 type inspection is performed, regarding each inspection image data, after the first tablet window PW1 is set, an abnormality of the tablet 5 occurs in the area in the pocket portion 2, and a sheet portion in the area outside the pocket portion 2. Each of these abnormalities is detected.

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

ステップS107において、A2タイプ検査における錠剤5の色基準値F0となる色基準値データ(判定基準値データ)を抽出する処理を行う。より詳しくは、まずA1サンプル画像から各錠剤5の重心位置データを算出し、当該重心位置データからステップS104で取得した基準位置ズレ量α1分だけずれた重心位置データを、A2サンプル画像における各錠剤5の重心位置データとして割り出す。そして、各錠剤5の重心位置データに合わせて上記第2錠剤ウインドウPW2をA2サンプル画像に位置決した後、第2錠剤ウインドウPW2内から色基準値データを抽出し、判定用メモリ44Hに格納(記憶)する。例えば、本実施形態では、第2錠剤ウインドウPW2内にある複数の画素の中から輝度の高い順に3つの画素を選出するとともに、当該3画素のRGB各成分毎の平均値R0,G0,B0を算出し、当該各平均値R0,G0,B0を構成成分とする色基準値F0(R0,G0,B0)を判定基準値として設定する。なお、A1サンプル画像から得た錠剤5の重心位置データを基にA2サンプル画像における錠剤5の重心位置データを求めるようにしているのは、反射光を撮像した画像であるA2サンプル画像においては、錠剤5の背景部まで明るく映ってしまい、錠剤5の重心位置データを適正に算出することが困難であるためである。なお、基準位置ズレ量α1分だけ移動させるのは、上述した撮像タイミングの差異によるズレ量を補正するためである。   In step S107, a process of extracting color reference value data (determination reference value data) that becomes the color reference value F0 of the tablet 5 in the A2 type inspection is performed. More specifically, first, the centroid position data of each tablet 5 is calculated from the A1 sample image, and the centroid position data shifted from the centroid position data by the reference position shift amount α1 obtained in step S104 is used as each pill in the A2 sample image. 5 as the center of gravity position data. Then, after positioning the second tablet window PW2 to the A2 sample image in accordance with the gravity center position data of each tablet 5, color reference value data is extracted from the second tablet window PW2 and stored in the determination memory 44H ( Remember. For example, in the present embodiment, three pixels are selected in descending order from the plurality of pixels in the second tablet window PW2, and the average values R0, G0, B0 for the respective RGB components of the three pixels are selected. The color reference value F0 (R0, G0, B0) having the average values R0, G0, B0 as constituent components is set as the determination reference value. The reason why the center-of-gravity position data of the tablet 5 in the A2 sample image is obtained based on the center-of-gravity position data of the tablet 5 obtained from the A1 sample image is as follows. This is because the background portion of the tablet 5 is brightly reflected and it is difficult to properly calculate the gravity center position data of the tablet 5. The reason why the reference position shift amount α1 is moved is to correct the shift amount due to the difference in the imaging timing described above.

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

次に、A1タイプ検査について図5のフローチャートに従って説明する。本実施形態では、A1タイプ検査において錠剤部及びシート部の検査を行うこととしている。   Next, the A1 type inspection will be described with reference to the flowchart of FIG. In the present embodiment, the tablet part and the sheet part are inspected in the A1 type inspection.

図5の「A1タイプ検査ルーチン」に示すように、検査に際しては、先ずステップS301において、錠剤部検査完了フラグ及び全ポケット部2の錠剤良品フラグをそれぞれ0に設定する。   As shown in the “A1 type inspection routine” of FIG. 5, at the time of inspection, first, in step S301, the tablet portion inspection completion flag and the tablet non-defective flag of all pocket portions 2 are set to 0, respectively.

ステップS302において、検査対象たるPTPフィルム20の検査濃淡画像を取得する。この検査濃淡画像又は当該検査濃淡画像を二値化した後述の二値化画像データが本実施形態における第1検査画像データに相当する。   In step S302, an inspection grayscale image of the PTP film 20 to be inspected is acquired. This inspection grayscale image or binarized image data described below obtained by binarizing the inspection grayscale image corresponds to the first inspection image data in this embodiment.

ステップS303において、ステップS302で取得した検査濃淡画像をシェーディング補正し、ステップS304において当該検査濃淡画像を錠剤検知レベルで二値化し、当該二値化画像データを画像メモリ41Eに格納する(後述する錠剤部検査に用いられる)。これとともに、ステップS302で取得した検査濃淡画像をシート異物検知レベルで二値化し、当該二値化画像データを画像メモリ41Eに格納する(後述するシート部検査に用いられる)。   In step S303, shading correction is performed on the inspection grayscale image acquired in step S302. In step S304, the inspection grayscale image is binarized at the tablet detection level, and the binarized image data is stored in the image memory 41E (tablet to be described later). Used for partial inspection). At the same time, the inspection grayscale image acquired in step S302 is binarized at the sheet foreign object detection level, and the binarized image data is stored in the image memory 41E (used for sheet portion inspection described later).

次に、ステップS305で各二値化画像データにラベリング処理(塊処理)を行い、当該二値化画像データに対し上記第1錠剤ウインドウPW1を重ねる処理を行う。この際、当該二値化画像データからポケット部2の中心位置を割り出し、当該ポケット部2の中心位置に第1錠剤ウインドウPW1の中心位置を合わせるようにして当該第1錠剤ウインドウPW1を位置決めする。そして、当該第1錠剤ウインドウPW1を用いて、ポケット部領域とシート部領域に区別し、以下のステップS306〜ステップS313においてポケット部領域における錠剤部検査を実行し、ステップS315においてシート部領域におけるシート部検査を実行する。なお、前記各検査においては、第1錠剤ウインドウPW1によって区別された各領域のうち、検査対象外となる部分にマスキングを施す処理が行われる。例えば、錠剤部検査が実行される際にはシート部領域にマスキングが施され、シート部検査が実行される際には、ポケット部領域にマスキングが施される。   Next, in step S305, each binarized image data is subjected to a labeling process (lumb process), and a process of superimposing the first tablet window PW1 on the binarized image data is performed. At this time, the center position of the pocket part 2 is determined from the binarized image data, and the first tablet window PW1 is positioned so that the center position of the first tablet window PW1 is aligned with the center position of the pocket part 2. And using the said 1st tablet window PW1, it distinguishes into a pocket part area | region and a sheet | seat part area | region, the tablet part test | inspection in a pocket part area | region is performed in the following step S306-step S313, and the sheet | seat in a sheet | seat part area | region in step S315. Perform a partial inspection. Note that, in each of the inspections, a process of masking a portion that is not subject to inspection among the regions distinguished by the first tablet window PW1 is performed. For example, when the tablet portion inspection is executed, masking is applied to the sheet portion region, and when the sheet portion inspection is executed, masking is applied to the pocket portion region.

錠剤部検査に際しては、まずステップS306において、ポケット番号カウンタ値C1(以下、単にポケット番号C1という)に1を設定する。そして、ステップS307においてポケット番号C1の値が一検査あたり(一シートあたり)のポケット数N以下であるか否かを判定する。ここで肯定判定された場合には、ステップS308において、ポケット番号C1に対応するポケット部2において、錠剤面積値が基準錠剤面積値Lo以上の塊を抽出する(Lo未満の塊を除去する)。その後、ステップS309では、前記ポケット部2における塊個数が「1」であるか否かを判定し、否定判定された場合には、ステップS313においてポケット番号C1の値に1を加え、再びステップS307へ移行する。   In the tablet part inspection, first, in step S306, 1 is set to the pocket number counter value C1 (hereinafter simply referred to as pocket number C1). In step S307, it is determined whether or not the value of the pocket number C1 is equal to or less than the number N of pockets per inspection (per sheet). When an affirmative determination is made here, in step S308, in the pocket portion 2 corresponding to the pocket number C1, a mass having a tablet area value equal to or larger than the reference tablet area value Lo is extracted (a mass less than Lo is removed). Thereafter, in step S309, it is determined whether or not the number of chunks in the pocket portion 2 is “1”. If a negative determination is made, 1 is added to the value of the pocket number C1 in step S313, and step S307 is performed again. Migrate to

これに対し、塊個数が「1」である場合には、ステップS310において錠剤5の塊データより錠剤5の重心位置データを検出位置データとして算出するとともに、予め設定した上記第1基準位置データとのズレ量(x,y)を算出し、当該ズレ量(x,y)を検出位置ズレ量α2としてデータメモリ45Eに格納(記憶)する。   On the other hand, if the number of lumps is “1”, the center of gravity position data of the tablet 5 is calculated as detection position data from the mass data of the tablet 5 in step S310, and the first reference position data set in advance The amount of deviation (x, y) is calculated, and the amount of deviation (x, y) is stored (stored) in the data memory 45E as the detected position deviation amount α2.

続く、ステップS311において、第1錠剤ウインドウPW1内における錠剤5の形状、長さ、面積等が適正であるか否かを判断する。ここで、当該錠剤5に関し不適正判定された場合にはステップS313へ移行する。一方、適正判定された場合には、ステップS312において、錠剤5が良品であるものとして、ポケット番号C1に対応した錠剤良品フラグに1を設定し、ステップS313へ移行する。   In step S311, it is determined whether the shape, length, area, etc. of the tablet 5 in the first tablet window PW1 are appropriate. Here, when it is determined that the tablet 5 is inappropriate, the process proceeds to step S313. On the other hand, if the determination is appropriate, in step S312, assuming that the tablet 5 is a non-defective product, 1 is set in the non-defective tablet flag corresponding to the pocket number C1, and the process proceeds to step S313.

さて、上記ステップS307において否定判定された場合、すなわちポケット番号C1の値が一検査あたり(一シートあたり)のポケット数Nを超えたと判定された場合には、ステップS314において、錠剤部検査完了フラグに1を設定し、ステップS315においてシート部検査を行う。   If a negative determination is made in step S307, that is, if it is determined that the value of the pocket number C1 exceeds the number N of pockets per inspection (per sheet), a tablet part inspection completion flag is determined in step S314. Is set to 1, and sheet portion inspection is performed in step S315.

次に、ステップS316においてシート部が良品であるか否か、例えばシート部領域内にシート異物が存在しないか否か等を判定する。ここで肯定判定されるとステップS317において一検査あたり(一シートあたり)の全ポケット部2に関して錠剤良品フラグに1が設定されているか否かを判定する。ここで肯定判定されるとステップS318において良品判定を行い、本処理を一旦終了する。これに対し、ステップS316又はステップS317において否定判定された場合には、ステップS319において不良品判定を行い、本処理を一旦終了する。これらの検査結果は、モニタ25やPTP包装機7(不良シート排出機構を含む)に出力される。   Next, in step S316, it is determined whether or not the sheet portion is a non-defective product, for example, whether or not there is a sheet foreign matter in the sheet portion region. If an affirmative determination is made here, it is determined in step S317 whether or not 1 is set in the non-defective tablet flag for all pocket portions 2 per inspection (per sheet). If an affirmative determination is made here, a non-defective product determination is made in step S318, and this process is temporarily terminated. On the other hand, if a negative determination is made in step S316 or step S317, defective product determination is performed in step S319, and this process is temporarily terminated. These inspection results are output to the monitor 25 and the PTP packaging machine 7 (including the defective sheet discharge mechanism).

次に、A2タイプ検査について図6のフローチャートに従って説明する。   Next, the A2 type inspection will be described with reference to the flowchart of FIG.

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

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

ステップS403において、上記A1タイプ検査ルーチンにおける錠剤部検査完了フラグが1に設定されているか否かを判定する。ここで、否定判定された場合には、当該ステップS403を繰り返し行う。そして、肯定判定された場合にステップS404へ移行し、ポケット番号カウンタ値C2(以下、単にポケット番号C2という)に1を設定する。   In step S403, it is determined whether or not the tablet portion inspection completion flag in the A1 type inspection routine is set to 1. If a negative determination is made here, step S403 is repeated. If a positive determination is made, the process proceeds to step S404, and 1 is set to the pocket number counter value C2 (hereinafter simply referred to as pocket number C2).

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

ここで肯定判定された場合には、ステップS406において検査カラー画像に対し上記第2錠剤ウインドウPW2を重ねる処理を行う。より詳しくは、ポケット番号C2に対応するポケット部2における錠剤5の重心位置データを、上記第2基準位置データ及び上記検出位置ズレ量α2を基に割り出し、当該錠剤5の重心位置に第2錠剤ウインドウPW2の中心位置を合わせるようにして検査カラー画像に対し第2錠剤ウインドウPW2を位置決めする。なお、両カメラ23E,23Hに解像度の違いがある場合には、前記検出位置ズレ量α2に両カメラ23E,23Hの解像度比率(A2用カメラ23Hの解像度/A1用カメラ23Eの解像度)を乗算することにより、当該検出位置ズレ量α2の補正を行う。   If the determination is affirmative, in step S406, a process of overlaying the second tablet window PW2 on the inspection color image is performed. More specifically, the gravity center position data of the tablet 5 in the pocket portion 2 corresponding to the pocket number C2 is determined based on the second reference position data and the detected position shift amount α2, and the second tablet is located at the gravity center position of the tablet 5. The second tablet window PW2 is positioned with respect to the inspection color image so as to match the center position of the window PW2. When there is a difference in resolution between the two cameras 23E and 23H, the detection position shift amount α2 is multiplied by the resolution ratio of both the cameras 23E and 23H (the resolution of the A2 camera 23H / the resolution of the A1 camera 23E). Thus, the detection position deviation amount α2 is corrected.

ステップS407において、錠剤5の色検出値F1となる色検出値データを抽出する処理を行う。より詳しくは、検査カラー画像の第2錠剤ウインドウPW2内にある複数の画素の中から輝度の高い順に3つの画素を選出するとともに、当該3画素のRGB各成分毎の平均値R1,G1,B1を構成成分とする色検出値F1(R1,G1,B1)を算出する。   In step S407, a process of extracting color detection value data to be the color detection value F1 of the tablet 5 is performed. More specifically, three pixels are selected in descending order from the plurality of pixels in the second tablet window PW2 of the inspection color image, and the average values R1, G1, and B1 for the respective RGB components of the three pixels are selected. A color detection value F1 (R1, G1, B1) is calculated.

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

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

以上詳述したように、本実施形態によれば、1つの外観検査装置21でもって、錠剤異常・シート部異常に関する透過式検査(A1タイプ検査)、錠剤の色異常に関する反射式検査(A2タイプ検査)が行われる。このため、検査効率の飛躍的な向上を図ることができるのは勿論のこと、外観検査に必要なハード面(例えば照明装置や撮像装置や画像処理装置等の制御装置等)のコンパクト化、簡素化等を図ることが可能となる。   As described in detail above, according to the present embodiment, with one appearance inspection device 21, a transmission inspection (A1 type inspection) relating to tablet abnormality / sheet portion abnormality, and a reflection inspection (A2 type relating to tablet color abnormality). Inspection) is performed. For this reason, the inspection efficiency can be drastically improved, as well as the hardware required for visual inspection (for example, a control device such as an illumination device, an imaging device, and an image processing device) is made compact and simple. And so on.

また、A2タイプ検査では、A1タイプ検査において得られた錠剤の位置データを基に錠剤の位置を推定し、錠剤の色異常を検出する。そのため、反射式のA2タイプ検査においても錠剤の位置を的確に把握することができ、より正確な検査を実施できる。ひいては、透過式のA1タイプ検査で使用されるA1用照明装置22Eに反射した反射光を適宜遮る遮光手段を備える必要もないため、当該遮光手段としてのシャッタの動作速度に起因した検査効率の悪化や、遮光手段として液晶シャッタを備えることによる製造コストの増加などの不具合を低減できる。結果として、透過式のA1タイプ検査及び反射式のA2タイプ検査を略同一位置において実施でき、省スペース化、製造コストの低減及び検査効率の向上を図ることができる。さらに、透過光と反射光の波長を異ならせることなくA2タイプ検査(色識別検査)を実施できるため、検出可能な色が特定色に限られず、適正な色識別検査を実施できる。   In the A2 type inspection, the tablet position is estimated based on the tablet position data obtained in the A1 type inspection, and the color abnormality of the tablet is detected. Therefore, the position of the tablet can be accurately grasped even in the reflection type A2 type inspection, and a more accurate inspection can be performed. As a result, since it is not necessary to provide light shielding means for appropriately blocking the reflected light reflected on the A1 illumination device 22E used in the transmission type A1 type inspection, the inspection efficiency is deteriorated due to the operation speed of the shutter as the light shielding means. In addition, problems such as an increase in manufacturing cost due to the provision of the liquid crystal shutter as the light shielding means can be reduced. As a result, the transmission type A1 type inspection and the reflection type A2 type inspection can be performed at substantially the same position, and space saving, manufacturing cost reduction, and inspection efficiency can be improved. Furthermore, since the A2 type inspection (color identification inspection) can be performed without making the wavelengths of transmitted light and reflected light different, the detectable color is not limited to a specific color, and an appropriate color identification inspection can be performed.

以上説明した実施形態において、例えば、次のように構成の一部を適宜変更して実施することも可能である。勿論、以下において例示しない他の変更例も当然可能である。   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)上記実施形態では、検査対象となる錠剤の態様例としてタブレット錠が挙げられているが、錠剤の種類はこれに限られるものではなく、例えばカプセル錠等であってもよい。但し、カプセル錠を検査する際には、当該カプセル錠の姿勢も考慮する必要があるため、透過式のA1タイプ検査においてカプセル錠の傾き量を算出する処理を行い、当該傾き量を基に、A1タイプ検査に際しては第1錠剤ウインドウPW1の姿勢を調整する処理を行い、A2タイプ検査に際しては第2錠剤ウインドウPW2の姿勢を調整する処理を行うことが好ましい。もちろん、A1タイプ検査及びA2タイプ検査の前段階に行われる検査前設定ルーチンにおいて、カプセル錠の基準姿勢を設定する処理を行うこととしてもよい。   (A) In the said embodiment, although the tablet tablet is mentioned as an aspect example of the tablet used as test | inspection object, the kind of tablet is not restricted to this, For example, a capsule tablet etc. may be sufficient. However, since it is necessary to consider the posture of the capsule lock when inspecting the capsule lock, a process of calculating the tilt amount of the capsule lock in the transparent A1 type test is performed, and based on the tilt amount, It is preferable to perform processing for adjusting the posture of the first tablet window PW1 during the A1 type inspection, and to perform processing for adjusting the posture of the second tablet window PW2 during the A2 type inspection. Of course, in the pre-inspection setting routine performed before the A1 type inspection and the A2 type inspection, a process for setting the reference posture of the capsule lock may be performed.

(b)上記実施形態では、透過式のA1タイプ検査においてシート部検査及び錠剤部検査の双方を行うこととしているが、少なくとも錠剤部の検査を実現可能な構成となっていればよく、錠剤部検査が行われないタイプの検査装置にも具現化できる。   (B) In the above-described embodiment, both the sheet part inspection and the tablet part inspection are performed in the transmission type A1 type inspection. It can also be embodied in an inspection apparatus that does not perform inspection.

(c)上記実施形態では、反射式のA2タイプ検査において、錠剤5の表面異常としての錠剤5の色異常を検出する検査(色識別検査)を行うこととしているが、これに限らず、反射式のA2タイプ検査として、錠剤5に付着した異物を検出する検査や、錠剤5の表面剥離に関する検査等を行うこととしてもよい。   (C) In the above embodiment, in the reflection type A2 type inspection, the inspection (color identification inspection) for detecting the color abnormality of the tablet 5 as the surface abnormality of the tablet 5 is performed. As the A2 type inspection of the formula, an inspection for detecting a foreign substance attached to the tablet 5, an inspection relating to the surface peeling of the tablet 5, and the like may be performed.

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

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

符号の説明Explanation of symbols

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

Claims (9)

PTPシートの製造過程にあって、搬送される帯状の包装用フィルムに形成されたポケット部に錠剤が収容された後、前記ポケット部を塞ぐようにカバーフィルムがシール状態で取着される前段階において用いられる外観検査装置であって、
前記包装用フィルムのポケット部突出側から前記錠剤及び包装用フィルムに対し所定の光を照射可能な第1光源を具備する第1照明手段と、
前記第1照明手段とは前記包装用フィルムを介して反対側に設けられ、少なくとも前記第1光源から照射され前記包装用フィルムを透過する透過光を撮像可能な第1撮像手段と、
前記包装用フィルムのポケット部開口側から前記錠剤及び包装用フィルムに対し所定の光を照射可能な第2光源を具備する第2照明手段と、
前記包装用フィルムのポケット部開口側において設けられ、少なくとも前記第2光源から照射され前記錠剤に反射した反射光を撮像可能な第2撮像手段と、
前記第1及び第2撮像手段から出力される画像信号を処理する画像処理装置とを備え、
前記第1光源から照射された光の透過光を前記第1撮像手段により撮像し、当該第1撮像手段から出力される画像信号から得た第1検査画像データに基づき、少なくとも前記ポケット部の領域内に存在する錠剤の異常を前記画像処理装置により検出する第1検査と、
前記第2光源から照射される光の反射光を前記第2撮像手段により撮像し、当該第2撮像手段から出力される画像信号から得た第2検査画像データに基づき、少なくとも前記錠剤の表面異常を前記画像処理装置により検出する第2検査とを実行可能に構成され、
前記第1検査に際しては、
前記第1検査画像データから前記錠剤の位置データを算出し、当該位置データを基に前記錠剤の位置を特定して前記錠剤の異常を検出するよう構成され、
前記第2検査に際しては、
前記第1検査において得られた前記錠剤の位置データを基に前記第2検査画像データにおける前記錠剤の位置を割り出し、前記錠剤の表面異常を検出するよう構成されていることを特徴とする外観検査装置。
In the manufacturing process of the PTP sheet, after the tablet is stored in the pocket portion formed in the belt-shaped packaging film to be conveyed, the stage before the cover film is attached in a sealed state so as to close the pocket portion Visual inspection apparatus used in
First illumination means comprising a first light source capable of irradiating predetermined light to the tablet and the packaging film from the pocket projecting side of the packaging film;
A first imaging means provided on the opposite side of the first illumination means through the packaging film, capable of imaging transmitted light that is irradiated from at least the first light source and passes through the packaging film;
Second illumination means comprising a second light source capable of irradiating the tablet and the packaging film with predetermined light from the opening side of the pocket portion of the packaging film;
A second imaging means provided on the opening side of the pocket portion of the packaging film and capable of imaging reflected light reflected from the tablet and irradiated from at least the second light source;
An image processing device for processing image signals output from the first and second imaging means,
The transmitted light of the light emitted from the first light source is imaged by the first imaging means, and based on the first inspection image data obtained from the image signal output from the first imaging means, at least the area of the pocket portion A first inspection for detecting abnormalities of the tablet existing in the image processing apparatus;
The reflected light of the light emitted from the second light source is imaged by the second imaging means, and at least the surface abnormality of the tablet is based on the second inspection image data obtained from the image signal output from the second imaging means. Is configured to be capable of performing a second inspection that is detected by the image processing device,
In the first inspection,
Calculating the position data of the tablet from the first inspection image data, configured to detect the abnormality of the tablet by specifying the position of the tablet based on the position data;
In the second inspection,
An appearance inspection configured to determine the position of the tablet in the second inspection image data based on the position data of the tablet obtained in the first inspection, and to detect a surface abnormality of the tablet. apparatus.
PTPシートの製造過程にあって、搬送される帯状の包装用フィルムに形成されたポケット部に錠剤が収容された後、前記ポケット部を塞ぐようにカバーフィルムがシール状態で取着される前段階において用いられる外観検査装置であって、
前記包装用フィルムのポケット部突出側から前記錠剤及び包装用フィルムに対し所定の光を照射可能な第1光源を具備する第1照明手段と、
前記第1照明手段とは前記包装用フィルムを介して反対側に設けられ、少なくとも前記第1光源から照射され前記包装用フィルムを透過する透過光を撮像可能な第1撮像手段と、
前記包装用フィルムのポケット部開口側から前記錠剤及び包装用フィルムに対し所定の光を照射可能な第2光源を具備する第2照明手段と、
前記包装用フィルムのポケット部開口側において設けられ、少なくとも前記第2光源から照射され前記錠剤に反射した反射光を撮像可能な第2撮像手段と、
前記第1及び第2撮像手段から出力される画像信号を処理する画像処理装置とを備え、
前記第1光源から照射された光の透過光を前記第1撮像手段により撮像し、当該第1撮像手段から出力される画像信号から得た第1検査画像データに基づき、少なくとも前記ポケット部の領域内に存在する錠剤の異常を前記画像処理装置により検出する第1検査と、
前記第2光源から照射される光の反射光を前記第2撮像手段により撮像し、当該第2撮像手段から出力される画像信号から得た第2検査画像データに基づき、少なくとも前記錠剤の表面異常を前記画像処理装置により検出する第2検査とを実行可能に構成され、
前記第1検査に際しては、
前記第1検査画像データから前記錠剤の位置データである検出位置データを算出する処理と、
当該第1検査用に予め設定された第1錠剤ウインドウを、前記第1検査画像データにおける前記錠剤又はポケット部の位置に合わせて位置決めする処理とを行い、
前記第1錠剤ウインドウの領域内外を区別して前記錠剤の異常を検出するよう構成され、
前記第2検査に際しては、
前記第1検査において得られた前記検出位置データと、前記第1検査における前記錠剤の基準位置データとして予め設定された第1基準位置データとのズレ量として算出される検出位置ズレ量、及び、当該第2検査における前記錠剤の基準位置データとして予め設定された第2基準位置データを基に、前記第2検査画像データにおける前記錠剤の位置データを割り出し、当該位置データを基に、当該第2検査用に予め設定された第2錠剤ウインドウを前記第2検査画像データにおける前記錠剤の位置に合わせて位置決めする処理を行い、
前記第2錠剤ウインドウの領域内外を区別して前記錠剤の表面異常を検出するよう構成されていることを特徴とする外観検査装置。
In the manufacturing process of the PTP sheet, after the tablet is stored in the pocket portion formed in the belt-shaped packaging film to be conveyed, the stage before the cover film is attached in a sealed state so as to close the pocket portion Visual inspection apparatus used in
First illumination means comprising a first light source capable of irradiating predetermined light to the tablet and the packaging film from the pocket projecting side of the packaging film;
A first imaging means provided on the opposite side of the first illumination means through the packaging film, capable of imaging transmitted light that is irradiated from at least the first light source and passes through the packaging film;
Second illumination means comprising a second light source capable of irradiating the tablet and the packaging film with predetermined light from the opening side of the pocket portion of the packaging film;
A second imaging means provided on the opening side of the pocket portion of the packaging film and capable of imaging reflected light reflected from the tablet and irradiated from at least the second light source;
An image processing device for processing image signals output from the first and second imaging means,
The transmitted light of the light emitted from the first light source is imaged by the first imaging means, and based on the first inspection image data obtained from the image signal output from the first imaging means, at least the area of the pocket portion A first inspection for detecting abnormalities of the tablet existing in the image processing apparatus;
The reflected light of the light emitted from the second light source is imaged by the second imaging means, and at least the surface abnormality of the tablet is based on the second inspection image data obtained from the image signal output from the second imaging means. Is configured to be capable of performing a second inspection that is detected by the image processing device,
In the first inspection,
Processing for calculating detection position data which is position data of the tablet from the first inspection image data;
The first tablet window set in advance for the first inspection is positioned in accordance with the position of the tablet or pocket portion in the first inspection image data, and
It is configured to detect an abnormality of the tablet by distinguishing the inside and outside of the area of the first tablet window,
In the second inspection,
A detection position shift amount calculated as a shift amount between the detection position data obtained in the first inspection and the first reference position data preset as the reference position data of the tablet in the first inspection; and Based on the second reference position data set in advance as the reference position data of the tablet in the second inspection, the position data of the tablet in the second inspection image data is determined, and on the basis of the position data, the second Performing a process of positioning a second tablet window preset for inspection in accordance with the position of the tablet in the second inspection image data;
An appearance inspection apparatus configured to detect an abnormal surface of the tablet by distinguishing between the inside and outside of the area of the second tablet window.
前記第1検査及び第2検査の前段階に行われ、不良でないことが明らかなPTPシート単位についての検査前設定処理において、
前記第1光源からの透過光を前記第1撮像手段により撮像し、当該第1撮像手段から出力される画像信号から設定用第1画像データを取得するとともに、当該第1撮像手段による撮像に続けて、前記第1光源からの透過光を前記第2撮像手段により撮像し、当該第2撮像手段から出力される画像信号から設定用第2画像データを取得する処理と、
前記設定用第1画像データから前記錠剤の位置データを算出し、当該位置データを前記第1基準位置データとして設定する処理と、
前記設定用第2画像データから前記錠剤の位置データを算出し、当該位置データを前記第2基準位置データとして設定する処理と、
前記第1錠剤ウインドウを設定する処理と、
前記第2錠剤ウインドウを設定する処理とを行うよう構成されていることを特徴とする請求項2に記載の外観検査装置。
In the pre-inspection setting process for the PTP sheet unit that is performed before the first inspection and the second inspection and is clearly not defective ,
The transmitted light from the first light source is imaged by the first imaging means, setting first image data is acquired from the image signal output from the first imaging means, and the imaging by the first imaging means is continued. A process of capturing the transmitted light from the first light source by the second imaging unit, and obtaining setting second image data from an image signal output from the second imaging unit;
Calculating the position data of the tablet from the first image data for setting, and setting the position data as the first reference position data;
Calculating the position data of the tablet from the second image data for setting, and setting the position data as the second reference position data;
Processing to set the first tablet window;
The visual inspection apparatus according to claim 2, wherein the visual inspection apparatus is configured to perform processing for setting the second tablet window.
前記検査前設定処理において、
前記第1光源からの透過光を前記第1撮像手段により撮像し、当該第1撮像手段から出力される画像信号から設定用第3画像データを取得するとともに、当該第1撮像手段による撮像に続けて、前記第2光源からの反射光を前記第2撮像手段により撮像し、当該第2撮像手段から出力される画像信号から設定用第4画像データを取得する処理と、
前記第1基準位置データと前記第2基準位置データとのズレ量を基準位置ズレ量として算出する処理と、
前記設定用第3画像データから前記錠剤の位置データを算出し、当該位置データと前記基準位置ズレ量とから前記設定用第4画像データにおける前記錠剤の位置データを割り出し、当該位置データを基に、前記第2錠剤ウインドウを前記設定用第4画像データにおける前記錠剤の位置に合わせて位置決めする処理と、
前記設定用第4画像データにおける前記第2錠剤ウインドウ内から、前記第2検査において前記錠剤の表面異常を検出する際の判定基準値データを抽出する処理とを行うことを特徴とする請求項3に記載の外観検査装置。
In the pre-inspection setting process,
The transmitted light from the first light source is imaged by the first imaging unit, the setting third image data is obtained from the image signal output from the first imaging unit, and the imaging by the first imaging unit is continued. A process of capturing reflected light from the second light source by the second imaging unit and acquiring fourth image data for setting from an image signal output from the second imaging unit;
A process of calculating a deviation amount between the first reference position data and the second reference position data as a reference position deviation amount;
The position data of the tablet is calculated from the third image data for setting, the position data of the tablet in the fourth image data for setting is calculated from the position data and the reference positional deviation amount, and based on the position data A process of positioning the second tablet window in accordance with the position of the tablet in the setting fourth image data;
4. A process for extracting determination reference value data for detecting an abnormal surface of the tablet in the second inspection from the second tablet window in the fourth image data for setting. 2. An appearance inspection apparatus according to 1.
前記第1検査において、前記第1錠剤ウインドウの領域外として区別されたシート部領域に存在するシート部の異常を検出するよう構成されていることを特徴とする請求項2乃至4のいずれかに記載の外観検査装置。   5. The apparatus according to claim 2, wherein the first inspection is configured to detect an abnormality of a sheet portion existing in a sheet portion region that is distinguished from outside the region of the first tablet window. 6. Appearance inspection apparatus as described. 前記錠剤はカプセル錠であって、
前記第1検査に際しては、
前記第1検査画像データから、予め設定された基準姿勢からの前記カプセル錠の傾き量を算出する処理と、
前記第1錠剤ウインドウを位置決めする処理に合わせて、当該第1錠剤ウインドウの姿勢を前記カプセル錠の傾き量を基に調整する処理を行い、
前記第2検査に際しては、
前記第2錠剤ウインドウを位置決めする処理に合わせて、当該第2錠剤ウインドウの姿勢を前記カプセル錠の傾き量を基に調整する処理を行うことを特徴とする請求項2乃至5のいずれかに記載の外観検査装置。
The tablet is a capsule tablet,
In the first inspection,
A process of calculating an inclination amount of the capsule lock from a preset reference posture from the first inspection image data;
In accordance with the process of positioning the first tablet window, the process of adjusting the posture of the first tablet window based on the tilt amount of the capsule tablet,
In the second inspection,
The process for adjusting the posture of the second tablet window based on the tilt amount of the capsule tablet is performed in accordance with the process of positioning the second tablet window. Visual inspection equipment.
前記第1検査は、前記第1検査画像データから所定の閾値を基準に二値化した二値化画像データを取得した上で、少なくとも前記錠剤の異常を検出する透過式検査であることを特徴とする請求項1乃至6のいずれかに記載の外観検査装置。   The first inspection is a transmission inspection that detects at least an abnormality of the tablet after obtaining binarized image data binarized based on a predetermined threshold from the first inspection image data. An appearance inspection apparatus according to any one of claims 1 to 6. 前記第2検査は、前記第2検査画像データとして取得されたカラー画像データから少なくとも前記錠剤の色異常を検出する色識別検査であることを特徴とする請求項1乃至7のいずれかに記載の外観検査装置。   The said 2nd test | inspection is a color identification test | inspection which detects the color abnormality of the said tablet at least from the color image data acquired as said 2nd test | inspection image data, The one in any one of Claim 1 thru | or 7 characterized by the above-mentioned. Appearance inspection device. 請求項1乃至8のいずれかに記載の外観検査装置を備えたことを特徴とするPTP包装機。
A PTP packaging machine comprising the appearance inspection apparatus according to claim 1.
JP2005002126A 2005-01-07 2005-01-07 Appearance inspection device and PTP packaging machine Active JP4368808B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005002126A JP4368808B2 (en) 2005-01-07 2005-01-07 Appearance inspection device and PTP packaging machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005002126A JP4368808B2 (en) 2005-01-07 2005-01-07 Appearance inspection device and PTP packaging machine

Publications (2)

Publication Number Publication Date
JP2006189354A JP2006189354A (en) 2006-07-20
JP4368808B2 true JP4368808B2 (en) 2009-11-18

Family

ID=36796708

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005002126A Active JP4368808B2 (en) 2005-01-07 2005-01-07 Appearance inspection device and PTP packaging machine

Country Status (1)

Country Link
JP (1) JP4368808B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101538696B1 (en) * 2014-05-23 2015-07-29 주식회사 포스코 Apparatus for detecting surface crack of hot slab

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5015660B2 (en) * 2007-05-25 2012-08-29 日本特殊陶業株式会社 Work inspection method
JP4994183B2 (en) * 2007-10-22 2012-08-08 シーケーディ株式会社 PTP packaging machine
JP2009276102A (en) * 2008-05-13 2009-11-26 Ckd Corp Pocket shape inspecting device
EP2562513A4 (en) 2010-04-01 2018-01-31 Nippon Steel & Sumitomo Metal Corporation Particle measuring system and particle measuring method
US9272796B1 (en) 2011-01-11 2016-03-01 Chudy Group, LLC Automatic drug packaging machine and package-less verification system
JP6027048B2 (en) * 2014-04-22 2016-11-16 Ckd株式会社 Inspection system and PTP packaging machine
CN110603567B (en) 2017-05-30 2023-07-28 富士胶片富山化学株式会社 Dispensing inspection assisting device and dispensing inspection assisting method
JP6606244B1 (en) * 2018-09-18 2019-11-13 Ckd株式会社 Appearance inspection device and PTP packaging machine
GB2616247A (en) * 2021-12-22 2023-09-06 Laetus Gmbh Inspection system for a blister machine

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101538696B1 (en) * 2014-05-23 2015-07-29 주식회사 포스코 Apparatus for detecting surface crack of hot slab

Also Published As

Publication number Publication date
JP2006189354A (en) 2006-07-20

Similar Documents

Publication Publication Date Title
JP4368808B2 (en) Appearance inspection device and PTP packaging machine
US11017523B2 (en) Inspection device and PTP packaging machine
JP4332122B2 (en) Appearance inspection device and PTP packaging machine
JP6062396B2 (en) Inspection system and PTP packaging machine
JP6411599B1 (en) Blister packing machine
JP4647643B2 (en) Defect inspection device and PTP packaging machine
JP6613353B2 (en) Appearance inspection device and blister packaging machine
WO2019038981A1 (en) Appearance inspection device and blister packaging machine
JP6062102B1 (en) Inspection device and PTP packaging machine
JP5352615B2 (en) Tablet inspection device and PTP packaging machine
JP6046585B2 (en) Inspection device and PTP packaging machine
JP4213108B2 (en) Lighting device for visual inspection
JP4472499B2 (en) Defect inspection device and PTP packaging machine
JP4477516B2 (en) Inspection device and PTP packaging machine
JP4684172B2 (en) Appearance inspection apparatus and PTP sheet manufacturing apparatus
JP4213106B2 (en) Appearance inspection device and PTP packaging machine
WO2021161619A1 (en) Inspection device, packaging sheet manufacturing device, and inspection method
JP5063235B2 (en) Tablet inspection device and PTP packaging machine
JP2006219178A (en) Inspecting apparatus and ptp packaging machine
JP4684173B2 (en) Appearance inspection apparatus and PTP sheet manufacturing apparatus
JP4251325B2 (en) Appearance inspection device and PTP packaging machine
JP4788870B2 (en) Defect inspection device and PTP packaging machine
JP7466613B1 (en) Inspection equipment and blister packing machines
WO2024111225A1 (en) Inspection device and blister 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: 20060404

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20081028

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090106

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090226

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

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

R150 Certificate of patent or registration of utility model

Ref document number: 4368808

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

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20120904

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20130904

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20130904

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20140904

Year of fee payment: 5