WO2013008392A1 - 錠剤検査装置及び錠剤検査方法 - Google Patents

錠剤検査装置及び錠剤検査方法 Download PDF

Info

Publication number
WO2013008392A1
WO2013008392A1 PCT/JP2012/003962 JP2012003962W WO2013008392A1 WO 2013008392 A1 WO2013008392 A1 WO 2013008392A1 JP 2012003962 W JP2012003962 W JP 2012003962W WO 2013008392 A1 WO2013008392 A1 WO 2013008392A1
Authority
WO
WIPO (PCT)
Prior art keywords
tablet
image
translucent
unit
light
Prior art date
Application number
PCT/JP2012/003962
Other languages
English (en)
French (fr)
Inventor
貴頌 谷本
山下 仁
後藤 誠
松川 善彦
Original Assignee
パナソニック株式会社
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 パナソニック株式会社 filed Critical パナソニック株式会社
Priority to CN201280004350.4A priority Critical patent/CN103492862A/zh
Priority to US13/824,011 priority patent/US20130188038A1/en
Priority to EP12811806.4A priority patent/EP2733480A1/en
Priority to JP2012557349A priority patent/JP5414917B2/ja
Publication of WO2013008392A1 publication Critical patent/WO2013008392A1/ja

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/60Type of objects
    • G06V20/66Trinkets, e.g. shirt buttons or jewellery items
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61JCONTAINERS SPECIALLY ADAPTED FOR MEDICAL OR PHARMACEUTICAL PURPOSES; DEVICES OR METHODS SPECIALLY ADAPTED FOR BRINGING PHARMACEUTICAL PRODUCTS INTO PARTICULAR PHYSICAL OR ADMINISTERING FORMS; DEVICES FOR ADMINISTERING FOOD OR MEDICINES ORALLY; BABY COMFORTERS; DEVICES FOR RECEIVING SPITTLE
    • A61J3/00Devices or methods specially adapted for bringing pharmaceutical products into particular physical or administering forms
    • A61J3/06Devices or methods specially adapted for bringing pharmaceutical products into particular physical or administering forms into the form of pills, lozenges or dragees
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/84Systems specially adapted for particular applications
    • G01N21/88Investigating the presence of flaws or contamination
    • G01N21/95Investigating the presence of flaws or contamination characterised by the material or shape of the object to be examined
    • G01N21/9508Capsules; Tablets
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • G06T7/0004Industrial image inspection
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30242Counting objects in image
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V2201/00Indexing scheme relating to image or video recognition or understanding
    • G06V2201/06Recognition of objects for industrial automation

