JP2020121057A - Medicine inspection device - Google Patents

Medicine inspection device Download PDF

Info

Publication number
JP2020121057A
JP2020121057A JP2019016396A JP2019016396A JP2020121057A JP 2020121057 A JP2020121057 A JP 2020121057A JP 2019016396 A JP2019016396 A JP 2019016396A JP 2019016396 A JP2019016396 A JP 2019016396A JP 2020121057 A JP2020121057 A JP 2020121057A
Authority
JP
Japan
Prior art keywords
inspection
medicine
drug
sachet
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2019016396A
Other languages
Japanese (ja)
Other versions
JP2020121057A5 (en
JP7200710B2 (en
Inventor
光一 北村
Koichi Kitamura
光一 北村
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yuyama Manufacturing Co Ltd
Original Assignee
Yuyama Manufacturing Co Ltd
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 Yuyama Manufacturing Co Ltd filed Critical Yuyama Manufacturing Co Ltd
Priority to JP2019016396A priority Critical patent/JP7200710B2/en
Publication of JP2020121057A publication Critical patent/JP2020121057A/en
Publication of JP2020121057A5 publication Critical patent/JP2020121057A5/ja
Application granted granted Critical
Publication of JP7200710B2 publication Critical patent/JP7200710B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

To provide a medicine inspection device capable of minimizing a time required for inspection, while performing inspection focusing on whether external appearances of the front face and the rear face of medicines stored in a package are same or not.SOLUTION: A medicine inspection device 10 includes an inspection part 30, an imaging part 40, and a control unit 60, derives external appearance information relating to external appearance of medicines in a package on the basis of images obtained by the imaging part 40, and can inspect whether the types of the medicines are as prescribed or not on the basis of the external appearance information. When inspecting a package group including common medicines to be packaged in common in the respective packages, on the condition that external appearance information of a first surface of the medicine subjected to the external appearance inspection is derived from at least one image of packages constituting a package group, and external appearance information of a second surface is derived on an image of the residual packages, it is determined that the medicine subjected to the external appearance inspection is packaged in each of the packages constituting the package group.SELECTED DRAWING: Figure 12

Description

本発明は、薬剤の数量を鑑査するための薬剤鑑査装置に関する。 The present invention relates to a medicine inspection device for inspecting the quantity of medicines.

従来、下記特許文献1に開示されているような錠剤検査システムが提供されている。下記特許文献1に開示されている錠剤検査システムでは、粒状やカプセル状などの形状の固形薬剤を一包分ずつ分包紙に分包し、供給することが可能とされている。また、下記特許文献1に係る錠剤検査システムでは、分包紙に分包された状態において固形薬剤を撮像し、これにより得られた画像に基づいて固形薬剤の数量を鑑査することができる構成とされている。 Conventionally, a tablet inspection system as disclosed in Patent Document 1 below has been provided. In the tablet inspection system disclosed in Patent Document 1 below, it is possible to package and supply a solid medicine in the form of granules, capsules, or the like into a wrapping paper. Further, in the tablet inspection system according to Patent Document 1 below, it is possible to take an image of the solid medicine in a state in which the solid medicine is packaged and to inspect the quantity of the solid medicine based on the image obtained thereby. Has been done.

特開平7−200770号公報JP-A-7-200770

ここで本発明者らが、鑑査精度の更なる向上を図ることを検討したところ、多くの薬剤には刻印や識別コード等の印が表面及び裏面に付されおり、これを活用すれば鑑査精度の向上に貢献できるとの知見を得た。具体的には、例えば上述した特許文献1に係る錠剤検査システム等においては、固形薬剤が分包紙により形成された分包袋を撮影して得られた画像に基づいて分包されている薬剤の色や形、数量を導出して鑑査できるものとされている。しかしながら、特許文献1の錠剤検査システム等においては、例えば刻印や識別コード等の印が表面及び裏面に付されたことによる外観の違い等、薬剤の表面及び裏面の外観の異同に着目した鑑査がなされていない。そのため、従来技術においては、人手による鑑査を行わねばならないケースが多くなる傾向にあった。 Here, the present inventors have studied to further improve the inspection accuracy, and many drugs have markings such as engraved marks and identification codes on the front surface and the back surface. We obtained the knowledge that it can contribute to the improvement of. Specifically, in the tablet inspection system and the like according to Patent Document 1 described above, for example, a medicine packaged based on an image obtained by photographing a sachet in which a solid medicine is formed by a sachet paper. It is said that the color, shape, and quantity of can be derived and inspected. However, in the tablet inspection system and the like of Patent Document 1, for example, an inspection focusing on the difference in the appearance of the front surface and the back surface of the drug, such as the difference in the appearance due to markings such as engraved marks and identification codes on the front surface and the back surface, is performed. Not done. Therefore, in the conventional technology, there is a tendency that the number of cases in which manual inspection must be performed increases.

ここで、本発明者らが全ての分包袋に収容されている薬剤について、薬剤の表面及び裏面の外観に着目した鑑査を行おうとしたところ、鑑査に要する時間が長くなってしまうという懸念が生じた。かかる知見に基づき、薬剤の表面及び裏面の外観に着目した鑑査を行いつつ、鑑査に要する時間をより一層短縮したいという、新たな課題が生じた。 Here, for the drug contained in all the sachets, the present inventors tried to perform an inspection focusing on the appearance of the front and back surfaces of the drug, and there is a concern that the time required for the inspection will be long. occured. Based on such knowledge, a new problem has arisen, in which it is desired to further reduce the time required for inspection while performing inspection while paying attention to the appearance of the front and back surfaces of the drug.

そこで、本発明は、分包袋に収容された薬剤について表面及び裏面の外観の異同に着目した鑑査を行いつつ、鑑査に要する時間を最小限に抑制可能な薬剤鑑査装置の提供を目的とした。 Therefore, the present invention has an object to provide a drug inspection device capable of suppressing the time required for the inspection to a minimum while performing an inspection focusing on the difference in the appearance of the front surface and the back surface of the drug contained in the sachet. ..

(1)上述した課題を解決すべく提供される本発明の薬剤鑑査装置は、薬剤を収容した分包袋が配置される鑑査部と、前記鑑査部に配置された前記分包袋を撮影可能な撮影部と、鑑査の対象となる薬剤についての情報を蓄積した薬剤情報データベースと、前記撮影部によって得られた画像に基づいて、前記分包袋に収容されている前記薬剤の外観に関する外観情報を導出し、分包されている前記薬剤の種類及び数量が処方通りであるかを前記外観情報、及び前記薬剤情報データベースに登録されている情報に基づいて鑑査する外観鑑査を実行可能とされた鑑査処理部とを備えており、複数の前記分包袋からなり、前記分包袋のそれぞれに共通して分包されるべき共通薬剤が含まれている分包袋群について鑑査する場合に、前記鑑査処理部が、前記共通薬剤を前記外観鑑査の対象とし、前記分包袋群をなす前記分包袋をそれぞれ、前記撮影部によって前記鑑査部に対して一の方向から撮影した画像を用いて導出された外観情報、及び前記薬剤情報データベースに登録されている情報のうち、分包される可能性がある薬剤についての情報に基づいて前記外観鑑査を行うものであり、鑑査対象とされた前記分包袋群をなす前記分包袋のうち少なくとも一つについての前記画像から前記外観鑑査の対象とされた前記共通薬剤の第一の向きについての前記外観情報が導出され、残りの前記分包袋についての前記画像に前記共通薬剤の第一の向きを除く前記共通薬剤の第二の向きについての外観情報が導出されることを条件として、前記共通薬剤が、前記分包袋群をなす前記分包袋のそれぞれに分包されているとの判断を行うことを特徴とするものである。 (1) The medicine inspection device of the present invention provided to solve the above-mentioned problem can photograph the inspection unit in which the sachet containing the medicine is arranged and the sachet arranged in the inspection unit. Appearance information on the appearance of the medicine contained in the sachet based on the image obtained by the photographing section, the medicine information database accumulating information about the medicine to be inspected, and the photographing section. It is possible to perform an appearance inspection to inspect whether or not the type and quantity of the packaged drug is as prescribed based on the appearance information and the information registered in the drug information database. An inspection processing unit is provided, which is composed of a plurality of sachets, and in the case of inspecting a sachet group containing a common drug to be commonly packaged in each of the sachets, The inspection processing unit uses the common drug as an object of the appearance inspection, and the sachets forming the sachet group are each photographed by the photographing unit from one direction with respect to the inspection unit. The appearance inspection is performed based on the appearance information derived as described above and the information registered in the drug information database about the drug that may be packaged, and was subjected to inspection. From the image of at least one of the sachets forming the sachet group, the appearance information about the first orientation of the common drug that is the subject of the appearance inspection is derived, and the remaining contents The common drug constitutes the sachet group, provided that appearance information about the second direction of the common drug other than the first direction of the common drug is derived in the image of the packaging bag. It is characterized in that it is determined that each of the sachets is packaged.

本発明の薬剤鑑査装置では、分包袋にそれぞれ分包されている種類が共通している薬剤を外観鑑査の対象として鑑査する場合に、鑑査対象とされた分包袋群をなす分包袋のうち少なくとも一つについての画像から、外観鑑査の対象とされた共通薬剤の第一の向き(例えば表面)についての外観情報が導出され、残りの分包袋についての画像から、前述の第一の向きを除く第二の向き(例えば裏面)についての外観情報が導出されることを、外観鑑査の対象とされた薬剤が、分包袋群をなす分包袋のそれぞれに分包されているとの判断を行うための判定条件としている。また、本発明の薬剤鑑査装置では、薬剤情報データベースに登録されている情報のうち、分包される可能性がある薬剤についての情報を参照して外観鑑査を行うこととしており、外観鑑査を高速化しつつ、高い鑑査精度を確保できる。従って、本発明によれば、分包袋に収容された薬剤について第一の向き及び第二の向きの外観の異同に着目し、信憑性の高い鑑査を行いつつ、鑑査に要する時間を最小限に抑制可能な薬剤鑑査装置を提供できる。 In the drug inspection device of the present invention, in the case of inspecting a drug having a common type packaged in each of the sachets as a target of the appearance inspection, the sachets forming a sachet group to be inspected. From at least one of the images, the appearance information about the first orientation (for example, the surface) of the common drug subjected to the appearance inspection is derived, and from the images of the remaining sachets, the above-mentioned first That the external appearance information is derived for the second direction (for example, the back side) except the direction of the medicine, the medicine that is the target of the appearance inspection is packaged in each of the sachets forming the sachet group. Is used as a determination condition for making a determination. Further, in the drug inspection device of the present invention, out of the information registered in the drug information database, the appearance inspection is performed by referring to the information about the drug that may be packaged, and the appearance inspection is performed at high speed. It is possible to secure high inspection accuracy while converting. Therefore, according to the present invention, while paying attention to the difference in appearance between the first direction and the second direction regarding the drug contained in the sachet, while performing a highly credible inspection, the time required for the inspection is minimized. It is possible to provide a drug inspection device that can be suppressed.

また、本発明の薬剤鑑査装置では、鑑査部に対して一の方向から撮影部によって撮影された画像が、外観情報を導出するために用いられる。そのため、本発明の薬剤鑑査装置では、一方の面が透明であり、他方の面が不透明な分包袋に分包された薬剤であったとしても、分包袋の透明な面の側から撮影を行うことにより、外観鑑査の対象とされた薬剤が、分包袋群をなす分包袋のそれぞれに分包されているか否かの鑑査を行える。 Further, in the medicine inspection device of the present invention, the image photographed by the photographing unit from the one direction with respect to the inspection unit is used to derive the appearance information. Therefore, in the medicine inspection device of the present invention, even if the medicine is packaged in a sachet whose one surface is transparent and the other surface is opaque, the image is taken from the transparent surface side of the sachet. By performing the above, it is possible to inspect whether or not the medicine subjected to the appearance inspection is packaged in each of the sachets forming the sachet group.

なお、本発明及び以下の説明において、「外観」とは、色彩や、形状、大きさ、模様(印刷情報、刻印、割線等の薬剤に付された情報を含む)等を指す。 In the present invention and the following description, the “appearance” refers to colors, shapes, sizes, patterns (including print information, information such as markings, marking lines, and the like attached to a medicine).

(2)本発明の薬剤鑑査装置は、前記分包袋群が、分包されている前記薬剤の数量及び種類が同一である複数の前記分包袋からなるものの鑑査において、好適に利用できる。 (2) The medicine inspection device of the present invention can be suitably used in an inspection of the sachet group consisting of a plurality of sachets in which the quantity and type of the medicines packaged are the same.

(3)本発明の薬剤鑑査装置は、前記外観情報が、鑑査対象とされた前記薬剤の形状に関する情報、模様に関する情報、色彩に関する情報、又はこれらの組み合わせに関する情報であると良い。 (3) In the medicine inspection device of the present invention, it is preferable that the appearance information is information about the shape of the medicine to be inspected, information about a pattern, information about color, or information about a combination thereof.

かかる構成によれば、分包袋に収容された薬剤について表面及び裏面の形状や、模様、色彩、又はこれらの組み合わせの異同に着目した外観鑑査を行うことができる。従って、本発明の薬剤鑑査装置によれば、より一層高精度な外観鑑査を行える。なお、薬剤に付された「模様」とは、例えば薬剤に付された刻印や割線、印刷により付された文字、図形、記号、コード等を指し、平面的(二次元的)なもの、立体的なもの(三次元的なもの)を含むものである。また、「形状」とは、薬剤の剤形や大きさ等、薬剤の外観をなす形全般を指す。 According to this configuration, it is possible to perform an appearance inspection focusing on the difference in the shapes, patterns, colors, or combinations of the front surface and the back surface of the medicine contained in the sachet. Therefore, according to the medicine inspection device of the present invention, the appearance inspection can be performed with higher accuracy. In addition, the "pattern" attached to the medicine refers to, for example, a marking or a dividing line attached to the medicine, a character, a figure, a symbol, a code or the like attached by printing, and is a two-dimensional object (three-dimensional) or a three-dimensional object. Includes physical (three-dimensional) objects. Further, the "shape" refers to the overall shape of the drug, such as the drug form and size.

本発明の薬剤鑑査装置は、前記外観情報が、鑑査対象とされた前記薬剤に付された印であると良い。 In the medicine inspection device of the present invention, the appearance information may be a mark attached to the medicine to be inspected.

かかる構成によれば、鑑査対象とされた薬剤に付された刻印や識別コード等の印の異同に着目した外観鑑査を行える。従って、本発明の薬剤鑑査装置によれば、一層高精度な外観鑑査を行える。 According to this configuration, it is possible to perform an appearance inspection focusing on the difference in markings such as markings and identification codes attached to the medicine to be inspected. Therefore, according to the medicine inspection device of the present invention, the appearance inspection can be performed with higher accuracy.

(4)本発明の薬剤鑑査装置は、前記分包袋として、一方の面が透明であり、他方の面が不透明なものが供給されることを条件として、前記鑑査部に配置された前記分包袋を前記透明な面側から撮影した画像が前記外観鑑査に用いられるものであると良い。 (4) In the medicine inspection device of the present invention, as the packaging bag, the one disposed on the inspection section on condition that one surface is transparent and the other surface is opaque. An image obtained by photographing the packaging bag from the transparent surface side is preferably used for the appearance inspection.

かかる構成によれば、一方の面が透明であり、他方の面が不透明な分包袋に分包された薬剤であったとしても、外観鑑査の対象とされた薬剤が、分包袋群をなす分包袋のそれぞれに分包されているか否かを精度良く鑑査できる。 According to such a configuration, one side is transparent, and even if the other side is a medicine packaged in an opaque sachet, the drug subjected to the appearance inspection is a sachet group. It is possible to accurately inspect whether each of the eggplant sachets is packaged.

(5)本発明の薬剤鑑査装置は、前記鑑査処理部が、前記撮影部によって得られた画像に基づいて、前記分包袋に収容されている前記薬剤の数量が処方通りであるかを鑑査する数量鑑査を実行可能なものであると良い。 (5) In the drug inspection device of the present invention, the inspection processing unit inspects whether the quantity of the drug contained in the sachet is as prescribed based on the image obtained by the imaging unit. It is desirable that the quantity inspection can be performed.

かかる構成によれば、分包袋に分包されている数量の観点からも鑑査を行えるため、より一層鑑査精度を向上させることができる。 According to such a configuration, the inspection can be performed from the viewpoint of the number of pieces packaged in the sachet, so that the inspection accuracy can be further improved.

本発明によれば、分包袋に収容された薬剤について表面及び裏面の外観の異同に着目した鑑査を行いつつ、鑑査に要する時間を最小限に抑制可能な薬剤鑑査装置を提供できる。 ADVANTAGE OF THE INVENTION According to this invention, the chemical|medical agent inspection apparatus which can suppress the time required for inspection to the minimum while performing the inspection which paid attention to the difference in the external appearance of the front surface and the back surface about the chemical|medical agent accommodated in the sachet.

(a)は本発明の一実施形態に係る薬剤鑑査装置の斜視図であり、(b)は制御装置を示すブロック図である。(A) is a perspective view of a medicine inspection device according to an embodiment of the present invention, and (b) is a block diagram showing a control device. 図1(a)に示した薬剤鑑査装置の内部構造を示した斜視図である。FIG. 2 is a perspective view showing an internal structure of the medicine inspection device shown in FIG. 図2のA−A断面図である。FIG. 3 is a sectional view taken along line AA of FIG. 2. 薬品情報検出制御の各段階において得られる画像の一例を示した画像図である。It is an image diagram showing an example of an image obtained at each stage of drug information detection control. 薬品情報検出制御に係るフローチャートである。It is a flow chart which concerns on drug information detection control. 共通薬剤が含まれている分包袋群についての鑑査方法の一例を示したフローチャートである。It is the flowchart which showed an example of the inspection method about the sachet group containing a common medicine. 種類鑑査の実施方法の一例を示したフローチャートである。It is the flowchart which showed an example of the implementation method of type inspection. 模様鑑査の実施方法の一例を示したフローチャートである。It is the flowchart which showed an example of the implementation method of the pattern inspection. 総合判定処理の実施方法の一例を示したフローチャートである。It is the flowchart which showed an example of the implementation method of comprehensive determination processing. (a)は薬剤情報データベースに登録されてるマスターデータの一例を模式的に示したもの、(b)は薬剤情報データベースにおける採用薬と非採用薬との関係を示した模式図である。(A) is a schematic diagram showing an example of master data registered in the drug information database, and (b) is a schematic diagram showing a relationship between an adopted drug and a non-adopted drug in the drug information database. 共通薬剤が含まれている分包袋群についての鑑査方法について説明するための説明図である。It is an explanatory view for explaining an inspection method about a sachet group containing a common medicine. 共通薬剤が含まれている分包袋群についての鑑査方法について説明するための説明図である。It is an explanatory view for explaining an inspection method about a sachet group containing a common medicine.

以下、本発明の一実施形態に係る薬剤鑑査装置10について、図面を参照しつつ詳細に説明する。なお、以下の説明においては、薬剤鑑査装置10の構成、及び薬剤鑑査処理について大略を説明した後、薬剤鑑査装置10において詳細の説明が必要な部分について別途説明する。 Hereinafter, a drug inspection device 10 according to an embodiment of the present invention will be described in detail with reference to the drawings. In the following description, the configuration of the drug inspection device 10 and the drug inspection process will be roughly described, and then the parts of the drug inspection device 10 that require detailed description will be separately described.

≪薬剤鑑査装置10の構成の大略について≫
薬剤鑑査装置10は、分包紙に一服用分ずつ分包された状態で供給された鑑査対象の薬剤の数量及び種類を、一包ずつ鑑査する装置である。図1に示すように、薬剤鑑査装置10は、筐体10aの側面に鑑査対象の薬剤を導入するための導入部10bを有し、正面に操作パネル10cを有する。薬剤は、透光性を有する分包紙によって包装され、外部から視認可能な状態で薬剤鑑査装置10に供給される。また、薬剤鑑査装置10は、一服用分の薬剤を包装した分包袋が複数、連続するように形成された分包袋連続体の状態で分包袋を供給し、各分包袋について順次鑑査を行うことができる。
<<About the configuration of the drug inspection device 10>>
The medicine inspection device 10 is a device for inspecting the quantity and type of the medicine to be inspected, which is supplied in a state of being packaged in a package paper one dose at a time, one package at a time. As shown in FIG. 1, the medicine inspection device 10 has an introduction portion 10b for introducing a medicine to be inspected on a side surface of a housing 10a, and an operation panel 10c on the front surface. The medicine is packaged in a translucent packaging paper, and is supplied to the medicine inspection device 10 in a state where it is visible from the outside. In addition, the medicine inspection device 10 supplies the sachets in the state of a plurality of sachets formed by continuously packaging the medicine for one dose, and continuously supplies each sachet. An inspection can be conducted.

図1〜図3に示すように、薬剤鑑査装置10は、搬送手段20、鑑査部30、撮影部40、照明装置50、及び制御装置60等を備えている。搬送手段20は、薬剤を分包してなる分包袋連続体を取り込み、搬送するためのものである。搬送手段20は、従来公知のベルトコンベア、ローラコンベア等によって形成することが可能である。本実施形態では、搬送手段20としてベルトコンベアが採用されている。搬送手段20は、鑑査部30に対して搬送方向上流側に設けられた供給検知装置(図示せず)により分包紙によって形成された分包袋連続体が検知された場合に、後に詳述する制御装置60の制御の下で動作し、分包袋連続体を順次下流側に向けて搬送する。また、搬送手段20は、下流端に設けられた排出検知装置(図示せず)により、分包紙の分包袋連続体の末端が鑑査部30よりも下流側に排出されたことが確認された場合に、動作を停止する。 As shown in FIGS. 1 to 3, the drug inspection device 10 includes a transportation unit 20, an inspection unit 30, an imaging unit 40, an illumination device 50, a control device 60, and the like. The conveying means 20 is for taking in and conveying the continuous body of sachets in which the medicine is packaged. The conveying means 20 can be formed by a conventionally known belt conveyor, roller conveyor, or the like. In the present embodiment, a belt conveyor is used as the transporting means 20. The transporting means 20 will be described in detail later when a continuous body of sachets formed by a sachet is detected by a supply detection device (not shown) provided on the upstream side in the transport direction with respect to the inspection unit 30. It operates under the control of the control device 60 for carrying out the continuous body of sachets sequentially toward the downstream side. Further, in the transporting means 20, it is confirmed by the discharge detection device (not shown) provided at the downstream end that the end of the continuous body of the packaging sachet of the packaging paper has been discharged to the downstream side of the inspection unit 30. If it does, the operation is stopped.

鑑査部30は、鑑査対象の薬剤が分包袋に収容された状態で配置される部分である。図3に示すように、鑑査部30は、分包袋が配置される撮影用ステージ32を有する。撮影用ステージ32は、透光性を有する板体によって形成されており、一包分の分包袋を搭載可能な大きさを有する。撮影部40は、鑑査部30に配置された分包袋及びこれに収容されている薬剤を撮影するためのものである。図2に示すように、撮影部40は、鑑査部30の真上に配置されている。 The inspection unit 30 is a portion arranged in a state where the medicine to be inspected is contained in the sachet. As shown in FIG. 3, the inspection unit 30 has an imaging stage 32 on which a sachet is arranged. The imaging stage 32 is formed of a translucent plate, and has a size capable of mounting a sachet for one packet. The photographing unit 40 is for photographing the sachet arranged in the inspection unit 30 and the medicine contained in the sachet. As shown in FIG. 2, the imaging unit 40 is arranged right above the inspection unit 30.

照明装置50は、鑑査部30に配置された分包袋を照明するためのものである。照明装置50は、正面側照明装置52(図2参照)と背面側照明装置54(図3参照)とを有する。正面側照明装置52は、鑑査部30に配置された分包袋を撮影部40側、すなわち鑑査部30の上方側から照射するためのものである。正面側照明装置52は、いかなる照明装置によって構成されていても良いが、本実施形態では拡散光を発生させることが可能な照明装置が用いられている。背面側照明装置54は、鑑査部30に配置された分包袋を背面側、すなわち鑑査部30を介して撮影部40とは反対側(下方)から照射するためのものである。背面側照明装置54は、撮影用ステージ32の略全体を照明領域とするものであり、撮影用ステージ32上に搭載された分包袋全体を背面側から照明することができる。 The illumination device 50 is for illuminating the sachet arranged in the inspection unit 30. The lighting device 50 includes a front lighting device 52 (see FIG. 2) and a back lighting device 54 (see FIG. 3). The front illumination device 52 is for irradiating the sachet arranged in the inspection unit 30 from the imaging unit 40 side, that is, from the upper side of the inspection unit 30. The front side lighting device 52 may be composed of any lighting device, but in the present embodiment, a lighting device capable of generating diffused light is used. The back side illumination device 54 is for irradiating the sachet arranged in the inspection unit 30 from the back side, that is, the side opposite to the imaging unit 40 (below) via the inspection unit 30. The back side illumination device 54 has substantially the entire shooting stage 32 as an illumination area, and can illuminate the entire packaging bag mounted on the shooting stage 32 from the back side.

制御装置60は、コンピュータに対してソフトウェアをインストールすることにより、コンピュータ上に実現されている。制御装置60は、各分包袋に収容されている薬剤が処方通りであるかを鑑査する薬剤鑑査処理の処理を実行する鑑査処理部としての機能等を発揮できる。すなわち、制御装置60は、例えば、撮影部40によって得られた画像に基づいて、分包袋に収容されている薬剤数量を導出できる。また、制御装置60は、分包袋に収容されている薬剤の外観に関する外観情報を導出し、分包されている薬剤の種類が処方通りであるかを外観情報に基づいて鑑査する外観鑑査を行い、処方通りの種類の薬剤が分包されているかを鑑査できる。 The control device 60 is realized on a computer by installing software in the computer. The control device 60 can exert a function as an inspection processing unit that executes processing of a drug inspection processing that inspects whether the medicine contained in each sachet is as prescribed. That is, the control device 60 can derive the number of medicines contained in the sachet based on the image obtained by the imaging unit 40, for example. In addition, the control device 60 derives appearance information regarding the appearance of the medicine contained in the sachet, and performs an appearance inspection to inspect whether the type of the medicine contained in the sachet is as prescribed based on the appearance information. It is possible to inspect whether or not the prescribed type of drug is packaged.

具体的には、制御装置60は、薬剤の画像をマスター画像として蓄積した薬剤情報データベース62を備えている。制御装置60は、薬剤情報データベース62に登録されているマスター画像と、撮影部40によって取得された薬剤の画像とをマッチングする処理(画像マッチング処理)を実行し、分包袋に処方通りに薬剤が包装されているか否かを鑑査する薬剤鑑査処理を実行できる。薬剤鑑査処理は、分包袋に分包されている薬剤の種類についての鑑査(薬種照合鑑査)や、分包袋に包装されている薬剤の数量についての鑑査(数量照合鑑査)等、様々な観点の鑑査をいずれか一つ単独で行うものであっても、複数組み合わせて行うものであっても良い。 Specifically, the control device 60 includes a drug information database 62 that stores drug images as master images. The control device 60 executes a process (image matching process) of matching the master image registered in the drug information database 62 with the image of the drug acquired by the imaging unit 40, and the drug is packaged in the sachet according to the prescription. A drug inspection process for inspecting whether or not is packaged can be executed. There are various types of drug inspection processing, such as inspection of the types of drugs packaged in sachets (drug type verification) and inspection of the quantity of drugs packaged in sachets (quantity verification). Any one of the viewpoint inspections may be performed alone or a plurality of inspections may be performed in combination.

薬剤鑑査処理において、画像マッチング処理のために必要とされる分包袋内に収容されている薬剤の画像や、薬剤に関する情報(大きさや形状、刻印等の情報)は、種々の方法により取得することができるが、例えば、例えば以下に例示する薬品情報検出制御のような方法により行うと良い。 In the drug inspection process, the image of the drug contained in the sachet that is required for the image matching process and the information about the drug (size, shape, stamp, etc.) are acquired by various methods. However, for example, a method such as the drug information detection control exemplified below may be performed.

≪薬品情報検出制御≫
薬品情報検出制御は、正面側照明装置52をオン状態として撮影部40により撮影された正面側照明画像と、背面側照明装置54をオン状態として撮影部40により撮影された背面側照明画像とを用いて実施される。正面側照明画像は、図4(a)に示すように分包袋を正面視した状態の画像であり、薬剤及び分包袋に付されている印字が写った画像となる。また、背面側照明画像は、図4(b)に示すように薬剤の影と分包袋に付されている印字とが写った画像となる。制御装置60は、正面側照明画像及び背面側照明画像に基づき、分包袋内に収容されている薬剤の画像を抽出し、この薬剤の画像に基づいて薬剤情報を検出する。
<<Control of drug information detection>>
The medicine information detection control includes a front side illumination image captured by the image capturing unit 40 with the front side illumination device 52 turned on and a back side illumination image captured by the image capturing unit 40 with the back side illumination device 54 turned on. It is carried out using. The front side illumination image is an image of the sachet as viewed from the front as shown in FIG. 4A, and is an image in which the medicine and the print attached to the sachet are reflected. The back side illumination image is an image in which the shadow of the medicine and the print attached to the sachet are shown, as shown in FIG. 4(b). The control device 60 extracts the image of the medicine contained in the sachet based on the front side illumination image and the back side illumination image, and detects the medicine information based on the image of the medicine.

図5に示すように、薬品情報検出制御は、大別して薬剤候補領域抽出工程(ステップ1−1)、印字候補領域抽出工程(ステップ1−2)、印字領域特定工程(ステップ1−3)、薬剤領域導出工程(ステップ1−4)、及び鑑査領域規定工程(ステップ1−5)の各工程を経て実施される。 As shown in FIG. 5, the drug information detection control is roughly classified into a drug candidate area extracting step (step 1-1), a print candidate area extracting step (step 1-2), a print area specifying step (step 1-3), It is carried out through each process of the medicine region deriving process (step 1-4) and the inspection region defining process (step 1-5).

ステップ1−1において実施される薬剤候補領域抽出工程は、撮影部40により取得した画像から、薬剤が含まれている領域を薬剤候補領域A(図4(c)参照)として抽出する工程である。薬剤候補領域抽出工程は、例えば、背面側照明画像をグレイ画像化した画像を用いる等、様々な画像処理技術を用いて実現すると良い。また、ステップ1−2において実施される印字候補領域抽出工程は、分包袋に付された印字が含まれている領域を印字候補領域Bとして抽出する工程である。印字候補領域抽出工程は、例えば、正面側照明画像を活用する等して、様々な画像処理により実現すると良い。 The drug candidate region extraction step performed in step 1-1 is a process of extracting a region containing a drug as a drug candidate region A (see FIG. 4C) from the image acquired by the imaging unit 40. .. The drug candidate region extracting step may be realized by using various image processing techniques such as using an image obtained by converting the back side illumination image into a gray image. Further, the print candidate area extraction step performed in step 1-2 is a step of extracting the area including the print attached to the sachet as the print candidate area B. The print candidate area extraction step may be realized by various image processings, for example, by utilizing the front side illumination image.

ステップ1−3において実施される印字領域特定工程は、印字候補領域B(図4(e)参照)に含まれている印字に相当する領域を印字領域Cとして特定する工程である。印字領域特定工程は、例えば背面側照明画像における輝度分布に基づき画像処理すること等により行うと良い。また、ステップ1−4において実施される薬剤領域導出工程は、薬剤領域Xを導出する工程である。薬剤領域Xの導出は、例えば、ステップ1−1において導出された薬剤候補領域Aから、ステップ1−3において導出された印字領域Cを差し引く処理により行うと良い。また、ステップ1−5において実施される鑑査領域規定工程は、薬剤領域導出工程において導出された薬剤領域Xに基づき、鑑査対象となる領域を規定する工程である。 The print area specifying step performed in step 1-3 is a step of specifying the area corresponding to the print included in the print candidate area B (see FIG. 4E) as the print area C. The printing area specifying step may be performed by, for example, image processing based on the brightness distribution in the back side illumination image. Further, the medicine region deriving step performed in step 1-4 is a step of deriving the medicine region X. The drug area X may be derived by, for example, a process of subtracting the print area C derived in step 1-3 from the drug candidate area A derived in step 1-1. Further, the inspection area defining step performed in step 1-5 is a step of defining an area to be inspected based on the medicine area X derived in the medicine area deriving step.

上述したようにして、撮影部40により撮影された画像から、鑑査対象となる分包袋に収容されている薬剤の画像領域を画定することにより、薬剤の画像や、薬剤に関する情報(大きさや形状、刻印等の情報)を取得することができる。これにより得られた画像や情報に基づいて画像マッチング処理等を行うことにより、薬剤鑑査処理を行うことができる。 As described above, by defining the image area of the medicine contained in the sachet to be inspected from the image photographed by the photographing unit 40, the image of the medicine and information on the medicine (size and shape) can be obtained. , Information such as stamps) can be acquired. The drug inspection process can be performed by performing an image matching process or the like based on the image or information obtained in this way.

以下、薬剤鑑査装置10において詳細の説明が必要な部分について、順を追って説明する。 Hereinafter, parts of the medicine inspection device 10 that require detailed description will be described in order.

薬剤鑑査装置10は、複数の分包袋からなり、分包袋のそれぞれに共通して分包されるべき共通薬剤が含まれている分包袋群についての鑑査を、例えば、上述した薬品情報検出制御による結果を活用しつつ、図6〜図9に示すようなフローに則って行うことができる。このような鑑査方法は、例えば、分包されている薬剤の数量及び種類が同一である複数の分包袋からなる分包袋群の鑑査等において好適である。以下、図6〜図9を参照しつつ、さらに詳細に説明する。 The medicine inspection device 10 is composed of a plurality of sachets, and performs inspection on a sachet group containing a common medicine to be commonly packaged in each sachet, for example, the medicine information described above. This can be performed according to the flow shown in FIGS. 6 to 9 while utilizing the result of the detection control. Such an inspection method is suitable, for example, for inspecting a sachet group consisting of a plurality of sachets in which the quantity and type of medicines to be packaged are the same. Hereinafter, further details will be described with reference to FIGS. 6 to 9.

(ステップ2−1)
上述した図6に示すフローに則って鑑査を行う場合には、先ずステップ2−1において、鑑査対象である分包袋群を構成するN包分(Nは2以上の自然数)の分包袋のうち、1包目であることを認識すべく、制御装置60は、包数を示す変数n(nは1以上N以下の自然数)を1に設定する。分包袋群を構成する分包袋の包数Nは、薬剤分包装置から取得される情報や処方情報に基づいて設定される。その後、制御装置60は、フローをステップ2−2に進める。
(Step 2-1)
When the inspection is performed according to the flow shown in FIG. 6 described above, first, in step 2-1, the sachets of N packages (N is a natural number of 2 or more) forming the sachet group to be inspected. Among them, the control device 60 sets the variable n indicating the number of packages (n is a natural number of 1 or more and N or less) to 1 in order to recognize the first package. The number N of sachets forming the sachet group is set based on information acquired from the medicine packaging device and prescription information. After that, the control device 60 advances the flow to step 2-2.

(ステップ2−2)
ステップ2−2において、制御装置60は、n包目の分包袋に収容されている薬剤について、数量鑑査を行う。数量鑑査は、n包目の分包袋に収容されている薬剤の数量を導出し、処方データと照合することにより鑑査を行う。ステップ2−2の数量鑑査において薬剤の数量を導出する方法はいかなる方法によって行われても良いが、例えば、上述した薬品情報検出制御により薬剤の画像領域として画定された領域の数を算出することにより導出すると良い。ステップ2−2において数量鑑査が完了すると、制御装置60は、フローをステップ2−3に進める。
(Step 2-2)
In Step 2-2, the control device 60 performs a quantity inspection on the medicine contained in the nth package sachet. In the quantity inspection, the quantity of the medicine contained in the n-th sachet is derived and compared with the prescription data to perform the inspection. The method of deriving the quantity of the medicine in the quantity inspection in step 2-2 may be performed by any method. For example, by calculating the number of areas defined as the medicine image area by the medicine information detection control described above. It is good to derive by. When the quantity inspection is completed in step 2-2, the control device 60 advances the flow to step 2-3.

(ステップ2−3)
ステップ2−3において、制御装置60は、n包目の分包袋に収容されている薬剤の種類についての鑑査を行う。薬剤の種類についての鑑査は、様々な方法により行うことができるが、例えば、正面側照明装置52をオン状態として撮影部40により撮影された正面側照明画像を用い、後述する図7に示したフローに則って行うことで、薬剤の外観に基づいて薬剤の種類についての鑑査(外観鑑査)を活用して、種類の鑑査(種類鑑査)を行うと良い。また、種類鑑査を行う場合には、薬剤情報データベース62に登録されている情報のうち、分包される可能性がある薬剤(採用薬)についての情報に参照範囲を限定して外観鑑査を行い、分包される可能性のない薬剤(非採用薬)についての情報を参照範囲から外して外観鑑査を行うと良い(図10(b)の概念図参照)。具体的な鑑査フローとしては、例えば、後に詳述する図7の制御フロー等に則って薬剤の種類についての鑑査を行うと良い。薬剤の種類についての鑑査が完了すると、制御装置60は、フローをステップ2−4に進める。
(Step 2-3)
In step 2-3, the control device 60 inspects the type of the drug contained in the nth package sachet. The inspection regarding the kind of the medicine can be performed by various methods. For example, the front side illumination image captured by the image capturing unit 40 with the front side illumination device 52 in the ON state is used and shown in FIG. By performing according to the flow, it is preferable to perform the type inspection (type inspection) by utilizing the inspection of the type of the drug (appearance inspection) based on the appearance of the drug. Further, in the case of performing a type inspection, the appearance inspection is performed by limiting the reference range to the information about the drug (adopted drug) that may be packaged, among the information registered in the drug information database 62. It is advisable to perform the appearance inspection by removing the information about the drug (non-adopted drug) that is not possibly packaged from the reference range (see the conceptual diagram of FIG. 10B). As a specific inspection flow, for example, it is preferable to inspect the type of drug according to the control flow of FIG. 7 described in detail later. When the inspection regarding the type of drug is completed, the control device 60 advances the flow to step 2-4.

(ステップ2−4)
ステップ2−4において、制御装置60は、包数を示す変数nが、分包袋群を構成する包数に相当するNに到達しているかを確認する。制御装置60は、変数nがN未満である場合にフローをステップ2−5に進め、変数nがNに達している場合にフローをステップ2−6に進める。
(Step 2-4)
In step 2-4, the control device 60 confirms whether the variable n indicating the number of packages has reached N corresponding to the number of packages forming the sachet group. The controller 60 advances the flow to step 2-5 when the variable n is less than N, and advances the flow to step 2-6 when the variable n reaches N.

(ステップ2−5)
ステップ2−5において、制御装置60は、変数nを1加算する処理を行う。その後、制御装置60は、フローをステップ2−2に戻す。これにより、次の包についての鑑査に移行する。
(Step 2-5)
In step 2-5, the control device 60 performs a process of adding 1 to the variable n. After that, the control device 60 returns the flow to step 2-2. This shifts to the inspection of the next package.

(ステップ2−6)
上述したステップ2−4において、変数nがNである場合には、鑑査対象である分包袋群をなす全ての分包袋について、数量鑑査及び種類鑑査が完了した状態である。そこで、ステップ2−6において、制御装置60は、N包分の分包袋の鑑査結果に基づき、分包袋群全体についての鑑査結果の判定(以下、「総合判定処理」とも称す)を行う。総合判定処理は、様々な方法によって行えるが、例えば、後に詳述する図9のフローに則って行うと良い。ステップ2−6において総合判定処理が完了すると、図6に示した一連の制御フローが完了する。
(Step 2-6)
In step 2-4 described above, when the variable n is N, the quantity inspection and the type inspection have been completed for all the sachets forming the sachet group to be inspected. Therefore, in step 2-6, the control device 60 determines the inspection result for the entire sachet group (hereinafter, also referred to as “total determination process”) based on the inspection result of the sachets for N packages. .. The comprehensive determination process can be performed by various methods, but for example, it is preferable to perform it according to the flow of FIG. 9 described in detail later. When the comprehensive determination process is completed in step 2-6, the series of control flows shown in FIG. 6 is completed.

続いて、上述したステップ2−2において、薬剤の外観鑑査を行うことにより分包されている薬剤の種類が処方通りであるか否かを鑑査する種類鑑査の制御フローについて、その一例を図7に則って説明する。 Subsequently, in step 2-2 described above, an example of the control flow of the type inspection for inspecting whether or not the type of the packaged drug is as prescribed by performing the appearance inspection of the drug is shown in FIG. Follow the instructions below.

なお、図7に示した鑑査フローにおいては、薬剤情報データベース62に登録されている情報のうち、分包される可能性がある薬剤(採用薬)についての情報に参照範囲を限定し、分包される可能性のない薬剤(非採用薬)についての情報については参照範囲から外して鑑査を行う(図10(b)の概念図参照)。また、「分包される可能性がある薬剤」とは、例えば、別途設けられた薬剤分包装置(図示せず)において分包用として準備されている薬剤等とすることができる。 In the inspection flow shown in FIG. 7, of the information registered in the drug information database 62, the reference range is limited to the information on the drug (adopted drug) that may be packaged, and the package is packaged. Information regarding drugs that are not likely to be taken (non-adopted drugs) is excluded from the reference range for inspection (see the conceptual diagram in FIG. 10B). Further, the “medicine that may be packaged” may be, for example, a drug prepared for packaging in a separately provided drug packaging device (not shown).

(ステップ3−1)
図7のフローに則って種類鑑査を行う場合には、先ずステップ3−1において、制御装置60は、分包袋に収容されている薬剤の形や大きさ等の形状についての鑑査(形状鑑査)を行う。形状鑑査は、いかなる方法によって行われても良いが、例えば、上述した薬品情報検出制御により薬剤の画像領域として画定された領域の形状と、処方されている薬剤の形状に関するデータとして薬剤情報データベース62に登録されている情報とを照合することにより鑑査すると良い。ステップ3−1において形状鑑査が完了すると、制御装置60は、フローをステップ3−2に進める。
(Step 3-1)
When performing the type inspection according to the flow of FIG. 7, first, in step 3-1, the control device 60 performs an inspection (shape inspection) on the shape such as the shape and size of the medicine contained in the sachet. )I do. Although the shape inspection may be performed by any method, for example, the medicine information database 62 as data regarding the shape of the area defined as the medicine image area by the medicine information detection control described above and the shape of the prescribed medicine. It is advisable to conduct an inspection by collating it with the information registered in. When the shape inspection is completed in step 3-1, the control device 60 advances the flow to step 3-2.

