WO2013021543A1 - 薬包体監査システム - Google Patents

薬包体監査システム Download PDF

Info

Publication number
WO2013021543A1
WO2013021543A1 PCT/JP2012/004321 JP2012004321W WO2013021543A1 WO 2013021543 A1 WO2013021543 A1 WO 2013021543A1 JP 2012004321 W JP2012004321 W JP 2012004321W WO 2013021543 A1 WO2013021543 A1 WO 2013021543A1
Authority
WO
WIPO (PCT)
Prior art keywords
tablet
pattern
medicine package
area
inspection
Prior art date
Application number
PCT/JP2012/004321
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 US13/822,737 priority Critical patent/US20130170732A1/en
Priority to JP2012550658A priority patent/JP5422062B2/ja
Publication of WO2013021543A1 publication Critical patent/WO2013021543A1/ja

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • G06T7/0012Biomedical image inspection
    • 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

Definitions

  • the present invention relates to a medicine package inspection system for inspecting a medicine package in which a tablet is sealed.
  • FIG. 18 is a perspective view of the conventional medicine package inspection system 1 described in Patent Document 1.
  • the medicine package inspection system 1 processes the camera 3 for photographing the medicine package 2 at the inspection position, the illuminator 6 disposed below the camera 3, and the light-transmissive transmission image photographed by the camera 3. And a monitor 5 connected to the image processing unit 4.
  • the image processing unit 4 takes in the transmission image taken by the camera 3 and then binarizes the transmission image with a predetermined threshold to obtain a binarized image. That is, the image processing unit 4 generates a binarized image in which a pixel having a luminance larger than the threshold is a white pixel and a pixel having a luminance equal to or less than the threshold is a black pixel.
  • the image processing unit 4 performs contraction processing and expansion processing on the binarized image to remove noise of the binarized image and generate an audit image.
  • the image processing unit 4 regards the white area (lump of white pixels) having a predetermined size or more remaining in the audit image as a tablet area, and detects the number of tablets based on the number of detected tablet areas. Then, the image processing unit 4 determines whether the detected number of tablets matches the total number of tablets to be enclosed in the medicine package.
  • the medicine package inspection system 1 performs medicine package inspection by counting the number of tablets contained in the medicine package.
  • Patent Document 2 discloses a tablet inspection apparatus that detects the number of tablets for each type of tablet.
  • the medicine package inspection system 1 described in Patent Document 1 checks only the number of tablet areas in the inspection image of the medicine package. Depending on the contents of the prescription, in order to adjust the dose of the patient to an appropriate amount, the irregular shaped tablet obtained by dividing the standard shaped tablet by 1 ⁇ 2 or 1 ⁇ 4 is formulated as 1 ⁇ 2 or 1 ⁇ 4 tablet There is something to do.
  • Shaped tablets may be prescribed in a medicine package. Formulating a standard shaped tablet where a shaped tablet is to be formulated can double or quadruple the patient's dose, which can cause major health problems.
  • patent document 2 does not detect the number of objects of odd-shaped tablet like patent document 1, when an odd-shaped tablet is prescribed, it is difficult to detect the number of tablets correctly.
  • the present invention has been made to solve the above-described conventional problems, and provides a medicine package inspection system for performing accurate tablet inspection including the shape of irregular shaped tablets on a medicine package containing a tablet. Intended to be provided.
  • the medicine package inspection system of the present invention generates a packing instruction unit that generates, as packing instruction information, the number of tablets for each type of medicine sealed in the medicine package, and the packing instruction information.
  • the tablet inspection unit is configured to select the shape pattern of the irregular shaped tablet when information on the irregular shaped tablet which is a tablet divided based on the packing instruction information is included in the packaging instruction information.
  • a medicine package inspection system for performing an accurate tablet inspection including the shape of a deformed tablet on a medicine package containing a tablet.
  • FIG. 1 is a schematic configuration diagram of a medicine package inspection system according to a first embodiment of the present invention.
  • FIG. 2A is a diagram showing prescription information according to Embodiment 1 of the present invention.
  • FIG. 2B is a view showing packing instruction information according to Embodiment 1 of the present invention.
  • FIG. 2C is a view showing packing pattern information according to Embodiment 1 of the present invention.
  • FIG. 3 is a flowchart showing a method of inspecting a medicine package of the medicine package inspection system according to the first embodiment of the present invention.
  • FIG. 4 is a flowchart showing the detailed steps of the audit step according to the first embodiment of the present invention.
  • FIG. 5A is a view showing a disk-shaped standard shaped tablet according to Embodiment 1 of the present invention.
  • FIG. 5B is a view showing an example of the irregular-shaped tablet obtained by dividing the disk-shaped standard-shaped tablet according to the first embodiment of the present invention.
  • FIG. 5C is a view showing another example of the irregular shaped tablet obtained by dividing the disk shaped standard shaped tablet according to Embodiment 1 of the present invention.
  • FIG. 5D is a diagram showing an ellipsoidal standard-shaped tablet according to Embodiment 1 of the present invention.
  • FIG. 5E is a view showing an example of an irregular shaped tablet obtained by dividing an ellipsoidal standard shaped tablet according to Embodiment 1 of the present invention.
  • FIG. 5B is a view showing an example of the irregular-shaped tablet obtained by dividing the disk-shaped standard-shaped tablet according to the first embodiment of the present invention.
  • FIG. 5C is a view showing another example of the irregular shaped tablet obtained by dividing the disk shaped standard shaped tablet according to Embodiment 1 of the present invention.
  • FIG. 5D is a diagram
  • FIG. 5F is a view showing another example of the irregular shaped tablet obtained by dividing the ellipsoidal standard shaped tablet according to Embodiment 1 of the present invention.
  • FIG. 6 is a view showing a tablet of the medicine package according to Embodiment 1 of the present invention.
  • FIG. 7 is a view showing a medicine pack image for search according to the first embodiment of the present invention.
  • FIG. 8 is a view showing a medicine pack image for search of an audit process according to the first embodiment of the present invention.
  • FIG. 9 is a view showing another medicine pack image for search in the audit process according to the first embodiment of the present invention.
  • FIG. 10 is a view showing still another medicine pack image for search of the audit process according to the first embodiment of the present invention.
  • FIG. 11 is a view showing a medicine pack image for search including a broken tablet area according to the first embodiment of the present invention.
  • FIG. 12 is a view showing a medicine pack image for search including a broken tablet area in an inspection process according to the first embodiment of the present invention.
  • FIG. 13 is a flowchart showing the detailed steps of the audit step according to the second embodiment of the present invention.
  • FIG. 14 is a diagram showing packaging pattern information according to the second embodiment of the present invention.
  • FIG. 15 is a view showing a medicine pack image for search according to the second embodiment of the present invention.
  • FIG. 16 is a view showing a medicine pack image for search of an audit process according to the second embodiment of the present invention.
  • FIG. 17 is a view showing another medicine pack image for search in the audit process according to the second embodiment of the present invention.
  • FIG. 18 is a perspective view of a conventional medicine package inspection system.
  • FIG. 1 is a schematic configuration diagram of a medicine package inspection system 10 according to a first embodiment of the present invention.
  • 2A to 2C are diagrams for explaining various information contents according to the first embodiment, FIG. 2A shows prescription information, FIG. 2B shows packing instruction information, and FIG. 2C shows FIG. , Indicates packaging pattern information.
  • FIG. 3 is a flowchart showing a method of inspecting the medicine package of the medicine package inspection system 10.
  • FIG. 4 is a flowchart showing the detailed steps of the audit step S04 of FIG.
  • the medicine package inspection system 10 of FIG. 1 includes a packing instruction unit 11, a tablet packing unit 12 for sealing a tablet in a medicine packing 13, a tablet dividing unit 14, an imaging unit 15, and a tablet inspection unit 16. And a tablet information holding unit 20 for holding tablet information. Further, the medicine package inspection system 10 reads the illumination unit 17 for illuminating the medicine package 13, the display unit 18, the transport unit 19 for conveying the medicine package 13, the two-dimensional code of the medicine package 13, etc. And a code input unit 21 for inputting data.
  • the standard shape tablet is divided into one half or one quarter by the tablet dividing unit 14 to form an irregular shaped tablet, and the irregular shape tablet is enclosed in the medicine package 13 and the tablet It is inspected whether or not the irregular shaped tablet is properly contained in the medicine package 13 after the sealing.
  • the standard shaped tablet is a disk-shaped tablet, an ellipsoidal tablet, or the like.
  • the irregular shaped tablet is a standard shaped tablet divided by the tablet dividing unit 14.
  • the tablet dividing unit 14 divides the standard-shaped tablet into 1 ⁇ 2 or 1 ⁇ 4 based on the packing instruction information 26 described later by cutting the standard-shaped tablet with a cutter not shown or the like. Form a shaped tablet.
  • the standard shape tablet is divided by the tablet dividing unit 14 will be described. However, for example, the pharmacist manually divides the standard shape tablet based on the packing instruction information 26 described later. In some cases, shaped tablets are formed.
  • the packing instruction unit 11 calculates the type and number of tablets taken by the patient at one time based on the prescription information 25 and generates packing instruction information 26. That is, the packing instruction information 26 indicates a tablet pattern which is a shape pattern of the tablet to be sealed in the medicine package 13.
  • the prescription information 25 is information indicating the contents of a prescription prepared by a doctor or a pharmacist or the like, and the prescription information 25 includes information indicating a drug that needs to be administered to a patient and its dose and the like.
  • the packing instruction unit 11 electronically generates packing instruction information 26 from the prescription information 25.
  • the packaging instruction unit 11 extracts only information on the prescription of the tablet from the prescription information 25 shown in FIG. 2A, and generates packaging instruction information 26 shown in FIG. 2B.
  • the packing instruction information may be generated by a doctor or a pharmacist.
  • the packing instruction information 26 shown in FIG. 2B includes two standard-shaped tablets A, one odd-shaped tablet B (1/2 divided, a direction), two standard-shaped tablets C, and one odd-shaped tablet It means that the tablet D (1/2 division, b direction) is enclosed in one package of the medicine package. Further, the packing instruction information 26 means that the number of medicine packaging bodies 13 corresponding to 10 days, 3 times / 1 day (the same tablet in morning, day and night) is created.
  • the irregular shaped tablet B (1/2 divided, a direction) means an irregular shaped tablet obtained by dividing the standard shaped tablet B in half in the a direction described later by the tablet dividing unit 14.
  • the irregular shaped tablet D (1/2 divided, b direction) means an irregular shaped tablet obtained by dividing the standard shaped tablet D into 1 ⁇ 2 in the b direction described later by the tablet dividing unit 14.
  • the packing instruction unit 11 creates packing instruction information 26 by giving information on the number of divisions and the division direction with respect to the irregular shaped tablet.
  • 5A-5F show examples of the shapes of standard shaped tablets or irregular shaped tablets.
  • 5A shows the shape of a disk-shaped standard shaped tablet 41
  • FIG. 5B shows the shape of an irregular shaped tablet 41ha obtained by dividing the standard shaped tablet 41 in half in the a direction
  • FIG. 5C shows the standard shaped tablet 41 in the b direction. Shows the shape of the irregular shaped tablet 41hb divided into halves.
  • the standard shape tablet 41 has a linear depression in a disk shape.
  • the irregular shaped tablet 41ha divided in half in the a direction is a standard shaped tablet 41 divided along a linear recess
  • the irregular shaped tablet 41hb divided in half in the b direction is a standard shaped tablet 41.
  • FIG. 5D shows the shape of an ellipsoidal standard shaped tablet 42
  • FIG. 5E shows the shape of an irregular shaped tablet 42ha obtained by dividing the standard shaped tablet 42 in half in the a direction
  • FIG. 5F shows the standard shaped tablet 42b.
  • the shape of the irregular shaped tablet 42hb divided in half in the direction is shown.
  • the irregular shaped tablet 42ha divided in half in the a direction is the standard shaped tablet 42 divided along its minor axis
  • the irregular shaped tablet 42hb divided in half in the b direction is the standard shaped tablet 42. It is divided along its long axis.
  • the tablet dividing unit 14 of FIG. 1 creates the designated irregular shaped tablet in accordance with the packing instruction information 26 of the packing instruction unit 11.
  • the tablet dispensing unit 12 creates a medicine package 13 in which the designated irregular shaped tablet and the standard shaped tablet are enclosed.
  • the tablet dividing unit 14 divides the standard-shaped tablet B in half in the a direction to create the irregular-shaped tablet B, and the standard-shaped tablet D in the b direction 1
  • the irregular shaped tablet D is made by dividing into 2 parts.
  • the tablet packing section 12 causes one irregular shaped tablet B, one irregular shaped tablet D, two standard shaped tablets A, and two standard shaped tablets C to fall together by gravity and become the same.
  • the medicine package 13 is heat-sealed and sealed.
  • the medicine package 13 in which a plurality of tablets are sealed between two films is continuously formed.
  • the medicine package 13 of 30 packages is continuously formed into a series of medicine package sheets.
  • FIG. 6 is a view showing a tablet sealed in a medicine package 13.
  • symbols 51 and 52 in a figure is carrying out the elliptical shape shown to FIG. 5D.
  • the irregular-shaped tablet B denoted by reference numeral 53 in the figure has a shape shown in FIG. 5B obtained by dividing the disk-shaped standard-shaped tablet B in half in the a direction.
  • symbols 54 and 55 in a figure is carrying out the disk shaped shape shown to FIG. 5A.
  • the irregular-shaped tablet D denoted by reference numeral 56 in the figure has a shape shown in FIG. 5F obtained by dividing an ellipsoidal standard-shaped tablet D in half in the b direction.
  • the tablet dispensing unit 12 of FIG. 1 creates a medicine package 13 in which a required tablet is sealed according to the dispensing instruction information 26 of the dispensing instruction unit 11.
  • the packing instruction unit 11 outputs the sheet of the packing instruction information 26 on which the barcode in which the packing instruction information 26 is two-dimensionally coded is printed.
  • the specification of the packing instruction information 26 is simultaneously printed on the sheet of the packing instruction information 26 and is used as master information at the time of confirmation of the medicine package 13 manually.
  • the sheet of the packaging instruction information 26 and the medicine package sheet of the medicine package 13 are sent to the tablet inspection unit 16 or the transport unit 19 by machine or by hand.
  • the code input unit 21 attached to the tablet inspection unit 16 in FIG. 1 is the tablet inspection unit, which is the package instruction information 26 obtained by reading the two-dimensional code printed on the sheet of the package instruction information 26 by a machine or hand. Enter 16
  • the tablet inspection unit 16 creates the packing pattern information 27 corresponding to the packing instruction information 26 while referring to the standard tablet information of the tablet information holding unit 20 for each tablet of the packing instruction information 26.
  • the packing pattern information 27 is, for example, information including a tablet pattern and a tablet pattern area which are shape patterns of the standard shaped tablet A, the irregular shaped tablet B, the standard shaped tablet C and the irregular shaped tablet D, respectively.
  • the tablet information holding unit 20 holds a standard shape tablet pattern which is a standard shape pattern of tablets for various tablets and information (area, color, etc.) accompanying it.
  • the tablet inspection unit 16 first uses the tablet pattern A, which is the tablet pattern of the standard shape tablet A, and the tablet pattern A, which is the area of the tablet pattern A, based on the packing instruction information 26 from the tablet information holding unit 20. Capture the value 90 mm 2 . Then, the tablet inspection unit 16 sets the tablet pattern A, two tablets that are the number of tablets, and 90 mm 2 that is the value of the tablet pattern A area in the packing pattern information 27.
  • the value of the tablet pattern A area corresponds to the projected area (mm ⁇ mm) of the standard-shaped tablet A viewed from the top, and can be converted to the area of the medicine pack image described later.
  • the tablet inspection unit 16 uses the tablet pattern B that is the tablet pattern of the standard-shaped tablet B and the value 60 mm 2 of the tablet pattern B area that is the area of the tablet pattern B based on the packing instruction information 26
  • the tablet pattern Bha corresponding to the irregular-shaped tablet B is created by taking in from the holding unit 20. Then, the tablet inspection unit 16 obtains the value 30 mm 2 of the tablet pattern Bha area of the tablet pattern Bha, and the tablet pattern Bha, one tablet which is the number of tablets, and 30 mm 2 which is the value of the tablet pattern Bha area.
  • the tablet pattern Bha of the irregular shaped tablet B is created by dividing the tablet pattern B of the standard shaped tablet B in half in the a direction, and the value of the tablet pattern Bha area is the value of the tablet pattern B area It is created by multiplying 60 mm 2 by 1/2.
  • the tablet inspection unit 16 determines a tablet pattern C which is a tablet pattern of the standard shape tablet C, two tablet which is the number of tablets and a tablet pattern C which is an area of the tablet pattern C based on the packing instruction information 26.
  • the area value of 20 mm 2 is taken from the tablet information holding unit 20 and set in the packing pattern information 27.
  • the tablet inspection unit 16 uses the tablet pattern D which is the tablet pattern of the standard-shaped tablet D and the value 80 mm 2 of the tablet pattern D area which is the area of the tablet pattern D based on the packing instruction information 26
  • the tablet pattern Dhb corresponding to the irregular shaped tablet D is created by taking in from the holding unit 20. Then, the tablet inspection unit 16 obtains 40 mm 2 which is the value of the tablet pattern Dhb area of the tablet pattern Dhb, and 40 mm which is the value of the tablet pattern Dhb, the number of the tablets and the tablet pattern Dhb area. And 2 are set in the packing pattern information 27.
  • the tablet pattern Dhb of the irregular shaped tablet D is created by dividing the tablet pattern D of the standard shaped tablet D in half in the b direction, and the value of the tablet pattern Dhb area is the value of the tablet pattern D area It is created by multiplying 80 mm 2 by 1/2.
  • the tablet inspection section 16 has 30 medicine packages based on the content of 10 days which is the number of days and the content of 3 times / 1 days (the same for morning, day and night) based on the packing instruction information 26. It is set as the packing pattern information 27 that it is a packing and the packing contents are the same.
  • the medicine package 13 of FIG. 1 is installed on the transport unit 19 by machine or by hand.
  • the imaging unit 15 captures an image of the medicine package 13 irradiated with light by the illumination unit 17 and sends a captured image obtained by capturing to the tablet inspection unit 16.
  • the tablet inspection unit 16 creates a medicine package image 33 a corresponding to the medicine package 13 from the image captured by the imaging unit 15.
  • FIG. 7 shows an example of the medicine package image 33a. Further, the tablet inspection unit 16 outputs the medicine package image 33a to the display unit 18 as necessary.
  • the captured image of the imaging unit 15 is a transmitted light image of the medicine package 13. Therefore, the captured image of the imaging unit 15 is a gray-scale image in which the tablet portion enclosed in the medicine package 13 becomes a black area (that is, a pixel area with low luminance).
  • the tablet inspection unit 16 may create the medicine package image 33a by performing noise removal processing or binarization processing on the captured image of the imaging unit 15 as necessary. In the following description, the tablet area is described as a black area, but the medicine pack image 33a may be reversed in black and white to make the tablet area a white area (that is, a pixel area with high luminance).
  • the tablet inspection unit 16 detects the irregular shaped tablet contained in the medicine package image 33a, and performs an audit of the irregular shaped tablet including its shape. This will be described with reference to the drawings.
  • FIG. 3 shows a flowchart representing an inspection method of the tablet inspection unit 16.
  • packing instruction information 26 is input using the code input unit 21 by data communication, manual input from a keyboard or the like.
  • the tablet inspection unit 16 creates the packing pattern information 27 based on the packing instruction information 26 while referring to the standard tablet information held in the tablet information holding unit 20.
  • the tablet inspection unit 16 corresponds to the standard shape tablet A of the packing instruction information 26 by dividing the tablet pattern A, the number of tablets and the value of the tablet pattern A area.
  • Package pattern information 27 is created.
  • the tablet inspection unit 16 additionally adds the tablet pattern Bha, the number of tablets and the value of the tablet pattern Bha area to the packing pattern information 27 corresponding to the irregular shaped tablet B of the packing instruction information 26. .
  • the tablet inspection unit 16 adds the tablet pattern C, the number of tablets and the value of the tablet pattern C area to the packing pattern information 27 corresponding to the standard shaped tablet C of the packing instruction information 26. Do. Similarly, the tablet inspection unit 16 adds the tablet pattern Dhb, the number of tablets and the value of the tablet pattern Dhb area to the packing pattern information 27 corresponding to the irregular shaped tablet D of the packing instruction information 26. Do. In addition, the tablet inspection unit 16 additionally writes, to the packing pattern information 27, information that the number of medicine packages is 30 and the packing contents are the same, corresponding to the packing instruction information 26.
  • the imaging unit 15 picks up an image of the medicine pack 13 illuminated by the lighting unit 17 and sends a picked up image obtained by imaging to the tablet inspection unit 16.
  • the tablet inspection unit 16 obtains a captured image of the imaging unit 15 and displays the captured image on the display unit 18 as necessary.
  • the imaging timing of the imaging unit 15 is controlled by the tablet inspection unit 16.
  • the tablet inspection unit 16 extracts the region of the medicine pack 13 from the image captured by the imaging unit 15, and creates a medicine pack image 33a.
  • FIG. 7 shows an example of the medicine package image 33a.
  • the tablet inspection unit 16 detects the boundary of the medicine package 13 at a perforation or the like of the medicine package 13 and creates a medicine package image 33 a corresponding to one medicine package 13.
  • the process proceeds to audit step S04, and the medicine package 13 can not be detected in the captured image of the imaging unit 15.
  • the audit processing is ended.
  • the extraction of the region of the medicine package 13 may be performed by marking each medicine package 13 and detecting the mark.
  • the tablet inspection unit 16 performs an inspection including the shape of the irregular shaped tablet contained in the medicine package image 33a.
  • FIG. 4 is a flowchart showing the detailed steps of the audit step S04. The specific description of the flowchart of FIG. 4 will be described later.
  • the tablet inspection unit 16 proceeds to medicine package transport step S05.
  • the tablet inspection unit 16 controls the transporting unit 19 to transport the medicine package 13 by one package in the right direction in the drawing of FIG. 1 and to stop it.
  • a sprocket gear (not shown) is inserted into a hole portion formed on one end surface of medicine package 13 using transport section 19, and this sprocket gear is rotated by a predetermined angle. To do.
  • the tablet inspection unit 16 returns to the medicine package image acquisition step S02, and executes the medicine package image acquisition step S02.
  • the medicine package 13 may be marked, and the medicine package 13 may be sent to a position where the sensor of the transport unit 19 detects the mark.
  • the tablet inspection unit 16 can inspect the medicine package 13 in which the differently shaped tablets are enclosed, one by one.
  • the tablet inspection unit 16 compares the tablet pattern areas included in the packing pattern information 27 and creates the order of the tablet patterns in the ascending order of the tablet pattern area. Also, the tablet inspection unit 16 assigns an inspection code to each tablet pattern, and sets all the inspection codes to “unprocessed”. For example, in the example of the packing pattern information 27 of FIG. 2C, the tablet inspection unit 16 creates the tablet pattern C of the standard shaped tablet as No. 1, creates the tablet pattern Bha of the irregular shaped tablet as No. 2, The tablet pattern Dhb of the irregular shaped tablet is created as No. 3, and the tablet pattern A of the standard shaped tablet is created as No. 4 to create the order of the tablet pattern.
  • the tablet inspection unit 16 sets the inspection code of the tablet pattern C, the tablet pattern Bha, the tablet pattern Dhb, and the tablet pattern A to “unprocessed”.
  • pattern matching is sequentially performed in steps S22 to S28 in which the loop operation is performed in the order of the tablet patterns created here.
  • the tablet inspection unit 16 first refers to the tablet pattern that has not been audited (that is, the tablet whose audit code is "unprocessed") with reference to the order of the tablet pattern created in the order creation step S21.
  • a tablet pattern to be pattern matched is selected by selecting the smallest tablet pattern in order from among the patterns).
  • the tablet inspection unit 16 searches for an image area (here, a black area) to be subjected to pattern matching by performing pattern matching inside the medicine pack image for search using the selected tablet pattern.
  • the tablet inspection unit 16 determines the pattern-matched image area as a tablet area of the selected tablet pattern.
  • the tablet inspection unit 16 determines each image area as a tablet area of the selected tablet pattern.
  • the tablet inspection unit 16 counts the number of tablet areas of the selected tablet pattern.
  • the tablet inspection unit 16 creates a new medicine pack image for search by deleting the tablet area of the tablet pattern determined in the matching step S22 from the medicine pack image for search. Do.
  • the new search drug package image for search is used for pattern matching of the subsequent tablet pattern.
  • the tablet inspection unit 16 compares the number of tablet areas counted in the matching step S22 with the number of tablets of the tablet pattern of the pattern matching target indicated by the packing pattern information 27. If the two match (yes in step S24), the tablet inspection unit 16 changes the inspection code of the tablet pattern selected in the matching step S22 to "processed", and proceeds to the progress check step S25. If the two do not match (no in step S24), that is, if the number of tablet areas is smaller than the number of tablets in the tablet pattern, the tablet inspection unit 16 proceeds to breakage detection step S26 after calculating the number of shortages. .
  • step S25 the tablet inspection unit 16 checks whether there is a tablet pattern that has not been audited. If it is determined that there is a tablet pattern whose audit code is "unprocessed" (yes in step S25), the process returns to the matching step S22. If it is determined that there is no tablet pattern whose audit code is "unprocessed” (no in step S25), the inspection of all tablet patterns in the packaging pattern information 27 has been processed, so the process proceeds to step S05. .
  • the tablet inspection unit 16 sets the selected tablet pattern area as a reference area, and a pixel area of an area smaller than the reference area inside the medicine pack image for search (here, a black area) ) Is detected as a broken tablet area candidate, and a plurality of broken tablet area candidates are searched.
  • a predetermined conversion ratio is set between the tablet pattern area unit and the area unit of the pixel region in the medicine pack image, the conversion ratio is set to 1 here to simplify the description.
  • the tablet inspection unit 16 obtains the area of each detected broken tablet region candidate.
  • the tablet inspection unit 16 arbitrarily selects two or more out of the plurality of broken tablet region candidates, and totals the areas of the selected two or more broken tablet region candidates.
  • the tablet inspection unit 16 determines two or more broken tablet area candidates used for the total as the broken tablet area for the tablet pattern. And the tablet area of the tablet pattern is counted as one tablet area. If there is no damaged tablet area candidate, the tablet inspection unit 16 sets the number of tablet areas in the tablet pattern to zero. In addition, it is confirmed whether the tablet is damaged or not by synthesizing the shapes of two or more broken tablet region candidates used for the total area and pattern matching the synthesized shape with the selected tablet pattern. It is also possible.
  • the tablet inspection unit 16 selects another two or more broken tablet region candidates from among a plurality of broken tablet region candidates, It is also possible to determine the second tablet area of the tablet pattern from its total area or synthetic shape.
  • the tablet inspection unit 16 deletes a broken tablet area of the tablet pattern determined in the breakage detection step S26 from the medicine pack image for searching, thereby obtaining a new medicine pack for search. Create an image The new search drug package image for search is used for pattern matching of the subsequent tablet pattern.
  • the tablet inspection unit 16 compares the number of tablet areas of the tablet pattern counted in the breakage detection step S26 with the insufficient number calculated in the tablet number inspection step S24. If the two match (Yes in step S28), the tablet inspection unit 16 changes the inspection code of the tablet pattern to "processed", and proceeds to the progress check step S25. If the two do not match (No in step S28), the process proceeds to the audit stop step S29.
  • the tablet inspection unit 16 stops the inspection operation of the medicine package 13, and displays an alarm on the display unit 18, for example.
  • the tablet inspection unit 16 refers to the order created in the order creation step S21, and selects the tablet pattern having the smallest order among the tablet patterns whose audit code is "unprocessed", Select the tablet pattern to be pattern matched.
  • the tablet inspection unit 16 first selects the first tablet pattern C having the smallest tablet pattern area as the tablet pattern to be pattern-matched.
  • the tablet inspection unit 16 performs pattern matching inside the medicine pack image 33a for search of FIG. 7 using the tablet pattern C.
  • the tablet inspection unit 16 determines two black areas pattern-matched to the tablet pattern C as the tablet areas 54a and 55a, counts the tablet areas 54a and 55a of the tablet pattern C, and counts 2 as the counted number. Get information of
  • the tablet inspection unit 16 deletes the tablet areas 54a and 55a of the tablet pattern C determined in the matching step S22 from the medicine pack image 33a for search, thereby creating a new drug for search.
  • An envelope image 33 b is created.
  • FIG. 8 shows a medicine pack image 33b for search.
  • the drug package image 33b for search is used for pattern matching of the subsequent tablet pattern.
  • the tablet inspection unit 16 selects two tablet areas of the tablet pattern C counted in the matching step S22, and the tablet pattern C of the pattern matching target indicated by the packing pattern information 27. The number of tablets is compared with two. Since the two match, the tablet inspection unit 16 changes the inspection code of the standard shape tablet pattern C from "unprocessed” to "processed", and proceeds to the progress check step S25.
  • the tablet inspection unit 16 checks the presence or absence of a tablet pattern that has not been audited.
  • the process proceeds to matching step S22.
  • the tablet inspection unit 16 refers to the order created in the order creation step S21, and selects the tablet pattern Bha having the smallest order among the tablet patterns whose audit code is "unprocessed", Select the tablet pattern to be pattern matched.
  • the tablet inspection unit 16 performs pattern matching inside the medicine pack image 33b for search of FIG. 8 using the tablet pattern Bha.
  • the tablet inspection unit 16 determines one black area that is pattern-matched to the tablet pattern Bha as the irregular shaped tablet area 53a, counts the irregular shaped tablet area 53a of the tablet pattern Bha, and counts the number. Get information of 1 piece.
  • the tablet inspection unit 16 deletes the irregular shaped tablet area 53a of the tablet pattern Bha determined in the matching step S22 from the medicine pack image 33b for search, thereby creating a new drug for search.
  • An envelope image 33c is created.
  • FIG. 9 shows a medicine pack image 33c for search.
  • the tablet inspection unit 16 compares one tablet, which is the counted number of tablet areas in the tablet pattern Bha, with one, which is the number of tablet patterns Bha in the packing pattern information 27.
  • the tablet inspection unit 16 changes the inspection code of the tablet pattern Bha from "unprocessed" to "processed", and proceeds to the progress check step S25.
  • the progress check step S25 since it is determined that there is a tablet pattern whose audit code is "unprocessed", the process proceeds to the matching step S22.
  • the tablet inspection unit 16 refers to the order created in the order creation step S21, and selects the tablet pattern Dhb having the smallest order among the tablet patterns whose audit code is "unprocessed", Select the tablet pattern to be pattern matched.
  • the tablet inspection unit 16 performs pattern matching inside the medicine pack image 33c for search in FIG. 9 using the tablet pattern Dhb.
  • the tablet inspection unit 16 determines one black area pattern-matched to the tablet pattern Dhb as the irregular shaped tablet area 56a, counts the irregular shaped tablet area 56a of the tablet pattern Dhb, and counts it as the counted number. Get information of 1 piece.
  • the tablet inspection unit 16 deletes the irregular shaped tablet area 56a of the tablet pattern Dhb determined in the matching step S22 from the medicine pack image 33c for search, thereby creating a new medicine for search.
  • An envelope image 33d is created.
  • FIG. 10 shows a medicine pack image 33d for search.
  • the tablet inspection unit 16 compares one tablet, which is the counted number of tablet areas of the tablet pattern Dhb, with one, which is the number of tablet patterns Dhb of the packing pattern information 27.
  • the tablet inspection unit 16 changes the inspection code of the tablet pattern Dhb from "unprocessed" to "processed", and proceeds to the progress check step S25.
  • the progress check step S25 since it is determined that there is a tablet pattern whose audit code is "unprocessed", the process proceeds to the matching step S22.
  • the tablet inspection unit 16 refers to the order created in the order creation step S21, and selects the tablet pattern D having the smallest order among the tablet patterns whose audit code is "unprocessed", Select the tablet pattern to be pattern matched.
  • the tablet inspection unit 16 uses the tablet pattern D to perform pattern matching inside the medicine pack image 33d for search in FIG.
  • the tablet inspection unit 16 determines two black areas pattern-matched to the tablet pattern D as the tablet areas 51a and 52a, counts the tablet areas 51a and 52a of the tablet pattern D, and counts 2 as the counted number.
  • the tablet inspection unit 16 deletes the tablet areas 51a and 52a of the tablet pattern D determined in the matching step S22 from the medicine pack image 33d for search, thereby obtaining a new medicine pack for search. Create a body image.
  • the tablet inspection unit 16 compares two pieces, which are the counted number of tablet areas of the tablet pattern D, with two pieces, which are the number of tablet patterns D of the package pattern information 27.
  • the tablet inspection unit 16 changes the inspection code of the tablet pattern D from "unprocessed" to "processed”, and proceeds to the progress check step S25.
  • the progress check step S25 since it is determined that there is no tablet pattern whose audit code is "unprocessed", the process proceeds to step S05.
  • FIG. 11 the detection operation of the broken tablet including the steps S26 to S28 will be described with reference to FIGS. 11 and 12.
  • FIG. 11 is a view showing an example of a medicine pack image 33g when the irregular shaped tablet B is broken.
  • the medicine pack image 33g In the inside of the medicine pack image 33g, two tablet areas 51a, 52a corresponding to the standard shape tablet A, two tablet areas 54a, 55a corresponding to the standard shape tablet C, and the irregular shape tablet D
  • the irregular shaped tablet area 56 a and broken tablet area candidates 61 and 62 corresponding to the irregular shaped tablet B are present.
  • step S21 ordering of tablet patterns for pattern matching is performed.
  • step S22 to S25 pattern matching is performed inside the medicine pack image 33g of FIG. 11 using the tablet pattern C having the smallest tablet pattern area, and the tablet regions 54a, 55a subjected to the pattern matching are determined. Then, the tablet areas 54a and 55a that are pattern-matched to the tablet pattern C are deleted, and a new medicine pack image 33h for search is created.
  • FIG. 12 shows a medicine pack image 33h for search. Since the counted number of tablet areas of the tablet pattern C matches the number of tablets of the tablet pattern C of the packing pattern information 27, the audit code of the tablet pattern C is changed to "processed". In the progress check step S25, since it is determined that there is a tablet pattern whose audit code is "unprocessed", the process proceeds to the matching step S22.
  • the tablet inspection unit 16 performs pattern matching inside the medicine pack image 33h for search of FIG. 12 using the tablet pattern Bha having the second smallest tablet pattern area. However, since there is no tablet area having a pattern matching with the tablet pattern Bha in the medicine pack image 33h for searching, the number of counted tablet areas of the tablet pattern Bha is zero.
  • the tablet inspection unit 16 creates a new medicine pack image for search by deleting the tablet area detected from the medicine pack image 33h for search. However, here, since there is no detected tablet area, the medicine pack image for searching is the same as the medicine pack image 33h of FIG.
  • the tablet inspection unit 16 sets the black area of the area smaller than the reference area inside the medicine pack image 33h for search with the selected tablet pattern Bha area as the reference area. By detecting as a candidate, a plurality of broken tablet area candidates are searched.
  • FIG. 12 shows an example of the broken tablet area candidates 61 and 62.
  • the tablet inspection unit 16 obtains the area of each of the broken tablet region candidates 61 and 62, adds up the areas, and obtains the total area.
  • the tablet inspection unit 16 compares the total area with the reference area of the tablet pattern Bha, and determines whether they match (or nearly match). Here, since the total area is in the range of 90 to 110% of the reference area, the tablet inspection unit 16 determines that both are in agreement.
  • the broken tablet area candidates 61 and 62 are broken tablet areas of the tablet pattern Bha. Since the total area of the broken tablet area candidates 61 and 62 is approximately one tablet area, the tablet area of the tablet pattern Bha is counted as one.
  • the tablet inspection unit 16 synthesizes the shapes of the broken tablet region candidates 61 and 62 used in the total, and pattern matching the synthesized shape with the tablet pattern Bha makes the synthesized shape coincide with the tablet pattern Bha. You may check the In general, there is only one odd-shaped tablet of the same type enclosed in the medicine package 13, and if the irregular-shaped tablet is broken, irregular-shaped tablets can be counted by the above-mentioned method. In addition, even when two odd-shaped tablets corresponding to the tablet pattern of the same odd-shaped tablet are broken, counting can be performed by repeating the same method.
  • the tablet inspection unit 16 deletes the broken tablet area candidates 61 and 62 determined to be the tablet pattern Bha in the breakage detection step S26 from the medicine pack image 33h for searching, Create a new drug pack image for search.
  • the new search drug package image for search is used for pattern matching of the subsequent tablet pattern.
  • the tablet inspection unit 16 counts the number of tablet areas (here, one) of the tablet pattern Bha counted in the breakage detection step S26 and the insufficient number calculated in the tablet number inspection step S24 (here Let's compare with 1).
  • the tablet inspection unit 16 changes the inspection code of the tablet pattern Bha from "unprocessed” to "processed", and proceeds to the progress check step S25.
  • the tablet dividing unit 14 when the tablet division unit 14 has a tablet division function, the effect of the inspection is particularly large.
  • the tablet dividing unit 14 mechanically divides the standard-shaped tablet B into halves based on the packing instruction information 26 of the packing instruction unit 11 to obtain an irregular-shaped tablet.
  • Create B The tablet dispensing unit 12 mechanically encloses the prepared irregular shaped tablet B in the medicine package 13. In a very rare case, it may occur that the tablet dividing portion 14 fails to divide the standard shape tablet B and the medicine package 13 is sealed with the standard shape tablet B instead of the irregular shape tablet B. is there.
  • the medicine package inspection system 10 of the first embodiment since the inspection including the shape of the irregular shaped tablet is performed, it is assumed that the standard shape tablet B is contained in the medicine package 13 instead of the irregular shape tablet B. , That mismatch can be detected. When a mismatch is detected, for example, the medicine package inspection system 10 stops the audit and displays an alarm on the display unit 18.
  • the tablet inspection unit 16 in the medicine package inspection system 10 obtains a standard-shaped tablet pattern of the type of tablet included in the packing instruction information 26 from the tablet information holding unit 20 and instructs the packing instruction.
  • the irregular shape tablet pattern of the irregular shape tablet is generated.
  • the tablet inspection unit 16 creates the irregular shaped tablet pattern Bha by dividing the standard shape tablet pattern B in half in the a direction based on the packing instruction information 26. Therefore, the tablet information holding unit 20 only needs to hold only standard-shaped tablet patterns for various tablets, which facilitates creation of a database.
  • the tablet inspection unit 16 generates the irregular shaped tablet pattern by dividing the standard shape tablet pattern based on the number of divisions included in the packing instruction information 26 and the division direction. Therefore, it is possible to generate an irregular shaped tablet pattern whose shape is accurate, and the accuracy of pattern matching of the irregular shaped tablet is improved.
  • the tablet inspection unit 16 divides the standard shape tablet pattern B into half in the a direction and 1 ⁇ 2 in the irregular shape tablet pattern Bha and b direction. A divided irregular shaped tablet pattern Bhb may be created, and a tablet area that is pattern-matched to each pattern may be detected.
  • the tablet inspection unit 16 in the medicine package inspection system 10 first determines a tablet area to be pattern-matched to the irregular shaped tablet pattern in the medicine package image for search. Then, every time a tablet area to be pattern-matched to the irregular shaped tablet pattern is determined, a new search medicine pack image is generated by deleting the determined tablet area from the search medicine pack image. . And the tablet inspection part 16 detects the tablet area
  • the tablet packing section 12 divides a tablet into a medicine pack body
  • the tablet dividing section 14 divides a standard shaped tablet into a modified shaped tablet, and the divided shaped tablet and other standard shaped tablets
  • the tablets are dropped together by gravity and placed in the medicine package.
  • the tablet dispensing unit 12 mechanically seals the medicine package after putting together a plurality of types of tablets for taking by one patient at a time into the medicine package.
  • the irregular shaped tablet is made by mechanically dividing the standard shaped tablet into 1 ⁇ 2 or 1 ⁇ 4, and therefore it is much more brittle than the standard shaped tablet. Therefore, breakage of the irregular shaped tablet enclosed in the medicine package often occurs.
  • the number of black regions in the medicine package image is larger than that in the case where the broken irregular shaped tablet is not enclosed in the medicine package.
  • the method of counting and auditing the number of black regions in the medicine package image can not accurately grasp the number of tablets in the medicine package.
  • the tablet inspection unit 16 in the medicine package inspection system uses the packing pattern information as the number of tablet areas whose pattern matches the irregular shaped tablet pattern detected in the medicine package image for search. If the number is smaller than the number of tablets of the irregular shaped tablet pattern shown, a broken tablet area candidate having an area area smaller than the tablet pattern area of the irregular shaped tablet pattern is detected in the medicine pack image for searching. Further, the tablet inspection unit 16 determines whether or not the total area obtained by summing (pluraling a plurality of area areas of the broken tablet area candidates) and the tablet pattern area of the irregular shaped tablet pattern match each other.
  • the tablet inspection unit 16 generates an irregularly shaped tablet pattern by combining a plurality of broken tablet area candidates when the synthetic area of the plurality of broken tablet area candidates is substantially the same as the tablet pattern area of the irregularly shaped tablet pattern. And are detected as a tablet area to be pattern-matched. Thereby, the tablet inspection part 16 can carry out an accurate audit including the shape of the irregular shaped tablet even when the irregular shaped tablet is broken. In addition, although it is a very rare case, also when a standard shape tablet is damaged, an exact audit can be performed similarly.
  • the tablet inspection unit 16 in the medicine package inspection system 10 performs pattern matching in order from the tablet pattern having the smallest tablet pattern area, errors in pattern matching of the tablet pattern are reduced, and accurate inspection is possible. It will be possible. This will be described. For example, it is assumed that pattern matching is performed from a standard-shaped tablet A having a large tablet pattern area. Since the tablet pattern A area of the tablet pattern A of the standard shape tablet A is larger than the tablet pattern area of the other tablets, when the other tablets are densely packed in the medicine package 13, the dense blocks are put together into one. Pattern matching is likely to occur as a tablet area. Therefore, when other tablets are densely packed in the medicine package 13, an error in the inspection result is likely to occur. Thus, contrary to the present embodiment, if pattern matching is performed from a tablet pattern having a large tablet pattern area, an error in the test result may occur.
  • the tablet inspection unit 16 in the medicine package inspection system 10 performs pattern matching from a tablet pattern having a small tablet pattern area, if the target tablet is broken, the broken tablet region candidate is The number of broken tablets can be reduced, and the broken tablet area can be accurately selected in a short time. This will be described. For example, assuming that one of the two standard-shaped tablets A is broken assuming that the pattern matching is performed from the standard-shaped tablet A having a large tablet pattern area, a normal standard shape using the tablet pattern A One tablet area of the tablet A can be detected. However, since the broken standard-shaped tablet A can not be detected as it is, it is necessary to search for broken tablet area candidates.
  • the tablet inspection unit 16 in the medicine package inspection system 10 is configured to repeatedly perform the following (a) and (b) in order from the tablet pattern having the smallest tablet pattern area.
  • (A) The number of tablets corresponding to the tablet pattern is counted by detecting from the medicine pack image for searching a tablet region which is pattern-matched to the tablet pattern.
  • (B) A new drug pack image for search is generated by deleting the tablet area detected from the drug pack image for search.
  • the packing instruction unit 11 of the medicine package inspection system 10 outputs the packing instruction information sheet in which the packing instruction information 26 is written in the two-dimensional barcode.
  • the tablet inspection unit 16 reads the two-dimensional code of the packing instruction information sheet by the attached code input unit 21 and acquires the packing instruction information 26.
  • the packaging instruction unit 11 records the packaging instruction information 26 on an electronic recording medium such as RFID (Radio Frequency IDentification), and the code input unit having an RFID reading function The recorded information may be read and the packing inspection instruction information may be input to the tablet inspection unit 16.
  • electronic data of the packing instruction information may be sent directly to the tablet inspection unit 16 from the packing instruction unit 11 through the intranet line with secured security.
  • the tablet inspection unit 16 may sequentially display on the display unit 18 a medicine pack image for search or a check result of the medicine pack.
  • the tablet inspection unit 16 creates two types of tablet patterns, the tablet pattern B and the tablet pattern Bha, as the packing pattern information 27. , Tablet pattern B area and tablet pattern Bha area are created.
  • the tablet pattern B and the tablet pattern Bha are different tablet patterns, and the tablet inspection unit 16 performs pattern matching for each tablet pattern.
  • pattern matching is performed using different tablet patterns for irregular shaped tablets B and standard shaped tablets B. Do.
  • accurate inspection including the shape of the irregular shaped tablet B becomes possible.
  • the audit step S04 shown in FIG. 3 is changed from the flowchart shown in FIG. 4 to the flowchart shown in FIG.
  • the other configuration is the same as that of the first embodiment, so the description will be omitted.
  • the difference between the second embodiment and the first embodiment will be described with reference to the drawings.
  • FIG. 13 is a flowchart showing the detailed steps of the audit step S04 according to the second embodiment of the present invention.
  • FIG. 14 is a diagram showing the packaging pattern information 127 of the second embodiment.
  • the tablet inspection unit 16 creates the packing pattern information 127 shown in FIG. 14 based on the packing instruction information 26 of the packing instruction unit 11 shown in FIG. 2B. That is, based on the irregular shaped tablet B of the packing instruction information 26, the tablet inspection unit 16 takes in 60 mm 2 which is the value of the tablet pattern B and the tablet pattern B area thereof from the tablet information holding unit 20, A tablet pattern Bha corresponding to B (1/2 division, a direction) is created to obtain 30 mm 2 which is the value of the tablet pattern Bha area of the tablet pattern Bha. Then, the tablet inspection unit 16 sets the tablet pattern Bha, one tablet which is the number of tablets, and 30 mm 2 which is the value of the tablet pattern Bha area in the packing pattern information 127.
  • the tablet pattern Bha of the irregular shaped tablet B is created by dividing the tablet pattern B of the standard shaped tablet B in half in the a direction, and the tablet pattern Bha area is obtained by multiplying the tablet pattern B area by 1/2.
  • the tablet inspection unit 16 takes in the tablet pattern D and 80 mm 2 which is the value of the tablet pattern D area from the tablet information holding unit 20 based on the irregularly shaped tablet D of the packing instruction information 26 and carries out irregular shape.
  • a tablet pattern Dhb corresponding to the tablet D (1/2 division, b direction) is created to obtain 40 mm 2 which is the value of the tablet pattern Dhb area of the tablet pattern Dhb.
  • the tablet inspection unit 16 sets the tablet pattern Dhb, one tablet which is the number of tablets, and 40 mm 2 which is the value of the tablet pattern Dhb area in the packing pattern information 127.
  • the tablet pattern Dhb of the irregular shaped tablet D is created by dividing the tablet pattern D of the standard shaped tablet D in half in the b direction, and the tablet pattern Dhb area is obtained by multiplying the tablet pattern D area by 1/2.
  • the tablet inspection unit 16 has four tablets in the standard shape of the packing pattern information 127 based on the standard shape tablet A and the standard shape tablet C of the packing instruction information 26 (two standard shape tablets A) , 2 pieces of standard shaped tablets C).
  • the tablet inspection section 16 has 30 medicine packages based on the contents of 10 days, which is the number of days, and the contents of 3 times / day (the same for morning, day, and night) based on the packing instruction information 26. It is set in the packing pattern information 127 that the packing contents are the same in the packing.
  • the tablet inspection unit 16 compares the tablet pattern areas of the differently shaped tablets included in the packing pattern information 127 (hereinafter referred to as "different shaped tablet pattern area"), The order of the tablet patterns is created in the ascending order of the tablet pattern area of the tablets.
  • the tablet inspection unit 16 assigns an inspection code to each tablet pattern, and sets all the inspection codes to “unprocessed”. For example, in the packing pattern information 127 of FIG. 14, the tablet inspection unit 16 creates the order of the tablet pattern Bha as No. 1 and the tablet pattern Dhb as No. 2 in the ascending order of the irregular shaped tablet pattern area.
  • the audit code of the tablet pattern Bha and the tablet pattern Dhb is set to "unprocessed”.
  • the tablet inspection unit 16 sequentially performs pattern matching in steps S122 to S128, which are loop operations, in accordance with the order of the tablet patterns created here.
  • the tablet inspection unit 16 refers to the order created in the irregular shape tablet order creating step S121, and the tablet code of the irregular shape tablet whose audit code is "untreated" (hereinafter referred to as "atypical shape"
  • the irregular shaped tablet pattern to be pattern matched is selected by selecting the smallest irregular shaped tablet pattern in the order from “tablet pattern”.
  • the tablet inspection unit 16 searches an image area to be pattern-matched to the irregular shaped tablet pattern in the medicine pack image for search, and determines the image area as an irregular shaped tablet area of the irregular shaped tablet pattern.
  • the tablet inspection unit 16 determines each as a differently shaped tablet area.
  • only the irregular shaped tablet pattern is selected as the tablet pattern to be pattern-matched. For this reason, the tablet inspection unit 16 can count the number of irregularly shaped tablet areas of irregularly shaped tablet patterns.
  • the tablet inspection unit 16 deletes the irregular shaped tablet area determined in the irregular shape matching step S122 from the medicine pack image for searching, and thereby a new medicine pack image for search Create
  • the new search drug package image for search is used for pattern matching of the irregular shaped tablet pattern thereafter.
  • the tablet inspection unit 16 counts the number of irregular shaped tablet areas counted in the irregular shape matching step S122, and the tablets of the irregular shaped tablet pattern as the pattern matching target indicated by the packing pattern information 127. Compare with the number. If the two match (Yes in step S124), the tablet inspection unit 16 changes the audit code of the irregular shaped tablet pattern to "processed", and proceeds to the progress check step S125. If the two do not match (No in step S124), that is, if the number of irregularly shaped tablet regions is smaller than the number of tablets of irregularly shaped tablet pattern, the tablet inspection unit 16 calculates the number of insufficiency and then detects the breakage detection step. It transfers to S126.
  • the tablet inspection unit 16 checks whether or not there is an irregularly shaped tablet pattern that has not been audited. If it is determined that there is an irregular shaped tablet pattern whose audit code is "unprocessed" (yes in step S125), the loop is returned to the irregular shape matching step S122. If it is determined that there is no irregular shaped tablet pattern whose audit code is "untreated” (no in step S25), inspection of all irregular shaped tablet patterns in the medicine package 13 has been completed, so the standard The process proceeds to the shape tablet detection step S134.
  • the tablet inspection unit 16 sets the pixel area of the area smaller than the reference area inside the medicine pack image for search with the tablet pattern area of the selected irregular shaped tablet pattern as the reference area.
  • a damaged tablet area candidate is detected, and a plurality of damaged tablet area candidates are searched.
  • a predetermined conversion ratio is set between the tablet pattern area unit of the irregular shaped tablet pattern and the area unit of the pixel region in the medicine pack image, the conversion ratio will be described as 1.
  • the tablet inspection unit 16 obtains the area of each detected broken tablet region candidate.
  • the tablet inspection unit 16 arbitrarily selects two or more out of the plurality of broken tablet region candidates, and totals the areas of the selected two or more broken tablet region candidates.
  • the tablet inspection unit 16 compares the two or more broken tablet area candidates used for the total with respect to the irregular shaped tablet pattern. Two or more broken tablet areas determined and determined as pieces or more broken tablet areas are counted as one of the irregular shaped tablet areas in the irregular shaped tablet pattern. When there is no damaged tablet area candidate, the number of odd-shaped tablet areas of the odd-shaped tablet pattern is zero. In addition, it is also possible to confirm the irregular shaped tablet area by synthesizing the shapes of two or more broken tablet area candidates used for the total, and pattern matching the synthetic shape with the selected irregular shaped tablet pattern. is there.
  • the tablet inspection unit 16 selects another two or more broken tablet region candidates from among a plurality of broken tablet region candidates, It is also possible to determine the second irregularly shaped tablet area of the irregularly shaped tablet pattern from the total area or the synthetic shape.
  • the tablet inspection unit 16 creates a new medicine pack image for search by deleting the broken tablet area determined in the breakage detection step S126 from the medicine pack image for search. .
  • the new search drug package image for search is used for pattern matching of the irregular shaped tablet pattern thereafter.
  • the tablet inspection unit 16 compares the number of irregular shaped tablet regions counted in the breakage detection step S126 with the insufficient number calculated in the irregular shape tablet number inspection step S124. If the two match (yes in step S128), the tablet inspection unit 16 changes the inspection code of the irregular shaped tablet pattern to "processed", and proceeds to the progress check step S125. If the two do not match (no in step S128), the process proceeds to an audit stop step S129.
  • the tablet inspection unit 16 stops the inspection operation of the medicine package 13, and displays an alarm on the display unit 18, for example.
  • the standard shape tablet detection step S134 is performed after the pattern matching of the shape and the number using all the irregular shape tablet patterns is completed in steps S122 to S128.
  • the tablet inspection unit 16 uses the medicine packet image for search after deleting the irregular shape tablet area corresponding to all the irregular shape tablet patterns, and uses the medicine package body for the search. The tablet area present in the image is detected, and the number of tablet areas is counted.
  • various known methods can be used to detect the number of tablet areas in the standard shape tablet detection step S134. For example, a method of determining the number of tablets by counting the number of black regions in the drug package image using a drug package image for searching, or a contraction process for the black region in the drug package image, It is possible to use a method of determining the number of tablets by counting the number of separation areas after separation and extraction of the tablet areas by performing expansion processing and labeling processing. It is also possible to perform corner extraction on a black area in the medicine pack image for search, obtain the number of extracted corners and the number of areas, and calculate the number of tablets from them. Alternatively, the number of tablets may be determined by inverting the image of the medicine pack image in black and white and counting the number of white regions.
  • the tablet inspection unit 16 determines whether the number of tablet areas counted in the standard shape tablet detection step S134 matches the number of tablets of the standard shape tablets indicated in the packing pattern information 127. Check If the two match (Yes in step S135), the tablet inspection unit 16 determines that the inspection of the standard shape tablet has been performed normally. Since tablet inspection of the entire medicine package 13 is completed, the process proceeds to step S05. If the two do not match (No in step S135), the process proceeds to the audit stop step S129.
  • FIG. 15 is a view showing an example of a first medicine pack image for search 133p obtained from a captured image of the imaging unit 15.
  • the medicine pack image 133p two tablet areas 151 and 152 corresponding to the standard shape tablet A, one irregular shape tablet area 153 corresponding to the irregular shape tablet B, and the standard shape tablet C
  • the tablet inspection unit 16 refers to the order created in the order creation step S121, and the irregular shape with the audit code “unprocessed” is the smallest irregular shape among the irregular shaped tablet patterns.
  • the tablet pattern Bha is extracted as an irregular shaped tablet pattern to be pattern matched.
  • the tablet inspection unit 16 performs pattern matching inside the medicine pack image 133p for search of FIG. 15 using the irregular shaped tablet pattern Bha.
  • the tablet inspection unit 16 determines one black region pattern-matched with the irregular shape tablet pattern Bha as the irregular shape tablet region 153, and counts the irregular shape tablet region 153 of the irregular shape tablet pattern Bha. And obtain information of one as the number of counts.
  • the tablet inspection unit 16 newly deletes the irregular shaped tablet area 153 of the irregular shaped tablet pattern Bha determined in the irregular shape matching step S122 from the medicine pack image 133p for search.
  • Medicine pack image 133q for a simple search is created.
  • FIG. 16 shows a medicine pack image 133q for search.
  • the tablet inspection unit 16 is one tablet, which is the counted number of irregular shaped tablet areas of the irregular shaped tablet pattern Bha, and is the number of tablets of the irregular shaped tablet pattern Bha of the packing pattern information 127. Compare with one.
  • the tablet inspection unit 16 changes the inspection code of the irregular shaped tablet pattern Bha from "unprocessed” to "processed”, and proceeds to the progress check step S125.
  • the progress check step S125 since there is a deformed tablet pattern whose audit code is "unprocessed", the process proceeds to the deformed shape matching step S122.
  • the tablet inspection unit 16 refers to the order created in the order creation step S121 and determines the smallest difference from among the irregular tablet patterns whose audit code is “unprocessed”.
  • the shaped tablet pattern Dhb is extracted as an irregular shaped tablet pattern to be pattern-matched.
  • the tablet inspection unit 16 performs a pattern matching inspection inside the medicine pack image 133q for search of FIG. 16 using the irregular shaped tablet pattern Dhb.
  • the tablet inspection unit 16 determines one black region pattern-matched with the irregular shape tablet pattern Dhb as the irregular shape tablet region 156, and counts the irregular shape tablet region 156 of the irregular shape tablet pattern Dhb. And one is obtained as the number of counts.
  • the tablet inspection unit 16 deletes the irregular shaped tablet area 156 of the irregular shaped tablet pattern Dhb determined in the irregular shape matching step S122 from the medicine pack image 133q for search.
  • a new drug pack image for search 133r is created.
  • FIG. 17 shows a medicine pack image 133r for search.
  • the tablet inspection unit 16 counts one the number of odd-shaped tablet areas of the odd-shaped tablet pattern Dhb and the number of odd-shaped tablet patterns Dhb of the packing pattern information 127. Compare with the individual.
  • the tablet inspection unit 16 changes the inspection code of the irregular shaped tablet pattern Dhb from “unprocessed” to "processed”, and proceeds to the progress check step S125.
  • the tablet inspection unit 16 determines that the inspection processing of all the irregular shaped tablets of the medicine package 13 has been performed normally. Then, the process proceeds to the standard shape tablet detection step S134.
  • the operation of the breakage detection step S126 is the same as the operation of the breakage detection step S26, and the operation of the broken tablet area deletion step S127 is similar to the operation of the broken tablet area deletion step S27.
  • the operation of the breakage number inspection step S128 is the same as the operation of the breakage number inspection step S28. Therefore, the overall operation of steps S126 to S128 is the same as the overall operation of steps S26 to S28 described above, and the effect of steps S126 to S128 is the same as the effect of steps S26 to S28. The detailed description is omitted.
  • the standard shape tablet detection step S134 is performed after the audit confirmation of all the irregular shaped tablet patterns is performed by passing through the steps S122 to S128. Therefore, as shown in FIG. 17, the medicine packet image 133r for search used in the standard shape tablet detection step S134 has the irregular shape tablet area of the irregular shape tablet pattern Bha and the irregular shape tablet area of the irregular shape tablet pattern Dhb. It has been removed, leaving a tablet area corresponding to only standard shaped tablets.
  • the tablet inspection unit 16 detects the tablet area in the medicine pack image 133r for search, and counts four tablets, which is the number of tablet areas.
  • the tablet inspection unit 16 compares four pieces, which are the counting results of the standard shape tablet detection step S134, with four pieces, which are the number of tablets of the standard shape of the packing pattern information 127.
  • the tablet inspection part 16 judges that the tablet inspection of the whole medicine package 13 was performed normally, and transfers to step S05.
  • the medicine package inspection system 10 adds at least irregular shaped tablet patterns Bha and Dhb of the irregular shaped tablet and the number of tablets based on the packing instruction information 26 to the packaged pattern information 127 indicating each tablet type. Do.
  • the medicine package inspection system 10 detects an irregular shaped tablet area that is pattern-matched to the irregular shaped tablet pattern in the medicine pack image for searching, and the number of irregular shaped tablet areas is indicated in the packing pattern information. It is determined whether or not it matches the number of tablets in the shaped tablet pattern. As a result, the medicine package inspection system 10 performs an accurate audit including the shape of the irregular shaped tablet so as to prevent a large error in the irregular shaped tablet in the medicine package 13.
  • the tablet inspection unit 16 in the medicine package inspection system 10 performs an inspection including the shape of the irregular shaped tablet using the irregular shaped tablet pattern, and thereafter, the irregular shaped tablet region corresponding to the irregular shaped tablet
  • the number of standard-shaped tablets is audited by obtaining a medicine pack image for search with being deleted and counting the number of tablet regions included in the medicine pack image for search. This makes it possible to accurately count the standard shaped tablets in the medicine package in a short time, and to shorten the audit time of the whole medicine package.
  • the medicine package audit system can significantly reduce the audit time.
  • the standard shape tablet has a disk-like or ellipsoidal smooth and hard shape
  • the tablet packing portion 12 causes a number error and tablet breakage in the packing of the standard shape tablet into the medicine package. Hateful. Therefore, the tablet inspection unit 16 can perform count audit of the standard shaped tablets in the medicine package in a short time. Also, the inspection of the standard shaped tablet in the medicine package may be performed as needed.
  • the tablet inspection unit 16 in the medicine package inspection system 10 includes the irregularly shaped tablet pattern and the irregularly shaped tablet pattern area of the irregularly shaped tablet which is divided into the medicine package. After obtaining tablets according to tablet type, the following (a) and (b) are repeated in order from an irregular shaped tablet with an irregular shaped tablet pattern area in ascending order.
  • the number of tablets of the irregular shaped tablet pattern is counted by detecting the tablet area which is pattern-matched to the irregular shaped tablet pattern from the medicine pack image for searching.
  • a new drug pack image for search is generated by deleting the tablet area detected from the drug pack image for search.
  • the irregular shaped tablet pattern is used to confirm the number of irregular shaped tablets including the shape thereof, thereby enabling an accurate audit without any shape error.
  • the tablet inspection unit 16 creates a tablet pattern Bha and a tablet pattern Bha area as packing pattern information, and the number of standard-shaped tablets B is obtained.
  • the number of tablets of standard shape is created by adding minutes (one).
  • the tablet inspection unit 16 pattern-matches the tablet pattern Bha, and counts and audits the number of tablets of the standard shape including the number of tablets of the standard shape B.
  • different audits are performed for the irregular shaped tablet B and the standard shaped tablet B. As a result, an accurate audit including the shape of the irregular shaped tablet B becomes possible.
  • the standard shape tablet for producing the half-divided irregular shaped tablet is not limited to the disk shape or the ellipsoidal shape, and may be a square shaped standard shape tablet such as a rhombic shape or a rectangular shape.
  • the irregular shaped tablet is not limited to the half-divided irregular shaped tablet, but may be a 1 / 3-divided or quarter-divided irregular shaped tablet. It goes without saying that various modifications can be made without changing the subject matter of the present invention and are included in the present invention.
  • each component may be configured by dedicated hardware or may be realized by executing a software program suitable for each component.
  • Each component may be realized by a program execution unit such as a CPU or a processor reading and executing a software program recorded in a recording medium such as a hard disk or a semiconductor memory.
  • the present invention can be applied to a medicine package inspection system used in a pharmacy, a hospital facility or the like, which seals the irregular shaped tablet in a medicine package and provides it to a patient.

Landscapes

  • Engineering & Computer Science (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Immunology (AREA)
  • Biochemistry (AREA)
  • Analytical Chemistry (AREA)
  • Chemical & Material Sciences (AREA)
  • Pathology (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Medical Informatics (AREA)
  • Nuclear Medicine, Radiotherapy & Molecular Imaging (AREA)
  • Radiology & Medical Imaging (AREA)
  • Quality & Reliability (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Theoretical Computer Science (AREA)
  • Medical Preparation Storing Or Oral Administration Devices (AREA)

Abstract

 薬包体監査システム(10)は、薬包体(13)に封入する錠剤の種類ごとの個数を分包指示情報(26)として生成する分包指示部(11)と、分包指示情報(26)に基づいて錠剤を薬包体(13)に封入する錠剤分包部(12)と、錠剤が封入された薬包体(13)を撮像することにより薬包体画像を生成する撮像部(15)と、薬包体画像を、分包指示情報(26)に示される薬包体に封入されるべき錠剤の形状パターンである錠剤パターンとパターンマッチングすることにより、薬包体(13)に封入された錠剤の個数を監査する錠剤監査部(16)と、を備え、錠剤監査部(16)は、分包指示情報(26)に基づいて分割された錠剤である異形状錠剤の情報が分包指示情報(26)に含まれる場合に、異形状錠剤の形状パターンである異形状錠剤パターンと薬包体画像をパターンマッチングさせることにより異形状錠剤の個数を監査する。

Description

薬包体監査システム
 本発明は、錠剤が封入される薬包体を監査する薬包体監査システムに関する。
 病院施設や薬局等では、処方箋に基づいて錠剤を薬包体に分包して、患者に錠剤を提供している。このとき、処方箋どおりの錠剤が分包された薬包体に封入されているかを、薬剤師が、目視チェックする。しかし、薬剤師にとって、数多くの薬包体を短時間で目視チェックすることは、作業負担が大きい。そのため、機械的に薬包体の錠剤の個数を計数することにより、薬包体監査の支援を行うことが、提案されている(例えば、特許文献1参照)。
 図18は、特許文献1に記載の従来の薬包体監査システム1の斜視図である。薬包体監査システム1は、監査位置の薬包体2を撮影するカメラ3と、カメラ3の下方位置に配置された照明器6と、カメラ3で撮影された濃淡のある透過画像を画像処理する画像処理部4と、画像処理部4に接続されたモニター5とを有する。
 画像処理部4は、カメラ3で撮影された透過画像を取り込んだ後、透過画像を所定の閾値で2値化し、2値化画像を得る。つまり、画像処理部4は、閾値よりも大きい輝度を有する画素を白色画素とし、閾値以下の輝度を有する画素を黒色画素とする2値化画像を作成する。画像処理部4は、その2値化画像に対して収縮処理および膨張処理を施すことにより、2値化画像のノイズを除去して、監査画像を生成する。画像処理部4は、監査画像に残った所定の大きさ以上の白色領域(白色画素の塊)を錠剤領域とみなし、錠剤領域の検出個数によって錠剤個数を検出する。そして、画像処理部4は、検出された錠剤個数が薬包体に封入されるべき錠剤の総個数と一致するか否かを判定する。このようにして、薬包体監査システム1は、薬包体に含まれる錠剤の個数を計数することにより、薬包体の監査を行っている。
 また、特許文献2には、錠剤の種別ごとに錠剤の個数を検出する錠剤検査装置について開示されている。
特開平9-231342号公報 特開2000-135268号公報
 特許文献1に記載の薬包体監査システム1は、薬包体の監査画像内の錠剤領域の個数のみをチェックしている。処方箋の内容によっては、患者の服用量を適量に調整するために、標準形状錠剤を1/2分割または1/4分割した異形状錠剤を、1/2個または1/4個の錠剤として処方することがある。
 しかしながら、薬包体監査システム1では、個数のみ検出しているため、異形状錠剤が処方された場合に、1/2分割もしくは1/4分割した異形状錠剤を処方すべきところに誤って標準形状錠剤を薬包体に入れて処方してしまう可能性がある。異形状錠剤を処方すべきところに標準形状錠剤を処方すると、患者の服用量が2倍もしくは4倍になり、健康上の大きな問題を生じる可能性がある。
 また、特許文献2は、特許文献1と同様に、異形状錠剤の個数の検出は行われないため、異形状錠剤が処方された場合、正確な錠剤の個数を検出することが困難である。
 本発明は、上記従来の課題を解決するためになされたものであり、錠剤を封入した薬包体に対して、異形状錠剤の形状を含めた正確な錠剤監査を行なう薬包体監査システムを提供することを目的とする。
 上記課題を解決するために本発明の薬包体監査システムは、薬包体に封入する錠剤の種類ごとの個数を分包指示情報として生成する分包指示部と、前記分包指示情報に基づいて前記錠剤を前記薬包体に封入する錠剤分包部と、前記錠剤が封入された前記薬包体を撮像することにより、薬包体画像を生成する撮像部と、前記薬包体画像を、前記分包指示情報に示される前記薬包体に封入されるべき錠剤の形状パターンである錠剤パターンとパターンマッチングさせることにより、前記薬包体に封入された錠剤の個数を監査する錠剤監査部と、を備え、前記錠剤監査部は、前記分包指示情報に基づいて分割された錠剤である異形状錠剤の情報が前記分包指示情報に含まれる場合に、前記異形状錠剤の形状パターンである異形状錠剤パターンと前記薬包体画像をパターンマッチングさせることにより前記異形状錠剤の個数を監査する。
 なお、これらの全般的または具体的な態様は、システム、方法、集積回路、コンピュータプログラムまたは記録媒体で実現されてもよく、システム、方法、集積回路、コンピュータプログラムおよび記録媒体の任意な組み合わせで実現されてもよい。
 本発明によると、錠剤を封入した薬包体に対して、異形状錠剤の形状を含めた正確な錠剤監査を行なう薬包体監査システムを提供することができる。
図1は、本発明の実施の形態1にかかる薬包体監査システムの概略構成図である。 図2Aは、本発明の実施の形態1にかかる処方箋情報を示す図である。 図2Bは、本発明の実施の形態1にかかる分包指示情報を示す図である。 図2Cは、本発明の実施の形態1にかかる分包パターン情報を示す図である。 図3は、本発明の実施の形態1にかかる薬包体監査システムの薬包体の監査方法を示すフローチャートである。 図4は、本発明の実施の形態1にかかる監査ステップの詳細ステップを示すフローチャートである。 図5Aは、本発明の実施の形態1にかかる円盤状の標準形状錠剤を示す図である。 図5Bは、本発明の実施の形態1にかかる円盤状の標準形状錠剤を分割した異形状錠剤の一例を示す図である。 図5Cは、本発明の実施の形態1にかかる円盤状の標準形状錠剤を分割した異形状錠剤の別の一例を示す図である。 図5Dは、本発明の実施の形態1にかかる楕円体状の標準形状錠剤を示す図である。 図5Eは、本発明の実施の形態1にかかる楕円体状の標準形状錠剤を分割した異形状錠剤の一例を示す図である。 図5Fは、本発明の実施の形態1にかかる楕円体状の標準形状錠剤を分割した異形状錠剤の別の一例を示す図である。 図6は、本発明の実施の形態1にかかる薬包体の錠剤を示す図である。 図7は、本発明の実施の形態1にかかる探索用の薬包体画像を示す図である。 図8は、本発明の実施の形態1にかかる監査過程の探索用の薬包体画像を示す図である。 図9は、本発明の実施の形態1にかかる監査過程の別の探索用の薬包体画像を示す図である。 図10は、本発明の実施の形態1にかかる監査過程のさらに別の探索用の薬包体画像を示す図である。 図11は、本発明の実施の形態1にかかる破損錠剤領域を含む探索用の薬包体画像を示す図である。 図12は、本発明の実施の形態1にかかる監査過程の破損錠剤領域を含む探索用の薬包体画像を示す図である。 図13は、本発明の実施の形態2にかかる監査ステップの詳細ステップを示すフローチャートである。 図14は、本発明の実施の形態2にかかる分包パターン情報を示す図である。 図15は、本発明の実施の形態2にかかる探索用の薬包体画像を示す図である。 図16は、本発明の実施の形態2にかかる監査過程の探索用の薬包体画像を示す図である。 図17は、本発明の実施の形態2にかかる監査過程の別の探索用の薬包体画像を示す図である。 図18は、従来の薬包体監査システムの斜視図である。
 以下、本発明の実施の形態について、図面を参照しながら説明する。なお、同じ構成要素には同じ符号を付しており、説明を省略する場合もある。また、図面は理解し易くするために、それぞれの構成要素を主体に模式的に示している。
 なお、以下で説明する実施の形態は、いずれも本発明の一具体例を示すものである。以下の実施の形態で示される数値、形状、構成要素、構成要素の配置位置及び接続形態、ステップ、ステップの順序などは、一例であり、本発明を限定する主旨ではない。また、以下の実施の形態における構成要素のうち、最上位概念を示す独立請求項に記載されていない構成要素については、任意の構成要素として説明される。
 (実施の形態1)
 図1は、本発明の実施の形態1にかかる薬包体監査システム10の概略構成図である。図2A~図2Cは、本実施の形態1にかかる各種の情報内容を説明するための図であり、図2Aは、処方箋情報を示し、図2Bは、分包指示情報を示し、図2Cは、分包パターン情報を示している。図3は、薬包体監査システム10の薬包体の監査方法を示すフローチャートである。図4は、図3の監査ステップS04の詳細ステップを示すフローチャートである。
 図1の薬包体監査システム10は、分包指示部11と、錠剤を薬包体13に封入する錠剤分包部12と、錠剤分割部14と、撮像部15と、錠剤監査部16と、錠剤情報を保持する錠剤情報保持部20と、を備える。さらに、この薬包体監査システム10は、薬包体13を照らす照明部17と、表示部18と、薬包体13を搬送する搬送部19と、薬包体13の2次元コードなどを読み取って入力するコード入力部21を備える。
 薬包体監査システム10は、錠剤分割部14で標準形状錠剤を1/2分割もしくは1/4分割して異形状錠剤を形成し、この異形状錠剤を薬包体13に封入すると共に、錠剤封入後の薬包体13に異形状錠剤が適切に入っているか否かを監査するものである。ここで、標準形状錠剤とは、円盤状錠剤、楕円体状錠剤などである。また、異形状錠剤とは、標準形状錠剤を錠剤分割部14で分割したものである。ここで、錠剤分割部14は、標準形状錠剤に図示しない刃物で切り込みを入れるなどして、後述する分包指示情報26に基づいて標準形状錠剤を1/2分割または1/4分割して、異形状錠剤を形成する。なお、本実施の形態では、錠剤分割部14によって標準形状錠剤を分割する場合を説明するが、後述する分包指示情報26に基づいて、例えば薬剤師が標準形状錠剤を人手で分割して、異形状錠剤を形成する場合もある。
 分包指示部11は、処方箋情報25に基づいて患者が1回で服用する錠剤の種類と個数を算出し、分包指示情報26を生成する。すなわち、分包指示情報26には、薬包体13に封入されるべき錠剤の形状パターンである錠剤パターンが示されている。ここで、処方箋情報25とは、医師または薬剤師等が作成する処方箋の内容を示す情報であり、処方箋情報25は、患者に対して投与が必要な薬剤とその服用量等を示す情報を含む。分包指示部11は、処方箋情報25から電子的に分包指示情報26を生成する。例えば、分包指示部11は、図2Aに示す処方箋情報25の中から錠剤の処方に関する情報のみを抽出し、図2Bに示す分包指示情報26を生成する。なお、分包指示情報は医師または薬剤師等により生成されても良い。
 図2Bに示した分包指示情報26は、2個の標準形状錠剤A、1個の異形状錠剤B(1/2分割、a方向)、2個の標準形状錠剤C、1個の異形状錠剤D(1/2分割、b方向)を1包の薬包体内に封入することを意味している。さらに、分包指示情報26は、日数が10日、3回/1日(朝と昼と晩が同じ錠剤)に相当する個数の薬包体13を作成することを意味している。ここに、異形状錠剤B(1/2分割、a方向)は、標準形状錠剤Bを、後述するa方向に錠剤分割部14で1/2分割した異形状の錠剤を意味する。また、異形状錠剤D(1/2分割、b方向)は、標準形状錠剤Dを、後述するb方向に錠剤分割部14で1/2分割した異形状の錠剤を意味する。また、分包指示情報26によると、薬包体13の数は、10日×3回=30包になる。分包指示部11は、異形状錠剤に関して分割数や分割方向の情報を付与することにより、分包指示情報26を作成する。
 図5A~図5Fは、標準形状錠剤または異形状錠剤の形状例を示す。図5Aは円盤状の標準形状錠剤41の形状を示し、図5Bは標準形状錠剤41をa方向に1/2分割した異形状錠剤41haの形状を示し、図5Cは標準形状錠剤41をb方向に1/2分割した異形状錠剤41hbの形状を示す。ここで、標準形状錠剤41は、円盤状の形状に線状窪みを有するものである。a方向に1/2分割した異形状錠剤41haは、標準形状錠剤41を線状窪みに沿って分割したものであり、b方向に1/2分割した異形状錠剤41hbは、標準形状錠剤41を線状窪みに直角に分割したものである。図5Dは楕円体状の標準形状錠剤42の形状を示し、図5Eは標準形状錠剤42をa方向に1/2分割した異形状錠剤42haの形状を示し、図5Fは標準形状錠剤42をb方向に1/2分割した異形状錠剤42hbの形状を示す。a方向に1/2分割した異形状錠剤42haは、標準形状錠剤42をその短軸に沿って分割したものであり、b方向に1/2分割した異形状錠剤42hbは、標準形状錠剤42をその長軸に沿って分割したものである。
 図1の錠剤分割部14は、分包指示部11の分包指示情報26に従って、指示された異形状錠剤を作成する。錠剤分包部12は、指示された異形状錠剤および標準形状錠剤を封入した薬包体13を作成する。薬包体13を作成するために、例えば、錠剤分割部14は、標準形状錠剤Bをa方向に1/2分割することで異形状錠剤Bを作成し、標準形状錠剤Dをb方向に1/2分割することで異形状錠剤Dを作成する。続いて、錠剤分包部12は、1個の異形状錠剤Bと1個の異形状錠剤Dと2個の標準形状錠剤Aと2個の標準形状錠剤Cを、一緒に重力落下させて同一の薬包体13内に落とし込み、その後に、薬包体13を加熱シールして封止する。この動作を繰り返すことにより、2枚のフィルム間に複数個の錠剤を封止した薬包体13が連続的に形成される。ここでは、30包の薬包体13が連続して、一連の薬包シートになっている。
 図6は、薬包体13に封入された錠剤を示す図である。図中の符号51、52の標準形状錠剤Aは、図5Dに示す楕円体状の形状をしている。図中の符号53の異形状錠剤Bは、円盤状の標準形状錠剤Bをa方向に1/2分割した図5Bに示す形状をしている。図中の符号54、55の標準形状錠剤Cは、図5Aに示す円盤状の形状をしている。図中の符号56の異形状錠剤Dは、楕円体状の標準形状錠剤Dをb方向に1/2分割した図5Fに示す形状をしている。
 図1の錠剤分包部12は、分包指示部11の分包指示情報26に応じた所要の錠剤を封入した薬包体13を作成する。また、分包指示部11は、分包指示情報26を2次元コード化したバーコードを印刷した分包指示情報26の用紙を、出力する。分包指示情報26の用紙には、分包指示情報26の明細も同時に印刷され、人手での薬包体13の確認時にマスター情報として使用される。分包指示情報26の用紙と薬包体13の薬包シートは、錠剤監査部16または搬送部19に、機械もしくは人手によって送られる。
 図1の錠剤監査部16に付属するコード入力部21は、分包指示情報26の用紙に印刷された2次元コードを機械もしくは人手によって読み取ることにより得られる分包指示情報26を、錠剤監査部16に入力する。錠剤監査部16は、分包指示情報26の各錠剤について錠剤情報保持部20の標準錠剤情報を参照しながら、分包指示情報26に対応した分包パターン情報27を作成する。分包パターン情報27は、例えば、標準形状錠剤Aと異形状錠剤Bと標準形状錠剤Cと異形状錠剤Dのそれぞれの錠剤の形状パターンである錠剤パターン及び錠剤パターン面積を含めた情報である。なお、錠剤情報保持部20は、各種の錠剤に対して錠剤の標準の形状パターンである標準形状錠剤パターン及びそれに付随する情報(面積、色、など)を、保持している。
 図2Cに分包パターン情報27の例を示す。錠剤監査部16は、まず、錠剤情報保持部20から、分包指示情報26に基づいて、標準形状錠剤Aの錠剤パターンである錠剤パターンAと、錠剤パターンAの面積である錠剤パターンA面積の値90mmを取り込む。そして、錠剤監査部16は、錠剤パターンAと、その錠剤個数である2個と、その錠剤パターンA面積の値である90mmとを、分包パターン情報27に設定する。ここで、錠剤パターンA面積の値は、標準形状錠剤Aを上面から見た投影面積(mm×mm)に相当し、後述する薬包体画像の領域面積に換算可能なものである。
 また、錠剤監査部16は、分包指示情報26に基づいて、標準形状錠剤Bの錠剤パターンである錠剤パターンBと、錠剤パターンBの面積である錠剤パターンB面積の値60mmを、錠剤情報保持部20より取り込んで、異形状錠剤B(1/2分割、a方向)に対応する錠剤パターンBhaを作成する。そして、錠剤監査部16は、錠剤パターンBhaの錠剤パターンBha面積の値30mmを得て、錠剤パターンBhaと、その錠剤個数である1個と、その錠剤パターンBha面積の値である30mmとを、分包パターン情報27に設定する。ここで、異形状錠剤Bの錠剤パターンBhaは、標準形状錠剤Bの錠剤パターンBをa方向に1/2分割して作成され、錠剤パターンBha面積の値は、錠剤パターンB面積の値である60mmに1/2を乗ずることで作成される。
 また、錠剤監査部16は、分包指示情報26に基づいて、標準形状錠剤Cの錠剤パターンである錠剤パターンCと、その錠剤個数である2個と、錠剤パターンCの面積である錠剤パターンC面積の値20mmとを、錠剤情報保持部20より取り込んで、分包パターン情報27に設定する。
 また、錠剤監査部16は、分包指示情報26に基づいて、標準形状錠剤Dの錠剤パターンである錠剤パターンDと、錠剤パターンDの面積である錠剤パターンD面積の値80mmを、錠剤情報保持部20より取り込んで、異形状錠剤D(1/2分割、b方向)に対応する錠剤パターンDhbを作成する。そして、錠剤監査部16は、錠剤パターンDhbの錠剤パターンDhb面積の値である40mmを得て、錠剤パターンDhbと、その錠剤個数である1個と、その錠剤パターンDhb面積の値である40mmとを、分包パターン情報27に設定する。ここで、異形状錠剤Dの錠剤パターンDhbは、標準形状錠剤Dの錠剤パターンDをb方向に1/2分割して作成され、錠剤パターンDhb面積の値は、錠剤パターンD面積の値である80mmに1/2を乗ずることで作成される。
 また、錠剤監査部16は、分包指示情報26に基づいて、日数である10日という内容と、3回/1日(朝・昼・晩は同じ)という内容から、薬包体数は30包であり、分包内容は同一であることを、分包パターン情報27に設定する。
 図1の薬包体13は、機械もしくは人手によって、搬送部19に設置される。撮像部15は、照明部17によって光を照射された薬包体13を撮像し、撮像して得られた撮像画像を錠剤監査部16に送付する。錠剤監査部16は、撮像部15の撮像画像から薬包体13に相当する薬包体画像33aを作成する。図7に薬包体画像33aの例を示す。また、錠剤監査部16は、必要に応じて、薬包体画像33aを表示部18に画像出力する。
 ここで、照明部17は、薬包体13を挟んで撮像部15の反対側に位置するので、撮像部15の撮像画像は、薬包体13の透過光画像になる。そのため、撮像部15の撮像画像は、薬包体13に封入された錠剤部分が黒色領域(すなわち、輝度の低い画素領域)になる濃淡画像である。錠剤監査部16は、必要に応じて、撮像部15の撮像画像にノイズ除去処理や二値化処理を施して、薬包体画像33aを作成してもよい。なお、以下の説明では、錠剤領域を黒色領域で説明するが、薬包体画像33aを白黒反転させて錠剤領域を白色領域(すなわち、輝度の高い画素領域)にしてもよい。
 錠剤監査部16は、薬包体画像33a内に含まれる異形状錠剤を検出し、その形状を含めて異形状錠剤の監査を行う。これについて、図面を参照して説明する。
 図3に錠剤監査部16の監査方法を表すフローチャートを示す。
 まず、図3の分包パターン情報生成ステップS01について説明する。
 分包パターン情報生成ステップS01では、データ通信やキーボードなどからの手動入力などにより、コード入力部21を用いて、分包指示情報26が入力される。錠剤監査部16は、錠剤情報保持部20に保持されている標準錠剤情報を参照しながら、分包指示情報26に基づいて分包パターン情報27を作成する。例えば、図2Cに示すように、錠剤監査部16は、分包指示情報26の標準形状錠剤Aに対応して、錠剤パターンAと、その錠剤個数と、錠剤パターンA面積の値とから、分包パターン情報27を作成する。また、錠剤監査部16は、分包指示情報26の異形状錠剤Bに対応して、錠剤パターンBhaと、その錠剤個数と、錠剤パターンBha面積の値とを、分包パターン情報27に追記する。同様に、錠剤監査部16は、分包指示情報26の標準形状錠剤Cに対応して、錠剤パターンCと、その錠剤個数と、錠剤パターンC面積の値とを、分包パターン情報27に追記する。同様に、錠剤監査部16は、分包指示情報26の異形状錠剤Dに対応して、錠剤パターンDhbと、その錠剤個数と、錠剤パターンDhb面積の値とを、分包パターン情報27に追記する。また、錠剤監査部16は、分包指示情報26に対応して、薬包体数は30包で分包内容は同一という情報を、分包パターン情報27に追記する。
 続いて、図3の薬包体画像取得ステップS02について説明する。
 薬包体画像取得ステップS02では、撮像部15は、照明部17により照明される薬包体13を撮像し、撮像して得られた撮像画像を錠剤監査部16に送る。錠剤監査部16は、撮像部15の撮像画像を入手し、必要に応じて、撮像画像を表示部18に表示する。なお、撮像部15の撮像タイミングは、錠剤監査部16から制御される。
 続いて、図3の薬包体検出ステップS03について説明する。
 薬包体検出ステップS03では、錠剤監査部16は、撮像部15の撮像画像から薬包体13の領域を抽出し、薬包体画像33aを作成する。図7に薬包体画像33aの例を示す。錠剤監査部16は、薬包体13のミシン目などで薬包体13の境界を検知し、1つの薬包体13に対応する薬包体画像33aを作成する。錠剤監査部16は、撮像部15の撮像画像に薬包体13を検知できた場合(ステップS03のyes)に監査ステップS04に移行し、撮像部15の撮像画像に薬包体13が検知できない場合(ステップS03のno)に監査処理を終了する。なお、薬包体13の領域の抽出は、個々の薬包体13にマークをつけて、そのマークを検知することにより行っても良い。
 続いて、図3の監査ステップS04について説明する。
 監査ステップS04では、錠剤監査部16は、薬包体画像33a内に含まれる異形状錠剤の形状を含めた監査を行う。図4は、監査ステップS04の詳細ステップを示すフローチャートである。図4のフローチャートの具体的な説明は、後述する。錠剤監査部16は、監査ステップS04を終了すると、薬包体搬送ステップS05に移行する。
 続いて、図3の薬包体搬送ステップS05について説明する。
 薬包体搬送ステップS05では、錠剤監査部16は、搬送部19を制御して、薬包体13を1包分だけ図1の紙面右方向に移送して停止させる。薬包体13の移送は、例えば、搬送部19を用いて薬包体13の一方の端面に形成されている穴部分にスプロケット歯車(図示略)を入れ、このスプロケット歯車を所定角度回転させることにより行う。搬送部19が薬包体13を1包分だけ移送し終わると、錠剤監査部16は薬包体画像取得ステップS02に戻り、薬包体画像取得ステップS02を実行する。なお、薬包体13にマークをつけて、搬送部19のセンサによってそのマークを検出する位置まで薬包体13を送るようにしても良い。このように搬送部19を構成することにより、錠剤監査部16は、異形状の錠剤が封入された薬包体13を、1包ずつ監査することができる。
 次に、監査ステップS04の具体的な動作を、図4のフローチャートを参照して説明する。
 図4の順番作成ステップS21について説明する。
 順番作成ステップS21では、錠剤監査部16は、分包パターン情報27に含まれる錠剤パターン面積を比較し、錠剤パターン面積の小さい順となるように錠剤パターンの順番を作成する。また、錠剤監査部16は、各錠剤パターンに対して監査コードを付与し、全ての監査コードを「未処理」に設定する。例えば、図2Cの分包パターン情報27の例では、錠剤監査部16は、第1番として標準形状錠剤の錠剤パターンCを作成し、第2番として異形状錠剤の錠剤パターンBhaを作成し、第3番として異形状錠剤の錠剤パターンDhbを作成し、第4番として標準形状錠剤の錠剤パターンAを作成することで、錠剤パターンの順番を作成する。そして、錠剤監査部16は、錠剤パターンC、錠剤パターンBha、錠剤パターンDhb、錠剤パターンAの監査コードを、「未処理」に設定する。なお、本実施の形態では、ここで作成した錠剤パターンの順番に従ってループ動作を行うステップS22~S28により、パターンマッチングが順次行われる。
 続いて、図4のマッチングステップS22について説明する。
 マッチングステップS22では、錠剤監査部16は、まず、順番作成ステップS21で作成した錠剤パターンの順番を参照して、監査未処理の錠剤パターン(すなわち、監査コードが「未処理」となっている錠剤パターン)の中から順番の一番小さい錠剤パターンを選定することにより、最初にパターンマッチングすべき錠剤パターンを選定する。錠剤監査部16は、選定された錠剤パターンを用いて、探索用の薬包体画像の内部でパターンマッチングを行うことにより、パターンマッチングする画像領域(ここでは、黒色領域)を探索する。錠剤監査部16は、パターンマッチングした画像領域を、選定された錠剤パターンの錠剤領域として確定する。ここで、複数個の画像領域がパターンマッチングした場合は、錠剤監査部16は、それぞれの画像領域を、選定された錠剤パターンの錠剤領域として確定する。そして、錠剤監査部16は、選定された錠剤パターンの錠剤領域の個数を計数する。
 続いて、図4の錠剤領域削除ステップS23について説明する。
 錠剤領域削除ステップS23では、錠剤監査部16は、マッチングステップS22において確定した錠剤パターンの錠剤領域を、探索用の薬包体画像から削除することにより、新たな探索用の薬包体画像を作成する。この新たな探索用の薬包体画像は、その後の錠剤パターンのパターンマッチングに使用される。
 続いて、図4の錠剤個数検査ステップS24について説明する。
 錠剤個数検査ステップS24では、錠剤監査部16は、マッチングステップS22において計数した錠剤領域の個数と、分包パターン情報27で示されたパターンマッチング対象の錠剤パターンの錠剤個数とを比較する。両者が一致する場合(ステップS24のyes)には、錠剤監査部16は、マッチングステップS22において選定された錠剤パターンの監査コードを「処理済み」に変更し、進行チェックステップS25に移行する。両者が不一致の場合(ステップS24のno)、すなわち、錠剤領域の個数が錠剤パターンの錠剤個数よりも少ない場合は、錠剤監査部16は、不足個数を算出した後に、破損検出ステップS26に移行する。
 続いて、図4の進行チェックステップS25について説明する。
 進行チェックステップS25では、錠剤監査部16は、監査未処理の錠剤パターンが有るか否かをチェックする。監査コードが「未処理」の錠剤パターンが有ると判断される場合(ステップS25のyes)には、マッチングステップS22にループ復帰する。監査コードが「未処理」の錠剤パターンが無いと判断される場合(ステップS25のno)には、分包パターン情報27のすべての錠剤パターンの監査が処理済みであるので、ステップS05に移行する。
 続いて、図4の破損検出ステップS26について説明する。
 破損検出ステップS26では、錠剤監査部16は、選定されている錠剤パターン面積を基準面積にして、探索用の薬包体画像の内部で基準面積よりも小さい面積の画素領域(ここでは、黒色領域)を破損錠剤領域候補として検出し、複数個の破損錠剤領域候補を探す。錠剤パターン面積単位と、薬包体画像内の画素領域の面積単位との間には、所定の換算比率が設定されているが、ここでは、説明を簡単にするために、換算比率を1とする。錠剤監査部16は、検出された各破損錠剤領域候補の面積を求める。錠剤監査部16は、複数個の破損錠剤領域候補の中から任意に2個以上を選び出し、選び出した2個以上の破損錠剤領域候補の面積を合計する。錠剤監査部16は、その合計面積が選定されている錠剤パターンの基準面積と一致もしくはほぼ一致する場合に、合計に用いた2個以上の破損錠剤領域候補をその錠剤パターンに対する破損錠剤領域として確定し、その錠剤パターンの錠剤領域を1個の錠剤領域として計数する。破損錠剤領域候補が無い場合は、錠剤監査部16は、錠剤パターンの錠剤領域は0個とする。なお、面積の合計に用いた2個以上の破損錠剤領域候補の形状を合成し、その合成形状を選定されている錠剤パターンとパターンマッチングさせることにより、錠剤が破損しているか否かを確認することも可能である。また、錠剤個数検査ステップS24で算出された不足個数が2個の場合には、錠剤監査部16は、複数個の破損錠剤領域候補の中から別の2個以上の破損錠剤領域候補を選び出し、その合計面積もしくは合成形状から錠剤パターンの2個目の錠剤領域を確定することも可能である。
 続いて、図4の破損錠剤領域削除ステップS27について説明する。
 破損錠剤領域削除ステップS27では、錠剤監査部16は、破損検出ステップS26において確定した錠剤パターンの破損錠剤領域を、探索用の薬包体画像から削除することにより、新たな探索用の薬包体画像を作成する。この新たな探索用の薬包体画像は、その後の錠剤パターンのパターンマッチングに使用される。
 続いて、図4の破損個数検査ステップS28について説明する。
 破損個数検査ステップS28では、錠剤監査部16は、破損検出ステップS26において計数した錠剤パターンの錠剤領域の個数と、錠剤個数検査ステップS24で算出された不足個数とを比較する。両者が一致する場合(ステップS28のyes)は、錠剤監査部16は、その錠剤パターンの監査コードを「処理済み」に変更し、進行チェックステップS25に移行する。両者が不一致の場合(ステップS28のno)は、監査停止ステップS29に移行する。
 続いて、図4の監査停止ステップS29について説明する。
 監査停止ステップS29では、錠剤監査部16は、薬包体13の監査動作を停止し、例えば、表示部18にアラーム表示を行う。
 次に、ステップS22~S25の一連の動作について、図7~図10を参照して説明する。図7の薬包体画像33aの内部には、標準形状錠剤Aに相当する2個の錠剤領域51a、52aと、異形状錠剤Bに相当する1個の異形状錠剤領域53aと、標準形状錠剤Cに相当する2個の錠剤領域54a、55aと、異形状錠剤Dに相当する異形状錠剤領域56aが存在している。
 まず、マッチングステップS22では、錠剤監査部16は、順番作成ステップS21で作成した順番を参照して、監査コードが「未処理」の錠剤パターンの中から順番の一番小さい錠剤パターンを選定し、パターンマッチングすべき錠剤パターンを選定する。本実施の形態では、錠剤監査部16は、最初に、錠剤パターン面積が最小である第1番の錠剤パターンCを、パターンマッチングすべき錠剤パターンに選定する。錠剤監査部16は、この錠剤パターンCを用いて、図7の探索用の薬包体画像33aの内部でパターンマッチングを行う。マッチングステップS22では、錠剤監査部16は、錠剤パターンCにパターンマッチングした2個の黒色領域を錠剤領域54a、55aとして確定し、錠剤パターンCの錠剤領域54a、55aを計数し、計数個数として2個という情報を得る。
 錠剤領域削除ステップS23では、錠剤監査部16は、マッチングステップS22において確定した錠剤パターンCの錠剤領域54a、55aを、探索用の薬包体画像33aから削除することにより、新たな探索用の薬包体画像33bを作成する。図8に探索用の薬包体画像33bを示す。この探索用の薬包体画像33bは、その後の錠剤パターンのパターンマッチングに使用される。
 錠剤個数検査ステップS24では、錠剤監査部16は、マッチングステップS22において計数した錠剤パターンCの錠剤領域の個数である2個と、分包パターン情報27で示されたパターンマッチング対象の錠剤パターンCの錠剤個数である2個とを比較する。両者が一致するので、錠剤監査部16は、標準形状錠剤パターンCの監査コードを「未処理」から「処理済み」に変更し、進行チェックステップS25に移行する。
 進行チェックステップS25では、錠剤監査部16は、監査未処理の錠剤パターンの有無をチェックする。ここでは、監査コードが「未処理」の錠剤パターンが有るので、マッチングステップS22に移行する。
 2回目のマッチングステップS22では、錠剤監査部16は、順番作成ステップS21で作成した順番を参照して、監査コードが「未処理」の錠剤パターンの中から順番の一番小さい錠剤パターンBhaを、パターンマッチングすべき錠剤パターンに選定する。錠剤監査部16は、錠剤パターンBhaを用いて、図8の探索用の薬包体画像33bの内部でパターンマッチングを行う。マッチングステップS22では、錠剤監査部16は、錠剤パターンBhaにパターンマッチングした1個の黒色領域を、異形状錠剤領域53aとして確定し、錠剤パターンBhaの異形状錠剤領域53aを計数し、計数個数として1個という情報を得る。錠剤領域削除ステップS23では、錠剤監査部16は、マッチングステップS22において確定した錠剤パターンBhaの異形状錠剤領域53aを、探索用の薬包体画像33bから削除することにより、新たな探索用の薬包体画像33cを作成する。図9に探索用の薬包体画像33cを示す。錠剤個数検査ステップS24では、錠剤監査部16は、錠剤パターンBhaの錠剤領域の計数個数である1個と、分包パターン情報27の錠剤パターンBhaの個数である1個とを比較する。ここでは、両者が一致するので、錠剤監査部16は、錠剤パターンBhaの監査コードを「未処理」から「処理済み」に変更して、進行チェックステップS25に移行する。進行チェックステップS25では、監査コードが「未処理」の錠剤パターンが有ると判断されるので、マッチングステップS22に移行する。
 3回目のマッチングステップS22では、錠剤監査部16は、順番作成ステップS21で作成した順番を参照して、監査コードが「未処理」の錠剤パターンの中から順番の一番小さい錠剤パターンDhbを、パターンマッチングすべき錠剤パターンに選定する。錠剤監査部16は、錠剤パターンDhbを用いて、図9の探索用の薬包体画像33cの内部でパターンマッチングを行う。マッチングステップS22では、錠剤監査部16は、錠剤パターンDhbにパターンマッチングした1個の黒色領域を、異形状錠剤領域56aとして確定し、錠剤パターンDhbの異形状錠剤領域56aを計数し、計数個数として1個という情報を得る。錠剤領域削除ステップS23では、錠剤監査部16は、マッチングステップS22において確定した錠剤パターンDhbの異形状錠剤領域56aを、探索用の薬包体画像33cから削除することにより、新たな探索用の薬包体画像33dを作成する。図10に探索用の薬包体画像33dを示す。錠剤個数検査ステップS24では、錠剤監査部16は、錠剤パターンDhbの錠剤領域の計数個数である1個と分包パターン情報27の錠剤パターンDhbの個数である1個とを比較する。ここでは、両者が一致するので、錠剤監査部16は、錠剤パターンDhbの監査コードを「未処理」から「処理済み」に変更して、進行チェックステップS25に移行する。進行チェックステップS25では、監査コードが「未処理」の錠剤パターンが有ると判断されるので、マッチングステップS22に移行する。
 4回目のマッチングステップS22では、錠剤監査部16は、順番作成ステップS21で作成した順番を参照して、監査コードが「未処理」の錠剤パターンの中から順番の一番小さい錠剤パターンDを、パターンマッチングすべき錠剤パターンに選定する。錠剤監査部16は、錠剤パターンDを用いて、図10の探索用の薬包体画像33dの内部でパターンマッチングを行う。マッチングステップS22では、錠剤監査部16は、錠剤パターンDにパターンマッチングした2個の黒色領域を錠剤領域51a、52aとして確定し、錠剤パターンDの錠剤領域51a、52aを計数し、計数個数として2個という情報を得る。錠剤領域削除ステップS23では、錠剤監査部16は、マッチングステップS22において確定した錠剤パターンDの錠剤領域51a、52aを探索用の薬包体画像33dから削除することにより、新たな探索用の薬包体画像を作成する。錠剤個数検査ステップS24では、錠剤監査部16は、錠剤パターンDの錠剤領域の計数個数である2個と分包パターン情報27の錠剤パターンDの個数である2個とを比較する。ここでは、両者が一致するので、錠剤監査部16は、錠剤パターンDの監査コードを「未処理」から「処理済み」に変更して、進行チェックステップS25に移行する。進行チェックステップS25は、監査コードが「未処理」の錠剤パターンが無いと判断されるので、ステップS05に移行する。
 次に、ステップS26~S28を含めた破損した錠剤の検出動作について、図11、図12を参照して説明する。
 図11は、異形状錠剤Bが破損した場合の薬包体画像33gの例を示す図である。薬包体画像33gの内部には、標準形状錠剤Aに相当する2個の錠剤領域51a、52aと、標準形状錠剤Cに相当する2個の錠剤領域54a、55aと、異形状錠剤Dに相当する異形状錠剤領域56aと、異形状錠剤Bに相当する破損錠剤領域候補61、62が存在している。
 まず、ステップS21の動作によって、パターンマッチングする錠剤パターンの順番付けが行われる。ステップS22~S25の動作によって、錠剤パターン面積が最小の錠剤パターンCを用いて、図11の薬包体画像33gの内部でパターンマッチングが行われ、パターンマッチングした錠剤領域54a、55aが確定する。そして、錠剤パターンCにパターンマッチングした錠剤領域54a、55aが削除され、新しい探索用の薬包体画像33hが作成される。図12に探索用の薬包体画像33hを示す。錠剤パターンCの錠剤領域の計数個数は、分包パターン情報27の錠剤パターンCの錠剤個数と一致するので、錠剤パターンCの監査コードは「処理済み」に変更される。進行チェックステップS25では、監査コードが「未処理」の錠剤パターンが有ると判断されるので、マッチングステップS22に移行する。
 2回目のマッチングステップS22では、錠剤監査部16は、錠剤パターン面積が2番目に小さい錠剤パターンBhaを用いて、図12の探索用の薬包体画像33hの内部でパターンマッチングを行う。しかし、錠剤パターンBhaとパターンマッチングする錠剤領域が、探索用の薬包体画像33hに存在しないので、錠剤パターンBhaの錠剤領域の計数個数は0個になる。錠剤領域削除ステップS23では、錠剤監査部16は、探索用の薬包体画像33hから検出した錠剤領域を削除することにより、新たな探索用の薬包体画像を作成する。しかし、ここでは、検出された錠剤領域が無いので、探索用の薬包体画像は図12の薬包体画像33hと同一のものである。ここでは、錠剤パターンBhaの錠剤領域の計数個数である0個が分包パターン情報27の錠剤パターンBhaの錠剤個数である1個と不一致(不足)なので、錠剤個数検査ステップS24の次に、破損検出ステップS26に移行する。
 破損検出ステップS26では、錠剤監査部16は、選定されている錠剤パターンBha面積を基準面積にして、探索用の薬包体画像33hの内部で基準面積よりも小さい面積の黒色領域を破損錠剤領域候補として検出することにより、複数個の破損錠剤領域候補を探す。図12に、破損錠剤領域候補61、62の例を示す。錠剤監査部16は、破損錠剤領域候補61、62のそれぞれの面積を求め、それらの面積を合計して合計面積を求める。錠剤監査部16は、この合計面積と錠剤パターンBhaの基準面積を比較し、両者が一致(もしくはほぼ一致)しているかを判定する。ここでは、合計面積が基準面積の90~110%の範囲内にあるので、錠剤監査部16は、両者が一致していると判定する。これにより、破損錠剤領域候補61、62は、錠剤パターンBhaの破損錠剤領域であることが確定する。破損錠剤領域候補61、62の合計面積が基準面積のほぼ1個分であるので、錠剤パターンBhaの錠剤領域は1個と計数する。なお、錠剤監査部16は、合計に用いた破損錠剤領域候補61、62の形状を合成し、その合成形状を錠剤パターンBhaとパターンマッチングすることにより、合成形状が錠剤パターンBhaと一致するか否かを確認してもよい。通常、薬包体13に封入される同一種類の異形状錠剤は1個であり、その異形状錠剤が破損した場合に、上述の方法で異形状錠剤を計数できる。なお、同一の異形状錠剤の錠剤パターンに対応する異形状錠剤が2個破損した場合にも、同様な方法を繰り返すことにより計数可能である。
 破損錠剤領域削除ステップS27では、錠剤監査部16は、破損検出ステップS26において錠剤パターンBhaであると確定した破損錠剤領域候補61、62を、探索用の薬包体画像33hから削除することにより、新たな探索用の薬包体画像を作成する。この新たな探索用の薬包体画像は、その後の錠剤パターンのパターンマッチングに使用される。
 破損個数検査ステップS28では、錠剤監査部16は、破損検出ステップS26において計数した錠剤パターンBhaの錠剤領域の個数(ここでは、1個)と、錠剤個数検査ステップS24で算出された不足個数(ここでは、1個)とを比較する。ここでは、両者が一致するので、錠剤監査部16は、錠剤パターンBhaの監査コードを「未処理」から「処理済み」に変更し、進行チェックステップS25に移行する。
 進行チェックステップS25では、監査コードが「未処理」の錠剤パターンが有ると判断されるので、マッチングステップS22に移行する。その後の動作は、既に説明した内容と同じである。
 本実施の形態1の薬包体監査システム10は、錠剤分割部14が錠剤分割機能を有する場合に、監査の効果が特に大きい。錠剤分割部14が錠剤分割機能を有する場合、錠剤分割部14は、分包指示部11の分包指示情報26に基づいて、標準形状錠剤Bを機械的に1/2分割して異形状錠剤Bを作成する。錠剤分包部12は、作成した異形状錠剤Bを機械的に薬包体13に封入する。非常に稀なケースではあるが、錠剤分割部14が標準形状錠剤Bの分割に失敗して、薬包体13に異形状錠剤Bの代わりに標準形状錠剤Bが封入されることが生じる場合がある。このような場合に、薬包体画像内の錠剤領域の個数のみを計数しても、形状の相違に関する誤りを検知することができない。本実施の形態1の薬包体監査システム10では、異形状錠剤の形状を含めた監査を行っているので、異形状錠剤Bの代わりに標準形状錠剤Bが薬包体13に入っていると、その不一致を検知することができる。不一致を検知した場合、例えば、薬包体監査システム10は、監査を停止し、表示部18にアラーム表示する。
 また、実施の形態1の薬包体監査システム10における錠剤監査部16は、分包指示情報26に含まれる錠剤の種類の標準形状錠剤パターンを錠剤情報保持部20から入手して、分包指示情報26に含まれる分割数で標準形状錠剤パターンを分割することにより異形状錠剤の異形状錠剤パターンを生成している。例えば、錠剤監査部16は、分包指示情報26に基づいて標準形状錠剤パターンBをa方向に1/2分割することにより、異形状錠剤パターンBhaを作成している。そのため、錠剤情報保持部20は、各種錠剤について標準形状錠剤パターンのみを保持していれば良く、データベースの作成が容易になる。また、錠剤監査部16は、分包指示情報26に含まれる分割数と分割方向に基づいて標準形状錠剤パターンを分割することにより、異形状錠剤パターンを生成している。そのため、形状が正確な異形状錠剤パターンを生成可能であり、異形状錠剤のパターンマッチングの精度が良くなる。なお、分包指示情報26に分割方向の指定が無い場合には、錠剤監査部16は、標準形状錠剤パターンBをa方向で1/2分割した異形状錠剤パターンBhaとb方向で1/2分割した異形状錠剤パターンBhbとを作成し、それぞれのパターンにパターンマッチングする錠剤領域を検出しても良い。
 また、実施の形態1の薬包体監査システム10における錠剤監査部16は、まず、探索用の薬包体画像内において、異形状錠剤パターンにパターンマッチングする錠剤領域を確定する。そして、異形状錠剤パターンにパターンマッチングする錠剤領域を確定する毎に、探索用の薬包体画像から確定した錠剤領域を削除することにより、新たな探索用の薬包体画像を生成している。そして、錠剤監査部16は、新たな探索用の薬包体画像を用いて、次の異形状錠剤パターンにパターンマッチングする錠剤領域を検出する。これにより、異形状錠剤をパターンマッチングする毎に探索用の薬包体画像内の錠剤領域候補が少なくなるので、パターンマッチングの間違いが減ると共に、パターンマッチング時間が短縮される。このような効果は、標準形状錠剤のパターンマッチングの場合にも得られる。
 また、錠剤分包部12は、錠剤を薬包体に分包するにあたって、錠剤分割部14に標準形状錠剤を分割させて異形状錠剤を作成し、分割後の異形状錠剤とその他の標準形状錠剤を一緒に重力落下させて薬包体に入れている。そして、錠剤分包部12は、1回に患者が服用するための複数種類で複数個の錠剤を、まとめて薬包体に入れた後に、その薬包体を機械的に封止する。異形状錠剤は、標準形状錠剤を機械的に1/2分割もしくは1/4分割して作成されているので、標準形状錠剤に比べて、非常に脆くなっている。そのため、薬包体に封入された異形状錠剤が破損していることが、しばしば発生する。破損した異形状錠剤が薬包体に封入されている場合は、薬包体画像内の黒色領域の個数が、破損した異形状錠剤が薬包体に封入されていない場合に比べて多くなる。その結果、薬包体画像内の黒色領域の個数を計数監査する方法では、薬包体内の錠剤個数を正確に把握することはできない。
 そのため、実施の形態1の薬包体監査システムにおける錠剤監査部16は、探索用の薬包体画像内に検出される異形状錠剤パターンにパターンマッチングする錠剤領域の個数が、分包パターン情報に示される異形状錠剤パターンの錠剤個数より少ない場合、異形状錠剤パターンの錠剤パターン面積よりも小さい領域面積を有する破損錠剤領域候補を、探索用の薬包体画像内で検出する。また、錠剤監査部16は、破損錠剤領域候補の領域面積を合計(複数個和算)した合計面積と、異形状錠剤パターンの錠剤パターン面積とが、パターンマッチングするか否かを判定する。錠剤監査部16は、複数個の破損錠剤領域候補の合成面積が、異形状錠剤パターンの錠剤パターン面積とほぼ同一となる場合に、複数の破損錠剤領域候補を合成した領域を、異形状錠剤パターンとパターンマッチングする錠剤領域として検出している。これにより、錠剤監査部16は、異形状錠剤が破損している場合であっても、異形状錠剤の形状を含めた正確な監査ができる。なお、非常に希なケースであるが、標準形状錠剤が破損している場合にも、同様に正確な監査を行うことができる。
 実施の形態1の薬包体監査システム10における錠剤監査部16は、錠剤パターン面積の小さい錠剤パターンから順番にパターンマッチングしているので、錠剤パターンのパターンマッチングの間違いが少なくなり、正確な監査が可能になる。これについて説明する。例えば、錠剤パターン面積の大きい標準形状錠剤Aからパターンマッチングする場合を想定する。標準形状錠剤Aの錠剤パターンAは、錠剤パターンA面積が他の錠剤の錠剤パターン面積よりも大きいので、薬包体13内に他の錠剤が密集した場合に、密集したブロックをまとめて一つの錠剤領域としてパターンマッチングする場合が生じやすい。そのため、薬包体13内に他の錠剤が密集した場合に、監査結果の誤りが生じやすい。このように、本実施の形態とは逆に、錠剤パターン面積の大きい錠剤パターンからパターンマッチングすると、検査結果の誤りが生じる可能性がある。
 また、実施の形態1の薬包体監査システム10における錠剤監査部16では、錠剤パターン面積の小さい錠剤パターンからパターンマッチングしているので、対象錠剤の破損が生じている場合に、破損錠剤領域候補の数を少なくでき、破損錠剤領域を短時間に正確に選定できる。これについて説明する。例えば、錠剤パターン面積の大きい標準形状錠剤Aからパターンマッチングする場合を仮定して、2個の標準形状錠剤Aのうち1個が破損しているとすると、錠剤パターンAを用いて正常な標準形状錠剤Aの錠剤領域を1個検出できる。しかし、破損した標準形状錠剤Aはそのままでは検出できないので、破損錠剤領域候補を探す必要がある。このとき、錠剤パターンA面積は最大であるので、他の異形状錠剤Bや標準形状錠剤Cや異形状錠剤Dに相当する全ての錠剤領域が、標準形状錠剤Aの破損錠剤領域候補になる。その結果、破損錠剤領域候補の数が多くなり、絞り込み処理の時間が長くなると共に、その選定誤りも発生しやすくなる。このように、本実施の形態とは逆に、錠剤パターン面積の大きい錠剤パターンからパターンマッチングすると、選定誤りが発生する可能性がある。
 さらに、実施の形態1の薬包体監査システム10における錠剤監査部16は、錠剤パターン面積の小さい錠剤パターンから順番に、次の(a)、(b)を繰り返して行うようにしている。
(a) 錠剤パターンにパターンマッチングする錠剤領域を探索用の薬包体画像内より検出することにより、錠剤パターンに相当する錠剤個数を計数する。
(b) 探索用の薬包体画像より検出した錠剤領域を削除することにより、新たな探索用の薬包体画像を生成する。
 これらを行うことにより、錠剤パターンをパターンマッチングする毎に、探索用の薬包体画像内の錠剤領域候補が少なくなるので、パターンマッチング時に間違いが減ると共に、パターンマッチング時間が短縮される。
 実施の形態1の薬包体監査システム10の分包指示部11は、分包指示情報26を2次元バーコードに書き込んだ分包指示情報用紙を出力する。錠剤監査部16は、付属するコード入力部21によって分包指示情報用紙の2次元コードを読み取り、分包指示情報26を取得している。また、そのような場合に限らず、分包指示部11がRFID(Radio Frequency IDentification)などの電子的な記録媒体に分包指示情報26を記録し、RFID読み取り機能を有するコード入力部によりRFIDに記録された情報を読み取って、錠剤監査部16に分包指示情報を入力しても良い。また、セキュリティが確保されたイントラネット回線により分包指示部11から分包指示情報の電子データを直接的に錠剤監査部16に送っても良い。
 また、錠剤監査部16は、探索用の薬包体画像、または薬包体の鑑査結果を表示部18に逐次表示するようにしても良い。
 また、例えば、処方箋情報25の錠剤Bが1.5個になっている場合に、錠剤監査部16は、分包パターン情報27として錠剤パターンBと錠剤パターンBhaの2種類の錠剤パターンを作成し、錠剤パターンB面積と錠剤パターンBha面積を作成する。錠剤パターンBと錠剤パターンBhaは別の錠剤パターンであり、錠剤監査部16はそれぞれの錠剤パターン毎にパターンマッチングする。このように、本実施の形態1の薬包体監査システムは、同じ錠剤の種類の錠剤Bであっても、異形状錠剤Bと標準形状錠剤Bに対して異なる錠剤パターンを用いてパターンマッチングを行う。その結果、本実施の形態1の薬包体監査システムでは、異形状錠剤Bの形状を含めた正確な監査が可能になる。
 (実施の形態2)
 本発明の実施の形態2は、図3に示す監査ステップS04を、図4に示すフローチャートから、図13に示すフローチャートに変更したものである。その他の構成は、実施の形態1と同じであるため、説明を省略する。以下、本実施の形態2が実施の形態1と異なる点について、図面を参照しながら説明する。
 図13は、本発明の実施の形態2にかかる監査ステップS04の詳細ステップを示すフローチャートである。図14は、実施の形態2の分包パターン情報127を示す図である。
 錠剤監査部16は、図2Bに示される分包指示部11の分包指示情報26に基づいて、図14に示される分包パターン情報127を作成する。すなわち、錠剤監査部16は、分包指示情報26の異形状錠剤Bに基づいて、錠剤パターンBとその錠剤パターンB面積の値である60mmを錠剤情報保持部20より取り込んで、異形状錠剤B(1/2分割、a方向)に対応する錠剤パターンBhaを作成し、錠剤パターンBhaの錠剤パターンBha面積の値である30mmを得る。そして、錠剤監査部16は、錠剤パターンBhaと、その錠剤個数である1個と、その錠剤パターンBha面積の値である30mmを、分包パターン情報127に設定する。ここで、異形状錠剤Bの錠剤パターンBhaは、標準形状錠剤Bの錠剤パターンBをa方向に1/2分割して作成され、錠剤パターンBha面積は、錠剤パターンB面積に1/2を乗ずることで作成される。同様に、錠剤監査部16は、分包指示情報26の異形状錠剤Dに基づいて、錠剤パターンDとその錠剤パターンD面積の値である80mmを錠剤情報保持部20より取り込んで、異形状錠剤D(1/2分割、b方向)に対応する錠剤パターンDhbを作成し、錠剤パターンDhbの錠剤パターンDhb面積の値である40mmを得る。そして、錠剤監査部16は、錠剤パターンDhbと、その錠剤個数である1個と、その錠剤パターンDhb面積の値である40mmを、分包パターン情報127に設定する。ここで、異形状錠剤Dの錠剤パターンDhbは、標準形状錠剤Dの錠剤パターンDをb方向に1/2分割して作成され、錠剤パターンDhb面積は錠剤パターンD面積に1/2を乗ずることで作成される。また、錠剤監査部16は、分包指示情報26の標準形状錠剤Aと標準形状錠剤Cに基づいて、分包パターン情報127の標準形状の錠剤個数である4個(標準形状錠剤Aは2個、標準形状錠剤Cは2個)を作成する。さらに、錠剤監査部16は、分包指示情報26に基づいて、日数である10日という内容と、3回/1日(朝・昼・晩は同じ)という内容から、薬包体数は30包で分包内容は同一であることを、分包パターン情報127に設定する。
 次に、監査ステップの具体的な動作を、図13のフローチャートを参照して説明する。
 まず、図13の異形状錠剤の順番作成ステップS121について説明する。
 異形状錠剤の順番作成ステップS121では、錠剤監査部16は、分包パターン情報127に含まれる異形状錠剤の錠剤パターン面積(以下、「異形状錠剤パターン面積」と称す)を比較し、異形状錠剤の錠剤パターン面積の小さい順となるように錠剤パターンの順番を作成する。また、錠剤監査部16は、各錠剤パターンに対して監査コードを付与し、すべての監査コードを「未処理」に設定する。例えば、図14の分包パターン情報127では、錠剤監査部16は、その異形状錠剤パターン面積の小さい順に、第1番として錠剤パターンBha、第2番として錠剤パターンDhbとなる順番を作成し、錠剤パターンBha、錠剤パターンDhbの監査コードを「未処理」にする。なお、錠剤監査部16は、ここで作成した錠剤パターンの順番に従って、ループ動作であるステップS122~S128でパターンマッチングを順次行っていく。
 続いて、図13の異形状マッチングステップS122について説明する。
 異形状マッチングステップS122では、錠剤監査部16は、異形状錠剤の順番作成ステップS121で作成した順番を参照して、監査コードが「未処理」の異形状錠剤の錠剤パターン(以下、「異形状錠剤パターン」と称す)の中から順番の一番小さい異形状錠剤パターンを選定することにより、パターンマッチングすべき異形状錠剤パターンを選定する。錠剤監査部16は、探索用の薬包体画像の内部でこの異形状錠剤パターンにパターンマッチングする画像領域を探索し、その画像領域を異形状錠剤パターンの異形状錠剤領域として確定する。ここで、錠剤監査部16は、複数個の画像領域がパターンマッチングした場合は、それぞれを異形状錠剤領域として確定する。本実施の形態2では、パターンマッチングすべき錠剤パターンとして選ばれるのは、異形状錠剤パターンのみである。このため、錠剤監査部16は、異形状錠剤パターンの異形状錠剤領域の個数を計数することができる。
 続いて、図13の異形状錠剤領域削除ステップS123について説明する。
 異形状錠剤領域削除ステップS123では、錠剤監査部16は、異形状マッチングステップS122において確定した異形状錠剤領域を探索用の薬包体画像から削除することにより、新たな探索用の薬包体画像を作成する。この新たな探索用の薬包体画像は、その後の異形状錠剤パターンのパターンマッチングに使用される。
 続いて、図13の異形状錠剤個数検査ステップS124について説明する。
 異形状錠剤個数検査ステップS124では、錠剤監査部16は、異形状マッチングステップS122において計数した異形状錠剤領域の個数と、分包パターン情報127で示されたパターンマッチング対象の異形状錠剤パターンの錠剤個数とを比較する。両者が一致する場合(ステップS124のyes)には、錠剤監査部16は、その異形状錠剤パターンの監査コードを「処理済み」に変更し、進行チェックステップS125に移行する。両者が不一致の場合(ステップS124のno)、すなわち、異形状錠剤領域の個数が異形状錠剤パターンの錠剤個数よりも少ない場合は、錠剤監査部16は、不足個数を算出した後に、破損検出ステップS126に移行する。
 続いて、図13の進行チェックステップS125について説明する。
 進行チェックステップS125では、錠剤監査部16は、監査未処理の異形状錠剤パターンが有るか否かをチェックする。監査コードが「未処理」の異形状錠剤パターンが有ると判断される場合(ステップS125のyes)には、異形状マッチングステップS122にループ復帰する。監査コードが「未処理」の異形状錠剤パターンが無いと判断される場合(ステップS25のno)には、薬包体13内の全ての異形状錠剤パターンの監査が終了しているので、標準形状錠剤検出ステップS134に移行する。
 続いて、図13の破損検出ステップS126について説明する。
 破損検出ステップS126では、錠剤監査部16は、選定されている異形状錠剤パターンの錠剤パターン面積を基準面積にして、探索用の薬包体画像の内部で基準面積よりも小さい面積の画素領域を破損錠剤領域候補として検出し、複数個の破損錠剤領域候補を探す。異形状錠剤パターンの錠剤パターン面積単位と薬包体画像内の画素領域の面積単位の間に所定の換算比率が設定されているが、ここでは換算比率を1として説明する。錠剤監査部16は、検出された各破損錠剤領域候補の面積を求める。錠剤監査部16は、複数個の破損錠剤領域候補の中から任意に2個以上を選び出し、選び出した2個以上の破損錠剤領域候補の面積を合計する。錠剤監査部16は、その合計面積が選定されている異形状錠剤パターンの基準面積と一致もしくはほぼ一致する場合に、合計に用いた2個以上の破損錠剤領域候補をその異形状錠剤パターンに対する2個以上の破損錠剤領域として確定し、確定した2個以上の破損錠剤領域を、その異形状錠剤パターンの異形状錠剤領域の1個として計数する。破損錠剤領域候補が無い場合は、異形状錠剤パターンの異形状錠剤領域は0個とする。なお、合計に用いた2個以上の破損錠剤領域候補の形状を合成し、その合成形状を選定されている異形状錠剤パターンとパターンマッチングすることにより、異形状錠剤領域を確認することも可能である。また、錠剤個数検査ステップS24で算出された不足個数が2個の場合には、錠剤監査部16は、複数個の破損錠剤領域候補の中から別の2個以上の破損錠剤領域候補を選び出し、その合計面積もしくは合成形状から異形状錠剤パターンの2個目の異形状錠剤領域を確定することも可能である。
 続いて、図13の破損錠剤領域削除ステップS127について説明する。
 破損錠剤領域削除ステップS127では、錠剤監査部16は、破損検出ステップS126において確定した破損錠剤領域を探索用の薬包体画像から削除することにより、新たな探索用の薬包体画像を作成する。この新たな探索用の薬包体画像は、その後の異形状錠剤パターンのパターンマッチングに使用される。
 続いて、図13の破損個数検査ステップS128について説明する。
 破損個数検査ステップS128では、錠剤監査部16は、破損検出ステップS126において計数した異形状錠剤領域の個数と、異形状錠剤個数検査ステップS124で算出された不足個数とを、比較する。両者が一致する場合(ステップS128のyes)は、錠剤監査部16は、その異形状錠剤パターンの監査コードを「処理済み」に変更し、進行チェックステップS125に移行する。両者が不一致の場合(ステップS128のno)は、監査停止ステップS129に移行する。
 続いて、図13の監査停止ステップS129について説明する。
 監査停止ステップS129では、錠剤監査部16は、薬包体13の監査動作を停止し、例えば、表示部18にアラーム表示を行う。
 続いて、図13の標準形状錠剤検出ステップS134について説明する。
 標準形状錠剤検出ステップS134は、ステップS122~S128により全ての異形状錠剤パターンを用いた形状と個数のパターンマッチングを終了した後に、行われる。標準形状錠剤検出ステップS134では、錠剤監査部16は、すべての異形状錠剤パターンに対応する異形状錠剤領域を削除した後の探索用の薬包体画像を用いて、その探索用の薬包体画像内にある錠剤領域を検出し、その錠剤領域の個数を計数する。
 なお、標準形状錠剤検出ステップS134における錠剤領域の個数の検出方法には、周知の各種の方法が使用可能である。例えば、探索用の薬包体画像を用いて、薬包体画像内の黒色領域の数を計数することで錠剤個数を求める方法、または、薬包体画像内の黒色領域に対して収縮処理、膨張処理およびラベリング処理を行うことにより錠剤領域を分離抽出した後に、分離領域の数を計数することで錠剤個数を求める方法が、使用可能である。また、探索用の薬包体画像内の黒色領域についてコーナー抽出を行い、抽出コーナー数と領域数を求めて、それらから錠剤個数を算出することも可能である。なお、薬包体画像を白黒反転して、白色領域の数を計数することで、錠剤個数を求めても良い。
 続いて、図13の標準形状錠剤個数検査ステップS135について説明する。
 標準形状錠剤個数検査ステップS135では、錠剤監査部16は、標準形状錠剤検出ステップS134において計数した錠剤領域の個数が、分包パターン情報127に示される標準形状錠剤の錠剤個数と一致するか否かをチェックする。両者が一致する場合(ステップS135のyes)には、錠剤監査部16は、標準形状錠剤の監査が正常に行われたと判断する。薬包体13全体の錠剤監査が終了したので、ステップS05に移行する。両者が不一致の場合(ステップS135のno)は、監査停止ステップS129に移行する。
 ステップS122~S125の動作について、図15~図17を参照して説明する。図15は撮像部15の撮像画像から得られる最初の探索用の薬包体画像133pの例を示す図である。薬包体画像133pの内部には、標準形状錠剤Aに相当する2個の錠剤領域151、152と、異形状錠剤Bに相当する1個の異形状錠剤領域153と、標準形状錠剤Cに相当する2個の錠剤領域154、155と、異形状錠剤Dに相当する異形状錠剤領域156が、存在している。
 まず、異形状マッチングステップS122では、錠剤監査部16は、順番作成ステップS121で作成した順番を参照して、監査コードが「未処理」の異形状錠剤パターンの中から順番の一番小さい異形状錠剤パターンBhaをパターンマッチングすべき異形状錠剤パターンとして抽出する。錠剤監査部16は、異形状錠剤パターンBhaを用いて、図15の探索用の薬包体画像133pの内部でパターンマッチングを行う。異形状マッチングステップS122では、錠剤監査部16は、異形状錠剤パターンBhaとパターンマッチングした1個の黒色領域を異形状錠剤領域153として確定し、異形状錠剤パターンBhaの異形状錠剤領域153を計数し、計数個数として1個という情報を得る。異形状錠剤領域削除ステップS123では、錠剤監査部16は、異形状マッチングステップS122において確定した異形状錠剤パターンBhaの異形状錠剤領域153を探索用の薬包体画像133pから削除することにより、新たな探索用の薬包体画像133qを作成する。図16に探索用の薬包体画像133qを示す。異形状錠剤個数検査ステップS124では、錠剤監査部16は、異形状錠剤パターンBhaの異形状錠剤領域の計数個数である1個と、分包パターン情報127の異形状錠剤パターンBhaの錠剤個数である1個とを、比較する。ここでは、両者が一致しているので、錠剤監査部16は、異形状錠剤パターンBhaの監査コードを「未処理」から「処理済み」に変更して、進行チェックステップS125に移行する。進行チェックステップS125では、監査コードが「未処理」の異形状錠剤パターンが有るので、異形状マッチングステップS122に移行する。
 2回目の異形状マッチングステップS122では、錠剤監査部16は、順番作成ステップS121で作成した順番を参照して、監査コードが「未処理」の異形状錠剤パターンの中から順番の一番小さい異形状錠剤パターンDhbを、パターンマッチングすべき異形状錠剤パターンとして抽出する。錠剤監査部16は、異形状錠剤パターンDhbを用いて、図16の探索用の薬包体画像133qの内部でパターンマッチング検査を行う。異形状マッチングステップS122では、錠剤監査部16は、異形状錠剤パターンDhbとパターンマッチングした1個の黒色領域を異形状錠剤領域156として確定し、異形状錠剤パターンDhbの異形状錠剤領域156を計数し、計数個数として1個を得る。異形状錠剤領域削除ステップS123では、錠剤監査部16は、異形状マッチングステップS122において確定した異形状錠剤パターンDhbの異形状錠剤領域156を、探索用の薬包体画像133qから削除することにより、新たな探索用の薬包体画像133rを作成する。図17に、探索用の薬包体画像133rを示す。異形状錠剤個数検査ステップS124では、錠剤監査部16は、異形状錠剤パターンDhbの異形状錠剤領域の計数個数である1個と、分包パターン情報127の異形状錠剤パターンDhbの個数である1個とを、比較する。ここでは、両者が一致しているので、錠剤監査部16は、異形状錠剤パターンDhbの監査コードを「未処理」から「処理済み」に変更して、進行チェックステップS125に移行する。進行チェックステップS125では、監査コードが「未処理」の異形状錠剤パターンが無くなったので、錠剤監査部16は、薬包体13のすべての異形状錠剤の監査処理が正常に行われたと判断し、標準形状錠剤検出ステップS134に移行する。
 異形状錠剤の破損が生じている場合には、破損検出ステップS126の動作は破損検出ステップS26の動作と同様であり、破損錠剤領域削除ステップS127の動作は破損錠剤領域削除ステップS27の動作と同様であり、破損個数検査ステップS128の動作は破損個数検査ステップS28の動作と同様である。したがって、ステップS126~S128の全体的な動作は前述したステップS26~S28の全体的な動作と同様であり、ステップS126~S128の効果はステップS26~S28による効果と同じになる。なお、詳細な説明は省略する。
 次に、標準形状錠剤検出ステップS134と標準形状錠剤個数検査ステップS135の動作について説明する。標準形状錠剤検出ステップS134は、ステップS122~S128を通過することにより、すべての異形状錠剤パターンの監査確認を行った後に実施される。そのため、標準形状錠剤検出ステップS134で用いる探索用の薬包体画像133rは、図17に示したように、異形状錠剤パターンBhaの異形状錠剤領域と異形状錠剤パターンDhbの異形状錠剤領域が取り除かれており、標準形状錠剤だけに相当する錠剤領域が残っている。標準形状錠剤検出ステップS134では、錠剤監査部16は、探索用の薬包体画像133r内の錠剤領域を検出し、錠剤領域の個数である4個を計数する。標準形状錠剤個数検査ステップS135では、錠剤監査部16は、標準形状錠剤検出ステップS134の計数結果である4個と、分包パターン情報127の標準形状の錠剤個数である4個とを比較する。ここでは、両者が一致しているので、錠剤監査部16は、薬包体13全体の錠剤監査が正常に行われたと判断し、ステップS05に移行する。
 実施の形態2の薬包体監査システム10は、分包指示情報26に基づいて少なくとも異形状錠剤の異形状錠剤パターンBha、Dhb及び錠剤個数を、錠剤の種類別に示す分包パターン情報127に追加する。また、薬包体監査システム10は、探索用の薬包体画像内に異形状錠剤パターンにパターンマッチングする異形状錠剤領域を検出し、異形状錠剤領域の個数が分包パターン情報に示される異形状錠剤パターンの錠剤個数と一致するか否かを判定している。その結果、薬包体監査システム10は、異形状錠剤の形状を含めた正確な監査を行い、薬包体13内の異形状錠剤に大きな間違いが生じないようにしている。
 実施の形態2の薬包体監査システム10における錠剤監査部16は、異形状錠剤パターンを用いて異形状錠剤の形状を含めた監査を行い、その後に、異形状錠剤に相当した異形状錠剤領域を削除した探索用の薬包体画像を得て、その探索用の薬包体画像内に含まれる錠剤領域の数を計数することにより、標準形状錠剤の個数を監査している。これにより、薬包体内の標準形状錠剤を短時間に正確に計数することができ、薬包体全体の監査時間を短縮することができる。
 これについて説明する。通常、薬包体内には少数の異形状錠剤と多数の標準形状錠剤が封入されている。そのため、すべての錠剤種類の錠剤パターンについてパターンマッチングを行うと、検出時間が錠剤種類に比例して長くなる。また、錠剤領域の計数時間は、1種類の錠剤パターンのパターンマッチングにかかる時間よりもかなり短い。したがって、実施の形態2の薬包体監査システムは、監査時間を大幅に短縮できる。なお、標準形状錠剤は円盤状または楕円体状の滑らかで固い形状をしているので、錠剤分包部12は、標準形状錠剤の薬包体への分包において、個数間違いや錠剤破損を生じにくい。そのため、錠剤監査部16は、薬包体内の標準形状錠剤を、短時間で計数監査を行うことが可能である。また、薬包体内の標準形状錠剤の監査は、必要に応じて行うようにしても良い。
 実施の形態2の薬包体監査システム10における錠剤監査部16は、分包指示情報に基づいて、薬包体内に分包された異形状錠剤の異形状錠剤パターンと異形状錠剤パターン面積とを、錠剤種類別に得た後、異形状錠剤パターン面積の小さい異形状錠剤から順番に、以下の(a)(b)を繰り返して行うようにしている。
(a) 異形状錠剤パターンにパターンマッチングする錠剤領域を、探索用の薬包体画像内より検出することにより、異形状錠剤パターンの錠剤個数を計数する。
(b) 探索用の薬包体画像より検出した錠剤領域を削除することにより、新たな探索用の薬包体画像を生成する。
 これにより、異形状錠剤パターンを用いて、異形状錠剤の形状を含めた個数確認を行い、形状間違いが生じない正確な監査を可能にしている。
 また、例えば、処方箋情報25の錠剤Bが1.5個になった場合に、錠剤監査部16は、分包パターン情報として錠剤パターンBhaと錠剤パターンBha面積を作成し、標準形状錠剤Bの個数分(1個)を加算した標準形状の錠剤個数を作成する。錠剤監査部16は、錠剤パターンBhaをパターンマッチングし、標準形状錠剤Bの個数を含めた標準形状の錠剤個数を計数監査する。このように、実施の形態2の薬包体監査システムでは、同じ錠剤種類の錠剤Bであっても、異形状錠剤Bと標準形状錠剤Bとで異なる監査を行っている。その結果、異形状錠剤Bの形状を含めた正確な監査が可能になる。
 なお、前述の各実施の形態において、各薬包体には同じ種類の錠剤が同じ個数だけ封入される場合を説明したが、薬包体の封入錠剤が個別に異なっていても良い。例えば、朝用薬包体と昼用薬包体と晩用薬包体とで、異なる錠剤種類を異なる錠剤個数だけ封入することも可能である。また、1/2分割の異形状錠剤を作成するための標準形状錠剤は円盤状や楕円体状に限定されるものではなく、菱形状や長方形などの角形状の標準形状錠剤であってもよい。また、異形状錠剤は、1/2分割された異形状錠剤に限らず、1/3分割や1/4分割された異形状錠剤であっても良い。その他、本発明の主旨を変えずして各種の変形が可能であり、本発明に含まれることは言うまでもない。
 なお、上記各実施の形態において、各構成要素は、専用のハードウェアで構成されるか、各構成要素に適したソフトウェアプログラムを実行することによって実現されてもよい。各構成要素は、CPUまたはプロセッサなどのプログラム実行部が、ハードディスクまたは半導体メモリなどの記録媒体に記録されたソフトウェアプログラムを読み出して実行することによって実現されてもよい。
 本発明は、異形状錠剤を薬包体に封止して患者に提供する薬局、病院施設等で利用される薬包体監査システム等に適用できる。
 10  薬包体監査システム
 11  分包指示部
 12  錠剤分包部
 13  薬包体
 14  錠剤分割部
 15  撮像部
 16  錠剤監査部
 17  照明部
 18  表示部
 19  搬送部
 20  錠剤情報保持部
 21  コード入力部
 25  処方箋情報
 26  分包指示情報
 27、127  分包パターン情報
 33a、33b、33c、33h、133p、133q、133r  薬包体画像
 51、52  標準形状錠剤A
 51a、52a、54a、151、152、154  錠剤領域
 53  異形状錠剤B
 53a、56a、153、156  異形状錠剤領域
 54、55  標準形状錠剤C
 56  異形状錠剤D
 61、62  破損錠剤領域候補

Claims (7)

  1.  薬包体に封入する錠剤の種類ごとの個数を分包指示情報として生成する分包指示部と、
     前記分包指示情報に基づいて前記錠剤を前記薬包体に封入する錠剤分包部と、
     前記錠剤が封入された前記薬包体を撮像することにより、薬包体画像を生成する撮像部と、
     前記薬包体画像を、前記分包指示情報に示される前記薬包体に封入されるべき錠剤の形状パターンである錠剤パターンとパターンマッチングさせることにより、前記薬包体に封入された錠剤の個数を監査する錠剤監査部と、を備え、
     前記錠剤監査部は、前記分包指示情報に基づいて分割された錠剤である異形状錠剤の情報が前記分包指示情報に含まれる場合に、前記異形状錠剤の形状パターンである異形状錠剤パターンと前記薬包体画像をパターンマッチングさせることにより前記異形状錠剤の個数を監査する
     薬包体監査システム。
  2.  前記錠剤監査部は、前記薬包体画像において前記異形状錠剤パターンの面積よりも小さい面積を有する破損錠剤領域候補を検出し、前記破損錠剤領域候補の合計面積と前記異形状錠剤パターンの面積とが一致するか否かを判定し、両者が一致する場合に、前記薬包体に前記異形状錠剤が含まれていると判断する
     請求項1に記載の薬包体監査システム。
  3.  前記錠剤監査部は、面積の小さい順に選択される錠剤パターンと既にパターンマッチングした錠剤の領域を除いた薬包体画像とをパターンマッチングさせることにより、選択された錠剤パターンの個数を監査する
     請求項1または2に記載の薬包体監査システム。
  4.  前記錠剤監査部は、前記異形状錠剤の情報が前記分包指示情報に含まれる場合に、前記異形状錠剤のみについて面積の小さい順番に前記薬包体画像とパターンマッチングさせる
     請求項1~3のいずれか1項に記載の薬包体監査システム。
  5.  前記分包指示情報は、前記異形状錠剤の分割数を含み、
     前記錠剤監査部は、前記異形状錠剤と同じ錠剤種類の錠剤の標準の形状パターンである標準形状錠剤パターンを、前記分包指示情報に含まれる前記異形状錠剤の分割数で分割することにより、前記異形状錠剤パターンを生成する
     請求項1~4のいずれか1項に記載の薬包体監査システム。
  6.  前記分包指示情報は、さらに、前記異形状錠剤の分割方向を含み、
     前記錠剤監査部は、前記分包指示情報に含まれる錠剤の分割数と分割方向とに基づいて前記標準形状錠剤パターンを分割することにより、前記異形状錠剤パターンを生成する
     請求項5に記載の薬包体監査システム。
  7.  薬包体に封入する錠剤の種類ごとの個数を分包指示情報として生成し、
     前記分包指示情報に基づいて前記錠剤を前記薬包体に封入し、
     前記錠剤が封入された前記薬包体を撮像することにより薬包体画像を生成し、
     前記薬包体画像を、前記分包指示情報に示される前記薬包体に封入されるべき錠剤の形状パターンである錠剤パターンとパターンマッチングさせることにより、前記薬包体に封入された錠剤の個数を監査し、
     前記監査において、前記分包指示情報に基づいて分割された錠剤である異形状錠剤の情報が前記分包指示情報に含まれる場合に、前記異形状錠剤の形状パターンである異形状錠剤パターンと前記薬包体画像をパターンマッチングさせることにより前記異形状錠剤の個数を監査する
     薬包体監査方法。
PCT/JP2012/004321 2011-08-08 2012-07-04 薬包体監査システム WO2013021543A1 (ja)

Priority Applications (2)

Application Number Priority Date Filing Date Title
US13/822,737 US20130170732A1 (en) 2011-08-08 2012-07-04 Medicine pack inspecting system
JP2012550658A JP5422062B2 (ja) 2011-08-08 2012-07-04 薬包体監査システム

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2011-172779 2011-08-08
JP2011172779 2011-08-08

Publications (1)

Publication Number Publication Date
WO2013021543A1 true WO2013021543A1 (ja) 2013-02-14

Family

ID=47668085

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2012/004321 WO2013021543A1 (ja) 2011-08-08 2012-07-04 薬包体監査システム

Country Status (3)

Country Link
US (1) US20130170732A1 (ja)
JP (1) JP5422062B2 (ja)
WO (1) WO2013021543A1 (ja)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105307622A (zh) * 2013-06-21 2016-02-03 富士胶片株式会社 分包药剂检查装置及方法
WO2020044933A1 (ja) 2018-08-31 2020-03-05 富士フイルム富山化学株式会社 対象物照合装置及び対象物照合方法

Families Citing this family (13)

* 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
CN105208995B (zh) * 2013-05-22 2020-01-14 普和希控股公司 药片检查装置以及药片检查方法
US20170286636A1 (en) * 2014-09-19 2017-10-05 Touchpoint Medical, Inc. Visual verification of medication package
CN107072881B (zh) * 2014-09-25 2020-07-03 株式会社汤山制作所 检查辅助系统、片剂分包装置
EP3271879A1 (en) 2015-03-18 2018-01-24 United Parcel Service Of America, Inc. Systems and methods for verifying the contents of a shipment
CA2981978C (en) 2015-04-16 2021-02-09 United Parcel Service Of America, Inc. Enhanced multi-layer cargo screening system, computer program product, and method of using the same
US10762614B2 (en) * 2015-10-19 2020-09-01 Yuyama Mfg, Co., Ltd. Inspection apparatus, inspection method and computer program product
JP6333871B2 (ja) * 2016-02-25 2018-05-30 ファナック株式会社 入力画像から検出した対象物を表示する画像処理装置
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
US10583941B2 (en) 2017-10-13 2020-03-10 Rxsafe Llc Universal feed mechanism for automatic packager
JP7141445B2 (ja) * 2018-03-26 2022-09-22 富士フイルム富山化学株式会社 薬剤判定装置、及び境界凹部の検出方法

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000354620A (ja) * 1999-06-15 2000-12-26 Yuyama Manufacturing Co Ltd 薬剤分包装置
JP2003517335A (ja) * 1998-07-30 2003-05-27 コントラック・テクノロジーズ・エルエルシー 薬事錠剤の認識及び確認システム
JP2004234132A (ja) * 2003-01-28 2004-08-19 Matsushita Electric Works Ltd 粒状物体の検査装置およびその検査方法
JP2006334062A (ja) * 2005-06-01 2006-12-14 Tosho Inc 錠剤計数監査装置
JP2007051094A (ja) * 2005-08-18 2007-03-01 Teijin Pharma Ltd 複数の薬物を分離して保持する錠剤

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100650285B1 (ko) * 2005-05-25 2006-11-27 (주)제이브이엠 약포 검사시스템
KR101123656B1 (ko) * 2008-10-08 2012-03-21 (주)제이브이엠 약포 검사장치
JP4755714B2 (ja) * 2009-11-17 2011-08-24 株式会社湯山製作所 薬剤払出装置

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003517335A (ja) * 1998-07-30 2003-05-27 コントラック・テクノロジーズ・エルエルシー 薬事錠剤の認識及び確認システム
JP2000354620A (ja) * 1999-06-15 2000-12-26 Yuyama Manufacturing Co Ltd 薬剤分包装置
JP2004234132A (ja) * 2003-01-28 2004-08-19 Matsushita Electric Works Ltd 粒状物体の検査装置およびその検査方法
JP2006334062A (ja) * 2005-06-01 2006-12-14 Tosho Inc 錠剤計数監査装置
JP2007051094A (ja) * 2005-08-18 2007-03-01 Teijin Pharma Ltd 複数の薬物を分離して保持する錠剤

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105307622A (zh) * 2013-06-21 2016-02-03 富士胶片株式会社 分包药剂检查装置及方法
EP3011946A4 (en) * 2013-06-21 2016-06-29 Fujifilm Corp INSPECTION DEVICE FOR PACKAGED MEDICAMENTS AND METHOD THEREFOR
US9904992B2 (en) 2013-06-21 2018-02-27 Fujifilm Corporation Packeted drug inspection device and method
WO2020044933A1 (ja) 2018-08-31 2020-03-05 富士フイルム富山化学株式会社 対象物照合装置及び対象物照合方法
JPWO2020044933A1 (ja) * 2018-08-31 2021-08-10 富士フイルム富山化学株式会社 対象物照合装置及び対象物照合方法
JP7112500B2 (ja) 2018-08-31 2022-08-03 富士フイルム富山化学株式会社 対象物照合装置及び対象物照合方法
US11494581B2 (en) 2018-08-31 2022-11-08 Fujifilm Toyama Chemical Co., Ltd. Object collating device and object collating method

Also Published As

Publication number Publication date
JP5422062B2 (ja) 2014-02-19
US20130170732A1 (en) 2013-07-04
JPWO2013021543A1 (ja) 2015-03-05

Similar Documents

Publication Publication Date Title
WO2013021543A1 (ja) 薬包体監査システム
US9994347B2 (en) Medicine inspection device and medicine packaging system
US9836841B2 (en) System and method for packaged medicament inspection
US10726285B2 (en) Medicine audit apparatus, method, and program
CN113449532B (zh) 检测包裹的方法、装置、计算设备、物流系统及存储介质
US20210015711A1 (en) Medicine verification device and medicine verification method
US11887293B2 (en) Medicine verification device and boundary recess detection method
JP2016523405A (ja) 錠剤の識別における印の解析を使用したシステム及び方法
WO2019058532A1 (ja) 製品情報取得システム、及び製品情報の取得方法
CN116824175A (zh) 药品分拣检验的方法及装置、存储介质及电子设备
CN107615394A (zh) 配药监查装置、配药监查方法、程序及记录介质
US20210019886A1 (en) Medicine verification device and medicine verification method
JP2016085756A (ja) 情報読取装置及びプログラム
JP6557525B2 (ja) 検品方法および検品システム
US11594322B2 (en) Dispensing audit support apparatus and dispensing audit support method
JP4639840B2 (ja) 粒状物体の検査方法及びそれを用いる検査装置
JP7448861B2 (ja) 薬剤仕分装置、及び、薬剤仕分装置の制御方法
JP2006078421A (ja) パターン欠陥検出装置及びその方法
JP6567460B2 (ja) 位置検出装置、位置検出方法、位置検出プログラム
JP2014095652A (ja) 薬剤認識方法および薬剤認識装置
CN117114038A (zh) 一种用于药品分包机的自动核对方法及系统
JP2022010961A (ja) 検知装置及び検知プログラム
JP2009150721A (ja) 欠品検査方法および欠品検査装置
JP2014213069A (ja) 錠剤検査装置及び包装装置

Legal Events

Date Code Title Description
ENP Entry into the national phase

Ref document number: 2012550658

Country of ref document: JP

Kind code of ref document: A

WWE Wipo information: entry into national phase

Ref document number: 13822737

Country of ref document: US

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

Ref document number: 12821932

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 12821932

Country of ref document: EP

Kind code of ref document: A1