Definitions

  • the present invention relates to a tablet inspection apparatus and a tablet inspection method for inspecting a tablet enclosed in a medicine package.
  • a tablet packaging machine performs a packaging operation of wrapping a plurality of types of tablets in a medicine package.
  • the medicine package is an example of a medicine bag.
  • the tablet inspection apparatus binarizes the image obtained by photographing the medicine package as the inspection of the preparation, and then counts the number of tablets in the binarized image, thereby performing the tablet inspection. Do.
  • tablets include translucent tablets that transmit light, and opaque tablets that block light.
  • the medicine package is generally composed of a transparent film. For this reason, it is difficult to distinguish between the image of the translucent tablet and the image of the film that is the background in the image of the medicine package containing the translucent tablet and the opaque tablet.
  • the image of the opaque tablet can be detected, but the image of the translucent tablet can not be distinguished from the image of the film that is the background, and the translucent tablet can not be detected.
  • the tablet inspection apparatus may not be able to accurately count the number of tablets. Therefore, Patent Document 1 proposes a tablet inspection apparatus that performs tablet inspection of a medicine package in which translucent tablets and opaque tablets are wrapped.
  • FIG. 18 is a circuit block diagram of the main part of the tablet inspection device of Patent Document 1.
  • FIG. 19 is a graph showing the relationship between the brightness of an image and the number of pixels having each brightness in Patent Document 1.
  • the tablet inspection apparatus of Patent Document 1 takes a picture of photographing a light package (not shown) for irradiating light to a medicine package in which a tablet is enclosed and a medicine package in which a tablet is enclosed.
  • the opaque tablet recognition unit 5 that counts the number of opaque tablets in the medicine package from the unit output (not shown) and the image output from the imaging unit, and the translucent tablet for the medicine package from the image output from the imaging unit It has the translucent tablet recognition part 6 to count, and the calculation control circuit 7.
  • the medicine package transmits the illumination light from below, so the brightness of the background, which is an image of the medicine package, is high .
  • the medicine package is composed of a transparent film and a white band for printing.
  • the opaque tablet does not transmit light, the brightness of the image of the opaque tablet is low.
  • the translucent tablet transmits a certain amount of light, the lightness of the translucent tablet image is higher than the lightness of the opaque tablet image. Therefore, as shown in FIG. 19, the opaque tablet recognition unit 5 of Patent Document 1 sets the threshold value of the opaque tablet in the image between the brightness distribution of the translucent tablet image and the brightness distribution of the opaque tablet image. Set to Then, the opaque tablets are counted by detecting pixels of lightness lower than the threshold value of the opaque tablets as an image of the opaque tablets.
  • the translucent tablet recognition unit 6 of Patent Document 1 sets a lower threshold between the lightness distribution of the image of the translucent tablet and the lightness distribution of the image of the opaque tablet, thereby making the opaque tablet opaque.
  • An upper threshold is set between the lightness distribution of the image of the tablet and the lightness distribution of the background. Then, a translucent tablet is counted by detecting pixels indicating lightness between the upper threshold and the lower threshold as an image of the translucent tablet.
  • the arithmetic control circuit 7 of Patent Document 1 adds the number data of the tablets counted by the opaque tablet recognition unit 5 and the translucent tablet recognition unit 6 and outputs the number of all tablets in the medicine package.
  • Patent Document 2 discloses that when transparent illumination is performed for a transparent drug, a silhouette in which the central portion of the drug is brightened and only the outer peripheral portion is darkened due to light refraction is disclosed. There is.
  • Patent Document 3 while the parallel light is irradiated to the upper surface of the packaged bag, color shooting is performed from the upper camera, and the silhouette of the medicine in the bag is captured by the lower camera. Is disclosed.
  • translucent tablets have variations in permeability depending on their types. That is, the brightness of the image of the translucent tablet varies depending on its type. Therefore, depending on the type of translucent tablet, the lightness distribution of the image of the translucent tablet partially overlaps with the lightness distribution of the background. Since the image of such a translucent tablet can not be separated from the background at the upper threshold shown in FIG. 19, the translucent tablet can not be detected by the translucent tablet recognition unit 6, and an accurate tablet inspection can be performed. It can not be done.
  • An object of the present invention is to provide a tablet inspection apparatus and a tablet inspection method capable of inspecting a medicine package in which a translucent tablet is wrapped, in order to solve the above-mentioned conventional problems.
  • the tablet inspection device concerning one mode of the present invention irradiates parallel light to the medicine package which enclosed the translucent tablet which is a medicine which transmits light, parallel light, and the parallel light And an imaging unit for acquiring a transmission image of the medicine package by imaging the medicine package, and in the transmission image, a region where the lightness of the peripheral portion is lower than that of the central portion is a region of the translucent tablet And an image processing unit for detecting as
  • a tablet inspection apparatus and a tablet inspection method capable of inspecting a medicine package in which a translucent tablet is wrapped.
  • FIG. 1 is a schematic block diagram of a tablet inspection apparatus according to a first embodiment of the present invention.
  • FIG. 2 is a perspective view of a parallel light conversion unit of the tablet inspection apparatus according to the first embodiment of the present invention.
  • FIG. 3 is a plan view of the medicine package according to the first embodiment of the present invention.
  • FIG. 4 is a view schematically showing a transmission image of the medicine package taken by the camera unit according to the first embodiment of the present invention.
  • FIG. 5 is a view showing a transmission image of the medicine package actually photographed by the camera unit according to the first embodiment of the present invention.
  • FIG. 6 is a view schematically showing a transmission image of the medicine package irradiated with the diffused light.
  • FIG. 1 is a schematic block diagram of a tablet inspection apparatus according to a first embodiment of the present invention.
  • FIG. 2 is a perspective view of a parallel light conversion unit of the tablet inspection apparatus according to the first embodiment of the present invention.
  • FIG. 3 is a plan view of the
  • FIG. 7 is a view showing an actual transmission image of the medicine package irradiated with the diffused light.
  • FIG. 8 is a conceptual view showing the state of transmission of diffused light of the translucent tablet.
  • FIG. 9 is a conceptual view showing transmission of parallel light of the semitransparent tablet according to the first embodiment of the present invention.
  • FIG. 10 is a diagram for explaining parallel light emitted from the illumination unit according to the first embodiment of the present invention.
  • FIG. 11 is a flowchart showing a tablet inspection method using the tablet inspection apparatus according to the first embodiment of the present invention.
  • FIG. 12 is a schematic view showing the positional relationship between the camera unit and the mounting table according to the second embodiment of the present invention.
  • FIG. 13 is a plan view of a medicine package and a mounting table according to a second embodiment of the present invention.
  • FIG. 14 is a view showing a transmission image of the medicine package taken by the camera unit according to the second embodiment of the present invention.
  • FIG. 15 is a conceptual diagram for explaining parallel light transmitted through a translucent tablet according to Embodiment 2 of the present invention.
  • FIG. 16 is a schematic view showing another positional relationship between the camera unit and the mounting table according to the second embodiment of the present invention.
  • FIG. 17 is a plan view of a medicine package according to a third embodiment of the present invention.
  • FIG. 18 is a circuit block diagram of the main part of the tablet inspection device of Patent Document 1.
  • FIG. 19 is a graph showing the relationship between the brightness of an image and the number of pixels having each brightness in Patent Document 1.
  • FIG. 19 is a graph showing the relationship between the brightness of an image and the number of pixels having each brightness in Patent Document 1.
  • FIG. 1 is a schematic block diagram of a tablet inspection apparatus 11 according to a first embodiment of the present invention.
  • FIG. 2 is a perspective view of the parallel light conversion unit 22 of the tablet inspection apparatus 11 according to the first embodiment.
  • the tablet inspection apparatus 11 is an apparatus for performing an inspection operation on the medicine package 21 as to whether or not an appropriate tablet is wrapped according to a prescription.
  • the medicine package 21 is a pill packing machine (not shown) in which tablets are packaged according to a prescription.
  • the tablet inspection apparatus 11 counts the tablets based on the acquired image of the medicine package 21 in order to carry out the inspection operation, collates the counted number with the number of tablets described in the prescription, and the medicine package 21 Determine if the tablets are properly sealed.
  • the medicine package 21 is a bag in which an opaque tablet that blocks light and a translucent tablet that transmits light with a certain degree of transmission are enclosed. Although there are various types of medicine package 21, the medicine package 21 according to the first embodiment is made of a transparent film that transmits light.
  • a translucent tablet is a drug in which a drug solution is wrapped in a transparent film.
  • the degree of transmission of light differs depending on the degree of transmission of the drug solution.
  • the semitransparent tablet has a rounded shape because it is a package of a drug solution.
  • Opaque tablets are tablets that block light. Many common tablets are opaque tablets.
  • the tablet inspection apparatus 11 includes a camera unit 12 as an example of an imaging unit, an illumination unit 13, a mounting table 14, an image processing unit 15, a display unit 17, and a control unit 18.
  • the control unit 18 controls operations of the camera unit 12, the illumination unit 13, the mounting table 14, the image processing unit 15, and the display unit 17.
  • the camera unit 12 has an image element (not shown) and a lens (not shown).
  • the camera unit 12 obtains a transmitted image of the medicine package 21 by imaging the medicine package 21 irradiated with parallel light at the position of the transparent plate 25 of the mounting table 14.
  • This transmission image contains the image of the translucent tablet with low lightness of the peripheral part obtained.
  • the camera unit 12 is installed at a position opposite to the mounting surface of the mounting table 14 on which the medicine package 21 is mounted, and at a position directly above the lighting unit 13.
  • the camera unit 12 captures, from above, the medicine package 21 illuminated from below the mounting surface by parallel light, and acquires a transmission image of the medicine package 21.
  • the illumination unit 13 applies parallel light to the medicine package 21 in which the translucent tablet and the opaque tablet are sealed.
  • the illumination unit 13 has a parallel light conversion unit 22 that converts diffused light into parallel light and a light emitting unit 23 that emits diffused light, in order to irradiate parallel light.
  • the light emitting unit 23 has a structure that causes an LED (Light Emitting Diode) to emit light inside.
  • the parallel light conversion unit 22 is a member that converts diffused light into parallel light. As shown in FIG. 2, the parallel light conversion unit 22 is formed of laminates 22 c and 22 d.
  • the laminates 22c and 22d are each formed by alternately laminating transmission bands 22a for transmitting visible light and absorption bands 22b for absorbing visible light.
  • the lamination direction of the transmission band 22a and the absorption band 22b of the laminate 22c and the lamination direction of the transmission band 22a and the absorption band 22b of the laminate 22d are orthogonal to each other. Like, it is piled up.
  • the parallel light conversion unit 22 transmits only the light 33 incident at a predetermined incident angle among the light emitted from the illumination unit 13 and absorbs the light incident at other incident angles.
  • the light 33 emitted from the parallel light converter 22 becomes parallel light because the parallel light converter 22 transmits only the light 33 of a predetermined incident angle.
  • the collimated light converted from the diffused light by the collimated light conversion unit 22 is not light having the same irradiation angle, and has only a slight variation in the irradiation angle.
  • the louver film is used as the parallel light conversion part 22 in this Embodiment 1, the louver film is used.
  • the mounting table 14 has a guide portion 24 provided at an end portion of the mounting surface on which the medicine package 21 is mounted, and a transparent plate 25 which transmits the light of the illumination portion 13.
  • the guide portion 24 internally has a drive roller and a guide roller (not shown). When the end of the medicine package 21 is sandwiched between the drive roller and the guide roller, the medicine package 21 is moved along the guide portion 24 by the rotation of the drive roller. Further, the mounting table 14 is disposed between the camera unit 12 and the illumination unit 13.
  • the image processing unit 15 takes advantage of the property that the lightness of the peripheral portion of the image of the semitransparent tablet decreases when parallel light is irradiated to the semitransparent tablet, and the outline of the image of the semitransparent tablet from the transmitted image of the medicine package 21 To detect The image processing unit 15 acquires the transmission image of the medicine package 21 with the camera unit 12 and then detects the image 52 of the translucent tablet included in the transmission image 26 of the medicine package 21 and transmits the medicine package 21. The image 51 of the opaque tablet contained in the image 26 is detected. Then, the image processing unit 15 compares the sum of the detected number of translucent tablets and the number of opaque tablets with the number of tablets on the prescription, and the appropriate number of tablets is in the medicine package 21 or not. Determine The image processing unit 15 inspects the number of tablets based on the result of this determination.
  • the display unit 17 is connected to the image processing unit 15 to display an image of the tablet detected by the image processing unit 15. Therefore, the examiner can perform a visual inspection using the display unit 17.
  • the tablet inspection apparatus 11 inspects tablets in this manner. The details of the inspection of the number of tablets performed by the tablet inspection apparatus 11 will be described later using the flowchart of FIG.
  • FIG. 3 is a plan view of the medicine package 21 according to the first embodiment.
  • FIG. 4 is a view schematically showing a transmission image 26 of the medicine package 21 taken by the camera unit 12 according to the first embodiment.
  • FIG. 5 is a view showing a transmission image 26 of the medicine package 21 actually photographed by the camera unit 12 according to the first embodiment.
  • the opaque tablet 31 and the translucent tablet 32 are enclosed in a medicine package 21.
  • the tablet inspection apparatus 11 obtains the transmitted image 26 of the medicine package 21 by the camera unit 12.
  • a transmission image 26 obtained by photographing the medicine package 21 with the camera unit 12 while emitting parallel light includes an image 51 of an opaque tablet and an image 52 of a translucent tablet, as shown in FIGS. 4 and 5. . Since the opaque tablet 31 blocks light, the image 51 of the opaque tablet in the transmission image 26 acquired by the camera unit 12 has a low overall brightness. On the other hand, the image 52 of the translucent tablet in the transmission image 26 has low lightness at the peripheral portion and high lightness at the central portion.
  • FIG. 6 is a view schematically showing a transmission image 27 of the conventional medicine package 21 irradiated with the diffused light.
  • FIG. 7 is a view showing an actual transmitted image 27 of the medicine package 21 irradiated with the diffused light.
  • FIGS. 8 and 9 are diagrams for explaining light transmitted through the translucent tablet 32 among light which can be received by the camera unit 12.
  • FIG. 8 is a conceptual view showing light transmission of the semitransparent tablet 32 using diffused light as illumination
  • FIG. 9 is a light transmission of semitransparent tablet 32 using parallel light as illumination. It is a conceptual diagram which shows a mode.
  • FIG. 8 is a diagram showing a conventional example
  • FIG. 9 is a diagram showing an example of the first embodiment of the present invention.
  • the image 53 of the opaque tablet is clearly reflected.
  • the image of the transparent film of the drug package 21 which is the background transmits light
  • the image 54 of the translucent tablet transmits light similarly depending on the degree of transmission of the tablet. Therefore, when the diffused light of FIG. 6 and FIG. 7 is used, the brightness of the image 54 of the background and the semitransparent tablet becomes equal. Therefore, even if processing such as binarization and edge extraction is performed on the captured image, it is only an extent that only the peripheral portion of the translucent tablet image 54 can be extracted, and it is difficult to clearly separate it from the background.
  • the background refers to an image of a region where no tablet exists in a captured image, and refers to an image of a region where light is transmitted only through the transparent film.
  • the translucent tablet 32 is a rounded tablet. Therefore, the translucent tablet 32 serves as a lens, and light passing through the peripheral portion of the translucent tablet 32 is refracted and light passing through the central portion travels straight.
  • the irradiated light reaches the camera unit 12 regardless of the irradiation angles of the light shown by the lines 35a, 35b, 35c, 35d, 35e, 35f, and 35g.
  • the light received by the camera unit 12 has a larger inclination as it extends from the central portion of the camera unit 12 to the peripheral portion, but this is because the image element of the camera unit 12 This is for imaging the image of the transparent tablet 32. Therefore, in the conventional configuration shown in FIG. 8, a pixel having a low lightness indicating the target translucent tablet 32 in the present embodiment is not generated. That is, in the conventional example, as shown in FIG. 6 and FIG. 7, the outline of the translucent tablet 32 is not clearly reflected in the transmission image 27 acquired by the camera unit 12.
  • the light 33 which is parallel light emitted from the illumination unit 13 has a small variation in the illumination angle. Therefore, in the example of the present embodiment, the translucent tablet 32 has a portion where light can not be transmitted. In the example of the present embodiment, light having an angle close to the irradiation angle of parallel light such as the line 35 d reaches the camera unit 12. However, in the present embodiment, the light 33 which is irradiation light emitted from the parallel light conversion unit 22 is light in one direction.
  • the light amounts of light having different angles with respect to the optical axis of the parallel light are weak as in the lines 35a, 35b, 35c, 35e, 35f, and 35g. Therefore, in the example of the present embodiment, the lightness of the peripheral portion of the image 52 of the translucent tablet is lowered. That is, according to the configuration of the present embodiment shown in FIG. 9, the transmission image 26 in which the lightness of the central portion of the image 52 of the translucent tablet is high and the lightness of the peripheral portion is low is obtained. For this reason, as shown in FIG. 4 and FIG. 5, the outline of the image 52 of the translucent tablet is clearly reflected in the transmission image 26 acquired by the camera unit 12.
  • FIG. 10 is a diagram for explaining parallel light emitted from the illumination unit 13 according to the first embodiment of the present invention.
  • the light (lines 36a and 36g) transmitting only the medicine package 21 does not cause refraction but goes straight, but transmits the translucent tablet 32.
  • Light (lines 36b to 36f) is greatly refracted.
  • the light is significantly refracted at the peripheral portion of the translucent tablet 32, so that the light does not reach the camera unit 12 and the lightness of the peripheral portion of the image 52 of the translucent tablet is reduced.
  • the camera unit 12 since the amount of refraction of light is small in the vicinity of the central portion of the translucent tablet 32, the camera unit 12 receives the light, and the brightness near the central portion of the image 52 of the translucent tablet is increased.
  • the tablet inspection apparatus 11 of the present embodiment makes the image 52 of the translucent tablet in the transmission image 26 clear as a background. The area of the image 52 of the translucent tablet can be accurately detected.
  • the image processing unit 15 can easily detect the outline of the image 51 of the opaque tablet and the image 52 of the translucent tablet from the transmission image 26.
  • detection of the translucent tablet 32 is performed by pattern matching of the transmission image 26 with the sample image of the image 52 of the translucent tablet, and the number of tablets of the translucent tablet 32 detected is calculated. Processing.
  • the present embodiment since the image of the opaque tablet 31 and the image of the translucent tablet 52 are different from each other due to the difference in transmittance between the opaque tablet 31 and the translucent tablet 32, the present embodiment includes the image 51 of the opaque tablet and the translucent tablet. It can be clearly distinguished from the image 52 of That is, the image processing unit 15 detects, among the image of the tablet detected in the transmission image 26, one having a pixel with high brightness at the center of the image of the tablet as the image 52 of the semitransparent tablet.
  • the image processing unit 15 performs thinning and edge extraction on the transmission image 26 using extreme values, and detects the contour of the image 52 of the semitransparent tablet from the transmission image 26. Processing is done. As described above, by performing thinning and edge extraction with respect to the transmission image 26 using extreme values, noise can be removed and the contour of the image of the tablet can be made clear.
  • the image 52 of the translucent tablet has a low-brightness, constant-width peripheral portion. However, since the refractive index of light reaching the camera unit 12 changes depending on the posture of the tablet and the relative position from the camera unit 12, the width of the peripheral portion with low lightness varies even in the case of an image of the same tablet.
  • the refractive index from the center to the periphery of the translucent tablet image 52 changes stepwise, the brightness of the periphery of the translucent tablet image 52 changes stepwise from the central portion.
  • thinning is performed by leaving only the extreme value with a large amount of change at the time of edge extraction by differential processing, utilizing the fact that the lightness changes extremely. It is possible to leave only the outermost rim.
  • the size of the outermost periphery, i.e. the outline of the image 52 of the translucent tablet is determined by the size of each tablet. For this reason, in the edge image, stable pattern matching processing that is not influenced by the position or posture of the tablet is possible.
  • FIG. 11 is a flow chart showing a tablet inspection method using the tablet inspection apparatus 11 according to the first embodiment.
  • the light emitting unit 23 of the illumination unit 13 emits diffused light
  • the parallel light conversion unit 22 converts the diffused light into parallel light.
  • the camera unit 12 transmits the image 52 of the translucent tablet whose peripheral portion has a low lightness by imaging the medicine package 21 including the translucent tablet 32 irradiated with the light 33 which is the converted parallel light.
  • An image 26 is acquired (step S01).
  • the transmission image 26 includes an image 51 of the opaque tablet and an image 52 of the translucent tablet.
  • the image processing unit 15 detects the image 52 of the translucent tablet from the transmission image 26. In order to clarify the contours of the image 51 of the opaque tablet and the image 52 of the translucent tablet, the image processing unit 15 performs edge extraction processing by the canny method and thinning processing by the extremum on the transmission image 26 (step S02) ).
  • the image processing unit 15 detects the image 52 of the translucent tablet by pattern matching between the edge image obtained by performing the edge extraction processing and the thinning processing in step S 02 and the sample image of the image 52 of the translucent tablet Do.
  • the image processing unit 15 calculates the number of the detected translucent tablet images 52 as the number of the translucent tablets 32 (step S03).
  • the image processing unit 15 creates a sample image of only the outline of the image 52 of the translucent tablet from the sample image of the translucent tablet 32 described in the prescription.
  • the sample image of the semitransparent tablet 32 may be stored in advance by the image processing unit 15 or may be obtained from the outside.
  • the image processing unit 15 detects a candidate of the image 52 of the translucent tablet by extracting an image similar to the created sample image from the edge image of the transmission image 26 of the medicine package 21 by pattern matching.
  • the image processing unit 15 translucents among the candidates of the image 52 of the translucent tablet, those having a pixel with high lightness in the center. It is detected as an image 52 of the tablet.
  • the candidate is determined to be the image 52 of the semitransparent tablet can do.
  • the image processing unit 15 detects the image 51 of the opaque tablet.
  • the image processing unit 15 removes the image 52 of the translucent tablet from the transmission image 26 of the medicine package 21 (step S04).
  • the image processing unit 15 performs binarization processing on the transmission image 26 from which the image 52 of the translucent tablet is removed (step S05).
  • the image processing unit 15 calculates the number of tablets of the opaque tablet 31 from the transmission image 26 subjected to the binarization processing. Since the image 51 of the opaque tablet remains in the transmission image 26 of the medicine package 21 subjected to the binarization processing, the calculated number of tablets becomes the number of tablets of the opaque tablet 31 (step S06). In addition, the calculation process of the number of tablets of the opaque tablet 31 is not limited to this.
  • the image processing unit 15 may obtain the number of tablets of the opaque tablet 31 from the number of regions and the number of corners.
  • the image processing unit 15 performs pattern matching between the binarized transmission image 26 and the sample image of the binarized opaque tablet image 51 to detect the opaque tablet image 51 and make it opaque.
  • the number of tablets of the tablet 31 may be determined.
  • the sample image of the image 51 of the opaque tablet may be stored in advance by the image processing unit 15 or may be obtained from the outside.
  • the image processing unit 15 detects the opaque tablet image 51 by performing pattern matching between the transmission image 26 which is a multi-valued image and the sample image of the opaque tablet image 51 which is a multi-valued image.
  • the number of tablets of the tablet 31 may be determined. In this case, there is no need to perform the binarization process of step S05.
  • the image processing unit 15 compares the sum of the number of translucent tablets 32 calculated in step S03 and the number of opaque tablets 31 calculated in step S06 with the number of tablets indicated in the prescription. Then, it is determined whether or not the appropriate number of tablets is in the medicine package 21, and the number of tablets is checked (step S07).
  • the image processing unit 15 may store the number of tablets indicated in the prescription or may obtain it from the outside.
  • the tablet inspection apparatus 11 can check whether the number of tablets wrapped in the medicine package 21 is appropriate.
  • the tablet inspection apparatus 11 can inspect the number of the translucent tablets 32 regardless of the light transmittance of the translucent tablets 32.
  • the parallel light conversion part 22 and the light emission part 23 are combined, and the illumination part 13 is formed.
  • the transparent plate 25 may be a louver film
  • the transparent plate 25 and the light emitting unit 23 may be combined to be an illumination unit.
  • the parallel light conversion unit 22 may use a honeycomb board.
  • the parallel light conversion unit 22 may not be used, and the parallel light may be illuminated from the light emitting unit 23 at a distance of 1 m or more from the medicine package 21.
  • the light source may be converted into parallel light by using a reflection from a convex mirror or refraction by a Fresnel lens or a convex lens as a point light source.
  • the tablet inspection apparatus 11 when the tablet inspection apparatus 11 according to the present embodiment is used, in the image 52 of the translucent tablet, pixels with high brightness always exist in the central portion. Therefore, even if the image 51 of the opaque tablet and the sample image of the image 52 of the translucent tablet have the same shape, the tablet inspection device 11 does not have pixels with high brightness in the center of the tablet. , The tablet can be determined as an image 51 of the opaque tablet. On the other hand, if there is a pixel with high brightness at the center of the tablet, it can be determined as the image 52 of the translucent tablet.
  • the tablet inspection apparatus 11 can distinguish and detect the image 51 of the opaque tablet and the image 52 of the translucent tablet.
  • a tablet inspection apparatus according to a second embodiment of the present invention will be described.
  • the configuration of the tablet inspection apparatus according to the second embodiment is the same as that of the first embodiment.
  • the arrangement of the camera unit 12 is different from that of the first embodiment.
  • FIG. 12 is a schematic view showing the positional relationship between the camera unit 12 and the mounting table 14 according to the second embodiment of the present invention.
  • FIG. 13 is a plan view of the medicine package 21 and the mounting table 14 according to the second embodiment.
  • FIG. 14 is a view showing a transmission image 46 of the medicine package taken by the camera unit 12 according to the second embodiment.
  • imaging of the camera unit 12 is performed with respect to the central axis 37 of the illumination unit 13 (optical axis of parallel light emitted by the illumination unit 13).
  • the camera unit 12 is disposed at such a position that the angle connecting the axis 38 and the center of the medicine package 21 is 120 ° or more and less than 160 °. Therefore, in the second embodiment, the camera unit 12 is disposed at a position where the imaging axis 38 of the camera unit 12 and the central axis 37 of the illumination unit 13 are offset. That is, in the second embodiment, the camera unit 12 is disposed such that the imaging axis 38 of the camera unit 12 passes a position away from the center of the medicine package 21.
  • FIG. 15 is a conceptual diagram for explaining parallel light transmitted through the translucent tablet 32 according to the second embodiment.
  • the camera unit 12 in the second embodiment photographs the medicine package 21 at a position shifted from the central portion of the imaging region (the imaging region 12 a in FIG. 13) of the camera unit 12. Therefore, the light passing through the medicine package 21 and entering the camera unit 12 is inclined with respect to the imaging axis 38 of the camera unit 12.
  • the light passing through the translucent tablet 32 is a line 41a, 41b, 41c, 41d in FIG.
  • the light passing through the left side of the translucent tablet 32 (the left side when viewed from the front in FIG. 15) among the light incident on the camera unit 12 is illuminated because the imaging axis 38 of the camera unit 12 is separated from the medicine package 21
  • the light is parallel to the central axis 37 of the portion 13. That is, light parallel to the central axis 37 of the illumination unit 13 is refracted through the left side of the translucent tablet 32 and enters the camera unit 12 along the lines 41a and 41b.
  • the brightness of the portion in the transmission image 46 is high. This is because the irradiation angle of light incident on the translucent tablet 32 and the refraction angle of the light at the translucent tablet 32 are appropriate.
  • the light passing through the other part of the translucent tablet 32 in the light incident on the camera unit 12 is light that is largely inclined with respect to the central axis 37 of the illumination unit 13.
  • the light emitted from the illumination unit 13 is parallel light, the light emitted from the illumination unit 13 and passing through the other part of the translucent tablet 32 is hardly incident on the camera unit 12 The lightness of that portion of the transmission image 46 is low.
  • the high brightness portion of the translucent tablet image 55 is shifted from the central portion of the translucent tablet image 55.
  • the inner circumference is determined by determining the shape of the inner circumference as a high lightness area in addition to the shape of the peripheral edge as the outline.
  • Identification of the image 55 of the translucent tablet characterized by the shape of That is, in the image 55 of the translucent tablet, when the center of the outline and the center of the high lightness region are separated by a predetermined distance or more, the region can be identified as the image 55 of the translucent tablet.
  • the camera unit 12 may tilt the imaging axis 38 of the camera unit 12 with respect to the central axis 37 of the parallel light of the illumination unit 13 in order to obtain the characteristic translucent tablet image 55.
  • the camera unit 12 positioned on the central axis 37 of parallel light may be arranged such that the imaging axis 38 of the camera unit 12 is inclined with respect to the central axis 37.
  • a tablet inspection apparatus according to a third embodiment of the present invention will be described.
  • the configuration of the tablet inspection apparatus according to the third embodiment is the same as that of the first embodiment. However, the processing performed by the image processing unit 15 is partially different.
  • the medicine package 21 is made of a transparent film.
  • a white film for printing a patient's name or the like may be used as part of the medicine package 21. Since the transmittance of light is different between the transparent film and the white film, the appearance of the tablets located on each film also differs.
  • a tablet inspection apparatus capable of accurately checking whether the number of tablets is appropriate or not is realized.
  • FIG. 17 is a plan view of a medicine package according to a third embodiment of the present invention.
  • a common medicine package is made of a transparent film, so the degree of transmission is uniform.
  • a medicine package 61 having a region of different permeability on the back side is present.
  • such a medicine package 61 is composed of a mount area 62 whose transmittance is made lower than that of the transparent film for printing, and a non-mount area 63 of the transparent film.
  • the mount area 62 is generally an area of a white film, and on the mount area 62, the patient's name and information of the tablets enclosed in the medicine package 61 are printed.
  • the color of the film in the mount area 62 is not limited to white.
  • the mount area 62 diffuses or weakens the light of the illumination unit 13. Therefore, when the translucent tablet 32 exists on the boundary between the mount area 62 and the non-mount area 63, the lightness of one translucent tablet 32 differs between the mount area 62 and the non-mount area 63 side. As a result, if it is going to detect the outline of translucent tablet 32, an incorrect detection may occur. In particular, when the mount area 62 is on the side of the lighting unit 13, the parallel light from the lighting unit 13 is diffused before being irradiated to the translucent tablet 32, so the translucent tablet on the mounting area 62 is The difference in lightness between 32 and the translucent tablet 32 on the non-mount area 63 is noticeable. That is, when the mount area 62 is on the side of the lighting unit 13, the lightness of the translucent tablet 32 is more easily affected by the mount area 62 than in the case where the mount area 62 is on the side of the camera unit 12.
  • the image processing unit 15 of the tablet inspection apparatus of the third embodiment mounts the transmission image of the medicine package 61. Divide into area 62 and non-mount area 63.
  • the image processing unit 15 sets two thresholds of a mount area threshold for detecting the outline of the translucent tablet 32 in the mount area 62 and a non-mount area threshold for detecting the outline of the translucent tablet 32 in the non-mount area 63.
  • the threshold referred to here is the binarization threshold in the canny method executed in step S02 in FIG. 11 or the binarization threshold in the binarization processing of the transmission image 26 executed in step S05.
  • the coefficients of the differential filter in the canny method may be changed between the mount area 62 and the non-mount area 63.
  • the coefficient of the differential filter is, for example, a value for defining the size of the differential filter.
  • the translucent tablet 32 exists in the mount area 62 and the non-mount area 63 by using the two threshold values for the image processing unit 15 to detect the contour of the image 52 of the translucent tablet.
  • the semitransparent tablet 32 can be detected as one tablet.
  • the image processing unit 15 recognizes the longest line and the second longest line as the boundary of the mount area 62, and identifies the area between the two lines as the mount area 62. Since the mount area 62 is formed in a conspicuously wide area, the mount area 62 can be easily identified by detecting the longest line and the second longest line. When the line is disconnected by the tablet positioned at the boundary between the mount area 62 and the non-mount area 63, a process of connecting the disconnected lines may be performed.
  • the mount area 62 may be identified by the following process.
  • the image processing unit 15 recognizes a line having a length equal to or more than a predetermined distance threshold from the edge extraction result as a boundary line, and calculates an average value of lightness of each area divided by the boundary line.
  • the image processing unit 15 may detect an area in which the average value of lightness is equal to or less than a predetermined lightness threshold or an area in which the average value of lightness is the smallest as the mount area 62.
  • the illumination unit 13 may irradiate the medicine package 21 with parallel light of infrared light having a property that the light is not easily diffused.
  • the present invention is useful, for example, as a tablet inspection apparatus used in a pharmacy, a hospital facility or the like that performs a dispensing operation.
  • tablet inspection apparatus 12 camera unit 12a imaging area 13 illumination unit 14 mounting table 15 image processing unit 17 display unit 18 control unit 21, 61 medicine package 22 parallel light conversion unit 22a transmission band 22b absorption band 22c, 22d laminate 23 luminescence Part 24 Guide part 25 Transparent plate 26, 27, 46 Transmission image 31 Opaque tablet 32 Translucent tablet 33 Light 35a, 35b, 35c, 35d, 35e, 35f, 35g, 36a, 36b, 36c, 36d, 36e, 36f, 36g , 41a, 41b, 41c, 41d line 37 central axis 38 imaging axis 51, 53 image of opaque tablet 52, 54, 55 image of translucent tablet 62 base paper area 63 non-paper base area