(ステップ3−2)
ステップ3−2において、制御装置60は、分包袋に収容されている薬剤の色彩についての鑑査(色彩鑑査)を行う。色彩鑑査は、いかなる方法によって行われても良いが、例えば、正面側照明画像を用い、上述した薬品情報検出制御により薬剤の画像領域として画定された領域内の色彩情報を導出することによって分包袋に収容されている薬剤の色彩を特定し、特定された色彩と、薬剤情報データベース62に登録されている情報と照合することにより鑑査すると良い。ステップ3−2において色彩鑑査が完了すると、制御装置60は、フローをステップ3−3に進める。
(Step 3-2)
In step 3-2, the control device 60 performs an inspection (color inspection) on the color of the medicine contained in the sachet. The color inspection may be performed by any method, for example, by using the front side illumination image and deriving color information in the area defined as the image area of the medicine by the medicine information detection control described above, the packaging is performed. The color of the drug contained in the bag may be specified, and the specified color may be compared with the information registered in the drug information database 62 for inspection. When the color inspection is completed in step 3-2, the control device 60 advances the flow to step 3-3.

ステップ3−3において、制御装置60は、分包袋に収容されている薬剤に付されている模様についての鑑査(模様鑑査)を行う。ここで、「模様」とは、例えば、例えば薬剤に付された刻印や割線、印刷により付された文字、図形、記号、コード等を指し、平面的(二次元的)なもの、立体的なもの(三次元的なもの)を含むものである。模様鑑査は、いかなる方法によって行われても良いが、例えば、上述した薬品情報検出制御により薬剤の画像領域として画定された領域内において模様を構成している要素を抽出すること等により、薬剤に付されている模様を特定し、特定された模様と、薬剤情報データベース62に登録されている模様に関する情報とを照合することにより鑑査すると良い。ステップ3−3の模様鑑査は、正面側照明装置52をオン状態として撮影部40により撮影された正面側照明画像を用いて行われる。また、ステップ3−3の模様鑑査は、後に詳述する図8に示したフローに則って行われる。ステップ3−3において模様鑑査が完了すると、図7に示した一連の制御フローが完了する。 In step 3-3, the control device 60 performs an inspection (pattern inspection) on the pattern attached to the medicine stored in the sachet. Here, the “pattern” refers to, for example, a marking or a dividing line attached to a medicine, a character, a figure, a symbol, a code or the like attached by printing, and a two-dimensional (two-dimensional) one or a three-dimensional one. It includes things (three-dimensional things). The pattern inspection may be performed by any method, for example, by extracting the elements forming the pattern in the area defined as the image area of the medicine by the medicine information detection control described above, the pattern inspection is performed on the medicine. It is recommended that the attached pattern be specified, and the specified pattern and the information relating to the pattern registered in the drug information database 62 be collated for inspection. The pattern inspection in step 3-3 is performed using the front side illumination image captured by the image capturing unit 40 with the front side illumination device 52 turned on. The pattern inspection in step 3-3 is performed according to the flow shown in FIG. 8 described in detail later. When the pattern inspection is completed in step 3-3, the series of control flow shown in FIG. 7 is completed.

