Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP7807701B2 - Type discrimination device - Google Patents
[go: Go Back, main page]

JP7807701B2 - Type discrimination device - Google Patents

Type discrimination device

Info

Publication number
JP7807701B2
JP7807701B2 JP2025032209A JP2025032209A JP7807701B2 JP 7807701 B2 JP7807701 B2 JP 7807701B2 JP 2025032209 A JP2025032209 A JP 2025032209A JP 2025032209 A JP2025032209 A JP 2025032209A JP 7807701 B2 JP7807701 B2 JP 7807701B2
Authority
JP
Japan
Prior art keywords
drug
image
unit
sorting
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2025032209A
Other languages
Japanese (ja)
Other versions
JP2025078712A (en
Inventor
信紀 兒嶋
剛 阿部
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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
Publication of JP2025078712A publication Critical patent/JP2025078712A/en
Priority to JP2026002171A priority Critical patent/JP2026063020A/en
Application granted granted Critical
Publication of JP7807701B2 publication Critical patent/JP7807701B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Medical Preparation Storing Or Oral Administration Devices (AREA)
  • Image Analysis (AREA)

Description

本発明は、薬剤の種類を自動で判別する種類判別装置、薬剤を仕分ける薬剤仕分装置等に関する。 The present invention relates to a type discrimination device that automatically discriminates the type of medicine, a medicine sorting device that sorts medicines, etc.

従来、返品された複数種類の薬剤は、薬剤師または医師の手により種類毎に仕分けられていた。返品される薬剤は、様々な患者に処方される、または処方された調剤後の薬剤である。そのため、1患者単位の処方箋情報に基づいて、調剤機器等に予め薬種単位でまとめられた薬種群(薬剤カセット)から、一服用時期単位毎に、(1種または複数種の)薬剤(錠剤)を取りまとめる(分包する)調剤業務に比べて、複数の患者に処方された薬剤がまとめて返品される薬剤の種類は非常に多い。そのため、返品された薬剤を自動的に仕分けて、再利用することの有用性は高い。なお、一服用時期用に調剤される薬剤は、一般に2~3種類程度であり、多くても10種類程度である。 Conventionally, returned medications of multiple types have been sorted by type by pharmacists or doctors. The returned medications are either prescribed to various patients or have been dispensed. Therefore, compared to the dispensing process of assembling (packaging) (one or more types of) medications (tablets) for each dosage period from groups of medications (medication cassettes) pre-organized by medication type in dispensing equipment, etc., based on prescription information for each patient, the number of types of medications returned together, which are prescribed for multiple patients, is significantly greater. Therefore, it would be highly useful to automatically sort and reuse returned medications. Note that the number of medications dispensed for each dosage period is generally around two to three, and at most around ten.

なお、仕分け業務にかかる時間、手間、または仕分け間違い(薬剤カセットへの戻し間違い)による誤投与のリスクを避けるため、返品された薬剤を、そのまま廃棄する薬局または病院(正確には院内薬剤部)も存在している。 However, to avoid the time and effort required for sorting, or the risk of mis-administration due to incorrect sorting (putting the wrong medication back into the medication cassette), some pharmacies or hospitals (or more accurately, their in-house pharmacy departments) simply discard returned medications.

特許文献1には、返品されたアンプルまたはバイアルを自動的に認識して格納する薬剤仕分装置が開示されている。この薬剤仕分装置は、アンプルまたはバイアルの向き及び姿勢と、アンプルまたはバイアルの性状(例:形状、大きさ、種類及び使用期限)とを認識する。そして、認識されたアンプルまたはバイアルの大きさに応じて格納時に個々のアンプルまたはバイアルに設定される格納領域と、個々のアンプルまたはバイアルの識別情報とを関連付けて、アンプルまたはバイアルを個別に配置し、それによって個別のアンプルまたはバイアルを取り出し可能に格納する。 Patent Document 1 discloses a drug sorting device that automatically recognizes and stores returned ampoules or vials. This drug sorting device recognizes the orientation and posture of the ampule or vial, as well as the properties of the ampule or vial (e.g., shape, size, type, and expiration date). It then associates the identification information of each ampule or vial with the storage area set for that ampule or vial when it is stored based on the recognized size of the ampule or vial, and individually arranges the ampoules or vials, thereby storing them so that they can be removed.

国際公開第2015/170761号(2015年11月12日公開)International Publication No. 2015/170761 (Published November 12, 2015)

特許文献1での返品対象は、アンプルまたはバイアルであり、錠剤またはカプセル等の、容器等に収容されていない薬剤、または包装等が施されていない薬剤自体ではない。そのため、特許文献1では、このような薬剤(例:錠剤またはカプセル)そのものを判別すること、さらには、このような薬剤を自動的に仕分けることについてまでは想定されていない。 Patent Document 1 covers ampoules or vials as items for return, not tablets, capsules, or other medications that are not contained in a container, or medications themselves that are not packaged. Therefore, Patent Document 1 does not anticipate identifying such medications (e.g., tablets or capsules) themselves, or even automatically sorting such medications.

本発明の一態様は、錠剤またはカプセル等の容器等に収容されていない薬剤の種類の判別ができ、当該判別の精度を向上させることが可能な種別判別装置等を実現することを目的とする。 One aspect of the present invention aims to realize a type discrimination device that can identify the type of medicine that is not contained in a container, such as a tablet or capsule, and can improve the accuracy of such discrimination.

また、本発明の一態様は、錠剤またはカプセル等の容器等に収容されていない薬剤の仕分けができ、当該仕分けの効率を向上させることが可能な薬剤仕分装置を実現することを目的とする。 Another aspect of the present invention is to realize a medicine sorting device that can sort medicines that are not contained in containers, such as tablets or capsules, and can improve the efficiency of such sorting.

また、本発明の一態様は、錠剤またはカプセル等の容器等に収容されていない薬剤の種類の判別ができ、当該薬剤の種類の判別に用いる画像を作成するための画像のデータ容量を低減することができる種別判別装置等を実現することを目的とする。 Another aspect of the present invention aims to realize a type discrimination device or the like that can discriminate the type of medication that is not contained in a container such as a tablet or capsule, and that can reduce the image data volume required to create the image used to discriminate the type of medication.

上記の課題を解決するために、本発明の一態様に係る種類判別装置は、対象薬剤を撮像した撮像画像から、前記対象薬剤の種類を判別する種類判別装置であって、前記撮像画像から、前記対象薬剤に対して照射された光の反射領域を示す反射領域情報を少なくとも含む、前記対象薬剤の外観の特徴を示す第1特徴情報を抽出する特徴抽出部と、基準薬剤に対して照射された光の反射領域を示す反射領域情報を少なくとも含む、前記基準薬剤の外観の特徴を示す第2特徴情報と、前記第1特徴情報とを照合し、該照合の結果に基づいて前記対象薬剤の種類を判別する判別部と、を備える。 In order to solve the above problem, one aspect of the present invention provides a type discrimination device that discriminates the type of a target drug from an image of the target drug, and includes: a feature extraction unit that extracts, from the image, first feature information that indicates the external characteristics of the target drug, including at least reflection area information that indicates the reflection area of light irradiated onto the target drug; and a discrimination unit that compares the first feature information with second feature information that indicates the external characteristics of the reference drug, including at least reflection area information that indicates the reflection area of light irradiated onto a reference drug, and discriminates the type of the target drug based on the comparison result.

また、本発明の一態様に係る種類判別装置は、対象薬剤を撮像した撮像画像から、前記対象薬剤の種類を判別する種類判別装置であって、前記撮像画像から、前記対象薬剤に対して照射された光が前記対象薬剤によって反射されているか否かを示す反射情報を少なくとも含む、前記対象薬剤の外観の特徴を示す第3特徴情報を抽出する特徴抽出部と、基準薬剤に対して照射された光が当該基準薬剤によって反射されているか否かを示す反射情報を少なくとも含む、前記基準薬剤の外観の特徴を示す第4特徴情報と、前記第3特徴情報とを照合し、該照合の結果に基づいて前記対象薬剤の種類を判別する判別部と、を備える。 A type discrimination device according to one aspect of the present invention is a type discrimination device that discriminates the type of a target drug from an image of the target drug, and includes: a feature extraction unit that extracts third feature information indicating the external characteristics of the target drug, which includes at least reflection information indicating whether light irradiated onto the target drug is reflected by the target drug, from the image; and a discrimination unit that compares the third feature information with fourth feature information indicating the external characteristics of the reference drug, which includes at least reflection information indicating whether light irradiated onto a reference drug is reflected by the reference drug, and discriminates the type of the target drug based on the result of the comparison.

また、本発明の一態様に係る種類判別装置は、対象薬剤を撮像した撮像画像から、前記対象薬剤の種類を判別する種類判別装置であって、前記撮像画像から抽出された、前記対象薬剤の色を示す対象色情報を含む前記対象薬剤の外観の特徴を示す第5特徴情報と、基準薬剤の色を示す基準色情報を含む第6特徴情報とを照合し、該照合の結果に基づいて前記対象薬剤の種類を判別する判別部と、前記判別部が前記対象薬剤の種類の判別に失敗した場合に、ユーザによる操作を受け付けた後、当該判別に使用された、前記対象色情報を、新たな前記基準色情報として更新する更新部と、を備える。 A type discrimination device according to one aspect of the present invention is a type discrimination device that discriminates the type of a target drug from an image of the target drug, and includes a discrimination unit that compares fifth feature information indicating the external characteristics of the target drug, including target color information indicating the color of the target drug, extracted from the image, with sixth feature information including reference color information indicating the color of a reference drug, and discriminates the type of the target drug based on the comparison result; and an update unit that, if the discrimination unit fails to discriminate the type of the target drug, updates the target color information used for the discrimination as new reference color information after receiving an operation from a user.

また、本発明の一態様に係る種類判別装置は、対象薬剤を撮像した撮像画像から、前記対象薬剤の種類を判別する種類判別装置であって、前記撮像画像から、前記対象薬剤の表面に表示されている識別情報、および、前記対象薬剤の像に対する前記識別情報の表示領域の相対位置を示す第1位置情報を少なくとも含む、前記対象薬剤の外観の特徴を示す第7特徴情報を抽出する特徴抽出部と、前記第7特徴情報と、基準薬剤が特定の薬剤であるか否か示す特定薬剤情報、当該基準薬剤の表面に表示されている識別情報、および、当該基準薬剤の撮像画像における当該基準薬剤の像に対する前記識別情報の表示領域の相対位置を示す第2位置情報を少なくとも含む、前記基準薬剤の外観の特徴を示す第8特徴情報とを照合し、該照合の結果に基づいて前記対象薬剤の種類を判別する判別部と、を備え、前記判別部は、前記特定薬剤情報によって前記基準薬剤が特定の薬剤であると示されている場合に、前記第1位置情報と前記第2位置情報とを前記対象薬剤の種類の判別に用いずに、前記判別した対象薬剤が前記基準薬剤と同種の薬剤であるか否かを判別する。 A type discrimination device according to one aspect of the present invention is a type discrimination device that discriminates the type of a target drug from an image of the target drug, and includes: a feature extraction unit that extracts seventh feature information indicating characteristics of the appearance of the target drug from the image, the seventh feature information including at least identification information displayed on the surface of the target drug and first position information indicating the relative position of a display area of the identification information with respect to the image of the target drug; and a discrimination unit that compares the seventh feature information with eighth feature information indicating characteristics of the appearance of the reference drug, the eighth feature information including at least specific drug information indicating whether a reference drug is a specific drug, the identification information displayed on the surface of the reference drug, and second position information indicating the relative position of a display area of the identification information with respect to the image of the reference drug in the image of the reference drug, and discriminates the type of the target drug based on the comparison result; and when the specific drug information indicates that the reference drug is a specific drug, the discrimination unit determines whether the discriminated target drug is the same type of drug as the reference drug without using the first position information and the second position information to discriminate the type of the target drug.

また、本発明の一態様に係る薬剤仕分装置は、複数種類の薬剤を収容する第1収容部と、前記薬剤を種類毎に収容する第2収容部と、前記第2収容部に収容しない薬剤を仮置きする仮収容部と、前記第1収容部から取出した対象薬剤を撮像する撮像部と、撮像した撮像画像から、前記対象薬剤の種類を判別する判別部と、前記判別部の判別履歴における判別の頻度に応じた優先度を前記薬剤の種類ごとに決定する優先度決定部と、前記判別部により判別された前記対象薬剤の種類に対応する前記優先度が所定の値よりも低い場合に当該対象薬剤を前記仮収容部に仮置きすることを決定する仕分決定部と、を備えている。 A drug sorting device according to one aspect of the present invention includes a first storage unit that stores multiple types of drugs, a second storage unit that stores the drugs by type, a temporary storage unit that temporarily stores drugs that are not stored in the second storage unit, an imaging unit that captures images of the target drugs removed from the first storage unit, a discrimination unit that determines the type of the target drugs from the captured image, a priority determination unit that determines a priority for each type of drug based on the frequency of discrimination in the discrimination history of the discrimination unit, and a sorting determination unit that determines to temporarily store the target drug in the temporary storage unit if the priority corresponding to the type of target drug discriminated by the discrimination unit is lower than a predetermined value.

また、本発明の一態様に係る種類判別装置は対象薬剤を撮像した撮像画像から、前記対象薬剤の種類を判別する種類判別装置であって、前記対象薬剤の種類判別のための基準薬剤の画像を生成するために、前記対象薬剤の像を含む撮像画像から、前記対象薬剤の像の領域である第1領域および前記第1領域を含む前記対象薬剤を載置している載置台の像の領域である第2領域を切り出した切り出し画像のうちの少なくとも1つの切り出し画像を生成する画像処理部を備えている。 In addition, a type discrimination device according to one aspect of the present invention is a type discrimination device that discriminates the type of a target drug from an image of the target drug, and includes an image processing unit that generates at least one cut-out image from an image including the target drug, the cut-out image including a first region that is the region of the image of the target drug and a second region that is the region of the image of the table on which the target drug is placed, in order to generate an image of a reference drug for discriminating the type of the target drug.

また、本発明の一態様に係る画像生成システムは、(1)対象薬剤を撮像した撮像画像から、前記対象薬剤の種類を判別する種類判別装置と、(2)前記種類判別装置と通信可能に接続でき、前記対象薬剤の種類判別のための基準薬剤の画像を生成する情報処理装置と、を備える画像生成システムであって、前記種類判別装置は、前記対象薬剤の像を含む撮像画像から、前記対象薬剤の像の領域である第1領域、または、前記第1領域を含む前記対象薬剤を載置している載置台の像の領域である第2領域を切り出した切り出し画像を生成し、前記情報処理装置は、前記種類判別装置が生成した前記切り出し画像に基づいて前記基準画像を生成する。 An image generation system according to one aspect of the present invention includes: (1) a type discrimination device that discriminates the type of a target drug from an image of the target drug; and (2) an information processing device that can be communicatively connected to the type discrimination device and generates an image of a reference drug for discriminating the type of the target drug. The type discrimination device generates a cut-out image by cutting out, from an image containing an image of the target drug, a first region that is the region of the image of the target drug or a second region that is the region of an image of a table on which the target drug is placed, including the first region. The information processing device generates the reference image based on the cut-out image generated by the type discrimination device.

また、本発明の一態様に係る画像生成システムは、(1)対象薬剤を撮像した撮像画像から、前記対象薬剤の種類を判別する種類判別装置と、(2)前記種類判別装置と通信可能に接続でき、前記対象薬剤の種類判別のための基準薬剤の画像を生成する情報処理装置と、を備える画像生成システムであって、前記種類判別装置は、前記対象薬剤の像を含む撮像画像から、前記対象薬剤の像の領域である第1領域および前記第1領域を含む前記対象薬剤を載置している載置台の像の領域である第2領域を切り出した切り出し画像のうちの少なくとも1つの切り出し画像を生成し、前記情報処理装置は、前記種類判別装置が生成した前記切り出し画像に基づいて前記基準画像を生成する。 An image generation system according to one aspect of the present invention includes: (1) a type discrimination device that discriminates the type of a target drug from an image of the target drug; and (2) an information processing device that can be communicatively connected to the type discrimination device and generates an image of a reference drug for discriminating the type of the target drug. The type discrimination device generates at least one of cut-out images obtained by cutting out a first region, which is the region of the image of the target drug, and a second region, which is the region of the image of a table on which the target drug is placed, including the first region, from an image containing the image of the target drug. The information processing device generates the reference image based on the cut-out image generated by the type discrimination device.

本発明の一態様に係る種類判別装置によれば、薬剤の判別の精度を向上させることができる。 A type discrimination device according to one aspect of the present invention can improve the accuracy of drug discrimination.

また、本発明の一態様に係る薬剤仕分装置によれば、薬剤の仕分けの効率を向上させることができる。 Furthermore, a medicine sorting device according to one aspect of the present invention can improve the efficiency of medicine sorting.

また、本発明の一態様に係る種類判別装置によれば、薬剤の種類の判別に用いる画像を作成するための画像のデータ容量を低減することができる。 Furthermore, with the type discrimination device according to one aspect of the present invention, it is possible to reduce the image data volume required to create images used to discriminate the type of medication.

また、本発明の一態様に係る画像生成システムによれば、当該薬剤の種類の判別に用いる画像を作成するための画像のデータ容量を低減することができる。 Furthermore, with the image generation system according to one aspect of the present invention, it is possible to reduce the image data volume required to create the image used to identify the type of medication.

薬剤仕分装置の全体構成を示すブロック図である。1 is a block diagram showing the overall configuration of a medicine sorting device. 薬剤仕分装置の構成例を示す図である。FIG. 1 is a diagram illustrating an example of the configuration of a medicine sorting device. 撮像ユニットの全体構成を示す斜視図と、薬剤載置台の一例を示す斜視図である。1A and 1B are perspective views showing the overall configuration of an imaging unit and an example of a medicine placing table, respectively. 撮像ユニットの旋回について説明するための図である。FIG. 10 is a diagram for explaining the rotation of the imaging unit. 撮像ユニットの構成を模式的に示す図である。FIG. 2 is a diagram schematically illustrating the configuration of an imaging unit. 撮像画像における対象薬剤によって反射した光の反射領域の一例を示す図である。FIG. 10 is a diagram showing an example of a reflection region of light reflected by a target drug in a captured image. 判別部の判別処理の一例を示すフローチャートである。10 is a flowchart illustrating an example of a determination process performed by a determination unit. 特徴抽出部が抽出する対象薬剤の厚みの一例を示す図である。FIG. 10 is a diagram showing an example of the thickness of a target drug extracted by a feature extraction unit. 薬剤データベース更新部の更新処理の一例を示すフローチャートである。10 is a flowchart showing an example of an update process of a medicine database update unit. 判別部の判別処理の一例を示すフローチャートである。10 is a flowchart illustrating an example of a determination process performed by a determination unit. 対象薬剤または基準薬剤の像に対する識別情報の表示領域の相対位置の一例を示す図である。FIG. 10 is a diagram showing an example of the relative position of a display area for identification information with respect to an image of a target drug or a reference drug. 対象薬剤の像に対する識別情報の表示領域の相対位置と基準薬剤の像に対する識別情報の表示領域の相対位置との比較の一例を示す図である。FIG. 10 is a diagram showing an example of a comparison between the relative position of a display area of identification information with respect to an image of a target drug and the relative position of a display area of identification information with respect to an image of a reference drug. 仕分制御部の薬剤仕分処理の一例を示すフローチャートである。10 is a flowchart showing an example of a medicine sorting process of the sorting control unit. 印刷出力制御部の印刷制御処理の一例を示すフローチャートである。10 is a flowchart illustrating an example of a print control process of a print output control unit. 薬剤仕分装置の故障判定処理の一例を示すフローチャートである。10 is a flowchart showing an example of a malfunction determination process of the medicine sorting device. 画像生成システムの一例を示す図である。FIG. 1 illustrates an example of an image generation system. 画像生成部の切り出し処理の一例を示すフローチャートである。10 is a flowchart illustrating an example of a cutout process performed by an image generating unit. 切り出し画像の一例を示す図である。FIG. 10 is a diagram illustrating an example of a cut-out image. 画像処理部73によって行われる撮像画像からの切り出し処理の一例を示す図である。10A and 10B are diagrams illustrating an example of a process of cutting out an image from a captured image performed by an image processing unit 73. FIG. 薬剤仕分装置の一部の構成の一例を示すブロック図である。FIG. 2 is a block diagram showing an example of a configuration of a part of the medicine sorting device. 薬剤仕分装置による仕分カップの形状モデル生成処理の一例を示すフローチャートである。10 is a flowchart showing an example of a process for generating a shape model of a sorting cup performed by the medicine sorting device. 仕分カップの撮像画像および仕分カップの形状モデルの一例を示す図である。10A and 10B are diagrams illustrating an example of a captured image of a sorting cup and a shape model of the sorting cup. 薬剤仕分装置による残薬確認のための薬剤検出処理の一例を示すフローチャートである。10 is a flowchart showing an example of a medicine detection process for checking remaining medicines by the medicine sorting device. 仕分カップの撮像画像、仕分カップの内部の像を抽出した抽出画像、形状モデルおよび抽出画像におけるマッチング領域の画像の一例を示す図である。10A and 10B are diagrams showing an example of a captured image of a sorting cup, an extracted image of the inside of the sorting cup, a shape model, and an image of a matching region in the extracted image. 薬剤仕分装置の印字処理の一例を示すフローチャートである。10 is a flowchart showing an example of a printing process of the medicine sorting device. 薬剤判別システムの一例を示す図である。FIG. 1 is a diagram illustrating an example of a drug discrimination system. 薬剤仕分装置の判別処理の一例を示すフローチャートである。10 is a flowchart showing an example of a discrimination process of the medicine sorting device. 対象薬剤の識別情報、ユーザ採用薬リストにおける基準薬剤の識別情報および薬剤総合データベースにおける基準薬剤の識別情報の一例を示す図である。10 is a diagram showing an example of identification information of a target drug, identification information of a reference drug in a user's adopted drug list, and identification information of a reference drug in a comprehensive drug database. FIG. 第1収容部の一例を示す図である。FIG. 4 is a diagram illustrating an example of a first storage section. 薬剤の仕分結果を表示可能な初期画像(初期画面)の一例を示す図である。FIG. 10 is a diagram showing an example of an initial image (initial screen) on which the results of medicine sorting can be displayed. 持参薬仕分けモードに設定されたときに、ユーザが第1収容部への持参薬の収容方法を設定するための設定画像(設定画面)の一例を示す図である。This figure shows an example of a setting image (setting screen) that allows the user to set the method of storing brought-in medications in the first storage section when the brought-in medication sorting mode is set. 持参薬仕分けモードに設定されたときの、持参薬の仕分状況を表示するための仕分画像の一例を示す図である。10 is a diagram showing an example of a sorting image for displaying the sorting status of brought-by medications when the brought-by medication sorting mode is set. FIG.

〔実施形態1〕
(薬剤仕分装置1の概要)
まず、薬剤仕分装置1の概要について図1および図2を用いて説明する。図1は、薬剤仕分装置1の全体構成を示すブロック図である。図2は、薬剤仕分装置1の構成例を示す図であり、2001は薬剤仕分装置1の斜視図であり、2002は、薬剤仕分領域2の基本構成を示す斜視図である。図1、並びに、図2の2001および2002に示すように、薬剤仕分装置1は、薬剤仕分領域2、タッチパネル3、印刷出力部4および分包機構6を備える。
[Embodiment 1]
(Overview of medicine sorting device 1)
First, an overview of the medicine sorting device 1 will be described using Figures 1 and 2. Figure 1 is a block diagram showing the overall configuration of the medicine sorting device 1. Figure 2 is a diagram showing an example of the configuration of the medicine sorting device 1, with reference numeral 2001 being a perspective view of the medicine sorting device 1 and reference numeral 2002 being a perspective view showing the basic configuration of the medicine sorting area 2. As shown in Figure 1 and 2001 and 2002 of Figure 2, the medicine sorting device 1 includes the medicine sorting area 2, a touch panel 3, a print output unit 4, and a packaging mechanism 6.

薬剤仕分装置1は、複数種類の薬剤のそれぞれについて撮像し、撮像の結果得られた画像に基づき薬剤の種類を判別し、種類毎に薬剤を仕分ける。具体的には、薬剤仕分領域2においてこの処理が行われる。薬剤仕分領域2(薬剤仕分装置1の内部構成)の詳細については後述する。なお、種類毎に仕分けられた薬剤は、ユーザによる目視鑑査が行われた後、分包されたり、薬剤棚または分包機へと返却されたりする。 The medicine sorting device 1 takes an image of each of multiple types of medicine, determines the type of medicine based on the image obtained from the image, and sorts the medicines by type. Specifically, this process is performed in the medicine sorting area 2. Details of the medicine sorting area 2 (the internal configuration of the medicine sorting device 1) will be described later. After the medicines have been sorted by type, they are visually inspected by the user and then packaged or returned to the medicine shelf or packaging machine.

本実施形態では、複数種類の薬剤は、容器等に収容されていない薬剤、または包装等が施されていない薬剤であり、その一例として、錠剤またはカプセルであるものとして説明する。また、複数種類の薬剤が返品された薬剤であるものとして説明する。当該薬剤は、薬局または病院における採用薬が当該薬局または病院にて「返品薬」として返品される薬剤である。但し、複数種類の薬剤は、当該薬局または病院において、当該採用薬以外に、他の薬局または病院で発行された薬剤も含み得る「持参薬」であっても構わない。薬剤仕分装置1は、薬剤が返品された後、撮像から仕分までの処理を自動的に行うことが可能である。 In this embodiment, the multiple types of medications are medications that are not contained in a container or are not packaged, and examples of these are tablets or capsules. The multiple types of medications are also described as returned medications. These medications are medications used by a pharmacy or hospital that are returned to the pharmacy or hospital as "returned medications." However, the multiple types of medications may also be "brought-in medications" that may include medications issued by other pharmacies or hospitals in addition to the medications used by the pharmacy or hospital. After the medications are returned, the medication sorting device 1 can automatically perform processes from imaging to sorting.

タッチパネル3は、操作部31にて各種ユーザ入力を受け付けるとともに、表示部32にて各種画像(例:薬剤仕分の推移を示す画像、目視鑑査用の画像)を表示する。 The touch panel 3 accepts various user inputs via the operation unit 31 and displays various images (e.g., images showing the progress of drug sorting, images for visual inspection) on the display unit 32.

印刷出力部4は、目視鑑査後のユーザ入力に従って、目視鑑査後の薬剤に関する薬剤データ(例:薬剤名、製造元または成分を示すデータ)を表すジャーナルを印字する。薬剤データには、薬剤固有の画像を示す画像データが含まれていてもよい。 The print output unit 4 prints a journal representing drug data (e.g., data indicating the drug name, manufacturer, or ingredients) related to the drug after visual inspection, in accordance with user input after visual inspection. The drug data may include image data representing a drug-specific image.

分包機構6は仕分けられた薬剤を分包する。分包機構6はオプション機構である。分包機構6が薬剤仕分装置1に備えられる場合、返品された薬剤の仕分から、目視鑑査を経た後の分包までの処理を、薬剤仕分装置1で一括して行うことが可能となる。特に、搬送・仕分ユニット12により分包機構6へ薬剤が投入される場合には、目視鑑査を除き、上記仕分から分包までの処理を自動で行うことができる。 The packaging mechanism 6 packages the sorted medications. The packaging mechanism 6 is an optional mechanism. When the packaging mechanism 6 is provided in the medication sorting device 1, the medication sorting device 1 can perform all processes, from sorting returned medications to packaging after visual inspection, all at once. In particular, when medications are fed into the packaging mechanism 6 by the transport/sorting unit 12, the above processes from sorting to packaging can be performed automatically, except for visual inspection.

分包機構6としては、従来から用いられている錠剤分包機または散薬分包機の分包部を採用することが可能である。この場合、例えば、同一薬種毎に仕分けられた仕分カップ141内の薬剤を、一包または複数包に分包することができる。 The packaging mechanism 6 can be a packaging unit of a conventional tablet packaging machine or powder packaging machine. In this case, for example, medications in a sorting cup 141 sorted by drug type can be packaged into one or more packets.

なお、本願明細書を通して、少なくとも薬剤仕分装置1の説明において用いられる「分包」には、「処方データに基づいて服用時期毎に分けて薬剤を包装する」という意味と、「処方データに関係なく、第2収容部14に仕分けられた薬剤を単に包装する」という意味と、が包含されることに留意されたい。 Please note that throughout this specification, the term "packaging," as used at least in the description of the medicine sorting device 1, encompasses both the meaning of "packaging medicines according to their dosing period based on prescription data" and the meaning of "simply packaging the medicines sorted into the second storage section 14 regardless of the prescription data."

また、薬剤仕分装置1は、第1RFID(Radio Frequency Identifier)リーダ・ライタユニット5を備えている。第1RFIDリーダ・ライタユニット5は、図2の2002に示すように、台座19の、薬剤の取出し側に設けられている。 The medicine sorting device 1 also includes a first RFID (Radio Frequency Identifier) reader/writer unit 5. The first RFID reader/writer unit 5 is provided on the medicine removal side of the base 19, as shown at 2002 in Figure 2.

第1RFIDリーダ・ライタユニット5は、第2収容部14の各仕分カップ141の底部に設けられたRFIDタグ(不図示)に記憶された、各仕分カップ141に格納された薬剤に関するデータを読取る。当該データとしては、例えば、格納された薬剤の個数を示すデータ、薬剤を識別するための薬剤識別データ(例:GS1コード)、仕分カップ141の種別を示すデータ、および、仕分カップ141を識別するための仕分カップ識別情報(RFIDタグに付与された識別情報)が挙げられる。なお、仕分カップ141に格納された薬剤の薬剤データ(例:薬剤名)、および撮像ユニット13が取得した画像データ等については、仕分カップ識別情報に紐付けて薬剤データベース81に記憶される。 The first RFID reader/writer unit 5 reads data related to the medications stored in each sorting cup 141, which is stored on an RFID tag (not shown) attached to the bottom of each sorting cup 141 in the second storage section 14. This data includes, for example, data indicating the number of medications stored, medication identification data (e.g., GS1 code) for identifying the medication, data indicating the type of sorting cup 141, and sorting cup identification information (identification information attached to the RFID tag) for identifying the sorting cup 141. The medication data (e.g., medication name) of the medications stored in the sorting cup 141 and image data acquired by the imaging unit 13 are linked to the sorting cup identification information and stored in the medication database 81.

また、上記データは、目視鑑査によって決定された薬剤データ(目視鑑査後の薬剤データ)を含んでもよい。また、上記RFIDタグに目視鑑査後の薬剤データを書込んでもよい。目視鑑査後の薬剤データは、対応する仕分カップ141に格納された薬剤を、(1)分包機構6、もしくは薬剤仕分装置1とは異なる分包機で分包する時、または(2)薬剤棚へ返却する時に用いられる。なお、これらの薬剤データも、仕分カップ識別情報に紐付けて薬剤データベースに記憶されてよい。 The data may also include drug data determined by visual inspection (drug data after visual inspection). Furthermore, the drug data after visual inspection may be written to the RFID tag. The drug data after visual inspection is used when the drugs stored in the corresponding sorting cup 141 are (1) packaged by the packaging mechanism 6 or a packaging machine other than the drug sorting device 1, or (2) returned to the drug shelf. These drug data may also be linked to the sorting cup identification information and stored in the drug database.

また、図2の2001に示すように、薬剤仕分装置1は、薬剤の取出し側を開閉可能とする開閉シャッター51と開閉扉52とを備えている。 In addition, as shown in 2001 in Figure 2, the medicine sorting device 1 is equipped with an opening/closing shutter 51 and an opening/closing door 52 that allow the medicine removal side to be opened and closed.

(薬剤仕分領域2の基本構成)
次に、図1および図2の2002を用いて、薬剤仕分領域2の基本構成(薬剤仕分装置1の内部構成)について説明する。
(Basic configuration of medicine sorting area 2)
Next, the basic configuration of the medicine sorting area 2 (internal configuration of the medicine sorting device 1) will be described with reference to Figures 1 and 2002 in Figure 2.

図1および図2の2002に示すように、薬剤仕分領域2は、ハードウェアとして主に、第1収容部11、搬送・仕分ユニット12(仕分部)、撮像ユニット13、第2収容部14、待機トレイ15、回収トレイ16、薬剤投入口17および第2RFIDリーダ・ライタユニット18を備える。そして、搬送・仕分ユニット12を除く各部材は台座19に設けられている。搬送・仕分ユニット12、撮像ユニット13、および第2RFIDリーダ・ライタユニット18の主要機能については、後述の各処理の説明において詳細に説明する。 As shown in 2002 in Figures 1 and 2, the drug sorting area 2 mainly comprises, as hardware, a first storage section 11, a transport/sorting unit 12 (sorting section), an imaging unit 13, a second storage section 14, a waiting tray 15, a collection tray 16, a drug insertion port 17, and a second RFID reader/writer unit 18. Each component except for the transport/sorting unit 12 is mounted on a base 19. The main functions of the transport/sorting unit 12, the imaging unit 13, and the second RFID reader/writer unit 18 will be explained in detail in the explanations of each process below.

第1収容部11は、ユーザによって返品された複数種類の薬剤を混在した状態で収容する。本実施例では、第1収容部11は、複数の収容部に分割されている。この場合、例えば、1つの収容部に収容された薬剤の全てが搬送・仕分ユニット12によって搬送されると、当該収容部に隣接する収容部に収容された薬剤が搬送対象となる。また、第1収容部11がZ軸(円柱形状の中心)に対して回動可能に設けられてもよい。この場合、コンピュータ(種類判別装置)60の制御部60aは、例えば1つの収容部が空になったタイミングで、搬送・仕分ユニット12が薬剤を取得しやすいように第1収容部11を回動させてもよい。 The first storage unit 11 stores a mixture of multiple types of medications returned by users. In this embodiment, the first storage unit 11 is divided into multiple storage units. In this case, for example, when all of the medications stored in one storage unit are transported by the transport/sorting unit 12, the medications stored in the storage unit adjacent to that storage unit become the next to be transported. The first storage unit 11 may also be rotatable about the Z axis (the center of the cylindrical shape). In this case, the control unit 60a of the computer (type determination device) 60 may rotate the first storage unit 11, for example, when one storage unit becomes empty, so that the transport/sorting unit 12 can easily retrieve the medications.

第2収容部14は、薬剤を種類毎に仕分けられた状態で収容する複数の仕分カップ141を備える。制御部60aは、撮像ユニット13で撮像された薬剤の画像に基づき薬剤の種類を判別し、その判別結果に基づき当該薬剤を格納する仕分カップ141を決定する。当該薬剤は、その決定された仕分カップ141に搬送・仕分ユニット12により搬送され、格納される。 The second storage section 14 includes multiple sorting cups 141 that store medications sorted by type. The control section 60a determines the type of medication based on the image of the medication captured by the imaging unit 13, and determines the sorting cup 141 in which to store the medication based on the determination results. The medication is transported to and stored in the determined sorting cup 141 by the transport/sorting unit 12.

待機トレイ15は、薬剤が仮置きされる仮収容部である。例えば、仕分カップ141の全てに薬剤が格納されている場合に、制御部60aによりそれら以外の種類であると判別された薬剤が、待機トレイ15に仮置きされる。この場合、仕分カップ141から薬剤が取り除かれた後、待機トレイ15から当該仕分カップ141に搬送されてもよい。 The waiting tray 15 is a temporary storage unit where medications are temporarily placed. For example, if all of the sorting cups 141 are filled with medications, medications determined by the control unit 60a to be of a type other than those stored in the waiting tray 15 are temporarily placed in the waiting tray 15. In this case, after the medications are removed from the sorting cup 141, they may be transported from the waiting tray 15 to that sorting cup 141.

また、本実施形態では、待機トレイ15には、薬剤であると推定された推定薬剤(後述)が仮置きされても構わない。推定薬剤が仮置きされた場合、例えば、制御部60aの判別結果に応じて、待機トレイ15から第2収容部14の所定領域に推定薬剤が搬送される。 In addition, in this embodiment, a suspected drug (described below) that is suspected to be a drug may be temporarily placed on the waiting tray 15. If a suspected drug is temporarily placed, the suspected drug is transported from the waiting tray 15 to a predetermined area in the second storage unit 14, for example, depending on the determination result of the control unit 60a.

回収トレイ16は、制御部60aにより種類が判別できなかった物(例:薬剤以外の異物)を格納する収容部である。薬剤以外の異物としては、例えば、PTP(Press Through Pack)シートの破片が挙げられる。PTPシートの破片は、薬剤の返品時に第1収容部11に混入する可能性がある。また、制御部60aは、薬剤データベース81に廃棄する薬剤として登録されている薬剤、またはユーザが廃棄することを所望する薬剤(例:製造日の古い薬剤)についても、回収トレイ16に格納する。 The collection tray 16 is a storage unit that stores items whose type cannot be determined by the control unit 60a (e.g., foreign matter other than medication). Examples of foreign matter other than medication include pieces of PTP (Press Through Pack) sheets. These pieces of PTP sheets may become mixed into the first storage unit 11 when medication is returned. The control unit 60a also stores in the collection tray 16 medications that are registered in the medication database 81 as medications to be discarded, or medications that the user wishes to discard (e.g., medications with old manufacturing dates).

薬剤投入口17は、薬剤仕分装置1に分包機構6が備えられている場合に、第2収容部14に格納された薬剤を、搬送・仕分ユニット12により分包機構6へ搬送するためのものである。当然ながら、薬剤仕分装置1に分包機構6が備えられていない場合には、薬剤投入口17は不要な構成である。 When the medicine sorting device 1 is equipped with a packaging mechanism 6, the medicine input port 17 is used to transport medicines stored in the second storage section 14 to the packaging mechanism 6 by the transport/sorting unit 12. Naturally, when the medicine sorting device 1 is not equipped with a packaging mechanism 6, the medicine input port 17 is not required.

また、図1に示すように、薬剤仕分装置1の上記各部材(ハードウェア)を統括して制御するコンピュータ60を備える。コンピュータ60は、制御部60aと記憶部80を備えている。そして、制御部60aには、搬送制御部61、仕分制御部(仕分決定部)62、撮像制御部63、判別部64、優先度決定部65、操作入力部66、表示制御部67、RFID制御部68、印刷出力制御部69、登録部70、分包制御部71、薬剤吸着制御部72、画像処理部73、薬剤データベース更新部(更新部)74、通知制御部75および照明故障判定部76が含まれる。 As shown in FIG. 1, the drug sorting device 1 also includes a computer 60 that controls the above-mentioned components (hardware). The computer 60 includes a control unit 60a and a memory unit 80. The control unit 60a includes a transport control unit 61, a sorting control unit (sorting determination unit) 62, an imaging control unit 63, a discrimination unit 64, a priority determination unit 65, an operation input unit 66, a display control unit 67, an RFID control unit 68, a print output control unit 69, a registration unit 70, a packaging control unit 71, a drug adsorption control unit 72, an image processing unit 73, a drug database update unit (update unit) 74, a notification control unit 75, and a lighting failure determination unit 76.

ここでは、操作入力部66、表示制御部67、RFID制御部68、印刷出力制御部69、登録部70及び分包制御部71の基本的な処理について説明する。搬送制御部61、仕分制御部62、撮像制御部63及び判別部64の基本的な処理については、後述の(撮像ユニット13への薬剤搬送処理)、(薬剤仕分処理)、(薬剤撮像処理)、(画像処理・判別処理)の欄等において詳細に説明する。制御部60aが含むその他の構成による処理については、後述の各実施形態において説明する。 Here, the basic processing of the operation input unit 66, display control unit 67, RFID control unit 68, print output control unit 69, registration unit 70, and packaging control unit 71 will be described. The basic processing of the transport control unit 61, sorting control unit 62, imaging control unit 63, and discrimination unit 64 will be described in detail in the sections below titled (Drug transport processing to imaging unit 13), (Drug sorting processing), (Drug imaging processing), and (Image processing/discrimination processing). Processing by other components included in the control unit 60a will be described in the respective embodiments below.

操作入力部66および表示制御部67は、それぞれタッチパネル3の操作部31および表示部32を制御する。RFID制御部68は、第1RFIDリーダ・ライタユニット5および第2RFIDリーダ・ライタユニット18を制御する。印刷出力制御部69は、操作入力部66が受け付けたユーザ入力に従って、印刷出力部4を制御する。 The operation input unit 66 and display control unit 67 control the operation unit 31 and display unit 32 of the touch panel 3, respectively. The RFID control unit 68 controls the first RFID reader/writer unit 5 and the second RFID reader/writer unit 18. The print output control unit 69 controls the print output unit 4 in accordance with user input received by the operation input unit 66.

登録部70は、判別部64によって画像データに対応する薬剤データが存在しないと判定された薬剤に関する薬剤データを、薬剤データベース81に登録する。具体的には、登録部70は、判別部64により対応する薬剤データが存在しないと判定された薬剤について、当該薬剤の撮像画像82と、ユーザにより特定された薬剤データとを紐付けて薬剤データベース81に登録する。 The registration unit 70 registers drug data relating to drugs for which the discrimination unit 64 has determined that no drug data corresponding to the image data exists in the drug database 81. Specifically, for drugs for which the discrimination unit 64 has determined that no corresponding drug data exists, the registration unit 70 links the captured image 82 of the drug with the drug data specified by the user and registers the linked image in the drug database 81.

なお、薬剤仕分装置1が分包機構6を備える場合には、制御部60aは、分包機構6を制御する分包制御部71を備えることとなる。分包制御部71は、分包機構6の動作を制御する。また、分包制御部71は、搬送・仕分ユニット12を制御することにより、仕分カップ141に格納された薬剤を薬剤投入口17まで搬送する。 When the medicine sorting device 1 is equipped with a packaging mechanism 6, the control unit 60a is equipped with a packaging control unit 71 that controls the packaging mechanism 6. The packaging control unit 71 controls the operation of the packaging mechanism 6. The packaging control unit 71 also controls the transport and sorting unit 12 to transport the medicines stored in the sorting cup 141 to the medicine inlet 17.

また、薬剤仕分装置1は、バーコードリーダ7を備えていても構わない。バーコードリーダ7は、例えば、分包機構6が仕分後の薬剤を分包した薬包(分包紙)に印刷した、当該薬剤の薬剤データを示すバーコードを読取る。これにより、制御部60aは、読取ったバーコードに基づく処理(例:バーコードが示す薬剤データの表示)を行うことができる。なお、分包機構6は、薬包に分包した薬剤の薬剤データを示すバーコードを、当該薬包に印刷するバーコード印刷機構(不図示)を備えていても構わない。 The medicine sorting device 1 may also be equipped with a barcode reader 7. The barcode reader 7 reads, for example, a barcode indicating the medicine data of the medicine printed on the medicine packet (packaging paper) into which the packaging mechanism 6 has packaged the medicine after sorting. This allows the control unit 60a to perform processing based on the read barcode (e.g., displaying the medicine data indicated by the barcode). The packaging mechanism 6 may also be equipped with a barcode printing mechanism (not shown) that prints, on the medicine packet, a barcode indicating the medicine data of the medicine packaged in the medicine packet.

なお、バーコードリーダ7は、薬包等に印刷された薬剤データを示す情報を読取り可能な読取装置であればよい。また、薬剤仕分装置1がバーコードリーダ7を備える必要は必ずしもない。制御部60aが上記情報に基づく処理を行う場合、制御部60aは、バーコードリーダ7を備える外部装置との通信により上記情報を取得すればよい。 The barcode reader 7 may be any reading device capable of reading information indicating drug data printed on a medicine packet or the like. Furthermore, the drug sorting device 1 does not necessarily need to be equipped with a barcode reader 7. When the control unit 60a performs processing based on the above information, the control unit 60a may obtain the above information by communicating with an external device equipped with a barcode reader 7.

また、薬剤仕分装置1は、通知部8を備えていても構わない。通知部8は、例えば、光を点灯するパトライト(登録商標)、音声を出力するスピーカ等を備えている。 The medicine sorting device 1 may also be equipped with a notification unit 8. The notification unit 8 may include, for example, a PATLITE (registered trademark) that emits light, a speaker that outputs sound, etc.

また、コンピュータ60は記憶部80を備える。記憶部80には、複数種類の薬剤に関する薬剤データを管理する薬剤データベース(薬剤マスタ)81が予め記憶されていると共に、薬剤仕分装置1による仕分けが行われるにつれて、撮像画像82等が記憶される。撮像画像82は、第1カメラ131が撮像した画像である。また、撮像画像82は、第1カメラ131が撮像した画像であって、撮像制御部63によって画像処理が施された画像であっても構わない。上記画像処理としては、判別部64が解析対象とする画像(薬剤の特徴を抽出して、薬剤データベース81に含まれる薬剤(基準薬剤)の特徴との比較を可能にするための画像)を生成する処理が挙げられる。例えば、撮像された画像から薬剤の画像を抽出する処理が挙げられる。 The computer 60 also includes a memory unit 80. The memory unit 80 pre-stores a drug database (drug master) 81 that manages drug data for multiple types of drugs, and stores captured images 82 and the like as sorting is performed by the drug sorting device 1. The captured images 82 are images captured by the first camera 131. The captured images 82 may also be images captured by the first camera 131 that have been subjected to image processing by the imaging control unit 63. Examples of the image processing include processing to generate an image to be analyzed by the discrimination unit 64 (an image that extracts drug characteristics and enables comparison with the characteristics of drugs (reference drugs) contained in the drug database 81). For example, processing to extract drug images from captured images may be included.

なお、記憶部80に記憶された各種データは、記憶部80にて管理されていなくてもよく、例えば外部装置で管理されてもよい。この場合、制御部60aは、上記各種データを、必要に応じて、インターネット等の通信回線を通じて当該外部装置から取得してもよい。また、薬剤データベース81は、新たな薬剤データが追加されることにより、更新されてもよい。 The various data stored in the memory unit 80 do not have to be managed by the memory unit 80 itself, but may instead be managed by, for example, an external device. In this case, the control unit 60a may obtain the various data from the external device via a communication line such as the Internet, as necessary. The drug database 81 may also be updated by adding new drug data.

また、記憶部80は、優先度データ83、対象薬剤色データ84、識別情報変更情報85、撮像画像判別情報86および判別回数情報88を備えていてもよい。なお、これらの構成は、薬剤仕分装置1に必須な構成ではない。これらの構成の詳細については、これらの構成を必要とする各実施形態にて説明を行う。 The memory unit 80 may also include priority data 83, target drug color data 84, identification information change information 85, captured image discrimination information 86, and discrimination count information 88. Note that these components are not essential to the drug sorting device 1. Details of these components will be explained in each embodiment that requires them.

(薬剤仕分装置1における処理の概要)
薬剤仕分装置1では、搬送・仕分ユニット12が、第1収容部11に返品された各薬剤を撮像ユニット13まで搬送する。搬送された各薬剤を順次撮像ユニット13が撮像する。制御部60aは、撮像された画像に基づき各薬剤の種類を判別するとともに、判別した各薬剤の第2収容部14における仕分位置を決定する。搬送・仕分ユニット12は、決定された仕分位置に各薬剤を搬送する。そして、第2収容部14に格納された薬剤についての情報は、仕分カップ141のRFIDタグに書き込まれたり、記憶部80に記憶されたり、タッチパネル3に表示されたりする。また、薬剤の仕分が完了した後、または仕分の途中において、ユーザがタッチパネル3を操作することで、目視鑑査、分包等の処理が行われる。以降、各処理について具体的に説明する。
(Overview of processing in medicine sorting device 1)
In the medicine sorting device 1, the transporting/sorting unit 12 transports each medicine returned to the first storage unit 11 to the imaging unit 13. The imaging unit 13 sequentially captures images of each transported medicine. The control unit 60a determines the type of each medicine based on the captured images and determines a sorting position in the second storage unit 14 for each identified medicine. The transporting/sorting unit 12 transports each medicine to the determined sorting position. Information about the medicines stored in the second storage unit 14 is written to the RFID tag of the sorting cup 141, stored in the memory unit 80, or displayed on the touch panel 3. After or during the sorting of the medicines, the user operates the touch panel 3 to perform processes such as visual inspection and packaging. Each process will be described in detail below.

(撮像ユニット13への薬剤搬送処理)
まず、第1収容部11から撮像ユニット13への薬剤搬送処理について、図1および図2の2001を用いて説明する。
(Drug Delivery Process to Imaging Unit 13)
First, the process of transporting medicine from the first container 11 to the imaging unit 13 will be described with reference to 2001 in FIGS. 1 and 2. FIG.

具体的には、搬送・仕分ユニット12は、第1収容部11に収容された薬剤を、撮像ユニット13が薬剤を受け入れる受入領域Ar1(図3の3002参照)まで搬送させる。搬送制御部61は、搬送・仕分ユニット12による当該搬送処理を制御する。 Specifically, the transport and sorting unit 12 transports the medicines stored in the first storage section 11 to the receiving area Ar1 (see 3002 in Figure 3) where the imaging unit 13 receives the medicines. The transport control unit 61 controls the transport process performed by the transport and sorting unit 12.

搬送・仕分ユニット12は、第2カメラ121、吸着・シャッター機構122、および搬送機構123を備える。 The transport and sorting unit 12 includes a second camera 121, a suction and shutter mechanism 122, and a transport mechanism 123.

第2カメラ121は、搬送対象とする薬剤を特定するために、第1収容部11を逐次撮像する。撮像制御部63は、第2カメラ121の撮像処理を制御する。第2カメラ121は、搬送・仕分ユニット12の(具体的には、少なくとも吸着・シャッター機構122を含む筐体の)、台座19と対向する側の端部に設けられる。第2カメラ121は、後述の吸着機構の先端部に設けられてもよい。撮像制御部63は、撮像された画像を解析して、当該画像に薬剤が含まれるか否かを判定する。搬送制御部61は、薬剤が含まれると判定された場合には、例えば、上記先端部を第1収容部11に近づけ、そのとき撮像された画像に含まれる薬剤を搬送対象の薬剤として特定する。 The second camera 121 sequentially captures images of the first storage unit 11 to identify the medication to be transported. The imaging control unit 63 controls the imaging process of the second camera 121. The second camera 121 is provided at the end of the transport/sorting unit 12 (specifically, of the housing including at least the suction/shutter mechanism 122) facing the base 19. The second camera 121 may also be provided at the tip of the suction mechanism described below. The imaging control unit 63 analyzes the captured image and determines whether the image contains medication. If it is determined that medication is included, the transport control unit 61, for example, brings the tip closer to the first storage unit 11 and identifies the medication included in the image captured at that time as the medication to be transported.

吸着・シャッター機構122は、搬送対象として特定された薬剤を吸着する吸着機構と、吸着機構が吸着した薬剤が落下することを防止するシャッター機構とを含む。吸着機構はZ軸方向に移動可能に設けられる。シャッター機構は上記端部の前方に、XY平面と略平行に移動可能に設けられる。 The suction/shutter mechanism 122 includes a suction mechanism that suctions the medicine identified as the delivery target, and a shutter mechanism that prevents the medicine suctioned by the suction mechanism from falling. The suction mechanism is provided so that it can move in the Z-axis direction. The shutter mechanism is provided in front of the end so that it can move approximately parallel to the XY plane.

吸着機構は、薬剤取得時に、上記端部から延伸して、その先端部において、特定された薬剤を吸着した後、上記端部の位置まで戻る。この状態において、搬送制御部61は、上記端部と対向する位置にシャッター機構を移動させ、薬剤搬送中、シャッター機構の位置を維持する(閉状態とする)。搬送制御部61は、受入領域Ar1に配置された薬剤保持機構133の薬剤載置台133a(図3の3002参照)と対向する位置まで吸着・シャッター機構122を移動させると、シャッター機構を上記端部と対向しない位置に移動させる(開状態とする)。そして、吸着機構を上記端部から延伸させた後、吸着状態を解除することにより、薬剤載置台133aに薬剤を載置する。 When acquiring a drug, the suction mechanism extends from the end, adsorbs the identified drug at its tip, and then returns to the end. In this state, the transport control unit 61 moves the shutter mechanism to a position opposite the end and maintains the shutter mechanism's position (closed state) during drug transport. The transport control unit 61 moves the suction/shutter mechanism 122 to a position opposite the drug placement stage 133a (see 3002 in Figure 3) of the drug holding mechanism 133 arranged in the receiving area Ar1, and then moves the shutter mechanism to a position not facing the end (open state). Then, after extending the suction mechanism from the end, the suction state is released, placing the drug on the drug placement stage 133a.

搬送機構123は、搬送制御部61の制御を受けて、X軸およびY軸方向に吸着・シャッター機構122を移動させる。この搬送機構123により、第1収容部11上での搬送対象となる薬剤の探索時の吸着・シャッター機構122の動き、または第1収容部11から薬剤載置台133aまでの薬剤搬送が可能となる。また、薬剤仕分処理においても、薬剤載置台133aから、第2収容部14、待機トレイ15または回収トレイ16への薬剤搬送が可能となる。なお、薬剤仕分処理では、仕分制御部62が、受入領域Ar1に配置された薬剤を、判別部64による判別結果に基づき、搬送・仕分ユニット12を制御して、第2収容部14の所定の仕分カップ141または待機トレイ15まで搬送する。 Under the control of the transport control unit 61, the transport mechanism 123 moves the suction/shutter mechanism 122 in the X-axis and Y-axis directions. This transport mechanism 123 enables the movement of the suction/shutter mechanism 122 when searching for drugs to be transported in the first storage unit 11, or the transport of drugs from the first storage unit 11 to the drug placement table 133a. During the drug sorting process, drugs can also be transported from the drug placement table 133a to the second storage unit 14, waiting tray 15, or collection tray 16. During the drug sorting process, the sorting control unit 62 controls the transport/sorting unit 12 to transport drugs placed in the receiving area Ar1 to a specified sorting cup 141 in the second storage unit 14 or to the waiting tray 15, based on the discrimination result by the discrimination unit 64.

(薬剤撮像処理)
次に、撮像ユニット13による薬剤撮像処理について、図1、図2の2002、図3および図4を用いて説明する。図3の3001および3002は、撮像ユニット13の全体構成を示す斜視図であり、図3の3003は、薬剤載置台133aの一例を示す斜視図である。図4の4001および4002は、撮像ユニット13の旋回について説明するための図である。上記薬剤撮像処理は、主として、撮像ユニット13および撮像制御部63により行われる。
(Drug Imaging Processing)
Next, the medicine imaging process by the imaging unit 13 will be described with reference to Figures 1, 2002 in Figure 2, Figures 3, and 4. 3001 and 3002 in Figure 3 are perspective views showing the overall configuration of the imaging unit 13, and 3003 in Figure 3 is a perspective view showing an example of the medicine placing table 133a. 4001 and 4002 in Figure 4 are diagrams for explaining the rotation of the imaging unit 13. The medicine imaging process is mainly performed by the imaging unit 13 and the imaging control unit 63.

具体的には、撮像ユニット13は、薬剤載置台133aに載置され、図3の3002に示す撮像対象となる薬剤を配置する配置領域Ar2(撮像領域)に配置された薬剤を撮像する。撮像制御部63は、撮像ユニット13による当該撮像処理と、第1カメラ131および照明器134の旋回移動と、薬剤保持機構133の移動とを制御する。撮像ユニット13は、図1および図3に示すように、第1カメラ131(撮像部)、回転機構132(回動部)、薬剤保持機構133(薬剤載置台、移動機構)、および照明器134(紫外光照射部、可視光照射部)を備える。 Specifically, the imaging unit 13 is placed on the medicine placing table 133a and captures an image of the medicine placed in the placement area Ar2 (imaging area) where the medicine to be imaged is placed, as shown at 3002 in Figure 3. The imaging control unit 63 controls the imaging process by the imaging unit 13, the pivoting movement of the first camera 131 and illuminator 134, and the movement of the medicine holding mechanism 133. As shown in Figures 1 and 3, the imaging unit 13 includes the first camera 131 (imaging unit), the rotation mechanism 132 (rotating unit), the medicine holding mechanism 133 (medicine placing table, movement mechanism), and the illuminator 134 (ultraviolet light irradiation unit, visible light irradiation unit).

第1カメラ131は、後述の判別部64において薬剤の種類を判別するために、第1カメラ131と対向する配置領域Ar2に配置された薬剤を撮像する。薬剤保持機構133は、薬剤を保持する機構であり、図3の3001および3002に示すように、薬剤載置台(シャーレ)133aと、旋回機構133b(移動機構)と、薬剤載置台133aおよび旋回機構133bを接続する軸部133cとを備える。薬剤載置台133aは、撮像対象となる薬剤を載置するものである。旋回機構133bは、薬剤載置台133aを移動させるものであり、具体的には、薬剤載置台133aをXY平面に対して旋回させるとともに、軸部133cを、軸部133cの周方向に旋回させる。 The first camera 131 captures images of drugs placed in the placement area Ar2 facing the first camera 131 so that the discrimination unit 64, described below, can identify the type of drug. The drug holding mechanism 133 is a mechanism for holding drugs, and as shown at 3001 and 3002 in Figure 3, includes a drug placement table (petri dish) 133a, a swivel mechanism 133b (movement mechanism), and a shaft 133c connecting the drug placement table 133a and the swivel mechanism 133b. The drug placement table 133a is used to place drugs to be imaged. The swivel mechanism 133b moves the drug placement table 133a; specifically, it rotates the drug placement table 133a relative to the XY plane and rotates the shaft 133c in the circumferential direction of the shaft 133c.

撮像制御部63は、薬剤載置台133aに第1収容部11から搬送された薬剤が載置されると、旋回機構133bを駆動し、当該薬剤載置台133aを受入領域Ar1から配置領域Ar2へと移動させる。その後、少なくとも第1カメラ131および照明器134を制御して、配置領域Ar2に配置された薬剤を撮像する。撮像した画像は記憶部80に撮像画像82として記憶される。撮像制御部63は、例えば撮像が完了した後に、旋回機構133bを駆動し、撮像された薬剤が載置された薬剤載置台133aを配置領域Ar2から受入領域Ar1へと移動させる。 When the medicine transported from the first container 11 is placed on the medicine placing table 133a, the imaging control unit 63 drives the swivel mechanism 133b to move the medicine placing table 133a from the receiving area Ar1 to the placement area Ar2. Then, the imaging control unit 63 controls at least the first camera 131 and the illuminator 134 to capture an image of the medicine placed in the placement area Ar2. The captured image is stored in the memory unit 80 as a captured image 82. For example, after the imaging is completed, the imaging control unit 63 drives the swivel mechanism 133b to move the medicine placing table 133a, on which the imaged medicine is placed, from the placement area Ar2 to the receiving area Ar1.

本実施形態では、薬剤載置台133aは軸部133cの先端部(端部)に2つ設けられている。旋回機構133bは、軸部133cを旋回させることにより、一方の薬剤載置台133aを配置領域Ar2に配置したとき、他方の薬剤載置台133aを受入領域Ar1に配置する。配置領域Ar2での薬剤撮像時に、搬送・仕分ユニット12により、受入領域Ar1に存在する薬剤載置台133aに、第1収容部11から薬剤を搬送しておくことで、連続的な薬剤の撮像処理が可能となる。なお、当該薬剤載置台133aは、第2収容部14への薬剤仕分処理後等、薬剤が載置されていない状態であることが前提である。 In this embodiment, two medicine placing tables 133a are provided at the tip (end) of the shaft 133c. By rotating the shaft 133c, the pivoting mechanism 133b positions one medicine placing table 133a in the placement area Ar2 and the other medicine placing table 133a in the receiving area Ar1. When imaging medicines in the placement area Ar2, the transport/sorting unit 12 transports medicines from the first storage unit 11 to the medicine placing table 133a in the receiving area Ar1, enabling continuous imaging of medicines. Note that it is assumed that no medicines are placed on the medicine placing table 133a, for example, after medicine sorting into the second storage unit 14.

また、本実施形態では、薬剤載置台133aは透明性を有する。そのため、第1カメラ131は、薬剤載置台133aに載置された薬剤を、薬剤載置台133aを通して多方面から撮像できる。 In addition, in this embodiment, the medicine placing table 133a is transparent. Therefore, the first camera 131 can capture images of the medicines placed on the medicine placing table 133a from multiple directions through the medicine placing table 133a.

また、図3の3003に示すように、薬剤載置台133aは底部が凹んだ状態の断面略V字形状であってもよい。また、図3の3003および図4に示すように、薬剤載置台133aが受入領域Ar1および配置領域Ar2に配置されている場合、断面略V字形状の溝方向(軸部133cの延伸方向)は、回転機構132による撮像機構(後述)の旋回軸Ayに対して略平行である。また、薬剤載置台133aの底部は、鋭角なV字形状ではなくてよい。図3の3003に示すように、底部は、底面部133aaと、底面部133aaの対向する2箇所から傾斜した傾斜面部133abとを備えていてもよい。底部の形状は、薬剤載置台133aの裏側から見ても(撮像しても)、薬剤の刻印またはプリントが示す情報(刻印情報または印字情報)を認識できる程度で、かつ薬剤が固定される程度の形状であればよい。 Also, as shown in 3003 of FIG. 3, the medicine mounting table 133a may have a generally V-shaped cross section with a recessed bottom. Furthermore, as shown in 3003 of FIG. 3 and FIG. 4, when the medicine mounting table 133a is placed in the receiving area Ar1 and the placement area Ar2, the groove direction of the generally V-shaped cross section (extension direction of the shaft portion 133c) is generally parallel to the rotation axis Ay of the imaging mechanism (described below) of the rotation mechanism 132. Furthermore, the bottom of the medicine mounting table 133a does not have to be an acute V-shape. As shown in 3003 of FIG. 3, the bottom may have a bottom surface portion 133aa and inclined surface portions 133ab inclined from two opposing points of the bottom surface portion 133aa. The shape of the bottom should be such that the information (engraved information or printed information) engraved or printed on the medicine can be recognized when viewed (photographed) from the back of the medicine placing table 133a, and the medicine can be secured in place.

薬剤がカプセルまたは変形錠(例:ラグビーボール形)の場合、薬剤載置台133aの底部が平坦であれば、XY平面上で薬剤の向きがそろわずに、鮮明な薬剤の画像(刻印情報または印字情報)を取得することが困難になる可能性がある。断面略V字形状であれば、最下端部にカプセルまたは変形錠が嵌合され、当該薬剤を固定できる。そのため、鮮明な薬剤の画像が取得しやすくなる。なお、錠剤の場合には、例えば、軸部133cを軸部133cの周方向に旋回させることで、薬剤載置台133aの平面部分(傾斜面部133ab)を第1カメラ131に対向させることで、当該薬剤を確実に動かないようにしてもよい。 If the medication is a capsule or deformed tablet (e.g., rugby ball-shaped), if the bottom of the medication mounting table 133a is flat, the medication will not be aligned on the XY plane, making it difficult to obtain a clear image of the medication (engraved or printed information). If the cross section is roughly V-shaped, the capsule or deformed tablet fits into the bottom end, fixing the medication in place. This makes it easier to obtain a clear image of the medication. In the case of tablets, for example, the axis 133c can be rotated circumferentially around the axis 133c to position the flat portion (inclined surface 133ab) of the medication mounting table 133a facing the first camera 131, thereby ensuring that the medication does not move.

その他、旋回機構133bは、薬剤載置台133aを振動させる(小さく動かす、ゆする)ことも可能である。この場合、例えば、薬剤載置台133aに載置されたカプセルに振動を与えて転がすことで、カプセルのプリントが付された部分を所定の方向に向かせることができる(例:当該部分を、後述の初期位置に配置された第1カメラ131と対向させることができる)。また、上記振動により、例えば円筒状(底部が円形状)の錠剤が上記平面部分に立った状態で載置されたとしても、錠剤を横に倒す(錠剤の底部が当該平面部分に対向するように配置する)ことができる。 In addition, the rotation mechanism 133b can also vibrate (slightly move or shake) the medicine placing table 133a. In this case, for example, by vibrating and rolling a capsule placed on the medicine placing table 133a, the printed part of the capsule can be oriented in a predetermined direction (e.g., this part can be made to face the first camera 131, which is positioned in its initial position, as described below). Furthermore, with this vibration, even if a cylindrical tablet (with a circular bottom) is placed upright on the flat surface, the tablet can be turned sideways (positioned so that the bottom of the tablet faces the flat surface).

照明器134は、撮像制御部63の制御により、薬剤の撮像時に、薬剤に照射される光を出射する。図5は撮像ユニット13の内部の構成を模式的に示す図である。照明器134は、図3の3001および図5に示すように、薬剤に可視光を照射する可視光照射部(第1照射部134aおよび第2照射部134b)と、薬剤に紫外光を照射する紫外光照射部134cとを備える。 Under the control of the imaging control unit 63, the illuminator 134 emits light that is irradiated onto the drug when imaging the drug. Figure 5 is a diagram schematically showing the internal configuration of the imaging unit 13. As shown in 3001 in Figure 3 and in Figure 5, the illuminator 134 includes a visible light irradiator (first irradiator 134a and second irradiator 134b) that irradiates the drug with visible light, and an ultraviolet light irradiator 134c that irradiates the drug with ultraviolet light.

第1照射部134aおよび第2照射部134bは、可視光として白色光を薬剤に照射する。第1照射部134aはバー形状の可視光源(バー照明)であり、第2照射部134bはリング形状の可視光源(リング照明)である。第1カメラ131は、第1照射部134aまたは第2照射部134bから出射され、薬剤で反射した可視光を受光することにより、可視光に基づく画像(可視光画像)を取得する。撮像制御部63は、第1カメラ131が取得した可視光画像を示す画像データを撮像画像82として記憶部80に記憶する。 The first irradiating unit 134a and the second irradiating unit 134b irradiate the medication with white light as visible light. The first irradiating unit 134a is a bar-shaped visible light source (bar illumination), and the second irradiating unit 134b is a ring-shaped visible light source (ring illumination). The first camera 131 captures an image based on visible light (visible light image) by receiving visible light emitted from the first irradiating unit 134a or the second irradiating unit 134b and reflected by the medication. The imaging control unit 63 stores image data representing the visible light image captured by the first camera 131 in the memory unit 80 as a captured image 82.

紫外光照射部134cは、薬剤に紫外光(例:365nm以上410nm以下のピーク波長を有する光)を照射することで、薬剤に含まれる成分を励起させる。これにより、薬剤から蛍光(例:410nm以上800nm以下のピーク波長を有する光)が取り出される。第1カメラ131は、薬剤から発せられた蛍光を受光することにより、紫外光に基づく画像(紫外光画像)を取得する。撮像制御部63は、第1カメラ131が取得した紫外光画像を示す画像データを撮像画像82として記憶部80に記憶する。 The ultraviolet light irradiation unit 134c irradiates the drug with ultraviolet light (e.g., light having a peak wavelength of 365 nm or more and 410 nm or less), thereby exciting the components contained in the drug. This extracts fluorescence (e.g., light having a peak wavelength of 410 nm or more and 800 nm or less) from the drug. The first camera 131 receives the fluorescence emitted from the drug and acquires an image based on the ultraviolet light (ultraviolet image). The imaging control unit 63 stores image data representing the ultraviolet image acquired by the first camera 131 in the memory unit 80 as an acquired image 82.

回転機構132は、図3および図4に示すように、撮像対象となる薬剤が配置される配置領域Ar2(当該位置に配置された薬剤載置台133a)の周囲を旋回するように第1カメラ131を回動させる。第1カメラ131は、回転機構132が回動させた複数の位置から、配置領域Ar2に配置された薬剤を撮像する。具体的には、第1カメラ131および照明器134を含む撮像機構を、配置領域Ar2の周囲を旋回するように回動させる。そのため、配置領域Ar2に対する第1カメラ131および照明器134の位置関係を維持したまま、第1カメラ131が複数の方向から薬剤を撮像できる。 As shown in Figures 3 and 4, the rotation mechanism 132 rotates the first camera 131 so that it revolves around the placement area Ar2 (the medication placement table 133a placed at that position) where the medication to be imaged is placed. The first camera 131 captures images of the medication placed in the placement area Ar2 from multiple positions to which it is rotated by the rotation mechanism 132. Specifically, the imaging mechanism including the first camera 131 and illuminator 134 rotates so that it revolves around the placement area Ar2. Therefore, the first camera 131 can capture images of the medication from multiple directions while maintaining the positional relationship of the first camera 131 and illuminator 134 with respect to the placement area Ar2.

回転機構132は、図3の3001に示すように、撮像機構駆動部132aと動力伝達機構132bとを含む。撮像機構駆動部132aは、撮像機構を配置領域Ar2の周囲を旋回させるための動力を発生する。動力伝達機構132bは、撮像機構駆動部132aが発生させた動力を撮像機構へと伝達する。撮像機構駆動部132aは、撮像制御部63の制御により駆動し、配置領域Ar2の周囲における撮像機構の位置を変更する。 As shown in FIG. 3 at 3001, the rotation mechanism 132 includes an imaging mechanism drive unit 132a and a power transmission mechanism 132b. The imaging mechanism drive unit 132a generates power to rotate the imaging mechanism around the placement area Ar2. The power transmission mechanism 132b transmits the power generated by the imaging mechanism drive unit 132a to the imaging mechanism. The imaging mechanism drive unit 132a is driven under the control of the imaging control unit 63 to change the position of the imaging mechanism around the placement area Ar2.

回転機構132は、撮像機構を、初期位置と、初期位置と対向する位置との間において旋回させる。初期位置とは、配置領域Ar2に対して略垂直方向の位置であって、配置領域Ar2の上方の位置である。初期位置と対向する位置とは、配置領域Ar2に対して略垂直方向の位置であって、配置領域Ar2の下方の位置である。また、当該位置は、第1カメラ131が配置領域Ar2に存在する薬剤載置台133aの底部と対向する位置であるともいえる。 The rotation mechanism 132 rotates the imaging mechanism between an initial position and a position opposite the initial position. The initial position is a position approximately perpendicular to the placement area Ar2 and above the placement area Ar2. The position opposite the initial position is a position approximately perpendicular to the placement area Ar2 and below the placement area Ar2. This position can also be said to be the position where the first camera 131 faces the bottom of the medicine placement table 133a located in the placement area Ar2.

図4に示すように、配置領域Ar2の中心を通りZ軸と平行な軸を軸Ax0とし、配置領域Ar2の中心および撮像機構の中心を通る軸を軸Ax1とする。また、軸Ax0と軸Ax1とのなす角をθとする。本実施形態では、回転機構132は、撮像機構を、θ=0°(初期位置)、45°、135°および180°の位置のいずれかに配置する。なお、図4の4001は撮像機構がθ=0°の位置にある場合を示し、図4の4002は撮像機構が初期位置から旋回してθ=45°の位置にある場合を示す。 As shown in FIG. 4, axis Ax0 is the axis that passes through the center of placement area Ar2 and is parallel to the Z axis, and axis Ax1 is the axis that passes through the center of placement area Ar2 and the center of the imaging mechanism. θ is the angle between axis Ax0 and axis Ax1. In this embodiment, the rotation mechanism 132 positions the imaging mechanism at one of θ = 0° (initial position), 45°, 135°, and 180°. 4001 in FIG. 4 shows the case where the imaging mechanism is at θ = 0°, and 4002 in FIG. 4 shows the case where the imaging mechanism has rotated from the initial position to a position of θ = 45°.

このように、撮像機構を配置領域Ar2の周囲を旋回させることにより、薬剤を配置領域Ar2に固定した状態で、複数の方向から薬剤を撮像できる。また、薬剤載置台133aをゆすっても薬剤(錠剤)が立っている場合であっても、斜め方向(θ=45°または135°)からの撮像で、薬剤に付された刻印等が示す情報を取得できる。 In this way, by rotating the imaging mechanism around the placement area Ar2, it is possible to capture images of the medication from multiple directions while the medication is fixed in the placement area Ar2. Furthermore, even if the medication (tablet) remains upright after shaking the medication placement table 133a, information indicated by markings or other markings on the medication can be obtained by capturing images from an oblique direction (θ = 45° or 135°).

なお、撮像機構を固定し薬剤を回動させることで複数の方向から当該薬剤を撮像してもよい。 In addition, the imaging mechanism may be fixed and the drug may be rotated to capture images of the drug from multiple directions.

(撮像位置制御)
次に、撮像機構の位置制御の一例について説明する。撮像制御部63は、まず撮像機構を初期位置にセットし、第1カメラ131に、当該初期位置おいて配置領域Ar2に配置された薬剤を撮像させる。このとき、第1カメラ131は、第1照射部134aおよび第2照射部134bからの可視光に基づく可視光画像(2つの可視光画像)を取得するとともに、紫外光照射部134cからの紫外光に基づく紫外光画像を取得する。
(Imaging position control)
Next, an example of position control of the imaging mechanism will be described. The imaging control unit 63 first sets the imaging mechanism to an initial position and causes the first camera 131 to capture an image of the drug placed in the placement area Ar2 at the initial position. At this time, the first camera 131 acquires visible light images (two visible light images) based on visible light from the first irradiator 134a and the second irradiator 134b, and also acquires an ultraviolet light image based on ultraviolet light from the ultraviolet light irradiator 134c.

次に、撮像制御部63は、撮像機構を初期位置とは対向する位置にセットし、第1カメラ131に、当該位置において配置領域Ar2に配置された薬剤を撮像させ、2つの可視光画像および紫外光画像を取得する。判別部64は、これら6つの画像を解析することにより、薬剤の種類を判別する。薬剤の種類を1つに特定できなかった場合、撮像制御部63は、θ=45°および135°の位置において、第1照射部134aおよび第2照射部134bから可視光を出射させ、第1カメラ131に薬剤を撮像させる。判別部64は、このときの可視光画像を解析して薬剤の種類を判別する。 Next, the imaging control unit 63 sets the imaging mechanism to a position opposite to the initial position and causes the first camera 131 to capture an image of the medication placed in the placement area Ar2 at that position, acquiring two visible light images and an ultraviolet light image. The discrimination unit 64 analyzes these six images to determine the type of medication. If the medication type cannot be identified as one, the imaging control unit 63 causes the first irradiating unit 134a and the second irradiating unit 134b to emit visible light at positions θ = 45° and 135°, causing the first camera 131 to capture an image of the medication. The discrimination unit 64 analyzes the visible light image at this time to determine the type of medication.

上記に限らず、撮像機構の位置制御は種々の方法が挙げられる。例えば、初期位置と対向する位置から撮像した後、初期位置から撮像を行ってもよい。また、θ=45°の位置から撮像したときの可視光画像に基づく薬剤の判別処理を行い、薬剤の種類を1つに特定できなかった場合にのみθ=135°の位置から撮像したときの可視光画像を取得してもよい。また、初期位置および初期位置と対向する位置において紫外光画像のみを取得し、当該紫外光画像に基づく薬剤の判別処理を行った後、当該位置における可視光画像を取得してもよい。また、全ての位置において可視光画像および紫外光画像を取得してもよい。 The above is not the only possible method for controlling the position of the imaging mechanism, and various other methods can be used. For example, imaging may be performed from a position opposite the initial position, and then imaging may be performed again from the initial position. Alternatively, drug discrimination processing may be performed based on visible light images captured from a position of θ = 45°, and only if the drug type cannot be identified as a single type may a visible light image be acquired from a position of θ = 135°. Alternatively, only ultraviolet light images may be acquired at the initial position and a position opposite the initial position, drug discrimination processing may be performed based on the ultraviolet light images, and then a visible light image may be acquired at that position. Alternatively, visible light images and ultraviolet light images may be acquired at all positions.

(画像処理・判別処理)
次に、撮像ユニット13により撮像された画像に対する画像処理と、画像処理の結果に基づく薬剤の判別処理について、図1を用いて説明する。上記画像処理は、主として撮像制御部63により行われ、上記判別処理は、主として判別部64により行われる。
(Image processing/discrimination processing)
Next, the image processing of the image captured by the imaging unit 13 and the drug discrimination processing based on the results of the image processing will be described with reference to Fig. 1. The image processing is mainly performed by the imaging control unit 63, and the discrimination processing is mainly performed by the discrimination unit 64.

判別部64は、第1カメラ131により撮像された薬剤の画像に基づき、薬剤の種類を判別する。具体的には、判別部64は、第1照射部134aまたは第2照射部134bから可視光が照射された状態で撮像された薬剤の撮像結果(可視光画像)に基づき、薬剤の種類を判別する。また、判別部64は、紫外光が照射された状態で撮像された薬剤の撮像結果(紫外光画像)に基づき、薬剤の種類を判別する。 The discrimination unit 64 discriminates the type of drug based on the image of the drug captured by the first camera 131. Specifically, the discrimination unit 64 discriminates the type of drug based on the imaging result (visible light image) of the drug captured while being irradiated with visible light from the first irradiation unit 134a or the second irradiation unit 134b. The discrimination unit 64 also discriminates the type of drug based on the imaging result (ultraviolet light image) of the drug captured while being irradiated with ultraviolet light.

判別部64は、可視光画像および/または紫外光画像のそれぞれにおいて画像解析を実行することにより、当該画像に含まれる薬剤の特徴を抽出する。薬剤の特徴としては、例えば、大きさ、形状、刻印、プリント、割線、代表色(刻印またはプリントが付された領域の色)が挙げられる。 The discrimination unit 64 performs image analysis on each of the visible light image and/or ultraviolet light image to extract characteristics of the drug contained in the image. Examples of drug characteristics include size, shape, markings, prints, secant lines, and representative color (the color of the area with the marking or print).

上記薬剤の特徴としての大きさとは、例えば、薬剤の長径、短径等が挙げられる。また、上記薬剤の特徴としての形状とは、例えば、薬剤の真円度、縦横比等が挙げられる。 Examples of the size characteristics of the drug include the major and minor axes of the drug. Examples of the shape characteristics of the drug include the roundness and aspect ratio of the drug.

OCR(Optical Character Recognition)等を行った場合には、薬剤の特徴として、刻印またはプリントにより表された薬剤名(例:識別コード)または製造元を示す識別情報(薬剤を識別する識別情報)、使用期限等のその他の情報が抽出される。また、紫外光画像の場合には、薬剤の特徴として、画像中の薬剤における代表色が挙げられる。判別部64は、抽出した各薬剤の特徴を示す情報を、薬剤の撮像画像82に紐づけて記憶部80に記憶する。なお、薬剤の特徴抽出は、公知の技術により行われてもよい。 When OCR (Optical Character Recognition) or similar is performed, other information such as the engraved or printed name of the drug (e.g., identification code), identification information indicating the manufacturer (identification information that identifies the drug), and expiration date are extracted as drug characteristics. In the case of ultraviolet light images, the representative color of the drug in the image is also an example of a drug characteristic. The discrimination unit 64 associates the extracted information indicating the characteristics of each drug with the captured image 82 of the drug and stores it in the memory unit 80. Drug characteristics may be extracted using known techniques.

抽出した薬剤の特徴には、上述のように画像中の薬剤の代表色が含まれている。以下では、この代表色を示すデータを色データ(薬剤の色を示すデータ)と呼ぶ。色データには、可視光画像から生成されたものと、紫外光画像から生成されたものとが含まれる。なお、以下の説明では、特に断らない限り、単に「色データ」と記載した場合には、可視光画像から生成された色データと、紫外光画像から生成された色データの両方を指す。色データは、薬剤を撮像した画像における所定領域(薬剤が写っている領域の少なくとも一部、典型的には刻印またはプリントが付された領域)の色を示すデータである。例えば、当該領域に含まれる各画素のRGB値の平均値を色データとしてもよい。また、当該領域に含まれる色をCIELab色空間におけるL*値、a*値、およびb*値の組み合わせで表した値であるCIELab値を色データとしてもよい。 As mentioned above, the extracted drug features include the representative color of the drug in the image. Hereinafter, data indicating this representative color will be referred to as color data (data indicating the drug's color). Color data includes data generated from both visible light images and ultraviolet light images. In the following description, unless otherwise specified, the term "color data" refers to both color data generated from visible light images and color data generated from ultraviolet light images. Color data is data indicating the color of a specific region in an image of the drug (at least a portion of the area where the drug appears, typically an area with an inscription or print). For example, the color data may be the average RGB values of each pixel in that region. Alternatively, the color data may be a CIELab value, which is a value representing the color in that region as a combination of the L*, a*, and b* values in the CIELab color space.

判別部64は、各薬剤の特徴を薬剤データベース81と照合することにより薬剤の種類を判別する。例えば、判別部64は、色データに基づいて、薬剤データベース81の中から、撮像された薬剤に関する薬剤データ(基準薬剤データ)の候補を順位づけする。その後、判別部64は、上記順位に従って、他の特徴に基づく種類の判別を行う。 The discrimination unit 64 discriminates the type of drug by comparing the characteristics of each drug with the drug database 81. For example, the discrimination unit 64 ranks candidate drug data (reference drug data) for the imaged drug from the drug database 81 based on color data. The discrimination unit 64 then discriminates the type based on other characteristics in accordance with the above ranking.

また、判別部64は、抽出した薬剤の特徴に基づいて、パターンマッチング等を用いて、薬剤データベース81の中から、撮像された薬剤に関する薬剤データの候補を絞込んでも構わない。この場合、例えば、上述した大きさ、形状、刻印、プリント、割線、および代表色の少なくとも1つを用いて薬剤データの候補を絞込む。その後、判別部64は、OCR等を行い、刻印またはプリントに表された識別情報等を読取り、パターンマッチング等を用いて上記候補の中から薬剤の種類をさらに絞込む。また、判別部64は、抽出した薬剤の特徴と、薬剤データベース81に含まれる薬剤(基準薬剤)の特徴との一致度に基づき、上記候補の順位づけを行っても構わない。 The discrimination unit 64 may also use pattern matching or the like to narrow down the drug data candidates related to the imaged drug from within the drug database 81 based on the extracted drug characteristics. In this case, for example, the drug data candidates are narrowed down using at least one of the above-mentioned size, shape, engraving, print, dividing line, and representative color. The discrimination unit 64 then performs OCR or the like to read identification information or the like indicated on the engraving or print, and further narrows down the drug types from the candidates using pattern matching or the like. The discrimination unit 64 may also rank the candidates based on the degree of match between the extracted drug characteristics and the characteristics of drugs (reference drugs) included in the drug database 81.

また、判別部64は、パターンマッチング等を用いて抽出した薬剤の特徴(対象特徴)が薬剤データベース81に無い場合であっても、対象特徴の少なくとも一部に基づき薬剤(錠剤またはカプセル)であると推定される場合には、薬剤の種類を推定薬剤として判別する。この場合、推定薬剤も、第2収容部14または待機トレイ15への仕分け対象とすることができる。本実施形態では、推定薬剤は、まず待機トレイ15へ仮置きされても構わない。 Furthermore, even if the drug characteristics (target features) extracted using pattern matching or the like are not found in the drug database 81, the discrimination unit 64 will determine the type of drug as a suspected drug if it is estimated to be a drug (tablet or capsule) based on at least a portion of the target features. In this case, the suspected drug can also be sorted into the second storage unit 14 or the waiting tray 15. In this embodiment, the suspected drug may first be temporarily placed on the waiting tray 15.

このように、判別部64は、予め登録された複数種類の薬剤に関する薬剤データ(薬剤データベース81)の中に、第1カメラ131によって撮像された撮像画像82に対応する薬剤データが存在するか否かを判定している。 In this way, the discrimination unit 64 determines whether or not there is drug data corresponding to the captured image 82 captured by the first camera 131 in the drug data (drug database 81) related to multiple types of drugs that have been registered in advance.

判別部64は、薬剤の種類の判別結果を仕分制御部62に出力する。例えば、薬剤の種類を1つに特定できた場合、または所定数以内の候補数に絞込んだ場合には、当該薬剤に関する薬剤データを判別結果として出力する。この場合、判別部64は、当該薬剤に関する薬剤データを、当該薬剤の撮像画像82に紐づけて記憶部80に記憶する。 The discrimination unit 64 outputs the discrimination result for the type of drug to the sorting control unit 62. For example, if the type of drug can be identified as one, or if the number of candidates has been narrowed down to a predetermined number or less, the discrimination unit 64 outputs the drug data for that drug as the discrimination result. In this case, the discrimination unit 64 stores the drug data for that drug in the memory unit 80, linking it to the captured image 82 of that drug.

判別部64は、薬剤の種類を推定薬剤として判別した場合には、薬剤の特徴(推定薬剤として推定された物の特徴)を判別結果として出力する。一方、判別部64は、薬剤データベース81に廃棄する薬剤として登録された薬剤であると判別した場合、または第1収容部11に収容された物が薬剤以外の異物であると判別した場合、仕分対象外の薬剤である旨を判別結果として出力する。 When the discrimination unit 64 determines that the type of drug is a suspected drug, it outputs the characteristics of the drug (the characteristics of the object suspected to be a suspected drug) as the discrimination result. On the other hand, when the discrimination unit 64 determines that the drug is registered in the drug database 81 as a drug to be discarded, or when it determines that the object contained in the first container 11 is a foreign object other than a drug, it outputs the discrimination result indicating that the drug is not to be sorted.

判別部64は、上述したように、撮像画像82を解析して判別処理を行う。判別部64は、一回の判別処理によって薬剤の種類を判別することが困難である(一回の判別処理によって薬剤の種類を判別できなかった)場合に以下の処理を行う構成としてもよい。例えば、判別部64は、予め決められた上限回数(例:3回)に達するまで、又はタイムアウトとなるまで、再度、撮像画像82に対する画像解析を行い、薬剤の種類の判別を試みる(判別リトライ処理)構成としてもよい。 As described above, the discrimination unit 64 analyzes the captured image 82 and performs discrimination processing. The discrimination unit 64 may be configured to perform the following processing when it is difficult to discriminate the type of drug in a single discrimination process (when the type of drug cannot be discriminated in a single discrimination process). For example, the discrimination unit 64 may be configured to perform image analysis of the captured image 82 again and attempt to discriminate the type of drug (discrimination retry processing) until a predetermined upper limit (e.g., three times) is reached or a timeout occurs.

(薬剤仕分処理)
次に、上記判別処理の結果に基づく薬剤仕分処理について、図1を用いて説明する。上記薬剤仕分処理は、主として、搬送・仕分ユニット12および仕分制御部62により行われる。
(Medicine sorting process)
Next, the medicine sorting process based on the results of the above-mentioned discrimination process will be described with reference to Fig. 1. The medicine sorting process is mainly performed by the transport/sorting unit 12 and the sorting control unit 62.

搬送・仕分ユニット12は、判別部64による判別結果に基づき、薬剤を種類毎に仕分けて第2収容部14または待機トレイ15へ格納する。仕分制御部62は、搬送・仕分ユニット12を制御して、撮像および判別処理後に受入領域Ar1に配置された薬剤を、判別結果に基づき、第2収容部14の所定の仕分カップ141または待機トレイ15まで搬送する。 The transport/sorting unit 12 sorts the medicines by type based on the discrimination results from the discrimination unit 64 and stores them in the second storage unit 14 or the waiting tray 15. The sorting control unit 62 controls the transport/sorting unit 12 to transport the medicines placed in the receiving area Ar1 after imaging and discrimination processing to a predetermined sorting cup 141 in the second storage unit 14 or the waiting tray 15 based on the discrimination results.

仕分制御部62は、薬剤の判別結果を受けると、当該薬剤を格納する仕分位置を決定し、当該判別結果と、決定した仕分位置とを紐付けて記憶部80に記憶する。具体的には、仕分制御部62は、上記判別結果と同一の判別結果が記憶部80に記憶されているか否かを判定する。 When the sorting control unit 62 receives the drug discrimination results, it determines a sorting position for storing the drug, and stores the discrimination results in the memory unit 80 in association with the determined sorting position. Specifically, the sorting control unit 62 determines whether a discrimination result identical to the above discrimination result is stored in the memory unit 80.

上記判別結果と同一の判別結果が記憶されている場合、記憶されている判別結果に紐付けられた仕分カップ141を、仕分位置として決定する。また、記憶されている判別結果(例:推定薬剤)に紐付けられた仕分位置が待機トレイ15である場合、待機トレイ15を仕分位置として決定する。一方、上記判別結果と同一の判別結果が記憶されていない場合、薬剤未格納の仕分カップ141(仕分位置として未決定の仕分カップ141)を、仕分位置として決定する。仕分カップ141の全てに薬剤が格納されている場合には、待機トレイ15を仕分位置として決定する。なお、仕分制御部62は、推定薬剤については、待機トレイ15ではなく、第2収容部14の所定領域に含まれる仕分カップ141の何れかを仕分位置として決定しても構わない。 If a discrimination result identical to the above discrimination result is stored, the sorting cup 141 linked to the stored discrimination result is determined as the sorting position. Furthermore, if the sorting position linked to the stored discrimination result (e.g., estimated drug) is the waiting tray 15, the waiting tray 15 is determined as the sorting position. On the other hand, if a discrimination result identical to the above discrimination result is not stored, a sorting cup 141 that does not contain any drugs (a sorting cup 141 that has not been determined as a sorting position) is determined as the sorting position. If drugs are stored in all of the sorting cups 141, the waiting tray 15 is determined as the sorting position. Note that for estimated drugs, the sorting control unit 62 may determine one of the sorting cups 141 included in a specified area of the second storage unit 14 as the sorting position, rather than the waiting tray 15.

仕分制御部62は、仕分位置を決定すると、搬送制御部61と同様に搬送機構123を制御して、搬送・仕分ユニット12を受入領域Ar1の上方に移動させる。仕分制御部62は、搬送制御部61と同様、第2カメラ121および吸着・シャッター機構122を制御して、受入領域Ar1に配置された薬剤を吸着する。その後、搬送機構123により、決定した仕分カップ141または待機トレイ15へと薬剤を搬送させる。上述したように、薬剤搬送中はシャッター機構が閉状態となるため、決定した仕分位置以外の領域(例:決定した仕分カップ141以外の仕分カップ141)に薬剤が落下することを防止できる。搬送後、吸着を解除することにより、当該仕分カップ141または待機トレイ15に薬剤を格納する。また、仕分制御部62は、仕分カップ141に格納した薬剤の個数をカウントし、仕分位置に紐づけて記憶部80に記憶する。 Once the sorting control unit 62 has determined the sorting position, it controls the transport mechanism 123, similar to the transport control unit 61, to move the transport/sorting unit 12 above the receiving area Ar1. Similarly to the transport control unit 61, the sorting control unit 62 controls the second camera 121 and the suction/shutter mechanism 122 to suction the medicines placed in the receiving area Ar1. The transport mechanism 123 then transports the medicines to the determined sorting cup 141 or waiting tray 15. As described above, the shutter mechanism is closed while the medicines are being transported, preventing the medicines from falling into areas other than the determined sorting position (e.g., sorting cups 141 other than the determined sorting cup 141). After transport, the suction is released, allowing the medicines to be stored in the sorting cup 141 or waiting tray 15. The sorting control unit 62 also counts the number of medicines stored in the sorting cup 141 and stores the count in the memory unit 80, linking it to the sorting position.

仕分制御部62が、受入領域Ar1に配置された薬剤載置台133aの薬剤(判別完了後の薬剤)を仕分位置に搬送した後、搬送制御部61は、搬送・仕分ユニット12を制御して、第1収容部11に収容されている薬剤を、空になった上記薬剤載置台133aに搬送し、載置する。これにより、薬剤仕分装置1は、薬剤の種類の判別を連続的に行うことができる。 After the sorting control unit 62 transports the drugs (drugs after identification) from the drug placement table 133a arranged in the receiving area Ar1 to the sorting position, the transport control unit 61 controls the transport/sorting unit 12 to transport and place the drugs stored in the first storage unit 11 on the now empty drug placement table 133a. This allows the drug sorting device 1 to continuously identify the type of drug.

また、仕分制御部62は、薬剤の種類を判別できなかった旨の判別結果を受けた場合には、判別後に受入領域Ar1に配置された物は異物であるため、当該異物を回収トレイ16へと搬送する。 Furthermore, if the sorting control unit 62 receives a determination result indicating that the type of medicine could not be determined, the object placed in the receiving area Ar1 after the determination is a foreign object, and the foreign object is transported to the collection tray 16.

このように、仕分制御部62は、薬剤の種類の判別結果に依らず、第1収容部11に収容された物の全てを、第2収容部14、待機トレイ15または回収トレイ16の何れかに格納する。そのため、薬剤の種類を1つに特定できない場合、または第1収容部11に異物が混入していた場合であっても、それを理由に仕分処理を停止することなく、継続させることができる。 In this way, the sorting control unit 62 stores all items contained in the first storage unit 11 in either the second storage unit 14, the waiting tray 15, or the collection tray 16, regardless of the results of determining the type of medicine. Therefore, even if the type of medicine cannot be identified as a single type, or if a foreign object has been mixed into the first storage unit 11, the sorting process can be continued without being stopped for that reason.

なお、仕分制御部62は、受入領域Ar1に配置された薬剤載置台133aから、判別処理が完了した薬剤を取り出すために、第2カメラ121に当該薬剤載置台133aを撮像させて、当該薬剤の位置を絞り込む。また、仕分制御部62は、仕分カップ141に格納された薬剤の分包機構6への搬送時に、当該仕分カップ141から薬剤を取り出すために、第2カメラ121に当該仕分カップ141を撮像させて、搬送対象とする薬剤を絞り込む。 In order to remove medications for which the discrimination process has been completed from the medication placement table 133a arranged in the receiving area Ar1, the sorting control unit 62 causes the second camera 121 to capture an image of the medication placement table 133a, thereby narrowing down the location of the medications. In addition, when transporting medications stored in the sorting cup 141 to the packaging mechanism 6, the sorting control unit 62 causes the second camera 121 to capture an image of the sorting cup 141, thereby narrowing down the medications to be transported, thereby removing the medications from the sorting cup 141.

また、仕分制御部62は、仕分カップ141に格納される薬剤の個数の上限値まで薬剤が格納された場合には、仕分けようとする薬剤の種類が、当該仕分カップ141に仕分られた薬剤の種類と同一であっても、仕分けようとする薬剤を、当該仕分カップ141とは異なる空の仕分カップ141に格納する。 In addition, when the upper limit of the number of medications that can be stored in a sorting cup 141 is reached, the sorting control unit 62 stores the medications to be sorted in an empty sorting cup 141 different from the sorting cup 141, even if the type of medication to be sorted is the same as the type of medication sorted in the sorting cup 141.

また、仕分制御部62により仕分カップ141に格納された薬剤に関するデータは、第2RFIDリーダ・ライタユニット18によって、当該仕分カップ141に設けられたRFIDタグに記憶される。 In addition, data about the medicines stored in the sorting cup 141 by the sorting control unit 62 is stored in an RFID tag attached to the sorting cup 141 by the second RFID reader/writer unit 18.

第2RFIDリーダ・ライタユニット18は、第1RFIDリーダ・ライタユニット5と同様、RFIDタグへの各種データの書込み、またはRFIDタグに記憶された各種データの読出しを行う。仕分制御部62は、RFID制御部68に、仕分カップ141に薬剤を格納するたびに、当該薬剤に関するデータを書込ませる。なお、第2RFIDリーダ・ライタユニット18は、第2収容部14の下側に設けられている。具体的には、各仕分カップ141のRFIDタグに記憶された薬剤に関するデータの読取りまたは書込み時に、各仕分カップ141の底部と対向するように設けられる。 Like the first RFID reader/writer unit 5, the second RFID reader/writer unit 18 writes various data to RFID tags or reads various data stored in RFID tags. The sorting control unit 62 causes the RFID control unit 68 to write data related to the medication each time a medication is stored in a sorting cup 141. The second RFID reader/writer unit 18 is provided below the second storage unit 14. Specifically, it is provided so as to face the bottom of each sorting cup 141 when reading or writing data related to the medication stored in the RFID tag of each sorting cup 141.

〔実施形態2〕
本発明の他の実施形態について、以下に説明する。なお、説明の便宜上、上記実施形態にて説明した部材と同じ機能を有する部材については、同じ符号を付記し、その説明を繰り返さない。以降の実施形態についても同様である。
[Embodiment 2]
Other embodiments of the present invention will be described below. For ease of explanation, the same reference numerals will be used to designate components having the same functions as those described in the above embodiment, and the description thereof will not be repeated. The same applies to the following embodiments.

(概要)
本実施形態では、図6および図7を用いて、糖衣錠等の薬剤の表面が膜で被われているコーティング錠とそれ以外の薬剤(裸錠)とを素早く、精度よく判別する構成について説明する。
(overview)
In this embodiment, a configuration for quickly and accurately distinguishing between coated tablets, such as sugar-coated tablets, whose surfaces are covered with a film, and other drugs (plain tablets) will be described using Figures 6 and 7.

本実施形態に係る判別部64は、判別の対象となる薬剤(対象薬剤)の撮像画像から、対象薬剤に対して照射された光の反射領域を示す反射領域情報を少なくとも含む、対象薬剤の外観の特徴を示す特徴情報を抽出し、当該反射領域情報を対象薬剤の判別に用いる。 The discrimination unit 64 in this embodiment extracts feature information indicating the external characteristics of the target drug, including at least reflection area information indicating the reflection area of light irradiated onto the target drug, from the captured image of the drug to be discriminated (target drug), and uses the reflection area information to discriminate the target drug.

薬剤においては、例えば、薬剤における糖衣の有無等により薬剤に照射された光の反射領域が異なる。上記の構成によれば、薬剤に対して照射された光の反射領域を対象薬剤の種類の判別に用いることによって、コーティング錠とそれ以外の薬剤とを素早く、精度よく判別することができる。 For example, the reflection area of light irradiated onto a drug varies depending on whether or not the drug is sugar-coated. With the above configuration, the reflection area of light irradiated onto the drug is used to determine the type of drug in question, making it possible to quickly and accurately distinguish between coated tablets and other drugs.

(制御部60a)
本実施形態に係る制御部60aは、実施形態1にて説明した要部構成を備えている。
(Control unit 60a)
The control unit 60a according to this embodiment has the main components described in the first embodiment.

(判別部64)
本実施形態に係る判別部64は、図1に示す特徴抽出部64aおよび照合部64bを備えている。判別部64は実施形態1にて説明した処理に加え以下の処理を行う。
(Discrimination unit 64)
The discrimination unit 64 according to this embodiment includes a feature extraction unit 64a and a matching unit 64b shown in Fig. 1. The discrimination unit 64 performs the following processes in addition to the processes described in the first embodiment.

(特徴抽出部64a)
特徴抽出部64aは、対象薬剤が撮像されている撮像画像から、対象薬剤に対して照射された光の反射領域を示す反射領域情報を少なくとも含む、対象薬剤の外観の特徴を示す特徴情報(第1特徴情報)を抽出する。上述の光の反射領域とは、例えば、撮像画像82においてハレーションによる影響を受けた領域ということもできる。
(Feature extraction unit 64a)
The feature extraction unit 64a extracts feature information (first feature information) indicating the appearance characteristics of the target drug from the captured image of the target drug, the feature information including at least reflection area information indicating the reflection area of the light irradiated on the target drug. The light reflection area can also be referred to as, for example, an area affected by halation in the captured image 82.

詳細には、特徴抽出部64aは、可視光画像および/または紫外光画像(撮像画像82)において画像解析を実行することにより、当該画像に含まれる薬剤の特徴を抽出する。特徴抽出部64aは、実施形態1にて説明した判別部64が抽出する薬剤の特徴に加えて、対象薬剤に対して照射された光の反射領域を対象薬剤の特徴として抽出する。特徴抽出部64aは、反射領域情報を含む抽出した薬剤の特徴を示す特徴情報を照合部64bに出力する。 In detail, the feature extraction unit 64a extracts features of the drug contained in the image by performing image analysis on the visible light image and/or ultraviolet light image (captured image 82). In addition to the drug features extracted by the discrimination unit 64 described in embodiment 1, the feature extraction unit 64a extracts the reflection area of light irradiated onto the target drug as a feature of the target drug. The feature extraction unit 64a outputs feature information indicating the extracted drug features, including reflection area information, to the matching unit 64b.

例えば、特徴抽出部64aは、撮像画像82において所定の値よりも高い値の彩度を有する画像領域を上記反射領域として抽出してもよい。上記所定の値とは、例えば、実験により、コーティング錠とそれ以外の薬剤とを区別できるように、コーティング錠の撮像画像から上記反射領域を抽出できる程度の彩度が設定されていればよい。 For example, the feature extraction unit 64a may extract, as the reflective region, an image region in the captured image 82 that has a saturation value higher than a predetermined value. The predetermined value may be set, for example, to a saturation level that allows the reflective region to be extracted from a captured image of a coated tablet so that coated tablets can be distinguished from other medications through experiments.

また、特徴抽出部64aは、撮像画像82に対して、例えばバイラテラルフィルタを用いたフィルタ処理を行うことによって上記反射領域を抽出してもよい。 The feature extraction unit 64a may also extract the reflection area by performing filtering on the captured image 82, for example, using a bilateral filter.

図6は、撮像画像における対象薬剤によって反射した光の反射領域の一例を示す図である。図6のD1に示す図は、第2照射部134b(リング照明)を用いて撮像された糖衣錠の可視光画像である。図6のD2に示す図は、D1に示す可視光画像に対してバイラテラルフィルタを用いたフィルタ処理を行った画像である。 Figure 6 shows an example of the reflection area of light reflected by the target drug in a captured image. D1 in Figure 6 is a visible light image of a sugar-coated tablet captured using the second irradiator 134b (ring illumination). D2 in Figure 6 is an image obtained by filtering the visible light image shown in D1 using a bilateral filter.

また、図6のD3に示す図は、第2照射部134bを用いて撮像された裸錠の可視光画像である。図6のD4に示す図は、D3に示す可視光画像に対してバイラテラルフィルタを用いたフィルタ処理を行った画像である。 The image shown in D3 of Figure 6 is a visible light image of an uncoated tablet captured using the second irradiation unit 134b. The image shown in D4 of Figure 6 is an image obtained by filtering the visible light image shown in D3 using a bilateral filter.

図6のD2が示すように、バイラテラルフィルタを用いたフィルタ処理を行った画像において、糖衣錠を撮像した画像ではリング状の反射領域が抽出される。一方で、図6のD4が示すように、バイラテラルフィルタを用いたフィルタ処理を行った画像において、裸錠を撮像した画像では反射領域が抽出されない。 As shown in D2 in Figure 6, in an image that has been filtered using a bilateral filter, a ring-shaped reflection area is extracted in the image of a sugar-coated tablet. On the other hand, as shown in D4 in Figure 6, in an image that has been filtered using a bilateral filter, no reflection area is extracted in the image of an uncoated tablet.

(照合部64b)
照合部64bは、基準薬剤の外観の特徴を示す特徴情報(第2特徴情報)と、対象薬剤の特徴情報とを照合する。上記基準薬剤の特徴情報は、基準薬剤に対して照射された光の反射領域を示す反射領域情報を少なくとも含む。当該特徴情報は、薬剤データベース81に含まれる基準薬剤に関する薬剤データである。また、上記対象薬剤の特徴情報は、対象薬剤に対して照射された光の反射領域を示す反射領域情報を少なくとも含む。照合部64bは、該照合の結果に基づいて対象薬剤の種類を判別する。
(Collation unit 64b)
The collation unit 64b compares characteristic information (second characteristic information) indicating the appearance characteristics of the reference drug with characteristic information of the target drug. The characteristic information of the reference drug includes at least reflection area information indicating the reflection area of light irradiated onto the reference drug. The characteristic information is drug data related to the reference drug contained in the drug database 81. The characteristic information of the target drug also includes at least reflection area information indicating the reflection area of light irradiated onto the target drug. The collation unit 64b determines the type of the target drug based on the result of the comparison.

照合部64bは、特徴抽出部64aが抽出した対象薬剤の特徴に基づいて、パターンマッチング等を用いて、薬剤データベース81に含まれる基準薬剤に関する薬剤データの中から、撮像された対象薬剤に関する薬剤データの候補を絞込んでもよい。また、照合部64bは、上記反射領域情報に加えて、実施形態1で説明した薬剤の特徴の少なくとも1つを用いて薬剤データの候補を絞込んでもよい。また、照合部64bは、抽出した対象薬剤の特徴と、薬剤データベース81に含まれる基準薬剤の特徴との一致度に基づき、上記候補の順位づけを行っても構わない。 The matching unit 64b may use pattern matching or the like to narrow down candidate drug data for the imaged target drug from drug data for reference drugs contained in the drug database 81, based on the features of the target drug extracted by the feature extraction unit 64a. Furthermore, the matching unit 64b may also narrow down candidate drug data using at least one of the drug features described in embodiment 1 in addition to the reflection region information. Furthermore, the matching unit 64b may rank the candidates based on the degree of agreement between the extracted features of the target drug and the features of the reference drug contained in the drug database 81.

例えば、薬剤データベース81には、各基準薬剤が撮像されている撮像画像における該基準薬剤に対して照射された光の反射領域を示す反射領域情報が、各基準薬剤に関する薬剤データとして含まれている。照合部64bは、対象薬剤の反射領域情報が示す反射領域の形状と各基準薬剤の反射領域情報が示す反射領域の形状とを照合し、複数の基準薬剤に関する薬剤データの中から、対象薬剤に関する薬剤データの候補(すなわち対象薬剤の種類の候補)を絞込む。 For example, the drug database 81 includes, as drug data for each reference drug, reflection area information indicating the reflection area of light irradiated onto the reference drug in the captured image in which the reference drug is captured. The matching unit 64b matches the shape of the reflection area indicated by the reflection area information for the target drug with the shape of the reflection area indicated by the reflection area information for each reference drug, and narrows down the drug data for the multiple reference drugs to candidate drug data for the target drug (i.e., candidate types of target drug).

照合部64bは、対象薬剤の種類の判別結果を仕分制御部62に出力する。例えば、対象薬剤の種類を1つに特定できた場合、または所定数以内の候補数に絞込んだ場合には、当該対象薬剤に関する薬剤データを判別結果として出力する。この場合、照合部64bは、当該対象薬剤に関する薬剤データを、当該対象薬剤の撮像画像82に紐づけて記憶部80に記憶する。 The collation unit 64b outputs the results of the determination of the type of target drug to the sorting control unit 62. For example, if the type of target drug can be identified as one, or if the number of candidates has been narrowed down to a predetermined number or less, the collation unit 64b outputs the drug data for the target drug as the determination result. In this case, the collation unit 64b stores the drug data for the target drug in the memory unit 80, linking it to the captured image 82 of the target drug.

(処理例)
図7は、本実施形態の判別部64の判別処理の一例を示すフローチャートである。図7に示すように、特徴抽出部64aは、撮像画像82から反射領域情報を含む対象薬剤の特徴情報を抽出する(S11)。続いて、照合部64bは、薬剤データベース81に含まれる基準薬剤の特徴情報(薬剤データ)と、対象薬剤の特徴情報とを照合する(S12)。続いて、照合部64bは、当該照合の結果に基づいて対象薬剤の種類を判別し(S13)、薬剤の種類の判別結果を仕分制御部62に出力し、処理は終了する。
(Processing example)
7 is a flowchart showing an example of the discrimination process of the discrimination unit 64 of this embodiment. As shown in FIG. 7, the feature extraction unit 64a extracts feature information of the target drug, including reflection region information, from the captured image 82 (S11). Next, the comparison unit 64b compares the feature information of the target drug with the feature information of the reference drug (drug data) contained in the drug database 81 (S12). Next, the comparison unit 64b determines the type of the target drug based on the comparison result (S13), outputs the drug type discrimination result to the sorting control unit 62, and the process ends.

(変形例)
(変形例の概要)
本変形例では、判別部64は、対象薬剤の撮像画像から、対象薬剤の外観の特徴を示す特徴情報を抽出する。該特徴情報は対象薬剤に対して照射された光が対象薬剤によって反射されているか否かを示す反射情報を少なくとも含む。判別部64は、当該反射情報を対象薬剤の判別に用いる。
(Modification)
(Summary of Modified Examples)
In this modification, the discrimination unit 64 extracts feature information indicating the external characteristics of the target drug from the captured image of the target drug. The feature information includes at least reflection information indicating whether light irradiated onto the target drug is reflected by the target drug. The discrimination unit 64 uses the reflection information to discriminate the target drug.

例えば、薬剤におけるコーティング(例:糖衣)の有無等により薬剤に照射された光が反射されているか否かが決まる。そのため薬剤に対して照射された光が反射されているか否かを対象薬剤の種類の判別に用いることによって、コーティング錠とそれ以外の薬剤とを素早く、精度よく判別することができる。 For example, whether or not the light irradiated onto the drug is reflected depends on whether or not the drug is coated (e.g., sugar coated). Therefore, by using whether or not light irradiated onto the drug is reflected to determine the type of drug in question, coated tablets can be quickly and accurately distinguished from other drugs.

本変形例に係る判別部64のその他の処理については上述の実施形態2にて説明した判別部64と同様であるため、説明を繰り返さない。 Other processing by the discrimination unit 64 in this modified example is the same as that of the discrimination unit 64 described in embodiment 2 above, and therefore will not be described again.

(特徴抽出部64a)
本変形例に係る特徴抽出部64aは、対象薬剤が撮像されている撮像画像から対象薬剤の特徴情報(第3特徴情報)を抽出する。該特徴情報は対象薬剤に対して照射された光が対象薬剤によって反射されているか否かを示す反射情報を少なくとも含む。特徴抽出部64aは、抽出した反射情報を含む対象薬剤の特徴情報を照合部64bに出力する。
(Feature extraction unit 64a)
The feature extraction unit 64a according to this modification extracts feature information (third feature information) of the target drug from the captured image of the target drug. The feature information includes at least reflection information indicating whether light irradiated onto the target drug is reflected by the target drug. The feature extraction unit 64a outputs the feature information of the target drug including the extracted reflection information to the comparison unit 64b.

例えば、特徴抽出部64aは、実施形態2において説明したように、撮像画像82における所定の値よりも高い値の彩度を有する画像領域を抽出する。特徴抽出部64aは、当該抽出の有無に応じて対象薬剤によって光が反射されているか否かを判断する。また、特徴抽出部64aは、実施形態2において説明したように、撮像画像82に対するバイラテラルフィルタのフィルタ処理を行った撮像画像を用いて、対象薬剤によって光が反射されているか否かを判断する。上記判断に応じて、特徴抽出部64aは照射された光が当該基準薬剤によって反射されているか否かを示す反射情報を抽出する。 For example, as described in embodiment 2, the feature extraction unit 64a extracts image regions in the captured image 82 that have a saturation value higher than a predetermined value. The feature extraction unit 64a determines whether or not light is reflected by the target drug depending on whether or not this extraction occurs. Furthermore, as described in embodiment 2, the feature extraction unit 64a determines whether or not light is reflected by the target drug using a captured image that has been subjected to bilateral filtering of the captured image 82. In response to this determination, the feature extraction unit 64a extracts reflection information indicating whether or not the irradiated light is reflected by the reference drug.

(照合部64b)
本変形例に係る照合部64bは、基準薬剤の特徴情報(第4特徴情報)と、対象薬剤の特徴情報(第3特徴情報)とを照合する。上記基準薬剤の特徴情報は、照射された光が当該基準薬剤によって反射されているか否かを示す反射情報を少なくとも含む。また、上記対象薬剤の特徴情報は、照射された光が当該対象薬剤によって反射されているか否かを示す反射情報を少なくとも含む。照合部64bは、該照合の結果に基づいて対象薬剤の種類を判別する。照合部64bは、対象薬剤の種類の判別結果を仕分制御部62に出力する。
(Collation unit 64b)
The collation unit 64b in this modification collates the characteristic information of the reference drug (fourth characteristic information) with the characteristic information of the target drug (third characteristic information). The characteristic information of the reference drug includes at least reflection information indicating whether the irradiated light is reflected by the reference drug. The characteristic information of the target drug includes at least reflection information indicating whether the irradiated light is reflected by the target drug. The collation unit 64b determines the type of the target drug based on the result of the collation. The collation unit 64b outputs the determination result of the type of the target drug to the sorting control unit 62.

例えば、薬剤データベース81には、各基準薬剤が撮像された撮像画像において照射された光が当該基準薬剤によって反射されているか否かを示す反射情報が、各基準薬剤に関する薬剤データとして含まれている。照合部64bは、対象薬剤の反射情報と各基準薬剤の反射情報とを照合し、複数の基準薬剤に関する薬剤データの中から、対象薬剤に関する薬剤データの候補を絞込んでもよい。 For example, the drug database 81 includes, as drug data for each reference drug, reflection information indicating whether light irradiated in an image of each reference drug is reflected by the reference drug. The matching unit 64b may match the reflection information for the target drug with the reflection information for each reference drug, and narrow down the drug data for the target drug from among the drug data for multiple reference drugs.

例えば、照合部64bは、対象薬剤が撮像された撮像画像において照射された光が当該対象薬剤によって反射されていることを示す反射情報を、当該撮像画像から抽出すると、薬剤データベース81から、反射情報を含む特徴情報(薬剤データ)を抽出する。当該反射情報は、基準薬剤が撮像された撮像画像において照射された光が反射されていることを示す情報である。これにより、照合部64bは、薬剤データベース81において、対象薬剤に関する薬剤データの候補として、上記光が反射されていることを示す反射情報を含む基準薬剤の特徴情報を絞込む。 For example, when the matching unit 64b extracts reflection information from the captured image showing that light irradiated in the captured image of the target drug is reflected by the target drug, the matching unit 64b extracts characteristic information (drug data) including the reflection information from the drug database 81. This reflection information is information showing that light irradiated in the captured image of the reference drug is reflected. As a result, the matching unit 64b narrows down the characteristic information of the reference drug including reflection information showing that the light is reflected as candidate drug data for the target drug in the drug database 81.

同様に、照合部64bは、対象薬剤が撮像された撮像画像において照射された光が当該対象薬剤によって反射されていないことを示す反射情報を、撮像画像から抽出すると、以下の反射情報を含む特徴情報を抽出する。当該反射情報は、当該基準薬剤が撮像された撮像画像において照射された光が反射されていないことを示す情報である。これにより、照合部64bは、薬剤データベース81において、対象薬剤に関する薬剤データの候補として、上記光が反射されていないことを示す反射情報を含む基準薬剤の特徴情報を絞込む。 Similarly, when the matching unit 64b extracts reflection information from the captured image indicating that the light irradiated in the captured image of the target drug is not reflected by the target drug, the matching unit 64b extracts feature information including the following reflection information. This reflection information is information indicating that the light irradiated in the captured image of the reference drug is not reflected. As a result, the matching unit 64b narrows down the feature information of the reference drug including reflection information indicating that the light is not reflected as candidates for drug data related to the target drug in the drug database 81.

また、照合部64bは、上記反射情報に加えて、実施形態1および2で説明した薬剤の特徴の少なくとも1つを用いて薬剤データの候補を絞込んでもよい。 In addition to the above-mentioned reflection information, the matching unit 64b may also narrow down the drug data candidates using at least one of the drug characteristics described in embodiments 1 and 2.

〔実施形態3〕
(概要)
本実施形態では、薬剤の厚みの相違を利用して薬剤を素早く、精度よく判別する構成について説明する。
[Embodiment 3]
(overview)
In this embodiment, a configuration for quickly and accurately identifying medicines by utilizing differences in thickness of the medicines will be described.

(制御部60a)
本実施形態に係る制御部60aは、実施形態1にて説明した要部構成を備えている。
(Control unit 60a)
The control unit 60a according to this embodiment has the main components described in the first embodiment.

(判別部64)
本実施形態に係る判別部64は、図1に示す特徴抽出部64aおよび照合部64bを備えている。本変形例に係る判別部64は、実施形態1にて説明した処理に加え以下の処理を行う。
(Discrimination unit 64)
The discrimination unit 64 according to this embodiment includes a feature extraction unit 64a and a matching unit 64b shown in Fig. 1. The discrimination unit 64 according to this modification performs the following processes in addition to the processes described in the first embodiment.

(特徴抽出部64a)
本実施形態に係る特徴抽出部64aは、斜め方向(θ=45°または135°)から対象薬剤を撮像した撮像画像から対象薬剤の厚みを抽出する。特徴抽出部64aは当該厚みを示す厚み情報を対象薬剤の特徴の1つとして照合部64bに出力する。例えば、特徴抽出部64aは、可視光画像および/または紫外光画像(撮像画像82)において画像解析を実行することにより、当該画像に含まれる薬剤の厚みを抽出する。なお、斜め方向から対象薬剤を撮像する処理については、実施形態1の「薬剤撮像処理」にて詳細を説明しているため、ここでの説明は繰り返さない。
(Feature extraction unit 64a)
The feature extraction unit 64a according to this embodiment extracts the thickness of the target drug from a captured image of the target drug taken from an oblique direction (θ=45° or 135°). The feature extraction unit 64a outputs thickness information indicating the thickness to the collation unit 64b as one of the features of the target drug. For example, the feature extraction unit 64a extracts the thickness of the drug contained in the image by performing image analysis on the visible light image and/or ultraviolet light image (captured image 82). Note that the process of capturing an image of the target drug from an oblique direction has been described in detail in the "Drug Imaging Process" of the first embodiment, and therefore will not be described again here.

図8は、特徴抽出部64aが抽出する対象薬剤の厚みの一例を示す図である。詳細には、図8のD5に示す図は、第1照射部134a(バー照明)を用いて撮像された薬剤の可視光画像である。例えば、特徴抽出部64aは、撮像されている対象薬剤の厚みT1を公知の画像処理の技術によって抽出する。例えば、特徴抽出部64aは、撮像された画像から、対象薬剤の厚みT1を台形補正の技術、パノラマ画像化の技術等を用いて抽出してもよい。 Figure 8 is a diagram showing an example of the thickness of a target drug extracted by the feature extraction unit 64a. In detail, the image shown in D5 of Figure 8 is a visible light image of the drug captured using the first irradiator 134a (bar illumination). For example, the feature extraction unit 64a extracts the thickness T1 of the target drug being captured using known image processing techniques. For example, the feature extraction unit 64a may extract the thickness T1 of the target drug from the captured image using techniques such as trapezoidal correction or panoramic imaging.

(照合部64b)
照合部64bは、基準薬剤の特徴情報と、対象薬剤の特徴情報とを照合する。上記基準薬剤の特徴情報は、基準薬剤の厚みを示す厚み情報を少なくとも含む。また、上記対象薬剤の特徴情報は、対象薬剤の厚みを示す厚み情報を少なくとも含む。
(Collation unit 64b)
The collation unit 64b collates the characteristic information of the reference drug with the characteristic information of the target drug. The characteristic information of the reference drug includes at least thickness information indicating the thickness of the reference drug. The characteristic information of the target drug includes at least thickness information indicating the thickness of the target drug.

例えば、薬剤データベース81には、各基準薬剤おける厚みを示す厚み情報が、各基準薬剤に関する薬剤データとして含まれている。照合部64bは、対象薬剤の厚み情報と各基準薬剤の厚み情報とを照合し、複数の基準薬剤に関する薬剤データの中から、対象薬剤に関する薬剤データの候補を絞込んでもよい。また、照合部64bは、上記厚み情報に加えて、実施形態1および実施形態2で説明した薬剤の特徴の少なくとも1つを用いて薬剤データの候補を絞込んでもよい。また、照合部64bは、実施形態1の「画像処理・判別処理」にて説明した、「判別リトライ処理」において対象薬剤の厚み情報と各基準薬剤の厚み情報とを照合して対象薬剤の種類の判別を行ってもよい。 For example, the drug database 81 includes thickness information indicating the thickness of each reference drug as drug data for each reference drug. The matching unit 64b may match the thickness information of the target drug with the thickness information of each reference drug to narrow down drug data candidates for the target drug from drug data for multiple reference drugs. Furthermore, the matching unit 64b may narrow down drug data candidates using at least one of the drug characteristics described in embodiments 1 and 2 in addition to the thickness information. Furthermore, the matching unit 64b may match the thickness information of the target drug with the thickness information of each reference drug in the "discrimination retry process" described in the "Image processing/discrimination process" of embodiment 1 to determine the type of target drug.

〔実施形態4〕
(概要)
本実施形態では、図9を用いて、対象薬剤の種類の判別を精度よく行うことができる構成について説明する。
[Embodiment 4]
(overview)
In this embodiment, a configuration that can accurately determine the type of target medicine will be described with reference to FIG.

本実施形態に係る薬剤データベース更新部74は、判別部64が対象薬剤の種類の判別に失敗した場合に、以下の処理を行う。薬剤データベース更新部74は、ユーザによる操作を受け付けた後、当該判別に使用された対象薬剤の色を示す対象薬剤色データ84(対象色情報)を、薬剤データベース81に含まれている基準薬剤の色を示す色データ(基準色情報)として更新する。 The drug database update unit 74 according to this embodiment performs the following processing when the discrimination unit 64 fails to discriminate the type of target drug. After receiving a user operation, the drug database update unit 74 updates the target drug color data 84 (target color information) indicating the color of the target drug used in the discrimination to color data (reference color information) indicating the color of the reference drug included in the drug database 81.

上記構成によれば、種類の判別に失敗した対象薬剤について、対象薬剤の種類の判別を実際に行う環境で撮像した撮像画像82から抽出された対象薬剤色データ84を、基準薬剤の色データとすることができる。そのため、対象薬剤の種類の判別を精度よく行うことができる。 With the above configuration, for target drugs whose type has not been identified, the target drug color data 84 extracted from the captured image 82 taken in an environment where the type of the target drug is actually identified can be used as the color data of the reference drug. This allows for accurate identification of the type of the target drug.

制御部60aは、外部装置により作成された薬剤データベース81を、外部装置から受信することにより、記憶部80に記憶する。外部装置が薬剤データベース81を作成する際に使用する薬剤仕分装置1と、病院等の医療機関に設置された薬剤仕分装置1とは異なり、また、薬剤の撮像環境も異なる。上記構成によれば、上記薬剤仕分装置1又は撮像環境の相違に起因した撮像画像における色の相違により、対象薬剤の種類が適切に判別されない可能性を低減できる。 The control unit 60a receives the drug database 81 created by the external device from the external device and stores it in the memory unit 80. The drug sorting device 1 used by the external device to create the drug database 81 is different from the drug sorting device 1 installed in a medical institution such as a hospital, and the drug imaging environment is also different. With the above configuration, it is possible to reduce the possibility that the type of target drug will not be properly identified due to color differences in the captured image caused by differences in the drug sorting device 1 or the imaging environment.

また、薬剤データベース81を作成する際には、薬剤データベース81に登録した薬剤データによって適切に薬剤の種類を判別できるかを、同種又は類似する種類の複数の薬剤の撮像画像を用いてチェックする。上記構成において、基準薬剤の色データのみを更新する場合には、当該チェックを行う必要がない。そのため、当該チェックに要する時間および手間を削減できる。 In addition, when creating the drug database 81, captured images of multiple drugs of the same or similar type are used to check whether the drug type can be properly identified using the drug data registered in the drug database 81. In the above configuration, if only the color data of the reference drug is updated, this check does not need to be performed. This reduces the time and effort required for this check.

(制御部60a)
本実施形態に係る制御部60aは、実施形態1にて説明した要部構成に加え、図1に示す薬剤データベース更新部74を備えている。
(Control unit 60a)
The control unit 60a according to this embodiment includes the essential components described in the first embodiment, as well as a medicine database update unit 74 shown in FIG.

(判別部64)
本実施形態に係る判別部64は実施形態1にて説明した処理に加え以下の処理を行う。判別部64は、対象薬剤の特徴情報(第5特徴情報)と、薬剤データベース81に含まれている基準薬剤の色を示す色データ(基準色情報)を含む特徴情報(第6特徴情報)とを照合し、該照合の結果に基づいて対象薬剤の種類を判別する。上記対象薬剤の特徴情報には、対象薬剤が撮像されている撮像画像から抽出された、対象薬剤の色を示す対象薬剤色データ84(対象色情報)が含まれている。上記対象薬剤色データ84は、実施形態1にて説明した色データと同様であるため、ここでの説明を繰り返さない。また、判別部64は、対象薬剤色データ84を当該対象薬剤の撮像画像82に紐づけて対象薬剤色データ84として記憶部80に記憶する。
(Discrimination unit 64)
The discrimination unit 64 according to this embodiment performs the following processing in addition to the processing described in the first embodiment. The discrimination unit 64 compares the characteristic information (fifth characteristic information) of the target drug with characteristic information (sixth characteristic information) including color data (reference color information) indicating the color of a reference drug contained in the drug database 81, and discriminates the type of the target drug based on the comparison result. The characteristic information of the target drug includes target drug color data 84 (target color information) indicating the color of the target drug, extracted from the captured image of the target drug. The target drug color data 84 is the same as the color data described in the first embodiment, and therefore will not be described again here. The discrimination unit 64 also associates the target drug color data 84 with the captured image 82 of the target drug and stores it in the storage unit 80 as target drug color data 84.

(操作部31)
タッチパネル3の操作部31はユーザ入力を受け付ける。特に本実施形態の操作部31は、判別部64による対象薬剤の種類の判別に失敗した撮像画像82に紐付いた対象薬剤色データ84を、ユーザが指定する基準薬剤の色データに更新するための入力操作を受付ける。
(Operation unit 31)
The operation unit 31 of the touch panel 3 accepts user input. In particular, the operation unit 31 of this embodiment accepts an input operation for updating the target drug color data 84 linked to the captured image 82 in which the discrimination unit 64 failed to discriminate the type of the target drug, to the color data of the reference drug designated by the user.

例えば、判別部64が対象薬剤の種類の判別に失敗した場合、ユーザは失敗した撮像画像82をタッチパネル3の表示部32等から確認する。ユーザによる撮像画像82に撮像された対象薬剤の判別が可能であった場合、ユーザは判別した薬剤の種類を指定し、当該撮像画像82に紐付いた対象薬剤色データ84を指定した基準薬剤の色データに更新する操作入力を行う。すなわち、上記操作入力では、基準薬剤の指定および撮像画像82の指定が入力される。また、操作部31は基準薬剤の色データだけを、指定された撮像画像82に紐付いた対象薬剤色データ84に更新する操作入力を受け付けてもよい。また、操作部31は、基準薬剤の色データおよび撮像画像の両方を、指定された撮像画像82、および指定された撮像画像82に紐付いた対象薬剤色データ84に更新する操作入力を受け付けてもよい。 For example, if the discrimination unit 64 fails to discriminate the type of target drug, the user checks the failed captured image 82 on the display unit 32 of the touch panel 3, etc. If the user is able to discriminate the target drug captured in the captured image 82, the user specifies the discriminated type of drug and performs an operation input to update the target drug color data 84 linked to the captured image 82 to the color data of the specified reference drug. That is, the above operation input includes the specification of the reference drug and the captured image 82. The operation unit 31 may also accept an operation input to update only the color data of the reference drug to the target drug color data 84 linked to the specified captured image 82. The operation unit 31 may also accept an operation input to update both the color data and the captured image of the reference drug to the specified captured image 82 and the target drug color data 84 linked to the specified captured image 82.

(薬剤データベース更新部74)
薬剤データベース更新部74は、判別部64が対象薬剤の種類の判別に失敗した場合に、ユーザによる操作を受け付けた後、当該判別に使用された対象薬剤色データ84を、新たな基準薬剤の色データとして更新する。
(Drug database update unit 74)
When the discrimination unit 64 fails to discriminate the type of target drug, the drug database update unit 74 accepts operation from the user and then updates the target drug color data 84 used for the discrimination as color data of a new reference drug.

詳細には、薬剤データベース更新部74は、操作入力部66を介したユーザの操作入力に従い、薬剤データベース81においてユーザが指定する基準薬剤の色データを、ユーザが指定する撮像画像82に紐付いた対象薬剤色データ84に更新する。 In detail, the drug database update unit 74 updates the color data of the reference drug specified by the user in the drug database 81 to the target drug color data 84 linked to the captured image 82 specified by the user, in accordance with the user's operational input via the operation input unit 66.

また、薬剤データベース更新部74は、基準薬剤の色データおよび基準薬剤の撮像画像の両方を更新する操作入力を受け付けた場合は以下のように処理を行う。薬剤データベース更新部74は、薬剤データベース81においてユーザが指定する基準薬剤の色データおよび撮像画像を、指定された撮像画像82、および指定された撮像画像82に紐付いた対象薬剤色データ84に更新する。 Furthermore, when the drug database update unit 74 receives an operation input to update both the color data of the reference drug and the captured image of the reference drug, it performs the following processing. The drug database update unit 74 updates the color data and captured image of the reference drug specified by the user in the drug database 81 to the specified captured image 82 and the target drug color data 84 linked to the specified captured image 82.

(処理例)
図9は、本実施形態の薬剤データベース更新部74の更新処理の一例を示すフローチャートである。図9に示すように、薬剤データベース更新部74は、薬剤データベース81に格納されている基準薬剤の色データを更新する操作入力を受け付けたか否かを判断する(S21)。基準薬剤の色データを更新する操作入力を受け付けた場合(S21でYES)、薬剤データベース更新部74は以下の処理を行う。薬剤データベース更新部74は、薬剤データベース81においてユーザが指定する基準薬剤の色データを、指定された撮像画像82に紐付いた対象薬剤色データ84に更新し(S22)、処理は終了する。なお、基準薬剤の色データを更新する操作入力を受け付けていない場合(S21でNO)、処理はS21に戻る。
(Processing example)
9 is a flowchart illustrating an example of the update process of the drug database update unit 74 according to this embodiment. As shown in FIG. 9 , the drug database update unit 74 determines whether or not an operation input for updating the color data of the reference drug stored in the drug database 81 has been received (S21). If an operation input for updating the color data of the reference drug has been received (YES in S21), the drug database update unit 74 performs the following process. The drug database update unit 74 updates the color data of the reference drug designated by the user in the drug database 81 to the target drug color data 84 associated with the designated captured image 82 (S22), and the process ends. Note that if an operation input for updating the color data of the reference drug has not been received (NO in S21), the process returns to S21.

〔実施形態5〕
(概要)
本実施形態では、図10から図12を用いて、対象薬剤の判別を素早く、精度よく行うことができる構成について説明する。
[Embodiment 5]
(overview)
In this embodiment, a configuration that allows target drugs to be quickly and accurately identified will be described with reference to FIGS. 10 to 12. FIG.

本実施形態においては、薬剤データベース81には、各基準薬剤が特定の薬剤であるか否かを示す特定薬剤情報が、各基準薬剤に関する薬剤データとして含まれている。 In this embodiment, the drug database 81 includes specific drug information indicating whether each reference drug is a specific drug as drug data for each reference drug.

本実施形態に係る判別部64は、基準薬剤および対象薬剤の表面に表示されている識別情報、および、基準薬剤および対象薬剤の撮像画像における薬剤の像に対する識別情報の表示領域の相対位置を示す位置情報を用いて、対象薬剤の種類を判別する。但し、特定薬剤情報が特定の薬剤であることを示す基準薬剤が対象薬剤の候補である場合に、判別部64は、上記位置情報を対象薬剤の種類の判別に用いずに、対象薬剤が基準薬剤と同種の薬剤であるか否かを判別する。 The discrimination unit 64 according to this embodiment discriminates the type of target drug using identification information displayed on the surface of the reference drug and the target drug, and position information indicating the relative position of the display area of the identification information with respect to the image of the drug in the captured image of the reference drug and the target drug. However, if the reference drug indicated by the specific drug information to be a specific drug is a candidate for the target drug, the discrimination unit 64 does not use the position information to discriminate the type of target drug, but instead determines whether the target drug is the same type of drug as the reference drug.

例えば、形状が球状の薬剤、生産ロット間で識別情報の表示位置が異なっている薬剤においては、同種の薬剤であっても、基準画像における相対位置と対象画像における相対位置とが所定の値以上離れている場合がある。上記の構成によれば、上述のような薬剤が対象薬剤である場合には、上記2つの相対位置が所定の値以上離れているかどうかに依らず、対象薬剤が基準薬剤と同種の薬剤であるか否かを判別できる。一方、所定の種類の対象薬剤以外の薬剤については、上記2つの相対位置が所定の値以上離れている場合には、対象薬剤の種類が基準薬剤と同種の薬剤であるものと判別しない。例えば、識別情報の一部が同じ文字列である異種の2つの薬剤については、対象薬剤を基準薬剤と同種の薬剤であるものと判別しない。従って、上記の構成によれば、薬剤の誤判別の可能性を低減することができる。 For example, in the case of spherical medicines or medicines for which the display position of identification information differs between production lots, even if the medicines are of the same type, the relative position in the reference image and the relative position in the target image may be different by more than a predetermined value. With the above configuration, when such medicines are the target medicine, it is possible to determine whether the target medicine is the same type as the reference medicine, regardless of whether the two relative positions are different by more than a predetermined value. On the other hand, for medicines other than the predetermined type of target medicine, if the two relative positions are different by more than a predetermined value, the type of the target medicine is not determined to be the same type as the reference medicine. For example, in the case of two different medicines that share the same character string as part of their identification information, the target medicine is not determined to be the same type as the reference medicine. Therefore, with the above configuration, the possibility of misidentifying medicines can be reduced.

(制御部60a)
本実施形態に係る制御部60aは、実施形態1にて説明した要部構成を備えている。
(Control unit 60a)
The control unit 60a according to this embodiment has the main components described in the first embodiment.

(判別部64)
本実施形態に係る判別部64は、図1に示す特徴抽出部64aおよび照合部64bを備えている。判別部64は、実施形態1にて説明した処理に加えて以下の処理を行う。
(Discrimination unit 64)
The discrimination unit 64 according to this embodiment includes a feature extraction unit 64a and a matching unit 64b shown in Fig. 1. The discrimination unit 64 performs the following processes in addition to the processes described in the first embodiment.

(特徴抽出部64a)
特徴抽出部64aは、対象薬剤が撮像されている撮像画像82から、対象薬剤の特徴情報(第7特徴情報)を抽出する。上記特徴情報には、(1)対象薬剤の表面に表示されている識別情報、および(2)対象薬剤の像に対する識別情報の表示領域の相対位置を示す位置情報(第1位置情報)、が少なくとも含まれている。
(Feature extraction unit 64a)
The feature extraction unit 64a extracts feature information (seventh feature information) of the target drug from the captured image 82. The feature information includes at least (1) identification information displayed on the surface of the target drug, and (2) position information (first position information) indicating the relative position of the display area of the identification information with respect to the image of the target drug.

詳細には、特徴抽出部64aは、実施形態1にて説明した判別部64が抽出する対象薬剤の特徴に加えて、対象薬剤の像に対する識別情報の表示領域の相対位置を特徴として抽出する。特徴抽出部64aは、第1位置情報を含む特徴情報を照合部64bに出力する。 In detail, in addition to the features of the target drug extracted by the discrimination unit 64 described in embodiment 1, the feature extraction unit 64a extracts the relative position of the display area of the identification information with respect to the image of the target drug as a feature. The feature extraction unit 64a outputs feature information including the first position information to the matching unit 64b.

例えば、上記識別情報は、実施形態1で説明したように、薬剤を識別するために薬剤の表面に付された刻印またはプリント等である。また、上記「対象薬剤の像に対する識別情報の表示領域の相対位置」は、対象薬剤の像に対する薬剤の表面の刻印またはプリントの表示領域における所定の位置(例えば、表示領域の中心)等を例に挙げることができる。 For example, as described in embodiment 1, the identification information may be an inscription or print affixed to the surface of the medication to identify the medication. Furthermore, the "relative position of the display area of the identification information relative to the image of the target medication" may be, for example, a predetermined position (e.g., the center of the display area) in the display area of the inscription or print on the surface of the medication relative to the image of the target medication.

(照合部64b)
照合部64bは、基準薬剤の特徴情報(第8特徴情報)と、対象薬剤の特徴情報(第7特徴情報)とを照合する。上記対象薬剤の特徴情報は、識別情報、および、第1位置情報を少なくとも含む。また、上記基準薬剤の特徴情報(基準薬剤に関する薬剤データ)は、基準薬剤が特定の薬剤であるか否かを示す特定薬剤情報、基準薬剤の表面に表示されている識別情報、および、基準薬剤の像に対する識別情報の表示領域の相対位置を示す位置情報(第2位置情報)を少なくとも含む。上記「基準薬剤の像に対する識別情報の表示領域の相対位置」は、対象薬剤における所定の位置に対応する位置(例えば、表示領域の中心)等を例に挙げることができる。対象薬剤おける相対位置と対象薬剤おける相対位置とは、対応する位置関係にあれば、どのような位置であってもよい。また、特定薬剤情報が示す特定薬剤の例として、当該基準薬剤が転がりやすい形状(球状等)の薬剤、生産ロット間で識別情報の表示位置が異なっている薬剤等を挙げることができる。
(Collation unit 64b)
The collation unit 64b collates the characteristic information of the reference drug (eighth characteristic information) with the characteristic information of the target drug (seventh characteristic information). The characteristic information of the target drug includes at least identification information and first position information. Furthermore, the characteristic information of the reference drug (drug data related to the reference drug) includes at least specific drug information indicating whether the reference drug is a specific drug, identification information displayed on the surface of the reference drug, and position information (second position information) indicating the relative position of the display area of the identification information relative to the image of the reference drug. The "relative position of the display area of the identification information relative to the image of the reference drug" can be, for example, a position corresponding to a predetermined position on the target drug (e.g., the center of the display area). The relative positions on the target drug and the relative positions on the target drug can be any positions as long as they correspond to each other. Furthermore, examples of the specific drug indicated by the specific drug information include a drug with a shape that makes the reference drug roll easily (e.g., spherical), a drug whose display position of the identification information varies between production lots, etc.

照合部64bは、該照合の結果に基づいて対象薬剤の種類を判別する。照合部64bは、特徴抽出部64aが抽出した対象薬剤の特徴に基づいて、パターンマッチング等を用いて、薬剤データベース81に含まれる基準薬剤に関する薬剤データの中から、撮像された対象薬剤に関する薬剤データの候補を絞込んでもよい。また、照合部64bは、上記識別情報に加えて、実施形態1で説明した薬剤の特徴の少なくとも1つを用いて薬剤データの候補を絞込んでもよい。 The matching unit 64b determines the type of target drug based on the results of the matching. The matching unit 64b may use pattern matching or the like to narrow down candidate drug data for the imaged target drug from the drug data for reference drugs included in the drug database 81, based on the features of the target drug extracted by the feature extraction unit 64a. Furthermore, the matching unit 64b may also narrow down candidate drug data using at least one of the drug features described in embodiment 1 in addition to the above identification information.

照合部64bは、特定薬剤情報によって基準薬剤が特定の薬剤であると示されている場合に、第1位置情報と第2位置情報とを対象薬剤の種類の判別に用いずに、対象薬剤が基準薬剤と同種の薬剤であるか否かを判別する。 When the specific drug information indicates that the reference drug is a specific drug, the matching unit 64b determines whether the target drug is the same type of drug as the reference drug without using the first location information and the second location information to determine the type of target drug.

また、照合部64bは、特定薬剤情報によって基準薬剤が特定の薬剤でないと示されている場合に、第1位置情報と第2位置情報とを対象薬剤の種類の判別に用いて、対象薬剤が基準薬剤と同種の薬剤であるか否かを判別する。 In addition, when the specific drug information indicates that the reference drug is not a specific drug, the matching unit 64b uses the first location information and the second location information to determine the type of target drug and determines whether the target drug is the same type of drug as the reference drug.

詳細には、照合部64bは、第1位置情報が示す位置と第2位置情報が示す位置とが所定の値以上離れているか否かを判定する。すなわち、照合部64bは、対象薬剤における相対位置と基準薬剤における相対位置とが所定の値以上離れているかを判断する。照合部64bは、上記判断の結果に応じて、薬剤の種類の判別結果を仕分制御部62に出力する。 In detail, the collation unit 64b determines whether the position indicated by the first position information and the position indicated by the second position information are separated by a predetermined value or more. In other words, the collation unit 64b determines whether the relative position of the target drug and the relative position of the reference drug are separated by a predetermined value or more. Depending on the result of this determination, the collation unit 64b outputs the result of drug type determination to the sorting control unit 62.

(処理例)
図10は、本実施形態の判別部64の判別処理の一例を示すフローチャートである。図10に示すように、特徴抽出部64aは、撮像画像82から対象薬剤の特徴情報を抽出する(S1)。上記特徴情報には、例えば、形状、色データ、識別情報、および、第1位置情報等が含まれている。続いて、照合部64bは、対象薬剤の特徴情報の一部(形状、色データ等)と薬剤データベース81に含まれる基準薬剤の特徴情報とを照合し、対象薬剤の候補となる薬剤データを絞り込む(S2)。続いて、照合部64bは、絞り込んだ対象薬剤の各候補の基準薬剤データの識別情報と対象薬剤の識別情報との照合を開始する(S3)。識別情報の照合の処理において、照合部64bは、識別情報の全体のマッチングを開始する(S4)。詳細には、照合部64bは、候補の基準薬剤データの識別情報の表示領域の形状と対象薬剤の識別情報の表示領域の形状とが一致しているか否かを判定する(S5)。
(Processing example)
FIG. 10 is a flowchart showing an example of the discrimination process of the discrimination unit 64 of this embodiment. As shown in FIG. 10 , the feature extraction unit 64a extracts feature information of the target drug from the captured image 82 (S1). The feature information includes, for example, shape, color data, identification information, and first position information. Next, the matching unit 64b matches part of the feature information of the target drug (shape, color data, etc.) with the feature information of the reference drug included in the drug database 81 to narrow down the drug data to be candidates for the target drug (S2). Next, the matching unit 64b begins matching the identification information of the reference drug data for each of the narrowed-down candidate target drugs with the identification information of the target drug (S3). In the process of matching the identification information, the matching unit 64b begins matching the entire identification information (S4). Specifically, the matching unit 64b determines whether the shape of the display area of the identification information of the candidate reference drug data matches the shape of the display area of the identification information of the target drug (S5).

候補の基準薬剤データの識別情報の表示領域の形状と対象薬剤の識別情報の表示領域の形状とが一致していると判定した場合(S5でYES)、判別部64は、識別情報の1文字ごとのパターンマッチングを開始する(S6)。特徴抽出部64aは、対象薬剤の識別情報に対してOCRを行う(S7)。なお、特徴抽出部64aは、対象薬剤の識別情報に対するOCRをS1のステップで行なってもよい。続いて、照合部64bは、対象薬剤の識別情報に含まれる全ての文字が薬剤データベース81に含まれる基準薬剤の識別情報に含まれる文字と一致しているか否かを判定する(S8)。対象薬剤の識別情報に含まれる全ての文字が基準薬剤の識別情報に含まれる文字と一致していると判定した場合(S8でYES)、照合部64bは以下の処理を行う。照合部64bは、候補の基準薬剤データの特定薬剤情報が特定の薬剤であること示しているか否かを判定する(S31)。なお、本例においては、上記特定の薬剤が転がり易い形状である薬剤である場合を説明する。特定薬剤情報が候補の基準薬剤データが転がり易い形状である薬剤でないことを示していると判定した場合(S31でNO)、照合部64bは、特徴抽出部64aが抽出した第1位置情報と、薬剤データベース81に含まれる対象薬剤の候補の薬剤データが示す基準薬剤の第2位置情報とを照合する(S32)。当該照合により、照合部64bは第1位置情報が示す位置と第2位置情報が示す位置とが所定の値以上離れているか否かを判断する(S33)。 If it is determined that the shape of the display area of the identification information of the candidate reference drug data matches the shape of the display area of the identification information of the target drug (YES in S5), the discrimination unit 64 begins pattern matching for each character of the identification information (S6). The feature extraction unit 64a performs OCR on the identification information of the target drug (S7). Note that the feature extraction unit 64a may perform OCR on the identification information of the target drug in step S1. Next, the matching unit 64b determines whether all characters included in the identification information of the target drug match the characters included in the identification information of the reference drug stored in the drug database 81 (S8). If it is determined that all characters included in the identification information of the target drug match the characters included in the identification information of the reference drug (YES in S8), the matching unit 64b performs the following processing. The matching unit 64b determines whether the specific drug information of the candidate reference drug data indicates that the drug is a specific drug (S31). Note that in this example, the specific drug is a drug with a shape that is easy to roll. If the specific drug information determines that the reference drug data for the candidate drug does not indicate a drug with a shape that is easy to roll (NO in S31), the matching unit 64b matches the first position information extracted by the feature extraction unit 64a with the second position information of the reference drug indicated by the drug data for the candidate drug contained in the drug database 81 (S32). Based on this matching, the matching unit 64b determines whether the position indicated by the first position information and the position indicated by the second position information are separated by a predetermined value or more (S33).

図11は、対象薬剤における相対位置または基準薬剤における相対位置の一例を示す図である。図11のD6、D7、D8およびD9に示す対象薬剤または基準薬剤の像には位置P1、P2、P3およびP4が示されている。位置P1、P2、P3およびP4のそれぞれは、識別情報(ABCまたはABC 12)の表示領域における中心(所定の位置)である。例えば、対象薬剤における相対位置または基準薬剤における相対位置とは、D6、D7、D8およびD9が示す対象薬剤の像に対する、位置P1、P2、P3およびP4である。特徴抽出部64aは、例えば公知の画像処理の技術を用いて識別情報の表示領域を抽出し、当該表示領域の中心を特定する。 Figure 11 is a diagram showing an example of the relative position of a target drug or the relative position of a reference drug. Positions P1, P2, P3, and P4 are shown on the images of the target drug or reference drug shown at D6, D7, D8, and D9 in Figure 11. Positions P1, P2, P3, and P4 are the centers (predetermined positions) of the display area of the identification information (ABC or ABC 12), respectively. For example, the relative positions of the target drug or the relative positions of the reference drug are positions P1, P2, P3, and P4 with respect to the images of the target drug shown at D6, D7, D8, and D9. The feature extraction unit 64a extracts the display area of the identification information using, for example, known image processing techniques, and identifies the center of the display area.

図12は、対象薬剤における相対位置と基準薬剤における相対位置との比較の一例を示す図である。 Figure 12 shows an example of a comparison between the relative position of a target drug and the relative position of a reference drug.

図12のD10は、対象薬剤の像の一例を示している。図12のD10に示すP5は、対象薬剤の像D10に対する識別情報の表示領域の相対位置(識別情報の表示領域の中心)を示している。また、図12のD11は、基準薬剤の像の一例を示している。図12のD11に示すP6は、基準薬剤の像D11に対する識別情報の表示領域の相対位置(識別情報の表示領域の中心)を示している。また、図12のD12は、対象薬剤の像D10と基準薬剤の像D11とを重ねあわせた図である。図12に示す距離L1は、対象薬剤の像における識別情報の表示領域の中心P5と基準薬剤の像における識別情報の表示領域の中心P6との距離を示している。 D10 in Figure 12 shows an example of an image of a target drug. P5 shown in D10 in Figure 12 indicates the relative position of the identification information display area with respect to the image D10 of the target drug (the center of the identification information display area). D11 in Figure 12 also shows an example of an image of a reference drug. P6 shown in D11 in Figure 12 indicates the relative position of the identification information display area with respect to the image D11 of the reference drug (the center of the identification information display area). D12 in Figure 12 is a diagram in which the image D10 of the target drug and the image D11 of the reference drug are superimposed. Distance L1 shown in Figure 12 indicates the distance between the center P5 of the identification information display area in the image of the target drug and the center P6 of the identification information display area in the image of the reference drug.

照合部64bは、距離L1の値が所定の値以上であるか否かを判断する。上記所定の値は適宜設定可能であるが、例えば、30pixel等としてもよい。上記所定の値は、例えば実験により所定の薬剤以外の薬剤について、異種の薬剤であると判別できる程度に設定されていればよい。 The collation unit 64b determines whether the value of distance L1 is equal to or greater than a predetermined value. The predetermined value can be set as appropriate, for example, to 30 pixels. The predetermined value may be set to a level that allows drugs other than the specified drug to be identified as different drugs through experiments, for example.

照合部64bが、第1位置情報が示す位置と第2位置情報が示す位置とが所定の値以上離れていないと判断した場合(S33でNO)、照合部64bは、判別した薬剤の種類を仕分制御部62に出力し(S34)、処理は終了する。 If the collation unit 64b determines that the position indicated by the first position information and the position indicated by the second position information are not separated by more than a predetermined value (NO in S33), the collation unit 64b outputs the determined type of medicine to the sorting control unit 62 (S34), and the process ends.

なお、候補の基準薬剤データの識別情報の表示領域の形状と対象薬剤の識別情報の表示領域の形状とが一致していないと判定した場合(S5でNO)、判別部64は以下の処理を行う。判別部64は、照合未処理の候補の基準薬剤データがあるか否かを判定する(S35)。照合未処理の候補の基準薬剤データがある場合(S35でYES)、処理はS3に戻る。照合未処理の候補の基準薬剤データがない場合(S35でNO)、処理は終了する。また、対象薬剤の識別情報に含まれる全ての文字が基準薬剤の識別情報に含まれる文字と一致していないと判定した場合(S8でNO)、処理はS35に続く。また、照合部64bが、第1位置情報が示す位置と第2位置情報が示す位置とが所定の値以上離れていると判断した場合(S33でYES)、処理はS35に続く。また、特定薬剤情報が候補の基準薬剤データが転がり易い形状である薬剤であることを示していると判定した場合(S31でYES)、処理はS34に続く。 If it is determined that the shape of the display area of the identification information of the candidate reference drug data does not match the shape of the display area of the identification information of the target drug (NO in S5), the discrimination unit 64 performs the following process. The discrimination unit 64 determines whether there is any unmatched candidate reference drug data (S35). If there is unmatched candidate reference drug data (YES in S35), the process returns to S3. If there is no unmatched candidate reference drug data (NO in S35), the process ends. If it is determined that all characters included in the identification information of the target drug do not match the characters included in the identification information of the reference drug (NO in S8), the process continues to S35. If the comparison unit 64b determines that the position indicated by the first position information and the position indicated by the second position information are separated by a predetermined value or more (YES in S33), the process continues to S35. If it is determined that the specific drug information indicates that the candidate reference drug data is a drug with a shape that is easy to roll (YES in S31), the process continues to S34.

なお、対象薬剤の候補となり得る薬剤データが薬剤データベース81に含まれていない場合、すなわち、照合未処理の候補の基準薬剤データがない場合(S35でNO)、以下の処理が行われてもよい。照合部64bは、対象薬剤の特徴の少なくとも一部に基づき薬剤(錠剤またはカプセル)であると推定した場合には、対象薬剤の種類を推定薬剤として判別して、処理は終了する。また、照合部64bは、撮像画像82における撮像対象を薬剤と判別できなかった場合には、撮像対象を薬剤以外の異物として判別して、処理は終了する。 Note that if the drug database 81 does not contain any drug data that could be a candidate for the target drug, i.e., if there is no reference drug data for a candidate that has not yet been matched (NO in S35), the following processing may be performed. If the matching unit 64b estimates that the target drug is a drug (tablet or capsule) based on at least some of the characteristics of the target drug, it determines the type of target drug as a suspected drug and ends the processing. Also, if the matching unit 64b cannot determine that the imaged object in the captured image 82 is a drug, it determines that the imaged object is a foreign object other than a drug and ends the processing.

〔実施形態6〕
(概要)
本実施形態では、図13を用いて、仕分処理の効率を向上させることできる構成について説明する。
[Embodiment 6]
(overview)
In this embodiment, a configuration that can improve the efficiency of the sorting process will be described with reference to FIG.

本実施形態に係る優先度決定部65は、薬剤仕分装置1の過去の仕分け実績に基づいて薬剤の種類に優先度を付ける。例えば、優先度決定部65は、判別部64の判別履歴における判別の頻度に応じた優先度を薬剤の種類ごとに決定してもよい。また、本実施形態に係る仕分制御部62は、該優先度が所定の値よりも低い種類の薬剤を待機トレイ(仮収容部)15に仮置きすることを決定する。 The priority determination unit 65 according to this embodiment assigns priorities to drug types based on the past sorting performance of the drug sorting device 1. For example, the priority determination unit 65 may determine a priority for each drug type based on the frequency of discrimination in the discrimination history of the discrimination unit 64. Furthermore, the sorting control unit 62 according to this embodiment determines that drug types with a priority lower than a predetermined value should be temporarily placed in the waiting tray (temporary storage unit) 15.

一般に、薬剤仕分装置1においては数百~数千の薬剤が仕分される一方で、第2収容部14に配置できる仕分カップ141の数には限りがある(本実施形態では、40個の仕分カップ141を配置できる)。従って、仕分順に薬剤を仕分けた場合、判別頻度の低い薬剤(仕分カップ141への収容数が少ない薬剤)が仕分カップ141へ、判別頻度の高い薬剤(仕分カップ141への収容数が多い薬剤)を待機トレイ15へ仕分られる可能性がある。 Generally, while the medicine sorting device 1 sorts hundreds to thousands of medicines, there is a limit to the number of sorting cups 141 that can be placed in the second storage unit 14 (in this embodiment, 40 sorting cups 141 can be placed). Therefore, when medicines are sorted in sorting order, there is a possibility that medicines with a low discrimination frequency (medicines that are held in small numbers in the sorting cups 141) will be sorted into the sorting cups 141, and medicines with a high discrimination frequency (medicines that are held in large numbers in the sorting cups 141) will be sorted into the waiting tray 15.

上記の構成によれば、判別履歴において頻度の低い薬剤を待機トレイ15に仮置きする。そのため、判別履歴において頻度の高い薬剤を優先して第2収容部14の仕分カップ141に仕分けることができる。すなわち、より多くの薬剤を仕分対象(仕分カップ141に仕分ける対象)とすることができる。 With the above configuration, medications with a low frequency in the classification history are temporarily placed on the waiting tray 15. Therefore, medications with a high frequency in the classification history can be prioritized and sorted into the sorting cups 141 of the second storage unit 14. In other words, more medications can be sorted (targets for sorting into the sorting cups 141).

また、優先度決定部65は、処方頻度に応じた優先度を薬剤の種類ごとに決定してもよい。 The priority determination unit 65 may also determine priorities for each type of medication based on prescription frequency.

また、優先度決定部65は、1度の仕分け作業における仕分カップ141への仕分けのみで仕分け作業が完結する率が最も高くなる、仕分カップ141に仕分ける薬剤の種類の組み合わせを遺伝的アルゴリズムを用いて特定する。上記特定において、優先度決定部65は、過去の仕分実績を用いてもよい。優先度決定部65は、特定した薬剤の種類の組み合わせから各薬剤の種類の指標を算出する。優先度決定部65は、算出した指標から各薬剤の種類に優先度を付ける。 The priority determination unit 65 also uses a genetic algorithm to identify a combination of drug types to be sorted into the sorting cups 141 that will maximize the rate at which the sorting work can be completed by sorting into the sorting cups 141 in a single sorting operation. In identifying these combinations, the priority determination unit 65 may use past sorting results. The priority determination unit 65 calculates an index for each drug type from the identified combination of drug types. The priority determination unit 65 assigns a priority to each drug type based on the calculated index.

また、本実施形態に係る処理は、第1収容部11に収容されている薬剤が所定の量よりも多い(例えば、収容されている薬剤によって第1収容部11の底が見えない)場合に行われる構成としてもよい。 The process according to this embodiment may also be configured to be performed when the amount of medication contained in the first storage unit 11 is greater than a predetermined amount (for example, when the bottom of the first storage unit 11 is not visible due to the amount of medication contained therein).

(制御部60a)
本実施形態に係る制御部60aは、実施形態1にて説明した要部構成に加え、図1に示す優先度決定部65を備えている。
(Control unit 60a)
The control unit 60a according to this embodiment includes a priority determination unit 65 shown in FIG. 1 in addition to the main components described in the first embodiment.

(優先度決定部65)
優先度決定部65は、薬剤仕分装置1の過去の仕分実績に基づいて薬剤の種類に優先度を付ける。優先度決定部65は、決定した各薬剤の種類の優先度を示す優先度データ83を記憶部80に記憶する。詳細には、優先度決定部65は、判別部64の判別履歴における判別の頻度に応じた優先度を薬剤(基準薬剤)の種類ごとに決定する。さらに詳細には、判別部64は、対象薬剤の種類を1つに特定できた場合、または所定数以内の候補数に絞込んだ場合には、当該対象薬剤に関する薬剤データ(判別した種類)を当該対象薬剤の撮像画像82に紐づけて記憶部80に記憶する。例えば、優先度決定部65は、当該対象薬剤に関する薬剤データ(判別した種類)を判別履歴として用いてもよい。また、優先度決定部65は、判別履歴において判別した頻度が多い薬剤の種類順に優先度が高くなるように、各薬剤の種類に優先度を設定してもよい。
(Priority determination unit 65)
The priority determination unit 65 prioritizes drug types based on the past sorting performance of the drug sorting device 1. The priority determination unit 65 stores priority data 83 indicating the determined priority of each drug type in the storage unit 80. Specifically, the priority determination unit 65 determines a priority for each drug type (reference drug) based on the frequency of discrimination in the discrimination history of the discrimination unit 64. More specifically, when the discrimination unit 64 has identified a single drug type or narrowed down the number of candidates to a predetermined number or less, the discrimination unit 64 associates drug data (discriminated type) related to the target drug with a captured image 82 of the target drug and stores the data in the storage unit 80. For example, the priority determination unit 65 may use the drug data (discriminated type) related to the target drug as the discrimination history. Furthermore, the priority determination unit 65 may set a priority for each drug type such that the drug type that is most frequently discriminated in the discrimination history has a higher priority.

なお、優先度決定部65は、判別部64が対象薬剤の判別を行う毎に、優先度データ83を更新してもよい。また、優先度決定部65は、前回の優先度データ83の更新から判別部64の判別回数が所定の回数に達した場合に、優先度データ83を更新してもよい。また、優先度決定部65は、所定の期間の間隔で優先度データ83を更新してもよい。 The priority determination unit 65 may update the priority data 83 each time the discrimination unit 64 discriminates the target drug. Furthermore, the priority determination unit 65 may update the priority data 83 when the discrimination unit 64 has discriminated a predetermined number of times since the previous update of the priority data 83. Furthermore, the priority determination unit 65 may update the priority data 83 at predetermined intervals.

(仕分制御部62)
本実施形態に係る仕分制御部62は、実施形態1にて説明した処理に加え以下の処理を行う。
(Sorting control unit 62)
The sorting control unit 62 according to this embodiment performs the following processes in addition to the processes described in the first embodiment.

仕分制御部62は、判別部64により判別された対象薬剤の種類に対応する優先度が、所定の値よりも低い場合に当該対象薬剤を待機トレイ15に仮置きすることを決定する。詳細には、仕分制御部62は、記憶部80の優先度データ83から、判別部64により判別された対象薬剤の種類に対応する優先度を取得する。仕分制御部62は、取得した優先度が所定の値よりも低い場合、判別部64により判別された対象薬剤を待機トレイ15に仮置きすることを決定する。上記所定の値は、例えば薬剤仕分装置1を使用していくうえで、ユーザが所望する種類数の薬剤を仕分けできる程度に設定されていればよい。 If the priority corresponding to the type of target drug identified by the discrimination unit 64 is lower than a predetermined value, the sorting control unit 62 determines to temporarily place the target drug on the waiting tray 15. In detail, the sorting control unit 62 acquires the priority corresponding to the type of target drug identified by the discrimination unit 64 from the priority data 83 in the memory unit 80. If the acquired priority is lower than a predetermined value, the sorting control unit 62 determines to temporarily place the target drug identified by the discrimination unit 64 on the waiting tray 15. The predetermined value may be set to a value that allows the user to sort the number of types of drugs desired when using the drug sorting device 1, for example.

(処理例)
図13は、本実施形態の仕分制御部62の薬剤仕分処理の一例を示すフローチャートである。
(Processing example)
FIG. 13 is a flowchart showing an example of a medicine sorting process of the sorting control unit 62 of this embodiment.

図13に示すように、仕分制御部62は判別した対象薬剤の種類を受け付けると、当該対象薬剤の種類に対応する優先度が所定の値よりも低いか否かを判断する(S41)。当該優先度が所定の値よりも低い場合(S41でYES)、当該対象薬剤を待機トレイ15に仮置きすることを決定し(S42)、処理は終了する。 As shown in FIG. 13, when the sorting control unit 62 receives the identified type of target drug, it determines whether the priority corresponding to that type of target drug is lower than a predetermined value (S41). If the priority is lower than the predetermined value (YES in S41), it decides to temporarily place the target drug on the waiting tray 15 (S42), and the process ends.

上記優先度が所定の値以上である場合(S41でNO)、仕分制御部62は、上記判別結果と同一の判別結果が記憶部80に記憶されているか否かを判定する(S43)。すなわち、当該対象薬剤の種類が既に判別されているか否かを判定する。上記判別結果と同一の判別結果が記憶されている場合(S43でYES)、記憶されている判別結果に紐付けられた仕分カップ141を、仕分位置として決定し(S44)、処理は終了する。 If the priority is equal to or greater than a predetermined value (NO in S41), the sorting control unit 62 determines whether a discrimination result identical to the above discrimination result is stored in the memory unit 80 (S43). That is, it determines whether the type of the target drug has already been discriminated. If a discrimination result identical to the above discrimination result is stored (YES in S43), the sorting cup 141 linked to the stored discrimination result is determined as the sorting position (S44), and the process ends.

また、同一の判別結果が記憶されていない場合(S43でNO)、薬剤未格納の仕分カップ141(仕分位置として未決定の仕分カップ141)を、仕分位置として決定する(S45)。続いて、仕分制御部62は、当該判別した薬剤の種類と、決定した仕分位置とを紐付けて記憶部80に記憶し(S46)、処理は終了する。 Also, if the same determination result is not stored (NO in S43), a sorting cup 141 that does not contain any medication (a sorting cup 141 whose sorting position has not been determined) is determined as the sorting position (S45). Next, the sorting control unit 62 associates the determined type of medication with the determined sorting position and stores them in the memory unit 80 (S46), and the process ends.

〔実施形態7〕
(概要)
本実施形態では、図14を用いて、仕分作業を向上させることができる構成について説明する。
[Embodiment 7]
(overview)
In this embodiment, a configuration that can improve the sorting work will be described with reference to FIG.

ある薬剤に示されている識別情報が製薬メーカ等により変更された場合、変更前の識別情報を有する薬剤と変更後の識別情報を有する薬剤とが薬局内に混在することとなる。特に、ある薬剤において識別情報が変更されているが、変更前後で判別された薬剤が同一のYJコード等で管理される場合、変更前後の識別情報を有する薬剤は混在された状態で管理され得る。 If the identification information shown on a drug is changed by a pharmaceutical manufacturer or other entity, drugs with the previous identification information and drugs with the new identification information will be mixed in the pharmacy. In particular, if the identification information of a drug has been changed, but the drug identified before and after the change is managed using the same YJ code, etc., the drugs with the identification information before and after the change may be managed in a mixed state.

本実施形態に係る印刷出力制御部69は、識別情報の変更が生じた薬剤が判別部64により複数回判別されている場合、以下の処理を行う。印刷出力制御部69は、「識別情報変更あり」とのアラートを、薬剤を分包する薬包紙、または薬剤に関する薬剤データを表すジャーナルに印字するように印刷出力部4を制御する。 In this embodiment, the print output control unit 69 performs the following processing when a drug whose identification information has changed has been identified multiple times by the discrimination unit 64. The print output control unit 69 controls the print output unit 4 to print an alert stating "Identification information has changed" on the medicine packaging paper used to package the drug, or in a journal that displays drug data related to the drug.

上記の構成によれば、識別情報が変更される前後の薬剤が混在して仕分けられている可能性をユーザに認識させることができる。例えば分包機での薬剤の充填または再利用時に、識別情報が変更される前後の薬剤同士が混在しないよう、ユーザに注意喚起できる。 The above configuration makes it possible for users to be aware of the possibility that medications before and after the identification information change may be mixed and sorted. For example, when filling or reusing medications in a packaging machine, users can be warned not to mix medications before and after the identification information change.

(制御部60a)
本実施形態に係る制御部60aは、実施形態1にて説明した要部構成を備えている。
(Control unit 60a)
The control unit 60a according to this embodiment has the main components described in the first embodiment.

(判別部64)
本実施形態に係る判別部64は、実施形態1にて説明した処理に加え以下の処理を行う。判別部64は、対象薬剤の判別に用いた撮像画像82および撮像画像判別情報86を記憶部80に記憶する。詳細には、判別部64は、撮像画像82から対象薬剤の種類を判別し、判別した当該対象薬剤の種類を特定するコード(例えば、YJコード)を撮像画像判別情報86として記憶部80に記憶させる。撮像画像判別情報86と対象薬剤の判別に用いた撮像画像82とは紐付いて記憶部80に記憶される。
(Discrimination unit 64)
The discrimination unit 64 according to this embodiment performs the following process in addition to the processes described in the first embodiment. The discrimination unit 64 stores the captured image 82 used to discriminate the target drug and captured image discrimination information 86 in the storage unit 80. In detail, the discrimination unit 64 discriminates the type of the target drug from the captured image 82, and stores a code (e.g., a YJ code) that specifies the discriminated type of the target drug in the storage unit 80 as the captured image discrimination information 86. The captured image discrimination information 86 and the captured image 82 used to discriminate the target drug are associated with each other and stored in the storage unit 80.

また、本実施形態に係る記憶部80は、識別情報変更情報85を記憶している。識別情報変更情報85は、識別情報に変更が生じた薬剤の種類を特定するコード(例えば、YJコード)を示す。また、識別情報変更情報85は、識別情報の変更が生じた日時を示してもよい。 The memory unit 80 according to this embodiment also stores identification information change information 85. The identification information change information 85 indicates a code (e.g., a YJ code) that identifies the type of drug whose identification information has been changed. The identification information change information 85 may also indicate the date and time when the identification information change occurred.

(印刷出力制御部69)
印刷出力制御部69は、識別情報変更情報85を参照し、識別情報に変更が生じた薬剤の種類を特定するコードを取得する。印刷出力制御部69は、撮像画像判別情報86と識別情報変更情報85とを照合して、識別情報に変更が生じた薬剤に紐付いた撮像画像82が複数存在するか否かを判断する。なお、印刷出力制御部69は、ある薬剤において識別情報の変更が生じた場合、変更が生じてから所定の期間(例えば、変更が生じてから30日間)に限り、上記処理を行う構成としてもよい。
(Print output control unit 69)
The printout control unit 69 references the identification information change information 85 and acquires a code that identifies the type of drug whose identification information has changed. The printout control unit 69 compares the captured image discrimination information 86 with the identification information change information 85 to determine whether there are multiple captured images 82 linked to the drug whose identification information has changed. Note that, when a change in the identification information of a certain drug occurs, the printout control unit 69 may be configured to perform the above processing only for a predetermined period after the change (e.g., 30 days after the change).

識別情報に変更が生じた薬剤に紐付いた撮像画像82が複数存在すると判断した場合、印刷出力制御部69は以下の処理を行う。印刷出力制御部69は、「識別情報変更あり」とのアラートを、薬包紙またはジャーナルに印字するように印刷出力部4を制御する。上記構成においては、分包機構6は、薬包に分包した薬剤の薬剤データを、当該薬包に印刷する印刷機構(不図示)を備えており、印刷出力制御部69によって当該印刷機構の印刷の制御が行われてもよい。 If it is determined that there are multiple captured images 82 associated with a drug whose identification information has changed, the printout control unit 69 performs the following process. The printout control unit 69 controls the printout unit 4 to print an alert stating "Identification information has changed" on the medicine packaging paper or journal. In the above configuration, the packaging mechanism 6 is equipped with a printing mechanism (not shown) that prints drug data for the drugs packaged in the medicine packaging on the medicine packaging, and the printing of the printing mechanism may be controlled by the printout control unit 69.

なお、識別情報に変更が生じた薬剤について、所定の期間において変更前の識別情報または変更後の識別情報の何れか1つを示す薬剤のみが判別部64に判別された場合、印刷出力制御部69は該アラートを印字するための制御を中止してもよい。 In addition, for drugs whose identification information has changed, if the discrimination unit 64 discriminates only drugs that show either the identification information before the change or the identification information after the change within a specified period, the print output control unit 69 may discontinue control to print the alert.

(処理例)
図14は、本実施形態に係る印刷出力制御部69の印刷制御処理の一例を示すフローチャートである。
(Processing example)
FIG. 14 is a flowchart showing an example of a print control process of the print output control unit 69 according to this embodiment.

図14に示すように、印刷出力制御部69は、識別情報変更情報85を参照し、識別情報に変更が生じた薬剤が存在するか否かを判断する(S51)。例えば、印刷出力制御部69は、識別情報に変更が生じてから所定の期間内である薬剤が存在するか否かを判断してもよい。 As shown in FIG. 14, the printout control unit 69 references the identification information change information 85 and determines whether there are any drugs whose identification information has changed (S51). For example, the printout control unit 69 may determine whether there are any drugs whose identification information has changed within a predetermined period of time.

識別情報に変更が生じた薬剤が存在すると判断した場合(S51でYES)、印刷出力制御部69は、識別情報に変更が生じた薬剤を特定するコードに紐付いた撮像画像82が複数存在するか否を判断する(S52)。当該撮像画像82が複数存在すると判断した場合(S52でYES)、印刷出力制御部69は、印刷出力部4に「識別情報変更あり」とのアラートを印字するように制御し(S53)、処理は終了する。 If it is determined that a drug with a changed identification information exists (YES in S51), the printout control unit 69 determines whether there are multiple captured images 82 linked to the code that identifies the drug with a changed identification information (S52). If it is determined that multiple captured images 82 exist (YES in S52), the printout control unit 69 controls the printout unit 4 to print an alert stating "Identification information changed" (S53), and the process ends.

なお、印刷出力制御部69が識別情報に変更が生じた薬剤が存在しないと判断した場合(S51でYES)、処理は終了する。また、印刷出力制御部69が上記撮像画像82が複数存在しないと判断した場合(S52でNO)、処理は終了する。 If the printout control unit 69 determines that there are no drugs whose identification information has changed (YES in S51), the process ends. Also, if the printout control unit 69 determines that there are no multiple captured images 82 (NO in S52), the process ends.

〔実施形態8〕
(概要)
本実施形態では、仕分作業を向上させることができる構成について説明する。
[Embodiment 8]
(overview)
In this embodiment, a configuration that can improve the sorting work will be described.

本実施形態に係る薬剤仕分装置1は、夜間等の無人となる時間の設定の操作入力を受付けて、熱源を要する処理、発光を行う処理、報知音を出力する処理等を制限する。 The medicine sorting device 1 according to this embodiment accepts operational input for setting unmanned times, such as overnight, and restricts processes that require a heat source, emit light, output alarm sounds, etc.

例えば、夜間等の無人となる時間帯に警備システムが起動する環境に設置されている薬剤仕分装置1を夜間等に運転すると、薬剤仕分装置1から生じる光、報知音、熱等を警備システムが検知する可能性が生じ得る。この場合、薬剤仕分装置1の処理を停止させる可能性がある。あるいは、薬剤仕分装置1を夜間に使用できない可能性がある。上記構成によれば、警備システムが起動する夜間等の無人となる時間帯における薬剤仕分装置1の運転を可能にする。 For example, if a medicine sorting device 1 is installed in an environment where a security system is activated during unmanned hours, such as at night, and is operated at night, the security system may detect light, alarm sounds, heat, etc. emitted by the medicine sorting device 1. In this case, the medicine sorting device 1 may stop processing. Alternatively, the medicine sorting device 1 may not be usable at night. The above configuration makes it possible to operate the medicine sorting device 1 during unmanned hours, such as at night, when the security system is activated.

(操作部31)
タッチパネル3の操作部31は、ユーザ入力を受け付ける。特に本実施形態に係る操作部31は、ユーザが指定する上記時間帯の設定の入力操作を受付ける。
(Operation unit 31)
The operation unit 31 of the touch panel 3 accepts user input. In particular, the operation unit 31 according to this embodiment accepts an input operation for setting the time period specified by the user.

(通知部8)
本実施形態に係る薬剤仕分装置1は、図1に示す通知部8を備えている。通知部8は、例えば、光を点灯するパトライト(登録商標)、音声を出力するスピーカ等を備えている。通知部8は、パトライト(登録商標)の点灯、音声出力等により薬剤仕分装置1の各処理の完了、中断等を通知する。
(Notification section 8)
The medicine sorting device 1 according to this embodiment includes a notification unit 8 shown in Fig. 1. The notification unit 8 includes, for example, a PATLITE (registered trademark) that turns on a light, a speaker that outputs sound, etc. The notification unit 8 notifies the completion or interruption of each process of the medicine sorting device 1 by turning on the PATLITE (registered trademark), outputting sound, etc.

(分包機構6)
本実施形態に係る分包機構6は、実施形態1に説明した構成に加え、分包紙をシールするためのヒータローラ(不図示)を備えている。
(Saving mechanism 6)
In addition to the configuration described in the first embodiment, the packaging mechanism 6 according to this embodiment is equipped with a heater roller (not shown) for sealing the packaging paper.

(制御部60a)
本実施形態に係る制御部60aは、実施形態1にて説明した要部構成に加え、図1に示す通知制御部75を備えている。
(Control unit 60a)
The control unit 60a according to this embodiment includes a notification control unit 75 shown in FIG. 1 in addition to the main components described in the first embodiment.

(通知制御部75)
通知制御部75は、制御部60aに含まれている各部材から処理の完了、処理中断の通知を行う指示を受信する。通知制御部75は、受信した指示に応じて、通知部8を制御する。
(Notification control unit 75)
The notification control unit 75 receives instructions to notify the completion or interruption of processing from each component included in the control unit 60a. The notification control unit 75 controls the notification unit 8 in accordance with the received instructions.

本実施形態では特に、通知制御部75は、ユーザが指定する上記時間帯の設定入力を、操作入力部66を介して受付ける。通知制御部75は、設定された当該時間帯において通知部8による通知が行われないように通知部8を制御する。 In this embodiment, the notification control unit 75 particularly accepts the setting input of the above-mentioned time period specified by the user via the operation input unit 66. The notification control unit 75 controls the notification unit 8 so that the notification unit 8 does not issue a notification during the set time period.

(分包制御部71)
分包制御部71は、分包機構6の動作を制御する。本実施形態では特に、分包制御部71は、ユーザが指定する上記時間帯の設定入力を操作入力部66を介して受付ける。分包制御部71は、設定された当該時間帯において、分包機構6のヒータローラが始動しないように分包機構6を制御する。
(Packaging control unit 71)
The packaging control unit 71 controls the operation of the packaging mechanism 6. In this embodiment, in particular, the packaging control unit 71 accepts setting input of the time period specified by the user via the operation input unit 66. The packaging control unit 71 controls the packaging mechanism 6 so that the heater roller of the packaging mechanism 6 does not start during the set time period.

(処理例)
次に、本実施形態に係る薬剤仕分装置1の機能制限処理の一例を説明する。
(Processing example)
Next, an example of the function restriction process of the medicine sorting device 1 according to this embodiment will be described.

通知制御部75および分包制御部71は、上記時間帯の設定の入力操作を受付けたか否かを判断する。該時間帯の設定の入力操作を受付けた場合、通知制御部75および分包制御部71は以下の処理を行う。通知制御部75は、設定された時間帯において通知部8による通知が行われないように通知部8を制御する。また、分包制御部71は、設定された当該時間帯において、分包機構6のヒータローラを始動させないように分包機構6を制御する。そして、処理は終了する。なお、上記時間帯の設定の入力操作を受付けていない場合、分包制御部71が上記時間帯の設定の入力操作を受付けたか否かを判断する処理に戻る。 The notification control unit 75 and packaging control unit 71 determine whether or not they have accepted an input operation to set the above-mentioned time period. If they have accepted an input operation to set the above-mentioned time period, the notification control unit 75 and packaging control unit 71 perform the following processing. The notification control unit 75 controls the notification unit 8 so that the notification unit 8 does not issue a notification during the set time period. The packaging control unit 71 also controls the packaging mechanism 6 so that the heater roller of the packaging mechanism 6 is not started during the set time period. The processing then ends. Note that if they have not accepted an input operation to set the above-mentioned time period, the processing returns to the processing where the packaging control unit 71 determines whether or not they have accepted an input operation to set the above-mentioned time period.

〔実施形態9〕
(概要)
本実施形態では、図15を用いて、対象薬剤の判別を精度よく行うことができる構成について説明する。
[Embodiment 9]
(overview)
In this embodiment, a configuration that can accurately discriminate target drugs will be described with reference to FIG.

本実施形態に係る照明故障判定部76は、薬剤仕分装置1の起動時、または、判別処理が所定の回数行われると、照明器134が故障しているか否かを判定する。上記の構成によれば、照明器134の故障を検出することができるため、照明器134に故障が生じている状態で撮像した撮像画像82を用いた判別処理が行われる可能性を低減できる。 The illumination failure determination unit 76 according to this embodiment determines whether the illuminator 134 is malfunctioning when the medicine sorting device 1 is started up or after the determination process has been performed a predetermined number of times. The above configuration makes it possible to detect a malfunction in the illuminator 134, thereby reducing the possibility that the determination process will be performed using an image 82 captured when the illuminator 134 is malfunctioning.

(制御部60a)
本実施形態に係る制御部60aは、実施形態1にて説明した要部構成に加え、照明故障判定部76を備えている。
(Control unit 60a)
The control unit 60a according to this embodiment includes a lighting failure determination unit 76 in addition to the main components described in the first embodiment.

(照明故障判定部76)
図1に示すように、照明故障判定部76は、輝度算出部76aおよび輝度比較部76bを備えている。
(Lighting failure determination unit 76)
As shown in FIG. 1, the lighting failure determination unit 76 includes a luminance calculation unit 76a and a luminance comparison unit 76b.

(輝度算出部76a)
輝度算出部76aは、撮像制御部63に画像の撮像を指示し、取得した撮像画像における所定の領域(薬剤載置台133aの枠等の撮像領域)における輝度の平均値を算出する。輝度算出部76aは、算出した輝度の平均値を輝度比較部76bに出力する。
(Brightness calculation unit 76a)
The luminance calculation unit 76a instructs the imaging control unit 63 to capture an image, calculates the average luminance value in a predetermined area (an imaging area such as the frame of the medicine placing table 133a) in the acquired captured image, and outputs the calculated average luminance value to the luminance comparison unit 76b.

例えば、輝度算出部76aは、判別部64による対象薬剤の種類を判別する判別処理の回数が前回行った故障判定から所定の回数に達した場合に上記平均値を算出してもよい。 For example, the brightness calculation unit 76a may calculate the average value when the number of times the discrimination unit 64 has performed the discrimination process to discriminate the type of target drug reaches a predetermined number since the previous failure determination.

記憶部80は、判別回数情報88を記憶していてもよい。判別回数情報88は、判別部64による判別処理の累積回数を示す。判別部64は、1つの撮像画像82についての判別処理が終了する毎に判別回数情報88が示す該累積回数を更新する。輝度算出部76aは、判別回数情報88を参照し、判別部64による判別処理の回数が前回行った故障判定から所定の回数に達したか否かを判断する。例えば、輝度算出部76aは、判別部64による判別処理の回数が前回行った故障判定から、100回に達したか否かを判断する。上記所定の回数は、例えば実験等により、故障が生じる可能性が高い回数よりも少ない回数に設定されていればよい。 The storage unit 80 may store discrimination count information 88. The discrimination count information 88 indicates the cumulative number of discrimination processes performed by the discrimination unit 64. The discrimination unit 64 updates the cumulative number indicated by the discrimination count information 88 each time the discrimination process for one captured image 82 is completed. The brightness calculation unit 76a references the discrimination count information 88 and determines whether the number of discrimination processes performed by the discrimination unit 64 has reached a predetermined number since the previous failure determination. For example, the brightness calculation unit 76a determines whether the number of discrimination processes performed by the discrimination unit 64 has reached 100 since the previous failure determination. The predetermined number may be set, for example, through experiments, to a number that is lower than the number of times at which a failure is likely to occur.

また、輝度算出部76aは、薬剤仕分装置1の起動時に撮像制御部63に画像の撮像を指示し、取得した撮像画像の輝度の平均値を算出してもよい。 In addition, the brightness calculation unit 76a may instruct the imaging control unit 63 to capture an image when the medicine sorting device 1 is started, and calculate the average brightness of the captured image.

(輝度比較部76b)
輝度比較部76bは、輝度算出部76aが算出した撮像画像の輝度の平均値が基準値に対して所定の範囲内の値であるか否かを判断する。例えば、輝度比較部76bは、輝度算出部76aが算出した撮像画像の輝度の平均値が基準値の80%以上、かつ、120%以下の値であるか否かを判断する。上記所定の範囲は、例えば実験等により適宜設定されればよい。
(Brightness comparison unit 76b)
The brightness comparison unit 76b determines whether the average brightness of the captured image calculated by the brightness calculation unit 76a is within a predetermined range with respect to a reference value. For example, the brightness comparison unit 76b determines whether the average brightness of the captured image calculated by the brightness calculation unit 76a is greater than or equal to 80% and less than or equal to 120% of the reference value. The predetermined range may be set appropriately, for example, through experiments or the like.

上記基準値は、例えば、照明器134に故障が生じていない時点において撮像された撮像画像の所定の領域(薬剤載置台133aの枠等の撮像領域)における輝度の平均値である。上記基準値は、薬剤仕分装置1の起動時(例:ティーチング時)に取得されてもよい。 The reference value is, for example, the average brightness of a specific area (such as the imaged area of the medicine placement table 133a) of an image captured when the illuminator 134 is not malfunctioning. The reference value may be obtained when the medicine sorting device 1 is started up (e.g., during teaching).

上記輝度は、例えば、撮像画像における上記所定の領域に含まれる各画素のRGB値から変換することが可能なHSV(H:色相、S:彩度、V:明度)値のV値であってもよい。 The brightness may be, for example, the V value of an HSV (H: hue, S: saturation, V: brightness) value that can be converted from the RGB values of each pixel included in the specified area in the captured image.

また、紫外光照射部134cの故障判定に用いる撮像画像は、例えば、紫外光照射部134cの露光時間として許容される最大時間で撮像された画像であってよい。例えば、通常の撮像時における露光時間を8~10msecとした場合、上記最大時間は例えば1secに設定されてよい。上記最大時間は、例えば実験等により適宜設定されればよい。 Furthermore, the captured image used to determine whether the ultraviolet light irradiation unit 134c has a malfunction may be, for example, an image captured using the maximum allowable exposure time for the ultraviolet light irradiation unit 134c. For example, if the exposure time during normal imaging is 8 to 10 msec, the maximum time may be set to, for example, 1 sec. The maximum time may be set as appropriate, for example, through experiments, etc.

輝度比較部76bは、上記判断結果に応じて照明器134が故障しているか否かを判定する。表示制御部67は、故障の判定結果を表示部32に表示させる。 The brightness comparison unit 76b determines whether the illuminator 134 is malfunctioning based on the above determination result. The display control unit 67 displays the malfunction determination result on the display unit 32.

(処理例)
図15は、本実施形態に係る薬剤仕分装置1の故障判定処理の一例を示すフローチャートである。図15に示すように、輝度算出部76aは、判別部64による判別処理の回数が前回行った故障判定から所定の回数に達したか否かを判断する(S71)。
(Processing example)
15 is a flowchart showing an example of a malfunction determination process of the medicine sorting device 1 according to the present embodiment. As shown in FIG. 15, the brightness calculation unit 76a determines whether the number of determination processes performed by the determination unit 64 has reached a predetermined number since the previous malfunction determination (S71).

輝度算出部76aが判別処理の回数が前回行った故障判定から所定の回数に達したと判断した場合(S71でYES)、撮像制御部63は、第1カメラ131を制御して画像を撮像する(S72)。続いて、輝度算出部76aは、S72にて撮影した撮像画像の輝度の平均値を算出する(S73)。続いて、輝度比較部76bは、輝度算出部76aが算出した撮像画像の輝度の平均値が、基準値に対して所定の範囲内の値であるか否かを判断する(S74)。輝度比較部76bが、当該平均値が所定の範囲内の値ではないと判断した場合(S74でNO)、輝度比較部76bは、照明器134が故障していると判定する(S75)。続いて、表示部32は、当該判定結果を表示し(S76)、処理は終了する。 If the brightness calculation unit 76a determines that the number of discrimination processes has reached a predetermined number since the previous failure determination (YES in S71), the imaging control unit 63 controls the first camera 131 to capture an image (S72). Next, the brightness calculation unit 76a calculates the average brightness of the captured image captured in S72 (S73). Next, the brightness comparison unit 76b determines whether the average brightness of the captured image calculated by the brightness calculation unit 76a is within a predetermined range with respect to a reference value (S74). If the brightness comparison unit 76b determines that the average value is not within the predetermined range (NO in S74), the brightness comparison unit 76b determines that the illuminator 134 is malfunctioning (S75). Next, the display unit 32 displays the determination result (S76), and the process ends.

なお、輝度算出部76aが判別処理の回数が前回行った故障判定から所定の回数に達していないと判断した場合(S71でNO)、処理はS71に戻る。また、輝度比較部76bが、当該平均値が所定の範囲内の値であると判断した場合(S74でYES)、輝度比較部76bは、照明器134が正常であると判定し(S77)、処理はS76に続く。 If the brightness calculation unit 76a determines that the number of determination processes has not reached the predetermined number since the previous failure determination (NO in S71), the process returns to S71. Also, if the brightness comparison unit 76b determines that the average value is within the predetermined range (YES in S74), the brightness comparison unit 76b determines that the illuminator 134 is normal (S77), and the process continues to S76.

〔実施形態10〕
(概要)
本実施形態では、主として図16から図18を用いて、薬剤の種類の判別に用いる画像を作成するための画像のデータ容量を低減する構成について説明する。
[Embodiment 10]
(overview)
In this embodiment, a configuration for reducing the data volume of an image for creating an image used to distinguish the type of medicine will be described mainly with reference to FIGS.

本実施形態に係る薬剤仕分装置1が備える画像処理部73は、対象薬剤の種類判別のための基準薬剤の画像を生成するために、対象薬剤の像を含む撮像画像から、対象薬剤の像の領域である第1領域、または、第1領域を含む対象薬剤を載置している薬剤載置台133aの像の領域である第2領域を切り出した切り出し画像を生成する。 The image processing unit 73 provided in the medicine sorting device 1 according to this embodiment generates a cut-out image by cutting out either a first region, which is the region of the image of the target medicine, or a second region, which is the region of the image of the medicine placing table 133a on which the target medicine including the first region is placed, from a captured image including the image of the target medicine, in order to generate an image of a reference medicine for determining the type of target medicine.

例えば、上記の構成によれば、当該基準薬剤の画像を生成するための画像のデータの容量を低減することができる。薬剤仕分装置1が外部装置に撮像画像を送信する場合、薬剤仕分装置1が外部装置に切り出し画像を撮像画像として送信することで、切り出し画像を生成しない構成と比較し送信するデータの容量を低減することができる。よって、薬剤仕分装置1から外部装置へのデータの転送を容易に行うことができるようになる。 For example, with the above configuration, it is possible to reduce the amount of image data required to generate an image of the reference drug. When the medicine sorting device 1 transmits a captured image to an external device, the medicine sorting device 1 transmits a cropped image to the external device as the captured image, thereby reducing the amount of data transmitted compared to a configuration in which cropped images are not generated. This makes it easier to transfer data from the medicine sorting device 1 to an external device.

また、撮像画像のデータの転送時間を低減することができる。そのため、VPN回線などを用いた撮像画像のデータの転送が可能となる。また、当該データをHDDに転送する場合においても、データの容量を低減することによってHDDのコストを低減することができる。よって、データの転送コストを低減することができる。また、薬剤仕分装置1のランニングコストを低減することができる。 In addition, the transfer time of captured image data can be reduced. This makes it possible to transfer captured image data using a VPN line, etc. Furthermore, even when transferring the data to a HDD, the cost of the HDD can be reduced by reducing the data volume. This reduces data transfer costs. Furthermore, the running costs of the medicine sorting device 1 can be reduced.

(画像生成システム1000)
本実施形態に係る画像生成システム1000について、図16を用いて説明する。図16は、画像生成システム1000の一例を示す図である。
(Image Generation System 1000)
An image generation system 1000 according to this embodiment will be described with reference to Fig. 16. Fig. 16 is a diagram showing an example of the image generation system 1000.

図16に示すように、画像生成システム1000は、薬剤仕分装置1と、薬剤仕分装置1と通信可能に接続できる情報処理装置200とを含む。情報処理装置200は、対象薬剤の種類判別のための基準薬剤の画像を生成する。より詳細には、情報処理装置200は、薬剤仕分装置1が生成した切り出し画像に基づいて基準画像を生成する。基準画像とは、判別対象となる対象薬剤の種類を判別するための画像であり、薬剤データベース81に予め登録されている画像(マスタ画像)である。薬剤仕分装置1および情報処理装置200はインターネット回線、または専用VPN(Virtual Private Network)回線を介してデータの送受信を行う。なお、画像生成システム1000に含まれる薬剤仕分装置1は複数であり、薬剤仕分装置1のそれぞれが情報処理装置200に通信可能に接続できる構成であってもよい。 As shown in FIG. 16 , the image generation system 1000 includes a drug sorting device 1 and an information processing device 200 that can be communicatively connected to the drug sorting device 1. The information processing device 200 generates an image of a reference drug for determining the type of target drug. More specifically, the information processing device 200 generates a reference image based on a cut-out image generated by the drug sorting device 1. The reference image is an image for determining the type of target drug to be determined, and is an image (master image) that is pre-registered in the drug database 81. The drug sorting device 1 and the information processing device 200 send and receive data via an internet line or a dedicated VPN (Virtual Private Network) line. Note that the image generation system 1000 may include multiple drug sorting devices 1, and each of the drug sorting devices 1 may be communicatively connected to the information processing device 200.

また、薬剤仕分装置1と情報処理装置200との間でのデータの送受信は、上述の回線を用いて行われなくてもよい。例えば、薬剤仕分装置1とは異なる通信装置(例:PC(Personal Computer))を用いて、情報処理装置200とのデータの送受信が行われてもよい。また、記憶媒体(例:HDD(Hard Disk Drive)またはDVD(Digital Versatile Disc))に情報処理装置200に送信すべきデータを記憶させて、当該データを情報処理装置200に入力してもよい。通信装置または記憶媒体を用いる場合、薬剤仕分装置1は送受信部100を備えていなくてもよい。また、同様に、情報処理装置200は送受信部201を備えていなくてもよい。 Furthermore, data transmission and reception between the medicine sorting device 1 and the information processing device 200 does not have to be performed using the above-mentioned line. For example, data may be transmitted and received with the information processing device 200 using a communication device (e.g., a PC (Personal Computer)) different from the medicine sorting device 1. Furthermore, data to be transmitted to the information processing device 200 may be stored in a storage medium (e.g., an HDD (Hard Disk Drive) or a DVD (Digital Versatile Disc)), and the data may be input to the information processing device 200. When a communication device or storage medium is used, the medicine sorting device 1 does not have to be equipped with the transceiver unit 100. Similarly, the information processing device 200 does not have to be equipped with the transceiver unit 201.

(薬剤仕分装置1)
図16に示すように、薬剤仕分装置1は、撮像ユニット13、タッチパネル3およびコンピュータ60を備える。また、コンピュータ60は、制御部60b、記憶部80b、および情報処理装置200とデータの送受信を行う送受信部100を備える。
(Medicine sorting device 1)
16 , the medicine sorting device 1 includes an imaging unit 13, a touch panel 3, and a computer 60. The computer 60 also includes a control unit 60b, a storage unit 80b, and a transmitting/receiving unit 100 that transmits and receives data to and from the information processing device 200.

なお、図16においては、薬剤仕分装置1の構成のうち本実施形態に係る切り出し処理および情報処理装置200に対する送信処理に関わる構成のみを示している。本実施形態に係る薬剤仕分装置1は、図1に示す薬剤仕分装置1が備える構成をすべて含んでいてもよい。 Note that Figure 16 shows only the components of the medicine sorting device 1 that are related to the extraction process and transmission process to the information processing device 200 according to this embodiment. The medicine sorting device 1 according to this embodiment may include all of the components provided in the medicine sorting device 1 shown in Figure 1.

(操作部31)
タッチパネル3の操作部31は、ユーザによる入力操作を受け付ける。特に、本実施形態に係る操作部31は、切り出し画像821、領域情報ファイル822および圧縮画像823を情報処理装置200に送信するためのユーザによる入力操作を受付ける。
(Operation unit 31)
The operation unit 31 of the touch panel 3 accepts input operations by the user. In particular, the operation unit 31 according to this embodiment accepts input operations by the user for transmitting the cropped image 821, the region information file 822, and the compressed image 823 to the information processing device 200.

(制御部60b)
本実施形態に係る制御部60bは、実施形態1にて説明した制御部60aが備えている要部構成に加えて、送信制御部77bを備えている。
(Control unit 60b)
The control unit 60b according to this embodiment includes a transmission control unit 77b in addition to the main components of the control unit 60a described in the first embodiment.

(撮像制御部63)
撮像制御部63は、第1カメラ131に、薬剤載置台133aに配置された薬剤を撮像させる。撮像制御部63は第1カメラ131から撮像画像を取得し、当該画像を画像処理部73に送信する。
(Imaging control unit 63)
The imaging control unit 63 causes the first camera 131 to capture an image of the medicine placed on the medicine placing table 133 a. The imaging control unit 63 acquires the captured image from the first camera 131 and transmits the image to the image processing unit 73.

(操作入力部66)
操作入力部66は、操作部31におけるユーザによる入力を受付ける。本実施形態では、特に、操作入力部66は、切り出し画像821、領域情報ファイル822および圧縮画像823を情報処理装置200に送信するための操作を受付ける。当該操作を受付けると、操作入力部66は当該操作を受付けたことを示す信号を送信制御部77bに送信する。
(Operation input unit 66)
The operation input unit 66 accepts input by the user via the operation unit 31. In this embodiment, the operation input unit 66 particularly accepts an operation for transmitting the cropped image 821, the region information file 822, and the compressed image 823 to the information processing device 200. When the operation is accepted, the operation input unit 66 transmits a signal indicating that the operation has been accepted to the transmission control unit 77b.

(画像処理部73)
画像処理部73は、撮像制御部63から撮像画像を受信する。画像処理部73は受信した撮像画像から、切り出し画像821、領域情報ファイル822および圧縮画像823を生成する。切り出し画像821は対象薬剤の像を含む撮像画像から、対象薬剤の像の領域(第1領域)を切り出した切り出し画像であってもよい。また、切り出し画像821は対象薬剤の像を含む対象薬剤を載置している薬剤載置台133aの像の領域(第2領域)であってもよい。また、領域情報ファイル822は撮像画像において切り出した領域(撮像画像における薬剤の像の位置および大きさ)を示す領域情報である。また、圧縮画像823は撮像画像を圧縮した画像である。画像処理部73は、生成した切り出し画像、領域情報ファイル822および圧縮画像823を記憶部80bに記憶させる。
(Image processing unit 73)
The image processing unit 73 receives the captured image from the imaging control unit 63. The image processing unit 73 generates a cutout image 821, a region information file 822, and a compressed image 823 from the received captured image. The cutout image 821 may be a cutout image obtained by cutting out a region of the image of the target drug (first region) from a captured image including the image of the target drug. The cutout image 821 may also be a region of the image of the drug placement table 133a on which the target drug is placed (second region), including the image of the target drug. The region information file 822 is region information indicating the cutout region in the captured image (the position and size of the drug image in the captured image). The compressed image 823 is an image obtained by compressing the captured image. The image processing unit 73 stores the generated cutout image, region information file 822, and compressed image 823 in the memory unit 80b.

(送信制御部77b)
送信制御部77bは受け付けたユーザによる操作入力に従って、送受信部100を介して、記憶部80bに記憶されている切り出し画像821、領域情報ファイル822および圧縮画像823を情報処理装置200に送信する。
(Transmission control unit 77b)
The transmission control unit 77b transmits the cut-out image 821, the area information file 822, and the compressed image 823 stored in the storage unit 80b to the information processing device 200 via the transmission/reception unit 100 in accordance with the received user operation input.

(記憶部80b)
本実施形態に係る記憶部80bは、実施形態1にて説明した記憶部80が記憶しているデータに加えて、切り出し画像821、領域情報ファイル822および圧縮画像823を記憶している。
(Storage unit 80b)
The storage unit 80b according to this embodiment stores a cut-out image 821, a region information file 822, and a compressed image 823 in addition to the data stored in the storage unit 80 described in the first embodiment.

(情報処理装置200)
情報処理装置200は薬剤仕分装置1と通信可能に接続でき、基準薬剤の画像を生成する。図16に示すように、情報処理装置200は送受信部201、制御部202、記憶部203およびタッチパネル204を備えている。タッチパネル204は、操作部241および表示部242を備えている。
(Information processing device 200)
The information processing device 200 can be communicatively connected to the medicine sorting device 1 and generates an image of the reference medicine. As shown in Fig. 16, the information processing device 200 includes a transmitting/receiving unit 201, a control unit 202, a storage unit 203, and a touch panel 204. The touch panel 204 includes an operation unit 241 and a display unit 242.

(送受信部201)
送受信部201は、薬剤仕分装置1とデータの送受信を行う。本実施形態においては、特に、送受信部201は、薬剤仕分装置1の送受信部100から切り出し画像821、領域情報ファイル822および圧縮画像823を受信する。
(Transmitter/Receiver 201)
The transmitting/receiving unit 201 transmits and receives data to and from the medicine sorting device 1. In this embodiment, in particular, the transmitting/receiving unit 201 receives a cut-out image 821, an area information file 822, and a compressed image 823 from the transmitting/receiving unit 100 of the medicine sorting device 1.

(制御部202)
制御部202は、情報処理装置200を統括的に制御するものである。制御部202は、主として、取得部(受信部)221および画像生成部222を備える。取得部221は、送受信部201から切り出し画像821、領域情報ファイル822および圧縮画像823を取得し、記憶部203に記憶させる。記憶部203は、切り出し画像821、領域情報ファイル822および圧縮画像823を記憶する。画像生成部222は、領域情報ファイル822に基づいて、圧縮画像823に切り出し画像821を重畳させて基準画像を生成する。例えば、画像生成部222は、縮小された圧縮画像823を基のサイズにリサイズ後、領域情報ファイル822が示す撮像画像における薬剤の像の位置に、切り出し画像821を重畳させて基準画像を生成してもよい。例えば、タッチパネル204の操作部241を介したユーザによる操作入力に応じて、画像生成部222は基準画像を生成してもよい。
(Control unit 202)
The control unit 202 comprehensively controls the information processing device 200. The control unit 202 mainly includes an acquisition unit (receiving unit) 221 and an image generation unit 222. The acquisition unit 221 acquires the cropped image 821, the region information file 822, and the compressed image 823 from the transmission/reception unit 201 and stores them in the storage unit 203. The storage unit 203 stores the cropped image 821, the region information file 822, and the compressed image 823. The image generation unit 222 generates a reference image by superimposing the cropped image 821 on the compressed image 823 based on the region information file 822. For example, the image generation unit 222 may resize the reduced compressed image 823 to its original size, and then superimpose the cropped image 821 at the position of the drug image in the captured image indicated by the region information file 822 to generate a reference image. For example, the image generating unit 222 may generate a reference image in response to an operation input by a user via the operation unit 241 of the touch panel 204 .

上記の構成によれば、薬剤仕分装置1が圧縮画像823と切り出し画像821と領域情報ファイル822とを外部装置である情報処理装置200に転送することによって、薬剤仕分装置1から情報処理装置200へのデータ転送量を低減させることができる。また、薬剤仕分装置1から情報処理装置200へのデータ転送量を低減させても、情報処理装置200は、少なくとも薬剤の像の解像度を撮像画像の解像度と同等とした、基準画像を生成することができる。 With the above configuration, the drug sorting device 1 transfers the compressed image 823, the cropped image 821, and the region information file 822 to the external device, the information processing device 200, thereby reducing the amount of data transferred from the drug sorting device 1 to the information processing device 200. Furthermore, even if the amount of data transferred from the drug sorting device 1 to the information processing device 200 is reduced, the information processing device 200 can still generate a reference image in which the resolution of the drug image is at least equivalent to the resolution of the captured image.

(処理例)
図17は、本実施形態の画像処理部73の切り出し処理の一例を示すフローチャートである。図17に示すように、撮像制御部63は、第1カメラ131から撮像画像を取得する(S101)。
(Processing example)
Fig. 17 is a flowchart showing an example of the cutout process of the image processing unit 73 of this embodiment. As shown in Fig. 17, the imaging control unit 63 acquires a captured image from the first camera 131 (S101).

続いて、画像処理部73は受信した撮像画像における切り出し領域を特定する(S102)。例えば、画像処理部73は当該撮像画像を二値(白、黒)化した画像に変換する。画像処理部73は二値化した画像において白の領域を切り出し領域と特定してもよい。また、画像処理部73は二値化した画像における白の領域の形状と所定の形状とのパターンマッチング等を用いて切り出し領域を特定してもよい。上記所定の形状とは、例えば、薬剤載置台133aに薬剤を載置して撮像した画像における薬剤の像の形状であってもよい。また、上記所定の形状とは、例えば、薬剤載置台133aを撮像した画像における薬剤載置台133aの像の形状であってもよい。例えば、画像処理部73は、薬剤載置台133aを撮像した画像における薬剤載置台133aの像の形状を用いて切り出し画像を生成する場合は、以下の2つの撮像画像からそれぞれ切り出し画像を生成してもよい。1つは、錠剤の表面が撮像されている撮像画像であり、もう1つは、錠剤の裏面が撮像されている撮像画像である。ここで、表面とは錠剤において識別情報が表示されている一方の面であり、裏面とは、錠剤において識別情報が表示されている上記一方の面とは異なる他方の面である。 Next, the image processing unit 73 identifies a cutout area in the received captured image (S102). For example, the image processing unit 73 converts the captured image into a binary (black and white) image. The image processing unit 73 may identify a white area in the binary image as the cutout area. Alternatively, the image processing unit 73 may identify the cutout area by pattern matching the shape of the white area in the binary image with a predetermined shape. The predetermined shape may be, for example, the shape of the image of the drug placed on the drug placing table 133a in an image captured of the drug placing table 133a. For example, when generating a cutout image using the shape of the image of the drug placing table 133a in an image captured of the drug placing table 133a, the image processing unit 73 may generate each cutout image from the following two captured images: one is an image of the front side of the tablet, and the other is an image of the back side of the tablet. Here, the front surface refers to one side of the tablet on which the identification information is displayed, and the back surface refers to the other side of the tablet that is different from the one side on which the identification information is displayed.

続いて、画像処理部73は、S102にて特定した領域を撮像画像D100から切り出すことによって、切り出し画像821を生成する(S103)。また、画像処理部73は領域情報ファイル822を生成する(S104)。続いて、圧縮画像823を生成する(S105)。図18は対象薬剤の撮像画像D100、切り出し画像D101、領域情報ファイルD102および圧縮画像D103の一例を示す図である。 Next, the image processing unit 73 generates a cut-out image 821 by cutting out the region identified in S102 from the captured image D100 (S103). The image processing unit 73 also generates a region information file 822 (S104). Next, it generates a compressed image 823 (S105). Figure 18 shows an example of the captured image D100, cut-out image D101, region information file D102, and compressed image D103 of the target drug.

例えば、切り出し画像D101はPNG形式のデータとして生成されてもよい。また、図18に示すように、領域情報ファイルD102は、撮像画像D100における切り出し画像D101の位置を示す。また、圧縮画像D103は、撮像画像D100を圧縮したjpeg形式のデータとして生成されてもよい。例えば、圧縮画像D103の一例として、撮像画像D100を1/4サイズにリサイズしたjpeg形式の画像データ等を挙げることができる。すなわち、撮像画像D100を1/4サイズにリサイズすることで、データ量を圧縮することができる。 For example, the cropped image D101 may be generated as PNG format data. Furthermore, as shown in FIG. 18, the region information file D102 indicates the position of the cropped image D101 in the captured image D100. Furthermore, the compressed image D103 may be generated as JPEG format data obtained by compressing the captured image D100. For example, an example of the compressed image D103 is JPEG format image data obtained by resizing the captured image D100 to 1/4 its original size. In other words, by resizing the captured image D100 to 1/4 its original size, the amount of data can be compressed.

続いて、画像処理部73は切り出し画像821、領域情報ファイル822および圧縮画像823を記憶部80bに記憶させて(S106)、処理は終了する。 Next, the image processing unit 73 stores the cropped image 821, the region information file 822, and the compressed image 823 in the storage unit 80b (S106), and the processing ends.

その後、薬剤仕分装置1が、情報処理装置200に、切り出し画像821、領域情報ファイル822および圧縮画像823を送信する。これにより、情報処理装置200は、例えば切り出し画像D101、領域情報ファイルD102および圧縮画像D103に基づき、撮像画像D100を復元することができる。 Then, the medicine sorting device 1 transmits the cut-out image 821, the region information file 822, and the compressed image 823 to the information processing device 200. This allows the information processing device 200 to restore the captured image D100 based on, for example, the cut-out image D101, the region information file D102, and the compressed image D103.

なお、1つの対象薬剤の種類の判別に複数の撮像画像が用いられてもよい。例えば、対象薬剤が錠剤である場合は10枚の撮像画像を用いて当該判別が行われ、対象薬剤がカプセルである場合は10枚の撮像画像に、さらに最大で10枚の撮像画像を加えて当該判別が行われてもよい。例えば、画像処理部73は、受信した撮像画像に撮像されている対象薬剤が錠剤であるか、カプセルであるかを判別してもよい。なお、画像処理部73は、受信した撮像画像に撮像された対象薬剤の像と所定の形状とのパターンマッチング等を用いて当該判別を行ってもよい。画像処理部73は、対象薬剤が錠剤であると判別した場合、受信した撮像画像のうちはじめに受信した10枚の撮像画像以外の撮像画像については処理を行わず、当該撮像画像を記憶部80bにも記憶させない構成としてもよい。対象薬剤が錠剤の場合、10枚の撮像画像により、種類の判別を行うことが可能なためである。一方、カプセルの場合、10枚の撮像画像では、種類の判別を行うことができない可能性がある。そのため、対象薬剤がカプセルの場合、画像処理部73は、対象薬剤がカプセルであると判別できたときまでに取得している10枚を超える撮像画像を、記憶部80bに記憶させてよい。 Note that multiple captured images may be used to determine the type of a single target drug. For example, if the target drug is a tablet, the determination may be made using 10 captured images. If the target drug is a capsule, the determination may be made using up to 10 additional captured images in addition to the 10 captured images. For example, the image processing unit 73 may determine whether the target drug captured in the received captured images is a tablet or a capsule. Note that the image processing unit 73 may perform this determination by pattern matching between the image of the target drug captured in the received captured images and a predetermined shape. If the image processing unit 73 determines that the target drug is a tablet, it may not process any captured images other than the first 10 received images and may not store those captured images in the memory unit 80b. This is because if the target drug is a tablet, the type can be determined using 10 captured images. On the other hand, if the target drug is a capsule, the type may not be determined using 10 captured images. Therefore, if the target drug is a capsule, the image processing unit 73 may store in the memory unit 80b more than 10 captured images acquired up until the time it has been determined that the target drug is a capsule.

(変形例)
本実施形態の変形例について、図19を用いて説明する。なお、説明の便宜上、上記実施形態にて説明した部材と同じ機能を有する部材については、同じ符号を付記し、その説明を繰り返さない。
(Modification)
A modification of this embodiment will be described with reference to Fig. 19. For ease of explanation, members having the same functions as those described in the above embodiment will be denoted by the same reference numerals, and description thereof will not be repeated.

本変形例に係る画像処理部73は、切り出し画像、切り出し領域画像、領域情報ファイル、対象薬剤の色を示す情報、対象薬剤の形状を示す情報等がシリアライズ(直列化)したデータを生成し、1つのファイルに集約する。画像処理部73は当該ファイルを指定のバックアップディスクに格納する。例えば、シリアライズされたデータとは、特定のデータが規則的に並べられたデータである。本変形例では、撮像画像における対象薬剤の像の範囲を切り出した画像を切り出し画像とよぶ。ここで、「対象薬剤の像の範囲」とは、上記実施形態10における「対象薬剤の像の領域(第1領域)」と同様である。説明の便宜上、本変形例では「対象薬剤の像の範囲」とよぶ。 The image processing unit 73 in this modification generates serialized data including the cut-out image, cut-out area image, area information file, information indicating the color of the target drug, information indicating the shape of the target drug, etc., and consolidates them into a single file. The image processing unit 73 stores this file on a specified backup disk. For example, serialized data is data in which specific data is arranged in a regular pattern. In this modification, an image cut out from the range of the image of the target drug in the captured image is called a cut-out image. Here, the "range of the image of the target drug" is the same as the "area of the image of the target drug (first area)" in embodiment 10 above. For ease of explanation, in this modification, it is called the "range of the image of the target drug."

また、本変形例では、撮像画像における対象薬剤の像を含む薬剤載置台133aの像を切り出した画像を切り出し領域画像とよぶ。また、本変形例の「対象薬剤の像を含む対象薬剤を載置している薬剤載置台133aの像の範囲」は、上記実施形態10における「対象薬剤の像を含む対象薬剤を載置している薬剤載置台133aの像の領域(第2領域)」と同様である。説明の便宜上、本変形例では「対象薬剤の像を含む対象薬剤を載置している薬剤載置台133aの像の範囲」とよぶ。また、本変形例では、撮像画像における対象薬剤の像を中心とした所定の範囲の切り出し画像についても切り出し領域画像とよぶ。 In this modified example, an image obtained by cutting out the image of the medicine placing table 133a including the image of the target medicine in the captured image is referred to as a cut-out area image. In addition, the "range of the image of the medicine placing table 133a on which the target medicine including the image of the target medicine is placed" in this modified example is the same as the "area (second area) of the image of the medicine placing table 133a on which the target medicine including the image of the target medicine is placed" in the above-mentioned embodiment 10. For ease of explanation, in this modified example, it is referred to as the "range of the image of the medicine placing table 133a on which the target medicine including the image of the target medicine is placed." In addition, in this modified example, a cut-out image of a predetermined range centered on the image of the target medicine in the captured image is also referred to as a cut-out area image.

また、本変形例に係る情報処理装置200は、シリアライズされたデータをデシリアライズ(直列化を復元)し、シリアライズされたデータをシリアライズされる前のファイル形式に戻す。シリアライズされたデータは、1つの対象薬剤の種類の判別処理に対して、判別処理回数、薬剤の色及び形状を示すデータ、撮像画像から生成される切り出し画像および切り出し集約したデータである。 In addition, the information processing device 200 according to this modified example deserializes (restores serialization) serialized data and returns it to the file format before serialization. The serialized data includes, for a discrimination process for one target drug type, the number of discrimination processes, data indicating the drug's color and shape, a cut-out image generated from the captured image, and aggregated cut-out data.

例えば、情報処理装置200は、切り出しが行われた撮像画像と同じサイズの黒背景を作成する。情報処理装置200は、領域情報ファイルに基づいて撮像画像において切り出しが行われた範囲に対応する黒背景の範囲に、切り出し画像を貼り付けることによって、基準画像を生成する。 For example, the information processing device 200 creates a black background of the same size as the captured image from which the cropping has been performed. The information processing device 200 generates a reference image by pasting the cropped image into the area of the black background that corresponds to the area from which the cropping has been performed in the captured image based on the region information file.

(画像セットクラスおよび軽量化クラスの生成)
本変形例に係る画像処理部73は、1つの対象薬剤の種類の判別処理毎に画像セットクラスを生成する。画像処理部73は、1回の判別処理において生成され得る切り出し画像および切り出し領域画像の最大数を格納できるデータ格納領域を、画像セットクラスとして予め準備している。本実施形態では、画像セットクラスは、最大20枚の撮像画像から生成される切り出し画像および切り出し領域画像を格納できる。
(Generating image set classes and lightweight classes)
The image processing unit 73 according to this modification generates an image set class for each discrimination process for a single target drug type. The image processing unit 73 prepares in advance, as an image set class, a data storage area capable of storing the maximum number of cutout images and cutout region images that can be generated in one discrimination process. In this embodiment, the image set class can store cutout images and cutout region images generated from a maximum of 20 captured images.

例えば、1回の判別処理において、照合部64bが、所定の枚数(例えば、10枚)の撮像画像から種類の判別を行うことができた場合、画像処理部73は、所定の枚数(例えば、10枚)の撮像画像から生成する切り出し画像および切り出し領域画像をまとめて、当該判別処理のために予め準備された画像セットクラスに格納する。 For example, if the matching unit 64b is able to determine the type from a predetermined number of captured images (e.g., 10 images) in one discrimination process, the image processing unit 73 will collect the cut-out images and cut-out area images generated from the predetermined number of captured images (e.g., 10 images) and store them in an image set class prepared in advance for that discrimination process.

照合部64bが、所定の枚数(例えば、10枚)の撮像画像から種類の判別を行うことができなかった場合、撮像制御部63は、第1カメラ131を制御して、更なる撮像画像を取得する。照合部64bが、取得した撮像画像から種類の判別を行うことができるまで、撮像制御部63は撮像画像を取得する。画像処理部73は、所定の枚数を超えて取得した分の撮像画像から生成する切り出し画像および切り出し領域画像についても、上記画像セットクラスに格納する。 If the matching unit 64b is unable to determine the type from a predetermined number of captured images (e.g., 10), the imaging control unit 63 controls the first camera 131 to acquire additional captured images. The imaging control unit 63 continues to acquire captured images until the matching unit 64b is able to determine the type from the acquired captured images. The image processing unit 73 also stores the cropped images and cropped area images generated from the captured images acquired in excess of the predetermined number in the above image set class.

例えば、画像処理部73は、照合部64bによる1つの対象薬剤の判別が完了すると、判別処理毎に対応する画像セットクラスを、軽量化クラスの画像セットクラスリストに追加する。薬剤仕分装置1が、軽量化クラスの画像セットクラスリストを情報処理装置200に送信することにより、情報処理装置200は、対象画像毎に、画像セットクラスに含まれるデータをデシリアライズすることにより、基準画像を生成することができる。 For example, when the matching unit 64b completes the identification of one target drug, the image processing unit 73 adds the image set class corresponding to each identification process to the image set class list for the lighter class. The drug sorting device 1 sends the image set class list for the lighter class to the information processing device 200, which can then deserialize the data included in the image set class for each target image to generate a reference image.

なお、判別部64は、一回の判別処理によって薬剤の種類を判別できなかった場合に再度、撮像画像82に対する画像解析を行い、薬剤の種類の判別を試みる(判別リトライ処理を行う)構成としてもよい。本変形例に係る画像処理部73は、判別リトライ処理が発生した場合には、当該判別リトライ処理に対応した画像セットクラスを生成する。 The discrimination unit 64 may be configured to perform image analysis on the captured image 82 again to attempt to discriminate the type of drug (perform discrimination retry processing) if the type of drug cannot be determined in a single discrimination process. When a discrimination retry processing occurs, the image processing unit 73 according to this modified example generates an image set class corresponding to the discrimination retry processing.

(切り出し処理の例)
次に、図19を用いて本変形例に係る画像処理部73の撮像画像からの切り出し処理の一例について説明する。図19は画像処理部73によって行われる撮像画像からの切り出し処理の一例を示す図である。
(Example of cutout processing)
Next, an example of the process of cutting out from the captured image by the image processing unit 73 according to this modification will be described with reference to Fig. 19. Fig. 19 is a diagram showing an example of the process of cutting out from the captured image performed by the image processing unit 73.

はじめに、2つのパターンの撮像画像について説明する。撮像画像には当該撮像画像の撮像時の薬剤載置台133aの傾きに応じた水平画像(N画像)および垂直画像(V画像)の2つのパターンがある。図19のNは、撮像画像がN画像として撮像される場合の薬剤載置台133aの傾きを示す図である。図19のNに示すように、撮像画像がN画像として撮像される場合、薬剤載置台133aの傾斜面部133abの何れか一方の面が水平となっている状態でN画像は撮像される。 First, two patterns of captured images will be explained. There are two patterns of captured images: a horizontal image (N image) and a vertical image (V image), which correspond to the inclination of the medicine placing table 133a when the captured image is taken. N in Figure 19 is a diagram showing the inclination of the medicine placing table 133a when the captured image is taken as an N image. As shown in N in Figure 19, when the captured image is taken as an N image, the N image is taken with one of the inclined surface portions 133ab of the medicine placing table 133a horizontal.

図19のVは、撮像画像が垂直画像(V画像)として撮像される場合の薬剤載置台133aの傾きを示す図である。図19のVに示すように、撮像画像がV画像として撮像される場合、薬剤載置台133aの底面部133aaの面が水平となっている状態でV画像は撮像される。 V in Figure 19 shows the inclination of the medicine placing table 133a when the captured image is a vertical image (V image). As shown in V in Figure 19, when the captured image is a V image, the V image is captured with the surface of the bottom surface 133aa of the medicine placing table 133a horizontal.

画像処理部73は、撮像画像のパターン(V画像、N画像)、撮像画像の撮影時に用いられた照明の種類等に応じて、撮像画像の切り出し処理を行う。 The image processing unit 73 performs cropping processing on the captured image based on the pattern of the captured image (V image, N image), the type of lighting used when capturing the captured image, etc.

(1)N画像であり、撮影時に第1照射部134a(バー照明)を用いて撮像された撮像画像(バー照明N画像)に対する画像処理部73による切り出し処理の一例について、図19の撮像画像D104を用いて説明する。図19の撮像画像D104は、バー照明N画像である。図19の撮像画像D104においては、切り出しが行われる範囲である対象薬剤の像の範囲J104および対象薬剤の像を含む薬剤載置台133aの像の範囲R104が示されている。 (1) An example of the cutout process by the image processing unit 73 for an N image (bar illumination N image) captured using the first irradiator 134a (bar illumination) during shooting will be described using captured image D104 in Figure 19. Captured image D104 in Figure 19 is a bar illumination N image. Captured image D104 in Figure 19 shows range J104 of the image of the target drug, which is the range within which cutout will be performed, and range R104 of the image of the drug placing table 133a including the image of the target drug.

画像処理部73は、撮像画像を二値化処理する。画像処理部73は二値化した撮像画像の白の範囲を切り出す範囲として検出する。図19の撮像画像D104に示すように、例えば、画像処理部73が検出する切り出す範囲は、対象薬剤の像の範囲J104、および対象薬剤の像を含む薬剤載置台133aの像の範囲R104である。例えば、画像処理部73は、対象薬剤の像の範囲の検出と、対象薬剤の像を含む薬剤載置台133aの像の範囲の検出とでは、異なる閾値を用いて二値化した撮像画像を用いてもよい。画像処理部73は、撮像画像の対象薬剤の像の範囲を切り出して、切り出し画像を生成する。また、画像処理部73は、対象薬剤の像を含む薬剤載置台133aの像の範囲を切り出して、切り出し領域画像を生成する。 The image processing unit 73 performs binarization processing on the captured image. The image processing unit 73 detects the white area of the binarized captured image as the area to be cut out. As shown in captured image D104 in Figure 19, for example, the cut-out areas detected by the image processing unit 73 are the area J104 of the image of the target drug and the area R104 of the image of the drug placement table 133a including the image of the target drug. For example, the image processing unit 73 may use captured images binarized using different thresholds to detect the area of the image of the target drug and the area of the image of the drug placement table 133a including the image of the target drug. The image processing unit 73 cuts out the area of the image of the target drug from the captured image to generate a cut-out image. The image processing unit 73 also cuts out the area of the image of the drug placement table 133a including the image of the target drug to generate a cut-out area image.

(2)V画像であり、撮影時に第1照射部134a(バー照明)を用いて撮像された撮像画像(バー照明V画像)に対する画像処理部73による切り出し処理の一例について、図19の撮像画像D105を用いて説明する。 (2) An example of the cropping process by the image processing unit 73 for a captured image (bar illumination V image) captured using the first illuminator 134a (bar illumination) during shooting is described using captured image D105 in Figure 19.

図19の撮像画像D105は、バー照明V画像である。図19の撮像画像D105においては、切り出しが行われる範囲である対象薬剤の像の範囲J105および対象薬剤の像を中心とした所定の範囲R105が示されている。 The captured image D105 in Figure 19 is a bar-illuminated V image. The captured image D105 in Figure 19 shows the range J105 of the image of the target drug, which is the range for cutting out, and a predetermined range R105 centered on the image of the target drug.

図19の撮像画像D105に示すように、例えば、画像処理部73はパターンマッチングによって対象薬剤の像の範囲J105を検出する。上記所定の形状とは、例えば、薬剤載置台133aに薬剤を載置して撮像した画像における薬剤の像の形状であってもよい。次に、画像処理部73は対象薬剤の像の範囲J105を中心とした所定の範囲である範囲R105を決定する。例えば、範囲R105は対象薬剤の像の範囲J105を中心として、範囲J105を所定の倍率で拡大した範囲である。上記所定の倍率は、例えば、画像データの容量の低減の程度、または、復元した画像の良否等を検証した結果から決定されてもよい。 As shown in captured image D105 in Figure 19, for example, the image processing unit 73 detects the range J105 of the image of the target drug by pattern matching. The above-mentioned predetermined shape may be, for example, the shape of the image of the drug in an image captured after placing the drug on the drug placement table 133a. Next, the image processing unit 73 determines a range R105, which is a predetermined range centered on the range J105 of the image of the target drug. For example, range R105 is a range obtained by enlarging range J105 of the image of the target drug by a predetermined magnification, with range J105 of the image of the target drug at its center. The above-mentioned predetermined magnification may be determined, for example, from the degree of reduction in the volume of the image data or the results of verifying the quality of the restored image.

画像処理部73は、撮像画像の対象薬剤の像の範囲を切り出して、切り出し画像を生成する。また、画像処理部73は、対象薬剤の像を中心とした所定の範囲を切り出して、切り出し領域画像を生成する。 The image processing unit 73 cuts out the area of the image of the target drug from the captured image to generate a cut-out image. The image processing unit 73 also cuts out a predetermined area centered on the image of the target drug to generate a cut-out area image.

(3)N画像であり、撮影時に第2照射部134b(リング照明)を用いて撮像された撮像画像(リング照明N画像)に対する画像処理部73による切り出し処理の一例について、図19の撮像画像D106を用いて説明する。 (3) An example of the cropping process by the image processing unit 73 for an N image (ring illumination N image) captured using the second illuminator 134b (ring illumination) during shooting will be described using captured image D106 in Figure 19.

画像処理部73は、バー照明N画像において検出した対象薬剤の像の範囲(撮像画像に対する対象薬剤の像の範囲の相対的な位置)を参照し、リング照明N画像における対象薬剤の像の範囲の位置を特定する。詳細には、画像処理部73は、リング照明N画像に対する対象薬剤の像の範囲の相対的な位置とバー照明N画像における対象薬剤の像の範囲の相対的な位置とが同じになるように、リング照明N画像における対象薬剤の像の範囲の位置を特定する。 The image processing unit 73 references the range of the image of the target drug detected in the bar illumination N image (the relative position of the range of the image of the target drug in the captured image) and identifies the position of the range of the image of the target drug in the ring illumination N image. In particular, the image processing unit 73 identifies the position of the range of the image of the target drug in the ring illumination N image so that the relative position of the range of the image of the target drug in the ring illumination N image is the same as the relative position of the range of the image of the target drug in the bar illumination N image.

図19の撮像画像D106は、リング照明N画像である。図19の撮像画像D106においては、切り出しが行われる範囲である対象薬剤の像の範囲J106が示されている。 The captured image D106 in Figure 19 is a ring illumination N image. The captured image D106 in Figure 19 shows the range J106 of the image of the target drug, which is the range from which extraction will be performed.

例えば、図19に示す例においては、画像処理部73は、バー照明N画像である撮像画像D104に対する対象薬剤の像の範囲J104の相対的な位置を参照し、撮像画像D106における対象薬剤の像の範囲J106の位置を特定する。 For example, in the example shown in Figure 19, the image processing unit 73 refers to the relative position of the range J104 of the image of the target drug in the captured image D104, which is the bar illumination N image, and identifies the position of the range J106 of the image of the target drug in the captured image D106.

(4)V画像であり、撮影時に第2照射部134b(リング照明)を用いて撮像された撮像画像(リング照明V画像)に対する画像処理部73による切り出し処理の一例について説明する。 (4) This section describes an example of cropping processing by the image processing unit 73 for a captured image (ring illumination V image) captured using the second illumination unit 134b (ring illumination) during shooting.

画像処理部73は、バー照明V画像において検出した対象薬剤の像の範囲(撮像画像における対象薬剤の像の範囲の相対的な位置)を参照し、リング照明V画像における対象薬剤の像の範囲の位置を特定する。詳細には、画像処理部73は、リング照明V画像における対象薬剤の像の範囲の相対的な位置とバー照明V画像における対象薬剤の像の範囲の相対的な位置とが同じになるように、リング照明V画像における対象薬剤の像の範囲の位置を特定する。 The image processing unit 73 references the range of the image of the target drug detected in the bar illumination V image (the relative position of the range of the image of the target drug in the captured image) and identifies the position of the range of the image of the target drug in the ring illumination V image. In detail, the image processing unit 73 identifies the position of the range of the image of the target drug in the ring illumination V image so that the relative position of the range of the image of the target drug in the ring illumination V image is the same as the relative position of the range of the image of the target drug in the bar illumination V image.

例えば、図19に示す例においては、画像処理部73は、バー照明V画像である撮像画像D105に対する対象薬剤の像の範囲J105の相対的な位置を参照し、リング照明V画像(図示なし)における対象薬剤の像の範囲の位置を特定する。 For example, in the example shown in Figure 19, the image processing unit 73 refers to the relative position of the range J105 of the image of the target drug in the captured image D105, which is the bar illumination V image, and identifies the position of the range of the image of the target drug in the ring illumination V image (not shown).

(5)N画像であり、撮影時に紫外光照射部134c(UV照明)を用いて撮像された撮像画像(UV照明N画像)に対する画像処理部73による切り出し処理の一例について説明する。 (5) This section describes an example of cropping processing by the image processing unit 73 for an N image (UV illumination N image) captured using the ultraviolet light irradiation unit 134c (UV illumination) during shooting.

画像処理部73は、バー照明N画像において検出した対象薬剤の像の範囲(撮像画像に対する対象薬剤の像の範囲の相対的な位置)を参照し、UV照明N画像における対象薬剤の像の範囲の位置を特定する。詳細には、画像処理部73は、UV照明N画像における対象薬剤の像の範囲の相対的な位置とバー照明N画像における対象薬剤の像の範囲の相対的な位置とが同じになるように、UV照明N画像における対象薬剤の像の範囲の位置を特定する。 The image processing unit 73 references the range of the image of the target drug detected in the bar illumination N image (the relative position of the range of the image of the target drug in the captured image) and identifies the position of the range of the image of the target drug in the UV illumination N image. In particular, the image processing unit 73 identifies the position of the range of the image of the target drug in the UV illumination N image so that the relative position of the range of the image of the target drug in the UV illumination N image is the same as the relative position of the range of the image of the target drug in the bar illumination N image.

例えば、図19に示す例においては、画像処理部73は、バー照明N画像である撮像画像D104に対する対象薬剤の像の範囲J104の相対的な位置を参照し、UV照明N画像(図示なし)における対象薬剤の像の範囲の位置を特定する。 For example, in the example shown in Figure 19, the image processing unit 73 refers to the relative position of the range J104 of the image of the target drug in the captured image D104, which is the bar illumination N image, and identifies the position of the range of the image of the target drug in the UV illumination N image (not shown).

なお、撮影時にリング照明またはUV照明を用いて撮像された撮像画像に対して、画像処理部73は切り出し領域画像を生成しなくてもよい。 Note that the image processing unit 73 does not need to generate a crop area image for images captured using ring illumination or UV illumination during shooting.

なお、上記所定の枚数の撮像画像に対しては、上記(1)~(5)の処理が実行されてもよい。すなわち、上記所定の枚数の撮像画像は、バー照明N画像、バー照明V画像、リング照明N画像、リング照明V画像およびUV照明N画像である。また、上述のバー照明N画像、バー照明V画像、リング照明N画像、リング照明V画像およびUV照明N画像は、図4に示す軸Ax0と軸Ax1とのなす角θを0°および180°になるように撮像機構を配置して撮像された撮像画像であってもよい。この場合、上記所定の枚数の撮像画像は、θが0°および180°になるように撮像機構を配置して撮像されたバー照明N画像、バー照明V画像、リング照明N画像、リング照明V画像およびUV照明N画像の合計10枚の撮像画像となる。一方、所定の枚数を超えて取得した分の撮像画像は、撮像角度を変更しつつ撮像されるバー照明V画像である。そのため、当該画像に対しては、上記(2)の処理が実行される。 The processes (1) to (5) above may be performed on the predetermined number of captured images. That is, the predetermined number of captured images are a bar illumination N image, a bar illumination V image, a ring illumination N image, a ring illumination V image, and a UV illumination N image. The bar illumination N image, bar illumination V image, ring illumination N image, ring illumination V image, and UV illumination N image may be captured by positioning the imaging mechanism so that the angle θ between the axis Ax0 and the axis Ax1 shown in FIG. 4 is 0° and 180°. In this case, the predetermined number of captured images is a total of 10 captured images: the bar illumination N image, bar illumination V image, ring illumination N image, ring illumination V image, and UV illumination N image, captured by positioning the imaging mechanism so that θ is 0° and 180°. On the other hand, the captured images acquired in excess of the predetermined number are bar illumination V images captured while changing the imaging angle. Therefore, the process (2) above is performed on these images.

上述の処理を行わない撮像画像のデータ容量と上述の処理を行ってシリアライズしたデータのデータ容量を比較した結果、切り出し処理を行わない撮像画像のデータ容量に対してシリアライズされたデータのデータ容量は以下のようになった。
・39錠の刻印錠剤では切り出し処理を行わない撮像画像のデータ容量の23.2%。
・39錠のプリント錠剤では切り出し処理を行わない撮像画像のデータ容量の21.5%。
・20錠のカプセルでは切り出し処理を行わない撮像画像のデータ容量の34.5%。さらに、シリアライズされたデータをzip圧縮すると、切り出し処理を行わない撮像画像のデータ容量の約10%のデータ容量になることを確認した。
When comparing the data capacity of a captured image without the above-mentioned processing with the data capacity of the serialized data after the above-mentioned processing, the data capacity of the serialized data relative to the data capacity of a captured image without the cutout processing was as follows.
- For 39 engraved tablets, the data volume of the captured images without cutting out was 23.2%.
- For 39 printed tablets, the data volume of the captured image without cutting out is 21.5%.
For a 20-tablet capsule, the data volume was 34.5% of the data volume of a captured image without cutting out. Furthermore, it was confirmed that when the serialized data was zip-compressed, the data volume was approximately 10% of the data volume of a captured image without cutting out.

本変形例を以下のように換言することができる。 This modified example can be rephrased as follows:

本変形例に係る薬剤仕分装置1の画像処理部73は、対象薬剤の種類判別のための基準薬剤の画像を生成するために、対象薬剤の像を含む撮像画像から、対象薬剤の像の範囲(第1領域)および対象薬剤の像を含む対象薬剤を載置している薬剤載置台133aの像の範囲を切り出した切り出し画像の少なくとも1つを生成する。 In order to generate an image of a reference drug for determining the type of target drug, the image processing unit 73 of the drug sorting device 1 in this modified example generates at least one cut-out image by cutting out the range of the image of the target drug (first region) and the range of the image of the drug placement table 133a on which the target drug is placed, including the image of the target drug, from a captured image including the image of the target drug.

上記画像処理部73は撮像画像における第1領域を示す領域情報ファイルおよび第2領域を示す領域情報ファイルの少なくとも1つを生成する。 The image processing unit 73 generates at least one of a region information file indicating a first region in the captured image and a region information file indicating a second region.

本変形例に係る情報処理装置200は薬剤仕分装置1と通信可能に接続でき、基準薬剤の画像を生成する。情報処理装置200の取得部221は切り出し画像および当該切り出し画像に対応する領域情報ファイルを薬剤仕分装置1から受信する。また、画像生成部(生成部)222は、領域情報ファイルに基づいて、基準画像を生成する生成する。 The information processing device 200 in this modified example can be communicatively connected to the medicine sorting device 1 and generates an image of the reference medicine. The acquisition unit 221 of the information processing device 200 receives a cut-out image and a region information file corresponding to the cut-out image from the medicine sorting device 1. In addition, the image generation unit (generation unit) 222 generates a reference image based on the region information file.

本変形例の画像生成システム1000は薬剤仕分装置1および情報処理装置200を含む。 The image generation system 1000 of this modified example includes a medicine sorting device 1 and an information processing device 200.

〔実施形態11〕
(概要)
本実施形態では、主として図20から図24を用いて、仕分カップ141の交換コストを低減する構成について説明する。
[Embodiment 11]
(overview)
In this embodiment, a configuration for reducing the replacement cost of the sorting cup 141 will be described mainly with reference to FIGS.

本実施形態に係る薬剤仕分装置1は、仕分カップ141における傷の形状を示す形状モデル800を生成し、生成した形状モデル800を記憶する。薬剤仕分装置1は、残薬確認等のために仕分カップ141の撮像画像から薬剤の検出を行う場合に形状モデル800を用いて、仕分カップ141における傷を薬剤として検出しないようにする。上記の構成によれば、傷のついた仕分カップ141を使い続けることができる。そのため、仕分カップ141の交換コストを低減することができる。 The medicine sorting device 1 according to this embodiment generates a shape model 800 that represents the shape of a scratch on the sorting cup 141 and stores the generated shape model 800. When detecting medicines from a captured image of the sorting cup 141 to check for remaining medicines, the medicine sorting device 1 uses the shape model 800 to prevent the scratch on the sorting cup 141 from being detected as medicine. With the above configuration, a scratched sorting cup 141 can continue to be used. This reduces the cost of replacing the sorting cup 141.

(薬剤仕分装置1)
本実施形態に係る薬剤仕分装置1について図20を用いて説明する。図20は本実施形態に係る薬剤仕分装置1の一部の構成の一例を示すブロック図である。なお、図20においては、薬剤仕分装置1の構成のうち本実施形態に係る仕分カップ141の形状モデル生成処理および仕分カップ141における薬剤検出処理に関わる構成のみを示している。本実施形態に係る薬剤仕分装置1は、図1に示す薬剤仕分装置1が備える構成をすべて含んでいてもよい。
(Medicine sorting device 1)
The medicine sorting device 1 according to this embodiment will be described with reference to Fig. 20. Fig. 20 is a block diagram showing an example of a partial configuration of the medicine sorting device 1 according to this embodiment. Note that Fig. 20 shows only the configuration of the medicine sorting device 1 that is related to the shape model generation process of the sorting cup 141 and the medicine detection process in the sorting cup 141 according to this embodiment. The medicine sorting device 1 according to this embodiment may include all of the configuration provided in the medicine sorting device 1 shown in Fig. 1.

(操作部31)
タッチパネル3の操作部31は、ユーザによる入力操作を受け付ける。特に、本実施形態に係る操作部31は、仕分カップ141の形状モデル800の生成を指示するユーザ入力を受付ける。また、操作部31は仕分カップ141における残薬確認を指示するユーザ入力を受付ける。残薬確認とは、薬剤仕分装置1が、仕分カップ141の撮像画像に基づき、仕分カップ141に薬剤が収容されていないか否かを判定することを指す。
(Operation unit 31)
The operation unit 31 of the touch panel 3 accepts input operations by the user. In particular, the operation unit 31 according to this embodiment accepts a user input instructing the generation of a shape model 800 of the sorting cup 141. The operation unit 31 also accepts a user input instructing the checking of remaining medicines in the sorting cup 141. The checking of remaining medicines refers to the medicine sorting device 1 determining whether or not the sorting cup 141 contains any medicines based on a captured image of the sorting cup 141.

(制御部60c)
本実施形態に係る制御部60cは、実施形態1にて説明した制御部60aが備えている要部構成に加えて、形状モデル生成部791c、薬剤検出部792cおよびマッチング判定部793cを備えている。
(Control unit 60c)
The control unit 60c according to this embodiment includes, in addition to the main components of the control unit 60a described in the first embodiment, a shape model generation unit 791c, a drug detection unit 792c, and a matching determination unit 793c.

(撮像制御部63)
撮像制御部63は、操作入力部66から受信した指示に従い、第2カメラ121に、仕分カップ141の内部を撮像させる。撮像制御部63は第2カメラ121から撮像画像を取得する。操作入力部66が仕分カップ141の形状モデル800の生成を指示するユーザ入力を受付けている場合には、撮像制御部63は取得した撮像画像を形状モデル生成部791cに送信する。また、操作入力部66が仕分カップ141における残薬確認を指示するユーザ入力を受付けている場合、撮像制御部63は取得した撮像画像を薬剤検出部792cに送信する。
(Imaging control unit 63)
The imaging control unit 63 causes the second camera 121 to capture an image of the inside of the sorting cup 141 in accordance with instructions received from the operation input unit 66. The imaging control unit 63 acquires the captured image from the second camera 121. When the operation input unit 66 accepts a user input instructing the generation of a shape model 800 of the sorting cup 141, the imaging control unit 63 transmits the acquired captured image to the shape model generation unit 791c. Furthermore, when the operation input unit 66 accepts a user input instructing the confirmation of remaining medicine in the sorting cup 141, the imaging control unit 63 transmits the acquired captured image to the medicine detection unit 792c.

(操作入力部66)
操作入力部66は、操作部31におけるユーザによる入力を受付ける。本実施形態では、特に、操作入力部66は、仕分カップ141の形状モデル800の生成を指示するユーザ入力および仕分カップ141における残薬確認を指示するユーザ入力を受付ける。
(Operation input unit 66)
The operation input unit 66 accepts input by the user on the operation unit 31. In this embodiment, in particular, the operation input unit 66 accepts a user input instructing the generation of a shape model 800 of the sorting cup 141 and a user input instructing the confirmation of remaining medicine in the sorting cup 141.

仕分カップ141の形状モデル800の生成を指示するユーザ入力および仕分カップ141における残薬確認を指示するユーザ入力を受付けると、操作入力部66は撮像制御部63に第2カメラによる仕分カップ141の撮像を指示する。なお、仕分カップ141の形状モデル800の生成を指示するユーザ入力には、仕分カップ141を指定する入力が含まれていてもよい。 When a user input instructing the generation of a shape model 800 of the sorting cup 141 and a user input instructing the confirmation of remaining medication in the sorting cup 141 are received, the operation input unit 66 instructs the imaging control unit 63 to capture an image of the sorting cup 141 using the second camera. Note that the user input instructing the generation of the shape model 800 of the sorting cup 141 may also include an input specifying the sorting cup 141.

(表示制御部67)
表示制御部67は、薬剤検出部792cから、薬剤の像の検出結果を示す信号を受信する。表示制御部67は残薬確認画像を表示部32に表示する。例えば、残薬確認画像は、各仕分カップ141の画像を表示する共に、当該仕分カップ141に対して「残薬あり」、「残薬なし」等を表示するものであってもよい。
(Display control unit 67)
The display control unit 67 receives a signal indicating the detection result of the medicine image from the medicine detection unit 792c. The display control unit 67 displays a remaining medicine confirmation image on the display unit 32. For example, the remaining medicine confirmation image may display an image of each sorting cup 141 and also display "remaining medicine" or "no remaining medicine" for that sorting cup 141.

(形状モデル生成部791c)
形状モデル生成部791cは撮像制御部63から撮像画像を受信する。形状モデル生成部791cは、仕分カップ141の形状モデル800を撮像画像から生成する。形状モデル800の生成処理については、詳細を後述する。形状モデル生成部791cは、当該形状モデル800を対応する仕分カップ141のRFIDタグのUID(unique identification)に紐付けて、記憶部80cに記憶させる。上記形状モデル800は、傷の形状を示す形状モデルの他に、仕分カップ141における当該傷の領域を示す領域情報が含まれていてもよい。
(Shape model generation unit 791c)
The shape model generation unit 791c receives the captured image from the imaging control unit 63. The shape model generation unit 791c generates a shape model 800 of the sorting cup 141 from the captured image. The process of generating the shape model 800 will be described in detail below. The shape model generation unit 791c associates the shape model 800 with the UID (unique identification) of the RFID tag of the corresponding sorting cup 141 and stores it in the storage unit 80c. The shape model 800 may include area information indicating the area of the scratch in the sorting cup 141 in addition to the shape model indicating the shape of the scratch.

(薬剤検出部792c)
薬剤検出部792cは撮像制御部63から撮像画像を受信する。薬剤検出部792cは、撮像画像から薬剤の像の検出を行う。薬剤検出部792cは撮像画像から薬剤の像を検出すると、当該撮像画像をマッチング判定部793cに送信する。
(Drug detection unit 792c)
The drug detection unit 792c receives the captured image from the imaging control unit 63. The drug detection unit 792c detects the image of the drug from the captured image. When the drug detection unit 792c detects the image of the drug from the captured image, it transmits the captured image to the matching determination unit 793c.

例えば、薬剤検出部792cは当該撮像画像を二値化した画像に変換する。薬剤検出部792は二値化した画像において白の領域を薬剤の像として特定してもよい。また、薬剤検出部792cは二値化した画像における白の領域の形状と所定の形状とのパターンマッチング等を用いて薬剤の像を特定してもよい。上記所定の形状とは、例えば、予め撮像した画像における薬剤の像の形状であってもよい。 For example, the drug detection unit 792c converts the captured image into a binarized image. The drug detection unit 792 may identify white areas in the binarized image as images of drugs. The drug detection unit 792c may also identify images of drugs by pattern matching the shape of the white areas in the binarized image with a predetermined shape. The predetermined shape may be, for example, the shape of an image of a drug in an image captured in advance.

また、薬剤検出部792cは、マッチング判定部793cからマッチング領域を示す信号を受信する。マッチング領域については、詳細を後述する。薬剤検出部792cは、検出の対象となる領域から当該信号が示すマッチング領域を除外し、薬剤の像の検出を行う。薬剤の像を検出した場合、薬剤検出部792cは対応する仕分カップ141に残薬があることを示す信号を表示制御部67に送信する。また、薬剤検出部792cは、マッチング判定部793cからマッチング領域が検出されなかったことを示す信号を受信すると、対応する仕分カップ141に残薬があることを示す信号を表示制御部67に送信する。また、マッチング領域を除外した撮像画像、または、撮像制御部63から受信した撮像画像から薬剤の像を検出しない場合、薬剤検出部792cは表示制御部67に対応する仕分カップ141に残薬がないことを示す信号を送信する。 The medicine detection unit 792c also receives a signal indicating a matching area from the matching determination unit 793c. The matching area will be described in detail below. The medicine detection unit 792c excludes the matching area indicated by the signal from the area to be detected and detects an image of the medicine. If a medicine image is detected, the medicine detection unit 792c sends a signal to the display control unit 67 indicating that there is remaining medicine in the corresponding sorting cup 141. If the medicine detection unit 792c also receives a signal from the matching determination unit 793c indicating that no matching area has been detected, it sends a signal to the display control unit 67 indicating that there is remaining medicine in the corresponding sorting cup 141. If the medicine detection unit 792c does not detect an image of the medicine from the captured image excluding the matching area or from the captured image received from the imaging control unit 63, the medicine detection unit 792c sends a signal to the display control unit 67 indicating that there is no remaining medicine in the corresponding sorting cup 141.

(マッチング判定部793c)
マッチング判定部793cは薬剤検出部792cから撮像画像を受信する。マッチング判定部793cは、記憶部80cの形状モデル800と撮像画像における薬剤の像として検出された像とをマッチングし、マッチングスコアを算出する。マッチング判定部793cは当該マッチングスコアが所定の値よりも大きい値であるか否かを判別する。マッチング判定部793cは、当該マッチングスコアが所定の値よりも大きい場合、薬剤の像として検出された像の領域をマッチング領域に特定する。マッチング判定部793cはマッチング領域を示す信号を薬剤検出部792cに送信する。また、マッチング判定部793cは、当該マッチングスコアが所定の値以下の場合、マッチング領域が検出されなかったことを示す信号を薬剤検出部792cに送信する。
(Matching determination unit 793c)
The matching determination unit 793c receives the captured image from the drug detection unit 792c. The matching determination unit 793c matches the shape model 800 in the storage unit 80c with the image detected as the drug image in the captured image and calculates a matching score. The matching determination unit 793c determines whether the matching score is greater than a predetermined value. If the matching score is greater than the predetermined value, the matching determination unit 793c identifies the area of the image detected as the drug image as a matching area. The matching determination unit 793c transmits a signal indicating the matching area to the drug detection unit 792c. If the matching score is equal to or less than the predetermined value, the matching determination unit 793c transmits a signal indicating that a matching area has not been detected to the drug detection unit 792c.

マッチング領域とは、上述のようにマッチングスコアが所定の値よりも大きい領域である。すなわち、マッチング領域とは、形状モデル800に示される傷の形状に類似した形状の像が撮像されている撮像画像の領域である。また、上述の所定の値(閾値)よりも大きい値は、形状モデル800に示される傷の形状と撮像画像の像との類似度が高いとみなすことができる値である。上記所定の値の具体例としては、0.75(75点)などを挙げることができる。例えば、マッチングスコアは完全一致を1(100点)とし、非類似を0(0点)としたときの値である。 As described above, a matching region is a region where the matching score is greater than a predetermined value. In other words, a matching region is a region of the captured image in which an image of a shape similar to the shape of the flaw shown in shape model 800 is captured. Furthermore, a value greater than the above-mentioned predetermined value (threshold value) is a value that can be considered to indicate a high degree of similarity between the shape of the flaw shown in shape model 800 and the image in the captured image. A specific example of the above-mentioned predetermined value is 0.75 (75 points). For example, the matching score is a value where a perfect match is 1 (100 points) and dissimilarity is 0 (0 points).

(形状モデル800の生成処理の例)
図21は、本実施形態の薬剤仕分装置1による仕分カップ141の形状モデル生成処理の一例を示すフローチャートである。図21に示すように、操作入力部66は、仕分カップ141の形状モデル800の生成の指示を受付ける。(S201)。例えば、仕分カップ141から薬剤が取り除かれた後に行われる残薬確認において、ユーザが仕分カップ141に傷があると判断すると、当該ユーザは操作部31から仕分カップ141の形状モデル800の生成の指示を入力する。
(Example of generation process of shape model 800)
21 is a flowchart showing an example of a shape model generation process for the sorting cup 141 performed by the medicine sorting device 1 of this embodiment. As shown in FIG. 21 , the operation input unit 66 receives an instruction to generate a shape model 800 for the sorting cup 141 (S201). For example, when checking the remaining medicines after removing medicines from the sorting cup 141, if the user determines that the sorting cup 141 has a scratch, the user inputs an instruction to generate the shape model 800 for the sorting cup 141 from the operation unit 31.

続いて、撮像制御部63は、第2カメラ121から仕分カップ141の内部の撮像画像を取得する(S202)。続いて、形状モデル生成部791cは撮像画像から仕分カップ141の形状モデル800を生成する(S203)。図22は仕分カップ141の撮像画像および仕分カップ141の形状モデル800の一例を示す図である。図22に示す撮像画像D200は、第2カメラ121が撮像した仕分カップ141の内部の撮像画像の一例である。撮像画像D200には領域R20が示されており、領域R20において1つの傷が存在している。図22に示す画像D201は、領域R20の拡大画像である。図22に示す形状モデル800E1は画像D201において検出される傷に対応する形状モデル800を示している。 Next, the imaging control unit 63 acquires an image of the interior of the sorting cup 141 from the second camera 121 (S202). Next, the shape model generation unit 791c generates a shape model 800 of the sorting cup 141 from the captured image (S203). Figure 22 is a diagram showing an example of an image of the sorting cup 141 and a shape model 800 of the sorting cup 141. The captured image D200 shown in Figure 22 is an example of an image of the interior of the sorting cup 141 captured by the second camera 121. The captured image D200 shows an area R20, in which one scratch is present. The image D201 shown in Figure 22 is an enlarged image of the area R20. The shape model 800E1 shown in Figure 22 shows the shape model 800 corresponding to the scratch detected in image D201.

例えば、形状モデル800E1は画像D201から抽出される仕分カップ141の傷の形状である。なお、形状モデル800は、仕分カップ141の傷の形状の一部の形状のみを示してもよい。また、図22に示す画像D202は、他の仕分カップ141の内部の撮像画像の拡大画像の一例である。画像D202に撮像されている仕分カップ141には複数の傷が存在している。仕分カップ141の撮像画像から複数の傷が検出された場合、形状モデル生成部791cは検出された傷のそれぞれに対応する形状モデル800を生成してもよい。図22に示す形状モデル800E2から800E4は画像D202において検出された複数の傷のそれぞれに対応する形状モデル800を示している。 For example, shape model 800E1 is the shape of a scratch on the sorting cup 141 extracted from image D201. Note that shape model 800 may show only a portion of the shape of the scratch on the sorting cup 141. Image D202 shown in Figure 22 is an example of an enlarged image of a captured image of the inside of another sorting cup 141. There are multiple scratches on the sorting cup 141 captured in image D202. If multiple scratches are detected in the captured image of the sorting cup 141, the shape model generation unit 791c may generate a shape model 800 corresponding to each of the detected scratches. Shape models 800E2 to 800E4 shown in Figure 22 show shape models 800 corresponding to each of the multiple scratches detected in image D202.

続いて、形状モデル生成部791cは、生成した形状モデル800を記憶部80cに記憶させる(S204)。 Next, the shape model generation unit 791c stores the generated shape model 800 in the storage unit 80c (S204).

(残薬確認のための薬剤検出処理の例)
図23は、本実施形態の薬剤仕分装置1による残薬確認のための薬剤検出処理の一例を示すフローチャートである。図23に示すように、操作入力部66は、仕分カップ141における残薬確認の指示を受付ける(S301)。続いて、撮像制御部63は、第2カメラ121から仕分カップ141の内部の撮像画像を取得する(S302)。
(Example of drug detection process for checking remaining medication)
23 is a flowchart showing an example of a medicine detection process for checking remaining medicines by the medicine sorting device 1 of this embodiment. As shown in Fig. 23, the operation input unit 66 receives an instruction to check remaining medicines in the sorting cup 141 (S301). Next, the imaging control unit 63 acquires an image of the inside of the sorting cup 141 from the second camera 121 (S302).

続いて、薬剤検出部792cは撮像画像から薬剤の像の検出を行う(S303)。薬剤検出部792cが撮像画像から薬剤の像を検出した場合(S303でYES)、マッチング判定部793cは記憶部80cに記憶されている形状モデル800と撮像画像において薬剤として検出された像とのマッチングを行う(S304)。続いて、マッチング判定部793cはマッチングスコアが所定の値よりも大きいか否かを判定する(S305)。 Next, the drug detection unit 792c detects drug images from the captured image (S303). If the drug detection unit 792c detects drug images from the captured image (YES in S303), the matching determination unit 793c matches the shape model 800 stored in the memory unit 80c with the image detected as a drug in the captured image (S304). Next, the matching determination unit 793c determines whether the matching score is greater than a predetermined value (S305).

図24は、仕分カップ141の撮像画像、仕分カップ141の内部の像を抽出した抽出画像、形状モデル800および抽出画像におけるマッチング領域の画像の一例を示す図である。図24に示す撮像画像D203は仕分カップ141の撮像画像の一例である。マッチング判定部793cは、仕分カップ141の撮像画像から仕分カップ141の内部の像を抽出した抽出画像を生成してもよい。図24に示す抽出画像D204は、撮像画像D203から仕分カップ141の内部の像を抽出した抽出画像である。マッチング判定部793cは当該抽出画像を撮像画像としてマッチングを行ってもよい。図24に示す形状モデル800F1は、仕分カップ141における傷の形状モデルの一例である。また、図24に示す画像D205は、抽出画像D204における形状モデル800F1に対応するマッチング領域の画像の一例である。図24に示すように、マッチング判定部793cは、抽出画像D204から、形状モデル800F1に類似した画像パターンを探索し、探索された画像パターンが形状モデル800F1にどれだけ類似しているかを示すマッチングスコアを算出する。図24では、マッチング判定部793cによりマッチングスコアが0.93と算出された例を示している。 Figure 24 shows an example of a captured image of the sorting cup 141, an extracted image in which an image of the inside of the sorting cup 141 has been extracted, a shape model 800, and an image of a matching area in the extracted image. The captured image D203 shown in Figure 24 is an example of a captured image of the sorting cup 141. The matching determination unit 793c may generate an extracted image in which an image of the inside of the sorting cup 141 has been extracted from the captured image of the sorting cup 141. The extracted image D204 shown in Figure 24 is an extracted image in which an image of the inside of the sorting cup 141 has been extracted from the captured image D203. The matching determination unit 793c may perform matching using the extracted image as the captured image. The shape model 800F1 shown in Figure 24 is an example of a shape model of a scratch in the sorting cup 141. Furthermore, image D205 shown in Figure 24 is an example of an image of a matching area corresponding to the shape model 800F1 in the extracted image D204. As shown in FIG. 24, the matching determination unit 793c searches the extracted image D204 for an image pattern similar to the shape model 800F1, and calculates a matching score that indicates how similar the searched image pattern is to the shape model 800F1. FIG. 24 shows an example in which the matching score calculated by the matching determination unit 793c is 0.93.

マッチングスコアが所定の値(閾値)よりも大きいとマッチング判定部793cが判定した場合(S305でYES)、薬剤検出部792cは撮像画像における薬剤の検出を行う領域からマッチング領域を除外し(S306)、薬剤の像の検出を行う(S307)。薬剤検出部792cが薬剤の像を検出した場合(S307でYES)、表示制御部67は対応する仕分カップ141に「残薬あり」と表示した残薬確認画像を表示部32に表示し(S308)、処理は終了する。 If the matching determination unit 793c determines that the matching score is greater than a predetermined value (threshold value) (YES in S305), the medication detection unit 792c excludes the matching area from the area in the captured image where medication is detected (S306) and detects medication images (S307). If the medication detection unit 792c detects medication images (YES in S307), the display control unit 67 displays a remaining medication confirmation image on the display unit 32 that displays "Remaining medication" on the corresponding sorting cup 141 (S308), and the process ends.

図24に示す画像D206は、検出対象の領域からマッチング領域を除外して検出した場合における、薬剤検出部792cの薬剤の検出結果の一例を示している。図24の画像D206に示すように、薬剤検出部792cは薬剤の像J200のみを検出し、傷の像に対しては、薬剤としての検出を行わない。 Image D206 in Figure 24 shows an example of the drug detection results of the drug detection unit 792c when the matching area is excluded from the detection target area. As shown in image D206 in Figure 24, the drug detection unit 792c detects only the drug image J200 and does not detect the image of the wound as a drug.

なお、薬剤検出部792cが撮像画像から薬剤の像の検出しなかった場合(S303でNO)、表示制御部67は対応する仕分カップ141に「残薬なし」と表示した残薬確認画像を表示部32に表示し(S309)、処理は終了する。また、マッチングスコアが所定の値以下とマッチング判定部793cが判定した場合(S305でNO)、処理は308に続く。また、薬剤検出部792cが薬剤の像の検出しなかった場合(S307でNO)、処理は309に続く。 If the drug detection unit 792c does not detect an image of a drug from the captured image (NO in S303), the display control unit 67 displays a remaining drug confirmation image on the display unit 32 that displays "No remaining drug" in the corresponding sorting cup 141 (S309), and the process ends. Also, if the matching determination unit 793c determines that the matching score is below a predetermined value (NO in S305), the process continues to 308. Also, if the drug detection unit 792c does not detect an image of a drug (NO in S307), the process continues to 309.

〔実施形態12〕
本実施形態では、図25を用いて、仕分けられた薬剤から状態の悪い薬剤のユーザによる除外を補助することができる構成について説明する。例えば、状態の悪い薬剤とは、一部が欠けている状態の薬剤、汚れている薬剤、変色している薬剤などである。
[Embodiment 12]
In this embodiment, a configuration that can assist the user in excluding medicines in poor condition from the sorted medicines will be described with reference to Fig. 25. For example, medicines in poor condition include medicines that are partially missing, soiled, discolored, etc.

本実施形態に係る薬剤仕分装置1は、仕分けられた薬剤をユーザが目視鑑査するための画像(目視鑑査用の画像)に、薬剤毎の状態をユーザが選択できるボタンを表示させる。薬剤仕分装置1は受け付けたユーザ入力に従って、薬剤毎の状態をジャーナルおよび分包紙のうちの少なくとも一方に印字する。 The medicine sorting device 1 according to this embodiment displays buttons that allow the user to select the status of each medicine on an image (image for visual inspection) that allows the user to visually inspect the sorted medicines. The medicine sorting device 1 prints the status of each medicine on at least one of the journal and packaging paper in accordance with the received user input.

上記の構成によれば、仕分けられた薬剤に状態の悪い薬剤が含まれている場合、ユーザは状態の悪い薬剤の個数を容易に把握することができる。そのため、薬剤仕分装置1は、仕分けられた薬剤から状態の悪い薬剤のユーザによる除外を補助することができる。また、仕分けられた薬剤に状態の悪い薬剤が含まれていることをユーザに認識させることができるため、状態の悪い薬剤の除外の漏れを軽減することができる。 With the above configuration, if the sorted medications include medications in poor condition, the user can easily determine the number of medications in poor condition. Therefore, the medication sorting device 1 can assist the user in removing medications in poor condition from the sorted medications. Furthermore, by making the user aware that the sorted medications include medications in poor condition, it is possible to reduce the risk of missing medications in poor condition when being removed.

本実施形態に係る操作部31、制御部60aおよび印刷出力部4は、実施形態1にて説明した処理に加えて以下の処理を行う。 In this embodiment, the operation unit 31, control unit 60a, and print output unit 4 perform the following processes in addition to the processes described in embodiment 1.

(操作部31)
操作部31は、ユーザによる入力操作を受け付ける。特に、本実施形態に係る操作部31は、目視監査用の画像を表示するためのユーザ入力を受付ける。また、操作部31は、目視監査用の画像に表示された上記ボタンによって入力されるユーザ入力を受付ける。操作部31は、受け付けたユーザ入力を示す信号を操作入力部66に送信する。
(Operation unit 31)
The operation unit 31 accepts input operations by the user. In particular, the operation unit 31 according to this embodiment accepts user input for displaying an image for visual inspection. The operation unit 31 also accepts user input entered using the buttons displayed on the image for visual inspection. The operation unit 31 transmits a signal indicating the accepted user input to the operation input unit 66.

(撮像制御部63)
撮像制御部63は、操作入力部66の指示を受信し、第2カメラ121に、仕分カップ141を撮像させる。撮像制御部63は撮像画像を取得し、表示制御部67に送信する。
(Imaging control unit 63)
The imaging control unit 63 receives an instruction from the operation input unit 66 and causes the second camera 121 to capture an image of the sorting cup 141. The imaging control unit 63 acquires the captured image and transmits it to the display control unit 67.

(操作入力部66)
操作入力部66は、目視監査用の画像を表示するためのユーザ入力を示す信号を受信すると、撮像制御部63に仕分カップ141を第2カメラ121で撮像するように指示する。また、操作入力部66は、目視監査用の画像に表示された上記ボタンによって入力されるユーザ入力を示す信号を受信する。操作入力部66は、当該ユーザ入力を示す信号を印刷出力制御部69に送信する。
(Operation input unit 66)
When the operation input unit 66 receives a signal indicating a user input for displaying an image for visual inspection, it instructs the imaging control unit 63 to capture an image of the sorting cup 141 with the second camera 121. The operation input unit 66 also receives a signal indicating a user input entered using the button displayed on the image for visual inspection. The operation input unit 66 transmits the signal indicating the user input to the print output control unit 69.

(表示制御部67)
表示制御部67は、撮像制御部63から撮像画像を受信し、当該撮像画像を用いて目視鑑査用の画像を生成し、表示部32に表示させる。目視鑑査用の画像には、「薬剤毎の状態をユーザが選択できるボタン」が含まれる。当該ボタンを介してユーザは仕分カップ141に仕分けされている薬剤毎の状態を入力できる。例えば、ユーザは、当該ボタンを用いて、薬剤の汚れの有無、薬剤の欠けの有無、薬剤の変色の有無など、薬剤の状態を選択できる。
(Display control unit 67)
The display control unit 67 receives the captured image from the imaging control unit 63, generates an image for visual inspection using the captured image, and displays it on the display unit 32. The image for visual inspection includes a button that allows the user to select the condition of each medicine. The button allows the user to input the condition of each medicine sorted in the sorting cup 141. For example, the button allows the user to select the condition of the medicine, such as whether the medicine is dirty, whether there are any chips in the medicine, or whether the medicine has discolored.

(印刷出力制御部69)
印刷出力制御部69は、操作入力部66が受け付けたユーザ入力に従って、印刷出力部4を制御する。
(Print output control unit 69)
The printout control unit 69 controls the printout unit 4 in accordance with the user input received by the operation input unit 66 .

(印刷出力部4)
印刷出力部4は、ユーザ入力に従って、薬剤毎の状態をジャーナルおよび分包紙のうちの少なくとも1つに印字する。
(Print output unit 4)
The printing output unit 4 prints the status of each medicine on at least one of a journal and a packaging paper in accordance with user input.

(処理例)
図25は、本実施形態に係る薬剤仕分装置の印字処理の一例を示すフローチャートである。図25に示すように、操作入力部66は、目視監査用の画像を表示するためのユーザ入力を受付ける(S401)。続いて、撮像制御部63は、第2カメラ121を制御して仕分カップ141を撮像する(S402)。続いて、表示制御部67は、「薬剤毎の状態をユーザが選択できるボタン」を含ませて目視鑑査用の画像を表示する(S403)。続いて、操作入力部66は、薬剤毎の状態について、上記ボタンに対するユーザ入力を受付ける(S404)。ユーザは、目視鑑査用の画像を視認して、各画像に示される薬剤の目視鑑査を行う。ユーザは、目視鑑査時に、薬剤に何等かの問題を発見した場合に、該当する問題に対して「有」を示す上記ボタンを選択する。また、特に問題を発見しなかった場合には、各問題に対して「無」を示す上記ボタンを選択する。この選択を受けて、操作入力部66は、上記ボタンに対するユーザ入力を受付ける。
(Processing example)
FIG. 25 is a flowchart illustrating an example of the printing process of the medicine sorting device according to this embodiment. As shown in FIG. 25 , the operation input unit 66 accepts user input for displaying an image for visual inspection (S401). Next, the imaging control unit 63 controls the second camera 121 to capture an image of the sorting cup 141 (S402). Next, the display control unit 67 displays an image for visual inspection, including buttons that allow the user to select the status of each medicine (S403). Next, the operation input unit 66 accepts user input for the buttons regarding the status of each medicine (S404). The user visually checks the images for visual inspection and visually inspects the medicines shown in each image. If the user finds any problems with the medicines during visual inspection, the user selects the button indicating "Yes" for the corresponding problem. If no problems are found, the user selects the button indicating "No" for each problem. In response to this selection, the operation input unit 66 accepts user input for the buttons.

続いて、印刷出力制御部69は、印刷出力部4を制御して、薬剤毎の状態をジャーナルに印字し(S405)、処理は終了する。例えば、ユーザによる目視監査が、仕分けられた薬剤の分包前に行われる場合には、薬剤毎の状態がジャーナル紙および分包紙の両方に印字されてもよい。また、ユーザによる目視監査が仕分けられた薬剤の分包後に行われる場合には、薬剤毎の状態がジャーナル紙のみに印字されてもよい。例えば、印字の例としては、仕分カップ141毎に「汚れ:1錠あり 欠け:2錠あり」のように、薬剤の状態と当該状態の薬剤の数とが印字されてもよい。 The printout control unit 69 then controls the printout unit 4 to print the status of each medication on the journal (S405), and the process ends. For example, if the user performs a visual inspection before the sorted medications are packaged, the status of each medication may be printed on both the journal paper and the packaging paper. Alternatively, if the user performs a visual inspection after the sorted medications are packaged, the status of each medication may be printed only on the journal paper. For example, the status of the medication and the number of medications in that state may be printed for each sorting cup 141, such as "Dirty: 1 tablet present, Missing: 2 tablets present."

〔実施形態13〕
(概要)
本実施形態では、主として図26から図28を用いて、対象薬剤の種類の判別の成功の確率を高めることができ、対象薬剤の種類の判別の精度を高めることができる構成について説明する。
[Embodiment 13]
(overview)
In this embodiment, mainly using Figures 26 to 28, a configuration that can increase the probability of successful identification of the type of target drug and can increase the accuracy of identification of the type of target drug will be described.

本実施形態に係る薬剤仕分装置1は、対象薬剤の識別情報に識別不可能な文字が含まれている場合、識別情報の文字列において識別不可能な文字を全てのパターンにマッチするワイルドカードに変換した変換文字列を生成する。薬剤仕分装置1は、ユーザ採用薬リスト810と薬剤総合データベース541とに対する当該変換文字列を用いた検索結果から、対象薬剤の種類を判定する。 When the identification information of a target drug contains unidentifiable characters, the drug sorting device 1 according to this embodiment generates a converted string in which the unidentifiable characters in the character string of the identification information are converted into wildcards that match all patterns. The drug sorting device 1 determines the type of target drug from the search results using the converted string against the user's adopted drug list 810 and the comprehensive drug database 541.

上記の構成によれば、対象薬剤の識別情報に識別不可能な文字が含まれている場合、薬剤仕分装置1は、ユーザ採用薬リスト810と薬剤総合データベース541とを用いた検索結果から対象薬剤の種類を判定する。そのため、薬剤仕分装置1は対象薬剤を何れかの薬剤とする確率を高めることができる。 With the above configuration, if the identification information of the target drug contains unidentifiable characters, the drug sorting device 1 determines the type of the target drug from the search results using the user's adopted drug list 810 and the comprehensive drug database 541. As a result, the drug sorting device 1 can increase the probability that the target drug will be one of the drugs.

ここで、図26は、本実施形態に係る薬剤判別システム2000の一例を示す図である。図26に示すように、ユーザ採用薬リスト810は各薬剤仕分装置1の記憶部80dに記憶されている。ユーザ採用薬リスト810は、薬剤仕分装置1が使用される病院、病棟または薬局等で管理している薬剤に対応する基準薬剤の特徴(薬剤データ)を含むリストである。薬剤データは、基準薬剤の識別情報(例:薬剤名等の薬剤の種類を示す情報)に対応付けられている。薬剤データは、基準薬剤の特徴を含む画像データであってもよい。 Here, Figure 26 is a diagram showing an example of a drug discrimination system 2000 according to this embodiment. As shown in Figure 26, a user-adopted drug list 810 is stored in the memory unit 80d of each drug sorting device 1. The user-adopted drug list 810 is a list containing characteristics (drug data) of reference drugs corresponding to drugs managed by the hospital, ward, pharmacy, etc. where the drug sorting device 1 is used. The drug data is associated with identification information of the reference drug (e.g., information indicating the type of drug, such as the drug name). The drug data may be image data including the characteristics of the reference drug.

また、図26に示すように、薬剤総合データベース541は、データ管理装置500の記憶部504に記憶されている。データ管理装置500は、あらゆる病院、病棟もしくは薬局等で使用され得る複数種類の薬剤に関する薬剤データを管理するものである。データ管理装置500は、薬剤仕分装置1と通信可能に接続でき、複数種類の薬剤を薬剤総合データベース541にて総合的に一元管理する。 As shown in FIG. 26, the comprehensive drug database 541 is stored in the memory unit 504 of the data management device 500. The data management device 500 manages drug data relating to multiple types of drugs that can be used in any hospital, ward, pharmacy, etc. The data management device 500 can be communicatively connected to the drug sorting device 1, and comprehensively and centrally manages multiple types of drugs in the comprehensive drug database 541.

薬剤総合データベース541で管理されている薬剤データ数は膨大であるため、ユーザ採用薬リスト810にその全てを含めることは現実的ではない。そのため、ユーザ採用薬リスト810が含む薬剤データは、薬剤総合データベースに含まれる薬剤データの中から、各薬剤仕分装置1で、または、各病院、病棟もしくは薬局等で使用されることが想定される薬剤データを抽出された薬剤データである。 Because the amount of drug data managed in the comprehensive drug database 541 is enormous, it is not realistic to include all of it in the user's adopted drug list 810. Therefore, the drug data included in the user's adopted drug list 810 is drug data extracted from the drug data included in the comprehensive drug database, which is drug data expected to be used by each drug sorting device 1, or each hospital, ward, pharmacy, etc.

(薬剤判別システム2000)
本実施形態に係る薬剤判別システム2000について、図26を用いて説明する。図26に示すように、薬剤判別システム2000は複数の薬剤仕分装置1および各薬剤仕分装置1と通信可能に接続できるデータ管理装置500を含む。薬剤仕分装置1およびデータ管理装置500は、インターネット回線、または専用VPN(Virtual Private Network)回線を介してデータの送受信を行う。なお、薬剤判別システム2000に含まれる薬剤仕分装置1は、1つであっても構わない。
(Drug Identification System 2000)
A drug discrimination system 2000 according to this embodiment will be described with reference to FIG. 26. As shown in FIG. 26, the drug discrimination system 2000 includes a plurality of drug sorting devices 1 and a data management device 500 that can be communicatively connected to each drug sorting device 1. The drug sorting devices 1 and the data management device 500 transmit and receive data via an internet line or a dedicated VPN (Virtual Private Network) line. Note that the drug discrimination system 2000 may include only one drug sorting device 1.

(データ管理装置500)
データ管理装置500は、例えば薬剤仕分装置1の製造元で使用される装置である。データ管理装置500は、通信部501、制御部502、タッチパネル503、および記憶部504を備える。記憶部504は、薬剤総合データベース541を記憶している。通信部501は、薬剤仕分装置1とデータの送受信を行う。通信部501は、例えば、薬剤仕分装置1の通信部101から変換文字列を受信する。制御部502は、薬剤総合データベース541に対して当該変換文字列を用いて検索を行う。制御部502は、薬剤総合データベース541において検索された基準薬剤の薬剤データを通信部501を介して薬剤仕分装置1に送信する。タッチパネル503は、操作部および表示部を備える(図示せず)。例えば、タッチパネル503を介したユーザ操作によって、薬剤総合データベース541に含まれている薬剤データが更新されてもよい。
(Data management device 500)
The data management device 500 is a device used, for example, by the manufacturer of the drug sorting device 1. The data management device 500 includes a communication unit 501, a control unit 502, a touch panel 503, and a storage unit 504. The storage unit 504 stores a comprehensive drug database 541. The communication unit 501 transmits and receives data to and from the drug sorting device 1. The communication unit 501 receives, for example, a conversion character string from the communication unit 101 of the drug sorting device 1. The control unit 502 searches the comprehensive drug database 541 using the conversion character string. The control unit 502 transmits drug data of the reference drug searched for in the comprehensive drug database 541 to the drug sorting device 1 via the communication unit 501. The touch panel 503 includes an operation unit and a display unit (not shown). For example, the drug data included in the comprehensive drug database 541 may be updated by a user operation via the touch panel 503.

(薬剤仕分装置1)
図26に示すように、薬剤仕分装置1は、タッチパネル3、制御部60a、記憶部80dおよび通信部101を備える。
(Medicine sorting device 1)
As shown in FIG. 26, the medicine sorting device 1 includes a touch panel 3, a control unit 60a, a memory unit 80d, and a communication unit 101.

なお、図26においては、薬剤仕分装置1の構成のうち本実施形態に係る判別処理に係る構成のみを示している。本実施形態に係る薬剤仕分装置1は、図1に示す薬剤仕分装置1が備える構成をすべて含んでいてもよい。 Note that Figure 26 only shows the components of the medicine sorting device 1 that are related to the discrimination process of this embodiment. The medicine sorting device 1 of this embodiment may include all of the components of the medicine sorting device 1 shown in Figure 1.

(タッチパネル3)
タッチパネル3の操作部(図示せず)は、ユーザによる入力操作を受け付ける。特に、本実施形態に係る操作部は、ユーザ採用薬リスト810に、基準薬剤の薬剤データを加えることを指示するユーザ操作等を受付ける。
(Touch panel 3)
An operation unit (not shown) of the touch panel 3 accepts input operations by the user. In particular, the operation unit according to this embodiment accepts a user operation to instruct adding drug data of a reference drug to the user adopted drug list 810.

例えば、ユーザ採用薬リスト810に加えられる基準薬剤の薬剤データは、変換文字列を用いた検索において、ユーザ採用薬リスト810では検索されず、薬剤総合データベース541にて検索された基準薬剤の薬剤データなどである。例えば、基準薬剤の薬剤データを加えることを指示するユーザ操作を操作入力部66が受け付けると、図1に示す薬剤データベース更新部74はユーザ採用薬リスト810に当該基準薬剤の薬剤データを加えてもよい。また、ユーザは、薬剤仕分装置1の製造元に対して、ユーザ採用薬リスト810では検索されず、薬剤総合データベース541にて検索された基準薬剤の薬剤データをユーザ採用薬リスト810に加えるように依頼してもよい。 For example, the drug data of a reference drug added to the user's adopted drug list 810 may be drug data of a reference drug that is not found in the user's adopted drug list 810 but is found in the comprehensive drug database 541 in a search using a conversion string. For example, when the operation input unit 66 receives a user operation instructing the addition of drug data of a reference drug, the drug database update unit 74 shown in FIG. 1 may add the drug data of the reference drug to the user's adopted drug list 810. In addition, the user may request the manufacturer of the drug sorting device 1 to add drug data of a reference drug that is not found in the user's adopted drug list 810 but is found in the comprehensive drug database 541 to the user's adopted drug list 810.

本実施形態に係る制御部60aは、実施形態1にて説明した機能に加えて、以下の機能を有する。 The control unit 60a in this embodiment has the following functions in addition to the functions described in embodiment 1.

(特徴抽出部64a)
特徴抽出部64aは、対象薬剤の識別情報に対してOCR処理を行う。また、特徴抽出部64aは、OCR後の識別情報の文字列に識別不可能な文字が含まれているか否かを判定する。
(Feature extraction unit 64a)
The feature extraction unit 64a performs OCR processing on the identification information of the target drug. The feature extraction unit 64a also determines whether or not the character string of the identification information after OCR includes an unidentifiable character.

また、特徴抽出部64aは、OCR後の識別情報の文字列に所定の数である第1の数以上の文字が含まれているか否かを判定する。例えば、特徴抽出部64aは、識別情報の文字列に含まれている、識別可能な文字と識別不可能な文字との合計の文字数が第1の数以上であるか否かを判定する。当該第1の数はユーザによって設定される数であってもよい。 The feature extraction unit 64a also determines whether the character string of the identification information after OCR contains a predetermined number of characters equal to or greater than a first number. For example, the feature extraction unit 64a determines whether the total number of identifiable characters and unidentifiable characters contained in the character string of the identification information is equal to or greater than a first number. The first number may be a number set by the user.

また、特徴抽出部64aは、OCR後の識別情報の文字列に、所定の数である第2の数よりも多い識別可能な文字が含まれているか否かを判定する。例えば、特徴抽出部64aは、識別可能な文字数が識別不可能な文字数よりも多いか否かを判定してもよい。OCR後の識別情報の文字列に含まれている文字数が8である場合、識別可能な文字数が5以上であるか(4より多いか)否かを判定してもよい。 The feature extraction unit 64a also determines whether the character string of the identification information after OCR contains more identifiable characters than a predetermined second number. For example, the feature extraction unit 64a may determine whether the number of identifiable characters is greater than the number of unidentifiable characters. If the number of characters included in the character string of the identification information after OCR is 8, the feature extraction unit 64a may determine whether the number of identifiable characters is 5 or more (greater than 4).

OCR後の識別情報の文字列に第1の数以上の文字が含まれており、かつ、OCR後の識別情報の文字列に第2の数よりも多い識別可能な文字が含まれている場合、特徴抽出部64aは、変換文字列を生成する。詳細には、特徴抽出部64aは、OCR後の識別情報の文字列における識別不可能な文字をワイルドカードに変換することによって変換文字列を生成する。特徴抽出部64aは生成した変換文字列を示す信号を照合部64bに送信する。 If the character string of the identification information after OCR contains a first number of characters or more and the character string of the identification information after OCR contains more than a second number of identifiable characters, the feature extraction unit 64a generates a converted character string. In particular, the feature extraction unit 64a generates a converted character string by converting unidentifiable characters in the character string of the identification information after OCR into wildcards. The feature extraction unit 64a transmits a signal indicating the generated converted character string to the matching unit 64b.

(照合部64b)
照合部64bは、受信した変換文字列とユーザ採用薬リスト810に含まれている基準薬剤の識別情報の文字列とを照合することによって、対象薬剤と同種の基準薬剤を検索する。
(Collation unit 64b)
The collating unit 64b searches for a reference drug of the same type as the target drug by collating the received converted character string with the character string of the identification information of the reference drug included in the user adopted drug list 810.

また、照合部64bは、通信部101を介して、データ管理装置500に変換文字列を示す信号を送信する。照合部64bは、通信部101を介してデータ管理装置500から、薬剤総合データベース541に対して変換文字列によって検索された基準薬剤の薬剤データを取得する。照合部64bは、検索結果に応じて、対象薬剤の種類を判別する。また、照合部64bは記憶部80dが記憶している判別結果情報820を更新する。判別結果情報820は、照合部64bが判別した対象薬剤の種類、判別に用いた基準薬剤の薬剤データ、対象薬剤に複数の候補があった場合の全ての候補薬剤などを含む情報である。判別結果情報820は、対象薬剤の撮像画像82に紐づけて記憶部80に記憶されもよい。 The matching unit 64b also transmits a signal indicating the conversion string to the data management device 500 via the communication unit 101. The matching unit 64b then acquires drug data for the reference drug searched for using the conversion string from the comprehensive drug database 541 from the data management device 500 via the communication unit 101. The matching unit 64b determines the type of target drug based on the search results. The matching unit 64b also updates the determination result information 820 stored in the memory unit 80d. The determination result information 820 includes the type of target drug determined by the matching unit 64b, drug data for the reference drug used in the determination, and all candidate drugs if there are multiple candidate target drugs. The determination result information 820 may be linked to the captured image 82 of the target drug and stored in the memory unit 80.

(処理例)
図27は、本実施形態の薬剤仕分装置1の判別処理の一例を示すフローチャートである。図27に示すように、特徴抽出部64aは対象薬剤の識別情報に対してOCR処理を行う(S501)。続いて、特徴抽出部64aはOCR後の識別情報の文字列に識別不可能な文字が含まれているか否かを判定する(S502)。
(Processing example)
27 is a flowchart showing an example of the discrimination process of the medicine sorting device 1 of this embodiment. As shown in FIG. 27, the feature extraction unit 64a performs OCR processing on the identification information of the target medicine (S501). Next, the feature extraction unit 64a determines whether the character string of the identification information after OCR contains an unidentifiable character (S502).

図28は、対象薬剤の識別情報、ユーザ採用薬リスト810における基準薬剤の薬剤データおよび薬剤総合データベース541における基準薬剤の薬剤データの一例を示す図である。図28のD301は対象薬剤のUpper(表)側の像における識別情報の一例を示している。図28のD302は対象薬剤のLower(裏)側の像における識別情報の一例を示している。図28のD301に示す例では、対象薬剤のUpper側には、上段に「ABC」、下段に「123」との識別情報が表示されている。図28のD301のC1に示すように、OCR処理後において、対象薬剤のUpper側の上段の識別情報の「C」の文字は識別不可能な文字となっている。また、図28のD301のC2に示すように、OCR処理後において、対象薬剤のUpper側の下段の「2」の文字は識別不可能な文字となっている。また、図28のD302に示す例では、対象薬剤のLower側には「20」との識別情報が表示されている。図28のD302のC3に示すように、OCR処理後において、対象薬剤のLower側の識別情報の「2」の文字は識別不可能な文字となっている。図28のD301およびD302に示す例では、C1、C2およびC3に示す文字が識別不可能な文字であるため、特徴抽出部64aはOCR後の識別情報の文字列に識別不可能な文字が含まれていると判定する。 Figure 28 shows an example of the identification information for a target drug, the drug data for a reference drug in the user's adopted drug list 810, and the drug data for a reference drug in the comprehensive drug database 541. D301 in Figure 28 shows an example of the identification information for the image of the upper (front) side of the target drug. D302 in Figure 28 shows an example of the identification information for the image of the lower (back) side of the target drug. In the example shown in D301 in Figure 28, the identification information for the upper side of the target drug is displayed as "ABC" in the upper row and "123" in the lower row. As shown in C1 in D301 in Figure 28, after OCR processing, the letter "C" in the identification information in the upper row on the upper side of the target drug is an unidentifiable character. Furthermore, as shown in C2 in D301 in Figure 28, after OCR processing, the letter "2" in the lower row on the upper side of the target drug is an unidentifiable character. In the example shown in D302 of FIG. 28, the identification information "20" is displayed on the lower side of the target drug. As shown in C3 of D302 of FIG. 28, after OCR processing, the character "2" in the identification information on the lower side of the target drug is an unidentifiable character. In the examples shown in D301 and D302 of FIG. 28, the characters shown in C1, C2, and C3 are unidentifiable characters, so the feature extraction unit 64a determines that the character string of the identification information after OCR includes an unidentifiable character.

識別情報の文字列に識別不可能な文字が含まれている場合(S502でYES)、特徴抽出部64aはOCR後の識別情報の文字列に第1の数以上の文字が含まれているか否かを判定する(S503)。例えば、図28のD301およびD302に示す例では、識別可能または識別不可能にかかわらず、Upper側に「ABC」および「123」の6文字の識別情報が表示されており、Lower側に「20」との2文字の識別情報が表示されている。すなわち、図28のD301およびD302に示す例では、合計8文字の識別情報が表示されている。上記第1の数が8以下の数(例えば、5)に設定されている場合、図28のD301およびD302に示す例では、特徴抽出部64aはOCR後の識別情報の文字列に第1の数以上の文字が含まれていると判定する。 If the character string of the identification information contains an unidentifiable character (YES in S502), the feature extraction unit 64a determines whether the character string of the identification information after OCR contains a first number or more of characters (S503). For example, in the example shown in D301 and D302 of FIG. 28, regardless of whether the characters are identifiable or unidentifiable, six-character identification information, "ABC" and "123," is displayed on the upper side, and two-character identification information, "20," is displayed on the lower side. That is, in the example shown in D301 and D302 of FIG. 28, a total of eight characters of identification information are displayed. If the first number is set to a number equal to or less than eight (e.g., 5), in the example shown in D301 and D302 of FIG. 28, the feature extraction unit 64a determines that the character string of the identification information after OCR contains a first number or more of characters.

OCR後の識別情報の文字列に第1の数以上の文字が含まれている場合(S503でYES)、特徴抽出部64aは、第2の数よりも多い識別可能な文字がOCR後の識別情報の文字列に含まれているか否かを判定する(S504)。例えば、図28のD301およびD302に示す例では、対象薬剤のUpper側の上段の「A」および「B」、下段の「1」および「3」、Lower側の「0」は識別可能な文字であり、識別情報の文字列に5文字の識別可能な文字が含まれていることになる。例えば、上記第2の数を、対象薬剤に表示されている識別情報の文字列に含まれている文字のうち識別不可能な文字の数としてもよい。この場合、図28のD301およびD302に示す例では識別不可能な文字の数は3となり、識別可能な文字の数5は識別不可能な文字の数3よりも多くなる。よって、特徴抽出部64aは、第2の数(識別不可能な文字の数)よりも多い識別可能な文字がOCR後の識別情報の文字列に含まれていると判定する。 If the character string of the identification information after OCR contains more than the first number of characters (YES in S503), the feature extraction unit 64a determines whether the character string of the identification information after OCR contains more than the second number of identifiable characters (S504). For example, in the example shown in D301 and D302 of FIG. 28, the "A" and "B" in the upper row on the upper side of the target drug, the "1" and "3" in the lower row, and the "0" on the lower side are identifiable characters, meaning that the character string of the identification information contains five identifiable characters. For example, the second number may be the number of unidentifiable characters included in the character string of the identification information displayed on the target drug. In this case, in the example shown in D301 and D302 of FIG. 28, the number of unidentifiable characters is three, and the number of identifiable characters (5) is greater than the number of unidentifiable characters (3). Therefore, the feature extraction unit 64a determines that the character string of the identification information after OCR contains more identifiable characters than the second number (the number of unidentifiable characters).

第2の数よりも多い識別可能な文字がOCR後の識別情報の文字列に含まれている場合(S504でYES)、特徴抽出部64aはOCR後の識別情報の文字列における識別不可能な文字をワイルドカードに変換し(S505)、変換文字列を生成する。例えば、図28のD301およびD302に示す例では、特徴抽出部64aは以下のように変換文字列を生成してもよい。 If the character string of the identification information after OCR contains more than the second number of identifiable characters (YES in S504), the feature extraction unit 64a converts the unidentifiable characters in the character string of the identification information after OCR to wildcards (S505) and generates a converted character string. For example, in the example shown in D301 and D302 in Figure 28, the feature extraction unit 64a may generate a converted character string as follows:

はじめに特徴抽出部64aは区切り文字(「スペース」、「:」)で識別情報の文字列を表示領域毎に分割してもよい。表示領域とは、Upper側の上段、Upper側の下段、Lower側等である。図28のD301およびD302に示す例では、特徴抽出部64aは「AB× 1×3:×0」(×は識別不可能な文字)を生成する。次に、特徴抽出部64aは識別不可能な文字をワイルドカード(*)に変換する。また、特徴抽出部64aは表示領域毎の文字列の先頭と末尾とにワイルドカード(*)を付加する。すなわち、Upper側の上段の文字列は「*AB**」となり、Upper側の下段の文字列は「*1*3*」となり、Lower側の文字列は「**0*」となる。なお、ワイルドカード(*)は任意の0個以上の文字列を示すものである。 First, the feature extraction unit 64a may divide the string of identification information into display areas using delimiters ("space", ":"). The display areas are the upper row on the upper side, the lower row on the upper side, the lower side, etc. In the example shown in D301 and D302 of FIG. 28, the feature extraction unit 64a generates "ABx 1x3:x0" (x is an unidentifiable character). Next, the feature extraction unit 64a converts the unidentifiable character to a wildcard (*). The feature extraction unit 64a also adds a wildcard (*) to the beginning and end of the string for each display area. That is, the string on the upper row on the upper side becomes "*AB**", the string on the lower row on the upper side becomes "*1*3*", and the string on the lower side becomes "**0*". Note that the wildcard (*) indicates any string of zero or more characters.

なお、文字列の先頭と末尾とにワイルドカード(*)を付加する処理は、当該文字列の先頭よりも前または末尾よりも後ろに特徴抽出部64aが文字として認識できていない文字がある場合に備えた処理である。当該処理により、当該文字列の先頭よりも前または末尾よりも後ろに特徴抽出部64aが文字として認識できていない文字がある場合に、基準薬剤の検索の処理を適切に行うことができるようになる。 The process of adding wildcards (*) to the beginning and end of a character string is a process to prepare for the case where there is a character before the beginning or after the end of the character string that the feature extraction unit 64a is unable to recognize as a character. This process makes it possible to properly search for a reference drug when there is a character before the beginning or after the end of the character string that the feature extraction unit 64a is unable to recognize as a character.

続いて、照合部64bは、ユーザ採用薬リスト810を用いて対象薬剤と同種の基準薬剤を検索する(S506)。図28のD303は、ユーザ採用薬リスト810を用いて検索された基準薬剤の薬剤データの一例を示している。図28のD303に示すように、当該基準薬剤(採用薬品MBマスタ)は、Upper側の上段(Upper1)に「ABC」、Upper側の下段(Upper2)に「123」の識別情報が表示されている。また、当該基準薬剤は、Lower側に「30」の識別情報が表示されている。本例においては、ユーザ採用薬リスト810を用いて検索された採用薬品Bマスタは、対象薬剤と異なる種類の薬剤である。 The matching unit 64b then searches for a reference drug of the same type as the target drug using the user's adopted drug list 810 (S506). D303 in Figure 28 shows an example of drug data for a reference drug searched using the user's adopted drug list 810. As shown in D303 in Figure 28, the reference drug (adopted drug MB master) has identification information "ABC" displayed in the upper row (Upper 1) on the upper side and "123" displayed in the lower row (Upper 2) on the upper side. Furthermore, the reference drug has identification information "30" displayed on the lower side. In this example, the adopted drug MB master searched using the user's adopted drug list 810 is a different type of drug from the target drug.

続いて、照合部64bは薬剤総合データベース541を用いた検索結果を取得する(S507)。図28のD304は、薬剤総合データベース541を用いて検索された基準薬剤の薬剤データの一例を示している。図28のD304に示すように、当該基準薬剤(薬品MAマスタ)は、Upper側の上段(Upper1)に「ABC」、Upper側の下段(Upper2)に「123」の識別情報が表示されている。また、当該基準薬剤は、Lower側に「20」の識別情報が表示されている。本例においては、薬剤総合データベース541を用いて検索された薬品Aは、対象薬剤と同じ種類の薬剤である。 The collation unit 64b then obtains the search results using the comprehensive drug database 541 (S507). D304 in FIG. 28 shows an example of drug data for a reference drug searched using the comprehensive drug database 541. As shown in D304 in FIG. 28, the reference drug (drug MA master) has identification information "ABC" displayed in the upper row (Upper 1) on the upper side and "123" displayed in the lower row (Upper 2) on the upper side. Furthermore, the reference drug has identification information "20" displayed on the lower side. In this example, drug A searched using the comprehensive drug database 541 is the same type of drug as the target drug.

続いて、照合部64bは、検索された基準薬剤があるか否かを判定する(S508)。詳細には、照合部64bは、ユーザ採用薬リスト810を用いた検索および薬剤総合データベース541を用いた検索の何れかにおいて、対象薬剤と同種の基準薬剤が検索されたか否かを判定する。 The collation unit 64b then determines whether any reference drugs have been found (S508). Specifically, the collation unit 64b determines whether a reference drug of the same type as the target drug has been found in either the search using the user's adopted drug list 810 or the search using the comprehensive drug database 541.

検索された基準薬剤がある場合(S508でYES)、照合部64bは検索された基準薬剤が複数であるか否かを判定する(S509)。例えば、照合部64bは、以下の場合に検索された基準薬剤が複数であると判定する。 If there is a reference drug found (YES in S508), the collation unit 64b determines whether there are multiple reference drugs found (S509). For example, the collation unit 64b determines that there are multiple reference drugs found in the following cases:

(1)ユーザ採用薬リスト810を用いた検索において1つの基準薬剤が検索され、かつ、薬剤総合データベース541を用いた検索において1つの基準薬剤が検索された場合。(2)ユーザ採用薬リスト810を用いた検索、および、薬剤総合データベース541を用いた検索の少なくとも一方で複数の基準薬剤が検索された場合。 (1) When one reference drug is found in a search using the user's adopted drug list 810 and one reference drug is found in a search using the comprehensive drug database 541. (2) When multiple reference drugs are found in at least one of a search using the user's adopted drug list 810 and a search using the comprehensive drug database 541.

検索された基準薬剤が複数である場合(S509でYES)、照合部64bは対象薬剤の種類を複数の候補の薬剤のうちの1つに判別する(S510)。例えば、ユーザ採用薬リスト810を用いた検索および薬剤総合データベース541を用いた検索の両方にて基準薬剤が検索された場合、照合部64bはユーザ採用薬リスト810を用いた検索において検索された基準薬剤を対象薬剤の種類として判別してもよい。また、ユーザ採用薬リスト810および薬剤総合データベース541に含まれる基準薬剤には、判別の優先度を示す判別優先度が設定されていてもよい。照合部64bは当該判別優先度に基づいて、対象薬剤の種類を判別してもよい。続いて、照合部64bは検索された基準薬剤である複数の候補の薬剤すべてを判別結果情報820として記憶部80dに記憶させ(S511)、処理は終了する。 If multiple reference drugs are found (YES in S509), the collation unit 64b determines the type of the target drug as one of multiple candidate drugs (S510). For example, if a reference drug is found in both a search using the user's adopted drug list 810 and a search using the comprehensive drug database 541, the collation unit 64b may determine the reference drug found in the search using the user's adopted drug list 810 as the type of target drug. Furthermore, a discrimination priority indicating the discrimination priority may be set for the reference drugs included in the user's adopted drug list 810 and the comprehensive drug database 541. The collation unit 64b may determine the type of target drug based on the discrimination priority. Next, the collation unit 64b stores all of the multiple candidate drugs that are found as reference drugs in the storage unit 80d as discrimination result information 820 (S511), and the processing ends.

なお、識別情報の文字列に識別不可能な文字が含まれていない場合(S502でNO)、処理は終了する。例えば、識別情報の文字列における識別不可能な文字をワイルドカードに変換する処理を行わず、実施形態1にて説明した判別処理が行われてもよい。 Note that if the string of identification information does not contain any unidentifiable characters (NO in S502), the processing ends. For example, the determination processing described in embodiment 1 may be performed without converting unidentifiable characters in the string of identification information into wildcards.

また、OCR後の識別情報の文字列に第1の数以上の文字が含まれていない場合(S503でNO)、照合部64bは対象薬剤を推定薬剤と判定し(S513)、処理は終了する。また、第2の数よりも多い識別可能な文字がOCR後の識別情報の文字列に含まれていない場合(S504でNO)、処理はS513に続く。また、検索された基準薬剤がない場合(S508でNO)に、処理はS513に続く。 If the character string of the identification information after OCR does not contain more than the first number of characters (NO in S503), the matching unit 64b determines that the target drug is a suspected drug (S513), and processing ends. If the character string of the identification information after OCR does not contain more than the second number of identifiable characters (NO in S504), processing continues to S513. If no reference drug was found (NO in S508), processing continues to S513.

また、検索された基準薬剤が複数でない(単数である)場合(S509でNO)、照合部64bは対象薬剤の種類を検索された基準薬剤に判別し(S512)、処理は終了する。 Also, if the searched reference drug is not multiple (single) (NO in S509), the matching unit 64b determines the type of the target drug as the searched reference drug (S512), and processing ends.

例えば、薬剤仕分装置1の上述の判別処理が終了した後に、操作部31を介した目視監査用の画像を表示するためのユーザ入力を操作入力部66が受信した場合は、以下の処理が行われる。表示制御部67は検索された基準薬剤が複数ある対象薬剤について警告を示す表示画像を表示部32に表示させる。当該目視監査用の画像には、複数の候補があることを示す警告、複数の候補の薬剤の薬剤データ等が含まれる。図28に示す例では、対象薬剤の候補の薬剤として採用薬品MBマスタおよび薬品MAマスタの薬剤データが表示画像に含まれることになる。 For example, after the above-mentioned discrimination process of the medicine sorting device 1 is completed, if the operation input unit 66 receives user input via the operation unit 31 to display an image for visual inspection, the following process is performed. The display control unit 67 causes the display unit 32 to display a display image indicating a warning for target drugs that have multiple searched reference drugs. The image for visual inspection includes a warning indicating that there are multiple candidates, drug data for the multiple candidate drugs, etc. In the example shown in Figure 28, the display image includes drug data from the adopted drug MB master and drug MA master as candidate drugs for the target drug.

また、ユーザは、この表示画像を確認することにより、種類を判別した薬剤の薬剤データがユーザ採用薬リスト810に含まれてない場合に、タッチパネル3の操作部31から、ユーザ採用薬リスト810に、当該薬剤データをユーザ採用薬リスト810に加える指示を入力する。操作入力部66が当該指示を受け付けると、薬剤データベース更新部74はユーザ採用薬リスト810に当該基準薬剤の薬剤データを加える。 Furthermore, by checking this display image, if the drug data for the drug whose type has been determined is not included in the user's adopted drug list 810, the user inputs an instruction from the operation unit 31 of the touch panel 3 to add the drug data to the user's adopted drug list 810. When the operation input unit 66 accepts this instruction, the drug database update unit 74 adds the drug data for the reference drug to the user's adopted drug list 810.

〔実施形態14〕
(概要)
薬剤仕分装置1は、上述したように、第1収容部11に収容された薬剤を、種類毎に仕分けることが可能である。第1収容部11に収容される薬剤としては、返品薬および持参薬が挙げられる。本実施形態では、主として、薬剤仕分装置1が持参薬を仕分けることを想定した第1収容部11Aの構成例、薬剤仕分装置1が持参薬を仕分けるときの処理例、および、薬剤仕分装置1が持参薬を仕分ける場合に表示可能な表示画像(表示画面)例について説明する。持参薬は、ある医療機関において患者に一旦処方された薬剤(採用薬)であって、その後、当該患者が入院等のために別の医療機関に持参した、当該患者が服用中の薬剤である。
[Embodiment 14]
(overview)
As described above, the medicine sorting device 1 is capable of sorting medicines stored in the first storage unit 11 by type. Medicines stored in the first storage unit 11 include returned medicines and patient-brought medicines. This embodiment mainly describes an example configuration of the first storage unit 11A assuming that the medicine sorting device 1 will sort patient-brought medicines, an example process when the medicine sorting device 1 sorts patient-brought medicines, and an example display image (display screen) that can be displayed when the medicine sorting device 1 sorts patient-brought medicines. Patient-brought medicines are medicines (adopted medicines) that were once prescribed to a patient at a medical institution, and then brought to another medical institution due to hospitalization or other reasons, and are currently being taken by the patient.

なお、本実施形態では、患者には複数日数服用分の薬剤が処方されており、1日毎に複数回の服用時間が設定されているものとする。各日の同一服用時間に服用される薬剤の種類は同一であるものとする。複数の服用日のうちの特定の1日を、「所定の服用日」と称する。所定の服用日は、例えば服用開始日であるが、それ以外の特定の1日であってもよい。 In this embodiment, the patient is prescribed medication for multiple days, with multiple dosing times set for each day. The same type of medication is taken at the same dosing time on each day. A specific day out of the multiple dosing days is referred to as a "predetermined dosing day." The specified dosing day is, for example, the start date of dosing, but it may also be any other specific day.

(持参薬の仕分けに有効な第1収容部の例)
図29は、第1収容部11Aの一例を示す図である。図29に示す第1収容部11Aは、図2に示す第1収容部11とは異なり、薬剤仕分装置1が持参薬を効率良く仕分けることを可能とする内部構造を有している。第1収容部11Aは、主として持参薬を仕分ける場合に有効に使用できるが、返品薬を仕分ける場合に使用されてもよい。
(Example of the first storage section that is effective for sorting medications brought with you)
Fig. 29 is a diagram showing an example of the first storage unit 11A. Unlike the first storage unit 11 shown in Fig. 2, the first storage unit 11A shown in Fig. 29 has an internal structure that enables the medicine sorting device 1 to efficiently sort brought-in medications. The first storage unit 11A can be effectively used mainly when sorting brought-in medications, but may also be used when sorting returned medications.

図29の例では、第1収容部11Aは、容積が略同一の4つの収容部111~114を有する。4つの収容部111~114は、それぞれ更に4分割されている。収容部111は、3つの小収容部111a~111cおよび1つの中収容部111dを有する。収容部112は、3つの小収容部112a~112cおよび1つの中収容部112dを有する。収容部113は、3つの小収容部113a~113cおよび1つの中収容部113dを有する。収容部114は、3つの小収容部114a~114cおよび1つの中収容部114dを有する。 In the example of Figure 29, the first storage section 11A has four storage sections 111-114 with approximately the same volume. Each of the four storage sections 111-114 is further divided into four sections. Storage section 111 has three small storage sections 111a-111c and one medium storage section 111d. Storage section 112 has three small storage sections 112a-112c and one medium storage section 112d. Storage section 113 has three small storage sections 113a-113c and one medium storage section 113d. Storage section 114 has three small storage sections 114a-114c and one medium storage section 114d.

第1収容部11Aに持参薬を収容する場合、ユーザは持参薬を第1持参薬および第2持参薬に分類して収容する。第1持参薬とは、所定の服用日(所定の服用時期)における複数の服用時間のそれぞれにおいて、ある患者PAが服用するものとしてある医療機関から患者PAに処方された薬剤であって、その後に当該医療機関とは別の医療機関に持参された持参薬である。第2持参薬とは、ある医療機関から患者PAに処方された薬剤であって、その後に当該医療機関とは別の医療機関に持参された持参薬のうち、第1持参薬以外の残余の持参薬である。収容部111において、小収容部111a~111cのそれぞれは、患者PAの第1持参薬を収容するものとして機能する。中収容部111dは、患者PAの第2持参薬を収容するものとして機能する。例えば、持参薬が各日において3回服用する薬剤として処方されている場合、初日に服用する3回分の薬剤が第1持参薬となり、2日目以降に服用する薬剤が第2持参薬となる。 When storing patient-brought medications in the first storage unit 11A, the user classifies the medications into first and second medications. A first medication is a medication prescribed to a patient PA by a medical institution for administration at each of multiple administration times on a specified administration date (specified administration time), and subsequently brought to a different medical institution. A second medication is a medication prescribed to a patient PA by a medical institution, and subsequently brought to a different medical institution, the remaining medications other than the first medication. In the storage unit 111, each of the small storage units 111a to 111c functions to store the patient PA's first medication. The medium storage unit 111d functions to store the patient PA's second medication. For example, if the patient PA is prescribed to take three doses each day, the three doses taken on the first day are the first medications, and the medications taken on the second day and thereafter are the second medications.

小収容部111a~111cに収容される第1持参薬の数は、中収容部111dに収容される第2持参薬の数以下となるため、小収容部111a~111cの容積は、中収容部111dの容積に比べ小さい。小収容部および中収容部の数、並びにその容積を鑑み、図29の例では、収容部111の外側の領域に、周方向に沿って小収容部111a~111cが配置されており、収容部111の残部領域(内側の領域)に中収容部111dが配置されている。収容部112~114についても、収容部111と同様の機能および構成を有する。 Since the number of first brought-in medications stored in small storage sections 111a-111c is equal to or less than the number of second brought-in medications stored in medium storage section 111d, the volume of small storage sections 111a-111c is smaller than the volume of medium storage section 111d. Taking into account the number and volume of small and medium storage sections, in the example of Figure 29, small storage sections 111a-111c are arranged circumferentially in the outer region of storage section 111, and medium storage section 111d is arranged in the remaining region (inner region) of storage section 111. Storage sections 112-114 have the same function and configuration as storage section 111.

収容部111~114にはそれぞれ、例えば、互いに異なる患者PA~PDの第1持参薬および第2持参薬が収容されてよい。この場合、第1収容部11Aには、一度に最大4人分まで持参薬を収容できる。但しこの場合、所定の服用日における服用時間が3回以下(例:朝、昼、晩の少なくとも何れか)に設定された患者PA~PDの持参薬が、収容部111~114のそれぞれに収容されることとなる。ある患者の所定の服用日における服用時間が4回以上に設定されている場合には、当該患者の持参薬の収容箇所として、収容部111~114のうち、2以上の収容部が用いられる。なお、第2持参薬については、2以上の収容部の中収容部のうち、少なくとも1つの中収容部が用いられればよい。上記服用時間が4回以上に設定されている場合、第1収容部11Aには、一度に最大3人分まで持参薬を収容できる。 Storage units 111-114 may each store, for example, first and second medications brought by different patients PA-PD. In this case, first storage unit 11A can store up to four people's worth of medications at one time. However, in this case, the medications brought by patients PA-PD whose dosing times on a given dosing day are set to three or fewer times (e.g., at least one of morning, afternoon, and evening) will be stored in storage units 111-114, respectively. If a patient's dosing time on a given dosing day is set to four or more times, two or more of storage units 111-114 will be used as storage locations for that patient's medications. Note that for the second medication, at least one middle storage unit out of the two or more middle storage units will be used. If the dosing time is set to four or more times, first storage unit 11A can store up to three people's worth of medications at one time.

例えば、ある患者の所定の服用日における服用時間が4回~6回に設定されている場合には、当該患者の持参薬の収容箇所として、2つの収容部(例:収容部111および112)が用いられる。例えば、当該患者の所定の服用日における服用時間が6回に設定されている場合、第1持参薬の収容箇所として、小収容部111a~111cおよび112a~112cが用いられる。一方、第2持参薬の収容箇所としては、中収容部111dおよび/または112dが用いられる。 For example, if a patient's medication schedule on a given medication day is set to four to six times, two storage sections (e.g., storage sections 111 and 112) are used to store the patient's medications. For example, if the patient's medication schedule on a given medication day is set to six times, small storage sections 111a-111c and 112a-112c are used to store the patient's first medication. Meanwhile, medium storage sections 111d and/or 112d are used to store the patient's second medication.

また、収容部111~114のそれぞれに、インジケータ111e~114eが配されている。インジケータ111e~114eは、収容部111~114のそれぞれを識別するための標識として機能する。インジケータ111e~114eは、互いに異なる色を有する。具体的には、インジケータ111e~114eは、それぞれの色が付された領域であってよい。例えばインジケータ111eの色を赤、インジケータ112eの色を青、インジケータ113eの色を黄、インジケータ114eの色を緑とすることができるがこれに限らない。また、インジケータ111e~114eは、互いに区別可能であれば、必ずしも互いに異なる色を有する必要はなく、例えば互いに異なる形状または模様を有していてもよい。 Indicators 111e to 114e are also provided in storage sections 111 to 114, respectively. Indicators 111e to 114e function as markers for identifying storage sections 111 to 114. Indicators 111e to 114e have different colors. Specifically, indicators 111e to 114e may be areas each colored. For example, indicator 111e may be red, indicator 112e may be blue, indicator 113e may be yellow, and indicator 114e may be green, but this is not limited to this. In addition, indicators 111e to 114e do not necessarily have to have different colors as long as they are distinguishable from one another; for example, they may have different shapes or patterns.

インジケータ111eは、小収容部111a~111cと中収容部111dとの境界部分の2箇所に配される。インジケータ112eは、小収容部112a~112cと中収容部112dとの境界部分の2箇所に配される。インジケータ113eは、小収容部113a~113cと中収容部113dとの境界部分の2箇所に配される。インジケータ114eは、小収容部114a~114cと中収容部114dとの境界部分の2箇所に配される。ただし、インジケータ111e~114eの位置は、収容部111~114を識別する上で不都合がなければ、上記の例に限らない。 Indicator 111e is located in two positions at the boundary between small storage sections 111a-111c and medium storage section 111d. Indicator 112e is located in two positions at the boundary between small storage sections 112a-112c and medium storage section 112d. Indicator 113e is located in two positions at the boundary between small storage sections 113a-113c and medium storage section 113d. Indicator 114e is located in two positions at the boundary between small storage sections 114a-114c and medium storage section 114d. However, the positions of indicators 111e-114e are not limited to the above example, as long as there is no inconvenience in identifying storage sections 111-114.

(持参薬の仕分処理例)
本実施形態の薬剤仕分装置1では、返品薬を自動で仕分ける通常仕分けモード(返品薬仕分モード)と、持参薬を自動で仕分ける持参薬仕分けモードと、を設定可能である。
(Example of sorting and processing of medications brought in by the patient)
The medicine sorting device 1 of this embodiment can be set to a normal sorting mode (returned medicine sorting mode) in which returned medicines are automatically sorted, and a brought-in medicine sorting mode in which brought-in medicines are automatically sorted.

通常仕分けモードに設定された場合の薬剤仕分装置1の処理および動作については上述したとおりである。すなわち、通常仕分モードでは、薬剤仕分装置1は、第1収容部11Aに収容された複数種類の薬剤を1つずつ取り出し、取り出した薬剤の画像に基づき当該薬剤の種類を判別する。薬剤仕分装置1は、その判別結果に基づき、第2収容部14、待機トレイ15、及び回収トレイ16の何れかに薬剤を搬送する。通常仕分モードの場合、ユーザは、仕分け対象の薬剤を任意の小収容部および/または中収容部に収容してよい。 The processing and operation of the medicine sorting device 1 when set to normal sorting mode is as described above. That is, in normal sorting mode, the medicine sorting device 1 removes multiple types of medicine stored in the first storage unit 11A one by one and determines the type of medicine based on an image of the removed medicine. Based on the determination result, the medicine sorting device 1 transports the medicine to either the second storage unit 14, the waiting tray 15, or the collection tray 16. In normal sorting mode, the user may store the medicines to be sorted in any of the small and/or medium storage units.

持参薬仕分けモードに設定された場合、ユーザは、上述したとおり、第1持参薬および第2持参薬を分類して小収容部および/または中収容部に収容する。制御部60aは、第2持参薬よりも先に第1持参薬の仕分けを行う。このとき、収容部111~114から持参薬を取出す順番と、仕分カップ141に持参薬を収容する順番と、は予め設定されていてよい。収容部111~114から持参薬を取出す順番は、例えば収容部111、112、113および114の順に設定されている。また、仕分カップ141に持参薬を収容する順番は、例えば仕分カップ141が第1行~第7行という行およびA列~F列という列を有して配置されている場合、第1行のA列~F列、第2行のA列~F列、・・・といった順に設定されている。例えば、収容部111に収容された患者PAの持参薬が5種類、収容部112に収容された患者PBの持参薬が5種類である場合を考える。この場合、制御部60aは、患者PAの持参薬を、第1行のA列~E列に配置された仕分カップ141に収容した後、患者PBの持参薬を、第1行のF列、第2行のA列~D列に収容する。すなわち、制御部60aは、患者ごとに、かつ薬剤の種類ごとに、仕分カップ141に予め設定された順番に沿って持参薬を収容する。 When the user selects the medication sorting mode, the user sorts the first and second medications and stores them in the small and/or medium storage sections, as described above. The control unit 60a sorts the first medication before the second medication. The order in which medications are removed from storage sections 111-114 and the order in which medications are stored in the sorting cup 141 may be preset. For example, the order in which medications are removed from storage sections 111-114 is set to storage sections 111, 112, 113, and 114. Furthermore, the order in which medications are stored in the sorting cup 141 is set to, for example, columns A to F in the first row, columns A to F in the second row, etc., if the sorting cup 141 is arranged in rows 1 to 7 and columns A to F. For example, consider a case where patient PA has five types of medications stored in storage unit 111 and patient PB has five types of medications stored in storage unit 112. In this case, the control unit 60a stores patient PA's medications in sorting cups 141 arranged in columns A to E of the first row, and then stores patient PB's medications in column F of the first row and columns A to D of the second row. In other words, the control unit 60a stores patient PA's medications in the sorting cups 141 in a predetermined order for each patient and each type of medication.

また、本実施形態の薬剤仕分装置1における判別部64は、例えば以下の2つの方法の何れかにより、第2持参薬の種類を判別するための参照データを決定する機能を有する。判別部64は、決定した参照データを記憶部80に記憶する。 In addition, the discrimination unit 64 in the medicine sorting device 1 of this embodiment has the function of determining reference data for determining the type of second medication brought in, for example, by one of the following two methods. The discrimination unit 64 stores the determined reference data in the memory unit 80.

(方法1)判別部64は、第1持参薬を撮像した画像から抽出した第1持参薬の少なくとも1つの特徴(例:上述した大きさ、形状、又は代表色)に基づく情報を示す参照データを決定する。判別部64は、例えば、照合部64bによる、第1持参薬の少なくとも1つの特徴と薬剤データベースとの照合により取得した、当該第1持参薬の薬剤データとして管理されている複数の特徴を、参照データとして決定する。この場合、照合部64bは、上記第1持参薬の複数の特徴を、第2持参薬の少なくとも1つの特徴の対比対象とすることができる。 (Method 1) The discrimination unit 64 determines reference data indicating information based on at least one characteristic of the first brought-over drug (e.g., the size, shape, or representative color described above) extracted from an image of the first brought-over drug. The discrimination unit 64 determines, as reference data, multiple characteristics managed as drug data for the first brought-over drug, obtained by the comparison unit 64b comparing at least one characteristic of the first brought-over drug with a drug database. In this case, the comparison unit 64b can compare the multiple characteristics of the first brought-over drug with at least one characteristic of the second brought-over drug.

(方法2)判別部64は、第1持参薬の少なくとも1つの特徴を、参照データとして決定する。判別部64は、例えば、第1持参薬の大きさ、形状および代表色を、参照データとして決定する。 (Method 2) The discrimination unit 64 determines at least one characteristic of the first brought-on medication as reference data. For example, the discrimination unit 64 determines the size, shape, and representative color of the first brought-on medication as reference data.

制御部60aは、第1持参薬の仕分けが終了した後、第2持参薬の仕分けを行う。このとき、制御部60aは、参照データを使用して、第1持参薬の特徴に基づき第2持参薬を仕分けることができればよい。そのため、第1持参薬の種類が精度良く判別又は絞込まれてなくても、同一の種類とみなされる第1持参薬および第2持参薬が同一の仕分カップ141に収容されればよい。上記方法1では、第1持参薬の特徴を薬剤データベースと照合することにより、第1持参薬の種類を精度良く判別又は絞込めるが、薬剤データベースで管理する薬剤データ数は膨大であるため、その分時間を要する。上記方法2により判別部64が第1持参薬の特徴を参照データとして決定することにより、判別部64の処理時間(参照データの作成時間)を短縮できる。 After sorting the first brought-by medication, the control unit 60a sorts the second brought-by medication. At this time, the control unit 60a is only required to use the reference data to sort the second brought-by medication based on the characteristics of the first brought-by medication. Therefore, even if the type of the first brought-by medication is not accurately determined or narrowed down, it is sufficient that the first brought-by medication and the second brought-by medication that are considered to be the same type are placed in the same sorting cup 141. In the above method 1, the type of the first brought-by medication can be accurately determined or narrowed down by comparing the characteristics of the first brought-by medication with the medication database, but the amount of medication data managed in the medication database is enormous, so this takes time. In the above method 2, the discrimination unit 64 determines the characteristics of the first brought-by medication as reference data, thereby shortening the processing time of the discrimination unit 64 (the time required to create the reference data).

照合部64bは、同一の小収容部に複数の第1持参薬が含まれる場合、個々の第1持参薬の参照データを照合して、当該参照データ同士が同一とみなせるか否かを判定する。照合部64bは、照合対象となる2つの第1持参薬の少なくとも1つの特徴の一致度が所定値以上である場合に、上記参照データ同士が同一とみなしてよい。一致度が所定値以上であるか否かを判定する特徴の数、および所定値は、実験等により設定されてよい。また、照合部64bは、第2持参薬の少なくとも1つの特徴と参照データとの対比においても同様に処理してよい。 When the same small container contains multiple first brought-in medications, the matching unit 64b compares the reference data for each first brought-in medication to determine whether the reference data can be considered identical. The matching unit 64b may consider the reference data to be identical if the degree of match between at least one feature of the two first brought-in medications being compared is equal to or greater than a predetermined value. The number of features used to determine whether the degree of match is equal to or greater than a predetermined value, and the predetermined value, may be set through experiments, etc. The matching unit 64b may also perform similar processing when comparing at least one feature of the second brought-in medication with the reference data.

また、照合部64bは、第2持参薬を撮像した画像から抽出した第2持参薬の少なくとも1つの特徴を、判別部64が決定した参照データと照合する第1照合部として機能する。照合部64bは、少なくとも第2持参薬については、第2持参薬の特徴を薬剤データベースと照合しない。また、参照データは、第1持参薬の数しか記憶部80に記憶されていない。そのため、第2持参薬の特徴を、薬剤データベースで管理される全ての薬剤データと照合する場合に比べ、その照合時間を短縮できる。また、参照データに含まれる第1持参薬の特徴を絞ることにより(例:第1持参薬の大きさ、形状および代表色)、上記照合時間を更に短縮できる。 The matching unit 64b also functions as a first matching unit that matches at least one feature of the second brought-over drug extracted from an image of the second brought-over drug with the reference data determined by the discrimination unit 64. The matching unit 64b does not match the features of the second brought-over drug with the drug database, at least for the second brought-over drug. Furthermore, only the number of first brought-over drugs is stored in the memory unit 80 as reference data. Therefore, the matching time can be reduced compared to matching the features of the second brought-over drug with all drug data managed in the drug database. Furthermore, by narrowing down the features of the first brought-over drug included in the reference data (e.g., the size, shape, and representative color of the first brought-over drug), the matching time can be further reduced.

また、照合部64bは、上記方法1により判別部64が参照データを決定する場合、第1持参薬の少なくとも1つの特徴を薬剤データベースと照合することにより、第1持参薬の種類を絞込む第2照合部として機能する。この場合、照合部64bは、第1持参薬の種類を精度良く判別又は絞込むことができ、ひいては第2持参薬の種類を精度良く判別又は絞込むことができる。 Furthermore, when the discrimination unit 64 determines reference data using Method 1 above, the collation unit 64b functions as a second collation unit that narrows down the type of the first brought-on medication by comparing at least one characteristic of the first brought-on medication with the medication database. In this case, the collation unit 64b can accurately determine or narrow down the type of the first brought-on medication, and ultimately accurately determine or narrow down the type of the second brought-on medication.

なお、照合部64bは、上記第1照合部および上記第2照合部の両方の機能を有するものとして説明するが、制御部60aは、上記第1照合部及および上記第2照合部を別機能として備えていても構わない。 Note that while the matching unit 64b is described as having the functions of both the first matching unit and the second matching unit, the control unit 60a may also have the first matching unit and the second matching unit as separate functions.

(画面の説明)
図30は、薬剤の仕分結果を表示可能な初期画像(初期画面)の一例を示す図である。表示制御部67は、通常の状態では初期画像を表示部32に表示する。図30に示す初期画像には、薬剤仕分装置1の動作に関するメニューを表示するためのボタンB11が含まれる。ユーザがボタンB11を操作すると、表示制御部67は、薬剤仕分装置1の仕分けモードを切り替えるためのサブメニューを表示するためのボタンB12を含むメニューを表示する。ユーザがボタンB12を操作すると、表示制御部67は、仕分けモードを通常仕分けモードに設定するためのボタンB13と、仕分けモードを持参薬仕分けモードに設定するためのボタンB14と、を含むサブメニューを表示する。ユーザがボタンB14を操作すると、制御部60aは、仕分けモードを持参薬仕分けモードに設定する。
(Screen description)
FIG. 30 is a diagram showing an example of an initial image (initial screen) on which the results of drug sorting can be displayed. The display control unit 67 normally displays the initial image on the display unit 32. The initial image shown in FIG. 30 includes a button B11 for displaying a menu related to the operation of the drug sorting device 1. When the user operates button B11, the display control unit 67 displays a menu including a button B12 for displaying a submenu for switching the sorting mode of the drug sorting device 1. When the user operates button B12, the display control unit 67 displays a submenu including a button B13 for setting the sorting mode to the normal sorting mode and a button B14 for setting the sorting mode to the brought-drug sorting mode. When the user operates button B14, the control unit 60a sets the sorting mode to the brought-drug sorting mode.

図31は、持参薬仕分けモードに設定されたときに、ユーザが第1収容部11Aへの持参薬の収容方法を設定するための設定画像(設定画面)の一例を示す図である。表示制御部67は、制御部60aが仕分けモードを持参薬仕分けモードに設定した場合に、表示部32に表示する画像を初期画像から設定画像へ変更する。図31に示す設定画像は、患者情報の入力を受付ける入力領域PIRを含んでいる。ユーザは、入力領域PIRにおいて、患者名、性別、年齢、および診療科といった患者情報を入力する。制御部60aは、入力された患者情報を記憶部80に記憶する。 Figure 31 shows an example of a setting image (setting screen) that allows the user to set the storage method for brought-medications in the first storage unit 11A when the brought-medication sorting mode is set. When the control unit 60a sets the sorting mode to the brought-medication sorting mode, the display control unit 67 changes the image displayed on the display unit 32 from the initial image to the setting image. The setting image shown in Figure 31 includes an input area PIR that accepts input of patient information. The user inputs patient information such as the patient's name, gender, age, and medical department in the input area PIR. The control unit 60a stores the input patient information in the memory unit 80.

図31に示す設定画像は、持参薬を収容する収容部を選択するためのボタンB21をさらに含む。ボタンB21は、インジケータ111e~114eのそれぞれの色に対応する領域を含む。ユーザは、ボタンB21を操作することで、操作した領域の色に対応するインジケータを有する収容部を、持参薬を収容する収容部として選択できる。 The settings image shown in FIG. 31 further includes a button B21 for selecting a storage unit for storing brought-in medications. Button B21 includes areas corresponding to the colors of indicators 111e to 114e. By operating button B21, the user can select a storage unit having an indicator corresponding to the color of the operated area as the storage unit for storing brought-in medications.

図31に示す設定画像は、持参薬を収容する別の収容部を選択するためのボタンB22をさらに含む。上述したとおり、ある患者の所定の服用日における服用時間が4回以上に設定されている場合には、当該患者の持参薬の収容箇所として、収容部111~114のうち、2以上の収容部が用いられる。ユーザは、ボタンB22を操作することで、操作した領域の色に対応するインジケータを有する収容部を、持参薬を収容する2つめの収容部として選択できる。 The settings image shown in FIG. 31 further includes a button B22 for selecting another storage section for storing patient-brought medications. As described above, if a patient's medication schedule is set to four or more times on a given medication date, two or more of storage sections 111-114 will be used as storage locations for the patient's medications. By operating button B22, the user can select the storage section with an indicator corresponding to the color of the area operated on as the second storage section for storing patient-brought medications.

ボタンB22は、ボタンB21と同様の、インジケータ111e~114eのそれぞれの色に対応する領域に加えて、収容部の選択をクリアする領域を含む。2つめの収容部の選択が不要である場合には、ユーザは、ボタンB22の、持参薬を収容する収容部をクリアする領域を操作すればよい。 Button B22, like button B21, includes areas corresponding to the colors of indicators 111e-114e, as well as an area for clearing the selected storage unit. If selecting a second storage unit is not necessary, the user can simply operate the area of button B22 that clears the storage unit for medications brought with them.

以下では、ボタンB21により収容部111が選択され、ボタンB22により収容部112が選択されているものとして説明する。 In the following description, it is assumed that storage section 111 is selected with button B21 and storage section 112 is selected with button B22.

図31に示す設定画像は、小収容部111a~111cおよび112a~112cのそれぞれに対応するボタンB3をさらに含む。ボタンB3は、小収容部111a~111cおよび112a~112cのそれぞれに収容する持参薬の用法をユーザが設定するためのボタンである。いずれかのボタンB3を操作すると、表示制御部67は、当該ボタンB3に対応する小収容部に収容する持参薬の用法を選択するサブメニュー(不図示)を表示する。サブメニューでは、ユーザは、例えば「朝」、「昼」、「夜」、「毎」、「起床時」、「寝る前」、「食前」、「食間」、「食後」、「食直前」、および「食直後」といった用法を選択可能である。サブメニューに適切な用法が存在しない場合(例えば「痛い時」)、ユーザは、用法をテキストで直接入力することもできる。ただし、制御部60aは、サブメニュー表示を行わず、全ての用法についてテキストでの入力を受付けてもよい。 The setting image shown in FIG. 31 further includes buttons B3 corresponding to each of the small containers 111a-111c and 112a-112c. Button B3 allows the user to set the usage of the medications stored in each of the small containers 111a-111c and 112a-112c. When any of the buttons B3 is operated, the display control unit 67 displays a submenu (not shown) for selecting the usage of the medication stored in the small container corresponding to that button B3. In the submenu, the user can select usage such as "Morning," "Daytime," "Evening," "Every," "Upon waking up," "Before going to bed," "Before meals," "Between meals," "After meals," "Just before meals," and "Just after meals." If there is no appropriate usage in the submenu (for example, "When in pain"), the user can directly input the usage in text. However, the control unit 60a may not display the submenu and instead accept text input for all usage.

図31に示す設定画像は、収容部111を示す画像IA、および収容部112をしめす画像IBをさらに含んでいる。換言すれば、表示制御部67は、ユーザがボタンB21およびB22を操作して選択した収容部111および112のそれぞれに対応する画像IAおよびIBを、設定画像に含める。画像IAは、インジケータ111eに対応する画像IAeを含んでいる。画像IBは、インジケータ112eに対応する画像IBeを含んでいる。画像IAeおよびIBeを参照することで、ユーザは、選択した収容部が収容部111および112であることを確認できる。 The setting image shown in FIG. 31 further includes image IA, which indicates storage section 111, and image IB, which indicates storage section 112. In other words, the display control unit 67 includes images IA and IB, which correspond to storage sections 111 and 112, respectively, selected by the user by operating buttons B21 and B22, in the setting image. Image IA includes image IAe, which corresponds to indicator 111e. Image IB includes image IBe, which corresponds to indicator 112e. By referring to images IAe and IBe, the user can confirm that the selected storage sections are storage sections 111 and 112.

画像IAは、収容部111の小収容部111a~111cおよび中収容部111dのそれぞれに対応する画像IAa~IAdを含む。また、画像IAは、小収容部111a~111cのそれぞれに収容されるべき持参薬の用法を示す画像IAfをさらに含む。同様に、画像IBは、収容部112の小収容部112a~112cおよび中収容部112dのそれぞれに対応する画像IBa~IBdを含む。また、画像IBは、小収容部112a~112cのそれぞれに収容されるべき持参薬の用法を示す画像IBfをさらに含む。 Image IA includes images IAa to IAd corresponding to the small storage sections 111a to 111c and the medium storage section 111d of storage section 111, respectively. Image IA also includes image IAf showing the use of medications brought by the patient to be stored in each of the small storage sections 111a to 111c. Similarly, image IB includes images IBa to IBd corresponding to the small storage sections 112a to 112c and the medium storage section 112d of storage section 112, respectively. Image IB also includes image IBf showing the use of medications brought by the patient to be stored in each of the small storage sections 112a to 112c.

表示制御部67は、画像IAfおよびIBfに、ユーザがボタンB3を操作して選択した、小収容部111a~111cおよび112a~112cのそれぞれに収容される持参薬の用法を反映させる。ユーザは、画像IAfおよびIBfを参照して、小収容部111a~111cおよび112a~112cに、第1持参薬を投入する。また、ユーザは、中収容部111dおよび112dに第2持参薬を投入する。 The display control unit 67 causes images IAf and IBf to reflect the usage of the medications stored in small storage compartments 111a-111c and 112a-112c, respectively, selected by the user using button B3. The user refers to images IAf and IBf and places the first medication into small storage compartments 111a-111c and 112a-112c. The user also places the second medication into medium storage compartments 111d and 112d.

図31に示す設定画像は、持参薬を持参した患者についての患者情報等を追加するためのボタンB41をさらに含む。ボタンB41を操作することで、新たな患者の患者情報等を設定する設定画像を表示するためのタブがボタンB41の隣に追加される。ユーザは、タブを選択することで、患者ごとに、患者情報を登録するとともに、当該患者が持参した持参薬をいずれの収容部に収容するか、およびいずれの小収容部にいずれの用法の第1持参薬を収容するかを設定できる。 The settings image shown in Figure 31 further includes a button B41 for adding patient information, etc. for patients who bring their own medications. By operating button B41, a tab for displaying a settings image for setting patient information, etc. for a new patient is added next to button B41. By selecting a tab, the user can register patient information for each patient and set which storage section will store the patient's own medications, and which small storage section will store the first medication with which usage.

図31に示す設定画像は、患者情報等を削除するためのボタンB42をさらに含む。ある患者の持参薬の仕分けが不要になった場合には、ユーザはボタンB42を操作することで当該患者の患者情報等を削除する。制御部60aは、ユーザによるボタンB42の操作を受け付けた場合に、対応する患者の患者情報等を記憶部80から削除する。 The settings image shown in FIG. 31 further includes a button B42 for deleting patient information, etc. When sorting of a patient's medications is no longer necessary, the user operates button B42 to delete the patient information, etc. for that patient. When the control unit 60a receives a user's operation of button B42, it deletes the patient information, etc. for the corresponding patient from the memory unit 80.

図31に示す設定画像は、持参薬の仕分けを開始するためのボタンB5をさらに含む。ユーザは、第1収容部11Aへの持参薬の投入が完了した後、ボタンB5を操作して薬剤仕分装置1に持参薬の仕分けを開始させる。なお、図30に示すように、ボタンB5については初期画像にも含まれている。 The setting image shown in Figure 31 further includes a button B5 for starting the sorting of medications brought by the user. After the user has finished putting the medications brought by the user into the first storage section 11A, the user operates button B5 to cause the medication sorting device 1 to start sorting the medications brought by the user. Note that, as shown in Figure 30, button B5 is also included in the initial image.

一方、図30に示した設定画像においてユーザがボタンB13を操作すると、制御部60aは、仕分モードを通常仕分けモードに設定する。上述したとおり、通常仕分けモードにおいては、患者ごとに第1持参薬および第2持参薬を分類せず、任意の小収容部および/または中収容部に持参薬または返品薬を収容してよい。この場合には、表示制御部67は、表示部32に表示する画像を初期画像から設定画像へ変更しない。ユーザは、仕分けの対象とする薬剤を第1収容部11へ投入した後、初期画像に含まれているボタンB5を操作する。制御部60aは、ボタンB5が操作されると仕分けを開始する。 On the other hand, when the user operates button B13 in the setting image shown in Figure 30, the control unit 60a sets the sorting mode to normal sorting mode. As described above, in normal sorting mode, first and second brought-by medications are not sorted for each patient, and brought-by medications or returned medications may be stored in any small and/or medium storage unit. In this case, the display control unit 67 does not change the image displayed on the display unit 32 from the initial image to the setting image. After the user places the medications to be sorted into the first storage unit 11, the user operates button B5 included in the initial image. The control unit 60a starts sorting when button B5 is operated.

図32は、持参薬仕分けモードに設定されたときの、持参薬の仕分状況を表示するための仕分画像の一例を示す図である。表示制御部67は、制御部60aによる持参薬の仕分けの開始後、表示部32に表示する画像を初期画像から仕分画像へ変更する。表示制御部67は、制御部60aによる持参薬の仕分けの進行に応じて、仕分画像を更新する。図32に示す仕分画像は、持参薬の仕分状況を示す画像ICを含む。画像ICは、第2収容部14の仕分カップ141に対応する領域ごとに、収容している持参薬の数を示す画像を含む。 Figure 32 shows an example of a sorting image for displaying the sorting status of brought-by medications when the brought-by medication sorting mode is set. After the control unit 60a starts sorting the brought-by medications, the display control unit 67 changes the image displayed on the display unit 32 from the initial image to a sorting image. The display control unit 67 updates the sorting image according to the progress of the control unit 60a's sorting of the brought-by medications. The sorting image shown in Figure 32 includes an image IC showing the sorting status of the brought-by medications. The image IC includes an image showing the number of brought-by medications contained in each area corresponding to the sorting cups 141 of the second storage unit 14.

表示制御部67は、仕分カップ141に対応する領域の色を、当該仕分カップ141に仕分けられた持参薬が収容されていた収容部のインジケータの色に対応させる。図32に示した例では、表示制御部67は、第1行のA~D列の色を収容部111のインジケータ111eに対応させている。また、表示制御部67は、第1行のEおよびF列の色を収容部112のインジケータ112eに対応させている。また、表示制御部67は、第2行のC~E列の色を収容部113のインジケータ113eに対応させている。また、表示制御部67は、第2行のF列および第3行のA列を収容部114のインジケータ114eに対応させている。 The display control unit 67 corresponds the color of the area corresponding to the sorting cup 141 to the color of the indicator of the storage unit in which the patient's own medications sorted into that sorting cup 141 were stored. In the example shown in Figure 32, the display control unit 67 corresponds the colors of columns A to D in the first row to indicator 111e of storage unit 111. The display control unit 67 also corresponds the colors of columns E and F in the first row to indicator 112e of storage unit 112. The display control unit 67 also corresponds the colors of columns C to E in the second row to indicator 113e of storage unit 113. The display control unit 67 also corresponds column F in the second row and column A in the third row to indicator 114e of storage unit 114.

また、画像ICは、第2収容部14の仕分カップ141ごとに、収容している持参薬についての目視監査が完了しているか否かを示す画像を含む。図32に示した例では、いずれの仕分カップ141においても目視監査が完了していない。このため、表示制御部67は、それぞれの仕分カップ141に対応する領域に「目視未」の文字列を表示している。 The image IC also includes an image indicating whether a visual inspection of the medications stored in each sorting cup 141 in the second storage section 14 has been completed. In the example shown in Figure 32, a visual inspection has not been completed for any of the sorting cups 141. Therefore, the display control unit 67 displays the text "Not visually inspected" in the area corresponding to each sorting cup 141.

画像ICは、第2収容部14の仕分カップ141ごとに、収容している持参薬の種類を仕分の時点で判別できた場合には、当該種類を示す画像を含む。図32に示した例では、表示制御部67は、第1行のA列およびC列、第2行のE列、並びに第3行のA列において、当該種類を、上述した「目視未」の文字列の下側に、複数の「*」で示している。また、画像ICは、第2収容部14の仕分カップ141ごとに、収容している持参薬の種類を仕分の時点で判別できなかった場合には、当該仕分カップ141に収容されている持参薬の種類が未判別な仮仕分けの状態であることを示す画像を含む。図32に示した例では、表示制御部67は、種類未判別の持参薬を収容する仕分カップ141に対応する領域において、種類を示す文字列の代わりに、「仮仕分け」を表示している。仮仕分けの状態の持参薬の種類については、ユーザが目視監査で判別して薬剤仕分装置1に当該種類を入力することができる。 When the type of medication contained in each sorting cup 141 of the second storage unit 14 can be determined at the time of sorting, the image IC includes an image indicating the type. In the example shown in FIG. 32, the display control unit 67 indicates the type with multiple "*"s below the string "not visually inspected" in columns A and C of the first row, column E of the second row, and column A of the third row. Furthermore, when the type of medication contained in each sorting cup 141 of the second storage unit 14 cannot be determined at the time of sorting, the image IC includes an image indicating that the type of medication contained in that sorting cup 141 is in a provisionally sorted state, with the type undetermined. In the example shown in FIG. 32, the display control unit 67 displays "provisionally sorted" instead of a string indicating the type in the area corresponding to the sorting cup 141 containing undetermined medications. The user can visually inspect the type of medication in the provisionally sorted state and input the type into the medication sorting device 1.

図32に示す仕分画像は、仕分けられた持参薬の分包を開始するためのボタンB6をさらに含む。ユーザは、持参薬の仕分けおよび目視監査が完了した後、ボタンB6を操作して薬剤仕分装置1に持参薬の分包を開始させる。ユーザがボタンB6を操作すると、印刷出力制御部69は、分包する持参薬に関する薬剤データを表わすジャーナルを印字するように印刷出力部4を制御する。また、分包制御部71は、各仕分カップ141に仕分けられた持参薬を分包するように分包機構6を制御する。 The sorting image shown in Figure 32 further includes a button B6 for starting packaging of the sorted brought-by medications. After the user has completed sorting and visually inspecting the brought-by medications, they operate button B6 to cause the medication sorting device 1 to start packaging the brought-by medications. When the user operates button B6, the print output control unit 69 controls the print output unit 4 to print a journal showing medication data related to the brought-by medications to be packaged. The packaging control unit 71 also controls the packaging mechanism 6 to package the brought-by medications sorted into each sorting cup 141.

以上のとおり、薬剤仕分装置1においては、表示制御部67が表示部32に表示する画像を参照して、持参薬を投入すべき収容部を容易に把握できる。したがって、誤った収容部に薬剤を投入する可能性を低減できる。また、薬剤仕分装置1により薬剤の仕分けおよび分包を行うことで、人件費を低減し、経済生産性を向上させることができる。これにより、持続可能な開発目標(SDGs)の達成に貢献できる。 As described above, in the medicine sorting device 1, the display control unit 67 can easily identify the storage unit into which the user should place their own medication by referring to the image displayed on the display unit 32. This reduces the possibility of placing medication in the wrong storage unit. Furthermore, by sorting and packaging medications using the medicine sorting device 1, labor costs can be reduced and economic productivity can be improved. This can contribute to achieving the Sustainable Development Goals (SDGs).

〔ソフトウェアによる実現例〕
薬剤仕分装置1、情報処理装置200及びデータ管理装置500は、各機能を実現するソフトウェアであるプログラムの命令を実行するコンピュータを備えている。このコンピュータは、例えば1つ以上のプロセッサを備えていると共に、上記プログラムを記憶したコンピュータ読み取り可能な記録媒体を備えている。そして、上記コンピュータにおいて、上記プロセッサが上記プログラムを上記記録媒体から読み取って実行することにより、本発明の目的が達成される。上記プロセッサとしては、例えばCPU(Central Processing Unit)を用いることができる。上記記録媒体としては、「一時的でない有形の媒体」、例えば、ROM(Read Only Memory)等の他、テープ、ディスク、カード、半導体メモリ、プログラマブルな論理回路などを用いることができる。また、上記プログラムを展開するRAM(Random Access Memory)などをさらに備えていてもよい。また、上記プログラムは、該プログラムを伝送可能な任意の伝送媒体(通信ネットワークや放送波等)を介して上記コンピュータに供給されてもよい。なお、本発明の一態様は、上記プログラムが電子的な伝送によって具現化された、搬送波に埋め込まれたデータ信号の形態でも実現され得る。
[Software implementation example]
The drug sorting device 1, the information processing device 200, and the data management device 500 each include a computer that executes instructions from a software program that realizes each function. This computer includes, for example, one or more processors and a computer-readable recording medium storing the program. The object of the present invention is achieved by the computer having the processor read and execute the program from the recording medium. The processor may be, for example, a central processing unit (CPU). The recording medium may be a "non-transitory tangible medium," such as a read-only memory (ROM), tape, disk, card, semiconductor memory, or programmable logic circuit. The device may also include a random access memory (RAM) for expanding the program. The program may be supplied to the computer via any transmission medium capable of transmitting the program (such as a communication network or broadcast waves). One aspect of the present invention may also be realized in the form of a data signal embedded in a carrier wave, in which the program is embodied by electronic transmission.

〔付記事項〕
本発明は上述した各実施形態に限定されるものではなく、請求項に示した範囲で種々の変更が可能であり、異なる実施形態にそれぞれ開示された技術的手段を適宜組み合わせて得られる実施形態についても本発明の技術的範囲に含まれる。
[Additional Notes]
The present invention is not limited to the above-described embodiments, and various modifications are possible within the scope of the claims. Embodiments obtained by appropriately combining the technical means disclosed in different embodiments are also included in the technical scope of the present invention.

また、本発明の一態様は、以下のようにも記載できる。 Another aspect of the present invention can be described as follows:

本発明の一態様に係る種類判別装置は、対象薬剤を撮像した撮像画像から、前記対象薬剤の種類を判別する種類判別装置であって、前記撮像画像から、前記対象薬剤に対して照射された光の反射領域を示す反射領域情報である、前記対象薬剤の外観の特徴を示す第1特徴情報を抽出する特徴抽出部と、基準薬剤に対して照射された光の反射領域を示す反射領域情報である、前記基準薬剤の外観の特徴を示す第2特徴情報と、前記第1特徴情報とを照合し、該照合の結果に基づいて前記対象薬剤の種類として前記対象薬剤がコーティング錠であることを判別する判別部と、を備え、前記反射領域は、前記撮像画像に含まれる前記対象薬剤の外縁よりも内側に位置する領域である。 A type discrimination device according to one aspect of the present invention is a type discrimination device that discriminates the type of a target drug from an image of the target drug. The type discrimination device includes a feature extraction unit that extracts, from the image, first feature information that indicates the external characteristics of the target drug, which is reflection area information that indicates the reflection area of light irradiated onto the target drug; and a discrimination unit that compares the first feature information with second feature information that indicates the external characteristics of the reference drug, which is reflection area information that indicates the reflection area of light irradiated onto a reference drug, and discriminates that the target drug is a coated tablet as a type of the target drug based on the comparison result. The reflection area is an area located inside the outer edge of the target drug in the image.

本発明の一態様に係る種類判別装置は、前記判別部は、前記第1特徴情報に含まれる反射領域情報が示す反射領域の形状と、前記第2特徴情報に含まれる反射領域情報が示す反射領域の形状とを照合してもよい。 In a type determination device according to one aspect of the present invention, the determination unit may compare the shape of the reflection area indicated by the reflection area information included in the first feature information with the shape of the reflection area indicated by the reflection area information included in the second feature information.

本発明の一態様に係る種類判別装置は、前記反射領域は、前記撮像画像において所定の値よりも高い値の彩度を有する画像領域であり、前記対象薬剤がコーティング錠である場合に、前記コーティング錠の表面に形成される環状の領域であってよい。 In one aspect of the type determination device of the present invention, the reflective region is an image region in the captured image having a saturation value higher than a predetermined value, and if the target drug is a coated tablet, may be an annular region formed on the surface of the coated tablet.

1 薬剤仕分装置
11 第1収容部
13 撮像ユニット(撮像部)
14 第2収容部
15 待機トレイ(仮収容部)
60 コンピュータ(種類判別装置)
62 仕分制御部(仕分決定部)
64a 特徴抽出部
64b 照合部(判別部)
65 優先度決定部
73 画像処理部
74 薬剤データベース更新部(更新部)
82 撮像画像
200 情報処理装置
221 取得部(受信部)
222 画像生成部(生成部)
1000 画像生成システム
1 medicine sorting device 11 first storage section 13 imaging unit (imaging section)
14 Second storage section 15 Waiting tray (temporary storage section)
60 Computer (type determination device)
62 Sorting control unit (sorting determination unit)
64a Feature extraction unit 64b Matching unit (discrimination unit)
65 Priority determination unit 73 Image processing unit 74 Drug database update unit (update unit)
82 Captured image 200 Information processing device 221 Acquisition unit (reception unit)
222 Image generation unit (generation unit)
1000 Image Generation System

Claims (2)

対象薬剤を撮像した撮像画像から、前記対象薬剤の種類を判別する種類判別装置であって、
前記撮像画像から抽出された、前記対象薬剤の色を示す対象色情報を含む前記対象薬剤の外観の特徴を示す第5特徴情報と、基準薬剤の色を示す基準色情報を含む第6特徴情報とを照合し、該照合の結果に基づいて前記対象薬剤の種類を判別する判別部と、
前記判別部が前記対象薬剤の種類の判別に失敗した場合に、前記判別に失敗した前記対象薬剤の種類を指定する、ユーザによる操作を受け付けた後、前記判別に失敗した前記対象薬剤の前記対象色情報を用いて前記ユーザが指定した前記対象薬剤の種類に対応する前記基準薬剤の前記基準色情報更新する更新部と、を備える、種類判別装置。
A type discrimination device that discriminates the type of a target drug from an image of the target drug,
a discrimination unit that compares fifth feature information indicating the characteristics of the appearance of the target drug, including target color information indicating the color of the target drug, extracted from the captured image, with sixth feature information including reference color information indicating the color of a reference drug, and discriminates the type of the target drug based on the comparison result;
and an update unit that, when the discrimination unit fails to discriminate the type of the target drug , accepts a user operation to specify the type of the target drug that has failed to be discriminated, and then updates the reference color information of the reference drug corresponding to the type of the target drug specified by the user using the target color information of the target drug that has failed to be discriminated.
前記撮像画像から、前記対象薬剤に対して照射された光が前記対象薬剤によって反射されているか否かを示す反射情報を少なくとも含む、前記対象薬剤の外観の特徴を示す第3特徴情報を抽出する特徴抽出部を備え、
前記判別部は、前記基準薬剤に対して照射された光が当該基準薬剤によって反射されているか否かを示す反射情報を少なくとも含む、前記基準薬剤の外観の特徴を示す第4特徴情報と、前記第3特徴情報とを照合し、該照合の結果に基づいて前記対象薬剤の種類を判別する、請求項1に記載の種類判別装置。
A feature extraction unit extracts third feature information indicating an appearance feature of the target drug from the captured image, the third feature information including at least reflection information indicating whether light irradiated onto the target drug is reflected by the target drug;
The type determination device of claim 1, wherein the determination unit compares the third characteristic information with fourth characteristic information indicating the appearance characteristics of the reference drug, which includes at least reflection information indicating whether light irradiated onto the reference drug is reflected by the reference drug, and determines the type of the target drug based on the result of the comparison.
JP2025032209A 2020-07-30 2025-02-28 Type discrimination device Active JP7807701B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2026002171A JP2026063020A (en) 2020-07-30 2026-01-08 Type discrimination device, information processing device, and image generation system

Applications Claiming Priority (5)

Application Number Priority Date Filing Date Title
JP2020129424 2020-07-30
JP2020129424 2020-07-30
JP2021100382 2021-06-16
JP2021100382 2021-06-16
JP2021118762A JP7648903B2 (en) 2020-07-30 2021-07-19 Type discrimination device

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2021118762A Division JP7648903B2 (en) 2020-07-30 2021-07-19 Type discrimination device

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2026002171A Division JP2026063020A (en) 2020-07-30 2026-01-08 Type discrimination device, information processing device, and image generation system

Publications (2)

Publication Number Publication Date
JP2025078712A JP2025078712A (en) 2025-05-20
JP7807701B2 true JP7807701B2 (en) 2026-01-28

Family

ID=80264091

Family Applications (3)

Application Number Title Priority Date Filing Date
JP2021118762A Active JP7648903B2 (en) 2020-07-30 2021-07-19 Type discrimination device
JP2025032209A Active JP7807701B2 (en) 2020-07-30 2025-02-28 Type discrimination device
JP2026002171A Pending JP2026063020A (en) 2020-07-30 2026-01-08 Type discrimination device, information processing device, and image generation system

Family Applications Before (1)

Application Number Title Priority Date Filing Date
JP2021118762A Active JP7648903B2 (en) 2020-07-30 2021-07-19 Type discrimination device

Family Applications After (1)

Application Number Title Priority Date Filing Date
JP2026002171A Pending JP2026063020A (en) 2020-07-30 2026-01-08 Type discrimination device, information processing device, and image generation system

Country Status (1)

Country Link
JP (3) JP7648903B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7182668B1 (en) 2021-06-30 2022-12-02 株式会社コンテック Drug identification system and drug identification method
JP7815058B2 (en) * 2022-08-04 2026-02-17 芝浦メカトロニクス株式会社 Tablet printing device and tablet printing method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018014033A (en) 2016-07-22 2018-01-25 株式会社ジェイマックシステム Tablet identification device, tablet identification method, tablet identification program, and template
JP2018027242A (en) 2016-08-18 2018-02-22 安川情報システム株式会社 Tablet detection method, tablet detection device, and table detection program
JP2018075456A (en) 2013-02-20 2018-05-17 株式会社湯山製作所 Medicine inspection device
JP2018181096A (en) 2017-04-18 2018-11-15 木村情報技術株式会社 Drug discrimination device and drug discrimination program
JP2020103885A (en) 2018-12-27 2020-07-09 株式会社湯山製作所 Type discriminator

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090055116A1 (en) 2007-08-24 2009-02-26 Chou-Pi Chen Method For Inspecting Appearance Of Pellet Type Medicines And System Employing Thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018075456A (en) 2013-02-20 2018-05-17 株式会社湯山製作所 Medicine inspection device
JP2018014033A (en) 2016-07-22 2018-01-25 株式会社ジェイマックシステム Tablet identification device, tablet identification method, tablet identification program, and template
JP2018027242A (en) 2016-08-18 2018-02-22 安川情報システム株式会社 Tablet detection method, tablet detection device, and table detection program
JP2018181096A (en) 2017-04-18 2018-11-15 木村情報技術株式会社 Drug discrimination device and drug discrimination program
JP2020103885A (en) 2018-12-27 2020-07-09 株式会社湯山製作所 Type discriminator

Also Published As

Publication number Publication date
JP2022027539A (en) 2022-02-10
JP2026063020A (en) 2026-04-10
JP2025078712A (en) 2025-05-20
JP7648903B2 (en) 2025-03-19

Similar Documents

Publication Publication Date Title
JP7741439B2 (en) Medicine sorting device, medicine return system, medicine sorting device control method, and program
JP7807701B2 (en) Type discrimination device
JP7343795B2 (en) Pharmaceutical sorting device
CN104582670B (en) Drug inspection support device and method
CN109069346B (en) Program for drug authentication and image processing apparatus
JP7839420B2 (en) Determination method
JP7695596B2 (en) Medicine sorting device
JP2024000962A (en) Pharmaceutical sorting equipment and type discrimination equipment
JP7360070B2 (en) Pharmaceutical sorting device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20250228

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20250826

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20251021

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20251229

R150 Certificate of patent or registration of utility model

Ref document number: 7807701

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150