Landscapes

  • Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Chemical & Material Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Theoretical Computer Science (AREA)
  • Medicinal Chemistry (AREA)
  • Multimedia (AREA)
  • Veterinary Medicine (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Pharmacology & Pharmacy (AREA)
  • Public Health (AREA)
  • Animal Behavior & Ethology (AREA)
  • Analytical Chemistry (AREA)
  • Biochemistry (AREA)
  • Immunology (AREA)
  • Pathology (AREA)
  • Quality & Reliability (AREA)
  • Signal Processing (AREA)
  • Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)
  • Medical Preparation Storing Or Oral Administration Devices (AREA)
  • Image Processing (AREA)

Abstract

 錠剤検査装置(11)は、光を透過する薬剤である半透明錠剤が封入された薬包体(21)に平行光を照射する照明部(13)と、平行光が照射された薬包体(21)を撮像することにより当該薬包体(21)の透過画像を取得するカメラ部(12)と、透過画像において中心部よりも周縁部の明度が低い領域を半透明錠剤の領域として検出する画像処理部(15)とを備える。

Description

錠剤検査装置及び錠剤検査方法
 本発明は、薬包体に封入された錠剤を検査する錠剤検査装置及び錠剤検査方法に関する。
 病院施設又は薬局などでは、処方箋に対して正確な調剤作業を行う必要がある。そのために、病院施設又は薬局などでは、調剤作業の後に、調剤の検査が行なわれている。この調剤作業として、まず、錠剤分包機が、複数の種類の錠剤を薬包体に包む分包作業を行なう。薬包体は、薬袋の一例である。そして、調剤の検査として、錠剤検査装置が、その薬包体を撮影して得た画像を2値化した後、2値化された画像の中にある錠剤個数を計数することにより、錠剤検査を行なう。
 錠剤には様々な種類がある。例えば、錠剤には、光を通す半透明錠剤、及び光を遮断する不透明錠剤が含まれる。また、薬包体は、一般的に透明なフィルムで構成される。このため、半透明錠剤及び不透明錠剤を含む薬包体の画像においては、半透明錠剤の像と背景であるフィルムの像との区別が困難である。この画像の1つの閾値を用いて2値化すると、不透明錠剤の像は検出できるが、半透明錠剤の像と背景であるフィルムの像とを区別することができず、半透明錠剤を検出できない場合がある。すなわち、錠剤検査装置は、正確に錠剤個数を計数できない場合がある。そこで、半透明錠剤と不透明錠剤を包んだ薬包体の錠剤検査を行なう錠剤検査装置が、特許文献1で提案されている。
 図18は、特許文献1の錠剤検査装置の要部の回路ブロック図である。図19は、特許文献1において、画像の明度と、各明度を有する画素数との関係を表したグラフを示す図である。
 図18に示すように、特許文献1の錠剤検査装置は、錠剤が封入された薬包体に光を照射する照明具(図示せず)と、錠剤が封入された薬包体を撮影する撮影部(図示せず)と、撮影部より出力された画像より薬包体の不透明錠剤の個数を計数する不透明錠剤認識部5と、撮影部より出力された画像より薬包体の半透明錠剤を計数する半透明錠剤認識部6と、演算制御回路7とを有する。
 不透明錠剤及び半透明錠剤に対して下方より照明具からの光を照射したときの画像において、薬包体は下方からの照明光を透過するため、薬包体の像である背景の明度は高い。これは、薬包体が、透明なフィルムおよび印字用の白色の帯で構成されているためである。また、不透明錠剤は光を透過しないため、不透明錠剤の像の明度は低い。一方、半透明錠剤はある程度の光を透過するため、半透明錠剤の像の明度は、不透明錠剤の像の明度よりも高い。そこで、特許文献1の不透明錠剤認識部5は、図19に示すように、画像において、不透明錠剤のしきい値を、半透明錠剤の像の明度分布と不透明錠剤の像の明度分布との間に設定する。そして、不透明錠剤のしきい値より低い明度の画素を不透明錠剤の像として検出することで、不透明錠剤を計数する。
 また、半透明錠剤の像の明度分布は、背景の明度分布よりも低い場合が多い。そこで、特許文献1の半透明錠剤認識部6は、図19に示すように、半透明錠剤の像の明度分布と不透明錠剤の像の明度分布との間に下しきい値を設定し、不透明錠剤の像の明度分布と背景の明度分布との間に上しきい値を設定する。そして、上しきい値と下しきい値の間の明度を示す画素を半透明錠剤の像として検出することで、半透明錠剤を計数する。
 特許文献1の演算制御回路7は、不透明錠剤認識部5及び半透明錠剤認識部6で計数された錠剤の個数データを加算して、薬包体内の全ての錠剤の個数を出力する。
 このような錠剤検査装置を用いることで、半透明錠剤を含んだ薬包体の錠剤検査を行なうことができる。
 また、特許文献2には、透明な薬剤に対して透過照明を行った場合、光の屈折により、薬剤の中央部が明るくなり外周部のみが暗くなったシルエットが観察されることが開示されている。
 また、特許文献3には、分包された袋の上面に対して平行光線を照射した状態で、上方のカメラからカラー撮影すると共に、袋内の薬剤のシルエットを下方のカメラにて撮影するものが開示されている。