続いて、上述したステップ3−3において行われる模様鑑査の流れについて、図8を参照しつつ説明する。 Next, the flow of the pattern inspection performed in step 3-3 described above will be described with reference to FIG.

(ステップ4−1)
上述したステップ3−3の模様鑑査を行う場合には、先ずステップ4−1において、鑑査対象として鑑査部30に実際に配置されている分包袋内に収容されている各薬剤について、正面側照明画像に写っている模様を導出する画像処理を行う。ステップ4−1が完了すると、制御装置60は、フローをステップ4−2に進める。
(Step 4-1)
In the case of performing the pattern inspection of step 3-3 described above, first, in step 4-1, the front side of each drug stored in the sachet that is actually arranged in the inspection unit 30 as the inspection target. Image processing is performed to derive the pattern appearing in the illumination image. When step 4-1 is completed, the control device 60 advances the flow to step 4-2.

(ステップ4−2)
ステップ4−2において、制御装置60は、ステップ4−1において導出された各薬剤の模様が、処方されている薬剤が第一の方向(第一方向)に向いた状態で見える模様であるのか否かを照合する処理(第一方向照合処理)を行う。例えば、鑑査対象とされる薬剤が表側、及び裏側の面を有する薬剤である場合には、表側の面に付された模様であるのか否かを照合を行う。また、例えばカプセル剤のように表裏のない薬剤である場合には、この薬剤を所定の姿勢で正面視した状態で見える模様であるか否かの照合を行う。かかる処理はいかなる方法によって行われても良いが、例えば、処方データ、及び様々な薬剤の外観に係るマスター画像を登録した薬剤情報データベース62を参照し、正面側照明画像から割り出された模様と照合する処理を行う等すると良い。ステップ4−2の第一方向照合処理が完了すると、制御装置60は、フローをステップ4−3に進める。
(Step 4-2)
In step 4-2, the control device 60 determines whether the pattern of each drug derived in step 4-1 is a pattern in which the prescribed drug is visible in the first direction (first direction). A process for verifying whether or not it is performed (first direction verification process) is performed. For example, when the drug to be inspected is a drug having a front side and a back side, it is checked whether or not the pattern is attached to the front side. Further, for example, in the case of a drug having no front and back such as a capsule, it is checked whether or not the drug can be seen in a front view in a predetermined posture. Although such a process may be performed by any method, for example, referring to the drug information database 62 in which the prescription data and the master images related to the appearance of various drugs are registered, the pattern determined from the front side illumination image is displayed. It is advisable to perform a matching process. When the first direction matching process in step 4-2 is completed, the control device 60 advances the flow to step 4-3.

(ステップ4−3)
ステップ4−3において、制御装置60は、ステップ4−1において導出された各薬剤の模様が、処方されている薬剤について、ステップ4−2において照合したのとは異なる第二の方向(第二方向)に向いた状態で見える模様であるのか否かを照合する処理(第二方向照合処理)を行う。例えば、鑑査対象とされる薬剤が表側、及び裏側の面を有する薬剤である場合には、裏側の面に付された模様であるのか否かの照合を行う。また、例えばカプセル剤のように表裏のない薬剤である場合には、ステップ4−2において照合された面とは異なる見え方をする面に付された模様であるか否かの照合を行う。かかる処理はいかなる方法によって行われても良いが、例えば、処方データ、及び様々な薬剤の外観に係るマスター画像を登録した薬剤情報データベース62を参照し、正面側照明画像から割り出された模様と照合する処理を行う等すると良い。ステップ4−2の第二方向照合処理が完了すると、制御装置60は、フローをステップ4−4に進める。
(Step 4-3)
In step 4-3, the control device 60 determines that the pattern of each drug derived in step 4-1 is the second direction (second one) different from that in step 4-2 for the prescribed drug. The process (second direction matching process) is performed to check whether or not the pattern is visible in the direction. For example, when the drug to be inspected is a drug having a front side and a back side, it is checked whether or not the pattern is attached to the back side. Further, for example, in the case of a drug having no front and back such as a capsule, it is checked whether or not the pattern is attached to the surface having a different appearance from the surface checked in step 4-2. Although such a process may be performed by any method, for example, referring to the drug information database 62 in which prescription data and master images related to appearances of various drugs are registered, it is possible to determine the pattern determined from the front side illumination image. It is advisable to perform a matching process. When the second direction matching process in step 4-2 is completed, the control device 60 advances the flow to step 4-4.