特開平7-282219号公報 特開2004-234132号公報 特開2008-18230号公報
 しかしながら、半透明錠剤には、その種類によって透過度のバラつきがある。すなわち、半透明錠剤の像の明度は、その種類によって異なる。そのため、半透明錠剤の種類によっては、半透明錠剤の像の明度分布が背景の明度分布と部分的に重複するものがある。そのような半透明錠剤の像は、図19に示す上しきい値で背景と切り分けることができないため、半透明錠剤認識部6で半透明錠剤を検出することができず、正確な錠剤検査を行なうことができない。
 ここで、特許文献2に開示された透明錠剤の中央部が明るくなる現象を利用したとしても、特許文献1の場合と同様に、半透明錠剤の種類によっては、半透明錠剤の像の明度分布が背景の明度分布と部分的に重複してしまう。このため、特許文献2に開示された現象を利用しても、半透明錠剤を検出することができない場合があり、正確な錠剤検査を行うことができない。
 本発明は、上記従来の課題を解決するために、半透明錠剤を包んだ薬包体の検査を行なうことが可能な、錠剤検査装置および錠剤検査方法を提供することを目的とする。
 上記課題を解決するために、本発明の一態様に係る錠剤検査装置は、光を透過する薬剤である半透明錠剤が封入された薬包体に平行光を照射する照明部と、前記平行光が照射された前記薬包体を撮像することにより前記薬包体の透過画像を取得する撮像部と、前記透過画像において、中心部よりも周縁部の明度が低い領域を前記半透明錠剤の領域として検出する画像処理部と、を備える。
 本発明によると、半透明錠剤を包んだ薬包体の検査を行なうことが可能な、錠剤検査装置および錠剤検査方法を提供することができる。
図1は、本発明の実施の形態1にかかる錠剤検査装置の概略構成図である。 図2は、本発明の実施の形態1にかかる錠剤検査装置の平行光変換部の斜視図である。 図3は、本発明の実施の形態1にかかる薬包体の平面図である。 図4は、本発明の実施の形態1にかかるカメラ部で撮影された薬包体の透過画像を模式的に示す図である。 図5は、本発明の実施の形態1にかかるカメラ部で実際に撮影された薬包体の透過画像を示す図である。 図6は、拡散光が照射された薬包体の透過画像を模式的に示す図である。 図7は、拡散光が照射された薬包体の実際の透過画像を示す図である。 図8は、半透明錠剤の拡散光の透過の様子を示す概念図である。 図9は、本発明の実施の形態1にかかる半透明錠剤の平行光の透過の様子を示す概念図である。 図10は、本発明の実施の形態1にかかる照明部から照射される平行光を説明するための図である。 図11は、本発明の実施の形態1にかかる錠剤検査装置を用いた錠剤検査方法を示すフローチャートである。 図12は、本発明の実施の形態2にかかるカメラ部と載置台との位置関係を示す概略図である。 図13は、本発明の実施の形態2にかかる薬包体及び載置台の平面図である。 図14は、本発明の実施の形態2にかかるカメラ部で撮影された薬包体の透過画像を示す図である。 図15は、本発明の実施の形態2にかかる半透明錠剤を透過する平行光を説明するための概念図である。 図16は、本発明の実施の形態2にかかるカメラ部と載置台との他の位置関係を示す概略図である。 図17は、本発明の実施の形態3にかかる薬包体の平面図である。 図18は、特許文献1の錠剤検査装置の要部の回路ブロック図である。 図19は、特許文献1において、画像の明度と、各明度を有する画素数との関係を表したグラフを示す図である。
 以下、本発明の実施の形態について、図面を参照しながら説明する。なお、同じ構成要素には同じ符号を付しており、説明を省略する場合もある。また、図面は理解し易くするために、それぞれの構成要素を主体に模式的に示している。
 (実施の形態1)
 図1は、本発明の実施の形態1にかかる錠剤検査装置11の概略構成図である。図2は、本実施の形態1にかかる錠剤検査装置11の平行光変換部22の斜視図である。
 錠剤検査装置11は、薬包体21に対して、処方箋通りに適切な錠剤が包まれているか否かの検査作業を行う装置である。なお、薬包体21は、図示しない錠剤分包機が、処方箋に従って錠剤を包んだものである。錠剤検査装置11は、検査作業を行うために、取得した薬包体21の画像に基づいて錠剤を計数し、計数した個数と処方箋に記された錠剤の個数とを照合し、薬包体21に錠剤が適切に封入されているか否かを判定する。
 薬包体21は、光を遮断する不透明錠剤及び一定の透過度で光を通す半透明錠剤が封入された袋である。薬包体21は、さまざまな種類があるが、本実施の形態1にかかる薬包体21は、光を通す透明フィルムより構成される。
 半透明錠剤は、薬液を透明膜で包んだ薬剤である。よって、光の透過の程度は、その薬液の透過の程度によって異なる。また、半透明錠剤は、薬液を包んだものであるために、丸みを帯びた形状をしている。
 不透明錠剤は、光を遮断する錠剤である。一般的な錠剤の多くは、不透明錠剤である。
 本実施の形態の錠剤検査装置11は、撮像部の一例としてのカメラ部12と、照明部13と、載置台14と、画像処理部15と、表示部17と、制御部18とを有する。制御部18は、カメラ部12、照明部13、載置台14、画像処理部15及び表示部17の各動作を制御する。
 カメラ部12は、画像素子(図示せず)とレンズ(図示せず)を有する。カメラ部12は、載置台14の透明板25の位置において平行光が照射された薬包体21を撮像することにより、薬包体21の透過画像を取得する。この透過画像は、得られる周縁部の明度が低い半透明錠剤の像を含む。カメラ部12は、薬包体21を載置する載置台14の載置面に対向した位置であり、かつ照明部13の真上の位置に設置される。カメラ部12は、平行光により載置面の下方より照らされた薬包体21を上方より撮影し、薬包体21の透過画像を取得する。
 照明部13は、半透明錠剤及び不透明錠剤を封入した薬包体21に平行光を照射する。照明部13は、平行光を照射するために、拡散光を平行光へ変換する平行光変換部22と、拡散光を発光する発光部23とを有する。発光部23は、内部でLED(Light Emitting Diode)を発光させる構造を有する。
 平行光変換部22は、拡散光を平行光に変換する部材である。図2に示すように、平行光変換部22は、積層体22c及び22dにより形成される。積層体22c及び22dは、それぞれ、可視光を透過する透過帯22aと可視光を吸収する吸収帯22bとを交互に積層したものである。ここで、積層体22cと積層体22dは、積層体22cの透過帯22aと吸収帯22bの積層方向と、積層体22dの透過帯22aと吸収帯22bの積層方向とが、直交する関係になるように、重ねられている。平行光変換部22は、照明部13より照射される光のうち、所定の入射角で入射する光33のみを透過して、それ以外の入射角で入射する光を吸収する。平行光変換部22が所定の入射角の光33しか通さないために、平行光変換部22から放射する光33は、平行光となる。なお、平行光変換部22により拡散光から変換された平行光は、照射角が同一の光ではなく、照射角に少しだけバラツキを持つ。また、本実施の形態1における平行光変換部22としては、ルーバーフィルムを用いている。
 載置台14は、薬包体21を載置する載置面の端部に設けられたガイド部24と、照明部13の光を通す透明板25とを有する。ガイド部24は、内部に駆動ローラとガイドローラ(図示せず)を有する。駆動ローラとガイドローラの間に薬包体21の端が挟まれた状態で駆動ローラが回転することで、薬包体21がガイド部24に沿って移動させられる。また、載置台14は、カメラ部12及び照明部13の間に配置される。
 画像処理部15は、半透明錠剤に平行光を照射すると半透明錠剤の像の周縁部の明度が低くなる性質を利用して、薬包体21の透過画像から、半透明錠剤の像の輪郭を検出する。画像処理部15は、カメラ部12で薬包体21の透過画像を取得した後、薬包体21の透過画像26に含まれる半透明錠剤の像52を検出すると共に、薬包体21の透過画像26に含まれる不透明錠剤の像51を検出する。そして、画像処理部15は、検出された半透明錠剤の錠剤数および不透明錠剤の錠剤数との和と処方箋の錠剤数とを比較して、適切な錠剤数が薬包体21にあるか否を判定する。画像処理部15は、この判定の結果に基づいて錠剤数の検査を行なう。
 表示部17は、画像処理部15に接続されることで、画像処理部15で検出された錠剤の像を表示する。よって、検査者は、表示部17を用いて目視で検査することもできる。
 錠剤検査装置11は、このような方法で錠剤の検査を行なう。錠剤検査装置11が行う錠剤数の検査の詳細については、図11のフローチャートを用いて後述する。
 次に、カメラ部12で取得された薬包体21の透過画像を用いて、半透明錠剤を正確に検出できる理由について説明する。
 図3は、本実施の形態1にかかる薬包体21の平面図である。図4は、本実施の形態1にかかるカメラ部12で撮影された薬包体21の透過画像26を模式的に示す図である。図5は、本実施の形態1にかかるカメラ部12で実際に撮影された薬包体21の透過画像26を示す図である。
 図3に示すように、不透明錠剤31と半透明錠剤32は、薬包体21に包まれている。錠剤検査装置11は、カメラ部12で薬包体21の透過画像26を取得する。平行光を照射しながらカメラ部12で薬包体21を撮影して得た透過画像26は、図4及び図5に示すように、不透明錠剤の像51と半透明錠剤の像52とを含む。不透明錠剤31は光を遮断するために、カメラ部12で取得される透過画像26中の不透明錠剤の像51は、全体の明度が低くなる。一方、透過画像26中の半透明錠剤の像52は、周縁部の明度が低く、中心部の明度が高くなる。
 次に、透過画像を撮像する際に拡散光を用いた従来の例と、平行光を用いた本実施の形態の例とを比較し、平行光を用いることで周縁部の明度が低い半透明錠剤の像52が生成される理由について説明する。
 図6は、拡散光が照射された従来の薬包体21の透過画像27を模式的に示す図である。図7は、拡散光が照射された薬包体21の実際の透過画像27を示す図である。図8及び図9は、カメラ部12で受光することのできる光の中で、半透明錠剤32を透過する光を説明するための図である。図8は、照明として拡散光を用いた、半透明錠剤32の光の透過の様子を示す概念図であり、図9は、照明として平行光を用いた、半透明錠剤32の光の透過の様子を示す概念図である。図8は、従来の例を示す図であり、図9は、本発明の実施の形態1の例を示す図である。
 図6及び図7に示すように、拡散光を照射した薬包体21の透過画像27において、不透明錠剤の像53は明瞭に写っている。しかし、背景である薬包体21の透明フィルムの像は光を透過し、半透明錠剤の像54も錠剤の透過度によっては同様に光を透過する。そのため、図6及び図7の拡散光を用いた場合は、背景と半透明錠剤の像54の明度が同程度になる。よって、撮像画像に2値化やエッジ抽出等の処理を行っても、半透明錠剤の像54の周縁部のみを若干抽出できる程度でしかなく、背景との明確な切り分けが難しい。このような場合、撮像画像の2値化による閾値の調整は難しく、また、半透明錠剤の像54の輪郭が途切れてしまうことも多い。さらに、その他のノイズの除去処理のために撮像画像に平滑化処理を施すことで、ノイズと同様に半透明錠剤の像54の輪郭が除去されてしまう。このため、図8に示す従来の例では、正確に半透明錠剤32を検出することができない。なお、ここで、背景とは、撮像画像において錠剤が存在しない領域の像を示し、透明フィルムのみを光が透過する領域の像のことである。
 そこで、本実施の形態では、図4及び図5に示すように、半透明錠剤の像52の周縁部の明度を低くして、明瞭に背景となる薬包体21の透明フィルムと区別するために、薬包体21を照らす光を拡散光でなく平行光としている。
 図8及び図9に示すように、半透明錠剤32は丸みを帯びた錠剤である。そのため、半透明錠剤32がレンズの役割となり、半透明錠剤32の周縁部を通る光は屈折し、中心部を通る光は直進する。
 図8に示す従来の構成において、カメラ部12で受光することのできる光は、線35a、35b、35c、35e、35f、35gに代表される線に沿って進むものである。従来の例では、半透明錠剤32の中心部を通る光は直線的に線35dに沿って進み、線35c、35b、35aのように、周縁部に近くなる程、半透明錠剤32での屈折が大きくなる。従来のように半透明錠剤32に照射される光が拡散光であると、光の照射角が様々である。このため、従来の例では、線35a、35b、35c、35d、35e、35f、35gに示すどの光の照射角であっても、照射された光はカメラ部12に届く。なお、従来の例においてカメラ部12で受光する光は、カメラ部12の中心部より周縁部に広がるにつれて傾きが大きくなっているが、これは、カメラ部12の画像素子がレンズを介して半透明錠剤32の像を撮像するためである。よって、図8に示す従来の構成では、本実施の形態で目的とする半透明錠剤32を示す明度の低い画素は生成されない。つまり、従来の例では、図6及び図7に示すように、カメラ部12で取得される透過画像27に、半透明錠剤32の輪郭は明瞭に写らない。
 一方、図9に示す本実施の形態の構成において、照明部13より照射される平行光である光33は、照射角のバラツキが小さい。このため、本実施の形態の例では、光を透過することのできない箇所が、半透明錠剤32に生じる。本実施の形態の例では、線35dのような平行光の照射角に近い角度の光は、カメラ部12に到達する。しかし、本実施の形態において、平行光変換部22より照射される照射光である光33は、一方向の光である。このため、本実施の形態の例では、線35a、35b、35c、35e、35f、35gのように平行光の光軸に対して異なる角度の光の光量は弱い。このため、本実施の形態の例では、半透明錠剤の像52の周縁部の明度が低くなる。つまり、図9に示す本実施の形態の構成によると、半透明錠剤の像52の中心部の明度が高く、周縁部の明度が低い透過画像26が得られる。このため、図4及び図5に示すように、カメラ部12で取得される透過画像26には、半透明錠剤の像52の輪郭が明瞭に写る。
 図10は、本発明の実施の形態1にかかる照明部13から照射される平行光を説明する図である。図10に示すように、照明部13から照射される平行光のうち、薬包体21のみを透過する光(線36a、36g)は屈折を起こさないため直進するが、半透明錠剤32を透過する光(線36b~36f)は大きく屈折を起こす。特に半透明錠剤32の周縁部では光が顕著に屈折するために、カメラ部12へ光が到達せず、半透明錠剤の像52の周縁部の明度が低下する。一方、半透明錠剤32の中心部付近では光の屈折量が少ないため、カメラ部12がその光を受光して、半透明錠剤の像52の中心部付近の明度が高くなる。
 ここで、屈折率は半透明錠剤32の曲率によって決まるため、半透明錠剤32の光の透過度とは関係なく半透明錠剤の像52の周縁部の明度は低くなる。平行光により半透明錠剤の像52の周縁部の明度が低くなる性質を利用することで、本実施の形態の錠剤検査装置11は、透過画像26中で半透明錠剤の像52を背景と明確に切り分け、半透明錠剤の像52の領域を正確に検出することができる。
 よって、図4及び図5に示すように平行光を照射して得られた本実施の形態の透過画像26によると、不透明錠剤の像51の輪郭が明瞭であると共に、半透明錠剤の像52の周縁部の輪郭も明瞭である。よって、画像処理部15は、透過画像26より不透明錠剤の像51及び半透明錠剤の像52の輪郭を容易に検出することができる。本実施の形態1において、半透明錠剤32の検出は、透過画像26に対して半透明錠剤の像52のサンプル画像とのパターンマッチングにより行なわれ、検出された半透明錠剤32の錠剤数が算出される処理である。
 また、不透明錠剤31と半透明錠剤32の透過度の違いから、不透明錠剤の像51と半透明錠剤の像52の画像が異なるため、本実施の形態は、不透明錠剤の像51と半透明錠剤の像52とを、明確に区別することが可能である。つまり、画像処理部15は、透過画像26において検出された錠剤の像の中で、錠剤の像の中心部に明度の高い画素があるものを半透明錠剤の像52として検出する。
 また、画像処理部15は、サンプル画像とのパターンマッチングを行なう前に、透過画像26に対して極値による細線化及びエッジ抽出を行い、透過画像26より半透明錠剤の像52の輪郭を検出する処理を行っている。このように、透過画像26に対して極値による細線化及びエッジ抽出を行うことで、ノイズを除去して、錠剤の像の輪郭を明瞭にすることができる。ここで、上述のとおり、半透明錠剤の像52は、明度が低い一定の幅の周縁部を有する。しかし、錠剤の姿勢及びカメラ部12からの相対位置によってカメラ部12へ到達する光の屈折率が変わるため、同種の錠剤の像であっても、明度の低い周縁部の幅が変動する。半透明錠剤の像52の中心部から周縁部にかけての屈折率は段階的に変わっていくため、半透明錠剤の像52の周縁部の明度は中心部より段階的に変化する。ただし、半透明錠剤の像52の最も外側については、明度が極端に変化することを利用して、微分処理によるエッジ抽出の際に変化量の大きい極値のみを残す細線化を行うことで、最も外側の周縁部のみを残すことが可能となる。最も外側の周縁部、すなわち半透明錠剤の像52の輪郭の大きさは、各錠剤の大きさにより決定される。このため、エッジ画像において、錠剤の位置や姿勢によって影響されない安定したパターンマッチング処理が可能となる。
 次に、上述した錠剤検査装置11を用いた錠剤検査方法について説明する。
 図11は、本実施の形態1にかかる錠剤検査装置11を用いた錠剤検査方法を示すフローチャートである。
 まず、照明部13の発光部23が拡散光を発光し、平行光変換部22によって拡散光が平行光に変換される。カメラ部12は、変換された平行光である光33が照射された、半透明錠剤32を含む薬包体21を撮像することにより、周縁部の明度が低い半透明錠剤の像52を含む透過画像26を取得する(ステップS01)。ここで透過画像26は、不透明錠剤の像51と半透明錠剤の像52を含む。
 次に、画像処理部15は、透過画像26より半透明錠剤の像52の検出を行なう。不透明錠剤の像51及び半透明錠剤の像52の輪郭を明瞭にするために、画像処理部15は、透過画像26に、canny法によるエッジ抽出処理及び極値による細線化処理を施す(ステップS02)。
 画像処理部15は、ステップS02でエッジ抽出処理及び細線化処理を施すことにより得られたエッジ画像と、半透明錠剤の像52のサンプル画像とのパターンマッチングにより、半透明錠剤の像52を検出する。画像処理部15は、検出された半透明錠剤の像52の個数を、半透明錠剤32の錠剤数として算出する(ステップS03)。
 ここで、半透明錠剤の像52の詳細な検出方法について説明する。画像処理部15は、処方箋に記された半透明錠剤32のサンプル画像より、半透明錠剤の像52の輪郭のみのサンプル画像を作成する。ここで、半透明錠剤32のサンプル画像は、画像処理部15が予め記憶していても良いし、外部から取得しても良い。画像処理部15は、作成したサンプル画像と類似する画像を、薬包体21の透過画像26のエッジ画像中から、パターンマッチングにより抽出することにより、半透明錠剤の像52の候補を検出する。透過画像26よりパターンマッチングによって半透明錠剤の像52を検出しようとすると、周縁部の形状が似た不透明錠剤の像51と半透明錠剤の像52とがある場合に、不透明錠剤の像51を半透明錠剤の像52として検出してしまうことがある。そこで、正確に半透明錠剤の像52を検出することができるように、画像処理部15は、半透明錠剤の像52の候補の中から、中心部に明度の高い画素があるものを半透明錠剤の像52として検出する。例えば、半透明錠剤の像52の候補の周縁部の平均明度と中心部の平均明度との差が所定の明度差閾値以上であれば、その候補は、半透明錠剤の像52であると判断することができる。
 ステップS01からステップS03により、薬包体21に包まれた半透明錠剤32を正確に算出することができる。
 次に、画像処理部15は、不透明錠剤の像51の検出を行なう。まず、画像処理部15は、薬包体21の透過画像26より、半透明錠剤の像52を除去する(ステップS04)。画像処理部15は、半透明錠剤の像52を除去した透過画像26に対して、2値化処理を施す(ステップS05)。画像処理部15は、2値化処理が施された透過画像26より、不透明錠剤31の錠剤数を算出する。2値化処理が施された薬包体21の透過画像26には、不透明錠剤の像51が残るため、算出された錠剤数は不透明錠剤31の錠剤数となる(ステップS06)。なお、不透明錠剤31の錠剤数の算出処理は、これに限定されるものではない。例えば、画像処理部15は、2値化された透過画像26から、領域とコーナーとを検出した後、領域数及びコーナー数から不透明錠剤31の錠剤数を求めても良い。また、画像処理部15は、2値化された透過画像26と、2値化された不透明錠剤の像51のサンプル画像とのパターンマッチングを行うことにより、不透明錠剤の像51を検出し、不透明錠剤31の錠剤数を求めても良い。ここで、不透明錠剤の像51のサンプル画像は、画像処理部15が予め記憶していても良いし、外部から取得しても良い。さらに、画像処理部15は、多値画像である透過画像26と、多値画像である不透明錠剤の像51のサンプル画像とのパターンマッチングを行うことにより、不透明錠剤の像51を検出し、不透明錠剤31の錠剤数を求めても良い。この場合には、ステップS05の二値化処理は行う必要がない。
 次に、画像処理部15は、ステップS03で算出された半透明錠剤32の錠剤数と、ステップS06で算出された不透明錠剤31の錠剤数との和と、処方箋に示される錠剤数とを比較して、適切な錠剤数が薬包体21にあるか否を判定して、錠剤数のチェックを行う(ステップS07)。ここで、画像処理部15は、処方箋に示される錠剤数を記憶していても良いし、外部から取得しても良い。ステップS01からステップS07により、錠剤検査装置11は、薬包体21に包まれた錠剤数が適切か否かをチェックすることができる。
 このようにして、錠剤検査装置11は、半透明錠剤32の光の透過度に関係なく半透明錠剤32の錠剤数の検査を行なうことができる。
 なお、上述した錠剤検査装置11では、薬包体21に平行光を照射するために、平行光変換部22と発光部23とを組み合わせて照明部13を形成している。ただし、これは一例であって、例えば透明板25をルーバーフィルムとして、透明板25と発光部23とを組み合わせて照明部としてもよい。また、平行光変換部22はルーバーフィルム以外にも、ハニカムボードを使用してもよい。また、平行光変換部22を用いず、薬包体21から1m以上離れて発光部23から平行光を照らす構成でもよい。また、光源を点光源として、凸面鏡による反射、フレネルレンズや凸レンズによる屈折を利用して、平行光に変換してもよい。
 図4及び図5に示すように、本実施の形態における錠剤検査装置11を用いると、半透明錠剤の像52には、必ず中心部に明度の高い画素が存在する。そのために、不透明錠剤の像51と半透明錠剤の像52のサンプル画像の形状とが同じ形状であったとしても、錠剤の中心部に明度の高い画素が存在しなければ、錠剤検査装置11は、錠剤を不透明錠剤の像51として判定することができる。一方、錠剤の中心部に明度の高い画素が存在すると半透明錠剤の像52として判定することができる。
 このようにすることで、錠剤検査装置11は、不透明錠剤の像51と半透明錠剤の像52とを区別して検出することができる。
 (実施の形態2)
 次に、本発明の実施の形態2にかかる錠剤検査装置について説明する。本実施の形態2にかかる錠剤検査装置の構成は、実施の形態1と同じである。ただし、本実施の形態2にかかる錠剤検査装置では、カメラ部12の配置が実施の形態1とは異なる。
 図12は、本発明の実施の形態2にかかるカメラ部12と載置台14との位置関係を示す概略図である。図13は、本実施の形態2にかかる薬包体21及び載置台14の平面図である。図14は、本実施の形態2にかかるカメラ部12で撮影された薬包体の透過画像46を示す図である。
 以下、本実施の形態2が実施の形態1と異なる点について、図面を参照しながら説明する。
 図12、図13に示すように、本実施の形態2の錠剤検査装置では、照明部13の中心軸37(照明部13が照射する平行光の光軸)に対して、カメラ部12の撮像軸38及び薬包体21の中心を結ぶ線の角度を、120°以上160°未満となるような位置に、カメラ部12を配置している。そのため、本実施の形態2では、カメラ部12は、カメラ部12の撮像軸38と照明部13の中心軸37とがずれた位置に配置されている。つまり、本実施の形態2では、カメラ部12の撮像軸38が、薬包体21の中心より離れた位置を通過するように、カメラ部12を配置している。
 このように配置すると、図14に示すように、カメラ部12で撮影された透過画像46において、半透明錠剤の像55の明度の高い箇所を、半透明錠剤の像55の中心部よりずれた位置で取得することができる。その理由について、以下に説明する。
 図15は、本実施の形態2にかかる半透明錠剤32を透過する平行光を説明するための概念図である。
 本実施の形態2におけるカメラ部12は、カメラ部12の撮影領域(図13の撮影領域12a)の中心部よりずれた位置で、薬包体21を撮影する。このため、薬包体21を通過しカメラ部12に入射する光は、カメラ部12の撮像軸38に対して傾いている。カメラ部12に入射する光の中で半透明錠剤32を通る光は、図15において線41a、41b、41c、41dである。
 カメラ部12に入射する光の中で半透明錠剤32の左側(図15の正面より見て左側)を通る光は、カメラ部12の撮像軸38が薬包体21から離れているため、照明部13の中心軸37に対して平行な光である。すなわち、照明部13の中心軸37に対して平行な光は、半透明錠剤32の左側を通って屈折して、線41a、41bに沿ってカメラ部12に入射する。この場合、照明部13から照射される光が、ほぼそのままカメラ部12に入射されるため、透過画像46におけるその部分の明度は高くなる。これは、半透明錠剤32に入射する光の照射角と、半透明錠剤32での当該光の屈折角とが適切であるためである。
 しかし、カメラ部12に入射する光の中で半透明錠剤32のその他の部分を通る光は、照明部13の中心軸37に対して大きく傾いた光である。本実施の形態2では、照明部13から照射される光は平行光であるため、照明部13から照射されて半透明錠剤32のその他の部分を通る光は、カメラ部12にほとんど入射されず、透過画像46におけるその部分の明度は低くなる。
 よって、本実施の形態2では、カメラ部12で取得した透過画像46において、半透明錠剤の像55の明度の高い箇所が、半透明錠剤の像55の中心部よりずれている。
 このように、カメラ部12の撮影領域12aの中心部よりずれた位置で薬包体21を撮影すると、図14に示すように、半透明錠剤の像55は、明度の高い箇所がその中心部よりずれた歪なドーナツ形状となる特徴を有する。よって、画像処理部15で行なわれる半透明錠剤の像55の輪郭の検出において、輪郭としての周縁部の形状に加えて、明度の高い領域としての内周の形状を判定することで、内周の形状が特徴的な半透明錠剤の像55の特定が容易となる。つまり、半透明錠剤の像55において、輪郭の中心と明度の高い領域の中心とが所定距離以上離れている場合に、その領域は半透明錠剤の像55であると特定することができる。このような処理を行うことで、例えば、薬包体21に印字された円形状を、半透明錠剤32として検出するような検出誤りを防止することができる。
 なお、特徴的な半透明錠剤の像55を得るために、カメラ部12は、カメラ部12の撮像軸38を照明部13の平行光の中心軸37に対して傾けてもよい。例えば、図16に示すように、平行光の中心軸37上に位置するカメラ部12を、カメラ部12の撮像軸38が中心軸37に対して傾くように配置しても良い。
 (実施の形態3)
 次に、本発明の実施の形態3にかかる錠剤検査装置について説明する。本実施の形態3にかかる錠剤検査装置の構成は、実施の形態1と同じである。ただし、画像処理部15の実行する処理が一部異なる。
 前述の実施の形態1では、薬包体21は、透明フィルムにより構成されることとした。しかし、薬包体21の一部には、患者名等の印字を行うための白色フィルムが用いられる場合がある。透明フィルムと白色フィルムとでは光の透過率が異なるため、各フィルム上に位置する錠剤の見え方にも差が生じる。本実施の形態3では、このような場合においても、正確に錠剤数が適切か否かをチェックすることができる錠剤検査装置を実現している。
 図17は、本発明の実施の形態3にかかる薬包体の平面図である。
 以下、本実施の形態3が実施の形態1と異なる点について、図面を参照しながら説明する。
 一般的な薬包体は透明フィルムよりなるために、透過度が一律である。だが、薬包体の中には、裏面に透過度の異なる領域を持つ薬包体61が存在する。図17に示すように、このような薬包体61は、印字を行なうために透明フィルムよりも透過度を低くした台紙領域62と、透明フィルムの非台紙領域63より構成される。台紙領域62は、一般的には白色のフィルムの領域であり、台紙領域62に、患者名や薬包体61に封入された錠剤の情報等が印字される。ただし、台紙領域62のフィルムの色は白色に限定はされない。
 台紙領域62は、照明部13の光を拡散させたり弱めたりする。そのため、台紙領域62と非台紙領域63との境界線上に半透明錠剤32が存在すると、1つの半透明錠剤32の明度が台紙領域62側と非台紙領域63側とで異なる。その結果、半透明錠剤32の輪郭を検出しようとすると、誤検出を起こすことがある。特に、台紙領域62が照明部13の側にある場合には、照明部13からの平行光が、半透明錠剤32に照射される前に拡散してしまうため、台紙領域62上の半透明錠剤32と非台紙領域63上の半透明錠剤32との明度の違いが顕著に表れる。つまり、台紙領域62が照明部13の側にあると、台紙領域62がカメラ部12の側にある場合に比べて、半透明錠剤32の明度が台紙領域62の影響を受け易くなる。
 そこで、本実施の形態3の錠剤検査装置の画像処理部15は、薬包体61の透過画像より半透明錠剤の像52の輪郭を検出する上で、薬包体61の透過画像を、台紙領域62と非台紙領域63に分ける。画像処理部15は、台紙領域62において半透明錠剤32の輪郭を検出するための台紙領域閾値と、非台紙領域63において半透明錠剤32の輪郭を検出するための非台紙領域閾値の二つの閾値を用いて、半透明錠剤の像52の輪郭を検出する。ここで言う閾値とは、図11のステップS02で実行されるcanny法における2値化閾値、またはステップS05で実行される透過画像26の2値化処理における2値化閾値のことである。また、台紙領域62と非台紙領域63とでcanny法における微分フィルタの係数を変えても良い。微分フィルタの係数とは、例えば、微分フィルタの大きさを規定するための値である。
 このように、画像処理部15が半透明錠剤の像52の輪郭を検出すための二つの閾値を用いることで、半透明錠剤32が台紙領域62と非台紙領域63に存在していたとしても、半透明錠剤32を1つの錠剤として検出することができる。
 なお、画像処理部15は、エッジ抽出を行なった際に、最も長い線と次に長い線を台紙領域62の境界線として認識し、その2本の線の間を台紙領域62として識別する。台紙領域62は目立つように広い範囲で形成されるため、最も長い線と次に長い線を検出することで、台紙領域62を容易に識別することができる。なお、台紙領域62と非台紙領域63の境界に位置する錠剤により線が途切れた場合には、途切れた線をつなげる処理を行っても良い。
 ここで、台紙領域62の配置は、図17に示したものには限定されない。このため、台紙領域62がどのような配置であっても台紙領域62を識別するために、以下のような処理により台紙領域62を識別しても良い。例えば、画像処理部15は、エッジ抽出結果から、所定の距離閾値以上の長さの線を境界線として認識し、境界線で区切られる各領域の明度の平均値を算出する。画像処理部15は、明度の平均値が所定の明度閾値以下の領域、または、明度の平均値が最も小さい領域を、台紙領域62として検出しても良い。
 また、上述のように、光は、台紙領域62を通過する際に拡散する。このため、台紙領域62による光の拡散を防止するために、照明部13は、光が拡散しにくい性質を有する赤外光の平行光を薬包体21に照射するようにしても良い。
 本発明は、例えば、調剤作業を行う薬局や病院施設等で利用される錠剤検査装置として有用である。
 11  錠剤検査装置
 12  カメラ部
 12a  撮影領域
 13  照明部
 14  載置台
 15  画像処理部
 17  表示部
 18  制御部
 21,61  薬包体
 22  平行光変換部
 22a  透過帯
 22b  吸収帯
 22c,22d  積層体
 23  発光部
 24  ガイド部
 25  透明板
 26,27,46  透過画像
 31  不透明錠剤
 32  半透明錠剤
 33  光
 35a,35b,35c,35d,35e,35f,35g,36a,36b,36c,36d,36e,36f,36g,41a,41b,41c,41d  線
 37  中心軸
 38  撮像軸
 51,53  不透明錠剤の像
 52,54,55  半透明錠剤の像
 62  台紙領域
 63  非台紙領域