(ステップ4−4〜ステップ4−6)
ステップ4−4において、制御装置60は、ステップ4−2において行った第一方向照合処理、あるいはステップ4−3において行った第二方向照合処理のいずれかにおいて適正であるとの照合結果が得られたか、鑑査対象とされている各薬剤について確認する処理を行う。第一方向照合処理及び第二方向照合処理のいずれか一方について適正と判断された薬剤について、制御装置60は、模様鑑査の鑑査結果が適正であると判断する(ステップ4−5)。一方、第一方向照合処理及び第二方向照合処理の双方とも不適正と判断された薬剤について、制御装置60は、模様鑑査の鑑査結果が不適正であると判定する(ステップ4−6)。ステップ4−5あるいはステップ4−6において模様鑑査の鑑査結果が出ると、図9に示した一連の制御フローが完了する。
(Steps 4-4 to 4-6)
In step 4-4, the control device 60 obtains a matching result that is appropriate in either the first direction matching process performed in step 4-2 or the second direction matching process performed in step 4-3. The process of confirming whether or not each drug that has been subjected to inspection has been performed. The control device 60 determines that the inspection result of the pattern inspection is appropriate for the medicine determined to be appropriate for either the first direction verification process or the second direction verification process (step 4-5). On the other hand, the control device 60 determines that the inspection result of the pattern inspection is improper for the medicine determined to be improper in both the first direction collation process and the second direction collation process (step 4-6). When the inspection result of the pattern inspection is obtained in step 4-5 or step 4-6, the series of control flow shown in FIG. 9 is completed.

続いて、上述したステップ2−6において行われる、分包袋群全体についての鑑査結果の判定(総合判定処理)について説明する。総合判定処理は、分包袋群をなす各分包袋について、上述した図7及び図8に則って行った鑑査結果に基づき、図9に示したフローに則って行われる。以下、図9を参照しつつ、さらに詳細に説明する。 Subsequently, the determination of the inspection result for the entire sachet group (total determination processing) performed in step 2-6 described above will be described. The comprehensive determination process is performed according to the flow shown in FIG. 9 based on the inspection result performed according to the above-described FIG. 7 and FIG. 8 for each sachet forming the sachet group. Hereinafter, further details will be described with reference to FIG. 9.

(ステップ5−1)
上述したステップ2−6において分包袋群全体についての鑑査結果の判定を行う場合には、先ずステップ5−1において、制御装置60は、分包袋群をなす各分包袋について、ステップ2−2における数量鑑査の結果、不良と判定された分包袋の有無について確認する。その後、制御装置60は、ステップ5−2にフローを進める。
(Step 5-1)
When determining the inspection result for the entire sachet bag group in step 2-6 described above, first in step 5-1, the control device 60 performs step 2 for each sachet bag forming the sachet bag group. As a result of the quantity inspection in -2, it is confirmed whether or not there is a sachet that is determined to be defective. After that, the control device 60 advances the flow to step 5-2.

(ステップ5−2)
ステップ5−2において、制御装置60は、ステップ2−3における種類鑑査の結果、不良と判定された分包袋の有無について確認する。その後、制御装置60は、ステップ5−3にフローを進める。
(Step 5-2)
In step 5-2, the control device 60 confirms whether or not there is a sachet that is determined to be defective as a result of the type inspection in step 2-3. After that, the control device 60 advances the flow to step 5-3.

(ステップ5−3)
ステップ5−3において、鑑査対象とされた分包袋群をなす分包袋のそれぞれに共通して分包されるべき共通薬剤について、図7のステップ3−3において、制御装置60は、図8のフローに則って行った模様鑑査の実施結果について検証する。具体的には、分包袋群全体として模様鑑査の実施結果を検証した場合に想定される結果として、以下の4つのパターンが想定される。
(1)第一方向照合処理が適正であった分包袋しか含まれていないケース。
(2)第二方向照合処理が適正であった分包袋しか含まれていないケース。
(3)第一方向照合処理が適正であった分包袋と、第二方向照合処理が適正であった分包袋が混在しているケース。
(4)第一方向照合処理、あるいは第二方向照合処理において不適正であった分包袋が存在しているケース。
(Step 5-3)
In step 5-3, regarding the common medicine to be commonly packaged in each of the sachets forming the sachet group to be inspected, in step 3-3 of FIG. The result of the pattern inspection conducted according to the flow of 8 will be verified. Specifically, the following four patterns are assumed as the results expected when the execution result of the pattern inspection is verified for the entire sachet group.
(1) Case in which only the sachets for which the first direction matching process was appropriate are included.
(2) A case in which only the sachet that has been properly subjected to the second direction matching process is included.
(3) A case in which sachets for which the first-direction collation processing is appropriate and sachets for which the second-direction collation processing is appropriate are mixed.
(4) A case in which there is a sachet that was improper in the first-direction matching process or the second-direction matching process.