Claims (15)

  1.  光を透過する薬剤である半透明錠剤が封入された薬包体に平行光を照射する照明部と、
     前記平行光が照射された前記薬包体を撮像することにより前記薬包体の透過画像を取得する撮像部と、
     前記透過画像において、中心部よりも周縁部の明度が低い領域を前記半透明錠剤の領域として検出する画像処理部と、
     を備える錠剤検査装置。
  2.  前記照明部は、
     拡散光を発光する発光部と、
     前記発光部より発光する拡散光を平行光に変換する平行光変換部とで構成された
     請求項1に記載の錠剤検査装置。
  3.  前記平行光変換部は、ルーバーフィルムまたはハニカムボードである、
     請求項2に記載の錠剤検査装置。
  4.  前記撮像部は、前記照明部が照射する前記平行光の光軸と、前記撮像部の撮像軸及び前記薬包体の中心を結ぶ線とが、なす角度が120°以上160°未満となる位置に配置された、
     請求項1~3のいずれか1項に記載の錠剤検査装置。
  5.  前記撮像部は、前記撮像部の撮像軸と前記照明部が照射する前記平行光の光軸とがずれた位置に配置される、
     請求項1~4のいずれか1項に記載の錠剤検査装置。
  6.  前記撮像部は、前記撮像部の撮像軸が、前記照明部が照射する前記平行光の光軸に対して傾く位置に配置された、
     請求項1~5のいずれか1項に記載の錠剤検査装置。
  7.  前記画像処理部は、前記透過画像において、明度が高い前記半透明錠剤の像の中心部の中心と、前記中心部よりも明度が低い前記半透明錠剤の像の輪郭の中心とが異なる領域を、前記半透明錠剤の領域として検出する、
     請求項4~6のいずれか1項に記載の錠剤検査装置。
  8.  前記薬包体は、印字がなされた台紙領域と、前記台紙領域よりも光の透過度が高い非台紙領域とを有し、
     前記画像処理部は、前記透過画像のうちの前記台紙領域の画像から台紙領域閾値を用いて輪郭を検出し、前記透過画像のうちの前記非台紙領域の画像から非台紙領域閾値を用いて輪郭を検出し、前記透過画像から検出された輪郭に基づいて前記半透明錠剤の領域を検出する、
     請求項1~7のいずれか1項に記載の錠剤検査装置。
  9.  前記台紙領域は、前記照明部の側に配置された、
     請求項8に記載の錠剤検査装置。
  10.  前記画像処理部は、前記透過画像において前記半透明錠剤の像の周縁部と中心部との間の明度の偏りの性質を利用して、サンプル画像を前記透過画像にパターンマッチングさせることにより、前記半透明錠剤の領域を検出する、
     請求項1~8のいずれか1項に記載の錠剤検査装置。
  11.  前記照明部が前記薬包体に照射する前記平行光は、赤外光である、
     請求項1~10のいずれか1項に記載の錠剤検査装置。
  12.  光を透過する薬剤である半透明錠剤が封入された薬包体に平行光を照射した状態で、前記薬包体の像である透過画像を取得する取得ステップと、
     前記透過画像において、中心部よりも周縁部の明度が低い領域を前記半透明錠剤の像として検出する検出ステップと、
     前記検出ステップによる検出結果に基づいて、前記半透明錠剤が封入された薬包体を検査する検査ステップと、を含む、
     錠剤検査方法。
  13.  前記取得ステップでは、前記平行光の光軸と撮像部の撮像軸とがずれるような位置に配置された前記撮像部を用いて前記透過画像を取得する、
     請求項12に記載の錠剤検査方法。
  14.  前記検出ステップでは、前記透過画像において、明度が高い前記半透明錠剤の像の中心と、前記中心部よりも明度が低い前記半透明錠剤の像の輪郭の中心とが異なる領域を、前記半透明錠剤の領域として検出する、
     請求項12または13に記載の錠剤検査方法。
  15.  前記検出ステップでは、さらに、
     前記透過画像より検出した前記半透明錠剤の領域を除去し、
     前記半透明錠剤の領域を除去した前記透過画像に対して2値化処理を施し、
     2値化処理が施された前記透過画像より不透明錠剤の領域を検出し、
     前記半透明錠剤の錠剤数と前記不透明錠剤の錠剤数との和が適切な錠剤数であるか否かを判定して、前記錠剤を検査する、
     請求項12~14のいずれか1項に記載の錠剤検査方法。
PCT/JP2012/003962 2011-07-13 2012-06-18 錠剤検査装置及び錠剤検査方法 WO2013008392A1 (ja)

Priority Applications (4)

Application Number Priority Date Filing Date Title
CN201280004350.4A CN103492862A (zh) 2011-07-13 2012-06-18 药片检查装置以及药片检查方法
US13/824,011 US20130188038A1 (en) 2011-07-13 2012-06-18 Tablet inspection device and tablet inspection method
EP12811806.4A EP2733480A1 (en) 2011-07-13 2012-06-18 Tablet inspection device and tablet inspection method
JP2012557349A JP5414917B2 (ja) 2011-07-13 2012-06-18 錠剤検査装置及び錠剤検査方法

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2011154545 2011-07-13
JP2011-154545 2011-07-13

Publications (1)

Publication Number Publication Date
WO2013008392A1 true WO2013008392A1 (ja) 2013-01-17

Family

ID=47505703

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2012/003962 WO2013008392A1 (ja) 2011-07-13 2012-06-18 錠剤検査装置及び錠剤検査方法

Country Status (5)

Country Link
US (1) US20130188038A1 (ja)
EP (1) EP2733480A1 (ja)
JP (1) JP5414917B2 (ja)
CN (1) CN103492862A (ja)
WO (1) WO2013008392A1 (ja)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105208995A (zh) * 2013-05-22 2015-12-30 松下健康医疗控股株式会社 药片检查装置以及药片检查方法
WO2019003972A1 (ja) * 2017-06-28 2019-01-03 日本電気株式会社 服薬管理システム、服薬管理方法、管理装置およびプログラム記憶媒体
WO2022065275A1 (ja) * 2020-09-25 2022-03-31 富士フイルム富山化学株式会社 薬剤識別システム及び薬剤識別方法