ステップ5−3においては、鑑査対象とされた分包袋群について行った模様鑑査の実施結果が、上述した(1)〜(4)のうち、(4)のケースは模様鑑査が不適正である薬剤が含まれているとして、鑑査結果を出力すべきケースである。上記(3)のケースは、分包袋群全体として見ると、共通薬剤の第一方向、及び第二方向の双方について確認されており、共通薬剤以外の薬剤が分包されている可能性が極めて低いと考えられる。これに対し、上記(1)及び(2)のケースは、分包袋群全体として見ると、共通薬剤の第一方向、及び第二方向のいずれか一方についてしか確認されておらず、薬剤師による目視鑑査等を行うことが好ましいケースと考えられる。そのため、上記(1)及び(2)のケースでは、例えば目視鑑査等を促す報知をする等して、薬剤師等に警告を出すことが好ましい。また、上記(4)のケースでは、分包されている薬剤が不適切であることを示す鑑査結果を示す必要がある。このようにして、制御装置60は、模様鑑査の実施結果についての検証を行う。その後、制御装置60は、フローをステップ5−4に進める。 In Step 5-3, the execution result of the pattern inspection performed on the sachets subjected to the inspection is that the pattern inspection is inappropriate in the case of (4) among (1) to (4) described above. This is a case where the inspection result should be output because a certain drug is included. In the case of the above (3), when viewed as the entire sachet group, both the first direction and the second direction of the common drug have been confirmed, and it is possible that drugs other than the common drug are packaged. It is considered to be extremely low. On the other hand, in the cases of (1) and (2) above, when viewed as the entire sachet group, only one of the first direction and the second direction of the common drug has been confirmed. It is considered that it is preferable to perform visual inspection. Therefore, in the cases of (1) and (2) above, it is preferable to give a warning to the pharmacist or the like by, for example, issuing a notification prompting a visual inspection or the like. Further, in the case of (4) above, it is necessary to show the inspection result indicating that the packaged drug is inappropriate. In this way, the control device 60 verifies the execution result of the pattern inspection. After that, the control device 60 advances the flow to step 5-4.

(ステップ5−4)
制御装置60は、ステップ5−4において鑑査結果を出力する。鑑査結果の出力は、例えば、各分包袋への印刷や、薬剤鑑査装置10に付属あるいは別途接続されたモニタやプリンタ等の出力装置等による出力等の方法で行われる。また、ステップ5−4における鑑査結果の出力は、例えば、ステップ5−1における数量鑑査の結果確認において、いずれの分包袋についても処方通りの数量の薬剤が分包されていると確認された場合に、その旨の出力を行うことにより行われる。また、数量が処方すべき数量と相違している薬剤が存在している場合には、例えば、どの分包袋においてどの薬剤の数量が相違しているかを出力することにより鑑査結果の出力が行われる。また、ステップ5−2における種類鑑査の結果確認において、いずれの分包袋についても処方通りの種類の薬剤が分包されていると確認された場合には、その旨の出力を行うことにより鑑査結果の出力が行われる。また、処方すべき薬剤の種類と相違している薬剤が分包されている場合には、例えば、どの分包袋においてどの種類の薬剤が誤って分包されているかを出力することにより鑑査結果の出力が行われる。
(Step 5-4)
The control device 60 outputs the inspection result in step 5-4. The inspection result is output by, for example, a method such as printing on each sachet or an output device such as a monitor or a printer attached to the medicine inspection device 10 or separately connected thereto. In addition, the output of the inspection result in step 5-4 was confirmed, for example, in the confirmation of the result of the quantity inspection in step 5-1 in which the quantity of the medicine as prescribed was packaged in each sachet. In that case, it is performed by outputting an output to that effect. In addition, when there is a drug whose quantity is different from the quantity to be prescribed, for example, the inspection result is output by outputting which medicine has a different quantity in which sachet. Be seen. Further, in the confirmation of the result of the type inspection in step 5-2, if it is confirmed that the medicine of the type as prescribed is packaged in any of the sachets, the inspection is performed by outputting that effect. The result is output. In addition, when a drug different from the type of drug to be prescribed is packaged, for example, by outputting which type of drug is incorrectly packaged in which sachet, the inspection result is output. Is output.

また、ステップ5−3において行った共通薬剤についての模様鑑査の実施結果において、第一方向照合処理が適正であった分包袋しか含まれていないケース(上記(1))、あるいは第二方向照合処理が適正であった分包袋しか含まれていないケース(上記(2))においては、例えば目視鑑査等をさらに行うことが好ましい旨の出力を行う。また、第一方向照合処理、あるいは第二方向照合処理において不適正であった分包袋が存在しているケース(上記(4))においては、分包されている薬剤が不適切である旨の出力を行う。また、第一方向照合処理が適正であった分包袋と、第二方向照合処理が適正であった分包袋が混在しているケース(上記(3))においては、共通薬剤についての模様鑑査が適正な実施結果で行われたとの出力を行う。上述したようにして鑑査結果の出力が完了すると、図9に示した一連の制御フローが完了する。 Further, in the result of the pattern inspection for the common drug performed in step 5-3, the case in which only the sachet bag for which the first direction collation processing is appropriate is included (the above (1)), or the second direction. In the case where only the sachets for which the collation processing is appropriate are included ((2) above), an output indicating that it is preferable to further perform a visual inspection or the like is output. In addition, in the case where there is a sachet that was improper in the first-direction matching process or the second-direction matching process ((4) above), the packaged drug is not appropriate. Is output. Further, in the case where the sachets for which the first-direction matching process was appropriate and the sachets for which the second-direction matching process was appropriate are mixed ((3) above), the pattern regarding the common drug Output that the inspection was performed with the proper implementation result. When the output of the inspection result is completed as described above, the series of control flows shown in FIG. 9 is completed.

具体例には、例えば、A薬剤、B薬剤、C薬剤、D薬剤をそれぞれ1つずつ、1包に分包した分包袋を一服用分として、朝食後に服用するものとして3日分分包した分包袋群X(図11参照)と、昼食後に服用するものとして3日分分包した分包袋群Y(図12参照)とが処方された場合を例に挙げ、説明する。この例においては、A薬剤、B薬剤、C薬剤、D薬剤のいずれも、分包袋群Xをなす各分包袋X1〜X3に共通して分包されるべき薬剤(共通薬剤)である。同様に、A薬剤、B薬剤、C薬剤、D薬剤のいずれも、分包袋群Yをなす各分包袋Y1〜Y3において共通薬剤である。薬剤鑑査装置10は、A薬剤、B薬剤、C薬剤、D薬剤をはじめ様々な薬剤の情報が登録されている薬剤情報データベース62から、A薬剤、B薬剤、C薬剤、D薬剤についての情報を参照する。薬剤情報データベース62は、例えば、薬剤の名称や、薬剤の大きさ、形状、色、模様(刻印や印刷等)等をはじめとし、様々な情報が登録されているものとすることができる。A薬剤、B薬剤、C薬剤、D薬剤についての外観情報は、図@10(a)に図示したようなものであり、薬剤情報データベース62にマスターデータとして登録されている。 As a specific example, for example, each of A drug, B drug, C drug, and D drug is separately packaged into one sachet, and the sachet is divided into 3 doses to be taken after breakfast. A case will be described as an example where the divided sachet group X (see FIG. 11) and the sachet group Y divided into 3 days (see FIG. 12) to be taken after lunch are prescribed. In this example, all of the A drug, the B drug, the C drug, and the D drug are drugs (common drugs) to be commonly packaged in the sachets X1 to X3 forming the sachet group X. .. Similarly, all of A drug, B drug, C drug, and D drug are common drugs in the sachets Y1 to Y3 forming the sachet group Y. The drug inspection device 10 obtains information about A drug, B drug, C drug, and D drug from the drug information database 62 in which information of various drugs including A drug, B drug, C drug, and D drug is registered. refer. The drug information database 62 may be registered with various information including, for example, the name of the drug, the size, shape, color, pattern (marking, printing, etc.) of the drug. The appearance information about the A drug, the B drug, the C drug, and the D drug is as illustrated in FIG. 10A, and is registered as master data in the drug information database 62.

薬剤鑑査装置10は、薬剤情報データベース62を参照しつつ、上述したようにして、分包袋群X,Yを構成する各分包袋X1〜X3及び各分包袋Y1〜Y3について、実際に分包されている薬剤の数量及び種類が、それぞれ処方通りであるか否かの鑑査を行う。図11に示すように、分包袋群Xをなす分包袋X1〜X3については、薬剤の数量及び種類がそれぞれ処方通りである。また、分包袋群Xにおいて共通薬剤であるA薬剤、B薬剤、C薬剤、D薬剤のいずれについても、各分包袋X1〜X3において第一方向照合処理が適正であったものと、第二方向照合処理が適正であったものとが混在している。そのため、分包袋群Xについては、A薬剤、B薬剤、C薬剤、D薬剤のいずれの薬剤についても、模様鑑査の実施結果について適正である。従って、制御装置60は、分包袋群Xについては、各分包袋X1〜X3に処方通りに各薬剤が分包されていると共に、模様鑑査の実施結果についても適正であるとの判定を行う。 As described above, the medicine inspection device 10 refers to the medicine information database 62, and actually, for each of the sachets X1 to X3 and each of the sachets Y1 to Y3 forming the sachets X and Y, as described above. Inspect whether the quantity and type of packaged medicines are as prescribed. As shown in FIG. 11, in the sachets X1 to X3 forming the sachet group X, the numbers and types of the medicines are as prescribed. In addition, for all of the common medicines A, B, C, and D in the sachets X, the first direction collation process is appropriate in each sachet X1 to X3. There is a mixture of two-way collation processing that was appropriate. Therefore, regarding the packaging bag group X, the execution results of the pattern inspection are appropriate for any of the drugs A, B, C, and D. Therefore, the control device 60 determines that the sachets X are each packaged in the sachets X1 to X3 according to the prescription and the pattern inspection is appropriate. To do.

一方、分包袋群Yをなす分包袋Y1〜Y3について検討すると、図12に示すように、A薬剤については、分包袋Y1〜Y3のいずれにおいても、形状、色彩についての鑑査結果は良好である。分包袋Y2について、制御装置60は、A薬剤の数量が処方通りでないとの判定を行う。また、分包袋Y1において第一方向(表面)についての模様鑑査が行われ、分包袋Y3において第二方向(裏面)についての模様鑑査が行われており、いずれも良好な鑑査結果が得られている。しかしながら、2包目の分包袋Y2においてA薬剤の数量が足りていない(A薬剤が分包されていない)。そのため、制御装置60は、分包袋Y1〜Y3のうち、分包袋Y1及びY3においては、処方通り数量及び種類を間違えることなくA薬剤が分包されているものの、分包袋Y2においてA薬剤が不足している旨の鑑査結果を出力する。 On the other hand, when the sachets Y1 to Y3 forming the sachet bag group Y are examined, as shown in FIG. 12, with respect to the drug A, in any of the sachets Y1 to Y3, the inspection result regarding the shape and color is It is good. For the sachet Y2, the control device 60 determines that the quantity of the drug A is not as prescribed. Moreover, the pattern inspection in the first direction (front surface) is performed in the sachet bag Y1, and the pattern inspection in the second direction (rear surface) is performed in the sachet bag Y3, and good inspection results are obtained in both cases. Has been. However, the quantity of the drug A is insufficient in the second sachet Y2 (the drug A is not packaged). Therefore, the control device 60, in the sachets Y1 and Y3 among the sachets Y1 and Y3, is packaged with the A drug without making a mistake in the quantity and type as prescribed, but in the sachet Y2, A The inspection result indicating that the drug is insufficient is output.

また、分包袋群YにおいてB薬剤に着目すると、分包袋Y1〜Y3のいずれにおいても、数量、及び形状、色彩についての鑑査結果は良好である。しかしながら、分包袋Y1〜Y3のいずれの模様鑑査においても、B薬剤の第二方向(裏面)についてしか模様鑑査が行えておらず、B薬剤の第一方向(表面)についての模様鑑査が行えていない。そのため、分包袋群YにおけるB薬剤についての模様鑑査は、上記(2)のケースのように、第二方向照合処理が適正であった分包袋しか含まれていないケースに該当し、例えば薬剤師による目視鑑査等により、確認を行うことが好ましい状態にある。そのため、制御装置60は、分包袋群Yにおいて、処方通り数量を間違えることなくB薬剤を分包できている可能性が高いが、第一方向及び第二方向のうち一方(この例においては第二方向のみ)しか模様鑑査を行えていない旨の出力を行う。 Further, when focusing on the B medicine in the sachet bag group Y, the inspection results regarding the quantity, shape, and color are good in all the sachet bags Y1 to Y3. However, in any of the pattern inspections of the sachets Y1 to Y3, the pattern inspection can be performed only in the second direction (back surface) of the B medicine, and the pattern inspection can be performed in the first direction (front surface) of the B medicine. Not not. Therefore, the pattern inspection of the B medicine in the sachet group Y corresponds to the case where only the sachets for which the second direction matching process is appropriate are included, as in the case of (2) above. It is in a preferable state to perform confirmation by visual inspection by a pharmacist. Therefore, it is highly possible that the control device 60 can package the B medicine in the packaging bag group Y without making a mistake in the quantity as prescribed, but in one of the first direction and the second direction (in this example, Outputs that pattern inspection can only be performed in the second direction only).

また、分包袋群YにおいてC薬剤について着目すると、分包袋Y1〜Y3のいずれにおいても、数量、及び形状、色彩についての鑑査結果は良好である。また、分包袋Y1〜Y3のうち、分包袋Y2においてC薬剤の第一方向(表面)についての模様鑑査が行われ、分包袋Y1,Y3においてC薬剤の第二方向(裏面)についての模様鑑査が行われている。そのため、分包袋群Y全体として、上記(3)のように第一方向照合処理が適正であった分包袋と、第二方向照合処理が適正であった分包袋が混在しているケースに該当する。従って、制御装置60は、分包袋群YにおいてC薬剤が各分包袋Y1〜Y3にそれぞれ処方通り分包されているとの出力を行う。 Further, when focusing on the C drug in the sachet bag group Y, the inspection results regarding the quantity, shape, and color are good in all the sachet bags Y1 to Y3. Further, of the sachets Y1 to Y3, pattern inspection is performed in the sachets Y2 in the first direction (front surface) of the C medicine, and in the sachets Y1 and Y3 in the second direction (back surface) of the C medicine. Is being inspected. Therefore, as the whole sachet bag group Y, sachets for which the first-direction collation processing is appropriate as in (3) above and sachets for which the second-direction collation processing is appropriate are mixed. It corresponds to the case. Therefore, the control device 60 outputs that the C drug in the sachet group Y is packaged in the sachets Y1 to Y3 as prescribed.

また、分包袋群YにおいてD薬剤について着目すると、分包袋Y1〜Y3のいずれにおいても、数量、及び形状、色彩についての鑑査結果は良好である。また、分包袋Y1〜Y3のうち、分包袋Y2,Y3においては、D薬剤の第二方向についての模様鑑査が行われ、適正であるとの判断が行われている。しかしながら、分包袋Y1については、D薬剤の第一方向についての模様鑑査、及び第二方向についての模様鑑査の双方とも不良との判定が行われている。具体的には、D薬剤を第一の方向から見たときには、「RR」との印字や刻印からなる模様が見えるはずであるが、実際には「PP」との印字や刻印からなる模様が見えていることから、第一の方向についての模様鑑査が「不良」とされる。また、D薬剤を第二の方向から見たときには、印字や刻印等の模様が存在しないはずであるが、実際には「PP」との印字や刻印からなる模様が見えていることから、第二の方向についての模様鑑査についても「不良」とされる。この結果に基づき、制御装置60は、分包袋Y1において形状及び色彩が同一であるものの、模様が異なるD薬剤に類似した薬剤が誤って分包されているとの判定を行う。そのため、制御装置60は、D薬剤については、分包袋Y2,Y3において処方通り分包されているものの、分包袋Y1においては異なる種類の薬剤が分包されているとの出力を行う。 Further, when focusing on the D drug in the sachet bag group Y, the inspection results regarding the quantity, shape, and color are good in any of the sachet bags Y1 to Y3. Further, in the sachets Y2 and Y3 among the sachets Y1 to Y3, the pattern inspection in the second direction of the D medicine is performed, and it is determined that it is appropriate. However, it is determined that the sachet Y1 is defective in both the pattern inspection in the first direction and the pattern inspection in the second direction of the D medicine. Specifically, when the D drug is viewed from the first direction, the pattern composed of the prints and the markings “RR” should be visible, but actually the pattern composed of the prints and the markings “PP” is seen. Since it is visible, the pattern inspection in the first direction is considered "poor". Also, when the D drug is viewed from the second direction, there should be no pattern of printing or marking, but in reality, the pattern consisting of printing or marking of "PP" is visible. The pattern inspection in the second direction is also "bad". Based on this result, the control device 60 determines that a medicine similar to the D medicine having a different pattern is erroneously packed in the sachet Y1 although the shape and color are the same. Therefore, the control device 60 outputs that the D medicine is packaged according to the prescription in the sachets Y2 and Y3, but that different types of medicines are packaged in the sachet Y1.

上述したように、本実施形態の薬剤鑑査装置10においては、撮影部40によって得られた正面側照明画像に基づいて、分包袋に収容されている薬剤の外観に関する外観情報を導出し、外観情報と、薬剤情報データベース62に登録されている外観に関するマスターデータとを照合することにより、処方通りに薬剤が分包されているか否かを鑑査(外観鑑査)することができる。また、薬剤鑑査装置10は、共通薬剤が含まれている分包袋群について鑑査する場合に、それぞれの分包袋を鑑査部30に対して一の方向から撮影した正面側照明画像を用いて模様を導出して鑑査できる。また、分包袋群をなす各分包袋について行った模様鑑査の実施結果を検証し、第一方向照合処理が適正であった分包袋と、第二方向照合処理が適正であった分包袋が混在しているケース(上記(3)に相当)については、処方された共通薬剤が適正に各分包袋に分包されていると判断することとしている。従って、本実施形態の薬剤鑑査装置10によれば、分包袋に収容された薬剤について表面及び裏面の外観の異同に着目した鑑査を行いつつ、鑑査に要する時間を最小限に抑制できる。 As described above, in the medicine inspection device 10 of the present embodiment, the appearance information regarding the appearance of the medicine contained in the sachet is derived based on the front side illumination image obtained by the imaging unit 40, and the appearance. By collating the information with the master data regarding the appearance registered in the medicine information database 62, it is possible to inspect whether the medicine is packaged according to the prescription (appearance inspection). In addition, when inspecting a sachet containing a common medicine, the medicine inspection device 10 uses a front side illumination image of each sachet taken from one direction with respect to the inspection unit 30. Patterns can be derived and inspected. In addition, the execution results of the pattern inspection performed on the sachets forming the sachet group were verified, and the sachets for which the first direction matching process was appropriate and the second direction collating process were appropriate. In the case where the packaging bags are mixed (corresponding to (3) above), it is determined that the prescribed common drug is properly packaged in each packaging bag. Therefore, according to the drug inspection device 10 of the present embodiment, it is possible to minimize the time required for the inspection while performing the inspection focusing on the difference in the appearance of the front surface and the back surface of the medicine stored in the sachet.

また、薬剤鑑査装置10では、鑑査部30に対して一の方向から撮影部40によって撮影された正面側照明画像が、外観情報を導出するために用いられる。そのため、本実施形態の薬剤鑑査装置10では、一方の面が透明であり、他方の面が不透明な分包袋に分包された薬剤であったとしても、分包袋の透明な面の側から撮影を行うことにより、外観鑑査の対象とされた薬剤が、分包袋群をなす分包袋のそれぞれに分包されているか否かの鑑査を行える。 Further, in the drug inspection device 10, the front side illumination image captured by the image capturing unit 40 with respect to the inspection unit 30 from one direction is used for deriving the appearance information. Therefore, in the medicine inspection device 10 of the present embodiment, even if the medicine is packaged in a sachet whose one surface is transparent and the other surface is opaque, the transparent surface side of the sachet is provided. By taking an image from the above, it is possible to inspect whether or not the medicine targeted for the appearance inspection is packaged in each of the sachets forming the sachet group.

上述した薬剤鑑査装置10は、上述した例のように、分包されている薬剤の数量及び種類が同一である複数の分包袋からなる分包袋群の鑑査に好適に用いることができる。 The medicine inspection device 10 described above can be preferably used for inspection of a sachet group including a plurality of sachets having the same quantity and the same type of medicines as in the above-described example.

また、薬剤鑑査装置10は、上述したように撮影部40によって得られた画像に基づいて、分包袋に収容されている薬剤の数量が処方通りであるかを鑑査する数量鑑査を実行可能なものであると良い。このようにすることで、数量の観点からも鑑査を行うことができ、鑑査精度のより一層の向上が図れる。なお、本発明はこれに限定されるものではなく、薬剤鑑査装置10は、数量鑑査を行わないものであっても良い。 Further, the medicine inspection device 10 can execute a quantity inspection to inspect whether the quantity of medicines contained in the sachet is as prescribed, based on the image obtained by the imaging unit 40 as described above. Good things. By doing so, the inspection can be performed from the viewpoint of the quantity, and the inspection accuracy can be further improved. The present invention is not limited to this, and the medicine inspection device 10 may not perform the quantity inspection.

本実施形態の薬剤鑑査装置10においては、種類鑑査(外観鑑査)を、鑑査対象とされた薬剤の形状に関する情報、模様に関する情報、色彩に関する情報の3つの観点に基づいて行うこととしている。従って、薬剤鑑査装置10によれば、種類鑑査(外観鑑査)を精度良く行える。なお、本実施形態では、薬剤の形状、模様、色彩の各要素について、それぞれ別個に鑑査を行う例を示したが、本発明はこれに限定されるものではなく、一部又は全部の要素を複合的に鑑査するようにしても良い。 In the drug inspection device 10 of the present embodiment, the type inspection (appearance inspection) is performed based on three points of view: information on the shape of the drug to be inspected, information on the pattern, and information on the color. Therefore, according to the medicine inspection device 10, the type inspection (appearance inspection) can be performed with high accuracy. Incidentally, in the present embodiment, for each element of the shape, pattern, and color of the medicine, an example in which inspection is performed separately is shown, but the present invention is not limited to this, and some or all elements may be used. It may be possible to conduct a complex inspection.