Families Citing this family (30)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130329976A1 (en) * 2011-02-03 2013-12-12 Luca Natali System and method for packaged medicament inspection
US20130058550A1 (en) * 2011-03-24 2013-03-07 Takanobu Tanimoto Tablet inspection apparatus and tablet inspection method using the same
EP2711682B1 (en) 2011-05-20 2019-07-10 Riken Clarifying reagent for biological materials and use thereof
WO2015022883A1 (ja) 2013-08-14 2015-02-19 独立行政法人理化学研究所 光透過性に優れた生物材料を調製するための組成物およびその利用
JP6167053B2 (ja) * 2014-02-28 2017-07-19 富士フイルム株式会社 検査装置及び検査方法、並びに検査方法をコンピュータに実行させるプログラム
JP6427332B2 (ja) * 2014-04-08 2018-11-21 株式会社ミツトヨ 画像測定機
WO2016047295A1 (ja) * 2014-09-25 2016-03-31 株式会社湯山製作所 薬剤鑑査支援装置
JP6154406B2 (ja) * 2015-01-14 2017-06-28 株式会社ダイシン 搬送物検査システム及び搬送装置
KR102322987B1 (ko) * 2015-06-26 2021-11-09 (주)제이브이엠 약포 검사 장치 및 약포 검사 방법
JP6751521B2 (ja) * 2015-11-18 2020-09-09 富士ゼロックス株式会社 データ取得装置、印刷装置、真贋判定装置およびプログラム
JP6333871B2 (ja) * 2016-02-25 2018-05-30 ファナック株式会社 入力画像から検出した対象物を表示する画像処理装置
CN109195568A (zh) * 2016-06-17 2019-01-11 株式会社汤山制作所 检验辅助系统和药品分发装置
US10187593B2 (en) 2016-09-27 2019-01-22 Rxsafe Llc Verification system for a pharmacy packaging system
US11595595B2 (en) 2016-09-27 2023-02-28 Rxsafe Llc Verification system for a pharmacy packaging system
JP6549655B2 (ja) * 2017-08-03 2019-07-24 ファナック株式会社 物品搬送装置
JP6894977B2 (ja) * 2017-08-22 2021-06-30 富士フイルム富山化学株式会社 薬剤検査支援装置、薬剤検査支援方法、薬剤識別装置、薬剤識別方法及びプログラム、記録媒体
US10892048B2 (en) * 2017-09-28 2021-01-12 Puli Pravin Reddy Machine learning pill identification
US10583941B2 (en) 2017-10-13 2020-03-10 Rxsafe Llc Universal feed mechanism for automatic packager
US11176651B2 (en) * 2017-10-18 2021-11-16 Anthony C. Liberatori, Jr. Computer-controlled 3D analysis of collectible objects
US10596319B2 (en) 2017-11-23 2020-03-24 Aesynt Incorporated Compounding device system
US10991264B2 (en) 2017-11-23 2021-04-27 Omnicell, Inc. Multi-camera imaging for IV compounding
US11335444B2 (en) 2017-11-30 2022-05-17 Omnicell, Inc. IV compounding systems and methods
CN108327934A (zh) * 2018-01-04 2018-07-27 深圳中科华驰科技有限公司 自动包药过程中的药品检查方法
CN108311414A (zh) * 2018-01-10 2018-07-24 陈德言 一种压片机药片自动检测装置
CN108405351A (zh) * 2018-01-10 2018-08-17 陈德言 一种药片自动检测装置
KR102026415B1 (ko) * 2018-02-01 2019-09-27 주식회사 라이너스 알약 인식 방법 및 장치
JP7134331B2 (ja) * 2019-03-08 2022-09-09 三菱電機株式会社 計数システム、計数装置、機械学習装置、計数方法、部品配置方法、および、プログラム
JP6763064B1 (ja) * 2019-06-11 2020-09-30 Ckd株式会社 検査装置及び包装体製造装置
CN110963096B (zh) * 2019-12-28 2024-04-16 苏州安斯特灵智能科技有限公司 一种药片自动核对设备及方法
CN113096076B (zh) * 2021-03-26 2024-05-17 北京国尚信科技有限公司 一种基于机器视觉的西林瓶计数对数系统及方法

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6168543A (ja) * 1984-09-12 1986-04-08 Nitto Electric Ind Co Ltd 検体における欠陥の光学的検査方法及びその装置
JPH04178545A (ja) * 1990-11-14 1992-06-25 Fuji Photo Film Co Ltd 透明帯状体の検査方法及び装置
JPH07282219A (ja) 1994-04-08 1995-10-27 Sanyo Electric Co Ltd 画像認識手段を具えた錠剤検査装置及び錠剤検査方法
JPH09183422A (ja) * 1995-12-28 1997-07-15 Biinzu U:Kk 分包シートのシール部における被包装物の噛込検査装置および方法
JP2004234132A (ja) 2003-01-28 2004-08-19 Matsushita Electric Works Ltd 粒状物体の検査装置およびその検査方法
JP2006153534A (ja) * 2004-11-26 2006-06-15 Ckd Corp 不良検査装置及びptp包装機
JP2006267022A (ja) * 2005-03-25 2006-10-05 Kurabo Ind Ltd 欠陥検査装置及び方法
JP2008018230A (ja) 2006-06-14 2008-01-31 Tafutei:Kk 分包薬剤の検薬方法と検薬装置
JP2010071721A (ja) * 2008-09-17 2010-04-02 Nippon Steel Corp 鋼板の凹凸疵検出装置及び凹凸疵検出方法
JP2011085520A (ja) * 2009-10-16 2011-04-28 Kaneka Corp 欠陥判別装置、欠陥判別方法及びシート状物
JP2011158396A (ja) * 2010-02-02 2011-08-18 Ccs Inc 液体容器検査装置

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6469311B1 (en) * 1997-07-16 2002-10-22 Molecular Devices Corporation Detection device for light transmitted from a sensed volume
JPH11330798A (ja) * 1998-05-19 1999-11-30 Fuji Mach Mfg Co Ltd 電気部品装着方法およびシステム
US7796266B2 (en) * 2004-04-30 2010-09-14 Kimberly-Clark Worldwide, Inc. Optical detection system using electromagnetic radiation to detect presence or quantity of analyte
US7599516B2 (en) * 2005-08-23 2009-10-06 Illinois Tool Works Inc. Machine vision counting system apparatus and method
US8727208B2 (en) * 2006-06-30 2014-05-20 Intel-Ge Care Innovations Llc Method for identifying pills via an optical device
WO2009016614A2 (en) * 2007-08-02 2009-02-05 Emza Visual Sense Ltd. Universal counting and measurement system
US8355019B2 (en) * 2007-11-02 2013-01-15 Dimension Technologies, Inc. 3D optical illusions from off-axis displays
US8914148B2 (en) * 2007-11-26 2014-12-16 Micro Datastat, Ltd. Pharmacy medication verification system
EP2545361A1 (en) * 2010-03-09 2013-01-16 Federal-Mogul Corporation Bore inspection system and method of inspection therewith
US8215557B1 (en) * 2010-11-18 2012-07-10 Innovation Associates, Inc. Low profile color-based counting system

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6168543A (ja) * 1984-09-12 1986-04-08 Nitto Electric Ind Co Ltd 検体における欠陥の光学的検査方法及びその装置
JPH04178545A (ja) * 1990-11-14 1992-06-25 Fuji Photo Film Co Ltd 透明帯状体の検査方法及び装置
JPH07282219A (ja) 1994-04-08 1995-10-27 Sanyo Electric Co Ltd 画像認識手段を具えた錠剤検査装置及び錠剤検査方法
JPH09183422A (ja) * 1995-12-28 1997-07-15 Biinzu U:Kk 分包シートのシール部における被包装物の噛込検査装置および方法
JP2004234132A (ja) 2003-01-28 2004-08-19 Matsushita Electric Works Ltd 粒状物体の検査装置およびその検査方法
JP2006153534A (ja) * 2004-11-26 2006-06-15 Ckd Corp 不良検査装置及びptp包装機
JP2006267022A (ja) * 2005-03-25 2006-10-05 Kurabo Ind Ltd 欠陥検査装置及び方法
JP2008018230A (ja) 2006-06-14 2008-01-31 Tafutei:Kk 分包薬剤の検薬方法と検薬装置
JP2010071721A (ja) * 2008-09-17 2010-04-02 Nippon Steel Corp 鋼板の凹凸疵検出装置及び凹凸疵検出方法
JP2011085520A (ja) * 2009-10-16 2011-04-28 Kaneka Corp 欠陥判別装置、欠陥判別方法及びシート状物
JP2011158396A (ja) * 2010-02-02 2011-08-18 Ccs Inc 液体容器検査装置

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105208995A (zh) * 2013-05-22 2015-12-30 松下健康医疗控股株式会社 药片检查装置以及药片检查方法
EP3000458A4 (en) * 2013-05-22 2016-05-18 Panasonic Healthcare Holdings Co Ltd PILL IN INSPECTION DEVICE AND PILL IN INSPECTION PROCESS
JPWO2014188650A1 (ja) * 2013-05-22 2017-02-23 パナソニックヘルスケアホールディングス株式会社 錠剤検査装置及び錠剤検査方法
US9958400B2 (en) 2013-05-22 2018-05-01 Panasonic Healthcare Holdings Co., Ltd. Pill inspection apparatus and pill inspection method
WO2019003972A1 (ja) * 2017-06-28 2019-01-03 日本電気株式会社 服薬管理システム、服薬管理方法、管理装置およびプログラム記憶媒体
JPWO2019003972A1 (ja) * 2017-06-28 2020-04-09 日本電気株式会社 服薬管理システム、服薬管理方法、管理装置およびプログラム
JP7092128B2 (ja) 2017-06-28 2022-06-28 日本電気株式会社 服薬管理システム、服薬管理方法、管理装置およびプログラム
WO2022065275A1 (ja) * 2020-09-25 2022-03-31 富士フイルム富山化学株式会社 薬剤識別システム及び薬剤識別方法
JP7406645B2 (ja) 2020-09-25 2023-12-27 富士フイルム富山化学株式会社 薬剤識別システム及び薬剤識別方法

Also Published As

Publication number Publication date
US20130188038A1 (en) 2013-07-25
JP5414917B2 (ja) 2014-02-12
JPWO2013008392A1 (ja) 2015-02-23
CN103492862A (zh) 2014-01-01
EP2733480A1 (en) 2014-05-21

Similar Documents

Publication Publication Date Title
WO2013008392A1 (ja) 錠剤検査装置及び錠剤検査方法
JP6379088B2 (ja) 錠剤検査装置及び錠剤検査方法
JP5496348B2 (ja) 錠剤検査装置およびこれを用いた錠剤検査方法
US9084714B2 (en) Device for counting the number of medicines in medicine packaging envelope
JP5747150B2 (ja) 錠剤検査装置および錠剤検査方法
CN100565195C (zh) 图形不匀缺陷检查方法和装置
JP6199042B2 (ja) 容器の検査装置
KR101762165B1 (ko) 외관 검사 장치
JPWO2015049765A1 (ja) 包装体の検査装置
WO2019193912A1 (ja) 薬剤判定装置及び薬剤判定方法
US10314767B2 (en) Dispensing inspection device, dispensing inspection method, and recording medium
KR101762158B1 (ko) 외관 검사 장치
CN109085172A (zh) 图像获取设备和图像获取方法
JP5644580B2 (ja) 異状判定装置及び異状判定方法
JP2013148454A (ja) 錠剤監査装置
JP2006300875A (ja) 液面検出方法、液量検出方法、液面検出装置、液量検出装置および分注装置
WO2019193924A1 (ja) 薬剤判定装置及び薬剤判定方法
JP6360424B2 (ja) 撮像装置および座屈検査装置
WO2017145779A1 (ja) 有価書類識別装置、有価書類処理機、画像センサユニット及び光学可変素子領域の検出方法
CN203069521U (zh) 光学影像检测装置
WO2023079855A1 (ja) 生体試料測定装置
KR20220055267A (ko) 필터 검사 장치
JP2022045805A (ja) 検査装置

Legal Events

Date Code Title Description
ENP Entry into the national phase

Ref document number: 2012557349

Country of ref document: JP

Kind code of ref document: A

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 12811806

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 13824011

Country of ref document: US

WWE Wipo information: entry into national phase

Ref document number: 2012811806

Country of ref document: EP

NENP Non-entry into the national phase

Ref country code: DE