本実施形態の薬剤鑑査装置10は、模様鑑査において薬剤に付された刻印や識別コード等の印を指標として鑑査を行うこととしている。これにより、例えば形状や色彩の観点では外観が同一あるいは類似と判断されるような薬剤であっても、印を指標として相違するものとして鑑査できる。そのため、上述したように鑑査対象とされた薬剤に付された刻印や識別コード等の印の異同に着目した種類鑑査(外観鑑査)を行うこととにより、鑑査精度の向上が図れる。なお、例えば、いわゆるQRコード(登録商標)や二次元コード等の識別標識が薬剤に印刷等により付されている場合は、専用のコードリーダー等を備えておくことにより、画像を使わず、薬剤の種類(薬種)をコード情報から直接特定するようにしても良い。 The medicine inspection device 10 according to the present embodiment is configured to perform inspection using marks such as engraved marks and identification codes attached to the medicine in the pattern inspection as indexes. Thereby, for example, even medicines whose appearances are judged to be the same or similar in terms of shape and color can be inspected as different using the mark as an index. Therefore, the accuracy of inspection can be improved by performing the type inspection (appearance inspection) focusing on the difference in markings such as markings and identification codes attached to the medicine to be inspected as described above. In addition, for example, when an identification mark such as a so-called QR code (registered trademark) or a two-dimensional code is attached to the medicine by printing or the like, a dedicated code reader or the like is provided so that the medicine is not used. The type (medicine type) of may be specified directly from the code information.

また、上記実施形態では、撮影部40によって得られた画像に基づいて、分包袋に収容されている薬剤の外観に関する外観情報を導出し、分包されている薬剤の種類及び数量の双方が処方通りであるかを外観情報、及び薬剤情報データベース62に登録されている情報に基づいて鑑査する例を示したが、本発明はこれに限定されるものではない。すなわち、薬剤鑑査装置10は、薬剤の種類及び数量のいずれか一方が処方通りであるかを、外観情報、及び薬剤情報データベース62に登録されている情報に基づいて鑑査するようにしても良い。 Further, in the above embodiment, based on the image obtained by the imaging unit 40, the appearance information regarding the appearance of the medicine stored in the sachet is derived, and both the type and the quantity of the medicine packaged are determined. An example in which whether or not it is as prescribed is inspected based on the appearance information and the information registered in the drug information database 62 has been shown, but the present invention is not limited to this. That is, the medicine inspection device 10 may inspect whether any one of the type and quantity of the medicine is as prescribed, based on the appearance information and the information registered in the medicine information database 62.

本発明は、上述した実施形態、及び各実施形態について変形例として示したものに限定されるものではなく、特許請求の範囲を逸脱しない範囲でその教示および精神から他の実施形態があり得ることは当業者に容易に理解できよう。 The present invention is not limited to the above-described embodiments and those shown as modified examples of each embodiment, and there may be other embodiments from the teaching and spirit thereof without departing from the scope of the claims. Will be readily apparent to one of ordinary skill in the art.

本発明は、薬剤が処方通りに分包されているか否かを鑑査するための薬剤鑑査装置全般において好適に利用できる INDUSTRIAL APPLICABILITY The present invention can be suitably used in all drug inspection devices for inspecting whether a drug is packaged as prescribed.

10 :薬剤鑑査装置
10b :導入部
30 :鑑査部
40 :撮影部
60 :制御装置(鑑査処理部)
62 :薬剤情報データベース
10: Drug inspection device 10b: Introduction part 30: Inspection part 40: Imaging part 60: Control device (inspection processing part)
62: Drug Information Database

Claims (5)

薬剤を収容した分包袋が配置される鑑査部と、
前記鑑査部に配置された前記分包袋を撮影可能な撮影部と、
薬剤についての情報を蓄積した薬剤情報データベースと、
前記撮影部によって得られた画像に基づいて、前記分包袋に収容されている前記薬剤の外観に関する外観情報を導出し、分包されている前記薬剤の種類及び数量のいずれか一方又は双方が処方通りであるかを前記外観情報、及び前記薬剤情報データベースに登録されている情報に基づいて鑑査する外観鑑査を実行可能とされた鑑査処理部と、
を備えており、
複数の前記分包袋からなり、前記分包袋のそれぞれに共通して分包されるべき共通薬剤が含まれている分包袋群について鑑査する場合に、
前記鑑査処理部が、
前記共通薬剤を前記外観鑑査の対象とし、
前記分包袋群をなす前記分包袋をそれぞれ、前記撮影部によって前記鑑査部に対して一の方向から撮影した画像を用いて導出された外観情報、及び前記薬剤情報データベースに登録されている情報のうち、分包される可能性がある薬剤についての情報に基づいて前記外観鑑査を行うものであり、
鑑査対象とされた前記分包袋群をなす前記分包袋のうち少なくとも一つについての前記画像から前記外観鑑査の対象とされた前記共通薬剤の第一の向きについての前記外観情報が導出され、残りの前記分包袋についての前記画像に前記共通薬剤の第一の向きを除く前記共通薬剤の第二の向きについての外観情報が導出されることを条件として、前記共通薬剤が、前記分包袋群をなす前記分包袋のそれぞれに分包されているとの判断を行うことを特徴とする薬剤鑑査装置。
An inspection unit in which a sachet containing the medicine is placed,
A photographing unit capable of photographing the sachet arranged in the inspection unit,
A drug information database that stores information about drugs,
Based on the image obtained by the imaging unit, the appearance information regarding the appearance of the medicine contained in the sachet is derived, and one or both of the type and quantity of the medicine packaged are The external appearance information whether it is as prescribed, and an inspection processing unit capable of performing an external appearance inspection to inspect based on the information registered in the drug information database,
Is equipped with
When consisting of a plurality of sachets, when inspecting a sachet group containing a common drug to be commonly packaged in each of the sachets,
The inspection processing unit,
Targeting the appearance inspection of the common drug,
Each of the sachets forming the sachet group is registered in the medicine information database and the appearance information derived by using the image captured by the imaging unit from the one direction with respect to the inspection unit. Among the information, to perform the appearance inspection based on the information about the drug that may be packaged,
From the image of at least one of the sachets forming the sachet group to be inspected, the appearance information about the first orientation of the common drug that is an object of the appearance inspection is derived. , The common drug is divided into the images of the remaining sachets, on the condition that appearance information about the second direction of the common drug other than the first direction of the common drug is derived. A medicine inspection device, characterized in that it is judged that each of the sachets forming a sachet group is packaged.
前記分包袋群が、分包されている前記薬剤の数量及び種類が同一である複数の前記分包袋からなるものであることを特徴とする請求項1に記載の薬剤鑑査装置。 The medicine inspection device according to claim 1, wherein the sachet group comprises a plurality of sachets in which the quantity and the type of the medicine to be packaged are the same. 前記外観情報が、鑑査対象とされた前記薬剤の形状に関する情報、模様に関する情報、色彩に関する情報、又はこれらの組み合わせに関する情報であることを特徴とする請求項1又は2に記載の薬剤鑑査装置。 The medicine inspection device according to claim 1 or 2, wherein the appearance information is information about a shape of the medicine to be inspected, information about a pattern, information about a color, or information about a combination thereof. 前記分包袋として、一方の面が透明であり、他方の面が不透明なものが供給されることを条件として、
前記鑑査部に配置された前記分包袋を前記透明な面側から撮影した画像が前記外観鑑査に用いられることを特徴とする請求項1〜3のいずれかに記載の薬剤鑑査装置。
As the sachet, one surface is transparent, provided that the other surface is opaque,
The medicine inspection device according to any one of claims 1 to 3, wherein an image obtained by photographing the sachet arranged in the inspection unit from the transparent surface side is used for the appearance inspection.
前記鑑査処理部が、前記撮影部によって得られた画像に基づいて、前記分包袋に収容されている前記薬剤の数量が処方通りであるかを鑑査する数量鑑査を実行可能であることを特徴とする請求項1〜4のいずれかに記載の薬剤鑑査装置。 The inspection processing unit is capable of performing a quantity inspection to inspect whether the quantity of the medicine contained in the sachet is as prescribed based on the image obtained by the photographing unit. The drug inspection device according to any one of claims 1 to 4.
JP2019016396A 2019-01-31 2019-01-31 Drug inspection device Active JP7200710B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2019016396A JP7200710B2 (en) 2019-01-31 2019-01-31 Drug inspection device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2019016396A JP7200710B2 (en) 2019-01-31 2019-01-31 Drug inspection device

Publications (3)

Publication Number Publication Date
JP2020121057A true JP2020121057A (en) 2020-08-13
JP2020121057A5 JP2020121057A5 (en) 2022-02-07
JP7200710B2 JP7200710B2 (en) 2023-01-10

Family

ID=71991701

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2019016396A Active JP7200710B2 (en) 2019-01-31 2019-01-31 Drug inspection device

Country Status (1)

Country Link
JP (1) JP7200710B2 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07200770A (en) * 1993-12-28 1995-08-04 Sanyo Electric Co Ltd Tablet inspection system
JP2012165876A (en) * 2011-02-14 2012-09-06 Karon:Kk Audit device of medical agent made into one package
WO2014129526A1 (en) * 2013-02-20 2014-08-28 株式会社湯山製作所 Medicine inspection device and system for individually packaging medicine
WO2018221065A1 (en) * 2017-05-30 2018-12-06 富士フイルム株式会社 Drug inspection assistance device and drug inspection assistance method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07200770A (en) * 1993-12-28 1995-08-04 Sanyo Electric Co Ltd Tablet inspection system
JP2012165876A (en) * 2011-02-14 2012-09-06 Karon:Kk Audit device of medical agent made into one package
WO2014129526A1 (en) * 2013-02-20 2014-08-28 株式会社湯山製作所 Medicine inspection device and system for individually packaging medicine
WO2018221065A1 (en) * 2017-05-30 2018-12-06 富士フイルム株式会社 Drug inspection assistance device and drug inspection assistance method

Also Published As

Publication number Publication date
JP7200710B2 (en) 2023-01-10

Similar Documents

Publication Publication Date Title
JP6521114B2 (en) Drug inspection device
WO2014050486A1 (en) Drug inspection assistance device and method
JP6009888B2 (en) Drug inspection apparatus and method
JP5196337B1 (en) Drug inspection device and drug packaging device
JP6705379B2 (en) Inspection support system
US8720790B2 (en) Method and apparatus for fractal identification
JP5163985B2 (en) Granular product type inspection device
US8908920B2 (en) Systems and methods for tracking and authenticating goods
JP4256434B2 (en) Method and device for testing packaged medicine
CN109073564B (en) Drug inspection device and method, and recording medium
US20190377977A1 (en) Drug recognizing apparatus, drug recognizing method, and drug recognizing program
CN107920956B (en) Drug inspection device and method, and recording medium
JP6974594B2 (en) Drug determination device and drug determination method
JPWO2014080966A1 (en) Drug inspection device
CN111902843A (en) Medicine determination device and boundary recess detection method
CN112105330B (en) Drug determination device and drug determination method
JP2014221134A (en) Packaged single-dose-medicament auditing device
JP2020121057A (en) Medicine inspection device
JP6974595B2 (en) Drug determination device and drug determination method
JP5749978B2 (en) Drug audit support device
KR20230027630A (en) Data augmentation and learning method for ai-based vision inspection of solid medications and inspection system thereof

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20220128

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20220128

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20221115

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20221122

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20221205

R150 Certificate of patent or registration of utility model

Ref document number: 7200710

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150